@kong-ui-public/entities-shared 3.40.1 → 3.40.2
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/dist/entities-shared.es.js +759 -752
- package/dist/entities-shared.umd.js +43 -43
- package/dist/types/utils/code-block.d.ts +1 -1
- package/dist/types/utils/code-block.d.ts.map +1 -1
- package/dist/types/utils/shiki.d.ts +2 -1
- package/dist/types/utils/shiki.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,13 +1,20 @@
|
|
|
1
|
-
import { inject as
|
|
2
|
-
import
|
|
3
|
-
import { createI18n as
|
|
4
|
-
import { BadgeMethodAppearances as
|
|
5
|
-
import {
|
|
1
|
+
import { inject as ot, ref as M, computed as _, unref as C, toValue as ye, watch as xe, toRef as ti, provide as Wt, defineComponent as Q, openBlock as g, createBlock as L, resolveDynamicComponent as qe, normalizeClass as fe, withCtx as x, createElementBlock as S, createElementVNode as B, toDisplayString as I, createCommentVNode as D, Fragment as pe, renderList as de, resolveComponent as U, createVNode as N, createTextVNode as q, useCssVars as Jt, useId as ni, useSlots as He, renderSlot as j, createSlots as Ae, normalizeProps as ii, guardReactiveProps as ri, mergeProps as Gt, onMounted as lt, onBeforeMount as st, withModifiers as Ne, Teleport as zt, onUnmounted as ai, withDirectives as we, vShow as _e, withKeys as oi, warn as li } from "vue";
|
|
2
|
+
import vt from "axios";
|
|
3
|
+
import { createI18n as si, i18nTComponent as ci } from "@kong-ui-public/i18n";
|
|
4
|
+
import { BadgeMethodAppearances as ui, KExternalLink as di, KButton as bt, KTruncate as fi, KBadge as pi } from "@kong/kongponents";
|
|
5
|
+
import { createHighlighterCoreSync as mi } from "@shikijs/core";
|
|
6
6
|
import { createJavaScriptRegexEngine as gi } from "@shikijs/engine-javascript";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
import hi from "@shikijs/langs/json";
|
|
8
|
+
import yi from "@shikijs/langs/yaml";
|
|
9
|
+
import vi from "@shikijs/langs/terraform";
|
|
10
|
+
import bi from "@shikijs/langs/shellscript";
|
|
11
|
+
import ki from "@shikijs/langs/powershell";
|
|
12
|
+
import Ci from "@shikijs/themes/catppuccin-mocha";
|
|
13
|
+
import xi from "@shikijs/themes/catppuccin-latte";
|
|
14
|
+
import { LanguageShellIcon as kt, LanguageBashIcon as Ct, BookIcon as Qt, AddIcon as Zt, CloseIcon as Ai, ChevronDownIcon as wi, CopyIcon as _i } from "@kong/icons";
|
|
15
|
+
import { useRouter as Si } from "vue-router";
|
|
16
|
+
var $i = /* @__PURE__ */ ((e) => (e.GatewayService = "service", e.Route = "route", e.Consumer = "consumer", e.ConsumerGroup = "consumer group", e.Plugin = "plugin", e.Upstream = "upstream", e.Certificate = "certificate", e.CACertificate = "ca certificate", e.SNI = "SNI", e.Key = "key", e.KeySet = "key set", e.Vault = "vault", e.Application = "application", e.Developer = "developer", e.acls = "ACL Credential", e["basic-auth"] = "Basic Auth Credential", e["key-auth"] = "Key Auth Credential", e["key-auth-enc"] = "Key Auth Encrypted Credential", e.oauth2 = "OAuth 2.0 Credential", e["hmac-auth"] = "HMAC Credential", e.jwt = "JWT Credential", e.Target = "target", e.Policy = "policy", e.Secret = "secret", e.RedisConfiguration = "redis configuration", e))($i || {}), Ti = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(Ti || {}), he = /* @__PURE__ */ ((e) => (e[e.InitialLoad = 0] = "InitialLoad", e[e.Loading = 1] = "Loading", e[e.Idle = 2] = "Idle", e[e.NoResults = 3] = "NoResults", e[e.NoRecords = 4] = "NoRecords", e[e.Error = 5] = "Error", e))(he || {}), ke = /* @__PURE__ */ ((e) => (e.CaCertificate = "ca_certificate", e.Certificate = "certificate", e.Consumer = "consumer", e.ConsumerGroup = "consumer_group", e.GatewayService = "service", e.Key = "key", e.KeySet = "set", e.Plugin = "plugin", e.Route = "route", e.SNI = "sni", e.Upstream = "upstream", e.Target = "target", e.Vault = "vault", e.Partial = "partial", e.BackendCluster = "backend_cluster", e.VirtualCluster = "virtual_cluster", e.Listener = "listener", e.ProducePolicy = "produce_policy", e.ConsumePolicy = "consume_policy", e.ClusterPolicy = "cluster_policy", e.ListenerPolicy = "listener_policy", e.SchemaRegistry = "schema_registry", e.StaticKey = "static_key", e.AuthServer = "auth_server", e.AuthServerScopes = "auth_server_scopes", e.AuthServerClaims = "auth_server_claims", e.AuthServerClients = "auth_server_clients", e.Other = "other", e))(ke || {});
|
|
17
|
+
const Ye = Object.values(ke), Xt = [
|
|
11
18
|
"ca_certificate",
|
|
12
19
|
"certificate",
|
|
13
20
|
"consumer",
|
|
@@ -22,24 +29,24 @@ const Ye = Object.values(ke), Zt = [
|
|
|
22
29
|
"vault",
|
|
23
30
|
"partial"
|
|
24
31
|
/* Partial */
|
|
25
|
-
],
|
|
32
|
+
], Ei = ["backend_cluster", "virtual_cluster", "listener", "produce_policy", "consume_policy", "cluster_policy", "listener_policy", "schema_registry", "static_key"], Ii = ["auth_server", "auth_server_scopes", "auth_server_claims", "auth_server_clients"];
|
|
26
33
|
var G = /* @__PURE__ */ ((e) => (e.ID = "id", e.IdArray = "id-array", e.Text = "plain-text", e.Date = "date", e.Redacted = "redacted", e.RedactedArray = "redacted-array", e.Json = "json", e.JsonArray = "json-array", e.BadgeTag = "badge-tag", e.CopyBadge = "copy-badge", e.BadgeStatus = "badge-status", e.BadgeMethod = "badge-method", e.LinkInternal = "link-internal", e.LinkExternal = "link-external", e))(G || {}), le = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e.Policy = "policy", e))(le || {});
|
|
27
|
-
const
|
|
34
|
+
const xt = [
|
|
28
35
|
"primary",
|
|
29
36
|
"secondary"
|
|
30
37
|
];
|
|
31
|
-
function
|
|
38
|
+
function Fi() {
|
|
32
39
|
return {
|
|
33
40
|
getAxiosInstance: (e = {}) => {
|
|
34
41
|
try {
|
|
35
|
-
const t =
|
|
36
|
-
return typeof t == "function" ? t(e) :
|
|
42
|
+
const t = ot("get-axios-instance", void 0);
|
|
43
|
+
return typeof t == "function" ? t(e) : vt.create({
|
|
37
44
|
withCredentials: !0,
|
|
38
45
|
timeout: 3e4,
|
|
39
46
|
...e
|
|
40
47
|
});
|
|
41
48
|
} catch (t) {
|
|
42
|
-
return console.warn("getAxiosInstance:", t.message || t),
|
|
49
|
+
return console.warn("getAxiosInstance:", t.message || t), vt.create({
|
|
43
50
|
withCredentials: !0,
|
|
44
51
|
timeout: 3e4,
|
|
45
52
|
...e
|
|
@@ -52,7 +59,7 @@ function wi() {
|
|
|
52
59
|
}
|
|
53
60
|
};
|
|
54
61
|
}
|
|
55
|
-
function
|
|
62
|
+
function Oi() {
|
|
56
63
|
return {
|
|
57
64
|
debounce: (e, t) => {
|
|
58
65
|
let n;
|
|
@@ -64,13 +71,13 @@ function _i() {
|
|
|
64
71
|
}
|
|
65
72
|
};
|
|
66
73
|
}
|
|
67
|
-
const Je = "khcp-user-table-preferences",
|
|
74
|
+
const Je = "khcp-user-table-preferences", Li = {
|
|
68
75
|
pageSize: 30,
|
|
69
76
|
sortColumnKey: void 0,
|
|
70
77
|
sortColumnOrder: void 0,
|
|
71
78
|
columnVisibility: {}
|
|
72
79
|
};
|
|
73
|
-
function
|
|
80
|
+
function Bi() {
|
|
74
81
|
const e = (n) => {
|
|
75
82
|
if (typeof n == "string")
|
|
76
83
|
try {
|
|
@@ -94,30 +101,30 @@ function $i() {
|
|
|
94
101
|
},
|
|
95
102
|
getTablePreferences: (n, i) => {
|
|
96
103
|
const r = t();
|
|
97
|
-
return (r == null ? void 0 : r.get(n)) || void 0 || i ||
|
|
104
|
+
return (r == null ? void 0 : r.get(n)) || void 0 || i || Li;
|
|
98
105
|
},
|
|
99
106
|
deleteAllTablePreferences: () => {
|
|
100
107
|
localStorage.removeItem(Je);
|
|
101
108
|
}
|
|
102
109
|
};
|
|
103
110
|
}
|
|
104
|
-
function
|
|
105
|
-
const { getAxiosInstance: t } =
|
|
111
|
+
function ct(e = {}) {
|
|
112
|
+
const { getAxiosInstance: t } = Fi();
|
|
106
113
|
return {
|
|
107
114
|
axiosInstance: t(e)
|
|
108
115
|
};
|
|
109
116
|
}
|
|
110
|
-
const
|
|
117
|
+
const Ri = {
|
|
111
118
|
actions: {
|
|
112
119
|
copyId: "Copy ID",
|
|
113
120
|
copied_id: 'Copied "{id}" to the clipboard',
|
|
114
121
|
copyToClipboard: "Copied successfully!",
|
|
115
122
|
copyToClipboardFailed: "Failed to copy to the clipboard"
|
|
116
123
|
}
|
|
117
|
-
},
|
|
124
|
+
}, Ki = {
|
|
118
125
|
message: "Are you sure you want to delete this {entityType}?",
|
|
119
126
|
messageWithName: "Are you sure you want to delete this {entityType} {entityName}?"
|
|
120
|
-
},
|
|
127
|
+
}, Ni = {
|
|
121
128
|
actions: {
|
|
122
129
|
viewConfiguration: "View configuration",
|
|
123
130
|
hideConfiguration: "Hide configuration",
|
|
@@ -136,13 +143,13 @@ const Ti = {
|
|
|
136
143
|
errors: {
|
|
137
144
|
edit: "The entity could not be edited at this time."
|
|
138
145
|
}
|
|
139
|
-
},
|
|
146
|
+
}, Mi = {
|
|
140
147
|
emptyState: {
|
|
141
148
|
noSearchResultsTitle: "No results found",
|
|
142
149
|
noSearchResultsMessage: "Please adjust the criteria and try again.",
|
|
143
150
|
noSearchResultsCtaText: "Clear"
|
|
144
151
|
}
|
|
145
|
-
},
|
|
152
|
+
}, Pi = {
|
|
146
153
|
title: "Configuration",
|
|
147
154
|
actions: {
|
|
148
155
|
copy: "Copy JSON"
|
|
@@ -179,10 +186,10 @@ const Ti = {
|
|
|
179
186
|
entryTitle: "Entry {index}",
|
|
180
187
|
structuredFormat: "Structured"
|
|
181
188
|
}
|
|
182
|
-
},
|
|
189
|
+
}, Di = {
|
|
183
190
|
learnMore: "Learn more",
|
|
184
191
|
pricingTitle: "Pricing: "
|
|
185
|
-
},
|
|
192
|
+
}, ji = {
|
|
186
193
|
filterButtonText: "Filter",
|
|
187
194
|
fieldLabel: "Filter by:",
|
|
188
195
|
inputPlaceholder: "Enter a value",
|
|
@@ -190,17 +197,17 @@ const Ti = {
|
|
|
190
197
|
applyButtonText: "Apply",
|
|
191
198
|
clearButtonText: "Clear",
|
|
192
199
|
clearAllButtonText: "Clear all filters"
|
|
193
|
-
},
|
|
200
|
+
}, Ui = {
|
|
194
201
|
errors: {
|
|
195
202
|
fetch: "Could not fetch available items",
|
|
196
203
|
invalid: "Please select a valid value"
|
|
197
204
|
}
|
|
198
|
-
},
|
|
205
|
+
}, qi = {
|
|
199
206
|
unexpected: "An unexpected error has occurred",
|
|
200
207
|
dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.'
|
|
201
|
-
},
|
|
208
|
+
}, Hi = {
|
|
202
209
|
utf8Name: "The name can be any string containing characters, letters, numbers, or the following characters: ., -, _, or ~. Do not use spaces."
|
|
203
|
-
},
|
|
210
|
+
}, Yi = {
|
|
204
211
|
enable: {
|
|
205
212
|
title: "Enable {entityType}",
|
|
206
213
|
message: "Are you sure you want to enable the {entityType} {entityName}?",
|
|
@@ -211,35 +218,35 @@ const Ti = {
|
|
|
211
218
|
message: "Are you sure you want to disable the {entityType} {entityName}?",
|
|
212
219
|
confirmText: "Yes, disable"
|
|
213
220
|
}
|
|
214
|
-
},
|
|
221
|
+
}, Vi = {
|
|
215
222
|
hint: {
|
|
216
223
|
konnect: "The {token} environment variable must be added first. See {link} for details.",
|
|
217
224
|
kongManager: "If your Admin API is secured, set up authentication following {link}."
|
|
218
225
|
},
|
|
219
226
|
documentation: "the documentation"
|
|
220
|
-
},
|
|
221
|
-
global:
|
|
222
|
-
deleteModal:
|
|
223
|
-
baseForm:
|
|
224
|
-
baseTable:
|
|
225
|
-
baseConfigCard:
|
|
226
|
-
emptyState:
|
|
227
|
-
filter:
|
|
228
|
-
debouncedFilter:
|
|
229
|
-
errors:
|
|
230
|
-
validationErrors:
|
|
231
|
-
toggleModal:
|
|
232
|
-
deckCodeBlock:
|
|
227
|
+
}, Wi = {
|
|
228
|
+
global: Ri,
|
|
229
|
+
deleteModal: Ki,
|
|
230
|
+
baseForm: Ni,
|
|
231
|
+
baseTable: Mi,
|
|
232
|
+
baseConfigCard: Pi,
|
|
233
|
+
emptyState: Di,
|
|
234
|
+
filter: ji,
|
|
235
|
+
debouncedFilter: Ui,
|
|
236
|
+
errors: qi,
|
|
237
|
+
validationErrors: Hi,
|
|
238
|
+
toggleModal: Yi,
|
|
239
|
+
deckCodeBlock: Vi
|
|
233
240
|
};
|
|
234
241
|
function Ve() {
|
|
235
|
-
const e =
|
|
242
|
+
const e = si("en-us", Wi);
|
|
236
243
|
return {
|
|
237
244
|
i18n: e,
|
|
238
|
-
i18nT:
|
|
245
|
+
i18nT: ci(e)
|
|
239
246
|
// Translation component <i18n-t>
|
|
240
247
|
};
|
|
241
248
|
}
|
|
242
|
-
function
|
|
249
|
+
function en() {
|
|
243
250
|
const e = (o, a) => (a == null ? void 0 : a[o]) ?? void 0, t = (o, a) => {
|
|
244
251
|
if (o.length !== a.length) return !1;
|
|
245
252
|
const l = /* @__PURE__ */ new Set([...o, ...a]);
|
|
@@ -281,17 +288,17 @@ function Xt() {
|
|
|
281
288
|
isValidUuid: (o) => o ? /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(o) : !1
|
|
282
289
|
};
|
|
283
290
|
}
|
|
284
|
-
function
|
|
291
|
+
function Ji(e, t, n, i = {
|
|
285
292
|
fetchedItemsKey: "data",
|
|
286
293
|
searchKeys: ["id"]
|
|
287
294
|
}) {
|
|
288
295
|
n || (n = "1000");
|
|
289
|
-
const { axiosInstance: r } =
|
|
296
|
+
const { axiosInstance: r } = ct(e.axiosRequestConfig), { i18n: { t: o } } = Ve(), { debounce: a } = Oi(), l = a(async (w) => {
|
|
290
297
|
await k(w);
|
|
291
298
|
}, 200), s = M(!1), d = M(""), c = M(""), u = M([]), m = M([]), f = M(void 0), h = _(() => {
|
|
292
299
|
const w = `${e.apiBaseUrl}${C(t)}`;
|
|
293
300
|
return e.app === "konnect" ? w.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" ? w.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : "") : w;
|
|
294
|
-
}), { isValidUuid: b } =
|
|
301
|
+
}), { isValidUuid: b } = en(), y = async () => {
|
|
295
302
|
try {
|
|
296
303
|
s.value = !0;
|
|
297
304
|
const { data: w } = await r.get(`${h.value}?size=${n}`);
|
|
@@ -359,13 +366,13 @@ function ji(e, t, n, i = {
|
|
|
359
366
|
debouncedQueryChange: l
|
|
360
367
|
};
|
|
361
368
|
}
|
|
362
|
-
function
|
|
369
|
+
function Gi(e, t) {
|
|
363
370
|
const n = C(t), i = _(
|
|
364
371
|
() => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${n}`) : new URL(n)
|
|
365
372
|
);
|
|
366
373
|
return i.value.search = "", (r) => `${i.value.href}/${r}`;
|
|
367
374
|
}
|
|
368
|
-
function
|
|
375
|
+
function zi() {
|
|
369
376
|
const { i18n: { t: e } } = Ve();
|
|
370
377
|
return {
|
|
371
378
|
getErrorFieldsFromError: (i) => {
|
|
@@ -437,7 +444,7 @@ function qi() {
|
|
|
437
444
|
}
|
|
438
445
|
};
|
|
439
446
|
}
|
|
440
|
-
function
|
|
447
|
+
function Qi(e) {
|
|
441
448
|
const t = window.location.origin, n = t.endsWith("/") ? t : `${t}/`;
|
|
442
449
|
try {
|
|
443
450
|
const i = e.join("/"), r = `${n}${i}`, o = e.some((l) => l.trim() === "");
|
|
@@ -448,7 +455,7 @@ function Hi(e) {
|
|
|
448
455
|
return console.warn("Failed to build valid URL:", i), "";
|
|
449
456
|
}
|
|
450
457
|
}
|
|
451
|
-
function
|
|
458
|
+
function tn(e, t) {
|
|
452
459
|
const n = _(() => {
|
|
453
460
|
const r = ye(e);
|
|
454
461
|
return r.app === "konnect" || !!r.isExactMatch;
|
|
@@ -468,9 +475,9 @@ function en(e, t) {
|
|
|
468
475
|
}
|
|
469
476
|
};
|
|
470
477
|
}
|
|
471
|
-
const
|
|
472
|
-
function
|
|
473
|
-
const i = M(!0), r = ye(e), { axiosInstance: o } =
|
|
478
|
+
const At = /* @__PURE__ */ new Map();
|
|
479
|
+
function Zi(e, t, n) {
|
|
480
|
+
const i = M(!0), r = ye(e), { axiosInstance: o } = ct(r.axiosRequestConfig), a = tn(e, t), l = M({
|
|
474
481
|
status: he.Idle
|
|
475
482
|
}), s = async (u) => {
|
|
476
483
|
var f;
|
|
@@ -516,79 +523,79 @@ function Yi(e, t, n) {
|
|
|
516
523
|
error: h.response ? h : { response: h }
|
|
517
524
|
}, b);
|
|
518
525
|
}
|
|
519
|
-
}, d = r.cacheIdentifier, c =
|
|
526
|
+
}, d = r.cacheIdentifier, c = nn(d);
|
|
520
527
|
return { fetcher: s, fetcherState: l, fetcherCacheKey: c };
|
|
521
528
|
}
|
|
522
|
-
function
|
|
529
|
+
function nn(e) {
|
|
523
530
|
if (e) {
|
|
524
|
-
let t =
|
|
525
|
-
return t || (t = M(1),
|
|
531
|
+
let t = At.get(e);
|
|
532
|
+
return t || (t = M(1), At.set(e, t)), t;
|
|
526
533
|
}
|
|
527
534
|
return M(1);
|
|
528
535
|
}
|
|
529
|
-
function
|
|
536
|
+
function Xi() {
|
|
530
537
|
const e = (i, r = "_") => i ? i.split(r).map((o) => o.toLowerCase() === "id" ? o.toUpperCase() : o.charAt(0).toUpperCase() + o.substring(1)).join(" ") : "", t = /(?:^|[\s-:'"])\w/g;
|
|
531
538
|
return {
|
|
532
539
|
capitalize: (i) => i ? i.replace(t, (r) => r.toUpperCase()) : "",
|
|
533
540
|
convertKeyToTitle: e
|
|
534
541
|
};
|
|
535
542
|
}
|
|
536
|
-
const
|
|
543
|
+
const rn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, wt = (e) => {
|
|
537
544
|
if (typeof e != "string")
|
|
538
545
|
throw new TypeError("Invalid argument expected string");
|
|
539
|
-
const t = e.match(
|
|
546
|
+
const t = e.match(rn);
|
|
540
547
|
if (!t)
|
|
541
548
|
throw new Error(`Invalid argument not valid semver ('${e}' received)`);
|
|
542
549
|
return t.shift(), t;
|
|
543
|
-
},
|
|
550
|
+
}, _t = (e) => e === "*" || e === "x" || e === "X", St = (e) => {
|
|
544
551
|
const t = parseInt(e, 10);
|
|
545
552
|
return isNaN(t) ? e : t;
|
|
546
|
-
},
|
|
547
|
-
if (
|
|
553
|
+
}, er = (e, t) => typeof e != typeof t ? [String(e), String(t)] : [e, t], tr = (e, t) => {
|
|
554
|
+
if (_t(e) || _t(t))
|
|
548
555
|
return 0;
|
|
549
|
-
const [n, i] =
|
|
556
|
+
const [n, i] = er(St(e), St(t));
|
|
550
557
|
return n > i ? 1 : n < i ? -1 : 0;
|
|
551
|
-
},
|
|
558
|
+
}, $t = (e, t) => {
|
|
552
559
|
for (let n = 0; n < Math.max(e.length, t.length); n++) {
|
|
553
|
-
const i =
|
|
560
|
+
const i = tr(e[n] || "0", t[n] || "0");
|
|
554
561
|
if (i !== 0)
|
|
555
562
|
return i;
|
|
556
563
|
}
|
|
557
564
|
return 0;
|
|
558
|
-
},
|
|
559
|
-
const n =
|
|
560
|
-
return a !== 0 ? a : r && o ?
|
|
561
|
-
},
|
|
562
|
-
|
|
563
|
-
const i =
|
|
564
|
-
return
|
|
565
|
-
},
|
|
565
|
+
}, nr = (e, t) => {
|
|
566
|
+
const n = wt(e), i = wt(t), r = n.pop(), o = i.pop(), a = $t(n, i);
|
|
567
|
+
return a !== 0 ? a : r && o ? $t(r.split("."), o.split(".")) : r || o ? r ? -1 : 1 : 0;
|
|
568
|
+
}, Tt = (e, t, n) => {
|
|
569
|
+
ir(n);
|
|
570
|
+
const i = nr(e, t);
|
|
571
|
+
return an[n].includes(i);
|
|
572
|
+
}, an = {
|
|
566
573
|
">": [1],
|
|
567
574
|
">=": [0, 1],
|
|
568
575
|
"=": [0],
|
|
569
576
|
"<=": [-1, 0],
|
|
570
577
|
"<": [-1],
|
|
571
578
|
"!=": [-1, 1]
|
|
572
|
-
},
|
|
579
|
+
}, Et = Object.keys(an), ir = (e) => {
|
|
573
580
|
if (typeof e != "string")
|
|
574
581
|
throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
|
|
575
|
-
if (
|
|
576
|
-
throw new Error(`Invalid operator, expected one of ${
|
|
577
|
-
},
|
|
578
|
-
function
|
|
582
|
+
if (Et.indexOf(e) === -1)
|
|
583
|
+
throw new Error(`Invalid operator, expected one of ${Et.join("|")}`);
|
|
584
|
+
}, rr = (e) => typeof e == "string" && /^[v\d]/.test(e) && rn.test(e);
|
|
585
|
+
function ar(e) {
|
|
579
586
|
const { gatewayInfo: t, supportedRange: n } = e;
|
|
580
587
|
if (!t)
|
|
581
588
|
return !0;
|
|
582
589
|
const { edition: i, version: r } = t;
|
|
583
|
-
if (!
|
|
590
|
+
if (!rr(r))
|
|
584
591
|
return console.error("Invalid version"), !1;
|
|
585
592
|
const o = n[i];
|
|
586
593
|
if (!o)
|
|
587
594
|
return !1;
|
|
588
595
|
const [a, l] = o;
|
|
589
|
-
return !(a &&
|
|
596
|
+
return !(a && Tt(r, a, "<") || l && Tt(r, l, ">"));
|
|
590
597
|
}
|
|
591
|
-
function
|
|
598
|
+
function or(e) {
|
|
592
599
|
const t = M(0), n = M(0), i = M(!1);
|
|
593
600
|
return xe(e, (o) => {
|
|
594
601
|
o && !i.value && (t.value = o.offsetWidth, n.value = o.scrollWidth, i.value = !0);
|
|
@@ -596,20 +603,20 @@ function Xi(e) {
|
|
|
596
603
|
isTruncated: _(() => t.value < n.value)
|
|
597
604
|
};
|
|
598
605
|
}
|
|
599
|
-
function
|
|
606
|
+
function lr() {
|
|
600
607
|
const { i18n: { t: e } } = Ve();
|
|
601
608
|
return {
|
|
602
609
|
utf8Name: (n) => /^[\p{N}\p{L}.\-_~]*$/u.test(n) ? "" : e("validationErrors.utf8Name")
|
|
603
610
|
};
|
|
604
611
|
}
|
|
605
|
-
const
|
|
606
|
-
|
|
607
|
-
},
|
|
612
|
+
const et = /* @__PURE__ */ Symbol("schema"), sr = (e) => {
|
|
613
|
+
Wt(et, e);
|
|
614
|
+
}, cr = (e) => {
|
|
608
615
|
var r, o;
|
|
609
|
-
const t =
|
|
610
|
-
return
|
|
616
|
+
const t = ot(et, void 0), n = (o = (r = t == null ? void 0 : t.value) == null ? void 0 : r.fields) == null ? void 0 : o.find((a) => Object.keys(a)[0] === e), i = ti(n == null ? void 0 : n[e]);
|
|
617
|
+
return Wt(et, i), i;
|
|
611
618
|
};
|
|
612
|
-
function
|
|
619
|
+
function ur(e) {
|
|
613
620
|
let t = "";
|
|
614
621
|
const n = M(!1), i = M(null), r = _(() => {
|
|
615
622
|
let a;
|
|
@@ -625,27 +632,27 @@ function ir(e) {
|
|
|
625
632
|
};
|
|
626
633
|
}
|
|
627
634
|
const z = {
|
|
628
|
-
useAxios:
|
|
629
|
-
useDebouncedFilter:
|
|
630
|
-
useDeleteUrlBuilder:
|
|
631
|
-
useErrors:
|
|
632
|
-
useExternalLinkCreator:
|
|
633
|
-
useFetcher:
|
|
634
|
-
useFetcherCacheKey:
|
|
635
|
-
useFetchUrlBuilder:
|
|
636
|
-
useHelpers:
|
|
637
|
-
useStringHelpers:
|
|
635
|
+
useAxios: ct,
|
|
636
|
+
useDebouncedFilter: Ji,
|
|
637
|
+
useDeleteUrlBuilder: Gi,
|
|
638
|
+
useErrors: zi,
|
|
639
|
+
useExternalLinkCreator: Qi,
|
|
640
|
+
useFetcher: Zi,
|
|
641
|
+
useFetcherCacheKey: nn,
|
|
642
|
+
useFetchUrlBuilder: tn,
|
|
643
|
+
useHelpers: en,
|
|
644
|
+
useStringHelpers: Xi,
|
|
638
645
|
useI18n: Ve,
|
|
639
|
-
useGatewayFeatureSupported:
|
|
640
|
-
useTruncationDetector:
|
|
641
|
-
useValidators:
|
|
642
|
-
useSchemaProvider:
|
|
643
|
-
useSubSchema:
|
|
644
|
-
useTableState:
|
|
645
|
-
},
|
|
646
|
+
useGatewayFeatureSupported: ar,
|
|
647
|
+
useTruncationDetector: or,
|
|
648
|
+
useValidators: lr,
|
|
649
|
+
useSchemaProvider: sr,
|
|
650
|
+
useSubSchema: cr,
|
|
651
|
+
useTableState: ur
|
|
652
|
+
}, dr = {
|
|
646
653
|
key: 0,
|
|
647
654
|
class: "config-card-fieldset-title"
|
|
648
|
-
},
|
|
655
|
+
}, fr = /* @__PURE__ */ Q({
|
|
649
656
|
__name: "JsonCardItem",
|
|
650
657
|
props: {
|
|
651
658
|
item: {
|
|
@@ -669,14 +676,14 @@ const z = {
|
|
|
669
676
|
var s;
|
|
670
677
|
return t.isArrayItem ? (s = o.value) != null && s.name ? i(o.value.name, "_") : n("baseConfigCard.general.entryTitle", { index: t.index }) : "";
|
|
671
678
|
});
|
|
672
|
-
return (s, d) => (g(),
|
|
679
|
+
return (s, d) => (g(), L(qe(e.isArrayItem ? "fieldset" : "div"), {
|
|
673
680
|
class: fe(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
|
|
674
681
|
}, {
|
|
675
682
|
default: x(() => [
|
|
676
|
-
e.isArrayItem ? (g(), S("legend",
|
|
677
|
-
|
|
683
|
+
e.isArrayItem ? (g(), S("legend", dr, [
|
|
684
|
+
B("b", null, I(l.value), 1)
|
|
678
685
|
])) : D("", !0),
|
|
679
|
-
(g(!0), S(pe, null, de(Object.keys(a.value), (c, u) => (g(),
|
|
686
|
+
(g(!0), S(pe, null, de(Object.keys(a.value), (c, u) => (g(), L(ln, {
|
|
680
687
|
key: `${r.value}-property-${u}`,
|
|
681
688
|
item: {
|
|
682
689
|
key: c,
|
|
@@ -693,7 +700,7 @@ const z = {
|
|
|
693
700
|
for (const [i, r] of t)
|
|
694
701
|
n[i] = r;
|
|
695
702
|
return n;
|
|
696
|
-
},
|
|
703
|
+
}, on = /* @__PURE__ */ ce(fr, [["__scopeId", "data-v-dc1e39a1"]]), pr = /* @__PURE__ */ Q({
|
|
697
704
|
__name: "InternalLinkItem",
|
|
698
705
|
props: {
|
|
699
706
|
item: {
|
|
@@ -720,7 +727,7 @@ const z = {
|
|
|
720
727
|
]);
|
|
721
728
|
};
|
|
722
729
|
}
|
|
723
|
-
}),
|
|
730
|
+
}), mr = /* @__PURE__ */ ce(pr, [["__scopeId", "data-v-2feb8c2e"]]), gr = /* @__PURE__ */ Q({
|
|
724
731
|
__name: "StatusBadge",
|
|
725
732
|
props: {
|
|
726
733
|
status: {
|
|
@@ -732,7 +739,7 @@ const z = {
|
|
|
732
739
|
const { i18n: { t } } = z.useI18n();
|
|
733
740
|
return (n, i) => {
|
|
734
741
|
const r = U("KBadge");
|
|
735
|
-
return g(),
|
|
742
|
+
return g(), L(r, {
|
|
736
743
|
appearance: e.status ? "success" : "neutral"
|
|
737
744
|
}, {
|
|
738
745
|
default: x(() => [
|
|
@@ -742,32 +749,32 @@ const z = {
|
|
|
742
749
|
}, 8, ["appearance"]);
|
|
743
750
|
};
|
|
744
751
|
}
|
|
745
|
-
}),
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
}
|
|
763
|
-
|
|
764
|
-
e.innerHTML =
|
|
752
|
+
}), hr = "#0044f4", yr = "#e0e4ea", vr = "#afb7c5", br = "#0044f4", kr = "1px", Cr = "16px", xr = "20px";
|
|
753
|
+
let Ge = null;
|
|
754
|
+
function Ar() {
|
|
755
|
+
return Ge || (Ge = mi({
|
|
756
|
+
langs: [hi, yi, vi, bi, ki],
|
|
757
|
+
themes: [Ci, xi],
|
|
758
|
+
engine: gi(),
|
|
759
|
+
langAlias: {
|
|
760
|
+
bash: "shellscript",
|
|
761
|
+
sh: "shellscript",
|
|
762
|
+
shell: "shellscript",
|
|
763
|
+
zsh: "shellscript"
|
|
764
|
+
}
|
|
765
|
+
})), Ge;
|
|
766
|
+
}
|
|
767
|
+
function wr(e, t) {
|
|
768
|
+
return Ar().codeToHtml(e, t);
|
|
769
|
+
}
|
|
770
|
+
function Ie({ codeElement: e, code: t, language: n, theme: i }) {
|
|
771
|
+
e.innerHTML = wr(t, { lang: n, theme: i === "dark" ? "catppuccin-mocha" : "catppuccin-latte", structure: "inline" });
|
|
765
772
|
}
|
|
766
|
-
const
|
|
773
|
+
const _r = { class: "config-card-details-row" }, Sr = ["data-testid"], $r = ["data-testid"], Tr = ["data-testid"], Er = ["data-testid"], Ir = { key: 1 }, Fr = ["data-testid"], Or = ["data-testid"], Lr = ["data-testid"], Br = ["data-testid"], Rr = {
|
|
767
774
|
name: "ConfigCardItem",
|
|
768
|
-
components: { JsonCardItem:
|
|
769
|
-
},
|
|
770
|
-
...
|
|
775
|
+
components: { JsonCardItem: on, StatusBadge: gr, InternalLinkItem: mr }
|
|
776
|
+
}, Kr = /* @__PURE__ */ Q({
|
|
777
|
+
...Rr,
|
|
771
778
|
props: {
|
|
772
779
|
item: {
|
|
773
780
|
type: Object,
|
|
@@ -786,13 +793,13 @@ const vr = { class: "config-card-details-row" }, br = ["data-testid"], kr = ["da
|
|
|
786
793
|
},
|
|
787
794
|
emits: ["navigation-click"],
|
|
788
795
|
setup(e, { emit: t }) {
|
|
789
|
-
|
|
790
|
-
v550201a4: m.value ? "none" : `solid ${C(
|
|
796
|
+
Jt((Y) => ({
|
|
797
|
+
v550201a4: m.value ? "none" : `solid ${C(kr)} ${C(yr)}`,
|
|
791
798
|
v2eeb3c61: u.value && d.value ? "block" : "flex",
|
|
792
799
|
v77ca94df: u.value && d.value ? "100%" : n.slim ? "50%" : "25%",
|
|
793
800
|
v77ccdaba: u.value && d.value ? "100%" : n.slim ? "50%" : "75%"
|
|
794
801
|
}));
|
|
795
|
-
const n = e, i = t, r =
|
|
802
|
+
const n = e, i = t, r = ni(), o = He(), { i18n: { t: a, formatIsoDate: l, formatUnixTimeStamp: s } } = z.useI18n(), d = _(() => n.item.value !== void 0 && n.item.value !== null && n.item.value !== ""), c = _(() => !!(n.item.tooltip || o["label-tooltip"])), u = _(() => n.item.type === G.Json || n.item.type === G.JsonArray), m = _(() => n.item.type === G.JsonArray), f = z.useSubSchema(n.item.key), h = _(() => {
|
|
796
803
|
var Y;
|
|
797
804
|
return n.item.type ? n.item.type : (Y = f == null ? void 0 : f.value) != null && Y.encrypted ? G.Redacted : void 0;
|
|
798
805
|
}), b = _(() => {
|
|
@@ -930,8 +937,8 @@ const vr = { class: "config-card-details-row" }, br = ["data-testid"], kr = ["da
|
|
|
930
937
|
}), y = M(), $ = M(), { isTruncated: k } = z.useTruncationDetector(y), { isTruncated: w } = z.useTruncationDetector($);
|
|
931
938
|
return (Y, J) => {
|
|
932
939
|
const R = U("KTooltip"), F = U("KLabel"), E = U("KBadge"), v = U("KCopy");
|
|
933
|
-
return g(), S("div",
|
|
934
|
-
|
|
940
|
+
return g(), S("div", _r, [
|
|
941
|
+
B("div", {
|
|
935
942
|
class: "config-card-details-label",
|
|
936
943
|
"data-testid": `${e.item.key}-label`
|
|
937
944
|
}, [
|
|
@@ -942,7 +949,7 @@ const vr = { class: "config-card-details-row" }, br = ["data-testid"], kr = ["da
|
|
|
942
949
|
text: C(k) ? e.item.label : ""
|
|
943
950
|
}, {
|
|
944
951
|
default: x(() => [
|
|
945
|
-
|
|
952
|
+
B("span", {
|
|
946
953
|
ref_key: "labelContent",
|
|
947
954
|
ref: y,
|
|
948
955
|
class: "label-content"
|
|
@@ -956,34 +963,34 @@ const vr = { class: "config-card-details-row" }, br = ["data-testid"], kr = ["da
|
|
|
956
963
|
c.value ? {
|
|
957
964
|
name: "tooltip",
|
|
958
965
|
fn: x(() => [
|
|
959
|
-
|
|
966
|
+
B("div", {
|
|
960
967
|
"data-testid": `${e.item.key}-label-tooltip`
|
|
961
968
|
}, [
|
|
962
969
|
j(Y.$slots, "label-tooltip", {}, () => [
|
|
963
970
|
q(I(e.item.tooltip), 1)
|
|
964
971
|
], !0)
|
|
965
|
-
], 8,
|
|
972
|
+
], 8, $r)
|
|
966
973
|
]),
|
|
967
974
|
key: "0"
|
|
968
975
|
} : void 0
|
|
969
976
|
]), 1024)
|
|
970
977
|
], !0)
|
|
971
|
-
], 8,
|
|
972
|
-
|
|
978
|
+
], 8, Sr),
|
|
979
|
+
B("div", {
|
|
973
980
|
class: "config-card-details-value",
|
|
974
981
|
"data-testid": `${e.item.key}-property-value`
|
|
975
982
|
}, [
|
|
976
983
|
j(Y.$slots, e.item.key, {
|
|
977
984
|
rowValue: e.item.value
|
|
978
985
|
}, () => [
|
|
979
|
-
d.value ? (g(), S("div",
|
|
980
|
-
(g(),
|
|
986
|
+
d.value ? (g(), S("div", Ir, [
|
|
987
|
+
(g(), L(qe(b.value.tag), ii(ri(b.value.attrs)), {
|
|
981
988
|
default: x(() => [
|
|
982
989
|
b.value.additionalComponent === "KBadge" ? (g(), S("div", {
|
|
983
990
|
key: 0,
|
|
984
991
|
"data-testid": `${e.item.key}-badge-tags`
|
|
985
992
|
}, [
|
|
986
|
-
(g(!0), S(pe, null, de(e.item.value, (A, p) => (g(),
|
|
993
|
+
(g(!0), S(pe, null, de(e.item.value, (A, p) => (g(), L(E, {
|
|
987
994
|
key: `${e.item.key}-badge-tag-${p}`,
|
|
988
995
|
class: "config-badge",
|
|
989
996
|
"data-testid": `${e.item.key}-badge-tag-${p}`,
|
|
@@ -995,24 +1002,24 @@ const vr = { class: "config-card-details-row" }, br = ["data-testid"], kr = ["da
|
|
|
995
1002
|
]),
|
|
996
1003
|
_: 2
|
|
997
1004
|
}, 1032, ["data-testid", "tooltip"]))), 128))
|
|
998
|
-
], 8,
|
|
1005
|
+
], 8, Fr)) : b.value.additionalComponent === "KCopy" ? (g(), S("div", {
|
|
999
1006
|
key: 1,
|
|
1000
1007
|
class: "copy-uuid-array",
|
|
1001
1008
|
"data-testid": `${e.item.key}-copy-uuid-array`
|
|
1002
1009
|
}, [
|
|
1003
|
-
(g(!0), S(pe, null, de(e.item.value, (A, p) => (g(),
|
|
1010
|
+
(g(!0), S(pe, null, de(e.item.value, (A, p) => (g(), L(v, Gt({ ref_for: !0 }, b.value.childAttrs, {
|
|
1004
1011
|
key: `${e.item.key}-copy-uuid-${p}`,
|
|
1005
1012
|
"data-testid": `${e.item.key}-copy-uuid-${p}`,
|
|
1006
1013
|
text: A
|
|
1007
1014
|
}), null, 16, ["data-testid", "text"]))), 128))
|
|
1008
|
-
], 8,
|
|
1015
|
+
], 8, Or)) : b.value.additionalComponent === "KMethodBadge" ? (g(), S("div", {
|
|
1009
1016
|
key: 2,
|
|
1010
1017
|
class: "method-badge-array",
|
|
1011
1018
|
"data-testid": `${e.item.key}-badge-methods`
|
|
1012
1019
|
}, [
|
|
1013
|
-
(g(!0), S(pe, null, de(e.item.value, (A, p) => (g(),
|
|
1020
|
+
(g(!0), S(pe, null, de(e.item.value, (A, p) => (g(), L(E, {
|
|
1014
1021
|
key: `${e.item.key}-badge-method-${p}`,
|
|
1015
|
-
appearance: Object.values(C(
|
|
1022
|
+
appearance: Object.values(C(ui)).includes(A.toLowerCase()) ? A.toLowerCase() : "custom",
|
|
1016
1023
|
class: "config-badge",
|
|
1017
1024
|
"data-testid": `${e.item.key}-badge-method-${p}`
|
|
1018
1025
|
}, {
|
|
@@ -1021,22 +1028,22 @@ const vr = { class: "config-card-details-row" }, br = ["data-testid"], kr = ["da
|
|
|
1021
1028
|
]),
|
|
1022
1029
|
_: 2
|
|
1023
1030
|
}, 1032, ["appearance", "data-testid"]))), 128))
|
|
1024
|
-
], 8,
|
|
1031
|
+
], 8, Lr)) : b.value.additionalComponent === "JsonCardItem" ? (g(), S("div", {
|
|
1025
1032
|
key: 3,
|
|
1026
1033
|
"data-testid": `${n.item.key}-json-array-content`
|
|
1027
1034
|
}, [
|
|
1028
|
-
(g(!0), S(pe, null, de(e.item.value, (A, p) => (g(),
|
|
1035
|
+
(g(!0), S(pe, null, de(e.item.value, (A, p) => (g(), L(on, {
|
|
1029
1036
|
key: `json-array-item-${p}`,
|
|
1030
1037
|
index: Number(p),
|
|
1031
1038
|
"is-array-item": "",
|
|
1032
1039
|
item: A
|
|
1033
1040
|
}, null, 8, ["index", "item"]))), 128))
|
|
1034
|
-
], 8,
|
|
1041
|
+
], 8, Br)) : (g(), L(R, {
|
|
1035
1042
|
key: 4,
|
|
1036
1043
|
text: C(w) ? e.item.value : ""
|
|
1037
1044
|
}, {
|
|
1038
1045
|
default: x(() => [
|
|
1039
|
-
|
|
1046
|
+
B("span", {
|
|
1040
1047
|
ref_key: "textContent",
|
|
1041
1048
|
ref: $,
|
|
1042
1049
|
class: fe(["attrs-data-text", { truncated: e.truncated }])
|
|
@@ -1050,16 +1057,16 @@ const vr = { class: "config-card-details-row" }, br = ["data-testid"], kr = ["da
|
|
|
1050
1057
|
])) : (g(), S("div", {
|
|
1051
1058
|
key: 0,
|
|
1052
1059
|
"data-testid": `${e.item.key}-no-value`
|
|
1053
|
-
}, " – ", 8,
|
|
1060
|
+
}, " – ", 8, Er))
|
|
1054
1061
|
], !0)
|
|
1055
|
-
], 8,
|
|
1062
|
+
], 8, Tr)
|
|
1056
1063
|
]);
|
|
1057
1064
|
};
|
|
1058
1065
|
}
|
|
1059
|
-
}),
|
|
1066
|
+
}), ln = /* @__PURE__ */ ce(Kr, [["__scopeId", "data-v-cd250044"]]), Nr = { class: "json-config config-card-code-block" }, Mr = {
|
|
1060
1067
|
key: 0,
|
|
1061
1068
|
class: "json-endpoint"
|
|
1062
|
-
},
|
|
1069
|
+
}, sn = /* @__PURE__ */ Q({
|
|
1063
1070
|
__name: "JsonCodeBlock",
|
|
1064
1071
|
props: {
|
|
1065
1072
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -1087,7 +1094,7 @@ const vr = { class: "config-card-details-row" }, br = ["data-testid"], kr = ["da
|
|
|
1087
1094
|
}
|
|
1088
1095
|
},
|
|
1089
1096
|
setup(e) {
|
|
1090
|
-
|
|
1097
|
+
Jt((r) => ({
|
|
1091
1098
|
v58418ff6: `${i.value}ch`
|
|
1092
1099
|
}));
|
|
1093
1100
|
const t = e, n = _(() => t.entityRecord), i = _(() => {
|
|
@@ -1099,8 +1106,8 @@ const vr = { class: "config-card-details-row" }, br = ["data-testid"], kr = ["da
|
|
|
1099
1106
|
});
|
|
1100
1107
|
return (r, o) => {
|
|
1101
1108
|
const a = U("KBadge"), l = U("KCodeBlock");
|
|
1102
|
-
return g(), S("div",
|
|
1103
|
-
t.fetcherUrl ? (g(), S("div",
|
|
1109
|
+
return g(), S("div", Nr, [
|
|
1110
|
+
t.fetcherUrl ? (g(), S("div", Mr, [
|
|
1104
1111
|
N(a, {
|
|
1105
1112
|
appearance: t.requestMethod
|
|
1106
1113
|
}, {
|
|
@@ -1117,7 +1124,7 @@ const vr = { class: "config-card-details-row" }, br = ["data-testid"], kr = ["da
|
|
|
1117
1124
|
theme: "dark"
|
|
1118
1125
|
}, null, 8, ["code"])
|
|
1119
1126
|
])) : D("", !0),
|
|
1120
|
-
t.entityRecord ? (g(),
|
|
1127
|
+
t.entityRecord ? (g(), L(l, {
|
|
1121
1128
|
key: 1,
|
|
1122
1129
|
id: "json-codeblock",
|
|
1123
1130
|
class: fe({ "json-content": t.fetcherUrl }),
|
|
@@ -1131,55 +1138,55 @@ const vr = { class: "config-card-details-row" }, br = ["data-testid"], kr = ["da
|
|
|
1131
1138
|
}
|
|
1132
1139
|
});
|
|
1133
1140
|
/*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */
|
|
1134
|
-
function
|
|
1141
|
+
function cn(e) {
|
|
1135
1142
|
return typeof e > "u" || e === null;
|
|
1136
1143
|
}
|
|
1137
|
-
function
|
|
1144
|
+
function Pr(e) {
|
|
1138
1145
|
return typeof e == "object" && e !== null;
|
|
1139
1146
|
}
|
|
1140
|
-
function
|
|
1141
|
-
return Array.isArray(e) ? e :
|
|
1147
|
+
function Dr(e) {
|
|
1148
|
+
return Array.isArray(e) ? e : cn(e) ? [] : [e];
|
|
1142
1149
|
}
|
|
1143
|
-
function
|
|
1150
|
+
function jr(e, t) {
|
|
1144
1151
|
var n, i, r, o;
|
|
1145
1152
|
if (t)
|
|
1146
1153
|
for (o = Object.keys(t), n = 0, i = o.length; n < i; n += 1)
|
|
1147
1154
|
r = o[n], e[r] = t[r];
|
|
1148
1155
|
return e;
|
|
1149
1156
|
}
|
|
1150
|
-
function
|
|
1157
|
+
function Ur(e, t) {
|
|
1151
1158
|
var n = "", i;
|
|
1152
1159
|
for (i = 0; i < t; i += 1)
|
|
1153
1160
|
n += e;
|
|
1154
1161
|
return n;
|
|
1155
1162
|
}
|
|
1156
|
-
function
|
|
1163
|
+
function qr(e) {
|
|
1157
1164
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
1158
1165
|
}
|
|
1159
|
-
var
|
|
1160
|
-
isNothing:
|
|
1161
|
-
isObject:
|
|
1162
|
-
toArray:
|
|
1163
|
-
repeat:
|
|
1164
|
-
isNegativeZero:
|
|
1165
|
-
extend:
|
|
1166
|
+
var Hr = cn, Yr = Pr, Vr = Dr, Wr = Ur, Jr = qr, Gr = jr, te = {
|
|
1167
|
+
isNothing: Hr,
|
|
1168
|
+
isObject: Yr,
|
|
1169
|
+
toArray: Vr,
|
|
1170
|
+
repeat: Wr,
|
|
1171
|
+
isNegativeZero: Jr,
|
|
1172
|
+
extend: Gr
|
|
1166
1173
|
};
|
|
1167
|
-
function
|
|
1174
|
+
function un(e, t) {
|
|
1168
1175
|
var n = "", i = e.reason || "(unknown reason)";
|
|
1169
1176
|
return e.mark ? (e.mark.name && (n += 'in "' + e.mark.name + '" '), n += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !t && e.mark.snippet && (n += `
|
|
1170
1177
|
|
|
1171
1178
|
` + e.mark.snippet), i + " " + n) : i;
|
|
1172
1179
|
}
|
|
1173
|
-
function
|
|
1174
|
-
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message =
|
|
1180
|
+
function Le(e, t) {
|
|
1181
|
+
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message = un(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
|
|
1175
1182
|
}
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
return this.name + ": " +
|
|
1183
|
+
Le.prototype = Object.create(Error.prototype);
|
|
1184
|
+
Le.prototype.constructor = Le;
|
|
1185
|
+
Le.prototype.toString = function(t) {
|
|
1186
|
+
return this.name + ": " + un(this, t);
|
|
1180
1187
|
};
|
|
1181
|
-
var se =
|
|
1182
|
-
function
|
|
1188
|
+
var se = Le;
|
|
1189
|
+
function ze(e, t, n, i, r) {
|
|
1183
1190
|
var o = "", a = "", l = Math.floor(r / 2) - 1;
|
|
1184
1191
|
return i - t > l && (o = " ... ", t = i - l + o.length), n - i > l && (a = " ...", n = i + l - a.length), {
|
|
1185
1192
|
str: o + e.slice(t, n).replace(/\t/g, "→") + a,
|
|
@@ -1187,10 +1194,10 @@ function Ge(e, t, n, i, r) {
|
|
|
1187
1194
|
// relative position
|
|
1188
1195
|
};
|
|
1189
1196
|
}
|
|
1190
|
-
function
|
|
1197
|
+
function Qe(e, t) {
|
|
1191
1198
|
return te.repeat(" ", t - e.length) + e;
|
|
1192
1199
|
}
|
|
1193
|
-
function
|
|
1200
|
+
function zr(e, t) {
|
|
1194
1201
|
if (t = Object.create(t || null), !e.buffer) return null;
|
|
1195
1202
|
t.maxLength || (t.maxLength = 79), typeof t.indent != "number" && (t.indent = 1), typeof t.linesBefore != "number" && (t.linesBefore = 3), typeof t.linesAfter != "number" && (t.linesAfter = 2);
|
|
1196
1203
|
for (var n = /\r?\n|\r|\0/g, i = [0], r = [], o, a = -1; o = n.exec(e.buffer); )
|
|
@@ -1198,28 +1205,28 @@ function qr(e, t) {
|
|
|
1198
1205
|
a < 0 && (a = i.length - 1);
|
|
1199
1206
|
var l = "", s, d, c = Math.min(e.line + t.linesAfter, r.length).toString().length, u = t.maxLength - (t.indent + c + 3);
|
|
1200
1207
|
for (s = 1; s <= t.linesBefore && !(a - s < 0); s++)
|
|
1201
|
-
d =
|
|
1208
|
+
d = ze(
|
|
1202
1209
|
e.buffer,
|
|
1203
1210
|
i[a - s],
|
|
1204
1211
|
r[a - s],
|
|
1205
1212
|
e.position - (i[a] - i[a - s]),
|
|
1206
1213
|
u
|
|
1207
|
-
), l = te.repeat(" ", t.indent) +
|
|
1214
|
+
), l = te.repeat(" ", t.indent) + Qe((e.line - s + 1).toString(), c) + " | " + d.str + `
|
|
1208
1215
|
` + l;
|
|
1209
|
-
for (d =
|
|
1216
|
+
for (d = ze(e.buffer, i[a], r[a], e.position, u), l += te.repeat(" ", t.indent) + Qe((e.line + 1).toString(), c) + " | " + d.str + `
|
|
1210
1217
|
`, l += te.repeat("-", t.indent + c + 3 + d.pos) + `^
|
|
1211
1218
|
`, s = 1; s <= t.linesAfter && !(a + s >= r.length); s++)
|
|
1212
|
-
d =
|
|
1219
|
+
d = ze(
|
|
1213
1220
|
e.buffer,
|
|
1214
1221
|
i[a + s],
|
|
1215
1222
|
r[a + s],
|
|
1216
1223
|
e.position - (i[a] - i[a + s]),
|
|
1217
1224
|
u
|
|
1218
|
-
), l += te.repeat(" ", t.indent) +
|
|
1225
|
+
), l += te.repeat(" ", t.indent) + Qe((e.line + s + 1).toString(), c) + " | " + d.str + `
|
|
1219
1226
|
`;
|
|
1220
1227
|
return l.replace(/\n$/, "");
|
|
1221
1228
|
}
|
|
1222
|
-
var
|
|
1229
|
+
var Qr = zr, Zr = [
|
|
1223
1230
|
"kind",
|
|
1224
1231
|
"multi",
|
|
1225
1232
|
"resolve",
|
|
@@ -1230,12 +1237,12 @@ var Hr = qr, Yr = [
|
|
|
1230
1237
|
"representName",
|
|
1231
1238
|
"defaultStyle",
|
|
1232
1239
|
"styleAliases"
|
|
1233
|
-
],
|
|
1240
|
+
], Xr = [
|
|
1234
1241
|
"scalar",
|
|
1235
1242
|
"sequence",
|
|
1236
1243
|
"mapping"
|
|
1237
1244
|
];
|
|
1238
|
-
function
|
|
1245
|
+
function ea(e) {
|
|
1239
1246
|
var t = {};
|
|
1240
1247
|
return e !== null && Object.keys(e).forEach(function(n) {
|
|
1241
1248
|
e[n].forEach(function(i) {
|
|
@@ -1243,19 +1250,19 @@ function Wr(e) {
|
|
|
1243
1250
|
});
|
|
1244
1251
|
}), t;
|
|
1245
1252
|
}
|
|
1246
|
-
function
|
|
1253
|
+
function ta(e, t) {
|
|
1247
1254
|
if (t = t || {}, Object.keys(t).forEach(function(n) {
|
|
1248
|
-
if (
|
|
1255
|
+
if (Zr.indexOf(n) === -1)
|
|
1249
1256
|
throw new se('Unknown option "' + n + '" is met in definition of "' + e + '" YAML type.');
|
|
1250
1257
|
}), this.options = t, this.tag = e, this.kind = t.kind || null, this.resolve = t.resolve || function() {
|
|
1251
1258
|
return !0;
|
|
1252
1259
|
}, this.construct = t.construct || function(n) {
|
|
1253
1260
|
return n;
|
|
1254
|
-
}, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases =
|
|
1261
|
+
}, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases = ea(t.styleAliases || null), Xr.indexOf(this.kind) === -1)
|
|
1255
1262
|
throw new se('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
|
|
1256
1263
|
}
|
|
1257
|
-
var ae =
|
|
1258
|
-
function
|
|
1264
|
+
var ae = ta;
|
|
1265
|
+
function It(e, t) {
|
|
1259
1266
|
var n = [];
|
|
1260
1267
|
return e[t].forEach(function(i) {
|
|
1261
1268
|
var r = n.length;
|
|
@@ -1264,7 +1271,7 @@ function Et(e, t) {
|
|
|
1264
1271
|
}), n[r] = i;
|
|
1265
1272
|
}), n;
|
|
1266
1273
|
}
|
|
1267
|
-
function
|
|
1274
|
+
function na() {
|
|
1268
1275
|
var e = {
|
|
1269
1276
|
scalar: {},
|
|
1270
1277
|
sequence: {},
|
|
@@ -1284,10 +1291,10 @@ function Gr() {
|
|
|
1284
1291
|
arguments[t].forEach(i);
|
|
1285
1292
|
return e;
|
|
1286
1293
|
}
|
|
1287
|
-
function
|
|
1294
|
+
function tt(e) {
|
|
1288
1295
|
return this.extend(e);
|
|
1289
1296
|
}
|
|
1290
|
-
|
|
1297
|
+
tt.prototype.extend = function(t) {
|
|
1291
1298
|
var n = [], i = [];
|
|
1292
1299
|
if (t instanceof ae)
|
|
1293
1300
|
i.push(t);
|
|
@@ -1308,47 +1315,47 @@ et.prototype.extend = function(t) {
|
|
|
1308
1315
|
if (!(o instanceof ae))
|
|
1309
1316
|
throw new se("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1310
1317
|
});
|
|
1311
|
-
var r = Object.create(
|
|
1312
|
-
return r.implicit = (this.implicit || []).concat(n), r.explicit = (this.explicit || []).concat(i), r.compiledImplicit =
|
|
1318
|
+
var r = Object.create(tt.prototype);
|
|
1319
|
+
return r.implicit = (this.implicit || []).concat(n), r.explicit = (this.explicit || []).concat(i), r.compiledImplicit = It(r, "implicit"), r.compiledExplicit = It(r, "explicit"), r.compiledTypeMap = na(r.compiledImplicit, r.compiledExplicit), r;
|
|
1313
1320
|
};
|
|
1314
|
-
var
|
|
1321
|
+
var dn = tt, fn = new ae("tag:yaml.org,2002:str", {
|
|
1315
1322
|
kind: "scalar",
|
|
1316
1323
|
construct: function(e) {
|
|
1317
1324
|
return e !== null ? e : "";
|
|
1318
1325
|
}
|
|
1319
|
-
}),
|
|
1326
|
+
}), pn = new ae("tag:yaml.org,2002:seq", {
|
|
1320
1327
|
kind: "sequence",
|
|
1321
1328
|
construct: function(e) {
|
|
1322
1329
|
return e !== null ? e : [];
|
|
1323
1330
|
}
|
|
1324
|
-
}),
|
|
1331
|
+
}), mn = new ae("tag:yaml.org,2002:map", {
|
|
1325
1332
|
kind: "mapping",
|
|
1326
1333
|
construct: function(e) {
|
|
1327
1334
|
return e !== null ? e : {};
|
|
1328
1335
|
}
|
|
1329
|
-
}),
|
|
1336
|
+
}), gn = new dn({
|
|
1330
1337
|
explicit: [
|
|
1331
|
-
dn,
|
|
1332
1338
|
fn,
|
|
1333
|
-
pn
|
|
1339
|
+
pn,
|
|
1340
|
+
mn
|
|
1334
1341
|
]
|
|
1335
1342
|
});
|
|
1336
|
-
function
|
|
1343
|
+
function ia(e) {
|
|
1337
1344
|
if (e === null) return !0;
|
|
1338
1345
|
var t = e.length;
|
|
1339
1346
|
return t === 1 && e === "~" || t === 4 && (e === "null" || e === "Null" || e === "NULL");
|
|
1340
1347
|
}
|
|
1341
|
-
function
|
|
1348
|
+
function ra() {
|
|
1342
1349
|
return null;
|
|
1343
1350
|
}
|
|
1344
|
-
function
|
|
1351
|
+
function aa(e) {
|
|
1345
1352
|
return e === null;
|
|
1346
1353
|
}
|
|
1347
|
-
var
|
|
1354
|
+
var hn = new ae("tag:yaml.org,2002:null", {
|
|
1348
1355
|
kind: "scalar",
|
|
1349
|
-
resolve:
|
|
1350
|
-
construct:
|
|
1351
|
-
predicate:
|
|
1356
|
+
resolve: ia,
|
|
1357
|
+
construct: ra,
|
|
1358
|
+
predicate: aa,
|
|
1352
1359
|
represent: {
|
|
1353
1360
|
canonical: function() {
|
|
1354
1361
|
return "~";
|
|
@@ -1368,22 +1375,22 @@ var gn = new ae("tag:yaml.org,2002:null", {
|
|
|
1368
1375
|
},
|
|
1369
1376
|
defaultStyle: "lowercase"
|
|
1370
1377
|
});
|
|
1371
|
-
function
|
|
1378
|
+
function oa(e) {
|
|
1372
1379
|
if (e === null) return !1;
|
|
1373
1380
|
var t = e.length;
|
|
1374
1381
|
return t === 4 && (e === "true" || e === "True" || e === "TRUE") || t === 5 && (e === "false" || e === "False" || e === "FALSE");
|
|
1375
1382
|
}
|
|
1376
|
-
function
|
|
1383
|
+
function la(e) {
|
|
1377
1384
|
return e === "true" || e === "True" || e === "TRUE";
|
|
1378
1385
|
}
|
|
1379
|
-
function
|
|
1386
|
+
function sa(e) {
|
|
1380
1387
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
1381
1388
|
}
|
|
1382
|
-
var
|
|
1389
|
+
var yn = new ae("tag:yaml.org,2002:bool", {
|
|
1383
1390
|
kind: "scalar",
|
|
1384
|
-
resolve:
|
|
1385
|
-
construct:
|
|
1386
|
-
predicate:
|
|
1391
|
+
resolve: oa,
|
|
1392
|
+
construct: la,
|
|
1393
|
+
predicate: sa,
|
|
1387
1394
|
represent: {
|
|
1388
1395
|
lowercase: function(e) {
|
|
1389
1396
|
return e ? "true" : "false";
|
|
@@ -1397,16 +1404,16 @@ var hn = new ae("tag:yaml.org,2002:bool", {
|
|
|
1397
1404
|
},
|
|
1398
1405
|
defaultStyle: "lowercase"
|
|
1399
1406
|
});
|
|
1400
|
-
function
|
|
1407
|
+
function ca(e) {
|
|
1401
1408
|
return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
|
|
1402
1409
|
}
|
|
1403
|
-
function
|
|
1410
|
+
function ua(e) {
|
|
1404
1411
|
return 48 <= e && e <= 55;
|
|
1405
1412
|
}
|
|
1406
|
-
function
|
|
1413
|
+
function da(e) {
|
|
1407
1414
|
return 48 <= e && e <= 57;
|
|
1408
1415
|
}
|
|
1409
|
-
function
|
|
1416
|
+
function fa(e) {
|
|
1410
1417
|
if (e === null) return !1;
|
|
1411
1418
|
var t = e.length, n = 0, i = !1, r;
|
|
1412
1419
|
if (!t) return !1;
|
|
@@ -1423,7 +1430,7 @@ function aa(e) {
|
|
|
1423
1430
|
if (r === "x") {
|
|
1424
1431
|
for (n++; n < t; n++)
|
|
1425
1432
|
if (r = e[n], r !== "_") {
|
|
1426
|
-
if (!
|
|
1433
|
+
if (!ca(e.charCodeAt(n))) return !1;
|
|
1427
1434
|
i = !0;
|
|
1428
1435
|
}
|
|
1429
1436
|
return i && r !== "_";
|
|
@@ -1431,7 +1438,7 @@ function aa(e) {
|
|
|
1431
1438
|
if (r === "o") {
|
|
1432
1439
|
for (n++; n < t; n++)
|
|
1433
1440
|
if (r = e[n], r !== "_") {
|
|
1434
|
-
if (!
|
|
1441
|
+
if (!ua(e.charCodeAt(n))) return !1;
|
|
1435
1442
|
i = !0;
|
|
1436
1443
|
}
|
|
1437
1444
|
return i && r !== "_";
|
|
@@ -1440,13 +1447,13 @@ function aa(e) {
|
|
|
1440
1447
|
if (r === "_") return !1;
|
|
1441
1448
|
for (; n < t; n++)
|
|
1442
1449
|
if (r = e[n], r !== "_") {
|
|
1443
|
-
if (!
|
|
1450
|
+
if (!da(e.charCodeAt(n)))
|
|
1444
1451
|
return !1;
|
|
1445
1452
|
i = !0;
|
|
1446
1453
|
}
|
|
1447
1454
|
return !(!i || r === "_");
|
|
1448
1455
|
}
|
|
1449
|
-
function
|
|
1456
|
+
function pa(e) {
|
|
1450
1457
|
var t = e, n = 1, i;
|
|
1451
1458
|
if (t.indexOf("_") !== -1 && (t = t.replace(/_/g, "")), i = t[0], (i === "-" || i === "+") && (i === "-" && (n = -1), t = t.slice(1), i = t[0]), t === "0") return 0;
|
|
1452
1459
|
if (i === "0") {
|
|
@@ -1456,14 +1463,14 @@ function oa(e) {
|
|
|
1456
1463
|
}
|
|
1457
1464
|
return n * parseInt(t, 10);
|
|
1458
1465
|
}
|
|
1459
|
-
function
|
|
1466
|
+
function ma(e) {
|
|
1460
1467
|
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !te.isNegativeZero(e);
|
|
1461
1468
|
}
|
|
1462
|
-
var
|
|
1469
|
+
var vn = new ae("tag:yaml.org,2002:int", {
|
|
1463
1470
|
kind: "scalar",
|
|
1464
|
-
resolve:
|
|
1465
|
-
construct:
|
|
1466
|
-
predicate:
|
|
1471
|
+
resolve: fa,
|
|
1472
|
+
construct: pa,
|
|
1473
|
+
predicate: ma,
|
|
1467
1474
|
represent: {
|
|
1468
1475
|
binary: function(e) {
|
|
1469
1476
|
return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
|
|
@@ -1486,21 +1493,21 @@ var yn = new ae("tag:yaml.org,2002:int", {
|
|
|
1486
1493
|
decimal: [10, "dec"],
|
|
1487
1494
|
hexadecimal: [16, "hex"]
|
|
1488
1495
|
}
|
|
1489
|
-
}),
|
|
1496
|
+
}), ga = new RegExp(
|
|
1490
1497
|
// 2.5e4, 2.5 and integers
|
|
1491
1498
|
"^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
|
|
1492
1499
|
);
|
|
1493
|
-
function
|
|
1494
|
-
return !(e === null || !
|
|
1500
|
+
function ha(e) {
|
|
1501
|
+
return !(e === null || !ga.test(e) || // Quick hack to not allow integers end with `_`
|
|
1495
1502
|
// Probably should update regexp & check speed
|
|
1496
1503
|
e[e.length - 1] === "_");
|
|
1497
1504
|
}
|
|
1498
|
-
function
|
|
1505
|
+
function ya(e) {
|
|
1499
1506
|
var t, n;
|
|
1500
1507
|
return t = e.replace(/_/g, "").toLowerCase(), n = t[0] === "-" ? -1 : 1, "+-".indexOf(t[0]) >= 0 && (t = t.slice(1)), t === ".inf" ? n === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : t === ".nan" ? NaN : n * parseFloat(t, 10);
|
|
1501
1508
|
}
|
|
1502
|
-
var
|
|
1503
|
-
function
|
|
1509
|
+
var va = /^[-+]?[0-9]+e/;
|
|
1510
|
+
function ba(e, t) {
|
|
1504
1511
|
var n;
|
|
1505
1512
|
if (isNaN(e))
|
|
1506
1513
|
switch (t) {
|
|
@@ -1531,36 +1538,36 @@ function fa(e, t) {
|
|
|
1531
1538
|
}
|
|
1532
1539
|
else if (te.isNegativeZero(e))
|
|
1533
1540
|
return "-0.0";
|
|
1534
|
-
return n = e.toString(10),
|
|
1541
|
+
return n = e.toString(10), va.test(n) ? n.replace("e", ".e") : n;
|
|
1535
1542
|
}
|
|
1536
|
-
function
|
|
1543
|
+
function ka(e) {
|
|
1537
1544
|
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || te.isNegativeZero(e));
|
|
1538
1545
|
}
|
|
1539
|
-
var
|
|
1546
|
+
var bn = new ae("tag:yaml.org,2002:float", {
|
|
1540
1547
|
kind: "scalar",
|
|
1541
|
-
resolve:
|
|
1542
|
-
construct:
|
|
1543
|
-
predicate:
|
|
1544
|
-
represent:
|
|
1548
|
+
resolve: ha,
|
|
1549
|
+
construct: ya,
|
|
1550
|
+
predicate: ka,
|
|
1551
|
+
represent: ba,
|
|
1545
1552
|
defaultStyle: "lowercase"
|
|
1546
|
-
}),
|
|
1553
|
+
}), kn = gn.extend({
|
|
1547
1554
|
implicit: [
|
|
1548
|
-
gn,
|
|
1549
1555
|
hn,
|
|
1550
1556
|
yn,
|
|
1551
|
-
vn
|
|
1557
|
+
vn,
|
|
1558
|
+
bn
|
|
1552
1559
|
]
|
|
1553
|
-
}),
|
|
1560
|
+
}), Cn = kn, xn = new RegExp(
|
|
1554
1561
|
"^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
|
|
1555
|
-
),
|
|
1562
|
+
), An = new RegExp(
|
|
1556
1563
|
"^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"
|
|
1557
1564
|
);
|
|
1558
|
-
function
|
|
1559
|
-
return e === null ? !1 :
|
|
1565
|
+
function Ca(e) {
|
|
1566
|
+
return e === null ? !1 : xn.exec(e) !== null || An.exec(e) !== null;
|
|
1560
1567
|
}
|
|
1561
|
-
function
|
|
1568
|
+
function xa(e) {
|
|
1562
1569
|
var t, n, i, r, o, a, l, s = 0, d = null, c, u, m;
|
|
1563
|
-
if (t =
|
|
1570
|
+
if (t = xn.exec(e), t === null && (t = An.exec(e)), t === null) throw new Error("Date resolve error");
|
|
1564
1571
|
if (n = +t[1], i = +t[2] - 1, r = +t[3], !t[4])
|
|
1565
1572
|
return new Date(Date.UTC(n, i, r));
|
|
1566
1573
|
if (o = +t[4], a = +t[5], l = +t[6], t[7]) {
|
|
@@ -1570,27 +1577,27 @@ function ga(e) {
|
|
|
1570
1577
|
}
|
|
1571
1578
|
return t[9] && (c = +t[10], u = +(t[11] || 0), d = (c * 60 + u) * 6e4, t[9] === "-" && (d = -d)), m = new Date(Date.UTC(n, i, r, o, a, l, s)), d && m.setTime(m.getTime() - d), m;
|
|
1572
1579
|
}
|
|
1573
|
-
function
|
|
1580
|
+
function Aa(e) {
|
|
1574
1581
|
return e.toISOString();
|
|
1575
1582
|
}
|
|
1576
|
-
var
|
|
1583
|
+
var wn = new ae("tag:yaml.org,2002:timestamp", {
|
|
1577
1584
|
kind: "scalar",
|
|
1578
|
-
resolve:
|
|
1579
|
-
construct:
|
|
1585
|
+
resolve: Ca,
|
|
1586
|
+
construct: xa,
|
|
1580
1587
|
instanceOf: Date,
|
|
1581
|
-
represent:
|
|
1588
|
+
represent: Aa
|
|
1582
1589
|
});
|
|
1583
|
-
function
|
|
1590
|
+
function wa(e) {
|
|
1584
1591
|
return e === "<<" || e === null;
|
|
1585
1592
|
}
|
|
1586
|
-
var
|
|
1593
|
+
var _n = new ae("tag:yaml.org,2002:merge", {
|
|
1587
1594
|
kind: "scalar",
|
|
1588
|
-
resolve:
|
|
1589
|
-
}),
|
|
1595
|
+
resolve: wa
|
|
1596
|
+
}), ut = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
1590
1597
|
\r`;
|
|
1591
|
-
function
|
|
1598
|
+
function _a(e) {
|
|
1592
1599
|
if (e === null) return !1;
|
|
1593
|
-
var t, n, i = 0, r = e.length, o =
|
|
1600
|
+
var t, n, i = 0, r = e.length, o = ut;
|
|
1594
1601
|
for (n = 0; n < r; n++)
|
|
1595
1602
|
if (t = o.indexOf(e.charAt(n)), !(t > 64)) {
|
|
1596
1603
|
if (t < 0) return !1;
|
|
@@ -1598,35 +1605,35 @@ function va(e) {
|
|
|
1598
1605
|
}
|
|
1599
1606
|
return i % 8 === 0;
|
|
1600
1607
|
}
|
|
1601
|
-
function
|
|
1602
|
-
var t, n, i = e.replace(/[\r\n=]/g, ""), r = i.length, o =
|
|
1608
|
+
function Sa(e) {
|
|
1609
|
+
var t, n, i = e.replace(/[\r\n=]/g, ""), r = i.length, o = ut, a = 0, l = [];
|
|
1603
1610
|
for (t = 0; t < r; t++)
|
|
1604
1611
|
t % 4 === 0 && t && (l.push(a >> 16 & 255), l.push(a >> 8 & 255), l.push(a & 255)), a = a << 6 | o.indexOf(i.charAt(t));
|
|
1605
1612
|
return n = r % 4 * 6, n === 0 ? (l.push(a >> 16 & 255), l.push(a >> 8 & 255), l.push(a & 255)) : n === 18 ? (l.push(a >> 10 & 255), l.push(a >> 2 & 255)) : n === 12 && l.push(a >> 4 & 255), new Uint8Array(l);
|
|
1606
1613
|
}
|
|
1607
|
-
function
|
|
1608
|
-
var t = "", n = 0, i, r, o = e.length, a =
|
|
1614
|
+
function $a(e) {
|
|
1615
|
+
var t = "", n = 0, i, r, o = e.length, a = ut;
|
|
1609
1616
|
for (i = 0; i < o; i++)
|
|
1610
1617
|
i % 3 === 0 && i && (t += a[n >> 18 & 63], t += a[n >> 12 & 63], t += a[n >> 6 & 63], t += a[n & 63]), n = (n << 8) + e[i];
|
|
1611
1618
|
return r = o % 3, r === 0 ? (t += a[n >> 18 & 63], t += a[n >> 12 & 63], t += a[n >> 6 & 63], t += a[n & 63]) : r === 2 ? (t += a[n >> 10 & 63], t += a[n >> 4 & 63], t += a[n << 2 & 63], t += a[64]) : r === 1 && (t += a[n >> 2 & 63], t += a[n << 4 & 63], t += a[64], t += a[64]), t;
|
|
1612
1619
|
}
|
|
1613
|
-
function
|
|
1620
|
+
function Ta(e) {
|
|
1614
1621
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
1615
1622
|
}
|
|
1616
|
-
var
|
|
1623
|
+
var Sn = new ae("tag:yaml.org,2002:binary", {
|
|
1617
1624
|
kind: "scalar",
|
|
1618
|
-
resolve:
|
|
1619
|
-
construct:
|
|
1620
|
-
predicate:
|
|
1621
|
-
represent:
|
|
1622
|
-
}),
|
|
1623
|
-
function
|
|
1625
|
+
resolve: _a,
|
|
1626
|
+
construct: Sa,
|
|
1627
|
+
predicate: Ta,
|
|
1628
|
+
represent: $a
|
|
1629
|
+
}), Ea = Object.prototype.hasOwnProperty, Ia = Object.prototype.toString;
|
|
1630
|
+
function Fa(e) {
|
|
1624
1631
|
if (e === null) return !0;
|
|
1625
1632
|
var t = [], n, i, r, o, a, l = e;
|
|
1626
1633
|
for (n = 0, i = l.length; n < i; n += 1) {
|
|
1627
|
-
if (r = l[n], a = !1,
|
|
1634
|
+
if (r = l[n], a = !1, Ia.call(r) !== "[object Object]") return !1;
|
|
1628
1635
|
for (o in r)
|
|
1629
|
-
if (
|
|
1636
|
+
if (Ea.call(r, o))
|
|
1630
1637
|
if (!a) a = !0;
|
|
1631
1638
|
else return !1;
|
|
1632
1639
|
if (!a) return !1;
|
|
@@ -1635,63 +1642,63 @@ function wa(e) {
|
|
|
1635
1642
|
}
|
|
1636
1643
|
return !0;
|
|
1637
1644
|
}
|
|
1638
|
-
function
|
|
1645
|
+
function Oa(e) {
|
|
1639
1646
|
return e !== null ? e : [];
|
|
1640
1647
|
}
|
|
1641
|
-
var
|
|
1648
|
+
var $n = new ae("tag:yaml.org,2002:omap", {
|
|
1642
1649
|
kind: "sequence",
|
|
1643
|
-
resolve:
|
|
1644
|
-
construct:
|
|
1645
|
-
}),
|
|
1646
|
-
function
|
|
1650
|
+
resolve: Fa,
|
|
1651
|
+
construct: Oa
|
|
1652
|
+
}), La = Object.prototype.toString;
|
|
1653
|
+
function Ba(e) {
|
|
1647
1654
|
if (e === null) return !0;
|
|
1648
1655
|
var t, n, i, r, o, a = e;
|
|
1649
1656
|
for (o = new Array(a.length), t = 0, n = a.length; t < n; t += 1) {
|
|
1650
|
-
if (i = a[t],
|
|
1657
|
+
if (i = a[t], La.call(i) !== "[object Object]" || (r = Object.keys(i), r.length !== 1)) return !1;
|
|
1651
1658
|
o[t] = [r[0], i[r[0]]];
|
|
1652
1659
|
}
|
|
1653
1660
|
return !0;
|
|
1654
1661
|
}
|
|
1655
|
-
function
|
|
1662
|
+
function Ra(e) {
|
|
1656
1663
|
if (e === null) return [];
|
|
1657
1664
|
var t, n, i, r, o, a = e;
|
|
1658
1665
|
for (o = new Array(a.length), t = 0, n = a.length; t < n; t += 1)
|
|
1659
1666
|
i = a[t], r = Object.keys(i), o[t] = [r[0], i[r[0]]];
|
|
1660
1667
|
return o;
|
|
1661
1668
|
}
|
|
1662
|
-
var
|
|
1669
|
+
var Tn = new ae("tag:yaml.org,2002:pairs", {
|
|
1663
1670
|
kind: "sequence",
|
|
1664
|
-
resolve:
|
|
1665
|
-
construct:
|
|
1666
|
-
}),
|
|
1667
|
-
function
|
|
1671
|
+
resolve: Ba,
|
|
1672
|
+
construct: Ra
|
|
1673
|
+
}), Ka = Object.prototype.hasOwnProperty;
|
|
1674
|
+
function Na(e) {
|
|
1668
1675
|
if (e === null) return !0;
|
|
1669
1676
|
var t, n = e;
|
|
1670
1677
|
for (t in n)
|
|
1671
|
-
if (
|
|
1678
|
+
if (Ka.call(n, t) && n[t] !== null)
|
|
1672
1679
|
return !1;
|
|
1673
1680
|
return !0;
|
|
1674
1681
|
}
|
|
1675
|
-
function
|
|
1682
|
+
function Ma(e) {
|
|
1676
1683
|
return e !== null ? e : {};
|
|
1677
1684
|
}
|
|
1678
|
-
var
|
|
1685
|
+
var En = new ae("tag:yaml.org,2002:set", {
|
|
1679
1686
|
kind: "mapping",
|
|
1680
|
-
resolve:
|
|
1681
|
-
construct:
|
|
1682
|
-
}),
|
|
1687
|
+
resolve: Na,
|
|
1688
|
+
construct: Ma
|
|
1689
|
+
}), dt = Cn.extend({
|
|
1683
1690
|
implicit: [
|
|
1684
|
-
|
|
1685
|
-
|
|
1691
|
+
wn,
|
|
1692
|
+
_n
|
|
1686
1693
|
],
|
|
1687
1694
|
explicit: [
|
|
1688
|
-
_n,
|
|
1689
1695
|
Sn,
|
|
1690
1696
|
$n,
|
|
1691
|
-
Tn
|
|
1697
|
+
Tn,
|
|
1698
|
+
En
|
|
1692
1699
|
]
|
|
1693
|
-
}), be = Object.prototype.hasOwnProperty, Me = 1,
|
|
1694
|
-
function
|
|
1700
|
+
}), be = Object.prototype.hasOwnProperty, Me = 1, In = 2, Fn = 3, Pe = 4, Ze = 1, Pa = 2, Ft = 3, Da = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, ja = /[\x85\u2028\u2029]/, Ua = /[,\[\]\{\}]/, On = /^(?:!|!!|![a-z\-]+!)$/i, Ln = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
1701
|
+
function Ot(e) {
|
|
1695
1702
|
return Object.prototype.toString.call(e);
|
|
1696
1703
|
}
|
|
1697
1704
|
function me(e) {
|
|
@@ -1706,21 +1713,21 @@ function ue(e) {
|
|
|
1706
1713
|
function Te(e) {
|
|
1707
1714
|
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
1708
1715
|
}
|
|
1709
|
-
function
|
|
1716
|
+
function qa(e) {
|
|
1710
1717
|
var t;
|
|
1711
1718
|
return 48 <= e && e <= 57 ? e - 48 : (t = e | 32, 97 <= t && t <= 102 ? t - 97 + 10 : -1);
|
|
1712
1719
|
}
|
|
1713
|
-
function
|
|
1720
|
+
function Ha(e) {
|
|
1714
1721
|
return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
|
|
1715
1722
|
}
|
|
1716
|
-
function
|
|
1723
|
+
function Ya(e) {
|
|
1717
1724
|
return 48 <= e && e <= 57 ? e - 48 : -1;
|
|
1718
1725
|
}
|
|
1719
|
-
function
|
|
1726
|
+
function Lt(e) {
|
|
1720
1727
|
return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
|
|
1721
1728
|
` : e === 118 ? "\v" : e === 102 ? "\f" : e === 114 ? "\r" : e === 101 ? "\x1B" : e === 32 ? " " : e === 34 ? '"' : e === 47 ? "/" : e === 92 ? "\\" : e === 78 ? "
" : e === 95 ? " " : e === 76 ? "\u2028" : e === 80 ? "\u2029" : "";
|
|
1722
1729
|
}
|
|
1723
|
-
function
|
|
1730
|
+
function Va(e) {
|
|
1724
1731
|
return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode(
|
|
1725
1732
|
(e - 65536 >> 10) + 55296,
|
|
1726
1733
|
(e - 65536 & 1023) + 56320
|
|
@@ -1734,13 +1741,13 @@ function Bn(e, t, n) {
|
|
|
1734
1741
|
value: n
|
|
1735
1742
|
}) : e[t] = n;
|
|
1736
1743
|
}
|
|
1737
|
-
var
|
|
1744
|
+
var Rn = new Array(256), Kn = new Array(256);
|
|
1738
1745
|
for (var Se = 0; Se < 256; Se++)
|
|
1739
|
-
|
|
1740
|
-
function
|
|
1741
|
-
this.input = e, this.filename = t.filename || null, this.schema = t.schema ||
|
|
1746
|
+
Rn[Se] = Lt(Se) ? 1 : 0, Kn[Se] = Lt(Se);
|
|
1747
|
+
function Wa(e, t) {
|
|
1748
|
+
this.input = e, this.filename = t.filename || null, this.schema = t.schema || dt, this.onWarning = t.onWarning || null, this.legacy = t.legacy || !1, this.json = t.json || !1, this.listener = t.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
|
|
1742
1749
|
}
|
|
1743
|
-
function
|
|
1750
|
+
function Nn(e, t) {
|
|
1744
1751
|
var n = {
|
|
1745
1752
|
name: e.filename,
|
|
1746
1753
|
buffer: e.input.slice(0, -1),
|
|
@@ -1749,13 +1756,13 @@ function Kn(e, t) {
|
|
|
1749
1756
|
line: e.line,
|
|
1750
1757
|
column: e.position - e.lineStart
|
|
1751
1758
|
};
|
|
1752
|
-
return n.snippet =
|
|
1759
|
+
return n.snippet = Qr(n), new se(t, n);
|
|
1753
1760
|
}
|
|
1754
1761
|
function T(e, t) {
|
|
1755
|
-
throw
|
|
1762
|
+
throw Nn(e, t);
|
|
1756
1763
|
}
|
|
1757
1764
|
function De(e, t) {
|
|
1758
|
-
e.onWarning && e.onWarning.call(null,
|
|
1765
|
+
e.onWarning && e.onWarning.call(null, Nn(e, t));
|
|
1759
1766
|
}
|
|
1760
1767
|
var Bt = {
|
|
1761
1768
|
YAML: function(t, n, i) {
|
|
@@ -1764,7 +1771,7 @@ var Bt = {
|
|
|
1764
1771
|
},
|
|
1765
1772
|
TAG: function(t, n, i) {
|
|
1766
1773
|
var r, o;
|
|
1767
|
-
i.length !== 2 && T(t, "TAG directive accepts exactly two arguments"), r = i[0], o = i[1],
|
|
1774
|
+
i.length !== 2 && T(t, "TAG directive accepts exactly two arguments"), r = i[0], o = i[1], On.test(r) || T(t, "ill-formed tag handle (first argument) of the TAG directive"), be.call(t.tagMap, r) && T(t, 'there is a previously declared suffix for "' + r + '" tag handle'), Ln.test(o) || T(t, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
1768
1775
|
try {
|
|
1769
1776
|
o = decodeURIComponent(o);
|
|
1770
1777
|
} catch {
|
|
@@ -1779,11 +1786,11 @@ function ve(e, t, n, i) {
|
|
|
1779
1786
|
if (l = e.input.slice(t, n), i)
|
|
1780
1787
|
for (r = 0, o = l.length; r < o; r += 1)
|
|
1781
1788
|
a = l.charCodeAt(r), a === 9 || 32 <= a && a <= 1114111 || T(e, "expected valid JSON character");
|
|
1782
|
-
else
|
|
1789
|
+
else Da.test(l) && T(e, "the stream contains non-printable characters");
|
|
1783
1790
|
e.result += l;
|
|
1784
1791
|
}
|
|
1785
1792
|
}
|
|
1786
|
-
function
|
|
1793
|
+
function Rt(e, t, n, i) {
|
|
1787
1794
|
var r, o, a, l;
|
|
1788
1795
|
for (te.isObject(n) || T(e, "cannot merge mappings; the provided source object is unacceptable"), r = Object.keys(n), a = 0, l = r.length; a < l; a += 1)
|
|
1789
1796
|
o = r[a], be.call(t, o) || (Bn(t, o, n[o]), i[o] = !0);
|
|
@@ -1792,18 +1799,18 @@ function Ee(e, t, n, i, r, o, a, l, s) {
|
|
|
1792
1799
|
var d, c;
|
|
1793
1800
|
if (Array.isArray(r))
|
|
1794
1801
|
for (r = Array.prototype.slice.call(r), d = 0, c = r.length; d < c; d += 1)
|
|
1795
|
-
Array.isArray(r[d]) && T(e, "nested arrays are not supported inside keys"), typeof r == "object" &&
|
|
1796
|
-
if (typeof r == "object" &&
|
|
1802
|
+
Array.isArray(r[d]) && T(e, "nested arrays are not supported inside keys"), typeof r == "object" && Ot(r[d]) === "[object Object]" && (r[d] = "[object Object]");
|
|
1803
|
+
if (typeof r == "object" && Ot(r) === "[object Object]" && (r = "[object Object]"), r = String(r), t === null && (t = {}), i === "tag:yaml.org,2002:merge")
|
|
1797
1804
|
if (Array.isArray(o))
|
|
1798
1805
|
for (d = 0, c = o.length; d < c; d += 1)
|
|
1799
|
-
|
|
1806
|
+
Rt(e, t, o[d], n);
|
|
1800
1807
|
else
|
|
1801
|
-
|
|
1808
|
+
Rt(e, t, o, n);
|
|
1802
1809
|
else
|
|
1803
1810
|
!e.json && !be.call(n, r) && be.call(t, r) && (e.line = a || e.line, e.lineStart = l || e.lineStart, e.position = s || e.position, T(e, "duplicated mapping key")), Bn(t, r, o), delete n[r];
|
|
1804
1811
|
return t;
|
|
1805
1812
|
}
|
|
1806
|
-
function
|
|
1813
|
+
function ft(e) {
|
|
1807
1814
|
var t;
|
|
1808
1815
|
t = e.input.charCodeAt(e.position), t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : T(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
|
|
1809
1816
|
}
|
|
@@ -1816,7 +1823,7 @@ function ee(e, t, n) {
|
|
|
1816
1823
|
r = e.input.charCodeAt(++e.position);
|
|
1817
1824
|
while (r !== 10 && r !== 13 && r !== 0);
|
|
1818
1825
|
if (me(r))
|
|
1819
|
-
for (
|
|
1826
|
+
for (ft(e), r = e.input.charCodeAt(e.position), i++, e.lineIndent = 0; r === 32; )
|
|
1820
1827
|
e.lineIndent++, r = e.input.charCodeAt(++e.position);
|
|
1821
1828
|
else
|
|
1822
1829
|
break;
|
|
@@ -1827,11 +1834,11 @@ function We(e) {
|
|
|
1827
1834
|
var t = e.position, n;
|
|
1828
1835
|
return n = e.input.charCodeAt(t), !!((n === 45 || n === 46) && n === e.input.charCodeAt(t + 1) && n === e.input.charCodeAt(t + 2) && (t += 3, n = e.input.charCodeAt(t), n === 0 || ue(n)));
|
|
1829
1836
|
}
|
|
1830
|
-
function
|
|
1837
|
+
function pt(e, t) {
|
|
1831
1838
|
t === 1 ? e.result += " " : t > 1 && (e.result += te.repeat(`
|
|
1832
1839
|
`, t - 1));
|
|
1833
1840
|
}
|
|
1834
|
-
function
|
|
1841
|
+
function Ja(e, t, n) {
|
|
1835
1842
|
var i, r, o, a, l, s, d, c, u = e.kind, m = e.result, f;
|
|
1836
1843
|
if (f = e.input.charCodeAt(e.position), ue(f) || Te(f) || f === 35 || f === 38 || f === 42 || f === 33 || f === 124 || f === 62 || f === 39 || f === 34 || f === 37 || f === 64 || f === 96 || (f === 63 || f === 45) && (r = e.input.charCodeAt(e.position + 1), ue(r) || n && Te(r)))
|
|
1837
1844
|
return !1;
|
|
@@ -1854,11 +1861,11 @@ function ja(e, t, n) {
|
|
|
1854
1861
|
break;
|
|
1855
1862
|
}
|
|
1856
1863
|
}
|
|
1857
|
-
l && (ve(e, o, a, !1),
|
|
1864
|
+
l && (ve(e, o, a, !1), pt(e, e.line - s), o = a = e.position, l = !1), Ce(f) || (a = e.position + 1), f = e.input.charCodeAt(++e.position);
|
|
1858
1865
|
}
|
|
1859
1866
|
return ve(e, o, a, !1), e.result ? !0 : (e.kind = u, e.result = m, !1);
|
|
1860
1867
|
}
|
|
1861
|
-
function
|
|
1868
|
+
function Ga(e, t) {
|
|
1862
1869
|
var n, i, r;
|
|
1863
1870
|
if (n = e.input.charCodeAt(e.position), n !== 39)
|
|
1864
1871
|
return !1;
|
|
@@ -1868,10 +1875,10 @@ function Ua(e, t) {
|
|
|
1868
1875
|
i = e.position, e.position++, r = e.position;
|
|
1869
1876
|
else
|
|
1870
1877
|
return !0;
|
|
1871
|
-
else me(n) ? (ve(e, i, r, !0),
|
|
1878
|
+
else me(n) ? (ve(e, i, r, !0), pt(e, ee(e, !1, t)), i = r = e.position) : e.position === e.lineStart && We(e) ? T(e, "unexpected end of the document within a single quoted scalar") : (e.position++, r = e.position);
|
|
1872
1879
|
T(e, "unexpected end of the stream within a single quoted scalar");
|
|
1873
1880
|
}
|
|
1874
|
-
function
|
|
1881
|
+
function za(e, t) {
|
|
1875
1882
|
var n, i, r, o, a, l;
|
|
1876
1883
|
if (l = e.input.charCodeAt(e.position), l !== 34)
|
|
1877
1884
|
return !1;
|
|
@@ -1881,20 +1888,20 @@ function qa(e, t) {
|
|
|
1881
1888
|
if (l === 92) {
|
|
1882
1889
|
if (ve(e, n, e.position, !0), l = e.input.charCodeAt(++e.position), me(l))
|
|
1883
1890
|
ee(e, !1, t);
|
|
1884
|
-
else if (l < 256 &&
|
|
1885
|
-
e.result +=
|
|
1886
|
-
else if ((a =
|
|
1891
|
+
else if (l < 256 && Rn[l])
|
|
1892
|
+
e.result += Kn[l], e.position++;
|
|
1893
|
+
else if ((a = Ha(l)) > 0) {
|
|
1887
1894
|
for (r = a, o = 0; r > 0; r--)
|
|
1888
|
-
l = e.input.charCodeAt(++e.position), (a =
|
|
1889
|
-
e.result +=
|
|
1895
|
+
l = e.input.charCodeAt(++e.position), (a = qa(l)) >= 0 ? o = (o << 4) + a : T(e, "expected hexadecimal character");
|
|
1896
|
+
e.result += Va(o), e.position++;
|
|
1890
1897
|
} else
|
|
1891
1898
|
T(e, "unknown escape sequence");
|
|
1892
1899
|
n = i = e.position;
|
|
1893
|
-
} else me(l) ? (ve(e, n, i, !0),
|
|
1900
|
+
} else me(l) ? (ve(e, n, i, !0), pt(e, ee(e, !1, t)), n = i = e.position) : e.position === e.lineStart && We(e) ? T(e, "unexpected end of the document within a double quoted scalar") : (e.position++, i = e.position);
|
|
1894
1901
|
}
|
|
1895
1902
|
T(e, "unexpected end of the stream within a double quoted scalar");
|
|
1896
1903
|
}
|
|
1897
|
-
function
|
|
1904
|
+
function Qa(e, t) {
|
|
1898
1905
|
var n = !0, i, r, o, a = e.tag, l, s = e.anchor, d, c, u, m, f, h = /* @__PURE__ */ Object.create(null), b, y, $, k;
|
|
1899
1906
|
if (k = e.input.charCodeAt(e.position), k === 91)
|
|
1900
1907
|
c = 93, f = !1, l = [];
|
|
@@ -1909,8 +1916,8 @@ function Ha(e, t) {
|
|
|
1909
1916
|
}
|
|
1910
1917
|
T(e, "unexpected end of the stream within a flow collection");
|
|
1911
1918
|
}
|
|
1912
|
-
function
|
|
1913
|
-
var n, i, r =
|
|
1919
|
+
function Za(e, t) {
|
|
1920
|
+
var n, i, r = Ze, o = !1, a = !1, l = t, s = 0, d = !1, c, u;
|
|
1914
1921
|
if (u = e.input.charCodeAt(e.position), u === 124)
|
|
1915
1922
|
i = !1;
|
|
1916
1923
|
else if (u === 62)
|
|
@@ -1919,8 +1926,8 @@ function Ya(e, t) {
|
|
|
1919
1926
|
return !1;
|
|
1920
1927
|
for (e.kind = "scalar", e.result = ""; u !== 0; )
|
|
1921
1928
|
if (u = e.input.charCodeAt(++e.position), u === 43 || u === 45)
|
|
1922
|
-
|
|
1923
|
-
else if ((c =
|
|
1929
|
+
Ze === r ? r = u === 43 ? Ft : Pa : T(e, "repeat of a chomping mode identifier");
|
|
1930
|
+
else if ((c = Ya(u)) >= 0)
|
|
1924
1931
|
c === 0 ? T(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : a ? T(e, "repeat of an indentation width identifier") : (l = t + c - 1, a = !0);
|
|
1925
1932
|
else
|
|
1926
1933
|
break;
|
|
@@ -1934,15 +1941,15 @@ function Ya(e, t) {
|
|
|
1934
1941
|
while (!me(u) && u !== 0);
|
|
1935
1942
|
}
|
|
1936
1943
|
for (; u !== 0; ) {
|
|
1937
|
-
for (
|
|
1944
|
+
for (ft(e), e.lineIndent = 0, u = e.input.charCodeAt(e.position); (!a || e.lineIndent < l) && u === 32; )
|
|
1938
1945
|
e.lineIndent++, u = e.input.charCodeAt(++e.position);
|
|
1939
1946
|
if (!a && e.lineIndent > l && (l = e.lineIndent), me(u)) {
|
|
1940
1947
|
s++;
|
|
1941
1948
|
continue;
|
|
1942
1949
|
}
|
|
1943
1950
|
if (e.lineIndent < l) {
|
|
1944
|
-
r ===
|
|
1945
|
-
`, o ? 1 + s : s) : r ===
|
|
1951
|
+
r === Ft ? e.result += te.repeat(`
|
|
1952
|
+
`, o ? 1 + s : s) : r === Ze && o && (e.result += `
|
|
1946
1953
|
`);
|
|
1947
1954
|
break;
|
|
1948
1955
|
}
|
|
@@ -1956,7 +1963,7 @@ function Ya(e, t) {
|
|
|
1956
1963
|
}
|
|
1957
1964
|
return !0;
|
|
1958
1965
|
}
|
|
1959
|
-
function
|
|
1966
|
+
function Kt(e, t) {
|
|
1960
1967
|
var n, i = e.tag, r = e.anchor, o = [], a, l = !1, s;
|
|
1961
1968
|
if (e.firstTabInLine !== -1) return !1;
|
|
1962
1969
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = o), s = e.input.charCodeAt(e.position); s !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, T(e, "tab characters must not be used in indentation")), !(s !== 45 || (a = e.input.charCodeAt(e.position + 1), !ue(a)))); ) {
|
|
@@ -1964,21 +1971,21 @@ function Rt(e, t) {
|
|
|
1964
1971
|
o.push(null), s = e.input.charCodeAt(e.position);
|
|
1965
1972
|
continue;
|
|
1966
1973
|
}
|
|
1967
|
-
if (n = e.line, Fe(e, t,
|
|
1974
|
+
if (n = e.line, Fe(e, t, Fn, !1, !0), o.push(e.result), ee(e, !0, -1), s = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && s !== 0)
|
|
1968
1975
|
T(e, "bad indentation of a sequence entry");
|
|
1969
1976
|
else if (e.lineIndent < t)
|
|
1970
1977
|
break;
|
|
1971
1978
|
}
|
|
1972
1979
|
return l ? (e.tag = i, e.anchor = r, e.kind = "sequence", e.result = o, !0) : !1;
|
|
1973
1980
|
}
|
|
1974
|
-
function
|
|
1981
|
+
function Xa(e, t, n) {
|
|
1975
1982
|
var i, r, o, a, l, s, d = e.tag, c = e.anchor, u = {}, m = /* @__PURE__ */ Object.create(null), f = null, h = null, b = null, y = !1, $ = !1, k;
|
|
1976
1983
|
if (e.firstTabInLine !== -1) return !1;
|
|
1977
1984
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = u), k = e.input.charCodeAt(e.position); k !== 0; ) {
|
|
1978
1985
|
if (!y && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, T(e, "tab characters must not be used in indentation")), i = e.input.charCodeAt(e.position + 1), o = e.line, (k === 63 || k === 58) && ue(i))
|
|
1979
1986
|
k === 63 ? (y && (Ee(e, u, m, f, h, null, a, l, s), f = h = b = null), $ = !0, y = !0, r = !0) : y ? (y = !1, r = !0) : T(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, k = i;
|
|
1980
1987
|
else {
|
|
1981
|
-
if (a = e.line, l = e.lineStart, s = e.position, !Fe(e, n,
|
|
1988
|
+
if (a = e.line, l = e.lineStart, s = e.position, !Fe(e, n, In, !1, !0))
|
|
1982
1989
|
break;
|
|
1983
1990
|
if (e.line === o) {
|
|
1984
1991
|
for (k = e.input.charCodeAt(e.position); Ce(k); )
|
|
@@ -2001,7 +2008,7 @@ function Va(e, t, n) {
|
|
|
2001
2008
|
}
|
|
2002
2009
|
return y && Ee(e, u, m, f, h, null, a, l, s), $ && (e.tag = d, e.anchor = c, e.kind = "mapping", e.result = u), $;
|
|
2003
2010
|
}
|
|
2004
|
-
function
|
|
2011
|
+
function eo(e) {
|
|
2005
2012
|
var t, n = !1, i = !1, r, o, a;
|
|
2006
2013
|
if (a = e.input.charCodeAt(e.position), a !== 33) return !1;
|
|
2007
2014
|
if (e.tag !== null && T(e, "duplication of a tag property"), a = e.input.charCodeAt(++e.position), a === 60 ? (n = !0, a = e.input.charCodeAt(++e.position)) : a === 33 ? (i = !0, r = "!!", a = e.input.charCodeAt(++e.position)) : r = "!", t = e.position, n) {
|
|
@@ -2011,10 +2018,10 @@ function Wa(e) {
|
|
|
2011
2018
|
e.position < e.length ? (o = e.input.slice(t, e.position), a = e.input.charCodeAt(++e.position)) : T(e, "unexpected end of the stream within a verbatim tag");
|
|
2012
2019
|
} else {
|
|
2013
2020
|
for (; a !== 0 && !ue(a); )
|
|
2014
|
-
a === 33 && (i ? T(e, "tag suffix cannot contain exclamation marks") : (r = e.input.slice(t - 1, e.position + 1),
|
|
2015
|
-
o = e.input.slice(t, e.position),
|
|
2021
|
+
a === 33 && (i ? T(e, "tag suffix cannot contain exclamation marks") : (r = e.input.slice(t - 1, e.position + 1), On.test(r) || T(e, "named tag handle cannot contain such characters"), i = !0, t = e.position + 1)), a = e.input.charCodeAt(++e.position);
|
|
2022
|
+
o = e.input.slice(t, e.position), Ua.test(o) && T(e, "tag suffix cannot contain flow indicator characters");
|
|
2016
2023
|
}
|
|
2017
|
-
o && !
|
|
2024
|
+
o && !Ln.test(o) && T(e, "tag name cannot contain such characters: " + o);
|
|
2018
2025
|
try {
|
|
2019
2026
|
o = decodeURIComponent(o);
|
|
2020
2027
|
} catch {
|
|
@@ -2022,14 +2029,14 @@ function Wa(e) {
|
|
|
2022
2029
|
}
|
|
2023
2030
|
return n ? e.tag = o : be.call(e.tagMap, r) ? e.tag = e.tagMap[r] + o : r === "!" ? e.tag = "!" + o : r === "!!" ? e.tag = "tag:yaml.org,2002:" + o : T(e, 'undeclared tag handle "' + r + '"'), !0;
|
|
2024
2031
|
}
|
|
2025
|
-
function
|
|
2032
|
+
function to(e) {
|
|
2026
2033
|
var t, n;
|
|
2027
2034
|
if (n = e.input.charCodeAt(e.position), n !== 38) return !1;
|
|
2028
2035
|
for (e.anchor !== null && T(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !ue(n) && !Te(n); )
|
|
2029
2036
|
n = e.input.charCodeAt(++e.position);
|
|
2030
2037
|
return e.position === t && T(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0;
|
|
2031
2038
|
}
|
|
2032
|
-
function
|
|
2039
|
+
function no(e) {
|
|
2033
2040
|
var t, n, i;
|
|
2034
2041
|
if (i = e.input.charCodeAt(e.position), i !== 42) return !1;
|
|
2035
2042
|
for (i = e.input.charCodeAt(++e.position), t = e.position; i !== 0 && !ue(i) && !Te(i); )
|
|
@@ -2038,10 +2045,10 @@ function Ga(e) {
|
|
|
2038
2045
|
}
|
|
2039
2046
|
function Fe(e, t, n, i, r) {
|
|
2040
2047
|
var o, a, l, s = 1, d = !1, c = !1, u, m, f, h, b, y;
|
|
2041
|
-
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = a = l = Pe === n ||
|
|
2042
|
-
for (;
|
|
2048
|
+
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = a = l = Pe === n || Fn === n, i && ee(e, !0, -1) && (d = !0, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)), s === 1)
|
|
2049
|
+
for (; eo(e) || to(e); )
|
|
2043
2050
|
ee(e, !0, -1) ? (d = !0, l = o, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)) : l = !1;
|
|
2044
|
-
if (l && (l = d || r), (s === 1 || Pe === n) && (Me === n ||
|
|
2051
|
+
if (l && (l = d || r), (s === 1 || Pe === n) && (Me === n || In === n ? b = t : b = t + 1, y = e.position - e.lineStart, s === 1 ? l && (Kt(e, y) || Xa(e, y, b)) || Qa(e, b) ? c = !0 : (a && Za(e, b) || Ga(e, b) || za(e, b) ? c = !0 : no(e) ? (c = !0, (e.tag !== null || e.anchor !== null) && T(e, "alias node should not have any properties")) : Ja(e, b, Me === n) && (c = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : s === 0 && (c = l && Kt(e, y))), e.tag === null)
|
|
2045
2052
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
2046
2053
|
else if (e.tag === "?") {
|
|
2047
2054
|
for (e.result !== null && e.kind !== "scalar" && T(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, m = e.implicitTypes.length; u < m; u += 1)
|
|
@@ -2062,7 +2069,7 @@ function Fe(e, t, n, i, r) {
|
|
|
2062
2069
|
}
|
|
2063
2070
|
return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || c;
|
|
2064
2071
|
}
|
|
2065
|
-
function
|
|
2072
|
+
function io(e) {
|
|
2066
2073
|
var t = e.position, n, i, r, o = !1, a;
|
|
2067
2074
|
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (a = e.input.charCodeAt(e.position)) !== 0 && (ee(e, !0, -1), a = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || a !== 37)); ) {
|
|
2068
2075
|
for (o = !0, a = e.input.charCodeAt(++e.position), n = e.position; a !== 0 && !ue(a); )
|
|
@@ -2081,9 +2088,9 @@ function za(e) {
|
|
|
2081
2088
|
a = e.input.charCodeAt(++e.position);
|
|
2082
2089
|
r.push(e.input.slice(n, e.position));
|
|
2083
2090
|
}
|
|
2084
|
-
a !== 0 &&
|
|
2091
|
+
a !== 0 && ft(e), be.call(Bt, i) ? Bt[i](e, i, r) : De(e, 'unknown document directive "' + i + '"');
|
|
2085
2092
|
}
|
|
2086
|
-
if (ee(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, ee(e, !0, -1)) : o && T(e, "directives end mark is expected"), Fe(e, e.lineIndent - 1, Pe, !1, !0), ee(e, !0, -1), e.checkLineBreaks &&
|
|
2093
|
+
if (ee(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, ee(e, !0, -1)) : o && T(e, "directives end mark is expected"), Fe(e, e.lineIndent - 1, Pe, !1, !0), ee(e, !0, -1), e.checkLineBreaks && ja.test(e.input.slice(t, e.position)) && De(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && We(e)) {
|
|
2087
2094
|
e.input.charCodeAt(e.position) === 46 && (e.position += 3, ee(e, !0, -1));
|
|
2088
2095
|
return;
|
|
2089
2096
|
}
|
|
@@ -2092,36 +2099,36 @@ function za(e) {
|
|
|
2092
2099
|
else
|
|
2093
2100
|
return;
|
|
2094
2101
|
}
|
|
2095
|
-
function
|
|
2102
|
+
function Mn(e, t) {
|
|
2096
2103
|
e = String(e), t = t || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
|
|
2097
2104
|
`), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
2098
|
-
var n = new
|
|
2105
|
+
var n = new Wa(e, t), i = e.indexOf("\0");
|
|
2099
2106
|
for (i !== -1 && (n.position = i, T(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32; )
|
|
2100
2107
|
n.lineIndent += 1, n.position += 1;
|
|
2101
2108
|
for (; n.position < n.length - 1; )
|
|
2102
|
-
|
|
2109
|
+
io(n);
|
|
2103
2110
|
return n.documents;
|
|
2104
2111
|
}
|
|
2105
|
-
function
|
|
2112
|
+
function ro(e, t, n) {
|
|
2106
2113
|
t !== null && typeof t == "object" && typeof n > "u" && (n = t, t = null);
|
|
2107
|
-
var i =
|
|
2114
|
+
var i = Mn(e, n);
|
|
2108
2115
|
if (typeof t != "function")
|
|
2109
2116
|
return i;
|
|
2110
2117
|
for (var r = 0, o = i.length; r < o; r += 1)
|
|
2111
2118
|
t(i[r]);
|
|
2112
2119
|
}
|
|
2113
|
-
function
|
|
2114
|
-
var n =
|
|
2120
|
+
function ao(e, t) {
|
|
2121
|
+
var n = Mn(e, t);
|
|
2115
2122
|
if (n.length !== 0) {
|
|
2116
2123
|
if (n.length === 1)
|
|
2117
2124
|
return n[0];
|
|
2118
2125
|
throw new se("expected a single document in the stream, but found more");
|
|
2119
2126
|
}
|
|
2120
2127
|
}
|
|
2121
|
-
var
|
|
2122
|
-
loadAll:
|
|
2123
|
-
load:
|
|
2124
|
-
},
|
|
2128
|
+
var oo = ro, lo = ao, Pn = {
|
|
2129
|
+
loadAll: oo,
|
|
2130
|
+
load: lo
|
|
2131
|
+
}, Dn = Object.prototype.toString, jn = Object.prototype.hasOwnProperty, mt = 65279, so = 9, Be = 10, co = 13, uo = 32, fo = 33, po = 34, nt = 35, mo = 37, go = 38, ho = 39, yo = 42, Un = 44, vo = 45, je = 58, bo = 61, ko = 62, Co = 63, xo = 64, qn = 91, Hn = 93, Ao = 96, Yn = 123, wo = 124, Vn = 125, oe = {};
|
|
2125
2132
|
oe[0] = "\\0";
|
|
2126
2133
|
oe[7] = "\\a";
|
|
2127
2134
|
oe[8] = "\\b";
|
|
@@ -2137,7 +2144,7 @@ oe[133] = "\\N";
|
|
|
2137
2144
|
oe[160] = "\\_";
|
|
2138
2145
|
oe[8232] = "\\L";
|
|
2139
2146
|
oe[8233] = "\\P";
|
|
2140
|
-
var
|
|
2147
|
+
var _o = [
|
|
2141
2148
|
"y",
|
|
2142
2149
|
"Y",
|
|
2143
2150
|
"yes",
|
|
@@ -2154,15 +2161,15 @@ var vo = [
|
|
|
2154
2161
|
"off",
|
|
2155
2162
|
"Off",
|
|
2156
2163
|
"OFF"
|
|
2157
|
-
],
|
|
2158
|
-
function
|
|
2164
|
+
], So = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
2165
|
+
function $o(e, t) {
|
|
2159
2166
|
var n, i, r, o, a, l, s;
|
|
2160
2167
|
if (t === null) return {};
|
|
2161
2168
|
for (n = {}, i = Object.keys(t), r = 0, o = i.length; r < o; r += 1)
|
|
2162
|
-
a = i[r], l = String(t[a]), a.slice(0, 2) === "!!" && (a = "tag:yaml.org,2002:" + a.slice(2)), s = e.compiledTypeMap.fallback[a], s &&
|
|
2169
|
+
a = i[r], l = String(t[a]), a.slice(0, 2) === "!!" && (a = "tag:yaml.org,2002:" + a.slice(2)), s = e.compiledTypeMap.fallback[a], s && jn.call(s.styleAliases, l) && (l = s.styleAliases[l]), n[a] = l;
|
|
2163
2170
|
return n;
|
|
2164
2171
|
}
|
|
2165
|
-
function
|
|
2172
|
+
function To(e) {
|
|
2166
2173
|
var t, n, i;
|
|
2167
2174
|
if (t = e.toString(16).toUpperCase(), e <= 255)
|
|
2168
2175
|
n = "x", i = 2;
|
|
@@ -2174,22 +2181,22 @@ function Co(e) {
|
|
|
2174
2181
|
throw new se("code point within a string may not be greater than 0xFFFFFFFF");
|
|
2175
2182
|
return "\\" + n + te.repeat("0", i - t.length) + t;
|
|
2176
2183
|
}
|
|
2177
|
-
var
|
|
2178
|
-
function
|
|
2179
|
-
this.schema = e.schema ||
|
|
2184
|
+
var Eo = 1, Re = 2;
|
|
2185
|
+
function Io(e) {
|
|
2186
|
+
this.schema = e.schema || dt, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = te.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = $o(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === '"' ? Re : Eo, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
|
|
2180
2187
|
}
|
|
2181
|
-
function
|
|
2188
|
+
function Nt(e, t) {
|
|
2182
2189
|
for (var n = te.repeat(" ", t), i = 0, r = -1, o = "", a, l = e.length; i < l; )
|
|
2183
2190
|
r = e.indexOf(`
|
|
2184
2191
|
`, i), r === -1 ? (a = e.slice(i), i = l) : (a = e.slice(i, r + 1), i = r + 1), a.length && a !== `
|
|
2185
2192
|
` && (o += n), o += a;
|
|
2186
2193
|
return o;
|
|
2187
2194
|
}
|
|
2188
|
-
function
|
|
2195
|
+
function it(e, t) {
|
|
2189
2196
|
return `
|
|
2190
2197
|
` + te.repeat(" ", e.indent * t);
|
|
2191
2198
|
}
|
|
2192
|
-
function
|
|
2199
|
+
function Fo(e, t) {
|
|
2193
2200
|
var n, i, r;
|
|
2194
2201
|
for (n = 0, i = e.implicitTypes.length; n < i; n += 1)
|
|
2195
2202
|
if (r = e.implicitTypes[n], r.resolve(t))
|
|
@@ -2197,71 +2204,71 @@ function wo(e, t) {
|
|
|
2197
2204
|
return !1;
|
|
2198
2205
|
}
|
|
2199
2206
|
function Ue(e) {
|
|
2200
|
-
return e ===
|
|
2207
|
+
return e === uo || e === so;
|
|
2201
2208
|
}
|
|
2202
2209
|
function Ke(e) {
|
|
2203
|
-
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !==
|
|
2210
|
+
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== mt || 65536 <= e && e <= 1114111;
|
|
2204
2211
|
}
|
|
2205
|
-
function
|
|
2206
|
-
return Ke(e) && e !==
|
|
2212
|
+
function Mt(e) {
|
|
2213
|
+
return Ke(e) && e !== mt && e !== co && e !== Be;
|
|
2207
2214
|
}
|
|
2208
|
-
function
|
|
2209
|
-
var i =
|
|
2215
|
+
function Pt(e, t, n) {
|
|
2216
|
+
var i = Mt(e), r = i && !Ue(e);
|
|
2210
2217
|
return (
|
|
2211
2218
|
// ns-plain-safe
|
|
2212
2219
|
(n ? (
|
|
2213
2220
|
// c = flow-in
|
|
2214
2221
|
i
|
|
2215
|
-
) : i && e !==
|
|
2222
|
+
) : i && e !== Un && e !== qn && e !== Hn && e !== Yn && e !== Vn) && e !== nt && !(t === je && !r) || Mt(t) && !Ue(t) && e === nt || t === je && r
|
|
2216
2223
|
);
|
|
2217
2224
|
}
|
|
2218
|
-
function
|
|
2219
|
-
return Ke(e) && e !==
|
|
2225
|
+
function Oo(e) {
|
|
2226
|
+
return Ke(e) && e !== mt && !Ue(e) && e !== vo && e !== Co && e !== je && e !== Un && e !== qn && e !== Hn && e !== Yn && e !== Vn && e !== nt && e !== go && e !== yo && e !== fo && e !== wo && e !== bo && e !== ko && e !== ho && e !== po && e !== mo && e !== xo && e !== Ao;
|
|
2220
2227
|
}
|
|
2221
|
-
function
|
|
2228
|
+
function Lo(e) {
|
|
2222
2229
|
return !Ue(e) && e !== je;
|
|
2223
2230
|
}
|
|
2224
2231
|
function Oe(e, t) {
|
|
2225
2232
|
var n = e.charCodeAt(t), i;
|
|
2226
2233
|
return n >= 55296 && n <= 56319 && t + 1 < e.length && (i = e.charCodeAt(t + 1), i >= 56320 && i <= 57343) ? (n - 55296) * 1024 + i - 56320 + 65536 : n;
|
|
2227
2234
|
}
|
|
2228
|
-
function
|
|
2235
|
+
function Wn(e) {
|
|
2229
2236
|
var t = /^\n* /;
|
|
2230
2237
|
return t.test(e);
|
|
2231
2238
|
}
|
|
2232
|
-
var
|
|
2233
|
-
function
|
|
2234
|
-
var s, d = 0, c = null, u = !1, m = !1, f = i !== -1, h = -1, b =
|
|
2239
|
+
var Jn = 1, rt = 2, Gn = 3, zn = 4, $e = 5;
|
|
2240
|
+
function Bo(e, t, n, i, r, o, a, l) {
|
|
2241
|
+
var s, d = 0, c = null, u = !1, m = !1, f = i !== -1, h = -1, b = Oo(Oe(e, 0)) && Lo(Oe(e, e.length - 1));
|
|
2235
2242
|
if (t || a)
|
|
2236
2243
|
for (s = 0; s < e.length; d >= 65536 ? s += 2 : s++) {
|
|
2237
2244
|
if (d = Oe(e, s), !Ke(d))
|
|
2238
2245
|
return $e;
|
|
2239
|
-
b = b &&
|
|
2246
|
+
b = b && Pt(d, c, l), c = d;
|
|
2240
2247
|
}
|
|
2241
2248
|
else {
|
|
2242
2249
|
for (s = 0; s < e.length; d >= 65536 ? s += 2 : s++) {
|
|
2243
|
-
if (d = Oe(e, s), d ===
|
|
2250
|
+
if (d = Oe(e, s), d === Be)
|
|
2244
2251
|
u = !0, f && (m = m || // Foldable line = too long, and not more-indented.
|
|
2245
2252
|
s - h - 1 > i && e[h + 1] !== " ", h = s);
|
|
2246
2253
|
else if (!Ke(d))
|
|
2247
2254
|
return $e;
|
|
2248
|
-
b = b &&
|
|
2255
|
+
b = b && Pt(d, c, l), c = d;
|
|
2249
2256
|
}
|
|
2250
2257
|
m = m || f && s - h - 1 > i && e[h + 1] !== " ";
|
|
2251
2258
|
}
|
|
2252
|
-
return !u && !m ? b && !a && !r(e) ?
|
|
2259
|
+
return !u && !m ? b && !a && !r(e) ? Jn : o === Re ? $e : rt : n > 9 && Wn(e) ? $e : a ? o === Re ? $e : rt : m ? zn : Gn;
|
|
2253
2260
|
}
|
|
2254
|
-
function
|
|
2261
|
+
function Ro(e, t, n, i, r) {
|
|
2255
2262
|
e.dump = (function() {
|
|
2256
2263
|
if (t.length === 0)
|
|
2257
2264
|
return e.quotingType === Re ? '""' : "''";
|
|
2258
|
-
if (!e.noCompatMode && (
|
|
2265
|
+
if (!e.noCompatMode && (_o.indexOf(t) !== -1 || So.test(t)))
|
|
2259
2266
|
return e.quotingType === Re ? '"' + t + '"' : "'" + t + "'";
|
|
2260
2267
|
var o = e.indent * Math.max(1, n), a = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - o), l = i || e.flowLevel > -1 && n >= e.flowLevel;
|
|
2261
2268
|
function s(d) {
|
|
2262
|
-
return
|
|
2269
|
+
return Fo(e, d);
|
|
2263
2270
|
}
|
|
2264
|
-
switch (
|
|
2271
|
+
switch (Bo(
|
|
2265
2272
|
t,
|
|
2266
2273
|
l,
|
|
2267
2274
|
e.indent,
|
|
@@ -2271,47 +2278,47 @@ function To(e, t, n, i, r) {
|
|
|
2271
2278
|
e.forceQuotes && !i,
|
|
2272
2279
|
r
|
|
2273
2280
|
)) {
|
|
2274
|
-
case
|
|
2281
|
+
case Jn:
|
|
2275
2282
|
return t;
|
|
2276
|
-
case
|
|
2283
|
+
case rt:
|
|
2277
2284
|
return "'" + t.replace(/'/g, "''") + "'";
|
|
2278
|
-
case Jn:
|
|
2279
|
-
return "|" + Pt(t, e.indent) + Dt(Kt(t, o));
|
|
2280
2285
|
case Gn:
|
|
2281
|
-
return "
|
|
2286
|
+
return "|" + Dt(t, e.indent) + jt(Nt(t, o));
|
|
2287
|
+
case zn:
|
|
2288
|
+
return ">" + Dt(t, e.indent) + jt(Nt(Ko(t, a), o));
|
|
2282
2289
|
case $e:
|
|
2283
|
-
return '"' +
|
|
2290
|
+
return '"' + No(t) + '"';
|
|
2284
2291
|
default:
|
|
2285
2292
|
throw new se("impossible error: invalid scalar style");
|
|
2286
2293
|
}
|
|
2287
2294
|
})();
|
|
2288
2295
|
}
|
|
2289
|
-
function
|
|
2290
|
-
var n =
|
|
2296
|
+
function Dt(e, t) {
|
|
2297
|
+
var n = Wn(e) ? String(t) : "", i = e[e.length - 1] === `
|
|
2291
2298
|
`, r = i && (e[e.length - 2] === `
|
|
2292
2299
|
` || e === `
|
|
2293
2300
|
`), o = r ? "+" : i ? "" : "-";
|
|
2294
2301
|
return n + o + `
|
|
2295
2302
|
`;
|
|
2296
2303
|
}
|
|
2297
|
-
function
|
|
2304
|
+
function jt(e) {
|
|
2298
2305
|
return e[e.length - 1] === `
|
|
2299
2306
|
` ? e.slice(0, -1) : e;
|
|
2300
2307
|
}
|
|
2301
|
-
function
|
|
2308
|
+
function Ko(e, t) {
|
|
2302
2309
|
for (var n = /(\n+)([^\n]*)/g, i = (function() {
|
|
2303
2310
|
var d = e.indexOf(`
|
|
2304
2311
|
`);
|
|
2305
|
-
return d = d !== -1 ? d : e.length, n.lastIndex = d,
|
|
2312
|
+
return d = d !== -1 ? d : e.length, n.lastIndex = d, Ut(e.slice(0, d), t);
|
|
2306
2313
|
})(), r = e[0] === `
|
|
2307
2314
|
` || e[0] === " ", o, a; a = n.exec(e); ) {
|
|
2308
2315
|
var l = a[1], s = a[2];
|
|
2309
2316
|
o = s[0] === " ", i += l + (!r && !o && s !== "" ? `
|
|
2310
|
-
` : "") +
|
|
2317
|
+
` : "") + Ut(s, t), r = o;
|
|
2311
2318
|
}
|
|
2312
2319
|
return i;
|
|
2313
2320
|
}
|
|
2314
|
-
function
|
|
2321
|
+
function Ut(e, t) {
|
|
2315
2322
|
if (e === "" || e[0] === " ") return e;
|
|
2316
2323
|
for (var n = / [^ ]/g, i, r = 0, o, a = 0, l = 0, s = ""; i = n.exec(e); )
|
|
2317
2324
|
l = i.index, l - r > t && (o = a > r ? a : l, s += `
|
|
@@ -2320,30 +2327,30 @@ function jt(e, t) {
|
|
|
2320
2327
|
`, e.length - r > t && a > r ? s += e.slice(r, a) + `
|
|
2321
2328
|
` + e.slice(a + 1) : s += e.slice(r), s.slice(1);
|
|
2322
2329
|
}
|
|
2323
|
-
function
|
|
2330
|
+
function No(e) {
|
|
2324
2331
|
for (var t = "", n = 0, i, r = 0; r < e.length; n >= 65536 ? r += 2 : r++)
|
|
2325
|
-
n = Oe(e, r), i = oe[n], !i && Ke(n) ? (t += e[r], n >= 65536 && (t += e[r + 1])) : t += i ||
|
|
2332
|
+
n = Oe(e, r), i = oe[n], !i && Ke(n) ? (t += e[r], n >= 65536 && (t += e[r + 1])) : t += i || To(n);
|
|
2326
2333
|
return t;
|
|
2327
2334
|
}
|
|
2328
|
-
function
|
|
2335
|
+
function Mo(e, t, n) {
|
|
2329
2336
|
var i = "", r = e.tag, o, a, l;
|
|
2330
2337
|
for (o = 0, a = n.length; o < a; o += 1)
|
|
2331
2338
|
l = n[o], e.replacer && (l = e.replacer.call(n, String(o), l)), (ge(e, t, l, !1, !1) || typeof l > "u" && ge(e, t, null, !1, !1)) && (i !== "" && (i += "," + (e.condenseFlow ? "" : " ")), i += e.dump);
|
|
2332
2339
|
e.tag = r, e.dump = "[" + i + "]";
|
|
2333
2340
|
}
|
|
2334
|
-
function
|
|
2341
|
+
function qt(e, t, n, i) {
|
|
2335
2342
|
var r = "", o = e.tag, a, l, s;
|
|
2336
2343
|
for (a = 0, l = n.length; a < l; a += 1)
|
|
2337
|
-
s = n[a], e.replacer && (s = e.replacer.call(n, String(a), s)), (ge(e, t + 1, s, !0, !0, !1, !0) || typeof s > "u" && ge(e, t + 1, null, !0, !0, !1, !0)) && ((!i || r !== "") && (r +=
|
|
2344
|
+
s = n[a], e.replacer && (s = e.replacer.call(n, String(a), s)), (ge(e, t + 1, s, !0, !0, !1, !0) || typeof s > "u" && ge(e, t + 1, null, !0, !0, !1, !0)) && ((!i || r !== "") && (r += it(e, t)), e.dump && Be === e.dump.charCodeAt(0) ? r += "-" : r += "- ", r += e.dump);
|
|
2338
2345
|
e.tag = o, e.dump = r || "[]";
|
|
2339
2346
|
}
|
|
2340
|
-
function
|
|
2347
|
+
function Po(e, t, n) {
|
|
2341
2348
|
var i = "", r = e.tag, o = Object.keys(n), a, l, s, d, c;
|
|
2342
2349
|
for (a = 0, l = o.length; a < l; a += 1)
|
|
2343
2350
|
c = "", i !== "" && (c += ", "), e.condenseFlow && (c += '"'), s = o[a], d = n[s], e.replacer && (d = e.replacer.call(n, s, d)), ge(e, t, s, !1, !1) && (e.dump.length > 1024 && (c += "? "), c += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), ge(e, t, d, !1, !1) && (c += e.dump, i += c));
|
|
2344
2351
|
e.tag = r, e.dump = "{" + i + "}";
|
|
2345
2352
|
}
|
|
2346
|
-
function
|
|
2353
|
+
function Do(e, t, n, i) {
|
|
2347
2354
|
var r = "", o = e.tag, a = Object.keys(n), l, s, d, c, u, m;
|
|
2348
2355
|
if (e.sortKeys === !0)
|
|
2349
2356
|
a.sort();
|
|
@@ -2352,17 +2359,17 @@ function Bo(e, t, n, i) {
|
|
|
2352
2359
|
else if (e.sortKeys)
|
|
2353
2360
|
throw new se("sortKeys must be a boolean or a function");
|
|
2354
2361
|
for (l = 0, s = a.length; l < s; l += 1)
|
|
2355
|
-
m = "", (!i || r !== "") && (m +=
|
|
2362
|
+
m = "", (!i || r !== "") && (m += it(e, t)), d = a[l], c = n[d], e.replacer && (c = e.replacer.call(n, d, c)), ge(e, t + 1, d, !0, !0, !0) && (u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, u && (e.dump && Be === e.dump.charCodeAt(0) ? m += "?" : m += "? "), m += e.dump, u && (m += it(e, t)), ge(e, t + 1, c, !0, u) && (e.dump && Be === e.dump.charCodeAt(0) ? m += ":" : m += ": ", m += e.dump, r += m));
|
|
2356
2363
|
e.tag = o, e.dump = r || "{}";
|
|
2357
2364
|
}
|
|
2358
|
-
function
|
|
2365
|
+
function Ht(e, t, n) {
|
|
2359
2366
|
var i, r, o, a, l, s;
|
|
2360
2367
|
for (r = n ? e.explicitTypes : e.implicitTypes, o = 0, a = r.length; o < a; o += 1)
|
|
2361
2368
|
if (l = r[o], (l.instanceOf || l.predicate) && (!l.instanceOf || typeof t == "object" && t instanceof l.instanceOf) && (!l.predicate || l.predicate(t))) {
|
|
2362
2369
|
if (n ? l.multi && l.representName ? e.tag = l.representName(t) : e.tag = l.tag : e.tag = "?", l.represent) {
|
|
2363
|
-
if (s = e.styleMap[l.tag] || l.defaultStyle,
|
|
2370
|
+
if (s = e.styleMap[l.tag] || l.defaultStyle, Dn.call(l.represent) === "[object Function]")
|
|
2364
2371
|
i = l.represent(t, s);
|
|
2365
|
-
else if (
|
|
2372
|
+
else if (jn.call(l.represent, s))
|
|
2366
2373
|
i = l.represent[s](t, s);
|
|
2367
2374
|
else
|
|
2368
2375
|
throw new se("!<" + l.tag + '> tag resolver accepts not "' + s + '" style');
|
|
@@ -2373,19 +2380,19 @@ function qt(e, t, n) {
|
|
|
2373
2380
|
return !1;
|
|
2374
2381
|
}
|
|
2375
2382
|
function ge(e, t, n, i, r, o, a) {
|
|
2376
|
-
e.tag = null, e.dump = n,
|
|
2377
|
-
var l =
|
|
2383
|
+
e.tag = null, e.dump = n, Ht(e, n, !1) || Ht(e, n, !0);
|
|
2384
|
+
var l = Dn.call(e.dump), s = i, d;
|
|
2378
2385
|
i && (i = e.flowLevel < 0 || e.flowLevel > t);
|
|
2379
2386
|
var c = l === "[object Object]" || l === "[object Array]", u, m;
|
|
2380
2387
|
if (c && (u = e.duplicates.indexOf(n), m = u !== -1), (e.tag !== null && e.tag !== "?" || m || e.indent !== 2 && t > 0) && (r = !1), m && e.usedDuplicates[u])
|
|
2381
2388
|
e.dump = "*ref_" + u;
|
|
2382
2389
|
else {
|
|
2383
2390
|
if (c && m && !e.usedDuplicates[u] && (e.usedDuplicates[u] = !0), l === "[object Object]")
|
|
2384
|
-
i && Object.keys(e.dump).length !== 0 ? (
|
|
2391
|
+
i && Object.keys(e.dump).length !== 0 ? (Do(e, t, e.dump, r), m && (e.dump = "&ref_" + u + e.dump)) : (Po(e, t, e.dump), m && (e.dump = "&ref_" + u + " " + e.dump));
|
|
2385
2392
|
else if (l === "[object Array]")
|
|
2386
|
-
i && e.dump.length !== 0 ? (e.noArrayIndent && !a && t > 0 ?
|
|
2393
|
+
i && e.dump.length !== 0 ? (e.noArrayIndent && !a && t > 0 ? qt(e, t - 1, e.dump, r) : qt(e, t, e.dump, r), m && (e.dump = "&ref_" + u + e.dump)) : (Mo(e, t, e.dump), m && (e.dump = "&ref_" + u + " " + e.dump));
|
|
2387
2394
|
else if (l === "[object String]")
|
|
2388
|
-
e.tag !== "?" &&
|
|
2395
|
+
e.tag !== "?" && Ro(e, e.dump, t, o, s);
|
|
2389
2396
|
else {
|
|
2390
2397
|
if (l === "[object Undefined]")
|
|
2391
2398
|
return !1;
|
|
@@ -2398,71 +2405,71 @@ function ge(e, t, n, i, r, o, a) {
|
|
|
2398
2405
|
}
|
|
2399
2406
|
return !0;
|
|
2400
2407
|
}
|
|
2401
|
-
function
|
|
2408
|
+
function jo(e, t) {
|
|
2402
2409
|
var n = [], i = [], r, o;
|
|
2403
|
-
for (
|
|
2410
|
+
for (at(e, n, i), r = 0, o = i.length; r < o; r += 1)
|
|
2404
2411
|
t.duplicates.push(n[i[r]]);
|
|
2405
2412
|
t.usedDuplicates = new Array(o);
|
|
2406
2413
|
}
|
|
2407
|
-
function
|
|
2414
|
+
function at(e, t, n) {
|
|
2408
2415
|
var i, r, o;
|
|
2409
2416
|
if (e !== null && typeof e == "object")
|
|
2410
2417
|
if (r = t.indexOf(e), r !== -1)
|
|
2411
2418
|
n.indexOf(r) === -1 && n.push(r);
|
|
2412
2419
|
else if (t.push(e), Array.isArray(e))
|
|
2413
2420
|
for (r = 0, o = e.length; r < o; r += 1)
|
|
2414
|
-
|
|
2421
|
+
at(e[r], t, n);
|
|
2415
2422
|
else
|
|
2416
2423
|
for (i = Object.keys(e), r = 0, o = i.length; r < o; r += 1)
|
|
2417
|
-
|
|
2424
|
+
at(e[i[r]], t, n);
|
|
2418
2425
|
}
|
|
2419
|
-
function
|
|
2426
|
+
function Uo(e, t) {
|
|
2420
2427
|
t = t || {};
|
|
2421
|
-
var n = new
|
|
2422
|
-
n.noRefs ||
|
|
2428
|
+
var n = new Io(t);
|
|
2429
|
+
n.noRefs || jo(e, n);
|
|
2423
2430
|
var i = e;
|
|
2424
2431
|
return n.replacer && (i = n.replacer.call({ "": i }, "", i)), ge(n, 0, i, !0, !0) ? n.dump + `
|
|
2425
2432
|
` : "";
|
|
2426
2433
|
}
|
|
2427
|
-
var
|
|
2428
|
-
dump:
|
|
2434
|
+
var qo = Uo, Ho = {
|
|
2435
|
+
dump: qo
|
|
2429
2436
|
};
|
|
2430
|
-
function
|
|
2437
|
+
function gt(e, t) {
|
|
2431
2438
|
return function() {
|
|
2432
2439
|
throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
|
|
2433
2440
|
};
|
|
2434
2441
|
}
|
|
2435
|
-
var
|
|
2436
|
-
binary:
|
|
2437
|
-
float:
|
|
2438
|
-
map:
|
|
2439
|
-
null:
|
|
2440
|
-
pairs:
|
|
2441
|
-
set:
|
|
2442
|
-
timestamp:
|
|
2443
|
-
bool:
|
|
2444
|
-
int:
|
|
2445
|
-
merge:
|
|
2446
|
-
omap:
|
|
2447
|
-
seq:
|
|
2448
|
-
str:
|
|
2449
|
-
},
|
|
2450
|
-
Type:
|
|
2451
|
-
Schema:
|
|
2452
|
-
FAILSAFE_SCHEMA:
|
|
2453
|
-
JSON_SCHEMA:
|
|
2454
|
-
CORE_SCHEMA:
|
|
2455
|
-
DEFAULT_SCHEMA:
|
|
2456
|
-
load:
|
|
2457
|
-
loadAll:
|
|
2458
|
-
dump:
|
|
2459
|
-
YAMLException:
|
|
2460
|
-
types:
|
|
2461
|
-
safeLoad:
|
|
2462
|
-
safeLoadAll:
|
|
2463
|
-
safeDump:
|
|
2442
|
+
var Yo = ae, Vo = dn, Wo = gn, Jo = kn, Go = Cn, zo = dt, Qo = Pn.load, Zo = Pn.loadAll, Xo = Ho.dump, el = se, tl = {
|
|
2443
|
+
binary: Sn,
|
|
2444
|
+
float: bn,
|
|
2445
|
+
map: mn,
|
|
2446
|
+
null: hn,
|
|
2447
|
+
pairs: Tn,
|
|
2448
|
+
set: En,
|
|
2449
|
+
timestamp: wn,
|
|
2450
|
+
bool: yn,
|
|
2451
|
+
int: vn,
|
|
2452
|
+
merge: _n,
|
|
2453
|
+
omap: $n,
|
|
2454
|
+
seq: pn,
|
|
2455
|
+
str: fn
|
|
2456
|
+
}, nl = gt("safeLoad", "load"), il = gt("safeLoadAll", "loadAll"), rl = gt("safeDump", "dump"), Qn = {
|
|
2457
|
+
Type: Yo,
|
|
2458
|
+
Schema: Vo,
|
|
2459
|
+
FAILSAFE_SCHEMA: Wo,
|
|
2460
|
+
JSON_SCHEMA: Jo,
|
|
2461
|
+
CORE_SCHEMA: Go,
|
|
2462
|
+
DEFAULT_SCHEMA: zo,
|
|
2463
|
+
load: Qo,
|
|
2464
|
+
loadAll: Zo,
|
|
2465
|
+
dump: Xo,
|
|
2466
|
+
YAMLException: el,
|
|
2467
|
+
types: tl,
|
|
2468
|
+
safeLoad: nl,
|
|
2469
|
+
safeLoadAll: il,
|
|
2470
|
+
safeDump: rl
|
|
2464
2471
|
};
|
|
2465
|
-
const
|
|
2472
|
+
const al = { class: "yaml-config config-card-code-block" }, Zn = /* @__PURE__ */ Q({
|
|
2466
2473
|
__name: "YamlCodeBlock",
|
|
2467
2474
|
props: {
|
|
2468
2475
|
/** A record to indicate the entity's configuration, used to populate the YAML code block */
|
|
@@ -2474,12 +2481,12 @@ const Zo = { class: "yaml-config config-card-code-block" }, Qn = /* @__PURE__ */
|
|
|
2474
2481
|
setup(e) {
|
|
2475
2482
|
const t = e, n = _(() => {
|
|
2476
2483
|
const i = Object.fromEntries(Object.entries(t.entityRecord).filter(([, r]) => r !== null && r !== "" && (Array.isArray(r) ? r.length !== 0 : !0)));
|
|
2477
|
-
return Object.keys(i).length === 0 && i.constructor === Object ? "" :
|
|
2484
|
+
return Object.keys(i).length === 0 && i.constructor === Object ? "" : Qn.dump(i).trim();
|
|
2478
2485
|
});
|
|
2479
2486
|
return (i, r) => {
|
|
2480
2487
|
const o = U("KCodeBlock");
|
|
2481
|
-
return g(), S("div",
|
|
2482
|
-
t.entityRecord ? (g(),
|
|
2488
|
+
return g(), S("div", al, [
|
|
2489
|
+
t.entityRecord ? (g(), L(o, {
|
|
2483
2490
|
key: 0,
|
|
2484
2491
|
id: "yaml-codeblock",
|
|
2485
2492
|
code: n.value,
|
|
@@ -2490,7 +2497,7 @@ const Zo = { class: "yaml-config config-card-code-block" }, Qn = /* @__PURE__ */
|
|
|
2490
2497
|
]);
|
|
2491
2498
|
};
|
|
2492
2499
|
}
|
|
2493
|
-
}),
|
|
2500
|
+
}), ol = { class: "terraform-config config-card-code-block" }, ie = " ", Xn = /* @__PURE__ */ Q({
|
|
2494
2501
|
__name: "TerraformCodeBlock",
|
|
2495
2502
|
props: {
|
|
2496
2503
|
/** A record to indicate the entity's configuration, used to populate the Terraform code block */
|
|
@@ -2514,7 +2521,7 @@ const Zo = { class: "yaml-config config-card-code-block" }, Qn = /* @__PURE__ */
|
|
|
2514
2521
|
}
|
|
2515
2522
|
},
|
|
2516
2523
|
setup(e) {
|
|
2517
|
-
const t = e, n = _(() =>
|
|
2524
|
+
const t = e, n = _(() => Ei.includes(t.entityType)), i = _(() => Ii.includes(t.entityType)), r = (c, u) => {
|
|
2518
2525
|
const m = ie;
|
|
2519
2526
|
let f = "";
|
|
2520
2527
|
return typeof c == "string" ? f += `${m}${u} = "${c}"
|
|
@@ -2587,8 +2594,8 @@ const Zo = { class: "yaml-config config-card-code-block" }, Qn = /* @__PURE__ */
|
|
|
2587
2594
|
});
|
|
2588
2595
|
return (c, u) => {
|
|
2589
2596
|
const m = U("KCodeBlock");
|
|
2590
|
-
return g(), S("div",
|
|
2591
|
-
t.entityRecord ? (g(),
|
|
2597
|
+
return g(), S("div", ol, [
|
|
2598
|
+
t.entityRecord ? (g(), L(m, {
|
|
2592
2599
|
key: 0,
|
|
2593
2600
|
id: "terraform-codeblock",
|
|
2594
2601
|
code: d.value,
|
|
@@ -2599,7 +2606,7 @@ const Zo = { class: "yaml-config config-card-code-block" }, Qn = /* @__PURE__ */
|
|
|
2599
2606
|
]);
|
|
2600
2607
|
};
|
|
2601
2608
|
}
|
|
2602
|
-
}),
|
|
2609
|
+
}), ll = { class: "deck-config config-card-code-block" }, sl = /* @__PURE__ */ Q({
|
|
2603
2610
|
__name: "DeckCodeBlock",
|
|
2604
2611
|
props: {
|
|
2605
2612
|
app: {},
|
|
@@ -2629,7 +2636,7 @@ const Zo = { class: "yaml-config config-card-code-block" }, Qn = /* @__PURE__ */
|
|
|
2629
2636
|
...a.value,
|
|
2630
2637
|
[u]: [c]
|
|
2631
2638
|
};
|
|
2632
|
-
return
|
|
2639
|
+
return Qn.dump(m, { quotingType: '"' }).trim();
|
|
2633
2640
|
}), s = _(() => o.value === "bash" ? "export DECK_KONNECT_TOKEN='YOUR_KONNECT_PAT'" : '$env:DECK_KONNECT_TOKEN = "YOUR_KONNECT_PAT"'), d = _(() => {
|
|
2634
2641
|
let c = "deck gateway apply -";
|
|
2635
2642
|
return t.geoApiServerUrl ? c += ` --konnect-addr ${t.geoApiServerUrl}` : t.kongAdminApiUrl && (c += ` --kong-addr ${t.kongAdminApiUrl}`), o.value === "bash" ? `echo '
|
|
@@ -2640,18 +2647,18 @@ ${l.value}
|
|
|
2640
2647
|
});
|
|
2641
2648
|
return (c, u) => {
|
|
2642
2649
|
const m = U("KSelect"), f = U("KBadge"), h = U("KCodeBlock");
|
|
2643
|
-
return g(), S("div",
|
|
2650
|
+
return g(), S("div", ll, [
|
|
2644
2651
|
N(m, {
|
|
2645
2652
|
modelValue: o.value,
|
|
2646
2653
|
"onUpdate:modelValue": u[0] || (u[0] = (b) => o.value = b),
|
|
2647
2654
|
items: r
|
|
2648
2655
|
}, {
|
|
2649
2656
|
"item-template": x(({ item: b }) => [
|
|
2650
|
-
b.value === "powershell" ? (g(),
|
|
2657
|
+
b.value === "powershell" ? (g(), L(C(kt), { key: 0 })) : (g(), L(C(Ct), { key: 1 })),
|
|
2651
2658
|
q(" " + I(b.label), 1)
|
|
2652
2659
|
]),
|
|
2653
2660
|
"selected-item-template": x(({ item: b }) => [
|
|
2654
|
-
b.value === "powershell" ? (g(),
|
|
2661
|
+
b.value === "powershell" ? (g(), L(C(kt), { key: 0 })) : (g(), L(C(Ct), { key: 1 })),
|
|
2655
2662
|
q(" " + I(b.label), 1)
|
|
2656
2663
|
]),
|
|
2657
2664
|
_: 1
|
|
@@ -2662,7 +2669,7 @@ ${l.value}
|
|
|
2662
2669
|
tag: "p"
|
|
2663
2670
|
}, Ae({
|
|
2664
2671
|
link: x(() => [
|
|
2665
|
-
N(C(
|
|
2672
|
+
N(C(di), {
|
|
2666
2673
|
href: e.app === "konnect" ? "https://developer.konghq.com/deck/get-started/" : "https://developer.konghq.com/deck/gateway/configuration/"
|
|
2667
2674
|
}, {
|
|
2668
2675
|
default: x(() => [
|
|
@@ -2686,7 +2693,7 @@ ${l.value}
|
|
|
2686
2693
|
key: "0"
|
|
2687
2694
|
} : void 0
|
|
2688
2695
|
]), 1032, ["data-testid", "keypath"]),
|
|
2689
|
-
e.app === "konnect" ? (g(),
|
|
2696
|
+
e.app === "konnect" ? (g(), L(h, {
|
|
2690
2697
|
key: 0,
|
|
2691
2698
|
id: "deck-env-codeblock",
|
|
2692
2699
|
code: s.value,
|
|
@@ -2695,7 +2702,7 @@ ${l.value}
|
|
|
2695
2702
|
theme: "dark",
|
|
2696
2703
|
onCodeBlockRender: C(Ie)
|
|
2697
2704
|
}, null, 8, ["code", "language", "onCodeBlockRender"])) : D("", !0),
|
|
2698
|
-
t.entityRecord ? (g(),
|
|
2705
|
+
t.entityRecord ? (g(), L(h, {
|
|
2699
2706
|
key: 1,
|
|
2700
2707
|
id: "deck-codeblock",
|
|
2701
2708
|
code: d.value,
|
|
@@ -2706,13 +2713,13 @@ ${l.value}
|
|
|
2706
2713
|
]);
|
|
2707
2714
|
};
|
|
2708
2715
|
}
|
|
2709
|
-
}),
|
|
2716
|
+
}), ei = /* @__PURE__ */ ce(sl, [["__scopeId", "data-v-04c956bc"]]), cl = {
|
|
2710
2717
|
key: 0,
|
|
2711
2718
|
class: "config-card-display-form"
|
|
2712
|
-
},
|
|
2719
|
+
}, ul = ["data-testid"], dl = {
|
|
2713
2720
|
key: 0,
|
|
2714
2721
|
class: "config-card-prop-section-title"
|
|
2715
|
-
},
|
|
2722
|
+
}, fl = /* @__PURE__ */ Q({
|
|
2716
2723
|
__name: "ConfigCardDisplay",
|
|
2717
2724
|
props: {
|
|
2718
2725
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2778,15 +2785,15 @@ ${l.value}
|
|
|
2778
2785
|
return delete s.created_at, delete s.updated_at, s;
|
|
2779
2786
|
}), a = _(() => t.fetcherUrl.replace(/(\?|&)__ui_data=true/, ""));
|
|
2780
2787
|
return (l, s) => (g(), S(pe, null, [
|
|
2781
|
-
e.format === "structured" ? (g(), S("div",
|
|
2788
|
+
e.format === "structured" ? (g(), S("div", cl, [
|
|
2782
2789
|
(g(!0), S(pe, null, de(e.propListTypes, (d) => (g(), S("div", {
|
|
2783
2790
|
key: `config-card-details-${d}-props`,
|
|
2784
2791
|
class: fe(`config-card-details-${d}-props`),
|
|
2785
2792
|
"data-testid": `config-card-details-${d}-props`
|
|
2786
2793
|
}, [
|
|
2787
|
-
d !== "basic" ? (g(), S("div",
|
|
2794
|
+
d !== "basic" ? (g(), S("div", dl, I(d === "advanced" ? C(i)("baseConfigCard.sections.advanced") : d === "plugin" ? C(i)("baseConfigCard.sections.plugin") : C(i)("baseConfigCard.sections.policy")), 1)) : D("", !0),
|
|
2788
2795
|
(g(!0), S(pe, null, de(e.propertyCollections[d], (c) => j(l.$slots, `config-card-item-${c.key}`, { row: c }, () => [
|
|
2789
|
-
(g(),
|
|
2796
|
+
(g(), L(ln, {
|
|
2790
2797
|
key: c.key,
|
|
2791
2798
|
item: c
|
|
2792
2799
|
}, Ae({
|
|
@@ -2810,26 +2817,26 @@ ${l.value}
|
|
|
2810
2817
|
} : void 0
|
|
2811
2818
|
]), 1032, ["item"]))
|
|
2812
2819
|
], !0)), 256))
|
|
2813
|
-
], 10,
|
|
2820
|
+
], 10, ul))), 128))
|
|
2814
2821
|
])) : D("", !0),
|
|
2815
|
-
e.format === "json" && o.value ? (g(),
|
|
2822
|
+
e.format === "json" && o.value ? (g(), L(sn, {
|
|
2816
2823
|
key: 1,
|
|
2817
2824
|
config: t.config,
|
|
2818
2825
|
"entity-record": o.value,
|
|
2819
2826
|
"fetcher-url": a.value,
|
|
2820
2827
|
"request-method": "get"
|
|
2821
2828
|
}, null, 8, ["config", "entity-record", "fetcher-url"])) : D("", !0),
|
|
2822
|
-
e.format === "yaml" && o.value ? (g(),
|
|
2829
|
+
e.format === "yaml" && o.value ? (g(), L(Zn, {
|
|
2823
2830
|
key: 2,
|
|
2824
2831
|
"entity-record": o.value
|
|
2825
2832
|
}, null, 8, ["entity-record"])) : D("", !0),
|
|
2826
|
-
e.format === "terraform" && o.value ? (g(),
|
|
2833
|
+
e.format === "terraform" && o.value ? (g(), L(Xn, {
|
|
2827
2834
|
key: 3,
|
|
2828
2835
|
"entity-record": o.value,
|
|
2829
2836
|
"entity-type": t.entityType,
|
|
2830
2837
|
"sub-entity-type": t.subEntityType
|
|
2831
2838
|
}, null, 8, ["entity-record", "entity-type", "sub-entity-type"])) : D("", !0),
|
|
2832
|
-
e.format === "deck" && o.value ? (g(),
|
|
2839
|
+
e.format === "deck" && o.value ? (g(), L(ei, {
|
|
2833
2840
|
key: 4,
|
|
2834
2841
|
app: e.config.app,
|
|
2835
2842
|
"control-plane-name": e.config.app === "konnect" ? e.config.controlPlaneName : void 0,
|
|
@@ -2841,13 +2848,13 @@ ${l.value}
|
|
|
2841
2848
|
}, null, 8, ["app", "control-plane-name", "entity-record", "entity-type", "geo-api-server-url", "kong-admin-api-url", "workspace"])) : D("", !0)
|
|
2842
2849
|
], 64));
|
|
2843
2850
|
}
|
|
2844
|
-
}),
|
|
2851
|
+
}), pl = /* @__PURE__ */ ce(fl, [["__scopeId", "data-v-50ba1af0"]]), ml = {
|
|
2845
2852
|
class: "config-card-title",
|
|
2846
2853
|
"data-testid": "config-card-title"
|
|
2847
|
-
},
|
|
2854
|
+
}, gl = { class: "config-card-actions" }, hl = ["href"], yl = {
|
|
2848
2855
|
key: 2,
|
|
2849
2856
|
class: "config-card-details-section"
|
|
2850
|
-
},
|
|
2857
|
+
}, vl = /* @__PURE__ */ Q({
|
|
2851
2858
|
__name: "EntityBaseConfigCard",
|
|
2852
2859
|
props: {
|
|
2853
2860
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2991,7 +2998,7 @@ ${l.value}
|
|
|
2991
2998
|
label: r("baseForm.configuration.terraform"),
|
|
2992
2999
|
value: "terraform"
|
|
2993
3000
|
});
|
|
2994
|
-
const d =
|
|
3001
|
+
const d = Xt.includes(i.entityType);
|
|
2995
3002
|
(i.config.app === "kongManager" || i.config.enableDeckConfig) && d && s.push({
|
|
2996
3003
|
label: r("baseForm.configuration.deck"),
|
|
2997
3004
|
value: "deck"
|
|
@@ -3003,7 +3010,7 @@ ${l.value}
|
|
|
3003
3010
|
};
|
|
3004
3011
|
xe(m, (p) => {
|
|
3005
3012
|
i.config.formatPreferenceKey && h(i.config.formatPreferenceKey, p);
|
|
3006
|
-
}),
|
|
3013
|
+
}), lt(() => {
|
|
3007
3014
|
if (i.config.formatPreferenceKey) {
|
|
3008
3015
|
const p = localStorage.getItem(i.config.formatPreferenceKey);
|
|
3009
3016
|
p && s.some((K) => K.value === p) ? m.value = p : m.value = u, h(i.config.formatPreferenceKey, m.value);
|
|
@@ -3064,8 +3071,8 @@ ${l.value}
|
|
|
3064
3071
|
return p.sort(function(P, O) {
|
|
3065
3072
|
return P[1] - O[1];
|
|
3066
3073
|
}), p.map((P) => {
|
|
3067
|
-
var
|
|
3068
|
-
const O = P[0], Z = (
|
|
3074
|
+
var ht, yt;
|
|
3075
|
+
const O = P[0], Z = (ht = w.value) == null ? void 0 : ht[O], W = ((yt = i.configSchema) == null ? void 0 : yt[O]) || {}, X = b[O];
|
|
3069
3076
|
return {
|
|
3070
3077
|
key: O,
|
|
3071
3078
|
value: Z,
|
|
@@ -3144,7 +3151,7 @@ ${l.value}
|
|
|
3144
3151
|
});
|
|
3145
3152
|
return xe(y, (p) => {
|
|
3146
3153
|
n("loading", p);
|
|
3147
|
-
}, { immediate: !0 }),
|
|
3154
|
+
}, { immediate: !0 }), st(async () => {
|
|
3148
3155
|
$.value = !1, y.value = !0;
|
|
3149
3156
|
try {
|
|
3150
3157
|
const { data: p } = await l.get(v.value);
|
|
@@ -3165,12 +3172,12 @@ ${l.value}
|
|
|
3165
3172
|
}
|
|
3166
3173
|
}), (p, K) => {
|
|
3167
3174
|
const H = U("KLabel"), V = U("KSelect"), ne = U("KButton"), P = U("KSkeleton"), O = U("KEmptyState"), Z = U("KCard");
|
|
3168
|
-
return g(),
|
|
3175
|
+
return g(), L(Z, {
|
|
3169
3176
|
class: "kong-ui-entity-base-config-card",
|
|
3170
3177
|
"title-tag": e.titleTag
|
|
3171
3178
|
}, Ae({
|
|
3172
3179
|
actions: x(() => [
|
|
3173
|
-
|
|
3180
|
+
B("div", gl, [
|
|
3174
3181
|
j(p.$slots, "actions", {}, void 0, !0),
|
|
3175
3182
|
N(H, {
|
|
3176
3183
|
class: "config-format-select-label",
|
|
@@ -3188,42 +3195,42 @@ ${l.value}
|
|
|
3188
3195
|
items: s,
|
|
3189
3196
|
onChange: f
|
|
3190
3197
|
}, null, 8, ["modelValue"]),
|
|
3191
|
-
e.configCardDoc ? (g(),
|
|
3198
|
+
e.configCardDoc ? (g(), L(ne, {
|
|
3192
3199
|
key: 0,
|
|
3193
3200
|
appearance: "tertiary",
|
|
3194
3201
|
class: "book-icon",
|
|
3195
3202
|
"data-testid": "book-icon"
|
|
3196
3203
|
}, {
|
|
3197
3204
|
default: x(() => [
|
|
3198
|
-
|
|
3205
|
+
B("a", {
|
|
3199
3206
|
href: e.configCardDoc,
|
|
3200
3207
|
rel: "noopener",
|
|
3201
3208
|
target: "_blank"
|
|
3202
3209
|
}, [
|
|
3203
|
-
N(C(
|
|
3204
|
-
], 8,
|
|
3210
|
+
N(C(Qt), { size: C(xr) }, null, 8, ["size"])
|
|
3211
|
+
], 8, hl)
|
|
3205
3212
|
]),
|
|
3206
3213
|
_: 1
|
|
3207
3214
|
})) : D("", !0)
|
|
3208
3215
|
])
|
|
3209
3216
|
]),
|
|
3210
3217
|
default: x(() => [
|
|
3211
|
-
y.value ? (g(),
|
|
3218
|
+
y.value ? (g(), L(P, {
|
|
3212
3219
|
key: 0,
|
|
3213
3220
|
"data-testid": "config-card-loader",
|
|
3214
3221
|
"table-columns": 2,
|
|
3215
3222
|
type: "table"
|
|
3216
|
-
})) : $.value ? (g(),
|
|
3223
|
+
})) : $.value ? (g(), L(O, {
|
|
3217
3224
|
key: 1,
|
|
3218
3225
|
"data-testid": "config-card-fetch-error",
|
|
3219
3226
|
"icon-variant": "error"
|
|
3220
3227
|
}, {
|
|
3221
3228
|
default: x(() => [
|
|
3222
|
-
|
|
3229
|
+
B("h3", null, I(k.value), 1)
|
|
3223
3230
|
]),
|
|
3224
3231
|
_: 1
|
|
3225
|
-
})) : (g(), S("div",
|
|
3226
|
-
N(
|
|
3232
|
+
})) : (g(), S("div", yl, [
|
|
3233
|
+
N(pl, {
|
|
3227
3234
|
"code-block-record-formatter": e.codeBlockRecordFormatter,
|
|
3228
3235
|
config: e.config,
|
|
3229
3236
|
"entity-type": e.entityType,
|
|
@@ -3237,7 +3244,7 @@ ${l.value}
|
|
|
3237
3244
|
de(Object.keys(p.$slots), (W) => ({
|
|
3238
3245
|
name: W,
|
|
3239
3246
|
fn: x((X) => [
|
|
3240
|
-
j(p.$slots, W,
|
|
3247
|
+
j(p.$slots, W, Gt({ record: w.value }, X), void 0, !0)
|
|
3241
3248
|
])
|
|
3242
3249
|
}))
|
|
3243
3250
|
]), 1032, ["code-block-record-formatter", "config", "entity-type", "fetcher-url", "format", "prop-list-types", "property-collections", "record", "sub-entity-type"])
|
|
@@ -3248,7 +3255,7 @@ ${l.value}
|
|
|
3248
3255
|
e.hideTitle ? void 0 : {
|
|
3249
3256
|
name: "title",
|
|
3250
3257
|
fn: x(() => [
|
|
3251
|
-
|
|
3258
|
+
B("span", ml, [
|
|
3252
3259
|
j(p.$slots, "title", {}, () => [
|
|
3253
3260
|
q(I(C(r)("baseConfigCard.title")), 1)
|
|
3254
3261
|
], !0)
|
|
@@ -3259,10 +3266,10 @@ ${l.value}
|
|
|
3259
3266
|
]), 1032, ["title-tag"]);
|
|
3260
3267
|
};
|
|
3261
3268
|
}
|
|
3262
|
-
}),
|
|
3269
|
+
}), Ws = /* @__PURE__ */ ce(vl, [["__scopeId", "data-v-77c89593"]]), bl = {
|
|
3263
3270
|
/** Enable the new plugin form layout */
|
|
3264
3271
|
KM_1948_PLUGIN_FORM_LAYOUT: "KM_1948_PLUGIN_FORM_LAYOUT"
|
|
3265
|
-
},
|
|
3272
|
+
}, kl = ["novalidate"], Cl = /* @__PURE__ */ Q({
|
|
3266
3273
|
__name: "EntityBaseForm",
|
|
3267
3274
|
props: {
|
|
3268
3275
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3386,7 +3393,7 @@ ${l.value}
|
|
|
3386
3393
|
emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel", "codeBlockTabChange"],
|
|
3387
3394
|
setup(e, { expose: t, emit: n }) {
|
|
3388
3395
|
var E;
|
|
3389
|
-
const i =
|
|
3396
|
+
const i = ot(bl.KM_1948_PLUGIN_FORM_LAYOUT, _(() => !1)), r = n, o = e, a = Si(), { i18n: { t: l } } = z.useI18n(), { getMessageFromError: s } = z.useErrors(), { axiosInstance: d } = z.useAxios((E = o.config) == null ? void 0 : E.axiosRequestConfig), c = M(!1), u = _(() => !!o.editId), m = M(!1), f = M(""), h = _(() => o.canSubmit === !1 || o.isReadonly), b = M(!1), y = _(() => {
|
|
3390
3397
|
var A, p;
|
|
3391
3398
|
let v = `${o.config.apiBaseUrl}${o.fetchUrl}`;
|
|
3392
3399
|
return o.config.app === "konnect" ? v = v.replace(/{controlPlaneId}/gi, ((A = o.config) == null ? void 0 : A.controlPlaneId) || "") : o.config.app === "kongManager" && (v = v.replace(/\/{workspace}/gi, (p = o.config) != null && p.workspace ? `/${o.config.workspace}` : "")), o.editId ? (v = v.replace(/{id}/gi, o.editId), v) : (v = v.replace(/\/{id}/gi, ""), v);
|
|
@@ -3412,13 +3419,13 @@ ${l.value}
|
|
|
3412
3419
|
title: l("baseForm.configuration.terraform"),
|
|
3413
3420
|
hash: "#terraform"
|
|
3414
3421
|
});
|
|
3415
|
-
const R =
|
|
3422
|
+
const R = Xt.includes(o.entityType);
|
|
3416
3423
|
return (o.config.app === "kongManager" || o.config.enableDeckTab) && R && J.value.push({
|
|
3417
3424
|
title: l("baseForm.configuration.deck"),
|
|
3418
3425
|
hash: "#deck"
|
|
3419
3426
|
}), xe(() => c.value, (v) => {
|
|
3420
3427
|
r("loading", v);
|
|
3421
|
-
}, { immediate: !0 }),
|
|
3428
|
+
}, { immediate: !0 }), st(async () => {
|
|
3422
3429
|
if (o.editId)
|
|
3423
3430
|
try {
|
|
3424
3431
|
m.value = !1, c.value = !0;
|
|
@@ -3436,16 +3443,16 @@ ${l.value}
|
|
|
3436
3443
|
formSubmit: Y
|
|
3437
3444
|
}), (v, A) => {
|
|
3438
3445
|
const p = U("KSkeleton"), K = U("KEmptyState"), H = U("KAlert"), V = U("KButton"), ne = U("KTabs"), P = U("KSlideout");
|
|
3439
|
-
return g(),
|
|
3446
|
+
return g(), L(qe(e.wrapperComponent), {
|
|
3440
3447
|
class: fe(["kong-ui-entity-base-form", {
|
|
3441
3448
|
"new-form-layout": C(i) && e.entityType === C(ke).Plugin
|
|
3442
3449
|
}])
|
|
3443
3450
|
}, {
|
|
3444
3451
|
default: x(() => [
|
|
3445
|
-
c.value ? (g(),
|
|
3452
|
+
c.value ? (g(), L(p, {
|
|
3446
3453
|
key: 0,
|
|
3447
3454
|
type: "form"
|
|
3448
|
-
})) : m.value ? (g(),
|
|
3455
|
+
})) : m.value ? (g(), L(K, {
|
|
3449
3456
|
key: 1,
|
|
3450
3457
|
"action-button-text": C(l)("baseForm.actions.back"),
|
|
3451
3458
|
"data-testid": "form-fetch-error",
|
|
@@ -3453,7 +3460,7 @@ ${l.value}
|
|
|
3453
3460
|
onClickAction: k
|
|
3454
3461
|
}, {
|
|
3455
3462
|
default: x(() => [
|
|
3456
|
-
|
|
3463
|
+
B("h3", null, I(f.value), 1)
|
|
3457
3464
|
]),
|
|
3458
3465
|
_: 1
|
|
3459
3466
|
}, 8, ["action-button-text"])) : (g(), S("form", {
|
|
@@ -3464,19 +3471,19 @@ ${l.value}
|
|
|
3464
3471
|
onSubmit: Ne(Y, ["prevent"])
|
|
3465
3472
|
}, [
|
|
3466
3473
|
j(v.$slots, "default", {}, void 0, !0),
|
|
3467
|
-
e.errorMessage ? (g(),
|
|
3474
|
+
e.errorMessage ? (g(), L(H, {
|
|
3468
3475
|
key: 0,
|
|
3469
3476
|
appearance: "danger",
|
|
3470
3477
|
class: "form-error",
|
|
3471
3478
|
"data-testid": "form-error",
|
|
3472
3479
|
message: e.errorMessage
|
|
3473
3480
|
}, null, 8, ["message"])) : D("", !0),
|
|
3474
|
-
e.hideActions ? D("", !0) : (g(),
|
|
3481
|
+
e.hideActions ? D("", !0) : (g(), L(zt, {
|
|
3475
3482
|
key: 1,
|
|
3476
3483
|
disabled: !e.actionTeleportTarget,
|
|
3477
3484
|
to: e.actionTeleportTarget
|
|
3478
3485
|
}, [
|
|
3479
|
-
|
|
3486
|
+
B("div", {
|
|
3480
3487
|
class: fe(["form-actions", { "form-actions-reverted": e.alignActionButtonToLeft }]),
|
|
3481
3488
|
"data-testid": "form-actions"
|
|
3482
3489
|
}, [
|
|
@@ -3518,7 +3525,7 @@ ${l.value}
|
|
|
3518
3525
|
], !0)
|
|
3519
3526
|
], 2)
|
|
3520
3527
|
], 8, ["disabled", "to"]))
|
|
3521
|
-
], 40,
|
|
3528
|
+
], 40, kl)),
|
|
3522
3529
|
N(P, {
|
|
3523
3530
|
"close-on-blur": !1,
|
|
3524
3531
|
"data-testid": "form-view-configuration-slideout",
|
|
@@ -3529,7 +3536,7 @@ ${l.value}
|
|
|
3529
3536
|
onClose: A[4] || (A[4] = (O) => $())
|
|
3530
3537
|
}, {
|
|
3531
3538
|
default: x(() => [
|
|
3532
|
-
|
|
3539
|
+
B("div", null, [
|
|
3533
3540
|
j(v.$slots, "configuration-slideout-message", {}, () => [
|
|
3534
3541
|
q(I(C(l)("baseForm.configuration.message")), 1)
|
|
3535
3542
|
], !0)
|
|
@@ -3540,7 +3547,7 @@ ${l.value}
|
|
|
3540
3547
|
onChange: A[3] || (A[3] = (O) => r("codeBlockTabChange", O.replace("#", "")))
|
|
3541
3548
|
}, {
|
|
3542
3549
|
json: x(() => [
|
|
3543
|
-
N(
|
|
3550
|
+
N(sn, {
|
|
3544
3551
|
config: e.config,
|
|
3545
3552
|
"entity-record": o.formFields,
|
|
3546
3553
|
"fetcher-url": y.value,
|
|
@@ -3548,19 +3555,19 @@ ${l.value}
|
|
|
3548
3555
|
}, null, 8, ["config", "entity-record", "fetcher-url", "request-method"])
|
|
3549
3556
|
]),
|
|
3550
3557
|
yaml: x(() => [
|
|
3551
|
-
N(
|
|
3558
|
+
N(Zn, {
|
|
3552
3559
|
"entity-record": o.formFields
|
|
3553
3560
|
}, null, 8, ["entity-record"])
|
|
3554
3561
|
]),
|
|
3555
3562
|
terraform: x(() => [
|
|
3556
|
-
N(
|
|
3563
|
+
N(Xn, {
|
|
3557
3564
|
"entity-record": o.formFields,
|
|
3558
3565
|
"entity-type": e.entityType,
|
|
3559
3566
|
"sub-entity-type": e.subEntityType
|
|
3560
3567
|
}, null, 8, ["entity-record", "entity-type", "sub-entity-type"])
|
|
3561
3568
|
]),
|
|
3562
3569
|
deck: x(() => [
|
|
3563
|
-
N(
|
|
3570
|
+
N(ei, {
|
|
3564
3571
|
app: e.config.app,
|
|
3565
3572
|
"control-plane-name": e.config.app === "konnect" ? e.config.controlPlaneName : void 0,
|
|
3566
3573
|
"entity-record": o.formFields,
|
|
@@ -3580,7 +3587,7 @@ ${l.value}
|
|
|
3580
3587
|
}, 8, ["class"]);
|
|
3581
3588
|
};
|
|
3582
3589
|
}
|
|
3583
|
-
}),
|
|
3590
|
+
}), Js = /* @__PURE__ */ ce(Cl, [["__scopeId", "data-v-3cd5219b"]]), xl = ["data-truncate"], Al = /* @__PURE__ */ Q({
|
|
3584
3591
|
__name: "EntityBaseTableCell",
|
|
3585
3592
|
props: {
|
|
3586
3593
|
keyName: {
|
|
@@ -3634,9 +3641,9 @@ ${l.value}
|
|
|
3634
3641
|
},
|
|
3635
3642
|
{ immediate: !0, flush: "post", deep: !0 }
|
|
3636
3643
|
), b = _(() => o.value ? c.value > u.value : !1);
|
|
3637
|
-
return
|
|
3644
|
+
return lt(() => {
|
|
3638
3645
|
s();
|
|
3639
|
-
}),
|
|
3646
|
+
}), ai(() => {
|
|
3640
3647
|
h();
|
|
3641
3648
|
}), (y, $) => {
|
|
3642
3649
|
const k = U("KTooltip");
|
|
@@ -3659,17 +3666,17 @@ ${l.value}
|
|
|
3659
3666
|
]),
|
|
3660
3667
|
_: 3
|
|
3661
3668
|
}, 8, ["text"])
|
|
3662
|
-
], 8,
|
|
3669
|
+
], 8, xl)) : j(y.$slots, "default", { key: 1 }, void 0, !0)
|
|
3663
3670
|
], 512);
|
|
3664
3671
|
};
|
|
3665
3672
|
}
|
|
3666
|
-
}),
|
|
3673
|
+
}), wl = /* @__PURE__ */ ce(Al, [["__scopeId", "data-v-a3a65cac"]]), _l = { class: "toolbar-container" }, Sl = {
|
|
3667
3674
|
key: 0,
|
|
3668
3675
|
class: "toolbar-button-container"
|
|
3669
|
-
},
|
|
3676
|
+
}, $l = {
|
|
3670
3677
|
key: 0,
|
|
3671
3678
|
class: "hidden"
|
|
3672
|
-
},
|
|
3679
|
+
}, Tl = /* @__PURE__ */ Q({
|
|
3673
3680
|
__name: "EntityBaseTable",
|
|
3674
3681
|
props: {
|
|
3675
3682
|
// table header configuration
|
|
@@ -3866,7 +3873,7 @@ ${l.value}
|
|
|
3866
3873
|
i("click:row", A);
|
|
3867
3874
|
}), y = (v) => {
|
|
3868
3875
|
i("sort", v);
|
|
3869
|
-
}, { hideTableToolbar: $, handleStateChange: k } = z.useTableState(() => n.query), { setTablePreferences: w, getTablePreferences: Y } =
|
|
3876
|
+
}, { hideTableToolbar: $, handleStateChange: k } = z.useTableState(() => n.query), { setTablePreferences: w, getTablePreferences: Y } = Bi(), J = M(Y(a.value, n.defaultTablePreferences)), R = _(() => {
|
|
3870
3877
|
const v = Y(a.value);
|
|
3871
3878
|
return {
|
|
3872
3879
|
...n.initialFetcherParams,
|
|
@@ -3883,7 +3890,7 @@ ${l.value}
|
|
|
3883
3890
|
}));
|
|
3884
3891
|
return (v, A) => {
|
|
3885
3892
|
const p = U("KTableData"), K = U("KCard");
|
|
3886
|
-
return g(),
|
|
3893
|
+
return g(), L(K, {
|
|
3887
3894
|
class: "kong-ui-entity-base-table",
|
|
3888
3895
|
title: e.title,
|
|
3889
3896
|
"title-tag": e.titleTag
|
|
@@ -3926,9 +3933,9 @@ ${l.value}
|
|
|
3926
3933
|
"onUpdate:tablePreferences": F
|
|
3927
3934
|
}, Ae({
|
|
3928
3935
|
toolbar: x(() => [
|
|
3929
|
-
|
|
3936
|
+
B("div", _l, [
|
|
3930
3937
|
j(v.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3931
|
-
v.$slots["toolbar-button"] ? (g(), S("div",
|
|
3938
|
+
v.$slots["toolbar-button"] ? (g(), S("div", Sl, [
|
|
3932
3939
|
j(v.$slots, "toolbar-button", {}, void 0, !0)
|
|
3933
3940
|
])) : D("", !0)
|
|
3934
3941
|
])
|
|
@@ -3948,7 +3955,7 @@ ${l.value}
|
|
|
3948
3955
|
de(e.tableHeaders, (H, V) => ({
|
|
3949
3956
|
name: V,
|
|
3950
3957
|
fn: x(({ row: ne, rowValue: P }) => [
|
|
3951
|
-
N(
|
|
3958
|
+
N(wl, {
|
|
3952
3959
|
"key-name": String(V),
|
|
3953
3960
|
"row-el": c(ne),
|
|
3954
3961
|
tooltip: H.tooltip
|
|
@@ -3969,12 +3976,12 @@ ${l.value}
|
|
|
3969
3976
|
e.query ? void 0 : {
|
|
3970
3977
|
name: "empty-state-action-icon",
|
|
3971
3978
|
fn: x(() => [
|
|
3972
|
-
N(C(
|
|
3979
|
+
N(C(Zt))
|
|
3973
3980
|
]),
|
|
3974
3981
|
key: "1"
|
|
3975
3982
|
}
|
|
3976
3983
|
]), 1032, ["cache-identifier", "client-sort", "empty-state-action-message", "empty-state-action-route", "empty-state-icon-variant", "empty-state-message", "empty-state-title", "error", "error-state-message", "error-state-title", "fetcher", "fetcher-cache-key", "headers", "hide-pagination", "hide-pagination-when-optional", "hide-toolbar", "initial-fetcher-params", "loading", "pagination-attributes", "row-key", "search-input", "sort-handler-function", "sortable", "table-preferences", "onRow:click"]),
|
|
3977
|
-
v.$slots["outside-actions"] && C($) ? (g(), S("div",
|
|
3984
|
+
v.$slots["outside-actions"] && C($) ? (g(), S("div", $l, [
|
|
3978
3985
|
j(v.$slots, "outside-actions", {}, void 0, !0)
|
|
3979
3986
|
])) : D("", !0)
|
|
3980
3987
|
]),
|
|
@@ -3982,13 +3989,13 @@ ${l.value}
|
|
|
3982
3989
|
}, 8, ["title", "title-tag"]);
|
|
3983
3990
|
};
|
|
3984
3991
|
}
|
|
3985
|
-
}),
|
|
3992
|
+
}), Gs = /* @__PURE__ */ ce(Tl, [["__scopeId", "data-v-09e101d4"]]), El = {
|
|
3986
3993
|
key: 0,
|
|
3987
3994
|
class: "kong-ui-entity-delete-error"
|
|
3988
|
-
},
|
|
3995
|
+
}, Il = {
|
|
3989
3996
|
key: 1,
|
|
3990
3997
|
class: "description"
|
|
3991
|
-
},
|
|
3998
|
+
}, Fl = /* @__PURE__ */ Q({
|
|
3992
3999
|
__name: "EntityDeleteModal",
|
|
3993
4000
|
props: {
|
|
3994
4001
|
visible: {
|
|
@@ -4034,7 +4041,7 @@ ${l.value}
|
|
|
4034
4041
|
};
|
|
4035
4042
|
return (s, d) => {
|
|
4036
4043
|
const c = U("KAlert"), u = U("KPrompt");
|
|
4037
|
-
return g(),
|
|
4044
|
+
return g(), L(u, {
|
|
4038
4045
|
"action-button-appearance": "danger",
|
|
4039
4046
|
"action-button-disabled": e.actionPending,
|
|
4040
4047
|
"action-button-text": "Yes, delete",
|
|
@@ -4046,7 +4053,7 @@ ${l.value}
|
|
|
4046
4053
|
onProceed: l
|
|
4047
4054
|
}, {
|
|
4048
4055
|
default: x(() => [
|
|
4049
|
-
e.error ? (g(), S("div",
|
|
4056
|
+
e.error ? (g(), S("div", El, [
|
|
4050
4057
|
N(c, { appearance: "danger" }, {
|
|
4051
4058
|
default: x(() => [
|
|
4052
4059
|
q(I(e.error), 1)
|
|
@@ -4067,14 +4074,14 @@ ${l.value}
|
|
|
4067
4074
|
i.entityName ? {
|
|
4068
4075
|
name: "entityName",
|
|
4069
4076
|
fn: x(() => [
|
|
4070
|
-
|
|
4077
|
+
B("strong", null, I(i.entityName), 1)
|
|
4071
4078
|
]),
|
|
4072
4079
|
key: "0"
|
|
4073
4080
|
} : void 0
|
|
4074
4081
|
]), 1032, ["keypath"]),
|
|
4075
|
-
i.description || s.$slots.description ? (g(), S("div",
|
|
4082
|
+
i.description || s.$slots.description ? (g(), S("div", Il, [
|
|
4076
4083
|
j(s.$slots, "description", {}, () => [
|
|
4077
|
-
|
|
4084
|
+
B("p", null, I(i.description), 1)
|
|
4078
4085
|
], !0)
|
|
4079
4086
|
])) : D("", !0)
|
|
4080
4087
|
]),
|
|
@@ -4082,13 +4089,13 @@ ${l.value}
|
|
|
4082
4089
|
}, 8, ["action-button-disabled", "confirmation-text", "title", "visible"]);
|
|
4083
4090
|
};
|
|
4084
4091
|
}
|
|
4085
|
-
}),
|
|
4092
|
+
}), zs = /* @__PURE__ */ ce(Fl, [["__scopeId", "data-v-4361d622"]]), Ol = {
|
|
4086
4093
|
fill: "none",
|
|
4087
4094
|
height: "20",
|
|
4088
4095
|
viewBox: "0 0 20 20",
|
|
4089
4096
|
width: "20",
|
|
4090
4097
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4091
|
-
},
|
|
4098
|
+
}, Ll = {
|
|
4092
4099
|
id: "mask0_180_20349",
|
|
4093
4100
|
height: "20",
|
|
4094
4101
|
maskUnits: "userSpaceOnUse",
|
|
@@ -4096,35 +4103,35 @@ ${l.value}
|
|
|
4096
4103
|
width: "20",
|
|
4097
4104
|
x: "0",
|
|
4098
4105
|
y: "0"
|
|
4099
|
-
},
|
|
4106
|
+
}, Bl = ["fill"], Rl = { mask: "url(#mask0_180_20349)" }, Kl = ["fill"], Yt = /* @__PURE__ */ Q({
|
|
4100
4107
|
__name: "IconFilter",
|
|
4101
4108
|
props: {
|
|
4102
4109
|
color: {
|
|
4103
4110
|
type: String,
|
|
4104
|
-
default: `var(--kong-ui-entity-filter-color, ${
|
|
4111
|
+
default: `var(--kong-ui-entity-filter-color, ${hr})`
|
|
4105
4112
|
}
|
|
4106
4113
|
},
|
|
4107
4114
|
setup(e) {
|
|
4108
|
-
return (t, n) => (g(), S("svg",
|
|
4109
|
-
|
|
4110
|
-
|
|
4115
|
+
return (t, n) => (g(), S("svg", Ol, [
|
|
4116
|
+
B("mask", Ll, [
|
|
4117
|
+
B("rect", {
|
|
4111
4118
|
fill: e.color,
|
|
4112
4119
|
height: "20",
|
|
4113
4120
|
width: "20"
|
|
4114
|
-
}, null, 8,
|
|
4121
|
+
}, null, 8, Bl)
|
|
4115
4122
|
]),
|
|
4116
|
-
|
|
4117
|
-
|
|
4123
|
+
B("g", Rl, [
|
|
4124
|
+
B("path", {
|
|
4118
4125
|
d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
|
|
4119
4126
|
fill: e.color
|
|
4120
|
-
}, null, 8,
|
|
4127
|
+
}, null, 8, Kl)
|
|
4121
4128
|
])
|
|
4122
4129
|
]));
|
|
4123
4130
|
}
|
|
4124
|
-
}),
|
|
4131
|
+
}), Nl = {
|
|
4125
4132
|
key: 1,
|
|
4126
4133
|
class: "kong-ui-entity-filter"
|
|
4127
|
-
},
|
|
4134
|
+
}, Ml = { class: "kong-ui-entity-filter-menu" }, Pl = ["data-testid"], Dl = ["onClick", "onKeydown"], jl = { class: "menu-item-indicator" }, Ul = { class: "menu-item-body" }, ql = ["for"], Hl = { class: "menu-item-buttons" }, Yl = { class: "filter-clear-button-container" }, Vl = /* @__PURE__ */ Q({
|
|
4128
4135
|
__name: "EntityFilter",
|
|
4129
4136
|
props: {
|
|
4130
4137
|
// filter config, either exact match or fuzzy match
|
|
@@ -4199,7 +4206,7 @@ ${l.value}
|
|
|
4199
4206
|
};
|
|
4200
4207
|
return (R, F) => {
|
|
4201
4208
|
const E = U("KInput"), v = U("KButton"), A = U("KSelect");
|
|
4202
|
-
return e.config.isExactMatch ? (g(),
|
|
4209
|
+
return e.config.isExactMatch ? (g(), L(E, {
|
|
4203
4210
|
key: 0,
|
|
4204
4211
|
autocomplete: "off",
|
|
4205
4212
|
class: "kong-ui-entity-filter-input",
|
|
@@ -4209,10 +4216,10 @@ ${l.value}
|
|
|
4209
4216
|
"onUpdate:modelValue": m
|
|
4210
4217
|
}, {
|
|
4211
4218
|
before: x(() => [
|
|
4212
|
-
N(
|
|
4219
|
+
N(Yt)
|
|
4213
4220
|
]),
|
|
4214
4221
|
after: x(() => [
|
|
4215
|
-
we(N(C(
|
|
4222
|
+
we(N(C(Ai), {
|
|
4216
4223
|
class: "kong-ui-entity-filter-clear",
|
|
4217
4224
|
role: "button",
|
|
4218
4225
|
tabindex: "0",
|
|
@@ -4222,25 +4229,25 @@ ${l.value}
|
|
|
4222
4229
|
])
|
|
4223
4230
|
]),
|
|
4224
4231
|
_: 1
|
|
4225
|
-
}, 8, ["model-value", "placeholder"])) : (g(), S("div",
|
|
4232
|
+
}, 8, ["model-value", "placeholder"])) : (g(), S("div", Nl, [
|
|
4226
4233
|
N(v, {
|
|
4227
4234
|
appearance: "tertiary",
|
|
4228
4235
|
"data-testid": "filter-button",
|
|
4229
4236
|
onClick: c
|
|
4230
4237
|
}, {
|
|
4231
4238
|
default: x(() => [
|
|
4232
|
-
N(
|
|
4239
|
+
N(Yt),
|
|
4233
4240
|
q(" " + I(C(n)("filter.filterButtonText")) + " " + I(s.value.length > 0 ? `(${s.value.length})` : ""), 1)
|
|
4234
4241
|
]),
|
|
4235
4242
|
_: 1
|
|
4236
4243
|
}),
|
|
4237
|
-
we(
|
|
4244
|
+
we(B("div", {
|
|
4238
4245
|
class: "kong-ui-entity-filter-backdrop",
|
|
4239
4246
|
onClick: c
|
|
4240
4247
|
}, null, 512), [
|
|
4241
4248
|
[_e, o.value]
|
|
4242
4249
|
]),
|
|
4243
|
-
we(
|
|
4250
|
+
we(B("div", Ml, [
|
|
4244
4251
|
(g(!0), S(pe, null, de(d.value, (p) => {
|
|
4245
4252
|
var K, H;
|
|
4246
4253
|
return g(), S("div", {
|
|
@@ -4248,28 +4255,28 @@ ${l.value}
|
|
|
4248
4255
|
class: "kong-ui-entity-filter-menu-item",
|
|
4249
4256
|
"data-testid": p.value
|
|
4250
4257
|
}, [
|
|
4251
|
-
|
|
4258
|
+
B("span", {
|
|
4252
4259
|
class: fe(["menu-item-title", { expanded: l.value.has(p.value) }]),
|
|
4253
4260
|
role: "button",
|
|
4254
4261
|
tabindex: "0",
|
|
4255
4262
|
onClick: (V) => u(p.value),
|
|
4256
|
-
onKeydown:
|
|
4263
|
+
onKeydown: oi((V) => u(p.value), ["enter"])
|
|
4257
4264
|
}, [
|
|
4258
4265
|
q(I(p.label) + " ", 1),
|
|
4259
|
-
we(
|
|
4266
|
+
we(B("span", jl, null, 512), [
|
|
4260
4267
|
[_e, s.value.includes(p.value)]
|
|
4261
4268
|
]),
|
|
4262
|
-
N(C(
|
|
4269
|
+
N(C(wi), {
|
|
4263
4270
|
class: fe(["menu-item-expand-icon", { expanded: l.value.has(p.value) }]),
|
|
4264
|
-
color: C(
|
|
4271
|
+
color: C(vr)
|
|
4265
4272
|
}, null, 8, ["class", "color"])
|
|
4266
|
-
], 42,
|
|
4267
|
-
we(
|
|
4268
|
-
|
|
4273
|
+
], 42, Dl),
|
|
4274
|
+
we(B("div", Ul, [
|
|
4275
|
+
B("label", {
|
|
4269
4276
|
class: "menu-item-label",
|
|
4270
4277
|
for: h(p.value)
|
|
4271
|
-
}, I(C(n)("filter.fieldLabel")), 9,
|
|
4272
|
-
((H = (K = e.config.schema) == null ? void 0 : K[p.value]) == null ? void 0 : H.type) === "select" ? (g(),
|
|
4278
|
+
}, I(C(n)("filter.fieldLabel")), 9, ql),
|
|
4279
|
+
((H = (K = e.config.schema) == null ? void 0 : K[p.value]) == null ? void 0 : H.type) === "select" ? (g(), L(A, {
|
|
4273
4280
|
key: 0,
|
|
4274
4281
|
id: h(p.value),
|
|
4275
4282
|
modelValue: a.value[p.value],
|
|
@@ -4278,7 +4285,7 @@ ${l.value}
|
|
|
4278
4285
|
"filter-function": (V) => J(p.value, V),
|
|
4279
4286
|
items: b(p.value),
|
|
4280
4287
|
placeholder: C(n)("filter.selectPlaceholder")
|
|
4281
|
-
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "enable-filtering", "filter-function", "items", "placeholder"])) : (g(),
|
|
4288
|
+
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "enable-filtering", "filter-function", "items", "placeholder"])) : (g(), L(E, {
|
|
4282
4289
|
key: 1,
|
|
4283
4290
|
id: h(p.value),
|
|
4284
4291
|
modelValue: a.value[p.value],
|
|
@@ -4290,7 +4297,7 @@ ${l.value}
|
|
|
4290
4297
|
], 512), [
|
|
4291
4298
|
[_e, l.value.has(p.value)]
|
|
4292
4299
|
]),
|
|
4293
|
-
we(
|
|
4300
|
+
we(B("div", Hl, [
|
|
4294
4301
|
N(v, {
|
|
4295
4302
|
appearance: "tertiary",
|
|
4296
4303
|
"data-testid": "apply-filter",
|
|
@@ -4316,9 +4323,9 @@ ${l.value}
|
|
|
4316
4323
|
], 512), [
|
|
4317
4324
|
[_e, l.value.has(p.value)]
|
|
4318
4325
|
])
|
|
4319
|
-
], 8,
|
|
4326
|
+
], 8, Pl);
|
|
4320
4327
|
}), 128)),
|
|
4321
|
-
|
|
4328
|
+
B("div", Yl, [
|
|
4322
4329
|
N(v, {
|
|
4323
4330
|
appearance: "tertiary",
|
|
4324
4331
|
size: "small",
|
|
@@ -4336,7 +4343,7 @@ ${l.value}
|
|
|
4336
4343
|
]));
|
|
4337
4344
|
};
|
|
4338
4345
|
}
|
|
4339
|
-
}),
|
|
4346
|
+
}), Qs = /* @__PURE__ */ ce(Vl, [["__scopeId", "data-v-084f7978"]]), Zs = /* @__PURE__ */ Q({
|
|
4340
4347
|
__name: "EntityToggleModal",
|
|
4341
4348
|
props: {
|
|
4342
4349
|
visible: {
|
|
@@ -4386,7 +4393,7 @@ ${l.value}
|
|
|
4386
4393
|
};
|
|
4387
4394
|
return (u, m) => {
|
|
4388
4395
|
const f = U("KPrompt");
|
|
4389
|
-
return g(),
|
|
4396
|
+
return g(), L(zt, { to: "body" }, [
|
|
4390
4397
|
N(f, {
|
|
4391
4398
|
"action-button-disabled": a.value,
|
|
4392
4399
|
"action-button-text": s.value,
|
|
@@ -4405,7 +4412,7 @@ ${l.value}
|
|
|
4405
4412
|
q(I(e.entityType), 1)
|
|
4406
4413
|
]),
|
|
4407
4414
|
entityName: x(() => [
|
|
4408
|
-
|
|
4415
|
+
B("strong", null, I(e.entityName), 1)
|
|
4409
4416
|
]),
|
|
4410
4417
|
_: 1
|
|
4411
4418
|
}, 8, ["keypath"])
|
|
@@ -4415,7 +4422,7 @@ ${l.value}
|
|
|
4415
4422
|
]);
|
|
4416
4423
|
};
|
|
4417
4424
|
}
|
|
4418
|
-
}),
|
|
4425
|
+
}), Xs = /* @__PURE__ */ Q({
|
|
4419
4426
|
__name: "PermissionsWrapper",
|
|
4420
4427
|
props: {
|
|
4421
4428
|
/**
|
|
@@ -4448,37 +4455,37 @@ ${l.value}
|
|
|
4448
4455
|
}), re = [];
|
|
4449
4456
|
for (let e = 0; e < 256; ++e)
|
|
4450
4457
|
re.push((e + 256).toString(16).slice(1));
|
|
4451
|
-
function
|
|
4458
|
+
function Wl(e, t = 0) {
|
|
4452
4459
|
return (re[e[t + 0]] + re[e[t + 1]] + re[e[t + 2]] + re[e[t + 3]] + "-" + re[e[t + 4]] + re[e[t + 5]] + "-" + re[e[t + 6]] + re[e[t + 7]] + "-" + re[e[t + 8]] + re[e[t + 9]] + "-" + re[e[t + 10]] + re[e[t + 11]] + re[e[t + 12]] + re[e[t + 13]] + re[e[t + 14]] + re[e[t + 15]]).toLowerCase();
|
|
4453
4460
|
}
|
|
4454
|
-
let
|
|
4455
|
-
const
|
|
4456
|
-
function
|
|
4457
|
-
if (!
|
|
4461
|
+
let Xe;
|
|
4462
|
+
const Jl = new Uint8Array(16);
|
|
4463
|
+
function Gl() {
|
|
4464
|
+
if (!Xe) {
|
|
4458
4465
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
4459
4466
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
4460
|
-
|
|
4467
|
+
Xe = crypto.getRandomValues.bind(crypto);
|
|
4461
4468
|
}
|
|
4462
|
-
return
|
|
4469
|
+
return Xe(Jl);
|
|
4463
4470
|
}
|
|
4464
|
-
const
|
|
4465
|
-
function
|
|
4471
|
+
const zl = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Vt = { randomUUID: zl };
|
|
4472
|
+
function Ql(e, t, n) {
|
|
4466
4473
|
var r;
|
|
4467
|
-
if (
|
|
4468
|
-
return
|
|
4474
|
+
if (Vt.randomUUID && !e)
|
|
4475
|
+
return Vt.randomUUID();
|
|
4469
4476
|
e = e || {};
|
|
4470
|
-
const i = e.random ?? ((r = e.rng) == null ? void 0 : r.call(e)) ??
|
|
4477
|
+
const i = e.random ?? ((r = e.rng) == null ? void 0 : r.call(e)) ?? Gl();
|
|
4471
4478
|
if (i.length < 16)
|
|
4472
4479
|
throw new Error("Random bytes length must be >= 16");
|
|
4473
|
-
return i[6] = i[6] & 15 | 64, i[8] = i[8] & 63 | 128,
|
|
4480
|
+
return i[6] = i[6] & 15 | 64, i[8] = i[8] & 63 | 128, Wl(i);
|
|
4474
4481
|
}
|
|
4475
|
-
const
|
|
4482
|
+
const Zl = ["aria-labelledby"], Xl = { class: "form-section-wrapper" }, es = {
|
|
4476
4483
|
key: 1,
|
|
4477
4484
|
class: "form-section-description"
|
|
4478
|
-
},
|
|
4485
|
+
}, ts = {
|
|
4479
4486
|
key: 2,
|
|
4480
4487
|
class: "form-section-footer"
|
|
4481
|
-
},
|
|
4488
|
+
}, ns = { class: "form-section-content" }, is = /* @__PURE__ */ Q({
|
|
4482
4489
|
__name: "EntityFormSection",
|
|
4483
4490
|
props: {
|
|
4484
4491
|
title: {
|
|
@@ -4507,18 +4514,18 @@ const Yl = ["aria-labelledby"], Vl = { class: "form-section-wrapper" }, Wl = {
|
|
|
4507
4514
|
}
|
|
4508
4515
|
},
|
|
4509
4516
|
setup(e) {
|
|
4510
|
-
const t = He(), n =
|
|
4517
|
+
const t = He(), n = Ql();
|
|
4511
4518
|
return (i, r) => (g(), S("div", {
|
|
4512
4519
|
"aria-labelledby": e.title ? C(n) : void 0,
|
|
4513
4520
|
class: fe(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }]),
|
|
4514
4521
|
role: "group"
|
|
4515
4522
|
}, [
|
|
4516
|
-
|
|
4523
|
+
B("div", Xl, [
|
|
4517
4524
|
e.hideInfoHeader ? D("", !0) : (g(), S("div", {
|
|
4518
4525
|
key: 0,
|
|
4519
4526
|
class: fe(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
4520
4527
|
}, [
|
|
4521
|
-
e.title ? (g(),
|
|
4528
|
+
e.title ? (g(), L(qe(e.titleTag), {
|
|
4522
4529
|
key: 0,
|
|
4523
4530
|
id: C(n),
|
|
4524
4531
|
class: "form-section-title"
|
|
@@ -4528,40 +4535,40 @@ const Yl = ["aria-labelledby"], Vl = { class: "form-section-wrapper" }, Wl = {
|
|
|
4528
4535
|
]),
|
|
4529
4536
|
_: 1
|
|
4530
4537
|
}, 8, ["id"])) : D("", !0),
|
|
4531
|
-
e.description || C(t).description ? (g(), S("div",
|
|
4538
|
+
e.description || C(t).description ? (g(), S("div", es, [
|
|
4532
4539
|
j(i.$slots, "description", {}, () => [
|
|
4533
|
-
|
|
4540
|
+
B("p", null, I(e.description), 1)
|
|
4534
4541
|
], !0)
|
|
4535
4542
|
])) : D("", !0),
|
|
4536
|
-
C(t).footer ? (g(), S("div",
|
|
4543
|
+
C(t).footer ? (g(), S("div", ts, [
|
|
4537
4544
|
j(i.$slots, "footer", {}, void 0, !0)
|
|
4538
4545
|
])) : D("", !0)
|
|
4539
4546
|
], 2)),
|
|
4540
|
-
|
|
4547
|
+
B("div", ns, [
|
|
4541
4548
|
j(i.$slots, "default", {}, void 0, !0)
|
|
4542
4549
|
])
|
|
4543
4550
|
])
|
|
4544
|
-
], 10,
|
|
4551
|
+
], 10, Zl));
|
|
4545
4552
|
}
|
|
4546
|
-
}),
|
|
4553
|
+
}), ec = /* @__PURE__ */ ce(is, [["__scopeId", "data-v-b1f74200"]]), rs = { class: "header" }, as = {
|
|
4547
4554
|
key: 0,
|
|
4548
4555
|
class: "step",
|
|
4549
4556
|
"data-testid": "form-block-step"
|
|
4550
|
-
},
|
|
4557
|
+
}, os = { class: "header-content" }, ls = {
|
|
4551
4558
|
class: "header-title",
|
|
4552
4559
|
"data-testid": "header-title"
|
|
4553
|
-
},
|
|
4560
|
+
}, ss = {
|
|
4554
4561
|
key: 0,
|
|
4555
4562
|
class: "header-description",
|
|
4556
4563
|
"data-testid": "header-description"
|
|
4557
|
-
},
|
|
4564
|
+
}, cs = {
|
|
4558
4565
|
key: 1,
|
|
4559
4566
|
class: "header-extra",
|
|
4560
4567
|
"data-testid": "header-extra"
|
|
4561
|
-
},
|
|
4568
|
+
}, us = {
|
|
4562
4569
|
class: "content",
|
|
4563
4570
|
"data-testid": "form-block-content"
|
|
4564
|
-
},
|
|
4571
|
+
}, ds = /* @__PURE__ */ Q({
|
|
4565
4572
|
__name: "EntityFormBlock",
|
|
4566
4573
|
props: {
|
|
4567
4574
|
step: { default: () => {
|
|
@@ -4576,40 +4583,40 @@ const Yl = ["aria-labelledby"], Vl = { class: "form-section-wrapper" }, Wl = {
|
|
|
4576
4583
|
stepped: e.step !== void 0 || t.step
|
|
4577
4584
|
}])
|
|
4578
4585
|
}, [
|
|
4579
|
-
|
|
4580
|
-
e.step !== void 0 || t.step ? (g(), S("div",
|
|
4586
|
+
B("header", rs, [
|
|
4587
|
+
e.step !== void 0 || t.step ? (g(), S("div", as, [
|
|
4581
4588
|
j(n.$slots, "step", {}, () => [
|
|
4582
4589
|
q(I(e.step), 1)
|
|
4583
4590
|
], !0)
|
|
4584
4591
|
])) : D("", !0),
|
|
4585
|
-
|
|
4586
|
-
|
|
4592
|
+
B("div", os, [
|
|
4593
|
+
B("h2", ls, [
|
|
4587
4594
|
j(n.$slots, "title", {}, () => [
|
|
4588
4595
|
q(I(e.title), 1)
|
|
4589
4596
|
], !0)
|
|
4590
4597
|
]),
|
|
4591
|
-
e.description || t.description ? (g(), S("div",
|
|
4598
|
+
e.description || t.description ? (g(), S("div", ss, [
|
|
4592
4599
|
j(n.$slots, "description", {}, () => [
|
|
4593
4600
|
q(I(e.description), 1)
|
|
4594
4601
|
], !0)
|
|
4595
4602
|
])) : D("", !0)
|
|
4596
4603
|
]),
|
|
4597
|
-
t.extra ? (g(), S("div",
|
|
4604
|
+
t.extra ? (g(), S("div", cs, [
|
|
4598
4605
|
j(n.$slots, "extra", {}, void 0, !0)
|
|
4599
4606
|
])) : D("", !0)
|
|
4600
4607
|
]),
|
|
4601
|
-
|
|
4608
|
+
B("div", us, [
|
|
4602
4609
|
j(n.$slots, "default", {}, void 0, !0)
|
|
4603
4610
|
])
|
|
4604
4611
|
], 2));
|
|
4605
4612
|
}
|
|
4606
|
-
}),
|
|
4613
|
+
}), tc = /* @__PURE__ */ ce(ds, [["__scopeId", "data-v-28bd16b2"]]), fs = {
|
|
4607
4614
|
class: "kong-ui-public-entity-link",
|
|
4608
4615
|
"data-testid": "entity-link-parent"
|
|
4609
|
-
},
|
|
4616
|
+
}, ps = {
|
|
4610
4617
|
key: 0,
|
|
4611
4618
|
class: "deleted-entity"
|
|
4612
|
-
},
|
|
4619
|
+
}, ms = { key: 1 }, gs = ["onClick"], hs = /* @__PURE__ */ Q({
|
|
4613
4620
|
__name: "EntityLink",
|
|
4614
4621
|
props: {
|
|
4615
4622
|
entityLinkData: {
|
|
@@ -4646,8 +4653,8 @@ const Yl = ["aria-labelledby"], Vl = { class: "form-section-wrapper" }, Wl = {
|
|
|
4646
4653
|
};
|
|
4647
4654
|
return (u, m) => {
|
|
4648
4655
|
const f = U("KTooltip"), h = U("KExternalLink"), b = U("KClipboardProvider");
|
|
4649
|
-
return g(), S("div",
|
|
4650
|
-
l.value ? (g(), S("div",
|
|
4656
|
+
return g(), S("div", fs, [
|
|
4657
|
+
l.value ? (g(), S("div", ps, I(d.value), 1)) : s.value ? s.value ? (g(), L(h, {
|
|
4651
4658
|
key: 2,
|
|
4652
4659
|
class: "entity-link",
|
|
4653
4660
|
"hide-icon": !e.newWindow,
|
|
@@ -4659,7 +4666,7 @@ const Yl = ["aria-labelledby"], Vl = { class: "form-section-wrapper" }, Wl = {
|
|
|
4659
4666
|
text: C(i) && e.entityLinkData.label || ""
|
|
4660
4667
|
}, {
|
|
4661
4668
|
default: x(() => [
|
|
4662
|
-
|
|
4669
|
+
B("span", {
|
|
4663
4670
|
ref_key: "textContent",
|
|
4664
4671
|
ref: n,
|
|
4665
4672
|
class: "entity-link-label"
|
|
@@ -4669,8 +4676,8 @@ const Yl = ["aria-labelledby"], Vl = { class: "form-section-wrapper" }, Wl = {
|
|
|
4669
4676
|
}, 8, ["text"])
|
|
4670
4677
|
]),
|
|
4671
4678
|
_: 1
|
|
4672
|
-
}, 8, ["hide-icon", "href", "target"])) : D("", !0) : (g(), S("div",
|
|
4673
|
-
s.value && e.allowCopy ? (g(),
|
|
4679
|
+
}, 8, ["hide-icon", "href", "target"])) : D("", !0) : (g(), S("div", ms, I(" – "))),
|
|
4680
|
+
s.value && e.allowCopy ? (g(), L(f, {
|
|
4674
4681
|
key: a.value,
|
|
4675
4682
|
class: "copy-uuid-tooltip",
|
|
4676
4683
|
"max-width": "160",
|
|
@@ -4680,17 +4687,17 @@ const Yl = ["aria-labelledby"], Vl = { class: "form-section-wrapper" }, Wl = {
|
|
|
4680
4687
|
default: x(() => [
|
|
4681
4688
|
N(b, null, {
|
|
4682
4689
|
default: x(({ copyToClipboard: y }) => [
|
|
4683
|
-
|
|
4690
|
+
B("span", {
|
|
4684
4691
|
class: "entity-link-copy-id",
|
|
4685
4692
|
onClick: Ne(($) => c(y), ["stop"])
|
|
4686
4693
|
}, [
|
|
4687
|
-
N(C(
|
|
4694
|
+
N(C(_i), {
|
|
4688
4695
|
class: "copy-icon",
|
|
4689
|
-
color: C(
|
|
4696
|
+
color: C(br),
|
|
4690
4697
|
"data-testid": "copy-id",
|
|
4691
|
-
size: C(
|
|
4698
|
+
size: C(Cr)
|
|
4692
4699
|
}, null, 8, ["color", "size"])
|
|
4693
|
-
], 8,
|
|
4700
|
+
], 8, gs)
|
|
4694
4701
|
]),
|
|
4695
4702
|
_: 1
|
|
4696
4703
|
})
|
|
@@ -4700,40 +4707,40 @@ const Yl = ["aria-labelledby"], Vl = { class: "form-section-wrapper" }, Wl = {
|
|
|
4700
4707
|
]);
|
|
4701
4708
|
};
|
|
4702
4709
|
}
|
|
4703
|
-
}),
|
|
4710
|
+
}), nc = /* @__PURE__ */ ce(hs, [["__scopeId", "data-v-96efdfa5"]]), ys = { class: "kong-ui-public-entity-empty-state" }, vs = { class: "entity-empty-state-content" }, bs = {
|
|
4704
4711
|
key: 0,
|
|
4705
4712
|
class: "empty-state-image"
|
|
4706
|
-
},
|
|
4713
|
+
}, ks = {
|
|
4707
4714
|
key: 1,
|
|
4708
4715
|
class: "entity-empty-state-title"
|
|
4709
|
-
},
|
|
4716
|
+
}, Cs = {
|
|
4710
4717
|
key: 2,
|
|
4711
4718
|
class: "entity-empty-state-description"
|
|
4712
|
-
},
|
|
4719
|
+
}, xs = {
|
|
4713
4720
|
key: 3,
|
|
4714
4721
|
class: "entity-empty-state-pricing"
|
|
4715
|
-
},
|
|
4722
|
+
}, As = {
|
|
4716
4723
|
key: 0,
|
|
4717
4724
|
class: "entity-empty-state-message"
|
|
4718
|
-
},
|
|
4725
|
+
}, ws = {
|
|
4719
4726
|
key: 1,
|
|
4720
4727
|
class: "entity-empty-state-action"
|
|
4721
|
-
},
|
|
4728
|
+
}, _s = {
|
|
4722
4729
|
key: 2,
|
|
4723
4730
|
class: "entity-empty-state-card-container"
|
|
4724
|
-
},
|
|
4731
|
+
}, Ss = {
|
|
4725
4732
|
key: 0,
|
|
4726
4733
|
class: "feature-icon"
|
|
4727
|
-
},
|
|
4734
|
+
}, $s = { class: "card-header" }, Ts = ["title"], Es = {
|
|
4728
4735
|
key: 3,
|
|
4729
4736
|
class: "entity-empty-state-bottom-container"
|
|
4730
|
-
},
|
|
4737
|
+
}, Is = /* @__PURE__ */ Q({
|
|
4731
4738
|
__name: "EntityEmptyState",
|
|
4732
4739
|
props: {
|
|
4733
4740
|
appearance: {
|
|
4734
4741
|
type: String,
|
|
4735
4742
|
default: () => "primary",
|
|
4736
|
-
validator: (e) =>
|
|
4743
|
+
validator: (e) => xt.includes(e)
|
|
4737
4744
|
},
|
|
4738
4745
|
title: {
|
|
4739
4746
|
type: String,
|
|
@@ -4768,19 +4775,19 @@ const Yl = ["aria-labelledby"], Vl = { class: "form-section-wrapper" }, Wl = {
|
|
|
4768
4775
|
},
|
|
4769
4776
|
emits: ["click:create", "click:learn-more"],
|
|
4770
4777
|
setup(e) {
|
|
4771
|
-
const t = e, { i18n: { t: n } } = z.useI18n(), i = M(!1), r = _(() => i.value && !!t.actionButtonText), o = _(() =>
|
|
4772
|
-
return
|
|
4778
|
+
const t = e, { i18n: { t: n } } = z.useI18n(), i = M(!1), r = _(() => i.value && !!t.actionButtonText), o = _(() => xt.includes(t.appearance) ? t.appearance : ["primary", t.appearance]);
|
|
4779
|
+
return st(async () => {
|
|
4773
4780
|
i.value = await t.canCreate();
|
|
4774
|
-
}),
|
|
4781
|
+
}), lt(() => li(`EntityEmptyState is deprecated and will be removed in future releases. Please use the KEmptyState component instead.
|
|
4775
4782
|
Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) => {
|
|
4776
4783
|
const s = U("KCard");
|
|
4777
|
-
return g(), S("div",
|
|
4778
|
-
|
|
4779
|
-
a.$slots.image ? (g(), S("div",
|
|
4784
|
+
return g(), S("div", ys, [
|
|
4785
|
+
B("div", vs, [
|
|
4786
|
+
a.$slots.image ? (g(), S("div", bs, [
|
|
4780
4787
|
j(a.$slots, "image", {}, void 0, !0)
|
|
4781
4788
|
])) : D("", !0),
|
|
4782
|
-
e.title || a.$slots.title ? (g(), S("div",
|
|
4783
|
-
|
|
4789
|
+
e.title || a.$slots.title ? (g(), S("div", ks, [
|
|
4790
|
+
B("h1", {
|
|
4784
4791
|
class: fe(o.value)
|
|
4785
4792
|
}, [
|
|
4786
4793
|
j(a.$slots, "title", {}, () => [
|
|
@@ -4788,14 +4795,14 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) =>
|
|
|
4788
4795
|
], !0)
|
|
4789
4796
|
], 2)
|
|
4790
4797
|
])) : D("", !0),
|
|
4791
|
-
e.description || a.$slots.default ? (g(), S("div",
|
|
4798
|
+
e.description || a.$slots.default ? (g(), S("div", Cs, [
|
|
4792
4799
|
j(a.$slots, "default", {}, () => [
|
|
4793
|
-
|
|
4800
|
+
B("p", null, I(e.description), 1)
|
|
4794
4801
|
], !0)
|
|
4795
4802
|
])) : D("", !0),
|
|
4796
|
-
e.pricing || a.$slots.pricing ? (g(), S("div",
|
|
4797
|
-
|
|
4798
|
-
|
|
4803
|
+
e.pricing || a.$slots.pricing ? (g(), S("div", xs, [
|
|
4804
|
+
B("p", null, [
|
|
4805
|
+
B("b", null, I(C(n)("emptyState.pricingTitle")), 1),
|
|
4799
4806
|
l[2] || (l[2] = q()),
|
|
4800
4807
|
j(a.$slots, "pricing", {}, () => [
|
|
4801
4808
|
q(I(e.pricing), 1)
|
|
@@ -4803,12 +4810,12 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) =>
|
|
|
4803
4810
|
])
|
|
4804
4811
|
])) : D("", !0)
|
|
4805
4812
|
]),
|
|
4806
|
-
a.$slots.message ? (g(), S("div",
|
|
4813
|
+
a.$slots.message ? (g(), S("div", As, [
|
|
4807
4814
|
j(a.$slots, "message", {}, void 0, !0)
|
|
4808
4815
|
])) : D("", !0),
|
|
4809
|
-
r.value || e.learnMore || a.$slots.actions ? (g(), S("div",
|
|
4816
|
+
r.value || e.learnMore || a.$slots.actions ? (g(), S("div", ws, [
|
|
4810
4817
|
j(a.$slots, "actions", {}, () => [
|
|
4811
|
-
r.value ? (g(),
|
|
4818
|
+
r.value ? (g(), L(C(bt), {
|
|
4812
4819
|
key: 0,
|
|
4813
4820
|
appearance: "primary",
|
|
4814
4821
|
"data-testid": "entity-create-button",
|
|
@@ -4816,12 +4823,12 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) =>
|
|
|
4816
4823
|
onClick: l[0] || (l[0] = (d) => a.$emit("click:create"))
|
|
4817
4824
|
}, {
|
|
4818
4825
|
default: x(() => [
|
|
4819
|
-
N(C(
|
|
4826
|
+
N(C(Zt)),
|
|
4820
4827
|
q(" " + I(e.actionButtonText), 1)
|
|
4821
4828
|
]),
|
|
4822
4829
|
_: 1
|
|
4823
4830
|
}, 8, ["size"])) : D("", !0),
|
|
4824
|
-
e.learnMore ? (g(),
|
|
4831
|
+
e.learnMore ? (g(), L(C(bt), {
|
|
4825
4832
|
key: 1,
|
|
4826
4833
|
appearance: "secondary",
|
|
4827
4834
|
"data-testid": "entity-learn-more-button",
|
|
@@ -4829,39 +4836,39 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) =>
|
|
|
4829
4836
|
onClick: l[1] || (l[1] = (d) => a.$emit("click:learn-more"))
|
|
4830
4837
|
}, {
|
|
4831
4838
|
default: x(() => [
|
|
4832
|
-
N(C(
|
|
4839
|
+
N(C(Qt), { decorative: "" }),
|
|
4833
4840
|
q(" " + I(C(n)("emptyState.learnMore")), 1)
|
|
4834
4841
|
]),
|
|
4835
4842
|
_: 1
|
|
4836
4843
|
}, 8, ["size"])) : D("", !0)
|
|
4837
4844
|
], !0)
|
|
4838
4845
|
])) : D("", !0),
|
|
4839
|
-
e.features.length ? (g(), S("div",
|
|
4840
|
-
(g(!0), S(pe, null, de(e.features, (d, c) => (g(),
|
|
4846
|
+
e.features.length ? (g(), S("div", _s, [
|
|
4847
|
+
(g(!0), S(pe, null, de(e.features, (d, c) => (g(), L(s, {
|
|
4841
4848
|
key: `feature-${c}-card`,
|
|
4842
4849
|
class: "entity-empty-state-card"
|
|
4843
4850
|
}, {
|
|
4844
4851
|
title: x(() => [
|
|
4845
|
-
a.$slots[`feature-${c}-icon`] ? (g(), S("div",
|
|
4852
|
+
a.$slots[`feature-${c}-icon`] ? (g(), S("div", Ss, [
|
|
4846
4853
|
j(a.$slots, `feature-${c}-icon`, {}, void 0, !0)
|
|
4847
4854
|
])) : D("", !0),
|
|
4848
|
-
|
|
4855
|
+
B("div", $s, I(d.title), 1)
|
|
4849
4856
|
]),
|
|
4850
4857
|
default: x(() => [
|
|
4851
|
-
|
|
4858
|
+
B("div", {
|
|
4852
4859
|
title: d.description
|
|
4853
|
-
}, I(d.description), 9,
|
|
4860
|
+
}, I(d.description), 9, Ts)
|
|
4854
4861
|
]),
|
|
4855
4862
|
_: 2
|
|
4856
4863
|
}, 1024))), 128))
|
|
4857
4864
|
])) : D("", !0),
|
|
4858
|
-
a.$slots.bottom ? (g(), S("div",
|
|
4865
|
+
a.$slots.bottom ? (g(), S("div", Es, [
|
|
4859
4866
|
j(a.$slots, "bottom", {}, void 0, !0)
|
|
4860
4867
|
])) : D("", !0)
|
|
4861
4868
|
]);
|
|
4862
4869
|
};
|
|
4863
4870
|
}
|
|
4864
|
-
}),
|
|
4871
|
+
}), ic = /* @__PURE__ */ ce(Is, [["__scopeId", "data-v-6d4a0f89"]]), Fs = { key: 1 }, rc = /* @__PURE__ */ Q({
|
|
4865
4872
|
__name: "TableTags",
|
|
4866
4873
|
props: {
|
|
4867
4874
|
/** The tags to display in the table */
|
|
@@ -4889,9 +4896,9 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) =>
|
|
|
4889
4896
|
});
|
|
4890
4897
|
return (i, r) => {
|
|
4891
4898
|
var o;
|
|
4892
|
-
return ((o = n.value) == null ? void 0 : o.length) > 0 ? (g(),
|
|
4899
|
+
return ((o = n.value) == null ? void 0 : o.length) > 0 ? (g(), L(C(fi), { key: 0 }, {
|
|
4893
4900
|
default: x(() => [
|
|
4894
|
-
(g(!0), S(pe, null, de(n.value, (a) => (g(),
|
|
4901
|
+
(g(!0), S(pe, null, de(n.value, (a) => (g(), L(C(pi), {
|
|
4895
4902
|
key: a,
|
|
4896
4903
|
"max-width": e.tagMaxWidth,
|
|
4897
4904
|
onClick: r[0] || (r[0] = Ne(() => {
|
|
@@ -4904,55 +4911,55 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) =>
|
|
|
4904
4911
|
}, 1032, ["max-width"]))), 128))
|
|
4905
4912
|
]),
|
|
4906
4913
|
_: 1
|
|
4907
|
-
})) : (g(), S("span",
|
|
4914
|
+
})) : (g(), S("span", Fs, "-"));
|
|
4908
4915
|
};
|
|
4909
4916
|
}
|
|
4910
|
-
}), { useAxios:
|
|
4917
|
+
}), { useAxios: ac, useDeleteUrlBuilder: oc, useErrors: lc, useExternalLinkCreator: sc, useFetchUrlBuilder: cc, useFetcher: uc, useFetcherCacheKey: dc, useDebouncedFilter: fc, useStringHelpers: pc, useHelpers: mc, useGatewayFeatureSupported: gc, useTruncationDetector: hc, useValidators: yc, useSchemaProvider: vc, useTableState: bc } = z;
|
|
4911
4918
|
export {
|
|
4912
|
-
|
|
4913
|
-
|
|
4914
|
-
|
|
4919
|
+
xt as Appearances,
|
|
4920
|
+
pl as ConfigCardDisplay,
|
|
4921
|
+
ln as ConfigCardItem,
|
|
4915
4922
|
le as ConfigurationSchemaSection,
|
|
4916
4923
|
G as ConfigurationSchemaType,
|
|
4917
|
-
|
|
4918
|
-
|
|
4919
|
-
|
|
4920
|
-
|
|
4921
|
-
|
|
4922
|
-
|
|
4923
|
-
|
|
4924
|
-
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
|
|
4928
|
-
|
|
4929
|
-
|
|
4930
|
-
|
|
4931
|
-
|
|
4924
|
+
ei as DeckCodeBlock,
|
|
4925
|
+
Ws as EntityBaseConfigCard,
|
|
4926
|
+
Js as EntityBaseForm,
|
|
4927
|
+
Ti as EntityBaseFormType,
|
|
4928
|
+
Gs as EntityBaseTable,
|
|
4929
|
+
zs as EntityDeleteModal,
|
|
4930
|
+
ic as EntityEmptyState,
|
|
4931
|
+
Qs as EntityFilter,
|
|
4932
|
+
tc as EntityFormBlock,
|
|
4933
|
+
ec as EntityFormSection,
|
|
4934
|
+
nc as EntityLink,
|
|
4935
|
+
Zs as EntityToggleModal,
|
|
4936
|
+
$i as EntityTypes,
|
|
4937
|
+
Ei as EventGatewayTypesArray,
|
|
4938
|
+
bl as FEATURE_FLAGS,
|
|
4932
4939
|
he as FetcherStatus,
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
|
|
4937
|
-
|
|
4940
|
+
Ii as IdentityTypesArray,
|
|
4941
|
+
mr as InternalLinkItem,
|
|
4942
|
+
sn as JsonCodeBlock,
|
|
4943
|
+
Xs as PermissionsWrapper,
|
|
4944
|
+
Xt as SupportedEntityDeckArray,
|
|
4938
4945
|
ke as SupportedEntityType,
|
|
4939
4946
|
Ye as SupportedEntityTypesArray,
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
|
|
4943
|
-
|
|
4944
|
-
|
|
4945
|
-
|
|
4946
|
-
|
|
4947
|
-
|
|
4948
|
-
|
|
4949
|
-
|
|
4950
|
-
|
|
4951
|
-
|
|
4952
|
-
|
|
4953
|
-
|
|
4954
|
-
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
|
|
4947
|
+
rc as TableTags,
|
|
4948
|
+
Xn as TerraformCodeBlock,
|
|
4949
|
+
Zn as YamlCodeBlock,
|
|
4950
|
+
ac as useAxios,
|
|
4951
|
+
fc as useDebouncedFilter,
|
|
4952
|
+
oc as useDeleteUrlBuilder,
|
|
4953
|
+
lc as useErrors,
|
|
4954
|
+
sc as useExternalLinkCreator,
|
|
4955
|
+
cc as useFetchUrlBuilder,
|
|
4956
|
+
uc as useFetcher,
|
|
4957
|
+
dc as useFetcherCacheKey,
|
|
4958
|
+
gc as useGatewayFeatureSupported,
|
|
4959
|
+
mc as useHelpers,
|
|
4960
|
+
vc as useSchemaProvider,
|
|
4961
|
+
pc as useStringHelpers,
|
|
4962
|
+
bc as useTableState,
|
|
4963
|
+
hc as useTruncationDetector,
|
|
4964
|
+
yc as useValidators
|
|
4958
4965
|
};
|