"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("clsx");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function o(e){if(e&&"object"==typeof e&&"default"in e)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var n=o(e),i=r(t);function a(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},u.apply(this,arguments)}function l(e,t){if(null==e)return{};var r,o,n=function(e,t){if(null==e)return{};var r,o,n={},i=Object.keys(e);for(o=0;o<i.length;o++)r=i[o],t.indexOf(r)>=0||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var c={root:"QNSvz",root_variant_dot:"LQAyB",wrapper:"uSbS1","wrapper_position_top-left":"XQbSE","wrapper_position_top-right":"RHHgB","wrapper_position_bottom-left":"UCIFU","wrapper_position_bottom-right":"MA0aH"},p=["value","isShowZero","max","position","variant","children","className"],f=n.forwardRef((function(e,t){var r=e.value,o=e.isShowZero,f=void 0!==o&&o,s=e.max,b=void 0===s?9:s,d=e.position,v=void 0===d?"top-right":d,y=e.variant,g=e.children,m=e.className,O=l(e,p),j=v||"top-right",w=r,_=null;return Number.isInteger(b)&&Number(r)>b&&(w="".concat(b,"+")),(w||0===w&&f)&&(_=n.createElement("span",u({className:i.default(c.root,a({},c.root_variant_dot,"dot"===y),m),ref:t,"data-qaid":"badge","data-testid":"badge"},O),w)),g?n.createElement("div",{className:i.default(c.wrapper,c["wrapper_position_".concat(j)])},g,_):_}));f.displayName="Badge",exports.Badge=f,require("./style.production.css");
