"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["54750"],{63130:function(t,o,e){e.d(o,{l:function(){return i}});e(3362);var a=e(50248);const i=async(t,o)=>{if(navigator.clipboard)try{return void(await navigator.clipboard.writeText(t))}catch(s){}const e=o||(()=>{const t=(0,a.n)();if(t instanceof HTMLElement){let o=t.getRootNode(),e=null;for(;o instanceof ShadowRoot&&o.host instanceof HTMLElement;)e=o.host,o=o.host.getRootNode();if(e)return e}return document.body})(),i=document.createElement("textarea");i.value=t,i.setAttribute("readonly",""),i.style.position="fixed",i.style.top="0",i.style.left="0",i.style.opacity="0",e.appendChild(i),i.select(),document.execCommand("copy"),e.removeChild(i)}},29517:function(t,o,e){e.a(t,async function(t,a){try{e.r(o);e(18111),e(61701),e(33110),e(3362),e(62953);var i=e(40445),s=e(96196),n=e(77845),r=e(1087),l=e(63130),c=e(18350),p=(e(93444),e(72554)),h=e(81619),d=t([c,p]);[c,p]=d.then?(await d)():d;let y,f,b,m=t=>t;class u extends s.WF{async showDialog(t){this._params=t,this._open=!0}closeDialog(){this._open=!1}_dialogClosed(){this._params=void 0,(0,r.r)(this,"dialog-closed",{dialog:this.localName})}async _copyToClipboard(){this._params&&(await(0,l.l)(JSON.stringify(this._params.entry)),(0,h.P)(this,{message:this.hass.localize("ui.common.copied_clipboard")}))}render(){return this._params?(0,s.qy)(y||(y=m` <ha-dialog .hass="${0}" .open="${0}" header-title="${0}" @closed="${0}"> <p> <b>${0}</b>: ${0} <br> <b>${0}</b>: ${0} <br> <b>${0}</b>: ${0} <br> </p> <h4>${0}</h4> <table width="100%"> <tbody> ${0} </tbody> </table> <h4>${0}</h4> <table width="100%"> <tbody> ${0} </tbody> </table> <ha-dialog-footer slot="footer"> <ha-button slot="primaryAction" appearance="plain" @click="${0}"> ${0} </ha-button> </ha-dialog-footer> </ha-dialog> `),this.hass,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(t=>(0,s.qy)(f||(f=m` <tr> <td>${0}</td> </tr> `),t)),this.hass.localize("ui.panel.config.zeroconf.properties"),Object.entries(this._params.entry.properties).map(([t,o])=>(0,s.qy)(b||(b=m` <tr> <td><b>${0}</b></td> <td>${0}</td> </tr> `),t,o)),this._copyToClipboard,this.hass.localize("ui.panel.config.zeroconf.copy_to_clipboard")):s.s6}constructor(...t){super(...t),this._open=!1}}(0,i.Cg)([(0,n.MZ)({attribute:!1})],u.prototype,"hass",void 0),(0,i.Cg)([(0,n.wk)()],u.prototype,"_params",void 0),(0,i.Cg)([(0,n.wk)()],u.prototype,"_open",void 0),u=(0,i.Cg)([(0,n.EM)("dialog-zeroconf-device-info")],u),a()}catch(y){a(y)}})}}]);
//# sourceMappingURL=54750.99198bee029a5baf.js.map