import{p as e,t}from"./utils-Bs-0X7qI.js";import{r as n}from"./bundle-mjs-C4g7ASB5.js";import{t as r}from"./dist-CImBN8k_.js";import{t as i}from"./svg-icons-C-UC8sjI.js";import{t as a}from"./badge-CoY2mFvb.js";var o=e(),s=n(),c=r(``,{variants:{variant:{success:`fill-green-500 dark:fill-green-400`,destructive:`fill-destructive`,muted:`fill-muted-foreground`}},defaultVariants:{variant:`success`}});function l(e){let n=(0,o.c)(11),{active:r,children:l,activeText:u,inactiveText:d,activeVariant:f,inactiveVariant:p,className:m}=e,h=r===void 0?!0:r,g=u===void 0?`已启用`:u,_=d===void 0?`已禁用`:d,v=h?f===void 0?`success`:f:p===void 0?`destructive`:p,y=h?i.circleCheckFilled:i.circleXFilled,b=l??(h?g:_),x;n[0]===m?x=n[1]:(x=t(`text-muted-foreground pr-1.5 pl-1`,m),n[0]=m,n[1]=x);let S;n[2]===v?S=n[3]:(S=t(c({variant:v})),n[2]=v,n[3]=S);let C;n[4]!==y||n[5]!==S?(C=(0,s.jsx)(y,{className:S}),n[4]=y,n[5]=S,n[6]=C):C=n[6];let w;return n[7]!==x||n[8]!==C||n[9]!==b?(w=(0,s.jsxs)(a,{variant:`outline`,className:x,children:[C,b]}),n[7]=x,n[8]=C,n[9]=b,n[10]=w):w=n[10],w}export{l as t};