@kong-ui-public/entities-gateway-services 2.7.9 → 2.7.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as X, ref as F, computed as A, resolveComponent as U, openBlock as w, createBlock as D, Teleport as
|
|
2
|
-
import { useRouter as
|
|
3
|
-
import { createI18n as
|
|
4
|
-
import
|
|
5
|
-
import { BadgeMethodAppearances as
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as X, ref as F, computed as A, resolveComponent as U, openBlock as w, createBlock as D, Teleport as sr, createVNode as C, withCtx as v, unref as f, createTextVNode as G, toDisplayString as j, createElementVNode as E, watch as we, renderSlot as te, createCommentVNode as J, onBeforeMount as xt, createSlots as Ue, renderList as me, createElementBlock as T, withModifiers as Le, withDirectives as ke, vShow as Ce, Fragment as ve, normalizeClass as xe, withKeys as cr, useSlots as It, resolveDynamicComponent as Te, useCssVars as ni, inject as ur, onMounted as li, onUnmounted as dr, normalizeStyle as st, normalizeProps as pr, guardReactiveProps as fr, mergeProps as gr, pushScopeId as ct, popScopeId as ut, reactive as Ft } from "vue";
|
|
2
|
+
import { useRouter as At } from "vue-router";
|
|
3
|
+
import { createI18n as si, i18nTComponent as ci } from "@kong-ui-public/i18n";
|
|
4
|
+
import qt from "axios";
|
|
5
|
+
import { BadgeMethodAppearances as mr } from "@kong/kongponents";
|
|
6
|
+
const yr = {
|
|
7
7
|
create: "New Gateway Service",
|
|
8
8
|
copy_id: "Copy ID",
|
|
9
9
|
copy_json: "Copy JSON",
|
|
@@ -19,12 +19,12 @@ const gr = {
|
|
|
19
19
|
description: "Deleting this Gateway Service will also remove any associated routes and plugins. This action cannot be reversed.",
|
|
20
20
|
menu_label: "Delete"
|
|
21
21
|
}
|
|
22
|
-
},
|
|
22
|
+
}, vr = {
|
|
23
23
|
placeholder: {
|
|
24
24
|
konnect: "Filter by name",
|
|
25
25
|
kongManager: "Filter by exact name or ID"
|
|
26
26
|
}
|
|
27
|
-
},
|
|
27
|
+
}, hr = {
|
|
28
28
|
title: "Gateway Services",
|
|
29
29
|
list: {
|
|
30
30
|
toolbar_actions: {
|
|
@@ -164,33 +164,33 @@ const gr = {
|
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
|
-
},
|
|
167
|
+
}, br = {
|
|
168
168
|
general: "Gateway Services could not be retrieved",
|
|
169
169
|
delete: "The gateway service could not be deleted at this time.",
|
|
170
170
|
copy: "Failed to copy to clipboard",
|
|
171
171
|
urlErrorMessage: "Error: invalid URL"
|
|
172
|
-
},
|
|
172
|
+
}, wr = {
|
|
173
173
|
success: "Copied {val} to clipboard",
|
|
174
174
|
success_brief: "Successfully copied to clipboard"
|
|
175
|
-
},
|
|
175
|
+
}, _r = {
|
|
176
176
|
gateway_services: "gateway services"
|
|
177
|
-
},
|
|
178
|
-
actions:
|
|
179
|
-
search:
|
|
180
|
-
gateway_services:
|
|
181
|
-
errors:
|
|
182
|
-
copy:
|
|
183
|
-
glossary:
|
|
177
|
+
}, kr = {
|
|
178
|
+
actions: yr,
|
|
179
|
+
search: vr,
|
|
180
|
+
gateway_services: hr,
|
|
181
|
+
errors: br,
|
|
182
|
+
copy: wr,
|
|
183
|
+
glossary: _r
|
|
184
184
|
};
|
|
185
|
-
function
|
|
186
|
-
const e =
|
|
185
|
+
function Cr() {
|
|
186
|
+
const e = si("en-us", kr);
|
|
187
187
|
return {
|
|
188
188
|
i18n: e,
|
|
189
|
-
i18nT:
|
|
189
|
+
i18nT: ci(e)
|
|
190
190
|
// Translation component <i18n-t>
|
|
191
191
|
};
|
|
192
192
|
}
|
|
193
|
-
function
|
|
193
|
+
function Sr() {
|
|
194
194
|
return {
|
|
195
195
|
getPortFromProtocol: (i, t) => {
|
|
196
196
|
const a = [80, 443], r = Number(t);
|
|
@@ -212,44 +212,44 @@ function kr() {
|
|
|
212
212
|
}
|
|
213
213
|
};
|
|
214
214
|
}
|
|
215
|
-
const
|
|
216
|
-
useI18n:
|
|
217
|
-
usePortFromProtocol:
|
|
218
|
-
}, Ge = {
|
|
215
|
+
const it = {
|
|
216
|
+
useI18n: Cr,
|
|
217
|
+
usePortFromProtocol: Sr
|
|
218
|
+
}, et = "/v2/control-planes/{controlPlaneId}/core-entities", tt = "/{workspace}", Ge = {
|
|
219
219
|
list: {
|
|
220
220
|
konnect: {
|
|
221
|
-
all:
|
|
221
|
+
all: `${et}/services`
|
|
222
222
|
},
|
|
223
223
|
kongManager: {
|
|
224
|
-
all:
|
|
224
|
+
all: `${tt}/services`
|
|
225
225
|
}
|
|
226
226
|
},
|
|
227
227
|
form: {
|
|
228
228
|
konnect: {
|
|
229
|
-
create:
|
|
230
|
-
validate:
|
|
231
|
-
edit:
|
|
229
|
+
create: `${et}/services`,
|
|
230
|
+
validate: `${et}/v1/schemas/json/service/validate`,
|
|
231
|
+
edit: `${et}/services/{id}`
|
|
232
232
|
},
|
|
233
233
|
kongManager: {
|
|
234
|
-
create:
|
|
235
|
-
validate:
|
|
236
|
-
edit:
|
|
234
|
+
create: `${tt}/services`,
|
|
235
|
+
validate: `${tt}/schemas/services/validate`,
|
|
236
|
+
edit: `${tt}/services/{id}`
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
239
|
};
|
|
240
|
-
var
|
|
241
|
-
function
|
|
240
|
+
var ui = /* @__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))(ui || {}), bt = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(bt || {}), Me = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(Me || {}), Q = /* @__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))(Q || {}), se = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(se || {});
|
|
241
|
+
function xr() {
|
|
242
242
|
return {
|
|
243
243
|
getAxiosInstance: (e = {}) => {
|
|
244
244
|
try {
|
|
245
|
-
const i =
|
|
246
|
-
return typeof i == "function" ? i(e) :
|
|
245
|
+
const i = ur("get-axios-instance", void 0);
|
|
246
|
+
return typeof i == "function" ? i(e) : qt.create({
|
|
247
247
|
withCredentials: !0,
|
|
248
248
|
timeout: 3e4,
|
|
249
249
|
...e
|
|
250
250
|
});
|
|
251
251
|
} catch (i) {
|
|
252
|
-
return console.warn("getAxiosInstance:", i.message || i),
|
|
252
|
+
return console.warn("getAxiosInstance:", i.message || i), qt.create({
|
|
253
253
|
withCredentials: !0,
|
|
254
254
|
timeout: 3e4,
|
|
255
255
|
...e
|
|
@@ -262,7 +262,7 @@ function Cr() {
|
|
|
262
262
|
}
|
|
263
263
|
};
|
|
264
264
|
}
|
|
265
|
-
function
|
|
265
|
+
function Ir() {
|
|
266
266
|
return {
|
|
267
267
|
debounce: (e, i) => {
|
|
268
268
|
let t;
|
|
@@ -274,12 +274,12 @@ function Sr() {
|
|
|
274
274
|
}
|
|
275
275
|
};
|
|
276
276
|
}
|
|
277
|
-
const
|
|
277
|
+
const mt = "khcp-user-table-preferences", Ar = {
|
|
278
278
|
pageSize: 30,
|
|
279
279
|
sortColumnKey: void 0,
|
|
280
280
|
sortColumnOrder: void 0
|
|
281
281
|
};
|
|
282
|
-
function
|
|
282
|
+
function Tr() {
|
|
283
283
|
const e = (t) => {
|
|
284
284
|
if (typeof t == "string")
|
|
285
285
|
try {
|
|
@@ -289,44 +289,44 @@ function xr() {
|
|
|
289
289
|
return;
|
|
290
290
|
}
|
|
291
291
|
}, i = () => {
|
|
292
|
-
const t = e(localStorage.getItem(
|
|
292
|
+
const t = e(localStorage.getItem(mt));
|
|
293
293
|
return !t || !Object.keys(t).length ? /* @__PURE__ */ new Map() : new Map(Object.entries(t));
|
|
294
294
|
};
|
|
295
295
|
return {
|
|
296
296
|
setTablePreferences: (t, a) => {
|
|
297
297
|
try {
|
|
298
298
|
const r = i();
|
|
299
|
-
r.set(t, a), localStorage.setItem(
|
|
299
|
+
r.set(t, a), localStorage.setItem(mt, JSON.stringify(Object.fromEntries(r.entries())));
|
|
300
300
|
} catch (r) {
|
|
301
301
|
console.error("useTablePreferences(setTablePreferences)", r);
|
|
302
302
|
}
|
|
303
303
|
},
|
|
304
304
|
getTablePreferences: (t) => {
|
|
305
305
|
const a = i();
|
|
306
|
-
return (a == null ? void 0 : a.get(t)) || void 0 ||
|
|
306
|
+
return (a == null ? void 0 : a.get(t)) || void 0 || Ar;
|
|
307
307
|
},
|
|
308
308
|
deleteAllTablePreferences: () => {
|
|
309
|
-
localStorage.removeItem(
|
|
309
|
+
localStorage.removeItem(mt);
|
|
310
310
|
}
|
|
311
311
|
};
|
|
312
312
|
}
|
|
313
|
-
function
|
|
314
|
-
const { getAxiosInstance: i } =
|
|
313
|
+
function Tt(e = {}) {
|
|
314
|
+
const { getAxiosInstance: i } = xr();
|
|
315
315
|
return {
|
|
316
316
|
axiosInstance: i(e)
|
|
317
317
|
};
|
|
318
318
|
}
|
|
319
|
-
const
|
|
319
|
+
const $r = {
|
|
320
320
|
actions: {
|
|
321
321
|
copyId: "Copy ID",
|
|
322
322
|
copied_id: 'Copied "{id}" to the clipboard',
|
|
323
323
|
copyToClipboard: "Copied successfully!",
|
|
324
324
|
copyToClipboardFailed: "Failed to copy to the clipboard"
|
|
325
325
|
}
|
|
326
|
-
},
|
|
326
|
+
}, jr = {
|
|
327
327
|
message: "Are you sure you want to delete this {entityType}?",
|
|
328
328
|
messageWithName: "Are you sure you want to delete this {entityType} {entityName}?"
|
|
329
|
-
},
|
|
329
|
+
}, Mr = {
|
|
330
330
|
actions: {
|
|
331
331
|
viewConfiguration: "View Configuration",
|
|
332
332
|
save: "Save",
|
|
@@ -342,13 +342,13 @@ const Ar = {
|
|
|
342
342
|
errors: {
|
|
343
343
|
edit: "The entity could not be edited at this time."
|
|
344
344
|
}
|
|
345
|
-
},
|
|
345
|
+
}, Or = {
|
|
346
346
|
emptyState: {
|
|
347
347
|
noSearchResultsTitle: "No results found",
|
|
348
348
|
noSearchResultsMessage: "Please adjust the criteria and try again.",
|
|
349
349
|
noSearchResultsCtaText: "Clear"
|
|
350
350
|
}
|
|
351
|
-
},
|
|
351
|
+
}, Er = {
|
|
352
352
|
title: "Configuration",
|
|
353
353
|
actions: {
|
|
354
354
|
copy: "Copy JSON"
|
|
@@ -383,7 +383,7 @@ const Ar = {
|
|
|
383
383
|
entryTitle: "Entry {index}",
|
|
384
384
|
structuredFormat: "Structured"
|
|
385
385
|
}
|
|
386
|
-
},
|
|
386
|
+
}, Nr = {
|
|
387
387
|
filterButtonText: "Filter",
|
|
388
388
|
fieldLabel: "Filter by:",
|
|
389
389
|
inputPlaceholder: "Enter a value",
|
|
@@ -391,17 +391,17 @@ const Ar = {
|
|
|
391
391
|
applyButtonText: "Apply",
|
|
392
392
|
clearButtonText: "Clear",
|
|
393
393
|
clearAllButtonText: "Clear all filters"
|
|
394
|
-
},
|
|
394
|
+
}, Fr = {
|
|
395
395
|
errors: {
|
|
396
396
|
fetch: "Could not fetch available items",
|
|
397
397
|
invalid: "Please select a valid value"
|
|
398
398
|
}
|
|
399
|
-
},
|
|
399
|
+
}, qr = {
|
|
400
400
|
unexpected: "An unexpected error has occurred",
|
|
401
401
|
dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.'
|
|
402
|
-
},
|
|
402
|
+
}, Lr = {
|
|
403
403
|
utf8Name: "The name can be any string containing characters, letters, numbers, or the following characters: ., -, _, or ~. Do not use spaces."
|
|
404
|
-
},
|
|
404
|
+
}, Vr = {
|
|
405
405
|
enable: {
|
|
406
406
|
title: "Enable {entityType}",
|
|
407
407
|
message: "Are you sure you want to enable the {entityType} {entityName}?",
|
|
@@ -412,27 +412,27 @@ const Ar = {
|
|
|
412
412
|
message: "Are you sure you want to disable the {entityType} {entityName}?",
|
|
413
413
|
confirmText: "Yes, disable"
|
|
414
414
|
}
|
|
415
|
-
},
|
|
416
|
-
global:
|
|
417
|
-
deleteModal:
|
|
418
|
-
baseForm:
|
|
419
|
-
baseTable:
|
|
420
|
-
baseConfigCard:
|
|
421
|
-
filter:
|
|
422
|
-
debouncedFilter:
|
|
423
|
-
errors:
|
|
424
|
-
validationErrors:
|
|
425
|
-
toggleModal:
|
|
415
|
+
}, Kr = {
|
|
416
|
+
global: $r,
|
|
417
|
+
deleteModal: jr,
|
|
418
|
+
baseForm: Mr,
|
|
419
|
+
baseTable: Or,
|
|
420
|
+
baseConfigCard: Er,
|
|
421
|
+
filter: Nr,
|
|
422
|
+
debouncedFilter: Fr,
|
|
423
|
+
errors: qr,
|
|
424
|
+
validationErrors: Lr,
|
|
425
|
+
toggleModal: Vr
|
|
426
426
|
};
|
|
427
|
-
function
|
|
428
|
-
const e =
|
|
427
|
+
function dt() {
|
|
428
|
+
const e = si("en-us", Kr);
|
|
429
429
|
return {
|
|
430
430
|
i18n: e,
|
|
431
|
-
i18nT:
|
|
431
|
+
i18nT: ci(e)
|
|
432
432
|
// Translation component <i18n-t>
|
|
433
433
|
};
|
|
434
434
|
}
|
|
435
|
-
function
|
|
435
|
+
function di() {
|
|
436
436
|
const e = (t, a) => (a == null ? void 0 : a[t]) ?? void 0, i = (t, a) => {
|
|
437
437
|
if (t.length !== a.length)
|
|
438
438
|
return !1;
|
|
@@ -476,22 +476,22 @@ function ci() {
|
|
|
476
476
|
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
|
|
477
477
|
};
|
|
478
478
|
}
|
|
479
|
-
function
|
|
479
|
+
function Ur(e, i, t, a = {
|
|
480
480
|
fetchedItemsKey: "data",
|
|
481
481
|
searchKeys: ["id"]
|
|
482
482
|
}) {
|
|
483
483
|
t || (t = "1000");
|
|
484
|
-
const { axiosInstance: r } =
|
|
484
|
+
const { axiosInstance: r } = Tt({
|
|
485
485
|
headers: e.requestHeaders
|
|
486
|
-
}), { i18n: { t: n } } =
|
|
486
|
+
}), { i18n: { t: n } } = dt(), { debounce: o } = Ir(), c = o(async (s) => {
|
|
487
487
|
await ee(s);
|
|
488
|
-
}, 200), l = F(!1), d = F(""), m = F(""), p = F([]), k = F([]), h = F(void 0),
|
|
489
|
-
let
|
|
490
|
-
e.app === "konnect" ?
|
|
491
|
-
const { isValidUuid: S } =
|
|
488
|
+
}, 200), l = F(!1), d = F(""), m = F(""), p = F([]), k = F([]), h = F(void 0), I = f(i);
|
|
489
|
+
let x = `${e.apiBaseUrl}${I}`;
|
|
490
|
+
e.app === "konnect" ? x = x.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (x = x.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
|
|
491
|
+
const { isValidUuid: S } = di(), P = async () => {
|
|
492
492
|
try {
|
|
493
493
|
l.value = !0;
|
|
494
|
-
const { data: s } = await r.get(`${
|
|
494
|
+
const { data: s } = await r.get(`${x}?size=${t}`);
|
|
495
495
|
s != null && s.next || (h.value = a.fetchedItemsKey in s ? s[a.fetchedItemsKey] : []), k.value = a.fetchedItemsKey in s ? s[a.fetchedItemsKey] : [], p.value = k.value;
|
|
496
496
|
} catch {
|
|
497
497
|
p.value = [], d.value = n("debouncedFilter.errors.fetch");
|
|
@@ -504,23 +504,23 @@ function Vr(e, i, t, a = {
|
|
|
504
504
|
if (q.value = s || "", h.value === void 0)
|
|
505
505
|
try {
|
|
506
506
|
if (l.value = !0, d.value = "", m.value = "", e.app === "konnect") {
|
|
507
|
-
let B =
|
|
507
|
+
let B = x + "";
|
|
508
508
|
s && (B += `/${s}`);
|
|
509
|
-
const { data:
|
|
510
|
-
a.fetchedItemsKey in
|
|
509
|
+
const { data: $ } = await r.get(`${B}?size=${t}`);
|
|
510
|
+
a.fetchedItemsKey in $ ? p.value = $[a.fetchedItemsKey] : $ != null && $.id ? p.value = [$] : p.value = [];
|
|
511
511
|
} else if (s) {
|
|
512
512
|
const B = [];
|
|
513
513
|
S(s) && a.searchKeys.includes("id") ? B.push((async () => {
|
|
514
|
-
const { data: L } = await r.get(`${
|
|
514
|
+
const { data: L } = await r.get(`${x}/${s}`);
|
|
515
515
|
return [L[a.fetchedItemsKey] ?? L];
|
|
516
516
|
})()) : B.push(
|
|
517
517
|
...a.searchKeys.filter((L) => L !== "id").map(async (L) => {
|
|
518
|
-
const { data: N } = await r.get(`${
|
|
518
|
+
const { data: N } = await r.get(`${x}?${L}=${s}`);
|
|
519
519
|
return N[a.fetchedItemsKey];
|
|
520
520
|
})
|
|
521
521
|
);
|
|
522
|
-
const
|
|
523
|
-
p.value = [], (y =
|
|
522
|
+
const $ = await Promise.all(B), z = /* @__PURE__ */ new Set();
|
|
523
|
+
p.value = [], (y = $ == null ? void 0 : $.forEach) == null || y.call($, (L) => {
|
|
524
524
|
var N;
|
|
525
525
|
(N = L == null ? void 0 : L.forEach) == null || N.call(L, (H) => {
|
|
526
526
|
z.has(H.id) || (z.add(H.id), p.value.push(H));
|
|
@@ -535,10 +535,10 @@ function Vr(e, i, t, a = {
|
|
|
535
535
|
}
|
|
536
536
|
else
|
|
537
537
|
l.value = !0, m.value = "", s ? (p.value = (V = h.value) == null ? void 0 : V.filter((B) => {
|
|
538
|
-
var
|
|
538
|
+
var $;
|
|
539
539
|
let z = !1;
|
|
540
540
|
for (const L of a.searchKeys) {
|
|
541
|
-
const N = typeof B[L] == "string" ? (
|
|
541
|
+
const N = typeof B[L] == "string" ? ($ = B[L]) == null ? void 0 : $.toLowerCase() : B[L];
|
|
542
542
|
N != null && N.includes(s.toLowerCase()) && (z = !0);
|
|
543
543
|
}
|
|
544
544
|
return z;
|
|
@@ -554,14 +554,14 @@ function Vr(e, i, t, a = {
|
|
|
554
554
|
debouncedQueryChange: c
|
|
555
555
|
};
|
|
556
556
|
}
|
|
557
|
-
function
|
|
557
|
+
function Br(e, i) {
|
|
558
558
|
const t = f(i), a = A(
|
|
559
559
|
() => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${t}`) : new URL(t)
|
|
560
560
|
);
|
|
561
561
|
return a.value.search = "", (r) => `${a.value.href}/${r}`;
|
|
562
562
|
}
|
|
563
|
-
function
|
|
564
|
-
const { i18n: { t: e } } =
|
|
563
|
+
function Pr() {
|
|
564
|
+
const { i18n: { t: e } } = dt();
|
|
565
565
|
return {
|
|
566
566
|
getMessageFromError: (i) => {
|
|
567
567
|
var t, a, r, n;
|
|
@@ -590,7 +590,7 @@ function Ur() {
|
|
|
590
590
|
}
|
|
591
591
|
};
|
|
592
592
|
}
|
|
593
|
-
function
|
|
593
|
+
function Rr(e) {
|
|
594
594
|
const i = window.location.origin, t = i.endsWith("/") ? i : `${i}/`;
|
|
595
595
|
try {
|
|
596
596
|
const a = e.join("/"), r = `${t}${a}`, n = e.some((o) => o.trim() === "");
|
|
@@ -601,7 +601,7 @@ function Br(e) {
|
|
|
601
601
|
return console.warn("Failed to build valid URL:", a), "";
|
|
602
602
|
}
|
|
603
603
|
}
|
|
604
|
-
function
|
|
604
|
+
function pi(e, i) {
|
|
605
605
|
const t = F(f(e)), a = F(f(i)), r = A(
|
|
606
606
|
() => !!(t.value.app === "konnect" || t.value.isExactMatch)
|
|
607
607
|
), n = A(
|
|
@@ -611,20 +611,20 @@ function ui(e, i) {
|
|
|
611
611
|
const { page: c, pageSize: l, offset: d, sortColumnKey: m, sortColumnOrder: p, query: k } = o;
|
|
612
612
|
try {
|
|
613
613
|
let h = new URL(n.value.href);
|
|
614
|
-
return r.value && k ? (h.search = "", h = t.value.isExactMatch ? new URL(`${h.href}/${k}/`) : new URL(`${h.href}?filter[name][contains]=${k}`)) : (r.value || new URLSearchParams(k).forEach((
|
|
615
|
-
h.searchParams.append(
|
|
614
|
+
return r.value && k ? (h.search = "", h = t.value.isExactMatch ? new URL(`${h.href}/${k}/`) : new URL(`${h.href}?filter[name][contains]=${k}`)) : (r.value || new URLSearchParams(k).forEach((I, x) => {
|
|
615
|
+
h.searchParams.append(x, I);
|
|
616
616
|
}), m && h.searchParams.append("sort_by", m), p === "desc" && h.searchParams.append("sort_desc", "1"), h.searchParams.append("size", String(l))), d && c !== 1 && h.searchParams.append("offset", String(d)), h.href;
|
|
617
617
|
} catch (h) {
|
|
618
618
|
return console.error("RouteList(fetcher)", h), a.value;
|
|
619
619
|
}
|
|
620
620
|
};
|
|
621
621
|
}
|
|
622
|
-
function
|
|
622
|
+
function Dr(e, i, t = "data") {
|
|
623
623
|
var a;
|
|
624
|
-
const r = f(i), { axiosInstance: n } =
|
|
624
|
+
const r = f(i), { axiosInstance: n } = Tt({
|
|
625
625
|
...e.axiosRequestConfig,
|
|
626
626
|
headers: { ...(a = e.axiosRequestConfig) == null ? void 0 : a.headers, ...e.requestHeaders }
|
|
627
|
-
}), o =
|
|
627
|
+
}), o = pi(e, r), c = F({
|
|
628
628
|
status: Me.Idle
|
|
629
629
|
});
|
|
630
630
|
return { fetcher: async (l) => {
|
|
@@ -637,11 +637,11 @@ function Pr(e, i, t = "data") {
|
|
|
637
637
|
if (p.status >= 400)
|
|
638
638
|
throw p;
|
|
639
639
|
const k = p.data, h = t && t.replace(/[^\w-_]/gi, "");
|
|
640
|
-
let
|
|
641
|
-
k[h] && Array.isArray(k[h]) ?
|
|
642
|
-
const
|
|
643
|
-
data:
|
|
644
|
-
total:
|
|
640
|
+
let I;
|
|
641
|
+
k[h] && Array.isArray(k[h]) ? I = k[h] : Array.isArray(k) ? I = k : I = Object.keys(k).length ? [k] : [];
|
|
642
|
+
const x = {
|
|
643
|
+
data: I,
|
|
644
|
+
total: I.length,
|
|
645
645
|
...k.offset ? {
|
|
646
646
|
pagination: {
|
|
647
647
|
offset: k.offset
|
|
@@ -650,8 +650,8 @@ function Pr(e, i, t = "data") {
|
|
|
650
650
|
};
|
|
651
651
|
return c.value = {
|
|
652
652
|
status: Me.Idle,
|
|
653
|
-
response:
|
|
654
|
-
},
|
|
653
|
+
response: x
|
|
654
|
+
}, x;
|
|
655
655
|
} catch (m) {
|
|
656
656
|
const p = {
|
|
657
657
|
data: [],
|
|
@@ -669,69 +669,69 @@ function Pr(e, i, t = "data") {
|
|
|
669
669
|
}
|
|
670
670
|
}, fetcherState: c };
|
|
671
671
|
}
|
|
672
|
-
function
|
|
672
|
+
function zr() {
|
|
673
673
|
const e = (t, a = "_") => t ? t.split(a).map((r) => r.toLowerCase() === "id" ? r.toUpperCase() : r.charAt(0).toUpperCase() + r.substring(1)).join(" ") : "", i = /(?:^|[\s-:'"])\w/g;
|
|
674
674
|
return {
|
|
675
675
|
capitalize: (t) => t ? t.replace(i, (a) => a.toUpperCase()) : "",
|
|
676
676
|
convertKeyToTitle: e
|
|
677
677
|
};
|
|
678
678
|
}
|
|
679
|
-
const
|
|
679
|
+
const fi = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, Lt = (e) => {
|
|
680
680
|
if (typeof e != "string")
|
|
681
681
|
throw new TypeError("Invalid argument expected string");
|
|
682
|
-
const i = e.match(
|
|
682
|
+
const i = e.match(fi);
|
|
683
683
|
if (!i)
|
|
684
684
|
throw new Error(`Invalid argument not valid semver ('${e}' received)`);
|
|
685
685
|
return i.shift(), i;
|
|
686
|
-
},
|
|
686
|
+
}, Vt = (e) => e === "*" || e === "x" || e === "X", Kt = (e) => {
|
|
687
687
|
const i = parseInt(e, 10);
|
|
688
688
|
return isNaN(i) ? e : i;
|
|
689
|
-
},
|
|
690
|
-
if (
|
|
689
|
+
}, Hr = (e, i) => typeof e != typeof i ? [String(e), String(i)] : [e, i], Jr = (e, i) => {
|
|
690
|
+
if (Vt(e) || Vt(i))
|
|
691
691
|
return 0;
|
|
692
|
-
const [t, a] =
|
|
692
|
+
const [t, a] = Hr(Kt(e), Kt(i));
|
|
693
693
|
return t > a ? 1 : t < a ? -1 : 0;
|
|
694
|
-
},
|
|
694
|
+
}, Ut = (e, i) => {
|
|
695
695
|
for (let t = 0; t < Math.max(e.length, i.length); t++) {
|
|
696
|
-
const a =
|
|
696
|
+
const a = Jr(e[t] || "0", i[t] || "0");
|
|
697
697
|
if (a !== 0)
|
|
698
698
|
return a;
|
|
699
699
|
}
|
|
700
700
|
return 0;
|
|
701
|
-
},
|
|
702
|
-
const t =
|
|
703
|
-
return o !== 0 ? o : r && n ?
|
|
704
|
-
},
|
|
705
|
-
|
|
706
|
-
const a =
|
|
707
|
-
return
|
|
708
|
-
},
|
|
701
|
+
}, Gr = (e, i) => {
|
|
702
|
+
const t = Lt(e), a = Lt(i), r = t.pop(), n = a.pop(), o = Ut(t, a);
|
|
703
|
+
return o !== 0 ? o : r && n ? Ut(r.split("."), n.split(".")) : r || n ? r ? -1 : 1 : 0;
|
|
704
|
+
}, Bt = (e, i, t) => {
|
|
705
|
+
Wr(t);
|
|
706
|
+
const a = Gr(e, i);
|
|
707
|
+
return gi[t].includes(a);
|
|
708
|
+
}, gi = {
|
|
709
709
|
">": [1],
|
|
710
710
|
">=": [0, 1],
|
|
711
711
|
"=": [0],
|
|
712
712
|
"<=": [-1, 0],
|
|
713
713
|
"<": [-1],
|
|
714
714
|
"!=": [-1, 1]
|
|
715
|
-
},
|
|
715
|
+
}, Pt = Object.keys(gi), Wr = (e) => {
|
|
716
716
|
if (typeof e != "string")
|
|
717
717
|
throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
|
|
718
|
-
if (
|
|
719
|
-
throw new Error(`Invalid operator, expected one of ${
|
|
720
|
-
},
|
|
721
|
-
function
|
|
718
|
+
if (Pt.indexOf(e) === -1)
|
|
719
|
+
throw new Error(`Invalid operator, expected one of ${Pt.join("|")}`);
|
|
720
|
+
}, Yr = (e) => typeof e == "string" && /^[v\d]/.test(e) && fi.test(e);
|
|
721
|
+
function Zr(e) {
|
|
722
722
|
const { gatewayInfo: i, supportedRange: t } = e;
|
|
723
723
|
if (!i)
|
|
724
724
|
return !0;
|
|
725
725
|
const { edition: a, version: r } = i;
|
|
726
|
-
if (!
|
|
726
|
+
if (!Yr(r))
|
|
727
727
|
return console.error("Invalid version"), !1;
|
|
728
728
|
const n = t[a];
|
|
729
729
|
if (!n)
|
|
730
730
|
return !1;
|
|
731
731
|
const [o, c] = n;
|
|
732
|
-
return !(o &&
|
|
732
|
+
return !(o && Bt(r, o, "<") || c && Bt(r, c, ">"));
|
|
733
733
|
}
|
|
734
|
-
function
|
|
734
|
+
function Qr(e) {
|
|
735
735
|
const i = F(0), t = F(0), a = F(!1);
|
|
736
736
|
return we(e, (r) => {
|
|
737
737
|
r && !a.value && (i.value = r.offsetWidth, t.value = r.scrollWidth, a.value = !0);
|
|
@@ -739,30 +739,30 @@ function Yr(e) {
|
|
|
739
739
|
isTruncated: A(() => i.value < t.value)
|
|
740
740
|
};
|
|
741
741
|
}
|
|
742
|
-
function
|
|
743
|
-
const { i18n: { t: e } } =
|
|
742
|
+
function Xr() {
|
|
743
|
+
const { i18n: { t: e } } = dt();
|
|
744
744
|
return {
|
|
745
745
|
utf8Name: (i) => /^[\p{N}\p{L}.\-_~]*$/u.test(i) ? "" : e("validationErrors.utf8Name")
|
|
746
746
|
};
|
|
747
747
|
}
|
|
748
748
|
const ne = {
|
|
749
|
-
useAxios:
|
|
750
|
-
useDebouncedFilter:
|
|
751
|
-
useDeleteUrlBuilder:
|
|
752
|
-
useErrors:
|
|
753
|
-
useExternalLinkCreator:
|
|
754
|
-
useFetcher:
|
|
755
|
-
useFetchUrlBuilder:
|
|
756
|
-
useHelpers:
|
|
757
|
-
useStringHelpers:
|
|
758
|
-
useI18n:
|
|
759
|
-
useGatewayFeatureSupported:
|
|
760
|
-
useTruncationDetector:
|
|
761
|
-
useValidators:
|
|
762
|
-
},
|
|
749
|
+
useAxios: Tt,
|
|
750
|
+
useDebouncedFilter: Ur,
|
|
751
|
+
useDeleteUrlBuilder: Br,
|
|
752
|
+
useErrors: Pr,
|
|
753
|
+
useExternalLinkCreator: Rr,
|
|
754
|
+
useFetcher: Dr,
|
|
755
|
+
useFetchUrlBuilder: pi,
|
|
756
|
+
useHelpers: di,
|
|
757
|
+
useStringHelpers: zr,
|
|
758
|
+
useI18n: dt,
|
|
759
|
+
useGatewayFeatureSupported: Zr,
|
|
760
|
+
useTruncationDetector: Qr,
|
|
761
|
+
useValidators: Xr
|
|
762
|
+
}, ea = {
|
|
763
763
|
key: 0,
|
|
764
764
|
class: "config-card-fieldset-title"
|
|
765
|
-
},
|
|
765
|
+
}, ta = /* @__PURE__ */ X({
|
|
766
766
|
__name: "JsonCardItem",
|
|
767
767
|
props: {
|
|
768
768
|
item: {
|
|
@@ -787,13 +787,13 @@ const ne = {
|
|
|
787
787
|
return i.isArrayItem ? (l = n.value) != null && l.name ? a(n.value.name, "_") : t("baseConfigCard.general.entryTitle", { index: i.index }) : "";
|
|
788
788
|
});
|
|
789
789
|
return (l, d) => (w(), D(Te(e.isArrayItem ? "fieldset" : "div"), {
|
|
790
|
-
class:
|
|
790
|
+
class: xe(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
|
|
791
791
|
}, {
|
|
792
792
|
default: v(() => [
|
|
793
|
-
e.isArrayItem ? (w(), T("legend",
|
|
794
|
-
E("b", null,
|
|
793
|
+
e.isArrayItem ? (w(), T("legend", ea, [
|
|
794
|
+
E("b", null, j(c.value), 1)
|
|
795
795
|
])) : J("", !0),
|
|
796
|
-
(w(!0), T(ve, null, me(Object.keys(o.value), (m, p) => (w(), D(
|
|
796
|
+
(w(!0), T(ve, null, me(Object.keys(o.value), (m, p) => (w(), D(yi, {
|
|
797
797
|
key: `${r.value}-property-${p}`,
|
|
798
798
|
item: {
|
|
799
799
|
key: m,
|
|
@@ -810,7 +810,7 @@ const ne = {
|
|
|
810
810
|
for (const [a, r] of i)
|
|
811
811
|
t[a] = r;
|
|
812
812
|
return t;
|
|
813
|
-
},
|
|
813
|
+
}, mi = /* @__PURE__ */ ye(ta, [["__scopeId", "data-v-68ca83ec"]]), ia = /* @__PURE__ */ X({
|
|
814
814
|
__name: "InternalLinkItem",
|
|
815
815
|
props: {
|
|
816
816
|
item: {
|
|
@@ -830,14 +830,14 @@ const ne = {
|
|
|
830
830
|
onClick: a[0] || (a[0] = (n) => t.$emit("navigation-click", e.item))
|
|
831
831
|
}, {
|
|
832
832
|
default: v(() => [
|
|
833
|
-
G(
|
|
833
|
+
G(j(e.item.value || f(i)("baseConfigCard.commonFields.link")), 1)
|
|
834
834
|
]),
|
|
835
835
|
_: 1
|
|
836
836
|
})
|
|
837
837
|
]);
|
|
838
838
|
};
|
|
839
839
|
}
|
|
840
|
-
}),
|
|
840
|
+
}), ra = /* @__PURE__ */ ye(ia, [["__scopeId", "data-v-c96811e5"]]), aa = /* @__PURE__ */ X({
|
|
841
841
|
__name: "StatusBadge",
|
|
842
842
|
props: {
|
|
843
843
|
status: {
|
|
@@ -853,17 +853,17 @@ const ne = {
|
|
|
853
853
|
appearance: e.status ? "success" : "neutral"
|
|
854
854
|
}, {
|
|
855
855
|
default: v(() => [
|
|
856
|
-
G(
|
|
856
|
+
G(j(e.status ? f(i)("baseConfigCard.statusBadge.enabledLabel") : f(i)("baseConfigCard.statusBadge.disabledLabel")), 1)
|
|
857
857
|
]),
|
|
858
858
|
_: 1
|
|
859
859
|
}, 8, ["appearance"]);
|
|
860
860
|
};
|
|
861
861
|
}
|
|
862
|
-
}),
|
|
862
|
+
}), oa = "#0044f4", na = "#e0e4ea", la = "#3a3f51", sa = "#afb7c5", ca = "1px", ua = "20px", da = { class: "config-card-details-row" }, pa = ["data-testid"], fa = ["data-testid"], ga = ["data-testid"], ma = ["data-testid"], ya = { key: 1 }, va = ["data-testid"], ha = ["data-testid"], ba = ["data-testid"], wa = ["data-testid"], _a = {
|
|
863
863
|
name: "ConfigCardItem",
|
|
864
|
-
components: { JsonCardItem:
|
|
865
|
-
},
|
|
866
|
-
...
|
|
864
|
+
components: { JsonCardItem: mi, StatusBadge: aa, InternalLinkItem: ra }
|
|
865
|
+
}, ka = /* @__PURE__ */ X({
|
|
866
|
+
..._a,
|
|
867
867
|
props: {
|
|
868
868
|
item: {
|
|
869
869
|
type: Object,
|
|
@@ -882,13 +882,13 @@ const ne = {
|
|
|
882
882
|
},
|
|
883
883
|
emits: ["navigation-click"],
|
|
884
884
|
setup(e, { emit: i }) {
|
|
885
|
-
|
|
886
|
-
"07753575": m.value ? "none" : `solid ${f(
|
|
885
|
+
ni((I) => ({
|
|
886
|
+
"07753575": m.value ? "none" : `solid ${f(ca)} ${f(na)}`,
|
|
887
887
|
"32d44ea8": d.value && c.value ? "block" : "flex",
|
|
888
888
|
"5036b738": d.value && c.value ? "100%" : t.slim ? "50%" : "25%",
|
|
889
889
|
"5038fd13": d.value && c.value ? "100%" : t.slim ? "50%" : "75%"
|
|
890
890
|
}));
|
|
891
|
-
const t = e, a = i, r =
|
|
891
|
+
const t = e, a = i, r = It(), { i18n: { t: n, formatUnixTimeStamp: o } } = ne.useI18n(), c = A(() => t.item.value !== void 0 && t.item.value !== null && t.item.value !== ""), l = A(() => !!(t.item.tooltip || r["label-tooltip"])), d = A(() => t.item.type === Q.Json || t.item.type === Q.JsonArray), m = A(() => t.item.type === Q.JsonArray), p = A(() => {
|
|
892
892
|
switch (t.item.type) {
|
|
893
893
|
case Q.ID:
|
|
894
894
|
return {
|
|
@@ -958,8 +958,8 @@ const ne = {
|
|
|
958
958
|
attrs: {
|
|
959
959
|
"data-testid": `${t.item.key}-internal-link`,
|
|
960
960
|
item: t.item,
|
|
961
|
-
onNavigationClick: (
|
|
962
|
-
a("navigation-click",
|
|
961
|
+
onNavigationClick: (I) => {
|
|
962
|
+
a("navigation-click", I);
|
|
963
963
|
}
|
|
964
964
|
}
|
|
965
965
|
};
|
|
@@ -999,17 +999,17 @@ const ne = {
|
|
|
999
999
|
};
|
|
1000
1000
|
}
|
|
1001
1001
|
}), k = F(), { isTruncated: h } = ne.useTruncationDetector(k);
|
|
1002
|
-
return (
|
|
1002
|
+
return (I, x) => {
|
|
1003
1003
|
const S = U("KLabel"), P = U("KBadge"), q = U("KCopy"), ee = U("KTooltip");
|
|
1004
|
-
return w(), T("div",
|
|
1004
|
+
return w(), T("div", da, [
|
|
1005
1005
|
E("div", {
|
|
1006
1006
|
class: "config-card-details-label",
|
|
1007
1007
|
"data-testid": `${e.item.key}-label`
|
|
1008
1008
|
}, [
|
|
1009
|
-
te(
|
|
1009
|
+
te(I.$slots, "label", { item: e.item }, () => [
|
|
1010
1010
|
C(S, { "tooltip-attributes": { maxWidth: "500px" } }, Ue({
|
|
1011
1011
|
default: v(() => [
|
|
1012
|
-
G(
|
|
1012
|
+
G(j(e.item.label) + " ", 1)
|
|
1013
1013
|
]),
|
|
1014
1014
|
_: 2
|
|
1015
1015
|
}, [
|
|
@@ -1019,25 +1019,25 @@ const ne = {
|
|
|
1019
1019
|
E("div", {
|
|
1020
1020
|
"data-testid": `${e.item.key}-label-tooltip`
|
|
1021
1021
|
}, [
|
|
1022
|
-
te(
|
|
1023
|
-
G(
|
|
1022
|
+
te(I.$slots, "label-tooltip", {}, () => [
|
|
1023
|
+
G(j(e.item.tooltip), 1)
|
|
1024
1024
|
], !0)
|
|
1025
|
-
], 8,
|
|
1025
|
+
], 8, fa)
|
|
1026
1026
|
]),
|
|
1027
1027
|
key: "0"
|
|
1028
1028
|
} : void 0
|
|
1029
1029
|
]), 1024)
|
|
1030
1030
|
], !0)
|
|
1031
|
-
], 8,
|
|
1031
|
+
], 8, pa),
|
|
1032
1032
|
E("div", {
|
|
1033
1033
|
class: "config-card-details-value",
|
|
1034
1034
|
"data-testid": `${e.item.key}-property-value`
|
|
1035
1035
|
}, [
|
|
1036
|
-
te(
|
|
1036
|
+
te(I.$slots, e.item.key, {
|
|
1037
1037
|
rowValue: e.item.value
|
|
1038
1038
|
}, () => [
|
|
1039
|
-
c.value ? (w(), T("div",
|
|
1040
|
-
(w(), D(Te(p.value.tag),
|
|
1039
|
+
c.value ? (w(), T("div", ya, [
|
|
1040
|
+
(w(), D(Te(p.value.tag), pr(fr(p.value.attrs)), {
|
|
1041
1041
|
default: v(() => [
|
|
1042
1042
|
p.value.additionalComponent === "KBadge" ? (w(), T("div", {
|
|
1043
1043
|
key: 0,
|
|
@@ -1051,49 +1051,49 @@ const ne = {
|
|
|
1051
1051
|
"truncation-tooltip": ""
|
|
1052
1052
|
}, {
|
|
1053
1053
|
default: v(() => [
|
|
1054
|
-
G(
|
|
1054
|
+
G(j(s), 1)
|
|
1055
1055
|
]),
|
|
1056
1056
|
_: 2
|
|
1057
1057
|
}, 1032, ["data-testid", "tooltip"]))), 128))
|
|
1058
|
-
], 8,
|
|
1058
|
+
], 8, va)) : J("", !0),
|
|
1059
1059
|
p.value.additionalComponent === "KCopy" ? (w(), T("div", {
|
|
1060
1060
|
key: 1,
|
|
1061
1061
|
class: "copy-uuid-array",
|
|
1062
1062
|
"data-testid": `${e.item.key}-copy-uuid-array`
|
|
1063
1063
|
}, [
|
|
1064
|
-
(w(!0), T(ve, null, me(e.item.value, (s, y) => (w(), D(q,
|
|
1064
|
+
(w(!0), T(ve, null, me(e.item.value, (s, y) => (w(), D(q, gr(p.value.childAttrs, {
|
|
1065
1065
|
key: `${e.item.key}-copy-uuid-${y}`,
|
|
1066
1066
|
"data-testid": `${e.item.key}-copy-uuid-${y}`,
|
|
1067
1067
|
text: s
|
|
1068
1068
|
}), null, 16, ["data-testid", "text"]))), 128))
|
|
1069
|
-
], 8,
|
|
1069
|
+
], 8, ha)) : p.value.additionalComponent === "KMethodBadge" ? (w(), T("div", {
|
|
1070
1070
|
key: 2,
|
|
1071
1071
|
class: "method-badge-array",
|
|
1072
1072
|
"data-testid": `${e.item.key}-badge-methods`
|
|
1073
1073
|
}, [
|
|
1074
1074
|
(w(!0), T(ve, null, me(e.item.value, (s, y) => (w(), D(P, {
|
|
1075
1075
|
key: `${e.item.key}-badge-method-${y}`,
|
|
1076
|
-
appearance: Object.values(f(
|
|
1076
|
+
appearance: Object.values(f(mr)).includes(s.toLowerCase()) ? s.toLowerCase() : "custom",
|
|
1077
1077
|
class: "config-badge",
|
|
1078
1078
|
"data-testid": `${e.item.key}-badge-method-${y}`
|
|
1079
1079
|
}, {
|
|
1080
1080
|
default: v(() => [
|
|
1081
|
-
G(
|
|
1081
|
+
G(j(s), 1)
|
|
1082
1082
|
]),
|
|
1083
1083
|
_: 2
|
|
1084
1084
|
}, 1032, ["appearance", "data-testid"]))), 128))
|
|
1085
|
-
], 8,
|
|
1085
|
+
], 8, ba)) : J("", !0),
|
|
1086
1086
|
p.value.additionalComponent === "JsonCardItem" ? (w(), T("div", {
|
|
1087
1087
|
key: 3,
|
|
1088
1088
|
"data-testid": `${t.item.key}-json-array-content`
|
|
1089
1089
|
}, [
|
|
1090
|
-
(w(!0), T(ve, null, me(e.item.value, (s, y) => (w(), D(
|
|
1090
|
+
(w(!0), T(ve, null, me(e.item.value, (s, y) => (w(), D(mi, {
|
|
1091
1091
|
key: `json-array-item-${y}`,
|
|
1092
1092
|
index: y,
|
|
1093
1093
|
"is-array-item": "",
|
|
1094
1094
|
item: s
|
|
1095
1095
|
}, null, 8, ["index", "item"]))), 128))
|
|
1096
|
-
], 8,
|
|
1096
|
+
], 8, wa)) : (w(), D(ee, {
|
|
1097
1097
|
key: 4,
|
|
1098
1098
|
text: f(h) ? e.item.value : ""
|
|
1099
1099
|
}, {
|
|
@@ -1101,8 +1101,8 @@ const ne = {
|
|
|
1101
1101
|
E("span", {
|
|
1102
1102
|
ref_key: "textContent",
|
|
1103
1103
|
ref: k,
|
|
1104
|
-
class:
|
|
1105
|
-
},
|
|
1104
|
+
class: xe(["attrs-data-text", { truncated: e.truncated }])
|
|
1105
|
+
}, j(p.value.text), 3)
|
|
1106
1106
|
]),
|
|
1107
1107
|
_: 1
|
|
1108
1108
|
}, 8, ["text"]))
|
|
@@ -1112,16 +1112,16 @@ const ne = {
|
|
|
1112
1112
|
])) : (w(), T("div", {
|
|
1113
1113
|
key: 0,
|
|
1114
1114
|
"data-testid": `${e.item.key}-no-value`
|
|
1115
|
-
}, " – ", 8,
|
|
1115
|
+
}, " – ", 8, ma))
|
|
1116
1116
|
], !0)
|
|
1117
|
-
], 8,
|
|
1117
|
+
], 8, ga)
|
|
1118
1118
|
]);
|
|
1119
1119
|
};
|
|
1120
1120
|
}
|
|
1121
|
-
}),
|
|
1121
|
+
}), yi = /* @__PURE__ */ ye(ka, [["__scopeId", "data-v-d056663c"]]), Ca = { class: "json-config" }, Sa = {
|
|
1122
1122
|
key: 0,
|
|
1123
1123
|
class: "json-endpoint"
|
|
1124
|
-
},
|
|
1124
|
+
}, vi = /* @__PURE__ */ X({
|
|
1125
1125
|
__name: "JsonCodeBlock",
|
|
1126
1126
|
props: {
|
|
1127
1127
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -1149,7 +1149,7 @@ const ne = {
|
|
|
1149
1149
|
}
|
|
1150
1150
|
},
|
|
1151
1151
|
setup(e) {
|
|
1152
|
-
|
|
1152
|
+
ni((r) => ({
|
|
1153
1153
|
"954d3eca": `${a.value}ch`
|
|
1154
1154
|
}));
|
|
1155
1155
|
const i = e, t = A(() => i.jsonRecord), a = A(() => {
|
|
@@ -1161,13 +1161,13 @@ const ne = {
|
|
|
1161
1161
|
});
|
|
1162
1162
|
return (r, n) => {
|
|
1163
1163
|
const o = U("KBadge"), c = U("KCodeBlock");
|
|
1164
|
-
return w(), T("div",
|
|
1165
|
-
i.fetcherUrl ? (w(), T("div",
|
|
1164
|
+
return w(), T("div", Ca, [
|
|
1165
|
+
i.fetcherUrl ? (w(), T("div", Sa, [
|
|
1166
1166
|
C(o, {
|
|
1167
1167
|
appearance: i.requestMethod
|
|
1168
1168
|
}, {
|
|
1169
1169
|
default: v(() => [
|
|
1170
|
-
G(
|
|
1170
|
+
G(j(i.requestMethod), 1)
|
|
1171
1171
|
]),
|
|
1172
1172
|
_: 1
|
|
1173
1173
|
}, 8, ["appearance"]),
|
|
@@ -1182,7 +1182,7 @@ const ne = {
|
|
|
1182
1182
|
i.jsonRecord ? (w(), D(c, {
|
|
1183
1183
|
key: 1,
|
|
1184
1184
|
id: "json-codeblock",
|
|
1185
|
-
class:
|
|
1185
|
+
class: xe({ "json-content": i.fetcherUrl }),
|
|
1186
1186
|
code: JSON.stringify(t.value, null, 2),
|
|
1187
1187
|
language: "json",
|
|
1188
1188
|
theme: "dark"
|
|
@@ -1192,55 +1192,55 @@ const ne = {
|
|
|
1192
1192
|
}
|
|
1193
1193
|
});
|
|
1194
1194
|
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
|
|
1195
|
-
function
|
|
1195
|
+
function hi(e) {
|
|
1196
1196
|
return typeof e > "u" || e === null;
|
|
1197
1197
|
}
|
|
1198
|
-
function
|
|
1198
|
+
function xa(e) {
|
|
1199
1199
|
return typeof e == "object" && e !== null;
|
|
1200
1200
|
}
|
|
1201
|
-
function
|
|
1202
|
-
return Array.isArray(e) ? e :
|
|
1201
|
+
function Ia(e) {
|
|
1202
|
+
return Array.isArray(e) ? e : hi(e) ? [] : [e];
|
|
1203
1203
|
}
|
|
1204
|
-
function
|
|
1204
|
+
function Aa(e, i) {
|
|
1205
1205
|
var t, a, r, n;
|
|
1206
1206
|
if (i)
|
|
1207
1207
|
for (n = Object.keys(i), t = 0, a = n.length; t < a; t += 1)
|
|
1208
1208
|
r = n[t], e[r] = i[r];
|
|
1209
1209
|
return e;
|
|
1210
1210
|
}
|
|
1211
|
-
function
|
|
1211
|
+
function Ta(e, i) {
|
|
1212
1212
|
var t = "", a;
|
|
1213
1213
|
for (a = 0; a < i; a += 1)
|
|
1214
1214
|
t += e;
|
|
1215
1215
|
return t;
|
|
1216
1216
|
}
|
|
1217
|
-
function
|
|
1217
|
+
function $a(e) {
|
|
1218
1218
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
1219
1219
|
}
|
|
1220
|
-
var
|
|
1221
|
-
isNothing:
|
|
1222
|
-
isObject:
|
|
1223
|
-
toArray:
|
|
1224
|
-
repeat:
|
|
1225
|
-
isNegativeZero:
|
|
1226
|
-
extend:
|
|
1220
|
+
var ja = hi, Ma = xa, Oa = Ia, Ea = Ta, Na = $a, Fa = Aa, oe = {
|
|
1221
|
+
isNothing: ja,
|
|
1222
|
+
isObject: Ma,
|
|
1223
|
+
toArray: Oa,
|
|
1224
|
+
repeat: Ea,
|
|
1225
|
+
isNegativeZero: Na,
|
|
1226
|
+
extend: Fa
|
|
1227
1227
|
};
|
|
1228
|
-
function
|
|
1228
|
+
function bi(e, i) {
|
|
1229
1229
|
var t = "", a = e.reason || "(unknown reason)";
|
|
1230
1230
|
return e.mark ? (e.mark.name && (t += 'in "' + e.mark.name + '" '), t += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !i && e.mark.snippet && (t += `
|
|
1231
1231
|
|
|
1232
1232
|
` + e.mark.snippet), a + " " + t) : a;
|
|
1233
1233
|
}
|
|
1234
1234
|
function We(e, i) {
|
|
1235
|
-
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = i, this.message =
|
|
1235
|
+
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = i, this.message = bi(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
|
|
1236
1236
|
}
|
|
1237
1237
|
We.prototype = Object.create(Error.prototype);
|
|
1238
1238
|
We.prototype.constructor = We;
|
|
1239
1239
|
We.prototype.toString = function(e) {
|
|
1240
|
-
return this.name + ": " +
|
|
1240
|
+
return this.name + ": " + bi(this, e);
|
|
1241
1241
|
};
|
|
1242
1242
|
var ue = We;
|
|
1243
|
-
function
|
|
1243
|
+
function yt(e, i, t, a, r) {
|
|
1244
1244
|
var n = "", o = "", c = Math.floor(r / 2) - 1;
|
|
1245
1245
|
return a - i > c && (n = " ... ", i = a - c + n.length), t - a > c && (o = " ...", t = a + c - o.length), {
|
|
1246
1246
|
str: n + e.slice(i, t).replace(/\t/g, "→") + o,
|
|
@@ -1248,10 +1248,10 @@ function gt(e, i, t, a, r) {
|
|
|
1248
1248
|
// relative position
|
|
1249
1249
|
};
|
|
1250
1250
|
}
|
|
1251
|
-
function
|
|
1251
|
+
function vt(e, i) {
|
|
1252
1252
|
return oe.repeat(" ", i - e.length) + e;
|
|
1253
1253
|
}
|
|
1254
|
-
function
|
|
1254
|
+
function qa(e, i) {
|
|
1255
1255
|
if (i = Object.create(i || null), !e.buffer)
|
|
1256
1256
|
return null;
|
|
1257
1257
|
i.maxLength || (i.maxLength = 79), typeof i.indent != "number" && (i.indent = 1), typeof i.linesBefore != "number" && (i.linesBefore = 3), typeof i.linesAfter != "number" && (i.linesAfter = 2);
|
|
@@ -1260,28 +1260,28 @@ function Na(e, i) {
|
|
|
1260
1260
|
o < 0 && (o = a.length - 1);
|
|
1261
1261
|
var c = "", l, d, m = Math.min(e.line + i.linesAfter, r.length).toString().length, p = i.maxLength - (i.indent + m + 3);
|
|
1262
1262
|
for (l = 1; l <= i.linesBefore && !(o - l < 0); l++)
|
|
1263
|
-
d =
|
|
1263
|
+
d = yt(
|
|
1264
1264
|
e.buffer,
|
|
1265
1265
|
a[o - l],
|
|
1266
1266
|
r[o - l],
|
|
1267
1267
|
e.position - (a[o] - a[o - l]),
|
|
1268
1268
|
p
|
|
1269
|
-
), c = oe.repeat(" ", i.indent) +
|
|
1269
|
+
), c = oe.repeat(" ", i.indent) + vt((e.line - l + 1).toString(), m) + " | " + d.str + `
|
|
1270
1270
|
` + c;
|
|
1271
|
-
for (d =
|
|
1271
|
+
for (d = yt(e.buffer, a[o], r[o], e.position, p), c += oe.repeat(" ", i.indent) + vt((e.line + 1).toString(), m) + " | " + d.str + `
|
|
1272
1272
|
`, c += oe.repeat("-", i.indent + m + 3 + d.pos) + `^
|
|
1273
1273
|
`, l = 1; l <= i.linesAfter && !(o + l >= r.length); l++)
|
|
1274
|
-
d =
|
|
1274
|
+
d = yt(
|
|
1275
1275
|
e.buffer,
|
|
1276
1276
|
a[o + l],
|
|
1277
1277
|
r[o + l],
|
|
1278
1278
|
e.position - (a[o] - a[o + l]),
|
|
1279
1279
|
p
|
|
1280
|
-
), c += oe.repeat(" ", i.indent) +
|
|
1280
|
+
), c += oe.repeat(" ", i.indent) + vt((e.line + l + 1).toString(), m) + " | " + d.str + `
|
|
1281
1281
|
`;
|
|
1282
1282
|
return c.replace(/\n$/, "");
|
|
1283
1283
|
}
|
|
1284
|
-
var
|
|
1284
|
+
var La = qa, Va = [
|
|
1285
1285
|
"kind",
|
|
1286
1286
|
"multi",
|
|
1287
1287
|
"resolve",
|
|
@@ -1292,12 +1292,12 @@ var Fa = Na, qa = [
|
|
|
1292
1292
|
"representName",
|
|
1293
1293
|
"defaultStyle",
|
|
1294
1294
|
"styleAliases"
|
|
1295
|
-
],
|
|
1295
|
+
], Ka = [
|
|
1296
1296
|
"scalar",
|
|
1297
1297
|
"sequence",
|
|
1298
1298
|
"mapping"
|
|
1299
1299
|
];
|
|
1300
|
-
function
|
|
1300
|
+
function Ua(e) {
|
|
1301
1301
|
var i = {};
|
|
1302
1302
|
return e !== null && Object.keys(e).forEach(function(t) {
|
|
1303
1303
|
e[t].forEach(function(a) {
|
|
@@ -1305,19 +1305,19 @@ function Va(e) {
|
|
|
1305
1305
|
});
|
|
1306
1306
|
}), i;
|
|
1307
1307
|
}
|
|
1308
|
-
function
|
|
1308
|
+
function Ba(e, i) {
|
|
1309
1309
|
if (i = i || {}, Object.keys(i).forEach(function(t) {
|
|
1310
|
-
if (
|
|
1310
|
+
if (Va.indexOf(t) === -1)
|
|
1311
1311
|
throw new ue('Unknown option "' + t + '" is met in definition of "' + e + '" YAML type.');
|
|
1312
1312
|
}), this.options = i, this.tag = e, this.kind = i.kind || null, this.resolve = i.resolve || function() {
|
|
1313
1313
|
return !0;
|
|
1314
1314
|
}, this.construct = i.construct || function(t) {
|
|
1315
1315
|
return t;
|
|
1316
|
-
}, this.instanceOf = i.instanceOf || null, this.predicate = i.predicate || null, this.represent = i.represent || null, this.representName = i.representName || null, this.defaultStyle = i.defaultStyle || null, this.multi = i.multi || !1, this.styleAliases =
|
|
1316
|
+
}, this.instanceOf = i.instanceOf || null, this.predicate = i.predicate || null, this.represent = i.represent || null, this.representName = i.representName || null, this.defaultStyle = i.defaultStyle || null, this.multi = i.multi || !1, this.styleAliases = Ua(i.styleAliases || null), Ka.indexOf(this.kind) === -1)
|
|
1317
1317
|
throw new ue('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
|
|
1318
1318
|
}
|
|
1319
|
-
var le =
|
|
1320
|
-
function
|
|
1319
|
+
var le = Ba;
|
|
1320
|
+
function Rt(e, i) {
|
|
1321
1321
|
var t = [];
|
|
1322
1322
|
return e[i].forEach(function(a) {
|
|
1323
1323
|
var r = t.length;
|
|
@@ -1326,7 +1326,7 @@ function Bt(e, i) {
|
|
|
1326
1326
|
}), t[r] = a;
|
|
1327
1327
|
}), t;
|
|
1328
1328
|
}
|
|
1329
|
-
function
|
|
1329
|
+
function Pa() {
|
|
1330
1330
|
var e = {
|
|
1331
1331
|
scalar: {},
|
|
1332
1332
|
sequence: {},
|
|
@@ -1346,10 +1346,10 @@ function Ua() {
|
|
|
1346
1346
|
arguments[i].forEach(a);
|
|
1347
1347
|
return e;
|
|
1348
1348
|
}
|
|
1349
|
-
function
|
|
1349
|
+
function wt(e) {
|
|
1350
1350
|
return this.extend(e);
|
|
1351
1351
|
}
|
|
1352
|
-
|
|
1352
|
+
wt.prototype.extend = function(e) {
|
|
1353
1353
|
var i = [], t = [];
|
|
1354
1354
|
if (e instanceof le)
|
|
1355
1355
|
t.push(e);
|
|
@@ -1370,48 +1370,48 @@ ht.prototype.extend = function(e) {
|
|
|
1370
1370
|
if (!(r instanceof le))
|
|
1371
1371
|
throw new ue("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1372
1372
|
});
|
|
1373
|
-
var a = Object.create(
|
|
1374
|
-
return a.implicit = (this.implicit || []).concat(i), a.explicit = (this.explicit || []).concat(t), a.compiledImplicit =
|
|
1373
|
+
var a = Object.create(wt.prototype);
|
|
1374
|
+
return a.implicit = (this.implicit || []).concat(i), a.explicit = (this.explicit || []).concat(t), a.compiledImplicit = Rt(a, "implicit"), a.compiledExplicit = Rt(a, "explicit"), a.compiledTypeMap = Pa(a.compiledImplicit, a.compiledExplicit), a;
|
|
1375
1375
|
};
|
|
1376
|
-
var
|
|
1376
|
+
var wi = wt, _i = new le("tag:yaml.org,2002:str", {
|
|
1377
1377
|
kind: "scalar",
|
|
1378
1378
|
construct: function(e) {
|
|
1379
1379
|
return e !== null ? e : "";
|
|
1380
1380
|
}
|
|
1381
|
-
}),
|
|
1381
|
+
}), ki = new le("tag:yaml.org,2002:seq", {
|
|
1382
1382
|
kind: "sequence",
|
|
1383
1383
|
construct: function(e) {
|
|
1384
1384
|
return e !== null ? e : [];
|
|
1385
1385
|
}
|
|
1386
|
-
}),
|
|
1386
|
+
}), Ci = new le("tag:yaml.org,2002:map", {
|
|
1387
1387
|
kind: "mapping",
|
|
1388
1388
|
construct: function(e) {
|
|
1389
1389
|
return e !== null ? e : {};
|
|
1390
1390
|
}
|
|
1391
|
-
}),
|
|
1391
|
+
}), Si = new wi({
|
|
1392
1392
|
explicit: [
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1393
|
+
_i,
|
|
1394
|
+
ki,
|
|
1395
|
+
Ci
|
|
1396
1396
|
]
|
|
1397
1397
|
});
|
|
1398
|
-
function
|
|
1398
|
+
function Ra(e) {
|
|
1399
1399
|
if (e === null)
|
|
1400
1400
|
return !0;
|
|
1401
1401
|
var i = e.length;
|
|
1402
1402
|
return i === 1 && e === "~" || i === 4 && (e === "null" || e === "Null" || e === "NULL");
|
|
1403
1403
|
}
|
|
1404
|
-
function
|
|
1404
|
+
function Da() {
|
|
1405
1405
|
return null;
|
|
1406
1406
|
}
|
|
1407
|
-
function
|
|
1407
|
+
function za(e) {
|
|
1408
1408
|
return e === null;
|
|
1409
1409
|
}
|
|
1410
|
-
var
|
|
1410
|
+
var xi = new le("tag:yaml.org,2002:null", {
|
|
1411
1411
|
kind: "scalar",
|
|
1412
|
-
resolve:
|
|
1413
|
-
construct:
|
|
1414
|
-
predicate:
|
|
1412
|
+
resolve: Ra,
|
|
1413
|
+
construct: Da,
|
|
1414
|
+
predicate: za,
|
|
1415
1415
|
represent: {
|
|
1416
1416
|
canonical: function() {
|
|
1417
1417
|
return "~";
|
|
@@ -1431,23 +1431,23 @@ var Ci = new le("tag:yaml.org,2002:null", {
|
|
|
1431
1431
|
},
|
|
1432
1432
|
defaultStyle: "lowercase"
|
|
1433
1433
|
});
|
|
1434
|
-
function
|
|
1434
|
+
function Ha(e) {
|
|
1435
1435
|
if (e === null)
|
|
1436
1436
|
return !1;
|
|
1437
1437
|
var i = e.length;
|
|
1438
1438
|
return i === 4 && (e === "true" || e === "True" || e === "TRUE") || i === 5 && (e === "false" || e === "False" || e === "FALSE");
|
|
1439
1439
|
}
|
|
1440
|
-
function
|
|
1440
|
+
function Ja(e) {
|
|
1441
1441
|
return e === "true" || e === "True" || e === "TRUE";
|
|
1442
1442
|
}
|
|
1443
|
-
function
|
|
1443
|
+
function Ga(e) {
|
|
1444
1444
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
1445
1445
|
}
|
|
1446
|
-
var
|
|
1446
|
+
var Ii = new le("tag:yaml.org,2002:bool", {
|
|
1447
1447
|
kind: "scalar",
|
|
1448
|
-
resolve:
|
|
1449
|
-
construct:
|
|
1450
|
-
predicate:
|
|
1448
|
+
resolve: Ha,
|
|
1449
|
+
construct: Ja,
|
|
1450
|
+
predicate: Ga,
|
|
1451
1451
|
represent: {
|
|
1452
1452
|
lowercase: function(e) {
|
|
1453
1453
|
return e ? "true" : "false";
|
|
@@ -1461,16 +1461,16 @@ var Si = new le("tag:yaml.org,2002:bool", {
|
|
|
1461
1461
|
},
|
|
1462
1462
|
defaultStyle: "lowercase"
|
|
1463
1463
|
});
|
|
1464
|
-
function
|
|
1464
|
+
function Wa(e) {
|
|
1465
1465
|
return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
|
|
1466
1466
|
}
|
|
1467
|
-
function
|
|
1467
|
+
function Ya(e) {
|
|
1468
1468
|
return 48 <= e && e <= 55;
|
|
1469
1469
|
}
|
|
1470
|
-
function
|
|
1470
|
+
function Za(e) {
|
|
1471
1471
|
return 48 <= e && e <= 57;
|
|
1472
1472
|
}
|
|
1473
|
-
function
|
|
1473
|
+
function Qa(e) {
|
|
1474
1474
|
if (e === null)
|
|
1475
1475
|
return !1;
|
|
1476
1476
|
var i = e.length, t = 0, a = !1, r;
|
|
@@ -1491,7 +1491,7 @@ function Ya(e) {
|
|
|
1491
1491
|
if (r === "x") {
|
|
1492
1492
|
for (t++; t < i; t++)
|
|
1493
1493
|
if (r = e[t], r !== "_") {
|
|
1494
|
-
if (!
|
|
1494
|
+
if (!Wa(e.charCodeAt(t)))
|
|
1495
1495
|
return !1;
|
|
1496
1496
|
a = !0;
|
|
1497
1497
|
}
|
|
@@ -1500,7 +1500,7 @@ function Ya(e) {
|
|
|
1500
1500
|
if (r === "o") {
|
|
1501
1501
|
for (t++; t < i; t++)
|
|
1502
1502
|
if (r = e[t], r !== "_") {
|
|
1503
|
-
if (!
|
|
1503
|
+
if (!Ya(e.charCodeAt(t)))
|
|
1504
1504
|
return !1;
|
|
1505
1505
|
a = !0;
|
|
1506
1506
|
}
|
|
@@ -1511,13 +1511,13 @@ function Ya(e) {
|
|
|
1511
1511
|
return !1;
|
|
1512
1512
|
for (; t < i; t++)
|
|
1513
1513
|
if (r = e[t], r !== "_") {
|
|
1514
|
-
if (!
|
|
1514
|
+
if (!Za(e.charCodeAt(t)))
|
|
1515
1515
|
return !1;
|
|
1516
1516
|
a = !0;
|
|
1517
1517
|
}
|
|
1518
1518
|
return !(!a || r === "_");
|
|
1519
1519
|
}
|
|
1520
|
-
function
|
|
1520
|
+
function Xa(e) {
|
|
1521
1521
|
var i = e, t = 1, a;
|
|
1522
1522
|
if (i.indexOf("_") !== -1 && (i = i.replace(/_/g, "")), a = i[0], (a === "-" || a === "+") && (a === "-" && (t = -1), i = i.slice(1), a = i[0]), i === "0")
|
|
1523
1523
|
return 0;
|
|
@@ -1531,14 +1531,14 @@ function Za(e) {
|
|
|
1531
1531
|
}
|
|
1532
1532
|
return t * parseInt(i, 10);
|
|
1533
1533
|
}
|
|
1534
|
-
function
|
|
1534
|
+
function eo(e) {
|
|
1535
1535
|
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !oe.isNegativeZero(e);
|
|
1536
1536
|
}
|
|
1537
|
-
var
|
|
1537
|
+
var Ai = new le("tag:yaml.org,2002:int", {
|
|
1538
1538
|
kind: "scalar",
|
|
1539
|
-
resolve:
|
|
1540
|
-
construct:
|
|
1541
|
-
predicate:
|
|
1539
|
+
resolve: Qa,
|
|
1540
|
+
construct: Xa,
|
|
1541
|
+
predicate: eo,
|
|
1542
1542
|
represent: {
|
|
1543
1543
|
binary: function(e) {
|
|
1544
1544
|
return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
|
|
@@ -1561,21 +1561,21 @@ var Ii = new le("tag:yaml.org,2002:int", {
|
|
|
1561
1561
|
decimal: [10, "dec"],
|
|
1562
1562
|
hexadecimal: [16, "hex"]
|
|
1563
1563
|
}
|
|
1564
|
-
}),
|
|
1564
|
+
}), to = new RegExp(
|
|
1565
1565
|
// 2.5e4, 2.5 and integers
|
|
1566
1566
|
"^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
|
|
1567
1567
|
);
|
|
1568
|
-
function
|
|
1569
|
-
return !(e === null || !
|
|
1568
|
+
function io(e) {
|
|
1569
|
+
return !(e === null || !to.test(e) || // Quick hack to not allow integers end with `_`
|
|
1570
1570
|
// Probably should update regexp & check speed
|
|
1571
1571
|
e[e.length - 1] === "_");
|
|
1572
1572
|
}
|
|
1573
|
-
function
|
|
1573
|
+
function ro(e) {
|
|
1574
1574
|
var i, t;
|
|
1575
1575
|
return i = e.replace(/_/g, "").toLowerCase(), t = i[0] === "-" ? -1 : 1, "+-".indexOf(i[0]) >= 0 && (i = i.slice(1)), i === ".inf" ? t === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : i === ".nan" ? NaN : t * parseFloat(i, 10);
|
|
1576
1576
|
}
|
|
1577
|
-
var
|
|
1578
|
-
function
|
|
1577
|
+
var ao = /^[-+]?[0-9]+e/;
|
|
1578
|
+
function oo(e, i) {
|
|
1579
1579
|
var t;
|
|
1580
1580
|
if (isNaN(e))
|
|
1581
1581
|
switch (i) {
|
|
@@ -1606,36 +1606,36 @@ function ro(e, i) {
|
|
|
1606
1606
|
}
|
|
1607
1607
|
else if (oe.isNegativeZero(e))
|
|
1608
1608
|
return "-0.0";
|
|
1609
|
-
return t = e.toString(10),
|
|
1609
|
+
return t = e.toString(10), ao.test(t) ? t.replace("e", ".e") : t;
|
|
1610
1610
|
}
|
|
1611
|
-
function
|
|
1611
|
+
function no(e) {
|
|
1612
1612
|
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || oe.isNegativeZero(e));
|
|
1613
1613
|
}
|
|
1614
|
-
var
|
|
1614
|
+
var Ti = new le("tag:yaml.org,2002:float", {
|
|
1615
1615
|
kind: "scalar",
|
|
1616
|
-
resolve:
|
|
1617
|
-
construct:
|
|
1618
|
-
predicate:
|
|
1619
|
-
represent:
|
|
1616
|
+
resolve: io,
|
|
1617
|
+
construct: ro,
|
|
1618
|
+
predicate: no,
|
|
1619
|
+
represent: oo,
|
|
1620
1620
|
defaultStyle: "lowercase"
|
|
1621
|
-
}),
|
|
1621
|
+
}), $i = Si.extend({
|
|
1622
1622
|
implicit: [
|
|
1623
|
-
|
|
1624
|
-
Si,
|
|
1623
|
+
xi,
|
|
1625
1624
|
Ii,
|
|
1626
|
-
|
|
1625
|
+
Ai,
|
|
1626
|
+
Ti
|
|
1627
1627
|
]
|
|
1628
|
-
}),
|
|
1628
|
+
}), ji = $i, Mi = new RegExp(
|
|
1629
1629
|
"^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
|
|
1630
|
-
),
|
|
1630
|
+
), Oi = new RegExp(
|
|
1631
1631
|
"^([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]))?))?$"
|
|
1632
1632
|
);
|
|
1633
|
-
function
|
|
1634
|
-
return e === null ? !1 :
|
|
1633
|
+
function lo(e) {
|
|
1634
|
+
return e === null ? !1 : Mi.exec(e) !== null || Oi.exec(e) !== null;
|
|
1635
1635
|
}
|
|
1636
|
-
function
|
|
1636
|
+
function so(e) {
|
|
1637
1637
|
var i, t, a, r, n, o, c, l = 0, d = null, m, p, k;
|
|
1638
|
-
if (i =
|
|
1638
|
+
if (i = Mi.exec(e), i === null && (i = Oi.exec(e)), i === null)
|
|
1639
1639
|
throw new Error("Date resolve error");
|
|
1640
1640
|
if (t = +i[1], a = +i[2] - 1, r = +i[3], !i[4])
|
|
1641
1641
|
return new Date(Date.UTC(t, a, r));
|
|
@@ -1646,28 +1646,28 @@ function no(e) {
|
|
|
1646
1646
|
}
|
|
1647
1647
|
return i[9] && (m = +i[10], p = +(i[11] || 0), d = (m * 60 + p) * 6e4, i[9] === "-" && (d = -d)), k = new Date(Date.UTC(t, a, r, n, o, c, l)), d && k.setTime(k.getTime() - d), k;
|
|
1648
1648
|
}
|
|
1649
|
-
function
|
|
1649
|
+
function co(e) {
|
|
1650
1650
|
return e.toISOString();
|
|
1651
1651
|
}
|
|
1652
|
-
var
|
|
1652
|
+
var Ei = new le("tag:yaml.org,2002:timestamp", {
|
|
1653
1653
|
kind: "scalar",
|
|
1654
|
-
resolve:
|
|
1655
|
-
construct:
|
|
1654
|
+
resolve: lo,
|
|
1655
|
+
construct: so,
|
|
1656
1656
|
instanceOf: Date,
|
|
1657
|
-
represent:
|
|
1657
|
+
represent: co
|
|
1658
1658
|
});
|
|
1659
|
-
function
|
|
1659
|
+
function uo(e) {
|
|
1660
1660
|
return e === "<<" || e === null;
|
|
1661
1661
|
}
|
|
1662
|
-
var
|
|
1662
|
+
var Ni = new le("tag:yaml.org,2002:merge", {
|
|
1663
1663
|
kind: "scalar",
|
|
1664
|
-
resolve:
|
|
1665
|
-
}),
|
|
1664
|
+
resolve: uo
|
|
1665
|
+
}), $t = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
1666
1666
|
\r`;
|
|
1667
|
-
function
|
|
1667
|
+
function po(e) {
|
|
1668
1668
|
if (e === null)
|
|
1669
1669
|
return !1;
|
|
1670
|
-
var i, t, a = 0, r = e.length, n =
|
|
1670
|
+
var i, t, a = 0, r = e.length, n = $t;
|
|
1671
1671
|
for (t = 0; t < r; t++)
|
|
1672
1672
|
if (i = n.indexOf(e.charAt(t)), !(i > 64)) {
|
|
1673
1673
|
if (i < 0)
|
|
@@ -1676,37 +1676,37 @@ function co(e) {
|
|
|
1676
1676
|
}
|
|
1677
1677
|
return a % 8 === 0;
|
|
1678
1678
|
}
|
|
1679
|
-
function
|
|
1680
|
-
var i, t, a = e.replace(/[\r\n=]/g, ""), r = a.length, n =
|
|
1679
|
+
function fo(e) {
|
|
1680
|
+
var i, t, a = e.replace(/[\r\n=]/g, ""), r = a.length, n = $t, o = 0, c = [];
|
|
1681
1681
|
for (i = 0; i < r; i++)
|
|
1682
1682
|
i % 4 === 0 && i && (c.push(o >> 16 & 255), c.push(o >> 8 & 255), c.push(o & 255)), o = o << 6 | n.indexOf(a.charAt(i));
|
|
1683
1683
|
return t = r % 4 * 6, t === 0 ? (c.push(o >> 16 & 255), c.push(o >> 8 & 255), c.push(o & 255)) : t === 18 ? (c.push(o >> 10 & 255), c.push(o >> 2 & 255)) : t === 12 && c.push(o >> 4 & 255), new Uint8Array(c);
|
|
1684
1684
|
}
|
|
1685
|
-
function
|
|
1686
|
-
var i = "", t = 0, a, r, n = e.length, o =
|
|
1685
|
+
function go(e) {
|
|
1686
|
+
var i = "", t = 0, a, r, n = e.length, o = $t;
|
|
1687
1687
|
for (a = 0; a < n; a++)
|
|
1688
1688
|
a % 3 === 0 && a && (i += o[t >> 18 & 63], i += o[t >> 12 & 63], i += o[t >> 6 & 63], i += o[t & 63]), t = (t << 8) + e[a];
|
|
1689
1689
|
return r = n % 3, r === 0 ? (i += o[t >> 18 & 63], i += o[t >> 12 & 63], i += o[t >> 6 & 63], i += o[t & 63]) : r === 2 ? (i += o[t >> 10 & 63], i += o[t >> 4 & 63], i += o[t << 2 & 63], i += o[64]) : r === 1 && (i += o[t >> 2 & 63], i += o[t << 4 & 63], i += o[64], i += o[64]), i;
|
|
1690
1690
|
}
|
|
1691
|
-
function
|
|
1691
|
+
function mo(e) {
|
|
1692
1692
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
1693
1693
|
}
|
|
1694
|
-
var
|
|
1694
|
+
var Fi = new le("tag:yaml.org,2002:binary", {
|
|
1695
1695
|
kind: "scalar",
|
|
1696
|
-
resolve:
|
|
1697
|
-
construct:
|
|
1698
|
-
predicate:
|
|
1699
|
-
represent:
|
|
1700
|
-
}),
|
|
1701
|
-
function
|
|
1696
|
+
resolve: po,
|
|
1697
|
+
construct: fo,
|
|
1698
|
+
predicate: mo,
|
|
1699
|
+
represent: go
|
|
1700
|
+
}), yo = Object.prototype.hasOwnProperty, vo = Object.prototype.toString;
|
|
1701
|
+
function ho(e) {
|
|
1702
1702
|
if (e === null)
|
|
1703
1703
|
return !0;
|
|
1704
1704
|
var i = [], t, a, r, n, o, c = e;
|
|
1705
1705
|
for (t = 0, a = c.length; t < a; t += 1) {
|
|
1706
|
-
if (r = c[t], o = !1,
|
|
1706
|
+
if (r = c[t], o = !1, vo.call(r) !== "[object Object]")
|
|
1707
1707
|
return !1;
|
|
1708
1708
|
for (n in r)
|
|
1709
|
-
if (
|
|
1709
|
+
if (yo.call(r, n))
|
|
1710
1710
|
if (!o)
|
|
1711
1711
|
o = !0;
|
|
1712
1712
|
else
|
|
@@ -1720,26 +1720,26 @@ function yo(e) {
|
|
|
1720
1720
|
}
|
|
1721
1721
|
return !0;
|
|
1722
1722
|
}
|
|
1723
|
-
function
|
|
1723
|
+
function bo(e) {
|
|
1724
1724
|
return e !== null ? e : [];
|
|
1725
1725
|
}
|
|
1726
|
-
var
|
|
1726
|
+
var qi = new le("tag:yaml.org,2002:omap", {
|
|
1727
1727
|
kind: "sequence",
|
|
1728
|
-
resolve:
|
|
1729
|
-
construct:
|
|
1730
|
-
}),
|
|
1731
|
-
function
|
|
1728
|
+
resolve: ho,
|
|
1729
|
+
construct: bo
|
|
1730
|
+
}), wo = Object.prototype.toString;
|
|
1731
|
+
function _o(e) {
|
|
1732
1732
|
if (e === null)
|
|
1733
1733
|
return !0;
|
|
1734
1734
|
var i, t, a, r, n, o = e;
|
|
1735
1735
|
for (n = new Array(o.length), i = 0, t = o.length; i < t; i += 1) {
|
|
1736
|
-
if (a = o[i],
|
|
1736
|
+
if (a = o[i], wo.call(a) !== "[object Object]" || (r = Object.keys(a), r.length !== 1))
|
|
1737
1737
|
return !1;
|
|
1738
1738
|
n[i] = [r[0], a[r[0]]];
|
|
1739
1739
|
}
|
|
1740
1740
|
return !0;
|
|
1741
1741
|
}
|
|
1742
|
-
function
|
|
1742
|
+
function ko(e) {
|
|
1743
1743
|
if (e === null)
|
|
1744
1744
|
return [];
|
|
1745
1745
|
var i, t, a, r, n, o = e;
|
|
@@ -1747,40 +1747,40 @@ function wo(e) {
|
|
|
1747
1747
|
a = o[i], r = Object.keys(a), n[i] = [r[0], a[r[0]]];
|
|
1748
1748
|
return n;
|
|
1749
1749
|
}
|
|
1750
|
-
var
|
|
1750
|
+
var Li = new le("tag:yaml.org,2002:pairs", {
|
|
1751
1751
|
kind: "sequence",
|
|
1752
|
-
resolve:
|
|
1753
|
-
construct:
|
|
1754
|
-
}),
|
|
1755
|
-
function
|
|
1752
|
+
resolve: _o,
|
|
1753
|
+
construct: ko
|
|
1754
|
+
}), Co = Object.prototype.hasOwnProperty;
|
|
1755
|
+
function So(e) {
|
|
1756
1756
|
if (e === null)
|
|
1757
1757
|
return !0;
|
|
1758
1758
|
var i, t = e;
|
|
1759
1759
|
for (i in t)
|
|
1760
|
-
if (
|
|
1760
|
+
if (Co.call(t, i) && t[i] !== null)
|
|
1761
1761
|
return !1;
|
|
1762
1762
|
return !0;
|
|
1763
1763
|
}
|
|
1764
|
-
function
|
|
1764
|
+
function xo(e) {
|
|
1765
1765
|
return e !== null ? e : {};
|
|
1766
1766
|
}
|
|
1767
|
-
var
|
|
1767
|
+
var Vi = new le("tag:yaml.org,2002:set", {
|
|
1768
1768
|
kind: "mapping",
|
|
1769
|
-
resolve:
|
|
1770
|
-
construct:
|
|
1771
|
-
}),
|
|
1769
|
+
resolve: So,
|
|
1770
|
+
construct: xo
|
|
1771
|
+
}), jt = ji.extend({
|
|
1772
1772
|
implicit: [
|
|
1773
|
-
|
|
1774
|
-
|
|
1773
|
+
Ei,
|
|
1774
|
+
Ni
|
|
1775
1775
|
],
|
|
1776
1776
|
explicit: [
|
|
1777
|
-
Ei,
|
|
1778
|
-
Ni,
|
|
1779
1777
|
Fi,
|
|
1780
|
-
qi
|
|
1778
|
+
qi,
|
|
1779
|
+
Li,
|
|
1780
|
+
Vi
|
|
1781
1781
|
]
|
|
1782
|
-
}),
|
|
1783
|
-
function
|
|
1782
|
+
}), Ie = Object.prototype.hasOwnProperty, rt = 1, Ki = 2, Ui = 3, at = 4, ht = 1, Io = 2, Dt = 3, Ao = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, To = /[\x85\u2028\u2029]/, $o = /[,\[\]\{\}]/, Bi = /^(?:!|!!|![a-z\-]+!)$/i, Pi = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
1783
|
+
function zt(e) {
|
|
1784
1784
|
return Object.prototype.toString.call(e);
|
|
1785
1785
|
}
|
|
1786
1786
|
function he(e) {
|
|
@@ -1795,33 +1795,33 @@ function fe(e) {
|
|
|
1795
1795
|
function Ve(e) {
|
|
1796
1796
|
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
1797
1797
|
}
|
|
1798
|
-
function
|
|
1798
|
+
function jo(e) {
|
|
1799
1799
|
var i;
|
|
1800
1800
|
return 48 <= e && e <= 57 ? e - 48 : (i = e | 32, 97 <= i && i <= 102 ? i - 97 + 10 : -1);
|
|
1801
1801
|
}
|
|
1802
|
-
function
|
|
1802
|
+
function Mo(e) {
|
|
1803
1803
|
return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
|
|
1804
1804
|
}
|
|
1805
|
-
function
|
|
1805
|
+
function Oo(e) {
|
|
1806
1806
|
return 48 <= e && e <= 57 ? e - 48 : -1;
|
|
1807
1807
|
}
|
|
1808
|
-
function
|
|
1808
|
+
function Ht(e) {
|
|
1809
1809
|
return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
|
|
1810
1810
|
` : 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" : "";
|
|
1811
1811
|
}
|
|
1812
|
-
function
|
|
1812
|
+
function Eo(e) {
|
|
1813
1813
|
return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode(
|
|
1814
1814
|
(e - 65536 >> 10) + 55296,
|
|
1815
1815
|
(e - 65536 & 1023) + 56320
|
|
1816
1816
|
);
|
|
1817
1817
|
}
|
|
1818
|
-
var
|
|
1818
|
+
var Ri = new Array(256), Di = new Array(256);
|
|
1819
1819
|
for (var Fe = 0; Fe < 256; Fe++)
|
|
1820
|
-
|
|
1821
|
-
function
|
|
1822
|
-
this.input = e, this.filename = i.filename || null, this.schema = i.schema ||
|
|
1820
|
+
Ri[Fe] = Ht(Fe) ? 1 : 0, Di[Fe] = Ht(Fe);
|
|
1821
|
+
function No(e, i) {
|
|
1822
|
+
this.input = e, this.filename = i.filename || null, this.schema = i.schema || jt, this.onWarning = i.onWarning || null, this.legacy = i.legacy || !1, this.json = i.json || !1, this.listener = i.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 = [];
|
|
1823
1823
|
}
|
|
1824
|
-
function
|
|
1824
|
+
function zi(e, i) {
|
|
1825
1825
|
var t = {
|
|
1826
1826
|
name: e.filename,
|
|
1827
1827
|
buffer: e.input.slice(0, -1),
|
|
@@ -1830,22 +1830,22 @@ function Ri(e, i) {
|
|
|
1830
1830
|
line: e.line,
|
|
1831
1831
|
column: e.position - e.lineStart
|
|
1832
1832
|
};
|
|
1833
|
-
return t.snippet =
|
|
1833
|
+
return t.snippet = La(t), new ue(i, t);
|
|
1834
1834
|
}
|
|
1835
1835
|
function O(e, i) {
|
|
1836
|
-
throw
|
|
1836
|
+
throw zi(e, i);
|
|
1837
1837
|
}
|
|
1838
|
-
function
|
|
1839
|
-
e.onWarning && e.onWarning.call(null,
|
|
1838
|
+
function ot(e, i) {
|
|
1839
|
+
e.onWarning && e.onWarning.call(null, zi(e, i));
|
|
1840
1840
|
}
|
|
1841
|
-
var
|
|
1841
|
+
var Jt = {
|
|
1842
1842
|
YAML: function(e, i, t) {
|
|
1843
1843
|
var a, r, n;
|
|
1844
|
-
e.version !== null && O(e, "duplication of %YAML directive"), t.length !== 1 && O(e, "YAML directive accepts exactly one argument"), a = /^([0-9]+)\.([0-9]+)$/.exec(t[0]), a === null && O(e, "ill-formed argument of the YAML directive"), r = parseInt(a[1], 10), n = parseInt(a[2], 10), r !== 1 && O(e, "unacceptable YAML version of the document"), e.version = t[0], e.checkLineBreaks = n < 2, n !== 1 && n !== 2 &&
|
|
1844
|
+
e.version !== null && O(e, "duplication of %YAML directive"), t.length !== 1 && O(e, "YAML directive accepts exactly one argument"), a = /^([0-9]+)\.([0-9]+)$/.exec(t[0]), a === null && O(e, "ill-formed argument of the YAML directive"), r = parseInt(a[1], 10), n = parseInt(a[2], 10), r !== 1 && O(e, "unacceptable YAML version of the document"), e.version = t[0], e.checkLineBreaks = n < 2, n !== 1 && n !== 2 && ot(e, "unsupported YAML version of the document");
|
|
1845
1845
|
},
|
|
1846
1846
|
TAG: function(e, i, t) {
|
|
1847
1847
|
var a, r;
|
|
1848
|
-
t.length !== 2 && O(e, "TAG directive accepts exactly two arguments"), a = t[0], r = t[1],
|
|
1848
|
+
t.length !== 2 && O(e, "TAG directive accepts exactly two arguments"), a = t[0], r = t[1], Bi.test(a) || O(e, "ill-formed tag handle (first argument) of the TAG directive"), Ie.call(e.tagMap, a) && O(e, 'there is a previously declared suffix for "' + a + '" tag handle'), Pi.test(r) || O(e, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
1849
1849
|
try {
|
|
1850
1850
|
r = decodeURIComponent(r);
|
|
1851
1851
|
} catch {
|
|
@@ -1861,28 +1861,28 @@ function Se(e, i, t, a) {
|
|
|
1861
1861
|
for (r = 0, n = c.length; r < n; r += 1)
|
|
1862
1862
|
o = c.charCodeAt(r), o === 9 || 32 <= o && o <= 1114111 || O(e, "expected valid JSON character");
|
|
1863
1863
|
else
|
|
1864
|
-
|
|
1864
|
+
Ao.test(c) && O(e, "the stream contains non-printable characters");
|
|
1865
1865
|
e.result += c;
|
|
1866
1866
|
}
|
|
1867
1867
|
}
|
|
1868
|
-
function
|
|
1868
|
+
function Gt(e, i, t, a) {
|
|
1869
1869
|
var r, n, o, c;
|
|
1870
1870
|
for (oe.isObject(t) || O(e, "cannot merge mappings; the provided source object is unacceptable"), r = Object.keys(t), o = 0, c = r.length; o < c; o += 1)
|
|
1871
|
-
n = r[o],
|
|
1871
|
+
n = r[o], Ie.call(i, n) || (i[n] = t[n], a[n] = !0);
|
|
1872
1872
|
}
|
|
1873
1873
|
function Ke(e, i, t, a, r, n, o, c, l) {
|
|
1874
1874
|
var d, m;
|
|
1875
1875
|
if (Array.isArray(r))
|
|
1876
1876
|
for (r = Array.prototype.slice.call(r), d = 0, m = r.length; d < m; d += 1)
|
|
1877
|
-
Array.isArray(r[d]) && O(e, "nested arrays are not supported inside keys"), typeof r == "object" &&
|
|
1878
|
-
if (typeof r == "object" &&
|
|
1877
|
+
Array.isArray(r[d]) && O(e, "nested arrays are not supported inside keys"), typeof r == "object" && zt(r[d]) === "[object Object]" && (r[d] = "[object Object]");
|
|
1878
|
+
if (typeof r == "object" && zt(r) === "[object Object]" && (r = "[object Object]"), r = String(r), i === null && (i = {}), a === "tag:yaml.org,2002:merge")
|
|
1879
1879
|
if (Array.isArray(n))
|
|
1880
1880
|
for (d = 0, m = n.length; d < m; d += 1)
|
|
1881
|
-
|
|
1881
|
+
Gt(e, i, n[d], t);
|
|
1882
1882
|
else
|
|
1883
|
-
|
|
1883
|
+
Gt(e, i, n, t);
|
|
1884
1884
|
else
|
|
1885
|
-
!e.json && !
|
|
1885
|
+
!e.json && !Ie.call(t, r) && Ie.call(i, r) && (e.line = o || e.line, e.lineStart = c || e.lineStart, e.position = l || e.position, O(e, "duplicated mapping key")), r === "__proto__" ? Object.defineProperty(i, r, {
|
|
1886
1886
|
configurable: !0,
|
|
1887
1887
|
enumerable: !0,
|
|
1888
1888
|
writable: !0,
|
|
@@ -1890,7 +1890,7 @@ function Ke(e, i, t, a, r, n, o, c, l) {
|
|
|
1890
1890
|
}) : i[r] = n, delete t[r];
|
|
1891
1891
|
return i;
|
|
1892
1892
|
}
|
|
1893
|
-
function
|
|
1893
|
+
function Mt(e) {
|
|
1894
1894
|
var i;
|
|
1895
1895
|
i = e.input.charCodeAt(e.position), i === 10 ? e.position++ : i === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : O(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
|
|
1896
1896
|
}
|
|
@@ -1903,22 +1903,22 @@ function re(e, i, t) {
|
|
|
1903
1903
|
r = e.input.charCodeAt(++e.position);
|
|
1904
1904
|
while (r !== 10 && r !== 13 && r !== 0);
|
|
1905
1905
|
if (he(r))
|
|
1906
|
-
for (
|
|
1906
|
+
for (Mt(e), r = e.input.charCodeAt(e.position), a++, e.lineIndent = 0; r === 32; )
|
|
1907
1907
|
e.lineIndent++, r = e.input.charCodeAt(++e.position);
|
|
1908
1908
|
else
|
|
1909
1909
|
break;
|
|
1910
1910
|
}
|
|
1911
|
-
return t !== -1 && a !== 0 && e.lineIndent < t &&
|
|
1911
|
+
return t !== -1 && a !== 0 && e.lineIndent < t && ot(e, "deficient indentation"), a;
|
|
1912
1912
|
}
|
|
1913
|
-
function
|
|
1913
|
+
function pt(e) {
|
|
1914
1914
|
var i = e.position, t;
|
|
1915
1915
|
return t = e.input.charCodeAt(i), !!((t === 45 || t === 46) && t === e.input.charCodeAt(i + 1) && t === e.input.charCodeAt(i + 2) && (i += 3, t = e.input.charCodeAt(i), t === 0 || fe(t)));
|
|
1916
1916
|
}
|
|
1917
|
-
function
|
|
1917
|
+
function Ot(e, i) {
|
|
1918
1918
|
i === 1 ? e.result += " " : i > 1 && (e.result += oe.repeat(`
|
|
1919
1919
|
`, i - 1));
|
|
1920
1920
|
}
|
|
1921
|
-
function
|
|
1921
|
+
function Fo(e, i, t) {
|
|
1922
1922
|
var a, r, n, o, c, l, d, m, p = e.kind, k = e.result, h;
|
|
1923
1923
|
if (h = e.input.charCodeAt(e.position), fe(h) || Ve(h) || h === 35 || h === 38 || h === 42 || h === 33 || h === 124 || h === 62 || h === 39 || h === 34 || h === 37 || h === 64 || h === 96 || (h === 63 || h === 45) && (r = e.input.charCodeAt(e.position + 1), fe(r) || t && Ve(r)))
|
|
1924
1924
|
return !1;
|
|
@@ -1930,7 +1930,7 @@ function Eo(e, i, t) {
|
|
|
1930
1930
|
if (a = e.input.charCodeAt(e.position - 1), fe(a))
|
|
1931
1931
|
break;
|
|
1932
1932
|
} else {
|
|
1933
|
-
if (e.position === e.lineStart &&
|
|
1933
|
+
if (e.position === e.lineStart && pt(e) || t && Ve(h))
|
|
1934
1934
|
break;
|
|
1935
1935
|
if (he(h))
|
|
1936
1936
|
if (l = e.line, d = e.lineStart, m = e.lineIndent, re(e, !1, -1), e.lineIndent >= i) {
|
|
@@ -1941,11 +1941,11 @@ function Eo(e, i, t) {
|
|
|
1941
1941
|
break;
|
|
1942
1942
|
}
|
|
1943
1943
|
}
|
|
1944
|
-
c && (Se(e, n, o, !1),
|
|
1944
|
+
c && (Se(e, n, o, !1), Ot(e, e.line - l), n = o = e.position, c = !1), Oe(h) || (o = e.position + 1), h = e.input.charCodeAt(++e.position);
|
|
1945
1945
|
}
|
|
1946
1946
|
return Se(e, n, o, !1), e.result ? !0 : (e.kind = p, e.result = k, !1);
|
|
1947
1947
|
}
|
|
1948
|
-
function
|
|
1948
|
+
function qo(e, i) {
|
|
1949
1949
|
var t, a, r;
|
|
1950
1950
|
if (t = e.input.charCodeAt(e.position), t !== 39)
|
|
1951
1951
|
return !1;
|
|
@@ -1956,10 +1956,10 @@ function No(e, i) {
|
|
|
1956
1956
|
else
|
|
1957
1957
|
return !0;
|
|
1958
1958
|
else
|
|
1959
|
-
he(t) ? (Se(e, a, r, !0),
|
|
1959
|
+
he(t) ? (Se(e, a, r, !0), Ot(e, re(e, !1, i)), a = r = e.position) : e.position === e.lineStart && pt(e) ? O(e, "unexpected end of the document within a single quoted scalar") : (e.position++, r = e.position);
|
|
1960
1960
|
O(e, "unexpected end of the stream within a single quoted scalar");
|
|
1961
1961
|
}
|
|
1962
|
-
function
|
|
1962
|
+
function Lo(e, i) {
|
|
1963
1963
|
var t, a, r, n, o, c;
|
|
1964
1964
|
if (c = e.input.charCodeAt(e.position), c !== 34)
|
|
1965
1965
|
return !1;
|
|
@@ -1969,22 +1969,22 @@ function Fo(e, i) {
|
|
|
1969
1969
|
if (c === 92) {
|
|
1970
1970
|
if (Se(e, t, e.position, !0), c = e.input.charCodeAt(++e.position), he(c))
|
|
1971
1971
|
re(e, !1, i);
|
|
1972
|
-
else if (c < 256 &&
|
|
1973
|
-
e.result +=
|
|
1974
|
-
else if ((o =
|
|
1972
|
+
else if (c < 256 && Ri[c])
|
|
1973
|
+
e.result += Di[c], e.position++;
|
|
1974
|
+
else if ((o = Mo(c)) > 0) {
|
|
1975
1975
|
for (r = o, n = 0; r > 0; r--)
|
|
1976
|
-
c = e.input.charCodeAt(++e.position), (o =
|
|
1977
|
-
e.result +=
|
|
1976
|
+
c = e.input.charCodeAt(++e.position), (o = jo(c)) >= 0 ? n = (n << 4) + o : O(e, "expected hexadecimal character");
|
|
1977
|
+
e.result += Eo(n), e.position++;
|
|
1978
1978
|
} else
|
|
1979
1979
|
O(e, "unknown escape sequence");
|
|
1980
1980
|
t = a = e.position;
|
|
1981
1981
|
} else
|
|
1982
|
-
he(c) ? (Se(e, t, a, !0),
|
|
1982
|
+
he(c) ? (Se(e, t, a, !0), Ot(e, re(e, !1, i)), t = a = e.position) : e.position === e.lineStart && pt(e) ? O(e, "unexpected end of the document within a double quoted scalar") : (e.position++, a = e.position);
|
|
1983
1983
|
}
|
|
1984
1984
|
O(e, "unexpected end of the stream within a double quoted scalar");
|
|
1985
1985
|
}
|
|
1986
|
-
function
|
|
1987
|
-
var t = !0, a, r, n, o = e.tag, c, l = e.anchor, d, m, p, k, h,
|
|
1986
|
+
function Vo(e, i) {
|
|
1987
|
+
var t = !0, a, r, n, o = e.tag, c, l = e.anchor, d, m, p, k, h, I = /* @__PURE__ */ Object.create(null), x, S, P, q;
|
|
1988
1988
|
if (q = e.input.charCodeAt(e.position), q === 91)
|
|
1989
1989
|
m = 93, h = !1, c = [];
|
|
1990
1990
|
else if (q === 123)
|
|
@@ -1994,12 +1994,12 @@ function qo(e, i) {
|
|
|
1994
1994
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = c), q = e.input.charCodeAt(++e.position); q !== 0; ) {
|
|
1995
1995
|
if (re(e, !0, i), q = e.input.charCodeAt(e.position), q === m)
|
|
1996
1996
|
return e.position++, e.tag = o, e.anchor = l, e.kind = h ? "mapping" : "sequence", e.result = c, !0;
|
|
1997
|
-
t ? q === 44 && O(e, "expected the node content, but found ','") : O(e, "missed comma between flow collection entries"), S =
|
|
1997
|
+
t ? q === 44 && O(e, "expected the node content, but found ','") : O(e, "missed comma between flow collection entries"), S = x = P = null, p = k = !1, q === 63 && (d = e.input.charCodeAt(e.position + 1), fe(d) && (p = k = !0, e.position++, re(e, !0, i))), a = e.line, r = e.lineStart, n = e.position, Be(e, i, rt, !1, !0), S = e.tag, x = e.result, re(e, !0, i), q = e.input.charCodeAt(e.position), (k || e.line === a) && q === 58 && (p = !0, q = e.input.charCodeAt(++e.position), re(e, !0, i), Be(e, i, rt, !1, !0), P = e.result), h ? Ke(e, c, I, S, x, P, a, r, n) : p ? c.push(Ke(e, null, I, S, x, P, a, r, n)) : c.push(x), re(e, !0, i), q = e.input.charCodeAt(e.position), q === 44 ? (t = !0, q = e.input.charCodeAt(++e.position)) : t = !1;
|
|
1998
1998
|
}
|
|
1999
1999
|
O(e, "unexpected end of the stream within a flow collection");
|
|
2000
2000
|
}
|
|
2001
|
-
function
|
|
2002
|
-
var t, a, r =
|
|
2001
|
+
function Ko(e, i) {
|
|
2002
|
+
var t, a, r = ht, n = !1, o = !1, c = i, l = 0, d = !1, m, p;
|
|
2003
2003
|
if (p = e.input.charCodeAt(e.position), p === 124)
|
|
2004
2004
|
a = !1;
|
|
2005
2005
|
else if (p === 62)
|
|
@@ -2008,8 +2008,8 @@ function Lo(e, i) {
|
|
|
2008
2008
|
return !1;
|
|
2009
2009
|
for (e.kind = "scalar", e.result = ""; p !== 0; )
|
|
2010
2010
|
if (p = e.input.charCodeAt(++e.position), p === 43 || p === 45)
|
|
2011
|
-
|
|
2012
|
-
else if ((m =
|
|
2011
|
+
ht === r ? r = p === 43 ? Dt : Io : O(e, "repeat of a chomping mode identifier");
|
|
2012
|
+
else if ((m = Oo(p)) >= 0)
|
|
2013
2013
|
m === 0 ? O(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? O(e, "repeat of an indentation width identifier") : (c = i + m - 1, o = !0);
|
|
2014
2014
|
else
|
|
2015
2015
|
break;
|
|
@@ -2023,15 +2023,15 @@ function Lo(e, i) {
|
|
|
2023
2023
|
while (!he(p) && p !== 0);
|
|
2024
2024
|
}
|
|
2025
2025
|
for (; p !== 0; ) {
|
|
2026
|
-
for (
|
|
2026
|
+
for (Mt(e), e.lineIndent = 0, p = e.input.charCodeAt(e.position); (!o || e.lineIndent < c) && p === 32; )
|
|
2027
2027
|
e.lineIndent++, p = e.input.charCodeAt(++e.position);
|
|
2028
2028
|
if (!o && e.lineIndent > c && (c = e.lineIndent), he(p)) {
|
|
2029
2029
|
l++;
|
|
2030
2030
|
continue;
|
|
2031
2031
|
}
|
|
2032
2032
|
if (e.lineIndent < c) {
|
|
2033
|
-
r ===
|
|
2034
|
-
`, n ? 1 + l : l) : r ===
|
|
2033
|
+
r === Dt ? e.result += oe.repeat(`
|
|
2034
|
+
`, n ? 1 + l : l) : r === ht && n && (e.result += `
|
|
2035
2035
|
`);
|
|
2036
2036
|
break;
|
|
2037
2037
|
}
|
|
@@ -2045,7 +2045,7 @@ function Lo(e, i) {
|
|
|
2045
2045
|
}
|
|
2046
2046
|
return !0;
|
|
2047
2047
|
}
|
|
2048
|
-
function
|
|
2048
|
+
function Wt(e, i) {
|
|
2049
2049
|
var t, a = e.tag, r = e.anchor, n = [], o, c = !1, l;
|
|
2050
2050
|
if (e.firstTabInLine !== -1)
|
|
2051
2051
|
return !1;
|
|
@@ -2054,28 +2054,28 @@ function Jt(e, i) {
|
|
|
2054
2054
|
n.push(null), l = e.input.charCodeAt(e.position);
|
|
2055
2055
|
continue;
|
|
2056
2056
|
}
|
|
2057
|
-
if (t = e.line, Be(e, i,
|
|
2057
|
+
if (t = e.line, Be(e, i, Ui, !1, !0), n.push(e.result), re(e, !0, -1), l = e.input.charCodeAt(e.position), (e.line === t || e.lineIndent > i) && l !== 0)
|
|
2058
2058
|
O(e, "bad indentation of a sequence entry");
|
|
2059
2059
|
else if (e.lineIndent < i)
|
|
2060
2060
|
break;
|
|
2061
2061
|
}
|
|
2062
2062
|
return c ? (e.tag = a, e.anchor = r, e.kind = "sequence", e.result = n, !0) : !1;
|
|
2063
2063
|
}
|
|
2064
|
-
function
|
|
2065
|
-
var a, r, n, o, c, l, d = e.tag, m = e.anchor, p = {}, k = /* @__PURE__ */ Object.create(null), h = null,
|
|
2064
|
+
function Uo(e, i, t) {
|
|
2065
|
+
var a, r, n, o, c, l, d = e.tag, m = e.anchor, p = {}, k = /* @__PURE__ */ Object.create(null), h = null, I = null, x = null, S = !1, P = !1, q;
|
|
2066
2066
|
if (e.firstTabInLine !== -1)
|
|
2067
2067
|
return !1;
|
|
2068
2068
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = p), q = e.input.charCodeAt(e.position); q !== 0; ) {
|
|
2069
2069
|
if (!S && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, O(e, "tab characters must not be used in indentation")), a = e.input.charCodeAt(e.position + 1), n = e.line, (q === 63 || q === 58) && fe(a))
|
|
2070
|
-
q === 63 ? (S && (Ke(e, p, k, h,
|
|
2070
|
+
q === 63 ? (S && (Ke(e, p, k, h, I, null, o, c, l), h = I = x = null), P = !0, S = !0, r = !0) : S ? (S = !1, r = !0) : O(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, q = a;
|
|
2071
2071
|
else {
|
|
2072
|
-
if (o = e.line, c = e.lineStart, l = e.position, !Be(e, t,
|
|
2072
|
+
if (o = e.line, c = e.lineStart, l = e.position, !Be(e, t, Ki, !1, !0))
|
|
2073
2073
|
break;
|
|
2074
2074
|
if (e.line === n) {
|
|
2075
2075
|
for (q = e.input.charCodeAt(e.position); Oe(q); )
|
|
2076
2076
|
q = e.input.charCodeAt(++e.position);
|
|
2077
2077
|
if (q === 58)
|
|
2078
|
-
q = e.input.charCodeAt(++e.position), fe(q) || O(e, "a whitespace character is expected after the key-value separator within a block mapping"), S && (Ke(e, p, k, h,
|
|
2078
|
+
q = e.input.charCodeAt(++e.position), fe(q) || O(e, "a whitespace character is expected after the key-value separator within a block mapping"), S && (Ke(e, p, k, h, I, null, o, c, l), h = I = x = null), P = !0, S = !1, r = !1, h = e.tag, I = e.result;
|
|
2079
2079
|
else if (P)
|
|
2080
2080
|
O(e, "can not read an implicit mapping pair; a colon is missed");
|
|
2081
2081
|
else
|
|
@@ -2085,14 +2085,14 @@ function Vo(e, i, t) {
|
|
|
2085
2085
|
else
|
|
2086
2086
|
return e.tag = d, e.anchor = m, !0;
|
|
2087
2087
|
}
|
|
2088
|
-
if ((e.line === n || e.lineIndent > i) && (S && (o = e.line, c = e.lineStart, l = e.position), Be(e, i,
|
|
2088
|
+
if ((e.line === n || e.lineIndent > i) && (S && (o = e.line, c = e.lineStart, l = e.position), Be(e, i, at, !0, r) && (S ? I = e.result : x = e.result), S || (Ke(e, p, k, h, I, x, o, c, l), h = I = x = null), re(e, !0, -1), q = e.input.charCodeAt(e.position)), (e.line === n || e.lineIndent > i) && q !== 0)
|
|
2089
2089
|
O(e, "bad indentation of a mapping entry");
|
|
2090
2090
|
else if (e.lineIndent < i)
|
|
2091
2091
|
break;
|
|
2092
2092
|
}
|
|
2093
|
-
return S && Ke(e, p, k, h,
|
|
2093
|
+
return S && Ke(e, p, k, h, I, null, o, c, l), P && (e.tag = d, e.anchor = m, e.kind = "mapping", e.result = p), P;
|
|
2094
2094
|
}
|
|
2095
|
-
function
|
|
2095
|
+
function Bo(e) {
|
|
2096
2096
|
var i, t = !1, a = !1, r, n, o;
|
|
2097
2097
|
if (o = e.input.charCodeAt(e.position), o !== 33)
|
|
2098
2098
|
return !1;
|
|
@@ -2103,18 +2103,18 @@ function Ko(e) {
|
|
|
2103
2103
|
e.position < e.length ? (n = e.input.slice(i, e.position), o = e.input.charCodeAt(++e.position)) : O(e, "unexpected end of the stream within a verbatim tag");
|
|
2104
2104
|
} else {
|
|
2105
2105
|
for (; o !== 0 && !fe(o); )
|
|
2106
|
-
o === 33 && (a ? O(e, "tag suffix cannot contain exclamation marks") : (r = e.input.slice(i - 1, e.position + 1),
|
|
2107
|
-
n = e.input.slice(i, e.position),
|
|
2106
|
+
o === 33 && (a ? O(e, "tag suffix cannot contain exclamation marks") : (r = e.input.slice(i - 1, e.position + 1), Bi.test(r) || O(e, "named tag handle cannot contain such characters"), a = !0, i = e.position + 1)), o = e.input.charCodeAt(++e.position);
|
|
2107
|
+
n = e.input.slice(i, e.position), $o.test(n) && O(e, "tag suffix cannot contain flow indicator characters");
|
|
2108
2108
|
}
|
|
2109
|
-
n && !
|
|
2109
|
+
n && !Pi.test(n) && O(e, "tag name cannot contain such characters: " + n);
|
|
2110
2110
|
try {
|
|
2111
2111
|
n = decodeURIComponent(n);
|
|
2112
2112
|
} catch {
|
|
2113
2113
|
O(e, "tag name is malformed: " + n);
|
|
2114
2114
|
}
|
|
2115
|
-
return t ? e.tag = n :
|
|
2115
|
+
return t ? e.tag = n : Ie.call(e.tagMap, r) ? e.tag = e.tagMap[r] + n : r === "!" ? e.tag = "!" + n : r === "!!" ? e.tag = "tag:yaml.org,2002:" + n : O(e, 'undeclared tag handle "' + r + '"'), !0;
|
|
2116
2116
|
}
|
|
2117
|
-
function
|
|
2117
|
+
function Po(e) {
|
|
2118
2118
|
var i, t;
|
|
2119
2119
|
if (t = e.input.charCodeAt(e.position), t !== 38)
|
|
2120
2120
|
return !1;
|
|
@@ -2122,41 +2122,41 @@ function Uo(e) {
|
|
|
2122
2122
|
t = e.input.charCodeAt(++e.position);
|
|
2123
2123
|
return e.position === i && O(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(i, e.position), !0;
|
|
2124
2124
|
}
|
|
2125
|
-
function
|
|
2125
|
+
function Ro(e) {
|
|
2126
2126
|
var i, t, a;
|
|
2127
2127
|
if (a = e.input.charCodeAt(e.position), a !== 42)
|
|
2128
2128
|
return !1;
|
|
2129
2129
|
for (a = e.input.charCodeAt(++e.position), i = e.position; a !== 0 && !fe(a) && !Ve(a); )
|
|
2130
2130
|
a = e.input.charCodeAt(++e.position);
|
|
2131
|
-
return e.position === i && O(e, "name of an alias node must contain at least one character"), t = e.input.slice(i, e.position),
|
|
2131
|
+
return e.position === i && O(e, "name of an alias node must contain at least one character"), t = e.input.slice(i, e.position), Ie.call(e.anchorMap, t) || O(e, 'unidentified alias "' + t + '"'), e.result = e.anchorMap[t], re(e, !0, -1), !0;
|
|
2132
2132
|
}
|
|
2133
2133
|
function Be(e, i, t, a, r) {
|
|
2134
|
-
var n, o, c, l = 1, d = !1, m = !1, p, k, h,
|
|
2135
|
-
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, n = o = c =
|
|
2136
|
-
for (;
|
|
2134
|
+
var n, o, c, l = 1, d = !1, m = !1, p, k, h, I, x, S;
|
|
2135
|
+
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, n = o = c = at === t || Ui === t, a && re(e, !0, -1) && (d = !0, e.lineIndent > i ? l = 1 : e.lineIndent === i ? l = 0 : e.lineIndent < i && (l = -1)), l === 1)
|
|
2136
|
+
for (; Bo(e) || Po(e); )
|
|
2137
2137
|
re(e, !0, -1) ? (d = !0, c = n, e.lineIndent > i ? l = 1 : e.lineIndent === i ? l = 0 : e.lineIndent < i && (l = -1)) : c = !1;
|
|
2138
|
-
if (c && (c = d || r), (l === 1 ||
|
|
2138
|
+
if (c && (c = d || r), (l === 1 || at === t) && (rt === t || Ki === t ? x = i : x = i + 1, S = e.position - e.lineStart, l === 1 ? c && (Wt(e, S) || Uo(e, S, x)) || Vo(e, x) ? m = !0 : (o && Ko(e, x) || qo(e, x) || Lo(e, x) ? m = !0 : Ro(e) ? (m = !0, (e.tag !== null || e.anchor !== null) && O(e, "alias node should not have any properties")) : Fo(e, x, rt === t) && (m = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : l === 0 && (m = c && Wt(e, S))), e.tag === null)
|
|
2139
2139
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
2140
2140
|
else if (e.tag === "?") {
|
|
2141
2141
|
for (e.result !== null && e.kind !== "scalar" && O(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), p = 0, k = e.implicitTypes.length; p < k; p += 1)
|
|
2142
|
-
if (
|
|
2143
|
-
e.result =
|
|
2142
|
+
if (I = e.implicitTypes[p], I.resolve(e.result)) {
|
|
2143
|
+
e.result = I.construct(e.result), e.tag = I.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
2144
2144
|
break;
|
|
2145
2145
|
}
|
|
2146
2146
|
} else if (e.tag !== "!") {
|
|
2147
|
-
if (
|
|
2148
|
-
|
|
2147
|
+
if (Ie.call(e.typeMap[e.kind || "fallback"], e.tag))
|
|
2148
|
+
I = e.typeMap[e.kind || "fallback"][e.tag];
|
|
2149
2149
|
else
|
|
2150
|
-
for (
|
|
2150
|
+
for (I = null, h = e.typeMap.multi[e.kind || "fallback"], p = 0, k = h.length; p < k; p += 1)
|
|
2151
2151
|
if (e.tag.slice(0, h[p].tag.length) === h[p].tag) {
|
|
2152
|
-
|
|
2152
|
+
I = h[p];
|
|
2153
2153
|
break;
|
|
2154
2154
|
}
|
|
2155
|
-
|
|
2155
|
+
I || O(e, "unknown tag !<" + e.tag + ">"), e.result !== null && I.kind !== e.kind && O(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + I.kind + '", not "' + e.kind + '"'), I.resolve(e.result, e.tag) ? (e.result = I.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : O(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
|
|
2156
2156
|
}
|
|
2157
2157
|
return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || m;
|
|
2158
2158
|
}
|
|
2159
|
-
function
|
|
2159
|
+
function Do(e) {
|
|
2160
2160
|
var i = e.position, t, a, r, n = !1, o;
|
|
2161
2161
|
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (o = e.input.charCodeAt(e.position)) !== 0 && (re(e, !0, -1), o = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || o !== 37)); ) {
|
|
2162
2162
|
for (n = !0, o = e.input.charCodeAt(++e.position), t = e.position; o !== 0 && !fe(o); )
|
|
@@ -2176,9 +2176,9 @@ function Po(e) {
|
|
|
2176
2176
|
o = e.input.charCodeAt(++e.position);
|
|
2177
2177
|
r.push(e.input.slice(t, e.position));
|
|
2178
2178
|
}
|
|
2179
|
-
o !== 0 &&
|
|
2179
|
+
o !== 0 && Mt(e), Ie.call(Jt, a) ? Jt[a](e, a, r) : ot(e, 'unknown document directive "' + a + '"');
|
|
2180
2180
|
}
|
|
2181
|
-
if (re(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, re(e, !0, -1)) : n && O(e, "directives end mark is expected"), Be(e, e.lineIndent - 1,
|
|
2181
|
+
if (re(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, re(e, !0, -1)) : n && O(e, "directives end mark is expected"), Be(e, e.lineIndent - 1, at, !1, !0), re(e, !0, -1), e.checkLineBreaks && To.test(e.input.slice(i, e.position)) && ot(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && pt(e)) {
|
|
2182
2182
|
e.input.charCodeAt(e.position) === 46 && (e.position += 3, re(e, !0, -1));
|
|
2183
2183
|
return;
|
|
2184
2184
|
}
|
|
@@ -2187,36 +2187,36 @@ function Po(e) {
|
|
|
2187
2187
|
else
|
|
2188
2188
|
return;
|
|
2189
2189
|
}
|
|
2190
|
-
function
|
|
2190
|
+
function Hi(e, i) {
|
|
2191
2191
|
e = String(e), i = i || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
|
|
2192
2192
|
`), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
2193
|
-
var t = new
|
|
2193
|
+
var t = new No(e, i), a = e.indexOf("\0");
|
|
2194
2194
|
for (a !== -1 && (t.position = a, O(t, "null byte is not allowed in input")), t.input += "\0"; t.input.charCodeAt(t.position) === 32; )
|
|
2195
2195
|
t.lineIndent += 1, t.position += 1;
|
|
2196
2196
|
for (; t.position < t.length - 1; )
|
|
2197
|
-
|
|
2197
|
+
Do(t);
|
|
2198
2198
|
return t.documents;
|
|
2199
2199
|
}
|
|
2200
|
-
function
|
|
2200
|
+
function zo(e, i, t) {
|
|
2201
2201
|
i !== null && typeof i == "object" && typeof t > "u" && (t = i, i = null);
|
|
2202
|
-
var a =
|
|
2202
|
+
var a = Hi(e, t);
|
|
2203
2203
|
if (typeof i != "function")
|
|
2204
2204
|
return a;
|
|
2205
2205
|
for (var r = 0, n = a.length; r < n; r += 1)
|
|
2206
2206
|
i(a[r]);
|
|
2207
2207
|
}
|
|
2208
|
-
function
|
|
2209
|
-
var t =
|
|
2208
|
+
function Ho(e, i) {
|
|
2209
|
+
var t = Hi(e, i);
|
|
2210
2210
|
if (t.length !== 0) {
|
|
2211
2211
|
if (t.length === 1)
|
|
2212
2212
|
return t[0];
|
|
2213
2213
|
throw new ue("expected a single document in the stream, but found more");
|
|
2214
2214
|
}
|
|
2215
2215
|
}
|
|
2216
|
-
var
|
|
2217
|
-
loadAll:
|
|
2218
|
-
load:
|
|
2219
|
-
},
|
|
2216
|
+
var Jo = zo, Go = Ho, Ji = {
|
|
2217
|
+
loadAll: Jo,
|
|
2218
|
+
load: Go
|
|
2219
|
+
}, Gi = Object.prototype.toString, Wi = Object.prototype.hasOwnProperty, Et = 65279, Wo = 9, Ye = 10, Yo = 13, Zo = 32, Qo = 33, Xo = 34, _t = 35, en = 37, tn = 38, rn = 39, an = 42, Yi = 44, on = 45, nt = 58, nn = 61, ln = 62, sn = 63, cn = 64, Zi = 91, Qi = 93, un = 96, Xi = 123, dn = 124, er = 125, ce = {};
|
|
2220
2220
|
ce[0] = "\\0";
|
|
2221
2221
|
ce[7] = "\\a";
|
|
2222
2222
|
ce[8] = "\\b";
|
|
@@ -2232,7 +2232,7 @@ ce[133] = "\\N";
|
|
|
2232
2232
|
ce[160] = "\\_";
|
|
2233
2233
|
ce[8232] = "\\L";
|
|
2234
2234
|
ce[8233] = "\\P";
|
|
2235
|
-
var
|
|
2235
|
+
var pn = [
|
|
2236
2236
|
"y",
|
|
2237
2237
|
"Y",
|
|
2238
2238
|
"yes",
|
|
@@ -2249,16 +2249,16 @@ var un = [
|
|
|
2249
2249
|
"off",
|
|
2250
2250
|
"Off",
|
|
2251
2251
|
"OFF"
|
|
2252
|
-
],
|
|
2253
|
-
function
|
|
2252
|
+
], fn = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
2253
|
+
function gn(e, i) {
|
|
2254
2254
|
var t, a, r, n, o, c, l;
|
|
2255
2255
|
if (i === null)
|
|
2256
2256
|
return {};
|
|
2257
2257
|
for (t = {}, a = Object.keys(i), r = 0, n = a.length; r < n; r += 1)
|
|
2258
|
-
o = a[r], c = String(i[o]), o.slice(0, 2) === "!!" && (o = "tag:yaml.org,2002:" + o.slice(2)), l = e.compiledTypeMap.fallback[o], l &&
|
|
2258
|
+
o = a[r], c = String(i[o]), o.slice(0, 2) === "!!" && (o = "tag:yaml.org,2002:" + o.slice(2)), l = e.compiledTypeMap.fallback[o], l && Wi.call(l.styleAliases, c) && (c = l.styleAliases[c]), t[o] = c;
|
|
2259
2259
|
return t;
|
|
2260
2260
|
}
|
|
2261
|
-
function
|
|
2261
|
+
function mn(e) {
|
|
2262
2262
|
var i, t, a;
|
|
2263
2263
|
if (i = e.toString(16).toUpperCase(), e <= 255)
|
|
2264
2264
|
t = "x", a = 2;
|
|
@@ -2270,94 +2270,94 @@ function fn(e) {
|
|
|
2270
2270
|
throw new ue("code point within a string may not be greater than 0xFFFFFFFF");
|
|
2271
2271
|
return "\\" + t + oe.repeat("0", a - i.length) + i;
|
|
2272
2272
|
}
|
|
2273
|
-
var
|
|
2274
|
-
function
|
|
2275
|
-
this.schema = e.schema ||
|
|
2273
|
+
var yn = 1, Ze = 2;
|
|
2274
|
+
function vn(e) {
|
|
2275
|
+
this.schema = e.schema || jt, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = oe.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = gn(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 === '"' ? Ze : yn, 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;
|
|
2276
2276
|
}
|
|
2277
|
-
function
|
|
2277
|
+
function Yt(e, i) {
|
|
2278
2278
|
for (var t = oe.repeat(" ", i), a = 0, r = -1, n = "", o, c = e.length; a < c; )
|
|
2279
2279
|
r = e.indexOf(`
|
|
2280
2280
|
`, a), r === -1 ? (o = e.slice(a), a = c) : (o = e.slice(a, r + 1), a = r + 1), o.length && o !== `
|
|
2281
2281
|
` && (n += t), n += o;
|
|
2282
2282
|
return n;
|
|
2283
2283
|
}
|
|
2284
|
-
function
|
|
2284
|
+
function kt(e, i) {
|
|
2285
2285
|
return `
|
|
2286
2286
|
` + oe.repeat(" ", e.indent * i);
|
|
2287
2287
|
}
|
|
2288
|
-
function
|
|
2288
|
+
function hn(e, i) {
|
|
2289
2289
|
var t, a, r;
|
|
2290
2290
|
for (t = 0, a = e.implicitTypes.length; t < a; t += 1)
|
|
2291
2291
|
if (r = e.implicitTypes[t], r.resolve(i))
|
|
2292
2292
|
return !0;
|
|
2293
2293
|
return !1;
|
|
2294
2294
|
}
|
|
2295
|
-
function
|
|
2296
|
-
return e ===
|
|
2295
|
+
function lt(e) {
|
|
2296
|
+
return e === Zo || e === Wo;
|
|
2297
2297
|
}
|
|
2298
2298
|
function Qe(e) {
|
|
2299
|
-
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !==
|
|
2299
|
+
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== Et || 65536 <= e && e <= 1114111;
|
|
2300
2300
|
}
|
|
2301
|
-
function
|
|
2302
|
-
return Qe(e) && e !==
|
|
2301
|
+
function Zt(e) {
|
|
2302
|
+
return Qe(e) && e !== Et && e !== Yo && e !== Ye;
|
|
2303
2303
|
}
|
|
2304
|
-
function
|
|
2305
|
-
var a =
|
|
2304
|
+
function Qt(e, i, t) {
|
|
2305
|
+
var a = Zt(e), r = a && !lt(e);
|
|
2306
2306
|
return (
|
|
2307
2307
|
// ns-plain-safe
|
|
2308
2308
|
(t ? (
|
|
2309
2309
|
// c = flow-in
|
|
2310
2310
|
a
|
|
2311
|
-
) : a && e !==
|
|
2311
|
+
) : a && e !== Yi && e !== Zi && e !== Qi && e !== Xi && e !== er) && e !== _t && !(i === nt && !r) || Zt(i) && !lt(i) && e === _t || i === nt && r
|
|
2312
2312
|
);
|
|
2313
2313
|
}
|
|
2314
|
-
function
|
|
2315
|
-
return Qe(e) && e !==
|
|
2314
|
+
function bn(e) {
|
|
2315
|
+
return Qe(e) && e !== Et && !lt(e) && e !== on && e !== sn && e !== nt && e !== Yi && e !== Zi && e !== Qi && e !== Xi && e !== er && e !== _t && e !== tn && e !== an && e !== Qo && e !== dn && e !== nn && e !== ln && e !== rn && e !== Xo && e !== en && e !== cn && e !== un;
|
|
2316
2316
|
}
|
|
2317
|
-
function
|
|
2318
|
-
return !
|
|
2317
|
+
function wn(e) {
|
|
2318
|
+
return !lt(e) && e !== nt;
|
|
2319
2319
|
}
|
|
2320
2320
|
function Je(e, i) {
|
|
2321
2321
|
var t = e.charCodeAt(i), a;
|
|
2322
2322
|
return t >= 55296 && t <= 56319 && i + 1 < e.length && (a = e.charCodeAt(i + 1), a >= 56320 && a <= 57343) ? (t - 55296) * 1024 + a - 56320 + 65536 : t;
|
|
2323
2323
|
}
|
|
2324
|
-
function
|
|
2324
|
+
function tr(e) {
|
|
2325
2325
|
var i = /^\n* /;
|
|
2326
2326
|
return i.test(e);
|
|
2327
2327
|
}
|
|
2328
|
-
var
|
|
2329
|
-
function
|
|
2330
|
-
var l, d = 0, m = null, p = !1, k = !1, h = a !== -1,
|
|
2328
|
+
var ir = 1, Ct = 2, rr = 3, ar = 4, qe = 5;
|
|
2329
|
+
function _n(e, i, t, a, r, n, o, c) {
|
|
2330
|
+
var l, d = 0, m = null, p = !1, k = !1, h = a !== -1, I = -1, x = bn(Je(e, 0)) && wn(Je(e, e.length - 1));
|
|
2331
2331
|
if (i || o)
|
|
2332
2332
|
for (l = 0; l < e.length; d >= 65536 ? l += 2 : l++) {
|
|
2333
2333
|
if (d = Je(e, l), !Qe(d))
|
|
2334
2334
|
return qe;
|
|
2335
|
-
|
|
2335
|
+
x = x && Qt(d, m, c), m = d;
|
|
2336
2336
|
}
|
|
2337
2337
|
else {
|
|
2338
2338
|
for (l = 0; l < e.length; d >= 65536 ? l += 2 : l++) {
|
|
2339
2339
|
if (d = Je(e, l), d === Ye)
|
|
2340
2340
|
p = !0, h && (k = k || // Foldable line = too long, and not more-indented.
|
|
2341
|
-
l -
|
|
2341
|
+
l - I - 1 > a && e[I + 1] !== " ", I = l);
|
|
2342
2342
|
else if (!Qe(d))
|
|
2343
2343
|
return qe;
|
|
2344
|
-
|
|
2344
|
+
x = x && Qt(d, m, c), m = d;
|
|
2345
2345
|
}
|
|
2346
|
-
k = k || h && l -
|
|
2346
|
+
k = k || h && l - I - 1 > a && e[I + 1] !== " ";
|
|
2347
2347
|
}
|
|
2348
|
-
return !p && !k ?
|
|
2348
|
+
return !p && !k ? x && !o && !r(e) ? ir : n === Ze ? qe : Ct : t > 9 && tr(e) ? qe : o ? n === Ze ? qe : Ct : k ? ar : rr;
|
|
2349
2349
|
}
|
|
2350
|
-
function
|
|
2350
|
+
function kn(e, i, t, a, r) {
|
|
2351
2351
|
e.dump = function() {
|
|
2352
2352
|
if (i.length === 0)
|
|
2353
2353
|
return e.quotingType === Ze ? '""' : "''";
|
|
2354
|
-
if (!e.noCompatMode && (
|
|
2354
|
+
if (!e.noCompatMode && (pn.indexOf(i) !== -1 || fn.test(i)))
|
|
2355
2355
|
return e.quotingType === Ze ? '"' + i + '"' : "'" + i + "'";
|
|
2356
2356
|
var n = e.indent * Math.max(1, t), o = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - n), c = a || e.flowLevel > -1 && t >= e.flowLevel;
|
|
2357
2357
|
function l(d) {
|
|
2358
|
-
return
|
|
2358
|
+
return hn(e, d);
|
|
2359
2359
|
}
|
|
2360
|
-
switch (
|
|
2360
|
+
switch (_n(
|
|
2361
2361
|
i,
|
|
2362
2362
|
c,
|
|
2363
2363
|
e.indent,
|
|
@@ -2367,47 +2367,47 @@ function wn(e, i, t, a, r) {
|
|
|
2367
2367
|
e.forceQuotes && !a,
|
|
2368
2368
|
r
|
|
2369
2369
|
)) {
|
|
2370
|
-
case
|
|
2370
|
+
case ir:
|
|
2371
2371
|
return i;
|
|
2372
|
-
case
|
|
2372
|
+
case Ct:
|
|
2373
2373
|
return "'" + i.replace(/'/g, "''") + "'";
|
|
2374
|
-
case
|
|
2375
|
-
return "|" +
|
|
2376
|
-
case
|
|
2377
|
-
return ">" +
|
|
2374
|
+
case rr:
|
|
2375
|
+
return "|" + Xt(i, e.indent) + ei(Yt(i, n));
|
|
2376
|
+
case ar:
|
|
2377
|
+
return ">" + Xt(i, e.indent) + ei(Yt(Cn(i, o), n));
|
|
2378
2378
|
case qe:
|
|
2379
|
-
return '"' +
|
|
2379
|
+
return '"' + Sn(i) + '"';
|
|
2380
2380
|
default:
|
|
2381
2381
|
throw new ue("impossible error: invalid scalar style");
|
|
2382
2382
|
}
|
|
2383
2383
|
}();
|
|
2384
2384
|
}
|
|
2385
|
-
function
|
|
2386
|
-
var t =
|
|
2385
|
+
function Xt(e, i) {
|
|
2386
|
+
var t = tr(e) ? String(i) : "", a = e[e.length - 1] === `
|
|
2387
2387
|
`, r = a && (e[e.length - 2] === `
|
|
2388
2388
|
` || e === `
|
|
2389
2389
|
`), n = r ? "+" : a ? "" : "-";
|
|
2390
2390
|
return t + n + `
|
|
2391
2391
|
`;
|
|
2392
2392
|
}
|
|
2393
|
-
function
|
|
2393
|
+
function ei(e) {
|
|
2394
2394
|
return e[e.length - 1] === `
|
|
2395
2395
|
` ? e.slice(0, -1) : e;
|
|
2396
2396
|
}
|
|
2397
|
-
function
|
|
2397
|
+
function Cn(e, i) {
|
|
2398
2398
|
for (var t = /(\n+)([^\n]*)/g, a = function() {
|
|
2399
2399
|
var d = e.indexOf(`
|
|
2400
2400
|
`);
|
|
2401
|
-
return d = d !== -1 ? d : e.length, t.lastIndex = d,
|
|
2401
|
+
return d = d !== -1 ? d : e.length, t.lastIndex = d, ti(e.slice(0, d), i);
|
|
2402
2402
|
}(), r = e[0] === `
|
|
2403
2403
|
` || e[0] === " ", n, o; o = t.exec(e); ) {
|
|
2404
2404
|
var c = o[1], l = o[2];
|
|
2405
2405
|
n = l[0] === " ", a += c + (!r && !n && l !== "" ? `
|
|
2406
|
-
` : "") +
|
|
2406
|
+
` : "") + ti(l, i), r = n;
|
|
2407
2407
|
}
|
|
2408
2408
|
return a;
|
|
2409
2409
|
}
|
|
2410
|
-
function
|
|
2410
|
+
function ti(e, i) {
|
|
2411
2411
|
if (e === "" || e[0] === " ")
|
|
2412
2412
|
return e;
|
|
2413
2413
|
for (var t = / [^ ]/g, a, r = 0, n, o = 0, c = 0, l = ""; a = t.exec(e); )
|
|
@@ -2417,30 +2417,30 @@ function Xt(e, i) {
|
|
|
2417
2417
|
`, e.length - r > i && o > r ? l += e.slice(r, o) + `
|
|
2418
2418
|
` + e.slice(o + 1) : l += e.slice(r), l.slice(1);
|
|
2419
2419
|
}
|
|
2420
|
-
function
|
|
2420
|
+
function Sn(e) {
|
|
2421
2421
|
for (var i = "", t = 0, a, r = 0; r < e.length; t >= 65536 ? r += 2 : r++)
|
|
2422
|
-
t = Je(e, r), a = ce[t], !a && Qe(t) ? (i += e[r], t >= 65536 && (i += e[r + 1])) : i += a ||
|
|
2422
|
+
t = Je(e, r), a = ce[t], !a && Qe(t) ? (i += e[r], t >= 65536 && (i += e[r + 1])) : i += a || mn(t);
|
|
2423
2423
|
return i;
|
|
2424
2424
|
}
|
|
2425
|
-
function
|
|
2425
|
+
function xn(e, i, t) {
|
|
2426
2426
|
var a = "", r = e.tag, n, o, c;
|
|
2427
2427
|
for (n = 0, o = t.length; n < o; n += 1)
|
|
2428
2428
|
c = t[n], e.replacer && (c = e.replacer.call(t, String(n), c)), (_e(e, i, c, !1, !1) || typeof c > "u" && _e(e, i, null, !1, !1)) && (a !== "" && (a += "," + (e.condenseFlow ? "" : " ")), a += e.dump);
|
|
2429
2429
|
e.tag = r, e.dump = "[" + a + "]";
|
|
2430
2430
|
}
|
|
2431
|
-
function
|
|
2431
|
+
function ii(e, i, t, a) {
|
|
2432
2432
|
var r = "", n = e.tag, o, c, l;
|
|
2433
2433
|
for (o = 0, c = t.length; o < c; o += 1)
|
|
2434
|
-
l = t[o], e.replacer && (l = e.replacer.call(t, String(o), l)), (_e(e, i + 1, l, !0, !0, !1, !0) || typeof l > "u" && _e(e, i + 1, null, !0, !0, !1, !0)) && ((!a || r !== "") && (r +=
|
|
2434
|
+
l = t[o], e.replacer && (l = e.replacer.call(t, String(o), l)), (_e(e, i + 1, l, !0, !0, !1, !0) || typeof l > "u" && _e(e, i + 1, null, !0, !0, !1, !0)) && ((!a || r !== "") && (r += kt(e, i)), e.dump && Ye === e.dump.charCodeAt(0) ? r += "-" : r += "- ", r += e.dump);
|
|
2435
2435
|
e.tag = n, e.dump = r || "[]";
|
|
2436
2436
|
}
|
|
2437
|
-
function
|
|
2437
|
+
function In(e, i, t) {
|
|
2438
2438
|
var a = "", r = e.tag, n = Object.keys(t), o, c, l, d, m;
|
|
2439
2439
|
for (o = 0, c = n.length; o < c; o += 1)
|
|
2440
2440
|
m = "", a !== "" && (m += ", "), e.condenseFlow && (m += '"'), l = n[o], d = t[l], e.replacer && (d = e.replacer.call(t, l, d)), _e(e, i, l, !1, !1) && (e.dump.length > 1024 && (m += "? "), m += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), _e(e, i, d, !1, !1) && (m += e.dump, a += m));
|
|
2441
2441
|
e.tag = r, e.dump = "{" + a + "}";
|
|
2442
2442
|
}
|
|
2443
|
-
function
|
|
2443
|
+
function An(e, i, t, a) {
|
|
2444
2444
|
var r = "", n = e.tag, o = Object.keys(t), c, l, d, m, p, k;
|
|
2445
2445
|
if (e.sortKeys === !0)
|
|
2446
2446
|
o.sort();
|
|
@@ -2449,17 +2449,17 @@ function In(e, i, t, a) {
|
|
|
2449
2449
|
else if (e.sortKeys)
|
|
2450
2450
|
throw new ue("sortKeys must be a boolean or a function");
|
|
2451
2451
|
for (c = 0, l = o.length; c < l; c += 1)
|
|
2452
|
-
k = "", (!a || r !== "") && (k +=
|
|
2452
|
+
k = "", (!a || r !== "") && (k += kt(e, i)), d = o[c], m = t[d], e.replacer && (m = e.replacer.call(t, d, m)), _e(e, i + 1, d, !0, !0, !0) && (p = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, p && (e.dump && Ye === e.dump.charCodeAt(0) ? k += "?" : k += "? "), k += e.dump, p && (k += kt(e, i)), _e(e, i + 1, m, !0, p) && (e.dump && Ye === e.dump.charCodeAt(0) ? k += ":" : k += ": ", k += e.dump, r += k));
|
|
2453
2453
|
e.tag = n, e.dump = r || "{}";
|
|
2454
2454
|
}
|
|
2455
|
-
function
|
|
2455
|
+
function ri(e, i, t) {
|
|
2456
2456
|
var a, r, n, o, c, l;
|
|
2457
2457
|
for (r = t ? e.explicitTypes : e.implicitTypes, n = 0, o = r.length; n < o; n += 1)
|
|
2458
2458
|
if (c = r[n], (c.instanceOf || c.predicate) && (!c.instanceOf || typeof i == "object" && i instanceof c.instanceOf) && (!c.predicate || c.predicate(i))) {
|
|
2459
2459
|
if (t ? c.multi && c.representName ? e.tag = c.representName(i) : e.tag = c.tag : e.tag = "?", c.represent) {
|
|
2460
|
-
if (l = e.styleMap[c.tag] || c.defaultStyle,
|
|
2460
|
+
if (l = e.styleMap[c.tag] || c.defaultStyle, Gi.call(c.represent) === "[object Function]")
|
|
2461
2461
|
a = c.represent(i, l);
|
|
2462
|
-
else if (
|
|
2462
|
+
else if (Wi.call(c.represent, l))
|
|
2463
2463
|
a = c.represent[l](i, l);
|
|
2464
2464
|
else
|
|
2465
2465
|
throw new ue("!<" + c.tag + '> tag resolver accepts not "' + l + '" style');
|
|
@@ -2470,19 +2470,19 @@ function ti(e, i, t) {
|
|
|
2470
2470
|
return !1;
|
|
2471
2471
|
}
|
|
2472
2472
|
function _e(e, i, t, a, r, n, o) {
|
|
2473
|
-
e.tag = null, e.dump = t,
|
|
2474
|
-
var c =
|
|
2473
|
+
e.tag = null, e.dump = t, ri(e, t, !1) || ri(e, t, !0);
|
|
2474
|
+
var c = Gi.call(e.dump), l = a, d;
|
|
2475
2475
|
a && (a = e.flowLevel < 0 || e.flowLevel > i);
|
|
2476
2476
|
var m = c === "[object Object]" || c === "[object Array]", p, k;
|
|
2477
2477
|
if (m && (p = e.duplicates.indexOf(t), k = p !== -1), (e.tag !== null && e.tag !== "?" || k || e.indent !== 2 && i > 0) && (r = !1), k && e.usedDuplicates[p])
|
|
2478
2478
|
e.dump = "*ref_" + p;
|
|
2479
2479
|
else {
|
|
2480
2480
|
if (m && k && !e.usedDuplicates[p] && (e.usedDuplicates[p] = !0), c === "[object Object]")
|
|
2481
|
-
a && Object.keys(e.dump).length !== 0 ? (
|
|
2481
|
+
a && Object.keys(e.dump).length !== 0 ? (An(e, i, e.dump, r), k && (e.dump = "&ref_" + p + e.dump)) : (In(e, i, e.dump), k && (e.dump = "&ref_" + p + " " + e.dump));
|
|
2482
2482
|
else if (c === "[object Array]")
|
|
2483
|
-
a && e.dump.length !== 0 ? (e.noArrayIndent && !o && i > 0 ?
|
|
2483
|
+
a && e.dump.length !== 0 ? (e.noArrayIndent && !o && i > 0 ? ii(e, i - 1, e.dump, r) : ii(e, i, e.dump, r), k && (e.dump = "&ref_" + p + e.dump)) : (xn(e, i, e.dump), k && (e.dump = "&ref_" + p + " " + e.dump));
|
|
2484
2484
|
else if (c === "[object String]")
|
|
2485
|
-
e.tag !== "?" &&
|
|
2485
|
+
e.tag !== "?" && kn(e, e.dump, i, n, l);
|
|
2486
2486
|
else {
|
|
2487
2487
|
if (c === "[object Undefined]" || e.skipInvalid)
|
|
2488
2488
|
return !1;
|
|
@@ -2494,71 +2494,71 @@ function _e(e, i, t, a, r, n, o) {
|
|
|
2494
2494
|
}
|
|
2495
2495
|
return !0;
|
|
2496
2496
|
}
|
|
2497
|
-
function
|
|
2497
|
+
function Tn(e, i) {
|
|
2498
2498
|
var t = [], a = [], r, n;
|
|
2499
|
-
for (
|
|
2499
|
+
for (St(e, t, a), r = 0, n = a.length; r < n; r += 1)
|
|
2500
2500
|
i.duplicates.push(t[a[r]]);
|
|
2501
2501
|
i.usedDuplicates = new Array(n);
|
|
2502
2502
|
}
|
|
2503
|
-
function
|
|
2503
|
+
function St(e, i, t) {
|
|
2504
2504
|
var a, r, n;
|
|
2505
2505
|
if (e !== null && typeof e == "object")
|
|
2506
2506
|
if (r = i.indexOf(e), r !== -1)
|
|
2507
2507
|
t.indexOf(r) === -1 && t.push(r);
|
|
2508
2508
|
else if (i.push(e), Array.isArray(e))
|
|
2509
2509
|
for (r = 0, n = e.length; r < n; r += 1)
|
|
2510
|
-
|
|
2510
|
+
St(e[r], i, t);
|
|
2511
2511
|
else
|
|
2512
2512
|
for (a = Object.keys(e), r = 0, n = a.length; r < n; r += 1)
|
|
2513
|
-
|
|
2513
|
+
St(e[a[r]], i, t);
|
|
2514
2514
|
}
|
|
2515
|
-
function
|
|
2515
|
+
function $n(e, i) {
|
|
2516
2516
|
i = i || {};
|
|
2517
|
-
var t = new
|
|
2518
|
-
t.noRefs ||
|
|
2517
|
+
var t = new vn(i);
|
|
2518
|
+
t.noRefs || Tn(e, t);
|
|
2519
2519
|
var a = e;
|
|
2520
2520
|
return t.replacer && (a = t.replacer.call({ "": a }, "", a)), _e(t, 0, a, !0, !0) ? t.dump + `
|
|
2521
2521
|
` : "";
|
|
2522
2522
|
}
|
|
2523
|
-
var
|
|
2524
|
-
dump:
|
|
2523
|
+
var jn = $n, Mn = {
|
|
2524
|
+
dump: jn
|
|
2525
2525
|
};
|
|
2526
|
-
function
|
|
2526
|
+
function Nt(e, i) {
|
|
2527
2527
|
return function() {
|
|
2528
2528
|
throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + i + " instead, which is now safe by default.");
|
|
2529
2529
|
};
|
|
2530
2530
|
}
|
|
2531
|
-
var
|
|
2532
|
-
binary:
|
|
2533
|
-
float:
|
|
2534
|
-
map:
|
|
2535
|
-
null:
|
|
2536
|
-
pairs:
|
|
2537
|
-
set:
|
|
2538
|
-
timestamp:
|
|
2539
|
-
bool:
|
|
2540
|
-
int:
|
|
2541
|
-
merge:
|
|
2542
|
-
omap:
|
|
2543
|
-
seq:
|
|
2544
|
-
str:
|
|
2545
|
-
},
|
|
2546
|
-
Type:
|
|
2547
|
-
Schema:
|
|
2548
|
-
FAILSAFE_SCHEMA:
|
|
2549
|
-
JSON_SCHEMA:
|
|
2550
|
-
CORE_SCHEMA:
|
|
2551
|
-
DEFAULT_SCHEMA:
|
|
2552
|
-
load:
|
|
2553
|
-
loadAll:
|
|
2554
|
-
dump:
|
|
2555
|
-
YAMLException:
|
|
2556
|
-
types:
|
|
2557
|
-
safeLoad:
|
|
2558
|
-
safeLoadAll:
|
|
2559
|
-
safeDump:
|
|
2531
|
+
var On = le, En = wi, Nn = Si, Fn = $i, qn = ji, Ln = jt, Vn = Ji.load, Kn = Ji.loadAll, Un = Mn.dump, Bn = ue, Pn = {
|
|
2532
|
+
binary: Fi,
|
|
2533
|
+
float: Ti,
|
|
2534
|
+
map: Ci,
|
|
2535
|
+
null: xi,
|
|
2536
|
+
pairs: Li,
|
|
2537
|
+
set: Vi,
|
|
2538
|
+
timestamp: Ei,
|
|
2539
|
+
bool: Ii,
|
|
2540
|
+
int: Ai,
|
|
2541
|
+
merge: Ni,
|
|
2542
|
+
omap: qi,
|
|
2543
|
+
seq: ki,
|
|
2544
|
+
str: _i
|
|
2545
|
+
}, Rn = Nt("safeLoad", "load"), Dn = Nt("safeLoadAll", "loadAll"), zn = Nt("safeDump", "dump"), Hn = {
|
|
2546
|
+
Type: On,
|
|
2547
|
+
Schema: En,
|
|
2548
|
+
FAILSAFE_SCHEMA: Nn,
|
|
2549
|
+
JSON_SCHEMA: Fn,
|
|
2550
|
+
CORE_SCHEMA: qn,
|
|
2551
|
+
DEFAULT_SCHEMA: Ln,
|
|
2552
|
+
load: Vn,
|
|
2553
|
+
loadAll: Kn,
|
|
2554
|
+
dump: Un,
|
|
2555
|
+
YAMLException: Bn,
|
|
2556
|
+
types: Pn,
|
|
2557
|
+
safeLoad: Rn,
|
|
2558
|
+
safeLoadAll: Dn,
|
|
2559
|
+
safeDump: zn
|
|
2560
2560
|
};
|
|
2561
|
-
const
|
|
2561
|
+
const Jn = { class: "yaml-config" }, or = /* @__PURE__ */ X({
|
|
2562
2562
|
__name: "YamlCodeBlock",
|
|
2563
2563
|
props: {
|
|
2564
2564
|
/** A record to indicate the entity's configuration, used to populate the YAML code block */
|
|
@@ -2570,11 +2570,11 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
2570
2570
|
setup(e) {
|
|
2571
2571
|
const i = e, t = A(() => {
|
|
2572
2572
|
const a = Object.fromEntries(Object.entries(i.yamlRecord).filter(([, r]) => r && (Array.isArray(r) ? r.length !== 0 : !0)));
|
|
2573
|
-
return Object.keys(a).length === 0 && a.constructor === Object ? "" :
|
|
2573
|
+
return Object.keys(a).length === 0 && a.constructor === Object ? "" : Hn.dump(a).trim();
|
|
2574
2574
|
});
|
|
2575
2575
|
return (a, r) => {
|
|
2576
2576
|
const n = U("KCodeBlock");
|
|
2577
|
-
return w(), T("div",
|
|
2577
|
+
return w(), T("div", Jn, [
|
|
2578
2578
|
i.yamlRecord ? (w(), D(n, {
|
|
2579
2579
|
key: 0,
|
|
2580
2580
|
id: "yaml-codeblock",
|
|
@@ -2585,13 +2585,13 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
2585
2585
|
]);
|
|
2586
2586
|
};
|
|
2587
2587
|
}
|
|
2588
|
-
}),
|
|
2588
|
+
}), Gn = {
|
|
2589
2589
|
key: 0,
|
|
2590
2590
|
class: "config-card-display-form"
|
|
2591
|
-
},
|
|
2591
|
+
}, Wn = ["data-testid"], Yn = {
|
|
2592
2592
|
key: 0,
|
|
2593
2593
|
class: "config-card-prop-section-title"
|
|
2594
|
-
},
|
|
2594
|
+
}, Zn = /* @__PURE__ */ X({
|
|
2595
2595
|
__name: "ConfigCardDisplay",
|
|
2596
2596
|
props: {
|
|
2597
2597
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2630,21 +2630,21 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
2630
2630
|
}
|
|
2631
2631
|
},
|
|
2632
2632
|
setup(e) {
|
|
2633
|
-
const i = e, t =
|
|
2633
|
+
const i = e, t = It(), { i18n: { t: a } } = ne.useI18n(), r = (o) => !!(o.tooltip || t[`${o.key}-label-tooltip`]), n = A(() => {
|
|
2634
2634
|
if (!i.record)
|
|
2635
2635
|
return i.record;
|
|
2636
2636
|
const o = JSON.parse(JSON.stringify(i.record));
|
|
2637
2637
|
return delete o.created_at, delete o.updated_at, o;
|
|
2638
2638
|
});
|
|
2639
2639
|
return (o, c) => (w(), T(ve, null, [
|
|
2640
|
-
e.format === "structured" ? (w(), T("div",
|
|
2640
|
+
e.format === "structured" ? (w(), T("div", Gn, [
|
|
2641
2641
|
(w(!0), T(ve, null, me(e.propListTypes, (l) => (w(), T("div", {
|
|
2642
2642
|
key: `config-card-details-${l}-props`,
|
|
2643
|
-
class:
|
|
2643
|
+
class: xe(`config-card-details-${l}-props`),
|
|
2644
2644
|
"data-testid": `config-card-details-${l}-props`
|
|
2645
2645
|
}, [
|
|
2646
|
-
l !== "basic" ? (w(), T("div",
|
|
2647
|
-
(w(!0), T(ve, null, me(e.propertyCollections[l], (d) => (w(), D(
|
|
2646
|
+
l !== "basic" ? (w(), T("div", Yn, j(l === "advanced" ? f(a)("baseConfigCard.sections.advanced") : f(a)("baseConfigCard.sections.plugin")), 1)) : J("", !0),
|
|
2647
|
+
(w(!0), T(ve, null, me(e.propertyCollections[l], (d) => (w(), D(yi, {
|
|
2648
2648
|
key: d.key,
|
|
2649
2649
|
item: d
|
|
2650
2650
|
}, Ue({
|
|
@@ -2667,33 +2667,33 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
2667
2667
|
key: "0"
|
|
2668
2668
|
} : void 0
|
|
2669
2669
|
]), 1032, ["item"]))), 128))
|
|
2670
|
-
], 10,
|
|
2670
|
+
], 10, Wn))), 128))
|
|
2671
2671
|
])) : J("", !0),
|
|
2672
|
-
e.format === "json" && i.record ? (w(), D(
|
|
2672
|
+
e.format === "json" && i.record ? (w(), D(vi, {
|
|
2673
2673
|
key: 1,
|
|
2674
2674
|
config: i.config,
|
|
2675
2675
|
"fetcher-url": i.fetcherUrl,
|
|
2676
2676
|
"json-record": n.value,
|
|
2677
2677
|
"request-method": "get"
|
|
2678
2678
|
}, null, 8, ["config", "fetcher-url", "json-record"])) : J("", !0),
|
|
2679
|
-
e.format === "yaml" && i.record ? (w(), D(
|
|
2679
|
+
e.format === "yaml" && i.record ? (w(), D(or, {
|
|
2680
2680
|
key: 2,
|
|
2681
2681
|
"yaml-record": n.value
|
|
2682
2682
|
}, null, 8, ["yaml-record"])) : J("", !0)
|
|
2683
2683
|
], 64));
|
|
2684
2684
|
}
|
|
2685
|
-
}),
|
|
2685
|
+
}), Qn = /* @__PURE__ */ ye(Zn, [["__scopeId", "data-v-147a2f70"]]), Ae = "24px", ft = (e, i) => {
|
|
2686
2686
|
const t = e.__vccOpts || e;
|
|
2687
2687
|
for (const [a, r] of i)
|
|
2688
2688
|
t[a] = r;
|
|
2689
2689
|
return t;
|
|
2690
|
-
},
|
|
2690
|
+
}, Xn = (e) => (ct("data-v-2295e0fb"), e = e(), ut(), e), el = ["aria-hidden"], tl = {
|
|
2691
2691
|
key: 0,
|
|
2692
2692
|
"data-testid": "kui-icon-svg-title"
|
|
2693
|
-
},
|
|
2693
|
+
}, il = /* @__PURE__ */ Xn(() => /* @__PURE__ */ E("path", {
|
|
2694
2694
|
d: "M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",
|
|
2695
2695
|
fill: "currentColor"
|
|
2696
|
-
}, null, -1)),
|
|
2696
|
+
}, null, -1)), rl = /* @__PURE__ */ X({
|
|
2697
2697
|
__name: "AddIcon",
|
|
2698
2698
|
props: {
|
|
2699
2699
|
/** The accessibility text provided to screen readers */
|
|
@@ -2766,7 +2766,7 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
2766
2766
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2767
2767
|
class: "kui-icon add-icon",
|
|
2768
2768
|
"data-testid": "kui-icon-wrapper-add-icon",
|
|
2769
|
-
style:
|
|
2769
|
+
style: st(a.value)
|
|
2770
2770
|
}, {
|
|
2771
2771
|
default: v(() => [
|
|
2772
2772
|
(w(), T("svg", {
|
|
@@ -2779,20 +2779,20 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
2779
2779
|
width: "100%",
|
|
2780
2780
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2781
2781
|
}, [
|
|
2782
|
-
e.title ? (w(), T("title",
|
|
2783
|
-
|
|
2784
|
-
], 8,
|
|
2782
|
+
e.title ? (w(), T("title", tl, j(e.title), 1)) : J("", !0),
|
|
2783
|
+
il
|
|
2784
|
+
], 8, el))
|
|
2785
2785
|
]),
|
|
2786
2786
|
_: 1
|
|
2787
2787
|
}, 8, ["aria-hidden", "style"]));
|
|
2788
2788
|
}
|
|
2789
|
-
}),
|
|
2789
|
+
}), al = /* @__PURE__ */ ft(rl, [["__scopeId", "data-v-2295e0fb"]]), ol = (e) => (ct("data-v-40a7f387"), e = e(), ut(), e), nl = ["aria-hidden"], ll = {
|
|
2790
2790
|
key: 0,
|
|
2791
2791
|
"data-testid": "kui-icon-svg-title"
|
|
2792
|
-
},
|
|
2792
|
+
}, sl = /* @__PURE__ */ ol(() => /* @__PURE__ */ E("path", {
|
|
2793
2793
|
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",
|
|
2794
2794
|
fill: "currentColor"
|
|
2795
|
-
}, null, -1)),
|
|
2795
|
+
}, null, -1)), cl = /* @__PURE__ */ X({
|
|
2796
2796
|
__name: "BookIcon",
|
|
2797
2797
|
props: {
|
|
2798
2798
|
/** The accessibility text provided to screen readers */
|
|
@@ -2865,7 +2865,7 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
2865
2865
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2866
2866
|
class: "kui-icon book-icon",
|
|
2867
2867
|
"data-testid": "kui-icon-wrapper-book-icon",
|
|
2868
|
-
style:
|
|
2868
|
+
style: st(a.value)
|
|
2869
2869
|
}, {
|
|
2870
2870
|
default: v(() => [
|
|
2871
2871
|
(w(), T("svg", {
|
|
@@ -2878,20 +2878,20 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
2878
2878
|
width: "100%",
|
|
2879
2879
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2880
2880
|
}, [
|
|
2881
|
-
e.title ? (w(), T("title",
|
|
2882
|
-
|
|
2883
|
-
], 8,
|
|
2881
|
+
e.title ? (w(), T("title", ll, j(e.title), 1)) : J("", !0),
|
|
2882
|
+
sl
|
|
2883
|
+
], 8, nl))
|
|
2884
2884
|
]),
|
|
2885
2885
|
_: 1
|
|
2886
2886
|
}, 8, ["aria-hidden", "style"]));
|
|
2887
2887
|
}
|
|
2888
|
-
}),
|
|
2888
|
+
}), ul = /* @__PURE__ */ ft(cl, [["__scopeId", "data-v-40a7f387"]]), dl = (e) => (ct("data-v-98c34919"), e = e(), ut(), e), pl = ["aria-hidden"], fl = {
|
|
2889
2889
|
key: 0,
|
|
2890
2890
|
"data-testid": "kui-icon-svg-title"
|
|
2891
|
-
},
|
|
2891
|
+
}, gl = /* @__PURE__ */ dl(() => /* @__PURE__ */ E("path", {
|
|
2892
2892
|
d: "M12 15.4L6 9.4L7.4 8L12 12.6L16.6 8L18 9.4L12 15.4Z",
|
|
2893
2893
|
fill: "currentColor"
|
|
2894
|
-
}, null, -1)),
|
|
2894
|
+
}, null, -1)), ml = /* @__PURE__ */ X({
|
|
2895
2895
|
__name: "ChevronDownIcon",
|
|
2896
2896
|
props: {
|
|
2897
2897
|
/** The accessibility text provided to screen readers */
|
|
@@ -2964,7 +2964,7 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
2964
2964
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2965
2965
|
class: "kui-icon chevron-down-icon",
|
|
2966
2966
|
"data-testid": "kui-icon-wrapper-chevron-down-icon",
|
|
2967
|
-
style:
|
|
2967
|
+
style: st(a.value)
|
|
2968
2968
|
}, {
|
|
2969
2969
|
default: v(() => [
|
|
2970
2970
|
(w(), T("svg", {
|
|
@@ -2977,20 +2977,20 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
2977
2977
|
width: "100%",
|
|
2978
2978
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2979
2979
|
}, [
|
|
2980
|
-
e.title ? (w(), T("title",
|
|
2981
|
-
|
|
2982
|
-
], 8,
|
|
2980
|
+
e.title ? (w(), T("title", fl, j(e.title), 1)) : J("", !0),
|
|
2981
|
+
gl
|
|
2982
|
+
], 8, pl))
|
|
2983
2983
|
]),
|
|
2984
2984
|
_: 1
|
|
2985
2985
|
}, 8, ["aria-hidden", "style"]));
|
|
2986
2986
|
}
|
|
2987
|
-
}),
|
|
2987
|
+
}), yl = /* @__PURE__ */ ft(ml, [["__scopeId", "data-v-98c34919"]]), vl = (e) => (ct("data-v-19f4cbbe"), e = e(), ut(), e), hl = ["aria-hidden"], bl = {
|
|
2988
2988
|
key: 0,
|
|
2989
2989
|
"data-testid": "kui-icon-svg-title"
|
|
2990
|
-
},
|
|
2990
|
+
}, wl = /* @__PURE__ */ vl(() => /* @__PURE__ */ E("path", {
|
|
2991
2991
|
d: "M6.4 19L5 17.6L10.6 12L5 6.4L6.4 5L12 10.6L17.6 5L19 6.4L13.4 12L19 17.6L17.6 19L12 13.4L6.4 19Z",
|
|
2992
2992
|
fill: "currentColor"
|
|
2993
|
-
}, null, -1)),
|
|
2993
|
+
}, null, -1)), _l = /* @__PURE__ */ X({
|
|
2994
2994
|
__name: "CloseIcon",
|
|
2995
2995
|
props: {
|
|
2996
2996
|
/** The accessibility text provided to screen readers */
|
|
@@ -3063,7 +3063,7 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
3063
3063
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
3064
3064
|
class: "kui-icon close-icon",
|
|
3065
3065
|
"data-testid": "kui-icon-wrapper-close-icon",
|
|
3066
|
-
style:
|
|
3066
|
+
style: st(a.value)
|
|
3067
3067
|
}, {
|
|
3068
3068
|
default: v(() => [
|
|
3069
3069
|
(w(), T("svg", {
|
|
@@ -3076,17 +3076,17 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
3076
3076
|
width: "100%",
|
|
3077
3077
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3078
3078
|
}, [
|
|
3079
|
-
e.title ? (w(), T("title",
|
|
3080
|
-
|
|
3081
|
-
], 8,
|
|
3079
|
+
e.title ? (w(), T("title", bl, j(e.title), 1)) : J("", !0),
|
|
3080
|
+
wl
|
|
3081
|
+
], 8, hl))
|
|
3082
3082
|
]),
|
|
3083
3083
|
_: 1
|
|
3084
3084
|
}, 8, ["aria-hidden", "style"]));
|
|
3085
3085
|
}
|
|
3086
|
-
}),
|
|
3086
|
+
}), kl = /* @__PURE__ */ ft(_l, [["__scopeId", "data-v-19f4cbbe"]]), Cl = {
|
|
3087
3087
|
class: "config-card-title",
|
|
3088
3088
|
"data-testid": "config-card-title"
|
|
3089
|
-
},
|
|
3089
|
+
}, Sl = { class: "config-card-actions" }, xl = ["href"], Il = { class: "config-card-details-section" }, Al = /* @__PURE__ */ X({
|
|
3090
3090
|
__name: "EntityBaseConfigCard",
|
|
3091
3091
|
props: {
|
|
3092
3092
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3119,7 +3119,7 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
3119
3119
|
* Value should NOT contain config.apiBaseUrl, as we auto include this. Typically this will just an entry from
|
|
3120
3120
|
* the endpoints file.
|
|
3121
3121
|
*
|
|
3122
|
-
* ex. `/
|
|
3122
|
+
* ex. `/v2/control-planes/{controlPlaneId}/core-entities/snis/{id}`
|
|
3123
3123
|
*/
|
|
3124
3124
|
fetchUrl: {
|
|
3125
3125
|
type: String,
|
|
@@ -3217,19 +3217,19 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
3217
3217
|
// the last property displayed
|
|
3218
3218
|
section: se.Basic
|
|
3219
3219
|
}
|
|
3220
|
-
}, h = F(!1),
|
|
3220
|
+
}, h = F(!1), I = F(!1), x = F(""), S = F({}), P = A(() => {
|
|
3221
3221
|
var b, V, B;
|
|
3222
3222
|
if (!S.value)
|
|
3223
3223
|
return [];
|
|
3224
|
-
const
|
|
3224
|
+
const $ = [], z = Object.keys(S.value).length;
|
|
3225
3225
|
for (const L in S.value) {
|
|
3226
3226
|
const N = (V = (b = r.configSchema) == null ? void 0 : b[L]) == null ? void 0 : V.order, H = (B = k[L]) == null ? void 0 : B.order;
|
|
3227
3227
|
let Z = z;
|
|
3228
|
-
(H || H === 0) && (Z = H === -1 ? z + 1 : H), N && (Z = N === -1 ? z + 1 : N),
|
|
3228
|
+
(H || H === 0) && (Z = H === -1 ? z + 1 : H), N && (Z = N === -1 ? z + 1 : N), $.push([L, Z]);
|
|
3229
3229
|
}
|
|
3230
|
-
return
|
|
3230
|
+
return $.sort(function(L, N) {
|
|
3231
3231
|
return L[1] - N[1];
|
|
3232
|
-
}),
|
|
3232
|
+
}), $.map((L) => {
|
|
3233
3233
|
var N, H;
|
|
3234
3234
|
const Z = L[0], de = (N = S.value) == null ? void 0 : N[Z], pe = ((H = r.configSchema) == null ? void 0 : H[Z]) || {}, ae = k[Z];
|
|
3235
3235
|
return {
|
|
@@ -3246,11 +3246,11 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
3246
3246
|
var b, V;
|
|
3247
3247
|
if (!S.value || !r.pluginConfigKey)
|
|
3248
3248
|
return [];
|
|
3249
|
-
const B = S.value[r.pluginConfigKey] || {},
|
|
3249
|
+
const B = S.value[r.pluginConfigKey] || {}, $ = Object.keys(B).length, z = [];
|
|
3250
3250
|
for (const L in B) {
|
|
3251
3251
|
const N = (V = (b = r.pluginConfigSchema) == null ? void 0 : b[L]) == null ? void 0 : V.order, H = B[L];
|
|
3252
|
-
let Z = H != null && H !== "" ?
|
|
3253
|
-
N && (Z = N === -1 ?
|
|
3252
|
+
let Z = H != null && H !== "" ? $ - 1 : $;
|
|
3253
|
+
N && (Z = N === -1 ? $ + 1 : N), z.push([L, Z]);
|
|
3254
3254
|
}
|
|
3255
3255
|
return z.sort(function(L, N) {
|
|
3256
3256
|
return L[1] - N[1];
|
|
@@ -3268,11 +3268,11 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
3268
3268
|
};
|
|
3269
3269
|
}).filter((L) => !L.hidden);
|
|
3270
3270
|
}), ee = A(() => {
|
|
3271
|
-
var b, V, B,
|
|
3271
|
+
var b, V, B, $;
|
|
3272
3272
|
return {
|
|
3273
3273
|
basic: (b = P.value) == null ? void 0 : b.filter((z) => z.section === se.Basic),
|
|
3274
3274
|
advanced: (V = P.value) == null ? void 0 : V.filter((z) => z.section === se.Advanced),
|
|
3275
|
-
plugin: (
|
|
3275
|
+
plugin: ($ = q.value) == null ? void 0 : $.concat((B = P.value) == null ? void 0 : B.filter((z) => z.section === se.Plugin))
|
|
3276
3276
|
};
|
|
3277
3277
|
}), s = A(() => {
|
|
3278
3278
|
const b = [];
|
|
@@ -3284,8 +3284,8 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
3284
3284
|
});
|
|
3285
3285
|
return we(h, (b) => {
|
|
3286
3286
|
a("loading", b);
|
|
3287
|
-
}, { immediate: !0 }),
|
|
3288
|
-
|
|
3287
|
+
}, { immediate: !0 }), xt(async () => {
|
|
3288
|
+
I.value = !1, h.value = !0;
|
|
3289
3289
|
try {
|
|
3290
3290
|
const { data: b } = await l.get(y.value);
|
|
3291
3291
|
if (r.dataKey)
|
|
@@ -3300,29 +3300,29 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
3300
3300
|
}), a("fetch:success", b);
|
|
3301
3301
|
} catch (b) {
|
|
3302
3302
|
const V = o(b);
|
|
3303
|
-
|
|
3303
|
+
x.value = V.startsWith("code") ? n("baseConfigCard.errors.load") : V, I.value = !0, a("fetch:error", b);
|
|
3304
3304
|
} finally {
|
|
3305
3305
|
h.value = !1;
|
|
3306
3306
|
}
|
|
3307
3307
|
}), (b, V) => {
|
|
3308
|
-
const B = U("KLabel"),
|
|
3308
|
+
const B = U("KLabel"), $ = U("KSelect"), z = U("KButton"), L = U("KSkeleton"), N = U("KEmptyState"), H = U("KCard");
|
|
3309
3309
|
return w(), D(H, {
|
|
3310
3310
|
class: "kong-ui-entity-base-config-card",
|
|
3311
3311
|
"title-tag": e.titleTag
|
|
3312
3312
|
}, Ue({
|
|
3313
3313
|
actions: v(() => [
|
|
3314
|
-
E("div",
|
|
3314
|
+
E("div", Sl, [
|
|
3315
3315
|
te(b.$slots, "actions", {}, void 0, !0),
|
|
3316
3316
|
C(B, {
|
|
3317
3317
|
class: "config-format-select-label",
|
|
3318
3318
|
"data-testid": "config-format-select-label"
|
|
3319
3319
|
}, {
|
|
3320
3320
|
default: v(() => [
|
|
3321
|
-
G(
|
|
3321
|
+
G(j(e.label), 1)
|
|
3322
3322
|
]),
|
|
3323
3323
|
_: 1
|
|
3324
3324
|
}),
|
|
3325
|
-
C(
|
|
3325
|
+
C($, {
|
|
3326
3326
|
"data-testid": "select-config-format",
|
|
3327
3327
|
items: d,
|
|
3328
3328
|
onChange: p
|
|
@@ -3339,8 +3339,8 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
3339
3339
|
rel: "noopener",
|
|
3340
3340
|
target: "_blank"
|
|
3341
3341
|
}, [
|
|
3342
|
-
C(f(
|
|
3343
|
-
], 8,
|
|
3342
|
+
C(f(ul), { size: f(ua) }, null, 8, ["size"])
|
|
3343
|
+
], 8, xl)
|
|
3344
3344
|
]),
|
|
3345
3345
|
_: 1
|
|
3346
3346
|
})) : J("", !0)
|
|
@@ -3352,18 +3352,18 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
3352
3352
|
"data-testid": "config-card-loader",
|
|
3353
3353
|
"table-columns": 2,
|
|
3354
3354
|
type: "table"
|
|
3355
|
-
})) :
|
|
3355
|
+
})) : I.value ? (w(), D(N, {
|
|
3356
3356
|
key: 1,
|
|
3357
3357
|
"data-testid": "config-card-fetch-error",
|
|
3358
3358
|
"icon-variant": "error"
|
|
3359
3359
|
}, {
|
|
3360
3360
|
default: v(() => [
|
|
3361
|
-
E("h3", null,
|
|
3361
|
+
E("h3", null, j(x.value), 1)
|
|
3362
3362
|
]),
|
|
3363
3363
|
_: 1
|
|
3364
3364
|
})) : J("", !0),
|
|
3365
|
-
E("div",
|
|
3366
|
-
C(
|
|
3365
|
+
E("div", Il, [
|
|
3366
|
+
C(Qn, {
|
|
3367
3367
|
config: e.config,
|
|
3368
3368
|
"fetcher-url": y.value,
|
|
3369
3369
|
format: m.value,
|
|
@@ -3388,9 +3388,9 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
3388
3388
|
e.hideTitle ? void 0 : {
|
|
3389
3389
|
name: "title",
|
|
3390
3390
|
fn: v(() => [
|
|
3391
|
-
E("span",
|
|
3391
|
+
E("span", Cl, [
|
|
3392
3392
|
te(b.$slots, "title", {}, () => [
|
|
3393
|
-
G(
|
|
3393
|
+
G(j(f(n)("baseConfigCard.title")), 1)
|
|
3394
3394
|
], !0)
|
|
3395
3395
|
])
|
|
3396
3396
|
]),
|
|
@@ -3399,10 +3399,10 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
3399
3399
|
]), 1032, ["title-tag"]);
|
|
3400
3400
|
};
|
|
3401
3401
|
}
|
|
3402
|
-
}),
|
|
3402
|
+
}), Tl = /* @__PURE__ */ ye(Al, [["__scopeId", "data-v-3c3b1eb5"]]), $l = {
|
|
3403
3403
|
class: "form-actions",
|
|
3404
3404
|
"data-testid": "form-actions"
|
|
3405
|
-
},
|
|
3405
|
+
}, jl = /* @__PURE__ */ X({
|
|
3406
3406
|
__name: "EntityBaseForm",
|
|
3407
3407
|
props: {
|
|
3408
3408
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3423,7 +3423,7 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
3423
3423
|
* the endpoints file.
|
|
3424
3424
|
* Required if `editId` is specified.
|
|
3425
3425
|
*
|
|
3426
|
-
* ex. `/
|
|
3426
|
+
* ex. `/v2/control-planes/{controlPlaneId}/core-entities/snis/{id}`
|
|
3427
3427
|
*/
|
|
3428
3428
|
fetchUrl: {
|
|
3429
3429
|
type: String,
|
|
@@ -3457,13 +3457,13 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
3457
3457
|
emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel"],
|
|
3458
3458
|
setup(e, { emit: i }) {
|
|
3459
3459
|
var t;
|
|
3460
|
-
const a = i, r = e, n =
|
|
3460
|
+
const a = i, r = e, n = At(), { i18n: { t: o } } = ne.useI18n(), { getMessageFromError: c } = ne.useErrors(), { axiosInstance: l } = ne.useAxios({
|
|
3461
3461
|
headers: (t = r.config) == null ? void 0 : t.requestHeaders
|
|
3462
|
-
}), d = F(!1), m = F(!1), p = F(""), k = A(() => r.canSubmit === !1 || r.isReadonly), h = F(!1),
|
|
3462
|
+
}), d = F(!1), m = F(!1), p = F(""), k = A(() => r.canSubmit === !1 || r.isReadonly), h = F(!1), I = A(() => {
|
|
3463
3463
|
var s, y;
|
|
3464
3464
|
let b = `${r.config.apiBaseUrl}${r.fetchUrl}`;
|
|
3465
3465
|
return r.config.app === "konnect" ? b = b.replace(/{controlPlaneId}/gi, ((s = r.config) == null ? void 0 : s.controlPlaneId) || "") : r.config.app === "kongManager" && (b = b.replace(/\/{workspace}/gi, (y = r.config) != null && y.workspace ? `/${r.config.workspace}` : "")), r.editId ? (b = b.replace(/{id}/gi, r.editId), b) : (b = b.replace(/\/{id}/gi, ""), b);
|
|
3466
|
-
}),
|
|
3466
|
+
}), x = () => {
|
|
3467
3467
|
h.value = !h.value;
|
|
3468
3468
|
}, S = () => {
|
|
3469
3469
|
r.config.cancelRoute ? n.push(r.config.cancelRoute) : P();
|
|
@@ -3483,11 +3483,11 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
3483
3483
|
]);
|
|
3484
3484
|
return we(() => d.value, (s) => {
|
|
3485
3485
|
a("loading", s);
|
|
3486
|
-
}, { immediate: !0 }),
|
|
3486
|
+
}, { immediate: !0 }), xt(async () => {
|
|
3487
3487
|
if (r.editId)
|
|
3488
3488
|
try {
|
|
3489
3489
|
m.value = !1, d.value = !0;
|
|
3490
|
-
const { data: s } = await l.get(
|
|
3490
|
+
const { data: s } = await l.get(I.value);
|
|
3491
3491
|
a("fetch:success", s);
|
|
3492
3492
|
} catch (s) {
|
|
3493
3493
|
const y = c(s);
|
|
@@ -3496,7 +3496,7 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
3496
3496
|
d.value = !1;
|
|
3497
3497
|
}
|
|
3498
3498
|
}), (s, y) => {
|
|
3499
|
-
const b = U("KSkeleton"), V = U("KEmptyState"), B = U("KAlert"),
|
|
3499
|
+
const b = U("KSkeleton"), V = U("KEmptyState"), B = U("KAlert"), $ = U("KButton"), z = U("KTabs"), L = U("KSlideout"), N = U("KCard");
|
|
3500
3500
|
return w(), D(N, { class: "kong-ui-entity-base-form" }, {
|
|
3501
3501
|
default: v(() => [
|
|
3502
3502
|
d.value ? (w(), D(b, {
|
|
@@ -3510,7 +3510,7 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
3510
3510
|
onClickAction: S
|
|
3511
3511
|
}, {
|
|
3512
3512
|
default: v(() => [
|
|
3513
|
-
E("h3", null,
|
|
3513
|
+
E("h3", null, j(p.value), 1)
|
|
3514
3514
|
]),
|
|
3515
3515
|
_: 1
|
|
3516
3516
|
}, 8, ["action-button-text"])) : (w(), T("form", {
|
|
@@ -3526,37 +3526,37 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
3526
3526
|
"data-testid": "form-error",
|
|
3527
3527
|
message: e.errorMessage
|
|
3528
3528
|
}, null, 8, ["message"])) : J("", !0),
|
|
3529
|
-
E("div",
|
|
3529
|
+
E("div", $l, [
|
|
3530
3530
|
te(s.$slots, "form-actions", {}, () => [
|
|
3531
|
-
C(
|
|
3531
|
+
C($, {
|
|
3532
3532
|
appearance: "tertiary",
|
|
3533
3533
|
"data-testid": "form-view-configuration",
|
|
3534
|
-
onClick: y[0] || (y[0] = (H) =>
|
|
3534
|
+
onClick: y[0] || (y[0] = (H) => x())
|
|
3535
3535
|
}, {
|
|
3536
3536
|
default: v(() => [
|
|
3537
|
-
G(
|
|
3537
|
+
G(j(f(o)("baseForm.actions.viewConfiguration")), 1)
|
|
3538
3538
|
]),
|
|
3539
3539
|
_: 1
|
|
3540
3540
|
}),
|
|
3541
|
-
C(
|
|
3541
|
+
C($, {
|
|
3542
3542
|
appearance: "secondary",
|
|
3543
3543
|
"data-testid": "form-cancel",
|
|
3544
3544
|
disabled: e.isReadonly,
|
|
3545
3545
|
type: "reset"
|
|
3546
3546
|
}, {
|
|
3547
3547
|
default: v(() => [
|
|
3548
|
-
G(
|
|
3548
|
+
G(j(f(o)("baseForm.actions.cancel")), 1)
|
|
3549
3549
|
]),
|
|
3550
3550
|
_: 1
|
|
3551
3551
|
}, 8, ["disabled"]),
|
|
3552
|
-
C(
|
|
3552
|
+
C($, {
|
|
3553
3553
|
appearance: "primary",
|
|
3554
3554
|
"data-testid": "form-submit",
|
|
3555
3555
|
disabled: k.value,
|
|
3556
3556
|
type: "submit"
|
|
3557
3557
|
}, {
|
|
3558
3558
|
default: v(() => [
|
|
3559
|
-
G(
|
|
3559
|
+
G(j(f(o)("baseForm.actions.save")), 1)
|
|
3560
3560
|
]),
|
|
3561
3561
|
_: 1
|
|
3562
3562
|
}, 8, ["disabled"])
|
|
@@ -3570,24 +3570,24 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
3570
3570
|
"offset-top": 60,
|
|
3571
3571
|
title: f(o)("baseForm.configuration.title"),
|
|
3572
3572
|
visible: h.value,
|
|
3573
|
-
onClose: y[1] || (y[1] = (H) =>
|
|
3573
|
+
onClose: y[1] || (y[1] = (H) => x())
|
|
3574
3574
|
}, {
|
|
3575
3575
|
default: v(() => [
|
|
3576
|
-
E("div", null,
|
|
3576
|
+
E("div", null, j(f(o)("baseForm.configuration.message")), 1),
|
|
3577
3577
|
C(z, {
|
|
3578
3578
|
"data-testid": "form-view-configuration-slideout-tabs",
|
|
3579
3579
|
tabs: ee.value
|
|
3580
3580
|
}, {
|
|
3581
3581
|
json: v(() => [
|
|
3582
|
-
C(
|
|
3582
|
+
C(vi, {
|
|
3583
3583
|
config: e.config,
|
|
3584
|
-
"fetcher-url":
|
|
3584
|
+
"fetcher-url": I.value,
|
|
3585
3585
|
"json-record": r.formFields,
|
|
3586
3586
|
"request-method": r.editId ? "put" : "post"
|
|
3587
3587
|
}, null, 8, ["config", "fetcher-url", "json-record", "request-method"])
|
|
3588
3588
|
]),
|
|
3589
3589
|
yaml: v(() => [
|
|
3590
|
-
C(
|
|
3590
|
+
C(or, {
|
|
3591
3591
|
"yaml-record": r.formFields
|
|
3592
3592
|
}, null, 8, ["yaml-record"])
|
|
3593
3593
|
]),
|
|
@@ -3601,10 +3601,10 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
3601
3601
|
});
|
|
3602
3602
|
};
|
|
3603
3603
|
}
|
|
3604
|
-
}),
|
|
3604
|
+
}), Ml = /* @__PURE__ */ ye(jl, [["__scopeId", "data-v-4c62c7d5"]]), Ol = {
|
|
3605
3605
|
key: 0,
|
|
3606
3606
|
"data-testid": "first-col"
|
|
3607
|
-
},
|
|
3607
|
+
}, El = /* @__PURE__ */ X({
|
|
3608
3608
|
__name: "EntityBaseTableCell",
|
|
3609
3609
|
props: {
|
|
3610
3610
|
keyName: {
|
|
@@ -3618,67 +3618,67 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
3618
3618
|
},
|
|
3619
3619
|
setup(e) {
|
|
3620
3620
|
const i = e, t = A(() => {
|
|
3621
|
-
var
|
|
3622
|
-
return ((
|
|
3621
|
+
var x;
|
|
3622
|
+
return ((x = i.rowEl) == null ? void 0 : x.querySelector(`[data-testid="${i.keyName}"]`)) || null;
|
|
3623
3623
|
}), a = A(() => {
|
|
3624
|
-
var
|
|
3625
|
-
return ((
|
|
3624
|
+
var x;
|
|
3625
|
+
return ((x = t.value) == null ? void 0 : x.querySelector('[data-testid="first-col"]')) || null;
|
|
3626
3626
|
}), r = A(() => {
|
|
3627
|
-
var
|
|
3628
|
-
const P = (
|
|
3627
|
+
var x, S;
|
|
3628
|
+
const P = (x = i.rowEl) == null ? void 0 : x.querySelectorAll("td");
|
|
3629
3629
|
return P ? ((S = P[0]) == null ? void 0 : S.getAttribute("data-testid")) === i.keyName : !1;
|
|
3630
3630
|
});
|
|
3631
3631
|
let n;
|
|
3632
3632
|
const o = () => {
|
|
3633
3633
|
n && (n.disconnect(), n = void 0);
|
|
3634
3634
|
}, c = () => {
|
|
3635
|
-
var
|
|
3636
|
-
d.value = ((
|
|
3635
|
+
var x, S, P;
|
|
3636
|
+
d.value = ((x = a.value) == null ? void 0 : x.getBoundingClientRect().width) || 0, m.value = ((S = t.value) == null ? void 0 : S.clientWidth) || 0, p.value = ((P = l.value) == null ? void 0 : P.innerText) || "";
|
|
3637
3637
|
}, l = F({}), d = F(0), m = F(0), p = F(""), k = A(() => [a.value, t.value]), h = we(
|
|
3638
3638
|
k,
|
|
3639
|
-
(
|
|
3639
|
+
(x) => {
|
|
3640
3640
|
if (r.value && (o(), "ResizeObserver" in window && window)) {
|
|
3641
3641
|
n = new ResizeObserver((S) => {
|
|
3642
3642
|
window.requestAnimationFrame(() => {
|
|
3643
3643
|
!Array.isArray(S) || !S.length || c();
|
|
3644
3644
|
});
|
|
3645
3645
|
});
|
|
3646
|
-
for (const S of
|
|
3646
|
+
for (const S of x)
|
|
3647
3647
|
S && n.observe(S);
|
|
3648
3648
|
}
|
|
3649
3649
|
},
|
|
3650
3650
|
{ immediate: !0, flush: "post", deep: !0 }
|
|
3651
|
-
),
|
|
3652
|
-
return
|
|
3651
|
+
), I = A(() => r.value ? d.value > m.value : !1);
|
|
3652
|
+
return li(() => {
|
|
3653
3653
|
c();
|
|
3654
|
-
}),
|
|
3654
|
+
}), dr(() => {
|
|
3655
3655
|
h();
|
|
3656
|
-
}), (
|
|
3656
|
+
}), (x, S) => {
|
|
3657
3657
|
const P = U("KTooltip");
|
|
3658
3658
|
return w(), T("span", {
|
|
3659
3659
|
ref_key: "contentRef",
|
|
3660
3660
|
ref: l,
|
|
3661
3661
|
class: "content-wrapper"
|
|
3662
3662
|
}, [
|
|
3663
|
-
r.value ? (w(), T("span",
|
|
3663
|
+
r.value ? (w(), T("span", Ol, [
|
|
3664
3664
|
C(P, {
|
|
3665
3665
|
"max-width": "300",
|
|
3666
3666
|
placement: "bottomStart",
|
|
3667
|
-
text:
|
|
3667
|
+
text: I.value ? p.value : ""
|
|
3668
3668
|
}, {
|
|
3669
3669
|
default: v(() => [
|
|
3670
|
-
te(
|
|
3670
|
+
te(x.$slots, "default", {}, void 0, !0)
|
|
3671
3671
|
]),
|
|
3672
3672
|
_: 3
|
|
3673
3673
|
}, 8, ["text"])
|
|
3674
|
-
])) : te(
|
|
3674
|
+
])) : te(x.$slots, "default", { key: 1 }, void 0, !0)
|
|
3675
3675
|
], 512);
|
|
3676
3676
|
};
|
|
3677
3677
|
}
|
|
3678
|
-
}),
|
|
3678
|
+
}), Nl = /* @__PURE__ */ ye(El, [["__scopeId", "data-v-c4379fd4"]]), Fl = { class: "toolbar-container" }, ql = {
|
|
3679
3679
|
key: 0,
|
|
3680
3680
|
class: "toolbar-button-container"
|
|
3681
|
-
},
|
|
3681
|
+
}, Ll = ["data-testid"], Vl = /* @__PURE__ */ X({
|
|
3682
3682
|
__name: "EntityBaseTable",
|
|
3683
3683
|
props: {
|
|
3684
3684
|
// table header configuration
|
|
@@ -3834,14 +3834,14 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
3834
3834
|
textOverflow: "ellipsis"
|
|
3835
3835
|
}), b;
|
|
3836
3836
|
}, h = () => {
|
|
3837
|
-
a("empty-state-cta-clicked"),
|
|
3838
|
-
},
|
|
3837
|
+
a("empty-state-cta-clicked"), I();
|
|
3838
|
+
}, I = () => {
|
|
3839
3839
|
a("clear-search-input");
|
|
3840
|
-
},
|
|
3840
|
+
}, x = A(() => t.disableRowClick ? void 0 : (y, b) => {
|
|
3841
3841
|
a("click:row", b);
|
|
3842
3842
|
}), S = (y) => {
|
|
3843
3843
|
a("sort", y);
|
|
3844
|
-
}, { setTablePreferences: P, getTablePreferences: q } =
|
|
3844
|
+
}, { setTablePreferences: P, getTablePreferences: q } = Tr(), ee = A(() => {
|
|
3845
3845
|
const y = q(t.preferencesStorageKey);
|
|
3846
3846
|
return {
|
|
3847
3847
|
...t.initialFetcherParams,
|
|
@@ -3851,7 +3851,7 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
3851
3851
|
t.preferencesStorageKey && P(t.preferencesStorageKey, y);
|
|
3852
3852
|
};
|
|
3853
3853
|
return (y, b) => {
|
|
3854
|
-
const V = U("KIcon"), B = U("KButton"),
|
|
3854
|
+
const V = U("KIcon"), B = U("KButton"), $ = U("KDropdown"), z = U("KTable"), L = U("KCard");
|
|
3855
3855
|
return w(), D(L, {
|
|
3856
3856
|
class: "kong-ui-entity-base-table",
|
|
3857
3857
|
title: e.title,
|
|
@@ -3884,14 +3884,14 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
3884
3884
|
"row-attrs": d,
|
|
3885
3885
|
"search-input": e.query,
|
|
3886
3886
|
onKtableEmptyStateCtaClicked: h,
|
|
3887
|
-
"onRow:click":
|
|
3887
|
+
"onRow:click": x.value,
|
|
3888
3888
|
onSort: b[0] || (b[0] = (N) => S(N)),
|
|
3889
3889
|
"onUpdate:tablePreferences": s
|
|
3890
3890
|
}, Ue({
|
|
3891
3891
|
toolbar: v(({ state: N }) => [
|
|
3892
|
-
ke(E("div",
|
|
3892
|
+
ke(E("div", Fl, [
|
|
3893
3893
|
te(y.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3894
|
-
y.$slots["toolbar-button"] ? (w(), T("div",
|
|
3894
|
+
y.$slots["toolbar-button"] ? (w(), T("div", ql, [
|
|
3895
3895
|
te(y.$slots, "toolbar-button", {}, void 0, !0)
|
|
3896
3896
|
])) : J("", !0)
|
|
3897
3897
|
], 512), [
|
|
@@ -3903,7 +3903,7 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
3903
3903
|
class: "actions-container",
|
|
3904
3904
|
"data-testid": N.name
|
|
3905
3905
|
}, [
|
|
3906
|
-
C(
|
|
3906
|
+
C($, {
|
|
3907
3907
|
"kpop-attributes": { placement: "bottomEnd" },
|
|
3908
3908
|
width: e.dropdownMenuWidth
|
|
3909
3909
|
}, {
|
|
@@ -3922,7 +3922,7 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
3922
3922
|
}, {
|
|
3923
3923
|
icon: v(() => [
|
|
3924
3924
|
C(V, {
|
|
3925
|
-
color: f(
|
|
3925
|
+
color: f(la),
|
|
3926
3926
|
icon: "more",
|
|
3927
3927
|
size: "16"
|
|
3928
3928
|
}, null, 8, ["color"])
|
|
@@ -3932,14 +3932,14 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
3932
3932
|
]),
|
|
3933
3933
|
_: 2
|
|
3934
3934
|
}, 1032, ["width"])
|
|
3935
|
-
], 8,
|
|
3935
|
+
], 8, Ll)
|
|
3936
3936
|
]),
|
|
3937
3937
|
_: 2
|
|
3938
3938
|
}, [
|
|
3939
3939
|
me(e.tableHeaders, (N, H) => ({
|
|
3940
3940
|
name: H,
|
|
3941
3941
|
fn: v(({ row: Z, rowKey: de, rowValue: pe }) => [
|
|
3942
|
-
C(
|
|
3942
|
+
C(Nl, {
|
|
3943
3943
|
"key-name": String(H),
|
|
3944
3944
|
"row-el": p(Z)
|
|
3945
3945
|
}, {
|
|
@@ -3949,7 +3949,7 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
3949
3949
|
rowKey: de,
|
|
3950
3950
|
rowValue: pe
|
|
3951
3951
|
}, () => [
|
|
3952
|
-
G(
|
|
3952
|
+
G(j(pe), 1)
|
|
3953
3953
|
], !0)
|
|
3954
3954
|
]),
|
|
3955
3955
|
_: 2
|
|
@@ -3959,7 +3959,7 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
3959
3959
|
e.query ? void 0 : {
|
|
3960
3960
|
name: "empty-state-action-icon",
|
|
3961
3961
|
fn: v(() => [
|
|
3962
|
-
C(f(
|
|
3962
|
+
C(f(al))
|
|
3963
3963
|
]),
|
|
3964
3964
|
key: "0"
|
|
3965
3965
|
}
|
|
@@ -3969,13 +3969,13 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
3969
3969
|
}, 8, ["title", "title-tag"]);
|
|
3970
3970
|
};
|
|
3971
3971
|
}
|
|
3972
|
-
}),
|
|
3972
|
+
}), Kl = /* @__PURE__ */ ye(Vl, [["__scopeId", "data-v-99908c24"]]), Ul = {
|
|
3973
3973
|
key: 0,
|
|
3974
3974
|
class: "kong-ui-entity-delete-error"
|
|
3975
|
-
},
|
|
3975
|
+
}, Bl = {
|
|
3976
3976
|
key: 1,
|
|
3977
3977
|
class: "description"
|
|
3978
|
-
},
|
|
3978
|
+
}, Pl = /* @__PURE__ */ X({
|
|
3979
3979
|
__name: "EntityDeleteModal",
|
|
3980
3980
|
props: {
|
|
3981
3981
|
visible: {
|
|
@@ -4033,10 +4033,10 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
4033
4033
|
onProceed: c
|
|
4034
4034
|
}, {
|
|
4035
4035
|
default: v(() => [
|
|
4036
|
-
e.error ? (w(), T("div",
|
|
4036
|
+
e.error ? (w(), T("div", Ul, [
|
|
4037
4037
|
C(m, { appearance: "danger" }, {
|
|
4038
4038
|
default: v(() => [
|
|
4039
|
-
G(
|
|
4039
|
+
G(j(e.error), 1)
|
|
4040
4040
|
]),
|
|
4041
4041
|
_: 1
|
|
4042
4042
|
})
|
|
@@ -4047,21 +4047,21 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
4047
4047
|
tag: "p"
|
|
4048
4048
|
}, Ue({
|
|
4049
4049
|
entityType: v(() => [
|
|
4050
|
-
G(
|
|
4050
|
+
G(j(a.entityType), 1)
|
|
4051
4051
|
]),
|
|
4052
4052
|
_: 2
|
|
4053
4053
|
}, [
|
|
4054
4054
|
a.entityName ? {
|
|
4055
4055
|
name: "entityName",
|
|
4056
4056
|
fn: v(() => [
|
|
4057
|
-
E("strong", null,
|
|
4057
|
+
E("strong", null, j(a.entityName), 1)
|
|
4058
4058
|
]),
|
|
4059
4059
|
key: "0"
|
|
4060
4060
|
} : void 0
|
|
4061
4061
|
]), 1032, ["keypath"]),
|
|
4062
|
-
a.description || l.$slots.description ? (w(), T("div",
|
|
4062
|
+
a.description || l.$slots.description ? (w(), T("div", Bl, [
|
|
4063
4063
|
te(l.$slots, "description", {}, () => [
|
|
4064
|
-
E("p", null,
|
|
4064
|
+
E("p", null, j(a.description), 1)
|
|
4065
4065
|
], !0)
|
|
4066
4066
|
])) : J("", !0)
|
|
4067
4067
|
]),
|
|
@@ -4069,13 +4069,13 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
4069
4069
|
}, 8, ["action-button-disabled", "confirmation-text", "title", "visible"]);
|
|
4070
4070
|
};
|
|
4071
4071
|
}
|
|
4072
|
-
}),
|
|
4072
|
+
}), Rl = /* @__PURE__ */ ye(Pl, [["__scopeId", "data-v-4361d622"]]), Dl = {
|
|
4073
4073
|
fill: "none",
|
|
4074
4074
|
height: "20",
|
|
4075
4075
|
viewBox: "0 0 20 20",
|
|
4076
4076
|
width: "20",
|
|
4077
4077
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4078
|
-
},
|
|
4078
|
+
}, zl = {
|
|
4079
4079
|
id: "mask0_180_20349",
|
|
4080
4080
|
height: "20",
|
|
4081
4081
|
maskUnits: "userSpaceOnUse",
|
|
@@ -4083,35 +4083,35 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
4083
4083
|
width: "20",
|
|
4084
4084
|
x: "0",
|
|
4085
4085
|
y: "0"
|
|
4086
|
-
},
|
|
4086
|
+
}, Hl = ["fill"], Jl = { mask: "url(#mask0_180_20349)" }, Gl = ["fill"], ai = /* @__PURE__ */ X({
|
|
4087
4087
|
__name: "IconFilter",
|
|
4088
4088
|
props: {
|
|
4089
4089
|
color: {
|
|
4090
4090
|
type: String,
|
|
4091
|
-
default: `var(--kong-ui-entity-filter-color, ${
|
|
4091
|
+
default: `var(--kong-ui-entity-filter-color, ${oa})`
|
|
4092
4092
|
}
|
|
4093
4093
|
},
|
|
4094
4094
|
setup(e) {
|
|
4095
|
-
return (i, t) => (w(), T("svg",
|
|
4096
|
-
E("mask",
|
|
4095
|
+
return (i, t) => (w(), T("svg", Dl, [
|
|
4096
|
+
E("mask", zl, [
|
|
4097
4097
|
E("rect", {
|
|
4098
4098
|
fill: e.color,
|
|
4099
4099
|
height: "20",
|
|
4100
4100
|
width: "20"
|
|
4101
|
-
}, null, 8,
|
|
4101
|
+
}, null, 8, Hl)
|
|
4102
4102
|
]),
|
|
4103
|
-
E("g",
|
|
4103
|
+
E("g", Jl, [
|
|
4104
4104
|
E("path", {
|
|
4105
4105
|
d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
|
|
4106
4106
|
fill: e.color
|
|
4107
|
-
}, null, 8,
|
|
4107
|
+
}, null, 8, Gl)
|
|
4108
4108
|
])
|
|
4109
4109
|
]));
|
|
4110
4110
|
}
|
|
4111
|
-
}),
|
|
4111
|
+
}), Wl = {
|
|
4112
4112
|
key: 1,
|
|
4113
4113
|
class: "kong-ui-entity-filter"
|
|
4114
|
-
},
|
|
4114
|
+
}, Yl = { class: "kong-ui-entity-filter-menu" }, Zl = ["data-testid"], Ql = ["onClick", "onKeydown"], Xl = { class: "menu-item-indicator" }, es = { class: "menu-item-body" }, ts = ["for"], is = { class: "menu-item-buttons" }, rs = { class: "filter-clear-button-container" }, as = /* @__PURE__ */ X({
|
|
4115
4115
|
__name: "EntityFilter",
|
|
4116
4116
|
props: {
|
|
4117
4117
|
// filter config, either exact match or fuzzy match
|
|
@@ -4157,7 +4157,7 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
4157
4157
|
r("update:modelValue", s);
|
|
4158
4158
|
}, h = () => {
|
|
4159
4159
|
k("");
|
|
4160
|
-
},
|
|
4160
|
+
}, I = (s) => `filter-${s}`, x = (s) => {
|
|
4161
4161
|
var y, b;
|
|
4162
4162
|
return (((b = (y = a.config.schema) == null ? void 0 : y[s]) == null ? void 0 : b.values) ?? []).map((V) => ({
|
|
4163
4163
|
value: V,
|
|
@@ -4189,10 +4189,10 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
4189
4189
|
"onUpdate:modelValue": k
|
|
4190
4190
|
}, {
|
|
4191
4191
|
before: v(() => [
|
|
4192
|
-
C(
|
|
4192
|
+
C(ai)
|
|
4193
4193
|
]),
|
|
4194
4194
|
after: v(() => [
|
|
4195
|
-
ke(C(f(
|
|
4195
|
+
ke(C(f(kl), {
|
|
4196
4196
|
class: "kong-ui-entity-filter-clear",
|
|
4197
4197
|
onClick: h
|
|
4198
4198
|
}, null, 512), [
|
|
@@ -4200,15 +4200,15 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
4200
4200
|
])
|
|
4201
4201
|
]),
|
|
4202
4202
|
_: 1
|
|
4203
|
-
}, 8, ["model-value", "placeholder"])) : (w(), T("div",
|
|
4203
|
+
}, 8, ["model-value", "placeholder"])) : (w(), T("div", Wl, [
|
|
4204
4204
|
C(V, {
|
|
4205
4205
|
appearance: "tertiary",
|
|
4206
4206
|
"data-testid": "filter-button",
|
|
4207
4207
|
onClick: m
|
|
4208
4208
|
}, {
|
|
4209
4209
|
default: v(() => [
|
|
4210
|
-
C(
|
|
4211
|
-
G(" " +
|
|
4210
|
+
C(ai),
|
|
4211
|
+
G(" " + j(f(t)("filter.filterButtonText")) + " " + j(l.value.length > 0 ? `(${l.value.length})` : ""), 1)
|
|
4212
4212
|
]),
|
|
4213
4213
|
_: 1
|
|
4214
4214
|
}),
|
|
@@ -4218,55 +4218,55 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
4218
4218
|
}, null, 512), [
|
|
4219
4219
|
[Ce, n.value]
|
|
4220
4220
|
]),
|
|
4221
|
-
ke(E("div",
|
|
4222
|
-
(w(!0), T(ve, null, me(d.value, (
|
|
4221
|
+
ke(E("div", Yl, [
|
|
4222
|
+
(w(!0), T(ve, null, me(d.value, ($) => {
|
|
4223
4223
|
var z, L;
|
|
4224
4224
|
return w(), T("div", {
|
|
4225
|
-
key:
|
|
4225
|
+
key: $.value,
|
|
4226
4226
|
class: "kong-ui-entity-filter-menu-item",
|
|
4227
|
-
"data-testid":
|
|
4227
|
+
"data-testid": $.value
|
|
4228
4228
|
}, [
|
|
4229
4229
|
E("span", {
|
|
4230
|
-
class:
|
|
4230
|
+
class: xe(["menu-item-title", { expanded: c.value.has($.value) }]),
|
|
4231
4231
|
role: "button",
|
|
4232
4232
|
tabindex: "0",
|
|
4233
|
-
onClick: (N) => p(
|
|
4234
|
-
onKeydown:
|
|
4233
|
+
onClick: (N) => p($.value),
|
|
4234
|
+
onKeydown: cr((N) => p($.value), ["enter"])
|
|
4235
4235
|
}, [
|
|
4236
|
-
G(
|
|
4237
|
-
ke(E("span",
|
|
4238
|
-
[Ce, l.value.includes(
|
|
4236
|
+
G(j($.label) + " ", 1),
|
|
4237
|
+
ke(E("span", Xl, null, 512), [
|
|
4238
|
+
[Ce, l.value.includes($.value)]
|
|
4239
4239
|
]),
|
|
4240
|
-
C(f(
|
|
4241
|
-
class:
|
|
4242
|
-
color: f(
|
|
4240
|
+
C(f(yl), {
|
|
4241
|
+
class: xe(["menu-item-expand-icon", { expanded: c.value.has($.value) }]),
|
|
4242
|
+
color: f(sa)
|
|
4243
4243
|
}, null, 8, ["class", "color"])
|
|
4244
|
-
], 42,
|
|
4245
|
-
ke(E("div",
|
|
4244
|
+
], 42, Ql),
|
|
4245
|
+
ke(E("div", es, [
|
|
4246
4246
|
E("label", {
|
|
4247
4247
|
class: "menu-item-label",
|
|
4248
|
-
for:
|
|
4249
|
-
},
|
|
4250
|
-
((L = (z = e.config.schema) == null ? void 0 : z[
|
|
4248
|
+
for: I($.value)
|
|
4249
|
+
}, j(f(t)("filter.fieldLabel")), 9, ts),
|
|
4250
|
+
((L = (z = e.config.schema) == null ? void 0 : z[$.value]) == null ? void 0 : L.type) === "select" ? (w(), D(B, {
|
|
4251
4251
|
key: 0,
|
|
4252
|
-
id:
|
|
4253
|
-
modelValue: o.value[
|
|
4254
|
-
"onUpdate:modelValue": (N) => o.value[
|
|
4255
|
-
items:
|
|
4252
|
+
id: I($.value),
|
|
4253
|
+
modelValue: o.value[$.value],
|
|
4254
|
+
"onUpdate:modelValue": (N) => o.value[$.value] = N,
|
|
4255
|
+
items: x($.value),
|
|
4256
4256
|
placeholder: f(t)("filter.selectPlaceholder")
|
|
4257
4257
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (w(), D(b, {
|
|
4258
4258
|
key: 1,
|
|
4259
|
-
id:
|
|
4260
|
-
modelValue: o.value[
|
|
4261
|
-
"onUpdate:modelValue": (N) => o.value[
|
|
4259
|
+
id: I($.value),
|
|
4260
|
+
modelValue: o.value[$.value],
|
|
4261
|
+
"onUpdate:modelValue": (N) => o.value[$.value] = N,
|
|
4262
4262
|
autocomplete: "off",
|
|
4263
4263
|
placeholder: f(t)("filter.inputPlaceholder"),
|
|
4264
|
-
type: S(
|
|
4264
|
+
type: S($.value)
|
|
4265
4265
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
|
|
4266
4266
|
], 512), [
|
|
4267
|
-
[Ce, c.value.has(
|
|
4267
|
+
[Ce, c.value.has($.value)]
|
|
4268
4268
|
]),
|
|
4269
|
-
ke(E("div",
|
|
4269
|
+
ke(E("div", is, [
|
|
4270
4270
|
C(V, {
|
|
4271
4271
|
appearance: "tertiary",
|
|
4272
4272
|
"data-testid": "apply-filter",
|
|
@@ -4274,7 +4274,7 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
4274
4274
|
onClick: y[0] || (y[0] = (N) => ee(!0))
|
|
4275
4275
|
}, {
|
|
4276
4276
|
default: v(() => [
|
|
4277
|
-
G(
|
|
4277
|
+
G(j(f(t)("filter.applyButtonText")), 1)
|
|
4278
4278
|
]),
|
|
4279
4279
|
_: 1
|
|
4280
4280
|
}),
|
|
@@ -4282,26 +4282,26 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
4282
4282
|
appearance: "tertiary",
|
|
4283
4283
|
"data-testid": "clear-filter",
|
|
4284
4284
|
size: "small",
|
|
4285
|
-
onClick: (N) => P(
|
|
4285
|
+
onClick: (N) => P($.value)
|
|
4286
4286
|
}, {
|
|
4287
4287
|
default: v(() => [
|
|
4288
|
-
G(
|
|
4288
|
+
G(j(f(t)("filter.clearButtonText")), 1)
|
|
4289
4289
|
]),
|
|
4290
4290
|
_: 2
|
|
4291
4291
|
}, 1032, ["onClick"])
|
|
4292
4292
|
], 512), [
|
|
4293
|
-
[Ce, c.value.has(
|
|
4293
|
+
[Ce, c.value.has($.value)]
|
|
4294
4294
|
])
|
|
4295
|
-
], 8,
|
|
4295
|
+
], 8, Zl);
|
|
4296
4296
|
}), 128)),
|
|
4297
|
-
E("div",
|
|
4297
|
+
E("div", rs, [
|
|
4298
4298
|
C(V, {
|
|
4299
4299
|
appearance: "tertiary",
|
|
4300
4300
|
size: "small",
|
|
4301
4301
|
onClick: q
|
|
4302
4302
|
}, {
|
|
4303
4303
|
default: v(() => [
|
|
4304
|
-
G(
|
|
4304
|
+
G(j(f(t)("filter.clearAllButtonText")), 1)
|
|
4305
4305
|
]),
|
|
4306
4306
|
_: 1
|
|
4307
4307
|
})
|
|
@@ -4312,7 +4312,7 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
4312
4312
|
]));
|
|
4313
4313
|
};
|
|
4314
4314
|
}
|
|
4315
|
-
}),
|
|
4315
|
+
}), os = /* @__PURE__ */ ye(as, [["__scopeId", "data-v-8cfadde3"]]), ns = /* @__PURE__ */ X({
|
|
4316
4316
|
__name: "EntityToggleModal",
|
|
4317
4317
|
props: {
|
|
4318
4318
|
visible: {
|
|
@@ -4362,7 +4362,7 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
4362
4362
|
};
|
|
4363
4363
|
return (p, k) => {
|
|
4364
4364
|
const h = U("KPrompt");
|
|
4365
|
-
return w(), D(
|
|
4365
|
+
return w(), D(sr, { to: "body" }, [
|
|
4366
4366
|
C(h, {
|
|
4367
4367
|
"action-button-disabled": o.value,
|
|
4368
4368
|
"action-button-text": l.value,
|
|
@@ -4378,10 +4378,10 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
4378
4378
|
scope: "global"
|
|
4379
4379
|
}, {
|
|
4380
4380
|
entityType: v(() => [
|
|
4381
|
-
G(
|
|
4381
|
+
G(j(e.entityType), 1)
|
|
4382
4382
|
]),
|
|
4383
4383
|
entityName: v(() => [
|
|
4384
|
-
E("strong", null,
|
|
4384
|
+
E("strong", null, j(e.entityName), 1)
|
|
4385
4385
|
]),
|
|
4386
4386
|
_: 1
|
|
4387
4387
|
}, 8, ["keypath"])
|
|
@@ -4421,13 +4421,13 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
4421
4421
|
isAllowed: t.value
|
|
4422
4422
|
}) : J("", !0);
|
|
4423
4423
|
}
|
|
4424
|
-
}),
|
|
4424
|
+
}), ls = { class: "form-section-wrapper" }, ss = {
|
|
4425
4425
|
key: 1,
|
|
4426
4426
|
class: "form-section-description"
|
|
4427
|
-
},
|
|
4427
|
+
}, cs = {
|
|
4428
4428
|
key: 2,
|
|
4429
4429
|
class: "form-section-footer"
|
|
4430
|
-
},
|
|
4430
|
+
}, us = { class: "form-section-content" }, ds = /* @__PURE__ */ X({
|
|
4431
4431
|
__name: "EntityFormSection",
|
|
4432
4432
|
props: {
|
|
4433
4433
|
title: {
|
|
@@ -4456,40 +4456,40 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
4456
4456
|
}
|
|
4457
4457
|
},
|
|
4458
4458
|
setup(e) {
|
|
4459
|
-
const i =
|
|
4459
|
+
const i = It();
|
|
4460
4460
|
return (t, a) => (w(), T("fieldset", {
|
|
4461
|
-
class:
|
|
4461
|
+
class: xe(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
|
|
4462
4462
|
}, [
|
|
4463
|
-
E("div",
|
|
4463
|
+
E("div", ls, [
|
|
4464
4464
|
e.hideInfoHeader ? J("", !0) : (w(), T("div", {
|
|
4465
4465
|
key: 0,
|
|
4466
|
-
class:
|
|
4466
|
+
class: xe(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
4467
4467
|
}, [
|
|
4468
4468
|
e.title ? (w(), D(Te(e.titleTag), {
|
|
4469
4469
|
key: 0,
|
|
4470
4470
|
class: "form-section-title"
|
|
4471
4471
|
}, {
|
|
4472
4472
|
default: v(() => [
|
|
4473
|
-
G(
|
|
4473
|
+
G(j(e.title), 1)
|
|
4474
4474
|
]),
|
|
4475
4475
|
_: 1
|
|
4476
4476
|
})) : J("", !0),
|
|
4477
|
-
e.description || f(i).description ? (w(), T("div",
|
|
4477
|
+
e.description || f(i).description ? (w(), T("div", ss, [
|
|
4478
4478
|
te(t.$slots, "description", {}, () => [
|
|
4479
|
-
E("p", null,
|
|
4479
|
+
E("p", null, j(e.description), 1)
|
|
4480
4480
|
], !0)
|
|
4481
4481
|
])) : J("", !0),
|
|
4482
|
-
f(i).footer ? (w(), T("div",
|
|
4482
|
+
f(i).footer ? (w(), T("div", cs, [
|
|
4483
4483
|
te(t.$slots, "footer", {}, void 0, !0)
|
|
4484
4484
|
])) : J("", !0)
|
|
4485
4485
|
], 2)),
|
|
4486
|
-
E("div",
|
|
4486
|
+
E("div", us, [
|
|
4487
4487
|
te(t.$slots, "default", {}, void 0, !0)
|
|
4488
4488
|
])
|
|
4489
4489
|
])
|
|
4490
4490
|
], 2));
|
|
4491
4491
|
}
|
|
4492
|
-
}),
|
|
4492
|
+
}), oi = /* @__PURE__ */ ye(ds, [["__scopeId", "data-v-4bb31634"]]), { useAxios: nr, useDeleteUrlBuilder: ps, useErrors: fs, useExternalLinkCreator: Hs, useFetchUrlBuilder: Js, useFetcher: gs, useDebouncedFilter: Gs, useStringHelpers: Ws, useHelpers: ms, useGatewayFeatureSupported: ys, useTruncationDetector: Ys, useValidators: vs } = ne, hs = { class: "kong-ui-entities-gateway-services-list" }, bs = { key: 1 }, ws = { key: 1 }, _s = /* @__PURE__ */ X({
|
|
4493
4493
|
__name: "GatewayServiceList",
|
|
4494
4494
|
props: {
|
|
4495
4495
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4536,7 +4536,7 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
4536
4536
|
emits: ["error", "copy:success", "copy:error", "delete:success", "toggle:success"],
|
|
4537
4537
|
setup(e, { emit: i }) {
|
|
4538
4538
|
var u;
|
|
4539
|
-
const t = i, a = e, { i18n: { t: r } } =
|
|
4539
|
+
const t = i, a = e, { i18n: { t: r } } = it.useI18n(), n = At(), { axiosInstance: o } = nr({
|
|
4540
4540
|
headers: (u = a.config) == null ? void 0 : u.requestHeaders
|
|
4541
4541
|
}), c = F(1), l = A(() => a.config.app !== "kongManager" || !!a.config.disableSorting), d = {
|
|
4542
4542
|
name: { label: r("gateway_services.list.table_headers.name"), searchable: !0, sortable: !0 },
|
|
@@ -4551,7 +4551,7 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
4551
4551
|
var M, R;
|
|
4552
4552
|
let g = `${a.config.apiBaseUrl}${Ge.list[a.config.app].all}`;
|
|
4553
4553
|
return a.config.app === "konnect" ? g = g.replace(/{controlPlaneId}/gi, ((M = a.config) == null ? void 0 : M.controlPlaneId) || "") : a.config.app === "kongManager" && (g = g.replace(/\/{workspace}/gi, (R = a.config) != null && R.workspace ? `/${a.config.workspace}` : "")), g;
|
|
4554
|
-
}), k = A(() => a.config.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${p.value}`) : new URL(p.value)), h = F(""),
|
|
4554
|
+
}), k = A(() => a.config.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${p.value}`) : new URL(p.value)), h = F(""), I = A(() => {
|
|
4555
4555
|
const g = a.config.app === "konnect" || a.config.isExactMatch;
|
|
4556
4556
|
if (g)
|
|
4557
4557
|
return {
|
|
@@ -4564,7 +4564,7 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
4564
4564
|
fields: { name: M, enabled: R, protocol: Y, host: ie, port: _, path: be },
|
|
4565
4565
|
schema: a.config.filterSchema
|
|
4566
4566
|
};
|
|
4567
|
-
}), { fetcher:
|
|
4567
|
+
}), { fetcher: x, fetcherState: S } = gs(a.config, p.value), P = () => {
|
|
4568
4568
|
h.value = "";
|
|
4569
4569
|
}, q = () => {
|
|
4570
4570
|
c.value++;
|
|
@@ -4586,7 +4586,7 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
4586
4586
|
return g;
|
|
4587
4587
|
}), B = (g) => {
|
|
4588
4588
|
y.value = !0, b.value = g;
|
|
4589
|
-
},
|
|
4589
|
+
}, $ = () => {
|
|
4590
4590
|
y.value = !1, b.value = null;
|
|
4591
4591
|
}, z = async () => {
|
|
4592
4592
|
var Y, ie;
|
|
@@ -4639,16 +4639,16 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
4639
4639
|
}), pe = (g) => ({
|
|
4640
4640
|
label: r("actions.edit"),
|
|
4641
4641
|
to: a.config.getEditRoute(g)
|
|
4642
|
-
}), ae = F(void 0),
|
|
4643
|
-
ae.value = g,
|
|
4642
|
+
}), ae = F(void 0), $e = F(!1), Pe = F(!1), Re = F(""), gt = ps(a.config, p.value), De = (g) => {
|
|
4643
|
+
ae.value = g, $e.value = !0;
|
|
4644
4644
|
}, Xe = () => {
|
|
4645
|
-
|
|
4646
|
-
},
|
|
4645
|
+
$e.value = !1, ae.value = void 0;
|
|
4646
|
+
}, je = async () => {
|
|
4647
4647
|
var g, M, R;
|
|
4648
4648
|
if ((g = ae.value) != null && g.id) {
|
|
4649
4649
|
Pe.value = !0;
|
|
4650
4650
|
try {
|
|
4651
|
-
await o.delete(
|
|
4651
|
+
await o.delete(gt(ae.value.id)), t("delete:success", ae.value), Xe(), c.value++;
|
|
4652
4652
|
} catch (Y) {
|
|
4653
4653
|
Re.value = ((R = (M = Y.response) == null ? void 0 : M.data) == null ? void 0 : R.message) || Y.message || r("errors.delete"), t("error", Y);
|
|
4654
4654
|
} finally {
|
|
@@ -4667,19 +4667,19 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
4667
4667
|
ee.value = null;
|
|
4668
4668
|
});
|
|
4669
4669
|
const Ne = F(!1);
|
|
4670
|
-
return
|
|
4670
|
+
return xt(async () => {
|
|
4671
4671
|
Ne.value = await a.canCreate();
|
|
4672
4672
|
}), (g, M) => {
|
|
4673
4673
|
const R = U("KButton"), Y = U("KBadge"), ie = U("KInputSwitch"), _ = U("KTruncate"), be = U("KDropdownItem"), K = U("KClipboardProvider");
|
|
4674
|
-
return w(), T("div",
|
|
4675
|
-
C(f(
|
|
4674
|
+
return w(), T("div", hs, [
|
|
4675
|
+
C(f(Kl), {
|
|
4676
4676
|
"cache-identifier": e.cacheIdentifier,
|
|
4677
4677
|
"disable-pagination-page-jump": "",
|
|
4678
4678
|
"disable-sorting": l.value,
|
|
4679
4679
|
"empty-state-options": s.value,
|
|
4680
4680
|
"enable-entity-actions": "",
|
|
4681
4681
|
"error-message": ee.value,
|
|
4682
|
-
fetcher: f(
|
|
4682
|
+
fetcher: f(x),
|
|
4683
4683
|
"fetcher-cache-key": c.value,
|
|
4684
4684
|
"pagination-type": "offset",
|
|
4685
4685
|
"preferences-storage-key": "kong-ui-entities-gateway-services-list",
|
|
@@ -4691,10 +4691,10 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
4691
4691
|
onSort: q
|
|
4692
4692
|
}, {
|
|
4693
4693
|
"toolbar-filter": v(() => [
|
|
4694
|
-
C(f(
|
|
4694
|
+
C(f(os), {
|
|
4695
4695
|
modelValue: h.value,
|
|
4696
4696
|
"onUpdate:modelValue": M[0] || (M[0] = (W) => h.value = W),
|
|
4697
|
-
config:
|
|
4697
|
+
config: I.value
|
|
4698
4698
|
}, null, 8, ["modelValue", "config"])
|
|
4699
4699
|
]),
|
|
4700
4700
|
"toolbar-button": v(() => [
|
|
@@ -4714,7 +4714,7 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
4714
4714
|
to: e.config.createRoute
|
|
4715
4715
|
}, {
|
|
4716
4716
|
default: v(() => [
|
|
4717
|
-
G(
|
|
4717
|
+
G(j(f(r)("gateway_services.list.toolbar_actions.new_gateway_service")), 1)
|
|
4718
4718
|
]),
|
|
4719
4719
|
_: 1
|
|
4720
4720
|
}, 8, ["to"]), [
|
|
@@ -4728,7 +4728,7 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
4728
4728
|
}, 8, ["to"]))
|
|
4729
4729
|
]),
|
|
4730
4730
|
name: v(({ rowValue: W }) => [
|
|
4731
|
-
E("b", null,
|
|
4731
|
+
E("b", null, j(W ?? "-"), 1)
|
|
4732
4732
|
]),
|
|
4733
4733
|
control_plane: v(({ row: W }) => {
|
|
4734
4734
|
var ge;
|
|
@@ -4740,10 +4740,10 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
4740
4740
|
onClick: Le((ze) => L(W.x_meta.cluster_id), ["stop"])
|
|
4741
4741
|
}, {
|
|
4742
4742
|
default: v(() => [
|
|
4743
|
-
G(
|
|
4743
|
+
G(j(W.x_meta.cluster_id), 1)
|
|
4744
4744
|
]),
|
|
4745
4745
|
_: 2
|
|
4746
|
-
}, 1032, ["tooltip", "onClick"])) : (w(), T("b",
|
|
4746
|
+
}, 1032, ["tooltip", "onClick"])) : (w(), T("b", bs, "-"))
|
|
4747
4747
|
];
|
|
4748
4748
|
}),
|
|
4749
4749
|
enabled: v(({ row: W }) => [
|
|
@@ -4778,13 +4778,13 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
4778
4778
|
}, ["stop"]))
|
|
4779
4779
|
}, {
|
|
4780
4780
|
default: v(() => [
|
|
4781
|
-
G(
|
|
4781
|
+
G(j(ge), 1)
|
|
4782
4782
|
]),
|
|
4783
4783
|
_: 2
|
|
4784
4784
|
}, 1024))), 128))
|
|
4785
4785
|
]),
|
|
4786
4786
|
_: 2
|
|
4787
|
-
}, 1024)) : (w(), T("span",
|
|
4787
|
+
}, 1024)) : (w(), T("span", ws, "-"))
|
|
4788
4788
|
]),
|
|
4789
4789
|
actions: v(({ row: W }) => [
|
|
4790
4790
|
C(K, null, {
|
|
@@ -4794,7 +4794,7 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
4794
4794
|
onClick: (ze) => N(W, ge)
|
|
4795
4795
|
}, {
|
|
4796
4796
|
default: v(() => [
|
|
4797
|
-
G(
|
|
4797
|
+
G(j(f(r)("actions.copy_id")), 1)
|
|
4798
4798
|
]),
|
|
4799
4799
|
_: 2
|
|
4800
4800
|
}, 1032, ["onClick"])
|
|
@@ -4808,7 +4808,7 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
4808
4808
|
onClick: (ze) => H(W, ge)
|
|
4809
4809
|
}, {
|
|
4810
4810
|
default: v(() => [
|
|
4811
|
-
G(
|
|
4811
|
+
G(j(f(r)("actions.copy_json")), 1)
|
|
4812
4812
|
]),
|
|
4813
4813
|
_: 2
|
|
4814
4814
|
}, 1032, ["onClick"])
|
|
@@ -4849,7 +4849,7 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
4849
4849
|
onClick: (ge) => De(W)
|
|
4850
4850
|
}, {
|
|
4851
4851
|
default: v(() => [
|
|
4852
|
-
G(
|
|
4852
|
+
G(j(f(r)("actions.delete.menu_label")), 1)
|
|
4853
4853
|
]),
|
|
4854
4854
|
_: 2
|
|
4855
4855
|
}, 1032, ["onClick"])
|
|
@@ -4859,57 +4859,57 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
4859
4859
|
]),
|
|
4860
4860
|
_: 1
|
|
4861
4861
|
}, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers", "use-action-outside"]),
|
|
4862
|
-
C(f(
|
|
4862
|
+
C(f(ns), {
|
|
4863
4863
|
action: V.value.action,
|
|
4864
4864
|
"entity-id": V.value.id,
|
|
4865
4865
|
"entity-name": V.value.name,
|
|
4866
4866
|
"entity-type": f(r)("glossary.gateway_services"),
|
|
4867
4867
|
"on-confirm": z,
|
|
4868
4868
|
visible: y.value,
|
|
4869
|
-
onCancel:
|
|
4870
|
-
onProceed:
|
|
4869
|
+
onCancel: $,
|
|
4870
|
+
onProceed: $
|
|
4871
4871
|
}, null, 8, ["action", "entity-id", "entity-name", "entity-type", "visible"]),
|
|
4872
|
-
C(f(
|
|
4872
|
+
C(f(Rl), {
|
|
4873
4873
|
"action-pending": Pe.value,
|
|
4874
4874
|
description: f(r)("actions.delete.description"),
|
|
4875
4875
|
"entity-name": ae.value && (ae.value.name || ae.value.id),
|
|
4876
|
-
"entity-type": f(
|
|
4876
|
+
"entity-type": f(ui).GatewayService,
|
|
4877
4877
|
error: Re.value,
|
|
4878
4878
|
title: f(r)("actions.delete.title"),
|
|
4879
|
-
visible:
|
|
4879
|
+
visible: $e.value,
|
|
4880
4880
|
onCancel: Xe,
|
|
4881
|
-
onProceed:
|
|
4881
|
+
onProceed: je
|
|
4882
4882
|
}, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"])
|
|
4883
4883
|
]);
|
|
4884
4884
|
};
|
|
4885
4885
|
}
|
|
4886
|
-
}),
|
|
4886
|
+
}), lr = (e, i) => {
|
|
4887
4887
|
const t = e.__vccOpts || e;
|
|
4888
4888
|
for (const [a, r] of i)
|
|
4889
4889
|
t[a] = r;
|
|
4890
4890
|
return t;
|
|
4891
|
-
},
|
|
4891
|
+
}, Zs = /* @__PURE__ */ lr(_s, [["__scopeId", "data-v-71d8474f"]]), ks = { class: "kong-ui-entities-gateway-service-form" }, Cs = { key: 0 }, Ss = { class: "gateway-service-form-traffic-label" }, xs = { class: "gateway-service-form-margin-bottom" }, Is = {
|
|
4892
4892
|
key: 0,
|
|
4893
4893
|
class: "gateway-service-form-group-fields"
|
|
4894
|
-
},
|
|
4894
|
+
}, As = {
|
|
4895
4895
|
key: 1,
|
|
4896
4896
|
class: "gateway-service-form-group-fields"
|
|
4897
|
-
},
|
|
4897
|
+
}, Ts = { key: 0 }, $s = { class: "gateway-service-form-margin-top" }, js = { class: "gateway-service-form-margin-bottom" }, Ms = { class: "gateway-service-form-margin-bottom" }, Os = { class: "gateway-service-form-margin-bottom" }, Es = { class: "gateway-service-form-margin-bottom" }, Ns = {
|
|
4898
4898
|
key: 0,
|
|
4899
4899
|
class: "gateway-service-form-margin-bottom"
|
|
4900
|
-
},
|
|
4900
|
+
}, Fs = {
|
|
4901
4901
|
key: 1,
|
|
4902
4902
|
class: "gateway-service-form-margin-bottom"
|
|
4903
|
-
},
|
|
4903
|
+
}, qs = {
|
|
4904
4904
|
key: 2,
|
|
4905
4905
|
class: "gateway-service-form-margin-bottom"
|
|
4906
|
-
},
|
|
4906
|
+
}, Ls = {
|
|
4907
4907
|
key: 0,
|
|
4908
4908
|
class: "checkbox-aligned-radio"
|
|
4909
|
-
},
|
|
4909
|
+
}, Vs = {
|
|
4910
4910
|
key: 1,
|
|
4911
4911
|
class: "checkbox-aligned-radio"
|
|
4912
|
-
},
|
|
4912
|
+
}, Ks = /* @__PURE__ */ X({
|
|
4913
4913
|
__name: "GatewayServiceForm",
|
|
4914
4914
|
props: {
|
|
4915
4915
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4934,9 +4934,9 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
4934
4934
|
emits: ["update", "error", "url-valid:success", "url-valid:error", "loading", "model-updated"],
|
|
4935
4935
|
setup(e, { expose: i, emit: t }) {
|
|
4936
4936
|
var Ne;
|
|
4937
|
-
const a = t, r = e, n = F(!0), o =
|
|
4937
|
+
const a = t, r = e, n = F(!0), o = At(), { i18nT: c, i18n: { t: l } } = it.useI18n(), { getMessageFromError: d } = fs(), { axiosInstance: m } = nr({
|
|
4938
4938
|
headers: (Ne = r.config) == null ? void 0 : Ne.requestHeaders
|
|
4939
|
-
}), p =
|
|
4939
|
+
}), p = vs(), k = A(() => Ge.form[r.config.app].edit), h = A(() => r.gatewayServiceId ? bt.Edit : bt.Create), I = F(!1), x = A(() => !!r.gatewayServiceId), S = F(x.value ? "protocol" : "url"), P = it.usePortFromProtocol(), q = F(""), ee = A(() => !!q.value), s = Ft({
|
|
4940
4940
|
fields: {
|
|
4941
4941
|
name: "",
|
|
4942
4942
|
protocol: "http",
|
|
@@ -4956,7 +4956,7 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
4956
4956
|
},
|
|
4957
4957
|
isReadonly: !1,
|
|
4958
4958
|
errorMessage: ""
|
|
4959
|
-
}), y =
|
|
4959
|
+
}), y = Ft({
|
|
4960
4960
|
name: "",
|
|
4961
4961
|
protocol: "http",
|
|
4962
4962
|
host: "",
|
|
@@ -4972,7 +4972,7 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
4972
4972
|
tls_verify_enabled: !1,
|
|
4973
4973
|
tls_verify_value: !1,
|
|
4974
4974
|
tags: ""
|
|
4975
|
-
}), b = r.config.app === "konnect" ||
|
|
4975
|
+
}), b = r.config.app === "konnect" || ys({
|
|
4976
4976
|
gatewayInfo: r.config.gatewayInfo,
|
|
4977
4977
|
// 'ws' and 'wss' are not valid values for the protocol field in Gateway Community Edition or before Gateway Enterprise Edition 3.0
|
|
4978
4978
|
supportedRange: {
|
|
@@ -5031,7 +5031,7 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
5031
5031
|
value: "udp",
|
|
5032
5032
|
group: "udp"
|
|
5033
5033
|
}
|
|
5034
|
-
], B = { url: "url", protocol: "protocol" },
|
|
5034
|
+
], B = { url: "url", protocol: "protocol" }, $ = (u, g) => {
|
|
5035
5035
|
g.value;
|
|
5036
5036
|
}, z = (u) => u ? parseFloat(u) : 0, L = () => {
|
|
5037
5037
|
n.value = !0, s.errorMessage = "", s.fields.host = y.host, s.fields.path = y.path, s.fields.port = y.port, s.fields.protocol = y.protocol, s.fields.url = y.url, s.fields.retries = y.retries, s.fields.connect_timeout = y.connect_timeout, s.fields.write_timeout = y.write_timeout, s.fields.read_timeout = y.read_timeout, s.fields.client_certificate = y.client_certificate, s.fields.ca_certificates = y.ca_certificates, s.fields.tls_verify_enabled = y.tls_verify_enabled, s.fields.tls_verify_value = y.tls_verify_value;
|
|
@@ -5041,7 +5041,7 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
5041
5041
|
const u = new URL(s.fields.url);
|
|
5042
5042
|
s.errorMessage = "", s.fields.protocol = u.protocol.slice(0, -1), s.fields.host = u.hostname, s.fields.path = u.pathname;
|
|
5043
5043
|
const g = Number(u.port);
|
|
5044
|
-
|
|
5044
|
+
I.value = !!g, s.fields.port = g || P.getPortFromProtocol(s.fields.protocol), s.errorMessage = "", a("url-valid:success");
|
|
5045
5045
|
} catch (u) {
|
|
5046
5046
|
s.errorMessage = l("errors.urlErrorMessage"), a("url-valid:error", d(u));
|
|
5047
5047
|
}
|
|
@@ -5064,12 +5064,12 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
5064
5064
|
return S.value === "protocol" && u;
|
|
5065
5065
|
}), ae = (u) => {
|
|
5066
5066
|
q.value = p.utf8Name(u);
|
|
5067
|
-
},
|
|
5067
|
+
}, $e = A(() => x.value && JSON.stringify(s.fields) !== JSON.stringify(y) || S.value === "url" && !!s.fields.url || S.value === "protocol" && !!s.fields.host), Pe = (u) => {
|
|
5068
5068
|
var g, M, R;
|
|
5069
5069
|
s.fields.name = (u == null ? void 0 : u.name) || "", s.fields.tags = ((g = u == null ? void 0 : u.tags) == null ? void 0 : g.join(",")) || "", s.fields.protocol = (u == null ? void 0 : u.protocol) || "http", s.fields.path = (u == null ? void 0 : u.path) || "", s.fields.read_timeout = u != null && u.read_timeout || (u == null ? void 0 : u.read_timeout) === 0 ? u == null ? void 0 : u.read_timeout : 6e4, s.fields.retries = u != null && u.retries || (u == null ? void 0 : u.retries) === 0 ? u == null ? void 0 : u.retries : 5, s.fields.host = (u == null ? void 0 : u.host) || "", s.fields.connect_timeout = u != null && u.connect_timeout || (u == null ? void 0 : u.connect_timeout) === 0 ? u == null ? void 0 : u.connect_timeout : 6e4, s.fields.tls_verify_enabled = (u == null ? void 0 : u.tls_verify) !== "" && (u == null ? void 0 : u.tls_verify) !== null && (u == null ? void 0 : u.tls_verify) !== void 0, s.fields.tls_verify_value = u != null && u.tls_verify ? u == null ? void 0 : u.tls_verify : !1, s.fields.ca_certificates = ((M = u == null ? void 0 : u.ca_certificates) == null ? void 0 : M.join(",")) || "", s.fields.client_certificate = ((R = u == null ? void 0 : u.client_certificate) == null ? void 0 : R.id) || "", s.fields.write_timeout = u != null && u.write_timeout || (u == null ? void 0 : u.write_timeout) === 0 ? u == null ? void 0 : u.write_timeout : 6e4, s.fields.port = u != null && u.port || (u == null ? void 0 : u.port) === 0 ? u == null ? void 0 : u.port : 80, Object.assign(y, s.fields);
|
|
5070
5070
|
}, Re = () => {
|
|
5071
5071
|
o.push(r.config.cancelRoute);
|
|
5072
|
-
},
|
|
5072
|
+
}, gt = A(() => {
|
|
5073
5073
|
var g, M;
|
|
5074
5074
|
let u = `${r.config.apiBaseUrl}${Ge.form[r.config.app].validate}`;
|
|
5075
5075
|
return r.config.app === "konnect" ? u = u.replace(/{controlPlaneId}/gi, ((g = r.config) == null ? void 0 : g.controlPlaneId) || "") : r.config.app === "kongManager" && (u = u.replace(/\/{workspace}/gi, (M = r.config) != null && M.workspace ? `/${r.config.workspace}` : "")), u = u.replace(/{id}/gi, r.gatewayServiceId), u;
|
|
@@ -5080,7 +5080,7 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
5080
5080
|
}), Xe = (u) => {
|
|
5081
5081
|
let g = "";
|
|
5082
5082
|
u.url && (g = new URL(u.url).protocol), (["https", "wss", "tls"].includes(u.protocol) || ["https", "wss", "tls"].includes(g)) && (u.tls_verify = u.tls_verify_enabled ? u.tls_verify_value : null), delete u.tls_verify_enabled, delete u.tls_verify_value;
|
|
5083
|
-
},
|
|
5083
|
+
}, je = A(() => {
|
|
5084
5084
|
var g, M;
|
|
5085
5085
|
const u = {
|
|
5086
5086
|
name: s.fields.name || null,
|
|
@@ -5104,10 +5104,10 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
5104
5104
|
var u, g, M, R;
|
|
5105
5105
|
try {
|
|
5106
5106
|
s.isReadonly = !0, N();
|
|
5107
|
-
const Y =
|
|
5107
|
+
const Y = je.value;
|
|
5108
5108
|
Xe(Y);
|
|
5109
5109
|
let ie;
|
|
5110
|
-
if (await m.post(
|
|
5110
|
+
if (await m.post(gt.value, Y), h.value === "create" ? ie = await m.post(De.value, Y) : h.value === "edit" && (ie = ((u = r.config) == null ? void 0 : u.app) === "konnect" ? await m.put(De.value, Y) : await m.patch(De.value, Y)), ie) {
|
|
5111
5111
|
const { data: _ } = ie;
|
|
5112
5112
|
s.fields.name = (_ == null ? void 0 : _.name) || "", s.fields.port = _.port || P.getPortFromProtocol(_.protocol), s.fields.protocol = (_ == null ? void 0 : _.protocol) || "http", s.fields.host = (_ == null ? void 0 : _.host) || "", s.fields.path = (_ == null ? void 0 : _.path) || "", s.fields.url = (_ == null ? void 0 : _.url) || "", s.fields.retries = _ != null && _.retries || (_ == null ? void 0 : _.retries) === 0 ? _ == null ? void 0 : _.retries : 5, s.fields.connect_timeout = _ != null && _.connect_timeout || (_ == null ? void 0 : _.connect_timeout) === 0 ? _ == null ? void 0 : _.connect_timeout : 6e4, s.fields.write_timeout = _ != null && _.write_timeout || (_ == null ? void 0 : _.write_timeout) === 0 ? _ == null ? void 0 : _.write_timeout : 6e4, s.fields.read_timeout = _ != null && _.read_timeout || (_ == null ? void 0 : _.read_timeout) === 0 ? _ == null ? void 0 : _.read_timeout : 6e4, s.fields.client_certificate = ((g = _ == null ? void 0 : _.client_certificate) == null ? void 0 : g.id) || "", s.fields.ca_certificates = (M = _ == null ? void 0 : _.ca_certificates) != null && M.length ? _ == null ? void 0 : _.ca_certificates.join(",") : "", s.fields.tls_verify_enabled = (_ == null ? void 0 : _.tls_verify) !== "" && (_ == null ? void 0 : _.tls_verify) !== null && (_ == null ? void 0 : _.tls_verify) !== void 0, s.fields.tls_verify_value = s.fields.tls_verify_enabled && (_ == null ? void 0 : _.tls_verify), s.fields.tags = (R = _ == null ? void 0 : _.tags) != null && R.length ? _ == null ? void 0 : _.tags.join(",") : "", Object.assign(y, s.fields), a("update", ie == null ? void 0 : ie.data);
|
|
5113
5113
|
}
|
|
@@ -5121,24 +5121,24 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
5121
5121
|
return we(() => r.gatewayServiceId, () => {
|
|
5122
5122
|
Object.assign(s.fields, y);
|
|
5123
5123
|
}), we(s.fields, (u) => {
|
|
5124
|
-
s.fields.port = P.getPortFromProtocol(u.protocol, String(u.port)), a("model-updated",
|
|
5125
|
-
}),
|
|
5126
|
-
a("model-updated",
|
|
5124
|
+
s.fields.port = P.getPortFromProtocol(u.protocol, String(u.port)), a("model-updated", je.value);
|
|
5125
|
+
}), li(() => {
|
|
5126
|
+
a("model-updated", je.value);
|
|
5127
5127
|
}), i({
|
|
5128
5128
|
validateUrl: N,
|
|
5129
|
-
getPayload:
|
|
5129
|
+
getPayload: je,
|
|
5130
5130
|
saveFormData: Ee,
|
|
5131
|
-
canSubmit:
|
|
5131
|
+
canSubmit: $e
|
|
5132
5132
|
}), (u, g) => {
|
|
5133
5133
|
const M = U("KInput"), R = U("KLabel"), Y = U("KRadio"), ie = U("KSelect"), _ = U("KCheckbox"), be = U("KCollapse");
|
|
5134
|
-
return w(), T("div",
|
|
5135
|
-
C(f(
|
|
5136
|
-
"can-submit":
|
|
5134
|
+
return w(), T("div", ks, [
|
|
5135
|
+
C(f(Ml), {
|
|
5136
|
+
"can-submit": $e.value,
|
|
5137
5137
|
config: e.config,
|
|
5138
5138
|
"edit-id": e.gatewayServiceId,
|
|
5139
5139
|
"error-message": s.errorMessage,
|
|
5140
5140
|
"fetch-url": k.value,
|
|
5141
|
-
"form-fields":
|
|
5141
|
+
"form-fields": je.value,
|
|
5142
5142
|
"is-readonly": s.isReadonly,
|
|
5143
5143
|
onCancel: Re,
|
|
5144
5144
|
"onFetch:error": g[25] || (g[25] = (K) => u.$emit("error", K)),
|
|
@@ -5148,13 +5148,13 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
5148
5148
|
}, {
|
|
5149
5149
|
"form-actions": v(() => [
|
|
5150
5150
|
te(u.$slots, "form-actions", {
|
|
5151
|
-
canSubmit:
|
|
5151
|
+
canSubmit: $e.value,
|
|
5152
5152
|
cancel: Re,
|
|
5153
5153
|
submit: Ee
|
|
5154
5154
|
}, void 0, !0)
|
|
5155
5155
|
]),
|
|
5156
5156
|
default: v(() => [
|
|
5157
|
-
C(f(
|
|
5157
|
+
C(f(oi), {
|
|
5158
5158
|
description: f(l)("gateway_services.form.sections.general.description"),
|
|
5159
5159
|
"hide-info-header": e.hideSectionsInfo,
|
|
5160
5160
|
title: f(l)("gateway_services.form.sections.general.title")
|
|
@@ -5193,22 +5193,22 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
5193
5193
|
]),
|
|
5194
5194
|
_: 1
|
|
5195
5195
|
}, 8, ["description", "hide-info-header", "title"]),
|
|
5196
|
-
C(f(
|
|
5196
|
+
C(f(oi), {
|
|
5197
5197
|
description: f(l)("gateway_services.form.sections.keys.description"),
|
|
5198
5198
|
"hide-info-header": e.hideSectionsInfo,
|
|
5199
5199
|
title: f(l)("gateway_services.form.sections.keys.title")
|
|
5200
5200
|
}, {
|
|
5201
5201
|
default: v(() => [
|
|
5202
|
-
|
|
5203
|
-
E("div",
|
|
5202
|
+
x.value ? J("", !0) : (w(), T("div", Cs, [
|
|
5203
|
+
E("div", Ss, [
|
|
5204
5204
|
C(R, { required: "" }, {
|
|
5205
5205
|
default: v(() => [
|
|
5206
|
-
G(
|
|
5206
|
+
G(j(f(l)("gateway_services.form.sections.keys.checkedGroupLabel")), 1)
|
|
5207
5207
|
]),
|
|
5208
5208
|
_: 1
|
|
5209
5209
|
})
|
|
5210
5210
|
]),
|
|
5211
|
-
E("div",
|
|
5211
|
+
E("div", xs, [
|
|
5212
5212
|
C(Y, {
|
|
5213
5213
|
modelValue: S.value,
|
|
5214
5214
|
"onUpdate:modelValue": g[2] || (g[2] = (K) => S.value = K),
|
|
@@ -5217,12 +5217,12 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
5217
5217
|
onChange: L
|
|
5218
5218
|
}, {
|
|
5219
5219
|
default: v(() => [
|
|
5220
|
-
G(
|
|
5220
|
+
G(j(f(l)("gateway_services.form.sections.keys.urlLabel")), 1)
|
|
5221
5221
|
]),
|
|
5222
5222
|
_: 1
|
|
5223
5223
|
}, 8, ["modelValue", "selected-value"])
|
|
5224
5224
|
]),
|
|
5225
|
-
S.value === "url" ? (w(), T("div",
|
|
5225
|
+
S.value === "url" ? (w(), T("div", Is, [
|
|
5226
5226
|
C(M, {
|
|
5227
5227
|
modelValue: s.fields.url,
|
|
5228
5228
|
"onUpdate:modelValue": g[3] || (g[3] = (K) => s.fields.url = K),
|
|
@@ -5247,12 +5247,12 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
5247
5247
|
onChange: L
|
|
5248
5248
|
}, {
|
|
5249
5249
|
default: v(() => [
|
|
5250
|
-
G(
|
|
5250
|
+
G(j(f(l)("gateway_services.form.sections.keys.checkedGroupAltLabel")), 1)
|
|
5251
5251
|
]),
|
|
5252
5252
|
_: 1
|
|
5253
5253
|
}, 8, ["modelValue", "selected-value"])
|
|
5254
5254
|
])),
|
|
5255
|
-
S.value === "protocol" ||
|
|
5255
|
+
S.value === "protocol" || x.value ? (w(), T("div", As, [
|
|
5256
5256
|
C(ie, {
|
|
5257
5257
|
modelValue: s.fields.protocol,
|
|
5258
5258
|
"onUpdate:modelValue": g[5] || (g[5] = (K) => s.fields.protocol = K),
|
|
@@ -5265,7 +5265,7 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
5265
5265
|
readonly: s.isReadonly,
|
|
5266
5266
|
required: "",
|
|
5267
5267
|
width: "100%",
|
|
5268
|
-
onSelected: g[6] || (g[6] = (K) =>
|
|
5268
|
+
onSelected: g[6] || (g[6] = (K) => $(s.fields.protocol, K))
|
|
5269
5269
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
5270
5270
|
C(M, {
|
|
5271
5271
|
modelValue: s.fields.host,
|
|
@@ -5281,7 +5281,7 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
5281
5281
|
placeholder: f(l)("gateway_services.form.fields.host.placeholder"),
|
|
5282
5282
|
required: ""
|
|
5283
5283
|
}, null, 8, ["modelValue", "label", "label-attributes", "placeholder"]),
|
|
5284
|
-
H.value ? (w(), T("div",
|
|
5284
|
+
H.value ? (w(), T("div", Ts, [
|
|
5285
5285
|
C(M, {
|
|
5286
5286
|
modelValue: s.fields.path,
|
|
5287
5287
|
"onUpdate:modelValue": g[8] || (g[8] = (K) => s.fields.path = K),
|
|
@@ -5322,8 +5322,8 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
5322
5322
|
"trigger-label": f(l)("gateway_services.form.sections.keys.viewAdvancedFields")
|
|
5323
5323
|
}, {
|
|
5324
5324
|
default: v(() => [
|
|
5325
|
-
E("div",
|
|
5326
|
-
E("div",
|
|
5325
|
+
E("div", $s, [
|
|
5326
|
+
E("div", js, [
|
|
5327
5327
|
C(M, {
|
|
5328
5328
|
modelValue: s.fields.retries,
|
|
5329
5329
|
"onUpdate:modelValue": [
|
|
@@ -5341,7 +5341,7 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
5341
5341
|
type: "number"
|
|
5342
5342
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
|
|
5343
5343
|
]),
|
|
5344
|
-
E("div",
|
|
5344
|
+
E("div", Ms, [
|
|
5345
5345
|
C(M, {
|
|
5346
5346
|
modelValue: s.fields.connect_timeout,
|
|
5347
5347
|
"onUpdate:modelValue": [
|
|
@@ -5359,7 +5359,7 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
5359
5359
|
type: "number"
|
|
5360
5360
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
|
|
5361
5361
|
]),
|
|
5362
|
-
E("div",
|
|
5362
|
+
E("div", Os, [
|
|
5363
5363
|
C(M, {
|
|
5364
5364
|
modelValue: s.fields.write_timeout,
|
|
5365
5365
|
"onUpdate:modelValue": [
|
|
@@ -5377,7 +5377,7 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
5377
5377
|
type: "number"
|
|
5378
5378
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
|
|
5379
5379
|
]),
|
|
5380
|
-
E("div",
|
|
5380
|
+
E("div", Es, [
|
|
5381
5381
|
C(M, {
|
|
5382
5382
|
modelValue: s.fields.read_timeout,
|
|
5383
5383
|
"onUpdate:modelValue": [
|
|
@@ -5395,7 +5395,7 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
5395
5395
|
type: "number"
|
|
5396
5396
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
|
|
5397
5397
|
]),
|
|
5398
|
-
Z.value ? (w(), T("div",
|
|
5398
|
+
Z.value ? (w(), T("div", Ns, [
|
|
5399
5399
|
C(M, {
|
|
5400
5400
|
modelValue: s.fields.client_certificate,
|
|
5401
5401
|
"onUpdate:modelValue": g[19] || (g[19] = (K) => s.fields.client_certificate = K),
|
|
@@ -5410,7 +5410,7 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
5410
5410
|
type: "text"
|
|
5411
5411
|
}, null, 8, ["modelValue", "label", "label-attributes", "placeholder", "readonly"])
|
|
5412
5412
|
])) : J("", !0),
|
|
5413
|
-
de.value ? (w(), T("div",
|
|
5413
|
+
de.value ? (w(), T("div", Fs, [
|
|
5414
5414
|
C(M, {
|
|
5415
5415
|
modelValue: s.fields.ca_certificates,
|
|
5416
5416
|
"onUpdate:modelValue": g[20] || (g[20] = (K) => s.fields.ca_certificates = K),
|
|
@@ -5428,10 +5428,10 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
5428
5428
|
scope: "global"
|
|
5429
5429
|
}, {
|
|
5430
5430
|
code1: v(() => [
|
|
5431
|
-
E("code", null,
|
|
5431
|
+
E("code", null, j(f(l)("gateway_services.form.fields.ca_certificates.code1")), 1)
|
|
5432
5432
|
]),
|
|
5433
5433
|
code2: v(() => [
|
|
5434
|
-
E("code", null,
|
|
5434
|
+
E("code", null, j(f(l)("gateway_services.form.fields.ca_certificates.code2")), 1)
|
|
5435
5435
|
]),
|
|
5436
5436
|
_: 1
|
|
5437
5437
|
})
|
|
@@ -5439,7 +5439,7 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
5439
5439
|
_: 1
|
|
5440
5440
|
}, 8, ["modelValue", "label", "placeholder", "readonly"])
|
|
5441
5441
|
])) : J("", !0),
|
|
5442
|
-
pe.value ? (w(), T("div",
|
|
5442
|
+
pe.value ? (w(), T("div", qs, [
|
|
5443
5443
|
C(_, {
|
|
5444
5444
|
modelValue: s.fields.tls_verify_enabled,
|
|
5445
5445
|
"onUpdate:modelValue": g[21] || (g[21] = (K) => s.fields.tls_verify_enabled = K),
|
|
@@ -5453,14 +5453,14 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
5453
5453
|
scope: "global"
|
|
5454
5454
|
}, {
|
|
5455
5455
|
code1: v(() => [
|
|
5456
|
-
E("code", null,
|
|
5456
|
+
E("code", null, j(f(l)("gateway_services.form.fields.tls_verify_enabled.code1")), 1)
|
|
5457
5457
|
]),
|
|
5458
5458
|
_: 1
|
|
5459
5459
|
})
|
|
5460
5460
|
]),
|
|
5461
5461
|
_: 1
|
|
5462
5462
|
}, 8, ["modelValue", "description", "label"]),
|
|
5463
|
-
s.fields.tls_verify_enabled ? (w(), T("div",
|
|
5463
|
+
s.fields.tls_verify_enabled ? (w(), T("div", Ls, [
|
|
5464
5464
|
C(Y, {
|
|
5465
5465
|
modelValue: s.fields.tls_verify_value,
|
|
5466
5466
|
"onUpdate:modelValue": g[22] || (g[22] = (K) => s.fields.tls_verify_value = K),
|
|
@@ -5469,7 +5469,7 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
5469
5469
|
"selected-value": !0
|
|
5470
5470
|
}, null, 8, ["modelValue", "label"])
|
|
5471
5471
|
])) : J("", !0),
|
|
5472
|
-
s.fields.tls_verify_enabled ? (w(), T("div",
|
|
5472
|
+
s.fields.tls_verify_enabled ? (w(), T("div", Vs, [
|
|
5473
5473
|
C(Y, {
|
|
5474
5474
|
modelValue: s.fields.tls_verify_value,
|
|
5475
5475
|
"onUpdate:modelValue": g[23] || (g[23] = (K) => s.fields.tls_verify_value = K),
|
|
@@ -5492,7 +5492,7 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
5492
5492
|
]);
|
|
5493
5493
|
};
|
|
5494
5494
|
}
|
|
5495
|
-
}),
|
|
5495
|
+
}), Qs = /* @__PURE__ */ lr(Ks, [["__scopeId", "data-v-55404159"]]), Us = { class: "kong-ui-gateway-service-entity-config-card" }, Xs = /* @__PURE__ */ X({
|
|
5496
5496
|
__name: "GatewayServiceConfigCard",
|
|
5497
5497
|
props: {
|
|
5498
5498
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -5519,7 +5519,7 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
5519
5519
|
},
|
|
5520
5520
|
emits: ["loading", "fetch:error", "fetch:success"],
|
|
5521
5521
|
setup(e) {
|
|
5522
|
-
const i = e, { i18n: { t }, i18nT: a } =
|
|
5522
|
+
const i = e, { i18n: { t }, i18nT: a } = it.useI18n(), r = A(() => Ge.form[i.config.app].edit), { getPropValue: n } = ms(), o = (l, d) => n(l, d) === !0 ? t("gateway_services.form.fields.tls_verify_option.true.display") : t("gateway_services.form.fields.tls_verify_option.false.display"), c = F({
|
|
5523
5523
|
id: {},
|
|
5524
5524
|
name: {
|
|
5525
5525
|
tooltip: t("gateway_services.form.fields.name.tooltip")
|
|
@@ -5579,8 +5579,8 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
5579
5579
|
hidden: !0
|
|
5580
5580
|
}
|
|
5581
5581
|
});
|
|
5582
|
-
return (l, d) => (w(), T("div",
|
|
5583
|
-
C(f(
|
|
5582
|
+
return (l, d) => (w(), T("div", Us, [
|
|
5583
|
+
C(f(Tl), {
|
|
5584
5584
|
config: e.config,
|
|
5585
5585
|
"config-card-doc": e.configCardDoc,
|
|
5586
5586
|
"config-schema": c.value,
|
|
@@ -5596,10 +5596,10 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
5596
5596
|
scope: "global"
|
|
5597
5597
|
}, {
|
|
5598
5598
|
false: v(() => [
|
|
5599
|
-
E("code", null,
|
|
5599
|
+
E("code", null, j(f(t)("gateway_services.form.fields.enabled.false")), 1)
|
|
5600
5600
|
]),
|
|
5601
5601
|
true: v(() => [
|
|
5602
|
-
E("code", null,
|
|
5602
|
+
E("code", null, j(f(t)("gateway_services.form.fields.enabled.true")), 1)
|
|
5603
5603
|
]),
|
|
5604
5604
|
_: 1
|
|
5605
5605
|
})
|
|
@@ -5610,10 +5610,10 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
5610
5610
|
scope: "global"
|
|
5611
5611
|
}, {
|
|
5612
5612
|
code1: v(() => [
|
|
5613
|
-
E("code", null,
|
|
5613
|
+
E("code", null, j(f(t)("gateway_services.form.fields.ca_certificates.code1")), 1)
|
|
5614
5614
|
]),
|
|
5615
5615
|
code2: v(() => [
|
|
5616
|
-
E("code", null,
|
|
5616
|
+
E("code", null, j(f(t)("gateway_services.form.fields.ca_certificates.code2")), 1)
|
|
5617
5617
|
]),
|
|
5618
5618
|
_: 1
|
|
5619
5619
|
})
|
|
@@ -5624,16 +5624,16 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
5624
5624
|
scope: "global"
|
|
5625
5625
|
}, {
|
|
5626
5626
|
code1: v(() => [
|
|
5627
|
-
E("code", null,
|
|
5627
|
+
E("code", null, j(f(t)("gateway_services.form.fields.tls_verify_enabled.code1")), 1)
|
|
5628
5628
|
]),
|
|
5629
5629
|
_: 1
|
|
5630
5630
|
})
|
|
5631
5631
|
]),
|
|
5632
5632
|
tls_verify: v((m) => [
|
|
5633
|
-
G(
|
|
5633
|
+
G(j(typeof f(n)("rowValue", m) == "boolean" ? o("rowValue", m) : f(t)("gateway_services.form.fields.tls_verify_option.unset.display")), 1)
|
|
5634
5634
|
]),
|
|
5635
5635
|
client_certificate: v((m) => [
|
|
5636
|
-
G(
|
|
5636
|
+
G(j(f(n)("rowValue", m) ? f(n)("rowValue", m).id : "–"), 1)
|
|
5637
5637
|
]),
|
|
5638
5638
|
_: 1
|
|
5639
5639
|
}, 8, ["config", "config-card-doc", "config-schema", "fetch-url", "hide-title"])
|
|
@@ -5641,7 +5641,7 @@ const zn = { class: "yaml-config" }, rr = /* @__PURE__ */ X({
|
|
|
5641
5641
|
}
|
|
5642
5642
|
});
|
|
5643
5643
|
export {
|
|
5644
|
-
|
|
5645
|
-
|
|
5646
|
-
|
|
5644
|
+
Xs as GatewayServiceConfigCard,
|
|
5645
|
+
Qs as GatewayServiceForm,
|
|
5646
|
+
Zs as GatewayServiceList
|
|
5647
5647
|
};
|