1import"./rolldown-runtime-B0Z9INg1.js";import{V as e,nt as t}from"./vendor-react-BDw52h3v.js";import{M as n,P as r,_ as i,i as a,k as o,l as s,t as c,u as l}from"./polymorphic-factory-BOlX0U7n.js";t();var u=e(),d={root:`m_347db0ec`,"root--dot":`m_fbd81e3d`,label:`m_5add502a`,section:`m_91fdda9b`},f=o((e,{radius:t,color:a,gradient:o,variant:s,size:c,autoContrast:l,circle:u})=>{let d=e.variantColorResolver({color:a||e.primaryColor,theme:e,gradient:o,variant:s||`filled`,autoContrast:l});return{root:{"--badge-height":r(c,`badge-height`),"--badge-padding-x":r(c,`badge-padding-x`),"--badge-fz":r(c,`badge-fz`),"--badge-radius":u||t===void 0?void 0:n(t),"--badge-bg":a||s?d.background:void 0,"--badge-color":a||s?d.color:void 0,"--badge-bd":a||s?d.border:void 0,"--badge-dot-color":s===`dot`?i(a,e):void 0}}}),p=c((e,t)=>{let n=s(`Badge`,null,e),{classNames:r,className:i,style:o,styles:c,unstyled:p,vars:m,radius:h,color:g,gradient:_,leftSection:v,rightSection:y,children:b,variant:x,fullWidth:S,autoContrast:C,circle:w,mod:T,attributes:E,...D}=n,O=l({name:`Badge`,props:n,classes:d,className:i,style:o,classNames:r,styles:c,unstyled:p,attributes:E,vars:m,varsResolver:f});return(0,u.jsxs)(a,{variant:x,mod:[{block:S,circle:w,"with-right-section":!!y,"with-left-section":!!v},T],...O(`root`,{variant:x}),ref:t,...D,children:[v&&(0,u.jsx)(`span`,{...O(`section`),"data-position":`left`,children:v}),(0,u.jsx)(`span`,{...O(`label`),children:b}),y&&(0,u.jsx)(`span`,{...O(`section`),"data-position":`right`,children:y})]})});p.classes=d,p.displayName=`@mantine/core/Badge`;export{p as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.