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