"use strict";(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[49035],{16227:function(t,e,o){var a=o(36854),n=o(98117),i=(o(26099),o(3362),o(50649)),r=function(){var t=(0,n.A)((0,a.A)().m(function t(e,o){var n,r,s,c;return(0,a.A)().w(function(t){for(;;)switch(t.p=t.n){case 0:if(!navigator.clipboard){t.n=4;break}return t.p=1,t.n=2,navigator.clipboard.writeText(e);case 2:return t.a(2);case 3:t.p=3,t.v;case 4:r=o||(null===(n=(0,i.n)())||void 0===n?void 0:n.getRootNode())||document.body,s=r.nodeType===Node.DOCUMENT_NODE?document.body:r,(c=document.createElement("textarea")).value=e,c.setAttribute("readonly",""),c.style.position="fixed",c.style.top="0",c.style.left="0",c.style.opacity="0",s.appendChild(c),c.select(),document.execCommand("copy"),s.removeChild(c);case 5:return t.a(2)}},t,null,[[1,3]])}));return function(e,o){return t.apply(this,arguments)}}();o.d(e,{l:function(){return r}})},25862:function(t,e,o){o.a(t,async function(t,a){try{o.r(e);var n,i,r,s=o(95497),c=o(28430),l=o(36854),p=o(98117),h=o(57567),u=o(25979),d=o(12463),f=o(16472),y=(o(28706),o(62062),o(34782),o(18111),o(61701),o(33110),o(5506),o(26099),o(3362),o(15697)),m=o(57527),b=o(51209),_=o(148),g=o(16227),v=o(98747),A=(o(90507),o(73651)),z=o(95678),k=t([v,A]);[v,A]=k.then?(await k)():k;var w=function(t){function e(){var t;(0,h.A)(this,e);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return(t=(0,f.A)(this,e,[].concat(a)))._open=!1,t}return(0,d.A)(e,t),(0,u.A)(e,[{key:"showDialog",value:(a=(0,p.A)((0,l.A)().m(function t(e){return(0,l.A)().w(function(t){for(;;)switch(t.n){case 0:this._params=e,this._open=!0;case 1:return t.a(2)}},t,this)})),function(t){return a.apply(this,arguments)})},{key:"closeDialog",value:function(){this._open=!1}},{key:"_dialogClosed",value:function(){this._params=void 0,(0,_.r)(this,"dialog-closed",{dialog:this.localName})}},{key:"_copyToClipboard",value:(o=(0,p.A)((0,l.A)().m(function t(){return(0,l.A)().w(function(t){for(;;)switch(t.n){case 0:if(this._params){t.n=1;break}return t.a(2);case 1:return t.n=2,(0,g.l)(JSON.stringify(this._params.entry));case 2:(0,z.P)(this,{message:this.hass.localize("ui.common.copied_clipboard")});case 3:return t.a(2)}},t,this)})),function(){return o.apply(this,arguments)})},{key:"render",value:function(){return this._params?(0,m.qy)(n||(n=(0,c.A)([" <ha-dialog .open="," header-title="," @closed=","> <p> <b>","</b>: "," <br/> <b>","</b>: "," <br/> <b>","</b>: "," <br/> </p> <h4>",'</h4> <table width="100%"> <tbody> '," </tbody> </table> <h4>",'</h4> <table width="100%"> <tbody> ',' </tbody> </table> <ha-dialog-footer slot="footer"> <ha-button slot="primaryAction" appearance="plain" @click=',"> "," </ha-button> </ha-dialog-footer> </ha-dialog> "])),this._open,this.hass.localize("ui.panel.config.zeroconf.discovery_information"),this._dialogClosed,this.hass.localize("ui.panel.config.zeroconf.name"),this._params.entry.name.slice(0,-this._params.entry.type.length-1),this.hass.localize("ui.panel.config.zeroconf.type"),this._params.entry.type,this.hass.localize("ui.panel.config.zeroconf.port"),this._params.entry.port,this.hass.localize("ui.panel.config.zeroconf.ip_addresses"),this._params.entry.ip_addresses.map(function(t){return(0,m.qy)(i||(i=(0,c.A)([" <tr> <td>","</td> </tr> "])),t)}),this.hass.localize("ui.panel.config.zeroconf.properties"),Object.entries(this._params.entry.properties).map(function(t){var e=(0,s.A)(t,2),o=e[0],a=e[1];return(0,m.qy)(r||(r=(0,c.A)([" <tr> <td><b>","</b></td> <td>","</td> </tr> "])),o,a)}),this._copyToClipboard,this.hass.localize("ui.panel.config.zeroconf.copy_to_clipboard")):m.s6}}]);var o,a}(m.WF);(0,y.Cg)([(0,b.MZ)({attribute:!1})],w.prototype,"hass",void 0),(0,y.Cg)([(0,b.wk)()],w.prototype,"_params",void 0),(0,y.Cg)([(0,b.wk)()],w.prototype,"_open",void 0),w=(0,y.Cg)([(0,b.EM)("dialog-zeroconf-device-info")],w),a()}catch(C){a(C)}})}}]);
//# sourceMappingURL=49035.3ae76a9efccb81cf.js.map