@scalar/api-reference 1.24.10 → 1.24.12

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":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue"],"names":[],"mappings":"AA8iBA,OAAO,8BAA8B,CAAA;AAGrC,OAAO,EAGL,KAAK,OAAO,EAEb,MAAM,gBAAgB,CAAA;AACvB,OAAO,0BAA0B,CAAA;AA0BjC,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,UAAU,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4kBjB,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
1
+ {"version":3,"file":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue"],"names":[],"mappings":"AA6iBA,OAAO,8BAA8B,CAAA;AAGrC,OAAO,EAGL,KAAK,OAAO,EAEb,MAAM,gBAAgB,CAAA;AACvB,OAAO,0BAA0B,CAAA;AA0BjC,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,UAAU,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6jBjB,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -2,7 +2,7 @@ import o from "./ApiReferenceLayout.vue2.js";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import t from "../_virtual/_plugin-vue_export-helper.js";
5
- const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8afe1a33"]]);
5
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-3ac311e0"]]);
6
6
  export {
7
- f as default
7
+ m as default
8
8
  };
@@ -1,30 +1,29 @@
1
- import { defineComponent as J, defineAsyncComponent as X, ref as O, onBeforeMount as Z, onMounted as _, computed as U, watch as x, onServerPrefetch as ee, useSSRContext as oe, getCurrentInstance as te, provide as A, openBlock as f, createElementBlock as h, Fragment as P, createVNode as p, unref as a, withCtx as i, createElementVNode as m, normalizeClass as re, normalizeStyle as ae, renderSlot as l, normalizeProps as d, guardReactiveProps as u, createCommentVNode as w, withDirectives as ne, vShow as se, createSlots as ie, createBlock as B } from "vue";
2
- import { provideUseId as le } from "@headlessui/vue";
1
+ import { defineComponent as Q, defineAsyncComponent as q, ref as O, onBeforeMount as J, onMounted as X, computed as A, watch as Z, onServerPrefetch as _, useSSRContext as x, getCurrentInstance as ee, provide as P, openBlock as v, createElementBlock as h, Fragment as M, createVNode as c, unref as n, withCtx as i, createElementVNode as f, normalizeClass as oe, normalizeStyle as te, renderSlot as l, normalizeProps as d, guardReactiveProps as u, createCommentVNode as w, withDirectives as re, vShow as ae, createSlots as ne } from "vue";
2
+ import { provideUseId as se } from "@headlessui/vue";
3
3
  import "@scalar/components/style.css";
4
- import { defaultStateFactory as de } from "@scalar/oas-utils/helpers";
5
- import { ThemeStyles as ue, ResetStyles as ce, ScrollbarStyles as pe } from "@scalar/themes";
4
+ import { defaultStateFactory as ie } from "@scalar/oas-utils/helpers";
5
+ import { ThemeStyles as le, ResetStyles as de, ScrollbarStyles as ue } from "@scalar/themes";
6
6
  import "@scalar/themes/style.css";
7
- import { ScalarToasts as fe } from "@scalar/use-toasts";
8
- import { useMediaQuery as me, useResizeObserver as ge, useDebounceFn as Se } from "@vueuse/core";
9
- import { NEW_API_MODAL as M } from "../features.js";
10
- import ve from "./ApiClientModal.vue.js";
11
- import he from "./GettingStarted.vue.js";
12
- import { downloadSpecBus as be, downloadSpecFile as we } from "../helpers/specDownloads.js";
13
- import { useDeprecationWarnings as ye } from "../hooks/useDeprecationWarnings.js";
14
- import $e from "./Sidebar/Sidebar.vue.js";
15
- import Re from "./Content/Content.vue.js";
16
- import { useSidebar as Ce } from "../hooks/useSidebar.js";
17
- import { GLOBAL_SECURITY_SYMBOL as Te, HIDE_DOWNLOAD_BUTTON_SYMBOL as ke } from "../helpers/provideSymbols.js";
18
- import { useNavState as Ie } from "../hooks/useNavState.js";
19
- import { scrollToId as De } from "../helpers/scrollToId.js";
20
- import { sleep as Ee } from "../helpers/sleep.js";
21
- const Fe = { class: "references-header" }, Le = {
7
+ import { ScalarToasts as ce } from "@scalar/use-toasts";
8
+ import { useMediaQuery as pe, useResizeObserver as fe, useDebounceFn as me } from "@vueuse/core";
9
+ import { NEW_API_MODAL as ge } from "../features.js";
10
+ import Se from "./GettingStarted.vue.js";
11
+ import { downloadSpecBus as ve, downloadSpecFile as he } from "../helpers/specDownloads.js";
12
+ import { useDeprecationWarnings as be } from "../hooks/useDeprecationWarnings.js";
13
+ import we from "./Sidebar/Sidebar.vue.js";
14
+ import ye from "./Content/Content.vue.js";
15
+ import { useSidebar as Re } from "../hooks/useSidebar.js";
16
+ import { GLOBAL_SECURITY_SYMBOL as $e, HIDE_DOWNLOAD_BUTTON_SYMBOL as Ce } from "../helpers/provideSymbols.js";
17
+ import { useNavState as Te } from "../hooks/useNavState.js";
18
+ import { scrollToId as Ie } from "../helpers/scrollToId.js";
19
+ import { sleep as De } from "../helpers/sleep.js";
20
+ const Ee = { class: "references-header" }, Fe = {
22
21
  key: 0,
23
22
  class: "references-navigation t-doc__sidebar"
24
- }, Oe = { class: "references-navigation-list" }, Ue = { class: "references-editor" }, Ae = { class: "references-editor-textarea" }, Pe = { class: "references-rendered" }, Be = {
23
+ }, Le = { class: "references-navigation-list" }, ke = { class: "references-editor" }, Oe = { class: "references-editor-textarea" }, Ae = { class: "references-rendered" }, Pe = {
25
24
  key: 0,
26
25
  class: "references-footer"
27
- }, ro = /* @__PURE__ */ J({
26
+ }, eo = /* @__PURE__ */ Q({
28
27
  inheritAttrs: !1,
29
28
  __name: "ApiReferenceLayout",
30
29
  props: {
@@ -33,8 +32,8 @@ const Fe = { class: "references-header" }, Le = {
33
32
  rawSpec: {}
34
33
  },
35
34
  emits: ["changeTheme", "updateContent", "loadSwaggerFile", "linkSwaggerFile", "toggleDarkMode"],
36
- setup(N) {
37
- const t = N, z = X(() => M ? (
35
+ setup(U) {
36
+ const t = U, B = q(() => ge ? (
38
37
  // Empty component
39
38
  new Promise((e) => {
40
39
  e({ render: () => null });
@@ -42,109 +41,109 @@ const Fe = { class: "references-header" }, Le = {
42
41
  ) : (
43
42
  // Load component
44
43
  import("./ApiClientModalOld.vue.js")
45
- )), Y = me("(min-width: 1150px)"), y = O("100dvh"), b = O(null);
46
- ge(b, (e) => {
44
+ )), N = pe("(min-width: 1150px)"), y = O("100dvh"), b = O(null);
45
+ fe(b, (e) => {
47
46
  y.value = e[0].contentRect.height + "px";
48
47
  });
49
48
  const {
50
- breadcrumb: H,
51
- collapsedSidebarItems: S,
52
- isSidebarOpen: V,
53
- setCollapsedSidebarItem: $,
54
- hideModels: W,
55
- setParsedSpec: G
56
- } = Ce(), {
57
- getPathRoutingId: R,
58
- getSectionId: j,
59
- getTagId: K,
49
+ breadcrumb: z,
50
+ collapsedSidebarItems: g,
51
+ isSidebarOpen: Y,
52
+ setCollapsedSidebarItem: R,
53
+ hideModels: H,
54
+ setParsedSpec: V
55
+ } = Re(), {
56
+ getPathRoutingId: $,
57
+ getSectionId: W,
58
+ getTagId: G,
60
59
  hash: C,
61
60
  isIntersectionEnabled: T,
62
- pathRouting: k,
63
- updateHash: I
64
- } = Ie();
65
- k.value = t.configuration.pathRouting, Z(() => I());
66
- const D = async (e) => {
61
+ pathRouting: I,
62
+ updateHash: D
63
+ } = Te();
64
+ I.value = t.configuration.pathRouting, J(() => D());
65
+ const E = async (e) => {
67
66
  var o;
68
- T.value = !1, I(), e ? De(e) : (o = b.value) == null || o.scrollTo(0, 0), await Ee(100), T.value = !0;
67
+ T.value = !1, D(), e ? Ie(e) : (o = b.value) == null || o.scrollTo(0, 0), await De(100), T.value = !0;
69
68
  };
70
- _(() => {
71
- be.on(({ specTitle: e }) => {
72
- we(t.rawSpec, e);
73
- }), window.onhashchange = () => D(decodeURIComponent(window.location.hash.replace(/^#/, ""))), window.onpopstate = () => k.value && D(R(window.location.pathname));
69
+ X(() => {
70
+ ve.on(({ specTitle: e }) => {
71
+ he(t.rawSpec, e);
72
+ }), window.onhashchange = () => E(decodeURIComponent(window.location.hash.replace(/^#/, ""))), window.onpopstate = () => I.value && E($(window.location.pathname));
74
73
  });
75
- const Q = U(
76
- () => Y.value || !t.configuration.isEditable
77
- ), E = Se((e) => {
74
+ const j = A(
75
+ () => N.value || !t.configuration.isEditable
76
+ ), F = me((e) => {
78
77
  if ((e.target.scrollTop ?? 0) < 50) {
79
78
  const r = t.configuration.pathRouting ? t.configuration.pathRouting.basePath : window.location.pathname;
80
79
  window.history.replaceState({}, "", r + window.location.search), C.value = "";
81
80
  }
82
- }), s = U(() => ({
83
- breadcrumb: H.value,
81
+ }), s = A(() => ({
82
+ breadcrumb: z.value,
84
83
  spec: t.parsedSpec
85
84
  }));
86
- return x(() => t.parsedSpec, G, { deep: !0 }), ee(() => {
85
+ return Z(() => t.parsedSpec, V, { deep: !0 }), _(() => {
87
86
  var o, r;
88
- const e = oe();
89
- if (e && ((o = e.payload).data || (o.data = de()), t.configuration.pathRouting)) {
90
- const n = R(e.url);
91
- C.value = n, e.payload.data.hash = n;
92
- for (const c in S)
93
- Object.hasOwn(S, c) && delete S[c];
94
- if (n)
95
- $(j(n), !0);
87
+ const e = x();
88
+ if (e && ((o = e.payload).data || (o.data = ie()), t.configuration.pathRouting)) {
89
+ const a = $(e.url);
90
+ C.value = a, e.payload.data.hash = a;
91
+ for (const p in g)
92
+ Object.hasOwn(g, p) && delete g[p];
93
+ if (a)
94
+ R(W(a), !0);
96
95
  else {
97
- const c = (r = t.parsedSpec.tags) == null ? void 0 : r[0];
98
- c && $(K(c), !0);
96
+ const p = (r = t.parsedSpec.tags) == null ? void 0 : r[0];
97
+ p && R(G(p), !0);
99
98
  }
100
- e.payload.data["useSidebarContent-collapsedSidebarItems"] = S;
99
+ e.payload.data["useSidebarContent-collapsedSidebarItems"] = g;
101
100
  }
102
- }), le(() => {
103
- var n;
104
- const e = te(), o = "scalar-instance-id";
101
+ }), se(() => {
102
+ var a;
103
+ const e = ee(), o = "scalar-instance-id";
105
104
  if (!e) return o;
106
105
  let r = e.uid;
107
- return typeof window > "u" ? (e.attrs || (e.attrs = {}), e.attrs[o] = r) : (n = e.vnode.el) != null && n.getAttribute && (r = e.vnode.el.getAttribute(o)), `${o}-${r}`;
108
- }), A(Te, () => t.parsedSpec.security), A(
109
- ke,
106
+ return typeof window > "u" ? (e.attrs || (e.attrs = {}), e.attrs[o] = r) : (a = e.vnode.el) != null && a.getAttribute && (r = e.vnode.el.getAttribute(o)), `${o}-${r}`;
107
+ }), P($e, () => t.parsedSpec.security), P(
108
+ Ce,
110
109
  () => t.configuration.hideDownloadButton
111
- ), W.value = t.configuration.hideModels ?? !1, ye(t.configuration), (e, o) => {
112
- var r, n;
113
- return f(), h(P, null, [
114
- p(a(ue), {
110
+ ), H.value = t.configuration.hideModels ?? !1, be(t.configuration), (e, o) => {
111
+ var r, a;
112
+ return v(), h(M, null, [
113
+ c(n(le), {
115
114
  id: (r = e.configuration) == null ? void 0 : r.theme,
116
- withDefaultFonts: (n = e.configuration) == null ? void 0 : n.withDefaultFonts
115
+ withDefaultFonts: (a = e.configuration) == null ? void 0 : a.withDefaultFonts
117
116
  }, null, 8, ["id", "withDefaultFonts"]),
118
- p(a(ce), null, {
119
- default: i(({ styles: c }) => [
120
- p(a(pe), null, {
121
- default: i(({ styles: q }) => {
122
- var F, L;
117
+ c(n(de), null, {
118
+ default: i(({ styles: p }) => [
119
+ c(n(ue), null, {
120
+ default: i(({ styles: K }) => {
121
+ var L, k;
123
122
  return [
124
- m("div", {
123
+ f("div", {
125
124
  ref_key: "documentEl",
126
125
  ref: b,
127
- class: re(["scalar-api-reference references-layout", [
126
+ class: oe(["scalar-api-reference references-layout", [
128
127
  {
129
128
  "references-editable": e.configuration.isEditable,
130
129
  "references-sidebar": e.configuration.showSidebar,
131
- "references-sidebar-mobile-open": a(V),
130
+ "references-sidebar-mobile-open": n(Y),
132
131
  "references-classic": e.configuration.layout === "classic"
133
132
  },
134
- c,
135
- q,
133
+ p,
134
+ K,
136
135
  e.$attrs.class
137
136
  ]]),
138
- style: ae({ "--full-height": y.value }),
137
+ style: te({ "--full-height": y.value }),
139
138
  onScrollPassive: o[4] || (o[4] = //@ts-ignore
140
- (...v) => a(E) && a(E)(...v))
139
+ (...S) => n(F) && n(F)(...S))
141
140
  }, [
142
- m("div", Fe, [
141
+ f("div", Ee, [
143
142
  l(e.$slots, "header", d(u(s.value)), void 0, !0)
144
143
  ]),
145
- e.configuration.showSidebar ? (f(), h("aside", Le, [
146
- m("div", Oe, [
147
- p(a($e), { parsedSpec: e.parsedSpec }, {
144
+ e.configuration.showSidebar ? (v(), h("aside", Fe, [
145
+ f("div", Le, [
146
+ c(n(we), { parsedSpec: e.parsedSpec }, {
148
147
  "sidebar-start": i(() => [
149
148
  l(e.$slots, "sidebar-start", d(u(s.value)), void 0, !0)
150
149
  ]),
@@ -155,22 +154,22 @@ const Fe = { class: "references-header" }, Le = {
155
154
  }, 8, ["parsedSpec"])
156
155
  ])
157
156
  ])) : w("", !0),
158
- ne(m("div", Ue, [
159
- m("div", Ae, [
157
+ re(f("div", ke, [
158
+ f("div", Oe, [
160
159
  l(e.$slots, "editor", d(u(s.value)), void 0, !0)
161
160
  ])
162
161
  ], 512), [
163
- [se, e.configuration.isEditable]
162
+ [ae, e.configuration.isEditable]
164
163
  ]),
165
- Q.value ? (f(), h(P, { key: 1 }, [
166
- m("div", Pe, [
167
- p(a(Re), {
164
+ j.value ? (v(), h(M, { key: 1 }, [
165
+ f("div", Ae, [
166
+ c(n(ye), {
168
167
  baseServerURL: e.configuration.baseServerURL,
169
168
  layout: e.configuration.layout === "classic" ? "accordion" : "default",
170
169
  parsedSpec: e.parsedSpec,
171
170
  proxy: e.configuration.proxy,
172
171
  servers: e.configuration.servers
173
- }, ie({
172
+ }, ne({
174
173
  start: i(() => [
175
174
  l(e.$slots, "content-start", d(u(s.value)), void 0, !0)
176
175
  ]),
@@ -179,17 +178,17 @@ const Fe = { class: "references-header" }, Le = {
179
178
  ]),
180
179
  _: 2
181
180
  }, [
182
- (F = e.configuration) != null && F.isEditable ? {
181
+ (L = e.configuration) != null && L.isEditable ? {
183
182
  name: "empty-state",
184
183
  fn: i(() => {
185
- var v;
184
+ var S;
186
185
  return [
187
- p(he, {
188
- theme: ((v = e.configuration) == null ? void 0 : v.theme) || "default",
189
- onChangeTheme: o[0] || (o[0] = (g) => e.$emit("changeTheme", g)),
190
- onLinkSwaggerFile: o[1] || (o[1] = (g) => e.$emit("linkSwaggerFile")),
191
- onLoadSwaggerFile: o[2] || (o[2] = (g) => e.$emit("loadSwaggerFile")),
192
- onUpdateContent: o[3] || (o[3] = (g) => e.$emit("updateContent", g))
186
+ c(Se, {
187
+ theme: ((S = e.configuration) == null ? void 0 : S.theme) || "default",
188
+ onChangeTheme: o[0] || (o[0] = (m) => e.$emit("changeTheme", m)),
189
+ onLinkSwaggerFile: o[1] || (o[1] = (m) => e.$emit("linkSwaggerFile")),
190
+ onLoadSwaggerFile: o[2] || (o[2] = (m) => e.$emit("loadSwaggerFile")),
191
+ onUpdateContent: o[3] || (o[3] = (m) => e.$emit("updateContent", m))
193
192
  }, null, 8, ["theme"])
194
193
  ];
195
194
  }),
@@ -197,18 +196,13 @@ const Fe = { class: "references-header" }, Le = {
197
196
  } : void 0
198
197
  ]), 1032, ["baseServerURL", "layout", "parsedSpec", "proxy", "servers"])
199
198
  ]),
200
- e.$slots.footer ? (f(), h("div", Be, [
199
+ e.$slots.footer ? (v(), h("div", Pe, [
201
200
  l(e.$slots, "footer", d(u(s.value)), void 0, !0)
202
201
  ])) : w("", !0)
203
202
  ], 64)) : w("", !0),
204
- a(M) ? (f(), B(ve, {
205
- key: 2,
206
- proxyUrl: e.configuration.proxy,
207
- spec: e.configuration.spec
208
- }, null, 8, ["proxyUrl", "spec"])) : (f(), B(a(z), {
209
- key: 3,
203
+ c(n(B), {
210
204
  parsedSpec: e.parsedSpec,
211
- proxyUrl: (L = e.configuration) == null ? void 0 : L.proxy
205
+ proxyUrl: (k = e.configuration) == null ? void 0 : k.proxy
212
206
  }, {
213
207
  "sidebar-start": i(() => [
214
208
  l(e.$slots, "sidebar-start", d(u(s.value)), void 0, !0)
@@ -217,7 +211,7 @@ const Fe = { class: "references-header" }, Le = {
217
211
  l(e.$slots, "sidebar-end", d(u(s.value)), void 0, !0)
218
212
  ]),
219
213
  _: 3
220
- }, 8, ["parsedSpec", "proxyUrl"]))
214
+ }, 8, ["parsedSpec", "proxyUrl"])
221
215
  ], 38)
222
216
  ];
223
217
  }),
@@ -226,11 +220,11 @@ const Fe = { class: "references-header" }, Le = {
226
220
  ]),
227
221
  _: 3
228
222
  }),
229
- p(a(fe))
223
+ c(n(ce))
230
224
  ], 64);
231
225
  };
232
226
  }
233
227
  });
234
228
  export {
235
- ro as default
229
+ eo as default
236
230
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ClientSelector.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/ClientSelector.vue"],"names":[],"mappings":";AA+fA,wBAKG"}
1
+ {"version":3,"file":"ClientSelector.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/ClientSelector.vue"],"names":[],"mappings":";AAigBA,wBAKG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ClientSelector.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1f493fd1"]]);
4
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-ab6bf947"]]);
5
5
  export {
6
- m as default
6
+ f as default
7
7
  };
@@ -1,7 +1,7 @@
1
- import { defineComponent as I, ref as w, openBlock as n, createElementBlock as l, Fragment as d, renderList as _, unref as t, normalizeClass as a, createElementVNode as o, createVNode as h, toDisplayString as k, createCommentVNode as N, pushScopeId as x, popScopeId as z } from "vue";
1
+ import { defineComponent as I, ref as w, openBlock as n, createElementBlock as l, Fragment as _, renderList as d, unref as t, normalizeClass as a, createElementVNode as o, createVNode as f, toDisplayString as k, createCommentVNode as N, pushScopeId as x, popScopeId as z } from "vue";
2
2
  import { ScalarIcon as v } from "@scalar/components";
3
3
  import { useHttpClientStore as B } from "../../../stores/useHttpClientStore.js";
4
- const M = (c) => (x("data-v-1f493fd1"), c = c(), z(), c), T = ["onClick"], J = ["value"], O = ["label"], V = ["value"], $ = { class: "client-libraries-icon__more" }, E = {
4
+ const M = (c) => (x("data-v-ab6bf947"), c = c(), z(), c), T = ["onClick"], J = ["value"], O = ["label"], V = ["value"], $ = { class: "client-libraries-icon__more" }, E = {
5
5
  key: 1,
6
6
  class: "client-libraries-icon",
7
7
  height: "50",
@@ -47,7 +47,7 @@ const M = (c) => (x("data-v-1f493fd1"), c = c(), z(), c), T = ["onClick"], J = [
47
47
  }
48
48
  ].filter(
49
49
  (i) => y.value.find((s) => s.key === i.targetKey && s.clients.find((e) => e.key === i.clientKey))
50
- ), K = (i) => `programming-language-${i}`, S = (i) => i.targetKey === r.targetKey && i.clientKey === r.clientKey, f = (i) => p.some(
50
+ ), K = (i) => `programming-language-${i}`, S = (i) => i.targetKey === r.targetKey && i.clientKey === r.clientKey, h = (i) => p.some(
51
51
  (s) => s.targetKey === i.targetKey && s.clientKey === i.clientKey
52
52
  );
53
53
  return (i, s) => (n(), l("div", {
@@ -55,7 +55,7 @@ const M = (c) => (x("data-v-1f493fd1"), c = c(), z(), c), T = ["onClick"], J = [
55
55
  ref: C,
56
56
  class: "client-libraries-content"
57
57
  }, [
58
- (n(!0), l(d, null, _(t(p), (e) => (n(), l("div", {
58
+ (n(!0), l(_, null, d(t(p), (e) => (n(), l("div", {
59
59
  key: e.clientKey,
60
60
  class: a(["client-libraries rendered-code-sdks", {
61
61
  "client-libraries__active": S(e)
@@ -65,7 +65,7 @@ const M = (c) => (x("data-v-1f493fd1"), c = c(), z(), c), T = ["onClick"], J = [
65
65
  o("div", {
66
66
  class: a(`client-libraries-icon__${e.targetKey}`)
67
67
  }, [
68
- h(t(v), {
68
+ f(t(v), {
69
69
  class: "client-libraries-icon",
70
70
  icon: K(e.targetKey)
71
71
  }, null, 8, ["icon"])
@@ -74,7 +74,7 @@ const M = (c) => (x("data-v-1f493fd1"), c = c(), z(), c), T = ["onClick"], J = [
74
74
  ], 10, T))), 128)),
75
75
  o("div", {
76
76
  class: a(["client-libraries client-libraries__select", {
77
- "client-libraries__active": t(r) && !f(t(r))
77
+ "client-libraries__active": t(r) && !h(t(r))
78
78
  }])
79
79
  }, [
80
80
  o("select", {
@@ -82,11 +82,11 @@ const M = (c) => (x("data-v-1f493fd1"), c = c(), z(), c), T = ["onClick"], J = [
82
82
  value: JSON.stringify(t(r)),
83
83
  onInput: s[0] || (s[0] = (e) => t(g)(JSON.parse(e.target.value)))
84
84
  }, [
85
- (n(!0), l(d, null, _(t(y), (e) => (n(), l("optgroup", {
85
+ (n(!0), l(_, null, d(t(y), (e) => (n(), l("optgroup", {
86
86
  key: e.key,
87
87
  label: e.title
88
88
  }, [
89
- (n(!0), l(d, null, _(e.clients, (u) => (n(), l("option", {
89
+ (n(!0), l(_, null, d(e.clients, (u) => (n(), l("option", {
90
90
  key: u.key,
91
91
  value: JSON.stringify({
92
92
  targetKey: e.key,
@@ -99,11 +99,11 @@ const M = (c) => (x("data-v-1f493fd1"), c = c(), z(), c), T = ["onClick"], J = [
99
99
  ], 8, O))), 128))
100
100
  ], 40, J),
101
101
  o("div", $, [
102
- t(r) && !f(t(r)) ? (n(), l("div", {
102
+ t(r) && !h(t(r)) ? (n(), l("div", {
103
103
  key: 0,
104
104
  class: a(`client-libraries-icon__${t(r).targetKey}`)
105
105
  }, [
106
- h(t(v), {
106
+ f(t(v), {
107
107
  class: "client-libraries-icon",
108
108
  icon: K(t(r).targetKey)
109
109
  }, null, 8, ["icon"])