iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
10 lines • 21.3 kB
JavaScript
export const __rspack_esm_id=83312;export const __rspack_esm_ids=[83312];export const __webpack_modules__={89865(e,t,a){a.a(e,async function(e,t){try{a(18111),a(61701);var i=a(62826),r=(a(22395),a(5124)),o=a(22441),n=a(1087),s=a(18350),d=(a(67094),e([s]));s=(d.then?(await d)():d)[0];class l extends r.WF{render(){return r.qy` <wa-button-group childSelector="ha-button"> ${this.buttons.map(e=>r.qy`<ha-button iconTag="ha-svg-icon" class="icon" .variant="${this.active===e.value&&this.activeVariant?this.activeVariant:this.variant}" .size="${this.size}" .value="${e.value}" ="${this._handleClick}" .title="${e.label}" .appearance="${this.active===e.value?"accent":"filled"}"> ${e.iconPath?r.qy`<ha-svg-icon aria-label="${e.label}" .path="${e.iconPath}"></ha-svg-icon>`:e.label} </ha-button>`)} </wa-button-group> `}_handleClick(e){this.active=e.currentTarget.value,(0,n.r)(this,"value-changed",{value:this.active})}constructor(...e){super(...e),this.size="medium",this.nowrap=!1,this.fullWidth=!1,this.variant="brand"}}l.styles=r.AH`:host{--mdc-icon-size:var(--button-toggle-icon-size, 20px)}:host([no-wrap]) wa-button-group::part(base){flex-wrap:nowrap}wa-button-group{padding:var(--ha-button-toggle-group-padding)}:host([full-width]) wa-button-group,:host([full-width]) wa-button-group::part(base){width:100%}:host([full-width]) ha-button{flex:1}`,(0,i.Cg)([(0,o.MZ)({attribute:!1})],l.prototype,"buttons",void 0),(0,i.Cg)([(0,o.MZ)()],l.prototype,"active",void 0),(0,i.Cg)([(0,o.MZ)({reflect:!0})],l.prototype,"size",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean,reflect:!0,attribute:"no-wrap"})],l.prototype,"nowrap",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean,reflect:!0,attribute:"full-width"})],l.prototype,"fullWidth",void 0),(0,i.Cg)([(0,o.MZ)()],l.prototype,"variant",void 0),(0,i.Cg)([(0,o.MZ)({attribute:"active-variant"})],l.prototype,"activeVariant",void 0),l=(0,i.Cg)([(0,o.EM)("ha-button-toggle-group")],l),t()}catch(e){t(e)}})},25440(e,t,a){a.a(e,async function(e,i){try{a.r(t),a.d(t,{HaIconButtonNext:()=>u});var r=a(62826),o=a(5124),n=a(22441),s=a(63091),d=a(26300),l=e([d]);d=(l.then?(await l)():l)[0];const c="M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z",h="M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z";class u extends o.WF{render(){return o.qy` <ha-icon-button .disabled="${this.disabled}" .label="${this.label||this.hass?.localize("ui.common.next")||"Next"}" .path="${this._icon}" .href="${this.href}" .target="${this.target}" .rel="${this.rel}" .download="${this.download}"></ha-icon-button> `}constructor(...e){super(...e),this.disabled=!1,this._icon="rtl"===s.G.document.dir?c:h}}(0,r.Cg)([(0,n.MZ)({attribute:!1})],u.prototype,"hass",void 0),(0,r.Cg)([(0,n.MZ)({type:Boolean})],u.prototype,"disabled",void 0),(0,r.Cg)([(0,n.MZ)()],u.prototype,"label",void 0),(0,r.Cg)([(0,n.MZ)()],u.prototype,"href",void 0),(0,r.Cg)([(0,n.MZ)()],u.prototype,"target",void 0),(0,r.Cg)([(0,n.MZ)()],u.prototype,"rel",void 0),(0,r.Cg)([(0,n.MZ)()],u.prototype,"download",void 0),(0,r.Cg)([(0,n.wk)()],u.prototype,"_icon",void 0),u=(0,r.Cg)([(0,n.EM)("ha-icon-button-next")],u),i()}catch(e){i(e)}})},45100(e,t,a){a.a(e,async function(e,i){try{a.r(t),a.d(t,{HaIconButtonPrev:()=>u});var r=a(62826),o=a(5124),n=a(22441),s=a(63091),d=a(26300),l=e([d]);d=(l.then?(await l)():l)[0];const c="M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z",h="M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z";class u extends o.WF{render(){return o.qy` <ha-icon-button .disabled="${this.disabled}" .label="${this.label||this.hass?.localize("ui.common.back")||"Back"}" .path="${this._icon}" .href="${this.href}" .target="${this.target}" .rel="${this.rel}" .download="${this.download}"></ha-icon-button> `}constructor(...e){super(...e),this.disabled=!1,this._icon="rtl"===s.G.document.dir?h:c}}(0,r.Cg)([(0,n.MZ)({attribute:!1})],u.prototype,"hass",void 0),(0,r.Cg)([(0,n.MZ)({type:Boolean})],u.prototype,"disabled",void 0),(0,r.Cg)([(0,n.MZ)()],u.prototype,"label",void 0),(0,r.Cg)([(0,n.MZ)()],u.prototype,"href",void 0),(0,r.Cg)([(0,n.MZ)()],u.prototype,"target",void 0),(0,r.Cg)([(0,n.MZ)()],u.prototype,"rel",void 0),(0,r.Cg)([(0,n.MZ)()],u.prototype,"download",void 0),(0,r.Cg)([(0,n.wk)()],u.prototype,"_icon",void 0),u=(0,r.Cg)([(0,n.EM)("ha-icon-button-prev")],u),i()}catch(e){i(e)}})},55156(e,t,a){a.d(t,{At:()=>p,TK:()=>b,_1:()=>u,ar:()=>c,at:()=>l,iO:()=>v,kt:()=>d,pO:()=>h});a(44114),a(18111),a(22489),a(7588),a(61701),a(45367),a(92731);var i=a(78870),r=a(90433);if(59509==a.j)var o=a(71727);if(59509==a.j)var n=a(28978);var s=a(22675),d=function(e){return e.THISEVENT="",e.THISANDFUTURE="THISANDFUTURE",e}({}),l=function(e){return e[e.CREATE_EVENT=1]="CREATE_EVENT",e[e.DELETE_EVENT=2]="DELETE_EVENT",e[e.UPDATE_EVENT=4]="UPDATE_EVENT",e}({});const c=(e,t,a)=>{const d=getComputedStyle(t),l=new Map(a?.map(e=>[e.entity_id,e.options])??[]);return Object.keys(e.states).filter(t=>"calendar"===(0,o.m)(t)&&e.states[t].state!==s.Hh&&!0!==e.entities[t]?.hidden).sort().map((t,a)=>{const o=e.states[t],s=l.get(t)?.calendar?.color;let c;return c=s&&(0,i.dc)(s)?(0,i.MP)(s):(0,r.Vy)(a,d),{...o,name:(0,n.u)(o),backgroundColor:c}})},h=(e,t,a)=>e.callWS({type:"calendar/event/create",entity_id:t,event:a}),u=(e,t,a,i,r,o)=>e.callWS({type:"calendar/event/update",entity_id:t,uid:a,recurrence_id:r,recurrence_range:o,event:i}),p=(e,t,a,i,r)=>e.callWS({type:"calendar/event/delete",entity_id:t,uid:a,recurrence_id:i,recurrence_range:r}),v=(e,t,a,i,r)=>e.connection.subscribeMessage(r,{type:"calendar/event/subscribe",entity_id:t,start:a.toISOString(),end:i.toISOString()}),g=e=>"string"==typeof e?e:"dateTime"in e?e.dateTime:"date"in e?e.date:void 0,b=(e,t)=>{const a=g(e.start),i=g(e.end);if(!a||!i)return null;const r={summary:e.summary,dtstart:a,dtend:i,description:e.description??void 0,location:e.location??void 0,uid:e.uid??void 0,recurrence_id:e.recurrence_id??void 0,rrule:e.rrule??void 0};return{start:a,end:i,title:e.summary,backgroundColor:t.backgroundColor,borderColor:t.backgroundColor,calendar:t.entity_id,eventData:r}}},54706(e,t,a){a.d(t,{E:()=>o});a(74423),a(18111),a(13579);var i=a(62826),r=a(22441);const o=e=>{class t extends e{connectedCallback(){super.connectedCallback(),this._checkSubscribed()}disconnectedCallback(){if(super.disconnectedCallback(),this.__unsubs){for(;this.__unsubs.length;){const e=this.__unsubs.pop();e instanceof Promise?e.then(e=>e()):e()}this.__unsubs=void 0}}updated(e){if(super.updated(e),e.has("hass"))this._checkSubscribed();else if(this.hassSubscribeRequiredHostProps)for(const t of e.keys())if(this.hassSubscribeRequiredHostProps.includes(t))return void this._checkSubscribed()}hassSubscribe(){return[]}_checkSubscribed(){void 0===this.__unsubs&&this.isConnected&&void 0!==this.hass&&!this.hassSubscribeRequiredHostProps?.some(e=>void 0===this[e])&&(this.__unsubs=this.hassSubscribe())}}return(0,i.Cg)([(0,r.MZ)({attribute:!1})],t.prototype,"hass",void 0),t}},63556(e,t,a){a.a(e,async function(e,t){try{var i=a(74487),r=(a(74423),a(18111),a(22489),a(13579),a(62826)),o=a(31886),n=a(3398),s=a(78871),d=a(69749),l=a(29851),c=a(33965),h=a(88696),u=a(5124),p=a(22441),v=a(22786),g=a(380),b=a(8480),y=a(69543),f=a(1087),w=a(82286),m=a(18350),_=a(89865),C=a(25440),V=a(45100),x=a(55156),M=a(46927),k=a(14503),T=a(85979),$=a(43036),E=a(42228),Z=e([i,m,_,C,V,T,d,c,l,n,o,b]);[i,m,_,C,V,T,d,c,l,n,o,b]=Z.then?(await Z)():Z;const H="M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z",z="M21 3H3C2.4 3 2 3.4 2 4V10C2 10.6 2.4 11 3 11H21C21.6 11 22 10.6 22 10V4C22 3.4 21.6 3 21 3M21 13H3C2.4 13 2 13.4 2 14V20C2 20.6 2.4 21 3 21H21C21.6 21 22 20.6 22 20V14C22 13.4 21.6 13 21 13Z",D="M2,3V6H21V3M20,8H3A1,1 0 0,0 2,9V15A1,1 0 0,0 3,16H20A1,1 0 0,0 21,15V9A1,1 0 0,0 20,8M2,21H21V18H2V21Z",A="M16,5V11H21V5M10,11H15V5H10M16,18H21V12H16M10,18H15V12H10M4,18H9V12H4M4,11H9V5H4V11Z",S="M13,5H10A1,1 0 0,0 9,6V18A1,1 0 0,0 10,19H13A1,1 0 0,0 14,18V6A1,1 0 0,0 13,5M20,5H17A1,1 0 0,0 16,6V18A1,1 0 0,0 17,19H20A1,1 0 0,0 21,18V6A1,1 0 0,0 20,5M6,5H3A1,1 0 0,0 2,6V18A1,1 0 0,0 3,19H6A1,1 0 0,0 7,18V6A1,1 0 0,0 6,5Z",P={headerToolbar:!1,plugins:[d.A,c.A,l.Ay],initialView:"dayGridMonth",dayMaxEventRows:!0,height:"parent",handleWindowResize:!1,locales:s.A,views:{listWeek:{type:"list",duration:{days:7}}}};class L extends u.WF{disconnectedCallback(){this._clearMidnightRefreshTimeout(),super.disconnectedCallback(),this.calendar?.destroy(),this.calendar=void 0,this._fullCalendarStyle?.remove()}connectedCallback(){super.connectedCallback(),this.hasUpdated&&!this.calendar?this._loadCalendar(this._activeView):this.calendar&&this._scheduleMidnightRefresh()}render(){const e=this._viewToggleButtons(this.views,this.hass.localize);return u.qy` ${this.calendar?u.qy` ${this.error?u.qy`<hui-warning .hass="${this.hass}" severity="warning">${this.error}</hui-warning>`:""} <div class="header"> ${this.narrow?u.qy` <div class="controls"> <h1>${this.calendar.view.title}</h1> <div> <ha-icon-button-prev .label="${this.hass.localize("ui.common.previous")}" class="prev" ="${this._handlePrev}"> </ha-icon-button-prev> <ha-icon-button-next .label="${this.hass.localize("ui.common.next")}" class="next" ="${this._handleNext}"> </ha-icon-button-next> </div> </div> <div class="controls buttons"> <ha-button appearance="plain" size="small" class="today" ="${this._handleToday}">${this.hass.localize("ui.components.calendar.today")}</ha-button> <ha-button-toggle-group .buttons="${e}" .active="${this._activeView}" size="small" no-wrap -changed="${this._handleView}"></ha-button-toggle-group> </div> `:u.qy` <div class="navigation"> <ha-button appearance="filled" size="small" class="today" ="${this._handleToday}">${this.hass.localize("ui.components.calendar.today")}</ha-button> <ha-icon-button-prev .label="${this.hass.localize("ui.common.previous")}" class="prev" ="${this._handlePrev}"> </ha-icon-button-prev> <ha-icon-button-next .label="${this.hass.localize("ui.common.next")}" class="next" ="${this._handleNext}"> </ha-icon-button-next> </div> <h1>${this.calendar.view.title}</h1> <ha-button-toggle-group .buttons="${e}" .active="${this._activeView}" size="small" no-wrap -changed="${this._handleView}"></ha-button-toggle-group> `} </div> `:""} <div id="calendar"></div> ${this.addFab&&this._hasMutableCalendars?u.qy`<ha-button size="large" slot="fab" ="${this._createEvent}"> <ha-svg-icon slot="start" .path="${H}"></ha-svg-icon> ${this.hass.localize("ui.components.calendar.event.add")} </ha-button>`:u.s6} `}willUpdate(e){if(super.willUpdate(e),!this.calendar)return;e.has("events")&&(this.calendar.removeAllEventSources(),this.calendar.addEventSource(this.events)),e.has("views")&&!this.views.includes(this._activeView)&&(this._activeView=this.initialView&&this.views.includes(this.initialView)?this.initialView:this.views[0],this.calendar.changeView(this._activeView),this._fireViewChanged()),e.has("eventDisplay")&&this.calendar.setOption("eventDisplay",this.eventDisplay);const t=e.get("hass");t&&t.language!==this.hass.language&&this.calendar.setOption("locale",this.hass.language)}firstUpdated(){this._loadCalendar(this.initialView),this._activeView=this.initialView}async _loadCalendar(e){const t=this.hass.locale.time_zone===M.Wj.local?void 0:(await a.e(73361).then(a.bind(a,56520))).default,i={...P,plugins:this.hass.locale.time_zone===M.Wj.local?P.plugins:[...P.plugins,t],locale:this.hass.language,timeZone:this.hass.locale.time_zone===M.Wj.local?"local":this.hass.config.time_zone,firstDay:(0,g.P)(this.hass.locale),initialView:e,eventDisplay:this.eventDisplay,eventTimeFormat:{hour:(0,y.J)(this.hass.locale)?"numeric":"2-digit",minute:(0,y.J)(this.hass.locale)?"numeric":"2-digit",hour12:(0,y.J)(this.hass.locale)}};i.dateClick=e=>this._handleDateClick(e),i.eventClick=e=>this._handleEventClick(e),this.calendar=new n.Vv(this.shadowRoot.getElementById("calendar"),i),this.calendar.render(),this._fireViewChanged()}get _hasMutableCalendars(){return this.calendars.some(e=>{const t=this.hass.states[e.entity_id];return t&&(0,w.$)(t,x.at.CREATE_EVENT)})}_createEvent(e){(0,E.A)(this,{selectedDate:"dayGridWeek"===this._activeView||"dayGridDay"===this._activeView||"dayGridMonth"===this._activeView&&this.calendar.view.currentStart.getMonth()!==(new Date).getMonth()?this.calendar.view.currentStart:void 0,updated:()=>{this._fireViewChanged()}})}_handleEventClick(e){const t=this.hass.states[e.event.extendedProps.calendar],a=t&&(0,w.$)(t,x.at.UPDATE_EVENT),i=t&&(0,w.$)(t,x.at.DELETE_EVENT);(0,$.X)(this,{calendarId:e.event.extendedProps.calendar,entry:e.event.extendedProps.eventData,color:e.event.backgroundColor,updated:()=>{this._fireViewChanged()},canEdit:a,canDelete:i})}_handleDateClick(e){"dayGridMonth"===e.view.type&&(this._activeView="dayGridDay",this.calendar.changeView("dayGridDay"),this.calendar.gotoDate(e.dateStr),this._fireViewChanged())}_handleNext(){this.calendar.next(),this._fireViewChanged()}_handlePrev(){this.calendar.prev(),this._fireViewChanged()}_handleToday(){this.calendar.today(),this._fireViewChanged()}_handleView(e){this._activeView=e.detail.value,this.calendar.changeView(this._activeView),this._fireViewChanged()}_fireViewChanged(){this._scheduleMidnightRefresh(),(0,f.r)(this,"view-changed",{start:this.calendar.view.activeStart,end:this.calendar.view.activeEnd,view:this.calendar.view.type})}_scheduleMidnightRefresh(){if(this._clearMidnightRefreshTimeout(),!this.calendar)return;const e=this._isShowingToday(),t=new o.BB(new Date,this._calendarTimeZone());t.setHours(24,0,0,0),this._midnightRefreshTimeout=window.setTimeout(()=>{if(e)return this.calendar?.today(),void this._fireViewChanged();this._scheduleMidnightRefresh()},t.getTime()-Date.now())}_clearMidnightRefreshTimeout(){void 0!==this._midnightRefreshTimeout&&(window.clearTimeout(this._midnightRefreshTimeout),this._midnightRefreshTimeout=void 0)}_isShowingToday(){const e=this.calendar?.getDate();return!!e&&this._formatDateInCalendarTimeZone(e)===this._formatDateInCalendarTimeZone(new Date)}_calendarTimeZone(){return(0,b.wj)(this.hass.locale.time_zone,this.hass.config.time_zone)}_formatDateInCalendarTimeZone(e){return new Intl.DateTimeFormat("en-CA",{timeZone:this._calendarTimeZone(),year:"numeric",month:"2-digit",day:"2-digit"}).format(e)}static get styles(){return[k.RF,u.AH`:host{display:flex;flex-direction:column;--fc-theme-standard-border-color:var(--divider-color)}.header{display:flex;align-items:center;justify-content:space-between;padding-bottom:8px}:host([narrow]) .header{padding-right:8px;padding-left:8px;padding-inline-start:8px;padding-inline-end:8px;flex-direction:column;align-items:flex-start;justify-content:initial}.header{padding-right:var(--calendar-header-padding);padding-left:var(--calendar-header-padding);padding-inline-start:var(--calendar-header-padding);padding-inline-end:var(--calendar-header-padding)}.navigation{display:flex;align-items:center;flex-grow:0}a{color:var(--primary-color)}.controls{display:flex;justify-content:space-between;align-items:center;width:100%}.buttons{display:flex;flex-wrap:wrap}.buttons>*{margin-bottom:5px;box-sizing:border-box}.today{margin-right:20px;margin-inline-end:20px;margin-inline-start:initial;direction:var(--direction)}.next,.prev{--ha-icon-button-size:32px}ha-button[slot=fab]{position:absolute;bottom:var(--ha-space-4);right:var(--ha-space-4);inset-inline-end:var(--ha-space-4);inset-inline-start:initial;z-index:1;--ha-button-box-shadow:var(--ha-box-shadow-l)}#calendar{flex-grow:1;background-color:var(--ha-card-background,var(--card-background-color,#fff));height:var(--calendar-height);--fc-neutral-bg-color:var(
--ha-card-background,
var(--card-background-color, white)
);--fc-list-event-hover-bg-color:var(
--ha-card-background,
var(--card-background-color, white)
);--fc-theme-standard-border-color:var(--divider-color);--fc-border-color:var(--divider-color);--fc-page-bg-color:var(
--ha-card-background,
var(--card-background-color, white)
)}a{color:inherit!important}.fc-theme-standard .fc-scrollgrid{border:1px solid var(--divider-color);border-width:var(--calendar-border-width,1px);border-radius:var(--calendar-border-radius,var(--mdc-shape-small,4px))}.fc-theme-standard td{border-bottom-left-radius:var(--mdc-shape-small,4px);border-bottom-right-radius:var(--mdc-shape-small,4px)}.fc-scrollgrid-section-header td{border:none}th.fc-col-header-cell.fc-day{background-color:var(--table-header-background-color);color:var(--primary-text-color);font-size:var(--ha-font-size-xs);font-weight:var(--ha-font-weight-bold);text-transform:uppercase}.fc-daygrid-dot-event:hover{background-color:inherit}.fc-daygrid-day-top{text-align:center;padding-top:5px;justify-content:center}table.fc-scrollgrid-sync-table tbody tr:first-child .fc-daygrid-day-top{padding-top:0}a.fc-daygrid-day-number{float:none!important;font-size:var(--ha-font-size-s);cursor:pointer}.fc .fc-daygrid-day-number{padding:3px!important}.fc .fc-daygrid-day.fc-day-today{background:inherit}td.fc-day-today .fc-daygrid-day-number{height:26px;color:var(--text-primary-color)!important;background-color:var(--primary-color);border-radius:var(--ha-border-radius-circle);display:inline-block;text-align:center;white-space:nowrap;width:max-content;min-width:24px}.fc-daygrid-day-events{margin-top:4px}.fc-event{border-radius:var(--ha-border-radius-sm);line-height:var(--ha-line-height-normal);cursor:pointer}.fc-daygrid-block-event .fc-event-main{padding:0 1px}.fc-day-past .fc-daygrid-day-events{opacity:.5}.fc-icon-x:before{font-family:var(--ha-font-family-body);content:"X"}.fc-popover{background-color:var(--primary-background-color)!important}.fc-popover-header{background-color:var(--secondary-background-color)!important}.fc-theme-standard .fc-list-day-frame{background-color:transparent}.fc-list-event.fc-event td,.fc-list.fc-view{border:none}.fc-list-day.fc-day th{border-bottom:none;border-top:1px solid var(--fc-theme-standard-border-color,#ddd)!important}.fc-list-day-text{font-size:var(--ha-font-size-l);font-weight:var(--ha-font-weight-normal)}.fc-list-day-side-text{font-size:var(--ha-font-size-l);font-weight:var(--ha-font-weight-normal);color:var(--primary-color)}.fc-list-day-frame,.fc-list-table td{padding-top:12px;padding-bottom:12px}:host([narrow]) .fc-dayGridMonth-view .fc-daygrid-dot-event .fc-event-time,:host([narrow]) .fc-dayGridMonth-view .fc-daygrid-dot-event .fc-event-title{display:none}:host([narrow]) .fc-dayGridMonth-view .fc-daygrid-event-harness{margin-top:0!important}:host([narrow]) .fc-dayGridMonth-view .fc-daygrid-day-events{display:flex;align-items:center;justify-content:center;flex-wrap:wrap}:host([narrow]) .fc-dayGridMonth-view .fc-scrollgrid-sync-table{overflow:hidden}.fc-scroller::-webkit-scrollbar{width:.4rem;height:.4rem}.fc-scroller::-webkit-scrollbar-thumb{border-radius:var(--ha-border-radius-sm);background:var(--scrollbar-thumb-color)}.fc-scroller{overflow-y:auto;scrollbar-color:var(--scrollbar-thumb-color) transparent;scrollbar-width:thin}`]}constructor(...e){super(...e),this.narrow=!1,this.addFab=!1,this.events=[],this.calendars=[],this.views=["dayGridMonth","dayGridWeek","dayGridDay","listWeek"],this.initialView="dayGridMonth",this.eventDisplay="auto",this.error=void 0,this._activeView=this.initialView,this._resizeController=new h.P(this,{callback:()=>this.calendar?.updateSize()}),this._viewToggleButtons=(0,v.A)((e,t)=>(this._viewButtons||(this._viewButtons=[{label:t("ui.components.calendar.views.dayGridMonth"),value:"dayGridMonth",iconPath:A},{label:t("ui.components.calendar.views.dayGridWeek"),value:"dayGridWeek",iconPath:S},{label:t("ui.components.calendar.views.dayGridDay"),value:"dayGridDay",iconPath:D},{label:t("ui.components.calendar.views.listWeek"),value:"listWeek",iconPath:z}]),this._viewButtons.filter(t=>e.includes(t.value))))}}(0,r.Cg)([(0,p.MZ)({type:Boolean,reflect:!0})],L.prototype,"narrow",void 0),(0,r.Cg)([(0,p.MZ)({attribute:"add-fab",type:Boolean})],L.prototype,"addFab",void 0),(0,r.Cg)([(0,p.MZ)({attribute:!1})],L.prototype,"events",void 0),(0,r.Cg)([(0,p.MZ)({attribute:!1})],L.prototype,"calendars",void 0),(0,r.Cg)([(0,p.MZ)({attribute:!1})],L.prototype,"views",void 0),(0,r.Cg)([(0,p.MZ)({attribute:!1})],L.prototype,"initialView",void 0),(0,r.Cg)([(0,p.MZ)({attribute:!1})],L.prototype,"eventDisplay",void 0),(0,r.Cg)([(0,p.MZ)({attribute:!1})],L.prototype,"error",void 0),(0,r.Cg)([(0,p.wk)()],L.prototype,"_activeView",void 0),(0,r.Cg)([(0,p.P)("style[data-fullcalendar]")],L.prototype,"_fullCalendarStyle",void 0),L=(0,r.Cg)([(0,p.EM)("ha-full-calendar")],L),t()}catch(e){t(e)}})},43036(e,t,a){a.d(t,{X:()=>o});var i=a(1087);const r=()=>Promise.all([a.e(32450),a.e(46095),a.e(89441),a.e(31709),a.e(55076),a.e(19287),a.e(9008)]).then(a.bind(a,43322)),o=(e,t)=>{(0,i.r)(e,"show-dialog",{dialogTag:"dialog-calendar-event-detail",dialogImport:r,dialogParams:t})}},42228(e,t,a){a.d(t,{A:()=>o});var i=a(1087);const r=()=>Promise.all([a.e(32450),a.e(46095),a.e(7305),a.e(92769),a.e(3283),a.e(89441),a.e(67897),a.e(26092),a.e(55076),a.e(19287),a.e(9783)]).then(a.bind(a,62938)),o=(e,t)=>{(0,i.r)(e,"show-dialog",{dialogTag:"dialog-calendar-event-editor",dialogImport:r,dialogParams:t})}}};