@kong-ui-public/entities-consumer-credentials 2.1.19 → 2.1.21

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 se, renderSlot as Y, createCommentVNode as G, unref as m, resolveComponent as D, openBlock as j, createBlock as W, withCtx as s, createVNode as g, createSlots as Te, withDirectives as Ae, createElementVNode as ee, createElementBlock as V, vShow as Ne, renderList as Ie, createTextVNode as U, toDisplayString as x, onMounted as Re, onUnmounted as qe, onBeforeMount as Be, Teleport as ze, Fragment as We, withModifiers as He } from "vue";
1
+ import { defineComponent as ie, ref as v, computed as N, watch as oe, renderSlot as Y, createCommentVNode as G, unref as m, resolveComponent as P, openBlock as j, createBlock as W, withCtx as o, createVNode as g, createSlots as Te, withDirectives as Ae, createElementVNode as ee, createElementBlock as V, vShow as Ne, renderList as Ie, createTextVNode as U, toDisplayString as x, onMounted as Re, onUnmounted as qe, onBeforeMount as Be, resolveDynamicComponent as ze, Fragment as We, withModifiers as He } from "vue";
2
2
  import { createI18n as xe, i18nTComponent as Ee } from "@kong-ui-public/i18n";
3
3
  import Je from "axios";
4
4
  import "@kong/kongponents";
@@ -185,7 +185,7 @@ function Xe() {
185
185
  }
186
186
  };
187
187
  }
188
- const oe = "khcp-user-table-preferences", et = {
188
+ const se = "khcp-user-table-preferences", et = {
189
189
  pageSize: 30,
190
190
  sortColumnKey: void 0,
191
191
  sortColumnOrder: void 0
@@ -200,14 +200,14 @@ function tt() {
200
200
  return;
201
201
  }
202
202
  }, r = () => {
203
- const t = e(localStorage.getItem(oe));
203
+ const t = e(localStorage.getItem(se));
204
204
  return !t || !Object.keys(t).length ? /* @__PURE__ */ new Map() : new Map(Object.entries(t));
205
205
  };
206
206
  return {
207
207
  setTablePreferences: (t, a) => {
208
208
  try {
209
209
  const n = r();
210
- n.set(t, a), localStorage.setItem(oe, JSON.stringify(Object.fromEntries(n.entries())));
210
+ n.set(t, a), localStorage.setItem(se, JSON.stringify(Object.fromEntries(n.entries())));
211
211
  } catch (n) {
212
212
  console.error("useTablePreferences(setTablePreferences)", n);
213
213
  }
@@ -217,7 +217,7 @@ function tt() {
217
217
  return (a == null ? void 0 : a.get(t)) || void 0 || et;
218
218
  },
219
219
  deleteAllTablePreferences: () => {
220
- localStorage.removeItem(oe);
220
+ localStorage.removeItem(se);
221
221
  }
222
222
  };
223
223
  }
@@ -284,7 +284,7 @@ const rt = {
284
284
  entryTitle: "Entry {index}",
285
285
  structuredFormat: "Structured"
286
286
  }
287
- }, st = {
287
+ }, ot = {
288
288
  filterButtonText: "Filter",
289
289
  fieldLabel: "Filter by:",
290
290
  inputPlaceholder: "Enter a value",
@@ -292,7 +292,7 @@ const rt = {
292
292
  applyButtonText: "Apply",
293
293
  clearButtonText: "Clear",
294
294
  clearAllButtonText: "Clear all filters"
295
- }, ot = {
295
+ }, st = {
296
296
  errors: {
297
297
  fetch: "Could not fetch available items",
298
298
  invalid: "Please select a valid value"
@@ -317,8 +317,8 @@ const rt = {
317
317
  baseForm: nt,
318
318
  baseTable: it,
319
319
  baseConfigCard: lt,
320
- filter: st,
321
- debouncedFilter: ot,
320
+ filter: ot,
321
+ debouncedFilter: st,
322
322
  errors: ct,
323
323
  toggleModal: ut
324
324
  };
@@ -336,8 +336,8 @@ function je() {
336
336
  return !1;
337
337
  const n = /* @__PURE__ */ new Set([...t, ...a]);
338
338
  for (const i of n) {
339
- const l = t.filter((c) => c === i).length, o = a.filter((c) => c === i).length;
340
- if (l !== o)
339
+ const l = t.filter((c) => c === i).length, s = a.filter((c) => c === i).length;
340
+ if (l !== s)
341
341
  return !1;
342
342
  }
343
343
  return !0;
@@ -381,12 +381,12 @@ function pt(e, r, t, a = {
381
381
  t || (t = "100");
382
382
  const { axiosInstance: n } = de({
383
383
  headers: e.requestHeaders
384
- }), { i18n: { t: i } } = pe(), { debounce: l } = Xe(), o = l(async (w) => {
384
+ }), { i18n: { t: i } } = pe(), { debounce: l } = Xe(), s = l(async (w) => {
385
385
  await ae(w);
386
386
  }, 200), c = v(!1), p = v(""), b = v(""), y = v([]), T = v([]), _ = v(void 0), L = m(r);
387
387
  let f = `${e.apiBaseUrl}${L}`;
388
388
  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}` : ""));
389
- const { isValidUuid: A } = je(), P = async () => {
389
+ const { isValidUuid: A } = je(), D = async () => {
390
390
  try {
391
391
  c.value = !0;
392
392
  const { data: w } = await n.get(`${f}?size=${t}`);
@@ -448,8 +448,8 @@ function pt(e, r, t, a = {
448
448
  validationError: b,
449
449
  results: y,
450
450
  allRecords: _,
451
- loadItems: P,
452
- debouncedQueryChange: o
451
+ loadItems: D,
452
+ debouncedQueryChange: s
453
453
  };
454
454
  }
455
455
  function ft(e, r) {
@@ -504,12 +504,12 @@ function Ke(e, r) {
504
504
  () => a.value.startsWith("/") ? new URL(`${window.location.origin}${a.value}`) : new URL(a.value)
505
505
  );
506
506
  return (l) => {
507
- const { page: o, pageSize: c, offset: p, sortColumnKey: b, sortColumnOrder: y, query: T } = l;
507
+ const { page: s, pageSize: c, offset: p, sortColumnKey: b, sortColumnOrder: y, query: T } = l;
508
508
  try {
509
509
  let _ = new URL(i.value.href);
510
510
  return n.value && T ? (_.search = "", _ = t.value.app === "konnect" ? new URL(`${_.href}?filter[name][contains]=${T}`) : new URL(`${_.href}/${T}/`)) : (n.value || new URLSearchParams(T).forEach((L, f) => {
511
511
  _.searchParams.append(f, L);
512
- }), 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;
512
+ }), 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;
513
513
  } catch (_) {
514
514
  return console.error("RouteList(fetcher)", _), a.value;
515
515
  }
@@ -521,11 +521,11 @@ function gt(e, r, t = "data") {
521
521
  }), i = Ke(e, a), l = v({
522
522
  status: Q.Idle
523
523
  });
524
- return { fetcher: async (o) => {
524
+ return { fetcher: async (s) => {
525
525
  try {
526
526
  l.value = { status: Q.Loading };
527
- let c = i(o);
528
- c.includes("filter[name]") && (c = `${c}&page[size]=${o.pageSize}&page[number]=${o.page}`);
527
+ let c = i(s);
528
+ c.includes("filter[name]") && (c = `${c}&page[size]=${s.pageSize}&page[number]=${s.page}`);
529
529
  const { data: p } = await n.get(c), b = t && t.replace(/[^\w-_]/gi, "");
530
530
  let y;
531
531
  p[b] && Array.isArray(p[b]) ? y = p[b] : Array.isArray(p) ? y = p : y = Object.keys(p).length ? [p] : [];
@@ -547,7 +547,7 @@ function gt(e, r, t = "data") {
547
547
  data: [],
548
548
  total: 0
549
549
  };
550
- return o.query && c.response.status === 404 ? (l.value = {
550
+ return s.query && c.response.status === 404 ? (l.value = {
551
551
  status: Q.NoResults,
552
552
  response: p,
553
553
  error: c
@@ -618,12 +618,12 @@ function _t(e) {
618
618
  const i = t[a];
619
619
  if (!i)
620
620
  return !1;
621
- const [l, o] = i;
622
- return !(l && ke(n, l, "<") || o && ke(n, o, ">"));
621
+ const [l, s] = i;
622
+ return !(l && ke(n, l, "<") || s && ke(n, s, ">"));
623
623
  }
624
624
  function St(e) {
625
625
  const r = v(0), t = v(0), a = v(!1);
626
- return se(e, (n) => {
626
+ return oe(e, (n) => {
627
627
  n && !a.value && (r.value = n.offsetWidth, t.value = n.scrollWidth, a.value = !0);
628
628
  }), {
629
629
  isTruncated: N(() => r.value < t.value)
@@ -649,14 +649,14 @@ const fe = {
649
649
  return t;
650
650
  }, Tt = "#3a3f51";
651
651
  /*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
652
- function Pe(e) {
652
+ function De(e) {
653
653
  return typeof e > "u" || e === null;
654
654
  }
655
655
  function At(e) {
656
656
  return typeof e == "object" && e !== null;
657
657
  }
658
658
  function Nt(e) {
659
- return Array.isArray(e) ? e : Pe(e) ? [] : [e];
659
+ return Array.isArray(e) ? e : De(e) ? [] : [e];
660
660
  }
661
661
  function It(e, r) {
662
662
  var t, a, n, i;
@@ -674,29 +674,29 @@ function xt(e, r) {
674
674
  function Et(e) {
675
675
  return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
676
676
  }
677
- var Ot = Pe, jt = At, Kt = Nt, $t = xt, Ft = Et, Pt = It, he = {
677
+ var Ot = De, jt = At, Kt = Nt, $t = xt, Ft = Et, Dt = It, he = {
678
678
  isNothing: Ot,
679
679
  isObject: jt,
680
680
  toArray: Kt,
681
681
  repeat: $t,
682
682
  isNegativeZero: Ft,
683
- extend: Pt
683
+ extend: Dt
684
684
  };
685
- function De(e, r) {
685
+ function Pe(e, r) {
686
686
  var t = "", a = e.reason || "(unknown reason)";
687
687
  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 += `
688
688
 
689
689
  ` + e.mark.snippet), a + " " + t) : a;
690
690
  }
691
691
  function ne(e, r) {
692
- 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 || "";
692
+ Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = r, this.message = Pe(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
693
693
  }
694
694
  ne.prototype = Object.create(Error.prototype);
695
695
  ne.prototype.constructor = ne;
696
696
  ne.prototype.toString = function(e) {
697
- return this.name + ": " + De(this, e);
697
+ return this.name + ": " + Pe(this, e);
698
698
  };
699
- var X = ne, Dt = [
699
+ var X = ne, Pt = [
700
700
  "kind",
701
701
  "multi",
702
702
  "resolve",
@@ -722,7 +722,7 @@ function Ut(e) {
722
722
  }
723
723
  function Lt(e, r) {
724
724
  if (r = r || {}, Object.keys(r).forEach(function(t) {
725
- if (Dt.indexOf(t) === -1)
725
+ if (Pt.indexOf(t) === -1)
726
726
  throw new X('Unknown option "' + t + '" is met in definition of "' + e + '" YAML type.');
727
727
  }), this.options = r, this.tag = e, this.kind = r.kind || null, this.resolve = r.resolve || function() {
728
728
  return !0;
@@ -949,7 +949,7 @@ function ir(e) {
949
949
  function lr(e) {
950
950
  return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !he.isNegativeZero(e);
951
951
  }
952
- var sr = new $("tag:yaml.org,2002:int", {
952
+ var or = new $("tag:yaml.org,2002:int", {
953
953
  kind: "scalar",
954
954
  resolve: nr,
955
955
  construct: ir,
@@ -976,12 +976,12 @@ var sr = new $("tag:yaml.org,2002:int", {
976
976
  decimal: [10, "dec"],
977
977
  hexadecimal: [16, "hex"]
978
978
  }
979
- }), or = new RegExp(
979
+ }), sr = new RegExp(
980
980
  // 2.5e4, 2.5 and integers
981
981
  "^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
982
982
  );
983
983
  function cr(e) {
984
- return !(e === null || !or.test(e) || // Quick hack to not allow integers end with `_`
984
+ return !(e === null || !sr.test(e) || // Quick hack to not allow integers end with `_`
985
985
  // Probably should update regexp & check speed
986
986
  e[e.length - 1] === "_");
987
987
  }
@@ -1037,7 +1037,7 @@ var yr = new $("tag:yaml.org,2002:float", {
1037
1037
  implicit: [
1038
1038
  Vt,
1039
1039
  er,
1040
- sr,
1040
+ or,
1041
1041
  yr
1042
1042
  ]
1043
1043
  }), gr = hr, Me = new RegExp(
@@ -1049,17 +1049,17 @@ function mr(e) {
1049
1049
  return e === null ? !1 : Me.exec(e) !== null || Ue.exec(e) !== null;
1050
1050
  }
1051
1051
  function vr(e) {
1052
- var r, t, a, n, i, l, o, c = 0, p = null, b, y, T;
1052
+ var r, t, a, n, i, l, s, c = 0, p = null, b, y, T;
1053
1053
  if (r = Me.exec(e), r === null && (r = Ue.exec(e)), r === null)
1054
1054
  throw new Error("Date resolve error");
1055
1055
  if (t = +r[1], a = +r[2] - 1, n = +r[3], !r[4])
1056
1056
  return new Date(Date.UTC(t, a, n));
1057
- if (i = +r[4], l = +r[5], o = +r[6], r[7]) {
1057
+ if (i = +r[4], l = +r[5], s = +r[6], r[7]) {
1058
1058
  for (c = r[7].slice(0, 3); c.length < 3; )
1059
1059
  c += "0";
1060
1060
  c = +c;
1061
1061
  }
1062
- return r[9] && (b = +r[10], y = +(r[11] || 0), p = (b * 60 + y) * 6e4, r[9] === "-" && (p = -p)), T = new Date(Date.UTC(t, a, n, i, l, o, c)), p && T.setTime(T.getTime() - p), T;
1062
+ return r[9] && (b = +r[10], y = +(r[11] || 0), p = (b * 60 + y) * 6e4, r[9] === "-" && (p = -p)), T = new Date(Date.UTC(t, a, n, i, l, s, c)), p && T.setTime(T.getTime() - p), T;
1063
1063
  }
1064
1064
  function br(e) {
1065
1065
  return e.toISOString();
@@ -1092,10 +1092,10 @@ function _r(e) {
1092
1092
  return a % 8 === 0;
1093
1093
  }
1094
1094
  function Sr(e) {
1095
- var r, t, a = e.replace(/[\r\n=]/g, ""), n = a.length, i = ge, l = 0, o = [];
1095
+ var r, t, a = e.replace(/[\r\n=]/g, ""), n = a.length, i = ge, l = 0, s = [];
1096
1096
  for (r = 0; r < n; r++)
1097
- r % 4 === 0 && r && (o.push(l >> 16 & 255), o.push(l >> 8 & 255), o.push(l & 255)), l = l << 6 | i.indexOf(a.charAt(r));
1098
- return t = n % 4 * 6, t === 0 ? (o.push(l >> 16 & 255), o.push(l >> 8 & 255), o.push(l & 255)) : t === 18 ? (o.push(l >> 10 & 255), o.push(l >> 2 & 255)) : t === 12 && o.push(l >> 4 & 255), new Uint8Array(o);
1097
+ r % 4 === 0 && r && (s.push(l >> 16 & 255), s.push(l >> 8 & 255), s.push(l & 255)), l = l << 6 | i.indexOf(a.charAt(r));
1098
+ return t = n % 4 * 6, t === 0 ? (s.push(l >> 16 & 255), s.push(l >> 8 & 255), s.push(l & 255)) : t === 18 ? (s.push(l >> 10 & 255), s.push(l >> 2 & 255)) : t === 12 && s.push(l >> 4 & 255), new Uint8Array(s);
1099
1099
  }
1100
1100
  function Tr(e) {
1101
1101
  var r = "", t = 0, a, n, i = e.length, l = ge;
@@ -1116,9 +1116,9 @@ var Nr = new $("tag:yaml.org,2002:binary", {
1116
1116
  function Er(e) {
1117
1117
  if (e === null)
1118
1118
  return !0;
1119
- var r = [], t, a, n, i, l, o = e;
1120
- for (t = 0, a = o.length; t < a; t += 1) {
1121
- if (n = o[t], l = !1, xr.call(n) !== "[object Object]")
1119
+ var r = [], t, a, n, i, l, s = e;
1120
+ for (t = 0, a = s.length; t < a; t += 1) {
1121
+ if (n = s[t], l = !1, xr.call(n) !== "[object Object]")
1122
1122
  return !1;
1123
1123
  for (i in n)
1124
1124
  if (Ir.call(n, i))
@@ -1162,17 +1162,17 @@ function Fr(e) {
1162
1162
  a = l[r], n = Object.keys(a), i[r] = [n[0], a[n[0]]];
1163
1163
  return i;
1164
1164
  }
1165
- var Pr = new $("tag:yaml.org,2002:pairs", {
1165
+ var Dr = new $("tag:yaml.org,2002:pairs", {
1166
1166
  kind: "sequence",
1167
1167
  resolve: $r,
1168
1168
  construct: Fr
1169
- }), Dr = Object.prototype.hasOwnProperty;
1169
+ }), Pr = Object.prototype.hasOwnProperty;
1170
1170
  function Mr(e) {
1171
1171
  if (e === null)
1172
1172
  return !0;
1173
1173
  var r, t = e;
1174
1174
  for (r in t)
1175
- if (Dr.call(t, r) && t[r] !== null)
1175
+ if (Pr.call(t, r) && t[r] !== null)
1176
1176
  return !1;
1177
1177
  return !0;
1178
1178
  }
@@ -1192,7 +1192,7 @@ gr.extend({
1192
1192
  explicit: [
1193
1193
  Nr,
1194
1194
  jr,
1195
- Pr,
1195
+ Dr,
1196
1196
  Lr
1197
1197
  ]
1198
1198
  });
@@ -1227,22 +1227,22 @@ const Br = {
1227
1227
  return ((f = t.value) == null ? void 0 : f.querySelector('[data-testid="first-col"]')) || null;
1228
1228
  }), n = N(() => {
1229
1229
  var f, A;
1230
- const P = (f = r.rowEl) == null ? void 0 : f.querySelectorAll("td");
1231
- return P ? ((A = P[0]) == null ? void 0 : A.getAttribute("data-testid")) === r.keyName : !1;
1230
+ const D = (f = r.rowEl) == null ? void 0 : f.querySelectorAll("td");
1231
+ return D ? ((A = D[0]) == null ? void 0 : A.getAttribute("data-testid")) === r.keyName : !1;
1232
1232
  });
1233
1233
  let i;
1234
1234
  const l = () => {
1235
1235
  i && (i.disconnect(), i = void 0);
1236
- }, o = () => {
1237
- var f, A, P;
1238
- p.value = ((f = a.value) == null ? void 0 : f.getBoundingClientRect().width) || 0, b.value = ((A = t.value) == null ? void 0 : A.clientWidth) || 0, y.value = ((P = c.value) == null ? void 0 : P.innerText) || "";
1239
- }, c = v({}), p = v(0), b = v(0), y = v(""), T = N(() => [a.value, t.value]), _ = se(
1236
+ }, s = () => {
1237
+ var f, A, D;
1238
+ p.value = ((f = a.value) == null ? void 0 : f.getBoundingClientRect().width) || 0, b.value = ((A = t.value) == null ? void 0 : A.clientWidth) || 0, y.value = ((D = c.value) == null ? void 0 : D.innerText) || "";
1239
+ }, c = v({}), p = v(0), b = v(0), y = v(""), T = N(() => [a.value, t.value]), _ = oe(
1240
1240
  T,
1241
1241
  (f) => {
1242
1242
  if (n.value && (l(), "ResizeObserver" in window && window)) {
1243
1243
  i = new ResizeObserver((A) => {
1244
1244
  window.requestAnimationFrame(() => {
1245
- !Array.isArray(A) || !A.length || o();
1245
+ !Array.isArray(A) || !A.length || s();
1246
1246
  });
1247
1247
  });
1248
1248
  for (const A of f)
@@ -1252,23 +1252,23 @@ const Br = {
1252
1252
  { immediate: !0, flush: "post", deep: !0 }
1253
1253
  ), L = N(() => n.value ? p.value > b.value : !1);
1254
1254
  return Re(() => {
1255
- o();
1255
+ s();
1256
1256
  }), qe(() => {
1257
1257
  _();
1258
1258
  }), (f, A) => {
1259
- const P = D("KTooltip");
1259
+ const D = P("KTooltip");
1260
1260
  return j(), V("span", {
1261
1261
  ref_key: "contentRef",
1262
1262
  ref: c,
1263
1263
  class: "content-wrapper"
1264
1264
  }, [
1265
1265
  n.value ? (j(), V("span", Br, [
1266
- g(P, {
1266
+ g(D, {
1267
1267
  label: L.value ? y.value : "",
1268
1268
  "max-width": "300",
1269
1269
  placement: "bottomStart"
1270
1270
  }, {
1271
- default: s(() => [
1271
+ default: o(() => [
1272
1272
  Y(f.$slots, "default", {}, void 0, !0)
1273
1273
  ]),
1274
1274
  _: 3
@@ -1401,7 +1401,7 @@ const Br = {
1401
1401
  title: (u = t.errorMessage) == null ? void 0 : u.title,
1402
1402
  message: (k = t.errorMessage) == null ? void 0 : k.message
1403
1403
  };
1404
- }), l = N(() => t.cacheIdentifier || t.preferencesStorageKey), o = (u) => u.hasData || !!t.query, c = N(() => {
1404
+ }), l = N(() => t.cacheIdentifier || t.preferencesStorageKey), s = (u) => u.hasData || !!t.query, c = N(() => {
1405
1405
  const u = [];
1406
1406
  return Object.keys(t.tableHeaders).forEach((k) => {
1407
1407
  const B = t.tableHeaders[k];
@@ -1439,22 +1439,22 @@ const Br = {
1439
1439
  a("click:row", k);
1440
1440
  }), A = (u) => {
1441
1441
  a("sort", u);
1442
- }, { setTablePreferences: P, getTablePreferences: Z } = tt(), ae = N(() => {
1442
+ }, { setTablePreferences: D, getTablePreferences: Z } = tt(), ae = N(() => {
1443
1443
  const u = Z(t.preferencesStorageKey);
1444
1444
  return {
1445
1445
  ...t.initialFetcherParams,
1446
1446
  ...u
1447
1447
  };
1448
1448
  }), w = (u) => {
1449
- t.preferencesStorageKey && P(t.preferencesStorageKey, u);
1449
+ t.preferencesStorageKey && D(t.preferencesStorageKey, u);
1450
1450
  };
1451
1451
  return (u, k) => {
1452
- const B = D("KIcon"), E = D("KButton"), K = D("KDropdown"), z = D("KTable"), I = D("KCard");
1452
+ const B = P("KIcon"), E = P("KButton"), K = P("KDropdown"), z = P("KTable"), I = P("KCard");
1453
1453
  return j(), W(I, {
1454
1454
  class: "kong-ui-entity-base-table",
1455
1455
  title: e.title
1456
1456
  }, {
1457
- default: s(() => [
1457
+ default: o(() => [
1458
1458
  g(z, {
1459
1459
  ref_key: "tableRefs",
1460
1460
  ref: b,
@@ -1487,17 +1487,17 @@ const Br = {
1487
1487
  onSort: k[0] || (k[0] = (O) => A(O)),
1488
1488
  "onUpdate:tablePreferences": w
1489
1489
  }, Te({
1490
- toolbar: s(({ state: O }) => [
1490
+ toolbar: o(({ state: O }) => [
1491
1491
  Ae(ee("div", Hr, [
1492
1492
  Y(u.$slots, "toolbar-filter", {}, void 0, !0),
1493
1493
  u.$slots["toolbar-button"] ? (j(), V("div", Jr, [
1494
1494
  Y(u.$slots, "toolbar-button", {}, void 0, !0)
1495
1495
  ])) : G("", !0)
1496
1496
  ], 512), [
1497
- [Ne, o(O)]
1497
+ [Ne, s(O)]
1498
1498
  ])
1499
1499
  ]),
1500
- actions: s(({ row: O, rowKey: R, rowValue: H }) => [
1500
+ actions: o(({ row: O, rowKey: R, rowValue: H }) => [
1501
1501
  ee("div", {
1502
1502
  class: "actions-container",
1503
1503
  "data-testid": O.name
@@ -1506,20 +1506,20 @@ const Br = {
1506
1506
  "kpop-attributes": { placement: "bottomEnd" },
1507
1507
  width: e.dropdownMenuWidth
1508
1508
  }, {
1509
- items: s(() => [
1509
+ items: o(() => [
1510
1510
  Y(u.$slots, "actions", {
1511
1511
  row: O,
1512
1512
  rowKey: R,
1513
1513
  rowValue: H
1514
1514
  }, void 0, !0)
1515
1515
  ]),
1516
- default: s(() => [
1516
+ default: o(() => [
1517
1517
  g(E, {
1518
1518
  class: "actions-trigger",
1519
1519
  "data-testid": "overflow-actions-button",
1520
1520
  size: "small"
1521
1521
  }, {
1522
- icon: s(() => [
1522
+ icon: o(() => [
1523
1523
  g(B, {
1524
1524
  color: m(Tt),
1525
1525
  icon: "more",
@@ -1537,12 +1537,12 @@ const Br = {
1537
1537
  }, [
1538
1538
  Ie(e.tableHeaders, (O, R) => ({
1539
1539
  name: R,
1540
- fn: s(({ row: H, rowKey: d, rowValue: C }) => [
1540
+ fn: o(({ row: H, rowKey: d, rowValue: C }) => [
1541
1541
  g(Wr, {
1542
1542
  "key-name": String(R),
1543
1543
  "row-el": y(H)
1544
1544
  }, {
1545
- default: s(() => [
1545
+ default: o(() => [
1546
1546
  Y(u.$slots, R, {
1547
1547
  row: H,
1548
1548
  rowKey: d,
@@ -1608,11 +1608,11 @@ const Br = {
1608
1608
  setup(e, { emit: r }) {
1609
1609
  const { i18nT: t } = fe.useI18n(), a = e, n = r, i = N(() => a.needConfirm ? a.entityName : ""), l = () => {
1610
1610
  n("cancel");
1611
- }, o = () => {
1611
+ }, s = () => {
1612
1612
  n("proceed");
1613
1613
  };
1614
1614
  return (c, p) => {
1615
- const b = D("KAlert"), y = D("KPrompt");
1615
+ const b = P("KAlert"), y = P("KPrompt");
1616
1616
  return j(), W(y, {
1617
1617
  "action-button-text": "Yes, delete",
1618
1618
  "action-pending": e.actionPending,
@@ -1622,12 +1622,12 @@ const Br = {
1622
1622
  title: e.title,
1623
1623
  type: "danger",
1624
1624
  onCanceled: l,
1625
- onProceed: o
1625
+ onProceed: s
1626
1626
  }, {
1627
- "body-content": s(() => [
1627
+ "body-content": o(() => [
1628
1628
  e.error ? (j(), V("div", Zr, [
1629
1629
  g(b, { appearance: "danger" }, {
1630
- alertMessage: s(() => [
1630
+ alertMessage: o(() => [
1631
1631
  U(x(e.error), 1)
1632
1632
  ]),
1633
1633
  _: 1
@@ -1638,14 +1638,14 @@ const Br = {
1638
1638
  keypath: a.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
1639
1639
  tag: "p"
1640
1640
  }, Te({
1641
- entityType: s(() => [
1641
+ entityType: o(() => [
1642
1642
  U(x(a.entityType), 1)
1643
1643
  ]),
1644
1644
  _: 2
1645
1645
  }, [
1646
1646
  a.entityName ? {
1647
1647
  name: "entityName",
1648
- fn: s(() => [
1648
+ fn: o(() => [
1649
1649
  ee("strong", null, x(a.entityName), 1)
1650
1650
  ]),
1651
1651
  key: "0"
@@ -1684,7 +1684,7 @@ const Br = {
1684
1684
  },
1685
1685
  setup(e) {
1686
1686
  const r = e, t = v(void 0), a = N(() => t.value === !0 || t.value !== void 0 && r.forceShow === !0);
1687
- return se(() => r.authFunction, async () => {
1687
+ return oe(() => r.authFunction, async () => {
1688
1688
  t.value = await r.authFunction();
1689
1689
  }, { immediate: !0 }), (n, i) => a.value ? Y(n.$slots, "default", {
1690
1690
  key: 0,
@@ -1733,7 +1733,7 @@ const Br = {
1733
1733
  setup(e, { emit: r }) {
1734
1734
  const t = r, a = e, { i18n: { t: n, formatUnixTimeStamp: i } } = Ze.useI18n(), { axiosInstance: l } = ta({
1735
1735
  headers: a.config.requestHeaders
1736
- }), o = v(1), c = {
1736
+ }), s = v(1), c = {
1737
1737
  acls: {
1738
1738
  group: { label: n("credentials.list.table_headers.acls.group") },
1739
1739
  created_at: { label: n("credentials.list.table_headers.acls.created_at") },
@@ -1778,18 +1778,18 @@ const Br = {
1778
1778
  let d = `${a.config.apiBaseUrl}${Qe.list[a.config.app]}`;
1779
1779
  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;
1780
1780
  }), { fetcher: y, fetcherState: T } = aa(a.config, b), _ = () => {
1781
- o.value++;
1781
+ s.value++;
1782
1782
  }, L = v(null), f = (d, C, q) => {
1783
1783
  const F = C ? d[C] : JSON.stringify(d);
1784
1784
  if (!q(F)) {
1785
1785
  Z(d, C);
1786
1786
  return;
1787
1787
  }
1788
- P(d, C);
1788
+ D(d, C);
1789
1789
  }, A = (d, C, q) => {
1790
1790
  const { type: F } = d;
1791
- F === "success" ? P(C, q) : Z(C, q);
1792
- }, P = (d, C) => {
1791
+ F === "success" ? D(C, q) : Z(C, q);
1792
+ }, D = (d, C) => {
1793
1793
  t("copy:success", {
1794
1794
  entity: d,
1795
1795
  field: C,
@@ -1813,7 +1813,7 @@ const Br = {
1813
1813
  if ((d = w.value) != null && d.id) {
1814
1814
  k.value = !0;
1815
1815
  try {
1816
- await l.delete(E(w.value.id)), k.value = !1, u.value = !1, o.value++, t("delete:success", w.value);
1816
+ await l.delete(E(w.value.id)), k.value = !1, u.value = !1, s.value++, t("delete:success", w.value);
1817
1817
  } catch (F) {
1818
1818
  B.value = ((q = (C = F.response) == null ? void 0 : C.data) == null ? void 0 : q.message) || F.message || n("credentials.error.delete"), t("error", F);
1819
1819
  } finally {
@@ -1821,7 +1821,7 @@ const Br = {
1821
1821
  }
1822
1822
  }
1823
1823
  }, R = v(!0);
1824
- se(T, (d) => {
1824
+ oe(T, (d) => {
1825
1825
  var C, q, F, le;
1826
1826
  if (Array.isArray((C = d == null ? void 0 : d.response) == null ? void 0 : C.data) && (R.value = d.response.data.length > 0), d.status === Q.Error) {
1827
1827
  L.value = {
@@ -1840,7 +1840,7 @@ const Br = {
1840
1840
  return Be(async () => {
1841
1841
  await a.canCreate() && (H.value.title = n(`credentials.list.empty_state.${a.config.plugin}.title`), H.value.ctaText = n(`credentials.list.empty_state.${a.config.plugin}.cta`));
1842
1842
  }), (d, C) => {
1843
- const q = D("KButton"), F = D("CopyUuid"), le = D("KBadge"), Le = D("KTruncate"), J = D("KDropdownItem"), te = D("KClipboardProvider");
1843
+ const q = P("KButton"), F = P("CopyUuid"), le = P("KBadge"), Le = P("KTruncate"), J = P("KDropdownItem"), te = P("KClipboardProvider");
1844
1844
  return j(), V("div", na, [
1845
1845
  g(m(Vr), {
1846
1846
  "cache-identifier": e.cacheIdentifier,
@@ -1851,89 +1851,91 @@ const Br = {
1851
1851
  "enable-entity-actions": "",
1852
1852
  "error-message": L.value,
1853
1853
  fetcher: m(y),
1854
- "fetcher-cache-key": o.value,
1854
+ "fetcher-cache-key": s.value,
1855
1855
  "pagination-type": "offset",
1856
1856
  "preferences-storage-key": "kong-ui-entities-consumer-credentials-list",
1857
1857
  "table-headers": p.value,
1858
1858
  "use-action-outside": e.useActionOutside,
1859
1859
  onSort: _
1860
1860
  }, {
1861
- "toolbar-button": s(() => [
1862
- (j(), W(ze, {
1863
- disabled: !e.useActionOutside,
1864
- to: "#kong-ui-app-page-header-action-button"
1865
- }, [
1866
- g(m(ce), {
1867
- "auth-function": () => e.canCreate()
1868
- }, {
1869
- default: s(() => [
1870
- Ae(g(q, {
1871
- appearance: "primary",
1872
- "data-testid": "toolbar-add-credential",
1873
- icon: "plus",
1874
- to: e.config.createRoute
1875
- }, {
1876
- default: s(() => [
1877
- U(x(m(n)(`credentials.list.toolbar_actions.${e.config.plugin}.new`)), 1)
1878
- ]),
1879
- _: 1
1880
- }, 8, ["to"]), [
1881
- [Ne, R.value]
1882
- ])
1883
- ]),
1884
- _: 1
1885
- }, 8, ["auth-function"])
1886
- ], 8, ["disabled"]))
1861
+ "toolbar-button": o(() => [
1862
+ (j(), W(ze(e.useActionOutside ? "Teleport" : "div"), {
1863
+ to: e.useActionOutside ? "#kong-ui-app-page-header-action-button" : void 0
1864
+ }, {
1865
+ default: o(() => [
1866
+ g(m(ce), {
1867
+ "auth-function": () => e.canCreate()
1868
+ }, {
1869
+ default: o(() => [
1870
+ Ae(g(q, {
1871
+ appearance: "primary",
1872
+ "data-testid": "toolbar-add-credential",
1873
+ icon: "plus",
1874
+ to: e.config.createRoute
1875
+ }, {
1876
+ default: o(() => [
1877
+ U(x(m(n)(`credentials.list.toolbar_actions.${e.config.plugin}.new`)), 1)
1878
+ ]),
1879
+ _: 1
1880
+ }, 8, ["to"]), [
1881
+ [Ne, R.value]
1882
+ ])
1883
+ ]),
1884
+ _: 1
1885
+ }, 8, ["auth-function"])
1886
+ ]),
1887
+ _: 1
1888
+ }, 8, ["to"]))
1887
1889
  ]),
1888
- group: s(({ rowValue: h }) => [
1890
+ group: o(({ rowValue: h }) => [
1889
1891
  ee("b", null, x(h ?? "-"), 1)
1890
1892
  ]),
1891
- name: s(({ rowValue: h }) => [
1893
+ name: o(({ rowValue: h }) => [
1892
1894
  ee("b", null, x(h ?? "-"), 1)
1893
1895
  ]),
1894
- username: s(({ rowValue: h }) => [
1896
+ username: o(({ rowValue: h }) => [
1895
1897
  ee("span", null, x(h ?? "-"), 1)
1896
1898
  ]),
1897
- password: s(({ row: h, rowValue: S }) => [
1899
+ password: o(({ row: h, rowValue: S }) => [
1898
1900
  g(F, {
1899
1901
  format: "redacted",
1900
1902
  notify: (M) => A(M, h, "password"),
1901
1903
  uuid: S
1902
1904
  }, null, 8, ["notify", "uuid"])
1903
1905
  ]),
1904
- key: s(({ row: h, rowValue: S }) => [
1906
+ key: o(({ row: h, rowValue: S }) => [
1905
1907
  g(F, {
1906
1908
  format: "redacted",
1907
1909
  notify: (M) => A(M, h, "key"),
1908
1910
  uuid: S
1909
1911
  }, null, 8, ["notify", "uuid"])
1910
1912
  ]),
1911
- client_secret: s(({ row: h, rowValue: S }) => [
1913
+ client_secret: o(({ row: h, rowValue: S }) => [
1912
1914
  g(F, {
1913
1915
  format: "redacted",
1914
1916
  notify: (M) => A(M, h, "client_secret"),
1915
1917
  uuid: S
1916
1918
  }, null, 8, ["notify", "uuid"])
1917
1919
  ]),
1918
- secret: s(({ row: h, rowValue: S }) => [
1920
+ secret: o(({ row: h, rowValue: S }) => [
1919
1921
  g(F, {
1920
1922
  format: "redacted",
1921
1923
  notify: (M) => A(M, h, "secret"),
1922
1924
  uuid: S
1923
1925
  }, null, 8, ["notify", "uuid"])
1924
1926
  ]),
1925
- created_at: s(({ rowValue: h }) => [
1927
+ created_at: o(({ rowValue: h }) => [
1926
1928
  U(x(m(i)(h)), 1)
1927
1929
  ]),
1928
- tags: s(({ rowValue: h }) => [
1930
+ tags: o(({ rowValue: h }) => [
1929
1931
  (h == null ? void 0 : h.length) > 0 ? (j(), W(Le, { key: 0 }, {
1930
- default: s(() => [
1932
+ default: o(() => [
1931
1933
  (j(!0), V(We, null, Ie(h, (S) => (j(), W(le, {
1932
1934
  key: S,
1933
1935
  onClick: C[0] || (C[0] = He(() => {
1934
1936
  }, ["stop"]))
1935
1937
  }, {
1936
- default: s(() => [
1938
+ default: o(() => [
1937
1939
  U(x(S), 1)
1938
1940
  ]),
1939
1941
  _: 2
@@ -1942,14 +1944,14 @@ const Br = {
1942
1944
  _: 2
1943
1945
  }, 1024)) : (j(), V("span", ia, "-"))
1944
1946
  ]),
1945
- actions: s(({ row: h }) => [
1947
+ actions: o(({ row: h }) => [
1946
1948
  g(te, null, {
1947
- default: s(({ copyToClipboard: S }) => [
1949
+ default: o(({ copyToClipboard: S }) => [
1948
1950
  g(J, {
1949
1951
  "data-testid": "action-entity-copy-id",
1950
1952
  onClick: (M) => f(h, "id", S)
1951
1953
  }, {
1952
- default: s(() => [
1954
+ default: o(() => [
1953
1955
  U(x(m(n)("credentials.actions.copy_id")), 1)
1954
1956
  ]),
1955
1957
  _: 2
@@ -1958,12 +1960,12 @@ const Br = {
1958
1960
  _: 2
1959
1961
  }, 1024),
1960
1962
  e.config.plugin === "basic-auth" ? (j(), W(te, { key: 0 }, {
1961
- default: s(({ copyToClipboard: S }) => [
1963
+ default: o(({ copyToClipboard: S }) => [
1962
1964
  g(J, {
1963
1965
  "data-testid": "action-entity-copy-credential",
1964
1966
  onClick: (M) => f(h, "password", S)
1965
1967
  }, {
1966
- default: s(() => [
1968
+ default: o(() => [
1967
1969
  U(x(m(n)("credentials.actions.copy_credential")), 1)
1968
1970
  ]),
1969
1971
  _: 2
@@ -1972,12 +1974,12 @@ const Br = {
1972
1974
  _: 2
1973
1975
  }, 1024)) : G("", !0),
1974
1976
  ["key-auth", "key-auth-enc", "jwt"].includes(e.config.plugin) ? (j(), W(te, { key: 1 }, {
1975
- default: s(({ copyToClipboard: S }) => [
1977
+ default: o(({ copyToClipboard: S }) => [
1976
1978
  g(J, {
1977
1979
  "data-testid": "action-entity-copy-key",
1978
1980
  onClick: (M) => f(h, "key", S)
1979
1981
  }, {
1980
- default: s(() => [
1982
+ default: o(() => [
1981
1983
  U(x(m(n)("credentials.actions.copy_key")), 1)
1982
1984
  ]),
1983
1985
  _: 2
@@ -1986,12 +1988,12 @@ const Br = {
1986
1988
  _: 2
1987
1989
  }, 1024)) : G("", !0),
1988
1990
  e.config.plugin === "oauth2" ? (j(), W(te, { key: 2 }, {
1989
- default: s(({ copyToClipboard: S }) => [
1991
+ default: o(({ copyToClipboard: S }) => [
1990
1992
  g(J, {
1991
1993
  "data-testid": "action-entity-copy-secret",
1992
1994
  onClick: (M) => f(h, "client_secret", S)
1993
1995
  }, {
1994
- default: s(() => [
1996
+ default: o(() => [
1995
1997
  U(x(m(n)("credentials.actions.copy_secret")), 1)
1996
1998
  ]),
1997
1999
  _: 2
@@ -2000,12 +2002,12 @@ const Br = {
2000
2002
  _: 2
2001
2003
  }, 1024)) : G("", !0),
2002
2004
  e.config.plugin === "hmac-auth" ? (j(), W(te, { key: 3 }, {
2003
- default: s(({ copyToClipboard: S }) => [
2005
+ default: o(({ copyToClipboard: S }) => [
2004
2006
  g(J, {
2005
2007
  "data-testid": "action-entity-copy-secret",
2006
2008
  onClick: (M) => f(h, "secret", S)
2007
2009
  }, {
2008
- default: s(() => [
2010
+ default: o(() => [
2009
2011
  U(x(m(n)("credentials.actions.copy_secret")), 1)
2010
2012
  ]),
2011
2013
  _: 2
@@ -2014,12 +2016,12 @@ const Br = {
2014
2016
  _: 2
2015
2017
  }, 1024)) : G("", !0),
2016
2018
  g(te, null, {
2017
- default: s(({ copyToClipboard: S }) => [
2019
+ default: o(({ copyToClipboard: S }) => [
2018
2020
  g(J, {
2019
2021
  "data-testid": "action-entity-copy-json",
2020
2022
  onClick: (M) => f(h, void 0, S)
2021
2023
  }, {
2022
- default: s(() => [
2024
+ default: o(() => [
2023
2025
  U(x(m(n)("credentials.actions.copy_json")), 1)
2024
2026
  ]),
2025
2027
  _: 2
@@ -2030,7 +2032,7 @@ const Br = {
2030
2032
  g(m(ce), {
2031
2033
  "auth-function": () => e.canEdit(h)
2032
2034
  }, {
2033
- default: s(() => [
2035
+ default: o(() => [
2034
2036
  g(J, {
2035
2037
  "data-testid": "action-entity-edit",
2036
2038
  "has-divider": "",
@@ -2042,14 +2044,14 @@ const Br = {
2042
2044
  g(m(ce), {
2043
2045
  "auth-function": () => e.canDelete(h)
2044
2046
  }, {
2045
- default: s(() => [
2047
+ default: o(() => [
2046
2048
  g(J, {
2047
2049
  danger: "",
2048
2050
  "data-testid": "action-entity-delete",
2049
2051
  "has-divider": "",
2050
2052
  onClick: (S) => z(h)
2051
2053
  }, {
2052
- default: s(() => [
2054
+ default: o(() => [
2053
2055
  U(x(m(n)("credentials.actions.delete")), 1)
2054
2056
  ]),
2055
2057
  _: 2
@@ -2073,12 +2075,12 @@ const Br = {
2073
2075
  ]);
2074
2076
  };
2075
2077
  }
2076
- }), sa = (e, r) => {
2078
+ }), oa = (e, r) => {
2077
2079
  const t = e.__vccOpts || e;
2078
2080
  for (const [a, n] of r)
2079
2081
  t[a] = n;
2080
2082
  return t;
2081
- }, ka = /* @__PURE__ */ sa(la, [["__scopeId", "data-v-f6c6d08c"]]);
2083
+ }, ka = /* @__PURE__ */ oa(la, [["__scopeId", "data-v-6e469a8e"]]);
2082
2084
  export {
2083
2085
  ka as ConsumerCredentialList
2084
2086
  };
@@ -2,4 +2,4 @@
2
2
 
3
3
  `+e.mark.snippet),a+" "+r):a}function z(e,n){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=n,this.message=me(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}z.prototype=Object.create(Error.prototype),z.prototype.constructor=z,z.prototype.toString=function(e){return this.name+": "+me(this,e)};var M=z,dt=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],ut=["scalar","sequence","mapping"];function pt(e){var n={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(a){n[String(a)]=r})}),n}function ft(e,n){if(n=n||{},Object.keys(n).forEach(function(r){if(dt.indexOf(r)===-1)throw new M('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=n,this.tag=e,this.kind=n.kind||null,this.resolve=n.resolve||function(){return!0},this.construct=n.construct||function(r){return r},this.instanceOf=n.instanceOf||null,this.predicate=n.predicate||null,this.represent=n.represent||null,this.representName=n.representName||null,this.defaultStyle=n.defaultStyle||null,this.multi=n.multi||!1,this.styleAliases=pt(n.styleAliases||null),ut.indexOf(this.kind)===-1)throw new M('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var A=ft;function ge(e,n){var r=[];return e[n].forEach(function(a){var i=r.length;r.forEach(function(o,l){o.tag===a.tag&&o.kind===a.kind&&o.multi===a.multi&&(i=l)}),r[i]=a}),r}function yt(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},n,r;function a(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(n=0,r=arguments.length;n<r;n+=1)arguments[n].forEach(a);return e}function te(e){return this.extend(e)}te.prototype.extend=function(e){var n=[],r=[];if(e instanceof A)r.push(e);else if(Array.isArray(e))r=r.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(n=n.concat(e.implicit)),e.explicit&&(r=r.concat(e.explicit));else throw new M("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(i){if(!(i instanceof A))throw new M("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(i.loadKind&&i.loadKind!=="scalar")throw new M("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(i.multi)throw new M("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(i){if(!(i instanceof A))throw new M("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var a=Object.create(te.prototype);return a.implicit=(this.implicit||[]).concat(n),a.explicit=(this.explicit||[]).concat(r),a.compiledImplicit=ge(a,"implicit"),a.compiledExplicit=ge(a,"explicit"),a.compiledTypeMap=yt(a.compiledImplicit,a.compiledExplicit),a};var ht=te,mt=new A("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),gt=new A("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),bt=new A("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),wt=new ht({explicit:[mt,gt,bt]});function Ct(e){if(e===null)return!0;var n=e.length;return n===1&&e==="~"||n===4&&(e==="null"||e==="Null"||e==="NULL")}function kt(){return null}function _t(e){return e===null}var Nt=new A("tag:yaml.org,2002:null",{kind:"scalar",resolve:Ct,construct:kt,predicate:_t,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function St(e){if(e===null)return!1;var n=e.length;return n===4&&(e==="true"||e==="True"||e==="TRUE")||n===5&&(e==="false"||e==="False"||e==="FALSE")}function xt(e){return e==="true"||e==="True"||e==="TRUE"}function Tt(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var At=new A("tag:yaml.org,2002:bool",{kind:"scalar",resolve:St,construct:xt,predicate:Tt,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function Et(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function It(e){return 48<=e&&e<=55}function Ot(e){return 48<=e&&e<=57}function jt(e){if(e===null)return!1;var n=e.length,r=0,a=!1,i;if(!n)return!1;if(i=e[r],(i==="-"||i==="+")&&(i=e[++r]),i==="0"){if(r+1===n)return!0;if(i=e[++r],i==="b"){for(r++;r<n;r++)if(i=e[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;a=!0}return a&&i!=="_"}if(i==="x"){for(r++;r<n;r++)if(i=e[r],i!=="_"){if(!Et(e.charCodeAt(r)))return!1;a=!0}return a&&i!=="_"}if(i==="o"){for(r++;r<n;r++)if(i=e[r],i!=="_"){if(!It(e.charCodeAt(r)))return!1;a=!0}return a&&i!=="_"}}if(i==="_")return!1;for(;r<n;r++)if(i=e[r],i!=="_"){if(!Ot(e.charCodeAt(r)))return!1;a=!0}return!(!a||i==="_")}function Bt(e){var n=e,r=1,a;if(n.indexOf("_")!==-1&&(n=n.replace(/_/g,"")),a=n[0],(a==="-"||a==="+")&&(a==="-"&&(r=-1),n=n.slice(1),a=n[0]),n==="0")return 0;if(a==="0"){if(n[1]==="b")return r*parseInt(n.slice(2),2);if(n[1]==="x")return r*parseInt(n.slice(2),16);if(n[1]==="o")return r*parseInt(n.slice(2),8)}return r*parseInt(n,10)}function vt(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!ee.isNegativeZero(e)}var Dt=new A("tag:yaml.org,2002:int",{kind:"scalar",resolve:jt,construct:Bt,predicate:vt,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Kt=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function $t(e){return!(e===null||!Kt.test(e)||e[e.length-1]==="_")}function Vt(e){var n,r;return n=e.replace(/_/g,"").toLowerCase(),r=n[0]==="-"?-1:1,"+-".indexOf(n[0])>=0&&(n=n.slice(1)),n===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:n===".nan"?NaN:r*parseFloat(n,10)}var Ft=/^[-+]?[0-9]+e/;function Pt(e,n){var r;if(isNaN(e))switch(n){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(n){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(n){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(ee.isNegativeZero(e))return"-0.0";return r=e.toString(10),Ft.test(r)?r.replace("e",".e"):r}function qt(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||ee.isNegativeZero(e))}var Mt=new A("tag:yaml.org,2002:float",{kind:"scalar",resolve:$t,construct:Vt,predicate:qt,represent:Pt,defaultStyle:"lowercase"}),Lt=wt.extend({implicit:[Nt,At,Dt,Mt]}),Ut=Lt,be=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),we=new RegExp("^([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]))?))?$");function Rt(e){return e===null?!1:be.exec(e)!==null||we.exec(e)!==null}function zt(e){var n,r,a,i,o,l,s,c=0,p=null,m,y,_;if(n=be.exec(e),n===null&&(n=we.exec(e)),n===null)throw new Error("Date resolve error");if(r=+n[1],a=+n[2]-1,i=+n[3],!n[4])return new Date(Date.UTC(r,a,i));if(o=+n[4],l=+n[5],s=+n[6],n[7]){for(c=n[7].slice(0,3);c.length<3;)c+="0";c=+c}return n[9]&&(m=+n[10],y=+(n[11]||0),p=(m*60+y)*6e4,n[9]==="-"&&(p=-p)),_=new Date(Date.UTC(r,a,i,o,l,s,c)),p&&_.setTime(_.getTime()-p),_}function Wt(e){return e.toISOString()}var Ht=new A("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Rt,construct:zt,instanceOf:Date,represent:Wt});function Jt(e){return e==="<<"||e===null}var Yt=new A("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Jt}),re=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
4
4
  \r`;function Gt(e){if(e===null)return!1;var n,r,a=0,i=e.length,o=re;for(r=0;r<i;r++)if(n=o.indexOf(e.charAt(r)),!(n>64)){if(n<0)return!1;a+=6}return a%8===0}function Zt(e){var n,r,a=e.replace(/[\r\n=]/g,""),i=a.length,o=re,l=0,s=[];for(n=0;n<i;n++)n%4===0&&n&&(s.push(l>>16&255),s.push(l>>8&255),s.push(l&255)),l=l<<6|o.indexOf(a.charAt(n));return r=i%4*6,r===0?(s.push(l>>16&255),s.push(l>>8&255),s.push(l&255)):r===18?(s.push(l>>10&255),s.push(l>>2&255)):r===12&&s.push(l>>4&255),new Uint8Array(s)}function Qt(e){var n="",r=0,a,i,o=e.length,l=re;for(a=0;a<o;a++)a%3===0&&a&&(n+=l[r>>18&63],n+=l[r>>12&63],n+=l[r>>6&63],n+=l[r&63]),r=(r<<8)+e[a];return i=o%3,i===0?(n+=l[r>>18&63],n+=l[r>>12&63],n+=l[r>>6&63],n+=l[r&63]):i===2?(n+=l[r>>10&63],n+=l[r>>4&63],n+=l[r<<2&63],n+=l[64]):i===1&&(n+=l[r>>2&63],n+=l[r<<4&63],n+=l[64],n+=l[64]),n}function Xt(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var er=new A("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Gt,construct:Zt,predicate:Xt,represent:Qt}),tr=Object.prototype.hasOwnProperty,rr=Object.prototype.toString;function nr(e){if(e===null)return!0;var n=[],r,a,i,o,l,s=e;for(r=0,a=s.length;r<a;r+=1){if(i=s[r],l=!1,rr.call(i)!=="[object Object]")return!1;for(o in i)if(tr.call(i,o))if(!l)l=!0;else return!1;if(!l)return!1;if(n.indexOf(o)===-1)n.push(o);else return!1}return!0}function ar(e){return e!==null?e:[]}var ir=new A("tag:yaml.org,2002:omap",{kind:"sequence",resolve:nr,construct:ar}),or=Object.prototype.toString;function lr(e){if(e===null)return!0;var n,r,a,i,o,l=e;for(o=new Array(l.length),n=0,r=l.length;n<r;n+=1){if(a=l[n],or.call(a)!=="[object Object]"||(i=Object.keys(a),i.length!==1))return!1;o[n]=[i[0],a[i[0]]]}return!0}function sr(e){if(e===null)return[];var n,r,a,i,o,l=e;for(o=new Array(l.length),n=0,r=l.length;n<r;n+=1)a=l[n],i=Object.keys(a),o[n]=[i[0],a[i[0]]];return o}var cr=new A("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:lr,construct:sr}),dr=Object.prototype.hasOwnProperty;function ur(e){if(e===null)return!0;var n,r=e;for(n in r)if(dr.call(r,n)&&r[n]!==null)return!1;return!0}function pr(e){return e!==null?e:{}}var fr=new A("tag:yaml.org,2002:set",{kind:"mapping",resolve:ur,construct:pr});Ut.extend({implicit:[Ht,Yt],explicit:[er,ir,cr,fr]});function Ce(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
5
- `: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":""}for(var yr=new Array(256),hr=new Array(256),U=0;U<256;U++)yr[U]=Ce(U)?1:0,hr[U]=Ce(U);const mr={key:0,"data-testid":"first-col"},gr=t.defineComponent({__name:"EntityBaseTableCell",props:{keyName:{type:String,required:!0},rowEl:{type:[Object,null],required:!0}},setup(e){const n=e,r=t.computed(()=>{var f;return((f=n.rowEl)==null?void 0:f.querySelector(`[data-testid="${n.keyName}"]`))||null}),a=t.computed(()=>{var f;return((f=r.value)==null?void 0:f.querySelector('[data-testid="first-col"]'))||null}),i=t.computed(()=>{var f,N;const O=(f=n.rowEl)==null?void 0:f.querySelectorAll("td");return O?((N=O[0])==null?void 0:N.getAttribute("data-testid"))===n.keyName:!1});let o;const l=()=>{o&&(o.disconnect(),o=void 0)},s=()=>{var f,N,O;p.value=((f=a.value)==null?void 0:f.getBoundingClientRect().width)||0,m.value=((N=r.value)==null?void 0:N.clientWidth)||0,y.value=((O=c.value)==null?void 0:O.innerText)||""},c=t.ref({}),p=t.ref(0),m=t.ref(0),y=t.ref(""),_=t.computed(()=>[a.value,r.value]),C=t.watch(_,f=>{if(i.value&&(l(),"ResizeObserver"in window&&window)){o=new ResizeObserver(N=>{window.requestAnimationFrame(()=>{!Array.isArray(N)||!N.length||s()})});for(const N of f)N&&o.observe(N)}},{immediate:!0,flush:"post",deep:!0}),B=t.computed(()=>i.value?p.value>m.value:!1);return t.onMounted(()=>{s()}),t.onUnmounted(()=>{C()}),(f,N)=>{const O=t.resolveComponent("KTooltip");return t.openBlock(),t.createElementBlock("span",{ref_key:"contentRef",ref:c,class:"content-wrapper"},[i.value?(t.openBlock(),t.createElementBlock("span",mr,[t.createVNode(O,{label:B.value?y.value:"","max-width":"300",placement:"bottomStart"},{default:t.withCtx(()=>[t.renderSlot(f.$slots,"default",{},void 0,!0)]),_:3},8,["label"])])):t.renderSlot(f.$slots,"default",{key:1},void 0,!0)],512)}}}),br=X(gr,[["__scopeId","data-v-e42a20c9"]]),wr={class:"toolbar-container"},Cr={key:0,class:"toolbar-button-container"},kr=["data-testid"],_r=t.defineComponent({__name:"EntityBaseTable",props:{tableHeaders:{type:Object,required:!0,default:()=>({})},fetcher:{type:Function,required:!0,default:async()=>({data:[],total:0})},initialFetcherParams:{type:Object,default:null},cacheIdentifier:{type:String,default:""},fetcherCacheKey:{type:Number,default:1},isLoading:{type:Boolean,default:!1},query:{type:String,default:""},enableClientSort:{type:Boolean,default:!1},enableEntityActions:{type:Boolean,default:!0},emptyStateOptions:{type:Object,default:()=>({})},errorMessage:{type:[String,Object],default:null},disablePaginationPageJump:{type:Boolean,default:void 0},disableSorting:{type:Boolean,default:void 0},paginationType:{type:String,default:void 0},cellAttributes:{type:Function,default:()=>({})},rowAttributes:{type:Function,default:()=>({})},preferencesStorageKey:{type:String,default:"",required:!0},dropdownMenuWidth:{type:String,default:"",required:!1},title:{type:String,default:""},disableRowClick:{type:Boolean,default:!1}},emits:["click:row","sort","clear-search-input","empty-state-cta-clicked"],setup(e,{emit:n}){const r=e,a=n,{i18n:{t:i}}=Q.useI18n(),o=t.computed(()=>{var d,b;return typeof r.errorMessage=="string"?{hasError:!!r.errorMessage,title:r.errorMessage,message:void 0}:{hasError:!!r.errorMessage,title:(d=r.errorMessage)==null?void 0:d.title,message:(b=r.errorMessage)==null?void 0:b.message}}),l=t.computed(()=>r.cacheIdentifier||r.preferencesStorageKey),s=d=>d.hasData||!!r.query,c=t.computed(()=>{const d=[];return Object.keys(r.tableHeaders).forEach(b=>{const K=r.tableHeaders[b];d.push({label:K.label??b,key:b,sortable:K.sortable??!1})}),r.enableEntityActions&&d.push({key:"actions",hideLabel:!0}),d}),p=d=>({"data-rowid":d.id,"data-testid":d.name,...r.rowAttributes(d)}),m=t.ref({}),y=d=>{var b;return(b=m.value)==null?void 0:b.$el.querySelector(`[data-rowid="${d.id}"]`)},_=d=>{const b={"data-testid":d.headerKey,...r.cellAttributes(d)};return d.colIndex===0&&(b.style={maxWidth:"250px",overflowX:"hidden",textOverflow:"ellipsis"}),b},C=()=>{a("empty-state-cta-clicked"),B()},B=()=>{a("clear-search-input")},f=t.computed(()=>r.disableRowClick?void 0:(d,b)=>{a("click:row",b)}),N=d=>{a("sort",d)},{setTablePreferences:O,getTablePreferences:L}=Ee(),W=t.computed(()=>{const d=L(r.preferencesStorageKey);return{...r.initialFetcherParams,...d}}),g=d=>{r.preferencesStorageKey&&O(r.preferencesStorageKey,d)};return(d,b)=>{const K=t.resolveComponent("KIcon"),x=t.resolveComponent("KButton"),E=t.resolveComponent("KDropdown"),V=t.resolveComponent("KTable"),S=t.resolveComponent("KCard");return t.openBlock(),t.createBlock(S,{class:"kong-ui-entity-base-table",title:e.title},{default:t.withCtx(()=>[t.createVNode(V,{ref_key:"tableRefs",ref:m,"cache-identifier":l.value,"cell-attrs":_,"disable-pagination-page-jump":e.disablePaginationPageJump,"disable-sorting":e.disableSorting,"empty-state-action-button-icon":e.query?"":"plus","empty-state-action-message":e.query?t.unref(i)("baseTable.emptyState.noSearchResultsCtaText"):e.emptyStateOptions.ctaText,"empty-state-action-route":e.query?"":e.emptyStateOptions.ctaPath,"empty-state-icon":e.query?"stateNoSearchResults":"stateGruceo","empty-state-icon-size":"96","empty-state-message":e.query?t.unref(i)("baseTable.emptyState.noSearchResultsMessage"):e.emptyStateOptions.message,"empty-state-title":e.query?t.unref(i)("baseTable.emptyState.noSearchResultsTitle"):e.emptyStateOptions.title,"enable-client-sort":e.enableClientSort,"error-state-message":o.value.message,"error-state-title":o.value.title,fetcher:e.fetcher,"fetcher-cache-key":String(e.fetcherCacheKey),"has-error":o.value.hasError,headers:c.value,"hide-pagination-when-optional":"","initial-fetcher-params":W.value,"is-loading":e.isLoading,"pagination-type":e.paginationType,"row-attrs":p,"search-input":e.query,onKtableEmptyStateCtaClicked:C,"onRow:click":f.value,onSort:b[0]||(b[0]=T=>N(T)),"onUpdate:tablePreferences":g},t.createSlots({toolbar:t.withCtx(({state:T})=>[t.withDirectives(t.createElementVNode("div",wr,[t.renderSlot(d.$slots,"toolbar-filter",{},void 0,!0),d.$slots["toolbar-button"]?(t.openBlock(),t.createElementBlock("div",Cr,[t.renderSlot(d.$slots,"toolbar-button",{},void 0,!0)])):t.createCommentVNode("",!0)],512),[[t.vShow,s(T)]])]),actions:t.withCtx(({row:T,rowKey:v,rowValue:F})=>[t.createElementVNode("div",{class:"actions-container","data-testid":T.name},[t.createVNode(E,{"kpop-attributes":{placement:"bottomEnd"},width:e.dropdownMenuWidth},{items:t.withCtx(()=>[t.renderSlot(d.$slots,"actions",{row:T,rowKey:v,rowValue:F},void 0,!0)]),default:t.withCtx(()=>[t.createVNode(x,{class:"actions-trigger","data-testid":"overflow-actions-button",size:"small"},{icon:t.withCtx(()=>[t.createVNode(K,{color:t.unref(Qe),icon:"more",size:"16"},null,8,["color"])]),_:1})]),_:2},1032,["width"])],8,kr)]),_:2},[t.renderList(e.tableHeaders,(T,v)=>({name:v,fn:t.withCtx(({row:F,rowKey:u,rowValue:w})=>[t.createVNode(br,{"key-name":String(v),"row-el":y(F)},{default:t.withCtx(()=>[t.renderSlot(d.$slots,v,{row:F,rowKey:u,rowValue:w},()=>[t.createTextVNode(t.toDisplayString(w),1)],!0)]),_:2},1032,["key-name","row-el"])])}))]),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"])]),_:3},8,["title"])}}}),Nr=X(_r,[["__scopeId","data-v-57b5a97b"]]),Sr={key:0,class:"kong-ui-entity-delete-error"},xr={key:1,class:"description"},Tr=t.defineComponent({__name:"EntityDeleteModal",props:{visible:{type:Boolean,required:!0,default:!1},title:{type:String,default:"Delete"},entityType:{type:String,required:!0},entityName:{type:String,default:""},needConfirm:{type:Boolean,default:!0},description:{type:String,default:""},actionPending:{type:Boolean,default:!1},error:{type:String,default:""}},emits:["cancel","proceed"],setup(e,{emit:n}){const{i18nT:r}=Q.useI18n(),a=e,i=n,o=t.computed(()=>a.needConfirm?a.entityName:""),l=()=>{i("cancel")},s=()=>{i("proceed")};return(c,p)=>{const m=t.resolveComponent("KAlert"),y=t.resolveComponent("KPrompt");return t.openBlock(),t.createBlock(y,{"action-button-text":"Yes, delete","action-pending":e.actionPending,class:"kong-ui-entity-delete-modal","confirmation-text":o.value,"is-visible":e.visible,title:e.title,type:"danger",onCanceled:l,onProceed:s},{"body-content":t.withCtx(()=>[e.error?(t.openBlock(),t.createElementBlock("div",Sr,[t.createVNode(m,{appearance:"danger"},{alertMessage:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.error),1)]),_:1})])):t.createCommentVNode("",!0),t.createVNode(t.unref(r),{class:"message",keypath:a.entityName?"deleteModal.messageWithName":"deleteModal.message",tag:"p"},t.createSlots({entityType:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(a.entityType),1)]),_:2},[a.entityName?{name:"entityName",fn:t.withCtx(()=>[t.createElementVNode("strong",null,t.toDisplayString(a.entityName),1)]),key:"0"}:void 0]),1032,["keypath"]),a.description||c.$slots.description?(t.openBlock(),t.createElementBlock("div",xr,[t.renderSlot(c.$slots,"description",{},()=>[t.createElementVNode("p",null,t.toDisplayString(a.description),1)],!0)])):t.createCommentVNode("",!0)]),_:3},8,["action-pending","confirmation-text","is-visible","title"])}}}),Ar=X(Tr,[["__scopeId","data-v-1c9a2a07"]]),ne=t.defineComponent({__name:"PermissionsWrapper",props:{authFunction:{type:Function,required:!0,default:async()=>!0},forceShow:{type:Boolean,default:!1}},setup(e){const n=e,r=t.ref(void 0),a=t.computed(()=>r.value===!0||r.value!==void 0&&n.forceShow===!0);return t.watch(()=>n.authFunction,async()=>{r.value=await n.authFunction()},{immediate:!0}),(i,o)=>a.value?t.renderSlot(i.$slots,"default",{key:0,isAllowed:r.value}):t.createCommentVNode("",!0)}}),{useAxios:Er,useDeleteUrlBuilder:Ir,useErrors:$r,useExternalLinkCreator:Vr,useFetchUrlBuilder:Fr,useFetcher:Or,useDebouncedFilter:Pr,useStringHelpers:qr,useHelpers:Mr,useGatewayFeatureSupported:Lr,useTruncationDetector:Ur}=Q,jr={class:"kong-ui-entities-consumer-credentials-list"},Br={key:1},vr=((e,n)=>{const r=e.__vccOpts||e;for(const[a,i]of n)r[a]=i;return r})(t.defineComponent({__name:"ConsumerCredentialList",props:{config:{type:Object,required:!0,validator:e=>!(!e||!["konnect","kongManager"].includes(e==null?void 0:e.app)||!e.createRoute||!e.getEditRoute)},cacheIdentifier:{type:String,default:""},canCreate:{type:Function,required:!1,default:async()=>!0},canDelete:{type:Function,required:!1,default:async()=>!0},canEdit:{type:Function,required:!1,default:async()=>!0},useActionOutside:{type:Boolean,default:!1}},emits:["error","copy:success","copy:error","delete:success"],setup(e,{emit:n}){const r=n,a=e,{i18n:{t:i,formatUnixTimeStamp:o}}=Se.useI18n(),{axiosInstance:l}=Er({headers:a.config.requestHeaders}),s=t.ref(1),c={acls:{group:{label:i("credentials.list.table_headers.acls.group")},created_at:{label:i("credentials.list.table_headers.acls.created_at")},tags:{label:i("credentials.list.table_headers.acls.tags")}},"basic-auth":{password:{label:i("credentials.list.table_headers.basic-auth.password")},username:{label:i("credentials.list.table_headers.basic-auth.username")},created_at:{label:i("credentials.list.table_headers.basic-auth.created_at")},tags:{label:i("credentials.list.table_headers.basic-auth.tags")}},"key-auth":{key:{label:i("credentials.list.table_headers.key-auth.key")},created_at:{label:i("credentials.list.table_headers.key-auth.created_at")},tags:{label:i("credentials.list.table_headers.key-auth.tags")}},"key-auth-enc":{key:{label:i("credentials.list.table_headers.key-auth-enc.key")},created_at:{label:i("credentials.list.table_headers.key-auth-enc.created_at")},tags:{label:i("credentials.list.table_headers.key-auth-enc.tags")}},oauth2:{name:{label:i("credentials.list.table_headers.oauth2.name")},client_id:{label:i("credentials.list.table_headers.oauth2.client_id")},client_secret:{label:i("credentials.list.table_headers.oauth2.client_secret")},created_at:{label:i("credentials.list.table_headers.oauth2.created_at")},tags:{label:i("credentials.list.table_headers.oauth2.tags")}},"hmac-auth":{username:{label:i("credentials.list.table_headers.hmac-auth.username")},secret:{label:i("credentials.list.table_headers.hmac-auth.secret")},created_at:{label:i("credentials.list.table_headers.hmac-auth.created_at")},tags:{label:i("credentials.list.table_headers.hmac-auth.tags")}},jwt:{key:{label:i("credentials.list.table_headers.jwt.key")},algorithm:{label:i("credentials.list.table_headers.jwt.algorithm")},created_at:{label:i("credentials.list.table_headers.jwt.created_at")},tags:{label:i("credentials.list.table_headers.jwt.tags")}}},p=t.computed(()=>c[a.config.plugin]),m=t.computed(()=>{let u=`${a.config.apiBaseUrl}${xe.list[a.config.app]}`;return a.config.app==="konnect"?u=u.replace(/{controlPlaneId}/gi,a.config.controlPlaneId||"").replace(/{consumerId}/gi,a.config.consumerId||"").replace(/{plugin}/gi,a.config.plugin||""):a.config.app==="kongManager"&&(u=u.replace(/\/{workspace}/gi,a.config.workspace?`/${a.config.workspace}`:"").replace(/{consumerId}/gi,a.config.consumerId||"").replace(/{plugin}/gi,a.config.plugin||"")),u}),{fetcher:y,fetcherState:_}=Or(a.config,m),C=()=>{s.value++},B=t.ref(null),f=(u,w,D)=>{const I=w?u[w]:JSON.stringify(u);if(!D(I)){L(u,w);return}O(u,w)},N=(u,w,D)=>{const{type:I}=u;I==="success"?O(w,D):L(w,D)},O=(u,w)=>{r("copy:success",{entity:u,field:w,message:w?i("credentials.copy.success",{val:u[w]}):i("credentials.copy.success_brief")})},L=(u,w)=>{r("copy:error",{entity:u,field:w,message:i("credentials.error.copy")})},W=u=>({label:i("credentials.actions.edit"),to:a.config.getEditRoute(u)}),g=t.ref(void 0),d=t.ref(!1),b=t.ref(!1),K=t.ref(""),x=Ir(a.config,m.value),E=t.computed(()=>ae[a.config.plugin]),V=u=>{g.value=u,d.value=!0},S=()=>{d.value=!1},T=async()=>{var u,w,D;if((u=g.value)!=null&&u.id){b.value=!0;try{await l.delete(x(g.value.id)),b.value=!1,d.value=!1,s.value++,r("delete:success",g.value)}catch(I){K.value=((D=(w=I.response)==null?void 0:w.data)==null?void 0:D.message)||I.message||i("credentials.error.delete"),r("error",I)}finally{b.value=!1}}},v=t.ref(!0);t.watch(_,u=>{var w,D,I,J;if(Array.isArray((w=u==null?void 0:u.response)==null?void 0:w.data)&&(v.value=u.response.data.length>0),u.status===q.Error){B.value={title:i("credentials.error.general")},(J=(I=(D=u.error)==null?void 0:D.response)==null?void 0:I.data)!=null&&J.message&&(B.value.message=u.error.response.data.message),r("error",u.error);return}B.value=null});const F=t.ref({ctaPath:a.config.createRoute,ctaText:void 0,message:"",title:i("credentials.title")});return t.onBeforeMount(async()=>{await a.canCreate()&&(F.value.title=i(`credentials.list.empty_state.${a.config.plugin}.title`),F.value.ctaText=i(`credentials.list.empty_state.${a.config.plugin}.cta`))}),(u,w)=>{const D=t.resolveComponent("KButton"),I=t.resolveComponent("CopyUuid"),J=t.resolveComponent("KBadge"),Dr=t.resolveComponent("KTruncate"),P=t.resolveComponent("KDropdownItem"),R=t.resolveComponent("KClipboardProvider");return t.openBlock(),t.createElementBlock("div",jr,[t.createVNode(t.unref(Nr),{"cache-identifier":e.cacheIdentifier,"disable-pagination-page-jump":"","disable-row-click":"","disable-sorting":"","empty-state-options":F.value,"enable-entity-actions":"","error-message":B.value,fetcher:t.unref(y),"fetcher-cache-key":s.value,"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-consumer-credentials-list","table-headers":p.value,"use-action-outside":e.useActionOutside,onSort:C},{"toolbar-button":t.withCtx(()=>[(t.openBlock(),t.createBlock(t.Teleport,{disabled:!e.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[t.createVNode(t.unref(ne),{"auth-function":()=>e.canCreate()},{default:t.withCtx(()=>[t.withDirectives(t.createVNode(D,{appearance:"primary","data-testid":"toolbar-add-credential",icon:"plus",to:e.config.createRoute},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(i)(`credentials.list.toolbar_actions.${e.config.plugin}.new`)),1)]),_:1},8,["to"]),[[t.vShow,v.value]])]),_:1},8,["auth-function"])],8,["disabled"]))]),group:t.withCtx(({rowValue:h})=>[t.createElementVNode("b",null,t.toDisplayString(h??"-"),1)]),name:t.withCtx(({rowValue:h})=>[t.createElementVNode("b",null,t.toDisplayString(h??"-"),1)]),username:t.withCtx(({rowValue:h})=>[t.createElementVNode("span",null,t.toDisplayString(h??"-"),1)]),password:t.withCtx(({row:h,rowValue:k})=>[t.createVNode(I,{format:"redacted",notify:j=>N(j,h,"password"),uuid:k},null,8,["notify","uuid"])]),key:t.withCtx(({row:h,rowValue:k})=>[t.createVNode(I,{format:"redacted",notify:j=>N(j,h,"key"),uuid:k},null,8,["notify","uuid"])]),client_secret:t.withCtx(({row:h,rowValue:k})=>[t.createVNode(I,{format:"redacted",notify:j=>N(j,h,"client_secret"),uuid:k},null,8,["notify","uuid"])]),secret:t.withCtx(({row:h,rowValue:k})=>[t.createVNode(I,{format:"redacted",notify:j=>N(j,h,"secret"),uuid:k},null,8,["notify","uuid"])]),created_at:t.withCtx(({rowValue:h})=>[t.createTextVNode(t.toDisplayString(t.unref(o)(h)),1)]),tags:t.withCtx(({rowValue:h})=>[(h==null?void 0:h.length)>0?(t.openBlock(),t.createBlock(Dr,{key:0},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(h,k=>(t.openBlock(),t.createBlock(J,{key:k,onClick:w[0]||(w[0]=t.withModifiers(()=>{},["stop"]))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(k),1)]),_:2},1024))),128))]),_:2},1024)):(t.openBlock(),t.createElementBlock("span",Br,"-"))]),actions:t.withCtx(({row:h})=>[t.createVNode(R,null,{default:t.withCtx(({copyToClipboard:k})=>[t.createVNode(P,{"data-testid":"action-entity-copy-id",onClick:j=>f(h,"id",k)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(i)("credentials.actions.copy_id")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.config.plugin==="basic-auth"?(t.openBlock(),t.createBlock(R,{key:0},{default:t.withCtx(({copyToClipboard:k})=>[t.createVNode(P,{"data-testid":"action-entity-copy-credential",onClick:j=>f(h,"password",k)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(i)("credentials.actions.copy_credential")),1)]),_:2},1032,["onClick"])]),_:2},1024)):t.createCommentVNode("",!0),["key-auth","key-auth-enc","jwt"].includes(e.config.plugin)?(t.openBlock(),t.createBlock(R,{key:1},{default:t.withCtx(({copyToClipboard:k})=>[t.createVNode(P,{"data-testid":"action-entity-copy-key",onClick:j=>f(h,"key",k)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(i)("credentials.actions.copy_key")),1)]),_:2},1032,["onClick"])]),_:2},1024)):t.createCommentVNode("",!0),e.config.plugin==="oauth2"?(t.openBlock(),t.createBlock(R,{key:2},{default:t.withCtx(({copyToClipboard:k})=>[t.createVNode(P,{"data-testid":"action-entity-copy-secret",onClick:j=>f(h,"client_secret",k)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(i)("credentials.actions.copy_secret")),1)]),_:2},1032,["onClick"])]),_:2},1024)):t.createCommentVNode("",!0),e.config.plugin==="hmac-auth"?(t.openBlock(),t.createBlock(R,{key:3},{default:t.withCtx(({copyToClipboard:k})=>[t.createVNode(P,{"data-testid":"action-entity-copy-secret",onClick:j=>f(h,"secret",k)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(i)("credentials.actions.copy_secret")),1)]),_:2},1032,["onClick"])]),_:2},1024)):t.createCommentVNode("",!0),t.createVNode(R,null,{default:t.withCtx(({copyToClipboard:k})=>[t.createVNode(P,{"data-testid":"action-entity-copy-json",onClick:j=>f(h,void 0,k)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(i)("credentials.actions.copy_json")),1)]),_:2},1032,["onClick"])]),_:2},1024),t.createVNode(t.unref(ne),{"auth-function":()=>e.canEdit(h)},{default:t.withCtx(()=>[t.createVNode(P,{"data-testid":"action-entity-edit","has-divider":"",item:W(h.id)},null,8,["item"])]),_:2},1032,["auth-function"]),t.createVNode(t.unref(ne),{"auth-function":()=>e.canDelete(h)},{default:t.withCtx(()=>[t.createVNode(P,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:k=>V(h)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(i)("credentials.actions.delete")),1)]),_:2},1032,["onClick"])]),_:2},1032,["auth-function"])]),_:1},8,["cache-identifier","empty-state-options","error-message","fetcher","fetcher-cache-key","table-headers","use-action-outside"]),t.createVNode(t.unref(Ar),{"action-pending":b.value,description:t.unref(i)("credentials.delete.description"),"entity-type":E.value,error:K.value,title:t.unref(i)(`credentials.delete.${e.config.plugin}.title`),visible:d.value,onCancel:S,onProceed:T},null,8,["action-pending","description","entity-type","error","title","visible"])])}}}),[["__scopeId","data-v-f6c6d08c"]]);$.ConsumerCredentialList=vr,Object.defineProperty($,Symbol.toStringTag,{value:"Module"})});
5
+ `: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":""}for(var yr=new Array(256),hr=new Array(256),U=0;U<256;U++)yr[U]=Ce(U)?1:0,hr[U]=Ce(U);const mr={key:0,"data-testid":"first-col"},gr=t.defineComponent({__name:"EntityBaseTableCell",props:{keyName:{type:String,required:!0},rowEl:{type:[Object,null],required:!0}},setup(e){const n=e,r=t.computed(()=>{var f;return((f=n.rowEl)==null?void 0:f.querySelector(`[data-testid="${n.keyName}"]`))||null}),a=t.computed(()=>{var f;return((f=r.value)==null?void 0:f.querySelector('[data-testid="first-col"]'))||null}),i=t.computed(()=>{var f,N;const O=(f=n.rowEl)==null?void 0:f.querySelectorAll("td");return O?((N=O[0])==null?void 0:N.getAttribute("data-testid"))===n.keyName:!1});let o;const l=()=>{o&&(o.disconnect(),o=void 0)},s=()=>{var f,N,O;p.value=((f=a.value)==null?void 0:f.getBoundingClientRect().width)||0,m.value=((N=r.value)==null?void 0:N.clientWidth)||0,y.value=((O=c.value)==null?void 0:O.innerText)||""},c=t.ref({}),p=t.ref(0),m=t.ref(0),y=t.ref(""),_=t.computed(()=>[a.value,r.value]),C=t.watch(_,f=>{if(i.value&&(l(),"ResizeObserver"in window&&window)){o=new ResizeObserver(N=>{window.requestAnimationFrame(()=>{!Array.isArray(N)||!N.length||s()})});for(const N of f)N&&o.observe(N)}},{immediate:!0,flush:"post",deep:!0}),B=t.computed(()=>i.value?p.value>m.value:!1);return t.onMounted(()=>{s()}),t.onUnmounted(()=>{C()}),(f,N)=>{const O=t.resolveComponent("KTooltip");return t.openBlock(),t.createElementBlock("span",{ref_key:"contentRef",ref:c,class:"content-wrapper"},[i.value?(t.openBlock(),t.createElementBlock("span",mr,[t.createVNode(O,{label:B.value?y.value:"","max-width":"300",placement:"bottomStart"},{default:t.withCtx(()=>[t.renderSlot(f.$slots,"default",{},void 0,!0)]),_:3},8,["label"])])):t.renderSlot(f.$slots,"default",{key:1},void 0,!0)],512)}}}),br=X(gr,[["__scopeId","data-v-e42a20c9"]]),wr={class:"toolbar-container"},Cr={key:0,class:"toolbar-button-container"},kr=["data-testid"],_r=t.defineComponent({__name:"EntityBaseTable",props:{tableHeaders:{type:Object,required:!0,default:()=>({})},fetcher:{type:Function,required:!0,default:async()=>({data:[],total:0})},initialFetcherParams:{type:Object,default:null},cacheIdentifier:{type:String,default:""},fetcherCacheKey:{type:Number,default:1},isLoading:{type:Boolean,default:!1},query:{type:String,default:""},enableClientSort:{type:Boolean,default:!1},enableEntityActions:{type:Boolean,default:!0},emptyStateOptions:{type:Object,default:()=>({})},errorMessage:{type:[String,Object],default:null},disablePaginationPageJump:{type:Boolean,default:void 0},disableSorting:{type:Boolean,default:void 0},paginationType:{type:String,default:void 0},cellAttributes:{type:Function,default:()=>({})},rowAttributes:{type:Function,default:()=>({})},preferencesStorageKey:{type:String,default:"",required:!0},dropdownMenuWidth:{type:String,default:"",required:!1},title:{type:String,default:""},disableRowClick:{type:Boolean,default:!1}},emits:["click:row","sort","clear-search-input","empty-state-cta-clicked"],setup(e,{emit:n}){const r=e,a=n,{i18n:{t:i}}=Q.useI18n(),o=t.computed(()=>{var d,b;return typeof r.errorMessage=="string"?{hasError:!!r.errorMessage,title:r.errorMessage,message:void 0}:{hasError:!!r.errorMessage,title:(d=r.errorMessage)==null?void 0:d.title,message:(b=r.errorMessage)==null?void 0:b.message}}),l=t.computed(()=>r.cacheIdentifier||r.preferencesStorageKey),s=d=>d.hasData||!!r.query,c=t.computed(()=>{const d=[];return Object.keys(r.tableHeaders).forEach(b=>{const K=r.tableHeaders[b];d.push({label:K.label??b,key:b,sortable:K.sortable??!1})}),r.enableEntityActions&&d.push({key:"actions",hideLabel:!0}),d}),p=d=>({"data-rowid":d.id,"data-testid":d.name,...r.rowAttributes(d)}),m=t.ref({}),y=d=>{var b;return(b=m.value)==null?void 0:b.$el.querySelector(`[data-rowid="${d.id}"]`)},_=d=>{const b={"data-testid":d.headerKey,...r.cellAttributes(d)};return d.colIndex===0&&(b.style={maxWidth:"250px",overflowX:"hidden",textOverflow:"ellipsis"}),b},C=()=>{a("empty-state-cta-clicked"),B()},B=()=>{a("clear-search-input")},f=t.computed(()=>r.disableRowClick?void 0:(d,b)=>{a("click:row",b)}),N=d=>{a("sort",d)},{setTablePreferences:O,getTablePreferences:L}=Ee(),W=t.computed(()=>{const d=L(r.preferencesStorageKey);return{...r.initialFetcherParams,...d}}),g=d=>{r.preferencesStorageKey&&O(r.preferencesStorageKey,d)};return(d,b)=>{const K=t.resolveComponent("KIcon"),x=t.resolveComponent("KButton"),E=t.resolveComponent("KDropdown"),V=t.resolveComponent("KTable"),S=t.resolveComponent("KCard");return t.openBlock(),t.createBlock(S,{class:"kong-ui-entity-base-table",title:e.title},{default:t.withCtx(()=>[t.createVNode(V,{ref_key:"tableRefs",ref:m,"cache-identifier":l.value,"cell-attrs":_,"disable-pagination-page-jump":e.disablePaginationPageJump,"disable-sorting":e.disableSorting,"empty-state-action-button-icon":e.query?"":"plus","empty-state-action-message":e.query?t.unref(i)("baseTable.emptyState.noSearchResultsCtaText"):e.emptyStateOptions.ctaText,"empty-state-action-route":e.query?"":e.emptyStateOptions.ctaPath,"empty-state-icon":e.query?"stateNoSearchResults":"stateGruceo","empty-state-icon-size":"96","empty-state-message":e.query?t.unref(i)("baseTable.emptyState.noSearchResultsMessage"):e.emptyStateOptions.message,"empty-state-title":e.query?t.unref(i)("baseTable.emptyState.noSearchResultsTitle"):e.emptyStateOptions.title,"enable-client-sort":e.enableClientSort,"error-state-message":o.value.message,"error-state-title":o.value.title,fetcher:e.fetcher,"fetcher-cache-key":String(e.fetcherCacheKey),"has-error":o.value.hasError,headers:c.value,"hide-pagination-when-optional":"","initial-fetcher-params":W.value,"is-loading":e.isLoading,"pagination-type":e.paginationType,"row-attrs":p,"search-input":e.query,onKtableEmptyStateCtaClicked:C,"onRow:click":f.value,onSort:b[0]||(b[0]=T=>N(T)),"onUpdate:tablePreferences":g},t.createSlots({toolbar:t.withCtx(({state:T})=>[t.withDirectives(t.createElementVNode("div",wr,[t.renderSlot(d.$slots,"toolbar-filter",{},void 0,!0),d.$slots["toolbar-button"]?(t.openBlock(),t.createElementBlock("div",Cr,[t.renderSlot(d.$slots,"toolbar-button",{},void 0,!0)])):t.createCommentVNode("",!0)],512),[[t.vShow,s(T)]])]),actions:t.withCtx(({row:T,rowKey:v,rowValue:F})=>[t.createElementVNode("div",{class:"actions-container","data-testid":T.name},[t.createVNode(E,{"kpop-attributes":{placement:"bottomEnd"},width:e.dropdownMenuWidth},{items:t.withCtx(()=>[t.renderSlot(d.$slots,"actions",{row:T,rowKey:v,rowValue:F},void 0,!0)]),default:t.withCtx(()=>[t.createVNode(x,{class:"actions-trigger","data-testid":"overflow-actions-button",size:"small"},{icon:t.withCtx(()=>[t.createVNode(K,{color:t.unref(Qe),icon:"more",size:"16"},null,8,["color"])]),_:1})]),_:2},1032,["width"])],8,kr)]),_:2},[t.renderList(e.tableHeaders,(T,v)=>({name:v,fn:t.withCtx(({row:F,rowKey:u,rowValue:w})=>[t.createVNode(br,{"key-name":String(v),"row-el":y(F)},{default:t.withCtx(()=>[t.renderSlot(d.$slots,v,{row:F,rowKey:u,rowValue:w},()=>[t.createTextVNode(t.toDisplayString(w),1)],!0)]),_:2},1032,["key-name","row-el"])])}))]),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"])]),_:3},8,["title"])}}}),Nr=X(_r,[["__scopeId","data-v-57b5a97b"]]),Sr={key:0,class:"kong-ui-entity-delete-error"},xr={key:1,class:"description"},Tr=t.defineComponent({__name:"EntityDeleteModal",props:{visible:{type:Boolean,required:!0,default:!1},title:{type:String,default:"Delete"},entityType:{type:String,required:!0},entityName:{type:String,default:""},needConfirm:{type:Boolean,default:!0},description:{type:String,default:""},actionPending:{type:Boolean,default:!1},error:{type:String,default:""}},emits:["cancel","proceed"],setup(e,{emit:n}){const{i18nT:r}=Q.useI18n(),a=e,i=n,o=t.computed(()=>a.needConfirm?a.entityName:""),l=()=>{i("cancel")},s=()=>{i("proceed")};return(c,p)=>{const m=t.resolveComponent("KAlert"),y=t.resolveComponent("KPrompt");return t.openBlock(),t.createBlock(y,{"action-button-text":"Yes, delete","action-pending":e.actionPending,class:"kong-ui-entity-delete-modal","confirmation-text":o.value,"is-visible":e.visible,title:e.title,type:"danger",onCanceled:l,onProceed:s},{"body-content":t.withCtx(()=>[e.error?(t.openBlock(),t.createElementBlock("div",Sr,[t.createVNode(m,{appearance:"danger"},{alertMessage:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.error),1)]),_:1})])):t.createCommentVNode("",!0),t.createVNode(t.unref(r),{class:"message",keypath:a.entityName?"deleteModal.messageWithName":"deleteModal.message",tag:"p"},t.createSlots({entityType:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(a.entityType),1)]),_:2},[a.entityName?{name:"entityName",fn:t.withCtx(()=>[t.createElementVNode("strong",null,t.toDisplayString(a.entityName),1)]),key:"0"}:void 0]),1032,["keypath"]),a.description||c.$slots.description?(t.openBlock(),t.createElementBlock("div",xr,[t.renderSlot(c.$slots,"description",{},()=>[t.createElementVNode("p",null,t.toDisplayString(a.description),1)],!0)])):t.createCommentVNode("",!0)]),_:3},8,["action-pending","confirmation-text","is-visible","title"])}}}),Ar=X(Tr,[["__scopeId","data-v-1c9a2a07"]]),ne=t.defineComponent({__name:"PermissionsWrapper",props:{authFunction:{type:Function,required:!0,default:async()=>!0},forceShow:{type:Boolean,default:!1}},setup(e){const n=e,r=t.ref(void 0),a=t.computed(()=>r.value===!0||r.value!==void 0&&n.forceShow===!0);return t.watch(()=>n.authFunction,async()=>{r.value=await n.authFunction()},{immediate:!0}),(i,o)=>a.value?t.renderSlot(i.$slots,"default",{key:0,isAllowed:r.value}):t.createCommentVNode("",!0)}}),{useAxios:Er,useDeleteUrlBuilder:Ir,useErrors:$r,useExternalLinkCreator:Vr,useFetchUrlBuilder:Fr,useFetcher:Or,useDebouncedFilter:Pr,useStringHelpers:qr,useHelpers:Mr,useGatewayFeatureSupported:Lr,useTruncationDetector:Ur}=Q,jr={class:"kong-ui-entities-consumer-credentials-list"},Br={key:1},vr=((e,n)=>{const r=e.__vccOpts||e;for(const[a,i]of n)r[a]=i;return r})(t.defineComponent({__name:"ConsumerCredentialList",props:{config:{type:Object,required:!0,validator:e=>!(!e||!["konnect","kongManager"].includes(e==null?void 0:e.app)||!e.createRoute||!e.getEditRoute)},cacheIdentifier:{type:String,default:""},canCreate:{type:Function,required:!1,default:async()=>!0},canDelete:{type:Function,required:!1,default:async()=>!0},canEdit:{type:Function,required:!1,default:async()=>!0},useActionOutside:{type:Boolean,default:!1}},emits:["error","copy:success","copy:error","delete:success"],setup(e,{emit:n}){const r=n,a=e,{i18n:{t:i,formatUnixTimeStamp:o}}=Se.useI18n(),{axiosInstance:l}=Er({headers:a.config.requestHeaders}),s=t.ref(1),c={acls:{group:{label:i("credentials.list.table_headers.acls.group")},created_at:{label:i("credentials.list.table_headers.acls.created_at")},tags:{label:i("credentials.list.table_headers.acls.tags")}},"basic-auth":{password:{label:i("credentials.list.table_headers.basic-auth.password")},username:{label:i("credentials.list.table_headers.basic-auth.username")},created_at:{label:i("credentials.list.table_headers.basic-auth.created_at")},tags:{label:i("credentials.list.table_headers.basic-auth.tags")}},"key-auth":{key:{label:i("credentials.list.table_headers.key-auth.key")},created_at:{label:i("credentials.list.table_headers.key-auth.created_at")},tags:{label:i("credentials.list.table_headers.key-auth.tags")}},"key-auth-enc":{key:{label:i("credentials.list.table_headers.key-auth-enc.key")},created_at:{label:i("credentials.list.table_headers.key-auth-enc.created_at")},tags:{label:i("credentials.list.table_headers.key-auth-enc.tags")}},oauth2:{name:{label:i("credentials.list.table_headers.oauth2.name")},client_id:{label:i("credentials.list.table_headers.oauth2.client_id")},client_secret:{label:i("credentials.list.table_headers.oauth2.client_secret")},created_at:{label:i("credentials.list.table_headers.oauth2.created_at")},tags:{label:i("credentials.list.table_headers.oauth2.tags")}},"hmac-auth":{username:{label:i("credentials.list.table_headers.hmac-auth.username")},secret:{label:i("credentials.list.table_headers.hmac-auth.secret")},created_at:{label:i("credentials.list.table_headers.hmac-auth.created_at")},tags:{label:i("credentials.list.table_headers.hmac-auth.tags")}},jwt:{key:{label:i("credentials.list.table_headers.jwt.key")},algorithm:{label:i("credentials.list.table_headers.jwt.algorithm")},created_at:{label:i("credentials.list.table_headers.jwt.created_at")},tags:{label:i("credentials.list.table_headers.jwt.tags")}}},p=t.computed(()=>c[a.config.plugin]),m=t.computed(()=>{let u=`${a.config.apiBaseUrl}${xe.list[a.config.app]}`;return a.config.app==="konnect"?u=u.replace(/{controlPlaneId}/gi,a.config.controlPlaneId||"").replace(/{consumerId}/gi,a.config.consumerId||"").replace(/{plugin}/gi,a.config.plugin||""):a.config.app==="kongManager"&&(u=u.replace(/\/{workspace}/gi,a.config.workspace?`/${a.config.workspace}`:"").replace(/{consumerId}/gi,a.config.consumerId||"").replace(/{plugin}/gi,a.config.plugin||"")),u}),{fetcher:y,fetcherState:_}=Or(a.config,m),C=()=>{s.value++},B=t.ref(null),f=(u,w,D)=>{const I=w?u[w]:JSON.stringify(u);if(!D(I)){L(u,w);return}O(u,w)},N=(u,w,D)=>{const{type:I}=u;I==="success"?O(w,D):L(w,D)},O=(u,w)=>{r("copy:success",{entity:u,field:w,message:w?i("credentials.copy.success",{val:u[w]}):i("credentials.copy.success_brief")})},L=(u,w)=>{r("copy:error",{entity:u,field:w,message:i("credentials.error.copy")})},W=u=>({label:i("credentials.actions.edit"),to:a.config.getEditRoute(u)}),g=t.ref(void 0),d=t.ref(!1),b=t.ref(!1),K=t.ref(""),x=Ir(a.config,m.value),E=t.computed(()=>ae[a.config.plugin]),V=u=>{g.value=u,d.value=!0},S=()=>{d.value=!1},T=async()=>{var u,w,D;if((u=g.value)!=null&&u.id){b.value=!0;try{await l.delete(x(g.value.id)),b.value=!1,d.value=!1,s.value++,r("delete:success",g.value)}catch(I){K.value=((D=(w=I.response)==null?void 0:w.data)==null?void 0:D.message)||I.message||i("credentials.error.delete"),r("error",I)}finally{b.value=!1}}},v=t.ref(!0);t.watch(_,u=>{var w,D,I,J;if(Array.isArray((w=u==null?void 0:u.response)==null?void 0:w.data)&&(v.value=u.response.data.length>0),u.status===q.Error){B.value={title:i("credentials.error.general")},(J=(I=(D=u.error)==null?void 0:D.response)==null?void 0:I.data)!=null&&J.message&&(B.value.message=u.error.response.data.message),r("error",u.error);return}B.value=null});const F=t.ref({ctaPath:a.config.createRoute,ctaText:void 0,message:"",title:i("credentials.title")});return t.onBeforeMount(async()=>{await a.canCreate()&&(F.value.title=i(`credentials.list.empty_state.${a.config.plugin}.title`),F.value.ctaText=i(`credentials.list.empty_state.${a.config.plugin}.cta`))}),(u,w)=>{const D=t.resolveComponent("KButton"),I=t.resolveComponent("CopyUuid"),J=t.resolveComponent("KBadge"),Dr=t.resolveComponent("KTruncate"),P=t.resolveComponent("KDropdownItem"),R=t.resolveComponent("KClipboardProvider");return t.openBlock(),t.createElementBlock("div",jr,[t.createVNode(t.unref(Nr),{"cache-identifier":e.cacheIdentifier,"disable-pagination-page-jump":"","disable-row-click":"","disable-sorting":"","empty-state-options":F.value,"enable-entity-actions":"","error-message":B.value,fetcher:t.unref(y),"fetcher-cache-key":s.value,"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-consumer-credentials-list","table-headers":p.value,"use-action-outside":e.useActionOutside,onSort:C},{"toolbar-button":t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.useActionOutside?"Teleport":"div"),{to:e.useActionOutside?"#kong-ui-app-page-header-action-button":void 0},{default:t.withCtx(()=>[t.createVNode(t.unref(ne),{"auth-function":()=>e.canCreate()},{default:t.withCtx(()=>[t.withDirectives(t.createVNode(D,{appearance:"primary","data-testid":"toolbar-add-credential",icon:"plus",to:e.config.createRoute},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(i)(`credentials.list.toolbar_actions.${e.config.plugin}.new`)),1)]),_:1},8,["to"]),[[t.vShow,v.value]])]),_:1},8,["auth-function"])]),_:1},8,["to"]))]),group:t.withCtx(({rowValue:h})=>[t.createElementVNode("b",null,t.toDisplayString(h??"-"),1)]),name:t.withCtx(({rowValue:h})=>[t.createElementVNode("b",null,t.toDisplayString(h??"-"),1)]),username:t.withCtx(({rowValue:h})=>[t.createElementVNode("span",null,t.toDisplayString(h??"-"),1)]),password:t.withCtx(({row:h,rowValue:k})=>[t.createVNode(I,{format:"redacted",notify:j=>N(j,h,"password"),uuid:k},null,8,["notify","uuid"])]),key:t.withCtx(({row:h,rowValue:k})=>[t.createVNode(I,{format:"redacted",notify:j=>N(j,h,"key"),uuid:k},null,8,["notify","uuid"])]),client_secret:t.withCtx(({row:h,rowValue:k})=>[t.createVNode(I,{format:"redacted",notify:j=>N(j,h,"client_secret"),uuid:k},null,8,["notify","uuid"])]),secret:t.withCtx(({row:h,rowValue:k})=>[t.createVNode(I,{format:"redacted",notify:j=>N(j,h,"secret"),uuid:k},null,8,["notify","uuid"])]),created_at:t.withCtx(({rowValue:h})=>[t.createTextVNode(t.toDisplayString(t.unref(o)(h)),1)]),tags:t.withCtx(({rowValue:h})=>[(h==null?void 0:h.length)>0?(t.openBlock(),t.createBlock(Dr,{key:0},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(h,k=>(t.openBlock(),t.createBlock(J,{key:k,onClick:w[0]||(w[0]=t.withModifiers(()=>{},["stop"]))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(k),1)]),_:2},1024))),128))]),_:2},1024)):(t.openBlock(),t.createElementBlock("span",Br,"-"))]),actions:t.withCtx(({row:h})=>[t.createVNode(R,null,{default:t.withCtx(({copyToClipboard:k})=>[t.createVNode(P,{"data-testid":"action-entity-copy-id",onClick:j=>f(h,"id",k)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(i)("credentials.actions.copy_id")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.config.plugin==="basic-auth"?(t.openBlock(),t.createBlock(R,{key:0},{default:t.withCtx(({copyToClipboard:k})=>[t.createVNode(P,{"data-testid":"action-entity-copy-credential",onClick:j=>f(h,"password",k)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(i)("credentials.actions.copy_credential")),1)]),_:2},1032,["onClick"])]),_:2},1024)):t.createCommentVNode("",!0),["key-auth","key-auth-enc","jwt"].includes(e.config.plugin)?(t.openBlock(),t.createBlock(R,{key:1},{default:t.withCtx(({copyToClipboard:k})=>[t.createVNode(P,{"data-testid":"action-entity-copy-key",onClick:j=>f(h,"key",k)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(i)("credentials.actions.copy_key")),1)]),_:2},1032,["onClick"])]),_:2},1024)):t.createCommentVNode("",!0),e.config.plugin==="oauth2"?(t.openBlock(),t.createBlock(R,{key:2},{default:t.withCtx(({copyToClipboard:k})=>[t.createVNode(P,{"data-testid":"action-entity-copy-secret",onClick:j=>f(h,"client_secret",k)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(i)("credentials.actions.copy_secret")),1)]),_:2},1032,["onClick"])]),_:2},1024)):t.createCommentVNode("",!0),e.config.plugin==="hmac-auth"?(t.openBlock(),t.createBlock(R,{key:3},{default:t.withCtx(({copyToClipboard:k})=>[t.createVNode(P,{"data-testid":"action-entity-copy-secret",onClick:j=>f(h,"secret",k)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(i)("credentials.actions.copy_secret")),1)]),_:2},1032,["onClick"])]),_:2},1024)):t.createCommentVNode("",!0),t.createVNode(R,null,{default:t.withCtx(({copyToClipboard:k})=>[t.createVNode(P,{"data-testid":"action-entity-copy-json",onClick:j=>f(h,void 0,k)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(i)("credentials.actions.copy_json")),1)]),_:2},1032,["onClick"])]),_:2},1024),t.createVNode(t.unref(ne),{"auth-function":()=>e.canEdit(h)},{default:t.withCtx(()=>[t.createVNode(P,{"data-testid":"action-entity-edit","has-divider":"",item:W(h.id)},null,8,["item"])]),_:2},1032,["auth-function"]),t.createVNode(t.unref(ne),{"auth-function":()=>e.canDelete(h)},{default:t.withCtx(()=>[t.createVNode(P,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:k=>V(h)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(i)("credentials.actions.delete")),1)]),_:2},1032,["onClick"])]),_:2},1032,["auth-function"])]),_:1},8,["cache-identifier","empty-state-options","error-message","fetcher","fetcher-cache-key","table-headers","use-action-outside"]),t.createVNode(t.unref(Ar),{"action-pending":b.value,description:t.unref(i)("credentials.delete.description"),"entity-type":E.value,error:K.value,title:t.unref(i)(`credentials.delete.${e.config.plugin}.title`),visible:d.value,onCancel:S,onProceed:T},null,8,["action-pending","description","entity-type","error","title","visible"])])}}}),[["__scopeId","data-v-6e469a8e"]]);$.ConsumerCredentialList=vr,Object.defineProperty($,Symbol.toStringTag,{value:"Module"})});
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .config-card-fieldset[data-v-68ca83ec]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-68ca83ec]{font-size:14px;padding:0 8px;width:auto}fieldset.config-card-fieldset .config-card-details-row{width:unset}.config-card-json-item .config-card-details-row,fieldset.config-card-fieldset .config-card-details-row{margin:0 16px}.config-card-json-item .config-card-details-row:last-of-type,fieldset.config-card-fieldset .config-card-details-row:last-of-type{border-bottom:none}[data-v-c96811e5] .k-button.navigation-button{font-size:14px;font-weight:400}.kong-ui-copy-uuid[data-v-0c07874b]{align-items:center;display:flex}.kong-ui-copy-uuid .uuid-container[data-v-0c07874b]{margin-right:12px;white-space:nowrap}.kong-ui-copy-uuid .truncated-uuid[data-v-0c07874b]{margin-right:1ch;max-width:10ch;overflow:hidden;text-overflow:ellipsis}.kong-ui-copy-uuid .uuid-icon-wrapper[data-v-0c07874b]{align-items:center;cursor:pointer;display:flex}.kong-ui-copy-uuid .uuid-icon[data-v-0c07874b]{display:flex}.config-card-details-row[data-v-9c87856b]{align-items:center;border-bottom:var(--0da74440);display:var(--02a039da);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-9c87856b]{width:var(--690f3ced)}.config-card-details-row .config-card-details-label label[data-v-9c87856b]{color:#3a3f51}.config-card-details-row .config-card-details-value[data-v-9c87856b]{width:var(--691182c8)}.config-card-details-row .config-card-details-value .truncated[data-v-9c87856b]{display:inline-block;line-height:initial;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-value span.attrs-data-text[data-v-9c87856b]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-9c87856b] .kong-ui-copy-uuid:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-9c87856b]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-9c87856b]{margin-right:4px}.config-card-details-row[data-v-9c87856b] .k-label{margin-bottom:0}.config-card-details-row[data-v-9c87856b] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-9c87856b] .config-card-details-row{width:auto}.config-card-display-json #config-card-endpoint-codeblock .k-highlighted-code-block code,.config-card-display-json #config-card-codeblock .k-highlighted-code-block code,.config-card-display-yaml #config-card-endpoint-codeblock .k-highlighted-code-block code,.config-card-display-yaml #config-card-codeblock .k-highlighted-code-block code{background-color:#232633}.config-card-display-json-content .k-highlighted-code-block{border-top-left-radius:0!important;border-top-right-radius:0!important}.config-card-display-json-endpoint{align-items:baseline;background-color:#232633;border-bottom:1px solid rgba(255,255,255,.24);border-top-left-radius:8px;border-top-right-radius:8px;display:flex;padding-left:12px}.config-card-display-json-endpoint .k-badge{height:24px}.config-card-display-json-endpoint .k-code-block{flex:auto}.config-card-display-json-endpoint code{direction:rtl;max-width:var(--7b486894);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.config-card-prop-section-title[data-v-27f85338]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card .k-card-title[data-v-4f47d6ad]{margin-bottom:0}.kong-ui-entity-base-config-card[data-v-4f47d6ad] .k-card-content .k-card-body{font-size:14px}.kong-ui-entity-base-config-card .config-card-actions[data-v-4f47d6ad]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-4f47d6ad]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-4f47d6ad]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-4f47d6ad] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-4f47d6ad]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-448d8512]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form .form-actions[data-v-448d8512]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.kong-ui-entity-base-form .form-actions[data-v-448d8512] .k-button:last-of-type{margin-left:16px}.content-wrapper[data-v-e42a20c9] [role=button]{display:inline}.content-wrapper[data-v-e42a20c9] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-57b5a97b]{align-items:center}.kong-ui-entity-base-table .toolbar-button-container[data-v-57b5a97b]{margin-left:auto}.kong-ui-entity-base-table .actions-container[data-v-57b5a97b]{float:right}.kong-ui-entity-base-table .actions-container[data-v-57b5a97b] .k-dropdown-item-trigger{margin-bottom:0;margin-top:0}.kong-ui-entity-base-table .actions-trigger[data-v-57b5a97b]{background-color:#0000!important;border:none!important;cursor:pointer!important;font-weight:400!important}.k-tabs>.tab-container>.kong-ui-entity-base-table,.k-tabs>.tab-container>[class^=kong-ui-entities-]>.kong-ui-entity-base-table{border-top:0}.kong-ui-entity-base-table :deep(.k-table){table-layout:fixed}.kong-ui-entity-delete-modal .message[data-v-1c9a2a07],.kong-ui-entity-delete-modal .description[data-v-1c9a2a07]{line-height:24px;margin:0}.kong-ui-entity-delete-modal .message strong[data-v-1c9a2a07]{font-weight:600}.kong-ui-entity-delete-modal .description[data-v-1c9a2a07]{margin-top:32px}.kong-ui-entity-delete-error[data-v-1c9a2a07]{margin-bottom:16px}.kong-ui-entity-filter-input[data-v-15962ee2]{width:100%}.kong-ui-entity-filter[data-v-15962ee2]{display:flex;position:relative}.kong-ui-entity-filter[data-v-15962ee2] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-15962ee2] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-15962ee2]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-15962ee2]{box-shadow:0 4px 20px #e0e4ea;left:0;margin-top:16px;position:absolute;top:100%;z-index:1060}.kong-ui-entity-filter-menu[data-v-15962ee2] .k-menu-item .menu-button:focus{box-shadow:none}.kong-ui-entity-filter-menu[data-v-15962ee2] .k-menu-item .menu-button:focus-visible{box-shadow:0 0 0 1px #bee2ff}.menu-item-title[data-v-15962ee2]{align-items:center;display:flex}.menu-item-indicator[data-v-15962ee2]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-15962ee2]{align-items:center;display:flex;justify-content:space-between}.menu-item-body[data-v-15962ee2] .k-input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-15962ee2] .k-input-wrapper{width:100%}.menu-item-body[data-v-15962ee2] .k-select-input .k-input{font-size:12px}.menu-item-body[data-v-15962ee2] .k-select-input .k-input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-15962ee2]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-15962ee2]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-15962ee2]{padding:0 20px}fieldset[data-v-3565daa7]{margin:0;padding:0}.kong-ui-entity-form-section[data-v-3565daa7]{border:0}.kong-ui-entity-form-section .form-section-wrapper[data-v-3565daa7]{column-gap:16px;display:flex;flex-direction:column;padding-bottom:64px;row-gap:12px;width:100%}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper[data-v-3565daa7]{flex-direction:row}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-3565daa7]{flex:1}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-3565daa7]{max-width:350px}.kong-ui-entity-form-section .form-section-wrapper .form-section-info.sticky[data-v-3565daa7]{height:fit-content;margin-bottom:16px;position:sticky;top:16px}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-title[data-v-3565daa7]{color:#000933;font-size:18px;font-weight:600;line-height:24px;margin-bottom:8px;margin-top:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-3565daa7],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description p[data-v-3565daa7],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-3565daa7] p{color:#000933;font-size:14px;font-weight:400;line-height:20px;margin:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-footer[data-v-3565daa7]{margin-top:32px}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-3565daa7]{flex:1}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-3565daa7]>*:not(:first-child){margin-top:24px}.kong-ui-entity-form-section.has-divider .form-section-wrapper[data-v-3565daa7]{border-bottom:1px solid #e0e4ea}.kong-ui-public-entity-link[data-v-77c479ff]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-77c479ff]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-77c479ff]{display:flex}.kong-ui-public-entity-link .entity-link-icon[data-v-77c479ff]{color:#0044f4;margin-left:4px}.kong-ui-public-entity-link .entity-link-label[data-v-77c479ff]{display:inline-block;font-weight:400;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-77c479ff]{align-items:center;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-77c479ff]{margin-left:6px}.kong-ui-entities-consumer-credentials-list[data-v-f6c6d08c]{width:100%}
1
+ .config-card-fieldset[data-v-68ca83ec]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-68ca83ec]{font-size:14px;padding:0 8px;width:auto}fieldset.config-card-fieldset .config-card-details-row{width:unset}.config-card-json-item .config-card-details-row,fieldset.config-card-fieldset .config-card-details-row{margin:0 16px}.config-card-json-item .config-card-details-row:last-of-type,fieldset.config-card-fieldset .config-card-details-row:last-of-type{border-bottom:none}[data-v-c96811e5] .k-button.navigation-button{font-size:14px;font-weight:400}.kong-ui-copy-uuid[data-v-0c07874b]{align-items:center;display:flex}.kong-ui-copy-uuid .uuid-container[data-v-0c07874b]{margin-right:12px;white-space:nowrap}.kong-ui-copy-uuid .truncated-uuid[data-v-0c07874b]{margin-right:1ch;max-width:10ch;overflow:hidden;text-overflow:ellipsis}.kong-ui-copy-uuid .uuid-icon-wrapper[data-v-0c07874b]{align-items:center;cursor:pointer;display:flex}.kong-ui-copy-uuid .uuid-icon[data-v-0c07874b]{display:flex}.config-card-details-row[data-v-9c87856b]{align-items:center;border-bottom:var(--0da74440);display:var(--02a039da);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-9c87856b]{width:var(--690f3ced)}.config-card-details-row .config-card-details-label label[data-v-9c87856b]{color:#3a3f51}.config-card-details-row .config-card-details-value[data-v-9c87856b]{width:var(--691182c8)}.config-card-details-row .config-card-details-value .truncated[data-v-9c87856b]{display:inline-block;line-height:initial;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-value span.attrs-data-text[data-v-9c87856b]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-9c87856b] .kong-ui-copy-uuid:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-9c87856b]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-9c87856b]{margin-right:4px}.config-card-details-row[data-v-9c87856b] .k-label{margin-bottom:0}.config-card-details-row[data-v-9c87856b] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-9c87856b] .config-card-details-row{width:auto}.config-card-display-json #config-card-endpoint-codeblock .k-highlighted-code-block code,.config-card-display-json #config-card-codeblock .k-highlighted-code-block code,.config-card-display-yaml #config-card-endpoint-codeblock .k-highlighted-code-block code,.config-card-display-yaml #config-card-codeblock .k-highlighted-code-block code{background-color:#232633}.config-card-display-json-content .k-highlighted-code-block{border-top-left-radius:0!important;border-top-right-radius:0!important}.config-card-display-json-endpoint{align-items:baseline;background-color:#232633;border-bottom:1px solid rgba(255,255,255,.24);border-top-left-radius:8px;border-top-right-radius:8px;display:flex;padding-left:12px}.config-card-display-json-endpoint .k-badge{height:24px}.config-card-display-json-endpoint .k-code-block{flex:auto}.config-card-display-json-endpoint code{direction:rtl;max-width:var(--7b486894);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.config-card-prop-section-title[data-v-27f85338]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card .k-card-title[data-v-4f47d6ad]{margin-bottom:0}.kong-ui-entity-base-config-card[data-v-4f47d6ad] .k-card-content .k-card-body{font-size:14px}.kong-ui-entity-base-config-card .config-card-actions[data-v-4f47d6ad]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-4f47d6ad]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-4f47d6ad]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-4f47d6ad] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-4f47d6ad]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-448d8512]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form .form-actions[data-v-448d8512]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.kong-ui-entity-base-form .form-actions[data-v-448d8512] .k-button:last-of-type{margin-left:16px}.content-wrapper[data-v-e42a20c9] [role=button]{display:inline}.content-wrapper[data-v-e42a20c9] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-57b5a97b]{align-items:center}.kong-ui-entity-base-table .toolbar-button-container[data-v-57b5a97b]{margin-left:auto}.kong-ui-entity-base-table .actions-container[data-v-57b5a97b]{float:right}.kong-ui-entity-base-table .actions-container[data-v-57b5a97b] .k-dropdown-item-trigger{margin-bottom:0;margin-top:0}.kong-ui-entity-base-table .actions-trigger[data-v-57b5a97b]{background-color:#0000!important;border:none!important;cursor:pointer!important;font-weight:400!important}.k-tabs>.tab-container>.kong-ui-entity-base-table,.k-tabs>.tab-container>[class^=kong-ui-entities-]>.kong-ui-entity-base-table{border-top:0}.kong-ui-entity-base-table :deep(.k-table){table-layout:fixed}.kong-ui-entity-delete-modal .message[data-v-1c9a2a07],.kong-ui-entity-delete-modal .description[data-v-1c9a2a07]{line-height:24px;margin:0}.kong-ui-entity-delete-modal .message strong[data-v-1c9a2a07]{font-weight:600}.kong-ui-entity-delete-modal .description[data-v-1c9a2a07]{margin-top:32px}.kong-ui-entity-delete-error[data-v-1c9a2a07]{margin-bottom:16px}.kong-ui-entity-filter-input[data-v-15962ee2]{width:100%}.kong-ui-entity-filter[data-v-15962ee2]{display:flex;position:relative}.kong-ui-entity-filter[data-v-15962ee2] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-15962ee2] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-15962ee2]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-15962ee2]{box-shadow:0 4px 20px #e0e4ea;left:0;margin-top:16px;position:absolute;top:100%;z-index:1060}.kong-ui-entity-filter-menu[data-v-15962ee2] .k-menu-item .menu-button:focus{box-shadow:none}.kong-ui-entity-filter-menu[data-v-15962ee2] .k-menu-item .menu-button:focus-visible{box-shadow:0 0 0 1px #bee2ff}.menu-item-title[data-v-15962ee2]{align-items:center;display:flex}.menu-item-indicator[data-v-15962ee2]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-15962ee2]{align-items:center;display:flex;justify-content:space-between}.menu-item-body[data-v-15962ee2] .k-input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-15962ee2] .k-input-wrapper{width:100%}.menu-item-body[data-v-15962ee2] .k-select-input .k-input{font-size:12px}.menu-item-body[data-v-15962ee2] .k-select-input .k-input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-15962ee2]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-15962ee2]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-15962ee2]{padding:0 20px}fieldset[data-v-3565daa7]{margin:0;padding:0}.kong-ui-entity-form-section[data-v-3565daa7]{border:0}.kong-ui-entity-form-section .form-section-wrapper[data-v-3565daa7]{column-gap:16px;display:flex;flex-direction:column;padding-bottom:64px;row-gap:12px;width:100%}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper[data-v-3565daa7]{flex-direction:row}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-3565daa7]{flex:1}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-3565daa7]{max-width:350px}.kong-ui-entity-form-section .form-section-wrapper .form-section-info.sticky[data-v-3565daa7]{height:fit-content;margin-bottom:16px;position:sticky;top:16px}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-title[data-v-3565daa7]{color:#000933;font-size:18px;font-weight:600;line-height:24px;margin-bottom:8px;margin-top:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-3565daa7],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description p[data-v-3565daa7],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-3565daa7] p{color:#000933;font-size:14px;font-weight:400;line-height:20px;margin:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-footer[data-v-3565daa7]{margin-top:32px}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-3565daa7]{flex:1}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-3565daa7]>*:not(:first-child){margin-top:24px}.kong-ui-entity-form-section.has-divider .form-section-wrapper[data-v-3565daa7]{border-bottom:1px solid #e0e4ea}.kong-ui-public-entity-link[data-v-77c479ff]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-77c479ff]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-77c479ff]{display:flex}.kong-ui-public-entity-link .entity-link-icon[data-v-77c479ff]{color:#0044f4;margin-left:4px}.kong-ui-public-entity-link .entity-link-label[data-v-77c479ff]{display:inline-block;font-weight:400;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-77c479ff]{align-items:center;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-77c479ff]{margin-left:6px}.kong-ui-entities-consumer-credentials-list[data-v-6e469a8e]{width:100%}
@@ -1 +1 @@
1
- {"version":3,"file":"ConsumerCredentialList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ConsumerCredentialList.vue.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAEnC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAcvC,OAAO,KAAK,EAEV,uCAAuC,EACvC,mCAAmC,EACnC,SAAS,EACT,gBAAgB,EACjB,MAAM,UAAU,CAAA;AAMjB,OAAO,gDAAgD,CAAA;;IAu+BrD,oHAAoH;;;;4BAI9F,mCAAmC,GAAG,uCAAuC,KAAG,OAAO;;;;;;IAW7G,yHAAyH;;6BAEtF,OAAO,GAAG,QAAQ,OAAO,CAAC;;;;IAI7D,2HAA2H;;6BAExF,SAAS,KAAK,OAAO,GAAG,QAAQ,OAAO,CAAC;;;;IAI3E,yHAAyH;;6BAEtF,SAAS,KAAK,OAAO,GAAG,QAAQ,OAAO,CAAC;;;;IAI3E,iHAAiH;;;;;;;;;;;IAjCjH,oHAAoH;;;;4BAI9F,mCAAmC,GAAG,uCAAuC,KAAG,OAAO;;;;;;IAW7G,yHAAyH;;6BAEtF,OAAO,GAAG,QAAQ,OAAO,CAAC;;;;IAI7D,2HAA2H;;6BAExF,SAAS,KAAK,OAAO,GAAG,QAAQ,OAAO,CAAC;;;;IAI3E,yHAAyH;;6BAEtF,SAAS,KAAK,OAAO,GAAG,QAAQ,OAAO,CAAC;;;;IAI3E,iHAAiH;;;;;;;;;;;;qBAhB9E,OAAO,GAAG,QAAQ,OAAO,CAAC;qBAM1B,SAAS,KAAK,OAAO,GAAG,QAAQ,OAAO,CAAC;mBAMxC,SAAS,KAAK,OAAO,GAAG,QAAQ,OAAO,CAAC;;;AAnC7E,wBA8CG"}
1
+ {"version":3,"file":"ConsumerCredentialList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ConsumerCredentialList.vue.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAEnC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAcvC,OAAO,KAAK,EAEV,uCAAuC,EACvC,mCAAmC,EACnC,SAAS,EACT,gBAAgB,EACjB,MAAM,UAAU,CAAA;AAMjB,OAAO,gDAAgD,CAAA;;IAi+BrD,oHAAoH;;;;4BAI9F,mCAAmC,GAAG,uCAAuC,KAAG,OAAO;;;;;;IAW7G,yHAAyH;;6BAEtF,OAAO,GAAG,QAAQ,OAAO,CAAC;;;;IAI7D,2HAA2H;;6BAExF,SAAS,KAAK,OAAO,GAAG,QAAQ,OAAO,CAAC;;;;IAI3E,yHAAyH;;6BAEtF,SAAS,KAAK,OAAO,GAAG,QAAQ,OAAO,CAAC;;;;IAI3E,iHAAiH;;;;;;;;;;;IAjCjH,oHAAoH;;;;4BAI9F,mCAAmC,GAAG,uCAAuC,KAAG,OAAO;;;;;;IAW7G,yHAAyH;;6BAEtF,OAAO,GAAG,QAAQ,OAAO,CAAC;;;;IAI7D,2HAA2H;;6BAExF,SAAS,KAAK,OAAO,GAAG,QAAQ,OAAO,CAAC;;;;IAI3E,yHAAyH;;6BAEtF,SAAS,KAAK,OAAO,GAAG,QAAQ,OAAO,CAAC;;;;IAI3E,iHAAiH;;;;;;;;;;;;qBAhB9E,OAAO,GAAG,QAAQ,OAAO,CAAC;qBAM1B,SAAS,KAAK,OAAO,GAAG,QAAQ,OAAO,CAAC;mBAMxC,SAAS,KAAK,OAAO,GAAG,QAAQ,OAAO,CAAC;;;AAnC7E,wBA8CG"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kong-ui-public/entities-consumer-credentials",
3
- "version": "2.1.19",
3
+ "version": "2.1.21",
4
4
  "type": "module",
5
5
  "main": "./dist/entities-consumer-credentials.umd.js",
6
6
  "module": "./dist/entities-consumer-credentials.es.js",
@@ -23,19 +23,19 @@
23
23
  "peerDependencies": {
24
24
  "@kong/kongponents": "9.0.0-alpha.73",
25
25
  "axios": "^1.6.2",
26
- "vue": "^3.3.12",
26
+ "vue": "^3.3.13",
27
27
  "vue-router": "^4.2.5",
28
- "@kong-ui-public/copy-uuid": "^2.0.18",
29
- "@kong-ui-public/i18n": "^2.0.4"
28
+ "@kong-ui-public/copy-uuid": "^2.0.19",
29
+ "@kong-ui-public/i18n": "^2.0.5"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@kong/design-tokens": "1.12.3",
33
33
  "@kong/kongponents": "9.0.0-alpha.73",
34
34
  "axios": "^1.6.2",
35
- "vue": "^3.3.12",
35
+ "vue": "^3.3.13",
36
36
  "vue-router": "^4.2.5",
37
- "@kong-ui-public/copy-uuid": "^2.0.18",
38
- "@kong-ui-public/i18n": "^2.0.4"
37
+ "@kong-ui-public/i18n": "^2.0.5",
38
+ "@kong-ui-public/copy-uuid": "^2.0.19"
39
39
  },
40
40
  "repository": {
41
41
  "type": "git",
@@ -52,7 +52,7 @@
52
52
  "errorLimit": "300KB"
53
53
  },
54
54
  "dependencies": {
55
- "@kong-ui-public/entities-shared": "^2.3.1"
55
+ "@kong-ui-public/entities-shared": "^2.3.2"
56
56
  },
57
57
  "scripts": {
58
58
  "dev": "cross-env USE_SANDBOX=true vite",