import{c as C,e as $,a as B,p as d,s as L,t as h,b as g,d as R,f as _,l as D,h as o,m,k as E,r as l}from"../../custom-element.js";import{i as S}from"../../if.js";import{a as V,s as p}from"../../attributes.js";import"../../branches.js";var q=_('<span class="mc-loader__text svelte-g7kvnj"> </span>'),A=_('<div><span class="mc-loader__spinner svelte-g7kvnj"><svg class="mc-loader__icon svelte-g7kvnj" xmlns="http://www.w3.org/2000/svg"><circle class="mc-loader__path svelte-g7kvnj" cx="50%" cy="50%"></circle></svg></span> <!></div>');const F={hash:"svelte-g7kvnj",code:`/**
 * Do not edit directly, this file was auto-generated.
 */.mc-loader.svelte-g7kvnj .mc-loader__spinner:where(.svelte-g7kvnj) {height:2rem;width:2rem;}.mc-loader.svelte-g7kvnj .mc-loader__path:where(.svelte-g7kvnj) {stroke-width:4;}.mc-loader.svelte-g7kvnj {color:var(--loader-color-standard, #464e63);}.mc-loader.svelte-g7kvnj .mc-loader__path:where(.svelte-g7kvnj) {stroke:currentColor;}.mc-loader.svelte-g7kvnj {align-items:center;display:inline-flex;flex-direction:column;}.mc-loader__spinner.svelte-g7kvnj:not(:only-child) {margin-bottom:1rem;}.mc-loader__icon.svelte-g7kvnj {
  animation: svelte-g7kvnj-rotate-loader 2s linear infinite;transform-origin:center;}.mc-loader__path.svelte-g7kvnj {fill:none;stroke-dasharray:1, 200;stroke-dashoffset:0;stroke-linecap:round;
  animation: svelte-g7kvnj-animate-dash-loader 2s ease-in-out infinite;}.mc-loader__text.svelte-g7kvnj {font-size:var(--font-size-150, 1rem);color:currentcolor;}.mc-loader.svelte-g7kvnj:not(.mc-loader--text-visible) .mc-loader__text:where(.svelte-g7kvnj) {clip-path:inset(100%);clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute;white-space:nowrap;padding:0;width:1px;}.mc-loader--xs.svelte-g7kvnj .mc-loader__spinner:where(.svelte-g7kvnj) {height:1.25rem;width:1.25rem;}.mc-loader--xs.svelte-g7kvnj .mc-loader__path:where(.svelte-g7kvnj) {stroke-width:2;}.mc-loader--s.svelte-g7kvnj .mc-loader__spinner:where(.svelte-g7kvnj) {height:1.5rem;width:1.5rem;}.mc-loader--s.svelte-g7kvnj .mc-loader__path:where(.svelte-g7kvnj) {stroke-width:4;}.mc-loader--l.svelte-g7kvnj .mc-loader__spinner:where(.svelte-g7kvnj) {height:4rem;width:4rem;}.mc-loader--l.svelte-g7kvnj .mc-loader__path:where(.svelte-g7kvnj) {stroke-width:8;}.mc-loader--accent.svelte-g7kvnj {color:var(--loader-color-accent, #117f03);}.mc-loader--accent.svelte-g7kvnj .mc-loader__path:where(.svelte-g7kvnj) {stroke:currentColor;}.mc-loader--inverse.svelte-g7kvnj {color:var(--loader-color-inverse, #ffffff);}.mc-loader--inverse.svelte-g7kvnj .mc-loader__path:where(.svelte-g7kvnj) {stroke:currentColor;}

@keyframes svelte-g7kvnj-rotate-loader {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(270deg);
  }
}
@keyframes svelte-g7kvnj-animate-dash-loader {
  0% {
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 89, 200;
    stroke-dashoffset: -35px;
  }
  100% {
    stroke-dasharray: 89, 200;
    stroke-dashoffset: -124px;
  }
}`};function G(k,t){$(t,!0),B(k,F);let r=d(t,"size",7,"m"),v=d(t,"appearance",7,"standard"),a=d(t,"text",7),f=D(t,["$$slots","$$events","$$legacy","$$host","size","appearance","text"]);const j=()=>{let e;switch(r()){case"xs":e="0 0 20 20";break;case"s":e="0 0 24 24";break;case"l":e="0 0 64 64";break;default:e="0 0 32 32"}return e},w=()=>{let e;switch(r()){case"xs":e=6;break;case"s":e=6;break;case"l":e=19;break;default:e=9}return e};var x={get size(){return r()},set size(e="m"){r(e),m()},get appearance(){return v()},set appearance(e="standard"){v(e),m()},get text(){return a()},set text(e){a(e),m()}},n=A();V(n,()=>({class:["mc-loader",`mc-loader--${r()}`,`mc-loader--${v()}`,a()&&"mc-loader--text-visible"],...f}),void 0,void 0,void 0,"svelte-g7kvnj");var c=o(n),i=o(c),u=o(i);l(i),l(c);var b=L(c,2);{var y=e=>{var s=q(),z=o(s,!0);l(s),h(()=>E(z,a())),g(e,s)};S(b,e=>{a()&&e(y)})}return l(n),h((e,s)=>{p(i,"viewBox",e),p(u,"r",s)},[j,w]),g(k,n),R(x)}customElements.define("m-loader",C(G,{size:{},appearance:{},text:{}},[],[],{mode:"open"}));export{G as L};
//# sourceMappingURL=Loader.js.map
