import { defineComponent as y, createElementBlock as t, createCommentVNode as r, openBlock as a, createElementVNode as l, Fragment as n, createTextVNode as o, toDisplayString as p } from "vue";
const s = {
  key: 0,
  class: "schema-type"
}, u = ["title"], v = /* @__PURE__ */ y({
  __name: "SchemaHeading",
  props: {
    value: { type: [Object, Boolean] },
    name: {}
  },
  setup(m) {
    return (e, i) => typeof e.value == "object" ? (a(), t("span", s, [
      l("span", {
        class: "schema-type-icon",
        title: typeof e.value.type == "string" ? e.value.type : Array.isArray(e.value.type) ? e.value.type.join(" | ") : "unkown type"
      }, [
        e.value.type === "object" ? (a(), t(n, { key: 0 }, [
          o(" {} ")
        ], 64)) : r("", !0),
        e.value.type === "array" ? (a(), t(n, { key: 1 }, [
          o(" [] ")
        ], 64)) : r("", !0),
        e.value.enum ? (a(), t(n, { key: 2 }, [
          o(" enum ")
        ], 64)) : r("", !0)
      ], 8, u),
      e.name ? (a(), t(n, { key: 0 }, [
        o(p(e.name), 1)
      ], 64)) : (a(), t(n, { key: 1 }, [
        o(p(e.value.type), 1)
      ], 64))
    ])) : r("", !0);
  }
});
export {
  v as default
};
