@kong-ui-public/entities-shared 3.33.2-pr.2622.53734b6ee.0 → 3.33.2-pr.2622.597a5d2d7.0
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 +539 -536
- package/dist/entities-shared.umd.js +17 -17
- package/package.json +1 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { inject as
|
|
1
|
+
import { inject as Pt, ref as K, computed as F, unref as $, toValue as he, watch as be, toRef as Yn, provide as Dt, defineComponent as z, createBlock as j, openBlock as m, resolveDynamicComponent as je, normalizeClass as fe, withCtx as w, createElementBlock as S, createCommentVNode as N, createElementVNode as R, toDisplayString as L, Fragment as ue, renderList as ce, resolveComponent as D, createVNode as M, createTextVNode as q, useCssVars as Ut, useId as Wn, useSlots as Pe, renderSlot as P, createSlots as Se, normalizeProps as Gn, guardReactiveProps as Jn, mergeProps as qt, onMounted as tt, onBeforeMount as nt, withModifiers as Le, Teleport as Ht, onUnmounted as zn, withDirectives as xe, vShow as Ce, withKeys as Qn, warn as Zn } from "vue";
|
|
2
2
|
import pt from "axios";
|
|
3
|
-
import { createI18n as
|
|
4
|
-
import { BadgeMethodAppearances as
|
|
5
|
-
import { BookIcon as Vt, AddIcon as Yt, CloseIcon as
|
|
6
|
-
import { useRouter as
|
|
7
|
-
var
|
|
8
|
-
const
|
|
3
|
+
import { createI18n as Xn, i18nTComponent as ei } from "@kong-ui-public/i18n";
|
|
4
|
+
import { BadgeMethodAppearances as ti, KButton as mt, KTruncate as ni, KBadge as ii } from "@kong/kongponents";
|
|
5
|
+
import { BookIcon as Vt, AddIcon as Yt, CloseIcon as ri, ChevronDownIcon as ai, CopyIcon as oi } from "@kong/icons";
|
|
6
|
+
import { useRouter as li } from "vue-router";
|
|
7
|
+
var si = /* @__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))(si || {}), ci = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(ci || {}), me = /* @__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))(me || {}), it = /* @__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.Other = "other", e))(it || {});
|
|
8
|
+
const De = Object.values(it), ui = ["backend_cluster", "virtual_cluster", "listener", "produce_policy", "consume_policy", "cluster_policy", "listener_policy", "schema_registry", "static_key"];
|
|
9
9
|
var V = /* @__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))(V || {}), ae = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e.Policy = "policy", e))(ae || {});
|
|
10
10
|
const ht = [
|
|
11
11
|
"primary",
|
|
12
12
|
"secondary"
|
|
13
13
|
];
|
|
14
|
-
function
|
|
14
|
+
function di() {
|
|
15
15
|
return {
|
|
16
16
|
getAxiosInstance: (e = {}) => {
|
|
17
17
|
try {
|
|
18
|
-
const t =
|
|
18
|
+
const t = Pt("get-axios-instance", void 0);
|
|
19
19
|
return typeof t == "function" ? t(e) : pt.create({
|
|
20
20
|
withCredentials: !0,
|
|
21
21
|
timeout: 3e4,
|
|
@@ -35,7 +35,7 @@ function ui() {
|
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function fi() {
|
|
39
39
|
return {
|
|
40
40
|
debounce: (e, t) => {
|
|
41
41
|
let n;
|
|
@@ -47,13 +47,13 @@ function di() {
|
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
|
-
const He = "khcp-user-table-preferences",
|
|
50
|
+
const He = "khcp-user-table-preferences", pi = {
|
|
51
51
|
pageSize: 30,
|
|
52
52
|
sortColumnKey: void 0,
|
|
53
53
|
sortColumnOrder: void 0,
|
|
54
54
|
columnVisibility: {}
|
|
55
55
|
};
|
|
56
|
-
function
|
|
56
|
+
function mi() {
|
|
57
57
|
const e = (n) => {
|
|
58
58
|
if (typeof n == "string")
|
|
59
59
|
try {
|
|
@@ -77,7 +77,7 @@ function pi() {
|
|
|
77
77
|
},
|
|
78
78
|
getTablePreferences: (n, i) => {
|
|
79
79
|
const r = t();
|
|
80
|
-
return (r == null ? void 0 : r.get(n)) || void 0 || i ||
|
|
80
|
+
return (r == null ? void 0 : r.get(n)) || void 0 || i || pi;
|
|
81
81
|
},
|
|
82
82
|
deleteAllTablePreferences: () => {
|
|
83
83
|
localStorage.removeItem(He);
|
|
@@ -85,22 +85,22 @@ function pi() {
|
|
|
85
85
|
};
|
|
86
86
|
}
|
|
87
87
|
function rt(e = {}) {
|
|
88
|
-
const { getAxiosInstance: t } =
|
|
88
|
+
const { getAxiosInstance: t } = di();
|
|
89
89
|
return {
|
|
90
90
|
axiosInstance: t(e)
|
|
91
91
|
};
|
|
92
92
|
}
|
|
93
|
-
const
|
|
93
|
+
const hi = {
|
|
94
94
|
actions: {
|
|
95
95
|
copyId: "Copy ID",
|
|
96
96
|
copied_id: 'Copied "{id}" to the clipboard',
|
|
97
97
|
copyToClipboard: "Copied successfully!",
|
|
98
98
|
copyToClipboardFailed: "Failed to copy to the clipboard"
|
|
99
99
|
}
|
|
100
|
-
},
|
|
100
|
+
}, gi = {
|
|
101
101
|
message: "Are you sure you want to delete this {entityType}?",
|
|
102
102
|
messageWithName: "Are you sure you want to delete this {entityType} {entityName}?"
|
|
103
|
-
},
|
|
103
|
+
}, yi = {
|
|
104
104
|
actions: {
|
|
105
105
|
viewConfiguration: "View Configuration",
|
|
106
106
|
save: "Save",
|
|
@@ -117,13 +117,13 @@ const mi = {
|
|
|
117
117
|
errors: {
|
|
118
118
|
edit: "The entity could not be edited at this time."
|
|
119
119
|
}
|
|
120
|
-
},
|
|
120
|
+
}, vi = {
|
|
121
121
|
emptyState: {
|
|
122
122
|
noSearchResultsTitle: "No results found",
|
|
123
123
|
noSearchResultsMessage: "Please adjust the criteria and try again.",
|
|
124
124
|
noSearchResultsCtaText: "Clear"
|
|
125
125
|
}
|
|
126
|
-
},
|
|
126
|
+
}, bi = {
|
|
127
127
|
title: "Configuration",
|
|
128
128
|
actions: {
|
|
129
129
|
copy: "Copy JSON"
|
|
@@ -160,10 +160,10 @@ const mi = {
|
|
|
160
160
|
entryTitle: "Entry {index}",
|
|
161
161
|
structuredFormat: "Structured"
|
|
162
162
|
}
|
|
163
|
-
},
|
|
163
|
+
}, xi = {
|
|
164
164
|
learnMore: "Learn more",
|
|
165
165
|
pricingTitle: "Pricing: "
|
|
166
|
-
},
|
|
166
|
+
}, Ci = {
|
|
167
167
|
filterButtonText: "Filter",
|
|
168
168
|
fieldLabel: "Filter by:",
|
|
169
169
|
inputPlaceholder: "Enter a value",
|
|
@@ -171,17 +171,17 @@ const mi = {
|
|
|
171
171
|
applyButtonText: "Apply",
|
|
172
172
|
clearButtonText: "Clear",
|
|
173
173
|
clearAllButtonText: "Clear all filters"
|
|
174
|
-
},
|
|
174
|
+
}, ki = {
|
|
175
175
|
errors: {
|
|
176
176
|
fetch: "Could not fetch available items",
|
|
177
177
|
invalid: "Please select a valid value"
|
|
178
178
|
}
|
|
179
|
-
},
|
|
179
|
+
}, Ai = {
|
|
180
180
|
unexpected: "An unexpected error has occurred",
|
|
181
181
|
dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.'
|
|
182
|
-
}, Ai = {
|
|
183
|
-
utf8Name: "The name can be any string containing characters, letters, numbers, or the following characters: ., -, _, or ~. Do not use spaces."
|
|
184
182
|
}, _i = {
|
|
183
|
+
utf8Name: "The name can be any string containing characters, letters, numbers, or the following characters: ., -, _, or ~. Do not use spaces."
|
|
184
|
+
}, wi = {
|
|
185
185
|
enable: {
|
|
186
186
|
title: "Enable {entityType}",
|
|
187
187
|
message: "Are you sure you want to enable the {entityType} {entityName}?",
|
|
@@ -192,24 +192,24 @@ const mi = {
|
|
|
192
192
|
message: "Are you sure you want to disable the {entityType} {entityName}?",
|
|
193
193
|
confirmText: "Yes, disable"
|
|
194
194
|
}
|
|
195
|
-
},
|
|
196
|
-
global:
|
|
197
|
-
deleteModal:
|
|
198
|
-
baseForm:
|
|
199
|
-
baseTable:
|
|
200
|
-
baseConfigCard:
|
|
201
|
-
emptyState:
|
|
202
|
-
filter:
|
|
203
|
-
debouncedFilter:
|
|
204
|
-
errors:
|
|
205
|
-
validationErrors:
|
|
206
|
-
toggleModal:
|
|
195
|
+
}, Si = {
|
|
196
|
+
global: hi,
|
|
197
|
+
deleteModal: gi,
|
|
198
|
+
baseForm: yi,
|
|
199
|
+
baseTable: vi,
|
|
200
|
+
baseConfigCard: bi,
|
|
201
|
+
emptyState: xi,
|
|
202
|
+
filter: Ci,
|
|
203
|
+
debouncedFilter: ki,
|
|
204
|
+
errors: Ai,
|
|
205
|
+
validationErrors: _i,
|
|
206
|
+
toggleModal: wi
|
|
207
207
|
};
|
|
208
208
|
function Ue() {
|
|
209
|
-
const e =
|
|
209
|
+
const e = Xn("en-us", Si);
|
|
210
210
|
return {
|
|
211
211
|
i18n: e,
|
|
212
|
-
i18nT:
|
|
212
|
+
i18nT: ei(e)
|
|
213
213
|
// Translation component <i18n-t>
|
|
214
214
|
};
|
|
215
215
|
}
|
|
@@ -255,12 +255,12 @@ function Wt() {
|
|
|
255
255
|
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
|
|
256
256
|
};
|
|
257
257
|
}
|
|
258
|
-
function
|
|
258
|
+
function $i(e, t, n, i = {
|
|
259
259
|
fetchedItemsKey: "data",
|
|
260
260
|
searchKeys: ["id"]
|
|
261
261
|
}) {
|
|
262
262
|
n || (n = "1000");
|
|
263
|
-
const { axiosInstance: r } = rt(e.axiosRequestConfig), { i18n: { t: o } } = Ue(), { debounce: a } =
|
|
263
|
+
const { axiosInstance: r } = rt(e.axiosRequestConfig), { i18n: { t: o } } = Ue(), { debounce: a } = fi(), s = a(async (T) => {
|
|
264
264
|
await C(T);
|
|
265
265
|
}, 200), l = K(!1), c = K(""), d = K(""), u = K([]), p = K([]), g = K(void 0), h = F(() => {
|
|
266
266
|
const T = `${e.apiBaseUrl}${$(t)}`;
|
|
@@ -333,13 +333,13 @@ function Si(e, t, n, i = {
|
|
|
333
333
|
debouncedQueryChange: s
|
|
334
334
|
};
|
|
335
335
|
}
|
|
336
|
-
function
|
|
336
|
+
function Ti(e, t) {
|
|
337
337
|
const n = $(t), i = F(
|
|
338
338
|
() => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${n}`) : new URL(n)
|
|
339
339
|
);
|
|
340
340
|
return i.value.search = "", (r) => `${i.value.href}/${r}`;
|
|
341
341
|
}
|
|
342
|
-
function
|
|
342
|
+
function Ii() {
|
|
343
343
|
const { i18n: { t: e } } = Ue();
|
|
344
344
|
return {
|
|
345
345
|
getErrorFieldsFromError: (i) => {
|
|
@@ -411,7 +411,7 @@ function Ti() {
|
|
|
411
411
|
}
|
|
412
412
|
};
|
|
413
413
|
}
|
|
414
|
-
function
|
|
414
|
+
function Ei(e) {
|
|
415
415
|
const t = window.location.origin, n = t.endsWith("/") ? t : `${t}/`;
|
|
416
416
|
try {
|
|
417
417
|
const i = e.join("/"), r = `${n}${i}`, o = e.some((s) => s.trim() === "");
|
|
@@ -443,7 +443,7 @@ function Gt(e, t) {
|
|
|
443
443
|
};
|
|
444
444
|
}
|
|
445
445
|
const gt = /* @__PURE__ */ new Map();
|
|
446
|
-
function
|
|
446
|
+
function Fi(e, t, n) {
|
|
447
447
|
const i = K(!0), r = he(e), { axiosInstance: o } = rt(r.axiosRequestConfig), a = Gt(e, t), s = K({
|
|
448
448
|
status: me.Idle
|
|
449
449
|
}), l = async (u) => {
|
|
@@ -500,7 +500,7 @@ function Jt(e) {
|
|
|
500
500
|
}
|
|
501
501
|
return K(1);
|
|
502
502
|
}
|
|
503
|
-
function
|
|
503
|
+
function Oi() {
|
|
504
504
|
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;
|
|
505
505
|
return {
|
|
506
506
|
capitalize: (i) => i ? i.replace(t, (r) => r.toUpperCase()) : "",
|
|
@@ -517,24 +517,24 @@ const zt = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
517
517
|
}, vt = (e) => e === "*" || e === "x" || e === "X", bt = (e) => {
|
|
518
518
|
const t = parseInt(e, 10);
|
|
519
519
|
return isNaN(t) ? e : t;
|
|
520
|
-
},
|
|
520
|
+
}, Li = (e, t) => typeof e != typeof t ? [String(e), String(t)] : [e, t], Bi = (e, t) => {
|
|
521
521
|
if (vt(e) || vt(t))
|
|
522
522
|
return 0;
|
|
523
|
-
const [n, i] =
|
|
523
|
+
const [n, i] = Li(bt(e), bt(t));
|
|
524
524
|
return n > i ? 1 : n < i ? -1 : 0;
|
|
525
525
|
}, xt = (e, t) => {
|
|
526
526
|
for (let n = 0; n < Math.max(e.length, t.length); n++) {
|
|
527
|
-
const i =
|
|
527
|
+
const i = Bi(e[n] || "0", t[n] || "0");
|
|
528
528
|
if (i !== 0)
|
|
529
529
|
return i;
|
|
530
530
|
}
|
|
531
531
|
return 0;
|
|
532
|
-
},
|
|
532
|
+
}, Ri = (e, t) => {
|
|
533
533
|
const n = yt(e), i = yt(t), r = n.pop(), o = i.pop(), a = xt(n, i);
|
|
534
534
|
return a !== 0 ? a : r && o ? xt(r.split("."), o.split(".")) : r || o ? r ? -1 : 1 : 0;
|
|
535
535
|
}, Ct = (e, t, n) => {
|
|
536
|
-
|
|
537
|
-
const i =
|
|
536
|
+
Ki(n);
|
|
537
|
+
const i = Ri(e, t);
|
|
538
538
|
return Qt[n].includes(i);
|
|
539
539
|
}, Qt = {
|
|
540
540
|
">": [1],
|
|
@@ -543,18 +543,18 @@ const zt = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
543
543
|
"<=": [-1, 0],
|
|
544
544
|
"<": [-1],
|
|
545
545
|
"!=": [-1, 1]
|
|
546
|
-
}, kt = Object.keys(Qt),
|
|
546
|
+
}, kt = Object.keys(Qt), Ki = (e) => {
|
|
547
547
|
if (typeof e != "string")
|
|
548
548
|
throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
|
|
549
549
|
if (kt.indexOf(e) === -1)
|
|
550
550
|
throw new Error(`Invalid operator, expected one of ${kt.join("|")}`);
|
|
551
|
-
},
|
|
552
|
-
function
|
|
551
|
+
}, Ni = (e) => typeof e == "string" && /^[v\d]/.test(e) && zt.test(e);
|
|
552
|
+
function Mi(e) {
|
|
553
553
|
const { gatewayInfo: t, supportedRange: n } = e;
|
|
554
554
|
if (!t)
|
|
555
555
|
return !0;
|
|
556
556
|
const { edition: i, version: r } = t;
|
|
557
|
-
if (!
|
|
557
|
+
if (!Ni(r))
|
|
558
558
|
return console.error("Invalid version"), !1;
|
|
559
559
|
const o = n[i];
|
|
560
560
|
if (!o)
|
|
@@ -562,7 +562,7 @@ function Ni(e) {
|
|
|
562
562
|
const [a, s] = o;
|
|
563
563
|
return !(a && Ct(r, a, "<") || s && Ct(r, s, ">"));
|
|
564
564
|
}
|
|
565
|
-
function
|
|
565
|
+
function ji(e) {
|
|
566
566
|
const t = K(0), n = K(0), i = K(!1);
|
|
567
567
|
return be(e, (o) => {
|
|
568
568
|
o && !i.value && (t.value = o.offsetWidth, n.value = o.scrollWidth, i.value = !0);
|
|
@@ -570,20 +570,20 @@ function Mi(e) {
|
|
|
570
570
|
isTruncated: F(() => t.value < n.value)
|
|
571
571
|
};
|
|
572
572
|
}
|
|
573
|
-
function
|
|
573
|
+
function Pi() {
|
|
574
574
|
const { i18n: { t: e } } = Ue();
|
|
575
575
|
return {
|
|
576
576
|
utf8Name: (n) => /^[\p{N}\p{L}.\-_~]*$/u.test(n) ? "" : e("validationErrors.utf8Name")
|
|
577
577
|
};
|
|
578
578
|
}
|
|
579
579
|
const Je = Symbol("schema"), Di = (e) => {
|
|
580
|
-
|
|
581
|
-
},
|
|
580
|
+
Dt(Je, e);
|
|
581
|
+
}, Ui = (e) => {
|
|
582
582
|
var r, o;
|
|
583
|
-
const t =
|
|
584
|
-
return
|
|
583
|
+
const t = Pt(Je, 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 = Yn(n == null ? void 0 : n[e]);
|
|
584
|
+
return Dt(Je, i), i;
|
|
585
585
|
};
|
|
586
|
-
function
|
|
586
|
+
function qi(e) {
|
|
587
587
|
let t = "";
|
|
588
588
|
const n = K(!1), i = K(null), r = F(() => {
|
|
589
589
|
let a;
|
|
@@ -600,26 +600,26 @@ function Ui(e) {
|
|
|
600
600
|
}
|
|
601
601
|
const Y = {
|
|
602
602
|
useAxios: rt,
|
|
603
|
-
useDebouncedFilter:
|
|
604
|
-
useDeleteUrlBuilder:
|
|
605
|
-
useErrors:
|
|
606
|
-
useExternalLinkCreator:
|
|
607
|
-
useFetcher:
|
|
603
|
+
useDebouncedFilter: $i,
|
|
604
|
+
useDeleteUrlBuilder: Ti,
|
|
605
|
+
useErrors: Ii,
|
|
606
|
+
useExternalLinkCreator: Ei,
|
|
607
|
+
useFetcher: Fi,
|
|
608
608
|
useFetcherCacheKey: Jt,
|
|
609
609
|
useFetchUrlBuilder: Gt,
|
|
610
610
|
useHelpers: Wt,
|
|
611
|
-
useStringHelpers:
|
|
611
|
+
useStringHelpers: Oi,
|
|
612
612
|
useI18n: Ue,
|
|
613
|
-
useGatewayFeatureSupported:
|
|
614
|
-
useTruncationDetector:
|
|
615
|
-
useValidators:
|
|
613
|
+
useGatewayFeatureSupported: Mi,
|
|
614
|
+
useTruncationDetector: ji,
|
|
615
|
+
useValidators: Pi,
|
|
616
616
|
useSchemaProvider: Di,
|
|
617
|
-
useSubSchema:
|
|
618
|
-
useTableState:
|
|
619
|
-
},
|
|
617
|
+
useSubSchema: Ui,
|
|
618
|
+
useTableState: qi
|
|
619
|
+
}, Hi = {
|
|
620
620
|
key: 0,
|
|
621
621
|
class: "config-card-fieldset-title"
|
|
622
|
-
},
|
|
622
|
+
}, Vi = /* @__PURE__ */ z({
|
|
623
623
|
__name: "JsonCardItem",
|
|
624
624
|
props: {
|
|
625
625
|
item: {
|
|
@@ -647,7 +647,7 @@ const Y = {
|
|
|
647
647
|
class: fe(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
|
|
648
648
|
}, {
|
|
649
649
|
default: w(() => [
|
|
650
|
-
e.isArrayItem ? (m(), S("legend",
|
|
650
|
+
e.isArrayItem ? (m(), S("legend", Hi, [
|
|
651
651
|
R("b", null, L(s.value), 1)
|
|
652
652
|
])) : N("", !0),
|
|
653
653
|
(m(!0), S(ue, null, ce(Object.keys(a.value), (d, u) => (m(), j(Xt, {
|
|
@@ -667,7 +667,7 @@ const Y = {
|
|
|
667
667
|
for (const [i, r] of t)
|
|
668
668
|
n[i] = r;
|
|
669
669
|
return n;
|
|
670
|
-
}, Zt = /* @__PURE__ */ se(
|
|
670
|
+
}, Zt = /* @__PURE__ */ se(Vi, [["__scopeId", "data-v-dc1e39a1"]]), Yi = /* @__PURE__ */ z({
|
|
671
671
|
__name: "InternalLinkItem",
|
|
672
672
|
props: {
|
|
673
673
|
item: {
|
|
@@ -679,7 +679,7 @@ const Y = {
|
|
|
679
679
|
setup(e) {
|
|
680
680
|
const { i18n: { t } } = Y.useI18n();
|
|
681
681
|
return (n, i) => {
|
|
682
|
-
const r =
|
|
682
|
+
const r = D("KButton");
|
|
683
683
|
return m(), S("div", null, [
|
|
684
684
|
M(r, {
|
|
685
685
|
appearance: "tertiary",
|
|
@@ -694,7 +694,7 @@ const Y = {
|
|
|
694
694
|
]);
|
|
695
695
|
};
|
|
696
696
|
}
|
|
697
|
-
}),
|
|
697
|
+
}), Wi = /* @__PURE__ */ se(Yi, [["__scopeId", "data-v-2feb8c2e"]]), Gi = /* @__PURE__ */ z({
|
|
698
698
|
__name: "StatusBadge",
|
|
699
699
|
props: {
|
|
700
700
|
status: {
|
|
@@ -705,7 +705,7 @@ const Y = {
|
|
|
705
705
|
setup(e) {
|
|
706
706
|
const { i18n: { t } } = Y.useI18n();
|
|
707
707
|
return (n, i) => {
|
|
708
|
-
const r =
|
|
708
|
+
const r = D("KBadge");
|
|
709
709
|
return m(), j(r, {
|
|
710
710
|
appearance: e.status ? "success" : "neutral"
|
|
711
711
|
}, {
|
|
@@ -716,11 +716,11 @@ const Y = {
|
|
|
716
716
|
}, 8, ["appearance"]);
|
|
717
717
|
};
|
|
718
718
|
}
|
|
719
|
-
}),
|
|
719
|
+
}), Ji = "#0044f4", zi = "#e0e4ea", Qi = "#afb7c5", Zi = "#0044f4", Xi = "1px", er = "16px", tr = "20px", nr = { class: "config-card-details-row" }, ir = ["data-testid"], rr = ["data-testid"], ar = ["data-testid"], or = ["data-testid"], lr = { key: 1 }, sr = ["data-testid"], cr = ["data-testid"], ur = ["data-testid"], dr = ["data-testid"], fr = {
|
|
720
720
|
name: "ConfigCardItem",
|
|
721
|
-
components: { JsonCardItem: Zt, StatusBadge:
|
|
722
|
-
},
|
|
723
|
-
...
|
|
721
|
+
components: { JsonCardItem: Zt, StatusBadge: Gi, InternalLinkItem: Wi }
|
|
722
|
+
}, pr = /* @__PURE__ */ z({
|
|
723
|
+
...fr,
|
|
724
724
|
props: {
|
|
725
725
|
item: {
|
|
726
726
|
type: Object,
|
|
@@ -740,12 +740,12 @@ const Y = {
|
|
|
740
740
|
emits: ["navigation-click"],
|
|
741
741
|
setup(e, { emit: t }) {
|
|
742
742
|
Ut((W) => ({
|
|
743
|
-
v70f369b3: p.value ? "none" : `solid ${$(
|
|
743
|
+
v70f369b3: p.value ? "none" : `solid ${$(Xi)} ${$(zi)}`,
|
|
744
744
|
v67c2fae6: u.value && c.value ? "block" : "flex",
|
|
745
745
|
v847b138c: u.value && c.value ? "100%" : n.slim ? "50%" : "25%",
|
|
746
746
|
v847687d6: u.value && c.value ? "100%" : n.slim ? "50%" : "75%"
|
|
747
747
|
}));
|
|
748
|
-
const n = e, i = t, r =
|
|
748
|
+
const n = e, i = t, r = Wn(), o = Pe(), { i18n: { t: a, formatIsoDate: s, formatUnixTimeStamp: l } } = Y.useI18n(), c = F(() => n.item.value !== void 0 && n.item.value !== null && n.item.value !== ""), d = F(() => !!(n.item.tooltip || o["label-tooltip"])), u = F(() => n.item.type === V.Json || n.item.type === V.JsonArray), p = F(() => n.item.type === V.JsonArray), g = Y.useSubSchema(n.item.key), h = F(() => {
|
|
749
749
|
var W;
|
|
750
750
|
return n.item.type ? n.item.type : (W = g == null ? void 0 : g.value) != null && W.encrypted ? V.Redacted : void 0;
|
|
751
751
|
}), x = F(() => {
|
|
@@ -881,13 +881,13 @@ const Y = {
|
|
|
881
881
|
}
|
|
882
882
|
}), y = K(), k = K(), { isTruncated: C } = Y.useTruncationDetector(y), { isTruncated: T } = Y.useTruncationDetector(k);
|
|
883
883
|
return (W, X) => {
|
|
884
|
-
const _ =
|
|
885
|
-
return m(), S("div",
|
|
884
|
+
const _ = D("KTooltip"), A = D("KLabel"), O = D("KBadge"), f = D("KCopy");
|
|
885
|
+
return m(), S("div", nr, [
|
|
886
886
|
R("div", {
|
|
887
887
|
class: "config-card-details-label",
|
|
888
888
|
"data-testid": `${e.item.key}-label`
|
|
889
889
|
}, [
|
|
890
|
-
|
|
890
|
+
P(W.$slots, "label", { item: e.item }, () => [
|
|
891
891
|
M(A, { "tooltip-attributes": { maxWidth: "500px" } }, Se({
|
|
892
892
|
default: w(() => [
|
|
893
893
|
M(_, {
|
|
@@ -911,25 +911,25 @@ const Y = {
|
|
|
911
911
|
R("div", {
|
|
912
912
|
"data-testid": `${e.item.key}-label-tooltip`
|
|
913
913
|
}, [
|
|
914
|
-
|
|
914
|
+
P(W.$slots, "label-tooltip", {}, () => [
|
|
915
915
|
q(L(e.item.tooltip), 1)
|
|
916
916
|
], !0)
|
|
917
|
-
], 8,
|
|
917
|
+
], 8, rr)
|
|
918
918
|
]),
|
|
919
919
|
key: "0"
|
|
920
920
|
} : void 0
|
|
921
921
|
]), 1024)
|
|
922
922
|
], !0)
|
|
923
|
-
], 8,
|
|
923
|
+
], 8, ir),
|
|
924
924
|
R("div", {
|
|
925
925
|
class: "config-card-details-value",
|
|
926
926
|
"data-testid": `${e.item.key}-property-value`
|
|
927
927
|
}, [
|
|
928
|
-
|
|
928
|
+
P(W.$slots, e.item.key, {
|
|
929
929
|
rowValue: e.item.value
|
|
930
930
|
}, () => [
|
|
931
|
-
c.value ? (m(), S("div",
|
|
932
|
-
(m(), j(je(x.value.tag),
|
|
931
|
+
c.value ? (m(), S("div", lr, [
|
|
932
|
+
(m(), j(je(x.value.tag), Gn(Jn(x.value.attrs)), {
|
|
933
933
|
default: w(() => [
|
|
934
934
|
x.value.additionalComponent === "KBadge" ? (m(), S("div", {
|
|
935
935
|
key: 0,
|
|
@@ -947,7 +947,7 @@ const Y = {
|
|
|
947
947
|
]),
|
|
948
948
|
_: 2
|
|
949
949
|
}, 1032, ["data-testid", "tooltip"]))), 128))
|
|
950
|
-
], 8,
|
|
950
|
+
], 8, sr)) : x.value.additionalComponent === "KCopy" ? (m(), S("div", {
|
|
951
951
|
key: 1,
|
|
952
952
|
class: "copy-uuid-array",
|
|
953
953
|
"data-testid": `${e.item.key}-copy-uuid-array`
|
|
@@ -957,14 +957,14 @@ const Y = {
|
|
|
957
957
|
"data-testid": `${e.item.key}-copy-uuid-${b}`,
|
|
958
958
|
text: v
|
|
959
959
|
}), null, 16, ["data-testid", "text"]))), 128))
|
|
960
|
-
], 8,
|
|
960
|
+
], 8, cr)) : x.value.additionalComponent === "KMethodBadge" ? (m(), S("div", {
|
|
961
961
|
key: 2,
|
|
962
962
|
class: "method-badge-array",
|
|
963
963
|
"data-testid": `${e.item.key}-badge-methods`
|
|
964
964
|
}, [
|
|
965
965
|
(m(!0), S(ue, null, ce(e.item.value, (v, b) => (m(), j(O, {
|
|
966
966
|
key: `${e.item.key}-badge-method-${b}`,
|
|
967
|
-
appearance: Object.values($(
|
|
967
|
+
appearance: Object.values($(ti)).includes(v.toLowerCase()) ? v.toLowerCase() : "custom",
|
|
968
968
|
class: "config-badge",
|
|
969
969
|
"data-testid": `${e.item.key}-badge-method-${b}`
|
|
970
970
|
}, {
|
|
@@ -973,7 +973,7 @@ const Y = {
|
|
|
973
973
|
]),
|
|
974
974
|
_: 2
|
|
975
975
|
}, 1032, ["appearance", "data-testid"]))), 128))
|
|
976
|
-
], 8,
|
|
976
|
+
], 8, ur)) : x.value.additionalComponent === "JsonCardItem" ? (m(), S("div", {
|
|
977
977
|
key: 3,
|
|
978
978
|
"data-testid": `${n.item.key}-json-array-content`
|
|
979
979
|
}, [
|
|
@@ -983,7 +983,7 @@ const Y = {
|
|
|
983
983
|
"is-array-item": "",
|
|
984
984
|
item: v
|
|
985
985
|
}, null, 8, ["index", "item"]))), 128))
|
|
986
|
-
], 8,
|
|
986
|
+
], 8, dr)) : (m(), j(_, {
|
|
987
987
|
key: 4,
|
|
988
988
|
text: $(T) ? e.item.value : ""
|
|
989
989
|
}, {
|
|
@@ -1002,13 +1002,13 @@ const Y = {
|
|
|
1002
1002
|
])) : (m(), S("div", {
|
|
1003
1003
|
key: 0,
|
|
1004
1004
|
"data-testid": `${e.item.key}-no-value`
|
|
1005
|
-
}, " – ", 8,
|
|
1005
|
+
}, " – ", 8, or))
|
|
1006
1006
|
], !0)
|
|
1007
|
-
], 8,
|
|
1007
|
+
], 8, ar)
|
|
1008
1008
|
]);
|
|
1009
1009
|
};
|
|
1010
1010
|
}
|
|
1011
|
-
}), Xt = /* @__PURE__ */ se(
|
|
1011
|
+
}), Xt = /* @__PURE__ */ se(pr, [["__scopeId", "data-v-66d61bea"]]), mr = { class: "json-config config-card-code-block" }, hr = {
|
|
1012
1012
|
key: 0,
|
|
1013
1013
|
class: "json-endpoint"
|
|
1014
1014
|
}, en = /* @__PURE__ */ z({
|
|
@@ -1050,9 +1050,9 @@ const Y = {
|
|
|
1050
1050
|
return r.length < 2 ? 0 : 41 + (t.requestMethod === "post" ? r[r.length - 1] : r[r.length - 2]).length;
|
|
1051
1051
|
});
|
|
1052
1052
|
return (r, o) => {
|
|
1053
|
-
const a =
|
|
1054
|
-
return m(), S("div",
|
|
1055
|
-
t.fetcherUrl ? (m(), S("div",
|
|
1053
|
+
const a = D("KBadge"), s = D("KCodeBlock");
|
|
1054
|
+
return m(), S("div", mr, [
|
|
1055
|
+
t.fetcherUrl ? (m(), S("div", hr, [
|
|
1056
1056
|
M(a, {
|
|
1057
1057
|
appearance: t.requestMethod
|
|
1058
1058
|
}, {
|
|
@@ -1081,39 +1081,39 @@ const Y = {
|
|
|
1081
1081
|
};
|
|
1082
1082
|
}
|
|
1083
1083
|
});
|
|
1084
|
-
/*! js-yaml 4.1.
|
|
1084
|
+
/*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */
|
|
1085
1085
|
function tn(e) {
|
|
1086
1086
|
return typeof e > "u" || e === null;
|
|
1087
1087
|
}
|
|
1088
|
-
function
|
|
1088
|
+
function gr(e) {
|
|
1089
1089
|
return typeof e == "object" && e !== null;
|
|
1090
1090
|
}
|
|
1091
|
-
function
|
|
1091
|
+
function yr(e) {
|
|
1092
1092
|
return Array.isArray(e) ? e : tn(e) ? [] : [e];
|
|
1093
1093
|
}
|
|
1094
|
-
function
|
|
1094
|
+
function vr(e, t) {
|
|
1095
1095
|
var n, i, r, o;
|
|
1096
1096
|
if (t)
|
|
1097
1097
|
for (o = Object.keys(t), n = 0, i = o.length; n < i; n += 1)
|
|
1098
1098
|
r = o[n], e[r] = t[r];
|
|
1099
1099
|
return e;
|
|
1100
1100
|
}
|
|
1101
|
-
function
|
|
1101
|
+
function br(e, t) {
|
|
1102
1102
|
var n = "", i;
|
|
1103
1103
|
for (i = 0; i < t; i += 1)
|
|
1104
1104
|
n += e;
|
|
1105
1105
|
return n;
|
|
1106
1106
|
}
|
|
1107
|
-
function
|
|
1107
|
+
function xr(e) {
|
|
1108
1108
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
1109
1109
|
}
|
|
1110
|
-
var
|
|
1111
|
-
isNothing:
|
|
1112
|
-
isObject:
|
|
1113
|
-
toArray:
|
|
1114
|
-
repeat:
|
|
1115
|
-
isNegativeZero:
|
|
1116
|
-
extend:
|
|
1110
|
+
var Cr = tn, kr = gr, Ar = yr, _r = br, wr = xr, Sr = vr, ee = {
|
|
1111
|
+
isNothing: Cr,
|
|
1112
|
+
isObject: kr,
|
|
1113
|
+
toArray: Ar,
|
|
1114
|
+
repeat: _r,
|
|
1115
|
+
isNegativeZero: wr,
|
|
1116
|
+
extend: Sr
|
|
1117
1117
|
};
|
|
1118
1118
|
function nn(e, t) {
|
|
1119
1119
|
var n = "", i = e.reason || "(unknown reason)";
|
|
@@ -1141,7 +1141,7 @@ function Ve(e, t, n, i, r) {
|
|
|
1141
1141
|
function Ye(e, t) {
|
|
1142
1142
|
return ee.repeat(" ", t - e.length) + e;
|
|
1143
1143
|
}
|
|
1144
|
-
function
|
|
1144
|
+
function $r(e, t) {
|
|
1145
1145
|
if (t = Object.create(t || null), !e.buffer) return null;
|
|
1146
1146
|
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);
|
|
1147
1147
|
for (var n = /\r?\n|\r|\0/g, i = [0], r = [], o, a = -1; o = n.exec(e.buffer); )
|
|
@@ -1170,7 +1170,7 @@ function Sr(e, t) {
|
|
|
1170
1170
|
`;
|
|
1171
1171
|
return s.replace(/\n$/, "");
|
|
1172
1172
|
}
|
|
1173
|
-
var
|
|
1173
|
+
var Tr = $r, Ir = [
|
|
1174
1174
|
"kind",
|
|
1175
1175
|
"multi",
|
|
1176
1176
|
"resolve",
|
|
@@ -1181,12 +1181,12 @@ var $r = Sr, Tr = [
|
|
|
1181
1181
|
"representName",
|
|
1182
1182
|
"defaultStyle",
|
|
1183
1183
|
"styleAliases"
|
|
1184
|
-
],
|
|
1184
|
+
], Er = [
|
|
1185
1185
|
"scalar",
|
|
1186
1186
|
"sequence",
|
|
1187
1187
|
"mapping"
|
|
1188
1188
|
];
|
|
1189
|
-
function
|
|
1189
|
+
function Fr(e) {
|
|
1190
1190
|
var t = {};
|
|
1191
1191
|
return e !== null && Object.keys(e).forEach(function(n) {
|
|
1192
1192
|
e[n].forEach(function(i) {
|
|
@@ -1194,18 +1194,18 @@ function Er(e) {
|
|
|
1194
1194
|
});
|
|
1195
1195
|
}), t;
|
|
1196
1196
|
}
|
|
1197
|
-
function
|
|
1197
|
+
function Or(e, t) {
|
|
1198
1198
|
if (t = t || {}, Object.keys(t).forEach(function(n) {
|
|
1199
|
-
if (
|
|
1199
|
+
if (Ir.indexOf(n) === -1)
|
|
1200
1200
|
throw new oe('Unknown option "' + n + '" is met in definition of "' + e + '" YAML type.');
|
|
1201
1201
|
}), this.options = t, this.tag = e, this.kind = t.kind || null, this.resolve = t.resolve || function() {
|
|
1202
1202
|
return !0;
|
|
1203
1203
|
}, this.construct = t.construct || function(n) {
|
|
1204
1204
|
return n;
|
|
1205
|
-
}, 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 =
|
|
1205
|
+
}, 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 = Fr(t.styleAliases || null), Er.indexOf(this.kind) === -1)
|
|
1206
1206
|
throw new oe('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
|
|
1207
1207
|
}
|
|
1208
|
-
var ne =
|
|
1208
|
+
var ne = Or;
|
|
1209
1209
|
function At(e, t) {
|
|
1210
1210
|
var n = [];
|
|
1211
1211
|
return e[t].forEach(function(i) {
|
|
@@ -1215,7 +1215,7 @@ function At(e, t) {
|
|
|
1215
1215
|
}), n[r] = i;
|
|
1216
1216
|
}), n;
|
|
1217
1217
|
}
|
|
1218
|
-
function
|
|
1218
|
+
function Lr() {
|
|
1219
1219
|
var e = {
|
|
1220
1220
|
scalar: {},
|
|
1221
1221
|
sequence: {},
|
|
@@ -1260,7 +1260,7 @@ ze.prototype.extend = function(t) {
|
|
|
1260
1260
|
throw new oe("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1261
1261
|
});
|
|
1262
1262
|
var r = Object.create(ze.prototype);
|
|
1263
|
-
return r.implicit = (this.implicit || []).concat(n), r.explicit = (this.explicit || []).concat(i), r.compiledImplicit = At(r, "implicit"), r.compiledExplicit = At(r, "explicit"), r.compiledTypeMap =
|
|
1263
|
+
return r.implicit = (this.implicit || []).concat(n), r.explicit = (this.explicit || []).concat(i), r.compiledImplicit = At(r, "implicit"), r.compiledExplicit = At(r, "explicit"), r.compiledTypeMap = Lr(r.compiledImplicit, r.compiledExplicit), r;
|
|
1264
1264
|
};
|
|
1265
1265
|
var rn = ze, an = new ne("tag:yaml.org,2002:str", {
|
|
1266
1266
|
kind: "scalar",
|
|
@@ -1284,22 +1284,22 @@ var rn = ze, an = new ne("tag:yaml.org,2002:str", {
|
|
|
1284
1284
|
ln
|
|
1285
1285
|
]
|
|
1286
1286
|
});
|
|
1287
|
-
function
|
|
1287
|
+
function Br(e) {
|
|
1288
1288
|
if (e === null) return !0;
|
|
1289
1289
|
var t = e.length;
|
|
1290
1290
|
return t === 1 && e === "~" || t === 4 && (e === "null" || e === "Null" || e === "NULL");
|
|
1291
1291
|
}
|
|
1292
|
-
function
|
|
1292
|
+
function Rr() {
|
|
1293
1293
|
return null;
|
|
1294
1294
|
}
|
|
1295
|
-
function
|
|
1295
|
+
function Kr(e) {
|
|
1296
1296
|
return e === null;
|
|
1297
1297
|
}
|
|
1298
1298
|
var cn = new ne("tag:yaml.org,2002:null", {
|
|
1299
1299
|
kind: "scalar",
|
|
1300
|
-
resolve:
|
|
1301
|
-
construct:
|
|
1302
|
-
predicate:
|
|
1300
|
+
resolve: Br,
|
|
1301
|
+
construct: Rr,
|
|
1302
|
+
predicate: Kr,
|
|
1303
1303
|
represent: {
|
|
1304
1304
|
canonical: function() {
|
|
1305
1305
|
return "~";
|
|
@@ -1319,22 +1319,22 @@ var cn = new ne("tag:yaml.org,2002:null", {
|
|
|
1319
1319
|
},
|
|
1320
1320
|
defaultStyle: "lowercase"
|
|
1321
1321
|
});
|
|
1322
|
-
function
|
|
1322
|
+
function Nr(e) {
|
|
1323
1323
|
if (e === null) return !1;
|
|
1324
1324
|
var t = e.length;
|
|
1325
1325
|
return t === 4 && (e === "true" || e === "True" || e === "TRUE") || t === 5 && (e === "false" || e === "False" || e === "FALSE");
|
|
1326
1326
|
}
|
|
1327
|
-
function
|
|
1327
|
+
function Mr(e) {
|
|
1328
1328
|
return e === "true" || e === "True" || e === "TRUE";
|
|
1329
1329
|
}
|
|
1330
|
-
function
|
|
1330
|
+
function jr(e) {
|
|
1331
1331
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
1332
1332
|
}
|
|
1333
1333
|
var un = new ne("tag:yaml.org,2002:bool", {
|
|
1334
1334
|
kind: "scalar",
|
|
1335
|
-
resolve:
|
|
1336
|
-
construct:
|
|
1337
|
-
predicate:
|
|
1335
|
+
resolve: Nr,
|
|
1336
|
+
construct: Mr,
|
|
1337
|
+
predicate: jr,
|
|
1338
1338
|
represent: {
|
|
1339
1339
|
lowercase: function(e) {
|
|
1340
1340
|
return e ? "true" : "false";
|
|
@@ -1348,16 +1348,16 @@ var un = new ne("tag:yaml.org,2002:bool", {
|
|
|
1348
1348
|
},
|
|
1349
1349
|
defaultStyle: "lowercase"
|
|
1350
1350
|
});
|
|
1351
|
-
function
|
|
1351
|
+
function Pr(e) {
|
|
1352
1352
|
return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
|
|
1353
1353
|
}
|
|
1354
1354
|
function Dr(e) {
|
|
1355
1355
|
return 48 <= e && e <= 55;
|
|
1356
1356
|
}
|
|
1357
|
-
function
|
|
1357
|
+
function Ur(e) {
|
|
1358
1358
|
return 48 <= e && e <= 57;
|
|
1359
1359
|
}
|
|
1360
|
-
function
|
|
1360
|
+
function qr(e) {
|
|
1361
1361
|
if (e === null) return !1;
|
|
1362
1362
|
var t = e.length, n = 0, i = !1, r;
|
|
1363
1363
|
if (!t) return !1;
|
|
@@ -1374,7 +1374,7 @@ function Ur(e) {
|
|
|
1374
1374
|
if (r === "x") {
|
|
1375
1375
|
for (n++; n < t; n++)
|
|
1376
1376
|
if (r = e[n], r !== "_") {
|
|
1377
|
-
if (!
|
|
1377
|
+
if (!Pr(e.charCodeAt(n))) return !1;
|
|
1378
1378
|
i = !0;
|
|
1379
1379
|
}
|
|
1380
1380
|
return i && r !== "_";
|
|
@@ -1391,13 +1391,13 @@ function Ur(e) {
|
|
|
1391
1391
|
if (r === "_") return !1;
|
|
1392
1392
|
for (; n < t; n++)
|
|
1393
1393
|
if (r = e[n], r !== "_") {
|
|
1394
|
-
if (!
|
|
1394
|
+
if (!Ur(e.charCodeAt(n)))
|
|
1395
1395
|
return !1;
|
|
1396
1396
|
i = !0;
|
|
1397
1397
|
}
|
|
1398
1398
|
return !(!i || r === "_");
|
|
1399
1399
|
}
|
|
1400
|
-
function
|
|
1400
|
+
function Hr(e) {
|
|
1401
1401
|
var t = e, n = 1, i;
|
|
1402
1402
|
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;
|
|
1403
1403
|
if (i === "0") {
|
|
@@ -1407,14 +1407,14 @@ function qr(e) {
|
|
|
1407
1407
|
}
|
|
1408
1408
|
return n * parseInt(t, 10);
|
|
1409
1409
|
}
|
|
1410
|
-
function
|
|
1410
|
+
function Vr(e) {
|
|
1411
1411
|
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !ee.isNegativeZero(e);
|
|
1412
1412
|
}
|
|
1413
1413
|
var dn = new ne("tag:yaml.org,2002:int", {
|
|
1414
1414
|
kind: "scalar",
|
|
1415
|
-
resolve:
|
|
1416
|
-
construct:
|
|
1417
|
-
predicate:
|
|
1415
|
+
resolve: qr,
|
|
1416
|
+
construct: Hr,
|
|
1417
|
+
predicate: Vr,
|
|
1418
1418
|
represent: {
|
|
1419
1419
|
binary: function(e) {
|
|
1420
1420
|
return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
|
|
@@ -1437,21 +1437,21 @@ var dn = new ne("tag:yaml.org,2002:int", {
|
|
|
1437
1437
|
decimal: [10, "dec"],
|
|
1438
1438
|
hexadecimal: [16, "hex"]
|
|
1439
1439
|
}
|
|
1440
|
-
}),
|
|
1440
|
+
}), Yr = new RegExp(
|
|
1441
1441
|
// 2.5e4, 2.5 and integers
|
|
1442
1442
|
"^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
|
|
1443
1443
|
);
|
|
1444
|
-
function
|
|
1445
|
-
return !(e === null || !
|
|
1444
|
+
function Wr(e) {
|
|
1445
|
+
return !(e === null || !Yr.test(e) || // Quick hack to not allow integers end with `_`
|
|
1446
1446
|
// Probably should update regexp & check speed
|
|
1447
1447
|
e[e.length - 1] === "_");
|
|
1448
1448
|
}
|
|
1449
|
-
function
|
|
1449
|
+
function Gr(e) {
|
|
1450
1450
|
var t, n;
|
|
1451
1451
|
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);
|
|
1452
1452
|
}
|
|
1453
|
-
var
|
|
1454
|
-
function
|
|
1453
|
+
var Jr = /^[-+]?[0-9]+e/;
|
|
1454
|
+
function zr(e, t) {
|
|
1455
1455
|
var n;
|
|
1456
1456
|
if (isNaN(e))
|
|
1457
1457
|
switch (t) {
|
|
@@ -1482,17 +1482,17 @@ function Jr(e, t) {
|
|
|
1482
1482
|
}
|
|
1483
1483
|
else if (ee.isNegativeZero(e))
|
|
1484
1484
|
return "-0.0";
|
|
1485
|
-
return n = e.toString(10),
|
|
1485
|
+
return n = e.toString(10), Jr.test(n) ? n.replace("e", ".e") : n;
|
|
1486
1486
|
}
|
|
1487
|
-
function
|
|
1487
|
+
function Qr(e) {
|
|
1488
1488
|
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || ee.isNegativeZero(e));
|
|
1489
1489
|
}
|
|
1490
1490
|
var fn = new ne("tag:yaml.org,2002:float", {
|
|
1491
1491
|
kind: "scalar",
|
|
1492
|
-
resolve:
|
|
1493
|
-
construct:
|
|
1494
|
-
predicate:
|
|
1495
|
-
represent:
|
|
1492
|
+
resolve: Wr,
|
|
1493
|
+
construct: Gr,
|
|
1494
|
+
predicate: Qr,
|
|
1495
|
+
represent: zr,
|
|
1496
1496
|
defaultStyle: "lowercase"
|
|
1497
1497
|
}), pn = sn.extend({
|
|
1498
1498
|
implicit: [
|
|
@@ -1506,10 +1506,10 @@ var fn = new ne("tag:yaml.org,2002:float", {
|
|
|
1506
1506
|
), gn = new RegExp(
|
|
1507
1507
|
"^([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]))?))?$"
|
|
1508
1508
|
);
|
|
1509
|
-
function
|
|
1509
|
+
function Zr(e) {
|
|
1510
1510
|
return e === null ? !1 : hn.exec(e) !== null || gn.exec(e) !== null;
|
|
1511
1511
|
}
|
|
1512
|
-
function
|
|
1512
|
+
function Xr(e) {
|
|
1513
1513
|
var t, n, i, r, o, a, s, l = 0, c = null, d, u, p;
|
|
1514
1514
|
if (t = hn.exec(e), t === null && (t = gn.exec(e)), t === null) throw new Error("Date resolve error");
|
|
1515
1515
|
if (n = +t[1], i = +t[2] - 1, r = +t[3], !t[4])
|
|
@@ -1521,25 +1521,25 @@ function Zr(e) {
|
|
|
1521
1521
|
}
|
|
1522
1522
|
return t[9] && (d = +t[10], u = +(t[11] || 0), c = (d * 60 + u) * 6e4, t[9] === "-" && (c = -c)), p = new Date(Date.UTC(n, i, r, o, a, s, l)), c && p.setTime(p.getTime() - c), p;
|
|
1523
1523
|
}
|
|
1524
|
-
function
|
|
1524
|
+
function ea(e) {
|
|
1525
1525
|
return e.toISOString();
|
|
1526
1526
|
}
|
|
1527
1527
|
var yn = new ne("tag:yaml.org,2002:timestamp", {
|
|
1528
1528
|
kind: "scalar",
|
|
1529
|
-
resolve:
|
|
1530
|
-
construct:
|
|
1529
|
+
resolve: Zr,
|
|
1530
|
+
construct: Xr,
|
|
1531
1531
|
instanceOf: Date,
|
|
1532
|
-
represent:
|
|
1532
|
+
represent: ea
|
|
1533
1533
|
});
|
|
1534
|
-
function
|
|
1534
|
+
function ta(e) {
|
|
1535
1535
|
return e === "<<" || e === null;
|
|
1536
1536
|
}
|
|
1537
1537
|
var vn = new ne("tag:yaml.org,2002:merge", {
|
|
1538
1538
|
kind: "scalar",
|
|
1539
|
-
resolve:
|
|
1539
|
+
resolve: ta
|
|
1540
1540
|
}), at = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
1541
1541
|
\r`;
|
|
1542
|
-
function
|
|
1542
|
+
function na(e) {
|
|
1543
1543
|
if (e === null) return !1;
|
|
1544
1544
|
var t, n, i = 0, r = e.length, o = at;
|
|
1545
1545
|
for (n = 0; n < r; n++)
|
|
@@ -1549,35 +1549,35 @@ function ta(e) {
|
|
|
1549
1549
|
}
|
|
1550
1550
|
return i % 8 === 0;
|
|
1551
1551
|
}
|
|
1552
|
-
function
|
|
1552
|
+
function ia(e) {
|
|
1553
1553
|
var t, n, i = e.replace(/[\r\n=]/g, ""), r = i.length, o = at, a = 0, s = [];
|
|
1554
1554
|
for (t = 0; t < r; t++)
|
|
1555
1555
|
t % 4 === 0 && t && (s.push(a >> 16 & 255), s.push(a >> 8 & 255), s.push(a & 255)), a = a << 6 | o.indexOf(i.charAt(t));
|
|
1556
1556
|
return n = r % 4 * 6, n === 0 ? (s.push(a >> 16 & 255), s.push(a >> 8 & 255), s.push(a & 255)) : n === 18 ? (s.push(a >> 10 & 255), s.push(a >> 2 & 255)) : n === 12 && s.push(a >> 4 & 255), new Uint8Array(s);
|
|
1557
1557
|
}
|
|
1558
|
-
function
|
|
1558
|
+
function ra(e) {
|
|
1559
1559
|
var t = "", n = 0, i, r, o = e.length, a = at;
|
|
1560
1560
|
for (i = 0; i < o; i++)
|
|
1561
1561
|
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];
|
|
1562
1562
|
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;
|
|
1563
1563
|
}
|
|
1564
|
-
function
|
|
1564
|
+
function aa(e) {
|
|
1565
1565
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
1566
1566
|
}
|
|
1567
1567
|
var bn = new ne("tag:yaml.org,2002:binary", {
|
|
1568
1568
|
kind: "scalar",
|
|
1569
|
-
resolve:
|
|
1570
|
-
construct:
|
|
1571
|
-
predicate:
|
|
1572
|
-
represent:
|
|
1573
|
-
}),
|
|
1574
|
-
function
|
|
1569
|
+
resolve: na,
|
|
1570
|
+
construct: ia,
|
|
1571
|
+
predicate: aa,
|
|
1572
|
+
represent: ra
|
|
1573
|
+
}), oa = Object.prototype.hasOwnProperty, la = Object.prototype.toString;
|
|
1574
|
+
function sa(e) {
|
|
1575
1575
|
if (e === null) return !0;
|
|
1576
1576
|
var t = [], n, i, r, o, a, s = e;
|
|
1577
1577
|
for (n = 0, i = s.length; n < i; n += 1) {
|
|
1578
|
-
if (r = s[n], a = !1,
|
|
1578
|
+
if (r = s[n], a = !1, la.call(r) !== "[object Object]") return !1;
|
|
1579
1579
|
for (o in r)
|
|
1580
|
-
if (
|
|
1580
|
+
if (oa.call(r, o))
|
|
1581
1581
|
if (!a) a = !0;
|
|
1582
1582
|
else return !1;
|
|
1583
1583
|
if (!a) return !1;
|
|
@@ -1586,24 +1586,24 @@ function la(e) {
|
|
|
1586
1586
|
}
|
|
1587
1587
|
return !0;
|
|
1588
1588
|
}
|
|
1589
|
-
function
|
|
1589
|
+
function ca(e) {
|
|
1590
1590
|
return e !== null ? e : [];
|
|
1591
1591
|
}
|
|
1592
1592
|
var xn = new ne("tag:yaml.org,2002:omap", {
|
|
1593
1593
|
kind: "sequence",
|
|
1594
|
-
resolve:
|
|
1595
|
-
construct:
|
|
1596
|
-
}),
|
|
1597
|
-
function
|
|
1594
|
+
resolve: sa,
|
|
1595
|
+
construct: ca
|
|
1596
|
+
}), ua = Object.prototype.toString;
|
|
1597
|
+
function da(e) {
|
|
1598
1598
|
if (e === null) return !0;
|
|
1599
1599
|
var t, n, i, r, o, a = e;
|
|
1600
1600
|
for (o = new Array(a.length), t = 0, n = a.length; t < n; t += 1) {
|
|
1601
|
-
if (i = a[t],
|
|
1601
|
+
if (i = a[t], ua.call(i) !== "[object Object]" || (r = Object.keys(i), r.length !== 1)) return !1;
|
|
1602
1602
|
o[t] = [r[0], i[r[0]]];
|
|
1603
1603
|
}
|
|
1604
1604
|
return !0;
|
|
1605
1605
|
}
|
|
1606
|
-
function
|
|
1606
|
+
function fa(e) {
|
|
1607
1607
|
if (e === null) return [];
|
|
1608
1608
|
var t, n, i, r, o, a = e;
|
|
1609
1609
|
for (o = new Array(a.length), t = 0, n = a.length; t < n; t += 1)
|
|
@@ -1612,24 +1612,24 @@ function da(e) {
|
|
|
1612
1612
|
}
|
|
1613
1613
|
var Cn = new ne("tag:yaml.org,2002:pairs", {
|
|
1614
1614
|
kind: "sequence",
|
|
1615
|
-
resolve:
|
|
1616
|
-
construct:
|
|
1617
|
-
}),
|
|
1618
|
-
function
|
|
1615
|
+
resolve: da,
|
|
1616
|
+
construct: fa
|
|
1617
|
+
}), pa = Object.prototype.hasOwnProperty;
|
|
1618
|
+
function ma(e) {
|
|
1619
1619
|
if (e === null) return !0;
|
|
1620
1620
|
var t, n = e;
|
|
1621
1621
|
for (t in n)
|
|
1622
|
-
if (
|
|
1622
|
+
if (pa.call(n, t) && n[t] !== null)
|
|
1623
1623
|
return !1;
|
|
1624
1624
|
return !0;
|
|
1625
1625
|
}
|
|
1626
|
-
function
|
|
1626
|
+
function ha(e) {
|
|
1627
1627
|
return e !== null ? e : {};
|
|
1628
1628
|
}
|
|
1629
1629
|
var kn = new ne("tag:yaml.org,2002:set", {
|
|
1630
1630
|
kind: "mapping",
|
|
1631
|
-
resolve:
|
|
1632
|
-
construct:
|
|
1631
|
+
resolve: ma,
|
|
1632
|
+
construct: ha
|
|
1633
1633
|
}), ot = mn.extend({
|
|
1634
1634
|
implicit: [
|
|
1635
1635
|
yn,
|
|
@@ -1641,7 +1641,7 @@ var kn = new ne("tag:yaml.org,2002:set", {
|
|
|
1641
1641
|
Cn,
|
|
1642
1642
|
kn
|
|
1643
1643
|
]
|
|
1644
|
-
}), ye = Object.prototype.hasOwnProperty, Be = 1, An = 2, _n = 3, Re = 4, We = 1,
|
|
1644
|
+
}), ye = Object.prototype.hasOwnProperty, Be = 1, An = 2, _n = 3, Re = 4, We = 1, ga = 2, _t = 3, ya = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, va = /[\x85\u2028\u2029]/, ba = /[,\[\]\{\}]/, wn = /^(?:!|!!|![a-z\-]+!)$/i, Sn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
1645
1645
|
function wt(e) {
|
|
1646
1646
|
return Object.prototype.toString.call(e);
|
|
1647
1647
|
}
|
|
@@ -1657,33 +1657,41 @@ function le(e) {
|
|
|
1657
1657
|
function _e(e) {
|
|
1658
1658
|
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
1659
1659
|
}
|
|
1660
|
-
function
|
|
1660
|
+
function xa(e) {
|
|
1661
1661
|
var t;
|
|
1662
1662
|
return 48 <= e && e <= 57 ? e - 48 : (t = e | 32, 97 <= t && t <= 102 ? t - 97 + 10 : -1);
|
|
1663
1663
|
}
|
|
1664
|
-
function
|
|
1664
|
+
function Ca(e) {
|
|
1665
1665
|
return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
|
|
1666
1666
|
}
|
|
1667
|
-
function
|
|
1667
|
+
function ka(e) {
|
|
1668
1668
|
return 48 <= e && e <= 57 ? e - 48 : -1;
|
|
1669
1669
|
}
|
|
1670
1670
|
function St(e) {
|
|
1671
1671
|
return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
|
|
1672
1672
|
` : 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" : "";
|
|
1673
1673
|
}
|
|
1674
|
-
function
|
|
1674
|
+
function Aa(e) {
|
|
1675
1675
|
return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode(
|
|
1676
1676
|
(e - 65536 >> 10) + 55296,
|
|
1677
1677
|
(e - 65536 & 1023) + 56320
|
|
1678
1678
|
);
|
|
1679
1679
|
}
|
|
1680
|
-
|
|
1680
|
+
function $n(e, t, n) {
|
|
1681
|
+
t === "__proto__" ? Object.defineProperty(e, t, {
|
|
1682
|
+
configurable: !0,
|
|
1683
|
+
enumerable: !0,
|
|
1684
|
+
writable: !0,
|
|
1685
|
+
value: n
|
|
1686
|
+
}) : e[t] = n;
|
|
1687
|
+
}
|
|
1688
|
+
var Tn = new Array(256), In = new Array(256);
|
|
1681
1689
|
for (var ke = 0; ke < 256; ke++)
|
|
1682
|
-
|
|
1683
|
-
function
|
|
1690
|
+
Tn[ke] = St(ke) ? 1 : 0, In[ke] = St(ke);
|
|
1691
|
+
function _a(e, t) {
|
|
1684
1692
|
this.input = e, this.filename = t.filename || null, this.schema = t.schema || ot, 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 = [];
|
|
1685
1693
|
}
|
|
1686
|
-
function
|
|
1694
|
+
function En(e, t) {
|
|
1687
1695
|
var n = {
|
|
1688
1696
|
name: e.filename,
|
|
1689
1697
|
buffer: e.input.slice(0, -1),
|
|
@@ -1692,13 +1700,13 @@ function In(e, t) {
|
|
|
1692
1700
|
line: e.line,
|
|
1693
1701
|
column: e.position - e.lineStart
|
|
1694
1702
|
};
|
|
1695
|
-
return n.snippet =
|
|
1703
|
+
return n.snippet = Tr(n), new oe(t, n);
|
|
1696
1704
|
}
|
|
1697
1705
|
function E(e, t) {
|
|
1698
|
-
throw
|
|
1706
|
+
throw En(e, t);
|
|
1699
1707
|
}
|
|
1700
1708
|
function Ke(e, t) {
|
|
1701
|
-
e.onWarning && e.onWarning.call(null,
|
|
1709
|
+
e.onWarning && e.onWarning.call(null, En(e, t));
|
|
1702
1710
|
}
|
|
1703
1711
|
var $t = {
|
|
1704
1712
|
YAML: function(t, n, i) {
|
|
@@ -1722,14 +1730,14 @@ function ge(e, t, n, i) {
|
|
|
1722
1730
|
if (s = e.input.slice(t, n), i)
|
|
1723
1731
|
for (r = 0, o = s.length; r < o; r += 1)
|
|
1724
1732
|
a = s.charCodeAt(r), a === 9 || 32 <= a && a <= 1114111 || E(e, "expected valid JSON character");
|
|
1725
|
-
else
|
|
1733
|
+
else ya.test(s) && E(e, "the stream contains non-printable characters");
|
|
1726
1734
|
e.result += s;
|
|
1727
1735
|
}
|
|
1728
1736
|
}
|
|
1729
1737
|
function Tt(e, t, n, i) {
|
|
1730
1738
|
var r, o, a, s;
|
|
1731
1739
|
for (ee.isObject(n) || E(e, "cannot merge mappings; the provided source object is unacceptable"), r = Object.keys(n), a = 0, s = r.length; a < s; a += 1)
|
|
1732
|
-
o = r[a], ye.call(t, o) || (t
|
|
1740
|
+
o = r[a], ye.call(t, o) || ($n(t, o, n[o]), i[o] = !0);
|
|
1733
1741
|
}
|
|
1734
1742
|
function we(e, t, n, i, r, o, a, s, l) {
|
|
1735
1743
|
var c, d;
|
|
@@ -1743,12 +1751,7 @@ function we(e, t, n, i, r, o, a, s, l) {
|
|
|
1743
1751
|
else
|
|
1744
1752
|
Tt(e, t, o, n);
|
|
1745
1753
|
else
|
|
1746
|
-
!e.json && !ye.call(n, r) && ye.call(t, r) && (e.line = a || e.line, e.lineStart = s || e.lineStart, e.position = l || e.position, E(e, "duplicated mapping key")),
|
|
1747
|
-
configurable: !0,
|
|
1748
|
-
enumerable: !0,
|
|
1749
|
-
writable: !0,
|
|
1750
|
-
value: o
|
|
1751
|
-
}) : t[r] = o, delete n[r];
|
|
1754
|
+
!e.json && !ye.call(n, r) && ye.call(t, r) && (e.line = a || e.line, e.lineStart = s || e.lineStart, e.position = l || e.position, E(e, "duplicated mapping key")), $n(t, r, o), delete n[r];
|
|
1752
1755
|
return t;
|
|
1753
1756
|
}
|
|
1754
1757
|
function lt(e) {
|
|
@@ -1779,7 +1782,7 @@ function st(e, t) {
|
|
|
1779
1782
|
t === 1 ? e.result += " " : t > 1 && (e.result += ee.repeat(`
|
|
1780
1783
|
`, t - 1));
|
|
1781
1784
|
}
|
|
1782
|
-
function
|
|
1785
|
+
function wa(e, t, n) {
|
|
1783
1786
|
var i, r, o, a, s, l, c, d, u = e.kind, p = e.result, g;
|
|
1784
1787
|
if (g = e.input.charCodeAt(e.position), le(g) || _e(g) || g === 35 || g === 38 || g === 42 || g === 33 || g === 124 || g === 62 || g === 39 || g === 34 || g === 37 || g === 64 || g === 96 || (g === 63 || g === 45) && (r = e.input.charCodeAt(e.position + 1), le(r) || n && _e(r)))
|
|
1785
1788
|
return !1;
|
|
@@ -1806,7 +1809,7 @@ function _a(e, t, n) {
|
|
|
1806
1809
|
}
|
|
1807
1810
|
return ge(e, o, a, !1), e.result ? !0 : (e.kind = u, e.result = p, !1);
|
|
1808
1811
|
}
|
|
1809
|
-
function
|
|
1812
|
+
function Sa(e, t) {
|
|
1810
1813
|
var n, i, r;
|
|
1811
1814
|
if (n = e.input.charCodeAt(e.position), n !== 39)
|
|
1812
1815
|
return !1;
|
|
@@ -1819,7 +1822,7 @@ function wa(e, t) {
|
|
|
1819
1822
|
else de(n) ? (ge(e, i, r, !0), st(e, Z(e, !1, t)), i = r = e.position) : e.position === e.lineStart && qe(e) ? E(e, "unexpected end of the document within a single quoted scalar") : (e.position++, r = e.position);
|
|
1820
1823
|
E(e, "unexpected end of the stream within a single quoted scalar");
|
|
1821
1824
|
}
|
|
1822
|
-
function
|
|
1825
|
+
function $a(e, t) {
|
|
1823
1826
|
var n, i, r, o, a, s;
|
|
1824
1827
|
if (s = e.input.charCodeAt(e.position), s !== 34)
|
|
1825
1828
|
return !1;
|
|
@@ -1829,12 +1832,12 @@ function Sa(e, t) {
|
|
|
1829
1832
|
if (s === 92) {
|
|
1830
1833
|
if (ge(e, n, e.position, !0), s = e.input.charCodeAt(++e.position), de(s))
|
|
1831
1834
|
Z(e, !1, t);
|
|
1832
|
-
else if (s < 256 &&
|
|
1833
|
-
e.result +=
|
|
1834
|
-
else if ((a =
|
|
1835
|
+
else if (s < 256 && Tn[s])
|
|
1836
|
+
e.result += In[s], e.position++;
|
|
1837
|
+
else if ((a = Ca(s)) > 0) {
|
|
1835
1838
|
for (r = a, o = 0; r > 0; r--)
|
|
1836
|
-
s = e.input.charCodeAt(++e.position), (a =
|
|
1837
|
-
e.result +=
|
|
1839
|
+
s = e.input.charCodeAt(++e.position), (a = xa(s)) >= 0 ? o = (o << 4) + a : E(e, "expected hexadecimal character");
|
|
1840
|
+
e.result += Aa(o), e.position++;
|
|
1838
1841
|
} else
|
|
1839
1842
|
E(e, "unknown escape sequence");
|
|
1840
1843
|
n = i = e.position;
|
|
@@ -1842,7 +1845,7 @@ function Sa(e, t) {
|
|
|
1842
1845
|
}
|
|
1843
1846
|
E(e, "unexpected end of the stream within a double quoted scalar");
|
|
1844
1847
|
}
|
|
1845
|
-
function
|
|
1848
|
+
function Ta(e, t) {
|
|
1846
1849
|
var n = !0, i, r, o, a = e.tag, s, l = e.anchor, c, d, u, p, g, h = /* @__PURE__ */ Object.create(null), x, y, k, C;
|
|
1847
1850
|
if (C = e.input.charCodeAt(e.position), C === 91)
|
|
1848
1851
|
d = 93, g = !1, s = [];
|
|
@@ -1857,7 +1860,7 @@ function $a(e, t) {
|
|
|
1857
1860
|
}
|
|
1858
1861
|
E(e, "unexpected end of the stream within a flow collection");
|
|
1859
1862
|
}
|
|
1860
|
-
function
|
|
1863
|
+
function Ia(e, t) {
|
|
1861
1864
|
var n, i, r = We, o = !1, a = !1, s = t, l = 0, c = !1, d, u;
|
|
1862
1865
|
if (u = e.input.charCodeAt(e.position), u === 124)
|
|
1863
1866
|
i = !1;
|
|
@@ -1867,8 +1870,8 @@ function Ta(e, t) {
|
|
|
1867
1870
|
return !1;
|
|
1868
1871
|
for (e.kind = "scalar", e.result = ""; u !== 0; )
|
|
1869
1872
|
if (u = e.input.charCodeAt(++e.position), u === 43 || u === 45)
|
|
1870
|
-
We === r ? r = u === 43 ? _t :
|
|
1871
|
-
else if ((d =
|
|
1873
|
+
We === r ? r = u === 43 ? _t : ga : E(e, "repeat of a chomping mode identifier");
|
|
1874
|
+
else if ((d = ka(u)) >= 0)
|
|
1872
1875
|
d === 0 ? E(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : a ? E(e, "repeat of an indentation width identifier") : (s = t + d - 1, a = !0);
|
|
1873
1876
|
else
|
|
1874
1877
|
break;
|
|
@@ -1919,7 +1922,7 @@ function It(e, t) {
|
|
|
1919
1922
|
}
|
|
1920
1923
|
return s ? (e.tag = i, e.anchor = r, e.kind = "sequence", e.result = o, !0) : !1;
|
|
1921
1924
|
}
|
|
1922
|
-
function
|
|
1925
|
+
function Ea(e, t, n) {
|
|
1923
1926
|
var i, r, o, a, s, l, c = e.tag, d = e.anchor, u = {}, p = /* @__PURE__ */ Object.create(null), g = null, h = null, x = null, y = !1, k = !1, C;
|
|
1924
1927
|
if (e.firstTabInLine !== -1) return !1;
|
|
1925
1928
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = u), C = e.input.charCodeAt(e.position); C !== 0; ) {
|
|
@@ -1949,7 +1952,7 @@ function Ia(e, t, n) {
|
|
|
1949
1952
|
}
|
|
1950
1953
|
return y && we(e, u, p, g, h, null, a, s, l), k && (e.tag = c, e.anchor = d, e.kind = "mapping", e.result = u), k;
|
|
1951
1954
|
}
|
|
1952
|
-
function
|
|
1955
|
+
function Fa(e) {
|
|
1953
1956
|
var t, n = !1, i = !1, r, o, a;
|
|
1954
1957
|
if (a = e.input.charCodeAt(e.position), a !== 33) return !1;
|
|
1955
1958
|
if (e.tag !== null && E(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) {
|
|
@@ -1960,7 +1963,7 @@ function Ea(e) {
|
|
|
1960
1963
|
} else {
|
|
1961
1964
|
for (; a !== 0 && !le(a); )
|
|
1962
1965
|
a === 33 && (i ? E(e, "tag suffix cannot contain exclamation marks") : (r = e.input.slice(t - 1, e.position + 1), wn.test(r) || E(e, "named tag handle cannot contain such characters"), i = !0, t = e.position + 1)), a = e.input.charCodeAt(++e.position);
|
|
1963
|
-
o = e.input.slice(t, e.position),
|
|
1966
|
+
o = e.input.slice(t, e.position), ba.test(o) && E(e, "tag suffix cannot contain flow indicator characters");
|
|
1964
1967
|
}
|
|
1965
1968
|
o && !Sn.test(o) && E(e, "tag name cannot contain such characters: " + o);
|
|
1966
1969
|
try {
|
|
@@ -1970,14 +1973,14 @@ function Ea(e) {
|
|
|
1970
1973
|
}
|
|
1971
1974
|
return n ? e.tag = o : ye.call(e.tagMap, r) ? e.tag = e.tagMap[r] + o : r === "!" ? e.tag = "!" + o : r === "!!" ? e.tag = "tag:yaml.org,2002:" + o : E(e, 'undeclared tag handle "' + r + '"'), !0;
|
|
1972
1975
|
}
|
|
1973
|
-
function
|
|
1976
|
+
function Oa(e) {
|
|
1974
1977
|
var t, n;
|
|
1975
1978
|
if (n = e.input.charCodeAt(e.position), n !== 38) return !1;
|
|
1976
1979
|
for (e.anchor !== null && E(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !le(n) && !_e(n); )
|
|
1977
1980
|
n = e.input.charCodeAt(++e.position);
|
|
1978
1981
|
return e.position === t && E(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0;
|
|
1979
1982
|
}
|
|
1980
|
-
function
|
|
1983
|
+
function La(e) {
|
|
1981
1984
|
var t, n, i;
|
|
1982
1985
|
if (i = e.input.charCodeAt(e.position), i !== 42) return !1;
|
|
1983
1986
|
for (i = e.input.charCodeAt(++e.position), t = e.position; i !== 0 && !le(i) && !_e(i); )
|
|
@@ -1987,9 +1990,9 @@ function Oa(e) {
|
|
|
1987
1990
|
function $e(e, t, n, i, r) {
|
|
1988
1991
|
var o, a, s, l = 1, c = !1, d = !1, u, p, g, h, x, y;
|
|
1989
1992
|
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = a = s = Re === n || _n === n, i && Z(e, !0, -1) && (c = !0, e.lineIndent > t ? l = 1 : e.lineIndent === t ? l = 0 : e.lineIndent < t && (l = -1)), l === 1)
|
|
1990
|
-
for (;
|
|
1993
|
+
for (; Fa(e) || Oa(e); )
|
|
1991
1994
|
Z(e, !0, -1) ? (c = !0, s = o, e.lineIndent > t ? l = 1 : e.lineIndent === t ? l = 0 : e.lineIndent < t && (l = -1)) : s = !1;
|
|
1992
|
-
if (s && (s = c || r), (l === 1 || Re === n) && (Be === n || An === n ? x = t : x = t + 1, y = e.position - e.lineStart, l === 1 ? s && (It(e, y) ||
|
|
1995
|
+
if (s && (s = c || r), (l === 1 || Re === n) && (Be === n || An === n ? x = t : x = t + 1, y = e.position - e.lineStart, l === 1 ? s && (It(e, y) || Ea(e, y, x)) || Ta(e, x) ? d = !0 : (a && Ia(e, x) || Sa(e, x) || $a(e, x) ? d = !0 : La(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && E(e, "alias node should not have any properties")) : wa(e, x, Be === n) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : l === 0 && (d = s && It(e, y))), e.tag === null)
|
|
1993
1996
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
1994
1997
|
else if (e.tag === "?") {
|
|
1995
1998
|
for (e.result !== null && e.kind !== "scalar" && E(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, p = e.implicitTypes.length; u < p; u += 1)
|
|
@@ -2010,7 +2013,7 @@ function $e(e, t, n, i, r) {
|
|
|
2010
2013
|
}
|
|
2011
2014
|
return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || d;
|
|
2012
2015
|
}
|
|
2013
|
-
function
|
|
2016
|
+
function Ba(e) {
|
|
2014
2017
|
var t = e.position, n, i, r, o = !1, a;
|
|
2015
2018
|
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 && (Z(e, !0, -1), a = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || a !== 37)); ) {
|
|
2016
2019
|
for (o = !0, a = e.input.charCodeAt(++e.position), n = e.position; a !== 0 && !le(a); )
|
|
@@ -2031,7 +2034,7 @@ function La(e) {
|
|
|
2031
2034
|
}
|
|
2032
2035
|
a !== 0 && lt(e), ye.call($t, i) ? $t[i](e, i, r) : Ke(e, 'unknown document directive "' + i + '"');
|
|
2033
2036
|
}
|
|
2034
|
-
if (Z(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, Z(e, !0, -1)) : o && E(e, "directives end mark is expected"), $e(e, e.lineIndent - 1, Re, !1, !0), Z(e, !0, -1), e.checkLineBreaks &&
|
|
2037
|
+
if (Z(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, Z(e, !0, -1)) : o && E(e, "directives end mark is expected"), $e(e, e.lineIndent - 1, Re, !1, !0), Z(e, !0, -1), e.checkLineBreaks && va.test(e.input.slice(t, e.position)) && Ke(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && qe(e)) {
|
|
2035
2038
|
e.input.charCodeAt(e.position) === 46 && (e.position += 3, Z(e, !0, -1));
|
|
2036
2039
|
return;
|
|
2037
2040
|
}
|
|
@@ -2040,36 +2043,36 @@ function La(e) {
|
|
|
2040
2043
|
else
|
|
2041
2044
|
return;
|
|
2042
2045
|
}
|
|
2043
|
-
function
|
|
2046
|
+
function Fn(e, t) {
|
|
2044
2047
|
e = String(e), t = t || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
|
|
2045
2048
|
`), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
2046
|
-
var n = new
|
|
2049
|
+
var n = new _a(e, t), i = e.indexOf("\0");
|
|
2047
2050
|
for (i !== -1 && (n.position = i, E(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32; )
|
|
2048
2051
|
n.lineIndent += 1, n.position += 1;
|
|
2049
2052
|
for (; n.position < n.length - 1; )
|
|
2050
|
-
|
|
2053
|
+
Ba(n);
|
|
2051
2054
|
return n.documents;
|
|
2052
2055
|
}
|
|
2053
|
-
function
|
|
2056
|
+
function Ra(e, t, n) {
|
|
2054
2057
|
t !== null && typeof t == "object" && typeof n > "u" && (n = t, t = null);
|
|
2055
|
-
var i =
|
|
2058
|
+
var i = Fn(e, n);
|
|
2056
2059
|
if (typeof t != "function")
|
|
2057
2060
|
return i;
|
|
2058
2061
|
for (var r = 0, o = i.length; r < o; r += 1)
|
|
2059
2062
|
t(i[r]);
|
|
2060
2063
|
}
|
|
2061
|
-
function
|
|
2062
|
-
var n =
|
|
2064
|
+
function Ka(e, t) {
|
|
2065
|
+
var n = Fn(e, t);
|
|
2063
2066
|
if (n.length !== 0) {
|
|
2064
2067
|
if (n.length === 1)
|
|
2065
2068
|
return n[0];
|
|
2066
2069
|
throw new oe("expected a single document in the stream, but found more");
|
|
2067
2070
|
}
|
|
2068
2071
|
}
|
|
2069
|
-
var
|
|
2070
|
-
loadAll:
|
|
2071
|
-
load:
|
|
2072
|
-
},
|
|
2072
|
+
var Na = Ra, Ma = Ka, On = {
|
|
2073
|
+
loadAll: Na,
|
|
2074
|
+
load: Ma
|
|
2075
|
+
}, Ln = Object.prototype.toString, Bn = Object.prototype.hasOwnProperty, ct = 65279, ja = 9, Ee = 10, Pa = 13, Da = 32, Ua = 33, qa = 34, Qe = 35, Ha = 37, Va = 38, Ya = 39, Wa = 42, Rn = 44, Ga = 45, Ne = 58, Ja = 61, za = 62, Qa = 63, Za = 64, Kn = 91, Nn = 93, Xa = 96, Mn = 123, eo = 124, jn = 125, re = {};
|
|
2073
2076
|
re[0] = "\\0";
|
|
2074
2077
|
re[7] = "\\a";
|
|
2075
2078
|
re[8] = "\\b";
|
|
@@ -2085,7 +2088,7 @@ re[133] = "\\N";
|
|
|
2085
2088
|
re[160] = "\\_";
|
|
2086
2089
|
re[8232] = "\\L";
|
|
2087
2090
|
re[8233] = "\\P";
|
|
2088
|
-
var
|
|
2091
|
+
var to = [
|
|
2089
2092
|
"y",
|
|
2090
2093
|
"Y",
|
|
2091
2094
|
"yes",
|
|
@@ -2102,15 +2105,15 @@ var eo = [
|
|
|
2102
2105
|
"off",
|
|
2103
2106
|
"Off",
|
|
2104
2107
|
"OFF"
|
|
2105
|
-
],
|
|
2106
|
-
function
|
|
2108
|
+
], no = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
2109
|
+
function io(e, t) {
|
|
2107
2110
|
var n, i, r, o, a, s, l;
|
|
2108
2111
|
if (t === null) return {};
|
|
2109
2112
|
for (n = {}, i = Object.keys(t), r = 0, o = i.length; r < o; r += 1)
|
|
2110
|
-
a = i[r], s = String(t[a]), a.slice(0, 2) === "!!" && (a = "tag:yaml.org,2002:" + a.slice(2)), l = e.compiledTypeMap.fallback[a], l &&
|
|
2113
|
+
a = i[r], s = String(t[a]), a.slice(0, 2) === "!!" && (a = "tag:yaml.org,2002:" + a.slice(2)), l = e.compiledTypeMap.fallback[a], l && Bn.call(l.styleAliases, s) && (s = l.styleAliases[s]), n[a] = s;
|
|
2111
2114
|
return n;
|
|
2112
2115
|
}
|
|
2113
|
-
function
|
|
2116
|
+
function ro(e) {
|
|
2114
2117
|
var t, n, i;
|
|
2115
2118
|
if (t = e.toString(16).toUpperCase(), e <= 255)
|
|
2116
2119
|
n = "x", i = 2;
|
|
@@ -2122,9 +2125,9 @@ function io(e) {
|
|
|
2122
2125
|
throw new oe("code point within a string may not be greater than 0xFFFFFFFF");
|
|
2123
2126
|
return "\\" + n + ee.repeat("0", i - t.length) + t;
|
|
2124
2127
|
}
|
|
2125
|
-
var
|
|
2126
|
-
function
|
|
2127
|
-
this.schema = e.schema || ot, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = ee.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap =
|
|
2128
|
+
var ao = 1, Fe = 2;
|
|
2129
|
+
function oo(e) {
|
|
2130
|
+
this.schema = e.schema || ot, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = ee.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = io(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 === '"' ? Fe : ao, 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;
|
|
2128
2131
|
}
|
|
2129
2132
|
function Et(e, t) {
|
|
2130
2133
|
for (var n = ee.repeat(" ", t), i = 0, r = -1, o = "", a, s = e.length; i < s; )
|
|
@@ -2137,7 +2140,7 @@ function Ze(e, t) {
|
|
|
2137
2140
|
return `
|
|
2138
2141
|
` + ee.repeat(" ", e.indent * t);
|
|
2139
2142
|
}
|
|
2140
|
-
function
|
|
2143
|
+
function lo(e, t) {
|
|
2141
2144
|
var n, i, r;
|
|
2142
2145
|
for (n = 0, i = e.implicitTypes.length; n < i; n += 1)
|
|
2143
2146
|
if (r = e.implicitTypes[n], r.resolve(t))
|
|
@@ -2145,13 +2148,13 @@ function oo(e, t) {
|
|
|
2145
2148
|
return !1;
|
|
2146
2149
|
}
|
|
2147
2150
|
function Me(e) {
|
|
2148
|
-
return e === Da || e ===
|
|
2151
|
+
return e === Da || e === ja;
|
|
2149
2152
|
}
|
|
2150
2153
|
function Oe(e) {
|
|
2151
2154
|
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== ct || 65536 <= e && e <= 1114111;
|
|
2152
2155
|
}
|
|
2153
2156
|
function Ft(e) {
|
|
2154
|
-
return Oe(e) && e !== ct && e !==
|
|
2157
|
+
return Oe(e) && e !== ct && e !== Pa && e !== Ee;
|
|
2155
2158
|
}
|
|
2156
2159
|
function Ot(e, t, n) {
|
|
2157
2160
|
var i = Ft(e), r = i && !Me(e);
|
|
@@ -2160,26 +2163,26 @@ function Ot(e, t, n) {
|
|
|
2160
2163
|
(n ? (
|
|
2161
2164
|
// c = flow-in
|
|
2162
2165
|
i
|
|
2163
|
-
) : i && e !==
|
|
2166
|
+
) : i && e !== Rn && e !== Kn && e !== Nn && e !== Mn && e !== jn) && e !== Qe && !(t === Ne && !r) || Ft(t) && !Me(t) && e === Qe || t === Ne && r
|
|
2164
2167
|
);
|
|
2165
2168
|
}
|
|
2166
|
-
function lo(e) {
|
|
2167
|
-
return Oe(e) && e !== ct && !Me(e) && e !== Wa && e !== za && e !== Ne && e !== Bn && e !== Rn && e !== Kn && e !== Nn && e !== Mn && e !== Qe && e !== Ha && e !== Ya && e !== Pa && e !== Xa && e !== Ga && e !== Ja && e !== Va && e !== Ua && e !== qa && e !== Qa && e !== Za;
|
|
2168
|
-
}
|
|
2169
2169
|
function so(e) {
|
|
2170
|
+
return Oe(e) && e !== ct && !Me(e) && e !== Ga && e !== Qa && e !== Ne && e !== Rn && e !== Kn && e !== Nn && e !== Mn && e !== jn && e !== Qe && e !== Va && e !== Wa && e !== Ua && e !== eo && e !== Ja && e !== za && e !== Ya && e !== qa && e !== Ha && e !== Za && e !== Xa;
|
|
2171
|
+
}
|
|
2172
|
+
function co(e) {
|
|
2170
2173
|
return !Me(e) && e !== Ne;
|
|
2171
2174
|
}
|
|
2172
2175
|
function Te(e, t) {
|
|
2173
2176
|
var n = e.charCodeAt(t), i;
|
|
2174
2177
|
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;
|
|
2175
2178
|
}
|
|
2176
|
-
function
|
|
2179
|
+
function Pn(e) {
|
|
2177
2180
|
var t = /^\n* /;
|
|
2178
2181
|
return t.test(e);
|
|
2179
2182
|
}
|
|
2180
|
-
var Dn = 1, Xe = 2,
|
|
2181
|
-
function
|
|
2182
|
-
var l, c = 0, d = null, u = !1, p = !1, g = i !== -1, h = -1, x =
|
|
2183
|
+
var Dn = 1, Xe = 2, Un = 3, qn = 4, Ae = 5;
|
|
2184
|
+
function uo(e, t, n, i, r, o, a, s) {
|
|
2185
|
+
var l, c = 0, d = null, u = !1, p = !1, g = i !== -1, h = -1, x = so(Te(e, 0)) && co(Te(e, e.length - 1));
|
|
2183
2186
|
if (t || a)
|
|
2184
2187
|
for (l = 0; l < e.length; c >= 65536 ? l += 2 : l++) {
|
|
2185
2188
|
if (c = Te(e, l), !Oe(c))
|
|
@@ -2197,19 +2200,19 @@ function co(e, t, n, i, r, o, a, s) {
|
|
|
2197
2200
|
}
|
|
2198
2201
|
p = p || g && l - h - 1 > i && e[h + 1] !== " ";
|
|
2199
2202
|
}
|
|
2200
|
-
return !u && !p ? x && !a && !r(e) ? Dn : o === Fe ? Ae : Xe : n > 9 &&
|
|
2203
|
+
return !u && !p ? x && !a && !r(e) ? Dn : o === Fe ? Ae : Xe : n > 9 && Pn(e) ? Ae : a ? o === Fe ? Ae : Xe : p ? qn : Un;
|
|
2201
2204
|
}
|
|
2202
|
-
function
|
|
2205
|
+
function fo(e, t, n, i, r) {
|
|
2203
2206
|
e.dump = function() {
|
|
2204
2207
|
if (t.length === 0)
|
|
2205
2208
|
return e.quotingType === Fe ? '""' : "''";
|
|
2206
|
-
if (!e.noCompatMode && (
|
|
2209
|
+
if (!e.noCompatMode && (to.indexOf(t) !== -1 || no.test(t)))
|
|
2207
2210
|
return e.quotingType === Fe ? '"' + t + '"' : "'" + t + "'";
|
|
2208
2211
|
var o = e.indent * Math.max(1, n), a = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - o), s = i || e.flowLevel > -1 && n >= e.flowLevel;
|
|
2209
2212
|
function l(c) {
|
|
2210
|
-
return
|
|
2213
|
+
return lo(e, c);
|
|
2211
2214
|
}
|
|
2212
|
-
switch (
|
|
2215
|
+
switch (uo(
|
|
2213
2216
|
t,
|
|
2214
2217
|
s,
|
|
2215
2218
|
e.indent,
|
|
@@ -2223,19 +2226,19 @@ function uo(e, t, n, i, r) {
|
|
|
2223
2226
|
return t;
|
|
2224
2227
|
case Xe:
|
|
2225
2228
|
return "'" + t.replace(/'/g, "''") + "'";
|
|
2226
|
-
case Pn:
|
|
2227
|
-
return "|" + Lt(t, e.indent) + Bt(Et(t, o));
|
|
2228
2229
|
case Un:
|
|
2229
|
-
return "
|
|
2230
|
+
return "|" + Lt(t, e.indent) + Bt(Et(t, o));
|
|
2231
|
+
case qn:
|
|
2232
|
+
return ">" + Lt(t, e.indent) + Bt(Et(po(t, a), o));
|
|
2230
2233
|
case Ae:
|
|
2231
|
-
return '"' +
|
|
2234
|
+
return '"' + mo(t) + '"';
|
|
2232
2235
|
default:
|
|
2233
2236
|
throw new oe("impossible error: invalid scalar style");
|
|
2234
2237
|
}
|
|
2235
2238
|
}();
|
|
2236
2239
|
}
|
|
2237
2240
|
function Lt(e, t) {
|
|
2238
|
-
var n =
|
|
2241
|
+
var n = Pn(e) ? String(t) : "", i = e[e.length - 1] === `
|
|
2239
2242
|
`, r = i && (e[e.length - 2] === `
|
|
2240
2243
|
` || e === `
|
|
2241
2244
|
`), o = r ? "+" : i ? "" : "-";
|
|
@@ -2246,7 +2249,7 @@ function Bt(e) {
|
|
|
2246
2249
|
return e[e.length - 1] === `
|
|
2247
2250
|
` ? e.slice(0, -1) : e;
|
|
2248
2251
|
}
|
|
2249
|
-
function
|
|
2252
|
+
function po(e, t) {
|
|
2250
2253
|
for (var n = /(\n+)([^\n]*)/g, i = function() {
|
|
2251
2254
|
var c = e.indexOf(`
|
|
2252
2255
|
`);
|
|
@@ -2268,12 +2271,12 @@ function Rt(e, t) {
|
|
|
2268
2271
|
`, e.length - r > t && a > r ? l += e.slice(r, a) + `
|
|
2269
2272
|
` + e.slice(a + 1) : l += e.slice(r), l.slice(1);
|
|
2270
2273
|
}
|
|
2271
|
-
function
|
|
2274
|
+
function mo(e) {
|
|
2272
2275
|
for (var t = "", n = 0, i, r = 0; r < e.length; n >= 65536 ? r += 2 : r++)
|
|
2273
|
-
n = Te(e, r), i = re[n], !i && Oe(n) ? (t += e[r], n >= 65536 && (t += e[r + 1])) : t += i ||
|
|
2276
|
+
n = Te(e, r), i = re[n], !i && Oe(n) ? (t += e[r], n >= 65536 && (t += e[r + 1])) : t += i || ro(n);
|
|
2274
2277
|
return t;
|
|
2275
2278
|
}
|
|
2276
|
-
function
|
|
2279
|
+
function ho(e, t, n) {
|
|
2277
2280
|
var i = "", r = e.tag, o, a, s;
|
|
2278
2281
|
for (o = 0, a = n.length; o < a; o += 1)
|
|
2279
2282
|
s = n[o], e.replacer && (s = e.replacer.call(n, String(o), s)), (pe(e, t, s, !1, !1) || typeof s > "u" && pe(e, t, null, !1, !1)) && (i !== "" && (i += "," + (e.condenseFlow ? "" : " ")), i += e.dump);
|
|
@@ -2285,13 +2288,13 @@ function Kt(e, t, n, i) {
|
|
|
2285
2288
|
l = n[a], e.replacer && (l = e.replacer.call(n, String(a), l)), (pe(e, t + 1, l, !0, !0, !1, !0) || typeof l > "u" && pe(e, t + 1, null, !0, !0, !1, !0)) && ((!i || r !== "") && (r += Ze(e, t)), e.dump && Ee === e.dump.charCodeAt(0) ? r += "-" : r += "- ", r += e.dump);
|
|
2286
2289
|
e.tag = o, e.dump = r || "[]";
|
|
2287
2290
|
}
|
|
2288
|
-
function
|
|
2291
|
+
function go(e, t, n) {
|
|
2289
2292
|
var i = "", r = e.tag, o = Object.keys(n), a, s, l, c, d;
|
|
2290
2293
|
for (a = 0, s = o.length; a < s; a += 1)
|
|
2291
2294
|
d = "", i !== "" && (d += ", "), e.condenseFlow && (d += '"'), l = o[a], c = n[l], e.replacer && (c = e.replacer.call(n, l, c)), pe(e, t, l, !1, !1) && (e.dump.length > 1024 && (d += "? "), d += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), pe(e, t, c, !1, !1) && (d += e.dump, i += d));
|
|
2292
2295
|
e.tag = r, e.dump = "{" + i + "}";
|
|
2293
2296
|
}
|
|
2294
|
-
function
|
|
2297
|
+
function yo(e, t, n, i) {
|
|
2295
2298
|
var r = "", o = e.tag, a = Object.keys(n), s, l, c, d, u, p;
|
|
2296
2299
|
if (e.sortKeys === !0)
|
|
2297
2300
|
a.sort();
|
|
@@ -2308,9 +2311,9 @@ function Nt(e, t, n) {
|
|
|
2308
2311
|
for (r = n ? e.explicitTypes : e.implicitTypes, o = 0, a = r.length; o < a; o += 1)
|
|
2309
2312
|
if (s = r[o], (s.instanceOf || s.predicate) && (!s.instanceOf || typeof t == "object" && t instanceof s.instanceOf) && (!s.predicate || s.predicate(t))) {
|
|
2310
2313
|
if (n ? s.multi && s.representName ? e.tag = s.representName(t) : e.tag = s.tag : e.tag = "?", s.represent) {
|
|
2311
|
-
if (l = e.styleMap[s.tag] || s.defaultStyle,
|
|
2314
|
+
if (l = e.styleMap[s.tag] || s.defaultStyle, Ln.call(s.represent) === "[object Function]")
|
|
2312
2315
|
i = s.represent(t, l);
|
|
2313
|
-
else if (
|
|
2316
|
+
else if (Bn.call(s.represent, l))
|
|
2314
2317
|
i = s.represent[l](t, l);
|
|
2315
2318
|
else
|
|
2316
2319
|
throw new oe("!<" + s.tag + '> tag resolver accepts not "' + l + '" style');
|
|
@@ -2322,18 +2325,18 @@ function Nt(e, t, n) {
|
|
|
2322
2325
|
}
|
|
2323
2326
|
function pe(e, t, n, i, r, o, a) {
|
|
2324
2327
|
e.tag = null, e.dump = n, Nt(e, n, !1) || Nt(e, n, !0);
|
|
2325
|
-
var s =
|
|
2328
|
+
var s = Ln.call(e.dump), l = i, c;
|
|
2326
2329
|
i && (i = e.flowLevel < 0 || e.flowLevel > t);
|
|
2327
2330
|
var d = s === "[object Object]" || s === "[object Array]", u, p;
|
|
2328
2331
|
if (d && (u = e.duplicates.indexOf(n), p = u !== -1), (e.tag !== null && e.tag !== "?" || p || e.indent !== 2 && t > 0) && (r = !1), p && e.usedDuplicates[u])
|
|
2329
2332
|
e.dump = "*ref_" + u;
|
|
2330
2333
|
else {
|
|
2331
2334
|
if (d && p && !e.usedDuplicates[u] && (e.usedDuplicates[u] = !0), s === "[object Object]")
|
|
2332
|
-
i && Object.keys(e.dump).length !== 0 ? (
|
|
2335
|
+
i && Object.keys(e.dump).length !== 0 ? (yo(e, t, e.dump, r), p && (e.dump = "&ref_" + u + e.dump)) : (go(e, t, e.dump), p && (e.dump = "&ref_" + u + " " + e.dump));
|
|
2333
2336
|
else if (s === "[object Array]")
|
|
2334
|
-
i && e.dump.length !== 0 ? (e.noArrayIndent && !a && t > 0 ? Kt(e, t - 1, e.dump, r) : Kt(e, t, e.dump, r), p && (e.dump = "&ref_" + u + e.dump)) : (
|
|
2337
|
+
i && e.dump.length !== 0 ? (e.noArrayIndent && !a && t > 0 ? Kt(e, t - 1, e.dump, r) : Kt(e, t, e.dump, r), p && (e.dump = "&ref_" + u + e.dump)) : (ho(e, t, e.dump), p && (e.dump = "&ref_" + u + " " + e.dump));
|
|
2335
2338
|
else if (s === "[object String]")
|
|
2336
|
-
e.tag !== "?" &&
|
|
2339
|
+
e.tag !== "?" && fo(e, e.dump, t, o, l);
|
|
2337
2340
|
else {
|
|
2338
2341
|
if (s === "[object Undefined]")
|
|
2339
2342
|
return !1;
|
|
@@ -2346,7 +2349,7 @@ function pe(e, t, n, i, r, o, a) {
|
|
|
2346
2349
|
}
|
|
2347
2350
|
return !0;
|
|
2348
2351
|
}
|
|
2349
|
-
function
|
|
2352
|
+
function vo(e, t) {
|
|
2350
2353
|
var n = [], i = [], r, o;
|
|
2351
2354
|
for (et(e, n, i), r = 0, o = i.length; r < o; r += 1)
|
|
2352
2355
|
t.duplicates.push(n[i[r]]);
|
|
@@ -2364,23 +2367,23 @@ function et(e, t, n) {
|
|
|
2364
2367
|
for (i = Object.keys(e), r = 0, o = i.length; r < o; r += 1)
|
|
2365
2368
|
et(e[i[r]], t, n);
|
|
2366
2369
|
}
|
|
2367
|
-
function
|
|
2370
|
+
function bo(e, t) {
|
|
2368
2371
|
t = t || {};
|
|
2369
|
-
var n = new
|
|
2370
|
-
n.noRefs ||
|
|
2372
|
+
var n = new oo(t);
|
|
2373
|
+
n.noRefs || vo(e, n);
|
|
2371
2374
|
var i = e;
|
|
2372
2375
|
return n.replacer && (i = n.replacer.call({ "": i }, "", i)), pe(n, 0, i, !0, !0) ? n.dump + `
|
|
2373
2376
|
` : "";
|
|
2374
2377
|
}
|
|
2375
|
-
var
|
|
2376
|
-
dump:
|
|
2378
|
+
var xo = bo, Co = {
|
|
2379
|
+
dump: xo
|
|
2377
2380
|
};
|
|
2378
2381
|
function ut(e, t) {
|
|
2379
2382
|
return function() {
|
|
2380
2383
|
throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
|
|
2381
2384
|
};
|
|
2382
2385
|
}
|
|
2383
|
-
var
|
|
2386
|
+
var ko = ne, Ao = rn, _o = sn, wo = pn, So = mn, $o = ot, To = On.load, Io = On.loadAll, Eo = Co.dump, Fo = oe, Oo = {
|
|
2384
2387
|
binary: bn,
|
|
2385
2388
|
float: fn,
|
|
2386
2389
|
map: ln,
|
|
@@ -2394,23 +2397,23 @@ var Co = ne, ko = rn, Ao = sn, _o = pn, wo = mn, So = ot, $o = Fn.load, To = Fn.
|
|
|
2394
2397
|
omap: xn,
|
|
2395
2398
|
seq: on,
|
|
2396
2399
|
str: an
|
|
2397
|
-
},
|
|
2398
|
-
Type:
|
|
2399
|
-
Schema:
|
|
2400
|
-
FAILSAFE_SCHEMA:
|
|
2401
|
-
JSON_SCHEMA:
|
|
2402
|
-
CORE_SCHEMA:
|
|
2403
|
-
DEFAULT_SCHEMA:
|
|
2404
|
-
load:
|
|
2405
|
-
loadAll:
|
|
2406
|
-
dump:
|
|
2407
|
-
YAMLException:
|
|
2408
|
-
types:
|
|
2409
|
-
safeLoad:
|
|
2410
|
-
safeLoadAll:
|
|
2411
|
-
safeDump:
|
|
2400
|
+
}, Lo = ut("safeLoad", "load"), Bo = ut("safeLoadAll", "loadAll"), Ro = ut("safeDump", "dump"), Ko = {
|
|
2401
|
+
Type: ko,
|
|
2402
|
+
Schema: Ao,
|
|
2403
|
+
FAILSAFE_SCHEMA: _o,
|
|
2404
|
+
JSON_SCHEMA: wo,
|
|
2405
|
+
CORE_SCHEMA: So,
|
|
2406
|
+
DEFAULT_SCHEMA: $o,
|
|
2407
|
+
load: To,
|
|
2408
|
+
loadAll: Io,
|
|
2409
|
+
dump: Eo,
|
|
2410
|
+
YAMLException: Fo,
|
|
2411
|
+
types: Oo,
|
|
2412
|
+
safeLoad: Lo,
|
|
2413
|
+
safeLoadAll: Bo,
|
|
2414
|
+
safeDump: Ro
|
|
2412
2415
|
};
|
|
2413
|
-
const
|
|
2416
|
+
const No = { class: "yaml-config config-card-code-block" }, Hn = /* @__PURE__ */ z({
|
|
2414
2417
|
__name: "YamlCodeBlock",
|
|
2415
2418
|
props: {
|
|
2416
2419
|
/** A record to indicate the entity's configuration, used to populate the YAML code block */
|
|
@@ -2422,11 +2425,11 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
2422
2425
|
setup(e) {
|
|
2423
2426
|
const t = e, n = F(() => {
|
|
2424
2427
|
const i = Object.fromEntries(Object.entries(t.entityRecord).filter(([, r]) => r !== null && r !== "" && (Array.isArray(r) ? r.length !== 0 : !0)));
|
|
2425
|
-
return Object.keys(i).length === 0 && i.constructor === Object ? "" :
|
|
2428
|
+
return Object.keys(i).length === 0 && i.constructor === Object ? "" : Ko.dump(i).trim();
|
|
2426
2429
|
});
|
|
2427
2430
|
return (i, r) => {
|
|
2428
|
-
const o =
|
|
2429
|
-
return m(), S("div",
|
|
2431
|
+
const o = D("KCodeBlock");
|
|
2432
|
+
return m(), S("div", No, [
|
|
2430
2433
|
t.entityRecord ? (m(), j(o, {
|
|
2431
2434
|
key: 0,
|
|
2432
2435
|
id: "yaml-codeblock",
|
|
@@ -2437,7 +2440,7 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
2437
2440
|
]);
|
|
2438
2441
|
};
|
|
2439
2442
|
}
|
|
2440
|
-
}),
|
|
2443
|
+
}), Mo = { class: "terraform-config config-card-code-block" }, ie = " ", Vn = /* @__PURE__ */ z({
|
|
2441
2444
|
__name: "TerraformCodeBlock",
|
|
2442
2445
|
props: {
|
|
2443
2446
|
/** A record to indicate the entity's configuration, used to populate the Terraform code block */
|
|
@@ -2448,7 +2451,7 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
2448
2451
|
entityType: {
|
|
2449
2452
|
type: String,
|
|
2450
2453
|
required: !0,
|
|
2451
|
-
validator: (e) =>
|
|
2454
|
+
validator: (e) => De.includes(e)
|
|
2452
2455
|
},
|
|
2453
2456
|
credentialType: {
|
|
2454
2457
|
type: String,
|
|
@@ -2461,7 +2464,7 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
2461
2464
|
}
|
|
2462
2465
|
},
|
|
2463
2466
|
setup(e) {
|
|
2464
|
-
const t = e, n = F(() =>
|
|
2467
|
+
const t = e, n = F(() => ui.includes(t.entityType)), i = (l, c) => {
|
|
2465
2468
|
const d = ie;
|
|
2466
2469
|
let u = "";
|
|
2467
2470
|
return typeof l == "string" ? u += `${d}${c} = "${l}"
|
|
@@ -2532,8 +2535,8 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
2532
2535
|
`, d;
|
|
2533
2536
|
});
|
|
2534
2537
|
return (l, c) => {
|
|
2535
|
-
const d =
|
|
2536
|
-
return m(), S("div",
|
|
2538
|
+
const d = D("KCodeBlock");
|
|
2539
|
+
return m(), S("div", Mo, [
|
|
2537
2540
|
t.entityRecord ? (m(), j(d, {
|
|
2538
2541
|
key: 0,
|
|
2539
2542
|
id: "terraform-codeblock",
|
|
@@ -2544,13 +2547,13 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
2544
2547
|
]);
|
|
2545
2548
|
};
|
|
2546
2549
|
}
|
|
2547
|
-
}),
|
|
2550
|
+
}), jo = {
|
|
2548
2551
|
key: 0,
|
|
2549
2552
|
class: "config-card-display-form"
|
|
2550
|
-
},
|
|
2553
|
+
}, Po = ["data-testid"], Do = {
|
|
2551
2554
|
key: 0,
|
|
2552
2555
|
class: "config-card-prop-section-title"
|
|
2553
|
-
},
|
|
2556
|
+
}, Uo = /* @__PURE__ */ z({
|
|
2554
2557
|
__name: "ConfigCardDisplay",
|
|
2555
2558
|
props: {
|
|
2556
2559
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2562,7 +2565,7 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
2562
2565
|
entityType: {
|
|
2563
2566
|
type: String,
|
|
2564
2567
|
required: !0,
|
|
2565
|
-
validator: (e) =>
|
|
2568
|
+
validator: (e) => De.includes(e)
|
|
2566
2569
|
},
|
|
2567
2570
|
subEntityType: {
|
|
2568
2571
|
// only for event gateway entities
|
|
@@ -2607,7 +2610,7 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
2607
2610
|
}
|
|
2608
2611
|
},
|
|
2609
2612
|
setup(e) {
|
|
2610
|
-
const t = e, n =
|
|
2613
|
+
const t = e, n = Pe(), { i18n: { t: i } } = Y.useI18n(), r = (s) => !!(s.tooltip || n[`${s.key}-label-tooltip`]), o = F(() => {
|
|
2611
2614
|
if (!t.record)
|
|
2612
2615
|
return t.record;
|
|
2613
2616
|
let s = t.record;
|
|
@@ -2616,23 +2619,23 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
2616
2619
|
return delete l.created_at, delete l.updated_at, l;
|
|
2617
2620
|
}), a = F(() => t.fetcherUrl.replace(/(\?|&)__ui_data=true/, ""));
|
|
2618
2621
|
return (s, l) => (m(), S(ue, null, [
|
|
2619
|
-
e.format === "structured" ? (m(), S("div",
|
|
2622
|
+
e.format === "structured" ? (m(), S("div", jo, [
|
|
2620
2623
|
(m(!0), S(ue, null, ce(e.propListTypes, (c) => (m(), S("div", {
|
|
2621
2624
|
key: `config-card-details-${c}-props`,
|
|
2622
2625
|
class: fe(`config-card-details-${c}-props`),
|
|
2623
2626
|
"data-testid": `config-card-details-${c}-props`
|
|
2624
2627
|
}, [
|
|
2625
2628
|
c !== "basic" ? (m(), S("div", Do, L(c === "advanced" ? $(i)("baseConfigCard.sections.advanced") : c === "plugin" ? $(i)("baseConfigCard.sections.plugin") : $(i)("baseConfigCard.sections.policy")), 1)) : N("", !0),
|
|
2626
|
-
(m(!0), S(ue, null, ce(e.propertyCollections[c], (d) =>
|
|
2629
|
+
(m(!0), S(ue, null, ce(e.propertyCollections[c], (d) => P(s.$slots, `config-card-item-${d.key}`, {
|
|
2627
2630
|
key: d.key,
|
|
2628
2631
|
item: d
|
|
2629
2632
|
}, () => [
|
|
2630
2633
|
M(Xt, { item: d }, Se({
|
|
2631
2634
|
label: w(() => [
|
|
2632
|
-
|
|
2635
|
+
P(s.$slots, `${d.key}-label`, { row: d }, void 0, !0)
|
|
2633
2636
|
]),
|
|
2634
2637
|
[d.key]: w(({ rowValue: u }) => [
|
|
2635
|
-
|
|
2638
|
+
P(s.$slots, d.key, {
|
|
2636
2639
|
row: d,
|
|
2637
2640
|
rowValue: u
|
|
2638
2641
|
}, void 0, !0)
|
|
@@ -2642,13 +2645,13 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
2642
2645
|
r(d) ? {
|
|
2643
2646
|
name: "label-tooltip",
|
|
2644
2647
|
fn: w(() => [
|
|
2645
|
-
|
|
2648
|
+
P(s.$slots, `${d.key}-label-tooltip`, { row: d }, void 0, !0)
|
|
2646
2649
|
]),
|
|
2647
2650
|
key: "0"
|
|
2648
2651
|
} : void 0
|
|
2649
2652
|
]), 1032, ["item"])
|
|
2650
2653
|
], !0)), 128))
|
|
2651
|
-
], 10,
|
|
2654
|
+
], 10, Po))), 128))
|
|
2652
2655
|
])) : N("", !0),
|
|
2653
2656
|
e.format === "json" && o.value ? (m(), j(en, {
|
|
2654
2657
|
key: 1,
|
|
@@ -2657,11 +2660,11 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
2657
2660
|
"fetcher-url": a.value,
|
|
2658
2661
|
"request-method": "get"
|
|
2659
2662
|
}, null, 8, ["config", "entity-record", "fetcher-url"])) : N("", !0),
|
|
2660
|
-
e.format === "yaml" && o.value ? (m(), j(
|
|
2663
|
+
e.format === "yaml" && o.value ? (m(), j(Hn, {
|
|
2661
2664
|
key: 2,
|
|
2662
2665
|
"entity-record": o.value
|
|
2663
2666
|
}, null, 8, ["entity-record"])) : N("", !0),
|
|
2664
|
-
e.format === "terraform" && o.value ? (m(), j(
|
|
2667
|
+
e.format === "terraform" && o.value ? (m(), j(Vn, {
|
|
2665
2668
|
key: 3,
|
|
2666
2669
|
"entity-record": o.value,
|
|
2667
2670
|
"entity-type": t.entityType,
|
|
@@ -2669,10 +2672,10 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
2669
2672
|
}, null, 8, ["entity-record", "entity-type", "sub-entity-type"])) : N("", !0)
|
|
2670
2673
|
], 64));
|
|
2671
2674
|
}
|
|
2672
|
-
}),
|
|
2675
|
+
}), qo = /* @__PURE__ */ se(Uo, [["__scopeId", "data-v-a7689049"]]), Ho = {
|
|
2673
2676
|
class: "config-card-title",
|
|
2674
2677
|
"data-testid": "config-card-title"
|
|
2675
|
-
},
|
|
2678
|
+
}, Vo = { class: "config-card-actions" }, Yo = ["href"], Wo = { class: "config-card-details-section" }, Go = /* @__PURE__ */ z({
|
|
2676
2679
|
__name: "EntityBaseConfigCard",
|
|
2677
2680
|
props: {
|
|
2678
2681
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2693,7 +2696,7 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
2693
2696
|
entityType: {
|
|
2694
2697
|
type: String,
|
|
2695
2698
|
required: !0,
|
|
2696
|
-
validator: (e) =>
|
|
2699
|
+
validator: (e) => De.includes(e)
|
|
2697
2700
|
},
|
|
2698
2701
|
/**
|
|
2699
2702
|
* Sub Entity type, required to generate terraform code for event gateway entities
|
|
@@ -2984,14 +2987,14 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
2984
2987
|
h.value = !1;
|
|
2985
2988
|
}
|
|
2986
2989
|
}), (f, v) => {
|
|
2987
|
-
const b =
|
|
2990
|
+
const b = D("KLabel"), H = D("KSelect"), G = D("KButton"), I = D("KSkeleton"), B = D("KEmptyState"), J = D("KCard");
|
|
2988
2991
|
return m(), j(J, {
|
|
2989
2992
|
class: "kong-ui-entity-base-config-card",
|
|
2990
2993
|
"title-tag": e.titleTag
|
|
2991
2994
|
}, Se({
|
|
2992
2995
|
actions: w(() => [
|
|
2993
|
-
R("div",
|
|
2994
|
-
|
|
2996
|
+
R("div", Vo, [
|
|
2997
|
+
P(f.$slots, "actions", {}, void 0, !0),
|
|
2995
2998
|
M(b, {
|
|
2996
2999
|
class: "config-format-select-label",
|
|
2997
3000
|
"data-testid": "config-format-select-label"
|
|
@@ -3020,8 +3023,8 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
3020
3023
|
rel: "noopener",
|
|
3021
3024
|
target: "_blank"
|
|
3022
3025
|
}, [
|
|
3023
|
-
M($(Vt), { size: $(
|
|
3024
|
-
], 8,
|
|
3026
|
+
M($(Vt), { size: $(tr) }, null, 8, ["size"])
|
|
3027
|
+
], 8, Yo)
|
|
3025
3028
|
]),
|
|
3026
3029
|
_: 1
|
|
3027
3030
|
})) : N("", !0)
|
|
@@ -3043,8 +3046,8 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
3043
3046
|
]),
|
|
3044
3047
|
_: 1
|
|
3045
3048
|
})) : N("", !0),
|
|
3046
|
-
R("div",
|
|
3047
|
-
M(
|
|
3049
|
+
R("div", Wo, [
|
|
3050
|
+
M(qo, {
|
|
3048
3051
|
"code-block-record-formatter": e.codeBlockRecordFormatter,
|
|
3049
3052
|
config: e.config,
|
|
3050
3053
|
"entity-type": e.entityType,
|
|
@@ -3058,7 +3061,7 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
3058
3061
|
ce(Object.keys(f.$slots), (U) => ({
|
|
3059
3062
|
name: U,
|
|
3060
3063
|
fn: w((Q) => [
|
|
3061
|
-
|
|
3064
|
+
P(f.$slots, U, qt({ record: k.value }, Q), void 0, !0)
|
|
3062
3065
|
])
|
|
3063
3066
|
}))
|
|
3064
3067
|
]), 1032, ["code-block-record-formatter", "config", "entity-type", "fetcher-url", "format", "prop-list-types", "property-collections", "record", "sub-entity-type"])
|
|
@@ -3069,8 +3072,8 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
3069
3072
|
e.hideTitle ? void 0 : {
|
|
3070
3073
|
name: "title",
|
|
3071
3074
|
fn: w(() => [
|
|
3072
|
-
R("span",
|
|
3073
|
-
|
|
3075
|
+
R("span", Ho, [
|
|
3076
|
+
P(f.$slots, "title", {}, () => [
|
|
3074
3077
|
q(L($(r)("baseConfigCard.title")), 1)
|
|
3075
3078
|
], !0)
|
|
3076
3079
|
])
|
|
@@ -3080,7 +3083,7 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
3080
3083
|
]), 1032, ["title-tag"]);
|
|
3081
3084
|
};
|
|
3082
3085
|
}
|
|
3083
|
-
}),
|
|
3086
|
+
}), ms = /* @__PURE__ */ se(Go, [["__scopeId", "data-v-f2b42324"]]), Jo = ["novalidate"], zo = /* @__PURE__ */ z({
|
|
3084
3087
|
__name: "EntityBaseForm",
|
|
3085
3088
|
props: {
|
|
3086
3089
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3101,7 +3104,7 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
3101
3104
|
entityType: {
|
|
3102
3105
|
type: String,
|
|
3103
3106
|
required: !0,
|
|
3104
|
-
validator: (e) =>
|
|
3107
|
+
validator: (e) => De.includes(e)
|
|
3105
3108
|
},
|
|
3106
3109
|
/**
|
|
3107
3110
|
* Sub entity type, required for event gateway entities to generate terraform code
|
|
@@ -3204,7 +3207,7 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
3204
3207
|
emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel", "codeBlockTabChange"],
|
|
3205
3208
|
setup(e, { expose: t, emit: n }) {
|
|
3206
3209
|
var X;
|
|
3207
|
-
const i = n, r = e, o =
|
|
3210
|
+
const i = n, r = e, o = li(), { i18n: { t: a } } = Y.useI18n(), { getMessageFromError: s } = Y.useErrors(), { axiosInstance: l } = Y.useAxios((X = r.config) == null ? void 0 : X.axiosRequestConfig), c = K(!1), d = F(() => !!r.editId), u = K(!1), p = K(""), g = F(() => r.canSubmit === !1 || r.isReadonly), h = K(!1), x = F(() => {
|
|
3208
3211
|
var A, O;
|
|
3209
3212
|
let _ = `${r.config.apiBaseUrl}${r.fetchUrl}`;
|
|
3210
3213
|
return r.config.app === "konnect" ? _ = _.replace(/{controlPlaneId}/gi, ((A = r.config) == null ? void 0 : A.controlPlaneId) || "") : r.config.app === "kongManager" && (_ = _.replace(/\/{workspace}/gi, (O = r.config) != null && O.workspace ? `/${r.config.workspace}` : "")), r.editId ? (_ = _.replace(/{id}/gi, r.editId), _) : (_ = _.replace(/\/{id}/gi, ""), _);
|
|
@@ -3248,7 +3251,7 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
3248
3251
|
formCancel: C,
|
|
3249
3252
|
formSubmit: T
|
|
3250
3253
|
}), (_, A) => {
|
|
3251
|
-
const O =
|
|
3254
|
+
const O = D("KSkeleton"), f = D("KEmptyState"), v = D("KAlert"), b = D("KButton"), H = D("KTabs"), G = D("KSlideout");
|
|
3252
3255
|
return m(), j(je(e.wrapperComponent), { class: "kong-ui-entity-base-form" }, {
|
|
3253
3256
|
default: w(() => [
|
|
3254
3257
|
c.value ? (m(), j(O, {
|
|
@@ -3272,7 +3275,7 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
3272
3275
|
onReset: Le(C, ["prevent"]),
|
|
3273
3276
|
onSubmit: Le(T, ["prevent"])
|
|
3274
3277
|
}, [
|
|
3275
|
-
|
|
3278
|
+
P(_.$slots, "default", {}, void 0, !0),
|
|
3276
3279
|
e.errorMessage ? (m(), j(v, {
|
|
3277
3280
|
key: 0,
|
|
3278
3281
|
appearance: "danger",
|
|
@@ -3288,7 +3291,7 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
3288
3291
|
class: fe(["form-actions", { "form-actions-reverted": e.alignActionButtonToLeft }]),
|
|
3289
3292
|
"data-testid": "form-actions"
|
|
3290
3293
|
}, [
|
|
3291
|
-
|
|
3294
|
+
P(_.$slots, "form-actions", {}, () => [
|
|
3292
3295
|
M(b, {
|
|
3293
3296
|
appearance: "tertiary",
|
|
3294
3297
|
"data-testid": `${e.entityType}-${d.value ? "edit" : "create"}-form-view-configuration`,
|
|
@@ -3326,7 +3329,7 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
3326
3329
|
], !0)
|
|
3327
3330
|
], 2)
|
|
3328
3331
|
], 8, ["disabled", "to"]))
|
|
3329
|
-
], 40,
|
|
3332
|
+
], 40, Jo)),
|
|
3330
3333
|
M(G, {
|
|
3331
3334
|
"close-on-blur": !1,
|
|
3332
3335
|
"data-testid": "form-view-configuration-slideout",
|
|
@@ -3352,12 +3355,12 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
3352
3355
|
}, null, 8, ["config", "entity-record", "fetcher-url", "request-method"])
|
|
3353
3356
|
]),
|
|
3354
3357
|
yaml: w(() => [
|
|
3355
|
-
M(
|
|
3358
|
+
M(Hn, {
|
|
3356
3359
|
"entity-record": r.formFields
|
|
3357
3360
|
}, null, 8, ["entity-record"])
|
|
3358
3361
|
]),
|
|
3359
3362
|
terraform: w(() => [
|
|
3360
|
-
M(
|
|
3363
|
+
M(Vn, {
|
|
3361
3364
|
"entity-record": r.formFields,
|
|
3362
3365
|
"entity-type": e.entityType,
|
|
3363
3366
|
"sub-entity-type": e.subEntityType
|
|
@@ -3373,7 +3376,7 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
3373
3376
|
});
|
|
3374
3377
|
};
|
|
3375
3378
|
}
|
|
3376
|
-
}),
|
|
3379
|
+
}), hs = /* @__PURE__ */ se(zo, [["__scopeId", "data-v-10f3d6b0"]]), Qo = ["data-truncate"], Zo = /* @__PURE__ */ z({
|
|
3377
3380
|
__name: "EntityBaseTableCell",
|
|
3378
3381
|
props: {
|
|
3379
3382
|
keyName: {
|
|
@@ -3429,10 +3432,10 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
3429
3432
|
), x = F(() => o.value ? d.value > u.value : !1);
|
|
3430
3433
|
return tt(() => {
|
|
3431
3434
|
l();
|
|
3432
|
-
}),
|
|
3435
|
+
}), zn(() => {
|
|
3433
3436
|
h();
|
|
3434
3437
|
}), (y, k) => {
|
|
3435
|
-
const C =
|
|
3438
|
+
const C = D("KTooltip");
|
|
3436
3439
|
return m(), S("span", {
|
|
3437
3440
|
ref_key: "contentRef",
|
|
3438
3441
|
ref: c,
|
|
@@ -3448,21 +3451,21 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
3448
3451
|
text: x.value ? p.value : ""
|
|
3449
3452
|
}, {
|
|
3450
3453
|
default: w(() => [
|
|
3451
|
-
|
|
3454
|
+
P(y.$slots, "default", {}, void 0, !0)
|
|
3452
3455
|
]),
|
|
3453
3456
|
_: 3
|
|
3454
3457
|
}, 8, ["text"])
|
|
3455
|
-
], 8,
|
|
3458
|
+
], 8, Qo)) : P(y.$slots, "default", { key: 1 }, void 0, !0)
|
|
3456
3459
|
], 512);
|
|
3457
3460
|
};
|
|
3458
3461
|
}
|
|
3459
|
-
}),
|
|
3462
|
+
}), Xo = /* @__PURE__ */ se(Zo, [["__scopeId", "data-v-a3a65cac"]]), el = { class: "toolbar-container" }, tl = {
|
|
3460
3463
|
key: 0,
|
|
3461
3464
|
class: "toolbar-button-container"
|
|
3462
|
-
},
|
|
3465
|
+
}, nl = {
|
|
3463
3466
|
key: 0,
|
|
3464
3467
|
class: "hidden"
|
|
3465
|
-
},
|
|
3468
|
+
}, il = /* @__PURE__ */ z({
|
|
3466
3469
|
__name: "EntityBaseTable",
|
|
3467
3470
|
props: {
|
|
3468
3471
|
// table header configuration
|
|
@@ -3659,7 +3662,7 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
3659
3662
|
i("click:row", v);
|
|
3660
3663
|
}), y = (f) => {
|
|
3661
3664
|
i("sort", f);
|
|
3662
|
-
}, { hideTableToolbar: k, handleStateChange: C } = Y.useTableState(() => n.query), { setTablePreferences: T, getTablePreferences: W } =
|
|
3665
|
+
}, { hideTableToolbar: k, handleStateChange: C } = Y.useTableState(() => n.query), { setTablePreferences: T, getTablePreferences: W } = mi(), X = K(W(a.value, n.defaultTablePreferences)), _ = F(() => {
|
|
3663
3666
|
const f = W(a.value);
|
|
3664
3667
|
return {
|
|
3665
3668
|
...n.initialFetcherParams,
|
|
@@ -3675,7 +3678,7 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
3675
3678
|
...n.paginationAttributes
|
|
3676
3679
|
}));
|
|
3677
3680
|
return (f, v) => {
|
|
3678
|
-
const b =
|
|
3681
|
+
const b = D("KTableData"), H = D("KCard");
|
|
3679
3682
|
return m(), j(H, {
|
|
3680
3683
|
class: "kong-ui-entity-base-table",
|
|
3681
3684
|
title: e.title,
|
|
@@ -3719,35 +3722,35 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
3719
3722
|
"onUpdate:tablePreferences": A
|
|
3720
3723
|
}, Se({
|
|
3721
3724
|
toolbar: w(() => [
|
|
3722
|
-
R("div",
|
|
3723
|
-
|
|
3724
|
-
f.$slots["toolbar-button"] ? (m(), S("div",
|
|
3725
|
-
|
|
3725
|
+
R("div", el, [
|
|
3726
|
+
P(f.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3727
|
+
f.$slots["toolbar-button"] ? (m(), S("div", tl, [
|
|
3728
|
+
P(f.$slots, "toolbar-button", {}, void 0, !0)
|
|
3726
3729
|
])) : N("", !0)
|
|
3727
3730
|
])
|
|
3728
3731
|
]),
|
|
3729
3732
|
"action-items": w(({ row: G }) => [
|
|
3730
|
-
|
|
3733
|
+
P(f.$slots, "actions", { row: G }, void 0, !0)
|
|
3731
3734
|
]),
|
|
3732
3735
|
_: 2
|
|
3733
3736
|
}, [
|
|
3734
3737
|
f.$slots["empty-state"] ? {
|
|
3735
3738
|
name: "empty-state",
|
|
3736
3739
|
fn: w(() => [
|
|
3737
|
-
|
|
3740
|
+
P(f.$slots, "empty-state", {}, void 0, !0)
|
|
3738
3741
|
]),
|
|
3739
3742
|
key: "0"
|
|
3740
3743
|
} : void 0,
|
|
3741
3744
|
ce(e.tableHeaders, (G, I) => ({
|
|
3742
3745
|
name: I,
|
|
3743
3746
|
fn: w(({ row: B, rowValue: J }) => [
|
|
3744
|
-
M(
|
|
3747
|
+
M(Xo, {
|
|
3745
3748
|
"key-name": String(I),
|
|
3746
3749
|
"row-el": d(B),
|
|
3747
3750
|
tooltip: G.tooltip
|
|
3748
3751
|
}, {
|
|
3749
3752
|
default: w(() => [
|
|
3750
|
-
|
|
3753
|
+
P(f.$slots, I, {
|
|
3751
3754
|
row: B,
|
|
3752
3755
|
rowKey: e.rowKey,
|
|
3753
3756
|
rowValue: J
|
|
@@ -3767,21 +3770,21 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
3767
3770
|
key: "1"
|
|
3768
3771
|
}
|
|
3769
3772
|
]), 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"]),
|
|
3770
|
-
f.$slots["outside-actions"] && $(k) ? (m(), S("div",
|
|
3771
|
-
|
|
3773
|
+
f.$slots["outside-actions"] && $(k) ? (m(), S("div", nl, [
|
|
3774
|
+
P(f.$slots, "outside-actions", {}, void 0, !0)
|
|
3772
3775
|
])) : N("", !0)
|
|
3773
3776
|
]),
|
|
3774
3777
|
_: 3
|
|
3775
3778
|
}, 8, ["title", "title-tag"]);
|
|
3776
3779
|
};
|
|
3777
3780
|
}
|
|
3778
|
-
}),
|
|
3781
|
+
}), gs = /* @__PURE__ */ se(il, [["__scopeId", "data-v-44153100"]]), rl = {
|
|
3779
3782
|
key: 0,
|
|
3780
3783
|
class: "kong-ui-entity-delete-error"
|
|
3781
|
-
},
|
|
3784
|
+
}, al = {
|
|
3782
3785
|
key: 1,
|
|
3783
3786
|
class: "description"
|
|
3784
|
-
},
|
|
3787
|
+
}, ol = /* @__PURE__ */ z({
|
|
3785
3788
|
__name: "EntityDeleteModal",
|
|
3786
3789
|
props: {
|
|
3787
3790
|
visible: {
|
|
@@ -3826,7 +3829,7 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
3826
3829
|
r("proceed");
|
|
3827
3830
|
};
|
|
3828
3831
|
return (l, c) => {
|
|
3829
|
-
const d =
|
|
3832
|
+
const d = D("KAlert"), u = D("KPrompt");
|
|
3830
3833
|
return m(), j(u, {
|
|
3831
3834
|
"action-button-appearance": "danger",
|
|
3832
3835
|
"action-button-disabled": e.actionPending,
|
|
@@ -3839,7 +3842,7 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
3839
3842
|
onProceed: s
|
|
3840
3843
|
}, {
|
|
3841
3844
|
default: w(() => [
|
|
3842
|
-
e.error ? (m(), S("div",
|
|
3845
|
+
e.error ? (m(), S("div", rl, [
|
|
3843
3846
|
M(d, { appearance: "danger" }, {
|
|
3844
3847
|
default: w(() => [
|
|
3845
3848
|
q(L(e.error), 1)
|
|
@@ -3865,8 +3868,8 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
3865
3868
|
key: "0"
|
|
3866
3869
|
} : void 0
|
|
3867
3870
|
]), 1032, ["keypath"]),
|
|
3868
|
-
i.description || l.$slots.description ? (m(), S("div",
|
|
3869
|
-
|
|
3871
|
+
i.description || l.$slots.description ? (m(), S("div", al, [
|
|
3872
|
+
P(l.$slots, "description", {}, () => [
|
|
3870
3873
|
R("p", null, L(i.description), 1)
|
|
3871
3874
|
], !0)
|
|
3872
3875
|
])) : N("", !0)
|
|
@@ -3875,13 +3878,13 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
3875
3878
|
}, 8, ["action-button-disabled", "confirmation-text", "title", "visible"]);
|
|
3876
3879
|
};
|
|
3877
3880
|
}
|
|
3878
|
-
}),
|
|
3881
|
+
}), ys = /* @__PURE__ */ se(ol, [["__scopeId", "data-v-4361d622"]]), ll = {
|
|
3879
3882
|
fill: "none",
|
|
3880
3883
|
height: "20",
|
|
3881
3884
|
viewBox: "0 0 20 20",
|
|
3882
3885
|
width: "20",
|
|
3883
3886
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3884
|
-
},
|
|
3887
|
+
}, sl = {
|
|
3885
3888
|
id: "mask0_180_20349",
|
|
3886
3889
|
height: "20",
|
|
3887
3890
|
maskUnits: "userSpaceOnUse",
|
|
@@ -3889,35 +3892,35 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
3889
3892
|
width: "20",
|
|
3890
3893
|
x: "0",
|
|
3891
3894
|
y: "0"
|
|
3892
|
-
},
|
|
3895
|
+
}, cl = ["fill"], ul = { mask: "url(#mask0_180_20349)" }, dl = ["fill"], Mt = /* @__PURE__ */ z({
|
|
3893
3896
|
__name: "IconFilter",
|
|
3894
3897
|
props: {
|
|
3895
3898
|
color: {
|
|
3896
3899
|
type: String,
|
|
3897
|
-
default: `var(--kong-ui-entity-filter-color, ${
|
|
3900
|
+
default: `var(--kong-ui-entity-filter-color, ${Ji})`
|
|
3898
3901
|
}
|
|
3899
3902
|
},
|
|
3900
3903
|
setup(e) {
|
|
3901
|
-
return (t, n) => (m(), S("svg",
|
|
3902
|
-
R("mask",
|
|
3904
|
+
return (t, n) => (m(), S("svg", ll, [
|
|
3905
|
+
R("mask", sl, [
|
|
3903
3906
|
R("rect", {
|
|
3904
3907
|
fill: e.color,
|
|
3905
3908
|
height: "20",
|
|
3906
3909
|
width: "20"
|
|
3907
|
-
}, null, 8,
|
|
3910
|
+
}, null, 8, cl)
|
|
3908
3911
|
]),
|
|
3909
|
-
R("g",
|
|
3912
|
+
R("g", ul, [
|
|
3910
3913
|
R("path", {
|
|
3911
3914
|
d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
|
|
3912
3915
|
fill: e.color
|
|
3913
|
-
}, null, 8,
|
|
3916
|
+
}, null, 8, dl)
|
|
3914
3917
|
])
|
|
3915
3918
|
]));
|
|
3916
3919
|
}
|
|
3917
|
-
}),
|
|
3920
|
+
}), fl = {
|
|
3918
3921
|
key: 1,
|
|
3919
3922
|
class: "kong-ui-entity-filter"
|
|
3920
|
-
},
|
|
3923
|
+
}, pl = { class: "kong-ui-entity-filter-menu" }, ml = ["data-testid"], hl = ["onClick", "onKeydown"], gl = { class: "menu-item-indicator" }, yl = { class: "menu-item-body" }, vl = ["for"], bl = { class: "menu-item-buttons" }, xl = { class: "filter-clear-button-container" }, Cl = /* @__PURE__ */ z({
|
|
3921
3924
|
__name: "EntityFilter",
|
|
3922
3925
|
props: {
|
|
3923
3926
|
// filter config, either exact match or fuzzy match
|
|
@@ -3991,7 +3994,7 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
3991
3994
|
return (O == null ? void 0 : O.filterFunction) === void 0 ? !0 : O.filterFunction(A);
|
|
3992
3995
|
};
|
|
3993
3996
|
return (_, A) => {
|
|
3994
|
-
const O =
|
|
3997
|
+
const O = D("KInput"), f = D("KButton"), v = D("KSelect");
|
|
3995
3998
|
return e.config.isExactMatch ? (m(), j(O, {
|
|
3996
3999
|
key: 0,
|
|
3997
4000
|
autocomplete: "off",
|
|
@@ -4005,7 +4008,7 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
4005
4008
|
M(Mt)
|
|
4006
4009
|
]),
|
|
4007
4010
|
after: w(() => [
|
|
4008
|
-
xe(M($(
|
|
4011
|
+
xe(M($(ri), {
|
|
4009
4012
|
class: "kong-ui-entity-filter-clear",
|
|
4010
4013
|
role: "button",
|
|
4011
4014
|
tabindex: "0",
|
|
@@ -4015,7 +4018,7 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
4015
4018
|
])
|
|
4016
4019
|
]),
|
|
4017
4020
|
_: 1
|
|
4018
|
-
}, 8, ["model-value", "placeholder"])) : (m(), S("div",
|
|
4021
|
+
}, 8, ["model-value", "placeholder"])) : (m(), S("div", fl, [
|
|
4019
4022
|
M(f, {
|
|
4020
4023
|
appearance: "tertiary",
|
|
4021
4024
|
"data-testid": "filter-button",
|
|
@@ -4033,7 +4036,7 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
4033
4036
|
}, null, 512), [
|
|
4034
4037
|
[Ce, o.value]
|
|
4035
4038
|
]),
|
|
4036
|
-
xe(R("div",
|
|
4039
|
+
xe(R("div", pl, [
|
|
4037
4040
|
(m(!0), S(ue, null, ce(c.value, (b) => {
|
|
4038
4041
|
var H, G;
|
|
4039
4042
|
return m(), S("div", {
|
|
@@ -4046,22 +4049,22 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
4046
4049
|
role: "button",
|
|
4047
4050
|
tabindex: "0",
|
|
4048
4051
|
onClick: (I) => u(b.value),
|
|
4049
|
-
onKeydown:
|
|
4052
|
+
onKeydown: Qn((I) => u(b.value), ["enter"])
|
|
4050
4053
|
}, [
|
|
4051
4054
|
q(L(b.label) + " ", 1),
|
|
4052
|
-
xe(R("span",
|
|
4055
|
+
xe(R("span", gl, null, 512), [
|
|
4053
4056
|
[Ce, l.value.includes(b.value)]
|
|
4054
4057
|
]),
|
|
4055
|
-
M($(
|
|
4058
|
+
M($(ai), {
|
|
4056
4059
|
class: fe(["menu-item-expand-icon", { expanded: s.value.has(b.value) }]),
|
|
4057
|
-
color: $(
|
|
4060
|
+
color: $(Qi)
|
|
4058
4061
|
}, null, 8, ["class", "color"])
|
|
4059
|
-
], 42,
|
|
4060
|
-
xe(R("div",
|
|
4062
|
+
], 42, hl),
|
|
4063
|
+
xe(R("div", yl, [
|
|
4061
4064
|
R("label", {
|
|
4062
4065
|
class: "menu-item-label",
|
|
4063
4066
|
for: h(b.value)
|
|
4064
|
-
}, L($(n)("filter.fieldLabel")), 9,
|
|
4067
|
+
}, L($(n)("filter.fieldLabel")), 9, vl),
|
|
4065
4068
|
((G = (H = e.config.schema) == null ? void 0 : H[b.value]) == null ? void 0 : G.type) === "select" ? (m(), j(v, {
|
|
4066
4069
|
key: 0,
|
|
4067
4070
|
id: h(b.value),
|
|
@@ -4083,7 +4086,7 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
4083
4086
|
], 512), [
|
|
4084
4087
|
[Ce, s.value.has(b.value)]
|
|
4085
4088
|
]),
|
|
4086
|
-
xe(R("div",
|
|
4089
|
+
xe(R("div", bl, [
|
|
4087
4090
|
M(f, {
|
|
4088
4091
|
appearance: "tertiary",
|
|
4089
4092
|
"data-testid": "apply-filter",
|
|
@@ -4109,9 +4112,9 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
4109
4112
|
], 512), [
|
|
4110
4113
|
[Ce, s.value.has(b.value)]
|
|
4111
4114
|
])
|
|
4112
|
-
], 8,
|
|
4115
|
+
], 8, ml);
|
|
4113
4116
|
}), 128)),
|
|
4114
|
-
R("div",
|
|
4117
|
+
R("div", xl, [
|
|
4115
4118
|
M(f, {
|
|
4116
4119
|
appearance: "tertiary",
|
|
4117
4120
|
size: "small",
|
|
@@ -4129,7 +4132,7 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
4129
4132
|
]));
|
|
4130
4133
|
};
|
|
4131
4134
|
}
|
|
4132
|
-
}),
|
|
4135
|
+
}), vs = /* @__PURE__ */ se(Cl, [["__scopeId", "data-v-084f7978"]]), bs = /* @__PURE__ */ z({
|
|
4133
4136
|
__name: "EntityToggleModal",
|
|
4134
4137
|
props: {
|
|
4135
4138
|
visible: {
|
|
@@ -4178,7 +4181,7 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
4178
4181
|
}
|
|
4179
4182
|
};
|
|
4180
4183
|
return (u, p) => {
|
|
4181
|
-
const g =
|
|
4184
|
+
const g = D("KPrompt");
|
|
4182
4185
|
return m(), j(Ht, { to: "body" }, [
|
|
4183
4186
|
M(g, {
|
|
4184
4187
|
"action-button-disabled": a.value,
|
|
@@ -4208,7 +4211,7 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
4208
4211
|
]);
|
|
4209
4212
|
};
|
|
4210
4213
|
}
|
|
4211
|
-
}),
|
|
4214
|
+
}), xs = /* @__PURE__ */ z({
|
|
4212
4215
|
__name: "PermissionsWrapper",
|
|
4213
4216
|
props: {
|
|
4214
4217
|
/**
|
|
@@ -4233,7 +4236,7 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
4233
4236
|
const t = e, n = K(void 0), i = F(() => n.value === !0 || n.value !== void 0 && t.forceShow === !0);
|
|
4234
4237
|
return be(() => t.authFunction, async () => {
|
|
4235
4238
|
n.value = await t.authFunction();
|
|
4236
|
-
}, { immediate: !0 }), (r, o) => i.value ?
|
|
4239
|
+
}, { immediate: !0 }), (r, o) => i.value ? P(r.$slots, "default", {
|
|
4237
4240
|
key: 0,
|
|
4238
4241
|
isAllowed: n.value
|
|
4239
4242
|
}) : N("", !0);
|
|
@@ -4241,37 +4244,37 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
4241
4244
|
}), te = [];
|
|
4242
4245
|
for (let e = 0; e < 256; ++e)
|
|
4243
4246
|
te.push((e + 256).toString(16).slice(1));
|
|
4244
|
-
function
|
|
4247
|
+
function kl(e, t = 0) {
|
|
4245
4248
|
return (te[e[t + 0]] + te[e[t + 1]] + te[e[t + 2]] + te[e[t + 3]] + "-" + te[e[t + 4]] + te[e[t + 5]] + "-" + te[e[t + 6]] + te[e[t + 7]] + "-" + te[e[t + 8]] + te[e[t + 9]] + "-" + te[e[t + 10]] + te[e[t + 11]] + te[e[t + 12]] + te[e[t + 13]] + te[e[t + 14]] + te[e[t + 15]]).toLowerCase();
|
|
4246
4249
|
}
|
|
4247
4250
|
let Ge;
|
|
4248
|
-
const
|
|
4249
|
-
function
|
|
4251
|
+
const Al = new Uint8Array(16);
|
|
4252
|
+
function _l() {
|
|
4250
4253
|
if (!Ge) {
|
|
4251
4254
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
4252
4255
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
4253
4256
|
Ge = crypto.getRandomValues.bind(crypto);
|
|
4254
4257
|
}
|
|
4255
|
-
return Ge(
|
|
4258
|
+
return Ge(Al);
|
|
4256
4259
|
}
|
|
4257
|
-
const
|
|
4258
|
-
function
|
|
4260
|
+
const wl = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), jt = { randomUUID: wl };
|
|
4261
|
+
function Sl(e, t, n) {
|
|
4259
4262
|
var r;
|
|
4260
4263
|
if (jt.randomUUID && !e)
|
|
4261
4264
|
return jt.randomUUID();
|
|
4262
4265
|
e = e || {};
|
|
4263
|
-
const i = e.random ?? ((r = e.rng) == null ? void 0 : r.call(e)) ??
|
|
4266
|
+
const i = e.random ?? ((r = e.rng) == null ? void 0 : r.call(e)) ?? _l();
|
|
4264
4267
|
if (i.length < 16)
|
|
4265
4268
|
throw new Error("Random bytes length must be >= 16");
|
|
4266
|
-
return i[6] = i[6] & 15 | 64, i[8] = i[8] & 63 | 128,
|
|
4269
|
+
return i[6] = i[6] & 15 | 64, i[8] = i[8] & 63 | 128, kl(i);
|
|
4267
4270
|
}
|
|
4268
|
-
const
|
|
4271
|
+
const $l = ["aria-labelledby"], Tl = { class: "form-section-wrapper" }, Il = {
|
|
4269
4272
|
key: 1,
|
|
4270
4273
|
class: "form-section-description"
|
|
4271
|
-
},
|
|
4274
|
+
}, El = {
|
|
4272
4275
|
key: 2,
|
|
4273
4276
|
class: "form-section-footer"
|
|
4274
|
-
},
|
|
4277
|
+
}, Fl = { class: "form-section-content" }, Ol = /* @__PURE__ */ z({
|
|
4275
4278
|
__name: "EntityFormSection",
|
|
4276
4279
|
props: {
|
|
4277
4280
|
title: {
|
|
@@ -4300,13 +4303,13 @@ const Sl = ["aria-labelledby"], $l = { class: "form-section-wrapper" }, Tl = {
|
|
|
4300
4303
|
}
|
|
4301
4304
|
},
|
|
4302
4305
|
setup(e) {
|
|
4303
|
-
const t =
|
|
4306
|
+
const t = Pe(), n = Sl();
|
|
4304
4307
|
return (i, r) => (m(), S("div", {
|
|
4305
4308
|
"aria-labelledby": e.title ? $(n) : void 0,
|
|
4306
4309
|
class: fe(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }]),
|
|
4307
4310
|
role: "group"
|
|
4308
4311
|
}, [
|
|
4309
|
-
R("div",
|
|
4312
|
+
R("div", Tl, [
|
|
4310
4313
|
e.hideInfoHeader ? N("", !0) : (m(), S("div", {
|
|
4311
4314
|
key: 0,
|
|
4312
4315
|
class: fe(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
@@ -4321,31 +4324,31 @@ const Sl = ["aria-labelledby"], $l = { class: "form-section-wrapper" }, Tl = {
|
|
|
4321
4324
|
]),
|
|
4322
4325
|
_: 1
|
|
4323
4326
|
}, 8, ["id"])) : N("", !0),
|
|
4324
|
-
e.description || $(t).description ? (m(), S("div",
|
|
4325
|
-
|
|
4327
|
+
e.description || $(t).description ? (m(), S("div", Il, [
|
|
4328
|
+
P(i.$slots, "description", {}, () => [
|
|
4326
4329
|
R("p", null, L(e.description), 1)
|
|
4327
4330
|
], !0)
|
|
4328
4331
|
])) : N("", !0),
|
|
4329
|
-
$(t).footer ? (m(), S("div",
|
|
4330
|
-
|
|
4332
|
+
$(t).footer ? (m(), S("div", El, [
|
|
4333
|
+
P(i.$slots, "footer", {}, void 0, !0)
|
|
4331
4334
|
])) : N("", !0)
|
|
4332
4335
|
], 2)),
|
|
4333
|
-
R("div",
|
|
4334
|
-
|
|
4336
|
+
R("div", Fl, [
|
|
4337
|
+
P(i.$slots, "default", {}, void 0, !0)
|
|
4335
4338
|
])
|
|
4336
4339
|
])
|
|
4337
|
-
], 10,
|
|
4340
|
+
], 10, $l));
|
|
4338
4341
|
}
|
|
4339
|
-
}),
|
|
4342
|
+
}), Cs = /* @__PURE__ */ se(Ol, [["__scopeId", "data-v-b1f74200"]]), Ll = { class: "ff-form-section" }, Bl = { class: "header" }, Rl = {
|
|
4340
4343
|
key: 0,
|
|
4341
4344
|
class: "step"
|
|
4342
|
-
},
|
|
4345
|
+
}, Kl = { class: "header-content" }, Nl = { class: "header-title" }, Ml = {
|
|
4343
4346
|
key: 0,
|
|
4344
4347
|
class: "header-description"
|
|
4345
|
-
},
|
|
4348
|
+
}, jl = {
|
|
4346
4349
|
key: 1,
|
|
4347
4350
|
class: "header-extra"
|
|
4348
|
-
},
|
|
4351
|
+
}, Pl = { class: "content" }, Dl = /* @__PURE__ */ z({
|
|
4349
4352
|
__name: "EntityFormBlock",
|
|
4350
4353
|
props: {
|
|
4351
4354
|
step: {},
|
|
@@ -4353,38 +4356,38 @@ const Sl = ["aria-labelledby"], $l = { class: "form-section-wrapper" }, Tl = {
|
|
|
4353
4356
|
description: { default: "" }
|
|
4354
4357
|
},
|
|
4355
4358
|
setup(e) {
|
|
4356
|
-
const t =
|
|
4357
|
-
return (n, i) => (m(), S("div",
|
|
4358
|
-
R("header",
|
|
4359
|
-
e.step != null ? (m(), S("div",
|
|
4360
|
-
R("div",
|
|
4361
|
-
R("h2",
|
|
4362
|
-
|
|
4359
|
+
const t = Pe();
|
|
4360
|
+
return (n, i) => (m(), S("div", Ll, [
|
|
4361
|
+
R("header", Bl, [
|
|
4362
|
+
e.step != null ? (m(), S("div", Rl, L(e.step), 1)) : N("", !0),
|
|
4363
|
+
R("div", Kl, [
|
|
4364
|
+
R("h2", Nl, [
|
|
4365
|
+
P(n.$slots, "title", {}, () => [
|
|
4363
4366
|
q(L(e.title), 1)
|
|
4364
4367
|
], !0)
|
|
4365
4368
|
]),
|
|
4366
|
-
e.description || t.description ? (m(), S("div",
|
|
4367
|
-
|
|
4369
|
+
e.description || t.description ? (m(), S("div", Ml, [
|
|
4370
|
+
P(n.$slots, "description", {}, () => [
|
|
4368
4371
|
q(L(e.description), 1)
|
|
4369
4372
|
], !0)
|
|
4370
4373
|
])) : N("", !0)
|
|
4371
4374
|
]),
|
|
4372
|
-
t.extra ? (m(), S("div",
|
|
4373
|
-
|
|
4375
|
+
t.extra ? (m(), S("div", jl, [
|
|
4376
|
+
P(n.$slots, "extra", {}, void 0, !0)
|
|
4374
4377
|
])) : N("", !0)
|
|
4375
4378
|
]),
|
|
4376
|
-
R("div",
|
|
4377
|
-
|
|
4379
|
+
R("div", Pl, [
|
|
4380
|
+
P(n.$slots, "default", {}, void 0, !0)
|
|
4378
4381
|
])
|
|
4379
4382
|
]));
|
|
4380
4383
|
}
|
|
4381
|
-
}),
|
|
4384
|
+
}), ks = /* @__PURE__ */ se(Dl, [["__scopeId", "data-v-cb6d2e95"]]), Ul = {
|
|
4382
4385
|
class: "kong-ui-public-entity-link",
|
|
4383
4386
|
"data-testid": "entity-link-parent"
|
|
4384
|
-
},
|
|
4387
|
+
}, ql = {
|
|
4385
4388
|
key: 0,
|
|
4386
4389
|
class: "deleted-entity"
|
|
4387
|
-
},
|
|
4390
|
+
}, Hl = { key: 1 }, Vl = ["onClick"], Yl = /* @__PURE__ */ z({
|
|
4388
4391
|
__name: "EntityLink",
|
|
4389
4392
|
props: {
|
|
4390
4393
|
entityLinkData: {
|
|
@@ -4420,9 +4423,9 @@ const Sl = ["aria-labelledby"], $l = { class: "form-section-wrapper" }, Tl = {
|
|
|
4420
4423
|
}, 1800));
|
|
4421
4424
|
};
|
|
4422
4425
|
return (u, p) => {
|
|
4423
|
-
const g =
|
|
4424
|
-
return m(), S("div",
|
|
4425
|
-
s.value ? (m(), S("div",
|
|
4426
|
+
const g = D("KTooltip"), h = D("KExternalLink"), x = D("KClipboardProvider");
|
|
4427
|
+
return m(), S("div", Ul, [
|
|
4428
|
+
s.value ? (m(), S("div", ql, L(c.value), 1)) : l.value ? l.value ? (m(), j(h, {
|
|
4426
4429
|
key: 2,
|
|
4427
4430
|
class: "entity-link",
|
|
4428
4431
|
"hide-icon": !e.newWindow,
|
|
@@ -4444,7 +4447,7 @@ const Sl = ["aria-labelledby"], $l = { class: "form-section-wrapper" }, Tl = {
|
|
|
4444
4447
|
}, 8, ["text"])
|
|
4445
4448
|
]),
|
|
4446
4449
|
_: 1
|
|
4447
|
-
}, 8, ["hide-icon", "href", "target"])) : N("", !0) : (m(), S("div",
|
|
4450
|
+
}, 8, ["hide-icon", "href", "target"])) : N("", !0) : (m(), S("div", Hl, L(" – "))),
|
|
4448
4451
|
l.value && e.allowCopy ? (m(), j(g, {
|
|
4449
4452
|
key: a.value,
|
|
4450
4453
|
class: "copy-uuid-tooltip",
|
|
@@ -4459,13 +4462,13 @@ const Sl = ["aria-labelledby"], $l = { class: "form-section-wrapper" }, Tl = {
|
|
|
4459
4462
|
class: "entity-link-copy-id",
|
|
4460
4463
|
onClick: Le((k) => d(y), ["stop"])
|
|
4461
4464
|
}, [
|
|
4462
|
-
M($(
|
|
4465
|
+
M($(oi), {
|
|
4463
4466
|
class: "copy-icon",
|
|
4464
|
-
color: $(
|
|
4467
|
+
color: $(Zi),
|
|
4465
4468
|
"data-testid": "copy-id",
|
|
4466
|
-
size: $(
|
|
4469
|
+
size: $(er)
|
|
4467
4470
|
}, null, 8, ["color", "size"])
|
|
4468
|
-
], 8,
|
|
4471
|
+
], 8, Vl)
|
|
4469
4472
|
]),
|
|
4470
4473
|
_: 1
|
|
4471
4474
|
})
|
|
@@ -4475,34 +4478,34 @@ const Sl = ["aria-labelledby"], $l = { class: "form-section-wrapper" }, Tl = {
|
|
|
4475
4478
|
]);
|
|
4476
4479
|
};
|
|
4477
4480
|
}
|
|
4478
|
-
}),
|
|
4481
|
+
}), As = /* @__PURE__ */ se(Yl, [["__scopeId", "data-v-96efdfa5"]]), Wl = { class: "kong-ui-public-entity-empty-state" }, Gl = { class: "entity-empty-state-content" }, Jl = {
|
|
4479
4482
|
key: 0,
|
|
4480
4483
|
class: "empty-state-image"
|
|
4481
|
-
},
|
|
4484
|
+
}, zl = {
|
|
4482
4485
|
key: 1,
|
|
4483
4486
|
class: "entity-empty-state-title"
|
|
4484
|
-
},
|
|
4487
|
+
}, Ql = {
|
|
4485
4488
|
key: 2,
|
|
4486
4489
|
class: "entity-empty-state-description"
|
|
4487
|
-
},
|
|
4490
|
+
}, Zl = {
|
|
4488
4491
|
key: 3,
|
|
4489
4492
|
class: "entity-empty-state-pricing"
|
|
4490
|
-
},
|
|
4493
|
+
}, Xl = {
|
|
4491
4494
|
key: 0,
|
|
4492
4495
|
class: "entity-empty-state-message"
|
|
4493
|
-
},
|
|
4496
|
+
}, es = {
|
|
4494
4497
|
key: 1,
|
|
4495
4498
|
class: "entity-empty-state-action"
|
|
4496
|
-
},
|
|
4499
|
+
}, ts = {
|
|
4497
4500
|
key: 2,
|
|
4498
4501
|
class: "entity-empty-state-card-container"
|
|
4499
|
-
},
|
|
4502
|
+
}, ns = {
|
|
4500
4503
|
key: 0,
|
|
4501
4504
|
class: "feature-icon"
|
|
4502
|
-
},
|
|
4505
|
+
}, is = { class: "card-header" }, rs = ["title"], as = {
|
|
4503
4506
|
key: 3,
|
|
4504
4507
|
class: "entity-empty-state-bottom-container"
|
|
4505
|
-
},
|
|
4508
|
+
}, os = /* @__PURE__ */ z({
|
|
4506
4509
|
__name: "EntityEmptyState",
|
|
4507
4510
|
props: {
|
|
4508
4511
|
appearance: {
|
|
@@ -4546,43 +4549,43 @@ const Sl = ["aria-labelledby"], $l = { class: "form-section-wrapper" }, Tl = {
|
|
|
4546
4549
|
const t = e, { i18n: { t: n } } = Y.useI18n(), i = K(!1), r = F(() => i.value && !!t.actionButtonText), o = F(() => ht.includes(t.appearance) ? t.appearance : ["primary", t.appearance]);
|
|
4547
4550
|
return nt(async () => {
|
|
4548
4551
|
i.value = await t.canCreate();
|
|
4549
|
-
}), tt(() =>
|
|
4552
|
+
}), tt(() => Zn(`EntityEmptyState is deprecated and will be removed in future releases. Please use the KEmptyState component instead.
|
|
4550
4553
|
Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, s) => {
|
|
4551
|
-
const l =
|
|
4552
|
-
return m(), S("div",
|
|
4553
|
-
R("div",
|
|
4554
|
-
a.$slots.image ? (m(), S("div",
|
|
4555
|
-
|
|
4554
|
+
const l = D("KCard");
|
|
4555
|
+
return m(), S("div", Wl, [
|
|
4556
|
+
R("div", Gl, [
|
|
4557
|
+
a.$slots.image ? (m(), S("div", Jl, [
|
|
4558
|
+
P(a.$slots, "image", {}, void 0, !0)
|
|
4556
4559
|
])) : N("", !0),
|
|
4557
|
-
e.title || a.$slots.title ? (m(), S("div",
|
|
4560
|
+
e.title || a.$slots.title ? (m(), S("div", zl, [
|
|
4558
4561
|
R("h1", {
|
|
4559
4562
|
class: fe(o.value)
|
|
4560
4563
|
}, [
|
|
4561
|
-
|
|
4564
|
+
P(a.$slots, "title", {}, () => [
|
|
4562
4565
|
q(L(e.title), 1)
|
|
4563
4566
|
], !0)
|
|
4564
4567
|
], 2)
|
|
4565
4568
|
])) : N("", !0),
|
|
4566
|
-
e.description || a.$slots.default ? (m(), S("div",
|
|
4567
|
-
|
|
4569
|
+
e.description || a.$slots.default ? (m(), S("div", Ql, [
|
|
4570
|
+
P(a.$slots, "default", {}, () => [
|
|
4568
4571
|
R("p", null, L(e.description), 1)
|
|
4569
4572
|
], !0)
|
|
4570
4573
|
])) : N("", !0),
|
|
4571
|
-
e.pricing || a.$slots.pricing ? (m(), S("div",
|
|
4574
|
+
e.pricing || a.$slots.pricing ? (m(), S("div", Zl, [
|
|
4572
4575
|
R("p", null, [
|
|
4573
4576
|
R("b", null, L($(n)("emptyState.pricingTitle")), 1),
|
|
4574
4577
|
s[2] || (s[2] = q()),
|
|
4575
|
-
|
|
4578
|
+
P(a.$slots, "pricing", {}, () => [
|
|
4576
4579
|
q(L(e.pricing), 1)
|
|
4577
4580
|
], !0)
|
|
4578
4581
|
])
|
|
4579
4582
|
])) : N("", !0)
|
|
4580
4583
|
]),
|
|
4581
|
-
a.$slots.message ? (m(), S("div",
|
|
4582
|
-
|
|
4584
|
+
a.$slots.message ? (m(), S("div", Xl, [
|
|
4585
|
+
P(a.$slots, "message", {}, void 0, !0)
|
|
4583
4586
|
])) : N("", !0),
|
|
4584
|
-
r.value || e.learnMore || a.$slots.actions ? (m(), S("div",
|
|
4585
|
-
|
|
4587
|
+
r.value || e.learnMore || a.$slots.actions ? (m(), S("div", es, [
|
|
4588
|
+
P(a.$slots, "actions", {}, () => [
|
|
4586
4589
|
r.value ? (m(), j($(mt), {
|
|
4587
4590
|
key: 0,
|
|
4588
4591
|
appearance: "primary",
|
|
@@ -4611,32 +4614,32 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, s) =>
|
|
|
4611
4614
|
}, 8, ["size"])) : N("", !0)
|
|
4612
4615
|
], !0)
|
|
4613
4616
|
])) : N("", !0),
|
|
4614
|
-
e.features.length ? (m(), S("div",
|
|
4617
|
+
e.features.length ? (m(), S("div", ts, [
|
|
4615
4618
|
(m(!0), S(ue, null, ce(e.features, (c, d) => (m(), j(l, {
|
|
4616
4619
|
key: c,
|
|
4617
4620
|
class: "entity-empty-state-card"
|
|
4618
4621
|
}, {
|
|
4619
4622
|
title: w(() => [
|
|
4620
|
-
a.$slots[`feature-${d}-icon`] ? (m(), S("div",
|
|
4621
|
-
|
|
4623
|
+
a.$slots[`feature-${d}-icon`] ? (m(), S("div", ns, [
|
|
4624
|
+
P(a.$slots, `feature-${d}-icon`, {}, void 0, !0)
|
|
4622
4625
|
])) : N("", !0),
|
|
4623
|
-
R("div",
|
|
4626
|
+
R("div", is, L(c.title), 1)
|
|
4624
4627
|
]),
|
|
4625
4628
|
default: w(() => [
|
|
4626
4629
|
R("div", {
|
|
4627
4630
|
title: c.description
|
|
4628
|
-
}, L(c.description), 9,
|
|
4631
|
+
}, L(c.description), 9, rs)
|
|
4629
4632
|
]),
|
|
4630
4633
|
_: 2
|
|
4631
4634
|
}, 1024))), 128))
|
|
4632
4635
|
])) : N("", !0),
|
|
4633
|
-
a.$slots.bottom ? (m(), S("div",
|
|
4634
|
-
|
|
4636
|
+
a.$slots.bottom ? (m(), S("div", as, [
|
|
4637
|
+
P(a.$slots, "bottom", {}, void 0, !0)
|
|
4635
4638
|
])) : N("", !0)
|
|
4636
4639
|
]);
|
|
4637
4640
|
};
|
|
4638
4641
|
}
|
|
4639
|
-
}),
|
|
4642
|
+
}), _s = /* @__PURE__ */ se(os, [["__scopeId", "data-v-645aae54"]]), ls = { key: 1 }, ws = /* @__PURE__ */ z({
|
|
4640
4643
|
__name: "TableTags",
|
|
4641
4644
|
props: {
|
|
4642
4645
|
/** The tags to display in the table */
|
|
@@ -4664,9 +4667,9 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, s) =>
|
|
|
4664
4667
|
});
|
|
4665
4668
|
return (i, r) => {
|
|
4666
4669
|
var o;
|
|
4667
|
-
return ((o = n.value) == null ? void 0 : o.length) > 0 ? (m(), j($(
|
|
4670
|
+
return ((o = n.value) == null ? void 0 : o.length) > 0 ? (m(), j($(ni), { key: 0 }, {
|
|
4668
4671
|
default: w(() => [
|
|
4669
|
-
(m(!0), S(ue, null, ce(n.value, (a) => (m(), j($(
|
|
4672
|
+
(m(!0), S(ue, null, ce(n.value, (a) => (m(), j($(ii), {
|
|
4670
4673
|
key: a,
|
|
4671
4674
|
"max-width": e.tagMaxWidth,
|
|
4672
4675
|
onClick: r[0] || (r[0] = Le(() => {
|
|
@@ -4679,54 +4682,54 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, s) =>
|
|
|
4679
4682
|
}, 1032, ["max-width"]))), 128))
|
|
4680
4683
|
]),
|
|
4681
4684
|
_: 1
|
|
4682
|
-
})) : (m(), S("span",
|
|
4685
|
+
})) : (m(), S("span", ls, "-"));
|
|
4683
4686
|
};
|
|
4684
4687
|
}
|
|
4685
|
-
}),
|
|
4688
|
+
}), Ss = {
|
|
4686
4689
|
KM_1945_NEW_PLUGIN_CONFIG_FORM: Symbol("KM_1945_NEW_PLUGIN_CONFIG_FORM")
|
|
4687
|
-
}, { useAxios:
|
|
4690
|
+
}, { useAxios: $s, useDeleteUrlBuilder: Ts, useErrors: Is, useExternalLinkCreator: Es, useFetchUrlBuilder: Fs, useFetcher: Os, useFetcherCacheKey: Ls, useDebouncedFilter: Bs, useStringHelpers: Rs, useHelpers: Ks, useGatewayFeatureSupported: Ns, useTruncationDetector: Ms, useValidators: js, useSchemaProvider: Ps, useTableState: Ds } = Y;
|
|
4688
4691
|
export {
|
|
4689
4692
|
ht as Appearances,
|
|
4690
|
-
|
|
4693
|
+
qo as ConfigCardDisplay,
|
|
4691
4694
|
Xt as ConfigCardItem,
|
|
4692
4695
|
ae as ConfigurationSchemaSection,
|
|
4693
4696
|
V as ConfigurationSchemaType,
|
|
4694
|
-
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
|
|
4706
|
-
|
|
4707
|
-
|
|
4697
|
+
ms as EntityBaseConfigCard,
|
|
4698
|
+
hs as EntityBaseForm,
|
|
4699
|
+
ci as EntityBaseFormType,
|
|
4700
|
+
gs as EntityBaseTable,
|
|
4701
|
+
ys as EntityDeleteModal,
|
|
4702
|
+
_s as EntityEmptyState,
|
|
4703
|
+
vs as EntityFilter,
|
|
4704
|
+
ks as EntityFormBlock,
|
|
4705
|
+
Cs as EntityFormSection,
|
|
4706
|
+
As as EntityLink,
|
|
4707
|
+
bs as EntityToggleModal,
|
|
4708
|
+
si as EntityTypes,
|
|
4709
|
+
ui as EventGatewayTypesArray,
|
|
4710
|
+
Ss as FEATURE_FLAGS,
|
|
4708
4711
|
me as FetcherStatus,
|
|
4709
|
-
|
|
4712
|
+
Wi as InternalLinkItem,
|
|
4710
4713
|
en as JsonCodeBlock,
|
|
4711
|
-
|
|
4714
|
+
xs as PermissionsWrapper,
|
|
4712
4715
|
it as SupportedEntityType,
|
|
4713
|
-
|
|
4714
|
-
|
|
4715
|
-
|
|
4716
|
-
|
|
4717
|
-
|
|
4718
|
-
|
|
4719
|
-
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
|
|
4724
|
-
|
|
4725
|
-
|
|
4726
|
-
|
|
4727
|
-
|
|
4728
|
-
|
|
4716
|
+
De as SupportedEntityTypesArray,
|
|
4717
|
+
ws as TableTags,
|
|
4718
|
+
Vn as TerraformCodeBlock,
|
|
4719
|
+
Hn as YamlCodeBlock,
|
|
4720
|
+
$s as useAxios,
|
|
4721
|
+
Bs as useDebouncedFilter,
|
|
4722
|
+
Ts as useDeleteUrlBuilder,
|
|
4723
|
+
Is as useErrors,
|
|
4724
|
+
Es as useExternalLinkCreator,
|
|
4725
|
+
Fs as useFetchUrlBuilder,
|
|
4726
|
+
Os as useFetcher,
|
|
4727
|
+
Ls as useFetcherCacheKey,
|
|
4728
|
+
Ns as useGatewayFeatureSupported,
|
|
4729
|
+
Ks as useHelpers,
|
|
4730
|
+
Ps as useSchemaProvider,
|
|
4731
|
+
Rs as useStringHelpers,
|
|
4729
4732
|
Ds as useTableState,
|
|
4730
|
-
|
|
4731
|
-
|
|
4733
|
+
Ms as useTruncationDetector,
|
|
4734
|
+
js as useValidators
|
|
4732
4735
|
};
|