iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
1 lines • 19.8 kB
JavaScript
"use strict";(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[89747],{25995:function(e,a,t){t.d(a,{Vw:function(){return n},kG:function(){return s},y6:function(){return i}});t(3362);const o=(e,a,t)=>new Promise((o,i)=>{const s=document.createElement(e);let n="src",l="body";switch(s.onload=()=>o(a),s.onerror=()=>i(a),e){case"script":s.async=!0,t&&(s.type=t);break;case"link":s.type="text/css",s.rel="stylesheet",n="href",l="head"}s[n]=a,document[l].appendChild(s)}),i=e=>o("link",e),s=e=>o("script",e),n=e=>o("script",e,"module")},75248:function(e,a,t){t.a(e,async function(e,o){try{t.r(a),t.d(a,{HaIconOverflowMenu:function(){return k}});t(18111),t(61701),t(62953);var i=t(40445),s=(t(68825),t(5124)),n=t(67576),l=t(93421),r=t(57237),d=t(14503),h=t(29823),c=(t(70947),t(26300)),u=(t(67094),t(34127)),p=e([h,c,u]);[h,c,u]=p.then?(await p)():p;let g,b,v,f,_,m,y,w,$=e=>e;const C="M12,16A2,2 0 0,1 14,18A2,2 0 0,1 12,20A2,2 0 0,1 10,18A2,2 0 0,1 12,16M12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12A2,2 0 0,1 12,10M12,4A2,2 0 0,1 14,6A2,2 0 0,1 12,8A2,2 0 0,1 10,6A2,2 0 0,1 12,4Z";class k extends s.WF{render(){return 0===this.items.length?s.s6:(0,s.qy)(g||(g=$` ${0} `),this.narrow?(0,s.qy)(b||(b=$` <ha-dropdown -show="${0}" ="${0}"> <ha-icon-button .label="${0}" .path="${0}" slot="trigger"></ha-icon-button> ${0} </ha-dropdown>`),this._handleIconOverflowMenuOpened,r.d,this._localize("ui.common.overflow_menu"),C,this.items.map(e=>e.divider?(0,s.qy)(v||(v=$`<wa-divider></wa-divider>`)):(0,s.qy)(f||(f=$`<ha-dropdown-item ?disabled="${0}" ="${0}" variant="${0}"> <ha-svg-icon slot="icon" .path="${0}"></ha-svg-icon> ${0} </ha-dropdown-item>`),e.disabled,e.action,e.warning?"danger":"default",e.path,e.label))):(0,s.qy)(_||(_=$` ${0} `),this.items.map(e=>{var a;return e.narrowOnly?s.s6:e.divider?(0,s.qy)(m||(m=$`<div role="separator"></div>`)):(0,s.qy)(y||(y=$`<ha-tooltip .disabled="${0}" .for="icon-button-${0}">${0} </ha-tooltip><ha-icon-button .id="icon-button-${0}" ="${0}" .label="${0}" .path="${0}" ?disabled="${0}"></ha-icon-button> `),!e.tooltip,e.label,null!==(a=e.tooltip)&&void 0!==a?a:"",e.label,e.action,e.label,e.path,e.disabled)})))}_handleIconOverflowMenuOpened(e){e.stopPropagation()}static get styles(){return[d.RF,(0,s.AH)(w||(w=$`:host{display:flex;justify-content:flex-end;cursor:initial}div[role=separator]{border-right:1px solid var(--divider-color);width:1px}`))]}constructor(...e){super(...e),this.items=[],this.narrow=!1}}(0,i.Cg)([(0,n.wk)(),(0,l.IW)()],k.prototype,"_localize",void 0),(0,i.Cg)([(0,n.MZ)({type:Array})],k.prototype,"items",void 0),(0,i.Cg)([(0,n.MZ)({type:Boolean})],k.prototype,"narrow",void 0),k=(0,i.Cg)([(0,n.EM)("ha-icon-overflow-menu")],k),o()}catch(g){o(g)}})},25612:function(e,a,t){t.d(a,{KQ:function(){return l},Uh:function(){return s},Zg:function(){return i},kZ:function(){return o},o8:function(){return n}});const o=e=>e.sendMessagePromise({type:"lovelace/resources"}),i=(e,a)=>e.callWS(Object.assign({type:"lovelace/resources/create"},a)),s=(e,a,t)=>e.callWS(Object.assign({type:"lovelace/resources/update",resource_id:a},t)),n=(e,a)=>e.callWS({type:"lovelace/resources/delete",resource_id:a}),l=e=>e.callWS({type:"lovelace/info"})},23296:function(e,a,t){t.a(e,async function(e,o){try{t.r(a);t(62953);var i=t(40445),s=t(5124),n=t(67576),l=t(91926),r=t(65829),d=t(90248),h=t(2054),c=t(14503),u=e([r,d,h]);[r,d,h]=u.then?(await u)():u;let p,g,b,v,f,_,m=e=>e;class y extends s.WF{render(){var e;return(0,s.qy)(p||(p=m` ${0} <div class="content"> <ha-spinner></ha-spinner> ${0} </div> `),this.noToolbar?"":(0,s.qy)(g||(g=m`<div class="toolbar"> ${0} </div>`),this.rootnav||null!==(e=history.state)&&void 0!==e&&e.root?(0,s.qy)(b||(b=m` <ha-menu-button .hass="${0}" .narrow="${0}"></ha-menu-button> `),this.hass,this.narrow):(0,s.qy)(v||(v=m` <ha-icon-button-arrow-prev .hass="${0}" ="${0}"></ha-icon-button-arrow-prev> `),this.hass,this._handleBack)),this.message?(0,s.qy)(f||(f=m`<div id="loading-text">${0}</div>`),this.message):s.s6)}_handleBack(){(0,l.OE)()}static get styles(){return[c.RF,(0,s.AH)(_||(_=m`:host{display:block;height:100%;background-color:var(--primary-background-color)}.toolbar{display:flex;align-items:center;font-size:var(--ha-font-size-xl);height:var(--header-height);padding:8px 12px;pointer-events:none;background-color:var(--app-header-background-color);font-weight:var(--ha-font-weight-normal);color:var(--app-header-text-color,#fff);border-bottom:var(--app-header-border-bottom,none);box-sizing:border-box} (max-width:599px){.toolbar{padding:4px}}ha-icon-button-arrow-prev,ha-menu-button{pointer-events:auto}.content{height:calc(100% - var(--header-height));display:flex;flex-direction:column;align-items:center;justify-content:center}#loading-text{max-width:350px;margin-top:16px}`))]}constructor(...e){super(...e),this.noToolbar=!1,this.rootnav=!1,this.narrow=!1}}(0,i.Cg)([(0,n.MZ)({attribute:!1})],y.prototype,"hass",void 0),(0,i.Cg)([(0,n.MZ)({type:Boolean,attribute:"no-toolbar"})],y.prototype,"noToolbar",void 0),(0,i.Cg)([(0,n.MZ)({type:Boolean})],y.prototype,"rootnav",void 0),(0,i.Cg)([(0,n.MZ)({type:Boolean})],y.prototype,"narrow",void 0),(0,i.Cg)([(0,n.MZ)()],y.prototype,"message",void 0),y=(0,i.Cg)([(0,n.EM)("hass-loading-screen")],y),o()}catch(p){o(p)}})},7083:function(e,a,t){t.d(a,{Y:function(){return s}});t(3362),t(62953);var o=t(1087);const i=()=>Promise.all([t.e(92769),t.e(39636)]).then(t.bind(t,65631)),s=(e,a)=>{(0,o.r)(e,"show-dialog",{dialogTag:"ha-dialog-new-dashboard",dialogImport:i,dialogParams:a})}},49406:function(e,a,t){t.a(e,async function(e,o){try{t.r(a),t.d(a,{HaConfigLovelaceDashboards:function(){return ae},PANEL_DASHBOARDS:function(){return ee}});t(44114),t(26910),t(18111),t(22489),t(20116),t(61701),t(13579),t(3362),t(17642),t(58004),t(33853),t(45876),t(32475),t(15024),t(31698),t(62953);var i=t(40445),s=t(5124),n=t(67576),l=t(22786),r=t(93905),d=t(91926),h=t(52220),c=t(38962),u=t(18350),p=t(29823),g=(t(70947),t(47680),t(26300)),b=t(75248),v=(t(67094),t(34127)),f=t(48250),_=t(35952),m=t(25612),y=t(71730),w=t(99774),$=t(65063),C=t(23296),k=t(72553),x=t(35697),A=t(15656),M=t(7083),q=t(68370),z=t(47758),D=t(96489),L=t(60653),H=e([c,u,p,g,b,v,C,k]);[c,u,p,g,b,v,C,k]=H.then?(await H)():H;let S,P,Z,O,V,T,I,W,E,G,U,B,R,j=e=>e;const F="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z",Q="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z",N="M12,16A2,2 0 0,1 14,18A2,2 0 0,1 12,20A2,2 0 0,1 10,18A2,2 0 0,1 12,16M12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12A2,2 0 0,1 12,10M12,4A2,2 0 0,1 14,6A2,2 0 0,1 12,8A2,2 0 0,1 10,6A2,2 0 0,1 12,4Z",Y="M12 20C7.6 20 4 16.4 4 12S7.6 4 12 4 20 7.6 20 12 16.4 20 12 20M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M11 14H13V17H16V12H18L12 7L6 12H8V17H11V14",J="M12 3L2 12H5V20H10V14H14V15.11L19.43 9.68L12 3M21.04 11.14C20.9 11.14 20.76 11.2 20.65 11.3L19.65 12.3L21.7 14.35L22.7 13.35C22.91 13.14 22.91 12.79 22.7 12.58L21.42 11.3C21.32 11.2 21.18 11.14 21.04 11.14M19.06 12.88L13 18.94V21H15.06L21.11 14.93L19.06 12.88Z",K="M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z",X="M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z",ee=["lovelace","home","light","security","climate","energy","maintenance","logbook","history","browser-mod"];class ae extends s.WF{willUpdate(){this.hasUpdated||this.hass.loadFragmentTranslation("lovelace")}render(){var e;if(!this.hass||void 0===this._dashboards)return(0,s.qy)(S||(S=j` <hass-loading-screen></hass-loading-screen> `));const a=(null===(e=this.hass.systemData)||void 0===e?void 0:e.default_panel)||"home";return(0,s.qy)(P||(P=j` <hass-tabs-subpage-data-table .hass="${0}" .narrow="${0}" back-path="/config" .route="${0}" .tabs="${0}" .columns="${0}" .data="${0}" .initialGroupColumn="${0}" .initialCollapsedGroups="${0}" .initialSorting="${0}" .columnOrder="${0}" .hiddenColumns="${0}" -changed="${0}" -changed="${0}" -changed="${0}" -changed="${0}" .filter="${0}" -changed="${0}" -click="${0}" id="url_path" has-fab clickable> <ha-dropdown slot="toolbar-icon"> <ha-icon-button slot="trigger" .label="${0}" .path="${0}"></ha-icon-button> <a href="/config/lovelace/resources"> <ha-dropdown-item> ${0} </ha-dropdown-item> </a> </ha-dropdown> <ha-button slot="fab" size="large" ="${0}"> <ha-svg-icon slot="start" .path="${0}"></ha-svg-icon> ${0} </ha-button> </hass-tabs-subpage-data-table> `),this.hass,this.narrow,this.route,q.lovelaceTabs,this._columns(this.narrow,this.hass.language,this._dashboards,this.hass.localize),this._getItems(this._dashboards,a,this.hass.panels),this._activeGrouping,this._activeCollapsed,this._activeSorting,this._activeColumnOrder,this._activeHiddenColumns,this._handleGroupingChanged,this._handleCollapseChanged,this._handleColumnsChanged,this._handleSortingChanged,this._filter,this._handleSearchChange,this._handleRowClicked,this.hass.localize("ui.common.menu"),N,this.hass.localize("ui.panel.config.lovelace.resources.caption"),this._addDashboard,X,this.hass.localize("ui.panel.config.lovelace.dashboards.picker.add_dashboard"))}firstUpdated(e){super.firstUpdated(e);const a=window;a.llResProm||(a.llResProm=(0,m.kZ)(this.hass.connection)),a.llResProm.then(e=>{(0,x.n)(e,this.hass)}).catch(e=>{a.llResProm=void 0,console.error("Unable to preload Lovelace resources",e)}),this._getDashboards()}async _getDashboards(){this._dashboards=await(0,y.SJ)(this.hass)}_handleRowClicked(e){e.stopPropagation();const a=e.detail.id;(0,d.oo)(`/${a}`)}_handleEdit(e){const a=e.url_path;if("energy"===a)return void(0,d.oo)("/config/energy");const t=this._dashboards.find(e=>e.url_path===a);this._openDetailDialog(t,a)}_handleEditPanel(e){var a;const t=this.hass.panels[e.url_path];if(!t)return;const o=(null===(a=this.hass.systemData)||void 0===a?void 0:a.default_panel)||"home";(0,L.x)(this,{urlPath:t.url_path,title:(0,w.hL)(this.hass,t)||t.url_path,icon:(0,w.Q)(t),requireAdmin:t.require_admin||!1,showInSidebar:t.show_in_sidebar||!1,isDefault:t.url_path===o,updatePanel:async e=>{await(0,w.W5)(this.hass,t.url_path,e)}})}async _addDashboard(){(0,M.Y)(this,{selectConfig:async({config:e})=>{let a;if(e&&(0,_.Wu)(e)){const{strategyClass:t,fieldSuggestions:o}=await(0,A.TG)(this.hass,e.strategy.type);if(a=o,t.configRequired)return void(0,z.d)(this,{config:e,saveConfig:async e=>{const{fieldSuggestions:a}=await(0,A.TG)(this.hass,e.strategy.type);this._openDetailDialog(void 0,void 0,e,a)}})}this._openDetailDialog(void 0,void 0,e,a)}})}async _openDetailDialog(e,a,t,o){var i;const s=(null===(i=this.hass.systemData)||void 0===i?void 0:i.default_panel)||"home";(0,D.B)(this,{dashboard:e,urlPath:a,isDefault:(null==e?void 0:e.url_path)===s,suggestions:o,takenUrlPaths:e?void 0:this._collectTakenDashboardUrlPaths(),createDashboard:async e=>{const a=await(0,y.n6)(this.hass,e);this._dashboards=this._dashboards.concat(a).sort((e,a)=>(0,h.xL)(e.url_path,a.url_path,this.hass.locale.language)),t&&await(0,_.ql)(this.hass,a.url_path,t)},updateDashboard:async a=>{const t=await(0,y.mQ)(this.hass,e.id,a);this._dashboards=this._dashboards.map(a=>a===e?t:a)},removeDashboard:async()=>!!e&&this._deleteDashboard(e)})}_collectTakenDashboardUrlPaths(){const e=new Set;for(const t of null!==(a=this._dashboards)&&void 0!==a?a:[]){var a;e.add(t.url_path)}for(const t of Object.keys(this.hass.panels))e.add(t);return e.add("lovelace"),e}async _deleteDashboard(e){if(!(await(0,$.dk)(this,{title:this.hass.localize("ui.panel.config.lovelace.dashboards.confirm_delete_title",{dashboard_title:e.title}),text:this.hass.localize("ui.panel.config.lovelace.dashboards.confirm_delete_text"),confirmText:this.hass.localize("ui.common.delete"),destructive:!0})))return!1;try{return await(0,y.A_)(this.hass,e.id),this._dashboards=this._dashboards.filter(a=>a!==e),!0}catch(a){return!1}}_handleSortingChanged(e){this._activeSorting=e.detail}_handleSearchChange(e){this._filter=e.detail.value}_handleColumnsChanged(e){this._activeColumnOrder=e.detail.columnOrder,this._activeHiddenColumns=e.detail.hiddenColumns}_handleGroupingChanged(e){this._activeGrouping=e.detail.value}_handleCollapseChanged(e){this._activeCollapsed=e.detail.value}constructor(...e){super(...e),this.isWide=!1,this.narrow=!1,this._dashboards=[],this._filter="",this._activeGrouping="localized_type",this._activeCollapsed=[],this._columns=(0,l.A)((e,a,t,o)=>{const i={icon:{title:"",moveable:!1,showNarrow:!0,label:o("ui.panel.config.lovelace.dashboards.picker.headers.icon"),type:"icon",template:e=>e.icon?(0,s.qy)(Z||(Z=j` <ha-icon slot="item-icon" .icon="${0}"></ha-icon> `),e.icon):s.s6},title:{title:o("ui.panel.config.lovelace.dashboards.picker.headers.title"),main:!0,sortable:!0,filterable:!0,flex:2,template:e?void 0:e=>(0,s.qy)(O||(O=j` <span style="display:flex;align-items:center;gap:var(--ha-space-2);min-width:0;width:100%"> <span style="min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1">${0}</span> ${0} </span> `),e.title,e.default?(0,s.qy)(V||(V=j` <ha-svg-icon .id="default-icon-${0}" style="flex-shrink:0" .path="${0}"></ha-svg-icon> <ha-tooltip .for="default-icon-${0}" placement="right"> ${0} </ha-tooltip> `),e.title,Y,e.title,this.hass.localize("ui.panel.config.lovelace.dashboards.default_dashboard")):s.s6)}};return i.localized_type={title:o("ui.panel.config.lovelace.dashboards.picker.headers.type"),sortable:!0,groupable:!0,filterable:!0},i.mode={title:o("ui.panel.config.lovelace.dashboards.picker.headers.conf_mode"),sortable:!0,filterable:!0,template:e=>(0,s.qy)(T||(T=j` ${0} `),this.hass.localize(`ui.panel.config.lovelace.dashboards.conf_mode.${e.mode}`)||e.mode)},t.some(e=>e.filename)&&(i.filename={title:o("ui.panel.config.lovelace.dashboards.picker.headers.filename"),sortable:!0,filterable:!0}),i.require_admin={title:o("ui.panel.config.lovelace.dashboards.picker.headers.require_admin"),sortable:!0,hidden:e,type:"icon",minWidth:"120px",maxWidth:"120px",template:e=>e.require_admin?(0,s.qy)(I||(I=j`<ha-svg-icon .path="${0}"></ha-svg-icon>`),F):(0,s.qy)(W||(W=j`—`))},i.show_in_sidebar={title:o("ui.panel.config.lovelace.dashboards.picker.headers.sidebar"),hidden:e,type:"icon",minWidth:"120px",maxWidth:"120px",template:e=>e.show_in_sidebar?(0,s.qy)(E||(E=j`<ha-svg-icon .path="${0}"></ha-svg-icon>`),F):(0,s.qy)(G||(G=j`—`))},i.actions={title:"",label:this.hass.localize("ui.panel.config.generic.headers.actions"),type:"overflow-menu",showNarrow:!0,moveable:!1,hideable:!1,template:e=>(0,s.qy)(U||(U=j` <ha-icon-overflow-menu narrow .items="${0}"> </ha-icon-overflow-menu> `),[{path:J,label:o("ui.panel.config.lovelace.dashboards.picker.set_as_default"),action:()=>this._handleSetAsDefault(e),disabled:e.default},..."built_in"===e.type?[{path:K,label:this.hass.localize("ui.panel.config.lovelace.dashboards.picker.edit"),action:()=>this._handleEditPanel(e)}]:[],..."user_created"===e.type&&"storage"===e.mode?[{path:K,label:this.hass.localize("ui.panel.config.lovelace.dashboards.picker.edit"),action:()=>this._handleEdit(e)},{label:this.hass.localize("ui.panel.config.lovelace.dashboards.picker.delete"),path:Q,action:()=>this._handleDelete(e),warning:!0}]:[]])},i}),this._getItems=(0,l.A)((e,a,t)=>{const o=[];return ee.forEach(e=>{const i=t[e];if(!i)return;const s={icon:(0,w.Q)(i),title:(0,w.hL)(this.hass,i)||i.url_path,show_in_sidebar:i.show_in_sidebar||!1,mode:"storage",url_path:i.url_path,filename:"",default:a===i.url_path,require_admin:i.require_admin||!1,type:"built_in",localized_type:this._localizeType("built_in")};o.push(s)}),o.push(...e.sort((e,a)=>(0,h.xL)(e.title,a.title,this.hass.locale.language)).map(e=>Object.assign(Object.assign({filename:""},e),{},{default:a===e.url_path,type:"user_created",localized_type:this._localizeType("user_created")}))),o}),this._localizeType=e=>this.hass.localize(`ui.panel.config.lovelace.dashboards.picker.type.${e}`),this._handleSetAsDefault=async e=>{if(e.default)return;if(e.require_admin)return void(0,$.showAlertDialog)(this,{title:this.hass.localize("ui.panel.config.lovelace.dashboards.detail.set_default_admin_only_title"),text:this.hass.localize("ui.panel.config.lovelace.dashboards.detail.set_default_admin_only_text")});await(0,$.dk)(this,{title:this.hass.localize("ui.panel.config.lovelace.dashboards.detail.set_default_confirm_title"),text:(0,s.qy)(B||(B=j`${0}<br><br><ha-alert alert-type="info">${0}</ha-alert>`),this.hass.localize("ui.panel.config.lovelace.dashboards.detail.set_default_confirm_text"),this.hass.localize("ui.panel.config.lovelace.dashboards.detail.set_default_confirm_note")),confirmText:this.hass.localize("ui.common.ok"),dismissText:this.hass.localize("ui.common.cancel"),destructive:!1})&&await(0,f.x0)(this.hass.connection,"core",Object.assign(Object.assign({},this.hass.systemData),{},{default_panel:e.url_path}))},this._handleDelete=async e=>{const a=this._dashboards.find(a=>a.url_path===e.url_path);a&&this._deleteDashboard(a)}}}ae.styles=(0,s.AH)(R||(R=j`ha-dropdown a{text-decoration:none}`)),(0,i.Cg)([(0,n.MZ)({attribute:!1})],ae.prototype,"hass",void 0),(0,i.Cg)([(0,n.MZ)({attribute:"is-wide",type:Boolean})],ae.prototype,"isWide",void 0),(0,i.Cg)([(0,n.MZ)({type:Boolean})],ae.prototype,"narrow",void 0),(0,i.Cg)([(0,n.MZ)({attribute:!1})],ae.prototype,"route",void 0),(0,i.Cg)([(0,n.wk)()],ae.prototype,"_dashboards",void 0),(0,i.Cg)([(0,n.wk)(),(0,r.I)({storage:"sessionStorage",key:"lovelace-dashboards-table-search",state:!0,subscribe:!1})],ae.prototype,"_filter",void 0),(0,i.Cg)([(0,r.I)({key:"lovelace-dashboards-table-sort",state:!1,subscribe:!1})],ae.prototype,"_activeSorting",void 0),(0,i.Cg)([(0,r.I)({key:"lovelace-dashboards-table-column-order",state:!1,subscribe:!1})],ae.prototype,"_activeColumnOrder",void 0),(0,i.Cg)([(0,r.I)({key:"lovelace-dashboards-table-hidden-columns",state:!1,subscribe:!1})],ae.prototype,"_activeHiddenColumns",void 0),(0,i.Cg)([(0,r.I)({key:"lovelace-dashboards-table-grouping",state:!1,subscribe:!1})],ae.prototype,"_activeGrouping",void 0),(0,i.Cg)([(0,r.I)({key:"lovelace-dashboards-table-collapsed",state:!1,subscribe:!1})],ae.prototype,"_activeCollapsed",void 0),ae=(0,i.Cg)([(0,n.EM)("ha-config-lovelace-dashboards")],ae),o()}catch(S){o(S)}})},47758:function(e,a,t){t.d(a,{d:function(){return s}});t(3362),t(62953);var o=t(1087);const i=()=>Promise.all([t.e(72130),t.e(85010),t.e(25950),t.e(34310),t.e(23331)]).then(t.bind(t,35632)),s=(e,a)=>{(0,o.r)(e,"show-dialog",{dialogTag:"dialog-lovelace-dashboard-configure-strategy",dialogImport:i,dialogParams:a})}},96489:function(e,a,t){t.d(a,{B:function(){return s}});t(3362),t(62953);var o=t(1087);const i=()=>t.e(92348).then(t.bind(t,3863)),s=(e,a)=>{(0,o.r)(e,"show-dialog",{dialogTag:"dialog-lovelace-dashboard-detail",dialogImport:i,dialogParams:a})}},60653:function(e,a,t){t.d(a,{x:function(){return s}});t(3362),t(62953);var o=t(1087);const i=()=>t.e(79524).then(t.bind(t,41231)),s=(e,a)=>{(0,o.r)(e,"show-dialog",{dialogTag:"dialog-panel-detail",dialogImport:i,dialogParams:a})}},35697:function(e,a,t){t.d(a,{$:function(){return r},n:function(){return l}});t(18111),t(22489),t(7588),t(61701),t(3362),t(96167),t(62953),t(3296),t(27208),t(48408),t(14603),t(47566),t(98721);var o=t(25995);const i={},s={},n=(e,a)=>{const t=new URL(e.url,a.auth.data.hassUrl).toString();switch(e.type){case"css":{if(t in i)return i[t];const e=(0,o.y6)(t);return i[t]=e,e}case"js":{if(t in s)return s[t];const e=(0,o.kG)(t);return s[t]=e,e}case"module":return(0,o.Vw)(t);default:return void console.warn(`Unknown resource type specified: ${e.type}`)}},l=(e,a)=>{e.forEach(e=>{n(e,a)})},r=async(e,a)=>{const t=e.map(e=>n(e,a)).filter(e=>void 0!==e);await Promise.allSettled(t)}}}]);