"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:"_-2hEg",root_variant_dot:"_4qcc0",wrapper:"_7bkFh","wrapper_position_top-left":"k-olF","wrapper_position_top-right":"MTPK-","wrapper_position_bottom-left":"WZaNZ","wrapper_position_bottom-right":"blz1u"},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,g=e.variant,m=e.children,y=e.className,O=l(e,p),_=v||"top-right",j=r,h=null;return Number.isInteger(b)&&Number(r)>b&&(j="".concat(b,"+")),(j||0===j&&f)&&(h=n.createElement("span",u({className:i.default(c.root,a({},c.root_variant_dot,"dot"===g),y),ref:t,"data-qaid":"badge","data-testid":"badge"},O),j)),m?n.createElement("div",{className:i.default(c.wrapper,c["wrapper_position_".concat(_)])},m,h):h}));f.displayName="Badge",exports.Badge=f,require("./style.production.v2.css");
