export const __rspack_esm_id="39670";export const __rspack_esm_ids=["39670"];export const __webpack_modules__={63130(a,t,s){s.d(t,{l:()=>e});var o=s(50248);const e=async(a,t)=>{if(navigator.clipboard)try{return void await navigator.clipboard.writeText(a)}catch{}const s=t||(0,o.n)()?.getRootNode()||document.body,e=document.createElement("textarea");e.value=a,e.setAttribute("readonly",""),e.style.position="fixed",e.style.top="0",e.style.left="0",e.style.opacity="0",s.appendChild(e),e.select(),document.execCommand("copy"),s.removeChild(e)}},58485(a,t,s){s.a(a,async function(a,o){try{s.r(t);s(18111),s(61701),s(33110);var e=s(62826),i=s(96196),d=s(97735),l=s(1087),r=s(18350),p=(s(93444),s(72554)),n=s(81619),c=s(63130),h=s(34675),_=a([r,p]);[r,p]=_.then?(await _)():_;class y extends i.WF{async showDialog(a){this._params=a,this._open=!0}closeDialog(){this._open=!1}_dialogClosed(){this._params=void 0,(0,l.r)(this,"dialog-closed",{dialog:this.localName})}async _copyToClipboard(){this._params&&(await(0,c.l)(JSON.stringify(this._params.entry)),(0,n.P)(this,{message:this.hass.localize("ui.common.copied_clipboard")}))}_showRawData(a,t){return s=>{s.preventDefault(),(0,h.k)(this,{key:a,data:t})}}render(){return this._params?i.qy` <ha-dialog .hass="${this.hass}" .open="${this._open}" header-title="${this.hass.localize("ui.panel.config.ssdp.discovery_information")}" @closed="${this._dialogClosed}"> <p> <b>${this.hass.localize("ui.panel.config.ssdp.name")}</b>: ${this._params.entry.name} <br> <b>${this.hass.localize("ui.panel.config.ssdp.ssdp_st")}</b>: ${this._params.entry.ssdp_st} <br> <b>${this.hass.localize("ui.panel.config.ssdp.ssdp_location")}</b>: ${this._params.entry.ssdp_location} </p> <h4>${this.hass.localize("ui.panel.config.ssdp.ssdp_headers")}</h4> <table width="100%"> <tbody> ${Object.entries(this._params.entry.ssdp_headers).map(([a,t])=>i.qy` <tr> <td><b>${a}</b></td> <td>${t}</td> </tr> `)} </tbody> </table> <h4>${this.hass.localize("ui.panel.config.ssdp.upnp")}</h4> <table width="100%"> <tbody> ${Object.entries(this._params.entry.upnp).map(([a,t])=>i.qy` <tr> <td><b>${a}</b></td> <td> ${"object"==typeof t&&null!==t?i.qy`<a href="#" @click="${this._showRawData(a,t)}">${this.hass.localize("ui.panel.config.ssdp.show_raw_data")}</a>`:t} </td> </tr> `)} </tbody> </table> <ha-dialog-footer slot="footer"> <ha-button slot="primaryAction" appearance="plain" @click="${this._copyToClipboard}"> ${this.hass.localize("ui.panel.config.ssdp.copy_to_clipboard")} </ha-button> </ha-dialog-footer> </ha-dialog> `:i.s6}constructor(...a){super(...a),this._open=!1}}(0,e.Cg)([(0,d.MZ)({attribute:!1})],y.prototype,"hass",void 0),(0,e.Cg)([(0,d.wk)()],y.prototype,"_params",void 0),(0,e.Cg)([(0,d.wk)()],y.prototype,"_open",void 0),y=(0,e.Cg)([(0,d.EM)("dialog-ssdp-device-info")],y),o()}catch(a){o(a)}})},34675(a,t,s){s.d(t,{k:()=>i});var o=s(1087);const e=()=>Promise.all([s.e("72130"),s.e("85010"),s.e("34310"),s.e("85632")]).then(s.bind(s,9837)),i=(a,t)=>{(0,o.r)(a,"show-dialog",{dialogTag:"dialog-ssdp-raw-data",dialogImport:e,dialogParams:t})}}};
//# sourceMappingURL=39670.8ff74328ec7c24e2.js.map