{"version":3,"file":"static/js/59580.f7cf9703.chunk.js","mappings":"+IAoBO,MAAMA,EAAQC,IAcF,IAdG,SACpBC,EAAQ,MACRC,EAAK,MACLC,EAAK,UACLC,EAAS,IACTC,EAAG,OACHC,EAAM,cACNC,EAAa,SACbC,EAAQ,KACRC,EAAI,OACJC,EAAM,MACNC,EAAK,KACLC,EAAI,MACJC,GACWb,EACPc,EAAW,CAAC,EAMhB,OAJU,OAANR,QAAM,IAANA,GAAAA,EAAQS,SACVD,EAAW,CAAEE,OAAQV,EAAO,GAAIW,UAAWX,EAAO,MAIlDY,EAAAA,EAAAA,MAAA,OACEL,MAAOA,EACPF,MAAOA,EACPP,UAAW,GAAGA,GAAwB,sBAAsBH,SAAA,CAE3DA,GAAsB,KACtBS,GAAUL,GACTc,EAAAA,EAAAA,KAAA,OACER,MAAO,IAAKG,EAAUM,WAAYlB,GAClCE,WAAWiB,EAAAA,EAAAA,GAAG,CACZ,aACA,CACE,CAAC,kBAAkBX,KAAWA,EAC9BY,mBAAoBZ,OAIxBP,GAAUK,GAAqB,GAATL,GACxBgB,EAAAA,EAAAA,KAAA,OACEf,WAAWiB,EAAAA,EAAAA,GAAG,CACZ,eACA,CACE,mBAA6B,UAATZ,KAGxBE,MAAO,IAAKG,EAAUM,WAAYlB,GAAQD,SAEzCM,GAAiBJ,IAAUI,GAAiBJ,EACzC,GAAGI,KACHJ,IAEJ,MACJgB,EAAAA,EAAAA,KAAA,QAAMf,UAAU,cAAaH,SAAEW,MAC3B,C","sources":["newcomponents/UI/Badge/index.tsx"],"sourcesContent":["import { CSSProperties, ReactElement, ReactNode } from 'react';\nimport cc from 'classcat';\nimport './index.less';\n\ntype TBadgerops = {\n color?: string;\n count?: ReactNode | string;\n className?: string;\n dot?: boolean;\n offset?: [number, number];\n overflowCount?: number;\n showZero?: boolean;\n size?: 'default' | 'small';\n style?: CSSProperties;\n status?: 'success' | 'processing' | 'default' | 'error' | 'warning';\n text?: ReactNode;\n title?: string;\n children?: ReactElement;\n};\n\nexport const Badge = ({\n children,\n color,\n count,\n className,\n dot,\n offset,\n overflowCount,\n showZero,\n size,\n status,\n style,\n text,\n title\n}: TBadgerops) => {\n let styleOBj = {};\n\n if (offset?.length) {\n styleOBj = { right: -offset[0], marginTop: offset[1] };\n }\n\n return (\n \n {children ? children : null}\n {status || dot ? (\n \n ) : count || (showZero && count == 0) ? (\n \n {overflowCount && count && +overflowCount > +count\n ? `${overflowCount}+`\n : count}\n \n ) : null}\n {text}\n \n );\n};\n"],"names":["Badge","_ref","children","color","count","className","dot","offset","overflowCount","showZero","size","status","style","text","title","styleOBj","length","right","marginTop","_jsxs","_jsx","background","cc","badge__dot__status"],"sourceRoot":""}