import{jsxs as a,Fragment as e,jsx as s}from"react/jsx-runtime";import{forwardRef as c}from"react";import{BadgeType as i}from"./BadgeConstants.js";import o from"classnames";import"./Badge.scss.js";import t from"../Icon/Icon.js";var d=c((function(c){var d=c.dot,l=c.type,n=c.label,r=c.icon,b=c.iconClassName,m=c.draft,g=c.isDot,p=c.special,v=c.value,N=void 0===v?"0,96":v,u=c.badgeGroup,f=void 0!==u&&u,j=c.text;return a(e,{children:[void 0!==g&&g&&s("div",{className:o("badge","badge--dot-".concat(d))}),f&&a("div",Object.assign({className:"badgeGroup"},{children:[n,s(t,{iconType:null==t?void 0:t.type.ICON_FONT,clickable:!1,icon:r,className:b,ignoreFocusStyle:!0}),j]})),p&&s("div",Object.assign({className:o("badgeBase","badgeBase--special-".concat(p))},{children:N})),m&&a("div",Object.assign({className:o("badgeBase","badgeBase--draft-".concat(m))},{children:[s("div",{className:o("badge","badge--dot-".concat(d))}),s("div",Object.assign({className:"draftLabel"},{children:n}))]})),l&&a("div",Object.assign({className:o("badgeBase","badgeBase--type-".concat(l))},{children:[r&&s(t,{iconType:null==t?void 0:t.type.ICON_FONT,clickable:!1,icon:r,className:b,ignoreFocusStyle:!0}),n&&s("div",Object.assign({className:l===i.PRIMARY||l===i.PRIMARYCIRCLE?"labelWhite":"labelBlack"},{children:n}))]}))]})}));export{d as default};
