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