export const __rspack_esm_id=71659;export const __rspack_esm_ids=[71659];export const __webpack_modules__={16227(a,t,s){var o=s(50649);s.d(t,{},{l: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=s.nodeType===Node.DOCUMENT_NODE?document.body:s,i=document.createElement("textarea");i.value=a,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)}})},57094(a,t,s){s.a(a,async function(a,o){try{s.r(t);s(18111),s(61701),s(33110);var e=s(15697),i=s(57527),d=s(79224),l=s(148),p=s(98747),r=(s(90507),s(73651)),n=s(95678),c=s(16227),h=s(22486),_=a([p,r]);[p,r]=_.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 .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)}})},22486(a,t,s){var o=s(148);const e=()=>Promise.all([s.e(30781),s.e(17405),s.e(55595),s.e(35935)]).then(s.bind(s,58898));s.d(t,{},{k:(a,t)=>{(0,o.r)(a,"show-dialog",{dialogTag:"dialog-ssdp-raw-data",dialogImport:e,dialogParams:t})}})}};
//# sourceMappingURL=71659.fa86fd8f0aae1688.js.map