@kong-ui-public/entities-certificates 3.9.4 → 3.9.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.
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { useAxios as Nn, useTableState as Il, useFetcher as El, useDeleteUrlBuilder as Ol, FetcherStatus as Nl, EntityBaseTable as Tl,
|
|
1
|
+
import { ref as xe, defineComponent as dr, computed as ne, watch as qi, onBeforeMount as Bl, resolveComponent as ke, createElementBlock as de, openBlock as W, createVNode as T, unref as v, createSlots as ti, withCtx as B, createBlock as we, createCommentVNode as Te, createTextVNode as he, toDisplayString as Q, Teleport as zi, createElementVNode as $e, Fragment as ri, renderList as ii, reactive as Gi } from "vue";
|
|
2
|
+
import { useAxios as Nn, useTableState as Il, useFetcher as El, useDeleteUrlBuilder as Ol, FetcherStatus as Nl, EntityBaseTable as Tl, PermissionsWrapper as ct, TableTags as _l, EntityFilter as jl, EntityEmptyState as Pl, EntityDeleteModal as Rl, EntityTypes as Vl, useErrors as $l, EntityBaseFormType as Zt, EntityBaseForm as Dl, SupportedEntityType as Tn, EntityFormSection as Wi, useStringHelpers as Ml, useHelpers as Ul, ConfigurationSchemaSection as Ve, ConfigurationSchemaType as Ct, EntityBaseConfigCard as Ll, ConfigCardItem as Hl } from "@kong-ui-public/entities-shared";
|
|
3
3
|
import { useRouter as _n } from "vue-router";
|
|
4
|
-
import {
|
|
4
|
+
import { BookIcon as Ji, AddIcon as ni, ServiceDocumentIcon as Fl, TrashIcon as Jf } from "@kong/icons";
|
|
5
5
|
import { createI18n as Yf, i18nTComponent as Zf } from "@kong-ui-public/i18n";
|
|
6
6
|
const Qf = "#d60027", Kl = "#00abd2", ql = "24px";
|
|
7
7
|
var Ms = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
@@ -66,7 +66,7 @@ var Za;
|
|
|
66
66
|
}
|
|
67
67
|
}, p = Object.getPrototypeOf(Function), q = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : Kf(), N = typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : qf(), f = typeof WeakMap == "function" ? WeakMap : zf(), y = n ? Symbol.for("@reflect-metadata:registry") : void 0, A = Lf(), w = Hf(A);
|
|
68
68
|
function E(g, b, S, j) {
|
|
69
|
-
if (
|
|
69
|
+
if (z(S)) {
|
|
70
70
|
if (!Fe(g))
|
|
71
71
|
throw new TypeError();
|
|
72
72
|
if (!Ne(b))
|
|
@@ -77,19 +77,19 @@ var Za;
|
|
|
77
77
|
throw new TypeError();
|
|
78
78
|
if (!pe(b))
|
|
79
79
|
throw new TypeError();
|
|
80
|
-
if (!pe(j) && !
|
|
80
|
+
if (!pe(j) && !z(j) && !yt(j))
|
|
81
81
|
throw new TypeError();
|
|
82
82
|
return yt(j) && (j = void 0), S = ee(S), ve(g, b, S, j);
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
e("decorate", E);
|
|
86
86
|
function k(g, b) {
|
|
87
|
-
function S(j,
|
|
87
|
+
function S(j, J) {
|
|
88
88
|
if (!pe(j))
|
|
89
89
|
throw new TypeError();
|
|
90
|
-
if (!
|
|
90
|
+
if (!z(J) && !G(J))
|
|
91
91
|
throw new TypeError();
|
|
92
|
-
Jt(g, b, j,
|
|
92
|
+
Jt(g, b, j, J);
|
|
93
93
|
}
|
|
94
94
|
return S;
|
|
95
95
|
}
|
|
@@ -97,78 +97,78 @@ var Za;
|
|
|
97
97
|
function O(g, b, S, j) {
|
|
98
98
|
if (!pe(S))
|
|
99
99
|
throw new TypeError();
|
|
100
|
-
return
|
|
100
|
+
return z(j) || (j = ee(j)), Jt(g, b, S, j);
|
|
101
101
|
}
|
|
102
102
|
e("defineMetadata", O);
|
|
103
103
|
function Z(g, b, S) {
|
|
104
104
|
if (!pe(b))
|
|
105
105
|
throw new TypeError();
|
|
106
|
-
return
|
|
106
|
+
return z(S) || (S = ee(S)), me(g, b, S);
|
|
107
107
|
}
|
|
108
108
|
e("hasMetadata", Z);
|
|
109
109
|
function le(g, b, S) {
|
|
110
110
|
if (!pe(b))
|
|
111
111
|
throw new TypeError();
|
|
112
|
-
return
|
|
112
|
+
return z(S) || (S = ee(S)), Re(g, b, S);
|
|
113
113
|
}
|
|
114
114
|
e("hasOwnMetadata", le);
|
|
115
115
|
function U(g, b, S) {
|
|
116
116
|
if (!pe(b))
|
|
117
117
|
throw new TypeError();
|
|
118
|
-
return
|
|
118
|
+
return z(S) || (S = ee(S)), ie(g, b, S);
|
|
119
119
|
}
|
|
120
120
|
e("getMetadata", U);
|
|
121
121
|
function x(g, b, S) {
|
|
122
122
|
if (!pe(b))
|
|
123
123
|
throw new TypeError();
|
|
124
|
-
return
|
|
124
|
+
return z(S) || (S = ee(S)), pt(g, b, S);
|
|
125
125
|
}
|
|
126
126
|
e("getOwnMetadata", x);
|
|
127
127
|
function _(g, b) {
|
|
128
128
|
if (!pe(g))
|
|
129
129
|
throw new TypeError();
|
|
130
|
-
return
|
|
130
|
+
return z(b) || (b = ee(b)), vr(g, b);
|
|
131
131
|
}
|
|
132
132
|
e("getMetadataKeys", _);
|
|
133
|
-
function
|
|
133
|
+
function Ce(g, b) {
|
|
134
134
|
if (!pe(g))
|
|
135
135
|
throw new TypeError();
|
|
136
|
-
return
|
|
136
|
+
return z(b) || (b = ee(b)), $t(g, b);
|
|
137
137
|
}
|
|
138
|
-
e("getOwnMetadataKeys",
|
|
138
|
+
e("getOwnMetadataKeys", Ce);
|
|
139
139
|
function fe(g, b, S) {
|
|
140
140
|
if (!pe(b))
|
|
141
141
|
throw new TypeError();
|
|
142
|
-
if (
|
|
142
|
+
if (z(S) || (S = ee(S)), !pe(b))
|
|
143
143
|
throw new TypeError();
|
|
144
|
-
|
|
144
|
+
z(S) || (S = ee(S));
|
|
145
145
|
var j = Gr(
|
|
146
146
|
b,
|
|
147
147
|
S,
|
|
148
148
|
/*Create*/
|
|
149
149
|
!1
|
|
150
150
|
);
|
|
151
|
-
return
|
|
151
|
+
return z(j) ? !1 : j.OrdinaryDeleteMetadata(g, b, S);
|
|
152
152
|
}
|
|
153
153
|
e("deleteMetadata", fe);
|
|
154
154
|
function ht(g, b) {
|
|
155
155
|
for (var S = g.length - 1; S >= 0; --S) {
|
|
156
|
-
var j = g[S],
|
|
157
|
-
if (!
|
|
158
|
-
if (!Ne(
|
|
156
|
+
var j = g[S], J = j(b);
|
|
157
|
+
if (!z(J) && !yt(J)) {
|
|
158
|
+
if (!Ne(J))
|
|
159
159
|
throw new TypeError();
|
|
160
|
-
b =
|
|
160
|
+
b = J;
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
163
|
return b;
|
|
164
164
|
}
|
|
165
165
|
function ve(g, b, S, j) {
|
|
166
|
-
for (var
|
|
167
|
-
var
|
|
168
|
-
if (!
|
|
169
|
-
if (!pe(
|
|
166
|
+
for (var J = g.length - 1; J >= 0; --J) {
|
|
167
|
+
var Ae = g[J], Be = Ae(b, S, j);
|
|
168
|
+
if (!z(Be) && !yt(Be)) {
|
|
169
|
+
if (!pe(Be))
|
|
170
170
|
throw new TypeError();
|
|
171
|
-
j =
|
|
171
|
+
j = Be;
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
174
|
return j;
|
|
@@ -177,8 +177,8 @@ var Za;
|
|
|
177
177
|
var j = Re(g, b, S);
|
|
178
178
|
if (j)
|
|
179
179
|
return !0;
|
|
180
|
-
var
|
|
181
|
-
return yt(
|
|
180
|
+
var J = Cs(b);
|
|
181
|
+
return yt(J) ? !1 : me(g, J, S);
|
|
182
182
|
}
|
|
183
183
|
function Re(g, b, S) {
|
|
184
184
|
var j = Gr(
|
|
@@ -187,15 +187,15 @@ var Za;
|
|
|
187
187
|
/*Create*/
|
|
188
188
|
!1
|
|
189
189
|
);
|
|
190
|
-
return
|
|
190
|
+
return z(j) ? !1 : $(j.OrdinaryHasOwnMetadata(g, b, S));
|
|
191
191
|
}
|
|
192
192
|
function ie(g, b, S) {
|
|
193
193
|
var j = Re(g, b, S);
|
|
194
194
|
if (j)
|
|
195
195
|
return pt(g, b, S);
|
|
196
|
-
var
|
|
197
|
-
if (!yt(
|
|
198
|
-
return ie(g,
|
|
196
|
+
var J = Cs(b);
|
|
197
|
+
if (!yt(J))
|
|
198
|
+
return ie(g, J, S);
|
|
199
199
|
}
|
|
200
200
|
function pt(g, b, S) {
|
|
201
201
|
var j = Gr(
|
|
@@ -204,36 +204,36 @@ var Za;
|
|
|
204
204
|
/*Create*/
|
|
205
205
|
!1
|
|
206
206
|
);
|
|
207
|
-
if (!
|
|
207
|
+
if (!z(j))
|
|
208
208
|
return j.OrdinaryGetOwnMetadata(g, b, S);
|
|
209
209
|
}
|
|
210
210
|
function Jt(g, b, S, j) {
|
|
211
|
-
var
|
|
211
|
+
var J = Gr(
|
|
212
212
|
S,
|
|
213
213
|
j,
|
|
214
214
|
/*Create*/
|
|
215
215
|
!0
|
|
216
216
|
);
|
|
217
|
-
|
|
217
|
+
J.OrdinaryDefineOwnMetadata(g, b, S, j);
|
|
218
218
|
}
|
|
219
219
|
function vr(g, b) {
|
|
220
220
|
var S = $t(g, b), j = Cs(g);
|
|
221
221
|
if (j === null)
|
|
222
222
|
return S;
|
|
223
|
-
var
|
|
224
|
-
if (
|
|
223
|
+
var J = vr(j, b);
|
|
224
|
+
if (J.length <= 0)
|
|
225
225
|
return S;
|
|
226
226
|
if (S.length <= 0)
|
|
227
|
-
return
|
|
228
|
-
for (var
|
|
229
|
-
var L = V[se], H =
|
|
230
|
-
H || (
|
|
227
|
+
return J;
|
|
228
|
+
for (var Ae = new N(), Be = [], se = 0, V = S; se < V.length; se++) {
|
|
229
|
+
var L = V[se], H = Ae.has(L);
|
|
230
|
+
H || (Ae.add(L), Be.push(L));
|
|
231
231
|
}
|
|
232
|
-
for (var K = 0, oe =
|
|
233
|
-
var L = oe[K], H =
|
|
234
|
-
H || (
|
|
232
|
+
for (var K = 0, oe = J; K < oe.length; K++) {
|
|
233
|
+
var L = oe[K], H = Ae.has(L);
|
|
234
|
+
H || (Ae.add(L), Be.push(L));
|
|
235
235
|
}
|
|
236
|
-
return
|
|
236
|
+
return Be;
|
|
237
237
|
}
|
|
238
238
|
function $t(g, b) {
|
|
239
239
|
var S = Gr(
|
|
@@ -264,7 +264,7 @@ var Za;
|
|
|
264
264
|
return 6;
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
|
-
function
|
|
267
|
+
function z(g) {
|
|
268
268
|
return g === void 0;
|
|
269
269
|
}
|
|
270
270
|
function yt(g) {
|
|
@@ -293,19 +293,19 @@ var Za;
|
|
|
293
293
|
}
|
|
294
294
|
var S = "string", j = _i(g, s);
|
|
295
295
|
if (j !== void 0) {
|
|
296
|
-
var
|
|
297
|
-
if (pe(
|
|
296
|
+
var J = j.call(g, S);
|
|
297
|
+
if (pe(J))
|
|
298
298
|
throw new TypeError();
|
|
299
|
-
return
|
|
299
|
+
return J;
|
|
300
300
|
}
|
|
301
301
|
return te(g);
|
|
302
302
|
}
|
|
303
303
|
function te(g, b) {
|
|
304
|
-
var S, j;
|
|
304
|
+
var S, j, J;
|
|
305
305
|
{
|
|
306
|
-
var
|
|
307
|
-
if (X(
|
|
308
|
-
var j =
|
|
306
|
+
var Ae = g.toString;
|
|
307
|
+
if (X(Ae)) {
|
|
308
|
+
var j = Ae.call(g);
|
|
309
309
|
if (!pe(j))
|
|
310
310
|
return j;
|
|
311
311
|
}
|
|
@@ -337,7 +337,7 @@ var Za;
|
|
|
337
337
|
function Ne(g) {
|
|
338
338
|
return typeof g == "function";
|
|
339
339
|
}
|
|
340
|
-
function
|
|
340
|
+
function G(g) {
|
|
341
341
|
switch (xt(g)) {
|
|
342
342
|
case 3:
|
|
343
343
|
return !0;
|
|
@@ -347,7 +347,7 @@ var Za;
|
|
|
347
347
|
return !1;
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
|
-
function
|
|
350
|
+
function Oe(g, b) {
|
|
351
351
|
return g === b || g !== g && b !== b;
|
|
352
352
|
}
|
|
353
353
|
function _i(g, b) {
|
|
@@ -385,30 +385,30 @@ var Za;
|
|
|
385
385
|
var S = g.prototype, j = S && Object.getPrototypeOf(S);
|
|
386
386
|
if (j == null || j === Object.prototype)
|
|
387
387
|
return b;
|
|
388
|
-
var
|
|
389
|
-
return typeof
|
|
388
|
+
var J = j.constructor;
|
|
389
|
+
return typeof J != "function" || J === g ? b : J;
|
|
390
390
|
}
|
|
391
391
|
function Uf() {
|
|
392
392
|
var g;
|
|
393
|
-
!
|
|
394
|
-
var b, S, j,
|
|
395
|
-
registerProvider:
|
|
393
|
+
!z(y) && typeof t.Reflect < "u" && !(y in t.Reflect) && typeof t.Reflect.defineMetadata == "function" && (g = Ff(t.Reflect));
|
|
394
|
+
var b, S, j, J = new f(), Ae = {
|
|
395
|
+
registerProvider: Be,
|
|
396
396
|
getProvider: V,
|
|
397
397
|
setProvider: H
|
|
398
398
|
};
|
|
399
|
-
return
|
|
400
|
-
function
|
|
401
|
-
if (!Object.isExtensible(
|
|
399
|
+
return Ae;
|
|
400
|
+
function Be(K) {
|
|
401
|
+
if (!Object.isExtensible(Ae))
|
|
402
402
|
throw new Error("Cannot add provider to a frozen registry.");
|
|
403
403
|
switch (!0) {
|
|
404
404
|
case g === K:
|
|
405
405
|
break;
|
|
406
|
-
case
|
|
406
|
+
case z(b):
|
|
407
407
|
b = K;
|
|
408
408
|
break;
|
|
409
409
|
case b === K:
|
|
410
410
|
break;
|
|
411
|
-
case
|
|
411
|
+
case z(S):
|
|
412
412
|
S = K;
|
|
413
413
|
break;
|
|
414
414
|
case S === K:
|
|
@@ -419,51 +419,51 @@ var Za;
|
|
|
419
419
|
}
|
|
420
420
|
}
|
|
421
421
|
function se(K, oe) {
|
|
422
|
-
if (!
|
|
422
|
+
if (!z(b)) {
|
|
423
423
|
if (b.isProviderFor(K, oe))
|
|
424
424
|
return b;
|
|
425
|
-
if (!
|
|
425
|
+
if (!z(S)) {
|
|
426
426
|
if (S.isProviderFor(K, oe))
|
|
427
427
|
return b;
|
|
428
|
-
if (!
|
|
428
|
+
if (!z(j))
|
|
429
429
|
for (var ye = za(j); ; ) {
|
|
430
|
-
var
|
|
431
|
-
if (!
|
|
430
|
+
var Se = Wa(ye);
|
|
431
|
+
if (!Se)
|
|
432
432
|
return;
|
|
433
|
-
var st = Ga(
|
|
433
|
+
var st = Ga(Se);
|
|
434
434
|
if (st.isProviderFor(K, oe))
|
|
435
435
|
return Ja(ye), st;
|
|
436
436
|
}
|
|
437
437
|
}
|
|
438
438
|
}
|
|
439
|
-
if (!
|
|
439
|
+
if (!z(g) && g.isProviderFor(K, oe))
|
|
440
440
|
return g;
|
|
441
441
|
}
|
|
442
442
|
function V(K, oe) {
|
|
443
|
-
var ye =
|
|
444
|
-
return
|
|
443
|
+
var ye = J.get(K), Se;
|
|
444
|
+
return z(ye) || (Se = ye.get(oe)), z(Se) && (Se = se(K, oe), z(Se) || (z(ye) && (ye = new q(), J.set(K, ye)), ye.set(oe, Se))), Se;
|
|
445
445
|
}
|
|
446
446
|
function L(K) {
|
|
447
|
-
if (
|
|
447
|
+
if (z(K))
|
|
448
448
|
throw new TypeError();
|
|
449
|
-
return b === K || S === K || !
|
|
449
|
+
return b === K || S === K || !z(j) && j.has(K);
|
|
450
450
|
}
|
|
451
451
|
function H(K, oe, ye) {
|
|
452
452
|
if (!L(ye))
|
|
453
453
|
throw new Error("Metadata provider not registered.");
|
|
454
|
-
var
|
|
455
|
-
if (
|
|
456
|
-
if (!
|
|
454
|
+
var Se = V(K, oe);
|
|
455
|
+
if (Se !== ye) {
|
|
456
|
+
if (!z(Se))
|
|
457
457
|
return !1;
|
|
458
|
-
var st =
|
|
459
|
-
|
|
458
|
+
var st = J.get(K);
|
|
459
|
+
z(st) && (st = new q(), J.set(K, st)), st.set(oe, ye);
|
|
460
460
|
}
|
|
461
461
|
return !0;
|
|
462
462
|
}
|
|
463
463
|
}
|
|
464
464
|
function Lf() {
|
|
465
465
|
var g;
|
|
466
|
-
return !
|
|
466
|
+
return !z(y) && pe(t.Reflect) && Object.isExtensible(t.Reflect) && (g = t.Reflect[y]), z(g) && (g = Uf()), !z(y) && pe(t.Reflect) && Object.isExtensible(t.Reflect) && Object.defineProperty(t.Reflect, y, {
|
|
467
467
|
enumerable: !1,
|
|
468
468
|
configurable: !1,
|
|
469
469
|
writable: !1,
|
|
@@ -474,51 +474,51 @@ var Za;
|
|
|
474
474
|
var b = new f(), S = {
|
|
475
475
|
isProviderFor: function(L, H) {
|
|
476
476
|
var K = b.get(L);
|
|
477
|
-
return
|
|
477
|
+
return z(K) ? !1 : K.has(H);
|
|
478
478
|
},
|
|
479
|
-
OrdinaryDefineOwnMetadata:
|
|
480
|
-
OrdinaryHasOwnMetadata:
|
|
481
|
-
OrdinaryGetOwnMetadata:
|
|
479
|
+
OrdinaryDefineOwnMetadata: Be,
|
|
480
|
+
OrdinaryHasOwnMetadata: J,
|
|
481
|
+
OrdinaryGetOwnMetadata: Ae,
|
|
482
482
|
OrdinaryOwnMetadataKeys: se,
|
|
483
483
|
OrdinaryDeleteMetadata: V
|
|
484
484
|
};
|
|
485
485
|
return A.registerProvider(S), S;
|
|
486
486
|
function j(L, H, K) {
|
|
487
487
|
var oe = b.get(L), ye = !1;
|
|
488
|
-
if (
|
|
488
|
+
if (z(oe)) {
|
|
489
489
|
if (!K)
|
|
490
490
|
return;
|
|
491
491
|
oe = new q(), b.set(L, oe), ye = !0;
|
|
492
492
|
}
|
|
493
|
-
var
|
|
494
|
-
if (
|
|
493
|
+
var Se = oe.get(H);
|
|
494
|
+
if (z(Se)) {
|
|
495
495
|
if (!K)
|
|
496
496
|
return;
|
|
497
|
-
if (
|
|
497
|
+
if (Se = new q(), oe.set(H, Se), !g.setProvider(L, H, S))
|
|
498
498
|
throw oe.delete(H), ye && b.delete(L), new Error("Wrong provider for target.");
|
|
499
499
|
}
|
|
500
|
-
return
|
|
500
|
+
return Se;
|
|
501
501
|
}
|
|
502
|
-
function
|
|
502
|
+
function J(L, H, K) {
|
|
503
503
|
var oe = j(
|
|
504
504
|
H,
|
|
505
505
|
K,
|
|
506
506
|
/*Create*/
|
|
507
507
|
!1
|
|
508
508
|
);
|
|
509
|
-
return
|
|
509
|
+
return z(oe) ? !1 : $(oe.has(L));
|
|
510
510
|
}
|
|
511
|
-
function
|
|
511
|
+
function Ae(L, H, K) {
|
|
512
512
|
var oe = j(
|
|
513
513
|
H,
|
|
514
514
|
K,
|
|
515
515
|
/*Create*/
|
|
516
516
|
!1
|
|
517
517
|
);
|
|
518
|
-
if (!
|
|
518
|
+
if (!z(oe))
|
|
519
519
|
return oe.get(L);
|
|
520
520
|
}
|
|
521
|
-
function
|
|
521
|
+
function Be(L, H, K, oe) {
|
|
522
522
|
var ye = j(
|
|
523
523
|
K,
|
|
524
524
|
oe,
|
|
@@ -534,10 +534,10 @@ var Za;
|
|
|
534
534
|
/*Create*/
|
|
535
535
|
!1
|
|
536
536
|
);
|
|
537
|
-
if (
|
|
537
|
+
if (z(oe))
|
|
538
538
|
return K;
|
|
539
|
-
for (var ye = oe.keys(),
|
|
540
|
-
var Ya = Wa(
|
|
539
|
+
for (var ye = oe.keys(), Se = za(ye), st = 0; ; ) {
|
|
540
|
+
var Ya = Wa(Se);
|
|
541
541
|
if (!Ya)
|
|
542
542
|
return K.length = st, K;
|
|
543
543
|
var Gf = Ga(Ya);
|
|
@@ -545,7 +545,7 @@ var Za;
|
|
|
545
545
|
K[st] = Gf;
|
|
546
546
|
} catch (Wf) {
|
|
547
547
|
try {
|
|
548
|
-
Ja(
|
|
548
|
+
Ja(Se);
|
|
549
549
|
} finally {
|
|
550
550
|
throw Wf;
|
|
551
551
|
}
|
|
@@ -560,32 +560,32 @@ var Za;
|
|
|
560
560
|
/*Create*/
|
|
561
561
|
!1
|
|
562
562
|
);
|
|
563
|
-
if (
|
|
563
|
+
if (z(oe) || !oe.delete(L))
|
|
564
564
|
return !1;
|
|
565
565
|
if (oe.size === 0) {
|
|
566
566
|
var ye = b.get(H);
|
|
567
|
-
|
|
567
|
+
z(ye) || (ye.delete(K), ye.size === 0 && b.delete(ye));
|
|
568
568
|
}
|
|
569
569
|
return !0;
|
|
570
570
|
}
|
|
571
571
|
}
|
|
572
572
|
function Ff(g) {
|
|
573
|
-
var b = g.defineMetadata, S = g.hasOwnMetadata, j = g.getOwnMetadata,
|
|
573
|
+
var b = g.defineMetadata, S = g.hasOwnMetadata, j = g.getOwnMetadata, J = g.getOwnMetadataKeys, Ae = g.deleteMetadata, Be = new f(), se = {
|
|
574
574
|
isProviderFor: function(V, L) {
|
|
575
|
-
var H =
|
|
576
|
-
return !
|
|
575
|
+
var H = Be.get(V);
|
|
576
|
+
return !z(H) && H.has(L) ? !0 : J(V, L).length ? (z(H) && (H = new N(), Be.set(V, H)), H.add(L), !0) : !1;
|
|
577
577
|
},
|
|
578
578
|
OrdinaryDefineOwnMetadata: b,
|
|
579
579
|
OrdinaryHasOwnMetadata: S,
|
|
580
580
|
OrdinaryGetOwnMetadata: j,
|
|
581
|
-
OrdinaryOwnMetadataKeys:
|
|
582
|
-
OrdinaryDeleteMetadata:
|
|
581
|
+
OrdinaryOwnMetadataKeys: J,
|
|
582
|
+
OrdinaryDeleteMetadata: Ae
|
|
583
583
|
};
|
|
584
584
|
return se;
|
|
585
585
|
}
|
|
586
586
|
function Gr(g, b, S) {
|
|
587
587
|
var j = A.getProvider(g, b);
|
|
588
|
-
if (!
|
|
588
|
+
if (!z(j))
|
|
589
589
|
return j;
|
|
590
590
|
if (S) {
|
|
591
591
|
if (A.setProvider(g, b, w))
|
|
@@ -658,26 +658,26 @@ var Za;
|
|
|
658
658
|
if (L >= 0) {
|
|
659
659
|
for (var H = this._keys.length, K = L + 1; K < H; K++)
|
|
660
660
|
this._keys[K - 1] = this._keys[K], this._values[K - 1] = this._values[K];
|
|
661
|
-
return this._keys.length--, this._values.length--,
|
|
661
|
+
return this._keys.length--, this._values.length--, Oe(V, this._cacheKey) && (this._cacheKey = g, this._cacheIndex = -2), !0;
|
|
662
662
|
}
|
|
663
663
|
return !1;
|
|
664
664
|
}, se.prototype.clear = function() {
|
|
665
665
|
this._keys.length = 0, this._values.length = 0, this._cacheKey = g, this._cacheIndex = -2;
|
|
666
666
|
}, se.prototype.keys = function() {
|
|
667
|
-
return new S(this._keys, this._values,
|
|
667
|
+
return new S(this._keys, this._values, J);
|
|
668
668
|
}, se.prototype.values = function() {
|
|
669
|
-
return new S(this._keys, this._values,
|
|
669
|
+
return new S(this._keys, this._values, Ae);
|
|
670
670
|
}, se.prototype.entries = function() {
|
|
671
|
-
return new S(this._keys, this._values,
|
|
671
|
+
return new S(this._keys, this._values, Be);
|
|
672
672
|
}, se.prototype["@@iterator"] = function() {
|
|
673
673
|
return this.entries();
|
|
674
674
|
}, se.prototype[a] = function() {
|
|
675
675
|
return this.entries();
|
|
676
676
|
}, se.prototype._find = function(V, L) {
|
|
677
|
-
if (!
|
|
677
|
+
if (!Oe(this._cacheKey, V)) {
|
|
678
678
|
this._cacheIndex = -1;
|
|
679
679
|
for (var H = 0; H < this._keys.length; H++)
|
|
680
|
-
if (
|
|
680
|
+
if (Oe(this._keys[H], V)) {
|
|
681
681
|
this._cacheIndex = H;
|
|
682
682
|
break;
|
|
683
683
|
}
|
|
@@ -687,13 +687,13 @@ var Za;
|
|
|
687
687
|
}()
|
|
688
688
|
);
|
|
689
689
|
return j;
|
|
690
|
-
function
|
|
690
|
+
function J(se, V) {
|
|
691
691
|
return se;
|
|
692
692
|
}
|
|
693
|
-
function
|
|
693
|
+
function Ae(se, V) {
|
|
694
694
|
return V;
|
|
695
695
|
}
|
|
696
|
-
function
|
|
696
|
+
function Be(se, V) {
|
|
697
697
|
return [se, V];
|
|
698
698
|
}
|
|
699
699
|
}
|
|
@@ -742,28 +742,28 @@ var Za;
|
|
|
742
742
|
this._key = j();
|
|
743
743
|
}
|
|
744
744
|
return V.prototype.has = function(L) {
|
|
745
|
-
var H =
|
|
745
|
+
var H = J(
|
|
746
746
|
L,
|
|
747
747
|
/*create*/
|
|
748
748
|
!1
|
|
749
749
|
);
|
|
750
750
|
return H !== void 0 ? m.has(H, this._key) : !1;
|
|
751
751
|
}, V.prototype.get = function(L) {
|
|
752
|
-
var H =
|
|
752
|
+
var H = J(
|
|
753
753
|
L,
|
|
754
754
|
/*create*/
|
|
755
755
|
!1
|
|
756
756
|
);
|
|
757
757
|
return H !== void 0 ? m.get(H, this._key) : void 0;
|
|
758
758
|
}, V.prototype.set = function(L, H) {
|
|
759
|
-
var K =
|
|
759
|
+
var K = J(
|
|
760
760
|
L,
|
|
761
761
|
/*create*/
|
|
762
762
|
!0
|
|
763
763
|
);
|
|
764
764
|
return K[this._key] = H, this;
|
|
765
765
|
}, V.prototype.delete = function(L) {
|
|
766
|
-
var H =
|
|
766
|
+
var H = J(
|
|
767
767
|
L,
|
|
768
768
|
/*create*/
|
|
769
769
|
!1
|
|
@@ -781,7 +781,7 @@ var Za;
|
|
|
781
781
|
while (m.has(b, V));
|
|
782
782
|
return b[V] = !0, V;
|
|
783
783
|
}
|
|
784
|
-
function
|
|
784
|
+
function J(V, L) {
|
|
785
785
|
if (!i.call(V, S)) {
|
|
786
786
|
if (!L)
|
|
787
787
|
return;
|
|
@@ -789,20 +789,20 @@ var Za;
|
|
|
789
789
|
}
|
|
790
790
|
return V[S];
|
|
791
791
|
}
|
|
792
|
-
function
|
|
792
|
+
function Ae(V, L) {
|
|
793
793
|
for (var H = 0; H < L; ++H)
|
|
794
794
|
V[H] = Math.random() * 255 | 0;
|
|
795
795
|
return V;
|
|
796
796
|
}
|
|
797
|
-
function
|
|
797
|
+
function Be(V) {
|
|
798
798
|
if (typeof Uint8Array == "function") {
|
|
799
799
|
var L = new Uint8Array(V);
|
|
800
|
-
return typeof crypto < "u" ? crypto.getRandomValues(L) : typeof msCrypto < "u" ? msCrypto.getRandomValues(L) :
|
|
800
|
+
return typeof crypto < "u" ? crypto.getRandomValues(L) : typeof msCrypto < "u" ? msCrypto.getRandomValues(L) : Ae(L, V), L;
|
|
801
801
|
}
|
|
802
|
-
return
|
|
802
|
+
return Ae(new Array(V), V);
|
|
803
803
|
}
|
|
804
804
|
function se() {
|
|
805
|
-
var V =
|
|
805
|
+
var V = Be(g);
|
|
806
806
|
V[6] = V[6] & 79 | 64, V[8] = V[8] & 191 | 128;
|
|
807
807
|
for (var L = "", H = 0; H < g; ++H) {
|
|
808
808
|
var K = V[H];
|
|
@@ -4463,14 +4463,14 @@ let zs = Ks = class extends ue {
|
|
|
4463
4463
|
zs = Ks = o([
|
|
4464
4464
|
I({ type: C.Sequence, itemType: xr })
|
|
4465
4465
|
], zs);
|
|
4466
|
-
let
|
|
4466
|
+
let Ie = qs = class extends zs {
|
|
4467
4467
|
constructor(e) {
|
|
4468
4468
|
super(e), Object.setPrototypeOf(this, qs.prototype);
|
|
4469
4469
|
}
|
|
4470
4470
|
};
|
|
4471
|
-
|
|
4471
|
+
Ie = qs = o([
|
|
4472
4472
|
I({ type: C.Sequence })
|
|
4473
|
-
],
|
|
4473
|
+
], Ie);
|
|
4474
4474
|
const Kd = {
|
|
4475
4475
|
fromASN: (r) => nc.toString(Qi.fromASN(r)),
|
|
4476
4476
|
toASN: (r) => Qi.toASN(nc.fromString(r))
|
|
@@ -4515,7 +4515,7 @@ o([
|
|
|
4515
4515
|
c({ type: h.Any, context: 3, implicit: !0 })
|
|
4516
4516
|
], re.prototype, "x400Address", void 0);
|
|
4517
4517
|
o([
|
|
4518
|
-
c({ type:
|
|
4518
|
+
c({ type: Ie, context: 4, implicit: !1 })
|
|
4519
4519
|
], re.prototype, "directoryName", void 0);
|
|
4520
4520
|
o([
|
|
4521
4521
|
c({ type: ma, context: 5 })
|
|
@@ -5132,7 +5132,7 @@ var Cr;
|
|
|
5132
5132
|
})(Cr || (Cr = {}));
|
|
5133
5133
|
class rt {
|
|
5134
5134
|
constructor(e = {}) {
|
|
5135
|
-
this.version = Cr.v1, this.serialNumber = new ArrayBuffer(0), this.signature = new D(), this.issuer = new
|
|
5135
|
+
this.version = Cr.v1, this.serialNumber = new ArrayBuffer(0), this.signature = new D(), this.issuer = new Ie(), this.validity = new es(), this.subject = new Ie(), this.subjectPublicKeyInfo = new vt(), Object.assign(this, e);
|
|
5136
5136
|
}
|
|
5137
5137
|
}
|
|
5138
5138
|
o([
|
|
@@ -5152,13 +5152,13 @@ o([
|
|
|
5152
5152
|
c({ type: D })
|
|
5153
5153
|
], rt.prototype, "signature", void 0);
|
|
5154
5154
|
o([
|
|
5155
|
-
c({ type:
|
|
5155
|
+
c({ type: Ie })
|
|
5156
5156
|
], rt.prototype, "issuer", void 0);
|
|
5157
5157
|
o([
|
|
5158
5158
|
c({ type: es })
|
|
5159
5159
|
], rt.prototype, "validity", void 0);
|
|
5160
5160
|
o([
|
|
5161
|
-
c({ type:
|
|
5161
|
+
c({ type: Ie })
|
|
5162
5162
|
], rt.prototype, "subject", void 0);
|
|
5163
5163
|
o([
|
|
5164
5164
|
c({ type: vt })
|
|
@@ -5207,7 +5207,7 @@ o([
|
|
|
5207
5207
|
], ts.prototype, "crlEntryExtensions", void 0);
|
|
5208
5208
|
class Vt {
|
|
5209
5209
|
constructor(e = {}) {
|
|
5210
|
-
this.signature = new D(), this.issuer = new
|
|
5210
|
+
this.signature = new D(), this.issuer = new Ie(), this.thisUpdate = new _e(), Object.assign(this, e);
|
|
5211
5211
|
}
|
|
5212
5212
|
}
|
|
5213
5213
|
o([
|
|
@@ -5217,7 +5217,7 @@ o([
|
|
|
5217
5217
|
c({ type: D })
|
|
5218
5218
|
], Vt.prototype, "signature", void 0);
|
|
5219
5219
|
o([
|
|
5220
|
-
c({ type:
|
|
5220
|
+
c({ type: Ie })
|
|
5221
5221
|
], Vt.prototype, "issuer", void 0);
|
|
5222
5222
|
o([
|
|
5223
5223
|
c({ type: _e })
|
|
@@ -5247,11 +5247,11 @@ o([
|
|
|
5247
5247
|
], Ca.prototype, "signature", void 0);
|
|
5248
5248
|
class Mr {
|
|
5249
5249
|
constructor(e = {}) {
|
|
5250
|
-
this.issuer = new
|
|
5250
|
+
this.issuer = new Ie(), this.serialNumber = new ArrayBuffer(0), Object.assign(this, e);
|
|
5251
5251
|
}
|
|
5252
5252
|
}
|
|
5253
5253
|
o([
|
|
5254
|
-
c({ type:
|
|
5254
|
+
c({ type: Ie })
|
|
5255
5255
|
], Mr.prototype, "issuer", void 0);
|
|
5256
5256
|
o([
|
|
5257
5257
|
c({ type: h.Integer, converter: ge })
|
|
@@ -6218,18 +6218,18 @@ o([
|
|
|
6218
6218
|
c({ type: h.Integer, converter: ge })
|
|
6219
6219
|
], vn.prototype, "s", void 0);
|
|
6220
6220
|
const We = "1.2.840.113549.1.1", cr = `${We}.1`, nh = `${We}.7`, sh = `${We}.9`, Zr = `${We}.10`, oh = `${We}.2`, ah = `${We}.4`, mn = `${We}.5`, ch = `${We}.14`, _o = `${We}.11`, bn = `${We}.12`, wn = `${We}.13`, df = `${We}.15`, hf = `${We}.16`, An = "1.3.14.3.2.26", pf = "2.16.840.1.101.3.4.2.4", Sn = "2.16.840.1.101.3.4.2.1", kn = "2.16.840.1.101.3.4.2.2", xn = "2.16.840.1.101.3.4.2.3", lh = "2.16.840.1.101.3.4.2.5", uh = "2.16.840.1.101.3.4.2.6", fh = "1.2.840.113549.2.2", dh = "1.2.840.113549.2.5", hs = `${We}.8`;
|
|
6221
|
-
function
|
|
6221
|
+
function Ee(r) {
|
|
6222
6222
|
return new D({ algorithm: r, parameters: null });
|
|
6223
6223
|
}
|
|
6224
|
-
|
|
6225
|
-
|
|
6226
|
-
const lr =
|
|
6227
|
-
|
|
6228
|
-
|
|
6229
|
-
|
|
6230
|
-
|
|
6231
|
-
|
|
6232
|
-
|
|
6224
|
+
Ee(fh);
|
|
6225
|
+
Ee(dh);
|
|
6226
|
+
const lr = Ee(An);
|
|
6227
|
+
Ee(pf);
|
|
6228
|
+
Ee(Sn);
|
|
6229
|
+
Ee(kn);
|
|
6230
|
+
Ee(xn);
|
|
6231
|
+
Ee(lh);
|
|
6232
|
+
Ee(uh);
|
|
6233
6233
|
const yf = new D({
|
|
6234
6234
|
algorithm: hs,
|
|
6235
6235
|
parameters: R.serialize(lr)
|
|
@@ -6237,16 +6237,16 @@ const yf = new D({
|
|
|
6237
6237
|
algorithm: sh,
|
|
6238
6238
|
parameters: R.serialize(Qi.toASN(new Uint8Array([218, 57, 163, 238, 94, 107, 75, 13, 50, 85, 191, 239, 149, 96, 24, 144, 175, 216, 7, 9]).buffer))
|
|
6239
6239
|
});
|
|
6240
|
-
|
|
6241
|
-
|
|
6242
|
-
|
|
6243
|
-
|
|
6244
|
-
|
|
6245
|
-
|
|
6246
|
-
|
|
6247
|
-
|
|
6248
|
-
|
|
6249
|
-
|
|
6240
|
+
Ee(cr);
|
|
6241
|
+
Ee(oh);
|
|
6242
|
+
Ee(ah);
|
|
6243
|
+
Ee(mn);
|
|
6244
|
+
Ee(df);
|
|
6245
|
+
Ee(hf);
|
|
6246
|
+
Ee(bn);
|
|
6247
|
+
Ee(wn);
|
|
6248
|
+
Ee(df);
|
|
6249
|
+
Ee(hf);
|
|
6250
6250
|
class ps {
|
|
6251
6251
|
constructor(e = {}) {
|
|
6252
6252
|
this.hashAlgorithm = new D(lr), this.maskGenAlgorithm = new D({
|
|
@@ -7278,14 +7278,14 @@ On = ea = o([
|
|
|
7278
7278
|
], On);
|
|
7279
7279
|
class Kr {
|
|
7280
7280
|
constructor(e = {}) {
|
|
7281
|
-
this.version = 0, this.subject = new
|
|
7281
|
+
this.version = 0, this.subject = new Ie(), this.subjectPKInfo = new vt(), this.attributes = new On(), Object.assign(this, e);
|
|
7282
7282
|
}
|
|
7283
7283
|
}
|
|
7284
7284
|
o([
|
|
7285
7285
|
c({ type: h.Integer })
|
|
7286
7286
|
], Kr.prototype, "version", void 0);
|
|
7287
7287
|
o([
|
|
7288
|
-
c({ type:
|
|
7288
|
+
c({ type: Ie })
|
|
7289
7289
|
], Kr.prototype, "subject", void 0);
|
|
7290
7290
|
o([
|
|
7291
7291
|
c({ type: vt })
|
|
@@ -7795,13 +7795,13 @@ class Ft {
|
|
|
7795
7795
|
return /^[A-Za-z0-9 '()+,-./:=?]*$/g.test(e);
|
|
7796
7796
|
}
|
|
7797
7797
|
constructor(e, t = {}) {
|
|
7798
|
-
this.extraNames = new Nf(), this.asn = new
|
|
7798
|
+
this.extraNames = new Nf(), this.asn = new Ie();
|
|
7799
7799
|
for (const i in t)
|
|
7800
7800
|
if (Object.prototype.hasOwnProperty.call(t, i)) {
|
|
7801
7801
|
const n = t[i];
|
|
7802
7802
|
this.extraNames.register(i, n);
|
|
7803
7803
|
}
|
|
7804
|
-
typeof e == "string" ? this.asn = this.fromString(e) : e instanceof
|
|
7804
|
+
typeof e == "string" ? this.asn = this.fromString(e) : e instanceof Ie ? this.asn = e : P.isBufferSource(e) ? this.asn = R.parse(e, Ie) : this.asn = this.fromJSON(e);
|
|
7805
7805
|
}
|
|
7806
7806
|
getField(e) {
|
|
7807
7807
|
const t = this.extraNames.findId(e) || Ge.findId(e), i = [];
|
|
@@ -7833,7 +7833,7 @@ class Ft {
|
|
|
7833
7833
|
return t;
|
|
7834
7834
|
}
|
|
7835
7835
|
fromString(e) {
|
|
7836
|
-
const t = new
|
|
7836
|
+
const t = new Ie(), i = /(\d\.[\d.]*\d|[A-Za-z]+)=((?:"")|(?:".*?[^\\]")|(?:[^,+].*?(?:[^\\][,+]))|(?:))([,+])?/g;
|
|
7837
7837
|
let n = null, s = ",";
|
|
7838
7838
|
for (; n = i.exec(`${e},`); ) {
|
|
7839
7839
|
let [, a, l] = n;
|
|
@@ -7847,7 +7847,7 @@ class Ft {
|
|
|
7847
7847
|
return t;
|
|
7848
7848
|
}
|
|
7849
7849
|
fromJSON(e) {
|
|
7850
|
-
const t = new
|
|
7850
|
+
const t = new Ie();
|
|
7851
7851
|
for (const i of e) {
|
|
7852
7852
|
const n = new xr();
|
|
7853
7853
|
for (const s in i) {
|
|
@@ -7916,7 +7916,7 @@ class Ut extends Wt {
|
|
|
7916
7916
|
if (e.length === 2)
|
|
7917
7917
|
switch (e[0]) {
|
|
7918
7918
|
case Ts: {
|
|
7919
|
-
const i = new Ft(e[1]).toArrayBuffer(), n = R.parse(i,
|
|
7919
|
+
const i = new Ft(e[1]).toArrayBuffer(), n = R.parse(i, Ie);
|
|
7920
7920
|
t = new re({ directoryName: n });
|
|
7921
7921
|
break;
|
|
7922
7922
|
}
|
|
@@ -9024,7 +9024,7 @@ function Mf() {
|
|
|
9024
9024
|
};
|
|
9025
9025
|
}
|
|
9026
9026
|
function zh() {
|
|
9027
|
-
const r = Mf(), e =
|
|
9027
|
+
const r = Mf(), e = xe({}), t = (n) => {
|
|
9028
9028
|
if (!(n.id in e.value))
|
|
9029
9029
|
try {
|
|
9030
9030
|
e.value[n.id] = r.parseMetaCertificateData(n.cert);
|
|
@@ -9348,7 +9348,7 @@ const ut = {
|
|
|
9348
9348
|
var Y, ee;
|
|
9349
9349
|
let $ = `${i.config.apiBaseUrl}${Xr.list[i.config.app]}`;
|
|
9350
9350
|
return i.config.app === "konnect" ? $ = $.replace(/{controlPlaneId}/gi, ((Y = i.config) == null ? void 0 : Y.controlPlaneId) || "") : i.config.app === "kongManager" && ($ = $.replace(/\/{workspace}/gi, (ee = i.config) != null && ee.workspace ? `/${i.config.workspace}` : "")), $;
|
|
9351
|
-
}), w =
|
|
9351
|
+
}), w = xe(""), E = ne(() => {
|
|
9352
9352
|
const $ = i.config.app === "konnect" || i.config.isExactMatch;
|
|
9353
9353
|
return $ ? {
|
|
9354
9354
|
isExactMatch: $,
|
|
@@ -9365,7 +9365,7 @@ const ut = {
|
|
|
9365
9365
|
w.value = "";
|
|
9366
9366
|
}, U = () => {
|
|
9367
9367
|
Z.value++;
|
|
9368
|
-
}, x =
|
|
9368
|
+
}, x = xe(null), _ = async ($, Y) => {
|
|
9369
9369
|
const ee = $.id;
|
|
9370
9370
|
if (!await Y(ee)) {
|
|
9371
9371
|
t("copy:error", {
|
|
@@ -9380,7 +9380,7 @@ const ut = {
|
|
|
9380
9380
|
field: "id",
|
|
9381
9381
|
message: n("certificates.copy.success", { val: ee })
|
|
9382
9382
|
});
|
|
9383
|
-
},
|
|
9383
|
+
}, Ce = async ($, Y) => {
|
|
9384
9384
|
const ee = JSON.stringify($);
|
|
9385
9385
|
if (!await Y(ee)) {
|
|
9386
9386
|
t("copy:error", {
|
|
@@ -9408,7 +9408,7 @@ const ut = {
|
|
|
9408
9408
|
label: n("certificates.actions.addSni"),
|
|
9409
9409
|
to: i.config.getCreateSniRoute($)
|
|
9410
9410
|
};
|
|
9411
|
-
}, Re =
|
|
9411
|
+
}, Re = xe(void 0), ie = xe(!1), pt = xe(!1), Jt = xe(""), vr = Ol(i.config, A.value), { certificateDataCache: $t, getCertificateData: xt } = ut.useCertificate(), z = ($) => {
|
|
9412
9412
|
Re.value = $, ie.value = !0;
|
|
9413
9413
|
}, yt = () => {
|
|
9414
9414
|
ie.value = !1;
|
|
@@ -9437,7 +9437,7 @@ const ut = {
|
|
|
9437
9437
|
}
|
|
9438
9438
|
$t.value = {}, x.value = null;
|
|
9439
9439
|
});
|
|
9440
|
-
const Dt =
|
|
9440
|
+
const Dt = xe({
|
|
9441
9441
|
ctaPath: i.config.createRoute,
|
|
9442
9442
|
ctaText: void 0,
|
|
9443
9443
|
message: `${n("certificates.list.empty_state.description")}${i.config.additionMessageForEmptyState ? ` ${i.config.additionMessageForEmptyState}` : ""}`,
|
|
@@ -9446,8 +9446,8 @@ const ut = {
|
|
|
9446
9446
|
return Bl(async () => {
|
|
9447
9447
|
await i.canCreate() && (Dt.value.title = n("certificates.list.empty_state.title"), Dt.value.ctaText = n("certificates.actions.create"));
|
|
9448
9448
|
}), ($, Y) => {
|
|
9449
|
-
const ee =
|
|
9450
|
-
return
|
|
9449
|
+
const ee = ke("KButton"), Fe = ke("KCopy"), X = ke("KDropdownItem"), Ne = ke("KClipboardProvider");
|
|
9450
|
+
return W(), de("div", Zh, [
|
|
9451
9451
|
T(v(Tl), {
|
|
9452
9452
|
"cache-identifier": r.cacheIdentifier,
|
|
9453
9453
|
"disable-sorting": N.value,
|
|
@@ -9461,19 +9461,19 @@ const ut = {
|
|
|
9461
9461
|
query: w.value,
|
|
9462
9462
|
"table-headers": v(y),
|
|
9463
9463
|
onClearSearchInput: le,
|
|
9464
|
-
"onClick:row": Y[4] || (Y[4] = (
|
|
9464
|
+
"onClick:row": Y[4] || (Y[4] = (G) => fe(G)),
|
|
9465
9465
|
onSort: U,
|
|
9466
9466
|
onState: v(d)
|
|
9467
9467
|
}, ti({
|
|
9468
9468
|
"toolbar-filter": B(() => [
|
|
9469
|
-
T(v(
|
|
9469
|
+
T(v(jl), {
|
|
9470
9470
|
modelValue: w.value,
|
|
9471
|
-
"onUpdate:modelValue": Y[0] || (Y[0] = (
|
|
9471
|
+
"onUpdate:modelValue": Y[0] || (Y[0] = (G) => w.value = G),
|
|
9472
9472
|
config: E.value
|
|
9473
9473
|
}, null, 8, ["modelValue", "config"]),
|
|
9474
9474
|
T(v(ct), { "auth-function": r.canCreate }, {
|
|
9475
9475
|
default: B(() => [
|
|
9476
|
-
r.useToolbarCreationButton ? (
|
|
9476
|
+
r.useToolbarCreationButton ? (W(), we(ee, {
|
|
9477
9477
|
key: 0,
|
|
9478
9478
|
appearance: "primary",
|
|
9479
9479
|
"data-testid": "toolbar-add-certificate",
|
|
@@ -9491,25 +9491,25 @@ const ut = {
|
|
|
9491
9491
|
}, 8, ["auth-function"])
|
|
9492
9492
|
]),
|
|
9493
9493
|
"toolbar-button": B(() => [
|
|
9494
|
-
(
|
|
9494
|
+
(W(), we(zi, {
|
|
9495
9495
|
disabled: !r.useActionOutside,
|
|
9496
9496
|
to: "#kong-ui-app-page-header-action-button"
|
|
9497
9497
|
}, [
|
|
9498
9498
|
$e("div", Qh, [
|
|
9499
|
-
p.value ? (
|
|
9499
|
+
p.value ? (W(), we(ee, {
|
|
9500
9500
|
key: 0,
|
|
9501
9501
|
appearance: "secondary",
|
|
9502
9502
|
class: "open-learning-hub",
|
|
9503
9503
|
"data-testid": "certificates-learn-more-button",
|
|
9504
9504
|
icon: "",
|
|
9505
|
-
onClick: Y[1] || (Y[1] = (
|
|
9505
|
+
onClick: Y[1] || (Y[1] = (G) => $.$emit("click:learn-more"))
|
|
9506
9506
|
}, {
|
|
9507
9507
|
default: B(() => [
|
|
9508
9508
|
T(v(Ji), { decorative: "" })
|
|
9509
9509
|
]),
|
|
9510
9510
|
_: 1
|
|
9511
9511
|
})) : Te("", !0),
|
|
9512
|
-
r.useToolbarCreationButton ? Te("", !0) : (
|
|
9512
|
+
r.useToolbarCreationButton ? Te("", !0) : (W(), we(v(ct), {
|
|
9513
9513
|
key: 1,
|
|
9514
9514
|
"auth-function": r.canCreate
|
|
9515
9515
|
}, {
|
|
@@ -9532,43 +9532,43 @@ const ut = {
|
|
|
9532
9532
|
])
|
|
9533
9533
|
], 8, ["disabled"]))
|
|
9534
9534
|
]),
|
|
9535
|
-
subject: B(({ row:
|
|
9536
|
-
var
|
|
9535
|
+
subject: B(({ row: G }) => {
|
|
9536
|
+
var Oe;
|
|
9537
9537
|
return [
|
|
9538
|
-
r.config.app === "konnect" ? (
|
|
9538
|
+
r.config.app === "konnect" ? (W(), de("b", ep, Q((Oe = G == null ? void 0 : G.metadata) != null && Oe.subject ? G.metadata.subject : "-"), 1)) : (W(), de("b", tp, Q(v(xt)(G).schemaSubject || "-"), 1))
|
|
9539
9539
|
];
|
|
9540
9540
|
}),
|
|
9541
|
-
expiry: B(({ row:
|
|
9542
|
-
var
|
|
9541
|
+
expiry: B(({ row: G }) => {
|
|
9542
|
+
var Oe;
|
|
9543
9543
|
return [
|
|
9544
|
-
r.config.app === "konnect" ? (
|
|
9544
|
+
r.config.app === "konnect" ? (W(), de("span", rp, Q((Oe = G == null ? void 0 : G.metadata) != null && Oe.expiry ? v(s)(G.metadata.expiry) : "-"), 1)) : (W(), de("span", ip, Q(v(xt)(G).schemaExpiry ? v(s)(v(xt)(G).schemaExpiry) : "-"), 1))
|
|
9545
9545
|
];
|
|
9546
9546
|
}),
|
|
9547
|
-
san: B(({ row:
|
|
9548
|
-
var
|
|
9547
|
+
san: B(({ row: G }) => {
|
|
9548
|
+
var Oe;
|
|
9549
9549
|
return [
|
|
9550
|
-
r.config.app === "konnect" ? (
|
|
9550
|
+
r.config.app === "konnect" ? (W(), de("span", np, Q((Oe = G == null ? void 0 : G.metadata) != null && Oe.dns_names ? `dns=${G.metadata.dns_names.join(", ")}` : "-"), 1)) : (W(), de("span", sp, Q(v(xt)(G).schemaSanNames || "-"), 1))
|
|
9551
9551
|
];
|
|
9552
9552
|
}),
|
|
9553
|
-
cert: B(({ row:
|
|
9554
|
-
|
|
9553
|
+
cert: B(({ row: G }) => [
|
|
9554
|
+
G != null && G.cert ? (W(), we(Fe, {
|
|
9555
9555
|
key: 0,
|
|
9556
9556
|
"data-testid": "copy-certificate-cert",
|
|
9557
|
-
text:
|
|
9557
|
+
text: G.cert,
|
|
9558
9558
|
truncate: ""
|
|
9559
|
-
}, null, 8, ["text"])) : (
|
|
9559
|
+
}, null, 8, ["text"])) : (W(), de("span", op, "-"))
|
|
9560
9560
|
]),
|
|
9561
|
-
tags: B(({ row:
|
|
9562
|
-
T(v(
|
|
9563
|
-
tags:
|
|
9561
|
+
tags: B(({ row: G }) => [
|
|
9562
|
+
T(v(_l), {
|
|
9563
|
+
tags: G == null ? void 0 : G.tags
|
|
9564
9564
|
}, null, 8, ["tags"])
|
|
9565
9565
|
]),
|
|
9566
|
-
actions: B(({ row:
|
|
9566
|
+
actions: B(({ row: G }) => [
|
|
9567
9567
|
T(Ne, null, {
|
|
9568
|
-
default: B(({ copyToClipboard:
|
|
9568
|
+
default: B(({ copyToClipboard: Oe }) => [
|
|
9569
9569
|
T(X, {
|
|
9570
9570
|
"data-testid": "action-entity-copy-id",
|
|
9571
|
-
onClick: (_i) => _(
|
|
9571
|
+
onClick: (_i) => _(G, Oe)
|
|
9572
9572
|
}, {
|
|
9573
9573
|
default: B(() => [
|
|
9574
9574
|
he(Q(v(n)("certificates.actions.copy_id")), 1)
|
|
@@ -9579,10 +9579,10 @@ const ut = {
|
|
|
9579
9579
|
_: 2
|
|
9580
9580
|
}, 1024),
|
|
9581
9581
|
T(Ne, null, {
|
|
9582
|
-
default: B(({ copyToClipboard:
|
|
9582
|
+
default: B(({ copyToClipboard: Oe }) => [
|
|
9583
9583
|
T(X, {
|
|
9584
9584
|
"data-testid": "action-entity-copy-json",
|
|
9585
|
-
onClick: (_i) =>
|
|
9585
|
+
onClick: (_i) => Ce(G, Oe)
|
|
9586
9586
|
}, {
|
|
9587
9587
|
default: B(() => [
|
|
9588
9588
|
he(Q(v(n)("certificates.actions.copy_json")), 1)
|
|
@@ -9593,49 +9593,49 @@ const ut = {
|
|
|
9593
9593
|
_: 2
|
|
9594
9594
|
}, 1024),
|
|
9595
9595
|
T(v(ct), {
|
|
9596
|
-
"auth-function": () => r.canRetrieve(
|
|
9596
|
+
"auth-function": () => r.canRetrieve(G)
|
|
9597
9597
|
}, {
|
|
9598
9598
|
default: B(() => [
|
|
9599
9599
|
T(X, {
|
|
9600
9600
|
"data-testid": "action-entity-view",
|
|
9601
9601
|
"has-divider": "",
|
|
9602
|
-
item: ht(
|
|
9602
|
+
item: ht(G.id)
|
|
9603
9603
|
}, null, 8, ["item"])
|
|
9604
9604
|
]),
|
|
9605
9605
|
_: 2
|
|
9606
9606
|
}, 1032, ["auth-function"]),
|
|
9607
9607
|
T(v(ct), {
|
|
9608
|
-
"auth-function": () => r.canEdit(
|
|
9608
|
+
"auth-function": () => r.canEdit(G)
|
|
9609
9609
|
}, {
|
|
9610
9610
|
default: B(() => [
|
|
9611
9611
|
T(X, {
|
|
9612
9612
|
"data-testid": "action-entity-edit",
|
|
9613
|
-
item: ve(
|
|
9613
|
+
item: ve(G.id)
|
|
9614
9614
|
}, null, 8, ["item"])
|
|
9615
9615
|
]),
|
|
9616
9616
|
_: 2
|
|
9617
9617
|
}, 1032, ["auth-function"]),
|
|
9618
|
-
r.config.getCreateSniRoute ? (
|
|
9618
|
+
r.config.getCreateSniRoute ? (W(), we(v(ct), {
|
|
9619
9619
|
key: 0,
|
|
9620
9620
|
"auth-function": () => r.canCreateSni()
|
|
9621
9621
|
}, {
|
|
9622
9622
|
default: B(() => [
|
|
9623
9623
|
T(X, {
|
|
9624
9624
|
"data-testid": "action-entity-add-sni",
|
|
9625
|
-
item: me(
|
|
9625
|
+
item: me(G.id)
|
|
9626
9626
|
}, null, 8, ["item"])
|
|
9627
9627
|
]),
|
|
9628
9628
|
_: 2
|
|
9629
9629
|
}, 1032, ["auth-function"])) : Te("", !0),
|
|
9630
9630
|
T(v(ct), {
|
|
9631
|
-
"auth-function": () => r.canDelete(
|
|
9631
|
+
"auth-function": () => r.canDelete(G)
|
|
9632
9632
|
}, {
|
|
9633
9633
|
default: B(() => [
|
|
9634
9634
|
T(X, {
|
|
9635
9635
|
danger: "",
|
|
9636
9636
|
"data-testid": "action-entity-delete",
|
|
9637
9637
|
"has-divider": "",
|
|
9638
|
-
onClick: (
|
|
9638
|
+
onClick: (Oe) => z(G)
|
|
9639
9639
|
}, {
|
|
9640
9640
|
default: B(() => [
|
|
9641
9641
|
he(Q(v(n)("certificates.actions.delete")), 1)
|
|
@@ -9651,7 +9651,7 @@ const ut = {
|
|
|
9651
9651
|
!v(m) && q.value ? {
|
|
9652
9652
|
name: "outside-actions",
|
|
9653
9653
|
fn: B(() => [
|
|
9654
|
-
(
|
|
9654
|
+
(W(), we(zi, {
|
|
9655
9655
|
disabled: !r.useActionOutside,
|
|
9656
9656
|
to: "#kong-ui-app-page-header-action-button"
|
|
9657
9657
|
}, [
|
|
@@ -9660,7 +9660,7 @@ const ut = {
|
|
|
9660
9660
|
class: "open-learning-hub",
|
|
9661
9661
|
"data-testid": "certificates-learn-more-button",
|
|
9662
9662
|
icon: "",
|
|
9663
|
-
onClick: Y[2] || (Y[2] = (
|
|
9663
|
+
onClick: Y[2] || (Y[2] = (G) => $.$emit("click:learn-more"))
|
|
9664
9664
|
}, {
|
|
9665
9665
|
default: B(() => [
|
|
9666
9666
|
T(v(Ji), { decorative: "" })
|
|
@@ -9674,7 +9674,7 @@ const ut = {
|
|
|
9674
9674
|
!w.value && r.enableV2EmptyStates && r.config.app === "konnect" ? {
|
|
9675
9675
|
name: "empty-state",
|
|
9676
9676
|
fn: B(() => {
|
|
9677
|
-
var
|
|
9677
|
+
var G;
|
|
9678
9678
|
return [
|
|
9679
9679
|
T(v(Pl), {
|
|
9680
9680
|
"action-button-text": v(n)("certificates.list.empty_state_v2.create"),
|
|
@@ -9685,7 +9685,7 @@ const ut = {
|
|
|
9685
9685
|
"learn-more": r.config.app === "konnect",
|
|
9686
9686
|
title: v(n)("certificates.list.empty_state_v2.title"),
|
|
9687
9687
|
"onClick:create": pe,
|
|
9688
|
-
"onClick:learnMore": Y[3] || (Y[3] = (
|
|
9688
|
+
"onClick:learnMore": Y[3] || (Y[3] = (Oe) => $.$emit("click:learn-more"))
|
|
9689
9689
|
}, ti({
|
|
9690
9690
|
image: B(() => [
|
|
9691
9691
|
$e("div", Xh, [
|
|
@@ -9697,7 +9697,7 @@ const ut = {
|
|
|
9697
9697
|
]),
|
|
9698
9698
|
_: 2
|
|
9699
9699
|
}, [
|
|
9700
|
-
(
|
|
9700
|
+
(G = r.config) != null && G.isControlPlaneGroup ? {
|
|
9701
9701
|
name: "message",
|
|
9702
9702
|
fn: B(() => [
|
|
9703
9703
|
he(Q(v(n)("certificates.list.empty_state_v2.group")), 1)
|
|
@@ -9762,14 +9762,14 @@ const ut = {
|
|
|
9762
9762
|
},
|
|
9763
9763
|
emits: ["add", "remove", "update:modelValue"],
|
|
9764
9764
|
setup(r, { emit: e }) {
|
|
9765
|
-
const t = r, i = e, { i18nT: n, i18n: { t: s } } = ut.useI18n(), a =
|
|
9765
|
+
const t = r, i = e, { i18nT: n, i18n: { t: s } } = ut.useI18n(), a = xe([]);
|
|
9766
9766
|
return qi(t.modelValue, (l) => {
|
|
9767
9767
|
a.value = [...l];
|
|
9768
9768
|
}, { immediate: !0, deep: !0 }), qi(a, (l) => {
|
|
9769
9769
|
i("update:modelValue", l);
|
|
9770
9770
|
}, { deep: !0 }), (l, u) => {
|
|
9771
|
-
const d =
|
|
9772
|
-
return
|
|
9771
|
+
const d = ke("KLabel"), m = ke("KInput"), p = ke("KButton"), q = ke("router-link");
|
|
9772
|
+
return W(), de("div", cp, [
|
|
9773
9773
|
T(d, {
|
|
9774
9774
|
info: v(s)("certificates.form.fields.snis.tooltip")
|
|
9775
9775
|
}, {
|
|
@@ -9778,11 +9778,11 @@ const ut = {
|
|
|
9778
9778
|
]),
|
|
9779
9779
|
_: 1
|
|
9780
9780
|
}, 8, ["info"]),
|
|
9781
|
-
(
|
|
9781
|
+
(W(!0), de(ri, null, ii(a.value, (N, f) => (W(), de("div", {
|
|
9782
9782
|
key: f,
|
|
9783
9783
|
class: "sni-field-input"
|
|
9784
9784
|
}, [
|
|
9785
|
-
!r.isEditing || a.value[f] ? (
|
|
9785
|
+
!r.isEditing || a.value[f] ? (W(), we(m, {
|
|
9786
9786
|
key: 0,
|
|
9787
9787
|
modelValue: a.value[f],
|
|
9788
9788
|
"onUpdate:modelValue": (y) => a.value[f] = y,
|
|
@@ -9791,7 +9791,7 @@ const ut = {
|
|
|
9791
9791
|
disabled: r.isEditing,
|
|
9792
9792
|
placeholder: v(s)("certificates.form.fields.snis.placeholder")
|
|
9793
9793
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "data-testid", "disabled", "placeholder"])) : Te("", !0),
|
|
9794
|
-
r.isEditing ? Te("", !0) : (
|
|
9794
|
+
r.isEditing ? Te("", !0) : (W(), de("div", lp, [
|
|
9795
9795
|
T(p, {
|
|
9796
9796
|
appearance: "tertiary",
|
|
9797
9797
|
class: "remove-button",
|
|
@@ -9818,7 +9818,7 @@ const ut = {
|
|
|
9818
9818
|
}, 1032, ["disabled"])
|
|
9819
9819
|
]))
|
|
9820
9820
|
]))), 128)),
|
|
9821
|
-
a.value.length === 0 ? (
|
|
9821
|
+
a.value.length === 0 ? (W(), de("div", up, [
|
|
9822
9822
|
T(p, {
|
|
9823
9823
|
onClick: u[1] || (u[1] = (N) => l.$emit("add"))
|
|
9824
9824
|
}, {
|
|
@@ -9828,7 +9828,7 @@ const ut = {
|
|
|
9828
9828
|
_: 1
|
|
9829
9829
|
})
|
|
9830
9830
|
])) : Te("", !0),
|
|
9831
|
-
r.isEditing ? (
|
|
9831
|
+
r.isEditing ? (W(), we(v(n), {
|
|
9832
9832
|
key: 1,
|
|
9833
9833
|
keypath: "certificates.form.fields.snis.editingTip"
|
|
9834
9834
|
}, {
|
|
@@ -9916,11 +9916,11 @@ const ut = {
|
|
|
9916
9916
|
tags: (x = (U = p.fields.tags.split(",")) == null ? void 0 : U.map((_) => String(_ || "").trim())) == null ? void 0 : x.filter((_) => _ !== "")
|
|
9917
9917
|
};
|
|
9918
9918
|
}), Z = async () => {
|
|
9919
|
-
var U, x, _,
|
|
9919
|
+
var U, x, _, Ce, fe, ht, ve, me, Re;
|
|
9920
9920
|
try {
|
|
9921
9921
|
p.isReadonly = !0;
|
|
9922
9922
|
let ie;
|
|
9923
|
-
await u.post(E.value, O.value), m.value === "create" ? ie = await u.post(k.value, O.value) : m.value === "edit" && (ie = ((U = i.config) == null ? void 0 : U.app) === "konnect" ? await u.put(k.value, O.value) : await u.patch(k.value, O.value)), p.fields.cert = ((x = ie == null ? void 0 : ie.data) == null ? void 0 : x.cert) || "", p.fields.key = ((_ = ie == null ? void 0 : ie.data) == null ? void 0 : _.key) || "", p.fields.certAlt = ((
|
|
9923
|
+
await u.post(E.value, O.value), m.value === "create" ? ie = await u.post(k.value, O.value) : m.value === "edit" && (ie = ((U = i.config) == null ? void 0 : U.app) === "konnect" ? await u.put(k.value, O.value) : await u.patch(k.value, O.value)), p.fields.cert = ((x = ie == null ? void 0 : ie.data) == null ? void 0 : x.cert) || "", p.fields.key = ((_ = ie == null ? void 0 : ie.data) == null ? void 0 : _.key) || "", p.fields.certAlt = ((Ce = ie == null ? void 0 : ie.data) == null ? void 0 : Ce.cert_alt) || "", p.fields.keyAlt = ((fe = ie == null ? void 0 : ie.data) == null ? void 0 : fe.key_alt) || "", p.fields.snis = (ve = (ht = ie == null ? void 0 : ie.data) == null ? void 0 : ht.snis) != null && ve.length ? ie.data.snis : [""], p.fields.tags = ((Re = (me = ie == null ? void 0 : ie.data) == null ? void 0 : me.tags) == null ? void 0 : Re.join(", ")) || "", Object.assign(q, p.fields), t("update", ie == null ? void 0 : ie.data);
|
|
9924
9924
|
} catch (ie) {
|
|
9925
9925
|
p.errorMessage = l(ie), t("error", ie);
|
|
9926
9926
|
} finally {
|
|
@@ -9928,8 +9928,8 @@ const ut = {
|
|
|
9928
9928
|
}
|
|
9929
9929
|
};
|
|
9930
9930
|
return (U, x) => {
|
|
9931
|
-
const _ =
|
|
9932
|
-
return
|
|
9931
|
+
const _ = ke("KTextArea"), Ce = ke("KInput");
|
|
9932
|
+
return W(), de("div", hp, [
|
|
9933
9933
|
T(v(Dl), {
|
|
9934
9934
|
"can-submit": N.value,
|
|
9935
9935
|
config: r.config,
|
|
@@ -10049,7 +10049,7 @@ const ut = {
|
|
|
10049
10049
|
]),
|
|
10050
10050
|
_: 1
|
|
10051
10051
|
}, 8, ["modelValue", "label", "readonly"]),
|
|
10052
|
-
r.showSnisField && r.config.sniListRoute ? (
|
|
10052
|
+
r.showSnisField && r.config.sniListRoute ? (W(), we(dp, {
|
|
10053
10053
|
key: 0,
|
|
10054
10054
|
modelValue: p.fields.snis,
|
|
10055
10055
|
"onUpdate:modelValue": x[4] || (x[4] = (fe) => p.fields.snis = fe),
|
|
@@ -10066,7 +10066,7 @@ const ut = {
|
|
|
10066
10066
|
title: v(a)("certificates.form.sections.general.title")
|
|
10067
10067
|
}, {
|
|
10068
10068
|
default: B(() => [
|
|
10069
|
-
T(
|
|
10069
|
+
T(Ce, {
|
|
10070
10070
|
modelValue: p.fields.tags,
|
|
10071
10071
|
"onUpdate:modelValue": x[6] || (x[6] = (fe) => p.fields.tags = fe),
|
|
10072
10072
|
modelModifiers: { trim: !0 },
|
|
@@ -10135,7 +10135,7 @@ const ut = {
|
|
|
10135
10135
|
},
|
|
10136
10136
|
emits: ["loading", "fetch:error", "fetch:success"],
|
|
10137
10137
|
setup(r, { emit: e }) {
|
|
10138
|
-
const t = ["dns_names", "san_names", "subject"], i = e, n = r, { i18n: { t: s, formatUnixTimeStamp: a } } = ut.useI18n(), { convertKeyToTitle: l } = Ml(), { getPropValue: u } = Ul(), { getCertificateData: d } = ut.useCertificate(), m = ne(() => ei.form[n.config.app].edit), p =
|
|
10138
|
+
const t = ["dns_names", "san_names", "subject"], i = e, n = r, { i18n: { t: s, formatUnixTimeStamp: a } } = ut.useI18n(), { convertKeyToTitle: l } = Ml(), { getPropValue: u } = Ul(), { getCertificateData: d } = ut.useCertificate(), m = ne(() => ei.form[n.config.app].edit), p = xe(), q = ne(() => {
|
|
10139
10139
|
if (p.value)
|
|
10140
10140
|
return d(p.value);
|
|
10141
10141
|
}), N = ne(() => {
|
|
@@ -10157,7 +10157,7 @@ const ut = {
|
|
|
10157
10157
|
return Z[k];
|
|
10158
10158
|
}, w = (k) => {
|
|
10159
10159
|
p.value = k, i("fetch:success", k);
|
|
10160
|
-
}, E =
|
|
10160
|
+
}, E = xe({
|
|
10161
10161
|
id: {},
|
|
10162
10162
|
updated_at: {},
|
|
10163
10163
|
created_at: {},
|
|
@@ -10200,8 +10200,8 @@ const ut = {
|
|
|
10200
10200
|
}
|
|
10201
10201
|
});
|
|
10202
10202
|
return (k, O) => {
|
|
10203
|
-
const Z =
|
|
10204
|
-
return
|
|
10203
|
+
const Z = ke("KCodeBlock"), le = ke("KLabel"), U = ke("KBadge");
|
|
10204
|
+
return W(), de("div", yp, [
|
|
10205
10205
|
T(v(Ll), {
|
|
10206
10206
|
config: r.config,
|
|
10207
10207
|
"config-card-doc": r.configCardDoc,
|
|
@@ -10214,7 +10214,7 @@ const ut = {
|
|
|
10214
10214
|
onLoading: O[1] || (O[1] = (x) => k.$emit("loading", x))
|
|
10215
10215
|
}, {
|
|
10216
10216
|
cert: B((x) => [
|
|
10217
|
-
v(u)("rowValue", x) ? (
|
|
10217
|
+
v(u)("rowValue", x) ? (W(), we(Z, {
|
|
10218
10218
|
key: 0,
|
|
10219
10219
|
id: `ca-cert-${r.config.entityId}-cert-codeblock`,
|
|
10220
10220
|
code: v(u)("rowValue", x),
|
|
@@ -10231,7 +10231,7 @@ const ut = {
|
|
|
10231
10231
|
})
|
|
10232
10232
|
]),
|
|
10233
10233
|
metadata: B((x) => [
|
|
10234
|
-
(
|
|
10234
|
+
(W(!0), de(ri, null, ii(Object.keys(v(u)("rowValue", x)).filter((_) => !t.includes(_)), (_) => (W(), we(v(Hl), {
|
|
10235
10235
|
key: _,
|
|
10236
10236
|
"data-testid": `ca-cert-metadata-${_}`,
|
|
10237
10237
|
item: {
|
|
@@ -10249,8 +10249,8 @@ const ut = {
|
|
|
10249
10249
|
he(Q(N.value || "–"), 1)
|
|
10250
10250
|
]),
|
|
10251
10251
|
key_usages: B(() => [
|
|
10252
|
-
y.value.length ? Te("", !0) : (
|
|
10253
|
-
(
|
|
10252
|
+
y.value.length ? Te("", !0) : (W(), de("div", gp, Q("–"))),
|
|
10253
|
+
(W(!0), de(ri, null, ii(y.value, (x, _) => (W(), we(U, {
|
|
10254
10254
|
key: `key_usages-badge-tag-${_}`,
|
|
10255
10255
|
class: "config-badge",
|
|
10256
10256
|
"data-testid": `key_usages-badge-tag-${_}`,
|
|
@@ -10337,7 +10337,7 @@ const ut = {
|
|
|
10337
10337
|
var $, Y;
|
|
10338
10338
|
let te = `${i.config.apiBaseUrl}${ei.list[i.config.app]}`;
|
|
10339
10339
|
return i.config.app === "konnect" ? te = te.replace(/{controlPlaneId}/gi, (($ = i.config) == null ? void 0 : $.controlPlaneId) || "") : i.config.app === "kongManager" && (te = te.replace(/\/{workspace}/gi, (Y = i.config) != null && Y.workspace ? `/${i.config.workspace}` : "")), te;
|
|
10340
|
-
}), w =
|
|
10340
|
+
}), w = xe(""), E = ne(() => {
|
|
10341
10341
|
const te = i.config.app === "konnect" || i.config.isExactMatch;
|
|
10342
10342
|
return te ? {
|
|
10343
10343
|
isExactMatch: te,
|
|
@@ -10354,7 +10354,7 @@ const ut = {
|
|
|
10354
10354
|
w.value = "";
|
|
10355
10355
|
}, U = () => {
|
|
10356
10356
|
Z.value++;
|
|
10357
|
-
}, x =
|
|
10357
|
+
}, x = xe(null), _ = async (te, $) => {
|
|
10358
10358
|
const Y = te.id;
|
|
10359
10359
|
if (!await $(Y)) {
|
|
10360
10360
|
t("copy:error", {
|
|
@@ -10369,7 +10369,7 @@ const ut = {
|
|
|
10369
10369
|
field: "id",
|
|
10370
10370
|
message: n("ca-certificates.copy.success", { val: Y })
|
|
10371
10371
|
});
|
|
10372
|
-
},
|
|
10372
|
+
}, Ce = async (te, $) => {
|
|
10373
10373
|
const Y = JSON.stringify(te);
|
|
10374
10374
|
if (!await $(Y)) {
|
|
10375
10375
|
t("copy:error", {
|
|
@@ -10391,9 +10391,9 @@ const ut = {
|
|
|
10391
10391
|
}), ve = (te) => ({
|
|
10392
10392
|
label: n("ca-certificates.actions.edit"),
|
|
10393
10393
|
to: i.config.getEditRoute(te)
|
|
10394
|
-
}), me =
|
|
10394
|
+
}), me = xe(void 0), Re = xe(!1), ie = xe(!1), pt = xe(""), Jt = Ol(i.config, A.value), { certificateDataCache: vr, getCertificateData: $t } = ut.useCertificate(), xt = (te) => {
|
|
10395
10395
|
me.value = te, Re.value = !0;
|
|
10396
|
-
},
|
|
10396
|
+
}, z = () => {
|
|
10397
10397
|
Re.value = !1;
|
|
10398
10398
|
}, yt = async () => {
|
|
10399
10399
|
var te, $, Y;
|
|
@@ -10420,7 +10420,7 @@ const ut = {
|
|
|
10420
10420
|
}
|
|
10421
10421
|
vr.value = {}, x.value = null;
|
|
10422
10422
|
});
|
|
10423
|
-
const pe =
|
|
10423
|
+
const pe = xe({
|
|
10424
10424
|
ctaPath: i.config.createRoute,
|
|
10425
10425
|
ctaText: void 0,
|
|
10426
10426
|
message: `${n("ca-certificates.list.empty_state.description")}${i.config.additionMessageForEmptyState ? ` ${i.config.additionMessageForEmptyState}` : ""}`,
|
|
@@ -10429,8 +10429,8 @@ const ut = {
|
|
|
10429
10429
|
return Bl(async () => {
|
|
10430
10430
|
await i.canCreate() && (pe.value.title = n("ca-certificates.list.empty_state.title"), pe.value.ctaText = n("ca-certificates.actions.create"));
|
|
10431
10431
|
}), (te, $) => {
|
|
10432
|
-
const Y =
|
|
10433
|
-
return
|
|
10432
|
+
const Y = ke("KButton"), ee = ke("KDropdownItem"), Fe = ke("KClipboardProvider");
|
|
10433
|
+
return W(), de("div", mp, [
|
|
10434
10434
|
T(v(Tl), {
|
|
10435
10435
|
"cache-identifier": r.cacheIdentifier,
|
|
10436
10436
|
"disable-sorting": N.value,
|
|
@@ -10449,12 +10449,12 @@ const ut = {
|
|
|
10449
10449
|
onState: v(m)
|
|
10450
10450
|
}, ti({
|
|
10451
10451
|
"toolbar-filter": B(() => [
|
|
10452
|
-
T(v(
|
|
10452
|
+
T(v(jl), {
|
|
10453
10453
|
modelValue: w.value,
|
|
10454
10454
|
"onUpdate:modelValue": $[0] || ($[0] = (X) => w.value = X),
|
|
10455
10455
|
config: E.value
|
|
10456
10456
|
}, null, 8, ["modelValue", "config"]),
|
|
10457
|
-
r.useToolbarCreationButton ? (
|
|
10457
|
+
r.useToolbarCreationButton ? (W(), we(v(ct), {
|
|
10458
10458
|
key: 0,
|
|
10459
10459
|
"auth-function": r.canCreate
|
|
10460
10460
|
}, {
|
|
@@ -10476,12 +10476,12 @@ const ut = {
|
|
|
10476
10476
|
}, 8, ["auth-function"])) : Te("", !0)
|
|
10477
10477
|
]),
|
|
10478
10478
|
"toolbar-button": B(() => [
|
|
10479
|
-
(
|
|
10479
|
+
(W(), we(zi, {
|
|
10480
10480
|
disabled: !r.useActionOutside,
|
|
10481
10481
|
to: "#kong-ui-app-page-header-action-button"
|
|
10482
10482
|
}, [
|
|
10483
10483
|
$e("div", bp, [
|
|
10484
|
-
p.value ? (
|
|
10484
|
+
p.value ? (W(), we(Y, {
|
|
10485
10485
|
key: 0,
|
|
10486
10486
|
appearance: "secondary",
|
|
10487
10487
|
class: "open-learning-hub",
|
|
@@ -10494,7 +10494,7 @@ const ut = {
|
|
|
10494
10494
|
]),
|
|
10495
10495
|
_: 1
|
|
10496
10496
|
})) : Te("", !0),
|
|
10497
|
-
r.useToolbarCreationButton ? Te("", !0) : (
|
|
10497
|
+
r.useToolbarCreationButton ? Te("", !0) : (W(), we(v(ct), {
|
|
10498
10498
|
key: 1,
|
|
10499
10499
|
"auth-function": r.canCreate
|
|
10500
10500
|
}, {
|
|
@@ -10520,17 +10520,17 @@ const ut = {
|
|
|
10520
10520
|
issuer: B(({ row: X }) => {
|
|
10521
10521
|
var Ne;
|
|
10522
10522
|
return [
|
|
10523
|
-
r.config.app === "konnect" ? (
|
|
10523
|
+
r.config.app === "konnect" ? (W(), de("b", Ap, Q((Ne = X == null ? void 0 : X.metadata) != null && Ne.issuer ? X.metadata.issuer : "-"), 1)) : (W(), de("b", Sp, Q(v($t)(X).schemaIssuer || "-"), 1))
|
|
10524
10524
|
];
|
|
10525
10525
|
}),
|
|
10526
10526
|
expiry: B(({ row: X }) => {
|
|
10527
10527
|
var Ne;
|
|
10528
10528
|
return [
|
|
10529
|
-
r.config.app === "konnect" ? (
|
|
10529
|
+
r.config.app === "konnect" ? (W(), de("span", kp, Q((Ne = X == null ? void 0 : X.metadata) != null && Ne.expiry ? v(s)(X.metadata.expiry) : "-"), 1)) : (W(), de("span", xp, Q(v($t)(X).schemaExpiry ? v(s)(v($t)(X).schemaExpiry) : "-"), 1))
|
|
10530
10530
|
];
|
|
10531
10531
|
}),
|
|
10532
10532
|
tags: B(({ row: X }) => [
|
|
10533
|
-
T(v(
|
|
10533
|
+
T(v(_l), {
|
|
10534
10534
|
tags: X == null ? void 0 : X.tags
|
|
10535
10535
|
}, null, 8, ["tags"])
|
|
10536
10536
|
]),
|
|
@@ -10539,7 +10539,7 @@ const ut = {
|
|
|
10539
10539
|
default: B(({ copyToClipboard: Ne }) => [
|
|
10540
10540
|
T(ee, {
|
|
10541
10541
|
"data-testid": "action-entity-copy-id",
|
|
10542
|
-
onClick: (
|
|
10542
|
+
onClick: (G) => _(X, Ne)
|
|
10543
10543
|
}, {
|
|
10544
10544
|
default: B(() => [
|
|
10545
10545
|
he(Q(v(n)("ca-certificates.actions.copy_id")), 1)
|
|
@@ -10553,7 +10553,7 @@ const ut = {
|
|
|
10553
10553
|
default: B(({ copyToClipboard: Ne }) => [
|
|
10554
10554
|
T(ee, {
|
|
10555
10555
|
"data-testid": "action-entity-copy-json",
|
|
10556
|
-
onClick: (
|
|
10556
|
+
onClick: (G) => Ce(X, Ne)
|
|
10557
10557
|
}, {
|
|
10558
10558
|
default: B(() => [
|
|
10559
10559
|
he(Q(v(n)("ca-certificates.actions.copy_json")), 1)
|
|
@@ -10610,7 +10610,7 @@ const ut = {
|
|
|
10610
10610
|
!v(d) && q.value ? {
|
|
10611
10611
|
name: "outside-actions",
|
|
10612
10612
|
fn: B(() => [
|
|
10613
|
-
(
|
|
10613
|
+
(W(), we(zi, {
|
|
10614
10614
|
disabled: !r.useActionOutside,
|
|
10615
10615
|
to: "#kong-ui-app-page-header-action-button"
|
|
10616
10616
|
}, [
|
|
@@ -10675,7 +10675,7 @@ const ut = {
|
|
|
10675
10675
|
error: pt.value,
|
|
10676
10676
|
title: v(n)("ca-certificates.delete.title"),
|
|
10677
10677
|
visible: Re.value,
|
|
10678
|
-
onCancel:
|
|
10678
|
+
onCancel: z,
|
|
10679
10679
|
onProceed: yt
|
|
10680
10680
|
}, {
|
|
10681
10681
|
description: B(() => [
|
|
@@ -10759,8 +10759,8 @@ const ut = {
|
|
|
10759
10759
|
}
|
|
10760
10760
|
};
|
|
10761
10761
|
return (O, Z) => {
|
|
10762
|
-
const le =
|
|
10763
|
-
return
|
|
10762
|
+
const le = ke("KTextArea"), U = ke("KInput");
|
|
10763
|
+
return W(), de("div", Bp, [
|
|
10764
10764
|
T(v(Dl), {
|
|
10765
10765
|
"can-submit": q.value,
|
|
10766
10766
|
config: r.config,
|
|
@@ -10867,7 +10867,7 @@ const ut = {
|
|
|
10867
10867
|
},
|
|
10868
10868
|
emits: ["loading", "fetch:error", "fetch:success"],
|
|
10869
10869
|
setup(r, { emit: e }) {
|
|
10870
|
-
const t = e, i = r, { i18n: { t: n, formatUnixTimeStamp: s }, i18nT: a } = ut.useI18n(), { convertKeyToTitle: l } = Ml(), { getPropValue: u } = Ul(), { getCertificateData: d } = ut.useCertificate(), m = ne(() => Xr.form[i.config.app].edit), p =
|
|
10870
|
+
const t = e, i = r, { i18n: { t: n, formatUnixTimeStamp: s }, i18nT: a } = ut.useI18n(), { convertKeyToTitle: l } = Ml(), { getPropValue: u } = Ul(), { getCertificateData: d } = ut.useCertificate(), m = ne(() => Xr.form[i.config.app].edit), p = xe(), q = xe({
|
|
10871
10871
|
// basic fields
|
|
10872
10872
|
id: {},
|
|
10873
10873
|
cert: {
|
|
@@ -10928,15 +10928,15 @@ const ut = {
|
|
|
10928
10928
|
}), N = (x) => {
|
|
10929
10929
|
p.value = x, t("fetch:success", x);
|
|
10930
10930
|
}, f = (x, _) => {
|
|
10931
|
-
const
|
|
10931
|
+
const Ce = u("rowValue", _);
|
|
10932
10932
|
if (x === "expiry")
|
|
10933
10933
|
return A.value;
|
|
10934
10934
|
if (x === "key_usages")
|
|
10935
10935
|
return O.value;
|
|
10936
10936
|
if (x === "san_names")
|
|
10937
10937
|
return E.value;
|
|
10938
|
-
if (
|
|
10939
|
-
return
|
|
10938
|
+
if (Ce)
|
|
10939
|
+
return Ce[x];
|
|
10940
10940
|
}, y = ne(() => {
|
|
10941
10941
|
if (p.value)
|
|
10942
10942
|
return d(p.value);
|
|
@@ -10962,12 +10962,12 @@ const ut = {
|
|
|
10962
10962
|
var x;
|
|
10963
10963
|
return !!((x = p == null ? void 0 : p.value) != null && x.cert_alt);
|
|
10964
10964
|
}), U = (x) => {
|
|
10965
|
-
var _,
|
|
10966
|
-
return x === "san_names" ? n("certificates.list.table_headers.san") : ((
|
|
10965
|
+
var _, Ce;
|
|
10966
|
+
return x === "san_names" ? n("certificates.list.table_headers.san") : ((Ce = (_ = q.value) == null ? void 0 : _[x]) == null ? void 0 : Ce.label) || l(x);
|
|
10967
10967
|
};
|
|
10968
10968
|
return (x, _) => {
|
|
10969
|
-
const
|
|
10970
|
-
return
|
|
10969
|
+
const Ce = ke("KCodeBlock"), fe = ke("KLabel"), ht = ke("KBadge");
|
|
10970
|
+
return W(), de("div", Ep, [
|
|
10971
10971
|
T(v(Ll), {
|
|
10972
10972
|
config: r.config,
|
|
10973
10973
|
"config-card-doc": r.configCardDoc,
|
|
@@ -10991,7 +10991,7 @@ const ut = {
|
|
|
10991
10991
|
})
|
|
10992
10992
|
]),
|
|
10993
10993
|
cert: B((ve) => [
|
|
10994
|
-
v(u)("rowValue", ve) ? (
|
|
10994
|
+
v(u)("rowValue", ve) ? (W(), we(Ce, {
|
|
10995
10995
|
key: 0,
|
|
10996
10996
|
id: `certificate-${r.config.entityId}-cert-codeblock`,
|
|
10997
10997
|
code: v(u)("rowValue", ve),
|
|
@@ -11019,7 +11019,7 @@ const ut = {
|
|
|
11019
11019
|
})
|
|
11020
11020
|
]),
|
|
11021
11021
|
metadata: B((ve) => [
|
|
11022
|
-
(
|
|
11022
|
+
(W(!0), de(ri, null, ii(Object.keys(v(u)("rowValue", ve)), (me) => (W(), we(v(Hl), {
|
|
11023
11023
|
key: me,
|
|
11024
11024
|
item: {
|
|
11025
11025
|
key: me,
|
|
@@ -11064,8 +11064,8 @@ const ut = {
|
|
|
11064
11064
|
})
|
|
11065
11065
|
]),
|
|
11066
11066
|
key_usages: B(() => [
|
|
11067
|
-
O.value.length ? Te("", !0) : (
|
|
11068
|
-
(
|
|
11067
|
+
O.value.length ? Te("", !0) : (W(), de("div", Op, Q("–"))),
|
|
11068
|
+
(W(!0), de(ri, null, ii(O.value, (ve, me) => (W(), we(ht, {
|
|
11069
11069
|
key: `key_usages-badge-tag-${me}`,
|
|
11070
11070
|
class: "config-badge",
|
|
11071
11071
|
"data-testid": `key_usages-badge-tag-${me}`,
|
|
@@ -11091,7 +11091,7 @@ const ut = {
|
|
|
11091
11091
|
name: "cert_alt",
|
|
11092
11092
|
fn: B((ve) => [
|
|
11093
11093
|
_[4] || (_[4] = he(" > ")),
|
|
11094
|
-
v(u)("rowValue", ve) ? (
|
|
11094
|
+
v(u)("rowValue", ve) ? (W(), we(Ce, {
|
|
11095
11095
|
key: 0,
|
|
11096
11096
|
id: `certificate-${r.config.entityId}-cert-alt-codeblock`,
|
|
11097
11097
|
code: v(u)("rowValue", ve),
|