@kong-ui-public/entities-snis 2.4.4 → 2.4.5
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-snis.es.js +103 -103
- package/dist/entities-snis.umd.js +1 -1
- package/package.json +2 -2
package/dist/entities-snis.es.js
CHANGED
|
@@ -382,8 +382,8 @@ function hi(e, t, n, i = {
|
|
|
382
382
|
if (s.value = !0, u.value = "", d.value = "", e.app === "konnect") {
|
|
383
383
|
let R = h + "";
|
|
384
384
|
m && (R += `/${m}`);
|
|
385
|
-
const { data:
|
|
386
|
-
i.fetchedItemsKey in
|
|
385
|
+
const { data: A } = await r.get(`${R}?size=${n}`);
|
|
386
|
+
i.fetchedItemsKey in A ? c.value = A[i.fetchedItemsKey] : A != null && A.id ? c.value = [A] : c.value = [];
|
|
387
387
|
} else if (m) {
|
|
388
388
|
const R = [];
|
|
389
389
|
I(m) && i.searchKeys.includes("id") ? R.push((async () => {
|
|
@@ -395,8 +395,8 @@ function hi(e, t, n, i = {
|
|
|
395
395
|
return q[i.fetchedItemsKey];
|
|
396
396
|
})
|
|
397
397
|
);
|
|
398
|
-
const
|
|
399
|
-
c.value = [], (g =
|
|
398
|
+
const A = await Promise.all(R), J = /* @__PURE__ */ new Set();
|
|
399
|
+
c.value = [], (g = A == null ? void 0 : A.forEach) == null || g.call(A, (U) => {
|
|
400
400
|
var q;
|
|
401
401
|
(q = U == null ? void 0 : U.forEach) == null || q.call(U, (G) => {
|
|
402
402
|
J.has(G.id) || (J.add(G.id), c.value.push(G));
|
|
@@ -411,10 +411,10 @@ function hi(e, t, n, i = {
|
|
|
411
411
|
}
|
|
412
412
|
else
|
|
413
413
|
s.value = !0, d.value = "", m ? (c.value = (M = p.value) == null ? void 0 : M.filter((R) => {
|
|
414
|
-
var
|
|
414
|
+
var A;
|
|
415
415
|
let J = !1;
|
|
416
416
|
for (const U of i.searchKeys) {
|
|
417
|
-
const q = typeof R[U] == "string" ? (
|
|
417
|
+
const q = typeof R[U] == "string" ? (A = R[U]) == null ? void 0 : A.toLowerCase() : R[U];
|
|
418
418
|
q != null && q.includes(m.toLowerCase()) && (J = !0);
|
|
419
419
|
}
|
|
420
420
|
return J;
|
|
@@ -487,7 +487,7 @@ function Yt(e, t) {
|
|
|
487
487
|
const { page: l, pageSize: s, offset: u, sortColumnKey: d, sortColumnOrder: c, query: f } = a;
|
|
488
488
|
try {
|
|
489
489
|
let p = new URL(o.value.href);
|
|
490
|
-
return r.value && f ? (p.search = "", p = n.value.
|
|
490
|
+
return r.value && f ? (p.search = "", p = n.value.isExactMatch ? new URL(`${p.href}/${f}/`) : new URL(`${p.href}?filter[name][contains]=${f}`)) : (r.value || new URLSearchParams(f).forEach((S, h) => {
|
|
491
491
|
p.searchParams.append(h, S);
|
|
492
492
|
}), d && p.searchParams.append("sort_by", d), c === "desc" && p.searchParams.append("sort_desc", "1"), p.searchParams.append("size", String(s))), u && l !== 1 && p.searchParams.append("offset", String(u)), p.href;
|
|
493
493
|
} catch (p) {
|
|
@@ -572,7 +572,7 @@ const Wt = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
572
572
|
const n = mt(e), i = mt(t), r = n.pop(), o = i.pop(), a = bt(n, i);
|
|
573
573
|
return a !== 0 ? a : r && o ? bt(r.split("."), o.split(".")) : r || o ? r ? -1 : 1 : 0;
|
|
574
574
|
}, kt = (e, t, n) => {
|
|
575
|
-
|
|
575
|
+
xi(n);
|
|
576
576
|
const i = Ci(e, t);
|
|
577
577
|
return Jt[n].includes(i);
|
|
578
578
|
}, Jt = {
|
|
@@ -582,18 +582,18 @@ const Wt = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
582
582
|
"<=": [-1, 0],
|
|
583
583
|
"<": [-1],
|
|
584
584
|
"!=": [-1, 1]
|
|
585
|
-
}, wt = Object.keys(Jt),
|
|
585
|
+
}, wt = Object.keys(Jt), xi = (e) => {
|
|
586
586
|
if (typeof e != "string")
|
|
587
587
|
throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
|
|
588
588
|
if (wt.indexOf(e) === -1)
|
|
589
589
|
throw new Error(`Invalid operator, expected one of ${wt.join("|")}`);
|
|
590
|
-
},
|
|
590
|
+
}, Ai = (e) => typeof e == "string" && /^[v\d]/.test(e) && Wt.test(e);
|
|
591
591
|
function Ii(e) {
|
|
592
592
|
const { gatewayInfo: t, supportedRange: n } = e;
|
|
593
593
|
if (!t)
|
|
594
594
|
return !0;
|
|
595
595
|
const { edition: i, version: r } = t;
|
|
596
|
-
if (!
|
|
596
|
+
if (!Ai(r))
|
|
597
597
|
return console.error("Invalid version"), !1;
|
|
598
598
|
const o = n[i];
|
|
599
599
|
if (!o)
|
|
@@ -1207,16 +1207,16 @@ var gn = new X("tag:yaml.org,2002:binary", {
|
|
|
1207
1207
|
construct: wr,
|
|
1208
1208
|
predicate: Cr,
|
|
1209
1209
|
represent: Sr
|
|
1210
|
-
}),
|
|
1210
|
+
}), xr = Object.prototype.hasOwnProperty, Ar = Object.prototype.toString;
|
|
1211
1211
|
function Ir(e) {
|
|
1212
1212
|
if (e === null)
|
|
1213
1213
|
return !0;
|
|
1214
1214
|
var t = [], n, i, r, o, a, l = e;
|
|
1215
1215
|
for (n = 0, i = l.length; n < i; n += 1) {
|
|
1216
|
-
if (r = l[n], a = !1,
|
|
1216
|
+
if (r = l[n], a = !1, Ar.call(r) !== "[object Object]")
|
|
1217
1217
|
return !1;
|
|
1218
1218
|
for (o in r)
|
|
1219
|
-
if (
|
|
1219
|
+
if (xr.call(r, o))
|
|
1220
1220
|
if (!a)
|
|
1221
1221
|
a = !0;
|
|
1222
1222
|
else
|
|
@@ -1290,7 +1290,7 @@ var yn = new X("tag:yaml.org,2002:set", {
|
|
|
1290
1290
|
yn
|
|
1291
1291
|
]
|
|
1292
1292
|
}), me = Object.prototype.hasOwnProperty, qe = 1, vn = 2, bn = 3, $e = 4, He = 1, Fr = 2, Ct = 3, Lr = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, qr = /[\x85\u2028\u2029]/, $r = /[,\[\]\{\}]/, kn = /^(?:!|!!|![a-z\-]+!)$/i, wn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
1293
|
-
function
|
|
1293
|
+
function xt(e) {
|
|
1294
1294
|
return Object.prototype.toString.call(e);
|
|
1295
1295
|
}
|
|
1296
1296
|
function le(e) {
|
|
@@ -1315,7 +1315,7 @@ function Rr(e) {
|
|
|
1315
1315
|
function Ur(e) {
|
|
1316
1316
|
return 48 <= e && e <= 57 ? e - 48 : -1;
|
|
1317
1317
|
}
|
|
1318
|
-
function
|
|
1318
|
+
function At(e) {
|
|
1319
1319
|
return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
|
|
1320
1320
|
` : e === 118 ? "\v" : e === 102 ? "\f" : e === 114 ? "\r" : e === 101 ? "\x1B" : e === 32 ? " " : e === 34 ? '"' : e === 47 ? "/" : e === 92 ? "\\" : e === 78 ? "
" : e === 95 ? " " : e === 76 ? "\u2028" : e === 80 ? "\u2029" : "";
|
|
1321
1321
|
}
|
|
@@ -1327,11 +1327,11 @@ function Br(e) {
|
|
|
1327
1327
|
}
|
|
1328
1328
|
var Sn = new Array(256), Cn = new Array(256);
|
|
1329
1329
|
for (var we = 0; we < 256; we++)
|
|
1330
|
-
Sn[we] =
|
|
1330
|
+
Sn[we] = At(we) ? 1 : 0, Cn[we] = At(we);
|
|
1331
1331
|
function Pr(e, t) {
|
|
1332
1332
|
this.input = e, this.filename = t.filename || null, this.schema = t.schema || st, this.onWarning = t.onWarning || null, this.legacy = t.legacy || !1, this.json = t.json || !1, this.listener = t.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
|
|
1333
1333
|
}
|
|
1334
|
-
function
|
|
1334
|
+
function xn(e, t) {
|
|
1335
1335
|
var n = {
|
|
1336
1336
|
name: e.filename,
|
|
1337
1337
|
buffer: e.input.slice(0, -1),
|
|
@@ -1343,10 +1343,10 @@ function An(e, t) {
|
|
|
1343
1343
|
return n.snippet = Hi(n), new ie(t, n);
|
|
1344
1344
|
}
|
|
1345
1345
|
function v(e, t) {
|
|
1346
|
-
throw
|
|
1346
|
+
throw xn(e, t);
|
|
1347
1347
|
}
|
|
1348
1348
|
function Ke(e, t) {
|
|
1349
|
-
e.onWarning && e.onWarning.call(null,
|
|
1349
|
+
e.onWarning && e.onWarning.call(null, xn(e, t));
|
|
1350
1350
|
}
|
|
1351
1351
|
var It = {
|
|
1352
1352
|
YAML: function(e, t, n) {
|
|
@@ -1380,12 +1380,12 @@ function _t(e, t, n, i) {
|
|
|
1380
1380
|
for (W.isObject(n) || v(e, "cannot merge mappings; the provided source object is unacceptable"), r = Object.keys(n), a = 0, l = r.length; a < l; a += 1)
|
|
1381
1381
|
o = r[a], me.call(t, o) || (t[o] = n[o], i[o] = !0);
|
|
1382
1382
|
}
|
|
1383
|
-
function
|
|
1383
|
+
function xe(e, t, n, i, r, o, a, l, s) {
|
|
1384
1384
|
var u, d;
|
|
1385
1385
|
if (Array.isArray(r))
|
|
1386
1386
|
for (r = Array.prototype.slice.call(r), u = 0, d = r.length; u < d; u += 1)
|
|
1387
|
-
Array.isArray(r[u]) && v(e, "nested arrays are not supported inside keys"), typeof r == "object" &&
|
|
1388
|
-
if (typeof r == "object" &&
|
|
1387
|
+
Array.isArray(r[u]) && v(e, "nested arrays are not supported inside keys"), typeof r == "object" && xt(r[u]) === "[object Object]" && (r[u] = "[object Object]");
|
|
1388
|
+
if (typeof r == "object" && xt(r) === "[object Object]" && (r = "[object Object]"), r = String(r), t === null && (t = {}), i === "tag:yaml.org,2002:merge")
|
|
1389
1389
|
if (Array.isArray(o))
|
|
1390
1390
|
for (u = 0, d = o.length; u < d; u += 1)
|
|
1391
1391
|
_t(e, t, o[u], n);
|
|
@@ -1504,7 +1504,7 @@ function Hr(e, t) {
|
|
|
1504
1504
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = l), C = e.input.charCodeAt(++e.position); C !== 0; ) {
|
|
1505
1505
|
if (z(e, !0, t), C = e.input.charCodeAt(e.position), C === d)
|
|
1506
1506
|
return e.position++, e.tag = a, e.anchor = s, e.kind = p ? "mapping" : "sequence", e.result = l, !0;
|
|
1507
|
-
n ? C === 44 && v(e, "expected the node content, but found ','") : v(e, "missed comma between flow collection entries"), I = h = E = null, c = f = !1, C === 63 && (u = e.input.charCodeAt(e.position + 1), ae(u) && (c = f = !0, e.position++, z(e, !0, t))), i = e.line, r = e.lineStart, o = e.position,
|
|
1507
|
+
n ? C === 44 && v(e, "expected the node content, but found ','") : v(e, "missed comma between flow collection entries"), I = h = E = null, c = f = !1, C === 63 && (u = e.input.charCodeAt(e.position + 1), ae(u) && (c = f = !0, e.position++, z(e, !0, t))), i = e.line, r = e.lineStart, o = e.position, Ae(e, t, qe, !1, !0), I = e.tag, h = e.result, z(e, !0, t), C = e.input.charCodeAt(e.position), (f || e.line === i) && C === 58 && (c = !0, C = e.input.charCodeAt(++e.position), z(e, !0, t), Ae(e, t, qe, !1, !0), E = e.result), p ? xe(e, l, S, I, h, E, i, r, o) : c ? l.push(xe(e, null, S, I, h, E, i, r, o)) : l.push(h), z(e, !0, t), C = e.input.charCodeAt(e.position), C === 44 ? (n = !0, C = e.input.charCodeAt(++e.position)) : n = !1;
|
|
1508
1508
|
}
|
|
1509
1509
|
v(e, "unexpected end of the stream within a flow collection");
|
|
1510
1510
|
}
|
|
@@ -1564,7 +1564,7 @@ function jt(e, t) {
|
|
|
1564
1564
|
o.push(null), s = e.input.charCodeAt(e.position);
|
|
1565
1565
|
continue;
|
|
1566
1566
|
}
|
|
1567
|
-
if (n = e.line,
|
|
1567
|
+
if (n = e.line, Ae(e, t, bn, !1, !0), o.push(e.result), z(e, !0, -1), s = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && s !== 0)
|
|
1568
1568
|
v(e, "bad indentation of a sequence entry");
|
|
1569
1569
|
else if (e.lineIndent < t)
|
|
1570
1570
|
break;
|
|
@@ -1577,15 +1577,15 @@ function Wr(e, t, n) {
|
|
|
1577
1577
|
return !1;
|
|
1578
1578
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = c), C = e.input.charCodeAt(e.position); C !== 0; ) {
|
|
1579
1579
|
if (!I && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, v(e, "tab characters must not be used in indentation")), i = e.input.charCodeAt(e.position + 1), o = e.line, (C === 63 || C === 58) && ae(i))
|
|
1580
|
-
C === 63 ? (I && (
|
|
1580
|
+
C === 63 ? (I && (xe(e, c, f, p, S, null, a, l, s), p = S = h = null), E = !0, I = !0, r = !0) : I ? (I = !1, r = !0) : v(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, C = i;
|
|
1581
1581
|
else {
|
|
1582
|
-
if (a = e.line, l = e.lineStart, s = e.position, !
|
|
1582
|
+
if (a = e.line, l = e.lineStart, s = e.position, !Ae(e, n, vn, !1, !0))
|
|
1583
1583
|
break;
|
|
1584
1584
|
if (e.line === o) {
|
|
1585
1585
|
for (C = e.input.charCodeAt(e.position); be(C); )
|
|
1586
1586
|
C = e.input.charCodeAt(++e.position);
|
|
1587
1587
|
if (C === 58)
|
|
1588
|
-
C = e.input.charCodeAt(++e.position), ae(C) || v(e, "a whitespace character is expected after the key-value separator within a block mapping"), I && (
|
|
1588
|
+
C = e.input.charCodeAt(++e.position), ae(C) || v(e, "a whitespace character is expected after the key-value separator within a block mapping"), I && (xe(e, c, f, p, S, null, a, l, s), p = S = h = null), E = !0, I = !1, r = !1, p = e.tag, S = e.result;
|
|
1589
1589
|
else if (E)
|
|
1590
1590
|
v(e, "can not read an implicit mapping pair; a colon is missed");
|
|
1591
1591
|
else
|
|
@@ -1595,12 +1595,12 @@ function Wr(e, t, n) {
|
|
|
1595
1595
|
else
|
|
1596
1596
|
return e.tag = u, e.anchor = d, !0;
|
|
1597
1597
|
}
|
|
1598
|
-
if ((e.line === o || e.lineIndent > t) && (I && (a = e.line, l = e.lineStart, s = e.position),
|
|
1598
|
+
if ((e.line === o || e.lineIndent > t) && (I && (a = e.line, l = e.lineStart, s = e.position), Ae(e, t, $e, !0, r) && (I ? S = e.result : h = e.result), I || (xe(e, c, f, p, S, h, a, l, s), p = S = h = null), z(e, !0, -1), C = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > t) && C !== 0)
|
|
1599
1599
|
v(e, "bad indentation of a mapping entry");
|
|
1600
1600
|
else if (e.lineIndent < t)
|
|
1601
1601
|
break;
|
|
1602
1602
|
}
|
|
1603
|
-
return I &&
|
|
1603
|
+
return I && xe(e, c, f, p, S, null, a, l, s), E && (e.tag = u, e.anchor = d, e.kind = "mapping", e.result = c), E;
|
|
1604
1604
|
}
|
|
1605
1605
|
function Jr(e) {
|
|
1606
1606
|
var t, n = !1, i = !1, r, o, a;
|
|
@@ -1640,7 +1640,7 @@ function Zr(e) {
|
|
|
1640
1640
|
i = e.input.charCodeAt(++e.position);
|
|
1641
1641
|
return e.position === t && v(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), me.call(e.anchorMap, n) || v(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], z(e, !0, -1), !0;
|
|
1642
1642
|
}
|
|
1643
|
-
function
|
|
1643
|
+
function Ae(e, t, n, i, r) {
|
|
1644
1644
|
var o, a, l, s = 1, u = !1, d = !1, c, f, p, S, h, I;
|
|
1645
1645
|
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = a = l = $e === n || bn === n, i && z(e, !0, -1) && (u = !0, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)), s === 1)
|
|
1646
1646
|
for (; Jr(e) || Gr(e); )
|
|
@@ -1688,7 +1688,7 @@ function Qr(e) {
|
|
|
1688
1688
|
}
|
|
1689
1689
|
a !== 0 && ct(e), me.call(It, i) ? It[i](e, i, r) : Ke(e, 'unknown document directive "' + i + '"');
|
|
1690
1690
|
}
|
|
1691
|
-
if (z(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, z(e, !0, -1)) : o && v(e, "directives end mark is expected"),
|
|
1691
|
+
if (z(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, z(e, !0, -1)) : o && v(e, "directives end mark is expected"), Ae(e, e.lineIndent - 1, $e, !1, !0), z(e, !0, -1), e.checkLineBreaks && qr.test(e.input.slice(t, e.position)) && Ke(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && Pe(e)) {
|
|
1692
1692
|
e.input.charCodeAt(e.position) === 46 && (e.position += 3, z(e, !0, -1));
|
|
1693
1693
|
return;
|
|
1694
1694
|
}
|
|
@@ -1697,7 +1697,7 @@ function Qr(e) {
|
|
|
1697
1697
|
else
|
|
1698
1698
|
return;
|
|
1699
1699
|
}
|
|
1700
|
-
function
|
|
1700
|
+
function An(e, t) {
|
|
1701
1701
|
e = String(e), t = t || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
|
|
1702
1702
|
`), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
1703
1703
|
var n = new Pr(e, t), i = e.indexOf("\0");
|
|
@@ -1709,14 +1709,14 @@ function xn(e, t) {
|
|
|
1709
1709
|
}
|
|
1710
1710
|
function Xr(e, t, n) {
|
|
1711
1711
|
t !== null && typeof t == "object" && typeof n > "u" && (n = t, t = null);
|
|
1712
|
-
var i =
|
|
1712
|
+
var i = An(e, n);
|
|
1713
1713
|
if (typeof t != "function")
|
|
1714
1714
|
return i;
|
|
1715
1715
|
for (var r = 0, o = i.length; r < o; r += 1)
|
|
1716
1716
|
t(i[r]);
|
|
1717
1717
|
}
|
|
1718
1718
|
function ea(e, t) {
|
|
1719
|
-
var n =
|
|
1719
|
+
var n = An(e, t);
|
|
1720
1720
|
if (n.length !== 0) {
|
|
1721
1721
|
if (n.length === 1)
|
|
1722
1722
|
return n[0];
|
|
@@ -1781,7 +1781,7 @@ function Sa(e) {
|
|
|
1781
1781
|
return "\\" + n + W.repeat("0", i - t.length) + t;
|
|
1782
1782
|
}
|
|
1783
1783
|
var Ca = 1, Me = 2;
|
|
1784
|
-
function
|
|
1784
|
+
function xa(e) {
|
|
1785
1785
|
this.schema = e.schema || st, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = W.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = wa(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 === '"' ? Me : Ca, 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;
|
|
1786
1786
|
}
|
|
1787
1787
|
function Tt(e, t) {
|
|
@@ -1795,7 +1795,7 @@ function Ze(e, t) {
|
|
|
1795
1795
|
return `
|
|
1796
1796
|
` + W.repeat(" ", e.indent * t);
|
|
1797
1797
|
}
|
|
1798
|
-
function
|
|
1798
|
+
function Aa(e, t) {
|
|
1799
1799
|
var n, i, r;
|
|
1800
1800
|
for (n = 0, i = e.implicitTypes.length; n < i; n += 1)
|
|
1801
1801
|
if (r = e.implicitTypes[n], r.resolve(t))
|
|
@@ -1865,7 +1865,7 @@ function Ta(e, t, n, i, r) {
|
|
|
1865
1865
|
return e.quotingType === Me ? '"' + t + '"' : "'" + t + "'";
|
|
1866
1866
|
var o = e.indent * Math.max(1, n), a = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - o), l = i || e.flowLevel > -1 && n >= e.flowLevel;
|
|
1867
1867
|
function s(u) {
|
|
1868
|
-
return
|
|
1868
|
+
return Aa(e, u);
|
|
1869
1869
|
}
|
|
1870
1870
|
switch (ja(
|
|
1871
1871
|
t,
|
|
@@ -2024,7 +2024,7 @@ function Xe(e, t, n) {
|
|
|
2024
2024
|
}
|
|
2025
2025
|
function qa(e, t) {
|
|
2026
2026
|
t = t || {};
|
|
2027
|
-
var n = new
|
|
2027
|
+
var n = new xa(t);
|
|
2028
2028
|
n.noRefs || La(e, n);
|
|
2029
2029
|
var i = e;
|
|
2030
2030
|
return n.replacer && (i = n.replacer.call({ "": i }, "", i)), ue(n, 0, i, !0, !0) ? n.dump + `
|
|
@@ -2494,7 +2494,7 @@ const eo = { class: "yaml-config" }, to = /* @__PURE__ */ re({
|
|
|
2494
2494
|
u.value = !1;
|
|
2495
2495
|
}
|
|
2496
2496
|
}), (m, g) => {
|
|
2497
|
-
const k = $("KSkeleton"), M = $("KEmptyState"), R = $("KAlert"),
|
|
2497
|
+
const k = $("KSkeleton"), M = $("KEmptyState"), R = $("KAlert"), A = $("KButton"), J = $("KTabs"), U = $("KSlideout"), q = $("KCard");
|
|
2498
2498
|
return w(), H(q, { class: "kong-ui-entity-base-form" }, {
|
|
2499
2499
|
default: b(() => [
|
|
2500
2500
|
u.value ? (w(), H(k, {
|
|
@@ -2527,7 +2527,7 @@ const eo = { class: "yaml-config" }, to = /* @__PURE__ */ re({
|
|
|
2527
2527
|
K("div", wo, [
|
|
2528
2528
|
oe(m.$slots, "form-actions", {}, () => [
|
|
2529
2529
|
e.config.jsonYamlFormsEnabled ? (w(), L("div", So, [
|
|
2530
|
-
_(
|
|
2530
|
+
_(A, {
|
|
2531
2531
|
appearance: "tertiary",
|
|
2532
2532
|
"data-testid": "form-view-configuration",
|
|
2533
2533
|
onClick: g[0] || (g[0] = (G) => h())
|
|
@@ -2538,7 +2538,7 @@ const eo = { class: "yaml-config" }, to = /* @__PURE__ */ re({
|
|
|
2538
2538
|
_: 1
|
|
2539
2539
|
})
|
|
2540
2540
|
])) : Q("", !0),
|
|
2541
|
-
_(
|
|
2541
|
+
_(A, {
|
|
2542
2542
|
appearance: "secondary",
|
|
2543
2543
|
"data-testid": "form-cancel",
|
|
2544
2544
|
disabled: e.isReadonly,
|
|
@@ -2549,7 +2549,7 @@ const eo = { class: "yaml-config" }, to = /* @__PURE__ */ re({
|
|
|
2549
2549
|
]),
|
|
2550
2550
|
_: 1
|
|
2551
2551
|
}, 8, ["disabled"]),
|
|
2552
|
-
_(
|
|
2552
|
+
_(A, {
|
|
2553
2553
|
appearance: "primary",
|
|
2554
2554
|
"data-testid": "form-submit",
|
|
2555
2555
|
disabled: f.value,
|
|
@@ -2601,7 +2601,7 @@ const eo = { class: "yaml-config" }, to = /* @__PURE__ */ re({
|
|
|
2601
2601
|
});
|
|
2602
2602
|
};
|
|
2603
2603
|
}
|
|
2604
|
-
}),
|
|
2604
|
+
}), xo = /* @__PURE__ */ _e(Co, [["__scopeId", "data-v-acb5a965"]]), Ao = {
|
|
2605
2605
|
key: 0,
|
|
2606
2606
|
"data-testid": "first-col"
|
|
2607
2607
|
}, Io = /* @__PURE__ */ re({
|
|
@@ -2660,7 +2660,7 @@ const eo = { class: "yaml-config" }, to = /* @__PURE__ */ re({
|
|
|
2660
2660
|
ref: s,
|
|
2661
2661
|
class: "content-wrapper"
|
|
2662
2662
|
}, [
|
|
2663
|
-
r.value ? (w(), L("span",
|
|
2663
|
+
r.value ? (w(), L("span", Ao, [
|
|
2664
2664
|
_(E, {
|
|
2665
2665
|
"max-width": "300",
|
|
2666
2666
|
placement: "bottomStart",
|
|
@@ -2847,7 +2847,7 @@ const eo = { class: "yaml-config" }, to = /* @__PURE__ */ re({
|
|
|
2847
2847
|
n.preferencesStorageKey && E(n.preferencesStorageKey, g);
|
|
2848
2848
|
};
|
|
2849
2849
|
return (g, k) => {
|
|
2850
|
-
const M = $("KIcon"), R = $("KButton"),
|
|
2850
|
+
const M = $("KIcon"), R = $("KButton"), A = $("KDropdown"), J = $("KTable"), U = $("KCard");
|
|
2851
2851
|
return w(), H(U, {
|
|
2852
2852
|
class: "kong-ui-entity-base-table",
|
|
2853
2853
|
title: e.title
|
|
@@ -2898,7 +2898,7 @@ const eo = { class: "yaml-config" }, to = /* @__PURE__ */ re({
|
|
|
2898
2898
|
class: "actions-container",
|
|
2899
2899
|
"data-testid": q.name
|
|
2900
2900
|
}, [
|
|
2901
|
-
_(
|
|
2901
|
+
_(A, {
|
|
2902
2902
|
"kpop-attributes": { placement: "bottomEnd" },
|
|
2903
2903
|
width: e.dropdownMenuWidth
|
|
2904
2904
|
}, {
|
|
@@ -3214,52 +3214,52 @@ const eo = { class: "yaml-config" }, to = /* @__PURE__ */ re({
|
|
|
3214
3214
|
[fe, o.value]
|
|
3215
3215
|
]),
|
|
3216
3216
|
pe(K("div", Do, [
|
|
3217
|
-
(w(!0), L(Ut, null, tt(u.value, (
|
|
3217
|
+
(w(!0), L(Ut, null, tt(u.value, (A) => {
|
|
3218
3218
|
var J, U;
|
|
3219
3219
|
return w(), L("div", {
|
|
3220
|
-
key:
|
|
3220
|
+
key: A.value,
|
|
3221
3221
|
class: "kong-ui-entity-filter-menu-item",
|
|
3222
|
-
"data-testid":
|
|
3222
|
+
"data-testid": A.value
|
|
3223
3223
|
}, [
|
|
3224
3224
|
K("span", {
|
|
3225
|
-
class: Ne(["menu-item-title", { expanded: l.value.has(
|
|
3225
|
+
class: Ne(["menu-item-title", { expanded: l.value.has(A.value) }]),
|
|
3226
3226
|
role: "button",
|
|
3227
3227
|
tabindex: "0",
|
|
3228
|
-
onClick: (q) => c(
|
|
3229
|
-
onKeydown: Bn((q) => c(
|
|
3228
|
+
onClick: (q) => c(A.value),
|
|
3229
|
+
onKeydown: Bn((q) => c(A.value), ["enter"])
|
|
3230
3230
|
}, [
|
|
3231
|
-
Z(F(
|
|
3231
|
+
Z(F(A.label) + " ", 1),
|
|
3232
3232
|
pe(K("span", Ho, null, 512), [
|
|
3233
|
-
[fe, s.value.includes(
|
|
3233
|
+
[fe, s.value.includes(A.value)]
|
|
3234
3234
|
]),
|
|
3235
3235
|
_(y(go), {
|
|
3236
|
-
class: Ne(["menu-item-expand-icon", { expanded: l.value.has(
|
|
3236
|
+
class: Ne(["menu-item-expand-icon", { expanded: l.value.has(A.value) }]),
|
|
3237
3237
|
color: y(Ni)
|
|
3238
3238
|
}, null, 8, ["class", "color"])
|
|
3239
3239
|
], 42, zo),
|
|
3240
3240
|
pe(K("div", Yo, [
|
|
3241
3241
|
K("label", {
|
|
3242
3242
|
class: "menu-item-label",
|
|
3243
|
-
for: S(
|
|
3243
|
+
for: S(A.value)
|
|
3244
3244
|
}, F(y(n)("filter.fieldLabel")), 9, Wo),
|
|
3245
|
-
((U = (J = e.config.schema) == null ? void 0 : J[
|
|
3245
|
+
((U = (J = e.config.schema) == null ? void 0 : J[A.value]) == null ? void 0 : U.type) === "select" ? (w(), H(R, {
|
|
3246
3246
|
key: 0,
|
|
3247
|
-
id: S(
|
|
3248
|
-
modelValue: a.value[
|
|
3249
|
-
"onUpdate:modelValue": (q) => a.value[
|
|
3250
|
-
items: h(
|
|
3247
|
+
id: S(A.value),
|
|
3248
|
+
modelValue: a.value[A.value],
|
|
3249
|
+
"onUpdate:modelValue": (q) => a.value[A.value] = q,
|
|
3250
|
+
items: h(A.value),
|
|
3251
3251
|
placeholder: y(n)("filter.selectPlaceholder")
|
|
3252
3252
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (w(), H(k, {
|
|
3253
3253
|
key: 1,
|
|
3254
|
-
id: S(
|
|
3255
|
-
modelValue: a.value[
|
|
3256
|
-
"onUpdate:modelValue": (q) => a.value[
|
|
3254
|
+
id: S(A.value),
|
|
3255
|
+
modelValue: a.value[A.value],
|
|
3256
|
+
"onUpdate:modelValue": (q) => a.value[A.value] = q,
|
|
3257
3257
|
autocomplete: "off",
|
|
3258
3258
|
placeholder: y(n)("filter.inputPlaceholder"),
|
|
3259
|
-
type: I(
|
|
3259
|
+
type: I(A.value)
|
|
3260
3260
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
|
|
3261
3261
|
], 512), [
|
|
3262
|
-
[fe, l.value.has(
|
|
3262
|
+
[fe, l.value.has(A.value)]
|
|
3263
3263
|
]),
|
|
3264
3264
|
pe(K("div", Jo, [
|
|
3265
3265
|
_(M, {
|
|
@@ -3277,7 +3277,7 @@ const eo = { class: "yaml-config" }, to = /* @__PURE__ */ re({
|
|
|
3277
3277
|
appearance: "tertiary",
|
|
3278
3278
|
"data-testid": "clear-filter",
|
|
3279
3279
|
size: "small",
|
|
3280
|
-
onClick: (q) => E(
|
|
3280
|
+
onClick: (q) => E(A.value)
|
|
3281
3281
|
}, {
|
|
3282
3282
|
default: b(() => [
|
|
3283
3283
|
Z(F(y(n)("filter.clearButtonText")), 1)
|
|
@@ -3285,7 +3285,7 @@ const eo = { class: "yaml-config" }, to = /* @__PURE__ */ re({
|
|
|
3285
3285
|
_: 2
|
|
3286
3286
|
}, 1032, ["onClick"])
|
|
3287
3287
|
], 512), [
|
|
3288
|
-
[fe, l.value.has(
|
|
3288
|
+
[fe, l.value.has(A.value)]
|
|
3289
3289
|
])
|
|
3290
3290
|
], 8, Vo);
|
|
3291
3291
|
}), 128)),
|
|
@@ -3396,7 +3396,7 @@ const eo = { class: "yaml-config" }, to = /* @__PURE__ */ re({
|
|
|
3396
3396
|
])
|
|
3397
3397
|
], 2));
|
|
3398
3398
|
}
|
|
3399
|
-
}), Kt = /* @__PURE__ */ _e(rl, [["__scopeId", "data-v-3565daa7"]]), { useAxios: Kn, useDeleteUrlBuilder: al, useErrors: ol, useExternalLinkCreator: Sl, useFetchUrlBuilder: Cl, useFetcher: ll, useDebouncedFilter: sl, useStringHelpers:
|
|
3399
|
+
}), Kt = /* @__PURE__ */ _e(rl, [["__scopeId", "data-v-3565daa7"]]), { useAxios: Kn, useDeleteUrlBuilder: al, useErrors: ol, useExternalLinkCreator: Sl, useFetchUrlBuilder: Cl, useFetcher: ll, useDebouncedFilter: sl, useStringHelpers: xl, useHelpers: Al, useGatewayFeatureSupported: Il, useTruncationDetector: _l } = ve, cl = { class: "kong-ui-entities-snis-list" }, ul = { key: 1 }, dl = { key: 1 }, pl = /* @__PURE__ */ re({
|
|
3400
3400
|
__name: "SniList",
|
|
3401
3401
|
props: {
|
|
3402
3402
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3510,36 +3510,36 @@ const eo = { class: "yaml-config" }, to = /* @__PURE__ */ re({
|
|
|
3510
3510
|
}, k = (T) => ({
|
|
3511
3511
|
label: r("actions.edit"),
|
|
3512
3512
|
to: i.config.getEditRoute(T)
|
|
3513
|
-
}), M = N(void 0), R = N(!1),
|
|
3513
|
+
}), M = N(void 0), R = N(!1), A = N(!1), J = N(""), U = al(i.config, c.value), q = (T) => {
|
|
3514
3514
|
M.value = T, R.value = !0;
|
|
3515
3515
|
}, G = () => {
|
|
3516
3516
|
R.value = !1, M.value = void 0;
|
|
3517
3517
|
}, de = async () => {
|
|
3518
3518
|
var T, D, Y;
|
|
3519
3519
|
if ((T = M.value) != null && T.id) {
|
|
3520
|
-
|
|
3520
|
+
A.value = !0;
|
|
3521
3521
|
try {
|
|
3522
|
-
await o.delete(U(M.value.id)), n("delete:success", M.value),
|
|
3523
|
-
} catch (
|
|
3524
|
-
J.value = ((Y = (D =
|
|
3522
|
+
await o.delete(U(M.value.id)), n("delete:success", M.value), A.value = !1, G(), a.value++;
|
|
3523
|
+
} catch (x) {
|
|
3524
|
+
J.value = ((Y = (D = x.response) == null ? void 0 : D.data) == null ? void 0 : Y.message) || x.message || r("errors.delete"), n("error", x);
|
|
3525
3525
|
} finally {
|
|
3526
|
-
|
|
3526
|
+
A.value = !1;
|
|
3527
3527
|
}
|
|
3528
3528
|
}
|
|
3529
3529
|
}, ke = N(!0);
|
|
3530
3530
|
return he(h, (T) => {
|
|
3531
|
-
var D, Y,
|
|
3531
|
+
var D, Y, x, O;
|
|
3532
3532
|
if (Array.isArray((D = T == null ? void 0 : T.response) == null ? void 0 : D.data) && (ke.value = T.response.data.length > 0), T.status === ye.Error) {
|
|
3533
3533
|
C.value = {
|
|
3534
3534
|
title: r("errors.general")
|
|
3535
|
-
}, (O = (
|
|
3535
|
+
}, (O = (x = (Y = T.error) == null ? void 0 : Y.response) == null ? void 0 : x.data) != null && O.message && (C.value.message = T.error.response.data.message), n("error", T.error);
|
|
3536
3536
|
return;
|
|
3537
3537
|
}
|
|
3538
3538
|
C.value = null;
|
|
3539
3539
|
}), et(async () => {
|
|
3540
3540
|
await i.canCreate() && (te.value.title = r("snis.list.empty_state.title"), te.value.ctaText = r("actions.create"));
|
|
3541
3541
|
}), (T, D) => {
|
|
3542
|
-
const Y = $("KButton"),
|
|
3542
|
+
const Y = $("KButton"), x = $("KCopy"), O = $("KBadge"), V = $("KTruncate"), ce = $("KDropdownItem"), ne = $("KClipboardProvider");
|
|
3543
3543
|
return w(), L("div", cl, [
|
|
3544
3544
|
_(y(Eo), {
|
|
3545
3545
|
"cache-identifier": e.cacheIdentifier,
|
|
@@ -3601,7 +3601,7 @@ const eo = { class: "yaml-config" }, to = /* @__PURE__ */ re({
|
|
|
3601
3601
|
K("b", null, F(P ?? "-"), 1)
|
|
3602
3602
|
]),
|
|
3603
3603
|
certificate: b(({ row: P }) => [
|
|
3604
|
-
P.certificate && P.certificate.id ? (w(), H(
|
|
3604
|
+
P.certificate && P.certificate.id ? (w(), H(x, {
|
|
3605
3605
|
key: 0,
|
|
3606
3606
|
class: "copy-certificate-uuid",
|
|
3607
3607
|
"data-testid": "copy-certificate-uuid",
|
|
@@ -3688,7 +3688,7 @@ const eo = { class: "yaml-config" }, to = /* @__PURE__ */ re({
|
|
|
3688
3688
|
_: 1
|
|
3689
3689
|
}, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers", "use-action-outside"]),
|
|
3690
3690
|
_(y(qo), {
|
|
3691
|
-
"action-pending":
|
|
3691
|
+
"action-pending": A.value,
|
|
3692
3692
|
description: y(r)("delete.description"),
|
|
3693
3693
|
"entity-name": M.value && (M.value.name || M.value.id),
|
|
3694
3694
|
"entity-type": y(zt).SNI,
|
|
@@ -3744,32 +3744,32 @@ const eo = { class: "yaml-config" }, to = /* @__PURE__ */ re({
|
|
|
3744
3744
|
name: "",
|
|
3745
3745
|
tags: "",
|
|
3746
3746
|
certificate_id: ""
|
|
3747
|
-
}), p = j(() => JSON.stringify(c.fields) !== JSON.stringify(f) && !!c.fields.name && !!(c.fields.certificate_id || d.value)), S = (
|
|
3747
|
+
}), p = j(() => JSON.stringify(c.fields) !== JSON.stringify(f) && !!c.fields.name && !!(c.fields.certificate_id || d.value)), S = (x) => {
|
|
3748
3748
|
var O, V;
|
|
3749
|
-
c.fields.name = (
|
|
3749
|
+
c.fields.name = (x == null ? void 0 : x.name) || "", c.fields.tags = ((O = x == null ? void 0 : x.tags) == null ? void 0 : O.join(", ")) || "", c.fields.certificate_id = ((V = x == null ? void 0 : x.certificate) == null ? void 0 : V.id) || "", Object.assign(f, c.fields);
|
|
3750
3750
|
}, h = () => {
|
|
3751
3751
|
r.push(i.config.cancelRoute);
|
|
3752
3752
|
}, I = j(() => {
|
|
3753
3753
|
var O, V;
|
|
3754
|
-
let
|
|
3755
|
-
return i.config.app === "konnect" ?
|
|
3754
|
+
let x = `${i.config.apiBaseUrl}${je.form[i.config.app].validate}`;
|
|
3755
|
+
return i.config.app === "konnect" ? x = x.replace(/{controlPlaneId}/gi, ((O = i.config) == null ? void 0 : O.controlPlaneId) || "") : i.config.app === "kongManager" && (x = x.replace(/\/{workspace}/gi, (V = i.config) != null && V.workspace ? `/${i.config.workspace}` : "")), x = x.replace(/{id}/gi, i.sniId), x;
|
|
3756
3756
|
}), E = j(() => {
|
|
3757
3757
|
var O, V;
|
|
3758
|
-
let
|
|
3759
|
-
return i.config.app === "konnect" ?
|
|
3758
|
+
let x = `${i.config.apiBaseUrl}${je.form[i.config.app][u.value]}`;
|
|
3759
|
+
return i.config.app === "konnect" ? x = x.replace(/{controlPlaneId}/gi, ((O = i.config) == null ? void 0 : O.controlPlaneId) || "") : i.config.app === "kongManager" && (x = x.replace(/\/{workspace}/gi, (V = i.config) != null && V.workspace ? `/${i.config.workspace}` : "")), x = x.replace(/{id}/gi, i.sniId), x;
|
|
3760
3760
|
}), C = j(() => {
|
|
3761
|
-
var
|
|
3761
|
+
var x, O;
|
|
3762
3762
|
return {
|
|
3763
3763
|
name: c.fields.name,
|
|
3764
|
-
tags: (O = (
|
|
3764
|
+
tags: (O = (x = c.fields.tags.split(",")) == null ? void 0 : x.map((V) => String(V || "").trim())) == null ? void 0 : O.filter((V) => V !== ""),
|
|
3765
3765
|
certificate: { id: d.value || c.fields.certificate_id }
|
|
3766
3766
|
};
|
|
3767
3767
|
}), te = async () => {
|
|
3768
|
-
var
|
|
3768
|
+
var x, O, V, ce, ne, P;
|
|
3769
3769
|
try {
|
|
3770
3770
|
c.isReadonly = !0;
|
|
3771
3771
|
let B;
|
|
3772
|
-
await l.post(I.value, C.value), u.value === "create" ? B = await l.post(E.value, C.value) : u.value === "edit" && (B = ((
|
|
3772
|
+
await l.post(I.value, C.value), u.value === "create" ? B = await l.post(E.value, C.value) : u.value === "edit" && (B = ((x = i.config) == null ? void 0 : x.app) === "konnect" ? await l.put(E.value, C.value) : await l.patch(E.value, C.value)), c.fields.name = ((O = B == null ? void 0 : B.data) == null ? void 0 : O.name) || "", c.fields.tags = ((ce = (V = B == null ? void 0 : B.data) == null ? void 0 : V.tags) == null ? void 0 : ce.join(", ")) || "", c.fields.certificate_id = ((P = (ne = B == null ? void 0 : B.data) == null ? void 0 : ne.certificate) == null ? void 0 : P.id) || "", Object.assign(f, c.fields), n("update", B == null ? void 0 : B.data);
|
|
3773
3773
|
} catch (B) {
|
|
3774
3774
|
c.errorMessage = a(B), n("error", B);
|
|
3775
3775
|
} finally {
|
|
@@ -3781,30 +3781,30 @@ const eo = { class: "yaml-config" }, to = /* @__PURE__ */ re({
|
|
|
3781
3781
|
allRecords: k,
|
|
3782
3782
|
error: M,
|
|
3783
3783
|
validationError: R,
|
|
3784
|
-
loadItems:
|
|
3784
|
+
loadItems: A,
|
|
3785
3785
|
results: J
|
|
3786
|
-
} = sl(i.config, je.form[i.config.app].certificates), U = (
|
|
3787
|
-
m(
|
|
3786
|
+
} = sl(i.config, je.form[i.config.app].certificates), U = (x) => {
|
|
3787
|
+
m(x);
|
|
3788
3788
|
}, q = j(() => M.value ? o("errors.certificates.fetch") : ""), G = j(() => R.value ? o("errors.certificates.invalid") : ""), de = N(0), ke = j(() => k.value === void 0), se = N(/* @__PURE__ */ new Set()), T = j(() => Array.from(se.value).map((O) => ({
|
|
3789
3789
|
label: O,
|
|
3790
3790
|
value: O,
|
|
3791
3791
|
selected: c.fields.certificate_id === O
|
|
3792
|
-
}))), D = (
|
|
3792
|
+
}))), D = (x) => {
|
|
3793
3793
|
se.value.clear();
|
|
3794
3794
|
let O;
|
|
3795
|
-
for (O of
|
|
3795
|
+
for (O of x)
|
|
3796
3796
|
se.value.add(O.id);
|
|
3797
3797
|
};
|
|
3798
|
-
return he(J, (
|
|
3799
|
-
D(
|
|
3798
|
+
return he(J, (x) => {
|
|
3799
|
+
D(x);
|
|
3800
3800
|
}, { immediate: !0, deep: !0 }), he(T, () => {
|
|
3801
3801
|
de.value++;
|
|
3802
3802
|
}, { immediate: !0, deep: !0 }), et(async () => {
|
|
3803
|
-
await
|
|
3804
|
-
}), (
|
|
3803
|
+
await A();
|
|
3804
|
+
}), (x, O) => {
|
|
3805
3805
|
const V = $("KInput"), ce = $("KSelect");
|
|
3806
3806
|
return w(), L("div", fl, [
|
|
3807
|
-
_(y(
|
|
3807
|
+
_(y(xo), {
|
|
3808
3808
|
"can-submit": p.value,
|
|
3809
3809
|
config: e.config,
|
|
3810
3810
|
"edit-id": e.sniId,
|
|
@@ -3813,9 +3813,9 @@ const eo = { class: "yaml-config" }, to = /* @__PURE__ */ re({
|
|
|
3813
3813
|
"form-fields": C.value,
|
|
3814
3814
|
"is-readonly": c.isReadonly,
|
|
3815
3815
|
onCancel: h,
|
|
3816
|
-
"onFetch:error": O[3] || (O[3] = (ne) =>
|
|
3816
|
+
"onFetch:error": O[3] || (O[3] = (ne) => x.$emit("error", ne)),
|
|
3817
3817
|
"onFetch:success": S,
|
|
3818
|
-
onLoading: O[4] || (O[4] = (ne) =>
|
|
3818
|
+
onLoading: O[4] || (O[4] = (ne) => x.$emit("loading", ne)),
|
|
3819
3819
|
onSubmit: te
|
|
3820
3820
|
}, {
|
|
3821
3821
|
default: b(() => [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(Y,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("@kong-ui-public/i18n"),require("axios"),require("@kong/kongponents"),require("vue-router")):typeof define=="function"&&define.amd?define(["exports","vue","@kong-ui-public/i18n","axios","@kong/kongponents","vue-router"],t):(Y=typeof globalThis<"u"?globalThis:Y||self,t(Y["kong-ui-public-entities-snis"]={},Y.Vue,Y["kong-ui-public-i18n"],Y.axios,Y.Kongponents,Y.VueRouter))})(this,function(Y,t,be,ze,Va,He){"use strict";const un={actions:{create:"New SNI",copy_id:"Copy ID",copy_json:"Copy JSON",edit:"Edit",delete:"Delete",clear:"Clear",loading:"Loading..."},search:{placeholder:"Filter by exact name or ID",no_results:"No results found"},snis:{title:"SNIs",list:{toolbar_actions:{new:"New SNI"},table_headers:{name:"Name",id:"ID",certificate_id:"SSL Certificate ID",tags:"Tags"},empty_state:{title:"Configure a New SNI",description:"SNIs are used to map hostnames to a certificate."}}},form:{sections:{general:{title:"General Information",description:"General information will help identify and manage this SNI."},certificate:{title:"Certificate",description:"Map an existing Certificate object to hostnames"}},fields:{name:{label:"Name",placeholder:"Enter a unique name for this SNI"},tags:{label:"Tags",placeholder:"Enter a list of tags separated by comma",help:"e.g. tag1, tag2, tag3",tooltip:"An optional set of strings for grouping and filtering, separated by commas."},certificate_id:{label:"SSL Certificate ID",placeholder:"Enter or select a Certificate ID",footer:"Search by exact ID to find certificates not included in the list"}}},delete:{title:"Delete an SNI",description:"This action cannot be reversed so make sure to check the SNI usage before deleting."},errors:{delete:"The SNI could not be deleted at this time.",general:"SNIs could not be retrieved",certificates:{fetch:"Could not fetch available certificates",invalid:"Please select a valid certificate ID"},copy:"Failed to copy to clipboard"},copy:{success:"Copied {val} to clipboard",success_brief:"Successfully copied to clipboard"}};function fn(){const e=be.createI18n("en-us",un);return{i18n:e,i18nT:be.i18nTComponent(e)}}const Ye={useI18n:fn},ue={list:{konnect:{all:"/api/runtime_groups/{controlPlaneId}/snis"},kongManager:{all:"/{workspace}/snis"}},form:{konnect:{create:"/api/runtime_groups/{controlPlaneId}/snis",edit:"/api/runtime_groups/{controlPlaneId}/snis/{id}",validate:"/api/runtime_groups/{controlPlaneId}/v1/schemas/json/sni/validate",certificates:"/api/runtime_groups/{controlPlaneId}/certificates"},kongManager:{create:"/{workspace}/snis",edit:"/{workspace}/snis/{id}",validate:"/{workspace}/schemas/snis/validate",certificates:"/{workspace}/certificates"}}};var We=(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))(We||{}),ke=(e=>(e.Edit="edit",e.Create="create",e))(ke||{}),te=(e=>(e[e.Loading=0]="Loading",e[e.Idle=1]="Idle",e[e.NoResults=2]="NoResults",e[e.Error=3]="Error",e))(te||{});function mn(){return{getAxiosInstance:(e={})=>{try{const n=t.inject("get-axios-instance",void 0);return typeof n=="function"?n(e):ze.create({withCredentials:!0,timeout:3e4,...e})}catch(n){return console.warn("getAxiosInstance:",n.message||n),ze.create({withCredentials:!0,timeout:3e4,...e})}},getTraceIdFromError:e=>{var n;return((n=e==null?void 0:e.response)==null?void 0:n.headers["x-datadog-trace-id"])||""}}}function hn(){return{debounce:(e,n)=>{let r;return(...i)=>{clearTimeout(r),r=window==null?void 0:window.setTimeout(()=>{e(...i)},n)}}}}const Ae="khcp-user-table-preferences",gn={pageSize:30,sortColumnKey:void 0,sortColumnOrder:void 0};function yn(){const e=r=>{if(typeof r=="string")try{return JSON.parse(r)}catch(i){console.error("useTablePreferences(tryParseJson)",i);return}},n=()=>{const r=e(localStorage.getItem(Ae));return!r||!Object.keys(r).length?new Map:new Map(Object.entries(r))};return{setTablePreferences:(r,i)=>{try{const o=n();o.set(r,i),localStorage.setItem(Ae,JSON.stringify(Object.fromEntries(o.entries())))}catch(o){console.error("useTablePreferences(setTablePreferences)",o)}},getTablePreferences:r=>{const i=n();return(i==null?void 0:i.get(r))||void 0||gn},deleteAllTablePreferences:()=>{localStorage.removeItem(Ae)}}}function Ee(e={}){const{getAxiosInstance:n}=mn();return{axiosInstance:n(e)}}const bn={actions:{copyId:"Copy ID",copied_id:'Copied "{id}" to the clipboard',copyToClipboard:"Copied successfully!",copyToClipboardFailed:"Failed to copy to the clipboard"}},kn={message:"Are you sure you want to delete this {entityType}?",messageWithName:"Are you sure you want to delete this {entityType} {entityName}?"},wn={actions:{viewConfiguration:"View Configuration",save:"Save",cancel:"Cancel",back:"Back"},configuration:{title:"Configuration",message:"Export configurations for core Kong Gateway objects, like services, routes, and plugins, to either YAML or JSON. This allows for straightforward importing into APIOps tools like decK with YAML, or Insomnia and cURL with JSON.",yaml:"YAML",json:"JSON"},errors:{edit:"The entity could not be edited at this time."}},Cn={emptyState:{noSearchResultsTitle:"No results found",noSearchResultsMessage:"Please adjust the criteria and try again.",noSearchResultsCtaText:"Clear"}},Sn={title:"Configuration",actions:{copy:"Copy JSON"},sections:{advanced:"Advanced",plugin:"Plugin Specific Configuration"},commonFields:{id_label:"ID",name_label:"Name",enabled_label:"Enabled",enabled_tooltip:"Enabled is FTW",updated_at_label:"Last Updated",created_at_label:"Created",tags_label:"Tags",link:"Link"},statusBadge:{enabledLabel:"Enabled",disabledLabel:"Disabled"},copy:{tooltip:"Copy {label}",success:"Copied!"},errors:{load:"The entity configuration data could not be loaded at this time.",copy:"Failed to copy to clipboard"},general:{entryTitle:"Entry {index}",structuredFormat:"Structured"}},xn={filterButtonText:"Filter",fieldLabel:"Filter by:",inputPlaceholder:"Enter a value",selectPlaceholder:"Select an item",applyButtonText:"Apply",clearButtonText:"Clear",clearAllButtonText:"Clear all filters"},Nn={errors:{fetch:"Could not fetch available items",invalid:"Please select a valid value"}},In={unexpected:"An unexpected error has occurred",dataKeyUndefined:'The data key "{dataKey}" does not exist in the response.'},An={enable:{title:"Enable {entityType}",message:"Are you sure you want to enable the {entityType} {entityName}?",confirmText:"Yes, enable"},disable:{title:"Disable {entityType}",message:"Are you sure you want to disable the {entityType} {entityName}?",confirmText:"Yes, disable"}},En={global:bn,deleteModal:kn,baseForm:wn,baseTable:Cn,baseConfigCard:Sn,filter:xn,debouncedFilter:Nn,errors:In,toggleModal:An};function _e(){const e=be.createI18n("en-us",En);return{i18n:e,i18nT:be.i18nTComponent(e)}}function Je(){const e=(r,i)=>(i==null?void 0:i[r])??void 0,n=(r,i)=>{if(r.length!==i.length)return!1;const o=new Set([...r,...i]);for(const l of o){const a=r.filter(c=>c===l).length,s=i.filter(c=>c===l).length;if(a!==s)return!1}return!0};return{getPropValue:e,objectsAreEqual:(r,i,o)=>{if(o){if(Object.keys(r).length===Object.keys(i).length)for(const l in r)if(Array.isArray(r[l])&&Array.isArray(i[l])){if(n(r[l],i[l]))continue;return!1}else{if(r[l]===i[l])continue;return!1}else return!1;return!0}try{return JSON.stringify(r)===JSON.stringify(i)}catch{return!1}},sortAlpha:r=>(i,o)=>{let l=i[r]===void 0||i[r]===null?"":i[r],a=o[r]===void 0||o[r]===null?"":o[r];return Array.isArray(i[r])&&(l=i[r][0]),Array.isArray(o[r])&&(a=o[r][0]),l.localeCompare(a)},isValidUuid:r=>r?/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(r):!1}}function _n(e,n,r,i={fetchedItemsKey:"data",searchKeys:["id"]}){r||(r="100");const{axiosInstance:o}=Ee({headers:e.requestHeaders}),{i18n:{t:l}}=_e(),{debounce:a}=hn(),s=a(async y=>{await P(y)},200),c=t.ref(!1),p=t.ref(""),u=t.ref(""),d=t.ref([]),m=t.ref([]),f=t.ref(void 0),w=t.unref(n);let g=`${e.apiBaseUrl}${w}`;e.app==="konnect"?g=g.replace(/{controlPlaneId}/gi,(e==null?void 0:e.controlPlaneId)||""):e.app==="kongManager"&&(g=g.replace(/\/{workspace}/gi,e!=null&&e.workspace?`/${e.workspace}`:""));const{isValidUuid:N}=Je(),E=async()=>{try{c.value=!0;const{data:y}=await o.get(`${g}?size=${r}`);y!=null&&y.next||(f.value=i.fetchedItemsKey in y?y[i.fetchedItemsKey]:[]),m.value=i.fetchedItemsKey in y?y[i.fetchedItemsKey]:[],d.value=m.value}catch{d.value=[],p.value=l("debouncedFilter.errors.fetch")}finally{c.value=!1}},C=t.ref(""),P=async y=>{var h,k,_;if(C.value!==y)if(C.value=y||"",f.value===void 0)try{if(c.value=!0,p.value="",u.value="",e.app==="konnect"){let B=g+"";y&&(B+=`/${y}`);const{data:x}=await o.get(`${B}?size=${r}`);i.fetchedItemsKey in x?d.value=x[i.fetchedItemsKey]:x!=null&&x.id?d.value=[x]:d.value=[]}else if(y){const B=[];N(y)&&i.searchKeys.includes("id")?B.push((async()=>{const{data:T}=await o.get(`${g}/${y}`);return[T[i.fetchedItemsKey]??T]})()):B.push(...i.searchKeys.filter(T=>T!=="id").map(async T=>{const{data:v}=await o.get(`${g}?${T}=${y}`);return v[i.fetchedItemsKey]}));const x=await Promise.all(B),$=new Set;d.value=[],(h=x==null?void 0:x.forEach)==null||h.call(x,T=>{var v;(v=T==null?void 0:T.forEach)==null||v.call(T,K=>{$.has(K.id)||($.add(K.id),d.value.push(K))})})}else d.value=m.value}catch(B){((k=B==null?void 0:B.response)==null?void 0:k.status)===404?u.value=l("debouncedFilter.errors.invalid"):(d.value=[],p.value=l("debouncedFilter.errors.fetch"))}finally{c.value=!1}else c.value=!0,u.value="",y?(d.value=(_=f.value)==null?void 0:_.filter(B=>{var x;let $=!1;for(const T of i.searchKeys){const v=typeof B[T]=="string"?(x=B[T])==null?void 0:x.toLowerCase():B[T];v!=null&&v.includes(y.toLowerCase())&&($=!0)}return $}),(!d.value||!d.value.length)&&(u.value=l("debouncedFilter.errors.invalid"))):d.value=f.value,c.value=!1};return{loading:c,error:p,validationError:u,results:d,allRecords:f,loadItems:E,debouncedQueryChange:s}}function vn(e,n){const r=t.unref(n),i=t.computed(()=>e.apiBaseUrl.startsWith("/")?new URL(`${window.location.origin}${r}`):new URL(r));return i.value.search="",o=>`${i.value.href}/${o}`}function Bn(){const{i18n:{t:e}}=_e();return{getMessageFromError:n=>{var r,i,o,l;if(!n)return e("errors.unexpected");if(((r=n==null?void 0:n.response)==null?void 0:r.status)===401)return console.warn("getMessageFromError: User auth token is expired or missing, returning empty message."),"";if((i=n==null?void 0:n.response)!=null&&i.data){if(n.response.data.detail)return n.response.data.detail;if((o=n.response.data.details)!=null&&o.length)return n.response.data.details.map(a=>{let s=e("errors.unexpected");return a.messages&&typeof a.messages=="object"&&a.messages.length&&(s=a.messages.join(", ")),a.field?`${a.field} - ${s}`:s}).join("; ");if(n.response.data.message){const{message:a}=n.response.data;return Array.isArray(a)?(l=a[0])!=null&&l.constraints?Object.values(a[0].constraints)[0]:a[0]:a}if(typeof n.response.data=="string")return n.response.data;if(typeof n.response.data=="object")return Object.keys(n.response.data).map(a=>`${a} ${n.response.data[a]}`).join(", ")}return n.message||e("errors.unexpected")}}}function Tn(e){const n=window.location.origin,r=n.endsWith("/")?n:`${n}/`;try{const i=e.join("/"),o=`${r}${i}`,l=e.some(a=>a.trim()==="");if(/^(https:\/\/(www\.)?([a-zA-Z0-9-]+\.){1,}[a-zA-Z]{2,}(:[0-9]+)?(\/[^\/]+)*)$|^(https|http):\/\/localhost(:[0-9]+)?(\/[^\/]+)*$/.test(o)&&!l&&new URL(o))return`${r}${i}`;throw new Error("Invalid url")}catch(i){return console.warn("Failed to build valid URL:",i),""}}function Ge(e,n){const r=t.ref(t.unref(e)),i=t.ref(t.unref(n)),o=t.computed(()=>!!(r.value.app==="konnect"||r.value.isExactMatch)),l=t.computed(()=>i.value.startsWith("/")?new URL(`${window.location.origin}${i.value}`):new URL(i.value));return a=>{const{page:s,pageSize:c,offset:p,sortColumnKey:u,sortColumnOrder:d,query:m}=a;try{let f=new URL(l.value.href);return o.value&&m?(f.search="",f=r.value.app==="konnect"?new URL(`${f.href}?filter[name][contains]=${m}`):new URL(`${f.href}/${m}/`)):(o.value||new URLSearchParams(m).forEach((w,g)=>{f.searchParams.append(g,w)}),u&&f.searchParams.append("sort_by",u),d==="desc"&&f.searchParams.append("sort_desc","1"),f.searchParams.append("size",String(c))),p&&s!==1&&f.searchParams.append("offset",String(p)),f.href}catch(f){return console.error("RouteList(fetcher)",f),i.value}}}function Vn(e,n,r="data"){const i=t.unref(n),{axiosInstance:o}=Ee({headers:e.requestHeaders}),l=Ge(e,i),a=t.ref({status:te.Idle});return{fetcher:async s=>{try{a.value={status:te.Loading};let c=l(s);c.includes("filter[name]")&&(c=`${c}&page[size]=${s.pageSize}&page[number]=${s.page}`);const{data:p}=await o.get(c),u=r&&r.replace(/[^\w-_]/gi,"");let d;p[u]&&Array.isArray(p[u])?d=p[u]:Array.isArray(p)?d=p:d=Object.keys(p).length?[p]:[];const m={data:d,total:d.length,...p.offset?{pagination:{offset:p.offset}}:null};return a.value={status:te.Idle,response:m},m}catch(c){const p={data:[],total:0};return s.query&&c.response.status===404?(a.value={status:te.NoResults,response:p,error:c},p):(a.value={status:te.Error,response:p,error:c},p)}},fetcherState:a}}function jn(){const e=(r,i="_")=>r?r.split(i).map(o=>o.toLowerCase()==="id"?o.toUpperCase():o.charAt(0).toUpperCase()+o.substring(1)).join(" "):"",n=/(?:^|[\s-:'"])\w/g;return{capitalize:r=>r?r.replace(n,i=>i.toUpperCase()):"",convertKeyToTitle:e}}const Ze=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,Qe=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const n=e.match(Ze);if(!n)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return n.shift(),n},Xe=e=>e==="*"||e==="x"||e==="X",et=e=>{const n=parseInt(e,10);return isNaN(n)?e:n},On=(e,n)=>typeof e!=typeof n?[String(e),String(n)]:[e,n],Mn=(e,n)=>{if(Xe(e)||Xe(n))return 0;const[r,i]=On(et(e),et(n));return r>i?1:r<i?-1:0},tt=(e,n)=>{for(let r=0;r<Math.max(e.length,n.length);r++){const i=Mn(e[r]||"0",n[r]||"0");if(i!==0)return i}return 0},Fn=(e,n)=>{const r=Qe(e),i=Qe(n),o=r.pop(),l=i.pop(),a=tt(r,i);return a!==0?a:o&&l?tt(o.split("."),l.split(".")):o||l?o?-1:1:0},nt=(e,n,r)=>{Ln(r);const i=Fn(e,n);return rt[r].includes(i)},rt={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},it=Object.keys(rt),Ln=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(it.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${it.join("|")}`)},qn=e=>typeof e=="string"&&/^[v\d]/.test(e)&&Ze.test(e);function Dn(e){const{gatewayInfo:n,supportedRange:r}=e;if(!n)return!0;const{edition:i,version:o}=n;if(!qn(o))return console.error("Invalid version"),!1;const l=r[i];if(!l)return!1;const[a,s]=l;return!(a&&nt(o,a,"<")||s&&nt(o,s,">"))}function $n(e){const n=t.ref(0),r=t.ref(0),i=t.ref(!1);return t.watch(e,o=>{o&&!i.value&&(n.value=o.offsetWidth,r.value=o.scrollWidth,i.value=!0)}),{isTruncated:t.computed(()=>n.value<r.value)}}const ne={useAxios:Ee,useDebouncedFilter:_n,useDeleteUrlBuilder:vn,useErrors:Bn,useExternalLinkCreator:Tn,useFetcher:Vn,useFetchUrlBuilder:Ge,useHelpers:Je,useStringHelpers:jn,useI18n:_e,useGatewayFeatureSupported:Dn,useTruncationDetector:$n},ie=(e,n)=>{const r=e.__vccOpts||e;for(const[i,o]of n)r[i]=o;return r},Kn="#0044f4",Rn="#3a3f51",Un="#afb7c5",Pn={class:"json-config"},zn={key:0,class:"json-endpoint"},Hn=t.defineComponent({__name:"JsonCodeBlock",props:{config:{type:Object,required:!1,default:()=>({})},fetcherUrl:{type:String,required:!1,default:""},jsonRecord:{type:Object,required:!0},requestMethod:{type:String,required:!1,default:""}},setup(e){t.useCssVars(o=>({"2d178975":`${i.value}ch`}));const n=e,r=t.computed(()=>n.jsonRecord),i=t.computed(()=>{var o;if(!n.fetcherUrl)return 0;const l=(o=n.fetcherUrl)==null?void 0:o.split("/");return l.length<2?0:41+(n.requestMethod==="post"?l[l.length-1]:l[l.length-2]).length});return(o,l)=>{var a;const s=t.resolveComponent("KBadge"),c=t.resolveComponent("KCodeBlock");return t.openBlock(),t.createElementBlock("div",Pn,[n.fetcherUrl&&(a=n.config)!=null&&a.jsonYamlFormsEnabled?(t.openBlock(),t.createElementBlock("div",zn,[t.createVNode(s,{appearance:n.requestMethod},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(n.requestMethod),1)]),_:1},8,["appearance"]),t.createVNode(c,{id:"json-endpoint-codeblock",code:n.fetcherUrl,"is-single-line":"",language:"json",theme:"dark"},null,8,["code"])])):t.createCommentVNode("",!0),n.jsonRecord?(t.openBlock(),t.createBlock(c,{key:1,id:"json-codeblock",class:t.normalizeClass({"json-content":n.fetcherUrl}),code:JSON.stringify(r.value,null,2),language:"json",theme:"dark"},null,8,["class","code"])):t.createCommentVNode("",!0)])}}});/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function ot(e){return typeof e>"u"||e===null}function Yn(e){return typeof e=="object"&&e!==null}function Wn(e){return Array.isArray(e)?e:ot(e)?[]:[e]}function Jn(e,n){var r,i,o,l;if(n)for(l=Object.keys(n),r=0,i=l.length;r<i;r+=1)o=l[r],e[o]=n[o];return e}function Gn(e,n){var r="",i;for(i=0;i<n;i+=1)r+=e;return r}function Zn(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Qn=ot,Xn=Yn,er=Wn,tr=Gn,nr=Zn,rr=Jn,L={isNothing:Qn,isObject:Xn,toArray:er,repeat:tr,isNegativeZero:nr,extend:rr};function at(e,n){var r="",i=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!n&&e.mark.snippet&&(r+=`
|
|
1
|
+
(function(Y,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("@kong-ui-public/i18n"),require("axios"),require("@kong/kongponents"),require("vue-router")):typeof define=="function"&&define.amd?define(["exports","vue","@kong-ui-public/i18n","axios","@kong/kongponents","vue-router"],t):(Y=typeof globalThis<"u"?globalThis:Y||self,t(Y["kong-ui-public-entities-snis"]={},Y.Vue,Y["kong-ui-public-i18n"],Y.axios,Y.Kongponents,Y.VueRouter))})(this,function(Y,t,be,ze,Va,He){"use strict";const un={actions:{create:"New SNI",copy_id:"Copy ID",copy_json:"Copy JSON",edit:"Edit",delete:"Delete",clear:"Clear",loading:"Loading..."},search:{placeholder:"Filter by exact name or ID",no_results:"No results found"},snis:{title:"SNIs",list:{toolbar_actions:{new:"New SNI"},table_headers:{name:"Name",id:"ID",certificate_id:"SSL Certificate ID",tags:"Tags"},empty_state:{title:"Configure a New SNI",description:"SNIs are used to map hostnames to a certificate."}}},form:{sections:{general:{title:"General Information",description:"General information will help identify and manage this SNI."},certificate:{title:"Certificate",description:"Map an existing Certificate object to hostnames"}},fields:{name:{label:"Name",placeholder:"Enter a unique name for this SNI"},tags:{label:"Tags",placeholder:"Enter a list of tags separated by comma",help:"e.g. tag1, tag2, tag3",tooltip:"An optional set of strings for grouping and filtering, separated by commas."},certificate_id:{label:"SSL Certificate ID",placeholder:"Enter or select a Certificate ID",footer:"Search by exact ID to find certificates not included in the list"}}},delete:{title:"Delete an SNI",description:"This action cannot be reversed so make sure to check the SNI usage before deleting."},errors:{delete:"The SNI could not be deleted at this time.",general:"SNIs could not be retrieved",certificates:{fetch:"Could not fetch available certificates",invalid:"Please select a valid certificate ID"},copy:"Failed to copy to clipboard"},copy:{success:"Copied {val} to clipboard",success_brief:"Successfully copied to clipboard"}};function fn(){const e=be.createI18n("en-us",un);return{i18n:e,i18nT:be.i18nTComponent(e)}}const Ye={useI18n:fn},ue={list:{konnect:{all:"/api/runtime_groups/{controlPlaneId}/snis"},kongManager:{all:"/{workspace}/snis"}},form:{konnect:{create:"/api/runtime_groups/{controlPlaneId}/snis",edit:"/api/runtime_groups/{controlPlaneId}/snis/{id}",validate:"/api/runtime_groups/{controlPlaneId}/v1/schemas/json/sni/validate",certificates:"/api/runtime_groups/{controlPlaneId}/certificates"},kongManager:{create:"/{workspace}/snis",edit:"/{workspace}/snis/{id}",validate:"/{workspace}/schemas/snis/validate",certificates:"/{workspace}/certificates"}}};var We=(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))(We||{}),ke=(e=>(e.Edit="edit",e.Create="create",e))(ke||{}),te=(e=>(e[e.Loading=0]="Loading",e[e.Idle=1]="Idle",e[e.NoResults=2]="NoResults",e[e.Error=3]="Error",e))(te||{});function mn(){return{getAxiosInstance:(e={})=>{try{const n=t.inject("get-axios-instance",void 0);return typeof n=="function"?n(e):ze.create({withCredentials:!0,timeout:3e4,...e})}catch(n){return console.warn("getAxiosInstance:",n.message||n),ze.create({withCredentials:!0,timeout:3e4,...e})}},getTraceIdFromError:e=>{var n;return((n=e==null?void 0:e.response)==null?void 0:n.headers["x-datadog-trace-id"])||""}}}function hn(){return{debounce:(e,n)=>{let r;return(...i)=>{clearTimeout(r),r=window==null?void 0:window.setTimeout(()=>{e(...i)},n)}}}}const Ae="khcp-user-table-preferences",gn={pageSize:30,sortColumnKey:void 0,sortColumnOrder:void 0};function yn(){const e=r=>{if(typeof r=="string")try{return JSON.parse(r)}catch(i){console.error("useTablePreferences(tryParseJson)",i);return}},n=()=>{const r=e(localStorage.getItem(Ae));return!r||!Object.keys(r).length?new Map:new Map(Object.entries(r))};return{setTablePreferences:(r,i)=>{try{const o=n();o.set(r,i),localStorage.setItem(Ae,JSON.stringify(Object.fromEntries(o.entries())))}catch(o){console.error("useTablePreferences(setTablePreferences)",o)}},getTablePreferences:r=>{const i=n();return(i==null?void 0:i.get(r))||void 0||gn},deleteAllTablePreferences:()=>{localStorage.removeItem(Ae)}}}function Ee(e={}){const{getAxiosInstance:n}=mn();return{axiosInstance:n(e)}}const bn={actions:{copyId:"Copy ID",copied_id:'Copied "{id}" to the clipboard',copyToClipboard:"Copied successfully!",copyToClipboardFailed:"Failed to copy to the clipboard"}},kn={message:"Are you sure you want to delete this {entityType}?",messageWithName:"Are you sure you want to delete this {entityType} {entityName}?"},wn={actions:{viewConfiguration:"View Configuration",save:"Save",cancel:"Cancel",back:"Back"},configuration:{title:"Configuration",message:"Export configurations for core Kong Gateway objects, like services, routes, and plugins, to either YAML or JSON. This allows for straightforward importing into APIOps tools like decK with YAML, or Insomnia and cURL with JSON.",yaml:"YAML",json:"JSON"},errors:{edit:"The entity could not be edited at this time."}},Cn={emptyState:{noSearchResultsTitle:"No results found",noSearchResultsMessage:"Please adjust the criteria and try again.",noSearchResultsCtaText:"Clear"}},Sn={title:"Configuration",actions:{copy:"Copy JSON"},sections:{advanced:"Advanced",plugin:"Plugin Specific Configuration"},commonFields:{id_label:"ID",name_label:"Name",enabled_label:"Enabled",enabled_tooltip:"Enabled is FTW",updated_at_label:"Last Updated",created_at_label:"Created",tags_label:"Tags",link:"Link"},statusBadge:{enabledLabel:"Enabled",disabledLabel:"Disabled"},copy:{tooltip:"Copy {label}",success:"Copied!"},errors:{load:"The entity configuration data could not be loaded at this time.",copy:"Failed to copy to clipboard"},general:{entryTitle:"Entry {index}",structuredFormat:"Structured"}},xn={filterButtonText:"Filter",fieldLabel:"Filter by:",inputPlaceholder:"Enter a value",selectPlaceholder:"Select an item",applyButtonText:"Apply",clearButtonText:"Clear",clearAllButtonText:"Clear all filters"},Nn={errors:{fetch:"Could not fetch available items",invalid:"Please select a valid value"}},In={unexpected:"An unexpected error has occurred",dataKeyUndefined:'The data key "{dataKey}" does not exist in the response.'},An={enable:{title:"Enable {entityType}",message:"Are you sure you want to enable the {entityType} {entityName}?",confirmText:"Yes, enable"},disable:{title:"Disable {entityType}",message:"Are you sure you want to disable the {entityType} {entityName}?",confirmText:"Yes, disable"}},En={global:bn,deleteModal:kn,baseForm:wn,baseTable:Cn,baseConfigCard:Sn,filter:xn,debouncedFilter:Nn,errors:In,toggleModal:An};function _e(){const e=be.createI18n("en-us",En);return{i18n:e,i18nT:be.i18nTComponent(e)}}function Je(){const e=(r,i)=>(i==null?void 0:i[r])??void 0,n=(r,i)=>{if(r.length!==i.length)return!1;const o=new Set([...r,...i]);for(const l of o){const a=r.filter(c=>c===l).length,s=i.filter(c=>c===l).length;if(a!==s)return!1}return!0};return{getPropValue:e,objectsAreEqual:(r,i,o)=>{if(o){if(Object.keys(r).length===Object.keys(i).length)for(const l in r)if(Array.isArray(r[l])&&Array.isArray(i[l])){if(n(r[l],i[l]))continue;return!1}else{if(r[l]===i[l])continue;return!1}else return!1;return!0}try{return JSON.stringify(r)===JSON.stringify(i)}catch{return!1}},sortAlpha:r=>(i,o)=>{let l=i[r]===void 0||i[r]===null?"":i[r],a=o[r]===void 0||o[r]===null?"":o[r];return Array.isArray(i[r])&&(l=i[r][0]),Array.isArray(o[r])&&(a=o[r][0]),l.localeCompare(a)},isValidUuid:r=>r?/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(r):!1}}function _n(e,n,r,i={fetchedItemsKey:"data",searchKeys:["id"]}){r||(r="100");const{axiosInstance:o}=Ee({headers:e.requestHeaders}),{i18n:{t:l}}=_e(),{debounce:a}=hn(),s=a(async y=>{await P(y)},200),c=t.ref(!1),p=t.ref(""),u=t.ref(""),d=t.ref([]),m=t.ref([]),f=t.ref(void 0),w=t.unref(n);let g=`${e.apiBaseUrl}${w}`;e.app==="konnect"?g=g.replace(/{controlPlaneId}/gi,(e==null?void 0:e.controlPlaneId)||""):e.app==="kongManager"&&(g=g.replace(/\/{workspace}/gi,e!=null&&e.workspace?`/${e.workspace}`:""));const{isValidUuid:N}=Je(),E=async()=>{try{c.value=!0;const{data:y}=await o.get(`${g}?size=${r}`);y!=null&&y.next||(f.value=i.fetchedItemsKey in y?y[i.fetchedItemsKey]:[]),m.value=i.fetchedItemsKey in y?y[i.fetchedItemsKey]:[],d.value=m.value}catch{d.value=[],p.value=l("debouncedFilter.errors.fetch")}finally{c.value=!1}},C=t.ref(""),P=async y=>{var h,k,_;if(C.value!==y)if(C.value=y||"",f.value===void 0)try{if(c.value=!0,p.value="",u.value="",e.app==="konnect"){let B=g+"";y&&(B+=`/${y}`);const{data:x}=await o.get(`${B}?size=${r}`);i.fetchedItemsKey in x?d.value=x[i.fetchedItemsKey]:x!=null&&x.id?d.value=[x]:d.value=[]}else if(y){const B=[];N(y)&&i.searchKeys.includes("id")?B.push((async()=>{const{data:T}=await o.get(`${g}/${y}`);return[T[i.fetchedItemsKey]??T]})()):B.push(...i.searchKeys.filter(T=>T!=="id").map(async T=>{const{data:v}=await o.get(`${g}?${T}=${y}`);return v[i.fetchedItemsKey]}));const x=await Promise.all(B),$=new Set;d.value=[],(h=x==null?void 0:x.forEach)==null||h.call(x,T=>{var v;(v=T==null?void 0:T.forEach)==null||v.call(T,K=>{$.has(K.id)||($.add(K.id),d.value.push(K))})})}else d.value=m.value}catch(B){((k=B==null?void 0:B.response)==null?void 0:k.status)===404?u.value=l("debouncedFilter.errors.invalid"):(d.value=[],p.value=l("debouncedFilter.errors.fetch"))}finally{c.value=!1}else c.value=!0,u.value="",y?(d.value=(_=f.value)==null?void 0:_.filter(B=>{var x;let $=!1;for(const T of i.searchKeys){const v=typeof B[T]=="string"?(x=B[T])==null?void 0:x.toLowerCase():B[T];v!=null&&v.includes(y.toLowerCase())&&($=!0)}return $}),(!d.value||!d.value.length)&&(u.value=l("debouncedFilter.errors.invalid"))):d.value=f.value,c.value=!1};return{loading:c,error:p,validationError:u,results:d,allRecords:f,loadItems:E,debouncedQueryChange:s}}function vn(e,n){const r=t.unref(n),i=t.computed(()=>e.apiBaseUrl.startsWith("/")?new URL(`${window.location.origin}${r}`):new URL(r));return i.value.search="",o=>`${i.value.href}/${o}`}function Bn(){const{i18n:{t:e}}=_e();return{getMessageFromError:n=>{var r,i,o,l;if(!n)return e("errors.unexpected");if(((r=n==null?void 0:n.response)==null?void 0:r.status)===401)return console.warn("getMessageFromError: User auth token is expired or missing, returning empty message."),"";if((i=n==null?void 0:n.response)!=null&&i.data){if(n.response.data.detail)return n.response.data.detail;if((o=n.response.data.details)!=null&&o.length)return n.response.data.details.map(a=>{let s=e("errors.unexpected");return a.messages&&typeof a.messages=="object"&&a.messages.length&&(s=a.messages.join(", ")),a.field?`${a.field} - ${s}`:s}).join("; ");if(n.response.data.message){const{message:a}=n.response.data;return Array.isArray(a)?(l=a[0])!=null&&l.constraints?Object.values(a[0].constraints)[0]:a[0]:a}if(typeof n.response.data=="string")return n.response.data;if(typeof n.response.data=="object")return Object.keys(n.response.data).map(a=>`${a} ${n.response.data[a]}`).join(", ")}return n.message||e("errors.unexpected")}}}function Tn(e){const n=window.location.origin,r=n.endsWith("/")?n:`${n}/`;try{const i=e.join("/"),o=`${r}${i}`,l=e.some(a=>a.trim()==="");if(/^(https:\/\/(www\.)?([a-zA-Z0-9-]+\.){1,}[a-zA-Z]{2,}(:[0-9]+)?(\/[^\/]+)*)$|^(https|http):\/\/localhost(:[0-9]+)?(\/[^\/]+)*$/.test(o)&&!l&&new URL(o))return`${r}${i}`;throw new Error("Invalid url")}catch(i){return console.warn("Failed to build valid URL:",i),""}}function Ge(e,n){const r=t.ref(t.unref(e)),i=t.ref(t.unref(n)),o=t.computed(()=>!!(r.value.app==="konnect"||r.value.isExactMatch)),l=t.computed(()=>i.value.startsWith("/")?new URL(`${window.location.origin}${i.value}`):new URL(i.value));return a=>{const{page:s,pageSize:c,offset:p,sortColumnKey:u,sortColumnOrder:d,query:m}=a;try{let f=new URL(l.value.href);return o.value&&m?(f.search="",f=r.value.isExactMatch?new URL(`${f.href}/${m}/`):new URL(`${f.href}?filter[name][contains]=${m}`)):(o.value||new URLSearchParams(m).forEach((w,g)=>{f.searchParams.append(g,w)}),u&&f.searchParams.append("sort_by",u),d==="desc"&&f.searchParams.append("sort_desc","1"),f.searchParams.append("size",String(c))),p&&s!==1&&f.searchParams.append("offset",String(p)),f.href}catch(f){return console.error("RouteList(fetcher)",f),i.value}}}function Vn(e,n,r="data"){const i=t.unref(n),{axiosInstance:o}=Ee({headers:e.requestHeaders}),l=Ge(e,i),a=t.ref({status:te.Idle});return{fetcher:async s=>{try{a.value={status:te.Loading};let c=l(s);c.includes("filter[name]")&&(c=`${c}&page[size]=${s.pageSize}&page[number]=${s.page}`);const{data:p}=await o.get(c),u=r&&r.replace(/[^\w-_]/gi,"");let d;p[u]&&Array.isArray(p[u])?d=p[u]:Array.isArray(p)?d=p:d=Object.keys(p).length?[p]:[];const m={data:d,total:d.length,...p.offset?{pagination:{offset:p.offset}}:null};return a.value={status:te.Idle,response:m},m}catch(c){const p={data:[],total:0};return s.query&&c.response.status===404?(a.value={status:te.NoResults,response:p,error:c},p):(a.value={status:te.Error,response:p,error:c},p)}},fetcherState:a}}function jn(){const e=(r,i="_")=>r?r.split(i).map(o=>o.toLowerCase()==="id"?o.toUpperCase():o.charAt(0).toUpperCase()+o.substring(1)).join(" "):"",n=/(?:^|[\s-:'"])\w/g;return{capitalize:r=>r?r.replace(n,i=>i.toUpperCase()):"",convertKeyToTitle:e}}const Ze=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,Qe=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const n=e.match(Ze);if(!n)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return n.shift(),n},Xe=e=>e==="*"||e==="x"||e==="X",et=e=>{const n=parseInt(e,10);return isNaN(n)?e:n},On=(e,n)=>typeof e!=typeof n?[String(e),String(n)]:[e,n],Mn=(e,n)=>{if(Xe(e)||Xe(n))return 0;const[r,i]=On(et(e),et(n));return r>i?1:r<i?-1:0},tt=(e,n)=>{for(let r=0;r<Math.max(e.length,n.length);r++){const i=Mn(e[r]||"0",n[r]||"0");if(i!==0)return i}return 0},Fn=(e,n)=>{const r=Qe(e),i=Qe(n),o=r.pop(),l=i.pop(),a=tt(r,i);return a!==0?a:o&&l?tt(o.split("."),l.split(".")):o||l?o?-1:1:0},nt=(e,n,r)=>{Ln(r);const i=Fn(e,n);return rt[r].includes(i)},rt={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},it=Object.keys(rt),Ln=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(it.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${it.join("|")}`)},qn=e=>typeof e=="string"&&/^[v\d]/.test(e)&&Ze.test(e);function Dn(e){const{gatewayInfo:n,supportedRange:r}=e;if(!n)return!0;const{edition:i,version:o}=n;if(!qn(o))return console.error("Invalid version"),!1;const l=r[i];if(!l)return!1;const[a,s]=l;return!(a&&nt(o,a,"<")||s&&nt(o,s,">"))}function $n(e){const n=t.ref(0),r=t.ref(0),i=t.ref(!1);return t.watch(e,o=>{o&&!i.value&&(n.value=o.offsetWidth,r.value=o.scrollWidth,i.value=!0)}),{isTruncated:t.computed(()=>n.value<r.value)}}const ne={useAxios:Ee,useDebouncedFilter:_n,useDeleteUrlBuilder:vn,useErrors:Bn,useExternalLinkCreator:Tn,useFetcher:Vn,useFetchUrlBuilder:Ge,useHelpers:Je,useStringHelpers:jn,useI18n:_e,useGatewayFeatureSupported:Dn,useTruncationDetector:$n},ie=(e,n)=>{const r=e.__vccOpts||e;for(const[i,o]of n)r[i]=o;return r},Kn="#0044f4",Rn="#3a3f51",Un="#afb7c5",Pn={class:"json-config"},zn={key:0,class:"json-endpoint"},Hn=t.defineComponent({__name:"JsonCodeBlock",props:{config:{type:Object,required:!1,default:()=>({})},fetcherUrl:{type:String,required:!1,default:""},jsonRecord:{type:Object,required:!0},requestMethod:{type:String,required:!1,default:""}},setup(e){t.useCssVars(o=>({"2d178975":`${i.value}ch`}));const n=e,r=t.computed(()=>n.jsonRecord),i=t.computed(()=>{var o;if(!n.fetcherUrl)return 0;const l=(o=n.fetcherUrl)==null?void 0:o.split("/");return l.length<2?0:41+(n.requestMethod==="post"?l[l.length-1]:l[l.length-2]).length});return(o,l)=>{var a;const s=t.resolveComponent("KBadge"),c=t.resolveComponent("KCodeBlock");return t.openBlock(),t.createElementBlock("div",Pn,[n.fetcherUrl&&(a=n.config)!=null&&a.jsonYamlFormsEnabled?(t.openBlock(),t.createElementBlock("div",zn,[t.createVNode(s,{appearance:n.requestMethod},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(n.requestMethod),1)]),_:1},8,["appearance"]),t.createVNode(c,{id:"json-endpoint-codeblock",code:n.fetcherUrl,"is-single-line":"",language:"json",theme:"dark"},null,8,["code"])])):t.createCommentVNode("",!0),n.jsonRecord?(t.openBlock(),t.createBlock(c,{key:1,id:"json-codeblock",class:t.normalizeClass({"json-content":n.fetcherUrl}),code:JSON.stringify(r.value,null,2),language:"json",theme:"dark"},null,8,["class","code"])):t.createCommentVNode("",!0)])}}});/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function ot(e){return typeof e>"u"||e===null}function Yn(e){return typeof e=="object"&&e!==null}function Wn(e){return Array.isArray(e)?e:ot(e)?[]:[e]}function Jn(e,n){var r,i,o,l;if(n)for(l=Object.keys(n),r=0,i=l.length;r<i;r+=1)o=l[r],e[o]=n[o];return e}function Gn(e,n){var r="",i;for(i=0;i<n;i+=1)r+=e;return r}function Zn(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Qn=ot,Xn=Yn,er=Wn,tr=Gn,nr=Zn,rr=Jn,L={isNothing:Qn,isObject:Xn,toArray:er,repeat:tr,isNegativeZero:nr,extend:rr};function at(e,n){var r="",i=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!n&&e.mark.snippet&&(r+=`
|
|
2
2
|
|
|
3
3
|
`+e.mark.snippet),i+" "+r):i}function fe(e,n){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=n,this.message=at(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}fe.prototype=Object.create(Error.prototype),fe.prototype.constructor=fe,fe.prototype.toString=function(e){return this.name+": "+at(this,e)};var U=fe;function ve(e,n,r,i,o){var l="",a="",s=Math.floor(o/2)-1;return i-n>s&&(l=" ... ",n=i-s+l.length),r-i>s&&(a=" ...",r=i+s-a.length),{str:l+e.slice(n,r).replace(/\t/g,"→")+a,pos:i-n+l.length}}function Be(e,n){return L.repeat(" ",n-e.length)+e}function ir(e,n){if(n=Object.create(n||null),!e.buffer)return null;n.maxLength||(n.maxLength=79),typeof n.indent!="number"&&(n.indent=1),typeof n.linesBefore!="number"&&(n.linesBefore=3),typeof n.linesAfter!="number"&&(n.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],o=[],l,a=-1;l=r.exec(e.buffer);)o.push(l.index),i.push(l.index+l[0].length),e.position<=l.index&&a<0&&(a=i.length-2);a<0&&(a=i.length-1);var s="",c,p,u=Math.min(e.line+n.linesAfter,o.length).toString().length,d=n.maxLength-(n.indent+u+3);for(c=1;c<=n.linesBefore&&!(a-c<0);c++)p=ve(e.buffer,i[a-c],o[a-c],e.position-(i[a]-i[a-c]),d),s=L.repeat(" ",n.indent)+Be((e.line-c+1).toString(),u)+" | "+p.str+`
|
|
4
4
|
`+s;for(p=ve(e.buffer,i[a],o[a],e.position,d),s+=L.repeat(" ",n.indent)+Be((e.line+1).toString(),u)+" | "+p.str+`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kong-ui-public/entities-snis",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/entities-snis.umd.js",
|
|
6
6
|
"module": "./dist/entities-snis.es.js",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"errorLimit": "400KB"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@kong-ui-public/entities-shared": "^2.10.
|
|
53
|
+
"@kong-ui-public/entities-shared": "^2.10.5"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"dev": "cross-env USE_SANDBOX=true vite",
|