@kong-ui-public/entities-consumer-groups 1.3.4 → 1.3.5-pr.883.77fe78a0.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-consumer-groups.es.js +896 -830
- package/dist/entities-consumer-groups.umd.js +17 -17
- package/dist/style.css +1 -1
- package/package.json +2 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as ae, ref as
|
|
1
|
+
import { defineComponent as ae, ref as E, computed as j, watch as xe, renderSlot as Y, createCommentVNode as G, unref as y, useSlots as ut, onBeforeMount as Qe, resolveComponent as q, openBlock as g, createBlock as V, createSlots as Te, withCtx as h, createElementVNode as R, createTextVNode as Z, toDisplayString as K, createVNode as F, createElementBlock as M, renderList as ye, Fragment as ve, normalizeClass as Fe, withModifiers as rt, withDirectives as et, vShow as tt, useCssVars as ur, resolveDynamicComponent as He, normalizeProps as cr, guardReactiveProps as dr, mergeProps as ht, onMounted as pr, onUnmounted as fr, normalizeStyle as mr, inject as gr, pushScopeId as yr, popScopeId as hr, reactive as Pt } from "vue";
|
|
2
2
|
import { useRouter as wt } from "vue-router";
|
|
3
3
|
import { createI18n as It, i18nTComponent as cn } from "@kong-ui-public/i18n";
|
|
4
4
|
import vr from "axios";
|
|
5
|
-
import {
|
|
5
|
+
import { ToastManager as br, MethodsArray as kr } from "@kong/kongponents";
|
|
6
6
|
const Cr = {
|
|
7
7
|
list: {
|
|
8
8
|
table_headers: {
|
|
@@ -95,11 +95,11 @@ const Cr = {
|
|
|
95
95
|
name: "The name can be any string containing letters, numbers, or the following characters: ., -, _, or ~. Do not use spaces."
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
|
-
},
|
|
98
|
+
}, _r = {
|
|
99
99
|
consumer_groups: Cr
|
|
100
100
|
};
|
|
101
|
-
function
|
|
102
|
-
const e = It("en-us",
|
|
101
|
+
function wr() {
|
|
102
|
+
const e = It("en-us", _r);
|
|
103
103
|
return {
|
|
104
104
|
i18n: e,
|
|
105
105
|
i18nT: cn(e)
|
|
@@ -107,7 +107,7 @@ function _r() {
|
|
|
107
107
|
};
|
|
108
108
|
}
|
|
109
109
|
const ct = {
|
|
110
|
-
useI18n:
|
|
110
|
+
useI18n: wr
|
|
111
111
|
}, Ie = "/api/runtime_groups/{controlPlaneId}", Ae = "/{workspace}", $e = {
|
|
112
112
|
list: {
|
|
113
113
|
konnect: {
|
|
@@ -140,7 +140,7 @@ const ct = {
|
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
};
|
|
143
|
-
var dn = /* @__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))(dn || {}), nt = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(nt || {}),
|
|
143
|
+
var dn = /* @__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))(dn || {}), nt = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(nt || {}), Ee = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(Ee || {}), te = /* @__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.BadgeStatus = "badge-status", e.BadgeMethod = "badge-method", e.LinkInternal = "link-internal", e.LinkExternal = "link-external", e))(te || {}), be = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(be || {});
|
|
144
144
|
function At(e = {}) {
|
|
145
145
|
return {
|
|
146
146
|
axiosInstance: vr.create({
|
|
@@ -150,7 +150,7 @@ function At(e = {}) {
|
|
|
150
150
|
})
|
|
151
151
|
};
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function Ir() {
|
|
154
154
|
return {
|
|
155
155
|
debounce: (e, n) => {
|
|
156
156
|
let t;
|
|
@@ -162,12 +162,12 @@ function wr() {
|
|
|
162
162
|
}
|
|
163
163
|
};
|
|
164
164
|
}
|
|
165
|
-
const ft = "khcp-user-table-preferences",
|
|
165
|
+
const ft = "khcp-user-table-preferences", Ar = {
|
|
166
166
|
pageSize: 30,
|
|
167
167
|
sortColumnKey: void 0,
|
|
168
168
|
sortColumnOrder: void 0
|
|
169
169
|
};
|
|
170
|
-
function
|
|
170
|
+
function Sr() {
|
|
171
171
|
const e = (t) => {
|
|
172
172
|
if (typeof t == "string")
|
|
173
173
|
try {
|
|
@@ -191,17 +191,24 @@ function Ar() {
|
|
|
191
191
|
},
|
|
192
192
|
getTablePreferences: (t) => {
|
|
193
193
|
const r = n();
|
|
194
|
-
return (r == null ? void 0 : r.get(t)) || void 0 ||
|
|
194
|
+
return (r == null ? void 0 : r.get(t)) || void 0 || Ar;
|
|
195
195
|
},
|
|
196
196
|
deleteAllTablePreferences: () => {
|
|
197
197
|
localStorage.removeItem(ft);
|
|
198
198
|
}
|
|
199
199
|
};
|
|
200
200
|
}
|
|
201
|
-
const
|
|
201
|
+
const xr = {
|
|
202
|
+
actions: {
|
|
203
|
+
copyId: "Copy ID",
|
|
204
|
+
copied_id: 'Copied "{id}" to the clipboard',
|
|
205
|
+
copyToClipboard: "Copied successfully!",
|
|
206
|
+
copyToClipboardFailed: "Failed to copy to the clipboard"
|
|
207
|
+
}
|
|
208
|
+
}, Tr = {
|
|
202
209
|
message: "Are you sure you want to delete this {entityType}?",
|
|
203
210
|
messageWithName: "Are you sure you want to delete this {entityType} {entityName}?"
|
|
204
|
-
},
|
|
211
|
+
}, $r = {
|
|
205
212
|
actions: {
|
|
206
213
|
save: "Save",
|
|
207
214
|
cancel: "Cancel",
|
|
@@ -210,13 +217,13 @@ const Sr = {
|
|
|
210
217
|
errors: {
|
|
211
218
|
edit: "The entity could not be edited at this time."
|
|
212
219
|
}
|
|
213
|
-
},
|
|
220
|
+
}, jr = {
|
|
214
221
|
emptyState: {
|
|
215
222
|
noSearchResultsTitle: "No results found",
|
|
216
223
|
noSearchResultsMessage: "Please adjust the criteria and try again.",
|
|
217
224
|
noSearchResultsCtaText: "Clear"
|
|
218
225
|
}
|
|
219
|
-
},
|
|
226
|
+
}, Mr = {
|
|
220
227
|
title: "Configuration",
|
|
221
228
|
actions: {
|
|
222
229
|
copy: "Copy JSON"
|
|
@@ -251,7 +258,7 @@ const Sr = {
|
|
|
251
258
|
entryTitle: "Entry {index}",
|
|
252
259
|
structuredFormat: "Structured"
|
|
253
260
|
}
|
|
254
|
-
},
|
|
261
|
+
}, Or = {
|
|
255
262
|
filterButtonText: "Filter",
|
|
256
263
|
fieldLabel: "Filter by:",
|
|
257
264
|
inputPlaceholder: "Enter a value",
|
|
@@ -259,15 +266,15 @@ const Sr = {
|
|
|
259
266
|
applyButtonText: "Apply",
|
|
260
267
|
clearButtonText: "Clear",
|
|
261
268
|
clearAllButtonText: "Clear all filters"
|
|
262
|
-
},
|
|
269
|
+
}, Er = {
|
|
263
270
|
errors: {
|
|
264
271
|
fetch: "Could not fetch available items",
|
|
265
272
|
invalid: "Please select a valid value"
|
|
266
273
|
}
|
|
267
|
-
},
|
|
274
|
+
}, Kr = {
|
|
268
275
|
unexpected: "An unexpected error has occurred",
|
|
269
276
|
dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.'
|
|
270
|
-
},
|
|
277
|
+
}, Fr = {
|
|
271
278
|
enable: {
|
|
272
279
|
title: "Enable {entityType}",
|
|
273
280
|
message: "Are you sure you want to enable the {entityType} {entityName}?",
|
|
@@ -278,18 +285,19 @@ const Sr = {
|
|
|
278
285
|
message: "Are you sure you want to disable the {entityType} {entityName}?",
|
|
279
286
|
confirmText: "Yes, disable"
|
|
280
287
|
}
|
|
281
|
-
},
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
288
|
+
}, Nr = {
|
|
289
|
+
global: xr,
|
|
290
|
+
deleteModal: Tr,
|
|
291
|
+
baseForm: $r,
|
|
292
|
+
baseTable: jr,
|
|
293
|
+
baseConfigCard: Mr,
|
|
294
|
+
filter: Or,
|
|
295
|
+
debouncedFilter: Er,
|
|
296
|
+
errors: Kr,
|
|
297
|
+
toggleModal: Fr
|
|
290
298
|
};
|
|
291
299
|
function St() {
|
|
292
|
-
const e = It("en-us",
|
|
300
|
+
const e = It("en-us", Nr);
|
|
293
301
|
return {
|
|
294
302
|
i18n: e,
|
|
295
303
|
i18nT: cn(e)
|
|
@@ -297,32 +305,59 @@ function St() {
|
|
|
297
305
|
};
|
|
298
306
|
}
|
|
299
307
|
function pn() {
|
|
308
|
+
const e = (t, r) => (r == null ? void 0 : r[t]) ?? void 0, n = (t, r) => {
|
|
309
|
+
if (t.length !== r.length)
|
|
310
|
+
return !1;
|
|
311
|
+
const o = /* @__PURE__ */ new Set([...t, ...r]);
|
|
312
|
+
for (const a of o) {
|
|
313
|
+
const i = t.filter((l) => l === a).length, s = r.filter((l) => l === a).length;
|
|
314
|
+
if (i !== s)
|
|
315
|
+
return !1;
|
|
316
|
+
}
|
|
317
|
+
return !0;
|
|
318
|
+
};
|
|
300
319
|
return {
|
|
301
|
-
getPropValue:
|
|
302
|
-
objectsAreEqual: (
|
|
320
|
+
getPropValue: e,
|
|
321
|
+
objectsAreEqual: (t, r, o) => {
|
|
322
|
+
if (o) {
|
|
323
|
+
if (Object.keys(t).length === Object.keys(r).length)
|
|
324
|
+
for (const a in t)
|
|
325
|
+
if (Array.isArray(t[a]) && Array.isArray(r[a])) {
|
|
326
|
+
if (n(t[a], r[a]))
|
|
327
|
+
continue;
|
|
328
|
+
return !1;
|
|
329
|
+
} else {
|
|
330
|
+
if (t[a] === r[a])
|
|
331
|
+
continue;
|
|
332
|
+
return !1;
|
|
333
|
+
}
|
|
334
|
+
else
|
|
335
|
+
return !1;
|
|
336
|
+
return !0;
|
|
337
|
+
}
|
|
303
338
|
try {
|
|
304
|
-
return JSON.stringify(
|
|
339
|
+
return JSON.stringify(t) === JSON.stringify(r);
|
|
305
340
|
} catch {
|
|
306
341
|
return !1;
|
|
307
342
|
}
|
|
308
343
|
},
|
|
309
|
-
sortAlpha: (
|
|
310
|
-
let
|
|
311
|
-
return Array.isArray(
|
|
344
|
+
sortAlpha: (t) => (r, o) => {
|
|
345
|
+
let a = r[t] === void 0 || r[t] === null ? "" : r[t], i = o[t] === void 0 || o[t] === null ? "" : o[t];
|
|
346
|
+
return Array.isArray(r[t]) && (a = r[t][0]), Array.isArray(o[t]) && (i = o[t][0]), a.localeCompare(i);
|
|
312
347
|
},
|
|
313
|
-
isValidUuid: (
|
|
348
|
+
isValidUuid: (t) => t ? /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(t) : !1
|
|
314
349
|
};
|
|
315
350
|
}
|
|
316
|
-
function
|
|
351
|
+
function Br(e, n, t, r = {
|
|
317
352
|
fetchedItemsKey: "data",
|
|
318
353
|
searchKeys: ["id"]
|
|
319
354
|
}) {
|
|
320
355
|
t || (t = "100");
|
|
321
356
|
const { axiosInstance: o } = At({
|
|
322
357
|
headers: e.requestHeaders
|
|
323
|
-
}), { i18n: { t: a } } = St(), { debounce: i } =
|
|
324
|
-
await
|
|
325
|
-
}, 200), l =
|
|
358
|
+
}), { i18n: { t: a } } = St(), { debounce: i } = Ir(), s = i(async (A) => {
|
|
359
|
+
await k(A);
|
|
360
|
+
}, 200), l = E(!1), c = E(""), d = E(""), u = E([]), m = E([]), f = E(void 0), I = y(n);
|
|
326
361
|
let v = `${e.apiBaseUrl}${I}`;
|
|
327
362
|
e.app === "konnect" ? v = v.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (v = v.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
|
|
328
363
|
const { isValidUuid: p } = pn(), S = async () => {
|
|
@@ -335,8 +370,8 @@ function Kr(e, n, t, r = {
|
|
|
335
370
|
} finally {
|
|
336
371
|
l.value = !1;
|
|
337
372
|
}
|
|
338
|
-
}, b =
|
|
339
|
-
var ne, pe,
|
|
373
|
+
}, b = E(""), k = async (A) => {
|
|
374
|
+
var ne, pe, z;
|
|
340
375
|
if (b.value !== A)
|
|
341
376
|
if (b.value = A || "", f.value === void 0)
|
|
342
377
|
try {
|
|
@@ -348,18 +383,18 @@ function Kr(e, n, t, r = {
|
|
|
348
383
|
} else if (A) {
|
|
349
384
|
const w = [];
|
|
350
385
|
p(A) && r.searchKeys.includes("id") ? w.push((async () => {
|
|
351
|
-
const { data:
|
|
352
|
-
return [
|
|
386
|
+
const { data: C } = await o.get(`${v}/${A}`);
|
|
387
|
+
return [C[r.fetchedItemsKey] ?? C];
|
|
353
388
|
})()) : w.push(
|
|
354
|
-
...r.searchKeys.filter((
|
|
355
|
-
const { data: x } = await o.get(`${v}?${
|
|
389
|
+
...r.searchKeys.filter((C) => C !== "id").map(async (C) => {
|
|
390
|
+
const { data: x } = await o.get(`${v}?${C}=${A}`);
|
|
356
391
|
return x[r.fetchedItemsKey];
|
|
357
392
|
})
|
|
358
393
|
);
|
|
359
394
|
const N = await Promise.all(w), B = /* @__PURE__ */ new Set();
|
|
360
|
-
u.value = [], (ne = N == null ? void 0 : N.forEach) == null || ne.call(N, (
|
|
395
|
+
u.value = [], (ne = N == null ? void 0 : N.forEach) == null || ne.call(N, (C) => {
|
|
361
396
|
var x;
|
|
362
|
-
(x =
|
|
397
|
+
(x = C == null ? void 0 : C.forEach) == null || x.call(C, (T) => {
|
|
363
398
|
B.has(T.id) || (B.add(T.id), u.value.push(T));
|
|
364
399
|
});
|
|
365
400
|
});
|
|
@@ -371,11 +406,11 @@ function Kr(e, n, t, r = {
|
|
|
371
406
|
l.value = !1;
|
|
372
407
|
}
|
|
373
408
|
else
|
|
374
|
-
l.value = !0, d.value = "", A ? (u.value = (
|
|
409
|
+
l.value = !0, d.value = "", A ? (u.value = (z = f.value) == null ? void 0 : z.filter((w) => {
|
|
375
410
|
var N;
|
|
376
411
|
let B = !1;
|
|
377
|
-
for (const
|
|
378
|
-
const x = typeof w[
|
|
412
|
+
for (const C of r.searchKeys) {
|
|
413
|
+
const x = typeof w[C] == "string" ? (N = w[C]) == null ? void 0 : N.toLowerCase() : w[C];
|
|
379
414
|
x != null && x.includes(A.toLowerCase()) && (B = !0);
|
|
380
415
|
}
|
|
381
416
|
return B;
|
|
@@ -391,13 +426,13 @@ function Kr(e, n, t, r = {
|
|
|
391
426
|
debouncedQueryChange: s
|
|
392
427
|
};
|
|
393
428
|
}
|
|
394
|
-
function
|
|
395
|
-
const t = y(n), r =
|
|
429
|
+
function Pr(e, n) {
|
|
430
|
+
const t = y(n), r = j(
|
|
396
431
|
() => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${t}`) : new URL(t)
|
|
397
432
|
);
|
|
398
433
|
return r.value.search = "", (o) => `${r.value.href}/${o}`;
|
|
399
434
|
}
|
|
400
|
-
function
|
|
435
|
+
function Lr() {
|
|
401
436
|
const { i18n: { t: e } } = St();
|
|
402
437
|
return {
|
|
403
438
|
getMessageFromError: (n) => {
|
|
@@ -425,10 +460,21 @@ function Br() {
|
|
|
425
460
|
}
|
|
426
461
|
};
|
|
427
462
|
}
|
|
463
|
+
function qr(e) {
|
|
464
|
+
const n = window.location.origin, t = n.endsWith("/") ? n : `${n}/`;
|
|
465
|
+
try {
|
|
466
|
+
const r = e.join("/"), o = `${t}${r}`, a = e.some((i) => i.trim() === "");
|
|
467
|
+
if (!/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,4}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g.test(o) && !a && new URL(o))
|
|
468
|
+
return `${t}${r}`;
|
|
469
|
+
throw new Error("Invalid url");
|
|
470
|
+
} catch (r) {
|
|
471
|
+
return console.warn("Failed to build valid URL:", r), "";
|
|
472
|
+
}
|
|
473
|
+
}
|
|
428
474
|
function fn(e, n) {
|
|
429
|
-
const t =
|
|
475
|
+
const t = E(y(e)), r = E(y(n)), o = j(
|
|
430
476
|
() => !!(t.value.app === "konnect" || t.value.isExactMatch)
|
|
431
|
-
), a =
|
|
477
|
+
), a = j(
|
|
432
478
|
() => r.value.startsWith("/") ? new URL(`${window.location.origin}${r.value}`) : new URL(r.value)
|
|
433
479
|
);
|
|
434
480
|
return (i) => {
|
|
@@ -443,15 +489,15 @@ function fn(e, n) {
|
|
|
443
489
|
}
|
|
444
490
|
};
|
|
445
491
|
}
|
|
446
|
-
function
|
|
492
|
+
function Ur(e, n, t = "data") {
|
|
447
493
|
const r = y(n), { axiosInstance: o } = At({
|
|
448
494
|
headers: e.requestHeaders
|
|
449
|
-
}), a = fn(e, r), i =
|
|
450
|
-
status:
|
|
495
|
+
}), a = fn(e, r), i = E({
|
|
496
|
+
status: Ee.Idle
|
|
451
497
|
});
|
|
452
498
|
return { fetcher: async (s) => {
|
|
453
499
|
try {
|
|
454
|
-
i.value = { status:
|
|
500
|
+
i.value = { status: Ee.Loading };
|
|
455
501
|
const l = a(s), { data: c } = await o.get(l), d = t && t.replace(/[^\w-_]/gi, "");
|
|
456
502
|
let u;
|
|
457
503
|
c[d] && Array.isArray(c[d]) ? u = c[d] : u = Object.keys(c).length ? [c] : [];
|
|
@@ -465,7 +511,7 @@ function Pr(e, n, t = "data") {
|
|
|
465
511
|
} : null
|
|
466
512
|
};
|
|
467
513
|
return i.value = {
|
|
468
|
-
status:
|
|
514
|
+
status: Ee.Idle,
|
|
469
515
|
response: m
|
|
470
516
|
}, m;
|
|
471
517
|
} catch (l) {
|
|
@@ -474,20 +520,22 @@ function Pr(e, n, t = "data") {
|
|
|
474
520
|
total: 0
|
|
475
521
|
};
|
|
476
522
|
return s.query && l.response.status === 404 ? (i.value = {
|
|
477
|
-
status:
|
|
523
|
+
status: Ee.NoResults,
|
|
478
524
|
response: c,
|
|
479
525
|
error: l
|
|
480
526
|
}, c) : (i.value = {
|
|
481
|
-
status:
|
|
527
|
+
status: Ee.Error,
|
|
482
528
|
response: c,
|
|
483
529
|
error: l
|
|
484
530
|
}, c);
|
|
485
531
|
}
|
|
486
532
|
}, fetcherState: i };
|
|
487
533
|
}
|
|
488
|
-
function
|
|
534
|
+
function Rr() {
|
|
535
|
+
const e = (t, r = "_") => t ? t.split(r).map((o) => o.toLowerCase() === "id" ? o.toUpperCase() : o.charAt(0).toUpperCase() + o.substring(1)).join(" ") : "", n = /(?:^|[\s-:'"])\w/g;
|
|
489
536
|
return {
|
|
490
|
-
|
|
537
|
+
capitalize: (t) => t ? t.replace(n, (r) => r.toUpperCase()) : "",
|
|
538
|
+
convertKeyToTitle: e
|
|
491
539
|
};
|
|
492
540
|
}
|
|
493
541
|
const mn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, Lt = (e) => {
|
|
@@ -497,27 +545,27 @@ const mn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
497
545
|
if (!n)
|
|
498
546
|
throw new Error(`Invalid argument not valid semver ('${e}' received)`);
|
|
499
547
|
return n.shift(), n;
|
|
500
|
-
},
|
|
548
|
+
}, qt = (e) => e === "*" || e === "x" || e === "X", Ut = (e) => {
|
|
501
549
|
const n = parseInt(e, 10);
|
|
502
550
|
return isNaN(n) ? e : n;
|
|
503
|
-
},
|
|
504
|
-
if (
|
|
551
|
+
}, Vr = (e, n) => typeof e != typeof n ? [String(e), String(n)] : [e, n], Dr = (e, n) => {
|
|
552
|
+
if (qt(e) || qt(n))
|
|
505
553
|
return 0;
|
|
506
|
-
const [t, r] =
|
|
554
|
+
const [t, r] = Vr(Ut(e), Ut(n));
|
|
507
555
|
return t > r ? 1 : t < r ? -1 : 0;
|
|
508
556
|
}, Rt = (e, n) => {
|
|
509
557
|
for (let t = 0; t < Math.max(e.length, n.length); t++) {
|
|
510
|
-
const r =
|
|
558
|
+
const r = Dr(e[t] || "0", n[t] || "0");
|
|
511
559
|
if (r !== 0)
|
|
512
560
|
return r;
|
|
513
561
|
}
|
|
514
562
|
return 0;
|
|
515
|
-
},
|
|
563
|
+
}, Gr = (e, n) => {
|
|
516
564
|
const t = Lt(e), r = Lt(n), o = t.pop(), a = r.pop(), i = Rt(t, r);
|
|
517
565
|
return i !== 0 ? i : o && a ? Rt(o.split("."), a.split(".")) : o || a ? o ? -1 : 1 : 0;
|
|
518
566
|
}, Vt = (e, n, t) => {
|
|
519
|
-
|
|
520
|
-
const r =
|
|
567
|
+
zr(t);
|
|
568
|
+
const r = Gr(e, n);
|
|
521
569
|
return gn[t].includes(r);
|
|
522
570
|
}, gn = {
|
|
523
571
|
">": [1],
|
|
@@ -526,18 +574,18 @@ const mn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
526
574
|
"<=": [-1, 0],
|
|
527
575
|
"<": [-1],
|
|
528
576
|
"!=": [-1, 1]
|
|
529
|
-
}, Dt = Object.keys(gn),
|
|
577
|
+
}, Dt = Object.keys(gn), zr = (e) => {
|
|
530
578
|
if (typeof e != "string")
|
|
531
579
|
throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
|
|
532
580
|
if (Dt.indexOf(e) === -1)
|
|
533
581
|
throw new Error(`Invalid operator, expected one of ${Dt.join("|")}`);
|
|
534
|
-
},
|
|
535
|
-
function
|
|
582
|
+
}, Hr = (e) => typeof e == "string" && /^[v\d]/.test(e) && mn.test(e);
|
|
583
|
+
function Jr(e) {
|
|
536
584
|
const { gatewayInfo: n, supportedRange: t } = e;
|
|
537
585
|
if (!n)
|
|
538
586
|
return !0;
|
|
539
587
|
const { edition: r, version: o } = n;
|
|
540
|
-
if (!
|
|
588
|
+
if (!Hr(o))
|
|
541
589
|
return console.error("Invalid version"), !1;
|
|
542
590
|
const a = t[r];
|
|
543
591
|
if (!a)
|
|
@@ -545,36 +593,54 @@ function Gr(e) {
|
|
|
545
593
|
const [i, s] = a;
|
|
546
594
|
return !(i && Vt(o, i, "<") || s && Vt(o, s, ">"));
|
|
547
595
|
}
|
|
548
|
-
function
|
|
549
|
-
const n =
|
|
596
|
+
function Wr(e) {
|
|
597
|
+
const n = E(0), t = E(0), r = E(!1);
|
|
550
598
|
return xe(e, (o) => {
|
|
551
599
|
o && !r.value && (n.value = o.offsetWidth, t.value = o.scrollWidth, r.value = !0);
|
|
552
600
|
}), {
|
|
553
|
-
isTruncated:
|
|
601
|
+
isTruncated: j(() => n.value < t.value)
|
|
602
|
+
};
|
|
603
|
+
}
|
|
604
|
+
const Yr = new br();
|
|
605
|
+
function Zr() {
|
|
606
|
+
return {
|
|
607
|
+
notify: async (e) => {
|
|
608
|
+
const n = {
|
|
609
|
+
appearance: "success",
|
|
610
|
+
message: "Success",
|
|
611
|
+
timeoutMilliseconds: 3e3
|
|
612
|
+
};
|
|
613
|
+
Yr.open({
|
|
614
|
+
...n,
|
|
615
|
+
...e
|
|
616
|
+
});
|
|
617
|
+
}
|
|
554
618
|
};
|
|
555
619
|
}
|
|
556
620
|
const ue = {
|
|
557
621
|
useAxios: At,
|
|
558
|
-
useDebouncedFilter:
|
|
559
|
-
useDeleteUrlBuilder:
|
|
560
|
-
useErrors:
|
|
561
|
-
|
|
622
|
+
useDebouncedFilter: Br,
|
|
623
|
+
useDeleteUrlBuilder: Pr,
|
|
624
|
+
useErrors: Lr,
|
|
625
|
+
useExternalLinkCreator: qr,
|
|
626
|
+
useFetcher: Ur,
|
|
562
627
|
useFetchUrlBuilder: fn,
|
|
563
628
|
useHelpers: pn,
|
|
564
|
-
useStringHelpers:
|
|
629
|
+
useStringHelpers: Rr,
|
|
565
630
|
useI18n: St,
|
|
566
|
-
useGatewayFeatureSupported:
|
|
567
|
-
useTruncationDetector:
|
|
568
|
-
|
|
631
|
+
useGatewayFeatureSupported: Jr,
|
|
632
|
+
useTruncationDetector: Wr,
|
|
633
|
+
useToaster: Zr
|
|
634
|
+
}, Qr = {
|
|
569
635
|
fail: "Failed to copy id to clipboard",
|
|
570
636
|
success: {
|
|
571
637
|
prefix: "Successfully",
|
|
572
638
|
content: " copied to clipboard"
|
|
573
639
|
}
|
|
574
|
-
},
|
|
575
|
-
message:
|
|
576
|
-
iconTitle:
|
|
577
|
-
},
|
|
640
|
+
}, Xr = "Copy to clipboard", eo = {
|
|
641
|
+
message: Qr,
|
|
642
|
+
iconTitle: Xr
|
|
643
|
+
}, to = "kong-ui-copy-uuid-notify", no = { class: "kong-ui-copy-uuid" }, ro = ["onClick"], Gt = 15, oo = /* @__PURE__ */ ae({
|
|
578
644
|
__name: "CopyUuid",
|
|
579
645
|
props: {
|
|
580
646
|
uuid: {
|
|
@@ -618,19 +684,19 @@ const ue = {
|
|
|
618
684
|
},
|
|
619
685
|
emits: ["success", "error"],
|
|
620
686
|
setup(e, { emit: n }) {
|
|
621
|
-
const t = e, { t: r } = It("en-us",
|
|
622
|
-
}), a =
|
|
687
|
+
const t = e, { t: r } = It("en-us", eo), o = t.notify || gr(to, () => {
|
|
688
|
+
}), a = j(() => t.idTooltip ? {
|
|
623
689
|
label: t.idTooltip,
|
|
624
690
|
positionFixed: !0,
|
|
625
691
|
placement: "bottomStart"
|
|
626
692
|
} : {
|
|
627
693
|
title: t.uuid
|
|
628
|
-
}), i =
|
|
694
|
+
}), i = j(() => !!(t.tooltip && t.successTooltip)), s = E(t.tooltip), l = j(() => t.tooltip ? {
|
|
629
695
|
label: s.value,
|
|
630
696
|
positionFixed: !0,
|
|
631
697
|
maxWidth: "500px",
|
|
632
698
|
placement: "bottomStart"
|
|
633
|
-
} : {}), c =
|
|
699
|
+
} : {}), c = j(() => {
|
|
634
700
|
var m;
|
|
635
701
|
return t.format === "redacted" ? "*****" : t.format === "deleted" ? `*${(m = t.uuid) == null ? void 0 : m.substring(0, 5)}` : t.uuid;
|
|
636
702
|
}), d = (m) => {
|
|
@@ -653,23 +719,23 @@ const ue = {
|
|
|
653
719
|
}), i.value ? d(t.successTooltip) : n("success", t.uuid);
|
|
654
720
|
};
|
|
655
721
|
return (m, f) => {
|
|
656
|
-
const I =
|
|
657
|
-
return g(),
|
|
658
|
-
e.format !== "hidden" ? (g(), V(
|
|
722
|
+
const I = q("KIcon"), v = q("KClipboardProvider");
|
|
723
|
+
return g(), M("div", no, [
|
|
724
|
+
e.format !== "hidden" ? (g(), V(He(e.idTooltip ? "KTooltip" : "div"), ht({ key: 0 }, a.value, { "data-testid": "copy-id" }), {
|
|
659
725
|
default: h(() => [
|
|
660
726
|
R("div", {
|
|
661
|
-
class:
|
|
727
|
+
class: Fe([
|
|
662
728
|
"uuid-container",
|
|
663
729
|
e.truncated ? "truncated-uuid" : null,
|
|
664
730
|
e.useMono ? "mono" : null
|
|
665
731
|
])
|
|
666
|
-
},
|
|
732
|
+
}, K(c.value), 3)
|
|
667
733
|
]),
|
|
668
734
|
_: 1
|
|
669
735
|
}, 16)) : G("", !0),
|
|
670
|
-
(g(), V(
|
|
736
|
+
(g(), V(He(e.tooltip ? "KTooltip" : "div"), ht(l.value, { class: "uuid-icon-wrapper" }), {
|
|
671
737
|
default: h(() => [
|
|
672
|
-
|
|
738
|
+
F(v, null, {
|
|
673
739
|
default: h(({ copyToClipboard: p }) => [
|
|
674
740
|
R("span", {
|
|
675
741
|
"data-testid": "copy-to-clipboard",
|
|
@@ -677,7 +743,7 @@ const ue = {
|
|
|
677
743
|
tabindex: "0",
|
|
678
744
|
onClick: rt((S) => u(p), ["stop"])
|
|
679
745
|
}, [
|
|
680
|
-
|
|
746
|
+
F(I, {
|
|
681
747
|
class: "uuid-icon",
|
|
682
748
|
color: e.iconColor,
|
|
683
749
|
"hide-title": !!e.tooltip || void 0,
|
|
@@ -685,7 +751,7 @@ const ue = {
|
|
|
685
751
|
size: "16",
|
|
686
752
|
title: y(r)("iconTitle")
|
|
687
753
|
}, null, 8, ["color", "hide-title", "title"])
|
|
688
|
-
], 8,
|
|
754
|
+
], 8, ro)
|
|
689
755
|
]),
|
|
690
756
|
_: 1
|
|
691
757
|
})
|
|
@@ -695,15 +761,15 @@ const ue = {
|
|
|
695
761
|
]);
|
|
696
762
|
};
|
|
697
763
|
}
|
|
698
|
-
}),
|
|
764
|
+
}), ao = (e, n) => {
|
|
699
765
|
const t = e.__vccOpts || e;
|
|
700
766
|
for (const [r, o] of n)
|
|
701
767
|
t[r] = o;
|
|
702
768
|
return t;
|
|
703
|
-
}, yn = /* @__PURE__ */
|
|
769
|
+
}, yn = /* @__PURE__ */ ao(oo, [["__scopeId", "data-v-a2ebe0bb"]]), io = {
|
|
704
770
|
key: 0,
|
|
705
771
|
class: "config-card-fieldset-title"
|
|
706
|
-
},
|
|
772
|
+
}, so = /* @__PURE__ */ ae({
|
|
707
773
|
__name: "JsonCardItem",
|
|
708
774
|
props: {
|
|
709
775
|
item: {
|
|
@@ -720,21 +786,21 @@ const ue = {
|
|
|
720
786
|
}
|
|
721
787
|
},
|
|
722
788
|
setup(e) {
|
|
723
|
-
const n = e, { i18n: { t } } = ue.useI18n(), { convertKeyToTitle: r } = ue.useStringHelpers(), o =
|
|
789
|
+
const n = e, { i18n: { t } } = ue.useI18n(), { convertKeyToTitle: r } = ue.useStringHelpers(), o = j(() => n.item.key ?? "json-array-item"), a = j(() => n.item.value ?? n.item), i = j(() => {
|
|
724
790
|
const l = JSON.parse(JSON.stringify(a.value));
|
|
725
791
|
return n.isArrayItem && delete l.name, l;
|
|
726
|
-
}), s =
|
|
792
|
+
}), s = j(() => {
|
|
727
793
|
var l;
|
|
728
794
|
return n.isArrayItem ? (l = a.value) != null && l.name ? r(a.value.name, "_") : t("baseConfigCard.general.entryTitle", { index: n.index }) : "";
|
|
729
795
|
});
|
|
730
|
-
return (l, c) => (g(), V(
|
|
731
|
-
class:
|
|
796
|
+
return (l, c) => (g(), V(He(e.isArrayItem ? "fieldset" : "div"), {
|
|
797
|
+
class: Fe(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
|
|
732
798
|
}, {
|
|
733
799
|
default: h(() => [
|
|
734
|
-
e.isArrayItem ? (g(),
|
|
735
|
-
R("b", null,
|
|
800
|
+
e.isArrayItem ? (g(), M("legend", io, [
|
|
801
|
+
R("b", null, K(s.value), 1)
|
|
736
802
|
])) : G("", !0),
|
|
737
|
-
(g(!0),
|
|
803
|
+
(g(!0), M(ve, null, ye(Object.keys(i.value), (d, u) => (g(), V(xt, {
|
|
738
804
|
key: `${o.value}-property-${u}`,
|
|
739
805
|
item: {
|
|
740
806
|
key: d,
|
|
@@ -746,12 +812,12 @@ const ue = {
|
|
|
746
812
|
_: 1
|
|
747
813
|
}, 8, ["class"]));
|
|
748
814
|
}
|
|
749
|
-
}),
|
|
815
|
+
}), Ce = (e, n) => {
|
|
750
816
|
const t = e.__vccOpts || e;
|
|
751
817
|
for (const [r, o] of n)
|
|
752
818
|
t[r] = o;
|
|
753
819
|
return t;
|
|
754
|
-
}, hn = /* @__PURE__ */
|
|
820
|
+
}, hn = /* @__PURE__ */ Ce(so, [["__scopeId", "data-v-68ca83ec"]]), lo = /* @__PURE__ */ ae({
|
|
755
821
|
__name: "InternalLinkItem",
|
|
756
822
|
props: {
|
|
757
823
|
item: {
|
|
@@ -763,22 +829,22 @@ const ue = {
|
|
|
763
829
|
setup(e) {
|
|
764
830
|
const { i18n: { t: n } } = ue.useI18n();
|
|
765
831
|
return (t, r) => {
|
|
766
|
-
const o =
|
|
767
|
-
return g(),
|
|
768
|
-
|
|
832
|
+
const o = q("KButton");
|
|
833
|
+
return g(), M("div", null, [
|
|
834
|
+
F(o, {
|
|
769
835
|
appearance: "btn-link",
|
|
770
836
|
class: "navigation-button",
|
|
771
837
|
onClick: r[0] || (r[0] = (a) => t.$emit("navigation-click", e.item))
|
|
772
838
|
}, {
|
|
773
839
|
default: h(() => [
|
|
774
|
-
Z(
|
|
840
|
+
Z(K(e.item.value || y(n)("baseConfigCard.commonFields.link")), 1)
|
|
775
841
|
]),
|
|
776
842
|
_: 1
|
|
777
843
|
})
|
|
778
844
|
]);
|
|
779
845
|
};
|
|
780
846
|
}
|
|
781
|
-
}),
|
|
847
|
+
}), uo = /* @__PURE__ */ Ce(lo, [["__scopeId", "data-v-7410504d"]]), co = /* @__PURE__ */ ae({
|
|
782
848
|
__name: "StatusBadge",
|
|
783
849
|
props: {
|
|
784
850
|
status: {
|
|
@@ -789,22 +855,22 @@ const ue = {
|
|
|
789
855
|
setup(e) {
|
|
790
856
|
const { i18n: { t: n } } = ue.useI18n();
|
|
791
857
|
return (t, r) => {
|
|
792
|
-
const o =
|
|
858
|
+
const o = q("KBadge");
|
|
793
859
|
return g(), V(o, {
|
|
794
860
|
appearance: e.status ? "success" : "neutral"
|
|
795
861
|
}, {
|
|
796
862
|
default: h(() => [
|
|
797
|
-
Z(
|
|
863
|
+
Z(K(e.status ? y(n)("baseConfigCard.statusBadge.enabledLabel") : y(n)("baseConfigCard.statusBadge.disabledLabel")), 1)
|
|
798
864
|
]),
|
|
799
865
|
_: 1
|
|
800
866
|
}, 8, ["appearance"]);
|
|
801
867
|
};
|
|
802
868
|
}
|
|
803
|
-
}),
|
|
869
|
+
}), po = "#0044f4", fo = "#e0e4ea", mo = "#3a3f51", go = "1px", yo = "20px", ho = { class: "config-card-details-row" }, vo = ["data-testid"], bo = ["data-testid"], ko = ["data-testid"], Co = ["data-testid"], _o = { key: 1 }, wo = ["data-testid"], Io = ["data-testid"], Ao = ["data-testid"], So = ["data-testid"], xo = {
|
|
804
870
|
name: "ConfigCardItem",
|
|
805
|
-
components: { CopyUuid: yn, JsonCardItem: hn, StatusBadge:
|
|
806
|
-
},
|
|
807
|
-
...
|
|
871
|
+
components: { CopyUuid: yn, JsonCardItem: hn, StatusBadge: co, InternalLinkItem: uo }
|
|
872
|
+
}, To = /* @__PURE__ */ ae({
|
|
873
|
+
...xo,
|
|
808
874
|
props: {
|
|
809
875
|
item: {
|
|
810
876
|
type: Object,
|
|
@@ -825,12 +891,12 @@ const ue = {
|
|
|
825
891
|
setup(e, { emit: n }) {
|
|
826
892
|
const t = e;
|
|
827
893
|
ur((f) => ({
|
|
828
|
-
"1df60db4": c.value ? "none" : `solid ${y(
|
|
894
|
+
"1df60db4": c.value ? "none" : `solid ${y(go)} ${y(fo)}`,
|
|
829
895
|
"21d1d34e": l.value && i.value ? "block" : "flex",
|
|
830
896
|
"4d3dc7e7": l.value && i.value ? "100%" : t.slim ? "50%" : "25%",
|
|
831
897
|
"4d400dc2": l.value && i.value ? "100%" : t.slim ? "50%" : "75%"
|
|
832
898
|
}));
|
|
833
|
-
const r = ut(), { i18n: { t: o, formatUnixTimeStamp: a } } = ue.useI18n(), i =
|
|
899
|
+
const r = ut(), { i18n: { t: o, formatUnixTimeStamp: a } } = ue.useI18n(), i = j(() => t.item.value !== void 0 && t.item.value !== null && t.item.value !== ""), s = j(() => !!(t.item.tooltip || r["label-tooltip"])), l = j(() => t.item.type === te.Json || t.item.type === te.JsonArray), c = j(() => t.item.type === te.JsonArray), d = j(() => {
|
|
834
900
|
switch (t.item.type) {
|
|
835
901
|
case te.ID:
|
|
836
902
|
return {
|
|
@@ -956,18 +1022,18 @@ const ue = {
|
|
|
956
1022
|
text: t.item.value
|
|
957
1023
|
};
|
|
958
1024
|
}
|
|
959
|
-
}), u =
|
|
1025
|
+
}), u = E(), { isTruncated: m } = ue.useTruncationDetector(u);
|
|
960
1026
|
return (f, I) => {
|
|
961
|
-
const v =
|
|
962
|
-
return g(),
|
|
1027
|
+
const v = q("KLabel"), p = q("KBadge"), S = q("KMethodBadge"), b = q("KTooltip");
|
|
1028
|
+
return g(), M("div", ho, [
|
|
963
1029
|
R("div", {
|
|
964
1030
|
class: "config-card-details-label",
|
|
965
1031
|
"data-testid": `${e.item.key}-label`
|
|
966
1032
|
}, [
|
|
967
1033
|
Y(f.$slots, "label", { item: e.item }, () => [
|
|
968
|
-
|
|
1034
|
+
F(v, { "tooltip-attributes": { maxWidth: "500px" } }, Te({
|
|
969
1035
|
default: h(() => [
|
|
970
|
-
Z(
|
|
1036
|
+
Z(K(e.item.label) + " ", 1)
|
|
971
1037
|
]),
|
|
972
1038
|
_: 2
|
|
973
1039
|
}, [
|
|
@@ -978,15 +1044,15 @@ const ue = {
|
|
|
978
1044
|
"data-testid": `${e.item.key}-label-tooltip`
|
|
979
1045
|
}, [
|
|
980
1046
|
Y(f.$slots, "label-tooltip", {}, () => [
|
|
981
|
-
Z(
|
|
1047
|
+
Z(K(e.item.tooltip), 1)
|
|
982
1048
|
], !0)
|
|
983
|
-
], 8,
|
|
1049
|
+
], 8, bo)
|
|
984
1050
|
]),
|
|
985
1051
|
key: "0"
|
|
986
1052
|
} : void 0
|
|
987
1053
|
]), 1024)
|
|
988
1054
|
], !0)
|
|
989
|
-
], 8,
|
|
1055
|
+
], 8, vo),
|
|
990
1056
|
R("div", {
|
|
991
1057
|
class: "config-card-details-value",
|
|
992
1058
|
"data-testid": `${e.item.key}-property-value`
|
|
@@ -994,65 +1060,65 @@ const ue = {
|
|
|
994
1060
|
Y(f.$slots, e.item.key, {
|
|
995
1061
|
rowValue: e.item.value
|
|
996
1062
|
}, () => [
|
|
997
|
-
i.value ? (g(),
|
|
998
|
-
(g(), V(
|
|
1063
|
+
i.value ? (g(), M("div", _o, [
|
|
1064
|
+
(g(), V(He(d.value.tag), cr(dr(d.value.attrs)), {
|
|
999
1065
|
default: h(() => [
|
|
1000
|
-
d.value.additionalComponent === "KBadge" ? (g(),
|
|
1066
|
+
d.value.additionalComponent === "KBadge" ? (g(), M("div", {
|
|
1001
1067
|
key: 0,
|
|
1002
1068
|
"data-testid": `${e.item.key}-badge-tags`
|
|
1003
1069
|
}, [
|
|
1004
|
-
(g(!0),
|
|
1070
|
+
(g(!0), M(ve, null, ye(e.item.value, (k, A) => (g(), V(p, {
|
|
1005
1071
|
key: `${e.item.key}-badge-tag-${A}`,
|
|
1006
1072
|
class: "config-badge",
|
|
1007
1073
|
"data-testid": `${e.item.key}-badge-tag-${A}`,
|
|
1008
|
-
"truncation-tooltip":
|
|
1074
|
+
"truncation-tooltip": k
|
|
1009
1075
|
}, {
|
|
1010
1076
|
default: h(() => [
|
|
1011
|
-
Z(
|
|
1077
|
+
Z(K(k), 1)
|
|
1012
1078
|
]),
|
|
1013
1079
|
_: 2
|
|
1014
1080
|
}, 1032, ["data-testid", "truncation-tooltip"]))), 128))
|
|
1015
|
-
], 8,
|
|
1016
|
-
d.value.additionalComponent === "CopyUuid" ? (g(),
|
|
1081
|
+
], 8, wo)) : G("", !0),
|
|
1082
|
+
d.value.additionalComponent === "CopyUuid" ? (g(), M("div", {
|
|
1017
1083
|
key: 1,
|
|
1018
1084
|
class: "copy-uuid-array",
|
|
1019
1085
|
"data-testid": `${e.item.key}-copy-uuid-array`
|
|
1020
1086
|
}, [
|
|
1021
|
-
(g(!0),
|
|
1087
|
+
(g(!0), M(ve, null, ye(e.item.value, (k, A) => (g(), V(y(yn), ht(d.value.childAttrs, {
|
|
1022
1088
|
key: `${e.item.key}-copy-uuid-${A}`,
|
|
1023
1089
|
"data-testid": `${e.item.key}-copy-uuid-${A}`,
|
|
1024
|
-
uuid:
|
|
1090
|
+
uuid: k
|
|
1025
1091
|
}), null, 16, ["data-testid", "uuid"]))), 128))
|
|
1026
|
-
], 8,
|
|
1092
|
+
], 8, Io)) : d.value.additionalComponent === "KMethodBadge" ? (g(), M("div", {
|
|
1027
1093
|
key: 2,
|
|
1028
1094
|
class: "method-badge-array",
|
|
1029
1095
|
"data-testid": `${e.item.key}-badge-methods`
|
|
1030
1096
|
}, [
|
|
1031
|
-
(g(!0),
|
|
1097
|
+
(g(!0), M(ve, null, ye(e.item.value, (k, A) => (g(), V(S, {
|
|
1032
1098
|
key: `${e.item.key}-badge-method-${A}`,
|
|
1033
1099
|
class: "config-badge",
|
|
1034
1100
|
"data-testid": `${e.item.key}-badge-method-${A}`,
|
|
1035
1101
|
"is-rounded": "",
|
|
1036
|
-
label:
|
|
1037
|
-
method: y(
|
|
1102
|
+
label: k,
|
|
1103
|
+
method: y(kr).includes(k.toLowerCase()) ? k.toLowerCase() : "custom"
|
|
1038
1104
|
}, {
|
|
1039
1105
|
default: h(() => [
|
|
1040
|
-
Z(
|
|
1106
|
+
Z(K(k), 1)
|
|
1041
1107
|
]),
|
|
1042
1108
|
_: 2
|
|
1043
1109
|
}, 1032, ["data-testid", "label", "method"]))), 128))
|
|
1044
|
-
], 8,
|
|
1045
|
-
d.value.additionalComponent === "JsonCardItem" ? (g(),
|
|
1110
|
+
], 8, Ao)) : G("", !0),
|
|
1111
|
+
d.value.additionalComponent === "JsonCardItem" ? (g(), M("div", {
|
|
1046
1112
|
key: 3,
|
|
1047
1113
|
"data-testid": `${t.item.key}-json-array-content`
|
|
1048
1114
|
}, [
|
|
1049
|
-
(g(!0),
|
|
1115
|
+
(g(!0), M(ve, null, ye(e.item.value, (k, A) => (g(), V(hn, {
|
|
1050
1116
|
key: `json-array-item-${A}`,
|
|
1051
1117
|
index: A,
|
|
1052
1118
|
"is-array-item": "",
|
|
1053
|
-
item:
|
|
1119
|
+
item: k
|
|
1054
1120
|
}, null, 8, ["index", "item"]))), 128))
|
|
1055
|
-
], 8,
|
|
1121
|
+
], 8, So)) : (g(), V(b, {
|
|
1056
1122
|
key: 4,
|
|
1057
1123
|
label: y(m) ? e.item.value : ""
|
|
1058
1124
|
}, {
|
|
@@ -1060,57 +1126,57 @@ const ue = {
|
|
|
1060
1126
|
R("span", {
|
|
1061
1127
|
ref_key: "textContent",
|
|
1062
1128
|
ref: u,
|
|
1063
|
-
class:
|
|
1064
|
-
},
|
|
1129
|
+
class: Fe(["attrs-data-text", { truncated: e.truncated }])
|
|
1130
|
+
}, K(d.value.text), 3)
|
|
1065
1131
|
]),
|
|
1066
1132
|
_: 1
|
|
1067
1133
|
}, 8, ["label"]))
|
|
1068
1134
|
]),
|
|
1069
1135
|
_: 1
|
|
1070
1136
|
}, 16))
|
|
1071
|
-
])) : (g(),
|
|
1137
|
+
])) : (g(), M("div", {
|
|
1072
1138
|
key: 0,
|
|
1073
1139
|
"data-testid": `${e.item.key}-no-value`
|
|
1074
|
-
}, " – ", 8,
|
|
1140
|
+
}, " – ", 8, Co))
|
|
1075
1141
|
], !0)
|
|
1076
|
-
], 8,
|
|
1142
|
+
], 8, ko)
|
|
1077
1143
|
]);
|
|
1078
1144
|
};
|
|
1079
1145
|
}
|
|
1080
|
-
}), xt = /* @__PURE__ */
|
|
1146
|
+
}), xt = /* @__PURE__ */ Ce(To, [["__scopeId", "data-v-307ab96d"]]);
|
|
1081
1147
|
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
|
|
1082
1148
|
function vn(e) {
|
|
1083
1149
|
return typeof e > "u" || e === null;
|
|
1084
1150
|
}
|
|
1085
|
-
function
|
|
1151
|
+
function $o(e) {
|
|
1086
1152
|
return typeof e == "object" && e !== null;
|
|
1087
1153
|
}
|
|
1088
|
-
function
|
|
1154
|
+
function jo(e) {
|
|
1089
1155
|
return Array.isArray(e) ? e : vn(e) ? [] : [e];
|
|
1090
1156
|
}
|
|
1091
|
-
function
|
|
1157
|
+
function Mo(e, n) {
|
|
1092
1158
|
var t, r, o, a;
|
|
1093
1159
|
if (n)
|
|
1094
1160
|
for (a = Object.keys(n), t = 0, r = a.length; t < r; t += 1)
|
|
1095
1161
|
o = a[t], e[o] = n[o];
|
|
1096
1162
|
return e;
|
|
1097
1163
|
}
|
|
1098
|
-
function
|
|
1164
|
+
function Oo(e, n) {
|
|
1099
1165
|
var t = "", r;
|
|
1100
1166
|
for (r = 0; r < n; r += 1)
|
|
1101
1167
|
t += e;
|
|
1102
1168
|
return t;
|
|
1103
1169
|
}
|
|
1104
|
-
function
|
|
1170
|
+
function Eo(e) {
|
|
1105
1171
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
1106
1172
|
}
|
|
1107
|
-
var
|
|
1108
|
-
isNothing:
|
|
1109
|
-
isObject:
|
|
1110
|
-
toArray:
|
|
1111
|
-
repeat:
|
|
1112
|
-
isNegativeZero:
|
|
1113
|
-
extend:
|
|
1173
|
+
var Ko = vn, Fo = $o, No = jo, Bo = Oo, Po = Eo, Lo = Mo, se = {
|
|
1174
|
+
isNothing: Ko,
|
|
1175
|
+
isObject: Fo,
|
|
1176
|
+
toArray: No,
|
|
1177
|
+
repeat: Bo,
|
|
1178
|
+
isNegativeZero: Po,
|
|
1179
|
+
extend: Lo
|
|
1114
1180
|
};
|
|
1115
1181
|
function bn(e, n) {
|
|
1116
1182
|
var t = "", r = e.reason || "(unknown reason)";
|
|
@@ -1138,7 +1204,7 @@ function mt(e, n, t, r, o) {
|
|
|
1138
1204
|
function gt(e, n) {
|
|
1139
1205
|
return se.repeat(" ", n - e.length) + e;
|
|
1140
1206
|
}
|
|
1141
|
-
function
|
|
1207
|
+
function qo(e, n) {
|
|
1142
1208
|
if (n = Object.create(n || null), !e.buffer)
|
|
1143
1209
|
return null;
|
|
1144
1210
|
n.maxLength || (n.maxLength = 79), typeof n.indent != "number" && (n.indent = 1), typeof n.linesBefore != "number" && (n.linesBefore = 3), typeof n.linesAfter != "number" && (n.linesAfter = 2);
|
|
@@ -1168,7 +1234,7 @@ function Ko(e, n) {
|
|
|
1168
1234
|
`;
|
|
1169
1235
|
return s.replace(/\n$/, "");
|
|
1170
1236
|
}
|
|
1171
|
-
var
|
|
1237
|
+
var Uo = qo, Ro = [
|
|
1172
1238
|
"kind",
|
|
1173
1239
|
"multi",
|
|
1174
1240
|
"resolve",
|
|
@@ -1179,12 +1245,12 @@ var No = Ko, Bo = [
|
|
|
1179
1245
|
"representName",
|
|
1180
1246
|
"defaultStyle",
|
|
1181
1247
|
"styleAliases"
|
|
1182
|
-
],
|
|
1248
|
+
], Vo = [
|
|
1183
1249
|
"scalar",
|
|
1184
1250
|
"sequence",
|
|
1185
1251
|
"mapping"
|
|
1186
1252
|
];
|
|
1187
|
-
function
|
|
1253
|
+
function Do(e) {
|
|
1188
1254
|
var n = {};
|
|
1189
1255
|
return e !== null && Object.keys(e).forEach(function(t) {
|
|
1190
1256
|
e[t].forEach(function(r) {
|
|
@@ -1192,19 +1258,19 @@ function Lo(e) {
|
|
|
1192
1258
|
});
|
|
1193
1259
|
}), n;
|
|
1194
1260
|
}
|
|
1195
|
-
function
|
|
1261
|
+
function Go(e, n) {
|
|
1196
1262
|
if (n = n || {}, Object.keys(n).forEach(function(t) {
|
|
1197
|
-
if (
|
|
1263
|
+
if (Ro.indexOf(t) === -1)
|
|
1198
1264
|
throw new me('Unknown option "' + t + '" is met in definition of "' + e + '" YAML type.');
|
|
1199
1265
|
}), this.options = n, this.tag = e, this.kind = n.kind || null, this.resolve = n.resolve || function() {
|
|
1200
1266
|
return !0;
|
|
1201
1267
|
}, this.construct = n.construct || function(t) {
|
|
1202
1268
|
return t;
|
|
1203
|
-
}, this.instanceOf = n.instanceOf || null, this.predicate = n.predicate || null, this.represent = n.represent || null, this.representName = n.representName || null, this.defaultStyle = n.defaultStyle || null, this.multi = n.multi || !1, this.styleAliases =
|
|
1269
|
+
}, this.instanceOf = n.instanceOf || null, this.predicate = n.predicate || null, this.represent = n.represent || null, this.representName = n.representName || null, this.defaultStyle = n.defaultStyle || null, this.multi = n.multi || !1, this.styleAliases = Do(n.styleAliases || null), Vo.indexOf(this.kind) === -1)
|
|
1204
1270
|
throw new me('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
|
|
1205
1271
|
}
|
|
1206
|
-
var de =
|
|
1207
|
-
function
|
|
1272
|
+
var de = Go;
|
|
1273
|
+
function zt(e, n) {
|
|
1208
1274
|
var t = [];
|
|
1209
1275
|
return e[n].forEach(function(r) {
|
|
1210
1276
|
var o = t.length;
|
|
@@ -1213,7 +1279,7 @@ function Ht(e, n) {
|
|
|
1213
1279
|
}), t[o] = r;
|
|
1214
1280
|
}), t;
|
|
1215
1281
|
}
|
|
1216
|
-
function
|
|
1282
|
+
function zo() {
|
|
1217
1283
|
var e = {
|
|
1218
1284
|
scalar: {},
|
|
1219
1285
|
sequence: {},
|
|
@@ -1258,9 +1324,9 @@ vt.prototype.extend = function(e) {
|
|
|
1258
1324
|
throw new me("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1259
1325
|
});
|
|
1260
1326
|
var r = Object.create(vt.prototype);
|
|
1261
|
-
return r.implicit = (this.implicit || []).concat(n), r.explicit = (this.explicit || []).concat(t), r.compiledImplicit =
|
|
1327
|
+
return r.implicit = (this.implicit || []).concat(n), r.explicit = (this.explicit || []).concat(t), r.compiledImplicit = zt(r, "implicit"), r.compiledExplicit = zt(r, "explicit"), r.compiledTypeMap = zo(r.compiledImplicit, r.compiledExplicit), r;
|
|
1262
1328
|
};
|
|
1263
|
-
var
|
|
1329
|
+
var kn = vt, Cn = new de("tag:yaml.org,2002:str", {
|
|
1264
1330
|
kind: "scalar",
|
|
1265
1331
|
construct: function(e) {
|
|
1266
1332
|
return e !== null ? e : "";
|
|
@@ -1275,30 +1341,30 @@ var Cn = vt, kn = new de("tag:yaml.org,2002:str", {
|
|
|
1275
1341
|
construct: function(e) {
|
|
1276
1342
|
return e !== null ? e : {};
|
|
1277
1343
|
}
|
|
1278
|
-
}), In = new
|
|
1344
|
+
}), In = new kn({
|
|
1279
1345
|
explicit: [
|
|
1280
|
-
|
|
1346
|
+
Cn,
|
|
1281
1347
|
_n,
|
|
1282
1348
|
wn
|
|
1283
1349
|
]
|
|
1284
1350
|
});
|
|
1285
|
-
function
|
|
1351
|
+
function Ho(e) {
|
|
1286
1352
|
if (e === null)
|
|
1287
1353
|
return !0;
|
|
1288
1354
|
var n = e.length;
|
|
1289
1355
|
return n === 1 && e === "~" || n === 4 && (e === "null" || e === "Null" || e === "NULL");
|
|
1290
1356
|
}
|
|
1291
|
-
function
|
|
1357
|
+
function Jo() {
|
|
1292
1358
|
return null;
|
|
1293
1359
|
}
|
|
1294
|
-
function
|
|
1360
|
+
function Wo(e) {
|
|
1295
1361
|
return e === null;
|
|
1296
1362
|
}
|
|
1297
1363
|
var An = new de("tag:yaml.org,2002:null", {
|
|
1298
1364
|
kind: "scalar",
|
|
1299
|
-
resolve:
|
|
1300
|
-
construct:
|
|
1301
|
-
predicate:
|
|
1365
|
+
resolve: Ho,
|
|
1366
|
+
construct: Jo,
|
|
1367
|
+
predicate: Wo,
|
|
1302
1368
|
represent: {
|
|
1303
1369
|
canonical: function() {
|
|
1304
1370
|
return "~";
|
|
@@ -1318,23 +1384,23 @@ var An = new de("tag:yaml.org,2002:null", {
|
|
|
1318
1384
|
},
|
|
1319
1385
|
defaultStyle: "lowercase"
|
|
1320
1386
|
});
|
|
1321
|
-
function
|
|
1387
|
+
function Yo(e) {
|
|
1322
1388
|
if (e === null)
|
|
1323
1389
|
return !1;
|
|
1324
1390
|
var n = e.length;
|
|
1325
1391
|
return n === 4 && (e === "true" || e === "True" || e === "TRUE") || n === 5 && (e === "false" || e === "False" || e === "FALSE");
|
|
1326
1392
|
}
|
|
1327
|
-
function
|
|
1393
|
+
function Zo(e) {
|
|
1328
1394
|
return e === "true" || e === "True" || e === "TRUE";
|
|
1329
1395
|
}
|
|
1330
|
-
function
|
|
1396
|
+
function Qo(e) {
|
|
1331
1397
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
1332
1398
|
}
|
|
1333
1399
|
var Sn = new de("tag:yaml.org,2002:bool", {
|
|
1334
1400
|
kind: "scalar",
|
|
1335
|
-
resolve:
|
|
1336
|
-
construct:
|
|
1337
|
-
predicate:
|
|
1401
|
+
resolve: Yo,
|
|
1402
|
+
construct: Zo,
|
|
1403
|
+
predicate: Qo,
|
|
1338
1404
|
represent: {
|
|
1339
1405
|
lowercase: function(e) {
|
|
1340
1406
|
return e ? "true" : "false";
|
|
@@ -1348,16 +1414,16 @@ var Sn = new de("tag:yaml.org,2002:bool", {
|
|
|
1348
1414
|
},
|
|
1349
1415
|
defaultStyle: "lowercase"
|
|
1350
1416
|
});
|
|
1351
|
-
function
|
|
1417
|
+
function Xo(e) {
|
|
1352
1418
|
return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
|
|
1353
1419
|
}
|
|
1354
|
-
function
|
|
1420
|
+
function ea(e) {
|
|
1355
1421
|
return 48 <= e && e <= 55;
|
|
1356
1422
|
}
|
|
1357
|
-
function
|
|
1423
|
+
function ta(e) {
|
|
1358
1424
|
return 48 <= e && e <= 57;
|
|
1359
1425
|
}
|
|
1360
|
-
function
|
|
1426
|
+
function na(e) {
|
|
1361
1427
|
if (e === null)
|
|
1362
1428
|
return !1;
|
|
1363
1429
|
var n = e.length, t = 0, r = !1, o;
|
|
@@ -1378,7 +1444,7 @@ function Zo(e) {
|
|
|
1378
1444
|
if (o === "x") {
|
|
1379
1445
|
for (t++; t < n; t++)
|
|
1380
1446
|
if (o = e[t], o !== "_") {
|
|
1381
|
-
if (!
|
|
1447
|
+
if (!Xo(e.charCodeAt(t)))
|
|
1382
1448
|
return !1;
|
|
1383
1449
|
r = !0;
|
|
1384
1450
|
}
|
|
@@ -1387,7 +1453,7 @@ function Zo(e) {
|
|
|
1387
1453
|
if (o === "o") {
|
|
1388
1454
|
for (t++; t < n; t++)
|
|
1389
1455
|
if (o = e[t], o !== "_") {
|
|
1390
|
-
if (!
|
|
1456
|
+
if (!ea(e.charCodeAt(t)))
|
|
1391
1457
|
return !1;
|
|
1392
1458
|
r = !0;
|
|
1393
1459
|
}
|
|
@@ -1398,13 +1464,13 @@ function Zo(e) {
|
|
|
1398
1464
|
return !1;
|
|
1399
1465
|
for (; t < n; t++)
|
|
1400
1466
|
if (o = e[t], o !== "_") {
|
|
1401
|
-
if (!
|
|
1467
|
+
if (!ta(e.charCodeAt(t)))
|
|
1402
1468
|
return !1;
|
|
1403
1469
|
r = !0;
|
|
1404
1470
|
}
|
|
1405
1471
|
return !(!r || o === "_");
|
|
1406
1472
|
}
|
|
1407
|
-
function
|
|
1473
|
+
function ra(e) {
|
|
1408
1474
|
var n = e, t = 1, r;
|
|
1409
1475
|
if (n.indexOf("_") !== -1 && (n = n.replace(/_/g, "")), r = n[0], (r === "-" || r === "+") && (r === "-" && (t = -1), n = n.slice(1), r = n[0]), n === "0")
|
|
1410
1476
|
return 0;
|
|
@@ -1418,14 +1484,14 @@ function Qo(e) {
|
|
|
1418
1484
|
}
|
|
1419
1485
|
return t * parseInt(n, 10);
|
|
1420
1486
|
}
|
|
1421
|
-
function
|
|
1487
|
+
function oa(e) {
|
|
1422
1488
|
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !se.isNegativeZero(e);
|
|
1423
1489
|
}
|
|
1424
1490
|
var xn = new de("tag:yaml.org,2002:int", {
|
|
1425
1491
|
kind: "scalar",
|
|
1426
|
-
resolve:
|
|
1427
|
-
construct:
|
|
1428
|
-
predicate:
|
|
1492
|
+
resolve: na,
|
|
1493
|
+
construct: ra,
|
|
1494
|
+
predicate: oa,
|
|
1429
1495
|
represent: {
|
|
1430
1496
|
binary: function(e) {
|
|
1431
1497
|
return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
|
|
@@ -1448,21 +1514,21 @@ var xn = new de("tag:yaml.org,2002:int", {
|
|
|
1448
1514
|
decimal: [10, "dec"],
|
|
1449
1515
|
hexadecimal: [16, "hex"]
|
|
1450
1516
|
}
|
|
1451
|
-
}),
|
|
1517
|
+
}), aa = new RegExp(
|
|
1452
1518
|
// 2.5e4, 2.5 and integers
|
|
1453
1519
|
"^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
|
|
1454
1520
|
);
|
|
1455
|
-
function
|
|
1456
|
-
return !(e === null || !
|
|
1521
|
+
function ia(e) {
|
|
1522
|
+
return !(e === null || !aa.test(e) || // Quick hack to not allow integers end with `_`
|
|
1457
1523
|
// Probably should update regexp & check speed
|
|
1458
1524
|
e[e.length - 1] === "_");
|
|
1459
1525
|
}
|
|
1460
|
-
function
|
|
1526
|
+
function sa(e) {
|
|
1461
1527
|
var n, t;
|
|
1462
1528
|
return n = e.replace(/_/g, "").toLowerCase(), t = n[0] === "-" ? -1 : 1, "+-".indexOf(n[0]) >= 0 && (n = n.slice(1)), n === ".inf" ? t === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : n === ".nan" ? NaN : t * parseFloat(n, 10);
|
|
1463
1529
|
}
|
|
1464
|
-
var
|
|
1465
|
-
function
|
|
1530
|
+
var la = /^[-+]?[0-9]+e/;
|
|
1531
|
+
function ua(e, n) {
|
|
1466
1532
|
var t;
|
|
1467
1533
|
if (isNaN(e))
|
|
1468
1534
|
switch (n) {
|
|
@@ -1493,17 +1559,17 @@ function oa(e, n) {
|
|
|
1493
1559
|
}
|
|
1494
1560
|
else if (se.isNegativeZero(e))
|
|
1495
1561
|
return "-0.0";
|
|
1496
|
-
return t = e.toString(10),
|
|
1562
|
+
return t = e.toString(10), la.test(t) ? t.replace("e", ".e") : t;
|
|
1497
1563
|
}
|
|
1498
|
-
function
|
|
1564
|
+
function ca(e) {
|
|
1499
1565
|
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || se.isNegativeZero(e));
|
|
1500
1566
|
}
|
|
1501
1567
|
var Tn = new de("tag:yaml.org,2002:float", {
|
|
1502
1568
|
kind: "scalar",
|
|
1503
|
-
resolve:
|
|
1504
|
-
construct:
|
|
1505
|
-
predicate:
|
|
1506
|
-
represent:
|
|
1569
|
+
resolve: ia,
|
|
1570
|
+
construct: sa,
|
|
1571
|
+
predicate: ca,
|
|
1572
|
+
represent: ua,
|
|
1507
1573
|
defaultStyle: "lowercase"
|
|
1508
1574
|
}), $n = In.extend({
|
|
1509
1575
|
implicit: [
|
|
@@ -1512,17 +1578,17 @@ var Tn = new de("tag:yaml.org,2002:float", {
|
|
|
1512
1578
|
xn,
|
|
1513
1579
|
Tn
|
|
1514
1580
|
]
|
|
1515
|
-
}),
|
|
1581
|
+
}), jn = $n, Mn = new RegExp(
|
|
1516
1582
|
"^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
|
|
1517
|
-
),
|
|
1583
|
+
), On = new RegExp(
|
|
1518
1584
|
"^([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]))?))?$"
|
|
1519
1585
|
);
|
|
1520
|
-
function
|
|
1521
|
-
return e === null ? !1 :
|
|
1586
|
+
function da(e) {
|
|
1587
|
+
return e === null ? !1 : Mn.exec(e) !== null || On.exec(e) !== null;
|
|
1522
1588
|
}
|
|
1523
|
-
function
|
|
1589
|
+
function pa(e) {
|
|
1524
1590
|
var n, t, r, o, a, i, s, l = 0, c = null, d, u, m;
|
|
1525
|
-
if (n =
|
|
1591
|
+
if (n = Mn.exec(e), n === null && (n = On.exec(e)), n === null)
|
|
1526
1592
|
throw new Error("Date resolve error");
|
|
1527
1593
|
if (t = +n[1], r = +n[2] - 1, o = +n[3], !n[4])
|
|
1528
1594
|
return new Date(Date.UTC(t, r, o));
|
|
@@ -1533,25 +1599,25 @@ function sa(e) {
|
|
|
1533
1599
|
}
|
|
1534
1600
|
return n[9] && (d = +n[10], u = +(n[11] || 0), c = (d * 60 + u) * 6e4, n[9] === "-" && (c = -c)), m = new Date(Date.UTC(t, r, o, a, i, s, l)), c && m.setTime(m.getTime() - c), m;
|
|
1535
1601
|
}
|
|
1536
|
-
function
|
|
1602
|
+
function fa(e) {
|
|
1537
1603
|
return e.toISOString();
|
|
1538
1604
|
}
|
|
1539
|
-
var
|
|
1605
|
+
var En = new de("tag:yaml.org,2002:timestamp", {
|
|
1540
1606
|
kind: "scalar",
|
|
1541
|
-
resolve:
|
|
1542
|
-
construct:
|
|
1607
|
+
resolve: da,
|
|
1608
|
+
construct: pa,
|
|
1543
1609
|
instanceOf: Date,
|
|
1544
|
-
represent:
|
|
1610
|
+
represent: fa
|
|
1545
1611
|
});
|
|
1546
|
-
function
|
|
1612
|
+
function ma(e) {
|
|
1547
1613
|
return e === "<<" || e === null;
|
|
1548
1614
|
}
|
|
1549
|
-
var
|
|
1615
|
+
var Kn = new de("tag:yaml.org,2002:merge", {
|
|
1550
1616
|
kind: "scalar",
|
|
1551
|
-
resolve:
|
|
1617
|
+
resolve: ma
|
|
1552
1618
|
}), Tt = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
1553
1619
|
\r`;
|
|
1554
|
-
function
|
|
1620
|
+
function ga(e) {
|
|
1555
1621
|
if (e === null)
|
|
1556
1622
|
return !1;
|
|
1557
1623
|
var n, t, r = 0, o = e.length, a = Tt;
|
|
@@ -1563,37 +1629,37 @@ function ca(e) {
|
|
|
1563
1629
|
}
|
|
1564
1630
|
return r % 8 === 0;
|
|
1565
1631
|
}
|
|
1566
|
-
function
|
|
1632
|
+
function ya(e) {
|
|
1567
1633
|
var n, t, r = e.replace(/[\r\n=]/g, ""), o = r.length, a = Tt, i = 0, s = [];
|
|
1568
1634
|
for (n = 0; n < o; n++)
|
|
1569
1635
|
n % 4 === 0 && n && (s.push(i >> 16 & 255), s.push(i >> 8 & 255), s.push(i & 255)), i = i << 6 | a.indexOf(r.charAt(n));
|
|
1570
1636
|
return t = o % 4 * 6, t === 0 ? (s.push(i >> 16 & 255), s.push(i >> 8 & 255), s.push(i & 255)) : t === 18 ? (s.push(i >> 10 & 255), s.push(i >> 2 & 255)) : t === 12 && s.push(i >> 4 & 255), new Uint8Array(s);
|
|
1571
1637
|
}
|
|
1572
|
-
function
|
|
1638
|
+
function ha(e) {
|
|
1573
1639
|
var n = "", t = 0, r, o, a = e.length, i = Tt;
|
|
1574
1640
|
for (r = 0; r < a; r++)
|
|
1575
1641
|
r % 3 === 0 && r && (n += i[t >> 18 & 63], n += i[t >> 12 & 63], n += i[t >> 6 & 63], n += i[t & 63]), t = (t << 8) + e[r];
|
|
1576
1642
|
return o = a % 3, o === 0 ? (n += i[t >> 18 & 63], n += i[t >> 12 & 63], n += i[t >> 6 & 63], n += i[t & 63]) : o === 2 ? (n += i[t >> 10 & 63], n += i[t >> 4 & 63], n += i[t << 2 & 63], n += i[64]) : o === 1 && (n += i[t >> 2 & 63], n += i[t << 4 & 63], n += i[64], n += i[64]), n;
|
|
1577
1643
|
}
|
|
1578
|
-
function
|
|
1644
|
+
function va(e) {
|
|
1579
1645
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
1580
1646
|
}
|
|
1581
|
-
var
|
|
1647
|
+
var Fn = new de("tag:yaml.org,2002:binary", {
|
|
1582
1648
|
kind: "scalar",
|
|
1583
|
-
resolve:
|
|
1584
|
-
construct:
|
|
1585
|
-
predicate:
|
|
1586
|
-
represent:
|
|
1587
|
-
}),
|
|
1588
|
-
function
|
|
1649
|
+
resolve: ga,
|
|
1650
|
+
construct: ya,
|
|
1651
|
+
predicate: va,
|
|
1652
|
+
represent: ha
|
|
1653
|
+
}), ba = Object.prototype.hasOwnProperty, ka = Object.prototype.toString;
|
|
1654
|
+
function Ca(e) {
|
|
1589
1655
|
if (e === null)
|
|
1590
1656
|
return !0;
|
|
1591
1657
|
var n = [], t, r, o, a, i, s = e;
|
|
1592
1658
|
for (t = 0, r = s.length; t < r; t += 1) {
|
|
1593
|
-
if (o = s[t], i = !1,
|
|
1659
|
+
if (o = s[t], i = !1, ka.call(o) !== "[object Object]")
|
|
1594
1660
|
return !1;
|
|
1595
1661
|
for (a in o)
|
|
1596
|
-
if (
|
|
1662
|
+
if (ba.call(o, a))
|
|
1597
1663
|
if (!i)
|
|
1598
1664
|
i = !0;
|
|
1599
1665
|
else
|
|
@@ -1607,26 +1673,26 @@ function ya(e) {
|
|
|
1607
1673
|
}
|
|
1608
1674
|
return !0;
|
|
1609
1675
|
}
|
|
1610
|
-
function
|
|
1676
|
+
function _a(e) {
|
|
1611
1677
|
return e !== null ? e : [];
|
|
1612
1678
|
}
|
|
1613
1679
|
var Nn = new de("tag:yaml.org,2002:omap", {
|
|
1614
1680
|
kind: "sequence",
|
|
1615
|
-
resolve:
|
|
1616
|
-
construct:
|
|
1617
|
-
}),
|
|
1618
|
-
function
|
|
1681
|
+
resolve: Ca,
|
|
1682
|
+
construct: _a
|
|
1683
|
+
}), wa = Object.prototype.toString;
|
|
1684
|
+
function Ia(e) {
|
|
1619
1685
|
if (e === null)
|
|
1620
1686
|
return !0;
|
|
1621
1687
|
var n, t, r, o, a, i = e;
|
|
1622
1688
|
for (a = new Array(i.length), n = 0, t = i.length; n < t; n += 1) {
|
|
1623
|
-
if (r = i[n],
|
|
1689
|
+
if (r = i[n], wa.call(r) !== "[object Object]" || (o = Object.keys(r), o.length !== 1))
|
|
1624
1690
|
return !1;
|
|
1625
1691
|
a[n] = [o[0], r[o[0]]];
|
|
1626
1692
|
}
|
|
1627
1693
|
return !0;
|
|
1628
1694
|
}
|
|
1629
|
-
function
|
|
1695
|
+
function Aa(e) {
|
|
1630
1696
|
if (e === null)
|
|
1631
1697
|
return [];
|
|
1632
1698
|
var n, t, r, o, a, i = e;
|
|
@@ -1636,67 +1702,67 @@ function Ca(e) {
|
|
|
1636
1702
|
}
|
|
1637
1703
|
var Bn = new de("tag:yaml.org,2002:pairs", {
|
|
1638
1704
|
kind: "sequence",
|
|
1639
|
-
resolve:
|
|
1640
|
-
construct:
|
|
1641
|
-
}),
|
|
1642
|
-
function
|
|
1705
|
+
resolve: Ia,
|
|
1706
|
+
construct: Aa
|
|
1707
|
+
}), Sa = Object.prototype.hasOwnProperty;
|
|
1708
|
+
function xa(e) {
|
|
1643
1709
|
if (e === null)
|
|
1644
1710
|
return !0;
|
|
1645
1711
|
var n, t = e;
|
|
1646
1712
|
for (n in t)
|
|
1647
|
-
if (
|
|
1713
|
+
if (Sa.call(t, n) && t[n] !== null)
|
|
1648
1714
|
return !1;
|
|
1649
1715
|
return !0;
|
|
1650
1716
|
}
|
|
1651
|
-
function
|
|
1717
|
+
function Ta(e) {
|
|
1652
1718
|
return e !== null ? e : {};
|
|
1653
1719
|
}
|
|
1654
1720
|
var Pn = new de("tag:yaml.org,2002:set", {
|
|
1655
1721
|
kind: "mapping",
|
|
1656
|
-
resolve:
|
|
1657
|
-
construct:
|
|
1658
|
-
}), $t =
|
|
1722
|
+
resolve: xa,
|
|
1723
|
+
construct: Ta
|
|
1724
|
+
}), $t = jn.extend({
|
|
1659
1725
|
implicit: [
|
|
1660
|
-
|
|
1661
|
-
|
|
1726
|
+
En,
|
|
1727
|
+
Kn
|
|
1662
1728
|
],
|
|
1663
1729
|
explicit: [
|
|
1664
|
-
|
|
1730
|
+
Fn,
|
|
1665
1731
|
Nn,
|
|
1666
1732
|
Bn,
|
|
1667
1733
|
Pn
|
|
1668
1734
|
]
|
|
1669
|
-
}),
|
|
1735
|
+
}), Me = Object.prototype.hasOwnProperty, ot = 1, Ln = 2, qn = 3, at = 4, yt = 1, $a = 2, Ht = 3, ja = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Ma = /[\x85\u2028\u2029]/, Oa = /[,\[\]\{\}]/, Un = /^(?:!|!!|![a-z\-]+!)$/i, Rn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
1670
1736
|
function Jt(e) {
|
|
1671
1737
|
return Object.prototype.toString.call(e);
|
|
1672
1738
|
}
|
|
1673
1739
|
function we(e) {
|
|
1674
1740
|
return e === 10 || e === 13;
|
|
1675
1741
|
}
|
|
1676
|
-
function
|
|
1742
|
+
function Ke(e) {
|
|
1677
1743
|
return e === 9 || e === 32;
|
|
1678
1744
|
}
|
|
1679
1745
|
function he(e) {
|
|
1680
1746
|
return e === 9 || e === 32 || e === 10 || e === 13;
|
|
1681
1747
|
}
|
|
1682
|
-
function
|
|
1748
|
+
function qe(e) {
|
|
1683
1749
|
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
1684
1750
|
}
|
|
1685
|
-
function
|
|
1751
|
+
function Ea(e) {
|
|
1686
1752
|
var n;
|
|
1687
1753
|
return 48 <= e && e <= 57 ? e - 48 : (n = e | 32, 97 <= n && n <= 102 ? n - 97 + 10 : -1);
|
|
1688
1754
|
}
|
|
1689
|
-
function
|
|
1755
|
+
function Ka(e) {
|
|
1690
1756
|
return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
|
|
1691
1757
|
}
|
|
1692
|
-
function
|
|
1758
|
+
function Fa(e) {
|
|
1693
1759
|
return 48 <= e && e <= 57 ? e - 48 : -1;
|
|
1694
1760
|
}
|
|
1695
1761
|
function Wt(e) {
|
|
1696
1762
|
return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
|
|
1697
1763
|
` : 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" : "";
|
|
1698
1764
|
}
|
|
1699
|
-
function
|
|
1765
|
+
function Na(e) {
|
|
1700
1766
|
return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode(
|
|
1701
1767
|
(e - 65536 >> 10) + 55296,
|
|
1702
1768
|
(e - 65536 & 1023) + 56320
|
|
@@ -1705,7 +1771,7 @@ function ja(e) {
|
|
|
1705
1771
|
var Vn = new Array(256), Dn = new Array(256);
|
|
1706
1772
|
for (var Pe = 0; Pe < 256; Pe++)
|
|
1707
1773
|
Vn[Pe] = Wt(Pe) ? 1 : 0, Dn[Pe] = Wt(Pe);
|
|
1708
|
-
function
|
|
1774
|
+
function Ba(e, n) {
|
|
1709
1775
|
this.input = e, this.filename = n.filename || null, this.schema = n.schema || $t, this.onWarning = n.onWarning || null, this.legacy = n.legacy || !1, this.json = n.json || !1, this.listener = n.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 = [];
|
|
1710
1776
|
}
|
|
1711
1777
|
function Gn(e, n) {
|
|
@@ -1717,7 +1783,7 @@ function Gn(e, n) {
|
|
|
1717
1783
|
line: e.line,
|
|
1718
1784
|
column: e.position - e.lineStart
|
|
1719
1785
|
};
|
|
1720
|
-
return t.snippet =
|
|
1786
|
+
return t.snippet = Uo(t), new me(n, t);
|
|
1721
1787
|
}
|
|
1722
1788
|
function $(e, n) {
|
|
1723
1789
|
throw Gn(e, n);
|
|
@@ -1732,7 +1798,7 @@ var Yt = {
|
|
|
1732
1798
|
},
|
|
1733
1799
|
TAG: function(e, n, t) {
|
|
1734
1800
|
var r, o;
|
|
1735
|
-
t.length !== 2 && $(e, "TAG directive accepts exactly two arguments"), r = t[0], o = t[1],
|
|
1801
|
+
t.length !== 2 && $(e, "TAG directive accepts exactly two arguments"), r = t[0], o = t[1], Un.test(r) || $(e, "ill-formed tag handle (first argument) of the TAG directive"), Me.call(e.tagMap, r) && $(e, 'there is a previously declared suffix for "' + r + '" tag handle'), Rn.test(o) || $(e, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
1736
1802
|
try {
|
|
1737
1803
|
o = decodeURIComponent(o);
|
|
1738
1804
|
} catch {
|
|
@@ -1741,23 +1807,23 @@ var Yt = {
|
|
|
1741
1807
|
e.tagMap[r] = o;
|
|
1742
1808
|
}
|
|
1743
1809
|
};
|
|
1744
|
-
function
|
|
1810
|
+
function je(e, n, t, r) {
|
|
1745
1811
|
var o, a, i, s;
|
|
1746
1812
|
if (n < t) {
|
|
1747
1813
|
if (s = e.input.slice(n, t), r)
|
|
1748
1814
|
for (o = 0, a = s.length; o < a; o += 1)
|
|
1749
1815
|
i = s.charCodeAt(o), i === 9 || 32 <= i && i <= 1114111 || $(e, "expected valid JSON character");
|
|
1750
1816
|
else
|
|
1751
|
-
|
|
1817
|
+
ja.test(s) && $(e, "the stream contains non-printable characters");
|
|
1752
1818
|
e.result += s;
|
|
1753
1819
|
}
|
|
1754
1820
|
}
|
|
1755
1821
|
function Zt(e, n, t, r) {
|
|
1756
1822
|
var o, a, i, s;
|
|
1757
1823
|
for (se.isObject(t) || $(e, "cannot merge mappings; the provided source object is unacceptable"), o = Object.keys(t), i = 0, s = o.length; i < s; i += 1)
|
|
1758
|
-
a = o[i],
|
|
1824
|
+
a = o[i], Me.call(n, a) || (n[a] = t[a], r[a] = !0);
|
|
1759
1825
|
}
|
|
1760
|
-
function
|
|
1826
|
+
function Ue(e, n, t, r, o, a, i, s, l) {
|
|
1761
1827
|
var c, d;
|
|
1762
1828
|
if (Array.isArray(o))
|
|
1763
1829
|
for (o = Array.prototype.slice.call(o), c = 0, d = o.length; c < d; c += 1)
|
|
@@ -1769,7 +1835,7 @@ function qe(e, n, t, r, o, a, i, s, l) {
|
|
|
1769
1835
|
else
|
|
1770
1836
|
Zt(e, n, a, t);
|
|
1771
1837
|
else
|
|
1772
|
-
!e.json && !
|
|
1838
|
+
!e.json && !Me.call(t, o) && Me.call(n, o) && (e.line = i || e.line, e.lineStart = s || e.lineStart, e.position = l || e.position, $(e, "duplicated mapping key")), o === "__proto__" ? Object.defineProperty(n, o, {
|
|
1773
1839
|
configurable: !0,
|
|
1774
1840
|
enumerable: !0,
|
|
1775
1841
|
writable: !0,
|
|
@@ -1777,20 +1843,20 @@ function qe(e, n, t, r, o, a, i, s, l) {
|
|
|
1777
1843
|
}) : n[o] = a, delete t[o];
|
|
1778
1844
|
return n;
|
|
1779
1845
|
}
|
|
1780
|
-
function
|
|
1846
|
+
function jt(e) {
|
|
1781
1847
|
var n;
|
|
1782
1848
|
n = e.input.charCodeAt(e.position), n === 10 ? e.position++ : n === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : $(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
|
|
1783
1849
|
}
|
|
1784
1850
|
function oe(e, n, t) {
|
|
1785
1851
|
for (var r = 0, o = e.input.charCodeAt(e.position); o !== 0; ) {
|
|
1786
|
-
for (;
|
|
1852
|
+
for (; Ke(o); )
|
|
1787
1853
|
o === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), o = e.input.charCodeAt(++e.position);
|
|
1788
1854
|
if (n && o === 35)
|
|
1789
1855
|
do
|
|
1790
1856
|
o = e.input.charCodeAt(++e.position);
|
|
1791
1857
|
while (o !== 10 && o !== 13 && o !== 0);
|
|
1792
1858
|
if (we(o))
|
|
1793
|
-
for (
|
|
1859
|
+
for (jt(e), o = e.input.charCodeAt(e.position), r++, e.lineIndent = 0; o === 32; )
|
|
1794
1860
|
e.lineIndent++, o = e.input.charCodeAt(++e.position);
|
|
1795
1861
|
else
|
|
1796
1862
|
break;
|
|
@@ -1801,23 +1867,23 @@ function dt(e) {
|
|
|
1801
1867
|
var n = e.position, t;
|
|
1802
1868
|
return t = e.input.charCodeAt(n), !!((t === 45 || t === 46) && t === e.input.charCodeAt(n + 1) && t === e.input.charCodeAt(n + 2) && (n += 3, t = e.input.charCodeAt(n), t === 0 || he(t)));
|
|
1803
1869
|
}
|
|
1804
|
-
function
|
|
1870
|
+
function Mt(e, n) {
|
|
1805
1871
|
n === 1 ? e.result += " " : n > 1 && (e.result += se.repeat(`
|
|
1806
1872
|
`, n - 1));
|
|
1807
1873
|
}
|
|
1808
|
-
function
|
|
1874
|
+
function Pa(e, n, t) {
|
|
1809
1875
|
var r, o, a, i, s, l, c, d, u = e.kind, m = e.result, f;
|
|
1810
|
-
if (f = e.input.charCodeAt(e.position), he(f) ||
|
|
1876
|
+
if (f = e.input.charCodeAt(e.position), he(f) || qe(f) || f === 35 || f === 38 || f === 42 || f === 33 || f === 124 || f === 62 || f === 39 || f === 34 || f === 37 || f === 64 || f === 96 || (f === 63 || f === 45) && (o = e.input.charCodeAt(e.position + 1), he(o) || t && qe(o)))
|
|
1811
1877
|
return !1;
|
|
1812
1878
|
for (e.kind = "scalar", e.result = "", a = i = e.position, s = !1; f !== 0; ) {
|
|
1813
1879
|
if (f === 58) {
|
|
1814
|
-
if (o = e.input.charCodeAt(e.position + 1), he(o) || t &&
|
|
1880
|
+
if (o = e.input.charCodeAt(e.position + 1), he(o) || t && qe(o))
|
|
1815
1881
|
break;
|
|
1816
1882
|
} else if (f === 35) {
|
|
1817
1883
|
if (r = e.input.charCodeAt(e.position - 1), he(r))
|
|
1818
1884
|
break;
|
|
1819
1885
|
} else {
|
|
1820
|
-
if (e.position === e.lineStart && dt(e) || t &&
|
|
1886
|
+
if (e.position === e.lineStart && dt(e) || t && qe(f))
|
|
1821
1887
|
break;
|
|
1822
1888
|
if (we(f))
|
|
1823
1889
|
if (l = e.line, c = e.lineStart, d = e.lineIndent, oe(e, !1, -1), e.lineIndent >= n) {
|
|
@@ -1828,49 +1894,49 @@ function Oa(e, n, t) {
|
|
|
1828
1894
|
break;
|
|
1829
1895
|
}
|
|
1830
1896
|
}
|
|
1831
|
-
s && (
|
|
1897
|
+
s && (je(e, a, i, !1), Mt(e, e.line - l), a = i = e.position, s = !1), Ke(f) || (i = e.position + 1), f = e.input.charCodeAt(++e.position);
|
|
1832
1898
|
}
|
|
1833
|
-
return
|
|
1899
|
+
return je(e, a, i, !1), e.result ? !0 : (e.kind = u, e.result = m, !1);
|
|
1834
1900
|
}
|
|
1835
|
-
function
|
|
1901
|
+
function La(e, n) {
|
|
1836
1902
|
var t, r, o;
|
|
1837
1903
|
if (t = e.input.charCodeAt(e.position), t !== 39)
|
|
1838
1904
|
return !1;
|
|
1839
1905
|
for (e.kind = "scalar", e.result = "", e.position++, r = o = e.position; (t = e.input.charCodeAt(e.position)) !== 0; )
|
|
1840
1906
|
if (t === 39)
|
|
1841
|
-
if (
|
|
1907
|
+
if (je(e, r, e.position, !0), t = e.input.charCodeAt(++e.position), t === 39)
|
|
1842
1908
|
r = e.position, e.position++, o = e.position;
|
|
1843
1909
|
else
|
|
1844
1910
|
return !0;
|
|
1845
1911
|
else
|
|
1846
|
-
we(t) ? (
|
|
1912
|
+
we(t) ? (je(e, r, o, !0), Mt(e, oe(e, !1, n)), r = o = e.position) : e.position === e.lineStart && dt(e) ? $(e, "unexpected end of the document within a single quoted scalar") : (e.position++, o = e.position);
|
|
1847
1913
|
$(e, "unexpected end of the stream within a single quoted scalar");
|
|
1848
1914
|
}
|
|
1849
|
-
function
|
|
1915
|
+
function qa(e, n) {
|
|
1850
1916
|
var t, r, o, a, i, s;
|
|
1851
1917
|
if (s = e.input.charCodeAt(e.position), s !== 34)
|
|
1852
1918
|
return !1;
|
|
1853
1919
|
for (e.kind = "scalar", e.result = "", e.position++, t = r = e.position; (s = e.input.charCodeAt(e.position)) !== 0; ) {
|
|
1854
1920
|
if (s === 34)
|
|
1855
|
-
return
|
|
1921
|
+
return je(e, t, e.position, !0), e.position++, !0;
|
|
1856
1922
|
if (s === 92) {
|
|
1857
|
-
if (
|
|
1923
|
+
if (je(e, t, e.position, !0), s = e.input.charCodeAt(++e.position), we(s))
|
|
1858
1924
|
oe(e, !1, n);
|
|
1859
1925
|
else if (s < 256 && Vn[s])
|
|
1860
1926
|
e.result += Dn[s], e.position++;
|
|
1861
|
-
else if ((i =
|
|
1927
|
+
else if ((i = Ka(s)) > 0) {
|
|
1862
1928
|
for (o = i, a = 0; o > 0; o--)
|
|
1863
|
-
s = e.input.charCodeAt(++e.position), (i =
|
|
1864
|
-
e.result +=
|
|
1929
|
+
s = e.input.charCodeAt(++e.position), (i = Ea(s)) >= 0 ? a = (a << 4) + i : $(e, "expected hexadecimal character");
|
|
1930
|
+
e.result += Na(a), e.position++;
|
|
1865
1931
|
} else
|
|
1866
1932
|
$(e, "unknown escape sequence");
|
|
1867
1933
|
t = r = e.position;
|
|
1868
1934
|
} else
|
|
1869
|
-
we(s) ? (
|
|
1935
|
+
we(s) ? (je(e, t, r, !0), Mt(e, oe(e, !1, n)), t = r = e.position) : e.position === e.lineStart && dt(e) ? $(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
|
|
1870
1936
|
}
|
|
1871
1937
|
$(e, "unexpected end of the stream within a double quoted scalar");
|
|
1872
1938
|
}
|
|
1873
|
-
function
|
|
1939
|
+
function Ua(e, n) {
|
|
1874
1940
|
var t = !0, r, o, a, i = e.tag, s, l = e.anchor, c, d, u, m, f, I = /* @__PURE__ */ Object.create(null), v, p, S, b;
|
|
1875
1941
|
if (b = e.input.charCodeAt(e.position), b === 91)
|
|
1876
1942
|
d = 93, f = !1, s = [];
|
|
@@ -1881,11 +1947,11 @@ function Na(e, n) {
|
|
|
1881
1947
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = s), b = e.input.charCodeAt(++e.position); b !== 0; ) {
|
|
1882
1948
|
if (oe(e, !0, n), b = e.input.charCodeAt(e.position), b === d)
|
|
1883
1949
|
return e.position++, e.tag = i, e.anchor = l, e.kind = f ? "mapping" : "sequence", e.result = s, !0;
|
|
1884
|
-
t ? b === 44 && $(e, "expected the node content, but found ','") : $(e, "missed comma between flow collection entries"), p = v = S = null, u = m = !1, b === 63 && (c = e.input.charCodeAt(e.position + 1), he(c) && (u = m = !0, e.position++, oe(e, !0, n))), r = e.line, o = e.lineStart, a = e.position, Re(e, n, ot, !1, !0), p = e.tag, v = e.result, oe(e, !0, n), b = e.input.charCodeAt(e.position), (m || e.line === r) && b === 58 && (u = !0, b = e.input.charCodeAt(++e.position), oe(e, !0, n), Re(e, n, ot, !1, !0), S = e.result), f ?
|
|
1950
|
+
t ? b === 44 && $(e, "expected the node content, but found ','") : $(e, "missed comma between flow collection entries"), p = v = S = null, u = m = !1, b === 63 && (c = e.input.charCodeAt(e.position + 1), he(c) && (u = m = !0, e.position++, oe(e, !0, n))), r = e.line, o = e.lineStart, a = e.position, Re(e, n, ot, !1, !0), p = e.tag, v = e.result, oe(e, !0, n), b = e.input.charCodeAt(e.position), (m || e.line === r) && b === 58 && (u = !0, b = e.input.charCodeAt(++e.position), oe(e, !0, n), Re(e, n, ot, !1, !0), S = e.result), f ? Ue(e, s, I, p, v, S, r, o, a) : u ? s.push(Ue(e, null, I, p, v, S, r, o, a)) : s.push(v), oe(e, !0, n), b = e.input.charCodeAt(e.position), b === 44 ? (t = !0, b = e.input.charCodeAt(++e.position)) : t = !1;
|
|
1885
1951
|
}
|
|
1886
1952
|
$(e, "unexpected end of the stream within a flow collection");
|
|
1887
1953
|
}
|
|
1888
|
-
function
|
|
1954
|
+
function Ra(e, n) {
|
|
1889
1955
|
var t, r, o = yt, a = !1, i = !1, s = n, l = 0, c = !1, d, u;
|
|
1890
1956
|
if (u = e.input.charCodeAt(e.position), u === 124)
|
|
1891
1957
|
r = !1;
|
|
@@ -1895,40 +1961,40 @@ function Ba(e, n) {
|
|
|
1895
1961
|
return !1;
|
|
1896
1962
|
for (e.kind = "scalar", e.result = ""; u !== 0; )
|
|
1897
1963
|
if (u = e.input.charCodeAt(++e.position), u === 43 || u === 45)
|
|
1898
|
-
yt === o ? o = u === 43 ?
|
|
1899
|
-
else if ((d =
|
|
1964
|
+
yt === o ? o = u === 43 ? Ht : $a : $(e, "repeat of a chomping mode identifier");
|
|
1965
|
+
else if ((d = Fa(u)) >= 0)
|
|
1900
1966
|
d === 0 ? $(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : i ? $(e, "repeat of an indentation width identifier") : (s = n + d - 1, i = !0);
|
|
1901
1967
|
else
|
|
1902
1968
|
break;
|
|
1903
|
-
if (
|
|
1969
|
+
if (Ke(u)) {
|
|
1904
1970
|
do
|
|
1905
1971
|
u = e.input.charCodeAt(++e.position);
|
|
1906
|
-
while (
|
|
1972
|
+
while (Ke(u));
|
|
1907
1973
|
if (u === 35)
|
|
1908
1974
|
do
|
|
1909
1975
|
u = e.input.charCodeAt(++e.position);
|
|
1910
1976
|
while (!we(u) && u !== 0);
|
|
1911
1977
|
}
|
|
1912
1978
|
for (; u !== 0; ) {
|
|
1913
|
-
for (
|
|
1979
|
+
for (jt(e), e.lineIndent = 0, u = e.input.charCodeAt(e.position); (!i || e.lineIndent < s) && u === 32; )
|
|
1914
1980
|
e.lineIndent++, u = e.input.charCodeAt(++e.position);
|
|
1915
1981
|
if (!i && e.lineIndent > s && (s = e.lineIndent), we(u)) {
|
|
1916
1982
|
l++;
|
|
1917
1983
|
continue;
|
|
1918
1984
|
}
|
|
1919
1985
|
if (e.lineIndent < s) {
|
|
1920
|
-
o ===
|
|
1986
|
+
o === Ht ? e.result += se.repeat(`
|
|
1921
1987
|
`, a ? 1 + l : l) : o === yt && a && (e.result += `
|
|
1922
1988
|
`);
|
|
1923
1989
|
break;
|
|
1924
1990
|
}
|
|
1925
|
-
for (r ?
|
|
1991
|
+
for (r ? Ke(u) ? (c = !0, e.result += se.repeat(`
|
|
1926
1992
|
`, a ? 1 + l : l)) : c ? (c = !1, e.result += se.repeat(`
|
|
1927
1993
|
`, l + 1)) : l === 0 ? a && (e.result += " ") : e.result += se.repeat(`
|
|
1928
1994
|
`, l) : e.result += se.repeat(`
|
|
1929
1995
|
`, a ? 1 + l : l), a = !0, i = !0, l = 0, t = e.position; !we(u) && u !== 0; )
|
|
1930
1996
|
u = e.input.charCodeAt(++e.position);
|
|
1931
|
-
|
|
1997
|
+
je(e, t, e.position, !1);
|
|
1932
1998
|
}
|
|
1933
1999
|
return !0;
|
|
1934
2000
|
}
|
|
@@ -1941,28 +2007,28 @@ function Qt(e, n) {
|
|
|
1941
2007
|
a.push(null), l = e.input.charCodeAt(e.position);
|
|
1942
2008
|
continue;
|
|
1943
2009
|
}
|
|
1944
|
-
if (t = e.line, Re(e, n,
|
|
2010
|
+
if (t = e.line, Re(e, n, qn, !1, !0), a.push(e.result), oe(e, !0, -1), l = e.input.charCodeAt(e.position), (e.line === t || e.lineIndent > n) && l !== 0)
|
|
1945
2011
|
$(e, "bad indentation of a sequence entry");
|
|
1946
2012
|
else if (e.lineIndent < n)
|
|
1947
2013
|
break;
|
|
1948
2014
|
}
|
|
1949
2015
|
return s ? (e.tag = r, e.anchor = o, e.kind = "sequence", e.result = a, !0) : !1;
|
|
1950
2016
|
}
|
|
1951
|
-
function
|
|
2017
|
+
function Va(e, n, t) {
|
|
1952
2018
|
var r, o, a, i, s, l, c = e.tag, d = e.anchor, u = {}, m = /* @__PURE__ */ Object.create(null), f = null, I = null, v = null, p = !1, S = !1, b;
|
|
1953
2019
|
if (e.firstTabInLine !== -1)
|
|
1954
2020
|
return !1;
|
|
1955
2021
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = u), b = e.input.charCodeAt(e.position); b !== 0; ) {
|
|
1956
2022
|
if (!p && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, $(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), a = e.line, (b === 63 || b === 58) && he(r))
|
|
1957
|
-
b === 63 ? (p && (
|
|
2023
|
+
b === 63 ? (p && (Ue(e, u, m, f, I, null, i, s, l), f = I = v = null), S = !0, p = !0, o = !0) : p ? (p = !1, o = !0) : $(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, b = r;
|
|
1958
2024
|
else {
|
|
1959
2025
|
if (i = e.line, s = e.lineStart, l = e.position, !Re(e, t, Ln, !1, !0))
|
|
1960
2026
|
break;
|
|
1961
2027
|
if (e.line === a) {
|
|
1962
|
-
for (b = e.input.charCodeAt(e.position);
|
|
2028
|
+
for (b = e.input.charCodeAt(e.position); Ke(b); )
|
|
1963
2029
|
b = e.input.charCodeAt(++e.position);
|
|
1964
2030
|
if (b === 58)
|
|
1965
|
-
b = e.input.charCodeAt(++e.position), he(b) || $(e, "a whitespace character is expected after the key-value separator within a block mapping"), p && (
|
|
2031
|
+
b = e.input.charCodeAt(++e.position), he(b) || $(e, "a whitespace character is expected after the key-value separator within a block mapping"), p && (Ue(e, u, m, f, I, null, i, s, l), f = I = v = null), S = !0, p = !1, o = !1, f = e.tag, I = e.result;
|
|
1966
2032
|
else if (S)
|
|
1967
2033
|
$(e, "can not read an implicit mapping pair; a colon is missed");
|
|
1968
2034
|
else
|
|
@@ -1972,14 +2038,14 @@ function Pa(e, n, t) {
|
|
|
1972
2038
|
else
|
|
1973
2039
|
return e.tag = c, e.anchor = d, !0;
|
|
1974
2040
|
}
|
|
1975
|
-
if ((e.line === a || e.lineIndent > n) && (p && (i = e.line, s = e.lineStart, l = e.position), Re(e, n, at, !0, o) && (p ? I = e.result : v = e.result), p || (
|
|
2041
|
+
if ((e.line === a || e.lineIndent > n) && (p && (i = e.line, s = e.lineStart, l = e.position), Re(e, n, at, !0, o) && (p ? I = e.result : v = e.result), p || (Ue(e, u, m, f, I, v, i, s, l), f = I = v = null), oe(e, !0, -1), b = e.input.charCodeAt(e.position)), (e.line === a || e.lineIndent > n) && b !== 0)
|
|
1976
2042
|
$(e, "bad indentation of a mapping entry");
|
|
1977
2043
|
else if (e.lineIndent < n)
|
|
1978
2044
|
break;
|
|
1979
2045
|
}
|
|
1980
|
-
return p &&
|
|
2046
|
+
return p && Ue(e, u, m, f, I, null, i, s, l), S && (e.tag = c, e.anchor = d, e.kind = "mapping", e.result = u), S;
|
|
1981
2047
|
}
|
|
1982
|
-
function
|
|
2048
|
+
function Da(e) {
|
|
1983
2049
|
var n, t = !1, r = !1, o, a, i;
|
|
1984
2050
|
if (i = e.input.charCodeAt(e.position), i !== 33)
|
|
1985
2051
|
return !1;
|
|
@@ -1990,8 +2056,8 @@ function La(e) {
|
|
|
1990
2056
|
e.position < e.length ? (a = e.input.slice(n, e.position), i = e.input.charCodeAt(++e.position)) : $(e, "unexpected end of the stream within a verbatim tag");
|
|
1991
2057
|
} else {
|
|
1992
2058
|
for (; i !== 0 && !he(i); )
|
|
1993
|
-
i === 33 && (r ? $(e, "tag suffix cannot contain exclamation marks") : (o = e.input.slice(n - 1, e.position + 1),
|
|
1994
|
-
a = e.input.slice(n, e.position),
|
|
2059
|
+
i === 33 && (r ? $(e, "tag suffix cannot contain exclamation marks") : (o = e.input.slice(n - 1, e.position + 1), Un.test(o) || $(e, "named tag handle cannot contain such characters"), r = !0, n = e.position + 1)), i = e.input.charCodeAt(++e.position);
|
|
2060
|
+
a = e.input.slice(n, e.position), Oa.test(a) && $(e, "tag suffix cannot contain flow indicator characters");
|
|
1995
2061
|
}
|
|
1996
2062
|
a && !Rn.test(a) && $(e, "tag name cannot contain such characters: " + a);
|
|
1997
2063
|
try {
|
|
@@ -1999,30 +2065,30 @@ function La(e) {
|
|
|
1999
2065
|
} catch {
|
|
2000
2066
|
$(e, "tag name is malformed: " + a);
|
|
2001
2067
|
}
|
|
2002
|
-
return t ? e.tag = a :
|
|
2068
|
+
return t ? e.tag = a : Me.call(e.tagMap, o) ? e.tag = e.tagMap[o] + a : o === "!" ? e.tag = "!" + a : o === "!!" ? e.tag = "tag:yaml.org,2002:" + a : $(e, 'undeclared tag handle "' + o + '"'), !0;
|
|
2003
2069
|
}
|
|
2004
|
-
function
|
|
2070
|
+
function Ga(e) {
|
|
2005
2071
|
var n, t;
|
|
2006
2072
|
if (t = e.input.charCodeAt(e.position), t !== 38)
|
|
2007
2073
|
return !1;
|
|
2008
|
-
for (e.anchor !== null && $(e, "duplication of an anchor property"), t = e.input.charCodeAt(++e.position), n = e.position; t !== 0 && !he(t) && !
|
|
2074
|
+
for (e.anchor !== null && $(e, "duplication of an anchor property"), t = e.input.charCodeAt(++e.position), n = e.position; t !== 0 && !he(t) && !qe(t); )
|
|
2009
2075
|
t = e.input.charCodeAt(++e.position);
|
|
2010
2076
|
return e.position === n && $(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(n, e.position), !0;
|
|
2011
2077
|
}
|
|
2012
|
-
function
|
|
2078
|
+
function za(e) {
|
|
2013
2079
|
var n, t, r;
|
|
2014
2080
|
if (r = e.input.charCodeAt(e.position), r !== 42)
|
|
2015
2081
|
return !1;
|
|
2016
|
-
for (r = e.input.charCodeAt(++e.position), n = e.position; r !== 0 && !he(r) && !
|
|
2082
|
+
for (r = e.input.charCodeAt(++e.position), n = e.position; r !== 0 && !he(r) && !qe(r); )
|
|
2017
2083
|
r = e.input.charCodeAt(++e.position);
|
|
2018
|
-
return e.position === n && $(e, "name of an alias node must contain at least one character"), t = e.input.slice(n, e.position),
|
|
2084
|
+
return e.position === n && $(e, "name of an alias node must contain at least one character"), t = e.input.slice(n, e.position), Me.call(e.anchorMap, t) || $(e, 'unidentified alias "' + t + '"'), e.result = e.anchorMap[t], oe(e, !0, -1), !0;
|
|
2019
2085
|
}
|
|
2020
2086
|
function Re(e, n, t, r, o) {
|
|
2021
2087
|
var a, i, s, l = 1, c = !1, d = !1, u, m, f, I, v, p;
|
|
2022
|
-
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = i = s = at === t ||
|
|
2023
|
-
for (;
|
|
2088
|
+
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = i = s = at === t || qn === t, r && oe(e, !0, -1) && (c = !0, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)), l === 1)
|
|
2089
|
+
for (; Da(e) || Ga(e); )
|
|
2024
2090
|
oe(e, !0, -1) ? (c = !0, s = a, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)) : s = !1;
|
|
2025
|
-
if (s && (s = c || o), (l === 1 || at === t) && (ot === t || Ln === t ? v = n : v = n + 1, p = e.position - e.lineStart, l === 1 ? s && (Qt(e, p) ||
|
|
2091
|
+
if (s && (s = c || o), (l === 1 || at === t) && (ot === t || Ln === t ? v = n : v = n + 1, p = e.position - e.lineStart, l === 1 ? s && (Qt(e, p) || Va(e, p, v)) || Ua(e, v) ? d = !0 : (i && Ra(e, v) || La(e, v) || qa(e, v) ? d = !0 : za(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && $(e, "alias node should not have any properties")) : Pa(e, v, ot === t) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : l === 0 && (d = s && Qt(e, p))), e.tag === null)
|
|
2026
2092
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
2027
2093
|
else if (e.tag === "?") {
|
|
2028
2094
|
for (e.result !== null && e.kind !== "scalar" && $(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, m = e.implicitTypes.length; u < m; u += 1)
|
|
@@ -2031,7 +2097,7 @@ function Re(e, n, t, r, o) {
|
|
|
2031
2097
|
break;
|
|
2032
2098
|
}
|
|
2033
2099
|
} else if (e.tag !== "!") {
|
|
2034
|
-
if (
|
|
2100
|
+
if (Me.call(e.typeMap[e.kind || "fallback"], e.tag))
|
|
2035
2101
|
I = e.typeMap[e.kind || "fallback"][e.tag];
|
|
2036
2102
|
else
|
|
2037
2103
|
for (I = null, f = e.typeMap.multi[e.kind || "fallback"], u = 0, m = f.length; u < m; u += 1)
|
|
@@ -2043,13 +2109,13 @@ function Re(e, n, t, r, o) {
|
|
|
2043
2109
|
}
|
|
2044
2110
|
return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || d;
|
|
2045
2111
|
}
|
|
2046
|
-
function
|
|
2112
|
+
function Ha(e) {
|
|
2047
2113
|
var n = e.position, t, r, o, a = !1, i;
|
|
2048
2114
|
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (i = e.input.charCodeAt(e.position)) !== 0 && (oe(e, !0, -1), i = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || i !== 37)); ) {
|
|
2049
2115
|
for (a = !0, i = e.input.charCodeAt(++e.position), t = e.position; i !== 0 && !he(i); )
|
|
2050
2116
|
i = e.input.charCodeAt(++e.position);
|
|
2051
2117
|
for (r = e.input.slice(t, e.position), o = [], r.length < 1 && $(e, "directive name must not be less than one character in length"); i !== 0; ) {
|
|
2052
|
-
for (;
|
|
2118
|
+
for (; Ke(i); )
|
|
2053
2119
|
i = e.input.charCodeAt(++e.position);
|
|
2054
2120
|
if (i === 35) {
|
|
2055
2121
|
do
|
|
@@ -2063,9 +2129,9 @@ function Ra(e) {
|
|
|
2063
2129
|
i = e.input.charCodeAt(++e.position);
|
|
2064
2130
|
o.push(e.input.slice(t, e.position));
|
|
2065
2131
|
}
|
|
2066
|
-
i !== 0 &&
|
|
2132
|
+
i !== 0 && jt(e), Me.call(Yt, r) ? Yt[r](e, r, o) : it(e, 'unknown document directive "' + r + '"');
|
|
2067
2133
|
}
|
|
2068
|
-
if (oe(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, oe(e, !0, -1)) : a && $(e, "directives end mark is expected"), Re(e, e.lineIndent - 1, at, !1, !0), oe(e, !0, -1), e.checkLineBreaks &&
|
|
2134
|
+
if (oe(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, oe(e, !0, -1)) : a && $(e, "directives end mark is expected"), Re(e, e.lineIndent - 1, at, !1, !0), oe(e, !0, -1), e.checkLineBreaks && Ma.test(e.input.slice(n, e.position)) && it(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && dt(e)) {
|
|
2069
2135
|
e.input.charCodeAt(e.position) === 46 && (e.position += 3, oe(e, !0, -1));
|
|
2070
2136
|
return;
|
|
2071
2137
|
}
|
|
@@ -2074,36 +2140,36 @@ function Ra(e) {
|
|
|
2074
2140
|
else
|
|
2075
2141
|
return;
|
|
2076
2142
|
}
|
|
2077
|
-
function
|
|
2143
|
+
function zn(e, n) {
|
|
2078
2144
|
e = String(e), n = n || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
|
|
2079
2145
|
`), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
2080
|
-
var t = new
|
|
2146
|
+
var t = new Ba(e, n), r = e.indexOf("\0");
|
|
2081
2147
|
for (r !== -1 && (t.position = r, $(t, "null byte is not allowed in input")), t.input += "\0"; t.input.charCodeAt(t.position) === 32; )
|
|
2082
2148
|
t.lineIndent += 1, t.position += 1;
|
|
2083
2149
|
for (; t.position < t.length - 1; )
|
|
2084
|
-
|
|
2150
|
+
Ha(t);
|
|
2085
2151
|
return t.documents;
|
|
2086
2152
|
}
|
|
2087
|
-
function
|
|
2153
|
+
function Ja(e, n, t) {
|
|
2088
2154
|
n !== null && typeof n == "object" && typeof t > "u" && (t = n, n = null);
|
|
2089
|
-
var r =
|
|
2155
|
+
var r = zn(e, t);
|
|
2090
2156
|
if (typeof n != "function")
|
|
2091
2157
|
return r;
|
|
2092
2158
|
for (var o = 0, a = r.length; o < a; o += 1)
|
|
2093
2159
|
n(r[o]);
|
|
2094
2160
|
}
|
|
2095
|
-
function
|
|
2096
|
-
var t =
|
|
2161
|
+
function Wa(e, n) {
|
|
2162
|
+
var t = zn(e, n);
|
|
2097
2163
|
if (t.length !== 0) {
|
|
2098
2164
|
if (t.length === 1)
|
|
2099
2165
|
return t[0];
|
|
2100
2166
|
throw new me("expected a single document in the stream, but found more");
|
|
2101
2167
|
}
|
|
2102
2168
|
}
|
|
2103
|
-
var
|
|
2104
|
-
loadAll:
|
|
2105
|
-
load:
|
|
2106
|
-
}, Jn = Object.prototype.toString, Wn = Object.prototype.hasOwnProperty,
|
|
2169
|
+
var Ya = Ja, Za = Wa, Hn = {
|
|
2170
|
+
loadAll: Ya,
|
|
2171
|
+
load: Za
|
|
2172
|
+
}, Jn = Object.prototype.toString, Wn = Object.prototype.hasOwnProperty, Ot = 65279, Qa = 9, We = 10, Xa = 13, ei = 32, ti = 33, ni = 34, bt = 35, ri = 37, oi = 38, ai = 39, ii = 42, Yn = 44, si = 45, st = 58, li = 61, ui = 62, ci = 63, di = 64, Zn = 91, Qn = 93, pi = 96, Xn = 123, fi = 124, er = 125, fe = {};
|
|
2107
2173
|
fe[0] = "\\0";
|
|
2108
2174
|
fe[7] = "\\a";
|
|
2109
2175
|
fe[8] = "\\b";
|
|
@@ -2119,7 +2185,7 @@ fe[133] = "\\N";
|
|
|
2119
2185
|
fe[160] = "\\_";
|
|
2120
2186
|
fe[8232] = "\\L";
|
|
2121
2187
|
fe[8233] = "\\P";
|
|
2122
|
-
var
|
|
2188
|
+
var mi = [
|
|
2123
2189
|
"y",
|
|
2124
2190
|
"Y",
|
|
2125
2191
|
"yes",
|
|
@@ -2136,8 +2202,8 @@ var ui = [
|
|
|
2136
2202
|
"off",
|
|
2137
2203
|
"Off",
|
|
2138
2204
|
"OFF"
|
|
2139
|
-
],
|
|
2140
|
-
function
|
|
2205
|
+
], gi = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
2206
|
+
function yi(e, n) {
|
|
2141
2207
|
var t, r, o, a, i, s, l;
|
|
2142
2208
|
if (n === null)
|
|
2143
2209
|
return {};
|
|
@@ -2145,7 +2211,7 @@ function di(e, n) {
|
|
|
2145
2211
|
i = r[o], s = String(n[i]), i.slice(0, 2) === "!!" && (i = "tag:yaml.org,2002:" + i.slice(2)), l = e.compiledTypeMap.fallback[i], l && Wn.call(l.styleAliases, s) && (s = l.styleAliases[s]), t[i] = s;
|
|
2146
2212
|
return t;
|
|
2147
2213
|
}
|
|
2148
|
-
function
|
|
2214
|
+
function hi(e) {
|
|
2149
2215
|
var n, t, r;
|
|
2150
2216
|
if (n = e.toString(16).toUpperCase(), e <= 255)
|
|
2151
2217
|
t = "x", r = 2;
|
|
@@ -2157,9 +2223,9 @@ function pi(e) {
|
|
|
2157
2223
|
throw new me("code point within a string may not be greater than 0xFFFFFFFF");
|
|
2158
2224
|
return "\\" + t + se.repeat("0", r - n.length) + n;
|
|
2159
2225
|
}
|
|
2160
|
-
var
|
|
2161
|
-
function
|
|
2162
|
-
this.schema = e.schema || $t, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = se.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap =
|
|
2226
|
+
var vi = 1, Ye = 2;
|
|
2227
|
+
function bi(e) {
|
|
2228
|
+
this.schema = e.schema || $t, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = se.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = yi(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 === '"' ? Ye : vi, 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;
|
|
2163
2229
|
}
|
|
2164
2230
|
function Xt(e, n) {
|
|
2165
2231
|
for (var t = se.repeat(" ", n), r = 0, o = -1, a = "", i, s = e.length; r < s; )
|
|
@@ -2168,11 +2234,11 @@ function Xt(e, n) {
|
|
|
2168
2234
|
` && (a += t), a += i;
|
|
2169
2235
|
return a;
|
|
2170
2236
|
}
|
|
2171
|
-
function
|
|
2237
|
+
function kt(e, n) {
|
|
2172
2238
|
return `
|
|
2173
2239
|
` + se.repeat(" ", e.indent * n);
|
|
2174
2240
|
}
|
|
2175
|
-
function
|
|
2241
|
+
function ki(e, n) {
|
|
2176
2242
|
var t, r, o;
|
|
2177
2243
|
for (t = 0, r = e.implicitTypes.length; t < r; t += 1)
|
|
2178
2244
|
if (o = e.implicitTypes[t], o.resolve(n))
|
|
@@ -2180,13 +2246,13 @@ function gi(e, n) {
|
|
|
2180
2246
|
return !1;
|
|
2181
2247
|
}
|
|
2182
2248
|
function lt(e) {
|
|
2183
|
-
return e ===
|
|
2249
|
+
return e === ei || e === Qa;
|
|
2184
2250
|
}
|
|
2185
2251
|
function Ze(e) {
|
|
2186
|
-
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !==
|
|
2252
|
+
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== Ot || 65536 <= e && e <= 1114111;
|
|
2187
2253
|
}
|
|
2188
2254
|
function en(e) {
|
|
2189
|
-
return Ze(e) && e !==
|
|
2255
|
+
return Ze(e) && e !== Ot && e !== Xa && e !== We;
|
|
2190
2256
|
}
|
|
2191
2257
|
function tn(e, n, t) {
|
|
2192
2258
|
var r = en(e), o = r && !lt(e);
|
|
@@ -2198,13 +2264,13 @@ function tn(e, n, t) {
|
|
|
2198
2264
|
) : r && e !== Yn && e !== Zn && e !== Qn && e !== Xn && e !== er) && e !== bt && !(n === st && !o) || en(n) && !lt(n) && e === bt || n === st && o
|
|
2199
2265
|
);
|
|
2200
2266
|
}
|
|
2201
|
-
function
|
|
2202
|
-
return Ze(e) && e !==
|
|
2267
|
+
function Ci(e) {
|
|
2268
|
+
return Ze(e) && e !== Ot && !lt(e) && e !== si && e !== ci && e !== st && e !== Yn && e !== Zn && e !== Qn && e !== Xn && e !== er && e !== bt && e !== oi && e !== ii && e !== ti && e !== fi && e !== li && e !== ui && e !== ai && e !== ni && e !== ri && e !== di && e !== pi;
|
|
2203
2269
|
}
|
|
2204
|
-
function
|
|
2270
|
+
function _i(e) {
|
|
2205
2271
|
return !lt(e) && e !== st;
|
|
2206
2272
|
}
|
|
2207
|
-
function
|
|
2273
|
+
function ze(e, n) {
|
|
2208
2274
|
var t = e.charCodeAt(n), r;
|
|
2209
2275
|
return t >= 55296 && t <= 56319 && n + 1 < e.length && (r = e.charCodeAt(n + 1), r >= 56320 && r <= 57343) ? (t - 55296) * 1024 + r - 56320 + 65536 : t;
|
|
2210
2276
|
}
|
|
@@ -2212,18 +2278,18 @@ function tr(e) {
|
|
|
2212
2278
|
var n = /^\n* /;
|
|
2213
2279
|
return n.test(e);
|
|
2214
2280
|
}
|
|
2215
|
-
var nr = 1,
|
|
2216
|
-
function
|
|
2217
|
-
var l, c = 0, d = null, u = !1, m = !1, f = r !== -1, I = -1, v =
|
|
2281
|
+
var nr = 1, Ct = 2, rr = 3, or = 4, Le = 5;
|
|
2282
|
+
function wi(e, n, t, r, o, a, i, s) {
|
|
2283
|
+
var l, c = 0, d = null, u = !1, m = !1, f = r !== -1, I = -1, v = Ci(ze(e, 0)) && _i(ze(e, e.length - 1));
|
|
2218
2284
|
if (n || i)
|
|
2219
2285
|
for (l = 0; l < e.length; c >= 65536 ? l += 2 : l++) {
|
|
2220
|
-
if (c =
|
|
2286
|
+
if (c = ze(e, l), !Ze(c))
|
|
2221
2287
|
return Le;
|
|
2222
2288
|
v = v && tn(c, d, s), d = c;
|
|
2223
2289
|
}
|
|
2224
2290
|
else {
|
|
2225
2291
|
for (l = 0; l < e.length; c >= 65536 ? l += 2 : l++) {
|
|
2226
|
-
if (c =
|
|
2292
|
+
if (c = ze(e, l), c === We)
|
|
2227
2293
|
u = !0, f && (m = m || // Foldable line = too long, and not more-indented.
|
|
2228
2294
|
l - I - 1 > r && e[I + 1] !== " ", I = l);
|
|
2229
2295
|
else if (!Ze(c))
|
|
@@ -2232,19 +2298,19 @@ function vi(e, n, t, r, o, a, i, s) {
|
|
|
2232
2298
|
}
|
|
2233
2299
|
m = m || f && l - I - 1 > r && e[I + 1] !== " ";
|
|
2234
2300
|
}
|
|
2235
|
-
return !u && !m ? v && !i && !o(e) ? nr : a === Ye ? Le :
|
|
2301
|
+
return !u && !m ? v && !i && !o(e) ? nr : a === Ye ? Le : Ct : t > 9 && tr(e) ? Le : i ? a === Ye ? Le : Ct : m ? or : rr;
|
|
2236
2302
|
}
|
|
2237
|
-
function
|
|
2303
|
+
function Ii(e, n, t, r, o) {
|
|
2238
2304
|
e.dump = function() {
|
|
2239
2305
|
if (n.length === 0)
|
|
2240
2306
|
return e.quotingType === Ye ? '""' : "''";
|
|
2241
|
-
if (!e.noCompatMode && (
|
|
2307
|
+
if (!e.noCompatMode && (mi.indexOf(n) !== -1 || gi.test(n)))
|
|
2242
2308
|
return e.quotingType === Ye ? '"' + n + '"' : "'" + n + "'";
|
|
2243
2309
|
var a = e.indent * Math.max(1, t), i = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - a), s = r || e.flowLevel > -1 && t >= e.flowLevel;
|
|
2244
2310
|
function l(c) {
|
|
2245
|
-
return
|
|
2311
|
+
return ki(e, c);
|
|
2246
2312
|
}
|
|
2247
|
-
switch (
|
|
2313
|
+
switch (wi(
|
|
2248
2314
|
n,
|
|
2249
2315
|
s,
|
|
2250
2316
|
e.indent,
|
|
@@ -2256,14 +2322,14 @@ function bi(e, n, t, r, o) {
|
|
|
2256
2322
|
)) {
|
|
2257
2323
|
case nr:
|
|
2258
2324
|
return n;
|
|
2259
|
-
case
|
|
2325
|
+
case Ct:
|
|
2260
2326
|
return "'" + n.replace(/'/g, "''") + "'";
|
|
2261
2327
|
case rr:
|
|
2262
2328
|
return "|" + nn(n, e.indent) + rn(Xt(n, a));
|
|
2263
2329
|
case or:
|
|
2264
|
-
return ">" + nn(n, e.indent) + rn(Xt(
|
|
2330
|
+
return ">" + nn(n, e.indent) + rn(Xt(Ai(n, i), a));
|
|
2265
2331
|
case Le:
|
|
2266
|
-
return '"' +
|
|
2332
|
+
return '"' + Si(n) + '"';
|
|
2267
2333
|
default:
|
|
2268
2334
|
throw new me("impossible error: invalid scalar style");
|
|
2269
2335
|
}
|
|
@@ -2281,7 +2347,7 @@ function rn(e) {
|
|
|
2281
2347
|
return e[e.length - 1] === `
|
|
2282
2348
|
` ? e.slice(0, -1) : e;
|
|
2283
2349
|
}
|
|
2284
|
-
function
|
|
2350
|
+
function Ai(e, n) {
|
|
2285
2351
|
for (var t = /(\n+)([^\n]*)/g, r = function() {
|
|
2286
2352
|
var c = e.indexOf(`
|
|
2287
2353
|
`);
|
|
@@ -2304,12 +2370,12 @@ function on(e, n) {
|
|
|
2304
2370
|
`, e.length - o > n && i > o ? l += e.slice(o, i) + `
|
|
2305
2371
|
` + e.slice(i + 1) : l += e.slice(o), l.slice(1);
|
|
2306
2372
|
}
|
|
2307
|
-
function
|
|
2373
|
+
function Si(e) {
|
|
2308
2374
|
for (var n = "", t = 0, r, o = 0; o < e.length; t >= 65536 ? o += 2 : o++)
|
|
2309
|
-
t =
|
|
2375
|
+
t = ze(e, o), r = fe[t], !r && Ze(t) ? (n += e[o], t >= 65536 && (n += e[o + 1])) : n += r || hi(t);
|
|
2310
2376
|
return n;
|
|
2311
2377
|
}
|
|
2312
|
-
function
|
|
2378
|
+
function xi(e, n, t) {
|
|
2313
2379
|
var r = "", o = e.tag, a, i, s;
|
|
2314
2380
|
for (a = 0, i = t.length; a < i; a += 1)
|
|
2315
2381
|
s = t[a], e.replacer && (s = e.replacer.call(t, String(a), s)), (Se(e, n, s, !1, !1) || typeof s > "u" && Se(e, n, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
|
|
@@ -2318,16 +2384,16 @@ function _i(e, n, t) {
|
|
|
2318
2384
|
function an(e, n, t, r) {
|
|
2319
2385
|
var o = "", a = e.tag, i, s, l;
|
|
2320
2386
|
for (i = 0, s = t.length; i < s; i += 1)
|
|
2321
|
-
l = t[i], e.replacer && (l = e.replacer.call(t, String(i), l)), (Se(e, n + 1, l, !0, !0, !1, !0) || typeof l > "u" && Se(e, n + 1, null, !0, !0, !1, !0)) && ((!r || o !== "") && (o +=
|
|
2387
|
+
l = t[i], e.replacer && (l = e.replacer.call(t, String(i), l)), (Se(e, n + 1, l, !0, !0, !1, !0) || typeof l > "u" && Se(e, n + 1, null, !0, !0, !1, !0)) && ((!r || o !== "") && (o += kt(e, n)), e.dump && We === e.dump.charCodeAt(0) ? o += "-" : o += "- ", o += e.dump);
|
|
2322
2388
|
e.tag = a, e.dump = o || "[]";
|
|
2323
2389
|
}
|
|
2324
|
-
function
|
|
2390
|
+
function Ti(e, n, t) {
|
|
2325
2391
|
var r = "", o = e.tag, a = Object.keys(t), i, s, l, c, d;
|
|
2326
2392
|
for (i = 0, s = a.length; i < s; i += 1)
|
|
2327
2393
|
d = "", r !== "" && (d += ", "), e.condenseFlow && (d += '"'), l = a[i], c = t[l], e.replacer && (c = e.replacer.call(t, l, c)), Se(e, n, l, !1, !1) && (e.dump.length > 1024 && (d += "? "), d += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), Se(e, n, c, !1, !1) && (d += e.dump, r += d));
|
|
2328
2394
|
e.tag = o, e.dump = "{" + r + "}";
|
|
2329
2395
|
}
|
|
2330
|
-
function
|
|
2396
|
+
function $i(e, n, t, r) {
|
|
2331
2397
|
var o = "", a = e.tag, i = Object.keys(t), s, l, c, d, u, m;
|
|
2332
2398
|
if (e.sortKeys === !0)
|
|
2333
2399
|
i.sort();
|
|
@@ -2336,7 +2402,7 @@ function Ii(e, n, t, r) {
|
|
|
2336
2402
|
else if (e.sortKeys)
|
|
2337
2403
|
throw new me("sortKeys must be a boolean or a function");
|
|
2338
2404
|
for (s = 0, l = i.length; s < l; s += 1)
|
|
2339
|
-
m = "", (!r || o !== "") && (m +=
|
|
2405
|
+
m = "", (!r || o !== "") && (m += kt(e, n)), c = i[s], d = t[c], e.replacer && (d = e.replacer.call(t, c, d)), Se(e, n + 1, c, !0, !0, !0) && (u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, u && (e.dump && We === e.dump.charCodeAt(0) ? m += "?" : m += "? "), m += e.dump, u && (m += kt(e, n)), Se(e, n + 1, d, !0, u) && (e.dump && We === e.dump.charCodeAt(0) ? m += ":" : m += ": ", m += e.dump, o += m));
|
|
2340
2406
|
e.tag = a, e.dump = o || "{}";
|
|
2341
2407
|
}
|
|
2342
2408
|
function sn(e, n, t) {
|
|
@@ -2365,11 +2431,11 @@ function Se(e, n, t, r, o, a, i) {
|
|
|
2365
2431
|
e.dump = "*ref_" + u;
|
|
2366
2432
|
else {
|
|
2367
2433
|
if (d && m && !e.usedDuplicates[u] && (e.usedDuplicates[u] = !0), s === "[object Object]")
|
|
2368
|
-
r && Object.keys(e.dump).length !== 0 ? (
|
|
2434
|
+
r && Object.keys(e.dump).length !== 0 ? ($i(e, n, e.dump, o), m && (e.dump = "&ref_" + u + e.dump)) : (Ti(e, n, e.dump), m && (e.dump = "&ref_" + u + " " + e.dump));
|
|
2369
2435
|
else if (s === "[object Array]")
|
|
2370
|
-
r && e.dump.length !== 0 ? (e.noArrayIndent && !i && n > 0 ? an(e, n - 1, e.dump, o) : an(e, n, e.dump, o), m && (e.dump = "&ref_" + u + e.dump)) : (
|
|
2436
|
+
r && e.dump.length !== 0 ? (e.noArrayIndent && !i && n > 0 ? an(e, n - 1, e.dump, o) : an(e, n, e.dump, o), m && (e.dump = "&ref_" + u + e.dump)) : (xi(e, n, e.dump), m && (e.dump = "&ref_" + u + " " + e.dump));
|
|
2371
2437
|
else if (s === "[object String]")
|
|
2372
|
-
e.tag !== "?" &&
|
|
2438
|
+
e.tag !== "?" && Ii(e, e.dump, n, a, l);
|
|
2373
2439
|
else {
|
|
2374
2440
|
if (s === "[object Undefined]" || e.skipInvalid)
|
|
2375
2441
|
return !1;
|
|
@@ -2381,7 +2447,7 @@ function Se(e, n, t, r, o, a, i) {
|
|
|
2381
2447
|
}
|
|
2382
2448
|
return !0;
|
|
2383
2449
|
}
|
|
2384
|
-
function
|
|
2450
|
+
function ji(e, n) {
|
|
2385
2451
|
var t = [], r = [], o, a;
|
|
2386
2452
|
for (_t(e, t, r), o = 0, a = r.length; o < a; o += 1)
|
|
2387
2453
|
n.duplicates.push(t[r[o]]);
|
|
@@ -2399,65 +2465,65 @@ function _t(e, n, t) {
|
|
|
2399
2465
|
for (r = Object.keys(e), o = 0, a = r.length; o < a; o += 1)
|
|
2400
2466
|
_t(e[r[o]], n, t);
|
|
2401
2467
|
}
|
|
2402
|
-
function
|
|
2468
|
+
function Mi(e, n) {
|
|
2403
2469
|
n = n || {};
|
|
2404
|
-
var t = new
|
|
2405
|
-
t.noRefs ||
|
|
2470
|
+
var t = new bi(n);
|
|
2471
|
+
t.noRefs || ji(e, t);
|
|
2406
2472
|
var r = e;
|
|
2407
2473
|
return t.replacer && (r = t.replacer.call({ "": r }, "", r)), Se(t, 0, r, !0, !0) ? t.dump + `
|
|
2408
2474
|
` : "";
|
|
2409
2475
|
}
|
|
2410
|
-
var
|
|
2411
|
-
dump:
|
|
2476
|
+
var Oi = Mi, Ei = {
|
|
2477
|
+
dump: Oi
|
|
2412
2478
|
};
|
|
2413
|
-
function
|
|
2479
|
+
function Et(e, n) {
|
|
2414
2480
|
return function() {
|
|
2415
2481
|
throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + n + " instead, which is now safe by default.");
|
|
2416
2482
|
};
|
|
2417
2483
|
}
|
|
2418
|
-
var
|
|
2419
|
-
binary:
|
|
2484
|
+
var Ki = de, Fi = kn, Ni = In, Bi = $n, Pi = jn, Li = $t, qi = Hn.load, Ui = Hn.loadAll, Ri = Ei.dump, Vi = me, Di = {
|
|
2485
|
+
binary: Fn,
|
|
2420
2486
|
float: Tn,
|
|
2421
2487
|
map: wn,
|
|
2422
2488
|
null: An,
|
|
2423
2489
|
pairs: Bn,
|
|
2424
2490
|
set: Pn,
|
|
2425
|
-
timestamp:
|
|
2491
|
+
timestamp: En,
|
|
2426
2492
|
bool: Sn,
|
|
2427
2493
|
int: xn,
|
|
2428
|
-
merge:
|
|
2494
|
+
merge: Kn,
|
|
2429
2495
|
omap: Nn,
|
|
2430
2496
|
seq: _n,
|
|
2431
|
-
str:
|
|
2432
|
-
},
|
|
2433
|
-
Type:
|
|
2434
|
-
Schema:
|
|
2435
|
-
FAILSAFE_SCHEMA:
|
|
2436
|
-
JSON_SCHEMA:
|
|
2437
|
-
CORE_SCHEMA:
|
|
2438
|
-
DEFAULT_SCHEMA:
|
|
2439
|
-
load:
|
|
2440
|
-
loadAll:
|
|
2441
|
-
dump:
|
|
2442
|
-
YAMLException:
|
|
2443
|
-
types:
|
|
2444
|
-
safeLoad:
|
|
2445
|
-
safeLoadAll:
|
|
2446
|
-
safeDump:
|
|
2497
|
+
str: Cn
|
|
2498
|
+
}, Gi = Et("safeLoad", "load"), zi = Et("safeLoadAll", "loadAll"), Hi = Et("safeDump", "dump"), Ji = {
|
|
2499
|
+
Type: Ki,
|
|
2500
|
+
Schema: Fi,
|
|
2501
|
+
FAILSAFE_SCHEMA: Ni,
|
|
2502
|
+
JSON_SCHEMA: Bi,
|
|
2503
|
+
CORE_SCHEMA: Pi,
|
|
2504
|
+
DEFAULT_SCHEMA: Li,
|
|
2505
|
+
load: qi,
|
|
2506
|
+
loadAll: Ui,
|
|
2507
|
+
dump: Ri,
|
|
2508
|
+
YAMLException: Vi,
|
|
2509
|
+
types: Di,
|
|
2510
|
+
safeLoad: Gi,
|
|
2511
|
+
safeLoadAll: zi,
|
|
2512
|
+
safeDump: Hi
|
|
2447
2513
|
};
|
|
2448
|
-
const
|
|
2514
|
+
const Wi = {
|
|
2449
2515
|
key: 0,
|
|
2450
2516
|
class: "config-card-display-form"
|
|
2451
|
-
},
|
|
2517
|
+
}, Yi = ["data-testid"], Zi = {
|
|
2452
2518
|
key: 0,
|
|
2453
2519
|
class: "config-card-prop-section-title"
|
|
2454
|
-
},
|
|
2520
|
+
}, Qi = {
|
|
2455
2521
|
key: 1,
|
|
2456
2522
|
class: "config-card-display-json"
|
|
2457
|
-
},
|
|
2523
|
+
}, Xi = {
|
|
2458
2524
|
key: 2,
|
|
2459
2525
|
class: "config-card-display-yaml"
|
|
2460
|
-
},
|
|
2526
|
+
}, es = /* @__PURE__ */ ae({
|
|
2461
2527
|
__name: "ConfigCardDisplay",
|
|
2462
2528
|
props: {
|
|
2463
2529
|
propertyCollections: {
|
|
@@ -2483,20 +2549,20 @@ const Di = {
|
|
|
2483
2549
|
}
|
|
2484
2550
|
},
|
|
2485
2551
|
setup(e) {
|
|
2486
|
-
const n = e, t = ut(), { i18n: { t: r } } = ue.useI18n(), o = (s) => !!(s.tooltip || t[`${s.key}-label-tooltip`]), a =
|
|
2552
|
+
const n = e, t = ut(), { i18n: { t: r } } = ue.useI18n(), o = (s) => !!(s.tooltip || t[`${s.key}-label-tooltip`]), a = E(""), i = E("");
|
|
2487
2553
|
return xe(() => n.format, (s) => {
|
|
2488
|
-
s === "json" ? a.value = JSON.stringify(n.record, null, 2) : s === "yaml" && (i.value =
|
|
2554
|
+
s === "json" ? a.value = JSON.stringify(n.record, null, 2) : s === "yaml" && (i.value = Ji.dump(n.record));
|
|
2489
2555
|
}, { immediate: !0 }), (s, l) => {
|
|
2490
|
-
const c =
|
|
2491
|
-
return g(),
|
|
2492
|
-
e.format === "structured" ? (g(),
|
|
2493
|
-
(g(!0),
|
|
2556
|
+
const c = q("KCodeBlock");
|
|
2557
|
+
return g(), M(ve, null, [
|
|
2558
|
+
e.format === "structured" ? (g(), M("div", Wi, [
|
|
2559
|
+
(g(!0), M(ve, null, ye(e.propListTypes, (d) => (g(), M("div", {
|
|
2494
2560
|
key: `config-card-details-${d}-props`,
|
|
2495
|
-
class:
|
|
2561
|
+
class: Fe(`config-card-details-${d}-props`),
|
|
2496
2562
|
"data-testid": `config-card-details-${d}-props`
|
|
2497
2563
|
}, [
|
|
2498
|
-
d !== "basic" ? (g(),
|
|
2499
|
-
(g(!0),
|
|
2564
|
+
d !== "basic" ? (g(), M("div", Zi, K(d === "advanced" ? y(r)("baseConfigCard.sections.advanced") : y(r)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
|
|
2565
|
+
(g(!0), M(ve, null, ye(e.propertyCollections[d], (u) => (g(), V(xt, {
|
|
2500
2566
|
key: u.key,
|
|
2501
2567
|
item: u
|
|
2502
2568
|
}, Te({
|
|
@@ -2519,18 +2585,18 @@ const Di = {
|
|
|
2519
2585
|
key: "0"
|
|
2520
2586
|
} : void 0
|
|
2521
2587
|
]), 1032, ["item"]))), 128))
|
|
2522
|
-
], 10,
|
|
2588
|
+
], 10, Yi))), 128))
|
|
2523
2589
|
])) : G("", !0),
|
|
2524
|
-
e.format === "json" ? (g(),
|
|
2525
|
-
|
|
2590
|
+
e.format === "json" ? (g(), M("div", Qi, [
|
|
2591
|
+
F(c, {
|
|
2526
2592
|
id: "config-card-codeblock",
|
|
2527
2593
|
code: a.value,
|
|
2528
2594
|
language: "json",
|
|
2529
2595
|
theme: "dark"
|
|
2530
2596
|
}, null, 8, ["code"])
|
|
2531
2597
|
])) : G("", !0),
|
|
2532
|
-
e.format === "yaml" ? (g(),
|
|
2533
|
-
|
|
2598
|
+
e.format === "yaml" ? (g(), M("div", Xi, [
|
|
2599
|
+
F(c, {
|
|
2534
2600
|
id: "config-card-codeblock",
|
|
2535
2601
|
code: i.value,
|
|
2536
2602
|
language: "yaml",
|
|
@@ -2540,18 +2606,18 @@ const Di = {
|
|
|
2540
2606
|
], 64);
|
|
2541
2607
|
};
|
|
2542
2608
|
}
|
|
2543
|
-
}),
|
|
2609
|
+
}), ts = /* @__PURE__ */ Ce(es, [["__scopeId", "data-v-6c45e9e4"]]), ln = "24px", ns = (e, n) => {
|
|
2544
2610
|
const t = e.__vccOpts || e;
|
|
2545
2611
|
for (const [r, o] of n)
|
|
2546
2612
|
t[r] = o;
|
|
2547
2613
|
return t;
|
|
2548
|
-
},
|
|
2614
|
+
}, rs = (e) => (yr("data-v-dd88a2bb"), e = e(), hr(), e), os = ["aria-hidden"], as = {
|
|
2549
2615
|
key: 0,
|
|
2550
2616
|
"data-testid": "kui-icon-svg-title"
|
|
2551
|
-
},
|
|
2617
|
+
}, is = /* @__PURE__ */ rs(() => /* @__PURE__ */ R("path", {
|
|
2552
2618
|
d: "M14 9.9V8.2C14.55 7.96667 15.1125 7.79167 15.6875 7.675C16.2625 7.55833 16.8667 7.5 17.5 7.5C17.9333 7.5 18.3583 7.53333 18.775 7.6C19.1917 7.66667 19.6 7.75 20 7.85V9.45C19.6 9.3 19.1958 9.1875 18.7875 9.1125C18.3792 9.0375 17.95 9 17.5 9C16.8667 9 16.2583 9.07917 15.675 9.2375C15.0917 9.39583 14.5333 9.61667 14 9.9ZM14 15.4V13.7C14.55 13.4667 15.1125 13.2917 15.6875 13.175C16.2625 13.0583 16.8667 13 17.5 13C17.9333 13 18.3583 13.0333 18.775 13.1C19.1917 13.1667 19.6 13.25 20 13.35V14.95C19.6 14.8 19.1958 14.6875 18.7875 14.6125C18.3792 14.5375 17.95 14.5 17.5 14.5C16.8667 14.5 16.2583 14.575 15.675 14.725C15.0917 14.875 14.5333 15.1 14 15.4ZM14 12.65V10.95C14.55 10.7167 15.1125 10.5417 15.6875 10.425C16.2625 10.3083 16.8667 10.25 17.5 10.25C17.9333 10.25 18.3583 10.2833 18.775 10.35C19.1917 10.4167 19.6 10.5 20 10.6V12.2C19.6 12.05 19.1958 11.9375 18.7875 11.8625C18.3792 11.7875 17.95 11.75 17.5 11.75C16.8667 11.75 16.2583 11.8292 15.675 11.9875C15.0917 12.1458 14.5333 12.3667 14 12.65ZM6.5 16C7.28333 16 8.04583 16.0875 8.7875 16.2625C9.52917 16.4375 10.2667 16.7 11 17.05V7.2C10.3167 6.8 9.59167 6.5 8.825 6.3C8.05833 6.1 7.28333 6 6.5 6C5.9 6 5.30417 6.05833 4.7125 6.175C4.12083 6.29167 3.55 6.46667 3 6.7V16.6C3.58333 16.4 4.1625 16.25 4.7375 16.15C5.3125 16.05 5.9 16 6.5 16ZM13 17.05C13.7333 16.7 14.4708 16.4375 15.2125 16.2625C15.9542 16.0875 16.7167 16 17.5 16C18.1 16 18.6875 16.05 19.2625 16.15C19.8375 16.25 20.4167 16.4 21 16.6V6.7C20.45 6.46667 19.8792 6.29167 19.2875 6.175C18.6958 6.05833 18.1 6 17.5 6C16.7167 6 15.9417 6.1 15.175 6.3C14.4083 6.5 13.6833 6.8 13 7.2V17.05ZM12 20C11.2 19.3667 10.3333 18.875 9.4 18.525C8.46667 18.175 7.5 18 6.5 18C5.8 18 5.1125 18.0917 4.4375 18.275C3.7625 18.4583 3.11667 18.7167 2.5 19.05C2.15 19.2333 1.8125 19.225 1.4875 19.025C1.1625 18.825 1 18.5333 1 18.15V6.1C1 5.91667 1.04583 5.74167 1.1375 5.575C1.22917 5.40833 1.36667 5.28333 1.55 5.2C2.31667 4.8 3.11667 4.5 3.95 4.3C4.78333 4.1 5.63333 4 6.5 4C7.46667 4 8.4125 4.125 9.3375 4.375C10.2625 4.625 11.15 5 12 5.5C12.85 5 13.7375 4.625 14.6625 4.375C15.5875 4.125 16.5333 4 17.5 4C18.3667 4 19.2167 4.1 20.05 4.3C20.8833 4.5 21.6833 4.8 22.45 5.2C22.6333 5.28333 22.7708 5.40833 22.8625 5.575C22.9542 5.74167 23 5.91667 23 6.1V18.15C23 18.5333 22.8375 18.825 22.5125 19.025C22.1875 19.225 21.85 19.2333 21.5 19.05C20.8833 18.7167 20.2375 18.4583 19.5625 18.275C18.8875 18.0917 18.2 18 17.5 18C16.5 18 15.5333 18.175 14.6 18.525C13.6667 18.875 12.8 19.3667 12 20Z",
|
|
2553
2619
|
fill: "currentColor"
|
|
2554
|
-
}, null, -1)),
|
|
2620
|
+
}, null, -1)), ss = /* @__PURE__ */ ae({
|
|
2555
2621
|
__name: "BookIcon",
|
|
2556
2622
|
props: {
|
|
2557
2623
|
/** The accessibility text provided to screen readers */
|
|
@@ -2603,7 +2669,7 @@ const Di = {
|
|
|
2603
2669
|
}
|
|
2604
2670
|
},
|
|
2605
2671
|
setup(e) {
|
|
2606
|
-
const n = e, t =
|
|
2672
|
+
const n = e, t = j(() => {
|
|
2607
2673
|
if (typeof n.size == "number" && n.size > 0)
|
|
2608
2674
|
return `${n.size}px`;
|
|
2609
2675
|
if (typeof n.size == "string") {
|
|
@@ -2612,7 +2678,7 @@ const Di = {
|
|
|
2612
2678
|
return `${a}px`;
|
|
2613
2679
|
}
|
|
2614
2680
|
return ln;
|
|
2615
|
-
}), r =
|
|
2681
|
+
}), r = j(() => ({
|
|
2616
2682
|
boxSizing: "border-box",
|
|
2617
2683
|
color: n.color,
|
|
2618
2684
|
display: n.display,
|
|
@@ -2620,14 +2686,14 @@ const Di = {
|
|
|
2620
2686
|
lineHeight: "0",
|
|
2621
2687
|
width: t.value
|
|
2622
2688
|
}));
|
|
2623
|
-
return (o, a) => (g(), V(
|
|
2689
|
+
return (o, a) => (g(), V(He(e.as), {
|
|
2624
2690
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2625
2691
|
class: "kui-icon book-icon",
|
|
2626
2692
|
"data-testid": "kui-icon-wrapper-book-icon",
|
|
2627
2693
|
style: mr(r.value)
|
|
2628
2694
|
}, {
|
|
2629
2695
|
default: h(() => [
|
|
2630
|
-
(g(),
|
|
2696
|
+
(g(), M("svg", {
|
|
2631
2697
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2632
2698
|
"data-testid": "kui-icon-svg-book-icon",
|
|
2633
2699
|
fill: "none",
|
|
@@ -2637,23 +2703,23 @@ const Di = {
|
|
|
2637
2703
|
width: "100%",
|
|
2638
2704
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2639
2705
|
}, [
|
|
2640
|
-
e.title ? (g(),
|
|
2641
|
-
|
|
2642
|
-
], 8,
|
|
2706
|
+
e.title ? (g(), M("title", as, K(e.title), 1)) : G("", !0),
|
|
2707
|
+
is
|
|
2708
|
+
], 8, os))
|
|
2643
2709
|
]),
|
|
2644
2710
|
_: 1
|
|
2645
2711
|
}, 8, ["aria-hidden", "style"]));
|
|
2646
2712
|
}
|
|
2647
|
-
}),
|
|
2713
|
+
}), ls = /* @__PURE__ */ ns(ss, [["__scopeId", "data-v-dd88a2bb"]]), us = { "data-testid": "config-card-title" }, cs = { class: "config-card-actions" }, ds = ["href"], ps = {
|
|
2648
2714
|
key: 2,
|
|
2649
2715
|
class: "config-card-details-section"
|
|
2650
|
-
},
|
|
2716
|
+
}, fs = {
|
|
2651
2717
|
key: 3,
|
|
2652
2718
|
class: "config-card-details-section"
|
|
2653
|
-
},
|
|
2719
|
+
}, ms = ["data-testid"], gs = {
|
|
2654
2720
|
key: 0,
|
|
2655
2721
|
class: "config-card-prop-section-title"
|
|
2656
|
-
},
|
|
2722
|
+
}, ys = /* @__PURE__ */ ae({
|
|
2657
2723
|
__name: "EntityBaseConfigCard",
|
|
2658
2724
|
props: {
|
|
2659
2725
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2744,7 +2810,7 @@ const Di = {
|
|
|
2744
2810
|
label: "YAML",
|
|
2745
2811
|
value: "yaml"
|
|
2746
2812
|
}
|
|
2747
|
-
], d =
|
|
2813
|
+
], d = E("structured"), u = (w) => {
|
|
2748
2814
|
d.value = w == null ? void 0 : w.value;
|
|
2749
2815
|
}, m = {
|
|
2750
2816
|
id: {
|
|
@@ -2780,19 +2846,19 @@ const Di = {
|
|
|
2780
2846
|
// the last property displayed
|
|
2781
2847
|
section: be.Basic
|
|
2782
2848
|
}
|
|
2783
|
-
}, f =
|
|
2849
|
+
}, f = E(!1), I = E(!1), v = E(""), p = E(), S = j(() => {
|
|
2784
2850
|
var w, N, B;
|
|
2785
2851
|
if (!p.value)
|
|
2786
2852
|
return [];
|
|
2787
|
-
const
|
|
2853
|
+
const C = [], x = Object.keys(p.value).length;
|
|
2788
2854
|
for (const T in p.value) {
|
|
2789
2855
|
const P = (N = (w = r.configSchema) == null ? void 0 : w[T]) == null ? void 0 : N.order, J = (B = m[T]) == null ? void 0 : B.order;
|
|
2790
2856
|
let Q = x;
|
|
2791
|
-
(J || J === 0) && (Q = J === -1 ? x + 1 : J), P && (Q = P === -1 ? x + 1 : P),
|
|
2857
|
+
(J || J === 0) && (Q = J === -1 ? x + 1 : J), P && (Q = P === -1 ? x + 1 : P), C.push([T, Q]);
|
|
2792
2858
|
}
|
|
2793
|
-
return
|
|
2859
|
+
return C.sort(function(T, P) {
|
|
2794
2860
|
return T[1] - P[1];
|
|
2795
|
-
}),
|
|
2861
|
+
}), C.map((T) => {
|
|
2796
2862
|
var P, J;
|
|
2797
2863
|
const Q = T[0], X = (P = p.value) == null ? void 0 : P[Q], ee = ((J = r.configSchema) == null ? void 0 : J[Q]) || {}, ie = m[Q];
|
|
2798
2864
|
return {
|
|
@@ -2805,15 +2871,15 @@ const Di = {
|
|
|
2805
2871
|
section: ee.section ?? ((ie == null ? void 0 : ie.section) || be.Advanced)
|
|
2806
2872
|
};
|
|
2807
2873
|
}).filter((T) => !T.hidden && T.key !== r.pluginConfigKey);
|
|
2808
|
-
}), b =
|
|
2874
|
+
}), b = j(() => {
|
|
2809
2875
|
var w, N;
|
|
2810
2876
|
if (!p.value || !r.pluginConfigKey)
|
|
2811
2877
|
return [];
|
|
2812
|
-
const B = p.value[r.pluginConfigKey] || {},
|
|
2878
|
+
const B = p.value[r.pluginConfigKey] || {}, C = Object.keys(B).length, x = [];
|
|
2813
2879
|
for (const T in B) {
|
|
2814
2880
|
const P = (N = (w = r.pluginConfigSchema) == null ? void 0 : w[T]) == null ? void 0 : N.order, J = B[T];
|
|
2815
|
-
let Q = J != null && J !== "" ?
|
|
2816
|
-
P && (Q = P === -1 ?
|
|
2881
|
+
let Q = J != null && J !== "" ? C - 1 : C;
|
|
2882
|
+
P && (Q = P === -1 ? C + 1 : P), x.push([T, Q]);
|
|
2817
2883
|
}
|
|
2818
2884
|
return x.sort(function(T, P) {
|
|
2819
2885
|
return T[1] - P[1];
|
|
@@ -2830,21 +2896,21 @@ const Di = {
|
|
|
2830
2896
|
section: be.Plugin
|
|
2831
2897
|
};
|
|
2832
2898
|
}).filter((T) => !T.hidden);
|
|
2833
|
-
}),
|
|
2834
|
-
var w, N, B,
|
|
2899
|
+
}), k = j(() => {
|
|
2900
|
+
var w, N, B, C;
|
|
2835
2901
|
return {
|
|
2836
2902
|
basic: (w = S.value) == null ? void 0 : w.filter((x) => x.section === be.Basic),
|
|
2837
2903
|
advanced: (N = S.value) == null ? void 0 : N.filter((x) => x.section === be.Advanced),
|
|
2838
|
-
plugin: (
|
|
2904
|
+
plugin: (C = b.value) == null ? void 0 : C.concat((B = S.value) == null ? void 0 : B.filter((x) => x.section === be.Plugin))
|
|
2839
2905
|
};
|
|
2840
|
-
}), A =
|
|
2906
|
+
}), A = j(() => {
|
|
2841
2907
|
const w = [];
|
|
2842
|
-
return
|
|
2843
|
-
}), ne = (w) => !!(w.tooltip || o[`${w.key}-label-tooltip`]), pe =
|
|
2908
|
+
return k.value.basic.length && w.push("basic"), k.value.advanced.length && w.push("advanced"), k.value.plugin.length && w.push("plugin"), w;
|
|
2909
|
+
}), ne = (w) => !!(w.tooltip || o[`${w.key}-label-tooltip`]), pe = j(() => {
|
|
2844
2910
|
var w, N;
|
|
2845
2911
|
let B = `${r.config.apiBaseUrl}${r.fetchUrl}`;
|
|
2846
2912
|
return r.config.app === "konnect" ? B = B.replace(/{controlPlaneId}/gi, ((w = r.config) == null ? void 0 : w.controlPlaneId) || "") : r.config.app === "kongManager" && (B = B.replace(/\/{workspace}/gi, (N = r.config) != null && N.workspace ? `/${r.config.workspace}` : "")), B = B.replace(/{id}/gi, r.config.entityId), B;
|
|
2847
|
-
}),
|
|
2913
|
+
}), z = (w) => {
|
|
2848
2914
|
p.value && w(JSON.stringify(p.value)) ? n("copy:success", p.value) : n("copy:error");
|
|
2849
2915
|
};
|
|
2850
2916
|
return xe(f, (w) => {
|
|
@@ -2870,10 +2936,10 @@ const Di = {
|
|
|
2870
2936
|
f.value = !1;
|
|
2871
2937
|
}
|
|
2872
2938
|
}), (w, N) => {
|
|
2873
|
-
const B =
|
|
2939
|
+
const B = q("KLabel"), C = q("KSelect"), x = q("KButton"), T = q("KClipboardProvider"), P = q("KSkeleton"), J = q("KEmptyState"), Q = q("KCard");
|
|
2874
2940
|
return g(), V(Q, { class: "kong-ui-entity-base-config-card" }, Te({
|
|
2875
2941
|
actions: h(() => [
|
|
2876
|
-
R("div",
|
|
2942
|
+
R("div", cs, [
|
|
2877
2943
|
Y(w.$slots, "actions", {}, void 0, !0),
|
|
2878
2944
|
e.config.jsonYamlEnabled ? (g(), V(B, {
|
|
2879
2945
|
key: 0,
|
|
@@ -2881,11 +2947,11 @@ const Di = {
|
|
|
2881
2947
|
"data-testid": "config-format-select-label"
|
|
2882
2948
|
}, {
|
|
2883
2949
|
default: h(() => [
|
|
2884
|
-
Z(
|
|
2950
|
+
Z(K(e.label), 1)
|
|
2885
2951
|
]),
|
|
2886
2952
|
_: 1
|
|
2887
2953
|
})) : G("", !0),
|
|
2888
|
-
e.config.jsonYamlEnabled ? (g(), V(
|
|
2954
|
+
e.config.jsonYamlEnabled ? (g(), V(C, {
|
|
2889
2955
|
key: 1,
|
|
2890
2956
|
appearance: "select",
|
|
2891
2957
|
"data-testid": "select-config-format",
|
|
@@ -2904,8 +2970,8 @@ const Di = {
|
|
|
2904
2970
|
rel: "noopener",
|
|
2905
2971
|
target: "_blank"
|
|
2906
2972
|
}, [
|
|
2907
|
-
|
|
2908
|
-
], 8,
|
|
2973
|
+
F(y(ls), { size: y(yo) }, null, 8, ["size"])
|
|
2974
|
+
], 8, ds)
|
|
2909
2975
|
]),
|
|
2910
2976
|
_: 1
|
|
2911
2977
|
})) : G("", !0),
|
|
@@ -2915,10 +2981,10 @@ const Di = {
|
|
|
2915
2981
|
key: 0,
|
|
2916
2982
|
appearance: "btn-link",
|
|
2917
2983
|
"data-testid": "json-copy-button",
|
|
2918
|
-
onClick: (ee) =>
|
|
2984
|
+
onClick: (ee) => z(X)
|
|
2919
2985
|
}, {
|
|
2920
2986
|
default: h(() => [
|
|
2921
|
-
Z(
|
|
2987
|
+
Z(K(y(a)("baseConfigCard.actions.copy")), 1)
|
|
2922
2988
|
]),
|
|
2923
2989
|
_: 2
|
|
2924
2990
|
}, 1032, ["onClick"])) : G("", !0)
|
|
@@ -2939,15 +3005,15 @@ const Di = {
|
|
|
2939
3005
|
"is-error": ""
|
|
2940
3006
|
}, {
|
|
2941
3007
|
message: h(() => [
|
|
2942
|
-
R("h3", null,
|
|
3008
|
+
R("h3", null, K(v.value), 1)
|
|
2943
3009
|
]),
|
|
2944
3010
|
_: 1
|
|
2945
3011
|
})) : G("", !0),
|
|
2946
|
-
e.config.jsonYamlEnabled ? (g(),
|
|
2947
|
-
|
|
3012
|
+
e.config.jsonYamlEnabled ? (g(), M("div", ps, [
|
|
3013
|
+
F(ts, {
|
|
2948
3014
|
format: d.value,
|
|
2949
3015
|
"prop-list-types": A.value,
|
|
2950
|
-
"property-collections":
|
|
3016
|
+
"property-collections": k.value,
|
|
2951
3017
|
record: p.value
|
|
2952
3018
|
}, Te({ _: 2 }, [
|
|
2953
3019
|
ye(Object.keys(w.$slots), (X) => ({
|
|
@@ -2960,14 +3026,14 @@ const Di = {
|
|
|
2960
3026
|
])
|
|
2961
3027
|
}))
|
|
2962
3028
|
]), 1032, ["format", "prop-list-types", "property-collections", "record"])
|
|
2963
|
-
])) : (g(),
|
|
2964
|
-
(g(!0),
|
|
3029
|
+
])) : (g(), M("div", fs, [
|
|
3030
|
+
(g(!0), M(ve, null, ye(A.value, (X) => (g(), M("div", {
|
|
2965
3031
|
key: `config-card-details-${X}-props`,
|
|
2966
|
-
class:
|
|
3032
|
+
class: Fe(`config-card-details-${X}-props`),
|
|
2967
3033
|
"data-testid": `config-card-details-${X}-props`
|
|
2968
3034
|
}, [
|
|
2969
|
-
X !== "basic" ? (g(),
|
|
2970
|
-
(g(!0),
|
|
3035
|
+
X !== "basic" ? (g(), M("div", gs, K(X === "advanced" ? y(a)("baseConfigCard.sections.advanced") : y(a)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
|
|
3036
|
+
(g(!0), M(ve, null, ye(k.value[X], (ee) => (g(), V(xt, {
|
|
2971
3037
|
key: ee.key,
|
|
2972
3038
|
item: ee
|
|
2973
3039
|
}, Te({
|
|
@@ -2990,7 +3056,7 @@ const Di = {
|
|
|
2990
3056
|
key: "0"
|
|
2991
3057
|
} : void 0
|
|
2992
3058
|
]), 1032, ["item"]))), 128))
|
|
2993
|
-
], 10,
|
|
3059
|
+
], 10, ms))), 128))
|
|
2994
3060
|
]))
|
|
2995
3061
|
]),
|
|
2996
3062
|
_: 2
|
|
@@ -2998,9 +3064,9 @@ const Di = {
|
|
|
2998
3064
|
e.hideTitle ? void 0 : {
|
|
2999
3065
|
name: "title",
|
|
3000
3066
|
fn: h(() => [
|
|
3001
|
-
R("div",
|
|
3067
|
+
R("div", us, [
|
|
3002
3068
|
Y(w.$slots, "title", {}, () => [
|
|
3003
|
-
Z(
|
|
3069
|
+
Z(K(y(a)("baseConfigCard.title")), 1)
|
|
3004
3070
|
], !0)
|
|
3005
3071
|
])
|
|
3006
3072
|
]),
|
|
@@ -3009,10 +3075,10 @@ const Di = {
|
|
|
3009
3075
|
]), 1024);
|
|
3010
3076
|
};
|
|
3011
3077
|
}
|
|
3012
|
-
}),
|
|
3078
|
+
}), hs = /* @__PURE__ */ Ce(ys, [["__scopeId", "data-v-64349aa2"]]), vs = ["onReset", "onSubmit"], bs = {
|
|
3013
3079
|
class: "form-actions",
|
|
3014
3080
|
"data-testid": "form-actions"
|
|
3015
|
-
},
|
|
3081
|
+
}, ks = /* @__PURE__ */ ae({
|
|
3016
3082
|
__name: "EntityBaseForm",
|
|
3017
3083
|
props: {
|
|
3018
3084
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3064,7 +3130,7 @@ const Di = {
|
|
|
3064
3130
|
var t;
|
|
3065
3131
|
const r = e, o = wt(), { i18n: { t: a } } = ue.useI18n(), { getMessageFromError: i } = ue.useErrors(), { axiosInstance: s } = ue.useAxios({
|
|
3066
3132
|
headers: (t = r.config) == null ? void 0 : t.requestHeaders
|
|
3067
|
-
}), l =
|
|
3133
|
+
}), l = E(!1), c = E(!1), d = E(""), u = j(() => r.canSubmit === !1 || r.isReadonly), m = j(() => {
|
|
3068
3134
|
var p, S;
|
|
3069
3135
|
if (!r.editId)
|
|
3070
3136
|
return "";
|
|
@@ -3092,13 +3158,13 @@ const Di = {
|
|
|
3092
3158
|
l.value = !1;
|
|
3093
3159
|
}
|
|
3094
3160
|
}), (p, S) => {
|
|
3095
|
-
const b =
|
|
3161
|
+
const b = q("KSkeleton"), k = q("KEmptyState"), A = q("KAlert"), ne = q("KButton"), pe = q("KCard");
|
|
3096
3162
|
return g(), V(pe, { class: "kong-ui-entity-base-form" }, {
|
|
3097
3163
|
body: h(() => [
|
|
3098
3164
|
l.value ? (g(), V(b, {
|
|
3099
3165
|
key: 0,
|
|
3100
3166
|
type: "form"
|
|
3101
|
-
})) : c.value ? (g(), V(
|
|
3167
|
+
})) : c.value ? (g(), V(k, {
|
|
3102
3168
|
key: 1,
|
|
3103
3169
|
"cta-text": y(a)("baseForm.actions.back"),
|
|
3104
3170
|
"data-testid": "form-fetch-error",
|
|
@@ -3106,10 +3172,10 @@ const Di = {
|
|
|
3106
3172
|
"is-error": !0
|
|
3107
3173
|
}, {
|
|
3108
3174
|
message: h(() => [
|
|
3109
|
-
R("h3", null,
|
|
3175
|
+
R("h3", null, K(d.value), 1)
|
|
3110
3176
|
]),
|
|
3111
3177
|
_: 1
|
|
3112
|
-
}, 8, ["cta-text"])) : (g(),
|
|
3178
|
+
}, 8, ["cta-text"])) : (g(), M("form", {
|
|
3113
3179
|
key: 2,
|
|
3114
3180
|
"data-testid": "form-content",
|
|
3115
3181
|
onReset: rt(I, ["prevent"]),
|
|
@@ -3122,42 +3188,42 @@ const Di = {
|
|
|
3122
3188
|
appearance: "danger",
|
|
3123
3189
|
"data-testid": "form-error"
|
|
3124
3190
|
}, null, 8, ["alert-message"])) : G("", !0),
|
|
3125
|
-
R("div",
|
|
3191
|
+
R("div", bs, [
|
|
3126
3192
|
Y(p.$slots, "form-actions", {}, () => [
|
|
3127
|
-
|
|
3193
|
+
F(ne, {
|
|
3128
3194
|
appearance: "outline",
|
|
3129
3195
|
"data-testid": "form-cancel",
|
|
3130
3196
|
disabled: e.isReadonly,
|
|
3131
3197
|
type: "reset"
|
|
3132
3198
|
}, {
|
|
3133
3199
|
default: h(() => [
|
|
3134
|
-
Z(
|
|
3200
|
+
Z(K(y(a)("baseForm.actions.cancel")), 1)
|
|
3135
3201
|
]),
|
|
3136
3202
|
_: 1
|
|
3137
3203
|
}, 8, ["disabled"]),
|
|
3138
|
-
|
|
3204
|
+
F(ne, {
|
|
3139
3205
|
appearance: "primary",
|
|
3140
3206
|
"data-testid": "form-submit",
|
|
3141
3207
|
disabled: u.value,
|
|
3142
3208
|
type: "submit"
|
|
3143
3209
|
}, {
|
|
3144
3210
|
default: h(() => [
|
|
3145
|
-
Z(
|
|
3211
|
+
Z(K(y(a)("baseForm.actions.save")), 1)
|
|
3146
3212
|
]),
|
|
3147
3213
|
_: 1
|
|
3148
3214
|
}, 8, ["disabled"])
|
|
3149
3215
|
], !0)
|
|
3150
3216
|
])
|
|
3151
|
-
], 40,
|
|
3217
|
+
], 40, vs))
|
|
3152
3218
|
]),
|
|
3153
3219
|
_: 3
|
|
3154
3220
|
});
|
|
3155
3221
|
};
|
|
3156
3222
|
}
|
|
3157
|
-
}),
|
|
3223
|
+
}), Cs = /* @__PURE__ */ Ce(ks, [["__scopeId", "data-v-44a90aae"]]), _s = {
|
|
3158
3224
|
key: 0,
|
|
3159
3225
|
"data-testid": "first-col"
|
|
3160
|
-
},
|
|
3226
|
+
}, ws = /* @__PURE__ */ ae({
|
|
3161
3227
|
__name: "EntityBaseTableCell",
|
|
3162
3228
|
props: {
|
|
3163
3229
|
keyName: {
|
|
@@ -3170,13 +3236,13 @@ const Di = {
|
|
|
3170
3236
|
}
|
|
3171
3237
|
},
|
|
3172
3238
|
setup(e) {
|
|
3173
|
-
const n = e, t =
|
|
3239
|
+
const n = e, t = j(() => {
|
|
3174
3240
|
var v;
|
|
3175
3241
|
return ((v = n.rowEl) == null ? void 0 : v.querySelector(`[data-testid="${n.keyName}"]`)) || null;
|
|
3176
|
-
}), r =
|
|
3242
|
+
}), r = j(() => {
|
|
3177
3243
|
var v;
|
|
3178
3244
|
return ((v = t.value) == null ? void 0 : v.querySelector('[data-testid="first-col"]')) || null;
|
|
3179
|
-
}), o =
|
|
3245
|
+
}), o = j(() => {
|
|
3180
3246
|
var v, p;
|
|
3181
3247
|
const S = (v = n.rowEl) == null ? void 0 : v.querySelectorAll("td");
|
|
3182
3248
|
return S ? ((p = S[0]) == null ? void 0 : p.getAttribute("data-testid")) === n.keyName : !1;
|
|
@@ -3187,7 +3253,7 @@ const Di = {
|
|
|
3187
3253
|
}, s = () => {
|
|
3188
3254
|
var v, p, S;
|
|
3189
3255
|
c.value = ((v = r.value) == null ? void 0 : v.getBoundingClientRect().width) || 0, d.value = ((p = t.value) == null ? void 0 : p.clientWidth) || 0, u.value = ((S = l.value) == null ? void 0 : S.innerText) || "";
|
|
3190
|
-
}, l =
|
|
3256
|
+
}, l = E({}), c = E(0), d = E(0), u = E(""), m = j(() => [r.value, t.value]), f = xe(
|
|
3191
3257
|
m,
|
|
3192
3258
|
(v) => {
|
|
3193
3259
|
if (o.value && (i(), "ResizeObserver" in window && window)) {
|
|
@@ -3201,20 +3267,20 @@ const Di = {
|
|
|
3201
3267
|
}
|
|
3202
3268
|
},
|
|
3203
3269
|
{ immediate: !0, flush: "post", deep: !0 }
|
|
3204
|
-
), I =
|
|
3270
|
+
), I = j(() => o.value ? c.value > d.value : !1);
|
|
3205
3271
|
return pr(() => {
|
|
3206
3272
|
s();
|
|
3207
3273
|
}), fr(() => {
|
|
3208
3274
|
f();
|
|
3209
3275
|
}), (v, p) => {
|
|
3210
|
-
const S =
|
|
3211
|
-
return g(),
|
|
3276
|
+
const S = q("KTooltip");
|
|
3277
|
+
return g(), M("span", {
|
|
3212
3278
|
ref_key: "contentRef",
|
|
3213
3279
|
ref: l,
|
|
3214
3280
|
class: "content-wrapper"
|
|
3215
3281
|
}, [
|
|
3216
|
-
o.value ? (g(),
|
|
3217
|
-
|
|
3282
|
+
o.value ? (g(), M("span", _s, [
|
|
3283
|
+
F(S, {
|
|
3218
3284
|
label: I.value ? u.value : "",
|
|
3219
3285
|
"max-width": "300",
|
|
3220
3286
|
placement: "bottomStart"
|
|
@@ -3228,10 +3294,10 @@ const Di = {
|
|
|
3228
3294
|
], 512);
|
|
3229
3295
|
};
|
|
3230
3296
|
}
|
|
3231
|
-
}),
|
|
3297
|
+
}), Is = /* @__PURE__ */ Ce(ws, [["__scopeId", "data-v-e42a20c9"]]), As = { class: "toolbar-container" }, Ss = {
|
|
3232
3298
|
key: 0,
|
|
3233
3299
|
class: "toolbar-button-container"
|
|
3234
|
-
},
|
|
3300
|
+
}, xs = ["data-testid"], Ts = /* @__PURE__ */ ae({
|
|
3235
3301
|
__name: "EntityBaseTable",
|
|
3236
3302
|
props: {
|
|
3237
3303
|
// table header configuration
|
|
@@ -3340,32 +3406,32 @@ const Di = {
|
|
|
3340
3406
|
},
|
|
3341
3407
|
emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
|
|
3342
3408
|
setup(e, { emit: n }) {
|
|
3343
|
-
const t = e, { i18n: { t: r } } = ue.useI18n(), o =
|
|
3344
|
-
const
|
|
3409
|
+
const t = e, { i18n: { t: r } } = ue.useI18n(), o = j(() => t.cacheIdentifier || t.preferencesStorageKey), a = (k) => k.hasData || !!t.query, i = j(() => {
|
|
3410
|
+
const k = [];
|
|
3345
3411
|
return Object.keys(t.tableHeaders).forEach((A) => {
|
|
3346
3412
|
const ne = t.tableHeaders[A];
|
|
3347
|
-
|
|
3413
|
+
k.push({
|
|
3348
3414
|
label: ne.label ?? A,
|
|
3349
3415
|
key: A,
|
|
3350
3416
|
sortable: ne.sortable ?? !1
|
|
3351
3417
|
});
|
|
3352
|
-
}), t.enableEntityActions &&
|
|
3418
|
+
}), t.enableEntityActions && k.push({
|
|
3353
3419
|
key: "actions",
|
|
3354
3420
|
hideLabel: !0
|
|
3355
|
-
}),
|
|
3356
|
-
}), s = (
|
|
3357
|
-
"data-rowid":
|
|
3358
|
-
"data-testid":
|
|
3359
|
-
...t.rowAttributes(
|
|
3360
|
-
}), l =
|
|
3421
|
+
}), k;
|
|
3422
|
+
}), s = (k) => ({
|
|
3423
|
+
"data-rowid": k.id,
|
|
3424
|
+
"data-testid": k.name,
|
|
3425
|
+
...t.rowAttributes(k)
|
|
3426
|
+
}), l = E({}), c = (k) => {
|
|
3361
3427
|
var A;
|
|
3362
|
-
return (A = l.value) == null ? void 0 : A.$el.querySelector(`[data-rowid="${
|
|
3363
|
-
}, d = (
|
|
3428
|
+
return (A = l.value) == null ? void 0 : A.$el.querySelector(`[data-rowid="${k.id}"]`);
|
|
3429
|
+
}, d = (k) => {
|
|
3364
3430
|
const A = {
|
|
3365
|
-
"data-testid":
|
|
3366
|
-
...t.cellAttributes(
|
|
3431
|
+
"data-testid": k.headerKey,
|
|
3432
|
+
...t.cellAttributes(k)
|
|
3367
3433
|
};
|
|
3368
|
-
return
|
|
3434
|
+
return k.colIndex === 0 && (A.style = {
|
|
3369
3435
|
maxWidth: "250px",
|
|
3370
3436
|
overflowX: "hidden",
|
|
3371
3437
|
textOverflow: "ellipsis"
|
|
@@ -3374,27 +3440,27 @@ const Di = {
|
|
|
3374
3440
|
n("empty-state-cta-clicked"), m();
|
|
3375
3441
|
}, m = () => {
|
|
3376
3442
|
n("clear-search-input");
|
|
3377
|
-
}, f =
|
|
3443
|
+
}, f = j(() => t.disableRowClick ? void 0 : (k, A) => {
|
|
3378
3444
|
n("click:row", A);
|
|
3379
|
-
}), I = (
|
|
3380
|
-
n("sort",
|
|
3381
|
-
}, { setTablePreferences: v, getTablePreferences: p } =
|
|
3382
|
-
const
|
|
3445
|
+
}), I = (k) => {
|
|
3446
|
+
n("sort", k);
|
|
3447
|
+
}, { setTablePreferences: v, getTablePreferences: p } = Sr(), S = j(() => {
|
|
3448
|
+
const k = p(t.preferencesStorageKey);
|
|
3383
3449
|
return {
|
|
3384
3450
|
...t.initialFetcherParams,
|
|
3385
|
-
...
|
|
3451
|
+
...k
|
|
3386
3452
|
};
|
|
3387
|
-
}), b = (
|
|
3388
|
-
t.preferencesStorageKey && v(t.preferencesStorageKey,
|
|
3453
|
+
}), b = (k) => {
|
|
3454
|
+
t.preferencesStorageKey && v(t.preferencesStorageKey, k);
|
|
3389
3455
|
};
|
|
3390
|
-
return (
|
|
3391
|
-
const ne =
|
|
3456
|
+
return (k, A) => {
|
|
3457
|
+
const ne = q("KIcon"), pe = q("KButton"), z = q("KDropdownMenu"), w = q("KTable"), N = q("KCard");
|
|
3392
3458
|
return g(), V(N, {
|
|
3393
3459
|
class: "kong-ui-entity-base-table",
|
|
3394
3460
|
title: e.title
|
|
3395
3461
|
}, {
|
|
3396
3462
|
body: h(() => [
|
|
3397
|
-
|
|
3463
|
+
F(w, {
|
|
3398
3464
|
ref_key: "tableRefs",
|
|
3399
3465
|
ref: l,
|
|
3400
3466
|
"cache-identifier": o.value,
|
|
@@ -3426,40 +3492,40 @@ const Di = {
|
|
|
3426
3492
|
"onUpdate:tablePreferences": b
|
|
3427
3493
|
}, Te({
|
|
3428
3494
|
toolbar: h(({ state: B }) => [
|
|
3429
|
-
et(R("div",
|
|
3430
|
-
Y(
|
|
3431
|
-
|
|
3432
|
-
Y(
|
|
3495
|
+
et(R("div", As, [
|
|
3496
|
+
Y(k.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3497
|
+
k.$slots["toolbar-button"] ? (g(), M("div", Ss, [
|
|
3498
|
+
Y(k.$slots, "toolbar-button", {}, void 0, !0)
|
|
3433
3499
|
])) : G("", !0)
|
|
3434
3500
|
], 512), [
|
|
3435
3501
|
[tt, a(B)]
|
|
3436
3502
|
])
|
|
3437
3503
|
]),
|
|
3438
|
-
actions: h(({ row: B, rowKey:
|
|
3504
|
+
actions: h(({ row: B, rowKey: C, rowValue: x }) => [
|
|
3439
3505
|
R("div", {
|
|
3440
3506
|
class: "actions-container",
|
|
3441
3507
|
"data-testid": B.name
|
|
3442
3508
|
}, [
|
|
3443
|
-
|
|
3509
|
+
F(z, {
|
|
3444
3510
|
"kpop-attributes": { placement: "bottomEnd" },
|
|
3445
3511
|
width: e.dropdownMenuWidth
|
|
3446
3512
|
}, {
|
|
3447
3513
|
items: h(() => [
|
|
3448
|
-
Y(
|
|
3514
|
+
Y(k.$slots, "actions", {
|
|
3449
3515
|
row: B,
|
|
3450
|
-
rowKey:
|
|
3516
|
+
rowKey: C,
|
|
3451
3517
|
rowValue: x
|
|
3452
3518
|
}, void 0, !0)
|
|
3453
3519
|
]),
|
|
3454
3520
|
default: h(() => [
|
|
3455
|
-
|
|
3521
|
+
F(pe, {
|
|
3456
3522
|
class: "actions-trigger",
|
|
3457
3523
|
"data-testid": "overflow-actions-button",
|
|
3458
3524
|
size: "small"
|
|
3459
3525
|
}, {
|
|
3460
3526
|
icon: h(() => [
|
|
3461
|
-
|
|
3462
|
-
color: y(
|
|
3527
|
+
F(ne, {
|
|
3528
|
+
color: y(mo),
|
|
3463
3529
|
icon: "more",
|
|
3464
3530
|
size: "16"
|
|
3465
3531
|
}, null, 8, ["color"])
|
|
@@ -3469,24 +3535,24 @@ const Di = {
|
|
|
3469
3535
|
]),
|
|
3470
3536
|
_: 2
|
|
3471
3537
|
}, 1032, ["width"])
|
|
3472
|
-
], 8,
|
|
3538
|
+
], 8, xs)
|
|
3473
3539
|
]),
|
|
3474
3540
|
_: 2
|
|
3475
3541
|
}, [
|
|
3476
|
-
ye(e.tableHeaders, (B,
|
|
3477
|
-
name:
|
|
3542
|
+
ye(e.tableHeaders, (B, C) => ({
|
|
3543
|
+
name: C,
|
|
3478
3544
|
fn: h(({ row: x, rowKey: T, rowValue: P }) => [
|
|
3479
|
-
|
|
3480
|
-
"key-name": String(
|
|
3545
|
+
F(Is, {
|
|
3546
|
+
"key-name": String(C),
|
|
3481
3547
|
"row-el": c(x)
|
|
3482
3548
|
}, {
|
|
3483
3549
|
default: h(() => [
|
|
3484
|
-
Y(
|
|
3550
|
+
Y(k.$slots, C, {
|
|
3485
3551
|
row: x,
|
|
3486
3552
|
rowKey: T,
|
|
3487
3553
|
rowValue: P
|
|
3488
3554
|
}, () => [
|
|
3489
|
-
Z(
|
|
3555
|
+
Z(K(P), 1)
|
|
3490
3556
|
], !0)
|
|
3491
3557
|
]),
|
|
3492
3558
|
_: 2
|
|
@@ -3499,13 +3565,13 @@ const Di = {
|
|
|
3499
3565
|
}, 8, ["title"]);
|
|
3500
3566
|
};
|
|
3501
3567
|
}
|
|
3502
|
-
}),
|
|
3568
|
+
}), $s = /* @__PURE__ */ Ce(Ts, [["__scopeId", "data-v-6bf92df6"]]), js = {
|
|
3503
3569
|
key: 0,
|
|
3504
3570
|
class: "kong-ui-entity-delete-error"
|
|
3505
|
-
},
|
|
3571
|
+
}, Ms = {
|
|
3506
3572
|
key: 1,
|
|
3507
3573
|
class: "description"
|
|
3508
|
-
},
|
|
3574
|
+
}, Os = /* @__PURE__ */ ae({
|
|
3509
3575
|
__name: "EntityDeleteModal",
|
|
3510
3576
|
props: {
|
|
3511
3577
|
visible: {
|
|
@@ -3544,13 +3610,13 @@ const Di = {
|
|
|
3544
3610
|
},
|
|
3545
3611
|
emits: ["cancel", "proceed"],
|
|
3546
3612
|
setup(e, { emit: n }) {
|
|
3547
|
-
const t = e, { i18nT: r } = ue.useI18n(), o =
|
|
3613
|
+
const t = e, { i18nT: r } = ue.useI18n(), o = j(() => t.needConfirm ? t.entityName : ""), a = () => {
|
|
3548
3614
|
n("cancel");
|
|
3549
3615
|
}, i = () => {
|
|
3550
3616
|
n("proceed");
|
|
3551
3617
|
};
|
|
3552
3618
|
return (s, l) => {
|
|
3553
|
-
const c =
|
|
3619
|
+
const c = q("KAlert"), d = q("KPrompt");
|
|
3554
3620
|
return g(), V(d, {
|
|
3555
3621
|
"action-button-text": "Yes, delete",
|
|
3556
3622
|
"action-pending": e.actionPending,
|
|
@@ -3563,35 +3629,35 @@ const Di = {
|
|
|
3563
3629
|
onProceed: i
|
|
3564
3630
|
}, {
|
|
3565
3631
|
"body-content": h(() => [
|
|
3566
|
-
e.error ? (g(),
|
|
3567
|
-
|
|
3632
|
+
e.error ? (g(), M("div", js, [
|
|
3633
|
+
F(c, { appearance: "danger" }, {
|
|
3568
3634
|
alertMessage: h(() => [
|
|
3569
|
-
Z(
|
|
3635
|
+
Z(K(e.error), 1)
|
|
3570
3636
|
]),
|
|
3571
3637
|
_: 1
|
|
3572
3638
|
})
|
|
3573
3639
|
])) : G("", !0),
|
|
3574
|
-
|
|
3640
|
+
F(y(r), {
|
|
3575
3641
|
class: "message",
|
|
3576
3642
|
keypath: t.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
|
|
3577
3643
|
tag: "p"
|
|
3578
3644
|
}, Te({
|
|
3579
3645
|
entityType: h(() => [
|
|
3580
|
-
Z(
|
|
3646
|
+
Z(K(t.entityType), 1)
|
|
3581
3647
|
]),
|
|
3582
3648
|
_: 2
|
|
3583
3649
|
}, [
|
|
3584
3650
|
t.entityName ? {
|
|
3585
3651
|
name: "entityName",
|
|
3586
3652
|
fn: h(() => [
|
|
3587
|
-
R("strong", null,
|
|
3653
|
+
R("strong", null, K(t.entityName), 1)
|
|
3588
3654
|
]),
|
|
3589
3655
|
key: "0"
|
|
3590
3656
|
} : void 0
|
|
3591
3657
|
]), 1032, ["keypath"]),
|
|
3592
|
-
t.description || s.$slots.description ? (g(),
|
|
3658
|
+
t.description || s.$slots.description ? (g(), M("div", Ms, [
|
|
3593
3659
|
Y(s.$slots, "description", {}, () => [
|
|
3594
|
-
R("p", null,
|
|
3660
|
+
R("p", null, K(t.description), 1)
|
|
3595
3661
|
], !0)
|
|
3596
3662
|
])) : G("", !0)
|
|
3597
3663
|
]),
|
|
@@ -3599,13 +3665,13 @@ const Di = {
|
|
|
3599
3665
|
}, 8, ["action-pending", "confirmation-text", "is-visible", "title"]);
|
|
3600
3666
|
};
|
|
3601
3667
|
}
|
|
3602
|
-
}),
|
|
3668
|
+
}), Es = /* @__PURE__ */ Ce(Os, [["__scopeId", "data-v-1c9a2a07"]]), Ks = {
|
|
3603
3669
|
fill: "none",
|
|
3604
3670
|
height: "20",
|
|
3605
3671
|
viewBox: "0 0 20 20",
|
|
3606
3672
|
width: "20",
|
|
3607
3673
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3608
|
-
},
|
|
3674
|
+
}, Fs = {
|
|
3609
3675
|
id: "mask0_180_20349",
|
|
3610
3676
|
height: "20",
|
|
3611
3677
|
maskUnits: "userSpaceOnUse",
|
|
@@ -3613,35 +3679,35 @@ const Di = {
|
|
|
3613
3679
|
width: "20",
|
|
3614
3680
|
x: "0",
|
|
3615
3681
|
y: "0"
|
|
3616
|
-
},
|
|
3682
|
+
}, Ns = ["fill"], Bs = { mask: "url(#mask0_180_20349)" }, Ps = ["fill"], Ls = /* @__PURE__ */ ae({
|
|
3617
3683
|
__name: "IconFilter",
|
|
3618
3684
|
props: {
|
|
3619
3685
|
color: {
|
|
3620
3686
|
type: String,
|
|
3621
|
-
default: `var(--kong-ui-entity-filter-color, ${
|
|
3687
|
+
default: `var(--kong-ui-entity-filter-color, ${po})`
|
|
3622
3688
|
}
|
|
3623
3689
|
},
|
|
3624
3690
|
setup(e) {
|
|
3625
|
-
return (n, t) => (g(),
|
|
3626
|
-
R("mask",
|
|
3691
|
+
return (n, t) => (g(), M("svg", Ks, [
|
|
3692
|
+
R("mask", Fs, [
|
|
3627
3693
|
R("rect", {
|
|
3628
3694
|
fill: e.color,
|
|
3629
3695
|
height: "20",
|
|
3630
3696
|
width: "20"
|
|
3631
|
-
}, null, 8,
|
|
3697
|
+
}, null, 8, Ns)
|
|
3632
3698
|
]),
|
|
3633
|
-
R("g",
|
|
3699
|
+
R("g", Bs, [
|
|
3634
3700
|
R("path", {
|
|
3635
3701
|
d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
|
|
3636
3702
|
fill: e.color
|
|
3637
|
-
}, null, 8,
|
|
3703
|
+
}, null, 8, Ps)
|
|
3638
3704
|
])
|
|
3639
3705
|
]));
|
|
3640
3706
|
}
|
|
3641
|
-
}),
|
|
3707
|
+
}), qs = {
|
|
3642
3708
|
key: 1,
|
|
3643
3709
|
class: "kong-ui-entity-filter"
|
|
3644
|
-
},
|
|
3710
|
+
}, Us = { class: "menu-item-title" }, Rs = { class: "menu-item-indicator" }, Vs = { class: "menu-item-body" }, Ds = ["for"], Gs = { class: "menu-item-buttons" }, zs = /* @__PURE__ */ ae({
|
|
3645
3711
|
__name: "EntityFilter",
|
|
3646
3712
|
props: {
|
|
3647
3713
|
// filter config, either exact match or fuzzy match
|
|
@@ -3661,12 +3727,12 @@ const Di = {
|
|
|
3661
3727
|
},
|
|
3662
3728
|
emits: ["update:modelValue"],
|
|
3663
3729
|
setup(e, { emit: n }) {
|
|
3664
|
-
const t = e, { i18n: { t: r } } = ue.useI18n(), o =
|
|
3730
|
+
const t = e, { i18n: { t: r } } = ue.useI18n(), o = E(!1), a = E({}), i = j(() => {
|
|
3665
3731
|
const p = [];
|
|
3666
3732
|
return new URLSearchParams(t.modelValue).forEach((S, b) => {
|
|
3667
3733
|
S !== "" && p.push(b);
|
|
3668
3734
|
}), p;
|
|
3669
|
-
}), s =
|
|
3735
|
+
}), s = j(() => {
|
|
3670
3736
|
const p = t.config.fields;
|
|
3671
3737
|
return Object.keys(p).filter((S) => p[S].searchable).map((S) => ({
|
|
3672
3738
|
label: p[S].label || S,
|
|
@@ -3684,9 +3750,9 @@ const Di = {
|
|
|
3684
3750
|
n("update:modelValue", p);
|
|
3685
3751
|
}, d = (p) => `filter-${p}`, u = (p) => {
|
|
3686
3752
|
var S, b;
|
|
3687
|
-
return (((b = (S = t.config.schema) == null ? void 0 : S[p]) == null ? void 0 : b.values) ?? []).map((
|
|
3688
|
-
value:
|
|
3689
|
-
label:
|
|
3753
|
+
return (((b = (S = t.config.schema) == null ? void 0 : S[p]) == null ? void 0 : b.values) ?? []).map((k) => ({
|
|
3754
|
+
value: k,
|
|
3755
|
+
label: k
|
|
3690
3756
|
}));
|
|
3691
3757
|
}, m = (p) => {
|
|
3692
3758
|
var S, b;
|
|
@@ -3699,11 +3765,11 @@ const Di = {
|
|
|
3699
3765
|
}, I = () => {
|
|
3700
3766
|
a.value = {}, v(!0);
|
|
3701
3767
|
}, v = (p = !1) => {
|
|
3702
|
-
const S = Object.keys(a.value).reduce((b,
|
|
3768
|
+
const S = Object.keys(a.value).reduce((b, k) => (a.value[k] && (b[k] = `${a.value[k]}`), b), {});
|
|
3703
3769
|
p && (o.value = !1), n("update:modelValue", new URLSearchParams(S).toString());
|
|
3704
3770
|
};
|
|
3705
3771
|
return (p, S) => {
|
|
3706
|
-
const b =
|
|
3772
|
+
const b = q("KInput"), k = q("KButton"), A = q("KSelect"), ne = q("KMenuItem"), pe = q("KMenu");
|
|
3707
3773
|
return e.config.isExactMatch ? (g(), V(b, {
|
|
3708
3774
|
key: 0,
|
|
3709
3775
|
autocomplete: "off",
|
|
@@ -3714,18 +3780,18 @@ const Di = {
|
|
|
3714
3780
|
"onUpdate:modelValue": c
|
|
3715
3781
|
}, {
|
|
3716
3782
|
icon: h(() => [
|
|
3717
|
-
|
|
3783
|
+
F(Ls)
|
|
3718
3784
|
]),
|
|
3719
3785
|
_: 1
|
|
3720
|
-
}, 8, ["model-value", "placeholder"])) : (g(),
|
|
3721
|
-
|
|
3786
|
+
}, 8, ["model-value", "placeholder"])) : (g(), M("div", qs, [
|
|
3787
|
+
F(k, {
|
|
3722
3788
|
appearance: "btn-link",
|
|
3723
3789
|
"data-testid": "filter-button",
|
|
3724
3790
|
icon: "filter",
|
|
3725
3791
|
onClick: l
|
|
3726
3792
|
}, {
|
|
3727
3793
|
default: h(() => [
|
|
3728
|
-
Z(
|
|
3794
|
+
Z(K(y(r)("filter.filterButtonText")) + " " + K(i.value.length > 0 ? `(${i.value.length})` : ""), 1)
|
|
3729
3795
|
]),
|
|
3730
3796
|
_: 1
|
|
3731
3797
|
}),
|
|
@@ -3735,69 +3801,69 @@ const Di = {
|
|
|
3735
3801
|
}, null, 512), [
|
|
3736
3802
|
[tt, o.value]
|
|
3737
3803
|
]),
|
|
3738
|
-
et(
|
|
3804
|
+
et(F(pe, { class: "kong-ui-entity-filter-menu" }, {
|
|
3739
3805
|
body: h(() => [
|
|
3740
|
-
(g(!0),
|
|
3741
|
-
key:
|
|
3742
|
-
"data-testid":
|
|
3806
|
+
(g(!0), M(ve, null, ye(s.value, (z, w) => (g(), V(ne, {
|
|
3807
|
+
key: z.value,
|
|
3808
|
+
"data-testid": z.value,
|
|
3743
3809
|
expandable: "",
|
|
3744
3810
|
"last-menu-item": w === s.value.length - 1
|
|
3745
3811
|
}, {
|
|
3746
3812
|
itemTitle: h(() => [
|
|
3747
|
-
R("span",
|
|
3748
|
-
Z(
|
|
3749
|
-
et(R("span",
|
|
3750
|
-
[tt, i.value.includes(
|
|
3813
|
+
R("span", Us, [
|
|
3814
|
+
Z(K(z.label) + " ", 1),
|
|
3815
|
+
et(R("span", Rs, null, 512), [
|
|
3816
|
+
[tt, i.value.includes(z.value)]
|
|
3751
3817
|
])
|
|
3752
3818
|
])
|
|
3753
3819
|
]),
|
|
3754
3820
|
itemBody: h(() => {
|
|
3755
3821
|
var N, B;
|
|
3756
3822
|
return [
|
|
3757
|
-
R("div",
|
|
3823
|
+
R("div", Vs, [
|
|
3758
3824
|
R("label", {
|
|
3759
3825
|
class: "menu-item-label",
|
|
3760
|
-
for: d(
|
|
3761
|
-
},
|
|
3762
|
-
((B = (N = e.config.schema) == null ? void 0 : N[
|
|
3826
|
+
for: d(z.value)
|
|
3827
|
+
}, K(y(r)("filter.fieldLabel")), 9, Ds),
|
|
3828
|
+
((B = (N = e.config.schema) == null ? void 0 : N[z.value]) == null ? void 0 : B.type) === "select" ? (g(), V(A, {
|
|
3763
3829
|
key: 0,
|
|
3764
|
-
id: d(
|
|
3765
|
-
modelValue: a.value[
|
|
3766
|
-
"onUpdate:modelValue": (
|
|
3830
|
+
id: d(z.value),
|
|
3831
|
+
modelValue: a.value[z.value],
|
|
3832
|
+
"onUpdate:modelValue": (C) => a.value[z.value] = C,
|
|
3767
3833
|
appearance: "select",
|
|
3768
|
-
items: u(
|
|
3834
|
+
items: u(z.value),
|
|
3769
3835
|
placeholder: y(r)("filter.selectPlaceholder")
|
|
3770
3836
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (g(), V(b, {
|
|
3771
3837
|
key: 1,
|
|
3772
|
-
id: d(
|
|
3773
|
-
modelValue: a.value[
|
|
3774
|
-
"onUpdate:modelValue": (
|
|
3838
|
+
id: d(z.value),
|
|
3839
|
+
modelValue: a.value[z.value],
|
|
3840
|
+
"onUpdate:modelValue": (C) => a.value[z.value] = C,
|
|
3775
3841
|
autocomplete: "off",
|
|
3776
3842
|
placeholder: y(r)("filter.inputPlaceholder"),
|
|
3777
3843
|
size: "small",
|
|
3778
|
-
type: m(
|
|
3844
|
+
type: m(z.value)
|
|
3779
3845
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
|
|
3780
3846
|
]),
|
|
3781
|
-
R("div",
|
|
3782
|
-
|
|
3847
|
+
R("div", Gs, [
|
|
3848
|
+
F(k, {
|
|
3783
3849
|
appearance: "btn-link",
|
|
3784
3850
|
"data-testid": "apply-filter",
|
|
3785
3851
|
size: "small",
|
|
3786
|
-
onClick: S[0] || (S[0] = (
|
|
3852
|
+
onClick: S[0] || (S[0] = (C) => v(!0))
|
|
3787
3853
|
}, {
|
|
3788
3854
|
default: h(() => [
|
|
3789
|
-
Z(
|
|
3855
|
+
Z(K(y(r)("filter.applyButtonText")), 1)
|
|
3790
3856
|
]),
|
|
3791
3857
|
_: 1
|
|
3792
3858
|
}),
|
|
3793
|
-
|
|
3859
|
+
F(k, {
|
|
3794
3860
|
appearance: "btn-link",
|
|
3795
3861
|
"data-testid": "clear-filter",
|
|
3796
3862
|
size: "small",
|
|
3797
|
-
onClick: (
|
|
3863
|
+
onClick: (C) => f(z.value)
|
|
3798
3864
|
}, {
|
|
3799
3865
|
default: h(() => [
|
|
3800
|
-
Z(
|
|
3866
|
+
Z(K(y(r)("filter.clearButtonText")), 1)
|
|
3801
3867
|
]),
|
|
3802
3868
|
_: 2
|
|
3803
3869
|
}, 1032, ["onClick"])
|
|
@@ -3808,9 +3874,9 @@ const Di = {
|
|
|
3808
3874
|
}, 1032, ["data-testid", "last-menu-item"]))), 128))
|
|
3809
3875
|
]),
|
|
3810
3876
|
actionButton: h(() => [
|
|
3811
|
-
|
|
3877
|
+
F(k, { onClick: I }, {
|
|
3812
3878
|
default: h(() => [
|
|
3813
|
-
Z(
|
|
3879
|
+
Z(K(y(r)("filter.clearAllButtonText")), 1)
|
|
3814
3880
|
]),
|
|
3815
3881
|
_: 1
|
|
3816
3882
|
})
|
|
@@ -3822,7 +3888,7 @@ const Di = {
|
|
|
3822
3888
|
]));
|
|
3823
3889
|
};
|
|
3824
3890
|
}
|
|
3825
|
-
}),
|
|
3891
|
+
}), Hs = /* @__PURE__ */ Ce(zs, [["__scopeId", "data-v-745f38c0"]]), Xe = /* @__PURE__ */ ae({
|
|
3826
3892
|
__name: "PermissionsWrapper",
|
|
3827
3893
|
props: {
|
|
3828
3894
|
/**
|
|
@@ -3844,7 +3910,7 @@ const Di = {
|
|
|
3844
3910
|
}
|
|
3845
3911
|
},
|
|
3846
3912
|
setup(e) {
|
|
3847
|
-
const n = e, t =
|
|
3913
|
+
const n = e, t = E(void 0), r = j(() => t.value === !0 || t.value !== void 0 && n.forceShow === !0);
|
|
3848
3914
|
return xe(() => n.authFunction, async () => {
|
|
3849
3915
|
t.value = await n.authFunction();
|
|
3850
3916
|
}, { immediate: !0 }), (o, a) => r.value ? Y(o.$slots, "default", {
|
|
@@ -3852,16 +3918,16 @@ const Di = {
|
|
|
3852
3918
|
isAllowed: t.value
|
|
3853
3919
|
}) : G("", !0);
|
|
3854
3920
|
}
|
|
3855
|
-
}),
|
|
3921
|
+
}), Js = { class: "form-section-wrapper" }, Ws = {
|
|
3856
3922
|
key: 0,
|
|
3857
3923
|
class: "form-section-title"
|
|
3858
|
-
},
|
|
3924
|
+
}, Ys = {
|
|
3859
3925
|
key: 1,
|
|
3860
3926
|
class: "form-section-description"
|
|
3861
|
-
},
|
|
3927
|
+
}, Zs = {
|
|
3862
3928
|
key: 2,
|
|
3863
3929
|
class: "form-section-footer"
|
|
3864
|
-
},
|
|
3930
|
+
}, Qs = { class: "form-section-content" }, Xs = /* @__PURE__ */ ae({
|
|
3865
3931
|
__name: "EntityFormSection",
|
|
3866
3932
|
props: {
|
|
3867
3933
|
title: {
|
|
@@ -3887,35 +3953,35 @@ const Di = {
|
|
|
3887
3953
|
},
|
|
3888
3954
|
setup(e) {
|
|
3889
3955
|
const n = ut();
|
|
3890
|
-
return (t, r) => (g(),
|
|
3891
|
-
class:
|
|
3956
|
+
return (t, r) => (g(), M("fieldset", {
|
|
3957
|
+
class: Fe(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
|
|
3892
3958
|
}, [
|
|
3893
|
-
R("div",
|
|
3894
|
-
e.hideInfoHeader ? G("", !0) : (g(),
|
|
3959
|
+
R("div", Js, [
|
|
3960
|
+
e.hideInfoHeader ? G("", !0) : (g(), M("div", {
|
|
3895
3961
|
key: 0,
|
|
3896
|
-
class:
|
|
3962
|
+
class: Fe(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
3897
3963
|
}, [
|
|
3898
|
-
e.title ? (g(),
|
|
3899
|
-
e.description || y(n).description ? (g(),
|
|
3964
|
+
e.title ? (g(), M("h4", Ws, K(e.title), 1)) : G("", !0),
|
|
3965
|
+
e.description || y(n).description ? (g(), M("div", Ys, [
|
|
3900
3966
|
Y(t.$slots, "description", {}, () => [
|
|
3901
|
-
R("p", null,
|
|
3967
|
+
R("p", null, K(e.description), 1)
|
|
3902
3968
|
], !0)
|
|
3903
3969
|
])) : G("", !0),
|
|
3904
|
-
y(n).footer ? (g(),
|
|
3970
|
+
y(n).footer ? (g(), M("div", Zs, [
|
|
3905
3971
|
Y(t.$slots, "footer", {}, void 0, !0)
|
|
3906
3972
|
])) : G("", !0)
|
|
3907
3973
|
], 2)),
|
|
3908
|
-
R("div",
|
|
3974
|
+
R("div", Qs, [
|
|
3909
3975
|
Y(t.$slots, "default", {}, void 0, !0)
|
|
3910
3976
|
])
|
|
3911
3977
|
])
|
|
3912
3978
|
], 2));
|
|
3913
3979
|
}
|
|
3914
|
-
}), un = /* @__PURE__ */
|
|
3915
|
-
const
|
|
3980
|
+
}), un = /* @__PURE__ */ Ce(Xs, [["__scopeId", "data-v-8b6dc312"]]), { useAxios: Kt, useDeleteUrlBuilder: el, useErrors: tl, useExternalLinkCreator: _l, useFetchUrlBuilder: wl, useFetcher: nl, useDebouncedFilter: ar, useStringHelpers: Il, useHelpers: Al, useGatewayFeatureSupported: Sl, useTruncationDetector: xl } = ue;
|
|
3981
|
+
const rl = { class: "add-to-group-form-container" }, ol = { class: "add-to-group-cta-text" }, al = {
|
|
3916
3982
|
key: 0,
|
|
3917
3983
|
class: "kong-ui-entity-add-to-groups-error"
|
|
3918
|
-
},
|
|
3984
|
+
}, il = { key: 0 }, sl = /* @__PURE__ */ ae({
|
|
3919
3985
|
__name: "AddToGroupModal",
|
|
3920
3986
|
props: {
|
|
3921
3987
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3933,9 +3999,9 @@ const Qs = { class: "add-to-group-form-container" }, Xs = { class: "add-to-group
|
|
|
3933
3999
|
emits: ["cancel", "add:success", "add:partial-success", "error"],
|
|
3934
4000
|
setup(e, { emit: n }) {
|
|
3935
4001
|
var B;
|
|
3936
|
-
const t = e, { i18n: { t: r } } = ct.useI18n(), { axiosInstance: o } =
|
|
4002
|
+
const t = e, { i18n: { t: r } } = ct.useI18n(), { axiosInstance: o } = Kt({
|
|
3937
4003
|
headers: (B = t.config) == null ? void 0 : B.requestHeaders
|
|
3938
|
-
}), a =
|
|
4004
|
+
}), a = E([]), {
|
|
3939
4005
|
debouncedQueryChange: i,
|
|
3940
4006
|
loading: s,
|
|
3941
4007
|
allRecords: l,
|
|
@@ -3950,26 +4016,26 @@ const Qs = { class: "add-to-group-form-container" }, Xs = { class: "add-to-group
|
|
|
3950
4016
|
fetchedItemsKey: "data",
|
|
3951
4017
|
searchKeys: ["name", "id"]
|
|
3952
4018
|
}
|
|
3953
|
-
), m =
|
|
3954
|
-
label:
|
|
3955
|
-
value:
|
|
3956
|
-
selected: a.value.includes(
|
|
3957
|
-
data:
|
|
4019
|
+
), m = j(() => c.value ? r("consumer_groups.errors.general") : ""), f = E(0), I = j(() => l.value === void 0), v = j(() => u.value.map((C) => ({
|
|
4020
|
+
label: C.name,
|
|
4021
|
+
value: C.id,
|
|
4022
|
+
selected: a.value.includes(C.id),
|
|
4023
|
+
data: C
|
|
3958
4024
|
// we need this to determine whether or not to show the description text
|
|
3959
|
-
}))), p = (
|
|
4025
|
+
}))), p = (C) => {
|
|
3960
4026
|
var T;
|
|
3961
|
-
const x = I.value ? u.value.find((P) => P.id ===
|
|
3962
|
-
return x ? x.name :
|
|
4027
|
+
const x = I.value ? u.value.find((P) => P.id === C) : (T = l.value) == null ? void 0 : T.find((P) => P.id === C);
|
|
4028
|
+
return x ? x.name : C;
|
|
3963
4029
|
}, S = () => {
|
|
3964
4030
|
A.value = "", b.value = [], w.value = [], n("cancel");
|
|
3965
|
-
}, b =
|
|
4031
|
+
}, b = E([]), k = E(!1), A = E(""), ne = async () => {
|
|
3966
4032
|
if (!a.value.length) {
|
|
3967
4033
|
A.value = "", w.value = [], n("cancel");
|
|
3968
4034
|
return;
|
|
3969
4035
|
}
|
|
3970
|
-
|
|
4036
|
+
k.value = !0, A.value = "", b.value = [], w.value = [];
|
|
3971
4037
|
try {
|
|
3972
|
-
const
|
|
4038
|
+
const C = a.value.map((P) => z(P)), x = await Promise.allSettled(C);
|
|
3973
4039
|
let T = !0;
|
|
3974
4040
|
x.forEach((P) => {
|
|
3975
4041
|
P.status !== "fulfilled" && (T = !1);
|
|
@@ -3977,25 +4043,25 @@ const Qs = { class: "add-to-group-form-container" }, Xs = { class: "add-to-group
|
|
|
3977
4043
|
} catch {
|
|
3978
4044
|
A.value = r("consumer_groups.errors.add"), n("error", A.value);
|
|
3979
4045
|
} finally {
|
|
3980
|
-
|
|
4046
|
+
k.value = !1;
|
|
3981
4047
|
}
|
|
3982
|
-
}, pe =
|
|
4048
|
+
}, pe = j(() => {
|
|
3983
4049
|
var x, T, P, J;
|
|
3984
|
-
let
|
|
3985
|
-
return t.config.app === "konnect" ?
|
|
3986
|
-
}),
|
|
4050
|
+
let C = `${t.config.apiBaseUrl}${$e.list[t.config.app].forConsumer}`;
|
|
4051
|
+
return t.config.app === "konnect" ? C = C.replace(/{controlPlaneId}/gi, ((x = t.config) == null ? void 0 : x.controlPlaneId) || "").replace(/{consumerId}/gi, ((T = t.config) == null ? void 0 : T.consumerId) || "") : t.config.app === "kongManager" && (C = C.replace(/\/{workspace}/gi, (P = t.config) != null && P.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((J = t.config) == null ? void 0 : J.consumerId) || "")), C;
|
|
4052
|
+
}), z = async (C) => {
|
|
3987
4053
|
const x = {
|
|
3988
|
-
group:
|
|
4054
|
+
group: C
|
|
3989
4055
|
};
|
|
3990
4056
|
try {
|
|
3991
4057
|
const T = await o.post(pe.value, x);
|
|
3992
|
-
return b.value.push(
|
|
4058
|
+
return b.value.push(C), T;
|
|
3993
4059
|
} catch (T) {
|
|
3994
|
-
let P = `${p(
|
|
3995
|
-
return T.response.status === 409 && (P = `${p(
|
|
4060
|
+
let P = `${p(C)} - ${T.message}`;
|
|
4061
|
+
return T.response.status === 409 && (P = `${p(C)} - ${r("consumer_groups.errors.already_added")}`), Promise.reject(Error(P));
|
|
3996
4062
|
}
|
|
3997
|
-
}, w =
|
|
3998
|
-
w.value =
|
|
4063
|
+
}, w = E([]), N = (C) => {
|
|
4064
|
+
w.value = C.map((x) => {
|
|
3999
4065
|
var T;
|
|
4000
4066
|
return (T = x.reason) == null ? void 0 : T.message;
|
|
4001
4067
|
}).filter(Boolean);
|
|
@@ -4004,10 +4070,10 @@ const Qs = { class: "add-to-group-form-container" }, Xs = { class: "add-to-group
|
|
|
4004
4070
|
f.value++;
|
|
4005
4071
|
}, { immediate: !0, deep: !0 }), Qe(async () => {
|
|
4006
4072
|
await d();
|
|
4007
|
-
}), (
|
|
4008
|
-
const T =
|
|
4073
|
+
}), (C, x) => {
|
|
4074
|
+
const T = q("KMultiselect"), P = q("KAlert"), J = q("KPrompt");
|
|
4009
4075
|
return g(), V(J, {
|
|
4010
|
-
"action-pending":
|
|
4076
|
+
"action-pending": k.value,
|
|
4011
4077
|
class: "kong-ui-entities-add-to-groups-modal",
|
|
4012
4078
|
"data-testid": "add-to-group-modal",
|
|
4013
4079
|
"is-visible": e.visible,
|
|
@@ -4016,9 +4082,9 @@ const Qs = { class: "add-to-group-form-container" }, Xs = { class: "add-to-group
|
|
|
4016
4082
|
onProceed: ne
|
|
4017
4083
|
}, {
|
|
4018
4084
|
"body-content": h(() => [
|
|
4019
|
-
R("div",
|
|
4020
|
-
R("p",
|
|
4021
|
-
|
|
4085
|
+
R("div", rl, [
|
|
4086
|
+
R("p", ol, K(y(r)("consumer_groups.consumers.add.ctaText")), 1),
|
|
4087
|
+
F(T, {
|
|
4022
4088
|
modelValue: a.value,
|
|
4023
4089
|
"onUpdate:modelValue": x[0] || (x[0] = (Q) => a.value = Q),
|
|
4024
4090
|
autosuggest: "",
|
|
@@ -4028,19 +4094,19 @@ const Qs = { class: "add-to-group-form-container" }, Xs = { class: "add-to-group
|
|
|
4028
4094
|
label: y(r)("consumer_groups.consumers.add.consumer_groups_label"),
|
|
4029
4095
|
loading: y(s),
|
|
4030
4096
|
placeholder: y(r)("consumer_groups.consumers.add.consumer_group_placeholder"),
|
|
4031
|
-
readonly:
|
|
4097
|
+
readonly: k.value,
|
|
4032
4098
|
required: "",
|
|
4033
4099
|
width: "100%",
|
|
4034
4100
|
onQueryChange: y(i)
|
|
4035
4101
|
}, null, 8, ["modelValue", "dropdown-footer-text", "items", "label", "loading", "placeholder", "readonly", "onQueryChange"]),
|
|
4036
|
-
A.value || m.value || w.value.length ? (g(),
|
|
4037
|
-
|
|
4102
|
+
A.value || m.value || w.value.length ? (g(), M("div", al, [
|
|
4103
|
+
F(P, { appearance: "danger" }, {
|
|
4038
4104
|
alertMessage: h(() => [
|
|
4039
|
-
R("p", null,
|
|
4040
|
-
w.value.length ? (g(),
|
|
4041
|
-
(g(!0),
|
|
4105
|
+
R("p", null, K(y(r)("consumer_groups.errors.add")), 1),
|
|
4106
|
+
w.value.length ? (g(), M("ul", il, [
|
|
4107
|
+
(g(!0), M(ve, null, ye(w.value, (Q, X) => (g(), M("li", { key: X }, K(Q), 1))), 128))
|
|
4042
4108
|
])) : G("", !0),
|
|
4043
|
-
R("div", null,
|
|
4109
|
+
R("div", null, K(A.value || m.value), 1)
|
|
4044
4110
|
]),
|
|
4045
4111
|
_: 1
|
|
4046
4112
|
})
|
|
@@ -4052,12 +4118,12 @@ const Qs = { class: "add-to-group-form-container" }, Xs = { class: "add-to-group
|
|
|
4052
4118
|
};
|
|
4053
4119
|
}
|
|
4054
4120
|
});
|
|
4055
|
-
const
|
|
4121
|
+
const Ft = (e, n) => {
|
|
4056
4122
|
const t = e.__vccOpts || e;
|
|
4057
4123
|
for (const [r, o] of n)
|
|
4058
4124
|
t[r] = o;
|
|
4059
4125
|
return t;
|
|
4060
|
-
},
|
|
4126
|
+
}, ll = /* @__PURE__ */ Ft(sl, [["__scopeId", "data-v-4d30f3c5"]]), ul = { class: "kong-ui-entities-consumer-groups-list" }, cl = { key: 1 }, dl = /* @__PURE__ */ ae({
|
|
4061
4127
|
__name: "ConsumerGroupList",
|
|
4062
4128
|
props: {
|
|
4063
4129
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4099,128 +4165,128 @@ const Kt = (e, n) => {
|
|
|
4099
4165
|
emits: ["error", "copy:success", "copy:error", "delete:success", "add:success", "remove:success"],
|
|
4100
4166
|
setup(e, { emit: n }) {
|
|
4101
4167
|
var Nt;
|
|
4102
|
-
const t = e, { i18nT: r, i18n: { t: o } } = ct.useI18n(), a = wt(), { axiosInstance: i } =
|
|
4168
|
+
const t = e, { i18nT: r, i18n: { t: o } } = ct.useI18n(), a = wt(), { axiosInstance: i } = Kt({
|
|
4103
4169
|
headers: (Nt = t.config) == null ? void 0 : Nt.requestHeaders
|
|
4104
|
-
}), s =
|
|
4170
|
+
}), s = E(1), l = j(() => !!t.config.consumerId), c = j(() => t.config.app !== "kongManager" || !!t.config.disableSorting), d = {
|
|
4105
4171
|
name: { label: o("consumer_groups.list.table_headers.name"), searchable: !0, sortable: !0 }
|
|
4106
4172
|
};
|
|
4107
4173
|
t.config.app === "kongManager" && (d.consumers_count = { label: o("consumer_groups.list.table_headers.consumers_count"), searchable: !1, sortable: !1 }), d.tags = { label: o("consumer_groups.list.table_headers.tags"), sortable: !1 };
|
|
4108
|
-
const u = d, m = (
|
|
4109
|
-
"data-testid":
|
|
4110
|
-
}), f =
|
|
4111
|
-
var
|
|
4112
|
-
let
|
|
4113
|
-
return t.config.app === "konnect" ?
|
|
4114
|
-
}), I =
|
|
4115
|
-
const
|
|
4116
|
-
return
|
|
4117
|
-
isExactMatch:
|
|
4174
|
+
const u = d, m = (O) => ({
|
|
4175
|
+
"data-testid": O.username ?? O.custom_id ?? O.id
|
|
4176
|
+
}), f = j(() => {
|
|
4177
|
+
var H, le, ke, Oe;
|
|
4178
|
+
let O = `${t.config.apiBaseUrl}${$e.list[t.config.app][l.value ? "forConsumer" : "all"]}`;
|
|
4179
|
+
return t.config.app === "konnect" ? O = O.replace(/{controlPlaneId}/gi, ((H = t.config) == null ? void 0 : H.controlPlaneId) || "").replace(/{consumerId}/gi, ((le = t.config) == null ? void 0 : le.consumerId) || "") : t.config.app === "kongManager" && (O = O.replace(/\/{workspace}/gi, (ke = t.config) != null && ke.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((Oe = t.config) == null ? void 0 : Oe.consumerId) || "")), O;
|
|
4180
|
+
}), I = E(""), v = j(() => {
|
|
4181
|
+
const O = t.config.app === "konnect" || t.config.isExactMatch;
|
|
4182
|
+
return O ? {
|
|
4183
|
+
isExactMatch: O,
|
|
4118
4184
|
fields: {
|
|
4119
4185
|
username: d.name,
|
|
4120
4186
|
id: { label: o("consumer_groups.list.table_headers.id") }
|
|
4121
4187
|
},
|
|
4122
4188
|
placeholder: o("consumer_groups.search.placeholder")
|
|
4123
4189
|
} : {
|
|
4124
|
-
isExactMatch:
|
|
4190
|
+
isExactMatch: O,
|
|
4125
4191
|
fields: {
|
|
4126
4192
|
name: d.name
|
|
4127
4193
|
},
|
|
4128
4194
|
schema: t.config.filterSchema
|
|
4129
4195
|
};
|
|
4130
|
-
}), p =
|
|
4196
|
+
}), p = j(() => l.value ? "consumer_groups" : void 0), { fetcher: S, fetcherState: b } = nl(t.config, f.value, p.value), k = () => {
|
|
4131
4197
|
I.value = "";
|
|
4132
4198
|
}, A = () => {
|
|
4133
4199
|
s.value++;
|
|
4134
|
-
}, ne =
|
|
4135
|
-
const le =
|
|
4136
|
-
if (!
|
|
4200
|
+
}, ne = E(""), pe = (O, H) => {
|
|
4201
|
+
const le = O.id;
|
|
4202
|
+
if (!H(le)) {
|
|
4137
4203
|
n("copy:error", {
|
|
4138
|
-
entity:
|
|
4204
|
+
entity: O,
|
|
4139
4205
|
field: "id",
|
|
4140
4206
|
message: o("consumer_groups.errors.copy")
|
|
4141
4207
|
});
|
|
4142
4208
|
return;
|
|
4143
4209
|
}
|
|
4144
4210
|
n("copy:success", {
|
|
4145
|
-
entity:
|
|
4211
|
+
entity: O,
|
|
4146
4212
|
field: "id",
|
|
4147
4213
|
message: o("consumer_groups.copy.success", { val: le })
|
|
4148
4214
|
});
|
|
4149
|
-
},
|
|
4150
|
-
const le = JSON.stringify(
|
|
4151
|
-
if (!
|
|
4215
|
+
}, z = (O, H) => {
|
|
4216
|
+
const le = JSON.stringify(O);
|
|
4217
|
+
if (!H(le)) {
|
|
4152
4218
|
n("copy:error", {
|
|
4153
|
-
entity:
|
|
4219
|
+
entity: O,
|
|
4154
4220
|
message: o("consumer_groups.errors.copy")
|
|
4155
4221
|
});
|
|
4156
4222
|
return;
|
|
4157
4223
|
}
|
|
4158
4224
|
n("copy:success", {
|
|
4159
|
-
entity:
|
|
4225
|
+
entity: O,
|
|
4160
4226
|
message: o("consumer_groups.copy.success_brief")
|
|
4161
4227
|
});
|
|
4162
|
-
}, w = async (
|
|
4228
|
+
}, w = async (O) => {
|
|
4163
4229
|
var le;
|
|
4164
|
-
await ((le = t.canRetrieve) == null ? void 0 : le.call(t,
|
|
4165
|
-
}, N = (
|
|
4230
|
+
await ((le = t.canRetrieve) == null ? void 0 : le.call(t, O)) && a.push(t.config.getViewRoute(O.id));
|
|
4231
|
+
}, N = (O) => ({
|
|
4166
4232
|
label: o("consumer_groups.actions.view"),
|
|
4167
|
-
to: t.config.getViewRoute(
|
|
4168
|
-
}), B = (
|
|
4233
|
+
to: t.config.getViewRoute(O)
|
|
4234
|
+
}), B = (O) => ({
|
|
4169
4235
|
label: o("consumer_groups.actions.edit"),
|
|
4170
|
-
to: t.config.getEditRoute(
|
|
4171
|
-
}),
|
|
4172
|
-
|
|
4236
|
+
to: t.config.getEditRoute(O)
|
|
4237
|
+
}), C = E(void 0), x = E(!1), T = E(!1), P = E(""), J = el(t.config, f.value), Q = (O) => {
|
|
4238
|
+
C.value = O, x.value = !0;
|
|
4173
4239
|
}, X = () => {
|
|
4174
4240
|
x.value = !1;
|
|
4175
4241
|
}, ee = async () => {
|
|
4176
|
-
var
|
|
4177
|
-
if ((
|
|
4242
|
+
var O, H, le;
|
|
4243
|
+
if ((O = C.value) != null && O.id) {
|
|
4178
4244
|
T.value = !0;
|
|
4179
4245
|
try {
|
|
4180
|
-
await i.delete(J(
|
|
4181
|
-
} catch (
|
|
4182
|
-
P.value = ((le = (
|
|
4246
|
+
await i.delete(J(C.value.id)), T.value = !1, x.value = !1, s.value++, n("delete:success", C.value);
|
|
4247
|
+
} catch (ke) {
|
|
4248
|
+
P.value = ((le = (H = ke.response) == null ? void 0 : H.data) == null ? void 0 : le.message) || ke.message || o("consumer_groups.errors.delete"), n("error", ke);
|
|
4183
4249
|
} finally {
|
|
4184
4250
|
T.value = !1;
|
|
4185
4251
|
}
|
|
4186
4252
|
}
|
|
4187
|
-
}, ie =
|
|
4253
|
+
}, ie = E(!1), Ve = () => {
|
|
4188
4254
|
ie.value = !0;
|
|
4189
4255
|
}, _ = () => {
|
|
4190
4256
|
ie.value = !1;
|
|
4191
|
-
}, L = (
|
|
4192
|
-
|
|
4257
|
+
}, L = (O, H) => {
|
|
4258
|
+
H || _(), s.value++, n("add:success", O);
|
|
4193
4259
|
}, re = () => {
|
|
4194
4260
|
l.value && Ve();
|
|
4195
|
-
},
|
|
4196
|
-
|
|
4261
|
+
}, U = E(void 0), D = E(!1), ge = E(""), _e = (O) => {
|
|
4262
|
+
U.value = O, D.value = !0;
|
|
4197
4263
|
}, ce = () => {
|
|
4198
|
-
D.value = !1,
|
|
4199
|
-
}, Ne =
|
|
4200
|
-
var
|
|
4201
|
-
let
|
|
4202
|
-
return t.config.app === "konnect" ?
|
|
4203
|
-
}), De =
|
|
4204
|
-
if (
|
|
4264
|
+
D.value = !1, U.value = void 0;
|
|
4265
|
+
}, Ne = j(() => {
|
|
4266
|
+
var H, le, ke, Oe;
|
|
4267
|
+
let O = `${t.config.apiBaseUrl}${$e.list[t.config.app].oneForConsumer}`;
|
|
4268
|
+
return t.config.app === "konnect" ? O = O.replace(/{controlPlaneId}/gi, ((H = t.config) == null ? void 0 : H.controlPlaneId) || "").replace(/{consumerId}/gi, ((le = t.config) == null ? void 0 : le.consumerId) || "") : t.config.app === "kongManager" && (O = O.replace(/\/{workspace}/gi, (ke = t.config) != null && ke.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((Oe = t.config) == null ? void 0 : Oe.consumerId) || "")), O;
|
|
4269
|
+
}), De = E(!1), ir = async () => {
|
|
4270
|
+
if (U.value) {
|
|
4205
4271
|
De.value = !0;
|
|
4206
4272
|
try {
|
|
4207
|
-
const
|
|
4208
|
-
await i.delete(
|
|
4209
|
-
} catch (
|
|
4210
|
-
ge.value =
|
|
4273
|
+
const O = Ne.value.replace(/{consumerGroupId}/gi, U.value.id);
|
|
4274
|
+
await i.delete(O), n("remove:success", U.value), ce(), s.value++;
|
|
4275
|
+
} catch (O) {
|
|
4276
|
+
ge.value = O.message || o("consumer_groups.errors.delete"), n("error", O);
|
|
4211
4277
|
} finally {
|
|
4212
4278
|
De.value = !1;
|
|
4213
4279
|
}
|
|
4214
4280
|
}
|
|
4215
4281
|
};
|
|
4216
|
-
xe(b, (
|
|
4217
|
-
if (
|
|
4218
|
-
ne.value = o("consumer_groups.errors.general"), n("error",
|
|
4282
|
+
xe(b, (O) => {
|
|
4283
|
+
if (O.status === Ee.Error) {
|
|
4284
|
+
ne.value = o("consumer_groups.errors.general"), n("error", O.error);
|
|
4219
4285
|
return;
|
|
4220
4286
|
}
|
|
4221
4287
|
ne.value = "";
|
|
4222
4288
|
});
|
|
4223
|
-
const pt =
|
|
4289
|
+
const pt = E({
|
|
4224
4290
|
ctaPath: l.value ? void 0 : t.config.createRoute,
|
|
4225
4291
|
ctaText: void 0,
|
|
4226
4292
|
message: o("consumer_groups.list.empty_state.description"),
|
|
@@ -4228,10 +4294,10 @@ const Kt = (e, n) => {
|
|
|
4228
4294
|
});
|
|
4229
4295
|
return Qe(async () => {
|
|
4230
4296
|
await t.canCreate() && (pt.value.title = l.value ? o("consumer_groups.list.empty_state.title_for_consumer") : o("consumer_groups.list.empty_state.title"), pt.value.ctaText = l.value ? o("consumer_groups.actions.add_to_group") : o("consumer_groups.actions.create"));
|
|
4231
|
-
}), (
|
|
4232
|
-
const le =
|
|
4233
|
-
return g(),
|
|
4234
|
-
|
|
4297
|
+
}), (O, H) => {
|
|
4298
|
+
const le = q("KButton"), ke = q("KBadge"), Oe = q("KTruncate"), Ge = q("KDropdownItem"), Bt = q("KClipboardProvider"), sr = q("KPrompt");
|
|
4299
|
+
return g(), M("div", ul, [
|
|
4300
|
+
F(y($s), {
|
|
4235
4301
|
"cache-identifier": e.cacheIdentifier,
|
|
4236
4302
|
"disable-pagination": l.value,
|
|
4237
4303
|
"disable-pagination-page-jump": "",
|
|
@@ -4246,33 +4312,33 @@ const Kt = (e, n) => {
|
|
|
4246
4312
|
query: I.value,
|
|
4247
4313
|
"row-attributes": m,
|
|
4248
4314
|
"table-headers": y(u),
|
|
4249
|
-
onClearSearchInput:
|
|
4250
|
-
"onClick:row":
|
|
4315
|
+
onClearSearchInput: k,
|
|
4316
|
+
"onClick:row": H[3] || (H[3] = (W) => w(W)),
|
|
4251
4317
|
onEmptyStateCtaClicked: re,
|
|
4252
4318
|
onSort: A
|
|
4253
4319
|
}, {
|
|
4254
4320
|
"toolbar-filter": h(() => [
|
|
4255
|
-
l.value ? G("", !0) : (g(), V(y(
|
|
4321
|
+
l.value ? G("", !0) : (g(), V(y(Hs), {
|
|
4256
4322
|
key: 0,
|
|
4257
4323
|
modelValue: I.value,
|
|
4258
|
-
"onUpdate:modelValue":
|
|
4324
|
+
"onUpdate:modelValue": H[0] || (H[0] = (W) => I.value = W),
|
|
4259
4325
|
config: v.value
|
|
4260
4326
|
}, null, 8, ["modelValue", "config"]))
|
|
4261
4327
|
]),
|
|
4262
4328
|
"toolbar-button": h(() => [
|
|
4263
|
-
|
|
4329
|
+
F(y(Xe), {
|
|
4264
4330
|
"auth-function": () => e.canCreate()
|
|
4265
4331
|
}, {
|
|
4266
4332
|
default: h(() => [
|
|
4267
|
-
|
|
4333
|
+
F(le, {
|
|
4268
4334
|
appearance: "primary",
|
|
4269
4335
|
"data-testid": "toolbar-add-consumer-group",
|
|
4270
4336
|
icon: "plus",
|
|
4271
4337
|
to: e.config.consumerId ? void 0 : e.config.createRoute,
|
|
4272
|
-
onClick:
|
|
4338
|
+
onClick: H[1] || (H[1] = () => e.config.consumerId ? Ve() : void 0)
|
|
4273
4339
|
}, {
|
|
4274
4340
|
default: h(() => [
|
|
4275
|
-
Z(
|
|
4341
|
+
Z(K(e.config.consumerId ? y(o)("consumer_groups.actions.add_to_group") : y(o)("consumer_groups.list.toolbar_actions.new_consumer_group")), 1)
|
|
4276
4342
|
]),
|
|
4277
4343
|
_: 1
|
|
4278
4344
|
}, 8, ["to"])
|
|
@@ -4281,62 +4347,62 @@ const Kt = (e, n) => {
|
|
|
4281
4347
|
}, 8, ["auth-function"])
|
|
4282
4348
|
]),
|
|
4283
4349
|
name: h(({ rowValue: W }) => [
|
|
4284
|
-
R("b", null,
|
|
4350
|
+
R("b", null, K(W ?? "-"), 1)
|
|
4285
4351
|
]),
|
|
4286
4352
|
consumers_count: h(({ rowValue: W }) => [
|
|
4287
|
-
Z(
|
|
4353
|
+
Z(K(W ?? "-"), 1)
|
|
4288
4354
|
]),
|
|
4289
4355
|
tags: h(({ rowValue: W }) => [
|
|
4290
|
-
(W == null ? void 0 : W.length) > 0 ? (g(), V(
|
|
4356
|
+
(W == null ? void 0 : W.length) > 0 ? (g(), V(Oe, { key: 0 }, {
|
|
4291
4357
|
default: h(() => [
|
|
4292
|
-
(g(!0),
|
|
4358
|
+
(g(!0), M(ve, null, ye(W, (Be) => (g(), V(ke, {
|
|
4293
4359
|
key: Be,
|
|
4294
|
-
onClick:
|
|
4360
|
+
onClick: H[2] || (H[2] = rt(() => {
|
|
4295
4361
|
}, ["stop"]))
|
|
4296
4362
|
}, {
|
|
4297
4363
|
default: h(() => [
|
|
4298
|
-
Z(
|
|
4364
|
+
Z(K(Be), 1)
|
|
4299
4365
|
]),
|
|
4300
4366
|
_: 2
|
|
4301
4367
|
}, 1024))), 128))
|
|
4302
4368
|
]),
|
|
4303
4369
|
_: 2
|
|
4304
|
-
}, 1024)) : (g(),
|
|
4370
|
+
}, 1024)) : (g(), M("span", cl, "-"))
|
|
4305
4371
|
]),
|
|
4306
4372
|
actions: h(({ row: W }) => [
|
|
4307
|
-
|
|
4373
|
+
F(Bt, null, {
|
|
4308
4374
|
default: h(({ copyToClipboard: Be }) => [
|
|
4309
|
-
|
|
4375
|
+
F(Ge, {
|
|
4310
4376
|
"data-testid": "action-entity-copy-id",
|
|
4311
4377
|
onClick: (lr) => pe(W, Be)
|
|
4312
4378
|
}, {
|
|
4313
4379
|
default: h(() => [
|
|
4314
|
-
Z(
|
|
4380
|
+
Z(K(y(o)("consumer_groups.actions.copy_id")), 1)
|
|
4315
4381
|
]),
|
|
4316
4382
|
_: 2
|
|
4317
4383
|
}, 1032, ["onClick"])
|
|
4318
4384
|
]),
|
|
4319
4385
|
_: 2
|
|
4320
4386
|
}, 1024),
|
|
4321
|
-
|
|
4387
|
+
F(Bt, null, {
|
|
4322
4388
|
default: h(({ copyToClipboard: Be }) => [
|
|
4323
|
-
|
|
4389
|
+
F(Ge, {
|
|
4324
4390
|
"data-testid": "action-entity-copy-json",
|
|
4325
|
-
onClick: (lr) =>
|
|
4391
|
+
onClick: (lr) => z(W, Be)
|
|
4326
4392
|
}, {
|
|
4327
4393
|
default: h(() => [
|
|
4328
|
-
Z(
|
|
4394
|
+
Z(K(y(o)("consumer_groups.actions.copy_json")), 1)
|
|
4329
4395
|
]),
|
|
4330
4396
|
_: 2
|
|
4331
4397
|
}, 1032, ["onClick"])
|
|
4332
4398
|
]),
|
|
4333
4399
|
_: 2
|
|
4334
4400
|
}, 1024),
|
|
4335
|
-
|
|
4401
|
+
F(y(Xe), {
|
|
4336
4402
|
"auth-function": () => e.canRetrieve(W)
|
|
4337
4403
|
}, {
|
|
4338
4404
|
default: h(() => [
|
|
4339
|
-
|
|
4405
|
+
F(Ge, {
|
|
4340
4406
|
"data-testid": "action-entity-view",
|
|
4341
4407
|
"has-divider": "",
|
|
4342
4408
|
item: N(W.id)
|
|
@@ -4344,29 +4410,29 @@ const Kt = (e, n) => {
|
|
|
4344
4410
|
]),
|
|
4345
4411
|
_: 2
|
|
4346
4412
|
}, 1032, ["auth-function"]),
|
|
4347
|
-
|
|
4413
|
+
F(y(Xe), {
|
|
4348
4414
|
"auth-function": () => e.canEdit(W)
|
|
4349
4415
|
}, {
|
|
4350
4416
|
default: h(() => [
|
|
4351
|
-
|
|
4417
|
+
F(Ge, {
|
|
4352
4418
|
"data-testid": "action-entity-edit",
|
|
4353
4419
|
item: B(W.id)
|
|
4354
4420
|
}, null, 8, ["item"])
|
|
4355
4421
|
]),
|
|
4356
4422
|
_: 2
|
|
4357
4423
|
}, 1032, ["auth-function"]),
|
|
4358
|
-
|
|
4424
|
+
F(y(Xe), {
|
|
4359
4425
|
"auth-function": () => e.canDelete(W)
|
|
4360
4426
|
}, {
|
|
4361
4427
|
default: h(() => [
|
|
4362
|
-
|
|
4428
|
+
F(Ge, {
|
|
4363
4429
|
"data-testid": "action-entity-delete",
|
|
4364
4430
|
"has-divider": "",
|
|
4365
4431
|
"is-dangerous": "",
|
|
4366
4432
|
onClick: () => e.config.consumerId ? _e(W) : Q(W)
|
|
4367
4433
|
}, {
|
|
4368
4434
|
default: h(() => [
|
|
4369
|
-
Z(
|
|
4435
|
+
Z(K(e.config.consumerId ? y(o)("consumer_groups.actions.exit") : y(o)("consumer_groups.actions.delete")), 1)
|
|
4370
4436
|
]),
|
|
4371
4437
|
_: 2
|
|
4372
4438
|
}, 1032, ["onClick"])
|
|
@@ -4376,11 +4442,11 @@ const Kt = (e, n) => {
|
|
|
4376
4442
|
]),
|
|
4377
4443
|
_: 1
|
|
4378
4444
|
}, 8, ["cache-identifier", "disable-pagination", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers"]),
|
|
4379
|
-
|
|
4445
|
+
F(y(Es), {
|
|
4380
4446
|
"action-pending": T.value,
|
|
4381
4447
|
"data-testid": "delete-consumer-group-modal",
|
|
4382
4448
|
description: y(o)("consumer_groups.delete.description"),
|
|
4383
|
-
"entity-name":
|
|
4449
|
+
"entity-name": C.value && (C.value.name || C.value.id),
|
|
4384
4450
|
"entity-type": y(dn).ConsumerGroup,
|
|
4385
4451
|
error: P.value,
|
|
4386
4452
|
title: y(o)("consumer_groups.delete.title"),
|
|
@@ -4388,16 +4454,16 @@ const Kt = (e, n) => {
|
|
|
4388
4454
|
onCancel: X,
|
|
4389
4455
|
onProceed: ee
|
|
4390
4456
|
}, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"]),
|
|
4391
|
-
e.config.consumerId ? (g(), V(
|
|
4457
|
+
e.config.consumerId ? (g(), V(ll, {
|
|
4392
4458
|
key: 0,
|
|
4393
4459
|
config: e.config,
|
|
4394
4460
|
"data-testid": "add-to-group-modal",
|
|
4395
4461
|
visible: ie.value,
|
|
4396
|
-
"onAdd:partialSuccess":
|
|
4397
|
-
"onAdd:success":
|
|
4462
|
+
"onAdd:partialSuccess": H[4] || (H[4] = (W) => L(W, !0)),
|
|
4463
|
+
"onAdd:success": H[5] || (H[5] = (W) => L(W)),
|
|
4398
4464
|
onCancel: _
|
|
4399
4465
|
}, null, 8, ["config", "visible"])) : G("", !0),
|
|
4400
|
-
e.config.consumerId &&
|
|
4466
|
+
e.config.consumerId && U.value ? (g(), V(sr, {
|
|
4401
4467
|
key: 1,
|
|
4402
4468
|
"data-testid": "exit-group-modal",
|
|
4403
4469
|
"is-visible": D.value,
|
|
@@ -4407,25 +4473,25 @@ const Kt = (e, n) => {
|
|
|
4407
4473
|
onProceed: ir
|
|
4408
4474
|
}, {
|
|
4409
4475
|
"body-content": h(() => [
|
|
4410
|
-
|
|
4476
|
+
F(y(r), {
|
|
4411
4477
|
class: "exit-modal-message",
|
|
4412
4478
|
keypath: e.config.consumerUsername ? "consumer_groups.consumers.exit.confirmation" : "consumer_groups.consumers.exit.confirmationNoUsername",
|
|
4413
4479
|
tag: "p"
|
|
4414
4480
|
}, Te({
|
|
4415
4481
|
consumerGroup: h(() => [
|
|
4416
|
-
R("strong", null,
|
|
4482
|
+
R("strong", null, K(U.value.name || U.value.id), 1)
|
|
4417
4483
|
]),
|
|
4418
4484
|
_: 2
|
|
4419
4485
|
}, [
|
|
4420
4486
|
e.config.consumerUsername ? {
|
|
4421
4487
|
name: "consumer",
|
|
4422
4488
|
fn: h(() => [
|
|
4423
|
-
R("strong", null,
|
|
4489
|
+
R("strong", null, K(e.config.consumerUsername), 1)
|
|
4424
4490
|
]),
|
|
4425
4491
|
key: "0"
|
|
4426
4492
|
} : void 0
|
|
4427
4493
|
]), 1032, ["keypath"]),
|
|
4428
|
-
R("p", null,
|
|
4494
|
+
R("p", null, K(y(o)("consumer_groups.consumers.exit.description")), 1)
|
|
4429
4495
|
]),
|
|
4430
4496
|
_: 1
|
|
4431
4497
|
}, 8, ["is-visible", "title"])) : G("", !0)
|
|
@@ -4433,10 +4499,10 @@ const Kt = (e, n) => {
|
|
|
4433
4499
|
};
|
|
4434
4500
|
}
|
|
4435
4501
|
});
|
|
4436
|
-
const
|
|
4502
|
+
const Tl = /* @__PURE__ */ Ft(dl, [["__scopeId", "data-v-80c4522c"]]), pl = { class: "kong-ui-entities-consumer-group-form" }, fl = { class: "select-item-label" }, ml = {
|
|
4437
4503
|
key: 0,
|
|
4438
4504
|
class: "select-item-desc"
|
|
4439
|
-
},
|
|
4505
|
+
}, gl = /* @__PURE__ */ ae({
|
|
4440
4506
|
__name: "ConsumerGroupForm",
|
|
4441
4507
|
props: {
|
|
4442
4508
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4476,21 +4542,21 @@ const _l = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4476
4542
|
} = ar(t.config, (ie = $e.form[(ee = t.config) == null ? void 0 : ee.app]) == null ? void 0 : ie.consumersList, "", {
|
|
4477
4543
|
fetchedItemsKey: "data",
|
|
4478
4544
|
searchKeys: ["username", "custom_id", "id"]
|
|
4479
|
-
}), { axiosInstance: m } =
|
|
4545
|
+
}), { axiosInstance: m } = Kt({
|
|
4480
4546
|
headers: (Ve = t.config) == null ? void 0 : Ve.requestHeaders
|
|
4481
|
-
}), { getMessageFromError: f } =
|
|
4547
|
+
}), { getMessageFromError: f } = tl(), I = j(() => u.value.map((_) => ({
|
|
4482
4548
|
label: _.username || _.custom_id,
|
|
4483
4549
|
value: _.id,
|
|
4484
4550
|
selected: a.fields.consumers.includes(_.id),
|
|
4485
4551
|
data: _
|
|
4486
4552
|
// we need this to determine whether or not to show the description text
|
|
4487
|
-
}))), v =
|
|
4553
|
+
}))), v = j(() => {
|
|
4488
4554
|
var _, L;
|
|
4489
4555
|
return (L = $e.form[(_ = t.config) == null ? void 0 : _.app]) == null ? void 0 : L.edit;
|
|
4490
|
-
}), p =
|
|
4556
|
+
}), p = j(() => t.consumerGroupId ? nt.Edit : nt.Create), S = j(() => !!a.fields.name && !w.value), b = j(() => JSON.stringify(a.fields) !== JSON.stringify(i)), k = (_, L = "", re = "") => {
|
|
4491
4557
|
var D, ge, _e, ce, Ne, De;
|
|
4492
|
-
let
|
|
4493
|
-
return ((_e = t.config) == null ? void 0 : _e.app) === "konnect" ?
|
|
4558
|
+
let U = `${(D = t.config) == null ? void 0 : D.apiBaseUrl}${$e.form[(ge = t.config) == null ? void 0 : ge.app][_]}`;
|
|
4559
|
+
return ((_e = t.config) == null ? void 0 : _e.app) === "konnect" ? U = U.replace(/{controlPlaneId}/gi, ((ce = t.config) == null ? void 0 : ce.controlPlaneId) || "") : ((Ne = t.config) == null ? void 0 : Ne.app) === "kongManager" && (U = U.replace(/\/{workspace}/gi, (De = t.config) != null && De.workspace ? `/${t.config.workspace}` : "")), U = U.replace(/{id}/gi, L || t.consumerGroupId), (_ === "addConsumer" || _ === "removeConsumer") && (U = U.replace(/{consumerId}/gi, re)), U;
|
|
4494
4560
|
}, A = () => {
|
|
4495
4561
|
var _;
|
|
4496
4562
|
o.push(((_ = t.config) == null ? void 0 : _.cancelRoute) || { name: "consumer-group-list" });
|
|
@@ -4498,47 +4564,47 @@ const _l = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4498
4564
|
n("error", _);
|
|
4499
4565
|
}, pe = (_) => {
|
|
4500
4566
|
n("loading", _);
|
|
4501
|
-
},
|
|
4502
|
-
var re,
|
|
4503
|
-
a.fields.name = ((re = _ == null ? void 0 : _.item) == null ? void 0 : re.name) || ((
|
|
4567
|
+
}, z = async (_) => {
|
|
4568
|
+
var re, U, D, ge, _e;
|
|
4569
|
+
a.fields.name = ((re = _ == null ? void 0 : _.item) == null ? void 0 : re.name) || ((U = _ == null ? void 0 : _.consumer_group) == null ? void 0 : U.name) || (_ == null ? void 0 : _.name) || "";
|
|
4504
4570
|
const L = ((D = _ == null ? void 0 : _.item) == null ? void 0 : D.tags) || (_ == null ? void 0 : _.consumer_group.tags) || (_ == null ? void 0 : _.tags) || [];
|
|
4505
4571
|
if (a.fields.tags = (L == null ? void 0 : L.join(", ")) || "", "consumers" in _)
|
|
4506
4572
|
a.fields.consumers = ((ge = _ == null ? void 0 : _.consumers) == null ? void 0 : ge.map((ce) => ce.id)) || [];
|
|
4507
4573
|
else
|
|
4508
4574
|
try {
|
|
4509
|
-
const { data: ce } = await m.get(
|
|
4575
|
+
const { data: ce } = await m.get(k("getConsumers"));
|
|
4510
4576
|
a.fields.consumers = "consumers" in ce ? (_e = ce == null ? void 0 : ce.consumers) == null ? void 0 : _e.map((Ne) => Ne.id) : [];
|
|
4511
4577
|
} catch (ce) {
|
|
4512
4578
|
x(ce);
|
|
4513
4579
|
}
|
|
4514
4580
|
Object.assign(i, a.fields);
|
|
4515
|
-
}, w =
|
|
4581
|
+
}, w = j(() => /^[0-9a-zA-Z.\-_~]*$/.test(a.fields.name) ? "" : r("consumer_groups.form.validation_errors.name")), N = () => {
|
|
4516
4582
|
var _, L;
|
|
4517
4583
|
return {
|
|
4518
4584
|
name: a.fields.name,
|
|
4519
4585
|
tags: (L = (_ = a.fields.tags.split(",")) == null ? void 0 : _.map((re) => String(re || "").trim())) == null ? void 0 : L.filter((re) => re !== "")
|
|
4520
4586
|
};
|
|
4521
|
-
}, B = async (_, L = "") => await m.post(
|
|
4587
|
+
}, B = async (_, L = "") => await m.post(k("addConsumer", L, _), { consumer: _ }), C = async (_, L = "") => await m.delete(k("removeConsumer", L, _)), x = (_) => {
|
|
4522
4588
|
a.errorMessage = f(_), n("error", _);
|
|
4523
4589
|
}, T = (_ = t.consumerGroupId) => {
|
|
4524
4590
|
Object.assign(i, a.fields), n("update", { ...a.fields, id: _ });
|
|
4525
4591
|
}, P = (_, L, re = t.consumerGroupId) => {
|
|
4526
|
-
const
|
|
4527
|
-
|
|
4528
|
-
code:
|
|
4592
|
+
const U = _ == null ? void 0 : _.find((D) => D.status !== "fulfilled");
|
|
4593
|
+
U ? x({
|
|
4594
|
+
code: U.status,
|
|
4529
4595
|
message: L
|
|
4530
4596
|
}) : T(re);
|
|
4531
4597
|
}, J = async () => {
|
|
4532
4598
|
let _ = "";
|
|
4533
4599
|
try {
|
|
4534
|
-
const { data: L } = await m.post(
|
|
4600
|
+
const { data: L } = await m.post(k("create"), N());
|
|
4535
4601
|
_ = "item" in L ? L.item.id : L.id;
|
|
4536
4602
|
} catch (L) {
|
|
4537
4603
|
x(L);
|
|
4538
4604
|
}
|
|
4539
4605
|
if (a.fields.consumers.length > 0 && _)
|
|
4540
4606
|
try {
|
|
4541
|
-
const L = a.fields.consumers.map((
|
|
4607
|
+
const L = a.fields.consumers.map((U) => B(U, _)), re = await Promise.allSettled(L);
|
|
4542
4608
|
P(re, r("consumer_groups.errors.add_consumer"), _);
|
|
4543
4609
|
} catch (L) {
|
|
4544
4610
|
x(L);
|
|
@@ -4548,27 +4614,27 @@ const _l = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4548
4614
|
}, Q = async () => {
|
|
4549
4615
|
var re;
|
|
4550
4616
|
try {
|
|
4551
|
-
((re = t.config) == null ? void 0 : re.app) === "konnect" ? await m.put(
|
|
4552
|
-
} catch (
|
|
4553
|
-
x(
|
|
4617
|
+
((re = t.config) == null ? void 0 : re.app) === "konnect" ? await m.put(k("edit"), N()) : await m.patch(k("edit"), N());
|
|
4618
|
+
} catch (U) {
|
|
4619
|
+
x(U);
|
|
4554
4620
|
}
|
|
4555
|
-
const _ = a.fields.consumers.filter((
|
|
4621
|
+
const _ = a.fields.consumers.filter((U) => !i.consumers.includes(U)), L = i.consumers.filter((U) => !a.fields.consumers.includes(U));
|
|
4556
4622
|
if (L.length === 0 && _.length === 0)
|
|
4557
4623
|
T();
|
|
4558
4624
|
else {
|
|
4559
4625
|
if (L.length > 0)
|
|
4560
4626
|
try {
|
|
4561
|
-
const
|
|
4627
|
+
const U = L.map((ge) => C(ge)), D = await Promise.allSettled(U);
|
|
4562
4628
|
P(D, r("consumer_groups.errors.remove_consumer"));
|
|
4563
|
-
} catch (
|
|
4564
|
-
x(
|
|
4629
|
+
} catch (U) {
|
|
4630
|
+
x(U);
|
|
4565
4631
|
}
|
|
4566
4632
|
if (_.length > 0)
|
|
4567
4633
|
try {
|
|
4568
|
-
const
|
|
4634
|
+
const U = _.map((ge) => B(ge)), D = await Promise.allSettled(U);
|
|
4569
4635
|
P(D, r("consumer_groups.errors.add_consumer"));
|
|
4570
|
-
} catch (
|
|
4571
|
-
x(
|
|
4636
|
+
} catch (U) {
|
|
4637
|
+
x(U);
|
|
4572
4638
|
}
|
|
4573
4639
|
}
|
|
4574
4640
|
}, X = async () => {
|
|
@@ -4581,9 +4647,9 @@ const _l = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4581
4647
|
return Qe(async () => {
|
|
4582
4648
|
await d();
|
|
4583
4649
|
}), (_, L) => {
|
|
4584
|
-
const re =
|
|
4585
|
-
return g(),
|
|
4586
|
-
|
|
4650
|
+
const re = q("KInput"), U = q("KMultiselect");
|
|
4651
|
+
return g(), M("div", pl, [
|
|
4652
|
+
F(y(Cs), {
|
|
4587
4653
|
"can-submit": S.value && b.value,
|
|
4588
4654
|
config: e.config,
|
|
4589
4655
|
"edit-id": e.consumerGroupId,
|
|
@@ -4592,17 +4658,17 @@ const _l = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4592
4658
|
"is-readonly": a.readonly,
|
|
4593
4659
|
onCancel: A,
|
|
4594
4660
|
"onFetch:error": L[3] || (L[3] = (D) => ne(D)),
|
|
4595
|
-
"onFetch:success":
|
|
4661
|
+
"onFetch:success": z,
|
|
4596
4662
|
onLoading: L[4] || (L[4] = (D) => pe(D)),
|
|
4597
4663
|
onSubmit: X
|
|
4598
4664
|
}, {
|
|
4599
4665
|
default: h(() => [
|
|
4600
|
-
|
|
4666
|
+
F(y(un), {
|
|
4601
4667
|
description: y(r)("consumer_groups.form.general_info.description"),
|
|
4602
4668
|
title: y(r)("consumer_groups.form.general_info.title")
|
|
4603
4669
|
}, {
|
|
4604
4670
|
default: h(() => [
|
|
4605
|
-
|
|
4671
|
+
F(re, {
|
|
4606
4672
|
modelValue: a.fields.name,
|
|
4607
4673
|
"onUpdate:modelValue": L[0] || (L[0] = (D) => a.fields.name = D),
|
|
4608
4674
|
modelModifiers: { trim: !0 },
|
|
@@ -4613,7 +4679,7 @@ const _l = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4613
4679
|
required: "",
|
|
4614
4680
|
type: "text"
|
|
4615
4681
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
4616
|
-
|
|
4682
|
+
F(re, {
|
|
4617
4683
|
modelValue: a.fields.tags,
|
|
4618
4684
|
"onUpdate:modelValue": L[1] || (L[1] = (D) => a.fields.tags = D),
|
|
4619
4685
|
modelModifiers: { trim: !0 },
|
|
@@ -4631,13 +4697,13 @@ const _l = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4631
4697
|
]),
|
|
4632
4698
|
_: 1
|
|
4633
4699
|
}, 8, ["description", "title"]),
|
|
4634
|
-
|
|
4700
|
+
F(y(un), {
|
|
4635
4701
|
description: y(r)("consumer_groups.form.consumers.description"),
|
|
4636
4702
|
"has-divider": "",
|
|
4637
4703
|
title: y(r)("consumer_groups.form.consumers.title")
|
|
4638
4704
|
}, {
|
|
4639
4705
|
default: h(() => [
|
|
4640
|
-
|
|
4706
|
+
F(U, {
|
|
4641
4707
|
modelValue: a.fields.consumers,
|
|
4642
4708
|
"onUpdate:modelValue": L[2] || (L[2] = (D) => a.fields.consumers = D),
|
|
4643
4709
|
appearance: "select",
|
|
@@ -4653,8 +4719,8 @@ const _l = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4653
4719
|
"item-template": h(({ item: D }) => {
|
|
4654
4720
|
var ge, _e, ce;
|
|
4655
4721
|
return [
|
|
4656
|
-
R("div",
|
|
4657
|
-
(ge = D == null ? void 0 : D.data) != null && ge.username && ((_e = D == null ? void 0 : D.data) != null && _e.custom_id) ? (g(),
|
|
4722
|
+
R("div", fl, K(D.label), 1),
|
|
4723
|
+
(ge = D == null ? void 0 : D.data) != null && ge.username && ((_e = D == null ? void 0 : D.data) != null && _e.custom_id) ? (g(), M("div", ml, K((ce = D == null ? void 0 : D.data) == null ? void 0 : ce.custom_id), 1)) : G("", !0)
|
|
4658
4724
|
];
|
|
4659
4725
|
}),
|
|
4660
4726
|
_: 1
|
|
@@ -4669,7 +4735,7 @@ const _l = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4669
4735
|
};
|
|
4670
4736
|
}
|
|
4671
4737
|
});
|
|
4672
|
-
const
|
|
4738
|
+
const $l = /* @__PURE__ */ Ft(gl, [["__scopeId", "data-v-102d40d2"]]), yl = { class: "kong-ui-consumer-group-entity-config-card" }, jl = /* @__PURE__ */ ae({
|
|
4673
4739
|
__name: "ConsumerGroupConfigCard",
|
|
4674
4740
|
props: {
|
|
4675
4741
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4696,7 +4762,7 @@ const wl = /* @__PURE__ */ Kt(cl, [["__scopeId", "data-v-102d40d2"]]), dl = { cl
|
|
|
4696
4762
|
},
|
|
4697
4763
|
emits: ["loading", "fetch:error", "fetch:success", "copy:success"],
|
|
4698
4764
|
setup(e) {
|
|
4699
|
-
const n = e, { i18n: { t } } = ct.useI18n(), r =
|
|
4765
|
+
const n = e, { i18n: { t } } = ct.useI18n(), r = j(() => $e.form[n.config.app].edit), o = E({
|
|
4700
4766
|
id: {},
|
|
4701
4767
|
name: {},
|
|
4702
4768
|
created_at: {},
|
|
@@ -4705,8 +4771,8 @@ const wl = /* @__PURE__ */ Kt(cl, [["__scopeId", "data-v-102d40d2"]]), dl = { cl
|
|
|
4705
4771
|
tooltip: t("consumer_groups.form.fields.tags.tooltip")
|
|
4706
4772
|
}
|
|
4707
4773
|
});
|
|
4708
|
-
return (a, i) => (g(),
|
|
4709
|
-
|
|
4774
|
+
return (a, i) => (g(), M("div", yl, [
|
|
4775
|
+
F(y(hs), {
|
|
4710
4776
|
config: e.config,
|
|
4711
4777
|
"config-card-doc": e.configCardDoc,
|
|
4712
4778
|
"config-schema": o.value,
|
|
@@ -4722,7 +4788,7 @@ const wl = /* @__PURE__ */ Kt(cl, [["__scopeId", "data-v-102d40d2"]]), dl = { cl
|
|
|
4722
4788
|
}
|
|
4723
4789
|
});
|
|
4724
4790
|
export {
|
|
4725
|
-
|
|
4726
|
-
|
|
4727
|
-
|
|
4791
|
+
jl as ConsumerGroupConfigCard,
|
|
4792
|
+
$l as ConsumerGroupForm,
|
|
4793
|
+
Tl as ConsumerGroupList
|
|
4728
4794
|
};
|