export const __rspack_esm_id="54750";export const __rspack_esm_ids=["54750"];export const __webpack_modules__={63130(a,t,e){e.d(t,{l:()=>o});const o=async(a,t)=>{if(navigator.clipboard)try{return void await navigator.clipboard.writeText(a)}catch{}const e=t??document.body,o=document.createElement("textarea");o.value=a,e.appendChild(o),o.select(),document.execCommand("copy"),e.removeChild(o)}},29517(a,t,e){e.a(a,async function(a,o){try{e.r(t);e(18111),e(61701),e(33110);var i=e(62826),s=e(96196),r=e(44457),c=e(1087),n=e(63130),l=e(18350),p=e(72554),h=e(81619),d=a([l]);l=(d.then?(await d)():d)[0];class y extends s.WF{async showDialog(a){this._params=a}closeDialog(){return this._params=void 0,(0,c.r)(this,"dialog-closed",{dialog:this.localName}),!0}async _copyToClipboard(){this._params&&(await(0,n.l)(JSON.stringify(this._params.entry)),(0,h.P)(this,{message:this.hass.localize("ui.common.copied_clipboard")}))}render(){return this._params?s.qy` <ha-dialog open @closed="${this.closeDialog}" .heading="${(0,p.l)(this.hass,this.hass.localize("ui.panel.config.zeroconf.discovery_information"))}"> <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(a=>s.qy` <tr> <td>${a}</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(([a,t])=>s.qy` <tr> <td><b>${a}</b></td> <td>${t}</td> </tr> `)} </tbody> </table> <ha-button appearance="plain" slot="secondaryAction" @click="${this._copyToClipboard}">${this.hass.localize("ui.panel.config.zeroconf.copy_to_clipboard")}</ha-button> </ha-dialog> `:s.s6}}(0,i.Cg)([(0,r.MZ)({attribute:!1})],y.prototype,"hass",void 0),(0,i.Cg)([(0,r.wk)()],y.prototype,"_params",void 0),y=(0,i.Cg)([(0,r.EM)("dialog-zeroconf-device-info")],y),o()}catch(a){o(a)}})}};
//# sourceMappingURL=54750.3e6ffa094118d2d4.js.map