// @bun
var K=Object.defineProperty;var M=(w)=>w;function N(w,v){this[w]=M.bind(null,v)}var A=(w,v)=>{for(var B in v)K(w,B,{get:v[B],enumerable:!0,configurable:!0,set:N.bind(v,B)})};var L=(w,v)=>()=>(w&&(v=w(w=0)),v);import{StatusChip as I}from"@contractspec/lib.design-system";import{HStack as D}from"@contractspec/lib.ui-kit-web/ui/stack";import{ArrowRight as O,Layout as Q,Radio as V,Shield as W,Tag as X,Users as Y,Zap as _}from"lucide-react";import{jsx as P,jsxs as F,Fragment as f}from"react/jsx-runtime";function $({feature:w}){let{meta:v,operations:B,events:E,presentations:G,capabilities:y}=w,J=y?.provides?.length||y?.requires?.length;return F(f,{children:[v.description&&P("p",{className:"text-muted-foreground text-sm leading-relaxed",children:v.description}),F(D,{gap:"md",className:"py-2",children:[B?.length?F("div",{className:"flex items-center gap-1.5 text-sm",children:[P(_,{className:"h-4 w-4 text-amber-500"}),P("span",{className:"font-medium",children:B.length}),P("span",{className:"text-muted-foreground",children:"ops"})]}):null,E?.length?F("div",{className:"flex items-center gap-1.5 text-sm",children:[P(V,{className:"h-4 w-4 text-blue-500"}),P("span",{className:"font-medium",children:E.length}),P("span",{className:"text-muted-foreground",children:"events"})]}):null,G?.length?F("div",{className:"flex items-center gap-1.5 text-sm",children:[P(Q,{className:"h-4 w-4 text-purple-500"}),P("span",{className:"font-medium",children:G.length}),P("span",{className:"text-muted-foreground",children:"views"})]}):null]}),J&&F("div",{className:"space-y-1.5 border-border/50 border-t pt-1",children:[y?.provides?.length?F(D,{gap:"xs",wrap:"wrap",className:"items-start",children:[P(W,{className:"mt-0.5 h-3.5 w-3.5 text-emerald-500"}),P("span",{className:"text-muted-foreground text-xs",children:"Provides:"}),y.provides.slice(0,2).map((z)=>P(I,{tone:"success",label:z.key,size:"sm"},z.key)),y.provides.length>2&&F("span",{className:"text-muted-foreground text-xs",children:["+",y.provides.length-2]})]}):null,y?.requires?.length?F(D,{gap:"xs",wrap:"wrap",className:"items-start",children:[P(O,{className:"mt-0.5 h-3.5 w-3.5 text-blue-500"}),P("span",{className:"text-muted-foreground text-xs",children:"Requires:"}),y.requires.slice(0,2).map((z)=>P(I,{tone:"info",label:z.key,size:"sm"},z.key)),y.requires.length>2&&F("span",{className:"text-muted-foreground text-xs",children:["+",y.requires.length-2]})]}):null]}),v.tags?.length?F(D,{gap:"xs",wrap:"wrap",className:"items-center border-border/50 border-t pt-1",children:[P(X,{className:"h-3.5 w-3.5 text-muted-foreground"}),v.tags.slice(0,4).map((z)=>F("span",{className:"rounded bg-muted px-1.5 py-0.5 text-muted-foreground text-xs",children:["#",z]},z)),v.tags.length>4&&F("span",{className:"text-muted-foreground text-xs",children:["+",v.tags.length-4]})]}):null,v.owners?.length?F(D,{gap:"xs",className:"items-center text-muted-foreground text-xs",children:[P(Y,{className:"h-3.5 w-3.5"}),P("span",{children:v.owners.join(", ")})]}):null]})}export{$ as FeatureHoverPreview};
