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