@scalar/api-reference 1.24.10 → 1.24.11
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.
- package/CHANGELOG.md +14 -0
- package/dist/browser/standalone.js +15837 -18734
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue2.js +109 -115
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +2 -2
- package/dist/components/Content/ClientLibraries/ClientSelector.vue2.js +10 -10
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +8 -8
- package/dist/components/ApiClientModal.vue.js +0 -26
- package/dist/components/ApiClientModal.vue2.js +0 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue"],"names":[],"mappings":"
|
|
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
|
|
5
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-3ac311e0"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
m as default
|
|
8
8
|
};
|
|
@@ -1,30 +1,29 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { provideUseId as
|
|
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
|
|
5
|
-
import { ThemeStyles as
|
|
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
|
|
8
|
-
import { useMediaQuery as
|
|
9
|
-
import { NEW_API_MODAL as
|
|
10
|
-
import
|
|
11
|
-
import he from "
|
|
12
|
-
import {
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import Re from "
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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(
|
|
37
|
-
const t =
|
|
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
|
-
)),
|
|
46
|
-
|
|
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:
|
|
51
|
-
collapsedSidebarItems:
|
|
52
|
-
isSidebarOpen:
|
|
53
|
-
setCollapsedSidebarItem:
|
|
54
|
-
hideModels:
|
|
55
|
-
setParsedSpec:
|
|
56
|
-
} =
|
|
57
|
-
getPathRoutingId:
|
|
58
|
-
getSectionId:
|
|
59
|
-
getTagId:
|
|
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:
|
|
63
|
-
updateHash:
|
|
64
|
-
} =
|
|
65
|
-
|
|
66
|
-
const
|
|
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,
|
|
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
|
-
|
|
72
|
-
|
|
73
|
-
}), window.onhashchange = () =>
|
|
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
|
|
76
|
-
() =>
|
|
77
|
-
),
|
|
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 =
|
|
83
|
-
breadcrumb:
|
|
81
|
+
}), s = A(() => ({
|
|
82
|
+
breadcrumb: z.value,
|
|
84
83
|
spec: t.parsedSpec
|
|
85
84
|
}));
|
|
86
|
-
return
|
|
85
|
+
return Z(() => t.parsedSpec, V, { deep: !0 }), _(() => {
|
|
87
86
|
var o, r;
|
|
88
|
-
const e =
|
|
89
|
-
if (e && ((o = e.payload).data || (o.data =
|
|
90
|
-
const
|
|
91
|
-
C.value =
|
|
92
|
-
for (const
|
|
93
|
-
Object.hasOwn(
|
|
94
|
-
if (
|
|
95
|
-
|
|
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
|
|
98
|
-
|
|
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"] =
|
|
99
|
+
e.payload.data["useSidebarContent-collapsedSidebarItems"] = g;
|
|
101
100
|
}
|
|
102
|
-
}),
|
|
103
|
-
var
|
|
104
|
-
const e =
|
|
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) : (
|
|
108
|
-
}),
|
|
109
|
-
|
|
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
|
-
),
|
|
112
|
-
var r,
|
|
113
|
-
return
|
|
114
|
-
|
|
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: (
|
|
115
|
+
withDefaultFonts: (a = e.configuration) == null ? void 0 : a.withDefaultFonts
|
|
117
116
|
}, null, 8, ["id", "withDefaultFonts"]),
|
|
118
|
-
|
|
119
|
-
default: i(({ styles:
|
|
120
|
-
|
|
121
|
-
default: i(({ styles:
|
|
122
|
-
var
|
|
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
|
-
|
|
123
|
+
f("div", {
|
|
125
124
|
ref_key: "documentEl",
|
|
126
125
|
ref: b,
|
|
127
|
-
class:
|
|
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":
|
|
130
|
+
"references-sidebar-mobile-open": n(Y),
|
|
132
131
|
"references-classic": e.configuration.layout === "classic"
|
|
133
132
|
},
|
|
134
|
-
|
|
135
|
-
|
|
133
|
+
p,
|
|
134
|
+
K,
|
|
136
135
|
e.$attrs.class
|
|
137
136
|
]]),
|
|
138
|
-
style:
|
|
137
|
+
style: te({ "--full-height": y.value }),
|
|
139
138
|
onScrollPassive: o[4] || (o[4] = //@ts-ignore
|
|
140
|
-
(...
|
|
139
|
+
(...S) => n(F) && n(F)(...S))
|
|
141
140
|
}, [
|
|
142
|
-
|
|
141
|
+
f("div", Ee, [
|
|
143
142
|
l(e.$slots, "header", d(u(s.value)), void 0, !0)
|
|
144
143
|
]),
|
|
145
|
-
e.configuration.showSidebar ? (
|
|
146
|
-
|
|
147
|
-
|
|
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
|
-
|
|
159
|
-
|
|
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
|
-
[
|
|
162
|
+
[ae, e.configuration.isEditable]
|
|
164
163
|
]),
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
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
|
-
},
|
|
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
|
-
(
|
|
181
|
+
(L = e.configuration) != null && L.isEditable ? {
|
|
183
182
|
name: "empty-state",
|
|
184
183
|
fn: i(() => {
|
|
185
|
-
var
|
|
184
|
+
var S;
|
|
186
185
|
return [
|
|
187
|
-
|
|
188
|
-
theme: ((
|
|
189
|
-
onChangeTheme: o[0] || (o[0] = (
|
|
190
|
-
onLinkSwaggerFile: o[1] || (o[1] = (
|
|
191
|
-
onLoadSwaggerFile: o[2] || (o[2] = (
|
|
192
|
-
onUpdateContent: o[3] || (o[3] = (
|
|
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 ? (
|
|
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
|
-
|
|
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: (
|
|
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
|
-
|
|
223
|
+
c(n(ce))
|
|
230
224
|
], 64);
|
|
231
225
|
};
|
|
232
226
|
}
|
|
233
227
|
});
|
|
234
228
|
export {
|
|
235
|
-
|
|
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":";
|
|
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
|
|
4
|
+
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-ab6bf947"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
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
|
|
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-
|
|
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,
|
|
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(
|
|
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
|
-
|
|
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) && !
|
|
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(
|
|
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(
|
|
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) && !
|
|
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
|
-
|
|
106
|
+
f(t(v), {
|
|
107
107
|
class: "client-libraries-icon",
|
|
108
108
|
icon: K(t(r).targetKey)
|
|
109
109
|
}, null, 8, ["icon"])
|