"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/objectWithoutProperties"),t=require("react/jsx-runtime"),s=require("react"),a=require("classnames"),r=require("./BadgeBase.scss.js");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=i(e),d=i(a),l=["children","testId","className","badge","offsetY","offsetX","badgeHeight"];exports.BadgeBase=function(e){var a=e.children,i=e.testId,n=e.className,o=e.badge,u=e.offsetY,f=e.offsetX,h=e.badgeHeight,b=c.default(e,l),m=s.isValidElement(a)&&Object.keys(b).length>0?s.cloneElement(a,b):a,g={"--shift-x":"".concat(f,"px"),"--shift-y":"".concat(u,"px"),"--radius":"".concat(h/2,"px")};return t.jsxs("div",{className:d.default(r.root,n),style:g,"data-testid":i,children:[t.jsx("div",{className:r.masked,children:m}),o]})};
//# sourceMappingURL=BadgeBase.js.map
