"use strict";(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[82927],{51698:function(o,t,a){a.a(o,async function(o,i){try{a.r(t);var n,e,s,l,r=a(28430),c=a(57567),h=a(25979),u=a(12463),p=a(16472),g=(a(28706),a(15697)),f=a(57527),d=a(51209),_=a(148),m=a(78343),y=a(98747),v=(a(90507),a(41247),a(73651)),k=o([y,v]);[y,v]=k.then?(await k)():k;var A=function(o){function t(){var o;(0,c.A)(this,t);for(var a=arguments.length,i=new Array(a),n=0;n<a;n++)i[n]=arguments[n];return(o=(0,p.A)(this,t,[].concat(i)))._open=!1,o}return(0,u.A)(t,o),(0,h.A)(t,[{key:"showDialog",value:function(o){this._params=o,this._open=!0}},{key:"closeDialog",value:function(){this._open=!1}},{key:"_dialogClosed",value:function(){this._params=void 0,(0,_.r)(this,"dialog-closed",{dialog:this.localName})}},{key:"render",value:function(){if(!this._params)return f.s6;var o=this._params.manifest,t=o.is_built_in?(0,m.o)(this.hass,"/integrations/".concat(o.domain)):o.documentation;return(0,f.qy)(n||(n=(0,r.A)([" <ha-dialog .open="," header-title="," @closed=","> <p> ",' </p> <ha-dialog-footer slot="footer"> <ha-button slot="secondaryAction" appearance="plain" @click=',"> "," </ha-button> "," </ha-dialog-footer> </ha-dialog> "])),this._open,this.hass.localize("ui.panel.config.integrations.config_flow.yaml_only_title"),this._dialogClosed,this.hass.localize("ui.panel.config.integrations.config_flow.yaml_only"),this.closeDialog,this.hass.localize("ui.common.cancel"),t?(0,f.qy)(e||(e=(0,r.A)(['<ha-button slot="primaryAction" appearance="plain" href=',' target="_blank" rel="noreferrer noopener" @click=',' autofocus> <ha-svg-icon slot="end" .path=',"></ha-svg-icon> "," </ha-button>"])),t,this.closeDialog,"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",this.hass.localize("ui.panel.config.integrations.config_flow.open_documentation")):(0,f.qy)(s||(s=(0,r.A)(['<ha-button slot="primaryAction" @click='," autofocus> "," </ha-button>"])),this.closeDialog,this.hass.localize("ui.common.ok")))}}])}(f.WF);A.styles=(0,f.AH)(l||(l=(0,r.A)([":host([inert]){pointer-events:initial!important;cursor:initial!important}a{text-decoration:none}ha-dialog{--dialog-z-index:104}"]))),(0,g.Cg)([(0,d.MZ)({attribute:!1})],A.prototype,"hass",void 0),(0,g.Cg)([(0,d.wk)()],A.prototype,"_params",void 0),(0,g.Cg)([(0,d.wk)()],A.prototype,"_open",void 0),A=(0,g.Cg)([(0,d.EM)("dialog-yaml-integration")],A),a.d(t,{DialogYamlIntegration:function(){return A}}),i()}catch(b){i(b)}})}}]);
//# sourceMappingURL=82927.1266e5f0fb252fc4.js.map