export const __rspack_esm_id=82927;export const __rspack_esm_ids=[82927];export const __webpack_modules__={51698(o,t,i){i.a(o,async function(o,a){try{i.r(t);var s=i(15697),n=i(57527),e=i(79224),l=i(148),r=i(78343),c=i(98747),h=(i(90507),i(41247),i(73651)),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 .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.d(t,{DialogYamlIntegration:()=>_}),a()}catch(o){a(o)}})}};
//# sourceMappingURL=82927.bfb5e3f883d023b4.js.map