"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),c=i(o),d={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"},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,_=void 0===b?"top-right":b,m=e.variant,v=e.children,h=e.className,g=l.default(e,f),w=_||"top-right",j=r,y=null;return Number.isInteger(n)&&Number(r)>n&&(j="".concat(n,"+")),(j||0===j&&o)&&(y=s.createElement("span",u.default({className:c.default(d.root,p.default({},d.root_variant_dot,"dot"===m),h),ref:t,"data-qaid":"badge","data-testid":"badge"},g),j)),v?s.createElement("div",{className:c.default(d.wrapper,d["wrapper_position_".concat(w)])},v,y):y}));b.displayName="Badge",exports.Badge=b,require("./style.production.v2.css");
