import{al as S,ab as x,ad as C,R as l,af as E,ai as _,am as i,an as N,ao as k}from"./index-CNWvE5qA.js";var p={root:"m_347db0ec","root--dot":"m_fbd81e3d",label:"m_5add502a",section:"m_91fdda9b"};const P={},z=_((o,{radius:d,color:e,gradient:c,variant:a,size:s,autoContrast:n})=>{const t=o.variantColorResolver({color:e||o.primaryColor,theme:o,gradient:c,variant:a||"filled",autoContrast:n});return{root:{"--badge-height":i(s,"badge-height"),"--badge-padding-x":i(s,"badge-padding-x"),"--badge-fz":i(s,"badge-fz"),"--badge-radius":d===void 0?void 0:N(d),"--badge-bg":e||a?t.background:void 0,"--badge-color":e||a?t.color:void 0,"--badge-bd":e||a?t.border:void 0,"--badge-dot-color":a==="dot"?k(e,o):void 0}}}),f=S((o,d)=>{const e=x("Badge",P,o),{classNames:c,className:a,style:s,styles:n,unstyled:t,vars:u,radius:F,color:T,gradient:V,leftSection:g,rightSection:b,children:v,variant:m,fullWidth:y,autoContrast:W,circle:h,mod:B,...R}=e,r=C({name:"Badge",props:e,classes:p,className:a,style:s,classNames:c,styles:n,unstyled:t,vars:u,varsResolver:z});return l.createElement(E,{variant:m,mod:[{block:y,circle:h},B],...r("root",{variant:m}),ref:d,...R},g&&l.createElement("span",{...r("section"),"data-position":"left"},g),l.createElement("span",{...r("label")},v),b&&l.createElement("span",{...r("section"),"data-position":"right"},b))});f.classes=p;f.displayName="@mantine/core/Badge";export{f as B};