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,v as w}from"../../components.js";var T=r(`<span class="mc-stepper-inline__icon mc-stepper-inline__icon--check svelte-s80odb" aria-hidden="true"><!></span>`),E=r(`<span></span>`),D=r(`<span class="mc-stepper-inline__icon mc-stepper-inline__icon--chevron svelte-s80odb" aria-hidden="true"><!></span>`),O=r(`<li><!> <div class="mc-stepper-inline__content svelte-s80odb"><span> </span></div> <!></li>`),k=r(`<nav><ol class="mc-stepper-inline__container svelte-s80odb"></ol></nav>`),A={hash:`svelte-s80odb`,code:`/**
 * Do not edit directly, this file was auto-generated.
 */.mc-stepper-inline__container.svelte-s80odb {display:flex;align-items:center;gap:1rem;list-style:none;padding:0;margin:0;}.mc-stepper-inline__label.svelte-s80odb {font-size:var(--font-size-100, 0.875rem);transition:color 200ms ease;}.mc-stepper-inline__label.is-current.svelte-s80odb {font-weight:var(--font-weight-medium, 600);color:var(--stepper-color-step-label-active, #000000);}.mc-stepper-inline__item.svelte-s80odb {display:inline-flex;align-items:center;gap:0.5rem;color:var(--stepper-color-step-label-default, #666666);}.mc-stepper-inline__item.is-completed.svelte-s80odb:focus-visible {box-shadow:0 0 0 0.125rem var(--focus-color-mid, var(--focus-color-outline-mid, #ffffff)), 0 0 0 0.25rem var(--focus-color-outer, var(--focus-color-outline-outer, #000000));outline:0.125rem solid transparent;outline-offset:0.125rem;border-radius:var(--border-radius-s, 0.25rem);}.mc-stepper-inline__item.is-completed.svelte-s80odb:hover {cursor:pointer;}.mc-stepper-inline__item.is-completed.svelte-s80odb:hover .mc-stepper-inline__label:where(.svelte-s80odb) {text-decoration:underline;}.mc-stepper-inline__icon.svelte-s80odb {fill:var(--stepper-color-information, #666666);display:flex;flex-shrink:0;}.mc-stepper-inline__icon--check.svelte-s80odb {box-sizing:border-box;width:1.5rem;height:1.5rem;background-color:var(--stepper-color-step-item-default-background, #ffffff);border:0.125rem solid var(--stepper-color-information, #666666);border-radius:1rem;}.mc-stepper-inline__icon--chevron.svelte-s80odb {width:1.25rem;height:1.25rem;}.mc-stepper-inline__circle.svelte-s80odb {box-sizing:border-box;width:1.5rem;height:1.5rem;border-radius:50%;border:0.125rem solid var(--stepper-color-information, #666666);display:flex;align-items:center;justify-content:center;font-size:var(--font-size-100, 0.875rem);font-weight:var(--font-weight-medium, 600);color:var(--stepper-color-information, #666666);background-color:var(--stepper-color-step-item-default-background, #ffffff);flex-shrink:0;transition:background-color 200ms ease, color 200ms ease, border-color 200ms ease;}.mc-stepper-inline__circle.is-current.svelte-s80odb {background-color:var(--stepper-color-step-item-active-background, #117f03);color:var(--stepper-color-step-item-active-text, #ffffff);border-color:transparent;
  animation: svelte-s80odb-pop-in 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;}.mc-stepper-inline__content.svelte-s80odb {display:flex;flex-direction:column;margin-right:0.5rem;}.mc-stepper-inline__additional.svelte-s80odb {font-size:var(--font-size-50, 0.75rem);color:var(--stepper-color-information, #666666);}.mc-stepper-inline__separator.svelte-s80odb {color:var(--stepper-color-information, #666666);margin-left:1rem;}

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