import{c as H,e as J,a as K,p as $,g as L,b as p,d as N,f as c,l as O,h as a,m as C,i as s,s as I,r as n,t as j,j as g,n as x,k as P,w as y}from"../../custom-element.js";import{i as M}from"../../if.js";import{e as Q,i as T}from"../../each.js";import{a as U}from"../../attributes.js";import{f as V,g as W}from"../../Condition20.js";import"../../branches.js";var X=c('<span class="mc-stepper-inline__icon mc-stepper-inline__icon--check svelte-s80odb" aria-hidden="true"><!></span>'),Y=c("<span></span>"),Z=c('<span class="mc-stepper-inline__icon mc-stepper-inline__icon--chevron svelte-s80odb" aria-hidden="true"><!></span>'),ee=c('<li><!> <div class="mc-stepper-inline__content svelte-s80odb"><span> </span></div> <!></li>'),re=c('<nav><ol class="mc-stepper-inline__container svelte-s80odb"></ol></nav>');const te={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 se(k,m){J(m,!0),K(k,te);let l=$(m,"step",15,0),o=$(m,"steps",31,()=>L([])),D=O(m,["$$slots","$$events","$$legacy","$$host","step","steps"]);const w=y(()=>{if(typeof l()=="number")return Math.min(Math.max(l(),1),o().length)-1;{const t=o().findIndex(i=>i.id===l());return t===-1?0:t}}),E=y(()=>o().map((t,i)=>({completed:i<s(w),current:i===s(w)})));var R={get step(){return l()},set step(t=0){l(t),C()},get steps(){return o()},set steps(t=[]){o(t),C()}},d=re();U(d,()=>({class:"mc-stepper-inline","aria-label":"Stepper",...D}),void 0,void 0,void 0,"svelte-s80odb");var z=a(d);return Q(z,21,o,T,(t,i,_,oe)=>{const v=y(()=>s(E)[_]);var f=ee(),S=a(f);{var q=r=>{var e=X(),h=a(e);V(h,{}),n(e),p(r,e)},A=r=>{var e=Y();e.textContent=_+1,j(()=>g(e,1,x(["mc-stepper-inline__circle",s(v).current?"is-current":""]),"svelte-s80odb")),p(r,e)};M(S,r=>{s(v).completed?r(q):r(A,-1)})}var b=I(S,2),u=a(b),B=a(u,!0);n(u),n(b);var F=I(b,2);{var G=r=>{var e=Z(),h=a(e);W(h,{}),n(e),p(r,e)};M(F,r=>{_<o().length-1&&r(G)})}n(f),j(()=>{g(f,1,x(["mc-stepper-inline__item",s(v).completed?"is-completed":""]),"svelte-s80odb"),g(u,1,x(["mc-stepper-inline__label",s(v).current?"is-current":""]),"svelte-s80odb"),P(B,s(i).label)}),p(t,f)}),n(z),n(d),p(k,d),N(R)}customElements.define("m-stepper-inline",H(se,{step:{},steps:{}},[],[],{mode:"open"}));
//# sourceMappingURL=StepperInline.js.map
