export const __rspack_esm_id="39670";export const __rspack_esm_ids=["39670"];export const __webpack_modules__={63130(a,s,t){t.d(s,{l:()=>i});const i=async(a,s)=>{if(navigator.clipboard)try{return void await navigator.clipboard.writeText(a)}catch{}const t=s??document.body,i=document.createElement("textarea");i.value=a,t.appendChild(i),i.select(),document.execCommand("copy"),t.removeChild(i)}},58485(a,s,t){t.a(a,async function(a,i){try{t.r(s);t(18111),t(61701),t(33110);var e=t(62826),o=t(96196),d=t(44457),l=t(1087),r=t(72554),n=t(18350),p=t(81619),c=t(63130),h=t(34675),_=a([n]);n=(_.then?(await _)():_)[0];class b extends o.WF{async showDialog(a){this._params=a}closeDialog(){return this._params=void 0,(0,l.r)(this,"dialog-closed",{dialog:this.localName}),!0}async _copyToClipboard(){this._params&&(await(0,c.l)(JSON.stringify(this._params.entry)),(0,p.P)(this,{message:this.hass.localize("ui.common.copied_clipboard")}))}_showRawData(a,s){return t=>{t.preventDefault(),(0,h.k)(this,{key:a,data:s})}}render(){return this._params?o.qy` <ha-dialog open @closed="${this.closeDialog}" .heading="${(0,r.l)(this.hass,this.hass.localize("ui.panel.config.ssdp.discovery_information"))}"> <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,s])=>o.qy` <tr> <td><b>${a}</b></td> <td>${s}</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,s])=>o.qy` <tr> <td><b>${a}</b></td> <td> ${"object"==typeof s&&null!==s?o.qy`<a href="#" @click="${this._showRawData(a,s)}">${this.hass.localize("ui.panel.config.ssdp.show_raw_data")}</a>`:s} </td> </tr> `)} </tbody> </table> <ha-button appearance="plain" slot="secondaryAction" @click="${this._copyToClipboard}"> ${this.hass.localize("ui.panel.config.ssdp.copy_to_clipboard")} </ha-button> </ha-dialog> `:o.s6}}(0,e.Cg)([(0,d.MZ)({attribute:!1})],b.prototype,"hass",void 0),(0,e.Cg)([(0,d.wk)()],b.prototype,"_params",void 0),b=(0,e.Cg)([(0,d.EM)("dialog-ssdp-device-info")],b),i()}catch(a){i(a)}})},34675(a,s,t){t.d(s,{k:()=>o});var i=t(1087);const e=()=>Promise.all([t.e("96261"),t.e("52074"),t.e("72130"),t.e("85010"),t.e("87020"),t.e("34310"),t.e("32544")]).then(t.bind(t,9837)),o=(a,s)=>{(0,i.r)(a,"show-dialog",{dialogTag:"dialog-ssdp-raw-data",dialogImport:e,dialogParams:s})}}};
//# sourceMappingURL=39670.471d2f056540bd04.js.map