import{o as e}from"./rolldown-runtime-C_s2cVnS.js";import{h as t,m as n,n as r}from"./vendor-react-nmZsNlRz.js";import{n as i}from"./button-C_jHykqW.js";import{t as a}from"./utils-BRwGVQJx.js";t();var o=r(),s=i(`desktop-input-chrome w-full min-w-0 rounded-[2.5px] border text-xs leading-4 text-foreground outline-none placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50`,{variants:{size:{xs:`px-2 py-0.5 text-[0.6875rem] leading-4`,sm:`px-2 py-1`,default:`px-2.5 py-1.5`,lg:`px-3 py-2 text-sm leading-5`}},defaultVariants:{size:`default`}}),c=e(n(),1);function l(e){let t=(0,o.c)(29),n,r,i,l,u,d,f;t[0]===e?(n=t[1],r=t[2],i=t[3],l=t[4],u=t[5],d=t[6],f=t[7]):({className:n,containerClassName:r,prefix:i,suffix:d,size:u,type:f,...l}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=l,t[5]=u,t[6]=d,t[7]=f);let p=i!=null||d!=null,m;t[8]!==n||t[9]!==p||t[10]!==u?(m=a(p?`min-w-0 flex-1 border-0 bg-transparent p-0 text-xs leading-4 text-foreground outline-none placeholder:text-muted-foreground`:s({size:u}),`selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-xs file:font-medium file:text-foreground`,n),t[8]=n,t[9]=p,t[10]=u,t[11]=m):m=t[11];let h;t[12]!==l||t[13]!==m||t[14]!==f?(h=(0,c.jsx)(`input`,{autoCapitalize:`off`,autoComplete:`off`,autoCorrect:`off`,className:m,"data-slot":`input`,spellCheck:!1,type:f,...l}),t[12]=l,t[13]=m,t[14]=f,t[15]=h):h=t[15];let g=h;if(!p)return g;let _;t[16]!==r||t[17]!==l.disabled||t[18]!==u?(_=a(s({size:u}),`inline-flex items-center gap-1`,l.disabled&&`cursor-not-allowed opacity-50`,r),t[16]=r,t[17]=l.disabled,t[18]=u,t[19]=_):_=t[19];let v;t[20]===i?v=t[21]:(v=i!=null&&(0,c.jsx)(`span`,{className:`pointer-events-none shrink-0 select-none text-muted-foreground`,children:i}),t[20]=i,t[21]=v);let y;t[22]===d?y=t[23]:(y=d!=null&&(0,c.jsx)(`span`,{className:`pointer-events-none shrink-0 select-none text-muted-foreground`,children:d}),t[22]=d,t[23]=y);let b;return t[24]!==g||t[25]!==_||t[26]!==v||t[27]!==y?(b=(0,c.jsxs)(`div`,{className:_,"data-slot":`input-group`,children:[v,g,y]}),t[24]=g,t[25]=_,t[26]=v,t[27]=y,t[28]=b):b=t[28],b}export{s as n,l as t};