import{b9 as p,be as i,ba as l,bc as h,bb as u,b7 as m,b6 as d}from"./index.es-B-rVVYvp.js";const f=new URL("./web-components.css",import.meta.url).href,_=await fetch(f);let n=await _.text();const b=new URL("./",import.meta.url).href;n=n.replace(/url\(\s*['"](\.\.?\/fonts\/[^'"]+)['"]\s*\)/g,(a,o,t)=>{try{return`url('${new URL(t,b).href}')`}catch(s){return console.warn("Failed to convert relative font URL:",t,s),a}});function r(a,o,t){class s extends HTMLElement{__app;config;shadow;constructor(){super(),this.shadow=this.attachShadow({mode:"open"})}connectedCallback(){if(this.__app)return;this.__app=p({render:()=>i(a,{...this.config})}).component("font-awesome-icon",l).use(h).use(u),this.__app.mount(this.shadow);const e=document.createElement("style"),c=document.getElementById("vuetify-theme-stylesheet").innerText;e.textContent=c+`
`+t,this.shadow.appendChild(e)}disconnectedCallback(){this.__app?.unmount(),this.__app=null}setConfig(e){this.config=e,this.__app&&(this.__app._component.props={...e})}}customElements.define(o,s)}r(m,"scrypted-nvr-camera",n);r(d,"scrypted-nvr-events-carousel",n);
