UNPKG

@scalar/api-reference

Version:

Generate beautiful API references from OpenAPI documents

36 lines (35 loc) 1.37 kB
import { defineComponent as k, createElementBlock as t, openBlock as e, createElementVNode as f, Fragment as l, renderList as a, unref as s, createBlock as b, createCommentVNode as h } from "vue"; import { isHttpMethod as C } from "@scalar/helpers/http/is-http-method"; import { getResolvedRef as g } from "@scalar/workspace-store/helpers/get-resolved-ref"; import y from "./Callback.vue.js"; const _ = { class: "callbacks-list gap-3" }, E = /* @__PURE__ */ k({ __name: "Callbacks", props: { path: {}, method: {}, callbacks: {} }, setup(m) { return (o, n) => (e(), t("div", _, [ n[0] || (n[0] = f("div", { class: "callbacks-title text-c-1 my-3 text-lg font-medium" }, " Callbacks ", -1)), (e(!0), t(l, null, a(o.callbacks, (u, c) => (e(), t(l, { key: c }, [ (e(!0), t(l, null, a(s(g)(u), (p, i) => (e(), t(l, null, [ (e(!0), t(l, null, a(p, (d, r) => (e(), t(l, { key: r }, [ s(C)(r) ? (e(), b(y, { key: 0, callback: d, method: r, name: c, operationMethod: m.method, path: o.path, url: i }, null, 8, ["callback", "method", "name", "operationMethod", "path", "url"])) : h("", !0) ], 64))), 128)) ], 64))), 256)) ], 64))), 128)) ])); } }); export { E as default };