@kong-ui-public/entities-certificates 3.2.0 → 3.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities-certificates.es.js +281 -274
- package/dist/entities-certificates.umd.js +3 -3
- package/dist/style.css +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as xe, computed as D, openBlock as O, createBlock as fe, resolveDynamicComponent as
|
|
1
|
+
import { defineComponent as xe, computed as D, openBlock as O, createBlock as fe, resolveDynamicComponent as Tt, normalizeStyle as oi, withCtx as I, createElementBlock as H, toDisplayString as L, createCommentVNode as me, pushScopeId as si, popScopeId as ai, createElementVNode as ue, ref as te, watch as lr, renderSlot as Ne, unref as S, useCssVars as Ru, useSlots as Va, resolveComponent as ae, createVNode as M, createSlots as kr, createTextVNode as pe, normalizeProps as Zp, guardReactiveProps as Qp, Fragment as Xe, renderList as We, mergeProps as Xp, normalizeClass as or, onBeforeMount as Xn, withModifiers as vn, withDirectives as Ut, vShow as Dt, withKeys as eh, inject as th, onMounted as rh, onUnmounted as ih, Teleport as Uu, reactive as mn } from "vue";
|
|
2
2
|
import { useRouter as Fi } from "vue-router";
|
|
3
3
|
import { createI18n as Du, i18nTComponent as Lu } from "@kong-ui-public/i18n";
|
|
4
4
|
import Rl from "axios";
|
|
@@ -83,7 +83,7 @@ const Ul = "24px", oh = (e, t) => {
|
|
|
83
83
|
lineHeight: "0",
|
|
84
84
|
width: r.value
|
|
85
85
|
}));
|
|
86
|
-
return (n, o) => (O(), fe(
|
|
86
|
+
return (n, o) => (O(), fe(Tt(e.as), {
|
|
87
87
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
88
88
|
class: "kui-icon add-icon",
|
|
89
89
|
"data-testid": "kui-icon-wrapper-add-icon",
|
|
@@ -183,17 +183,17 @@ var Dl;
|
|
|
183
183
|
throw new TypeError();
|
|
184
184
|
if (!Y(U) && !se(U) && !le(U))
|
|
185
185
|
throw new TypeError();
|
|
186
|
-
return le(U) && (U = void 0), j = ce(j),
|
|
186
|
+
return le(U) && (U = void 0), j = ce(j), oe(k, x, j, U);
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
189
|
t("decorate", C);
|
|
190
190
|
function N(k, x) {
|
|
191
|
-
function j(U,
|
|
191
|
+
function j(U, ne) {
|
|
192
192
|
if (!Y(U))
|
|
193
193
|
throw new TypeError();
|
|
194
|
-
if (!se(
|
|
194
|
+
if (!se(ne) && !Mr(ne))
|
|
195
195
|
throw new TypeError();
|
|
196
|
-
jr(k, x, U,
|
|
196
|
+
jr(k, x, U, ne);
|
|
197
197
|
}
|
|
198
198
|
return j;
|
|
199
199
|
}
|
|
@@ -257,18 +257,18 @@ var Dl;
|
|
|
257
257
|
t("deleteMetadata", J);
|
|
258
258
|
function R(k, x) {
|
|
259
259
|
for (var j = k.length - 1; j >= 0; --j) {
|
|
260
|
-
var U = k[j],
|
|
261
|
-
if (!se(
|
|
262
|
-
if (!Ve(
|
|
260
|
+
var U = k[j], ne = U(x);
|
|
261
|
+
if (!se(ne) && !le(ne)) {
|
|
262
|
+
if (!Ve(ne))
|
|
263
263
|
throw new TypeError();
|
|
264
|
-
x =
|
|
264
|
+
x = ne;
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
267
|
return x;
|
|
268
268
|
}
|
|
269
|
-
function
|
|
270
|
-
for (var
|
|
271
|
-
var Oe = k[
|
|
269
|
+
function oe(k, x, j, U) {
|
|
270
|
+
for (var ne = k.length - 1; ne >= 0; --ne) {
|
|
271
|
+
var Oe = k[ne], Me = Oe(x, j, U);
|
|
272
272
|
if (!se(Me) && !le(Me)) {
|
|
273
273
|
if (!Y(Me))
|
|
274
274
|
throw new TypeError();
|
|
@@ -281,8 +281,8 @@ var Dl;
|
|
|
281
281
|
var U = De(k, x, j);
|
|
282
282
|
if (U)
|
|
283
283
|
return !0;
|
|
284
|
-
var
|
|
285
|
-
return le(
|
|
284
|
+
var ne = Zo(x);
|
|
285
|
+
return le(ne) ? !1 : he(k, ne, j);
|
|
286
286
|
}
|
|
287
287
|
function De(k, x, j) {
|
|
288
288
|
var U = mi(
|
|
@@ -297,9 +297,9 @@ var Dl;
|
|
|
297
297
|
var U = De(k, x, j);
|
|
298
298
|
if (U)
|
|
299
299
|
return Le(k, x, j);
|
|
300
|
-
var
|
|
301
|
-
if (!le(
|
|
302
|
-
return je(k,
|
|
300
|
+
var ne = Zo(x);
|
|
301
|
+
if (!le(ne))
|
|
302
|
+
return je(k, ne, j);
|
|
303
303
|
}
|
|
304
304
|
function Le(k, x, j) {
|
|
305
305
|
var U = mi(
|
|
@@ -312,28 +312,28 @@ var Dl;
|
|
|
312
312
|
return U.OrdinaryGetOwnMetadata(k, x, j);
|
|
313
313
|
}
|
|
314
314
|
function jr(k, x, j, U) {
|
|
315
|
-
var
|
|
315
|
+
var ne = mi(
|
|
316
316
|
j,
|
|
317
317
|
U,
|
|
318
318
|
/*Create*/
|
|
319
319
|
!0
|
|
320
320
|
);
|
|
321
|
-
|
|
321
|
+
ne.OrdinaryDefineOwnMetadata(k, x, j, U);
|
|
322
322
|
}
|
|
323
323
|
function $r(k, x) {
|
|
324
324
|
var j = dr(k, x), U = Zo(k);
|
|
325
325
|
if (U === null)
|
|
326
326
|
return j;
|
|
327
|
-
var
|
|
328
|
-
if (
|
|
327
|
+
var ne = $r(U, x);
|
|
328
|
+
if (ne.length <= 0)
|
|
329
329
|
return j;
|
|
330
330
|
if (j.length <= 0)
|
|
331
|
-
return
|
|
331
|
+
return ne;
|
|
332
332
|
for (var Oe = new m(), Me = [], ge = 0, F = j; ge < F.length; ge++) {
|
|
333
333
|
var Z = F[ge], W = Oe.has(Z);
|
|
334
334
|
W || (Oe.add(Z), Me.push(Z));
|
|
335
335
|
}
|
|
336
|
-
for (var X = 0, ve =
|
|
336
|
+
for (var X = 0, ve = ne; X < ve.length; X++) {
|
|
337
337
|
var Z = ve[X], W = Oe.has(Z);
|
|
338
338
|
W || (Oe.add(Z), Me.push(Z));
|
|
339
339
|
}
|
|
@@ -348,7 +348,7 @@ var Dl;
|
|
|
348
348
|
);
|
|
349
349
|
return j ? j.OrdinaryOwnMetadataKeys(k, x) : [];
|
|
350
350
|
}
|
|
351
|
-
function
|
|
351
|
+
function Rt(k) {
|
|
352
352
|
if (k === null)
|
|
353
353
|
return 1;
|
|
354
354
|
switch (typeof k) {
|
|
@@ -381,7 +381,7 @@ var Dl;
|
|
|
381
381
|
return typeof k == "object" ? k !== null : typeof k == "function";
|
|
382
382
|
}
|
|
383
383
|
function Se(k, x) {
|
|
384
|
-
switch (
|
|
384
|
+
switch (Rt(k)) {
|
|
385
385
|
case 0:
|
|
386
386
|
return k;
|
|
387
387
|
case 1:
|
|
@@ -397,10 +397,10 @@ var Dl;
|
|
|
397
397
|
}
|
|
398
398
|
var j = x === 3 ? "string" : x === 5 ? "number" : "default", U = Tl(k, o);
|
|
399
399
|
if (U !== void 0) {
|
|
400
|
-
var
|
|
401
|
-
if (Y(
|
|
400
|
+
var ne = U.call(k, j);
|
|
401
|
+
if (Y(ne))
|
|
402
402
|
throw new TypeError();
|
|
403
|
-
return
|
|
403
|
+
return ne;
|
|
404
404
|
}
|
|
405
405
|
return Ze(k, j === "default" ? "number" : j);
|
|
406
406
|
}
|
|
@@ -412,16 +412,16 @@ var Dl;
|
|
|
412
412
|
if (!Y(U))
|
|
413
413
|
return U;
|
|
414
414
|
}
|
|
415
|
-
var
|
|
416
|
-
if (re(
|
|
417
|
-
var U =
|
|
415
|
+
var ne = k.valueOf;
|
|
416
|
+
if (re(ne)) {
|
|
417
|
+
var U = ne.call(k);
|
|
418
418
|
if (!Y(U))
|
|
419
419
|
return U;
|
|
420
420
|
}
|
|
421
421
|
} else {
|
|
422
|
-
var
|
|
423
|
-
if (re(
|
|
424
|
-
var U =
|
|
422
|
+
var ne = k.valueOf;
|
|
423
|
+
if (re(ne)) {
|
|
424
|
+
var U = ne.call(k);
|
|
425
425
|
if (!Y(U))
|
|
426
426
|
return U;
|
|
427
427
|
}
|
|
@@ -458,7 +458,7 @@ var Dl;
|
|
|
458
458
|
return typeof k == "function";
|
|
459
459
|
}
|
|
460
460
|
function Mr(k) {
|
|
461
|
-
switch (
|
|
461
|
+
switch (Rt(k)) {
|
|
462
462
|
case 3:
|
|
463
463
|
return !0;
|
|
464
464
|
case 4:
|
|
@@ -505,13 +505,13 @@ var Dl;
|
|
|
505
505
|
var j = k.prototype, U = j && Object.getPrototypeOf(j);
|
|
506
506
|
if (U == null || U === Object.prototype)
|
|
507
507
|
return x;
|
|
508
|
-
var
|
|
509
|
-
return typeof
|
|
508
|
+
var ne = U.constructor;
|
|
509
|
+
return typeof ne != "function" || ne === k ? x : ne;
|
|
510
510
|
}
|
|
511
511
|
function Hp() {
|
|
512
512
|
var k;
|
|
513
513
|
!se(y) && typeof r.Reflect < "u" && !(y in r.Reflect) && typeof r.Reflect.defineMetadata == "function" && (k = Kp(r.Reflect));
|
|
514
|
-
var x, j, U,
|
|
514
|
+
var x, j, U, ne = new p(), Oe = {
|
|
515
515
|
registerProvider: Me,
|
|
516
516
|
getProvider: F,
|
|
517
517
|
setProvider: W
|
|
@@ -560,8 +560,8 @@ var Dl;
|
|
|
560
560
|
return k;
|
|
561
561
|
}
|
|
562
562
|
function F(X, ve) {
|
|
563
|
-
var Ie =
|
|
564
|
-
return se(Ie) || (_e = Ie.get(ve)), se(_e) && (_e = ge(X, ve), se(_e) || (se(Ie) && (Ie = new E(),
|
|
563
|
+
var Ie = ne.get(X), _e;
|
|
564
|
+
return se(Ie) || (_e = Ie.get(ve)), se(_e) && (_e = ge(X, ve), se(_e) || (se(Ie) && (Ie = new E(), ne.set(X, Ie)), Ie.set(ve, _e))), _e;
|
|
565
565
|
}
|
|
566
566
|
function Z(X) {
|
|
567
567
|
if (se(X))
|
|
@@ -575,8 +575,8 @@ var Dl;
|
|
|
575
575
|
if (_e !== Ie) {
|
|
576
576
|
if (!se(_e))
|
|
577
577
|
return !1;
|
|
578
|
-
var bt =
|
|
579
|
-
se(bt) && (bt = new E(),
|
|
578
|
+
var bt = ne.get(X);
|
|
579
|
+
se(bt) && (bt = new E(), ne.set(X, bt)), bt.set(ve, Ie);
|
|
580
580
|
}
|
|
581
581
|
return !0;
|
|
582
582
|
}
|
|
@@ -597,7 +597,7 @@ var Dl;
|
|
|
597
597
|
return se(X) ? !1 : X.has(W);
|
|
598
598
|
},
|
|
599
599
|
OrdinaryDefineOwnMetadata: Me,
|
|
600
|
-
OrdinaryHasOwnMetadata:
|
|
600
|
+
OrdinaryHasOwnMetadata: ne,
|
|
601
601
|
OrdinaryGetOwnMetadata: Oe,
|
|
602
602
|
OrdinaryOwnMetadataKeys: ge,
|
|
603
603
|
OrdinaryDeleteMetadata: F
|
|
@@ -619,7 +619,7 @@ var Dl;
|
|
|
619
619
|
}
|
|
620
620
|
return _e;
|
|
621
621
|
}
|
|
622
|
-
function
|
|
622
|
+
function ne(Z, W, X) {
|
|
623
623
|
var ve = U(
|
|
624
624
|
W,
|
|
625
625
|
X,
|
|
@@ -690,15 +690,15 @@ var Dl;
|
|
|
690
690
|
}
|
|
691
691
|
}
|
|
692
692
|
function Kp(k) {
|
|
693
|
-
var x = k.defineMetadata, j = k.hasOwnMetadata, U = k.getOwnMetadata,
|
|
693
|
+
var x = k.defineMetadata, j = k.hasOwnMetadata, U = k.getOwnMetadata, ne = k.getOwnMetadataKeys, Oe = k.deleteMetadata, Me = new p(), ge = {
|
|
694
694
|
isProviderFor: function(F, Z) {
|
|
695
695
|
var W = Me.get(F);
|
|
696
|
-
return se(W) ?
|
|
696
|
+
return se(W) ? ne(F, Z).length ? (se(W) && (W = new m(), Me.set(F, W)), W.add(Z), !0) : !1 : W.has(Z);
|
|
697
697
|
},
|
|
698
698
|
OrdinaryDefineOwnMetadata: x,
|
|
699
699
|
OrdinaryHasOwnMetadata: j,
|
|
700
700
|
OrdinaryGetOwnMetadata: U,
|
|
701
|
-
OrdinaryOwnMetadataKeys:
|
|
701
|
+
OrdinaryOwnMetadataKeys: ne,
|
|
702
702
|
OrdinaryDeleteMetadata: Oe
|
|
703
703
|
};
|
|
704
704
|
return ge;
|
|
@@ -784,7 +784,7 @@ var Dl;
|
|
|
784
784
|
}, ge.prototype.clear = function() {
|
|
785
785
|
this._keys.length = 0, this._values.length = 0, this._cacheKey = k, this._cacheIndex = -2;
|
|
786
786
|
}, ge.prototype.keys = function() {
|
|
787
|
-
return new j(this._keys, this._values,
|
|
787
|
+
return new j(this._keys, this._values, ne);
|
|
788
788
|
}, ge.prototype.values = function() {
|
|
789
789
|
return new j(this._keys, this._values, Oe);
|
|
790
790
|
}, ge.prototype.entries = function() {
|
|
@@ -807,7 +807,7 @@ var Dl;
|
|
|
807
807
|
}()
|
|
808
808
|
);
|
|
809
809
|
return U;
|
|
810
|
-
function
|
|
810
|
+
function ne(ge, F) {
|
|
811
811
|
return ge;
|
|
812
812
|
}
|
|
813
813
|
function Oe(ge, F) {
|
|
@@ -862,28 +862,28 @@ var Dl;
|
|
|
862
862
|
this._key = U();
|
|
863
863
|
}
|
|
864
864
|
return F.prototype.has = function(Z) {
|
|
865
|
-
var W =
|
|
865
|
+
var W = ne(
|
|
866
866
|
Z,
|
|
867
867
|
/*create*/
|
|
868
868
|
!1
|
|
869
869
|
);
|
|
870
870
|
return W !== void 0 ? h.has(W, this._key) : !1;
|
|
871
871
|
}, F.prototype.get = function(Z) {
|
|
872
|
-
var W =
|
|
872
|
+
var W = ne(
|
|
873
873
|
Z,
|
|
874
874
|
/*create*/
|
|
875
875
|
!1
|
|
876
876
|
);
|
|
877
877
|
return W !== void 0 ? h.get(W, this._key) : void 0;
|
|
878
878
|
}, F.prototype.set = function(Z, W) {
|
|
879
|
-
var X =
|
|
879
|
+
var X = ne(
|
|
880
880
|
Z,
|
|
881
881
|
/*create*/
|
|
882
882
|
!0
|
|
883
883
|
);
|
|
884
884
|
return X[this._key] = W, this;
|
|
885
885
|
}, F.prototype.delete = function(Z) {
|
|
886
|
-
var W =
|
|
886
|
+
var W = ne(
|
|
887
887
|
Z,
|
|
888
888
|
/*create*/
|
|
889
889
|
!1
|
|
@@ -901,7 +901,7 @@ var Dl;
|
|
|
901
901
|
while (h.has(x, F));
|
|
902
902
|
return x[F] = !0, F;
|
|
903
903
|
}
|
|
904
|
-
function
|
|
904
|
+
function ne(F, Z) {
|
|
905
905
|
if (!i.call(F, j)) {
|
|
906
906
|
if (!Z)
|
|
907
907
|
return;
|
|
@@ -1390,7 +1390,7 @@ class eo {
|
|
|
1390
1390
|
}
|
|
1391
1391
|
}
|
|
1392
1392
|
const bi = [new Uint8Array([1])], Hl = "0123456789", es = "name", Fl = "valueHexView", mh = "isHexOnly", bh = "idBlock", wh = "tagClass", kh = "tagNumber", Ah = "isConstructed", Sh = "fromBER", Ch = "toBER", xh = "local", it = "", St = new ArrayBuffer(0), to = new Uint8Array(0), Ii = "EndOfContent", Ku = "OCTET STRING", zu = "BIT STRING";
|
|
1393
|
-
function
|
|
1393
|
+
function jt(e) {
|
|
1394
1394
|
var t;
|
|
1395
1395
|
return t = class extends e {
|
|
1396
1396
|
constructor(...i) {
|
|
@@ -1457,7 +1457,7 @@ class tt extends Nr {
|
|
|
1457
1457
|
}
|
|
1458
1458
|
}
|
|
1459
1459
|
tt.NAME = "valueBlock";
|
|
1460
|
-
class Gu extends
|
|
1460
|
+
class Gu extends jt(Nr) {
|
|
1461
1461
|
constructor({ idBlock: t = {} } = {}) {
|
|
1462
1462
|
var r, i, n, o;
|
|
1463
1463
|
super(), t ? (this.isHexOnly = (r = t.isHexOnly) !== null && r !== void 0 ? r : !1, this.valueHexView = t.valueHex ? q.toUint8Array(t.valueHex) : to, this.tagClass = (i = t.tagClass) !== null && i !== void 0 ? i : -1, this.tagNumber = (n = t.tagNumber) !== null && n !== void 0 ? n : -1, this.isConstructed = (o = t.isConstructed) !== null && o !== void 0 ? o : !1) : (this.tagClass = -1, this.tagNumber = -1, this.isConstructed = !1);
|
|
@@ -1710,7 +1710,7 @@ class Pa extends ze {
|
|
|
1710
1710
|
}
|
|
1711
1711
|
}
|
|
1712
1712
|
Pa.NAME = "BaseStringBlock";
|
|
1713
|
-
class Yu extends
|
|
1713
|
+
class Yu extends jt(tt) {
|
|
1714
1714
|
constructor({ isHexOnly: t = !0, ...r } = {}) {
|
|
1715
1715
|
super(r), this.isHexOnly = t;
|
|
1716
1716
|
}
|
|
@@ -2004,7 +2004,7 @@ class Sr extends ze {
|
|
|
2004
2004
|
td = Sr;
|
|
2005
2005
|
K.Null = td;
|
|
2006
2006
|
Sr.NAME = "NULL";
|
|
2007
|
-
class rd extends
|
|
2007
|
+
class rd extends jt(tt) {
|
|
2008
2008
|
constructor({ value: t, ...r } = {}) {
|
|
2009
2009
|
super(r), r.valueHex ? this.valueHexView = q.toUint8Array(r.valueHex) : this.valueHexView = new Uint8Array(1), t && (this.value = t);
|
|
2010
2010
|
}
|
|
@@ -2050,7 +2050,7 @@ let ro = class extends ze {
|
|
|
2050
2050
|
id = ro;
|
|
2051
2051
|
K.Boolean = id;
|
|
2052
2052
|
ro.NAME = "BOOLEAN";
|
|
2053
|
-
class nd extends
|
|
2053
|
+
class nd extends jt(tr) {
|
|
2054
2054
|
constructor({ isConstructed: t = !1, ...r } = {}) {
|
|
2055
2055
|
super(r), this.isConstructed = t;
|
|
2056
2056
|
}
|
|
@@ -2130,7 +2130,7 @@ let yr = class sd extends ze {
|
|
|
2130
2130
|
od = yr;
|
|
2131
2131
|
K.OctetString = od;
|
|
2132
2132
|
yr.NAME = Ku;
|
|
2133
|
-
class ad extends
|
|
2133
|
+
class ad extends jt(tr) {
|
|
2134
2134
|
constructor({ unusedBits: t = 0, isConstructed: r = !1, ...i } = {}) {
|
|
2135
2135
|
super(i), this.unusedBits = t, this.isConstructed = r, this.blockLength = this.valueHexView.byteLength;
|
|
2136
2136
|
}
|
|
@@ -2289,7 +2289,7 @@ function Nh(e, t) {
|
|
|
2289
2289
|
}
|
|
2290
2290
|
return o.slice();
|
|
2291
2291
|
}
|
|
2292
|
-
class Ua extends
|
|
2292
|
+
class Ua extends jt(tt) {
|
|
2293
2293
|
constructor({ value: t, ...r } = {}) {
|
|
2294
2294
|
super(r), this._valueDec = 0, r.valueHex && this.setValueHex(), t !== void 0 && (this.valueDec = t);
|
|
2295
2295
|
}
|
|
@@ -2418,7 +2418,7 @@ class io extends Bt {
|
|
|
2418
2418
|
dd = io;
|
|
2419
2419
|
K.Enumerated = dd;
|
|
2420
2420
|
io.NAME = "ENUMERATED";
|
|
2421
|
-
class ys extends
|
|
2421
|
+
class ys extends jt(tt) {
|
|
2422
2422
|
constructor({ valueDec: t = -1, isFirstSid: r = !1, ...i } = {}) {
|
|
2423
2423
|
super(i), this.valueDec = t, this.isFirstSid = r;
|
|
2424
2424
|
}
|
|
@@ -2593,7 +2593,7 @@ class no extends ze {
|
|
|
2593
2593
|
pd = no;
|
|
2594
2594
|
K.ObjectIdentifier = pd;
|
|
2595
2595
|
no.NAME = "OBJECT IDENTIFIER";
|
|
2596
|
-
class gs extends
|
|
2596
|
+
class gs extends jt(Nr) {
|
|
2597
2597
|
constructor({ valueDec: t = 0, ...r } = {}) {
|
|
2598
2598
|
super(r), this.valueDec = t;
|
|
2599
2599
|
}
|
|
@@ -2727,24 +2727,24 @@ yd = Da;
|
|
|
2727
2727
|
K.RelativeObjectIdentifier = yd;
|
|
2728
2728
|
Da.NAME = "RelativeObjectIdentifier";
|
|
2729
2729
|
var gd;
|
|
2730
|
-
class
|
|
2730
|
+
class Ft extends ot {
|
|
2731
2731
|
constructor(t = {}) {
|
|
2732
2732
|
super(t), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 16;
|
|
2733
2733
|
}
|
|
2734
2734
|
}
|
|
2735
|
-
gd =
|
|
2735
|
+
gd = Ft;
|
|
2736
2736
|
K.Sequence = gd;
|
|
2737
|
-
|
|
2737
|
+
Ft.NAME = "SEQUENCE";
|
|
2738
2738
|
var vd;
|
|
2739
|
-
let
|
|
2739
|
+
let qt = class extends ot {
|
|
2740
2740
|
constructor(t = {}) {
|
|
2741
2741
|
super(t), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 17;
|
|
2742
2742
|
}
|
|
2743
2743
|
};
|
|
2744
|
-
vd =
|
|
2744
|
+
vd = qt;
|
|
2745
2745
|
K.Set = vd;
|
|
2746
|
-
|
|
2747
|
-
class md extends
|
|
2746
|
+
qt.NAME = "SET";
|
|
2747
|
+
class md extends jt(tt) {
|
|
2748
2748
|
constructor({ ...t } = {}) {
|
|
2749
2749
|
super(t), this.isHexOnly = !0, this.value = it;
|
|
2750
2750
|
}
|
|
@@ -3417,7 +3417,7 @@ const Hd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3417
3417
|
GeneralString: ho,
|
|
3418
3418
|
GeneralizedTime: go,
|
|
3419
3419
|
GraphicString: po,
|
|
3420
|
-
HexBlock:
|
|
3420
|
+
HexBlock: jt,
|
|
3421
3421
|
IA5String: fo,
|
|
3422
3422
|
Integer: Bt,
|
|
3423
3423
|
Null: Sr,
|
|
@@ -3429,8 +3429,8 @@ const Hd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3429
3429
|
RawData: Oh,
|
|
3430
3430
|
RelativeObjectIdentifier: Da,
|
|
3431
3431
|
Repeated: wn,
|
|
3432
|
-
Sequence:
|
|
3433
|
-
Set:
|
|
3432
|
+
Sequence: Ft,
|
|
3433
|
+
Set: qt,
|
|
3434
3434
|
TIME: Ka,
|
|
3435
3435
|
TeletexString: co,
|
|
3436
3436
|
TimeOfDay: Ha,
|
|
@@ -3616,8 +3616,8 @@ function Ga(e) {
|
|
|
3616
3616
|
return null;
|
|
3617
3617
|
}
|
|
3618
3618
|
}
|
|
3619
|
-
function
|
|
3620
|
-
return typeof e == "function" && e.prototype ? e.prototype.toASN && e.prototype.fromASN ? !0 :
|
|
3619
|
+
function Ht(e) {
|
|
3620
|
+
return typeof e == "function" && e.prototype ? e.prototype.toASN && e.prototype.fromASN ? !0 : Ht(e.prototype) : !!(e && typeof e == "object" && "toASN" in e && "fromASN" in e);
|
|
3621
3621
|
}
|
|
3622
3622
|
function qd(e) {
|
|
3623
3623
|
var t;
|
|
@@ -3673,11 +3673,11 @@ class ey {
|
|
|
3673
3673
|
throw new Error(`Cannot get ASN1 class by name '${h}'`);
|
|
3674
3674
|
l = new f({ name: a });
|
|
3675
3675
|
} else
|
|
3676
|
-
|
|
3676
|
+
Ht(s.type) ? l = new s.type().toSchema(a) : s.optional ? this.get(s.type).type === $.Choice ? l = new Cr({ name: a }) : (l = this.create(s.type, !1), l.name = a) : l = new Cr({ name: a });
|
|
3677
3677
|
const u = !!s.optional || s.defaultValue !== void 0;
|
|
3678
3678
|
if (s.repeated) {
|
|
3679
3679
|
l.name = "";
|
|
3680
|
-
const h = s.repeated === "set" ?
|
|
3680
|
+
const h = s.repeated === "set" ? qt : Ft;
|
|
3681
3681
|
l = new h({
|
|
3682
3682
|
name: "",
|
|
3683
3683
|
value: [
|
|
@@ -3690,7 +3690,7 @@ class ey {
|
|
|
3690
3690
|
}
|
|
3691
3691
|
if (s.context !== null && s.context !== void 0)
|
|
3692
3692
|
if (s.implicit)
|
|
3693
|
-
if (typeof s.type == "number" ||
|
|
3693
|
+
if (typeof s.type == "number" || Ht(s.type)) {
|
|
3694
3694
|
const h = s.repeated ? ot : qi;
|
|
3695
3695
|
n.push(new h({
|
|
3696
3696
|
name: a,
|
|
@@ -3728,9 +3728,9 @@ class ey {
|
|
|
3728
3728
|
}
|
|
3729
3729
|
switch (i.type) {
|
|
3730
3730
|
case $.Sequence:
|
|
3731
|
-
return new Ht({ value: n, name: "" });
|
|
3732
|
-
case $.Set:
|
|
3733
3731
|
return new Ft({ value: n, name: "" });
|
|
3732
|
+
case $.Set:
|
|
3733
|
+
return new qt({ value: n, name: "" });
|
|
3734
3734
|
case $.Choice:
|
|
3735
3735
|
return new za({ value: n, name: "" });
|
|
3736
3736
|
default:
|
|
@@ -3775,7 +3775,7 @@ class ty {
|
|
|
3775
3775
|
static fromASN(t, r) {
|
|
3776
3776
|
var i;
|
|
3777
3777
|
try {
|
|
3778
|
-
if (
|
|
3778
|
+
if (Ht(r))
|
|
3779
3779
|
return new r().fromASN(t);
|
|
3780
3780
|
const n = ht.get(r);
|
|
3781
3781
|
ht.cache(r);
|
|
@@ -3812,13 +3812,13 @@ class ty {
|
|
|
3812
3812
|
if (!u)
|
|
3813
3813
|
continue;
|
|
3814
3814
|
const h = n.items[l], f = h.type;
|
|
3815
|
-
if (typeof f == "number" ||
|
|
3816
|
-
const E = (i = h.converter) !== null && i !== void 0 ? i :
|
|
3815
|
+
if (typeof f == "number" || Ht(f)) {
|
|
3816
|
+
const E = (i = h.converter) !== null && i !== void 0 ? i : Ht(f) ? new f() : null;
|
|
3817
3817
|
if (!E)
|
|
3818
3818
|
throw new Error("Converter is empty");
|
|
3819
3819
|
if (h.repeated)
|
|
3820
3820
|
if (h.implicit) {
|
|
3821
|
-
const m = h.repeated === "sequence" ?
|
|
3821
|
+
const m = h.repeated === "sequence" ? Ft : qt, p = new m();
|
|
3822
3822
|
p.valueBlock = u.valueBlock;
|
|
3823
3823
|
const y = Hr(p.toBER(!1));
|
|
3824
3824
|
if (y.offset === -1)
|
|
@@ -3833,7 +3833,7 @@ class ty {
|
|
|
3833
3833
|
let m = u;
|
|
3834
3834
|
if (h.implicit) {
|
|
3835
3835
|
let p;
|
|
3836
|
-
if (
|
|
3836
|
+
if (Ht(f))
|
|
3837
3837
|
p = new f().toSchema("");
|
|
3838
3838
|
else {
|
|
3839
3839
|
const y = v[f], g = Hd[y];
|
|
@@ -3863,7 +3863,7 @@ class Wa {
|
|
|
3863
3863
|
return t instanceof ze ? t.toBER(!1) : this.toASN(t).toBER(!1);
|
|
3864
3864
|
}
|
|
3865
3865
|
static toASN(t) {
|
|
3866
|
-
if (t && typeof t == "object" &&
|
|
3866
|
+
if (t && typeof t == "object" && Ht(t))
|
|
3867
3867
|
return t.toASN();
|
|
3868
3868
|
if (!(t && typeof t == "object"))
|
|
3869
3869
|
throw new TypeError("Parameter 1 should be type of Object.");
|
|
@@ -3888,7 +3888,7 @@ class Wa {
|
|
|
3888
3888
|
const u = Wa.toAsnItem(a, s, r, l);
|
|
3889
3889
|
if (typeof a.context == "number")
|
|
3890
3890
|
if (a.implicit)
|
|
3891
|
-
if (!a.repeated && (typeof a.type == "number" ||
|
|
3891
|
+
if (!a.repeated && (typeof a.type == "number" || Ht(a.type))) {
|
|
3892
3892
|
const h = {};
|
|
3893
3893
|
h.valueHex = u instanceof Sr ? u.valueBeforeDecodeView : u.valueBlock.toBER(), n.push(new qi({
|
|
3894
3894
|
optional: a.optional,
|
|
@@ -3922,10 +3922,10 @@ class Wa {
|
|
|
3922
3922
|
let o;
|
|
3923
3923
|
switch (i.type) {
|
|
3924
3924
|
case $.Sequence:
|
|
3925
|
-
o = new
|
|
3925
|
+
o = new Ft({ value: n });
|
|
3926
3926
|
break;
|
|
3927
3927
|
case $.Set:
|
|
3928
|
-
o = new
|
|
3928
|
+
o = new qt({ value: n });
|
|
3929
3929
|
break;
|
|
3930
3930
|
case $.Choice:
|
|
3931
3931
|
if (!n[0])
|
|
@@ -3944,7 +3944,7 @@ class Wa {
|
|
|
3944
3944
|
if (t.repeated) {
|
|
3945
3945
|
if (!Array.isArray(n))
|
|
3946
3946
|
throw new TypeError("Parameter 'objProp' should be type of Array.");
|
|
3947
|
-
const a = Array.from(n, (u) => s.toASN(u)), l = t.repeated === "sequence" ?
|
|
3947
|
+
const a = Array.from(n, (u) => s.toASN(u)), l = t.repeated === "sequence" ? Ft : qt;
|
|
3948
3948
|
o = new l({
|
|
3949
3949
|
value: a
|
|
3950
3950
|
});
|
|
@@ -3953,7 +3953,7 @@ class Wa {
|
|
|
3953
3953
|
} else if (t.repeated) {
|
|
3954
3954
|
if (!Array.isArray(n))
|
|
3955
3955
|
throw new TypeError("Parameter 'objProp' should be type of Array.");
|
|
3956
|
-
const s = Array.from(n, (l) => this.toASN(l)), a = t.repeated === "sequence" ?
|
|
3956
|
+
const s = Array.from(n, (l) => this.toASN(l)), a = t.repeated === "sequence" ? Ft : qt;
|
|
3957
3957
|
o = new a({
|
|
3958
3958
|
value: s
|
|
3959
3959
|
});
|
|
@@ -4693,7 +4693,7 @@ Jl = Cs = c([
|
|
|
4693
4693
|
], Jl);
|
|
4694
4694
|
var xs;
|
|
4695
4695
|
const Gd = `${Or}.32`;
|
|
4696
|
-
let
|
|
4696
|
+
let zt = class {
|
|
4697
4697
|
constructor(t = {}) {
|
|
4698
4698
|
Object.assign(this, t);
|
|
4699
4699
|
}
|
|
@@ -4703,26 +4703,26 @@ let Kt = class {
|
|
|
4703
4703
|
};
|
|
4704
4704
|
c([
|
|
4705
4705
|
d({ type: v.IA5String })
|
|
4706
|
-
],
|
|
4706
|
+
], zt.prototype, "ia5String", void 0);
|
|
4707
4707
|
c([
|
|
4708
4708
|
d({ type: v.VisibleString })
|
|
4709
|
-
],
|
|
4709
|
+
], zt.prototype, "visibleString", void 0);
|
|
4710
4710
|
c([
|
|
4711
4711
|
d({ type: v.BmpString })
|
|
4712
|
-
],
|
|
4712
|
+
], zt.prototype, "bmpString", void 0);
|
|
4713
4713
|
c([
|
|
4714
4714
|
d({ type: v.Utf8String })
|
|
4715
|
-
],
|
|
4716
|
-
|
|
4715
|
+
], zt.prototype, "utf8String", void 0);
|
|
4716
|
+
zt = c([
|
|
4717
4717
|
P({ type: $.Choice })
|
|
4718
|
-
],
|
|
4718
|
+
], zt);
|
|
4719
4719
|
class Za {
|
|
4720
4720
|
constructor(t = {}) {
|
|
4721
|
-
this.organization = new
|
|
4721
|
+
this.organization = new zt(), this.noticeNumbers = [], Object.assign(this, t);
|
|
4722
4722
|
}
|
|
4723
4723
|
}
|
|
4724
4724
|
c([
|
|
4725
|
-
d({ type:
|
|
4725
|
+
d({ type: zt })
|
|
4726
4726
|
], Za.prototype, "organization", void 0);
|
|
4727
4727
|
c([
|
|
4728
4728
|
d({ type: v.Integer, repeated: "sequence" })
|
|
@@ -4736,7 +4736,7 @@ c([
|
|
|
4736
4736
|
d({ type: Za, optional: !0 })
|
|
4737
4737
|
], Qa.prototype, "noticeRef", void 0);
|
|
4738
4738
|
c([
|
|
4739
|
-
d({ type:
|
|
4739
|
+
d({ type: zt, optional: !0 })
|
|
4740
4740
|
], Qa.prototype, "explicitText", void 0);
|
|
4741
4741
|
let Sn = class {
|
|
4742
4742
|
constructor(t = {}) {
|
|
@@ -5044,17 +5044,17 @@ let Ps = Ms = class extends et {
|
|
|
5044
5044
|
Ps = Ms = c([
|
|
5045
5045
|
P({ type: $.Sequence })
|
|
5046
5046
|
], Ps);
|
|
5047
|
-
let
|
|
5047
|
+
let Gt = class {
|
|
5048
5048
|
constructor(t = {}) {
|
|
5049
5049
|
this.type = "", this.values = [], Object.assign(this, t);
|
|
5050
5050
|
}
|
|
5051
5051
|
};
|
|
5052
5052
|
c([
|
|
5053
5053
|
d({ type: v.ObjectIdentifier })
|
|
5054
|
-
],
|
|
5054
|
+
], Gt.prototype, "type", void 0);
|
|
5055
5055
|
c([
|
|
5056
5056
|
d({ type: v.Any, repeated: "set" })
|
|
5057
|
-
],
|
|
5057
|
+
], Gt.prototype, "values", void 0);
|
|
5058
5058
|
var Rs;
|
|
5059
5059
|
let ec = Rs = class extends Ae {
|
|
5060
5060
|
constructor(t) {
|
|
@@ -5062,7 +5062,7 @@ let ec = Rs = class extends Ae {
|
|
|
5062
5062
|
}
|
|
5063
5063
|
};
|
|
5064
5064
|
ec = Rs = c([
|
|
5065
|
-
P({ type: $.Sequence, itemType:
|
|
5065
|
+
P({ type: $.Sequence, itemType: Gt })
|
|
5066
5066
|
], ec);
|
|
5067
5067
|
const ef = `${Or}.14`;
|
|
5068
5068
|
class rr extends Ya {
|
|
@@ -5130,17 +5130,17 @@ c([
|
|
|
5130
5130
|
optional: !0
|
|
5131
5131
|
})
|
|
5132
5132
|
], Q.prototype, "parameters", void 0);
|
|
5133
|
-
class
|
|
5133
|
+
class Kt {
|
|
5134
5134
|
constructor(t = {}) {
|
|
5135
5135
|
this.algorithm = new Q(), this.subjectPublicKey = new ArrayBuffer(0), Object.assign(this, t);
|
|
5136
5136
|
}
|
|
5137
5137
|
}
|
|
5138
5138
|
c([
|
|
5139
5139
|
d({ type: Q })
|
|
5140
|
-
],
|
|
5140
|
+
], Kt.prototype, "algorithm", void 0);
|
|
5141
5141
|
c([
|
|
5142
5142
|
d({ type: v.BitString })
|
|
5143
|
-
],
|
|
5143
|
+
], Kt.prototype, "subjectPublicKey", void 0);
|
|
5144
5144
|
let qe = class {
|
|
5145
5145
|
constructor(t) {
|
|
5146
5146
|
if (t)
|
|
@@ -5214,7 +5214,7 @@ var Gr;
|
|
|
5214
5214
|
})(Gr || (Gr = {}));
|
|
5215
5215
|
class mt {
|
|
5216
5216
|
constructor(t = {}) {
|
|
5217
|
-
this.version = Gr.v1, this.serialNumber = new ArrayBuffer(0), this.signature = new Q(), this.issuer = new Pe(), this.validity = new ko(), this.subject = new Pe(), this.subjectPublicKeyInfo = new
|
|
5217
|
+
this.version = Gr.v1, this.serialNumber = new ArrayBuffer(0), this.signature = new Q(), this.issuer = new Pe(), this.validity = new ko(), this.subject = new Pe(), this.subjectPublicKeyInfo = new Kt(), Object.assign(this, t);
|
|
5218
5218
|
}
|
|
5219
5219
|
}
|
|
5220
5220
|
c([
|
|
@@ -5243,7 +5243,7 @@ c([
|
|
|
5243
5243
|
d({ type: Pe })
|
|
5244
5244
|
], mt.prototype, "subject", void 0);
|
|
5245
5245
|
c([
|
|
5246
|
-
d({ type:
|
|
5246
|
+
d({ type: Kt })
|
|
5247
5247
|
], mt.prototype, "subjectPublicKeyInfo", void 0);
|
|
5248
5248
|
c([
|
|
5249
5249
|
d({
|
|
@@ -5352,10 +5352,10 @@ c([
|
|
|
5352
5352
|
Jr = c([
|
|
5353
5353
|
P({ type: $.Choice })
|
|
5354
5354
|
], Jr);
|
|
5355
|
-
var
|
|
5355
|
+
var Wt;
|
|
5356
5356
|
(function(e) {
|
|
5357
5357
|
e[e.v0 = 0] = "v0", e[e.v1 = 1] = "v1", e[e.v2 = 2] = "v2", e[e.v3 = 3] = "v3", e[e.v4 = 4] = "v4", e[e.v5 = 5] = "v5";
|
|
5358
|
-
})(
|
|
5358
|
+
})(Wt || (Wt = {}));
|
|
5359
5359
|
let Ni = class extends Q {
|
|
5360
5360
|
};
|
|
5361
5361
|
Ni = c([
|
|
@@ -5398,46 +5398,46 @@ c([
|
|
|
5398
5398
|
d({ type: v.Any, repeated: "set" })
|
|
5399
5399
|
], di.prototype, "attrValues", void 0);
|
|
5400
5400
|
var Hs;
|
|
5401
|
-
class
|
|
5401
|
+
class $t {
|
|
5402
5402
|
constructor(t = {}) {
|
|
5403
|
-
this.version =
|
|
5403
|
+
this.version = Wt.v0, this.sid = new Jr(), this.digestAlgorithm = new Ni(), this.signatureAlgorithm = new En(), this.signature = new be(), Object.assign(this, t);
|
|
5404
5404
|
}
|
|
5405
5405
|
}
|
|
5406
5406
|
c([
|
|
5407
5407
|
d({ type: v.Integer })
|
|
5408
|
-
],
|
|
5408
|
+
], $t.prototype, "version", void 0);
|
|
5409
5409
|
c([
|
|
5410
5410
|
d({ type: Jr })
|
|
5411
|
-
],
|
|
5411
|
+
], $t.prototype, "sid", void 0);
|
|
5412
5412
|
c([
|
|
5413
5413
|
d({ type: Ni })
|
|
5414
|
-
],
|
|
5414
|
+
], $t.prototype, "digestAlgorithm", void 0);
|
|
5415
5415
|
c([
|
|
5416
5416
|
d({ type: di, repeated: "set", context: 0, implicit: !0, optional: !0 })
|
|
5417
|
-
],
|
|
5417
|
+
], $t.prototype, "signedAttrs", void 0);
|
|
5418
5418
|
c([
|
|
5419
5419
|
d({ type: En })
|
|
5420
|
-
],
|
|
5420
|
+
], $t.prototype, "signatureAlgorithm", void 0);
|
|
5421
5421
|
c([
|
|
5422
5422
|
d({ type: be })
|
|
5423
|
-
],
|
|
5423
|
+
], $t.prototype, "signature", void 0);
|
|
5424
5424
|
c([
|
|
5425
5425
|
d({ type: di, repeated: "set", context: 1, implicit: !0, optional: !0 })
|
|
5426
|
-
],
|
|
5426
|
+
], $t.prototype, "unsignedAttrs", void 0);
|
|
5427
5427
|
let On = Hs = class extends Ae {
|
|
5428
5428
|
constructor(t) {
|
|
5429
5429
|
super(t), Object.setPrototypeOf(this, Hs.prototype);
|
|
5430
5430
|
}
|
|
5431
5431
|
};
|
|
5432
5432
|
On = Hs = c([
|
|
5433
|
-
P({ type: $.Set, itemType:
|
|
5433
|
+
P({ type: $.Set, itemType: $t })
|
|
5434
5434
|
], On);
|
|
5435
5435
|
let ic = class extends qe {
|
|
5436
5436
|
};
|
|
5437
5437
|
ic = c([
|
|
5438
5438
|
P({ type: $.Choice })
|
|
5439
5439
|
], ic);
|
|
5440
|
-
let nc = class extends
|
|
5440
|
+
let nc = class extends $t {
|
|
5441
5441
|
};
|
|
5442
5442
|
nc = c([
|
|
5443
5443
|
P({ type: $.Sequence })
|
|
@@ -5454,7 +5454,7 @@ c([
|
|
|
5454
5454
|
d({ type: v.Integer })
|
|
5455
5455
|
], rl.prototype, "acSerial", void 0);
|
|
5456
5456
|
c([
|
|
5457
|
-
d({ type:
|
|
5457
|
+
d({ type: Gt, repeated: "sequence" })
|
|
5458
5458
|
], rl.prototype, "attrs", void 0);
|
|
5459
5459
|
var Fs;
|
|
5460
5460
|
let _n = Fs = class extends Ae {
|
|
@@ -5598,7 +5598,7 @@ c([
|
|
|
5598
5598
|
d({ type: xo })
|
|
5599
5599
|
], Ct.prototype, "attrCertValidityPeriod", void 0);
|
|
5600
5600
|
c([
|
|
5601
|
-
d({ type:
|
|
5601
|
+
d({ type: Gt, repeated: "sequence" })
|
|
5602
5602
|
], Ct.prototype, "attributes", void 0);
|
|
5603
5603
|
c([
|
|
5604
5604
|
d({ type: v.BitString, optional: !0 })
|
|
@@ -5940,7 +5940,7 @@ Ir = c([
|
|
|
5940
5940
|
], Ir);
|
|
5941
5941
|
class pi {
|
|
5942
5942
|
constructor(t = {}) {
|
|
5943
|
-
this.version =
|
|
5943
|
+
this.version = Wt.v3, this.originator = new Ir(), this.keyEncryptionAlgorithm = new Nt(), this.recipientEncryptedKeys = new $n(), Object.assign(this, t);
|
|
5944
5944
|
}
|
|
5945
5945
|
}
|
|
5946
5946
|
c([
|
|
@@ -5974,7 +5974,7 @@ ei = c([
|
|
|
5974
5974
|
], ei);
|
|
5975
5975
|
class Yi {
|
|
5976
5976
|
constructor(t = {}) {
|
|
5977
|
-
this.version =
|
|
5977
|
+
this.version = Wt.v0, this.rid = new ei(), this.keyEncryptionAlgorithm = new Nt(), this.encryptedKey = new be(), Object.assign(this, t);
|
|
5978
5978
|
}
|
|
5979
5979
|
}
|
|
5980
5980
|
c([
|
|
@@ -6005,7 +6005,7 @@ c([
|
|
|
6005
6005
|
], Zi.prototype, "other", void 0);
|
|
6006
6006
|
class Qi {
|
|
6007
6007
|
constructor(t = {}) {
|
|
6008
|
-
this.version =
|
|
6008
|
+
this.version = Wt.v4, this.kekid = new Zi(), this.keyEncryptionAlgorithm = new Nt(), this.encryptedKey = new be(), Object.assign(this, t);
|
|
6009
6009
|
}
|
|
6010
6010
|
}
|
|
6011
6011
|
c([
|
|
@@ -6022,7 +6022,7 @@ c([
|
|
|
6022
6022
|
], Qi.prototype, "encryptedKey", void 0);
|
|
6023
6023
|
class Xi {
|
|
6024
6024
|
constructor(t = {}) {
|
|
6025
|
-
this.version =
|
|
6025
|
+
this.version = Wt.v0, this.keyEncryptionAlgorithm = new Nt(), this.encryptedKey = new be(), Object.assign(this, t);
|
|
6026
6026
|
}
|
|
6027
6027
|
}
|
|
6028
6028
|
c([
|
|
@@ -6133,7 +6133,7 @@ ra = ta = c([
|
|
|
6133
6133
|
], ra);
|
|
6134
6134
|
class en {
|
|
6135
6135
|
constructor(t = {}) {
|
|
6136
|
-
this.version =
|
|
6136
|
+
this.version = Wt.v0, this.recipientInfos = new Vn(), this.encryptedContentInfo = new Ji(), Object.assign(this, t);
|
|
6137
6137
|
}
|
|
6138
6138
|
}
|
|
6139
6139
|
c([
|
|
@@ -6163,7 +6163,7 @@ Mn = ia = c([
|
|
|
6163
6163
|
], Mn);
|
|
6164
6164
|
class hi {
|
|
6165
6165
|
constructor(t = {}) {
|
|
6166
|
-
this.version =
|
|
6166
|
+
this.version = Wt.v0, this.digestAlgorithms = new Mn(), this.encapContentInfo = new No(), this.signerInfos = new On(), Object.assign(this, t);
|
|
6167
6167
|
}
|
|
6168
6168
|
}
|
|
6169
6169
|
c([
|
|
@@ -6339,41 +6339,41 @@ let sa = oa = class extends Ae {
|
|
|
6339
6339
|
sa = oa = c([
|
|
6340
6340
|
P({ type: $.Sequence, itemType: Mo })
|
|
6341
6341
|
], sa);
|
|
6342
|
-
class
|
|
6342
|
+
class Vt {
|
|
6343
6343
|
constructor(t = {}) {
|
|
6344
6344
|
this.version = 0, this.modulus = new ArrayBuffer(0), this.publicExponent = new ArrayBuffer(0), this.privateExponent = new ArrayBuffer(0), this.prime1 = new ArrayBuffer(0), this.prime2 = new ArrayBuffer(0), this.exponent1 = new ArrayBuffer(0), this.exponent2 = new ArrayBuffer(0), this.coefficient = new ArrayBuffer(0), Object.assign(this, t);
|
|
6345
6345
|
}
|
|
6346
6346
|
}
|
|
6347
6347
|
c([
|
|
6348
6348
|
d({ type: v.Integer })
|
|
6349
|
-
],
|
|
6349
|
+
], Vt.prototype, "version", void 0);
|
|
6350
6350
|
c([
|
|
6351
6351
|
d({ type: v.Integer, converter: Be })
|
|
6352
|
-
],
|
|
6352
|
+
], Vt.prototype, "modulus", void 0);
|
|
6353
6353
|
c([
|
|
6354
6354
|
d({ type: v.Integer, converter: Be })
|
|
6355
|
-
],
|
|
6355
|
+
], Vt.prototype, "publicExponent", void 0);
|
|
6356
6356
|
c([
|
|
6357
6357
|
d({ type: v.Integer, converter: Be })
|
|
6358
|
-
],
|
|
6358
|
+
], Vt.prototype, "privateExponent", void 0);
|
|
6359
6359
|
c([
|
|
6360
6360
|
d({ type: v.Integer, converter: Be })
|
|
6361
|
-
],
|
|
6361
|
+
], Vt.prototype, "prime1", void 0);
|
|
6362
6362
|
c([
|
|
6363
6363
|
d({ type: v.Integer, converter: Be })
|
|
6364
|
-
],
|
|
6364
|
+
], Vt.prototype, "prime2", void 0);
|
|
6365
6365
|
c([
|
|
6366
6366
|
d({ type: v.Integer, converter: Be })
|
|
6367
|
-
],
|
|
6367
|
+
], Vt.prototype, "exponent1", void 0);
|
|
6368
6368
|
c([
|
|
6369
6369
|
d({ type: v.Integer, converter: Be })
|
|
6370
|
-
],
|
|
6370
|
+
], Vt.prototype, "exponent2", void 0);
|
|
6371
6371
|
c([
|
|
6372
6372
|
d({ type: v.Integer, converter: Be })
|
|
6373
|
-
],
|
|
6373
|
+
], Vt.prototype, "coefficient", void 0);
|
|
6374
6374
|
c([
|
|
6375
6375
|
d({ type: sa, optional: !0 })
|
|
6376
|
-
],
|
|
6376
|
+
], Vt.prototype, "otherPrimeInfos", void 0);
|
|
6377
6377
|
class gl {
|
|
6378
6378
|
constructor(t = {}) {
|
|
6379
6379
|
this.modulus = new ArrayBuffer(0), this.publicExponent = new ArrayBuffer(0), Object.assign(this, t);
|
|
@@ -7009,7 +7009,7 @@ let ha = fa = class extends Ae {
|
|
|
7009
7009
|
}
|
|
7010
7010
|
};
|
|
7011
7011
|
ha = fa = c([
|
|
7012
|
-
P({ type: $.Sequence, itemType:
|
|
7012
|
+
P({ type: $.Sequence, itemType: Gt })
|
|
7013
7013
|
], ha);
|
|
7014
7014
|
class nn {
|
|
7015
7015
|
constructor(t = {}) {
|
|
@@ -7242,7 +7242,7 @@ c([
|
|
|
7242
7242
|
Sa = c([
|
|
7243
7243
|
P({ type: $.Choice })
|
|
7244
7244
|
], Sa);
|
|
7245
|
-
let xc = class extends
|
|
7245
|
+
let xc = class extends $t {
|
|
7246
7246
|
};
|
|
7247
7247
|
xc = c([
|
|
7248
7248
|
P({ type: $.Sequence })
|
|
@@ -7302,11 +7302,11 @@ let Kn = Ia = class extends Ae {
|
|
|
7302
7302
|
}
|
|
7303
7303
|
};
|
|
7304
7304
|
Kn = Ia = c([
|
|
7305
|
-
P({ type: $.Sequence, itemType:
|
|
7305
|
+
P({ type: $.Sequence, itemType: Gt })
|
|
7306
7306
|
], Kn);
|
|
7307
7307
|
class yi {
|
|
7308
7308
|
constructor(t = {}) {
|
|
7309
|
-
this.version = 0, this.subject = new Pe(), this.subjectPKInfo = new
|
|
7309
|
+
this.version = 0, this.subject = new Pe(), this.subjectPKInfo = new Kt(), this.attributes = new Kn(), Object.assign(this, t);
|
|
7310
7310
|
}
|
|
7311
7311
|
}
|
|
7312
7312
|
c([
|
|
@@ -7316,7 +7316,7 @@ c([
|
|
|
7316
7316
|
d({ type: Pe })
|
|
7317
7317
|
], yi.prototype, "subject", void 0);
|
|
7318
7318
|
c([
|
|
7319
|
-
d({ type:
|
|
7319
|
+
d({ type: Kt })
|
|
7320
7320
|
], yi.prototype, "subjectPKInfo", void 0);
|
|
7321
7321
|
c([
|
|
7322
7322
|
d({ type: Kn, implicit: !0, context: 0 })
|
|
@@ -7696,7 +7696,7 @@ class ur {
|
|
|
7696
7696
|
}
|
|
7697
7697
|
}
|
|
7698
7698
|
ur.NAME = "ASN";
|
|
7699
|
-
class
|
|
7699
|
+
class Mt extends ur {
|
|
7700
7700
|
constructor(...t) {
|
|
7701
7701
|
let r;
|
|
7702
7702
|
q.isBufferSource(t[0]) ? r = q.toArrayBuffer(t[0]) : r = ee.serialize(new At({
|
|
@@ -7714,7 +7714,7 @@ class Vt extends ur {
|
|
|
7714
7714
|
}
|
|
7715
7715
|
toTextObjectWithoutValue() {
|
|
7716
7716
|
const t = this.toTextObjectEmpty(this.critical ? "critical" : void 0);
|
|
7717
|
-
return t[ke.NAME] ===
|
|
7717
|
+
return t[ke.NAME] === Mt.NAME && (t[ke.NAME] = cr.toString(this.type)), t;
|
|
7718
7718
|
}
|
|
7719
7719
|
}
|
|
7720
7720
|
var Of;
|
|
@@ -8178,7 +8178,7 @@ ft.CrlTag = "CRL";
|
|
|
8178
8178
|
ft.CertificateRequestTag = "CERTIFICATE REQUEST";
|
|
8179
8179
|
ft.PublicKeyTag = "PUBLIC KEY";
|
|
8180
8180
|
ft.PrivateKeyTag = "PRIVATE KEY";
|
|
8181
|
-
class
|
|
8181
|
+
class Jt extends ur {
|
|
8182
8182
|
static isAsnEncoded(t) {
|
|
8183
8183
|
return q.isBufferSource(t) || typeof t == "string";
|
|
8184
8184
|
}
|
|
@@ -8199,7 +8199,7 @@ class Wt extends ur {
|
|
|
8199
8199
|
}
|
|
8200
8200
|
}
|
|
8201
8201
|
constructor(...t) {
|
|
8202
|
-
|
|
8202
|
+
Jt.isAsnEncoded(t[0]) ? super(Jt.toArrayBuffer(t[0]), t[1]) : super(t[0]);
|
|
8203
8203
|
}
|
|
8204
8204
|
toString(t = "pem") {
|
|
8205
8205
|
switch (t) {
|
|
@@ -8210,9 +8210,9 @@ class Wt extends ur {
|
|
|
8210
8210
|
}
|
|
8211
8211
|
}
|
|
8212
8212
|
}
|
|
8213
|
-
class mr extends
|
|
8213
|
+
class mr extends Jt {
|
|
8214
8214
|
constructor(t) {
|
|
8215
|
-
|
|
8215
|
+
Jt.isAsnEncoded(t) ? super(t, Kt) : super(t), this.tag = ft.PublicKeyTag;
|
|
8216
8216
|
}
|
|
8217
8217
|
async export(...t) {
|
|
8218
8218
|
let r, i = ["verify"], n = { hash: "SHA-256", ...this.algorithm };
|
|
@@ -8235,11 +8235,11 @@ class mr extends Wt {
|
|
|
8235
8235
|
}
|
|
8236
8236
|
async getKeyIdentifier(t) {
|
|
8237
8237
|
t || (t = dt.get());
|
|
8238
|
-
const r = ee.parse(this.rawData,
|
|
8238
|
+
const r = ee.parse(this.rawData, Kt);
|
|
8239
8239
|
return await t.subtle.digest("SHA-1", r.subjectPublicKey);
|
|
8240
8240
|
}
|
|
8241
8241
|
toTextObject() {
|
|
8242
|
-
const t = this.toTextObjectEmpty(), r = ee.parse(this.rawData,
|
|
8242
|
+
const t = this.toTextObjectEmpty(), r = ee.parse(this.rawData, Kt);
|
|
8243
8243
|
switch (t.Algorithm = Er.serializeAlgorithm(r.algorithm), r.algorithm.algorithm) {
|
|
8244
8244
|
case ji:
|
|
8245
8245
|
t["EC Point"] = r.subjectPublicKey;
|
|
@@ -8251,16 +8251,16 @@ class mr extends Wt {
|
|
|
8251
8251
|
return t;
|
|
8252
8252
|
}
|
|
8253
8253
|
}
|
|
8254
|
-
class
|
|
8254
|
+
class Pt {
|
|
8255
8255
|
static register(t, r) {
|
|
8256
8256
|
this.items.set(t, r);
|
|
8257
8257
|
}
|
|
8258
8258
|
static create(t) {
|
|
8259
|
-
const r = new
|
|
8259
|
+
const r = new Mt(t), i = this.items.get(r.type);
|
|
8260
8260
|
return i ? new i(t) : r;
|
|
8261
8261
|
}
|
|
8262
8262
|
}
|
|
8263
|
-
|
|
8263
|
+
Pt.items = /* @__PURE__ */ new Map();
|
|
8264
8264
|
const Fo = "crypto.signatureFormatter";
|
|
8265
8265
|
class tg {
|
|
8266
8266
|
toAsnSignature(t, r) {
|
|
@@ -8270,9 +8270,9 @@ class tg {
|
|
|
8270
8270
|
return q.toArrayBuffer(r);
|
|
8271
8271
|
}
|
|
8272
8272
|
}
|
|
8273
|
-
class zn extends
|
|
8273
|
+
class zn extends Jt {
|
|
8274
8274
|
constructor(t) {
|
|
8275
|
-
|
|
8275
|
+
Jt.isAsnEncoded(t) ? super(t, Wr) : super(t), this.tag = ft.CertificateTag;
|
|
8276
8276
|
}
|
|
8277
8277
|
onInit(t) {
|
|
8278
8278
|
const r = t.tbsCertificate;
|
|
@@ -8286,7 +8286,7 @@ class zn extends Wt {
|
|
|
8286
8286
|
const o = r.validity.notAfter.utcTime || r.validity.notAfter.generalTime;
|
|
8287
8287
|
if (!o)
|
|
8288
8288
|
throw new Error("Cannot get 'notAfter' value");
|
|
8289
|
-
this.notAfter = o, this.extensions = [], r.extensions && (this.extensions = r.extensions.map((s) =>
|
|
8289
|
+
this.notAfter = o, this.extensions = [], r.extensions && (this.extensions = r.extensions.map((s) => Pt.create(ee.serialize(s)))), this.publicKey = new mr(r.subjectPublicKeyInfo);
|
|
8290
8290
|
}
|
|
8291
8291
|
getExtension(t) {
|
|
8292
8292
|
for (const r of this.extensions)
|
|
@@ -8368,7 +8368,7 @@ class zn extends Wt {
|
|
|
8368
8368
|
}
|
|
8369
8369
|
}
|
|
8370
8370
|
zn.NAME = "Certificate";
|
|
8371
|
-
class Ri extends
|
|
8371
|
+
class Ri extends Mt {
|
|
8372
8372
|
static async create(t, r = !1, i = dt.get()) {
|
|
8373
8373
|
if (t instanceof zn || vr.isCryptoKey(t)) {
|
|
8374
8374
|
const n = t instanceof zn ? await t.publicKey.export(i) : t, o = await i.subtle.exportKey("spki", n), a = await new mr(o).getKeyIdentifier(i);
|
|
@@ -8404,7 +8404,7 @@ class Ri extends Vt {
|
|
|
8404
8404
|
}
|
|
8405
8405
|
}
|
|
8406
8406
|
Ri.NAME = "Authority Key Identifier";
|
|
8407
|
-
class jf extends
|
|
8407
|
+
class jf extends Mt {
|
|
8408
8408
|
constructor(...t) {
|
|
8409
8409
|
if (q.isBufferSource(t[0])) {
|
|
8410
8410
|
super(t[0]);
|
|
@@ -8428,7 +8428,7 @@ var cu;
|
|
|
8428
8428
|
(function(e) {
|
|
8429
8429
|
e.serverAuth = "1.3.6.1.5.5.7.3.1", e.clientAuth = "1.3.6.1.5.5.7.3.2", e.codeSigning = "1.3.6.1.5.5.7.3.3", e.emailProtection = "1.3.6.1.5.5.7.3.4", e.timeStamping = "1.3.6.1.5.5.7.3.8", e.ocspSigning = "1.3.6.1.5.5.7.3.9";
|
|
8430
8430
|
})(cu || (cu = {}));
|
|
8431
|
-
class $f extends
|
|
8431
|
+
class $f extends Mt {
|
|
8432
8432
|
constructor(...t) {
|
|
8433
8433
|
if (q.isBufferSource(t[0])) {
|
|
8434
8434
|
super(t[0]);
|
|
@@ -8449,7 +8449,7 @@ var Ba;
|
|
|
8449
8449
|
(function(e) {
|
|
8450
8450
|
e[e.digitalSignature = 1] = "digitalSignature", e[e.nonRepudiation = 2] = "nonRepudiation", e[e.keyEncipherment = 4] = "keyEncipherment", e[e.dataEncipherment = 8] = "dataEncipherment", e[e.keyAgreement = 16] = "keyAgreement", e[e.keyCertSign = 32] = "keyCertSign", e[e.cRLSign = 64] = "cRLSign", e[e.encipherOnly = 128] = "encipherOnly", e[e.decipherOnly = 256] = "decipherOnly";
|
|
8451
8451
|
})(Ba || (Ba = {}));
|
|
8452
|
-
class kl extends
|
|
8452
|
+
class kl extends Mt {
|
|
8453
8453
|
constructor(...t) {
|
|
8454
8454
|
if (q.isBufferSource(t[0])) {
|
|
8455
8455
|
super(t[0]);
|
|
@@ -8466,7 +8466,7 @@ class kl extends Vt {
|
|
|
8466
8466
|
}
|
|
8467
8467
|
}
|
|
8468
8468
|
kl.NAME = "Key Usages";
|
|
8469
|
-
class qo extends
|
|
8469
|
+
class qo extends Mt {
|
|
8470
8470
|
static async create(t, r = !1, i = dt.get()) {
|
|
8471
8471
|
let n;
|
|
8472
8472
|
t instanceof mr ? n = t.rawData : "publicKey" in t ? n = t.publicKey.rawData : q.isBufferSource(t) ? n = t : n = await i.subtle.exportKey("spki", t);
|
|
@@ -8489,7 +8489,7 @@ class qo extends Vt {
|
|
|
8489
8489
|
}
|
|
8490
8490
|
}
|
|
8491
8491
|
qo.NAME = "Subject Key Identifier";
|
|
8492
|
-
class Al extends
|
|
8492
|
+
class Al extends Mt {
|
|
8493
8493
|
constructor(...t) {
|
|
8494
8494
|
q.isBufferSource(t[0]) ? super(t[0]) : super(Xd, t[1], new Mi(t[0] || []).rawData);
|
|
8495
8495
|
}
|
|
@@ -8506,7 +8506,7 @@ class Al extends Vt {
|
|
|
8506
8506
|
}
|
|
8507
8507
|
}
|
|
8508
8508
|
Al.NAME = "Subject Alternative Name";
|
|
8509
|
-
class Vf extends
|
|
8509
|
+
class Vf extends Mt {
|
|
8510
8510
|
constructor(...t) {
|
|
8511
8511
|
var r;
|
|
8512
8512
|
if (q.isBufferSource(t[0])) {
|
|
@@ -8526,7 +8526,7 @@ class Vf extends Vt {
|
|
|
8526
8526
|
}
|
|
8527
8527
|
}
|
|
8528
8528
|
Vf.NAME = "Certificate Policies";
|
|
8529
|
-
|
|
8529
|
+
Pt.register(Gd, Vf);
|
|
8530
8530
|
class gi extends ur {
|
|
8531
8531
|
constructor(...t) {
|
|
8532
8532
|
let r;
|
|
@@ -8534,9 +8534,9 @@ class gi extends ur {
|
|
|
8534
8534
|
r = q.toArrayBuffer(t[0]);
|
|
8535
8535
|
else {
|
|
8536
8536
|
const i = t[0], n = Array.isArray(t[1]) ? t[1].map((o) => q.toArrayBuffer(o)) : [];
|
|
8537
|
-
r = ee.serialize(new
|
|
8537
|
+
r = ee.serialize(new Gt({ type: i, values: n }));
|
|
8538
8538
|
}
|
|
8539
|
-
super(r,
|
|
8539
|
+
super(r, Gt);
|
|
8540
8540
|
}
|
|
8541
8541
|
onInit(t) {
|
|
8542
8542
|
this.type = t.type, this.values = t.values;
|
|
@@ -8592,7 +8592,7 @@ class Sl extends gi {
|
|
|
8592
8592
|
onInit(t) {
|
|
8593
8593
|
if (super.onInit(t), this.values[0]) {
|
|
8594
8594
|
const r = ee.parse(this.values[0], xr);
|
|
8595
|
-
this.items = r.map((i) =>
|
|
8595
|
+
this.items = r.map((i) => Pt.create(ee.serialize(i)));
|
|
8596
8596
|
}
|
|
8597
8597
|
}
|
|
8598
8598
|
toTextObject() {
|
|
@@ -8742,9 +8742,9 @@ Na = c([
|
|
|
8742
8742
|
bl()
|
|
8743
8743
|
], Na);
|
|
8744
8744
|
gt.registerSingleton(Lo, Na);
|
|
8745
|
-
class rg extends
|
|
8745
|
+
class rg extends Jt {
|
|
8746
8746
|
constructor(t) {
|
|
8747
|
-
|
|
8747
|
+
Jt.isAsnEncoded(t) ? super(t, $i) : super(t), this.tag = ft.CertificateRequestTag;
|
|
8748
8748
|
}
|
|
8749
8749
|
onInit(t) {
|
|
8750
8750
|
this.tbs = ee.serialize(t.certificationRequestInfo), this.publicKey = new mr(t.certificationRequestInfo.subjectPKInfo);
|
|
@@ -8806,12 +8806,12 @@ var hu;
|
|
|
8806
8806
|
(function(e) {
|
|
8807
8807
|
e[e.unspecified = 0] = "unspecified", e[e.keyCompromise = 1] = "keyCompromise", e[e.cACompromise = 2] = "cACompromise", e[e.affiliationChanged = 3] = "affiliationChanged", e[e.superseded = 4] = "superseded", e[e.cessationOfOperation = 5] = "cessationOfOperation", e[e.certificateHold = 6] = "certificateHold", e[e.removeFromCRL = 8] = "removeFromCRL", e[e.privilegeWithdrawn = 9] = "privilegeWithdrawn", e[e.aACompromise = 10] = "aACompromise";
|
|
8808
8808
|
})(hu || (hu = {}));
|
|
8809
|
-
|
|
8810
|
-
|
|
8811
|
-
|
|
8812
|
-
|
|
8813
|
-
|
|
8814
|
-
|
|
8809
|
+
Pt.register(zd, jf);
|
|
8810
|
+
Pt.register(Jd, $f);
|
|
8811
|
+
Pt.register(Yd, kl);
|
|
8812
|
+
Pt.register(ef, qo);
|
|
8813
|
+
Pt.register(As, Ri);
|
|
8814
|
+
Pt.register(Xd, Al);
|
|
8815
8815
|
Ko.register(Bf, Mf);
|
|
8816
8816
|
Ko.register(wl, Sl);
|
|
8817
8817
|
gt.registerSingleton(Fo, tg);
|
|
@@ -9367,8 +9367,8 @@ function Sg(e, t, r, i = {
|
|
|
9367
9367
|
const _ = await Promise.all(T), de = /* @__PURE__ */ new Set();
|
|
9368
9368
|
f.value = [], (B = _ == null ? void 0 : _.forEach) == null || B.call(_, (J) => {
|
|
9369
9369
|
var R;
|
|
9370
|
-
(R = J == null ? void 0 : J.forEach) == null || R.call(J, (
|
|
9371
|
-
de.has(
|
|
9370
|
+
(R = J == null ? void 0 : J.forEach) == null || R.call(J, (oe) => {
|
|
9371
|
+
de.has(oe.id) || (de.add(oe.id), f.value.push(oe));
|
|
9372
9372
|
});
|
|
9373
9373
|
});
|
|
9374
9374
|
} else
|
|
@@ -9627,7 +9627,7 @@ const He = {
|
|
|
9627
9627
|
var l;
|
|
9628
9628
|
return t.isArrayItem ? (l = o.value) != null && l.name ? i(o.value.name, "_") : r("baseConfigCard.general.entryTitle", { index: t.index }) : "";
|
|
9629
9629
|
});
|
|
9630
|
-
return (l, u) => (O(), fe(
|
|
9630
|
+
return (l, u) => (O(), fe(Tt(e.isArrayItem ? "fieldset" : "div"), {
|
|
9631
9631
|
class: or(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
|
|
9632
9632
|
}, {
|
|
9633
9633
|
default: I(() => [
|
|
@@ -9878,7 +9878,7 @@ const He = {
|
|
|
9878
9878
|
rowValue: e.item.value
|
|
9879
9879
|
}, () => [
|
|
9880
9880
|
a.value ? (O(), H("div", Qg, [
|
|
9881
|
-
(O(), fe(
|
|
9881
|
+
(O(), fe(Tt(f.value.tag), Zp(Qp(f.value.attrs)), {
|
|
9882
9882
|
default: I(() => [
|
|
9883
9883
|
f.value.additionalComponent === "KBadge" ? (O(), H("div", {
|
|
9884
9884
|
key: 0,
|
|
@@ -11266,19 +11266,19 @@ function n0(e) {
|
|
|
11266
11266
|
function o0(e, t, r) {
|
|
11267
11267
|
var i = "", n = e.tag, o, s, a;
|
|
11268
11268
|
for (o = 0, s = r.length; o < s; o += 1)
|
|
11269
|
-
a = r[o], e.replacer && (a = e.replacer.call(r, String(o), a)), (
|
|
11269
|
+
a = r[o], e.replacer && (a = e.replacer.call(r, String(o), a)), (Yt(e, t, a, !1, !1) || typeof a > "u" && Yt(e, t, null, !1, !1)) && (i !== "" && (i += "," + (e.condenseFlow ? "" : " ")), i += e.dump);
|
|
11270
11270
|
e.tag = n, e.dump = "[" + i + "]";
|
|
11271
11271
|
}
|
|
11272
11272
|
function $u(e, t, r, i) {
|
|
11273
11273
|
var n = "", o = e.tag, s, a, l;
|
|
11274
11274
|
for (s = 0, a = r.length; s < a; s += 1)
|
|
11275
|
-
l = r[s], e.replacer && (l = e.replacer.call(r, String(s), l)), (
|
|
11275
|
+
l = r[s], e.replacer && (l = e.replacer.call(r, String(s), l)), (Yt(e, t + 1, l, !0, !0, !1, !0) || typeof l > "u" && Yt(e, t + 1, null, !0, !0, !1, !0)) && ((!i || n !== "") && (n += Ta(e, t)), e.dump && Di === e.dump.charCodeAt(0) ? n += "-" : n += "- ", n += e.dump);
|
|
11276
11276
|
e.tag = o, e.dump = n || "[]";
|
|
11277
11277
|
}
|
|
11278
11278
|
function s0(e, t, r) {
|
|
11279
11279
|
var i = "", n = e.tag, o = Object.keys(r), s, a, l, u, h;
|
|
11280
11280
|
for (s = 0, a = o.length; s < a; s += 1)
|
|
11281
|
-
h = "", i !== "" && (h += ", "), e.condenseFlow && (h += '"'), l = o[s], u = r[l], e.replacer && (u = e.replacer.call(r, l, u)),
|
|
11281
|
+
h = "", i !== "" && (h += ", "), e.condenseFlow && (h += '"'), l = o[s], u = r[l], e.replacer && (u = e.replacer.call(r, l, u)), Yt(e, t, l, !1, !1) && (e.dump.length > 1024 && (h += "? "), h += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), Yt(e, t, u, !1, !1) && (h += e.dump, i += h));
|
|
11282
11282
|
e.tag = n, e.dump = "{" + i + "}";
|
|
11283
11283
|
}
|
|
11284
11284
|
function a0(e, t, r, i) {
|
|
@@ -11290,7 +11290,7 @@ function a0(e, t, r, i) {
|
|
|
11290
11290
|
else if (e.sortKeys)
|
|
11291
11291
|
throw new Qe("sortKeys must be a boolean or a function");
|
|
11292
11292
|
for (a = 0, l = s.length; a < l; a += 1)
|
|
11293
|
-
E = "", (!i || n !== "") && (E += Ta(e, t)), u = s[a], h = r[u], e.replacer && (h = e.replacer.call(r, u, h)),
|
|
11293
|
+
E = "", (!i || n !== "") && (E += Ta(e, t)), u = s[a], h = r[u], e.replacer && (h = e.replacer.call(r, u, h)), Yt(e, t + 1, u, !0, !0, !0) && (f = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, f && (e.dump && Di === e.dump.charCodeAt(0) ? E += "?" : E += "? "), E += e.dump, f && (E += Ta(e, t)), Yt(e, t + 1, h, !0, f) && (e.dump && Di === e.dump.charCodeAt(0) ? E += ":" : E += ": ", E += e.dump, n += E));
|
|
11294
11294
|
e.tag = o, e.dump = n || "{}";
|
|
11295
11295
|
}
|
|
11296
11296
|
function Vu(e, t, r) {
|
|
@@ -11310,7 +11310,7 @@ function Vu(e, t, r) {
|
|
|
11310
11310
|
}
|
|
11311
11311
|
return !1;
|
|
11312
11312
|
}
|
|
11313
|
-
function
|
|
11313
|
+
function Yt(e, t, r, i, n, o, s) {
|
|
11314
11314
|
e.tag = null, e.dump = r, Vu(e, r, !1) || Vu(e, r, !0);
|
|
11315
11315
|
var a = wp.call(e.dump), l = i, u;
|
|
11316
11316
|
i && (i = e.flowLevel < 0 || e.flowLevel > t);
|
|
@@ -11358,7 +11358,7 @@ function c0(e, t) {
|
|
|
11358
11358
|
var r = new Zm(t);
|
|
11359
11359
|
r.noRefs || l0(e, r);
|
|
11360
11360
|
var i = e;
|
|
11361
|
-
return r.replacer && (i = r.replacer.call({ "": i }, "", i)),
|
|
11361
|
+
return r.replacer && (i = r.replacer.call({ "": i }, "", i)), Yt(r, 0, i, !0, !0) ? r.dump + `
|
|
11362
11362
|
` : "";
|
|
11363
11363
|
}
|
|
11364
11364
|
var u0 = c0, d0 = {
|
|
@@ -11603,7 +11603,7 @@ const B0 = { class: "yaml-config" }, _p = /* @__PURE__ */ xe({
|
|
|
11603
11603
|
lineHeight: "0",
|
|
11604
11604
|
width: r.value
|
|
11605
11605
|
}));
|
|
11606
|
-
return (n, o) => (O(), fe(
|
|
11606
|
+
return (n, o) => (O(), fe(Tt(e.as), {
|
|
11607
11607
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
11608
11608
|
class: "kui-icon add-icon",
|
|
11609
11609
|
"data-testid": "kui-icon-wrapper-add-icon",
|
|
@@ -11702,7 +11702,7 @@ const B0 = { class: "yaml-config" }, _p = /* @__PURE__ */ xe({
|
|
|
11702
11702
|
lineHeight: "0",
|
|
11703
11703
|
width: r.value
|
|
11704
11704
|
}));
|
|
11705
|
-
return (n, o) => (O(), fe(
|
|
11705
|
+
return (n, o) => (O(), fe(Tt(e.as), {
|
|
11706
11706
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
11707
11707
|
class: "kui-icon book-icon",
|
|
11708
11708
|
"data-testid": "kui-icon-wrapper-book-icon",
|
|
@@ -11801,7 +11801,7 @@ const B0 = { class: "yaml-config" }, _p = /* @__PURE__ */ xe({
|
|
|
11801
11801
|
lineHeight: "0",
|
|
11802
11802
|
width: r.value
|
|
11803
11803
|
}));
|
|
11804
|
-
return (n, o) => (O(), fe(
|
|
11804
|
+
return (n, o) => (O(), fe(Tt(e.as), {
|
|
11805
11805
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
11806
11806
|
class: "kui-icon chevron-down-icon",
|
|
11807
11807
|
"data-testid": "kui-icon-wrapper-chevron-down-icon",
|
|
@@ -11900,7 +11900,7 @@ const B0 = { class: "yaml-config" }, _p = /* @__PURE__ */ xe({
|
|
|
11900
11900
|
lineHeight: "0",
|
|
11901
11901
|
width: r.value
|
|
11902
11902
|
}));
|
|
11903
|
-
return (n, o) => (O(), fe(
|
|
11903
|
+
return (n, o) => (O(), fe(Tt(e.as), {
|
|
11904
11904
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
11905
11905
|
class: "kui-icon close-icon",
|
|
11906
11906
|
"data-testid": "kui-icon-wrapper-close-icon",
|
|
@@ -11999,7 +11999,7 @@ const B0 = { class: "yaml-config" }, _p = /* @__PURE__ */ xe({
|
|
|
11999
11999
|
lineHeight: "0",
|
|
12000
12000
|
width: r.value
|
|
12001
12001
|
}));
|
|
12002
|
-
return (n, o) => (O(), fe(
|
|
12002
|
+
return (n, o) => (O(), fe(Tt(e.as), {
|
|
12003
12003
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
12004
12004
|
class: "kui-icon more-icon",
|
|
12005
12005
|
"data-testid": "kui-icon-wrapper-more-icon",
|
|
@@ -12161,15 +12161,15 @@ const B0 = { class: "yaml-config" }, _p = /* @__PURE__ */ xe({
|
|
|
12161
12161
|
return [];
|
|
12162
12162
|
const _ = [], de = Object.keys(g.value).length;
|
|
12163
12163
|
for (const J in g.value) {
|
|
12164
|
-
const R = (V = (A = n.configSchema) == null ? void 0 : A[J]) == null ? void 0 : V.order,
|
|
12164
|
+
const R = (V = (A = n.configSchema) == null ? void 0 : A[J]) == null ? void 0 : V.order, oe = (T = E[J]) == null ? void 0 : T.order;
|
|
12165
12165
|
let he = de;
|
|
12166
|
-
(
|
|
12166
|
+
(oe || oe === 0) && (he = oe === -1 ? de + 1 : oe), R && (he = R === -1 ? de + 1 : R), _.push([J, he]);
|
|
12167
12167
|
}
|
|
12168
12168
|
return _.sort(function(J, R) {
|
|
12169
12169
|
return J[1] - R[1];
|
|
12170
12170
|
}), _.map((J) => {
|
|
12171
|
-
var R,
|
|
12172
|
-
const he = J[0], De = (R = g.value) == null ? void 0 : R[he], je = ((
|
|
12171
|
+
var R, oe;
|
|
12172
|
+
const he = J[0], De = (R = g.value) == null ? void 0 : R[he], je = ((oe = n.configSchema) == null ? void 0 : oe[he]) || {}, Le = E[he];
|
|
12173
12173
|
return {
|
|
12174
12174
|
key: he,
|
|
12175
12175
|
value: De,
|
|
@@ -12186,21 +12186,21 @@ const B0 = { class: "yaml-config" }, _p = /* @__PURE__ */ xe({
|
|
|
12186
12186
|
return [];
|
|
12187
12187
|
const T = g.value[n.pluginConfigKey] || {}, _ = Object.keys(T).length, de = [];
|
|
12188
12188
|
for (const J in T) {
|
|
12189
|
-
const R = (V = (A = n.pluginConfigSchema) == null ? void 0 : A[J]) == null ? void 0 : V.order,
|
|
12190
|
-
let he =
|
|
12189
|
+
const R = (V = (A = n.pluginConfigSchema) == null ? void 0 : A[J]) == null ? void 0 : V.order, oe = T[J];
|
|
12190
|
+
let he = oe != null && oe !== "" ? _ - 1 : _;
|
|
12191
12191
|
R && (he = R === -1 ? _ + 1 : R), de.push([J, he]);
|
|
12192
12192
|
}
|
|
12193
12193
|
return de.sort(function(J, R) {
|
|
12194
12194
|
return J[1] - R[1];
|
|
12195
12195
|
}), de.map((J) => {
|
|
12196
12196
|
var R;
|
|
12197
|
-
const
|
|
12197
|
+
const oe = J[0], he = T[oe], De = ((R = n.pluginConfigSchema) == null ? void 0 : R[oe]) || {};
|
|
12198
12198
|
return {
|
|
12199
|
-
key:
|
|
12199
|
+
key: oe,
|
|
12200
12200
|
value: he,
|
|
12201
12201
|
hidden: De.hidden || !1,
|
|
12202
12202
|
type: De.type ?? we.Text,
|
|
12203
|
-
label: De.label ?? a(
|
|
12203
|
+
label: De.label ?? a(oe),
|
|
12204
12204
|
tooltip: De.tooltip ?? void 0,
|
|
12205
12205
|
section: Ce.Plugin
|
|
12206
12206
|
};
|
|
@@ -12243,8 +12243,8 @@ const B0 = { class: "yaml-config" }, _p = /* @__PURE__ */ xe({
|
|
|
12243
12243
|
m.value = !1;
|
|
12244
12244
|
}
|
|
12245
12245
|
}), (A, V) => {
|
|
12246
|
-
const T = ae("KLabel"), _ = ae("KSelect"), de = ae("KButton"), J = ae("KSkeleton"), R = ae("KEmptyState"),
|
|
12247
|
-
return O(), fe(
|
|
12246
|
+
const T = ae("KLabel"), _ = ae("KSelect"), de = ae("KButton"), J = ae("KSkeleton"), R = ae("KEmptyState"), oe = ae("KCard");
|
|
12247
|
+
return O(), fe(oe, {
|
|
12248
12248
|
class: "kong-ui-entity-base-config-card",
|
|
12249
12249
|
"title-tag": e.titleTag
|
|
12250
12250
|
}, kr({
|
|
@@ -12397,6 +12397,13 @@ const B0 = { class: "yaml-config" }, _p = /* @__PURE__ */ xe({
|
|
|
12397
12397
|
noValidate: {
|
|
12398
12398
|
type: Boolean,
|
|
12399
12399
|
default: !1
|
|
12400
|
+
},
|
|
12401
|
+
/**
|
|
12402
|
+
* Wrapper component to use at component's root level.
|
|
12403
|
+
*/
|
|
12404
|
+
wrapperComponent: {
|
|
12405
|
+
type: String,
|
|
12406
|
+
default: "KCard"
|
|
12400
12407
|
}
|
|
12401
12408
|
},
|
|
12402
12409
|
emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel"],
|
|
@@ -12439,8 +12446,8 @@ const B0 = { class: "yaml-config" }, _p = /* @__PURE__ */ xe({
|
|
|
12439
12446
|
u.value = !1;
|
|
12440
12447
|
}
|
|
12441
12448
|
}), (w, B) => {
|
|
12442
|
-
const A = ae("KSkeleton"), V = ae("KEmptyState"), T = ae("KAlert"), _ = ae("KButton"), de = ae("KTabs"), J = ae("KSlideout")
|
|
12443
|
-
return O(), fe(
|
|
12449
|
+
const A = ae("KSkeleton"), V = ae("KEmptyState"), T = ae("KAlert"), _ = ae("KButton"), de = ae("KTabs"), J = ae("KSlideout");
|
|
12450
|
+
return O(), fe(Tt(e.wrapperComponent), { class: "kong-ui-entity-base-form" }, {
|
|
12444
12451
|
default: I(() => [
|
|
12445
12452
|
u.value ? (O(), fe(A, {
|
|
12446
12453
|
key: 0,
|
|
@@ -12475,7 +12482,7 @@ const B0 = { class: "yaml-config" }, _p = /* @__PURE__ */ xe({
|
|
|
12475
12482
|
M(_, {
|
|
12476
12483
|
appearance: "tertiary",
|
|
12477
12484
|
"data-testid": "form-view-configuration",
|
|
12478
|
-
onClick: B[0] || (B[0] = (
|
|
12485
|
+
onClick: B[0] || (B[0] = (R) => y())
|
|
12479
12486
|
}, {
|
|
12480
12487
|
default: I(() => [
|
|
12481
12488
|
pe(L(S(s)("baseForm.actions.viewConfiguration")), 1)
|
|
@@ -12514,7 +12521,7 @@ const B0 = { class: "yaml-config" }, _p = /* @__PURE__ */ xe({
|
|
|
12514
12521
|
"offset-top": 60,
|
|
12515
12522
|
title: S(s)("baseForm.configuration.title"),
|
|
12516
12523
|
visible: m.value,
|
|
12517
|
-
onClose: B[1] || (B[1] = (
|
|
12524
|
+
onClose: B[1] || (B[1] = (R) => y())
|
|
12518
12525
|
}, {
|
|
12519
12526
|
default: I(() => [
|
|
12520
12527
|
ue("div", null, L(S(s)("baseForm.configuration.message")), 1),
|
|
@@ -12545,7 +12552,7 @@ const B0 = { class: "yaml-config" }, _p = /* @__PURE__ */ xe({
|
|
|
12545
12552
|
});
|
|
12546
12553
|
};
|
|
12547
12554
|
}
|
|
12548
|
-
}), jp = /* @__PURE__ */ xt(g1, [["__scopeId", "data-v-
|
|
12555
|
+
}), jp = /* @__PURE__ */ xt(g1, [["__scopeId", "data-v-fd05df8e"]]), v1 = ["data-truncate"], m1 = /* @__PURE__ */ xe({
|
|
12549
12556
|
__name: "EntityBaseTableCell",
|
|
12550
12557
|
props: {
|
|
12551
12558
|
keyName: {
|
|
@@ -12850,16 +12857,16 @@ const B0 = { class: "yaml-config" }, _p = /* @__PURE__ */ xe({
|
|
|
12850
12857
|
"onUpdate:tablePreferences": B
|
|
12851
12858
|
}, kr({
|
|
12852
12859
|
toolbar: I(({ state: R }) => [
|
|
12853
|
-
|
|
12860
|
+
Ut(ue("div", w1, [
|
|
12854
12861
|
Ne(A.$slots, "toolbar-filter", {}, void 0, !0),
|
|
12855
12862
|
A.$slots["toolbar-button"] ? (O(), H("div", k1, [
|
|
12856
12863
|
Ne(A.$slots, "toolbar-button", {}, void 0, !0)
|
|
12857
12864
|
])) : me("", !0)
|
|
12858
12865
|
], 512), [
|
|
12859
|
-
[
|
|
12866
|
+
[Dt, a(R)]
|
|
12860
12867
|
])
|
|
12861
12868
|
]),
|
|
12862
|
-
actions: I(({ row: R, rowKey:
|
|
12869
|
+
actions: I(({ row: R, rowKey: oe, rowValue: he }) => [
|
|
12863
12870
|
ue("div", {
|
|
12864
12871
|
class: "actions-container",
|
|
12865
12872
|
"data-testid": R.name
|
|
@@ -12871,7 +12878,7 @@ const B0 = { class: "yaml-config" }, _p = /* @__PURE__ */ xe({
|
|
|
12871
12878
|
items: I(() => [
|
|
12872
12879
|
Ne(A.$slots, "actions", {
|
|
12873
12880
|
row: R,
|
|
12874
|
-
rowKey:
|
|
12881
|
+
rowKey: oe,
|
|
12875
12882
|
rowValue: he
|
|
12876
12883
|
}, void 0, !0)
|
|
12877
12884
|
]),
|
|
@@ -12895,16 +12902,16 @@ const B0 = { class: "yaml-config" }, _p = /* @__PURE__ */ xe({
|
|
|
12895
12902
|
]),
|
|
12896
12903
|
_: 2
|
|
12897
12904
|
}, [
|
|
12898
|
-
We(e.tableHeaders, (R,
|
|
12899
|
-
name:
|
|
12905
|
+
We(e.tableHeaders, (R, oe) => ({
|
|
12906
|
+
name: oe,
|
|
12900
12907
|
fn: I(({ row: he, rowKey: De, rowValue: je }) => [
|
|
12901
12908
|
M(b1, {
|
|
12902
|
-
"key-name": String(
|
|
12909
|
+
"key-name": String(oe),
|
|
12903
12910
|
"row-el": f(he),
|
|
12904
12911
|
tooltip: R.tooltip
|
|
12905
12912
|
}, {
|
|
12906
12913
|
default: I(() => [
|
|
12907
|
-
Ne(A.$slots,
|
|
12914
|
+
Ne(A.$slots, oe, {
|
|
12908
12915
|
row: he,
|
|
12909
12916
|
rowKey: De,
|
|
12910
12917
|
rowValue: je
|
|
@@ -13155,11 +13162,11 @@ const B0 = { class: "yaml-config" }, _p = /* @__PURE__ */ xe({
|
|
|
13155
13162
|
M(Mu)
|
|
13156
13163
|
]),
|
|
13157
13164
|
after: I(() => [
|
|
13158
|
-
|
|
13165
|
+
Ut(M(S(r1), {
|
|
13159
13166
|
class: "kong-ui-entity-filter-clear",
|
|
13160
13167
|
onClick: m
|
|
13161
13168
|
}, null, 512), [
|
|
13162
|
-
[
|
|
13169
|
+
[Dt, e.modelValue !== ""]
|
|
13163
13170
|
])
|
|
13164
13171
|
]),
|
|
13165
13172
|
_: 1
|
|
@@ -13175,13 +13182,13 @@ const B0 = { class: "yaml-config" }, _p = /* @__PURE__ */ xe({
|
|
|
13175
13182
|
]),
|
|
13176
13183
|
_: 1
|
|
13177
13184
|
}),
|
|
13178
|
-
|
|
13185
|
+
Ut(ue("div", {
|
|
13179
13186
|
class: "kong-ui-entity-filter-backdrop",
|
|
13180
13187
|
onClick: h
|
|
13181
13188
|
}, null, 512), [
|
|
13182
|
-
[
|
|
13189
|
+
[Dt, o.value]
|
|
13183
13190
|
]),
|
|
13184
|
-
|
|
13191
|
+
Ut(ue("div", j1, [
|
|
13185
13192
|
(O(!0), H(Xe, null, We(u.value, (_) => {
|
|
13186
13193
|
var de, J;
|
|
13187
13194
|
return O(), H("div", {
|
|
@@ -13197,15 +13204,15 @@ const B0 = { class: "yaml-config" }, _p = /* @__PURE__ */ xe({
|
|
|
13197
13204
|
onKeydown: eh((R) => f(_.value), ["enter"])
|
|
13198
13205
|
}, [
|
|
13199
13206
|
pe(L(_.label) + " ", 1),
|
|
13200
|
-
|
|
13201
|
-
[
|
|
13207
|
+
Ut(ue("span", M1, null, 512), [
|
|
13208
|
+
[Dt, l.value.includes(_.value)]
|
|
13202
13209
|
]),
|
|
13203
13210
|
M(S(Y0), {
|
|
13204
13211
|
class: or(["menu-item-expand-icon", { expanded: a.value.has(_.value) }]),
|
|
13205
13212
|
color: S(qg)
|
|
13206
13213
|
}, null, 8, ["class", "color"])
|
|
13207
13214
|
], 42, V1),
|
|
13208
|
-
|
|
13215
|
+
Ut(ue("div", P1, [
|
|
13209
13216
|
ue("label", {
|
|
13210
13217
|
class: "menu-item-label",
|
|
13211
13218
|
for: p(_.value)
|
|
@@ -13227,9 +13234,9 @@ const B0 = { class: "yaml-config" }, _p = /* @__PURE__ */ xe({
|
|
|
13227
13234
|
type: g(_.value)
|
|
13228
13235
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
|
|
13229
13236
|
], 512), [
|
|
13230
|
-
[
|
|
13237
|
+
[Dt, a.value.has(_.value)]
|
|
13231
13238
|
]),
|
|
13232
|
-
|
|
13239
|
+
Ut(ue("div", U1, [
|
|
13233
13240
|
M(V, {
|
|
13234
13241
|
appearance: "tertiary",
|
|
13235
13242
|
"data-testid": "apply-filter",
|
|
@@ -13253,7 +13260,7 @@ const B0 = { class: "yaml-config" }, _p = /* @__PURE__ */ xe({
|
|
|
13253
13260
|
_: 2
|
|
13254
13261
|
}, 1032, ["onClick"])
|
|
13255
13262
|
], 512), [
|
|
13256
|
-
[
|
|
13263
|
+
[Dt, a.value.has(_.value)]
|
|
13257
13264
|
])
|
|
13258
13265
|
], 8, $1);
|
|
13259
13266
|
}), 128)),
|
|
@@ -13270,12 +13277,12 @@ const B0 = { class: "yaml-config" }, _p = /* @__PURE__ */ xe({
|
|
|
13270
13277
|
})
|
|
13271
13278
|
])
|
|
13272
13279
|
], 512), [
|
|
13273
|
-
[
|
|
13280
|
+
[Dt, o.value]
|
|
13274
13281
|
])
|
|
13275
13282
|
]));
|
|
13276
13283
|
};
|
|
13277
13284
|
}
|
|
13278
|
-
}), Mp = /* @__PURE__ */ xt(L1, [["__scopeId", "data-v-94990087"]]),
|
|
13285
|
+
}), Mp = /* @__PURE__ */ xt(L1, [["__scopeId", "data-v-94990087"]]), Lt = /* @__PURE__ */ xe({
|
|
13279
13286
|
__name: "PermissionsWrapper",
|
|
13280
13287
|
props: {
|
|
13281
13288
|
/**
|
|
@@ -13381,7 +13388,7 @@ const G1 = ["aria-labelledby"], W1 = { class: "form-section-wrapper" }, J1 = {
|
|
|
13381
13388
|
key: 0,
|
|
13382
13389
|
class: or(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
13383
13390
|
}, [
|
|
13384
|
-
e.title ? (O(), fe(
|
|
13391
|
+
e.title ? (O(), fe(Tt(e.titleTag), {
|
|
13385
13392
|
key: 0,
|
|
13386
13393
|
id: S(r),
|
|
13387
13394
|
class: "form-section-title"
|
|
@@ -13525,26 +13532,26 @@ const G1 = ["aria-labelledby"], W1 = { class: "form-section-wrapper" }, J1 = {
|
|
|
13525
13532
|
label: n("certificates.actions.addSni"),
|
|
13526
13533
|
to: i.config.getCreateSniRoute(z)
|
|
13527
13534
|
};
|
|
13528
|
-
}, J = te(void 0), R = te(!1),
|
|
13535
|
+
}, J = te(void 0), R = te(!1), oe = te(!1), he = te(""), De = Pp(i.config, m.value), { certificateDataCache: je, getCertificateData: Le } = Ot.useCertificate(), jr = (z) => {
|
|
13529
13536
|
J.value = z, R.value = !0;
|
|
13530
13537
|
}, $r = () => {
|
|
13531
13538
|
R.value = !1;
|
|
13532
13539
|
}, dr = async () => {
|
|
13533
13540
|
var z, Y, Se;
|
|
13534
13541
|
if ((z = J.value) != null && z.id) {
|
|
13535
|
-
|
|
13542
|
+
oe.value = !0;
|
|
13536
13543
|
try {
|
|
13537
|
-
await l.delete(De(J.value.id)),
|
|
13544
|
+
await l.delete(De(J.value.id)), oe.value = !1, R.value = !1, u.value++, r("delete:success", J.value);
|
|
13538
13545
|
} catch (Ze) {
|
|
13539
13546
|
he.value = ((Se = (Y = Ze.response) == null ? void 0 : Y.data) == null ? void 0 : Se.message) || Ze.message || n("certificates.errors.delete"), r("error", Ze);
|
|
13540
13547
|
} finally {
|
|
13541
|
-
|
|
13548
|
+
oe.value = !1;
|
|
13542
13549
|
}
|
|
13543
13550
|
}
|
|
13544
|
-
},
|
|
13551
|
+
}, Rt = te(!0);
|
|
13545
13552
|
lr(b, (z) => {
|
|
13546
13553
|
var Y, Se, Ze, ct;
|
|
13547
|
-
if (Array.isArray((Y = z == null ? void 0 : z.response) == null ? void 0 : Y.data) && (
|
|
13554
|
+
if (Array.isArray((Y = z == null ? void 0 : z.response) == null ? void 0 : Y.data) && (Rt.value = z.response.data.length > 0), z.status === er.Error) {
|
|
13548
13555
|
w.value = {
|
|
13549
13556
|
title: n("certificates.errors.general")
|
|
13550
13557
|
}, (ct = (Ze = (Se = z.error) == null ? void 0 : Se.response) == null ? void 0 : Ze.data) != null && ct.message && (w.value.message = z.error.response.data.message), r("error", z.error);
|
|
@@ -13593,11 +13600,11 @@ const G1 = ["aria-labelledby"], W1 = { class: "form-section-wrapper" }, J1 = {
|
|
|
13593
13600
|
disabled: !e.useActionOutside,
|
|
13594
13601
|
to: "#kong-ui-app-page-header-action-button"
|
|
13595
13602
|
}, [
|
|
13596
|
-
M(S(
|
|
13603
|
+
M(S(Lt), {
|
|
13597
13604
|
"auth-function": () => e.canCreate()
|
|
13598
13605
|
}, {
|
|
13599
13606
|
default: I(() => [
|
|
13600
|
-
|
|
13607
|
+
Ut(M(Se, {
|
|
13601
13608
|
appearance: "primary",
|
|
13602
13609
|
"data-testid": "toolbar-add-certificate",
|
|
13603
13610
|
size: "large",
|
|
@@ -13609,7 +13616,7 @@ const G1 = ["aria-labelledby"], W1 = { class: "form-section-wrapper" }, J1 = {
|
|
|
13609
13616
|
]),
|
|
13610
13617
|
_: 1
|
|
13611
13618
|
}, 8, ["to"]), [
|
|
13612
|
-
[
|
|
13619
|
+
[Dt, Rt.value]
|
|
13613
13620
|
])
|
|
13614
13621
|
]),
|
|
13615
13622
|
_: 1
|
|
@@ -13691,7 +13698,7 @@ const G1 = ["aria-labelledby"], W1 = { class: "form-section-wrapper" }, J1 = {
|
|
|
13691
13698
|
]),
|
|
13692
13699
|
_: 2
|
|
13693
13700
|
}, 1024),
|
|
13694
|
-
M(S(
|
|
13701
|
+
M(S(Lt), {
|
|
13695
13702
|
"auth-function": () => e.canRetrieve(re)
|
|
13696
13703
|
}, {
|
|
13697
13704
|
default: I(() => [
|
|
@@ -13703,7 +13710,7 @@ const G1 = ["aria-labelledby"], W1 = { class: "form-section-wrapper" }, J1 = {
|
|
|
13703
13710
|
]),
|
|
13704
13711
|
_: 2
|
|
13705
13712
|
}, 1032, ["auth-function"]),
|
|
13706
|
-
M(S(
|
|
13713
|
+
M(S(Lt), {
|
|
13707
13714
|
"auth-function": () => e.canEdit(re)
|
|
13708
13715
|
}, {
|
|
13709
13716
|
default: I(() => [
|
|
@@ -13714,7 +13721,7 @@ const G1 = ["aria-labelledby"], W1 = { class: "form-section-wrapper" }, J1 = {
|
|
|
13714
13721
|
]),
|
|
13715
13722
|
_: 2
|
|
13716
13723
|
}, 1032, ["auth-function"]),
|
|
13717
|
-
e.config.getCreateSniRoute ? (O(), fe(S(
|
|
13724
|
+
e.config.getCreateSniRoute ? (O(), fe(S(Lt), {
|
|
13718
13725
|
key: 0,
|
|
13719
13726
|
"auth-function": () => e.canCreateSni()
|
|
13720
13727
|
}, {
|
|
@@ -13726,7 +13733,7 @@ const G1 = ["aria-labelledby"], W1 = { class: "form-section-wrapper" }, J1 = {
|
|
|
13726
13733
|
]),
|
|
13727
13734
|
_: 2
|
|
13728
13735
|
}, 1032, ["auth-function"])) : me("", !0),
|
|
13729
|
-
M(S(
|
|
13736
|
+
M(S(Lt), {
|
|
13730
13737
|
"auth-function": () => e.canDelete(re)
|
|
13731
13738
|
}, {
|
|
13732
13739
|
default: I(() => [
|
|
@@ -13748,7 +13755,7 @@ const G1 = ["aria-labelledby"], W1 = { class: "form-section-wrapper" }, J1 = {
|
|
|
13748
13755
|
_: 1
|
|
13749
13756
|
}, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers", "use-action-outside"]),
|
|
13750
13757
|
M(S(Vp), {
|
|
13751
|
-
"action-pending":
|
|
13758
|
+
"action-pending": oe.value,
|
|
13752
13759
|
"entity-type": S(Cl).Certificate,
|
|
13753
13760
|
error: he.value,
|
|
13754
13761
|
title: S(n)("certificates.delete.title"),
|
|
@@ -14275,7 +14282,7 @@ const G1 = ["aria-labelledby"], W1 = { class: "form-section-wrapper" }, J1 = {
|
|
|
14275
14282
|
}), _ = (le) => ({
|
|
14276
14283
|
label: n("ca-certificates.actions.edit"),
|
|
14277
14284
|
to: i.config.getEditRoute(le)
|
|
14278
|
-
}), de = te(void 0), J = te(!1), R = te(!1),
|
|
14285
|
+
}), de = te(void 0), J = te(!1), R = te(!1), oe = te(""), he = Pp(i.config, m.value), { certificateDataCache: De, getCertificateData: je } = Ot.useCertificate(), Le = (le) => {
|
|
14279
14286
|
de.value = le, J.value = !0;
|
|
14280
14287
|
}, jr = () => {
|
|
14281
14288
|
J.value = !1;
|
|
@@ -14286,7 +14293,7 @@ const G1 = ["aria-labelledby"], W1 = { class: "form-section-wrapper" }, J1 = {
|
|
|
14286
14293
|
try {
|
|
14287
14294
|
await l.delete(he(de.value.id)), R.value = !1, J.value = !1, u.value++, r("delete:success", de.value);
|
|
14288
14295
|
} catch (Se) {
|
|
14289
|
-
|
|
14296
|
+
oe.value = ((Y = (z = Se.response) == null ? void 0 : z.data) == null ? void 0 : Y.message) || Se.message || n("ca-certificates.errors.delete"), r("error", Se);
|
|
14290
14297
|
} finally {
|
|
14291
14298
|
R.value = !1;
|
|
14292
14299
|
}
|
|
@@ -14302,14 +14309,14 @@ const G1 = ["aria-labelledby"], W1 = { class: "form-section-wrapper" }, J1 = {
|
|
|
14302
14309
|
}
|
|
14303
14310
|
De.value = {}, w.value = null;
|
|
14304
14311
|
});
|
|
14305
|
-
const
|
|
14312
|
+
const Rt = te({
|
|
14306
14313
|
ctaPath: i.config.createRoute,
|
|
14307
14314
|
ctaText: void 0,
|
|
14308
14315
|
message: `${n("ca-certificates.list.empty_state.description")}${i.config.additionMessageForEmptyState ? ` ${i.config.additionMessageForEmptyState}` : ""}`,
|
|
14309
14316
|
title: n("ca-certificates.title")
|
|
14310
14317
|
});
|
|
14311
14318
|
return Xn(async () => {
|
|
14312
|
-
await i.canCreate() && (
|
|
14319
|
+
await i.canCreate() && (Rt.value.title = n("ca-certificates.list.empty_state.title"), Rt.value.ctaText = n("ca-certificates.actions.create"));
|
|
14313
14320
|
}), (le, z) => {
|
|
14314
14321
|
const Y = ae("KButton"), Se = ae("KBadge"), Ze = ae("KTruncate"), ct = ae("KDropdownItem"), Vr = ae("KClipboardProvider");
|
|
14315
14322
|
return O(), H("div", hb, [
|
|
@@ -14317,7 +14324,7 @@ const G1 = ["aria-labelledby"], W1 = { class: "form-section-wrapper" }, J1 = {
|
|
|
14317
14324
|
"cache-identifier": e.cacheIdentifier,
|
|
14318
14325
|
"disable-pagination-page-jump": "",
|
|
14319
14326
|
"disable-sorting": h.value,
|
|
14320
|
-
"empty-state-options":
|
|
14327
|
+
"empty-state-options": Rt.value,
|
|
14321
14328
|
"enable-entity-actions": "",
|
|
14322
14329
|
"error-message": w.value,
|
|
14323
14330
|
fetcher: S(g),
|
|
@@ -14343,11 +14350,11 @@ const G1 = ["aria-labelledby"], W1 = { class: "form-section-wrapper" }, J1 = {
|
|
|
14343
14350
|
disabled: !e.useActionOutside,
|
|
14344
14351
|
to: "#kong-ui-app-page-header-action-button"
|
|
14345
14352
|
}, [
|
|
14346
|
-
M(S(
|
|
14353
|
+
M(S(Lt), {
|
|
14347
14354
|
"auth-function": () => e.canCreate()
|
|
14348
14355
|
}, {
|
|
14349
14356
|
default: I(() => [
|
|
14350
|
-
|
|
14357
|
+
Ut(M(Y, {
|
|
14351
14358
|
appearance: "primary",
|
|
14352
14359
|
"data-testid": "toolbar-add-ca-certificate",
|
|
14353
14360
|
size: "large",
|
|
@@ -14359,7 +14366,7 @@ const G1 = ["aria-labelledby"], W1 = { class: "form-section-wrapper" }, J1 = {
|
|
|
14359
14366
|
]),
|
|
14360
14367
|
_: 1
|
|
14361
14368
|
}, 8, ["to"]), [
|
|
14362
|
-
[
|
|
14369
|
+
[Dt, dr.value]
|
|
14363
14370
|
])
|
|
14364
14371
|
]),
|
|
14365
14372
|
_: 1
|
|
@@ -14427,7 +14434,7 @@ const G1 = ["aria-labelledby"], W1 = { class: "form-section-wrapper" }, J1 = {
|
|
|
14427
14434
|
]),
|
|
14428
14435
|
_: 2
|
|
14429
14436
|
}, 1024),
|
|
14430
|
-
M(S(
|
|
14437
|
+
M(S(Lt), {
|
|
14431
14438
|
"auth-function": () => e.canRetrieve(ce)
|
|
14432
14439
|
}, {
|
|
14433
14440
|
default: I(() => [
|
|
@@ -14439,7 +14446,7 @@ const G1 = ["aria-labelledby"], W1 = { class: "form-section-wrapper" }, J1 = {
|
|
|
14439
14446
|
]),
|
|
14440
14447
|
_: 2
|
|
14441
14448
|
}, 1032, ["auth-function"]),
|
|
14442
|
-
M(S(
|
|
14449
|
+
M(S(Lt), {
|
|
14443
14450
|
"auth-function": () => e.canEdit(ce)
|
|
14444
14451
|
}, {
|
|
14445
14452
|
default: I(() => [
|
|
@@ -14450,7 +14457,7 @@ const G1 = ["aria-labelledby"], W1 = { class: "form-section-wrapper" }, J1 = {
|
|
|
14450
14457
|
]),
|
|
14451
14458
|
_: 2
|
|
14452
14459
|
}, 1032, ["auth-function"]),
|
|
14453
|
-
M(S(
|
|
14460
|
+
M(S(Lt), {
|
|
14454
14461
|
"auth-function": () => e.canDelete(ce)
|
|
14455
14462
|
}, {
|
|
14456
14463
|
default: I(() => [
|
|
@@ -14474,7 +14481,7 @@ const G1 = ["aria-labelledby"], W1 = { class: "form-section-wrapper" }, J1 = {
|
|
|
14474
14481
|
M(S(Vp), {
|
|
14475
14482
|
"action-pending": R.value,
|
|
14476
14483
|
"entity-type": S(Cl).CACertificate,
|
|
14477
|
-
error:
|
|
14484
|
+
error: oe.value,
|
|
14478
14485
|
title: S(n)("ca-certificates.delete.title"),
|
|
14479
14486
|
visible: J.value,
|
|
14480
14487
|
onCancel: jr,
|
|
@@ -14769,9 +14776,9 @@ const G1 = ["aria-labelledby"], W1 = { class: "form-section-wrapper" }, J1 = {
|
|
|
14769
14776
|
"config-schema": E.value,
|
|
14770
14777
|
"fetch-url": h.value,
|
|
14771
14778
|
"hide-title": e.hideTitle,
|
|
14772
|
-
"onFetch:error": _[0] || (_[0] = (
|
|
14779
|
+
"onFetch:error": _[0] || (_[0] = (oe) => T.$emit("fetch:error", oe)),
|
|
14773
14780
|
"onFetch:success": m,
|
|
14774
|
-
onLoading: _[1] || (_[1] = (
|
|
14781
|
+
onLoading: _[1] || (_[1] = (oe) => T.$emit("loading", oe))
|
|
14775
14782
|
}, kr({
|
|
14776
14783
|
"cert-label-tooltip": I(() => [
|
|
14777
14784
|
M(S(s), {
|
|
@@ -14784,11 +14791,11 @@ const G1 = ["aria-labelledby"], W1 = { class: "form-section-wrapper" }, J1 = {
|
|
|
14784
14791
|
_: 1
|
|
14785
14792
|
})
|
|
14786
14793
|
]),
|
|
14787
|
-
cert: I((
|
|
14788
|
-
S(l)("rowValue",
|
|
14794
|
+
cert: I((oe) => [
|
|
14795
|
+
S(l)("rowValue", oe) ? (O(), fe(de, {
|
|
14789
14796
|
key: 0,
|
|
14790
14797
|
id: `certificate-${e.config.entityId}-cert-codeblock`,
|
|
14791
|
-
code: S(l)("rowValue",
|
|
14798
|
+
code: S(l)("rowValue", oe),
|
|
14792
14799
|
language: "plaintext",
|
|
14793
14800
|
"single-line": ""
|
|
14794
14801
|
}, null, 8, ["id", "code"])) : me("", !0)
|
|
@@ -14812,12 +14819,12 @@ const G1 = ["aria-labelledby"], W1 = { class: "form-section-wrapper" }, J1 = {
|
|
|
14812
14819
|
_: 1
|
|
14813
14820
|
})
|
|
14814
14821
|
]),
|
|
14815
|
-
metadata: I((
|
|
14816
|
-
(O(!0), H(Xe, null, We(Object.keys(S(l)("rowValue",
|
|
14822
|
+
metadata: I((oe) => [
|
|
14823
|
+
(O(!0), H(Xe, null, We(Object.keys(S(l)("rowValue", oe)), (he) => (O(), fe(S(Go), {
|
|
14817
14824
|
key: he,
|
|
14818
14825
|
item: {
|
|
14819
14826
|
key: he,
|
|
14820
|
-
value: p(he,
|
|
14827
|
+
value: p(he, oe),
|
|
14821
14828
|
label: V(he),
|
|
14822
14829
|
type: he === "key_usages" || he === "snis" || he === "dns_names" ? S(we).BadgeTag : S(we).Text
|
|
14823
14830
|
}
|
|
@@ -14859,15 +14866,15 @@ const G1 = ["aria-labelledby"], W1 = { class: "form-section-wrapper" }, J1 = {
|
|
|
14859
14866
|
]),
|
|
14860
14867
|
key_usages: I(() => [
|
|
14861
14868
|
w.value.length ? me("", !0) : (O(), H("div", Cb, L("–"))),
|
|
14862
|
-
(O(!0), H(Xe, null, We(w.value, (
|
|
14869
|
+
(O(!0), H(Xe, null, We(w.value, (oe, he) => (O(), fe(R, {
|
|
14863
14870
|
key: `key_usages-badge-tag-${he}`,
|
|
14864
14871
|
class: "config-badge",
|
|
14865
14872
|
"data-testid": `key_usages-badge-tag-${he}`,
|
|
14866
|
-
tooltip:
|
|
14873
|
+
tooltip: oe,
|
|
14867
14874
|
"truncation-tooltip": ""
|
|
14868
14875
|
}, {
|
|
14869
14876
|
default: I(() => [
|
|
14870
|
-
pe(L(
|
|
14877
|
+
pe(L(oe), 1)
|
|
14871
14878
|
]),
|
|
14872
14879
|
_: 2
|
|
14873
14880
|
}, 1032, ["data-testid", "tooltip"]))), 128))
|
|
@@ -14883,12 +14890,12 @@ const G1 = ["aria-labelledby"], W1 = { class: "form-section-wrapper" }, J1 = {
|
|
|
14883
14890
|
},
|
|
14884
14891
|
A.value ? {
|
|
14885
14892
|
name: "cert_alt",
|
|
14886
|
-
fn: I((
|
|
14893
|
+
fn: I((oe) => [
|
|
14887
14894
|
pe(" > "),
|
|
14888
|
-
S(l)("rowValue",
|
|
14895
|
+
S(l)("rowValue", oe) ? (O(), fe(de, {
|
|
14889
14896
|
key: 0,
|
|
14890
14897
|
id: `certificate-${e.config.entityId}-cert-alt-codeblock`,
|
|
14891
|
-
code: S(l)("rowValue",
|
|
14898
|
+
code: S(l)("rowValue", oe),
|
|
14892
14899
|
language: "plaintext",
|
|
14893
14900
|
"single-line": ""
|
|
14894
14901
|
}, null, 8, ["id", "code"])) : me("", !0)
|