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