const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Ki2mHQ3o.js","./Cpj98o6Y.js"])))=>i.map(i=>d[i]);
import{c,h as p}from"./9wDxnFtt.js";import{ag as _,b as u,A as d,o as m,c as f,Y as y,Z as v}from"./pvhYMo2c.js";const h={__name:"lottie",props:{src:{type:String,required:!0},loop:{type:Boolean,default:!0},autoplay:{type:Boolean,default:!0}},async setup(l){let o,a;const s=([o,a]=_(()=>p(()=>import("./Ki2mHQ3o.js").then(e=>e.l),__vite__mapDeps([0,1]),import.meta.url).then(e=>e.default)),o=await o,a(),o),r=l,n=u(null);let t=null;const i=()=>{if(n.value){t&&t.destroy();try{t=s.loadAnimation({container:n.value,renderer:"svg",loop:r.loop,autoplay:r.autoplay,path:r.src}),t.addEventListener("DOMLoaded",()=>{}),t.addEventListener("error",()=>{})}catch{}}};return d(()=>{i()}),m(()=>{t&&(t.destroy(),t=null)}),f(()=>r.src,()=>{i()}),(e,E)=>(v(),y("div",{ref_key:"lottieContainer",ref:n,class:"lottie-container"},null,512))}},A=c(h,[["__scopeId","data-v-30ae87f0"]]);export{A as _};
