export const __rspack_esm_id=57406;export const __rspack_esm_ids=[57406];export const __webpack_modules__={74840(o,e,i){var a=i(148);i.d(e,{},{O:o=>class extends o{closeDialog(o){if(this._closePromise)return this._closePromise;const e=this.shadowRoot?.querySelector("ha-adaptive-popover, ha-adaptive-dialog, ha-dialog, ha-bottom-sheet");return e&&(this._closePromise=new Promise(o=>{this._closeResolve=o}),e.open=!1),this._closePromise||!0}connectedCallback(){super.connectedCallback(),this.addEventListener("closed",this._removeDialog,{once:!0})}disconnectedCallback(){this._dialogClosedFired||(0,a.r)(this,"dialog-closed",{dialog:this.localName}),this.removeEventListener("closed",this._removeDialog),super.disconnectedCallback()}constructor(...o){super(...o),this.dialogNext=!0,this._dialogClosedFired=!1,this._removeDialog=o=>{o.stopPropagation(),this._closeResolve?.(!0),this._closePromise=void 0,this._closeResolve=void 0,this._dialogClosedFired=!0,(0,a.r)(this,"dialog-closed",{dialog:this.localName}),this.remove()}}}})},69101(o,e,i){i.a(o,async function(o,a){try{i.r(e);var t=i(15697),s=i(358),n=i(57527),l=i(79224),c=i(73651),r=(i(90507),i(98747)),d=i(80189),h=i(57255),_=i(74840),g=o([c,r]);[c,r]=g.then?(await g)():g;class p extends((0,_.O)(n.WF)){connectedCallback(){super.connectedCallback(),this._loadBackendLocalize()}render(){return this.params&&this._backendLocalize?n.qy` <ha-dialog open .headerTitle=${this._i18n.localize("ui.panel.config.integrations.config_flow.single_config_entry_title")}> ${this._i18n.localize("ui.panel.config.integrations.config_flow.single_config_entry",{integration_name:n.qy`<b>${(0,h.p$)(this._backendLocalize,this.params.domain)}</b>`})} <ha-dialog-footer slot="footer"> <ha-button appearance="plain" slot="secondaryAction" @click=${this.closeDialog}> ${this._i18n.localize("ui.common.close")} </ha-button> <ha-button slot="primaryAction" .href=${`/config/integrations/integration/${this.params.domain}`}> ${this._i18n.localize("ui.panel.config.integrations.config_flow.show_integration")} </ha-button> </ha-dialog-footer> </ha-dialog> `:n.s6}async _loadBackendLocalize(){this.params&&(this._backendLocalize=await this._i18n.loadBackendTranslation("title",this.params.domain))}}(0,t.Cg)([(0,l.wk)(),(0,s.Fg)({context:d.D5,subscribe:!0})],p.prototype,"_i18n",void 0),(0,t.Cg)([(0,l.wk)()],p.prototype,"_backendLocalize",void 0),p=(0,t.Cg)([(0,l.EM)("dialog-single-config-entry-warning")],p),a()}catch(o){a(o)}})}};
//# sourceMappingURL=57406.3d2720b83bcab307.js.map