@kong-ui-public/entities-certificates 2.1.4 → 2.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities-certificates.es.js +300 -300
- package/dist/entities-certificates.umd.js +12 -12
- package/dist/style.css +1 -1
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as Q, defineComponent as _e, inject as ku, computed as M, resolveComponent as te, openBlock as B, createElementBlock as R, createBlock as ie, resolveDynamicComponent as Mt, mergeProps as gi, withCtx as x, createElementVNode as se, normalizeClass as rr, toDisplayString as P, createCommentVNode as he, createVNode as V, withModifiers as Pr, unref as A, normalizeStyle as ba, pushScopeId as wa, popScopeId as ka, watch as Ft, renderSlot as Ee, useCssVars as _p, useSlots as Rn, createSlots as Zt, createTextVNode as ce, normalizeProps as Np, guardReactiveProps as Op, Fragment as
|
|
1
|
+
import { ref as Q, defineComponent as _e, inject as ku, computed as M, resolveComponent as te, openBlock as B, createElementBlock as R, createBlock as ie, resolveDynamicComponent as Mt, mergeProps as gi, withCtx as x, createElementVNode as se, normalizeClass as rr, toDisplayString as P, createCommentVNode as he, createVNode as V, withModifiers as Pr, unref as A, normalizeStyle as ba, pushScopeId as wa, popScopeId as ka, watch as Ft, renderSlot as Ee, useCssVars as _p, useSlots as Rn, createSlots as Zt, createTextVNode as ce, normalizeProps as Np, guardReactiveProps as Op, Fragment as Fe, renderList as Ue, onBeforeMount as Dn, withDirectives as jr, vShow as Vr, onMounted as Tp, onUnmounted as jp, Teleport as Au, reactive as rn } from "vue";
|
|
2
2
|
import { useRouter as Vi } from "vue-router";
|
|
3
3
|
import { createI18n as Un, i18nTComponent as Su } from "@kong-ui-public/i18n";
|
|
4
4
|
import Vp from "axios";
|
|
@@ -51,19 +51,19 @@ var kl;
|
|
|
51
51
|
}, f = Object.getPrototypeOf(Function), h = typeof process == "object" && process.env && process.env.REFLECT_METADATA_USE_MAP_POLYFILL === "true", I = !h && typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : Ip(), k = !h && typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : Bp(), p = !h && typeof WeakMap == "function" ? WeakMap : Ep(), y = new p();
|
|
52
52
|
function g(S, E, T, U) {
|
|
53
53
|
if (xe(T)) {
|
|
54
|
-
if (!
|
|
54
|
+
if (!Pe(S))
|
|
55
55
|
throw new TypeError();
|
|
56
56
|
if (!je(E))
|
|
57
57
|
throw new TypeError();
|
|
58
58
|
return J(S, E);
|
|
59
59
|
} else {
|
|
60
|
-
if (!
|
|
60
|
+
if (!Pe(S))
|
|
61
61
|
throw new TypeError();
|
|
62
62
|
if (!$(E))
|
|
63
63
|
throw new TypeError();
|
|
64
|
-
if (!$(U) && !xe(U) && !
|
|
64
|
+
if (!$(U) && !xe(U) && !re(U))
|
|
65
65
|
throw new TypeError();
|
|
66
|
-
return
|
|
66
|
+
return re(U) && (U = void 0), T = oe(T), z(S, E, T, U);
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
t("decorate", g);
|
|
@@ -81,49 +81,49 @@ var kl;
|
|
|
81
81
|
function v(S, E, T, U) {
|
|
82
82
|
if (!$(T))
|
|
83
83
|
throw new TypeError();
|
|
84
|
-
return xe(U) || (U =
|
|
84
|
+
return xe(U) || (U = oe(U)), Ae(S, E, T, U);
|
|
85
85
|
}
|
|
86
86
|
t("defineMetadata", v);
|
|
87
87
|
function m(S, E, T) {
|
|
88
88
|
if (!$(E))
|
|
89
89
|
throw new TypeError();
|
|
90
|
-
return xe(T) || (T =
|
|
90
|
+
return xe(T) || (T = oe(T)), D(S, E, T);
|
|
91
91
|
}
|
|
92
92
|
t("hasMetadata", m);
|
|
93
93
|
function C(S, E, T) {
|
|
94
94
|
if (!$(E))
|
|
95
95
|
throw new TypeError();
|
|
96
|
-
return xe(T) || (T =
|
|
96
|
+
return xe(T) || (T = oe(T)), fe(S, E, T);
|
|
97
97
|
}
|
|
98
98
|
t("hasOwnMetadata", C);
|
|
99
99
|
function W(S, E, T) {
|
|
100
100
|
if (!$(E))
|
|
101
101
|
throw new TypeError();
|
|
102
|
-
return xe(T) || (T =
|
|
102
|
+
return xe(T) || (T = oe(T)), ke(S, E, T);
|
|
103
103
|
}
|
|
104
104
|
t("getMetadata", W);
|
|
105
105
|
function ae(S, E, T) {
|
|
106
106
|
if (!$(E))
|
|
107
107
|
throw new TypeError();
|
|
108
|
-
return xe(T) || (T =
|
|
108
|
+
return xe(T) || (T = oe(T)), Oe(S, E, T);
|
|
109
109
|
}
|
|
110
110
|
t("getOwnMetadata", ae);
|
|
111
111
|
function _(S, E) {
|
|
112
112
|
if (!$(S))
|
|
113
113
|
throw new TypeError();
|
|
114
|
-
return xe(E) || (E =
|
|
114
|
+
return xe(E) || (E = oe(E)), Ce(S, E);
|
|
115
115
|
}
|
|
116
116
|
t("getMetadataKeys", _);
|
|
117
117
|
function N(S, E) {
|
|
118
118
|
if (!$(S))
|
|
119
119
|
throw new TypeError();
|
|
120
|
-
return xe(E) || (E =
|
|
120
|
+
return xe(E) || (E = oe(E)), Ve(S, E);
|
|
121
121
|
}
|
|
122
122
|
t("getOwnMetadataKeys", N);
|
|
123
123
|
function K(S, E, T) {
|
|
124
124
|
if (!$(E))
|
|
125
125
|
throw new TypeError();
|
|
126
|
-
xe(T) || (T =
|
|
126
|
+
xe(T) || (T = oe(T));
|
|
127
127
|
var U = H(
|
|
128
128
|
E,
|
|
129
129
|
T,
|
|
@@ -141,7 +141,7 @@ var kl;
|
|
|
141
141
|
function J(S, E) {
|
|
142
142
|
for (var T = S.length - 1; T >= 0; --T) {
|
|
143
143
|
var U = S[T], ee = U(E);
|
|
144
|
-
if (!xe(ee) && !
|
|
144
|
+
if (!xe(ee) && !re(ee)) {
|
|
145
145
|
if (!je(ee))
|
|
146
146
|
throw new TypeError();
|
|
147
147
|
E = ee;
|
|
@@ -151,8 +151,8 @@ var kl;
|
|
|
151
151
|
}
|
|
152
152
|
function z(S, E, T, U) {
|
|
153
153
|
for (var ee = S.length - 1; ee >= 0; --ee) {
|
|
154
|
-
var
|
|
155
|
-
if (!xe(ue) && !
|
|
154
|
+
var He = S[ee], ue = He(E, T, U);
|
|
155
|
+
if (!xe(ue) && !re(ue)) {
|
|
156
156
|
if (!$(ue))
|
|
157
157
|
throw new TypeError();
|
|
158
158
|
U = ue;
|
|
@@ -180,7 +180,7 @@ var kl;
|
|
|
180
180
|
if (U)
|
|
181
181
|
return !0;
|
|
182
182
|
var ee = $o(E);
|
|
183
|
-
return
|
|
183
|
+
return re(ee) ? !1 : D(S, ee, T);
|
|
184
184
|
}
|
|
185
185
|
function fe(S, E, T) {
|
|
186
186
|
var U = H(
|
|
@@ -189,14 +189,14 @@ var kl;
|
|
|
189
189
|
/*Create*/
|
|
190
190
|
!1
|
|
191
191
|
);
|
|
192
|
-
return xe(U) ? !1 :
|
|
192
|
+
return xe(U) ? !1 : Ge(U.has(S));
|
|
193
193
|
}
|
|
194
194
|
function ke(S, E, T) {
|
|
195
195
|
var U = fe(S, E, T);
|
|
196
196
|
if (U)
|
|
197
197
|
return Oe(S, E, T);
|
|
198
198
|
var ee = $o(E);
|
|
199
|
-
if (!
|
|
199
|
+
if (!re(ee))
|
|
200
200
|
return ke(S, ee, T);
|
|
201
201
|
}
|
|
202
202
|
function Oe(S, E, T) {
|
|
@@ -227,13 +227,13 @@ var kl;
|
|
|
227
227
|
return T;
|
|
228
228
|
if (T.length <= 0)
|
|
229
229
|
return ee;
|
|
230
|
-
for (var
|
|
231
|
-
var ge =
|
|
232
|
-
ve || (
|
|
230
|
+
for (var He = new k(), ue = [], de = 0, ne = T; de < ne.length; de++) {
|
|
231
|
+
var ge = ne[de], ve = He.has(ge);
|
|
232
|
+
ve || (He.add(ge), ue.push(ge));
|
|
233
233
|
}
|
|
234
234
|
for (var Jt = 0, wl = ee; Jt < wl.length; Jt++) {
|
|
235
|
-
var ge = wl[Jt], ve =
|
|
236
|
-
ve || (
|
|
235
|
+
var ge = wl[Jt], ve = He.has(ge);
|
|
236
|
+
ve || (He.add(ge), ue.push(ge));
|
|
237
237
|
}
|
|
238
238
|
return ue;
|
|
239
239
|
}
|
|
@@ -246,16 +246,16 @@ var kl;
|
|
|
246
246
|
);
|
|
247
247
|
if (xe(U))
|
|
248
248
|
return T;
|
|
249
|
-
for (var ee = U.keys(),
|
|
250
|
-
var de = Cp(
|
|
249
|
+
for (var ee = U.keys(), He = Ap(ee), ue = 0; ; ) {
|
|
250
|
+
var de = Cp(He);
|
|
251
251
|
if (!de)
|
|
252
252
|
return T.length = ue, T;
|
|
253
|
-
var
|
|
253
|
+
var ne = Sp(de);
|
|
254
254
|
try {
|
|
255
|
-
T[ue] =
|
|
255
|
+
T[ue] = ne;
|
|
256
256
|
} catch (ge) {
|
|
257
257
|
try {
|
|
258
|
-
xp(
|
|
258
|
+
xp(He);
|
|
259
259
|
} finally {
|
|
260
260
|
throw ge;
|
|
261
261
|
}
|
|
@@ -286,7 +286,7 @@ var kl;
|
|
|
286
286
|
function xe(S) {
|
|
287
287
|
return S === void 0;
|
|
288
288
|
}
|
|
289
|
-
function
|
|
289
|
+
function re(S) {
|
|
290
290
|
return S === null;
|
|
291
291
|
}
|
|
292
292
|
function Ie(S) {
|
|
@@ -340,22 +340,22 @@ var kl;
|
|
|
340
340
|
if (!$(U))
|
|
341
341
|
return U;
|
|
342
342
|
}
|
|
343
|
-
var
|
|
344
|
-
if (Z(
|
|
345
|
-
var U =
|
|
343
|
+
var He = S.toString;
|
|
344
|
+
if (Z(He)) {
|
|
345
|
+
var U = He.call(S);
|
|
346
346
|
if (!$(U))
|
|
347
347
|
return U;
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
350
|
throw new TypeError();
|
|
351
351
|
}
|
|
352
|
-
function
|
|
352
|
+
function Ge(S) {
|
|
353
353
|
return !!S;
|
|
354
354
|
}
|
|
355
355
|
function Ot(S) {
|
|
356
356
|
return "" + S;
|
|
357
357
|
}
|
|
358
|
-
function
|
|
358
|
+
function oe(S) {
|
|
359
359
|
var E = pe(
|
|
360
360
|
S,
|
|
361
361
|
3
|
|
@@ -363,7 +363,7 @@ var kl;
|
|
|
363
363
|
);
|
|
364
364
|
return Ie(E) ? E : Ot(E);
|
|
365
365
|
}
|
|
366
|
-
function
|
|
366
|
+
function Pe(S) {
|
|
367
367
|
return Array.isArray ? Array.isArray(S) : S instanceof Object ? S instanceof Array : Object.prototype.toString.call(S) === "[object Array]";
|
|
368
368
|
}
|
|
369
369
|
function Z(S) {
|
|
@@ -424,8 +424,8 @@ var kl;
|
|
|
424
424
|
var S = {}, E = [], T = (
|
|
425
425
|
/** @class */
|
|
426
426
|
function() {
|
|
427
|
-
function ue(de,
|
|
428
|
-
this._index = 0, this._keys = de, this._values =
|
|
427
|
+
function ue(de, ne, ge) {
|
|
428
|
+
this._index = 0, this._keys = de, this._values = ne, this._selector = ge;
|
|
429
429
|
}
|
|
430
430
|
return ue.prototype["@@iterator"] = function() {
|
|
431
431
|
return this;
|
|
@@ -434,8 +434,8 @@ var kl;
|
|
|
434
434
|
}, ue.prototype.next = function() {
|
|
435
435
|
var de = this._index;
|
|
436
436
|
if (de >= 0 && de < this._keys.length) {
|
|
437
|
-
var
|
|
438
|
-
return de + 1 >= this._keys.length ? (this._index = -1, this._keys = E, this._values = E) : this._index++, { value:
|
|
437
|
+
var ne = this._selector(this._keys[de], this._values[de]);
|
|
438
|
+
return de + 1 >= this._keys.length ? (this._index = -1, this._keys = E, this._values = E) : this._index++, { value: ne, done: !1 };
|
|
439
439
|
}
|
|
440
440
|
return { value: void 0, done: !0 };
|
|
441
441
|
}, ue.prototype.throw = function(de) {
|
|
@@ -464,27 +464,27 @@ var kl;
|
|
|
464
464
|
!1
|
|
465
465
|
) >= 0;
|
|
466
466
|
}, ue.prototype.get = function(de) {
|
|
467
|
-
var
|
|
467
|
+
var ne = this._find(
|
|
468
468
|
de,
|
|
469
469
|
/*insert*/
|
|
470
470
|
!1
|
|
471
471
|
);
|
|
472
|
-
return
|
|
473
|
-
}, ue.prototype.set = function(de,
|
|
472
|
+
return ne >= 0 ? this._values[ne] : void 0;
|
|
473
|
+
}, ue.prototype.set = function(de, ne) {
|
|
474
474
|
var ge = this._find(
|
|
475
475
|
de,
|
|
476
476
|
/*insert*/
|
|
477
477
|
!0
|
|
478
478
|
);
|
|
479
|
-
return this._values[ge] =
|
|
479
|
+
return this._values[ge] = ne, this;
|
|
480
480
|
}, ue.prototype.delete = function(de) {
|
|
481
|
-
var
|
|
481
|
+
var ne = this._find(
|
|
482
482
|
de,
|
|
483
483
|
/*insert*/
|
|
484
484
|
!1
|
|
485
485
|
);
|
|
486
|
-
if (
|
|
487
|
-
for (var ge = this._keys.length, ve =
|
|
486
|
+
if (ne >= 0) {
|
|
487
|
+
for (var ge = this._keys.length, ve = ne + 1; ve < ge; ve++)
|
|
488
488
|
this._keys[ve - 1] = this._keys[ve], this._values[ve - 1] = this._values[ve];
|
|
489
489
|
return this._keys.length--, this._values.length--, de === this._cacheKey && (this._cacheKey = S, this._cacheIndex = -2), !0;
|
|
490
490
|
}
|
|
@@ -496,13 +496,13 @@ var kl;
|
|
|
496
496
|
}, ue.prototype.values = function() {
|
|
497
497
|
return new T(this._keys, this._values, ee);
|
|
498
498
|
}, ue.prototype.entries = function() {
|
|
499
|
-
return new T(this._keys, this._values,
|
|
499
|
+
return new T(this._keys, this._values, He);
|
|
500
500
|
}, ue.prototype["@@iterator"] = function() {
|
|
501
501
|
return this.entries();
|
|
502
502
|
}, ue.prototype[o] = function() {
|
|
503
503
|
return this.entries();
|
|
504
|
-
}, ue.prototype._find = function(de,
|
|
505
|
-
return this._cacheKey !== de && (this._cacheIndex = this._keys.indexOf(this._cacheKey = de)), this._cacheIndex < 0 &&
|
|
504
|
+
}, ue.prototype._find = function(de, ne) {
|
|
505
|
+
return this._cacheKey !== de && (this._cacheIndex = this._keys.indexOf(this._cacheKey = de)), this._cacheIndex < 0 && ne && (this._cacheIndex = this._keys.length, this._keys.push(de), this._values.push(void 0)), this._cacheIndex;
|
|
506
506
|
}, ue;
|
|
507
507
|
}()
|
|
508
508
|
);
|
|
@@ -512,7 +512,7 @@ var kl;
|
|
|
512
512
|
function ee(ue, de) {
|
|
513
513
|
return de;
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
function He(ue, de) {
|
|
516
516
|
return [ue, de];
|
|
517
517
|
}
|
|
518
518
|
}
|
|
@@ -556,70 +556,70 @@ var kl;
|
|
|
556
556
|
return (
|
|
557
557
|
/** @class */
|
|
558
558
|
function() {
|
|
559
|
-
function
|
|
559
|
+
function ne() {
|
|
560
560
|
this._key = U();
|
|
561
561
|
}
|
|
562
|
-
return
|
|
562
|
+
return ne.prototype.has = function(ge) {
|
|
563
563
|
var ve = ee(
|
|
564
564
|
ge,
|
|
565
565
|
/*create*/
|
|
566
566
|
!1
|
|
567
567
|
);
|
|
568
568
|
return ve !== void 0 ? u.has(ve, this._key) : !1;
|
|
569
|
-
},
|
|
569
|
+
}, ne.prototype.get = function(ge) {
|
|
570
570
|
var ve = ee(
|
|
571
571
|
ge,
|
|
572
572
|
/*create*/
|
|
573
573
|
!1
|
|
574
574
|
);
|
|
575
575
|
return ve !== void 0 ? u.get(ve, this._key) : void 0;
|
|
576
|
-
},
|
|
576
|
+
}, ne.prototype.set = function(ge, ve) {
|
|
577
577
|
var Jt = ee(
|
|
578
578
|
ge,
|
|
579
579
|
/*create*/
|
|
580
580
|
!0
|
|
581
581
|
);
|
|
582
582
|
return Jt[this._key] = ve, this;
|
|
583
|
-
},
|
|
583
|
+
}, ne.prototype.delete = function(ge) {
|
|
584
584
|
var ve = ee(
|
|
585
585
|
ge,
|
|
586
586
|
/*create*/
|
|
587
587
|
!1
|
|
588
588
|
);
|
|
589
589
|
return ve !== void 0 ? delete ve[this._key] : !1;
|
|
590
|
-
},
|
|
590
|
+
}, ne.prototype.clear = function() {
|
|
591
591
|
this._key = U();
|
|
592
|
-
},
|
|
592
|
+
}, ne;
|
|
593
593
|
}()
|
|
594
594
|
);
|
|
595
595
|
function U() {
|
|
596
|
-
var
|
|
596
|
+
var ne;
|
|
597
597
|
do
|
|
598
|
-
|
|
599
|
-
while (u.has(E,
|
|
600
|
-
return E[
|
|
598
|
+
ne = "@@WeakMap@@" + de();
|
|
599
|
+
while (u.has(E, ne));
|
|
600
|
+
return E[ne] = !0, ne;
|
|
601
601
|
}
|
|
602
|
-
function ee(
|
|
603
|
-
if (!r.call(
|
|
602
|
+
function ee(ne, ge) {
|
|
603
|
+
if (!r.call(ne, T)) {
|
|
604
604
|
if (!ge)
|
|
605
605
|
return;
|
|
606
|
-
Object.defineProperty(
|
|
606
|
+
Object.defineProperty(ne, T, { value: u.create() });
|
|
607
607
|
}
|
|
608
|
-
return
|
|
608
|
+
return ne[T];
|
|
609
609
|
}
|
|
610
|
-
function
|
|
610
|
+
function He(ne, ge) {
|
|
611
611
|
for (var ve = 0; ve < ge; ++ve)
|
|
612
|
-
|
|
613
|
-
return
|
|
612
|
+
ne[ve] = Math.random() * 255 | 0;
|
|
613
|
+
return ne;
|
|
614
614
|
}
|
|
615
|
-
function ue(
|
|
616
|
-
return typeof Uint8Array == "function" ? typeof crypto < "u" ? crypto.getRandomValues(new Uint8Array(
|
|
615
|
+
function ue(ne) {
|
|
616
|
+
return typeof Uint8Array == "function" ? typeof crypto < "u" ? crypto.getRandomValues(new Uint8Array(ne)) : typeof msCrypto < "u" ? msCrypto.getRandomValues(new Uint8Array(ne)) : He(new Uint8Array(ne), ne) : He(new Array(ne), ne);
|
|
617
617
|
}
|
|
618
618
|
function de() {
|
|
619
|
-
var
|
|
620
|
-
|
|
619
|
+
var ne = ue(S);
|
|
620
|
+
ne[6] = ne[6] & 79 | 64, ne[8] = ne[8] & 191 | 128;
|
|
621
621
|
for (var ge = "", ve = 0; ve < S; ++ve) {
|
|
622
|
-
var Jt =
|
|
622
|
+
var Jt = ne[ve];
|
|
623
623
|
(ve === 4 || ve === 6 || ve === 8) && (ge += "-"), Jt < 16 && (ge += "0"), ge += Jt.toString(16).toLowerCase();
|
|
624
624
|
}
|
|
625
625
|
return ge;
|
|
@@ -1334,7 +1334,7 @@ class _u extends Sr {
|
|
|
1334
1334
|
}
|
|
1335
1335
|
_u.NAME = "lengthBlock";
|
|
1336
1336
|
const F = {};
|
|
1337
|
-
class
|
|
1337
|
+
class qe extends Sr {
|
|
1338
1338
|
constructor({ name: t = tt, optional: r = !1, primitiveSchema: i, ...n } = {}, o) {
|
|
1339
1339
|
super(n), this.name = t, this.optional = r, i && (this.primitiveSchema = i), this.idBlock = new Eu(n), this.lenBlock = new _u(n), this.valueBlock = o ? new o(n) : new Xe(n);
|
|
1340
1340
|
}
|
|
@@ -1382,14 +1382,14 @@ class ze extends Sr {
|
|
|
1382
1382
|
return Hp(r, i);
|
|
1383
1383
|
}
|
|
1384
1384
|
}
|
|
1385
|
-
|
|
1385
|
+
qe.NAME = "BaseBlock";
|
|
1386
1386
|
function Nu(e) {
|
|
1387
1387
|
if (e instanceof F.Constructed)
|
|
1388
1388
|
for (const t of e.valueBlock.value)
|
|
1389
1389
|
Nu(t) && (e.lenBlock.isIndefiniteForm = !0);
|
|
1390
1390
|
return !!e.lenBlock.isIndefiniteForm;
|
|
1391
1391
|
}
|
|
1392
|
-
class Sa extends
|
|
1392
|
+
class Sa extends qe {
|
|
1393
1393
|
constructor({ value: t = tt, ...r } = {}, i) {
|
|
1394
1394
|
super(r, i), t && this.fromString(t);
|
|
1395
1395
|
}
|
|
@@ -1415,7 +1415,7 @@ class Ou extends Bt(Xe) {
|
|
|
1415
1415
|
}
|
|
1416
1416
|
Ou.NAME = "PrimitiveValueBlock";
|
|
1417
1417
|
var Tu;
|
|
1418
|
-
class $i extends
|
|
1418
|
+
class $i extends qe {
|
|
1419
1419
|
constructor(t = {}) {
|
|
1420
1420
|
super(t, Ou), this.idBlock.isConstructed = !1;
|
|
1421
1421
|
}
|
|
@@ -1431,7 +1431,7 @@ function Zp(e, t) {
|
|
|
1431
1431
|
}
|
|
1432
1432
|
function Xr(e, t = 0, r = e.length) {
|
|
1433
1433
|
const i = t;
|
|
1434
|
-
let n = new
|
|
1434
|
+
let n = new qe({}, Xe);
|
|
1435
1435
|
const o = new Sr();
|
|
1436
1436
|
if (!Kt(o, e, t, r))
|
|
1437
1437
|
return n.error = o.error, {
|
|
@@ -1459,7 +1459,7 @@ function Xr(e, t = 0, r = e.length) {
|
|
|
1459
1459
|
offset: -1,
|
|
1460
1460
|
result: n
|
|
1461
1461
|
};
|
|
1462
|
-
let l =
|
|
1462
|
+
let l = qe;
|
|
1463
1463
|
switch (n.idBlock.tagClass) {
|
|
1464
1464
|
case 1:
|
|
1465
1465
|
if (n.idBlock.tagNumber >= 37 && n.idBlock.isHexOnly === !1)
|
|
@@ -1587,7 +1587,7 @@ function Xr(e, t = 0, r = e.length) {
|
|
|
1587
1587
|
}
|
|
1588
1588
|
function $r(e) {
|
|
1589
1589
|
if (!e.byteLength) {
|
|
1590
|
-
const t = new
|
|
1590
|
+
const t = new qe({}, Xe);
|
|
1591
1591
|
return t.error = "Input buffer has zero length", {
|
|
1592
1592
|
offset: -1,
|
|
1593
1593
|
result: t
|
|
@@ -1637,7 +1637,7 @@ class Qt extends Xe {
|
|
|
1637
1637
|
}
|
|
1638
1638
|
Qt.NAME = "ConstructedValueBlock";
|
|
1639
1639
|
var ju;
|
|
1640
|
-
class it extends
|
|
1640
|
+
class it extends qe {
|
|
1641
1641
|
constructor(t = {}) {
|
|
1642
1642
|
super(t, Qt), this.idBlock.isConstructed = !0;
|
|
1643
1643
|
}
|
|
@@ -1671,7 +1671,7 @@ class Vu extends Xe {
|
|
|
1671
1671
|
}
|
|
1672
1672
|
Vu.override = "EndOfContentValueBlock";
|
|
1673
1673
|
var $u;
|
|
1674
|
-
class Ca extends
|
|
1674
|
+
class Ca extends qe {
|
|
1675
1675
|
constructor(t = {}) {
|
|
1676
1676
|
super(t, Vu), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 0;
|
|
1677
1677
|
}
|
|
@@ -1680,7 +1680,7 @@ $u = Ca;
|
|
|
1680
1680
|
F.EndOfContent = $u;
|
|
1681
1681
|
Ca.NAME = vi;
|
|
1682
1682
|
var Pu;
|
|
1683
|
-
class vr extends
|
|
1683
|
+
class vr extends qe {
|
|
1684
1684
|
constructor(t = {}) {
|
|
1685
1685
|
super(t, Xe), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 5;
|
|
1686
1686
|
}
|
|
@@ -1731,7 +1731,7 @@ class Mu extends Bt(Xe) {
|
|
|
1731
1731
|
}
|
|
1732
1732
|
Mu.NAME = "BooleanValueBlock";
|
|
1733
1733
|
var Ru;
|
|
1734
|
-
let Fn = class extends
|
|
1734
|
+
let Fn = class extends qe {
|
|
1735
1735
|
constructor(t = {}) {
|
|
1736
1736
|
super(t, Mu), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 1;
|
|
1737
1737
|
}
|
|
@@ -1783,7 +1783,7 @@ class Du extends Bt(Qt) {
|
|
|
1783
1783
|
}
|
|
1784
1784
|
Du.NAME = "OctetStringValueBlock";
|
|
1785
1785
|
var Uu;
|
|
1786
|
-
let ur = class Lu extends
|
|
1786
|
+
let ur = class Lu extends qe {
|
|
1787
1787
|
constructor({ idBlock: t = {}, lenBlock: r = {}, ...i } = {}) {
|
|
1788
1788
|
var n, o;
|
|
1789
1789
|
(n = i.isConstructed) !== null && n !== void 0 || (i.isConstructed = !!(!((o = i.value) === null || o === void 0) && o.length)), super({
|
|
@@ -1893,7 +1893,7 @@ class Hu extends Bt(Qt) {
|
|
|
1893
1893
|
}
|
|
1894
1894
|
Hu.NAME = "BitStringValueBlock";
|
|
1895
1895
|
var Fu;
|
|
1896
|
-
let dr = class extends
|
|
1896
|
+
let dr = class extends qe {
|
|
1897
1897
|
constructor({ idBlock: t = {}, lenBlock: r = {}, ...i } = {}) {
|
|
1898
1898
|
var n, o;
|
|
1899
1899
|
(n = i.isConstructed) !== null && n !== void 0 || (i.isConstructed = !!(!((o = i.value) === null || o === void 0) && o.length)), super({
|
|
@@ -2070,7 +2070,7 @@ Object.defineProperty(Ku.prototype, "valueHex", {
|
|
|
2070
2070
|
}
|
|
2071
2071
|
});
|
|
2072
2072
|
var qu;
|
|
2073
|
-
class St extends
|
|
2073
|
+
class St extends qe {
|
|
2074
2074
|
constructor(t = {}) {
|
|
2075
2075
|
super(t, xa), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 2;
|
|
2076
2076
|
}
|
|
@@ -2268,7 +2268,7 @@ class Gu extends Xe {
|
|
|
2268
2268
|
}
|
|
2269
2269
|
Gu.NAME = "ObjectIdentifierValueBlock";
|
|
2270
2270
|
var Wu;
|
|
2271
|
-
class qn extends
|
|
2271
|
+
class qn extends qe {
|
|
2272
2272
|
constructor(t = {}) {
|
|
2273
2273
|
super(t, Gu), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 6;
|
|
2274
2274
|
}
|
|
@@ -2401,7 +2401,7 @@ class Ju extends Xe {
|
|
|
2401
2401
|
}
|
|
2402
2402
|
Ju.NAME = "RelativeObjectIdentifierValueBlock";
|
|
2403
2403
|
var Yu;
|
|
2404
|
-
class Ia extends
|
|
2404
|
+
class Ia extends qe {
|
|
2405
2405
|
constructor(t = {}) {
|
|
2406
2406
|
super(t, Ju), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 13;
|
|
2407
2407
|
}
|
|
@@ -3099,7 +3099,7 @@ function rh(e, t) {
|
|
|
3099
3099
|
const Sd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3100
3100
|
__proto__: null,
|
|
3101
3101
|
Any: mr,
|
|
3102
|
-
BaseBlock:
|
|
3102
|
+
BaseBlock: qe,
|
|
3103
3103
|
BaseStringBlock: Sa,
|
|
3104
3104
|
BitString: dr,
|
|
3105
3105
|
BmpString: zn,
|
|
@@ -3558,7 +3558,7 @@ class Ih {
|
|
|
3558
3558
|
}
|
|
3559
3559
|
class Va {
|
|
3560
3560
|
static serialize(t) {
|
|
3561
|
-
return t instanceof
|
|
3561
|
+
return t instanceof qe ? t.toBER(!1) : this.toASN(t).toBER(!1);
|
|
3562
3562
|
}
|
|
3563
3563
|
static toASN(t) {
|
|
3564
3564
|
if (t && typeof t == "object" && jt(t))
|
|
@@ -4176,7 +4176,7 @@ class El {
|
|
|
4176
4176
|
}
|
|
4177
4177
|
}
|
|
4178
4178
|
var ts, rs, is;
|
|
4179
|
-
let
|
|
4179
|
+
let ze = class {
|
|
4180
4180
|
constructor(t = {}) {
|
|
4181
4181
|
Object.assign(this, t);
|
|
4182
4182
|
}
|
|
@@ -4186,23 +4186,23 @@ let Ge = class {
|
|
|
4186
4186
|
};
|
|
4187
4187
|
c([
|
|
4188
4188
|
d({ type: w.TeletexString })
|
|
4189
|
-
],
|
|
4189
|
+
], ze.prototype, "teletexString", void 0);
|
|
4190
4190
|
c([
|
|
4191
4191
|
d({ type: w.PrintableString })
|
|
4192
|
-
],
|
|
4192
|
+
], ze.prototype, "printableString", void 0);
|
|
4193
4193
|
c([
|
|
4194
4194
|
d({ type: w.UniversalString })
|
|
4195
|
-
],
|
|
4195
|
+
], ze.prototype, "universalString", void 0);
|
|
4196
4196
|
c([
|
|
4197
4197
|
d({ type: w.Utf8String })
|
|
4198
|
-
],
|
|
4198
|
+
], ze.prototype, "utf8String", void 0);
|
|
4199
4199
|
c([
|
|
4200
4200
|
d({ type: w.BmpString })
|
|
4201
|
-
],
|
|
4202
|
-
|
|
4201
|
+
], ze.prototype, "bmpString", void 0);
|
|
4202
|
+
ze = c([
|
|
4203
4203
|
j({ type: O.Choice })
|
|
4204
|
-
],
|
|
4205
|
-
let Rr = class extends
|
|
4204
|
+
], ze);
|
|
4205
|
+
let Rr = class extends ze {
|
|
4206
4206
|
constructor(t = {}) {
|
|
4207
4207
|
super(t), Object.assign(this, t);
|
|
4208
4208
|
}
|
|
@@ -4246,14 +4246,14 @@ let ns = rs = class extends we {
|
|
|
4246
4246
|
ns = rs = c([
|
|
4247
4247
|
j({ type: O.Sequence, itemType: Dr })
|
|
4248
4248
|
], ns);
|
|
4249
|
-
let
|
|
4249
|
+
let Me = is = class extends ns {
|
|
4250
4250
|
constructor(t) {
|
|
4251
4251
|
super(t), Object.setPrototypeOf(this, is.prototype);
|
|
4252
4252
|
}
|
|
4253
4253
|
};
|
|
4254
|
-
|
|
4254
|
+
Me = is = c([
|
|
4255
4255
|
j({ type: O.Sequence })
|
|
4256
|
-
],
|
|
4256
|
+
], Me);
|
|
4257
4257
|
const Bh = {
|
|
4258
4258
|
fromASN: (e) => El.toString(sn.fromASN(e)),
|
|
4259
4259
|
toASN: (e) => sn.toASN(El.fromString(e))
|
|
@@ -4271,14 +4271,14 @@ c([
|
|
|
4271
4271
|
], bi.prototype, "value", void 0);
|
|
4272
4272
|
class $a {
|
|
4273
4273
|
constructor(t = {}) {
|
|
4274
|
-
this.partyName = new
|
|
4274
|
+
this.partyName = new ze(), Object.assign(this, t);
|
|
4275
4275
|
}
|
|
4276
4276
|
}
|
|
4277
4277
|
c([
|
|
4278
|
-
d({ type:
|
|
4278
|
+
d({ type: ze, optional: !0, context: 0, implicit: !0 })
|
|
4279
4279
|
], $a.prototype, "nameAssigner", void 0);
|
|
4280
4280
|
c([
|
|
4281
|
-
d({ type:
|
|
4281
|
+
d({ type: ze, context: 1, implicit: !0 })
|
|
4282
4282
|
], $a.prototype, "partyName", void 0);
|
|
4283
4283
|
let le = class {
|
|
4284
4284
|
constructor(t = {}) {
|
|
@@ -4298,7 +4298,7 @@ c([
|
|
|
4298
4298
|
d({ type: w.Any, context: 3, implicit: !0 })
|
|
4299
4299
|
], le.prototype, "x400Address", void 0);
|
|
4300
4300
|
c([
|
|
4301
|
-
d({ type:
|
|
4301
|
+
d({ type: Me, context: 4, implicit: !1 })
|
|
4302
4302
|
], le.prototype, "directoryName", void 0);
|
|
4303
4303
|
c([
|
|
4304
4304
|
d({ type: $a, context: 5 })
|
|
@@ -4912,7 +4912,7 @@ var Lr;
|
|
|
4912
4912
|
})(Lr || (Lr = {}));
|
|
4913
4913
|
class yt {
|
|
4914
4914
|
constructor(t = {}) {
|
|
4915
|
-
this.version = Lr.v1, this.serialNumber = new ArrayBuffer(0), this.signature = new G(), this.issuer = new
|
|
4915
|
+
this.version = Lr.v1, this.serialNumber = new ArrayBuffer(0), this.signature = new G(), this.issuer = new Me(), this.validity = new ao(), this.subject = new Me(), this.subjectPublicKeyInfo = new Pt(), Object.assign(this, t);
|
|
4916
4916
|
}
|
|
4917
4917
|
}
|
|
4918
4918
|
c([
|
|
@@ -4932,13 +4932,13 @@ c([
|
|
|
4932
4932
|
d({ type: G })
|
|
4933
4933
|
], yt.prototype, "signature", void 0);
|
|
4934
4934
|
c([
|
|
4935
|
-
d({ type:
|
|
4935
|
+
d({ type: Me })
|
|
4936
4936
|
], yt.prototype, "issuer", void 0);
|
|
4937
4937
|
c([
|
|
4938
4938
|
d({ type: ao })
|
|
4939
4939
|
], yt.prototype, "validity", void 0);
|
|
4940
4940
|
c([
|
|
4941
|
-
d({ type:
|
|
4941
|
+
d({ type: Me })
|
|
4942
4942
|
], yt.prototype, "subject", void 0);
|
|
4943
4943
|
c([
|
|
4944
4944
|
d({ type: Pt })
|
|
@@ -4987,7 +4987,7 @@ c([
|
|
|
4987
4987
|
], lo.prototype, "crlEntryExtensions", void 0);
|
|
4988
4988
|
class zt {
|
|
4989
4989
|
constructor(t = {}) {
|
|
4990
|
-
this.signature = new G(), this.issuer = new
|
|
4990
|
+
this.signature = new G(), this.issuer = new Me(), this.thisUpdate = new Je(), Object.assign(this, t);
|
|
4991
4991
|
}
|
|
4992
4992
|
}
|
|
4993
4993
|
c([
|
|
@@ -4997,7 +4997,7 @@ c([
|
|
|
4997
4997
|
d({ type: G })
|
|
4998
4998
|
], zt.prototype, "signature", void 0);
|
|
4999
4999
|
c([
|
|
5000
|
-
d({ type:
|
|
5000
|
+
d({ type: Me })
|
|
5001
5001
|
], zt.prototype, "issuer", void 0);
|
|
5002
5002
|
c([
|
|
5003
5003
|
d({ type: Je })
|
|
@@ -5481,11 +5481,11 @@ c([
|
|
|
5481
5481
|
], Ui.prototype, "encryptedContent", void 0);
|
|
5482
5482
|
class ii {
|
|
5483
5483
|
constructor(t = {}) {
|
|
5484
|
-
this.issuer = new
|
|
5484
|
+
this.issuer = new Me(), this.serialNumber = new ArrayBuffer(0), Object.assign(this, t);
|
|
5485
5485
|
}
|
|
5486
5486
|
}
|
|
5487
5487
|
c([
|
|
5488
|
-
d({ type:
|
|
5488
|
+
d({ type: Me })
|
|
5489
5489
|
], ii.prototype, "issuer", void 0);
|
|
5490
5490
|
c([
|
|
5491
5491
|
d({ type: w.Integer, converter: Ne })
|
|
@@ -5919,18 +5919,18 @@ c([
|
|
|
5919
5919
|
d({ type: w.Integer, converter: Ne })
|
|
5920
5920
|
], An.prototype, "s", void 0);
|
|
5921
5921
|
const ot = "1.2.840.113549.1.1", Yr = `${ot}.1`, Uh = `${ot}.7`, Lh = `${ot}.9`, Hh = `${ot}.10`, Fh = `${ot}.2`, Kh = `${ot}.4`, Sn = `${ot}.5`, qh = `${ot}.14`, Hs = `${ot}.11`, Cn = `${ot}.12`, xn = `${ot}.13`, Fd = `${ot}.15`, Kd = `${ot}.16`, qd = "1.3.14.3.2.26", zd = "2.16.840.1.101.3.4.2.4", Gd = "2.16.840.1.101.3.4.2.1", Wd = "2.16.840.1.101.3.4.2.2", Jd = "2.16.840.1.101.3.4.2.3", zh = "2.16.840.1.101.3.4.2.5", Gh = "2.16.840.1.101.3.4.2.6", Wh = "1.2.840.113549.2.2", Jh = "1.2.840.113549.2.5", tl = `${ot}.8`;
|
|
5922
|
-
function
|
|
5922
|
+
function De(e) {
|
|
5923
5923
|
return new G({ algorithm: e, parameters: null });
|
|
5924
5924
|
}
|
|
5925
|
-
|
|
5926
|
-
|
|
5927
|
-
const kr =
|
|
5928
|
-
|
|
5929
|
-
|
|
5930
|
-
|
|
5931
|
-
|
|
5932
|
-
|
|
5933
|
-
|
|
5925
|
+
De(Wh);
|
|
5926
|
+
De(Jh);
|
|
5927
|
+
const kr = De(qd);
|
|
5928
|
+
De(zd);
|
|
5929
|
+
De(Gd);
|
|
5930
|
+
De(Wd);
|
|
5931
|
+
De(Jd);
|
|
5932
|
+
De(zh);
|
|
5933
|
+
De(Gh);
|
|
5934
5934
|
const Yd = new G({
|
|
5935
5935
|
algorithm: tl,
|
|
5936
5936
|
parameters: Y.serialize(kr)
|
|
@@ -5938,16 +5938,16 @@ const Yd = new G({
|
|
|
5938
5938
|
algorithm: Lh,
|
|
5939
5939
|
parameters: Y.serialize(sn.toASN(new Uint8Array([218, 57, 163, 238, 94, 107, 75, 13, 50, 85, 191, 239, 149, 96, 24, 144, 175, 216, 7, 9]).buffer))
|
|
5940
5940
|
});
|
|
5941
|
-
|
|
5942
|
-
|
|
5943
|
-
|
|
5944
|
-
|
|
5945
|
-
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
|
|
5941
|
+
De(Yr);
|
|
5942
|
+
De(Fh);
|
|
5943
|
+
De(Kh);
|
|
5944
|
+
De(Sn);
|
|
5945
|
+
De(Fd);
|
|
5946
|
+
De(Kd);
|
|
5947
|
+
De(Cn);
|
|
5948
|
+
De(xn);
|
|
5949
|
+
De(Fd);
|
|
5950
|
+
De(Kd);
|
|
5951
5951
|
class ko {
|
|
5952
5952
|
constructor(t = {}) {
|
|
5953
5953
|
this.hashAlgorithm = new G(kr), this.maskGenAlgorithm = new G({
|
|
@@ -6790,7 +6790,7 @@ Wl = Xs = c([
|
|
|
6790
6790
|
], Wl);
|
|
6791
6791
|
var ea, ta, ra;
|
|
6792
6792
|
const af = "1.2.840.113549.1.9", lf = `${af}.7`, sl = `${af}.14`;
|
|
6793
|
-
let Bn = class extends
|
|
6793
|
+
let Bn = class extends ze {
|
|
6794
6794
|
constructor(t = {}) {
|
|
6795
6795
|
super(t);
|
|
6796
6796
|
}
|
|
@@ -6838,7 +6838,7 @@ let Ql = class extends Bn {
|
|
|
6838
6838
|
Ql = c([
|
|
6839
6839
|
j({ type: O.Choice })
|
|
6840
6840
|
], Ql);
|
|
6841
|
-
let Xl = class extends
|
|
6841
|
+
let Xl = class extends ze {
|
|
6842
6842
|
};
|
|
6843
6843
|
Xl = c([
|
|
6844
6844
|
j({ type: O.Choice })
|
|
@@ -6854,7 +6854,7 @@ c([
|
|
|
6854
6854
|
na = c([
|
|
6855
6855
|
j({ type: O.Choice })
|
|
6856
6856
|
], na);
|
|
6857
|
-
let ec = class extends
|
|
6857
|
+
let ec = class extends ze {
|
|
6858
6858
|
};
|
|
6859
6859
|
ec = c([
|
|
6860
6860
|
j({ type: O.Choice })
|
|
@@ -6892,7 +6892,7 @@ let tc = class extends En {
|
|
|
6892
6892
|
tc = c([
|
|
6893
6893
|
j({ type: O.Choice })
|
|
6894
6894
|
], tc);
|
|
6895
|
-
let rc = class extends
|
|
6895
|
+
let rc = class extends ze {
|
|
6896
6896
|
};
|
|
6897
6897
|
rc = c([
|
|
6898
6898
|
j({ type: O.Choice })
|
|
@@ -6935,7 +6935,7 @@ let nc = class extends Gt {
|
|
|
6935
6935
|
nc = c([
|
|
6936
6936
|
j({ type: O.Sequence })
|
|
6937
6937
|
], nc);
|
|
6938
|
-
let _n = class extends
|
|
6938
|
+
let _n = class extends ze {
|
|
6939
6939
|
};
|
|
6940
6940
|
_n = c([
|
|
6941
6941
|
j({ type: O.Choice })
|
|
@@ -6994,14 +6994,14 @@ Nn = ua = c([
|
|
|
6994
6994
|
], Nn);
|
|
6995
6995
|
class si {
|
|
6996
6996
|
constructor(t = {}) {
|
|
6997
|
-
this.version = 0, this.subject = new
|
|
6997
|
+
this.version = 0, this.subject = new Me(), this.subjectPKInfo = new Pt(), this.attributes = new Nn(), Object.assign(this, t);
|
|
6998
6998
|
}
|
|
6999
6999
|
}
|
|
7000
7000
|
c([
|
|
7001
7001
|
d({ type: w.Integer })
|
|
7002
7002
|
], si.prototype, "version", void 0);
|
|
7003
7003
|
c([
|
|
7004
|
-
d({ type:
|
|
7004
|
+
d({ type: Me })
|
|
7005
7005
|
], si.prototype, "subject", void 0);
|
|
7006
7006
|
c([
|
|
7007
7007
|
d({ type: Pt })
|
|
@@ -7508,13 +7508,13 @@ class er {
|
|
|
7508
7508
|
return !0;
|
|
7509
7509
|
}
|
|
7510
7510
|
constructor(t, r = {}) {
|
|
7511
|
-
this.extraNames = new ff(), this.asn = new
|
|
7511
|
+
this.extraNames = new ff(), this.asn = new Me();
|
|
7512
7512
|
for (const i in r)
|
|
7513
7513
|
if (Object.prototype.hasOwnProperty.call(r, i)) {
|
|
7514
7514
|
const n = r[i];
|
|
7515
7515
|
this.extraNames.register(i, n);
|
|
7516
7516
|
}
|
|
7517
|
-
typeof t == "string" ? this.asn = this.fromString(t) : t instanceof
|
|
7517
|
+
typeof t == "string" ? this.asn = this.fromString(t) : t instanceof Me ? this.asn = t : L.isBufferSource(t) ? this.asn = Y.parse(t, Me) : this.asn = this.fromJSON(t);
|
|
7518
7518
|
}
|
|
7519
7519
|
getField(t) {
|
|
7520
7520
|
const r = this.extraNames.findId(t) || nt.findId(t), i = [];
|
|
@@ -7546,7 +7546,7 @@ class er {
|
|
|
7546
7546
|
return r;
|
|
7547
7547
|
}
|
|
7548
7548
|
fromString(t) {
|
|
7549
|
-
const r = new
|
|
7549
|
+
const r = new Me(), i = /(\d\.[\d.]*\d|[A-Za-z]+)=((?:"")|(?:".*?[^\\]")|(?:[^,+].*?(?:[^\\][,+]))|(?:))([,+])?/g;
|
|
7550
7550
|
let n = null, o = ",";
|
|
7551
7551
|
for (; n = i.exec(`${t},`); ) {
|
|
7552
7552
|
let [, s, a] = n;
|
|
@@ -7568,7 +7568,7 @@ class er {
|
|
|
7568
7568
|
return r;
|
|
7569
7569
|
}
|
|
7570
7570
|
fromJSON(t) {
|
|
7571
|
-
const r = new
|
|
7571
|
+
const r = new Me();
|
|
7572
7572
|
for (const i of t) {
|
|
7573
7573
|
const n = new Dr();
|
|
7574
7574
|
for (const o in i) {
|
|
@@ -7622,7 +7622,7 @@ class Uc extends sr {
|
|
|
7622
7622
|
if (t.length === 2)
|
|
7623
7623
|
switch (t[0]) {
|
|
7624
7624
|
case Lo: {
|
|
7625
|
-
const i = new er(t[1]).toArrayBuffer(), n = Y.parse(i,
|
|
7625
|
+
const i = new er(t[1]).toArrayBuffer(), n = Y.parse(i, Me);
|
|
7626
7626
|
r = new le({ directoryName: n });
|
|
7627
7627
|
break;
|
|
7628
7628
|
}
|
|
@@ -7691,7 +7691,7 @@ class Uc extends sr {
|
|
|
7691
7691
|
throw new Error(my);
|
|
7692
7692
|
this.value = i.slice(1).map((n, o) => o < 3 ? q.ToHex(new Uint8Array(q.FromHex(n)).reverse()) : n).join("-");
|
|
7693
7693
|
} else if (t.otherName.typeId === Dc)
|
|
7694
|
-
this.type = zo, this.value = Y.parse(t.otherName.value,
|
|
7694
|
+
this.type = zo, this.value = Y.parse(t.otherName.value, ze).toString();
|
|
7695
7695
|
else
|
|
7696
7696
|
throw new Error(Pc);
|
|
7697
7697
|
else
|
|
@@ -8780,7 +8780,7 @@ const It = {
|
|
|
8780
8780
|
for (const [i, n] of t)
|
|
8781
8781
|
r[i] = n;
|
|
8782
8782
|
return r;
|
|
8783
|
-
}, Ry = (e) => (wa("data-v-
|
|
8783
|
+
}, Ry = (e) => (wa("data-v-77afb926"), e = e(), ka(), e), Dy = ["aria-hidden"], Uy = {
|
|
8784
8784
|
key: 0,
|
|
8785
8785
|
"data-testid": "kui-icon-svg-title"
|
|
8786
8786
|
}, Ly = /* @__PURE__ */ Ry(() => /* @__PURE__ */ se("path", {
|
|
@@ -8879,7 +8879,7 @@ const It = {
|
|
|
8879
8879
|
_: 1
|
|
8880
8880
|
}, 8, ["aria-hidden", "style"]));
|
|
8881
8881
|
}
|
|
8882
|
-
}), Fy = /* @__PURE__ */ My(Hy, [["__scopeId", "data-v-
|
|
8882
|
+
}), Fy = /* @__PURE__ */ My(Hy, [["__scopeId", "data-v-77afb926"]]), Ky = "16px", qy = { class: "kong-ui-copy-uuid" }, zy = ["onClick"], Jc = 15, Gy = /* @__PURE__ */ _e({
|
|
8883
8883
|
__name: "CopyUuid",
|
|
8884
8884
|
props: {
|
|
8885
8885
|
uuid: {
|
|
@@ -9466,7 +9466,7 @@ function kg(e) {
|
|
|
9466
9466
|
isTruncated: M(() => t.value < r.value)
|
|
9467
9467
|
};
|
|
9468
9468
|
}
|
|
9469
|
-
const
|
|
9469
|
+
const Le = {
|
|
9470
9470
|
useAxios: dl,
|
|
9471
9471
|
useDebouncedFilter: cg,
|
|
9472
9472
|
useDeleteUrlBuilder: ug,
|
|
@@ -9493,7 +9493,7 @@ const He = {
|
|
|
9493
9493
|
for (const [i, n] of t)
|
|
9494
9494
|
r[i] = n;
|
|
9495
9495
|
return r;
|
|
9496
|
-
}, Bg = (e) => (wa("data-v-
|
|
9496
|
+
}, Bg = (e) => (wa("data-v-77afb926"), e = e(), ka(), e), Eg = ["aria-hidden"], _g = {
|
|
9497
9497
|
key: 0,
|
|
9498
9498
|
"data-testid": "kui-icon-svg-title"
|
|
9499
9499
|
}, Ng = /* @__PURE__ */ Bg(() => /* @__PURE__ */ se("path", {
|
|
@@ -9592,7 +9592,7 @@ const He = {
|
|
|
9592
9592
|
_: 1
|
|
9593
9593
|
}, 8, ["aria-hidden", "style"]));
|
|
9594
9594
|
}
|
|
9595
|
-
}), Tg = /* @__PURE__ */ Ig(Og, [["__scopeId", "data-v-
|
|
9595
|
+
}), Tg = /* @__PURE__ */ Ig(Og, [["__scopeId", "data-v-77afb926"]]), jg = "16px", Vg = { class: "kong-ui-copy-uuid" }, $g = ["onClick"], iu = 15, Pg = /* @__PURE__ */ _e({
|
|
9596
9596
|
__name: "CopyUuid",
|
|
9597
9597
|
props: {
|
|
9598
9598
|
uuid: {
|
|
@@ -9737,7 +9737,7 @@ const He = {
|
|
|
9737
9737
|
}
|
|
9738
9738
|
},
|
|
9739
9739
|
setup(e) {
|
|
9740
|
-
const t = e, { i18n: { t: r } } =
|
|
9740
|
+
const t = e, { i18n: { t: r } } = Le.useI18n(), { convertKeyToTitle: i } = Le.useStringHelpers(), n = M(() => t.item.key ?? "json-array-item"), o = M(() => t.item.value ?? t.item), s = M(() => {
|
|
9741
9741
|
const l = JSON.parse(JSON.stringify(o.value));
|
|
9742
9742
|
return t.isArrayItem && delete l.name, l;
|
|
9743
9743
|
}), a = M(() => {
|
|
@@ -9751,7 +9751,7 @@ const He = {
|
|
|
9751
9751
|
e.isArrayItem ? (B(), R("legend", Rg, [
|
|
9752
9752
|
se("b", null, P(a.value), 1)
|
|
9753
9753
|
])) : he("", !0),
|
|
9754
|
-
(B(!0), R(
|
|
9754
|
+
(B(!0), R(Fe, null, Ue(Object.keys(s.value), (f, h) => (B(), ie(Yi, {
|
|
9755
9755
|
key: `${n.value}-property-${h}`,
|
|
9756
9756
|
item: {
|
|
9757
9757
|
key: f,
|
|
@@ -9778,7 +9778,7 @@ const He = {
|
|
|
9778
9778
|
},
|
|
9779
9779
|
emits: ["navigation-click"],
|
|
9780
9780
|
setup(e) {
|
|
9781
|
-
const { i18n: { t } } =
|
|
9781
|
+
const { i18n: { t } } = Le.useI18n();
|
|
9782
9782
|
return (r, i) => {
|
|
9783
9783
|
const n = te("KButton");
|
|
9784
9784
|
return B(), R("div", null, [
|
|
@@ -9804,7 +9804,7 @@ const He = {
|
|
|
9804
9804
|
}
|
|
9805
9805
|
},
|
|
9806
9806
|
setup(e) {
|
|
9807
|
-
const { i18n: { t } } =
|
|
9807
|
+
const { i18n: { t } } = Le.useI18n();
|
|
9808
9808
|
return (r, i) => {
|
|
9809
9809
|
const n = te("KBadge");
|
|
9810
9810
|
return B(), ie(n, {
|
|
@@ -9847,7 +9847,7 @@ const He = {
|
|
|
9847
9847
|
"1957f153": l.value && s.value ? "100%" : r.slim ? "50%" : "25%",
|
|
9848
9848
|
"195a372e": l.value && s.value ? "100%" : r.slim ? "50%" : "75%"
|
|
9849
9849
|
}));
|
|
9850
|
-
const i = Rn(), { i18n: { t: n, formatUnixTimeStamp: o } } =
|
|
9850
|
+
const i = Rn(), { i18n: { t: n, formatUnixTimeStamp: o } } = Le.useI18n(), s = M(() => r.item.value !== void 0 && r.item.value !== null && r.item.value !== ""), a = M(() => !!(r.item.tooltip || i["label-tooltip"])), l = M(() => r.item.type === me.Json || r.item.type === me.JsonArray), u = M(() => r.item.type === me.JsonArray), f = M(() => {
|
|
9851
9851
|
switch (r.item.type) {
|
|
9852
9852
|
case me.ID:
|
|
9853
9853
|
return {
|
|
@@ -9973,7 +9973,7 @@ const He = {
|
|
|
9973
9973
|
text: r.item.value
|
|
9974
9974
|
};
|
|
9975
9975
|
}
|
|
9976
|
-
}), h = Q(), { isTruncated: I } =
|
|
9976
|
+
}), h = Q(), { isTruncated: I } = Le.useTruncationDetector(h);
|
|
9977
9977
|
return (k, p) => {
|
|
9978
9978
|
const y = te("KLabel"), g = te("KBadge"), b = te("KMethodBadge"), v = te("KTooltip");
|
|
9979
9979
|
return B(), R("div", Wg, [
|
|
@@ -10018,7 +10018,7 @@ const He = {
|
|
|
10018
10018
|
key: 0,
|
|
10019
10019
|
"data-testid": `${e.item.key}-badge-tags`
|
|
10020
10020
|
}, [
|
|
10021
|
-
(B(!0), R(
|
|
10021
|
+
(B(!0), R(Fe, null, Ue(e.item.value, (m, C) => (B(), ie(g, {
|
|
10022
10022
|
key: `${e.item.key}-badge-tag-${C}`,
|
|
10023
10023
|
class: "config-badge",
|
|
10024
10024
|
"data-testid": `${e.item.key}-badge-tag-${C}`,
|
|
@@ -10035,7 +10035,7 @@ const He = {
|
|
|
10035
10035
|
class: "copy-uuid-array",
|
|
10036
10036
|
"data-testid": `${e.item.key}-copy-uuid-array`
|
|
10037
10037
|
}, [
|
|
10038
|
-
(B(!0), R(
|
|
10038
|
+
(B(!0), R(Fe, null, Ue(e.item.value, (m, C) => (B(), ie(A(Sf), gi(f.value.childAttrs, {
|
|
10039
10039
|
key: `${e.item.key}-copy-uuid-${C}`,
|
|
10040
10040
|
"data-testid": `${e.item.key}-copy-uuid-${C}`,
|
|
10041
10041
|
uuid: m
|
|
@@ -10045,7 +10045,7 @@ const He = {
|
|
|
10045
10045
|
class: "method-badge-array",
|
|
10046
10046
|
"data-testid": `${e.item.key}-badge-methods`
|
|
10047
10047
|
}, [
|
|
10048
|
-
(B(!0), R(
|
|
10048
|
+
(B(!0), R(Fe, null, Ue(e.item.value, (m, C) => (B(), ie(b, {
|
|
10049
10049
|
key: `${e.item.key}-badge-method-${C}`,
|
|
10050
10050
|
class: "config-badge",
|
|
10051
10051
|
"data-testid": `${e.item.key}-badge-method-${C}`,
|
|
@@ -10063,7 +10063,7 @@ const He = {
|
|
|
10063
10063
|
key: 3,
|
|
10064
10064
|
"data-testid": `${r.item.key}-json-array-content`
|
|
10065
10065
|
}, [
|
|
10066
|
-
(B(!0), R(
|
|
10066
|
+
(B(!0), R(Fe, null, Ue(e.item.value, (m, C) => (B(), ie(Cf, {
|
|
10067
10067
|
key: `json-array-item-${C}`,
|
|
10068
10068
|
index: C,
|
|
10069
10069
|
"is-array-item": "",
|
|
@@ -10121,7 +10121,7 @@ function cv(e, t) {
|
|
|
10121
10121
|
function uv(e) {
|
|
10122
10122
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
10123
10123
|
}
|
|
10124
|
-
var dv = xf, fv = sv, pv = av, hv = cv, yv = uv, gv = lv,
|
|
10124
|
+
var dv = xf, fv = sv, pv = av, hv = cv, yv = uv, gv = lv, Re = {
|
|
10125
10125
|
isNothing: dv,
|
|
10126
10126
|
isObject: fv,
|
|
10127
10127
|
toArray: pv,
|
|
@@ -10153,7 +10153,7 @@ function Wo(e, t, r, i, n) {
|
|
|
10153
10153
|
};
|
|
10154
10154
|
}
|
|
10155
10155
|
function Jo(e, t) {
|
|
10156
|
-
return
|
|
10156
|
+
return Re.repeat(" ", t - e.length) + e;
|
|
10157
10157
|
}
|
|
10158
10158
|
function vv(e, t) {
|
|
10159
10159
|
if (t = Object.create(t || null), !e.buffer)
|
|
@@ -10170,10 +10170,10 @@ function vv(e, t) {
|
|
|
10170
10170
|
n[s - l],
|
|
10171
10171
|
e.position - (i[s] - i[s - l]),
|
|
10172
10172
|
h
|
|
10173
|
-
), a =
|
|
10173
|
+
), a = Re.repeat(" ", t.indent) + Jo((e.line - l + 1).toString(), f) + " | " + u.str + `
|
|
10174
10174
|
` + a;
|
|
10175
|
-
for (u = Wo(e.buffer, i[s], n[s], e.position, h), a +=
|
|
10176
|
-
`, a +=
|
|
10175
|
+
for (u = Wo(e.buffer, i[s], n[s], e.position, h), a += Re.repeat(" ", t.indent) + Jo((e.line + 1).toString(), f) + " | " + u.str + `
|
|
10176
|
+
`, a += Re.repeat("-", t.indent + f + 3 + u.pos) + `^
|
|
10177
10177
|
`, l = 1; l <= t.linesAfter && !(s + l >= n.length); l++)
|
|
10178
10178
|
u = Wo(
|
|
10179
10179
|
e.buffer,
|
|
@@ -10181,7 +10181,7 @@ function vv(e, t) {
|
|
|
10181
10181
|
n[s + l],
|
|
10182
10182
|
e.position - (i[s] - i[s + l]),
|
|
10183
10183
|
h
|
|
10184
|
-
), a +=
|
|
10184
|
+
), a += Re.repeat(" ", t.indent) + Jo((e.line + l + 1).toString(), f) + " | " + u.str + `
|
|
10185
10185
|
`;
|
|
10186
10186
|
return a.replace(/\n$/, "");
|
|
10187
10187
|
}
|
|
@@ -10220,7 +10220,7 @@ function Av(e, t) {
|
|
|
10220
10220
|
}, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases = kv(t.styleAliases || null), wv.indexOf(this.kind) === -1)
|
|
10221
10221
|
throw new Ze('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
|
|
10222
10222
|
}
|
|
10223
|
-
var
|
|
10223
|
+
var Ke = Av;
|
|
10224
10224
|
function nu(e, t) {
|
|
10225
10225
|
var r = [];
|
|
10226
10226
|
return e[t].forEach(function(i) {
|
|
@@ -10255,7 +10255,7 @@ function ha(e) {
|
|
|
10255
10255
|
}
|
|
10256
10256
|
ha.prototype.extend = function(e) {
|
|
10257
10257
|
var t = [], r = [];
|
|
10258
|
-
if (e instanceof
|
|
10258
|
+
if (e instanceof Ke)
|
|
10259
10259
|
r.push(e);
|
|
10260
10260
|
else if (Array.isArray(e))
|
|
10261
10261
|
r = r.concat(e);
|
|
@@ -10264,30 +10264,30 @@ ha.prototype.extend = function(e) {
|
|
|
10264
10264
|
else
|
|
10265
10265
|
throw new Ze("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
|
|
10266
10266
|
t.forEach(function(n) {
|
|
10267
|
-
if (!(n instanceof
|
|
10267
|
+
if (!(n instanceof Ke))
|
|
10268
10268
|
throw new Ze("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
10269
10269
|
if (n.loadKind && n.loadKind !== "scalar")
|
|
10270
10270
|
throw new Ze("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
|
|
10271
10271
|
if (n.multi)
|
|
10272
10272
|
throw new Ze("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
|
|
10273
10273
|
}), r.forEach(function(n) {
|
|
10274
|
-
if (!(n instanceof
|
|
10274
|
+
if (!(n instanceof Ke))
|
|
10275
10275
|
throw new Ze("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
10276
10276
|
});
|
|
10277
10277
|
var i = Object.create(ha.prototype);
|
|
10278
10278
|
return i.implicit = (this.implicit || []).concat(t), i.explicit = (this.explicit || []).concat(r), i.compiledImplicit = nu(i, "implicit"), i.compiledExplicit = nu(i, "explicit"), i.compiledTypeMap = Sv(i.compiledImplicit, i.compiledExplicit), i;
|
|
10279
10279
|
};
|
|
10280
|
-
var Bf = ha, Ef = new
|
|
10280
|
+
var Bf = ha, Ef = new Ke("tag:yaml.org,2002:str", {
|
|
10281
10281
|
kind: "scalar",
|
|
10282
10282
|
construct: function(e) {
|
|
10283
10283
|
return e !== null ? e : "";
|
|
10284
10284
|
}
|
|
10285
|
-
}), _f = new
|
|
10285
|
+
}), _f = new Ke("tag:yaml.org,2002:seq", {
|
|
10286
10286
|
kind: "sequence",
|
|
10287
10287
|
construct: function(e) {
|
|
10288
10288
|
return e !== null ? e : [];
|
|
10289
10289
|
}
|
|
10290
|
-
}), Nf = new
|
|
10290
|
+
}), Nf = new Ke("tag:yaml.org,2002:map", {
|
|
10291
10291
|
kind: "mapping",
|
|
10292
10292
|
construct: function(e) {
|
|
10293
10293
|
return e !== null ? e : {};
|
|
@@ -10311,7 +10311,7 @@ function xv() {
|
|
|
10311
10311
|
function Iv(e) {
|
|
10312
10312
|
return e === null;
|
|
10313
10313
|
}
|
|
10314
|
-
var Tf = new
|
|
10314
|
+
var Tf = new Ke("tag:yaml.org,2002:null", {
|
|
10315
10315
|
kind: "scalar",
|
|
10316
10316
|
resolve: Cv,
|
|
10317
10317
|
construct: xv,
|
|
@@ -10347,7 +10347,7 @@ function Ev(e) {
|
|
|
10347
10347
|
function _v(e) {
|
|
10348
10348
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
10349
10349
|
}
|
|
10350
|
-
var jf = new
|
|
10350
|
+
var jf = new Ke("tag:yaml.org,2002:bool", {
|
|
10351
10351
|
kind: "scalar",
|
|
10352
10352
|
resolve: Bv,
|
|
10353
10353
|
construct: Ev,
|
|
@@ -10436,9 +10436,9 @@ function Vv(e) {
|
|
|
10436
10436
|
return r * parseInt(t, 10);
|
|
10437
10437
|
}
|
|
10438
10438
|
function $v(e) {
|
|
10439
|
-
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !
|
|
10439
|
+
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !Re.isNegativeZero(e);
|
|
10440
10440
|
}
|
|
10441
|
-
var Vf = new
|
|
10441
|
+
var Vf = new Ke("tag:yaml.org,2002:int", {
|
|
10442
10442
|
kind: "scalar",
|
|
10443
10443
|
resolve: jv,
|
|
10444
10444
|
construct: Vv,
|
|
@@ -10508,14 +10508,14 @@ function Uv(e, t) {
|
|
|
10508
10508
|
case "camelcase":
|
|
10509
10509
|
return "-.Inf";
|
|
10510
10510
|
}
|
|
10511
|
-
else if (
|
|
10511
|
+
else if (Re.isNegativeZero(e))
|
|
10512
10512
|
return "-0.0";
|
|
10513
10513
|
return r = e.toString(10), Dv.test(r) ? r.replace("e", ".e") : r;
|
|
10514
10514
|
}
|
|
10515
10515
|
function Lv(e) {
|
|
10516
|
-
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 ||
|
|
10516
|
+
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || Re.isNegativeZero(e));
|
|
10517
10517
|
}
|
|
10518
|
-
var $f = new
|
|
10518
|
+
var $f = new Ke("tag:yaml.org,2002:float", {
|
|
10519
10519
|
kind: "scalar",
|
|
10520
10520
|
resolve: Mv,
|
|
10521
10521
|
construct: Rv,
|
|
@@ -10553,7 +10553,7 @@ function Fv(e) {
|
|
|
10553
10553
|
function Kv(e) {
|
|
10554
10554
|
return e.toISOString();
|
|
10555
10555
|
}
|
|
10556
|
-
var Uf = new
|
|
10556
|
+
var Uf = new Ke("tag:yaml.org,2002:timestamp", {
|
|
10557
10557
|
kind: "scalar",
|
|
10558
10558
|
resolve: Hv,
|
|
10559
10559
|
construct: Fv,
|
|
@@ -10563,7 +10563,7 @@ var Uf = new qe("tag:yaml.org,2002:timestamp", {
|
|
|
10563
10563
|
function qv(e) {
|
|
10564
10564
|
return e === "<<" || e === null;
|
|
10565
10565
|
}
|
|
10566
|
-
var Lf = new
|
|
10566
|
+
var Lf = new Ke("tag:yaml.org,2002:merge", {
|
|
10567
10567
|
kind: "scalar",
|
|
10568
10568
|
resolve: qv
|
|
10569
10569
|
}), pl = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
@@ -10595,7 +10595,7 @@ function Wv(e) {
|
|
|
10595
10595
|
function Jv(e) {
|
|
10596
10596
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
10597
10597
|
}
|
|
10598
|
-
var Hf = new
|
|
10598
|
+
var Hf = new Ke("tag:yaml.org,2002:binary", {
|
|
10599
10599
|
kind: "scalar",
|
|
10600
10600
|
resolve: zv,
|
|
10601
10601
|
construct: Gv,
|
|
@@ -10627,7 +10627,7 @@ function Qv(e) {
|
|
|
10627
10627
|
function Xv(e) {
|
|
10628
10628
|
return e !== null ? e : [];
|
|
10629
10629
|
}
|
|
10630
|
-
var Ff = new
|
|
10630
|
+
var Ff = new Ke("tag:yaml.org,2002:omap", {
|
|
10631
10631
|
kind: "sequence",
|
|
10632
10632
|
resolve: Qv,
|
|
10633
10633
|
construct: Xv
|
|
@@ -10651,7 +10651,7 @@ function rm(e) {
|
|
|
10651
10651
|
i = s[t], n = Object.keys(i), o[t] = [n[0], i[n[0]]];
|
|
10652
10652
|
return o;
|
|
10653
10653
|
}
|
|
10654
|
-
var Kf = new
|
|
10654
|
+
var Kf = new Ke("tag:yaml.org,2002:pairs", {
|
|
10655
10655
|
kind: "sequence",
|
|
10656
10656
|
resolve: tm,
|
|
10657
10657
|
construct: rm
|
|
@@ -10668,7 +10668,7 @@ function nm(e) {
|
|
|
10668
10668
|
function om(e) {
|
|
10669
10669
|
return e !== null ? e : {};
|
|
10670
10670
|
}
|
|
10671
|
-
var qf = new
|
|
10671
|
+
var qf = new Ke("tag:yaml.org,2002:set", {
|
|
10672
10672
|
kind: "mapping",
|
|
10673
10673
|
resolve: nm,
|
|
10674
10674
|
construct: om
|
|
@@ -10771,7 +10771,7 @@ function tr(e, t, r, i) {
|
|
|
10771
10771
|
}
|
|
10772
10772
|
function cu(e, t, r, i) {
|
|
10773
10773
|
var n, o, s, a;
|
|
10774
|
-
for (
|
|
10774
|
+
for (Re.isObject(r) || X(e, "cannot merge mappings; the provided source object is unacceptable"), n = Object.keys(r), s = 0, a = n.length; s < a; s += 1)
|
|
10775
10775
|
o = n[s], nr.call(t, o) || (t[o] = r[o], i[o] = !0);
|
|
10776
10776
|
}
|
|
10777
10777
|
function Tr(e, t, r, i, n, o, s, a, l) {
|
|
@@ -10819,7 +10819,7 @@ function jo(e) {
|
|
|
10819
10819
|
return r = e.input.charCodeAt(t), !!((r === 45 || r === 46) && r === e.input.charCodeAt(t + 1) && r === e.input.charCodeAt(t + 2) && (t += 3, r = e.input.charCodeAt(t), r === 0 || rt(r)));
|
|
10820
10820
|
}
|
|
10821
10821
|
function gl(e, t) {
|
|
10822
|
-
t === 1 ? e.result += " " : t > 1 && (e.result +=
|
|
10822
|
+
t === 1 ? e.result += " " : t > 1 && (e.result += Re.repeat(`
|
|
10823
10823
|
`, t - 1));
|
|
10824
10824
|
}
|
|
10825
10825
|
function ym(e, t, r) {
|
|
@@ -10934,15 +10934,15 @@ function bm(e, t) {
|
|
|
10934
10934
|
continue;
|
|
10935
10935
|
}
|
|
10936
10936
|
if (e.lineIndent < a) {
|
|
10937
|
-
n === ou ? e.result +=
|
|
10937
|
+
n === ou ? e.result += Re.repeat(`
|
|
10938
10938
|
`, o ? 1 + l : l) : n === Yo && o && (e.result += `
|
|
10939
10939
|
`);
|
|
10940
10940
|
break;
|
|
10941
10941
|
}
|
|
10942
|
-
for (i ? yr(h) ? (u = !0, e.result +=
|
|
10943
|
-
`, o ? 1 + l : l)) : u ? (u = !1, e.result +=
|
|
10944
|
-
`, l + 1)) : l === 0 ? o && (e.result += " ") : e.result +=
|
|
10945
|
-
`, l) : e.result +=
|
|
10942
|
+
for (i ? yr(h) ? (u = !0, e.result += Re.repeat(`
|
|
10943
|
+
`, o ? 1 + l : l)) : u ? (u = !1, e.result += Re.repeat(`
|
|
10944
|
+
`, l + 1)) : l === 0 ? o && (e.result += " ") : e.result += Re.repeat(`
|
|
10945
|
+
`, l) : e.result += Re.repeat(`
|
|
10946
10946
|
`, o ? 1 + l : l), o = !0, s = !0, l = 0, r = e.position; !Ct(h) && h !== 0; )
|
|
10947
10947
|
h = e.input.charCodeAt(++e.position);
|
|
10948
10948
|
tr(e, r, e.position, !1);
|
|
@@ -11172,14 +11172,14 @@ function Wm(e) {
|
|
|
11172
11172
|
r = "U", i = 8;
|
|
11173
11173
|
else
|
|
11174
11174
|
throw new Ze("code point within a string may not be greater than 0xFFFFFFFF");
|
|
11175
|
-
return "\\" + r +
|
|
11175
|
+
return "\\" + r + Re.repeat("0", i - t.length) + t;
|
|
11176
11176
|
}
|
|
11177
11177
|
var Jm = 1, Ti = 2;
|
|
11178
11178
|
function Ym(e) {
|
|
11179
|
-
this.schema = e.schema || hl, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel =
|
|
11179
|
+
this.schema = e.schema || hl, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = Re.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = Gm(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === '"' ? Ti : Jm, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
|
|
11180
11180
|
}
|
|
11181
11181
|
function du(e, t) {
|
|
11182
|
-
for (var r =
|
|
11182
|
+
for (var r = Re.repeat(" ", t), i = 0, n = -1, o = "", s, a = e.length; i < a; )
|
|
11183
11183
|
n = e.indexOf(`
|
|
11184
11184
|
`, i), n === -1 ? (s = e.slice(i), i = a) : (s = e.slice(i, n + 1), i = n + 1), s.length && s !== `
|
|
11185
11185
|
` && (o += r), o += s;
|
|
@@ -11187,7 +11187,7 @@ function du(e, t) {
|
|
|
11187
11187
|
}
|
|
11188
11188
|
function ga(e, t) {
|
|
11189
11189
|
return `
|
|
11190
|
-
` +
|
|
11190
|
+
` + Re.repeat(" ", e.indent * t);
|
|
11191
11191
|
}
|
|
11192
11192
|
function Zm(e, t) {
|
|
11193
11193
|
var r, i, n;
|
|
@@ -11432,7 +11432,7 @@ function ml(e, t) {
|
|
|
11432
11432
|
throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
|
|
11433
11433
|
};
|
|
11434
11434
|
}
|
|
11435
|
-
var d0 =
|
|
11435
|
+
var d0 = Ke, f0 = Bf, p0 = Of, h0 = Pf, y0 = Mf, g0 = hl, v0 = ep.load, m0 = ep.loadAll, b0 = u0.dump, w0 = Ze, k0 = {
|
|
11436
11436
|
binary: Hf,
|
|
11437
11437
|
float: $f,
|
|
11438
11438
|
map: Nf,
|
|
@@ -11500,7 +11500,7 @@ const I0 = {
|
|
|
11500
11500
|
}
|
|
11501
11501
|
},
|
|
11502
11502
|
setup(e) {
|
|
11503
|
-
const t = e, r = Rn(), { i18n: { t: i } } =
|
|
11503
|
+
const t = e, r = Rn(), { i18n: { t: i } } = Le.useI18n(), n = (a) => !!(a.tooltip || r[`${a.key}-label-tooltip`]), o = Q(""), s = Q("");
|
|
11504
11504
|
return Ft(() => t.format, (a) => {
|
|
11505
11505
|
if (a !== "structured") {
|
|
11506
11506
|
const l = JSON.parse(JSON.stringify(t.record));
|
|
@@ -11508,15 +11508,15 @@ const I0 = {
|
|
|
11508
11508
|
}
|
|
11509
11509
|
}, { immediate: !0 }), (a, l) => {
|
|
11510
11510
|
const u = te("KCodeBlock");
|
|
11511
|
-
return B(), R(
|
|
11511
|
+
return B(), R(Fe, null, [
|
|
11512
11512
|
e.format === "structured" ? (B(), R("div", I0, [
|
|
11513
|
-
(B(!0), R(
|
|
11513
|
+
(B(!0), R(Fe, null, Ue(e.propListTypes, (f) => (B(), R("div", {
|
|
11514
11514
|
key: `config-card-details-${f}-props`,
|
|
11515
11515
|
class: rr(`config-card-details-${f}-props`),
|
|
11516
11516
|
"data-testid": `config-card-details-${f}-props`
|
|
11517
11517
|
}, [
|
|
11518
11518
|
f !== "basic" ? (B(), R("div", E0, P(f === "advanced" ? A(i)("baseConfigCard.sections.advanced") : A(i)("baseConfigCard.sections.plugin")), 1)) : he("", !0),
|
|
11519
|
-
(B(!0), R(
|
|
11519
|
+
(B(!0), R(Fe, null, Ue(e.propertyCollections[f], (h) => (B(), ie(Yi, {
|
|
11520
11520
|
key: h.key,
|
|
11521
11521
|
item: h
|
|
11522
11522
|
}, Zt({
|
|
@@ -11565,7 +11565,7 @@ const I0 = {
|
|
|
11565
11565
|
for (const [i, n] of t)
|
|
11566
11566
|
r[i] = n;
|
|
11567
11567
|
return r;
|
|
11568
|
-
}, V0 = (e) => (wa("data-v-
|
|
11568
|
+
}, V0 = (e) => (wa("data-v-4c9d405a"), e = e(), ka(), e), $0 = ["aria-hidden"], P0 = {
|
|
11569
11569
|
key: 0,
|
|
11570
11570
|
"data-testid": "kui-icon-svg-title"
|
|
11571
11571
|
}, M0 = /* @__PURE__ */ V0(() => /* @__PURE__ */ se("path", {
|
|
@@ -11664,7 +11664,7 @@ const I0 = {
|
|
|
11664
11664
|
_: 1
|
|
11665
11665
|
}, 8, ["aria-hidden", "style"]));
|
|
11666
11666
|
}
|
|
11667
|
-
}), D0 = /* @__PURE__ */ j0(R0, [["__scopeId", "data-v-
|
|
11667
|
+
}), D0 = /* @__PURE__ */ j0(R0, [["__scopeId", "data-v-4c9d405a"]]), U0 = { "data-testid": "config-card-title" }, L0 = { class: "config-card-actions" }, H0 = ["href"], F0 = {
|
|
11668
11668
|
key: 2,
|
|
11669
11669
|
class: "config-card-details-section"
|
|
11670
11670
|
}, K0 = {
|
|
@@ -11748,7 +11748,7 @@ const I0 = {
|
|
|
11748
11748
|
emits: ["loading", "fetch:success", "fetch:error", "copy:success", "copy:error"],
|
|
11749
11749
|
setup(e, { emit: t }) {
|
|
11750
11750
|
var r;
|
|
11751
|
-
const i = e, n = Rn(), { i18n: { t: o } } =
|
|
11751
|
+
const i = e, n = Rn(), { i18n: { t: o } } = Le.useI18n(), { getMessageFromError: s } = Le.useErrors(), { convertKeyToTitle: a } = Le.useStringHelpers(), { axiosInstance: l } = Le.useAxios({
|
|
11752
11752
|
headers: (r = i.config) == null ? void 0 : r.requestHeaders
|
|
11753
11753
|
}), u = [
|
|
11754
11754
|
{
|
|
@@ -11970,7 +11970,7 @@ const I0 = {
|
|
|
11970
11970
|
"property-collections": m.value,
|
|
11971
11971
|
record: g.value
|
|
11972
11972
|
}, Zt({ _: 2 }, [
|
|
11973
|
-
|
|
11973
|
+
Ue(Object.keys(N.$slots), (Ae) => ({
|
|
11974
11974
|
name: Ae,
|
|
11975
11975
|
fn: x(({ row: Ce, rowValue: Ve }) => [
|
|
11976
11976
|
Ee(N.$slots, Ae, {
|
|
@@ -11981,13 +11981,13 @@ const I0 = {
|
|
|
11981
11981
|
}))
|
|
11982
11982
|
]), 1032, ["format", "prop-list-types", "property-collections", "record"])
|
|
11983
11983
|
])) : (B(), R("div", K0, [
|
|
11984
|
-
(B(!0), R(
|
|
11984
|
+
(B(!0), R(Fe, null, Ue(C.value, (Ae) => (B(), R("div", {
|
|
11985
11985
|
key: `config-card-details-${Ae}-props`,
|
|
11986
11986
|
class: rr(`config-card-details-${Ae}-props`),
|
|
11987
11987
|
"data-testid": `config-card-details-${Ae}-props`
|
|
11988
11988
|
}, [
|
|
11989
11989
|
Ae !== "basic" ? (B(), R("div", z0, P(Ae === "advanced" ? A(o)("baseConfigCard.sections.advanced") : A(o)("baseConfigCard.sections.plugin")), 1)) : he("", !0),
|
|
11990
|
-
(B(!0), R(
|
|
11990
|
+
(B(!0), R(Fe, null, Ue(m.value[Ae], (Ce) => (B(), ie(Yi, {
|
|
11991
11991
|
key: Ce.key,
|
|
11992
11992
|
item: Ce
|
|
11993
11993
|
}, Zt({
|
|
@@ -12082,7 +12082,7 @@ const I0 = {
|
|
|
12082
12082
|
emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel"],
|
|
12083
12083
|
setup(e, { emit: t }) {
|
|
12084
12084
|
var r;
|
|
12085
|
-
const i = e, n = Vi(), { i18n: { t: o } } =
|
|
12085
|
+
const i = e, n = Vi(), { i18n: { t: o } } = Le.useI18n(), { getMessageFromError: s } = Le.useErrors(), { axiosInstance: a } = Le.useAxios({
|
|
12086
12086
|
headers: (r = i.config) == null ? void 0 : r.requestHeaders
|
|
12087
12087
|
}), l = Q(!1), u = Q(!1), f = Q(""), h = M(() => i.canSubmit === !1 || i.isReadonly), I = M(() => {
|
|
12088
12088
|
var g, b;
|
|
@@ -12361,7 +12361,7 @@ const I0 = {
|
|
|
12361
12361
|
},
|
|
12362
12362
|
emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
|
|
12363
12363
|
setup(e, { emit: t }) {
|
|
12364
|
-
const r = e, { i18n: { t: i } } =
|
|
12364
|
+
const r = e, { i18n: { t: i } } = Le.useI18n(), n = M(() => {
|
|
12365
12365
|
var C, W;
|
|
12366
12366
|
return typeof r.errorMessage == "string" ? {
|
|
12367
12367
|
hasError: !!r.errorMessage,
|
|
@@ -12506,7 +12506,7 @@ const I0 = {
|
|
|
12506
12506
|
]),
|
|
12507
12507
|
_: 2
|
|
12508
12508
|
}, [
|
|
12509
|
-
|
|
12509
|
+
Ue(e.tableHeaders, (z, H) => ({
|
|
12510
12510
|
name: H,
|
|
12511
12511
|
fn: x(({ row: D, rowKey: fe, rowValue: ke }) => [
|
|
12512
12512
|
V(X0, {
|
|
@@ -12577,7 +12577,7 @@ const I0 = {
|
|
|
12577
12577
|
},
|
|
12578
12578
|
emits: ["cancel", "proceed"],
|
|
12579
12579
|
setup(e, { emit: t }) {
|
|
12580
|
-
const r = e, { i18nT: i } =
|
|
12580
|
+
const r = e, { i18nT: i } = Le.useI18n(), n = M(() => r.needConfirm ? r.entityName : ""), o = () => {
|
|
12581
12581
|
t("cancel");
|
|
12582
12582
|
}, s = () => {
|
|
12583
12583
|
t("proceed");
|
|
@@ -12694,7 +12694,7 @@ const I0 = {
|
|
|
12694
12694
|
},
|
|
12695
12695
|
emits: ["update:modelValue"],
|
|
12696
12696
|
setup(e, { emit: t }) {
|
|
12697
|
-
const r = e, { i18n: { t: i } } =
|
|
12697
|
+
const r = e, { i18n: { t: i } } = Le.useI18n(), n = Q(!1), o = Q({}), s = M(() => {
|
|
12698
12698
|
const g = [];
|
|
12699
12699
|
return new URLSearchParams(r.modelValue).forEach((b, v) => {
|
|
12700
12700
|
b !== "" && g.push(v);
|
|
@@ -12770,7 +12770,7 @@ const I0 = {
|
|
|
12770
12770
|
]),
|
|
12771
12771
|
jr(V(ae, { class: "kong-ui-entity-filter-menu" }, {
|
|
12772
12772
|
body: x(() => [
|
|
12773
|
-
(B(!0), R(
|
|
12773
|
+
(B(!0), R(Fe, null, Ue(a.value, (_, N) => (B(), ie(W, {
|
|
12774
12774
|
key: _.value,
|
|
12775
12775
|
"data-testid": _.value,
|
|
12776
12776
|
expandable: "",
|
|
@@ -12949,7 +12949,7 @@ const I0 = {
|
|
|
12949
12949
|
])
|
|
12950
12950
|
], 2));
|
|
12951
12951
|
}
|
|
12952
|
-
}), Mn = /* @__PURE__ */ kt(x1, [["__scopeId", "data-v-8b6dc312"]]), { useAxios: Vo, useDeleteUrlBuilder: vp, useErrors: mp, useExternalLinkCreator: Jw, useFetchUrlBuilder: Yw, useFetcher: bp, useDebouncedFilter: Zw, useStringHelpers: wp, useHelpers: kp, useGatewayFeatureSupported: Qw, useTruncationDetector: Xw } =
|
|
12952
|
+
}), Mn = /* @__PURE__ */ kt(x1, [["__scopeId", "data-v-8b6dc312"]]), { useAxios: Vo, useDeleteUrlBuilder: vp, useErrors: mp, useExternalLinkCreator: Jw, useFetchUrlBuilder: Yw, useFetcher: bp, useDebouncedFilter: Zw, useStringHelpers: wp, useHelpers: kp, useGatewayFeatureSupported: Qw, useTruncationDetector: Xw } = Le;
|
|
12953
12953
|
const I1 = { class: "kong-ui-entities-certificates-list" }, B1 = { key: 0 }, E1 = { key: 1 }, _1 = { key: 0 }, N1 = { key: 1 }, O1 = { key: 0 }, T1 = { key: 1 }, j1 = { key: 1 }, V1 = { key: 1 }, $1 = /* @__PURE__ */ _e({
|
|
12954
12954
|
__name: "CertificateList",
|
|
12955
12955
|
props: {
|
|
@@ -13091,39 +13091,39 @@ const I1 = { class: "kong-ui-entities-certificates-list" }, B1 = { key: 0 }, E1
|
|
|
13091
13091
|
D.value = !0;
|
|
13092
13092
|
try {
|
|
13093
13093
|
await a.delete(ke(z.value.id)), D.value = !1, H.value = !1, l.value++, t("delete:success", z.value);
|
|
13094
|
-
} catch (
|
|
13095
|
-
fe.value = ((Be = (pe =
|
|
13094
|
+
} catch (Ge) {
|
|
13095
|
+
fe.value = ((Be = (pe = Ge.response) == null ? void 0 : pe.data) == null ? void 0 : Be.message) || Ge.message || i("certificates.errors.delete"), t("error", Ge);
|
|
13096
13096
|
} finally {
|
|
13097
13097
|
D.value = !1;
|
|
13098
13098
|
}
|
|
13099
13099
|
}
|
|
13100
13100
|
}, xe = Q(!0);
|
|
13101
13101
|
Ft(g, ($) => {
|
|
13102
|
-
var pe, Be,
|
|
13103
|
-
if (((
|
|
13102
|
+
var pe, Be, Ge, Ot;
|
|
13103
|
+
if (Array.isArray((pe = $ == null ? void 0 : $.response) == null ? void 0 : pe.data) && (xe.value = $.response.data.length > 0), $.status === Yt.Error) {
|
|
13104
13104
|
m.value = {
|
|
13105
13105
|
title: i("certificates.errors.general")
|
|
13106
|
-
}, (
|
|
13106
|
+
}, (Ot = (Ge = (Be = $.error) == null ? void 0 : Be.response) == null ? void 0 : Ge.data) != null && Ot.message && (m.value.message = $.error.response.data.message), t("error", $.error);
|
|
13107
13107
|
return;
|
|
13108
13108
|
}
|
|
13109
13109
|
Oe.value = {}, m.value = null;
|
|
13110
13110
|
});
|
|
13111
|
-
const
|
|
13111
|
+
const re = Q({
|
|
13112
13112
|
ctaPath: r.config.createRoute,
|
|
13113
13113
|
ctaText: void 0,
|
|
13114
13114
|
message: i("certificates.list.empty_state.description"),
|
|
13115
13115
|
title: i("certificates.title")
|
|
13116
13116
|
});
|
|
13117
13117
|
return Dn(async () => {
|
|
13118
|
-
await r.canCreate() && (
|
|
13118
|
+
await r.canCreate() && (re.value.title = i("certificates.list.empty_state.title"), re.value.ctaText = i("certificates.actions.create"));
|
|
13119
13119
|
}), ($, pe) => {
|
|
13120
|
-
const Be = te("KButton"),
|
|
13120
|
+
const Be = te("KButton"), Ge = te("KBadge"), Ot = te("KTruncate"), oe = te("KDropdownItem"), Pe = te("KClipboardProvider");
|
|
13121
13121
|
return B(), R("div", I1, [
|
|
13122
13122
|
V(A(hp), {
|
|
13123
13123
|
"cache-identifier": e.cacheIdentifier,
|
|
13124
13124
|
"disable-pagination-page-jump": "",
|
|
13125
13125
|
"disable-sorting": u.value,
|
|
13126
|
-
"empty-state-options":
|
|
13126
|
+
"empty-state-options": re.value,
|
|
13127
13127
|
"enable-entity-actions": "",
|
|
13128
13128
|
"error-message": m.value,
|
|
13129
13129
|
fetcher: A(y),
|
|
@@ -13203,7 +13203,7 @@ const I1 = { class: "kong-ui-entities-certificates-list" }, B1 = { key: 0 }, E1
|
|
|
13203
13203
|
return [
|
|
13204
13204
|
((je = Z == null ? void 0 : Z.tags) == null ? void 0 : je.length) > 0 ? (B(), ie(Ot, { key: 0 }, {
|
|
13205
13205
|
default: x(() => [
|
|
13206
|
-
(B(!0), R(
|
|
13206
|
+
(B(!0), R(Fe, null, Ue(Z == null ? void 0 : Z.tags, (Br) => (B(), ie(Ge, {
|
|
13207
13207
|
key: Br,
|
|
13208
13208
|
onClick: pe[1] || (pe[1] = Pr(() => {
|
|
13209
13209
|
}, ["stop"]))
|
|
@@ -13219,9 +13219,9 @@ const I1 = { class: "kong-ui-entities-certificates-list" }, B1 = { key: 0 }, E1
|
|
|
13219
13219
|
];
|
|
13220
13220
|
}),
|
|
13221
13221
|
actions: x(({ row: Z }) => [
|
|
13222
|
-
V(
|
|
13222
|
+
V(Pe, null, {
|
|
13223
13223
|
default: x(({ copyToClipboard: je }) => [
|
|
13224
|
-
V(
|
|
13224
|
+
V(oe, {
|
|
13225
13225
|
"data-testid": "action-entity-copy-id",
|
|
13226
13226
|
onClick: (Br) => C(Z, je)
|
|
13227
13227
|
}, {
|
|
@@ -13233,9 +13233,9 @@ const I1 = { class: "kong-ui-entities-certificates-list" }, B1 = { key: 0 }, E1
|
|
|
13233
13233
|
]),
|
|
13234
13234
|
_: 2
|
|
13235
13235
|
}, 1024),
|
|
13236
|
-
V(
|
|
13236
|
+
V(Pe, null, {
|
|
13237
13237
|
default: x(({ copyToClipboard: je }) => [
|
|
13238
|
-
V(
|
|
13238
|
+
V(oe, {
|
|
13239
13239
|
"data-testid": "action-entity-copy-json",
|
|
13240
13240
|
onClick: (Br) => W(Z, je)
|
|
13241
13241
|
}, {
|
|
@@ -13251,7 +13251,7 @@ const I1 = { class: "kong-ui-entities-certificates-list" }, B1 = { key: 0 }, E1
|
|
|
13251
13251
|
"auth-function": () => e.canRetrieve(Z)
|
|
13252
13252
|
}, {
|
|
13253
13253
|
default: x(() => [
|
|
13254
|
-
V(
|
|
13254
|
+
V(oe, {
|
|
13255
13255
|
"data-testid": "action-entity-view",
|
|
13256
13256
|
"has-divider": "",
|
|
13257
13257
|
item: N(Z.id)
|
|
@@ -13263,7 +13263,7 @@ const I1 = { class: "kong-ui-entities-certificates-list" }, B1 = { key: 0 }, E1
|
|
|
13263
13263
|
"auth-function": () => e.canEdit(Z)
|
|
13264
13264
|
}, {
|
|
13265
13265
|
default: x(() => [
|
|
13266
|
-
V(
|
|
13266
|
+
V(oe, {
|
|
13267
13267
|
"data-testid": "action-entity-edit",
|
|
13268
13268
|
item: K(Z.id)
|
|
13269
13269
|
}, null, 8, ["item"])
|
|
@@ -13275,7 +13275,7 @@ const I1 = { class: "kong-ui-entities-certificates-list" }, B1 = { key: 0 }, E1
|
|
|
13275
13275
|
"auth-function": () => e.canCreateSni()
|
|
13276
13276
|
}, {
|
|
13277
13277
|
default: x(() => [
|
|
13278
|
-
V(
|
|
13278
|
+
V(oe, {
|
|
13279
13279
|
"data-testid": "action-entity-add-sni",
|
|
13280
13280
|
item: J(Z.id)
|
|
13281
13281
|
}, null, 8, ["item"])
|
|
@@ -13286,7 +13286,7 @@ const I1 = { class: "kong-ui-entities-certificates-list" }, B1 = { key: 0 }, E1
|
|
|
13286
13286
|
"auth-function": () => e.canDelete(Z)
|
|
13287
13287
|
}, {
|
|
13288
13288
|
default: x(() => [
|
|
13289
|
-
V(
|
|
13289
|
+
V(oe, {
|
|
13290
13290
|
danger: "",
|
|
13291
13291
|
"data-testid": "action-entity-delete",
|
|
13292
13292
|
"has-divider": "",
|
|
@@ -13335,7 +13335,7 @@ const li = (e, t) => {
|
|
|
13335
13335
|
for (const [i, n] of t)
|
|
13336
13336
|
r[i] = n;
|
|
13337
13337
|
return r;
|
|
13338
|
-
}, ek = /* @__PURE__ */ li($1, [["__scopeId", "data-v-
|
|
13338
|
+
}, ek = /* @__PURE__ */ li($1, [["__scopeId", "data-v-412e1ee1"]]), P1 = { class: "kong-ui-entities-certificates-form" }, M1 = /* @__PURE__ */ _e({
|
|
13339
13339
|
__name: "CertificateForm",
|
|
13340
13340
|
props: {
|
|
13341
13341
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -13691,7 +13691,7 @@ const tk = /* @__PURE__ */ li(M1, [["__scopeId", "data-v-f66bc18c"]]), yi = {
|
|
|
13691
13691
|
})
|
|
13692
13692
|
]),
|
|
13693
13693
|
metadata: x((_) => [
|
|
13694
|
-
(B(!0), R(
|
|
13694
|
+
(B(!0), R(Fe, null, Ue(Object.keys(A(a)("rowValue", _)).filter((N) => !i.includes(N)), (N) => (B(), ie(A(Yi), {
|
|
13695
13695
|
key: N,
|
|
13696
13696
|
"data-testid": `ca-cert-metadata-${N}`,
|
|
13697
13697
|
item: {
|
|
@@ -13710,7 +13710,7 @@ const tk = /* @__PURE__ */ li(M1, [["__scopeId", "data-v-f66bc18c"]]), yi = {
|
|
|
13710
13710
|
]),
|
|
13711
13711
|
key_usages: x(() => [
|
|
13712
13712
|
p.value.length ? he("", !0) : (B(), R("div", D1, P("–"))),
|
|
13713
|
-
(B(!0), R(
|
|
13713
|
+
(B(!0), R(Fe, null, Ue(p.value, (_, N) => (B(), ie(ae, {
|
|
13714
13714
|
key: `key_usages-badge-tag-${N}`,
|
|
13715
13715
|
class: "config-badge",
|
|
13716
13716
|
"data-testid": `key_usages-badge-tag-${N}`,
|
|
@@ -13783,65 +13783,65 @@ const rk = /* @__PURE__ */ li(U1, [["__scopeId", "data-v-5110105b"]]), L1 = { cl
|
|
|
13783
13783
|
tags: { label: i("ca-certificates.list.table_headers.tags"), sortable: !0 }
|
|
13784
13784
|
}, I = M(() => {
|
|
13785
13785
|
var Ie, $;
|
|
13786
|
-
let
|
|
13787
|
-
return r.config.app === "konnect" ?
|
|
13786
|
+
let re = `${r.config.apiBaseUrl}${yi.list[r.config.app]}`;
|
|
13787
|
+
return r.config.app === "konnect" ? re = re.replace(/{controlPlaneId}/gi, ((Ie = r.config) == null ? void 0 : Ie.controlPlaneId) || "") : r.config.app === "kongManager" && (re = re.replace(/\/{workspace}/gi, ($ = r.config) != null && $.workspace ? `/${r.config.workspace}` : "")), re;
|
|
13788
13788
|
}), k = Q(""), p = M(() => {
|
|
13789
|
-
const
|
|
13790
|
-
return
|
|
13791
|
-
isExactMatch:
|
|
13789
|
+
const re = r.config.app === "konnect" || r.config.isExactMatch;
|
|
13790
|
+
return re ? {
|
|
13791
|
+
isExactMatch: re,
|
|
13792
13792
|
placeholder: i("ca-certificates.search.placeholder")
|
|
13793
13793
|
} : {
|
|
13794
|
-
isExactMatch:
|
|
13794
|
+
isExactMatch: re,
|
|
13795
13795
|
schema: r.config.filterSchema
|
|
13796
13796
|
};
|
|
13797
13797
|
}), { fetcher: y, fetcherState: g } = bp(r.config, I.value), b = () => {
|
|
13798
13798
|
k.value = "";
|
|
13799
13799
|
}, v = () => {
|
|
13800
13800
|
l.value++;
|
|
13801
|
-
}, m = Q(null), C = (
|
|
13802
|
-
const $ =
|
|
13801
|
+
}, m = Q(null), C = (re, Ie) => {
|
|
13802
|
+
const $ = re.id;
|
|
13803
13803
|
if (!Ie($)) {
|
|
13804
13804
|
t("copy:error", {
|
|
13805
|
-
entity:
|
|
13805
|
+
entity: re,
|
|
13806
13806
|
field: "id",
|
|
13807
13807
|
message: i("ca-certificates.errors.copy")
|
|
13808
13808
|
});
|
|
13809
13809
|
return;
|
|
13810
13810
|
}
|
|
13811
13811
|
t("copy:success", {
|
|
13812
|
-
entity:
|
|
13812
|
+
entity: re,
|
|
13813
13813
|
field: "id",
|
|
13814
13814
|
message: i("ca-certificates.copy.success", { val: $ })
|
|
13815
13815
|
});
|
|
13816
|
-
}, W = (
|
|
13817
|
-
const $ = JSON.stringify(
|
|
13816
|
+
}, W = (re, Ie) => {
|
|
13817
|
+
const $ = JSON.stringify(re);
|
|
13818
13818
|
if (!Ie($)) {
|
|
13819
13819
|
t("copy:error", {
|
|
13820
|
-
entity:
|
|
13820
|
+
entity: re,
|
|
13821
13821
|
message: i("ca-certificates.errors.copy")
|
|
13822
13822
|
});
|
|
13823
13823
|
return;
|
|
13824
13824
|
}
|
|
13825
13825
|
t("copy:success", {
|
|
13826
|
-
entity:
|
|
13826
|
+
entity: re,
|
|
13827
13827
|
message: i("ca-certificates.copy.success_brief")
|
|
13828
13828
|
});
|
|
13829
|
-
}, ae = async (
|
|
13829
|
+
}, ae = async (re) => {
|
|
13830
13830
|
var $;
|
|
13831
|
-
await (($ = r.canRetrieve) == null ? void 0 : $.call(r,
|
|
13832
|
-
}, _ = (
|
|
13831
|
+
await (($ = r.canRetrieve) == null ? void 0 : $.call(r, re)) && s.push(r.config.getViewRoute(re.id));
|
|
13832
|
+
}, _ = (re) => ({
|
|
13833
13833
|
label: i("ca-certificates.actions.view"),
|
|
13834
|
-
to: r.config.getViewRoute(
|
|
13835
|
-
}), N = (
|
|
13834
|
+
to: r.config.getViewRoute(re)
|
|
13835
|
+
}), N = (re) => ({
|
|
13836
13836
|
label: i("ca-certificates.actions.edit"),
|
|
13837
|
-
to: r.config.getEditRoute(
|
|
13838
|
-
}), K = Q(void 0), J = Q(!1), z = Q(!1), H = Q(""), D = vp(r.config, I.value), { certificateDataCache: fe, getCertificateData: ke } = It.useCertificate(), Oe = (
|
|
13839
|
-
K.value =
|
|
13837
|
+
to: r.config.getEditRoute(re)
|
|
13838
|
+
}), K = Q(void 0), J = Q(!1), z = Q(!1), H = Q(""), D = vp(r.config, I.value), { certificateDataCache: fe, getCertificateData: ke } = It.useCertificate(), Oe = (re) => {
|
|
13839
|
+
K.value = re, J.value = !0;
|
|
13840
13840
|
}, Ae = () => {
|
|
13841
13841
|
J.value = !1;
|
|
13842
13842
|
}, Ce = async () => {
|
|
13843
|
-
var
|
|
13844
|
-
if ((
|
|
13843
|
+
var re, Ie, $;
|
|
13844
|
+
if ((re = K.value) != null && re.id) {
|
|
13845
13845
|
z.value = !0;
|
|
13846
13846
|
try {
|
|
13847
13847
|
await a.delete(D(K.value.id)), z.value = !1, J.value = !1, l.value++, t("delete:success", K.value);
|
|
@@ -13852,12 +13852,12 @@ const rk = /* @__PURE__ */ li(U1, [["__scopeId", "data-v-5110105b"]]), L1 = { cl
|
|
|
13852
13852
|
}
|
|
13853
13853
|
}
|
|
13854
13854
|
}, Ve = Q(!0);
|
|
13855
|
-
Ft(g, (
|
|
13856
|
-
var Ie, $, pe, Be
|
|
13857
|
-
if (((
|
|
13855
|
+
Ft(g, (re) => {
|
|
13856
|
+
var Ie, $, pe, Be;
|
|
13857
|
+
if (Array.isArray((Ie = re == null ? void 0 : re.response) == null ? void 0 : Ie.data) && (Ve.value = re.response.data.length > 0), re.status === Yt.Error) {
|
|
13858
13858
|
m.value = {
|
|
13859
13859
|
title: i("ca-certificates.errors.general")
|
|
13860
|
-
}, (
|
|
13860
|
+
}, (Be = (pe = ($ = re.error) == null ? void 0 : $.response) == null ? void 0 : pe.data) != null && Be.message && (m.value.message = re.error.response.data.message), t("error", re.error);
|
|
13861
13861
|
return;
|
|
13862
13862
|
}
|
|
13863
13863
|
fe.value = {}, m.value = null;
|
|
@@ -13870,8 +13870,8 @@ const rk = /* @__PURE__ */ li(U1, [["__scopeId", "data-v-5110105b"]]), L1 = { cl
|
|
|
13870
13870
|
});
|
|
13871
13871
|
return Dn(async () => {
|
|
13872
13872
|
await r.canCreate() && (Wt.value.title = i("ca-certificates.list.empty_state.title"), Wt.value.ctaText = i("ca-certificates.actions.create"));
|
|
13873
|
-
}), (
|
|
13874
|
-
const $ = te("KButton"), pe = te("KBadge"), Be = te("KTruncate"),
|
|
13873
|
+
}), (re, Ie) => {
|
|
13874
|
+
const $ = te("KButton"), pe = te("KBadge"), Be = te("KTruncate"), Ge = te("KDropdownItem"), Ot = te("KClipboardProvider");
|
|
13875
13875
|
return B(), R("div", L1, [
|
|
13876
13876
|
V(A(hp), {
|
|
13877
13877
|
"cache-identifier": e.cacheIdentifier,
|
|
@@ -13888,13 +13888,13 @@ const rk = /* @__PURE__ */ li(U1, [["__scopeId", "data-v-5110105b"]]), L1 = { cl
|
|
|
13888
13888
|
"table-headers": A(h),
|
|
13889
13889
|
"use-action-outside": e.useActionOutside,
|
|
13890
13890
|
onClearSearchInput: b,
|
|
13891
|
-
"onClick:row": Ie[2] || (Ie[2] = (
|
|
13891
|
+
"onClick:row": Ie[2] || (Ie[2] = (oe) => ae(oe)),
|
|
13892
13892
|
onSort: v
|
|
13893
13893
|
}, {
|
|
13894
13894
|
"toolbar-filter": x(() => [
|
|
13895
13895
|
V(A(gp), {
|
|
13896
13896
|
modelValue: k.value,
|
|
13897
|
-
"onUpdate:modelValue": Ie[0] || (Ie[0] = (
|
|
13897
|
+
"onUpdate:modelValue": Ie[0] || (Ie[0] = (oe) => k.value = oe),
|
|
13898
13898
|
config: p.value
|
|
13899
13899
|
}, null, 8, ["modelValue", "config"])
|
|
13900
13900
|
]),
|
|
@@ -13925,24 +13925,24 @@ const rk = /* @__PURE__ */ li(U1, [["__scopeId", "data-v-5110105b"]]), L1 = { cl
|
|
|
13925
13925
|
}, 8, ["auth-function"])
|
|
13926
13926
|
], 8, ["disabled"]))
|
|
13927
13927
|
]),
|
|
13928
|
-
issuer: x(({ row:
|
|
13929
|
-
var
|
|
13928
|
+
issuer: x(({ row: oe }) => {
|
|
13929
|
+
var Pe;
|
|
13930
13930
|
return [
|
|
13931
|
-
e.config.app === "konnect" ? (B(), R("b", H1, P((
|
|
13931
|
+
e.config.app === "konnect" ? (B(), R("b", H1, P((Pe = oe == null ? void 0 : oe.metadata) != null && Pe.issuer ? oe.metadata.issuer : "-"), 1)) : (B(), R("b", F1, P(A(ke)(oe).schemaIssuer || "-"), 1))
|
|
13932
13932
|
];
|
|
13933
13933
|
}),
|
|
13934
|
-
expiry: x(({ row:
|
|
13935
|
-
var
|
|
13934
|
+
expiry: x(({ row: oe }) => {
|
|
13935
|
+
var Pe;
|
|
13936
13936
|
return [
|
|
13937
|
-
e.config.app === "konnect" ? (B(), R("span", K1, P((
|
|
13937
|
+
e.config.app === "konnect" ? (B(), R("span", K1, P((Pe = oe == null ? void 0 : oe.metadata) != null && Pe.expiry ? A(n)(oe.metadata.expiry) : "-"), 1)) : (B(), R("span", q1, P(A(ke)(oe).schemaExpiry ? A(n)(A(ke)(oe).schemaExpiry) : "-"), 1))
|
|
13938
13938
|
];
|
|
13939
13939
|
}),
|
|
13940
|
-
tags: x(({ row:
|
|
13941
|
-
var
|
|
13940
|
+
tags: x(({ row: oe }) => {
|
|
13941
|
+
var Pe;
|
|
13942
13942
|
return [
|
|
13943
|
-
((
|
|
13943
|
+
((Pe = oe == null ? void 0 : oe.tags) == null ? void 0 : Pe.length) > 0 ? (B(), ie(Be, { key: 0 }, {
|
|
13944
13944
|
default: x(() => [
|
|
13945
|
-
(B(!0), R(
|
|
13945
|
+
(B(!0), R(Fe, null, Ue(oe == null ? void 0 : oe.tags, (Z) => (B(), ie(pe, {
|
|
13946
13946
|
key: Z,
|
|
13947
13947
|
onClick: Ie[1] || (Ie[1] = Pr(() => {
|
|
13948
13948
|
}, ["stop"]))
|
|
@@ -13957,12 +13957,12 @@ const rk = /* @__PURE__ */ li(U1, [["__scopeId", "data-v-5110105b"]]), L1 = { cl
|
|
|
13957
13957
|
}, 1024)) : (B(), R("span", z1, "-"))
|
|
13958
13958
|
];
|
|
13959
13959
|
}),
|
|
13960
|
-
actions: x(({ row:
|
|
13960
|
+
actions: x(({ row: oe }) => [
|
|
13961
13961
|
V(Ot, null, {
|
|
13962
|
-
default: x(({ copyToClipboard:
|
|
13963
|
-
V(
|
|
13962
|
+
default: x(({ copyToClipboard: Pe }) => [
|
|
13963
|
+
V(Ge, {
|
|
13964
13964
|
"data-testid": "action-entity-copy-id",
|
|
13965
|
-
onClick: (Z) => C(
|
|
13965
|
+
onClick: (Z) => C(oe, Pe)
|
|
13966
13966
|
}, {
|
|
13967
13967
|
default: x(() => [
|
|
13968
13968
|
ce(P(A(i)("ca-certificates.actions.copy_id")), 1)
|
|
@@ -13973,10 +13973,10 @@ const rk = /* @__PURE__ */ li(U1, [["__scopeId", "data-v-5110105b"]]), L1 = { cl
|
|
|
13973
13973
|
_: 2
|
|
13974
13974
|
}, 1024),
|
|
13975
13975
|
V(Ot, null, {
|
|
13976
|
-
default: x(({ copyToClipboard:
|
|
13977
|
-
V(
|
|
13976
|
+
default: x(({ copyToClipboard: Pe }) => [
|
|
13977
|
+
V(Ge, {
|
|
13978
13978
|
"data-testid": "action-entity-copy-json",
|
|
13979
|
-
onClick: (Z) => W(
|
|
13979
|
+
onClick: (Z) => W(oe, Pe)
|
|
13980
13980
|
}, {
|
|
13981
13981
|
default: x(() => [
|
|
13982
13982
|
ce(P(A(i)("ca-certificates.actions.copy_json")), 1)
|
|
@@ -13987,37 +13987,37 @@ const rk = /* @__PURE__ */ li(U1, [["__scopeId", "data-v-5110105b"]]), L1 = { cl
|
|
|
13987
13987
|
_: 2
|
|
13988
13988
|
}, 1024),
|
|
13989
13989
|
V(A(Tt), {
|
|
13990
|
-
"auth-function": () => e.canRetrieve(
|
|
13990
|
+
"auth-function": () => e.canRetrieve(oe)
|
|
13991
13991
|
}, {
|
|
13992
13992
|
default: x(() => [
|
|
13993
|
-
V(
|
|
13993
|
+
V(Ge, {
|
|
13994
13994
|
"data-testid": "action-entity-view",
|
|
13995
13995
|
"has-divider": "",
|
|
13996
|
-
item: _(
|
|
13996
|
+
item: _(oe.id)
|
|
13997
13997
|
}, null, 8, ["item"])
|
|
13998
13998
|
]),
|
|
13999
13999
|
_: 2
|
|
14000
14000
|
}, 1032, ["auth-function"]),
|
|
14001
14001
|
V(A(Tt), {
|
|
14002
|
-
"auth-function": () => e.canEdit(
|
|
14002
|
+
"auth-function": () => e.canEdit(oe)
|
|
14003
14003
|
}, {
|
|
14004
14004
|
default: x(() => [
|
|
14005
|
-
V(
|
|
14005
|
+
V(Ge, {
|
|
14006
14006
|
"data-testid": "action-entity-edit",
|
|
14007
|
-
item: N(
|
|
14007
|
+
item: N(oe.id)
|
|
14008
14008
|
}, null, 8, ["item"])
|
|
14009
14009
|
]),
|
|
14010
14010
|
_: 2
|
|
14011
14011
|
}, 1032, ["auth-function"]),
|
|
14012
14012
|
V(A(Tt), {
|
|
14013
|
-
"auth-function": () => e.canDelete(
|
|
14013
|
+
"auth-function": () => e.canDelete(oe)
|
|
14014
14014
|
}, {
|
|
14015
14015
|
default: x(() => [
|
|
14016
|
-
V(
|
|
14016
|
+
V(Ge, {
|
|
14017
14017
|
danger: "",
|
|
14018
14018
|
"data-testid": "action-entity-delete",
|
|
14019
14019
|
"has-divider": "",
|
|
14020
|
-
onClick: (
|
|
14020
|
+
onClick: (Pe) => Oe(oe)
|
|
14021
14021
|
}, {
|
|
14022
14022
|
default: x(() => [
|
|
14023
14023
|
ce(P(A(i)("ca-certificates.actions.delete")), 1)
|
|
@@ -14057,7 +14057,7 @@ const rk = /* @__PURE__ */ li(U1, [["__scopeId", "data-v-5110105b"]]), L1 = { cl
|
|
|
14057
14057
|
};
|
|
14058
14058
|
}
|
|
14059
14059
|
});
|
|
14060
|
-
const ik = /* @__PURE__ */ li(G1, [["__scopeId", "data-v-
|
|
14060
|
+
const ik = /* @__PURE__ */ li(G1, [["__scopeId", "data-v-067baf74"]]), W1 = { class: "kong-ui-entities-ca-certificates-form" }, J1 = /* @__PURE__ */ _e({
|
|
14061
14061
|
__name: "CACertificateForm",
|
|
14062
14062
|
props: {
|
|
14063
14063
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -14374,7 +14374,7 @@ const nk = /* @__PURE__ */ li(J1, [["__scopeId", "data-v-bad536b1"]]), Y1 = { cl
|
|
|
14374
14374
|
})
|
|
14375
14375
|
]),
|
|
14376
14376
|
metadata: x((H) => [
|
|
14377
|
-
(B(!0), R(
|
|
14377
|
+
(B(!0), R(Fe, null, Ue(Object.keys(A(a)("rowValue", H)), (D) => (B(), ie(A(Yi), {
|
|
14378
14378
|
key: D,
|
|
14379
14379
|
item: {
|
|
14380
14380
|
key: D,
|
|
@@ -14420,7 +14420,7 @@ const nk = /* @__PURE__ */ li(J1, [["__scopeId", "data-v-bad536b1"]]), Y1 = { cl
|
|
|
14420
14420
|
]),
|
|
14421
14421
|
key_usages: x(() => [
|
|
14422
14422
|
m.value.length ? he("", !0) : (B(), R("div", Z1, P("–"))),
|
|
14423
|
-
(B(!0), R(
|
|
14423
|
+
(B(!0), R(Fe, null, Ue(m.value, (H, D) => (B(), ie(z, {
|
|
14424
14424
|
key: `key_usages-badge-tag-${D}`,
|
|
14425
14425
|
class: "config-badge",
|
|
14426
14426
|
"data-testid": `key_usages-badge-tag-${D}`,
|