// @bun
var n=Object.defineProperty;var p=(e)=>e;function c(e,o){this[e]=p.bind(null,o)}var u=(e,o)=>{for(var l in o)n(e,l,{get:o[l],enumerable:!0,configurable:!0,set:c.bind(o,l)})};var g=(e,o)=>()=>(e&&(o=e(e=0)),o);import{jsx as r,jsxs as a}from"react/jsx-runtime";function b({value:e,onChange:o,categories:l}){let i=(t,d)=>{o({...e,[t]:d})};return a("div",{className:"grid gap-3 rounded-2xl border border-border bg-card p-4 md:grid-cols-4",children:[a("label",{className:"flex flex-col text-muted-foreground text-xs uppercase tracking-wide",children:["Status",a("select",{className:"mt-1 rounded-md border border-border bg-background px-3 py-2 text-foreground text-sm",value:e.status,onChange:(t)=>i("status",t.target.value),children:[r("option",{value:"all",children:"All tasks"}),r("option",{value:"active",children:"Active"}),r("option",{value:"completed",children:"Completed"})]})]}),a("label",{className:"flex flex-col text-muted-foreground text-xs uppercase tracking-wide",children:["Priority",a("select",{className:"mt-1 rounded-md border border-border bg-background px-3 py-2 text-foreground text-sm",value:e.priority,onChange:(t)=>i("priority",t.target.value),children:[r("option",{value:"all",children:"All"}),r("option",{value:"LOW",children:"Low"}),r("option",{value:"MEDIUM",children:"Medium"}),r("option",{value:"HIGH",children:"High"}),r("option",{value:"URGENT",children:"Urgent"})]})]}),a("label",{className:"flex flex-col text-muted-foreground text-xs uppercase tracking-wide",children:["Category",a("select",{className:"mt-1 rounded-md border border-border bg-background px-3 py-2 text-foreground text-sm",value:e.categoryId,onChange:(t)=>i("categoryId",t.target.value),children:[r("option",{value:"all",children:"All categories"}),l.map((t)=>r("option",{value:t.id,children:t.name},t.id))]})]}),a("label",{className:"flex flex-col text-muted-foreground text-xs uppercase tracking-wide",children:["Search",r("input",{type:"search",className:"mt-1 rounded-md border border-border bg-background px-3 py-2 text-foreground text-sm",placeholder:"Search by title",value:e.search,onChange:(t)=>i("search",t.target.value)})]})]})}export{b as FilterBar};
