@kong-ui-public/entities-certificates 3.6.58 → 3.6.59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { ref as be, defineComponent as ar, computed as ae, watch as $i, onBeforeMount as Sl, resolveComponent as Se, openBlock as X, createElementBlock as de, createVNode as D, unref as w, withCtx as N, createBlock as Ue, Teleport as kl, createTextVNode as ve, toDisplayString as Z, createCommentVNode as st, createElementVNode as Je, Fragment as Yr, renderList as Zr, reactive as Ui, createSlots as Hf } from "vue";
1
+ import { ref as Se, defineComponent as ar, computed as ae, watch as $i, onBeforeMount as Sl, resolveComponent as Ae, openBlock as X, createElementBlock as de, createVNode as D, unref as w, withCtx as N, createBlock as Ue, Teleport as kl, createTextVNode as ve, toDisplayString as Z, createCommentVNode as st, createElementVNode as Je, Fragment as Yr, renderList as Zr, reactive as Ui, createSlots as Hf } from "vue";
2
2
  import { useRouter as Sn } from "vue-router";
3
3
  import { AddIcon as Qo, TrashIcon as Ff } from "@kong/icons";
4
4
  import { createI18n as qf, i18nTComponent as Kf } from "@kong-ui-public/i18n";
@@ -63,8 +63,8 @@ var Ga;
63
63
  } : function(g, m) {
64
64
  return g[m];
65
65
  }
66
- }, p = Object.getPrototypeOf(Function), z = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : Df(), O = typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : Mf(), f = typeof WeakMap == "function" ? WeakMap : $f(), y = n ? Symbol.for("@reflect-metadata:registry") : void 0, A = Pf(), b = Rf(A);
67
- function E(g, m, S, j) {
66
+ }, p = Object.getPrototypeOf(Function), z = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : Df(), E = typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : Mf(), f = typeof WeakMap == "function" ? WeakMap : $f(), y = n ? Symbol.for("@reflect-metadata:registry") : void 0, A = Pf(), b = Rf(A);
67
+ function O(g, m, S, j) {
68
68
  if (_(S)) {
69
69
  if (!Ci(g))
70
70
  throw new TypeError();
@@ -81,7 +81,7 @@ var Ga;
81
81
  return H(j) && (j = void 0), S = ye(S), fe(g, m, S, j);
82
82
  }
83
83
  }
84
- e("decorate", E);
84
+ e("decorate", O);
85
85
  function k(g, m) {
86
86
  function S(j, W) {
87
87
  if (!G(j))
@@ -102,7 +102,7 @@ var Ga;
102
102
  function Y(g, m, S) {
103
103
  if (!G(m))
104
104
  throw new TypeError();
105
- return _(S) || (S = ye(S)), we(g, m, S);
105
+ return _(S) || (S = ye(S)), be(g, m, S);
106
106
  }
107
107
  e("hasMetadata", Y);
108
108
  function le(g, m, S) {
@@ -172,12 +172,12 @@ var Ga;
172
172
  }
173
173
  return j;
174
174
  }
175
- function we(g, m, S) {
175
+ function be(g, m, S) {
176
176
  var j = ut(g, m, S);
177
177
  if (j)
178
178
  return !0;
179
179
  var W = ms(m);
180
- return H(W) ? !1 : we(g, W, S);
180
+ return H(W) ? !1 : be(g, W, S);
181
181
  }
182
182
  function ut(g, m, S) {
183
183
  var j = Hr(
@@ -224,7 +224,7 @@ var Ga;
224
224
  return S;
225
225
  if (S.length <= 0)
226
226
  return W;
227
- for (var Be = new O(), ke = [], re = 0, V = S; re < V.length; re++) {
227
+ for (var Be = new E(), ke = [], re = 0, V = S; re < V.length; re++) {
228
228
  var L = V[re], F = Be.has(L);
229
229
  F || (Be.add(L), ke.push(L));
230
230
  }
@@ -413,7 +413,7 @@ var Ga;
413
413
  case S === K:
414
414
  break;
415
415
  default:
416
- j === void 0 && (j = new O()), j.add(K);
416
+ j === void 0 && (j = new E()), j.add(K);
417
417
  break;
418
418
  }
419
419
  }
@@ -426,10 +426,10 @@ var Ga;
426
426
  return m;
427
427
  if (!_(j))
428
428
  for (var he = Ha(j); ; ) {
429
- var Ae = qa(he);
430
- if (!Ae)
429
+ var we = qa(he);
430
+ if (!we)
431
431
  return;
432
- var rt = Fa(Ae);
432
+ var rt = Fa(we);
433
433
  if (rt.isProviderFor(K, ne))
434
434
  return Ka(he), rt;
435
435
  }
@@ -439,8 +439,8 @@ var Ga;
439
439
  return g;
440
440
  }
441
441
  function V(K, ne) {
442
- var he = W.get(K), Ae;
443
- return _(he) || (Ae = he.get(ne)), _(Ae) && (Ae = re(K, ne), _(Ae) || (_(he) && (he = new z(), W.set(K, he)), he.set(ne, Ae))), Ae;
442
+ var he = W.get(K), we;
443
+ return _(he) || (we = he.get(ne)), _(we) && (we = re(K, ne), _(we) || (_(he) && (he = new z(), W.set(K, he)), he.set(ne, we))), we;
444
444
  }
445
445
  function L(K) {
446
446
  if (_(K))
@@ -450,9 +450,9 @@ var Ga;
450
450
  function F(K, ne, he) {
451
451
  if (!L(he))
452
452
  throw new Error("Metadata provider not registered.");
453
- var Ae = V(K, ne);
454
- if (Ae !== he) {
455
- if (!_(Ae))
453
+ var we = V(K, ne);
454
+ if (we !== he) {
455
+ if (!_(we))
456
456
  return !1;
457
457
  var rt = W.get(K);
458
458
  _(rt) && (rt = new z(), W.set(K, rt)), rt.set(ne, he);
@@ -489,14 +489,14 @@ var Ga;
489
489
  return;
490
490
  ne = new z(), m.set(L, ne), he = !0;
491
491
  }
492
- var Ae = ne.get(F);
493
- if (_(Ae)) {
492
+ var we = ne.get(F);
493
+ if (_(we)) {
494
494
  if (!K)
495
495
  return;
496
- if (Ae = new z(), ne.set(F, Ae), !g.setProvider(L, F, S))
496
+ if (we = new z(), ne.set(F, we), !g.setProvider(L, F, S))
497
497
  throw ne.delete(F), he && m.delete(L), new Error("Wrong provider for target.");
498
498
  }
499
- return Ae;
499
+ return we;
500
500
  }
501
501
  function W(L, F, K) {
502
502
  var ne = j(
@@ -535,8 +535,8 @@ var Ga;
535
535
  );
536
536
  if (_(ne))
537
537
  return K;
538
- for (var he = ne.keys(), Ae = Ha(he), rt = 0; ; ) {
539
- var za = qa(Ae);
538
+ for (var he = ne.keys(), we = Ha(he), rt = 0; ; ) {
539
+ var za = qa(we);
540
540
  if (!za)
541
541
  return K.length = rt, K;
542
542
  var Uf = Fa(za);
@@ -544,7 +544,7 @@ var Ga;
544
544
  K[rt] = Uf;
545
545
  } catch (Lf) {
546
546
  try {
547
- Ka(Ae);
547
+ Ka(we);
548
548
  } finally {
549
549
  throw Lf;
550
550
  }
@@ -572,7 +572,7 @@ var Ga;
572
572
  var m = g.defineMetadata, S = g.hasOwnMetadata, j = g.getOwnMetadata, W = g.getOwnMetadataKeys, Be = g.deleteMetadata, ke = new f(), re = {
573
573
  isProviderFor: function(V, L) {
574
574
  var F = ke.get(V);
575
- return !_(F) && F.has(L) ? !0 : W(V, L).length ? (_(F) && (F = new O(), ke.set(V, F)), F.add(L), !0) : !1;
575
+ return !_(F) && F.has(L) ? !0 : W(V, L).length ? (_(F) && (F = new E(), ke.set(V, F)), F.add(L), !0) : !1;
576
576
  },
577
577
  OrdinaryDefineOwnMetadata: m,
578
578
  OrdinaryHasOwnMetadata: S,
@@ -1424,8 +1424,8 @@ class Hl extends gt(cr) {
1424
1424
  if (u === v) {
1425
1425
  v += 255;
1426
1426
  const z = new Uint8Array(v);
1427
- for (let O = 0; O < d.length; O++)
1428
- z[O] = d[O];
1427
+ for (let E = 0; E < d.length; E++)
1428
+ z[E] = d[E];
1429
1429
  d = this.valueHexView = new Uint8Array(v);
1430
1430
  }
1431
1431
  }
@@ -2896,15 +2896,15 @@ class Un extends di {
2896
2896
  if (i.indexOf("-") !== -1)
2897
2897
  throw new Error("Wrong input string for conversion");
2898
2898
  } else {
2899
- let p = 1, z = i.indexOf("+"), O = "";
2899
+ let p = 1, z = i.indexOf("+"), E = "";
2900
2900
  if (z === -1 && (z = i.indexOf("-"), p = -1), z !== -1) {
2901
- if (O = i.substring(z + 1), i = i.substring(0, z), O.length !== 2 && O.length !== 4)
2901
+ if (E = i.substring(z + 1), i = i.substring(0, z), E.length !== 2 && E.length !== 4)
2902
2902
  throw new Error("Wrong input string for conversion");
2903
- let f = parseInt(O.substring(0, 2), 10);
2903
+ let f = parseInt(E.substring(0, 2), 10);
2904
2904
  if (isNaN(f.valueOf()))
2905
2905
  throw new Error("Wrong input string for conversion");
2906
- if (l = p * f, O.length === 4) {
2907
- if (f = parseInt(O.substring(2, 4), 10), isNaN(f.valueOf()))
2906
+ if (l = p * f, E.length === 4) {
2907
+ if (f = parseInt(E.substring(2, 4), 10), isNaN(f.valueOf()))
2908
2908
  throw new Error("Wrong input string for conversion");
2909
2909
  u = p * f;
2910
2910
  }
@@ -3700,7 +3700,7 @@ class Vd {
3700
3700
  throw new Error("Converter is empty");
3701
3701
  if (v.repeated)
3702
3702
  if (v.implicit) {
3703
- const O = v.repeated === "sequence" ? xt : Ct, f = new O();
3703
+ const E = v.repeated === "sequence" ? xt : Ct, f = new E();
3704
3704
  f.valueBlock = d.valueBlock;
3705
3705
  const y = gr(f.toBER(!1));
3706
3706
  if (y.offset === -1)
@@ -3710,9 +3710,9 @@ class Vd {
3710
3710
  const A = y.result.valueBlock.value;
3711
3711
  l[u] = Array.from(A, (b) => z.fromASN(b));
3712
3712
  } else
3713
- l[u] = Array.from(d, (O) => z.fromASN(O));
3713
+ l[u] = Array.from(d, (E) => z.fromASN(E));
3714
3714
  else {
3715
- let O = d;
3715
+ let E = d;
3716
3716
  if (v.implicit) {
3717
3717
  let f;
3718
3718
  if (kt(p))
@@ -3723,9 +3723,9 @@ class Vd {
3723
3723
  throw new Error(`Cannot get '${y}' class from asn1js module`);
3724
3724
  f = new A();
3725
3725
  }
3726
- f.valueBlock = O.valueBlock, O = gr(f.toBER(!1)).result;
3726
+ f.valueBlock = E.valueBlock, E = gr(f.toBER(!1)).result;
3727
3727
  }
3728
- l[u] = z.fromASN(O);
3728
+ l[u] = z.fromASN(E);
3729
3729
  }
3730
3730
  } else if (v.repeated) {
3731
3731
  if (!Array.isArray(d))
@@ -3891,8 +3891,8 @@ var Uu = { exports: {} };
3891
3891
  function d(f, y) {
3892
3892
  if (f.indexOf("::") !== f.lastIndexOf("::"))
3893
3893
  return null;
3894
- let A = 0, b = -1, E = (f.match(u.zoneIndex) || [])[0], k, B;
3895
- for (E && (E = E.substring(1), f = f.replace(/%.+$/, "")); (b = f.indexOf(":", b + 1)) >= 0; )
3894
+ let A = 0, b = -1, O = (f.match(u.zoneIndex) || [])[0], k, B;
3895
+ for (O && (O = O.substring(1), f = f.replace(/%.+$/, "")); (b = f.indexOf(":", b + 1)) >= 0; )
3896
3896
  A++;
3897
3897
  if (f.substr(0, 2) === "::" && A--, f.substr(-2, 2) === "::" && A--, A > y)
3898
3898
  return null;
@@ -3905,17 +3905,17 @@ var Uu = { exports: {} };
3905
3905
  return le;
3906
3906
  }(), {
3907
3907
  parts: y,
3908
- zoneId: E
3908
+ zoneId: O
3909
3909
  };
3910
3910
  }
3911
3911
  function v(f, y, A, b) {
3912
3912
  if (f.length !== y.length)
3913
3913
  throw new Error("ipaddr: cannot match CIDR for objects with different lengths");
3914
- let E = 0, k;
3914
+ let O = 0, k;
3915
3915
  for (; b > 0; ) {
3916
- if (k = A - b, k < 0 && (k = 0), f[E] >> k !== y[E] >> k)
3916
+ if (k = A - b, k < 0 && (k = 0), f[O] >> k !== y[O] >> k)
3917
3917
  return !1;
3918
- b -= A, E += 1;
3918
+ b -= A, O += 1;
3919
3919
  }
3920
3920
  return !0;
3921
3921
  }
@@ -3934,8 +3934,8 @@ var Uu = { exports: {} };
3934
3934
  f = `0${f}`;
3935
3935
  return f;
3936
3936
  }
3937
- const O = {};
3938
- O.IPv4 = function() {
3937
+ const E = {};
3938
+ E.IPv4 = function() {
3939
3939
  function f(y) {
3940
3940
  if (y.length !== 4)
3941
3941
  throw new Error("ipaddr: ipv4 octet count should be 4");
@@ -4001,9 +4001,9 @@ var Uu = { exports: {} };
4001
4001
  254: 1,
4002
4002
  255: 0
4003
4003
  };
4004
- let E, k, B;
4005
- for (E = 3; E >= 0; E -= 1)
4006
- if (k = this.octets[E], k in b) {
4004
+ let O, k, B;
4005
+ for (O = 3; O >= 0; O -= 1)
4006
+ if (k = this.octets[O], k in b) {
4007
4007
  if (B = b[k], A && B !== 0)
4008
4008
  return null;
4009
4009
  B !== 8 && (A = !0), y += B;
@@ -4011,57 +4011,57 @@ var Uu = { exports: {} };
4011
4011
  return null;
4012
4012
  return 32 - y;
4013
4013
  }, f.prototype.range = function() {
4014
- return O.subnetMatch(this, this.SpecialRanges);
4014
+ return E.subnetMatch(this, this.SpecialRanges);
4015
4015
  }, f.prototype.toByteArray = function() {
4016
4016
  return this.octets.slice(0);
4017
4017
  }, f.prototype.toIPv4MappedAddress = function() {
4018
- return O.IPv6.parse(`::ffff:${this.toString()}`);
4018
+ return E.IPv6.parse(`::ffff:${this.toString()}`);
4019
4019
  }, f.prototype.toNormalizedString = function() {
4020
4020
  return this.toString();
4021
4021
  }, f.prototype.toString = function() {
4022
4022
  return this.octets.join(".");
4023
4023
  }, f;
4024
- }(), O.IPv4.broadcastAddressFromCIDR = function(f) {
4024
+ }(), E.IPv4.broadcastAddressFromCIDR = function(f) {
4025
4025
  try {
4026
- const y = this.parseCIDR(f), A = y[0].toByteArray(), b = this.subnetMaskFromPrefixLength(y[1]).toByteArray(), E = [];
4026
+ const y = this.parseCIDR(f), A = y[0].toByteArray(), b = this.subnetMaskFromPrefixLength(y[1]).toByteArray(), O = [];
4027
4027
  let k = 0;
4028
4028
  for (; k < 4; )
4029
- E.push(parseInt(A[k], 10) | parseInt(b[k], 10) ^ 255), k++;
4030
- return new this(E);
4029
+ O.push(parseInt(A[k], 10) | parseInt(b[k], 10) ^ 255), k++;
4030
+ return new this(O);
4031
4031
  } catch {
4032
4032
  throw new Error("ipaddr: the address does not have IPv4 CIDR format");
4033
4033
  }
4034
- }, O.IPv4.isIPv4 = function(f) {
4034
+ }, E.IPv4.isIPv4 = function(f) {
4035
4035
  return this.parser(f) !== null;
4036
- }, O.IPv4.isValid = function(f) {
4036
+ }, E.IPv4.isValid = function(f) {
4037
4037
  try {
4038
4038
  return new this(this.parser(f)), !0;
4039
4039
  } catch {
4040
4040
  return !1;
4041
4041
  }
4042
- }, O.IPv4.isValidCIDR = function(f) {
4042
+ }, E.IPv4.isValidCIDR = function(f) {
4043
4043
  try {
4044
4044
  return this.parseCIDR(f), !0;
4045
4045
  } catch {
4046
4046
  return !1;
4047
4047
  }
4048
- }, O.IPv4.isValidFourPartDecimal = function(f) {
4049
- return !!(O.IPv4.isValid(f) && f.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/));
4050
- }, O.IPv4.networkAddressFromCIDR = function(f) {
4051
- let y, A, b, E, k;
4048
+ }, E.IPv4.isValidFourPartDecimal = function(f) {
4049
+ return !!(E.IPv4.isValid(f) && f.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/));
4050
+ }, E.IPv4.networkAddressFromCIDR = function(f) {
4051
+ let y, A, b, O, k;
4052
4052
  try {
4053
- for (y = this.parseCIDR(f), b = y[0].toByteArray(), k = this.subnetMaskFromPrefixLength(y[1]).toByteArray(), E = [], A = 0; A < 4; )
4054
- E.push(parseInt(b[A], 10) & parseInt(k[A], 10)), A++;
4055
- return new this(E);
4053
+ for (y = this.parseCIDR(f), b = y[0].toByteArray(), k = this.subnetMaskFromPrefixLength(y[1]).toByteArray(), O = [], A = 0; A < 4; )
4054
+ O.push(parseInt(b[A], 10) & parseInt(k[A], 10)), A++;
4055
+ return new this(O);
4056
4056
  } catch {
4057
4057
  throw new Error("ipaddr: the address does not have IPv4 CIDR format");
4058
4058
  }
4059
- }, O.IPv4.parse = function(f) {
4059
+ }, E.IPv4.parse = function(f) {
4060
4060
  const y = this.parser(f);
4061
4061
  if (y === null)
4062
4062
  throw new Error("ipaddr: string is not formatted like an IPv4 Address");
4063
4063
  return new this(y);
4064
- }, O.IPv4.parseCIDR = function(f) {
4064
+ }, E.IPv4.parseCIDR = function(f) {
4065
4065
  let y;
4066
4066
  if (y = f.match(/^(.+)\/(\d+)$/)) {
4067
4067
  const A = parseInt(y[2]);
@@ -4075,37 +4075,37 @@ var Uu = { exports: {} };
4075
4075
  }
4076
4076
  }
4077
4077
  throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range");
4078
- }, O.IPv4.parser = function(f) {
4078
+ }, E.IPv4.parser = function(f) {
4079
4079
  let y, A, b;
4080
4080
  if (y = f.match(i.fourOctet))
4081
4081
  return function() {
4082
- const E = y.slice(1, 6), k = [];
4083
- for (let B = 0; B < E.length; B++)
4084
- A = E[B], k.push(p(A));
4082
+ const O = y.slice(1, 6), k = [];
4083
+ for (let B = 0; B < O.length; B++)
4084
+ A = O[B], k.push(p(A));
4085
4085
  return k;
4086
4086
  }();
4087
4087
  if (y = f.match(i.longValue)) {
4088
4088
  if (b = p(y[1]), b > 4294967295 || b < 0)
4089
4089
  throw new Error("ipaddr: address outside defined range");
4090
4090
  return function() {
4091
- const E = [];
4091
+ const O = [];
4092
4092
  let k;
4093
4093
  for (k = 0; k <= 24; k += 8)
4094
- E.push(b >> k & 255);
4095
- return E;
4094
+ O.push(b >> k & 255);
4095
+ return O;
4096
4096
  }().reverse();
4097
4097
  } else return (y = f.match(i.twoOctet)) ? function() {
4098
- const E = y.slice(1, 4), k = [];
4099
- if (b = p(E[1]), b > 16777215 || b < 0)
4098
+ const O = y.slice(1, 4), k = [];
4099
+ if (b = p(O[1]), b > 16777215 || b < 0)
4100
4100
  throw new Error("ipaddr: address outside defined range");
4101
- return k.push(p(E[0])), k.push(b >> 16 & 255), k.push(b >> 8 & 255), k.push(b & 255), k;
4101
+ return k.push(p(O[0])), k.push(b >> 16 & 255), k.push(b >> 8 & 255), k.push(b & 255), k;
4102
4102
  }() : (y = f.match(i.threeOctet)) ? function() {
4103
- const E = y.slice(1, 5), k = [];
4104
- if (b = p(E[2]), b > 65535 || b < 0)
4103
+ const O = y.slice(1, 5), k = [];
4104
+ if (b = p(O[2]), b > 65535 || b < 0)
4105
4105
  throw new Error("ipaddr: address outside defined range");
4106
- return k.push(p(E[0])), k.push(p(E[1])), k.push(b >> 8 & 255), k.push(b & 255), k;
4106
+ return k.push(p(O[0])), k.push(p(O[1])), k.push(b >> 8 & 255), k.push(b & 255), k;
4107
4107
  }() : null;
4108
- }, O.IPv4.subnetMaskFromPrefixLength = function(f) {
4108
+ }, E.IPv4.subnetMaskFromPrefixLength = function(f) {
4109
4109
  if (f = parseInt(f), f < 0 || f > 32)
4110
4110
  throw new Error("ipaddr: invalid IPv4 prefix length");
4111
4111
  const y = [0, 0, 0, 0];
@@ -4114,9 +4114,9 @@ var Uu = { exports: {} };
4114
4114
  for (; A < b; )
4115
4115
  y[A] = 255, A++;
4116
4116
  return b < 4 && (y[b] = Math.pow(2, f % 8) - 1 << 8 - f % 8), new this(y);
4117
- }, O.IPv6 = function() {
4117
+ }, E.IPv6 = function() {
4118
4118
  function f(y, A) {
4119
- let b, E;
4119
+ let b, O;
4120
4120
  if (y.length === 16)
4121
4121
  for (this.parts = [], b = 0; b <= 14; b += 2)
4122
4122
  this.parts.push(y[b] << 8 | y[b + 1]);
@@ -4125,7 +4125,7 @@ var Uu = { exports: {} };
4125
4125
  else
4126
4126
  throw new Error("ipaddr: ipv6 part count should be 8 or 16");
4127
4127
  for (b = 0; b < this.parts.length; b++)
4128
- if (E = this.parts[b], !(0 <= E && E <= 65535))
4128
+ if (O = this.parts[b], !(0 <= O && O <= 65535))
4129
4129
  throw new Error("ipaddr: ipv6 part should fit in 16 bits");
4130
4130
  A && (this.zoneId = A);
4131
4131
  }
@@ -4194,28 +4194,28 @@ var Uu = { exports: {} };
4194
4194
  65534: 1,
4195
4195
  65535: 0
4196
4196
  };
4197
- let E, k;
4197
+ let O, k;
4198
4198
  for (let B = 7; B >= 0; B -= 1)
4199
- if (E = this.parts[B], E in b) {
4200
- if (k = b[E], A && k !== 0)
4199
+ if (O = this.parts[B], O in b) {
4200
+ if (k = b[O], A && k !== 0)
4201
4201
  return null;
4202
4202
  k !== 16 && (A = !0), y += k;
4203
4203
  } else
4204
4204
  return null;
4205
4205
  return 128 - y;
4206
4206
  }, f.prototype.range = function() {
4207
- return O.subnetMatch(this, this.SpecialRanges);
4207
+ return E.subnetMatch(this, this.SpecialRanges);
4208
4208
  }, f.prototype.toByteArray = function() {
4209
4209
  let y;
4210
4210
  const A = [], b = this.parts;
4211
- for (let E = 0; E < b.length; E++)
4212
- y = b[E], A.push(y >> 8), A.push(y & 255);
4211
+ for (let O = 0; O < b.length; O++)
4212
+ y = b[O], A.push(y >> 8), A.push(y & 255);
4213
4213
  return A;
4214
4214
  }, f.prototype.toFixedLengthString = function() {
4215
4215
  const y = (function() {
4216
4216
  const b = [];
4217
- for (let E = 0; E < this.parts.length; E++)
4218
- b.push(z(this.parts[E].toString(16), 4));
4217
+ for (let O = 0; O < this.parts.length; O++)
4218
+ b.push(z(this.parts[O].toString(16), 4));
4219
4219
  return b;
4220
4220
  }).call(this).join(":");
4221
4221
  let A = "";
@@ -4224,38 +4224,38 @@ var Uu = { exports: {} };
4224
4224
  if (!this.isIPv4MappedAddress())
4225
4225
  throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");
4226
4226
  const y = this.parts.slice(-2), A = y[0], b = y[1];
4227
- return new O.IPv4([A >> 8, A & 255, b >> 8, b & 255]);
4227
+ return new E.IPv4([A >> 8, A & 255, b >> 8, b & 255]);
4228
4228
  }, f.prototype.toNormalizedString = function() {
4229
4229
  const y = (function() {
4230
4230
  const b = [];
4231
- for (let E = 0; E < this.parts.length; E++)
4232
- b.push(this.parts[E].toString(16));
4231
+ for (let O = 0; O < this.parts.length; O++)
4232
+ b.push(this.parts[O].toString(16));
4233
4233
  return b;
4234
4234
  }).call(this).join(":");
4235
4235
  let A = "";
4236
4236
  return this.zoneId && (A = `%${this.zoneId}`), y + A;
4237
4237
  }, f.prototype.toRFC5952String = function() {
4238
4238
  const y = /((^|:)(0(:|$)){2,})/g, A = this.toNormalizedString();
4239
- let b = 0, E = -1, k;
4239
+ let b = 0, O = -1, k;
4240
4240
  for (; k = y.exec(A); )
4241
- k[0].length > E && (b = k.index, E = k[0].length);
4242
- return E < 0 ? A : `${A.substring(0, b)}::${A.substring(b + E)}`;
4241
+ k[0].length > O && (b = k.index, O = k[0].length);
4242
+ return O < 0 ? A : `${A.substring(0, b)}::${A.substring(b + O)}`;
4243
4243
  }, f.prototype.toString = function() {
4244
4244
  return this.toRFC5952String();
4245
4245
  }, f;
4246
- }(), O.IPv6.broadcastAddressFromCIDR = function(f) {
4246
+ }(), E.IPv6.broadcastAddressFromCIDR = function(f) {
4247
4247
  try {
4248
- const y = this.parseCIDR(f), A = y[0].toByteArray(), b = this.subnetMaskFromPrefixLength(y[1]).toByteArray(), E = [];
4248
+ const y = this.parseCIDR(f), A = y[0].toByteArray(), b = this.subnetMaskFromPrefixLength(y[1]).toByteArray(), O = [];
4249
4249
  let k = 0;
4250
4250
  for (; k < 16; )
4251
- E.push(parseInt(A[k], 10) | parseInt(b[k], 10) ^ 255), k++;
4252
- return new this(E);
4251
+ O.push(parseInt(A[k], 10) | parseInt(b[k], 10) ^ 255), k++;
4252
+ return new this(O);
4253
4253
  } catch (y) {
4254
4254
  throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${y})`);
4255
4255
  }
4256
- }, O.IPv6.isIPv6 = function(f) {
4256
+ }, E.IPv6.isIPv6 = function(f) {
4257
4257
  return this.parser(f) !== null;
4258
- }, O.IPv6.isValid = function(f) {
4258
+ }, E.IPv6.isValid = function(f) {
4259
4259
  if (typeof f == "string" && f.indexOf(":") === -1)
4260
4260
  return !1;
4261
4261
  try {
@@ -4264,7 +4264,7 @@ var Uu = { exports: {} };
4264
4264
  } catch {
4265
4265
  return !1;
4266
4266
  }
4267
- }, O.IPv6.isValidCIDR = function(f) {
4267
+ }, E.IPv6.isValidCIDR = function(f) {
4268
4268
  if (typeof f == "string" && f.indexOf(":") === -1)
4269
4269
  return !1;
4270
4270
  try {
@@ -4272,21 +4272,21 @@ var Uu = { exports: {} };
4272
4272
  } catch {
4273
4273
  return !1;
4274
4274
  }
4275
- }, O.IPv6.networkAddressFromCIDR = function(f) {
4276
- let y, A, b, E, k;
4275
+ }, E.IPv6.networkAddressFromCIDR = function(f) {
4276
+ let y, A, b, O, k;
4277
4277
  try {
4278
- for (y = this.parseCIDR(f), b = y[0].toByteArray(), k = this.subnetMaskFromPrefixLength(y[1]).toByteArray(), E = [], A = 0; A < 16; )
4279
- E.push(parseInt(b[A], 10) & parseInt(k[A], 10)), A++;
4280
- return new this(E);
4278
+ for (y = this.parseCIDR(f), b = y[0].toByteArray(), k = this.subnetMaskFromPrefixLength(y[1]).toByteArray(), O = [], A = 0; A < 16; )
4279
+ O.push(parseInt(b[A], 10) & parseInt(k[A], 10)), A++;
4280
+ return new this(O);
4281
4281
  } catch (B) {
4282
4282
  throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${B})`);
4283
4283
  }
4284
- }, O.IPv6.parse = function(f) {
4284
+ }, E.IPv6.parse = function(f) {
4285
4285
  const y = this.parser(f);
4286
4286
  if (y.parts === null)
4287
4287
  throw new Error("ipaddr: string is not formatted like an IPv6 Address");
4288
4288
  return new this(y.parts, y.zoneId);
4289
- }, O.IPv6.parseCIDR = function(f) {
4289
+ }, E.IPv6.parseCIDR = function(f) {
4290
4290
  let y, A, b;
4291
4291
  if ((A = f.match(/^(.+)\/(\d+)$/)) && (y = parseInt(A[2]), y >= 0 && y <= 128))
4292
4292
  return b = [this.parse(A[1]), y], Object.defineProperty(b, "toString", {
@@ -4295,8 +4295,8 @@ var Uu = { exports: {} };
4295
4295
  }
4296
4296
  }), b;
4297
4297
  throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range");
4298
- }, O.IPv6.parser = function(f) {
4299
- let y, A, b, E, k, B;
4298
+ }, E.IPv6.parser = function(f) {
4299
+ let y, A, b, O, k, B;
4300
4300
  if (b = f.match(u.deprecatedTransitional))
4301
4301
  return this.parser(`::ffff:${b[1]}`);
4302
4302
  if (u.native.test(f))
@@ -4308,7 +4308,7 @@ var Uu = { exports: {} };
4308
4308
  parseInt(b[4]),
4309
4309
  parseInt(b[5])
4310
4310
  ], A = 0; A < k.length; A++)
4311
- if (E = k[A], !(0 <= E && E <= 255))
4311
+ if (O = k[A], !(0 <= O && O <= 255))
4312
4312
  return null;
4313
4313
  return y.parts.push(k[0] << 8 | k[1]), y.parts.push(k[2] << 8 | k[3]), {
4314
4314
  parts: y.parts,
@@ -4316,7 +4316,7 @@ var Uu = { exports: {} };
4316
4316
  };
4317
4317
  }
4318
4318
  return null;
4319
- }, O.IPv6.subnetMaskFromPrefixLength = function(f) {
4319
+ }, E.IPv6.subnetMaskFromPrefixLength = function(f) {
4320
4320
  if (f = parseInt(f), f < 0 || f > 128)
4321
4321
  throw new Error("ipaddr: invalid IPv6 prefix length");
4322
4322
  const y = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
@@ -4325,47 +4325,47 @@ var Uu = { exports: {} };
4325
4325
  for (; A < b; )
4326
4326
  y[A] = 255, A++;
4327
4327
  return b < 16 && (y[b] = Math.pow(2, f % 8) - 1 << 8 - f % 8), new this(y);
4328
- }, O.fromByteArray = function(f) {
4328
+ }, E.fromByteArray = function(f) {
4329
4329
  const y = f.length;
4330
4330
  if (y === 4)
4331
- return new O.IPv4(f);
4331
+ return new E.IPv4(f);
4332
4332
  if (y === 16)
4333
- return new O.IPv6(f);
4333
+ return new E.IPv6(f);
4334
4334
  throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address");
4335
- }, O.isValid = function(f) {
4336
- return O.IPv6.isValid(f) || O.IPv4.isValid(f);
4337
- }, O.isValidCIDR = function(f) {
4338
- return O.IPv6.isValidCIDR(f) || O.IPv4.isValidCIDR(f);
4339
- }, O.parse = function(f) {
4340
- if (O.IPv6.isValid(f))
4341
- return O.IPv6.parse(f);
4342
- if (O.IPv4.isValid(f))
4343
- return O.IPv4.parse(f);
4335
+ }, E.isValid = function(f) {
4336
+ return E.IPv6.isValid(f) || E.IPv4.isValid(f);
4337
+ }, E.isValidCIDR = function(f) {
4338
+ return E.IPv6.isValidCIDR(f) || E.IPv4.isValidCIDR(f);
4339
+ }, E.parse = function(f) {
4340
+ if (E.IPv6.isValid(f))
4341
+ return E.IPv6.parse(f);
4342
+ if (E.IPv4.isValid(f))
4343
+ return E.IPv4.parse(f);
4344
4344
  throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format");
4345
- }, O.parseCIDR = function(f) {
4345
+ }, E.parseCIDR = function(f) {
4346
4346
  try {
4347
- return O.IPv6.parseCIDR(f);
4347
+ return E.IPv6.parseCIDR(f);
4348
4348
  } catch {
4349
4349
  try {
4350
- return O.IPv4.parseCIDR(f);
4350
+ return E.IPv4.parseCIDR(f);
4351
4351
  } catch {
4352
4352
  throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format");
4353
4353
  }
4354
4354
  }
4355
- }, O.process = function(f) {
4355
+ }, E.process = function(f) {
4356
4356
  const y = this.parse(f);
4357
4357
  return y.kind() === "ipv6" && y.isIPv4MappedAddress() ? y.toIPv4Address() : y;
4358
- }, O.subnetMatch = function(f, y, A) {
4359
- let b, E, k, B;
4358
+ }, E.subnetMatch = function(f, y, A) {
4359
+ let b, O, k, B;
4360
4360
  A == null && (A = "unicast");
4361
- for (E in y)
4362
- if (Object.prototype.hasOwnProperty.call(y, E)) {
4363
- for (k = y[E], k[0] && !(k[0] instanceof Array) && (k = [k]), b = 0; b < k.length; b++)
4361
+ for (O in y)
4362
+ if (Object.prototype.hasOwnProperty.call(y, O)) {
4363
+ for (k = y[O], k[0] && !(k[0] instanceof Array) && (k = [k]), b = 0; b < k.length; b++)
4364
4364
  if (B = k[b], f.kind() === B[0].kind() && f.match.apply(f, B))
4365
- return E;
4365
+ return O;
4366
4366
  }
4367
4367
  return A;
4368
- }, r.exports ? r.exports = O : e.ipaddr = O;
4368
+ }, r.exports ? r.exports = E : e.ipaddr = E;
4369
4369
  })(Ts);
4370
4370
  })(Uu);
4371
4371
  var Xa = Uu.exports;
@@ -9023,7 +9023,7 @@ function _f() {
9023
9023
  };
9024
9024
  }
9025
9025
  function $h() {
9026
- const r = _f(), e = be({}), t = (n) => {
9026
+ const r = _f(), e = Se({}), t = (n) => {
9027
9027
  if (!(n.id in e.value))
9028
9028
  try {
9029
9029
  e.value[n.id] = r.parseMetaCertificateData(n.cert);
@@ -9311,18 +9311,18 @@ const at = {
9311
9311
  emits: ["error", "copy:success", "copy:error", "delete:success"],
9312
9312
  setup(r, { emit: e }) {
9313
9313
  var _;
9314
- const t = e, i = r, { i18n: { t: n, formatUnixTimeStamp: s }, i18nT: a } = at.useI18n(), l = Sn(), { axiosInstance: u } = kn((_ = i.config) == null ? void 0 : _.axiosRequestConfig), d = be(1), v = ae(() => i.config.app !== "kongManager" || !!i.config.disableSorting), z = {
9314
+ const t = e, i = r, { i18n: { t: n, formatUnixTimeStamp: s }, i18nT: a } = at.useI18n(), l = Sn(), { axiosInstance: u } = kn((_ = i.config) == null ? void 0 : _.axiosRequestConfig), d = ae(() => i.config.app !== "kongManager" || !!i.config.disableSorting), p = {
9315
9315
  // the Subject column is non-hidable
9316
9316
  subject: { label: n("certificates.list.table_headers.subject"), hidable: !1 },
9317
9317
  expiry: { label: n("certificates.list.table_headers.expiry") },
9318
9318
  san: { label: n("certificates.list.table_headers.san") },
9319
9319
  cert: { label: n("certificates.list.table_headers.cert") },
9320
9320
  tags: { label: n("certificates.list.table_headers.tags"), sortable: !0 }
9321
- }, O = ae(() => {
9321
+ }, z = ae(() => {
9322
9322
  var ee, G;
9323
9323
  let H = `${i.config.apiBaseUrl}${Wr.list[i.config.app]}`;
9324
9324
  return i.config.app === "konnect" ? H = H.replace(/{controlPlaneId}/gi, ((ee = i.config) == null ? void 0 : ee.controlPlaneId) || "") : i.config.app === "kongManager" && (H = H.replace(/\/{workspace}/gi, (G = i.config) != null && G.workspace ? `/${i.config.workspace}` : "")), H;
9325
- }), f = be(""), y = ae(() => {
9325
+ }), E = Se(""), f = ae(() => {
9326
9326
  const H = i.config.app === "konnect" || i.config.isExactMatch;
9327
9327
  return H ? {
9328
9328
  isExactMatch: H,
@@ -9331,11 +9331,15 @@ const at = {
9331
9331
  isExactMatch: H,
9332
9332
  schema: i.config.filterSchema
9333
9333
  };
9334
- }), { fetcher: A, fetcherState: b } = xl(i.config, O.value), E = () => {
9335
- f.value = "";
9334
+ }), {
9335
+ fetcher: y,
9336
+ fetcherState: A,
9337
+ fetcherCacheKey: b
9338
+ } = xl({ ...i.config, cacheIdentifier: i.cacheIdentifier }, z.value), O = () => {
9339
+ E.value = "";
9336
9340
  }, k = () => {
9337
- d.value++;
9338
- }, B = be(null), Y = (H, ee) => {
9341
+ b.value++;
9342
+ }, B = Se(null), Y = (H, ee) => {
9339
9343
  const G = H.id;
9340
9344
  if (!ee(G)) {
9341
9345
  t("copy:error", {
@@ -9378,7 +9382,7 @@ const at = {
9378
9382
  label: n("certificates.actions.addSni"),
9379
9383
  to: i.config.getCreateSniRoute(H)
9380
9384
  };
9381
- }, se = be(void 0), Ne = be(!1), fe = be(!1), we = be(""), ut = Cl(i.config, O.value), { certificateDataCache: ie, getCertificateData: bt } = at.useCertificate(), dr = (H) => {
9385
+ }, se = Se(void 0), Ne = Se(!1), fe = Se(!1), be = Se(""), ut = Cl(i.config, z.value), { certificateDataCache: ie, getCertificateData: bt } = at.useCertificate(), dr = (H) => {
9382
9386
  se.value = H, Ne.value = !0;
9383
9387
  }, hr = () => {
9384
9388
  Ne.value = !1;
@@ -9387,15 +9391,15 @@ const at = {
9387
9391
  if ((H = se.value) != null && H.id) {
9388
9392
  fe.value = !0;
9389
9393
  try {
9390
- await u.delete(ut(se.value.id)), fe.value = !1, Ne.value = !1, d.value++, t("delete:success", se.value);
9394
+ await u.delete(ut(se.value.id)), fe.value = !1, Ne.value = !1, b.value++, t("delete:success", se.value);
9391
9395
  } catch (Ke) {
9392
- we.value = ((G = (ee = Ke.response) == null ? void 0 : ee.data) == null ? void 0 : G.message) || Ke.message || n("certificates.errors.delete"), t("error", Ke);
9396
+ be.value = ((G = (ee = Ke.response) == null ? void 0 : ee.data) == null ? void 0 : G.message) || Ke.message || n("certificates.errors.delete"), t("error", Ke);
9393
9397
  } finally {
9394
9398
  fe.value = !1;
9395
9399
  }
9396
9400
  }
9397
9401
  };
9398
- $i(b, (H) => {
9402
+ $i(A, (H) => {
9399
9403
  var ee, G, Ke;
9400
9404
  if (H.status === Bl.Error) {
9401
9405
  B.value = {
@@ -9405,7 +9409,7 @@ const at = {
9405
9409
  }
9406
9410
  ie.value = {}, B.value = null;
9407
9411
  });
9408
- const wt = be({
9412
+ const wt = Se({
9409
9413
  ctaPath: i.config.createRoute,
9410
9414
  ctaText: void 0,
9411
9415
  message: `${n("certificates.list.empty_state.description")}${i.config.additionMessageForEmptyState ? ` ${i.config.additionMessageForEmptyState}` : ""}`,
@@ -9414,29 +9418,29 @@ const at = {
9414
9418
  return Sl(async () => {
9415
9419
  await i.canCreate() && (wt.value.title = n("certificates.list.empty_state.title"), wt.value.ctaText = n("certificates.actions.create"));
9416
9420
  }), (H, ee) => {
9417
- const G = Se("KButton"), Ke = Se("KCopy"), te = Se("KDropdownItem"), _e = Se("KClipboardProvider");
9421
+ const G = Ae("KButton"), Ke = Ae("KCopy"), te = Ae("KDropdownItem"), _e = Ae("KClipboardProvider");
9418
9422
  return X(), de("div", qh, [
9419
9423
  D(w(Il), {
9420
9424
  "cache-identifier": r.cacheIdentifier,
9421
- "disable-sorting": v.value,
9425
+ "disable-sorting": d.value,
9422
9426
  "empty-state-options": wt.value,
9423
9427
  "enable-entity-actions": "",
9424
9428
  "error-message": B.value,
9425
- fetcher: w(A),
9426
- "fetcher-cache-key": d.value,
9429
+ fetcher: w(y),
9430
+ "fetcher-cache-key": w(b),
9427
9431
  "pagination-type": "offset",
9428
9432
  "preferences-storage-key": "kong-ui-entities-certificates-list",
9429
- query: f.value,
9430
- "table-headers": w(z),
9431
- onClearSearchInput: E,
9433
+ query: E.value,
9434
+ "table-headers": w(p),
9435
+ onClearSearchInput: O,
9432
9436
  "onClick:row": ee[1] || (ee[1] = (J) => U(J)),
9433
9437
  onSort: k
9434
9438
  }, {
9435
9439
  "toolbar-filter": N(() => [
9436
9440
  D(w(El), {
9437
- modelValue: f.value,
9438
- "onUpdate:modelValue": ee[0] || (ee[0] = (J) => f.value = J),
9439
- config: y.value
9441
+ modelValue: E.value,
9442
+ "onUpdate:modelValue": ee[0] || (ee[0] = (J) => E.value = J),
9443
+ config: f.value
9440
9444
  }, null, 8, ["modelValue", "config"])
9441
9445
  ]),
9442
9446
  "toolbar-button": N(() => [
@@ -9584,7 +9588,7 @@ const at = {
9584
9588
  D(w(Nl), {
9585
9589
  "action-pending": fe.value,
9586
9590
  "entity-type": w(_l).Certificate,
9587
- error: we.value,
9591
+ error: be.value,
9588
9592
  title: w(n)("certificates.delete.title"),
9589
9593
  visible: Ne.value,
9590
9594
  onCancel: hr,
@@ -9612,7 +9616,7 @@ const at = {
9612
9616
  for (const [i, n] of e)
9613
9617
  t[i] = n;
9614
9618
  return t;
9615
- }, kg = /* @__PURE__ */ fr(Qh, [["__scopeId", "data-v-d03239ef"]]), Xh = "#d60027", ep = { class: "sni-field-container" }, tp = {
9619
+ }, kg = /* @__PURE__ */ fr(Qh, [["__scopeId", "data-v-f673d337"]]), Xh = "#d60027", ep = { class: "sni-field-container" }, tp = {
9616
9620
  key: 1,
9617
9621
  class: "sni-field-controls-container"
9618
9622
  }, rp = { key: 0 }, ip = /* @__PURE__ */ ar({
@@ -9633,13 +9637,13 @@ const at = {
9633
9637
  },
9634
9638
  emits: ["add", "remove", "update:modelValue"],
9635
9639
  setup(r, { emit: e }) {
9636
- const t = r, i = e, { i18nT: n, i18n: { t: s } } = at.useI18n(), a = be([]);
9640
+ const t = r, i = e, { i18nT: n, i18n: { t: s } } = at.useI18n(), a = Se([]);
9637
9641
  return $i(t.modelValue, (l) => {
9638
9642
  a.value = [...l];
9639
9643
  }, { immediate: !0, deep: !0 }), $i(a, (l) => {
9640
9644
  i("update:modelValue", l);
9641
9645
  }, { deep: !0 }), (l, u) => {
9642
- const d = Se("KLabel"), v = Se("KInput"), p = Se("KButton"), z = Se("router-link");
9646
+ const d = Ae("KLabel"), v = Ae("KInput"), p = Ae("KButton"), z = Ae("router-link");
9643
9647
  return X(), de("div", ep, [
9644
9648
  D(d, {
9645
9649
  info: w(s)("certificates.form.fields.snis.tooltip")
@@ -9649,7 +9653,7 @@ const at = {
9649
9653
  ]),
9650
9654
  _: 1
9651
9655
  }, 8, ["info"]),
9652
- (X(!0), de(Yr, null, Zr(a.value, (O, f) => (X(), de("div", {
9656
+ (X(!0), de(Yr, null, Zr(a.value, (E, f) => (X(), de("div", {
9653
9657
  key: f,
9654
9658
  class: "sni-field-input"
9655
9659
  }, [
@@ -9691,7 +9695,7 @@ const at = {
9691
9695
  ]))), 128)),
9692
9696
  a.value.length === 0 ? (X(), de("div", rp, [
9693
9697
  D(p, {
9694
- onClick: u[1] || (u[1] = (O) => l.$emit("add"))
9698
+ onClick: u[1] || (u[1] = (E) => l.$emit("add"))
9695
9699
  }, {
9696
9700
  default: N(() => [
9697
9701
  ve(Z(w(s)("certificates.form.fields.snis.add")), 1)
@@ -9759,7 +9763,7 @@ const at = {
9759
9763
  keyAlt: "",
9760
9764
  snis: [""],
9761
9765
  tags: ""
9762
- }), O = ae(() => (v.value === zt.Create || JSON.stringify(p.fields) !== JSON.stringify(z)) && !!p.fields.cert && !!p.fields.key), f = (U) => {
9766
+ }), E = ae(() => (v.value === zt.Create || JSON.stringify(p.fields) !== JSON.stringify(z)) && !!p.fields.cert && !!p.fields.key), f = (U) => {
9763
9767
  var C, T;
9764
9768
  p.fields.cert = (U == null ? void 0 : U.cert) || "", p.fields.key = (U == null ? void 0 : U.key) || "", p.fields.certAlt = (U == null ? void 0 : U.cert_alt) || "", p.fields.keyAlt = (U == null ? void 0 : U.key_alt) || "", p.fields.snis = (C = U == null ? void 0 : U.snis) != null && C.length ? U.snis : [""], p.fields.tags = ((T = U == null ? void 0 : U.tags) == null ? void 0 : T.join(", ")) || "", Object.assign(z, p.fields);
9765
9769
  }, y = () => {
@@ -9768,7 +9772,7 @@ const at = {
9768
9772
  p.fields.snis.push("");
9769
9773
  }, b = (U) => {
9770
9774
  p.fields.snis.splice(U, 1);
9771
- }, E = ae(() => {
9775
+ }, O = ae(() => {
9772
9776
  var C, T;
9773
9777
  let U = `${i.config.apiBaseUrl}${Wr.form[i.config.app].validate}`;
9774
9778
  return i.config.app === "konnect" ? U = U.replace(/{controlPlaneId}/gi, ((C = i.config) == null ? void 0 : C.controlPlaneId) || "") : i.config.app === "kongManager" && (U = U.replace(/\/{workspace}/gi, (T = i.config) != null && T.workspace ? `/${i.config.workspace}` : "")), U = U.replace(/{id}/gi, i.certificateId), U;
@@ -9787,11 +9791,11 @@ const at = {
9787
9791
  tags: (C = (U = p.fields.tags.split(",")) == null ? void 0 : U.map((T) => String(T || "").trim())) == null ? void 0 : C.filter((T) => T !== "")
9788
9792
  };
9789
9793
  }), Y = async () => {
9790
- var U, C, T, me, se, Ne, fe, we, ut;
9794
+ var U, C, T, me, se, Ne, fe, be, ut;
9791
9795
  try {
9792
9796
  p.isReadonly = !0;
9793
9797
  let ie;
9794
- await u.post(E.value, B.value), v.value === "create" ? ie = await u.post(k.value, B.value) : v.value === "edit" && (ie = ((U = i.config) == null ? void 0 : U.app) === "konnect" ? await u.put(k.value, B.value) : await u.patch(k.value, B.value)), p.fields.cert = ((C = ie == null ? void 0 : ie.data) == null ? void 0 : C.cert) || "", p.fields.key = ((T = ie == null ? void 0 : ie.data) == null ? void 0 : T.key) || "", p.fields.certAlt = ((me = ie == null ? void 0 : ie.data) == null ? void 0 : me.cert_alt) || "", p.fields.keyAlt = ((se = ie == null ? void 0 : ie.data) == null ? void 0 : se.key_alt) || "", p.fields.snis = (fe = (Ne = ie == null ? void 0 : ie.data) == null ? void 0 : Ne.snis) != null && fe.length ? ie.data.snis : [""], p.fields.tags = ((ut = (we = ie == null ? void 0 : ie.data) == null ? void 0 : we.tags) == null ? void 0 : ut.join(", ")) || "", Object.assign(z, p.fields), t("update", ie == null ? void 0 : ie.data);
9798
+ await u.post(O.value, B.value), v.value === "create" ? ie = await u.post(k.value, B.value) : v.value === "edit" && (ie = ((U = i.config) == null ? void 0 : U.app) === "konnect" ? await u.put(k.value, B.value) : await u.patch(k.value, B.value)), p.fields.cert = ((C = ie == null ? void 0 : ie.data) == null ? void 0 : C.cert) || "", p.fields.key = ((T = ie == null ? void 0 : ie.data) == null ? void 0 : T.key) || "", p.fields.certAlt = ((me = ie == null ? void 0 : ie.data) == null ? void 0 : me.cert_alt) || "", p.fields.keyAlt = ((se = ie == null ? void 0 : ie.data) == null ? void 0 : se.key_alt) || "", p.fields.snis = (fe = (Ne = ie == null ? void 0 : ie.data) == null ? void 0 : Ne.snis) != null && fe.length ? ie.data.snis : [""], p.fields.tags = ((ut = (be = ie == null ? void 0 : ie.data) == null ? void 0 : be.tags) == null ? void 0 : ut.join(", ")) || "", Object.assign(z, p.fields), t("update", ie == null ? void 0 : ie.data);
9795
9799
  } catch (ie) {
9796
9800
  p.errorMessage = l(ie), t("error", ie);
9797
9801
  } finally {
@@ -9799,10 +9803,10 @@ const at = {
9799
9803
  }
9800
9804
  };
9801
9805
  return (U, C) => {
9802
- const T = Se("KTextArea"), me = Se("KInput");
9806
+ const T = Ae("KTextArea"), me = Ae("KInput");
9803
9807
  return X(), de("div", sp, [
9804
9808
  D(w(jl), {
9805
- "can-submit": O.value,
9809
+ "can-submit": E.value,
9806
9810
  config: r.config,
9807
9811
  "edit-id": r.certificateId,
9808
9812
  "entity-type": w(xn).Certificate,
@@ -10006,10 +10010,10 @@ const at = {
10006
10010
  },
10007
10011
  emits: ["loading", "fetch:error", "fetch:success"],
10008
10012
  setup(r, { emit: e }) {
10009
- const t = ["dns_names", "san_names", "subject"], i = e, n = r, { i18n: { t: s, formatUnixTimeStamp: a } } = at.useI18n(), { convertKeyToTitle: l } = Pl(), { getPropValue: u } = Rl(), { getCertificateData: d } = at.useCertificate(), v = ae(() => Jr.form[n.config.app].edit), p = be(), z = ae(() => {
10013
+ const t = ["dns_names", "san_names", "subject"], i = e, n = r, { i18n: { t: s, formatUnixTimeStamp: a } } = at.useI18n(), { convertKeyToTitle: l } = Pl(), { getPropValue: u } = Rl(), { getCertificateData: d } = at.useCertificate(), v = ae(() => Jr.form[n.config.app].edit), p = Se(), z = ae(() => {
10010
10014
  if (p.value)
10011
10015
  return d(p.value);
10012
- }), O = ae(() => {
10016
+ }), E = ae(() => {
10013
10017
  var k;
10014
10018
  return ((k = z.value) == null ? void 0 : k.schemaIssuer) || "";
10015
10019
  }), f = ae(() => {
@@ -10028,7 +10032,7 @@ const at = {
10028
10032
  return Y[k];
10029
10033
  }, b = (k) => {
10030
10034
  p.value = k, i("fetch:success", k);
10031
- }, E = be({
10035
+ }, O = Se({
10032
10036
  id: {},
10033
10037
  updated_at: {},
10034
10038
  created_at: {},
@@ -10071,12 +10075,12 @@ const at = {
10071
10075
  }
10072
10076
  });
10073
10077
  return (k, B) => {
10074
- const Y = Se("KCodeBlock"), le = Se("KLabel"), U = Se("KBadge");
10078
+ const Y = Ae("KCodeBlock"), le = Ae("KLabel"), U = Ae("KBadge");
10075
10079
  return X(), de("div", ap, [
10076
10080
  D(w(Vl), {
10077
10081
  config: r.config,
10078
10082
  "config-card-doc": r.configCardDoc,
10079
- "config-schema": E.value,
10083
+ "config-schema": O.value,
10080
10084
  "entity-type": w(xn).CaCertificate,
10081
10085
  "fetch-url": v.value,
10082
10086
  "hide-title": r.hideTitle,
@@ -10117,7 +10121,7 @@ const at = {
10117
10121
  ve(Z(f.value || "–"), 1)
10118
10122
  ]),
10119
10123
  issuer: N(() => [
10120
- ve(Z(O.value || "–"), 1)
10124
+ ve(Z(E.value || "–"), 1)
10121
10125
  ]),
10122
10126
  key_usages: N(() => [
10123
10127
  y.value.length ? st("", !0) : (X(), de("div", cp, Z("–"))),
@@ -10186,16 +10190,16 @@ const at = {
10186
10190
  emits: ["error", "copy:success", "copy:error", "delete:success"],
10187
10191
  setup(r, { emit: e }) {
10188
10192
  var wt;
10189
- const t = e, i = r, { i18n: { t: n, formatUnixTimeStamp: s }, i18nT: a } = at.useI18n(), l = Sn(), { axiosInstance: u } = kn((wt = i.config) == null ? void 0 : wt.axiosRequestConfig), d = be(1), v = ae(() => i.config.app !== "kongManager" || !!i.config.disableSorting), z = {
10193
+ const t = e, i = r, { i18n: { t: n, formatUnixTimeStamp: s }, i18nT: a } = at.useI18n(), l = Sn(), { axiosInstance: u } = kn((wt = i.config) == null ? void 0 : wt.axiosRequestConfig), d = ae(() => i.config.app !== "kongManager" || !!i.config.disableSorting), p = {
10190
10194
  // the Issuer column is non-hidable
10191
10195
  issuer: { label: n("ca-certificates.list.table_headers.issuer"), hidable: !1 },
10192
10196
  expiry: { label: n("ca-certificates.list.table_headers.expiry") },
10193
10197
  tags: { label: n("ca-certificates.list.table_headers.tags"), sortable: !0 }
10194
- }, O = ae(() => {
10198
+ }, z = ae(() => {
10195
10199
  var H, ee;
10196
10200
  let _ = `${i.config.apiBaseUrl}${Jr.list[i.config.app]}`;
10197
10201
  return i.config.app === "konnect" ? _ = _.replace(/{controlPlaneId}/gi, ((H = i.config) == null ? void 0 : H.controlPlaneId) || "") : i.config.app === "kongManager" && (_ = _.replace(/\/{workspace}/gi, (ee = i.config) != null && ee.workspace ? `/${i.config.workspace}` : "")), _;
10198
- }), f = be(""), y = ae(() => {
10202
+ }), E = Se(""), f = ae(() => {
10199
10203
  const _ = i.config.app === "konnect" || i.config.isExactMatch;
10200
10204
  return _ ? {
10201
10205
  isExactMatch: _,
@@ -10204,11 +10208,15 @@ const at = {
10204
10208
  isExactMatch: _,
10205
10209
  schema: i.config.filterSchema
10206
10210
  };
10207
- }), { fetcher: A, fetcherState: b } = xl(i.config, O.value), E = () => {
10208
- f.value = "";
10211
+ }), {
10212
+ fetcher: y,
10213
+ fetcherState: A,
10214
+ fetcherCacheKey: b
10215
+ } = xl({ ...i.config, cacheIdentifier: i.cacheIdentifier }, z.value), O = () => {
10216
+ E.value = "";
10209
10217
  }, k = () => {
10210
- d.value++;
10211
- }, B = be(null), Y = (_, H) => {
10218
+ b.value++;
10219
+ }, B = Se(null), Y = (_, H) => {
10212
10220
  const ee = _.id;
10213
10221
  if (!H(ee)) {
10214
10222
  t("copy:error", {
@@ -10245,7 +10253,7 @@ const at = {
10245
10253
  }), T = (_) => ({
10246
10254
  label: n("ca-certificates.actions.edit"),
10247
10255
  to: i.config.getEditRoute(_)
10248
- }), me = be(void 0), se = be(!1), Ne = be(!1), fe = be(""), we = Cl(i.config, O.value), { certificateDataCache: ut, getCertificateData: ie } = at.useCertificate(), bt = (_) => {
10256
+ }), me = Se(void 0), se = Se(!1), Ne = Se(!1), fe = Se(""), be = Cl(i.config, z.value), { certificateDataCache: ut, getCertificateData: ie } = at.useCertificate(), bt = (_) => {
10249
10257
  me.value = _, se.value = !0;
10250
10258
  }, dr = () => {
10251
10259
  se.value = !1;
@@ -10254,7 +10262,7 @@ const at = {
10254
10262
  if ((_ = me.value) != null && _.id) {
10255
10263
  Ne.value = !0;
10256
10264
  try {
10257
- await u.delete(we(me.value.id)), Ne.value = !1, se.value = !1, d.value++, t("delete:success", me.value);
10265
+ await u.delete(be(me.value.id)), Ne.value = !1, se.value = !1, b.value++, t("delete:success", me.value);
10258
10266
  } catch (G) {
10259
10267
  fe.value = ((ee = (H = G.response) == null ? void 0 : H.data) == null ? void 0 : ee.message) || G.message || n("ca-certificates.errors.delete"), t("error", G);
10260
10268
  } finally {
@@ -10262,7 +10270,7 @@ const at = {
10262
10270
  }
10263
10271
  }
10264
10272
  };
10265
- $i(b, (_) => {
10273
+ $i(A, (_) => {
10266
10274
  var H, ee, G;
10267
10275
  if (_.status === Bl.Error) {
10268
10276
  B.value = {
@@ -10272,7 +10280,7 @@ const at = {
10272
10280
  }
10273
10281
  ut.value = {}, B.value = null;
10274
10282
  });
10275
- const Pt = be({
10283
+ const Pt = Se({
10276
10284
  ctaPath: i.config.createRoute,
10277
10285
  ctaText: void 0,
10278
10286
  message: `${n("ca-certificates.list.empty_state.description")}${i.config.additionMessageForEmptyState ? ` ${i.config.additionMessageForEmptyState}` : ""}`,
@@ -10281,29 +10289,29 @@ const at = {
10281
10289
  return Sl(async () => {
10282
10290
  await i.canCreate() && (Pt.value.title = n("ca-certificates.list.empty_state.title"), Pt.value.ctaText = n("ca-certificates.actions.create"));
10283
10291
  }), (_, H) => {
10284
- const ee = Se("KButton"), G = Se("KDropdownItem"), Ke = Se("KClipboardProvider");
10292
+ const ee = Ae("KButton"), G = Ae("KDropdownItem"), Ke = Ae("KClipboardProvider");
10285
10293
  return X(), de("div", up, [
10286
10294
  D(w(Il), {
10287
10295
  "cache-identifier": r.cacheIdentifier,
10288
- "disable-sorting": v.value,
10296
+ "disable-sorting": d.value,
10289
10297
  "empty-state-options": Pt.value,
10290
10298
  "enable-entity-actions": "",
10291
10299
  "error-message": B.value,
10292
- fetcher: w(A),
10293
- "fetcher-cache-key": d.value,
10300
+ fetcher: w(y),
10301
+ "fetcher-cache-key": w(b),
10294
10302
  "pagination-type": "offset",
10295
10303
  "preferences-storage-key": "kong-ui-entities-ca-certificates-list",
10296
- query: f.value,
10297
- "table-headers": w(z),
10298
- onClearSearchInput: E,
10304
+ query: E.value,
10305
+ "table-headers": w(p),
10306
+ onClearSearchInput: O,
10299
10307
  "onClick:row": H[1] || (H[1] = (te) => U(te)),
10300
10308
  onSort: k
10301
10309
  }, {
10302
10310
  "toolbar-filter": N(() => [
10303
10311
  D(w(El), {
10304
- modelValue: f.value,
10305
- "onUpdate:modelValue": H[0] || (H[0] = (te) => f.value = te),
10306
- config: y.value
10312
+ modelValue: E.value,
10313
+ "onUpdate:modelValue": H[0] || (H[0] = (te) => E.value = te),
10314
+ config: f.value
10307
10315
  }, null, 8, ["modelValue", "config"])
10308
10316
  ]),
10309
10317
  "toolbar-button": N(() => [
@@ -10448,7 +10456,7 @@ const at = {
10448
10456
  ]);
10449
10457
  };
10450
10458
  }
10451
- }), Bg = /* @__PURE__ */ fr(yp, [["__scopeId", "data-v-d8b0883a"]]), gp = { class: "kong-ui-entities-ca-certificates-form" }, vp = /* @__PURE__ */ ar({
10459
+ }), Bg = /* @__PURE__ */ fr(yp, [["__scopeId", "data-v-56123516"]]), gp = { class: "kong-ui-entities-ca-certificates-form" }, vp = /* @__PURE__ */ ar({
10452
10460
  __name: "CACertificateForm",
10453
10461
  props: {
10454
10462
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -10479,7 +10487,7 @@ const at = {
10479
10487
  cert: "",
10480
10488
  certDigest: "",
10481
10489
  tags: ""
10482
- }), z = ae(() => (d.value === zt.Create || JSON.stringify(v.fields) !== JSON.stringify(p)) && !!v.fields.cert), O = (B) => {
10490
+ }), z = ae(() => (d.value === zt.Create || JSON.stringify(v.fields) !== JSON.stringify(p)) && !!v.fields.cert), E = (B) => {
10483
10491
  var Y;
10484
10492
  v.fields.cert = (B == null ? void 0 : B.cert) || "", v.fields.certDigest = (B == null ? void 0 : B.cert_digest) || "", v.fields.tags = ((Y = B == null ? void 0 : B.tags) == null ? void 0 : Y.join(", ")) || "", Object.assign(p, v.fields);
10485
10493
  }, f = () => {
@@ -10499,7 +10507,7 @@ const at = {
10499
10507
  cert_digest: v.fields.certDigest || null,
10500
10508
  tags: (Y = (B = v.fields.tags.split(",")) == null ? void 0 : B.map((le) => String(le || "").trim())) == null ? void 0 : Y.filter((le) => le !== "")
10501
10509
  };
10502
- }), E = async () => {
10510
+ }), O = async () => {
10503
10511
  var B, Y, le, U, C;
10504
10512
  try {
10505
10513
  v.isReadonly = !0;
@@ -10512,7 +10520,7 @@ const at = {
10512
10520
  }
10513
10521
  };
10514
10522
  return (B, Y) => {
10515
- const le = Se("KTextArea"), U = Se("KInput");
10523
+ const le = Ae("KTextArea"), U = Ae("KInput");
10516
10524
  return X(), de("div", gp, [
10517
10525
  D(w(jl), {
10518
10526
  "can-submit": z.value,
@@ -10525,9 +10533,9 @@ const at = {
10525
10533
  "is-readonly": v.isReadonly,
10526
10534
  onCancel: f,
10527
10535
  "onFetch:error": Y[3] || (Y[3] = (C) => B.$emit("error", C)),
10528
- "onFetch:success": O,
10536
+ "onFetch:success": E,
10529
10537
  onLoading: Y[4] || (Y[4] = (C) => B.$emit("loading", C)),
10530
- onSubmit: E
10538
+ onSubmit: O
10531
10539
  }, {
10532
10540
  default: N(() => [
10533
10541
  D(w(Li), {
@@ -10620,7 +10628,7 @@ const at = {
10620
10628
  },
10621
10629
  emits: ["loading", "fetch:error", "fetch:success"],
10622
10630
  setup(r, { emit: e }) {
10623
- const t = e, i = r, { i18n: { t: n, formatUnixTimeStamp: s }, i18nT: a } = at.useI18n(), { convertKeyToTitle: l } = Pl(), { getPropValue: u } = Rl(), { getCertificateData: d } = at.useCertificate(), v = ae(() => Wr.form[i.config.app].edit), p = be(), z = be({
10631
+ const t = e, i = r, { i18n: { t: n, formatUnixTimeStamp: s }, i18nT: a } = at.useI18n(), { convertKeyToTitle: l } = Pl(), { getPropValue: u } = Rl(), { getCertificateData: d } = at.useCertificate(), v = ae(() => Wr.form[i.config.app].edit), p = Se(), z = Se({
10624
10632
  // basic fields
10625
10633
  id: {},
10626
10634
  cert: {
@@ -10678,7 +10686,7 @@ const at = {
10678
10686
  section: Te.Advanced,
10679
10687
  type: At.Redacted
10680
10688
  }
10681
- }), O = (C) => {
10689
+ }), E = (C) => {
10682
10690
  p.value = C, t("fetch:success", C);
10683
10691
  }, f = (C, T) => {
10684
10692
  const me = u("rowValue", T);
@@ -10687,7 +10695,7 @@ const at = {
10687
10695
  if (C === "key_usages")
10688
10696
  return B.value;
10689
10697
  if (C === "san_names")
10690
- return E.value;
10698
+ return O.value;
10691
10699
  if (me)
10692
10700
  return me[C];
10693
10701
  }, y = ae(() => {
@@ -10699,7 +10707,7 @@ const at = {
10699
10707
  }), b = ae(() => {
10700
10708
  var C;
10701
10709
  return ((C = y.value) == null ? void 0 : C.schemaIssuer) || "";
10702
- }), E = ae(() => {
10710
+ }), O = ae(() => {
10703
10711
  var C;
10704
10712
  return ((C = y.value) == null ? void 0 : C.schemaSanNames) || "";
10705
10713
  }), k = ae(() => {
@@ -10719,7 +10727,7 @@ const at = {
10719
10727
  return C === "san_names" ? n("certificates.list.table_headers.san") : ((me = (T = z.value) == null ? void 0 : T[C]) == null ? void 0 : me.label) || l(C);
10720
10728
  };
10721
10729
  return (C, T) => {
10722
- const me = Se("KCodeBlock"), se = Se("KLabel"), Ne = Se("KBadge");
10730
+ const me = Ae("KCodeBlock"), se = Ae("KLabel"), Ne = Ae("KBadge");
10723
10731
  return X(), de("div", mp, [
10724
10732
  D(w(Vl), {
10725
10733
  config: r.config,
@@ -10729,7 +10737,7 @@ const at = {
10729
10737
  "fetch-url": v.value,
10730
10738
  "hide-title": r.hideTitle,
10731
10739
  "onFetch:error": T[0] || (T[0] = (fe) => C.$emit("fetch:error", fe)),
10732
- "onFetch:success": O,
10740
+ "onFetch:success": E,
10733
10741
  onLoading: T[1] || (T[1] = (fe) => C.$emit("loading", fe))
10734
10742
  }, Hf({
10735
10743
  "cert-label-tooltip": N(() => [
@@ -10772,13 +10780,13 @@ const at = {
10772
10780
  })
10773
10781
  ]),
10774
10782
  metadata: N((fe) => [
10775
- (X(!0), de(Yr, null, Zr(Object.keys(w(u)("rowValue", fe)), (we) => (X(), Ue(w(Dl), {
10776
- key: we,
10783
+ (X(!0), de(Yr, null, Zr(Object.keys(w(u)("rowValue", fe)), (be) => (X(), Ue(w(Dl), {
10784
+ key: be,
10777
10785
  item: {
10778
- key: we,
10779
- value: f(we, fe),
10780
- label: U(we),
10781
- type: we === "key_usages" || we === "snis" || we === "dns_names" ? w(At).BadgeTag : w(At).Text
10786
+ key: be,
10787
+ value: f(be, fe),
10788
+ label: U(be),
10789
+ type: be === "key_usages" || be === "snis" || be === "dns_names" ? w(At).BadgeTag : w(At).Text
10782
10790
  }
10783
10791
  }, null, 8, ["item"]))), 128))
10784
10792
  ]),
@@ -10789,7 +10797,7 @@ const at = {
10789
10797
  ve(Z(b.value || "–"), 1)
10790
10798
  ]),
10791
10799
  san_names: N(() => [
10792
- ve(Z(E.value || "–"), 1)
10800
+ ve(Z(O.value || "–"), 1)
10793
10801
  ]),
10794
10802
  subject: N(() => [
10795
10803
  ve(Z(k.value || "–"), 1)
@@ -10818,10 +10826,10 @@ const at = {
10818
10826
  ]),
10819
10827
  key_usages: N(() => [
10820
10828
  B.value.length ? st("", !0) : (X(), de("div", bp, Z("–"))),
10821
- (X(!0), de(Yr, null, Zr(B.value, (fe, we) => (X(), Ue(Ne, {
10822
- key: `key_usages-badge-tag-${we}`,
10829
+ (X(!0), de(Yr, null, Zr(B.value, (fe, be) => (X(), Ue(Ne, {
10830
+ key: `key_usages-badge-tag-${be}`,
10823
10831
  class: "config-badge",
10824
- "data-testid": `key_usages-badge-tag-${we}`,
10832
+ "data-testid": `key_usages-badge-tag-${be}`,
10825
10833
  tooltip: fe,
10826
10834
  "truncation-tooltip": ""
10827
10835
  }, {