export const __rspack_esm_id="24096";export const __rspack_esm_ids=["24096"];export const __webpack_modules__={95683(o,t,a){a.a(o,async function(o,i){try{a.r(t),a.d(t,{DialogYamlIntegration:()=>_});var s=a(62826),n=a(96196),e=a(97735),l=a(1087),r=a(36918),c=a(18350),h=(a(93444),a(67094),a(72554)),p=o([c,h]);[c,h]=p.then?(await p)():p;const g="M14,3V5H17.59L7.76,14.83L9.17,16.24L19,6.41V10H21V3M19,19H5V5H12V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V12H19V19Z";class _ extends n.WF{showDialog(o){this._params=o,this._open=!0}closeDialog(){this._open=!1}_dialogClosed(){this._params=void 0,(0,l.r)(this,"dialog-closed",{dialog:this.localName})}render(){if(!this._params)return n.s6;const o=this._params.manifest,t=o.is_built_in?(0,r.o)(this.hass,`/integrations/${o.domain}`):o.documentation;return n.qy` <ha-dialog .hass="${this.hass}" .open="${this._open}" header-title="${this.hass.localize("ui.panel.config.integrations.config_flow.yaml_only_title")}" @closed="${this._dialogClosed}"> <p> ${this.hass.localize("ui.panel.config.integrations.config_flow.yaml_only")} </p> <ha-dialog-footer slot="footer"> <ha-button slot="secondaryAction" appearance="plain" @click="${this.closeDialog}"> ${this.hass.localize("ui.common.cancel")} </ha-button> ${t?n.qy`<ha-button slot="primaryAction" appearance="plain" href="${t}" target="_blank" rel="noreferrer noopener" @click="${this.closeDialog}" autofocus> <ha-svg-icon slot="end" .path="${g}"></ha-svg-icon> ${this.hass.localize("ui.panel.config.integrations.config_flow.open_documentation")} </ha-button>`:n.qy`<ha-button slot="primaryAction" @click="${this.closeDialog}" autofocus> ${this.hass.localize("ui.common.ok")} </ha-button>`} </ha-dialog-footer> </ha-dialog> `}constructor(...o){super(...o),this._open=!1}}_.styles=n.AH`:host([inert]){pointer-events:initial!important;cursor:initial!important}a{text-decoration:none}ha-dialog{--dialog-z-index:104}`,(0,s.Cg)([(0,e.MZ)({attribute:!1})],_.prototype,"hass",void 0),(0,s.Cg)([(0,e.wk)()],_.prototype,"_params",void 0),(0,s.Cg)([(0,e.wk)()],_.prototype,"_open",void 0),_=(0,s.Cg)([(0,e.EM)("dialog-yaml-integration")],_),i()}catch(o){i(o)}})}};
//# sourceMappingURL=24096.c255b594331a6a62.js.map