import{__exports as e}from"../../../_virtual/Spinner.js";import t from"react";import{p as r}from"../../prop-types/index.js";import{c as a}from"../../classnames/index.js";import"./utils.js";import{__exports as n}from"../../../_virtual/utils.js";!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=u(t),s=u(r),l=u(a),i=n,c=["className","cssModule","type","size","color","children","tag"];function u(e){return e&&e.__esModule?e:{default:e}}function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},p.apply(this,arguments)}function d(e,t){if(null==e)return{};var r,a,n=function(e,t){if(null==e)return{};var r,a,n={},o=Object.keys(e);for(a=0;a<o.length;a++)r=o[a],t.indexOf(r)>=0||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var f={tag:i.tagPropType,type:s.default.oneOf(["border","grow"]),size:s.default.oneOf(["sm"]),color:s.default.oneOf(["primary","secondary","success","danger","warning","info","light","dark"]),className:s.default.string,cssModule:s.default.object,children:s.default.string};function m(e){var t=e.className,r=e.cssModule,a=e.type,n=e.size,s=e.color,u=e.children,f=e.tag,m=d(e,c),y=(0,i.mapToCssModules)((0,l.default)(t,!!n&&"spinner-".concat(a,"-").concat(n),"spinner-".concat(a),!!s&&"text-".concat(s)),r);return o.default.createElement(f,p({role:"status"},m,{className:y}),u&&o.default.createElement("span",{className:(0,i.mapToCssModules)("visually-hidden",r)},u))}m.propTypes=f,m.defaultProps={tag:"div",type:"border",children:"Loading..."};var y=m;e.default=y}(e);
//# sourceMappingURL=Spinner.js.map
