@kong-ui-public/entities-certificates 3.12.34 → 3.13.0

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 Ae, defineComponent as gr, computed as re, watch as pn, onBeforeMount as Jl, resolveComponent as we, openBlock as F, createElementBlock as ue, createVNode as k, unref as y, createSlots as Ii, withCtx as w, createTextVNode as oe, toDisplayString as $, createBlock as Se, createCommentVNode as xe, Teleport as Yl, createElementVNode as Ge, Fragment as Ni, renderList as Oi, reactive as yn } from "vue";
1
+ import { ref as Ae, defineComponent as gr, computed as re, watch as pn, onBeforeMount as Jl, resolveComponent as we, openBlock as F, createElementBlock as ue, createVNode as k, unref as y, createSlots as Ii, withCtx as w, createTextVNode as oe, toDisplayString as U, createBlock as Se, createCommentVNode as xe, Teleport as Yl, createElementVNode as Ge, Fragment as Ni, renderList as Oi, reactive as yn } from "vue";
2
2
  import { useRouter as Qn } from "vue-router";
3
3
  import { BookIcon as gn, AddIcon as tr, ServiceDocumentIcon as Zl, TrashIcon as yd } from "@kong/icons";
4
4
  import { createI18n as gd, i18nTComponent as vd } from "@kong-ui-public/i18n";
@@ -83,34 +83,34 @@ var kc;
83
83
  }
84
84
  e("decorate", Ne);
85
85
  function P(h, g) {
86
- function m(C, U) {
86
+ function m(C, D) {
87
87
  if (!pe(C))
88
88
  throw new TypeError();
89
- if (!L(U) && !Pe(U))
89
+ if (!L(D) && !Pe(D))
90
90
  throw new TypeError();
91
- Ar(h, g, C, U);
91
+ Ar(h, g, C, D);
92
92
  }
93
93
  return m;
94
94
  }
95
95
  e("metadata", P);
96
- function H(h, g, m, C) {
96
+ function $(h, g, m, C) {
97
97
  if (!pe(m))
98
98
  throw new TypeError();
99
99
  return L(C) || (C = Y(C)), Ar(h, g, m, C);
100
100
  }
101
- e("defineMetadata", H);
101
+ e("defineMetadata", $);
102
102
  function de(h, g, m) {
103
103
  if (!pe(g))
104
104
  throw new TypeError();
105
105
  return L(m) || (m = Y(m)), ye(h, g, m);
106
106
  }
107
107
  e("hasMetadata", de);
108
- function M(h, g, m) {
108
+ function H(h, g, m) {
109
109
  if (!pe(g))
110
110
  throw new TypeError();
111
111
  return L(m) || (m = Y(m)), X(h, g, m);
112
112
  }
113
- e("hasOwnMetadata", M);
113
+ e("hasOwnMetadata", H);
114
114
  function V(h, g, m) {
115
115
  if (!pe(g))
116
116
  throw new TypeError();
@@ -152,18 +152,18 @@ var kc;
152
152
  e("deleteMetadata", pt);
153
153
  function yt(h, g) {
154
154
  for (var m = h.length - 1; m >= 0; --m) {
155
- var C = h[m], U = C(g);
156
- if (!L(U) && !vt(U)) {
157
- if (!G(U))
155
+ var C = h[m], D = C(g);
156
+ if (!L(D) && !vt(D)) {
157
+ if (!G(D))
158
158
  throw new TypeError();
159
- g = U;
159
+ g = D;
160
160
  }
161
161
  }
162
162
  return g;
163
163
  }
164
164
  function he(h, g, m, C) {
165
- for (var U = h.length - 1; U >= 0; --U) {
166
- var Ie = h[U], Ce = Ie(g, m, C);
165
+ for (var D = h.length - 1; D >= 0; --D) {
166
+ var Ie = h[D], Ce = Ie(g, m, C);
167
167
  if (!L(Ce) && !vt(Ce)) {
168
168
  if (!pe(Ce))
169
169
  throw new TypeError();
@@ -176,8 +176,8 @@ var kc;
176
176
  var C = X(h, g, m);
177
177
  if (C)
178
178
  return !0;
179
- var U = zs(g);
180
- return vt(U) ? !1 : ye(h, U, m);
179
+ var D = zs(g);
180
+ return vt(D) ? !1 : ye(h, D, m);
181
181
  }
182
182
  function X(h, g, m) {
183
183
  var C = ti(
@@ -192,9 +192,9 @@ var kc;
192
192
  var C = X(h, g, m);
193
193
  if (C)
194
194
  return Yt(h, g, m);
195
- var U = zs(g);
196
- if (!vt(U))
197
- return gt(h, U, m);
195
+ var D = zs(g);
196
+ if (!vt(D))
197
+ return gt(h, D, m);
198
198
  }
199
199
  function Yt(h, g, m) {
200
200
  var C = ti(
@@ -207,28 +207,28 @@ var kc;
207
207
  return C.OrdinaryGetOwnMetadata(h, g, m);
208
208
  }
209
209
  function Ar(h, g, m, C) {
210
- var U = ti(
210
+ var D = ti(
211
211
  m,
212
212
  C,
213
213
  /*Create*/
214
214
  !0
215
215
  );
216
- U.OrdinaryDefineOwnMetadata(h, g, m, C);
216
+ D.OrdinaryDefineOwnMetadata(h, g, m, C);
217
217
  }
218
218
  function Ut(h, g) {
219
219
  var m = Bt(h, g), C = zs(h);
220
220
  if (C === null)
221
221
  return m;
222
- var U = Ut(C, g);
223
- if (U.length <= 0)
222
+ var D = Ut(C, g);
223
+ if (D.length <= 0)
224
224
  return m;
225
225
  if (m.length <= 0)
226
- return U;
226
+ return D;
227
227
  for (var Ie = new fe(), Ce = [], Q = 0, E = m; Q < E.length; Q++) {
228
228
  var O = E[Q], T = Ie.has(O);
229
229
  T || (Ie.add(O), Ce.push(O));
230
230
  }
231
- for (var R = 0, ee = U; R < ee.length; R++) {
231
+ for (var R = 0, ee = D; R < ee.length; R++) {
232
232
  var O = ee[R], T = Ie.has(O);
233
233
  T || (Ie.add(O), Ce.push(O));
234
234
  }
@@ -292,19 +292,19 @@ var kc;
292
292
  }
293
293
  var m = "string", C = _e(h, s);
294
294
  if (C !== void 0) {
295
- var U = C.call(h, m);
296
- if (pe(U))
295
+ var D = C.call(h, m);
296
+ if (pe(D))
297
297
  throw new TypeError();
298
- return U;
298
+ return D;
299
299
  }
300
300
  return J(h);
301
301
  }
302
302
  function J(h, g) {
303
303
  var m, C;
304
304
  {
305
- var U = h.toString;
306
- if (Et(U)) {
307
- var C = U.call(h);
305
+ var D = h.toString;
306
+ if (Et(D)) {
307
+ var C = D.call(h);
308
308
  if (!pe(C))
309
309
  return C;
310
310
  }
@@ -346,7 +346,7 @@ var kc;
346
346
  return !1;
347
347
  }
348
348
  }
349
- function D(h, g) {
349
+ function M(h, g) {
350
350
  return h === g || h !== h && g !== g;
351
351
  }
352
352
  function _e(h, g) {
@@ -384,13 +384,13 @@ var kc;
384
384
  var m = h.prototype, C = m && Object.getPrototypeOf(m);
385
385
  if (C == null || C === Object.prototype)
386
386
  return g;
387
- var U = C.constructor;
388
- return typeof U != "function" || U === h ? g : U;
387
+ var D = C.constructor;
388
+ return typeof D != "function" || D === h ? g : D;
389
389
  }
390
390
  function od() {
391
391
  var h;
392
392
  !L(ne) && typeof t.Reflect < "u" && !(ne in t.Reflect) && typeof t.Reflect.defineMetadata == "function" && (h = ld(t.Reflect));
393
- var g, m, C, U = new ae(), Ie = {
393
+ var g, m, C, D = new ae(), Ie = {
394
394
  registerProvider: Ce,
395
395
  getProvider: E,
396
396
  setProvider: T
@@ -439,8 +439,8 @@ var kc;
439
439
  return h;
440
440
  }
441
441
  function E(R, ee) {
442
- var ge = U.get(R), ke;
443
- return L(ge) || (ke = ge.get(ee)), L(ke) && (ke = Q(R, ee), L(ke) || (L(ge) && (ge = new K(), U.set(R, ge)), ge.set(ee, ke))), ke;
442
+ var ge = D.get(R), ke;
443
+ return L(ge) || (ke = ge.get(ee)), L(ke) && (ke = Q(R, ee), L(ke) || (L(ge) && (ge = new K(), D.set(R, ge)), ge.set(ee, ke))), ke;
444
444
  }
445
445
  function O(R) {
446
446
  if (L(R))
@@ -454,8 +454,8 @@ var kc;
454
454
  if (ke !== ge) {
455
455
  if (!L(ke))
456
456
  return !1;
457
- var st = U.get(R);
458
- L(st) && (st = new K(), U.set(R, st)), st.set(ee, ge);
457
+ var st = D.get(R);
458
+ L(st) && (st = new K(), D.set(R, st)), st.set(ee, ge);
459
459
  }
460
460
  return !0;
461
461
  }
@@ -476,7 +476,7 @@ var kc;
476
476
  return L(R) ? !1 : R.has(T);
477
477
  },
478
478
  OrdinaryDefineOwnMetadata: Ce,
479
- OrdinaryHasOwnMetadata: U,
479
+ OrdinaryHasOwnMetadata: D,
480
480
  OrdinaryGetOwnMetadata: Ie,
481
481
  OrdinaryOwnMetadataKeys: Q,
482
482
  OrdinaryDeleteMetadata: E
@@ -498,7 +498,7 @@ var kc;
498
498
  }
499
499
  return ke;
500
500
  }
501
- function U(O, T, R) {
501
+ function D(O, T, R) {
502
502
  var ee = C(
503
503
  T,
504
504
  R,
@@ -569,15 +569,15 @@ var kc;
569
569
  }
570
570
  }
571
571
  function ld(h) {
572
- var g = h.defineMetadata, m = h.hasOwnMetadata, C = h.getOwnMetadata, U = h.getOwnMetadataKeys, Ie = h.deleteMetadata, Ce = new ae(), Q = {
572
+ var g = h.defineMetadata, m = h.hasOwnMetadata, C = h.getOwnMetadata, D = h.getOwnMetadataKeys, Ie = h.deleteMetadata, Ce = new ae(), Q = {
573
573
  isProviderFor: function(E, O) {
574
574
  var T = Ce.get(E);
575
- return !L(T) && T.has(O) ? !0 : U(E, O).length ? (L(T) && (T = new fe(), Ce.set(E, T)), T.add(O), !0) : !1;
575
+ return !L(T) && T.has(O) ? !0 : D(E, O).length ? (L(T) && (T = new fe(), Ce.set(E, T)), T.add(O), !0) : !1;
576
576
  },
577
577
  OrdinaryDefineOwnMetadata: g,
578
578
  OrdinaryHasOwnMetadata: m,
579
579
  OrdinaryGetOwnMetadata: C,
580
- OrdinaryOwnMetadataKeys: U,
580
+ OrdinaryOwnMetadataKeys: D,
581
581
  OrdinaryDeleteMetadata: Ie
582
582
  };
583
583
  return Q;
@@ -657,13 +657,13 @@ var kc;
657
657
  if (O >= 0) {
658
658
  for (var T = this._keys.length, R = O + 1; R < T; R++)
659
659
  this._keys[R - 1] = this._keys[R], this._values[R - 1] = this._values[R];
660
- return this._keys.length--, this._values.length--, D(E, this._cacheKey) && (this._cacheKey = h, this._cacheIndex = -2), !0;
660
+ return this._keys.length--, this._values.length--, M(E, this._cacheKey) && (this._cacheKey = h, this._cacheIndex = -2), !0;
661
661
  }
662
662
  return !1;
663
663
  }, Q.prototype.clear = function() {
664
664
  this._keys.length = 0, this._values.length = 0, this._cacheKey = h, this._cacheIndex = -2;
665
665
  }, Q.prototype.keys = function() {
666
- return new m(this._keys, this._values, U);
666
+ return new m(this._keys, this._values, D);
667
667
  }, Q.prototype.values = function() {
668
668
  return new m(this._keys, this._values, Ie);
669
669
  }, Q.prototype.entries = function() {
@@ -673,10 +673,10 @@ var kc;
673
673
  }, Q.prototype[a] = function() {
674
674
  return this.entries();
675
675
  }, Q.prototype._find = function(E, O) {
676
- if (!D(this._cacheKey, E)) {
676
+ if (!M(this._cacheKey, E)) {
677
677
  this._cacheIndex = -1;
678
678
  for (var T = 0; T < this._keys.length; T++)
679
- if (D(this._keys[T], E)) {
679
+ if (M(this._keys[T], E)) {
680
680
  this._cacheIndex = T;
681
681
  break;
682
682
  }
@@ -686,7 +686,7 @@ var kc;
686
686
  }()
687
687
  );
688
688
  return C;
689
- function U(Q, E) {
689
+ function D(Q, E) {
690
690
  return Q;
691
691
  }
692
692
  function Ie(Q, E) {
@@ -741,28 +741,28 @@ var kc;
741
741
  this._key = C();
742
742
  }
743
743
  return E.prototype.has = function(O) {
744
- var T = U(
744
+ var T = D(
745
745
  O,
746
746
  /*create*/
747
747
  !1
748
748
  );
749
749
  return T !== void 0 ? v.has(T, this._key) : !1;
750
750
  }, E.prototype.get = function(O) {
751
- var T = U(
751
+ var T = D(
752
752
  O,
753
753
  /*create*/
754
754
  !1
755
755
  );
756
756
  return T !== void 0 ? v.get(T, this._key) : void 0;
757
757
  }, E.prototype.set = function(O, T) {
758
- var R = U(
758
+ var R = D(
759
759
  O,
760
760
  /*create*/
761
761
  !0
762
762
  );
763
763
  return R[this._key] = T, this;
764
764
  }, E.prototype.delete = function(O) {
765
- var T = U(
765
+ var T = D(
766
766
  O,
767
767
  /*create*/
768
768
  !1
@@ -780,7 +780,7 @@ var kc;
780
780
  while (v.has(g, E));
781
781
  return g[E] = !0, E;
782
782
  }
783
- function U(E, O) {
783
+ function D(E, O) {
784
784
  if (!i.call(E, m)) {
785
785
  if (!O)
786
786
  return;
@@ -9244,7 +9244,7 @@ const ft = {
9244
9244
  useCertificate: fp,
9245
9245
  useI18n: yp,
9246
9246
  useX509: nd
9247
- }, co = "/v2/control-planes/{controlPlaneId}/core-entities", lo = "/{workspace}", Zn = {
9247
+ }, co = "/v2/control-planes/{controlPlaneId}/core-entities/{workspace}", lo = "/{workspace}", Zn = {
9248
9248
  list: {
9249
9249
  konnect: `${co}/certificates`,
9250
9250
  kongManager: `${lo}/certificates`
@@ -9327,7 +9327,7 @@ const ft = {
9327
9327
  }, ne = re(() => {
9328
9328
  var q, Y;
9329
9329
  let _ = `${i.config.apiBaseUrl}${Zn.list[i.config.app]}`;
9330
- return i.config.app === "konnect" ? _ = _.replace(/{controlPlaneId}/gi, ((q = i.config) == null ? void 0 : q.controlPlaneId) || "") : i.config.app === "kongManager" && (_ = _.replace(/\/{workspace}/gi, (Y = i.config) != null && Y.workspace ? `/${i.config.workspace}` : "")), _;
9330
+ return i.config.app === "konnect" && (_ = _.replace(/{controlPlaneId}/gi, ((q = i.config) == null ? void 0 : q.controlPlaneId) || "")), _.replace(/\/{workspace}/gi, (Y = i.config) != null && Y.workspace ? `/${i.config.workspace}` : "");
9331
9331
  }), ce = Ae(""), qe = re(() => {
9332
9332
  const _ = i.config.app === "konnect" || i.config.isExactMatch;
9333
9333
  return _ ? {
@@ -9340,11 +9340,11 @@ const ft = {
9340
9340
  }), {
9341
9341
  fetcher: Ne,
9342
9342
  fetcherState: P,
9343
- fetcherCacheKey: H
9343
+ fetcherCacheKey: $
9344
9344
  } = Ql(re(() => ({ ...i.config, cacheIdentifier: i.cacheIdentifier })), ne), de = () => {
9345
9345
  ce.value = "";
9346
- }, M = () => {
9347
- H.value++;
9346
+ }, H = () => {
9347
+ $.value++;
9348
9348
  }, V = Ae(null), S = async (_, q) => {
9349
9349
  const Y = _.id;
9350
9350
  if (!await q(Y)) {
@@ -9397,7 +9397,7 @@ const ft = {
9397
9397
  if ((_ = ye.value) != null && _.id) {
9398
9398
  gt.value = !0;
9399
9399
  try {
9400
- await u.delete(Ar(ye.value.id)), gt.value = !1, X.value = !1, H.value++, t("delete:success", ye.value);
9400
+ await u.delete(Ar(ye.value.id)), gt.value = !1, X.value = !1, $.value++, t("delete:success", ye.value);
9401
9401
  } catch (Oe) {
9402
9402
  Yt.value = ((Y = (q = Oe.response) == null ? void 0 : q.data) == null ? void 0 : Y.message) || Oe.message || n("certificates.errors.delete"), t("error", Oe);
9403
9403
  } finally {
@@ -9435,20 +9435,20 @@ const ft = {
9435
9435
  "enable-entity-actions": "",
9436
9436
  "error-message": V.value,
9437
9437
  fetcher: y(Ne),
9438
- "fetcher-cache-key": y(H),
9438
+ "fetcher-cache-key": y($),
9439
9439
  "pagination-type": "offset",
9440
9440
  "preferences-storage-key": "kong-ui-entities-certificates-list",
9441
9441
  query: ce.value,
9442
9442
  "table-headers": y(ae),
9443
9443
  onClearSearchInput: de,
9444
- "onClick:row": q[3] || (q[3] = (D) => te(D)),
9445
- onSort: M,
9444
+ "onClick:row": q[3] || (q[3] = (M) => te(M)),
9445
+ onSort: H,
9446
9446
  onState: y(d)
9447
9447
  }, Ii({
9448
9448
  "toolbar-filter": w(() => [
9449
9449
  k(y(nu), {
9450
9450
  modelValue: ce.value,
9451
- "onUpdate:modelValue": q[0] || (q[0] = (D) => ce.value = D),
9451
+ "onUpdate:modelValue": q[0] || (q[0] = (M) => ce.value = M),
9452
9452
  config: qe.value
9453
9453
  }, null, 8, ["modelValue", "config"]),
9454
9454
  k(y(ct), { "auth-function": r.canCreate }, {
@@ -9462,7 +9462,7 @@ const ft = {
9462
9462
  }, {
9463
9463
  default: w(() => [
9464
9464
  k(y(tr)),
9465
- oe(" " + $(y(n)("certificates.list.toolbar_actions.new_certificate")), 1)
9465
+ oe(" " + U(y(n)("certificates.list.toolbar_actions.new_certificate")), 1)
9466
9466
  ]),
9467
9467
  _: 1
9468
9468
  }, 8, ["to"])) : xe("", !0)
@@ -9482,7 +9482,7 @@ const ft = {
9482
9482
  class: "open-learning-hub",
9483
9483
  "data-testid": "certificates-learn-more-button",
9484
9484
  icon: "",
9485
- onClick: q[1] || (q[1] = (D) => _.$emit("click:learn-more"))
9485
+ onClick: q[1] || (q[1] = (M) => _.$emit("click:learn-more"))
9486
9486
  }, {
9487
9487
  default: w(() => [
9488
9488
  k(y(gn), { decorative: "" })
@@ -9502,7 +9502,7 @@ const ft = {
9502
9502
  }, {
9503
9503
  default: w(() => [
9504
9504
  k(y(tr)),
9505
- oe(" " + $(y(n)("certificates.list.toolbar_actions.new_certificate")), 1)
9505
+ oe(" " + U(y(n)("certificates.list.toolbar_actions.new_certificate")), 1)
9506
9506
  ]),
9507
9507
  _: 1
9508
9508
  }, 8, ["size", "to"])
@@ -9512,46 +9512,46 @@ const ft = {
9512
9512
  ])
9513
9513
  ], 8, ["disabled"]))
9514
9514
  ]),
9515
- subject: w(({ row: D }) => {
9515
+ subject: w(({ row: M }) => {
9516
9516
  var _e;
9517
9517
  return [
9518
- r.config.app === "konnect" ? (F(), ue("b", mp, $((_e = D == null ? void 0 : D.metadata) != null && _e.subject ? D.metadata.subject : "-"), 1)) : (F(), ue("b", bp, $(y(Bt)(D).schemaSubject || "-"), 1))
9518
+ r.config.app === "konnect" ? (F(), ue("b", mp, U((_e = M == null ? void 0 : M.metadata) != null && _e.subject ? M.metadata.subject : "-"), 1)) : (F(), ue("b", bp, U(y(Bt)(M).schemaSubject || "-"), 1))
9519
9519
  ];
9520
9520
  }),
9521
- expiry: w(({ row: D }) => {
9521
+ expiry: w(({ row: M }) => {
9522
9522
  var _e;
9523
9523
  return [
9524
- r.config.app === "konnect" ? (F(), ue("span", wp, $((_e = D == null ? void 0 : D.metadata) != null && _e.expiry ? y(s)(D.metadata.expiry) : "-"), 1)) : (F(), ue("span", Ap, $(y(Bt)(D).schemaExpiry ? y(s)(y(Bt)(D).schemaExpiry) : "-"), 1))
9524
+ r.config.app === "konnect" ? (F(), ue("span", wp, U((_e = M == null ? void 0 : M.metadata) != null && _e.expiry ? y(s)(M.metadata.expiry) : "-"), 1)) : (F(), ue("span", Ap, U(y(Bt)(M).schemaExpiry ? y(s)(y(Bt)(M).schemaExpiry) : "-"), 1))
9525
9525
  ];
9526
9526
  }),
9527
- san: w(({ row: D }) => {
9527
+ san: w(({ row: M }) => {
9528
9528
  var _e;
9529
9529
  return [
9530
- r.config.app === "konnect" ? (F(), ue("span", Sp, $((_e = D == null ? void 0 : D.metadata) != null && _e.dns_names ? `dns=${D.metadata.dns_names.join(", ")}` : "-"), 1)) : (F(), ue("span", kp, $(y(Bt)(D).schemaSanNames || "-"), 1))
9530
+ r.config.app === "konnect" ? (F(), ue("span", Sp, U((_e = M == null ? void 0 : M.metadata) != null && _e.dns_names ? `dns=${M.metadata.dns_names.join(", ")}` : "-"), 1)) : (F(), ue("span", kp, U(y(Bt)(M).schemaSanNames || "-"), 1))
9531
9531
  ];
9532
9532
  }),
9533
- cert: w(({ row: D }) => [
9534
- D != null && D.cert ? (F(), Se(Et, {
9533
+ cert: w(({ row: M }) => [
9534
+ M != null && M.cert ? (F(), Se(Et, {
9535
9535
  key: 0,
9536
9536
  "data-testid": "copy-certificate-cert",
9537
- text: D.cert,
9537
+ text: M.cert,
9538
9538
  truncate: ""
9539
9539
  }, null, 8, ["text"])) : (F(), ue("span", Cp, "-"))
9540
9540
  ]),
9541
- tags: w(({ row: D }) => [
9541
+ tags: w(({ row: M }) => [
9542
9542
  k(y(iu), {
9543
- tags: D == null ? void 0 : D.tags
9543
+ tags: M == null ? void 0 : M.tags
9544
9544
  }, null, 8, ["tags"])
9545
9545
  ]),
9546
- actions: w(({ row: D }) => [
9546
+ actions: w(({ row: M }) => [
9547
9547
  k(Pe, null, {
9548
9548
  default: w(({ copyToClipboard: _e }) => [
9549
9549
  k(G, {
9550
9550
  "data-testid": "action-entity-copy-id",
9551
- onClick: (nn) => S(D, _e)
9551
+ onClick: (nn) => S(M, _e)
9552
9552
  }, {
9553
9553
  default: w(() => [
9554
- oe($(y(n)("certificates.actions.copy_id")), 1)
9554
+ oe(U(y(n)("certificates.actions.copy_id")), 1)
9555
9555
  ]),
9556
9556
  _: 1
9557
9557
  }, 8, ["onClick"])
@@ -9562,10 +9562,10 @@ const ft = {
9562
9562
  default: w(({ copyToClipboard: _e }) => [
9563
9563
  k(G, {
9564
9564
  "data-testid": "action-entity-copy-json",
9565
- onClick: (nn) => W(D, _e)
9565
+ onClick: (nn) => W(M, _e)
9566
9566
  }, {
9567
9567
  default: w(() => [
9568
- oe($(y(n)("certificates.actions.copy_json")), 1)
9568
+ oe(U(y(n)("certificates.actions.copy_json")), 1)
9569
9569
  ]),
9570
9570
  _: 1
9571
9571
  }, 8, ["onClick"])
@@ -9573,24 +9573,24 @@ const ft = {
9573
9573
  _: 2
9574
9574
  }, 1024),
9575
9575
  k(y(ct), {
9576
- "auth-function": () => r.canRetrieve(D)
9576
+ "auth-function": () => r.canRetrieve(M)
9577
9577
  }, {
9578
9578
  default: w(() => [
9579
9579
  k(G, {
9580
9580
  "data-testid": "action-entity-view",
9581
9581
  "has-divider": "",
9582
- item: pt(D.id)
9582
+ item: pt(M.id)
9583
9583
  }, null, 8, ["item"])
9584
9584
  ]),
9585
9585
  _: 2
9586
9586
  }, 1032, ["auth-function"]),
9587
9587
  k(y(ct), {
9588
- "auth-function": () => r.canEdit(D)
9588
+ "auth-function": () => r.canEdit(M)
9589
9589
  }, {
9590
9590
  default: w(() => [
9591
9591
  k(G, {
9592
9592
  "data-testid": "action-entity-edit",
9593
- item: yt(D.id)
9593
+ item: yt(M.id)
9594
9594
  }, null, 8, ["item"])
9595
9595
  ]),
9596
9596
  _: 2
@@ -9602,23 +9602,23 @@ const ft = {
9602
9602
  default: w(() => [
9603
9603
  k(G, {
9604
9604
  "data-testid": "action-entity-add-sni",
9605
- item: he(D.id)
9605
+ item: he(M.id)
9606
9606
  }, null, 8, ["item"])
9607
9607
  ]),
9608
9608
  _: 2
9609
9609
  }, 1032, ["auth-function"])) : xe("", !0),
9610
9610
  k(y(ct), {
9611
- "auth-function": () => r.canDelete(D)
9611
+ "auth-function": () => r.canDelete(M)
9612
9612
  }, {
9613
9613
  default: w(() => [
9614
9614
  k(G, {
9615
9615
  danger: "",
9616
9616
  "data-testid": "action-entity-delete",
9617
9617
  "has-divider": "",
9618
- onClick: (_e) => Sr(D)
9618
+ onClick: (_e) => Sr(M)
9619
9619
  }, {
9620
9620
  default: w(() => [
9621
- oe($(y(n)("certificates.actions.delete")), 1)
9621
+ oe(U(y(n)("certificates.actions.delete")), 1)
9622
9622
  ]),
9623
9623
  _: 1
9624
9624
  }, 8, ["onClick"])
@@ -9631,7 +9631,7 @@ const ft = {
9631
9631
  !ce.value && r.config.app === "konnect" ? {
9632
9632
  name: "empty-state",
9633
9633
  fn: w(() => {
9634
- var D;
9634
+ var M;
9635
9635
  return [
9636
9636
  k(Oe, {
9637
9637
  "data-testid": "certificates-entity-empty-state",
@@ -9650,7 +9650,7 @@ const ft = {
9650
9650
  }, {
9651
9651
  default: w(() => [
9652
9652
  k(y(tr), { decorative: "" }),
9653
- oe(" " + $(y(n)("certificates.list.empty_state_v2.create")), 1)
9653
+ oe(" " + U(y(n)("certificates.list.empty_state_v2.create")), 1)
9654
9654
  ]),
9655
9655
  _: 1
9656
9656
  })) : xe("", !0),
@@ -9661,17 +9661,17 @@ const ft = {
9661
9661
  }, {
9662
9662
  default: w(() => [
9663
9663
  k(y(gn), { decorative: "" }),
9664
- oe(" " + $(y(n)("certificates.list.empty_state_v2.learn_more")), 1)
9664
+ oe(" " + U(y(n)("certificates.list.empty_state_v2.learn_more")), 1)
9665
9665
  ]),
9666
9666
  _: 1
9667
9667
  })
9668
9668
  ]),
9669
9669
  _: 2
9670
9670
  }, [
9671
- (D = r.config) != null && D.isControlPlaneGroup ? {
9671
+ (M = r.config) != null && M.isControlPlaneGroup ? {
9672
9672
  name: "default",
9673
9673
  fn: w(() => [
9674
- oe($(y(n)("certificates.list.empty_state_v2.group")), 1)
9674
+ oe(U(y(n)("certificates.list.empty_state_v2.group")), 1)
9675
9675
  ]),
9676
9676
  key: "0"
9677
9677
  } : void 0
@@ -9696,11 +9696,11 @@ const ft = {
9696
9696
  scope: "global"
9697
9697
  }, {
9698
9698
  "bolded-text": w(() => [
9699
- Ge("b", null, $(y(n)("certificates.delete.boldedText")), 1)
9699
+ Ge("b", null, U(y(n)("certificates.delete.boldedText")), 1)
9700
9700
  ]),
9701
9701
  _: 1
9702
9702
  }),
9703
- Ge("p", null, $(y(n)("certificates.delete.description2")), 1)
9703
+ Ge("p", null, U(y(n)("certificates.delete.description2")), 1)
9704
9704
  ]),
9705
9705
  _: 1
9706
9706
  }, 8, ["action-pending", "entity-type", "error", "title", "visible"])
@@ -9712,7 +9712,7 @@ const ft = {
9712
9712
  for (const [i, n] of e)
9713
9713
  t[i] = n;
9714
9714
  return t;
9715
- }, Xg = /* @__PURE__ */ wr(xp, [["__scopeId", "data-v-84178996"]]), Bp = "#d60027", Ep = { class: "sni-field-container" }, Ip = {
9715
+ }, Xg = /* @__PURE__ */ wr(xp, [["__scopeId", "data-v-7b9523fb"]]), Bp = "#d60027", Ep = { class: "sni-field-container" }, Ip = {
9716
9716
  key: 1,
9717
9717
  class: "sni-field-controls-container"
9718
9718
  }, Np = { key: 0 }, Op = /* @__PURE__ */ gr({
@@ -9745,7 +9745,7 @@ const ft = {
9745
9745
  info: y(s)("certificates.form.fields.snis.tooltip")
9746
9746
  }, {
9747
9747
  default: w(() => [
9748
- oe($(y(s)("certificates.form.fields.snis.label")), 1)
9748
+ oe(U(y(s)("certificates.form.fields.snis.label")), 1)
9749
9749
  ]),
9750
9750
  _: 1
9751
9751
  }, 8, ["info"]),
@@ -9794,7 +9794,7 @@ const ft = {
9794
9794
  onClick: u[1] || (u[1] = (fe) => l.$emit("add"))
9795
9795
  }, {
9796
9796
  default: w(() => [
9797
- oe($(y(s)("certificates.form.fields.snis.add")), 1)
9797
+ oe(U(y(s)("certificates.form.fields.snis.add")), 1)
9798
9798
  ]),
9799
9799
  _: 1
9800
9800
  })
@@ -9806,7 +9806,7 @@ const ft = {
9806
9806
  link: w(() => [
9807
9807
  k(K, { to: r.sniListRoute }, {
9808
9808
  default: w(() => [
9809
- oe($(y(s)("certificates.form.fields.snis.editingTipLink")), 1)
9809
+ oe(U(y(s)("certificates.form.fields.snis.editingTipLink")), 1)
9810
9810
  ]),
9811
9811
  _: 1
9812
9812
  }, 8, ["to"])
@@ -9829,7 +9829,7 @@ const ft = {
9829
9829
  certificateId: {
9830
9830
  type: String,
9831
9831
  required: !1,
9832
- default: ""
9832
+ default: null
9833
9833
  },
9834
9834
  /** If true, the SNI field will be shown */
9835
9835
  showSnisField: {
@@ -9859,42 +9859,42 @@ const ft = {
9859
9859
  keyAlt: "",
9860
9860
  snis: [""],
9861
9861
  tags: ""
9862
- }), fe = re(() => (v.value === Qt.Create || JSON.stringify(p.fields) !== JSON.stringify(K)) && !!p.fields.cert && !!p.fields.key), ae = (M) => {
9862
+ }), fe = re(() => (v.value === Qt.Create || JSON.stringify(p.fields) !== JSON.stringify(K)) && !!p.fields.cert && !!p.fields.key), ae = (H) => {
9863
9863
  var V, S;
9864
- p.fields.cert = (M == null ? void 0 : M.cert) || "", p.fields.key = (M == null ? void 0 : M.key) || "", p.fields.certAlt = (M == null ? void 0 : M.cert_alt) || "", p.fields.keyAlt = (M == null ? void 0 : M.key_alt) || "", p.fields.snis = (V = M == null ? void 0 : M.snis) != null && V.length ? M.snis : [""], p.fields.tags = ((S = M == null ? void 0 : M.tags) == null ? void 0 : S.join(", ")) || "", Object.assign(K, p.fields);
9864
+ p.fields.cert = (H == null ? void 0 : H.cert) || "", p.fields.key = (H == null ? void 0 : H.key) || "", p.fields.certAlt = (H == null ? void 0 : H.cert_alt) || "", p.fields.keyAlt = (H == null ? void 0 : H.key_alt) || "", p.fields.snis = (V = H == null ? void 0 : H.snis) != null && V.length ? H.snis : [""], p.fields.tags = ((S = H == null ? void 0 : H.tags) == null ? void 0 : S.join(", ")) || "", Object.assign(K, p.fields);
9865
9865
  }, ne = () => {
9866
9866
  n.push(i.config.cancelRoute);
9867
9867
  }, ce = () => {
9868
9868
  p.fields.snis.push("");
9869
- }, qe = (M) => {
9870
- p.fields.snis.splice(M, 1);
9869
+ }, qe = (H) => {
9870
+ p.fields.snis.splice(H, 1);
9871
9871
  }, Ne = re(() => {
9872
9872
  var V, S;
9873
- let M = `${i.config.apiBaseUrl}${Zn.form[i.config.app][v.value]}`;
9874
- return i.config.app === "konnect" ? M = M.replace(/{controlPlaneId}/gi, ((V = i.config) == null ? void 0 : V.controlPlaneId) || "") : i.config.app === "kongManager" && (M = M.replace(/\/{workspace}/gi, (S = i.config) != null && S.workspace ? `/${i.config.workspace}` : "")), M = M.replace(/{id}/gi, i.certificateId), M;
9873
+ let H = `${i.config.apiBaseUrl}${Zn.form[i.config.app][v.value]}`;
9874
+ return i.config.app === "konnect" && (H = H.replace(/{controlPlaneId}/gi, ((V = i.config) == null ? void 0 : V.controlPlaneId) || "")), H.replace(/\/{workspace}/gi, (S = i.config) != null && S.workspace ? `/${i.config.workspace}` : "").replace(/{id}/gi, i.certificateId ?? "");
9875
9875
  }), P = re(() => {
9876
- var M, V;
9876
+ var H, V;
9877
9877
  return {
9878
9878
  cert: p.fields.cert,
9879
9879
  key: p.fields.key,
9880
9880
  cert_alt: p.fields.certAlt || null,
9881
9881
  key_alt: p.fields.keyAlt || null,
9882
9882
  ...i.showSnisField ? { snis: p.fields.snis.filter(Boolean) } : {},
9883
- tags: (V = (M = p.fields.tags.split(",")) == null ? void 0 : M.map((S) => String(S || "").trim())) == null ? void 0 : V.filter((S) => S !== "")
9883
+ tags: (V = (H = p.fields.tags.split(",")) == null ? void 0 : H.map((S) => String(S || "").trim())) == null ? void 0 : V.filter((S) => S !== "")
9884
9884
  };
9885
- }), H = async () => {
9886
- var M, V, S, W, te, pt, yt, he, ye;
9885
+ }), $ = async () => {
9886
+ var H, V, S, W, te, pt, yt, he, ye;
9887
9887
  try {
9888
9888
  p.isReadonly = !0;
9889
9889
  let X;
9890
- v.value === "create" ? X = await u.post(Ne.value, P.value) : v.value === "edit" && (X = ((M = i.config) == null ? void 0 : M.app) === "konnect" ? await u.put(Ne.value, P.value) : await u.patch(Ne.value, P.value)), p.fields.cert = ((V = X == null ? void 0 : X.data) == null ? void 0 : V.cert) || "", p.fields.key = ((S = X == null ? void 0 : X.data) == null ? void 0 : S.key) || "", p.fields.certAlt = ((W = X == null ? void 0 : X.data) == null ? void 0 : W.cert_alt) || "", p.fields.keyAlt = ((te = X == null ? void 0 : X.data) == null ? void 0 : te.key_alt) || "", p.fields.snis = (yt = (pt = X == null ? void 0 : X.data) == null ? void 0 : pt.snis) != null && yt.length ? X.data.snis : [""], p.fields.tags = ((ye = (he = X == null ? void 0 : X.data) == null ? void 0 : he.tags) == null ? void 0 : ye.join(", ")) || "", Object.assign(K, p.fields), t("update", X == null ? void 0 : X.data);
9890
+ v.value === "create" ? X = await u.post(Ne.value, P.value) : v.value === "edit" && (X = ((H = i.config) == null ? void 0 : H.app) === "konnect" ? await u.put(Ne.value, P.value) : await u.patch(Ne.value, P.value)), p.fields.cert = ((V = X == null ? void 0 : X.data) == null ? void 0 : V.cert) || "", p.fields.key = ((S = X == null ? void 0 : X.data) == null ? void 0 : S.key) || "", p.fields.certAlt = ((W = X == null ? void 0 : X.data) == null ? void 0 : W.cert_alt) || "", p.fields.keyAlt = ((te = X == null ? void 0 : X.data) == null ? void 0 : te.key_alt) || "", p.fields.snis = (yt = (pt = X == null ? void 0 : X.data) == null ? void 0 : pt.snis) != null && yt.length ? X.data.snis : [""], p.fields.tags = ((ye = (he = X == null ? void 0 : X.data) == null ? void 0 : he.tags) == null ? void 0 : ye.join(", ")) || "", Object.assign(K, p.fields), t("update", X == null ? void 0 : X.data);
9891
9891
  } catch (X) {
9892
9892
  p.errorMessage = l(X), t("error", X);
9893
9893
  } finally {
9894
9894
  p.isReadonly = !1;
9895
9895
  }
9896
9896
  };
9897
- return (M, V) => {
9897
+ return (H, V) => {
9898
9898
  const S = we("KTextArea"), W = we("KInput");
9899
9899
  return F(), ue("div", Tp, [
9900
9900
  k(y(cu), {
@@ -9907,10 +9907,10 @@ const ft = {
9907
9907
  "form-fields": P.value,
9908
9908
  "is-readonly": p.isReadonly,
9909
9909
  onCancel: ne,
9910
- "onFetch:error": V[7] || (V[7] = (te) => M.$emit("error", te)),
9910
+ "onFetch:error": V[7] || (V[7] = (te) => H.$emit("error", te)),
9911
9911
  "onFetch:success": ae,
9912
- onLoading: V[8] || (V[8] = (te) => M.$emit("loading", te)),
9913
- onSubmit: H
9912
+ onLoading: V[8] || (V[8] = (te) => H.$emit("loading", te)),
9913
+ onSubmit: $
9914
9914
  }, {
9915
9915
  default: w(() => [
9916
9916
  k(y(vn), {
@@ -9936,7 +9936,7 @@ const ft = {
9936
9936
  scope: "global"
9937
9937
  }, {
9938
9938
  emphasis: w(() => [
9939
- Ge("em", null, $(y(a)("certificates.form.fields.cert.emphasis")), 1)
9939
+ Ge("em", null, U(y(a)("certificates.form.fields.cert.emphasis")), 1)
9940
9940
  ]),
9941
9941
  _: 1
9942
9942
  })
@@ -9961,7 +9961,7 @@ const ft = {
9961
9961
  scope: "global"
9962
9962
  }, {
9963
9963
  emphasis: w(() => [
9964
- Ge("em", null, $(y(a)("certificates.form.fields.key.emphasis")), 1)
9964
+ Ge("em", null, U(y(a)("certificates.form.fields.key.emphasis")), 1)
9965
9965
  ]),
9966
9966
  _: 1
9967
9967
  })
@@ -9985,7 +9985,7 @@ const ft = {
9985
9985
  scope: "global"
9986
9986
  }, {
9987
9987
  emphasis: w(() => [
9988
- Ge("em", null, $(y(a)("certificates.form.fields.cert_alt.emphasis")), 1)
9988
+ Ge("em", null, U(y(a)("certificates.form.fields.cert_alt.emphasis")), 1)
9989
9989
  ]),
9990
9990
  _: 1
9991
9991
  })
@@ -10009,7 +10009,7 @@ const ft = {
10009
10009
  scope: "global"
10010
10010
  }, {
10011
10011
  emphasis: w(() => [
10012
- Ge("em", null, $(y(a)("certificates.form.fields.key_alt.emphasis")), 1)
10012
+ Ge("em", null, U(y(a)("certificates.form.fields.key_alt.emphasis")), 1)
10013
10013
  ]),
10014
10014
  _: 1
10015
10015
  })
@@ -10058,7 +10058,7 @@ const ft = {
10058
10058
  ]);
10059
10059
  };
10060
10060
  }
10061
- }), Qg = /* @__PURE__ */ wr(jp, [["__scopeId", "data-v-8efa723a"]]), uo = "/v2/control-planes/{controlPlaneId}/core-entities", fo = "/{workspace}", Xn = {
10061
+ }), Qg = /* @__PURE__ */ wr(jp, [["__scopeId", "data-v-49b2e305"]]), uo = "/v2/control-planes/{controlPlaneId}/core-entities", fo = "/{workspace}", Xn = {
10062
10062
  list: {
10063
10063
  konnect: `${uo}/ca_certificates`,
10064
10064
  kongManager: `${fo}/ca_certificates`
@@ -10113,13 +10113,13 @@ const ft = {
10113
10113
  var P;
10114
10114
  return ((P = K.value) == null ? void 0 : P.schemaIssuer) || "";
10115
10115
  }), ae = re(() => {
10116
- var P, H;
10117
- return (P = K.value) != null && P.schemaExpiry ? a((H = K.value) == null ? void 0 : H.schemaExpiry) : "";
10116
+ var P, $;
10117
+ return (P = K.value) != null && P.schemaExpiry ? a(($ = K.value) == null ? void 0 : $.schemaExpiry) : "";
10118
10118
  }), ne = re(() => {
10119
10119
  var P;
10120
10120
  return ((P = K.value) == null ? void 0 : P.schemaKeyUsages) || [];
10121
- }), ce = (P, H) => {
10122
- const de = u("rowValue", H);
10121
+ }), ce = (P, $) => {
10122
+ const de = u("rowValue", $);
10123
10123
  if (P === "expiry")
10124
10124
  return ae.value;
10125
10125
  if (P === "key_usages")
@@ -10170,8 +10170,8 @@ const ft = {
10170
10170
  tooltip: s("ca-certificates.form.fields.tags.tooltip")
10171
10171
  }
10172
10172
  });
10173
- return (P, H) => {
10174
- const de = we("KCodeBlock"), M = we("KLabel"), V = we("KBadge");
10173
+ return (P, $) => {
10174
+ const de = we("KCodeBlock"), H = we("KLabel"), V = we("KBadge");
10175
10175
  return F(), ue("div", Rp, [
10176
10176
  k(y(fu), {
10177
10177
  "code-block-record-formatter": y(sd),
@@ -10181,9 +10181,9 @@ const ft = {
10181
10181
  "entity-type": y(ts).CaCertificate,
10182
10182
  "fetch-url": v.value,
10183
10183
  "hide-title": r.hideTitle,
10184
- "onFetch:error": H[0] || (H[0] = (S) => P.$emit("fetch:error", S)),
10184
+ "onFetch:error": $[0] || ($[0] = (S) => P.$emit("fetch:error", S)),
10185
10185
  "onFetch:success": qe,
10186
- onLoading: H[1] || (H[1] = (S) => P.$emit("loading", S))
10186
+ onLoading: $[1] || ($[1] = (S) => P.$emit("loading", S))
10187
10187
  }, {
10188
10188
  cert: w((S) => [
10189
10189
  y(u)("rowValue", S) ? (F(), Se(de, {
@@ -10195,8 +10195,8 @@ const ft = {
10195
10195
  }, null, 8, ["id", "code"])) : xe("", !0)
10196
10196
  ]),
10197
10197
  "metadata-label": w(() => [
10198
- k(M, { class: "metadata-label" }, {
10199
- default: w(() => [...H[2] || (H[2] = [
10198
+ k(H, { class: "metadata-label" }, {
10199
+ default: w(() => [...$[2] || ($[2] = [
10200
10200
  oe(" Metadata ", -1)
10201
10201
  ])]),
10202
10202
  _: 1
@@ -10215,13 +10215,13 @@ const ft = {
10215
10215
  }, null, 8, ["data-testid", "item"]))), 128))
10216
10216
  ]),
10217
10217
  expiry: w(() => [
10218
- oe($(ae.value || "–"), 1)
10218
+ oe(U(ae.value || "–"), 1)
10219
10219
  ]),
10220
10220
  issuer: w(() => [
10221
- oe($(fe.value || "–"), 1)
10221
+ oe(U(fe.value || "–"), 1)
10222
10222
  ]),
10223
10223
  key_usages: w(() => [
10224
- ne.value.length ? xe("", !0) : (F(), ue("div", Vp, $("–"))),
10224
+ ne.value.length ? xe("", !0) : (F(), ue("div", Vp, U("–"))),
10225
10225
  (F(!0), ue(Ni, null, Oi(ne.value, (S, W) => (F(), Se(V, {
10226
10226
  key: `key_usages-badge-tag-${W}`,
10227
10227
  class: "config-badge",
@@ -10230,7 +10230,7 @@ const ft = {
10230
10230
  "truncation-tooltip": ""
10231
10231
  }, {
10232
10232
  default: w(() => [
10233
- oe($(S), 1)
10233
+ oe(U(S), 1)
10234
10234
  ]),
10235
10235
  _: 2
10236
10236
  }, 1032, ["data-testid", "tooltip"]))), 128))
@@ -10313,11 +10313,11 @@ const ft = {
10313
10313
  }), {
10314
10314
  fetcher: Ne,
10315
10315
  fetcherState: P,
10316
- fetcherCacheKey: H
10316
+ fetcherCacheKey: $
10317
10317
  } = Ql(re(() => ({ ...i.config, cacheIdentifier: i.cacheIdentifier })), ne), de = () => {
10318
10318
  ce.value = "";
10319
- }, M = () => {
10320
- H.value++;
10319
+ }, H = () => {
10320
+ $.value++;
10321
10321
  }, V = Ae(null), S = async (J, _) => {
10322
10322
  const q = J.id;
10323
10323
  if (!await _(q)) {
@@ -10364,7 +10364,7 @@ const ft = {
10364
10364
  if ((J = he.value) != null && J.id) {
10365
10365
  X.value = !0;
10366
10366
  try {
10367
- await u.delete(Yt(he.value.id)), X.value = !1, ye.value = !1, H.value++, t("delete:success", he.value);
10367
+ await u.delete(Yt(he.value.id)), X.value = !1, ye.value = !1, $.value++, t("delete:success", he.value);
10368
10368
  } catch (Y) {
10369
10369
  gt.value = ((q = (_ = Y.response) == null ? void 0 : _.data) == null ? void 0 : q.message) || Y.message || n("ca-certificates.errors.delete"), t("error", Y);
10370
10370
  } finally {
@@ -10402,14 +10402,14 @@ const ft = {
10402
10402
  "enable-entity-actions": "",
10403
10403
  "error-message": V.value,
10404
10404
  fetcher: y(Ne),
10405
- "fetcher-cache-key": y(H),
10405
+ "fetcher-cache-key": y($),
10406
10406
  "pagination-type": "offset",
10407
10407
  "preferences-storage-key": "kong-ui-entities-ca-certificates-list",
10408
10408
  query: ce.value,
10409
10409
  "table-headers": y(ae),
10410
10410
  onClearSearchInput: de,
10411
10411
  "onClick:row": _[3] || (_[3] = (G) => te(G)),
10412
- onSort: M,
10412
+ onSort: H,
10413
10413
  onState: y(v)
10414
10414
  }, Ii({
10415
10415
  "toolbar-filter": w(() => [
@@ -10431,7 +10431,7 @@ const ft = {
10431
10431
  }, {
10432
10432
  default: w(() => [
10433
10433
  k(y(tr)),
10434
- oe(" " + $(y(n)("ca-certificates.list.toolbar_actions.new_ca_certificate")), 1)
10434
+ oe(" " + U(y(n)("ca-certificates.list.toolbar_actions.new_ca_certificate")), 1)
10435
10435
  ]),
10436
10436
  _: 1
10437
10437
  }, 8, ["to"])
@@ -10471,7 +10471,7 @@ const ft = {
10471
10471
  }, {
10472
10472
  default: w(() => [
10473
10473
  k(y(tr)),
10474
- oe(" " + $(y(n)("ca-certificates.list.toolbar_actions.new_ca_certificate")), 1)
10474
+ oe(" " + U(y(n)("ca-certificates.list.toolbar_actions.new_ca_certificate")), 1)
10475
10475
  ]),
10476
10476
  _: 1
10477
10477
  }, 8, ["size", "to"])
@@ -10484,13 +10484,13 @@ const ft = {
10484
10484
  issuer: w(({ row: G }) => {
10485
10485
  var Pe;
10486
10486
  return [
10487
- r.config.app === "konnect" ? (F(), ue("b", Up, $((Pe = G == null ? void 0 : G.metadata) != null && Pe.issuer ? G.metadata.issuer : "-"), 1)) : (F(), ue("b", $p, $(y(Ut)(G).schemaIssuer || "-"), 1))
10487
+ r.config.app === "konnect" ? (F(), ue("b", Up, U((Pe = G == null ? void 0 : G.metadata) != null && Pe.issuer ? G.metadata.issuer : "-"), 1)) : (F(), ue("b", $p, U(y(Ut)(G).schemaIssuer || "-"), 1))
10488
10488
  ];
10489
10489
  }),
10490
10490
  expiry: w(({ row: G }) => {
10491
10491
  var Pe;
10492
10492
  return [
10493
- r.config.app === "konnect" ? (F(), ue("span", Hp, $((Pe = G == null ? void 0 : G.metadata) != null && Pe.expiry ? y(s)(G.metadata.expiry) : "-"), 1)) : (F(), ue("span", Lp, $(y(Ut)(G).schemaExpiry ? y(s)(y(Ut)(G).schemaExpiry) : "-"), 1))
10493
+ r.config.app === "konnect" ? (F(), ue("span", Hp, U((Pe = G == null ? void 0 : G.metadata) != null && Pe.expiry ? y(s)(G.metadata.expiry) : "-"), 1)) : (F(), ue("span", Lp, U(y(Ut)(G).schemaExpiry ? y(s)(y(Ut)(G).schemaExpiry) : "-"), 1))
10494
10494
  ];
10495
10495
  }),
10496
10496
  tags: w(({ row: G }) => [
@@ -10503,10 +10503,10 @@ const ft = {
10503
10503
  default: w(({ copyToClipboard: Pe }) => [
10504
10504
  k(Oe, {
10505
10505
  "data-testid": "action-entity-copy-id",
10506
- onClick: (D) => S(G, Pe)
10506
+ onClick: (M) => S(G, Pe)
10507
10507
  }, {
10508
10508
  default: w(() => [
10509
- oe($(y(n)("ca-certificates.actions.copy_id")), 1)
10509
+ oe(U(y(n)("ca-certificates.actions.copy_id")), 1)
10510
10510
  ]),
10511
10511
  _: 1
10512
10512
  }, 8, ["onClick"])
@@ -10517,10 +10517,10 @@ const ft = {
10517
10517
  default: w(({ copyToClipboard: Pe }) => [
10518
10518
  k(Oe, {
10519
10519
  "data-testid": "action-entity-copy-json",
10520
- onClick: (D) => W(G, Pe)
10520
+ onClick: (M) => W(G, Pe)
10521
10521
  }, {
10522
10522
  default: w(() => [
10523
- oe($(y(n)("ca-certificates.actions.copy_json")), 1)
10523
+ oe(U(y(n)("ca-certificates.actions.copy_json")), 1)
10524
10524
  ]),
10525
10525
  _: 1
10526
10526
  }, 8, ["onClick"])
@@ -10561,7 +10561,7 @@ const ft = {
10561
10561
  onClick: (Pe) => Bt(G)
10562
10562
  }, {
10563
10563
  default: w(() => [
10564
- oe($(y(n)("ca-certificates.actions.delete")), 1)
10564
+ oe(U(y(n)("ca-certificates.actions.delete")), 1)
10565
10565
  ]),
10566
10566
  _: 1
10567
10567
  }, 8, ["onClick"])
@@ -10593,7 +10593,7 @@ const ft = {
10593
10593
  }, {
10594
10594
  default: w(() => [
10595
10595
  k(y(tr), { decorative: "" }),
10596
- oe(" " + $(y(n)("ca-certificates.list.empty_state_v2.create")), 1)
10596
+ oe(" " + U(y(n)("ca-certificates.list.empty_state_v2.create")), 1)
10597
10597
  ]),
10598
10598
  _: 1
10599
10599
  })) : xe("", !0),
@@ -10604,7 +10604,7 @@ const ft = {
10604
10604
  }, {
10605
10605
  default: w(() => [
10606
10606
  k(y(gn), { decorative: "" }),
10607
- oe(" " + $(y(n)("ca-certificates.list.empty_state_v2.learn_more")), 1)
10607
+ oe(" " + U(y(n)("ca-certificates.list.empty_state_v2.learn_more")), 1)
10608
10608
  ]),
10609
10609
  _: 1
10610
10610
  })
@@ -10614,7 +10614,7 @@ const ft = {
10614
10614
  (G = r.config) != null && G.isControlPlaneGroup ? {
10615
10615
  name: "default",
10616
10616
  fn: w(() => [
10617
- oe($(y(n)("ca-certificates.list.empty_state_v2.group")), 1)
10617
+ oe(U(y(n)("ca-certificates.list.empty_state_v2.group")), 1)
10618
10618
  ]),
10619
10619
  key: "0"
10620
10620
  } : void 0
@@ -10639,11 +10639,11 @@ const ft = {
10639
10639
  scope: "global"
10640
10640
  }, {
10641
10641
  "bolded-text": w(() => [
10642
- Ge("b", null, $(y(n)("ca-certificates.delete.boldedText")), 1)
10642
+ Ge("b", null, U(y(n)("ca-certificates.delete.boldedText")), 1)
10643
10643
  ]),
10644
10644
  _: 1
10645
10645
  }),
10646
- Ge("p", null, $(y(n)("ca-certificates.delete.description2")), 1)
10646
+ Ge("p", null, U(y(n)("ca-certificates.delete.description2")), 1)
10647
10647
  ]),
10648
10648
  _: 1
10649
10649
  }, 8, ["action-pending", "entity-type", "error", "title", "visible"])
@@ -10682,35 +10682,35 @@ const ft = {
10682
10682
  certDigest: "",
10683
10683
  tags: ""
10684
10684
  }), K = re(() => (d.value === Qt.Create || JSON.stringify(v.fields) !== JSON.stringify(p)) && !!v.fields.cert), fe = (P) => {
10685
- var H;
10686
- v.fields.cert = (P == null ? void 0 : P.cert) || "", v.fields.certDigest = (P == null ? void 0 : P.cert_digest) || "", v.fields.tags = ((H = P == null ? void 0 : P.tags) == null ? void 0 : H.join(", ")) || "", Object.assign(p, v.fields);
10685
+ var $;
10686
+ v.fields.cert = (P == null ? void 0 : P.cert) || "", v.fields.certDigest = (P == null ? void 0 : P.cert_digest) || "", v.fields.tags = (($ = P == null ? void 0 : P.tags) == null ? void 0 : $.join(", ")) || "", Object.assign(p, v.fields);
10687
10687
  }, ae = () => {
10688
10688
  n.push(i.config.cancelRoute);
10689
10689
  }, ne = re(() => {
10690
- var H, de;
10690
+ var $, de;
10691
10691
  let P = `${i.config.apiBaseUrl}${Xn.form[i.config.app][d.value]}`;
10692
- return i.config.app === "konnect" ? P = P.replace(/{controlPlaneId}/gi, ((H = i.config) == null ? void 0 : H.controlPlaneId) || "") : i.config.app === "kongManager" && (P = P.replace(/\/{workspace}/gi, (de = i.config) != null && de.workspace ? `/${i.config.workspace}` : "")), P = P.replace(/{id}/gi, i.certificateId), P;
10692
+ return i.config.app === "konnect" ? P = P.replace(/{controlPlaneId}/gi, (($ = i.config) == null ? void 0 : $.controlPlaneId) || "") : i.config.app === "kongManager" && (P = P.replace(/\/{workspace}/gi, (de = i.config) != null && de.workspace ? `/${i.config.workspace}` : "")), P = P.replace(/{id}/gi, i.certificateId), P;
10693
10693
  }), ce = re(() => {
10694
- var P, H;
10694
+ var P, $;
10695
10695
  return {
10696
10696
  cert: v.fields.cert,
10697
10697
  cert_digest: v.fields.certDigest || null,
10698
- tags: (H = (P = v.fields.tags.split(",")) == null ? void 0 : P.map((de) => String(de || "").trim())) == null ? void 0 : H.filter((de) => de !== "")
10698
+ tags: ($ = (P = v.fields.tags.split(",")) == null ? void 0 : P.map((de) => String(de || "").trim())) == null ? void 0 : $.filter((de) => de !== "")
10699
10699
  };
10700
10700
  }), qe = async () => {
10701
- var P, H, de, M, V;
10701
+ var P, $, de, H, V;
10702
10702
  try {
10703
10703
  v.isReadonly = !0;
10704
10704
  let S;
10705
- d.value === "create" ? S = await l.post(ne.value, ce.value) : d.value === "edit" && (S = ((P = i.config) == null ? void 0 : P.app) === "konnect" ? await l.put(ne.value, ce.value) : await l.patch(ne.value, ce.value)), v.fields.cert = ((H = S == null ? void 0 : S.data) == null ? void 0 : H.cert) || "", v.fields.certDigest = ((de = S == null ? void 0 : S.data) == null ? void 0 : de.cert_digest) || "", v.fields.tags = ((V = (M = S == null ? void 0 : S.data) == null ? void 0 : M.tags) == null ? void 0 : V.join(", ")) || "", Object.assign(p, v.fields), t("update", S == null ? void 0 : S.data);
10705
+ d.value === "create" ? S = await l.post(ne.value, ce.value) : d.value === "edit" && (S = ((P = i.config) == null ? void 0 : P.app) === "konnect" ? await l.put(ne.value, ce.value) : await l.patch(ne.value, ce.value)), v.fields.cert = (($ = S == null ? void 0 : S.data) == null ? void 0 : $.cert) || "", v.fields.certDigest = ((de = S == null ? void 0 : S.data) == null ? void 0 : de.cert_digest) || "", v.fields.tags = ((V = (H = S == null ? void 0 : S.data) == null ? void 0 : H.tags) == null ? void 0 : V.join(", ")) || "", Object.assign(p, v.fields), t("update", S == null ? void 0 : S.data);
10706
10706
  } catch (S) {
10707
10707
  v.errorMessage = a(S), t("error", S);
10708
10708
  } finally {
10709
10709
  v.isReadonly = !1;
10710
10710
  }
10711
10711
  };
10712
- return (P, H) => {
10713
- const de = we("KTextArea"), M = we("KInput");
10712
+ return (P, $) => {
10713
+ const de = we("KTextArea"), H = we("KInput");
10714
10714
  return F(), ue("div", qp, [
10715
10715
  k(y(cu), {
10716
10716
  "can-submit": K.value,
@@ -10722,9 +10722,9 @@ const ft = {
10722
10722
  "form-fields": ce.value,
10723
10723
  "is-readonly": v.isReadonly,
10724
10724
  onCancel: ae,
10725
- "onFetch:error": H[3] || (H[3] = (V) => P.$emit("error", V)),
10725
+ "onFetch:error": $[3] || ($[3] = (V) => P.$emit("error", V)),
10726
10726
  "onFetch:success": fe,
10727
- onLoading: H[4] || (H[4] = (V) => P.$emit("loading", V)),
10727
+ onLoading: $[4] || ($[4] = (V) => P.$emit("loading", V)),
10728
10728
  onSubmit: qe
10729
10729
  }, {
10730
10730
  default: w(() => [
@@ -10735,7 +10735,7 @@ const ft = {
10735
10735
  default: w(() => [
10736
10736
  k(de, {
10737
10737
  modelValue: v.fields.cert,
10738
- "onUpdate:modelValue": H[0] || (H[0] = (V) => v.fields.cert = V),
10738
+ "onUpdate:modelValue": $[0] || ($[0] = (V) => v.fields.cert = V),
10739
10739
  modelModifiers: { trim: !0 },
10740
10740
  "character-limit": !1,
10741
10741
  class: "certificate-form-textarea",
@@ -10748,9 +10748,9 @@ const ft = {
10748
10748
  readonly: v.isReadonly,
10749
10749
  required: ""
10750
10750
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
10751
- k(M, {
10751
+ k(H, {
10752
10752
  modelValue: v.fields.certDigest,
10753
- "onUpdate:modelValue": H[1] || (H[1] = (V) => v.fields.certDigest = V),
10753
+ "onUpdate:modelValue": $[1] || ($[1] = (V) => v.fields.certDigest = V),
10754
10754
  modelModifiers: { trim: !0 },
10755
10755
  autocomplete: "off",
10756
10756
  "data-testid": "ca-certificate-form-cert-digest",
@@ -10766,9 +10766,9 @@ const ft = {
10766
10766
  title: y(s)("ca-certificates.form.sections.general.title")
10767
10767
  }, {
10768
10768
  default: w(() => [
10769
- k(M, {
10769
+ k(H, {
10770
10770
  modelValue: v.fields.tags,
10771
- "onUpdate:modelValue": H[2] || (H[2] = (V) => v.fields.tags = V),
10771
+ "onUpdate:modelValue": $[2] || ($[2] = (V) => v.fields.tags = V),
10772
10772
  modelModifiers: { trim: !0 },
10773
10773
  autocomplete: "off",
10774
10774
  "data-testid": "ca-certificate-form-tags",
@@ -10883,7 +10883,7 @@ const ft = {
10883
10883
  if (S === "expiry")
10884
10884
  return ce.value;
10885
10885
  if (S === "key_usages")
10886
- return H.value;
10886
+ return $.value;
10887
10887
  if (S === "san_names")
10888
10888
  return Ne.value;
10889
10889
  if (te)
@@ -10903,13 +10903,13 @@ const ft = {
10903
10903
  }), P = re(() => {
10904
10904
  var S;
10905
10905
  return ((S = ne.value) == null ? void 0 : S.schemaSubject) || "";
10906
- }), H = re(() => {
10906
+ }), $ = re(() => {
10907
10907
  var S;
10908
10908
  return ((S = ne.value) == null ? void 0 : S.schemaKeyUsages) || [];
10909
10909
  }), de = re(() => {
10910
10910
  var S, W;
10911
10911
  return ((W = (S = p == null ? void 0 : p.value) == null ? void 0 : S.snis) == null ? void 0 : W.length) > 0;
10912
- }), M = re(() => {
10912
+ }), H = re(() => {
10913
10913
  var S;
10914
10914
  return !!((S = p == null ? void 0 : p.value) != null && S.cert_alt);
10915
10915
  }), V = (S) => {
@@ -10937,7 +10937,7 @@ const ft = {
10937
10937
  scope: "global"
10938
10938
  }, {
10939
10939
  emphasis: w(() => [
10940
- Ge("i", null, $(y(n)("certificates.form.fields.cert.emphasis")), 1)
10940
+ Ge("i", null, U(y(n)("certificates.form.fields.cert.emphasis")), 1)
10941
10941
  ]),
10942
10942
  _: 1
10943
10943
  })
@@ -10957,7 +10957,7 @@ const ft = {
10957
10957
  scope: "global"
10958
10958
  }, {
10959
10959
  emphasis: w(() => [
10960
- Ge("i", null, $(y(n)("certificates.form.fields.key.emphasis")), 1)
10960
+ Ge("i", null, U(y(n)("certificates.form.fields.key.emphasis")), 1)
10961
10961
  ]),
10962
10962
  _: 1
10963
10963
  })
@@ -10982,16 +10982,16 @@ const ft = {
10982
10982
  }, null, 8, ["item"]))), 128))
10983
10983
  ]),
10984
10984
  expiry: w(() => [
10985
- oe($(ce.value || "–"), 1)
10985
+ oe(U(ce.value || "–"), 1)
10986
10986
  ]),
10987
10987
  issuer: w(() => [
10988
- oe($(qe.value || "–"), 1)
10988
+ oe(U(qe.value || "–"), 1)
10989
10989
  ]),
10990
10990
  san_names: w(() => [
10991
- oe($(Ne.value || "–"), 1)
10991
+ oe(U(Ne.value || "–"), 1)
10992
10992
  ]),
10993
10993
  subject: w(() => [
10994
- oe($(P.value || "–"), 1)
10994
+ oe(U(P.value || "–"), 1)
10995
10995
  ]),
10996
10996
  "cert_alt-label-tooltip": w(() => [
10997
10997
  k(y(a), {
@@ -10999,7 +10999,7 @@ const ft = {
10999
10999
  scope: "global"
11000
11000
  }, {
11001
11001
  emphasis: w(() => [
11002
- Ge("i", null, $(y(n)("certificates.form.fields.cert_alt.emphasis")), 1)
11002
+ Ge("i", null, U(y(n)("certificates.form.fields.cert_alt.emphasis")), 1)
11003
11003
  ]),
11004
11004
  _: 1
11005
11005
  })
@@ -11010,14 +11010,14 @@ const ft = {
11010
11010
  scope: "global"
11011
11011
  }, {
11012
11012
  emphasis: w(() => [
11013
- Ge("i", null, $(y(n)("certificates.form.fields.key_alt.emphasis")), 1)
11013
+ Ge("i", null, U(y(n)("certificates.form.fields.key_alt.emphasis")), 1)
11014
11014
  ]),
11015
11015
  _: 1
11016
11016
  })
11017
11017
  ]),
11018
11018
  key_usages: w(() => [
11019
- H.value.length ? xe("", !0) : (F(), ue("div", Gp, $("–"))),
11020
- (F(!0), ue(Ni, null, Oi(H.value, (he, ye) => (F(), Se(yt, {
11019
+ $.value.length ? xe("", !0) : (F(), ue("div", Gp, U("–"))),
11020
+ (F(!0), ue(Ni, null, Oi($.value, (he, ye) => (F(), Se(yt, {
11021
11021
  key: `key_usages-badge-tag-${ye}`,
11022
11022
  class: "config-badge",
11023
11023
  "data-testid": `key_usages-badge-tag-${ye}`,
@@ -11025,7 +11025,7 @@ const ft = {
11025
11025
  "truncation-tooltip": ""
11026
11026
  }, {
11027
11027
  default: w(() => [
11028
- oe($(he), 1)
11028
+ oe(U(he), 1)
11029
11029
  ]),
11030
11030
  _: 2
11031
11031
  }, 1032, ["data-testid", "tooltip"]))), 128))
@@ -11039,7 +11039,7 @@ const ft = {
11039
11039
  ]),
11040
11040
  key: "0"
11041
11041
  },
11042
- M.value ? {
11042
+ H.value ? {
11043
11043
  name: "cert_alt",
11044
11044
  fn: w((he) => [
11045
11045
  W[4] || (W[4] = oe(" > ", -1)),