import{M as e,P as t,W as n,_ as r,b as i,dt as a,ft as o,it as s,j as c,l,n as u,ot as d,q as f,r as p,st as m,t as h,v as g}from"../../client.js";var _=t(`<div><div><div class="mc-linear-progressbar-percentage__label svelte-kh7ttv"><p class="mc-linear-progressbar-percentage__value svelte-kh7ttv"> <span class="mc-linear-progressbar-percentage__unit svelte-kh7ttv">%</span></p></div></div></div>`),v={hash:`svelte-kh7ttv`,code:`/**
 * Do not edit directly, this file was auto-generated.
 */.mc-linear-progressbar-percentage.svelte-kh7ttv {--progress-value: 40;font-family:var(--font-family, LeroyMerlin), sans-serif;background-color:var(--progressbar-color-background, #c9d0de);height:1.5rem;position:relative;min-width:6rem;border-radius:var(--border-radius-l, 1rem);box-sizing:border-box;}.mc-linear-progressbar-percentage__indicator.svelte-kh7ttv {border-radius:var(--border-radius-l, 1rem);background-color:var(--progressbar-color-indicator, #464e63);min-width:40px;height:100%;top:0;left:0;position:absolute;transition:width 0.4s ease;overflow:hidden;display:flex;justify-content:flex-end;width:calc(40px + var(--progress-value) * (100% - 40px) / 100);}.mc-linear-progressbar-percentage__label.svelte-kh7ttv {box-sizing:border-box;border-radius:var(--border-radius-l, 1rem);background-color:var(--progressbar-badge-color-background, #ffffff);color:var(--progressbar-badge-color-text, #171b26);height:1.5rem;width:2.5rem;border:0.125rem solid var(--progressbar-color-indicator, #464e63);display:flex;align-items:center;justify-content:center;}.mc-linear-progressbar-percentage__value.svelte-kh7ttv {font-size:var(--font-size-50, 0.75rem);font-weight:var(--font-weight-semi-bold, 600);margin:0;}.mc-linear-progressbar-percentage__unit.svelte-kh7ttv {font-size:var(--font-size-25, 0.625rem);font-weight:var(--font-weight-semi-bold, 600);margin:0;position:relative;bottom:1px;}`};function y(t,h){m(h,!0),i(t,v);let y=u(h,`value`,7,0),b=u(h,`class`,7),x=p(h,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`value`,`class`]);var S={get value(){return y()},set value(e=0){y(e),s()},get class(){return b()},set class(e){b(e),s()}},C=_(),w=f(C);l(w,()=>({class:`mc-linear-progressbar-percentage__indicator`,role:`progressbar`,style:`--progress-value: ${y()};`,"aria-valuenow":y(),"aria-valuemin":`0`,"aria-valuemax":`100`,...x}),void 0,void 0,void 0,`svelte-kh7ttv`);var T=f(w),E=f(T),D=f(E);return a(),o(E),o(T),o(w),o(C),n(()=>{r(C,1,g([`mc-linear-progressbar-percentage`,b()]),`svelte-kh7ttv`),c(D,`${y()??``} `)}),e(t,C),d(S)}customElements.define(`m-linear-progressbar-percentage`,h(y,{value:{},class:{}},[],[],{mode:`open`}));
//# sourceMappingURL=LinearProgressbarPercentage.js.map