@kong-ui-public/entities-snis 2.1.17 → 2.1.19

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 { defineComponent as ee, ref as x, computed as S, watch as ne, renderSlot as G, createCommentVNode as X, unref as s, onBeforeMount as xe, resolveComponent as F, openBlock as b, createBlock as V, withCtx as f, createElementVNode as K, toDisplayString as M, createElementBlock as R, withModifiers as be, createVNode as C, createTextVNode as J, createSlots as We, withDirectives as me, vShow as ye, renderList as Te, Fragment as Je, useSlots as ct, normalizeClass as ke, onMounted as ut, onUnmounted as dt, inject as pt, resolveDynamicComponent as Ie, mergeProps as $e, normalizeStyle as ft, pushScopeId as mt, popScopeId as yt, Teleport as gt, reactive as Ke } from "vue";
1
+ import { defineComponent as ee, ref as x, computed as S, watch as ne, renderSlot as G, createCommentVNode as X, unref as s, onBeforeMount as xe, resolveComponent as j, openBlock as b, createBlock as V, withCtx as f, createElementVNode as K, toDisplayString as O, createElementBlock as F, withModifiers as be, createVNode as C, createTextVNode as J, createSlots as We, withDirectives as me, vShow as ye, renderList as Te, Fragment as Je, useSlots as ct, normalizeClass as ke, onMounted as ut, onUnmounted as dt, inject as pt, resolveDynamicComponent as Ie, mergeProps as Me, normalizeStyle as ft, pushScopeId as mt, popScopeId as yt, Teleport as gt, reactive as Ke } from "vue";
2
2
  import { createI18n as Ee, i18nTComponent as Ye } from "@kong-ui-public/i18n";
3
3
  import vt from "axios";
4
4
  import "@kong/kongponents";
@@ -181,10 +181,10 @@ const Nt = {
181
181
  copyToClipboard: "Copied successfully!",
182
182
  copyToClipboardFailed: "Failed to copy to the clipboard"
183
183
  }
184
- }, At = {
184
+ }, $t = {
185
185
  message: "Are you sure you want to delete this {entityType}?",
186
186
  messageWithName: "Are you sure you want to delete this {entityType} {entityName}?"
187
- }, Ot = {
187
+ }, At = {
188
188
  actions: {
189
189
  save: "Save",
190
190
  cancel: "Cancel",
@@ -193,13 +193,13 @@ const Nt = {
193
193
  errors: {
194
194
  edit: "The entity could not be edited at this time."
195
195
  }
196
- }, Mt = {
196
+ }, Ot = {
197
197
  emptyState: {
198
198
  noSearchResultsTitle: "No results found",
199
199
  noSearchResultsMessage: "Please adjust the criteria and try again.",
200
200
  noSearchResultsCtaText: "Clear"
201
201
  }
202
- }, $t = {
202
+ }, Mt = {
203
203
  title: "Configuration",
204
204
  actions: {
205
205
  copy: "Copy JSON"
@@ -245,15 +245,15 @@ const Nt = {
245
245
  applyButtonText: "Apply",
246
246
  clearButtonText: "Clear",
247
247
  clearAllButtonText: "Clear all filters"
248
- }, Ft = {
248
+ }, jt = {
249
249
  errors: {
250
250
  fetch: "Could not fetch available items",
251
251
  invalid: "Please select a valid value"
252
252
  }
253
- }, jt = {
253
+ }, qt = {
254
254
  unexpected: "An unexpected error has occurred",
255
255
  dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.'
256
- }, qt = {
256
+ }, Pt = {
257
257
  enable: {
258
258
  title: "Enable {entityType}",
259
259
  message: "Are you sure you want to enable the {entityType} {entityName}?",
@@ -264,19 +264,19 @@ const Nt = {
264
264
  message: "Are you sure you want to disable the {entityType} {entityName}?",
265
265
  confirmText: "Yes, disable"
266
266
  }
267
- }, Pt = {
267
+ }, Rt = {
268
268
  global: Nt,
269
- deleteModal: At,
270
- baseForm: Ot,
271
- baseTable: Mt,
272
- baseConfigCard: $t,
269
+ deleteModal: $t,
270
+ baseForm: At,
271
+ baseTable: Ot,
272
+ baseConfigCard: Mt,
273
273
  filter: Kt,
274
- debouncedFilter: Ft,
275
- errors: jt,
276
- toggleModal: qt
274
+ debouncedFilter: jt,
275
+ errors: qt,
276
+ toggleModal: Pt
277
277
  };
278
- function Ae() {
279
- const e = Ee("en-us", Pt);
278
+ function $e() {
279
+ const e = Ee("en-us", Rt);
280
280
  return {
281
281
  i18n: e,
282
282
  i18nT: Ye(e)
@@ -289,8 +289,8 @@ function Xe() {
289
289
  return !1;
290
290
  const n = /* @__PURE__ */ new Set([...t, ...r]);
291
291
  for (const i of n) {
292
- const o = t.filter((m) => m === i).length, d = r.filter((m) => m === i).length;
293
- if (o !== d)
292
+ const o = t.filter((m) => m === i).length, u = r.filter((m) => m === i).length;
293
+ if (o !== u)
294
294
  return !1;
295
295
  }
296
296
  return !0;
@@ -327,19 +327,19 @@ function Xe() {
327
327
  isValidUuid: (t) => t ? /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(t) : !1
328
328
  };
329
329
  }
330
- function Rt(e, a, t, r = {
330
+ function Ft(e, a, t, r = {
331
331
  fetchedItemsKey: "data",
332
332
  searchKeys: ["id"]
333
333
  }) {
334
334
  t || (t = "100");
335
335
  const { axiosInstance: n } = Ne({
336
336
  headers: e.requestHeaders
337
- }), { i18n: { t: i } } = Ae(), { debounce: o } = xt(), d = o(async (w) => {
337
+ }), { i18n: { t: i } } = $e(), { debounce: o } = xt(), u = o(async (w) => {
338
338
  await E(w);
339
339
  }, 200), m = x(!1), p = x(""), _ = x(""), l = x([]), N = x([]), k = x(void 0), D = s(a);
340
340
  let y = `${e.apiBaseUrl}${D}`;
341
341
  e.app === "konnect" ? y = y.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (y = y.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
342
- const { isValidUuid: A } = Xe(), u = async () => {
342
+ const { isValidUuid: $ } = Xe(), d = async () => {
343
343
  try {
344
344
  m.value = !0;
345
345
  const { data: w } = await n.get(`${y}?size=${t}`);
@@ -350,7 +350,7 @@ function Rt(e, a, t, r = {
350
350
  m.value = !1;
351
351
  }
352
352
  }, T = x(""), E = async (w) => {
353
- var g, O, z;
353
+ var g, A, H;
354
354
  if (T.value !== w)
355
355
  if (T.value = w || "", k.value === void 0)
356
356
  try {
@@ -361,36 +361,36 @@ function Rt(e, a, t, r = {
361
361
  r.fetchedItemsKey in U ? l.value = U[r.fetchedItemsKey] : U != null && U.id ? l.value = [U] : l.value = [];
362
362
  } else if (w) {
363
363
  const v = [];
364
- A(w) && r.searchKeys.includes("id") ? v.push((async () => {
365
- const { data: q } = await n.get(`${y}/${w}`);
366
- return [q[r.fetchedItemsKey] ?? q];
364
+ $(w) && r.searchKeys.includes("id") ? v.push((async () => {
365
+ const { data: P } = await n.get(`${y}/${w}`);
366
+ return [P[r.fetchedItemsKey] ?? P];
367
367
  })()) : v.push(
368
- ...r.searchKeys.filter((q) => q !== "id").map(async (q) => {
369
- const { data: j } = await n.get(`${y}?${q}=${w}`);
370
- return j[r.fetchedItemsKey];
368
+ ...r.searchKeys.filter((P) => P !== "id").map(async (P) => {
369
+ const { data: q } = await n.get(`${y}?${P}=${w}`);
370
+ return q[r.fetchedItemsKey];
371
371
  })
372
372
  );
373
373
  const U = await Promise.all(v), L = /* @__PURE__ */ new Set();
374
- l.value = [], (g = U == null ? void 0 : U.forEach) == null || g.call(U, (q) => {
375
- var j;
376
- (j = q == null ? void 0 : q.forEach) == null || j.call(q, (Y) => {
374
+ l.value = [], (g = U == null ? void 0 : U.forEach) == null || g.call(U, (P) => {
375
+ var q;
376
+ (q = P == null ? void 0 : P.forEach) == null || q.call(P, (Y) => {
377
377
  L.has(Y.id) || (L.add(Y.id), l.value.push(Y));
378
378
  });
379
379
  });
380
380
  } else
381
381
  l.value = N.value;
382
382
  } catch (v) {
383
- ((O = v == null ? void 0 : v.response) == null ? void 0 : O.status) === 404 ? _.value = i("debouncedFilter.errors.invalid") : (l.value = [], p.value = i("debouncedFilter.errors.fetch"));
383
+ ((A = v == null ? void 0 : v.response) == null ? void 0 : A.status) === 404 ? _.value = i("debouncedFilter.errors.invalid") : (l.value = [], p.value = i("debouncedFilter.errors.fetch"));
384
384
  } finally {
385
385
  m.value = !1;
386
386
  }
387
387
  else
388
- m.value = !0, _.value = "", w ? (l.value = (z = k.value) == null ? void 0 : z.filter((v) => {
388
+ m.value = !0, _.value = "", w ? (l.value = (H = k.value) == null ? void 0 : H.filter((v) => {
389
389
  var U;
390
390
  let L = !1;
391
- for (const q of r.searchKeys) {
392
- const j = typeof v[q] == "string" ? (U = v[q]) == null ? void 0 : U.toLowerCase() : v[q];
393
- j != null && j.includes(w.toLowerCase()) && (L = !0);
391
+ for (const P of r.searchKeys) {
392
+ const q = typeof v[P] == "string" ? (U = v[P]) == null ? void 0 : U.toLowerCase() : v[P];
393
+ q != null && q.includes(w.toLowerCase()) && (L = !0);
394
394
  }
395
395
  return L;
396
396
  }), (!l.value || !l.value.length) && (_.value = i("debouncedFilter.errors.invalid"))) : l.value = k.value, m.value = !1;
@@ -401,8 +401,8 @@ function Rt(e, a, t, r = {
401
401
  validationError: _,
402
402
  results: l,
403
403
  allRecords: k,
404
- loadItems: u,
405
- debouncedQueryChange: d
404
+ loadItems: d,
405
+ debouncedQueryChange: u
406
406
  };
407
407
  }
408
408
  function Ut(e, a) {
@@ -412,7 +412,7 @@ function Ut(e, a) {
412
412
  return r.value.search = "", (n) => `${r.value.href}/${n}`;
413
413
  }
414
414
  function Bt() {
415
- const { i18n: { t: e } } = Ae();
415
+ const { i18n: { t: e } } = $e();
416
416
  return {
417
417
  getMessageFromError: (a) => {
418
418
  var t, r, n;
@@ -457,12 +457,12 @@ function et(e, a) {
457
457
  () => r.value.startsWith("/") ? new URL(`${window.location.origin}${r.value}`) : new URL(r.value)
458
458
  );
459
459
  return (o) => {
460
- const { page: d, pageSize: m, offset: p, sortColumnKey: _, sortColumnOrder: l, query: N } = o;
460
+ const { page: u, pageSize: m, offset: p, sortColumnKey: _, sortColumnOrder: l, query: N } = o;
461
461
  try {
462
462
  let k = new URL(i.value.href);
463
463
  return n.value && N ? (k.search = "", k = t.value.app === "konnect" ? new URL(`${k.href}?filter[name][contains]=${N}`) : new URL(`${k.href}/${N}/`)) : (n.value || new URLSearchParams(N).forEach((D, y) => {
464
464
  k.searchParams.append(y, D);
465
- }), _ && k.searchParams.append("sort_by", _), l === "desc" && k.searchParams.append("sort_desc", "1"), k.searchParams.append("size", String(m))), p && d !== 1 && k.searchParams.append("offset", String(p)), k.href;
465
+ }), _ && k.searchParams.append("sort_by", _), l === "desc" && k.searchParams.append("sort_desc", "1"), k.searchParams.append("size", String(m))), p && u !== 1 && k.searchParams.append("offset", String(p)), k.href;
466
466
  } catch (k) {
467
467
  return console.error("RouteList(fetcher)", k), r.value;
468
468
  }
@@ -474,10 +474,12 @@ function Vt(e, a, t = "data") {
474
474
  }), i = et(e, r), o = x({
475
475
  status: oe.Idle
476
476
  });
477
- return { fetcher: async (d) => {
477
+ return { fetcher: async (u) => {
478
478
  try {
479
479
  o.value = { status: oe.Loading };
480
- const m = i(d), { data: p } = await n.get(m), _ = t && t.replace(/[^\w-_]/gi, "");
480
+ let m = i(u);
481
+ m.includes("filter[name]") && (m = `${m}&page[size]=${u.pageSize}&page[number]=${u.page}`);
482
+ const { data: p } = await n.get(m), _ = t && t.replace(/[^\w-_]/gi, "");
481
483
  let l;
482
484
  p[_] && Array.isArray(p[_]) ? l = p[_] : Array.isArray(p) ? l = p : l = Object.keys(p).length ? [p] : [];
483
485
  const N = {
@@ -498,7 +500,7 @@ function Vt(e, a, t = "data") {
498
500
  data: [],
499
501
  total: 0
500
502
  };
501
- return d.query && m.response.status === 404 ? (o.value = {
503
+ return u.query && m.response.status === 404 ? (o.value = {
502
504
  status: oe.NoResults,
503
505
  response: p,
504
506
  error: m
@@ -517,32 +519,32 @@ function Lt() {
517
519
  convertKeyToTitle: e
518
520
  };
519
521
  }
520
- const tt = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, Fe = (e) => {
522
+ const tt = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, je = (e) => {
521
523
  if (typeof e != "string")
522
524
  throw new TypeError("Invalid argument expected string");
523
525
  const a = e.match(tt);
524
526
  if (!a)
525
527
  throw new Error(`Invalid argument not valid semver ('${e}' received)`);
526
528
  return a.shift(), a;
527
- }, je = (e) => e === "*" || e === "x" || e === "X", qe = (e) => {
529
+ }, qe = (e) => e === "*" || e === "x" || e === "X", Pe = (e) => {
528
530
  const a = parseInt(e, 10);
529
531
  return isNaN(a) ? e : a;
530
- }, Ht = (e, a) => typeof e != typeof a ? [String(e), String(a)] : [e, a], zt = (e, a) => {
531
- if (je(e) || je(a))
532
+ }, zt = (e, a) => typeof e != typeof a ? [String(e), String(a)] : [e, a], Ht = (e, a) => {
533
+ if (qe(e) || qe(a))
532
534
  return 0;
533
- const [t, r] = Ht(qe(e), qe(a));
535
+ const [t, r] = zt(Pe(e), Pe(a));
534
536
  return t > r ? 1 : t < r ? -1 : 0;
535
- }, Pe = (e, a) => {
537
+ }, Re = (e, a) => {
536
538
  for (let t = 0; t < Math.max(e.length, a.length); t++) {
537
- const r = zt(e[t] || "0", a[t] || "0");
539
+ const r = Ht(e[t] || "0", a[t] || "0");
538
540
  if (r !== 0)
539
541
  return r;
540
542
  }
541
543
  return 0;
542
544
  }, Wt = (e, a) => {
543
- const t = Fe(e), r = Fe(a), n = t.pop(), i = r.pop(), o = Pe(t, r);
544
- return o !== 0 ? o : n && i ? Pe(n.split("."), i.split(".")) : n || i ? n ? -1 : 1 : 0;
545
- }, Re = (e, a, t) => {
545
+ const t = je(e), r = je(a), n = t.pop(), i = r.pop(), o = Re(t, r);
546
+ return o !== 0 ? o : n && i ? Re(n.split("."), i.split(".")) : n || i ? n ? -1 : 1 : 0;
547
+ }, Fe = (e, a, t) => {
546
548
  Jt(t);
547
549
  const r = Wt(e, a);
548
550
  return rt[t].includes(r);
@@ -569,8 +571,8 @@ function Zt(e) {
569
571
  const i = t[r];
570
572
  if (!i)
571
573
  return !1;
572
- const [o, d] = i;
573
- return !(o && Re(n, o, "<") || d && Re(n, d, ">"));
574
+ const [o, u] = i;
575
+ return !(o && Fe(n, o, "<") || u && Fe(n, u, ">"));
574
576
  }
575
577
  function Gt(e) {
576
578
  const a = x(0), t = x(0), r = x(!1);
@@ -582,7 +584,7 @@ function Gt(e) {
582
584
  }
583
585
  const se = {
584
586
  useAxios: Ne,
585
- useDebouncedFilter: Rt,
587
+ useDebouncedFilter: Ft,
586
588
  useDeleteUrlBuilder: Ut,
587
589
  useErrors: Bt,
588
590
  useExternalLinkCreator: Dt,
@@ -590,7 +592,7 @@ const se = {
590
592
  useFetchUrlBuilder: et,
591
593
  useHelpers: Xe,
592
594
  useStringHelpers: Lt,
593
- useI18n: Ae,
595
+ useI18n: $e,
594
596
  useGatewayFeatureSupported: Zt,
595
597
  useTruncationDetector: Gt
596
598
  }, ue = (e, a) => {
@@ -625,7 +627,7 @@ function ar(e, a) {
625
627
  function nr(e) {
626
628
  return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
627
629
  }
628
- var ir = at, or = er, lr = tr, sr = ar, cr = nr, ur = rr, Oe = {
630
+ var ir = at, or = er, lr = tr, sr = ar, cr = nr, ur = rr, Ae = {
629
631
  isNothing: ir,
630
632
  isObject: or,
631
633
  toArray: lr,
@@ -682,7 +684,7 @@ function mr(e, a) {
682
684
  }, this.instanceOf = a.instanceOf || null, this.predicate = a.predicate || null, this.represent = a.represent || null, this.representName = a.representName || null, this.defaultStyle = a.defaultStyle || null, this.multi = a.multi || !1, this.styleAliases = fr(a.styleAliases || null), pr.indexOf(this.kind) === -1)
683
685
  throw new le('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
684
686
  }
685
- var H = mr;
687
+ var z = mr;
686
688
  function Be(e, a) {
687
689
  var t = [];
688
690
  return e[a].forEach(function(r) {
@@ -717,7 +719,7 @@ function Ce(e) {
717
719
  }
718
720
  Ce.prototype.extend = function(e) {
719
721
  var a = [], t = [];
720
- if (e instanceof H)
722
+ if (e instanceof z)
721
723
  t.push(e);
722
724
  else if (Array.isArray(e))
723
725
  t = t.concat(e);
@@ -726,30 +728,30 @@ Ce.prototype.extend = function(e) {
726
728
  else
727
729
  throw new le("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
728
730
  a.forEach(function(n) {
729
- if (!(n instanceof H))
731
+ if (!(n instanceof z))
730
732
  throw new le("Specified list of YAML types (or a single Type object) contains a non-Type object.");
731
733
  if (n.loadKind && n.loadKind !== "scalar")
732
734
  throw new le("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
733
735
  if (n.multi)
734
736
  throw new le("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
735
737
  }), t.forEach(function(n) {
736
- if (!(n instanceof H))
738
+ if (!(n instanceof z))
737
739
  throw new le("Specified list of YAML types (or a single Type object) contains a non-Type object.");
738
740
  });
739
741
  var r = Object.create(Ce.prototype);
740
742
  return r.implicit = (this.implicit || []).concat(a), r.explicit = (this.explicit || []).concat(t), r.compiledImplicit = Be(r, "implicit"), r.compiledExplicit = Be(r, "explicit"), r.compiledTypeMap = yr(r.compiledImplicit, r.compiledExplicit), r;
741
743
  };
742
- var gr = Ce, vr = new H("tag:yaml.org,2002:str", {
744
+ var gr = Ce, vr = new z("tag:yaml.org,2002:str", {
743
745
  kind: "scalar",
744
746
  construct: function(e) {
745
747
  return e !== null ? e : "";
746
748
  }
747
- }), hr = new H("tag:yaml.org,2002:seq", {
749
+ }), hr = new z("tag:yaml.org,2002:seq", {
748
750
  kind: "sequence",
749
751
  construct: function(e) {
750
752
  return e !== null ? e : [];
751
753
  }
752
- }), br = new H("tag:yaml.org,2002:map", {
754
+ }), br = new z("tag:yaml.org,2002:map", {
753
755
  kind: "mapping",
754
756
  construct: function(e) {
755
757
  return e !== null ? e : {};
@@ -773,7 +775,7 @@ function Sr() {
773
775
  function _r(e) {
774
776
  return e === null;
775
777
  }
776
- var Ir = new H("tag:yaml.org,2002:null", {
778
+ var Ir = new z("tag:yaml.org,2002:null", {
777
779
  kind: "scalar",
778
780
  resolve: wr,
779
781
  construct: Sr,
@@ -809,7 +811,7 @@ function xr(e) {
809
811
  function Tr(e) {
810
812
  return Object.prototype.toString.call(e) === "[object Boolean]";
811
813
  }
812
- var Er = new H("tag:yaml.org,2002:bool", {
814
+ var Er = new z("tag:yaml.org,2002:bool", {
813
815
  kind: "scalar",
814
816
  resolve: Cr,
815
817
  construct: xr,
@@ -830,13 +832,13 @@ var Er = new H("tag:yaml.org,2002:bool", {
830
832
  function Nr(e) {
831
833
  return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
832
834
  }
833
- function Ar(e) {
835
+ function $r(e) {
834
836
  return 48 <= e && e <= 55;
835
837
  }
836
- function Or(e) {
838
+ function Ar(e) {
837
839
  return 48 <= e && e <= 57;
838
840
  }
839
- function Mr(e) {
841
+ function Or(e) {
840
842
  if (e === null)
841
843
  return !1;
842
844
  var a = e.length, t = 0, r = !1, n;
@@ -866,7 +868,7 @@ function Mr(e) {
866
868
  if (n === "o") {
867
869
  for (t++; t < a; t++)
868
870
  if (n = e[t], n !== "_") {
869
- if (!Ar(e.charCodeAt(t)))
871
+ if (!$r(e.charCodeAt(t)))
870
872
  return !1;
871
873
  r = !0;
872
874
  }
@@ -877,13 +879,13 @@ function Mr(e) {
877
879
  return !1;
878
880
  for (; t < a; t++)
879
881
  if (n = e[t], n !== "_") {
880
- if (!Or(e.charCodeAt(t)))
882
+ if (!Ar(e.charCodeAt(t)))
881
883
  return !1;
882
884
  r = !0;
883
885
  }
884
886
  return !(!r || n === "_");
885
887
  }
886
- function $r(e) {
888
+ function Mr(e) {
887
889
  var a = e, t = 1, r;
888
890
  if (a.indexOf("_") !== -1 && (a = a.replace(/_/g, "")), r = a[0], (r === "-" || r === "+") && (r === "-" && (t = -1), a = a.slice(1), r = a[0]), a === "0")
889
891
  return 0;
@@ -898,12 +900,12 @@ function $r(e) {
898
900
  return t * parseInt(a, 10);
899
901
  }
900
902
  function Kr(e) {
901
- return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !Oe.isNegativeZero(e);
903
+ return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !Ae.isNegativeZero(e);
902
904
  }
903
- var Fr = new H("tag:yaml.org,2002:int", {
905
+ var jr = new z("tag:yaml.org,2002:int", {
904
906
  kind: "scalar",
905
- resolve: Mr,
906
- construct: $r,
907
+ resolve: Or,
908
+ construct: Mr,
907
909
  predicate: Kr,
908
910
  represent: {
909
911
  binary: function(e) {
@@ -927,20 +929,20 @@ var Fr = new H("tag:yaml.org,2002:int", {
927
929
  decimal: [10, "dec"],
928
930
  hexadecimal: [16, "hex"]
929
931
  }
930
- }), jr = new RegExp(
932
+ }), qr = new RegExp(
931
933
  // 2.5e4, 2.5 and integers
932
934
  "^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
933
935
  );
934
- function qr(e) {
935
- return !(e === null || !jr.test(e) || // Quick hack to not allow integers end with `_`
936
+ function Pr(e) {
937
+ return !(e === null || !qr.test(e) || // Quick hack to not allow integers end with `_`
936
938
  // Probably should update regexp & check speed
937
939
  e[e.length - 1] === "_");
938
940
  }
939
- function Pr(e) {
941
+ function Rr(e) {
940
942
  var a, t;
941
943
  return a = e.replace(/_/g, "").toLowerCase(), t = a[0] === "-" ? -1 : 1, "+-".indexOf(a[0]) >= 0 && (a = a.slice(1)), a === ".inf" ? t === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : a === ".nan" ? NaN : t * parseFloat(a, 10);
942
944
  }
943
- var Rr = /^[-+]?[0-9]+e/;
945
+ var Fr = /^[-+]?[0-9]+e/;
944
946
  function Ur(e, a) {
945
947
  var t;
946
948
  if (isNaN(e))
@@ -970,17 +972,17 @@ function Ur(e, a) {
970
972
  case "camelcase":
971
973
  return "-.Inf";
972
974
  }
973
- else if (Oe.isNegativeZero(e))
975
+ else if (Ae.isNegativeZero(e))
974
976
  return "-0.0";
975
- return t = e.toString(10), Rr.test(t) ? t.replace("e", ".e") : t;
977
+ return t = e.toString(10), Fr.test(t) ? t.replace("e", ".e") : t;
976
978
  }
977
979
  function Br(e) {
978
- return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || Oe.isNegativeZero(e));
980
+ return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || Ae.isNegativeZero(e));
979
981
  }
980
- var Dr = new H("tag:yaml.org,2002:float", {
982
+ var Dr = new z("tag:yaml.org,2002:float", {
981
983
  kind: "scalar",
982
- resolve: qr,
983
- construct: Pr,
984
+ resolve: Pr,
985
+ construct: Rr,
984
986
  predicate: Br,
985
987
  represent: Ur,
986
988
  defaultStyle: "lowercase"
@@ -988,7 +990,7 @@ var Dr = new H("tag:yaml.org,2002:float", {
988
990
  implicit: [
989
991
  Ir,
990
992
  Er,
991
- Fr,
993
+ jr,
992
994
  Dr
993
995
  ]
994
996
  }), Lr = Vr, it = new RegExp(
@@ -996,44 +998,44 @@ var Dr = new H("tag:yaml.org,2002:float", {
996
998
  ), ot = new RegExp(
997
999
  "^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"
998
1000
  );
999
- function Hr(e) {
1001
+ function zr(e) {
1000
1002
  return e === null ? !1 : it.exec(e) !== null || ot.exec(e) !== null;
1001
1003
  }
1002
- function zr(e) {
1003
- var a, t, r, n, i, o, d, m = 0, p = null, _, l, N;
1004
+ function Hr(e) {
1005
+ var a, t, r, n, i, o, u, m = 0, p = null, _, l, N;
1004
1006
  if (a = it.exec(e), a === null && (a = ot.exec(e)), a === null)
1005
1007
  throw new Error("Date resolve error");
1006
1008
  if (t = +a[1], r = +a[2] - 1, n = +a[3], !a[4])
1007
1009
  return new Date(Date.UTC(t, r, n));
1008
- if (i = +a[4], o = +a[5], d = +a[6], a[7]) {
1010
+ if (i = +a[4], o = +a[5], u = +a[6], a[7]) {
1009
1011
  for (m = a[7].slice(0, 3); m.length < 3; )
1010
1012
  m += "0";
1011
1013
  m = +m;
1012
1014
  }
1013
- return a[9] && (_ = +a[10], l = +(a[11] || 0), p = (_ * 60 + l) * 6e4, a[9] === "-" && (p = -p)), N = new Date(Date.UTC(t, r, n, i, o, d, m)), p && N.setTime(N.getTime() - p), N;
1015
+ return a[9] && (_ = +a[10], l = +(a[11] || 0), p = (_ * 60 + l) * 6e4, a[9] === "-" && (p = -p)), N = new Date(Date.UTC(t, r, n, i, o, u, m)), p && N.setTime(N.getTime() - p), N;
1014
1016
  }
1015
1017
  function Wr(e) {
1016
1018
  return e.toISOString();
1017
1019
  }
1018
- var Jr = new H("tag:yaml.org,2002:timestamp", {
1020
+ var Jr = new z("tag:yaml.org,2002:timestamp", {
1019
1021
  kind: "scalar",
1020
- resolve: Hr,
1021
- construct: zr,
1022
+ resolve: zr,
1023
+ construct: Hr,
1022
1024
  instanceOf: Date,
1023
1025
  represent: Wr
1024
1026
  });
1025
1027
  function Yr(e) {
1026
1028
  return e === "<<" || e === null;
1027
1029
  }
1028
- var Zr = new H("tag:yaml.org,2002:merge", {
1030
+ var Zr = new z("tag:yaml.org,2002:merge", {
1029
1031
  kind: "scalar",
1030
1032
  resolve: Yr
1031
- }), Me = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
1033
+ }), Oe = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
1032
1034
  \r`;
1033
1035
  function Gr(e) {
1034
1036
  if (e === null)
1035
1037
  return !1;
1036
- var a, t, r = 0, n = e.length, i = Me;
1038
+ var a, t, r = 0, n = e.length, i = Oe;
1037
1039
  for (t = 0; t < n; t++)
1038
1040
  if (a = i.indexOf(e.charAt(t)), !(a > 64)) {
1039
1041
  if (a < 0)
@@ -1043,13 +1045,13 @@ function Gr(e) {
1043
1045
  return r % 8 === 0;
1044
1046
  }
1045
1047
  function Qr(e) {
1046
- var a, t, r = e.replace(/[\r\n=]/g, ""), n = r.length, i = Me, o = 0, d = [];
1048
+ var a, t, r = e.replace(/[\r\n=]/g, ""), n = r.length, i = Oe, o = 0, u = [];
1047
1049
  for (a = 0; a < n; a++)
1048
- a % 4 === 0 && a && (d.push(o >> 16 & 255), d.push(o >> 8 & 255), d.push(o & 255)), o = o << 6 | i.indexOf(r.charAt(a));
1049
- return t = n % 4 * 6, t === 0 ? (d.push(o >> 16 & 255), d.push(o >> 8 & 255), d.push(o & 255)) : t === 18 ? (d.push(o >> 10 & 255), d.push(o >> 2 & 255)) : t === 12 && d.push(o >> 4 & 255), new Uint8Array(d);
1050
+ a % 4 === 0 && a && (u.push(o >> 16 & 255), u.push(o >> 8 & 255), u.push(o & 255)), o = o << 6 | i.indexOf(r.charAt(a));
1051
+ return t = n % 4 * 6, t === 0 ? (u.push(o >> 16 & 255), u.push(o >> 8 & 255), u.push(o & 255)) : t === 18 ? (u.push(o >> 10 & 255), u.push(o >> 2 & 255)) : t === 12 && u.push(o >> 4 & 255), new Uint8Array(u);
1050
1052
  }
1051
1053
  function Xr(e) {
1052
- var a = "", t = 0, r, n, i = e.length, o = Me;
1054
+ var a = "", t = 0, r, n, i = e.length, o = Oe;
1053
1055
  for (r = 0; r < i; r++)
1054
1056
  r % 3 === 0 && r && (a += o[t >> 18 & 63], a += o[t >> 12 & 63], a += o[t >> 6 & 63], a += o[t & 63]), t = (t << 8) + e[r];
1055
1057
  return n = i % 3, n === 0 ? (a += o[t >> 18 & 63], a += o[t >> 12 & 63], a += o[t >> 6 & 63], a += o[t & 63]) : n === 2 ? (a += o[t >> 10 & 63], a += o[t >> 4 & 63], a += o[t << 2 & 63], a += o[64]) : n === 1 && (a += o[t >> 2 & 63], a += o[t << 4 & 63], a += o[64], a += o[64]), a;
@@ -1057,7 +1059,7 @@ function Xr(e) {
1057
1059
  function ea(e) {
1058
1060
  return Object.prototype.toString.call(e) === "[object Uint8Array]";
1059
1061
  }
1060
- var ta = new H("tag:yaml.org,2002:binary", {
1062
+ var ta = new z("tag:yaml.org,2002:binary", {
1061
1063
  kind: "scalar",
1062
1064
  resolve: Gr,
1063
1065
  construct: Qr,
@@ -1067,9 +1069,9 @@ var ta = new H("tag:yaml.org,2002:binary", {
1067
1069
  function na(e) {
1068
1070
  if (e === null)
1069
1071
  return !0;
1070
- var a = [], t, r, n, i, o, d = e;
1071
- for (t = 0, r = d.length; t < r; t += 1) {
1072
- if (n = d[t], o = !1, aa.call(n) !== "[object Object]")
1072
+ var a = [], t, r, n, i, o, u = e;
1073
+ for (t = 0, r = u.length; t < r; t += 1) {
1074
+ if (n = u[t], o = !1, aa.call(n) !== "[object Object]")
1073
1075
  return !1;
1074
1076
  for (i in n)
1075
1077
  if (ra.call(n, i))
@@ -1089,7 +1091,7 @@ function na(e) {
1089
1091
  function ia(e) {
1090
1092
  return e !== null ? e : [];
1091
1093
  }
1092
- var oa = new H("tag:yaml.org,2002:omap", {
1094
+ var oa = new z("tag:yaml.org,2002:omap", {
1093
1095
  kind: "sequence",
1094
1096
  resolve: na,
1095
1097
  construct: ia
@@ -1113,7 +1115,7 @@ function ca(e) {
1113
1115
  r = o[a], n = Object.keys(r), i[a] = [n[0], r[n[0]]];
1114
1116
  return i;
1115
1117
  }
1116
- var ua = new H("tag:yaml.org,2002:pairs", {
1118
+ var ua = new z("tag:yaml.org,2002:pairs", {
1117
1119
  kind: "sequence",
1118
1120
  resolve: sa,
1119
1121
  construct: ca
@@ -1130,7 +1132,7 @@ function pa(e) {
1130
1132
  function fa(e) {
1131
1133
  return e !== null ? e : {};
1132
1134
  }
1133
- var ma = new H("tag:yaml.org,2002:set", {
1135
+ var ma = new z("tag:yaml.org,2002:set", {
1134
1136
  kind: "mapping",
1135
1137
  resolve: pa,
1136
1138
  construct: fa
@@ -1207,38 +1209,38 @@ const va = {
1207
1209
  emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel"],
1208
1210
  setup(e, { emit: a }) {
1209
1211
  var t;
1210
- const r = a, n = e, i = Ze(), { i18n: { t: o } } = se.useI18n(), { getMessageFromError: d } = se.useErrors(), { axiosInstance: m } = se.useAxios({
1212
+ const r = a, n = e, i = Ze(), { i18n: { t: o } } = se.useI18n(), { getMessageFromError: u } = se.useErrors(), { axiosInstance: m } = se.useAxios({
1211
1213
  headers: (t = n.config) == null ? void 0 : t.requestHeaders
1212
1214
  }), p = x(!1), _ = x(!1), l = x(""), N = S(() => n.canSubmit === !1 || n.isReadonly), k = S(() => {
1213
- var u, T;
1215
+ var d, T;
1214
1216
  if (!n.editId)
1215
1217
  return "";
1216
1218
  let E = `${n.config.apiBaseUrl}${n.fetchUrl}`;
1217
- return n.config.app === "konnect" ? E = E.replace(/{controlPlaneId}/gi, ((u = n.config) == null ? void 0 : u.controlPlaneId) || "") : n.config.app === "kongManager" && (E = E.replace(/\/{workspace}/gi, (T = n.config) != null && T.workspace ? `/${n.config.workspace}` : "")), E = E.replace(/{id}/gi, n.editId), E;
1219
+ return n.config.app === "konnect" ? E = E.replace(/{controlPlaneId}/gi, ((d = n.config) == null ? void 0 : d.controlPlaneId) || "") : n.config.app === "kongManager" && (E = E.replace(/\/{workspace}/gi, (T = n.config) != null && T.workspace ? `/${n.config.workspace}` : "")), E = E.replace(/{id}/gi, n.editId), E;
1218
1220
  }), D = () => {
1219
1221
  n.config.cancelRoute ? i.push(n.config.cancelRoute) : y();
1220
1222
  }, y = () => {
1221
1223
  r("cancel");
1222
- }, A = () => {
1224
+ }, $ = () => {
1223
1225
  N.value || r("submit");
1224
1226
  };
1225
- return ne(() => p.value, (u) => {
1226
- r("loading", u);
1227
+ return ne(() => p.value, (d) => {
1228
+ r("loading", d);
1227
1229
  }, { immediate: !0 }), xe(async () => {
1228
1230
  if (n.editId)
1229
1231
  try {
1230
1232
  _.value = !1, p.value = !0;
1231
- const { data: u } = await m.get(k.value);
1232
- r("fetch:success", u);
1233
- } catch (u) {
1234
- const T = d(u);
1235
- l.value = T.startsWith("code") ? o("baseForm.errors.edit") : T, _.value = !0, r("fetch:error", u);
1233
+ const { data: d } = await m.get(k.value);
1234
+ r("fetch:success", d);
1235
+ } catch (d) {
1236
+ const T = u(d);
1237
+ l.value = T.startsWith("code") ? o("baseForm.errors.edit") : T, _.value = !0, r("fetch:error", d);
1236
1238
  } finally {
1237
1239
  p.value = !1;
1238
1240
  }
1239
- }), (u, T) => {
1240
- const E = F("KSkeleton"), w = F("KEmptyState"), g = F("KAlert"), O = F("KButton"), z = F("KCard");
1241
- return b(), V(z, { class: "kong-ui-entity-base-form" }, {
1241
+ }), (d, T) => {
1242
+ const E = j("KSkeleton"), w = j("KEmptyState"), g = j("KAlert"), A = j("KButton"), H = j("KCard");
1243
+ return b(), V(H, { class: "kong-ui-entity-base-form" }, {
1242
1244
  default: f(() => [
1243
1245
  p.value ? (b(), V(E, {
1244
1246
  key: 0,
@@ -1251,16 +1253,16 @@ const va = {
1251
1253
  "is-error": !0
1252
1254
  }, {
1253
1255
  message: f(() => [
1254
- K("h3", null, M(l.value), 1)
1256
+ K("h3", null, O(l.value), 1)
1255
1257
  ]),
1256
1258
  _: 1
1257
- }, 8, ["cta-text"])) : (b(), R("form", {
1259
+ }, 8, ["cta-text"])) : (b(), F("form", {
1258
1260
  key: 2,
1259
1261
  "data-testid": "form-content",
1260
1262
  onReset: be(y, ["prevent"]),
1261
- onSubmit: be(A, ["prevent"])
1263
+ onSubmit: be($, ["prevent"])
1262
1264
  }, [
1263
- G(u.$slots, "default", {}, void 0, !0),
1265
+ G(d.$slots, "default", {}, void 0, !0),
1264
1266
  e.errorMessage ? (b(), V(g, {
1265
1267
  key: 0,
1266
1268
  "alert-message": e.errorMessage,
@@ -1268,26 +1270,26 @@ const va = {
1268
1270
  "data-testid": "form-error"
1269
1271
  }, null, 8, ["alert-message"])) : X("", !0),
1270
1272
  K("div", va, [
1271
- G(u.$slots, "form-actions", {}, () => [
1272
- C(O, {
1273
+ G(d.$slots, "form-actions", {}, () => [
1274
+ C(A, {
1273
1275
  appearance: "secondary",
1274
1276
  "data-testid": "form-cancel",
1275
1277
  disabled: e.isReadonly,
1276
1278
  type: "reset"
1277
1279
  }, {
1278
1280
  default: f(() => [
1279
- J(M(s(o)("baseForm.actions.cancel")), 1)
1281
+ J(O(s(o)("baseForm.actions.cancel")), 1)
1280
1282
  ]),
1281
1283
  _: 1
1282
1284
  }, 8, ["disabled"]),
1283
- C(O, {
1285
+ C(A, {
1284
1286
  appearance: "primary",
1285
1287
  "data-testid": "form-submit",
1286
1288
  disabled: N.value,
1287
1289
  type: "submit"
1288
1290
  }, {
1289
1291
  default: f(() => [
1290
- J(M(s(o)("baseForm.actions.save")), 1)
1292
+ J(O(s(o)("baseForm.actions.save")), 1)
1291
1293
  ]),
1292
1294
  _: 1
1293
1295
  }, 8, ["disabled"])
@@ -1322,44 +1324,44 @@ const va = {
1322
1324
  var y;
1323
1325
  return ((y = t.value) == null ? void 0 : y.querySelector('[data-testid="first-col"]')) || null;
1324
1326
  }), n = S(() => {
1325
- var y, A;
1326
- const u = (y = a.rowEl) == null ? void 0 : y.querySelectorAll("td");
1327
- return u ? ((A = u[0]) == null ? void 0 : A.getAttribute("data-testid")) === a.keyName : !1;
1327
+ var y, $;
1328
+ const d = (y = a.rowEl) == null ? void 0 : y.querySelectorAll("td");
1329
+ return d ? (($ = d[0]) == null ? void 0 : $.getAttribute("data-testid")) === a.keyName : !1;
1328
1330
  });
1329
1331
  let i;
1330
1332
  const o = () => {
1331
1333
  i && (i.disconnect(), i = void 0);
1332
- }, d = () => {
1333
- var y, A, u;
1334
- p.value = ((y = r.value) == null ? void 0 : y.getBoundingClientRect().width) || 0, _.value = ((A = t.value) == null ? void 0 : A.clientWidth) || 0, l.value = ((u = m.value) == null ? void 0 : u.innerText) || "";
1334
+ }, u = () => {
1335
+ var y, $, d;
1336
+ p.value = ((y = r.value) == null ? void 0 : y.getBoundingClientRect().width) || 0, _.value = (($ = t.value) == null ? void 0 : $.clientWidth) || 0, l.value = ((d = m.value) == null ? void 0 : d.innerText) || "";
1335
1337
  }, m = x({}), p = x(0), _ = x(0), l = x(""), N = S(() => [r.value, t.value]), k = ne(
1336
1338
  N,
1337
1339
  (y) => {
1338
1340
  if (n.value && (o(), "ResizeObserver" in window && window)) {
1339
- i = new ResizeObserver((A) => {
1341
+ i = new ResizeObserver(($) => {
1340
1342
  window.requestAnimationFrame(() => {
1341
- !Array.isArray(A) || !A.length || d();
1343
+ !Array.isArray($) || !$.length || u();
1342
1344
  });
1343
1345
  });
1344
- for (const A of y)
1345
- A && i.observe(A);
1346
+ for (const $ of y)
1347
+ $ && i.observe($);
1346
1348
  }
1347
1349
  },
1348
1350
  { immediate: !0, flush: "post", deep: !0 }
1349
1351
  ), D = S(() => n.value ? p.value > _.value : !1);
1350
1352
  return ut(() => {
1351
- d();
1353
+ u();
1352
1354
  }), dt(() => {
1353
1355
  k();
1354
- }), (y, A) => {
1355
- const u = F("KTooltip");
1356
- return b(), R("span", {
1356
+ }), (y, $) => {
1357
+ const d = j("KTooltip");
1358
+ return b(), F("span", {
1357
1359
  ref_key: "contentRef",
1358
1360
  ref: m,
1359
1361
  class: "content-wrapper"
1360
1362
  }, [
1361
- n.value ? (b(), R("span", ka, [
1362
- C(u, {
1363
+ n.value ? (b(), F("span", ka, [
1364
+ C(d, {
1363
1365
  label: D.value ? l.value : "",
1364
1366
  "max-width": "300",
1365
1367
  placement: "bottomStart"
@@ -1487,7 +1489,7 @@ const va = {
1487
1489
  emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
1488
1490
  setup(e, { emit: a }) {
1489
1491
  const t = e, r = a, { i18n: { t: n } } = se.useI18n(), i = S(() => {
1490
- var g, O;
1492
+ var g, A;
1491
1493
  return typeof t.errorMessage == "string" ? {
1492
1494
  hasError: !!t.errorMessage,
1493
1495
  title: t.errorMessage,
@@ -1495,16 +1497,16 @@ const va = {
1495
1497
  } : {
1496
1498
  hasError: !!t.errorMessage,
1497
1499
  title: (g = t.errorMessage) == null ? void 0 : g.title,
1498
- message: (O = t.errorMessage) == null ? void 0 : O.message
1500
+ message: (A = t.errorMessage) == null ? void 0 : A.message
1499
1501
  };
1500
- }), o = S(() => t.cacheIdentifier || t.preferencesStorageKey), d = (g) => g.hasData || !!t.query, m = S(() => {
1502
+ }), o = S(() => t.cacheIdentifier || t.preferencesStorageKey), u = (g) => g.hasData || !!t.query, m = S(() => {
1501
1503
  const g = [];
1502
- return Object.keys(t.tableHeaders).forEach((O) => {
1503
- const z = t.tableHeaders[O];
1504
+ return Object.keys(t.tableHeaders).forEach((A) => {
1505
+ const H = t.tableHeaders[A];
1504
1506
  g.push({
1505
- label: z.label ?? O,
1506
- key: O,
1507
- sortable: z.sortable ?? !1
1507
+ label: H.label ?? A,
1508
+ key: A,
1509
+ sortable: H.sortable ?? !1
1508
1510
  });
1509
1511
  }), t.enableEntityActions && g.push({
1510
1512
  key: "actions",
@@ -1515,38 +1517,38 @@ const va = {
1515
1517
  "data-testid": g.name,
1516
1518
  ...t.rowAttributes(g)
1517
1519
  }), _ = x({}), l = (g) => {
1518
- var O;
1519
- return (O = _.value) == null ? void 0 : O.$el.querySelector(`[data-rowid="${g.id}"]`);
1520
+ var A;
1521
+ return (A = _.value) == null ? void 0 : A.$el.querySelector(`[data-rowid="${g.id}"]`);
1520
1522
  }, N = (g) => {
1521
- const O = {
1523
+ const A = {
1522
1524
  "data-testid": g.headerKey,
1523
1525
  ...t.cellAttributes(g)
1524
1526
  };
1525
- return g.colIndex === 0 && (O.style = {
1527
+ return g.colIndex === 0 && (A.style = {
1526
1528
  maxWidth: "250px",
1527
1529
  overflowX: "hidden",
1528
1530
  textOverflow: "ellipsis"
1529
- }), O;
1531
+ }), A;
1530
1532
  }, k = () => {
1531
1533
  r("empty-state-cta-clicked"), D();
1532
1534
  }, D = () => {
1533
1535
  r("clear-search-input");
1534
- }, y = S(() => t.disableRowClick ? void 0 : (g, O) => {
1535
- r("click:row", O);
1536
- }), A = (g) => {
1536
+ }, y = S(() => t.disableRowClick ? void 0 : (g, A) => {
1537
+ r("click:row", A);
1538
+ }), $ = (g) => {
1537
1539
  r("sort", g);
1538
- }, { setTablePreferences: u, getTablePreferences: T } = Et(), E = S(() => {
1540
+ }, { setTablePreferences: d, getTablePreferences: T } = Et(), E = S(() => {
1539
1541
  const g = T(t.preferencesStorageKey);
1540
1542
  return {
1541
1543
  ...t.initialFetcherParams,
1542
1544
  ...g
1543
1545
  };
1544
1546
  }), w = (g) => {
1545
- t.preferencesStorageKey && u(t.preferencesStorageKey, g);
1547
+ t.preferencesStorageKey && d(t.preferencesStorageKey, g);
1546
1548
  };
1547
- return (g, O) => {
1548
- const z = F("KIcon"), v = F("KButton"), U = F("KDropdown"), L = F("KTable"), q = F("KCard");
1549
- return b(), V(q, {
1549
+ return (g, A) => {
1550
+ const H = j("KIcon"), v = j("KButton"), U = j("KDropdown"), L = j("KTable"), P = j("KCard");
1551
+ return b(), V(P, {
1550
1552
  class: "kong-ui-entity-base-table",
1551
1553
  title: e.title
1552
1554
  }, {
@@ -1580,23 +1582,23 @@ const va = {
1580
1582
  "search-input": e.query,
1581
1583
  onKtableEmptyStateCtaClicked: k,
1582
1584
  "onRow:click": y.value,
1583
- onSort: O[0] || (O[0] = (j) => A(j)),
1585
+ onSort: A[0] || (A[0] = (q) => $(q)),
1584
1586
  "onUpdate:tablePreferences": w
1585
1587
  }, We({
1586
- toolbar: f(({ state: j }) => [
1588
+ toolbar: f(({ state: q }) => [
1587
1589
  me(K("div", _a, [
1588
1590
  G(g.$slots, "toolbar-filter", {}, void 0, !0),
1589
- g.$slots["toolbar-button"] ? (b(), R("div", Ia, [
1591
+ g.$slots["toolbar-button"] ? (b(), F("div", Ia, [
1590
1592
  G(g.$slots, "toolbar-button", {}, void 0, !0)
1591
1593
  ])) : X("", !0)
1592
1594
  ], 512), [
1593
- [ye, d(j)]
1595
+ [ye, u(q)]
1594
1596
  ])
1595
1597
  ]),
1596
- actions: f(({ row: j, rowKey: Y, rowValue: te }) => [
1598
+ actions: f(({ row: q, rowKey: Y, rowValue: te }) => [
1597
1599
  K("div", {
1598
1600
  class: "actions-container",
1599
- "data-testid": j.name
1601
+ "data-testid": q.name
1600
1602
  }, [
1601
1603
  C(U, {
1602
1604
  "kpop-attributes": { placement: "bottomEnd" },
@@ -1604,7 +1606,7 @@ const va = {
1604
1606
  }, {
1605
1607
  items: f(() => [
1606
1608
  G(g.$slots, "actions", {
1607
- row: j,
1609
+ row: q,
1608
1610
  rowKey: Y,
1609
1611
  rowValue: te
1610
1612
  }, void 0, !0)
@@ -1616,7 +1618,7 @@ const va = {
1616
1618
  size: "small"
1617
1619
  }, {
1618
1620
  icon: f(() => [
1619
- C(z, {
1621
+ C(H, {
1620
1622
  color: s(Xt),
1621
1623
  icon: "more",
1622
1624
  size: "16"
@@ -1631,7 +1633,7 @@ const va = {
1631
1633
  ]),
1632
1634
  _: 2
1633
1635
  }, [
1634
- Te(e.tableHeaders, (j, Y) => ({
1636
+ Te(e.tableHeaders, (q, Y) => ({
1635
1637
  name: Y,
1636
1638
  fn: f(({ row: te, rowKey: de, rowValue: re }) => [
1637
1639
  C(Sa, {
@@ -1644,7 +1646,7 @@ const va = {
1644
1646
  rowKey: de,
1645
1647
  rowValue: re
1646
1648
  }, () => [
1647
- J(M(re), 1)
1649
+ J(O(re), 1)
1648
1650
  ], !0)
1649
1651
  ]),
1650
1652
  _: 2
@@ -1663,7 +1665,7 @@ const va = {
1663
1665
  }, Na = {
1664
1666
  key: 1,
1665
1667
  class: "description"
1666
- }, Aa = /* @__PURE__ */ ee({
1668
+ }, $a = /* @__PURE__ */ ee({
1667
1669
  __name: "EntityDeleteModal",
1668
1670
  props: {
1669
1671
  visible: {
@@ -1704,11 +1706,11 @@ const va = {
1704
1706
  setup(e, { emit: a }) {
1705
1707
  const { i18nT: t } = se.useI18n(), r = e, n = a, i = S(() => r.needConfirm ? r.entityName : ""), o = () => {
1706
1708
  n("cancel");
1707
- }, d = () => {
1709
+ }, u = () => {
1708
1710
  n("proceed");
1709
1711
  };
1710
1712
  return (m, p) => {
1711
- const _ = F("KAlert"), l = F("KPrompt");
1713
+ const _ = j("KAlert"), l = j("KPrompt");
1712
1714
  return b(), V(l, {
1713
1715
  "action-button-text": "Yes, delete",
1714
1716
  "action-pending": e.actionPending,
@@ -1718,13 +1720,13 @@ const va = {
1718
1720
  title: e.title,
1719
1721
  type: "danger",
1720
1722
  onCanceled: o,
1721
- onProceed: d
1723
+ onProceed: u
1722
1724
  }, {
1723
1725
  "body-content": f(() => [
1724
- e.error ? (b(), R("div", Ea, [
1726
+ e.error ? (b(), F("div", Ea, [
1725
1727
  C(_, { appearance: "danger" }, {
1726
1728
  alertMessage: f(() => [
1727
- J(M(e.error), 1)
1729
+ J(O(e.error), 1)
1728
1730
  ]),
1729
1731
  _: 1
1730
1732
  })
@@ -1735,21 +1737,21 @@ const va = {
1735
1737
  tag: "p"
1736
1738
  }, We({
1737
1739
  entityType: f(() => [
1738
- J(M(r.entityType), 1)
1740
+ J(O(r.entityType), 1)
1739
1741
  ]),
1740
1742
  _: 2
1741
1743
  }, [
1742
1744
  r.entityName ? {
1743
1745
  name: "entityName",
1744
1746
  fn: f(() => [
1745
- K("strong", null, M(r.entityName), 1)
1747
+ K("strong", null, O(r.entityName), 1)
1746
1748
  ]),
1747
1749
  key: "0"
1748
1750
  } : void 0
1749
1751
  ]), 1032, ["keypath"]),
1750
- r.description || m.$slots.description ? (b(), R("div", Na, [
1752
+ r.description || m.$slots.description ? (b(), F("div", Na, [
1751
1753
  G(m.$slots, "description", {}, () => [
1752
- K("p", null, M(r.description), 1)
1754
+ K("p", null, O(r.description), 1)
1753
1755
  ], !0)
1754
1756
  ])) : X("", !0)
1755
1757
  ]),
@@ -1757,13 +1759,13 @@ const va = {
1757
1759
  }, 8, ["action-pending", "confirmation-text", "is-visible", "title"]);
1758
1760
  };
1759
1761
  }
1760
- }), Oa = /* @__PURE__ */ ue(Aa, [["__scopeId", "data-v-1c9a2a07"]]), Ma = {
1762
+ }), Aa = /* @__PURE__ */ ue($a, [["__scopeId", "data-v-1c9a2a07"]]), Oa = {
1761
1763
  fill: "none",
1762
1764
  height: "20",
1763
1765
  viewBox: "0 0 20 20",
1764
1766
  width: "20",
1765
1767
  xmlns: "http://www.w3.org/2000/svg"
1766
- }, $a = {
1768
+ }, Ma = {
1767
1769
  id: "mask0_180_20349",
1768
1770
  height: "20",
1769
1771
  maskUnits: "userSpaceOnUse",
@@ -1771,7 +1773,7 @@ const va = {
1771
1773
  width: "20",
1772
1774
  x: "0",
1773
1775
  y: "0"
1774
- }, Ka = ["fill"], Fa = { mask: "url(#mask0_180_20349)" }, ja = ["fill"], Ve = /* @__PURE__ */ ee({
1776
+ }, Ka = ["fill"], ja = { mask: "url(#mask0_180_20349)" }, qa = ["fill"], Ve = /* @__PURE__ */ ee({
1775
1777
  __name: "IconFilter",
1776
1778
  props: {
1777
1779
  color: {
@@ -1780,26 +1782,26 @@ const va = {
1780
1782
  }
1781
1783
  },
1782
1784
  setup(e) {
1783
- return (a, t) => (b(), R("svg", Ma, [
1784
- K("mask", $a, [
1785
+ return (a, t) => (b(), F("svg", Oa, [
1786
+ K("mask", Ma, [
1785
1787
  K("rect", {
1786
1788
  fill: e.color,
1787
1789
  height: "20",
1788
1790
  width: "20"
1789
1791
  }, null, 8, Ka)
1790
1792
  ]),
1791
- K("g", Fa, [
1793
+ K("g", ja, [
1792
1794
  K("path", {
1793
1795
  d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
1794
1796
  fill: e.color
1795
- }, null, 8, ja)
1797
+ }, null, 8, qa)
1796
1798
  ])
1797
1799
  ]));
1798
1800
  }
1799
- }), qa = {
1801
+ }), Pa = {
1800
1802
  key: 1,
1801
1803
  class: "kong-ui-entity-filter"
1802
- }, Pa = { class: "menu-item-title" }, Ra = { class: "menu-item-indicator" }, Ua = { class: "menu-item-body" }, Ba = ["for"], Da = { class: "menu-item-buttons" }, Va = { class: "filter-clear-button-container" }, La = /* @__PURE__ */ ee({
1804
+ }, Ra = { class: "menu-item-title" }, Fa = { class: "menu-item-indicator" }, Ua = { class: "menu-item-body" }, Ba = ["for"], Da = { class: "menu-item-buttons" }, Va = { class: "filter-clear-button-container" }, La = /* @__PURE__ */ ee({
1803
1805
  __name: "EntityFilter",
1804
1806
  props: {
1805
1807
  // filter config, either exact match or fuzzy match
@@ -1819,49 +1821,49 @@ const va = {
1819
1821
  },
1820
1822
  emits: ["update:modelValue"],
1821
1823
  setup(e, { emit: a }) {
1822
- const { i18n: { t } } = se.useI18n(), r = e, n = a, i = x(!1), o = x({}), d = S(() => {
1823
- const u = [];
1824
+ const { i18n: { t } } = se.useI18n(), r = e, n = a, i = x(!1), o = x({}), u = S(() => {
1825
+ const d = [];
1824
1826
  return new URLSearchParams(r.modelValue).forEach((T, E) => {
1825
- T !== "" && u.push(E);
1826
- }), u;
1827
+ T !== "" && d.push(E);
1828
+ }), d;
1827
1829
  }), m = S(() => {
1828
- const u = r.config.fields;
1829
- return Object.keys(u).filter((T) => u[T].searchable).map((T) => ({
1830
- label: u[T].label || T,
1830
+ const d = r.config.fields;
1831
+ return Object.keys(d).filter((T) => d[T].searchable).map((T) => ({
1832
+ label: d[T].label || T,
1831
1833
  value: T
1832
1834
  }));
1833
1835
  });
1834
- ne(() => r.modelValue, (u) => {
1835
- o.value = {}, new URLSearchParams(u).forEach((T, E) => {
1836
+ ne(() => r.modelValue, (d) => {
1837
+ o.value = {}, new URLSearchParams(d).forEach((T, E) => {
1836
1838
  o.value[E] = T;
1837
1839
  });
1838
1840
  });
1839
1841
  const p = () => {
1840
1842
  i.value = !i.value;
1841
- }, _ = (u) => {
1842
- n("update:modelValue", u);
1843
- }, l = (u) => `filter-${u}`, N = (u) => {
1843
+ }, _ = (d) => {
1844
+ n("update:modelValue", d);
1845
+ }, l = (d) => `filter-${d}`, N = (d) => {
1844
1846
  var T, E;
1845
- return (((E = (T = r.config.schema) == null ? void 0 : T[u]) == null ? void 0 : E.values) ?? []).map((w) => ({
1847
+ return (((E = (T = r.config.schema) == null ? void 0 : T[d]) == null ? void 0 : E.values) ?? []).map((w) => ({
1846
1848
  value: w,
1847
1849
  label: w
1848
1850
  }));
1849
- }, k = (u) => {
1851
+ }, k = (d) => {
1850
1852
  var T, E;
1851
- return ((E = (T = r.config.schema) == null ? void 0 : T[u]) == null ? void 0 : E.type) ?? "text";
1852
- }, D = (u) => {
1853
+ return ((E = (T = r.config.schema) == null ? void 0 : T[d]) == null ? void 0 : E.type) ?? "text";
1854
+ }, D = (d) => {
1853
1855
  o.value = {
1854
1856
  ...o.value,
1855
- [u]: ""
1856
- }, A();
1857
+ [d]: ""
1858
+ }, $();
1857
1859
  }, y = () => {
1858
- o.value = {}, A(!0);
1859
- }, A = (u = !1) => {
1860
+ o.value = {}, $(!0);
1861
+ }, $ = (d = !1) => {
1860
1862
  const T = Object.keys(o.value).reduce((E, w) => (o.value[w] && (E[w] = `${o.value[w]}`), E), {});
1861
- u && (i.value = !1), n("update:modelValue", new URLSearchParams(T).toString());
1863
+ d && (i.value = !1), n("update:modelValue", new URLSearchParams(T).toString());
1862
1864
  };
1863
- return (u, T) => {
1864
- const E = F("KInput"), w = F("KButton"), g = F("KSelect"), O = F("KMenuItem"), z = F("KMenu");
1865
+ return (d, T) => {
1866
+ const E = j("KInput"), w = j("KButton"), g = j("KSelect"), A = j("KMenuItem"), H = j("KMenu");
1865
1867
  return e.config.isExactMatch ? (b(), V(E, {
1866
1868
  key: 0,
1867
1869
  autocomplete: "off",
@@ -1875,7 +1877,7 @@ const va = {
1875
1877
  C(Ve)
1876
1878
  ]),
1877
1879
  _: 1
1878
- }, 8, ["model-value", "placeholder"])) : (b(), R("div", qa, [
1880
+ }, 8, ["model-value", "placeholder"])) : (b(), F("div", Pa, [
1879
1881
  C(w, {
1880
1882
  appearance: "tertiary",
1881
1883
  "data-testid": "filter-button",
@@ -1883,7 +1885,7 @@ const va = {
1883
1885
  }, {
1884
1886
  default: f(() => [
1885
1887
  C(Ve),
1886
- J(" " + M(s(t)("filter.filterButtonText")) + " " + M(d.value.length > 0 ? `(${d.value.length})` : ""), 1)
1888
+ J(" " + O(s(t)("filter.filterButtonText")) + " " + O(u.value.length > 0 ? `(${u.value.length})` : ""), 1)
1887
1889
  ]),
1888
1890
  _: 1
1889
1891
  }),
@@ -1893,35 +1895,35 @@ const va = {
1893
1895
  }, null, 512), [
1894
1896
  [ye, i.value]
1895
1897
  ]),
1896
- me(C(z, { class: "kong-ui-entity-filter-menu" }, {
1898
+ me(C(H, { class: "kong-ui-entity-filter-menu" }, {
1897
1899
  body: f(() => [
1898
- (b(!0), R(Je, null, Te(m.value, (v, U) => (b(), V(O, {
1900
+ (b(!0), F(Je, null, Te(m.value, (v, U) => (b(), V(A, {
1899
1901
  key: v.value,
1900
1902
  "data-testid": v.value,
1901
1903
  expandable: "",
1902
1904
  "last-menu-item": U === m.value.length - 1
1903
1905
  }, {
1904
1906
  itemTitle: f(() => [
1905
- K("span", Pa, [
1906
- J(M(v.label) + " ", 1),
1907
- me(K("span", Ra, null, 512), [
1908
- [ye, d.value.includes(v.value)]
1907
+ K("span", Ra, [
1908
+ J(O(v.label) + " ", 1),
1909
+ me(K("span", Fa, null, 512), [
1910
+ [ye, u.value.includes(v.value)]
1909
1911
  ])
1910
1912
  ])
1911
1913
  ]),
1912
1914
  itemBody: f(() => {
1913
- var L, q;
1915
+ var L, P;
1914
1916
  return [
1915
1917
  K("div", Ua, [
1916
1918
  K("label", {
1917
1919
  class: "menu-item-label",
1918
1920
  for: l(v.value)
1919
- }, M(s(t)("filter.fieldLabel")), 9, Ba),
1920
- ((q = (L = e.config.schema) == null ? void 0 : L[v.value]) == null ? void 0 : q.type) === "select" ? (b(), V(g, {
1921
+ }, O(s(t)("filter.fieldLabel")), 9, Ba),
1922
+ ((P = (L = e.config.schema) == null ? void 0 : L[v.value]) == null ? void 0 : P.type) === "select" ? (b(), V(g, {
1921
1923
  key: 0,
1922
1924
  id: l(v.value),
1923
1925
  modelValue: o.value[v.value],
1924
- "onUpdate:modelValue": (j) => o.value[v.value] = j,
1926
+ "onUpdate:modelValue": (q) => o.value[v.value] = q,
1925
1927
  appearance: "select",
1926
1928
  items: N(v.value),
1927
1929
  placeholder: s(t)("filter.selectPlaceholder")
@@ -1929,7 +1931,7 @@ const va = {
1929
1931
  key: 1,
1930
1932
  id: l(v.value),
1931
1933
  modelValue: o.value[v.value],
1932
- "onUpdate:modelValue": (j) => o.value[v.value] = j,
1934
+ "onUpdate:modelValue": (q) => o.value[v.value] = q,
1933
1935
  autocomplete: "off",
1934
1936
  placeholder: s(t)("filter.inputPlaceholder"),
1935
1937
  type: k(v.value)
@@ -1940,10 +1942,10 @@ const va = {
1940
1942
  appearance: "tertiary",
1941
1943
  "data-testid": "apply-filter",
1942
1944
  size: "small",
1943
- onClick: T[0] || (T[0] = (j) => A(!0))
1945
+ onClick: T[0] || (T[0] = (q) => $(!0))
1944
1946
  }, {
1945
1947
  default: f(() => [
1946
- J(M(s(t)("filter.applyButtonText")), 1)
1948
+ J(O(s(t)("filter.applyButtonText")), 1)
1947
1949
  ]),
1948
1950
  _: 1
1949
1951
  }),
@@ -1951,10 +1953,10 @@ const va = {
1951
1953
  appearance: "tertiary",
1952
1954
  "data-testid": "clear-filter",
1953
1955
  size: "small",
1954
- onClick: (j) => D(v.value)
1956
+ onClick: (q) => D(v.value)
1955
1957
  }, {
1956
1958
  default: f(() => [
1957
- J(M(s(t)("filter.clearButtonText")), 1)
1959
+ J(O(s(t)("filter.clearButtonText")), 1)
1958
1960
  ]),
1959
1961
  _: 2
1960
1962
  }, 1032, ["onClick"])
@@ -1972,7 +1974,7 @@ const va = {
1972
1974
  onClick: y
1973
1975
  }, {
1974
1976
  default: f(() => [
1975
- J(M(s(t)("filter.clearAllButtonText")), 1)
1977
+ J(O(s(t)("filter.clearAllButtonText")), 1)
1976
1978
  ]),
1977
1979
  _: 1
1978
1980
  })
@@ -1985,7 +1987,7 @@ const va = {
1985
1987
  ]));
1986
1988
  };
1987
1989
  }
1988
- }), Ha = /* @__PURE__ */ ue(La, [["__scopeId", "data-v-15962ee2"]]), _e = /* @__PURE__ */ ee({
1990
+ }), za = /* @__PURE__ */ ue(La, [["__scopeId", "data-v-15962ee2"]]), _e = /* @__PURE__ */ ee({
1989
1991
  __name: "PermissionsWrapper",
1990
1992
  props: {
1991
1993
  /**
@@ -2015,7 +2017,7 @@ const va = {
2015
2017
  isAllowed: t.value
2016
2018
  }) : X("", !0);
2017
2019
  }
2018
- }), za = { class: "form-section-wrapper" }, Wa = {
2020
+ }), Ha = { class: "form-section-wrapper" }, Wa = {
2019
2021
  key: 0,
2020
2022
  class: "form-section-title"
2021
2023
  }, Ja = {
@@ -2050,21 +2052,21 @@ const va = {
2050
2052
  },
2051
2053
  setup(e) {
2052
2054
  const a = ct();
2053
- return (t, r) => (b(), R("fieldset", {
2055
+ return (t, r) => (b(), F("fieldset", {
2054
2056
  class: ke(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
2055
2057
  }, [
2056
- K("div", za, [
2057
- e.hideInfoHeader ? X("", !0) : (b(), R("div", {
2058
+ K("div", Ha, [
2059
+ e.hideInfoHeader ? X("", !0) : (b(), F("div", {
2058
2060
  key: 0,
2059
2061
  class: ke(["form-section-info", { sticky: e.stickyInfoHeader }])
2060
2062
  }, [
2061
- e.title ? (b(), R("h4", Wa, M(e.title), 1)) : X("", !0),
2062
- e.description || s(a).description ? (b(), R("div", Ja, [
2063
+ e.title ? (b(), F("h4", Wa, O(e.title), 1)) : X("", !0),
2064
+ e.description || s(a).description ? (b(), F("div", Ja, [
2063
2065
  G(t.$slots, "description", {}, () => [
2064
- K("p", null, M(e.description), 1)
2066
+ K("p", null, O(e.description), 1)
2065
2067
  ], !0)
2066
2068
  ])) : X("", !0),
2067
- s(a).footer ? (b(), R("div", Ya, [
2069
+ s(a).footer ? (b(), F("div", Ya, [
2068
2070
  G(t.$slots, "footer", {}, void 0, !0)
2069
2071
  ])) : X("", !0)
2070
2072
  ], 2)),
@@ -2074,7 +2076,7 @@ const va = {
2074
2076
  ])
2075
2077
  ], 2));
2076
2078
  }
2077
- }), Le = /* @__PURE__ */ ue(Ga, [["__scopeId", "data-v-3565daa7"]]), { useAxios: lt, useDeleteUrlBuilder: Qa, useErrors: Xa, useExternalLinkCreator: $n, useFetchUrlBuilder: Kn, useFetcher: en, useDebouncedFilter: tn, useStringHelpers: Fn, useHelpers: jn, useGatewayFeatureSupported: qn, useTruncationDetector: Pn } = se, rn = {
2079
+ }), Le = /* @__PURE__ */ ue(Ga, [["__scopeId", "data-v-3565daa7"]]), { useAxios: lt, useDeleteUrlBuilder: Qa, useErrors: Xa, useExternalLinkCreator: Mn, useFetchUrlBuilder: Kn, useFetcher: en, useDebouncedFilter: tn, useStringHelpers: jn, useHelpers: qn, useGatewayFeatureSupported: Pn, useTruncationDetector: Rn } = se, rn = {
2078
2080
  fail: "Failed to copy id to clipboard",
2079
2081
  success: {
2080
2082
  prefix: "Successfully",
@@ -2083,7 +2085,7 @@ const va = {
2083
2085
  }, an = "Copy to clipboard", nn = {
2084
2086
  message: rn,
2085
2087
  iconTitle: an
2086
- }, on = "kong-ui-copy-uuid-notify", He = "24px", ln = (e, a) => {
2088
+ }, on = "kong-ui-copy-uuid-notify", ze = "24px", ln = (e, a) => {
2087
2089
  const t = e.__vccOpts || e;
2088
2090
  for (const [r, n] of a)
2089
2091
  t[r] = n;
@@ -2125,7 +2127,7 @@ const va = {
2125
2127
  size: {
2126
2128
  type: [Number, String],
2127
2129
  required: !1,
2128
- default: He,
2130
+ default: ze,
2129
2131
  // if setting to the imported const fails, just pass a number of 24 as the default.
2130
2132
  validator: (e) => {
2131
2133
  if (typeof e == "number" && e > 0)
@@ -2154,7 +2156,7 @@ const va = {
2154
2156
  if (i && !isNaN(i) && Number.isInteger(i) && i > 0)
2155
2157
  return `${i}px`;
2156
2158
  }
2157
- return He;
2159
+ return ze;
2158
2160
  }), r = S(() => ({
2159
2161
  boxSizing: "border-box",
2160
2162
  color: a.color,
@@ -2170,7 +2172,7 @@ const va = {
2170
2172
  style: ft(r.value)
2171
2173
  }, {
2172
2174
  default: f(() => [
2173
- (b(), R("svg", {
2175
+ (b(), F("svg", {
2174
2176
  "aria-hidden": e.decorative ? "true" : void 0,
2175
2177
  "data-testid": "kui-icon-svg-copy-icon",
2176
2178
  fill: "none",
@@ -2180,14 +2182,14 @@ const va = {
2180
2182
  width: "100%",
2181
2183
  xmlns: "http://www.w3.org/2000/svg"
2182
2184
  }, [
2183
- e.title ? (b(), R("title", un, M(e.title), 1)) : X("", !0),
2185
+ e.title ? (b(), F("title", un, O(e.title), 1)) : X("", !0),
2184
2186
  dn
2185
2187
  ], 8, cn))
2186
2188
  ]),
2187
2189
  _: 1
2188
2190
  }, 8, ["aria-hidden", "style"]));
2189
2191
  }
2190
- }), fn = /* @__PURE__ */ ln(pn, [["__scopeId", "data-v-ac7fcfb4"]]), mn = "16px", yn = { class: "kong-ui-copy-uuid" }, gn = ["onClick"], ze = 15, vn = /* @__PURE__ */ ee({
2192
+ }), fn = /* @__PURE__ */ ln(pn, [["__scopeId", "data-v-ac7fcfb4"]]), mn = "16px", yn = { class: "kong-ui-copy-uuid" }, gn = ["onClick"], He = 15, vn = /* @__PURE__ */ ee({
2191
2193
  __name: "CopyUuid",
2192
2194
  props: {
2193
2195
  uuid: {
@@ -2238,7 +2240,7 @@ const va = {
2238
2240
  placement: "bottomStart"
2239
2241
  } : {
2240
2242
  title: r.uuid
2241
- }), d = S(() => !!(r.tooltip && r.successTooltip)), m = x(r.tooltip), p = S(() => r.tooltip ? {
2243
+ }), u = S(() => !!(r.tooltip && r.successTooltip)), m = x(r.tooltip), p = S(() => r.tooltip ? {
2242
2244
  label: m.value,
2243
2245
  positionFixed: !0,
2244
2246
  maxWidth: "500px",
@@ -2256,19 +2258,19 @@ const va = {
2256
2258
  typeof i == "function" && i({
2257
2259
  type: "error",
2258
2260
  message: t("message.fail")
2259
- }), d.value ? l(t("message.fail")) : n("error", r.uuid);
2261
+ }), u.value ? l(t("message.fail")) : n("error", r.uuid);
2260
2262
  return;
2261
2263
  }
2262
- const A = ((D = r.uuid) == null ? void 0 : D.length) > ze, u = r.format === "hidden" || r.format === "redacted" ? t("message.success.prefix") : `"${((y = r.uuid) == null ? void 0 : y.substring(0, ze)) + (A ? "..." : "")}"`;
2264
+ const $ = ((D = r.uuid) == null ? void 0 : D.length) > He, d = r.format === "hidden" || r.format === "redacted" ? t("message.success.prefix") : `"${((y = r.uuid) == null ? void 0 : y.substring(0, He)) + ($ ? "..." : "")}"`;
2263
2265
  typeof i == "function" && i({
2264
2266
  type: "success",
2265
- message: `${u}${t("message.success.content")}`
2266
- }), d.value ? l(r.successTooltip) : n("success", r.uuid);
2267
+ message: `${d}${t("message.success.content")}`
2268
+ }), u.value ? l(r.successTooltip) : n("success", r.uuid);
2267
2269
  };
2268
2270
  return (k, D) => {
2269
- const y = F("KClipboardProvider");
2270
- return b(), R("div", yn, [
2271
- e.format !== "hidden" ? (b(), V(Ie(e.idTooltip ? "KTooltip" : "div"), $e({ key: 0 }, o.value, { "data-testid": "copy-id" }), {
2271
+ const y = j("KClipboardProvider");
2272
+ return b(), F("div", yn, [
2273
+ e.format !== "hidden" ? (b(), V(Ie(e.idTooltip ? "KTooltip" : "div"), Me({ key: 0 }, o.value, { "data-testid": "copy-id" }), {
2272
2274
  default: f(() => [
2273
2275
  K("div", {
2274
2276
  class: ke([
@@ -2276,19 +2278,19 @@ const va = {
2276
2278
  e.truncated ? "truncated-uuid" : null,
2277
2279
  e.useMono ? "mono" : null
2278
2280
  ])
2279
- }, M(_.value), 3)
2281
+ }, O(_.value), 3)
2280
2282
  ]),
2281
2283
  _: 1
2282
2284
  }, 16)) : X("", !0),
2283
- (b(), V(Ie(e.tooltip ? "KTooltip" : "div"), $e(p.value, { class: "uuid-icon-wrapper" }), {
2285
+ (b(), V(Ie(e.tooltip ? "KTooltip" : "div"), Me(p.value, { class: "uuid-icon-wrapper" }), {
2284
2286
  default: f(() => [
2285
2287
  C(y, null, {
2286
- default: f(({ copyToClipboard: A }) => [
2288
+ default: f(({ copyToClipboard: $ }) => [
2287
2289
  K("span", {
2288
2290
  "data-testid": "copy-to-clipboard",
2289
2291
  role: "button",
2290
2292
  tabindex: "0",
2291
- onClick: be((u) => N(A), ["stop"])
2293
+ onClick: be((d) => N($), ["stop"])
2292
2294
  }, [
2293
2295
  C(s(fn), {
2294
2296
  class: "uuid-icon",
@@ -2359,20 +2361,20 @@ const va = {
2359
2361
  emits: ["error", "copy:success", "copy:error", "delete:success"],
2360
2362
  setup(e, { emit: a }) {
2361
2363
  var pe;
2362
- const t = a, r = e, { i18n: { t: n } } = Ge.useI18n(), i = (h, $) => {
2364
+ const t = a, r = e, { i18n: { t: n } } = Ge.useI18n(), i = (h, M) => {
2363
2365
  var c;
2364
2366
  h.type === "error" ? t("copy:error", {
2365
- entity: $,
2367
+ entity: M,
2366
2368
  field: "certificate.id",
2367
2369
  message: n("errors.copy")
2368
2370
  }) : t("copy:success", {
2369
- entity: $,
2371
+ entity: M,
2370
2372
  field: "certificate.id",
2371
- message: n("copy.success", { val: (c = $.certificate) == null ? void 0 : c.id })
2373
+ message: n("copy.success", { val: (c = M.certificate) == null ? void 0 : c.id })
2372
2374
  });
2373
2375
  }, { axiosInstance: o } = lt({
2374
2376
  headers: (pe = r.config) == null ? void 0 : pe.requestHeaders
2375
- }), d = x(1), m = S(() => r.config.app !== "kongManager" || !!r.config.disableSorting), p = {
2377
+ }), u = x(1), m = S(() => r.config.app !== "kongManager" || !!r.config.disableSorting), p = {
2376
2378
  name: { label: n("snis.list.table_headers.name"), searchable: !0, sortable: !0 },
2377
2379
  certificate: { label: n("snis.list.table_headers.certificate_id"), sortable: !1 },
2378
2380
  tags: { label: n("snis.list.table_headers.tags"), sortable: !1 }
@@ -2381,9 +2383,9 @@ const va = {
2381
2383
  maxWidth: h.headerKey === "name" ? "250px" : h.headerKey === "certificate" ? "350px" : null
2382
2384
  }
2383
2385
  }), N = S(() => {
2384
- var $, c;
2386
+ var M, c;
2385
2387
  let h = `${r.config.apiBaseUrl}${fe.list[r.config.app].all}`;
2386
- return r.config.app === "konnect" ? h = h.replace(/{controlPlaneId}/gi, (($ = r.config) == null ? void 0 : $.controlPlaneId) || "") : r.config.app === "kongManager" && (h = h.replace(/\/{workspace}/gi, (c = r.config) != null && c.workspace ? `/${r.config.workspace}` : "")), h;
2388
+ return r.config.app === "konnect" ? h = h.replace(/{controlPlaneId}/gi, ((M = r.config) == null ? void 0 : M.controlPlaneId) || "") : r.config.app === "kongManager" && (h = h.replace(/\/{workspace}/gi, (c = r.config) != null && c.workspace ? `/${r.config.workspace}` : "")), h;
2387
2389
  }), k = x(""), D = S(() => {
2388
2390
  const h = r.config.app === "konnect" || r.config.isExactMatch;
2389
2391
  if (h)
@@ -2391,24 +2393,24 @@ const va = {
2391
2393
  isExactMatch: h,
2392
2394
  placeholder: n("search.placeholder")
2393
2395
  };
2394
- const { name: $ } = p;
2396
+ const { name: M } = p;
2395
2397
  return {
2396
2398
  isExactMatch: h,
2397
- fields: { name: $ },
2399
+ fields: { name: M },
2398
2400
  schema: r.config.filterSchema
2399
2401
  };
2400
- }), { fetcher: y, fetcherState: A } = en(r.config, N.value), u = () => {
2402
+ }), { fetcher: y, fetcherState: $ } = en(r.config, N.value), d = () => {
2401
2403
  k.value = "";
2402
2404
  }, T = () => {
2403
- d.value++;
2405
+ u.value++;
2404
2406
  }, E = x(null), w = x({
2405
2407
  ctaPath: r.config.createRoute,
2406
2408
  ctaText: void 0,
2407
2409
  message: n("snis.list.empty_state.description"),
2408
2410
  title: n("snis.title")
2409
- }), g = (h, $) => {
2411
+ }), g = (h, M) => {
2410
2412
  const c = h.id;
2411
- if (!$(c)) {
2413
+ if (!M(c)) {
2412
2414
  t("copy:error", {
2413
2415
  entity: h,
2414
2416
  field: "id",
@@ -2421,9 +2423,9 @@ const va = {
2421
2423
  field: "id",
2422
2424
  message: n("copy.success", { val: c })
2423
2425
  });
2424
- }, O = (h, $) => {
2426
+ }, A = (h, M) => {
2425
2427
  const c = JSON.stringify(h);
2426
- if (!$(c)) {
2428
+ if (!M(c)) {
2427
2429
  t("copy:error", {
2428
2430
  entity: h,
2429
2431
  message: n("errors.copy")
@@ -2434,29 +2436,29 @@ const va = {
2434
2436
  entity: h,
2435
2437
  message: n("copy.success_brief")
2436
2438
  });
2437
- }, z = (h) => ({
2439
+ }, H = (h) => ({
2438
2440
  label: n("actions.edit"),
2439
2441
  to: r.config.getEditRoute(h)
2440
- }), v = x(void 0), U = x(!1), L = x(!1), q = x(""), j = Qa(r.config, N.value), Y = (h) => {
2442
+ }), v = x(void 0), U = x(!1), L = x(!1), P = x(""), q = Qa(r.config, N.value), Y = (h) => {
2441
2443
  v.value = h, U.value = !0;
2442
2444
  }, te = () => {
2443
2445
  U.value = !1, v.value = void 0;
2444
2446
  }, de = async () => {
2445
- var h, $, c;
2447
+ var h, M, c;
2446
2448
  if ((h = v.value) != null && h.id) {
2447
2449
  L.value = !0;
2448
2450
  try {
2449
- await o.delete(j(v.value.id)), t("delete:success", v.value), L.value = !1, te(), d.value++;
2451
+ await o.delete(q(v.value.id)), t("delete:success", v.value), L.value = !1, te(), u.value++;
2450
2452
  } catch (I) {
2451
- q.value = ((c = ($ = I.response) == null ? void 0 : $.data) == null ? void 0 : c.message) || I.message || n("errors.delete"), t("error", I);
2453
+ P.value = ((c = (M = I.response) == null ? void 0 : M.data) == null ? void 0 : c.message) || I.message || n("errors.delete"), t("error", I);
2452
2454
  } finally {
2453
2455
  L.value = !1;
2454
2456
  }
2455
2457
  }
2456
2458
  }, re = x(!0);
2457
- return ne(A, (h) => {
2458
- var $, c, I, B;
2459
- if (Array.isArray(($ = h == null ? void 0 : h.response) == null ? void 0 : $.data) && (re.value = h.response.data.length > 0), h.status === oe.Error) {
2459
+ return ne($, (h) => {
2460
+ var M, c, I, B;
2461
+ if (Array.isArray((M = h == null ? void 0 : h.response) == null ? void 0 : M.data) && (re.value = h.response.data.length > 0), h.status === oe.Error) {
2460
2462
  E.value = {
2461
2463
  title: n("errors.general")
2462
2464
  }, (B = (I = (c = h.error) == null ? void 0 : c.response) == null ? void 0 : I.data) != null && B.message && (E.value.message = h.error.response.data.message), t("error", h.error);
@@ -2465,9 +2467,9 @@ const va = {
2465
2467
  E.value = null;
2466
2468
  }), xe(async () => {
2467
2469
  await r.canCreate() && (w.value.title = n("snis.list.empty_state.title"), w.value.ctaText = n("actions.create"));
2468
- }), (h, $) => {
2469
- const c = F("KButton"), I = F("KBadge"), B = F("KTruncate"), ae = F("KDropdownItem"), W = F("KClipboardProvider");
2470
- return b(), R("div", kn, [
2470
+ }), (h, M) => {
2471
+ const c = j("KButton"), I = j("KBadge"), B = j("KTruncate"), ae = j("KDropdownItem"), W = j("KClipboardProvider");
2472
+ return b(), F("div", kn, [
2471
2473
  C(s(Ta), {
2472
2474
  "cache-identifier": e.cacheIdentifier,
2473
2475
  "cell-attributes": l,
@@ -2478,19 +2480,19 @@ const va = {
2478
2480
  "enable-entity-actions": "",
2479
2481
  "error-message": E.value,
2480
2482
  fetcher: s(y),
2481
- "fetcher-cache-key": d.value,
2483
+ "fetcher-cache-key": u.value,
2482
2484
  "pagination-type": "offset",
2483
2485
  "preferences-storage-key": "kong-ui-entities-snis-list",
2484
2486
  query: k.value,
2485
2487
  "table-headers": s(_),
2486
2488
  "use-action-outside": e.useActionOutside,
2487
- onClearSearchInput: u,
2489
+ onClearSearchInput: d,
2488
2490
  onSort: T
2489
2491
  }, {
2490
2492
  "toolbar-filter": f(() => [
2491
- C(s(Ha), {
2493
+ C(s(za), {
2492
2494
  modelValue: k.value,
2493
- "onUpdate:modelValue": $[0] || ($[0] = (P) => k.value = P),
2495
+ "onUpdate:modelValue": M[0] || (M[0] = (R) => k.value = R),
2494
2496
  config: D.value
2495
2497
  }, null, 8, ["modelValue", "config"])
2496
2498
  ]),
@@ -2510,7 +2512,7 @@ const va = {
2510
2512
  to: e.config.createRoute
2511
2513
  }, {
2512
2514
  default: f(() => [
2513
- J(M(s(n)("snis.list.toolbar_actions.new")), 1)
2515
+ J(O(s(n)("snis.list.toolbar_actions.new")), 1)
2514
2516
  ]),
2515
2517
  _: 1
2516
2518
  }, 8, ["to"]), [
@@ -2521,45 +2523,45 @@ const va = {
2521
2523
  }, 8, ["auth-function"])
2522
2524
  ], 8, ["disabled"]))
2523
2525
  ]),
2524
- name: f(({ rowValue: P }) => [
2525
- K("b", null, M(P ?? "-"), 1)
2526
+ name: f(({ rowValue: R }) => [
2527
+ K("b", null, O(R ?? "-"), 1)
2526
2528
  ]),
2527
- certificate: f(({ row: P }) => [
2528
- P.certificate && P.certificate.id ? (b(), V(s(bn), {
2529
+ certificate: f(({ row: R }) => [
2530
+ R.certificate && R.certificate.id ? (b(), V(s(bn), {
2529
2531
  key: 0,
2530
2532
  class: "copy-certificate-uuid",
2531
2533
  "data-testid": "copy-certificate-uuid",
2532
- notify: (Q) => i(Q, P),
2534
+ notify: (Q) => i(Q, R),
2533
2535
  truncated: !1,
2534
- uuid: P.certificate.id
2535
- }, null, 8, ["notify", "uuid"])) : (b(), R("span", wn, "-"))
2536
+ uuid: R.certificate.id
2537
+ }, null, 8, ["notify", "uuid"])) : (b(), F("span", wn, "-"))
2536
2538
  ]),
2537
- tags: f(({ rowValue: P }) => [
2538
- P != null && P.length ? (b(), V(B, { key: 0 }, {
2539
+ tags: f(({ rowValue: R }) => [
2540
+ R != null && R.length ? (b(), V(B, { key: 0 }, {
2539
2541
  default: f(() => [
2540
- (b(!0), R(Je, null, Te(P, (Q) => (b(), V(I, {
2542
+ (b(!0), F(Je, null, Te(R, (Q) => (b(), V(I, {
2541
2543
  key: Q,
2542
- onClick: $[1] || ($[1] = be(() => {
2544
+ onClick: M[1] || (M[1] = be(() => {
2543
2545
  }, ["stop"]))
2544
2546
  }, {
2545
2547
  default: f(() => [
2546
- J(M(Q), 1)
2548
+ J(O(Q), 1)
2547
2549
  ]),
2548
2550
  _: 2
2549
2551
  }, 1024))), 128))
2550
2552
  ]),
2551
2553
  _: 2
2552
- }, 1024)) : (b(), R("span", Sn, "-"))
2554
+ }, 1024)) : (b(), F("span", Sn, "-"))
2553
2555
  ]),
2554
- actions: f(({ row: P }) => [
2556
+ actions: f(({ row: R }) => [
2555
2557
  C(W, null, {
2556
2558
  default: f(({ copyToClipboard: Q }) => [
2557
2559
  C(ae, {
2558
2560
  "data-testid": "action-entity-copy-id",
2559
- onClick: (ve) => g(P, Q)
2561
+ onClick: (ve) => g(R, Q)
2560
2562
  }, {
2561
2563
  default: f(() => [
2562
- J(M(s(n)("actions.copy_id")), 1)
2564
+ J(O(s(n)("actions.copy_id")), 1)
2563
2565
  ]),
2564
2566
  _: 2
2565
2567
  }, 1032, ["onClick"])
@@ -2570,10 +2572,10 @@ const va = {
2570
2572
  default: f(({ copyToClipboard: Q }) => [
2571
2573
  C(ae, {
2572
2574
  "data-testid": "action-entity-copy-json",
2573
- onClick: (ve) => O(P, Q)
2575
+ onClick: (ve) => A(R, Q)
2574
2576
  }, {
2575
2577
  default: f(() => [
2576
- J(M(s(n)("actions.copy_json")), 1)
2578
+ J(O(s(n)("actions.copy_json")), 1)
2577
2579
  ]),
2578
2580
  _: 2
2579
2581
  }, 1032, ["onClick"])
@@ -2581,28 +2583,28 @@ const va = {
2581
2583
  _: 2
2582
2584
  }, 1024),
2583
2585
  C(s(_e), {
2584
- "auth-function": () => e.canEdit(P)
2586
+ "auth-function": () => e.canEdit(R)
2585
2587
  }, {
2586
2588
  default: f(() => [
2587
2589
  C(ae, {
2588
2590
  "data-testid": "action-entity-edit",
2589
- item: z(P.id)
2591
+ item: H(R.id)
2590
2592
  }, null, 8, ["item"])
2591
2593
  ]),
2592
2594
  _: 2
2593
2595
  }, 1032, ["auth-function"]),
2594
2596
  C(s(_e), {
2595
- "auth-function": () => e.canDelete(P)
2597
+ "auth-function": () => e.canDelete(R)
2596
2598
  }, {
2597
2599
  default: f(() => [
2598
2600
  C(ae, {
2599
2601
  danger: "",
2600
2602
  "data-testid": "action-entity-delete",
2601
2603
  "has-divider": "",
2602
- onClick: (Q) => Y(P)
2604
+ onClick: (Q) => Y(R)
2603
2605
  }, {
2604
2606
  default: f(() => [
2605
- J(M(s(n)("actions.delete")), 1)
2607
+ J(O(s(n)("actions.delete")), 1)
2606
2608
  ]),
2607
2609
  _: 2
2608
2610
  }, 1032, ["onClick"])
@@ -2612,12 +2614,12 @@ const va = {
2612
2614
  ]),
2613
2615
  _: 1
2614
2616
  }, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers", "use-action-outside"]),
2615
- C(s(Oa), {
2617
+ C(s(Aa), {
2616
2618
  "action-pending": L.value,
2617
2619
  description: s(n)("delete.description"),
2618
2620
  "entity-name": v.value && (v.value.name || v.value.id),
2619
2621
  "entity-type": s(Qe).SNI,
2620
- error: q.value,
2622
+ error: P.value,
2621
2623
  "need-confirm": !1,
2622
2624
  title: s(n)("delete.title"),
2623
2625
  visible: U.value,
@@ -2632,7 +2634,7 @@ const va = {
2632
2634
  for (const [r, n] of a)
2633
2635
  t[r] = n;
2634
2636
  return t;
2635
- }, Rn = /* @__PURE__ */ st(_n, [["__scopeId", "data-v-5470cca7"]]), In = { class: "kong-ui-entities-snis-form" }, Cn = { "data-testid": "no-search-results" }, xn = {
2637
+ }, Fn = /* @__PURE__ */ st(_n, [["__scopeId", "data-v-5470cca7"]]), In = { class: "kong-ui-entities-snis-form" }, Cn = { "data-testid": "no-search-results" }, xn = {
2636
2638
  key: 2,
2637
2639
  class: "invalid-certificate-message",
2638
2640
  "data-testid": "invalid-certificate-message"
@@ -2654,9 +2656,9 @@ const va = {
2654
2656
  },
2655
2657
  emits: ["update", "error", "loading"],
2656
2658
  setup(e, { emit: a }) {
2657
- var $;
2658
- const t = a, r = e, n = Ze(), { i18n: { t: i } } = Ge.useI18n(), { getMessageFromError: o } = Xa(), { axiosInstance: d } = lt({
2659
- headers: ($ = r.config) == null ? void 0 : $.requestHeaders
2659
+ var M;
2660
+ const t = a, r = e, n = Ze(), { i18n: { t: i } } = Ge.useI18n(), { getMessageFromError: o } = Xa(), { axiosInstance: u } = lt({
2661
+ headers: (M = r.config) == null ? void 0 : M.requestHeaders
2660
2662
  }), m = S(() => fe.form[r.config.app].edit), p = S(() => r.sniId ? he.Edit : he.Create), _ = S(() => r.config.certificateId && p.value === he.Create ? r.config.certificateId : ""), l = Ke({
2661
2663
  fields: {
2662
2664
  name: "",
@@ -2674,16 +2676,16 @@ const va = {
2674
2676
  l.fields.name = (c == null ? void 0 : c.name) || "", l.fields.tags = ((I = c == null ? void 0 : c.tags) == null ? void 0 : I.join(", ")) || "", l.fields.certificate_id = ((B = c == null ? void 0 : c.certificate) == null ? void 0 : B.id) || "", Object.assign(N, l.fields);
2675
2677
  }, y = () => {
2676
2678
  n.push(r.config.cancelRoute);
2677
- }, A = S(() => {
2679
+ }, $ = S(() => {
2678
2680
  var I, B;
2679
2681
  let c = `${r.config.apiBaseUrl}${fe.form[r.config.app].validate}`;
2680
2682
  return r.config.app === "konnect" ? c = c.replace(/{controlPlaneId}/gi, ((I = r.config) == null ? void 0 : I.controlPlaneId) || "") : r.config.app === "kongManager" && (c = c.replace(/\/{workspace}/gi, (B = r.config) != null && B.workspace ? `/${r.config.workspace}` : "")), c = c.replace(/{id}/gi, r.sniId), c;
2681
- }), u = S(() => {
2683
+ }), d = S(() => {
2682
2684
  var I, B;
2683
2685
  let c = `${r.config.apiBaseUrl}${fe.form[r.config.app][p.value]}`;
2684
2686
  return r.config.app === "konnect" ? c = c.replace(/{controlPlaneId}/gi, ((I = r.config) == null ? void 0 : I.controlPlaneId) || "") : r.config.app === "kongManager" && (c = c.replace(/\/{workspace}/gi, (B = r.config) != null && B.workspace ? `/${r.config.workspace}` : "")), c = c.replace(/{id}/gi, r.sniId), c;
2685
2687
  }), T = async () => {
2686
- var c, I, B, ae, W, P, Q, ve;
2688
+ var c, I, B, ae, W, R, Q, ve;
2687
2689
  try {
2688
2690
  l.isReadonly = !0;
2689
2691
  const ie = {
@@ -2692,7 +2694,7 @@ const va = {
2692
2694
  certificate: { id: _.value || l.fields.certificate_id }
2693
2695
  };
2694
2696
  let Z;
2695
- await d.post(A.value, ie), p.value === "create" ? Z = await d.post(u.value, ie) : p.value === "edit" && (Z = ((B = r.config) == null ? void 0 : B.app) === "konnect" ? await d.put(u.value, ie) : await d.patch(u.value, ie)), l.fields.name = ((ae = Z == null ? void 0 : Z.data) == null ? void 0 : ae.name) || "", l.fields.tags = ((P = (W = Z == null ? void 0 : Z.data) == null ? void 0 : W.tags) == null ? void 0 : P.join(", ")) || "", l.fields.certificate_id = ((ve = (Q = Z == null ? void 0 : Z.data) == null ? void 0 : Q.certificate) == null ? void 0 : ve.id) || "", Object.assign(N, l.fields), t("update", Z == null ? void 0 : Z.data);
2697
+ await u.post($.value, ie), p.value === "create" ? Z = await u.post(d.value, ie) : p.value === "edit" && (Z = ((B = r.config) == null ? void 0 : B.app) === "konnect" ? await u.put(d.value, ie) : await u.patch(d.value, ie)), l.fields.name = ((ae = Z == null ? void 0 : Z.data) == null ? void 0 : ae.name) || "", l.fields.tags = ((R = (W = Z == null ? void 0 : Z.data) == null ? void 0 : W.tags) == null ? void 0 : R.join(", ")) || "", l.fields.certificate_id = ((ve = (Q = Z == null ? void 0 : Z.data) == null ? void 0 : Q.certificate) == null ? void 0 : ve.id) || "", Object.assign(N, l.fields), t("update", Z == null ? void 0 : Z.data);
2696
2698
  } catch (ie) {
2697
2699
  l.errorMessage = o(ie), t("error", ie);
2698
2700
  } finally {
@@ -2702,13 +2704,13 @@ const va = {
2702
2704
  debouncedQueryChange: E,
2703
2705
  loading: w,
2704
2706
  allRecords: g,
2705
- error: O,
2706
- validationError: z,
2707
+ error: A,
2708
+ validationError: H,
2707
2709
  loadItems: v,
2708
2710
  results: U
2709
- } = tn(r.config, fe.form[r.config.app].certificates), L = x(!0), q = (c) => {
2711
+ } = tn(r.config, fe.form[r.config.app].certificates), L = x(!0), P = (c) => {
2710
2712
  L.value = !c, E(c);
2711
- }, j = S(() => O.value ? i("errors.certificates.fetch") : ""), Y = S(() => z.value ? i("errors.certificates.invalid") : ""), te = x(0), de = S(() => g.value === void 0), re = x(/* @__PURE__ */ new Set()), pe = S(() => Array.from(re.value).map((I) => ({
2713
+ }, q = S(() => A.value ? i("errors.certificates.fetch") : ""), Y = S(() => H.value ? i("errors.certificates.invalid") : ""), te = x(0), de = S(() => g.value === void 0), re = x(/* @__PURE__ */ new Set()), pe = S(() => Array.from(re.value).map((I) => ({
2712
2714
  label: I,
2713
2715
  value: I,
2714
2716
  selected: l.fields.certificate_id === I
@@ -2725,13 +2727,13 @@ const va = {
2725
2727
  }, { immediate: !0, deep: !0 }), xe(async () => {
2726
2728
  await v();
2727
2729
  }), (c, I) => {
2728
- const B = F("KInput"), ae = F("KSelect");
2729
- return b(), R("div", In, [
2730
+ const B = j("KInput"), ae = j("KSelect");
2731
+ return b(), F("div", In, [
2730
2732
  C(s(ba), {
2731
2733
  "can-submit": k.value,
2732
2734
  config: e.config,
2733
2735
  "edit-id": e.sniId,
2734
- "error-message": l.errorMessage || j.value,
2736
+ "error-message": l.errorMessage || q.value,
2735
2737
  "fetch-url": m.value,
2736
2738
  "is-readonly": l.isReadonly,
2737
2739
  onCancel: y,
@@ -2806,17 +2808,17 @@ const va = {
2806
2808
  readonly: l.isReadonly,
2807
2809
  required: "",
2808
2810
  width: "100%",
2809
- onQueryChange: q
2811
+ onQueryChange: P
2810
2812
  }, {
2811
2813
  loading: f(() => [
2812
- K("div", null, M(s(i)("actions.loading")), 1)
2814
+ K("div", null, O(s(i)("actions.loading")), 1)
2813
2815
  ]),
2814
2816
  empty: f(() => [
2815
- K("div", Cn, M(s(i)("search.no_results")), 1)
2817
+ K("div", Cn, O(s(i)("search.no_results")), 1)
2816
2818
  ]),
2817
2819
  _: 1
2818
2820
  }, 8, ["modelValue", "class", "dropdown-footer-text", "items", "label", "loading", "placeholder", "readonly"])),
2819
- Y.value ? (b(), R("p", xn, M(Y.value), 1)) : X("", !0)
2821
+ Y.value ? (b(), F("p", xn, O(Y.value), 1)) : X("", !0)
2820
2822
  ]),
2821
2823
  _: 1
2822
2824
  }, 8, ["description", "title"])
@@ -2829,5 +2831,5 @@ const va = {
2829
2831
  }), Un = /* @__PURE__ */ st(Tn, [["__scopeId", "data-v-576c2dac"]]);
2830
2832
  export {
2831
2833
  Un as SniForm,
2832
- Rn as SniList
2834
+ Fn as SniList
2833
2835
  };