@kong-ui-public/entities-certificates 1.1.24 → 1.1.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as te, defineComponent as Be, inject as ul, computed as L, resolveComponent as ee, openBlock as _, createElementBlock as K, createElementVNode as
|
|
1
|
+
import { ref as te, defineComponent as Be, inject as ul, computed as L, resolveComponent as ee, openBlock as _, createElementBlock as K, createElementVNode as ne, normalizeClass as Qt, toDisplayString as U, createCommentVNode as Ie, createBlock as fe, resolveDynamicComponent as an, mergeProps as Po, withCtx as x, createVNode as P, withModifiers as yr, unref as k, watch as or, renderSlot as Ce, useCssVars as _f, useSlots as $o, createSlots as gr, createTextVNode as ue, normalizeProps as Nf, guardReactiveProps as Of, Fragment as Fe, renderList as Ue, onBeforeMount as cn, withDirectives as Ci, vShow as Bi, onMounted as Tf, onUnmounted as jf, reactive as Ni } from "vue";
|
|
2
2
|
import { useRouter as ai } from "vue-router";
|
|
3
3
|
import { createI18n as ln, i18nTComponent as fl } from "@kong-ui-public/i18n";
|
|
4
4
|
import Pf from "axios";
|
|
@@ -48,7 +48,7 @@ var _a;
|
|
|
48
48
|
} : function(S, C) {
|
|
49
49
|
return S[C];
|
|
50
50
|
}
|
|
51
|
-
}, p = Object.getPrototypeOf(Function), b = typeof process == "object" && process.env && process.env.REFLECT_METADATA_USE_MAP_POLYFILL === "true",
|
|
51
|
+
}, p = Object.getPrototypeOf(Function), b = typeof process == "object" && process.env && process.env.REFLECT_METADATA_USE_MAP_POLYFILL === "true", $ = !b && typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : Bf(), A = !b && typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : If(), d = !b && typeof WeakMap == "function" ? WeakMap : Ef(), g = new d();
|
|
52
52
|
function h(S, C, O, V) {
|
|
53
53
|
if (W(O)) {
|
|
54
54
|
if (!Z(S))
|
|
@@ -96,18 +96,18 @@ var _a;
|
|
|
96
96
|
return W(O) || (O = we(O)), ke(S, C, O);
|
|
97
97
|
}
|
|
98
98
|
e("hasOwnMetadata", B);
|
|
99
|
-
function
|
|
99
|
+
function I(S, C, O) {
|
|
100
100
|
if (!ie(C))
|
|
101
101
|
throw new TypeError();
|
|
102
102
|
return W(O) || (O = we(O)), Le(S, C, O);
|
|
103
103
|
}
|
|
104
|
-
e("getMetadata",
|
|
105
|
-
function
|
|
104
|
+
e("getMetadata", I);
|
|
105
|
+
function E(S, C, O) {
|
|
106
106
|
if (!ie(C))
|
|
107
107
|
throw new TypeError();
|
|
108
108
|
return W(O) || (O = we(O)), Ve(S, C, O);
|
|
109
109
|
}
|
|
110
|
-
e("getOwnMetadata",
|
|
110
|
+
e("getOwnMetadata", E);
|
|
111
111
|
function T(S, C) {
|
|
112
112
|
if (!ie(S))
|
|
113
113
|
throw new TypeError();
|
|
@@ -165,13 +165,13 @@ var _a;
|
|
|
165
165
|
if (W(V)) {
|
|
166
166
|
if (!O)
|
|
167
167
|
return;
|
|
168
|
-
V = new
|
|
168
|
+
V = new $(), g.set(S, V);
|
|
169
169
|
}
|
|
170
170
|
var Y = V.get(C);
|
|
171
171
|
if (W(Y)) {
|
|
172
172
|
if (!O)
|
|
173
173
|
return;
|
|
174
|
-
Y = new
|
|
174
|
+
Y = new $(), V.set(C, Y);
|
|
175
175
|
}
|
|
176
176
|
return Y;
|
|
177
177
|
}
|
|
@@ -352,7 +352,7 @@ var _a;
|
|
|
352
352
|
function dr(S) {
|
|
353
353
|
return !!S;
|
|
354
354
|
}
|
|
355
|
-
function
|
|
355
|
+
function se(S) {
|
|
356
356
|
return "" + S;
|
|
357
357
|
}
|
|
358
358
|
function we(S) {
|
|
@@ -361,7 +361,7 @@ var _a;
|
|
|
361
361
|
3
|
|
362
362
|
/* String */
|
|
363
363
|
);
|
|
364
|
-
return J(C) ? C :
|
|
364
|
+
return J(C) ? C : se(C);
|
|
365
365
|
}
|
|
366
366
|
function Z(S) {
|
|
367
367
|
return Array.isArray ? Array.isArray(S) : S instanceof Object ? S instanceof Array : Object.prototype.toString.call(S) === "[object Array]";
|
|
@@ -521,7 +521,7 @@ var _a;
|
|
|
521
521
|
/** @class */
|
|
522
522
|
function() {
|
|
523
523
|
function S() {
|
|
524
|
-
this._map = new
|
|
524
|
+
this._map = new $();
|
|
525
525
|
}
|
|
526
526
|
return Object.defineProperty(S.prototype, "size", {
|
|
527
527
|
get: function() {
|
|
@@ -655,7 +655,7 @@ var _a;
|
|
|
655
655
|
*
|
|
656
656
|
*/
|
|
657
657
|
const Rf = "[object ArrayBuffer]";
|
|
658
|
-
class
|
|
658
|
+
class M {
|
|
659
659
|
static isArrayBuffer(e) {
|
|
660
660
|
return Object.prototype.toString.call(e) === Rf;
|
|
661
661
|
}
|
|
@@ -681,7 +681,7 @@ class U {
|
|
|
681
681
|
return ArrayBuffer.isView(e) || e && this.isArrayBuffer(e.buffer);
|
|
682
682
|
}
|
|
683
683
|
static isEqual(e, t) {
|
|
684
|
-
const i =
|
|
684
|
+
const i = M.toUint8Array(e), n = M.toUint8Array(t);
|
|
685
685
|
if (i.length !== n.byteLength)
|
|
686
686
|
return !1;
|
|
687
687
|
for (let s = 0; s < i.length; s++)
|
|
@@ -713,7 +713,7 @@ class Na {
|
|
|
713
713
|
return i.buffer;
|
|
714
714
|
}
|
|
715
715
|
static toString(e) {
|
|
716
|
-
const t =
|
|
716
|
+
const t = M.toUint8Array(e);
|
|
717
717
|
let i = "";
|
|
718
718
|
for (let s = 0; s < t.length; s++)
|
|
719
719
|
i += String.fromCharCode(t[s]);
|
|
@@ -722,7 +722,7 @@ class Na {
|
|
|
722
722
|
}
|
|
723
723
|
class ut {
|
|
724
724
|
static toString(e, t = !1) {
|
|
725
|
-
const i =
|
|
725
|
+
const i = M.toArrayBuffer(e), n = new DataView(i);
|
|
726
726
|
let s = "";
|
|
727
727
|
for (let a = 0; a < i.byteLength; a += 2) {
|
|
728
728
|
const u = n.getUint16(a, t);
|
|
@@ -748,7 +748,7 @@ class H {
|
|
|
748
748
|
return typeof e === ss && Mf.test(e);
|
|
749
749
|
}
|
|
750
750
|
static ToString(e, t = "utf8") {
|
|
751
|
-
const i =
|
|
751
|
+
const i = M.toUint8Array(e);
|
|
752
752
|
switch (t.toLowerCase()) {
|
|
753
753
|
case "utf8":
|
|
754
754
|
return this.ToUtf8String(i);
|
|
@@ -793,7 +793,7 @@ class H {
|
|
|
793
793
|
}
|
|
794
794
|
}
|
|
795
795
|
static ToBase64(e) {
|
|
796
|
-
const t =
|
|
796
|
+
const t = M.toUint8Array(e);
|
|
797
797
|
if (typeof btoa < "u") {
|
|
798
798
|
const i = this.ToString(t, "binary");
|
|
799
799
|
return btoa(i);
|
|
@@ -858,14 +858,14 @@ class H {
|
|
|
858
858
|
return i.buffer;
|
|
859
859
|
}
|
|
860
860
|
static ToBinary(e) {
|
|
861
|
-
const t =
|
|
861
|
+
const t = M.toUint8Array(e);
|
|
862
862
|
let i = "";
|
|
863
863
|
for (let n = 0; n < t.length; n++)
|
|
864
864
|
i += String.fromCharCode(t[n]);
|
|
865
865
|
return i;
|
|
866
866
|
}
|
|
867
867
|
static ToHex(e) {
|
|
868
|
-
const t =
|
|
868
|
+
const t = M.toUint8Array(e);
|
|
869
869
|
let i = "";
|
|
870
870
|
const n = t.length;
|
|
871
871
|
for (let s = 0; s < n; s++) {
|
|
@@ -1095,7 +1095,7 @@ function ht(r) {
|
|
|
1095
1095
|
var n;
|
|
1096
1096
|
super(...i);
|
|
1097
1097
|
const s = i[0] || {};
|
|
1098
|
-
this.isHexOnly = (n = s.isHexOnly) !== null && n !== void 0 ? n : !1, this.valueHexView = s.valueHex ?
|
|
1098
|
+
this.isHexOnly = (n = s.isHexOnly) !== null && n !== void 0 ? n : !1, this.valueHexView = s.valueHex ? M.toUint8Array(s.valueHex) : fn;
|
|
1099
1099
|
}
|
|
1100
1100
|
get valueHex() {
|
|
1101
1101
|
return this.valueHexView.slice().buffer;
|
|
@@ -1124,7 +1124,7 @@ function ht(r) {
|
|
|
1124
1124
|
}
|
|
1125
1125
|
class ar {
|
|
1126
1126
|
constructor({ blockLength: e = 0, error: t = Ke, warnings: i = [], valueBeforeDecode: n = fn } = {}) {
|
|
1127
|
-
this.blockLength = e, this.error = t, this.warnings = i, this.valueBeforeDecodeView =
|
|
1127
|
+
this.blockLength = e, this.error = t, this.warnings = i, this.valueBeforeDecodeView = M.toUint8Array(n);
|
|
1128
1128
|
}
|
|
1129
1129
|
static blockName() {
|
|
1130
1130
|
return this.NAME;
|
|
@@ -1158,7 +1158,7 @@ De.NAME = "valueBlock";
|
|
|
1158
1158
|
class gl extends ht(ar) {
|
|
1159
1159
|
constructor({ idBlock: e = {} } = {}) {
|
|
1160
1160
|
var t, i, n, s;
|
|
1161
|
-
super(), e ? (this.isHexOnly = (t = e.isHexOnly) !== null && t !== void 0 ? t : !1, this.valueHexView = e.valueHex ?
|
|
1161
|
+
super(), e ? (this.isHexOnly = (t = e.isHexOnly) !== null && t !== void 0 ? t : !1, this.valueHexView = e.valueHex ? M.toUint8Array(e.valueHex) : fn, this.tagClass = (i = e.tagClass) !== null && i !== void 0 ? i : -1, this.tagNumber = (n = e.tagNumber) !== null && n !== void 0 ? n : -1, this.isConstructed = (s = e.isConstructed) !== null && s !== void 0 ? s : !1) : (this.tagClass = -1, this.tagNumber = -1, this.isConstructed = !1);
|
|
1162
1162
|
}
|
|
1163
1163
|
toBER(e = !1) {
|
|
1164
1164
|
let t = 0;
|
|
@@ -1205,7 +1205,7 @@ class gl extends ht(ar) {
|
|
|
1205
1205
|
return i.buffer;
|
|
1206
1206
|
}
|
|
1207
1207
|
fromBER(e, t, i) {
|
|
1208
|
-
const n =
|
|
1208
|
+
const n = M.toUint8Array(e);
|
|
1209
1209
|
if (!_t(this, n, t, i))
|
|
1210
1210
|
return -1;
|
|
1211
1211
|
const s = n.subarray(t, t + i);
|
|
@@ -1238,16 +1238,16 @@ class gl extends ht(ar) {
|
|
|
1238
1238
|
return this.error = "End of input reached before message was fully decoded", -1;
|
|
1239
1239
|
if (c === p) {
|
|
1240
1240
|
p += 255;
|
|
1241
|
-
const
|
|
1241
|
+
const $ = new Uint8Array(p);
|
|
1242
1242
|
for (let A = 0; A < f.length; A++)
|
|
1243
|
-
|
|
1243
|
+
$[A] = f[A];
|
|
1244
1244
|
f = this.valueHexView = new Uint8Array(p);
|
|
1245
1245
|
}
|
|
1246
1246
|
}
|
|
1247
1247
|
this.blockLength = c + 1, f[c - 1] = s[c] & 127;
|
|
1248
1248
|
const b = new Uint8Array(c);
|
|
1249
|
-
for (let
|
|
1250
|
-
b[
|
|
1249
|
+
for (let $ = 0; $ < c; $++)
|
|
1250
|
+
b[$] = f[$];
|
|
1251
1251
|
f = this.valueHexView = new Uint8Array(c), f.set(b), this.blockLength <= 9 ? this.tagNumber = vr(f, 7) : (this.isHexOnly = !0, this.warnings.push("Tag too long, represented as hex-coded"));
|
|
1252
1252
|
}
|
|
1253
1253
|
if (this.tagClass === 1 && this.isConstructed)
|
|
@@ -1285,7 +1285,7 @@ class vl extends ar {
|
|
|
1285
1285
|
super(), this.isIndefiniteForm = (t = e.isIndefiniteForm) !== null && t !== void 0 ? t : !1, this.longFormUsed = (i = e.longFormUsed) !== null && i !== void 0 ? i : !1, this.length = (n = e.length) !== null && n !== void 0 ? n : 0;
|
|
1286
1286
|
}
|
|
1287
1287
|
fromBER(e, t, i) {
|
|
1288
|
-
const n =
|
|
1288
|
+
const n = M.toUint8Array(e);
|
|
1289
1289
|
if (!_t(this, n, t, i))
|
|
1290
1290
|
return -1;
|
|
1291
1291
|
const s = n.subarray(t, t + i);
|
|
@@ -1593,7 +1593,7 @@ function hr(r) {
|
|
|
1593
1593
|
result: e
|
|
1594
1594
|
};
|
|
1595
1595
|
}
|
|
1596
|
-
return Tr(
|
|
1596
|
+
return Tr(M.toUint8Array(r).slice(), 0, r.byteLength);
|
|
1597
1597
|
}
|
|
1598
1598
|
function Qf(r, e) {
|
|
1599
1599
|
return r ? 1 : e;
|
|
@@ -1603,7 +1603,7 @@ class Rt extends De {
|
|
|
1603
1603
|
super(i), this.value = e, this.isIndefiniteForm = t;
|
|
1604
1604
|
}
|
|
1605
1605
|
fromBER(e, t, i) {
|
|
1606
|
-
const n =
|
|
1606
|
+
const n = M.toUint8Array(e);
|
|
1607
1607
|
if (!_t(this, n, t, i))
|
|
1608
1608
|
return -1;
|
|
1609
1609
|
if (this.valueBeforeDecodeView = n.subarray(t, t + i), this.valueBeforeDecodeView.length === 0)
|
|
@@ -1704,7 +1704,7 @@ D.Null = xl;
|
|
|
1704
1704
|
er.NAME = "NULL";
|
|
1705
1705
|
class Cl extends ht(De) {
|
|
1706
1706
|
constructor({ value: e, ...t } = {}) {
|
|
1707
|
-
super(t), t.valueHex ? this.valueHexView =
|
|
1707
|
+
super(t), t.valueHex ? this.valueHexView = M.toUint8Array(t.valueHex) : this.valueHexView = new Uint8Array(1), e && (this.value = e);
|
|
1708
1708
|
}
|
|
1709
1709
|
get value() {
|
|
1710
1710
|
for (const e of this.valueHexView)
|
|
@@ -1716,7 +1716,7 @@ class Cl extends ht(De) {
|
|
|
1716
1716
|
this.valueHexView[0] = e ? 255 : 0;
|
|
1717
1717
|
}
|
|
1718
1718
|
fromBER(e, t, i) {
|
|
1719
|
-
const n =
|
|
1719
|
+
const n = M.toUint8Array(e);
|
|
1720
1720
|
return _t(this, n, t, i) ? (this.valueHexView = n.subarray(t, t + i), i > 1 && this.warnings.push("Boolean value encoded in more then 1 octet"), this.isHexOnly = !0, pl.call(this), this.blockLength = i, t + i) : -1;
|
|
1721
1721
|
}
|
|
1722
1722
|
toBER() {
|
|
@@ -1822,7 +1822,7 @@ let Gt = class _l extends Te {
|
|
|
1822
1822
|
const e = [];
|
|
1823
1823
|
for (const t of this.valueBlock.value)
|
|
1824
1824
|
t instanceof _l && e.push(t.valueBlock.valueHexView);
|
|
1825
|
-
return
|
|
1825
|
+
return M.concat(e);
|
|
1826
1826
|
}
|
|
1827
1827
|
};
|
|
1828
1828
|
El = Gt;
|
|
@@ -1855,7 +1855,7 @@ class Nl extends ht(Rt) {
|
|
|
1855
1855
|
}
|
|
1856
1856
|
return n;
|
|
1857
1857
|
}
|
|
1858
|
-
const s =
|
|
1858
|
+
const s = M.toUint8Array(e);
|
|
1859
1859
|
if (!_t(this, s, t, i))
|
|
1860
1860
|
return -1;
|
|
1861
1861
|
const a = s.subarray(t, t + i);
|
|
@@ -1934,7 +1934,7 @@ function Xf(r, e) {
|
|
|
1934
1934
|
let f = 0;
|
|
1935
1935
|
const p = c < a ? a : c;
|
|
1936
1936
|
let b = 0;
|
|
1937
|
-
for (let
|
|
1937
|
+
for (let $ = p; $ >= 0; $--, b++) {
|
|
1938
1938
|
switch (!0) {
|
|
1939
1939
|
case b < u.length:
|
|
1940
1940
|
f = s[a - b] + u[c - b] + t[0];
|
|
@@ -2083,7 +2083,7 @@ class ft extends Te {
|
|
|
2083
2083
|
if (t < 0) {
|
|
2084
2084
|
const u = new Uint8Array(s.length + (s[0] & 128 ? 1 : 0));
|
|
2085
2085
|
u[0] |= 128;
|
|
2086
|
-
const f = BigInt(`0x${H.ToHex(u)}`) + t, p =
|
|
2086
|
+
const f = BigInt(`0x${H.ToHex(u)}`) + t, p = M.toUint8Array(H.FromHex(f.toString(16)));
|
|
2087
2087
|
p[0] |= 128, i.write(p);
|
|
2088
2088
|
} else
|
|
2089
2089
|
s[0] & 128 && i.write(new Uint8Array([0])), i.write(s);
|
|
@@ -2123,7 +2123,7 @@ class ms extends ht(De) {
|
|
|
2123
2123
|
fromBER(e, t, i) {
|
|
2124
2124
|
if (!i)
|
|
2125
2125
|
return t;
|
|
2126
|
-
const n =
|
|
2126
|
+
const n = M.toUint8Array(e);
|
|
2127
2127
|
if (!_t(this, n, t, i))
|
|
2128
2128
|
return -1;
|
|
2129
2129
|
const s = n.subarray(t, t + i);
|
|
@@ -2298,7 +2298,7 @@ class bs extends ht(ar) {
|
|
|
2298
2298
|
fromBER(e, t, i) {
|
|
2299
2299
|
if (i === 0)
|
|
2300
2300
|
return t;
|
|
2301
|
-
const n =
|
|
2301
|
+
const n = M.toUint8Array(e);
|
|
2302
2302
|
if (!_t(this, n, t, i))
|
|
2303
2303
|
return -1;
|
|
2304
2304
|
const s = n.subarray(t, t + i);
|
|
@@ -2462,7 +2462,7 @@ class Xe extends Vo {
|
|
|
2462
2462
|
super(e, Hl);
|
|
2463
2463
|
}
|
|
2464
2464
|
fromBuffer(e) {
|
|
2465
|
-
this.valueBlock.value = String.fromCharCode.apply(null,
|
|
2465
|
+
this.valueBlock.value = String.fromCharCode.apply(null, M.toUint8Array(e));
|
|
2466
2466
|
}
|
|
2467
2467
|
fromString(e) {
|
|
2468
2468
|
const t = e.length, i = this.valueBlock.valueHexView = new Uint8Array(t);
|
|
@@ -2474,7 +2474,7 @@ class Xe extends Vo {
|
|
|
2474
2474
|
Xe.NAME = "SIMPLE STRING";
|
|
2475
2475
|
class Kl extends Xe {
|
|
2476
2476
|
fromBuffer(e) {
|
|
2477
|
-
this.valueBlock.valueHexView =
|
|
2477
|
+
this.valueBlock.valueHexView = M.toUint8Array(e);
|
|
2478
2478
|
try {
|
|
2479
2479
|
this.valueBlock.value = H.ToUtf8String(e);
|
|
2480
2480
|
} catch (t) {
|
|
@@ -2497,7 +2497,7 @@ D.Utf8String = Fl;
|
|
|
2497
2497
|
Nt.NAME = "UTF8String";
|
|
2498
2498
|
class ql extends Xe {
|
|
2499
2499
|
fromBuffer(e) {
|
|
2500
|
-
this.valueBlock.value = H.ToUtf16String(e), this.valueBlock.valueHexView =
|
|
2500
|
+
this.valueBlock.value = H.ToUtf16String(e), this.valueBlock.valueHexView = M.toUint8Array(e);
|
|
2501
2501
|
}
|
|
2502
2502
|
fromString(e) {
|
|
2503
2503
|
this.valueBlock.value = e, this.valueBlock.valueHexView = new Uint8Array(H.FromUtf16String(e));
|
|
@@ -2635,7 +2635,7 @@ class ui extends li {
|
|
|
2635
2635
|
t && (this.fromDate(t), this.valueBlock.valueHexView = new Uint8Array(this.toBuffer())), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 23;
|
|
2636
2636
|
}
|
|
2637
2637
|
fromBuffer(e) {
|
|
2638
|
-
this.fromString(String.fromCharCode.apply(null,
|
|
2638
|
+
this.fromString(String.fromCharCode.apply(null, M.toUint8Array(e)));
|
|
2639
2639
|
}
|
|
2640
2640
|
toBuffer() {
|
|
2641
2641
|
const e = this.toString(), t = new ArrayBuffer(e.length), i = new Uint8Array(t);
|
|
@@ -2711,9 +2711,9 @@ class Cn extends ui {
|
|
|
2711
2711
|
if (i.indexOf("-") !== -1)
|
|
2712
2712
|
throw new Error("Wrong input string for conversion");
|
|
2713
2713
|
} else {
|
|
2714
|
-
let b = 1,
|
|
2715
|
-
if (
|
|
2716
|
-
if (A = i.substring(
|
|
2714
|
+
let b = 1, $ = i.indexOf("+"), A = "";
|
|
2715
|
+
if ($ === -1 && ($ = i.indexOf("-"), b = -1), $ !== -1) {
|
|
2716
|
+
if (A = i.substring($ + 1), i = i.substring(0, $), A.length !== 2 && A.length !== 4)
|
|
2717
2717
|
throw new Error("Wrong input string for conversion");
|
|
2718
2718
|
let d = parseInt(A.substring(0, 2), 10);
|
|
2719
2719
|
if (isNaN(d.valueOf()))
|
|
@@ -2869,17 +2869,17 @@ class Ti extends tr {
|
|
|
2869
2869
|
}
|
|
2870
2870
|
class td {
|
|
2871
2871
|
constructor({ data: e = fn } = {}) {
|
|
2872
|
-
this.dataView =
|
|
2872
|
+
this.dataView = M.toUint8Array(e);
|
|
2873
2873
|
}
|
|
2874
2874
|
get data() {
|
|
2875
2875
|
return this.dataView.slice().buffer;
|
|
2876
2876
|
}
|
|
2877
2877
|
set data(e) {
|
|
2878
|
-
this.dataView =
|
|
2878
|
+
this.dataView = M.toUint8Array(e);
|
|
2879
2879
|
}
|
|
2880
2880
|
fromBER(e, t, i) {
|
|
2881
2881
|
const n = t + i;
|
|
2882
|
-
return this.dataView =
|
|
2882
|
+
return this.dataView = M.toUint8Array(e).subarray(t, n), n;
|
|
2883
2883
|
}
|
|
2884
2884
|
toBER(e) {
|
|
2885
2885
|
return this.dataView.slice().buffer;
|
|
@@ -3090,7 +3090,7 @@ function rd(r, e) {
|
|
|
3090
3090
|
verified: !1,
|
|
3091
3091
|
result: { error: "Wrong ASN.1 schema type" }
|
|
3092
3092
|
};
|
|
3093
|
-
const t = Tr(
|
|
3093
|
+
const t = Tr(M.toUint8Array(r));
|
|
3094
3094
|
return t.offset === -1 ? {
|
|
3095
3095
|
verified: !1,
|
|
3096
3096
|
result: t.result
|
|
@@ -3156,8 +3156,8 @@ class Bn {
|
|
|
3156
3156
|
if (this.unusedBits = 0, this.value = new ArrayBuffer(0), e)
|
|
3157
3157
|
if (typeof e == "number")
|
|
3158
3158
|
this.fromNumber(e);
|
|
3159
|
-
else if (
|
|
3160
|
-
this.unusedBits = t, this.value =
|
|
3159
|
+
else if (M.isBufferSource(e))
|
|
3160
|
+
this.unusedBits = t, this.value = M.toArrayBuffer(e);
|
|
3161
3161
|
else
|
|
3162
3162
|
throw TypeError("Unsupported type of 'params' argument for BitString");
|
|
3163
3163
|
}
|
|
@@ -3193,7 +3193,7 @@ class Bn {
|
|
|
3193
3193
|
}
|
|
3194
3194
|
class de {
|
|
3195
3195
|
constructor(e) {
|
|
3196
|
-
typeof e == "number" ? this.buffer = new ArrayBuffer(e) :
|
|
3196
|
+
typeof e == "number" ? this.buffer = new ArrayBuffer(e) : M.isBufferSource(e) ? this.buffer = M.toArrayBuffer(e) : Array.isArray(e) ? this.buffer = new Uint8Array(e) : this.buffer = new ArrayBuffer(0);
|
|
3197
3197
|
}
|
|
3198
3198
|
get byteLength() {
|
|
3199
3199
|
return this.buffer.byteLength;
|
|
@@ -3511,8 +3511,8 @@ class Bd {
|
|
|
3511
3511
|
continue;
|
|
3512
3512
|
const p = n.items[c], b = p.type;
|
|
3513
3513
|
if (typeof b == "number" || St(b)) {
|
|
3514
|
-
const
|
|
3515
|
-
if (
|
|
3514
|
+
const $ = (i = p.converter) !== null && i !== void 0 ? i : St(b) ? new b() : null;
|
|
3515
|
+
if (!$)
|
|
3516
3516
|
throw new Error("Converter is empty");
|
|
3517
3517
|
if (p.repeated)
|
|
3518
3518
|
if (p.implicit) {
|
|
@@ -3524,9 +3524,9 @@ class Bd {
|
|
|
3524
3524
|
if (!("value" in g.result.valueBlock && Array.isArray(g.result.valueBlock.value)))
|
|
3525
3525
|
throw new Error("Cannot get items from the ASN.1 parsed value. ASN.1 object is not constructed.");
|
|
3526
3526
|
const h = g.result.valueBlock.value;
|
|
3527
|
-
u[c] = Array.from(h, (v) =>
|
|
3527
|
+
u[c] = Array.from(h, (v) => $.fromASN(v));
|
|
3528
3528
|
} else
|
|
3529
|
-
u[c] = Array.from(f, (A) =>
|
|
3529
|
+
u[c] = Array.from(f, (A) => $.fromASN(A));
|
|
3530
3530
|
else {
|
|
3531
3531
|
let A = f;
|
|
3532
3532
|
if (p.implicit) {
|
|
@@ -3541,12 +3541,12 @@ class Bd {
|
|
|
3541
3541
|
}
|
|
3542
3542
|
d.valueBlock = A.valueBlock, A = hr(d.toBER(!1)).result;
|
|
3543
3543
|
}
|
|
3544
|
-
u[c] =
|
|
3544
|
+
u[c] = $.fromASN(A);
|
|
3545
3545
|
}
|
|
3546
3546
|
} else if (p.repeated) {
|
|
3547
3547
|
if (!Array.isArray(f))
|
|
3548
3548
|
throw new Error("Cannot get list of items from the ASN.1 parsed value. ASN.1 value should be iterable.");
|
|
3549
|
-
u[c] = Array.from(f, (
|
|
3549
|
+
u[c] = Array.from(f, ($) => this.fromASN($, b));
|
|
3550
3550
|
} else
|
|
3551
3551
|
u[c] = this.fromASN(f, b);
|
|
3552
3552
|
}
|
|
@@ -3679,7 +3679,7 @@ class z {
|
|
|
3679
3679
|
return Bd.parse(e, t);
|
|
3680
3680
|
}
|
|
3681
3681
|
static toString(e) {
|
|
3682
|
-
const t =
|
|
3682
|
+
const t = M.isBufferSource(e) ? M.toArrayBuffer(e) : z.serialize(e), i = hr(t);
|
|
3683
3683
|
if (i.offset === -1)
|
|
3684
3684
|
throw new Error(`Cannot decode ASN.1 data. ${i.result.error}`);
|
|
3685
3685
|
return i.result.toString();
|
|
@@ -3719,10 +3719,10 @@ var hu = { exports: {} };
|
|
|
3719
3719
|
for (B = g - h, y = ":"; B--; )
|
|
3720
3720
|
y += "0:";
|
|
3721
3721
|
return d = d.replace("::", y), d[0] === ":" && (d = d.slice(1)), d[d.length - 1] === ":" && (d = d.slice(0, -1)), g = function() {
|
|
3722
|
-
const
|
|
3723
|
-
for (let T = 0; T <
|
|
3724
|
-
|
|
3725
|
-
return
|
|
3722
|
+
const I = d.split(":"), E = [];
|
|
3723
|
+
for (let T = 0; T < I.length; T++)
|
|
3724
|
+
E.push(parseInt(I[T], 16));
|
|
3725
|
+
return E;
|
|
3726
3726
|
}(), {
|
|
3727
3727
|
parts: g,
|
|
3728
3728
|
zoneId: w
|
|
@@ -3749,7 +3749,7 @@ var hu = { exports: {} };
|
|
|
3749
3749
|
}
|
|
3750
3750
|
return parseInt(d, 10);
|
|
3751
3751
|
}
|
|
3752
|
-
function
|
|
3752
|
+
function $(d, g) {
|
|
3753
3753
|
for (; d.length < g; )
|
|
3754
3754
|
d = `0${d}`;
|
|
3755
3755
|
return d;
|
|
@@ -4009,7 +4009,7 @@ var hu = { exports: {} };
|
|
|
4009
4009
|
const g = (function() {
|
|
4010
4010
|
const v = [];
|
|
4011
4011
|
for (let w = 0; w < this.parts.length; w++)
|
|
4012
|
-
v.push(
|
|
4012
|
+
v.push($(this.parts[w].toString(16), 4));
|
|
4013
4013
|
return v;
|
|
4014
4014
|
}).call(this).join(":");
|
|
4015
4015
|
let h = "";
|
|
@@ -4280,53 +4280,53 @@ o([
|
|
|
4280
4280
|
o([
|
|
4281
4281
|
l({ type: je, context: 1, implicit: !0 })
|
|
4282
4282
|
], Jo.prototype, "partyName", void 0);
|
|
4283
|
-
let
|
|
4283
|
+
let oe = class {
|
|
4284
4284
|
constructor(e = {}) {
|
|
4285
4285
|
Object.assign(this, e);
|
|
4286
4286
|
}
|
|
4287
4287
|
};
|
|
4288
4288
|
o([
|
|
4289
4289
|
l({ type: Yr, context: 0, implicit: !0 })
|
|
4290
|
-
],
|
|
4290
|
+
], oe.prototype, "otherName", void 0);
|
|
4291
4291
|
o([
|
|
4292
4292
|
l({ type: m.IA5String, context: 1, implicit: !0 })
|
|
4293
|
-
],
|
|
4293
|
+
], oe.prototype, "rfc822Name", void 0);
|
|
4294
4294
|
o([
|
|
4295
4295
|
l({ type: m.IA5String, context: 2, implicit: !0 })
|
|
4296
|
-
],
|
|
4296
|
+
], oe.prototype, "dNSName", void 0);
|
|
4297
4297
|
o([
|
|
4298
4298
|
l({ type: m.Any, context: 3, implicit: !0 })
|
|
4299
|
-
],
|
|
4299
|
+
], oe.prototype, "x400Address", void 0);
|
|
4300
4300
|
o([
|
|
4301
4301
|
l({ type: _e, context: 4, implicit: !1 })
|
|
4302
|
-
],
|
|
4302
|
+
], oe.prototype, "directoryName", void 0);
|
|
4303
4303
|
o([
|
|
4304
4304
|
l({ type: Jo, context: 5 })
|
|
4305
|
-
],
|
|
4305
|
+
], oe.prototype, "ediPartyName", void 0);
|
|
4306
4306
|
o([
|
|
4307
4307
|
l({ type: m.IA5String, context: 6, implicit: !0 })
|
|
4308
|
-
],
|
|
4308
|
+
], oe.prototype, "uniformResourceIdentifier", void 0);
|
|
4309
4309
|
o([
|
|
4310
4310
|
l({ type: m.OctetString, context: 7, implicit: !0, converter: Id })
|
|
4311
|
-
],
|
|
4311
|
+
], oe.prototype, "iPAddress", void 0);
|
|
4312
4312
|
o([
|
|
4313
4313
|
l({ type: m.ObjectIdentifier, context: 8, implicit: !0 })
|
|
4314
|
-
],
|
|
4315
|
-
|
|
4314
|
+
], oe.prototype, "registeredID", void 0);
|
|
4315
|
+
oe = o([
|
|
4316
4316
|
j({ type: N.Choice })
|
|
4317
|
-
],
|
|
4317
|
+
], oe);
|
|
4318
4318
|
const Ed = "1.3.6.1.5.5.7", jr = `${Ed}.3`, cr = "2.5.29";
|
|
4319
4319
|
var xs;
|
|
4320
4320
|
class In {
|
|
4321
4321
|
constructor(e = {}) {
|
|
4322
|
-
this.accessMethod = "", this.accessLocation = new
|
|
4322
|
+
this.accessMethod = "", this.accessLocation = new oe(), Object.assign(this, e);
|
|
4323
4323
|
}
|
|
4324
4324
|
}
|
|
4325
4325
|
o([
|
|
4326
4326
|
l({ type: m.ObjectIdentifier })
|
|
4327
4327
|
], In.prototype, "accessMethod", void 0);
|
|
4328
4328
|
o([
|
|
4329
|
-
l({ type:
|
|
4329
|
+
l({ type: oe })
|
|
4330
4330
|
], In.prototype, "accessLocation", void 0);
|
|
4331
4331
|
let Va = xs = class extends ve {
|
|
4332
4332
|
constructor(e) {
|
|
@@ -4348,7 +4348,7 @@ o([
|
|
|
4348
4348
|
l({ type: Yo, context: 0, optional: !0, implicit: !0 })
|
|
4349
4349
|
], zt.prototype, "keyIdentifier", void 0);
|
|
4350
4350
|
o([
|
|
4351
|
-
l({ type:
|
|
4351
|
+
l({ type: oe, context: 1, optional: !0, implicit: !0, repeated: "sequence" })
|
|
4352
4352
|
], zt.prototype, "authorityCertIssuer", void 0);
|
|
4353
4353
|
o([
|
|
4354
4354
|
l({
|
|
@@ -4378,7 +4378,7 @@ let Me = Bs = class extends ve {
|
|
|
4378
4378
|
}
|
|
4379
4379
|
};
|
|
4380
4380
|
Me = Bs = o([
|
|
4381
|
-
j({ type: N.Sequence, itemType:
|
|
4381
|
+
j({ type: N.Sequence, itemType: oe })
|
|
4382
4382
|
], Me);
|
|
4383
4383
|
var Is;
|
|
4384
4384
|
let Ua = Is = class extends Me {
|
|
@@ -4515,7 +4515,7 @@ let wr = class {
|
|
|
4515
4515
|
}
|
|
4516
4516
|
};
|
|
4517
4517
|
o([
|
|
4518
|
-
l({ type:
|
|
4518
|
+
l({ type: oe, context: 0, repeated: "sequence", implicit: !0 })
|
|
4519
4519
|
], wr.prototype, "fullName", void 0);
|
|
4520
4520
|
o([
|
|
4521
4521
|
l({ type: br, context: 1, implicit: !0 })
|
|
@@ -4535,7 +4535,7 @@ o([
|
|
|
4535
4535
|
l({ type: vu, context: 1, optional: !0, implicit: !0 })
|
|
4536
4536
|
], fi.prototype, "reasons", void 0);
|
|
4537
4537
|
o([
|
|
4538
|
-
l({ type:
|
|
4538
|
+
l({ type: oe, context: 2, optional: !0, repeated: "sequence", implicit: !0 })
|
|
4539
4539
|
], fi.prototype, "cRLIssuer", void 0);
|
|
4540
4540
|
let Ns = _s = class extends ve {
|
|
4541
4541
|
constructor(e) {
|
|
@@ -4658,11 +4658,11 @@ class as extends Bn {
|
|
|
4658
4658
|
var Vs;
|
|
4659
4659
|
class _n {
|
|
4660
4660
|
constructor(e = {}) {
|
|
4661
|
-
this.base = new
|
|
4661
|
+
this.base = new oe(), this.minimum = 0, Object.assign(this, e);
|
|
4662
4662
|
}
|
|
4663
4663
|
}
|
|
4664
4664
|
o([
|
|
4665
|
-
l({ type:
|
|
4665
|
+
l({ type: oe })
|
|
4666
4666
|
], _n.prototype, "base", void 0);
|
|
4667
4667
|
o([
|
|
4668
4668
|
l({ type: m.Integer, context: 0, defaultValue: 0, implicit: !0 })
|
|
@@ -5038,11 +5038,11 @@ o([
|
|
|
5038
5038
|
], Pr.prototype, "attrValues", void 0);
|
|
5039
5039
|
class ra {
|
|
5040
5040
|
constructor(e = {}) {
|
|
5041
|
-
this.acIssuer = new
|
|
5041
|
+
this.acIssuer = new oe(), this.acSerial = 0, this.attrs = [], Object.assign(this, e);
|
|
5042
5042
|
}
|
|
5043
5043
|
}
|
|
5044
5044
|
o([
|
|
5045
|
-
l({ type:
|
|
5045
|
+
l({ type: oe })
|
|
5046
5046
|
], ra.prototype, "acIssuer", void 0);
|
|
5047
5047
|
o([
|
|
5048
5048
|
l({ type: m.Integer })
|
|
@@ -5131,7 +5131,7 @@ let Ar = class {
|
|
|
5131
5131
|
}
|
|
5132
5132
|
};
|
|
5133
5133
|
o([
|
|
5134
|
-
l({ type:
|
|
5134
|
+
l({ type: oe, repeated: "sequence" })
|
|
5135
5135
|
], Ar.prototype, "v1Form", void 0);
|
|
5136
5136
|
o([
|
|
5137
5137
|
l({ type: jn, context: 0, implicit: !0 })
|
|
@@ -5280,7 +5280,7 @@ o([
|
|
|
5280
5280
|
l({ type: lr })
|
|
5281
5281
|
], Vn.prototype, "targetCertificate", void 0);
|
|
5282
5282
|
o([
|
|
5283
|
-
l({ type:
|
|
5283
|
+
l({ type: oe, optional: !0 })
|
|
5284
5284
|
], Vn.prototype, "targetName", void 0);
|
|
5285
5285
|
o([
|
|
5286
5286
|
l({ type: ur, optional: !0 })
|
|
@@ -5291,10 +5291,10 @@ let xr = class {
|
|
|
5291
5291
|
}
|
|
5292
5292
|
};
|
|
5293
5293
|
o([
|
|
5294
|
-
l({ type:
|
|
5294
|
+
l({ type: oe, context: 0, implicit: !0 })
|
|
5295
5295
|
], xr.prototype, "targetName", void 0);
|
|
5296
5296
|
o([
|
|
5297
|
-
l({ type:
|
|
5297
|
+
l({ type: oe, context: 1, implicit: !0 })
|
|
5298
5298
|
], xr.prototype, "targetGroup", void 0);
|
|
5299
5299
|
o([
|
|
5300
5300
|
l({ type: Vn, context: 2, implicit: !0 })
|
|
@@ -5328,18 +5328,18 @@ o([
|
|
|
5328
5328
|
l({ type: Me, implicit: !0, context: 0, optional: !0 })
|
|
5329
5329
|
], _u.prototype, "roleAuthority", void 0);
|
|
5330
5330
|
o([
|
|
5331
|
-
l({ type:
|
|
5331
|
+
l({ type: oe, implicit: !0, context: 1 })
|
|
5332
5332
|
], _u.prototype, "roleName", void 0);
|
|
5333
5333
|
class sa {
|
|
5334
5334
|
constructor(e = {}) {
|
|
5335
|
-
this.service = new
|
|
5335
|
+
this.service = new oe(), this.ident = new oe(), Object.assign(this, e);
|
|
5336
5336
|
}
|
|
5337
5337
|
}
|
|
5338
5338
|
o([
|
|
5339
|
-
l({ type:
|
|
5339
|
+
l({ type: oe })
|
|
5340
5340
|
], sa.prototype, "service", void 0);
|
|
5341
5341
|
o([
|
|
5342
|
-
l({ type:
|
|
5342
|
+
l({ type: oe })
|
|
5343
5343
|
], sa.prototype, "ident", void 0);
|
|
5344
5344
|
o([
|
|
5345
5345
|
l({ type: de, optional: !0 })
|
|
@@ -7314,7 +7314,7 @@ class sr {
|
|
|
7314
7314
|
p[ge.NAME] = u, i.push(...this.serializeObj(p, t));
|
|
7315
7315
|
else if (c instanceof ge)
|
|
7316
7316
|
c[ge.NAME] = u, i.push(...this.serializeObj(c, t));
|
|
7317
|
-
else if (
|
|
7317
|
+
else if (M.isBufferSource(c))
|
|
7318
7318
|
u ? (i.push(`${n}${f}`), i.push(...this.serializeBufferSource(c, t + 1))) : i.push(...this.serializeBufferSource(c, t));
|
|
7319
7319
|
else if ("toTextObject" in c) {
|
|
7320
7320
|
const p = c.toTextObject();
|
|
@@ -7325,7 +7325,7 @@ class sr {
|
|
|
7325
7325
|
return i;
|
|
7326
7326
|
}
|
|
7327
7327
|
static serializeBufferSource(e, t = 0) {
|
|
7328
|
-
const i = this.pad(t), n =
|
|
7328
|
+
const i = this.pad(t), n = M.toUint8Array(e), s = [];
|
|
7329
7329
|
for (let a = 0; a < n.length; ) {
|
|
7330
7330
|
const u = [];
|
|
7331
7331
|
for (let c = 0; c < 16 && a < n.length; c++) {
|
|
@@ -7350,7 +7350,7 @@ class Lt {
|
|
|
7350
7350
|
this.rawData = z.serialize(t), this.onInit(t);
|
|
7351
7351
|
} else {
|
|
7352
7352
|
const t = z.parse(e[0], e[1]);
|
|
7353
|
-
this.rawData =
|
|
7353
|
+
this.rawData = M.toArrayBuffer(e[0]), this.onInit(t);
|
|
7354
7354
|
}
|
|
7355
7355
|
}
|
|
7356
7356
|
equal(e) {
|
|
@@ -7387,10 +7387,10 @@ Lt.NAME = "ASN";
|
|
|
7387
7387
|
class gt extends Lt {
|
|
7388
7388
|
constructor(...e) {
|
|
7389
7389
|
let t;
|
|
7390
|
-
|
|
7390
|
+
M.isBufferSource(e[0]) ? t = M.toArrayBuffer(e[0]) : t = z.serialize(new at({
|
|
7391
7391
|
extnID: e[0],
|
|
7392
7392
|
critical: e[1],
|
|
7393
|
-
extnValue: new de(
|
|
7393
|
+
extnValue: new de(M.toArrayBuffer(e[2]))
|
|
7394
7394
|
})), super(t, at);
|
|
7395
7395
|
}
|
|
7396
7396
|
onInit(e) {
|
|
@@ -7514,7 +7514,7 @@ class Ut {
|
|
|
7514
7514
|
const n = t[i];
|
|
7515
7515
|
this.extraNames.register(i, n);
|
|
7516
7516
|
}
|
|
7517
|
-
typeof e == "string" ? this.asn = this.fromString(e) : e instanceof _e ? this.asn = e :
|
|
7517
|
+
typeof e == "string" ? this.asn = this.fromString(e) : e instanceof _e ? this.asn = e : M.isBufferSource(e) ? this.asn = z.parse(e, _e) : this.asn = this.fromJSON(e);
|
|
7518
7518
|
}
|
|
7519
7519
|
getField(e) {
|
|
7520
7520
|
const t = this.extraNames.findId(e) || ze.findId(e), i = [];
|
|
@@ -7623,21 +7623,21 @@ class Wc extends Lt {
|
|
|
7623
7623
|
switch (e[0]) {
|
|
7624
7624
|
case ls: {
|
|
7625
7625
|
const i = new Ut(e[1]).toArrayBuffer(), n = z.parse(i, _e);
|
|
7626
|
-
t = new
|
|
7626
|
+
t = new oe({ directoryName: n });
|
|
7627
7627
|
break;
|
|
7628
7628
|
}
|
|
7629
7629
|
case cs:
|
|
7630
|
-
t = new
|
|
7630
|
+
t = new oe({ dNSName: e[1] });
|
|
7631
7631
|
break;
|
|
7632
7632
|
case us:
|
|
7633
|
-
t = new
|
|
7633
|
+
t = new oe({ rfc822Name: e[1] });
|
|
7634
7634
|
break;
|
|
7635
7635
|
case ps: {
|
|
7636
7636
|
const i = new RegExp(qc, "i").exec(e[1]);
|
|
7637
7637
|
if (!i)
|
|
7638
7638
|
throw new Error("Cannot parse GUID value. Value doesn't match to regular expression");
|
|
7639
7639
|
const n = i.slice(1).map((s, a) => a < 3 ? H.ToHex(new Uint8Array(H.FromHex(s)).reverse()) : s).join("");
|
|
7640
|
-
t = new
|
|
7640
|
+
t = new oe({
|
|
7641
7641
|
otherName: new Yr({
|
|
7642
7642
|
typeId: zc,
|
|
7643
7643
|
value: z.serialize(new de(H.FromHex(n)))
|
|
@@ -7646,13 +7646,13 @@ class Wc extends Lt {
|
|
|
7646
7646
|
break;
|
|
7647
7647
|
}
|
|
7648
7648
|
case fs:
|
|
7649
|
-
t = new
|
|
7649
|
+
t = new oe({ iPAddress: e[1] });
|
|
7650
7650
|
break;
|
|
7651
7651
|
case xi:
|
|
7652
|
-
t = new
|
|
7652
|
+
t = new oe({ registeredID: e[1] });
|
|
7653
7653
|
break;
|
|
7654
7654
|
case hs: {
|
|
7655
|
-
t = new
|
|
7655
|
+
t = new oe({
|
|
7656
7656
|
otherName: new Yr({
|
|
7657
7657
|
typeId: Gc,
|
|
7658
7658
|
value: z.serialize(du.toASN(e[1]))
|
|
@@ -7661,13 +7661,13 @@ class Wc extends Lt {
|
|
|
7661
7661
|
break;
|
|
7662
7662
|
}
|
|
7663
7663
|
case ds:
|
|
7664
|
-
t = new
|
|
7664
|
+
t = new oe({ uniformResourceIdentifier: e[1] });
|
|
7665
7665
|
break;
|
|
7666
7666
|
default:
|
|
7667
7667
|
throw new Error("Cannot create GeneralName. Unsupported type of the name");
|
|
7668
7668
|
}
|
|
7669
7669
|
else
|
|
7670
|
-
|
|
7670
|
+
M.isBufferSource(e[0]) ? t = z.parse(e[0], oe) : t = e[0];
|
|
7671
7671
|
super(t);
|
|
7672
7672
|
}
|
|
7673
7673
|
onInit(e) {
|
|
@@ -7733,14 +7733,14 @@ class ni extends Lt {
|
|
|
7733
7733
|
else if (Array.isArray(e)) {
|
|
7734
7734
|
const i = [];
|
|
7735
7735
|
for (const n of e)
|
|
7736
|
-
if (n instanceof
|
|
7736
|
+
if (n instanceof oe)
|
|
7737
7737
|
i.push(n);
|
|
7738
7738
|
else {
|
|
7739
|
-
const s = z.parse(new Wc(n.type, n.value).rawData,
|
|
7739
|
+
const s = z.parse(new Wc(n.type, n.value).rawData, oe);
|
|
7740
7740
|
i.push(s);
|
|
7741
7741
|
}
|
|
7742
7742
|
t = new Me(i);
|
|
7743
|
-
} else if (
|
|
7743
|
+
} else if (M.isBufferSource(e))
|
|
7744
7744
|
t = z.parse(e, Me);
|
|
7745
7745
|
else
|
|
7746
7746
|
throw new Error("Cannot initialize GeneralNames. Incorrect incoming arguments");
|
|
@@ -7792,13 +7792,13 @@ class Qe {
|
|
|
7792
7792
|
const c = u.split(new RegExp(Or, "g"));
|
|
7793
7793
|
let f = null;
|
|
7794
7794
|
for (const p of c) {
|
|
7795
|
-
const [b,
|
|
7796
|
-
if (
|
|
7795
|
+
const [b, $] = p.split(/:(.*)/);
|
|
7796
|
+
if ($ === void 0) {
|
|
7797
7797
|
if (!f)
|
|
7798
7798
|
throw new Error("Cannot parse PEM string. Incorrect header value");
|
|
7799
7799
|
f.value += b.trim();
|
|
7800
7800
|
} else
|
|
7801
|
-
f && a.headers.push(f), f = { key: b, value:
|
|
7801
|
+
f && a.headers.push(f), f = { key: b, value: $.trim() };
|
|
7802
7802
|
}
|
|
7803
7803
|
f && a.headers.push(f);
|
|
7804
7804
|
}
|
|
@@ -7819,11 +7819,11 @@ class Qe {
|
|
|
7819
7819
|
if (Array.isArray(e)) {
|
|
7820
7820
|
const i = new Array();
|
|
7821
7821
|
return t ? e.forEach((n) => {
|
|
7822
|
-
if (!
|
|
7822
|
+
if (!M.isBufferSource(n))
|
|
7823
7823
|
throw new TypeError("Cannot encode array of BufferSource in PEM format. Not all items of the array are BufferSource");
|
|
7824
7824
|
i.push(this.encodeStruct({
|
|
7825
7825
|
type: t,
|
|
7826
|
-
rawData:
|
|
7826
|
+
rawData: M.toArrayBuffer(n)
|
|
7827
7827
|
}));
|
|
7828
7828
|
}) : e.forEach((n) => {
|
|
7829
7829
|
if (!("type" in n))
|
|
@@ -7836,7 +7836,7 @@ class Qe {
|
|
|
7836
7836
|
throw new Error("Required argument 'tag' is missed");
|
|
7837
7837
|
return this.encodeStruct({
|
|
7838
7838
|
type: t,
|
|
7839
|
-
rawData:
|
|
7839
|
+
rawData: M.toArrayBuffer(e)
|
|
7840
7840
|
});
|
|
7841
7841
|
}
|
|
7842
7842
|
}
|
|
@@ -7865,7 +7865,7 @@ Qe.PublicKeyTag = "PUBLIC KEY";
|
|
|
7865
7865
|
Qe.PrivateKeyTag = "PRIVATE KEY";
|
|
7866
7866
|
class Et extends Lt {
|
|
7867
7867
|
static isAsnEncoded(e) {
|
|
7868
|
-
return
|
|
7868
|
+
return M.isBufferSource(e) || typeof e == "string";
|
|
7869
7869
|
}
|
|
7870
7870
|
static toArrayBuffer(e) {
|
|
7871
7871
|
if (typeof e == "string") {
|
|
@@ -7880,7 +7880,7 @@ class Et extends Lt {
|
|
|
7880
7880
|
throw new TypeError("Unsupported format of 'raw' argument. Must be one of DER, PEM, HEX, Base64, or Base4Url");
|
|
7881
7881
|
} else {
|
|
7882
7882
|
const t = H.ToBinary(e);
|
|
7883
|
-
return Qe.isPem(t) ? Qe.decode(t)[0] : H.isHex(t) ? H.FromHex(t) : H.isBase64(t) ? H.FromBase64(t) : H.isBase64Url(t) ? H.FromBase64Url(t) :
|
|
7883
|
+
return Qe.isPem(t) ? Qe.decode(t)[0] : H.isHex(t) ? H.FromHex(t) : H.isBase64(t) ? H.FromBase64(t) : H.isBase64Url(t) ? H.FromBase64Url(t) : M.toArrayBuffer(e);
|
|
7884
7884
|
}
|
|
7885
7885
|
}
|
|
7886
7886
|
constructor(...e) {
|
|
@@ -7907,8 +7907,8 @@ class Yt extends Et {
|
|
|
7907
7907
|
const t = rt.resolve(Zn), i = this.algorithm = t.toWebAlgorithm(e.algorithm);
|
|
7908
7908
|
switch (e.algorithm.algorithm) {
|
|
7909
7909
|
case Nr: {
|
|
7910
|
-
const n = z.parse(e.subjectPublicKey, ga), s =
|
|
7911
|
-
i.publicExponent =
|
|
7910
|
+
const n = z.parse(e.subjectPublicKey, ga), s = M.toUint8Array(n.modulus);
|
|
7911
|
+
i.publicExponent = M.toUint8Array(n.publicExponent), i.modulusLength = (s[0] ? s : s.slice(1)).byteLength << 3;
|
|
7912
7912
|
break;
|
|
7913
7913
|
}
|
|
7914
7914
|
}
|
|
@@ -7949,10 +7949,10 @@ vt.items = /* @__PURE__ */ new Map();
|
|
|
7949
7949
|
const Qn = "crypto.signatureFormatter";
|
|
7950
7950
|
class Bp {
|
|
7951
7951
|
toAsnSignature(e, t) {
|
|
7952
|
-
return
|
|
7952
|
+
return M.toArrayBuffer(t);
|
|
7953
7953
|
}
|
|
7954
7954
|
toWebSignature(e, t) {
|
|
7955
|
-
return
|
|
7955
|
+
return M.toArrayBuffer(t);
|
|
7956
7956
|
}
|
|
7957
7957
|
}
|
|
7958
7958
|
class sn extends Et {
|
|
@@ -7995,7 +7995,7 @@ class sn extends Et {
|
|
|
7995
7995
|
i = { ...s.publicKey.algorithm, ...this.signatureAlgorithm }, n = await s.publicKey.export(i, ["verify"], t);
|
|
7996
7996
|
else if (s instanceof Yt)
|
|
7997
7997
|
i = { ...s.algorithm, ...this.signatureAlgorithm }, n = await s.export(i, ["verify"], t);
|
|
7998
|
-
else if (
|
|
7998
|
+
else if (M.isBufferSource(s)) {
|
|
7999
7999
|
const f = new Yt(s);
|
|
8000
8000
|
i = { ...f.algorithm, ...this.signatureAlgorithm }, n = await f.export(i, ["verify"], t);
|
|
8001
8001
|
} else
|
|
@@ -8062,7 +8062,7 @@ class oi extends gt {
|
|
|
8062
8062
|
return new oi(e, t);
|
|
8063
8063
|
}
|
|
8064
8064
|
constructor(...e) {
|
|
8065
|
-
if (
|
|
8065
|
+
if (M.isBufferSource(e[0]))
|
|
8066
8066
|
super(e[0]);
|
|
8067
8067
|
else if (typeof e[0] == "string") {
|
|
8068
8068
|
const t = new zt({ keyIdentifier: new Yo(H.FromHex(e[0])) });
|
|
@@ -8091,7 +8091,7 @@ class oi extends gt {
|
|
|
8091
8091
|
oi.NAME = "Authority Key Identifier";
|
|
8092
8092
|
class tf extends gt {
|
|
8093
8093
|
constructor(...e) {
|
|
8094
|
-
if (
|
|
8094
|
+
if (M.isBufferSource(e[0])) {
|
|
8095
8095
|
super(e[0]);
|
|
8096
8096
|
const t = z.parse(this.value, Pi);
|
|
8097
8097
|
this.ca = t.cA, this.pathLength = t.pathLenConstraint;
|
|
@@ -8115,7 +8115,7 @@ var Yc;
|
|
|
8115
8115
|
})(Yc || (Yc = {}));
|
|
8116
8116
|
class rf extends gt {
|
|
8117
8117
|
constructor(...e) {
|
|
8118
|
-
if (
|
|
8118
|
+
if (M.isBufferSource(e[0])) {
|
|
8119
8119
|
super(e[0]);
|
|
8120
8120
|
const t = z.parse(this.value, Ui);
|
|
8121
8121
|
this.usages = t.map((i) => i);
|
|
@@ -8136,7 +8136,7 @@ var Oo;
|
|
|
8136
8136
|
})(Oo || (Oo = {}));
|
|
8137
8137
|
class Sa extends gt {
|
|
8138
8138
|
constructor(...e) {
|
|
8139
|
-
if (
|
|
8139
|
+
if (M.isBufferSource(e[0])) {
|
|
8140
8140
|
super(e[0]);
|
|
8141
8141
|
const t = z.parse(this.value, as);
|
|
8142
8142
|
this.usages = t.toNumber();
|
|
@@ -8154,12 +8154,12 @@ Sa.NAME = "Key Usages";
|
|
|
8154
8154
|
class Xn extends gt {
|
|
8155
8155
|
static async create(e, t = !1, i = Ze.get()) {
|
|
8156
8156
|
let n;
|
|
8157
|
-
e instanceof Yt ? n = e.rawData : "publicKey" in e ? n = e.publicKey.rawData :
|
|
8157
|
+
e instanceof Yt ? n = e.rawData : "publicKey" in e ? n = e.publicKey.rawData : M.isBufferSource(e) ? n = e : n = await i.subtle.exportKey("spki", e);
|
|
8158
8158
|
const a = await new Yt(n).getKeyIdentifier(i);
|
|
8159
8159
|
return new Xn(H.ToHex(a), t);
|
|
8160
8160
|
}
|
|
8161
8161
|
constructor(...e) {
|
|
8162
|
-
if (
|
|
8162
|
+
if (M.isBufferSource(e[0])) {
|
|
8163
8163
|
super(e[0]);
|
|
8164
8164
|
const t = z.parse(this.value, Vt);
|
|
8165
8165
|
this.keyId = H.ToHex(t);
|
|
@@ -8176,7 +8176,7 @@ class Xn extends gt {
|
|
|
8176
8176
|
Xn.NAME = "Subject Key Identifier";
|
|
8177
8177
|
class ka extends gt {
|
|
8178
8178
|
constructor(...e) {
|
|
8179
|
-
|
|
8179
|
+
M.isBufferSource(e[0]) ? super(e[0]) : super(ku, e[1], new ni(e[0] || []).rawData);
|
|
8180
8180
|
}
|
|
8181
8181
|
onInit(e) {
|
|
8182
8182
|
super.onInit(e);
|
|
@@ -8194,7 +8194,7 @@ ka.NAME = "Subject Alternative Name";
|
|
|
8194
8194
|
class nf extends gt {
|
|
8195
8195
|
constructor(...e) {
|
|
8196
8196
|
var t;
|
|
8197
|
-
if (
|
|
8197
|
+
if (M.isBufferSource(e[0])) {
|
|
8198
8198
|
super(e[0]);
|
|
8199
8199
|
const i = z.parse(this.value, Ri);
|
|
8200
8200
|
this.policies = i.map((n) => n.policyIdentifier);
|
|
@@ -8215,10 +8215,10 @@ vt.register(gu, nf);
|
|
|
8215
8215
|
class Dr extends Lt {
|
|
8216
8216
|
constructor(...e) {
|
|
8217
8217
|
let t;
|
|
8218
|
-
if (
|
|
8219
|
-
t =
|
|
8218
|
+
if (M.isBufferSource(e[0]))
|
|
8219
|
+
t = M.toArrayBuffer(e[0]);
|
|
8220
8220
|
else {
|
|
8221
|
-
const i = e[0], n = Array.isArray(e[1]) ? e[1].map((s) =>
|
|
8221
|
+
const i = e[0], n = Array.isArray(e[1]) ? e[1].map((s) => M.toArrayBuffer(s)) : [];
|
|
8222
8222
|
t = z.serialize(new Bt({ type: i, values: n }));
|
|
8223
8223
|
}
|
|
8224
8224
|
super(t, Bt);
|
|
@@ -8239,7 +8239,7 @@ Dr.NAME = "Attribute";
|
|
|
8239
8239
|
class sf extends Dr {
|
|
8240
8240
|
constructor(...e) {
|
|
8241
8241
|
var t;
|
|
8242
|
-
if (
|
|
8242
|
+
if (M.isBufferSource(e[0]))
|
|
8243
8243
|
super(e[0]);
|
|
8244
8244
|
else {
|
|
8245
8245
|
const i = new rn({
|
|
@@ -8264,7 +8264,7 @@ sf.NAME = "Challenge Password";
|
|
|
8264
8264
|
class Aa extends Dr {
|
|
8265
8265
|
constructor(...e) {
|
|
8266
8266
|
var t;
|
|
8267
|
-
if (
|
|
8267
|
+
if (M.isBufferSource(e[0]))
|
|
8268
8268
|
super(e[0]);
|
|
8269
8269
|
else {
|
|
8270
8270
|
const i = e[0], n = new rr();
|
|
@@ -8347,11 +8347,11 @@ To = o([
|
|
|
8347
8347
|
rt.registerSingleton(Yn, To);
|
|
8348
8348
|
class tt {
|
|
8349
8349
|
addPadding(e, t) {
|
|
8350
|
-
const i =
|
|
8350
|
+
const i = M.toUint8Array(t), n = new Uint8Array(e);
|
|
8351
8351
|
return n.set(i, e - i.length), n;
|
|
8352
8352
|
}
|
|
8353
8353
|
removePadding(e, t = !1) {
|
|
8354
|
-
let i =
|
|
8354
|
+
let i = M.toUint8Array(e);
|
|
8355
8355
|
for (let n = 0; n < i.length; n++)
|
|
8356
8356
|
if (i[n]) {
|
|
8357
8357
|
i = i.slice(n);
|
|
@@ -8365,7 +8365,7 @@ class tt {
|
|
|
8365
8365
|
}
|
|
8366
8366
|
toAsnSignature(e, t) {
|
|
8367
8367
|
if (e.name === "ECDSA") {
|
|
8368
|
-
const i = e.namedCurve, n = tt.namedCurveSize.get(i) || tt.defaultNamedCurveSize, s = new Ji(), a =
|
|
8368
|
+
const i = e.namedCurve, n = tt.namedCurveSize.get(i) || tt.defaultNamedCurveSize, s = new Ji(), a = M.toUint8Array(t);
|
|
8369
8369
|
return s.r = this.removePadding(a.slice(0, n), !0), s.s = this.removePadding(a.slice(n, n + n), !0), z.serialize(s);
|
|
8370
8370
|
}
|
|
8371
8371
|
return null;
|
|
@@ -8833,13 +8833,13 @@ const pt = {
|
|
|
8833
8833
|
}), s.value ? f(i("message.fail")) : e("error", t.uuid);
|
|
8834
8834
|
return;
|
|
8835
8835
|
}
|
|
8836
|
-
const
|
|
8836
|
+
const $ = t.uuid.length > rl, A = t.format === "hidden" || t.format === "redacted" ? i("message.success.prefix") : `"${t.uuid.substring(0, rl) + ($ ? "..." : "")}"`;
|
|
8837
8837
|
typeof n == "function" && n({
|
|
8838
8838
|
type: "success",
|
|
8839
8839
|
message: `${A}${i("message.success.content")}`
|
|
8840
8840
|
}), s.value ? f(t.successTooltip) : e("success", t.uuid);
|
|
8841
8841
|
};
|
|
8842
|
-
return (b,
|
|
8842
|
+
return (b, $) => {
|
|
8843
8843
|
const A = ee("KIcon"), d = ee("KClipboardProvider");
|
|
8844
8844
|
return _(), K("div", Vp, [
|
|
8845
8845
|
r.format !== "hidden" ? (_(), K("div", {
|
|
@@ -8847,25 +8847,25 @@ const pt = {
|
|
|
8847
8847
|
"data-testid": "copy-id",
|
|
8848
8848
|
title: r.uuid
|
|
8849
8849
|
}, [
|
|
8850
|
-
|
|
8850
|
+
ne("div", {
|
|
8851
8851
|
class: Qt([
|
|
8852
8852
|
"uuid-container",
|
|
8853
8853
|
r.truncated ? "truncated-uuid" : null,
|
|
8854
8854
|
r.useMono ? "mono" : null
|
|
8855
8855
|
])
|
|
8856
|
-
},
|
|
8856
|
+
}, U(c.value), 3)
|
|
8857
8857
|
], 8, Up)) : Ie("", !0),
|
|
8858
8858
|
(_(), fe(an(r.tooltip ? "KTooltip" : "div"), Po(u.value, { class: "uuid-icon-wrapper" }), {
|
|
8859
8859
|
default: x(() => [
|
|
8860
|
-
|
|
8860
|
+
P(d, null, {
|
|
8861
8861
|
default: x(({ copyToClipboard: g }) => [
|
|
8862
|
-
|
|
8862
|
+
ne("span", {
|
|
8863
8863
|
"data-testid": "copy-to-clipboard",
|
|
8864
8864
|
role: "button",
|
|
8865
8865
|
tabindex: "0",
|
|
8866
8866
|
onClick: yr((h) => p(g), ["stop"])
|
|
8867
8867
|
}, [
|
|
8868
|
-
|
|
8868
|
+
P(A, {
|
|
8869
8869
|
class: "uuid-icon",
|
|
8870
8870
|
color: r.iconColor,
|
|
8871
8871
|
"hide-title": !!r.tooltip || void 0,
|
|
@@ -9053,14 +9053,14 @@ function th(r, e, t, i = {
|
|
|
9053
9053
|
headers: r.requestHeaders
|
|
9054
9054
|
}), { i18n: { t: s } } = Ba(), { debounce: a } = Kp(), u = a(async (w) => {
|
|
9055
9055
|
await v(w);
|
|
9056
|
-
}, 200), c = te(!1), f = te(""), p = te(""), b = te([]),
|
|
9056
|
+
}, 200), c = te(!1), f = te(""), p = te(""), b = te([]), $ = te(void 0), A = k(e);
|
|
9057
9057
|
let d = `${r.apiBaseUrl}${A}`;
|
|
9058
9058
|
r.app === "konnect" ? d = d.replace(/{controlPlaneId}/gi, (r == null ? void 0 : r.controlPlaneId) || "") : r.app === "kongManager" && (d = d.replace(/\/{workspace}/gi, r != null && r.workspace ? `/${r.workspace}` : ""));
|
|
9059
9059
|
const g = async () => {
|
|
9060
9060
|
try {
|
|
9061
9061
|
c.value = !0;
|
|
9062
9062
|
const { data: w } = await n.get(`${d}?size=${t}`);
|
|
9063
|
-
w != null && w.next || (
|
|
9063
|
+
w != null && w.next || ($.value = i.fetchedItemsKey in w ? w[i.fetchedItemsKey] : []), b.value = i.fetchedItemsKey in w ? w[i.fetchedItemsKey] : [];
|
|
9064
9064
|
} catch {
|
|
9065
9065
|
b.value = [], f.value = s("debouncedFilter.errors.fetch");
|
|
9066
9066
|
} finally {
|
|
@@ -9069,35 +9069,35 @@ function th(r, e, t, i = {
|
|
|
9069
9069
|
}, h = te(""), v = async (w) => {
|
|
9070
9070
|
var y, B;
|
|
9071
9071
|
if (h.value !== w)
|
|
9072
|
-
if (h.value = w || "",
|
|
9072
|
+
if (h.value = w || "", $.value === void 0)
|
|
9073
9073
|
try {
|
|
9074
9074
|
c.value = !0, f.value = "", p.value = "";
|
|
9075
|
-
let
|
|
9076
|
-
w && (
|
|
9077
|
-
const { data:
|
|
9078
|
-
i.fetchedItemsKey in
|
|
9079
|
-
} catch (
|
|
9080
|
-
((y =
|
|
9075
|
+
let I = d + "";
|
|
9076
|
+
w && (I += `/${w}`);
|
|
9077
|
+
const { data: E } = await n.get(`${I}?size=${t}`);
|
|
9078
|
+
i.fetchedItemsKey in E ? b.value = E[i.fetchedItemsKey] : E != null && E.id ? b.value = [E] : b.value = [];
|
|
9079
|
+
} catch (I) {
|
|
9080
|
+
((y = I == null ? void 0 : I.response) == null ? void 0 : y.status) === 404 ? p.value = s("debouncedFilter.errors.invalid") : (b.value = [], f.value = s("debouncedFilter.errors.fetch"));
|
|
9081
9081
|
} finally {
|
|
9082
9082
|
c.value = !1;
|
|
9083
9083
|
}
|
|
9084
9084
|
else
|
|
9085
|
-
c.value = !0, p.value = "", w ? (b.value = (B =
|
|
9086
|
-
var
|
|
9085
|
+
c.value = !0, p.value = "", w ? (b.value = (B = $.value) == null ? void 0 : B.filter((I) => {
|
|
9086
|
+
var E;
|
|
9087
9087
|
let T = !1;
|
|
9088
9088
|
for (const ce of i.searchKeys) {
|
|
9089
|
-
const re = typeof
|
|
9089
|
+
const re = typeof I[ce] == "string" ? (E = I[ce]) == null ? void 0 : E.toLowerCase() : I[ce];
|
|
9090
9090
|
re != null && re.includes(w.toLowerCase()) && (T = !0);
|
|
9091
9091
|
}
|
|
9092
9092
|
return T;
|
|
9093
|
-
}), (!b.value || !b.value.length) && (p.value = s("debouncedFilter.errors.invalid"))) : b.value =
|
|
9093
|
+
}), (!b.value || !b.value.length) && (p.value = s("debouncedFilter.errors.invalid"))) : b.value = $.value, c.value = !1;
|
|
9094
9094
|
};
|
|
9095
9095
|
return {
|
|
9096
9096
|
loading: c,
|
|
9097
9097
|
error: f,
|
|
9098
9098
|
validationError: p,
|
|
9099
9099
|
results: b,
|
|
9100
|
-
allRecords:
|
|
9100
|
+
allRecords: $,
|
|
9101
9101
|
loadItems: g,
|
|
9102
9102
|
debouncedQueryChange: u
|
|
9103
9103
|
};
|
|
@@ -9143,10 +9143,10 @@ function af(r, e) {
|
|
|
9143
9143
|
() => i.value.startsWith("/") ? new URL(`${window.location.origin}${i.value}`) : new URL(i.value)
|
|
9144
9144
|
);
|
|
9145
9145
|
return (a) => {
|
|
9146
|
-
const { page: u, pageSize: c, offset: f, sortColumnKey: p, sortColumnOrder: b, query:
|
|
9146
|
+
const { page: u, pageSize: c, offset: f, sortColumnKey: p, sortColumnOrder: b, query: $ } = a;
|
|
9147
9147
|
try {
|
|
9148
9148
|
let A = new URL(s.value.href);
|
|
9149
|
-
return n.value &&
|
|
9149
|
+
return n.value && $ ? (A.search = "", A = new URL(`${A.href}/${$}/`)) : (n.value || new URLSearchParams($).forEach((d, g) => {
|
|
9150
9150
|
A.searchParams.append(g, d);
|
|
9151
9151
|
}), p && A.searchParams.append("sort_by", p), b === "desc" && A.searchParams.append("sort_desc", "1"), A.searchParams.append("size", String(c))), f && u !== 1 && A.searchParams.append("offset", String(f)), A.href;
|
|
9152
9152
|
} catch (A) {
|
|
@@ -9166,7 +9166,7 @@ function nh(r, e, t = "data") {
|
|
|
9166
9166
|
const c = s(u), { data: f } = await n.get(c), p = t && t.replace(/[^\w-_]/gi, "");
|
|
9167
9167
|
let b;
|
|
9168
9168
|
f[p] && Array.isArray(f[p]) ? b = f[p] : b = Object.keys(f).length ? [f] : [];
|
|
9169
|
-
const
|
|
9169
|
+
const $ = {
|
|
9170
9170
|
data: b,
|
|
9171
9171
|
total: b.length,
|
|
9172
9172
|
...f.offset ? {
|
|
@@ -9177,8 +9177,8 @@ function nh(r, e, t = "data") {
|
|
|
9177
9177
|
};
|
|
9178
9178
|
return a.value = {
|
|
9179
9179
|
status: $t.Idle,
|
|
9180
|
-
response:
|
|
9181
|
-
},
|
|
9180
|
+
response: $
|
|
9181
|
+
}, $;
|
|
9182
9182
|
} catch (c) {
|
|
9183
9183
|
const f = {
|
|
9184
9184
|
data: [],
|
|
@@ -9333,13 +9333,13 @@ const Re = {
|
|
|
9333
9333
|
}), s.value ? f(i("message.fail")) : e("error", t.uuid);
|
|
9334
9334
|
return;
|
|
9335
9335
|
}
|
|
9336
|
-
const
|
|
9336
|
+
const $ = t.uuid.length > ll, A = t.format === "hidden" || t.format === "redacted" ? i("message.success.prefix") : `"${t.uuid.substring(0, ll) + ($ ? "..." : "")}"`;
|
|
9337
9337
|
typeof n == "function" && n({
|
|
9338
9338
|
type: "success",
|
|
9339
9339
|
message: `${A}${i("message.success.content")}`
|
|
9340
9340
|
}), s.value ? f(t.successTooltip) : e("success", t.uuid);
|
|
9341
9341
|
};
|
|
9342
|
-
return (b,
|
|
9342
|
+
return (b, $) => {
|
|
9343
9343
|
const A = ee("KIcon"), d = ee("KClipboardProvider");
|
|
9344
9344
|
return _(), K("div", gh, [
|
|
9345
9345
|
r.format !== "hidden" ? (_(), K("div", {
|
|
@@ -9347,25 +9347,25 @@ const Re = {
|
|
|
9347
9347
|
"data-testid": "copy-id",
|
|
9348
9348
|
title: r.uuid
|
|
9349
9349
|
}, [
|
|
9350
|
-
|
|
9350
|
+
ne("div", {
|
|
9351
9351
|
class: Qt([
|
|
9352
9352
|
"uuid-container",
|
|
9353
9353
|
r.truncated ? "truncated-uuid" : null,
|
|
9354
9354
|
r.useMono ? "mono" : null
|
|
9355
9355
|
])
|
|
9356
|
-
},
|
|
9356
|
+
}, U(c.value), 3)
|
|
9357
9357
|
], 8, vh)) : Ie("", !0),
|
|
9358
9358
|
(_(), fe(an(r.tooltip ? "KTooltip" : "div"), Po(u.value, { class: "uuid-icon-wrapper" }), {
|
|
9359
9359
|
default: x(() => [
|
|
9360
|
-
|
|
9360
|
+
P(d, null, {
|
|
9361
9361
|
default: x(({ copyToClipboard: g }) => [
|
|
9362
|
-
|
|
9362
|
+
ne("span", {
|
|
9363
9363
|
"data-testid": "copy-to-clipboard",
|
|
9364
9364
|
role: "button",
|
|
9365
9365
|
tabindex: "0",
|
|
9366
9366
|
onClick: yr((h) => p(g), ["stop"])
|
|
9367
9367
|
}, [
|
|
9368
|
-
|
|
9368
|
+
P(A, {
|
|
9369
9369
|
class: "uuid-icon",
|
|
9370
9370
|
color: r.iconColor,
|
|
9371
9371
|
"hide-title": !!r.tooltip || void 0,
|
|
@@ -9420,7 +9420,7 @@ const Re = {
|
|
|
9420
9420
|
}, {
|
|
9421
9421
|
default: x(() => [
|
|
9422
9422
|
r.isArrayItem ? (_(), K("legend", Sh, [
|
|
9423
|
-
|
|
9423
|
+
ne("b", null, U(u.value), 1)
|
|
9424
9424
|
])) : Ie("", !0),
|
|
9425
9425
|
(_(!0), K(Fe, null, Ue(Object.keys(a.value), (p, b) => (_(), fe(ts, {
|
|
9426
9426
|
key: `${n.value}-property-${b}`,
|
|
@@ -9453,13 +9453,13 @@ const Re = {
|
|
|
9453
9453
|
return (t, i) => {
|
|
9454
9454
|
const n = ee("KButton");
|
|
9455
9455
|
return _(), K("div", null, [
|
|
9456
|
-
|
|
9456
|
+
P(n, {
|
|
9457
9457
|
appearance: "btn-link",
|
|
9458
9458
|
class: "navigation-button",
|
|
9459
9459
|
onClick: i[0] || (i[0] = (s) => t.$emit("navigation-click", r.item))
|
|
9460
9460
|
}, {
|
|
9461
9461
|
default: x(() => [
|
|
9462
|
-
ue(
|
|
9462
|
+
ue(U(r.item.value || k(e)("baseConfigCard.commonFields.link")), 1)
|
|
9463
9463
|
]),
|
|
9464
9464
|
_: 1
|
|
9465
9465
|
})
|
|
@@ -9482,7 +9482,7 @@ const Re = {
|
|
|
9482
9482
|
appearance: r.status ? "success" : "neutral"
|
|
9483
9483
|
}, {
|
|
9484
9484
|
default: x(() => [
|
|
9485
|
-
ue(
|
|
9485
|
+
ue(U(r.status ? k(e)("baseConfigCard.statusBadge.enabledLabel") : k(e)("baseConfigCard.statusBadge.disabledLabel")), 1)
|
|
9486
9486
|
]),
|
|
9487
9487
|
_: 1
|
|
9488
9488
|
}, 8, ["appearance"]);
|
|
@@ -9645,28 +9645,28 @@ const Re = {
|
|
|
9645
9645
|
};
|
|
9646
9646
|
}
|
|
9647
9647
|
});
|
|
9648
|
-
return (b,
|
|
9648
|
+
return (b, $) => {
|
|
9649
9649
|
const A = ee("KLabel"), d = ee("KBadge"), g = ee("KMethodBadge");
|
|
9650
9650
|
return _(), K("div", Nh, [
|
|
9651
|
-
|
|
9651
|
+
ne("div", {
|
|
9652
9652
|
class: "config-card-details-label",
|
|
9653
9653
|
"data-testid": `${r.item.key}-label`
|
|
9654
9654
|
}, [
|
|
9655
9655
|
Ce(b.$slots, "label", { item: r.item }, () => [
|
|
9656
|
-
|
|
9656
|
+
P(A, { "tooltip-attributes": { maxWidth: "500px" } }, gr({
|
|
9657
9657
|
default: x(() => [
|
|
9658
|
-
ue(
|
|
9658
|
+
ue(U(r.item.label) + " ", 1)
|
|
9659
9659
|
]),
|
|
9660
9660
|
_: 2
|
|
9661
9661
|
}, [
|
|
9662
9662
|
u.value ? {
|
|
9663
9663
|
name: "tooltip",
|
|
9664
9664
|
fn: x(() => [
|
|
9665
|
-
|
|
9665
|
+
ne("div", {
|
|
9666
9666
|
"data-testid": `${r.item.key}-label-tooltip`
|
|
9667
9667
|
}, [
|
|
9668
9668
|
Ce(b.$slots, "label-tooltip", {}, () => [
|
|
9669
|
-
ue(
|
|
9669
|
+
ue(U(r.item.tooltip), 1)
|
|
9670
9670
|
], !0)
|
|
9671
9671
|
], 8, Th)
|
|
9672
9672
|
]),
|
|
@@ -9675,7 +9675,7 @@ const Re = {
|
|
|
9675
9675
|
]), 1024)
|
|
9676
9676
|
], !0)
|
|
9677
9677
|
], 8, Oh),
|
|
9678
|
-
|
|
9678
|
+
ne("div", {
|
|
9679
9679
|
class: "config-card-details-value",
|
|
9680
9680
|
"data-testid": `${r.item.key}-property-value`
|
|
9681
9681
|
}, [
|
|
@@ -9696,7 +9696,7 @@ const Re = {
|
|
|
9696
9696
|
"truncation-tooltip": h
|
|
9697
9697
|
}, {
|
|
9698
9698
|
default: x(() => [
|
|
9699
|
-
ue(
|
|
9699
|
+
ue(U(h), 1)
|
|
9700
9700
|
]),
|
|
9701
9701
|
_: 2
|
|
9702
9702
|
}, 1032, ["data-testid", "truncation-tooltip"]))), 128))
|
|
@@ -9725,7 +9725,7 @@ const Re = {
|
|
|
9725
9725
|
method: k($f).includes(h.toLowerCase()) ? h.toLowerCase() : "custom"
|
|
9726
9726
|
}, {
|
|
9727
9727
|
default: x(() => [
|
|
9728
|
-
ue(
|
|
9728
|
+
ue(U(h), 1)
|
|
9729
9729
|
]),
|
|
9730
9730
|
_: 2
|
|
9731
9731
|
}, 1032, ["data-testid", "label", "method"]))), 128))
|
|
@@ -9744,7 +9744,7 @@ const Re = {
|
|
|
9744
9744
|
key: 4,
|
|
9745
9745
|
class: Qt(["attrs-data-text", { truncated: r.truncated }]),
|
|
9746
9746
|
title: r.truncated ? r.item.value : void 0
|
|
9747
|
-
},
|
|
9747
|
+
}, U(p.value.text), 11, Dh))
|
|
9748
9748
|
]),
|
|
9749
9749
|
_: 1
|
|
9750
9750
|
}, 16))
|
|
@@ -9855,13 +9855,13 @@ const Re = {
|
|
|
9855
9855
|
// the last property displayed
|
|
9856
9856
|
section: me.Basic
|
|
9857
9857
|
}
|
|
9858
|
-
}, p = te(!1), b = te(!1),
|
|
9859
|
-
var
|
|
9858
|
+
}, p = te(!1), b = te(!1), $ = te(""), A = te(), d = L(() => {
|
|
9859
|
+
var I, E, T;
|
|
9860
9860
|
if (!A.value)
|
|
9861
9861
|
return [];
|
|
9862
9862
|
const ce = [], re = Object.keys(A.value).length;
|
|
9863
9863
|
for (const R in A.value) {
|
|
9864
|
-
const F = (
|
|
9864
|
+
const F = (E = (I = i.configSchema) == null ? void 0 : I[R]) == null ? void 0 : E.order, Q = (T = f[R]) == null ? void 0 : T.order;
|
|
9865
9865
|
let G = re;
|
|
9866
9866
|
(Q || Q === 0) && (G = Q === -1 ? re + 1 : Q), F && (G = F === -1 ? re + 1 : F), ce.push([R, G]);
|
|
9867
9867
|
}
|
|
@@ -9881,12 +9881,12 @@ const Re = {
|
|
|
9881
9881
|
};
|
|
9882
9882
|
}).filter((R) => !R.hidden && R.key !== i.pluginConfigKey);
|
|
9883
9883
|
}), g = L(() => {
|
|
9884
|
-
var
|
|
9884
|
+
var I, E;
|
|
9885
9885
|
if (!A.value || !i.pluginConfigKey)
|
|
9886
9886
|
return [];
|
|
9887
9887
|
const T = A.value[i.pluginConfigKey] || {}, ce = Object.keys(T).length, re = [];
|
|
9888
9888
|
for (const R in T) {
|
|
9889
|
-
const F = (
|
|
9889
|
+
const F = (E = (I = i.pluginConfigSchema) == null ? void 0 : I[R]) == null ? void 0 : E.order, Q = T[R];
|
|
9890
9890
|
let G = Q != null && Q !== "" ? ce - 1 : ce;
|
|
9891
9891
|
F && (G = F === -1 ? ce + 1 : F), re.push([R, G]);
|
|
9892
9892
|
}
|
|
@@ -9906,54 +9906,54 @@ const Re = {
|
|
|
9906
9906
|
};
|
|
9907
9907
|
}).filter((R) => !R.hidden);
|
|
9908
9908
|
}), h = L(() => {
|
|
9909
|
-
var
|
|
9909
|
+
var I, E, T, ce;
|
|
9910
9910
|
return {
|
|
9911
|
-
basic: (
|
|
9912
|
-
advanced: (
|
|
9911
|
+
basic: (I = d.value) == null ? void 0 : I.filter((re) => re.section === me.Basic),
|
|
9912
|
+
advanced: (E = d.value) == null ? void 0 : E.filter((re) => re.section === me.Advanced),
|
|
9913
9913
|
plugin: (ce = g.value) == null ? void 0 : ce.concat((T = d.value) == null ? void 0 : T.filter((re) => re.section === me.Plugin))
|
|
9914
9914
|
};
|
|
9915
9915
|
}), v = L(() => {
|
|
9916
|
-
const
|
|
9917
|
-
return h.value.basic.length &&
|
|
9918
|
-
}), w = (
|
|
9919
|
-
var
|
|
9916
|
+
const I = [];
|
|
9917
|
+
return h.value.basic.length && I.push("basic"), h.value.advanced.length && I.push("advanced"), h.value.plugin.length && I.push("plugin"), I;
|
|
9918
|
+
}), w = (I) => !!(I.tooltip || n[`${I.key}-label-tooltip`]), y = L(() => {
|
|
9919
|
+
var I, E;
|
|
9920
9920
|
let T = `${i.config.apiBaseUrl}${i.fetchUrl}`;
|
|
9921
|
-
return i.config.app === "konnect" ? T = T.replace(/{controlPlaneId}/gi, ((
|
|
9922
|
-
}), B = (
|
|
9923
|
-
A.value &&
|
|
9921
|
+
return i.config.app === "konnect" ? T = T.replace(/{controlPlaneId}/gi, ((I = i.config) == null ? void 0 : I.controlPlaneId) || "") : i.config.app === "kongManager" && (T = T.replace(/\/{workspace}/gi, (E = i.config) != null && E.workspace ? `/${i.config.workspace}` : "")), T = T.replace(/{id}/gi, i.config.entityId), T;
|
|
9922
|
+
}), B = (I) => {
|
|
9923
|
+
A.value && I(JSON.stringify(A.value)) ? e("copy:success", A.value) : e("copy:error");
|
|
9924
9924
|
};
|
|
9925
|
-
return or(p, (
|
|
9926
|
-
e("loading",
|
|
9925
|
+
return or(p, (I) => {
|
|
9926
|
+
e("loading", I);
|
|
9927
9927
|
}, { immediate: !0 }), cn(async () => {
|
|
9928
9928
|
b.value = !1, p.value = !0;
|
|
9929
9929
|
try {
|
|
9930
|
-
const { data:
|
|
9930
|
+
const { data: I } = await c.get(y.value);
|
|
9931
9931
|
if (i.dataKey)
|
|
9932
|
-
if (typeof
|
|
9933
|
-
A.value = { ...
|
|
9932
|
+
if (typeof I[i.dataKey] < "u")
|
|
9933
|
+
A.value = { ...I[i.dataKey] };
|
|
9934
9934
|
else
|
|
9935
9935
|
throw new Error(s("errors.dataKeyUndefined", { dataKey: i.dataKey }));
|
|
9936
9936
|
else
|
|
9937
|
-
A.value = { ...
|
|
9938
|
-
Object.keys(i.configSchema).filter((
|
|
9939
|
-
A.value && typeof A.value[
|
|
9940
|
-
}), e("fetch:success",
|
|
9941
|
-
} catch (
|
|
9942
|
-
const
|
|
9943
|
-
|
|
9937
|
+
A.value = { ...I };
|
|
9938
|
+
Object.keys(i.configSchema).filter((E) => i.configSchema[E].forceShow).forEach((E) => {
|
|
9939
|
+
A.value && typeof A.value[E] > "u" && (A.value[E] = null);
|
|
9940
|
+
}), e("fetch:success", I);
|
|
9941
|
+
} catch (I) {
|
|
9942
|
+
const E = a(I);
|
|
9943
|
+
$.value = E.startsWith("code") ? s("baseConfigCard.errors.load") : E, b.value = !0, e("fetch:error", I);
|
|
9944
9944
|
} finally {
|
|
9945
9945
|
p.value = !1;
|
|
9946
9946
|
}
|
|
9947
|
-
}), (
|
|
9947
|
+
}), (I, E) => {
|
|
9948
9948
|
const T = ee("KButton"), ce = ee("KClipboardProvider"), re = ee("KSkeleton"), R = ee("KEmptyState"), F = ee("KCard");
|
|
9949
9949
|
return _(), fe(F, {
|
|
9950
9950
|
"border-variant": "noBorder",
|
|
9951
9951
|
class: "kong-ui-entity-base-config-card"
|
|
9952
9952
|
}, gr({
|
|
9953
9953
|
actions: x(() => [
|
|
9954
|
-
|
|
9955
|
-
Ce(
|
|
9956
|
-
|
|
9954
|
+
ne("div", Fh, [
|
|
9955
|
+
Ce(I.$slots, "actions", {}, void 0, !0),
|
|
9956
|
+
P(ce, null, {
|
|
9957
9957
|
default: x(({ copyToClipboard: Q }) => [
|
|
9958
9958
|
!p.value && !b.value ? (_(), fe(T, {
|
|
9959
9959
|
key: 0,
|
|
@@ -9962,7 +9962,7 @@ const Re = {
|
|
|
9962
9962
|
onClick: (G) => B(Q)
|
|
9963
9963
|
}, {
|
|
9964
9964
|
default: x(() => [
|
|
9965
|
-
ue(
|
|
9965
|
+
ue(U(k(s)("baseConfigCard.actions.copy")), 1)
|
|
9966
9966
|
]),
|
|
9967
9967
|
_: 2
|
|
9968
9968
|
}, 1032, ["onClick"])) : Ie("", !0)
|
|
@@ -9983,26 +9983,26 @@ const Re = {
|
|
|
9983
9983
|
"is-error": ""
|
|
9984
9984
|
}, {
|
|
9985
9985
|
message: x(() => [
|
|
9986
|
-
|
|
9986
|
+
ne("h3", null, U($.value), 1)
|
|
9987
9987
|
]),
|
|
9988
9988
|
_: 1
|
|
9989
9989
|
})) : Ie("", !0),
|
|
9990
|
-
|
|
9990
|
+
ne("div", qh, [
|
|
9991
9991
|
(_(!0), K(Fe, null, Ue(v.value, (Q) => (_(), K("div", {
|
|
9992
9992
|
key: `config-card-details-${Q}-props`,
|
|
9993
9993
|
class: Qt(`config-card-details-${Q}-props`),
|
|
9994
9994
|
"data-testid": `config-card-details-${Q}-props`
|
|
9995
9995
|
}, [
|
|
9996
|
-
Q !== "basic" ? (_(), K("div", Gh,
|
|
9996
|
+
Q !== "basic" ? (_(), K("div", Gh, U(Q === "advanced" ? k(s)("baseConfigCard.sections.advanced") : k(s)("baseConfigCard.sections.plugin")), 1)) : Ie("", !0),
|
|
9997
9997
|
(_(!0), K(Fe, null, Ue(h.value[Q], (G) => (_(), fe(ts, {
|
|
9998
9998
|
key: G.key,
|
|
9999
9999
|
item: G
|
|
10000
10000
|
}, gr({
|
|
10001
10001
|
label: x(() => [
|
|
10002
|
-
Ce(
|
|
10002
|
+
Ce(I.$slots, `${G.key}-label`, { row: G }, void 0, !0)
|
|
10003
10003
|
]),
|
|
10004
10004
|
[G.key]: x(({ rowValue: ke }) => [
|
|
10005
|
-
Ce(
|
|
10005
|
+
Ce(I.$slots, G.key, {
|
|
10006
10006
|
row: G,
|
|
10007
10007
|
rowValue: ke
|
|
10008
10008
|
}, void 0, !0)
|
|
@@ -10012,7 +10012,7 @@ const Re = {
|
|
|
10012
10012
|
w(G) ? {
|
|
10013
10013
|
name: "label-tooltip",
|
|
10014
10014
|
fn: x(() => [
|
|
10015
|
-
Ce(
|
|
10015
|
+
Ce(I.$slots, `${G.key}-label-tooltip`, { row: G }, void 0, !0)
|
|
10016
10016
|
]),
|
|
10017
10017
|
key: "0"
|
|
10018
10018
|
} : void 0
|
|
@@ -10025,9 +10025,9 @@ const Re = {
|
|
|
10025
10025
|
r.hideTitle ? void 0 : {
|
|
10026
10026
|
name: "title",
|
|
10027
10027
|
fn: x(() => [
|
|
10028
|
-
|
|
10029
|
-
Ce(
|
|
10030
|
-
ue(
|
|
10028
|
+
ne("div", Kh, [
|
|
10029
|
+
Ce(I.$slots, "title", {}, () => [
|
|
10030
|
+
ue(U(k(s)("baseConfigCard.title")), 1)
|
|
10031
10031
|
], !0)
|
|
10032
10032
|
])
|
|
10033
10033
|
]),
|
|
@@ -10091,7 +10091,7 @@ const Re = {
|
|
|
10091
10091
|
var t;
|
|
10092
10092
|
const i = r, n = ai(), { i18n: { t: s } } = Re.useI18n(), { getMessageFromError: a } = Re.useErrors(), { axiosInstance: u } = Re.useAxios({
|
|
10093
10093
|
headers: (t = i.config) == null ? void 0 : t.requestHeaders
|
|
10094
|
-
}), c = te(!1), f = te(!1), p = te(""), b = L(() => i.canSubmit === !1 || i.isReadonly),
|
|
10094
|
+
}), c = te(!1), f = te(!1), p = te(""), b = L(() => i.canSubmit === !1 || i.isReadonly), $ = L(() => {
|
|
10095
10095
|
var h, v;
|
|
10096
10096
|
if (!i.editId)
|
|
10097
10097
|
return "";
|
|
@@ -10110,7 +10110,7 @@ const Re = {
|
|
|
10110
10110
|
if (i.editId)
|
|
10111
10111
|
try {
|
|
10112
10112
|
f.value = !1, c.value = !0;
|
|
10113
|
-
const { data: h } = await u.get(
|
|
10113
|
+
const { data: h } = await u.get($.value);
|
|
10114
10114
|
e("fetch:success", h);
|
|
10115
10115
|
} catch (h) {
|
|
10116
10116
|
const v = a(h);
|
|
@@ -10119,8 +10119,8 @@ const Re = {
|
|
|
10119
10119
|
c.value = !1;
|
|
10120
10120
|
}
|
|
10121
10121
|
}), (h, v) => {
|
|
10122
|
-
const w = ee("KSkeleton"), y = ee("KEmptyState"), B = ee("KAlert"),
|
|
10123
|
-
return _(), fe(
|
|
10122
|
+
const w = ee("KSkeleton"), y = ee("KEmptyState"), B = ee("KAlert"), I = ee("KButton"), E = ee("KCard");
|
|
10123
|
+
return _(), fe(E, { class: "kong-ui-entity-base-form" }, {
|
|
10124
10124
|
body: x(() => [
|
|
10125
10125
|
c.value ? (_(), fe(w, {
|
|
10126
10126
|
key: 0,
|
|
@@ -10133,7 +10133,7 @@ const Re = {
|
|
|
10133
10133
|
"is-error": !0
|
|
10134
10134
|
}, {
|
|
10135
10135
|
message: x(() => [
|
|
10136
|
-
|
|
10136
|
+
ne("h3", null, U(p.value), 1)
|
|
10137
10137
|
]),
|
|
10138
10138
|
_: 1
|
|
10139
10139
|
}, 8, ["cta-text"])) : (_(), K("form", {
|
|
@@ -10149,27 +10149,27 @@ const Re = {
|
|
|
10149
10149
|
appearance: "danger",
|
|
10150
10150
|
"data-testid": "form-error"
|
|
10151
10151
|
}, null, 8, ["alert-message"])) : Ie("", !0),
|
|
10152
|
-
|
|
10152
|
+
ne("div", Yh, [
|
|
10153
10153
|
Ce(h.$slots, "form-actions", {}, () => [
|
|
10154
|
-
|
|
10154
|
+
P(I, {
|
|
10155
10155
|
appearance: "outline",
|
|
10156
10156
|
"data-testid": "form-cancel",
|
|
10157
10157
|
disabled: r.isReadonly,
|
|
10158
10158
|
type: "reset"
|
|
10159
10159
|
}, {
|
|
10160
10160
|
default: x(() => [
|
|
10161
|
-
ue(
|
|
10161
|
+
ue(U(k(s)("baseForm.actions.cancel")), 1)
|
|
10162
10162
|
]),
|
|
10163
10163
|
_: 1
|
|
10164
10164
|
}, 8, ["disabled"]),
|
|
10165
|
-
|
|
10165
|
+
P(I, {
|
|
10166
10166
|
appearance: "primary",
|
|
10167
10167
|
"data-testid": "form-submit",
|
|
10168
10168
|
disabled: b.value,
|
|
10169
10169
|
type: "submit"
|
|
10170
10170
|
}, {
|
|
10171
10171
|
default: x(() => [
|
|
10172
|
-
ue(
|
|
10172
|
+
ue(U(k(s)("baseForm.actions.save")), 1)
|
|
10173
10173
|
]),
|
|
10174
10174
|
_: 1
|
|
10175
10175
|
}, 8, ["disabled"])
|
|
@@ -10211,8 +10211,8 @@ const Re = {
|
|
|
10211
10211
|
}, u = () => {
|
|
10212
10212
|
var g, h, v;
|
|
10213
10213
|
f.value = ((g = i.value) == null ? void 0 : g.getBoundingClientRect().width) || 0, p.value = ((h = t.value) == null ? void 0 : h.clientWidth) || 0, b.value = ((v = c.value) == null ? void 0 : v.innerText) || "";
|
|
10214
|
-
}, c = te({}), f = te(0), p = te(0), b = te(""),
|
|
10215
|
-
|
|
10214
|
+
}, c = te({}), f = te(0), p = te(0), b = te(""), $ = L(() => [i.value, t.value]), A = or(
|
|
10215
|
+
$,
|
|
10216
10216
|
(g) => {
|
|
10217
10217
|
if (n.value && (a(), "ResizeObserver" in window && window)) {
|
|
10218
10218
|
s = new ResizeObserver((h) => {
|
|
@@ -10238,7 +10238,7 @@ const Re = {
|
|
|
10238
10238
|
class: "content-wrapper"
|
|
10239
10239
|
}, [
|
|
10240
10240
|
n.value ? (_(), K("span", Qh, [
|
|
10241
|
-
|
|
10241
|
+
P(v, {
|
|
10242
10242
|
disabled: !d.value,
|
|
10243
10243
|
label: b.value,
|
|
10244
10244
|
"max-width": "300",
|
|
@@ -10363,11 +10363,11 @@ const Re = {
|
|
|
10363
10363
|
const t = r, { i18n: { t: i } } = Re.useI18n(), n = L(() => t.cacheIdentifier || t.preferencesStorageKey), s = (y) => y.hasData || !!t.query, a = L(() => {
|
|
10364
10364
|
const y = [];
|
|
10365
10365
|
return Object.keys(t.tableHeaders).forEach((B) => {
|
|
10366
|
-
const
|
|
10366
|
+
const I = t.tableHeaders[B];
|
|
10367
10367
|
y.push({
|
|
10368
|
-
label:
|
|
10368
|
+
label: I.label ?? B,
|
|
10369
10369
|
key: B,
|
|
10370
|
-
sortable:
|
|
10370
|
+
sortable: I.sortable ?? !1
|
|
10371
10371
|
});
|
|
10372
10372
|
}), t.enableEntityActions && y.push({
|
|
10373
10373
|
key: "actions",
|
|
@@ -10391,8 +10391,8 @@ const Re = {
|
|
|
10391
10391
|
textOverflow: "ellipsis"
|
|
10392
10392
|
}), B;
|
|
10393
10393
|
}, b = () => {
|
|
10394
|
-
e("empty-state-cta-clicked"),
|
|
10395
|
-
},
|
|
10394
|
+
e("empty-state-cta-clicked"), $();
|
|
10395
|
+
}, $ = () => {
|
|
10396
10396
|
e("clear-search-input");
|
|
10397
10397
|
}, A = (y, B) => {
|
|
10398
10398
|
e("click:row", B);
|
|
@@ -10408,13 +10408,13 @@ const Re = {
|
|
|
10408
10408
|
t.preferencesStorageKey && g(t.preferencesStorageKey, y);
|
|
10409
10409
|
};
|
|
10410
10410
|
return (y, B) => {
|
|
10411
|
-
const
|
|
10411
|
+
const I = ee("KIcon"), E = ee("KButton"), T = ee("KDropdownMenu"), ce = ee("KTable"), re = ee("KCard");
|
|
10412
10412
|
return _(), fe(re, {
|
|
10413
10413
|
class: "kong-ui-entity-base-table",
|
|
10414
10414
|
title: r.title
|
|
10415
10415
|
}, {
|
|
10416
10416
|
body: x(() => [
|
|
10417
|
-
|
|
10417
|
+
P(ce, {
|
|
10418
10418
|
ref_key: "tableRefs",
|
|
10419
10419
|
ref: c,
|
|
10420
10420
|
"cache-identifier": n.value,
|
|
@@ -10446,7 +10446,7 @@ const Re = {
|
|
|
10446
10446
|
"onUpdate:tablePreferences": w
|
|
10447
10447
|
}, gr({
|
|
10448
10448
|
toolbar: x(({ state: R }) => [
|
|
10449
|
-
Ci(
|
|
10449
|
+
Ci(ne("div", ty, [
|
|
10450
10450
|
Ce(y.$slots, "toolbar-filter", {}, void 0, !0),
|
|
10451
10451
|
y.$slots["toolbar-button"] ? (_(), K("div", ry, [
|
|
10452
10452
|
Ce(y.$slots, "toolbar-button", {}, void 0, !0)
|
|
@@ -10456,11 +10456,11 @@ const Re = {
|
|
|
10456
10456
|
])
|
|
10457
10457
|
]),
|
|
10458
10458
|
actions: x(({ row: R, rowKey: F, rowValue: Q }) => [
|
|
10459
|
-
|
|
10459
|
+
ne("div", {
|
|
10460
10460
|
class: "actions-container",
|
|
10461
10461
|
"data-testid": R.name
|
|
10462
10462
|
}, [
|
|
10463
|
-
|
|
10463
|
+
P(T, {
|
|
10464
10464
|
"kpop-attributes": { placement: "bottomEnd" },
|
|
10465
10465
|
width: r.dropdownMenuWidth
|
|
10466
10466
|
}, {
|
|
@@ -10472,13 +10472,13 @@ const Re = {
|
|
|
10472
10472
|
}, void 0, !0)
|
|
10473
10473
|
]),
|
|
10474
10474
|
default: x(() => [
|
|
10475
|
-
|
|
10475
|
+
P(E, {
|
|
10476
10476
|
class: "actions-trigger",
|
|
10477
10477
|
"data-testid": "overflow-actions-button",
|
|
10478
10478
|
size: "small"
|
|
10479
10479
|
}, {
|
|
10480
10480
|
icon: x(() => [
|
|
10481
|
-
|
|
10481
|
+
P(I, {
|
|
10482
10482
|
color: k(Eh),
|
|
10483
10483
|
icon: "more",
|
|
10484
10484
|
size: "16"
|
|
@@ -10496,7 +10496,7 @@ const Re = {
|
|
|
10496
10496
|
Ue(r.tableHeaders, (R, F) => ({
|
|
10497
10497
|
name: F,
|
|
10498
10498
|
fn: x(({ row: Q, rowKey: G, rowValue: ke }) => [
|
|
10499
|
-
|
|
10499
|
+
P(ey, {
|
|
10500
10500
|
"key-name": String(F),
|
|
10501
10501
|
"row-el": f(Q)
|
|
10502
10502
|
}, {
|
|
@@ -10506,7 +10506,7 @@ const Re = {
|
|
|
10506
10506
|
rowKey: G,
|
|
10507
10507
|
rowValue: ke
|
|
10508
10508
|
}, () => [
|
|
10509
|
-
ue(
|
|
10509
|
+
ue(U(ke), 1)
|
|
10510
10510
|
], !0)
|
|
10511
10511
|
]),
|
|
10512
10512
|
_: 2
|
|
@@ -10584,34 +10584,34 @@ const Re = {
|
|
|
10584
10584
|
}, {
|
|
10585
10585
|
"body-content": x(() => [
|
|
10586
10586
|
r.error ? (_(), K("div", sy, [
|
|
10587
|
-
|
|
10587
|
+
P(f, { appearance: "danger" }, {
|
|
10588
10588
|
alertMessage: x(() => [
|
|
10589
|
-
ue(
|
|
10589
|
+
ue(U(r.error), 1)
|
|
10590
10590
|
]),
|
|
10591
10591
|
_: 1
|
|
10592
10592
|
})
|
|
10593
10593
|
])) : Ie("", !0),
|
|
10594
|
-
|
|
10594
|
+
P(k(i), {
|
|
10595
10595
|
class: "message",
|
|
10596
10596
|
keypath: t.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
|
|
10597
10597
|
tag: "p"
|
|
10598
10598
|
}, gr({
|
|
10599
10599
|
entityType: x(() => [
|
|
10600
|
-
ue(
|
|
10600
|
+
ue(U(t.entityType), 1)
|
|
10601
10601
|
]),
|
|
10602
10602
|
_: 2
|
|
10603
10603
|
}, [
|
|
10604
10604
|
t.entityName ? {
|
|
10605
10605
|
name: "entityName",
|
|
10606
10606
|
fn: x(() => [
|
|
10607
|
-
|
|
10607
|
+
ne("strong", null, U(t.entityName), 1)
|
|
10608
10608
|
]),
|
|
10609
10609
|
key: "0"
|
|
10610
10610
|
} : void 0
|
|
10611
10611
|
]), 1032, ["keypath"]),
|
|
10612
10612
|
t.description || u.$slots.description ? (_(), K("div", oy, [
|
|
10613
10613
|
Ce(u.$slots, "description", {}, () => [
|
|
10614
|
-
|
|
10614
|
+
ne("p", null, U(t.description), 1)
|
|
10615
10615
|
], !0)
|
|
10616
10616
|
])) : Ie("", !0)
|
|
10617
10617
|
]),
|
|
@@ -10643,15 +10643,15 @@ const Re = {
|
|
|
10643
10643
|
},
|
|
10644
10644
|
setup(r) {
|
|
10645
10645
|
return (e, t) => (_(), K("svg", cy, [
|
|
10646
|
-
|
|
10647
|
-
|
|
10646
|
+
ne("mask", ly, [
|
|
10647
|
+
ne("rect", {
|
|
10648
10648
|
fill: r.color,
|
|
10649
10649
|
height: "20",
|
|
10650
10650
|
width: "20"
|
|
10651
10651
|
}, null, 8, uy)
|
|
10652
10652
|
]),
|
|
10653
|
-
|
|
10654
|
-
|
|
10653
|
+
ne("g", fy, [
|
|
10654
|
+
ne("path", {
|
|
10655
10655
|
d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
|
|
10656
10656
|
fill: r.color
|
|
10657
10657
|
}, null, 8, dy)
|
|
@@ -10708,7 +10708,7 @@ const Re = {
|
|
|
10708
10708
|
value: y,
|
|
10709
10709
|
label: y
|
|
10710
10710
|
}));
|
|
10711
|
-
},
|
|
10711
|
+
}, $ = (h) => {
|
|
10712
10712
|
var v, w;
|
|
10713
10713
|
return ((w = (v = t.config.schema) == null ? void 0 : v[h]) == null ? void 0 : w.type) ?? "text";
|
|
10714
10714
|
}, A = (h) => {
|
|
@@ -10723,7 +10723,7 @@ const Re = {
|
|
|
10723
10723
|
h && (n.value = !1), e("update:modelValue", new URLSearchParams(v).toString());
|
|
10724
10724
|
};
|
|
10725
10725
|
return (h, v) => {
|
|
10726
|
-
const w = ee("KInput"), y = ee("KButton"), B = ee("KSelect"),
|
|
10726
|
+
const w = ee("KInput"), y = ee("KButton"), B = ee("KSelect"), I = ee("KMenuItem"), E = ee("KMenu");
|
|
10727
10727
|
return r.config.isExactMatch ? (_(), fe(w, {
|
|
10728
10728
|
key: 0,
|
|
10729
10729
|
autocomplete: "off",
|
|
@@ -10734,39 +10734,39 @@ const Re = {
|
|
|
10734
10734
|
"onUpdate:modelValue": f
|
|
10735
10735
|
}, {
|
|
10736
10736
|
icon: x(() => [
|
|
10737
|
-
|
|
10737
|
+
P(py)
|
|
10738
10738
|
]),
|
|
10739
10739
|
_: 1
|
|
10740
10740
|
}, 8, ["model-value", "placeholder"])) : (_(), K("div", hy, [
|
|
10741
|
-
|
|
10741
|
+
P(y, {
|
|
10742
10742
|
appearance: "btn-link",
|
|
10743
10743
|
"data-testid": "filter-button",
|
|
10744
10744
|
icon: "filter",
|
|
10745
10745
|
onClick: c
|
|
10746
10746
|
}, {
|
|
10747
10747
|
default: x(() => [
|
|
10748
|
-
ue(
|
|
10748
|
+
ue(U(k(i)("filter.filterButtonText")) + " " + U(a.value.length > 0 ? `(${a.value.length})` : ""), 1)
|
|
10749
10749
|
]),
|
|
10750
10750
|
_: 1
|
|
10751
10751
|
}),
|
|
10752
|
-
Ci(
|
|
10752
|
+
Ci(ne("div", {
|
|
10753
10753
|
class: "kong-ui-entity-filter-backdrop",
|
|
10754
10754
|
onClick: c
|
|
10755
10755
|
}, null, 512), [
|
|
10756
10756
|
[Bi, n.value]
|
|
10757
10757
|
]),
|
|
10758
|
-
Ci(
|
|
10758
|
+
Ci(P(E, { class: "kong-ui-entity-filter-menu" }, {
|
|
10759
10759
|
body: x(() => [
|
|
10760
|
-
(_(!0), K(Fe, null, Ue(u.value, (T, ce) => (_(), fe(
|
|
10760
|
+
(_(!0), K(Fe, null, Ue(u.value, (T, ce) => (_(), fe(I, {
|
|
10761
10761
|
key: T.value,
|
|
10762
10762
|
"data-testid": T.value,
|
|
10763
10763
|
expandable: "",
|
|
10764
10764
|
"last-menu-item": ce === u.value.length - 1
|
|
10765
10765
|
}, {
|
|
10766
10766
|
itemTitle: x(() => [
|
|
10767
|
-
|
|
10768
|
-
ue(
|
|
10769
|
-
Ci(
|
|
10767
|
+
ne("span", yy, [
|
|
10768
|
+
ue(U(T.label) + " ", 1),
|
|
10769
|
+
Ci(ne("span", gy, null, 512), [
|
|
10770
10770
|
[Bi, a.value.includes(T.value)]
|
|
10771
10771
|
])
|
|
10772
10772
|
])
|
|
@@ -10774,11 +10774,11 @@ const Re = {
|
|
|
10774
10774
|
itemBody: x(() => {
|
|
10775
10775
|
var re, R;
|
|
10776
10776
|
return [
|
|
10777
|
-
|
|
10778
|
-
|
|
10777
|
+
ne("div", vy, [
|
|
10778
|
+
ne("label", {
|
|
10779
10779
|
class: "menu-item-label",
|
|
10780
10780
|
for: p(T.value)
|
|
10781
|
-
},
|
|
10781
|
+
}, U(k(i)("filter.fieldLabel")), 9, my),
|
|
10782
10782
|
((R = (re = r.config.schema) == null ? void 0 : re[T.value]) == null ? void 0 : R.type) === "select" ? (_(), fe(B, {
|
|
10783
10783
|
key: 0,
|
|
10784
10784
|
id: p(T.value),
|
|
@@ -10795,29 +10795,29 @@ const Re = {
|
|
|
10795
10795
|
autocomplete: "off",
|
|
10796
10796
|
placeholder: k(i)("filter.inputPlaceholder"),
|
|
10797
10797
|
size: "small",
|
|
10798
|
-
type:
|
|
10798
|
+
type: $(T.value)
|
|
10799
10799
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
|
|
10800
10800
|
]),
|
|
10801
|
-
|
|
10802
|
-
|
|
10801
|
+
ne("div", by, [
|
|
10802
|
+
P(y, {
|
|
10803
10803
|
appearance: "btn-link",
|
|
10804
10804
|
"data-testid": "apply-filter",
|
|
10805
10805
|
size: "small",
|
|
10806
10806
|
onClick: v[0] || (v[0] = (F) => g(!0))
|
|
10807
10807
|
}, {
|
|
10808
10808
|
default: x(() => [
|
|
10809
|
-
ue(
|
|
10809
|
+
ue(U(k(i)("filter.applyButtonText")), 1)
|
|
10810
10810
|
]),
|
|
10811
10811
|
_: 1
|
|
10812
10812
|
}),
|
|
10813
|
-
|
|
10813
|
+
P(y, {
|
|
10814
10814
|
appearance: "btn-link",
|
|
10815
10815
|
"data-testid": "clear-filter",
|
|
10816
10816
|
size: "small",
|
|
10817
10817
|
onClick: (F) => A(T.value)
|
|
10818
10818
|
}, {
|
|
10819
10819
|
default: x(() => [
|
|
10820
|
-
ue(
|
|
10820
|
+
ue(U(k(i)("filter.clearButtonText")), 1)
|
|
10821
10821
|
]),
|
|
10822
10822
|
_: 2
|
|
10823
10823
|
}, 1032, ["onClick"])
|
|
@@ -10828,9 +10828,9 @@ const Re = {
|
|
|
10828
10828
|
}, 1032, ["data-testid", "last-menu-item"]))), 128))
|
|
10829
10829
|
]),
|
|
10830
10830
|
actionButton: x(() => [
|
|
10831
|
-
|
|
10831
|
+
P(y, { onClick: d }, {
|
|
10832
10832
|
default: x(() => [
|
|
10833
|
-
ue(
|
|
10833
|
+
ue(U(k(i)("filter.clearAllButtonText")), 1)
|
|
10834
10834
|
]),
|
|
10835
10835
|
_: 1
|
|
10836
10836
|
})
|
|
@@ -10910,22 +10910,22 @@ const Re = {
|
|
|
10910
10910
|
return (t, i) => (_(), K("fieldset", {
|
|
10911
10911
|
class: Qt(["kong-ui-entity-form-section", { "has-divider": r.hasDivider }])
|
|
10912
10912
|
}, [
|
|
10913
|
-
|
|
10913
|
+
ne("div", Sy, [
|
|
10914
10914
|
r.hideInfoHeader ? Ie("", !0) : (_(), K("div", {
|
|
10915
10915
|
key: 0,
|
|
10916
10916
|
class: Qt(["form-section-info", { sticky: r.stickyInfoHeader }])
|
|
10917
10917
|
}, [
|
|
10918
|
-
r.title ? (_(), K("h4", ky,
|
|
10918
|
+
r.title ? (_(), K("h4", ky, U(r.title), 1)) : Ie("", !0),
|
|
10919
10919
|
r.description || k(e).description ? (_(), K("div", Ay, [
|
|
10920
10920
|
Ce(t.$slots, "description", {}, () => [
|
|
10921
|
-
|
|
10921
|
+
ne("p", null, U(r.description), 1)
|
|
10922
10922
|
], !0)
|
|
10923
10923
|
])) : Ie("", !0),
|
|
10924
10924
|
k(e).footer ? (_(), K("div", xy, [
|
|
10925
10925
|
Ce(t.$slots, "footer", {}, void 0, !0)
|
|
10926
10926
|
])) : Ie("", !0)
|
|
10927
10927
|
], 2)),
|
|
10928
|
-
|
|
10928
|
+
ne("div", Cy, [
|
|
10929
10929
|
Ce(t.$slots, "default", {}, void 0, !0)
|
|
10930
10930
|
])
|
|
10931
10931
|
])
|
|
@@ -10988,7 +10988,7 @@ const Iy = { class: "kong-ui-entities-certificates-list" }, Ey = { key: 0 }, _y
|
|
|
10988
10988
|
san: { label: i("certificates.list.table_headers.san") },
|
|
10989
10989
|
cert: { label: i("certificates.list.table_headers.cert") },
|
|
10990
10990
|
tags: { label: i("certificates.list.table_headers.tags"), sortable: !0 }
|
|
10991
|
-
},
|
|
10991
|
+
}, $ = L(() => {
|
|
10992
10992
|
var ie, Ee;
|
|
10993
10993
|
let J = `${t.config.apiBaseUrl}${zr.list[t.config.app]}`;
|
|
10994
10994
|
return t.config.app === "konnect" ? J = J.replace(/{controlPlaneId}/gi, ((ie = t.config) == null ? void 0 : ie.controlPlaneId) || "") : t.config.app === "kongManager" && (J = J.replace(/\/{workspace}/gi, (Ee = t.config) != null && Ee.workspace ? `/${t.config.workspace}` : "")), J;
|
|
@@ -11001,7 +11001,7 @@ const Iy = { class: "kong-ui-entities-certificates-list" }, Ey = { key: 0 }, _y
|
|
|
11001
11001
|
isExactMatch: J,
|
|
11002
11002
|
schema: t.config.filterSchema
|
|
11003
11003
|
};
|
|
11004
|
-
}), { fetcher: g, fetcherState: h } = bf(t.config,
|
|
11004
|
+
}), { fetcher: g, fetcherState: h } = bf(t.config, $.value), v = () => {
|
|
11005
11005
|
A.value = "";
|
|
11006
11006
|
}, w = () => {
|
|
11007
11007
|
c.value++;
|
|
@@ -11020,7 +11020,7 @@ const Iy = { class: "kong-ui-entities-certificates-list" }, Ey = { key: 0 }, _y
|
|
|
11020
11020
|
field: "id",
|
|
11021
11021
|
message: i("certificates.copy.success", { val: Ee })
|
|
11022
11022
|
});
|
|
11023
|
-
},
|
|
11023
|
+
}, I = (J, ie) => {
|
|
11024
11024
|
const Ee = JSON.stringify(J);
|
|
11025
11025
|
if (!ie(Ee)) {
|
|
11026
11026
|
e("copy:error", {
|
|
@@ -11033,7 +11033,7 @@ const Iy = { class: "kong-ui-entities-certificates-list" }, Ey = { key: 0 }, _y
|
|
|
11033
11033
|
entity: J,
|
|
11034
11034
|
message: i("certificates.copy.success_brief")
|
|
11035
11035
|
});
|
|
11036
|
-
},
|
|
11036
|
+
}, E = (J, ie) => {
|
|
11037
11037
|
J.type === "error" ? e("copy:error", {
|
|
11038
11038
|
entity: ie,
|
|
11039
11039
|
field: "cert",
|
|
@@ -11058,7 +11058,7 @@ const Iy = { class: "kong-ui-entities-certificates-list" }, Ey = { key: 0 }, _y
|
|
|
11058
11058
|
label: i("certificates.actions.addSni"),
|
|
11059
11059
|
to: t.config.getCreateSniRoute(J)
|
|
11060
11060
|
};
|
|
11061
|
-
}, F = te(void 0), Q = te(!1), G = te(!1), ke = te(""), Le = vf(t.config,
|
|
11061
|
+
}, F = te(void 0), Q = te(!1), G = te(!1), ke = te(""), Le = vf(t.config, $.value), { certificateDataCache: Ve, getCertificateData: bt } = pt.useCertificate(), fr = (J) => {
|
|
11062
11062
|
F.value = J, Q.value = !0;
|
|
11063
11063
|
}, jt = () => {
|
|
11064
11064
|
Q.value = !1;
|
|
@@ -11091,9 +11091,9 @@ const Iy = { class: "kong-ui-entities-certificates-list" }, Ey = { key: 0 }, _y
|
|
|
11091
11091
|
return cn(async () => {
|
|
11092
11092
|
await t.canCreate() && (W.value.title = i("certificates.list.empty_state.title"), W.value.ctaText = i("certificates.actions.create"));
|
|
11093
11093
|
}), (J, ie) => {
|
|
11094
|
-
const Ee = ee("KButton"), Je = ee("KBadge"), dr = ee("KTruncate"),
|
|
11094
|
+
const Ee = ee("KButton"), Je = ee("KBadge"), dr = ee("KTruncate"), se = ee("KDropdownItem"), we = ee("KClipboardProvider");
|
|
11095
11095
|
return _(), K("div", Iy, [
|
|
11096
|
-
|
|
11096
|
+
P(k(hf), {
|
|
11097
11097
|
"cache-identifier": r.cacheIdentifier,
|
|
11098
11098
|
"disable-pagination-page-jump": "",
|
|
11099
11099
|
"disable-sorting": f.value,
|
|
@@ -11111,25 +11111,25 @@ const Iy = { class: "kong-ui-entities-certificates-list" }, Ey = { key: 0 }, _y
|
|
|
11111
11111
|
onSort: w
|
|
11112
11112
|
}, {
|
|
11113
11113
|
"toolbar-filter": x(() => [
|
|
11114
|
-
|
|
11114
|
+
P(k(gf), {
|
|
11115
11115
|
modelValue: A.value,
|
|
11116
11116
|
"onUpdate:modelValue": ie[0] || (ie[0] = (Z) => A.value = Z),
|
|
11117
11117
|
config: d.value
|
|
11118
11118
|
}, null, 8, ["modelValue", "config"])
|
|
11119
11119
|
]),
|
|
11120
11120
|
"toolbar-button": x(() => [
|
|
11121
|
-
|
|
11121
|
+
P(k(wt), {
|
|
11122
11122
|
"auth-function": () => r.canCreate()
|
|
11123
11123
|
}, {
|
|
11124
11124
|
default: x(() => [
|
|
11125
|
-
|
|
11125
|
+
P(Ee, {
|
|
11126
11126
|
appearance: "primary",
|
|
11127
11127
|
"data-testid": "toolbar-add-certificate",
|
|
11128
11128
|
icon: "plus",
|
|
11129
11129
|
to: r.config.createRoute
|
|
11130
11130
|
}, {
|
|
11131
11131
|
default: x(() => [
|
|
11132
|
-
ue(
|
|
11132
|
+
ue(U(k(i)("certificates.list.toolbar_actions.new_certificate")), 1)
|
|
11133
11133
|
]),
|
|
11134
11134
|
_: 1
|
|
11135
11135
|
}, 8, ["to"])
|
|
@@ -11140,26 +11140,26 @@ const Iy = { class: "kong-ui-entities-certificates-list" }, Ey = { key: 0 }, _y
|
|
|
11140
11140
|
subject: x(({ row: Z }) => {
|
|
11141
11141
|
var Se;
|
|
11142
11142
|
return [
|
|
11143
|
-
r.config.app === "konnect" ? (_(), K("b", Ey,
|
|
11143
|
+
r.config.app === "konnect" ? (_(), K("b", Ey, U((Se = Z == null ? void 0 : Z.metadata) != null && Se.subject ? Z.metadata.subject : "-"), 1)) : (_(), K("b", _y, U(k(bt)(Z).schemaSubject || "-"), 1))
|
|
11144
11144
|
];
|
|
11145
11145
|
}),
|
|
11146
11146
|
expiry: x(({ row: Z }) => {
|
|
11147
11147
|
var Se;
|
|
11148
11148
|
return [
|
|
11149
|
-
r.config.app === "konnect" ? (_(), K("span", Ny,
|
|
11149
|
+
r.config.app === "konnect" ? (_(), K("span", Ny, U((Se = Z == null ? void 0 : Z.metadata) != null && Se.expiry ? k(n)(Z.metadata.expiry) : "-"), 1)) : (_(), K("span", Oy, U(k(bt)(Z).schemaExpiry ? k(n)(k(bt)(Z).schemaExpiry) : "-"), 1))
|
|
11150
11150
|
];
|
|
11151
11151
|
}),
|
|
11152
11152
|
san: x(({ row: Z }) => {
|
|
11153
11153
|
var Se;
|
|
11154
11154
|
return [
|
|
11155
|
-
r.config.app === "konnect" ? (_(), K("span", Ty,
|
|
11155
|
+
r.config.app === "konnect" ? (_(), K("span", Ty, U((Se = Z == null ? void 0 : Z.metadata) != null && Se.dns_names ? `dns=${Z.metadata.dns_names.join(", ")}` : "-"), 1)) : (_(), K("span", jy, U(k(bt)(Z).schemaSanNames || "-"), 1))
|
|
11156
11156
|
];
|
|
11157
11157
|
}),
|
|
11158
11158
|
cert: x(({ row: Z }) => [
|
|
11159
11159
|
Z != null && Z.cert ? (_(), fe(k(Hp), {
|
|
11160
11160
|
key: 0,
|
|
11161
11161
|
"data-testid": "copy-certificate-cert",
|
|
11162
|
-
notify: (Se) =>
|
|
11162
|
+
notify: (Se) => E(Se, Z),
|
|
11163
11163
|
truncated: !0,
|
|
11164
11164
|
uuid: Z.cert
|
|
11165
11165
|
}, null, 8, ["notify", "uuid"])) : (_(), K("span", Py, "-"))
|
|
@@ -11175,7 +11175,7 @@ const Iy = { class: "kong-ui-entities-certificates-list" }, Ey = { key: 0 }, _y
|
|
|
11175
11175
|
}, ["stop"]))
|
|
11176
11176
|
}, {
|
|
11177
11177
|
default: x(() => [
|
|
11178
|
-
ue(
|
|
11178
|
+
ue(U(Kt), 1)
|
|
11179
11179
|
]),
|
|
11180
11180
|
_: 2
|
|
11181
11181
|
}, 1024))), 128))
|
|
@@ -11185,39 +11185,39 @@ const Iy = { class: "kong-ui-entities-certificates-list" }, Ey = { key: 0 }, _y
|
|
|
11185
11185
|
];
|
|
11186
11186
|
}),
|
|
11187
11187
|
actions: x(({ row: Z }) => [
|
|
11188
|
-
|
|
11188
|
+
P(we, null, {
|
|
11189
11189
|
default: x(({ copyToClipboard: Se }) => [
|
|
11190
|
-
|
|
11190
|
+
P(se, {
|
|
11191
11191
|
"data-testid": "action-entity-copy-id",
|
|
11192
11192
|
onClick: (Kt) => B(Z, Se)
|
|
11193
11193
|
}, {
|
|
11194
11194
|
default: x(() => [
|
|
11195
|
-
ue(
|
|
11195
|
+
ue(U(k(i)("certificates.actions.copy_id")), 1)
|
|
11196
11196
|
]),
|
|
11197
11197
|
_: 2
|
|
11198
11198
|
}, 1032, ["onClick"])
|
|
11199
11199
|
]),
|
|
11200
11200
|
_: 2
|
|
11201
11201
|
}, 1024),
|
|
11202
|
-
|
|
11202
|
+
P(we, null, {
|
|
11203
11203
|
default: x(({ copyToClipboard: Se }) => [
|
|
11204
|
-
|
|
11204
|
+
P(se, {
|
|
11205
11205
|
"data-testid": "action-entity-copy-json",
|
|
11206
|
-
onClick: (Kt) =>
|
|
11206
|
+
onClick: (Kt) => I(Z, Se)
|
|
11207
11207
|
}, {
|
|
11208
11208
|
default: x(() => [
|
|
11209
|
-
ue(
|
|
11209
|
+
ue(U(k(i)("certificates.actions.copy_json")), 1)
|
|
11210
11210
|
]),
|
|
11211
11211
|
_: 2
|
|
11212
11212
|
}, 1032, ["onClick"])
|
|
11213
11213
|
]),
|
|
11214
11214
|
_: 2
|
|
11215
11215
|
}, 1024),
|
|
11216
|
-
|
|
11216
|
+
P(k(wt), {
|
|
11217
11217
|
"auth-function": () => r.canRetrieve(Z)
|
|
11218
11218
|
}, {
|
|
11219
11219
|
default: x(() => [
|
|
11220
|
-
|
|
11220
|
+
P(se, {
|
|
11221
11221
|
"data-testid": "action-entity-view",
|
|
11222
11222
|
"has-divider": "",
|
|
11223
11223
|
item: ce(Z.id)
|
|
@@ -11225,11 +11225,11 @@ const Iy = { class: "kong-ui-entities-certificates-list" }, Ey = { key: 0 }, _y
|
|
|
11225
11225
|
]),
|
|
11226
11226
|
_: 2
|
|
11227
11227
|
}, 1032, ["auth-function"]),
|
|
11228
|
-
|
|
11228
|
+
P(k(wt), {
|
|
11229
11229
|
"auth-function": () => r.canEdit(Z)
|
|
11230
11230
|
}, {
|
|
11231
11231
|
default: x(() => [
|
|
11232
|
-
|
|
11232
|
+
P(se, {
|
|
11233
11233
|
"data-testid": "action-entity-edit",
|
|
11234
11234
|
item: re(Z.id)
|
|
11235
11235
|
}, null, 8, ["item"])
|
|
@@ -11241,25 +11241,25 @@ const Iy = { class: "kong-ui-entities-certificates-list" }, Ey = { key: 0 }, _y
|
|
|
11241
11241
|
"auth-function": () => r.canCreateSni()
|
|
11242
11242
|
}, {
|
|
11243
11243
|
default: x(() => [
|
|
11244
|
-
|
|
11244
|
+
P(se, {
|
|
11245
11245
|
"data-testid": "action-entity-add-sni",
|
|
11246
11246
|
item: R(Z.id)
|
|
11247
11247
|
}, null, 8, ["item"])
|
|
11248
11248
|
]),
|
|
11249
11249
|
_: 2
|
|
11250
11250
|
}, 1032, ["auth-function"])) : Ie("", !0),
|
|
11251
|
-
|
|
11251
|
+
P(k(wt), {
|
|
11252
11252
|
"auth-function": () => r.canDelete(Z)
|
|
11253
11253
|
}, {
|
|
11254
11254
|
default: x(() => [
|
|
11255
|
-
|
|
11255
|
+
P(se, {
|
|
11256
11256
|
"data-testid": "action-entity-delete",
|
|
11257
11257
|
"has-divider": "",
|
|
11258
11258
|
"is-dangerous": "",
|
|
11259
11259
|
onClick: (Se) => fr(Z)
|
|
11260
11260
|
}, {
|
|
11261
11261
|
default: x(() => [
|
|
11262
|
-
ue(
|
|
11262
|
+
ue(U(k(i)("certificates.actions.delete")), 1)
|
|
11263
11263
|
]),
|
|
11264
11264
|
_: 2
|
|
11265
11265
|
}, 1032, ["onClick"])
|
|
@@ -11269,7 +11269,7 @@ const Iy = { class: "kong-ui-entities-certificates-list" }, Ey = { key: 0 }, _y
|
|
|
11269
11269
|
]),
|
|
11270
11270
|
_: 1
|
|
11271
11271
|
}, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers"]),
|
|
11272
|
-
|
|
11272
|
+
P(k(yf), {
|
|
11273
11273
|
"action-pending": G.value,
|
|
11274
11274
|
"entity-type": k(xa).Certificate,
|
|
11275
11275
|
error: ke.value,
|
|
@@ -11279,16 +11279,16 @@ const Iy = { class: "kong-ui-entities-certificates-list" }, Ey = { key: 0 }, _y
|
|
|
11279
11279
|
onProceed: Ht
|
|
11280
11280
|
}, {
|
|
11281
11281
|
description: x(() => [
|
|
11282
|
-
|
|
11282
|
+
P(k(s), {
|
|
11283
11283
|
keypath: "certificates.delete.description",
|
|
11284
11284
|
scope: "global"
|
|
11285
11285
|
}, {
|
|
11286
11286
|
"bolded-text": x(() => [
|
|
11287
|
-
|
|
11287
|
+
ne("b", null, U(k(i)("certificates.delete.boldedText")), 1)
|
|
11288
11288
|
]),
|
|
11289
11289
|
_: 1
|
|
11290
11290
|
}),
|
|
11291
|
-
|
|
11291
|
+
ne("p", null, U(k(i)("certificates.delete.description2")), 1)
|
|
11292
11292
|
]),
|
|
11293
11293
|
_: 1
|
|
11294
11294
|
}, 8, ["action-pending", "entity-type", "error", "title", "visible"])
|
|
@@ -11338,21 +11338,21 @@ const Lr = (r, e) => {
|
|
|
11338
11338
|
certAlt: "",
|
|
11339
11339
|
keyAlt: "",
|
|
11340
11340
|
tags: ""
|
|
11341
|
-
}),
|
|
11341
|
+
}), $ = L(() => (f.value === Zt.Create || JSON.stringify(p.fields) !== JSON.stringify(b)) && !!p.fields.cert && !!p.fields.key), A = (y) => {
|
|
11342
11342
|
var B;
|
|
11343
11343
|
p.fields.cert = (y == null ? void 0 : y.cert) || "", p.fields.key = (y == null ? void 0 : y.key) || "", p.fields.certAlt = (y == null ? void 0 : y.cert_alt) || "", p.fields.keyAlt = (y == null ? void 0 : y.key_alt) || "", p.fields.tags = ((B = y == null ? void 0 : y.tags) == null ? void 0 : B.join(", ")) || "", Object.assign(b, p.fields);
|
|
11344
11344
|
}, d = () => {
|
|
11345
11345
|
i.push(t.config.cancelRoute);
|
|
11346
11346
|
}, g = L(() => {
|
|
11347
|
-
var B,
|
|
11347
|
+
var B, I;
|
|
11348
11348
|
let y = `${t.config.apiBaseUrl}${zr.form[t.config.app].validate}`;
|
|
11349
|
-
return t.config.app === "konnect" ? y = y.replace(/{controlPlaneId}/gi, ((B = t.config) == null ? void 0 : B.controlPlaneId) || "") : t.config.app === "kongManager" && (y = y.replace(/\/{workspace}/gi, (
|
|
11349
|
+
return t.config.app === "konnect" ? y = y.replace(/{controlPlaneId}/gi, ((B = t.config) == null ? void 0 : B.controlPlaneId) || "") : t.config.app === "kongManager" && (y = y.replace(/\/{workspace}/gi, (I = t.config) != null && I.workspace ? `/${t.config.workspace}` : "")), y = y.replace(/{id}/gi, t.certificateId), y;
|
|
11350
11350
|
}), h = L(() => {
|
|
11351
|
-
var B,
|
|
11351
|
+
var B, I;
|
|
11352
11352
|
let y = `${t.config.apiBaseUrl}${zr.form[t.config.app][f.value]}`;
|
|
11353
|
-
return t.config.app === "konnect" ? y = y.replace(/{controlPlaneId}/gi, ((B = t.config) == null ? void 0 : B.controlPlaneId) || "") : t.config.app === "kongManager" && (y = y.replace(/\/{workspace}/gi, (
|
|
11353
|
+
return t.config.app === "konnect" ? y = y.replace(/{controlPlaneId}/gi, ((B = t.config) == null ? void 0 : B.controlPlaneId) || "") : t.config.app === "kongManager" && (y = y.replace(/\/{workspace}/gi, (I = t.config) != null && I.workspace ? `/${t.config.workspace}` : "")), y = y.replace(/{id}/gi, t.certificateId), y;
|
|
11354
11354
|
}), v = async () => {
|
|
11355
|
-
var y, B,
|
|
11355
|
+
var y, B, I, E, T, ce, re, R, F;
|
|
11356
11356
|
try {
|
|
11357
11357
|
p.isReadonly = !0;
|
|
11358
11358
|
const Q = {
|
|
@@ -11363,7 +11363,7 @@ const Lr = (r, e) => {
|
|
|
11363
11363
|
tags: (B = (y = p.fields.tags.split(",")) == null ? void 0 : y.map((ke) => String(ke || "").trim())) == null ? void 0 : B.filter((ke) => ke !== "")
|
|
11364
11364
|
};
|
|
11365
11365
|
let G;
|
|
11366
|
-
await u.post(g.value, Q), f.value === "create" ? G = await u.post(h.value, Q) : f.value === "edit" && (G = ((
|
|
11366
|
+
await u.post(g.value, Q), f.value === "create" ? G = await u.post(h.value, Q) : f.value === "edit" && (G = ((I = t.config) == null ? void 0 : I.app) === "konnect" ? await u.put(h.value, Q) : await u.patch(h.value, Q)), p.fields.cert = ((E = G == null ? void 0 : G.data) == null ? void 0 : E.cert) || "", p.fields.key = ((T = G == null ? void 0 : G.data) == null ? void 0 : T.key) || "", p.fields.certAlt = ((ce = G == null ? void 0 : G.data) == null ? void 0 : ce.cert_alt) || "", p.fields.keyAlt = ((re = G == null ? void 0 : G.data) == null ? void 0 : re.key_alt) || "", p.fields.tags = ((F = (R = G == null ? void 0 : G.data) == null ? void 0 : R.tags) == null ? void 0 : F.join(", ")) || "", Object.assign(b, p.fields), e("update", G == null ? void 0 : G.data);
|
|
11367
11367
|
} catch (Q) {
|
|
11368
11368
|
p.errorMessage = a(Q), e("error", Q);
|
|
11369
11369
|
} finally {
|
|
@@ -11371,10 +11371,10 @@ const Lr = (r, e) => {
|
|
|
11371
11371
|
}
|
|
11372
11372
|
};
|
|
11373
11373
|
return (y, B) => {
|
|
11374
|
-
const
|
|
11374
|
+
const I = ee("KTextArea"), E = ee("KInput");
|
|
11375
11375
|
return _(), K("div", Vy, [
|
|
11376
|
-
|
|
11377
|
-
"can-submit":
|
|
11376
|
+
P(k(pf), {
|
|
11377
|
+
"can-submit": $.value,
|
|
11378
11378
|
config: r.config,
|
|
11379
11379
|
"edit-id": r.certificateId,
|
|
11380
11380
|
"error-message": p.errorMessage,
|
|
@@ -11387,12 +11387,12 @@ const Lr = (r, e) => {
|
|
|
11387
11387
|
onSubmit: v
|
|
11388
11388
|
}, {
|
|
11389
11389
|
default: x(() => [
|
|
11390
|
-
|
|
11390
|
+
P(k(on), {
|
|
11391
11391
|
description: k(s)("certificates.form.sections.ssl.description"),
|
|
11392
11392
|
title: k(s)("certificates.form.sections.ssl.title")
|
|
11393
11393
|
}, {
|
|
11394
11394
|
default: x(() => [
|
|
11395
|
-
|
|
11395
|
+
P(I, {
|
|
11396
11396
|
modelValue: p.fields.cert,
|
|
11397
11397
|
"onUpdate:modelValue": B[0] || (B[0] = (T) => p.fields.cert = T),
|
|
11398
11398
|
modelModifiers: { trim: !0 },
|
|
@@ -11404,19 +11404,19 @@ const Lr = (r, e) => {
|
|
|
11404
11404
|
required: ""
|
|
11405
11405
|
}, {
|
|
11406
11406
|
"label-tooltip": x(() => [
|
|
11407
|
-
|
|
11407
|
+
P(k(n), {
|
|
11408
11408
|
keypath: "certificates.form.fields.cert.tooltip",
|
|
11409
11409
|
scope: "global"
|
|
11410
11410
|
}, {
|
|
11411
11411
|
emphasis: x(() => [
|
|
11412
|
-
|
|
11412
|
+
ne("em", null, U(k(s)("certificates.form.fields.cert.emphasis")), 1)
|
|
11413
11413
|
]),
|
|
11414
11414
|
_: 1
|
|
11415
11415
|
})
|
|
11416
11416
|
]),
|
|
11417
11417
|
_: 1
|
|
11418
11418
|
}, 8, ["modelValue", "label", "readonly"]),
|
|
11419
|
-
|
|
11419
|
+
P(I, {
|
|
11420
11420
|
modelValue: p.fields.key,
|
|
11421
11421
|
"onUpdate:modelValue": B[1] || (B[1] = (T) => p.fields.key = T),
|
|
11422
11422
|
modelModifiers: { trim: !0 },
|
|
@@ -11428,47 +11428,73 @@ const Lr = (r, e) => {
|
|
|
11428
11428
|
required: ""
|
|
11429
11429
|
}, {
|
|
11430
11430
|
"label-tooltip": x(() => [
|
|
11431
|
-
|
|
11431
|
+
P(k(n), {
|
|
11432
11432
|
keypath: "certificates.form.fields.key.tooltip",
|
|
11433
11433
|
scope: "global"
|
|
11434
11434
|
}, {
|
|
11435
11435
|
emphasis: x(() => [
|
|
11436
|
-
|
|
11436
|
+
ne("em", null, U(k(s)("certificates.form.fields.key.emphasis")), 1)
|
|
11437
11437
|
]),
|
|
11438
11438
|
_: 1
|
|
11439
11439
|
})
|
|
11440
11440
|
]),
|
|
11441
11441
|
_: 1
|
|
11442
11442
|
}, 8, ["modelValue", "label", "readonly"]),
|
|
11443
|
-
|
|
11443
|
+
P(I, {
|
|
11444
11444
|
modelValue: p.fields.certAlt,
|
|
11445
11445
|
"onUpdate:modelValue": B[2] || (B[2] = (T) => p.fields.certAlt = T),
|
|
11446
11446
|
modelModifiers: { trim: !0 },
|
|
11447
|
-
|
|
11447
|
+
class: "certificate-form-textarea",
|
|
11448
11448
|
"data-testid": "certificate-form-cert-alt",
|
|
11449
|
+
"disable-character-limit": "",
|
|
11449
11450
|
label: k(s)("certificates.form.fields.cert_alt.label"),
|
|
11450
|
-
readonly: p.isReadonly
|
|
11451
|
-
|
|
11452
|
-
|
|
11453
|
-
|
|
11451
|
+
readonly: p.isReadonly
|
|
11452
|
+
}, {
|
|
11453
|
+
"label-tooltip": x(() => [
|
|
11454
|
+
P(k(n), {
|
|
11455
|
+
keypath: "certificates.form.fields.cert_alt.tooltip",
|
|
11456
|
+
scope: "global"
|
|
11457
|
+
}, {
|
|
11458
|
+
emphasis: x(() => [
|
|
11459
|
+
ne("em", null, U(k(s)("certificates.form.fields.cert_alt.emphasis")), 1)
|
|
11460
|
+
]),
|
|
11461
|
+
_: 1
|
|
11462
|
+
})
|
|
11463
|
+
]),
|
|
11464
|
+
_: 1
|
|
11465
|
+
}, 8, ["modelValue", "label", "readonly"]),
|
|
11466
|
+
P(I, {
|
|
11454
11467
|
modelValue: p.fields.keyAlt,
|
|
11455
11468
|
"onUpdate:modelValue": B[3] || (B[3] = (T) => p.fields.keyAlt = T),
|
|
11456
11469
|
modelModifiers: { trim: !0 },
|
|
11457
|
-
|
|
11470
|
+
class: "certificate-form-textarea",
|
|
11458
11471
|
"data-testid": "certificate-form-key-alt",
|
|
11472
|
+
"disable-character-limit": "",
|
|
11459
11473
|
label: k(s)("certificates.form.fields.key_alt.label"),
|
|
11460
|
-
readonly: p.isReadonly
|
|
11461
|
-
|
|
11462
|
-
|
|
11474
|
+
readonly: p.isReadonly
|
|
11475
|
+
}, {
|
|
11476
|
+
"label-tooltip": x(() => [
|
|
11477
|
+
P(k(n), {
|
|
11478
|
+
keypath: "certificates.form.fields.key_alt.tooltip",
|
|
11479
|
+
scope: "global"
|
|
11480
|
+
}, {
|
|
11481
|
+
emphasis: x(() => [
|
|
11482
|
+
ne("em", null, U(k(s)("certificates.form.fields.key_alt.emphasis")), 1)
|
|
11483
|
+
]),
|
|
11484
|
+
_: 1
|
|
11485
|
+
})
|
|
11486
|
+
]),
|
|
11487
|
+
_: 1
|
|
11488
|
+
}, 8, ["modelValue", "label", "readonly"])
|
|
11463
11489
|
]),
|
|
11464
11490
|
_: 1
|
|
11465
11491
|
}, 8, ["description", "title"]),
|
|
11466
|
-
|
|
11492
|
+
P(k(on), {
|
|
11467
11493
|
description: k(s)("certificates.form.sections.general.description"),
|
|
11468
11494
|
title: k(s)("certificates.form.sections.general.title")
|
|
11469
11495
|
}, {
|
|
11470
11496
|
default: x(() => [
|
|
11471
|
-
|
|
11497
|
+
P(E, {
|
|
11472
11498
|
modelValue: p.fields.tags,
|
|
11473
11499
|
"onUpdate:modelValue": B[4] || (B[4] = (T) => p.fields.tags = T),
|
|
11474
11500
|
modelModifiers: { trim: !0 },
|
|
@@ -11491,7 +11517,7 @@ const Lr = (r, e) => {
|
|
|
11491
11517
|
};
|
|
11492
11518
|
}
|
|
11493
11519
|
});
|
|
11494
|
-
const em = /* @__PURE__ */ Lr(Uy, [["__scopeId", "data-v-
|
|
11520
|
+
const em = /* @__PURE__ */ Lr(Uy, [["__scopeId", "data-v-ba62e0cc"]]), Gr = {
|
|
11495
11521
|
list: {
|
|
11496
11522
|
konnect: "/api/runtime_groups/{controlPlaneId}/ca_certificates",
|
|
11497
11523
|
kongManager: "/{workspace}/ca_certificates"
|
|
@@ -11533,7 +11559,7 @@ const em = /* @__PURE__ */ Lr(Uy, [["__scopeId", "data-v-ffa3e98c"]]), Gr = {
|
|
|
11533
11559
|
}), b = L(() => {
|
|
11534
11560
|
var h;
|
|
11535
11561
|
return ((h = p.value) == null ? void 0 : h.schemaIssuer) || "";
|
|
11536
|
-
}),
|
|
11562
|
+
}), $ = L(() => {
|
|
11537
11563
|
var h, v;
|
|
11538
11564
|
return (h = p.value) != null && h.schemaExpiry ? s((v = p.value) == null ? void 0 : v.schemaExpiry) : "";
|
|
11539
11565
|
}), A = L(() => {
|
|
@@ -11586,7 +11612,7 @@ const em = /* @__PURE__ */ Lr(Uy, [["__scopeId", "data-v-ffa3e98c"]]), Gr = {
|
|
|
11586
11612
|
return (h, v) => {
|
|
11587
11613
|
const w = ee("KCodeBlock"), y = ee("KBadge");
|
|
11588
11614
|
return _(), K("div", My, [
|
|
11589
|
-
|
|
11615
|
+
P(k(df), {
|
|
11590
11616
|
config: r.config,
|
|
11591
11617
|
"config-schema": g.value,
|
|
11592
11618
|
"fetch-url": c.value,
|
|
@@ -11597,7 +11623,7 @@ const em = /* @__PURE__ */ Lr(Uy, [["__scopeId", "data-v-ffa3e98c"]]), Gr = {
|
|
|
11597
11623
|
onLoading: v[2] || (v[2] = (B) => h.$emit("loading", B))
|
|
11598
11624
|
}, {
|
|
11599
11625
|
cert: x(({ rowValue: B }) => [
|
|
11600
|
-
|
|
11626
|
+
P(w, {
|
|
11601
11627
|
id: `ca-cert-${r.config.entityId}-cert-codeblock`,
|
|
11602
11628
|
code: B,
|
|
11603
11629
|
"is-single-line": "",
|
|
@@ -11605,33 +11631,33 @@ const em = /* @__PURE__ */ Lr(Uy, [["__scopeId", "data-v-ffa3e98c"]]), Gr = {
|
|
|
11605
11631
|
}, null, 8, ["id", "code"])
|
|
11606
11632
|
]),
|
|
11607
11633
|
metadata: x(({ rowValue: B }) => [
|
|
11608
|
-
(_(!0), K(Fe, null, Ue(Object.keys(B).filter((
|
|
11609
|
-
key:
|
|
11610
|
-
"data-testid": `ca-cert-metadata-${
|
|
11634
|
+
(_(!0), K(Fe, null, Ue(Object.keys(B).filter((I) => !i.includes(I)), (I) => (_(), fe(k(ts), {
|
|
11635
|
+
key: I,
|
|
11636
|
+
"data-testid": `ca-cert-metadata-${I}`,
|
|
11611
11637
|
item: {
|
|
11612
|
-
key:
|
|
11613
|
-
label: k(a)(
|
|
11614
|
-
value:
|
|
11615
|
-
type:
|
|
11638
|
+
key: I,
|
|
11639
|
+
label: k(a)(I),
|
|
11640
|
+
value: I === "expiry" ? $.value : I === "key_usages" ? A.value : B[I],
|
|
11641
|
+
type: I === "key_usages" ? k(ye).BadgeTag : k(ye).Text
|
|
11616
11642
|
}
|
|
11617
11643
|
}, null, 8, ["data-testid", "item"]))), 128))
|
|
11618
11644
|
]),
|
|
11619
11645
|
expiry: x(() => [
|
|
11620
|
-
ue(
|
|
11646
|
+
ue(U($.value || "–"), 1)
|
|
11621
11647
|
]),
|
|
11622
11648
|
issuer: x(() => [
|
|
11623
|
-
ue(
|
|
11649
|
+
ue(U(b.value || "–"), 1)
|
|
11624
11650
|
]),
|
|
11625
11651
|
key_usages: x(() => [
|
|
11626
|
-
A.value.length ? Ie("", !0) : (_(), K("div", Dy,
|
|
11627
|
-
(_(!0), K(Fe, null, Ue(A.value, (B,
|
|
11628
|
-
key: `key_usages-badge-tag-${
|
|
11652
|
+
A.value.length ? Ie("", !0) : (_(), K("div", Dy, U("–"))),
|
|
11653
|
+
(_(!0), K(Fe, null, Ue(A.value, (B, I) => (_(), fe(y, {
|
|
11654
|
+
key: `key_usages-badge-tag-${I}`,
|
|
11629
11655
|
class: "config-badge",
|
|
11630
|
-
"data-testid": `key_usages-badge-tag-${
|
|
11656
|
+
"data-testid": `key_usages-badge-tag-${I}`,
|
|
11631
11657
|
"truncation-tooltip": B
|
|
11632
11658
|
}, {
|
|
11633
11659
|
default: x(() => [
|
|
11634
|
-
ue(
|
|
11660
|
+
ue(U(B), 1)
|
|
11635
11661
|
]),
|
|
11636
11662
|
_: 2
|
|
11637
11663
|
}, 1032, ["data-testid", "truncation-tooltip"]))), 128))
|
|
@@ -11690,7 +11716,7 @@ const tm = /* @__PURE__ */ Lr(Ly, [["__scopeId", "data-v-c7364467"]]), Hy = { cl
|
|
|
11690
11716
|
issuer: { label: i("ca-certificates.list.table_headers.issuer") },
|
|
11691
11717
|
expiry: { label: i("ca-certificates.list.table_headers.expiry") },
|
|
11692
11718
|
tags: { label: i("ca-certificates.list.table_headers.tags"), sortable: !0 }
|
|
11693
|
-
},
|
|
11719
|
+
}, $ = L(() => {
|
|
11694
11720
|
var be, J;
|
|
11695
11721
|
let W = `${t.config.apiBaseUrl}${Gr.list[t.config.app]}`;
|
|
11696
11722
|
return t.config.app === "konnect" ? W = W.replace(/{controlPlaneId}/gi, ((be = t.config) == null ? void 0 : be.controlPlaneId) || "") : t.config.app === "kongManager" && (W = W.replace(/\/{workspace}/gi, (J = t.config) != null && J.workspace ? `/${t.config.workspace}` : "")), W;
|
|
@@ -11703,7 +11729,7 @@ const tm = /* @__PURE__ */ Lr(Ly, [["__scopeId", "data-v-c7364467"]]), Hy = { cl
|
|
|
11703
11729
|
isExactMatch: W,
|
|
11704
11730
|
schema: t.config.filterSchema
|
|
11705
11731
|
};
|
|
11706
|
-
}), { fetcher: g, fetcherState: h } = bf(t.config,
|
|
11732
|
+
}), { fetcher: g, fetcherState: h } = bf(t.config, $.value), v = () => {
|
|
11707
11733
|
A.value = "";
|
|
11708
11734
|
}, w = () => {
|
|
11709
11735
|
c.value++;
|
|
@@ -11722,7 +11748,7 @@ const tm = /* @__PURE__ */ Lr(Ly, [["__scopeId", "data-v-c7364467"]]), Hy = { cl
|
|
|
11722
11748
|
field: "id",
|
|
11723
11749
|
message: i("ca-certificates.copy.success", { val: J })
|
|
11724
11750
|
});
|
|
11725
|
-
},
|
|
11751
|
+
}, I = (W, be) => {
|
|
11726
11752
|
const J = JSON.stringify(W);
|
|
11727
11753
|
if (!be(J)) {
|
|
11728
11754
|
e("copy:error", {
|
|
@@ -11735,7 +11761,7 @@ const tm = /* @__PURE__ */ Lr(Ly, [["__scopeId", "data-v-c7364467"]]), Hy = { cl
|
|
|
11735
11761
|
entity: W,
|
|
11736
11762
|
message: i("ca-certificates.copy.success_brief")
|
|
11737
11763
|
});
|
|
11738
|
-
},
|
|
11764
|
+
}, E = async (W) => {
|
|
11739
11765
|
var J;
|
|
11740
11766
|
await ((J = t.canRetrieve) == null ? void 0 : J.call(t, W)) && a.push(t.config.getViewRoute(W.id));
|
|
11741
11767
|
}, T = (W) => ({
|
|
@@ -11744,7 +11770,7 @@ const tm = /* @__PURE__ */ Lr(Ly, [["__scopeId", "data-v-c7364467"]]), Hy = { cl
|
|
|
11744
11770
|
}), ce = (W) => ({
|
|
11745
11771
|
label: i("ca-certificates.actions.edit"),
|
|
11746
11772
|
to: t.config.getEditRoute(W)
|
|
11747
|
-
}), re = te(void 0), R = te(!1), F = te(!1), Q = te(""), G = vf(t.config,
|
|
11773
|
+
}), re = te(void 0), R = te(!1), F = te(!1), Q = te(""), G = vf(t.config, $.value), { certificateDataCache: ke, getCertificateData: Le } = pt.useCertificate(), Ve = (W) => {
|
|
11748
11774
|
re.value = W, R.value = !0;
|
|
11749
11775
|
}, bt = () => {
|
|
11750
11776
|
R.value = !1;
|
|
@@ -11779,7 +11805,7 @@ const tm = /* @__PURE__ */ Lr(Ly, [["__scopeId", "data-v-c7364467"]]), Hy = { cl
|
|
|
11779
11805
|
}), (W, be) => {
|
|
11780
11806
|
const J = ee("KButton"), ie = ee("KBadge"), Ee = ee("KTruncate"), Je = ee("KDropdownItem"), dr = ee("KClipboardProvider");
|
|
11781
11807
|
return _(), K("div", Hy, [
|
|
11782
|
-
|
|
11808
|
+
P(k(hf), {
|
|
11783
11809
|
"cache-identifier": r.cacheIdentifier,
|
|
11784
11810
|
"disable-pagination-page-jump": "",
|
|
11785
11811
|
"disable-sorting": f.value,
|
|
@@ -11793,29 +11819,29 @@ const tm = /* @__PURE__ */ Lr(Ly, [["__scopeId", "data-v-c7364467"]]), Hy = { cl
|
|
|
11793
11819
|
query: A.value,
|
|
11794
11820
|
"table-headers": k(b),
|
|
11795
11821
|
onClearSearchInput: v,
|
|
11796
|
-
"onClick:row": be[2] || (be[2] = (
|
|
11822
|
+
"onClick:row": be[2] || (be[2] = (se) => E(se)),
|
|
11797
11823
|
onSort: w
|
|
11798
11824
|
}, {
|
|
11799
11825
|
"toolbar-filter": x(() => [
|
|
11800
|
-
|
|
11826
|
+
P(k(gf), {
|
|
11801
11827
|
modelValue: A.value,
|
|
11802
|
-
"onUpdate:modelValue": be[0] || (be[0] = (
|
|
11828
|
+
"onUpdate:modelValue": be[0] || (be[0] = (se) => A.value = se),
|
|
11803
11829
|
config: d.value
|
|
11804
11830
|
}, null, 8, ["modelValue", "config"])
|
|
11805
11831
|
]),
|
|
11806
11832
|
"toolbar-button": x(() => [
|
|
11807
|
-
|
|
11833
|
+
P(k(wt), {
|
|
11808
11834
|
"auth-function": () => r.canCreate()
|
|
11809
11835
|
}, {
|
|
11810
11836
|
default: x(() => [
|
|
11811
|
-
|
|
11837
|
+
P(J, {
|
|
11812
11838
|
appearance: "primary",
|
|
11813
11839
|
"data-testid": "toolbar-add-ca-certificate",
|
|
11814
11840
|
icon: "plus",
|
|
11815
11841
|
to: r.config.createRoute
|
|
11816
11842
|
}, {
|
|
11817
11843
|
default: x(() => [
|
|
11818
|
-
ue(
|
|
11844
|
+
ue(U(k(i)("ca-certificates.list.toolbar_actions.new_ca_certificate")), 1)
|
|
11819
11845
|
]),
|
|
11820
11846
|
_: 1
|
|
11821
11847
|
}, 8, ["to"])
|
|
@@ -11823,30 +11849,30 @@ const tm = /* @__PURE__ */ Lr(Ly, [["__scopeId", "data-v-c7364467"]]), Hy = { cl
|
|
|
11823
11849
|
_: 1
|
|
11824
11850
|
}, 8, ["auth-function"])
|
|
11825
11851
|
]),
|
|
11826
|
-
issuer: x(({ row:
|
|
11852
|
+
issuer: x(({ row: se }) => {
|
|
11827
11853
|
var we;
|
|
11828
11854
|
return [
|
|
11829
|
-
r.config.app === "konnect" ? (_(), K("b", Ky,
|
|
11855
|
+
r.config.app === "konnect" ? (_(), K("b", Ky, U((we = se == null ? void 0 : se.metadata) != null && we.issuer ? se.metadata.issuer : "-"), 1)) : (_(), K("b", Fy, U(k(Le)(se).schemaIssuer || "-"), 1))
|
|
11830
11856
|
];
|
|
11831
11857
|
}),
|
|
11832
|
-
expiry: x(({ row:
|
|
11858
|
+
expiry: x(({ row: se }) => {
|
|
11833
11859
|
var we;
|
|
11834
11860
|
return [
|
|
11835
|
-
r.config.app === "konnect" ? (_(), K("span", qy,
|
|
11861
|
+
r.config.app === "konnect" ? (_(), K("span", qy, U((we = se == null ? void 0 : se.metadata) != null && we.expiry ? k(n)(se.metadata.expiry) : "-"), 1)) : (_(), K("span", zy, U(k(Le)(se).schemaExpiry ? k(n)(k(Le)(se).schemaExpiry) : "-"), 1))
|
|
11836
11862
|
];
|
|
11837
11863
|
}),
|
|
11838
|
-
tags: x(({ row:
|
|
11864
|
+
tags: x(({ row: se }) => {
|
|
11839
11865
|
var we;
|
|
11840
11866
|
return [
|
|
11841
|
-
((we =
|
|
11867
|
+
((we = se == null ? void 0 : se.tags) == null ? void 0 : we.length) > 0 ? (_(), fe(Ee, { key: 0 }, {
|
|
11842
11868
|
default: x(() => [
|
|
11843
|
-
(_(!0), K(Fe, null, Ue(
|
|
11869
|
+
(_(!0), K(Fe, null, Ue(se == null ? void 0 : se.tags, (Z) => (_(), fe(ie, {
|
|
11844
11870
|
key: Z,
|
|
11845
11871
|
onClick: be[1] || (be[1] = yr(() => {
|
|
11846
11872
|
}, ["stop"]))
|
|
11847
11873
|
}, {
|
|
11848
11874
|
default: x(() => [
|
|
11849
|
-
ue(
|
|
11875
|
+
ue(U(Z), 1)
|
|
11850
11876
|
]),
|
|
11851
11877
|
_: 2
|
|
11852
11878
|
}, 1024))), 128))
|
|
@@ -11855,70 +11881,70 @@ const tm = /* @__PURE__ */ Lr(Ly, [["__scopeId", "data-v-c7364467"]]), Hy = { cl
|
|
|
11855
11881
|
}, 1024)) : (_(), K("span", Gy, "-"))
|
|
11856
11882
|
];
|
|
11857
11883
|
}),
|
|
11858
|
-
actions: x(({ row:
|
|
11859
|
-
|
|
11884
|
+
actions: x(({ row: se }) => [
|
|
11885
|
+
P(dr, null, {
|
|
11860
11886
|
default: x(({ copyToClipboard: we }) => [
|
|
11861
|
-
|
|
11887
|
+
P(Je, {
|
|
11862
11888
|
"data-testid": "action-entity-copy-id",
|
|
11863
|
-
onClick: (Z) => B(
|
|
11889
|
+
onClick: (Z) => B(se, we)
|
|
11864
11890
|
}, {
|
|
11865
11891
|
default: x(() => [
|
|
11866
|
-
ue(
|
|
11892
|
+
ue(U(k(i)("ca-certificates.actions.copy_id")), 1)
|
|
11867
11893
|
]),
|
|
11868
11894
|
_: 2
|
|
11869
11895
|
}, 1032, ["onClick"])
|
|
11870
11896
|
]),
|
|
11871
11897
|
_: 2
|
|
11872
11898
|
}, 1024),
|
|
11873
|
-
|
|
11899
|
+
P(dr, null, {
|
|
11874
11900
|
default: x(({ copyToClipboard: we }) => [
|
|
11875
|
-
|
|
11901
|
+
P(Je, {
|
|
11876
11902
|
"data-testid": "action-entity-copy-json",
|
|
11877
|
-
onClick: (Z) =>
|
|
11903
|
+
onClick: (Z) => I(se, we)
|
|
11878
11904
|
}, {
|
|
11879
11905
|
default: x(() => [
|
|
11880
|
-
ue(
|
|
11906
|
+
ue(U(k(i)("ca-certificates.actions.copy_json")), 1)
|
|
11881
11907
|
]),
|
|
11882
11908
|
_: 2
|
|
11883
11909
|
}, 1032, ["onClick"])
|
|
11884
11910
|
]),
|
|
11885
11911
|
_: 2
|
|
11886
11912
|
}, 1024),
|
|
11887
|
-
|
|
11888
|
-
"auth-function": () => r.canRetrieve(
|
|
11913
|
+
P(k(wt), {
|
|
11914
|
+
"auth-function": () => r.canRetrieve(se)
|
|
11889
11915
|
}, {
|
|
11890
11916
|
default: x(() => [
|
|
11891
|
-
|
|
11917
|
+
P(Je, {
|
|
11892
11918
|
"data-testid": "action-entity-view",
|
|
11893
11919
|
"has-divider": "",
|
|
11894
|
-
item: T(
|
|
11920
|
+
item: T(se.id)
|
|
11895
11921
|
}, null, 8, ["item"])
|
|
11896
11922
|
]),
|
|
11897
11923
|
_: 2
|
|
11898
11924
|
}, 1032, ["auth-function"]),
|
|
11899
|
-
|
|
11900
|
-
"auth-function": () => r.canEdit(
|
|
11925
|
+
P(k(wt), {
|
|
11926
|
+
"auth-function": () => r.canEdit(se)
|
|
11901
11927
|
}, {
|
|
11902
11928
|
default: x(() => [
|
|
11903
|
-
|
|
11929
|
+
P(Je, {
|
|
11904
11930
|
"data-testid": "action-entity-edit",
|
|
11905
|
-
item: ce(
|
|
11931
|
+
item: ce(se.id)
|
|
11906
11932
|
}, null, 8, ["item"])
|
|
11907
11933
|
]),
|
|
11908
11934
|
_: 2
|
|
11909
11935
|
}, 1032, ["auth-function"]),
|
|
11910
|
-
|
|
11911
|
-
"auth-function": () => r.canDelete(
|
|
11936
|
+
P(k(wt), {
|
|
11937
|
+
"auth-function": () => r.canDelete(se)
|
|
11912
11938
|
}, {
|
|
11913
11939
|
default: x(() => [
|
|
11914
|
-
|
|
11940
|
+
P(Je, {
|
|
11915
11941
|
"data-testid": "action-entity-delete",
|
|
11916
11942
|
"has-divider": "",
|
|
11917
11943
|
"is-dangerous": "",
|
|
11918
|
-
onClick: (we) => Ve(
|
|
11944
|
+
onClick: (we) => Ve(se)
|
|
11919
11945
|
}, {
|
|
11920
11946
|
default: x(() => [
|
|
11921
|
-
ue(
|
|
11947
|
+
ue(U(k(i)("ca-certificates.actions.delete")), 1)
|
|
11922
11948
|
]),
|
|
11923
11949
|
_: 2
|
|
11924
11950
|
}, 1032, ["onClick"])
|
|
@@ -11928,7 +11954,7 @@ const tm = /* @__PURE__ */ Lr(Ly, [["__scopeId", "data-v-c7364467"]]), Hy = { cl
|
|
|
11928
11954
|
]),
|
|
11929
11955
|
_: 1
|
|
11930
11956
|
}, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers"]),
|
|
11931
|
-
|
|
11957
|
+
P(k(yf), {
|
|
11932
11958
|
"action-pending": F.value,
|
|
11933
11959
|
"entity-type": k(xa).CACertificate,
|
|
11934
11960
|
error: Q.value,
|
|
@@ -11938,16 +11964,16 @@ const tm = /* @__PURE__ */ Lr(Ly, [["__scopeId", "data-v-c7364467"]]), Hy = { cl
|
|
|
11938
11964
|
onProceed: fr
|
|
11939
11965
|
}, {
|
|
11940
11966
|
description: x(() => [
|
|
11941
|
-
|
|
11967
|
+
P(k(s), {
|
|
11942
11968
|
keypath: "ca-certificates.delete.description",
|
|
11943
11969
|
scope: "global"
|
|
11944
11970
|
}, {
|
|
11945
11971
|
"bolded-text": x(() => [
|
|
11946
|
-
|
|
11972
|
+
ne("b", null, U(k(i)("ca-certificates.delete.boldedText")), 1)
|
|
11947
11973
|
]),
|
|
11948
11974
|
_: 1
|
|
11949
11975
|
}),
|
|
11950
|
-
|
|
11976
|
+
ne("p", null, U(k(i)("ca-certificates.delete.description2")), 1)
|
|
11951
11977
|
]),
|
|
11952
11978
|
_: 1
|
|
11953
11979
|
}, 8, ["action-pending", "entity-type", "error", "title", "visible"])
|
|
@@ -11988,7 +12014,7 @@ const rm = /* @__PURE__ */ Lr(Wy, [["__scopeId", "data-v-d539b808"]]), Jy = { cl
|
|
|
11988
12014
|
cert: "",
|
|
11989
12015
|
certDigest: "",
|
|
11990
12016
|
tags: ""
|
|
11991
|
-
}), b = L(() => (c.value === Zt.Create || JSON.stringify(f.fields) !== JSON.stringify(p)) && !!f.fields.cert),
|
|
12017
|
+
}), b = L(() => (c.value === Zt.Create || JSON.stringify(f.fields) !== JSON.stringify(p)) && !!f.fields.cert), $ = (w) => {
|
|
11992
12018
|
var y;
|
|
11993
12019
|
f.fields.cert = (w == null ? void 0 : w.cert) || "", f.fields.certDigest = (w == null ? void 0 : w.cert_digest) || "", f.fields.tags = ((y = w == null ? void 0 : w.tags) == null ? void 0 : y.join(", ")) || "", Object.assign(p, f.fields);
|
|
11994
12020
|
}, A = () => {
|
|
@@ -12002,7 +12028,7 @@ const rm = /* @__PURE__ */ Lr(Wy, [["__scopeId", "data-v-d539b808"]]), Jy = { cl
|
|
|
12002
12028
|
let w = `${t.config.apiBaseUrl}${Gr.form[t.config.app][c.value]}`;
|
|
12003
12029
|
return t.config.app === "konnect" ? w = w.replace(/{controlPlaneId}/gi, ((y = t.config) == null ? void 0 : y.controlPlaneId) || "") : t.config.app === "kongManager" && (w = w.replace(/\/{workspace}/gi, (B = t.config) != null && B.workspace ? `/${t.config.workspace}` : "")), w = w.replace(/{id}/gi, t.certificateId), w;
|
|
12004
12030
|
}), h = async () => {
|
|
12005
|
-
var w, y, B,
|
|
12031
|
+
var w, y, B, I, E, T, ce;
|
|
12006
12032
|
try {
|
|
12007
12033
|
f.isReadonly = !0;
|
|
12008
12034
|
const re = {
|
|
@@ -12011,7 +12037,7 @@ const rm = /* @__PURE__ */ Lr(Wy, [["__scopeId", "data-v-d539b808"]]), Jy = { cl
|
|
|
12011
12037
|
tags: (y = (w = f.fields.tags.split(",")) == null ? void 0 : w.map((F) => String(F || "").trim())) == null ? void 0 : y.filter((F) => F !== "")
|
|
12012
12038
|
};
|
|
12013
12039
|
let R;
|
|
12014
|
-
await a.post(d.value, re), c.value === "create" ? R = await a.post(g.value, re) : c.value === "edit" && (R = ((B = t.config) == null ? void 0 : B.app) === "konnect" ? await a.put(g.value, re) : await a.patch(g.value, re)), f.fields.cert = ((
|
|
12040
|
+
await a.post(d.value, re), c.value === "create" ? R = await a.post(g.value, re) : c.value === "edit" && (R = ((B = t.config) == null ? void 0 : B.app) === "konnect" ? await a.put(g.value, re) : await a.patch(g.value, re)), f.fields.cert = ((I = R == null ? void 0 : R.data) == null ? void 0 : I.cert) || "", f.fields.certDigest = ((E = R == null ? void 0 : R.data) == null ? void 0 : E.cert_digest) || "", f.fields.tags = ((ce = (T = R == null ? void 0 : R.data) == null ? void 0 : T.tags) == null ? void 0 : ce.join(", ")) || "", Object.assign(p, f.fields), e("update", R == null ? void 0 : R.data);
|
|
12015
12041
|
} catch (re) {
|
|
12016
12042
|
f.errorMessage = s(re), e("error", re);
|
|
12017
12043
|
} finally {
|
|
@@ -12019,9 +12045,9 @@ const rm = /* @__PURE__ */ Lr(Wy, [["__scopeId", "data-v-d539b808"]]), Jy = { cl
|
|
|
12019
12045
|
}
|
|
12020
12046
|
};
|
|
12021
12047
|
return (w, y) => {
|
|
12022
|
-
const B = ee("KTextArea"),
|
|
12048
|
+
const B = ee("KTextArea"), I = ee("KInput");
|
|
12023
12049
|
return _(), K("div", Jy, [
|
|
12024
|
-
|
|
12050
|
+
P(k(pf), {
|
|
12025
12051
|
"can-submit": b.value,
|
|
12026
12052
|
config: r.config,
|
|
12027
12053
|
"edit-id": r.certificateId,
|
|
@@ -12029,20 +12055,20 @@ const rm = /* @__PURE__ */ Lr(Wy, [["__scopeId", "data-v-d539b808"]]), Jy = { cl
|
|
|
12029
12055
|
"fetch-url": u.value,
|
|
12030
12056
|
"is-readonly": f.isReadonly,
|
|
12031
12057
|
onCancel: A,
|
|
12032
|
-
"onFetch:error": y[3] || (y[3] = (
|
|
12033
|
-
"onFetch:success":
|
|
12034
|
-
onLoading: y[4] || (y[4] = (
|
|
12058
|
+
"onFetch:error": y[3] || (y[3] = (E) => w.$emit("error", E)),
|
|
12059
|
+
"onFetch:success": $,
|
|
12060
|
+
onLoading: y[4] || (y[4] = (E) => w.$emit("loading", E)),
|
|
12035
12061
|
onSubmit: h
|
|
12036
12062
|
}, {
|
|
12037
12063
|
default: x(() => [
|
|
12038
|
-
|
|
12064
|
+
P(k(on), {
|
|
12039
12065
|
description: k(n)("ca-certificates.form.sections.cert.description"),
|
|
12040
12066
|
title: k(n)("ca-certificates.form.sections.cert.title")
|
|
12041
12067
|
}, {
|
|
12042
12068
|
default: x(() => [
|
|
12043
|
-
|
|
12069
|
+
P(B, {
|
|
12044
12070
|
modelValue: f.fields.cert,
|
|
12045
|
-
"onUpdate:modelValue": y[0] || (y[0] = (
|
|
12071
|
+
"onUpdate:modelValue": y[0] || (y[0] = (E) => f.fields.cert = E),
|
|
12046
12072
|
modelModifiers: { trim: !0 },
|
|
12047
12073
|
class: "certificate-form-textarea",
|
|
12048
12074
|
"data-testid": "ca-certificate-form-cert",
|
|
@@ -12052,9 +12078,9 @@ const rm = /* @__PURE__ */ Lr(Wy, [["__scopeId", "data-v-d539b808"]]), Jy = { cl
|
|
|
12052
12078
|
readonly: f.isReadonly,
|
|
12053
12079
|
required: ""
|
|
12054
12080
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
12055
|
-
|
|
12081
|
+
P(I, {
|
|
12056
12082
|
modelValue: f.fields.certDigest,
|
|
12057
|
-
"onUpdate:modelValue": y[1] || (y[1] = (
|
|
12083
|
+
"onUpdate:modelValue": y[1] || (y[1] = (E) => f.fields.certDigest = E),
|
|
12058
12084
|
modelModifiers: { trim: !0 },
|
|
12059
12085
|
autocomplete: "off",
|
|
12060
12086
|
"data-testid": "ca-certificate-form-cert-digest",
|
|
@@ -12065,14 +12091,14 @@ const rm = /* @__PURE__ */ Lr(Wy, [["__scopeId", "data-v-d539b808"]]), Jy = { cl
|
|
|
12065
12091
|
]),
|
|
12066
12092
|
_: 1
|
|
12067
12093
|
}, 8, ["description", "title"]),
|
|
12068
|
-
|
|
12094
|
+
P(k(on), {
|
|
12069
12095
|
description: k(n)("ca-certificates.form.sections.general.description"),
|
|
12070
12096
|
title: k(n)("ca-certificates.form.sections.general.title")
|
|
12071
12097
|
}, {
|
|
12072
12098
|
default: x(() => [
|
|
12073
|
-
|
|
12099
|
+
P(I, {
|
|
12074
12100
|
modelValue: f.fields.tags,
|
|
12075
|
-
"onUpdate:modelValue": y[2] || (y[2] = (
|
|
12101
|
+
"onUpdate:modelValue": y[2] || (y[2] = (E) => f.fields.tags = E),
|
|
12076
12102
|
modelModifiers: { trim: !0 },
|
|
12077
12103
|
autocomplete: "off",
|
|
12078
12104
|
"data-testid": "ca-certificate-form-tags",
|
|
@@ -12170,62 +12196,62 @@ const im = /* @__PURE__ */ Lr(Yy, [["__scopeId", "data-v-a1cf8ed1"]]), Zy = { cl
|
|
|
12170
12196
|
section: me.Advanced,
|
|
12171
12197
|
type: ye.Redacted
|
|
12172
12198
|
}
|
|
12173
|
-
}), b = (
|
|
12174
|
-
f.value =
|
|
12175
|
-
},
|
|
12199
|
+
}), b = (E) => {
|
|
12200
|
+
f.value = E, e("fetch:success", E);
|
|
12201
|
+
}, $ = L(() => {
|
|
12176
12202
|
if (f.value)
|
|
12177
12203
|
return u(f.value);
|
|
12178
12204
|
}), A = L(() => {
|
|
12179
|
-
var
|
|
12180
|
-
return (
|
|
12205
|
+
var E, T;
|
|
12206
|
+
return (E = $.value) != null && E.schemaExpiry ? n((T = $.value) == null ? void 0 : T.schemaExpiry) : "";
|
|
12181
12207
|
}), d = L(() => {
|
|
12182
|
-
var
|
|
12183
|
-
return ((
|
|
12208
|
+
var E;
|
|
12209
|
+
return ((E = $.value) == null ? void 0 : E.schemaIssuer) || "";
|
|
12184
12210
|
}), g = L(() => {
|
|
12185
|
-
var
|
|
12186
|
-
return ((
|
|
12211
|
+
var E;
|
|
12212
|
+
return ((E = $.value) == null ? void 0 : E.schemaSanNames) || "";
|
|
12187
12213
|
}), h = L(() => {
|
|
12188
|
-
var
|
|
12189
|
-
return ((
|
|
12214
|
+
var E;
|
|
12215
|
+
return ((E = $.value) == null ? void 0 : E.schemaSubject) || "";
|
|
12190
12216
|
}), v = L(() => {
|
|
12191
|
-
var
|
|
12192
|
-
return ((
|
|
12217
|
+
var E;
|
|
12218
|
+
return ((E = $.value) == null ? void 0 : E.schemaKeyUsages) || [];
|
|
12193
12219
|
}), w = L(() => {
|
|
12194
|
-
var
|
|
12195
|
-
return ((T = (
|
|
12220
|
+
var E, T;
|
|
12221
|
+
return ((T = (E = f == null ? void 0 : f.value) == null ? void 0 : E.snis) == null ? void 0 : T.length) > 0;
|
|
12196
12222
|
}), y = L(() => {
|
|
12197
|
-
var
|
|
12198
|
-
return !!((
|
|
12199
|
-
}), B = (
|
|
12223
|
+
var E;
|
|
12224
|
+
return !!((E = f == null ? void 0 : f.value) != null && E.cert_alt);
|
|
12225
|
+
}), B = (E) => {
|
|
12200
12226
|
var T, ce;
|
|
12201
|
-
return
|
|
12202
|
-
},
|
|
12203
|
-
return (
|
|
12227
|
+
return E === "san_names" ? i("certificates.list.table_headers.san") : ((ce = (T = p.value) == null ? void 0 : T[E]) == null ? void 0 : ce.label) || a(E);
|
|
12228
|
+
}, I = (E, T) => E === "expiry" ? A.value : E === "key_usages" ? v.value : E === "san_names" ? g.value : T[E];
|
|
12229
|
+
return (E, T) => {
|
|
12204
12230
|
const ce = ee("KCodeBlock"), re = ee("KBadge");
|
|
12205
12231
|
return _(), K("div", Zy, [
|
|
12206
|
-
|
|
12232
|
+
P(k(df), {
|
|
12207
12233
|
config: r.config,
|
|
12208
12234
|
"config-schema": p.value,
|
|
12209
12235
|
"fetch-url": c.value,
|
|
12210
12236
|
"hide-title": r.hideTitle,
|
|
12211
|
-
"onCopy:success": T[0] || (T[0] = (R) =>
|
|
12212
|
-
"onFetch:error": T[1] || (T[1] = (R) =>
|
|
12237
|
+
"onCopy:success": T[0] || (T[0] = (R) => E.$emit("copy:success", R)),
|
|
12238
|
+
"onFetch:error": T[1] || (T[1] = (R) => E.$emit("fetch:error", R)),
|
|
12213
12239
|
"onFetch:success": b,
|
|
12214
|
-
onLoading: T[2] || (T[2] = (R) =>
|
|
12240
|
+
onLoading: T[2] || (T[2] = (R) => E.$emit("loading", R))
|
|
12215
12241
|
}, gr({
|
|
12216
12242
|
"cert-label-tooltip": x(() => [
|
|
12217
|
-
|
|
12243
|
+
P(k(s), {
|
|
12218
12244
|
keypath: "certificates.form.fields.cert.tooltip",
|
|
12219
12245
|
scope: "global"
|
|
12220
12246
|
}, {
|
|
12221
12247
|
emphasis: x(() => [
|
|
12222
|
-
|
|
12248
|
+
ne("i", null, U(k(i)("certificates.form.fields.cert.emphasis")), 1)
|
|
12223
12249
|
]),
|
|
12224
12250
|
_: 1
|
|
12225
12251
|
})
|
|
12226
12252
|
]),
|
|
12227
12253
|
cert: x(({ rowValue: R }) => [
|
|
12228
|
-
|
|
12254
|
+
P(ce, {
|
|
12229
12255
|
id: `certificate-${r.config.entityId}-cert-codeblock`,
|
|
12230
12256
|
code: R,
|
|
12231
12257
|
"is-single-line": "",
|
|
@@ -12233,12 +12259,12 @@ const im = /* @__PURE__ */ Lr(Yy, [["__scopeId", "data-v-a1cf8ed1"]]), Zy = { cl
|
|
|
12233
12259
|
}, null, 8, ["id", "code"])
|
|
12234
12260
|
]),
|
|
12235
12261
|
"key-label-tooltip": x(() => [
|
|
12236
|
-
|
|
12262
|
+
P(k(s), {
|
|
12237
12263
|
keypath: "certificates.form.fields.key.tooltip",
|
|
12238
12264
|
scope: "global"
|
|
12239
12265
|
}, {
|
|
12240
12266
|
emphasis: x(() => [
|
|
12241
|
-
|
|
12267
|
+
ne("i", null, U(k(i)("certificates.form.fields.key.emphasis")), 1)
|
|
12242
12268
|
]),
|
|
12243
12269
|
_: 1
|
|
12244
12270
|
})
|
|
@@ -12248,48 +12274,48 @@ const im = /* @__PURE__ */ Lr(Yy, [["__scopeId", "data-v-a1cf8ed1"]]), Zy = { cl
|
|
|
12248
12274
|
key: F,
|
|
12249
12275
|
item: {
|
|
12250
12276
|
key: F,
|
|
12251
|
-
value:
|
|
12277
|
+
value: I(F, R),
|
|
12252
12278
|
label: B(F),
|
|
12253
12279
|
type: F === "key_usages" || F === "snis" || F === "dns_names" ? k(ye).BadgeTag : k(ye).Text
|
|
12254
12280
|
}
|
|
12255
12281
|
}, null, 8, ["item"]))), 128))
|
|
12256
12282
|
]),
|
|
12257
12283
|
expiry: x(() => [
|
|
12258
|
-
ue(
|
|
12284
|
+
ue(U(A.value || "–"), 1)
|
|
12259
12285
|
]),
|
|
12260
12286
|
issuer: x(() => [
|
|
12261
|
-
ue(
|
|
12287
|
+
ue(U(d.value || "–"), 1)
|
|
12262
12288
|
]),
|
|
12263
12289
|
san_names: x(() => [
|
|
12264
|
-
ue(
|
|
12290
|
+
ue(U(g.value || "–"), 1)
|
|
12265
12291
|
]),
|
|
12266
12292
|
subject: x(() => [
|
|
12267
|
-
ue(
|
|
12293
|
+
ue(U(h.value || "–"), 1)
|
|
12268
12294
|
]),
|
|
12269
12295
|
"cert_alt-label-tooltip": x(() => [
|
|
12270
|
-
|
|
12296
|
+
P(k(s), {
|
|
12271
12297
|
keypath: "certificates.form.fields.cert_alt.tooltip",
|
|
12272
12298
|
scope: "global"
|
|
12273
12299
|
}, {
|
|
12274
12300
|
emphasis: x(() => [
|
|
12275
|
-
|
|
12301
|
+
ne("i", null, U(k(i)("certificates.form.fields.cert_alt.emphasis")), 1)
|
|
12276
12302
|
]),
|
|
12277
12303
|
_: 1
|
|
12278
12304
|
})
|
|
12279
12305
|
]),
|
|
12280
12306
|
"key_alt-label-tooltip": x(() => [
|
|
12281
|
-
|
|
12307
|
+
P(k(s), {
|
|
12282
12308
|
keypath: "certificates.form.fields.key_alt.tooltip",
|
|
12283
12309
|
scope: "global"
|
|
12284
12310
|
}, {
|
|
12285
12311
|
emphasis: x(() => [
|
|
12286
|
-
|
|
12312
|
+
ne("i", null, U(k(i)("certificates.form.fields.key_alt.emphasis")), 1)
|
|
12287
12313
|
]),
|
|
12288
12314
|
_: 1
|
|
12289
12315
|
})
|
|
12290
12316
|
]),
|
|
12291
12317
|
key_usages: x(() => [
|
|
12292
|
-
v.value.length ? Ie("", !0) : (_(), K("div", Qy,
|
|
12318
|
+
v.value.length ? Ie("", !0) : (_(), K("div", Qy, U("–"))),
|
|
12293
12319
|
(_(!0), K(Fe, null, Ue(v.value, (R, F) => (_(), fe(re, {
|
|
12294
12320
|
key: `key_usages-badge-tag-${F}`,
|
|
12295
12321
|
class: "config-badge",
|
|
@@ -12297,7 +12323,7 @@ const im = /* @__PURE__ */ Lr(Yy, [["__scopeId", "data-v-a1cf8ed1"]]), Zy = { cl
|
|
|
12297
12323
|
"truncation-tooltip": R
|
|
12298
12324
|
}, {
|
|
12299
12325
|
default: x(() => [
|
|
12300
|
-
ue(
|
|
12326
|
+
ue(U(R), 1)
|
|
12301
12327
|
]),
|
|
12302
12328
|
_: 2
|
|
12303
12329
|
}, 1032, ["data-testid", "truncation-tooltip"]))), 128))
|
|
@@ -12314,7 +12340,7 @@ const im = /* @__PURE__ */ Lr(Yy, [["__scopeId", "data-v-a1cf8ed1"]]), Zy = { cl
|
|
|
12314
12340
|
y.value ? {
|
|
12315
12341
|
name: "cert_alt",
|
|
12316
12342
|
fn: x(({ rowValue: R }) => [
|
|
12317
|
-
|
|
12343
|
+
P(ce, {
|
|
12318
12344
|
id: `certificate-${r.config.entityId}-cert-alt-codeblock`,
|
|
12319
12345
|
code: R,
|
|
12320
12346
|
"is-single-line": "",
|