import{D as e,E as t,M as n,P as r,T as i,V as a,W as o,X as s,Y as c,_ as l,b as u,ft as d,it as f,j as p,l as m,n as h,nt as g,ot as _,q as v,r as y,st as b,t as x,v as S}from"../../client.js";import{f as C}from"../../components.js";var w=r(`<span class="mc-stepper-stacked__icon mc-stepper-stacked__icon--check svelte-wnz47h"><!></span>`),T=r(`<span></span>`),E=r(`<li><div class="mc-stepper-stacked__indicator svelte-wnz47h"><!></div> <div class="mc-stepper-stacked__content svelte-wnz47h"><span> </span> <span class="mc-stepper-stacked__additional svelte-wnz47h"> </span></div></li>`),D=r(`<nav><ol class="mc-stepper-stacked__container svelte-wnz47h"></ol></nav>`),O={hash:`svelte-wnz47h`,code:`/**
 * Do not edit directly, this file was auto-generated.
 */.mc-stepper-stacked__container.svelte-wnz47h {display:flex;flex-direction:column;list-style:none;padding:0;margin:0;}.mc-stepper-stacked__indicator.svelte-wnz47h {display:flex;flex-direction:column;align-items:center;margin-right:0.5rem;position:relative;min-height:100%;padding-bottom:2rem;}.mc-stepper-stacked__indicator.svelte-wnz47h::after {content:"";position:absolute;top:1.5rem;bottom:0;width:0.125rem;background-color:var(--stepper-color-progress-bar-background, #c9d0de);left:50%;transform:translateX(-50%);}.mc-stepper-stacked__circle.svelte-wnz47h {box-sizing:border-box;width:1.5rem;height:1.5rem;border-radius:50%;border:0.125rem solid var(--stepper-color-step-item-default-border, #333333);display:flex;align-items:center;justify-content:center;font-size:var(--font-size-100, 0.875rem);font-weight:var(--font-weight-bold, 700);color:var(--stepper-color-information, #666666);background-color:var(--stepper-color-step-item-default-background, #ffffff);z-index:1;flex-shrink:0;transition:background-color 200ms ease, color 200ms ease, border-color 200ms ease;}.mc-stepper-stacked__circle.is-current.svelte-wnz47h {background-color:var(--stepper-color-step-item-active-background, #117f03);border-color:var(--stepper-color-step-item-active-background, #117f03);color:var(--stepper-color-step-item-active-text, #ffffff);
  animation: svelte-wnz47h-pop-in 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;}.mc-stepper-stacked__icon--check.svelte-wnz47h {width:1.5rem;height:1.5rem;display:flex;align-items:center;justify-content:center;color:var(--stepper-color-step-item-default-icon, #666666);fill:currentcolor;border:0.125rem solid var(--stepper-color-step-item-default-border, #333333);border-radius:50%;box-sizing:border-box;background-color:var(--stepper-color-step-item-default-background, #ffffff);z-index:1;}.mc-stepper-stacked__content.svelte-wnz47h {display:flex;flex-direction:column;padding-top:0.25rem;}.mc-stepper-stacked__label.svelte-wnz47h {font-size:var(--font-size-100, 0.875rem);color:var(--stepper-color-step-label-default, #666666);line-height:var(--line-height-s, 1.3);transition:color 200ms ease;}.mc-stepper-stacked__label.is-current.svelte-wnz47h {font-weight:var(--font-weight-medium, 600);color:var(--stepper-color-step-label-active, #000000);}.mc-stepper-stacked__additional.svelte-wnz47h {font-size:var(--font-size-50, 0.75rem);color:var(--stepper-color-information, #666666);margin-top:0.25rem;}.mc-stepper-stacked__item.svelte-wnz47h {display:flex;position:relative;}.mc-stepper-stacked__item.has-additional.svelte-wnz47h .mc-stepper-stacked__indicator:where(.svelte-wnz47h),
.mc-stepper-stacked__item.has-additional.svelte-wnz47h .mc-stepper-stacked__content:where(.svelte-wnz47h) {padding-bottom:1rem;}.mc-stepper-stacked__item.svelte-wnz47h:last-child .mc-stepper-stacked__indicator:where(.svelte-wnz47h),
.mc-stepper-stacked__item.svelte-wnz47h:last-child .mc-stepper-stacked__content:where(.svelte-wnz47h) {padding-bottom:0;}.mc-stepper-stacked__item.svelte-wnz47h:last-child .mc-stepper-stacked__indicator:where(.svelte-wnz47h)::after {display:none;}

@keyframes svelte-wnz47h-pop-in {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}`};function k(r,x){b(x,!0),u(r,O);let k=h(x,`step`,15,1),A=h(x,`steps`,31,()=>s([])),j=h(x,`class`,7),M=y(x,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`step`,`steps`,`class`]),N=g(()=>{if(typeof k()==`number`)return Math.min(Math.max(k(),1),A().length)-1;{let e=A().findIndex(e=>e.id===k());return e===-1?0:e}}),P=g(()=>()=>A().map((e,t)=>({completed:t<a(N),current:t===a(N)})));var F={get step(){return k()},set step(e=1){k(e),f()},get steps(){return A()},set steps(e=[]){A(e),f()},get class(){return j()},set class(e){j(e),f()}},I=D();m(I,()=>({class:[`mc-stepper-stacked`,j()],"aria-label":`Stepper`,...M}),void 0,void 0,void 0,`svelte-wnz47h`);var L=v(I);return i(L,21,A,t,(t,r,i,s)=>{let u=g(()=>a(P)()[i]);var f=E(),m=v(f),h=v(m),_=e=>{var t=w();C(v(t),{}),d(t),n(e,t)},y=e=>{var t=T();t.textContent=i+1,o(()=>l(t,1,S({"mc-stepper-stacked__circle":!0,"is-current":a(u).current}),`svelte-wnz47h`)),n(e,t)};e(h,e=>{a(u).completed?e(_):e(y,-1)}),d(m);var b=c(m,2),x=v(b),D=v(x,!0);d(x);var O=c(x,2),k=v(O,!0);d(O),d(b),d(f),o(()=>{l(f,1,S({"mc-stepper-stacked__item":!0,"has-additional":a(r).additionalinfo}),`svelte-wnz47h`),l(x,1,S({"mc-stepper-stacked__label":!0,"is-current":a(u).current}),`svelte-wnz47h`),p(D,a(r).label),p(k,a(r).additionalinfo)}),n(t,f)}),d(L),d(I),n(r,I),_(F)}customElements.define(`m-stepper-stacked`,x(k,{step:{},steps:{},class:{}},[],[],{mode:`open`}));
//# sourceMappingURL=StepperStacked.js.map