import{B as e,E as t,F as n,H as r,It as i,M as a,Mt as o,Q as s,T as c,U as l,W as u,Z as d,_t as f,at as p,ft as m,ht as h,jt as g,mt as _,ot as v,pt as y,s as b,st as x,tt as S}from"./BA99CCI5.js";import"./xihTtKlq.js";import"./DGo8yE5j.js";var C=u(`<span><!> <!></span>`);function w(u,w){o(w,!1);let T=h(),E=h(),D=b(w,`variant`,8,`accent`),O=b(w,`size`,8,`sm`),k=b(w,`icon`,8,null),A=b(w,`mono`,8,!1),j={accent:`bg-accent-100 text-accent-800 dark:bg-accent-900 dark:text-accent-200`,neutral:`bg-neutral-100 text-neutral-700 dark:bg-neutral-800 dark:text-neutral-300`,success:`bg-emerald-100 text-emerald-800 dark:bg-emerald-900 dark:text-emerald-200`,warning:`bg-amber-100 text-amber-800 dark:bg-amber-900 dark:text-amber-200`,danger:`bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-200`,info:`bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-200`,radarr:`text-neutral-900 dark:text-neutral-100`,sonarr:`text-neutral-900 dark:text-neutral-100`},M={sm:`px-1.5 py-0.5 text-[10px]`,md:`px-2 py-0.5 text-xs`};p(()=>d(O()),()=>{f(T,O()===`sm`?10:12)}),p(()=>d(D()),()=>{f(E,D()===`radarr`?`background-color: var(--arr-radarr-color); color: #111827;`:D()===`sonarr`?`background-color: var(--arr-sonarr-color); color: #111827;`:``)}),v();var N=C(),P=m(N),F=e=>{var t=l(),n=y(t);a(n,k,(e,t)=>{t(e,{get size(){return s(T)}})}),r(e,t)};e(P,e=>{k()&&e(F)});var I=_(P,2);n(I,w,`default`,{},null),i(N),x(()=>{c(N,s(E)),t(N,1,`inline-flex items-center gap-1 rounded font-medium ${d(D()),S(()=>j[D()])??``} ${d(O()),S(()=>M[O()])??``} ${A()?`font-mono`:``}`)}),r(u,N),g()}export{w as t};