@kong-ui-public/entities-consumer-credentials 2.1.75 → 2.1.76

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 re, ref as v, computed as A, watch as le, renderSlot as Y, createCommentVNode as V, unref as m, resolveComponent as F, openBlock as x, createBlock as U, withCtx as o, createVNode as h, createSlots as xe, withDirectives as Te, createElementVNode as Z, createElementBlock as R, vShow as Ne, renderList as Ie, createTextVNode as q, toDisplayString as T, inject as Re, onMounted as ze, onUnmounted as He, resolveDynamicComponent as Ee, normalizeStyle as Ve, pushScopeId as Je, popScopeId as We, onBeforeMount as Ye, Fragment as Ze, withModifiers as Ge } from "vue";
1
+ import { defineComponent as re, ref as w, computed as A, watch as oe, renderSlot as Y, createCommentVNode as V, unref as b, resolveComponent as M, openBlock as x, createBlock as R, withCtx as s, createVNode as m, createSlots as xe, withDirectives as Te, createElementVNode as Z, createElementBlock as U, vShow as Ne, renderList as Ie, createTextVNode as B, toDisplayString as T, inject as Ue, onMounted as ze, onUnmounted as He, resolveDynamicComponent as Ee, normalizeStyle as Ve, pushScopeId as Je, popScopeId as We, onBeforeMount as Ye, Fragment as Ze, withModifiers as Ge } from "vue";
2
2
  import { createI18n as Oe, i18nTComponent as je } from "@kong-ui-public/i18n";
3
3
  import he from "axios";
4
4
  import "@kong/kongponents";
@@ -168,7 +168,7 @@ function at() {
168
168
  return {
169
169
  getAxiosInstance: (e = {}) => {
170
170
  try {
171
- const r = Re("get-axios-instance", void 0);
171
+ const r = Ue("get-axios-instance", void 0);
172
172
  return typeof r == "function" ? r(e) : he.create({
173
173
  withCredentials: !0,
174
174
  timeout: 3e4,
@@ -200,12 +200,12 @@ function nt() {
200
200
  }
201
201
  };
202
202
  }
203
- const oe = "khcp-user-table-preferences", it = {
203
+ const le = "khcp-user-table-preferences", it = {
204
204
  pageSize: 30,
205
205
  sortColumnKey: void 0,
206
206
  sortColumnOrder: void 0
207
207
  };
208
- function lt() {
208
+ function ot() {
209
209
  const e = (t) => {
210
210
  if (typeof t == "string")
211
211
  try {
@@ -215,14 +215,14 @@ function lt() {
215
215
  return;
216
216
  }
217
217
  }, r = () => {
218
- const t = e(localStorage.getItem(oe));
218
+ const t = e(localStorage.getItem(le));
219
219
  return !t || !Object.keys(t).length ? /* @__PURE__ */ new Map() : new Map(Object.entries(t));
220
220
  };
221
221
  return {
222
222
  setTablePreferences: (t, a) => {
223
223
  try {
224
224
  const n = r();
225
- n.set(t, a), localStorage.setItem(oe, JSON.stringify(Object.fromEntries(n.entries())));
225
+ n.set(t, a), localStorage.setItem(le, JSON.stringify(Object.fromEntries(n.entries())));
226
226
  } catch (n) {
227
227
  console.error("useTablePreferences(setTablePreferences)", n);
228
228
  }
@@ -232,7 +232,7 @@ function lt() {
232
232
  return (a == null ? void 0 : a.get(t)) || void 0 || it;
233
233
  },
234
234
  deleteAllTablePreferences: () => {
235
- localStorage.removeItem(oe);
235
+ localStorage.removeItem(le);
236
236
  }
237
237
  };
238
238
  }
@@ -242,7 +242,7 @@ function ue(e = {}) {
242
242
  axiosInstance: r(e)
243
243
  };
244
244
  }
245
- const ot = {
245
+ const lt = {
246
246
  actions: {
247
247
  copyId: "Copy ID",
248
248
  copied_id: 'Copied "{id}" to the clipboard',
@@ -337,7 +337,7 @@ const ot = {
337
337
  confirmText: "Yes, disable"
338
338
  }
339
339
  }, ht = {
340
- global: ot,
340
+ global: lt,
341
341
  deleteModal: st,
342
342
  baseForm: ct,
343
343
  baseTable: ut,
@@ -360,9 +360,9 @@ function Ke() {
360
360
  if (t.length !== a.length)
361
361
  return !1;
362
362
  const n = /* @__PURE__ */ new Set([...t, ...a]);
363
- for (const l of n) {
364
- const i = t.filter((c) => c === l).length, s = a.filter((c) => c === l).length;
365
- if (i !== s)
363
+ for (const o of n) {
364
+ const i = t.filter((y) => y === o).length, l = a.filter((y) => y === o).length;
365
+ if (i !== l)
366
366
  return !1;
367
367
  }
368
368
  return !0;
@@ -372,13 +372,13 @@ function Ke() {
372
372
  objectsAreEqual: (t, a, n) => {
373
373
  if (n) {
374
374
  if (Object.keys(t).length === Object.keys(a).length)
375
- for (const l in t)
376
- if (Array.isArray(t[l]) && Array.isArray(a[l])) {
377
- if (r(t[l], a[l]))
375
+ for (const o in t)
376
+ if (Array.isArray(t[o]) && Array.isArray(a[o])) {
377
+ if (r(t[o], a[o]))
378
378
  continue;
379
379
  return !1;
380
380
  } else {
381
- if (t[l] === a[l])
381
+ if (t[o] === a[o])
382
382
  continue;
383
383
  return !1;
384
384
  }
@@ -393,8 +393,8 @@ function Ke() {
393
393
  }
394
394
  },
395
395
  sortAlpha: (t) => (a, n) => {
396
- let l = a[t] === void 0 || a[t] === null ? "" : a[t], i = n[t] === void 0 || n[t] === null ? "" : n[t];
397
- return Array.isArray(a[t]) && (l = a[t][0]), Array.isArray(n[t]) && (i = n[t][0]), l.localeCompare(i);
396
+ let o = a[t] === void 0 || a[t] === null ? "" : a[t], i = n[t] === void 0 || n[t] === null ? "" : n[t];
397
+ return Array.isArray(a[t]) && (o = a[t][0]), Array.isArray(n[t]) && (i = n[t][0]), o.localeCompare(i);
398
398
  },
399
399
  isValidUuid: (t) => t ? /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(t) : !1
400
400
  };
@@ -406,79 +406,79 @@ function mt(e, r, t, a = {
406
406
  t || (t = "100");
407
407
  const { axiosInstance: n } = ue({
408
408
  headers: e.requestHeaders
409
- }), { i18n: { t: l } } = de(), { debounce: i } = nt(), s = i(async (w) => {
410
- await J(w);
411
- }, 200), c = v(!1), p = v(""), b = v(""), y = v([]), _ = v([]), k = v(void 0), B = m(r);
412
- let f = `${e.apiBaseUrl}${B}`;
413
- e.app === "konnect" ? f = f.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (f = f.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
414
- const { isValidUuid: N } = Ke(), M = async () => {
409
+ }), { i18n: { t: o } } = de(), { debounce: i } = nt(), l = i(async (k) => {
410
+ await J(k);
411
+ }, 200), y = w(!1), C = w(""), f = w(""), p = w([]), h = w([]), v = w(void 0), N = b(r);
412
+ let c = `${e.apiBaseUrl}${N}`;
413
+ e.app === "konnect" ? c = c.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (c = c.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
414
+ const { isValidUuid: I } = Ke(), P = async () => {
415
415
  try {
416
- c.value = !0;
417
- const { data: w } = await n.get(`${f}?size=${t}`);
418
- w != null && w.next || (k.value = a.fetchedItemsKey in w ? w[a.fetchedItemsKey] : []), _.value = a.fetchedItemsKey in w ? w[a.fetchedItemsKey] : [], y.value = _.value;
416
+ y.value = !0;
417
+ const { data: k } = await n.get(`${c}?size=${t}`);
418
+ k != null && k.next || (v.value = a.fetchedItemsKey in k ? k[a.fetchedItemsKey] : []), h.value = a.fetchedItemsKey in k ? k[a.fetchedItemsKey] : [], p.value = h.value;
419
419
  } catch {
420
- y.value = [], p.value = l("debouncedFilter.errors.fetch");
420
+ p.value = [], C.value = o("debouncedFilter.errors.fetch");
421
421
  } finally {
422
- c.value = !1;
422
+ y.value = !1;
423
423
  }
424
- }, Q = v(""), J = async (w) => {
425
- var u, C, z;
426
- if (Q.value !== w)
427
- if (Q.value = w || "", k.value === void 0)
424
+ }, Q = w(""), J = async (k) => {
425
+ var u, _, z;
426
+ if (Q.value !== k)
427
+ if (Q.value = k || "", v.value === void 0)
428
428
  try {
429
- if (c.value = !0, p.value = "", b.value = "", e.app === "konnect") {
430
- let O = f + "";
431
- w && (O += `/${w}`);
432
- const { data: j } = await n.get(`${O}?size=${t}`);
433
- a.fetchedItemsKey in j ? y.value = j[a.fetchedItemsKey] : j != null && j.id ? y.value = [j] : y.value = [];
434
- } else if (w) {
435
- const O = [];
436
- N(w) && a.searchKeys.includes("id") ? O.push((async () => {
437
- const { data: I } = await n.get(`${f}/${w}`);
438
- return [I[a.fetchedItemsKey] ?? I];
439
- })()) : O.push(
440
- ...a.searchKeys.filter((I) => I !== "id").map(async (I) => {
441
- const { data: E } = await n.get(`${f}?${I}=${w}`);
442
- return E[a.fetchedItemsKey];
429
+ if (y.value = !0, C.value = "", f.value = "", e.app === "konnect") {
430
+ let j = c + "";
431
+ k && (j += `/${k}`);
432
+ const { data: $ } = await n.get(`${j}?size=${t}`);
433
+ a.fetchedItemsKey in $ ? p.value = $[a.fetchedItemsKey] : $ != null && $.id ? p.value = [$] : p.value = [];
434
+ } else if (k) {
435
+ const j = [];
436
+ I(k) && a.searchKeys.includes("id") ? j.push((async () => {
437
+ const { data: E } = await n.get(`${c}/${k}`);
438
+ return [E[a.fetchedItemsKey] ?? E];
439
+ })()) : j.push(
440
+ ...a.searchKeys.filter((E) => E !== "id").map(async (E) => {
441
+ const { data: O } = await n.get(`${c}?${E}=${k}`);
442
+ return O[a.fetchedItemsKey];
443
443
  })
444
444
  );
445
- const j = await Promise.all(O), H = /* @__PURE__ */ new Set();
446
- y.value = [], (u = j == null ? void 0 : j.forEach) == null || u.call(j, (I) => {
447
- var E;
448
- (E = I == null ? void 0 : I.forEach) == null || E.call(I, (P) => {
449
- H.has(P.id) || (H.add(P.id), y.value.push(P));
445
+ const $ = await Promise.all(j), H = /* @__PURE__ */ new Set();
446
+ p.value = [], (u = $ == null ? void 0 : $.forEach) == null || u.call($, (E) => {
447
+ var O;
448
+ (O = E == null ? void 0 : E.forEach) == null || O.call(E, (L) => {
449
+ H.has(L.id) || (H.add(L.id), p.value.push(L));
450
450
  });
451
451
  });
452
452
  } else
453
- y.value = _.value;
454
- } catch (O) {
455
- ((C = O == null ? void 0 : O.response) == null ? void 0 : C.status) === 404 ? b.value = l("debouncedFilter.errors.invalid") : (y.value = [], p.value = l("debouncedFilter.errors.fetch"));
453
+ p.value = h.value;
454
+ } catch (j) {
455
+ ((_ = j == null ? void 0 : j.response) == null ? void 0 : _.status) === 404 ? f.value = o("debouncedFilter.errors.invalid") : (p.value = [], C.value = o("debouncedFilter.errors.fetch"));
456
456
  } finally {
457
- c.value = !1;
457
+ y.value = !1;
458
458
  }
459
459
  else
460
- c.value = !0, b.value = "", w ? (y.value = (z = k.value) == null ? void 0 : z.filter((O) => {
461
- var j;
460
+ y.value = !0, f.value = "", k ? (p.value = (z = v.value) == null ? void 0 : z.filter((j) => {
461
+ var $;
462
462
  let H = !1;
463
- for (const I of a.searchKeys) {
464
- const E = typeof O[I] == "string" ? (j = O[I]) == null ? void 0 : j.toLowerCase() : O[I];
465
- E != null && E.includes(w.toLowerCase()) && (H = !0);
463
+ for (const E of a.searchKeys) {
464
+ const O = typeof j[E] == "string" ? ($ = j[E]) == null ? void 0 : $.toLowerCase() : j[E];
465
+ O != null && O.includes(k.toLowerCase()) && (H = !0);
466
466
  }
467
467
  return H;
468
- }), (!y.value || !y.value.length) && (b.value = l("debouncedFilter.errors.invalid"))) : y.value = k.value, c.value = !1;
468
+ }), (!p.value || !p.value.length) && (f.value = o("debouncedFilter.errors.invalid"))) : p.value = v.value, y.value = !1;
469
469
  };
470
470
  return {
471
- loading: c,
472
- error: p,
473
- validationError: b,
474
- results: y,
475
- allRecords: k,
476
- loadItems: M,
477
- debouncedQueryChange: s
471
+ loading: y,
472
+ error: C,
473
+ validationError: f,
474
+ results: p,
475
+ allRecords: v,
476
+ loadItems: P,
477
+ debouncedQueryChange: l
478
478
  };
479
479
  }
480
480
  function vt(e, r) {
481
- const t = m(r), a = A(
481
+ const t = b(r), a = A(
482
482
  () => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${t}`) : new URL(t)
483
483
  );
484
484
  return a.value.search = "", (n) => `${a.value.href}/${n}`;
@@ -487,7 +487,7 @@ function bt() {
487
487
  const { i18n: { t: e } } = de();
488
488
  return {
489
489
  getMessageFromError: (r) => {
490
- var t, a, n, l;
490
+ var t, a, n, o;
491
491
  if (!r)
492
492
  return e("errors.unexpected");
493
493
  if (((t = r == null ? void 0 : r.response) == null ? void 0 : t.status) === 401)
@@ -497,12 +497,12 @@ function bt() {
497
497
  return r.response.data.detail;
498
498
  if ((n = r.response.data.details) != null && n.length)
499
499
  return r.response.data.details.map((i) => {
500
- let s = e("errors.unexpected");
501
- return i.messages && typeof i.messages == "object" && i.messages.length && (s = i.messages.join(", ")), i.field ? `${i.field} - ${s}` : s;
500
+ let l = e("errors.unexpected");
501
+ return i.messages && typeof i.messages == "object" && i.messages.length && (l = i.messages.join(", ")), i.field ? `${i.field} - ${l}` : l;
502
502
  }).join("; ");
503
503
  if (r.response.data.message) {
504
504
  const { message: i } = r.response.data;
505
- return Array.isArray(i) ? (l = i[0]) != null && l.constraints ? Object.values(i[0].constraints)[0] : i[0] : i;
505
+ return Array.isArray(i) ? (o = i[0]) != null && o.constraints ? Object.values(i[0].constraints)[0] : i[0] : i;
506
506
  }
507
507
  if (typeof r.response.data == "string")
508
508
  return r.response.data;
@@ -516,8 +516,8 @@ function bt() {
516
516
  function wt(e) {
517
517
  const r = window.location.origin, t = r.endsWith("/") ? r : `${r}/`;
518
518
  try {
519
- const a = e.join("/"), n = `${t}${a}`, l = e.some((i) => i.trim() === "");
520
- if (/^(https:\/\/(www\.)?([a-zA-Z0-9-]+\.){1,}[a-zA-Z]{2,}(:[0-9]+)?(\/[^\/]+)*)$|^(https|http):\/\/localhost(:[0-9]+)?(\/[^\/]+)*$/.test(n) && !l && new URL(n))
519
+ const a = e.join("/"), n = `${t}${a}`, o = e.some((i) => i.trim() === "");
520
+ if (/^(https:\/\/(www\.)?([a-zA-Z0-9-]+\.){1,}[a-zA-Z]{2,}(:[0-9]+)?(\/[^\/]+)*)$|^(https|http):\/\/localhost(:[0-9]+)?(\/[^\/]+)*$/.test(n) && !o && new URL(n))
521
521
  return `${t}${a}`;
522
522
  throw new Error("Invalid url");
523
523
  } catch (a) {
@@ -525,66 +525,72 @@ function wt(e) {
525
525
  }
526
526
  }
527
527
  function Fe(e, r) {
528
- const t = v(m(e)), a = v(m(r)), n = A(
528
+ const t = w(b(e)), a = w(b(r)), n = A(
529
529
  () => !!(t.value.app === "konnect" || t.value.isExactMatch)
530
- ), l = A(
530
+ ), o = A(
531
531
  () => a.value.startsWith("/") ? new URL(`${window.location.origin}${a.value}`) : new URL(a.value)
532
532
  );
533
533
  return (i) => {
534
- const { page: s, pageSize: c, offset: p, sortColumnKey: b, sortColumnOrder: y, query: _ } = i;
534
+ const { page: l, pageSize: y, offset: C, sortColumnKey: f, sortColumnOrder: p, query: h } = i;
535
535
  try {
536
- let k = new URL(l.value.href);
537
- return n.value && _ ? (k.search = "", k = t.value.isExactMatch ? new URL(`${k.href}/${_}/`) : new URL(`${k.href}?filter[name][contains]=${_}`)) : (n.value || new URLSearchParams(_).forEach((B, f) => {
538
- k.searchParams.append(f, B);
539
- }), b && k.searchParams.append("sort_by", b), y === "desc" && k.searchParams.append("sort_desc", "1"), k.searchParams.append("size", String(c))), p && s !== 1 && k.searchParams.append("offset", String(p)), k.href;
540
- } catch (k) {
541
- return console.error("RouteList(fetcher)", k), a.value;
536
+ let v = new URL(o.value.href);
537
+ return n.value && h ? (v.search = "", v = t.value.isExactMatch ? new URL(`${v.href}/${h}/`) : new URL(`${v.href}?filter[name][contains]=${h}`)) : (n.value || new URLSearchParams(h).forEach((N, c) => {
538
+ v.searchParams.append(c, N);
539
+ }), f && v.searchParams.append("sort_by", f), p === "desc" && v.searchParams.append("sort_desc", "1"), v.searchParams.append("size", String(y))), C && l !== 1 && v.searchParams.append("offset", String(C)), v.href;
540
+ } catch (v) {
541
+ return console.error("RouteList(fetcher)", v), a.value;
542
542
  }
543
543
  };
544
544
  }
545
545
  function kt(e, r, t = "data") {
546
- const a = m(r), { axiosInstance: n } = ue({
547
- headers: e.requestHeaders
548
- }), l = Fe(e, a), i = v({
546
+ var a;
547
+ const n = b(r), { axiosInstance: o } = ue({
548
+ ...e.axiosRequestConfig,
549
+ headers: { ...(a = e.axiosRequestConfig) == null ? void 0 : a.headers, ...e.requestHeaders }
550
+ }), i = Fe(e, n), l = w({
549
551
  status: G.Idle
550
552
  });
551
- return { fetcher: async (s) => {
553
+ return { fetcher: async (y) => {
554
+ var C;
552
555
  try {
553
- i.value = { status: G.Loading };
554
- let c = l(s);
555
- c.includes("filter[name]") && (c = `${c}&page[size]=${s.pageSize}&page[number]=${s.page}`);
556
- const { data: p } = await n.get(c), b = t && t.replace(/[^\w-_]/gi, "");
557
- let y;
558
- p[b] && Array.isArray(p[b]) ? y = p[b] : Array.isArray(p) ? y = p : y = Object.keys(p).length ? [p] : [];
559
- const _ = {
560
- data: y,
561
- total: y.length,
562
- ...p.offset ? {
556
+ l.value = { status: G.Loading };
557
+ let f = i(y);
558
+ f.includes("filter[name]") && (f = `${f}&page[size]=${y.pageSize}&page[number]=${y.page}`);
559
+ const p = await o.get(f);
560
+ if (p.status >= 400)
561
+ throw p;
562
+ const h = p.data, v = t && t.replace(/[^\w-_]/gi, "");
563
+ let N;
564
+ h[v] && Array.isArray(h[v]) ? N = h[v] : Array.isArray(h) ? N = h : N = Object.keys(h).length ? [h] : [];
565
+ const c = {
566
+ data: N,
567
+ total: N.length,
568
+ ...h.offset ? {
563
569
  pagination: {
564
- offset: p.offset
570
+ offset: h.offset
565
571
  }
566
572
  } : null
567
573
  };
568
- return i.value = {
574
+ return l.value = {
569
575
  status: G.Idle,
570
- response: _
571
- }, _;
572
- } catch (c) {
576
+ response: c
577
+ }, c;
578
+ } catch (f) {
573
579
  const p = {
574
580
  data: [],
575
581
  total: 0
576
582
  };
577
- return s.query && c.response.status === 404 ? (i.value = {
583
+ return y.query && (((C = f.response) == null ? void 0 : C.status) === 404 || f.status === 404) ? (l.value = {
578
584
  status: G.NoResults,
579
585
  response: p,
580
- error: c
581
- }, p) : (i.value = {
586
+ error: f.response ? f : { response: f }
587
+ }, p) : (l.value = {
582
588
  status: G.Error,
583
589
  response: p,
584
- error: c
590
+ error: f.response ? f : { response: f }
585
591
  }, p);
586
592
  }
587
- }, fetcherState: i };
593
+ }, fetcherState: l };
588
594
  }
589
595
  function Ct() {
590
596
  const e = (t, a = "_") => t ? t.split(a).map((n) => n.toLowerCase() === "id" ? n.toUpperCase() : n.charAt(0).toUpperCase() + n.substring(1)).join(" ") : "", r = /(?:^|[\s-:'"])\w/g;
@@ -616,8 +622,8 @@ const Me = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
616
622
  }
617
623
  return 0;
618
624
  }, At = (e, r) => {
619
- const t = me(e), a = me(r), n = t.pop(), l = a.pop(), i = we(t, a);
620
- return i !== 0 ? i : n && l ? we(n.split("."), l.split(".")) : n || l ? n ? -1 : 1 : 0;
625
+ const t = me(e), a = me(r), n = t.pop(), o = a.pop(), i = we(t, a);
626
+ return i !== 0 ? i : n && o ? we(n.split("."), o.split(".")) : n || o ? n ? -1 : 1 : 0;
621
627
  }, ke = (e, r, t) => {
622
628
  xt(t);
623
629
  const a = At(e, r);
@@ -642,15 +648,15 @@ function Nt(e) {
642
648
  const { edition: a, version: n } = r;
643
649
  if (!Tt(n))
644
650
  return console.error("Invalid version"), !1;
645
- const l = t[a];
646
- if (!l)
651
+ const o = t[a];
652
+ if (!o)
647
653
  return !1;
648
- const [i, s] = l;
649
- return !(i && ke(n, i, "<") || s && ke(n, s, ">"));
654
+ const [i, l] = o;
655
+ return !(i && ke(n, i, "<") || l && ke(n, l, ">"));
650
656
  }
651
657
  function It(e) {
652
- const r = v(0), t = v(0), a = v(!1);
653
- return le(e, (n) => {
658
+ const r = w(0), t = w(0), a = w(!1);
659
+ return oe(e, (n) => {
654
660
  n && !a.value && (r.value = n.offsetWidth, t.value = n.scrollWidth, a.value = !0);
655
661
  }), {
656
662
  isTruncated: A(() => r.value < t.value)
@@ -686,10 +692,10 @@ function jt(e) {
686
692
  return Array.isArray(e) ? e : Le(e) ? [] : [e];
687
693
  }
688
694
  function $t(e, r) {
689
- var t, a, n, l;
695
+ var t, a, n, o;
690
696
  if (r)
691
- for (l = Object.keys(r), t = 0, a = l.length; t < a; t += 1)
692
- n = l[t], e[n] = r[n];
697
+ for (o = Object.keys(r), t = 0, a = o.length; t < a; t += 1)
698
+ n = o[t], e[n] = r[n];
693
699
  return e;
694
700
  }
695
701
  function Kt(e, r) {
@@ -701,29 +707,29 @@ function Kt(e, r) {
701
707
  function Ft(e) {
702
708
  return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
703
709
  }
704
- var Mt = Le, Pt = Ot, Lt = jt, Dt = Kt, qt = Ft, Bt = $t, ye = {
710
+ var Mt = Le, Pt = Ot, Lt = jt, qt = Kt, Dt = Ft, Bt = $t, ye = {
705
711
  isNothing: Mt,
706
712
  isObject: Pt,
707
713
  toArray: Lt,
708
- repeat: Dt,
709
- isNegativeZero: qt,
714
+ repeat: qt,
715
+ isNegativeZero: Dt,
710
716
  extend: Bt
711
717
  };
712
- function De(e, r) {
718
+ function qe(e, r) {
713
719
  var t = "", a = e.reason || "(unknown reason)";
714
720
  return e.mark ? (e.mark.name && (t += 'in "' + e.mark.name + '" '), t += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !r && e.mark.snippet && (t += `
715
721
 
716
722
  ` + e.mark.snippet), a + " " + t) : a;
717
723
  }
718
724
  function ne(e, r) {
719
- Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = r, this.message = De(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
725
+ Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = r, this.message = qe(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
720
726
  }
721
727
  ne.prototype = Object.create(Error.prototype);
722
728
  ne.prototype.constructor = ne;
723
729
  ne.prototype.toString = function(e) {
724
- return this.name + ": " + De(this, e);
730
+ return this.name + ": " + qe(this, e);
725
731
  };
726
- var X = ne, Ut = [
732
+ var X = ne, Rt = [
727
733
  "kind",
728
734
  "multi",
729
735
  "resolve",
@@ -734,7 +740,7 @@ var X = ne, Ut = [
734
740
  "representName",
735
741
  "defaultStyle",
736
742
  "styleAliases"
737
- ], Rt = [
743
+ ], Ut = [
738
744
  "scalar",
739
745
  "sequence",
740
746
  "mapping"
@@ -749,22 +755,22 @@ function zt(e) {
749
755
  }
750
756
  function Ht(e, r) {
751
757
  if (r = r || {}, Object.keys(r).forEach(function(t) {
752
- if (Ut.indexOf(t) === -1)
758
+ if (Rt.indexOf(t) === -1)
753
759
  throw new X('Unknown option "' + t + '" is met in definition of "' + e + '" YAML type.');
754
760
  }), this.options = r, this.tag = e, this.kind = r.kind || null, this.resolve = r.resolve || function() {
755
761
  return !0;
756
762
  }, this.construct = r.construct || function(t) {
757
763
  return t;
758
- }, this.instanceOf = r.instanceOf || null, this.predicate = r.predicate || null, this.represent = r.represent || null, this.representName = r.representName || null, this.defaultStyle = r.defaultStyle || null, this.multi = r.multi || !1, this.styleAliases = zt(r.styleAliases || null), Rt.indexOf(this.kind) === -1)
764
+ }, this.instanceOf = r.instanceOf || null, this.predicate = r.predicate || null, this.represent = r.represent || null, this.representName = r.representName || null, this.defaultStyle = r.defaultStyle || null, this.multi = r.multi || !1, this.styleAliases = zt(r.styleAliases || null), Ut.indexOf(this.kind) === -1)
759
765
  throw new X('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
760
766
  }
761
- var $ = Ht;
767
+ var K = Ht;
762
768
  function _e(e, r) {
763
769
  var t = [];
764
770
  return e[r].forEach(function(a) {
765
771
  var n = t.length;
766
- t.forEach(function(l, i) {
767
- l.tag === a.tag && l.kind === a.kind && l.multi === a.multi && (n = i);
772
+ t.forEach(function(o, i) {
773
+ o.tag === a.tag && o.kind === a.kind && o.multi === a.multi && (n = i);
768
774
  }), t[n] = a;
769
775
  }), t;
770
776
  }
@@ -793,7 +799,7 @@ function ce(e) {
793
799
  }
794
800
  ce.prototype.extend = function(e) {
795
801
  var r = [], t = [];
796
- if (e instanceof $)
802
+ if (e instanceof K)
797
803
  t.push(e);
798
804
  else if (Array.isArray(e))
799
805
  t = t.concat(e);
@@ -802,30 +808,30 @@ ce.prototype.extend = function(e) {
802
808
  else
803
809
  throw new X("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
804
810
  r.forEach(function(n) {
805
- if (!(n instanceof $))
811
+ if (!(n instanceof K))
806
812
  throw new X("Specified list of YAML types (or a single Type object) contains a non-Type object.");
807
813
  if (n.loadKind && n.loadKind !== "scalar")
808
814
  throw new X("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
809
815
  if (n.multi)
810
816
  throw new X("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
811
817
  }), t.forEach(function(n) {
812
- if (!(n instanceof $))
818
+ if (!(n instanceof K))
813
819
  throw new X("Specified list of YAML types (or a single Type object) contains a non-Type object.");
814
820
  });
815
821
  var a = Object.create(ce.prototype);
816
822
  return a.implicit = (this.implicit || []).concat(r), a.explicit = (this.explicit || []).concat(t), a.compiledImplicit = _e(a, "implicit"), a.compiledExplicit = _e(a, "explicit"), a.compiledTypeMap = Vt(a.compiledImplicit, a.compiledExplicit), a;
817
823
  };
818
- var Jt = ce, Wt = new $("tag:yaml.org,2002:str", {
824
+ var Jt = ce, Wt = new K("tag:yaml.org,2002:str", {
819
825
  kind: "scalar",
820
826
  construct: function(e) {
821
827
  return e !== null ? e : "";
822
828
  }
823
- }), Yt = new $("tag:yaml.org,2002:seq", {
829
+ }), Yt = new K("tag:yaml.org,2002:seq", {
824
830
  kind: "sequence",
825
831
  construct: function(e) {
826
832
  return e !== null ? e : [];
827
833
  }
828
- }), Zt = new $("tag:yaml.org,2002:map", {
834
+ }), Zt = new K("tag:yaml.org,2002:map", {
829
835
  kind: "mapping",
830
836
  construct: function(e) {
831
837
  return e !== null ? e : {};
@@ -849,7 +855,7 @@ function Qt() {
849
855
  function er(e) {
850
856
  return e === null;
851
857
  }
852
- var tr = new $("tag:yaml.org,2002:null", {
858
+ var tr = new K("tag:yaml.org,2002:null", {
853
859
  kind: "scalar",
854
860
  resolve: Xt,
855
861
  construct: Qt,
@@ -885,7 +891,7 @@ function ar(e) {
885
891
  function nr(e) {
886
892
  return Object.prototype.toString.call(e) === "[object Boolean]";
887
893
  }
888
- var ir = new $("tag:yaml.org,2002:bool", {
894
+ var ir = new K("tag:yaml.org,2002:bool", {
889
895
  kind: "scalar",
890
896
  resolve: rr,
891
897
  construct: ar,
@@ -903,10 +909,10 @@ var ir = new $("tag:yaml.org,2002:bool", {
903
909
  },
904
910
  defaultStyle: "lowercase"
905
911
  });
906
- function lr(e) {
912
+ function or(e) {
907
913
  return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
908
914
  }
909
- function or(e) {
915
+ function lr(e) {
910
916
  return 48 <= e && e <= 55;
911
917
  }
912
918
  function sr(e) {
@@ -933,7 +939,7 @@ function cr(e) {
933
939
  if (n === "x") {
934
940
  for (t++; t < r; t++)
935
941
  if (n = e[t], n !== "_") {
936
- if (!lr(e.charCodeAt(t)))
942
+ if (!or(e.charCodeAt(t)))
937
943
  return !1;
938
944
  a = !0;
939
945
  }
@@ -942,7 +948,7 @@ function cr(e) {
942
948
  if (n === "o") {
943
949
  for (t++; t < r; t++)
944
950
  if (n = e[t], n !== "_") {
945
- if (!or(e.charCodeAt(t)))
951
+ if (!lr(e.charCodeAt(t)))
946
952
  return !1;
947
953
  a = !0;
948
954
  }
@@ -976,7 +982,7 @@ function ur(e) {
976
982
  function dr(e) {
977
983
  return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !ye.isNegativeZero(e);
978
984
  }
979
- var pr = new $("tag:yaml.org,2002:int", {
985
+ var pr = new K("tag:yaml.org,2002:int", {
980
986
  kind: "scalar",
981
987
  resolve: cr,
982
988
  construct: ur,
@@ -1053,7 +1059,7 @@ function mr(e, r) {
1053
1059
  function vr(e) {
1054
1060
  return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || ye.isNegativeZero(e));
1055
1061
  }
1056
- var br = new $("tag:yaml.org,2002:float", {
1062
+ var br = new K("tag:yaml.org,2002:float", {
1057
1063
  kind: "scalar",
1058
1064
  resolve: yr,
1059
1065
  construct: gr,
@@ -1067,31 +1073,31 @@ var br = new $("tag:yaml.org,2002:float", {
1067
1073
  pr,
1068
1074
  br
1069
1075
  ]
1070
- }), kr = wr, qe = new RegExp(
1076
+ }), kr = wr, De = new RegExp(
1071
1077
  "^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
1072
1078
  ), Be = new RegExp(
1073
1079
  "^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"
1074
1080
  );
1075
1081
  function Cr(e) {
1076
- return e === null ? !1 : qe.exec(e) !== null || Be.exec(e) !== null;
1082
+ return e === null ? !1 : De.exec(e) !== null || Be.exec(e) !== null;
1077
1083
  }
1078
1084
  function _r(e) {
1079
- var r, t, a, n, l, i, s, c = 0, p = null, b, y, _;
1080
- if (r = qe.exec(e), r === null && (r = Be.exec(e)), r === null)
1085
+ var r, t, a, n, o, i, l, y = 0, C = null, f, p, h;
1086
+ if (r = De.exec(e), r === null && (r = Be.exec(e)), r === null)
1081
1087
  throw new Error("Date resolve error");
1082
1088
  if (t = +r[1], a = +r[2] - 1, n = +r[3], !r[4])
1083
1089
  return new Date(Date.UTC(t, a, n));
1084
- if (l = +r[4], i = +r[5], s = +r[6], r[7]) {
1085
- for (c = r[7].slice(0, 3); c.length < 3; )
1086
- c += "0";
1087
- c = +c;
1090
+ if (o = +r[4], i = +r[5], l = +r[6], r[7]) {
1091
+ for (y = r[7].slice(0, 3); y.length < 3; )
1092
+ y += "0";
1093
+ y = +y;
1088
1094
  }
1089
- return r[9] && (b = +r[10], y = +(r[11] || 0), p = (b * 60 + y) * 6e4, r[9] === "-" && (p = -p)), _ = new Date(Date.UTC(t, a, n, l, i, s, c)), p && _.setTime(_.getTime() - p), _;
1095
+ return r[9] && (f = +r[10], p = +(r[11] || 0), C = (f * 60 + p) * 6e4, r[9] === "-" && (C = -C)), h = new Date(Date.UTC(t, a, n, o, i, l, y)), C && h.setTime(h.getTime() - C), h;
1090
1096
  }
1091
1097
  function Sr(e) {
1092
1098
  return e.toISOString();
1093
1099
  }
1094
- var Ar = new $("tag:yaml.org,2002:timestamp", {
1100
+ var Ar = new K("tag:yaml.org,2002:timestamp", {
1095
1101
  kind: "scalar",
1096
1102
  resolve: Cr,
1097
1103
  construct: _r,
@@ -1101,7 +1107,7 @@ var Ar = new $("tag:yaml.org,2002:timestamp", {
1101
1107
  function xr(e) {
1102
1108
  return e === "<<" || e === null;
1103
1109
  }
1104
- var Tr = new $("tag:yaml.org,2002:merge", {
1110
+ var Tr = new K("tag:yaml.org,2002:merge", {
1105
1111
  kind: "scalar",
1106
1112
  resolve: xr
1107
1113
  }), ge = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
@@ -1109,9 +1115,9 @@ var Tr = new $("tag:yaml.org,2002:merge", {
1109
1115
  function Nr(e) {
1110
1116
  if (e === null)
1111
1117
  return !1;
1112
- var r, t, a = 0, n = e.length, l = ge;
1118
+ var r, t, a = 0, n = e.length, o = ge;
1113
1119
  for (t = 0; t < n; t++)
1114
- if (r = l.indexOf(e.charAt(t)), !(r > 64)) {
1120
+ if (r = o.indexOf(e.charAt(t)), !(r > 64)) {
1115
1121
  if (r < 0)
1116
1122
  return !1;
1117
1123
  a += 6;
@@ -1119,21 +1125,21 @@ function Nr(e) {
1119
1125
  return a % 8 === 0;
1120
1126
  }
1121
1127
  function Ir(e) {
1122
- var r, t, a = e.replace(/[\r\n=]/g, ""), n = a.length, l = ge, i = 0, s = [];
1128
+ var r, t, a = e.replace(/[\r\n=]/g, ""), n = a.length, o = ge, i = 0, l = [];
1123
1129
  for (r = 0; r < n; r++)
1124
- r % 4 === 0 && r && (s.push(i >> 16 & 255), s.push(i >> 8 & 255), s.push(i & 255)), i = i << 6 | l.indexOf(a.charAt(r));
1125
- return t = n % 4 * 6, t === 0 ? (s.push(i >> 16 & 255), s.push(i >> 8 & 255), s.push(i & 255)) : t === 18 ? (s.push(i >> 10 & 255), s.push(i >> 2 & 255)) : t === 12 && s.push(i >> 4 & 255), new Uint8Array(s);
1130
+ r % 4 === 0 && r && (l.push(i >> 16 & 255), l.push(i >> 8 & 255), l.push(i & 255)), i = i << 6 | o.indexOf(a.charAt(r));
1131
+ return t = n % 4 * 6, t === 0 ? (l.push(i >> 16 & 255), l.push(i >> 8 & 255), l.push(i & 255)) : t === 18 ? (l.push(i >> 10 & 255), l.push(i >> 2 & 255)) : t === 12 && l.push(i >> 4 & 255), new Uint8Array(l);
1126
1132
  }
1127
1133
  function Er(e) {
1128
- var r = "", t = 0, a, n, l = e.length, i = ge;
1129
- for (a = 0; a < l; a++)
1134
+ var r = "", t = 0, a, n, o = e.length, i = ge;
1135
+ for (a = 0; a < o; a++)
1130
1136
  a % 3 === 0 && a && (r += i[t >> 18 & 63], r += i[t >> 12 & 63], r += i[t >> 6 & 63], r += i[t & 63]), t = (t << 8) + e[a];
1131
- return n = l % 3, n === 0 ? (r += i[t >> 18 & 63], r += i[t >> 12 & 63], r += i[t >> 6 & 63], r += i[t & 63]) : n === 2 ? (r += i[t >> 10 & 63], r += i[t >> 4 & 63], r += i[t << 2 & 63], r += i[64]) : n === 1 && (r += i[t >> 2 & 63], r += i[t << 4 & 63], r += i[64], r += i[64]), r;
1137
+ return n = o % 3, n === 0 ? (r += i[t >> 18 & 63], r += i[t >> 12 & 63], r += i[t >> 6 & 63], r += i[t & 63]) : n === 2 ? (r += i[t >> 10 & 63], r += i[t >> 4 & 63], r += i[t << 2 & 63], r += i[64]) : n === 1 && (r += i[t >> 2 & 63], r += i[t << 4 & 63], r += i[64], r += i[64]), r;
1132
1138
  }
1133
1139
  function Or(e) {
1134
1140
  return Object.prototype.toString.call(e) === "[object Uint8Array]";
1135
1141
  }
1136
- var jr = new $("tag:yaml.org,2002:binary", {
1142
+ var jr = new K("tag:yaml.org,2002:binary", {
1137
1143
  kind: "scalar",
1138
1144
  resolve: Nr,
1139
1145
  construct: Ir,
@@ -1143,20 +1149,20 @@ var jr = new $("tag:yaml.org,2002:binary", {
1143
1149
  function Fr(e) {
1144
1150
  if (e === null)
1145
1151
  return !0;
1146
- var r = [], t, a, n, l, i, s = e;
1147
- for (t = 0, a = s.length; t < a; t += 1) {
1148
- if (n = s[t], i = !1, Kr.call(n) !== "[object Object]")
1152
+ var r = [], t, a, n, o, i, l = e;
1153
+ for (t = 0, a = l.length; t < a; t += 1) {
1154
+ if (n = l[t], i = !1, Kr.call(n) !== "[object Object]")
1149
1155
  return !1;
1150
- for (l in n)
1151
- if ($r.call(n, l))
1156
+ for (o in n)
1157
+ if ($r.call(n, o))
1152
1158
  if (!i)
1153
1159
  i = !0;
1154
1160
  else
1155
1161
  return !1;
1156
1162
  if (!i)
1157
1163
  return !1;
1158
- if (r.indexOf(l) === -1)
1159
- r.push(l);
1164
+ if (r.indexOf(o) === -1)
1165
+ r.push(o);
1160
1166
  else
1161
1167
  return !1;
1162
1168
  }
@@ -1165,50 +1171,50 @@ function Fr(e) {
1165
1171
  function Mr(e) {
1166
1172
  return e !== null ? e : [];
1167
1173
  }
1168
- var Pr = new $("tag:yaml.org,2002:omap", {
1174
+ var Pr = new K("tag:yaml.org,2002:omap", {
1169
1175
  kind: "sequence",
1170
1176
  resolve: Fr,
1171
1177
  construct: Mr
1172
1178
  }), Lr = Object.prototype.toString;
1173
- function Dr(e) {
1179
+ function qr(e) {
1174
1180
  if (e === null)
1175
1181
  return !0;
1176
- var r, t, a, n, l, i = e;
1177
- for (l = new Array(i.length), r = 0, t = i.length; r < t; r += 1) {
1182
+ var r, t, a, n, o, i = e;
1183
+ for (o = new Array(i.length), r = 0, t = i.length; r < t; r += 1) {
1178
1184
  if (a = i[r], Lr.call(a) !== "[object Object]" || (n = Object.keys(a), n.length !== 1))
1179
1185
  return !1;
1180
- l[r] = [n[0], a[n[0]]];
1186
+ o[r] = [n[0], a[n[0]]];
1181
1187
  }
1182
1188
  return !0;
1183
1189
  }
1184
- function qr(e) {
1190
+ function Dr(e) {
1185
1191
  if (e === null)
1186
1192
  return [];
1187
- var r, t, a, n, l, i = e;
1188
- for (l = new Array(i.length), r = 0, t = i.length; r < t; r += 1)
1189
- a = i[r], n = Object.keys(a), l[r] = [n[0], a[n[0]]];
1190
- return l;
1193
+ var r, t, a, n, o, i = e;
1194
+ for (o = new Array(i.length), r = 0, t = i.length; r < t; r += 1)
1195
+ a = i[r], n = Object.keys(a), o[r] = [n[0], a[n[0]]];
1196
+ return o;
1191
1197
  }
1192
- var Br = new $("tag:yaml.org,2002:pairs", {
1198
+ var Br = new K("tag:yaml.org,2002:pairs", {
1193
1199
  kind: "sequence",
1194
- resolve: Dr,
1195
- construct: qr
1196
- }), Ur = Object.prototype.hasOwnProperty;
1197
- function Rr(e) {
1200
+ resolve: qr,
1201
+ construct: Dr
1202
+ }), Rr = Object.prototype.hasOwnProperty;
1203
+ function Ur(e) {
1198
1204
  if (e === null)
1199
1205
  return !0;
1200
1206
  var r, t = e;
1201
1207
  for (r in t)
1202
- if (Ur.call(t, r) && t[r] !== null)
1208
+ if (Rr.call(t, r) && t[r] !== null)
1203
1209
  return !1;
1204
1210
  return !0;
1205
1211
  }
1206
1212
  function zr(e) {
1207
1213
  return e !== null ? e : {};
1208
1214
  }
1209
- var Hr = new $("tag:yaml.org,2002:set", {
1215
+ var Hr = new K("tag:yaml.org,2002:set", {
1210
1216
  kind: "mapping",
1211
- resolve: Rr,
1217
+ resolve: Ur,
1212
1218
  construct: zr
1213
1219
  });
1214
1220
  kr.extend({
@@ -1297,9 +1303,9 @@ const Ae = "24px", Wr = (e, r) => {
1297
1303
  if (typeof r.size == "number" && r.size > 0)
1298
1304
  return `${r.size}px`;
1299
1305
  if (typeof r.size == "string") {
1300
- const n = String(r.size).replace(/px/gi, ""), l = Number(n);
1301
- if (l && !isNaN(l) && Number.isInteger(l) && l > 0)
1302
- return `${l}px`;
1306
+ const n = String(r.size).replace(/px/gi, ""), o = Number(n);
1307
+ if (o && !isNaN(o) && Number.isInteger(o) && o > 0)
1308
+ return `${o}px`;
1303
1309
  }
1304
1310
  return Ae;
1305
1311
  }), a = A(() => ({
@@ -1310,14 +1316,14 @@ const Ae = "24px", Wr = (e, r) => {
1310
1316
  lineHeight: "0",
1311
1317
  width: t.value
1312
1318
  }));
1313
- return (n, l) => (x(), U(Ee(e.as), {
1319
+ return (n, o) => (x(), R(Ee(e.as), {
1314
1320
  "aria-hidden": e.decorative ? "true" : void 0,
1315
1321
  class: "kui-icon add-icon",
1316
1322
  "data-testid": "kui-icon-wrapper-add-icon",
1317
1323
  style: Ve(a.value)
1318
1324
  }, {
1319
- default: o(() => [
1320
- (x(), R("svg", {
1325
+ default: s(() => [
1326
+ (x(), U("svg", {
1321
1327
  "aria-hidden": e.decorative ? "true" : void 0,
1322
1328
  "data-testid": "kui-icon-svg-add-icon",
1323
1329
  fill: "none",
@@ -1327,7 +1333,7 @@ const Ae = "24px", Wr = (e, r) => {
1327
1333
  width: "100%",
1328
1334
  xmlns: "http://www.w3.org/2000/svg"
1329
1335
  }, [
1330
- e.title ? (x(), R("title", Gr, T(e.title), 1)) : V("", !0),
1336
+ e.title ? (x(), U("title", Gr, T(e.title), 1)) : V("", !0),
1331
1337
  Xr
1332
1338
  ], 8, Zr))
1333
1339
  ]),
@@ -1351,67 +1357,67 @@ const Ae = "24px", Wr = (e, r) => {
1351
1357
  },
1352
1358
  setup(e) {
1353
1359
  const r = e, t = A(() => {
1354
- var f;
1355
- return ((f = r.rowEl) == null ? void 0 : f.querySelector(`[data-testid="${r.keyName}"]`)) || null;
1360
+ var c;
1361
+ return ((c = r.rowEl) == null ? void 0 : c.querySelector(`[data-testid="${r.keyName}"]`)) || null;
1356
1362
  }), a = A(() => {
1357
- var f;
1358
- return ((f = t.value) == null ? void 0 : f.querySelector('[data-testid="first-col"]')) || null;
1363
+ var c;
1364
+ return ((c = t.value) == null ? void 0 : c.querySelector('[data-testid="first-col"]')) || null;
1359
1365
  }), n = A(() => {
1360
- var f, N;
1361
- const M = (f = r.rowEl) == null ? void 0 : f.querySelectorAll("td");
1362
- return M ? ((N = M[0]) == null ? void 0 : N.getAttribute("data-testid")) === r.keyName : !1;
1366
+ var c, I;
1367
+ const P = (c = r.rowEl) == null ? void 0 : c.querySelectorAll("td");
1368
+ return P ? ((I = P[0]) == null ? void 0 : I.getAttribute("data-testid")) === r.keyName : !1;
1363
1369
  });
1364
- let l;
1370
+ let o;
1365
1371
  const i = () => {
1366
- l && (l.disconnect(), l = void 0);
1367
- }, s = () => {
1368
- var f, N, M;
1369
- p.value = ((f = a.value) == null ? void 0 : f.getBoundingClientRect().width) || 0, b.value = ((N = t.value) == null ? void 0 : N.clientWidth) || 0, y.value = ((M = c.value) == null ? void 0 : M.innerText) || "";
1370
- }, c = v({}), p = v(0), b = v(0), y = v(""), _ = A(() => [a.value, t.value]), k = le(
1371
- _,
1372
- (f) => {
1372
+ o && (o.disconnect(), o = void 0);
1373
+ }, l = () => {
1374
+ var c, I, P;
1375
+ C.value = ((c = a.value) == null ? void 0 : c.getBoundingClientRect().width) || 0, f.value = ((I = t.value) == null ? void 0 : I.clientWidth) || 0, p.value = ((P = y.value) == null ? void 0 : P.innerText) || "";
1376
+ }, y = w({}), C = w(0), f = w(0), p = w(""), h = A(() => [a.value, t.value]), v = oe(
1377
+ h,
1378
+ (c) => {
1373
1379
  if (n.value && (i(), "ResizeObserver" in window && window)) {
1374
- l = new ResizeObserver((N) => {
1380
+ o = new ResizeObserver((I) => {
1375
1381
  window.requestAnimationFrame(() => {
1376
- !Array.isArray(N) || !N.length || s();
1382
+ !Array.isArray(I) || !I.length || l();
1377
1383
  });
1378
1384
  });
1379
- for (const N of f)
1380
- N && l.observe(N);
1385
+ for (const I of c)
1386
+ I && o.observe(I);
1381
1387
  }
1382
1388
  },
1383
1389
  { immediate: !0, flush: "post", deep: !0 }
1384
- ), B = A(() => n.value ? p.value > b.value : !1);
1390
+ ), N = A(() => n.value ? C.value > f.value : !1);
1385
1391
  return ze(() => {
1386
- s();
1392
+ l();
1387
1393
  }), He(() => {
1388
- k();
1389
- }), (f, N) => {
1390
- const M = F("KTooltip");
1391
- return x(), R("span", {
1394
+ v();
1395
+ }), (c, I) => {
1396
+ const P = M("KTooltip");
1397
+ return x(), U("span", {
1392
1398
  ref_key: "contentRef",
1393
- ref: c,
1399
+ ref: y,
1394
1400
  class: "content-wrapper"
1395
1401
  }, [
1396
- n.value ? (x(), R("span", ta, [
1397
- h(M, {
1402
+ n.value ? (x(), U("span", ta, [
1403
+ m(P, {
1398
1404
  "max-width": "300",
1399
1405
  placement: "bottomStart",
1400
- text: B.value ? y.value : ""
1406
+ text: N.value ? p.value : ""
1401
1407
  }, {
1402
- default: o(() => [
1403
- Y(f.$slots, "default", {}, void 0, !0)
1408
+ default: s(() => [
1409
+ Y(c.$slots, "default", {}, void 0, !0)
1404
1410
  ]),
1405
1411
  _: 3
1406
1412
  }, 8, ["text"])
1407
- ])) : Y(f.$slots, "default", { key: 1 }, void 0, !0)
1413
+ ])) : Y(c.$slots, "default", { key: 1 }, void 0, !0)
1408
1414
  ], 512);
1409
1415
  };
1410
1416
  }
1411
1417
  }), aa = /* @__PURE__ */ fe(ra, [["__scopeId", "data-v-c4379fd4"]]), na = { class: "toolbar-container" }, ia = {
1412
1418
  key: 0,
1413
1419
  class: "toolbar-button-container"
1414
- }, la = ["data-testid"], oa = /* @__PURE__ */ re({
1420
+ }, oa = ["data-testid"], la = /* @__PURE__ */ re({
1415
1421
  __name: "EntityBaseTable",
1416
1422
  props: {
1417
1423
  // table header configuration
@@ -1521,8 +1527,8 @@ const Ae = "24px", Wr = (e, r) => {
1521
1527
  },
1522
1528
  emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
1523
1529
  setup(e, { emit: r }) {
1524
- const t = e, a = r, { i18n: { t: n } } = pe.useI18n(), l = A(() => {
1525
- var u, C;
1530
+ const t = e, a = r, { i18n: { t: n } } = pe.useI18n(), o = A(() => {
1531
+ var u, _;
1526
1532
  return typeof t.errorMessage == "string" ? {
1527
1533
  hasError: !!t.errorMessage,
1528
1534
  title: t.errorMessage,
@@ -1530,127 +1536,127 @@ const Ae = "24px", Wr = (e, r) => {
1530
1536
  } : {
1531
1537
  hasError: !!t.errorMessage,
1532
1538
  title: (u = t.errorMessage) == null ? void 0 : u.title,
1533
- message: (C = t.errorMessage) == null ? void 0 : C.message
1539
+ message: (_ = t.errorMessage) == null ? void 0 : _.message
1534
1540
  };
1535
- }), i = A(() => t.cacheIdentifier || t.preferencesStorageKey), s = (u) => u.hasData || !!t.query, c = A(() => {
1541
+ }), i = A(() => t.cacheIdentifier || t.preferencesStorageKey), l = (u) => u.hasData || !!t.query, y = A(() => {
1536
1542
  const u = [];
1537
- return Object.keys(t.tableHeaders).forEach((C) => {
1538
- const z = t.tableHeaders[C];
1543
+ return Object.keys(t.tableHeaders).forEach((_) => {
1544
+ const z = t.tableHeaders[_];
1539
1545
  u.push({
1540
- label: z.label ?? C,
1541
- key: C,
1546
+ label: z.label ?? _,
1547
+ key: _,
1542
1548
  sortable: z.sortable ?? !1
1543
1549
  });
1544
1550
  }), t.enableEntityActions && u.push({
1545
1551
  key: "actions",
1546
1552
  hideLabel: !0
1547
1553
  }), u;
1548
- }), p = (u) => ({
1554
+ }), C = (u) => ({
1549
1555
  "data-rowid": u.id,
1550
1556
  "data-testid": u.name,
1551
1557
  ...t.rowAttributes(u)
1552
- }), b = v({}), y = (u) => {
1553
- var C;
1554
- return (C = b.value) == null ? void 0 : C.$el.querySelector(`[data-rowid="${u.id}"]`);
1555
- }, _ = (u) => {
1556
- const C = {
1558
+ }), f = w({}), p = (u) => {
1559
+ var _;
1560
+ return (_ = f.value) == null ? void 0 : _.$el.querySelector(`[data-rowid="${u.id}"]`);
1561
+ }, h = (u) => {
1562
+ const _ = {
1557
1563
  "data-testid": u.headerKey,
1558
1564
  ...t.cellAttributes(u)
1559
1565
  };
1560
- return u.colIndex === 0 && (C.style = {
1566
+ return u.colIndex === 0 && (_.style = {
1561
1567
  maxWidth: "250px",
1562
1568
  overflowX: "hidden",
1563
1569
  textOverflow: "ellipsis"
1564
- }), C;
1565
- }, k = () => {
1566
- a("empty-state-cta-clicked"), B();
1567
- }, B = () => {
1570
+ }), _;
1571
+ }, v = () => {
1572
+ a("empty-state-cta-clicked"), N();
1573
+ }, N = () => {
1568
1574
  a("clear-search-input");
1569
- }, f = A(() => t.disableRowClick ? void 0 : (u, C) => {
1570
- a("click:row", C);
1571
- }), N = (u) => {
1575
+ }, c = A(() => t.disableRowClick ? void 0 : (u, _) => {
1576
+ a("click:row", _);
1577
+ }), I = (u) => {
1572
1578
  a("sort", u);
1573
- }, { setTablePreferences: M, getTablePreferences: Q } = lt(), J = A(() => {
1579
+ }, { setTablePreferences: P, getTablePreferences: Q } = ot(), J = A(() => {
1574
1580
  const u = Q(t.preferencesStorageKey);
1575
1581
  return {
1576
1582
  ...t.initialFetcherParams,
1577
1583
  ...u
1578
1584
  };
1579
- }), w = (u) => {
1580
- t.preferencesStorageKey && M(t.preferencesStorageKey, u);
1585
+ }), k = (u) => {
1586
+ t.preferencesStorageKey && P(t.preferencesStorageKey, u);
1581
1587
  };
1582
- return (u, C) => {
1583
- const z = F("KIcon"), O = F("KButton"), j = F("KDropdown"), H = F("KTable"), I = F("KCard");
1584
- return x(), U(I, {
1588
+ return (u, _) => {
1589
+ const z = M("KIcon"), j = M("KButton"), $ = M("KDropdown"), H = M("KTable"), E = M("KCard");
1590
+ return x(), R(E, {
1585
1591
  class: "kong-ui-entity-base-table",
1586
1592
  title: e.title
1587
1593
  }, {
1588
- default: o(() => [
1589
- h(H, {
1594
+ default: s(() => [
1595
+ m(H, {
1590
1596
  ref_key: "tableRefs",
1591
- ref: b,
1597
+ ref: f,
1592
1598
  "cache-identifier": i.value,
1593
- "cell-attrs": _,
1599
+ "cell-attrs": h,
1594
1600
  "disable-pagination-page-jump": e.disablePaginationPageJump,
1595
1601
  "disable-sorting": e.disableSorting,
1596
- "empty-state-action-message": e.query ? m(n)("baseTable.emptyState.noSearchResultsCtaText") : e.emptyStateOptions.ctaText,
1602
+ "empty-state-action-message": e.query ? b(n)("baseTable.emptyState.noSearchResultsCtaText") : e.emptyStateOptions.ctaText,
1597
1603
  "empty-state-action-route": e.query ? void 0 : e.emptyStateOptions.ctaPath,
1598
1604
  "empty-state-icon-variant": e.query ? "search" : "kong",
1599
- "empty-state-message": e.query ? m(n)("baseTable.emptyState.noSearchResultsMessage") : e.emptyStateOptions.message,
1600
- "empty-state-title": e.query ? m(n)("baseTable.emptyState.noSearchResultsTitle") : e.emptyStateOptions.title,
1605
+ "empty-state-message": e.query ? b(n)("baseTable.emptyState.noSearchResultsMessage") : e.emptyStateOptions.message,
1606
+ "empty-state-title": e.query ? b(n)("baseTable.emptyState.noSearchResultsTitle") : e.emptyStateOptions.title,
1601
1607
  "enable-client-sort": e.enableClientSort,
1602
- "error-state-message": l.value.message,
1603
- "error-state-title": l.value.title,
1608
+ "error-state-message": o.value.message,
1609
+ "error-state-title": o.value.title,
1604
1610
  fetcher: e.fetcher,
1605
1611
  "fetcher-cache-key": String(e.fetcherCacheKey),
1606
- "has-error": l.value.hasError,
1607
- headers: c.value,
1612
+ "has-error": o.value.hasError,
1613
+ headers: y.value,
1608
1614
  "hide-pagination-when-optional": "",
1609
1615
  "initial-fetcher-params": J.value,
1610
1616
  "is-loading": e.isLoading,
1611
1617
  "pagination-type": e.paginationType,
1612
- "row-attrs": p,
1618
+ "row-attrs": C,
1613
1619
  "search-input": e.query,
1614
- onKtableEmptyStateCtaClicked: k,
1615
- "onRow:click": f.value,
1616
- onSort: C[0] || (C[0] = (E) => N(E)),
1617
- "onUpdate:tablePreferences": w
1620
+ onKtableEmptyStateCtaClicked: v,
1621
+ "onRow:click": c.value,
1622
+ onSort: _[0] || (_[0] = (O) => I(O)),
1623
+ "onUpdate:tablePreferences": k
1618
1624
  }, xe({
1619
- toolbar: o(({ state: E }) => [
1625
+ toolbar: s(({ state: O }) => [
1620
1626
  Te(Z("div", na, [
1621
1627
  Y(u.$slots, "toolbar-filter", {}, void 0, !0),
1622
- u.$slots["toolbar-button"] ? (x(), R("div", ia, [
1628
+ u.$slots["toolbar-button"] ? (x(), U("div", ia, [
1623
1629
  Y(u.$slots, "toolbar-button", {}, void 0, !0)
1624
1630
  ])) : V("", !0)
1625
1631
  ], 512), [
1626
- [Ne, s(E)]
1632
+ [Ne, l(O)]
1627
1633
  ])
1628
1634
  ]),
1629
- actions: o(({ row: E, rowKey: P, rowValue: d }) => [
1635
+ actions: s(({ row: O, rowKey: L, rowValue: d }) => [
1630
1636
  Z("div", {
1631
1637
  class: "actions-container",
1632
- "data-testid": E.name
1638
+ "data-testid": O.name
1633
1639
  }, [
1634
- h(j, {
1640
+ m($, {
1635
1641
  "kpop-attributes": { placement: "bottomEnd" },
1636
1642
  width: e.dropdownMenuWidth
1637
1643
  }, {
1638
- items: o(() => [
1644
+ items: s(() => [
1639
1645
  Y(u.$slots, "actions", {
1640
- row: E,
1641
- rowKey: P,
1646
+ row: O,
1647
+ rowKey: L,
1642
1648
  rowValue: d
1643
1649
  }, void 0, !0)
1644
1650
  ]),
1645
- default: o(() => [
1646
- h(O, {
1651
+ default: s(() => [
1652
+ m(j, {
1647
1653
  class: "actions-trigger",
1648
1654
  "data-testid": "overflow-actions-button",
1649
1655
  size: "small"
1650
1656
  }, {
1651
- icon: o(() => [
1652
- h(z, {
1653
- color: m(Et),
1657
+ icon: s(() => [
1658
+ m(z, {
1659
+ color: b(Et),
1654
1660
  icon: "more",
1655
1661
  size: "16"
1656
1662
  }, null, 8, ["color"])
@@ -1660,24 +1666,24 @@ const Ae = "24px", Wr = (e, r) => {
1660
1666
  ]),
1661
1667
  _: 2
1662
1668
  }, 1032, ["width"])
1663
- ], 8, la)
1669
+ ], 8, oa)
1664
1670
  ]),
1665
1671
  _: 2
1666
1672
  }, [
1667
- Ie(e.tableHeaders, (E, P) => ({
1668
- name: P,
1669
- fn: o(({ row: d, rowKey: S, rowValue: L }) => [
1670
- h(aa, {
1671
- "key-name": String(P),
1672
- "row-el": y(d)
1673
+ Ie(e.tableHeaders, (O, L) => ({
1674
+ name: L,
1675
+ fn: s(({ row: d, rowKey: S, rowValue: q }) => [
1676
+ m(aa, {
1677
+ "key-name": String(L),
1678
+ "row-el": p(d)
1673
1679
  }, {
1674
- default: o(() => [
1675
- Y(u.$slots, P, {
1680
+ default: s(() => [
1681
+ Y(u.$slots, L, {
1676
1682
  row: d,
1677
1683
  rowKey: S,
1678
- rowValue: L
1684
+ rowValue: q
1679
1685
  }, () => [
1680
- q(T(L), 1)
1686
+ B(T(q), 1)
1681
1687
  ], !0)
1682
1688
  ]),
1683
1689
  _: 2
@@ -1686,8 +1692,8 @@ const Ae = "24px", Wr = (e, r) => {
1686
1692
  })),
1687
1693
  e.query ? void 0 : {
1688
1694
  name: "empty-state-action-icon",
1689
- fn: o(() => [
1690
- h(m(ea))
1695
+ fn: s(() => [
1696
+ m(b(ea))
1691
1697
  ]),
1692
1698
  key: "0"
1693
1699
  }
@@ -1697,7 +1703,7 @@ const Ae = "24px", Wr = (e, r) => {
1697
1703
  }, 8, ["title"]);
1698
1704
  };
1699
1705
  }
1700
- }), sa = /* @__PURE__ */ fe(oa, [["__scopeId", "data-v-273124cf"]]), ca = {
1706
+ }), sa = /* @__PURE__ */ fe(la, [["__scopeId", "data-v-273124cf"]]), ca = {
1701
1707
  key: 0,
1702
1708
  class: "kong-ui-entity-delete-error"
1703
1709
  }, ua = {
@@ -1742,53 +1748,53 @@ const Ae = "24px", Wr = (e, r) => {
1742
1748
  },
1743
1749
  emits: ["cancel", "proceed"],
1744
1750
  setup(e, { emit: r }) {
1745
- const { i18nT: t } = pe.useI18n(), a = e, n = r, l = A(() => a.needConfirm ? a.entityName : ""), i = () => {
1751
+ const { i18nT: t } = pe.useI18n(), a = e, n = r, o = A(() => a.needConfirm ? a.entityName : ""), i = () => {
1746
1752
  n("cancel");
1747
- }, s = () => {
1753
+ }, l = () => {
1748
1754
  n("proceed");
1749
1755
  };
1750
- return (c, p) => {
1751
- const b = F("KAlert"), y = F("KPrompt");
1752
- return x(), U(y, {
1756
+ return (y, C) => {
1757
+ const f = M("KAlert"), p = M("KPrompt");
1758
+ return x(), R(p, {
1753
1759
  "action-button-appearance": "danger",
1754
1760
  "action-button-disabled": e.actionPending,
1755
1761
  "action-button-text": "Yes, delete",
1756
1762
  class: "kong-ui-entity-delete-modal",
1757
- "confirmation-text": l.value,
1763
+ "confirmation-text": o.value,
1758
1764
  title: e.title,
1759
1765
  visible: e.visible,
1760
1766
  onCancel: i,
1761
- onProceed: s
1767
+ onProceed: l
1762
1768
  }, {
1763
- default: o(() => [
1764
- e.error ? (x(), R("div", ca, [
1765
- h(b, { appearance: "danger" }, {
1766
- default: o(() => [
1767
- q(T(e.error), 1)
1769
+ default: s(() => [
1770
+ e.error ? (x(), U("div", ca, [
1771
+ m(f, { appearance: "danger" }, {
1772
+ default: s(() => [
1773
+ B(T(e.error), 1)
1768
1774
  ]),
1769
1775
  _: 1
1770
1776
  })
1771
1777
  ])) : V("", !0),
1772
- h(m(t), {
1778
+ m(b(t), {
1773
1779
  class: "message",
1774
1780
  keypath: a.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
1775
1781
  tag: "p"
1776
1782
  }, xe({
1777
- entityType: o(() => [
1778
- q(T(a.entityType), 1)
1783
+ entityType: s(() => [
1784
+ B(T(a.entityType), 1)
1779
1785
  ]),
1780
1786
  _: 2
1781
1787
  }, [
1782
1788
  a.entityName ? {
1783
1789
  name: "entityName",
1784
- fn: o(() => [
1790
+ fn: s(() => [
1785
1791
  Z("strong", null, T(a.entityName), 1)
1786
1792
  ]),
1787
1793
  key: "0"
1788
1794
  } : void 0
1789
1795
  ]), 1032, ["keypath"]),
1790
- a.description || c.$slots.description ? (x(), R("div", ua, [
1791
- Y(c.$slots, "description", {}, () => [
1796
+ a.description || y.$slots.description ? (x(), U("div", ua, [
1797
+ Y(y.$slots, "description", {}, () => [
1792
1798
  Z("p", null, T(a.description), 1)
1793
1799
  ], !0)
1794
1800
  ])) : V("", !0)
@@ -1819,10 +1825,10 @@ const Ae = "24px", Wr = (e, r) => {
1819
1825
  }
1820
1826
  },
1821
1827
  setup(e) {
1822
- const r = e, t = v(void 0), a = A(() => t.value === !0 || t.value !== void 0 && r.forceShow === !0);
1823
- return le(() => r.authFunction, async () => {
1828
+ const r = e, t = w(void 0), a = A(() => t.value === !0 || t.value !== void 0 && r.forceShow === !0);
1829
+ return oe(() => r.authFunction, async () => {
1824
1830
  t.value = await r.authFunction();
1825
- }, { immediate: !0 }), (n, l) => a.value ? Y(n.$slots, "default", {
1831
+ }, { immediate: !0 }), (n, o) => a.value ? Y(n.$slots, "default", {
1826
1832
  key: 0,
1827
1833
  isAllowed: t.value
1828
1834
  }) : V("", !0);
@@ -1867,9 +1873,9 @@ const Ae = "24px", Wr = (e, r) => {
1867
1873
  },
1868
1874
  emits: ["error", "copy:success", "copy:error", "delete:success"],
1869
1875
  setup(e, { emit: r }) {
1870
- const t = r, a = e, { i18n: { t: n, formatUnixTimeStamp: l } } = tt.useI18n(), { axiosInstance: i } = fa({
1876
+ const t = r, a = e, { i18n: { t: n, formatUnixTimeStamp: o } } = tt.useI18n(), { axiosInstance: i } = fa({
1871
1877
  headers: a.config.requestHeaders
1872
- }), s = v(1), c = {
1878
+ }), l = w(1), y = {
1873
1879
  acls: {
1874
1880
  group: { label: n("credentials.list.table_headers.acls.group") },
1875
1881
  created_at: { label: n("credentials.list.table_headers.acls.created_at") },
@@ -1910,25 +1916,25 @@ const Ae = "24px", Wr = (e, r) => {
1910
1916
  created_at: { label: n("credentials.list.table_headers.jwt.created_at") },
1911
1917
  tags: { label: n("credentials.list.table_headers.jwt.tags") }
1912
1918
  }
1913
- }, p = A(() => c[a.config.plugin]), b = A(() => {
1919
+ }, C = A(() => y[a.config.plugin]), f = A(() => {
1914
1920
  let d = `${a.config.apiBaseUrl}${rt.list[a.config.app]}`;
1915
1921
  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;
1916
- }), { fetcher: y, fetcherState: _ } = ga(a.config, b), k = () => {
1917
- s.value++;
1918
- }, B = v(null), f = (d, S, L) => {
1922
+ }), { fetcher: p, fetcherState: h } = ga(a.config, f), v = () => {
1923
+ l.value++;
1924
+ }, N = w(null), c = (d, S, q) => {
1919
1925
  const D = S ? d[S] : JSON.stringify(d);
1920
- if (!L(D)) {
1921
- M(d, S);
1926
+ if (!q(D)) {
1927
+ P(d, S);
1922
1928
  return;
1923
1929
  }
1924
- N(d, S);
1925
- }, N = (d, S) => {
1930
+ I(d, S);
1931
+ }, I = (d, S) => {
1926
1932
  t("copy:success", {
1927
1933
  entity: d,
1928
1934
  field: S,
1929
1935
  message: S && !["password", "key", "client_secret", "secret"].includes(S) ? n("credentials.copy.success", { val: d[S] }) : n("credentials.copy.success_brief")
1930
1936
  });
1931
- }, M = (d, S) => {
1937
+ }, P = (d, S) => {
1932
1938
  t("copy:error", {
1933
1939
  entity: d,
1934
1940
  field: S,
@@ -1937,82 +1943,82 @@ const Ae = "24px", Wr = (e, r) => {
1937
1943
  }, Q = (d) => ({
1938
1944
  label: n("credentials.actions.edit"),
1939
1945
  to: a.config.getEditRoute(d)
1940
- }), J = v(void 0), w = v(!1), u = v(!1), C = v(""), z = ya(a.config, b.value), O = A(() => $e[a.config.plugin]), j = (d) => {
1941
- J.value = d, w.value = !0;
1946
+ }), J = w(void 0), k = w(!1), u = w(!1), _ = w(""), z = ya(a.config, f.value), j = A(() => $e[a.config.plugin]), $ = (d) => {
1947
+ J.value = d, k.value = !0;
1942
1948
  }, H = () => {
1943
- w.value = !1;
1944
- }, I = async () => {
1945
- var d, S, L;
1949
+ k.value = !1;
1950
+ }, E = async () => {
1951
+ var d, S, q;
1946
1952
  if ((d = J.value) != null && d.id) {
1947
1953
  u.value = !0;
1948
1954
  try {
1949
- await i.delete(z(J.value.id)), u.value = !1, w.value = !1, s.value++, t("delete:success", J.value);
1955
+ await i.delete(z(J.value.id)), u.value = !1, k.value = !1, l.value++, t("delete:success", J.value);
1950
1956
  } catch (D) {
1951
- C.value = ((L = (S = D.response) == null ? void 0 : S.data) == null ? void 0 : L.message) || D.message || n("credentials.error.delete"), t("error", D);
1957
+ _.value = ((q = (S = D.response) == null ? void 0 : S.data) == null ? void 0 : q.message) || D.message || n("credentials.error.delete"), t("error", D);
1952
1958
  } finally {
1953
1959
  u.value = !1;
1954
1960
  }
1955
1961
  }
1956
- }, E = v(!0);
1957
- le(_, (d) => {
1958
- var S, L, D, ie;
1959
- if (Array.isArray((S = d == null ? void 0 : d.response) == null ? void 0 : S.data) && (E.value = d.response.data.length > 0), d.status === G.Error) {
1960
- B.value = {
1962
+ }, O = w(!0);
1963
+ oe(h, (d) => {
1964
+ var S, q, D, ie;
1965
+ if (Array.isArray((S = d == null ? void 0 : d.response) == null ? void 0 : S.data) && (O.value = d.response.data.length > 0), d.status === G.Error) {
1966
+ N.value = {
1961
1967
  title: n("credentials.error.general")
1962
- }, (ie = (D = (L = d.error) == null ? void 0 : L.response) == null ? void 0 : D.data) != null && ie.message && (B.value.message = d.error.response.data.message), t("error", d.error);
1968
+ }, (ie = (D = (q = d.error) == null ? void 0 : q.response) == null ? void 0 : D.data) != null && ie.message && (N.value.message = d.error.response.data.message), t("error", d.error);
1963
1969
  return;
1964
1970
  }
1965
- B.value = null;
1971
+ N.value = null;
1966
1972
  });
1967
- const P = v({
1973
+ const L = w({
1968
1974
  ctaPath: a.config.createRoute,
1969
1975
  ctaText: void 0,
1970
1976
  message: "",
1971
1977
  title: n("credentials.title")
1972
1978
  });
1973
1979
  return Ye(async () => {
1974
- await a.canCreate() && (P.value.title = n(`credentials.list.empty_state.${a.config.plugin}.title`), P.value.ctaText = n(`credentials.list.empty_state.${a.config.plugin}.cta`));
1980
+ await a.canCreate() && (L.value.title = n(`credentials.list.empty_state.${a.config.plugin}.title`), L.value.ctaText = n(`credentials.list.empty_state.${a.config.plugin}.cta`));
1975
1981
  }), (d, S) => {
1976
- const L = F("KButton"), D = F("KCopy"), ie = F("KBadge"), Ue = F("KTruncate"), W = F("KDropdownItem"), ee = F("KClipboardProvider");
1977
- return x(), R("div", ha, [
1978
- h(m(sa), {
1982
+ const q = M("KButton"), D = M("KCopy"), ie = M("KBadge"), Re = M("KTruncate"), W = M("KDropdownItem"), ee = M("KClipboardProvider");
1983
+ return x(), U("div", ha, [
1984
+ m(b(sa), {
1979
1985
  "cache-identifier": e.cacheIdentifier,
1980
1986
  "disable-pagination-page-jump": "",
1981
1987
  "disable-row-click": "",
1982
1988
  "disable-sorting": "",
1983
- "empty-state-options": P.value,
1989
+ "empty-state-options": L.value,
1984
1990
  "enable-entity-actions": "",
1985
- "error-message": B.value,
1986
- fetcher: m(y),
1987
- "fetcher-cache-key": s.value,
1991
+ "error-message": N.value,
1992
+ fetcher: b(p),
1993
+ "fetcher-cache-key": l.value,
1988
1994
  "pagination-type": "offset",
1989
1995
  "preferences-storage-key": "kong-ui-entities-consumer-credentials-list",
1990
- "table-headers": p.value,
1996
+ "table-headers": C.value,
1991
1997
  "use-action-outside": e.useActionOutside,
1992
- onSort: k
1998
+ onSort: v
1993
1999
  }, {
1994
- "toolbar-button": o(() => [
1995
- (x(), U(Ee(e.useActionOutside ? "Teleport" : "div"), {
2000
+ "toolbar-button": s(() => [
2001
+ (x(), R(Ee(e.useActionOutside ? "Teleport" : "div"), {
1996
2002
  to: e.useActionOutside ? "#kong-ui-app-page-header-action-button" : void 0
1997
2003
  }, {
1998
- default: o(() => [
1999
- h(m(se), {
2004
+ default: s(() => [
2005
+ m(b(se), {
2000
2006
  "auth-function": () => e.canCreate()
2001
2007
  }, {
2002
- default: o(() => [
2003
- Te(h(L, {
2008
+ default: s(() => [
2009
+ Te(m(q, {
2004
2010
  appearance: "primary",
2005
2011
  "data-testid": "toolbar-add-credential",
2006
2012
  icon: "plus",
2007
2013
  size: "large",
2008
2014
  to: e.config.createRoute
2009
2015
  }, {
2010
- default: o(() => [
2011
- q(T(m(n)(`credentials.list.toolbar_actions.${e.config.plugin}.new`)), 1)
2016
+ default: s(() => [
2017
+ B(T(b(n)(`credentials.list.toolbar_actions.${e.config.plugin}.new`)), 1)
2012
2018
  ]),
2013
2019
  _: 1
2014
2020
  }, 8, ["to"]), [
2015
- [Ne, E.value]
2021
+ [Ne, O.value]
2016
2022
  ])
2017
2023
  ]),
2018
2024
  _: 1
@@ -2021,153 +2027,153 @@ const Ae = "24px", Wr = (e, r) => {
2021
2027
  _: 1
2022
2028
  }, 8, ["to"]))
2023
2029
  ]),
2024
- group: o(({ rowValue: g }) => [
2030
+ group: s(({ rowValue: g }) => [
2025
2031
  Z("b", null, T(g ?? "-"), 1)
2026
2032
  ]),
2027
- name: o(({ rowValue: g }) => [
2033
+ name: s(({ rowValue: g }) => [
2028
2034
  Z("b", null, T(g ?? "-"), 1)
2029
2035
  ]),
2030
- username: o(({ rowValue: g }) => [
2036
+ username: s(({ rowValue: g }) => [
2031
2037
  Z("span", null, T(g ?? "-"), 1)
2032
2038
  ]),
2033
- password: o(({ rowValue: g }) => [
2034
- h(D, {
2039
+ password: s(({ rowValue: g }) => [
2040
+ m(D, {
2035
2041
  format: "redacted",
2036
2042
  text: g,
2037
2043
  truncate: ""
2038
2044
  }, null, 8, ["text"])
2039
2045
  ]),
2040
- key: o(({ rowValue: g }) => [
2041
- h(D, {
2046
+ key: s(({ rowValue: g }) => [
2047
+ m(D, {
2042
2048
  format: "redacted",
2043
2049
  text: g,
2044
2050
  truncate: ""
2045
2051
  }, null, 8, ["text"])
2046
2052
  ]),
2047
- client_secret: o(({ rowValue: g }) => [
2048
- h(D, {
2053
+ client_secret: s(({ rowValue: g }) => [
2054
+ m(D, {
2049
2055
  format: "redacted",
2050
2056
  text: g,
2051
2057
  truncate: ""
2052
2058
  }, null, 8, ["text"])
2053
2059
  ]),
2054
- secret: o(({ rowValue: g }) => [
2055
- h(D, {
2060
+ secret: s(({ rowValue: g }) => [
2061
+ m(D, {
2056
2062
  format: "redacted",
2057
2063
  text: g,
2058
2064
  truncate: ""
2059
2065
  }, null, 8, ["text"])
2060
2066
  ]),
2061
- created_at: o(({ rowValue: g }) => [
2062
- q(T(m(l)(g)), 1)
2067
+ created_at: s(({ rowValue: g }) => [
2068
+ B(T(b(o)(g)), 1)
2063
2069
  ]),
2064
- tags: o(({ rowValue: g }) => [
2065
- (g == null ? void 0 : g.length) > 0 ? (x(), U(Ue, { key: 0 }, {
2066
- default: o(() => [
2067
- (x(!0), R(Ze, null, Ie(g, (K) => (x(), U(ie, {
2068
- key: K,
2070
+ tags: s(({ rowValue: g }) => [
2071
+ (g == null ? void 0 : g.length) > 0 ? (x(), R(Re, { key: 0 }, {
2072
+ default: s(() => [
2073
+ (x(!0), U(Ze, null, Ie(g, (F) => (x(), R(ie, {
2074
+ key: F,
2069
2075
  onClick: S[0] || (S[0] = Ge(() => {
2070
2076
  }, ["stop"]))
2071
2077
  }, {
2072
- default: o(() => [
2073
- q(T(K), 1)
2078
+ default: s(() => [
2079
+ B(T(F), 1)
2074
2080
  ]),
2075
2081
  _: 2
2076
2082
  }, 1024))), 128))
2077
2083
  ]),
2078
2084
  _: 2
2079
- }, 1024)) : (x(), R("span", ma, "-"))
2085
+ }, 1024)) : (x(), U("span", ma, "-"))
2080
2086
  ]),
2081
- actions: o(({ row: g }) => [
2082
- h(ee, null, {
2083
- default: o(({ copyToClipboard: K }) => [
2084
- h(W, {
2087
+ actions: s(({ row: g }) => [
2088
+ m(ee, null, {
2089
+ default: s(({ copyToClipboard: F }) => [
2090
+ m(W, {
2085
2091
  "data-testid": "action-entity-copy-id",
2086
- onClick: (ae) => f(g, "id", K)
2092
+ onClick: (ae) => c(g, "id", F)
2087
2093
  }, {
2088
- default: o(() => [
2089
- q(T(m(n)("credentials.actions.copy_id")), 1)
2094
+ default: s(() => [
2095
+ B(T(b(n)("credentials.actions.copy_id")), 1)
2090
2096
  ]),
2091
2097
  _: 2
2092
2098
  }, 1032, ["onClick"])
2093
2099
  ]),
2094
2100
  _: 2
2095
2101
  }, 1024),
2096
- e.config.plugin === "basic-auth" ? (x(), U(ee, { key: 0 }, {
2097
- default: o(({ copyToClipboard: K }) => [
2098
- h(W, {
2102
+ e.config.plugin === "basic-auth" ? (x(), R(ee, { key: 0 }, {
2103
+ default: s(({ copyToClipboard: F }) => [
2104
+ m(W, {
2099
2105
  "data-testid": "action-entity-copy-credential",
2100
- onClick: (ae) => f(g, "password", K)
2106
+ onClick: (ae) => c(g, "password", F)
2101
2107
  }, {
2102
- default: o(() => [
2103
- q(T(m(n)("credentials.actions.copy_credential")), 1)
2108
+ default: s(() => [
2109
+ B(T(b(n)("credentials.actions.copy_credential")), 1)
2104
2110
  ]),
2105
2111
  _: 2
2106
2112
  }, 1032, ["onClick"])
2107
2113
  ]),
2108
2114
  _: 2
2109
2115
  }, 1024)) : V("", !0),
2110
- ["key-auth", "key-auth-enc", "jwt"].includes(e.config.plugin) ? (x(), U(ee, { key: 1 }, {
2111
- default: o(({ copyToClipboard: K }) => [
2112
- h(W, {
2116
+ ["key-auth", "key-auth-enc", "jwt"].includes(e.config.plugin) ? (x(), R(ee, { key: 1 }, {
2117
+ default: s(({ copyToClipboard: F }) => [
2118
+ m(W, {
2113
2119
  "data-testid": "action-entity-copy-key",
2114
- onClick: (ae) => f(g, "key", K)
2120
+ onClick: (ae) => c(g, "key", F)
2115
2121
  }, {
2116
- default: o(() => [
2117
- q(T(m(n)("credentials.actions.copy_key")), 1)
2122
+ default: s(() => [
2123
+ B(T(b(n)("credentials.actions.copy_key")), 1)
2118
2124
  ]),
2119
2125
  _: 2
2120
2126
  }, 1032, ["onClick"])
2121
2127
  ]),
2122
2128
  _: 2
2123
2129
  }, 1024)) : V("", !0),
2124
- e.config.plugin === "oauth2" ? (x(), U(ee, { key: 2 }, {
2125
- default: o(({ copyToClipboard: K }) => [
2126
- h(W, {
2130
+ e.config.plugin === "oauth2" ? (x(), R(ee, { key: 2 }, {
2131
+ default: s(({ copyToClipboard: F }) => [
2132
+ m(W, {
2127
2133
  "data-testid": "action-entity-copy-secret",
2128
- onClick: (ae) => f(g, "client_secret", K)
2134
+ onClick: (ae) => c(g, "client_secret", F)
2129
2135
  }, {
2130
- default: o(() => [
2131
- q(T(m(n)("credentials.actions.copy_secret")), 1)
2136
+ default: s(() => [
2137
+ B(T(b(n)("credentials.actions.copy_secret")), 1)
2132
2138
  ]),
2133
2139
  _: 2
2134
2140
  }, 1032, ["onClick"])
2135
2141
  ]),
2136
2142
  _: 2
2137
2143
  }, 1024)) : V("", !0),
2138
- e.config.plugin === "hmac-auth" ? (x(), U(ee, { key: 3 }, {
2139
- default: o(({ copyToClipboard: K }) => [
2140
- h(W, {
2144
+ e.config.plugin === "hmac-auth" ? (x(), R(ee, { key: 3 }, {
2145
+ default: s(({ copyToClipboard: F }) => [
2146
+ m(W, {
2141
2147
  "data-testid": "action-entity-copy-secret",
2142
- onClick: (ae) => f(g, "secret", K)
2148
+ onClick: (ae) => c(g, "secret", F)
2143
2149
  }, {
2144
- default: o(() => [
2145
- q(T(m(n)("credentials.actions.copy_secret")), 1)
2150
+ default: s(() => [
2151
+ B(T(b(n)("credentials.actions.copy_secret")), 1)
2146
2152
  ]),
2147
2153
  _: 2
2148
2154
  }, 1032, ["onClick"])
2149
2155
  ]),
2150
2156
  _: 2
2151
2157
  }, 1024)) : V("", !0),
2152
- h(ee, null, {
2153
- default: o(({ copyToClipboard: K }) => [
2154
- h(W, {
2158
+ m(ee, null, {
2159
+ default: s(({ copyToClipboard: F }) => [
2160
+ m(W, {
2155
2161
  "data-testid": "action-entity-copy-json",
2156
- onClick: (ae) => f(g, void 0, K)
2162
+ onClick: (ae) => c(g, void 0, F)
2157
2163
  }, {
2158
- default: o(() => [
2159
- q(T(m(n)("credentials.actions.copy_json")), 1)
2164
+ default: s(() => [
2165
+ B(T(b(n)("credentials.actions.copy_json")), 1)
2160
2166
  ]),
2161
2167
  _: 2
2162
2168
  }, 1032, ["onClick"])
2163
2169
  ]),
2164
2170
  _: 2
2165
2171
  }, 1024),
2166
- h(m(se), {
2172
+ m(b(se), {
2167
2173
  "auth-function": () => e.canEdit(g)
2168
2174
  }, {
2169
- default: o(() => [
2170
- h(W, {
2175
+ default: s(() => [
2176
+ m(W, {
2171
2177
  "data-testid": "action-entity-edit",
2172
2178
  "has-divider": "",
2173
2179
  item: Q(g.id)
@@ -2175,18 +2181,18 @@ const Ae = "24px", Wr = (e, r) => {
2175
2181
  ]),
2176
2182
  _: 2
2177
2183
  }, 1032, ["auth-function"]),
2178
- h(m(se), {
2184
+ m(b(se), {
2179
2185
  "auth-function": () => e.canDelete(g)
2180
2186
  }, {
2181
- default: o(() => [
2182
- h(W, {
2187
+ default: s(() => [
2188
+ m(W, {
2183
2189
  danger: "",
2184
2190
  "data-testid": "action-entity-delete",
2185
2191
  "has-divider": "",
2186
- onClick: (K) => j(g)
2192
+ onClick: (F) => $(g)
2187
2193
  }, {
2188
- default: o(() => [
2189
- q(T(m(n)("credentials.actions.delete")), 1)
2194
+ default: s(() => [
2195
+ B(T(b(n)("credentials.actions.delete")), 1)
2190
2196
  ]),
2191
2197
  _: 2
2192
2198
  }, 1032, ["onClick"])
@@ -2196,15 +2202,15 @@ const Ae = "24px", Wr = (e, r) => {
2196
2202
  ]),
2197
2203
  _: 1
2198
2204
  }, 8, ["cache-identifier", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "table-headers", "use-action-outside"]),
2199
- h(m(pa), {
2205
+ m(b(pa), {
2200
2206
  "action-pending": u.value,
2201
- description: m(n)("credentials.delete.description"),
2202
- "entity-type": O.value,
2203
- error: C.value,
2204
- title: m(n)(`credentials.delete.${e.config.plugin}.title`),
2205
- visible: w.value,
2207
+ description: b(n)("credentials.delete.description"),
2208
+ "entity-type": j.value,
2209
+ error: _.value,
2210
+ title: b(n)(`credentials.delete.${e.config.plugin}.title`),
2211
+ visible: k.value,
2206
2212
  onCancel: H,
2207
- onProceed: I
2213
+ onProceed: E
2208
2214
  }, null, 8, ["action-pending", "description", "entity-type", "error", "title", "visible"])
2209
2215
  ]);
2210
2216
  };