export const __rspack_esm_id="21882";export const __rspack_esm_ids=["21882"];export const __webpack_modules__={26218(a,t,o){o.d(t,{a:()=>r});const e=(0,o(77796).n)(a=>{history.replaceState({scrollPosition:a},"")},300);function r(a){return(t,o)=>{if("object"==typeof o)throw new Error("This decorator does not support this compilation type.");const r=t.connectedCallback;t.connectedCallback=function(){r.call(this);const t=this[o];t&&this.updateComplete.then(()=>{const o=this.renderRoot.querySelector(a);o&&setTimeout(()=>{o.scrollTop=t},0)})};const i=Object.getOwnPropertyDescriptor(t,o);let s;if(void 0===i)s={get(){return this[`__${String(o)}`]||history.state?.scrollPosition},set(a){e(a),this[`__${String(o)}`]=a},configurable:!0,enumerable:!0};else{const a=i.set;s={...i,set(t){e(t),this[`__${String(o)}`]=t,a?.call(this,t)}}}Object.defineProperty(t,o,s)}}},77796(a,t,o){o.d(t,{n:()=>e});const e=(a,t,o=!0,e=!0)=>{let r,i=0;const s=(...s)=>{const n=()=>{i=!1===o?0:Date.now(),r=void 0,a(...s)},h=Date.now();i||!1!==o||(i=h);const l=t-(h-i);l<=0||l>t?(r&&(clearTimeout(r),r=void 0),i=h,a(...s)):r||!1===e||(r=window.setTimeout(n,l))};return s.cancel=()=>{clearTimeout(r),r=void 0,i=0},s}},76776(a,t,o){var e=o(62826),r=o(96196),i=o(97735);class s extends r.WF{render(){return r.qy` ${this.header?r.qy`<h1 class="card-header">${this.header}</h1>`:r.s6} <slot></slot> `}constructor(...a){super(...a),this.raised=!1}}s.styles=r.AH`: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,e.Cg)([(0,i.MZ)()],s.prototype,"header",void 0),(0,e.Cg)([(0,i.MZ)({type:Boolean,reflect:!0})],s.prototype,"raised",void 0),s=(0,e.Cg)([(0,i.EM)("ha-card")],s)},70947(a,t,o){var e=o(62826),r=o(90075),i=(o(43776),o(96196)),s=o(97735);o(67094);class n extends r.A{renderCheckboxIcon(){return i.qy` <ha-svg-icon id="check" part="checkmark" .path="${this.checked?"M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z":"M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z"}"></ha-svg-icon> `}static get styles(){return[r.A.styles,i.AH`:host{min-height:var(--ha-space-10)}#check{visibility:visible;flex-shrink:0}#icon ::slotted(*){color:var(--ha-color-on-neutral-normal)}:host([variant=danger]) #icon ::slotted(*){color:var(--ha-color-on-danger-quiet)}:host([selected]){font-weight:var(--ha-font-weight-medium);color:var(--primary-color);background-color:var(--ha-color-fill-primary-quiet-resting);--icon-primary-color:var(--primary-color)}:host([selected]:hover){background-color:var(--ha-color-fill-primary-quiet-hover)}`]}constructor(...a){super(...a),this.selected=!1}}(0,e.Cg)([(0,s.MZ)({type:Boolean,reflect:!0})],n.prototype,"selected",void 0),n=(0,e.Cg)([(0,s.EM)("ha-dropdown-item")],n)},29823(a,t,o){o.a(a,async function(a,t){try{var e=o(62826),r=o(52254),i=o(96196),s=o(97735),n=a([r]);r=(n.then?(await n)():n)[0];class h extends r.A{get anchorElement(){return this.popup?.anchor}set anchorElement(a){this.popup&&(this.popup.anchor&&"ha-icon-button"===this.popup.anchor.localName&&(this.popup.anchor.selected=!1),this.popup.anchor=a)}getTrigger(){return this.anchorElement?this.anchorElement:super.getTrigger()}async showMenu(){await super.showMenu();const a=this.getTrigger();a&&"ha-icon-button"===a.localName&&(a.selected=!0)}async hideMenu(){const a=this.getTrigger();a&&"ha-icon-button"===a.localName&&(a.selected=!1),await super.hideMenu()}static get styles(){return[r.A.styles,i.AH`:host{font-size:var(--ha-dropdown-font-size, var(--ha-font-size-m));--wa-color-surface-raised:var(
            --card-background-color,
            var(--ha-dialog-surface-background, var(--mdc-theme-surface, #fff)),
          )}#menu{padding:var(--ha-space-1)}`]}constructor(...a){super(...a),this.dropdownTag="ha-dropdown",this.dropdownItemTag="ha-dropdown-item"}}(0,e.Cg)([(0,s.MZ)({attribute:!1})],h.prototype,"dropdownTag",void 0),(0,e.Cg)([(0,s.MZ)({attribute:!1})],h.prototype,"dropdownItemTag",void 0),h=(0,e.Cg)([(0,s.EM)("ha-dropdown")],h),t()}catch(a){t(a)}})},90248(a,t,o){o.a(a,async function(a,e){try{o.r(t),o.d(t,{HaIconButtonArrowPrev:()=>p});var r=o(62826),i=o(96196),s=o(97735),n=o(63091),h=o(26300),l=a([h]);h=(l.then?(await l)():l)[0];const d="M20,11V13H8L13.5,18.5L12.08,19.92L4.16,12L12.08,4.08L13.5,5.5L8,11H20Z",c="M4,11V13H16L10.5,18.5L11.92,19.92L19.84,12L11.92,4.08L10.5,5.5L16,11H4Z";class p extends i.WF{render(){return i.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(...a){super(...a),this.disabled=!1,this._icon="rtl"===n.G.document.dir?c:d}}(0,r.Cg)([(0,s.MZ)({attribute:!1})],p.prototype,"hass",void 0),(0,r.Cg)([(0,s.MZ)({type:Boolean})],p.prototype,"disabled",void 0),(0,r.Cg)([(0,s.MZ)()],p.prototype,"label",void 0),(0,r.Cg)([(0,s.MZ)()],p.prototype,"href",void 0),(0,r.Cg)([(0,s.MZ)()],p.prototype,"target",void 0),(0,r.Cg)([(0,s.MZ)()],p.prototype,"rel",void 0),(0,r.Cg)([(0,s.MZ)()],p.prototype,"download",void 0),(0,r.Cg)([(0,s.wk)()],p.prototype,"_icon",void 0),p=(0,r.Cg)([(0,s.EM)("ha-icon-button-arrow-prev")],p),e()}catch(a){e(a)}})},26300(a,t,o){o.a(a,async function(a,e){try{o.r(t),o.d(t,{HaIconButton:()=>d});var r=o(62826),i=o(96196),s=o(97735),n=o(32288),h=o(18350),l=(o(67094),a([h]));h=(l.then?(await l)():l)[0];class d extends i.WF{render(){return i.qy` <ha-button appearance="plain" variant="neutral" aria-label="${(0,n.J)(this.label)}" title="${(0,n.J)(this.hideTitle?void 0:this.label)}" aria-haspopup="${(0,n.J)(this.ariaHasPopup)}" .disabled="${this.disabled}" .iconTag="${this.path?"ha-svg-icon":"span"}" .href="${this.href}" .target="${this.target}" .rel="${this.rel}" .download="${this.download}"> ${this.path?i.qy`<ha-svg-icon .path="${this.path}"></ha-svg-icon>`:i.qy`<span><slot></slot></span>`} </ha-button> `}constructor(...a){super(...a),this.disabled=!1,this.hideTitle=!1,this.selected=!1}}d.shadowRootOptions={mode:"open",delegatesFocus:!0},d.styles=i.AH`: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,r.Cg)([(0,s.MZ)({type:Boolean,reflect:!0})],d.prototype,"disabled",void 0),(0,r.Cg)([(0,s.MZ)({type:String})],d.prototype,"path",void 0),(0,r.Cg)([(0,s.MZ)({type:String})],d.prototype,"label",void 0),(0,r.Cg)([(0,s.MZ)({type:String,attribute:"aria-haspopup"})],d.prototype,"ariaHasPopup",void 0),(0,r.Cg)([(0,s.MZ)({attribute:"hide-title",type:Boolean})],d.prototype,"hideTitle",void 0),(0,r.Cg)([(0,s.MZ)({type:Boolean,reflect:!0})],d.prototype,"selected",void 0),(0,r.Cg)([(0,s.MZ)()],d.prototype,"href",void 0),(0,r.Cg)([(0,s.MZ)()],d.prototype,"target",void 0),(0,r.Cg)([(0,s.MZ)()],d.prototype,"rel",void 0),(0,r.Cg)([(0,s.MZ)()],d.prototype,"download",void 0),d=(0,r.Cg)([(0,s.EM)("ha-icon-button")],d),e()}catch(a){e(a)}})},2846(a,t,o){o.d(t,{G:()=>l,J:()=>h});var e=o(62826),r=o(12415),i=o(82553),s=o(96196),n=o(97735);o(54276);const h=[i.R,s.AH`: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 l extends r.n{renderRipple(){return"text"===this.type?s.s6:s.qy`<ha-ripple part="ripple" for="item" ?disabled="${this.disabled&&"link"!==this.type}"></ha-ripple>`}}l.styles=h,l=(0,e.Cg)([(0,n.EM)("ha-md-list-item")],l)},17308(a,t,o){var e=o(62826),r=o(49838),i=o(11245),s=o(96196),n=o(97735);class h extends r.B{}h.styles=[i.R,s.AH`:host{--md-sys-color-surface:var(--card-background-color)}`],h=(0,e.Cg)([(0,n.EM)("ha-md-list")],h)},2054(a,t,o){o.a(a,async function(a,t){try{var e=o(62826),r=o(96196),i=o(97735),s=o(1087),n=o(44249),h=o(26300),l=a([h]);h=(l.then?(await l)():l)[0];const d="M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z";class c extends r.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 r.s6;const a=this._hasNotifications&&(this.narrow||"always_hidden"===this.hass.dockedSidebar);return r.qy` <ha-icon-button .label="${this.hass.localize("ui.sidebar.sidebar_toggle")}" .path="${d}" @click="${this._toggleMenu}"></ha-icon-button> ${a?r.qy`<div class="dot"></div>`:""} `}willUpdate(a){if(super.willUpdate(a),!a.has("narrow")&&!a.has("hass"))return;const t=a.has("hass")?a.get("hass"):this.hass,o=a.has("narrow")?a.get("narrow"):this.narrow,e=!1===t?.kioskMode&&(o||"always_hidden"===t?.dockedSidebar),r=!1===this.hass.kioskMode&&(this.narrow||"always_hidden"===this.hass.dockedSidebar);this.hasUpdated&&e===r||(this._show=r||this._alwaysVisible,r?this._subscribeNotifications():this._unsubNotifications&&(this._unsubNotifications(),this._unsubNotifications=void 0))}_subscribeNotifications(){if(this._unsubNotifications)throw new Error("Already subscribed");this._unsubNotifications=(0,n.V)(this.hass.connection,a=>{this._hasNotifications=a.length>0})}_toggleMenu(){(0,s.r)(this,"hass-toggle-menu")}constructor(...a){super(...a),this.narrow=!1,this._hasNotifications=!1,this._show=!1,this._alwaysVisible=!1,this._attachNotifOnConnect=!1}}c.styles=r.AH`: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,e.Cg)([(0,i.MZ)({type:Boolean})],c.prototype,"narrow",void 0),(0,e.Cg)([(0,i.MZ)({attribute:!1})],c.prototype,"hass",void 0),(0,e.Cg)([(0,i.wk)()],c.prototype,"_hasNotifications",void 0),(0,e.Cg)([(0,i.wk)()],c.prototype,"_show",void 0),c=(0,e.Cg)([(0,i.EM)("ha-menu-button")],c),t()}catch(a){t(a)}})},54276(a,t,o){var e=o(62826),r=o(76482),i=o(91382),s=o(96245),n=o(96196),h=o(97735);class l extends i.n{attach(a){super.attach(a),this.attachableTouchController.attach(a)}disconnectedCallback(){super.disconnectedCallback(),this.hovered=!1,this.pressed=!1}detach(){super.detach(),this.attachableTouchController.detach()}_onTouchControlChange(a,t){a?.removeEventListener("touchend",this._handleTouchEnd),t?.addEventListener("touchend",this._handleTouchEnd)}constructor(...a){super(...a),this.attachableTouchController=new r.i(this,this._onTouchControlChange.bind(this)),this._handleTouchEnd=()=>{this.disabled||super.endPressAnimation()}}}l.styles=[s.R,n.AH`: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))
        )}`],l=(0,e.Cg)([(0,h.EM)("ha-ripple")],l)},67094(a,t,o){o.r(t),o.d(t,{HaSvgIcon:()=>s});var e=o(62826),r=o(96196),i=o(97735);class s extends r.WF{render(){return r.JW` <svg viewBox="${this.viewBox||"0 0 24 24"}" preserveAspectRatio="xMidYMid meet" focusable="false" role="img" aria-hidden="true"> <g> ${this.path?r.JW`<path class="primary-path" d="${this.path}"></path>`:r.s6} ${this.secondaryPath?r.JW`<path class="secondary-path" d="${this.secondaryPath}"></path>`:r.s6} </g> </svg>`}}s.styles=r.AH`: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,e.Cg)([(0,i.MZ)()],s.prototype,"path",void 0),(0,e.Cg)([(0,i.MZ)({attribute:!1})],s.prototype,"secondaryPath",void 0),(0,e.Cg)([(0,i.MZ)({attribute:!1})],s.prototype,"viewBox",void 0),s=(0,e.Cg)([(0,i.EM)("ha-svg-icon")],s)},44249(a,t,o){o.d(t,{V:()=>e});const e=(a,t)=>{const o=new r,e=a.subscribeMessage(a=>t(o.processMessage(a)),{type:"persistent_notification/subscribe"});return()=>{e.then(a=>a?.())}};class r{processMessage(a){if("removed"===a.type)for(const t of Object.keys(a.notifications))delete this.notifications[t];else this.notifications={...this.notifications,...a.notifications};return Object.values(this.notifications)}constructor(){this.notifications={}}}},81310(a,t,o){o.a(a,async function(a,t){try{var e=o(62826),r=o(96196),i=o(97735),s=o(94333),n=o(26218),h=o(91926),l=o(90248),d=o(2054),c=o(14503),p=a([l,d]);[l,d]=p.then?(await p)():p;class g extends r.WF{render(){return r.qy` <div class="toolbar ${(0,s.H)({narrow:this.narrow})}"> <div class="toolbar-content"> ${this.mainPage||history.state?.root?r.qy` <ha-menu-button .hass="${this.hass}" .narrow="${this.narrow}"></ha-menu-button> `:this.backPath?r.qy` <ha-icon-button-arrow-prev href="${this.backPath}" .hass="${this.hass}"></ha-icon-button-arrow-prev> `:r.qy` <ha-icon-button-arrow-prev .hass="${this.hass}" @click="${this._backTapped}"></ha-icon-button-arrow-prev> `} <div class="main-title"> <slot name="header">${this.header}</slot> </div> <slot name="toolbar-icon"></slot> </div> </div> <div class="content ha-scrollbar" @scroll="${this._saveScrollPos}"> <slot></slot> </div> <div id="fab"> <slot name="fab"></slot> </div> `}_saveScrollPos(a){this._savedScrollPos=a.target.scrollTop}_backTapped(){this.backCallback?this.backCallback():(0,h.O)()}static get styles(){return[c.dp,r.AH`: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(...a){super(...a),this.mainPage=!1,this.narrow=!1}}(0,e.Cg)([(0,i.MZ)({attribute:!1})],g.prototype,"hass",void 0),(0,e.Cg)([(0,i.MZ)()],g.prototype,"header",void 0),(0,e.Cg)([(0,i.MZ)({type:Boolean,attribute:"main-page"})],g.prototype,"mainPage",void 0),(0,e.Cg)([(0,i.MZ)({type:String,attribute:"back-path"})],g.prototype,"backPath",void 0),(0,e.Cg)([(0,i.MZ)({attribute:!1})],g.prototype,"backCallback",void 0),(0,e.Cg)([(0,i.MZ)({type:Boolean,reflect:!0})],g.prototype,"narrow",void 0),(0,e.Cg)([(0,n.a)(".content")],g.prototype,"_savedScrollPos",void 0),(0,e.Cg)([(0,i.Ls)({passive:!0})],g.prototype,"_saveScrollPos",null),g=(0,e.Cg)([(0,i.EM)("hass-subpage")],g),t()}catch(a){t(a)}})},84985(a,t,o){o.a(a,async function(a,e){try{o.r(t);o(18111),o(22489),o(17642),o(58004),o(33853),o(45876),o(32475),o(15024),o(31698),o(14603),o(47566),o(98721);var r=o(62826),i=(o(71786),o(96196)),s=o(97735),n=o(22786),h=o(36312),l=o(91926),d=o(6030),c=(o(76776),o(29823)),p=(o(70947),o(55782)),g=o(81310),v=o(54706),u=o(98712),m=o(49066),f=o(19642),b=a([c,g,u]);[c,g,u]=b.then?(await b)():b;const y="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 w extends((0,v.E)(i.WF)){connectedCallback(){super.connectedCallback();"system-health"===(0,d.p9)("dialog")&&((0,l.o)("/config/repairs",{replace:!0}),(0,f.h)(this))}hassSubscribe(){return[(0,p.TP)(this.hass.connection,a=>{this._repairsIssues=a.issues.sort((a,t)=>p.Qk[a.severity]-p.Qk[t.severity]);const t=new Set;for(const a of this._repairsIssues)t.add(a.domain);this.hass.loadBackendTranslation("issues",[...t])})]}render(){const a=this._getFilteredIssues(this._showIgnored,this._repairsIssues);return i.qy` <hass-subpage .backPath="${this._searchParms.has("historyBack")?void 0:"/config/system"}" .hass="${this.hass}" .narrow="${this.narrow}" .header="${this.hass.localize("ui.panel.config.repairs.caption")}"> <div slot="toolbar-icon"> <ha-dropdown @wa-select="${this._handleDropdownSelect}"> <ha-icon-button slot="trigger" .label="${this.hass.localize("ui.common.menu")}" .path="${y}"></ha-icon-button> <ha-dropdown-item type="checkbox" value="toggle_ignored" .checked="${this._showIgnored}"> ${this.hass.localize("ui.panel.config.repairs.show_ignored")} </ha-dropdown-item> <wa-divider></wa-divider> ${(0,h.x)(this.hass,"system_health")||(0,h.x)(this.hass,"hassio")?i.qy` <ha-dropdown-item value="system_information"> ${this.hass.localize("ui.panel.config.repairs.system_information")} </ha-dropdown-item> `:i.s6} <ha-dropdown-item value="integration_startup_time"> ${this.hass.localize("ui.panel.config.repairs.integration_startup_time")} </ha-dropdown-item> </ha-dropdown> </div> <div class="content"> <ha-card outlined> <div class="card-content"> ${a.length?i.qy` <ha-config-repairs .hass="${this.hass}" .narrow="${this.narrow}" .repairsIssues="${a}"></ha-config-repairs> `:i.qy` <div class="no-repairs"> ${this.hass.localize("ui.panel.config.repairs.no_repairs")} </div> `} </div> </ha-card> </div> </hass-subpage> `}_showSystemInformationDialog(){(0,f.h)(this)}_showIntegrationStartupDialog(){(0,m.R)(this)}_toggleIgnored(){this._showIgnored=!this._showIgnored}_handleDropdownSelect(a){const t=a.detail?.item?.value;switch(t){case"toggle_ignored":this._toggleIgnored();break;case"system_information":this._showSystemInformationDialog();break;case"integration_startup_time":this._showIntegrationStartupDialog()}}constructor(...a){super(...a),this.narrow=!1,this._repairsIssues=[],this._searchParms=new URLSearchParams(window.location.search),this._showIgnored=!1,this._getFilteredIssues=(0,n.A)((a,t)=>a?t:t.filter(a=>!a.ignored))}}w.styles=i.AH`.content{padding:28px 20px 0;max-width:1040px;margin:0 auto}ha-card{max-width:600px;margin:0 auto;height:100%;justify-content:space-between;flex-direction:column;display:flex;margin-bottom:max(24px,var(--safe-area-inset-bottom))}.card-content{display:flex;justify-content:space-between;flex-direction:column;padding:0}.no-repairs{padding:16px}li[divider]{border-bottom-color:var(--divider-color)}`,(0,r.Cg)([(0,s.MZ)({attribute:!1})],w.prototype,"hass",void 0),(0,r.Cg)([(0,s.MZ)({type:Boolean})],w.prototype,"narrow",void 0),(0,r.Cg)([(0,s.wk)()],w.prototype,"_repairsIssues",void 0),(0,r.Cg)([(0,s.wk)()],w.prototype,"_searchParms",void 0),(0,r.Cg)([(0,s.wk)()],w.prototype,"_showIgnored",void 0),w=(0,r.Cg)([(0,s.EM)("ha-config-repairs-dashboard")],w),e()}catch(a){e(a)}})},49066(a,t,o){o.d(t,{R:()=>i});var e=o(1087);const r=()=>Promise.all([o.e("83431"),o.e("26767"),o.e("34121"),o.e("56209")]).then(o.bind(o,37352)),i=a=>{(0,e.r)(a,"show-dialog",{dialogTag:"dialog-integration-startup",dialogImport:r,dialogParams:{}})}},19642(a,t,o){o.d(t,{h:()=>i});var e=o(1087);const r=()=>o.e("14771").then(o.bind(o,2814)),i=a=>{(0,e.r)(a,"show-dialog",{dialogTag:"dialog-system-information",dialogImport:r,dialogParams:void 0})}},14503(a,t,o){o.d(t,{RF:()=>i,dp:()=>h,kO:()=>n,nA:()=>s,og:()=>r});var e=o(96196);const r=e.AH`button.link{background:0 0;color:inherit;border:none;padding:0;font:inherit;text-align:left;text-decoration:underline;cursor:pointer;outline:0}`,i=e.AH`: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)}${r} .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}`,s=e.AH`
  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);
  }
`,n=e.AH`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}}`,h=e.AH`.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}`;e.AH`body{background-color:var(--primary-background-color);color:var(--primary-text-color);height:calc(100vh - 32px);width:100vw}`}};
//# sourceMappingURL=21882.3087143e0b167cb0.js.map