// @bun
var U=Object.defineProperty;var W=(h)=>h;function X(h,q){this[h]=W.bind(null,q)}var Qh=(h,q)=>{for(var w in q)U(h,w,{get:q[w],enumerable:!0,configurable:!0,set:X.bind(q,w)})};var Th=(h,q)=>()=>(h&&(q=h(h=0)),q);import{EventRegistry as Y,OperationSpecRegistry as _}from"@contractspec/lib.contracts-spec";import{DataViewRegistry as $}from"@contractspec/lib.contracts-spec/data-views";import{ContractReferenceDataView as b,ContractReferenceQuery as z,DocsGenerateCommand as B,DocsGeneratedEvent as E,DocsIndexDataView as H,DocsIndexQuery as V,DocsLayoutPresentation as Z,DocsPublishCommand as C,DocsPublishedEvent as F,DocsReferencePagePresentation as L,DocsSearchForm as N,ExampleCatalogDataView as P}from"@contractspec/lib.contracts-spec/docs";import{FormRegistry as R}from"@contractspec/lib.contracts-spec/forms";import{PresentationRegistry as O}from"@contractspec/lib.contracts-spec/presentations";import{serializeDataViewSpec as d,serializeEventSpec as l,serializeFormSpec as S,serializeOperationSpec as m,serializePresentationSpec as x}from"@contractspec/lib.contracts-spec/serialization";var A=null;function j(){let h=new _;return h.register(V).register(z).register(B).register(C),h}function g(){if(!A)A=j();return A}function c(h,q){return g().get(h,q)}var D=null;function f(){let h=new Y;return h.register(E).register(F),h}function v(){if(!D)D=f();return D}function k(h,q){return v().get(h,q)}var G=null;function p(){let h=new O;return h.register(Z).register(L),h}function u(){if(!G)G=p();return G}function n(h,q){return u().get(h,q)}var I=null;function y(){let h=new $;return h.register(H).register(b).register(P),h}function o(){if(!I)I=y();return I}function a(h,q){return o().get(h,q)}var J=null;function i(){let h=new R;return h.register(N),h}function t(){if(!J)J=i();return J}function s(h,q){return t().get(h)}function Q(h,q){let w=c(h,q);return m(w)??void 0}function zh(h,q){let w=k(h,q);return l(w)??void 0}function Bh(h,q){let w=n(h,q);return x(w)??void 0}function Eh(h,q){let w=a(h,q);return d(w)??void 0}function Hh(h,q){let w=s(h,q);return S(w)??void 0}function r(){A=null}function e(){D=null}function hh(){G=null}function qh(){I=null}function wh(){J=null}function Vh(){r(),e(),hh(),qh(),wh()}import{EntityCard as Ah}from"@contractspec/lib.design-system";import{Zap as Dh}from"lucide-react";import{jsx as K}from"react/jsx-runtime";function T({feature:h}){if(!h.operations?.length)return null;return K("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3",children:h.operations.map((q)=>{let w=Q(q.key,q.version);return K(Ah,{cardTitle:q.key,cardSubtitle:`v${q.version}`,footer:w?.meta.description,icon:K(Dh,{className:"h-4 w-4"}),href:`/features/${h.meta.key}/operations/${q.key}`},q.key)})})}import{Breadcrumbs as Gh,PageHeaderResponsive as Ih}from"@contractspec/lib.design-system";import{VStack as Jh}from"@contractspec/lib.ui-kit-web/ui/stack";import{cn as Kh}from"@contractspec/lib.ui-kit-web/ui/utils";import{jsx as M,jsxs as Mh}from"react/jsx-runtime";function Sh({feature:h,className:q}){return Mh(Jh,{gap:"lg",className:Kh("mx-auto w-full max-w-5xl p-6",q),children:[M(Ih,{title:"Operations",subtitle:`Operations defined in ${h.meta.title??h.meta.key}`,breadcrumb:M(Gh,{items:[{label:"Features",href:"/features"},{label:h.meta.title||h.meta.key,href:`/features/${h.meta.key}`},{label:"Operations"}]})}),M(T,{feature:h})]})}export{Sh as FeatureOperationsTemplate};
