import{__exports as e}from"../../../_virtual/Progress.js";import r from"react";import{p as t}from"../../prop-types/index.js";import{c as a}from"../../classnames/index.js";import"./utils.js";import{__exports as l}from"../../../_virtual/utils.js";!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=f(r),o=f(t),s=f(a),u=l,i=["children","className","barClassName","cssModule","value","min","max","animated","striped","color","bar","multi","tag","style","barStyle","barAriaValueText","barAriaLabelledBy"];function f(e){return e&&e.__esModule?e:{default:e}}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},c.apply(this,arguments)}function b(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,a)}return t}function d(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?b(Object(t),!0).forEach((function(r){p(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):b(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function p(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function m(e,r){if(null==e)return{};var t,a,l=function(e,r){if(null==e)return{};var t,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)t=n[a],r.indexOf(t)>=0||(l[t]=e[t]);return l}(e,r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)t=n[a],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(l[t]=e[t])}return l}var y={animated:o.default.bool,bar:o.default.bool,barAriaLabelledBy:o.default.string,barAriaValueText:o.default.string,barClassName:o.default.string,barStyle:o.default.object,children:o.default.node,className:o.default.string,cssModule:o.default.object,color:o.default.string,max:o.default.oneOfType([o.default.string,o.default.number]),min:o.default.oneOfType([o.default.string,o.default.number]),multi:o.default.bool,striped:o.default.bool,style:o.default.object,tag:u.tagPropType,value:o.default.oneOfType([o.default.string,o.default.number])};function g(e){var r=e.children,t=e.className,a=e.barClassName,l=e.cssModule,o=e.value,f=e.min,b=e.max,p=e.animated,y=e.striped,g=e.color,O=e.bar,v=e.multi,j=e.tag,P=e.style,x=e.barStyle,h=e.barAriaValueText,w=e.barAriaLabelledBy,N=m(e,i),T=(0,u.toNumber)(o)/(0,u.toNumber)(b)*100,_=(0,u.mapToCssModules)((0,s.default)(t,"progress"),l),S={className:(0,u.mapToCssModules)((0,s.default)("progress-bar",O&&t||a,p?"progress-bar-animated":null,g?"bg-".concat(g):null,y||p?"progress-bar-striped":null),l),style:d(d(d({},O?P:{}),x),{},{width:"".concat(T,"%")}),role:"progressbar","aria-valuenow":o,"aria-valuemin":f,"aria-valuemax":b,"aria-valuetext":h,"aria-labelledby":w,children:r};return O?n.default.createElement(j,c({},N,S)):n.default.createElement(j,c({},N,{style:P,className:_}),v?r:n.default.createElement("div",S))}g.propTypes=y,g.defaultProps={tag:"div",value:0,min:0,max:100,style:{},barStyle:{}};var O=g;e.default=O}(e);
//# sourceMappingURL=Progress.js.map
