import{d as v,aD as g,aE as m,p as _,o as p,c1 as a,G as k,e as u,f,r as D,a5 as I,k as h,t as w,F as x}from"./index-0LqjRhnu.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new s.Error().stack;n&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[n]="81459b2c-53ef-4218-a21a-a00ebbef456d",s._sentryDebugIdIdentifier="sentry-dbid-81459b2c-53ef-4218-a21a-a00ebbef456d")}catch{}})();const M=v({__name:"StepWrapper",props:g({steps:{default:2}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(s){const n=s,d=m(s,"modelValue"),i=_([]);p(()=>{for(let e=1;e<n.steps;e++)a.set(i.value[e],{opacity:0,display:"none"})});const r=async(e,o,t)=>{const l=a.timeline(),y=t!=null&&t.reverse?20:-20,b=t!=null&&t.reverse?-20:20,c=t!=null&&t.immediate?0:.3;await l.fromTo(i.value[o-1],{opacity:1},{opacity:0,x:y,duration:c},0),await a.set(i.value[o-1],{display:"none",opacity:0}),await a.set(i.value[e-1],{display:"block",opacity:0}),await l.fromTo(i.value[e-1],{opacity:0,x:b},{opacity:1,x:0,duration:c},"<100%")};return k(d,(e,o)=>{o===void 0?r(e,1,{immediate:!0}):e>o&&e<=n.steps?r(e,o):e<o&&e!==0&&r(e,o,{reverse:!0})},{immediate:!0}),(e,o)=>(u(!0),f(x,null,D(e.steps,t=>(u(),f("div",{key:t,ref_for:!0,ref_key:"stepContent",ref:i,class:"step"},[I(e.$slots,`step-${t}`,{},()=>[h(w(t),1)])]))),128))}});export{M as _};
//# sourceMappingURL=StepWrapper.vue_vue_type_style_index_0_lang-BppE9WRx.js.map