export const __rspack_esm_id="54750";export const __rspack_esm_ids=["54750"];export const __webpack_modules__={63130(t,o,e){e.d(o,{l:()=>s});var a=e(50248);const s=async(t,o)=>{if(navigator.clipboard)try{return void await navigator.clipboard.writeText(t)}catch{}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})(),s=document.createElement("textarea");s.value=t,s.setAttribute("readonly",""),s.style.position="fixed",s.style.top="0",s.style.left="0",s.style.opacity="0",e.appendChild(s),s.select(),document.execCommand("copy"),e.removeChild(s)}},29517(t,o,e){e.a(t,async function(t,a){try{e.r(o);e(18111),e(61701),e(33110);var s=e(62826),i=e(96196),r=e(97735),n=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;class y extends i.WF{async showDialog(t){this._params=t,this._open=!0}closeDialog(){this._open=!1}_dialogClosed(){this._params=void 0,(0,n.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?i.qy` <ha-dialog .hass="${this.hass}" .open="${this._open}" header-title="${this.hass.localize("ui.panel.config.zeroconf.discovery_information")}" @closed="${this._dialogClosed}"> <p> <b>${this.hass.localize("ui.panel.config.zeroconf.name")}</b>: ${this._params.entry.name.slice(0,-this._params.entry.type.length-1)} <br> <b>${this.hass.localize("ui.panel.config.zeroconf.type")}</b>: ${this._params.entry.type} <br> <b>${this.hass.localize("ui.panel.config.zeroconf.port")}</b>: ${this._params.entry.port} <br> </p> <h4>${this.hass.localize("ui.panel.config.zeroconf.ip_addresses")}</h4> <table width="100%"> <tbody> ${this._params.entry.ip_addresses.map(t=>i.qy` <tr> <td>${t}</td> </tr> `)} </tbody> </table> <h4>${this.hass.localize("ui.panel.config.zeroconf.properties")}</h4> <table width="100%"> <tbody> ${Object.entries(this._params.entry.properties).map(([t,o])=>i.qy` <tr> <td><b>${t}</b></td> <td>${o}</td> </tr> `)} </tbody> </table> <ha-dialog-footer slot="footer"> <ha-button slot="primaryAction" appearance="plain" @click="${this._copyToClipboard}"> ${this.hass.localize("ui.panel.config.zeroconf.copy_to_clipboard")} </ha-button> </ha-dialog-footer> </ha-dialog> `:i.s6}constructor(...t){super(...t),this._open=!1}}(0,s.Cg)([(0,r.MZ)({attribute:!1})],y.prototype,"hass",void 0),(0,s.Cg)([(0,r.wk)()],y.prototype,"_params",void 0),(0,s.Cg)([(0,r.wk)()],y.prototype,"_open",void 0),y=(0,s.Cg)([(0,r.EM)("dialog-zeroconf-device-info")],y),a()}catch(t){a(t)}})}};
//# sourceMappingURL=54750.8305ba41e5704aeb.js.map