@kong-ui-public/entities-certificates 3.4.6 → 3.4.7

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.
@@ -288,7 +288,7 @@ var Ll;
288
288
  }
289
289
  }
290
290
  t("decorate", B);
291
- function S(w, I) {
291
+ function A(w, I) {
292
292
  function j(D, se) {
293
293
  if (!J(D))
294
294
  throw new TypeError();
@@ -298,13 +298,13 @@ var Ll;
298
298
  }
299
299
  return j;
300
300
  }
301
- t("metadata", S);
302
- function A(w, I, j, D) {
301
+ t("metadata", A);
302
+ function S(w, I, j, D) {
303
303
  if (!J(j))
304
304
  throw new TypeError();
305
305
  return ae(D) || (D = fe(D)), Mr(w, I, j, D);
306
306
  }
307
- t("defineMetadata", A);
307
+ t("defineMetadata", S);
308
308
  function R(w, I, j) {
309
309
  if (!J(I))
310
310
  throw new TypeError();
@@ -4109,14 +4109,14 @@ var zd = { exports: {} };
4109
4109
  function u(p, y) {
4110
4110
  if (p.indexOf("::") !== p.lastIndexOf("::"))
4111
4111
  return null;
4112
- let g = 0, b = -1, B = (p.match(l.zoneIndex) || [])[0], S, A;
4112
+ let g = 0, b = -1, B = (p.match(l.zoneIndex) || [])[0], A, S;
4113
4113
  for (B && (B = B.substring(1), p = p.replace(/%.+$/, "")); (b = p.indexOf(":", b + 1)) >= 0; )
4114
4114
  g++;
4115
4115
  if (p.substr(0, 2) === "::" && g--, p.substr(-2, 2) === "::" && g--, g > y)
4116
4116
  return null;
4117
- for (A = y - g, S = ":"; A--; )
4118
- S += "0:";
4119
- return p = p.replace("::", S), p[0] === ":" && (p = p.slice(1)), p[p.length - 1] === ":" && (p = p.slice(0, -1)), y = function() {
4117
+ for (S = y - g, A = ":"; S--; )
4118
+ A += "0:";
4119
+ return p = p.replace("::", A), p[0] === ":" && (p = p.slice(1)), p[p.length - 1] === ":" && (p = p.slice(0, -1)), y = function() {
4120
4120
  const R = p.split(":"), O = [];
4121
4121
  for (let E = 0; E < R.length; E++)
4122
4122
  O.push(parseInt(R[E], 16));
@@ -4129,9 +4129,9 @@ var zd = { exports: {} };
4129
4129
  function h(p, y, g, b) {
4130
4130
  if (p.length !== y.length)
4131
4131
  throw new Error("ipaddr: cannot match CIDR for objects with different lengths");
4132
- let B = 0, S;
4132
+ let B = 0, A;
4133
4133
  for (; b > 0; ) {
4134
- if (S = g - b, S < 0 && (S = 0), p[B] >> S !== y[B] >> S)
4134
+ if (A = g - b, A < 0 && (A = 0), p[B] >> A !== y[B] >> A)
4135
4135
  return !1;
4136
4136
  b -= g, B += 1;
4137
4137
  }
@@ -4210,12 +4210,12 @@ var zd = { exports: {} };
4210
4210
  254: 1,
4211
4211
  255: 0
4212
4212
  };
4213
- let B, S, A;
4213
+ let B, A, S;
4214
4214
  for (B = 3; B >= 0; B -= 1)
4215
- if (S = this.octets[B], S in b) {
4216
- if (A = b[S], g && A !== 0)
4215
+ if (A = this.octets[B], A in b) {
4216
+ if (S = b[A], g && S !== 0)
4217
4217
  return null;
4218
- A !== 8 && (g = !0), y += A;
4218
+ S !== 8 && (g = !0), y += S;
4219
4219
  } else
4220
4220
  return null;
4221
4221
  return 32 - y;
@@ -4233,9 +4233,9 @@ var zd = { exports: {} };
4233
4233
  }(), m.IPv4.broadcastAddressFromCIDR = function(p) {
4234
4234
  try {
4235
4235
  const y = this.parseCIDR(p), g = y[0].toByteArray(), b = this.subnetMaskFromPrefixLength(y[1]).toByteArray(), B = [];
4236
- let S = 0;
4237
- for (; S < 4; )
4238
- B.push(parseInt(g[S], 10) | parseInt(b[S], 10) ^ 255), S++;
4236
+ let A = 0;
4237
+ for (; A < 4; )
4238
+ B.push(parseInt(g[A], 10) | parseInt(b[A], 10) ^ 255), A++;
4239
4239
  return new this(B);
4240
4240
  } catch {
4241
4241
  throw new Error("ipaddr: the address does not have IPv4 CIDR format");
@@ -4251,10 +4251,10 @@ var zd = { exports: {} };
4251
4251
  }, m.IPv4.isValidFourPartDecimal = function(p) {
4252
4252
  return !!(m.IPv4.isValid(p) && p.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/));
4253
4253
  }, m.IPv4.networkAddressFromCIDR = function(p) {
4254
- let y, g, b, B, S;
4254
+ let y, g, b, B, A;
4255
4255
  try {
4256
- for (y = this.parseCIDR(p), b = y[0].toByteArray(), S = this.subnetMaskFromPrefixLength(y[1]).toByteArray(), B = [], g = 0; g < 4; )
4257
- B.push(parseInt(b[g], 10) & parseInt(S[g], 10)), g++;
4256
+ for (y = this.parseCIDR(p), b = y[0].toByteArray(), A = this.subnetMaskFromPrefixLength(y[1]).toByteArray(), B = [], g = 0; g < 4; )
4257
+ B.push(parseInt(b[g], 10) & parseInt(A[g], 10)), g++;
4258
4258
  return new this(B);
4259
4259
  } catch {
4260
4260
  throw new Error("ipaddr: the address does not have IPv4 CIDR format");
@@ -4282,31 +4282,31 @@ var zd = { exports: {} };
4282
4282
  let y, g, b;
4283
4283
  if (y = p.match(i.fourOctet))
4284
4284
  return function() {
4285
- const B = y.slice(1, 6), S = [];
4286
- for (let A = 0; A < B.length; A++)
4287
- g = B[A], S.push(f(g));
4288
- return S;
4285
+ const B = y.slice(1, 6), A = [];
4286
+ for (let S = 0; S < B.length; S++)
4287
+ g = B[S], A.push(f(g));
4288
+ return A;
4289
4289
  }();
4290
4290
  if (y = p.match(i.longValue)) {
4291
4291
  if (b = f(y[1]), b > 4294967295 || b < 0)
4292
4292
  throw new Error("ipaddr: address outside defined range");
4293
4293
  return function() {
4294
4294
  const B = [];
4295
- let S;
4296
- for (S = 0; S <= 24; S += 8)
4297
- B.push(b >> S & 255);
4295
+ let A;
4296
+ for (A = 0; A <= 24; A += 8)
4297
+ B.push(b >> A & 255);
4298
4298
  return B;
4299
4299
  }().reverse();
4300
4300
  } else return (y = p.match(i.twoOctet)) ? function() {
4301
- const B = y.slice(1, 4), S = [];
4301
+ const B = y.slice(1, 4), A = [];
4302
4302
  if (b = f(B[1]), b > 16777215 || b < 0)
4303
4303
  throw new Error("ipaddr: address outside defined range");
4304
- return S.push(f(B[0])), S.push(b >> 16 & 255), S.push(b >> 8 & 255), S.push(b & 255), S;
4304
+ return A.push(f(B[0])), A.push(b >> 16 & 255), A.push(b >> 8 & 255), A.push(b & 255), A;
4305
4305
  }() : (y = p.match(i.threeOctet)) ? function() {
4306
- const B = y.slice(1, 5), S = [];
4306
+ const B = y.slice(1, 5), A = [];
4307
4307
  if (b = f(B[2]), b > 65535 || b < 0)
4308
4308
  throw new Error("ipaddr: address outside defined range");
4309
- return S.push(f(B[0])), S.push(f(B[1])), S.push(b >> 8 & 255), S.push(b & 255), S;
4309
+ return A.push(f(B[0])), A.push(f(B[1])), A.push(b >> 8 & 255), A.push(b & 255), A;
4310
4310
  }() : null;
4311
4311
  }, m.IPv4.subnetMaskFromPrefixLength = function(p) {
4312
4312
  if (p = parseInt(p), p < 0 || p > 32)
@@ -4385,12 +4385,12 @@ var zd = { exports: {} };
4385
4385
  65534: 1,
4386
4386
  65535: 0
4387
4387
  };
4388
- let B, S;
4389
- for (let A = 7; A >= 0; A -= 1)
4390
- if (B = this.parts[A], B in b) {
4391
- if (S = b[B], g && S !== 0)
4388
+ let B, A;
4389
+ for (let S = 7; S >= 0; S -= 1)
4390
+ if (B = this.parts[S], B in b) {
4391
+ if (A = b[B], g && A !== 0)
4392
4392
  return null;
4393
- S !== 16 && (g = !0), y += S;
4393
+ A !== 16 && (g = !0), y += A;
4394
4394
  } else
4395
4395
  return null;
4396
4396
  return 128 - y;
@@ -4427,9 +4427,9 @@ var zd = { exports: {} };
4427
4427
  return this.zoneId && (g = `%${this.zoneId}`), y + g;
4428
4428
  }, p.prototype.toRFC5952String = function() {
4429
4429
  const y = /((^|:)(0(:|$)){2,})/g, g = this.toNormalizedString();
4430
- let b = 0, B = -1, S;
4431
- for (; S = y.exec(g); )
4432
- S[0].length > B && (b = S.index, B = S[0].length);
4430
+ let b = 0, B = -1, A;
4431
+ for (; A = y.exec(g); )
4432
+ A[0].length > B && (b = A.index, B = A[0].length);
4433
4433
  return B < 0 ? g : `${g.substring(0, b)}::${g.substring(b + B)}`;
4434
4434
  }, p.prototype.toString = function() {
4435
4435
  return this.toRFC5952String();
@@ -4437,9 +4437,9 @@ var zd = { exports: {} };
4437
4437
  }(), m.IPv6.broadcastAddressFromCIDR = function(p) {
4438
4438
  try {
4439
4439
  const y = this.parseCIDR(p), g = y[0].toByteArray(), b = this.subnetMaskFromPrefixLength(y[1]).toByteArray(), B = [];
4440
- let S = 0;
4441
- for (; S < 16; )
4442
- B.push(parseInt(g[S], 10) | parseInt(b[S], 10) ^ 255), S++;
4440
+ let A = 0;
4441
+ for (; A < 16; )
4442
+ B.push(parseInt(g[A], 10) | parseInt(b[A], 10) ^ 255), A++;
4443
4443
  return new this(B);
4444
4444
  } catch (y) {
4445
4445
  throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${y})`);
@@ -4456,13 +4456,13 @@ var zd = { exports: {} };
4456
4456
  return !1;
4457
4457
  }
4458
4458
  }, m.IPv6.networkAddressFromCIDR = function(p) {
4459
- let y, g, b, B, S;
4459
+ let y, g, b, B, A;
4460
4460
  try {
4461
- for (y = this.parseCIDR(p), b = y[0].toByteArray(), S = this.subnetMaskFromPrefixLength(y[1]).toByteArray(), B = [], g = 0; g < 16; )
4462
- B.push(parseInt(b[g], 10) & parseInt(S[g], 10)), g++;
4461
+ for (y = this.parseCIDR(p), b = y[0].toByteArray(), A = this.subnetMaskFromPrefixLength(y[1]).toByteArray(), B = [], g = 0; g < 16; )
4462
+ B.push(parseInt(b[g], 10) & parseInt(A[g], 10)), g++;
4463
4463
  return new this(B);
4464
- } catch (A) {
4465
- throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${A})`);
4464
+ } catch (S) {
4465
+ throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${S})`);
4466
4466
  }
4467
4467
  }, m.IPv6.parse = function(p) {
4468
4468
  const y = this.parser(p);
@@ -4479,21 +4479,21 @@ var zd = { exports: {} };
4479
4479
  }), b;
4480
4480
  throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range");
4481
4481
  }, m.IPv6.parser = function(p) {
4482
- let y, g, b, B, S, A;
4482
+ let y, g, b, B, A, S;
4483
4483
  if (b = p.match(l.deprecatedTransitional))
4484
4484
  return this.parser(`::ffff:${b[1]}`);
4485
4485
  if (l.native.test(p))
4486
4486
  return u(p, 8);
4487
- if ((b = p.match(l.transitional)) && (A = b[6] || "", y = u(b[1].slice(0, -1) + A, 6), y.parts)) {
4488
- for (S = [
4487
+ if ((b = p.match(l.transitional)) && (S = b[6] || "", y = u(b[1].slice(0, -1) + S, 6), y.parts)) {
4488
+ for (A = [
4489
4489
  parseInt(b[2]),
4490
4490
  parseInt(b[3]),
4491
4491
  parseInt(b[4]),
4492
4492
  parseInt(b[5])
4493
- ], g = 0; g < S.length; g++)
4494
- if (B = S[g], !(0 <= B && B <= 255))
4493
+ ], g = 0; g < A.length; g++)
4494
+ if (B = A[g], !(0 <= B && B <= 255))
4495
4495
  return null;
4496
- return y.parts.push(S[0] << 8 | S[1]), y.parts.push(S[2] << 8 | S[3]), {
4496
+ return y.parts.push(A[0] << 8 | A[1]), y.parts.push(A[2] << 8 | A[3]), {
4497
4497
  parts: y.parts,
4498
4498
  zoneId: y.zoneId
4499
4499
  };
@@ -4537,12 +4537,12 @@ var zd = { exports: {} };
4537
4537
  const y = this.parse(p);
4538
4538
  return y.kind() === "ipv6" && y.isIPv4MappedAddress() ? y.toIPv4Address() : y;
4539
4539
  }, m.subnetMatch = function(p, y, g) {
4540
- let b, B, S, A;
4540
+ let b, B, A, S;
4541
4541
  g == null && (g = "unicast");
4542
4542
  for (B in y)
4543
4543
  if (Object.prototype.hasOwnProperty.call(y, B)) {
4544
- for (S = y[B], S[0] && !(S[0] instanceof Array) && (S = [S]), b = 0; b < S.length; b++)
4545
- if (A = S[b], p.kind() === A[0].kind() && p.match.apply(p, A))
4544
+ for (A = y[B], A[0] && !(A[0] instanceof Array) && (A = [A]), b = 0; b < A.length; b++)
4545
+ if (S = A[b], p.kind() === S[0].kind() && p.match.apply(p, S))
4546
4546
  return B;
4547
4547
  }
4548
4548
  return g;
@@ -9412,71 +9412,67 @@ function Ng(e, t, r, i = {
9412
9412
  searchKeys: ["id"]
9413
9413
  }) {
9414
9414
  r || (r = "1000");
9415
- const { axiosInstance: n } = Bl(e.axiosRequestConfig), { i18n: { t: o } } = Go(), { debounce: s } = yg(), a = s(async (S) => {
9416
- await B(S);
9415
+ const { axiosInstance: n } = Bl(e.axiosRequestConfig), { i18n: { t: o } } = Go(), { debounce: s } = yg(), a = s(async (A) => {
9416
+ await B(A);
9417
9417
  }, 200), l = re(!1), u = re(""), h = re(""), f = re([]), _ = re([]), m = re(void 0), p = P(() => {
9418
- const S = `${e.apiBaseUrl}${k(t)}`;
9419
- return e.app === "konnect" ? S.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" ? S.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : "") : S;
9418
+ const A = `${e.apiBaseUrl}${k(t)}`;
9419
+ return e.app === "konnect" ? A.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" ? A.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : "") : A;
9420
9420
  }), { isValidUuid: y } = Uf(), g = async () => {
9421
9421
  try {
9422
9422
  l.value = !0;
9423
- const { data: S } = await n.get(`${p.value}?size=${r}`);
9424
- S != null && S.next || (m.value = i.fetchedItemsKey in S ? S[i.fetchedItemsKey] : []), _.value = i.fetchedItemsKey in S ? S[i.fetchedItemsKey] : [], f.value = _.value;
9423
+ const { data: A } = await n.get(`${p.value}?size=${r}`);
9424
+ A != null && A.next || (m.value = i.fetchedItemsKey in A ? A[i.fetchedItemsKey] : []), _.value = i.fetchedItemsKey in A ? A[i.fetchedItemsKey] : [], f.value = _.value;
9425
9425
  } catch {
9426
9426
  f.value = [], u.value = o("debouncedFilter.errors.fetch");
9427
9427
  } finally {
9428
9428
  l.value = !1;
9429
9429
  }
9430
- }, b = re(""), B = async (S) => {
9431
- var A, R, O;
9432
- if (b.value !== S) {
9433
- if (S === "") {
9430
+ }, b = re(""), B = async (A) => {
9431
+ var S, R, O;
9432
+ if (b.value !== A) {
9433
+ if (b.value = A ?? "", !A) {
9434
9434
  f.value = _.value;
9435
9435
  return;
9436
- } else
9437
- b.value = S || "";
9436
+ }
9438
9437
  if (m.value === void 0)
9439
9438
  try {
9440
9439
  if (l.value = !0, u.value = "", h.value = "", e.app === "konnect") {
9441
- let E = p.value + "";
9442
- S && (E += `/${S}`);
9443
- const { data: x } = await n.get(`${E}?size=${r}`);
9440
+ const E = `${p.value}/${A}`, { data: x } = await n.get(`${E}?size=${r}`);
9444
9441
  i.fetchedItemsKey in x ? f.value = x[i.fetchedItemsKey] : x != null && x[i.exactMatchKey ?? "id"] ? f.value = [x] : f.value = [];
9445
- } else if (S) {
9442
+ } else {
9446
9443
  const E = [];
9447
- y(S) && i.searchKeys.includes("id") ? E.push((async () => {
9448
- const { data: Q } = await n.get(`${p.value}/${S}`);
9444
+ y(A) && i.searchKeys.includes("id") ? E.push((async () => {
9445
+ const { data: Q } = await n.get(`${p.value}/${A}`);
9449
9446
  return [Q[i.fetchedItemsKey] ?? Q];
9450
9447
  })()) : E.push(
9451
9448
  ...i.searchKeys.filter((Q) => Q !== "id").map(async (Q) => {
9452
- const { data: F } = await n.get(`${p.value}?${Q}=${S}`);
9449
+ const { data: F } = await n.get(`${p.value}?${Q}=${A}`);
9453
9450
  return F[i.fetchedItemsKey];
9454
9451
  })
9455
9452
  );
9456
9453
  const x = await Promise.all(E), T = /* @__PURE__ */ new Set();
9457
- f.value = [], (A = x == null ? void 0 : x.forEach) == null || A.call(x, (Q) => {
9454
+ f.value = [], (S = x == null ? void 0 : x.forEach) == null || S.call(x, (Q) => {
9458
9455
  var F;
9459
9456
  (F = Q == null ? void 0 : Q.forEach) == null || F.call(Q, (te) => {
9460
9457
  T.has(te.id) || (T.add(te.id), f.value.push(te));
9461
9458
  });
9462
9459
  });
9463
- } else
9464
- f.value = _.value;
9460
+ }
9465
9461
  } catch (E) {
9466
9462
  ((R = E == null ? void 0 : E.response) == null ? void 0 : R.status) === 404 ? h.value = o("debouncedFilter.errors.invalid") : (f.value = [], u.value = o("debouncedFilter.errors.fetch"));
9467
9463
  } finally {
9468
9464
  l.value = !1;
9469
9465
  }
9470
9466
  else
9471
- l.value = !0, h.value = "", S ? (f.value = (O = m.value) == null ? void 0 : O.filter((E) => {
9467
+ l.value = !0, h.value = "", f.value = (O = m.value) == null ? void 0 : O.filter((E) => {
9472
9468
  var x;
9473
9469
  let T = !1;
9474
9470
  for (const Q of i.searchKeys) {
9475
9471
  const F = typeof E[Q] == "string" ? (x = E[Q]) == null ? void 0 : x.toLowerCase() : E[Q];
9476
- F != null && F.includes(S.toLowerCase()) && (T = !0);
9472
+ F != null && F.includes(A.toLowerCase()) && (T = !0);
9477
9473
  }
9478
9474
  return T;
9479
- }), (!f.value || !f.value.length) && (h.value = o("debouncedFilter.errors.invalid"))) : f.value = m.value, l.value = !1;
9475
+ }), (!f.value || !f.value.length) && (h.value = o("debouncedFilter.errors.invalid")), l.value = !1;
9480
9476
  }
9481
9477
  };
9482
9478
  return {
@@ -9942,7 +9938,7 @@ const He = {
9942
9938
  }
9943
9939
  }), _ = re(), { isTruncated: m } = He.useTruncationDetector(_);
9944
9940
  return (p, y) => {
9945
- const g = oe("KLabel"), b = oe("KBadge"), B = oe("KCopy"), S = oe("KTooltip");
9941
+ const g = oe("KLabel"), b = oe("KBadge"), B = oe("KCopy"), A = oe("KTooltip");
9946
9942
  return N(), L("div", Xg, [
9947
9943
  ue("div", {
9948
9944
  class: "config-card-details-label",
@@ -9985,15 +9981,15 @@ const He = {
9985
9981
  key: 0,
9986
9982
  "data-testid": `${e.item.key}-badge-tags`
9987
9983
  }, [
9988
- (N(!0), L(Je, null, qe(e.item.value, (A, R) => (N(), le(b, {
9984
+ (N(!0), L(Je, null, qe(e.item.value, (S, R) => (N(), le(b, {
9989
9985
  key: `${e.item.key}-badge-tag-${R}`,
9990
9986
  class: "config-badge",
9991
9987
  "data-testid": `${e.item.key}-badge-tag-${R}`,
9992
- tooltip: A,
9988
+ tooltip: S,
9993
9989
  "truncation-tooltip": ""
9994
9990
  }, {
9995
9991
  default: C(() => [
9996
- he(U(A), 1)
9992
+ he(U(S), 1)
9997
9993
  ]),
9998
9994
  _: 2
9999
9995
  }, 1032, ["data-testid", "tooltip"]))), 128))
@@ -10003,24 +9999,24 @@ const He = {
10003
9999
  class: "copy-uuid-array",
10004
10000
  "data-testid": `${e.item.key}-copy-uuid-array`
10005
10001
  }, [
10006
- (N(!0), L(Je, null, qe(e.item.value, (A, R) => (N(), le(B, eh({ ref_for: !0 }, f.value.childAttrs, {
10002
+ (N(!0), L(Je, null, qe(e.item.value, (S, R) => (N(), le(B, eh({ ref_for: !0 }, f.value.childAttrs, {
10007
10003
  key: `${e.item.key}-copy-uuid-${R}`,
10008
10004
  "data-testid": `${e.item.key}-copy-uuid-${R}`,
10009
- text: A
10005
+ text: S
10010
10006
  }), null, 16, ["data-testid", "text"]))), 128))
10011
10007
  ], 8, sv)) : f.value.additionalComponent === "KMethodBadge" ? (N(), L("div", {
10012
10008
  key: 2,
10013
10009
  class: "method-badge-array",
10014
10010
  "data-testid": `${e.item.key}-badge-methods`
10015
10011
  }, [
10016
- (N(!0), L(Je, null, qe(e.item.value, (A, R) => (N(), le(b, {
10012
+ (N(!0), L(Je, null, qe(e.item.value, (S, R) => (N(), le(b, {
10017
10013
  key: `${e.item.key}-badge-method-${R}`,
10018
- appearance: Object.values(k(oh)).includes(A.toLowerCase()) ? A.toLowerCase() : "custom",
10014
+ appearance: Object.values(k(oh)).includes(S.toLowerCase()) ? S.toLowerCase() : "custom",
10019
10015
  class: "config-badge",
10020
10016
  "data-testid": `${e.item.key}-badge-method-${R}`
10021
10017
  }, {
10022
10018
  default: C(() => [
10023
- he(U(A), 1)
10019
+ he(U(S), 1)
10024
10020
  ]),
10025
10021
  _: 2
10026
10022
  }, 1032, ["appearance", "data-testid"]))), 128))
@@ -10029,13 +10025,13 @@ const He = {
10029
10025
  key: 3,
10030
10026
  "data-testid": `${r.item.key}-json-array-content`
10031
10027
  }, [
10032
- (N(!0), L(Je, null, qe(e.item.value, (A, R) => (N(), le(Ff, {
10028
+ (N(!0), L(Je, null, qe(e.item.value, (S, R) => (N(), le(Ff, {
10033
10029
  key: `json-array-item-${R}`,
10034
10030
  index: R,
10035
10031
  "is-array-item": "",
10036
- item: A
10032
+ item: S
10037
10033
  }, null, 8, ["index", "item"]))), 128))
10038
- ], 8, lv)) : (N(), le(S, {
10034
+ ], 8, lv)) : (N(), le(A, {
10039
10035
  key: 4,
10040
10036
  text: k(m) ? e.item.value : ""
10041
10037
  }, {
@@ -12271,16 +12267,16 @@ const j0 = { class: "yaml-config" }, Tp = /* @__PURE__ */ Ae({
12271
12267
  section: Ie.Plugin
12272
12268
  };
12273
12269
  }).filter((F) => !F.hidden);
12274
- }), S = P(() => {
12270
+ }), A = P(() => {
12275
12271
  var O, E, x, T;
12276
12272
  return {
12277
12273
  basic: (O = b.value) == null ? void 0 : O.filter((Q) => Q.section === Ie.Basic),
12278
12274
  advanced: (E = b.value) == null ? void 0 : E.filter((Q) => Q.section === Ie.Advanced),
12279
12275
  plugin: (T = B.value) == null ? void 0 : T.concat((x = b.value) == null ? void 0 : x.filter((Q) => Q.section === Ie.Plugin))
12280
12276
  };
12281
- }), A = P(() => {
12277
+ }), S = P(() => {
12282
12278
  const O = [];
12283
- return S.value.basic.length && O.push("basic"), S.value.advanced.length && O.push("advanced"), S.value.plugin.length && O.push("plugin"), O;
12279
+ return A.value.basic.length && O.push("basic"), A.value.advanced.length && O.push("advanced"), A.value.plugin.length && O.push("plugin"), O;
12284
12280
  }), R = P(() => {
12285
12281
  var O, E;
12286
12282
  let x = `${n.config.apiBaseUrl}${n.fetchUrl}`;
@@ -12371,8 +12367,8 @@ const j0 = { class: "yaml-config" }, Tp = /* @__PURE__ */ Ae({
12371
12367
  config: e.config,
12372
12368
  "fetcher-url": R.value,
12373
12369
  format: h.value,
12374
- "prop-list-types": A.value,
12375
- "property-collections": S.value,
12370
+ "prop-list-types": S.value,
12371
+ "property-collections": A.value,
12376
12372
  record: g.value
12377
12373
  }, kr({ _: 2 }, [
12378
12374
  qe(Object.keys(O.$slots), (ye) => ({
@@ -12476,9 +12472,9 @@ const j0 = { class: "yaml-config" }, Tp = /* @__PURE__ */ Ae({
12476
12472
  setup(e, { emit: t }) {
12477
12473
  var r;
12478
12474
  const i = t, n = e, o = Fi(), { i18n: { t: s } } = He.useI18n(), { getMessageFromError: a } = He.useErrors(), { axiosInstance: l } = He.useAxios((r = n.config) == null ? void 0 : r.axiosRequestConfig), u = re(!1), h = re(!1), f = re(""), _ = P(() => n.canSubmit === !1 || n.isReadonly), m = re(!1), p = P(() => {
12479
- var A, R;
12475
+ var S, R;
12480
12476
  let O = `${n.config.apiBaseUrl}${n.fetchUrl}`;
12481
- return n.config.app === "konnect" ? O = O.replace(/{controlPlaneId}/gi, ((A = n.config) == null ? void 0 : A.controlPlaneId) || "") : n.config.app === "kongManager" && (O = O.replace(/\/{workspace}/gi, (R = n.config) != null && R.workspace ? `/${n.config.workspace}` : "")), n.editId ? (O = O.replace(/{id}/gi, n.editId), O) : (O = O.replace(/\/{id}/gi, ""), O);
12477
+ return n.config.app === "konnect" ? O = O.replace(/{controlPlaneId}/gi, ((S = n.config) == null ? void 0 : S.controlPlaneId) || "") : n.config.app === "kongManager" && (O = O.replace(/\/{workspace}/gi, (R = n.config) != null && R.workspace ? `/${n.config.workspace}` : "")), n.editId ? (O = O.replace(/{id}/gi, n.editId), O) : (O = O.replace(/\/{id}/gi, ""), O);
12482
12478
  }), y = () => {
12483
12479
  m.value = !m.value;
12484
12480
  }, g = () => {
@@ -12487,7 +12483,7 @@ const j0 = { class: "yaml-config" }, Tp = /* @__PURE__ */ Ae({
12487
12483
  i("cancel");
12488
12484
  }, B = () => {
12489
12485
  _.value || i("submit");
12490
- }, S = re([
12486
+ }, A = re([
12491
12487
  {
12492
12488
  title: s("baseForm.configuration.yaml"),
12493
12489
  hash: "#yaml"
@@ -12497,21 +12493,21 @@ const j0 = { class: "yaml-config" }, Tp = /* @__PURE__ */ Ae({
12497
12493
  hash: "#json"
12498
12494
  }
12499
12495
  ]);
12500
- return _t(() => u.value, (A) => {
12501
- i("loading", A);
12496
+ return _t(() => u.value, (S) => {
12497
+ i("loading", S);
12502
12498
  }, { immediate: !0 }), eo(async () => {
12503
12499
  if (n.editId)
12504
12500
  try {
12505
12501
  h.value = !1, u.value = !0;
12506
- const { data: A } = await l.get(p.value);
12507
- i("fetch:success", A);
12508
- } catch (A) {
12509
- const R = a(A);
12510
- f.value = R.startsWith("code") ? s("baseForm.errors.edit") : R, h.value = !0, i("fetch:error", A);
12502
+ const { data: S } = await l.get(p.value);
12503
+ i("fetch:success", S);
12504
+ } catch (S) {
12505
+ const R = a(S);
12506
+ f.value = R.startsWith("code") ? s("baseForm.errors.edit") : R, h.value = !0, i("fetch:error", S);
12511
12507
  } finally {
12512
12508
  u.value = !1;
12513
12509
  }
12514
- }), (A, R) => {
12510
+ }), (S, R) => {
12515
12511
  const O = oe("KSkeleton"), E = oe("KEmptyState"), x = oe("KAlert"), T = oe("KButton"), Q = oe("KTabs"), F = oe("KSlideout");
12516
12512
  return N(), le(Ct(e.wrapperComponent), { class: "kong-ui-entity-base-form" }, {
12517
12513
  default: C(() => [
@@ -12536,7 +12532,7 @@ const j0 = { class: "yaml-config" }, Tp = /* @__PURE__ */ Ae({
12536
12532
  onReset: vn(b, ["prevent"]),
12537
12533
  onSubmit: vn(B, ["prevent"])
12538
12534
  }, [
12539
- Oe(A.$slots, "default", {}, void 0, !0),
12535
+ Oe(S.$slots, "default", {}, void 0, !0),
12540
12536
  e.errorMessage ? (N(), le(x, {
12541
12537
  key: 0,
12542
12538
  appearance: "danger",
@@ -12544,7 +12540,7 @@ const j0 = { class: "yaml-config" }, Tp = /* @__PURE__ */ Ae({
12544
12540
  message: e.errorMessage
12545
12541
  }, null, 8, ["message"])) : ve("", !0),
12546
12542
  ue("div", k1, [
12547
- Oe(A.$slots, "form-actions", {}, () => [
12543
+ Oe(S.$slots, "form-actions", {}, () => [
12548
12544
  V(T, {
12549
12545
  appearance: "tertiary",
12550
12546
  "data-testid": "form-view-configuration",
@@ -12593,7 +12589,7 @@ const j0 = { class: "yaml-config" }, Tp = /* @__PURE__ */ Ae({
12593
12589
  ue("div", null, U(k(s)("baseForm.configuration.message")), 1),
12594
12590
  V(Q, {
12595
12591
  "data-testid": "form-view-configuration-slideout-tabs",
12596
- tabs: S.value
12592
+ tabs: A.value
12597
12593
  }, {
12598
12594
  json: C(() => [
12599
12595
  V(qf, {
@@ -12651,12 +12647,12 @@ const j0 = { class: "yaml-config" }, Tp = /* @__PURE__ */ Ae({
12651
12647
  s && (s.disconnect(), s = void 0);
12652
12648
  }, l = () => {
12653
12649
  var g, b, B;
12654
- let S = ((g = r.value) == null ? void 0 : g.clientWidth) || 0;
12650
+ let A = ((g = r.value) == null ? void 0 : g.clientWidth) || 0;
12655
12651
  if (r.value && "getComputedStyle" in window) {
12656
- const A = window.getComputedStyle(r.value);
12657
- S -= (parseFloat(A.paddingLeft) || 0) + (parseFloat(A.paddingRight) || 0);
12652
+ const S = window.getComputedStyle(r.value);
12653
+ A -= (parseFloat(S.paddingLeft) || 0) + (parseFloat(S.paddingRight) || 0);
12658
12654
  }
12659
- h.value = ((b = i.value) == null ? void 0 : b.getBoundingClientRect().width) || 0, f.value = S, _.value = ((B = u.value) == null ? void 0 : B.innerText) || "";
12655
+ h.value = ((b = i.value) == null ? void 0 : b.getBoundingClientRect().width) || 0, f.value = A, _.value = ((B = u.value) == null ? void 0 : B.innerText) || "";
12660
12656
  }, u = re({}), h = re(0), f = re(0), _ = re(""), m = P(() => [i.value, r.value]), p = _t(
12661
12657
  m,
12662
12658
  (g) => {
@@ -12872,15 +12868,15 @@ const j0 = { class: "yaml-config" }, Tp = /* @__PURE__ */ Ae({
12872
12868
  i("click:row", E);
12873
12869
  }), g = (O) => {
12874
12870
  i("sort", O);
12875
- }, { setTablePreferences: b, getTablePreferences: B } = vg(), S = re(B(s.value)), A = P(() => {
12871
+ }, { setTablePreferences: b, getTablePreferences: B } = vg(), A = re(B(s.value)), S = P(() => {
12876
12872
  const O = B(s.value);
12877
12873
  return {
12878
12874
  ...r.initialFetcherParams,
12879
12875
  ...O
12880
12876
  };
12881
12877
  }), R = (O) => {
12882
- S.value = O, l.value.forEach((E) => {
12883
- !("hidable" in E) || !S.value.columnVisibility || E.hidable === !1 && (S.value.columnVisibility[E.key] = !0);
12878
+ A.value = O, l.value.forEach((E) => {
12879
+ !("hidable" in E) || !A.value.columnVisibility || E.hidable === !1 && (A.value.columnVisibility[E.key] = !0);
12884
12880
  }), s.value && b(s.value, O);
12885
12881
  };
12886
12882
  return (O, E) => {
@@ -12910,7 +12906,7 @@ const j0 = { class: "yaml-config" }, Tp = /* @__PURE__ */ Ae({
12910
12906
  "fetcher-cache-key": String(e.fetcherCacheKey),
12911
12907
  headers: l.value,
12912
12908
  "hide-pagination-when-optional": "",
12913
- "initial-fetcher-params": A.value,
12909
+ "initial-fetcher-params": S.value,
12914
12910
  loading: e.isLoading,
12915
12911
  "pagination-offset": e.paginationType === "offset",
12916
12912
  "resize-columns": "",
@@ -12918,7 +12914,7 @@ const j0 = { class: "yaml-config" }, Tp = /* @__PURE__ */ Ae({
12918
12914
  "search-input": e.query,
12919
12915
  "sort-handler-function": e.enableClientSort ? e.sortHandlerFunction : void 0,
12920
12916
  sortable: !e.disableSorting,
12921
- "table-preferences": S.value,
12917
+ "table-preferences": A.value,
12922
12918
  onEmptyStateActionClick: m,
12923
12919
  "onRow:click": y.value,
12924
12920
  onSort: E[0] || (E[0] = (te) => g(te)),
@@ -13167,55 +13163,55 @@ const j0 = { class: "yaml-config" }, Tp = /* @__PURE__ */ Ae({
13167
13163
  emits: ["update:modelValue"],
13168
13164
  setup(e, { emit: t }) {
13169
13165
  const { i18n: { t: r } } = He.useI18n(), i = e, n = t, o = re(!1), s = re({}), a = re(/* @__PURE__ */ new Set()), l = P(() => {
13170
- const A = [];
13166
+ const S = [];
13171
13167
  return new URLSearchParams(i.modelValue).forEach((R, O) => {
13172
- R !== "" && A.push(O);
13173
- }), A;
13168
+ R !== "" && S.push(O);
13169
+ }), S;
13174
13170
  }), u = P(() => {
13175
- const A = i.config.fields;
13176
- return Object.keys(A).filter((R) => {
13171
+ const S = i.config.fields;
13172
+ return Object.keys(S).filter((R) => {
13177
13173
  var O;
13178
- return (O = A == null ? void 0 : A[R]) == null ? void 0 : O.searchable;
13174
+ return (O = S == null ? void 0 : S[R]) == null ? void 0 : O.searchable;
13179
13175
  }).map((R) => ({
13180
- label: A[R].label || R,
13176
+ label: S[R].label || R,
13181
13177
  value: R,
13182
13178
  expanded: !1
13183
13179
  }));
13184
13180
  });
13185
- _t(() => i.modelValue, (A) => {
13186
- s.value = {}, new URLSearchParams(A).forEach((R, O) => {
13181
+ _t(() => i.modelValue, (S) => {
13182
+ s.value = {}, new URLSearchParams(S).forEach((R, O) => {
13187
13183
  s.value[O] = R;
13188
13184
  });
13189
13185
  });
13190
13186
  const h = () => {
13191
13187
  o.value = !o.value;
13192
- }, f = (A) => {
13193
- a.value.has(A) ? a.value.delete(A) : a.value.add(A);
13194
- }, _ = (A) => {
13195
- n("update:modelValue", A);
13188
+ }, f = (S) => {
13189
+ a.value.has(S) ? a.value.delete(S) : a.value.add(S);
13190
+ }, _ = (S) => {
13191
+ n("update:modelValue", S);
13196
13192
  }, m = () => {
13197
13193
  _("");
13198
- }, p = (A) => `filter-${A}`, y = (A) => {
13194
+ }, p = (S) => `filter-${S}`, y = (S) => {
13199
13195
  var R, O;
13200
- return (((O = (R = i.config.schema) == null ? void 0 : R[A]) == null ? void 0 : O.values) ?? []).map((E) => ({
13196
+ return (((O = (R = i.config.schema) == null ? void 0 : R[S]) == null ? void 0 : O.values) ?? []).map((E) => ({
13201
13197
  value: E,
13202
13198
  label: E
13203
13199
  }));
13204
- }, g = (A) => {
13200
+ }, g = (S) => {
13205
13201
  var R, O;
13206
- return ((O = (R = i.config.schema) == null ? void 0 : R[A]) == null ? void 0 : O.type) ?? "text";
13207
- }, b = (A) => {
13202
+ return ((O = (R = i.config.schema) == null ? void 0 : R[S]) == null ? void 0 : O.type) ?? "text";
13203
+ }, b = (S) => {
13208
13204
  s.value = {
13209
13205
  ...s.value,
13210
- [A]: ""
13211
- }, S();
13206
+ [S]: ""
13207
+ }, A();
13212
13208
  }, B = () => {
13213
- s.value = {}, S(!0);
13214
- }, S = (A = !1) => {
13209
+ s.value = {}, A(!0);
13210
+ }, A = (S = !1) => {
13215
13211
  const R = Object.keys(s.value).reduce((O, E) => (s.value[E] && (O[E] = `${s.value[E]}`), O), {});
13216
- A && (o.value = !1), n("update:modelValue", new URLSearchParams(R).toString());
13212
+ S && (o.value = !1), n("update:modelValue", new URLSearchParams(R).toString());
13217
13213
  };
13218
- return (A, R) => {
13214
+ return (S, R) => {
13219
13215
  const O = oe("KInput"), E = oe("KButton"), x = oe("KSelect");
13220
13216
  return e.config.isExactMatch ? (N(), le(O, {
13221
13217
  key: 0,
@@ -13309,7 +13305,7 @@ const j0 = { class: "yaml-config" }, Tp = /* @__PURE__ */ Ae({
13309
13305
  appearance: "tertiary",
13310
13306
  "data-testid": "apply-filter",
13311
13307
  size: "small",
13312
- onClick: R[0] || (R[0] = (te) => S(!0))
13308
+ onClick: R[0] || (R[0] = (te) => A(!0))
13313
13309
  }, {
13314
13310
  default: C(() => [
13315
13311
  he(U(k(r)("filter.applyButtonText")), 1)
@@ -13556,9 +13552,9 @@ const X1 = ["aria-labelledby"], eb = { class: "form-section-wrapper" }, tb = {
13556
13552
  };
13557
13553
  }), { fetcher: g, fetcherState: b } = Dp(i.config, m.value), B = () => {
13558
13554
  p.value = "";
13559
- }, S = () => {
13555
+ }, A = () => {
13560
13556
  u.value++;
13561
- }, A = re(null), R = (z, J) => {
13557
+ }, S = re(null), R = (z, J) => {
13562
13558
  const xe = z.id;
13563
13559
  if (!J(xe)) {
13564
13560
  r("copy:error", {
@@ -13621,12 +13617,12 @@ const X1 = ["aria-labelledby"], eb = { class: "form-section-wrapper" }, tb = {
13621
13617
  _t(b, (z) => {
13622
13618
  var J, xe, Qe, ct;
13623
13619
  if (Array.isArray((J = z == null ? void 0 : z.response) == null ? void 0 : J.data) && (Ut.value = z.response.data.length > 0), z.status === tr.Error) {
13624
- A.value = {
13620
+ S.value = {
13625
13621
  title: n("certificates.errors.general")
13626
- }, (ct = (Qe = (xe = z.error) == null ? void 0 : xe.response) == null ? void 0 : Qe.data) != null && ct.message && (A.value.message = z.error.response.data.message), r("error", z.error);
13622
+ }, (ct = (Qe = (xe = z.error) == null ? void 0 : xe.response) == null ? void 0 : Qe.data) != null && ct.message && (S.value.message = z.error.response.data.message), r("error", z.error);
13627
13623
  return;
13628
13624
  }
13629
- pe.value = {}, A.value = null;
13625
+ pe.value = {}, S.value = null;
13630
13626
  });
13631
13627
  const ae = re({
13632
13628
  ctaPath: i.config.createRoute,
@@ -13645,7 +13641,7 @@ const X1 = ["aria-labelledby"], eb = { class: "form-section-wrapper" }, tb = {
13645
13641
  "disable-sorting": h.value,
13646
13642
  "empty-state-options": ae.value,
13647
13643
  "enable-entity-actions": "",
13648
- "error-message": A.value,
13644
+ "error-message": S.value,
13649
13645
  fetcher: k(g),
13650
13646
  "fetcher-cache-key": u.value,
13651
13647
  "pagination-type": "offset",
@@ -13655,7 +13651,7 @@ const X1 = ["aria-labelledby"], eb = { class: "form-section-wrapper" }, tb = {
13655
13651
  "use-action-outside": e.useActionOutside,
13656
13652
  onClearSearchInput: B,
13657
13653
  "onClick:row": J[2] || (J[2] = (ie) => E(ie)),
13658
- onSort: S
13654
+ onSort: A
13659
13655
  }, {
13660
13656
  "toolbar-filter": C(() => [
13661
13657
  V(k(Mp), {
@@ -14014,11 +14010,11 @@ const X1 = ["aria-labelledby"], eb = { class: "form-section-wrapper" }, tb = {
14014
14010
  var x, T;
14015
14011
  let E = `${i.config.apiBaseUrl}${Ci.form[i.config.app].validate}`;
14016
14012
  return i.config.app === "konnect" ? E = E.replace(/{controlPlaneId}/gi, ((x = i.config) == null ? void 0 : x.controlPlaneId) || "") : i.config.app === "kongManager" && (E = E.replace(/\/{workspace}/gi, (T = i.config) != null && T.workspace ? `/${i.config.workspace}` : "")), E = E.replace(/{id}/gi, i.certificateId), E;
14017
- }), S = P(() => {
14013
+ }), A = P(() => {
14018
14014
  var x, T;
14019
14015
  let E = `${i.config.apiBaseUrl}${Ci.form[i.config.app][h.value]}`;
14020
14016
  return i.config.app === "konnect" ? E = E.replace(/{controlPlaneId}/gi, ((x = i.config) == null ? void 0 : x.controlPlaneId) || "") : i.config.app === "kongManager" && (E = E.replace(/\/{workspace}/gi, (T = i.config) != null && T.workspace ? `/${i.config.workspace}` : "")), E = E.replace(/{id}/gi, i.certificateId), E;
14021
- }), A = P(() => {
14017
+ }), S = P(() => {
14022
14018
  var E, x;
14023
14019
  return {
14024
14020
  cert: f.fields.cert,
@@ -14033,7 +14029,7 @@ const X1 = ["aria-labelledby"], eb = { class: "form-section-wrapper" }, tb = {
14033
14029
  try {
14034
14030
  f.isReadonly = !0;
14035
14031
  let pe;
14036
- await l.post(B.value, A.value), h.value === "create" ? pe = await l.post(S.value, A.value) : h.value === "edit" && (pe = ((E = i.config) == null ? void 0 : E.app) === "konnect" ? await l.put(S.value, A.value) : await l.patch(S.value, A.value)), f.fields.cert = ((x = pe == null ? void 0 : pe.data) == null ? void 0 : x.cert) || "", f.fields.key = ((T = pe == null ? void 0 : pe.data) == null ? void 0 : T.key) || "", f.fields.certAlt = ((Q = pe == null ? void 0 : pe.data) == null ? void 0 : Q.cert_alt) || "", f.fields.keyAlt = ((F = pe == null ? void 0 : pe.data) == null ? void 0 : F.key_alt) || "", f.fields.snis = (ce = (te = pe == null ? void 0 : pe.data) == null ? void 0 : te.snis) != null && ce.length ? pe.data.snis : [""], f.fields.tags = ((_e = (ye = pe == null ? void 0 : pe.data) == null ? void 0 : ye.tags) == null ? void 0 : _e.join(", ")) || "", Object.assign(_, f.fields), r("update", pe == null ? void 0 : pe.data);
14032
+ await l.post(B.value, S.value), h.value === "create" ? pe = await l.post(A.value, S.value) : h.value === "edit" && (pe = ((E = i.config) == null ? void 0 : E.app) === "konnect" ? await l.put(A.value, S.value) : await l.patch(A.value, S.value)), f.fields.cert = ((x = pe == null ? void 0 : pe.data) == null ? void 0 : x.cert) || "", f.fields.key = ((T = pe == null ? void 0 : pe.data) == null ? void 0 : T.key) || "", f.fields.certAlt = ((Q = pe == null ? void 0 : pe.data) == null ? void 0 : Q.cert_alt) || "", f.fields.keyAlt = ((F = pe == null ? void 0 : pe.data) == null ? void 0 : F.key_alt) || "", f.fields.snis = (ce = (te = pe == null ? void 0 : pe.data) == null ? void 0 : te.snis) != null && ce.length ? pe.data.snis : [""], f.fields.tags = ((_e = (ye = pe == null ? void 0 : pe.data) == null ? void 0 : ye.tags) == null ? void 0 : _e.join(", ")) || "", Object.assign(_, f.fields), r("update", pe == null ? void 0 : pe.data);
14037
14033
  } catch (pe) {
14038
14034
  f.errorMessage = a(pe), r("error", pe);
14039
14035
  } finally {
@@ -14049,7 +14045,7 @@ const X1 = ["aria-labelledby"], eb = { class: "form-section-wrapper" }, tb = {
14049
14045
  "edit-id": e.certificateId,
14050
14046
  "error-message": f.errorMessage,
14051
14047
  "fetch-url": u.value,
14052
- "form-fields": A.value,
14048
+ "form-fields": S.value,
14053
14049
  "is-readonly": f.isReadonly,
14054
14050
  onCancel: y,
14055
14051
  "onFetch:error": x[7] || (x[7] = (F) => E.$emit("error", F)),
@@ -14244,24 +14240,24 @@ const X1 = ["aria-labelledby"], eb = { class: "form-section-wrapper" }, tb = {
14244
14240
  if (f.value)
14245
14241
  return u(f.value);
14246
14242
  }), m = P(() => {
14247
- var S;
14248
- return ((S = _.value) == null ? void 0 : S.schemaIssuer) || "";
14243
+ var A;
14244
+ return ((A = _.value) == null ? void 0 : A.schemaIssuer) || "";
14249
14245
  }), p = P(() => {
14250
- var S, A;
14251
- return (S = _.value) != null && S.schemaExpiry ? s((A = _.value) == null ? void 0 : A.schemaExpiry) : "";
14246
+ var A, S;
14247
+ return (A = _.value) != null && A.schemaExpiry ? s((S = _.value) == null ? void 0 : S.schemaExpiry) : "";
14252
14248
  }), y = P(() => {
14253
- var S;
14254
- return ((S = _.value) == null ? void 0 : S.schemaKeyUsages) || [];
14255
- }), g = (S, A) => {
14256
- const R = l("rowValue", A);
14257
- if (S === "expiry")
14249
+ var A;
14250
+ return ((A = _.value) == null ? void 0 : A.schemaKeyUsages) || [];
14251
+ }), g = (A, S) => {
14252
+ const R = l("rowValue", S);
14253
+ if (A === "expiry")
14258
14254
  return p.value;
14259
- if (S === "key_usages")
14255
+ if (A === "key_usages")
14260
14256
  return y.value;
14261
14257
  if (R)
14262
- return R[S];
14263
- }, b = (S) => {
14264
- f.value = S, i("fetch:success", S);
14258
+ return R[A];
14259
+ }, b = (A) => {
14260
+ f.value = A, i("fetch:success", A);
14265
14261
  }, B = re({
14266
14262
  id: {},
14267
14263
  updated_at: {},
@@ -14304,7 +14300,7 @@ const X1 = ["aria-labelledby"], eb = { class: "form-section-wrapper" }, tb = {
14304
14300
  tooltip: o("ca-certificates.form.fields.tags.tooltip")
14305
14301
  }
14306
14302
  });
14307
- return (S, A) => {
14303
+ return (A, S) => {
14308
14304
  const R = oe("KCodeBlock"), O = oe("KLabel"), E = oe("KBadge");
14309
14305
  return N(), L("div", Ab, [
14310
14306
  V(k(jp), {
@@ -14313,9 +14309,9 @@ const X1 = ["aria-labelledby"], eb = { class: "form-section-wrapper" }, tb = {
14313
14309
  "config-schema": B.value,
14314
14310
  "fetch-url": h.value,
14315
14311
  "hide-title": e.hideTitle,
14316
- "onFetch:error": A[0] || (A[0] = (x) => S.$emit("fetch:error", x)),
14312
+ "onFetch:error": S[0] || (S[0] = (x) => A.$emit("fetch:error", x)),
14317
14313
  "onFetch:success": b,
14318
- onLoading: A[1] || (A[1] = (x) => S.$emit("loading", x))
14314
+ onLoading: S[1] || (S[1] = (x) => A.$emit("loading", x))
14319
14315
  }, {
14320
14316
  cert: C((x) => [
14321
14317
  k(l)("rowValue", x) ? (N(), le(R, {
@@ -14439,9 +14435,9 @@ const X1 = ["aria-labelledby"], eb = { class: "form-section-wrapper" }, tb = {
14439
14435
  };
14440
14436
  }), { fetcher: g, fetcherState: b } = Dp(i.config, m.value), B = () => {
14441
14437
  p.value = "";
14442
- }, S = () => {
14438
+ }, A = () => {
14443
14439
  u.value++;
14444
- }, A = re(null), R = (de, z) => {
14440
+ }, S = re(null), R = (de, z) => {
14445
14441
  const J = de.id;
14446
14442
  if (!z(J)) {
14447
14443
  r("copy:error", {
@@ -14498,12 +14494,12 @@ const X1 = ["aria-labelledby"], eb = { class: "form-section-wrapper" }, tb = {
14498
14494
  _t(b, (de) => {
14499
14495
  var z, J, xe, Qe;
14500
14496
  if (Array.isArray((z = de == null ? void 0 : de.response) == null ? void 0 : z.data) && (fr.value = de.response.data.length > 0), de.status === tr.Error) {
14501
- A.value = {
14497
+ S.value = {
14502
14498
  title: n("ca-certificates.errors.general")
14503
- }, (Qe = (xe = (J = de.error) == null ? void 0 : J.response) == null ? void 0 : xe.data) != null && Qe.message && (A.value.message = de.error.response.data.message), r("error", de.error);
14499
+ }, (Qe = (xe = (J = de.error) == null ? void 0 : J.response) == null ? void 0 : xe.data) != null && Qe.message && (S.value.message = de.error.response.data.message), r("error", de.error);
14504
14500
  return;
14505
14501
  }
14506
- _e.value = {}, A.value = null;
14502
+ _e.value = {}, S.value = null;
14507
14503
  });
14508
14504
  const Ut = re({
14509
14505
  ctaPath: i.config.createRoute,
@@ -14522,7 +14518,7 @@ const X1 = ["aria-labelledby"], eb = { class: "form-section-wrapper" }, tb = {
14522
14518
  "disable-sorting": h.value,
14523
14519
  "empty-state-options": Ut.value,
14524
14520
  "enable-entity-actions": "",
14525
- "error-message": A.value,
14521
+ "error-message": S.value,
14526
14522
  fetcher: k(g),
14527
14523
  "fetcher-cache-key": u.value,
14528
14524
  "pagination-type": "offset",
@@ -14532,7 +14528,7 @@ const X1 = ["aria-labelledby"], eb = { class: "form-section-wrapper" }, tb = {
14532
14528
  "use-action-outside": e.useActionOutside,
14533
14529
  onClearSearchInput: B,
14534
14530
  "onClick:row": z[2] || (z[2] = (fe) => E(fe)),
14535
- onSort: S
14531
+ onSort: A
14536
14532
  }, {
14537
14533
  "toolbar-filter": C(() => [
14538
14534
  V(k(Mp), {
@@ -14718,8 +14714,8 @@ const X1 = ["aria-labelledby"], eb = { class: "form-section-wrapper" }, tb = {
14718
14714
  },
14719
14715
  emits: ["update", "error", "loading"],
14720
14716
  setup(e, { emit: t }) {
14721
- var S;
14722
- const r = t, i = e, n = Fi(), { i18n: { t: o } } = At.useI18n(), { getMessageFromError: s } = Up(), { axiosInstance: a } = Yo((S = i.config) == null ? void 0 : S.axiosRequestConfig), l = P(() => xi.form[i.config.app].edit), u = P(() => i.certificateId ? rr.Edit : rr.Create), h = mn({
14717
+ var A;
14718
+ const r = t, i = e, n = Fi(), { i18n: { t: o } } = At.useI18n(), { getMessageFromError: s } = Up(), { axiosInstance: a } = Yo((A = i.config) == null ? void 0 : A.axiosRequestConfig), l = P(() => xi.form[i.config.app].edit), u = P(() => i.certificateId ? rr.Edit : rr.Create), h = mn({
14723
14719
  fields: {
14724
14720
  cert: "",
14725
14721
  certDigest: "",
@@ -14731,39 +14727,39 @@ const X1 = ["aria-labelledby"], eb = { class: "form-section-wrapper" }, tb = {
14731
14727
  cert: "",
14732
14728
  certDigest: "",
14733
14729
  tags: ""
14734
- }), _ = P(() => (u.value === rr.Create || JSON.stringify(h.fields) !== JSON.stringify(f)) && !!h.fields.cert), m = (A) => {
14730
+ }), _ = P(() => (u.value === rr.Create || JSON.stringify(h.fields) !== JSON.stringify(f)) && !!h.fields.cert), m = (S) => {
14735
14731
  var R;
14736
- h.fields.cert = (A == null ? void 0 : A.cert) || "", h.fields.certDigest = (A == null ? void 0 : A.cert_digest) || "", h.fields.tags = ((R = A == null ? void 0 : A.tags) == null ? void 0 : R.join(", ")) || "", Object.assign(f, h.fields);
14732
+ h.fields.cert = (S == null ? void 0 : S.cert) || "", h.fields.certDigest = (S == null ? void 0 : S.cert_digest) || "", h.fields.tags = ((R = S == null ? void 0 : S.tags) == null ? void 0 : R.join(", ")) || "", Object.assign(f, h.fields);
14737
14733
  }, p = () => {
14738
14734
  n.push(i.config.cancelRoute);
14739
14735
  }, y = P(() => {
14740
14736
  var R, O;
14741
- let A = `${i.config.apiBaseUrl}${xi.form[i.config.app].validate}`;
14742
- return i.config.app === "konnect" ? A = A.replace(/{controlPlaneId}/gi, ((R = i.config) == null ? void 0 : R.controlPlaneId) || "") : i.config.app === "kongManager" && (A = A.replace(/\/{workspace}/gi, (O = i.config) != null && O.workspace ? `/${i.config.workspace}` : "")), A = A.replace(/{id}/gi, i.certificateId), A;
14737
+ let S = `${i.config.apiBaseUrl}${xi.form[i.config.app].validate}`;
14738
+ return i.config.app === "konnect" ? S = S.replace(/{controlPlaneId}/gi, ((R = i.config) == null ? void 0 : R.controlPlaneId) || "") : i.config.app === "kongManager" && (S = S.replace(/\/{workspace}/gi, (O = i.config) != null && O.workspace ? `/${i.config.workspace}` : "")), S = S.replace(/{id}/gi, i.certificateId), S;
14743
14739
  }), g = P(() => {
14744
14740
  var R, O;
14745
- let A = `${i.config.apiBaseUrl}${xi.form[i.config.app][u.value]}`;
14746
- return i.config.app === "konnect" ? A = A.replace(/{controlPlaneId}/gi, ((R = i.config) == null ? void 0 : R.controlPlaneId) || "") : i.config.app === "kongManager" && (A = A.replace(/\/{workspace}/gi, (O = i.config) != null && O.workspace ? `/${i.config.workspace}` : "")), A = A.replace(/{id}/gi, i.certificateId), A;
14741
+ let S = `${i.config.apiBaseUrl}${xi.form[i.config.app][u.value]}`;
14742
+ return i.config.app === "konnect" ? S = S.replace(/{controlPlaneId}/gi, ((R = i.config) == null ? void 0 : R.controlPlaneId) || "") : i.config.app === "kongManager" && (S = S.replace(/\/{workspace}/gi, (O = i.config) != null && O.workspace ? `/${i.config.workspace}` : "")), S = S.replace(/{id}/gi, i.certificateId), S;
14747
14743
  }), b = P(() => {
14748
- var A, R;
14744
+ var S, R;
14749
14745
  return {
14750
14746
  cert: h.fields.cert,
14751
14747
  cert_digest: h.fields.certDigest || null,
14752
- tags: (R = (A = h.fields.tags.split(",")) == null ? void 0 : A.map((O) => String(O || "").trim())) == null ? void 0 : R.filter((O) => O !== "")
14748
+ tags: (R = (S = h.fields.tags.split(",")) == null ? void 0 : S.map((O) => String(O || "").trim())) == null ? void 0 : R.filter((O) => O !== "")
14753
14749
  };
14754
14750
  }), B = async () => {
14755
- var A, R, O, E, x;
14751
+ var S, R, O, E, x;
14756
14752
  try {
14757
14753
  h.isReadonly = !0;
14758
14754
  let T;
14759
- await a.post(y.value, b.value), u.value === "create" ? T = await a.post(g.value, b.value) : u.value === "edit" && (T = ((A = i.config) == null ? void 0 : A.app) === "konnect" ? await a.put(g.value, b.value) : await a.patch(g.value, b.value)), h.fields.cert = ((R = T == null ? void 0 : T.data) == null ? void 0 : R.cert) || "", h.fields.certDigest = ((O = T == null ? void 0 : T.data) == null ? void 0 : O.cert_digest) || "", h.fields.tags = ((x = (E = T == null ? void 0 : T.data) == null ? void 0 : E.tags) == null ? void 0 : x.join(", ")) || "", Object.assign(f, h.fields), r("update", T == null ? void 0 : T.data);
14755
+ await a.post(y.value, b.value), u.value === "create" ? T = await a.post(g.value, b.value) : u.value === "edit" && (T = ((S = i.config) == null ? void 0 : S.app) === "konnect" ? await a.put(g.value, b.value) : await a.patch(g.value, b.value)), h.fields.cert = ((R = T == null ? void 0 : T.data) == null ? void 0 : R.cert) || "", h.fields.certDigest = ((O = T == null ? void 0 : T.data) == null ? void 0 : O.cert_digest) || "", h.fields.tags = ((x = (E = T == null ? void 0 : T.data) == null ? void 0 : E.tags) == null ? void 0 : x.join(", ")) || "", Object.assign(f, h.fields), r("update", T == null ? void 0 : T.data);
14760
14756
  } catch (T) {
14761
14757
  h.errorMessage = s(T), r("error", T);
14762
14758
  } finally {
14763
14759
  h.isReadonly = !1;
14764
14760
  }
14765
14761
  };
14766
- return (A, R) => {
14762
+ return (S, R) => {
14767
14763
  const O = oe("KTextArea"), E = oe("KInput");
14768
14764
  return N(), L("div", jb, [
14769
14765
  V(k($p), {
@@ -14775,9 +14771,9 @@ const X1 = ["aria-labelledby"], eb = { class: "form-section-wrapper" }, tb = {
14775
14771
  "form-fields": b.value,
14776
14772
  "is-readonly": h.isReadonly,
14777
14773
  onCancel: p,
14778
- "onFetch:error": R[3] || (R[3] = (x) => A.$emit("error", x)),
14774
+ "onFetch:error": R[3] || (R[3] = (x) => S.$emit("error", x)),
14779
14775
  "onFetch:success": m,
14780
- onLoading: R[4] || (R[4] = (x) => A.$emit("loading", x)),
14776
+ onLoading: R[4] || (R[4] = (x) => S.$emit("loading", x)),
14781
14777
  onSubmit: B
14782
14778
  }, {
14783
14779
  default: C(() => [
@@ -14930,7 +14926,7 @@ const X1 = ["aria-labelledby"], eb = { class: "form-section-wrapper" }, tb = {
14930
14926
  if (x === "expiry")
14931
14927
  return g.value;
14932
14928
  if (x === "key_usages")
14933
- return A.value;
14929
+ return S.value;
14934
14930
  if (x === "san_names")
14935
14931
  return B.value;
14936
14932
  if (Q)
@@ -14947,10 +14943,10 @@ const X1 = ["aria-labelledby"], eb = { class: "form-section-wrapper" }, tb = {
14947
14943
  }), B = P(() => {
14948
14944
  var x;
14949
14945
  return ((x = y.value) == null ? void 0 : x.schemaSanNames) || "";
14950
- }), S = P(() => {
14946
+ }), A = P(() => {
14951
14947
  var x;
14952
14948
  return ((x = y.value) == null ? void 0 : x.schemaSubject) || "";
14953
- }), A = P(() => {
14949
+ }), S = P(() => {
14954
14950
  var x;
14955
14951
  return ((x = y.value) == null ? void 0 : x.schemaKeyUsages) || [];
14956
14952
  }), R = P(() => {
@@ -15036,7 +15032,7 @@ const X1 = ["aria-labelledby"], eb = { class: "form-section-wrapper" }, tb = {
15036
15032
  he(U(B.value || "–"), 1)
15037
15033
  ]),
15038
15034
  subject: C(() => [
15039
- he(U(S.value || "–"), 1)
15035
+ he(U(A.value || "–"), 1)
15040
15036
  ]),
15041
15037
  "cert_alt-label-tooltip": C(() => [
15042
15038
  V(k(s), {
@@ -15061,8 +15057,8 @@ const X1 = ["aria-labelledby"], eb = { class: "form-section-wrapper" }, tb = {
15061
15057
  })
15062
15058
  ]),
15063
15059
  key_usages: C(() => [
15064
- A.value.length ? ve("", !0) : (N(), L("div", Rb, U("–"))),
15065
- (N(!0), L(Je, null, qe(A.value, (ce, ye) => (N(), le(te, {
15060
+ S.value.length ? ve("", !0) : (N(), L("div", Rb, U("–"))),
15061
+ (N(!0), L(Je, null, qe(S.value, (ce, ye) => (N(), le(te, {
15066
15062
  key: `key_usages-badge-tag-${ye}`,
15067
15063
  class: "config-badge",
15068
15064
  "data-testid": `key_usages-badge-tag-${ye}`,