import{f as y,g as c,h as b,i as o,a as e,S as u,M as x,j as v,t as s,__tla as __tla_0}from"./TeamThemeProvider-BMMWqJEv.js";import{c as m,__tla as __tla_1}from"./vault-state-DXmi8wtw.js";let $;let __tla=Promise.all([(()=>{try{return __tla_0}catch{}})(),(()=>{try{return __tla_1}catch{}})()]).then(async()=>{var h=s('<span class="relative h-[8px] w-[8px] shrink-0"><span class="absolute left-px top-px h-[6px] w-[6px] rounded-full bg-[var(--badge-dot)]">'),w=s("<div>");let f,_,z;f={gray:{bg:"var(--utility-grey-50)",border:"var(--utility-grey-200)",text:"var(--utility-grey-700)",dot:"var(--utility-grey-500)"},brand:{bg:"var(--utility-brand-50)",border:"var(--utility-brand-200)",text:"var(--utility-brand-700)",dot:"var(--utility-brand-500)"},error:{bg:"var(--utility-error-50)",border:"var(--utility-error-200)",text:"var(--utility-error-700)",dot:"var(--utility-error-500)"},warning:{bg:"var(--utility-warning-50)",border:"var(--utility-warning-200)",text:"var(--utility-warning-700)",dot:"var(--utility-warning-500)"},success:{bg:"var(--utility-success-50)",border:"var(--utility-success-200)",text:"var(--utility-success-700)",dot:"var(--utility-success-500)"}};_={sm:"type-text-xs",md:"type-text-sm",lg:"type-text-sm"};z={sm:{pill:{none:"px-[8px] py-[2px]",dot:"gap-[4px] pl-[6px] pr-[8px] py-[2px]"},color:{none:"px-[6px] py-[2px]",dot:"gap-[4px] px-[6px] py-[2px]"},modern:{none:"px-[6px] py-[2px]",dot:"gap-[4px] px-[6px] py-[2px]"}},md:{pill:{none:"px-[10px] py-[2px]",dot:"gap-[6px] pl-[8px] pr-[10px] py-[2px]"},color:{none:"px-[8px] py-[2px]",dot:"gap-[6px] px-[8px] py-[2px]"},modern:{none:"px-[8px] py-[2px]",dot:"gap-[6px] px-[8px] py-[2px]"}},lg:{pill:{none:"px-[12px] py-[4px]",dot:"gap-[6px] pl-[10px] pr-[12px] py-[4px]"},color:{none:"px-[10px] py-[4px]",dot:"gap-[6px] px-[10px] py-[4px]"},modern:{none:"px-[10px] py-[4px]",dot:"gap-[6px] px-[10px] py-[4px]"}}};$=i=>{const[t,d]=y(i,["class","tone","size","variant","icon","style","children"]),l=()=>t.tone??"gray",a=()=>t.size??"sm",p=()=>t.variant??"pill",n=()=>t.icon??"none",g=()=>{const r=f[l()];return p()==="modern"?{"--badge-bg":"var(--bg-primary)","--badge-border":"var(--border-primary)","--badge-text":"var(--text-secondary)","--badge-dot":r.dot,"--badge-shadow":"var(--effect-shadow-xs)",...t.style}:{"--badge-bg":r.bg,"--badge-border":r.border,"--badge-text":r.text,"--badge-dot":r.dot,...t.style}};return(()=>{var r=w();return c(r,b({get class(){return m("inline-flex items-center whitespace-nowrap rounded-none border border-solid font-medium text-center","bg-[var(--badge-bg)] border-[var(--badge-border)] text-[var(--badge-text)]",_[a()],z[a()][p()][n()],p()==="modern"&&"shadow-[0_1px_2px_0_var(--badge-shadow)]",t.class)},get style(){return g()}},d),!1,!0),o(r,e(u,{get when(){return n()==="dot"},get children(){return h()}}),null),o(r,e(v,{get children(){return[e(x,{get when(){return t.children},get children(){return t.children}}),e(x,{get when(){return!t.children},children:"Label"})]}}),null),r})()}});export{$ as B,__tla};