export const __rspack_esm_id="39670";export const __rspack_esm_ids=["39670"];export const __webpack_modules__={63130(t,a,s){s.d(a,{l:()=>e});var o=s(50248);const e=async(t,a)=>{if(navigator.clipboard)try{return void await navigator.clipboard.writeText(t)}catch{}const s=a||(()=>{const t=(0,o.n)();if(t instanceof HTMLElement){let a=t.getRootNode(),s=null;for(;a instanceof ShadowRoot&&a.host instanceof HTMLElement;)s=a.host,a=a.host.getRootNode();if(s)return s}return document.body})(),e=document.createElement("textarea");e.value=t,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(t,a,s){s.a(t,async function(t,o){try{s.r(a);s(18111),s(61701),s(33110);var e=s(62826),i=s(96196),l=s(97735),n=s(1087),r=s(18350),d=(s(93444),s(72554)),p=s(81619),c=s(63130),h=s(34675),_=t([r,d]);[r,d]=_.then?(await _)():_;class y extends i.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,c.l)(JSON.stringify(this._params.entry)),(0,p.P)(this,{message:this.hass.localize("ui.common.copied_clipboard")}))}_showRawData(t,a){return s=>{s.preventDefault(),(0,h.k)(this,{key:t,data:a})}}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(([t,a])=>i.qy` <tr> <td><b>${t}</b></td> <td>${a}</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(([t,a])=>i.qy` <tr> <td><b>${t}</b></td> <td> ${"object"==typeof a&&null!==a?i.qy`<a href="#" @click="${this._showRawData(t,a)}">${this.hass.localize("ui.panel.config.ssdp.show_raw_data")}</a>`:a} </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(...t){super(...t),this._open=!1}}(0,e.Cg)([(0,l.MZ)({attribute:!1})],y.prototype,"hass",void 0),(0,e.Cg)([(0,l.wk)()],y.prototype,"_params",void 0),(0,e.Cg)([(0,l.wk)()],y.prototype,"_open",void 0),y=(0,e.Cg)([(0,l.EM)("dialog-ssdp-device-info")],y),o()}catch(t){o(t)}})},34675(t,a,s){s.d(a,{k:()=>i});var o=s(1087);const e=()=>Promise.all([s.e("72130"),s.e("85010"),s.e("37199"),s.e("34310"),s.e("32544")]).then(s.bind(s,9837)),i=(t,a)=>{(0,o.r)(t,"show-dialog",{dialogTag:"dialog-ssdp-raw-data",dialogImport:e,dialogParams:a})}}};
//# sourceMappingURL=39670.b841f184d14ba9fb.js.map