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,l as u,n as d,nt as f,ot as p,q as m,r as h,st as g,t as _}from"../../client.js";import v from"../circularprogressbar/CircularProgressbar.js";var y=n(`<p class="mc-stepper-compact__description svelte-1o3m5eh"> </p>`),b=n(`<div><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>`),x={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__indicator.svelte-1o3m5eh {stroke-width:calc(4 / (48 / 100));stroke:var(--stepper-color-progress-bar-indicator, #117f03);fill:none;stroke-linecap:round;}.mc-stepper-compact__number.svelte-1o3m5eh {font-size:var(--font-size-100, 0.875rem);font-weight:var(--font-weight-semi-bold, 600);color:var(--progressbar-color-text, #000000);}.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 S(n,_){g(_,!0),o(n,x);let S=d(_,`value`,15,1),C=d(_,`maxsteps`,15,4),w=d(_,`label`,7),T=d(_,`description`,7),E=d(_,`class`,7),D=h(_,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`value`,`maxsteps`,`label`,`description`,`class`]),O=f(()=>()=>{let e=S()??0,t=C()??1;return Math.round(e/t*100)}),k=f(()=>()=>`${S()} / ${C()}`);var A={get value(){return S()},set value(e=1){S(e),c()},get maxsteps(){return C()},set maxsteps(e=4){C(e),c()},get label(){return w()},set label(e){w(e),c()},get description(){return T()},set description(e){T(e),c()},get class(){return E()},set class(e){E(e),c()}},j=b();u(j,()=>({class:[`mc-stepper-compact`,E()],...D}),void 0,void 0,void 0,`svelte-1o3m5eh`);var M=m(j),N=m(M);{let e=f(()=>r(k)()),t=f(()=>r(O)());v(N,{"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(M);var P=a(M,2),F=m(P),I=m(F,!0);s(F);var L=a(F,2),R=e=>{var n=y(),r=m(n,!0);s(n),i(()=>l(r,T())),t(e,n)};return e(L,e=>{T()&&e(R)}),s(P),s(j),i(()=>l(I,w())),t(n,j),p(A)}customElements.define(`m-stepper-compact`,_(S,{value:{},maxsteps:{},label:{},description:{},class:{}},[],[],{mode:`open`}));
//# sourceMappingURL=StepperCompact.js.map