// @bun
var U=Object.defineProperty;var W=(d)=>d;function X(d,C){this[d]=W.bind(null,C)}var $=(d,C)=>{for(var D in C)U(d,D,{get:C[D],enumerable:!0,configurable:!0,set:X.bind(C,D)})};var w=(d,C)=>()=>(d&&(C=d(d=0)),C);import{Button as J,Input as Y}from"@contractspec/lib.design-system";import{HStack as K,VStack as Z}from"@contractspec/lib.ui-kit-web/ui/stack";import{cn as _}from"@contractspec/lib.ui-kit-web/ui/utils";import{jsx as G,jsxs as E}from"react/jsx-runtime";function A({uniqueTags:d,uniqueStabilities:C,filters:D,setSearch:L,toggleTag:M,toggleStability:O,clearFilters:P,hasActiveFilters:Q,className:R}){return E(Z,{gap:"md",className:_("w-full",R),children:[E(K,{gap:"md",justify:"between",className:"w-full",children:[G(Y,{placeholder:"Search features...",value:D.search,onChange:(z)=>L(z.target.value),className:"max-w-md","aria-label":"Search features"}),Q&&G(J,{variant:"ghost",size:"sm",onClick:P,children:"Clear filters"})]}),C.length>0&&E(K,{gap:"xs",wrap:"wrap",children:[G("span",{className:"text-muted-foreground text-sm",children:"Stability:"}),C.map((z)=>G(J,{variant:D.stability.includes(z)?"default":"outline",size:"sm",onClick:()=>O(z),"aria-pressed":D.stability.includes(z),children:z},z))]}),d.length>0&&E(K,{gap:"xs",wrap:"wrap",children:[G("span",{className:"text-muted-foreground text-sm",children:"Tags:"}),d.slice(0,10).map((z)=>E(J,{variant:D.tags.includes(z)?"default":"outline",size:"sm",onClick:()=>M(z),"aria-pressed":D.tags.includes(z),children:["#",z]},z)),d.length>10&&E("span",{className:"text-muted-foreground text-sm",children:["+",d.length-10," more"]})]})]})}export{A as FeatureFiltersBar};
