@kong-ui-public/entities-gateway-services 1.3.10 → 1.3.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities-gateway-services.es.js +1019 -1019
- package/dist/entities-gateway-services.umd.js +7 -7
- package/dist/style.css +1 -1
- package/package.json +2 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as ne, ref as V, computed as T, resolveComponent as F, openBlock as h, createBlock as q, Teleport as Wi, createVNode as S, withCtx as g, unref as m, createTextVNode as D, toDisplayString as M, createElementVNode as O, watch as we, renderSlot as Q, createCommentVNode as U, useSlots as tt, onBeforeMount as gt, createSlots as xe, createElementBlock as $, renderList as ve, Fragment as he, normalizeClass as $e, withModifiers as Ne, withDirectives as ze, vShow as Ye, useCssVars as Zi, resolveDynamicComponent as qe, normalizeProps as Qi, guardReactiveProps as Xi, mergeProps as ct, onMounted as Xt, onUnmounted as eo, normalizeStyle as to, inject as io, pushScopeId as oo, popScopeId as ao, reactive as Tt } from "vue";
|
|
2
2
|
import { useRouter as vt } from "vue-router";
|
|
3
3
|
import { createI18n as ht, i18nTComponent as ei } from "@kong-ui-public/i18n";
|
|
4
|
-
import
|
|
5
|
-
import { MethodsArray as
|
|
6
|
-
const
|
|
4
|
+
import ro from "axios";
|
|
5
|
+
import { MethodsArray as lo } from "@kong/kongponents";
|
|
6
|
+
const no = {
|
|
7
7
|
create: "New Gateway Service",
|
|
8
8
|
copy_id: "Copy ID",
|
|
9
9
|
copy_json: "Copy JSON",
|
|
@@ -19,9 +19,9 @@ const la = {
|
|
|
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
|
+
}, so = {
|
|
23
23
|
placeholder: "Filter by exact name or ID"
|
|
24
|
-
},
|
|
24
|
+
}, co = {
|
|
25
25
|
title: "Gateway Services",
|
|
26
26
|
list: {
|
|
27
27
|
toolbar_actions: {
|
|
@@ -158,39 +158,39 @@ const la = {
|
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
|
-
},
|
|
161
|
+
}, uo = {
|
|
162
162
|
general: "Gateway Services could not be retrieved",
|
|
163
163
|
delete: "The gateway service could not be deleted at this time.",
|
|
164
164
|
copy: "Failed to copy to clipboard",
|
|
165
165
|
urlErrorMessage: "Error: invalid URL",
|
|
166
166
|
validationNameError: "The name can be any string containing letters, numbers, or the following characters: ., -, _, or ~. Do not use spaces."
|
|
167
|
-
},
|
|
167
|
+
}, po = {
|
|
168
168
|
success: "Copied {val} to clipboard",
|
|
169
169
|
success_brief: "Successfully copied to clipboard"
|
|
170
|
-
},
|
|
170
|
+
}, fo = {
|
|
171
171
|
gateway_services: "gateway services"
|
|
172
|
-
},
|
|
173
|
-
actions:
|
|
174
|
-
search:
|
|
175
|
-
gateway_services:
|
|
176
|
-
errors:
|
|
177
|
-
copy:
|
|
178
|
-
glossary:
|
|
172
|
+
}, mo = {
|
|
173
|
+
actions: no,
|
|
174
|
+
search: so,
|
|
175
|
+
gateway_services: co,
|
|
176
|
+
errors: uo,
|
|
177
|
+
copy: po,
|
|
178
|
+
glossary: fo
|
|
179
179
|
};
|
|
180
|
-
function
|
|
181
|
-
const e = ht("en-us",
|
|
180
|
+
function yo() {
|
|
181
|
+
const e = ht("en-us", mo);
|
|
182
182
|
return {
|
|
183
183
|
i18n: e,
|
|
184
184
|
i18nT: ei(e)
|
|
185
185
|
// Translation component <i18n-t>
|
|
186
186
|
};
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function go() {
|
|
189
189
|
return {
|
|
190
190
|
getPortFromProtocol: (i, t) => {
|
|
191
|
-
const
|
|
192
|
-
if ((
|
|
193
|
-
return
|
|
191
|
+
const o = [80, 443], a = Number(t);
|
|
192
|
+
if ((a || a === 0) && !o.includes(a))
|
|
193
|
+
return a;
|
|
194
194
|
switch (i) {
|
|
195
195
|
case "grpcs":
|
|
196
196
|
case "tls":
|
|
@@ -208,8 +208,8 @@ function ya() {
|
|
|
208
208
|
};
|
|
209
209
|
}
|
|
210
210
|
const Je = {
|
|
211
|
-
useI18n:
|
|
212
|
-
usePortFromProtocol:
|
|
211
|
+
useI18n: yo,
|
|
212
|
+
usePortFromProtocol: go
|
|
213
213
|
}, Ke = {
|
|
214
214
|
list: {
|
|
215
215
|
konnect: {
|
|
@@ -235,37 +235,37 @@ const Je = {
|
|
|
235
235
|
var ti = /* @__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))(ti || {}), ut = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(ut || {}), Ae = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(Ae || {}), te = /* @__PURE__ */ ((e) => (e.ID = "id", e.IdArray = "id-array", e.Text = "plain-text", e.Date = "date", e.Redacted = "redacted", e.RedactedArray = "redacted-array", e.Json = "json", e.JsonArray = "json-array", e.BadgeTag = "badge-tag", e.BadgeStatus = "badge-status", e.BadgeMethod = "badge-method", e.LinkInternal = "link-internal", e.LinkExternal = "link-external", e))(te || {}), fe = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(fe || {});
|
|
236
236
|
function bt(e = {}) {
|
|
237
237
|
return {
|
|
238
|
-
axiosInstance:
|
|
238
|
+
axiosInstance: ro.create({
|
|
239
239
|
withCredentials: !0,
|
|
240
240
|
timeout: 3e4,
|
|
241
241
|
...e
|
|
242
242
|
})
|
|
243
243
|
};
|
|
244
244
|
}
|
|
245
|
-
function
|
|
245
|
+
function vo() {
|
|
246
246
|
return {
|
|
247
247
|
debounce: (e, i) => {
|
|
248
248
|
let t;
|
|
249
|
-
return (...
|
|
249
|
+
return (...o) => {
|
|
250
250
|
clearTimeout(t), t = window == null ? void 0 : window.setTimeout(() => {
|
|
251
|
-
e(...
|
|
251
|
+
e(...o);
|
|
252
252
|
}, i);
|
|
253
253
|
};
|
|
254
254
|
}
|
|
255
255
|
};
|
|
256
256
|
}
|
|
257
|
-
const rt = "khcp-user-table-preferences",
|
|
257
|
+
const rt = "khcp-user-table-preferences", ho = {
|
|
258
258
|
pageSize: 30,
|
|
259
259
|
sortColumnKey: void 0,
|
|
260
260
|
sortColumnOrder: void 0
|
|
261
261
|
};
|
|
262
|
-
function
|
|
262
|
+
function bo() {
|
|
263
263
|
const e = (t) => {
|
|
264
264
|
if (typeof t == "string")
|
|
265
265
|
try {
|
|
266
266
|
return JSON.parse(t);
|
|
267
|
-
} catch (
|
|
268
|
-
console.error("useTablePreferences(tryParseJson)",
|
|
267
|
+
} catch (o) {
|
|
268
|
+
console.error("useTablePreferences(tryParseJson)", o);
|
|
269
269
|
return;
|
|
270
270
|
}
|
|
271
271
|
}, i = () => {
|
|
@@ -273,27 +273,27 @@ function ha() {
|
|
|
273
273
|
return !t || !Object.keys(t).length ? /* @__PURE__ */ new Map() : new Map(Object.entries(t));
|
|
274
274
|
};
|
|
275
275
|
return {
|
|
276
|
-
setTablePreferences: (t,
|
|
276
|
+
setTablePreferences: (t, o) => {
|
|
277
277
|
try {
|
|
278
|
-
const
|
|
279
|
-
|
|
280
|
-
} catch (
|
|
281
|
-
console.error("useTablePreferences(setTablePreferences)",
|
|
278
|
+
const a = i();
|
|
279
|
+
a.set(t, o), localStorage.setItem(rt, JSON.stringify(Object.fromEntries(a.entries())));
|
|
280
|
+
} catch (a) {
|
|
281
|
+
console.error("useTablePreferences(setTablePreferences)", a);
|
|
282
282
|
}
|
|
283
283
|
},
|
|
284
284
|
getTablePreferences: (t) => {
|
|
285
|
-
const
|
|
286
|
-
return (
|
|
285
|
+
const o = i();
|
|
286
|
+
return (o == null ? void 0 : o.get(t)) || void 0 || ho;
|
|
287
287
|
},
|
|
288
288
|
deleteAllTablePreferences: () => {
|
|
289
289
|
localStorage.removeItem(rt);
|
|
290
290
|
}
|
|
291
291
|
};
|
|
292
292
|
}
|
|
293
|
-
const
|
|
293
|
+
const _o = {
|
|
294
294
|
message: "Are you sure you want to delete this {entityType}?",
|
|
295
295
|
messageWithName: "Are you sure you want to delete this {entityType} {entityName}?"
|
|
296
|
-
},
|
|
296
|
+
}, wo = {
|
|
297
297
|
actions: {
|
|
298
298
|
save: "Save",
|
|
299
299
|
cancel: "Cancel",
|
|
@@ -302,13 +302,13 @@ const ba = {
|
|
|
302
302
|
errors: {
|
|
303
303
|
edit: "The entity could not be edited at this time."
|
|
304
304
|
}
|
|
305
|
-
},
|
|
305
|
+
}, ko = {
|
|
306
306
|
emptyState: {
|
|
307
307
|
noSearchResultsTitle: "No results found",
|
|
308
308
|
noSearchResultsMessage: "Please adjust the criteria and try again.",
|
|
309
309
|
noSearchResultsCtaText: "Clear"
|
|
310
310
|
}
|
|
311
|
-
},
|
|
311
|
+
}, Co = {
|
|
312
312
|
title: "Configuration",
|
|
313
313
|
actions: {
|
|
314
314
|
copy: "Copy JSON"
|
|
@@ -343,7 +343,7 @@ const ba = {
|
|
|
343
343
|
entryTitle: "Entry {index}",
|
|
344
344
|
structuredFormat: "Structured"
|
|
345
345
|
}
|
|
346
|
-
},
|
|
346
|
+
}, So = {
|
|
347
347
|
filterButtonText: "Filter",
|
|
348
348
|
fieldLabel: "Filter by:",
|
|
349
349
|
inputPlaceholder: "Enter a value",
|
|
@@ -351,15 +351,15 @@ const ba = {
|
|
|
351
351
|
applyButtonText: "Apply",
|
|
352
352
|
clearButtonText: "Clear",
|
|
353
353
|
clearAllButtonText: "Clear all filters"
|
|
354
|
-
},
|
|
354
|
+
}, Io = {
|
|
355
355
|
errors: {
|
|
356
356
|
fetch: "Could not fetch available items",
|
|
357
357
|
invalid: "Please select a valid value"
|
|
358
358
|
}
|
|
359
|
-
},
|
|
359
|
+
}, Ao = {
|
|
360
360
|
unexpected: "An unexpected error has occurred",
|
|
361
361
|
dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.'
|
|
362
|
-
},
|
|
362
|
+
}, xo = {
|
|
363
363
|
enable: {
|
|
364
364
|
title: "Enable {entityType}",
|
|
365
365
|
message: "Are you sure you want to enable the {entityType} {entityName}?",
|
|
@@ -370,32 +370,32 @@ const ba = {
|
|
|
370
370
|
message: "Are you sure you want to disable the {entityType} {entityName}?",
|
|
371
371
|
confirmText: "Yes, disable"
|
|
372
372
|
}
|
|
373
|
-
},
|
|
374
|
-
deleteModal:
|
|
375
|
-
baseForm:
|
|
376
|
-
baseTable:
|
|
377
|
-
baseConfigCard:
|
|
378
|
-
filter:
|
|
379
|
-
debouncedFilter:
|
|
380
|
-
errors:
|
|
381
|
-
toggleModal:
|
|
373
|
+
}, To = {
|
|
374
|
+
deleteModal: _o,
|
|
375
|
+
baseForm: wo,
|
|
376
|
+
baseTable: ko,
|
|
377
|
+
baseConfigCard: Co,
|
|
378
|
+
filter: So,
|
|
379
|
+
debouncedFilter: Io,
|
|
380
|
+
errors: Ao,
|
|
381
|
+
toggleModal: xo
|
|
382
382
|
};
|
|
383
383
|
function _t() {
|
|
384
|
-
const e = ht("en-us",
|
|
384
|
+
const e = ht("en-us", To);
|
|
385
385
|
return {
|
|
386
386
|
i18n: e,
|
|
387
387
|
i18nT: ei(e)
|
|
388
388
|
// Translation component <i18n-t>
|
|
389
389
|
};
|
|
390
390
|
}
|
|
391
|
-
function
|
|
391
|
+
function $o(e, i, t, o = {
|
|
392
392
|
fetchedItemsKey: "data",
|
|
393
393
|
searchKeys: ["id"]
|
|
394
394
|
}) {
|
|
395
395
|
t || (t = "100");
|
|
396
|
-
const { axiosInstance:
|
|
396
|
+
const { axiosInstance: a } = bt({
|
|
397
397
|
headers: e.requestHeaders
|
|
398
|
-
}), { i18n: { t: r } } = _t(), { debounce:
|
|
398
|
+
}), { i18n: { t: r } } = _t(), { debounce: n } = vo(), l = n(async (s) => {
|
|
399
399
|
await A(s);
|
|
400
400
|
}, 200), c = V(!1), d = V(""), f = V(""), p = V([]), _ = V(void 0), b = m(i);
|
|
401
401
|
let C = `${e.apiBaseUrl}${b}`;
|
|
@@ -403,8 +403,8 @@ function Ta(e, i, t, a = {
|
|
|
403
403
|
const I = async () => {
|
|
404
404
|
try {
|
|
405
405
|
c.value = !0;
|
|
406
|
-
const { data: s } = await
|
|
407
|
-
s != null && s.next || (_.value =
|
|
406
|
+
const { data: s } = await a.get(`${C}?size=${t}`);
|
|
407
|
+
s != null && s.next || (_.value = o.fetchedItemsKey in s ? s[o.fetchedItemsKey] : []), p.value = o.fetchedItemsKey in s ? s[o.fetchedItemsKey] : [];
|
|
408
408
|
} catch {
|
|
409
409
|
p.value = [], d.value = r("debouncedFilter.errors.fetch");
|
|
410
410
|
} finally {
|
|
@@ -418,8 +418,8 @@ function Ta(e, i, t, a = {
|
|
|
418
418
|
c.value = !0, d.value = "", f.value = "";
|
|
419
419
|
let K = C + "";
|
|
420
420
|
s && (K += `/${s}`);
|
|
421
|
-
const { data: ie } = await
|
|
422
|
-
|
|
421
|
+
const { data: ie } = await a.get(`${K}?size=${t}`);
|
|
422
|
+
o.fetchedItemsKey in ie ? p.value = ie[o.fetchedItemsKey] : ie != null && ie.id ? p.value = [ie] : p.value = [];
|
|
423
423
|
} catch (K) {
|
|
424
424
|
((k = K == null ? void 0 : K.response) == null ? void 0 : k.status) === 404 ? f.value = r("debouncedFilter.errors.invalid") : (p.value = [], d.value = r("debouncedFilter.errors.fetch"));
|
|
425
425
|
} finally {
|
|
@@ -429,7 +429,7 @@ function Ta(e, i, t, a = {
|
|
|
429
429
|
c.value = !0, f.value = "", s ? (p.value = (B = _.value) == null ? void 0 : B.filter((K) => {
|
|
430
430
|
var ie;
|
|
431
431
|
let J = !1;
|
|
432
|
-
for (const x of
|
|
432
|
+
for (const x of o.searchKeys) {
|
|
433
433
|
const R = typeof K[x] == "string" ? (ie = K[x]) == null ? void 0 : ie.toLowerCase() : K[x];
|
|
434
434
|
R != null && R.includes(s.toLowerCase()) && (J = !0);
|
|
435
435
|
}
|
|
@@ -443,33 +443,33 @@ function Ta(e, i, t, a = {
|
|
|
443
443
|
results: p,
|
|
444
444
|
allRecords: _,
|
|
445
445
|
loadItems: I,
|
|
446
|
-
debouncedQueryChange:
|
|
446
|
+
debouncedQueryChange: l
|
|
447
447
|
};
|
|
448
448
|
}
|
|
449
|
-
function
|
|
450
|
-
const t = m(i),
|
|
449
|
+
function jo(e, i) {
|
|
450
|
+
const t = m(i), o = T(
|
|
451
451
|
() => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${t}`) : new URL(t)
|
|
452
452
|
);
|
|
453
|
-
return
|
|
453
|
+
return o.value.search = "", (a) => `${o.value.href}/${a}`;
|
|
454
454
|
}
|
|
455
|
-
function
|
|
455
|
+
function Mo() {
|
|
456
456
|
const { i18n: { t: e } } = _t();
|
|
457
457
|
return {
|
|
458
458
|
getMessageFromError: (i) => {
|
|
459
|
-
var t,
|
|
459
|
+
var t, o, a;
|
|
460
460
|
if (!i)
|
|
461
461
|
return e("errors.unexpected");
|
|
462
462
|
if ((t = i == null ? void 0 : i.response) != null && t.data) {
|
|
463
463
|
if (i.response.data.detail)
|
|
464
464
|
return i.response.data.detail;
|
|
465
|
-
if ((
|
|
465
|
+
if ((o = i.response.data.details) != null && o.length)
|
|
466
466
|
return i.response.data.details.map((r) => {
|
|
467
|
-
let
|
|
468
|
-
return r.messages && typeof r.messages == "object" && r.messages.length && (
|
|
467
|
+
let n = e("errors.unexpected");
|
|
468
|
+
return r.messages && typeof r.messages == "object" && r.messages.length && (n = r.messages.join(", ")), r.field ? `${r.field} - ${n}` : n;
|
|
469
469
|
}).join("; ");
|
|
470
470
|
if (i.response.data.message) {
|
|
471
471
|
const { message: r } = i.response.data;
|
|
472
|
-
return Array.isArray(r) ? (
|
|
472
|
+
return Array.isArray(r) ? (a = r[0]) != null && a.constraints ? Object.values(r[0].constraints)[0] : r[0] : r;
|
|
473
473
|
}
|
|
474
474
|
if (typeof i.response.data == "string")
|
|
475
475
|
return i.response.data;
|
|
@@ -481,33 +481,33 @@ function ja() {
|
|
|
481
481
|
};
|
|
482
482
|
}
|
|
483
483
|
function ii(e, i) {
|
|
484
|
-
const t = V(m(e)),
|
|
484
|
+
const t = V(m(e)), o = V(m(i)), a = T(
|
|
485
485
|
() => !!(t.value.app === "konnect" || t.value.isExactMatch)
|
|
486
486
|
), r = T(
|
|
487
|
-
() =>
|
|
487
|
+
() => o.value.startsWith("/") ? new URL(`${window.location.origin}${o.value}`) : new URL(o.value)
|
|
488
488
|
);
|
|
489
|
-
return (
|
|
490
|
-
const { page:
|
|
489
|
+
return (n) => {
|
|
490
|
+
const { page: l, pageSize: c, offset: d, sortColumnKey: f, sortColumnOrder: p, query: _ } = n;
|
|
491
491
|
try {
|
|
492
492
|
let b = new URL(r.value.href);
|
|
493
|
-
return
|
|
493
|
+
return a.value && _ ? (b.search = "", b = new URL(`${b.href}/${_}/`)) : (a.value || new URLSearchParams(_).forEach((C, I) => {
|
|
494
494
|
b.searchParams.append(I, C);
|
|
495
|
-
}), f && b.searchParams.append("sort_by", f), p === "desc" && b.searchParams.append("sort_desc", "1"), b.searchParams.append("size", String(c))), d &&
|
|
495
|
+
}), f && b.searchParams.append("sort_by", f), p === "desc" && b.searchParams.append("sort_desc", "1"), b.searchParams.append("size", String(c))), d && l !== 1 && b.searchParams.append("offset", String(d)), b.href;
|
|
496
496
|
} catch (b) {
|
|
497
|
-
return console.error("RouteList(fetcher)", b),
|
|
497
|
+
return console.error("RouteList(fetcher)", b), o.value;
|
|
498
498
|
}
|
|
499
499
|
};
|
|
500
500
|
}
|
|
501
|
-
function
|
|
502
|
-
const
|
|
501
|
+
function Eo(e, i, t = "data") {
|
|
502
|
+
const o = m(i), { axiosInstance: a } = bt({
|
|
503
503
|
headers: e.requestHeaders
|
|
504
|
-
}), r = ii(e,
|
|
504
|
+
}), r = ii(e, o), n = V({
|
|
505
505
|
status: Ae.Idle
|
|
506
506
|
});
|
|
507
|
-
return { fetcher: async (
|
|
507
|
+
return { fetcher: async (l) => {
|
|
508
508
|
try {
|
|
509
|
-
|
|
510
|
-
const c = r(
|
|
509
|
+
n.value = { status: Ae.Loading };
|
|
510
|
+
const c = r(l), { data: d } = await a.get(c), f = t && t.replace(/[^\w-_]/gi, "");
|
|
511
511
|
let p;
|
|
512
512
|
d[f] && Array.isArray(d[f]) ? p = d[f] : p = Object.keys(d).length ? [d] : [];
|
|
513
513
|
const _ = {
|
|
@@ -519,7 +519,7 @@ function Ma(e, i, t = "data") {
|
|
|
519
519
|
}
|
|
520
520
|
} : null
|
|
521
521
|
};
|
|
522
|
-
return
|
|
522
|
+
return n.value = {
|
|
523
523
|
status: Ae.Idle,
|
|
524
524
|
response: _
|
|
525
525
|
}, _;
|
|
@@ -528,113 +528,113 @@ function Ma(e, i, t = "data") {
|
|
|
528
528
|
data: [],
|
|
529
529
|
total: 0
|
|
530
530
|
};
|
|
531
|
-
return
|
|
531
|
+
return l.query && c.response.status === 404 ? (n.value = {
|
|
532
532
|
status: Ae.NoResults,
|
|
533
533
|
response: d,
|
|
534
534
|
error: c
|
|
535
|
-
}, d) : (
|
|
535
|
+
}, d) : (n.value = {
|
|
536
536
|
status: Ae.Error,
|
|
537
537
|
response: d,
|
|
538
538
|
error: c
|
|
539
539
|
}, d);
|
|
540
540
|
}
|
|
541
|
-
}, fetcherState:
|
|
541
|
+
}, fetcherState: n };
|
|
542
542
|
}
|
|
543
|
-
function
|
|
543
|
+
function Oo() {
|
|
544
544
|
return {
|
|
545
545
|
getPropValue: (e, i) => (i == null ? void 0 : i[e]) ?? void 0
|
|
546
546
|
};
|
|
547
547
|
}
|
|
548
|
-
function
|
|
548
|
+
function Vo() {
|
|
549
549
|
return {
|
|
550
550
|
convertKeyToTitle: (e, i = "_") => e ? e.split(i).map((t) => t.toLowerCase() === "id" ? t.toUpperCase() : t.charAt(0).toUpperCase() + t.substring(1)).join(" ") : ""
|
|
551
551
|
};
|
|
552
552
|
}
|
|
553
|
-
const
|
|
553
|
+
const oi = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, $t = (e) => {
|
|
554
554
|
if (typeof e != "string")
|
|
555
555
|
throw new TypeError("Invalid argument expected string");
|
|
556
|
-
const i = e.match(
|
|
556
|
+
const i = e.match(oi);
|
|
557
557
|
if (!i)
|
|
558
558
|
throw new Error(`Invalid argument not valid semver ('${e}' received)`);
|
|
559
559
|
return i.shift(), i;
|
|
560
560
|
}, jt = (e) => e === "*" || e === "x" || e === "X", Mt = (e) => {
|
|
561
561
|
const i = parseInt(e, 10);
|
|
562
562
|
return isNaN(i) ? e : i;
|
|
563
|
-
},
|
|
563
|
+
}, Fo = (e, i) => typeof e != typeof i ? [String(e), String(i)] : [e, i], No = (e, i) => {
|
|
564
564
|
if (jt(e) || jt(i))
|
|
565
565
|
return 0;
|
|
566
|
-
const [t,
|
|
567
|
-
return t >
|
|
566
|
+
const [t, o] = Fo(Mt(e), Mt(i));
|
|
567
|
+
return t > o ? 1 : t < o ? -1 : 0;
|
|
568
568
|
}, Et = (e, i) => {
|
|
569
569
|
for (let t = 0; t < Math.max(e.length, i.length); t++) {
|
|
570
|
-
const
|
|
571
|
-
if (
|
|
572
|
-
return
|
|
570
|
+
const o = No(e[t] || "0", i[t] || "0");
|
|
571
|
+
if (o !== 0)
|
|
572
|
+
return o;
|
|
573
573
|
}
|
|
574
574
|
return 0;
|
|
575
|
-
},
|
|
576
|
-
const t = $t(e),
|
|
577
|
-
return
|
|
575
|
+
}, Bo = (e, i) => {
|
|
576
|
+
const t = $t(e), o = $t(i), a = t.pop(), r = o.pop(), n = Et(t, o);
|
|
577
|
+
return n !== 0 ? n : a && r ? Et(a.split("."), r.split(".")) : a || r ? a ? -1 : 1 : 0;
|
|
578
578
|
}, Ot = (e, i, t) => {
|
|
579
|
-
|
|
580
|
-
const
|
|
581
|
-
return
|
|
582
|
-
},
|
|
579
|
+
Lo(t);
|
|
580
|
+
const o = Bo(e, i);
|
|
581
|
+
return ai[t].includes(o);
|
|
582
|
+
}, ai = {
|
|
583
583
|
">": [1],
|
|
584
584
|
">=": [0, 1],
|
|
585
585
|
"=": [0],
|
|
586
586
|
"<=": [-1, 0],
|
|
587
587
|
"<": [-1],
|
|
588
588
|
"!=": [-1, 1]
|
|
589
|
-
}, Vt = Object.keys(
|
|
589
|
+
}, Vt = Object.keys(ai), Lo = (e) => {
|
|
590
590
|
if (typeof e != "string")
|
|
591
591
|
throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
|
|
592
592
|
if (Vt.indexOf(e) === -1)
|
|
593
593
|
throw new Error(`Invalid operator, expected one of ${Vt.join("|")}`);
|
|
594
|
-
},
|
|
595
|
-
function
|
|
594
|
+
}, Po = (e) => typeof e == "string" && /^[v\d]/.test(e) && oi.test(e);
|
|
595
|
+
function Ko(e) {
|
|
596
596
|
const { gatewayInfo: i, supportedRange: t } = e;
|
|
597
597
|
if (!i)
|
|
598
598
|
return !0;
|
|
599
|
-
const { edition:
|
|
600
|
-
if (!
|
|
599
|
+
const { edition: o, version: a } = i;
|
|
600
|
+
if (!Po(a))
|
|
601
601
|
return console.error("Invalid version"), !1;
|
|
602
|
-
const r = t[
|
|
602
|
+
const r = t[o];
|
|
603
603
|
if (!r)
|
|
604
604
|
return !1;
|
|
605
|
-
const [
|
|
606
|
-
return !(
|
|
605
|
+
const [n, l] = r;
|
|
606
|
+
return !(n && Ot(a, n, "<") || l && Ot(a, l, ">"));
|
|
607
607
|
}
|
|
608
|
-
function
|
|
609
|
-
const i = V(0), t = V(0),
|
|
610
|
-
return we(e, (
|
|
611
|
-
|
|
608
|
+
function qo(e) {
|
|
609
|
+
const i = V(0), t = V(0), o = V(!1);
|
|
610
|
+
return we(e, (a) => {
|
|
611
|
+
a && !o.value && (i.value = a.offsetWidth, t.value = a.scrollWidth, o.value = !0);
|
|
612
612
|
}), {
|
|
613
613
|
isTruncated: T(() => i.value < t.value)
|
|
614
614
|
};
|
|
615
615
|
}
|
|
616
616
|
const ce = {
|
|
617
617
|
useAxios: bt,
|
|
618
|
-
useDebouncedFilter:
|
|
619
|
-
useDeleteUrlBuilder:
|
|
620
|
-
useErrors:
|
|
621
|
-
useFetcher:
|
|
618
|
+
useDebouncedFilter: $o,
|
|
619
|
+
useDeleteUrlBuilder: jo,
|
|
620
|
+
useErrors: Mo,
|
|
621
|
+
useFetcher: Eo,
|
|
622
622
|
useFetchUrlBuilder: ii,
|
|
623
|
-
useHelpers:
|
|
624
|
-
useStringHelpers:
|
|
623
|
+
useHelpers: Oo,
|
|
624
|
+
useStringHelpers: Vo,
|
|
625
625
|
useI18n: _t,
|
|
626
|
-
useGatewayFeatureSupported:
|
|
627
|
-
useTruncationDetector:
|
|
628
|
-
},
|
|
626
|
+
useGatewayFeatureSupported: Ko,
|
|
627
|
+
useTruncationDetector: qo
|
|
628
|
+
}, Uo = {
|
|
629
629
|
fail: "Failed to copy id to clipboard",
|
|
630
630
|
success: {
|
|
631
631
|
prefix: "Successfully",
|
|
632
632
|
content: " copied to clipboard"
|
|
633
633
|
}
|
|
634
|
-
},
|
|
635
|
-
message:
|
|
636
|
-
iconTitle:
|
|
637
|
-
},
|
|
634
|
+
}, Ro = "Copy to clipboard", Do = {
|
|
635
|
+
message: Uo,
|
|
636
|
+
iconTitle: Ro
|
|
637
|
+
}, Go = "kong-ui-copy-uuid-notify", Ho = { class: "kong-ui-copy-uuid" }, zo = ["onClick"], Ft = 15, Yo = /* @__PURE__ */ ne({
|
|
638
638
|
__name: "CopyUuid",
|
|
639
639
|
props: {
|
|
640
640
|
uuid: {
|
|
@@ -678,39 +678,39 @@ const ce = {
|
|
|
678
678
|
},
|
|
679
679
|
emits: ["success", "error"],
|
|
680
680
|
setup(e, { emit: i }) {
|
|
681
|
-
const t = e, { t:
|
|
681
|
+
const t = e, { t: o } = ht("en-us", Do), a = t.notify || io(Go, () => {
|
|
682
682
|
}), r = T(() => t.idTooltip ? {
|
|
683
683
|
label: t.idTooltip,
|
|
684
684
|
positionFixed: !0,
|
|
685
685
|
placement: "bottomStart"
|
|
686
686
|
} : {
|
|
687
687
|
title: t.uuid
|
|
688
|
-
}),
|
|
689
|
-
label:
|
|
688
|
+
}), n = T(() => !!(t.tooltip && t.successTooltip)), l = V(t.tooltip), c = T(() => t.tooltip ? {
|
|
689
|
+
label: l.value,
|
|
690
690
|
positionFixed: !0,
|
|
691
691
|
maxWidth: "500px",
|
|
692
692
|
placement: "bottomStart"
|
|
693
693
|
} : {}), d = T(() => t.format === "redacted" ? "*****" : t.format === "deleted" ? `*${t.uuid.substring(0, 5)}` : t.uuid), f = (_) => {
|
|
694
|
-
|
|
695
|
-
|
|
694
|
+
l.value = _, setTimeout(() => {
|
|
695
|
+
l.value = t.tooltip;
|
|
696
696
|
}, 1800);
|
|
697
697
|
}, p = (_) => {
|
|
698
698
|
if (!_(t.uuid)) {
|
|
699
|
-
typeof
|
|
699
|
+
typeof a == "function" && a({
|
|
700
700
|
type: "error",
|
|
701
|
-
message:
|
|
702
|
-
}),
|
|
701
|
+
message: o("message.fail")
|
|
702
|
+
}), n.value ? f(o("message.fail")) : i("error", t.uuid);
|
|
703
703
|
return;
|
|
704
704
|
}
|
|
705
|
-
const b = t.uuid.length > Ft, C = t.format === "hidden" || t.format === "redacted" ?
|
|
706
|
-
typeof
|
|
705
|
+
const b = t.uuid.length > Ft, C = t.format === "hidden" || t.format === "redacted" ? o("message.success.prefix") : `"${t.uuid.substring(0, Ft) + (b ? "..." : "")}"`;
|
|
706
|
+
typeof a == "function" && a({
|
|
707
707
|
type: "success",
|
|
708
|
-
message: `${C}${
|
|
709
|
-
}),
|
|
708
|
+
message: `${C}${o("message.success.content")}`
|
|
709
|
+
}), n.value ? f(t.successTooltip) : i("success", t.uuid);
|
|
710
710
|
};
|
|
711
711
|
return (_, b) => {
|
|
712
712
|
const C = F("KIcon"), I = F("KClipboardProvider");
|
|
713
|
-
return h(), $("div",
|
|
713
|
+
return h(), $("div", Ho, [
|
|
714
714
|
e.format !== "hidden" ? (h(), q(qe(e.idTooltip ? "KTooltip" : "div"), ct({ key: 0 }, r.value, { "data-testid": "copy-id" }), {
|
|
715
715
|
default: g(() => [
|
|
716
716
|
O("div", {
|
|
@@ -739,9 +739,9 @@ const ce = {
|
|
|
739
739
|
"hide-title": !!e.tooltip || void 0,
|
|
740
740
|
icon: "copy",
|
|
741
741
|
size: "16",
|
|
742
|
-
title: m(
|
|
742
|
+
title: m(o)("iconTitle")
|
|
743
743
|
}, null, 8, ["color", "hide-title", "title"])
|
|
744
|
-
], 8,
|
|
744
|
+
], 8, zo)
|
|
745
745
|
]),
|
|
746
746
|
_: 1
|
|
747
747
|
})
|
|
@@ -751,15 +751,15 @@ const ce = {
|
|
|
751
751
|
]);
|
|
752
752
|
};
|
|
753
753
|
}
|
|
754
|
-
}),
|
|
754
|
+
}), Jo = (e, i) => {
|
|
755
755
|
const t = e.__vccOpts || e;
|
|
756
|
-
for (const [
|
|
757
|
-
t[
|
|
756
|
+
for (const [o, a] of i)
|
|
757
|
+
t[o] = a;
|
|
758
758
|
return t;
|
|
759
|
-
}, ri = /* @__PURE__ */
|
|
759
|
+
}, ri = /* @__PURE__ */ Jo(Yo, [["__scopeId", "data-v-bfdaf6f7"]]), Wo = {
|
|
760
760
|
key: 0,
|
|
761
761
|
class: "config-card-fieldset-title"
|
|
762
|
-
},
|
|
762
|
+
}, Zo = /* @__PURE__ */ ne({
|
|
763
763
|
__name: "JsonCardItem",
|
|
764
764
|
props: {
|
|
765
765
|
item: {
|
|
@@ -776,26 +776,26 @@ const ce = {
|
|
|
776
776
|
}
|
|
777
777
|
},
|
|
778
778
|
setup(e) {
|
|
779
|
-
const i = e, { i18n: { t } } = ce.useI18n(), { convertKeyToTitle:
|
|
779
|
+
const i = e, { i18n: { t } } = ce.useI18n(), { convertKeyToTitle: o } = ce.useStringHelpers(), a = T(() => i.item.key ?? "json-array-item"), r = T(() => i.item.value ?? i.item), n = T(() => {
|
|
780
780
|
const c = JSON.parse(JSON.stringify(r.value));
|
|
781
781
|
return i.isArrayItem && delete c.name, c;
|
|
782
|
-
}),
|
|
782
|
+
}), l = T(() => {
|
|
783
783
|
var c;
|
|
784
|
-
return i.isArrayItem ? (c = r.value) != null && c.name ?
|
|
784
|
+
return i.isArrayItem ? (c = r.value) != null && c.name ? o(r.value.name, "_") : t("baseConfigCard.general.entryTitle", { index: i.index }) : "";
|
|
785
785
|
});
|
|
786
786
|
return (c, d) => (h(), q(qe(e.isArrayItem ? "fieldset" : "div"), {
|
|
787
787
|
class: $e(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
|
|
788
788
|
}, {
|
|
789
789
|
default: g(() => [
|
|
790
|
-
e.isArrayItem ? (h(), $("legend",
|
|
791
|
-
O("b", null, M(
|
|
790
|
+
e.isArrayItem ? (h(), $("legend", Wo, [
|
|
791
|
+
O("b", null, M(l.value), 1)
|
|
792
792
|
])) : U("", !0),
|
|
793
|
-
(h(!0), $(he, null, ve(Object.keys(
|
|
794
|
-
key: `${
|
|
793
|
+
(h(!0), $(he, null, ve(Object.keys(n.value), (f, p) => (h(), q(wt, {
|
|
794
|
+
key: `${a.value}-property-${p}`,
|
|
795
795
|
item: {
|
|
796
796
|
key: f,
|
|
797
|
-
label: m(
|
|
798
|
-
value:
|
|
797
|
+
label: m(o)(f),
|
|
798
|
+
value: n.value[f]
|
|
799
799
|
}
|
|
800
800
|
}, null, 8, ["item"]))), 128))
|
|
801
801
|
]),
|
|
@@ -804,10 +804,10 @@ const ce = {
|
|
|
804
804
|
}
|
|
805
805
|
}), be = (e, i) => {
|
|
806
806
|
const t = e.__vccOpts || e;
|
|
807
|
-
for (const [
|
|
808
|
-
t[
|
|
807
|
+
for (const [o, a] of i)
|
|
808
|
+
t[o] = a;
|
|
809
809
|
return t;
|
|
810
|
-
},
|
|
810
|
+
}, li = /* @__PURE__ */ be(Zo, [["__scopeId", "data-v-68ca83ec"]]), Qo = /* @__PURE__ */ ne({
|
|
811
811
|
__name: "InternalLinkItem",
|
|
812
812
|
props: {
|
|
813
813
|
item: {
|
|
@@ -818,13 +818,13 @@ const ce = {
|
|
|
818
818
|
emits: ["navigation-click"],
|
|
819
819
|
setup(e) {
|
|
820
820
|
const { i18n: { t: i } } = ce.useI18n();
|
|
821
|
-
return (t,
|
|
822
|
-
const
|
|
821
|
+
return (t, o) => {
|
|
822
|
+
const a = F("KButton");
|
|
823
823
|
return h(), $("div", null, [
|
|
824
|
-
S(
|
|
824
|
+
S(a, {
|
|
825
825
|
appearance: "btn-link",
|
|
826
826
|
class: "navigation-button",
|
|
827
|
-
onClick:
|
|
827
|
+
onClick: o[0] || (o[0] = (r) => t.$emit("navigation-click", e.item))
|
|
828
828
|
}, {
|
|
829
829
|
default: g(() => [
|
|
830
830
|
D(M(e.item.value || m(i)("baseConfigCard.commonFields.link")), 1)
|
|
@@ -834,7 +834,7 @@ const ce = {
|
|
|
834
834
|
]);
|
|
835
835
|
};
|
|
836
836
|
}
|
|
837
|
-
}),
|
|
837
|
+
}), Xo = /* @__PURE__ */ be(Qo, [["__scopeId", "data-v-7410504d"]]), ea = /* @__PURE__ */ ne({
|
|
838
838
|
__name: "StatusBadge",
|
|
839
839
|
props: {
|
|
840
840
|
status: {
|
|
@@ -844,9 +844,9 @@ const ce = {
|
|
|
844
844
|
},
|
|
845
845
|
setup(e) {
|
|
846
846
|
const { i18n: { t: i } } = ce.useI18n();
|
|
847
|
-
return (t,
|
|
848
|
-
const
|
|
849
|
-
return h(), q(
|
|
847
|
+
return (t, o) => {
|
|
848
|
+
const a = F("KBadge");
|
|
849
|
+
return h(), q(a, {
|
|
850
850
|
appearance: e.status ? "success" : "neutral"
|
|
851
851
|
}, {
|
|
852
852
|
default: g(() => [
|
|
@@ -856,11 +856,11 @@ const ce = {
|
|
|
856
856
|
}, 8, ["appearance"]);
|
|
857
857
|
};
|
|
858
858
|
}
|
|
859
|
-
}),
|
|
859
|
+
}), ta = "#0044f4", ia = "#e0e4ea", oa = "#3a3f51", aa = "1px", ra = "20px", la = { class: "config-card-details-row" }, na = ["data-testid"], sa = ["data-testid"], ca = ["data-testid"], ua = ["data-testid"], da = { key: 1 }, pa = ["data-testid"], fa = ["data-testid"], ma = ["data-testid"], ya = ["data-testid"], ga = {
|
|
860
860
|
name: "ConfigCardItem",
|
|
861
|
-
components: { CopyUuid: ri, JsonCardItem:
|
|
862
|
-
},
|
|
863
|
-
...
|
|
861
|
+
components: { CopyUuid: ri, JsonCardItem: li, StatusBadge: ea, InternalLinkItem: Xo }
|
|
862
|
+
}, va = /* @__PURE__ */ ne({
|
|
863
|
+
...ga,
|
|
864
864
|
props: {
|
|
865
865
|
item: {
|
|
866
866
|
type: Object,
|
|
@@ -881,20 +881,20 @@ const ce = {
|
|
|
881
881
|
setup(e, { emit: i }) {
|
|
882
882
|
const t = e;
|
|
883
883
|
Zi((b) => ({
|
|
884
|
-
"
|
|
885
|
-
"
|
|
886
|
-
"
|
|
887
|
-
"
|
|
884
|
+
"77b12766": d.value ? "none" : `solid ${m(aa)} ${m(ia)}`,
|
|
885
|
+
"500c4499": c.value && n.value ? "block" : "flex",
|
|
886
|
+
"132371a7": c.value && n.value ? "100%" : t.slim ? "50%" : "25%",
|
|
887
|
+
"1325b782": c.value && n.value ? "100%" : t.slim ? "50%" : "75%"
|
|
888
888
|
}));
|
|
889
|
-
const
|
|
889
|
+
const o = tt(), { i18n: { t: a, formatUnixTimeStamp: r } } = ce.useI18n(), n = T(() => t.item.value !== void 0 && t.item.value !== null && t.item.value !== ""), l = T(() => !!(t.item.tooltip || o["label-tooltip"])), c = T(() => t.item.type === te.Json || t.item.type === te.JsonArray), d = T(() => t.item.type === te.JsonArray), f = T(() => {
|
|
890
890
|
switch (t.item.type) {
|
|
891
891
|
case te.ID:
|
|
892
892
|
return {
|
|
893
893
|
tag: "CopyUuid",
|
|
894
894
|
attrs: {
|
|
895
895
|
"data-testid": `${t.item.key}-copy-uuid`,
|
|
896
|
-
"success-tooltip":
|
|
897
|
-
tooltip:
|
|
896
|
+
"success-tooltip": a("baseConfigCard.copy.success"),
|
|
897
|
+
tooltip: a("baseConfigCard.copy.tooltip", { label: t.item.label }),
|
|
898
898
|
truncated: !1,
|
|
899
899
|
uuid: t.item.value,
|
|
900
900
|
notify: () => {
|
|
@@ -906,8 +906,8 @@ const ce = {
|
|
|
906
906
|
tag: "div",
|
|
907
907
|
additionalComponent: "CopyUuid",
|
|
908
908
|
childAttrs: {
|
|
909
|
-
"success-tooltip":
|
|
910
|
-
tooltip:
|
|
909
|
+
"success-tooltip": a("baseConfigCard.copy.success"),
|
|
910
|
+
tooltip: a("baseConfigCard.copy.tooltip", { label: t.item.label }),
|
|
911
911
|
truncated: !1,
|
|
912
912
|
notify: () => {
|
|
913
913
|
}
|
|
@@ -919,8 +919,8 @@ const ce = {
|
|
|
919
919
|
attrs: {
|
|
920
920
|
"data-testid": `${t.item.key}-copy-uuid-redacted`,
|
|
921
921
|
format: "redacted",
|
|
922
|
-
"success-tooltip":
|
|
923
|
-
tooltip:
|
|
922
|
+
"success-tooltip": a("baseConfigCard.copy.success"),
|
|
923
|
+
tooltip: a("baseConfigCard.copy.tooltip", { label: t.item.label }),
|
|
924
924
|
truncated: !1,
|
|
925
925
|
uuid: t.item.value,
|
|
926
926
|
notify: () => {
|
|
@@ -933,8 +933,8 @@ const ce = {
|
|
|
933
933
|
additionalComponent: "CopyUuid",
|
|
934
934
|
childAttrs: {
|
|
935
935
|
format: "redacted",
|
|
936
|
-
"success-tooltip":
|
|
937
|
-
tooltip:
|
|
936
|
+
"success-tooltip": a("baseConfigCard.copy.success"),
|
|
937
|
+
tooltip: a("baseConfigCard.copy.tooltip", { label: t.item.label }),
|
|
938
938
|
truncated: !1,
|
|
939
939
|
notify: () => {
|
|
940
940
|
}
|
|
@@ -1005,7 +1005,7 @@ const ce = {
|
|
|
1005
1005
|
};
|
|
1006
1006
|
default:
|
|
1007
1007
|
return {
|
|
1008
|
-
tag: "
|
|
1008
|
+
tag: "KTooltip",
|
|
1009
1009
|
attrs: {
|
|
1010
1010
|
"data-testid": `${t.item.key}-plain-text`
|
|
1011
1011
|
},
|
|
@@ -1015,7 +1015,7 @@ const ce = {
|
|
|
1015
1015
|
}), p = V(), { isTruncated: _ } = ce.useTruncationDetector(p);
|
|
1016
1016
|
return (b, C) => {
|
|
1017
1017
|
const I = F("KLabel"), v = F("KBadge"), A = F("KMethodBadge"), s = F("KTooltip");
|
|
1018
|
-
return h(), $("div",
|
|
1018
|
+
return h(), $("div", la, [
|
|
1019
1019
|
O("div", {
|
|
1020
1020
|
class: "config-card-details-label",
|
|
1021
1021
|
"data-testid": `${e.item.key}-label`
|
|
@@ -1027,7 +1027,7 @@ const ce = {
|
|
|
1027
1027
|
]),
|
|
1028
1028
|
_: 2
|
|
1029
1029
|
}, [
|
|
1030
|
-
|
|
1030
|
+
l.value ? {
|
|
1031
1031
|
name: "tooltip",
|
|
1032
1032
|
fn: g(() => [
|
|
1033
1033
|
O("div", {
|
|
@@ -1036,13 +1036,13 @@ const ce = {
|
|
|
1036
1036
|
Q(b.$slots, "label-tooltip", {}, () => [
|
|
1037
1037
|
D(M(e.item.tooltip), 1)
|
|
1038
1038
|
], !0)
|
|
1039
|
-
], 8,
|
|
1039
|
+
], 8, sa)
|
|
1040
1040
|
]),
|
|
1041
1041
|
key: "0"
|
|
1042
1042
|
} : void 0
|
|
1043
1043
|
]), 1024)
|
|
1044
1044
|
], !0)
|
|
1045
|
-
], 8,
|
|
1045
|
+
], 8, na),
|
|
1046
1046
|
O("div", {
|
|
1047
1047
|
class: "config-card-details-value",
|
|
1048
1048
|
"data-testid": `${e.item.key}-property-value`
|
|
@@ -1050,7 +1050,7 @@ const ce = {
|
|
|
1050
1050
|
Q(b.$slots, e.item.key, {
|
|
1051
1051
|
rowValue: e.item.value
|
|
1052
1052
|
}, () => [
|
|
1053
|
-
|
|
1053
|
+
n.value ? (h(), $("div", da, [
|
|
1054
1054
|
(h(), q(qe(f.value.tag), Qi(Xi(f.value.attrs)), {
|
|
1055
1055
|
default: g(() => [
|
|
1056
1056
|
f.value.additionalComponent === "KBadge" ? (h(), $("div", {
|
|
@@ -1068,7 +1068,7 @@ const ce = {
|
|
|
1068
1068
|
]),
|
|
1069
1069
|
_: 2
|
|
1070
1070
|
}, 1032, ["data-testid", "truncation-tooltip"]))), 128))
|
|
1071
|
-
], 8,
|
|
1071
|
+
], 8, pa)) : U("", !0),
|
|
1072
1072
|
f.value.additionalComponent === "CopyUuid" ? (h(), $("div", {
|
|
1073
1073
|
key: 1,
|
|
1074
1074
|
class: "copy-uuid-array",
|
|
@@ -1079,7 +1079,7 @@ const ce = {
|
|
|
1079
1079
|
"data-testid": `${e.item.key}-copy-uuid-${B}`,
|
|
1080
1080
|
uuid: k
|
|
1081
1081
|
}), null, 16, ["data-testid", "uuid"]))), 128))
|
|
1082
|
-
], 8,
|
|
1082
|
+
], 8, fa)) : f.value.additionalComponent === "KMethodBadge" ? (h(), $("div", {
|
|
1083
1083
|
key: 2,
|
|
1084
1084
|
class: "method-badge-array",
|
|
1085
1085
|
"data-testid": `${e.item.key}-badge-methods`
|
|
@@ -1090,25 +1090,25 @@ const ce = {
|
|
|
1090
1090
|
"data-testid": `${e.item.key}-badge-method-${B}`,
|
|
1091
1091
|
"is-rounded": "",
|
|
1092
1092
|
label: k,
|
|
1093
|
-
method: m(
|
|
1093
|
+
method: m(lo).includes(k.toLowerCase()) ? k.toLowerCase() : "custom"
|
|
1094
1094
|
}, {
|
|
1095
1095
|
default: g(() => [
|
|
1096
1096
|
D(M(k), 1)
|
|
1097
1097
|
]),
|
|
1098
1098
|
_: 2
|
|
1099
1099
|
}, 1032, ["data-testid", "label", "method"]))), 128))
|
|
1100
|
-
], 8,
|
|
1100
|
+
], 8, ma)) : U("", !0),
|
|
1101
1101
|
f.value.additionalComponent === "JsonCardItem" ? (h(), $("div", {
|
|
1102
1102
|
key: 3,
|
|
1103
1103
|
"data-testid": `${t.item.key}-json-array-content`
|
|
1104
1104
|
}, [
|
|
1105
|
-
(h(!0), $(he, null, ve(e.item.value, (k, B) => (h(), q(
|
|
1105
|
+
(h(!0), $(he, null, ve(e.item.value, (k, B) => (h(), q(li, {
|
|
1106
1106
|
key: `json-array-item-${B}`,
|
|
1107
1107
|
index: B,
|
|
1108
1108
|
"is-array-item": "",
|
|
1109
1109
|
item: k
|
|
1110
1110
|
}, null, 8, ["index", "item"]))), 128))
|
|
1111
|
-
], 8,
|
|
1111
|
+
], 8, ya)) : (h(), q(s, {
|
|
1112
1112
|
key: 4,
|
|
1113
1113
|
label: m(_) && e.item.value
|
|
1114
1114
|
}, {
|
|
@@ -1127,52 +1127,52 @@ const ce = {
|
|
|
1127
1127
|
])) : (h(), $("div", {
|
|
1128
1128
|
key: 0,
|
|
1129
1129
|
"data-testid": `${e.item.key}-no-value`
|
|
1130
|
-
}, " – ", 8,
|
|
1130
|
+
}, " – ", 8, ua))
|
|
1131
1131
|
], !0)
|
|
1132
|
-
], 8,
|
|
1132
|
+
], 8, ca)
|
|
1133
1133
|
]);
|
|
1134
1134
|
};
|
|
1135
1135
|
}
|
|
1136
|
-
}), wt = /* @__PURE__ */ be(
|
|
1136
|
+
}), wt = /* @__PURE__ */ be(va, [["__scopeId", "data-v-9465176b"]]);
|
|
1137
1137
|
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
|
|
1138
|
-
function
|
|
1138
|
+
function ni(e) {
|
|
1139
1139
|
return typeof e > "u" || e === null;
|
|
1140
1140
|
}
|
|
1141
|
-
function
|
|
1141
|
+
function ha(e) {
|
|
1142
1142
|
return typeof e == "object" && e !== null;
|
|
1143
1143
|
}
|
|
1144
|
-
function
|
|
1145
|
-
return Array.isArray(e) ? e :
|
|
1144
|
+
function ba(e) {
|
|
1145
|
+
return Array.isArray(e) ? e : ni(e) ? [] : [e];
|
|
1146
1146
|
}
|
|
1147
|
-
function
|
|
1148
|
-
var t,
|
|
1147
|
+
function _a(e, i) {
|
|
1148
|
+
var t, o, a, r;
|
|
1149
1149
|
if (i)
|
|
1150
|
-
for (r = Object.keys(i), t = 0,
|
|
1151
|
-
|
|
1150
|
+
for (r = Object.keys(i), t = 0, o = r.length; t < o; t += 1)
|
|
1151
|
+
a = r[t], e[a] = i[a];
|
|
1152
1152
|
return e;
|
|
1153
1153
|
}
|
|
1154
|
-
function
|
|
1155
|
-
var t = "",
|
|
1156
|
-
for (
|
|
1154
|
+
function wa(e, i) {
|
|
1155
|
+
var t = "", o;
|
|
1156
|
+
for (o = 0; o < i; o += 1)
|
|
1157
1157
|
t += e;
|
|
1158
1158
|
return t;
|
|
1159
1159
|
}
|
|
1160
|
-
function
|
|
1160
|
+
function ka(e) {
|
|
1161
1161
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
1162
1162
|
}
|
|
1163
|
-
var
|
|
1164
|
-
isNothing:
|
|
1165
|
-
isObject:
|
|
1166
|
-
toArray:
|
|
1167
|
-
repeat:
|
|
1168
|
-
isNegativeZero:
|
|
1169
|
-
extend:
|
|
1163
|
+
var Ca = ni, Sa = ha, Ia = ba, Aa = wa, xa = ka, Ta = _a, se = {
|
|
1164
|
+
isNothing: Ca,
|
|
1165
|
+
isObject: Sa,
|
|
1166
|
+
toArray: Ia,
|
|
1167
|
+
repeat: Aa,
|
|
1168
|
+
isNegativeZero: xa,
|
|
1169
|
+
extend: Ta
|
|
1170
1170
|
};
|
|
1171
1171
|
function si(e, i) {
|
|
1172
|
-
var t = "",
|
|
1172
|
+
var t = "", o = e.reason || "(unknown reason)";
|
|
1173
1173
|
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 += `
|
|
1174
1174
|
|
|
1175
|
-
` + e.mark.snippet),
|
|
1175
|
+
` + e.mark.snippet), o + " " + t) : o;
|
|
1176
1176
|
}
|
|
1177
1177
|
function Ue(e, i) {
|
|
1178
1178
|
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = i, this.message = si(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
|
|
@@ -1183,48 +1183,48 @@ Ue.prototype.toString = function(e) {
|
|
|
1183
1183
|
return this.name + ": " + si(this, e);
|
|
1184
1184
|
};
|
|
1185
1185
|
var ye = Ue;
|
|
1186
|
-
function
|
|
1187
|
-
var r = "",
|
|
1188
|
-
return
|
|
1189
|
-
str: r + e.slice(i, t).replace(/\t/g, "→") +
|
|
1190
|
-
pos:
|
|
1186
|
+
function lt(e, i, t, o, a) {
|
|
1187
|
+
var r = "", n = "", l = Math.floor(a / 2) - 1;
|
|
1188
|
+
return o - i > l && (r = " ... ", i = o - l + r.length), t - o > l && (n = " ...", t = o + l - n.length), {
|
|
1189
|
+
str: r + e.slice(i, t).replace(/\t/g, "→") + n,
|
|
1190
|
+
pos: o - i + r.length
|
|
1191
1191
|
// relative position
|
|
1192
1192
|
};
|
|
1193
1193
|
}
|
|
1194
|
-
function
|
|
1194
|
+
function nt(e, i) {
|
|
1195
1195
|
return se.repeat(" ", i - e.length) + e;
|
|
1196
1196
|
}
|
|
1197
|
-
function $
|
|
1197
|
+
function $a(e, i) {
|
|
1198
1198
|
if (i = Object.create(i || null), !e.buffer)
|
|
1199
1199
|
return null;
|
|
1200
1200
|
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);
|
|
1201
|
-
for (var t = /\r?\n|\r|\0/g,
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
var
|
|
1205
|
-
for (c = 1; c <= i.linesBefore && !(
|
|
1206
|
-
d =
|
|
1201
|
+
for (var t = /\r?\n|\r|\0/g, o = [0], a = [], r, n = -1; r = t.exec(e.buffer); )
|
|
1202
|
+
a.push(r.index), o.push(r.index + r[0].length), e.position <= r.index && n < 0 && (n = o.length - 2);
|
|
1203
|
+
n < 0 && (n = o.length - 1);
|
|
1204
|
+
var l = "", c, d, f = Math.min(e.line + i.linesAfter, a.length).toString().length, p = i.maxLength - (i.indent + f + 3);
|
|
1205
|
+
for (c = 1; c <= i.linesBefore && !(n - c < 0); c++)
|
|
1206
|
+
d = lt(
|
|
1207
1207
|
e.buffer,
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
e.position - (
|
|
1208
|
+
o[n - c],
|
|
1209
|
+
a[n - c],
|
|
1210
|
+
e.position - (o[n] - o[n - c]),
|
|
1211
1211
|
p
|
|
1212
|
-
),
|
|
1213
|
-
` +
|
|
1214
|
-
for (d =
|
|
1215
|
-
`,
|
|
1216
|
-
`, c = 1; c <= i.linesAfter && !(
|
|
1217
|
-
d =
|
|
1212
|
+
), l = se.repeat(" ", i.indent) + nt((e.line - c + 1).toString(), f) + " | " + d.str + `
|
|
1213
|
+
` + l;
|
|
1214
|
+
for (d = lt(e.buffer, o[n], a[n], e.position, p), l += se.repeat(" ", i.indent) + nt((e.line + 1).toString(), f) + " | " + d.str + `
|
|
1215
|
+
`, l += se.repeat("-", i.indent + f + 3 + d.pos) + `^
|
|
1216
|
+
`, c = 1; c <= i.linesAfter && !(n + c >= a.length); c++)
|
|
1217
|
+
d = lt(
|
|
1218
1218
|
e.buffer,
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
e.position - (
|
|
1219
|
+
o[n + c],
|
|
1220
|
+
a[n + c],
|
|
1221
|
+
e.position - (o[n] - o[n + c]),
|
|
1222
1222
|
p
|
|
1223
|
-
),
|
|
1223
|
+
), l += se.repeat(" ", i.indent) + nt((e.line + c + 1).toString(), f) + " | " + d.str + `
|
|
1224
1224
|
`;
|
|
1225
|
-
return
|
|
1225
|
+
return l.replace(/\n$/, "");
|
|
1226
1226
|
}
|
|
1227
|
-
var
|
|
1227
|
+
var ja = $a, Ma = [
|
|
1228
1228
|
"kind",
|
|
1229
1229
|
"multi",
|
|
1230
1230
|
"resolve",
|
|
@@ -1235,41 +1235,41 @@ var jo = $o, Mo = [
|
|
|
1235
1235
|
"representName",
|
|
1236
1236
|
"defaultStyle",
|
|
1237
1237
|
"styleAliases"
|
|
1238
|
-
],
|
|
1238
|
+
], Ea = [
|
|
1239
1239
|
"scalar",
|
|
1240
1240
|
"sequence",
|
|
1241
1241
|
"mapping"
|
|
1242
1242
|
];
|
|
1243
|
-
function
|
|
1243
|
+
function Oa(e) {
|
|
1244
1244
|
var i = {};
|
|
1245
1245
|
return e !== null && Object.keys(e).forEach(function(t) {
|
|
1246
|
-
e[t].forEach(function(
|
|
1247
|
-
i[String(
|
|
1246
|
+
e[t].forEach(function(o) {
|
|
1247
|
+
i[String(o)] = t;
|
|
1248
1248
|
});
|
|
1249
1249
|
}), i;
|
|
1250
1250
|
}
|
|
1251
|
-
function
|
|
1251
|
+
function Va(e, i) {
|
|
1252
1252
|
if (i = i || {}, Object.keys(i).forEach(function(t) {
|
|
1253
|
-
if (
|
|
1253
|
+
if (Ma.indexOf(t) === -1)
|
|
1254
1254
|
throw new ye('Unknown option "' + t + '" is met in definition of "' + e + '" YAML type.');
|
|
1255
1255
|
}), this.options = i, this.tag = e, this.kind = i.kind || null, this.resolve = i.resolve || function() {
|
|
1256
1256
|
return !0;
|
|
1257
1257
|
}, this.construct = i.construct || function(t) {
|
|
1258
1258
|
return t;
|
|
1259
|
-
}, 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 =
|
|
1259
|
+
}, 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 = Oa(i.styleAliases || null), Ea.indexOf(this.kind) === -1)
|
|
1260
1260
|
throw new ye('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
|
|
1261
1261
|
}
|
|
1262
|
-
var pe =
|
|
1262
|
+
var pe = Va;
|
|
1263
1263
|
function Nt(e, i) {
|
|
1264
1264
|
var t = [];
|
|
1265
|
-
return e[i].forEach(function(
|
|
1266
|
-
var
|
|
1267
|
-
t.forEach(function(r,
|
|
1268
|
-
r.tag ===
|
|
1269
|
-
}), t[
|
|
1265
|
+
return e[i].forEach(function(o) {
|
|
1266
|
+
var a = t.length;
|
|
1267
|
+
t.forEach(function(r, n) {
|
|
1268
|
+
r.tag === o.tag && r.kind === o.kind && r.multi === o.multi && (a = n);
|
|
1269
|
+
}), t[a] = o;
|
|
1270
1270
|
}), t;
|
|
1271
1271
|
}
|
|
1272
|
-
function
|
|
1272
|
+
function Fa() {
|
|
1273
1273
|
var e = {
|
|
1274
1274
|
scalar: {},
|
|
1275
1275
|
sequence: {},
|
|
@@ -1282,11 +1282,11 @@ function Fo() {
|
|
|
1282
1282
|
fallback: []
|
|
1283
1283
|
}
|
|
1284
1284
|
}, i, t;
|
|
1285
|
-
function a
|
|
1286
|
-
|
|
1285
|
+
function o(a) {
|
|
1286
|
+
a.multi ? (e.multi[a.kind].push(a), e.multi.fallback.push(a)) : e[a.kind][a.tag] = e.fallback[a.tag] = a;
|
|
1287
1287
|
}
|
|
1288
1288
|
for (i = 0, t = arguments.length; i < t; i += 1)
|
|
1289
|
-
arguments[i].forEach(
|
|
1289
|
+
arguments[i].forEach(o);
|
|
1290
1290
|
return e;
|
|
1291
1291
|
}
|
|
1292
1292
|
function dt(e) {
|
|
@@ -1302,19 +1302,19 @@ dt.prototype.extend = function(e) {
|
|
|
1302
1302
|
e.implicit && (i = i.concat(e.implicit)), e.explicit && (t = t.concat(e.explicit));
|
|
1303
1303
|
else
|
|
1304
1304
|
throw new ye("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
|
|
1305
|
-
i.forEach(function(
|
|
1306
|
-
if (!(
|
|
1305
|
+
i.forEach(function(a) {
|
|
1306
|
+
if (!(a instanceof pe))
|
|
1307
1307
|
throw new ye("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1308
|
-
if (
|
|
1308
|
+
if (a.loadKind && a.loadKind !== "scalar")
|
|
1309
1309
|
throw new ye("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
|
|
1310
|
-
if (
|
|
1310
|
+
if (a.multi)
|
|
1311
1311
|
throw new ye("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
|
|
1312
|
-
}), t.forEach(function(
|
|
1313
|
-
if (!(
|
|
1312
|
+
}), t.forEach(function(a) {
|
|
1313
|
+
if (!(a instanceof pe))
|
|
1314
1314
|
throw new ye("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1315
1315
|
});
|
|
1316
|
-
var
|
|
1317
|
-
return
|
|
1316
|
+
var o = Object.create(dt.prototype);
|
|
1317
|
+
return o.implicit = (this.implicit || []).concat(i), o.explicit = (this.explicit || []).concat(t), o.compiledImplicit = Nt(o, "implicit"), o.compiledExplicit = Nt(o, "explicit"), o.compiledTypeMap = Fa(o.compiledImplicit, o.compiledExplicit), o;
|
|
1318
1318
|
};
|
|
1319
1319
|
var ci = dt, ui = new pe("tag:yaml.org,2002:str", {
|
|
1320
1320
|
kind: "scalar",
|
|
@@ -1338,23 +1338,23 @@ var ci = dt, ui = new pe("tag:yaml.org,2002:str", {
|
|
|
1338
1338
|
pi
|
|
1339
1339
|
]
|
|
1340
1340
|
});
|
|
1341
|
-
function
|
|
1341
|
+
function Na(e) {
|
|
1342
1342
|
if (e === null)
|
|
1343
1343
|
return !0;
|
|
1344
1344
|
var i = e.length;
|
|
1345
1345
|
return i === 1 && e === "~" || i === 4 && (e === "null" || e === "Null" || e === "NULL");
|
|
1346
1346
|
}
|
|
1347
|
-
function
|
|
1347
|
+
function Ba() {
|
|
1348
1348
|
return null;
|
|
1349
1349
|
}
|
|
1350
|
-
function
|
|
1350
|
+
function La(e) {
|
|
1351
1351
|
return e === null;
|
|
1352
1352
|
}
|
|
1353
1353
|
var mi = new pe("tag:yaml.org,2002:null", {
|
|
1354
1354
|
kind: "scalar",
|
|
1355
|
-
resolve:
|
|
1356
|
-
construct:
|
|
1357
|
-
predicate:
|
|
1355
|
+
resolve: Na,
|
|
1356
|
+
construct: Ba,
|
|
1357
|
+
predicate: La,
|
|
1358
1358
|
represent: {
|
|
1359
1359
|
canonical: function() {
|
|
1360
1360
|
return "~";
|
|
@@ -1374,23 +1374,23 @@ var mi = new pe("tag:yaml.org,2002:null", {
|
|
|
1374
1374
|
},
|
|
1375
1375
|
defaultStyle: "lowercase"
|
|
1376
1376
|
});
|
|
1377
|
-
function
|
|
1377
|
+
function Pa(e) {
|
|
1378
1378
|
if (e === null)
|
|
1379
1379
|
return !1;
|
|
1380
1380
|
var i = e.length;
|
|
1381
1381
|
return i === 4 && (e === "true" || e === "True" || e === "TRUE") || i === 5 && (e === "false" || e === "False" || e === "FALSE");
|
|
1382
1382
|
}
|
|
1383
|
-
function
|
|
1383
|
+
function Ka(e) {
|
|
1384
1384
|
return e === "true" || e === "True" || e === "TRUE";
|
|
1385
1385
|
}
|
|
1386
|
-
function
|
|
1386
|
+
function qa(e) {
|
|
1387
1387
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
1388
1388
|
}
|
|
1389
1389
|
var yi = new pe("tag:yaml.org,2002:bool", {
|
|
1390
1390
|
kind: "scalar",
|
|
1391
|
-
resolve:
|
|
1392
|
-
construct:
|
|
1393
|
-
predicate:
|
|
1391
|
+
resolve: Pa,
|
|
1392
|
+
construct: Ka,
|
|
1393
|
+
predicate: qa,
|
|
1394
1394
|
represent: {
|
|
1395
1395
|
lowercase: function(e) {
|
|
1396
1396
|
return e ? "true" : "false";
|
|
@@ -1404,67 +1404,67 @@ var yi = new pe("tag:yaml.org,2002:bool", {
|
|
|
1404
1404
|
},
|
|
1405
1405
|
defaultStyle: "lowercase"
|
|
1406
1406
|
});
|
|
1407
|
-
function
|
|
1407
|
+
function Ua(e) {
|
|
1408
1408
|
return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
|
|
1409
1409
|
}
|
|
1410
|
-
function
|
|
1410
|
+
function Ra(e) {
|
|
1411
1411
|
return 48 <= e && e <= 55;
|
|
1412
1412
|
}
|
|
1413
|
-
function
|
|
1413
|
+
function Da(e) {
|
|
1414
1414
|
return 48 <= e && e <= 57;
|
|
1415
1415
|
}
|
|
1416
|
-
function
|
|
1416
|
+
function Ga(e) {
|
|
1417
1417
|
if (e === null)
|
|
1418
1418
|
return !1;
|
|
1419
|
-
var i = e.length, t = 0,
|
|
1419
|
+
var i = e.length, t = 0, o = !1, a;
|
|
1420
1420
|
if (!i)
|
|
1421
1421
|
return !1;
|
|
1422
|
-
if (
|
|
1422
|
+
if (a = e[t], (a === "-" || a === "+") && (a = e[++t]), a === "0") {
|
|
1423
1423
|
if (t + 1 === i)
|
|
1424
1424
|
return !0;
|
|
1425
|
-
if (
|
|
1425
|
+
if (a = e[++t], a === "b") {
|
|
1426
1426
|
for (t++; t < i; t++)
|
|
1427
|
-
if (
|
|
1428
|
-
if (
|
|
1427
|
+
if (a = e[t], a !== "_") {
|
|
1428
|
+
if (a !== "0" && a !== "1")
|
|
1429
1429
|
return !1;
|
|
1430
|
-
|
|
1430
|
+
o = !0;
|
|
1431
1431
|
}
|
|
1432
|
-
return
|
|
1432
|
+
return o && a !== "_";
|
|
1433
1433
|
}
|
|
1434
|
-
if (
|
|
1434
|
+
if (a === "x") {
|
|
1435
1435
|
for (t++; t < i; t++)
|
|
1436
|
-
if (
|
|
1437
|
-
if (!
|
|
1436
|
+
if (a = e[t], a !== "_") {
|
|
1437
|
+
if (!Ua(e.charCodeAt(t)))
|
|
1438
1438
|
return !1;
|
|
1439
|
-
|
|
1439
|
+
o = !0;
|
|
1440
1440
|
}
|
|
1441
|
-
return
|
|
1441
|
+
return o && a !== "_";
|
|
1442
1442
|
}
|
|
1443
|
-
if (
|
|
1443
|
+
if (a === "o") {
|
|
1444
1444
|
for (t++; t < i; t++)
|
|
1445
|
-
if (
|
|
1446
|
-
if (!
|
|
1445
|
+
if (a = e[t], a !== "_") {
|
|
1446
|
+
if (!Ra(e.charCodeAt(t)))
|
|
1447
1447
|
return !1;
|
|
1448
|
-
|
|
1448
|
+
o = !0;
|
|
1449
1449
|
}
|
|
1450
|
-
return
|
|
1450
|
+
return o && a !== "_";
|
|
1451
1451
|
}
|
|
1452
1452
|
}
|
|
1453
|
-
if (
|
|
1453
|
+
if (a === "_")
|
|
1454
1454
|
return !1;
|
|
1455
1455
|
for (; t < i; t++)
|
|
1456
|
-
if (
|
|
1457
|
-
if (!
|
|
1456
|
+
if (a = e[t], a !== "_") {
|
|
1457
|
+
if (!Da(e.charCodeAt(t)))
|
|
1458
1458
|
return !1;
|
|
1459
|
-
|
|
1459
|
+
o = !0;
|
|
1460
1460
|
}
|
|
1461
|
-
return !(!
|
|
1461
|
+
return !(!o || a === "_");
|
|
1462
1462
|
}
|
|
1463
|
-
function
|
|
1464
|
-
var i = e, t = 1,
|
|
1465
|
-
if (i.indexOf("_") !== -1 && (i = i.replace(/_/g, "")),
|
|
1463
|
+
function Ha(e) {
|
|
1464
|
+
var i = e, t = 1, o;
|
|
1465
|
+
if (i.indexOf("_") !== -1 && (i = i.replace(/_/g, "")), o = i[0], (o === "-" || o === "+") && (o === "-" && (t = -1), i = i.slice(1), o = i[0]), i === "0")
|
|
1466
1466
|
return 0;
|
|
1467
|
-
if (
|
|
1467
|
+
if (o === "0") {
|
|
1468
1468
|
if (i[1] === "b")
|
|
1469
1469
|
return t * parseInt(i.slice(2), 2);
|
|
1470
1470
|
if (i[1] === "x")
|
|
@@ -1474,14 +1474,14 @@ function Ho(e) {
|
|
|
1474
1474
|
}
|
|
1475
1475
|
return t * parseInt(i, 10);
|
|
1476
1476
|
}
|
|
1477
|
-
function
|
|
1477
|
+
function za(e) {
|
|
1478
1478
|
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !se.isNegativeZero(e);
|
|
1479
1479
|
}
|
|
1480
1480
|
var gi = new pe("tag:yaml.org,2002:int", {
|
|
1481
1481
|
kind: "scalar",
|
|
1482
|
-
resolve:
|
|
1483
|
-
construct:
|
|
1484
|
-
predicate:
|
|
1482
|
+
resolve: Ga,
|
|
1483
|
+
construct: Ha,
|
|
1484
|
+
predicate: za,
|
|
1485
1485
|
represent: {
|
|
1486
1486
|
binary: function(e) {
|
|
1487
1487
|
return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
|
|
@@ -1504,21 +1504,21 @@ var gi = new pe("tag:yaml.org,2002:int", {
|
|
|
1504
1504
|
decimal: [10, "dec"],
|
|
1505
1505
|
hexadecimal: [16, "hex"]
|
|
1506
1506
|
}
|
|
1507
|
-
}),
|
|
1507
|
+
}), Ya = new RegExp(
|
|
1508
1508
|
// 2.5e4, 2.5 and integers
|
|
1509
1509
|
"^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
|
|
1510
1510
|
);
|
|
1511
|
-
function
|
|
1512
|
-
return !(e === null || !
|
|
1511
|
+
function Ja(e) {
|
|
1512
|
+
return !(e === null || !Ya.test(e) || // Quick hack to not allow integers end with `_`
|
|
1513
1513
|
// Probably should update regexp & check speed
|
|
1514
1514
|
e[e.length - 1] === "_");
|
|
1515
1515
|
}
|
|
1516
|
-
function
|
|
1516
|
+
function Wa(e) {
|
|
1517
1517
|
var i, t;
|
|
1518
1518
|
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);
|
|
1519
1519
|
}
|
|
1520
|
-
var
|
|
1521
|
-
function
|
|
1520
|
+
var Za = /^[-+]?[0-9]+e/;
|
|
1521
|
+
function Qa(e, i) {
|
|
1522
1522
|
var t;
|
|
1523
1523
|
if (isNaN(e))
|
|
1524
1524
|
switch (i) {
|
|
@@ -1549,17 +1549,17 @@ function Qo(e, i) {
|
|
|
1549
1549
|
}
|
|
1550
1550
|
else if (se.isNegativeZero(e))
|
|
1551
1551
|
return "-0.0";
|
|
1552
|
-
return t = e.toString(10),
|
|
1552
|
+
return t = e.toString(10), Za.test(t) ? t.replace("e", ".e") : t;
|
|
1553
1553
|
}
|
|
1554
|
-
function
|
|
1554
|
+
function Xa(e) {
|
|
1555
1555
|
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || se.isNegativeZero(e));
|
|
1556
1556
|
}
|
|
1557
1557
|
var vi = new pe("tag:yaml.org,2002:float", {
|
|
1558
1558
|
kind: "scalar",
|
|
1559
|
-
resolve:
|
|
1560
|
-
construct:
|
|
1561
|
-
predicate:
|
|
1562
|
-
represent:
|
|
1559
|
+
resolve: Ja,
|
|
1560
|
+
construct: Wa,
|
|
1561
|
+
predicate: Xa,
|
|
1562
|
+
represent: Qa,
|
|
1563
1563
|
defaultStyle: "lowercase"
|
|
1564
1564
|
}), hi = fi.extend({
|
|
1565
1565
|
implicit: [
|
|
@@ -1577,17 +1577,17 @@ function er(e) {
|
|
|
1577
1577
|
return e === null ? !1 : _i.exec(e) !== null || wi.exec(e) !== null;
|
|
1578
1578
|
}
|
|
1579
1579
|
function tr(e) {
|
|
1580
|
-
var i, t,
|
|
1580
|
+
var i, t, o, a, r, n, l, c = 0, d = null, f, p, _;
|
|
1581
1581
|
if (i = _i.exec(e), i === null && (i = wi.exec(e)), i === null)
|
|
1582
1582
|
throw new Error("Date resolve error");
|
|
1583
|
-
if (t = +i[1],
|
|
1584
|
-
return new Date(Date.UTC(t,
|
|
1585
|
-
if (r = +i[4],
|
|
1583
|
+
if (t = +i[1], o = +i[2] - 1, a = +i[3], !i[4])
|
|
1584
|
+
return new Date(Date.UTC(t, o, a));
|
|
1585
|
+
if (r = +i[4], n = +i[5], l = +i[6], i[7]) {
|
|
1586
1586
|
for (c = i[7].slice(0, 3); c.length < 3; )
|
|
1587
1587
|
c += "0";
|
|
1588
1588
|
c = +c;
|
|
1589
1589
|
}
|
|
1590
|
-
return i[9] && (f = +i[10], p = +(i[11] || 0), d = (f * 60 + p) * 6e4, i[9] === "-" && (d = -d)), _ = new Date(Date.UTC(t,
|
|
1590
|
+
return i[9] && (f = +i[10], p = +(i[11] || 0), d = (f * 60 + p) * 6e4, i[9] === "-" && (d = -d)), _ = new Date(Date.UTC(t, o, a, r, n, l, c)), d && _.setTime(_.getTime() - d), _;
|
|
1591
1591
|
}
|
|
1592
1592
|
function ir(e) {
|
|
1593
1593
|
return e.toISOString();
|
|
@@ -1599,62 +1599,62 @@ var ki = new pe("tag:yaml.org,2002:timestamp", {
|
|
|
1599
1599
|
instanceOf: Date,
|
|
1600
1600
|
represent: ir
|
|
1601
1601
|
});
|
|
1602
|
-
function
|
|
1602
|
+
function or(e) {
|
|
1603
1603
|
return e === "<<" || e === null;
|
|
1604
1604
|
}
|
|
1605
1605
|
var Ci = new pe("tag:yaml.org,2002:merge", {
|
|
1606
1606
|
kind: "scalar",
|
|
1607
|
-
resolve:
|
|
1607
|
+
resolve: or
|
|
1608
1608
|
}), kt = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
1609
1609
|
\r`;
|
|
1610
|
-
function
|
|
1610
|
+
function ar(e) {
|
|
1611
1611
|
if (e === null)
|
|
1612
1612
|
return !1;
|
|
1613
|
-
var i, t,
|
|
1614
|
-
for (t = 0; t <
|
|
1613
|
+
var i, t, o = 0, a = e.length, r = kt;
|
|
1614
|
+
for (t = 0; t < a; t++)
|
|
1615
1615
|
if (i = r.indexOf(e.charAt(t)), !(i > 64)) {
|
|
1616
1616
|
if (i < 0)
|
|
1617
1617
|
return !1;
|
|
1618
|
-
|
|
1618
|
+
o += 6;
|
|
1619
1619
|
}
|
|
1620
|
-
return
|
|
1620
|
+
return o % 8 === 0;
|
|
1621
1621
|
}
|
|
1622
1622
|
function rr(e) {
|
|
1623
|
-
var i, t,
|
|
1624
|
-
for (i = 0; i <
|
|
1625
|
-
i % 4 === 0 && i && (
|
|
1626
|
-
return t =
|
|
1627
|
-
}
|
|
1628
|
-
function nr(e) {
|
|
1629
|
-
var i = "", t = 0, a, o, r = e.length, l = kt;
|
|
1630
|
-
for (a = 0; a < r; a++)
|
|
1631
|
-
a % 3 === 0 && a && (i += l[t >> 18 & 63], i += l[t >> 12 & 63], i += l[t >> 6 & 63], i += l[t & 63]), t = (t << 8) + e[a];
|
|
1632
|
-
return o = r % 3, o === 0 ? (i += l[t >> 18 & 63], i += l[t >> 12 & 63], i += l[t >> 6 & 63], i += l[t & 63]) : o === 2 ? (i += l[t >> 10 & 63], i += l[t >> 4 & 63], i += l[t << 2 & 63], i += l[64]) : o === 1 && (i += l[t >> 2 & 63], i += l[t << 4 & 63], i += l[64], i += l[64]), i;
|
|
1623
|
+
var i, t, o = e.replace(/[\r\n=]/g, ""), a = o.length, r = kt, n = 0, l = [];
|
|
1624
|
+
for (i = 0; i < a; i++)
|
|
1625
|
+
i % 4 === 0 && i && (l.push(n >> 16 & 255), l.push(n >> 8 & 255), l.push(n & 255)), n = n << 6 | r.indexOf(o.charAt(i));
|
|
1626
|
+
return t = a % 4 * 6, t === 0 ? (l.push(n >> 16 & 255), l.push(n >> 8 & 255), l.push(n & 255)) : t === 18 ? (l.push(n >> 10 & 255), l.push(n >> 2 & 255)) : t === 12 && l.push(n >> 4 & 255), new Uint8Array(l);
|
|
1633
1627
|
}
|
|
1634
1628
|
function lr(e) {
|
|
1629
|
+
var i = "", t = 0, o, a, r = e.length, n = kt;
|
|
1630
|
+
for (o = 0; o < r; o++)
|
|
1631
|
+
o % 3 === 0 && o && (i += n[t >> 18 & 63], i += n[t >> 12 & 63], i += n[t >> 6 & 63], i += n[t & 63]), t = (t << 8) + e[o];
|
|
1632
|
+
return a = r % 3, a === 0 ? (i += n[t >> 18 & 63], i += n[t >> 12 & 63], i += n[t >> 6 & 63], i += n[t & 63]) : a === 2 ? (i += n[t >> 10 & 63], i += n[t >> 4 & 63], i += n[t << 2 & 63], i += n[64]) : a === 1 && (i += n[t >> 2 & 63], i += n[t << 4 & 63], i += n[64], i += n[64]), i;
|
|
1633
|
+
}
|
|
1634
|
+
function nr(e) {
|
|
1635
1635
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
1636
1636
|
}
|
|
1637
1637
|
var Si = new pe("tag:yaml.org,2002:binary", {
|
|
1638
1638
|
kind: "scalar",
|
|
1639
|
-
resolve:
|
|
1639
|
+
resolve: ar,
|
|
1640
1640
|
construct: rr,
|
|
1641
|
-
predicate:
|
|
1642
|
-
represent:
|
|
1641
|
+
predicate: nr,
|
|
1642
|
+
represent: lr
|
|
1643
1643
|
}), sr = Object.prototype.hasOwnProperty, cr = Object.prototype.toString;
|
|
1644
1644
|
function ur(e) {
|
|
1645
1645
|
if (e === null)
|
|
1646
1646
|
return !0;
|
|
1647
|
-
var i = [], t,
|
|
1648
|
-
for (t = 0,
|
|
1649
|
-
if (
|
|
1647
|
+
var i = [], t, o, a, r, n, l = e;
|
|
1648
|
+
for (t = 0, o = l.length; t < o; t += 1) {
|
|
1649
|
+
if (a = l[t], n = !1, cr.call(a) !== "[object Object]")
|
|
1650
1650
|
return !1;
|
|
1651
|
-
for (r in
|
|
1652
|
-
if (sr.call(
|
|
1653
|
-
if (!
|
|
1654
|
-
|
|
1651
|
+
for (r in a)
|
|
1652
|
+
if (sr.call(a, r))
|
|
1653
|
+
if (!n)
|
|
1654
|
+
n = !0;
|
|
1655
1655
|
else
|
|
1656
1656
|
return !1;
|
|
1657
|
-
if (!
|
|
1657
|
+
if (!n)
|
|
1658
1658
|
return !1;
|
|
1659
1659
|
if (i.indexOf(r) === -1)
|
|
1660
1660
|
i.push(r);
|
|
@@ -1674,20 +1674,20 @@ var Ii = new pe("tag:yaml.org,2002:omap", {
|
|
|
1674
1674
|
function fr(e) {
|
|
1675
1675
|
if (e === null)
|
|
1676
1676
|
return !0;
|
|
1677
|
-
var i, t,
|
|
1678
|
-
for (r = new Array(
|
|
1679
|
-
if (
|
|
1677
|
+
var i, t, o, a, r, n = e;
|
|
1678
|
+
for (r = new Array(n.length), i = 0, t = n.length; i < t; i += 1) {
|
|
1679
|
+
if (o = n[i], pr.call(o) !== "[object Object]" || (a = Object.keys(o), a.length !== 1))
|
|
1680
1680
|
return !1;
|
|
1681
|
-
r[i] = [
|
|
1681
|
+
r[i] = [a[0], o[a[0]]];
|
|
1682
1682
|
}
|
|
1683
1683
|
return !0;
|
|
1684
1684
|
}
|
|
1685
1685
|
function mr(e) {
|
|
1686
1686
|
if (e === null)
|
|
1687
1687
|
return [];
|
|
1688
|
-
var i, t,
|
|
1689
|
-
for (r = new Array(
|
|
1690
|
-
|
|
1688
|
+
var i, t, o, a, r, n = e;
|
|
1689
|
+
for (r = new Array(n.length), i = 0, t = n.length; i < t; i += 1)
|
|
1690
|
+
o = n[i], a = Object.keys(o), r[i] = [a[0], o[a[0]]];
|
|
1691
1691
|
return r;
|
|
1692
1692
|
}
|
|
1693
1693
|
var Ai = new pe("tag:yaml.org,2002:pairs", {
|
|
@@ -1773,7 +1773,7 @@ function Vi(e, i) {
|
|
|
1773
1773
|
line: e.line,
|
|
1774
1774
|
column: e.position - e.lineStart
|
|
1775
1775
|
};
|
|
1776
|
-
return t.snippet =
|
|
1776
|
+
return t.snippet = ja(t), new ye(i, t);
|
|
1777
1777
|
}
|
|
1778
1778
|
function j(e, i) {
|
|
1779
1779
|
throw Vi(e, i);
|
|
@@ -1783,75 +1783,75 @@ function Qe(e, i) {
|
|
|
1783
1783
|
}
|
|
1784
1784
|
var Kt = {
|
|
1785
1785
|
YAML: function(e, i, t) {
|
|
1786
|
-
var
|
|
1787
|
-
e.version !== null && j(e, "duplication of %YAML directive"), t.length !== 1 && j(e, "YAML directive accepts exactly one argument"),
|
|
1786
|
+
var o, a, r;
|
|
1787
|
+
e.version !== null && j(e, "duplication of %YAML directive"), t.length !== 1 && j(e, "YAML directive accepts exactly one argument"), o = /^([0-9]+)\.([0-9]+)$/.exec(t[0]), o === null && j(e, "ill-formed argument of the YAML directive"), a = parseInt(o[1], 10), r = parseInt(o[2], 10), a !== 1 && j(e, "unacceptable YAML version of the document"), e.version = t[0], e.checkLineBreaks = r < 2, r !== 1 && r !== 2 && Qe(e, "unsupported YAML version of the document");
|
|
1788
1788
|
},
|
|
1789
1789
|
TAG: function(e, i, t) {
|
|
1790
|
-
var
|
|
1791
|
-
t.length !== 2 && j(e, "TAG directive accepts exactly two arguments"),
|
|
1790
|
+
var o, a;
|
|
1791
|
+
t.length !== 2 && j(e, "TAG directive accepts exactly two arguments"), o = t[0], a = t[1], ji.test(o) || j(e, "ill-formed tag handle (first argument) of the TAG directive"), Ie.call(e.tagMap, o) && j(e, 'there is a previously declared suffix for "' + o + '" tag handle'), Mi.test(a) || j(e, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
1792
1792
|
try {
|
|
1793
|
-
|
|
1793
|
+
a = decodeURIComponent(a);
|
|
1794
1794
|
} catch {
|
|
1795
|
-
j(e, "tag prefix is malformed: " +
|
|
1795
|
+
j(e, "tag prefix is malformed: " + a);
|
|
1796
1796
|
}
|
|
1797
|
-
e.tagMap[
|
|
1797
|
+
e.tagMap[o] = a;
|
|
1798
1798
|
}
|
|
1799
1799
|
};
|
|
1800
|
-
function Se(e, i, t,
|
|
1801
|
-
var
|
|
1800
|
+
function Se(e, i, t, o) {
|
|
1801
|
+
var a, r, n, l;
|
|
1802
1802
|
if (i < t) {
|
|
1803
|
-
if (
|
|
1804
|
-
for (
|
|
1805
|
-
|
|
1803
|
+
if (l = e.input.slice(i, t), o)
|
|
1804
|
+
for (a = 0, r = l.length; a < r; a += 1)
|
|
1805
|
+
n = l.charCodeAt(a), n === 9 || 32 <= n && n <= 1114111 || j(e, "expected valid JSON character");
|
|
1806
1806
|
else
|
|
1807
|
-
br.test(
|
|
1808
|
-
e.result +=
|
|
1807
|
+
br.test(l) && j(e, "the stream contains non-printable characters");
|
|
1808
|
+
e.result += l;
|
|
1809
1809
|
}
|
|
1810
1810
|
}
|
|
1811
|
-
function qt(e, i, t,
|
|
1812
|
-
var
|
|
1813
|
-
for (se.isObject(t) || j(e, "cannot merge mappings; the provided source object is unacceptable"),
|
|
1814
|
-
r =
|
|
1811
|
+
function qt(e, i, t, o) {
|
|
1812
|
+
var a, r, n, l;
|
|
1813
|
+
for (se.isObject(t) || j(e, "cannot merge mappings; the provided source object is unacceptable"), a = Object.keys(t), n = 0, l = a.length; n < l; n += 1)
|
|
1814
|
+
r = a[n], Ie.call(i, r) || (i[r] = t[r], o[r] = !0);
|
|
1815
1815
|
}
|
|
1816
|
-
function Fe(e, i, t,
|
|
1816
|
+
function Fe(e, i, t, o, a, r, n, l, c) {
|
|
1817
1817
|
var d, f;
|
|
1818
|
-
if (Array.isArray(
|
|
1819
|
-
for (
|
|
1820
|
-
Array.isArray(
|
|
1821
|
-
if (typeof
|
|
1818
|
+
if (Array.isArray(a))
|
|
1819
|
+
for (a = Array.prototype.slice.call(a), d = 0, f = a.length; d < f; d += 1)
|
|
1820
|
+
Array.isArray(a[d]) && j(e, "nested arrays are not supported inside keys"), typeof a == "object" && Lt(a[d]) === "[object Object]" && (a[d] = "[object Object]");
|
|
1821
|
+
if (typeof a == "object" && Lt(a) === "[object Object]" && (a = "[object Object]"), a = String(a), i === null && (i = {}), o === "tag:yaml.org,2002:merge")
|
|
1822
1822
|
if (Array.isArray(r))
|
|
1823
1823
|
for (d = 0, f = r.length; d < f; d += 1)
|
|
1824
1824
|
qt(e, i, r[d], t);
|
|
1825
1825
|
else
|
|
1826
1826
|
qt(e, i, r, t);
|
|
1827
1827
|
else
|
|
1828
|
-
!e.json && !Ie.call(t,
|
|
1828
|
+
!e.json && !Ie.call(t, a) && Ie.call(i, a) && (e.line = n || e.line, e.lineStart = l || e.lineStart, e.position = c || e.position, j(e, "duplicated mapping key")), a === "__proto__" ? Object.defineProperty(i, a, {
|
|
1829
1829
|
configurable: !0,
|
|
1830
1830
|
enumerable: !0,
|
|
1831
1831
|
writable: !0,
|
|
1832
1832
|
value: r
|
|
1833
|
-
}) : i[
|
|
1833
|
+
}) : i[a] = r, delete t[a];
|
|
1834
1834
|
return i;
|
|
1835
1835
|
}
|
|
1836
1836
|
function St(e) {
|
|
1837
1837
|
var i;
|
|
1838
1838
|
i = e.input.charCodeAt(e.position), i === 10 ? e.position++ : i === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : j(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
|
|
1839
1839
|
}
|
|
1840
|
-
function
|
|
1841
|
-
for (var
|
|
1842
|
-
for (; Te(
|
|
1843
|
-
|
|
1844
|
-
if (i &&
|
|
1840
|
+
function le(e, i, t) {
|
|
1841
|
+
for (var o = 0, a = e.input.charCodeAt(e.position); a !== 0; ) {
|
|
1842
|
+
for (; Te(a); )
|
|
1843
|
+
a === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), a = e.input.charCodeAt(++e.position);
|
|
1844
|
+
if (i && a === 35)
|
|
1845
1845
|
do
|
|
1846
|
-
|
|
1847
|
-
while (
|
|
1848
|
-
if (_e(
|
|
1849
|
-
for (St(e),
|
|
1850
|
-
e.lineIndent++,
|
|
1846
|
+
a = e.input.charCodeAt(++e.position);
|
|
1847
|
+
while (a !== 10 && a !== 13 && a !== 0);
|
|
1848
|
+
if (_e(a))
|
|
1849
|
+
for (St(e), a = e.input.charCodeAt(e.position), o++, e.lineIndent = 0; a === 32; )
|
|
1850
|
+
e.lineIndent++, a = e.input.charCodeAt(++e.position);
|
|
1851
1851
|
else
|
|
1852
1852
|
break;
|
|
1853
1853
|
}
|
|
1854
|
-
return t !== -1 &&
|
|
1854
|
+
return t !== -1 && o !== 0 && e.lineIndent < t && Qe(e, "deficient indentation"), o;
|
|
1855
1855
|
}
|
|
1856
1856
|
function it(e) {
|
|
1857
1857
|
var i = e.position, t;
|
|
@@ -1862,98 +1862,98 @@ function It(e, i) {
|
|
|
1862
1862
|
`, i - 1));
|
|
1863
1863
|
}
|
|
1864
1864
|
function xr(e, i, t) {
|
|
1865
|
-
var
|
|
1866
|
-
if (b = e.input.charCodeAt(e.position), ge(b) || Ve(b) || b === 35 || b === 38 || b === 42 || b === 33 || b === 124 || b === 62 || b === 39 || b === 34 || b === 37 || b === 64 || b === 96 || (b === 63 || b === 45) && (
|
|
1865
|
+
var o, a, r, n, l, c, d, f, p = e.kind, _ = e.result, b;
|
|
1866
|
+
if (b = e.input.charCodeAt(e.position), ge(b) || Ve(b) || b === 35 || b === 38 || b === 42 || b === 33 || b === 124 || b === 62 || b === 39 || b === 34 || b === 37 || b === 64 || b === 96 || (b === 63 || b === 45) && (a = e.input.charCodeAt(e.position + 1), ge(a) || t && Ve(a)))
|
|
1867
1867
|
return !1;
|
|
1868
|
-
for (e.kind = "scalar", e.result = "", r =
|
|
1868
|
+
for (e.kind = "scalar", e.result = "", r = n = e.position, l = !1; b !== 0; ) {
|
|
1869
1869
|
if (b === 58) {
|
|
1870
|
-
if (
|
|
1870
|
+
if (a = e.input.charCodeAt(e.position + 1), ge(a) || t && Ve(a))
|
|
1871
1871
|
break;
|
|
1872
1872
|
} else if (b === 35) {
|
|
1873
|
-
if (
|
|
1873
|
+
if (o = e.input.charCodeAt(e.position - 1), ge(o))
|
|
1874
1874
|
break;
|
|
1875
1875
|
} else {
|
|
1876
1876
|
if (e.position === e.lineStart && it(e) || t && Ve(b))
|
|
1877
1877
|
break;
|
|
1878
1878
|
if (_e(b))
|
|
1879
|
-
if (c = e.line, d = e.lineStart, f = e.lineIndent,
|
|
1880
|
-
|
|
1879
|
+
if (c = e.line, d = e.lineStart, f = e.lineIndent, le(e, !1, -1), e.lineIndent >= i) {
|
|
1880
|
+
l = !0, b = e.input.charCodeAt(e.position);
|
|
1881
1881
|
continue;
|
|
1882
1882
|
} else {
|
|
1883
|
-
e.position =
|
|
1883
|
+
e.position = n, e.line = c, e.lineStart = d, e.lineIndent = f;
|
|
1884
1884
|
break;
|
|
1885
1885
|
}
|
|
1886
1886
|
}
|
|
1887
|
-
|
|
1887
|
+
l && (Se(e, r, n, !1), It(e, e.line - c), r = n = e.position, l = !1), Te(b) || (n = e.position + 1), b = e.input.charCodeAt(++e.position);
|
|
1888
1888
|
}
|
|
1889
|
-
return Se(e, r,
|
|
1889
|
+
return Se(e, r, n, !1), e.result ? !0 : (e.kind = p, e.result = _, !1);
|
|
1890
1890
|
}
|
|
1891
1891
|
function Tr(e, i) {
|
|
1892
|
-
var t,
|
|
1892
|
+
var t, o, a;
|
|
1893
1893
|
if (t = e.input.charCodeAt(e.position), t !== 39)
|
|
1894
1894
|
return !1;
|
|
1895
|
-
for (e.kind = "scalar", e.result = "", e.position++,
|
|
1895
|
+
for (e.kind = "scalar", e.result = "", e.position++, o = a = e.position; (t = e.input.charCodeAt(e.position)) !== 0; )
|
|
1896
1896
|
if (t === 39)
|
|
1897
|
-
if (Se(e,
|
|
1898
|
-
|
|
1897
|
+
if (Se(e, o, e.position, !0), t = e.input.charCodeAt(++e.position), t === 39)
|
|
1898
|
+
o = e.position, e.position++, a = e.position;
|
|
1899
1899
|
else
|
|
1900
1900
|
return !0;
|
|
1901
1901
|
else
|
|
1902
|
-
_e(t) ? (Se(e,
|
|
1902
|
+
_e(t) ? (Se(e, o, a, !0), It(e, le(e, !1, i)), o = a = e.position) : e.position === e.lineStart && it(e) ? j(e, "unexpected end of the document within a single quoted scalar") : (e.position++, a = e.position);
|
|
1903
1903
|
j(e, "unexpected end of the stream within a single quoted scalar");
|
|
1904
1904
|
}
|
|
1905
1905
|
function $r(e, i) {
|
|
1906
|
-
var t,
|
|
1907
|
-
if (
|
|
1906
|
+
var t, o, a, r, n, l;
|
|
1907
|
+
if (l = e.input.charCodeAt(e.position), l !== 34)
|
|
1908
1908
|
return !1;
|
|
1909
|
-
for (e.kind = "scalar", e.result = "", e.position++, t =
|
|
1910
|
-
if (
|
|
1909
|
+
for (e.kind = "scalar", e.result = "", e.position++, t = o = e.position; (l = e.input.charCodeAt(e.position)) !== 0; ) {
|
|
1910
|
+
if (l === 34)
|
|
1911
1911
|
return Se(e, t, e.position, !0), e.position++, !0;
|
|
1912
|
-
if (
|
|
1913
|
-
if (Se(e, t, e.position, !0),
|
|
1914
|
-
|
|
1915
|
-
else if (
|
|
1916
|
-
e.result += Oi[
|
|
1917
|
-
else if ((
|
|
1918
|
-
for (
|
|
1919
|
-
|
|
1912
|
+
if (l === 92) {
|
|
1913
|
+
if (Se(e, t, e.position, !0), l = e.input.charCodeAt(++e.position), _e(l))
|
|
1914
|
+
le(e, !1, i);
|
|
1915
|
+
else if (l < 256 && Ei[l])
|
|
1916
|
+
e.result += Oi[l], e.position++;
|
|
1917
|
+
else if ((n = Cr(l)) > 0) {
|
|
1918
|
+
for (a = n, r = 0; a > 0; a--)
|
|
1919
|
+
l = e.input.charCodeAt(++e.position), (n = kr(l)) >= 0 ? r = (r << 4) + n : j(e, "expected hexadecimal character");
|
|
1920
1920
|
e.result += Ir(r), e.position++;
|
|
1921
1921
|
} else
|
|
1922
1922
|
j(e, "unknown escape sequence");
|
|
1923
|
-
t =
|
|
1923
|
+
t = o = e.position;
|
|
1924
1924
|
} else
|
|
1925
|
-
_e(
|
|
1925
|
+
_e(l) ? (Se(e, t, o, !0), It(e, le(e, !1, i)), t = o = e.position) : e.position === e.lineStart && it(e) ? j(e, "unexpected end of the document within a double quoted scalar") : (e.position++, o = e.position);
|
|
1926
1926
|
}
|
|
1927
1927
|
j(e, "unexpected end of the stream within a double quoted scalar");
|
|
1928
1928
|
}
|
|
1929
1929
|
function jr(e, i) {
|
|
1930
|
-
var t = !0,
|
|
1930
|
+
var t = !0, o, a, r, n = e.tag, l, c = e.anchor, d, f, p, _, b, C = /* @__PURE__ */ Object.create(null), I, v, A, s;
|
|
1931
1931
|
if (s = e.input.charCodeAt(e.position), s === 91)
|
|
1932
|
-
f = 93, b = !1,
|
|
1932
|
+
f = 93, b = !1, l = [];
|
|
1933
1933
|
else if (s === 123)
|
|
1934
|
-
f = 125, b = !0,
|
|
1934
|
+
f = 125, b = !0, l = {};
|
|
1935
1935
|
else
|
|
1936
1936
|
return !1;
|
|
1937
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] =
|
|
1938
|
-
if (
|
|
1939
|
-
return e.position++, e.tag =
|
|
1940
|
-
t ? s === 44 && j(e, "expected the node content, but found ','") : j(e, "missed comma between flow collection entries"), v = I = A = null, p = _ = !1, s === 63 && (d = e.input.charCodeAt(e.position + 1), ge(d) && (p = _ = !0, e.position++,
|
|
1937
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = l), s = e.input.charCodeAt(++e.position); s !== 0; ) {
|
|
1938
|
+
if (le(e, !0, i), s = e.input.charCodeAt(e.position), s === f)
|
|
1939
|
+
return e.position++, e.tag = n, e.anchor = c, e.kind = b ? "mapping" : "sequence", e.result = l, !0;
|
|
1940
|
+
t ? s === 44 && j(e, "expected the node content, but found ','") : j(e, "missed comma between flow collection entries"), v = I = A = null, p = _ = !1, s === 63 && (d = e.input.charCodeAt(e.position + 1), ge(d) && (p = _ = !0, e.position++, le(e, !0, i))), o = e.line, a = e.lineStart, r = e.position, Be(e, i, We, !1, !0), v = e.tag, I = e.result, le(e, !0, i), s = e.input.charCodeAt(e.position), (_ || e.line === o) && s === 58 && (p = !0, s = e.input.charCodeAt(++e.position), le(e, !0, i), Be(e, i, We, !1, !0), A = e.result), b ? Fe(e, l, C, v, I, A, o, a, r) : p ? l.push(Fe(e, null, C, v, I, A, o, a, r)) : l.push(I), le(e, !0, i), s = e.input.charCodeAt(e.position), s === 44 ? (t = !0, s = e.input.charCodeAt(++e.position)) : t = !1;
|
|
1941
1941
|
}
|
|
1942
1942
|
j(e, "unexpected end of the stream within a flow collection");
|
|
1943
1943
|
}
|
|
1944
1944
|
function Mr(e, i) {
|
|
1945
|
-
var t,
|
|
1945
|
+
var t, o, a = st, r = !1, n = !1, l = i, c = 0, d = !1, f, p;
|
|
1946
1946
|
if (p = e.input.charCodeAt(e.position), p === 124)
|
|
1947
|
-
|
|
1947
|
+
o = !1;
|
|
1948
1948
|
else if (p === 62)
|
|
1949
|
-
|
|
1949
|
+
o = !0;
|
|
1950
1950
|
else
|
|
1951
1951
|
return !1;
|
|
1952
1952
|
for (e.kind = "scalar", e.result = ""; p !== 0; )
|
|
1953
1953
|
if (p = e.input.charCodeAt(++e.position), p === 43 || p === 45)
|
|
1954
|
-
st ===
|
|
1954
|
+
st === a ? a = p === 43 ? Bt : hr : j(e, "repeat of a chomping mode identifier");
|
|
1955
1955
|
else if ((f = Sr(p)) >= 0)
|
|
1956
|
-
f === 0 ? j(e, "bad explicit indentation width of a block scalar; it cannot be less than one") :
|
|
1956
|
+
f === 0 ? j(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : n ? j(e, "repeat of an indentation width identifier") : (l = i + f - 1, n = !0);
|
|
1957
1957
|
else
|
|
1958
1958
|
break;
|
|
1959
1959
|
if (Te(p)) {
|
|
@@ -1966,59 +1966,59 @@ function Mr(e, i) {
|
|
|
1966
1966
|
while (!_e(p) && p !== 0);
|
|
1967
1967
|
}
|
|
1968
1968
|
for (; p !== 0; ) {
|
|
1969
|
-
for (St(e), e.lineIndent = 0, p = e.input.charCodeAt(e.position); (!
|
|
1969
|
+
for (St(e), e.lineIndent = 0, p = e.input.charCodeAt(e.position); (!n || e.lineIndent < l) && p === 32; )
|
|
1970
1970
|
e.lineIndent++, p = e.input.charCodeAt(++e.position);
|
|
1971
|
-
if (!
|
|
1971
|
+
if (!n && e.lineIndent > l && (l = e.lineIndent), _e(p)) {
|
|
1972
1972
|
c++;
|
|
1973
1973
|
continue;
|
|
1974
1974
|
}
|
|
1975
|
-
if (e.lineIndent <
|
|
1976
|
-
|
|
1977
|
-
`, r ? 1 + c : c) :
|
|
1975
|
+
if (e.lineIndent < l) {
|
|
1976
|
+
a === Bt ? e.result += se.repeat(`
|
|
1977
|
+
`, r ? 1 + c : c) : a === st && r && (e.result += `
|
|
1978
1978
|
`);
|
|
1979
1979
|
break;
|
|
1980
1980
|
}
|
|
1981
|
-
for (
|
|
1981
|
+
for (o ? Te(p) ? (d = !0, e.result += se.repeat(`
|
|
1982
1982
|
`, r ? 1 + c : c)) : d ? (d = !1, e.result += se.repeat(`
|
|
1983
1983
|
`, c + 1)) : c === 0 ? r && (e.result += " ") : e.result += se.repeat(`
|
|
1984
1984
|
`, c) : e.result += se.repeat(`
|
|
1985
|
-
`, r ? 1 + c : c), r = !0,
|
|
1985
|
+
`, r ? 1 + c : c), r = !0, n = !0, c = 0, t = e.position; !_e(p) && p !== 0; )
|
|
1986
1986
|
p = e.input.charCodeAt(++e.position);
|
|
1987
1987
|
Se(e, t, e.position, !1);
|
|
1988
1988
|
}
|
|
1989
1989
|
return !0;
|
|
1990
1990
|
}
|
|
1991
1991
|
function Ut(e, i) {
|
|
1992
|
-
var t,
|
|
1992
|
+
var t, o = e.tag, a = e.anchor, r = [], n, l = !1, c;
|
|
1993
1993
|
if (e.firstTabInLine !== -1)
|
|
1994
1994
|
return !1;
|
|
1995
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] = r), c = e.input.charCodeAt(e.position); c !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, j(e, "tab characters must not be used in indentation")), !(c !== 45 || (
|
|
1996
|
-
if (
|
|
1995
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = r), c = e.input.charCodeAt(e.position); c !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, j(e, "tab characters must not be used in indentation")), !(c !== 45 || (n = e.input.charCodeAt(e.position + 1), !ge(n)))); ) {
|
|
1996
|
+
if (l = !0, e.position++, le(e, !0, -1) && e.lineIndent <= i) {
|
|
1997
1997
|
r.push(null), c = e.input.charCodeAt(e.position);
|
|
1998
1998
|
continue;
|
|
1999
1999
|
}
|
|
2000
|
-
if (t = e.line, Be(e, i, $i, !1, !0), r.push(e.result),
|
|
2000
|
+
if (t = e.line, Be(e, i, $i, !1, !0), r.push(e.result), le(e, !0, -1), c = e.input.charCodeAt(e.position), (e.line === t || e.lineIndent > i) && c !== 0)
|
|
2001
2001
|
j(e, "bad indentation of a sequence entry");
|
|
2002
2002
|
else if (e.lineIndent < i)
|
|
2003
2003
|
break;
|
|
2004
2004
|
}
|
|
2005
|
-
return
|
|
2005
|
+
return l ? (e.tag = o, e.anchor = a, e.kind = "sequence", e.result = r, !0) : !1;
|
|
2006
2006
|
}
|
|
2007
2007
|
function Er(e, i, t) {
|
|
2008
|
-
var
|
|
2008
|
+
var o, a, r, n, l, c, d = e.tag, f = e.anchor, p = {}, _ = /* @__PURE__ */ Object.create(null), b = null, C = null, I = null, v = !1, A = !1, s;
|
|
2009
2009
|
if (e.firstTabInLine !== -1)
|
|
2010
2010
|
return !1;
|
|
2011
2011
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = p), s = e.input.charCodeAt(e.position); s !== 0; ) {
|
|
2012
|
-
if (!v && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, j(e, "tab characters must not be used in indentation")),
|
|
2013
|
-
s === 63 ? (v && (Fe(e, p, _, b, C, null,
|
|
2012
|
+
if (!v && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, j(e, "tab characters must not be used in indentation")), o = e.input.charCodeAt(e.position + 1), r = e.line, (s === 63 || s === 58) && ge(o))
|
|
2013
|
+
s === 63 ? (v && (Fe(e, p, _, b, C, null, n, l, c), b = C = I = null), A = !0, v = !0, a = !0) : v ? (v = !1, a = !0) : j(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, s = o;
|
|
2014
2014
|
else {
|
|
2015
|
-
if (
|
|
2015
|
+
if (n = e.line, l = e.lineStart, c = e.position, !Be(e, t, Ti, !1, !0))
|
|
2016
2016
|
break;
|
|
2017
2017
|
if (e.line === r) {
|
|
2018
2018
|
for (s = e.input.charCodeAt(e.position); Te(s); )
|
|
2019
2019
|
s = e.input.charCodeAt(++e.position);
|
|
2020
2020
|
if (s === 58)
|
|
2021
|
-
s = e.input.charCodeAt(++e.position), ge(s) || j(e, "a whitespace character is expected after the key-value separator within a block mapping"), v && (Fe(e, p, _, b, C, null,
|
|
2021
|
+
s = e.input.charCodeAt(++e.position), ge(s) || j(e, "a whitespace character is expected after the key-value separator within a block mapping"), v && (Fe(e, p, _, b, C, null, n, l, c), b = C = I = null), A = !0, v = !1, a = !1, b = e.tag, C = e.result;
|
|
2022
2022
|
else if (A)
|
|
2023
2023
|
j(e, "can not read an implicit mapping pair; a colon is missed");
|
|
2024
2024
|
else
|
|
@@ -2028,25 +2028,25 @@ function Er(e, i, t) {
|
|
|
2028
2028
|
else
|
|
2029
2029
|
return e.tag = d, e.anchor = f, !0;
|
|
2030
2030
|
}
|
|
2031
|
-
if ((e.line === r || e.lineIndent > i) && (v && (
|
|
2031
|
+
if ((e.line === r || e.lineIndent > i) && (v && (n = e.line, l = e.lineStart, c = e.position), Be(e, i, Ze, !0, a) && (v ? C = e.result : I = e.result), v || (Fe(e, p, _, b, C, I, n, l, c), b = C = I = null), le(e, !0, -1), s = e.input.charCodeAt(e.position)), (e.line === r || e.lineIndent > i) && s !== 0)
|
|
2032
2032
|
j(e, "bad indentation of a mapping entry");
|
|
2033
2033
|
else if (e.lineIndent < i)
|
|
2034
2034
|
break;
|
|
2035
2035
|
}
|
|
2036
|
-
return v && Fe(e, p, _, b, C, null,
|
|
2036
|
+
return v && Fe(e, p, _, b, C, null, n, l, c), A && (e.tag = d, e.anchor = f, e.kind = "mapping", e.result = p), A;
|
|
2037
2037
|
}
|
|
2038
2038
|
function Or(e) {
|
|
2039
|
-
var i, t = !1,
|
|
2040
|
-
if (
|
|
2039
|
+
var i, t = !1, o = !1, a, r, n;
|
|
2040
|
+
if (n = e.input.charCodeAt(e.position), n !== 33)
|
|
2041
2041
|
return !1;
|
|
2042
|
-
if (e.tag !== null && j(e, "duplication of a tag property"),
|
|
2042
|
+
if (e.tag !== null && j(e, "duplication of a tag property"), n = e.input.charCodeAt(++e.position), n === 60 ? (t = !0, n = e.input.charCodeAt(++e.position)) : n === 33 ? (o = !0, a = "!!", n = e.input.charCodeAt(++e.position)) : a = "!", i = e.position, t) {
|
|
2043
2043
|
do
|
|
2044
|
-
|
|
2045
|
-
while (
|
|
2046
|
-
e.position < e.length ? (r = e.input.slice(i, e.position),
|
|
2044
|
+
n = e.input.charCodeAt(++e.position);
|
|
2045
|
+
while (n !== 0 && n !== 62);
|
|
2046
|
+
e.position < e.length ? (r = e.input.slice(i, e.position), n = e.input.charCodeAt(++e.position)) : j(e, "unexpected end of the stream within a verbatim tag");
|
|
2047
2047
|
} else {
|
|
2048
|
-
for (;
|
|
2049
|
-
|
|
2048
|
+
for (; n !== 0 && !ge(n); )
|
|
2049
|
+
n === 33 && (o ? j(e, "tag suffix cannot contain exclamation marks") : (a = e.input.slice(i - 1, e.position + 1), ji.test(a) || j(e, "named tag handle cannot contain such characters"), o = !0, i = e.position + 1)), n = e.input.charCodeAt(++e.position);
|
|
2050
2050
|
r = e.input.slice(i, e.position), wr.test(r) && j(e, "tag suffix cannot contain flow indicator characters");
|
|
2051
2051
|
}
|
|
2052
2052
|
r && !Mi.test(r) && j(e, "tag name cannot contain such characters: " + r);
|
|
@@ -2055,7 +2055,7 @@ function Or(e) {
|
|
|
2055
2055
|
} catch {
|
|
2056
2056
|
j(e, "tag name is malformed: " + r);
|
|
2057
2057
|
}
|
|
2058
|
-
return t ? e.tag = r : Ie.call(e.tagMap,
|
|
2058
|
+
return t ? e.tag = r : Ie.call(e.tagMap, a) ? e.tag = e.tagMap[a] + r : a === "!" ? e.tag = "!" + r : a === "!!" ? e.tag = "tag:yaml.org,2002:" + r : j(e, 'undeclared tag handle "' + a + '"'), !0;
|
|
2059
2059
|
}
|
|
2060
2060
|
function Vr(e) {
|
|
2061
2061
|
var i, t;
|
|
@@ -2066,19 +2066,19 @@ function Vr(e) {
|
|
|
2066
2066
|
return e.position === i && j(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(i, e.position), !0;
|
|
2067
2067
|
}
|
|
2068
2068
|
function Fr(e) {
|
|
2069
|
-
var i, t,
|
|
2070
|
-
if (
|
|
2069
|
+
var i, t, o;
|
|
2070
|
+
if (o = e.input.charCodeAt(e.position), o !== 42)
|
|
2071
2071
|
return !1;
|
|
2072
|
-
for (
|
|
2073
|
-
|
|
2074
|
-
return e.position === i && j(e, "name of an alias node must contain at least one character"), t = e.input.slice(i, e.position), Ie.call(e.anchorMap, t) || j(e, 'unidentified alias "' + t + '"'), e.result = e.anchorMap[t],
|
|
2072
|
+
for (o = e.input.charCodeAt(++e.position), i = e.position; o !== 0 && !ge(o) && !Ve(o); )
|
|
2073
|
+
o = e.input.charCodeAt(++e.position);
|
|
2074
|
+
return e.position === i && j(e, "name of an alias node must contain at least one character"), t = e.input.slice(i, e.position), Ie.call(e.anchorMap, t) || j(e, 'unidentified alias "' + t + '"'), e.result = e.anchorMap[t], le(e, !0, -1), !0;
|
|
2075
2075
|
}
|
|
2076
|
-
function Be(e, i, t,
|
|
2077
|
-
var r,
|
|
2078
|
-
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, r =
|
|
2076
|
+
function Be(e, i, t, o, a) {
|
|
2077
|
+
var r, n, l, c = 1, d = !1, f = !1, p, _, b, C, I, v;
|
|
2078
|
+
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, r = n = l = Ze === t || $i === t, o && le(e, !0, -1) && (d = !0, e.lineIndent > i ? c = 1 : e.lineIndent === i ? c = 0 : e.lineIndent < i && (c = -1)), c === 1)
|
|
2079
2079
|
for (; Or(e) || Vr(e); )
|
|
2080
|
-
|
|
2081
|
-
if (
|
|
2080
|
+
le(e, !0, -1) ? (d = !0, l = r, e.lineIndent > i ? c = 1 : e.lineIndent === i ? c = 0 : e.lineIndent < i && (c = -1)) : l = !1;
|
|
2081
|
+
if (l && (l = d || a), (c === 1 || Ze === t) && (We === t || Ti === t ? I = i : I = i + 1, v = e.position - e.lineStart, c === 1 ? l && (Ut(e, v) || Er(e, v, I)) || jr(e, I) ? f = !0 : (n && Mr(e, I) || Tr(e, I) || $r(e, I) ? f = !0 : Fr(e) ? (f = !0, (e.tag !== null || e.anchor !== null) && j(e, "alias node should not have any properties")) : xr(e, I, We === t) && (f = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : c === 0 && (f = l && Ut(e, v))), e.tag === null)
|
|
2082
2082
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
2083
2083
|
else if (e.tag === "?") {
|
|
2084
2084
|
for (e.result !== null && e.kind !== "scalar" && j(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), p = 0, _ = e.implicitTypes.length; p < _; p += 1)
|
|
@@ -2100,29 +2100,29 @@ function Be(e, i, t, a, o) {
|
|
|
2100
2100
|
return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || f;
|
|
2101
2101
|
}
|
|
2102
2102
|
function Nr(e) {
|
|
2103
|
-
var i = e.position, t,
|
|
2104
|
-
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (
|
|
2105
|
-
for (r = !0,
|
|
2106
|
-
|
|
2107
|
-
for (
|
|
2108
|
-
for (; Te(
|
|
2109
|
-
|
|
2110
|
-
if (
|
|
2103
|
+
var i = e.position, t, o, a, r = !1, n;
|
|
2104
|
+
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (n = e.input.charCodeAt(e.position)) !== 0 && (le(e, !0, -1), n = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || n !== 37)); ) {
|
|
2105
|
+
for (r = !0, n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !ge(n); )
|
|
2106
|
+
n = e.input.charCodeAt(++e.position);
|
|
2107
|
+
for (o = e.input.slice(t, e.position), a = [], o.length < 1 && j(e, "directive name must not be less than one character in length"); n !== 0; ) {
|
|
2108
|
+
for (; Te(n); )
|
|
2109
|
+
n = e.input.charCodeAt(++e.position);
|
|
2110
|
+
if (n === 35) {
|
|
2111
2111
|
do
|
|
2112
|
-
|
|
2113
|
-
while (
|
|
2112
|
+
n = e.input.charCodeAt(++e.position);
|
|
2113
|
+
while (n !== 0 && !_e(n));
|
|
2114
2114
|
break;
|
|
2115
2115
|
}
|
|
2116
|
-
if (_e(
|
|
2116
|
+
if (_e(n))
|
|
2117
2117
|
break;
|
|
2118
|
-
for (t = e.position;
|
|
2119
|
-
|
|
2120
|
-
|
|
2118
|
+
for (t = e.position; n !== 0 && !ge(n); )
|
|
2119
|
+
n = e.input.charCodeAt(++e.position);
|
|
2120
|
+
a.push(e.input.slice(t, e.position));
|
|
2121
2121
|
}
|
|
2122
|
-
|
|
2122
|
+
n !== 0 && St(e), Ie.call(Kt, o) ? Kt[o](e, o, a) : Qe(e, 'unknown document directive "' + o + '"');
|
|
2123
2123
|
}
|
|
2124
|
-
if (
|
|
2125
|
-
e.input.charCodeAt(e.position) === 46 && (e.position += 3,
|
|
2124
|
+
if (le(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, le(e, !0, -1)) : r && j(e, "directives end mark is expected"), Be(e, e.lineIndent - 1, Ze, !1, !0), le(e, !0, -1), e.checkLineBreaks && _r.test(e.input.slice(i, e.position)) && Qe(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && it(e)) {
|
|
2125
|
+
e.input.charCodeAt(e.position) === 46 && (e.position += 3, le(e, !0, -1));
|
|
2126
2126
|
return;
|
|
2127
2127
|
}
|
|
2128
2128
|
if (e.position < e.length - 1)
|
|
@@ -2133,8 +2133,8 @@ function Nr(e) {
|
|
|
2133
2133
|
function Fi(e, i) {
|
|
2134
2134
|
e = String(e), i = i || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
|
|
2135
2135
|
`), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
2136
|
-
var t = new Ar(e, i),
|
|
2137
|
-
for (
|
|
2136
|
+
var t = new Ar(e, i), o = e.indexOf("\0");
|
|
2137
|
+
for (o !== -1 && (t.position = o, j(t, "null byte is not allowed in input")), t.input += "\0"; t.input.charCodeAt(t.position) === 32; )
|
|
2138
2138
|
t.lineIndent += 1, t.position += 1;
|
|
2139
2139
|
for (; t.position < t.length - 1; )
|
|
2140
2140
|
Nr(t);
|
|
@@ -2142,11 +2142,11 @@ function Fi(e, i) {
|
|
|
2142
2142
|
}
|
|
2143
2143
|
function Br(e, i, t) {
|
|
2144
2144
|
i !== null && typeof i == "object" && typeof t > "u" && (t = i, i = null);
|
|
2145
|
-
var
|
|
2145
|
+
var o = Fi(e, t);
|
|
2146
2146
|
if (typeof i != "function")
|
|
2147
|
-
return
|
|
2148
|
-
for (var
|
|
2149
|
-
i(a
|
|
2147
|
+
return o;
|
|
2148
|
+
for (var a = 0, r = o.length; a < r; a += 1)
|
|
2149
|
+
i(o[a]);
|
|
2150
2150
|
}
|
|
2151
2151
|
function Lr(e, i) {
|
|
2152
2152
|
var t = Fi(e, i);
|
|
@@ -2159,7 +2159,7 @@ function Lr(e, i) {
|
|
|
2159
2159
|
var Pr = Br, Kr = Lr, Ni = {
|
|
2160
2160
|
loadAll: Pr,
|
|
2161
2161
|
load: Kr
|
|
2162
|
-
}, Bi = Object.prototype.toString, Li = Object.prototype.hasOwnProperty, At = 65279, qr = 9, Re = 10, Ur = 13, Rr = 32, Dr = 33, Gr = 34, pt = 35, Hr = 37, zr = 38, Yr = 39, Jr = 42, Pi = 44, Wr = 45, Xe = 58, Zr = 61, Qr = 62, Xr = 63,
|
|
2162
|
+
}, Bi = Object.prototype.toString, Li = Object.prototype.hasOwnProperty, At = 65279, qr = 9, Re = 10, Ur = 13, Rr = 32, Dr = 33, Gr = 34, pt = 35, Hr = 37, zr = 38, Yr = 39, Jr = 42, Pi = 44, Wr = 45, Xe = 58, Zr = 61, Qr = 62, Xr = 63, el = 64, Ki = 91, qi = 93, tl = 96, Ui = 123, il = 124, Ri = 125, me = {};
|
|
2163
2163
|
me[0] = "\\0";
|
|
2164
2164
|
me[7] = "\\a";
|
|
2165
2165
|
me[8] = "\\b";
|
|
@@ -2175,7 +2175,7 @@ me[133] = "\\N";
|
|
|
2175
2175
|
me[160] = "\\_";
|
|
2176
2176
|
me[8232] = "\\L";
|
|
2177
2177
|
me[8233] = "\\P";
|
|
2178
|
-
var
|
|
2178
|
+
var ol = [
|
|
2179
2179
|
"y",
|
|
2180
2180
|
"Y",
|
|
2181
2181
|
"yes",
|
|
@@ -2192,46 +2192,46 @@ var on = [
|
|
|
2192
2192
|
"off",
|
|
2193
2193
|
"Off",
|
|
2194
2194
|
"OFF"
|
|
2195
|
-
],
|
|
2196
|
-
function
|
|
2197
|
-
var t,
|
|
2195
|
+
], al = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
2196
|
+
function rl(e, i) {
|
|
2197
|
+
var t, o, a, r, n, l, c;
|
|
2198
2198
|
if (i === null)
|
|
2199
2199
|
return {};
|
|
2200
|
-
for (t = {},
|
|
2201
|
-
|
|
2200
|
+
for (t = {}, o = Object.keys(i), a = 0, r = o.length; a < r; a += 1)
|
|
2201
|
+
n = o[a], l = String(i[n]), n.slice(0, 2) === "!!" && (n = "tag:yaml.org,2002:" + n.slice(2)), c = e.compiledTypeMap.fallback[n], c && Li.call(c.styleAliases, l) && (l = c.styleAliases[l]), t[n] = l;
|
|
2202
2202
|
return t;
|
|
2203
2203
|
}
|
|
2204
|
-
function
|
|
2205
|
-
var i, t,
|
|
2204
|
+
function ll(e) {
|
|
2205
|
+
var i, t, o;
|
|
2206
2206
|
if (i = e.toString(16).toUpperCase(), e <= 255)
|
|
2207
|
-
t = "x",
|
|
2207
|
+
t = "x", o = 2;
|
|
2208
2208
|
else if (e <= 65535)
|
|
2209
|
-
t = "u",
|
|
2209
|
+
t = "u", o = 4;
|
|
2210
2210
|
else if (e <= 4294967295)
|
|
2211
|
-
t = "U",
|
|
2211
|
+
t = "U", o = 8;
|
|
2212
2212
|
else
|
|
2213
2213
|
throw new ye("code point within a string may not be greater than 0xFFFFFFFF");
|
|
2214
|
-
return "\\" + t + se.repeat("0",
|
|
2214
|
+
return "\\" + t + se.repeat("0", o - i.length) + i;
|
|
2215
2215
|
}
|
|
2216
|
-
var
|
|
2217
|
-
function
|
|
2218
|
-
this.schema = e.schema || Ct, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = se.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap =
|
|
2216
|
+
var nl = 1, De = 2;
|
|
2217
|
+
function sl(e) {
|
|
2218
|
+
this.schema = e.schema || Ct, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = se.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = rl(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 === '"' ? De : nl, 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;
|
|
2219
2219
|
}
|
|
2220
2220
|
function Rt(e, i) {
|
|
2221
|
-
for (var t = se.repeat(" ", i),
|
|
2222
|
-
|
|
2223
|
-
`,
|
|
2224
|
-
` && (r += t), r +=
|
|
2221
|
+
for (var t = se.repeat(" ", i), o = 0, a = -1, r = "", n, l = e.length; o < l; )
|
|
2222
|
+
a = e.indexOf(`
|
|
2223
|
+
`, o), a === -1 ? (n = e.slice(o), o = l) : (n = e.slice(o, a + 1), o = a + 1), n.length && n !== `
|
|
2224
|
+
` && (r += t), r += n;
|
|
2225
2225
|
return r;
|
|
2226
2226
|
}
|
|
2227
2227
|
function ft(e, i) {
|
|
2228
2228
|
return `
|
|
2229
2229
|
` + se.repeat(" ", e.indent * i);
|
|
2230
2230
|
}
|
|
2231
|
-
function
|
|
2232
|
-
var t,
|
|
2233
|
-
for (t = 0,
|
|
2234
|
-
if (
|
|
2231
|
+
function cl(e, i) {
|
|
2232
|
+
var t, o, a;
|
|
2233
|
+
for (t = 0, o = e.implicitTypes.length; t < o; t += 1)
|
|
2234
|
+
if (a = e.implicitTypes[t], a.resolve(i))
|
|
2235
2235
|
return !0;
|
|
2236
2236
|
return !1;
|
|
2237
2237
|
}
|
|
@@ -2245,70 +2245,70 @@ function Dt(e) {
|
|
|
2245
2245
|
return Ge(e) && e !== At && e !== Ur && e !== Re;
|
|
2246
2246
|
}
|
|
2247
2247
|
function Gt(e, i, t) {
|
|
2248
|
-
var
|
|
2248
|
+
var o = Dt(e), a = o && !et(e);
|
|
2249
2249
|
return (
|
|
2250
2250
|
// ns-plain-safe
|
|
2251
2251
|
(t ? (
|
|
2252
2252
|
// c = flow-in
|
|
2253
|
-
|
|
2254
|
-
) :
|
|
2253
|
+
o
|
|
2254
|
+
) : o && e !== Pi && e !== Ki && e !== qi && e !== Ui && e !== Ri) && e !== pt && !(i === Xe && !a) || Dt(i) && !et(i) && e === pt || i === Xe && a
|
|
2255
2255
|
);
|
|
2256
2256
|
}
|
|
2257
|
-
function
|
|
2258
|
-
return Ge(e) && e !== At && !et(e) && e !== Wr && e !== Xr && e !== Xe && e !== Pi && e !== Ki && e !== qi && e !== Ui && e !== Ri && e !== pt && e !== zr && e !== Jr && e !== Dr && e !==
|
|
2257
|
+
function ul(e) {
|
|
2258
|
+
return Ge(e) && e !== At && !et(e) && e !== Wr && e !== Xr && e !== Xe && e !== Pi && e !== Ki && e !== qi && e !== Ui && e !== Ri && e !== pt && e !== zr && e !== Jr && e !== Dr && e !== il && e !== Zr && e !== Qr && e !== Yr && e !== Gr && e !== Hr && e !== el && e !== tl;
|
|
2259
2259
|
}
|
|
2260
|
-
function
|
|
2260
|
+
function dl(e) {
|
|
2261
2261
|
return !et(e) && e !== Xe;
|
|
2262
2262
|
}
|
|
2263
2263
|
function Pe(e, i) {
|
|
2264
|
-
var t = e.charCodeAt(i),
|
|
2265
|
-
return t >= 55296 && t <= 56319 && i + 1 < e.length && (
|
|
2264
|
+
var t = e.charCodeAt(i), o;
|
|
2265
|
+
return t >= 55296 && t <= 56319 && i + 1 < e.length && (o = e.charCodeAt(i + 1), o >= 56320 && o <= 57343) ? (t - 55296) * 1024 + o - 56320 + 65536 : t;
|
|
2266
2266
|
}
|
|
2267
2267
|
function Di(e) {
|
|
2268
2268
|
var i = /^\n* /;
|
|
2269
2269
|
return i.test(e);
|
|
2270
2270
|
}
|
|
2271
2271
|
var Gi = 1, mt = 2, Hi = 3, zi = 4, Oe = 5;
|
|
2272
|
-
function
|
|
2273
|
-
var c, d = 0, f = null, p = !1, _ = !1, b =
|
|
2274
|
-
if (i ||
|
|
2272
|
+
function pl(e, i, t, o, a, r, n, l) {
|
|
2273
|
+
var c, d = 0, f = null, p = !1, _ = !1, b = o !== -1, C = -1, I = ul(Pe(e, 0)) && dl(Pe(e, e.length - 1));
|
|
2274
|
+
if (i || n)
|
|
2275
2275
|
for (c = 0; c < e.length; d >= 65536 ? c += 2 : c++) {
|
|
2276
2276
|
if (d = Pe(e, c), !Ge(d))
|
|
2277
2277
|
return Oe;
|
|
2278
|
-
I = I && Gt(d, f,
|
|
2278
|
+
I = I && Gt(d, f, l), f = d;
|
|
2279
2279
|
}
|
|
2280
2280
|
else {
|
|
2281
2281
|
for (c = 0; c < e.length; d >= 65536 ? c += 2 : c++) {
|
|
2282
2282
|
if (d = Pe(e, c), d === Re)
|
|
2283
2283
|
p = !0, b && (_ = _ || // Foldable line = too long, and not more-indented.
|
|
2284
|
-
c - C - 1 >
|
|
2284
|
+
c - C - 1 > o && e[C + 1] !== " ", C = c);
|
|
2285
2285
|
else if (!Ge(d))
|
|
2286
2286
|
return Oe;
|
|
2287
|
-
I = I && Gt(d, f,
|
|
2287
|
+
I = I && Gt(d, f, l), f = d;
|
|
2288
2288
|
}
|
|
2289
|
-
_ = _ || b && c - C - 1 >
|
|
2289
|
+
_ = _ || b && c - C - 1 > o && e[C + 1] !== " ";
|
|
2290
2290
|
}
|
|
2291
|
-
return !p && !_ ? I && !
|
|
2291
|
+
return !p && !_ ? I && !n && !a(e) ? Gi : r === De ? Oe : mt : t > 9 && Di(e) ? Oe : n ? r === De ? Oe : mt : _ ? zi : Hi;
|
|
2292
2292
|
}
|
|
2293
|
-
function
|
|
2293
|
+
function fl(e, i, t, o, a) {
|
|
2294
2294
|
e.dump = function() {
|
|
2295
2295
|
if (i.length === 0)
|
|
2296
2296
|
return e.quotingType === De ? '""' : "''";
|
|
2297
|
-
if (!e.noCompatMode && (
|
|
2297
|
+
if (!e.noCompatMode && (ol.indexOf(i) !== -1 || al.test(i)))
|
|
2298
2298
|
return e.quotingType === De ? '"' + i + '"' : "'" + i + "'";
|
|
2299
|
-
var r = e.indent * Math.max(1, t),
|
|
2299
|
+
var r = e.indent * Math.max(1, t), n = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - r), l = o || e.flowLevel > -1 && t >= e.flowLevel;
|
|
2300
2300
|
function c(d) {
|
|
2301
|
-
return
|
|
2301
|
+
return cl(e, d);
|
|
2302
2302
|
}
|
|
2303
|
-
switch (
|
|
2303
|
+
switch (pl(
|
|
2304
2304
|
i,
|
|
2305
|
-
n,
|
|
2306
|
-
e.indent,
|
|
2307
2305
|
l,
|
|
2306
|
+
e.indent,
|
|
2307
|
+
n,
|
|
2308
2308
|
c,
|
|
2309
2309
|
e.quotingType,
|
|
2310
|
-
e.forceQuotes && !
|
|
2311
|
-
|
|
2310
|
+
e.forceQuotes && !o,
|
|
2311
|
+
a
|
|
2312
2312
|
)) {
|
|
2313
2313
|
case Gi:
|
|
2314
2314
|
return i;
|
|
@@ -2317,19 +2317,19 @@ function mn(e, i, t, a, o) {
|
|
|
2317
2317
|
case Hi:
|
|
2318
2318
|
return "|" + Ht(i, e.indent) + zt(Rt(i, r));
|
|
2319
2319
|
case zi:
|
|
2320
|
-
return ">" + Ht(i, e.indent) + zt(Rt(
|
|
2320
|
+
return ">" + Ht(i, e.indent) + zt(Rt(ml(i, n), r));
|
|
2321
2321
|
case Oe:
|
|
2322
|
-
return '"' +
|
|
2322
|
+
return '"' + yl(i) + '"';
|
|
2323
2323
|
default:
|
|
2324
2324
|
throw new ye("impossible error: invalid scalar style");
|
|
2325
2325
|
}
|
|
2326
2326
|
}();
|
|
2327
2327
|
}
|
|
2328
2328
|
function Ht(e, i) {
|
|
2329
|
-
var t = Di(e) ? String(i) : "",
|
|
2330
|
-
`,
|
|
2329
|
+
var t = Di(e) ? String(i) : "", o = e[e.length - 1] === `
|
|
2330
|
+
`, a = o && (e[e.length - 2] === `
|
|
2331
2331
|
` || e === `
|
|
2332
|
-
`), r =
|
|
2332
|
+
`), r = a ? "+" : o ? "" : "-";
|
|
2333
2333
|
return t + r + `
|
|
2334
2334
|
`;
|
|
2335
2335
|
}
|
|
@@ -2337,99 +2337,99 @@ function zt(e) {
|
|
|
2337
2337
|
return e[e.length - 1] === `
|
|
2338
2338
|
` ? e.slice(0, -1) : e;
|
|
2339
2339
|
}
|
|
2340
|
-
function
|
|
2341
|
-
for (var t = /(\n+)([^\n]*)/g,
|
|
2340
|
+
function ml(e, i) {
|
|
2341
|
+
for (var t = /(\n+)([^\n]*)/g, o = function() {
|
|
2342
2342
|
var d = e.indexOf(`
|
|
2343
2343
|
`);
|
|
2344
2344
|
return d = d !== -1 ? d : e.length, t.lastIndex = d, Yt(e.slice(0, d), i);
|
|
2345
|
-
}(),
|
|
2346
|
-
` || e[0] === " ", r,
|
|
2347
|
-
var
|
|
2348
|
-
r = c[0] === " ",
|
|
2349
|
-
` : "") + Yt(c, i),
|
|
2345
|
+
}(), a = e[0] === `
|
|
2346
|
+
` || e[0] === " ", r, n; n = t.exec(e); ) {
|
|
2347
|
+
var l = n[1], c = n[2];
|
|
2348
|
+
r = c[0] === " ", o += l + (!a && !r && c !== "" ? `
|
|
2349
|
+
` : "") + Yt(c, i), a = r;
|
|
2350
2350
|
}
|
|
2351
|
-
return
|
|
2351
|
+
return o;
|
|
2352
2352
|
}
|
|
2353
2353
|
function Yt(e, i) {
|
|
2354
2354
|
if (e === "" || e[0] === " ")
|
|
2355
2355
|
return e;
|
|
2356
|
-
for (var t = / [^ ]/g,
|
|
2357
|
-
|
|
2358
|
-
` + e.slice(
|
|
2356
|
+
for (var t = / [^ ]/g, o, a = 0, r, n = 0, l = 0, c = ""; o = t.exec(e); )
|
|
2357
|
+
l = o.index, l - a > i && (r = n > a ? n : l, c += `
|
|
2358
|
+
` + e.slice(a, r), a = r + 1), n = l;
|
|
2359
2359
|
return c += `
|
|
2360
|
-
`, e.length -
|
|
2361
|
-
` + e.slice(
|
|
2360
|
+
`, e.length - a > i && n > a ? c += e.slice(a, n) + `
|
|
2361
|
+
` + e.slice(n + 1) : c += e.slice(a), c.slice(1);
|
|
2362
2362
|
}
|
|
2363
|
-
function
|
|
2364
|
-
for (var i = "", t = 0,
|
|
2365
|
-
t = Pe(e,
|
|
2363
|
+
function yl(e) {
|
|
2364
|
+
for (var i = "", t = 0, o, a = 0; a < e.length; t >= 65536 ? a += 2 : a++)
|
|
2365
|
+
t = Pe(e, a), o = me[t], !o && Ge(t) ? (i += e[a], t >= 65536 && (i += e[a + 1])) : i += o || ll(t);
|
|
2366
2366
|
return i;
|
|
2367
2367
|
}
|
|
2368
|
-
function
|
|
2369
|
-
var
|
|
2370
|
-
for (r = 0,
|
|
2371
|
-
|
|
2372
|
-
e.tag =
|
|
2373
|
-
}
|
|
2374
|
-
function Jt(e, i, t,
|
|
2375
|
-
var
|
|
2376
|
-
for (
|
|
2377
|
-
c = t[
|
|
2378
|
-
e.tag = r, e.dump =
|
|
2379
|
-
}
|
|
2380
|
-
function
|
|
2381
|
-
var
|
|
2382
|
-
for (
|
|
2383
|
-
f = "",
|
|
2384
|
-
e.tag =
|
|
2385
|
-
}
|
|
2386
|
-
function
|
|
2387
|
-
var
|
|
2368
|
+
function gl(e, i, t) {
|
|
2369
|
+
var o = "", a = e.tag, r, n, l;
|
|
2370
|
+
for (r = 0, n = t.length; r < n; r += 1)
|
|
2371
|
+
l = t[r], e.replacer && (l = e.replacer.call(t, String(r), l)), (ke(e, i, l, !1, !1) || typeof l > "u" && ke(e, i, null, !1, !1)) && (o !== "" && (o += "," + (e.condenseFlow ? "" : " ")), o += e.dump);
|
|
2372
|
+
e.tag = a, e.dump = "[" + o + "]";
|
|
2373
|
+
}
|
|
2374
|
+
function Jt(e, i, t, o) {
|
|
2375
|
+
var a = "", r = e.tag, n, l, c;
|
|
2376
|
+
for (n = 0, l = t.length; n < l; n += 1)
|
|
2377
|
+
c = t[n], e.replacer && (c = e.replacer.call(t, String(n), c)), (ke(e, i + 1, c, !0, !0, !1, !0) || typeof c > "u" && ke(e, i + 1, null, !0, !0, !1, !0)) && ((!o || a !== "") && (a += ft(e, i)), e.dump && Re === e.dump.charCodeAt(0) ? a += "-" : a += "- ", a += e.dump);
|
|
2378
|
+
e.tag = r, e.dump = a || "[]";
|
|
2379
|
+
}
|
|
2380
|
+
function vl(e, i, t) {
|
|
2381
|
+
var o = "", a = e.tag, r = Object.keys(t), n, l, c, d, f;
|
|
2382
|
+
for (n = 0, l = r.length; n < l; n += 1)
|
|
2383
|
+
f = "", o !== "" && (f += ", "), e.condenseFlow && (f += '"'), c = r[n], d = t[c], e.replacer && (d = e.replacer.call(t, c, d)), ke(e, i, c, !1, !1) && (e.dump.length > 1024 && (f += "? "), f += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), ke(e, i, d, !1, !1) && (f += e.dump, o += f));
|
|
2384
|
+
e.tag = a, e.dump = "{" + o + "}";
|
|
2385
|
+
}
|
|
2386
|
+
function hl(e, i, t, o) {
|
|
2387
|
+
var a = "", r = e.tag, n = Object.keys(t), l, c, d, f, p, _;
|
|
2388
2388
|
if (e.sortKeys === !0)
|
|
2389
|
-
|
|
2389
|
+
n.sort();
|
|
2390
2390
|
else if (typeof e.sortKeys == "function")
|
|
2391
|
-
|
|
2391
|
+
n.sort(e.sortKeys);
|
|
2392
2392
|
else if (e.sortKeys)
|
|
2393
2393
|
throw new ye("sortKeys must be a boolean or a function");
|
|
2394
|
-
for (
|
|
2395
|
-
_ = "", (!
|
|
2396
|
-
e.tag = r, e.dump =
|
|
2394
|
+
for (l = 0, c = n.length; l < c; l += 1)
|
|
2395
|
+
_ = "", (!o || a !== "") && (_ += ft(e, i)), d = n[l], f = t[d], e.replacer && (f = e.replacer.call(t, d, f)), ke(e, i + 1, d, !0, !0, !0) && (p = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, p && (e.dump && Re === e.dump.charCodeAt(0) ? _ += "?" : _ += "? "), _ += e.dump, p && (_ += ft(e, i)), ke(e, i + 1, f, !0, p) && (e.dump && Re === e.dump.charCodeAt(0) ? _ += ":" : _ += ": ", _ += e.dump, a += _));
|
|
2396
|
+
e.tag = r, e.dump = a || "{}";
|
|
2397
2397
|
}
|
|
2398
2398
|
function Wt(e, i, t) {
|
|
2399
|
-
var
|
|
2400
|
-
for (
|
|
2401
|
-
if (
|
|
2402
|
-
if (t ?
|
|
2403
|
-
if (c = e.styleMap[
|
|
2404
|
-
|
|
2405
|
-
else if (Li.call(
|
|
2406
|
-
|
|
2399
|
+
var o, a, r, n, l, c;
|
|
2400
|
+
for (a = t ? e.explicitTypes : e.implicitTypes, r = 0, n = a.length; r < n; r += 1)
|
|
2401
|
+
if (l = a[r], (l.instanceOf || l.predicate) && (!l.instanceOf || typeof i == "object" && i instanceof l.instanceOf) && (!l.predicate || l.predicate(i))) {
|
|
2402
|
+
if (t ? l.multi && l.representName ? e.tag = l.representName(i) : e.tag = l.tag : e.tag = "?", l.represent) {
|
|
2403
|
+
if (c = e.styleMap[l.tag] || l.defaultStyle, Bi.call(l.represent) === "[object Function]")
|
|
2404
|
+
o = l.represent(i, c);
|
|
2405
|
+
else if (Li.call(l.represent, c))
|
|
2406
|
+
o = l.represent[c](i, c);
|
|
2407
2407
|
else
|
|
2408
|
-
throw new ye("!<" +
|
|
2409
|
-
e.dump =
|
|
2408
|
+
throw new ye("!<" + l.tag + '> tag resolver accepts not "' + c + '" style');
|
|
2409
|
+
e.dump = o;
|
|
2410
2410
|
}
|
|
2411
2411
|
return !0;
|
|
2412
2412
|
}
|
|
2413
2413
|
return !1;
|
|
2414
2414
|
}
|
|
2415
|
-
function ke(e, i, t,
|
|
2415
|
+
function ke(e, i, t, o, a, r, n) {
|
|
2416
2416
|
e.tag = null, e.dump = t, Wt(e, t, !1) || Wt(e, t, !0);
|
|
2417
|
-
var
|
|
2418
|
-
|
|
2419
|
-
var f =
|
|
2420
|
-
if (f && (p = e.duplicates.indexOf(t), _ = p !== -1), (e.tag !== null && e.tag !== "?" || _ || e.indent !== 2 && i > 0) && (
|
|
2417
|
+
var l = Bi.call(e.dump), c = o, d;
|
|
2418
|
+
o && (o = e.flowLevel < 0 || e.flowLevel > i);
|
|
2419
|
+
var f = l === "[object Object]" || l === "[object Array]", p, _;
|
|
2420
|
+
if (f && (p = e.duplicates.indexOf(t), _ = p !== -1), (e.tag !== null && e.tag !== "?" || _ || e.indent !== 2 && i > 0) && (a = !1), _ && e.usedDuplicates[p])
|
|
2421
2421
|
e.dump = "*ref_" + p;
|
|
2422
2422
|
else {
|
|
2423
|
-
if (f && _ && !e.usedDuplicates[p] && (e.usedDuplicates[p] = !0),
|
|
2424
|
-
|
|
2425
|
-
else if (
|
|
2426
|
-
|
|
2427
|
-
else if (
|
|
2428
|
-
e.tag !== "?" &&
|
|
2423
|
+
if (f && _ && !e.usedDuplicates[p] && (e.usedDuplicates[p] = !0), l === "[object Object]")
|
|
2424
|
+
o && Object.keys(e.dump).length !== 0 ? (hl(e, i, e.dump, a), _ && (e.dump = "&ref_" + p + e.dump)) : (vl(e, i, e.dump), _ && (e.dump = "&ref_" + p + " " + e.dump));
|
|
2425
|
+
else if (l === "[object Array]")
|
|
2426
|
+
o && e.dump.length !== 0 ? (e.noArrayIndent && !n && i > 0 ? Jt(e, i - 1, e.dump, a) : Jt(e, i, e.dump, a), _ && (e.dump = "&ref_" + p + e.dump)) : (gl(e, i, e.dump), _ && (e.dump = "&ref_" + p + " " + e.dump));
|
|
2427
|
+
else if (l === "[object String]")
|
|
2428
|
+
e.tag !== "?" && fl(e, e.dump, i, r, c);
|
|
2429
2429
|
else {
|
|
2430
|
-
if (
|
|
2430
|
+
if (l === "[object Undefined]" || e.skipInvalid)
|
|
2431
2431
|
return !1;
|
|
2432
|
-
throw new ye("unacceptable kind of an object to dump " +
|
|
2432
|
+
throw new ye("unacceptable kind of an object to dump " + l);
|
|
2433
2433
|
}
|
|
2434
2434
|
e.tag !== null && e.tag !== "?" && (d = encodeURI(
|
|
2435
2435
|
e.tag[0] === "!" ? e.tag.slice(1) : e.tag
|
|
@@ -2437,41 +2437,41 @@ function ke(e, i, t, a, o, r, l) {
|
|
|
2437
2437
|
}
|
|
2438
2438
|
return !0;
|
|
2439
2439
|
}
|
|
2440
|
-
function
|
|
2441
|
-
var t = [],
|
|
2442
|
-
for (yt(e, t,
|
|
2443
|
-
i.duplicates.push(t[a
|
|
2440
|
+
function bl(e, i) {
|
|
2441
|
+
var t = [], o = [], a, r;
|
|
2442
|
+
for (yt(e, t, o), a = 0, r = o.length; a < r; a += 1)
|
|
2443
|
+
i.duplicates.push(t[o[a]]);
|
|
2444
2444
|
i.usedDuplicates = new Array(r);
|
|
2445
2445
|
}
|
|
2446
2446
|
function yt(e, i, t) {
|
|
2447
|
-
var
|
|
2447
|
+
var o, a, r;
|
|
2448
2448
|
if (e !== null && typeof e == "object")
|
|
2449
|
-
if (
|
|
2450
|
-
t.indexOf(
|
|
2449
|
+
if (a = i.indexOf(e), a !== -1)
|
|
2450
|
+
t.indexOf(a) === -1 && t.push(a);
|
|
2451
2451
|
else if (i.push(e), Array.isArray(e))
|
|
2452
|
-
for (
|
|
2453
|
-
yt(e[
|
|
2452
|
+
for (a = 0, r = e.length; a < r; a += 1)
|
|
2453
|
+
yt(e[a], i, t);
|
|
2454
2454
|
else
|
|
2455
|
-
for (
|
|
2456
|
-
yt(e[a
|
|
2455
|
+
for (o = Object.keys(e), a = 0, r = o.length; a < r; a += 1)
|
|
2456
|
+
yt(e[o[a]], i, t);
|
|
2457
2457
|
}
|
|
2458
|
-
function
|
|
2458
|
+
function _l(e, i) {
|
|
2459
2459
|
i = i || {};
|
|
2460
|
-
var t = new
|
|
2461
|
-
t.noRefs ||
|
|
2462
|
-
var
|
|
2463
|
-
return t.replacer && (
|
|
2460
|
+
var t = new sl(i);
|
|
2461
|
+
t.noRefs || bl(e, t);
|
|
2462
|
+
var o = e;
|
|
2463
|
+
return t.replacer && (o = t.replacer.call({ "": o }, "", o)), ke(t, 0, o, !0, !0) ? t.dump + `
|
|
2464
2464
|
` : "";
|
|
2465
2465
|
}
|
|
2466
|
-
var
|
|
2467
|
-
dump:
|
|
2466
|
+
var wl = _l, kl = {
|
|
2467
|
+
dump: wl
|
|
2468
2468
|
};
|
|
2469
2469
|
function xt(e, i) {
|
|
2470
2470
|
return function() {
|
|
2471
2471
|
throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + i + " instead, which is now safe by default.");
|
|
2472
2472
|
};
|
|
2473
2473
|
}
|
|
2474
|
-
var
|
|
2474
|
+
var Cl = pe, Sl = ci, Il = fi, Al = hi, xl = bi, Tl = Ct, $l = Ni.load, jl = Ni.loadAll, Ml = kl.dump, El = ye, Ol = {
|
|
2475
2475
|
binary: Si,
|
|
2476
2476
|
float: vi,
|
|
2477
2477
|
map: pi,
|
|
@@ -2485,35 +2485,35 @@ var Sn = pe, In = ci, An = fi, xn = hi, Tn = bi, $n = Ct, jn = Ni.load, Mn = Ni.
|
|
|
2485
2485
|
omap: Ii,
|
|
2486
2486
|
seq: di,
|
|
2487
2487
|
str: ui
|
|
2488
|
-
},
|
|
2489
|
-
Type:
|
|
2490
|
-
Schema:
|
|
2491
|
-
FAILSAFE_SCHEMA:
|
|
2492
|
-
JSON_SCHEMA:
|
|
2493
|
-
CORE_SCHEMA:
|
|
2494
|
-
DEFAULT_SCHEMA:
|
|
2495
|
-
load:
|
|
2496
|
-
loadAll:
|
|
2497
|
-
dump:
|
|
2498
|
-
YAMLException:
|
|
2499
|
-
types:
|
|
2500
|
-
safeLoad:
|
|
2501
|
-
safeLoadAll:
|
|
2502
|
-
safeDump:
|
|
2488
|
+
}, Vl = xt("safeLoad", "load"), Fl = xt("safeLoadAll", "loadAll"), Nl = xt("safeDump", "dump"), Bl = {
|
|
2489
|
+
Type: Cl,
|
|
2490
|
+
Schema: Sl,
|
|
2491
|
+
FAILSAFE_SCHEMA: Il,
|
|
2492
|
+
JSON_SCHEMA: Al,
|
|
2493
|
+
CORE_SCHEMA: xl,
|
|
2494
|
+
DEFAULT_SCHEMA: Tl,
|
|
2495
|
+
load: $l,
|
|
2496
|
+
loadAll: jl,
|
|
2497
|
+
dump: Ml,
|
|
2498
|
+
YAMLException: El,
|
|
2499
|
+
types: Ol,
|
|
2500
|
+
safeLoad: Vl,
|
|
2501
|
+
safeLoadAll: Fl,
|
|
2502
|
+
safeDump: Nl
|
|
2503
2503
|
};
|
|
2504
|
-
const
|
|
2504
|
+
const Ll = {
|
|
2505
2505
|
key: 0,
|
|
2506
2506
|
class: "config-card-display-form"
|
|
2507
|
-
},
|
|
2507
|
+
}, Pl = ["data-testid"], Kl = {
|
|
2508
2508
|
key: 0,
|
|
2509
2509
|
class: "config-card-prop-section-title"
|
|
2510
|
-
},
|
|
2510
|
+
}, ql = {
|
|
2511
2511
|
key: 1,
|
|
2512
2512
|
class: "config-card-display-json"
|
|
2513
|
-
},
|
|
2513
|
+
}, Ul = {
|
|
2514
2514
|
key: 2,
|
|
2515
2515
|
class: "config-card-display-yaml"
|
|
2516
|
-
},
|
|
2516
|
+
}, Rl = /* @__PURE__ */ ne({
|
|
2517
2517
|
__name: "ConfigCardDisplay",
|
|
2518
2518
|
props: {
|
|
2519
2519
|
propertyCollections: {
|
|
@@ -2539,45 +2539,45 @@ const Pn = {
|
|
|
2539
2539
|
}
|
|
2540
2540
|
},
|
|
2541
2541
|
setup(e) {
|
|
2542
|
-
const i = e, t = tt(), { i18n: { t:
|
|
2543
|
-
return we(() => i.format, (
|
|
2544
|
-
|
|
2545
|
-
}, { immediate: !0 }), (
|
|
2542
|
+
const i = e, t = tt(), { i18n: { t: o } } = ce.useI18n(), a = (l) => !!(l.tooltip || t[`${l.key}-label-tooltip`]), r = V(""), n = V("");
|
|
2543
|
+
return we(() => i.format, (l) => {
|
|
2544
|
+
l === "json" ? r.value = JSON.stringify(i.record, null, 2) : l === "yaml" && (n.value = Bl.dump(i.record));
|
|
2545
|
+
}, { immediate: !0 }), (l, c) => {
|
|
2546
2546
|
const d = F("KCodeBlock");
|
|
2547
2547
|
return h(), $(he, null, [
|
|
2548
|
-
e.format === "structured" ? (h(), $("div",
|
|
2548
|
+
e.format === "structured" ? (h(), $("div", Ll, [
|
|
2549
2549
|
(h(!0), $(he, null, ve(e.propListTypes, (f) => (h(), $("div", {
|
|
2550
2550
|
key: `config-card-details-${f}-props`,
|
|
2551
2551
|
class: $e(`config-card-details-${f}-props`),
|
|
2552
2552
|
"data-testid": `config-card-details-${f}-props`
|
|
2553
2553
|
}, [
|
|
2554
|
-
f !== "basic" ? (h(), $("div",
|
|
2554
|
+
f !== "basic" ? (h(), $("div", Kl, M(f === "advanced" ? m(o)("baseConfigCard.sections.advanced") : m(o)("baseConfigCard.sections.plugin")), 1)) : U("", !0),
|
|
2555
2555
|
(h(!0), $(he, null, ve(e.propertyCollections[f], (p) => (h(), q(wt, {
|
|
2556
2556
|
key: p.key,
|
|
2557
2557
|
item: p
|
|
2558
2558
|
}, xe({
|
|
2559
2559
|
label: g(() => [
|
|
2560
|
-
Q(
|
|
2560
|
+
Q(l.$slots, `${p.key}-label`, { row: p }, void 0, !0)
|
|
2561
2561
|
]),
|
|
2562
2562
|
[p.key]: g(({ rowValue: _ }) => [
|
|
2563
|
-
Q(
|
|
2563
|
+
Q(l.$slots, p.key, {
|
|
2564
2564
|
row: p,
|
|
2565
2565
|
rowValue: _
|
|
2566
2566
|
}, void 0, !0)
|
|
2567
2567
|
]),
|
|
2568
2568
|
_: 2
|
|
2569
2569
|
}, [
|
|
2570
|
-
|
|
2570
|
+
a(p) ? {
|
|
2571
2571
|
name: "label-tooltip",
|
|
2572
2572
|
fn: g(() => [
|
|
2573
|
-
Q(
|
|
2573
|
+
Q(l.$slots, `${p.key}-label-tooltip`, { row: p }, void 0, !0)
|
|
2574
2574
|
]),
|
|
2575
2575
|
key: "0"
|
|
2576
2576
|
} : void 0
|
|
2577
2577
|
]), 1032, ["item"]))), 128))
|
|
2578
|
-
], 10,
|
|
2578
|
+
], 10, Pl))), 128))
|
|
2579
2579
|
])) : U("", !0),
|
|
2580
|
-
e.format === "json" ? (h(), $("div",
|
|
2580
|
+
e.format === "json" ? (h(), $("div", ql, [
|
|
2581
2581
|
S(d, {
|
|
2582
2582
|
id: "config-card-codeblock",
|
|
2583
2583
|
code: r.value,
|
|
@@ -2585,10 +2585,10 @@ const Pn = {
|
|
|
2585
2585
|
theme: "dark"
|
|
2586
2586
|
}, null, 8, ["code"])
|
|
2587
2587
|
])) : U("", !0),
|
|
2588
|
-
e.format === "yaml" ? (h(), $("div",
|
|
2588
|
+
e.format === "yaml" ? (h(), $("div", Ul, [
|
|
2589
2589
|
S(d, {
|
|
2590
2590
|
id: "config-card-codeblock",
|
|
2591
|
-
code:
|
|
2591
|
+
code: n.value,
|
|
2592
2592
|
language: "yaml",
|
|
2593
2593
|
theme: "dark"
|
|
2594
2594
|
}, null, 8, ["code"])
|
|
@@ -2596,18 +2596,18 @@ const Pn = {
|
|
|
2596
2596
|
], 64);
|
|
2597
2597
|
};
|
|
2598
2598
|
}
|
|
2599
|
-
}),
|
|
2599
|
+
}), Dl = /* @__PURE__ */ be(Rl, [["__scopeId", "data-v-6c45e9e4"]]), Zt = "24px", Gl = (e, i) => {
|
|
2600
2600
|
const t = e.__vccOpts || e;
|
|
2601
|
-
for (const [
|
|
2602
|
-
t[
|
|
2601
|
+
for (const [o, a] of i)
|
|
2602
|
+
t[o] = a;
|
|
2603
2603
|
return t;
|
|
2604
|
-
},
|
|
2604
|
+
}, Hl = (e) => (oo("data-v-877a88b1"), e = e(), ao(), e), zl = ["aria-hidden"], Yl = {
|
|
2605
2605
|
key: 0,
|
|
2606
2606
|
"data-testid": "kui-icon-svg-title"
|
|
2607
|
-
},
|
|
2607
|
+
}, Jl = /* @__PURE__ */ Hl(() => /* @__PURE__ */ O("path", {
|
|
2608
2608
|
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",
|
|
2609
2609
|
fill: "currentColor"
|
|
2610
|
-
}, null, -1)),
|
|
2610
|
+
}, null, -1)), Wl = /* @__PURE__ */ ne({
|
|
2611
2611
|
__name: "BookIcon",
|
|
2612
2612
|
props: {
|
|
2613
2613
|
/** The accessibility text provided to screen readers */
|
|
@@ -2663,12 +2663,12 @@ const Pn = {
|
|
|
2663
2663
|
if (typeof i.size == "number" && i.size > 0)
|
|
2664
2664
|
return `${i.size}px`;
|
|
2665
2665
|
if (typeof i.size == "string") {
|
|
2666
|
-
const
|
|
2666
|
+
const a = String(i.size).replace(/px/gi, ""), r = Number(a);
|
|
2667
2667
|
if (r && !isNaN(r) && Number.isInteger(r) && r > 0)
|
|
2668
2668
|
return `${r}px`;
|
|
2669
2669
|
}
|
|
2670
2670
|
return Zt;
|
|
2671
|
-
}),
|
|
2671
|
+
}), o = T(() => ({
|
|
2672
2672
|
boxSizing: "border-box",
|
|
2673
2673
|
color: i.color,
|
|
2674
2674
|
display: i.display,
|
|
@@ -2676,11 +2676,11 @@ const Pn = {
|
|
|
2676
2676
|
lineHeight: "0",
|
|
2677
2677
|
width: t.value
|
|
2678
2678
|
}));
|
|
2679
|
-
return (
|
|
2679
|
+
return (a, r) => (h(), q(qe(e.as), {
|
|
2680
2680
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2681
2681
|
class: "kui-icon book-icon",
|
|
2682
2682
|
"data-testid": "kui-icon-wrapper-book-icon",
|
|
2683
|
-
style:
|
|
2683
|
+
style: to(o.value)
|
|
2684
2684
|
}, {
|
|
2685
2685
|
default: g(() => [
|
|
2686
2686
|
(h(), $("svg", {
|
|
@@ -2693,23 +2693,23 @@ const Pn = {
|
|
|
2693
2693
|
width: "100%",
|
|
2694
2694
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2695
2695
|
}, [
|
|
2696
|
-
e.title ? (h(), $("title",
|
|
2697
|
-
|
|
2698
|
-
], 8,
|
|
2696
|
+
e.title ? (h(), $("title", Yl, M(e.title), 1)) : U("", !0),
|
|
2697
|
+
Jl
|
|
2698
|
+
], 8, zl))
|
|
2699
2699
|
]),
|
|
2700
2700
|
_: 1
|
|
2701
2701
|
}, 8, ["aria-hidden", "style"]));
|
|
2702
2702
|
}
|
|
2703
|
-
}),
|
|
2703
|
+
}), Zl = /* @__PURE__ */ Gl(Wl, [["__scopeId", "data-v-877a88b1"]]), Ql = { "data-testid": "config-card-title" }, Xl = { class: "config-card-actions" }, en = ["href"], tn = {
|
|
2704
2704
|
key: 2,
|
|
2705
2705
|
class: "config-card-details-section"
|
|
2706
|
-
},
|
|
2706
|
+
}, on = {
|
|
2707
2707
|
key: 3,
|
|
2708
2708
|
class: "config-card-details-section"
|
|
2709
|
-
},
|
|
2709
|
+
}, an = ["data-testid"], rn = {
|
|
2710
2710
|
key: 0,
|
|
2711
2711
|
class: "config-card-prop-section-title"
|
|
2712
|
-
},
|
|
2712
|
+
}, ln = /* @__PURE__ */ ne({
|
|
2713
2713
|
__name: "EntityBaseConfigCard",
|
|
2714
2714
|
props: {
|
|
2715
2715
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2784,8 +2784,8 @@ const Pn = {
|
|
|
2784
2784
|
emits: ["loading", "fetch:success", "fetch:error", "copy:success", "copy:error"],
|
|
2785
2785
|
setup(e, { emit: i }) {
|
|
2786
2786
|
var t;
|
|
2787
|
-
const
|
|
2788
|
-
headers: (t =
|
|
2787
|
+
const o = e, a = tt(), { i18n: { t: r } } = ce.useI18n(), { getMessageFromError: n } = ce.useErrors(), { convertKeyToTitle: l } = ce.useStringHelpers(), { axiosInstance: c } = ce.useAxios({
|
|
2788
|
+
headers: (t = o.config) == null ? void 0 : t.requestHeaders
|
|
2789
2789
|
}), d = [
|
|
2790
2790
|
{
|
|
2791
2791
|
label: r("baseConfigCard.general.structuredFormat"),
|
|
@@ -2842,46 +2842,46 @@ const Pn = {
|
|
|
2842
2842
|
return [];
|
|
2843
2843
|
const G = [], X = Object.keys(v.value).length;
|
|
2844
2844
|
for (const H in v.value) {
|
|
2845
|
-
const W = (R = (x =
|
|
2846
|
-
let
|
|
2847
|
-
(z || z === 0) && (
|
|
2845
|
+
const W = (R = (x = o.configSchema) == null ? void 0 : x[H]) == null ? void 0 : R.order, z = (P = _[H]) == null ? void 0 : P.order;
|
|
2846
|
+
let oe = X;
|
|
2847
|
+
(z || z === 0) && (oe = z === -1 ? X + 1 : z), W && (oe = W === -1 ? X + 1 : W), G.push([H, oe]);
|
|
2848
2848
|
}
|
|
2849
2849
|
return G.sort(function(H, W) {
|
|
2850
2850
|
return H[1] - W[1];
|
|
2851
2851
|
}), G.map((H) => {
|
|
2852
2852
|
var W, z;
|
|
2853
|
-
const
|
|
2853
|
+
const oe = H[0], Z = (W = v.value) == null ? void 0 : W[oe], ee = ((z = o.configSchema) == null ? void 0 : z[oe]) || {}, de = _[oe];
|
|
2854
2854
|
return {
|
|
2855
|
-
key:
|
|
2855
|
+
key: oe,
|
|
2856
2856
|
value: Z,
|
|
2857
2857
|
hidden: ee.hidden || !1,
|
|
2858
2858
|
type: ee.type ?? ((de == null ? void 0 : de.type) || te.Text),
|
|
2859
|
-
label: ee.label ?? ((de == null ? void 0 : de.label) ||
|
|
2859
|
+
label: ee.label ?? ((de == null ? void 0 : de.label) || l(oe)),
|
|
2860
2860
|
tooltip: ee.tooltip ?? ((de == null ? void 0 : de.tooltip) || void 0),
|
|
2861
2861
|
section: ee.section ?? ((de == null ? void 0 : de.section) || fe.Advanced)
|
|
2862
2862
|
};
|
|
2863
|
-
}).filter((H) => !H.hidden && H.key !==
|
|
2863
|
+
}).filter((H) => !H.hidden && H.key !== o.pluginConfigKey);
|
|
2864
2864
|
}), s = T(() => {
|
|
2865
2865
|
var x, R;
|
|
2866
|
-
if (!v.value || !
|
|
2866
|
+
if (!v.value || !o.pluginConfigKey)
|
|
2867
2867
|
return [];
|
|
2868
|
-
const P = v.value[
|
|
2868
|
+
const P = v.value[o.pluginConfigKey] || {}, G = Object.keys(P).length, X = [];
|
|
2869
2869
|
for (const H in P) {
|
|
2870
|
-
const W = (R = (x =
|
|
2871
|
-
let
|
|
2872
|
-
W && (
|
|
2870
|
+
const W = (R = (x = o.pluginConfigSchema) == null ? void 0 : x[H]) == null ? void 0 : R.order, z = P[H];
|
|
2871
|
+
let oe = z != null && z !== "" ? G - 1 : G;
|
|
2872
|
+
W && (oe = W === -1 ? G + 1 : W), X.push([H, oe]);
|
|
2873
2873
|
}
|
|
2874
2874
|
return X.sort(function(H, W) {
|
|
2875
2875
|
return H[1] - W[1];
|
|
2876
2876
|
}), X.map((H) => {
|
|
2877
2877
|
var W;
|
|
2878
|
-
const z = H[0],
|
|
2878
|
+
const z = H[0], oe = P[z], Z = ((W = o.pluginConfigSchema) == null ? void 0 : W[z]) || {};
|
|
2879
2879
|
return {
|
|
2880
2880
|
key: z,
|
|
2881
|
-
value:
|
|
2881
|
+
value: oe,
|
|
2882
2882
|
hidden: Z.hidden || !1,
|
|
2883
2883
|
type: Z.type ?? te.Text,
|
|
2884
|
-
label: Z.label ??
|
|
2884
|
+
label: Z.label ?? l(z),
|
|
2885
2885
|
tooltip: Z.tooltip ?? void 0,
|
|
2886
2886
|
section: fe.Plugin
|
|
2887
2887
|
};
|
|
@@ -2896,10 +2896,10 @@ const Pn = {
|
|
|
2896
2896
|
}), B = T(() => {
|
|
2897
2897
|
const x = [];
|
|
2898
2898
|
return k.value.basic.length && x.push("basic"), k.value.advanced.length && x.push("advanced"), k.value.plugin.length && x.push("plugin"), x;
|
|
2899
|
-
}), K = (x) => !!(x.tooltip ||
|
|
2899
|
+
}), K = (x) => !!(x.tooltip || a[`${x.key}-label-tooltip`]), ie = T(() => {
|
|
2900
2900
|
var x, R;
|
|
2901
|
-
let P = `${
|
|
2902
|
-
return
|
|
2901
|
+
let P = `${o.config.apiBaseUrl}${o.fetchUrl}`;
|
|
2902
|
+
return o.config.app === "konnect" ? P = P.replace(/{controlPlaneId}/gi, ((x = o.config) == null ? void 0 : x.controlPlaneId) || "") : o.config.app === "kongManager" && (P = P.replace(/\/{workspace}/gi, (R = o.config) != null && R.workspace ? `/${o.config.workspace}` : "")), P = P.replace(/{id}/gi, o.config.entityId), P;
|
|
2903
2903
|
}), J = (x) => {
|
|
2904
2904
|
v.value && x(JSON.stringify(v.value)) ? i("copy:success", v.value) : i("copy:error");
|
|
2905
2905
|
};
|
|
@@ -2909,27 +2909,27 @@ const Pn = {
|
|
|
2909
2909
|
C.value = !1, b.value = !0;
|
|
2910
2910
|
try {
|
|
2911
2911
|
const { data: x } = await c.get(ie.value);
|
|
2912
|
-
if (
|
|
2913
|
-
if (typeof x[
|
|
2914
|
-
v.value = { ...x[
|
|
2912
|
+
if (o.dataKey)
|
|
2913
|
+
if (typeof x[o.dataKey] < "u")
|
|
2914
|
+
v.value = { ...x[o.dataKey] };
|
|
2915
2915
|
else
|
|
2916
|
-
throw new Error(r("errors.dataKeyUndefined", { dataKey:
|
|
2916
|
+
throw new Error(r("errors.dataKeyUndefined", { dataKey: o.dataKey }));
|
|
2917
2917
|
else
|
|
2918
2918
|
v.value = { ...x };
|
|
2919
|
-
Object.keys(
|
|
2919
|
+
Object.keys(o.configSchema).filter((R) => o.configSchema[R].forceShow).forEach((R) => {
|
|
2920
2920
|
v.value && typeof v.value[R] > "u" && (v.value[R] = null);
|
|
2921
2921
|
}), i("fetch:success", x);
|
|
2922
2922
|
} catch (x) {
|
|
2923
|
-
const R =
|
|
2923
|
+
const R = n(x);
|
|
2924
2924
|
I.value = R.startsWith("code") ? r("baseConfigCard.errors.load") : R, C.value = !0, i("fetch:error", x);
|
|
2925
2925
|
} finally {
|
|
2926
2926
|
b.value = !1;
|
|
2927
2927
|
}
|
|
2928
2928
|
}), (x, R) => {
|
|
2929
|
-
const P = F("KLabel"), G = F("KSelect"), X = F("KButton"), H = F("KClipboardProvider"), W = F("KSkeleton"), z = F("KEmptyState"),
|
|
2930
|
-
return h(), q(
|
|
2929
|
+
const P = F("KLabel"), G = F("KSelect"), X = F("KButton"), H = F("KClipboardProvider"), W = F("KSkeleton"), z = F("KEmptyState"), oe = F("KCard");
|
|
2930
|
+
return h(), q(oe, { class: "kong-ui-entity-base-config-card" }, xe({
|
|
2931
2931
|
actions: g(() => [
|
|
2932
|
-
O("div",
|
|
2932
|
+
O("div", Xl, [
|
|
2933
2933
|
Q(x.$slots, "actions", {}, void 0, !0),
|
|
2934
2934
|
e.config.jsonYamlEnabled ? (h(), q(P, {
|
|
2935
2935
|
key: 0,
|
|
@@ -2948,7 +2948,7 @@ const Pn = {
|
|
|
2948
2948
|
items: d,
|
|
2949
2949
|
onChange: p
|
|
2950
2950
|
})) : U("", !0),
|
|
2951
|
-
|
|
2951
|
+
o.config.jsonYamlEnabled && e.configCardDoc ? (h(), q(X, {
|
|
2952
2952
|
key: 2,
|
|
2953
2953
|
appearance: "btn-link",
|
|
2954
2954
|
class: "book-icon",
|
|
@@ -2960,8 +2960,8 @@ const Pn = {
|
|
|
2960
2960
|
rel: "noopener",
|
|
2961
2961
|
target: "_blank"
|
|
2962
2962
|
}, [
|
|
2963
|
-
S(m(
|
|
2964
|
-
], 8,
|
|
2963
|
+
S(m(Zl), { size: m(ra) }, null, 8, ["size"])
|
|
2964
|
+
], 8, en)
|
|
2965
2965
|
]),
|
|
2966
2966
|
_: 1
|
|
2967
2967
|
})) : U("", !0),
|
|
@@ -2999,8 +2999,8 @@ const Pn = {
|
|
|
2999
2999
|
]),
|
|
3000
3000
|
_: 1
|
|
3001
3001
|
})) : U("", !0),
|
|
3002
|
-
e.config.jsonYamlEnabled ? (h(), $("div",
|
|
3003
|
-
S(
|
|
3002
|
+
e.config.jsonYamlEnabled ? (h(), $("div", tn, [
|
|
3003
|
+
S(Dl, {
|
|
3004
3004
|
format: f.value,
|
|
3005
3005
|
"prop-list-types": B.value,
|
|
3006
3006
|
"property-collections": k.value,
|
|
@@ -3016,13 +3016,13 @@ const Pn = {
|
|
|
3016
3016
|
])
|
|
3017
3017
|
}))
|
|
3018
3018
|
]), 1032, ["format", "prop-list-types", "property-collections", "record"])
|
|
3019
|
-
])) : (h(), $("div",
|
|
3019
|
+
])) : (h(), $("div", on, [
|
|
3020
3020
|
(h(!0), $(he, null, ve(B.value, (Z) => (h(), $("div", {
|
|
3021
3021
|
key: `config-card-details-${Z}-props`,
|
|
3022
3022
|
class: $e(`config-card-details-${Z}-props`),
|
|
3023
3023
|
"data-testid": `config-card-details-${Z}-props`
|
|
3024
3024
|
}, [
|
|
3025
|
-
Z !== "basic" ? (h(), $("div",
|
|
3025
|
+
Z !== "basic" ? (h(), $("div", rn, M(Z === "advanced" ? m(r)("baseConfigCard.sections.advanced") : m(r)("baseConfigCard.sections.plugin")), 1)) : U("", !0),
|
|
3026
3026
|
(h(!0), $(he, null, ve(k.value[Z], (ee) => (h(), q(wt, {
|
|
3027
3027
|
key: ee.key,
|
|
3028
3028
|
item: ee
|
|
@@ -3046,7 +3046,7 @@ const Pn = {
|
|
|
3046
3046
|
key: "0"
|
|
3047
3047
|
} : void 0
|
|
3048
3048
|
]), 1032, ["item"]))), 128))
|
|
3049
|
-
], 10,
|
|
3049
|
+
], 10, an))), 128))
|
|
3050
3050
|
]))
|
|
3051
3051
|
]),
|
|
3052
3052
|
_: 2
|
|
@@ -3054,7 +3054,7 @@ const Pn = {
|
|
|
3054
3054
|
e.hideTitle ? void 0 : {
|
|
3055
3055
|
name: "title",
|
|
3056
3056
|
fn: g(() => [
|
|
3057
|
-
O("div",
|
|
3057
|
+
O("div", Ql, [
|
|
3058
3058
|
Q(x.$slots, "title", {}, () => [
|
|
3059
3059
|
D(M(m(r)("baseConfigCard.title")), 1)
|
|
3060
3060
|
], !0)
|
|
@@ -3065,10 +3065,10 @@ const Pn = {
|
|
|
3065
3065
|
]), 1024);
|
|
3066
3066
|
};
|
|
3067
3067
|
}
|
|
3068
|
-
}),
|
|
3068
|
+
}), nn = /* @__PURE__ */ be(ln, [["__scopeId", "data-v-64349aa2"]]), sn = ["onReset", "onSubmit"], cn = {
|
|
3069
3069
|
class: "form-actions",
|
|
3070
3070
|
"data-testid": "form-actions"
|
|
3071
|
-
},
|
|
3071
|
+
}, un = /* @__PURE__ */ ne({
|
|
3072
3072
|
__name: "EntityBaseForm",
|
|
3073
3073
|
props: {
|
|
3074
3074
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3118,16 +3118,16 @@ const Pn = {
|
|
|
3118
3118
|
emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel"],
|
|
3119
3119
|
setup(e, { emit: i }) {
|
|
3120
3120
|
var t;
|
|
3121
|
-
const
|
|
3122
|
-
headers: (t =
|
|
3123
|
-
}), c = V(!1), d = V(!1), f = V(""), p = T(() =>
|
|
3121
|
+
const o = e, a = vt(), { i18n: { t: r } } = ce.useI18n(), { getMessageFromError: n } = ce.useErrors(), { axiosInstance: l } = ce.useAxios({
|
|
3122
|
+
headers: (t = o.config) == null ? void 0 : t.requestHeaders
|
|
3123
|
+
}), c = V(!1), d = V(!1), f = V(""), p = T(() => o.canSubmit === !1 || o.isReadonly), _ = T(() => {
|
|
3124
3124
|
var v, A;
|
|
3125
|
-
if (!
|
|
3125
|
+
if (!o.editId)
|
|
3126
3126
|
return "";
|
|
3127
|
-
let s = `${
|
|
3128
|
-
return
|
|
3127
|
+
let s = `${o.config.apiBaseUrl}${o.fetchUrl}`;
|
|
3128
|
+
return o.config.app === "konnect" ? s = s.replace(/{controlPlaneId}/gi, ((v = o.config) == null ? void 0 : v.controlPlaneId) || "") : o.config.app === "kongManager" && (s = s.replace(/\/{workspace}/gi, (A = o.config) != null && A.workspace ? `/${o.config.workspace}` : "")), s = s.replace(/{id}/gi, o.editId), s;
|
|
3129
3129
|
}), b = () => {
|
|
3130
|
-
|
|
3130
|
+
o.config.cancelRoute ? a.push(o.config.cancelRoute) : C();
|
|
3131
3131
|
}, C = () => {
|
|
3132
3132
|
i("cancel");
|
|
3133
3133
|
}, I = () => {
|
|
@@ -3136,13 +3136,13 @@ const Pn = {
|
|
|
3136
3136
|
return we(() => c.value, (v) => {
|
|
3137
3137
|
i("loading", v);
|
|
3138
3138
|
}, { immediate: !0 }), gt(async () => {
|
|
3139
|
-
if (
|
|
3139
|
+
if (o.editId)
|
|
3140
3140
|
try {
|
|
3141
3141
|
d.value = !1, c.value = !0;
|
|
3142
|
-
const { data: v } = await
|
|
3142
|
+
const { data: v } = await l.get(_.value);
|
|
3143
3143
|
i("fetch:success", v);
|
|
3144
3144
|
} catch (v) {
|
|
3145
|
-
const A =
|
|
3145
|
+
const A = n(v);
|
|
3146
3146
|
f.value = A.startsWith("code") ? r("baseForm.errors.edit") : A, d.value = !0, i("fetch:error", v);
|
|
3147
3147
|
} finally {
|
|
3148
3148
|
c.value = !1;
|
|
@@ -3178,7 +3178,7 @@ const Pn = {
|
|
|
3178
3178
|
appearance: "danger",
|
|
3179
3179
|
"data-testid": "form-error"
|
|
3180
3180
|
}, null, 8, ["alert-message"])) : U("", !0),
|
|
3181
|
-
O("div",
|
|
3181
|
+
O("div", cn, [
|
|
3182
3182
|
Q(v.$slots, "form-actions", {}, () => [
|
|
3183
3183
|
S(K, {
|
|
3184
3184
|
appearance: "outline",
|
|
@@ -3204,13 +3204,13 @@ const Pn = {
|
|
|
3204
3204
|
}, 8, ["disabled"])
|
|
3205
3205
|
], !0)
|
|
3206
3206
|
])
|
|
3207
|
-
], 40,
|
|
3207
|
+
], 40, sn))
|
|
3208
3208
|
]),
|
|
3209
3209
|
_: 3
|
|
3210
3210
|
});
|
|
3211
3211
|
};
|
|
3212
3212
|
}
|
|
3213
|
-
}),
|
|
3213
|
+
}), dn = /* @__PURE__ */ be(un, [["__scopeId", "data-v-44a90aae"]]), pn = { key: 0 }, fn = /* @__PURE__ */ ne({
|
|
3214
3214
|
__name: "EntityBaseTableCell",
|
|
3215
3215
|
props: {
|
|
3216
3216
|
keyName: {
|
|
@@ -3226,27 +3226,27 @@ const Pn = {
|
|
|
3226
3226
|
const i = e, t = T(() => {
|
|
3227
3227
|
var I;
|
|
3228
3228
|
return ((I = i.rowEl) == null ? void 0 : I.querySelector(`[data-testid="${i.keyName}"]`)) || null;
|
|
3229
|
-
}),
|
|
3229
|
+
}), o = T(() => {
|
|
3230
3230
|
var I;
|
|
3231
3231
|
return ((I = t.value) == null ? void 0 : I.querySelector('[role="button"]')) || null;
|
|
3232
|
-
}),
|
|
3232
|
+
}), a = T(() => {
|
|
3233
3233
|
var I, v;
|
|
3234
3234
|
const A = (I = i.rowEl) == null ? void 0 : I.querySelectorAll("td");
|
|
3235
3235
|
return A ? ((v = A[0]) == null ? void 0 : v.getAttribute("data-testid")) === i.keyName : !1;
|
|
3236
3236
|
});
|
|
3237
3237
|
let r;
|
|
3238
|
-
const
|
|
3238
|
+
const n = () => {
|
|
3239
3239
|
r && (r.disconnect(), r = void 0);
|
|
3240
|
-
},
|
|
3240
|
+
}, l = () => {
|
|
3241
3241
|
var I, v, A;
|
|
3242
|
-
d.value = ((I =
|
|
3243
|
-
}, c = V({}), d = V(0), f = V(0), p = V(""), _ = T(() => [
|
|
3242
|
+
d.value = ((I = o.value) == null ? void 0 : I.getBoundingClientRect().width) || 0, f.value = ((v = t.value) == null ? void 0 : v.clientWidth) || 0, p.value = ((A = c.value) == null ? void 0 : A.innerText) || "";
|
|
3243
|
+
}, c = V({}), d = V(0), f = V(0), p = V(""), _ = T(() => [o.value, t.value]), b = we(
|
|
3244
3244
|
_,
|
|
3245
3245
|
(I) => {
|
|
3246
|
-
if (
|
|
3246
|
+
if (a.value && (n(), "ResizeObserver" in window && window)) {
|
|
3247
3247
|
r = new ResizeObserver((v) => {
|
|
3248
3248
|
window.requestAnimationFrame(() => {
|
|
3249
|
-
!Array.isArray(v) || !v.length ||
|
|
3249
|
+
!Array.isArray(v) || !v.length || l();
|
|
3250
3250
|
});
|
|
3251
3251
|
});
|
|
3252
3252
|
for (const v of I)
|
|
@@ -3254,10 +3254,10 @@ const Pn = {
|
|
|
3254
3254
|
}
|
|
3255
3255
|
},
|
|
3256
3256
|
{ immediate: !0, flush: "post", deep: !0 }
|
|
3257
|
-
), C = T(() =>
|
|
3257
|
+
), C = T(() => a.value ? d.value > f.value : !1);
|
|
3258
3258
|
return Xt(() => {
|
|
3259
|
-
|
|
3260
|
-
}),
|
|
3259
|
+
l();
|
|
3260
|
+
}), eo(() => {
|
|
3261
3261
|
b();
|
|
3262
3262
|
}), (I, v) => {
|
|
3263
3263
|
const A = F("KTooltip");
|
|
@@ -3266,7 +3266,7 @@ const Pn = {
|
|
|
3266
3266
|
ref: c,
|
|
3267
3267
|
class: "content-wrapper"
|
|
3268
3268
|
}, [
|
|
3269
|
-
|
|
3269
|
+
a.value ? (h(), $("span", pn, [
|
|
3270
3270
|
S(A, {
|
|
3271
3271
|
disabled: !C.value,
|
|
3272
3272
|
label: p.value,
|
|
@@ -3282,10 +3282,10 @@ const Pn = {
|
|
|
3282
3282
|
], 512);
|
|
3283
3283
|
};
|
|
3284
3284
|
}
|
|
3285
|
-
}),
|
|
3285
|
+
}), mn = /* @__PURE__ */ be(fn, [["__scopeId", "data-v-f8a220e9"]]), yn = { class: "toolbar-container" }, gn = {
|
|
3286
3286
|
key: 0,
|
|
3287
3287
|
class: "toolbar-button-container"
|
|
3288
|
-
},
|
|
3288
|
+
}, vn = ["data-testid"], hn = /* @__PURE__ */ ne({
|
|
3289
3289
|
__name: "EntityBaseTable",
|
|
3290
3290
|
props: {
|
|
3291
3291
|
// table header configuration
|
|
@@ -3394,7 +3394,7 @@ const Pn = {
|
|
|
3394
3394
|
},
|
|
3395
3395
|
emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
|
|
3396
3396
|
setup(e, { emit: i }) {
|
|
3397
|
-
const t = e, { i18n: { t:
|
|
3397
|
+
const t = e, { i18n: { t: o } } = ce.useI18n(), a = T(() => t.cacheIdentifier || t.preferencesStorageKey), r = (k) => k.hasData || !!t.query, n = T(() => {
|
|
3398
3398
|
const k = [];
|
|
3399
3399
|
return Object.keys(t.tableHeaders).forEach((B) => {
|
|
3400
3400
|
const K = t.tableHeaders[B];
|
|
@@ -3407,7 +3407,7 @@ const Pn = {
|
|
|
3407
3407
|
key: "actions",
|
|
3408
3408
|
hideLabel: !0
|
|
3409
3409
|
}), k;
|
|
3410
|
-
}),
|
|
3410
|
+
}), l = (k) => ({
|
|
3411
3411
|
"data-rowid": k.id,
|
|
3412
3412
|
"data-testid": k.name,
|
|
3413
3413
|
...t.rowAttributes(k)
|
|
@@ -3432,7 +3432,7 @@ const Pn = {
|
|
|
3432
3432
|
i("click:row", B);
|
|
3433
3433
|
}), C = (k) => {
|
|
3434
3434
|
i("sort", k);
|
|
3435
|
-
}, { setTablePreferences: I, getTablePreferences: v } =
|
|
3435
|
+
}, { setTablePreferences: I, getTablePreferences: v } = bo(), A = T(() => {
|
|
3436
3436
|
const k = v(t.preferencesStorageKey);
|
|
3437
3437
|
return {
|
|
3438
3438
|
...t.initialFetcherParams,
|
|
@@ -3451,28 +3451,28 @@ const Pn = {
|
|
|
3451
3451
|
S(x, {
|
|
3452
3452
|
ref_key: "tableRefs",
|
|
3453
3453
|
ref: c,
|
|
3454
|
-
"cache-identifier":
|
|
3454
|
+
"cache-identifier": a.value,
|
|
3455
3455
|
"cell-attrs": f,
|
|
3456
3456
|
"disable-pagination-page-jump": e.disablePaginationPageJump,
|
|
3457
3457
|
"disable-sorting": e.disableSorting,
|
|
3458
3458
|
"empty-state-action-button-icon": e.query ? "" : "plus",
|
|
3459
|
-
"empty-state-action-message": e.query ? m(
|
|
3459
|
+
"empty-state-action-message": e.query ? m(o)("baseTable.emptyState.noSearchResultsCtaText") : e.emptyStateOptions.ctaText,
|
|
3460
3460
|
"empty-state-action-route": e.query ? "" : e.emptyStateOptions.ctaPath,
|
|
3461
3461
|
"empty-state-icon": e.query ? "stateNoSearchResults" : "stateGruceo",
|
|
3462
3462
|
"empty-state-icon-size": "96",
|
|
3463
|
-
"empty-state-message": e.query ? m(
|
|
3464
|
-
"empty-state-title": e.query ? m(
|
|
3463
|
+
"empty-state-message": e.query ? m(o)("baseTable.emptyState.noSearchResultsMessage") : e.emptyStateOptions.message,
|
|
3464
|
+
"empty-state-title": e.query ? m(o)("baseTable.emptyState.noSearchResultsTitle") : e.emptyStateOptions.title,
|
|
3465
3465
|
"enable-client-sort": e.enableClientSort,
|
|
3466
3466
|
"error-state-title": e.errorMessage,
|
|
3467
3467
|
fetcher: e.fetcher,
|
|
3468
3468
|
"fetcher-cache-key": String(e.fetcherCacheKey),
|
|
3469
3469
|
"has-error": !!e.errorMessage,
|
|
3470
|
-
headers:
|
|
3470
|
+
headers: n.value,
|
|
3471
3471
|
"hide-pagination-when-optional": "",
|
|
3472
3472
|
"initial-fetcher-params": A.value,
|
|
3473
3473
|
"is-loading": e.isLoading,
|
|
3474
3474
|
"pagination-type": e.paginationType,
|
|
3475
|
-
"row-attrs":
|
|
3475
|
+
"row-attrs": l,
|
|
3476
3476
|
"search-input": e.query,
|
|
3477
3477
|
onKtableEmptyStateCtaClicked: p,
|
|
3478
3478
|
"onRow:click": b.value,
|
|
@@ -3480,9 +3480,9 @@ const Pn = {
|
|
|
3480
3480
|
"onUpdate:tablePreferences": s
|
|
3481
3481
|
}, xe({
|
|
3482
3482
|
toolbar: g(({ state: P }) => [
|
|
3483
|
-
ze(O("div",
|
|
3483
|
+
ze(O("div", yn, [
|
|
3484
3484
|
Q(k.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3485
|
-
k.$slots["toolbar-button"] ? (h(), $("div",
|
|
3485
|
+
k.$slots["toolbar-button"] ? (h(), $("div", gn, [
|
|
3486
3486
|
Q(k.$slots, "toolbar-button", {}, void 0, !0)
|
|
3487
3487
|
])) : U("", !0)
|
|
3488
3488
|
], 512), [
|
|
@@ -3513,7 +3513,7 @@ const Pn = {
|
|
|
3513
3513
|
}, {
|
|
3514
3514
|
icon: g(() => [
|
|
3515
3515
|
S(K, {
|
|
3516
|
-
color: m(
|
|
3516
|
+
color: m(oa),
|
|
3517
3517
|
icon: "more",
|
|
3518
3518
|
size: "16"
|
|
3519
3519
|
}, null, 8, ["color"])
|
|
@@ -3523,14 +3523,14 @@ const Pn = {
|
|
|
3523
3523
|
]),
|
|
3524
3524
|
_: 2
|
|
3525
3525
|
}, 1032, ["width"])
|
|
3526
|
-
], 8,
|
|
3526
|
+
], 8, vn)
|
|
3527
3527
|
]),
|
|
3528
3528
|
_: 2
|
|
3529
3529
|
}, [
|
|
3530
3530
|
ve(e.tableHeaders, (P, G) => ({
|
|
3531
3531
|
name: G,
|
|
3532
3532
|
fn: g(({ row: X, rowKey: H, rowValue: W }) => [
|
|
3533
|
-
S(
|
|
3533
|
+
S(mn, {
|
|
3534
3534
|
"key-name": String(G),
|
|
3535
3535
|
"row-el": d(X)
|
|
3536
3536
|
}, {
|
|
@@ -3553,13 +3553,13 @@ const Pn = {
|
|
|
3553
3553
|
}, 8, ["title"]);
|
|
3554
3554
|
};
|
|
3555
3555
|
}
|
|
3556
|
-
}),
|
|
3556
|
+
}), bn = /* @__PURE__ */ be(hn, [["__scopeId", "data-v-6bf92df6"]]), _n = {
|
|
3557
3557
|
key: 0,
|
|
3558
3558
|
class: "kong-ui-entity-delete-error"
|
|
3559
|
-
},
|
|
3559
|
+
}, wn = {
|
|
3560
3560
|
key: 1,
|
|
3561
3561
|
class: "description"
|
|
3562
|
-
},
|
|
3562
|
+
}, kn = /* @__PURE__ */ ne({
|
|
3563
3563
|
__name: "EntityDeleteModal",
|
|
3564
3564
|
props: {
|
|
3565
3565
|
visible: {
|
|
@@ -3598,26 +3598,26 @@ const Pn = {
|
|
|
3598
3598
|
},
|
|
3599
3599
|
emits: ["cancel", "proceed"],
|
|
3600
3600
|
setup(e, { emit: i }) {
|
|
3601
|
-
const t = e, { i18nT:
|
|
3601
|
+
const t = e, { i18nT: o } = ce.useI18n(), a = T(() => t.needConfirm ? t.entityName : ""), r = () => {
|
|
3602
3602
|
i("cancel");
|
|
3603
|
-
},
|
|
3603
|
+
}, n = () => {
|
|
3604
3604
|
i("proceed");
|
|
3605
3605
|
};
|
|
3606
|
-
return (
|
|
3606
|
+
return (l, c) => {
|
|
3607
3607
|
const d = F("KAlert"), f = F("KPrompt");
|
|
3608
3608
|
return h(), q(f, {
|
|
3609
3609
|
"action-button-text": "Yes, delete",
|
|
3610
3610
|
"action-pending": e.actionPending,
|
|
3611
3611
|
class: "kong-ui-entity-delete-modal",
|
|
3612
|
-
"confirmation-text":
|
|
3612
|
+
"confirmation-text": a.value,
|
|
3613
3613
|
"is-visible": e.visible,
|
|
3614
3614
|
title: e.title,
|
|
3615
3615
|
type: "danger",
|
|
3616
3616
|
onCanceled: r,
|
|
3617
|
-
onProceed:
|
|
3617
|
+
onProceed: n
|
|
3618
3618
|
}, {
|
|
3619
3619
|
"body-content": g(() => [
|
|
3620
|
-
e.error ? (h(), $("div",
|
|
3620
|
+
e.error ? (h(), $("div", _n, [
|
|
3621
3621
|
S(d, { appearance: "danger" }, {
|
|
3622
3622
|
alertMessage: g(() => [
|
|
3623
3623
|
D(M(e.error), 1)
|
|
@@ -3625,7 +3625,7 @@ const Pn = {
|
|
|
3625
3625
|
_: 1
|
|
3626
3626
|
})
|
|
3627
3627
|
])) : U("", !0),
|
|
3628
|
-
S(m(
|
|
3628
|
+
S(m(o), {
|
|
3629
3629
|
class: "message",
|
|
3630
3630
|
keypath: t.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
|
|
3631
3631
|
tag: "p"
|
|
@@ -3643,8 +3643,8 @@ const Pn = {
|
|
|
3643
3643
|
key: "0"
|
|
3644
3644
|
} : void 0
|
|
3645
3645
|
]), 1032, ["keypath"]),
|
|
3646
|
-
t.description ||
|
|
3647
|
-
Q(
|
|
3646
|
+
t.description || l.$slots.description ? (h(), $("div", wn, [
|
|
3647
|
+
Q(l.$slots, "description", {}, () => [
|
|
3648
3648
|
O("p", null, M(t.description), 1)
|
|
3649
3649
|
], !0)
|
|
3650
3650
|
])) : U("", !0)
|
|
@@ -3653,13 +3653,13 @@ const Pn = {
|
|
|
3653
3653
|
}, 8, ["action-pending", "confirmation-text", "is-visible", "title"]);
|
|
3654
3654
|
};
|
|
3655
3655
|
}
|
|
3656
|
-
}),
|
|
3656
|
+
}), Cn = /* @__PURE__ */ be(kn, [["__scopeId", "data-v-1c9a2a07"]]), Sn = {
|
|
3657
3657
|
fill: "none",
|
|
3658
3658
|
height: "20",
|
|
3659
3659
|
viewBox: "0 0 20 20",
|
|
3660
3660
|
width: "20",
|
|
3661
3661
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3662
|
-
},
|
|
3662
|
+
}, In = {
|
|
3663
3663
|
id: "mask0_180_20349",
|
|
3664
3664
|
height: "20",
|
|
3665
3665
|
maskUnits: "userSpaceOnUse",
|
|
@@ -3667,35 +3667,35 @@ const Pn = {
|
|
|
3667
3667
|
width: "20",
|
|
3668
3668
|
x: "0",
|
|
3669
3669
|
y: "0"
|
|
3670
|
-
},
|
|
3670
|
+
}, An = ["fill"], xn = { mask: "url(#mask0_180_20349)" }, Tn = ["fill"], $n = /* @__PURE__ */ ne({
|
|
3671
3671
|
__name: "IconFilter",
|
|
3672
3672
|
props: {
|
|
3673
3673
|
color: {
|
|
3674
3674
|
type: String,
|
|
3675
|
-
default: `var(--kong-ui-entity-filter-color, ${
|
|
3675
|
+
default: `var(--kong-ui-entity-filter-color, ${ta})`
|
|
3676
3676
|
}
|
|
3677
3677
|
},
|
|
3678
3678
|
setup(e) {
|
|
3679
|
-
return (i, t) => (h(), $("svg",
|
|
3680
|
-
O("mask",
|
|
3679
|
+
return (i, t) => (h(), $("svg", Sn, [
|
|
3680
|
+
O("mask", In, [
|
|
3681
3681
|
O("rect", {
|
|
3682
3682
|
fill: e.color,
|
|
3683
3683
|
height: "20",
|
|
3684
3684
|
width: "20"
|
|
3685
|
-
}, null, 8,
|
|
3685
|
+
}, null, 8, An)
|
|
3686
3686
|
]),
|
|
3687
|
-
O("g",
|
|
3687
|
+
O("g", xn, [
|
|
3688
3688
|
O("path", {
|
|
3689
3689
|
d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
|
|
3690
3690
|
fill: e.color
|
|
3691
|
-
}, null, 8,
|
|
3691
|
+
}, null, 8, Tn)
|
|
3692
3692
|
])
|
|
3693
3693
|
]));
|
|
3694
3694
|
}
|
|
3695
|
-
}),
|
|
3695
|
+
}), jn = {
|
|
3696
3696
|
key: 1,
|
|
3697
3697
|
class: "kong-ui-entity-filter"
|
|
3698
|
-
},
|
|
3698
|
+
}, Mn = { class: "menu-item-title" }, En = { class: "menu-item-indicator" }, On = { class: "menu-item-body" }, Vn = ["for"], Fn = { class: "menu-item-buttons" }, Nn = /* @__PURE__ */ ne({
|
|
3699
3699
|
__name: "EntityFilter",
|
|
3700
3700
|
props: {
|
|
3701
3701
|
// filter config, either exact match or fuzzy match
|
|
@@ -3715,12 +3715,12 @@ const Pn = {
|
|
|
3715
3715
|
},
|
|
3716
3716
|
emits: ["update:modelValue"],
|
|
3717
3717
|
setup(e, { emit: i }) {
|
|
3718
|
-
const t = e, { i18n: { t:
|
|
3718
|
+
const t = e, { i18n: { t: o } } = ce.useI18n(), a = V(!1), r = V({}), n = T(() => {
|
|
3719
3719
|
const v = [];
|
|
3720
3720
|
return new URLSearchParams(t.modelValue).forEach((A, s) => {
|
|
3721
3721
|
A !== "" && v.push(s);
|
|
3722
3722
|
}), v;
|
|
3723
|
-
}),
|
|
3723
|
+
}), l = T(() => {
|
|
3724
3724
|
const v = t.config.fields;
|
|
3725
3725
|
return Object.keys(v).filter((A) => v[A].searchable).map((A) => ({
|
|
3726
3726
|
label: v[A].label || A,
|
|
@@ -3733,7 +3733,7 @@ const Pn = {
|
|
|
3733
3733
|
});
|
|
3734
3734
|
});
|
|
3735
3735
|
const c = () => {
|
|
3736
|
-
|
|
3736
|
+
a.value = !a.value;
|
|
3737
3737
|
}, d = (v) => {
|
|
3738
3738
|
i("update:modelValue", v);
|
|
3739
3739
|
}, f = (v) => `filter-${v}`, p = (v) => {
|
|
@@ -3754,7 +3754,7 @@ const Pn = {
|
|
|
3754
3754
|
r.value = {}, I(!0);
|
|
3755
3755
|
}, I = (v = !1) => {
|
|
3756
3756
|
const A = Object.keys(r.value).reduce((s, k) => (r.value[k] && (s[k] = `${r.value[k]}`), s), {});
|
|
3757
|
-
v && (
|
|
3757
|
+
v && (a.value = !1), i("update:modelValue", new URLSearchParams(A).toString());
|
|
3758
3758
|
};
|
|
3759
3759
|
return (v, A) => {
|
|
3760
3760
|
const s = F("KInput"), k = F("KButton"), B = F("KSelect"), K = F("KMenuItem"), ie = F("KMenu");
|
|
@@ -3768,10 +3768,10 @@ const Pn = {
|
|
|
3768
3768
|
"onUpdate:modelValue": d
|
|
3769
3769
|
}, {
|
|
3770
3770
|
icon: g(() => [
|
|
3771
|
-
S($
|
|
3771
|
+
S($n)
|
|
3772
3772
|
]),
|
|
3773
3773
|
_: 1
|
|
3774
|
-
}, 8, ["model-value", "placeholder"])) : (h(), $("div",
|
|
3774
|
+
}, 8, ["model-value", "placeholder"])) : (h(), $("div", jn, [
|
|
3775
3775
|
S(k, {
|
|
3776
3776
|
appearance: "btn-link",
|
|
3777
3777
|
"data-testid": "filter-button",
|
|
@@ -3779,7 +3779,7 @@ const Pn = {
|
|
|
3779
3779
|
onClick: c
|
|
3780
3780
|
}, {
|
|
3781
3781
|
default: g(() => [
|
|
3782
|
-
D(M(m(
|
|
3782
|
+
D(M(m(o)("filter.filterButtonText")) + " " + M(n.value.length > 0 ? `(${n.value.length})` : ""), 1)
|
|
3783
3783
|
]),
|
|
3784
3784
|
_: 1
|
|
3785
3785
|
}),
|
|
@@ -3787,32 +3787,32 @@ const Pn = {
|
|
|
3787
3787
|
class: "kong-ui-entity-filter-backdrop",
|
|
3788
3788
|
onClick: c
|
|
3789
3789
|
}, null, 512), [
|
|
3790
|
-
[Ye,
|
|
3790
|
+
[Ye, a.value]
|
|
3791
3791
|
]),
|
|
3792
3792
|
ze(S(ie, { class: "kong-ui-entity-filter-menu" }, {
|
|
3793
3793
|
body: g(() => [
|
|
3794
|
-
(h(!0), $(he, null, ve(
|
|
3794
|
+
(h(!0), $(he, null, ve(l.value, (J, x) => (h(), q(K, {
|
|
3795
3795
|
key: J.value,
|
|
3796
3796
|
"data-testid": J.value,
|
|
3797
3797
|
expandable: "",
|
|
3798
|
-
"last-menu-item": x ===
|
|
3798
|
+
"last-menu-item": x === l.value.length - 1
|
|
3799
3799
|
}, {
|
|
3800
3800
|
itemTitle: g(() => [
|
|
3801
|
-
O("span",
|
|
3801
|
+
O("span", Mn, [
|
|
3802
3802
|
D(M(J.label) + " ", 1),
|
|
3803
|
-
ze(O("span",
|
|
3804
|
-
[Ye,
|
|
3803
|
+
ze(O("span", En, null, 512), [
|
|
3804
|
+
[Ye, n.value.includes(J.value)]
|
|
3805
3805
|
])
|
|
3806
3806
|
])
|
|
3807
3807
|
]),
|
|
3808
3808
|
itemBody: g(() => {
|
|
3809
3809
|
var R, P;
|
|
3810
3810
|
return [
|
|
3811
|
-
O("div",
|
|
3811
|
+
O("div", On, [
|
|
3812
3812
|
O("label", {
|
|
3813
3813
|
class: "menu-item-label",
|
|
3814
3814
|
for: f(J.value)
|
|
3815
|
-
}, M(m(
|
|
3815
|
+
}, M(m(o)("filter.fieldLabel")), 9, Vn),
|
|
3816
3816
|
((P = (R = e.config.schema) == null ? void 0 : R[J.value]) == null ? void 0 : P.type) === "select" ? (h(), q(B, {
|
|
3817
3817
|
key: 0,
|
|
3818
3818
|
id: f(J.value),
|
|
@@ -3820,19 +3820,19 @@ const Pn = {
|
|
|
3820
3820
|
"onUpdate:modelValue": (G) => r.value[J.value] = G,
|
|
3821
3821
|
appearance: "select",
|
|
3822
3822
|
items: p(J.value),
|
|
3823
|
-
placeholder: m(
|
|
3823
|
+
placeholder: m(o)("filter.selectPlaceholder")
|
|
3824
3824
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (h(), q(s, {
|
|
3825
3825
|
key: 1,
|
|
3826
3826
|
id: f(J.value),
|
|
3827
3827
|
modelValue: r.value[J.value],
|
|
3828
3828
|
"onUpdate:modelValue": (G) => r.value[J.value] = G,
|
|
3829
3829
|
autocomplete: "off",
|
|
3830
|
-
placeholder: m(
|
|
3830
|
+
placeholder: m(o)("filter.inputPlaceholder"),
|
|
3831
3831
|
size: "small",
|
|
3832
3832
|
type: _(J.value)
|
|
3833
3833
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
|
|
3834
3834
|
]),
|
|
3835
|
-
O("div",
|
|
3835
|
+
O("div", Fn, [
|
|
3836
3836
|
S(k, {
|
|
3837
3837
|
appearance: "btn-link",
|
|
3838
3838
|
"data-testid": "apply-filter",
|
|
@@ -3840,7 +3840,7 @@ const Pn = {
|
|
|
3840
3840
|
onClick: A[0] || (A[0] = (G) => I(!0))
|
|
3841
3841
|
}, {
|
|
3842
3842
|
default: g(() => [
|
|
3843
|
-
D(M(m(
|
|
3843
|
+
D(M(m(o)("filter.applyButtonText")), 1)
|
|
3844
3844
|
]),
|
|
3845
3845
|
_: 1
|
|
3846
3846
|
}),
|
|
@@ -3851,7 +3851,7 @@ const Pn = {
|
|
|
3851
3851
|
onClick: (G) => b(J.value)
|
|
3852
3852
|
}, {
|
|
3853
3853
|
default: g(() => [
|
|
3854
|
-
D(M(m(
|
|
3854
|
+
D(M(m(o)("filter.clearButtonText")), 1)
|
|
3855
3855
|
]),
|
|
3856
3856
|
_: 2
|
|
3857
3857
|
}, 1032, ["onClick"])
|
|
@@ -3864,19 +3864,19 @@ const Pn = {
|
|
|
3864
3864
|
actionButton: g(() => [
|
|
3865
3865
|
S(k, { onClick: C }, {
|
|
3866
3866
|
default: g(() => [
|
|
3867
|
-
D(M(m(
|
|
3867
|
+
D(M(m(o)("filter.clearAllButtonText")), 1)
|
|
3868
3868
|
]),
|
|
3869
3869
|
_: 1
|
|
3870
3870
|
})
|
|
3871
3871
|
]),
|
|
3872
3872
|
_: 1
|
|
3873
3873
|
}, 512), [
|
|
3874
|
-
[Ye,
|
|
3874
|
+
[Ye, a.value]
|
|
3875
3875
|
])
|
|
3876
3876
|
]));
|
|
3877
3877
|
};
|
|
3878
3878
|
}
|
|
3879
|
-
}),
|
|
3879
|
+
}), Bn = /* @__PURE__ */ be(Nn, [["__scopeId", "data-v-745f38c0"]]), Ln = /* @__PURE__ */ ne({
|
|
3880
3880
|
__name: "EntityToggleModal",
|
|
3881
3881
|
props: {
|
|
3882
3882
|
visible: {
|
|
@@ -3908,10 +3908,10 @@ const Pn = {
|
|
|
3908
3908
|
},
|
|
3909
3909
|
emits: ["canceled", "proceed"],
|
|
3910
3910
|
setup(e, { emit: i }) {
|
|
3911
|
-
const t = e, { i18n: { t:
|
|
3912
|
-
() => t.action === "enable" ?
|
|
3913
|
-
),
|
|
3914
|
-
() => t.action === "enable" ?
|
|
3911
|
+
const t = e, { i18n: { t: o }, i18nT: a } = ce.useI18n(), r = V(!1), n = T(
|
|
3912
|
+
() => t.action === "enable" ? o("toggleModal.enable.title", { entityType: t.entityType }) : o("toggleModal.disable.title", { entityType: t.entityType })
|
|
3913
|
+
), l = T(
|
|
3914
|
+
() => t.action === "enable" ? o("toggleModal.enable.confirmText") : o("toggleModal.disable.confirmText")
|
|
3915
3915
|
), c = () => i("canceled"), d = async () => {
|
|
3916
3916
|
if (t.onConfirm) {
|
|
3917
3917
|
r.value = !0;
|
|
@@ -3928,17 +3928,17 @@ const Pn = {
|
|
|
3928
3928
|
const _ = F("KPrompt");
|
|
3929
3929
|
return h(), q(Wi, { to: "body" }, [
|
|
3930
3930
|
S(_, {
|
|
3931
|
-
"action-button-text":
|
|
3931
|
+
"action-button-text": l.value,
|
|
3932
3932
|
"action-pending": r.value,
|
|
3933
3933
|
"data-testid": `${e.entityType}-${e.entityId}-toggle-prompt`,
|
|
3934
3934
|
"is-visible": e.visible,
|
|
3935
|
-
title:
|
|
3935
|
+
title: n.value,
|
|
3936
3936
|
type: "warning",
|
|
3937
3937
|
onCanceled: c,
|
|
3938
3938
|
onProceed: d
|
|
3939
3939
|
}, {
|
|
3940
3940
|
"body-content": g(() => [
|
|
3941
|
-
S(m(
|
|
3941
|
+
S(m(a), {
|
|
3942
3942
|
keypath: `toggleModal.${t.action}.message`,
|
|
3943
3943
|
scope: "global"
|
|
3944
3944
|
}, {
|
|
@@ -3956,7 +3956,7 @@ const Pn = {
|
|
|
3956
3956
|
]);
|
|
3957
3957
|
};
|
|
3958
3958
|
}
|
|
3959
|
-
}), Le = /* @__PURE__ */
|
|
3959
|
+
}), Le = /* @__PURE__ */ ne({
|
|
3960
3960
|
__name: "PermissionsWrapper",
|
|
3961
3961
|
props: {
|
|
3962
3962
|
/**
|
|
@@ -3978,24 +3978,24 @@ const Pn = {
|
|
|
3978
3978
|
}
|
|
3979
3979
|
},
|
|
3980
3980
|
setup(e) {
|
|
3981
|
-
const i = e, t = V(void 0),
|
|
3981
|
+
const i = e, t = V(void 0), o = T(() => t.value === !0 || t.value !== void 0 && i.forceShow === !0);
|
|
3982
3982
|
return we(() => i.authFunction, async () => {
|
|
3983
3983
|
t.value = await i.authFunction();
|
|
3984
|
-
}, { immediate: !0 }), (
|
|
3984
|
+
}, { immediate: !0 }), (a, r) => o.value ? Q(a.$slots, "default", {
|
|
3985
3985
|
key: 0,
|
|
3986
3986
|
isAllowed: t.value
|
|
3987
3987
|
}) : U("", !0);
|
|
3988
3988
|
}
|
|
3989
|
-
}),
|
|
3989
|
+
}), Pn = { class: "form-section-wrapper" }, Kn = {
|
|
3990
3990
|
key: 0,
|
|
3991
3991
|
class: "form-section-title"
|
|
3992
|
-
},
|
|
3992
|
+
}, qn = {
|
|
3993
3993
|
key: 1,
|
|
3994
3994
|
class: "form-section-description"
|
|
3995
|
-
},
|
|
3995
|
+
}, Un = {
|
|
3996
3996
|
key: 2,
|
|
3997
3997
|
class: "form-section-footer"
|
|
3998
|
-
},
|
|
3998
|
+
}, Rn = { class: "form-section-content" }, Dn = /* @__PURE__ */ ne({
|
|
3999
3999
|
__name: "EntityFormSection",
|
|
4000
4000
|
props: {
|
|
4001
4001
|
title: {
|
|
@@ -4021,32 +4021,32 @@ const Pn = {
|
|
|
4021
4021
|
},
|
|
4022
4022
|
setup(e) {
|
|
4023
4023
|
const i = tt();
|
|
4024
|
-
return (t,
|
|
4024
|
+
return (t, o) => (h(), $("fieldset", {
|
|
4025
4025
|
class: $e(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
|
|
4026
4026
|
}, [
|
|
4027
|
-
O("div",
|
|
4027
|
+
O("div", Pn, [
|
|
4028
4028
|
e.hideInfoHeader ? U("", !0) : (h(), $("div", {
|
|
4029
4029
|
key: 0,
|
|
4030
4030
|
class: $e(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
4031
4031
|
}, [
|
|
4032
|
-
e.title ? (h(), $("h4",
|
|
4033
|
-
e.description || m(i).description ? (h(), $("div",
|
|
4032
|
+
e.title ? (h(), $("h4", Kn, M(e.title), 1)) : U("", !0),
|
|
4033
|
+
e.description || m(i).description ? (h(), $("div", qn, [
|
|
4034
4034
|
Q(t.$slots, "description", {}, () => [
|
|
4035
4035
|
O("p", null, M(e.description), 1)
|
|
4036
4036
|
], !0)
|
|
4037
4037
|
])) : U("", !0),
|
|
4038
|
-
m(i).footer ? (h(), $("div",
|
|
4038
|
+
m(i).footer ? (h(), $("div", Un, [
|
|
4039
4039
|
Q(t.$slots, "footer", {}, void 0, !0)
|
|
4040
4040
|
])) : U("", !0)
|
|
4041
4041
|
], 2)),
|
|
4042
|
-
O("div",
|
|
4042
|
+
O("div", Rn, [
|
|
4043
4043
|
Q(t.$slots, "default", {}, void 0, !0)
|
|
4044
4044
|
])
|
|
4045
4045
|
])
|
|
4046
4046
|
], 2));
|
|
4047
4047
|
}
|
|
4048
|
-
}), Qt = /* @__PURE__ */ be(
|
|
4049
|
-
const
|
|
4048
|
+
}), Qt = /* @__PURE__ */ be(Dn, [["__scopeId", "data-v-8b6dc312"]]), { useAxios: Yi, useDeleteUrlBuilder: Gn, useErrors: Hn, useFetchUrlBuilder: Cs, useFetcher: zn, useDebouncedFilter: Ss, useStringHelpers: Is, useHelpers: Yn, useGatewayFeatureSupported: Jn, useTruncationDetector: As } = ce;
|
|
4049
|
+
const Wn = { class: "kong-ui-entities-gateway-services-list" }, Zn = { key: 1 }, Qn = /* @__PURE__ */ ne({
|
|
4050
4050
|
__name: "GatewayServiceList",
|
|
4051
4051
|
props: {
|
|
4052
4052
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4088,16 +4088,16 @@ const Wl = { class: "kong-ui-entities-gateway-services-list" }, Zl = { key: 1 },
|
|
|
4088
4088
|
emits: ["error", "copy:success", "copy:error", "delete:success", "toggle:success"],
|
|
4089
4089
|
setup(e, { emit: i }) {
|
|
4090
4090
|
var Me;
|
|
4091
|
-
const t = e, { i18n: { t:
|
|
4091
|
+
const t = e, { i18n: { t: o } } = Je.useI18n(), a = vt(), { axiosInstance: r } = Yi({
|
|
4092
4092
|
headers: (Me = t.config) == null ? void 0 : Me.requestHeaders
|
|
4093
|
-
}),
|
|
4094
|
-
name: { label:
|
|
4095
|
-
protocol: { label:
|
|
4096
|
-
host: { label:
|
|
4097
|
-
port: { label:
|
|
4098
|
-
path: { label:
|
|
4099
|
-
enabled: { label:
|
|
4100
|
-
tags: { label:
|
|
4093
|
+
}), n = V(1), l = T(() => t.config.app !== "kongManager" || !!t.config.disableSorting), c = {
|
|
4094
|
+
name: { label: o("gateway_services.list.table_headers.name"), searchable: !0, sortable: !0 },
|
|
4095
|
+
protocol: { label: o("gateway_services.list.table_headers.protocol"), searchable: !0, sortable: !0 },
|
|
4096
|
+
host: { label: o("gateway_services.list.table_headers.host"), searchable: !0, sortable: !0 },
|
|
4097
|
+
port: { label: o("gateway_services.list.table_headers.port"), searchable: !0, sortable: !0 },
|
|
4098
|
+
path: { label: o("gateway_services.list.table_headers.path"), searchable: !0, sortable: !0 },
|
|
4099
|
+
enabled: { label: o("gateway_services.list.table_headers.enabled"), searchable: !0, sortable: !0 },
|
|
4100
|
+
tags: { label: o("gateway_services.list.table_headers.tags"), sortable: !1 }
|
|
4101
4101
|
}, d = c, f = T(() => {
|
|
4102
4102
|
var u, y;
|
|
4103
4103
|
let N = `${t.config.apiBaseUrl}${Ke.list[t.config.app].all}`;
|
|
@@ -4107,23 +4107,23 @@ const Wl = { class: "kong-ui-entities-gateway-services-list" }, Zl = { key: 1 },
|
|
|
4107
4107
|
if (N)
|
|
4108
4108
|
return {
|
|
4109
4109
|
isExactMatch: N,
|
|
4110
|
-
placeholder:
|
|
4110
|
+
placeholder: o("search.placeholder")
|
|
4111
4111
|
};
|
|
4112
|
-
const { name: u, enabled: y, protocol: L, host: re, port:
|
|
4112
|
+
const { name: u, enabled: y, protocol: L, host: re, port: ae, path: ue } = c;
|
|
4113
4113
|
return {
|
|
4114
4114
|
isExactMatch: N,
|
|
4115
|
-
fields: { name: u, enabled: y, protocol: L, host: re, port:
|
|
4115
|
+
fields: { name: u, enabled: y, protocol: L, host: re, port: ae, path: ue },
|
|
4116
4116
|
schema: t.config.filterSchema
|
|
4117
4117
|
};
|
|
4118
|
-
}), { fetcher: C, fetcherState: I } =
|
|
4118
|
+
}), { fetcher: C, fetcherState: I } = zn(t.config, f.value), v = () => {
|
|
4119
4119
|
_.value = "";
|
|
4120
4120
|
}, A = () => {
|
|
4121
|
-
|
|
4121
|
+
n.value++;
|
|
4122
4122
|
}, s = V(""), k = T(() => ({
|
|
4123
4123
|
ctaPath: t.config.createRoute,
|
|
4124
|
-
ctaText: Ce.value ?
|
|
4125
|
-
message:
|
|
4126
|
-
title: Ce.value ?
|
|
4124
|
+
ctaText: Ce.value ? o("actions.create") : void 0,
|
|
4125
|
+
message: o("gateway_services.list.empty_state.description"),
|
|
4126
|
+
title: Ce.value ? o("gateway_services.list.empty_state.title") : ""
|
|
4127
4127
|
})), B = V(!1), K = V(null), ie = T(() => {
|
|
4128
4128
|
const N = {
|
|
4129
4129
|
action: "disable",
|
|
@@ -4145,10 +4145,10 @@ const Wl = { class: "kong-ui-entities-gateway-services-list" }, Zl = { key: 1 },
|
|
|
4145
4145
|
return;
|
|
4146
4146
|
const u = `${p.value.href}/${K.value.id}`, y = !K.value.enabled;
|
|
4147
4147
|
try {
|
|
4148
|
-
const { data:
|
|
4149
|
-
i("toggle:success",
|
|
4150
|
-
} catch (
|
|
4151
|
-
i("error",
|
|
4148
|
+
const { data: ae } = ((re = t.config) == null ? void 0 : re.app) === "konnect" ? await r.put(u, { ...K.value, enabled: y }) : await r.patch(u, { ...K.value, enabled: y });
|
|
4149
|
+
i("toggle:success", ae);
|
|
4150
|
+
} catch (ae) {
|
|
4151
|
+
i("error", ae);
|
|
4152
4152
|
}
|
|
4153
4153
|
K.value.enabled = y;
|
|
4154
4154
|
}, P = (N, u) => {
|
|
@@ -4157,49 +4157,49 @@ const Wl = { class: "kong-ui-entities-gateway-services-list" }, Zl = { key: 1 },
|
|
|
4157
4157
|
i("copy:error", {
|
|
4158
4158
|
entity: N,
|
|
4159
4159
|
field: "id",
|
|
4160
|
-
message:
|
|
4160
|
+
message: o("errors.copy")
|
|
4161
4161
|
});
|
|
4162
4162
|
return;
|
|
4163
4163
|
}
|
|
4164
4164
|
i("copy:success", {
|
|
4165
4165
|
entity: N,
|
|
4166
4166
|
field: "id",
|
|
4167
|
-
message:
|
|
4167
|
+
message: o("copy.success", { val: y })
|
|
4168
4168
|
});
|
|
4169
4169
|
}, G = (N, u) => {
|
|
4170
4170
|
const y = JSON.stringify(N);
|
|
4171
4171
|
if (!u(y)) {
|
|
4172
4172
|
i("copy:error", {
|
|
4173
4173
|
entity: N,
|
|
4174
|
-
message:
|
|
4174
|
+
message: o("errors.copy")
|
|
4175
4175
|
});
|
|
4176
4176
|
return;
|
|
4177
4177
|
}
|
|
4178
4178
|
i("copy:success", {
|
|
4179
4179
|
entity: N,
|
|
4180
|
-
message:
|
|
4180
|
+
message: o("copy.success_brief")
|
|
4181
4181
|
});
|
|
4182
4182
|
}, X = async (N) => {
|
|
4183
4183
|
var y;
|
|
4184
|
-
await ((y = t.canRetrieve) == null ? void 0 : y.call(t, N)) &&
|
|
4184
|
+
await ((y = t.canRetrieve) == null ? void 0 : y.call(t, N)) && a.push(t.config.getViewRoute(N.id));
|
|
4185
4185
|
}, H = (N) => ({
|
|
4186
|
-
label:
|
|
4186
|
+
label: o("actions.view"),
|
|
4187
4187
|
to: t.config.getViewRoute(N)
|
|
4188
4188
|
}), W = (N) => ({
|
|
4189
|
-
label:
|
|
4189
|
+
label: o("actions.edit"),
|
|
4190
4190
|
to: t.config.getEditRoute(N)
|
|
4191
|
-
}), z = V(void 0),
|
|
4192
|
-
z.value = N,
|
|
4191
|
+
}), z = V(void 0), oe = V(!1), Z = V(!1), ee = V(""), de = Gn(t.config, f.value), ot = (N) => {
|
|
4192
|
+
z.value = N, oe.value = !0;
|
|
4193
4193
|
}, je = () => {
|
|
4194
|
-
|
|
4195
|
-
},
|
|
4194
|
+
oe.value = !1, z.value = void 0;
|
|
4195
|
+
}, at = async () => {
|
|
4196
4196
|
var N, u, y;
|
|
4197
4197
|
if ((N = z.value) != null && N.id) {
|
|
4198
4198
|
Z.value = !0;
|
|
4199
4199
|
try {
|
|
4200
|
-
await r.delete(de(z.value.id)), i("delete:success", z.value), je(),
|
|
4200
|
+
await r.delete(de(z.value.id)), i("delete:success", z.value), je(), n.value++;
|
|
4201
4201
|
} catch (L) {
|
|
4202
|
-
ee.value = ((y = (u = L.response) == null ? void 0 : u.data) == null ? void 0 : y.message) || L.message ||
|
|
4202
|
+
ee.value = ((y = (u = L.response) == null ? void 0 : u.data) == null ? void 0 : y.message) || L.message || o("errors.delete"), i("error", L);
|
|
4203
4203
|
} finally {
|
|
4204
4204
|
Z.value = !1;
|
|
4205
4205
|
}
|
|
@@ -4207,7 +4207,7 @@ const Wl = { class: "kong-ui-entities-gateway-services-list" }, Zl = { key: 1 },
|
|
|
4207
4207
|
};
|
|
4208
4208
|
we(I, (N) => {
|
|
4209
4209
|
if (N.status === Ae.Error) {
|
|
4210
|
-
s.value =
|
|
4210
|
+
s.value = o("errors.general"), i("error", N.error);
|
|
4211
4211
|
return;
|
|
4212
4212
|
}
|
|
4213
4213
|
s.value = "";
|
|
@@ -4216,17 +4216,17 @@ const Wl = { class: "kong-ui-entities-gateway-services-list" }, Zl = { key: 1 },
|
|
|
4216
4216
|
return gt(async () => {
|
|
4217
4217
|
Ce.value = await t.canCreate();
|
|
4218
4218
|
}), (N, u) => {
|
|
4219
|
-
const y = F("KButton"), L = F("KInputSwitch"), re = F("KBadge"),
|
|
4220
|
-
return h(), $("div",
|
|
4221
|
-
S(m(
|
|
4219
|
+
const y = F("KButton"), L = F("KInputSwitch"), re = F("KBadge"), ae = F("KTruncate"), ue = F("KDropdownItem"), w = F("KClipboardProvider");
|
|
4220
|
+
return h(), $("div", Wn, [
|
|
4221
|
+
S(m(bn), {
|
|
4222
4222
|
"cache-identifier": e.cacheIdentifier,
|
|
4223
4223
|
"disable-pagination-page-jump": "",
|
|
4224
|
-
"disable-sorting":
|
|
4224
|
+
"disable-sorting": l.value,
|
|
4225
4225
|
"empty-state-options": k.value,
|
|
4226
4226
|
"enable-entity-actions": "",
|
|
4227
4227
|
"error-message": s.value,
|
|
4228
4228
|
fetcher: m(C),
|
|
4229
|
-
"fetcher-cache-key":
|
|
4229
|
+
"fetcher-cache-key": n.value,
|
|
4230
4230
|
"pagination-type": "offset",
|
|
4231
4231
|
"preferences-storage-key": "kong-ui-entities-gateway-services-list",
|
|
4232
4232
|
query: _.value,
|
|
@@ -4236,7 +4236,7 @@ const Wl = { class: "kong-ui-entities-gateway-services-list" }, Zl = { key: 1 },
|
|
|
4236
4236
|
onSort: A
|
|
4237
4237
|
}, {
|
|
4238
4238
|
"toolbar-filter": g(() => [
|
|
4239
|
-
S(m(
|
|
4239
|
+
S(m(Bn), {
|
|
4240
4240
|
modelValue: _.value,
|
|
4241
4241
|
"onUpdate:modelValue": u[0] || (u[0] = (Y) => _.value = Y),
|
|
4242
4242
|
config: b.value
|
|
@@ -4253,7 +4253,7 @@ const Wl = { class: "kong-ui-entities-gateway-services-list" }, Zl = { key: 1 },
|
|
|
4253
4253
|
to: e.config.createRoute
|
|
4254
4254
|
}, {
|
|
4255
4255
|
default: g(() => [
|
|
4256
|
-
D(M(m(
|
|
4256
|
+
D(M(m(o)("gateway_services.list.toolbar_actions.new_gateway_service")), 1)
|
|
4257
4257
|
]),
|
|
4258
4258
|
_: 1
|
|
4259
4259
|
}, 8, ["to"])
|
|
@@ -4279,7 +4279,7 @@ const Wl = { class: "kong-ui-entities-gateway-services-list" }, Zl = { key: 1 },
|
|
|
4279
4279
|
"onUpdate:modelValue": (He) => Y.enabled = He,
|
|
4280
4280
|
"data-testid": `row-${Y.id}-toggle-input`,
|
|
4281
4281
|
disabled: !E,
|
|
4282
|
-
label: Y.enabled ? m(
|
|
4282
|
+
label: Y.enabled ? m(o)("actions.enable.enabled_label") : m(o)("actions.enable.disabled_label"),
|
|
4283
4283
|
onClick: Ne((He) => J(Y), ["prevent"])
|
|
4284
4284
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "data-testid", "disabled", "label", "onClick"])
|
|
4285
4285
|
])
|
|
@@ -4288,7 +4288,7 @@ const Wl = { class: "kong-ui-entities-gateway-services-list" }, Zl = { key: 1 },
|
|
|
4288
4288
|
}, 1032, ["auth-function"])
|
|
4289
4289
|
]),
|
|
4290
4290
|
tags: g(({ rowValue: Y }) => [
|
|
4291
|
-
(Y == null ? void 0 : Y.length) > 0 ? (h(), q(
|
|
4291
|
+
(Y == null ? void 0 : Y.length) > 0 ? (h(), q(ae, { key: 0 }, {
|
|
4292
4292
|
default: g(() => [
|
|
4293
4293
|
(h(!0), $(he, null, ve(Y, (E) => (h(), q(re, {
|
|
4294
4294
|
key: E,
|
|
@@ -4302,7 +4302,7 @@ const Wl = { class: "kong-ui-entities-gateway-services-list" }, Zl = { key: 1 },
|
|
|
4302
4302
|
}, 1024))), 128))
|
|
4303
4303
|
]),
|
|
4304
4304
|
_: 2
|
|
4305
|
-
}, 1024)) : (h(), $("span",
|
|
4305
|
+
}, 1024)) : (h(), $("span", Zn, "-"))
|
|
4306
4306
|
]),
|
|
4307
4307
|
actions: g(({ row: Y }) => [
|
|
4308
4308
|
S(w, null, {
|
|
@@ -4312,7 +4312,7 @@ const Wl = { class: "kong-ui-entities-gateway-services-list" }, Zl = { key: 1 },
|
|
|
4312
4312
|
onClick: (He) => P(Y, E)
|
|
4313
4313
|
}, {
|
|
4314
4314
|
default: g(() => [
|
|
4315
|
-
D(M(m(
|
|
4315
|
+
D(M(m(o)("actions.copy_id")), 1)
|
|
4316
4316
|
]),
|
|
4317
4317
|
_: 2
|
|
4318
4318
|
}, 1032, ["onClick"])
|
|
@@ -4326,7 +4326,7 @@ const Wl = { class: "kong-ui-entities-gateway-services-list" }, Zl = { key: 1 },
|
|
|
4326
4326
|
onClick: (He) => G(Y, E)
|
|
4327
4327
|
}, {
|
|
4328
4328
|
default: g(() => [
|
|
4329
|
-
D(M(m(
|
|
4329
|
+
D(M(m(o)("actions.copy_json")), 1)
|
|
4330
4330
|
]),
|
|
4331
4331
|
_: 2
|
|
4332
4332
|
}, 1032, ["onClick"])
|
|
@@ -4364,10 +4364,10 @@ const Wl = { class: "kong-ui-entities-gateway-services-list" }, Zl = { key: 1 },
|
|
|
4364
4364
|
"data-testid": "action-entity-delete",
|
|
4365
4365
|
"has-divider": "",
|
|
4366
4366
|
"is-dangerous": "",
|
|
4367
|
-
onClick: (E) =>
|
|
4367
|
+
onClick: (E) => ot(Y)
|
|
4368
4368
|
}, {
|
|
4369
4369
|
default: g(() => [
|
|
4370
|
-
D(M(m(
|
|
4370
|
+
D(M(m(o)("actions.delete.menu_label")), 1)
|
|
4371
4371
|
]),
|
|
4372
4372
|
_: 2
|
|
4373
4373
|
}, 1032, ["onClick"])
|
|
@@ -4377,26 +4377,26 @@ const Wl = { class: "kong-ui-entities-gateway-services-list" }, Zl = { key: 1 },
|
|
|
4377
4377
|
]),
|
|
4378
4378
|
_: 1
|
|
4379
4379
|
}, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers"]),
|
|
4380
|
-
S(m(
|
|
4380
|
+
S(m(Ln), {
|
|
4381
4381
|
action: ie.value.action,
|
|
4382
4382
|
"entity-id": ie.value.id,
|
|
4383
4383
|
"entity-name": ie.value.name,
|
|
4384
|
-
"entity-type": m(
|
|
4384
|
+
"entity-type": m(o)("glossary.gateway_services"),
|
|
4385
4385
|
"on-confirm": R,
|
|
4386
4386
|
visible: B.value,
|
|
4387
4387
|
onCanceled: x,
|
|
4388
4388
|
onProceed: x
|
|
4389
4389
|
}, null, 8, ["action", "entity-id", "entity-name", "entity-type", "visible"]),
|
|
4390
|
-
S(m(
|
|
4390
|
+
S(m(Cn), {
|
|
4391
4391
|
"action-pending": Z.value,
|
|
4392
|
-
description: m(
|
|
4392
|
+
description: m(o)("actions.delete.description"),
|
|
4393
4393
|
"entity-name": z.value && (z.value.name || z.value.id),
|
|
4394
4394
|
"entity-type": m(ti).GatewayService,
|
|
4395
4395
|
error: ee.value,
|
|
4396
|
-
title: m(
|
|
4397
|
-
visible:
|
|
4396
|
+
title: m(o)("actions.delete.title"),
|
|
4397
|
+
visible: oe.value,
|
|
4398
4398
|
onCancel: je,
|
|
4399
|
-
onProceed:
|
|
4399
|
+
onProceed: at
|
|
4400
4400
|
}, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"])
|
|
4401
4401
|
]);
|
|
4402
4402
|
};
|
|
@@ -4404,10 +4404,10 @@ const Wl = { class: "kong-ui-entities-gateway-services-list" }, Zl = { key: 1 },
|
|
|
4404
4404
|
});
|
|
4405
4405
|
const Ji = (e, i) => {
|
|
4406
4406
|
const t = e.__vccOpts || e;
|
|
4407
|
-
for (const [
|
|
4408
|
-
t[
|
|
4407
|
+
for (const [o, a] of i)
|
|
4408
|
+
t[o] = a;
|
|
4409
4409
|
return t;
|
|
4410
|
-
}, xs = /* @__PURE__ */ Ji(
|
|
4410
|
+
}, xs = /* @__PURE__ */ Ji(Qn, [["__scopeId", "data-v-849fedff"]]), Xn = { class: "kong-ui-entities-gateway-service-form" }, es = { key: 0 }, ts = { class: "gateway-service-form-traffic-label" }, is = { class: "gateway-service-form-margin-bottom" }, os = { key: 0 }, as = { key: 1 }, rs = { key: 0 }, ls = { class: "gateway-service-form-margin-top" }, ns = { class: "gateway-service-form-margin-bottom" }, ss = { class: "gateway-service-form-margin-bottom" }, cs = { class: "gateway-service-form-margin-bottom" }, us = { class: "gateway-service-form-margin-bottom" }, ds = {
|
|
4411
4411
|
key: 0,
|
|
4412
4412
|
class: "gateway-service-form-margin-bottom"
|
|
4413
4413
|
}, ps = {
|
|
@@ -4422,7 +4422,7 @@ const Ji = (e, i) => {
|
|
|
4422
4422
|
}, ys = {
|
|
4423
4423
|
key: 1,
|
|
4424
4424
|
class: "checkbox-aligned-radio"
|
|
4425
|
-
}, gs = /* @__PURE__ */
|
|
4425
|
+
}, gs = /* @__PURE__ */ ne({
|
|
4426
4426
|
__name: "GatewayServiceForm",
|
|
4427
4427
|
props: {
|
|
4428
4428
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4447,9 +4447,9 @@ const Ji = (e, i) => {
|
|
|
4447
4447
|
emits: ["update", "error", "url-valid:success", "url-valid:error", "loading", "model-updated"],
|
|
4448
4448
|
setup(e, { expose: i, emit: t }) {
|
|
4449
4449
|
var N;
|
|
4450
|
-
const
|
|
4451
|
-
headers: (N =
|
|
4452
|
-
}), f = T(() => Ke.form[
|
|
4450
|
+
const o = e, a = V(!0), r = vt(), { i18nT: n, i18n: { t: l } } = Je.useI18n(), { getMessageFromError: c } = Hn(), { axiosInstance: d } = Yi({
|
|
4451
|
+
headers: (N = o.config) == null ? void 0 : N.requestHeaders
|
|
4452
|
+
}), f = T(() => Ke.form[o.config.app].edit), p = T(() => o.gatewayServiceId ? ut.Edit : ut.Create), _ = V(!1), b = T(() => !!o.gatewayServiceId), C = V(b.value ? "protocol" : "url"), I = Je.usePortFromProtocol(), v = V(""), A = T(() => !!v.value), s = Tt({
|
|
4453
4453
|
fields: {
|
|
4454
4454
|
name: "",
|
|
4455
4455
|
protocol: "http",
|
|
@@ -4485,69 +4485,69 @@ const Ji = (e, i) => {
|
|
|
4485
4485
|
tls_verify_enabled: !1,
|
|
4486
4486
|
tls_verify_value: !1,
|
|
4487
4487
|
tags: ""
|
|
4488
|
-
}), B =
|
|
4489
|
-
gatewayInfo:
|
|
4488
|
+
}), B = o.config.app === "konnect" || Jn({
|
|
4489
|
+
gatewayInfo: o.config.gatewayInfo,
|
|
4490
4490
|
// 'ws' and 'wss' are not valid values for the protocol field in Gateway Community Edition or before Gateway Enterprise Edition 3.0
|
|
4491
4491
|
supportedRange: {
|
|
4492
4492
|
enterprise: ["3.0"]
|
|
4493
4493
|
}
|
|
4494
4494
|
}), K = [
|
|
4495
4495
|
{
|
|
4496
|
-
label:
|
|
4496
|
+
label: l("gateway_services.form.fields.protocol.options.http"),
|
|
4497
4497
|
value: "http",
|
|
4498
4498
|
group: "http"
|
|
4499
4499
|
},
|
|
4500
4500
|
{
|
|
4501
|
-
label:
|
|
4501
|
+
label: l("gateway_services.form.fields.protocol.options.https"),
|
|
4502
4502
|
value: "https",
|
|
4503
4503
|
group: "http"
|
|
4504
4504
|
},
|
|
4505
4505
|
{
|
|
4506
|
-
label:
|
|
4506
|
+
label: l("gateway_services.form.fields.protocol.options.tcp"),
|
|
4507
4507
|
value: "tcp",
|
|
4508
4508
|
group: "tcp"
|
|
4509
4509
|
},
|
|
4510
4510
|
{
|
|
4511
|
-
label:
|
|
4511
|
+
label: l("gateway_services.form.fields.protocol.options.tls"),
|
|
4512
4512
|
value: "tls",
|
|
4513
4513
|
group: "tcp"
|
|
4514
4514
|
},
|
|
4515
4515
|
{
|
|
4516
|
-
label:
|
|
4516
|
+
label: l("gateway_services.form.fields.protocol.options.tls_passthrough"),
|
|
4517
4517
|
value: "tls_passthrough",
|
|
4518
4518
|
group: "tcp"
|
|
4519
4519
|
},
|
|
4520
4520
|
{
|
|
4521
|
-
label:
|
|
4521
|
+
label: l("gateway_services.form.fields.protocol.options.grpc"),
|
|
4522
4522
|
value: "grpc",
|
|
4523
4523
|
group: "grpc"
|
|
4524
4524
|
},
|
|
4525
4525
|
{
|
|
4526
|
-
label:
|
|
4526
|
+
label: l("gateway_services.form.fields.protocol.options.grpcs"),
|
|
4527
4527
|
value: "grpcs",
|
|
4528
4528
|
group: "grpc"
|
|
4529
4529
|
},
|
|
4530
4530
|
...B ? [
|
|
4531
4531
|
{
|
|
4532
|
-
label:
|
|
4532
|
+
label: l("gateway_services.form.fields.protocol.options.ws"),
|
|
4533
4533
|
value: "ws",
|
|
4534
4534
|
group: "websocket"
|
|
4535
4535
|
},
|
|
4536
4536
|
{
|
|
4537
|
-
label:
|
|
4537
|
+
label: l("gateway_services.form.fields.protocol.options.wss"),
|
|
4538
4538
|
value: "wss",
|
|
4539
4539
|
group: "websocket"
|
|
4540
4540
|
}
|
|
4541
4541
|
] : [],
|
|
4542
4542
|
{
|
|
4543
|
-
label:
|
|
4543
|
+
label: l("gateway_services.form.fields.protocol.options.udp"),
|
|
4544
4544
|
value: "udp",
|
|
4545
4545
|
group: "udp"
|
|
4546
4546
|
}
|
|
4547
4547
|
], ie = { url: "url", protocol: "protocol" }, J = (u, y) => {
|
|
4548
4548
|
y.value;
|
|
4549
4549
|
}, x = (u) => u ? parseFloat(u) : 0, R = () => {
|
|
4550
|
-
|
|
4550
|
+
a.value = !0, s.errorMessage = "", s.fields.host = k.host, s.fields.path = k.path, s.fields.port = k.port, s.fields.protocol = k.protocol, s.fields.url = k.url, s.fields.retries = k.retries, s.fields.connect_timeout = k.connect_timeout, s.fields.write_timeout = k.write_timeout, s.fields.read_timeout = k.read_timeout, s.fields.client_certificate = k.client_certificate, s.fields.ca_certificates = k.ca_certificates, s.fields.tls_verify_enabled = k.tls_verify_enabled, s.fields.tls_verify_value = k.tls_verify_value;
|
|
4551
4551
|
}, P = () => {
|
|
4552
4552
|
if (s.fields.url && C.value === "url")
|
|
4553
4553
|
try {
|
|
@@ -4556,7 +4556,7 @@ const Ji = (e, i) => {
|
|
|
4556
4556
|
const y = Number(u.port);
|
|
4557
4557
|
_.value = !!y, s.fields.port = y || I.getPortFromProtocol(s.fields.protocol), s.errorMessage = "", t("url-valid:success");
|
|
4558
4558
|
} catch (u) {
|
|
4559
|
-
s.errorMessage =
|
|
4559
|
+
s.errorMessage = l("errors.urlErrorMessage"), t("url-valid:error", c(u));
|
|
4560
4560
|
}
|
|
4561
4561
|
else
|
|
4562
4562
|
t("url-valid:success"), s.errorMessage = "";
|
|
@@ -4575,22 +4575,22 @@ const Ji = (e, i) => {
|
|
|
4575
4575
|
return !0;
|
|
4576
4576
|
const u = ["https", "wss", "tls"].includes(s.fields.protocol);
|
|
4577
4577
|
return C.value === "protocol" && u;
|
|
4578
|
-
}), z = (u) => new RegExp("^[0-9a-zA-Z.\\-_~]*$").test(u) ? "" :
|
|
4578
|
+
}), z = (u) => new RegExp("^[0-9a-zA-Z.\\-_~]*$").test(u) ? "" : l("errors.validationNameError"), oe = (u) => {
|
|
4579
4579
|
v.value = z(u);
|
|
4580
4580
|
}, Z = T(() => b.value && JSON.stringify(s.fields) !== JSON.stringify(k) || C.value === "url" && !!s.fields.url || C.value === "protocol" && !!s.fields.host), ee = (u) => {
|
|
4581
4581
|
var y, L, re;
|
|
4582
4582
|
s.fields.name = (u == null ? void 0 : u.name) || "", s.fields.tags = ((y = u == null ? void 0 : u.tags) == null ? void 0 : y.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 = ((L = u == null ? void 0 : u.ca_certificates) == null ? void 0 : L.join(",")) || "", s.fields.client_certificate = ((re = u == null ? void 0 : u.client_certificate) == null ? void 0 : re.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(k, s.fields);
|
|
4583
4583
|
}, de = () => {
|
|
4584
|
-
r.push(
|
|
4585
|
-
},
|
|
4584
|
+
r.push(o.config.cancelRoute);
|
|
4585
|
+
}, ot = T(() => {
|
|
4586
4586
|
var y, L;
|
|
4587
|
-
let u = `${
|
|
4588
|
-
return
|
|
4587
|
+
let u = `${o.config.apiBaseUrl}${Ke.form[o.config.app].validate}`;
|
|
4588
|
+
return o.config.app === "konnect" ? u = u.replace(/{controlPlaneId}/gi, ((y = o.config) == null ? void 0 : y.controlPlaneId) || "") : o.config.app === "kongManager" && (u = u.replace(/\/{workspace}/gi, (L = o.config) != null && L.workspace ? `/${o.config.workspace}` : "")), u = u.replace(/{id}/gi, o.gatewayServiceId), u;
|
|
4589
4589
|
}), je = T(() => {
|
|
4590
4590
|
var y, L;
|
|
4591
|
-
let u = `${
|
|
4592
|
-
return
|
|
4593
|
-
}),
|
|
4591
|
+
let u = `${o.config.apiBaseUrl}${Ke.form[o.config.app][p.value]}`;
|
|
4592
|
+
return o.config.app === "konnect" ? u = u.replace(/{controlPlaneId}/gi, ((y = o.config) == null ? void 0 : y.controlPlaneId) || "") : o.config.app === "kongManager" && (u = u.replace(/\/{workspace}/gi, (L = o.config) != null && L.workspace ? `/${o.config.workspace}` : "")), u = u.replace(/{id}/gi, o.gatewayServiceId), u;
|
|
4593
|
+
}), at = (u) => {
|
|
4594
4594
|
let y = "";
|
|
4595
4595
|
u.url && (y = new URL(u.url).protocol), (["https", "wss", "tls"].includes(u.protocol) || ["https", "wss", "tls"].includes(y)) && (u.tls_verify = u.tls_verify_enabled ? u.tls_verify_value : null), delete u.tls_verify_enabled, delete u.tls_verify_value;
|
|
4596
4596
|
}, Ce = () => {
|
|
@@ -4612,25 +4612,25 @@ const Ji = (e, i) => {
|
|
|
4612
4612
|
port: s.fields.port,
|
|
4613
4613
|
url: s.fields.url
|
|
4614
4614
|
};
|
|
4615
|
-
return s.fields.client_certificate && ["https", "wss", "tls"].includes(s.fields.protocol) && (u.client_certificate = { id: s.fields.client_certificate }), s.fields.tls_verify_enabled && ["https", "wss", "tls"].includes(s.fields.protocol) && (u.tls_verify = s.fields.tls_verify_value), G.value || (u.path = null), p.value === "create" ? C.value === "url" ? (delete u.protocol, delete u.host, delete u.path,
|
|
4615
|
+
return s.fields.client_certificate && ["https", "wss", "tls"].includes(s.fields.protocol) && (u.client_certificate = { id: s.fields.client_certificate }), s.fields.tls_verify_enabled && ["https", "wss", "tls"].includes(s.fields.protocol) && (u.tls_verify = s.fields.tls_verify_value), G.value || (u.path = null), p.value === "create" ? C.value === "url" ? (delete u.protocol, delete u.host, delete u.path, o.config.app === "konnect" && delete u.port) : delete u.url : p.value === "edit" && delete u.url, u;
|
|
4616
4616
|
}, Me = async () => {
|
|
4617
4617
|
var u, y, L, re;
|
|
4618
4618
|
try {
|
|
4619
4619
|
s.isReadonly = !0, P();
|
|
4620
|
-
const
|
|
4620
|
+
const ae = Ce();
|
|
4621
4621
|
let ue;
|
|
4622
|
-
if (
|
|
4622
|
+
if (at(ae), await d.post(ot.value, ae), p.value === "create" ? ue = await d.post(je.value, ae) : p.value === "edit" && (ue = ((u = o.config) == null ? void 0 : u.app) === "konnect" ? await d.put(je.value, ae) : await d.patch(je.value, ae)), ue) {
|
|
4623
4623
|
const { data: w } = ue;
|
|
4624
4624
|
s.fields.name = (w == null ? void 0 : w.name) || "", s.fields.port = w.port || I.getPortFromProtocol(w.protocol), s.fields.protocol = (w == null ? void 0 : w.protocol) || "http", s.fields.host = (w == null ? void 0 : w.host) || "", s.fields.path = (w == null ? void 0 : w.path) || "", s.fields.url = (w == null ? void 0 : w.url) || "", s.fields.retries = w != null && w.retries || (w == null ? void 0 : w.retries) === 0 ? w == null ? void 0 : w.retries : 5, s.fields.connect_timeout = w != null && w.connect_timeout || (w == null ? void 0 : w.connect_timeout) === 0 ? w == null ? void 0 : w.connect_timeout : 6e4, s.fields.write_timeout = w != null && w.write_timeout || (w == null ? void 0 : w.write_timeout) === 0 ? w == null ? void 0 : w.write_timeout : 6e4, s.fields.read_timeout = w != null && w.read_timeout || (w == null ? void 0 : w.read_timeout) === 0 ? w == null ? void 0 : w.read_timeout : 6e4, s.fields.client_certificate = ((y = w == null ? void 0 : w.client_certificate) == null ? void 0 : y.id) || "", s.fields.ca_certificates = (L = w == null ? void 0 : w.ca_certificates) != null && L.length ? w == null ? void 0 : w.ca_certificates.join(",") : "", s.fields.tls_verify_enabled = (w == null ? void 0 : w.tls_verify) !== "" && (w == null ? void 0 : w.tls_verify) !== null && (w == null ? void 0 : w.tls_verify) !== void 0, s.fields.tls_verify_value = s.fields.tls_verify_enabled && (w == null ? void 0 : w.tls_verify), s.fields.tags = (re = w == null ? void 0 : w.tags) != null && re.length ? w == null ? void 0 : w.tags.join(",") : "", Object.assign(k, s.fields), t("update", ue == null ? void 0 : ue.data);
|
|
4625
4625
|
}
|
|
4626
4626
|
return ue;
|
|
4627
|
-
} catch (
|
|
4628
|
-
s.errorMessage = c(
|
|
4627
|
+
} catch (ae) {
|
|
4628
|
+
s.errorMessage = c(ae), t("error", ae);
|
|
4629
4629
|
} finally {
|
|
4630
4630
|
s.isReadonly = !1;
|
|
4631
4631
|
}
|
|
4632
4632
|
};
|
|
4633
|
-
return we(() =>
|
|
4633
|
+
return we(() => o.gatewayServiceId, () => {
|
|
4634
4634
|
Object.assign(s.fields, k);
|
|
4635
4635
|
}), we(s.fields, (u) => {
|
|
4636
4636
|
s.fields.port = I.getPortFromProtocol(u.protocol, String(u.port)), t("model-updated", Ce());
|
|
@@ -4642,9 +4642,9 @@ const Ji = (e, i) => {
|
|
|
4642
4642
|
saveFormData: Me,
|
|
4643
4643
|
canSubmit: Z
|
|
4644
4644
|
}), (u, y) => {
|
|
4645
|
-
const L = F("KInput"), re = F("KLabel"),
|
|
4646
|
-
return h(), $("div",
|
|
4647
|
-
S(m(
|
|
4645
|
+
const L = F("KInput"), re = F("KLabel"), ae = F("KRadio"), ue = F("KSelect"), w = F("KCheckbox"), Y = F("KCollapse");
|
|
4646
|
+
return h(), $("div", Xn, [
|
|
4647
|
+
S(m(dn), {
|
|
4648
4648
|
"can-submit": Z.value,
|
|
4649
4649
|
config: e.config,
|
|
4650
4650
|
"edit-id": e.gatewayServiceId,
|
|
@@ -4666,9 +4666,9 @@ const Ji = (e, i) => {
|
|
|
4666
4666
|
]),
|
|
4667
4667
|
default: g(() => [
|
|
4668
4668
|
S(m(Qt), {
|
|
4669
|
-
description: m(
|
|
4669
|
+
description: m(l)("gateway_services.form.sections.general.description"),
|
|
4670
4670
|
"hide-info-header": e.hideSectionsInfo,
|
|
4671
|
-
title: m(
|
|
4671
|
+
title: m(l)("gateway_services.form.sections.general.title")
|
|
4672
4672
|
}, {
|
|
4673
4673
|
default: g(() => [
|
|
4674
4674
|
S(L, {
|
|
@@ -4679,13 +4679,13 @@ const Ji = (e, i) => {
|
|
|
4679
4679
|
"data-testid": "gateway-service-name-input",
|
|
4680
4680
|
"error-message": v.value,
|
|
4681
4681
|
"has-error": A.value,
|
|
4682
|
-
label: m(
|
|
4683
|
-
"label-attributes": { info: m(
|
|
4682
|
+
label: m(l)("gateway_services.form.fields.name.label"),
|
|
4683
|
+
"label-attributes": { info: m(l)("gateway_services.form.fields.name.tooltip") },
|
|
4684
4684
|
name: "name",
|
|
4685
|
-
placeholder: m(
|
|
4685
|
+
placeholder: m(l)("gateway_services.form.fields.name.placeholder"),
|
|
4686
4686
|
readonly: s.isReadonly,
|
|
4687
4687
|
type: "text",
|
|
4688
|
-
onInput:
|
|
4688
|
+
onInput: oe
|
|
4689
4689
|
}, null, 8, ["modelValue", "error-message", "has-error", "label", "label-attributes", "placeholder", "readonly"]),
|
|
4690
4690
|
S(L, {
|
|
4691
4691
|
modelValue: s.fields.tags,
|
|
@@ -4693,11 +4693,11 @@ const Ji = (e, i) => {
|
|
|
4693
4693
|
modelModifiers: { trim: !0 },
|
|
4694
4694
|
autocomplete: "off",
|
|
4695
4695
|
"data-testid": "gateway-service-tags-input",
|
|
4696
|
-
help: m(
|
|
4697
|
-
label: m(
|
|
4698
|
-
"label-attributes": { info: m(
|
|
4696
|
+
help: m(l)("gateway_services.form.fields.tags.help"),
|
|
4697
|
+
label: m(l)("gateway_services.form.fields.tags.label"),
|
|
4698
|
+
"label-attributes": { info: m(l)("gateway_services.form.fields.tags.tooltip") },
|
|
4699
4699
|
name: "tags",
|
|
4700
|
-
placeholder: m(
|
|
4700
|
+
placeholder: m(l)("gateway_services.form.fields.tags.placeholder"),
|
|
4701
4701
|
readonly: s.isReadonly,
|
|
4702
4702
|
type: "text"
|
|
4703
4703
|
}, null, 8, ["modelValue", "help", "label", "label-attributes", "placeholder", "readonly"])
|
|
@@ -4705,22 +4705,22 @@ const Ji = (e, i) => {
|
|
|
4705
4705
|
_: 1
|
|
4706
4706
|
}, 8, ["description", "hide-info-header", "title"]),
|
|
4707
4707
|
S(m(Qt), {
|
|
4708
|
-
description: m(
|
|
4708
|
+
description: m(l)("gateway_services.form.sections.keys.description"),
|
|
4709
4709
|
"hide-info-header": e.hideSectionsInfo,
|
|
4710
|
-
title: m(
|
|
4710
|
+
title: m(l)("gateway_services.form.sections.keys.title")
|
|
4711
4711
|
}, {
|
|
4712
4712
|
default: g(() => [
|
|
4713
4713
|
b.value ? U("", !0) : (h(), $("div", es, [
|
|
4714
4714
|
O("div", ts, [
|
|
4715
4715
|
S(re, { required: "" }, {
|
|
4716
4716
|
default: g(() => [
|
|
4717
|
-
D(M(m(
|
|
4717
|
+
D(M(m(l)("gateway_services.form.sections.keys.checkedGroupLabel")), 1)
|
|
4718
4718
|
]),
|
|
4719
4719
|
_: 1
|
|
4720
4720
|
})
|
|
4721
4721
|
]),
|
|
4722
4722
|
O("div", is, [
|
|
4723
|
-
S(
|
|
4723
|
+
S(ae, {
|
|
4724
4724
|
modelValue: C.value,
|
|
4725
4725
|
"onUpdate:modelValue": y[2] || (y[2] = (E) => C.value = E),
|
|
4726
4726
|
"data-testid": "gateway-service-url-radio",
|
|
@@ -4730,11 +4730,11 @@ const Ji = (e, i) => {
|
|
|
4730
4730
|
default: g(() => [
|
|
4731
4731
|
S(re, {
|
|
4732
4732
|
class: "gateway-service-url-radio-label",
|
|
4733
|
-
info: m(
|
|
4733
|
+
info: m(l)("gateway_services.form.fields.upstream_url.tooltip"),
|
|
4734
4734
|
required: ""
|
|
4735
4735
|
}, {
|
|
4736
4736
|
default: g(() => [
|
|
4737
|
-
D(M(m(
|
|
4737
|
+
D(M(m(l)("gateway_services.form.sections.keys.urlLabel")), 1)
|
|
4738
4738
|
]),
|
|
4739
4739
|
_: 1
|
|
4740
4740
|
}, 8, ["info"])
|
|
@@ -4742,7 +4742,7 @@ const Ji = (e, i) => {
|
|
|
4742
4742
|
_: 1
|
|
4743
4743
|
}, 8, ["modelValue", "selected-value"])
|
|
4744
4744
|
]),
|
|
4745
|
-
C.value === "url" ? (h(), $("div",
|
|
4745
|
+
C.value === "url" ? (h(), $("div", os, [
|
|
4746
4746
|
S(L, {
|
|
4747
4747
|
modelValue: s.fields.url,
|
|
4748
4748
|
"onUpdate:modelValue": y[3] || (y[3] = (E) => s.fields.url = E),
|
|
@@ -4750,12 +4750,12 @@ const Ji = (e, i) => {
|
|
|
4750
4750
|
class: "gateway-service-url-input gateway-service-form-margin-bottom",
|
|
4751
4751
|
"data-testid": "gateway-service-url-input",
|
|
4752
4752
|
name: "url",
|
|
4753
|
-
placeholder: m(
|
|
4753
|
+
placeholder: m(l)("gateway_services.form.fields.upstream_url.placeholder"),
|
|
4754
4754
|
required: "",
|
|
4755
|
-
tooltip: m(
|
|
4755
|
+
tooltip: m(l)("gateway_services.form.fields.upstream_url.tooltip")
|
|
4756
4756
|
}, null, 8, ["modelValue", "placeholder", "tooltip"])
|
|
4757
4757
|
])) : U("", !0),
|
|
4758
|
-
S(
|
|
4758
|
+
S(ae, {
|
|
4759
4759
|
modelValue: C.value,
|
|
4760
4760
|
"onUpdate:modelValue": y[4] || (y[4] = (E) => C.value = E),
|
|
4761
4761
|
"checked-group": "protocol",
|
|
@@ -4766,7 +4766,7 @@ const Ji = (e, i) => {
|
|
|
4766
4766
|
default: g(() => [
|
|
4767
4767
|
S(re, { class: "gateway-service-protocol-radio-label" }, {
|
|
4768
4768
|
default: g(() => [
|
|
4769
|
-
D(M(m(
|
|
4769
|
+
D(M(m(l)("gateway_services.form.sections.keys.checkedGroupAltLabel")), 1)
|
|
4770
4770
|
]),
|
|
4771
4771
|
_: 1
|
|
4772
4772
|
})
|
|
@@ -4774,16 +4774,16 @@ const Ji = (e, i) => {
|
|
|
4774
4774
|
_: 1
|
|
4775
4775
|
}, 8, ["modelValue", "selected-value"])
|
|
4776
4776
|
])),
|
|
4777
|
-
C.value === "protocol" || b.value ? (h(), $("div",
|
|
4777
|
+
C.value === "protocol" || b.value ? (h(), $("div", as, [
|
|
4778
4778
|
S(ue, {
|
|
4779
4779
|
modelValue: s.fields.protocol,
|
|
4780
4780
|
"onUpdate:modelValue": y[5] || (y[5] = (E) => s.fields.protocol = E),
|
|
4781
4781
|
appearance: "select",
|
|
4782
4782
|
"data-testid": "gateway-service-protocol-select",
|
|
4783
4783
|
items: K,
|
|
4784
|
-
label: m(
|
|
4784
|
+
label: m(l)("gateway_services.form.fields.protocol.label"),
|
|
4785
4785
|
"label-attributes": {
|
|
4786
|
-
info: m(
|
|
4786
|
+
info: m(l)("gateway_services.form.fields.protocol.tooltip")
|
|
4787
4787
|
},
|
|
4788
4788
|
readonly: s.isReadonly,
|
|
4789
4789
|
required: "",
|
|
@@ -4796,12 +4796,12 @@ const Ji = (e, i) => {
|
|
|
4796
4796
|
modelModifiers: { trim: !0 },
|
|
4797
4797
|
class: "gateway-service-form-margin-top",
|
|
4798
4798
|
"data-testid": "gateway-service-host-input",
|
|
4799
|
-
label: m(
|
|
4799
|
+
label: m(l)("gateway_services.form.fields.host.label"),
|
|
4800
4800
|
"label-attributes": {
|
|
4801
|
-
info: m(
|
|
4801
|
+
info: m(l)("gateway_services.form.fields.host.tooltip")
|
|
4802
4802
|
},
|
|
4803
4803
|
name: "host",
|
|
4804
|
-
placeholder: m(
|
|
4804
|
+
placeholder: m(l)("gateway_services.form.fields.host.placeholder"),
|
|
4805
4805
|
required: ""
|
|
4806
4806
|
}, null, 8, ["modelValue", "label", "label-attributes", "placeholder"]),
|
|
4807
4807
|
G.value ? (h(), $("div", rs, [
|
|
@@ -4811,12 +4811,12 @@ const Ji = (e, i) => {
|
|
|
4811
4811
|
modelModifiers: { trim: !0 },
|
|
4812
4812
|
class: "gateway-service-form-margin-top",
|
|
4813
4813
|
"data-testid": "gateway-service-path-input",
|
|
4814
|
-
label: m(
|
|
4814
|
+
label: m(l)("gateway_services.form.fields.path.label"),
|
|
4815
4815
|
"label-attributes": {
|
|
4816
|
-
info: m(
|
|
4816
|
+
info: m(l)("gateway_services.form.fields.path.tooltip")
|
|
4817
4817
|
},
|
|
4818
4818
|
name: "path",
|
|
4819
|
-
placeholder: m(
|
|
4819
|
+
placeholder: m(l)("gateway_services.form.fields.path.placeholder")
|
|
4820
4820
|
}, null, 8, ["modelValue", "label", "label-attributes", "placeholder"])
|
|
4821
4821
|
])) : U("", !0),
|
|
4822
4822
|
S(L, {
|
|
@@ -4829,25 +4829,25 @@ const Ji = (e, i) => {
|
|
|
4829
4829
|
],
|
|
4830
4830
|
class: "gateway-service-form-margin-top",
|
|
4831
4831
|
"data-testid": "gateway-service-port-input",
|
|
4832
|
-
label: m(
|
|
4832
|
+
label: m(l)("gateway_services.form.fields.port.label"),
|
|
4833
4833
|
"label-attributes": {
|
|
4834
|
-
info: m(
|
|
4834
|
+
info: m(l)("gateway_services.form.fields.port.tooltip")
|
|
4835
4835
|
},
|
|
4836
4836
|
name: "port",
|
|
4837
|
-
tooltip: m(
|
|
4837
|
+
tooltip: m(l)("gateway_services.form.fields.port.tooltip"),
|
|
4838
4838
|
type: "number"
|
|
4839
4839
|
}, null, 8, ["modelValue", "label", "label-attributes", "tooltip"])
|
|
4840
4840
|
])) : U("", !0),
|
|
4841
4841
|
S(Y, {
|
|
4842
|
-
modelValue:
|
|
4843
|
-
"onUpdate:modelValue": y[24] || (y[24] = (E) =>
|
|
4842
|
+
modelValue: a.value,
|
|
4843
|
+
"onUpdate:modelValue": y[24] || (y[24] = (E) => a.value = E),
|
|
4844
4844
|
"data-testid": "advanced-fields-collapse",
|
|
4845
4845
|
"trigger-alignment": "leading",
|
|
4846
|
-
"trigger-label": m(
|
|
4846
|
+
"trigger-label": m(l)("gateway_services.form.sections.keys.viewAdvancedFields")
|
|
4847
4847
|
}, {
|
|
4848
4848
|
default: g(() => [
|
|
4849
|
-
O("div",
|
|
4850
|
-
O("div",
|
|
4849
|
+
O("div", ls, [
|
|
4850
|
+
O("div", ns, [
|
|
4851
4851
|
S(L, {
|
|
4852
4852
|
modelValue: s.fields.retries,
|
|
4853
4853
|
"onUpdate:modelValue": [
|
|
@@ -4858,8 +4858,8 @@ const Ji = (e, i) => {
|
|
|
4858
4858
|
],
|
|
4859
4859
|
autocomplete: "off",
|
|
4860
4860
|
"data-testid": "gateway-service-retries-input",
|
|
4861
|
-
label: m(
|
|
4862
|
-
"label-attributes": { info: m(
|
|
4861
|
+
label: m(l)("gateway_services.form.fields.retries.label"),
|
|
4862
|
+
"label-attributes": { info: m(l)("gateway_services.form.fields.retries.tooltip") },
|
|
4863
4863
|
name: "retries",
|
|
4864
4864
|
readonly: s.isReadonly,
|
|
4865
4865
|
type: "number"
|
|
@@ -4876,8 +4876,8 @@ const Ji = (e, i) => {
|
|
|
4876
4876
|
],
|
|
4877
4877
|
autocomplete: "off",
|
|
4878
4878
|
"data-testid": "gateway-service-connTimeout-input",
|
|
4879
|
-
label: m(
|
|
4880
|
-
"label-attributes": { info: m(
|
|
4879
|
+
label: m(l)("gateway_services.form.fields.connect_timeout.label"),
|
|
4880
|
+
"label-attributes": { info: m(l)("gateway_services.form.fields.connect_timeout.tooltip") },
|
|
4881
4881
|
name: "connTimeout",
|
|
4882
4882
|
readonly: s.isReadonly,
|
|
4883
4883
|
type: "number"
|
|
@@ -4894,8 +4894,8 @@ const Ji = (e, i) => {
|
|
|
4894
4894
|
],
|
|
4895
4895
|
autocomplete: "off",
|
|
4896
4896
|
"data-testid": "gateway-service-writeTimeout-input",
|
|
4897
|
-
label: m(
|
|
4898
|
-
"label-attributes": { info: m(
|
|
4897
|
+
label: m(l)("gateway_services.form.fields.write_timeout.label"),
|
|
4898
|
+
"label-attributes": { info: m(l)("gateway_services.form.fields.write_timeout.tooltip") },
|
|
4899
4899
|
name: "writeTimeout",
|
|
4900
4900
|
readonly: s.isReadonly,
|
|
4901
4901
|
type: "number"
|
|
@@ -4912,8 +4912,8 @@ const Ji = (e, i) => {
|
|
|
4912
4912
|
],
|
|
4913
4913
|
autocomplete: "off",
|
|
4914
4914
|
"data-testid": "gateway-service-readTimeout-input",
|
|
4915
|
-
label: m(
|
|
4916
|
-
"label-attributes": { info: m(
|
|
4915
|
+
label: m(l)("gateway_services.form.fields.read_timeout.label"),
|
|
4916
|
+
"label-attributes": { info: m(l)("gateway_services.form.fields.read_timeout.tooltip") },
|
|
4917
4917
|
name: "readTimeout",
|
|
4918
4918
|
readonly: s.isReadonly,
|
|
4919
4919
|
type: "number"
|
|
@@ -4926,10 +4926,10 @@ const Ji = (e, i) => {
|
|
|
4926
4926
|
modelModifiers: { trim: !0 },
|
|
4927
4927
|
autocomplete: "off",
|
|
4928
4928
|
"data-testid": "gateway-service-clientCert-input",
|
|
4929
|
-
label: m(
|
|
4930
|
-
"label-attributes": { info: m(
|
|
4929
|
+
label: m(l)("gateway_services.form.fields.client_certificate.label"),
|
|
4930
|
+
"label-attributes": { info: m(l)("gateway_services.form.fields.client_certificate.tooltip") },
|
|
4931
4931
|
name: "clientCert",
|
|
4932
|
-
placeholder: m(
|
|
4932
|
+
placeholder: m(l)("gateway_services.form.fields.client_certificate.placeholder"),
|
|
4933
4933
|
readonly: s.isReadonly,
|
|
4934
4934
|
type: "text"
|
|
4935
4935
|
}, null, 8, ["modelValue", "label", "label-attributes", "placeholder", "readonly"])
|
|
@@ -4941,21 +4941,21 @@ const Ji = (e, i) => {
|
|
|
4941
4941
|
modelModifiers: { trim: !0 },
|
|
4942
4942
|
autocomplete: "off",
|
|
4943
4943
|
"data-testid": "gateway-service-ca-certs-input",
|
|
4944
|
-
label: m(
|
|
4945
|
-
placeholder: m(
|
|
4944
|
+
label: m(l)("gateway_services.form.fields.ca_certificates.label"),
|
|
4945
|
+
placeholder: m(l)("gateway_services.form.fields.ca_certificates.placeholder"),
|
|
4946
4946
|
readonly: s.isReadonly,
|
|
4947
4947
|
type: "text"
|
|
4948
4948
|
}, {
|
|
4949
4949
|
"label-tooltip": g(() => [
|
|
4950
|
-
S(m(
|
|
4950
|
+
S(m(n), {
|
|
4951
4951
|
keypath: "gateway_services.form.fields.ca_certificates.tooltip",
|
|
4952
4952
|
scope: "global"
|
|
4953
4953
|
}, {
|
|
4954
4954
|
code1: g(() => [
|
|
4955
|
-
O("code", null, M(m(
|
|
4955
|
+
O("code", null, M(m(l)("gateway_services.form.fields.ca_certificates.code1")), 1)
|
|
4956
4956
|
]),
|
|
4957
4957
|
code2: g(() => [
|
|
4958
|
-
O("code", null, M(m(
|
|
4958
|
+
O("code", null, M(m(l)("gateway_services.form.fields.ca_certificates.code2")), 1)
|
|
4959
4959
|
]),
|
|
4960
4960
|
_: 1
|
|
4961
4961
|
})
|
|
@@ -4968,16 +4968,16 @@ const Ji = (e, i) => {
|
|
|
4968
4968
|
modelValue: s.fields.tls_verify_enabled,
|
|
4969
4969
|
"onUpdate:modelValue": y[21] || (y[21] = (E) => s.fields.tls_verify_enabled = E),
|
|
4970
4970
|
"data-testid": "gateway-service-tls-verify-checkbox",
|
|
4971
|
-
description: m(
|
|
4972
|
-
label: m(
|
|
4971
|
+
description: m(l)("gateway_services.form.fields.tls_verify_enabled.help"),
|
|
4972
|
+
label: m(l)("gateway_services.form.fields.tls_verify_enabled.label")
|
|
4973
4973
|
}, {
|
|
4974
4974
|
tooltip: g(() => [
|
|
4975
|
-
S(m(
|
|
4975
|
+
S(m(n), {
|
|
4976
4976
|
keypath: "gateway_services.form.fields.tls_verify_enabled.tooltip",
|
|
4977
4977
|
scope: "global"
|
|
4978
4978
|
}, {
|
|
4979
4979
|
code1: g(() => [
|
|
4980
|
-
O("code", null, M(m(
|
|
4980
|
+
O("code", null, M(m(l)("gateway_services.form.fields.tls_verify_enabled.code1")), 1)
|
|
4981
4981
|
]),
|
|
4982
4982
|
_: 1
|
|
4983
4983
|
})
|
|
@@ -4985,20 +4985,20 @@ const Ji = (e, i) => {
|
|
|
4985
4985
|
_: 1
|
|
4986
4986
|
}, 8, ["modelValue", "description", "label"]),
|
|
4987
4987
|
s.fields.tls_verify_enabled ? (h(), $("div", ms, [
|
|
4988
|
-
S(
|
|
4988
|
+
S(ae, {
|
|
4989
4989
|
modelValue: s.fields.tls_verify_value,
|
|
4990
4990
|
"onUpdate:modelValue": y[22] || (y[22] = (E) => s.fields.tls_verify_value = E),
|
|
4991
4991
|
"data-testid": "gateway-service-tls-verify-true-option",
|
|
4992
|
-
label: m(
|
|
4992
|
+
label: m(l)("gateway_services.form.fields.tls_verify_option.true.label"),
|
|
4993
4993
|
"selected-value": !0
|
|
4994
4994
|
}, null, 8, ["modelValue", "label"])
|
|
4995
4995
|
])) : U("", !0),
|
|
4996
4996
|
s.fields.tls_verify_enabled ? (h(), $("div", ys, [
|
|
4997
|
-
S(
|
|
4997
|
+
S(ae, {
|
|
4998
4998
|
modelValue: s.fields.tls_verify_value,
|
|
4999
4999
|
"onUpdate:modelValue": y[23] || (y[23] = (E) => s.fields.tls_verify_value = E),
|
|
5000
5000
|
"data-testid": "gateway-service-tls-verify-false-option",
|
|
5001
|
-
label: m(
|
|
5001
|
+
label: m(l)("gateway_services.form.fields.tls_verify_option.false.label"),
|
|
5002
5002
|
"selected-value": !1
|
|
5003
5003
|
}, null, 8, ["modelValue", "label"])
|
|
5004
5004
|
])) : U("", !0)
|
|
@@ -5017,7 +5017,7 @@ const Ji = (e, i) => {
|
|
|
5017
5017
|
};
|
|
5018
5018
|
}
|
|
5019
5019
|
});
|
|
5020
|
-
const Ts = /* @__PURE__ */ Ji(gs, [["__scopeId", "data-v-93f8eab9"]]), vs = { class: "kong-ui-gateway-service-entity-config-card" }, $s = /* @__PURE__ */
|
|
5020
|
+
const Ts = /* @__PURE__ */ Ji(gs, [["__scopeId", "data-v-93f8eab9"]]), vs = { class: "kong-ui-gateway-service-entity-config-card" }, $s = /* @__PURE__ */ ne({
|
|
5021
5021
|
__name: "GatewayServiceConfigCard",
|
|
5022
5022
|
props: {
|
|
5023
5023
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -5044,7 +5044,7 @@ const Ts = /* @__PURE__ */ Ji(gs, [["__scopeId", "data-v-93f8eab9"]]), vs = { cl
|
|
|
5044
5044
|
},
|
|
5045
5045
|
emits: ["loading", "fetch:error", "fetch:success", "copy:success"],
|
|
5046
5046
|
setup(e) {
|
|
5047
|
-
const i = e, { i18n: { t }, i18nT:
|
|
5047
|
+
const i = e, { i18n: { t }, i18nT: o } = Je.useI18n(), a = T(() => Ke.form[i.config.app].edit), { getPropValue: r } = Yn(), n = (c, d) => r(c, d) === !0 ? t("gateway_services.form.fields.tls_verify_option.true.display") : t("gateway_services.form.fields.tls_verify_option.false.display"), l = V({
|
|
5048
5048
|
id: {},
|
|
5049
5049
|
name: {
|
|
5050
5050
|
tooltip: t("gateway_services.form.fields.name.tooltip")
|
|
@@ -5105,11 +5105,11 @@ const Ts = /* @__PURE__ */ Ji(gs, [["__scopeId", "data-v-93f8eab9"]]), vs = { cl
|
|
|
5105
5105
|
}
|
|
5106
5106
|
});
|
|
5107
5107
|
return (c, d) => (h(), $("div", vs, [
|
|
5108
|
-
S(m(
|
|
5108
|
+
S(m(nn), {
|
|
5109
5109
|
config: e.config,
|
|
5110
5110
|
"config-card-doc": e.configCardDoc,
|
|
5111
|
-
"config-schema":
|
|
5112
|
-
"fetch-url":
|
|
5111
|
+
"config-schema": l.value,
|
|
5112
|
+
"fetch-url": a.value,
|
|
5113
5113
|
"hide-title": e.hideTitle,
|
|
5114
5114
|
"onCopy:success": d[0] || (d[0] = (f) => c.$emit("copy:success", f)),
|
|
5115
5115
|
"onFetch:error": d[1] || (d[1] = (f) => c.$emit("fetch:error", f)),
|
|
@@ -5117,7 +5117,7 @@ const Ts = /* @__PURE__ */ Ji(gs, [["__scopeId", "data-v-93f8eab9"]]), vs = { cl
|
|
|
5117
5117
|
onLoading: d[3] || (d[3] = (f) => c.$emit("loading", f))
|
|
5118
5118
|
}, {
|
|
5119
5119
|
"enabled-label-tooltip": g(() => [
|
|
5120
|
-
S(m(
|
|
5120
|
+
S(m(o), {
|
|
5121
5121
|
keypath: "gateway_services.form.fields.enabled.tooltip",
|
|
5122
5122
|
scope: "global"
|
|
5123
5123
|
}, {
|
|
@@ -5131,7 +5131,7 @@ const Ts = /* @__PURE__ */ Ji(gs, [["__scopeId", "data-v-93f8eab9"]]), vs = { cl
|
|
|
5131
5131
|
})
|
|
5132
5132
|
]),
|
|
5133
5133
|
"ca_certificates-label-tooltip": g(() => [
|
|
5134
|
-
S(m(
|
|
5134
|
+
S(m(o), {
|
|
5135
5135
|
keypath: "gateway_services.form.fields.ca_certificates.tooltip",
|
|
5136
5136
|
scope: "global"
|
|
5137
5137
|
}, {
|
|
@@ -5145,7 +5145,7 @@ const Ts = /* @__PURE__ */ Ji(gs, [["__scopeId", "data-v-93f8eab9"]]), vs = { cl
|
|
|
5145
5145
|
})
|
|
5146
5146
|
]),
|
|
5147
5147
|
"tls_verify-label-tooltip": g(() => [
|
|
5148
|
-
S(m(
|
|
5148
|
+
S(m(o), {
|
|
5149
5149
|
keypath: "gateway_services.form.fields.tls_verify_enabled.tooltip",
|
|
5150
5150
|
scope: "global"
|
|
5151
5151
|
}, {
|
|
@@ -5156,7 +5156,7 @@ const Ts = /* @__PURE__ */ Ji(gs, [["__scopeId", "data-v-93f8eab9"]]), vs = { cl
|
|
|
5156
5156
|
})
|
|
5157
5157
|
]),
|
|
5158
5158
|
tls_verify: g((f) => [
|
|
5159
|
-
D(M(typeof m(r)("rowValue", f) == "boolean" ?
|
|
5159
|
+
D(M(typeof m(r)("rowValue", f) == "boolean" ? n("rowValue", f) : m(t)("gateway_services.form.fields.tls_verify_option.unset.display")), 1)
|
|
5160
5160
|
]),
|
|
5161
5161
|
client_certificate: g((f) => [
|
|
5162
5162
|
D(M(m(r)("rowValue", f) ? m(r)("rowValue", f).id : "–"), 1)
|