import{D as e,M as t,P as n,V as r,W as i,Y as a,b as o,ft as s,it as c,j as l,n as u,nt as d,ot as f,q as p,st as m,t as h}from"../../client.js";import g from"../circularprogressbar/CircularProgressbar.js";var _=n(`<p class="mc-stepper-compact__description svelte-1o3m5eh"> </p>`),v=n(`<div class="mc-stepper-compact svelte-1o3m5eh"><div class="mc-circular-progressbar mc-stepper-compact__progress svelte-1o3m5eh"><!></div> <div class="mc-stepper-compact__label-container"><p class="mc-stepper-compact__label svelte-1o3m5eh"> </p> <!></div></div>`),y={hash:`svelte-1o3m5eh`,code:`/**
 * Do not edit directly, this file was auto-generated.
 */.mc-stepper-compact.svelte-1o3m5eh {display:inline-flex;justify-content:start;align-items:center;}.mc-stepper-compact__progress.svelte-1o3m5eh {width:3rem;height:3rem;}.mc-stepper-compact__label.svelte-1o3m5eh, .mc-stepper-compact__description.svelte-1o3m5eh {padding-left:0.5rem;}.mc-stepper-compact__label.svelte-1o3m5eh {margin:0;font-weight:var(--font-weight-semi-bold, 600);font-size:var(--font-size-100, 0.875rem);color:var(--progressbar-color-text, #000000);line-height:var(--line-height-s, 1.3);}.mc-stepper-compact__description.svelte-1o3m5eh {margin:0.25rem 0 0;font-weight:var(--font-weight-regular, 400);font-size:var(--font-size-50, 0.75rem);color:var(--stepper-color-information, #666666);line-height:var(--line-height-s, 1.3);}.mc-stepper-compact__progress.svelte-1o3m5eh {width:3rem;height:3rem;}.mc-stepper-compact__progress.svelte-1o3m5eh .mc-circular-progressbar__content {display:block !important;visibility:visible;font-weight:600;font-size:0.875rem;}.mc-stepper-compact__progress.svelte-1o3m5eh .mc-circular-progressbar__number {display:block;visibility:visible;opacity:1;color:inherit;font-size:inherit;line-height:inherit;}.mc-stepper-compact__progress.svelte-1o3m5eh .mc-circular-progressbar__indicator {stroke-width:calc(4 / (48 / 100));stroke:var(--stepper-color-progress-bar-indicator, #117f03);fill:none;stroke-linecap:round;}`};function b(n,h){m(h,!0),o(n,y);let b=u(h,`value`,15,1),x=u(h,`maxsteps`,15,4),S=u(h,`label`,7),C=u(h,`description`,7),w=d(()=>()=>{let e=b()??0,t=x()??1;return Math.round(e/t*100)}),T=d(()=>()=>`${b()} / ${x()}`);var E={get value(){return b()},set value(e=1){b(e),c()},get maxsteps(){return x()},set maxsteps(e=4){x(e),c()},get label(){return S()},set label(e){S(e),c()},get description(){return C()},set description(e){C(e),c()}},D=v(),O=p(D),k=p(O);{let e=d(()=>r(T)()),t=d(()=>r(w)());g(k,{"aria-label":`Progress bar`,type:`content`,size:`m`,get contentvalue(){return r(e)},get value(){return r(t)},class:`mc-circular-progressbar mc-circular-progressbar--m mc-stepper-compact__indicator mc-stepper-compact__number`})}s(O);var A=a(O,2),j=p(A),M=p(j,!0);s(j);var N=a(j,2),P=e=>{var n=_(),r=p(n,!0);s(n),i(()=>l(r,C())),t(e,n)};return e(N,e=>{C()&&e(P)}),s(A),s(D),i(()=>l(M,S())),t(n,D),f(E)}customElements.define(`m-stepper-compact`,h(b,{value:{},maxsteps:{},label:{},description:{}},[],[],{mode:`open`}));
//# sourceMappingURL=StepperCompact.js.map