import { defineComponent as r, createBlock as o, createCommentVNode as i, openBlock as s, unref as m, withCtx as u } from "vue";
import { useNavState as p } from "../../../hooks/useNavState.js";
import l from "./ClassicLayout.vue.js";
import d from "./ModernLayout.vue.js";
import f from "../../Lazy/Lazy.vue2.js";
const g = /* @__PURE__ */ r({
  __name: "Models",
  props: {
    document: {},
    config: {}
  },
  setup(h) {
    const { hash: t } = p();
    return (e, y) => {
      var n, a;
      return (a = (n = e.document) == null ? void 0 : n.components) != null && a.schemas ? (s(), o(m(f), {
        key: 0,
        id: "models",
        isLazy: !!m(t) && !m(t).startsWith("model")
      }, {
        default: u(() => {
          var c;
          return [
            ((c = e.config) == null ? void 0 : c.layout) === "classic" ? (s(), o(l, {
              key: 0,
              schemas: e.document.components.schemas
            }, null, 8, ["schemas"])) : (s(), o(d, {
              key: 1,
              schemas: e.document.components.schemas
            }, null, 8, ["schemas"]))
          ];
        }),
        _: 1
      }, 8, ["isLazy"])) : i("", !0);
    };
  }
});
export {
  g as default
};
