export const __rspack_esm_id="11600";export const __rspack_esm_ids=["11600"];export const __webpack_modules__={63130(t,a,e){e.d(a,{l:()=>o});const o=async(t,a)=>{if(navigator.clipboard)try{return void await navigator.clipboard.writeText(t)}catch{}const e=a??document.body,o=document.createElement("textarea");o.value=t,e.appendChild(o),o.select(),document.execCommand("copy"),e.removeChild(o)}},80243(t,a,e){e.a(t,async function(t,o){try{e.r(a);e(18111),e(61701),e(33110);var s=e(62826),i=e(96196),r=e(44457),l=e(1087),h=e(63130),c=e(18350),n=e(72554),d=e(81619),p=t([c]);c=(p.then?(await p)():p)[0];class b extends i.WF{async showDialog(t){this._params=t}closeDialog(){return this._params=void 0,(0,l.r)(this,"dialog-closed",{dialog:this.localName}),!0}showDataAsHex(t){return(t.match(/.{2}/g)??[]).map(t=>`0x${t.toUpperCase()}`).join(" ")}async _copyToClipboard(){this._params&&(await(0,h.l)(JSON.stringify(this._params.entry)),(0,d.P)(this,{message:this.hass.localize("ui.common.copied_clipboard")}))}render(){return this._params?i.qy` <ha-dialog open @closed="${this.closeDialog}" .heading="${(0,n.l)(this.hass,this.hass.localize("ui.panel.config.bluetooth.device_information"))}"> <p> <b>${this.hass.localize("ui.panel.config.bluetooth.address")}</b>: ${this._params.entry.address} <br> <b>${this.hass.localize("ui.panel.config.bluetooth.name")}</b>: ${this._params.entry.name} <br> <b>${this.hass.localize("ui.panel.config.bluetooth.source")}</b>: ${this._params.entry.source} </p> <h3> ${this.hass.localize("ui.panel.config.bluetooth.advertisement_data")} </h3> <h4> ${this.hass.localize("ui.panel.config.bluetooth.manufacturer_data")} </h4> <table width="100%"> <tbody> ${Object.entries(this._params.entry.manufacturer_data).map(([t,a])=>i.qy` <tr> <td><b>${t}</b></td> <td>${this.showDataAsHex(a)}</td> </tr> `)} </tbody> </table> <h4>${this.hass.localize("ui.panel.config.bluetooth.service_data")}</h4> <table width="100%"> <tbody> ${Object.entries(this._params.entry.service_data).map(([t,a])=>i.qy` <tr> <td><b>${t}</b></td> <td>${this.showDataAsHex(a)}</td> </tr> `)} </tbody> </table> <h4> ${this.hass.localize("ui.panel.config.bluetooth.service_uuids")} </h4> <table width="100%"> <tbody> ${this._params.entry.service_uuids.map(t=>i.qy` <tr> <td>${t}</td> </tr> `)} </tbody> </table> <ha-button appearance="plain" slot="secondaryAction" @click="${this._copyToClipboard}">${this.hass.localize("ui.panel.config.bluetooth.copy_to_clipboard")}</ha-button> </ha-dialog> `:i.s6}}(0,s.Cg)([(0,r.MZ)({attribute:!1})],b.prototype,"hass",void 0),(0,s.Cg)([(0,r.wk)()],b.prototype,"_params",void 0),b=(0,s.Cg)([(0,r.EM)("dialog-bluetooth-device-info")],b),o()}catch(t){o(t)}})}};
//# sourceMappingURL=11600.71071ca0a22b1136.js.map