"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["35123"],{26218:function(t,a,e){e.d(a,{a:function(){return i}});e(16280);const o=(0,e(77796).n)(t=>{history.replaceState({scrollPosition:t},"")},300);function i(t){return(a,e)=>{if("object"==typeof e)throw new Error("This decorator does not support this compilation type.");const i=a.connectedCallback;a.connectedCallback=function(){i.call(this);const a=this[e];a&&this.updateComplete.then(()=>{const e=this.renderRoot.querySelector(t);e&&setTimeout(()=>{e.scrollTop=a},0)})};const r=Object.getOwnPropertyDescriptor(a,e);let n;if(void 0===r)n={get(){var t;return this[`__${String(e)}`]||(null===(t=history.state)||void 0===t?void 0:t.scrollPosition)},set(t){o(t),this[`__${String(e)}`]=t},configurable:!0,enumerable:!0};else{const t=r.set;n=Object.assign(Object.assign({},r),{},{set(a){o(a),this[`__${String(e)}`]=a,null==t||t.call(this,a)}})}Object.defineProperty(a,e,n)}}},77796:function(t,a,e){e.d(a,{n:function(){return o}});e(62953);const o=(t,a,e=!0,o=!0)=>{let i,r=0;const n=(...n)=>{const s=()=>{r=!1===e?0:Date.now(),i=void 0,t(...n)},l=Date.now();r||!1!==e||(r=l);const c=a-(l-r);c<=0||c>a?(i&&(clearTimeout(i),i=void 0),r=l,t(...n)):i||!1===o||(i=window.setTimeout(s,c))};return n.cancel=()=>{clearTimeout(i),i=void 0,r=0},n}},76776:function(t,a,e){e(62953);var o=e(40445),i=e(96196),r=e(77845);let n,s,l,c=t=>t;class h extends i.WF{render(){return(0,i.qy)(n||(n=c` ${0} <slot></slot> `),this.header?(0,i.qy)(s||(s=c`<h1 class="card-header">${0}</h1>`),this.header):i.s6)}constructor(...t){super(...t),this.raised=!1}}h.styles=(0,i.AH)(l||(l=c`:host{background:var(--ha-card-background,var(--card-background-color,#fff));-webkit-backdrop-filter:var(--ha-card-backdrop-filter,none);backdrop-filter:var(--ha-card-backdrop-filter,none);box-shadow:var(--ha-card-box-shadow,none);box-sizing:border-box;border-radius:var(--ha-card-border-radius,var(--ha-border-radius-lg));border-width:var(--ha-card-border-width,1px);border-style:solid;border-color:var(--ha-card-border-color,var(--divider-color,#e0e0e0));color:var(--primary-text-color);display:block;transition:all .3s ease-out;position:relative}:host([raised]){border:none;box-shadow:var(--ha-card-box-shadow,0px 2px 1px -1px rgba(0,0,0,.2),0px 1px 1px 0px rgba(0,0,0,.14),0px 1px 3px 0px rgba(0,0,0,.12))}.card-header,:host ::slotted(.card-header){color:var(--ha-card-header-color,var(--primary-text-color));font-family:var(--ha-card-header-font-family, inherit);font-size:var(--ha-card-header-font-size, var(--ha-font-size-2xl));letter-spacing:-.012em;line-height:var(--ha-line-height-expanded);padding:var(--ha-space-3) var(--ha-space-4) var(--ha-space-4);display:block;margin-block-start:0;margin-block-end:0;font-weight:var(--ha-font-weight-normal)}
    :host
      ::slotted(
        .card-content:not(:nth-child(1 of .card-content, .card-header))
      ),
    slot:not(:first-child)::slotted(.card-content) {
      padding-top: 0;
      margin-top: calc(var(--ha-space-2) * -1);
    }
    :host ::slotted(.card-content){padding:var(--ha-space-4)}:host ::slotted(.card-actions){border-top:1px solid var(--divider-color,#e8e8e8);padding:var(--ha-space-2)}`)),(0,o.Cg)([(0,r.MZ)()],h.prototype,"header",void 0),(0,o.Cg)([(0,r.MZ)({type:Boolean,reflect:!0})],h.prototype,"raised",void 0),h=(0,o.Cg)([(0,r.EM)("ha-card")],h)},90248:function(t,a,e){e.a(t,async function(t,o){try{e.r(a),e.d(a,{HaIconButtonArrowPrev:function(){return g}});e(62953);var i=e(40445),r=e(96196),n=e(77845),s=e(63091),l=e(26300),c=t([l]);l=(c.then?(await c)():c)[0];let h,d=t=>t;const p="M20,11V13H8L13.5,18.5L12.08,19.92L4.16,12L12.08,4.08L13.5,5.5L8,11H20Z",u="M4,11V13H16L10.5,18.5L11.92,19.92L19.84,12L11.92,4.08L10.5,5.5L16,11H4Z";class g extends r.WF{render(){var t;return(0,r.qy)(h||(h=d` <ha-icon-button .disabled="${0}" .label="${0}" .path="${0}" .href="${0}" .target="${0}" .rel="${0}" .download="${0}"></ha-icon-button> `),this.disabled,this.label||(null===(t=this.hass)||void 0===t?void 0:t.localize("ui.common.back"))||"Back",this._icon,this.href,this.target,this.rel,this.download)}constructor(...t){super(...t),this.disabled=!1,this._icon="rtl"===s.G.document.dir?u:p}}(0,i.Cg)([(0,n.MZ)({attribute:!1})],g.prototype,"hass",void 0),(0,i.Cg)([(0,n.MZ)({type:Boolean})],g.prototype,"disabled",void 0),(0,i.Cg)([(0,n.MZ)()],g.prototype,"label",void 0),(0,i.Cg)([(0,n.MZ)()],g.prototype,"href",void 0),(0,i.Cg)([(0,n.MZ)()],g.prototype,"target",void 0),(0,i.Cg)([(0,n.MZ)()],g.prototype,"rel",void 0),(0,i.Cg)([(0,n.MZ)()],g.prototype,"download",void 0),(0,i.Cg)([(0,n.wk)()],g.prototype,"_icon",void 0),g=(0,i.Cg)([(0,n.EM)("ha-icon-button-arrow-prev")],g),o()}catch(h){o(h)}})},26300:function(t,a,e){e.a(t,async function(t,o){try{e.r(a),e.d(a,{HaIconButton:function(){return v}});e(62953);var i=e(40445),r=e(96196),n=e(77845),s=e(32288),l=e(18350),c=(e(67094),t([l]));l=(c.then?(await c)():c)[0];let h,d,p,u,g=t=>t;class v extends r.WF{render(){return(0,r.qy)(h||(h=g` <ha-button appearance="plain" variant="neutral" aria-label="${0}" title="${0}" aria-haspopup="${0}" .disabled="${0}" .iconTag="${0}" .href="${0}" .target="${0}" .rel="${0}" .download="${0}"> ${0} </ha-button> `),(0,s.J)(this.label),(0,s.J)(this.hideTitle?void 0:this.label),(0,s.J)(this.ariaHasPopup),this.disabled,this.path?"ha-svg-icon":"span",this.href,this.target,this.rel,this.download,this.path?(0,r.qy)(d||(d=g`<ha-svg-icon .path="${0}"></ha-svg-icon>`),this.path):(0,r.qy)(p||(p=g`<span><slot></slot></span>`)))}constructor(...t){super(...t),this.disabled=!1,this.hideTitle=!1,this.selected=!1}}v.shadowRootOptions={mode:"open",delegatesFocus:!0},v.styles=(0,r.AH)(u||(u=g`:host{display:inline-block;outline:0;--ha-button-height:var(--ha-icon-button-size, 48px)}ha-button{position:relative;isolation:isolate;--wa-form-control-padding-inline:var(
        --ha-icon-button-padding-inline,
        --ha-space-2
      );--wa-color-on-normal:currentColor;--wa-color-fill-quiet:transparent;--ha-button-label-overflow:visible}ha-button::after{content:"";position:absolute;inset:0;z-index:-1;border-radius:50%;background-color:currentColor;opacity:0;pointer-events:none}ha-button::part(base){width:var(--wa-form-control-height);aspect-ratio:1;outline-offset:-4px}ha-button::part(label){display:flex}:host([selected]) ha-button::after{opacity:.1}@media (hover:hover){:host(:hover:not([disabled])) ha-button::after{opacity:.1}}`)),(0,i.Cg)([(0,n.MZ)({type:Boolean,reflect:!0})],v.prototype,"disabled",void 0),(0,i.Cg)([(0,n.MZ)({type:String})],v.prototype,"path",void 0),(0,i.Cg)([(0,n.MZ)({type:String})],v.prototype,"label",void 0),(0,i.Cg)([(0,n.MZ)({type:String,attribute:"aria-haspopup"})],v.prototype,"ariaHasPopup",void 0),(0,i.Cg)([(0,n.MZ)({attribute:"hide-title",type:Boolean})],v.prototype,"hideTitle",void 0),(0,i.Cg)([(0,n.MZ)({type:Boolean,reflect:!0})],v.prototype,"selected",void 0),(0,i.Cg)([(0,n.MZ)()],v.prototype,"href",void 0),(0,i.Cg)([(0,n.MZ)()],v.prototype,"target",void 0),(0,i.Cg)([(0,n.MZ)()],v.prototype,"rel",void 0),(0,i.Cg)([(0,n.MZ)()],v.prototype,"download",void 0),v=(0,i.Cg)([(0,n.EM)("ha-icon-button")],v),o()}catch(h){o(h)}})},2846:function(t,a,e){e.d(a,{G:function(){return p},J:function(){return d}});var o=e(40445),i=e(12415),r=e(82553),n=e(96196),s=e(77845);e(54276);let l,c,h=t=>t;const d=[r.R,(0,n.AH)(l||(l=h`:host{--ha-icon-display:block;--md-sys-color-primary:var(--primary-text-color);--md-sys-color-secondary:var(--secondary-text-color);--md-sys-color-surface:var(--card-background-color);--md-sys-color-on-surface:var(--primary-text-color);--md-sys-color-on-surface-variant:var(--secondary-text-color)}md-item{overflow:var(--md-item-overflow,hidden);align-items:var(--md-item-align-items,center);gap:var(--ha-md-list-item-gap,16px)}`))];class p extends i.n{renderRipple(){return"text"===this.type?n.s6:(0,n.qy)(c||(c=h`<ha-ripple part="ripple" for="item" ?disabled="${0}"></ha-ripple>`),this.disabled&&"link"!==this.type)}}p.styles=d,p=(0,o.Cg)([(0,s.EM)("ha-md-list-item")],p)},17308:function(t,a,e){var o=e(40445),i=e(49838),r=e(11245),n=e(96196),s=e(77845);let l;class c extends i.B{}c.styles=[r.R,(0,n.AH)(l||(l=(t=>t)`:host{--md-sys-color-surface:var(--card-background-color)}`))],c=(0,o.Cg)([(0,s.EM)("ha-md-list")],c)},2054:function(t,a,e){e.a(t,async function(t,a){try{e(16280),e(62953);var o=e(40445),i=e(96196),r=e(77845),n=e(1087),s=e(44249),l=e(26300),c=t([l]);l=(c.then?(await c)():c)[0];let h,d,p,u=t=>t;const g="M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z";class v extends i.WF{connectedCallback(){super.connectedCallback(),this._attachNotifOnConnect&&(this._attachNotifOnConnect=!1,this._subscribeNotifications())}disconnectedCallback(){super.disconnectedCallback(),this._unsubNotifications&&(this._attachNotifOnConnect=!0,this._unsubNotifications(),this._unsubNotifications=void 0)}render(){if(!this._show)return i.s6;const t=this._hasNotifications&&(this.narrow||"always_hidden"===this.hass.dockedSidebar);return(0,i.qy)(h||(h=u` <ha-icon-button .label="${0}" .path="${0}" @click="${0}"></ha-icon-button> ${0} `),this.hass.localize("ui.sidebar.sidebar_toggle"),g,this._toggleMenu,t?(0,i.qy)(d||(d=u`<div class="dot"></div>`)):"")}willUpdate(t){if(super.willUpdate(t),!t.has("narrow")&&!t.has("hass"))return;const a=t.has("hass")?t.get("hass"):this.hass,e=t.has("narrow")?t.get("narrow"):this.narrow,o=!1===(null==a?void 0:a.kioskMode)&&(e||"always_hidden"===(null==a?void 0:a.dockedSidebar)),i=!1===this.hass.kioskMode&&(this.narrow||"always_hidden"===this.hass.dockedSidebar);this.hasUpdated&&o===i||(this._show=i||this._alwaysVisible,i?this._subscribeNotifications():this._unsubNotifications&&(this._unsubNotifications(),this._unsubNotifications=void 0))}_subscribeNotifications(){if(this._unsubNotifications)throw new Error("Already subscribed");this._unsubNotifications=(0,s.V)(this.hass.connection,t=>{this._hasNotifications=t.length>0})}_toggleMenu(){(0,n.r)(this,"hass-toggle-menu")}constructor(...t){super(...t),this.narrow=!1,this._hasNotifications=!1,this._show=!1,this._alwaysVisible=!1,this._attachNotifOnConnect=!1}}v.styles=(0,i.AH)(p||(p=u`:host{position:relative}.dot{pointer-events:none;position:absolute;background-color:var(--accent-color);width:12px;height:12px;top:9px;right:7px;inset-inline-end:7px;inset-inline-start:initial;border-radius:var(--ha-border-radius-circle);border:2px solid var(--app-header-background-color)}`)),(0,o.Cg)([(0,r.MZ)({type:Boolean})],v.prototype,"narrow",void 0),(0,o.Cg)([(0,r.MZ)({attribute:!1})],v.prototype,"hass",void 0),(0,o.Cg)([(0,r.wk)()],v.prototype,"_hasNotifications",void 0),(0,o.Cg)([(0,r.wk)()],v.prototype,"_show",void 0),v=(0,o.Cg)([(0,r.EM)("ha-menu-button")],v),a()}catch(h){a(h)}})},54276:function(t,a,e){e(62953);var o=e(40445),i=e(76482),r=e(91382),n=e(96245),s=e(96196),l=e(77845);let c;class h extends r.n{attach(t){super.attach(t),this.attachableTouchController.attach(t)}disconnectedCallback(){super.disconnectedCallback(),this.hovered=!1,this.pressed=!1}detach(){super.detach(),this.attachableTouchController.detach()}_onTouchControlChange(t,a){null==t||t.removeEventListener("touchend",this._handleTouchEnd),null==a||a.addEventListener("touchend",this._handleTouchEnd)}constructor(...t){super(...t),this.attachableTouchController=new i.i(this,this._onTouchControlChange.bind(this)),this._handleTouchEnd=()=>{this.disabled||super.endPressAnimation()}}}h.styles=[n.R,(0,s.AH)(c||(c=(t=>t)`:host{--md-ripple-hover-opacity:var(--ha-ripple-hover-opacity, 0.08);--md-ripple-pressed-opacity:var(--ha-ripple-pressed-opacity, 0.12);--md-ripple-hover-color:var(
          --ha-ripple-hover-color,
          var(--ha-ripple-color, var(--secondary-text-color))
        );--md-ripple-pressed-color:var(
          --ha-ripple-pressed-color,
          var(--ha-ripple-color, var(--secondary-text-color))
        )}`))],h=(0,o.Cg)([(0,l.EM)("ha-ripple")],h)},67094:function(t,a,e){e.r(a),e.d(a,{HaSvgIcon:function(){return d}});var o=e(40445),i=e(96196),r=e(77845);let n,s,l,c,h=t=>t;class d extends i.WF{render(){return(0,i.JW)(n||(n=h` <svg viewBox="${0}" preserveAspectRatio="xMidYMid meet" focusable="false" role="img" aria-hidden="true"> <g> ${0} ${0} </g> </svg>`),this.viewBox||"0 0 24 24",this.path?(0,i.JW)(s||(s=h`<path class="primary-path" d="${0}"></path>`),this.path):i.s6,this.secondaryPath?(0,i.JW)(l||(l=h`<path class="secondary-path" d="${0}"></path>`),this.secondaryPath):i.s6)}}d.styles=(0,i.AH)(c||(c=h`:host{display:var(--ha-icon-display,inline-flex);align-items:center;justify-content:center;position:relative;vertical-align:middle;fill:var(--icon-primary-color,currentcolor);width:var(--mdc-icon-size,24px);height:var(--mdc-icon-size,24px)}svg{width:100%;height:100%;pointer-events:none;display:block}path.primary-path{opacity:var(--icon-primary-opactity, 1)}path.secondary-path{fill:var(--icon-secondary-color,currentcolor);opacity:var(--icon-secondary-opactity, .5)}`)),(0,o.Cg)([(0,r.MZ)()],d.prototype,"path",void 0),(0,o.Cg)([(0,r.MZ)({attribute:!1})],d.prototype,"secondaryPath",void 0),(0,o.Cg)([(0,r.MZ)({attribute:!1})],d.prototype,"viewBox",void 0),d=(0,o.Cg)([(0,r.EM)("ha-svg-icon")],d)},44249:function(t,a,e){e.d(a,{V:function(){return o}});e(62953);const o=(t,a)=>{const e=new i,o=t.subscribeMessage(t=>a(e.processMessage(t)),{type:"persistent_notification/subscribe"});return()=>{o.then(t=>null==t?void 0:t())}};class i{processMessage(t){if("removed"===t.type)for(const a of Object.keys(t.notifications))delete this.notifications[a];else this.notifications={...this.notifications,...t.notifications};return Object.values(this.notifications)}constructor(){this.notifications={}}}},84621:function(t,a,e){e.d(a,{$:function(){return _},A2:function(){return A},C2:function(){return o},Iu:function(){return M},Ky:function(){return h},Lj:function(){return c},Mo:function(){return Z},On:function(){return s},P0:function(){return z},PA:function(){return l},Qo:function(){return k},RW:function(){return C},Uc:function(){return n},Ui:function(){return m},VC:function(){return P},VK:function(){return H},Yf:function(){return L},ZU:function(){return r},cm:function(){return v},f7:function(){return W},hi:function(){return w},i_:function(){return u},jm:function(){return E},kH:function(){return d},ks:function(){return p},oM:function(){return g},p7:function(){return $},pl:function(){return f},rv:function(){return b},sb:function(){return T},tg:function(){return S},tv:function(){return x},xU:function(){return i},zt:function(){return y}});const o=(t,a,e)=>t.connection.subscribeMessage(t=>e(t),{type:"zha/devices/reconfigure",ieee:a}),i=t=>t.callWS({type:"zha/topology/update"}),r=(t,a,e,o,i)=>t.callWS({type:"zha/devices/clusters/attributes",ieee:a,endpoint_id:e,cluster_id:o,cluster_type:i}),n=t=>t.callWS({type:"zha/devices"}),s=(t,a)=>t.callWS({type:"zha/device",ieee:a}),l=(t,a)=>t.callWS({type:"zha/devices/bindable",ieee:a}),c=(t,a,e)=>t.callWS({type:"zha/devices/bind",source_ieee:a,target_ieee:e}),h=(t,a,e)=>t.callWS({type:"zha/devices/unbind",source_ieee:a,target_ieee:e}),d=(t,a,e,o)=>t.callWS({type:"zha/groups/bind",source_ieee:a,group_id:e,bindings:o}),p=(t,a,e,o)=>t.callWS({type:"zha/groups/unbind",source_ieee:a,group_id:e,bindings:o}),u=(t,a)=>t.callWS(Object.assign(Object.assign({},a),{},{type:"zha/devices/clusters/attributes/value"})),g=(t,a,e,o,i)=>t.callWS({type:"zha/devices/clusters/commands",ieee:a,endpoint_id:e,cluster_id:o,cluster_type:i}),v=(t,a)=>t.callWS({type:"zha/devices/clusters",ieee:a}),f=t=>t.callWS({type:"zha/groups"}),b=(t,a)=>t.callWS({type:"zha/group/remove",group_ids:a}),m=(t,a)=>t.callWS({type:"zha/group",group_id:a}),y=t=>t.callWS({type:"zha/devices/groupable"}),w=(t,a,e)=>t.callWS({type:"zha/group/members/add",group_id:a,members:e}),x=(t,a,e)=>t.callWS({type:"zha/group/members/remove",group_id:a,members:e}),_=(t,a,e,o)=>t.callWS({type:"zha/group/add",group_name:a,group_id:e,members:o}),k=t=>t.callWS({type:"zha/configuration"}),C=(t,a)=>t.callWS({type:"zha/configuration/update",data:a}),z=t=>t.callWS({type:"zha/network/settings"}),M=t=>t.callWS({type:"zha/network/backups/create"}),$=(t,a)=>t.callWS({type:"zha/network/change_channel",new_channel:a}),S="INITIALIZED",Z="INTERVIEW_COMPLETE",W="CONFIGURED",H=["PAIRED",W,Z],P=["device_joined","raw_device_initialized","device_fully_initialized"],E="log_output",A="zha_channel_bind",T="zha_channel_configure_reporting",L="zha_channel_cfg_done"},81310:function(t,a,e){e.a(t,async function(t,a){try{e(62953);var o=e(40445),i=e(96196),r=e(77845),n=e(94333),s=e(26218),l=e(91926),c=e(90248),h=e(2054),d=e(14503),p=t([c,h]);[c,h]=p.then?(await p)():p;let u,g,v,f,b,m=t=>t;class y extends i.WF{render(){var t;return(0,i.qy)(u||(u=m` <div class="toolbar ${0}"> <div class="toolbar-content"> ${0} <div class="main-title"> <slot name="header">${0}</slot> </div> <slot name="toolbar-icon"></slot> </div> </div> <div class="content ha-scrollbar" @scroll="${0}"> <slot></slot> </div> <div id="fab"> <slot name="fab"></slot> </div> `),(0,n.H)({narrow:this.narrow}),this.mainPage||null!==(t=history.state)&&void 0!==t&&t.root?(0,i.qy)(g||(g=m` <ha-menu-button .hass="${0}" .narrow="${0}"></ha-menu-button> `),this.hass,this.narrow):this.backPath?(0,i.qy)(v||(v=m` <ha-icon-button-arrow-prev href="${0}" .hass="${0}"></ha-icon-button-arrow-prev> `),this.backPath,this.hass):(0,i.qy)(f||(f=m` <ha-icon-button-arrow-prev .hass="${0}" @click="${0}"></ha-icon-button-arrow-prev> `),this.hass,this._backTapped),this.header,this._saveScrollPos)}_saveScrollPos(t){this._savedScrollPos=t.target.scrollTop}_backTapped(){this.backCallback?this.backCallback():(0,l.O)()}static get styles(){return[d.dp,(0,i.AH)(b||(b=m`:host{display:block;height:100%;background-color:var(--primary-background-color);overflow:hidden;position:relative}:host([narrow]){width:100%;position:fixed}.toolbar{background-color:var(--app-header-background-color);padding-top:var(--safe-area-inset-top);padding-right:var(--safe-area-inset-right)}:host([narrow]) .toolbar{padding-left:var(--safe-area-inset-left)}.toolbar-content{display:flex;align-items:center;font-size:var(--ha-font-size-xl);height:var(--header-height);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;padding:8px 12px}.toolbar a{color:var(--sidebar-text-color);text-decoration:none}::slotted([slot=toolbar-icon]),ha-icon-button-arrow-prev,ha-menu-button{display:flex;align-items:center;pointer-events:auto;color:var(--sidebar-icon-color)}.main-title{margin-inline-start:var(--ha-space-6);line-height:var(--ha-line-height-normal);min-width:0;flex-grow:1;overflow-wrap:break-word;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}.narrow .main-title{margin-inline-start:var(--ha-space-2)}.content{position:relative;width:calc(100% - var(--safe-area-inset-right,0px));height:calc(100% - 1px - var(--header-height,0px) - var(--safe-area-inset-top,0px) - var(--safe-area-inset-bottom,0px));padding-bottom:var(--safe-area-inset-bottom,0px);margin-right:var(--safe-area-inset-right);overflow-y:auto;overflow:auto;-webkit-overflow-scrolling:touch}:host([narrow]) .content{width:calc(100% - var(--safe-area-inset-left,0px) - var(--safe-area-inset-right,0px));margin-left:var(--safe-area-inset-left)}#fab{position:absolute;right:calc(16px + var(--safe-area-inset-right,0px));inset-inline-end:calc(16px + var(--safe-area-inset-right,0px));inset-inline-start:initial;bottom:calc(16px + var(--safe-area-inset-bottom,0px));z-index:1;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:var(--ha-space-2)}:host([narrow]) #fab.tabs{bottom:calc(84px + var(--safe-area-inset-bottom,0px))}#fab[is-wide]{bottom:calc(24px + var(--safe-area-inset-bottom,0px));right:calc(24px + var(--safe-area-inset-right,0px));inset-inline-end:calc(24px + var(--safe-area-inset-right,0px));inset-inline-start:initial}`))]}constructor(...t){super(...t),this.mainPage=!1,this.narrow=!1}}(0,o.Cg)([(0,r.MZ)({attribute:!1})],y.prototype,"hass",void 0),(0,o.Cg)([(0,r.MZ)()],y.prototype,"header",void 0),(0,o.Cg)([(0,r.MZ)({type:Boolean,attribute:"main-page"})],y.prototype,"mainPage",void 0),(0,o.Cg)([(0,r.MZ)({type:String,attribute:"back-path"})],y.prototype,"backPath",void 0),(0,o.Cg)([(0,r.MZ)({attribute:!1})],y.prototype,"backCallback",void 0),(0,o.Cg)([(0,r.MZ)({type:Boolean,reflect:!0})],y.prototype,"narrow",void 0),(0,o.Cg)([(0,s.a)(".content")],y.prototype,"_savedScrollPos",void 0),(0,o.Cg)([(0,r.Ls)({passive:!0})],y.prototype,"_saveScrollPos",null),y=(0,o.Cg)([(0,r.EM)("hass-subpage")],y),a()}catch(u){a(u)}})},16176:function(t,a,e){e.d(a,{Y:function(){return r}});e(3362),e(62953);var o=e(1087);const i=()=>Promise.all([e.e("62066"),e.e("30628"),e.e("34995"),e.e("15348"),e.e("78477")]).then(e.bind(e,27388)),r=(t,a)=>{(0,o.r)(t,"show-dialog",{dialogTag:"dialog-zha-change-channel",dialogImport:i,dialogParams:a})}},79390:function(t,a,e){e.a(t,async function(t,o){try{e.r(a);e(3362),e(62953);var i=e(40445),r=e(96196),n=e(77845),s=(e(76776),e(26300)),l=(e(17308),e(2846),e(84621)),c=e(65063),h=e(81310),d=e(14503),p=e(16176),u=t([s,h]);[s,h]=u.then?(await u)():u;let g,v,f,b,m=t=>t;const y="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",w="socket://core-silabs-multiprotocol:9999";class x extends r.WF{firstUpdated(t){super.firstUpdated(t),this.hass&&this._fetchSettings()}async _fetchSettings(){this._networkSettings=await(0,l.P0)(this.hass)}render(){return(0,r.qy)(g||(g=m` <hass-subpage .hass="${0}" .narrow="${0}" .header="${0}" back-path="/config/zha/dashboard"> <div class="container"> <ha-card> ${0} </ha-card> </div> </hass-subpage> `),this.hass,this.narrow,this.hass.localize("ui.panel.config.zha.configuration_page.network_info_title"),this._networkSettings?(0,r.qy)(v||(v=m`<ha-md-list> <ha-md-list-item> <span slot="headline">${0}</span> <span slot="supporting-text">${0}</span> <ha-icon-button slot="end" .label="${0}" .path="${0}" @click="${0}"></ha-icon-button> </ha-md-list-item> <ha-md-list-item> <span slot="headline">PAN ID</span> <span slot="supporting-text">${0}</span> </ha-md-list-item> <ha-md-list-item> <span slot="headline">Extended PAN ID</span> <span slot="supporting-text">${0}</span> </ha-md-list-item> <ha-md-list-item> <span slot="headline">Coordinator IEEE</span> <span slot="supporting-text">${0}</span> </ha-md-list-item> <ha-md-list-item> <span slot="headline">${0}</span> <span slot="supporting-text">${0}</span> </ha-md-list-item> <ha-md-list-item> <span slot="headline">${0}</span> <span slot="supporting-text">${0}</span> </ha-md-list-item> ${0} </ha-md-list>`),this.hass.localize("ui.panel.config.zha.configuration_page.channel_label"),this._networkSettings.settings.network_info.channel,this.hass.localize("ui.panel.config.zha.configuration_page.change_channel"),y,this._showChannelMigrationDialog,this._networkSettings.settings.network_info.pan_id,this._networkSettings.settings.network_info.extended_pan_id,this._networkSettings.settings.node_info.ieee,this.hass.localize("ui.panel.config.zha.configuration_page.radio_type"),this._networkSettings.radio_type,this.hass.localize("ui.panel.config.zha.configuration_page.serial_port"),this._networkSettings.device.path,this._networkSettings.device.baudrate&&!this._networkSettings.device.path.startsWith("socket://")?(0,r.qy)(f||(f=m` <ha-md-list-item> <span slot="headline">${0}</span> <span slot="supporting-text">${0}</span> </ha-md-list-item> `),this.hass.localize("ui.panel.config.zha.configuration_page.baudrate"),this._networkSettings.device.baudrate):r.s6):r.s6)}async _showChannelMigrationDialog(){this._networkSettings.device.path!==w?(0,p.Y)(this,{currentChannel:this._networkSettings.settings.network_info.channel}):(0,c.showAlertDialog)(this,{title:this.hass.localize("ui.panel.config.zha.configuration_page.channel_dialog.title"),text:this.hass.localize("ui.panel.config.zha.configuration_page.channel_dialog.text"),warning:!0})}static get styles(){return[d.RF,(0,r.AH)(b||(b=m`.container{padding:var(--ha-space-2) var(--ha-space-4) var(--ha-space-4)}ha-card{max-width:600px;margin:auto}ha-md-list{background:0 0;padding:0}ha-md-list-item{--md-item-overflow:visible;--md-list-item-supporting-text-size:var(
            --md-list-item-label-text-size,
            var(--md-sys-typescale-body-large-size, 1rem)
          )}`))]}constructor(...t){super(...t),this.narrow=!1,this.isWide=!1}}(0,i.Cg)([(0,n.MZ)({attribute:!1})],x.prototype,"hass",void 0),(0,i.Cg)([(0,n.MZ)({attribute:!1})],x.prototype,"route",void 0),(0,i.Cg)([(0,n.MZ)({type:Boolean})],x.prototype,"narrow",void 0),(0,i.Cg)([(0,n.MZ)({attribute:"is-wide",type:Boolean})],x.prototype,"isWide",void 0),(0,i.Cg)([(0,n.wk)()],x.prototype,"_networkSettings",void 0),x=(0,i.Cg)([(0,n.EM)("zha-network-info-page")],x),o()}catch(g){o(g)}})},14503:function(t,a,e){e.d(a,{RF:function(){return p},dp:function(){return v},kO:function(){return g},nA:function(){return u},og:function(){return d}});var o=e(96196);let i,r,n,s,l,c,h=t=>t;const d=(0,o.AH)(i||(i=h`button.link{background:0 0;color:inherit;border:none;padding:0;font:inherit;text-align:left;text-decoration:underline;cursor:pointer;outline:0}`)),p=(0,o.AH)(r||(r=h`:host{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-m);font-weight:var(--ha-font-weight-normal);line-height:var(--ha-line-height-normal)}app-header div[sticky]{height:48px}app-toolbar [main-title]{margin-left:20px;margin-inline-start:20px;margin-inline-end:initial}.header{transition:box-shadow .2s linear,width var(--ha-animation-duration-normal) ease,padding-left var(--ha-animation-duration-normal) ease,padding-right var(--ha-animation-duration-normal) ease}@media (prefers-reduced-motion:reduce){.header{transition:box-shadow .2s linear}}h1{font-family:var(--ha-font-family-heading);-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)}h2{font-family:var(--ha-font-family-body);-webkit-font-smoothing:var(--ha-font-smoothing);-moz-osx-font-smoothing:var(--ha-moz-osx-font-smoothing);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:var(--ha-font-size-xl);font-weight:var(--ha-font-weight-medium);line-height:var(--ha-line-height-normal)}h3{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-l);font-weight:var(--ha-font-weight-normal);line-height:var(--ha-line-height-normal)}a{color:var(--primary-color)}.secondary{color:var(--secondary-text-color)}.error{color:var(--error-color)}.warning{color:var(--error-color)}${0} .card-actions a{text-decoration:none}.card-actions .warning{--mdc-theme-primary:var(--error-color)}.layout.horizontal,.layout.vertical{display:flex}.layout.inline{display:inline-flex}.layout.horizontal{flex-direction:row}.layout.vertical{flex-direction:column}.layout.wrap{flex-wrap:wrap}.layout.no-wrap{flex-wrap:nowrap}.layout.center,.layout.center-center{align-items:center}.layout.bottom{align-items:flex-end}.layout.center-center,.layout.center-justified{justify-content:center}.flex{flex:1;flex-basis:0.000000001px}.flex-auto{flex:1 1 auto}.flex-none{flex:none}.layout.justified{justify-content:space-between}`),d),u=(0,o.AH)(n||(n=h`
  ha-dialog,
  ha-adaptive-dialog {
    --mdc-dialog-min-width: 400px;
    --mdc-dialog-max-width: 600px;
    --mdc-dialog-max-width: min(600px, 95vw);
    --justify-action-buttons: space-between;
    --dialog-container-padding: var(--safe-area-inset-top, 0)
      var(--safe-area-inset-right, 0) var(--safe-area-inset-bottom, 0)
      var(--safe-area-inset-left, 0);
    --dialog-surface-padding: 0px;
  }

  ha-dialog .form,
  ha-adaptive-dialog .form {
    color: var(--primary-text-color);
  }

  a {
    color: var(--primary-color);
  }

  /* make dialog fullscreen on small screens */
  @media all and (max-width: 450px), all and (max-height: 500px) {
    ha-dialog,
    ha-adaptive-dialog {
      --mdc-dialog-min-width: 100vw;
      --mdc-dialog-max-width: 100vw;
      --mdc-dialog-min-height: 100vh;
      --mdc-dialog-min-height: 100svh;
      --mdc-dialog-max-height: 100vh;
      --mdc-dialog-max-height: 100svh;
      --dialog-container-padding: 0px;
      --dialog-surface-padding: var(--safe-area-inset-top, 0)
        var(--safe-area-inset-right, 0) var(--safe-area-inset-bottom, 0)
        var(--safe-area-inset-left, 0);
      --vertical-align-dialog: flex-end;
      --ha-dialog-border-radius: var(--ha-border-radius-square);
    ha-dialog,
    ha-adaptive-dialog {
     --mdc-dialog-min-width: 100vw;
     --mdc-dialog-max-width: 100vw;
     --mdc-dialog-min-height: 100vh;
     --mdc-dialog-min-height: 100svh;
     --mdc-dialog-max-height: 100vh;
     --mdc-dialog-max-height: 100svh;
     --dialog-container-padding: 0px;
     --dialog-surface-padding: var(--safe-area-inset-top, 0)
       var(--safe-area-inset-right, 0) var(--safe-area-inset-bottom, 0)
       var(--safe-area-inset-left, 0);
     --vertical-align-dialog: flex-end;
   }
   ha-dialog {
      --ha-dialog-border-radius: var(--ha-border-radius-square);
   }
  }
  .error {
    color: var(--error-color);
  }
`)),g=(0,o.AH)(s||(s=h`ha-adaptive-dialog,ha-dialog{--vertical-align-dialog:flex-start;--dialog-surface-margin-top:var(--ha-space-10);--mdc-dialog-max-height:calc(
      100vh - var(--dialog-surface-margin-top) - var(--ha-space-2) - var(
          --safe-area-inset-y,
          0px
        )
    );--mdc-dialog-max-height:calc(
      100svh - var(--dialog-surface-margin-top) - var(--ha-space-2) - var(
          --safe-area-inset-y,
          0px
        )
    );--ha-dialog-max-height:calc(
      100vh - var(--dialog-surface-margin-top) - var(--ha-space-2) - var(
          --safe-area-inset-y,
          0px
        )
    );--ha-dialog-max-height:calc(
      100svh - var(--dialog-surface-margin-top) - var(--ha-space-2) - var(
          --safe-area-inset-y,
          0px
        )
    )}@media all and (max-width:450px),all and (max-height:500px){ha-adaptive-dialog,ha-dialog{--dialog-surface-margin-top:0px;--mdc-dialog-min-height:100vh;--mdc-dialog-min-height:100svh;--mdc-dialog-max-height:100vh;--mdc-dialog-max-height:100svh;--ha-dialog-max-height:100vh;--ha-dialog-max-height:100svh}}`)),v=(0,o.AH)(l||(l=h`.ha-scrollbar::-webkit-scrollbar{width:.4rem;height:.4rem}.ha-scrollbar::-webkit-scrollbar-thumb{border-radius:var(--ha-border-radius-sm);background:var(--scrollbar-thumb-color)}.ha-scrollbar{overflow-y:auto;scrollbar-color:var(--scrollbar-thumb-color) transparent;scrollbar-width:thin}`));(0,o.AH)(c||(c=h`body{background-color:var(--primary-background-color);color:var(--primary-text-color);height:calc(100vh - 32px);width:100vw}`))}}]);
//# sourceMappingURL=35123.688050da1d13cca5.js.map