@kong-ui-public/entities-consumer-credentials 2.1.62 → 2.1.63

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 ie, ref as v, computed as N, watch as oe, renderSlot as Y, createCommentVNode as V, unref as m, resolveComponent as L, openBlock as j, createBlock as J, withCtx as s, createVNode as g, createSlots as Te, withDirectives as Ne, createElementVNode as ee, createElementBlock as G, vShow as Ie, renderList as xe, createTextVNode as U, toDisplayString as x, inject as Be, onMounted as qe, onUnmounted as ze, onBeforeMount as Je, resolveDynamicComponent as We, Fragment as He, withModifiers as Ye } from "vue";
1
+ import { defineComponent as ie, ref as v, computed as I, watch as se, renderSlot as Y, createCommentVNode as V, unref as m, resolveComponent as L, openBlock as j, createBlock as J, withCtx as o, createVNode as g, createSlots as Te, withDirectives as Ie, createElementVNode as ee, createElementBlock as G, vShow as Ne, renderList as xe, createTextVNode as R, toDisplayString as x, inject as Be, onMounted as qe, onUnmounted as ze, onBeforeMount as Je, resolveDynamicComponent as We, Fragment as He, withModifiers as Ye } from "vue";
2
2
  import { createI18n as Ee, i18nTComponent as Oe } from "@kong-ui-public/i18n";
3
3
  import me from "axios";
4
4
  import "@kong/kongponents";
@@ -200,7 +200,7 @@ function tt() {
200
200
  }
201
201
  };
202
202
  }
203
- const se = "khcp-user-table-preferences", rt = {
203
+ const oe = "khcp-user-table-preferences", rt = {
204
204
  pageSize: 30,
205
205
  sortColumnKey: void 0,
206
206
  sortColumnOrder: void 0
@@ -215,14 +215,14 @@ function at() {
215
215
  return;
216
216
  }
217
217
  }, r = () => {
218
- const t = e(localStorage.getItem(se));
218
+ const t = e(localStorage.getItem(oe));
219
219
  return !t || !Object.keys(t).length ? /* @__PURE__ */ new Map() : new Map(Object.entries(t));
220
220
  };
221
221
  return {
222
222
  setTablePreferences: (t, a) => {
223
223
  try {
224
224
  const n = r();
225
- n.set(t, a), localStorage.setItem(se, JSON.stringify(Object.fromEntries(n.entries())));
225
+ n.set(t, a), localStorage.setItem(oe, JSON.stringify(Object.fromEntries(n.entries())));
226
226
  } catch (n) {
227
227
  console.error("useTablePreferences(setTablePreferences)", n);
228
228
  }
@@ -232,7 +232,7 @@ function at() {
232
232
  return (a == null ? void 0 : a.get(t)) || void 0 || rt;
233
233
  },
234
234
  deleteAllTablePreferences: () => {
235
- localStorage.removeItem(se);
235
+ localStorage.removeItem(oe);
236
236
  }
237
237
  };
238
238
  }
@@ -268,13 +268,13 @@ const nt = {
268
268
  errors: {
269
269
  edit: "The entity could not be edited at this time."
270
270
  }
271
- }, ot = {
271
+ }, st = {
272
272
  emptyState: {
273
273
  noSearchResultsTitle: "No results found",
274
274
  noSearchResultsMessage: "Please adjust the criteria and try again.",
275
275
  noSearchResultsCtaText: "Clear"
276
276
  }
277
- }, st = {
277
+ }, ot = {
278
278
  title: "Configuration",
279
279
  actions: {
280
280
  copy: "Copy JSON"
@@ -340,8 +340,8 @@ const nt = {
340
340
  global: nt,
341
341
  deleteModal: it,
342
342
  baseForm: lt,
343
- baseTable: ot,
344
- baseConfigCard: st,
343
+ baseTable: st,
344
+ baseConfigCard: ot,
345
345
  filter: ct,
346
346
  debouncedFilter: ut,
347
347
  errors: dt,
@@ -355,14 +355,14 @@ function pe() {
355
355
  // Translation component <i18n-t>
356
356
  };
357
357
  }
358
- function Ke() {
358
+ function $e() {
359
359
  const e = (t, a) => (a == null ? void 0 : a[t]) ?? void 0, r = (t, a) => {
360
360
  if (t.length !== a.length)
361
361
  return !1;
362
362
  const n = /* @__PURE__ */ new Set([...t, ...a]);
363
363
  for (const l of n) {
364
- const i = t.filter((c) => c === l).length, o = a.filter((c) => c === l).length;
365
- if (i !== o)
364
+ const i = t.filter((c) => c === l).length, s = a.filter((c) => c === l).length;
365
+ if (i !== s)
366
366
  return !1;
367
367
  }
368
368
  return !0;
@@ -406,12 +406,12 @@ function yt(e, r, t, a = {
406
406
  t || (t = "100");
407
407
  const { axiosInstance: n } = de({
408
408
  headers: e.requestHeaders
409
- }), { i18n: { t: l } } = pe(), { debounce: i } = tt(), o = i(async (w) => {
409
+ }), { i18n: { t: l } } = pe(), { debounce: i } = tt(), s = i(async (w) => {
410
410
  await ae(w);
411
- }, 200), c = v(!1), p = v(""), b = v(""), y = v([]), A = v([]), _ = v(void 0), R = m(r);
412
- let f = `${e.apiBaseUrl}${R}`;
411
+ }, 200), c = v(!1), p = v(""), b = v(""), y = v([]), A = v([]), _ = v(void 0), U = m(r);
412
+ let f = `${e.apiBaseUrl}${U}`;
413
413
  e.app === "konnect" ? f = f.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (f = f.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
414
- const { isValidUuid: T } = Ke(), P = async () => {
414
+ const { isValidUuid: T } = $e(), P = async () => {
415
415
  try {
416
416
  c.value = !0;
417
417
  const { data: w } = await n.get(`${f}?size=${t}`);
@@ -429,23 +429,23 @@ function yt(e, r, t, a = {
429
429
  if (c.value = !0, p.value = "", b.value = "", e.app === "konnect") {
430
430
  let E = f + "";
431
431
  w && (E += `/${w}`);
432
- const { data: K } = await n.get(`${E}?size=${t}`);
433
- a.fetchedItemsKey in K ? y.value = K[a.fetchedItemsKey] : K != null && K.id ? y.value = [K] : y.value = [];
432
+ const { data: $ } = await n.get(`${E}?size=${t}`);
433
+ a.fetchedItemsKey in $ ? y.value = $[a.fetchedItemsKey] : $ != null && $.id ? y.value = [$] : y.value = [];
434
434
  } else if (w) {
435
435
  const E = [];
436
436
  T(w) && a.searchKeys.includes("id") ? E.push((async () => {
437
- const { data: I } = await n.get(`${f}/${w}`);
438
- return [I[a.fetchedItemsKey] ?? I];
437
+ const { data: N } = await n.get(`${f}/${w}`);
438
+ return [N[a.fetchedItemsKey] ?? N];
439
439
  })()) : E.push(
440
- ...a.searchKeys.filter((I) => I !== "id").map(async (I) => {
441
- const { data: O } = await n.get(`${f}?${I}=${w}`);
440
+ ...a.searchKeys.filter((N) => N !== "id").map(async (N) => {
441
+ const { data: O } = await n.get(`${f}?${N}=${w}`);
442
442
  return O[a.fetchedItemsKey];
443
443
  })
444
444
  );
445
- const K = await Promise.all(E), z = /* @__PURE__ */ new Set();
446
- y.value = [], (u = K == null ? void 0 : K.forEach) == null || u.call(K, (I) => {
445
+ const $ = await Promise.all(E), z = /* @__PURE__ */ new Set();
446
+ y.value = [], (u = $ == null ? void 0 : $.forEach) == null || u.call($, (N) => {
447
447
  var O;
448
- (O = I == null ? void 0 : I.forEach) == null || O.call(I, (B) => {
448
+ (O = N == null ? void 0 : N.forEach) == null || O.call(N, (B) => {
449
449
  z.has(B.id) || (z.add(B.id), y.value.push(B));
450
450
  });
451
451
  });
@@ -458,10 +458,10 @@ function yt(e, r, t, a = {
458
458
  }
459
459
  else
460
460
  c.value = !0, b.value = "", w ? (y.value = (q = _.value) == null ? void 0 : q.filter((E) => {
461
- var K;
461
+ var $;
462
462
  let z = !1;
463
- for (const I of a.searchKeys) {
464
- const O = typeof E[I] == "string" ? (K = E[I]) == null ? void 0 : K.toLowerCase() : E[I];
463
+ for (const N of a.searchKeys) {
464
+ const O = typeof E[N] == "string" ? ($ = E[N]) == null ? void 0 : $.toLowerCase() : E[N];
465
465
  O != null && O.includes(w.toLowerCase()) && (z = !0);
466
466
  }
467
467
  return z;
@@ -474,11 +474,11 @@ function yt(e, r, t, a = {
474
474
  results: y,
475
475
  allRecords: _,
476
476
  loadItems: P,
477
- debouncedQueryChange: o
477
+ debouncedQueryChange: s
478
478
  };
479
479
  }
480
480
  function ht(e, r) {
481
- const t = m(r), a = N(
481
+ const t = m(r), a = I(
482
482
  () => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${t}`) : new URL(t)
483
483
  );
484
484
  return a.value.search = "", (n) => `${a.value.href}/${n}`;
@@ -497,8 +497,8 @@ function gt() {
497
497
  return r.response.data.detail;
498
498
  if ((n = r.response.data.details) != null && n.length)
499
499
  return r.response.data.details.map((i) => {
500
- let o = e("errors.unexpected");
501
- return i.messages && typeof i.messages == "object" && i.messages.length && (o = i.messages.join(", ")), i.field ? `${i.field} - ${o}` : o;
500
+ let s = e("errors.unexpected");
501
+ return i.messages && typeof i.messages == "object" && i.messages.length && (s = i.messages.join(", ")), i.field ? `${i.field} - ${s}` : s;
502
502
  }).join("; ");
503
503
  if (r.response.data.message) {
504
504
  const { message: i } = r.response.data;
@@ -524,19 +524,19 @@ function mt(e) {
524
524
  return console.warn("Failed to build valid URL:", a), "";
525
525
  }
526
526
  }
527
- function $e(e, r) {
528
- const t = v(m(e)), a = v(m(r)), n = N(
527
+ function Ke(e, r) {
528
+ const t = v(m(e)), a = v(m(r)), n = I(
529
529
  () => !!(t.value.app === "konnect" || t.value.isExactMatch)
530
- ), l = N(
530
+ ), l = I(
531
531
  () => a.value.startsWith("/") ? new URL(`${window.location.origin}${a.value}`) : new URL(a.value)
532
532
  );
533
533
  return (i) => {
534
- const { page: o, pageSize: c, offset: p, sortColumnKey: b, sortColumnOrder: y, query: A } = i;
534
+ const { page: s, pageSize: c, offset: p, sortColumnKey: b, sortColumnOrder: y, query: A } = i;
535
535
  try {
536
536
  let _ = new URL(l.value.href);
537
- return n.value && A ? (_.search = "", _ = t.value.app === "konnect" ? new URL(`${_.href}?filter[name][contains]=${A}`) : new URL(`${_.href}/${A}/`)) : (n.value || new URLSearchParams(A).forEach((R, f) => {
538
- _.searchParams.append(f, R);
539
- }), b && _.searchParams.append("sort_by", b), y === "desc" && _.searchParams.append("sort_desc", "1"), _.searchParams.append("size", String(c))), p && o !== 1 && _.searchParams.append("offset", String(p)), _.href;
537
+ return n.value && A ? (_.search = "", _ = t.value.app === "konnect" ? new URL(`${_.href}?filter[name][contains]=${A}`) : new URL(`${_.href}/${A}/`)) : (n.value || new URLSearchParams(A).forEach((U, f) => {
538
+ _.searchParams.append(f, U);
539
+ }), b && _.searchParams.append("sort_by", b), y === "desc" && _.searchParams.append("sort_desc", "1"), _.searchParams.append("size", String(c))), p && s !== 1 && _.searchParams.append("offset", String(p)), _.href;
540
540
  } catch (_) {
541
541
  return console.error("RouteList(fetcher)", _), a.value;
542
542
  }
@@ -545,14 +545,14 @@ function $e(e, r) {
545
545
  function vt(e, r, t = "data") {
546
546
  const a = m(r), { axiosInstance: n } = de({
547
547
  headers: e.requestHeaders
548
- }), l = $e(e, a), i = v({
548
+ }), l = Ke(e, a), i = v({
549
549
  status: Q.Idle
550
550
  });
551
- return { fetcher: async (o) => {
551
+ return { fetcher: async (s) => {
552
552
  try {
553
553
  i.value = { status: Q.Loading };
554
- let c = l(o);
555
- c.includes("filter[name]") && (c = `${c}&page[size]=${o.pageSize}&page[number]=${o.page}`);
554
+ let c = l(s);
555
+ c.includes("filter[name]") && (c = `${c}&page[size]=${s.pageSize}&page[number]=${s.page}`);
556
556
  const { data: p } = await n.get(c), b = t && t.replace(/[^\w-_]/gi, "");
557
557
  let y;
558
558
  p[b] && Array.isArray(p[b]) ? y = p[b] : Array.isArray(p) ? y = p : y = Object.keys(p).length ? [p] : [];
@@ -574,7 +574,7 @@ function vt(e, r, t = "data") {
574
574
  data: [],
575
575
  total: 0
576
576
  };
577
- return o.query && c.response.status === 404 ? (i.value = {
577
+ return s.query && c.response.status === 404 ? (i.value = {
578
578
  status: Q.NoResults,
579
579
  response: p,
580
580
  error: c
@@ -645,15 +645,15 @@ function At(e) {
645
645
  const l = t[a];
646
646
  if (!l)
647
647
  return !1;
648
- const [i, o] = l;
649
- return !(i && Ce(n, i, "<") || o && Ce(n, o, ">"));
648
+ const [i, s] = l;
649
+ return !(i && Ce(n, i, "<") || s && Ce(n, s, ">"));
650
650
  }
651
651
  function Tt(e) {
652
652
  const r = v(0), t = v(0), a = v(!1);
653
- return oe(e, (n) => {
653
+ return se(e, (n) => {
654
654
  n && !a.value && (r.value = n.offsetWidth, t.value = n.scrollWidth, a.value = !0);
655
655
  }), {
656
- isTruncated: N(() => r.value < t.value)
656
+ isTruncated: I(() => r.value < t.value)
657
657
  };
658
658
  }
659
659
  const fe = {
@@ -663,8 +663,8 @@ const fe = {
663
663
  useErrors: gt,
664
664
  useExternalLinkCreator: mt,
665
665
  useFetcher: vt,
666
- useFetchUrlBuilder: $e,
667
- useHelpers: Ke,
666
+ useFetchUrlBuilder: Ke,
667
+ useHelpers: $e,
668
668
  useStringHelpers: bt,
669
669
  useI18n: pe,
670
670
  useGatewayFeatureSupported: At,
@@ -674,12 +674,12 @@ const fe = {
674
674
  for (const [a, n] of r)
675
675
  t[a] = n;
676
676
  return t;
677
- }, Nt = "#3a3f51";
677
+ }, It = "#3a3f51";
678
678
  /*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
679
679
  function Le(e) {
680
680
  return typeof e > "u" || e === null;
681
681
  }
682
- function It(e) {
682
+ function Nt(e) {
683
683
  return typeof e == "object" && e !== null;
684
684
  }
685
685
  function xt(e) {
@@ -701,29 +701,29 @@ function Ot(e, r) {
701
701
  function jt(e) {
702
702
  return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
703
703
  }
704
- var Kt = Le, $t = It, Ft = xt, Pt = Ot, Lt = jt, Mt = Et, he = {
705
- isNothing: Kt,
706
- isObject: $t,
704
+ var $t = Le, Kt = Nt, Ft = xt, Pt = Ot, Lt = jt, Dt = Et, he = {
705
+ isNothing: $t,
706
+ isObject: Kt,
707
707
  toArray: Ft,
708
708
  repeat: Pt,
709
709
  isNegativeZero: Lt,
710
- extend: Mt
710
+ extend: Dt
711
711
  };
712
- function Me(e, r) {
712
+ function De(e, r) {
713
713
  var t = "", a = e.reason || "(unknown reason)";
714
714
  return e.mark ? (e.mark.name && (t += 'in "' + e.mark.name + '" '), t += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !r && e.mark.snippet && (t += `
715
715
 
716
716
  ` + e.mark.snippet), a + " " + t) : a;
717
717
  }
718
718
  function ne(e, r) {
719
- Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = r, this.message = Me(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
719
+ Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = r, this.message = De(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
720
720
  }
721
721
  ne.prototype = Object.create(Error.prototype);
722
722
  ne.prototype.constructor = ne;
723
723
  ne.prototype.toString = function(e) {
724
- return this.name + ": " + Me(this, e);
724
+ return this.name + ": " + De(this, e);
725
725
  };
726
- var X = ne, Dt = [
726
+ var X = ne, Mt = [
727
727
  "kind",
728
728
  "multi",
729
729
  "resolve",
@@ -734,12 +734,12 @@ var X = ne, Dt = [
734
734
  "representName",
735
735
  "defaultStyle",
736
736
  "styleAliases"
737
- ], Ut = [
737
+ ], Rt = [
738
738
  "scalar",
739
739
  "sequence",
740
740
  "mapping"
741
741
  ];
742
- function Rt(e) {
742
+ function Ut(e) {
743
743
  var r = {};
744
744
  return e !== null && Object.keys(e).forEach(function(t) {
745
745
  e[t].forEach(function(a) {
@@ -749,16 +749,16 @@ function Rt(e) {
749
749
  }
750
750
  function Bt(e, r) {
751
751
  if (r = r || {}, Object.keys(r).forEach(function(t) {
752
- if (Dt.indexOf(t) === -1)
752
+ if (Mt.indexOf(t) === -1)
753
753
  throw new X('Unknown option "' + t + '" is met in definition of "' + e + '" YAML type.');
754
754
  }), this.options = r, this.tag = e, this.kind = r.kind || null, this.resolve = r.resolve || function() {
755
755
  return !0;
756
756
  }, this.construct = r.construct || function(t) {
757
757
  return t;
758
- }, this.instanceOf = r.instanceOf || null, this.predicate = r.predicate || null, this.represent = r.represent || null, this.representName = r.representName || null, this.defaultStyle = r.defaultStyle || null, this.multi = r.multi || !1, this.styleAliases = Rt(r.styleAliases || null), Ut.indexOf(this.kind) === -1)
758
+ }, this.instanceOf = r.instanceOf || null, this.predicate = r.predicate || null, this.represent = r.represent || null, this.representName = r.representName || null, this.defaultStyle = r.defaultStyle || null, this.multi = r.multi || !1, this.styleAliases = Ut(r.styleAliases || null), Rt.indexOf(this.kind) === -1)
759
759
  throw new X('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
760
760
  }
761
- var $ = Bt;
761
+ var K = Bt;
762
762
  function Se(e, r) {
763
763
  var t = [];
764
764
  return e[r].forEach(function(a) {
@@ -793,7 +793,7 @@ function ue(e) {
793
793
  }
794
794
  ue.prototype.extend = function(e) {
795
795
  var r = [], t = [];
796
- if (e instanceof $)
796
+ if (e instanceof K)
797
797
  t.push(e);
798
798
  else if (Array.isArray(e))
799
799
  t = t.concat(e);
@@ -802,30 +802,30 @@ ue.prototype.extend = function(e) {
802
802
  else
803
803
  throw new X("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
804
804
  r.forEach(function(n) {
805
- if (!(n instanceof $))
805
+ if (!(n instanceof K))
806
806
  throw new X("Specified list of YAML types (or a single Type object) contains a non-Type object.");
807
807
  if (n.loadKind && n.loadKind !== "scalar")
808
808
  throw new X("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
809
809
  if (n.multi)
810
810
  throw new X("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
811
811
  }), t.forEach(function(n) {
812
- if (!(n instanceof $))
812
+ if (!(n instanceof K))
813
813
  throw new X("Specified list of YAML types (or a single Type object) contains a non-Type object.");
814
814
  });
815
815
  var a = Object.create(ue.prototype);
816
816
  return a.implicit = (this.implicit || []).concat(r), a.explicit = (this.explicit || []).concat(t), a.compiledImplicit = Se(a, "implicit"), a.compiledExplicit = Se(a, "explicit"), a.compiledTypeMap = qt(a.compiledImplicit, a.compiledExplicit), a;
817
817
  };
818
- var zt = ue, Jt = new $("tag:yaml.org,2002:str", {
818
+ var zt = ue, Jt = new K("tag:yaml.org,2002:str", {
819
819
  kind: "scalar",
820
820
  construct: function(e) {
821
821
  return e !== null ? e : "";
822
822
  }
823
- }), Wt = new $("tag:yaml.org,2002:seq", {
823
+ }), Wt = new K("tag:yaml.org,2002:seq", {
824
824
  kind: "sequence",
825
825
  construct: function(e) {
826
826
  return e !== null ? e : [];
827
827
  }
828
- }), Ht = new $("tag:yaml.org,2002:map", {
828
+ }), Ht = new K("tag:yaml.org,2002:map", {
829
829
  kind: "mapping",
830
830
  construct: function(e) {
831
831
  return e !== null ? e : {};
@@ -849,7 +849,7 @@ function Gt() {
849
849
  function Zt(e) {
850
850
  return e === null;
851
851
  }
852
- var Qt = new $("tag:yaml.org,2002:null", {
852
+ var Qt = new K("tag:yaml.org,2002:null", {
853
853
  kind: "scalar",
854
854
  resolve: Vt,
855
855
  construct: Gt,
@@ -885,7 +885,7 @@ function er(e) {
885
885
  function tr(e) {
886
886
  return Object.prototype.toString.call(e) === "[object Boolean]";
887
887
  }
888
- var rr = new $("tag:yaml.org,2002:bool", {
888
+ var rr = new K("tag:yaml.org,2002:bool", {
889
889
  kind: "scalar",
890
890
  resolve: Xt,
891
891
  construct: er,
@@ -959,7 +959,7 @@ function lr(e) {
959
959
  }
960
960
  return !(!a || n === "_");
961
961
  }
962
- function or(e) {
962
+ function sr(e) {
963
963
  var r = e, t = 1, a;
964
964
  if (r.indexOf("_") !== -1 && (r = r.replace(/_/g, "")), a = r[0], (a === "-" || a === "+") && (a === "-" && (t = -1), r = r.slice(1), a = r[0]), r === "0")
965
965
  return 0;
@@ -973,14 +973,14 @@ function or(e) {
973
973
  }
974
974
  return t * parseInt(r, 10);
975
975
  }
976
- function sr(e) {
976
+ function or(e) {
977
977
  return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !he.isNegativeZero(e);
978
978
  }
979
- var cr = new $("tag:yaml.org,2002:int", {
979
+ var cr = new K("tag:yaml.org,2002:int", {
980
980
  kind: "scalar",
981
981
  resolve: lr,
982
- construct: or,
983
- predicate: sr,
982
+ construct: sr,
983
+ predicate: or,
984
984
  represent: {
985
985
  binary: function(e) {
986
986
  return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
@@ -1053,7 +1053,7 @@ function yr(e, r) {
1053
1053
  function hr(e) {
1054
1054
  return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || he.isNegativeZero(e));
1055
1055
  }
1056
- var gr = new $("tag:yaml.org,2002:float", {
1056
+ var gr = new K("tag:yaml.org,2002:float", {
1057
1057
  kind: "scalar",
1058
1058
  resolve: dr,
1059
1059
  construct: pr,
@@ -1067,31 +1067,31 @@ var gr = new $("tag:yaml.org,2002:float", {
1067
1067
  cr,
1068
1068
  gr
1069
1069
  ]
1070
- }), vr = mr, De = new RegExp(
1070
+ }), vr = mr, Me = new RegExp(
1071
1071
  "^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
1072
- ), Ue = new RegExp(
1072
+ ), Re = new RegExp(
1073
1073
  "^([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]))?))?$"
1074
1074
  );
1075
1075
  function br(e) {
1076
- return e === null ? !1 : De.exec(e) !== null || Ue.exec(e) !== null;
1076
+ return e === null ? !1 : Me.exec(e) !== null || Re.exec(e) !== null;
1077
1077
  }
1078
1078
  function wr(e) {
1079
- var r, t, a, n, l, i, o, c = 0, p = null, b, y, A;
1080
- if (r = De.exec(e), r === null && (r = Ue.exec(e)), r === null)
1079
+ var r, t, a, n, l, i, s, c = 0, p = null, b, y, A;
1080
+ if (r = Me.exec(e), r === null && (r = Re.exec(e)), r === null)
1081
1081
  throw new Error("Date resolve error");
1082
1082
  if (t = +r[1], a = +r[2] - 1, n = +r[3], !r[4])
1083
1083
  return new Date(Date.UTC(t, a, n));
1084
- if (l = +r[4], i = +r[5], o = +r[6], r[7]) {
1084
+ if (l = +r[4], i = +r[5], s = +r[6], r[7]) {
1085
1085
  for (c = r[7].slice(0, 3); c.length < 3; )
1086
1086
  c += "0";
1087
1087
  c = +c;
1088
1088
  }
1089
- return r[9] && (b = +r[10], y = +(r[11] || 0), p = (b * 60 + y) * 6e4, r[9] === "-" && (p = -p)), A = new Date(Date.UTC(t, a, n, l, i, o, c)), p && A.setTime(A.getTime() - p), A;
1089
+ return r[9] && (b = +r[10], y = +(r[11] || 0), p = (b * 60 + y) * 6e4, r[9] === "-" && (p = -p)), A = new Date(Date.UTC(t, a, n, l, i, s, c)), p && A.setTime(A.getTime() - p), A;
1090
1090
  }
1091
1091
  function kr(e) {
1092
1092
  return e.toISOString();
1093
1093
  }
1094
- var Cr = new $("tag:yaml.org,2002:timestamp", {
1094
+ var Cr = new K("tag:yaml.org,2002:timestamp", {
1095
1095
  kind: "scalar",
1096
1096
  resolve: br,
1097
1097
  construct: wr,
@@ -1101,7 +1101,7 @@ var Cr = new $("tag:yaml.org,2002:timestamp", {
1101
1101
  function _r(e) {
1102
1102
  return e === "<<" || e === null;
1103
1103
  }
1104
- var Sr = new $("tag:yaml.org,2002:merge", {
1104
+ var Sr = new K("tag:yaml.org,2002:merge", {
1105
1105
  kind: "scalar",
1106
1106
  resolve: _r
1107
1107
  }), ge = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
@@ -1119,33 +1119,33 @@ function Ar(e) {
1119
1119
  return a % 8 === 0;
1120
1120
  }
1121
1121
  function Tr(e) {
1122
- var r, t, a = e.replace(/[\r\n=]/g, ""), n = a.length, l = ge, i = 0, o = [];
1122
+ var r, t, a = e.replace(/[\r\n=]/g, ""), n = a.length, l = ge, i = 0, s = [];
1123
1123
  for (r = 0; r < n; r++)
1124
- r % 4 === 0 && r && (o.push(i >> 16 & 255), o.push(i >> 8 & 255), o.push(i & 255)), i = i << 6 | l.indexOf(a.charAt(r));
1125
- return t = n % 4 * 6, t === 0 ? (o.push(i >> 16 & 255), o.push(i >> 8 & 255), o.push(i & 255)) : t === 18 ? (o.push(i >> 10 & 255), o.push(i >> 2 & 255)) : t === 12 && o.push(i >> 4 & 255), new Uint8Array(o);
1124
+ r % 4 === 0 && r && (s.push(i >> 16 & 255), s.push(i >> 8 & 255), s.push(i & 255)), i = i << 6 | l.indexOf(a.charAt(r));
1125
+ return t = n % 4 * 6, t === 0 ? (s.push(i >> 16 & 255), s.push(i >> 8 & 255), s.push(i & 255)) : t === 18 ? (s.push(i >> 10 & 255), s.push(i >> 2 & 255)) : t === 12 && s.push(i >> 4 & 255), new Uint8Array(s);
1126
1126
  }
1127
- function Nr(e) {
1127
+ function Ir(e) {
1128
1128
  var r = "", t = 0, a, n, l = e.length, i = ge;
1129
1129
  for (a = 0; a < l; a++)
1130
1130
  a % 3 === 0 && a && (r += i[t >> 18 & 63], r += i[t >> 12 & 63], r += i[t >> 6 & 63], r += i[t & 63]), t = (t << 8) + e[a];
1131
1131
  return n = l % 3, n === 0 ? (r += i[t >> 18 & 63], r += i[t >> 12 & 63], r += i[t >> 6 & 63], r += i[t & 63]) : n === 2 ? (r += i[t >> 10 & 63], r += i[t >> 4 & 63], r += i[t << 2 & 63], r += i[64]) : n === 1 && (r += i[t >> 2 & 63], r += i[t << 4 & 63], r += i[64], r += i[64]), r;
1132
1132
  }
1133
- function Ir(e) {
1133
+ function Nr(e) {
1134
1134
  return Object.prototype.toString.call(e) === "[object Uint8Array]";
1135
1135
  }
1136
- var xr = new $("tag:yaml.org,2002:binary", {
1136
+ var xr = new K("tag:yaml.org,2002:binary", {
1137
1137
  kind: "scalar",
1138
1138
  resolve: Ar,
1139
1139
  construct: Tr,
1140
- predicate: Ir,
1141
- represent: Nr
1140
+ predicate: Nr,
1141
+ represent: Ir
1142
1142
  }), Er = Object.prototype.hasOwnProperty, Or = Object.prototype.toString;
1143
1143
  function jr(e) {
1144
1144
  if (e === null)
1145
1145
  return !0;
1146
- var r = [], t, a, n, l, i, o = e;
1147
- for (t = 0, a = o.length; t < a; t += 1) {
1148
- if (n = o[t], i = !1, Or.call(n) !== "[object Object]")
1146
+ var r = [], t, a, n, l, i, s = e;
1147
+ for (t = 0, a = s.length; t < a; t += 1) {
1148
+ if (n = s[t], i = !1, Or.call(n) !== "[object Object]")
1149
1149
  return !1;
1150
1150
  for (l in n)
1151
1151
  if (Er.call(n, l))
@@ -1162,13 +1162,13 @@ function jr(e) {
1162
1162
  }
1163
1163
  return !0;
1164
1164
  }
1165
- function Kr(e) {
1165
+ function $r(e) {
1166
1166
  return e !== null ? e : [];
1167
1167
  }
1168
- var $r = new $("tag:yaml.org,2002:omap", {
1168
+ var Kr = new K("tag:yaml.org,2002:omap", {
1169
1169
  kind: "sequence",
1170
1170
  resolve: jr,
1171
- construct: Kr
1171
+ construct: $r
1172
1172
  }), Fr = Object.prototype.toString;
1173
1173
  function Pr(e) {
1174
1174
  if (e === null)
@@ -1189,27 +1189,27 @@ function Lr(e) {
1189
1189
  a = i[r], n = Object.keys(a), l[r] = [n[0], a[n[0]]];
1190
1190
  return l;
1191
1191
  }
1192
- var Mr = new $("tag:yaml.org,2002:pairs", {
1192
+ var Dr = new K("tag:yaml.org,2002:pairs", {
1193
1193
  kind: "sequence",
1194
1194
  resolve: Pr,
1195
1195
  construct: Lr
1196
- }), Dr = Object.prototype.hasOwnProperty;
1197
- function Ur(e) {
1196
+ }), Mr = Object.prototype.hasOwnProperty;
1197
+ function Rr(e) {
1198
1198
  if (e === null)
1199
1199
  return !0;
1200
1200
  var r, t = e;
1201
1201
  for (r in t)
1202
- if (Dr.call(t, r) && t[r] !== null)
1202
+ if (Mr.call(t, r) && t[r] !== null)
1203
1203
  return !1;
1204
1204
  return !0;
1205
1205
  }
1206
- function Rr(e) {
1206
+ function Ur(e) {
1207
1207
  return e !== null ? e : {};
1208
1208
  }
1209
- var Br = new $("tag:yaml.org,2002:set", {
1209
+ var Br = new K("tag:yaml.org,2002:set", {
1210
1210
  kind: "mapping",
1211
- resolve: Ur,
1212
- construct: Rr
1211
+ resolve: Rr,
1212
+ construct: Ur
1213
1213
  });
1214
1214
  vr.extend({
1215
1215
  implicit: [
@@ -1218,8 +1218,8 @@ vr.extend({
1218
1218
  ],
1219
1219
  explicit: [
1220
1220
  xr,
1221
- $r,
1222
- Mr,
1221
+ Kr,
1222
+ Dr,
1223
1223
  Br
1224
1224
  ]
1225
1225
  });
@@ -1246,13 +1246,13 @@ const Jr = {
1246
1246
  }
1247
1247
  },
1248
1248
  setup(e) {
1249
- const r = e, t = N(() => {
1249
+ const r = e, t = I(() => {
1250
1250
  var f;
1251
1251
  return ((f = r.rowEl) == null ? void 0 : f.querySelector(`[data-testid="${r.keyName}"]`)) || null;
1252
- }), a = N(() => {
1252
+ }), a = I(() => {
1253
1253
  var f;
1254
1254
  return ((f = t.value) == null ? void 0 : f.querySelector('[data-testid="first-col"]')) || null;
1255
- }), n = N(() => {
1255
+ }), n = I(() => {
1256
1256
  var f, T;
1257
1257
  const P = (f = r.rowEl) == null ? void 0 : f.querySelectorAll("td");
1258
1258
  return P ? ((T = P[0]) == null ? void 0 : T.getAttribute("data-testid")) === r.keyName : !1;
@@ -1260,16 +1260,16 @@ const Jr = {
1260
1260
  let l;
1261
1261
  const i = () => {
1262
1262
  l && (l.disconnect(), l = void 0);
1263
- }, o = () => {
1263
+ }, s = () => {
1264
1264
  var f, T, P;
1265
1265
  p.value = ((f = a.value) == null ? void 0 : f.getBoundingClientRect().width) || 0, b.value = ((T = t.value) == null ? void 0 : T.clientWidth) || 0, y.value = ((P = c.value) == null ? void 0 : P.innerText) || "";
1266
- }, c = v({}), p = v(0), b = v(0), y = v(""), A = N(() => [a.value, t.value]), _ = oe(
1266
+ }, c = v({}), p = v(0), b = v(0), y = v(""), A = I(() => [a.value, t.value]), _ = se(
1267
1267
  A,
1268
1268
  (f) => {
1269
1269
  if (n.value && (i(), "ResizeObserver" in window && window)) {
1270
1270
  l = new ResizeObserver((T) => {
1271
1271
  window.requestAnimationFrame(() => {
1272
- !Array.isArray(T) || !T.length || o();
1272
+ !Array.isArray(T) || !T.length || s();
1273
1273
  });
1274
1274
  });
1275
1275
  for (const T of f)
@@ -1277,9 +1277,9 @@ const Jr = {
1277
1277
  }
1278
1278
  },
1279
1279
  { immediate: !0, flush: "post", deep: !0 }
1280
- ), R = N(() => n.value ? p.value > b.value : !1);
1280
+ ), U = I(() => n.value ? p.value > b.value : !1);
1281
1281
  return qe(() => {
1282
- o();
1282
+ s();
1283
1283
  }), ze(() => {
1284
1284
  _();
1285
1285
  }), (f, T) => {
@@ -1293,9 +1293,9 @@ const Jr = {
1293
1293
  g(P, {
1294
1294
  "max-width": "300",
1295
1295
  placement: "bottomStart",
1296
- text: R.value ? y.value : ""
1296
+ text: U.value ? y.value : ""
1297
1297
  }, {
1298
- default: s(() => [
1298
+ default: o(() => [
1299
1299
  Y(f.$slots, "default", {}, void 0, !0)
1300
1300
  ]),
1301
1301
  _: 3
@@ -1417,7 +1417,7 @@ const Jr = {
1417
1417
  },
1418
1418
  emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
1419
1419
  setup(e, { emit: r }) {
1420
- const t = e, a = r, { i18n: { t: n } } = fe.useI18n(), l = N(() => {
1420
+ const t = e, a = r, { i18n: { t: n } } = fe.useI18n(), l = I(() => {
1421
1421
  var u, C;
1422
1422
  return typeof t.errorMessage == "string" ? {
1423
1423
  hasError: !!t.errorMessage,
@@ -1428,7 +1428,7 @@ const Jr = {
1428
1428
  title: (u = t.errorMessage) == null ? void 0 : u.title,
1429
1429
  message: (C = t.errorMessage) == null ? void 0 : C.message
1430
1430
  };
1431
- }), i = N(() => t.cacheIdentifier || t.preferencesStorageKey), o = (u) => u.hasData || !!t.query, c = N(() => {
1431
+ }), i = I(() => t.cacheIdentifier || t.preferencesStorageKey), s = (u) => u.hasData || !!t.query, c = I(() => {
1432
1432
  const u = [];
1433
1433
  return Object.keys(t.tableHeaders).forEach((C) => {
1434
1434
  const q = t.tableHeaders[C];
@@ -1459,14 +1459,14 @@ const Jr = {
1459
1459
  textOverflow: "ellipsis"
1460
1460
  }), C;
1461
1461
  }, _ = () => {
1462
- a("empty-state-cta-clicked"), R();
1463
- }, R = () => {
1462
+ a("empty-state-cta-clicked"), U();
1463
+ }, U = () => {
1464
1464
  a("clear-search-input");
1465
- }, f = N(() => t.disableRowClick ? void 0 : (u, C) => {
1465
+ }, f = I(() => t.disableRowClick ? void 0 : (u, C) => {
1466
1466
  a("click:row", C);
1467
1467
  }), T = (u) => {
1468
1468
  a("sort", u);
1469
- }, { setTablePreferences: P, getTablePreferences: Z } = at(), ae = N(() => {
1469
+ }, { setTablePreferences: P, getTablePreferences: Z } = at(), ae = I(() => {
1470
1470
  const u = Z(t.preferencesStorageKey);
1471
1471
  return {
1472
1472
  ...t.initialFetcherParams,
@@ -1476,12 +1476,12 @@ const Jr = {
1476
1476
  t.preferencesStorageKey && P(t.preferencesStorageKey, u);
1477
1477
  };
1478
1478
  return (u, C) => {
1479
- const q = L("KIcon"), E = L("KButton"), K = L("KDropdown"), z = L("KTable"), I = L("KCard");
1480
- return j(), J(I, {
1479
+ const q = L("KIcon"), E = L("KButton"), $ = L("KDropdown"), z = L("KTable"), N = L("KCard");
1480
+ return j(), J(N, {
1481
1481
  class: "kong-ui-entity-base-table",
1482
1482
  title: e.title
1483
1483
  }, {
1484
- default: s(() => [
1484
+ default: o(() => [
1485
1485
  g(z, {
1486
1486
  ref_key: "tableRefs",
1487
1487
  ref: b,
@@ -1514,41 +1514,41 @@ const Jr = {
1514
1514
  onSort: C[0] || (C[0] = (O) => T(O)),
1515
1515
  "onUpdate:tablePreferences": w
1516
1516
  }, Te({
1517
- toolbar: s(({ state: O }) => [
1518
- Ne(ee("div", Yr, [
1517
+ toolbar: o(({ state: O }) => [
1518
+ Ie(ee("div", Yr, [
1519
1519
  Y(u.$slots, "toolbar-filter", {}, void 0, !0),
1520
1520
  u.$slots["toolbar-button"] ? (j(), G("div", Vr, [
1521
1521
  Y(u.$slots, "toolbar-button", {}, void 0, !0)
1522
1522
  ])) : V("", !0)
1523
1523
  ], 512), [
1524
- [Ie, o(O)]
1524
+ [Ne, s(O)]
1525
1525
  ])
1526
1526
  ]),
1527
- actions: s(({ row: O, rowKey: B, rowValue: W }) => [
1527
+ actions: o(({ row: O, rowKey: B, rowValue: W }) => [
1528
1528
  ee("div", {
1529
1529
  class: "actions-container",
1530
1530
  "data-testid": O.name
1531
1531
  }, [
1532
- g(K, {
1532
+ g($, {
1533
1533
  "kpop-attributes": { placement: "bottomEnd" },
1534
1534
  width: e.dropdownMenuWidth
1535
1535
  }, {
1536
- items: s(() => [
1536
+ items: o(() => [
1537
1537
  Y(u.$slots, "actions", {
1538
1538
  row: O,
1539
1539
  rowKey: B,
1540
1540
  rowValue: W
1541
1541
  }, void 0, !0)
1542
1542
  ]),
1543
- default: s(() => [
1543
+ default: o(() => [
1544
1544
  g(E, {
1545
1545
  class: "actions-trigger",
1546
1546
  "data-testid": "overflow-actions-button",
1547
1547
  size: "small"
1548
1548
  }, {
1549
- icon: s(() => [
1549
+ icon: o(() => [
1550
1550
  g(q, {
1551
- color: m(Nt),
1551
+ color: m(It),
1552
1552
  icon: "more",
1553
1553
  size: "16"
1554
1554
  }, null, 8, ["color"])
@@ -1564,18 +1564,18 @@ const Jr = {
1564
1564
  }, [
1565
1565
  xe(e.tableHeaders, (O, B) => ({
1566
1566
  name: B,
1567
- fn: s(({ row: W, rowKey: d, rowValue: k }) => [
1567
+ fn: o(({ row: W, rowKey: d, rowValue: k }) => [
1568
1568
  g(Hr, {
1569
1569
  "key-name": String(B),
1570
1570
  "row-el": y(W)
1571
1571
  }, {
1572
- default: s(() => [
1572
+ default: o(() => [
1573
1573
  Y(u.$slots, B, {
1574
1574
  row: W,
1575
1575
  rowKey: d,
1576
1576
  rowValue: k
1577
1577
  }, () => [
1578
- U(x(k), 1)
1578
+ R(x(k), 1)
1579
1579
  ], !0)
1580
1580
  ]),
1581
1581
  _: 2
@@ -1633,9 +1633,9 @@ const Jr = {
1633
1633
  },
1634
1634
  emits: ["cancel", "proceed"],
1635
1635
  setup(e, { emit: r }) {
1636
- const { i18nT: t } = fe.useI18n(), a = e, n = r, l = N(() => a.needConfirm ? a.entityName : ""), i = () => {
1636
+ const { i18nT: t } = fe.useI18n(), a = e, n = r, l = I(() => a.needConfirm ? a.entityName : ""), i = () => {
1637
1637
  n("cancel");
1638
- }, o = () => {
1638
+ }, s = () => {
1639
1639
  n("proceed");
1640
1640
  };
1641
1641
  return (c, p) => {
@@ -1649,13 +1649,13 @@ const Jr = {
1649
1649
  title: e.title,
1650
1650
  visible: e.visible,
1651
1651
  onCancel: i,
1652
- onProceed: o
1652
+ onProceed: s
1653
1653
  }, {
1654
- default: s(() => [
1654
+ default: o(() => [
1655
1655
  e.error ? (j(), G("div", Xr, [
1656
1656
  g(b, { appearance: "danger" }, {
1657
- alertMessage: s(() => [
1658
- U(x(e.error), 1)
1657
+ alertMessage: o(() => [
1658
+ R(x(e.error), 1)
1659
1659
  ]),
1660
1660
  _: 1
1661
1661
  })
@@ -1665,14 +1665,14 @@ const Jr = {
1665
1665
  keypath: a.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
1666
1666
  tag: "p"
1667
1667
  }, Te({
1668
- entityType: s(() => [
1669
- U(x(a.entityType), 1)
1668
+ entityType: o(() => [
1669
+ R(x(a.entityType), 1)
1670
1670
  ]),
1671
1671
  _: 2
1672
1672
  }, [
1673
1673
  a.entityName ? {
1674
1674
  name: "entityName",
1675
- fn: s(() => [
1675
+ fn: o(() => [
1676
1676
  ee("strong", null, x(a.entityName), 1)
1677
1677
  ]),
1678
1678
  key: "0"
@@ -1710,15 +1710,15 @@ const Jr = {
1710
1710
  }
1711
1711
  },
1712
1712
  setup(e) {
1713
- const r = e, t = v(void 0), a = N(() => t.value === !0 || t.value !== void 0 && r.forceShow === !0);
1714
- return oe(() => r.authFunction, async () => {
1713
+ const r = e, t = v(void 0), a = I(() => t.value === !0 || t.value !== void 0 && r.forceShow === !0);
1714
+ return se(() => r.authFunction, async () => {
1715
1715
  t.value = await r.authFunction();
1716
1716
  }, { immediate: !0 }), (n, l) => a.value ? Y(n.$slots, "default", {
1717
1717
  key: 0,
1718
1718
  isAllowed: t.value
1719
1719
  }) : V("", !0);
1720
1720
  }
1721
- }), { useAxios: aa, useDeleteUrlBuilder: na, useErrors: ha, useExternalLinkCreator: ga, useFetchUrlBuilder: ma, useFetcher: ia, useDebouncedFilter: va, useStringHelpers: ba, useHelpers: wa, useGatewayFeatureSupported: ka, useTruncationDetector: Ca } = fe, la = { class: "kong-ui-entities-consumer-credentials-list" }, oa = { key: 1 }, sa = /* @__PURE__ */ ie({
1721
+ }), { useAxios: aa, useDeleteUrlBuilder: na, useErrors: ha, useExternalLinkCreator: ga, useFetchUrlBuilder: ma, useFetcher: ia, useDebouncedFilter: va, useStringHelpers: ba, useHelpers: wa, useGatewayFeatureSupported: ka, useTruncationDetector: Ca } = fe, la = { class: "kong-ui-entities-consumer-credentials-list" }, sa = { key: 1 }, oa = /* @__PURE__ */ ie({
1722
1722
  __name: "ConsumerCredentialList",
1723
1723
  props: {
1724
1724
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -1760,7 +1760,7 @@ const Jr = {
1760
1760
  setup(e, { emit: r }) {
1761
1761
  const t = r, a = e, { i18n: { t: n, formatUnixTimeStamp: l } } = Qe.useI18n(), { axiosInstance: i } = aa({
1762
1762
  headers: a.config.requestHeaders
1763
- }), o = v(1), c = {
1763
+ }), s = v(1), c = {
1764
1764
  acls: {
1765
1765
  group: { label: n("credentials.list.table_headers.acls.group") },
1766
1766
  created_at: { label: n("credentials.list.table_headers.acls.created_at") },
@@ -1801,21 +1801,21 @@ const Jr = {
1801
1801
  created_at: { label: n("credentials.list.table_headers.jwt.created_at") },
1802
1802
  tags: { label: n("credentials.list.table_headers.jwt.tags") }
1803
1803
  }
1804
- }, p = N(() => c[a.config.plugin]), b = N(() => {
1804
+ }, p = I(() => c[a.config.plugin]), b = I(() => {
1805
1805
  let d = `${a.config.apiBaseUrl}${Xe.list[a.config.app]}`;
1806
1806
  return a.config.app === "konnect" ? d = d.replace(/{controlPlaneId}/gi, a.config.controlPlaneId || "").replace(/{consumerId}/gi, a.config.consumerId || "").replace(/{plugin}/gi, a.config.plugin || "") : a.config.app === "kongManager" && (d = d.replace(/\/{workspace}/gi, a.config.workspace ? `/${a.config.workspace}` : "").replace(/{consumerId}/gi, a.config.consumerId || "").replace(/{plugin}/gi, a.config.plugin || "")), d;
1807
1807
  }), { fetcher: y, fetcherState: A } = ia(a.config, b), _ = () => {
1808
- o.value++;
1809
- }, R = v(null), f = (d, k, M) => {
1808
+ s.value++;
1809
+ }, U = v(null), f = (d, k, D) => {
1810
1810
  const F = k ? d[k] : JSON.stringify(d);
1811
- if (!M(F)) {
1811
+ if (!D(F)) {
1812
1812
  Z(d, k);
1813
1813
  return;
1814
1814
  }
1815
1815
  P(d, k);
1816
- }, T = (d, k, M) => {
1816
+ }, T = (d, k, D) => {
1817
1817
  const { type: F } = d;
1818
- F === "success" ? P(k, M) : Z(k, M);
1818
+ F === "success" ? P(k, D) : Z(k, D);
1819
1819
  }, P = (d, k) => {
1820
1820
  t("copy:success", {
1821
1821
  entity: d,
@@ -1831,32 +1831,32 @@ const Jr = {
1831
1831
  }, ae = (d) => ({
1832
1832
  label: n("credentials.actions.edit"),
1833
1833
  to: a.config.getEditRoute(d)
1834
- }), w = v(void 0), u = v(!1), C = v(!1), q = v(""), E = na(a.config, b.value), K = N(() => je[a.config.plugin]), z = (d) => {
1834
+ }), w = v(void 0), u = v(!1), C = v(!1), q = v(""), E = na(a.config, b.value), $ = I(() => je[a.config.plugin]), z = (d) => {
1835
1835
  w.value = d, u.value = !0;
1836
- }, I = () => {
1836
+ }, N = () => {
1837
1837
  u.value = !1;
1838
1838
  }, O = async () => {
1839
- var d, k, M;
1839
+ var d, k, D;
1840
1840
  if ((d = w.value) != null && d.id) {
1841
1841
  C.value = !0;
1842
1842
  try {
1843
- await i.delete(E(w.value.id)), C.value = !1, u.value = !1, o.value++, t("delete:success", w.value);
1843
+ await i.delete(E(w.value.id)), C.value = !1, u.value = !1, s.value++, t("delete:success", w.value);
1844
1844
  } catch (F) {
1845
- q.value = ((M = (k = F.response) == null ? void 0 : k.data) == null ? void 0 : M.message) || F.message || n("credentials.error.delete"), t("error", F);
1845
+ q.value = ((D = (k = F.response) == null ? void 0 : k.data) == null ? void 0 : D.message) || F.message || n("credentials.error.delete"), t("error", F);
1846
1846
  } finally {
1847
1847
  C.value = !1;
1848
1848
  }
1849
1849
  }
1850
1850
  }, B = v(!0);
1851
- oe(A, (d) => {
1852
- var k, M, F, le;
1851
+ se(A, (d) => {
1852
+ var k, D, F, le;
1853
1853
  if (Array.isArray((k = d == null ? void 0 : d.response) == null ? void 0 : k.data) && (B.value = d.response.data.length > 0), d.status === Q.Error) {
1854
- R.value = {
1854
+ U.value = {
1855
1855
  title: n("credentials.error.general")
1856
- }, (le = (F = (M = d.error) == null ? void 0 : M.response) == null ? void 0 : F.data) != null && le.message && (R.value.message = d.error.response.data.message), t("error", d.error);
1856
+ }, (le = (F = (D = d.error) == null ? void 0 : D.response) == null ? void 0 : F.data) != null && le.message && (U.value.message = d.error.response.data.message), t("error", d.error);
1857
1857
  return;
1858
1858
  }
1859
- R.value = null;
1859
+ U.value = null;
1860
1860
  });
1861
1861
  const W = v({
1862
1862
  ctaPath: a.config.createRoute,
@@ -1867,7 +1867,7 @@ const Jr = {
1867
1867
  return Je(async () => {
1868
1868
  await a.canCreate() && (W.value.title = n(`credentials.list.empty_state.${a.config.plugin}.title`), W.value.ctaText = n(`credentials.list.empty_state.${a.config.plugin}.cta`));
1869
1869
  }), (d, k) => {
1870
- const M = L("KButton"), F = L("CopyUuid"), le = L("KBadge"), Re = L("KTruncate"), H = L("KDropdownItem"), te = L("KClipboardProvider");
1870
+ const D = L("KButton"), F = L("CopyUuid"), le = L("KBadge"), Ue = L("KTruncate"), H = L("KDropdownItem"), te = L("KClipboardProvider");
1871
1871
  return j(), G("div", la, [
1872
1872
  g(m(Qr), {
1873
1873
  "cache-identifier": e.cacheIdentifier,
@@ -1876,37 +1876,37 @@ const Jr = {
1876
1876
  "disable-sorting": "",
1877
1877
  "empty-state-options": W.value,
1878
1878
  "enable-entity-actions": "",
1879
- "error-message": R.value,
1879
+ "error-message": U.value,
1880
1880
  fetcher: m(y),
1881
- "fetcher-cache-key": o.value,
1881
+ "fetcher-cache-key": s.value,
1882
1882
  "pagination-type": "offset",
1883
1883
  "preferences-storage-key": "kong-ui-entities-consumer-credentials-list",
1884
1884
  "table-headers": p.value,
1885
1885
  "use-action-outside": e.useActionOutside,
1886
1886
  onSort: _
1887
1887
  }, {
1888
- "toolbar-button": s(() => [
1888
+ "toolbar-button": o(() => [
1889
1889
  (j(), J(We(e.useActionOutside ? "Teleport" : "div"), {
1890
1890
  to: e.useActionOutside ? "#kong-ui-app-page-header-action-button" : void 0
1891
1891
  }, {
1892
- default: s(() => [
1892
+ default: o(() => [
1893
1893
  g(m(ce), {
1894
1894
  "auth-function": () => e.canCreate()
1895
1895
  }, {
1896
- default: s(() => [
1897
- Ne(g(M, {
1896
+ default: o(() => [
1897
+ Ie(g(D, {
1898
1898
  appearance: "primary",
1899
1899
  "data-testid": "toolbar-add-credential",
1900
1900
  icon: "plus",
1901
1901
  size: "large",
1902
1902
  to: e.config.createRoute
1903
1903
  }, {
1904
- default: s(() => [
1905
- U(x(m(n)(`credentials.list.toolbar_actions.${e.config.plugin}.new`)), 1)
1904
+ default: o(() => [
1905
+ R(x(m(n)(`credentials.list.toolbar_actions.${e.config.plugin}.new`)), 1)
1906
1906
  ]),
1907
1907
  _: 1
1908
1908
  }, 8, ["to"]), [
1909
- [Ie, B.value]
1909
+ [Ne, B.value]
1910
1910
  ])
1911
1911
  ]),
1912
1912
  _: 1
@@ -1915,72 +1915,72 @@ const Jr = {
1915
1915
  _: 1
1916
1916
  }, 8, ["to"]))
1917
1917
  ]),
1918
- group: s(({ rowValue: h }) => [
1918
+ group: o(({ rowValue: h }) => [
1919
1919
  ee("b", null, x(h ?? "-"), 1)
1920
1920
  ]),
1921
- name: s(({ rowValue: h }) => [
1921
+ name: o(({ rowValue: h }) => [
1922
1922
  ee("b", null, x(h ?? "-"), 1)
1923
1923
  ]),
1924
- username: s(({ rowValue: h }) => [
1924
+ username: o(({ rowValue: h }) => [
1925
1925
  ee("span", null, x(h ?? "-"), 1)
1926
1926
  ]),
1927
- password: s(({ row: h, rowValue: S }) => [
1927
+ password: o(({ row: h, rowValue: S }) => [
1928
1928
  g(F, {
1929
1929
  format: "redacted",
1930
- notify: (D) => T(D, h, "password"),
1930
+ notify: (M) => T(M, h, "password"),
1931
1931
  uuid: S
1932
1932
  }, null, 8, ["notify", "uuid"])
1933
1933
  ]),
1934
- key: s(({ row: h, rowValue: S }) => [
1934
+ key: o(({ row: h, rowValue: S }) => [
1935
1935
  g(F, {
1936
1936
  format: "redacted",
1937
- notify: (D) => T(D, h, "key"),
1937
+ notify: (M) => T(M, h, "key"),
1938
1938
  uuid: S
1939
1939
  }, null, 8, ["notify", "uuid"])
1940
1940
  ]),
1941
- client_secret: s(({ row: h, rowValue: S }) => [
1941
+ client_secret: o(({ row: h, rowValue: S }) => [
1942
1942
  g(F, {
1943
1943
  format: "redacted",
1944
- notify: (D) => T(D, h, "client_secret"),
1944
+ notify: (M) => T(M, h, "client_secret"),
1945
1945
  uuid: S
1946
1946
  }, null, 8, ["notify", "uuid"])
1947
1947
  ]),
1948
- secret: s(({ row: h, rowValue: S }) => [
1948
+ secret: o(({ row: h, rowValue: S }) => [
1949
1949
  g(F, {
1950
1950
  format: "redacted",
1951
- notify: (D) => T(D, h, "secret"),
1951
+ notify: (M) => T(M, h, "secret"),
1952
1952
  uuid: S
1953
1953
  }, null, 8, ["notify", "uuid"])
1954
1954
  ]),
1955
- created_at: s(({ rowValue: h }) => [
1956
- U(x(m(l)(h)), 1)
1955
+ created_at: o(({ rowValue: h }) => [
1956
+ R(x(m(l)(h)), 1)
1957
1957
  ]),
1958
- tags: s(({ rowValue: h }) => [
1959
- (h == null ? void 0 : h.length) > 0 ? (j(), J(Re, { key: 0 }, {
1960
- default: s(() => [
1958
+ tags: o(({ rowValue: h }) => [
1959
+ (h == null ? void 0 : h.length) > 0 ? (j(), J(Ue, { key: 0 }, {
1960
+ default: o(() => [
1961
1961
  (j(!0), G(He, null, xe(h, (S) => (j(), J(le, {
1962
1962
  key: S,
1963
1963
  onClick: k[0] || (k[0] = Ye(() => {
1964
1964
  }, ["stop"]))
1965
1965
  }, {
1966
- default: s(() => [
1967
- U(x(S), 1)
1966
+ default: o(() => [
1967
+ R(x(S), 1)
1968
1968
  ]),
1969
1969
  _: 2
1970
1970
  }, 1024))), 128))
1971
1971
  ]),
1972
1972
  _: 2
1973
- }, 1024)) : (j(), G("span", oa, "-"))
1973
+ }, 1024)) : (j(), G("span", sa, "-"))
1974
1974
  ]),
1975
- actions: s(({ row: h }) => [
1975
+ actions: o(({ row: h }) => [
1976
1976
  g(te, null, {
1977
- default: s(({ copyToClipboard: S }) => [
1977
+ default: o(({ copyToClipboard: S }) => [
1978
1978
  g(H, {
1979
1979
  "data-testid": "action-entity-copy-id",
1980
- onClick: (D) => f(h, "id", S)
1980
+ onClick: (M) => f(h, "id", S)
1981
1981
  }, {
1982
- default: s(() => [
1983
- U(x(m(n)("credentials.actions.copy_id")), 1)
1982
+ default: o(() => [
1983
+ R(x(m(n)("credentials.actions.copy_id")), 1)
1984
1984
  ]),
1985
1985
  _: 2
1986
1986
  }, 1032, ["onClick"])
@@ -1988,13 +1988,13 @@ const Jr = {
1988
1988
  _: 2
1989
1989
  }, 1024),
1990
1990
  e.config.plugin === "basic-auth" ? (j(), J(te, { key: 0 }, {
1991
- default: s(({ copyToClipboard: S }) => [
1991
+ default: o(({ copyToClipboard: S }) => [
1992
1992
  g(H, {
1993
1993
  "data-testid": "action-entity-copy-credential",
1994
- onClick: (D) => f(h, "password", S)
1994
+ onClick: (M) => f(h, "password", S)
1995
1995
  }, {
1996
- default: s(() => [
1997
- U(x(m(n)("credentials.actions.copy_credential")), 1)
1996
+ default: o(() => [
1997
+ R(x(m(n)("credentials.actions.copy_credential")), 1)
1998
1998
  ]),
1999
1999
  _: 2
2000
2000
  }, 1032, ["onClick"])
@@ -2002,13 +2002,13 @@ const Jr = {
2002
2002
  _: 2
2003
2003
  }, 1024)) : V("", !0),
2004
2004
  ["key-auth", "key-auth-enc", "jwt"].includes(e.config.plugin) ? (j(), J(te, { key: 1 }, {
2005
- default: s(({ copyToClipboard: S }) => [
2005
+ default: o(({ copyToClipboard: S }) => [
2006
2006
  g(H, {
2007
2007
  "data-testid": "action-entity-copy-key",
2008
- onClick: (D) => f(h, "key", S)
2008
+ onClick: (M) => f(h, "key", S)
2009
2009
  }, {
2010
- default: s(() => [
2011
- U(x(m(n)("credentials.actions.copy_key")), 1)
2010
+ default: o(() => [
2011
+ R(x(m(n)("credentials.actions.copy_key")), 1)
2012
2012
  ]),
2013
2013
  _: 2
2014
2014
  }, 1032, ["onClick"])
@@ -2016,13 +2016,13 @@ const Jr = {
2016
2016
  _: 2
2017
2017
  }, 1024)) : V("", !0),
2018
2018
  e.config.plugin === "oauth2" ? (j(), J(te, { key: 2 }, {
2019
- default: s(({ copyToClipboard: S }) => [
2019
+ default: o(({ copyToClipboard: S }) => [
2020
2020
  g(H, {
2021
2021
  "data-testid": "action-entity-copy-secret",
2022
- onClick: (D) => f(h, "client_secret", S)
2022
+ onClick: (M) => f(h, "client_secret", S)
2023
2023
  }, {
2024
- default: s(() => [
2025
- U(x(m(n)("credentials.actions.copy_secret")), 1)
2024
+ default: o(() => [
2025
+ R(x(m(n)("credentials.actions.copy_secret")), 1)
2026
2026
  ]),
2027
2027
  _: 2
2028
2028
  }, 1032, ["onClick"])
@@ -2030,13 +2030,13 @@ const Jr = {
2030
2030
  _: 2
2031
2031
  }, 1024)) : V("", !0),
2032
2032
  e.config.plugin === "hmac-auth" ? (j(), J(te, { key: 3 }, {
2033
- default: s(({ copyToClipboard: S }) => [
2033
+ default: o(({ copyToClipboard: S }) => [
2034
2034
  g(H, {
2035
2035
  "data-testid": "action-entity-copy-secret",
2036
- onClick: (D) => f(h, "secret", S)
2036
+ onClick: (M) => f(h, "secret", S)
2037
2037
  }, {
2038
- default: s(() => [
2039
- U(x(m(n)("credentials.actions.copy_secret")), 1)
2038
+ default: o(() => [
2039
+ R(x(m(n)("credentials.actions.copy_secret")), 1)
2040
2040
  ]),
2041
2041
  _: 2
2042
2042
  }, 1032, ["onClick"])
@@ -2044,13 +2044,13 @@ const Jr = {
2044
2044
  _: 2
2045
2045
  }, 1024)) : V("", !0),
2046
2046
  g(te, null, {
2047
- default: s(({ copyToClipboard: S }) => [
2047
+ default: o(({ copyToClipboard: S }) => [
2048
2048
  g(H, {
2049
2049
  "data-testid": "action-entity-copy-json",
2050
- onClick: (D) => f(h, void 0, S)
2050
+ onClick: (M) => f(h, void 0, S)
2051
2051
  }, {
2052
- default: s(() => [
2053
- U(x(m(n)("credentials.actions.copy_json")), 1)
2052
+ default: o(() => [
2053
+ R(x(m(n)("credentials.actions.copy_json")), 1)
2054
2054
  ]),
2055
2055
  _: 2
2056
2056
  }, 1032, ["onClick"])
@@ -2060,7 +2060,7 @@ const Jr = {
2060
2060
  g(m(ce), {
2061
2061
  "auth-function": () => e.canEdit(h)
2062
2062
  }, {
2063
- default: s(() => [
2063
+ default: o(() => [
2064
2064
  g(H, {
2065
2065
  "data-testid": "action-entity-edit",
2066
2066
  "has-divider": "",
@@ -2072,15 +2072,15 @@ const Jr = {
2072
2072
  g(m(ce), {
2073
2073
  "auth-function": () => e.canDelete(h)
2074
2074
  }, {
2075
- default: s(() => [
2075
+ default: o(() => [
2076
2076
  g(H, {
2077
2077
  danger: "",
2078
2078
  "data-testid": "action-entity-delete",
2079
2079
  "has-divider": "",
2080
2080
  onClick: (S) => z(h)
2081
2081
  }, {
2082
- default: s(() => [
2083
- U(x(m(n)("credentials.actions.delete")), 1)
2082
+ default: o(() => [
2083
+ R(x(m(n)("credentials.actions.delete")), 1)
2084
2084
  ]),
2085
2085
  _: 2
2086
2086
  }, 1032, ["onClick"])
@@ -2093,11 +2093,11 @@ const Jr = {
2093
2093
  g(m(ra), {
2094
2094
  "action-pending": C.value,
2095
2095
  description: m(n)("credentials.delete.description"),
2096
- "entity-type": K.value,
2096
+ "entity-type": $.value,
2097
2097
  error: q.value,
2098
2098
  title: m(n)(`credentials.delete.${e.config.plugin}.title`),
2099
2099
  visible: u.value,
2100
- onCancel: I,
2100
+ onCancel: N,
2101
2101
  onProceed: O
2102
2102
  }, null, 8, ["action-pending", "description", "entity-type", "error", "title", "visible"])
2103
2103
  ]);
@@ -2108,7 +2108,7 @@ const Jr = {
2108
2108
  for (const [a, n] of r)
2109
2109
  t[a] = n;
2110
2110
  return t;
2111
- }, _a = /* @__PURE__ */ ca(sa, [["__scopeId", "data-v-96ce1658"]]);
2111
+ }, _a = /* @__PURE__ */ ca(oa, [["__scopeId", "data-v-96ce1658"]]);
2112
2112
  export {
2113
2113
  _a as ConsumerCredentialList
2114
2114
  };