import{d as c,p as l,c as p,o as v,bV as _,e as b,i as y,w as f,j as m,a5 as g,ax as w,W as h,M as I,m as k}from"./index-bWjSJxiX.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="44407dae-8bd7-4907-96d8-07f54c1593bc",t._sentryDebugIdIdentifier="sentry-dbid-44407dae-8bd7-4907-96d8-07f54c1593bc")}catch{}})();const x=c({__name:"ListTransition",props:{tag:{}},setup(t){const e=l(null),a=p(()=>e.value&&"$el"in e.value?e.value.$el:e.value),n=l(!1);function r(s=!1){let o=0;n.value=!1,a.value&&Array.from(a.value.children).forEach(i=>{i instanceof HTMLElement&&(i.style.getPropertyValue("--i")===""||s?(i.style.setProperty("--i",`${o}`),o+=1):n.value=!0)})}const u=new MutationObserver(()=>r());function d(){I(()=>{n.value&&(n.value=!1,r(!0))})}return v(()=>{a.value&&(r(),u.observe(a.value,{childList:!0,subtree:!0}))}),_(()=>{u.disconnect()}),(s,o)=>(b(),y(h(s.tag||"div"),{ref_key:"group",ref:e},{default:f(()=>[m(w,{group:"",name:"list-transition-animation",appear:"",onAfterEnter:d},{default:f(()=>[g(s.$slots,"default",{},void 0,!0)]),_:3})]),_:3},512))}}),L=k(x,[["__scopeId","data-v-523de592"]]);export{L}; //# sourceMappingURL=ListTransition-BB1cHVfW.js.map