import{p as w,r as c,j as n,c as b,S as V,C as S}from"./index-CUDottTv.js";const h=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,f=w,C=(t,r)=>e=>{var o;if((r==null?void 0:r.variants)==null)return f(t,e==null?void 0:e.class,e==null?void 0:e.className);const{variants:s,defaultVariants:l}=r,y=Object.keys(s).map(a=>{const d=e==null?void 0:e[a],u=l==null?void 0:l[a];if(d===null)return null;const i=h(d)||h(u);return s[a][i]}),m=e&&Object.entries(e).reduce((a,d)=>{let[u,i]=d;return i===void 0||(a[u]=i),a},{}),p=r==null||(o=r.compoundVariants)===null||o===void 0?void 0:o.reduce((a,d)=>{let{class:u,className:i,...N}=d;return Object.entries(N).every(j=>{let[v,x]=j;return Array.isArray(x)?x.includes({...l,...m}[v]):{...l,...m}[v]===x})?[...a,u,i]:a},[]);return f(t,y,p,e==null?void 0:e.class,e==null?void 0:e.className)},k=C("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-all disabled:opacity-50 disabled:pointer-events-none cursor-pointer",{variants:{variant:{primary:"bg-accent text-text-inverse border border-accent font-semibold hover:brightness-110",secondary:"bg-bg-overlay text-text-primary border border-border-strong hover:border-border-hover hover:brightness-110",ghost:"bg-transparent text-text-secondary hover:bg-bg-hover hover:text-text-primary",danger:"bg-red-dark text-red-light border border-red-border hover:brightness-125",success:"bg-green-dark text-green-light border border-green-border hover:brightness-125"},size:{sm:"h-7 px-2.5 text-xs",md:"h-9 px-4 text-sm",lg:"h-11 px-6 text-base",icon:"h-9 w-9"}},defaultVariants:{variant:"secondary",size:"md"}}),z=c.forwardRef(({className:t,variant:r,size:e,...o},s)=>n.jsx("button",{ref:s,className:b(k({variant:r,size:e}),t),...o}));z.displayName="Button";const g=c.forwardRef(({className:t,icon:r,...e},o)=>n.jsxs("div",{className:"relative",children:[r&&n.jsx("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-text-tertiary",children:r}),n.jsx("input",{ref:o,className:b("w-full h-9 rounded-md bg-bg-input text-text-primary text-sm","border border-border-strong placeholder:text-text-muted","focus:border-border-hover focus:outline-none","transition-colors",r?"pl-9 pr-3":"px-3",t),...e})]}));g.displayName="Input";function I(t){return n.jsx(g,{icon:n.jsx(V,{size:15}),placeholder:"Search...",...t})}const R=c.forwardRef(({className:t,options:r,...e},o)=>n.jsxs("div",{className:"relative",children:[n.jsx("select",{ref:o,className:b("w-full h-9 rounded-md bg-bg-input text-text-primary text-sm appearance-none","border border-border-strong","focus:border-border-hover focus:outline-none","transition-colors px-3 pr-8",t),...e,children:r.map(s=>n.jsx("option",{value:s.value,children:s.label},s.value))}),n.jsx(S,{size:14,className:"absolute right-2.5 top-1/2 -translate-y-1/2 text-text-tertiary pointer-events-none"})]}));R.displayName="Select";const O=c.forwardRef(({className:t,...r},e)=>n.jsx("textarea",{ref:e,className:b("w-full rounded-md bg-bg-input text-text-primary text-sm font-mono","border border-border-strong placeholder:text-text-muted","focus:border-border-hover focus:outline-none","transition-colors p-3 resize-none",t),...r}));O.displayName="Textarea";export{z as B,I as S,C as c};
