"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),t=require("@babel/runtime/helpers/objectWithoutProperties"),r=require("react/jsx-runtime"),s=require("classnames"),a=require("../Counter/Counter.js"),o=require("../BadgeBase/BadgeBase.js"),n=require("../BadgeBase/BadgeBase.scss.js");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=u(e),i=u(t),f=u(s),d=["max","type","testId","className","children","count","badgeClassName","offsetX","offsetY"];function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,s)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){c.default(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}exports.BadgeCounter=function(e){var t=e.max,s=void 0===t?1/0:t,u=e.type,c=void 0===u?"default":u,l=e.testId,p=e.className,g=e.children,j=e.count,O=e.badgeClassName,m=e.offsetX,y=void 0===m?-1:m,h=e.offsetY,v=void 0===h?0:h,B=i.default(e,d);return r.jsx(o.BadgeBase,b(b({badge:r.jsx(a.Counter,{count:j,max:s,type:c,className:f.default(n.badge,n.badgeShadow,O),size:"small"}),className:p,testId:l,offsetX:y,offsetY:v,badgeHeight:16},B),{},{children:g}))};
//# sourceMappingURL=BadgeCounter.js.map
