"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["54750"],{63130:function(t,e,a){a.d(e,{l:function(){return r}});var n=a(61397),i=a(50264),r=function(){var t=(0,i.A)((0,n.A)().m(function t(e,a){var i,r;return(0,n.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:i=null!=a?a:document.body,(r=document.createElement("textarea")).value=e,i.appendChild(r),r.select(),document.execCommand("copy"),i.removeChild(r);case 5:return t.a(2)}},t,null,[[1,3]])}));return function(e,a){return t.apply(this,arguments)}}()},29517:function(t,e,a){a.a(t,async function(t,n){try{a.r(e);var i,r,o,s=a(78261),c=a(72153),l=a(61397),h=a(50264),p=a(44734),u=a(43080),d=a(69683),f=a(6454),y=(a(62062),a(34782),a(18111),a(61701),a(33110),a(5506),a(26099),a(40445)),b=a(96196),m=a(77845),g=a(1087),_=a(63130),v=a(18350),A=a(72554),z=a(81619),w=t([v]);v=(w.then?(await w)():w)[0];var k=function(t){function e(){return(0,p.A)(this,e),(0,d.A)(this,e,arguments)}return(0,f.A)(e,t),(0,u.A)(e,[{key:"showDialog",value:(n=(0,h.A)((0,l.A)().m(function t(e){return(0,l.A)().w(function(t){for(;;)switch(t.n){case 0:this._params=e;case 1:return t.a(2)}},t,this)})),function(t){return n.apply(this,arguments)})},{key:"closeDialog",value:function(){return this._params=void 0,(0,g.r)(this,"dialog-closed",{dialog:this.localName}),!0}},{key:"_copyToClipboard",value:(a=(0,h.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,_.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 a.apply(this,arguments)})},{key:"render",value:function(){return this._params?(0,b.qy)(i||(i=(0,c.A)([' <ha-dialog open @closed="','" .heading="','"> <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-button appearance="plain" slot="secondaryAction" @click="','">',"</ha-button> </ha-dialog> "])),this.closeDialog,(0,A.l)(this.hass,this.hass.localize("ui.panel.config.zeroconf.discovery_information")),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,b.qy)(r||(r=(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),a=e[0],n=e[1];return(0,b.qy)(o||(o=(0,c.A)([" <tr> <td><b>","</b></td> <td>","</td> </tr> "])),a,n)}),this._copyToClipboard,this.hass.localize("ui.panel.config.zeroconf.copy_to_clipboard")):b.s6}}]);var a,n}(b.WF);(0,y.Cg)([(0,m.MZ)({attribute:!1})],k.prototype,"hass",void 0),(0,y.Cg)([(0,m.wk)()],k.prototype,"_params",void 0),k=(0,y.Cg)([(0,m.EM)("dialog-zeroconf-device-info")],k),n()}catch(C){n(C)}})}}]);
//# sourceMappingURL=54750.d61ce0d2a2bb5ea6.js.map