@scalar/api-reference 1.28.26 → 1.28.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"Schema.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/Schema.vue"],"names":[],"mappings":"AAmVA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAU9E,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EACF,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,YAAY,GACtB,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,oBAAoB,GAC9B,WAAW,CAAC,YAAY,GACxB,WAAW,CAAC,iBAAiB,GAC7B,WAAW,CAAC,oBAAoB,CAAA;IACpC,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,+DAA+D;IAC/D,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,2CAA2C;IAC3C,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,+FAA+F;IAC/F,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,OAAO,CAAC,EACJ,SAAS,CAAC,iBAAiB,GAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,GACtC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GACxC,OAAO,CAAA;CACZ,CAAC;;WAfQ,MAAM;oBAMG,OAAO;;AAuX5B,wBAOG"}
1
+ {"version":3,"file":"Schema.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/Schema.vue"],"names":[],"mappings":"AA4UA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAU9E,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EACF,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,YAAY,GACtB,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,oBAAoB,GAC9B,WAAW,CAAC,YAAY,GACxB,WAAW,CAAC,iBAAiB,GAC7B,WAAW,CAAC,oBAAoB,CAAA;IACpC,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,+DAA+D;IAC/D,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,2CAA2C;IAC3C,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,+FAA+F;IAC/F,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,OAAO,CAAC,EACJ,SAAS,CAAC,iBAAiB,GAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,GACtC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GACxC,OAAO,CAAA;CACZ,CAAC;;WAfQ,MAAM;oBAMG,OAAO;;AAoX5B,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./Schema.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8c9c6e0d"]]);
4
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-9d26eedb"]]);
5
5
  export {
6
6
  a as default
7
7
  };
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaDiscriminator.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaDiscriminator.vue"],"names":[],"mappings":"AAiLA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAU9E,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,MAAM,CAAA;IACrB,OAAO,CAAC,EACJ,SAAS,CAAC,iBAAiB,GAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,GACtC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GACxC,OAAO,CAAA;IACX,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AAmOF,wBAOG"}
1
+ {"version":3,"file":"SchemaDiscriminator.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaDiscriminator.vue"],"names":[],"mappings":"AA+QA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAU9E,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,MAAM,CAAA;IACrB,OAAO,CAAC,EACJ,SAAS,CAAC,iBAAiB,GAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,GACtC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GACxC,OAAO,CAAA;IACX,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AA4UF,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./SchemaDiscriminator.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const i = /* @__PURE__ */ r(o, [["__scopeId", "data-v-67468e64"]]);
4
+ const c = /* @__PURE__ */ r(o, [["__scopeId", "data-v-97ac13d3"]]);
5
5
  export {
6
- i as default
6
+ c as default
7
7
  };
@@ -1,10 +1,11 @@
1
- import { defineComponent as O, ref as S, openBlock as a, createElementBlock as i, createBlock as o, unref as r, withCtx as n, createVNode as u, createElementVNode as m, toDisplayString as d, Fragment as f, renderList as h, normalizeClass as B } from "vue";
2
- import { TabGroup as T, TabList as w, Tab as H, TabPanel as N } from "@headlessui/vue";
3
- import { cva as V, cx as j } from "@scalar/components";
4
- import { stringify as v } from "flatted";
5
- import { mergeAllOfSchemas as z } from "./helpers/merge-all-of-schemas.js";
6
- import b from "./Schema.vue.js";
7
- const L = { class: "property-rule" }, A = { class: "text-c-3" }, D = { class: "custom-scroll flex items-center gap-1.5 !overflow-y-hidden" }, E = { class: "schema-tab-label z-1 relative" }, Z = /* @__PURE__ */ O({
1
+ import { defineComponent as B, ref as v, onMounted as N, nextTick as L, computed as C, openBlock as n, createElementBlock as b, createBlock as i, unref as l, withCtx as o, createVNode as u, createElementVNode as m, toDisplayString as y, Fragment as V, renderList as O, normalizeClass as T } from "vue";
2
+ import { TabGroup as U, TabList as A, Tab as D, TabPanel as H } from "@headlessui/vue";
3
+ import { cva as $, cx as w, ScalarListbox as E } from "@scalar/components";
4
+ import { ScalarIconCaretDown as F } from "@scalar/icons";
5
+ import { stringify as z } from "flatted";
6
+ import { mergeAllOfSchemas as I } from "./helpers/merge-all-of-schemas.js";
7
+ import h from "./Schema.vue.js";
8
+ const M = { class: "property-rule" }, W = { class: "text-c-3" }, G = { class: "schema-tab-label z-1 relative" }, P = { class: "schema-tab-label z-1 text-c-1 relative" }, x = /* @__PURE__ */ B({
8
9
  __name: "SchemaDiscriminator",
9
10
  props: {
10
11
  discriminator: {},
@@ -15,8 +16,15 @@ const L = { class: "property-rule" }, A = { class: "text-c-3" }, D = { class: "c
15
16
  compact: { type: Boolean },
16
17
  hideHeading: { type: Boolean }
17
18
  },
18
- setup(y) {
19
- const c = y, p = S(0), g = V({
19
+ setup(s) {
20
+ const r = v(0), d = v(null), p = v(!1);
21
+ N(async () => {
22
+ if (await L(), d.value) {
23
+ const e = d.value;
24
+ p.value = e.scrollWidth > e.clientWidth;
25
+ }
26
+ });
27
+ const g = $({
20
28
  base: "schema-tab",
21
29
  variants: {
22
30
  selected: {
@@ -24,73 +32,136 @@ const L = { class: "property-rule" }, A = { class: "text-c-3" }, D = { class: "c
24
32
  false: "text-c-3"
25
33
  }
26
34
  }
27
- }), k = (e) => {
35
+ }), k = C(
36
+ () => s.value[s.discriminator].map((e, a) => ({
37
+ id: String(a),
38
+ label: S(e) || "Schema"
39
+ }))
40
+ ), f = C({
41
+ get: () => k.value.find(
42
+ (e) => e.id === String(r.value)
43
+ ),
44
+ set: (e) => r.value = Number(e.id)
45
+ }), S = (e) => {
28
46
  if (!e)
29
47
  return null;
30
48
  if (e.name)
31
49
  return e.name;
32
- if (c.schemas && typeof c.schemas == "object") {
33
- for (const [s, l] of Object.entries(c.schemas))
34
- if (v(l) === v(e))
35
- return s;
50
+ if (e.title)
51
+ return e.title;
52
+ if (s.schemas && typeof s.schemas == "object") {
53
+ for (const [a, t] of Object.entries(s.schemas))
54
+ if (z(t) === z(e))
55
+ return a;
36
56
  return Object.keys(e)[0];
37
57
  }
58
+ if (e.type === "array" && e.items)
59
+ return `Array of ${e.items.type || "any"}`;
60
+ if (e.type)
61
+ return e.type;
62
+ if (typeof e == "object") {
63
+ const a = Object.keys(e);
64
+ if (a.length > 0)
65
+ return a[0];
66
+ }
38
67
  return null;
39
- }, C = (e) => e.replace(/([A-Z])/g, " $1").replace(/^./, (s) => s.toUpperCase()).toLowerCase().replace(/^(\w)/, (s) => s.toUpperCase());
40
- return (e, s) => (a(), i("div", L, [
41
- e.discriminator === "oneOf" || e.discriminator === "anyOf" ? (a(), o(r(T), { key: 0 }, {
42
- default: n(() => [
43
- u(r(w), { class: "discriminator-tab-list py-1.25 flex flex-col gap-1 rounded-t-lg border border-b-0 px-2 pr-3" }, {
44
- default: n(() => [
45
- m("span", A, d(C(e.discriminator)), 1),
46
- m("div", D, [
47
- (a(!0), i(f, null, h(e.value[e.discriminator], (l, t) => (a(), o(r(H), {
48
- key: t,
49
- class: B([
50
- "cursor-pointer",
51
- r(j)(r(g)({ selected: p.value === t }))
52
- ]),
53
- onClick: (F) => p.value = t
68
+ }, j = (e) => e.replace(/([A-Z])/g, " $1").replace(/^./, (a) => a.toUpperCase()).toLowerCase().replace(/^(\w)/, (a) => a.toUpperCase());
69
+ return (e, a) => (n(), b("div", M, [
70
+ e.discriminator === "oneOf" || e.discriminator === "anyOf" ? (n(), i(l(U), {
71
+ key: 0,
72
+ modelValue: r.value,
73
+ "onUpdate:modelValue": a[1] || (a[1] = (t) => r.value = t),
74
+ as: "div"
75
+ }, {
76
+ default: o(() => [
77
+ u(l(A), { class: "discriminator-tab-list py-1.25 flex flex-col gap-1 rounded-t-lg border border-b-0 px-2 pr-3" }, {
78
+ default: o(() => [
79
+ m("span", W, y(j(e.discriminator)), 1),
80
+ m("div", {
81
+ ref_key: "tabsContainer",
82
+ ref: d,
83
+ class: "flex items-center gap-1.5"
84
+ }, [
85
+ p.value ? (n(), i(l(E), {
86
+ key: 1,
87
+ modelValue: f.value,
88
+ "onUpdate:modelValue": a[0] || (a[0] = (t) => f.value = t),
89
+ options: k.value,
90
+ resize: ""
91
+ }, {
92
+ default: o(() => {
93
+ var t;
94
+ return [
95
+ m("div", {
96
+ class: T(["flex cursor-pointer items-center gap-1", l(w)(l(g)({ selected: !0 }))])
97
+ }, [
98
+ m("span", P, y(((t = f.value) == null ? void 0 : t.label) || "Schema"), 1),
99
+ u(l(F), { class: "z-1" })
100
+ ], 2)
101
+ ];
102
+ }),
103
+ _: 1
104
+ }, 8, ["modelValue", "options"])) : (n(!0), b(V, { key: 0 }, O(e.value[e.discriminator], (t, c) => (n(), i(l(D), {
105
+ key: c,
106
+ class: T(
107
+ l(w)(l(g)({ selected: r.value === c }))
108
+ ),
109
+ onClick: (Z) => r.value = c
54
110
  }, {
55
- default: n(() => [
56
- m("span", E, d(k(l) || "Schema"), 1)
111
+ default: o(() => [
112
+ m("span", G, y(S(t) || "Schema"), 1)
57
113
  ]),
58
114
  _: 2
59
115
  }, 1032, ["class", "onClick"]))), 128))
60
- ])
116
+ ], 512)
61
117
  ]),
62
118
  _: 1
63
119
  }),
64
- (a(!0), i(f, null, h(e.value[e.discriminator], (l, t) => (a(), o(r(N), {
65
- key: t,
120
+ p.value ? (n(), i(l(H), {
121
+ key: 1,
122
+ class: "discriminator-panel"
123
+ }, {
124
+ default: o(() => [
125
+ u(h, {
126
+ compact: e.compact,
127
+ hideHeading: e.hideHeading,
128
+ name: e.name,
129
+ noncollapsible: !0,
130
+ schemas: e.schemas,
131
+ value: e.value[e.discriminator][r.value]
132
+ }, null, 8, ["compact", "hideHeading", "name", "schemas", "value"])
133
+ ]),
134
+ _: 1
135
+ })) : (n(!0), b(V, { key: 0 }, O(e.value[e.discriminator], (t, c) => (n(), i(l(H), {
136
+ key: c,
66
137
  class: "discriminator-panel"
67
138
  }, {
68
- default: n(() => [
69
- u(b, {
139
+ default: o(() => [
140
+ u(h, {
70
141
  compact: e.compact,
71
142
  hideHeading: e.hideHeading,
72
143
  name: e.name,
73
144
  noncollapsible: !0,
74
145
  schemas: e.schemas,
75
- value: l
146
+ value: t
76
147
  }, null, 8, ["compact", "hideHeading", "name", "schemas", "value"])
77
148
  ]),
78
149
  _: 2
79
150
  }, 1024))), 128))
80
151
  ]),
81
152
  _: 1
82
- })) : (a(), o(b, {
153
+ }, 8, ["modelValue"])) : (n(), i(h, {
83
154
  key: 1,
84
155
  compact: e.compact,
85
156
  level: e.level,
86
157
  name: e.name,
87
158
  noncollapsible: e.level == 0,
88
159
  schemas: e.schemas,
89
- value: r(z)(e.value[e.discriminator])
160
+ value: l(I)(e.value[e.discriminator])
90
161
  }, null, 8, ["compact", "level", "name", "noncollapsible", "schemas", "value"]))
91
162
  ]));
92
163
  }
93
164
  });
94
165
  export {
95
- Z as default
166
+ x as default
96
167
  };
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":"AA+gBA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAC9E,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,KAAK,CAAA;AAe9C;;;;;GAKG;AAEH,KAAK,WAAW,GAAG;IACf,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,OAAO,CAAC,EACJ,SAAS,CAAC,iBAAiB,GAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,GACtC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GACxC,OAAO,CAAA;IACX,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;cAZW,OAAO;WAFV,MAAM;aAGJ,OAAO;kBAIF,OAAO;;AA0d1B,0BAQG"}
1
+ {"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":"AAygBA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAC9E,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,KAAK,CAAA;AAe9C;;;;;GAKG;AAEH,KAAK,WAAW,GAAG;IACf,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,OAAO,CAAC,EACJ,SAAS,CAAC,iBAAiB,GAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,GACtC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GACxC,OAAO,CAAA;IACX,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;cAZW,OAAO;WAFV,MAAM;aAGJ,OAAO;kBAIF,OAAO;;AAmd1B,0BAQG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./SchemaProperty.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-aa19e2e1"]]);
4
+ const a = /* @__PURE__ */ r(o, [["__scopeId", "data-v-429bdd8b"]]);
5
5
  export {
6
- m as default
6
+ a as default
7
7
  };
@@ -1,9 +1,9 @@
1
- import { defineComponent as $, computed as y, openBlock as l, createBlock as h, resolveDynamicComponent as M, normalizeClass as I, withCtx as m, createSlots as G, createTextVNode as D, toDisplayString as c, createCommentVNode as r, createElementBlock as a, createVNode as i, unref as s, Fragment as d, renderList as k, createElementVNode as f } from "vue";
1
+ import { defineComponent as $, computed as y, openBlock as l, createBlock as h, resolveDynamicComponent as M, normalizeClass as A, withCtx as c, createSlots as G, createTextVNode as D, toDisplayString as m, createCommentVNode as r, createElementBlock as i, createVNode as a, unref as s, Fragment as d, renderList as k, createElementVNode as f } from "vue";
2
2
  import { Disclosure as J, DisclosurePanel as K, DisclosureButton as Q } from "@headlessui/vue";
3
3
  import { ScalarMarkdown as S, ScalarIcon as W } from "@scalar/components";
4
4
  import { optimizeValueForDisplay as X, discriminators as Y } from "./helpers/optimizeValueForDisplay.js";
5
- import L from "./Schema.vue.js";
6
- import O from "./SchemaDiscriminator.vue.js";
5
+ import I from "./Schema.vue.js";
6
+ import L from "./SchemaDiscriminator.vue.js";
7
7
  import x from "./SchemaPropertyHeading.vue.js";
8
8
  import ee from "../../SpecificationExtension/SpecificationExtension.vue.js";
9
9
  const ne = {
@@ -18,10 +18,10 @@ const ne = {
18
18
  }, oe = {
19
19
  key: 0,
20
20
  class: "property-list"
21
- }, ae = { class: "property-heading" }, ie = { class: "property-name" }, se = { class: "property-description" }, re = {
21
+ }, ie = { class: "property-heading" }, ae = { class: "property-name" }, se = { class: "property-description" }, re = {
22
22
  key: 1,
23
23
  class: "property-enum-values"
24
- }, pe = { class: "property-enum-value-label" }, me = { class: "property-enum-value-label" }, ce = {
24
+ }, pe = { class: "property-enum-value-label" }, ce = { class: "property-enum-value-label" }, me = {
25
25
  key: 4,
26
26
  class: "children"
27
27
  }, de = {
@@ -44,8 +44,8 @@ const ne = {
44
44
  schemas: {},
45
45
  hideHeading: { type: Boolean }
46
46
  },
47
- setup(_) {
48
- const R = _, H = {
47
+ setup(O) {
48
+ const R = O, H = {
49
49
  integer: {
50
50
  _default: "Integer numbers.",
51
51
  int32: "Signed 32-bit integers (commonly used integer type).",
@@ -71,7 +71,7 @@ const ne = {
71
71
  return (e, t) => {
72
72
  var g;
73
73
  return l(), h(M(e.is ?? "li"), {
74
- class: I(["property", [
74
+ class: A(["property", [
75
75
  (B(e.description, n.value), ""),
76
76
  `property--level-${e.level}`,
77
77
  {
@@ -80,8 +80,8 @@ const ne = {
80
80
  }
81
81
  ]])
82
82
  }, {
83
- default: m(() => {
84
- var b, v, w, q, A, F, N, V, j;
83
+ default: c(() => {
84
+ var b, v, w, q, F, N, V, j, z;
85
85
  return [
86
86
  Z(
87
87
  n.value,
@@ -99,71 +99,71 @@ const ne = {
99
99
  }, G({ _: 2 }, [
100
100
  e.name ? {
101
101
  name: "name",
102
- fn: m(() => [
103
- D(c(e.name), 1)
102
+ fn: c(() => [
103
+ D(m(e.name), 1)
104
104
  ]),
105
105
  key: "0"
106
106
  } : void 0,
107
107
  (b = n.value) != null && b.example ? {
108
108
  name: "example",
109
- fn: m(() => [
110
- D(" Example: " + c(n.value.example), 1)
109
+ fn: c(() => [
110
+ D(" Example: " + m(n.value.example), 1)
111
111
  ]),
112
112
  key: "1"
113
113
  } : void 0
114
114
  ]), 1032, ["additional", "enum", "pattern", "required", "value"])) : r("", !0),
115
- B(e.description, n.value) ? (l(), a("div", ne, [
116
- i(s(S), {
115
+ B(e.description, n.value) ? (l(), i("div", ne, [
116
+ a(s(S), {
117
117
  value: B(e.description, n.value)
118
118
  }, null, 8, ["value"])
119
- ])) : E(n.value) ? (l(), a("div", te, [
120
- i(s(S), {
119
+ ])) : E(n.value) ? (l(), i("div", te, [
120
+ a(s(S), {
121
121
  value: E(n.value) || ""
122
122
  }, null, 8, ["value"])
123
123
  ])) : r("", !0),
124
- ((v = p(n.value)) == null ? void 0 : v.length) > 0 ? (l(), a("div", le, [
125
- Array.isArray((w = n.value) == null ? void 0 : w["x-enumDescriptions"]) ? (l(), a("div", oe, [
126
- (l(!0), a(d, null, k(p(n.value), (o) => (l(), a("div", {
124
+ ((v = p(n.value)) == null ? void 0 : v.length) > 0 ? (l(), i("div", le, [
125
+ Array.isArray((w = n.value) == null ? void 0 : w["x-enumDescriptions"]) ? (l(), i("div", oe, [
126
+ (l(!0), i(d, null, k(p(n.value), (o) => (l(), i("div", {
127
127
  key: o,
128
128
  class: "property"
129
129
  }, [
130
- f("div", ae, [
131
- f("div", ie, c(o), 1)
130
+ f("div", ie, [
131
+ f("div", ae, m(o), 1)
132
132
  ]),
133
133
  f("div", se, [
134
- i(s(S), {
134
+ a(s(S), {
135
135
  value: n.value["x-enumDescriptions"][o]
136
136
  }, null, 8, ["value"])
137
137
  ])
138
138
  ]))), 128))
139
- ])) : (l(), a("ul", re, [
140
- (l(!0), a(d, null, k(T.value, (o) => (l(), a("li", {
139
+ ])) : (l(), i("ul", re, [
140
+ (l(!0), i(d, null, k(T.value, (o) => (l(), i("li", {
141
141
  key: o,
142
142
  class: "property-enum-value"
143
143
  }, [
144
- f("span", pe, c(o), 1)
144
+ f("span", pe, m(o), 1)
145
145
  ]))), 128)),
146
146
  C.value ? (l(), h(s(J), { key: 0 }, {
147
- default: m(({ open: o }) => [
148
- i(s(K), null, {
149
- default: m(() => [
150
- (l(!0), a(d, null, k(U.value, (u) => (l(), a("li", {
147
+ default: c(({ open: o }) => [
148
+ a(s(K), null, {
149
+ default: c(() => [
150
+ (l(!0), i(d, null, k(U.value, (u) => (l(), i("li", {
151
151
  key: u,
152
152
  class: "property-enum-value"
153
153
  }, [
154
- f("span", me, c(u), 1)
154
+ f("span", ce, m(u), 1)
155
155
  ]))), 128))
156
156
  ]),
157
157
  _: 1
158
158
  }),
159
- i(s(Q), { class: "enum-toggle-button" }, {
160
- default: m(() => [
161
- i(s(W), {
162
- class: I(["enum-toggle-button-icon", { "enum-toggle-button-icon--open": o }]),
159
+ a(s(Q), { class: "enum-toggle-button" }, {
160
+ default: c(() => [
161
+ a(s(W), {
162
+ class: A(["enum-toggle-button-icon", { "enum-toggle-button-icon--open": o }]),
163
163
  icon: "Add",
164
164
  size: "sm"
165
165
  }, null, 8, ["class"]),
166
- D(" " + c(o ? "Hide values" : "Show all values"), 1)
166
+ D(" " + m(o ? "Hide values" : "Show all values"), 1)
167
167
  ]),
168
168
  _: 2
169
169
  }, 1024)
@@ -172,8 +172,8 @@ const ne = {
172
172
  })) : r("", !0)
173
173
  ]))
174
174
  ])) : r("", !0),
175
- ((q = n.value) == null ? void 0 : q.type) === "object" && ((A = n.value) != null && A.properties || (F = n.value) != null && F.additionalProperties) ? (l(), a("div", ce, [
176
- i(L, {
175
+ ((q = n.value) == null ? void 0 : q.type) === "object" && ((F = n.value) != null && F.properties || (N = n.value) != null && N.additionalProperties) ? (l(), i("div", me, [
176
+ a(I, {
177
177
  compact: e.compact,
178
178
  level: e.level + 1,
179
179
  name: e.name,
@@ -181,9 +181,9 @@ const ne = {
181
181
  value: n.value
182
182
  }, null, 8, ["compact", "level", "name", "noncollapsible", "value"])
183
183
  ])) : r("", !0),
184
- (N = n.value) != null && N.items && typeof n.value.items == "object" && "type" in n.value.items && typeof n.value.items.type == "string" ? (l(), a(d, { key: 5 }, [
185
- ["object"].includes((j = (V = n.value) == null ? void 0 : V.items) == null ? void 0 : j.type) ? (l(), a("div", de, [
186
- i(L, {
184
+ (V = n.value) != null && V.items && typeof n.value.items == "object" && "type" in n.value.items && typeof n.value.items.type == "string" ? (l(), i(d, { key: 5 }, [
185
+ ["object"].includes((z = (j = n.value) == null ? void 0 : j.items) == null ? void 0 : z.type) ? (l(), i("div", de, [
186
+ a(I, {
187
187
  compact: e.compact,
188
188
  level: e.level + 1,
189
189
  name: e.name,
@@ -192,10 +192,10 @@ const ne = {
192
192
  }, null, 8, ["compact", "level", "name", "noncollapsible", "value"])
193
193
  ])) : r("", !0)
194
194
  ], 64)) : r("", !0),
195
- (l(!0), a(d, null, k(s(Y), (o) => {
196
- var u, z;
197
- return l(), a(d, { key: o }, [
198
- (u = n.value) != null && u[o] ? (l(), h(O, {
195
+ (l(!0), i(d, null, k(s(Y), (o) => {
196
+ var u, _;
197
+ return l(), i(d, { key: o }, [
198
+ (u = n.value) != null && u[o] ? (l(), h(L, {
199
199
  key: 0,
200
200
  compact: e.compact,
201
201
  discriminator: o,
@@ -205,7 +205,7 @@ const ne = {
205
205
  noncollapsible: e.noncollapsible,
206
206
  schemas: e.schemas,
207
207
  value: n.value
208
- }, null, 8, ["compact", "discriminator", "hideHeading", "level", "name", "noncollapsible", "schemas", "value"])) : (z = n.value) != null && z.items && typeof o == "string" && typeof n.value.items == "object" && o in n.value.items && Array.isArray(n.value.items[o]) && e.level < 3 ? (l(), h(O, {
208
+ }, null, 8, ["compact", "discriminator", "hideHeading", "level", "name", "noncollapsible", "schemas", "value"])) : (_ = n.value) != null && _.items && typeof o == "string" && typeof n.value.items == "object" && o in n.value.items ? (l(), h(L, {
209
209
  key: 1,
210
210
  compact: e.compact,
211
211
  discriminator: o,
@@ -218,7 +218,7 @@ const ne = {
218
218
  }, null, 8, ["compact", "discriminator", "hideHeading", "level", "name", "noncollapsible", "schemas", "value"])) : r("", !0)
219
219
  ], 64);
220
220
  }), 128)),
221
- i(s(ee), { value: n.value }, null, 8, ["value"])
221
+ a(s(ee), { value: n.value }, null, 8, ["value"])
222
222
  ];
223
223
  }),
224
224
  _: 1