import*as r from"react";import{keyframes as e}from"../../../../@emotion/react/dist/emotion-react.esm.js";import{useStyleConfig as t}from"../../../system/dist/esm/use-style-config.js";import{omitThemingProps as s}from"../../../system/dist/esm/system.utils.js";import{VisuallyHidden as o}from"../../../visually-hidden/dist/esm/visually-hidden.js";import{forwardRef as i}from"../../../system/dist/esm/forward-ref.js";import{cx as n}from"../../../utils/dist/esm/dom.js";import{chakra as m}from"../../../system/dist/esm/system.js";import{__DEV__ as a}from"../../../utils/dist/esm/assertion.js";function l(){return(l=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(r[s]=t[s])}return r}).apply(this,arguments)}var d=e({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),p=i(((e,i)=>{var a=t("Spinner",e),p=s(e),{label:f="Loading...",thickness:c="2px",speed:u="0.45s",emptyColor:y="transparent",className:b}=p,j=function(r,e){if(null==r)return{};var t,s,o={},i=Object.keys(r);for(s=0;s<i.length;s++)t=i[s],e.indexOf(t)>=0||(o[t]=r[t]);return o}(p,["label","thickness","speed","emptyColor","className"]),h=n("chakra-spinner",b),v=l({display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:c,borderBottomColor:y,borderLeftColor:y,animation:d+" "+u+" linear infinite"},a);return r.createElement(m.div,l({ref:i,__css:v,className:h},j),f&&r.createElement(o,null,f))}));a&&(p.displayName="Spinner");export{p as Spinner};
//# sourceMappingURL=spinner.js.map
