@kong-ui-public/entities-consumer-credentials 2.0.4 → 2.0.5

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,9 +1,9 @@
1
- import { defineComponent as ae, ref as b, computed as I, watch as ne, renderSlot as z, createCommentVNode as H, unref as v, resolveComponent as U, openBlock as j, createBlock as W, withCtx as o, createVNode as m, createSlots as Ce, withDirectives as Ue, createElementVNode as Z, createElementBlock as J, vShow as Le, renderList as _e, createTextVNode as R, toDisplayString as N, onMounted as Re, onUnmounted as Be, onBeforeMount as qe, Fragment as De, withModifiers as Me } from "vue";
1
+ import { defineComponent as ae, ref as b, computed as N, watch as ne, renderSlot as z, createCommentVNode as J, unref as m, resolveComponent as M, openBlock as j, createBlock as W, withCtx as o, createVNode as g, createSlots as Ce, withDirectives as Ue, createElementVNode as Z, createElementBlock as Y, vShow as Me, renderList as _e, createTextVNode as R, toDisplayString as I, onMounted as Le, onUnmounted as Re, onBeforeMount as De, Fragment as qe, withModifiers as Be } from "vue";
2
2
  import { createI18n as Se, i18nTComponent as Te } from "@kong-ui-public/i18n";
3
- import We from "axios";
3
+ import He from "axios";
4
4
  import "@kong/kongponents";
5
5
  import "vue-router";
6
- const ze = {
6
+ const We = {
7
7
  title: "Consumer Credentials",
8
8
  list: {
9
9
  toolbar_actions: {
@@ -144,29 +144,29 @@ const ze = {
144
144
  success: "Copied {val} to clipboard",
145
145
  success_brief: "Successfully copied to clipboard"
146
146
  }
147
- }, He = {
148
- credentials: ze
147
+ }, ze = {
148
+ credentials: We
149
149
  };
150
150
  function Je() {
151
- const e = Se("en-us", He);
151
+ const e = Se("en-us", ze);
152
152
  return {
153
153
  i18n: e,
154
154
  i18nT: Te(e)
155
155
  // Translation component <i18n-t>
156
156
  };
157
157
  }
158
- const Ve = {
158
+ const Ye = {
159
159
  useI18n: Je
160
- }, Ye = {
160
+ }, Ve = {
161
161
  list: {
162
162
  konnect: "/api/runtime_groups/{controlPlaneId}/consumers/{consumerId}/{plugin}",
163
163
  kongManager: "/{workspace}/consumers/{consumerId}/{plugin}"
164
164
  }
165
165
  };
166
- var Ae = /* @__PURE__ */ ((e) => (e.GatewayService = "service", e.Route = "route", e.Consumer = "consumer", e.ConsumerGroup = "consumer group", e.Plugin = "plugin", e.Upstream = "upstream", e.Certificate = "certificate", e.CACertificate = "ca certificate", e.SNI = "SNI", e.Key = "key", e.KeySet = "key set", e.Vault = "vault", e.Application = "application", e.Developer = "developer", e.acls = "ACL Credential", e["basic-auth"] = "Basic Auth Credential", e["key-auth"] = "Key Auth Credential", e["key-auth-enc"] = "Key Auth Encrypted Credential", e.oauth2 = "OAuth 2.0 Credential", e["hmac-auth"] = "HMAC Credential", e.jwt = "JWT Credential", e.Target = "target", e.Policy = "policy", e))(Ae || {}), Y = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(Y || {});
167
- function se(e = {}) {
166
+ var Ae = /* @__PURE__ */ ((e) => (e.GatewayService = "service", e.Route = "route", e.Consumer = "consumer", e.ConsumerGroup = "consumer group", e.Plugin = "plugin", e.Upstream = "upstream", e.Certificate = "certificate", e.CACertificate = "ca certificate", e.SNI = "SNI", e.Key = "key", e.KeySet = "key set", e.Vault = "vault", e.Application = "application", e.Developer = "developer", e.acls = "ACL Credential", e["basic-auth"] = "Basic Auth Credential", e["key-auth"] = "Key Auth Credential", e["key-auth-enc"] = "Key Auth Encrypted Credential", e.oauth2 = "OAuth 2.0 Credential", e["hmac-auth"] = "HMAC Credential", e.jwt = "JWT Credential", e.Target = "target", e.Policy = "policy", e))(Ae || {}), V = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(V || {});
167
+ function oe(e = {}) {
168
168
  return {
169
- axiosInstance: We.create({
169
+ axiosInstance: He.create({
170
170
  withCredentials: !0,
171
171
  timeout: 3e4,
172
172
  ...e
@@ -297,7 +297,7 @@ const Qe = {
297
297
  }, lt = {
298
298
  unexpected: "An unexpected error has occurred",
299
299
  dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.'
300
- }, ot = {
300
+ }, st = {
301
301
  enable: {
302
302
  title: "Enable {entityType}",
303
303
  message: "Are you sure you want to enable the {entityType} {entityName}?",
@@ -308,7 +308,7 @@ const Qe = {
308
308
  message: "Are you sure you want to disable the {entityType} {entityName}?",
309
309
  confirmText: "Yes, disable"
310
310
  }
311
- }, st = {
311
+ }, ot = {
312
312
  global: Qe,
313
313
  deleteModal: et,
314
314
  baseForm: tt,
@@ -317,10 +317,10 @@ const Qe = {
317
317
  filter: nt,
318
318
  debouncedFilter: it,
319
319
  errors: lt,
320
- toggleModal: ot
320
+ toggleModal: st
321
321
  };
322
322
  function ce() {
323
- const e = Se("en-us", st);
323
+ const e = Se("en-us", ot);
324
324
  return {
325
325
  i18n: e,
326
326
  i18nT: Te(e)
@@ -333,8 +333,8 @@ function Ne() {
333
333
  return !1;
334
334
  const n = /* @__PURE__ */ new Set([...t, ...a]);
335
335
  for (const i of n) {
336
- const l = t.filter((d) => d === i).length, c = a.filter((d) => d === i).length;
337
- if (l !== c)
336
+ const l = t.filter((p) => p === i).length, u = a.filter((p) => p === i).length;
337
+ if (l !== u)
338
338
  return !1;
339
339
  }
340
340
  return !0;
@@ -376,81 +376,81 @@ function ct(e, r, t, a = {
376
376
  searchKeys: ["id"]
377
377
  }) {
378
378
  t || (t = "100");
379
- const { axiosInstance: n } = se({
379
+ const { axiosInstance: n } = oe({
380
380
  headers: e.requestHeaders
381
- }), { i18n: { t: i } } = ce(), { debounce: l } = Ge(), c = l(async (s) => {
382
- await p(s);
383
- }, 200), d = b(!1), u = b(""), k = b(""), h = b([]), T = b([]), w = b(void 0), P = v(r);
384
- let y = `${e.apiBaseUrl}${P}`;
385
- 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}` : ""));
386
- const { isValidUuid: A } = Ne(), F = async () => {
381
+ }), { i18n: { t: i } } = ce(), { debounce: l } = Ge(), u = l(async (s) => {
382
+ await B(s);
383
+ }, 200), p = b(!1), d = b(""), k = b(""), y = b([]), T = b([]), v = b(void 0), P = m(r);
384
+ let f = `${e.apiBaseUrl}${P}`;
385
+ 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}` : ""));
386
+ const { isValidUuid: A } = Ne(), U = async () => {
387
387
  try {
388
- d.value = !0;
389
- const { data: s } = await n.get(`${y}?size=${t}`);
390
- s != null && s.next || (w.value = a.fetchedItemsKey in s ? s[a.fetchedItemsKey] : []), T.value = a.fetchedItemsKey in s ? s[a.fetchedItemsKey] : [], h.value = T.value;
388
+ p.value = !0;
389
+ const { data: s } = await n.get(`${f}?size=${t}`);
390
+ s != null && s.next || (v.value = a.fetchedItemsKey in s ? s[a.fetchedItemsKey] : []), T.value = a.fetchedItemsKey in s ? s[a.fetchedItemsKey] : [], y.value = T.value;
391
391
  } catch {
392
- h.value = [], u.value = i("debouncedFilter.errors.fetch");
392
+ y.value = [], d.value = i("debouncedFilter.errors.fetch");
393
393
  } finally {
394
- d.value = !1;
394
+ p.value = !1;
395
395
  }
396
- }, X = b(""), p = async (s) => {
397
- var B, V, Q;
396
+ }, X = b(""), B = async (s) => {
397
+ var w, D, Q;
398
398
  if (X.value !== s)
399
- if (X.value = s || "", w.value === void 0)
399
+ if (X.value = s || "", v.value === void 0)
400
400
  try {
401
- if (d.value = !0, u.value = "", k.value = "", e.app === "konnect") {
402
- let x = y + "";
401
+ if (p.value = !0, d.value = "", k.value = "", e.app === "konnect") {
402
+ let x = f + "";
403
403
  s && (x += `/${s}`);
404
- const { data: E } = await n.get(`${x}?size=${t}`);
405
- a.fetchedItemsKey in E ? h.value = E[a.fetchedItemsKey] : E != null && E.id ? h.value = [E] : h.value = [];
404
+ const { data: O } = await n.get(`${x}?size=${t}`);
405
+ a.fetchedItemsKey in O ? y.value = O[a.fetchedItemsKey] : O != null && O.id ? y.value = [O] : y.value = [];
406
406
  } else if (s) {
407
407
  const x = [];
408
408
  A(s) && a.searchKeys.includes("id") ? x.push((async () => {
409
- const { data: _ } = await n.get(`${y}/${s}`);
410
- return [_[a.fetchedItemsKey] ?? _];
409
+ const { data: C } = await n.get(`${f}/${s}`);
410
+ return [C[a.fetchedItemsKey] ?? C];
411
411
  })()) : x.push(
412
- ...a.searchKeys.filter((_) => _ !== "id").map(async (_) => {
413
- const { data: O } = await n.get(`${y}?${_}=${s}`);
414
- return O[a.fetchedItemsKey];
412
+ ...a.searchKeys.filter((C) => C !== "id").map(async (C) => {
413
+ const { data: E } = await n.get(`${f}?${C}=${s}`);
414
+ return E[a.fetchedItemsKey];
415
415
  })
416
416
  );
417
- const E = await Promise.all(x), $ = /* @__PURE__ */ new Set();
418
- h.value = [], (B = E == null ? void 0 : E.forEach) == null || B.call(E, (_) => {
419
- var O;
420
- (O = _ == null ? void 0 : _.forEach) == null || O.call(_, (f) => {
421
- $.has(f.id) || ($.add(f.id), h.value.push(f));
417
+ const O = await Promise.all(x), q = /* @__PURE__ */ new Set();
418
+ y.value = [], (w = O == null ? void 0 : O.forEach) == null || w.call(O, (C) => {
419
+ var E;
420
+ (E = C == null ? void 0 : C.forEach) == null || E.call(C, (c) => {
421
+ q.has(c.id) || (q.add(c.id), y.value.push(c));
422
422
  });
423
423
  });
424
424
  } else
425
- h.value = T.value;
425
+ y.value = T.value;
426
426
  } catch (x) {
427
- ((V = x == null ? void 0 : x.response) == null ? void 0 : V.status) === 404 ? k.value = i("debouncedFilter.errors.invalid") : (h.value = [], u.value = i("debouncedFilter.errors.fetch"));
427
+ ((D = x == null ? void 0 : x.response) == null ? void 0 : D.status) === 404 ? k.value = i("debouncedFilter.errors.invalid") : (y.value = [], d.value = i("debouncedFilter.errors.fetch"));
428
428
  } finally {
429
- d.value = !1;
429
+ p.value = !1;
430
430
  }
431
431
  else
432
- d.value = !0, k.value = "", s ? (h.value = (Q = w.value) == null ? void 0 : Q.filter((x) => {
433
- var E;
434
- let $ = !1;
435
- for (const _ of a.searchKeys) {
436
- const O = typeof x[_] == "string" ? (E = x[_]) == null ? void 0 : E.toLowerCase() : x[_];
437
- O != null && O.includes(s.toLowerCase()) && ($ = !0);
432
+ p.value = !0, k.value = "", s ? (y.value = (Q = v.value) == null ? void 0 : Q.filter((x) => {
433
+ var O;
434
+ let q = !1;
435
+ for (const C of a.searchKeys) {
436
+ const E = typeof x[C] == "string" ? (O = x[C]) == null ? void 0 : O.toLowerCase() : x[C];
437
+ E != null && E.includes(s.toLowerCase()) && (q = !0);
438
438
  }
439
- return $;
440
- }), (!h.value || !h.value.length) && (k.value = i("debouncedFilter.errors.invalid"))) : h.value = w.value, d.value = !1;
439
+ return q;
440
+ }), (!y.value || !y.value.length) && (k.value = i("debouncedFilter.errors.invalid"))) : y.value = v.value, p.value = !1;
441
441
  };
442
442
  return {
443
- loading: d,
444
- error: u,
443
+ loading: p,
444
+ error: d,
445
445
  validationError: k,
446
- results: h,
447
- allRecords: w,
448
- loadItems: F,
449
- debouncedQueryChange: c
446
+ results: y,
447
+ allRecords: v,
448
+ loadItems: U,
449
+ debouncedQueryChange: u
450
450
  };
451
451
  }
452
452
  function ut(e, r) {
453
- const t = v(r), a = I(
453
+ const t = m(r), a = N(
454
454
  () => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${t}`) : new URL(t)
455
455
  );
456
456
  return a.value.search = "", (n) => `${a.value.href}/${n}`;
@@ -495,62 +495,62 @@ function pt(e) {
495
495
  }
496
496
  }
497
497
  function Ie(e, r) {
498
- const t = b(v(e)), a = b(v(r)), n = I(
498
+ const t = b(m(e)), a = b(m(r)), n = N(
499
499
  () => !!(t.value.app === "konnect" || t.value.isExactMatch)
500
- ), i = I(
500
+ ), i = N(
501
501
  () => a.value.startsWith("/") ? new URL(`${window.location.origin}${a.value}`) : new URL(a.value)
502
502
  );
503
503
  return (l) => {
504
- const { page: c, pageSize: d, offset: u, sortColumnKey: k, sortColumnOrder: h, query: T } = l;
504
+ const { page: u, pageSize: p, offset: d, sortColumnKey: k, sortColumnOrder: y, query: T } = l;
505
505
  try {
506
- let w = new URL(i.value.href);
507
- return n.value && T ? (w.search = "", w = new URL(`${w.href}/${T}/`)) : (n.value || new URLSearchParams(T).forEach((P, y) => {
508
- w.searchParams.append(y, P);
509
- }), k && w.searchParams.append("sort_by", k), h === "desc" && w.searchParams.append("sort_desc", "1"), w.searchParams.append("size", String(d))), u && c !== 1 && w.searchParams.append("offset", String(u)), w.href;
510
- } catch (w) {
511
- return console.error("RouteList(fetcher)", w), a.value;
506
+ let v = new URL(i.value.href);
507
+ return n.value && T ? (v.search = "", v = new URL(`${v.href}/${T}/`)) : (n.value || new URLSearchParams(T).forEach((P, f) => {
508
+ v.searchParams.append(f, P);
509
+ }), k && v.searchParams.append("sort_by", k), y === "desc" && v.searchParams.append("sort_desc", "1"), v.searchParams.append("size", String(p))), d && u !== 1 && v.searchParams.append("offset", String(d)), v.href;
510
+ } catch (v) {
511
+ return console.error("RouteList(fetcher)", v), a.value;
512
512
  }
513
513
  };
514
514
  }
515
515
  function ft(e, r, t = "data") {
516
- const a = v(r), { axiosInstance: n } = se({
516
+ const a = m(r), { axiosInstance: n } = oe({
517
517
  headers: e.requestHeaders
518
518
  }), i = Ie(e, a), l = b({
519
- status: Y.Idle
519
+ status: V.Idle
520
520
  });
521
- return { fetcher: async (c) => {
521
+ return { fetcher: async (u) => {
522
522
  try {
523
- l.value = { status: Y.Loading };
524
- const d = i(c), { data: u } = await n.get(d), k = t && t.replace(/[^\w-_]/gi, "");
525
- let h;
526
- u[k] && Array.isArray(u[k]) ? h = u[k] : h = Object.keys(u).length ? [u] : [];
523
+ l.value = { status: V.Loading };
524
+ const p = i(u), { data: d } = await n.get(p), k = t && t.replace(/[^\w-_]/gi, "");
525
+ let y;
526
+ d[k] && Array.isArray(d[k]) ? y = d[k] : y = Object.keys(d).length ? [d] : [];
527
527
  const T = {
528
- data: h,
529
- total: h.length,
530
- ...u.offset ? {
528
+ data: y,
529
+ total: y.length,
530
+ ...d.offset ? {
531
531
  pagination: {
532
- offset: u.offset
532
+ offset: d.offset
533
533
  }
534
534
  } : null
535
535
  };
536
536
  return l.value = {
537
- status: Y.Idle,
537
+ status: V.Idle,
538
538
  response: T
539
539
  }, T;
540
- } catch (d) {
541
- const u = {
540
+ } catch (p) {
541
+ const d = {
542
542
  data: [],
543
543
  total: 0
544
544
  };
545
- return c.query && d.response.status === 404 ? (l.value = {
546
- status: Y.NoResults,
547
- response: u,
548
- error: d
549
- }, u) : (l.value = {
550
- status: Y.Error,
551
- response: u,
552
- error: d
553
- }, u);
545
+ return u.query && p.response.status === 404 ? (l.value = {
546
+ status: V.NoResults,
547
+ response: d,
548
+ error: p
549
+ }, d) : (l.value = {
550
+ status: V.Error,
551
+ response: d,
552
+ error: p
553
+ }, d);
554
554
  }
555
555
  }, fetcherState: l };
556
556
  }
@@ -613,19 +613,19 @@ function wt(e) {
613
613
  const i = t[a];
614
614
  if (!i)
615
615
  return !1;
616
- const [l, c] = i;
617
- return !(l && ve(n, l, "<") || c && ve(n, c, ">"));
616
+ const [l, u] = i;
617
+ return !(l && ve(n, l, "<") || u && ve(n, u, ">"));
618
618
  }
619
619
  function kt(e) {
620
620
  const r = b(0), t = b(0), a = b(!1);
621
621
  return ne(e, (n) => {
622
622
  n && !a.value && (r.value = n.offsetWidth, t.value = n.scrollWidth, a.value = !0);
623
623
  }), {
624
- isTruncated: I(() => r.value < t.value)
624
+ isTruncated: N(() => r.value < t.value)
625
625
  };
626
626
  }
627
627
  const ue = {
628
- useAxios: se,
628
+ useAxios: oe,
629
629
  useDebouncedFilter: ct,
630
630
  useDeleteUrlBuilder: ut,
631
631
  useErrors: dt,
@@ -702,12 +702,12 @@ var G = re, $t = [
702
702
  "representName",
703
703
  "defaultStyle",
704
704
  "styleAliases"
705
- ], Pt = [
705
+ ], Ft = [
706
706
  "scalar",
707
707
  "sequence",
708
708
  "mapping"
709
709
  ];
710
- function Ft(e) {
710
+ function Pt(e) {
711
711
  var r = {};
712
712
  return e !== null && Object.keys(e).forEach(function(t) {
713
713
  e[t].forEach(function(a) {
@@ -723,7 +723,7 @@ function Ut(e, r) {
723
723
  return !0;
724
724
  }, this.construct = r.construct || function(t) {
725
725
  return t;
726
- }, 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 = Ft(r.styleAliases || null), Pt.indexOf(this.kind) === -1)
726
+ }, 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 = Pt(r.styleAliases || null), Ft.indexOf(this.kind) === -1)
727
727
  throw new G('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
728
728
  }
729
729
  var K = Ut;
@@ -736,7 +736,7 @@ function we(e, r) {
736
736
  }), t[n] = a;
737
737
  }), t;
738
738
  }
739
- function Lt() {
739
+ function Mt() {
740
740
  var e = {
741
741
  scalar: {},
742
742
  sequence: {},
@@ -756,10 +756,10 @@ function Lt() {
756
756
  arguments[r].forEach(a);
757
757
  return e;
758
758
  }
759
- function oe(e) {
759
+ function se(e) {
760
760
  return this.extend(e);
761
761
  }
762
- oe.prototype.extend = function(e) {
762
+ se.prototype.extend = function(e) {
763
763
  var r = [], t = [];
764
764
  if (e instanceof K)
765
765
  t.push(e);
@@ -780,48 +780,48 @@ oe.prototype.extend = function(e) {
780
780
  if (!(n instanceof K))
781
781
  throw new G("Specified list of YAML types (or a single Type object) contains a non-Type object.");
782
782
  });
783
- var a = Object.create(oe.prototype);
784
- return a.implicit = (this.implicit || []).concat(r), a.explicit = (this.explicit || []).concat(t), a.compiledImplicit = we(a, "implicit"), a.compiledExplicit = we(a, "explicit"), a.compiledTypeMap = Lt(a.compiledImplicit, a.compiledExplicit), a;
783
+ var a = Object.create(se.prototype);
784
+ return a.implicit = (this.implicit || []).concat(r), a.explicit = (this.explicit || []).concat(t), a.compiledImplicit = we(a, "implicit"), a.compiledExplicit = we(a, "explicit"), a.compiledTypeMap = Mt(a.compiledImplicit, a.compiledExplicit), a;
785
785
  };
786
- var Rt = oe, Bt = new K("tag:yaml.org,2002:str", {
786
+ var Lt = se, Rt = new K("tag:yaml.org,2002:str", {
787
787
  kind: "scalar",
788
788
  construct: function(e) {
789
789
  return e !== null ? e : "";
790
790
  }
791
- }), qt = new K("tag:yaml.org,2002:seq", {
791
+ }), Dt = new K("tag:yaml.org,2002:seq", {
792
792
  kind: "sequence",
793
793
  construct: function(e) {
794
794
  return e !== null ? e : [];
795
795
  }
796
- }), Dt = new K("tag:yaml.org,2002:map", {
796
+ }), qt = new K("tag:yaml.org,2002:map", {
797
797
  kind: "mapping",
798
798
  construct: function(e) {
799
799
  return e !== null ? e : {};
800
800
  }
801
- }), Mt = new Rt({
801
+ }), Bt = new Lt({
802
802
  explicit: [
803
- Bt,
804
- qt,
805
- Dt
803
+ Rt,
804
+ Dt,
805
+ qt
806
806
  ]
807
807
  });
808
- function Wt(e) {
808
+ function Ht(e) {
809
809
  if (e === null)
810
810
  return !0;
811
811
  var r = e.length;
812
812
  return r === 1 && e === "~" || r === 4 && (e === "null" || e === "Null" || e === "NULL");
813
813
  }
814
- function zt() {
814
+ function Wt() {
815
815
  return null;
816
816
  }
817
- function Ht(e) {
817
+ function zt(e) {
818
818
  return e === null;
819
819
  }
820
820
  var Jt = new K("tag:yaml.org,2002:null", {
821
821
  kind: "scalar",
822
- resolve: Wt,
823
- construct: zt,
824
- predicate: Ht,
822
+ resolve: Ht,
823
+ construct: Wt,
824
+ predicate: zt,
825
825
  represent: {
826
826
  canonical: function() {
827
827
  return "~";
@@ -841,13 +841,13 @@ var Jt = new K("tag:yaml.org,2002:null", {
841
841
  },
842
842
  defaultStyle: "lowercase"
843
843
  });
844
- function Vt(e) {
844
+ function Yt(e) {
845
845
  if (e === null)
846
846
  return !1;
847
847
  var r = e.length;
848
848
  return r === 4 && (e === "true" || e === "True" || e === "TRUE") || r === 5 && (e === "false" || e === "False" || e === "FALSE");
849
849
  }
850
- function Yt(e) {
850
+ function Vt(e) {
851
851
  return e === "true" || e === "True" || e === "TRUE";
852
852
  }
853
853
  function Gt(e) {
@@ -855,8 +855,8 @@ function Gt(e) {
855
855
  }
856
856
  var Zt = new K("tag:yaml.org,2002:bool", {
857
857
  kind: "scalar",
858
- resolve: Vt,
859
- construct: Yt,
858
+ resolve: Yt,
859
+ construct: Vt,
860
860
  predicate: Gt,
861
861
  represent: {
862
862
  lowercase: function(e) {
@@ -980,11 +980,11 @@ function lr(e) {
980
980
  // Probably should update regexp & check speed
981
981
  e[e.length - 1] === "_");
982
982
  }
983
- function or(e) {
983
+ function sr(e) {
984
984
  var r, t;
985
985
  return r = e.replace(/_/g, "").toLowerCase(), t = r[0] === "-" ? -1 : 1, "+-".indexOf(r[0]) >= 0 && (r = r.slice(1)), r === ".inf" ? t === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : r === ".nan" ? NaN : t * parseFloat(r, 10);
986
986
  }
987
- var sr = /^[-+]?[0-9]+e/;
987
+ var or = /^[-+]?[0-9]+e/;
988
988
  function cr(e, r) {
989
989
  var t;
990
990
  if (isNaN(e))
@@ -1016,7 +1016,7 @@ function cr(e, r) {
1016
1016
  }
1017
1017
  else if (pe.isNegativeZero(e))
1018
1018
  return "-0.0";
1019
- return t = e.toString(10), sr.test(t) ? t.replace("e", ".e") : t;
1019
+ return t = e.toString(10), or.test(t) ? t.replace("e", ".e") : t;
1020
1020
  }
1021
1021
  function ur(e) {
1022
1022
  return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || pe.isNegativeZero(e));
@@ -1024,11 +1024,11 @@ function ur(e) {
1024
1024
  var dr = new K("tag:yaml.org,2002:float", {
1025
1025
  kind: "scalar",
1026
1026
  resolve: lr,
1027
- construct: or,
1027
+ construct: sr,
1028
1028
  predicate: ur,
1029
1029
  represent: cr,
1030
1030
  defaultStyle: "lowercase"
1031
- }), pr = Mt.extend({
1031
+ }), pr = Bt.extend({
1032
1032
  implicit: [
1033
1033
  Jt,
1034
1034
  Zt,
@@ -1044,17 +1044,17 @@ function yr(e) {
1044
1044
  return e === null ? !1 : Ke.exec(e) !== null || $e.exec(e) !== null;
1045
1045
  }
1046
1046
  function hr(e) {
1047
- var r, t, a, n, i, l, c, d = 0, u = null, k, h, T;
1047
+ var r, t, a, n, i, l, u, p = 0, d = null, k, y, T;
1048
1048
  if (r = Ke.exec(e), r === null && (r = $e.exec(e)), r === null)
1049
1049
  throw new Error("Date resolve error");
1050
1050
  if (t = +r[1], a = +r[2] - 1, n = +r[3], !r[4])
1051
1051
  return new Date(Date.UTC(t, a, n));
1052
- if (i = +r[4], l = +r[5], c = +r[6], r[7]) {
1053
- for (d = r[7].slice(0, 3); d.length < 3; )
1054
- d += "0";
1055
- d = +d;
1052
+ if (i = +r[4], l = +r[5], u = +r[6], r[7]) {
1053
+ for (p = r[7].slice(0, 3); p.length < 3; )
1054
+ p += "0";
1055
+ p = +p;
1056
1056
  }
1057
- return r[9] && (k = +r[10], h = +(r[11] || 0), u = (k * 60 + h) * 6e4, r[9] === "-" && (u = -u)), T = new Date(Date.UTC(t, a, n, i, l, c, d)), u && T.setTime(T.getTime() - u), T;
1057
+ return r[9] && (k = +r[10], y = +(r[11] || 0), d = (k * 60 + y) * 6e4, r[9] === "-" && (d = -d)), T = new Date(Date.UTC(t, a, n, i, l, u, p)), d && T.setTime(T.getTime() - d), T;
1058
1058
  }
1059
1059
  function gr(e) {
1060
1060
  return e.toISOString();
@@ -1087,10 +1087,10 @@ function wr(e) {
1087
1087
  return a % 8 === 0;
1088
1088
  }
1089
1089
  function kr(e) {
1090
- var r, t, a = e.replace(/[\r\n=]/g, ""), n = a.length, i = fe, l = 0, c = [];
1090
+ var r, t, a = e.replace(/[\r\n=]/g, ""), n = a.length, i = fe, l = 0, u = [];
1091
1091
  for (r = 0; r < n; r++)
1092
- r % 4 === 0 && r && (c.push(l >> 16 & 255), c.push(l >> 8 & 255), c.push(l & 255)), l = l << 6 | i.indexOf(a.charAt(r));
1093
- return t = n % 4 * 6, t === 0 ? (c.push(l >> 16 & 255), c.push(l >> 8 & 255), c.push(l & 255)) : t === 18 ? (c.push(l >> 10 & 255), c.push(l >> 2 & 255)) : t === 12 && c.push(l >> 4 & 255), new Uint8Array(c);
1092
+ r % 4 === 0 && r && (u.push(l >> 16 & 255), u.push(l >> 8 & 255), u.push(l & 255)), l = l << 6 | i.indexOf(a.charAt(r));
1093
+ return t = n % 4 * 6, t === 0 ? (u.push(l >> 16 & 255), u.push(l >> 8 & 255), u.push(l & 255)) : t === 18 ? (u.push(l >> 10 & 255), u.push(l >> 2 & 255)) : t === 12 && u.push(l >> 4 & 255), new Uint8Array(u);
1094
1094
  }
1095
1095
  function Cr(e) {
1096
1096
  var r = "", t = 0, a, n, i = e.length, l = fe;
@@ -1111,9 +1111,9 @@ var Sr = new K("tag:yaml.org,2002:binary", {
1111
1111
  function Nr(e) {
1112
1112
  if (e === null)
1113
1113
  return !0;
1114
- var r = [], t, a, n, i, l, c = e;
1115
- for (t = 0, a = c.length; t < a; t += 1) {
1116
- if (n = c[t], l = !1, Ar.call(n) !== "[object Object]")
1114
+ var r = [], t, a, n, i, l, u = e;
1115
+ for (t = 0, a = u.length; t < a; t += 1) {
1116
+ if (n = u[t], l = !1, Ar.call(n) !== "[object Object]")
1117
1117
  return !1;
1118
1118
  for (i in n)
1119
1119
  if (Tr.call(n, i))
@@ -1162,7 +1162,7 @@ var Kr = new K("tag:yaml.org,2002:pairs", {
1162
1162
  resolve: Or,
1163
1163
  construct: jr
1164
1164
  }), $r = Object.prototype.hasOwnProperty;
1165
- function Pr(e) {
1165
+ function Fr(e) {
1166
1166
  if (e === null)
1167
1167
  return !0;
1168
1168
  var r, t = e;
@@ -1171,13 +1171,13 @@ function Pr(e) {
1171
1171
  return !1;
1172
1172
  return !0;
1173
1173
  }
1174
- function Fr(e) {
1174
+ function Pr(e) {
1175
1175
  return e !== null ? e : {};
1176
1176
  }
1177
1177
  var Ur = new K("tag:yaml.org,2002:set", {
1178
1178
  kind: "mapping",
1179
- resolve: Pr,
1180
- construct: Fr
1179
+ resolve: Fr,
1180
+ construct: Pr
1181
1181
  });
1182
1182
  fr.extend({
1183
1183
  implicit: [
@@ -1195,13 +1195,13 @@ function ke(e) {
1195
1195
  return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
1196
1196
  ` : e === 118 ? "\v" : e === 102 ? "\f" : e === 114 ? "\r" : e === 101 ? "\x1B" : e === 32 ? " " : e === 34 ? '"' : e === 47 ? "/" : e === 92 ? "\\" : e === 78 ? "…" : e === 95 ? " " : e === 76 ? "\u2028" : e === 80 ? "\u2029" : "";
1197
1197
  }
1198
- var Lr = new Array(256), Rr = new Array(256);
1198
+ var Mr = new Array(256), Lr = new Array(256);
1199
1199
  for (var te = 0; te < 256; te++)
1200
- Lr[te] = ke(te) ? 1 : 0, Rr[te] = ke(te);
1201
- const Br = {
1200
+ Mr[te] = ke(te) ? 1 : 0, Lr[te] = ke(te);
1201
+ const Rr = {
1202
1202
  key: 0,
1203
1203
  "data-testid": "first-col"
1204
- }, qr = /* @__PURE__ */ ae({
1204
+ }, Dr = /* @__PURE__ */ ae({
1205
1205
  __name: "EntityBaseTableCell",
1206
1206
  props: {
1207
1207
  keyName: {
@@ -1214,68 +1214,68 @@ const Br = {
1214
1214
  }
1215
1215
  },
1216
1216
  setup(e) {
1217
- const r = e, t = I(() => {
1218
- var y;
1219
- return ((y = r.rowEl) == null ? void 0 : y.querySelector(`[data-testid="${r.keyName}"]`)) || null;
1220
- }), a = I(() => {
1221
- var y;
1222
- return ((y = t.value) == null ? void 0 : y.querySelector('[data-testid="first-col"]')) || null;
1223
- }), n = I(() => {
1224
- var y, A;
1225
- const F = (y = r.rowEl) == null ? void 0 : y.querySelectorAll("td");
1226
- return F ? ((A = F[0]) == null ? void 0 : A.getAttribute("data-testid")) === r.keyName : !1;
1217
+ const r = e, t = N(() => {
1218
+ var f;
1219
+ return ((f = r.rowEl) == null ? void 0 : f.querySelector(`[data-testid="${r.keyName}"]`)) || null;
1220
+ }), a = N(() => {
1221
+ var f;
1222
+ return ((f = t.value) == null ? void 0 : f.querySelector('[data-testid="first-col"]')) || null;
1223
+ }), n = N(() => {
1224
+ var f, A;
1225
+ const U = (f = r.rowEl) == null ? void 0 : f.querySelectorAll("td");
1226
+ return U ? ((A = U[0]) == null ? void 0 : A.getAttribute("data-testid")) === r.keyName : !1;
1227
1227
  });
1228
1228
  let i;
1229
1229
  const l = () => {
1230
1230
  i && (i.disconnect(), i = void 0);
1231
- }, c = () => {
1232
- var y, A, F;
1233
- u.value = ((y = a.value) == null ? void 0 : y.getBoundingClientRect().width) || 0, k.value = ((A = t.value) == null ? void 0 : A.clientWidth) || 0, h.value = ((F = d.value) == null ? void 0 : F.innerText) || "";
1234
- }, d = b({}), u = b(0), k = b(0), h = b(""), T = I(() => [a.value, t.value]), w = ne(
1231
+ }, u = () => {
1232
+ var f, A, U;
1233
+ d.value = ((f = a.value) == null ? void 0 : f.getBoundingClientRect().width) || 0, k.value = ((A = t.value) == null ? void 0 : A.clientWidth) || 0, y.value = ((U = p.value) == null ? void 0 : U.innerText) || "";
1234
+ }, p = b({}), d = b(0), k = b(0), y = b(""), T = N(() => [a.value, t.value]), v = ne(
1235
1235
  T,
1236
- (y) => {
1236
+ (f) => {
1237
1237
  if (n.value && (l(), "ResizeObserver" in window && window)) {
1238
1238
  i = new ResizeObserver((A) => {
1239
1239
  window.requestAnimationFrame(() => {
1240
- !Array.isArray(A) || !A.length || c();
1240
+ !Array.isArray(A) || !A.length || u();
1241
1241
  });
1242
1242
  });
1243
- for (const A of y)
1243
+ for (const A of f)
1244
1244
  A && i.observe(A);
1245
1245
  }
1246
1246
  },
1247
1247
  { immediate: !0, flush: "post", deep: !0 }
1248
- ), P = I(() => n.value ? u.value > k.value : !1);
1249
- return Re(() => {
1250
- c();
1251
- }), Be(() => {
1252
- w();
1253
- }), (y, A) => {
1254
- const F = U("KTooltip");
1255
- return j(), J("span", {
1248
+ ), P = N(() => n.value ? d.value > k.value : !1);
1249
+ return Le(() => {
1250
+ u();
1251
+ }), Re(() => {
1252
+ v();
1253
+ }), (f, A) => {
1254
+ const U = M("KTooltip");
1255
+ return j(), Y("span", {
1256
1256
  ref_key: "contentRef",
1257
- ref: d,
1257
+ ref: p,
1258
1258
  class: "content-wrapper"
1259
1259
  }, [
1260
- n.value ? (j(), J("span", Br, [
1261
- m(F, {
1262
- label: P.value ? h.value : "",
1260
+ n.value ? (j(), Y("span", Rr, [
1261
+ g(U, {
1262
+ label: P.value ? y.value : "",
1263
1263
  "max-width": "300",
1264
1264
  placement: "bottomStart"
1265
1265
  }, {
1266
1266
  default: o(() => [
1267
- z(y.$slots, "default", {}, void 0, !0)
1267
+ z(f.$slots, "default", {}, void 0, !0)
1268
1268
  ]),
1269
1269
  _: 3
1270
1270
  }, 8, ["label"])
1271
- ])) : z(y.$slots, "default", { key: 1 }, void 0, !0)
1271
+ ])) : z(f.$slots, "default", { key: 1 }, void 0, !0)
1272
1272
  ], 512);
1273
1273
  };
1274
1274
  }
1275
- }), Dr = /* @__PURE__ */ de(qr, [["__scopeId", "data-v-e42a20c9"]]), Mr = { class: "toolbar-container" }, Wr = {
1275
+ }), qr = /* @__PURE__ */ de(Dr, [["__scopeId", "data-v-e42a20c9"]]), Br = { class: "toolbar-container" }, Hr = {
1276
1276
  key: 0,
1277
1277
  class: "toolbar-button-container"
1278
- }, zr = ["data-testid"], Hr = /* @__PURE__ */ ae({
1278
+ }, Wr = ["data-testid"], zr = /* @__PURE__ */ ae({
1279
1279
  __name: "EntityBaseTable",
1280
1280
  props: {
1281
1281
  // table header configuration
@@ -1334,9 +1334,10 @@ const Br = {
1334
1334
  },
1335
1335
  // error message to show in the error state
1336
1336
  // this prop being set (or empty) determines if the KTable is in an error state
1337
+ // please use `TableErrorMessage` since `string` is only for backwards compatibility
1337
1338
  errorMessage: {
1338
- type: String,
1339
- default: ""
1339
+ type: [String, Object],
1340
+ default: null
1340
1341
  },
1341
1342
  disablePaginationPageJump: {
1342
1343
  type: Boolean,
@@ -1384,126 +1385,138 @@ const Br = {
1384
1385
  },
1385
1386
  emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
1386
1387
  setup(e, { emit: r }) {
1387
- const t = e, { i18n: { t: a } } = ue.useI18n(), n = I(() => t.cacheIdentifier || t.preferencesStorageKey), i = (p) => p.hasData || !!t.query, l = I(() => {
1388
- const p = [];
1389
- return Object.keys(t.tableHeaders).forEach((s) => {
1390
- const B = t.tableHeaders[s];
1391
- p.push({
1392
- label: B.label ?? s,
1393
- key: s,
1394
- sortable: B.sortable ?? !1
1388
+ const t = e, { i18n: { t: a } } = ue.useI18n(), n = N(() => {
1389
+ var s, w;
1390
+ return typeof t.errorMessage == "string" ? {
1391
+ hasError: !!t.errorMessage,
1392
+ title: t.errorMessage,
1393
+ message: void 0
1394
+ } : {
1395
+ hasError: !!t.errorMessage,
1396
+ title: (s = t.errorMessage) == null ? void 0 : s.title,
1397
+ message: (w = t.errorMessage) == null ? void 0 : w.message
1398
+ };
1399
+ }), i = N(() => t.cacheIdentifier || t.preferencesStorageKey), l = (s) => s.hasData || !!t.query, u = N(() => {
1400
+ const s = [];
1401
+ return Object.keys(t.tableHeaders).forEach((w) => {
1402
+ const D = t.tableHeaders[w];
1403
+ s.push({
1404
+ label: D.label ?? w,
1405
+ key: w,
1406
+ sortable: D.sortable ?? !1
1395
1407
  });
1396
- }), t.enableEntityActions && p.push({
1408
+ }), t.enableEntityActions && s.push({
1397
1409
  key: "actions",
1398
1410
  hideLabel: !0
1399
- }), p;
1400
- }), c = (p) => ({
1401
- "data-rowid": p.id,
1402
- "data-testid": p.name,
1403
- ...t.rowAttributes(p)
1404
- }), d = b({}), u = (p) => {
1405
- var s;
1406
- return (s = d.value) == null ? void 0 : s.$el.querySelector(`[data-rowid="${p.id}"]`);
1407
- }, k = (p) => {
1408
- const s = {
1409
- "data-testid": p.headerKey,
1410
- ...t.cellAttributes(p)
1411
+ }), s;
1412
+ }), p = (s) => ({
1413
+ "data-rowid": s.id,
1414
+ "data-testid": s.name,
1415
+ ...t.rowAttributes(s)
1416
+ }), d = b({}), k = (s) => {
1417
+ var w;
1418
+ return (w = d.value) == null ? void 0 : w.$el.querySelector(`[data-rowid="${s.id}"]`);
1419
+ }, y = (s) => {
1420
+ const w = {
1421
+ "data-testid": s.headerKey,
1422
+ ...t.cellAttributes(s)
1411
1423
  };
1412
- return p.colIndex === 0 && (s.style = {
1424
+ return s.colIndex === 0 && (w.style = {
1413
1425
  maxWidth: "250px",
1414
1426
  overflowX: "hidden",
1415
1427
  textOverflow: "ellipsis"
1416
- }), s;
1417
- }, h = () => {
1418
- r("empty-state-cta-clicked"), T();
1428
+ }), w;
1419
1429
  }, T = () => {
1430
+ r("empty-state-cta-clicked"), v();
1431
+ }, v = () => {
1420
1432
  r("clear-search-input");
1421
- }, w = I(() => t.disableRowClick ? void 0 : (p, s) => {
1422
- r("click:row", s);
1423
- }), P = (p) => {
1424
- r("sort", p);
1425
- }, { setTablePreferences: y, getTablePreferences: A } = Xe(), F = I(() => {
1426
- const p = A(t.preferencesStorageKey);
1433
+ }, P = N(() => t.disableRowClick ? void 0 : (s, w) => {
1434
+ r("click:row", w);
1435
+ }), f = (s) => {
1436
+ r("sort", s);
1437
+ }, { setTablePreferences: A, getTablePreferences: U } = Xe(), X = N(() => {
1438
+ const s = U(t.preferencesStorageKey);
1427
1439
  return {
1428
1440
  ...t.initialFetcherParams,
1429
- ...p
1441
+ ...s
1430
1442
  };
1431
- }), X = (p) => {
1432
- t.preferencesStorageKey && y(t.preferencesStorageKey, p);
1443
+ }), B = (s) => {
1444
+ t.preferencesStorageKey && A(t.preferencesStorageKey, s);
1433
1445
  };
1434
- return (p, s) => {
1435
- const B = U("KIcon"), V = U("KButton"), Q = U("KDropdown"), x = U("KTable"), E = U("KCard");
1436
- return j(), W(E, {
1446
+ return (s, w) => {
1447
+ const D = M("KIcon"), Q = M("KButton"), x = M("KDropdown"), O = M("KTable"), q = M("KCard");
1448
+ return j(), W(q, {
1437
1449
  class: "kong-ui-entity-base-table",
1438
1450
  title: e.title
1439
1451
  }, {
1440
1452
  body: o(() => [
1441
- m(x, {
1453
+ g(O, {
1442
1454
  ref_key: "tableRefs",
1443
1455
  ref: d,
1444
- "cache-identifier": n.value,
1445
- "cell-attrs": k,
1456
+ "cache-identifier": i.value,
1457
+ "cell-attrs": y,
1446
1458
  "disable-pagination-page-jump": e.disablePaginationPageJump,
1447
1459
  "disable-sorting": e.disableSorting,
1448
1460
  "empty-state-action-button-icon": e.query ? "" : "plus",
1449
- "empty-state-action-message": e.query ? v(a)("baseTable.emptyState.noSearchResultsCtaText") : e.emptyStateOptions.ctaText,
1461
+ "empty-state-action-message": e.query ? m(a)("baseTable.emptyState.noSearchResultsCtaText") : e.emptyStateOptions.ctaText,
1450
1462
  "empty-state-action-route": e.query ? "" : e.emptyStateOptions.ctaPath,
1451
1463
  "empty-state-icon": e.query ? "stateNoSearchResults" : "stateGruceo",
1452
1464
  "empty-state-icon-size": "96",
1453
- "empty-state-message": e.query ? v(a)("baseTable.emptyState.noSearchResultsMessage") : e.emptyStateOptions.message,
1454
- "empty-state-title": e.query ? v(a)("baseTable.emptyState.noSearchResultsTitle") : e.emptyStateOptions.title,
1465
+ "empty-state-message": e.query ? m(a)("baseTable.emptyState.noSearchResultsMessage") : e.emptyStateOptions.message,
1466
+ "empty-state-title": e.query ? m(a)("baseTable.emptyState.noSearchResultsTitle") : e.emptyStateOptions.title,
1455
1467
  "enable-client-sort": e.enableClientSort,
1456
- "error-state-title": e.errorMessage,
1468
+ "error-state-message": n.value.message,
1469
+ "error-state-title": n.value.title,
1457
1470
  fetcher: e.fetcher,
1458
1471
  "fetcher-cache-key": String(e.fetcherCacheKey),
1459
- "has-error": !!e.errorMessage,
1460
- headers: l.value,
1472
+ "has-error": n.value.hasError,
1473
+ headers: u.value,
1461
1474
  "hide-pagination-when-optional": "",
1462
- "initial-fetcher-params": F.value,
1475
+ "initial-fetcher-params": X.value,
1463
1476
  "is-loading": e.isLoading,
1464
1477
  "pagination-type": e.paginationType,
1465
- "row-attrs": c,
1478
+ "row-attrs": p,
1466
1479
  "search-input": e.query,
1467
- onKtableEmptyStateCtaClicked: h,
1468
- "onRow:click": w.value,
1469
- onSort: s[0] || (s[0] = ($) => P($)),
1470
- "onUpdate:tablePreferences": X
1480
+ onKtableEmptyStateCtaClicked: T,
1481
+ "onRow:click": P.value,
1482
+ onSort: w[0] || (w[0] = (C) => f(C)),
1483
+ "onUpdate:tablePreferences": B
1471
1484
  }, Ce({
1472
- toolbar: o(({ state: $ }) => [
1473
- Ue(Z("div", Mr, [
1474
- z(p.$slots, "toolbar-filter", {}, void 0, !0),
1475
- p.$slots["toolbar-button"] ? (j(), J("div", Wr, [
1476
- z(p.$slots, "toolbar-button", {}, void 0, !0)
1477
- ])) : H("", !0)
1485
+ toolbar: o(({ state: C }) => [
1486
+ Ue(Z("div", Br, [
1487
+ z(s.$slots, "toolbar-filter", {}, void 0, !0),
1488
+ s.$slots["toolbar-button"] ? (j(), Y("div", Hr, [
1489
+ z(s.$slots, "toolbar-button", {}, void 0, !0)
1490
+ ])) : J("", !0)
1478
1491
  ], 512), [
1479
- [Le, i($)]
1492
+ [Me, l(C)]
1480
1493
  ])
1481
1494
  ]),
1482
- actions: o(({ row: $, rowKey: _, rowValue: O }) => [
1495
+ actions: o(({ row: C, rowKey: E, rowValue: c }) => [
1483
1496
  Z("div", {
1484
1497
  class: "actions-container",
1485
- "data-testid": $.name
1498
+ "data-testid": C.name
1486
1499
  }, [
1487
- m(Q, {
1500
+ g(x, {
1488
1501
  "kpop-attributes": { placement: "bottomEnd" },
1489
1502
  width: e.dropdownMenuWidth
1490
1503
  }, {
1491
1504
  items: o(() => [
1492
- z(p.$slots, "actions", {
1493
- row: $,
1494
- rowKey: _,
1495
- rowValue: O
1505
+ z(s.$slots, "actions", {
1506
+ row: C,
1507
+ rowKey: E,
1508
+ rowValue: c
1496
1509
  }, void 0, !0)
1497
1510
  ]),
1498
1511
  default: o(() => [
1499
- m(V, {
1512
+ g(Q, {
1500
1513
  class: "actions-trigger",
1501
1514
  "data-testid": "overflow-actions-button",
1502
1515
  size: "small"
1503
1516
  }, {
1504
1517
  icon: o(() => [
1505
- m(B, {
1506
- color: v(Ct),
1518
+ g(D, {
1519
+ color: m(Ct),
1507
1520
  icon: "more",
1508
1521
  size: "16"
1509
1522
  }, null, 8, ["color"])
@@ -1513,40 +1526,40 @@ const Br = {
1513
1526
  ]),
1514
1527
  _: 2
1515
1528
  }, 1032, ["width"])
1516
- ], 8, zr)
1529
+ ], 8, Wr)
1517
1530
  ]),
1518
1531
  _: 2
1519
1532
  }, [
1520
- _e(e.tableHeaders, ($, _) => ({
1521
- name: _,
1522
- fn: o(({ row: O, rowKey: f, rowValue: S }) => [
1523
- m(Dr, {
1524
- "key-name": String(_),
1525
- "row-el": u(O)
1533
+ _e(e.tableHeaders, (C, E) => ({
1534
+ name: E,
1535
+ fn: o(({ row: c, rowKey: _, rowValue: $ }) => [
1536
+ g(qr, {
1537
+ "key-name": String(E),
1538
+ "row-el": k(c)
1526
1539
  }, {
1527
1540
  default: o(() => [
1528
- z(p.$slots, _, {
1529
- row: O,
1530
- rowKey: f,
1531
- rowValue: S
1541
+ z(s.$slots, E, {
1542
+ row: c,
1543
+ rowKey: _,
1544
+ rowValue: $
1532
1545
  }, () => [
1533
- R(N(S), 1)
1546
+ R(I($), 1)
1534
1547
  ], !0)
1535
1548
  ]),
1536
1549
  _: 2
1537
1550
  }, 1032, ["key-name", "row-el"])
1538
1551
  ])
1539
1552
  }))
1540
- ]), 1032, ["cache-identifier", "disable-pagination-page-jump", "disable-sorting", "empty-state-action-button-icon", "empty-state-action-message", "empty-state-action-route", "empty-state-icon", "empty-state-message", "empty-state-title", "enable-client-sort", "error-state-title", "fetcher", "fetcher-cache-key", "has-error", "headers", "initial-fetcher-params", "is-loading", "pagination-type", "search-input", "onRow:click"])
1553
+ ]), 1032, ["cache-identifier", "disable-pagination-page-jump", "disable-sorting", "empty-state-action-button-icon", "empty-state-action-message", "empty-state-action-route", "empty-state-icon", "empty-state-message", "empty-state-title", "enable-client-sort", "error-state-message", "error-state-title", "fetcher", "fetcher-cache-key", "has-error", "headers", "initial-fetcher-params", "is-loading", "pagination-type", "search-input", "onRow:click"])
1541
1554
  ]),
1542
1555
  _: 3
1543
1556
  }, 8, ["title"]);
1544
1557
  };
1545
1558
  }
1546
- }), Jr = /* @__PURE__ */ de(Hr, [["__scopeId", "data-v-86d2d2a3"]]), Vr = {
1559
+ }), Jr = /* @__PURE__ */ de(zr, [["__scopeId", "data-v-499a771c"]]), Yr = {
1547
1560
  key: 0,
1548
1561
  class: "kong-ui-entity-delete-error"
1549
- }, Yr = {
1562
+ }, Vr = {
1550
1563
  key: 1,
1551
1564
  class: "description"
1552
1565
  }, Gr = /* @__PURE__ */ ae({
@@ -1588,13 +1601,13 @@ const Br = {
1588
1601
  },
1589
1602
  emits: ["cancel", "proceed"],
1590
1603
  setup(e, { emit: r }) {
1591
- const t = e, { i18nT: a } = ue.useI18n(), n = I(() => t.needConfirm ? t.entityName : ""), i = () => {
1604
+ const t = e, { i18nT: a } = ue.useI18n(), n = N(() => t.needConfirm ? t.entityName : ""), i = () => {
1592
1605
  r("cancel");
1593
1606
  }, l = () => {
1594
1607
  r("proceed");
1595
1608
  };
1596
- return (c, d) => {
1597
- const u = U("KAlert"), k = U("KPrompt");
1609
+ return (u, p) => {
1610
+ const d = M("KAlert"), k = M("KPrompt");
1598
1611
  return j(), W(k, {
1599
1612
  "action-button-text": "Yes, delete",
1600
1613
  "action-pending": e.actionPending,
@@ -1607,37 +1620,37 @@ const Br = {
1607
1620
  onProceed: l
1608
1621
  }, {
1609
1622
  "body-content": o(() => [
1610
- e.error ? (j(), J("div", Vr, [
1611
- m(u, { appearance: "danger" }, {
1623
+ e.error ? (j(), Y("div", Yr, [
1624
+ g(d, { appearance: "danger" }, {
1612
1625
  alertMessage: o(() => [
1613
- R(N(e.error), 1)
1626
+ R(I(e.error), 1)
1614
1627
  ]),
1615
1628
  _: 1
1616
1629
  })
1617
- ])) : H("", !0),
1618
- m(v(a), {
1630
+ ])) : J("", !0),
1631
+ g(m(a), {
1619
1632
  class: "message",
1620
1633
  keypath: t.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
1621
1634
  tag: "p"
1622
1635
  }, Ce({
1623
1636
  entityType: o(() => [
1624
- R(N(t.entityType), 1)
1637
+ R(I(t.entityType), 1)
1625
1638
  ]),
1626
1639
  _: 2
1627
1640
  }, [
1628
1641
  t.entityName ? {
1629
1642
  name: "entityName",
1630
1643
  fn: o(() => [
1631
- Z("strong", null, N(t.entityName), 1)
1644
+ Z("strong", null, I(t.entityName), 1)
1632
1645
  ]),
1633
1646
  key: "0"
1634
1647
  } : void 0
1635
1648
  ]), 1032, ["keypath"]),
1636
- t.description || c.$slots.description ? (j(), J("div", Yr, [
1637
- z(c.$slots, "description", {}, () => [
1638
- Z("p", null, N(t.description), 1)
1649
+ t.description || u.$slots.description ? (j(), Y("div", Vr, [
1650
+ z(u.$slots, "description", {}, () => [
1651
+ Z("p", null, I(t.description), 1)
1639
1652
  ], !0)
1640
- ])) : H("", !0)
1653
+ ])) : J("", !0)
1641
1654
  ]),
1642
1655
  _: 3
1643
1656
  }, 8, ["action-pending", "confirmation-text", "is-visible", "title"]);
@@ -1665,13 +1678,13 @@ const Br = {
1665
1678
  }
1666
1679
  },
1667
1680
  setup(e) {
1668
- const r = e, t = b(void 0), a = I(() => t.value === !0 || t.value !== void 0 && r.forceShow === !0);
1681
+ const r = e, t = b(void 0), a = N(() => t.value === !0 || t.value !== void 0 && r.forceShow === !0);
1669
1682
  return ne(() => r.authFunction, async () => {
1670
1683
  t.value = await r.authFunction();
1671
1684
  }, { immediate: !0 }), (n, i) => a.value ? z(n.$slots, "default", {
1672
1685
  key: 0,
1673
1686
  isAllowed: t.value
1674
- }) : H("", !0);
1687
+ }) : J("", !0);
1675
1688
  }
1676
1689
  }), { useAxios: Xr, useDeleteUrlBuilder: Qr, useErrors: ua, useExternalLinkCreator: da, useFetchUrlBuilder: pa, useFetcher: ea, useDebouncedFilter: fa, useStringHelpers: ya, useHelpers: ha, useGatewayFeatureSupported: ga, useTruncationDetector: ma } = ue;
1677
1690
  const ta = { class: "kong-ui-entities-consumer-credentials-list" }, ra = { key: 1 }, aa = /* @__PURE__ */ ae({
@@ -1709,9 +1722,9 @@ const ta = { class: "kong-ui-entities-consumer-credentials-list" }, ra = { key:
1709
1722
  },
1710
1723
  emits: ["error", "copy:success", "copy:error", "delete:success"],
1711
1724
  setup(e, { emit: r }) {
1712
- const t = e, { i18n: { t: a, formatUnixTimeStamp: n } } = Ve.useI18n(), { axiosInstance: i } = Xr({
1725
+ const t = e, { i18n: { t: a, formatUnixTimeStamp: n } } = Ye.useI18n(), { axiosInstance: i } = Xr({
1713
1726
  headers: t.config.requestHeaders
1714
- }), l = b(1), c = {
1727
+ }), l = b(1), u = {
1715
1728
  acls: {
1716
1729
  group: { label: a("credentials.list.table_headers.acls.group") },
1717
1730
  created_at: { label: a("credentials.list.table_headers.acls.created_at") },
@@ -1752,99 +1765,102 @@ const ta = { class: "kong-ui-entities-consumer-credentials-list" }, ra = { key:
1752
1765
  created_at: { label: a("credentials.list.table_headers.jwt.created_at") },
1753
1766
  tags: { label: a("credentials.list.table_headers.jwt.tags") }
1754
1767
  }
1755
- }, d = I(() => c[t.config.plugin]), u = I(() => {
1756
- let f = `${t.config.apiBaseUrl}${Ye.list[t.config.app]}`;
1757
- return t.config.app === "konnect" ? f = f.replace(/{controlPlaneId}/gi, t.config.controlPlaneId || "").replace(/{consumerId}/gi, t.config.consumerId || "").replace(/{plugin}/gi, t.config.plugin || "") : t.config.app === "kongManager" && (f = f.replace(/\/{workspace}/gi, t.config.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, t.config.consumerId || "").replace(/{plugin}/gi, t.config.plugin || "")), f;
1758
- }), { fetcher: k, fetcherState: h } = ea(t.config, u), T = () => {
1768
+ }, p = N(() => u[t.config.plugin]), d = N(() => {
1769
+ let c = `${t.config.apiBaseUrl}${Ve.list[t.config.app]}`;
1770
+ return t.config.app === "konnect" ? c = c.replace(/{controlPlaneId}/gi, t.config.controlPlaneId || "").replace(/{consumerId}/gi, t.config.consumerId || "").replace(/{plugin}/gi, t.config.plugin || "") : t.config.app === "kongManager" && (c = c.replace(/\/{workspace}/gi, t.config.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, t.config.consumerId || "").replace(/{plugin}/gi, t.config.plugin || "")), c;
1771
+ }), { fetcher: k, fetcherState: y } = ea(t.config, d), T = () => {
1759
1772
  l.value++;
1760
- }, w = b(""), P = (f, S, D) => {
1761
- const q = S ? f[S] : JSON.stringify(f);
1762
- if (!D(q)) {
1763
- F(f, S);
1773
+ }, v = b(null), P = (c, _, $) => {
1774
+ const F = _ ? c[_] : JSON.stringify(c);
1775
+ if (!$(F)) {
1776
+ U(c, _);
1764
1777
  return;
1765
1778
  }
1766
- A(f, S);
1767
- }, y = (f, S, D) => {
1768
- const { type: q } = f;
1769
- q === "success" ? A(S, D) : F(S, D);
1770
- }, A = (f, S) => {
1779
+ A(c, _);
1780
+ }, f = (c, _, $) => {
1781
+ const { type: F } = c;
1782
+ F === "success" ? A(_, $) : U(_, $);
1783
+ }, A = (c, _) => {
1771
1784
  r("copy:success", {
1772
- entity: f,
1773
- field: S,
1774
- message: S ? a("credentials.copy.success", { val: f[S] }) : a("credentials.copy.success_brief")
1785
+ entity: c,
1786
+ field: _,
1787
+ message: _ ? a("credentials.copy.success", { val: c[_] }) : a("credentials.copy.success_brief")
1775
1788
  });
1776
- }, F = (f, S) => {
1789
+ }, U = (c, _) => {
1777
1790
  r("copy:error", {
1778
- entity: f,
1779
- field: S,
1791
+ entity: c,
1792
+ field: _,
1780
1793
  message: a("credentials.error.copy")
1781
1794
  });
1782
- }, X = (f) => ({
1795
+ }, X = (c) => ({
1783
1796
  label: a("credentials.actions.edit"),
1784
- to: t.config.getEditRoute(f)
1785
- }), p = b(void 0), s = b(!1), B = b(!1), V = b(""), Q = Qr(t.config, u.value), x = I(() => Ae[t.config.plugin]), E = (f) => {
1786
- p.value = f, s.value = !0;
1787
- }, $ = () => {
1797
+ to: t.config.getEditRoute(c)
1798
+ }), B = b(void 0), s = b(!1), w = b(!1), D = b(""), Q = Qr(t.config, d.value), x = N(() => Ae[t.config.plugin]), O = (c) => {
1799
+ B.value = c, s.value = !0;
1800
+ }, q = () => {
1788
1801
  s.value = !1;
1789
- }, _ = async () => {
1790
- var f, S, D;
1791
- if ((f = p.value) != null && f.id) {
1792
- B.value = !0;
1802
+ }, C = async () => {
1803
+ var c, _, $;
1804
+ if ((c = B.value) != null && c.id) {
1805
+ w.value = !0;
1793
1806
  try {
1794
- await i.delete(Q(p.value.id)), B.value = !1, s.value = !1, l.value++, r("delete:success", p.value);
1795
- } catch (q) {
1796
- V.value = ((D = (S = q.response) == null ? void 0 : S.data) == null ? void 0 : D.message) || q.message || a("credentials.error.delete"), r("error", q);
1807
+ await i.delete(Q(B.value.id)), w.value = !1, s.value = !1, l.value++, r("delete:success", B.value);
1808
+ } catch (F) {
1809
+ D.value = (($ = (_ = F.response) == null ? void 0 : _.data) == null ? void 0 : $.message) || F.message || a("credentials.error.delete"), r("error", F);
1797
1810
  } finally {
1798
- B.value = !1;
1811
+ w.value = !1;
1799
1812
  }
1800
1813
  }
1801
1814
  };
1802
- ne(h, (f) => {
1803
- if (f.status === Y.Error) {
1804
- w.value = a("credentials.error.general"), r("error", f.error);
1815
+ ne(y, (c) => {
1816
+ var _, $, F;
1817
+ if (c.status === V.Error) {
1818
+ v.value = {
1819
+ title: a("credentials.error.general")
1820
+ }, (F = ($ = (_ = c.error) == null ? void 0 : _.response) == null ? void 0 : $.data) != null && F.message && (v.value.message = c.error.response.data.message), r("error", c.error);
1805
1821
  return;
1806
1822
  }
1807
- w.value = "";
1823
+ v.value = null;
1808
1824
  });
1809
- const O = b({
1825
+ const E = b({
1810
1826
  ctaPath: t.config.createRoute,
1811
1827
  ctaText: void 0,
1812
1828
  message: "",
1813
1829
  title: a("credentials.title")
1814
1830
  });
1815
- return qe(async () => {
1816
- await t.canCreate() && (O.value.title = a(`credentials.list.empty_state.${t.config.plugin}.title`), O.value.ctaText = a(`credentials.list.empty_state.${t.config.plugin}.cta`));
1817
- }), (f, S) => {
1818
- const D = U("KButton"), q = U("CopyUuid"), Pe = U("KBadge"), Fe = U("KTruncate"), M = U("KDropdownItem"), ee = U("KClipboardProvider");
1819
- return j(), J("div", ta, [
1820
- m(v(Jr), {
1831
+ return De(async () => {
1832
+ await t.canCreate() && (E.value.title = a(`credentials.list.empty_state.${t.config.plugin}.title`), E.value.ctaText = a(`credentials.list.empty_state.${t.config.plugin}.cta`));
1833
+ }), (c, _) => {
1834
+ const $ = M("KButton"), F = M("CopyUuid"), Fe = M("KBadge"), Pe = M("KTruncate"), H = M("KDropdownItem"), ee = M("KClipboardProvider");
1835
+ return j(), Y("div", ta, [
1836
+ g(m(Jr), {
1821
1837
  "cache-identifier": e.cacheIdentifier,
1822
1838
  "disable-pagination-page-jump": "",
1823
1839
  "disable-row-click": "",
1824
1840
  "disable-sorting": "",
1825
- "empty-state-options": O.value,
1841
+ "empty-state-options": E.value,
1826
1842
  "enable-entity-actions": "",
1827
- "error-message": w.value,
1828
- fetcher: v(k),
1843
+ "error-message": v.value,
1844
+ fetcher: m(k),
1829
1845
  "fetcher-cache-key": l.value,
1830
1846
  "pagination-type": "offset",
1831
1847
  "preferences-storage-key": "kong-ui-entities-consumer-credentials-list",
1832
- "table-headers": d.value,
1848
+ "table-headers": p.value,
1833
1849
  onSort: T
1834
1850
  }, {
1835
1851
  "toolbar-button": o(() => [
1836
- m(v(le), {
1852
+ g(m(le), {
1837
1853
  "auth-function": () => e.canCreate()
1838
1854
  }, {
1839
1855
  default: o(() => [
1840
- m(D, {
1856
+ g($, {
1841
1857
  appearance: "primary",
1842
1858
  "data-testid": "toolbar-add-credential",
1843
1859
  icon: "plus",
1844
1860
  to: e.config.createRoute
1845
1861
  }, {
1846
1862
  default: o(() => [
1847
- R(N(v(a)(`credentials.list.toolbar_actions.${e.config.plugin}.new`)), 1)
1863
+ R(I(m(a)(`credentials.list.toolbar_actions.${e.config.plugin}.new`)), 1)
1848
1864
  ]),
1849
1865
  _: 1
1850
1866
  }, 8, ["to"])
@@ -1852,72 +1868,72 @@ const ta = { class: "kong-ui-entities-consumer-credentials-list" }, ra = { key:
1852
1868
  _: 1
1853
1869
  }, 8, ["auth-function"])
1854
1870
  ]),
1855
- group: o(({ rowValue: g }) => [
1856
- Z("b", null, N(g ?? "-"), 1)
1871
+ group: o(({ rowValue: h }) => [
1872
+ Z("b", null, I(h ?? "-"), 1)
1857
1873
  ]),
1858
- name: o(({ rowValue: g }) => [
1859
- Z("b", null, N(g ?? "-"), 1)
1874
+ name: o(({ rowValue: h }) => [
1875
+ Z("b", null, I(h ?? "-"), 1)
1860
1876
  ]),
1861
- username: o(({ rowValue: g }) => [
1862
- Z("span", null, N(g ?? "-"), 1)
1877
+ username: o(({ rowValue: h }) => [
1878
+ Z("span", null, I(h ?? "-"), 1)
1863
1879
  ]),
1864
- password: o(({ row: g, rowValue: C }) => [
1865
- m(q, {
1880
+ password: o(({ row: h, rowValue: S }) => [
1881
+ g(F, {
1866
1882
  format: "redacted",
1867
- notify: (L) => y(L, g, "password"),
1868
- uuid: C
1883
+ notify: (L) => f(L, h, "password"),
1884
+ uuid: S
1869
1885
  }, null, 8, ["notify", "uuid"])
1870
1886
  ]),
1871
- key: o(({ row: g, rowValue: C }) => [
1872
- m(q, {
1887
+ key: o(({ row: h, rowValue: S }) => [
1888
+ g(F, {
1873
1889
  format: "redacted",
1874
- notify: (L) => y(L, g, "key"),
1875
- uuid: C
1890
+ notify: (L) => f(L, h, "key"),
1891
+ uuid: S
1876
1892
  }, null, 8, ["notify", "uuid"])
1877
1893
  ]),
1878
- client_secret: o(({ row: g, rowValue: C }) => [
1879
- m(q, {
1894
+ client_secret: o(({ row: h, rowValue: S }) => [
1895
+ g(F, {
1880
1896
  format: "redacted",
1881
- notify: (L) => y(L, g, "client_secret"),
1882
- uuid: C
1897
+ notify: (L) => f(L, h, "client_secret"),
1898
+ uuid: S
1883
1899
  }, null, 8, ["notify", "uuid"])
1884
1900
  ]),
1885
- secret: o(({ row: g, rowValue: C }) => [
1886
- m(q, {
1901
+ secret: o(({ row: h, rowValue: S }) => [
1902
+ g(F, {
1887
1903
  format: "redacted",
1888
- notify: (L) => y(L, g, "secret"),
1889
- uuid: C
1904
+ notify: (L) => f(L, h, "secret"),
1905
+ uuid: S
1890
1906
  }, null, 8, ["notify", "uuid"])
1891
1907
  ]),
1892
- created_at: o(({ rowValue: g }) => [
1893
- R(N(v(n)(g)), 1)
1908
+ created_at: o(({ rowValue: h }) => [
1909
+ R(I(m(n)(h)), 1)
1894
1910
  ]),
1895
- tags: o(({ rowValue: g }) => [
1896
- (g == null ? void 0 : g.length) > 0 ? (j(), W(Fe, { key: 0 }, {
1911
+ tags: o(({ rowValue: h }) => [
1912
+ (h == null ? void 0 : h.length) > 0 ? (j(), W(Pe, { key: 0 }, {
1897
1913
  default: o(() => [
1898
- (j(!0), J(De, null, _e(g, (C) => (j(), W(Pe, {
1899
- key: C,
1900
- onClick: S[0] || (S[0] = Me(() => {
1914
+ (j(!0), Y(qe, null, _e(h, (S) => (j(), W(Fe, {
1915
+ key: S,
1916
+ onClick: _[0] || (_[0] = Be(() => {
1901
1917
  }, ["stop"]))
1902
1918
  }, {
1903
1919
  default: o(() => [
1904
- R(N(C), 1)
1920
+ R(I(S), 1)
1905
1921
  ]),
1906
1922
  _: 2
1907
1923
  }, 1024))), 128))
1908
1924
  ]),
1909
1925
  _: 2
1910
- }, 1024)) : (j(), J("span", ra, "-"))
1926
+ }, 1024)) : (j(), Y("span", ra, "-"))
1911
1927
  ]),
1912
- actions: o(({ row: g }) => [
1913
- m(ee, null, {
1914
- default: o(({ copyToClipboard: C }) => [
1915
- m(M, {
1928
+ actions: o(({ row: h }) => [
1929
+ g(ee, null, {
1930
+ default: o(({ copyToClipboard: S }) => [
1931
+ g(H, {
1916
1932
  "data-testid": "action-entity-copy-id",
1917
- onClick: (L) => P(g, "id", C)
1933
+ onClick: (L) => P(h, "id", S)
1918
1934
  }, {
1919
1935
  default: o(() => [
1920
- R(N(v(a)("credentials.actions.copy_id")), 1)
1936
+ R(I(m(a)("credentials.actions.copy_id")), 1)
1921
1937
  ]),
1922
1938
  _: 2
1923
1939
  }, 1032, ["onClick"])
@@ -1925,99 +1941,99 @@ const ta = { class: "kong-ui-entities-consumer-credentials-list" }, ra = { key:
1925
1941
  _: 2
1926
1942
  }, 1024),
1927
1943
  e.config.plugin === "basic-auth" ? (j(), W(ee, { key: 0 }, {
1928
- default: o(({ copyToClipboard: C }) => [
1929
- m(M, {
1944
+ default: o(({ copyToClipboard: S }) => [
1945
+ g(H, {
1930
1946
  "data-testid": "action-entity-copy-credential",
1931
- onClick: (L) => P(g, "password", C)
1947
+ onClick: (L) => P(h, "password", S)
1932
1948
  }, {
1933
1949
  default: o(() => [
1934
- R(N(v(a)("credentials.actions.copy_credential")), 1)
1950
+ R(I(m(a)("credentials.actions.copy_credential")), 1)
1935
1951
  ]),
1936
1952
  _: 2
1937
1953
  }, 1032, ["onClick"])
1938
1954
  ]),
1939
1955
  _: 2
1940
- }, 1024)) : H("", !0),
1956
+ }, 1024)) : J("", !0),
1941
1957
  ["key-auth", "key-auth-enc", "jwt"].includes(e.config.plugin) ? (j(), W(ee, { key: 1 }, {
1942
- default: o(({ copyToClipboard: C }) => [
1943
- m(M, {
1958
+ default: o(({ copyToClipboard: S }) => [
1959
+ g(H, {
1944
1960
  "data-testid": "action-entity-copy-key",
1945
- onClick: (L) => P(g, "key", C)
1961
+ onClick: (L) => P(h, "key", S)
1946
1962
  }, {
1947
1963
  default: o(() => [
1948
- R(N(v(a)("credentials.actions.copy_key")), 1)
1964
+ R(I(m(a)("credentials.actions.copy_key")), 1)
1949
1965
  ]),
1950
1966
  _: 2
1951
1967
  }, 1032, ["onClick"])
1952
1968
  ]),
1953
1969
  _: 2
1954
- }, 1024)) : H("", !0),
1970
+ }, 1024)) : J("", !0),
1955
1971
  e.config.plugin === "oauth2" ? (j(), W(ee, { key: 2 }, {
1956
- default: o(({ copyToClipboard: C }) => [
1957
- m(M, {
1972
+ default: o(({ copyToClipboard: S }) => [
1973
+ g(H, {
1958
1974
  "data-testid": "action-entity-copy-secret",
1959
- onClick: (L) => P(g, "client_secret", C)
1975
+ onClick: (L) => P(h, "client_secret", S)
1960
1976
  }, {
1961
1977
  default: o(() => [
1962
- R(N(v(a)("credentials.actions.copy_secret")), 1)
1978
+ R(I(m(a)("credentials.actions.copy_secret")), 1)
1963
1979
  ]),
1964
1980
  _: 2
1965
1981
  }, 1032, ["onClick"])
1966
1982
  ]),
1967
1983
  _: 2
1968
- }, 1024)) : H("", !0),
1984
+ }, 1024)) : J("", !0),
1969
1985
  e.config.plugin === "hmac-auth" ? (j(), W(ee, { key: 3 }, {
1970
- default: o(({ copyToClipboard: C }) => [
1971
- m(M, {
1986
+ default: o(({ copyToClipboard: S }) => [
1987
+ g(H, {
1972
1988
  "data-testid": "action-entity-copy-secret",
1973
- onClick: (L) => P(g, "secret", C)
1989
+ onClick: (L) => P(h, "secret", S)
1974
1990
  }, {
1975
1991
  default: o(() => [
1976
- R(N(v(a)("credentials.actions.copy_secret")), 1)
1992
+ R(I(m(a)("credentials.actions.copy_secret")), 1)
1977
1993
  ]),
1978
1994
  _: 2
1979
1995
  }, 1032, ["onClick"])
1980
1996
  ]),
1981
1997
  _: 2
1982
- }, 1024)) : H("", !0),
1983
- m(ee, null, {
1984
- default: o(({ copyToClipboard: C }) => [
1985
- m(M, {
1998
+ }, 1024)) : J("", !0),
1999
+ g(ee, null, {
2000
+ default: o(({ copyToClipboard: S }) => [
2001
+ g(H, {
1986
2002
  "data-testid": "action-entity-copy-json",
1987
- onClick: (L) => P(g, void 0, C)
2003
+ onClick: (L) => P(h, void 0, S)
1988
2004
  }, {
1989
2005
  default: o(() => [
1990
- R(N(v(a)("credentials.actions.copy_json")), 1)
2006
+ R(I(m(a)("credentials.actions.copy_json")), 1)
1991
2007
  ]),
1992
2008
  _: 2
1993
2009
  }, 1032, ["onClick"])
1994
2010
  ]),
1995
2011
  _: 2
1996
2012
  }, 1024),
1997
- m(v(le), {
1998
- "auth-function": () => e.canEdit(g)
2013
+ g(m(le), {
2014
+ "auth-function": () => e.canEdit(h)
1999
2015
  }, {
2000
2016
  default: o(() => [
2001
- m(M, {
2017
+ g(H, {
2002
2018
  "data-testid": "action-entity-edit",
2003
2019
  "has-divider": "",
2004
- item: X(g.id)
2020
+ item: X(h.id)
2005
2021
  }, null, 8, ["item"])
2006
2022
  ]),
2007
2023
  _: 2
2008
2024
  }, 1032, ["auth-function"]),
2009
- m(v(le), {
2010
- "auth-function": () => e.canDelete(g)
2025
+ g(m(le), {
2026
+ "auth-function": () => e.canDelete(h)
2011
2027
  }, {
2012
2028
  default: o(() => [
2013
- m(M, {
2029
+ g(H, {
2014
2030
  danger: "",
2015
2031
  "data-testid": "action-entity-delete",
2016
2032
  "has-divider": "",
2017
- onClick: (C) => E(g)
2033
+ onClick: (S) => O(h)
2018
2034
  }, {
2019
2035
  default: o(() => [
2020
- R(N(v(a)("credentials.actions.delete")), 1)
2036
+ R(I(m(a)("credentials.actions.delete")), 1)
2021
2037
  ]),
2022
2038
  _: 2
2023
2039
  }, 1032, ["onClick"])
@@ -2027,15 +2043,15 @@ const ta = { class: "kong-ui-entities-consumer-credentials-list" }, ra = { key:
2027
2043
  ]),
2028
2044
  _: 1
2029
2045
  }, 8, ["cache-identifier", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "table-headers"]),
2030
- m(v(Zr), {
2031
- "action-pending": B.value,
2032
- description: v(a)("credentials.delete.description"),
2046
+ g(m(Zr), {
2047
+ "action-pending": w.value,
2048
+ description: m(a)("credentials.delete.description"),
2033
2049
  "entity-type": x.value,
2034
- error: V.value,
2035
- title: v(a)(`credentials.delete.${e.config.plugin}.title`),
2050
+ error: D.value,
2051
+ title: m(a)(`credentials.delete.${e.config.plugin}.title`),
2036
2052
  visible: s.value,
2037
- onCancel: $,
2038
- onProceed: _
2053
+ onCancel: q,
2054
+ onProceed: C
2039
2055
  }, null, 8, ["action-pending", "description", "entity-type", "error", "title", "visible"])
2040
2056
  ]);
2041
2057
  };
@@ -2046,7 +2062,7 @@ const na = (e, r) => {
2046
2062
  for (const [a, n] of r)
2047
2063
  t[a] = n;
2048
2064
  return t;
2049
- }, va = /* @__PURE__ */ na(aa, [["__scopeId", "data-v-4a1ad610"]]);
2065
+ }, va = /* @__PURE__ */ na(aa, [["__scopeId", "data-v-288f971c"]]);
2050
2066
  export {
2051
2067
  va as ConsumerCredentialList
2052
2068
  };