this._onEventClick(i)}>
${ie}
${rt}
${i.object_name} · ${i.task_name}${se}
${le}
${M}
${i.avg_cost!=null&&i.avg_cost>0?f`
${i.avg_cost.toFixed(0)} ${ot}`:g}
`},J=i=>{let[R,P,se]=i.date.split("-").map(Number),M=new Date(R,P-1,se),U=i.date===h,ie=M.toLocaleDateString(t,{weekday:"short"}),le=M.toLocaleDateString(t,{month:"long"});return f`
`}};O.styles=k`
:host { display: block; padding: 8px 0; }
.editor { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; flex-direction: column; gap: 4px; }
.row.toggle {
flex-direction: row;
align-items: center;
justify-content: space-between;
gap: 12px;
}
label { font-weight: 500; color: var(--primary-text-color); font-size: 14px; }
input[type="text"], select {
padding: 8px;
font-size: 14px;
background: var(--card-background-color, white);
color: var(--primary-text-color, black);
border: 1px solid var(--divider-color, #e0e0e0);
border-radius: 4px;
}
.hint {
margin-top: -4px;
font-size: 12px;
color: var(--secondary-text-color, #666);
}
`,x([V({attribute:!1})],O.prototype,"hass",2),x([w()],O.prototype,"_config",2);customElements.get("maintenance-supporter-calendar-card")||customElements.define("maintenance-supporter-calendar-card",v);customElements.get("maintenance-supporter-calendar-card-editor")||customElements.define("maintenance-supporter-calendar-card-editor",O);var ne=window;ne.customCards=ne.customCards||[];var tt="maintenance-supporter-calendar-card",Nt=ne.customCards.some(a=>a.type===tt);Nt||ne.customCards.push({type:tt,name:"Maintenance Supporter \u2014 Calendar",description:"Rolling calendar of maintenance tasks with 7/14/30/365 day windows, source icons, and prediction-confidence pills.",preview:!0});export{v as MaintenanceCalendarCard};
/*! Bundled license information:
@lit/reactive-element/css-tag.js:
(**
* @license
* Copyright 2019 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
@lit/reactive-element/reactive-element.js:
lit-html/lit-html.js:
lit-element/lit-element.js:
@lit/reactive-element/decorators/custom-element.js:
@lit/reactive-element/decorators/property.js:
@lit/reactive-element/decorators/state.js:
@lit/reactive-element/decorators/event-options.js:
@lit/reactive-element/decorators/base.js:
@lit/reactive-element/decorators/query.js:
@lit/reactive-element/decorators/query-all.js:
@lit/reactive-element/decorators/query-async.js:
@lit/reactive-element/decorators/query-assigned-nodes.js:
(**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
lit-html/is-server.js:
(**
* @license
* Copyright 2022 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
@lit/reactive-element/decorators/query-assigned-elements.js:
(**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
*/