export const __rspack_esm_id=49035;export const __rspack_esm_ids=[49035];export const __webpack_modules__={16227(t,o,e){var a=e(50649);e.d(o,{},{l:async(t,o)=>{if(navigator.clipboard)try{return void await navigator.clipboard.writeText(t)}catch{}const e=o||(0,a.n)()?.getRootNode()||document.body,i=e.nodeType===Node.DOCUMENT_NODE?document.body:e,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",i.appendChild(s),s.select(),document.execCommand("copy"),i.removeChild(s)}})},25862(t,o,e){e.a(t,async function(t,a){try{e.r(o);e(18111),e(61701),e(33110);var i=e(15697),s=e(57527),r=e(79224),n=e(148),p=e(16227),l=e(98747),c=(e(90507),e(73651)),d=e(95678),h=t([l,c]);[l,c]=h.then?(await h)():h;class y extends s.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,p.l)(JSON.stringify(this._params.entry)),(0,d.P)(this,{message:this.hass.localize("ui.common.copied_clipboard")}))}render(){return this._params?s.qy` <ha-dialog .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=>s.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])=>s.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> `:s.s6}constructor(...t){super(...t),this._open=!1}}(0,i.Cg)([(0,r.MZ)({attribute:!1})],y.prototype,"hass",void 0),(0,i.Cg)([(0,r.wk)()],y.prototype,"_params",void 0),(0,i.Cg)([(0,r.wk)()],y.prototype,"_open",void 0),y=(0,i.Cg)([(0,r.EM)("dialog-zeroconf-device-info")],y),a()}catch(t){a(t)}})}};
//# sourceMappingURL=49035.32f51add20203492.js.map