import{c as p,u as d,j as n,T as j,s as T,L as I,I as h,A as v,a as S}from"./index-26FXPGkN.js";const k=x=>{const e=p.c(22);let a,s,l,t;e[0]!==x?({value:t,onChange:s,loading:a,...l}=x,e[0]=x,e[1]=a,e[2]=s,e[3]=l,e[4]=t):(a=e[1],s=e[2],l=e[3],t=e[4]);const{t:f}=d();let r;e[5]!==f?(r=f("common.action.searchTask"),e[5]=f,e[6]=r):r=e[6];let i;e[7]!==a||e[8]!==t?(i=t&&a?n.jsx(I,{size:16}):n.jsx(h,{size:16}),e[7]=a,e[8]=t,e[9]=i):i=e[9];let o;e[10]!==s?(o=m=>s==null?void 0:s(m.currentTarget.value),e[10]=s,e[11]=o):o=e[11];let c;e[12]!==s||e[13]!==t?(c=t&&n.jsx(v,{variant:"subtle",color:"gray",radius:"md","aria-label":"Clear",onClick:()=>s==null?void 0:s(""),children:n.jsx(S,{size:16,color:"gray"})}),e[12]=s,e[13]=t,e[14]=c):c=e[14];let u;return e[15]!==l||e[16]!==r||e[17]!==i||e[18]!==o||e[19]!==c||e[20]!==t?(u=n.jsx(j,{placeholder:r,variant:"filled",leftSection:i,className:T.root,value:t,onChange:o,rightSection:c,...l}),e[15]=l,e[16]=r,e[17]=i,e[18]=o,e[19]=c,e[20]=t,e[21]=u):u=e[21],u};export{k as T};
