import{r as f,j as r}from"./app-DC5MhnUn.js";import{c as m}from"./compiler-runtime-x4HYykYJ.js";const h=f.forwardRef((d,p)=>{const e=m.c(17);let s,o,n,t;e[0]!==d?({onClear:s,className:n,value:t,...o}=d,e[0]=d,e[1]=s,e[2]=o,e[3]=n,e[4]=t):(s=e[1],o=e[2],n=e[3],t=e[4]);const x=n===void 0?"":n;let i;e[5]===Symbol.for("react.memo_cache_sentinel")?(i=r.jsx("div",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-4",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:"M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"})})}),e[5]=i):i=e[5];const u=`
                        block w-full rounded-lg border border-gray-300 bg-white px-4 py-3 pl-11 pr-10 text-sm
                        text-gray-900 shadow-sm transition-all duration-200
                        placeholder:text-gray-400
                        focus:border-[#d4af37] focus:outline-none focus:ring-2 focus:ring-[#d4af37]/20 focus:ring-offset-0
                        dark:border-gray-600 dark:bg-gray-800 dark:text-white
                        dark:placeholder:text-gray-500
                        dark:focus:border-[#b8941f] dark:focus:ring-[#b8941f]/20
                        ${x}
                    `;let a;e[6]!==o||e[7]!==p||e[8]!==u||e[9]!==t?(a=r.jsx("input",{ref:p,type:"search",className:u,value:t,...o}),e[6]=o,e[7]=p,e[8]=u,e[9]=t,e[10]=a):a=e[10];let l;e[11]!==s||e[12]!==t?(l=t&&s&&r.jsx("button",{type:"button",onClick:s,className:"absolute inset-y-0 right-0 flex items-center pr-3 text-gray-400 transition-colors hover:text-gray-600 dark:hover:text-gray-300",children:r.jsx("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})}),e[11]=s,e[12]=t,e[13]=l):l=e[13];let c;return e[14]!==a||e[15]!==l?(c=r.jsxs("div",{className:"relative",children:[i,a,l]}),e[14]=a,e[15]=l,e[16]=c):c=e[16],c});h.displayName="SearchInput";export{h as S};
