import{D as e,M as t,P as n,W as r,Y as i,b as a,dt as o,ft as s,it as c,j as l,l as u,n as d,ot as f,q as p,r as m,st as h,t as g}from"../../client.js";var _=n(`<div class="mc-circular-progressbar__percentage svelte-oy9ecz"><p class="mc-circular-progressbar__value svelte-oy9ecz"> </p> <p class="mc-circular-progressbar__unit svelte-oy9ecz">%</p></div>`),v=n(`<p class="mc-circular-progressbar__text svelte-oy9ecz"> </p>`),y=n(`<div class="mc-circular-progressbar__content svelte-oy9ecz"><p class="mc-circular-progressbar__number svelte-oy9ecz"> </p> <!></div>`),b=n(`<div><svg class="mc-circular-progressbar__line svelte-oy9ecz" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" viewBox="0 0 100 100"><circle class="mc-circular-progressbar__track svelte-oy9ecz" cx="50" cy="50" r="46"></circle><circle class="mc-circular-progressbar__indicator svelte-oy9ecz" cx="50" cy="50" r="46"></circle></svg> <!> <!></div>`),x={hash:`svelte-oy9ecz`,code:`/**
 * Do not edit directly, this file was auto-generated.
 */.mc-circular-progressbar.svelte-oy9ecz {--progress-value: 40;font-family:var(--font-family, LeroyMerlin), sans-serif;color:var(--progressbar-color-text, #000000);position:relative;display:inline-block;width:9rem;height:9rem;border-radius:50%;}.mc-circular-progressbar__line.svelte-oy9ecz {transform:rotate(270deg);}.mc-circular-progressbar__track.svelte-oy9ecz, .mc-circular-progressbar__indicator.svelte-oy9ecz {stroke-width:calc(8 / (144 / 100));fill:none;stroke-linecap:round;}.mc-circular-progressbar__track.svelte-oy9ecz {stroke:var(--progressbar-color-background, #c9d0de);}.mc-circular-progressbar__indicator.svelte-oy9ecz {stroke:var(--progressbar-color-indicator, #464e63);stroke-dasharray:289.1428571429;stroke-dashoffset:calc((100 - var(--progress-value)) / 100 * 289.1428571429);transition:stroke-dashoffset 0.3s ease;}.mc-circular-progressbar__content.svelte-oy9ecz {display:flex;flex-direction:column;justify-content:center;align-items:center;position:absolute;margin:0;top:50%;left:50%;transform:translate(-50%, -50%);}.mc-circular-progressbar__number.svelte-oy9ecz, .mc-circular-progressbar__text.svelte-oy9ecz {white-space:nowrap;text-align:center;line-height:var(--line-height-s, 1.3);margin:0;color:var(--progressbar-color-text, #000000);}.mc-circular-progressbar__number.svelte-oy9ecz {font-size:var(--font-size-300, 1.5rem);}.mc-circular-progressbar__text.svelte-oy9ecz {font-size:var(--font-size-100, 0.875rem);line-height:var(--line-height-s, 1.3);}.mc-circular-progressbar__percentage.svelte-oy9ecz {display:flex;justify-content:center;align-items:center;position:absolute;margin:0;top:50%;left:50%;transform:translate(-50%, -50%);}.mc-circular-progressbar__value.svelte-oy9ecz, .mc-circular-progressbar__unit.svelte-oy9ecz {font-weight:var(--font-weight-semi-bold, 600);line-height:var(--line-height-s, 1.3);color:var(--progressbar-color-text, #000000);}.mc-circular-progressbar__value.svelte-oy9ecz {font-size:var(--font-size-600, 2.5rem);}.mc-circular-progressbar__unit.svelte-oy9ecz {font-size:var(--font-size-300, 1.5rem);}.mc-circular-progressbar--m.svelte-oy9ecz .mc-circular-progressbar__content:where(.svelte-oy9ecz), .mc-circular-progressbar--s.svelte-oy9ecz .mc-circular-progressbar__content:where(.svelte-oy9ecz) {display:none;}.mc-circular-progressbar--m.svelte-oy9ecz .mc-circular-progressbar__percentage:where(.svelte-oy9ecz), .mc-circular-progressbar--s.svelte-oy9ecz .mc-circular-progressbar__percentage:where(.svelte-oy9ecz) {display:none;}.mc-circular-progressbar--m.svelte-oy9ecz::after, .mc-circular-progressbar--s.svelte-oy9ecz::after {display:none;}.mc-circular-progressbar--m.svelte-oy9ecz .mc-circular-progressbar__track:where(.svelte-oy9ecz),
.mc-circular-progressbar--m.svelte-oy9ecz .mc-circular-progressbar__indicator:where(.svelte-oy9ecz) {stroke-width:calc(4 / (48 / 100));}.mc-circular-progressbar--m.svelte-oy9ecz {width:3rem;height:3rem;}.mc-circular-progressbar--s.svelte-oy9ecz .mc-circular-progressbar__track:where(.svelte-oy9ecz),
.mc-circular-progressbar--s.svelte-oy9ecz .mc-circular-progressbar__indicator:where(.svelte-oy9ecz) {stroke-width:calc(4 / (32 / 100));transform-origin:center;transform:scale(0.95);}.mc-circular-progressbar--s.svelte-oy9ecz {width:2rem;height:2rem;}`};function S(n,g){h(g,!0),a(n,x);let S=d(g,`size`,7),C=d(g,`value`,7,0),w=d(g,`type`,7,`percentage`),T=d(g,`contentvalue`,7),E=d(g,`additionalinfo`,7),D=d(g,`class`,7),O=m(g,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`size`,`value`,`type`,`contentvalue`,`additionalinfo`,`class`]);var k={get size(){return S()},set size(e){S(e),c()},get value(){return C()},set value(e=0){C(e),c()},get type(){return w()},set type(e=`percentage`){w(e),c()},get contentvalue(){return T()},set contentvalue(e){T(e),c()},get additionalinfo(){return E()},set additionalinfo(e){E(e),c()},get class(){return D()},set class(e){D(e),c()}},A=b();u(A,()=>({class:[`mc-circular-progressbar`,S()&&`mc-circular-progressbar--${S()}`,D()],role:`progressbar`,"aria-valuenow":C(),"aria-valuemin":`0`,"aria-valuemax":`100`,style:`--progress-value: ${C()};`,...O}),void 0,void 0,void 0,`svelte-oy9ecz`);var j=i(p(A),2),M=e=>{var n=_(),i=p(n),a=p(i,!0);s(i),o(2),s(n),r(()=>l(a,C())),t(e,n)};e(j,e=>{w()===`percentage`&&e(M)});var N=i(j,2),P=n=>{var a=y(),o=p(a),c=p(o,!0);s(o);var u=i(o,2),d=e=>{var n=v(),i=p(n,!0);s(n),r(()=>l(i,E())),t(e,n)};e(u,e=>{E()&&e(d)}),s(a),r(()=>l(c,T())),t(n,a)};return e(N,e=>{w()===`content`&&e(P)}),s(A),t(n,A),f(k)}customElements.define(`m-circular-progressbar`,g(S,{size:{},value:{},type:{},contentvalue:{},additionalinfo:{},class:{}},[],[],{mode:`open`}));export{S as default};
//# sourceMappingURL=CircularProgressbar.js.map