import{r as j,j as r}from"./app-DC5MhnUn.js";import{c as v}from"./compiler-runtime-x4HYykYJ.js";const y=j.forwardRef((l,g)=>{const e=v.c(30);let t,a,o,d,s,u;e[0]!==l?({label:o,error:t,helperText:a,options:d,className:u,...s}=l,e[0]=l,e[1]=t,e[2]=a,e[3]=o,e[4]=d,e[5]=s,e[6]=u):(t=e[1],a=e[2],o=e[3],d=e[4],s=e[5],u=e[6]);const k=u===void 0?"":u;let i;e[7]!==o||e[8]!==s?(i=o&&r.jsxs("label",{htmlFor:s.id,className:"mb-2 block text-sm font-semibold text-gray-700 dark:text-gray-300",children:[o,s.required&&r.jsx("span",{className:"ml-1 text-red-500",children:"*"})]}),e[7]=o,e[8]=s,e[9]=i):i=e[9];const b=`
                            block w-full appearance-none rounded-lg border px-4 py-3 pr-10 text-sm
                            transition-all duration-200
                            focus:outline-none focus:ring-2 focus:ring-offset-0
                            ${t?"border-red-300 bg-red-50 text-red-900 focus:border-red-500 focus:ring-red-500 dark:border-red-700 dark:bg-red-900/20 dark:text-red-200":"border-gray-300 bg-white text-gray-900 shadow-sm focus:border-[#d4af37] focus:ring-[#d4af37]/20 dark:border-gray-600 dark:bg-gray-800 dark:text-white dark:focus:border-[#b8941f] dark:focus:ring-[#b8941f]/20"}
                            ${k}
                        `;let n;e[10]!==d?(n=d.map(N),e[10]=d,e[11]=n):n=e[11];let c;e[12]!==s||e[13]!==g||e[14]!==b||e[15]!==n?(c=r.jsx("select",{ref:g,className:b,...s,children:n}),e[12]=s,e[13]=g,e[14]=b,e[15]=n,e[16]=c):c=e[16];let p;e[17]===Symbol.for("react.memo_cache_sentinel")?(p=r.jsx("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3",children:r.jsx("svg",{className:"h-5 w-5 text-gray-400 dark:text-gray-500",fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 8.25l-7.5 7.5-7.5-7.5"})})}),e[17]=p):p=e[17];let m;e[18]!==c?(m=r.jsxs("div",{className:"relative",children:[c,p]}),e[18]=c,e[19]=m):m=e[19];let x;e[20]!==t?(x=t&&r.jsxs("p",{className:"mt-2 flex items-center gap-1 text-sm font-medium text-red-600 dark:text-red-400",children:[r.jsx("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m9-.75a9 9 0 11-18 0 9 9 0 0118 0zm-9 3.75h.008v.008H12v-.008z"})}),t]}),e[20]=t,e[21]=x):x=e[21];let f;e[22]!==t||e[23]!==a?(f=a&&!t&&r.jsx("p",{className:"mt-2 text-sm text-gray-500 dark:text-gray-400",children:a}),e[22]=t,e[23]=a,e[24]=f):f=e[24];let h;return e[25]!==i||e[26]!==m||e[27]!==x||e[28]!==f?(h=r.jsxs("div",{className:"w-full",children:[i,m,x,f]}),e[25]=i,e[26]=m,e[27]=x,e[28]=f,e[29]=h):h=e[29],h});y.displayName="Select";function N(l){return r.jsx("option",{value:l.value,children:l.label},l.value)}export{y as S};
