"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/extends"),t=require("@babel/runtime/helpers/defineProperty"),r=require("@babel/runtime/helpers/objectWithoutProperties"),a=require("react"),o=require("clsx");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function n(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 a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var u=i(e),p=i(t),l=i(r),s=n(a),d=i(o),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"},f=["value","isShowZero","max","position","variant","children","className"],b=s.forwardRef((function(e,t){var r=e.value,a=e.isShowZero,o=void 0!==a&&a,i=e.max,n=void 0===i?9:i,b=e.position,m=void 0===b?"top-right":b,v=e.variant,_=e.children,g=e.className,h=l.default(e,f),w=m||"top-right",y=r,j=null;return Number.isInteger(n)&&Number(r)>n&&(y="".concat(n,"+")),(y||0===y&&o)&&(j=s.createElement("span",u.default({className:d.default(c.root,p.default({},c.root_variant_dot,"dot"===v),g),ref:t,"data-qaid":"badge","data-testid":"badge"},h),y)),_?s.createElement("div",{className:d.default(c.wrapper,c["wrapper_position_".concat(w)])},_,j):j}));b.displayName="Badge",exports.Badge=b,require("./style.production.css");
