"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["70861"],{63708:function(t,a,i){i.d(a,{fW:function(){return n}});i(18111),i(13579);var o=i(44537),e=i(36312);const n=(t,a)=>(l(a)||r(t,a))&&!h(t,a)&&s(t,a),r=(t,a)=>!a.component||(0,o.e)(a.component).some(a=>(0,e.x)(t,a)),s=(t,a)=>!a.not_component||!(0,o.e)(a.not_component).some(a=>(0,e.x)(t,a)),l=t=>t.core,h=(t,a)=>(t=>t.advancedOnly)(a)&&!(t=>{var a;return null===(a=t.userData)||void 0===a?void 0:a.showAdvanced})(t)},29006:function(t,a,i){i.d(a,{F:function(){return e}});i(18111),i(22489);var o=i(63708);const e=(t,a,i={})=>a.filter(a=>{var e,n;return"#external-app-configuration"===a.path?null===(e=t.auth.external)||void 0===e?void 0:e.config.hasSettingsScreen:"bluetooth"===a.component?null!==(n=i.hasBluetoothConfigEntries)&&void 0!==n&&n:(0,o.fW)(t,a)})},34296:function(t,a,i){i(62953);var o=i(40445),e=i(96229),n=i(26069),r=i(91735),s=i(42034),l=i(96196),h=i(77845);let c,d,p,g,u=t=>t;class f extends e.k{renderOutline(){return this.filled?(0,l.qy)(c||(c=u`<span class="filled"></span>`)):super.renderOutline()}getContainerClasses(){return Object.assign(Object.assign({},super.getContainerClasses()),{},{active:this.active})}renderPrimaryContent(){return(0,l.qy)(d||(d=u` <span class="leading icon" aria-hidden="true"> ${0} </span> <span class="label">${0}</span> <span class="touch"></span> <span class="trailing leading icon" aria-hidden="true"> ${0} </span> `),this.renderLeadingIcon(),this.label,this.renderTrailingIcon())}renderTrailingIcon(){return(0,l.qy)(p||(p=u`<slot name="trailing-icon"></slot>`))}constructor(...t){super(...t),this.filled=!1,this.active=!1}}f.styles=[r.R,s.R,n.R,(0,l.AH)(g||(g=u`:host{--md-sys-color-primary:var(--primary-text-color);--md-sys-color-on-surface:var(--primary-text-color);--md-assist-chip-container-shape:var(
          --ha-assist-chip-container-shape,
          16px
        );--md-assist-chip-outline-color:var(--outline-color);--md-assist-chip-label-text-weight:400}.filled{display:flex;pointer-events:none;border-radius:inherit;inset:0;position:absolute;background-color:var(--ha-assist-chip-filled-container-color)}::slotted([slot=icon]),::slotted([slot=trailing-icon]){display:flex;--mdc-icon-size:var(--md-input-chip-icon-size, 18px);font-size:var(--_label-text-size)!important}.trailing.icon ::slotted(*),.trailing.icon svg{margin-inline-end:unset;margin-inline-start:var(--_icon-label-space)}::before{background:var(--ha-assist-chip-container-color,transparent);opacity:var(--ha-assist-chip-container-opacity, 1)}:where(.active)::before{background:var(--ha-assist-chip-active-container-color);opacity:var(--ha-assist-chip-active-container-opacity)}.label{font-family:var(--ha-font-family-body)}`))],(0,o.Cg)([(0,h.MZ)({type:Boolean,reflect:!0})],f.prototype,"filled",void 0),(0,o.Cg)([(0,h.MZ)({type:Boolean})],f.prototype,"active",void 0),f=(0,o.Cg)([(0,h.EM)("ha-assist-chip")],f)},59397:function(t,a,i){i(89463),i(18111),i(61701),i(62953);var o=i(40445),e=i(96196),n=i(77845),r=i(32288);i(43661),i(17308),i(2846),i(67094);let s,l,h,c,d,p=t=>t;class g extends e.WF{render(){return(0,e.qy)(s||(s=p` <ha-md-list innerRole="menu" itemRoles="menuitem" innerAriaLabel="${0}"> ${0} </ha-md-list> `),(0,r.J)(this.label),this.pages.map(t=>{const a=t.path.endsWith("#external-app-configuration");return(0,e.qy)(l||(l=p` <ha-md-list-item .type="${0}" .href="${0}" @click="${0}"> <div slot="start" class="${0}" .style="background-color: ${0}"> <ha-svg-icon .path="${0}" .secondaryPath="${0}" .viewBox="${0}"></ha-svg-icon> </div> <span slot="headline">${0}</span> ${0} ${0} </ha-md-list-item> `),a?"button":"link",a?void 0:t.path,a?this._handleExternalApp:void 0,t.iconColor?"icon-background":"",t.iconColor||"undefined",t.iconPath,t.iconSecondaryPath,t.iconViewBox,t.name,this.hasSecondary?(0,e.qy)(h||(h=p`<span slot="supporting-text">${0}</span>`),t.description):"",this.narrow?"":(0,e.qy)(c||(c=p`<ha-icon-next slot="end"></ha-icon-next>`)))}))}_handleExternalApp(){this.hass.auth.external.fireMessage({type:"config_screen/show"})}constructor(...t){super(...t),this.narrow=!1,this.hasSecondary=!1}}g.styles=(0,e.AH)(d||(d=p`ha-icon-next,ha-svg-icon{color:var(--secondary-text-color);height:24px;width:24px;display:block}ha-svg-icon{padding:8px}.icon-background{border-radius:var(--ha-border-radius-circle)}.icon-background ha-svg-icon{color:#fff}ha-md-list-item{font-size:var(--navigation-list-item-title-font-size)}`)),(0,o.Cg)([(0,n.MZ)({attribute:!1})],g.prototype,"hass",void 0),(0,o.Cg)([(0,n.MZ)({type:Boolean})],g.prototype,"narrow",void 0),(0,o.Cg)([(0,n.MZ)({attribute:!1})],g.prototype,"pages",void 0),(0,o.Cg)([(0,n.MZ)({attribute:"has-secondary",type:Boolean})],g.prototype,"hasSecondary",void 0),(0,o.Cg)([(0,n.MZ)()],g.prototype,"label",void 0),g=(0,o.Cg)([(0,n.EM)("ha-navigation-list")],g)},67505:function(t,a,i){var o=i(40445),e=i(96196),n=i(77845);i(67094);let r,s,l=t=>t;class h extends e.WF{render(){return this.hass?(0,e.qy)(r||(r=l` <ha-svg-icon .path="${0}"></ha-svg-icon> <span class="prefix">${0}</span> <span class="text"><slot></slot></span> `),"M12,2A7,7 0 0,1 19,9C19,11.38 17.81,13.47 16,14.74V17A1,1 0 0,1 15,18H9A1,1 0 0,1 8,17V14.74C6.19,13.47 5,11.38 5,9A7,7 0 0,1 12,2M9,21V20H15V21A1,1 0 0,1 14,22H10A1,1 0 0,1 9,21M12,4A5,5 0 0,0 7,9C7,11.05 8.23,12.81 10,13.58V16H14V13.58C15.77,12.81 17,11.05 17,9A5,5 0 0,0 12,4Z",this.hass.localize("ui.panel.config.tips.tip")):e.s6}}h.styles=(0,e.AH)(s||(s=l`:host{display:block;text-align:center}.text{direction:var(--direction);margin-left:2px;margin-inline-start:2px;margin-inline-end:initial;color:var(--secondary-text-color)}.prefix{font-weight:var(--ha-font-weight-medium)}`)),(0,o.Cg)([(0,n.MZ)({attribute:!1})],h.prototype,"hass",void 0),h=(0,o.Cg)([(0,n.EM)("ha-tip")],h)},34127:function(t,a,i){i.a(t,async function(t,a){try{i(62953);var o=i(40445),e=i(52630),n=i(96196),r=i(77845),s=t([e]);e=(s.then?(await s)():s)[0];let l,h=t=>t;class c extends e.A{static get styles(){return[e.A.styles,(0,n.AH)(l||(l=h`:host{--wa-tooltip-background-color:var(
            --ha-tooltip-background-color,
            var(--secondary-background-color)
          );--wa-tooltip-content-color:var(
            --ha-tooltip-text-color,
            var(--primary-text-color)
          );--wa-tooltip-font-family:var(
            --ha-tooltip-font-family,
            var(--ha-font-family-body)
          );--wa-tooltip-font-size:var(
            --ha-tooltip-font-size,
            var(--ha-font-size-s)
          );--wa-tooltip-font-weight:var(
            --ha-tooltip-font-weight,
            var(--ha-font-weight-normal)
          );--wa-tooltip-line-height:var(
            --ha-tooltip-line-height,
            var(--ha-line-height-condensed)
          );--wa-tooltip-padding:var(--ha-tooltip-padding, var(--ha-space-2));--wa-tooltip-border-radius:var(
            --ha-tooltip-border-radius,
            var(--ha-border-radius-sm)
          );--wa-tooltip-arrow-size:var(--ha-tooltip-arrow-size, 8px);--wa-tooltip-border-width:0px;--wa-z-index-tooltip:1000}`))]}constructor(...t){super(...t),this.showDelay=150,this.hideDelay=150}}(0,o.Cg)([(0,r.MZ)({attribute:"show-delay",type:Number})],c.prototype,"showDelay",void 0),(0,o.Cg)([(0,r.MZ)({attribute:"hide-delay",type:Number})],c.prototype,"hideDelay",void 0),c=(0,o.Cg)([(0,r.EM)("ha-tooltip")],c),a()}catch(l){a(l)}})},27330:function(t,a,i){i(62953);var o=i(40445),e=i(29781),n=i(71467),r=i(96196),s=i(77845);let l;class h extends e.${constructor(...t){super(...t),this.narrow=!1}}h.styles=[n.R,(0,r.AH)(l||(l=(t=>t)`header{padding-top:var(--safe-area-inset-top)}.mdc-top-app-bar__row{height:var(--header-height);border-bottom:var(--app-header-border-bottom)}.mdc-top-app-bar--fixed-adjust{padding-top:calc(var(--header-height,0px) + var(--safe-area-inset-top,0px));padding-bottom:var(--safe-area-inset-bottom);padding-right:var(--safe-area-inset-right)}:host([narrow]) .mdc-top-app-bar--fixed-adjust{padding-left:var(--safe-area-inset-left)}.mdc-top-app-bar{--mdc-typography-headline6-font-weight:var(--ha-font-weight-normal);color:var(--app-header-text-color,var(--mdc-theme-on-primary,#fff));background-color:var(--app-header-background-color,var(--mdc-theme-primary));padding-top:var(--safe-area-inset-top);padding-right:var(--safe-area-inset-right);transition:width var(--ha-animation-duration-normal) ease,padding-left var(--ha-animation-duration-normal) ease,padding-right var(--ha-animation-duration-normal) ease}:host([narrow]) .mdc-top-app-bar{padding-left:var(--safe-area-inset-left)}@media (prefers-reduced-motion:reduce){.mdc-top-app-bar{transition:1ms}}.mdc-top-app-bar__title{font-size:var(--ha-font-size-xl);padding-inline-start:var(--ha-space-6);padding-inline-end:initial}:host([narrow]) .mdc-top-app-bar__title{padding-inline-start:var(--ha-space-2)}`))],(0,o.Cg)([(0,s.MZ)({type:Boolean,reflect:!0})],h.prototype,"narrow",void 0),h=(0,o.Cg)([(0,s.EM)("ha-top-app-bar-fixed")],h)},34779:function(t,a,i){i.d(a,{uq:function(){return r},xP:function(){return s}});i(3362),i(62953);var o=i(1087),e=i(22444);const n=()=>Promise.all([i.e("72850"),i.e("33212"),i.e("46095"),i.e("46995"),i.e("123"),i.e("92769"),i.e("51308"),i.e("37752"),i.e("22167"),i.e("95468"),i.e("8851"),i.e("55145")]).then(i.bind(i,89704)),r=(t,a)=>{(0,o.r)(t,"show-dialog",{dialogTag:"ha-quick-bar",dialogImport:n,dialogParams:a,addHistory:!1})},s=()=>{(0,e.zU)("ha-quick-bar")}},9835:function(t,a,i){i.d(a,{eb:function(){return s},lD:function(){return r}});i(3362),i(62953);var o=i(1087);const e=()=>Promise.all([i.e("72850"),i.e("46095"),i.e("46995"),i.e("79996"),i.e("30976"),i.e("8026")]).then(i.bind(i,15903)),n=()=>Promise.all([i.e("11921"),i.e("56060")]).then(i.bind(i,25069)),r=t=>{(0,o.r)(t,"show-dialog",{dialogTag:"dialog-restart",dialogImport:e,dialogParams:{}})},s=(t,a)=>{(0,o.r)(t,"show-dialog",{dialogTag:"dialog-restart-wait",dialogImport:n,dialogParams:a})}},41631:function(t,a,i){i.d(a,{H:function(){return e}});i(3362),i(62953);var o=i(1087);const e=t=>(0,o.r)(t,"show-dialog",{dialogTag:"dialog-shortcuts",dialogImport:()=>Promise.all([i.e("34302"),i.e("15614")]).then(i.bind(i,9555))})},19612:function(t,a,i){i.a(t,async function(t,o){try{i.r(a);i(44114),i(26910),i(18111),i(22489),i(7588),i(61701),i(3362),i(17642),i(58004),i(33853),i(45876),i(32475),i(15024),i(31698),i(62953);var e=i(40445),n=i(96196),r=i(77845),s=i(22786),l=i(36312),h=(i(34296),i(76776),i(29823)),c=(i(70947),i(26300)),d=(i(43661),i(2054)),p=(i(67094),i(67505),i(27330),i(34127)),g=i(55782),u=i(24247),f=i(34779),v=i(9835),m=i(41631),y=i(54706),b=i(14503),w=i(36918),x=i(41570),$=i(84187),C=(i(20820),i(25635)),_=i(98712),k=(i(73524),i(87842)),z=t([h,c,d,p,_,k,u]);[h,c,d,p,_,k,u]=z.then?(await z)():z;let A,M,q,H,S,Z,B,E,W,V,j,I,P,D,L,O,F,T=t=>t;const R="M14.2 14.5V14.74C13.5 15.34 13 16.24 13 17.2V20H6.5C5 20 3.69 19.5 2.61 18.43C1.54 17.38 1 16.09 1 14.58C1 13.28 1.39 12.12 2.17 11.1S4 9.43 5.25 9.15C5.67 7.62 6.5 6.38 7.75 5.43S10.42 4 12 4C13.95 4 15.6 4.68 16.96 6.04C18.08 7.16 18.73 8.5 18.93 10C16.36 10.04 14.2 12.08 14.2 14.5M23 17.3V20.8C23 21.4 22.4 22 21.7 22H16.2C15.6 22 15 21.4 15 20.7V17.2C15 16.6 15.6 16 16.2 16V14.5C16.2 13.1 17.6 12 19 12S21.8 13.1 21.8 14.5V16C22.4 16 23 16.6 23 17.3M20.5 14.5C20.5 13.7 19.8 13.2 19 13.2S17.5 13.7 17.5 14.5V16H20.5V14.5Z",K="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",U="M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z",Q="M16.56,5.44L15.11,6.89C16.84,7.94 18,9.83 18,12A6,6 0 0,1 12,18A6,6 0 0,1 6,12C6,9.83 7.16,7.94 8.88,6.88L7.44,5.44C5.36,6.88 4,9.28 4,12A8,8 0 0,0 12,20A8,8 0 0,0 20,12C20,9.28 18.64,6.88 16.56,5.44M13,3H11V13H13",N="M17.65,6.35C16.2,4.9 14.21,4 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20C15.73,20 18.84,17.45 19.73,14H17.65C16.83,16.33 14.61,18 12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6C13.66,6 15.14,6.69 16.22,7.78L13,11H20V4L17.65,6.35Z",J=(t,a,i)=>{const o=[];let e=[{content:a.localize("ui.panel.config.tips.join",{forums:(0,n.qy)(A||(A=T`<a href="https://community.home-assistant.io" target="_blank" rel="noreferrer">${0}</a>`),a.localize("ui.panel.config.tips.join_forums")),twitter:(0,n.qy)(M||(M=T`<a href="${0}" target="_blank" rel="noreferrer">${0}</a>`),(0,w.o)(a,"/twitter"),a.localize("ui.panel.config.tips.join_x")),mastodon:(0,n.qy)(q||(q=T`<a href="${0}" target="_blank" rel="noreferrer">${0}</a>`),(0,w.o)(a,"/mastodon"),a.localize("ui.panel.config.tips.join_mastodon")),bluesky:(0,n.qy)(H||(H=T`<a href="${0}" target="_blank" rel="noreferrer">${0}</a>`),(0,w.o)(a,"/bluesky"),a.localize("ui.panel.config.tips.join_bluesky")),discord:(0,n.qy)(S||(S=T`<a href="${0}" target="_blank" rel="noreferrer">${0}</a>`),(0,w.o)(a,"/join-chat"),a.localize("ui.panel.config.tips.join_chat")),blog:(0,n.qy)(Z||(Z=T`<a href="${0}" target="_blank" rel="noreferrer">${0}</a>`),(0,w.o)(a,"/blog"),a.localize("ui.panel.config.tips.join_blog")),newsletter:(0,n.qy)(B||(B=T`<span class="keep-together"><a href="https://newsletter.openhomefoundation.org/" target="_blank" rel="noreferrer">${0}</a> </span>`),a.localize("ui.panel.config.tips.join_newsletter"))}),weight:2,narrow:!0}];if(null!=a&&a.enableShortcuts&&!$.M){const i={keyboard_shortcut:(0,n.qy)(E||(E=T`<a href="#" @click="${0}">${0}</a>`),t,a.localize("ui.tips.keyboard_shortcut"))};e.push({content:a.localize("ui.tips.key_c_tip",i),weight:1,narrow:!1},{content:a.localize("ui.tips.key_m_tip",i),weight:1,narrow:!1},{content:a.localize("ui.tips.key_a_tip",i),weight:1,narrow:!1},{content:a.localize("ui.tips.key_shortcut_quick_search",Object.assign(Object.assign({},i),{},{modifier:x.c?"⌘":"Ctrl"})),weight:1,narrow:!1})}return i&&(e=e.filter(t=>t.narrow)),e.forEach(t=>{for(let a=0;a<t.weight;a++)o.push(t.content)}),o[Math.floor(Math.random()*o.length)]};class G extends((0,y.E)(n.WF)){hassSubscribe(){return[(0,g.TP)(this.hass.connection,t=>{const a=t.issues.filter(t=>!t.ignored);this._repairsIssues={issues:a.sort((t,a)=>g.Qk[t.severity]-g.Qk[a.severity]).slice(0,3===a.length?a.length:2),total:a.length};const i=new Set;for(const o of this._repairsIssues.issues)i.add(o.domain);this.hass.loadBackendTranslation("issues",[...i])})]}render(){var t;const a=[this.hass.localize("ui.dialogs.quick-bar.title"),this.hass.enableShortcuts&&!$.M?x.c?"(⌘ + K)":"(Ctrl + K)":void 0].filter(Boolean).join(" "),{updates:i,total:o}=this._filterUpdateEntitiesParameterized(this.hass.states,this.hass.entities),{issues:e,total:r}=this._repairsIssues;return(0,n.qy)(W||(W=T` <ha-top-app-bar-fixed .narrow="${0}"> <ha-menu-button slot="navigationIcon" .hass="${0}" .narrow="${0}"></ha-menu-button> <div slot="title">${0}</div> <ha-icon-button slot="actionItems" id="button-quick-bar" .label="${0}" .path="${0}" hide-title @click="${0}"></ha-icon-button> <ha-tooltip placement="bottom" for="button-quick-bar">${0}</ha-tooltip> <ha-dropdown slot="actionItems" @wa-select="${0}"> <ha-icon-button slot="trigger" .label="${0}" .path="${0}"></ha-icon-button> <ha-dropdown-item value="check-updates"> ${0} <ha-svg-icon slot="icon" .path="${0}"></ha-svg-icon> </ha-dropdown-item> <ha-dropdown-item value="restart"> ${0} <ha-svg-icon slot="icon" .path="${0}"></ha-svg-icon> </ha-dropdown-item> </ha-dropdown> <ha-config-section .narrow="${0}" .isWide="${0}" full-width> ${0} ${0} <ha-tip .hass="${0}">${0}</ha-tip> </ha-config-section> </ha-top-app-bar-fixed> `),this.narrow,this.hass,this.narrow,this.hass.localize("panel.config"),a,U,this._showQuickBar,a,this._handleMenuAction,this.hass.localize("ui.common.menu"),K,this.hass.localize("ui.panel.config.updates.check_updates"),N,this.hass.localize("ui.panel.config.system_dashboard.restart_homeassistant"),Q,this.narrow,this.isWide,e.length||i.length?(0,n.qy)(V||(V=T`<ha-card outlined> ${0} ${0} ${0} </ha-card>`),e.length?(0,n.qy)(j||(j=T` <ha-config-repairs .hass="${0}" .narrow="${0}" .total="${0}" .repairsIssues="${0}"></ha-config-repairs> ${0} `),this.hass,this.narrow,r,e,r>e.length?(0,n.qy)(I||(I=T` <ha-assist-chip href="/config/repairs" .label="${0}"> </ha-assist-chip> `),this.hass.localize("ui.panel.config.repairs.more_repairs",{count:r-e.length})):""):"",e.length&&i.length?(0,n.qy)(P||(P=T`<hr>`)):"",i.length?(0,n.qy)(D||(D=T` <ha-config-updates .hass="${0}" .narrow="${0}" .total="${0}" .updateEntities="${0}" .isInstallable="${0}"></ha-config-updates> ${0} `),this.hass,this.narrow,o,i,!0,o>i.length?(0,n.qy)(L||(L=T` <ha-assist-chip href="/config/updates" label="${0}"> </ha-assist-chip> `),this.hass.localize("ui.panel.config.updates.more_updates",{count:o-i.length})):""):""):"",this._pages(this.cloudStatus,(0,l.x)(this.hass,"cloud"),null===(t=this.hass.auth.external)||void 0===t?void 0:t.config.hasSettingsScreen).map(t=>0===t.length?n.s6:(0,n.qy)(O||(O=T` <ha-card outlined> <ha-config-navigation .hass="${0}" .narrow="${0}" .pages="${0}"></ha-config-navigation> </ha-card> `),this.hass,this.narrow,t)),this.hass,this._tip)}updated(t){super.updated(t),!this._tip&&t.has("hass")&&(this._tip=J(this._openShortcutDialog,this.hass,this.narrow))}_openShortcutDialog(t){t.preventDefault(),(0,m.H)(this)}_showQuickBar(){(0,f.uq)(this,{showHint:this.hass.enableShortcuts})}async _handleMenuAction(t){switch(t.detail.item.value){case"check-updates":(0,u.nD)(this,this.hass);break;case"restart":(0,v.lD)(this)}}static get styles(){return[b.RF,(0,n.AH)(F||(F=T`:host(:not([narrow])) ha-card:last-child{margin-bottom:24px}ha-config-section{margin:auto;margin-top:-32px;max-width:600px}ha-card{overflow:hidden}ha-card a{text-decoration:none;color:var(--primary-text-color)}ha-assist-chip{margin:8px 16px 16px 16px}.title{font-size:var(--ha-font-size-l);padding:16px;padding-bottom:0}@media all and (max-width:600px){ha-card{border-width:1px 0;border-radius:var(--ha-border-radius-square);box-shadow:unset}ha-config-section{margin-top:-42px}}ha-tip{margin-bottom:8px}.new{color:var(--primary-color)}.keep-together{display:inline-block}hr{height:1px;background-color:var(--ha-card-border-color,var(--divider-color,#e0e0e0));border:none;margin-top:0}`))]}constructor(...t){super(...t),this.narrow=!1,this.isWide=!1,this._repairsIssues={issues:[],total:0},this._pages=(0,s.A)((t,a,i)=>[a?[{component:"cloud",path:"/config/cloud",name:"Home Assistant Cloud",info:t,iconPath:R,iconColor:"#3B808E",translationKey:"cloud"},...C.configSections.dashboard]:C.configSections.dashboard,i?C.configSections.dashboard_external_settings:[],C.configSections.dashboard_2,C.configSections.dashboard_3]),this._filterUpdateEntitiesParameterized=(0,s.A)((t,a)=>{const i=(0,u.id)(t,!1,!1).filter(t=>{var i;return!(null!==(i=a[t.entity_id])&&void 0!==i&&i.hidden)});return{updates:i.slice(0,3===i.length?i.length:2),total:i.length}})}}(0,e.Cg)([(0,r.MZ)({attribute:!1})],G.prototype,"hass",void 0),(0,e.Cg)([(0,r.MZ)({type:Boolean,reflect:!0})],G.prototype,"narrow",void 0),(0,e.Cg)([(0,r.MZ)({attribute:"is-wide",type:Boolean})],G.prototype,"isWide",void 0),(0,e.Cg)([(0,r.MZ)({attribute:!1})],G.prototype,"cloudStatus",void 0),(0,e.Cg)([(0,r.wk)()],G.prototype,"_tip",void 0),(0,e.Cg)([(0,r.wk)()],G.prototype,"_repairsIssues",void 0),G=(0,e.Cg)([(0,r.EM)("ha-config-dashboard")],G),o()}catch(A){o(A)}})},73524:function(t,a,i){i(89463),i(18111),i(61701),i(62953);var o=i(40445),e=i(96196),n=i(77845),r=i(29006),s=(i(76776),i(43661),i(59397),i(77423));let l,h,c=t=>t;class d extends e.WF{firstUpdated(t){super.firstUpdated(t),(0,s.VN)(this.hass,{domain:"bluetooth"}).then(t=>{this._hasBluetoothConfigEntries=t.length>0})}render(){const t=(0,r.F)(this.hass,this.pages,{hasBluetoothConfigEntries:this._hasBluetoothConfigEntries}).map(t=>Object.assign(Object.assign({},t),{},{name:t.name||this.hass.localize(`ui.panel.config.dashboard.${t.translationKey}.main`),description:"cloud"===t.component&&t.info?t.info.logged_in?`\n                  ${this.hass.localize("ui.panel.config.cloud.description_login")}\n                `:`\n                  ${this.hass.localize("ui.panel.config.cloud.description_features")}\n                `:`\n                ${t.description||this.hass.localize(`ui.panel.config.dashboard.${t.translationKey}.secondary`)}\n              `}));return(0,e.qy)(l||(l=c` <div class="visually-hidden" role="heading" aria-level="2"> ${0} </div> <ha-navigation-list has-secondary .hass="${0}" .narrow="${0}" .pages="${0}" .label="${0}"></ha-navigation-list> `),this.hass.localize("panel.config"),this.hass,this.narrow,t,this.hass.localize("panel.config"))}constructor(...t){super(...t),this.narrow=!1,this._hasBluetoothConfigEntries=!1}}d.styles=(0,e.AH)(h||(h=c`ha-navigation-list{--navigation-list-item-title-font-size:var(--ha-font-size-l)}.visually-hidden{position:absolute;overflow:hidden;clip:rect(0 0 0 0);height:1px;width:1px;margin:-1px;padding:0;border:0}`)),(0,o.Cg)([(0,n.MZ)({attribute:!1})],d.prototype,"hass",void 0),(0,o.Cg)([(0,n.MZ)({type:Boolean})],d.prototype,"narrow",void 0),(0,o.Cg)([(0,n.MZ)({attribute:!1})],d.prototype,"pages",void 0),(0,o.Cg)([(0,n.wk)()],d.prototype,"_hasBluetoothConfigEntries",void 0),d=(0,o.Cg)([(0,n.EM)("ha-config-navigation")],d)},20820:function(t,a,i){i(62953);var o=i(40445),e=i(96196),n=i(77845),r=i(94333);let s,l,h=t=>t;class c extends e.WF{render(){return(0,e.qy)(s||(s=h` <div class="content ${0}"> <div class="header"><slot name="header"></slot></div> <div class="together layout ${0}"> <div class="intro"><slot name="introduction"></slot></div> <div class="panel flex-auto"><slot></slot></div> </div> </div> `),(0,r.H)({narrow:!this.isWide,"full-width":this.fullWidth}),(0,r.H)({narrow:!this.isWide,vertical:this.vertical||!this.isWide,horizontal:!this.vertical&&this.isWide}))}constructor(...t){super(...t),this.isWide=!1,this.vertical=!1,this.fullWidth=!1}}c.styles=(0,e.AH)(l||(l=h`:host{display:block}.content{padding:28px 20px 0;max-width:1040px;margin:0 auto}.layout{display:flex}.horizontal{flex-direction:row}.vertical{flex-direction:column}.flex-auto{flex:1 1 auto}.header{font-family:var(--ha-font-family-body);-webkit-font-smoothing:var(--ha-font-smoothing);-moz-osx-font-smoothing:var(--ha-moz-osx-font-smoothing);font-size:var(--ha-font-size-2xl);font-weight:var(--ha-font-weight-normal);line-height:var(--ha-line-height-condensed);opacity:var(--dark-primary-opacity)}.together{margin-top:var(--config-section-content-together-margin-top,32px)}.intro{font-family:var(--ha-font-family-body);-webkit-font-smoothing:var(--ha-font-smoothing);-moz-osx-font-smoothing:var(--ha-moz-osx-font-smoothing);font-weight:var(--ha-font-weight-normal);line-height:var(--ha-line-height-normal);width:100%;opacity:var(--dark-primary-opacity);font-size:var(--ha-font-size-m);padding-bottom:20px}.horizontal .intro{max-width:400px;margin-right:40px;margin-inline-end:40px;margin-inline-start:initial}.panel{margin-top:-24px}.panel ::slotted(*){margin-top:24px;display:block}.narrow.content{max-width:640px}.narrow .together{margin-top:var(--config-section-narrow-content-together-margin-top,var(--config-section-content-together-margin-top,20px))}.narrow .intro{padding-bottom:20px;margin-right:0;margin-inline-end:0;margin-inline-start:initial;max-width:500px}.full-width{padding:0}.full-width .layout{flex-direction:column}`)),(0,o.Cg)([(0,n.MZ)({attribute:"is-wide",type:Boolean})],c.prototype,"isWide",void 0),(0,o.Cg)([(0,n.MZ)({type:Boolean})],c.prototype,"vertical",void 0),(0,o.Cg)([(0,n.MZ)({type:Boolean,attribute:"full-width"})],c.prototype,"fullWidth",void 0),c=(0,o.Cg)([(0,n.EM)("ha-config-section")],c)},41570:function(t,a,i){i.d(a,{c:function(){return o}});i(27495);const o=/Mac/i.test(navigator.userAgent)},84187:function(t,a,i){i.d(a,{M:function(){return o}});i(27495);const o=/(?:iphone|android|ipad)/i.test(navigator.userAgent)}}]);
//# sourceMappingURL=70861.3a6965e5eeae6af4.js.map