export const __rspack_esm_id="59518";export const __rspack_esm_ids=["59518"];export const __webpack_modules__={72554(a,e,i){i.d(e,{l:()=>s});var o=i(62826),t=i(30728),l=i(47705),r=i(96196),d=i(44457);i(22444),i(26300);const n=["button","ha-list-item"],s=(a,e)=>r.qy` <div class="header_title"> <ha-icon-button .label="${a?.localize("ui.common.close")??"Close"}" .path="${"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"}" dialogAction="close" class="header_button"></ha-icon-button> <span>${e}</span> </div> `;class c extends t.u{scrollToPos(a,e){this.contentElement?.scrollTo(a,e)}renderHeading(){return r.qy`<slot name="heading"> ${super.renderHeading()} </slot>`}firstUpdated(){super.firstUpdated(),this.suppressDefaultPressSelector=[this.suppressDefaultPressSelector,n].join(", "),this._updateScrolledAttribute(),this.contentElement?.addEventListener("scroll",this._onScroll,{passive:!0})}disconnectedCallback(){super.disconnectedCallback(),this.contentElement.removeEventListener("scroll",this._onScroll)}_updateScrolledAttribute(){this.contentElement&&this.toggleAttribute("scrolled",0!==this.contentElement.scrollTop)}constructor(...a){super(...a),this._onScroll=()=>{this._updateScrolledAttribute()}}}c.styles=[l.R,r.AH`:host([scrolled]) ::slotted(ha-dialog-header){border-bottom:1px solid var(--mdc-dialog-scroll-divider-color,rgba(0,0,0,.12))}.mdc-dialog{--mdc-dialog-scroll-divider-color:var(
          --dialog-scroll-divider-color,
          var(--divider-color)
        );z-index:var(--dialog-z-index,8);-webkit-backdrop-filter:var(--ha-dialog-scrim-backdrop-filter,var(--dialog-backdrop-filter,none));backdrop-filter:var(--ha-dialog-scrim-backdrop-filter,var(--dialog-backdrop-filter,none));--mdc-dialog-box-shadow:var(--dialog-box-shadow, none);--mdc-typography-headline6-font-weight:var(--ha-font-weight-normal);--mdc-typography-headline6-font-size:1.574rem}.mdc-dialog__actions{justify-content:var(--justify-action-buttons,flex-end);padding:var(--ha-space-3) var(--ha-space-4) var(--ha-space-4) var(--ha-space-4)}.mdc-dialog__actions span:first-child{flex:var(--secondary-action-button-flex,unset)}.mdc-dialog__actions span:nth-child(2){flex:var(--primary-action-button-flex,unset)}.mdc-dialog__container{align-items:var(--vertical-align-dialog,center);padding:var(--dialog-container-padding,0)}.mdc-dialog__title{padding:var(--ha-space-4) var(--ha-space-4) 0 var(--ha-space-4)}.mdc-dialog__title:has(span){padding:var(--ha-space-3) var(--ha-space-3) 0}.mdc-dialog__title::before{content:unset}.mdc-dialog .mdc-dialog__content{position:var(--dialog-content-position,relative);padding:var(--dialog-content-padding,var(--ha-space-6))}:host([hideactions]) .mdc-dialog .mdc-dialog__content{padding-bottom:var(--dialog-content-padding,var(--ha-space-6))}.mdc-dialog .mdc-dialog__surface{position:var(--dialog-surface-position,relative);top:var(--dialog-surface-top);margin-top:var(--dialog-surface-margin-top);min-width:var(--mdc-dialog-min-width,auto);min-height:var(--mdc-dialog-min-height,auto);border-radius:var(--ha-dialog-border-radius,var(--ha-border-radius-3xl));-webkit-backdrop-filter:var(--ha-dialog-surface-backdrop-filter,none);backdrop-filter:var(--ha-dialog-surface-backdrop-filter,none);background:var(--ha-dialog-surface-background,var(--mdc-theme-surface,#fff));padding:var(--dialog-surface-padding,0)}:host([flexContent]) .mdc-dialog .mdc-dialog__content{display:flex;flex-direction:column}.header_title{display:flex;align-items:center;direction:var(--direction)}.header_title span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;padding-left:var(--ha-space-1);padding-right:var(--ha-space-1);margin-right:var(--ha-space-3);margin-inline-end:var(--ha-space-3);margin-inline-start:initial}.header_button{text-decoration:none;color:inherit;inset-inline-start:initial;inset-inline-end:calc(var(--ha-space-3) * -1);direction:var(--direction)}.dialog-actions{inset-inline-start:initial!important;inset-inline-end:0!important;direction:var(--direction)}`],c=(0,o.Cg)([(0,d.EM)("ha-dialog")],c)},40397(a,e,i){i.r(e);var o=i(62826),t=i(96196),l=i(44457),r=i(1087),d=i(72554);class n extends t.WF{async showDialog(a){this.localize=a.localize}async closeDialog(){this.localize=void 0,(0,r.r)(this,"dialog-closed",{dialog:this.localName})}render(){return this.localize?t.qy`<ha-dialog open hideActions @closed="${this.closeDialog}" .heading="${(0,d.l)(void 0,this.localize("ui.panel.page-onboarding.welcome.download_app")||"Click here to download the app")}"> <div> <div class="app-qr"> <a target="_blank" rel="noreferrer noopener" href="https://apps.apple.com/app/home-assistant/id1099568401?mt=8"> <img loading="lazy" src="/static/images/appstore.svg" alt="${this.localize("ui.panel.page-onboarding.welcome.appstore")}" class="icon"> <img loading="lazy" src="/static/images/qr-appstore.svg" alt="${this.localize("ui.panel.page-onboarding.welcome.appstore")}"> </a> <a target="_blank" rel="noreferrer noopener" href="https://play.google.com/store/apps/details?id=io.homeassistant.companion.android"> <img loading="lazy" src="/static/images/playstore.svg" alt="${this.localize("ui.panel.page-onboarding.welcome.playstore")}" class="icon"> <img loading="lazy" src="/static/images/qr-playstore.svg" alt="${this.localize("ui.panel.page-onboarding.welcome.playstore")}"> </a> </div> </div> </ha-dialog>`:t.s6}}n.styles=t.AH`ha-dialog{--mdc-dialog-min-width:min(500px, 90vw)}.app-qr{display:flex;justify-content:space-between;box-sizing:border-box;gap:32px;width:100%}.app-qr a,.app-qr img{flex:1;max-width:180px}`,(0,o.Cg)([(0,l.MZ)({attribute:!1})],n.prototype,"localize",void 0),n=(0,o.Cg)([(0,l.EM)("app-dialog")],n)}};
//# sourceMappingURL=59518.a22b5259f1e4c927.js.map