@kong-ui-public/entities-consumer-credentials 2.1.11 → 2.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
- import { defineComponent as ne, ref as b, computed as N, watch as le, renderSlot as J, createCommentVNode as Y, unref as v, resolveComponent as P, openBlock as E, createBlock as H, withCtx as o, createVNode as g, createSlots as Se, withDirectives as Te, createElementVNode as X, createElementBlock as V, vShow as Ae, renderList as Ne, createTextVNode as L, toDisplayString as I, onMounted as Re, onUnmounted as De, onBeforeMount as Be, Teleport as qe, Fragment as He, withModifiers as We } from "vue";
2
- import { createI18n as Ie, i18nTComponent as xe } from "@kong-ui-public/i18n";
3
- import ze from "axios";
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 M, openBlock as j, createBlock as H, withCtx as s, createVNode as g, createSlots as Ae, withDirectives as Te, createElementVNode as ee, createElementBlock as V, vShow as Ne, renderList as Ie, createTextVNode as L, toDisplayString as x, onMounted as Re, onUnmounted as Be, onBeforeMount as qe, Teleport as ze, Fragment as He, withModifiers as We } from "vue";
2
+ import { createI18n as xe, i18nTComponent as Ee } from "@kong-ui-public/i18n";
3
+ import Je from "axios";
4
4
  import "@kong/kongponents";
5
5
  import "vue-router";
6
- const Je = {
6
+ const Ye = {
7
7
  title: "Consumer Credentials",
8
8
  list: {
9
9
  toolbar_actions: {
@@ -144,29 +144,29 @@ const Je = {
144
144
  success: "Copied {val} to clipboard",
145
145
  success_brief: "Successfully copied to clipboard"
146
146
  }
147
- }, Ye = {
148
- credentials: Je
147
+ }, Ge = {
148
+ credentials: Ye
149
149
  };
150
150
  function Ve() {
151
- const e = Ie("en-us", Ye);
151
+ const e = xe("en-us", Ge);
152
152
  return {
153
153
  i18n: e,
154
- i18nT: xe(e)
154
+ i18nT: Ee(e)
155
155
  // Translation component <i18n-t>
156
156
  };
157
157
  }
158
- const Ge = {
158
+ const Ze = {
159
159
  useI18n: Ve
160
- }, Ze = {
160
+ }, Qe = {
161
161
  list: {
162
162
  konnect: "/api/runtime_groups/{controlPlaneId}/consumers/{consumerId}/{plugin}",
163
163
  kongManager: "/{workspace}/consumers/{consumerId}/{plugin}"
164
164
  }
165
165
  };
166
- var Ee = /* @__PURE__ */ ((e) => (e.GatewayService = "service", e.Route = "route", e.Consumer = "consumer", e.ConsumerGroup = "consumer group", e.Plugin = "plugin", e.Upstream = "upstream", e.Certificate = "certificate", e.CACertificate = "ca certificate", e.SNI = "SNI", e.Key = "key", e.KeySet = "key set", e.Vault = "vault", e.Application = "application", e.Developer = "developer", e.acls = "ACL Credential", e["basic-auth"] = "Basic Auth Credential", e["key-auth"] = "Key Auth Credential", e["key-auth-enc"] = "Key Auth Encrypted Credential", e.oauth2 = "OAuth 2.0 Credential", e["hmac-auth"] = "HMAC Credential", e.jwt = "JWT Credential", e.Target = "target", e.Policy = "policy", e))(Ee || {}), G = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(G || {});
167
- function ue(e = {}) {
166
+ var Oe = /* @__PURE__ */ ((e) => (e.GatewayService = "service", e.Route = "route", e.Consumer = "consumer", e.ConsumerGroup = "consumer group", e.Plugin = "plugin", e.Upstream = "upstream", e.Certificate = "certificate", e.CACertificate = "ca certificate", e.SNI = "SNI", e.Key = "key", e.KeySet = "key set", e.Vault = "vault", e.Application = "application", e.Developer = "developer", e.acls = "ACL Credential", e["basic-auth"] = "Basic Auth Credential", e["key-auth"] = "Key Auth Credential", e["key-auth-enc"] = "Key Auth Encrypted Credential", e.oauth2 = "OAuth 2.0 Credential", e["hmac-auth"] = "HMAC Credential", e.jwt = "JWT Credential", e.Target = "target", e.Policy = "policy", e))(Oe || {}), Q = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(Q || {});
167
+ function de(e = {}) {
168
168
  return {
169
- axiosInstance: ze.create({
169
+ axiosInstance: Je.create({
170
170
  withCredentials: !0,
171
171
  timeout: 3e4,
172
172
  ...e
@@ -185,12 +185,12 @@ function Xe() {
185
185
  }
186
186
  };
187
187
  }
188
- const se = "khcp-user-table-preferences", Qe = {
188
+ const oe = "khcp-user-table-preferences", et = {
189
189
  pageSize: 30,
190
190
  sortColumnKey: void 0,
191
191
  sortColumnOrder: void 0
192
192
  };
193
- function et() {
193
+ function tt() {
194
194
  const e = (t) => {
195
195
  if (typeof t == "string")
196
196
  try {
@@ -200,38 +200,38 @@ function et() {
200
200
  return;
201
201
  }
202
202
  }, r = () => {
203
- const t = e(localStorage.getItem(se));
203
+ const t = e(localStorage.getItem(oe));
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(se, JSON.stringify(Object.fromEntries(n.entries())));
210
+ n.set(t, a), localStorage.setItem(oe, JSON.stringify(Object.fromEntries(n.entries())));
211
211
  } catch (n) {
212
212
  console.error("useTablePreferences(setTablePreferences)", n);
213
213
  }
214
214
  },
215
215
  getTablePreferences: (t) => {
216
216
  const a = r();
217
- return (a == null ? void 0 : a.get(t)) || void 0 || Qe;
217
+ return (a == null ? void 0 : a.get(t)) || void 0 || et;
218
218
  },
219
219
  deleteAllTablePreferences: () => {
220
- localStorage.removeItem(se);
220
+ localStorage.removeItem(oe);
221
221
  }
222
222
  };
223
223
  }
224
- const tt = {
224
+ const rt = {
225
225
  actions: {
226
226
  copyId: "Copy ID",
227
227
  copied_id: 'Copied "{id}" to the clipboard',
228
228
  copyToClipboard: "Copied successfully!",
229
229
  copyToClipboardFailed: "Failed to copy to the clipboard"
230
230
  }
231
- }, rt = {
231
+ }, at = {
232
232
  message: "Are you sure you want to delete this {entityType}?",
233
233
  messageWithName: "Are you sure you want to delete this {entityType} {entityName}?"
234
- }, at = {
234
+ }, nt = {
235
235
  actions: {
236
236
  save: "Save",
237
237
  cancel: "Cancel",
@@ -240,13 +240,13 @@ const tt = {
240
240
  errors: {
241
241
  edit: "The entity could not be edited at this time."
242
242
  }
243
- }, nt = {
243
+ }, it = {
244
244
  emptyState: {
245
245
  noSearchResultsTitle: "No results found",
246
246
  noSearchResultsMessage: "Please adjust the criteria and try again.",
247
247
  noSearchResultsCtaText: "Clear"
248
248
  }
249
- }, it = {
249
+ }, lt = {
250
250
  title: "Configuration",
251
251
  actions: {
252
252
  copy: "Copy JSON"
@@ -281,7 +281,7 @@ const tt = {
281
281
  entryTitle: "Entry {index}",
282
282
  structuredFormat: "Structured"
283
283
  }
284
- }, lt = {
284
+ }, st = {
285
285
  filterButtonText: "Filter",
286
286
  fieldLabel: "Filter by:",
287
287
  inputPlaceholder: "Enter a value",
@@ -289,15 +289,15 @@ const tt = {
289
289
  applyButtonText: "Apply",
290
290
  clearButtonText: "Clear",
291
291
  clearAllButtonText: "Clear all filters"
292
- }, st = {
292
+ }, ot = {
293
293
  errors: {
294
294
  fetch: "Could not fetch available items",
295
295
  invalid: "Please select a valid value"
296
296
  }
297
- }, ot = {
297
+ }, ct = {
298
298
  unexpected: "An unexpected error has occurred",
299
299
  dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.'
300
- }, ct = {
300
+ }, ut = {
301
301
  enable: {
302
302
  title: "Enable {entityType}",
303
303
  message: "Are you sure you want to enable the {entityType} {entityName}?",
@@ -308,33 +308,33 @@ const tt = {
308
308
  message: "Are you sure you want to disable the {entityType} {entityName}?",
309
309
  confirmText: "Yes, disable"
310
310
  }
311
- }, ut = {
312
- global: tt,
313
- deleteModal: rt,
314
- baseForm: at,
315
- baseTable: nt,
316
- baseConfigCard: it,
317
- filter: lt,
318
- debouncedFilter: st,
319
- errors: ot,
320
- toggleModal: ct
311
+ }, dt = {
312
+ global: rt,
313
+ deleteModal: at,
314
+ baseForm: nt,
315
+ baseTable: it,
316
+ baseConfigCard: lt,
317
+ filter: st,
318
+ debouncedFilter: ot,
319
+ errors: ct,
320
+ toggleModal: ut
321
321
  };
322
- function de() {
323
- const e = Ie("en-us", ut);
322
+ function pe() {
323
+ const e = xe("en-us", dt);
324
324
  return {
325
325
  i18n: e,
326
- i18nT: xe(e)
326
+ i18nT: Ee(e)
327
327
  // Translation component <i18n-t>
328
328
  };
329
329
  }
330
- function Oe() {
330
+ function je() {
331
331
  const e = (t, a) => (a == null ? void 0 : a[t]) ?? void 0, r = (t, a) => {
332
332
  if (t.length !== a.length)
333
333
  return !1;
334
334
  const n = /* @__PURE__ */ new Set([...t, ...a]);
335
335
  for (const i of n) {
336
- const l = t.filter((p) => p === i).length, u = a.filter((p) => p === i).length;
337
- if (l !== u)
336
+ const l = t.filter((d) => d === i).length, o = a.filter((d) => d === i).length;
337
+ if (l !== o)
338
338
  return !1;
339
339
  }
340
340
  return !0;
@@ -371,92 +371,92 @@ function Oe() {
371
371
  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
372
372
  };
373
373
  }
374
- function dt(e, r, t, a = {
374
+ function pt(e, r, t, a = {
375
375
  fetchedItemsKey: "data",
376
376
  searchKeys: ["id"]
377
377
  }) {
378
378
  t || (t = "100");
379
- const { axiosInstance: n } = ue({
379
+ const { axiosInstance: n } = de({
380
380
  headers: e.requestHeaders
381
- }), { i18n: { t: i } } = de(), { debounce: l } = Xe(), u = l(async (s) => {
382
- await W(s);
383
- }, 200), p = b(!1), c = b(""), C = b(""), y = b([]), T = b([]), m = b(void 0), U = v(r);
381
+ }), { i18n: { t: i } } = pe(), { debounce: l } = Xe(), o = l(async (w) => {
382
+ await ae(w);
383
+ }, 200), d = v(!1), p = v(""), b = v(""), y = v([]), A = v([]), _ = v(void 0), U = m(r);
384
384
  let f = `${e.apiBaseUrl}${U}`;
385
385
  e.app === "konnect" ? f = f.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (f = f.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
386
- const { isValidUuid: A } = Oe(), F = async () => {
386
+ const { isValidUuid: T } = je(), P = async () => {
387
387
  try {
388
- p.value = !0;
389
- const { data: s } = await n.get(`${f}?size=${t}`);
390
- s != null && s.next || (m.value = a.fetchedItemsKey in s ? s[a.fetchedItemsKey] : []), T.value = a.fetchedItemsKey in s ? s[a.fetchedItemsKey] : [], y.value = T.value;
388
+ d.value = !0;
389
+ const { data: w } = await n.get(`${f}?size=${t}`);
390
+ w != null && w.next || (_.value = a.fetchedItemsKey in w ? w[a.fetchedItemsKey] : []), A.value = a.fetchedItemsKey in w ? w[a.fetchedItemsKey] : [], y.value = A.value;
391
391
  } catch {
392
- y.value = [], c.value = i("debouncedFilter.errors.fetch");
392
+ y.value = [], p.value = i("debouncedFilter.errors.fetch");
393
393
  } finally {
394
- p.value = !1;
394
+ d.value = !1;
395
395
  }
396
- }, Q = b(""), W = async (s) => {
397
- var w, B, ee;
398
- if (Q.value !== s)
399
- if (Q.value = s || "", m.value === void 0)
396
+ }, Z = v(""), ae = async (w) => {
397
+ var c, k, q;
398
+ if (Z.value !== w)
399
+ if (Z.value = w || "", _.value === void 0)
400
400
  try {
401
- if (p.value = !0, c.value = "", C.value = "", e.app === "konnect") {
402
- let x = f + "";
403
- s && (x += `/${s}`);
404
- const { data: O } = await n.get(`${x}?size=${t}`);
405
- a.fetchedItemsKey in O ? y.value = O[a.fetchedItemsKey] : O != null && O.id ? y.value = [O] : y.value = [];
406
- } else if (s) {
407
- const x = [];
408
- A(s) && a.searchKeys.includes("id") ? x.push((async () => {
409
- const { data: _ } = await n.get(`${f}/${s}`);
410
- return [_[a.fetchedItemsKey] ?? _];
411
- })()) : x.push(
412
- ...a.searchKeys.filter((_) => _ !== "id").map(async (_) => {
413
- const { data: j } = await n.get(`${f}?${_}=${s}`);
414
- return j[a.fetchedItemsKey];
401
+ if (d.value = !0, p.value = "", b.value = "", e.app === "konnect") {
402
+ let E = f + "";
403
+ w && (E += `/${w}`);
404
+ const { data: K } = await n.get(`${E}?size=${t}`);
405
+ a.fetchedItemsKey in K ? y.value = K[a.fetchedItemsKey] : K != null && K.id ? y.value = [K] : y.value = [];
406
+ } else if (w) {
407
+ const E = [];
408
+ T(w) && a.searchKeys.includes("id") ? E.push((async () => {
409
+ const { data: I } = await n.get(`${f}/${w}`);
410
+ return [I[a.fetchedItemsKey] ?? I];
411
+ })()) : E.push(
412
+ ...a.searchKeys.filter((I) => I !== "id").map(async (I) => {
413
+ const { data: O } = await n.get(`${f}?${I}=${w}`);
414
+ return O[a.fetchedItemsKey];
415
415
  })
416
416
  );
417
- const O = await Promise.all(x), q = /* @__PURE__ */ new Set();
418
- y.value = [], (w = O == null ? void 0 : O.forEach) == null || w.call(O, (_) => {
419
- var j;
420
- (j = _ == null ? void 0 : _.forEach) == null || j.call(_, (R) => {
421
- q.has(R.id) || (q.add(R.id), y.value.push(R));
417
+ const K = await Promise.all(E), z = /* @__PURE__ */ new Set();
418
+ y.value = [], (c = K == null ? void 0 : K.forEach) == null || c.call(K, (I) => {
419
+ var O;
420
+ (O = I == null ? void 0 : I.forEach) == null || O.call(I, (R) => {
421
+ z.has(R.id) || (z.add(R.id), y.value.push(R));
422
422
  });
423
423
  });
424
424
  } else
425
- y.value = T.value;
426
- } catch (x) {
427
- ((B = x == null ? void 0 : x.response) == null ? void 0 : B.status) === 404 ? C.value = i("debouncedFilter.errors.invalid") : (y.value = [], c.value = i("debouncedFilter.errors.fetch"));
425
+ y.value = A.value;
426
+ } catch (E) {
427
+ ((k = E == null ? void 0 : E.response) == null ? void 0 : k.status) === 404 ? b.value = i("debouncedFilter.errors.invalid") : (y.value = [], p.value = i("debouncedFilter.errors.fetch"));
428
428
  } finally {
429
- p.value = !1;
429
+ d.value = !1;
430
430
  }
431
431
  else
432
- p.value = !0, C.value = "", s ? (y.value = (ee = m.value) == null ? void 0 : ee.filter((x) => {
433
- var O;
434
- let q = !1;
435
- for (const _ of a.searchKeys) {
436
- const j = typeof x[_] == "string" ? (O = x[_]) == null ? void 0 : O.toLowerCase() : x[_];
437
- j != null && j.includes(s.toLowerCase()) && (q = !0);
432
+ d.value = !0, b.value = "", w ? (y.value = (q = _.value) == null ? void 0 : q.filter((E) => {
433
+ var K;
434
+ let z = !1;
435
+ for (const I of a.searchKeys) {
436
+ const O = typeof E[I] == "string" ? (K = E[I]) == null ? void 0 : K.toLowerCase() : E[I];
437
+ O != null && O.includes(w.toLowerCase()) && (z = !0);
438
438
  }
439
- return q;
440
- }), (!y.value || !y.value.length) && (C.value = i("debouncedFilter.errors.invalid"))) : y.value = m.value, p.value = !1;
439
+ return z;
440
+ }), (!y.value || !y.value.length) && (b.value = i("debouncedFilter.errors.invalid"))) : y.value = _.value, d.value = !1;
441
441
  };
442
442
  return {
443
- loading: p,
444
- error: c,
445
- validationError: C,
443
+ loading: d,
444
+ error: p,
445
+ validationError: b,
446
446
  results: y,
447
- allRecords: m,
448
- loadItems: F,
449
- debouncedQueryChange: u
447
+ allRecords: _,
448
+ loadItems: P,
449
+ debouncedQueryChange: o
450
450
  };
451
451
  }
452
- function pt(e, r) {
453
- const t = v(r), a = N(
452
+ function ft(e, r) {
453
+ const t = m(r), a = N(
454
454
  () => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${t}`) : new URL(t)
455
455
  );
456
456
  return a.value.search = "", (n) => `${a.value.href}/${n}`;
457
457
  }
458
- function ft() {
459
- const { i18n: { t: e } } = de();
458
+ function yt() {
459
+ const { i18n: { t: e } } = pe();
460
460
  return {
461
461
  getMessageFromError: (r) => {
462
462
  var t, a, n;
@@ -483,7 +483,7 @@ function ft() {
483
483
  }
484
484
  };
485
485
  }
486
- function yt(e) {
486
+ function ht(e) {
487
487
  const r = window.location.origin, t = r.endsWith("/") ? r : `${r}/`;
488
488
  try {
489
489
  const a = e.join("/"), n = `${t}${a}`, i = e.some((l) => l.trim() === "");
@@ -494,204 +494,204 @@ function yt(e) {
494
494
  return console.warn("Failed to build valid URL:", a), "";
495
495
  }
496
496
  }
497
- function je(e, r) {
498
- const t = b(v(e)), a = b(v(r)), n = N(
497
+ function Ke(e, r) {
498
+ const t = v(m(e)), a = v(m(r)), n = N(
499
499
  () => !!(t.value.app === "konnect" || t.value.isExactMatch)
500
500
  ), i = N(
501
501
  () => a.value.startsWith("/") ? new URL(`${window.location.origin}${a.value}`) : new URL(a.value)
502
502
  );
503
503
  return (l) => {
504
- const { page: u, pageSize: p, offset: c, sortColumnKey: C, sortColumnOrder: y, query: T } = l;
504
+ const { page: o, pageSize: d, offset: p, sortColumnKey: b, sortColumnOrder: y, query: A } = l;
505
505
  try {
506
- let m = new URL(i.value.href);
507
- return n.value && T ? (m.search = "", m = t.value.app === "konnect" ? new URL(`${m.href}?filter[name][contains]=${T}`) : new URL(`${m.href}/${T}/`)) : (n.value || new URLSearchParams(T).forEach((U, f) => {
508
- m.searchParams.append(f, U);
509
- }), C && m.searchParams.append("sort_by", C), y === "desc" && m.searchParams.append("sort_desc", "1"), m.searchParams.append("size", String(p))), c && u !== 1 && m.searchParams.append("offset", String(c)), m.href;
510
- } catch (m) {
511
- return console.error("RouteList(fetcher)", m), a.value;
506
+ let _ = new URL(i.value.href);
507
+ return n.value && A ? (_.search = "", _ = t.value.app === "konnect" ? new URL(`${_.href}?filter[name][contains]=${A}`) : new URL(`${_.href}/${A}/`)) : (n.value || new URLSearchParams(A).forEach((U, f) => {
508
+ _.searchParams.append(f, U);
509
+ }), b && _.searchParams.append("sort_by", b), y === "desc" && _.searchParams.append("sort_desc", "1"), _.searchParams.append("size", String(d))), p && o !== 1 && _.searchParams.append("offset", String(p)), _.href;
510
+ } catch (_) {
511
+ return console.error("RouteList(fetcher)", _), a.value;
512
512
  }
513
513
  };
514
514
  }
515
- function ht(e, r, t = "data") {
516
- const a = v(r), { axiosInstance: n } = ue({
515
+ function gt(e, r, t = "data") {
516
+ const a = m(r), { axiosInstance: n } = de({
517
517
  headers: e.requestHeaders
518
- }), i = je(e, a), l = b({
519
- status: G.Idle
518
+ }), i = Ke(e, a), l = v({
519
+ status: Q.Idle
520
520
  });
521
- return { fetcher: async (u) => {
521
+ return { fetcher: async (o) => {
522
522
  try {
523
- l.value = { status: G.Loading };
524
- const p = i(u), { data: c } = await n.get(p), C = t && t.replace(/[^\w-_]/gi, "");
523
+ l.value = { status: Q.Loading };
524
+ const d = i(o), { data: p } = await n.get(d), b = t && t.replace(/[^\w-_]/gi, "");
525
525
  let y;
526
- c[C] && Array.isArray(c[C]) ? y = c[C] : Array.isArray(c) ? y = c : y = Object.keys(c).length ? [c] : [];
527
- const T = {
526
+ p[b] && Array.isArray(p[b]) ? y = p[b] : Array.isArray(p) ? y = p : y = Object.keys(p).length ? [p] : [];
527
+ const A = {
528
528
  data: y,
529
529
  total: y.length,
530
- ...c.offset ? {
530
+ ...p.offset ? {
531
531
  pagination: {
532
- offset: c.offset
532
+ offset: p.offset
533
533
  }
534
534
  } : null
535
535
  };
536
536
  return l.value = {
537
- status: G.Idle,
538
- response: T
539
- }, T;
540
- } catch (p) {
541
- const c = {
537
+ status: Q.Idle,
538
+ response: A
539
+ }, A;
540
+ } catch (d) {
541
+ const p = {
542
542
  data: [],
543
543
  total: 0
544
544
  };
545
- return u.query && p.response.status === 404 ? (l.value = {
546
- status: G.NoResults,
547
- response: c,
548
- error: p
549
- }, c) : (l.value = {
550
- status: G.Error,
551
- response: c,
552
- error: p
553
- }, c);
545
+ return o.query && d.response.status === 404 ? (l.value = {
546
+ status: Q.NoResults,
547
+ response: p,
548
+ error: d
549
+ }, p) : (l.value = {
550
+ status: Q.Error,
551
+ response: p,
552
+ error: d
553
+ }, p);
554
554
  }
555
555
  }, fetcherState: l };
556
556
  }
557
- function gt() {
557
+ function mt() {
558
558
  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;
559
559
  return {
560
560
  capitalize: (t) => t ? t.replace(r, (a) => a.toUpperCase()) : "",
561
561
  convertKeyToTitle: e
562
562
  };
563
563
  }
564
- const Ke = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, ge = (e) => {
564
+ const $e = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, me = (e) => {
565
565
  if (typeof e != "string")
566
566
  throw new TypeError("Invalid argument expected string");
567
- const r = e.match(Ke);
567
+ const r = e.match($e);
568
568
  if (!r)
569
569
  throw new Error(`Invalid argument not valid semver ('${e}' received)`);
570
570
  return r.shift(), r;
571
- }, me = (e) => e === "*" || e === "x" || e === "X", ve = (e) => {
571
+ }, ve = (e) => e === "*" || e === "x" || e === "X", be = (e) => {
572
572
  const r = parseInt(e, 10);
573
573
  return isNaN(r) ? e : r;
574
- }, mt = (e, r) => typeof e != typeof r ? [String(e), String(r)] : [e, r], vt = (e, r) => {
575
- if (me(e) || me(r))
574
+ }, vt = (e, r) => typeof e != typeof r ? [String(e), String(r)] : [e, r], bt = (e, r) => {
575
+ if (ve(e) || ve(r))
576
576
  return 0;
577
- const [t, a] = mt(ve(e), ve(r));
577
+ const [t, a] = vt(be(e), be(r));
578
578
  return t > a ? 1 : t < a ? -1 : 0;
579
- }, be = (e, r) => {
579
+ }, we = (e, r) => {
580
580
  for (let t = 0; t < Math.max(e.length, r.length); t++) {
581
- const a = vt(e[t] || "0", r[t] || "0");
581
+ const a = bt(e[t] || "0", r[t] || "0");
582
582
  if (a !== 0)
583
583
  return a;
584
584
  }
585
585
  return 0;
586
- }, bt = (e, r) => {
587
- const t = ge(e), a = ge(r), n = t.pop(), i = a.pop(), l = be(t, a);
588
- return l !== 0 ? l : n && i ? be(n.split("."), i.split(".")) : n || i ? n ? -1 : 1 : 0;
589
- }, we = (e, r, t) => {
590
- wt(t);
591
- const a = bt(e, r);
592
- return $e[t].includes(a);
593
- }, $e = {
586
+ }, wt = (e, r) => {
587
+ const t = me(e), a = me(r), n = t.pop(), i = a.pop(), l = we(t, a);
588
+ return l !== 0 ? l : n && i ? we(n.split("."), i.split(".")) : n || i ? n ? -1 : 1 : 0;
589
+ }, ke = (e, r, t) => {
590
+ kt(t);
591
+ const a = wt(e, r);
592
+ return Fe[t].includes(a);
593
+ }, Fe = {
594
594
  ">": [1],
595
595
  ">=": [0, 1],
596
596
  "=": [0],
597
597
  "<=": [-1, 0],
598
598
  "<": [-1],
599
599
  "!=": [-1, 1]
600
- }, ke = Object.keys($e), wt = (e) => {
600
+ }, Ce = Object.keys(Fe), kt = (e) => {
601
601
  if (typeof e != "string")
602
602
  throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
603
- if (ke.indexOf(e) === -1)
604
- throw new Error(`Invalid operator, expected one of ${ke.join("|")}`);
605
- }, kt = (e) => typeof e == "string" && /^[v\d]/.test(e) && Ke.test(e);
606
- function Ct(e) {
603
+ if (Ce.indexOf(e) === -1)
604
+ throw new Error(`Invalid operator, expected one of ${Ce.join("|")}`);
605
+ }, Ct = (e) => typeof e == "string" && /^[v\d]/.test(e) && $e.test(e);
606
+ function _t(e) {
607
607
  const { gatewayInfo: r, supportedRange: t } = e;
608
608
  if (!r)
609
609
  return !0;
610
610
  const { edition: a, version: n } = r;
611
- if (!kt(n))
611
+ if (!Ct(n))
612
612
  return console.error("Invalid version"), !1;
613
613
  const i = t[a];
614
614
  if (!i)
615
615
  return !1;
616
- const [l, u] = i;
617
- return !(l && we(n, l, "<") || u && we(n, u, ">"));
616
+ const [l, o] = i;
617
+ return !(l && ke(n, l, "<") || o && ke(n, o, ">"));
618
618
  }
619
- function _t(e) {
620
- const r = b(0), t = b(0), a = b(!1);
621
- return le(e, (n) => {
619
+ function St(e) {
620
+ const r = v(0), t = v(0), a = v(!1);
621
+ return se(e, (n) => {
622
622
  n && !a.value && (r.value = n.offsetWidth, t.value = n.scrollWidth, a.value = !0);
623
623
  }), {
624
624
  isTruncated: N(() => r.value < t.value)
625
625
  };
626
626
  }
627
- const pe = {
628
- useAxios: ue,
629
- useDebouncedFilter: dt,
630
- useDeleteUrlBuilder: pt,
631
- useErrors: ft,
632
- useExternalLinkCreator: yt,
633
- useFetcher: ht,
634
- useFetchUrlBuilder: je,
635
- useHelpers: Oe,
636
- useStringHelpers: gt,
637
- useI18n: de,
638
- useGatewayFeatureSupported: Ct,
639
- useTruncationDetector: _t
640
- }, fe = (e, r) => {
627
+ const fe = {
628
+ useAxios: de,
629
+ useDebouncedFilter: pt,
630
+ useDeleteUrlBuilder: ft,
631
+ useErrors: yt,
632
+ useExternalLinkCreator: ht,
633
+ useFetcher: gt,
634
+ useFetchUrlBuilder: Ke,
635
+ useHelpers: je,
636
+ useStringHelpers: mt,
637
+ useI18n: pe,
638
+ useGatewayFeatureSupported: _t,
639
+ useTruncationDetector: St
640
+ }, ye = (e, r) => {
641
641
  const t = e.__vccOpts || e;
642
642
  for (const [a, n] of r)
643
643
  t[a] = n;
644
644
  return t;
645
- }, St = "#3a3f51";
645
+ }, At = "#3a3f51";
646
646
  /*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
647
- function Ue(e) {
647
+ function Pe(e) {
648
648
  return typeof e > "u" || e === null;
649
649
  }
650
650
  function Tt(e) {
651
651
  return typeof e == "object" && e !== null;
652
652
  }
653
- function At(e) {
654
- return Array.isArray(e) ? e : Ue(e) ? [] : [e];
653
+ function Nt(e) {
654
+ return Array.isArray(e) ? e : Pe(e) ? [] : [e];
655
655
  }
656
- function Nt(e, r) {
656
+ function It(e, r) {
657
657
  var t, a, n, i;
658
658
  if (r)
659
659
  for (i = Object.keys(r), t = 0, a = i.length; t < a; t += 1)
660
660
  n = i[t], e[n] = r[n];
661
661
  return e;
662
662
  }
663
- function It(e, r) {
663
+ function xt(e, r) {
664
664
  var t = "", a;
665
665
  for (a = 0; a < r; a += 1)
666
666
  t += e;
667
667
  return t;
668
668
  }
669
- function xt(e) {
669
+ function Et(e) {
670
670
  return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
671
671
  }
672
- var Et = Ue, Ot = Tt, jt = At, Kt = It, $t = xt, Ut = Nt, ye = {
673
- isNothing: Et,
674
- isObject: Ot,
675
- toArray: jt,
676
- repeat: Kt,
677
- isNegativeZero: $t,
678
- extend: Ut
672
+ var Ot = Pe, jt = Tt, Kt = Nt, $t = xt, Ft = Et, Pt = It, he = {
673
+ isNothing: Ot,
674
+ isObject: jt,
675
+ toArray: Kt,
676
+ repeat: $t,
677
+ isNegativeZero: Ft,
678
+ extend: Pt
679
679
  };
680
- function Fe(e, r) {
680
+ function Me(e, r) {
681
681
  var t = "", a = e.reason || "(unknown reason)";
682
682
  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 += `
683
683
 
684
684
  ` + e.mark.snippet), a + " " + t) : a;
685
685
  }
686
- function ae(e, r) {
687
- Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = r, this.message = Fe(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
686
+ function ne(e, r) {
687
+ Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = r, this.message = Me(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
688
688
  }
689
- ae.prototype = Object.create(Error.prototype);
690
- ae.prototype.constructor = ae;
691
- ae.prototype.toString = function(e) {
692
- return this.name + ": " + Fe(this, e);
689
+ ne.prototype = Object.create(Error.prototype);
690
+ ne.prototype.constructor = ne;
691
+ ne.prototype.toString = function(e) {
692
+ return this.name + ": " + Me(this, e);
693
693
  };
694
- var Z = ae, Ft = [
694
+ var X = ne, Mt = [
695
695
  "kind",
696
696
  "multi",
697
697
  "resolve",
@@ -702,12 +702,12 @@ var Z = ae, Ft = [
702
702
  "representName",
703
703
  "defaultStyle",
704
704
  "styleAliases"
705
- ], Pt = [
705
+ ], Dt = [
706
706
  "scalar",
707
707
  "sequence",
708
708
  "mapping"
709
709
  ];
710
- function Mt(e) {
710
+ function Lt(e) {
711
711
  var r = {};
712
712
  return e !== null && Object.keys(e).forEach(function(t) {
713
713
  e[t].forEach(function(a) {
@@ -715,19 +715,19 @@ function Mt(e) {
715
715
  });
716
716
  }), r;
717
717
  }
718
- function Lt(e, r) {
718
+ function Ut(e, r) {
719
719
  if (r = r || {}, Object.keys(r).forEach(function(t) {
720
- if (Ft.indexOf(t) === -1)
721
- throw new Z('Unknown option "' + t + '" is met in definition of "' + e + '" YAML type.');
720
+ if (Mt.indexOf(t) === -1)
721
+ throw new X('Unknown option "' + t + '" is met in definition of "' + e + '" YAML type.');
722
722
  }), this.options = r, this.tag = e, this.kind = r.kind || null, this.resolve = r.resolve || function() {
723
723
  return !0;
724
724
  }, this.construct = r.construct || function(t) {
725
725
  return t;
726
- }, this.instanceOf = r.instanceOf || null, this.predicate = r.predicate || null, this.represent = r.represent || null, this.representName = r.representName || null, this.defaultStyle = r.defaultStyle || null, this.multi = r.multi || !1, this.styleAliases = Mt(r.styleAliases || null), Pt.indexOf(this.kind) === -1)
727
- throw new Z('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
726
+ }, this.instanceOf = r.instanceOf || null, this.predicate = r.predicate || null, this.represent = r.represent || null, this.representName = r.representName || null, this.defaultStyle = r.defaultStyle || null, this.multi = r.multi || !1, this.styleAliases = Lt(r.styleAliases || null), Dt.indexOf(this.kind) === -1)
727
+ throw new X('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
728
728
  }
729
- var K = Lt;
730
- function Ce(e, r) {
729
+ var $ = Ut;
730
+ function _e(e, r) {
731
731
  var t = [];
732
732
  return e[r].forEach(function(a) {
733
733
  var n = t.length;
@@ -756,72 +756,72 @@ function Rt() {
756
756
  arguments[r].forEach(a);
757
757
  return e;
758
758
  }
759
- function ce(e) {
759
+ function ue(e) {
760
760
  return this.extend(e);
761
761
  }
762
- ce.prototype.extend = function(e) {
762
+ ue.prototype.extend = function(e) {
763
763
  var r = [], t = [];
764
- if (e instanceof K)
764
+ if (e instanceof $)
765
765
  t.push(e);
766
766
  else if (Array.isArray(e))
767
767
  t = t.concat(e);
768
768
  else if (e && (Array.isArray(e.implicit) || Array.isArray(e.explicit)))
769
769
  e.implicit && (r = r.concat(e.implicit)), e.explicit && (t = t.concat(e.explicit));
770
770
  else
771
- throw new Z("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
771
+ throw new X("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
772
772
  r.forEach(function(n) {
773
- if (!(n instanceof K))
774
- throw new Z("Specified list of YAML types (or a single Type object) contains a non-Type object.");
773
+ if (!(n instanceof $))
774
+ throw new X("Specified list of YAML types (or a single Type object) contains a non-Type object.");
775
775
  if (n.loadKind && n.loadKind !== "scalar")
776
- throw new Z("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
776
+ throw new X("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
777
777
  if (n.multi)
778
- throw new Z("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
778
+ throw new X("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
779
779
  }), t.forEach(function(n) {
780
- if (!(n instanceof K))
781
- throw new Z("Specified list of YAML types (or a single Type object) contains a non-Type object.");
780
+ if (!(n instanceof $))
781
+ throw new X("Specified list of YAML types (or a single Type object) contains a non-Type object.");
782
782
  });
783
- var a = Object.create(ce.prototype);
784
- return a.implicit = (this.implicit || []).concat(r), a.explicit = (this.explicit || []).concat(t), a.compiledImplicit = Ce(a, "implicit"), a.compiledExplicit = Ce(a, "explicit"), a.compiledTypeMap = Rt(a.compiledImplicit, a.compiledExplicit), a;
783
+ var a = Object.create(ue.prototype);
784
+ 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 = Rt(a.compiledImplicit, a.compiledExplicit), a;
785
785
  };
786
- var Dt = ce, Bt = new K("tag:yaml.org,2002:str", {
786
+ var Bt = ue, qt = new $("tag:yaml.org,2002:str", {
787
787
  kind: "scalar",
788
788
  construct: function(e) {
789
789
  return e !== null ? e : "";
790
790
  }
791
- }), qt = new K("tag:yaml.org,2002:seq", {
791
+ }), zt = new $("tag:yaml.org,2002:seq", {
792
792
  kind: "sequence",
793
793
  construct: function(e) {
794
794
  return e !== null ? e : [];
795
795
  }
796
- }), Ht = new K("tag:yaml.org,2002:map", {
796
+ }), Ht = new $("tag:yaml.org,2002:map", {
797
797
  kind: "mapping",
798
798
  construct: function(e) {
799
799
  return e !== null ? e : {};
800
800
  }
801
- }), Wt = new Dt({
801
+ }), Wt = new Bt({
802
802
  explicit: [
803
- Bt,
804
803
  qt,
804
+ zt,
805
805
  Ht
806
806
  ]
807
807
  });
808
- function zt(e) {
808
+ function Jt(e) {
809
809
  if (e === null)
810
810
  return !0;
811
811
  var r = e.length;
812
812
  return r === 1 && e === "~" || r === 4 && (e === "null" || e === "Null" || e === "NULL");
813
813
  }
814
- function Jt() {
814
+ function Yt() {
815
815
  return null;
816
816
  }
817
- function Yt(e) {
817
+ function Gt(e) {
818
818
  return e === null;
819
819
  }
820
- var Vt = new K("tag:yaml.org,2002:null", {
820
+ var Vt = new $("tag:yaml.org,2002:null", {
821
821
  kind: "scalar",
822
- resolve: zt,
823
- construct: Jt,
824
- predicate: Yt,
822
+ resolve: Jt,
823
+ construct: Yt,
824
+ predicate: Gt,
825
825
  represent: {
826
826
  canonical: function() {
827
827
  return "~";
@@ -841,22 +841,22 @@ var Vt = new K("tag:yaml.org,2002:null", {
841
841
  },
842
842
  defaultStyle: "lowercase"
843
843
  });
844
- function Gt(e) {
844
+ function Zt(e) {
845
845
  if (e === null)
846
846
  return !1;
847
847
  var r = e.length;
848
848
  return r === 4 && (e === "true" || e === "True" || e === "TRUE") || r === 5 && (e === "false" || e === "False" || e === "FALSE");
849
849
  }
850
- function Zt(e) {
850
+ function Qt(e) {
851
851
  return e === "true" || e === "True" || e === "TRUE";
852
852
  }
853
853
  function Xt(e) {
854
854
  return Object.prototype.toString.call(e) === "[object Boolean]";
855
855
  }
856
- var Qt = new K("tag:yaml.org,2002:bool", {
856
+ var er = new $("tag:yaml.org,2002:bool", {
857
857
  kind: "scalar",
858
- resolve: Gt,
859
- construct: Zt,
858
+ resolve: Zt,
859
+ construct: Qt,
860
860
  predicate: Xt,
861
861
  represent: {
862
862
  lowercase: function(e) {
@@ -871,16 +871,16 @@ var Qt = new K("tag:yaml.org,2002:bool", {
871
871
  },
872
872
  defaultStyle: "lowercase"
873
873
  });
874
- function er(e) {
874
+ function tr(e) {
875
875
  return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
876
876
  }
877
- function tr(e) {
877
+ function rr(e) {
878
878
  return 48 <= e && e <= 55;
879
879
  }
880
- function rr(e) {
880
+ function ar(e) {
881
881
  return 48 <= e && e <= 57;
882
882
  }
883
- function ar(e) {
883
+ function nr(e) {
884
884
  if (e === null)
885
885
  return !1;
886
886
  var r = e.length, t = 0, a = !1, n;
@@ -901,7 +901,7 @@ function ar(e) {
901
901
  if (n === "x") {
902
902
  for (t++; t < r; t++)
903
903
  if (n = e[t], n !== "_") {
904
- if (!er(e.charCodeAt(t)))
904
+ if (!tr(e.charCodeAt(t)))
905
905
  return !1;
906
906
  a = !0;
907
907
  }
@@ -910,7 +910,7 @@ function ar(e) {
910
910
  if (n === "o") {
911
911
  for (t++; t < r; t++)
912
912
  if (n = e[t], n !== "_") {
913
- if (!tr(e.charCodeAt(t)))
913
+ if (!rr(e.charCodeAt(t)))
914
914
  return !1;
915
915
  a = !0;
916
916
  }
@@ -921,13 +921,13 @@ function ar(e) {
921
921
  return !1;
922
922
  for (; t < r; t++)
923
923
  if (n = e[t], n !== "_") {
924
- if (!rr(e.charCodeAt(t)))
924
+ if (!ar(e.charCodeAt(t)))
925
925
  return !1;
926
926
  a = !0;
927
927
  }
928
928
  return !(!a || n === "_");
929
929
  }
930
- function nr(e) {
930
+ function ir(e) {
931
931
  var r = e, t = 1, a;
932
932
  if (r.indexOf("_") !== -1 && (r = r.replace(/_/g, "")), a = r[0], (a === "-" || a === "+") && (a === "-" && (t = -1), r = r.slice(1), a = r[0]), r === "0")
933
933
  return 0;
@@ -941,14 +941,14 @@ function nr(e) {
941
941
  }
942
942
  return t * parseInt(r, 10);
943
943
  }
944
- function ir(e) {
945
- return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !ye.isNegativeZero(e);
944
+ function lr(e) {
945
+ return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !he.isNegativeZero(e);
946
946
  }
947
- var lr = new K("tag:yaml.org,2002:int", {
947
+ var sr = new $("tag:yaml.org,2002:int", {
948
948
  kind: "scalar",
949
- resolve: ar,
950
- construct: nr,
951
- predicate: ir,
949
+ resolve: nr,
950
+ construct: ir,
951
+ predicate: lr,
952
952
  represent: {
953
953
  binary: function(e) {
954
954
  return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
@@ -971,21 +971,21 @@ var lr = new K("tag:yaml.org,2002:int", {
971
971
  decimal: [10, "dec"],
972
972
  hexadecimal: [16, "hex"]
973
973
  }
974
- }), sr = new RegExp(
974
+ }), or = new RegExp(
975
975
  // 2.5e4, 2.5 and integers
976
976
  "^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
977
977
  );
978
- function or(e) {
979
- return !(e === null || !sr.test(e) || // Quick hack to not allow integers end with `_`
978
+ function cr(e) {
979
+ return !(e === null || !or.test(e) || // Quick hack to not allow integers end with `_`
980
980
  // Probably should update regexp & check speed
981
981
  e[e.length - 1] === "_");
982
982
  }
983
- function cr(e) {
983
+ function ur(e) {
984
984
  var r, t;
985
985
  return r = e.replace(/_/g, "").toLowerCase(), t = r[0] === "-" ? -1 : 1, "+-".indexOf(r[0]) >= 0 && (r = r.slice(1)), r === ".inf" ? t === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : r === ".nan" ? NaN : t * parseFloat(r, 10);
986
986
  }
987
- var ur = /^[-+]?[0-9]+e/;
988
- function dr(e, r) {
987
+ var dr = /^[-+]?[0-9]+e/;
988
+ function pr(e, r) {
989
989
  var t;
990
990
  if (isNaN(e))
991
991
  switch (r) {
@@ -1014,70 +1014,70 @@ function dr(e, r) {
1014
1014
  case "camelcase":
1015
1015
  return "-.Inf";
1016
1016
  }
1017
- else if (ye.isNegativeZero(e))
1017
+ else if (he.isNegativeZero(e))
1018
1018
  return "-0.0";
1019
- return t = e.toString(10), ur.test(t) ? t.replace("e", ".e") : t;
1019
+ return t = e.toString(10), dr.test(t) ? t.replace("e", ".e") : t;
1020
1020
  }
1021
- function pr(e) {
1022
- return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || ye.isNegativeZero(e));
1021
+ function fr(e) {
1022
+ return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || he.isNegativeZero(e));
1023
1023
  }
1024
- var fr = new K("tag:yaml.org,2002:float", {
1024
+ var yr = new $("tag:yaml.org,2002:float", {
1025
1025
  kind: "scalar",
1026
- resolve: or,
1027
- construct: cr,
1028
- predicate: pr,
1029
- represent: dr,
1026
+ resolve: cr,
1027
+ construct: ur,
1028
+ predicate: fr,
1029
+ represent: pr,
1030
1030
  defaultStyle: "lowercase"
1031
- }), yr = Wt.extend({
1031
+ }), hr = Wt.extend({
1032
1032
  implicit: [
1033
1033
  Vt,
1034
- Qt,
1035
- lr,
1036
- fr
1034
+ er,
1035
+ sr,
1036
+ yr
1037
1037
  ]
1038
- }), hr = yr, Pe = new RegExp(
1038
+ }), gr = hr, De = new RegExp(
1039
1039
  "^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
1040
- ), Me = new RegExp(
1040
+ ), Le = new RegExp(
1041
1041
  "^([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]))?))?$"
1042
1042
  );
1043
- function gr(e) {
1044
- return e === null ? !1 : Pe.exec(e) !== null || Me.exec(e) !== null;
1045
- }
1046
1043
  function mr(e) {
1047
- var r, t, a, n, i, l, u, p = 0, c = null, C, y, T;
1048
- if (r = Pe.exec(e), r === null && (r = Me.exec(e)), r === null)
1044
+ return e === null ? !1 : De.exec(e) !== null || Le.exec(e) !== null;
1045
+ }
1046
+ function vr(e) {
1047
+ var r, t, a, n, i, l, o, d = 0, p = null, b, y, A;
1048
+ if (r = De.exec(e), r === null && (r = Le.exec(e)), r === null)
1049
1049
  throw new Error("Date resolve error");
1050
1050
  if (t = +r[1], a = +r[2] - 1, n = +r[3], !r[4])
1051
1051
  return new Date(Date.UTC(t, a, n));
1052
- if (i = +r[4], l = +r[5], u = +r[6], r[7]) {
1053
- for (p = r[7].slice(0, 3); p.length < 3; )
1054
- p += "0";
1055
- p = +p;
1052
+ if (i = +r[4], l = +r[5], o = +r[6], r[7]) {
1053
+ for (d = r[7].slice(0, 3); d.length < 3; )
1054
+ d += "0";
1055
+ d = +d;
1056
1056
  }
1057
- return r[9] && (C = +r[10], y = +(r[11] || 0), c = (C * 60 + y) * 6e4, r[9] === "-" && (c = -c)), T = new Date(Date.UTC(t, a, n, i, l, u, p)), c && T.setTime(T.getTime() - c), T;
1057
+ return r[9] && (b = +r[10], y = +(r[11] || 0), p = (b * 60 + y) * 6e4, r[9] === "-" && (p = -p)), A = new Date(Date.UTC(t, a, n, i, l, o, d)), p && A.setTime(A.getTime() - p), A;
1058
1058
  }
1059
- function vr(e) {
1059
+ function br(e) {
1060
1060
  return e.toISOString();
1061
1061
  }
1062
- var br = new K("tag:yaml.org,2002:timestamp", {
1062
+ var wr = new $("tag:yaml.org,2002:timestamp", {
1063
1063
  kind: "scalar",
1064
- resolve: gr,
1065
- construct: mr,
1064
+ resolve: mr,
1065
+ construct: vr,
1066
1066
  instanceOf: Date,
1067
- represent: vr
1067
+ represent: br
1068
1068
  });
1069
- function wr(e) {
1069
+ function kr(e) {
1070
1070
  return e === "<<" || e === null;
1071
1071
  }
1072
- var kr = new K("tag:yaml.org,2002:merge", {
1072
+ var Cr = new $("tag:yaml.org,2002:merge", {
1073
1073
  kind: "scalar",
1074
- resolve: wr
1075
- }), he = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
1074
+ resolve: kr
1075
+ }), ge = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
1076
1076
  \r`;
1077
- function Cr(e) {
1077
+ function _r(e) {
1078
1078
  if (e === null)
1079
1079
  return !1;
1080
- var r, t, a = 0, n = e.length, i = he;
1080
+ var r, t, a = 0, n = e.length, i = ge;
1081
1081
  for (t = 0; t < n; t++)
1082
1082
  if (r = i.indexOf(e.charAt(t)), !(r > 64)) {
1083
1083
  if (r < 0)
@@ -1086,14 +1086,14 @@ function Cr(e) {
1086
1086
  }
1087
1087
  return a % 8 === 0;
1088
1088
  }
1089
- function _r(e) {
1090
- var r, t, a = e.replace(/[\r\n=]/g, ""), n = a.length, i = he, l = 0, u = [];
1089
+ function Sr(e) {
1090
+ var r, t, a = e.replace(/[\r\n=]/g, ""), n = a.length, i = ge, l = 0, o = [];
1091
1091
  for (r = 0; r < n; r++)
1092
- r % 4 === 0 && r && (u.push(l >> 16 & 255), u.push(l >> 8 & 255), u.push(l & 255)), l = l << 6 | i.indexOf(a.charAt(r));
1093
- return t = n % 4 * 6, t === 0 ? (u.push(l >> 16 & 255), u.push(l >> 8 & 255), u.push(l & 255)) : t === 18 ? (u.push(l >> 10 & 255), u.push(l >> 2 & 255)) : t === 12 && u.push(l >> 4 & 255), new Uint8Array(u);
1092
+ 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));
1093
+ 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);
1094
1094
  }
1095
- function Sr(e) {
1096
- var r = "", t = 0, a, n, i = e.length, l = he;
1095
+ function Ar(e) {
1096
+ var r = "", t = 0, a, n, i = e.length, l = ge;
1097
1097
  for (a = 0; a < i; a++)
1098
1098
  a % 3 === 0 && a && (r += l[t >> 18 & 63], r += l[t >> 12 & 63], r += l[t >> 6 & 63], r += l[t & 63]), t = (t << 8) + e[a];
1099
1099
  return n = i % 3, n === 0 ? (r += l[t >> 18 & 63], r += l[t >> 12 & 63], r += l[t >> 6 & 63], r += l[t & 63]) : n === 2 ? (r += l[t >> 10 & 63], r += l[t >> 4 & 63], r += l[t << 2 & 63], r += l[64]) : n === 1 && (r += l[t >> 2 & 63], r += l[t << 4 & 63], r += l[64], r += l[64]), r;
@@ -1101,22 +1101,22 @@ function Sr(e) {
1101
1101
  function Tr(e) {
1102
1102
  return Object.prototype.toString.call(e) === "[object Uint8Array]";
1103
1103
  }
1104
- var Ar = new K("tag:yaml.org,2002:binary", {
1104
+ var Nr = new $("tag:yaml.org,2002:binary", {
1105
1105
  kind: "scalar",
1106
- resolve: Cr,
1107
- construct: _r,
1106
+ resolve: _r,
1107
+ construct: Sr,
1108
1108
  predicate: Tr,
1109
- represent: Sr
1110
- }), Nr = Object.prototype.hasOwnProperty, Ir = Object.prototype.toString;
1111
- function xr(e) {
1109
+ represent: Ar
1110
+ }), Ir = Object.prototype.hasOwnProperty, xr = Object.prototype.toString;
1111
+ function Er(e) {
1112
1112
  if (e === null)
1113
1113
  return !0;
1114
- var r = [], t, a, n, i, l, u = e;
1115
- for (t = 0, a = u.length; t < a; t += 1) {
1116
- if (n = u[t], l = !1, Ir.call(n) !== "[object Object]")
1114
+ var r = [], t, a, n, i, l, o = e;
1115
+ for (t = 0, a = o.length; t < a; t += 1) {
1116
+ if (n = o[t], l = !1, xr.call(n) !== "[object Object]")
1117
1117
  return !1;
1118
1118
  for (i in n)
1119
- if (Nr.call(n, i))
1119
+ if (Ir.call(n, i))
1120
1120
  if (!l)
1121
1121
  l = !0;
1122
1122
  else
@@ -1130,26 +1130,26 @@ function xr(e) {
1130
1130
  }
1131
1131
  return !0;
1132
1132
  }
1133
- function Er(e) {
1133
+ function Or(e) {
1134
1134
  return e !== null ? e : [];
1135
1135
  }
1136
- var Or = new K("tag:yaml.org,2002:omap", {
1136
+ var jr = new $("tag:yaml.org,2002:omap", {
1137
1137
  kind: "sequence",
1138
- resolve: xr,
1139
- construct: Er
1140
- }), jr = Object.prototype.toString;
1141
- function Kr(e) {
1138
+ resolve: Er,
1139
+ construct: Or
1140
+ }), Kr = Object.prototype.toString;
1141
+ function $r(e) {
1142
1142
  if (e === null)
1143
1143
  return !0;
1144
1144
  var r, t, a, n, i, l = e;
1145
1145
  for (i = new Array(l.length), r = 0, t = l.length; r < t; r += 1) {
1146
- if (a = l[r], jr.call(a) !== "[object Object]" || (n = Object.keys(a), n.length !== 1))
1146
+ if (a = l[r], Kr.call(a) !== "[object Object]" || (n = Object.keys(a), n.length !== 1))
1147
1147
  return !1;
1148
1148
  i[r] = [n[0], a[n[0]]];
1149
1149
  }
1150
1150
  return !0;
1151
1151
  }
1152
- function $r(e) {
1152
+ function Fr(e) {
1153
1153
  if (e === null)
1154
1154
  return [];
1155
1155
  var r, t, a, n, i, l = e;
@@ -1157,51 +1157,51 @@ function $r(e) {
1157
1157
  a = l[r], n = Object.keys(a), i[r] = [n[0], a[n[0]]];
1158
1158
  return i;
1159
1159
  }
1160
- var Ur = new K("tag:yaml.org,2002:pairs", {
1160
+ var Pr = new $("tag:yaml.org,2002:pairs", {
1161
1161
  kind: "sequence",
1162
- resolve: Kr,
1163
- construct: $r
1164
- }), Fr = Object.prototype.hasOwnProperty;
1165
- function Pr(e) {
1162
+ resolve: $r,
1163
+ construct: Fr
1164
+ }), Mr = Object.prototype.hasOwnProperty;
1165
+ function Dr(e) {
1166
1166
  if (e === null)
1167
1167
  return !0;
1168
1168
  var r, t = e;
1169
1169
  for (r in t)
1170
- if (Fr.call(t, r) && t[r] !== null)
1170
+ if (Mr.call(t, r) && t[r] !== null)
1171
1171
  return !1;
1172
1172
  return !0;
1173
1173
  }
1174
- function Mr(e) {
1174
+ function Lr(e) {
1175
1175
  return e !== null ? e : {};
1176
1176
  }
1177
- var Lr = new K("tag:yaml.org,2002:set", {
1177
+ var Ur = new $("tag:yaml.org,2002:set", {
1178
1178
  kind: "mapping",
1179
- resolve: Pr,
1180
- construct: Mr
1179
+ resolve: Dr,
1180
+ construct: Lr
1181
1181
  });
1182
- hr.extend({
1182
+ gr.extend({
1183
1183
  implicit: [
1184
- br,
1185
- kr
1184
+ wr,
1185
+ Cr
1186
1186
  ],
1187
1187
  explicit: [
1188
- Ar,
1189
- Or,
1190
- Ur,
1191
- Lr
1188
+ Nr,
1189
+ jr,
1190
+ Pr,
1191
+ Ur
1192
1192
  ]
1193
1193
  });
1194
- function _e(e) {
1194
+ function Se(e) {
1195
1195
  return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
1196
1196
  ` : e === 118 ? "\v" : e === 102 ? "\f" : e === 114 ? "\r" : e === 101 ? "\x1B" : e === 32 ? " " : e === 34 ? '"' : e === 47 ? "/" : e === 92 ? "\\" : e === 78 ? "…" : e === 95 ? " " : e === 76 ? "\u2028" : e === 80 ? "\u2029" : "";
1197
1197
  }
1198
- var Rr = new Array(256), Dr = new Array(256);
1198
+ var Rr = new Array(256), Br = new Array(256);
1199
1199
  for (var re = 0; re < 256; re++)
1200
- Rr[re] = _e(re) ? 1 : 0, Dr[re] = _e(re);
1201
- const Br = {
1200
+ Rr[re] = Se(re) ? 1 : 0, Br[re] = Se(re);
1201
+ const qr = {
1202
1202
  key: 0,
1203
1203
  "data-testid": "first-col"
1204
- }, qr = /* @__PURE__ */ ne({
1204
+ }, zr = /* @__PURE__ */ ie({
1205
1205
  __name: "EntityBaseTableCell",
1206
1206
  props: {
1207
1207
  keyName: {
@@ -1221,61 +1221,61 @@ const Br = {
1221
1221
  var f;
1222
1222
  return ((f = t.value) == null ? void 0 : f.querySelector('[data-testid="first-col"]')) || null;
1223
1223
  }), n = N(() => {
1224
- var f, A;
1225
- const F = (f = r.rowEl) == null ? void 0 : f.querySelectorAll("td");
1226
- return F ? ((A = F[0]) == null ? void 0 : A.getAttribute("data-testid")) === r.keyName : !1;
1224
+ var f, T;
1225
+ const P = (f = r.rowEl) == null ? void 0 : f.querySelectorAll("td");
1226
+ return P ? ((T = P[0]) == null ? void 0 : T.getAttribute("data-testid")) === r.keyName : !1;
1227
1227
  });
1228
1228
  let i;
1229
1229
  const l = () => {
1230
1230
  i && (i.disconnect(), i = void 0);
1231
- }, u = () => {
1232
- var f, A, F;
1233
- c.value = ((f = a.value) == null ? void 0 : f.getBoundingClientRect().width) || 0, C.value = ((A = t.value) == null ? void 0 : A.clientWidth) || 0, y.value = ((F = p.value) == null ? void 0 : F.innerText) || "";
1234
- }, p = b({}), c = b(0), C = b(0), y = b(""), T = N(() => [a.value, t.value]), m = le(
1235
- T,
1231
+ }, o = () => {
1232
+ var f, T, P;
1233
+ p.value = ((f = a.value) == null ? void 0 : f.getBoundingClientRect().width) || 0, b.value = ((T = t.value) == null ? void 0 : T.clientWidth) || 0, y.value = ((P = d.value) == null ? void 0 : P.innerText) || "";
1234
+ }, d = v({}), p = v(0), b = v(0), y = v(""), A = N(() => [a.value, t.value]), _ = se(
1235
+ A,
1236
1236
  (f) => {
1237
1237
  if (n.value && (l(), "ResizeObserver" in window && window)) {
1238
- i = new ResizeObserver((A) => {
1238
+ i = new ResizeObserver((T) => {
1239
1239
  window.requestAnimationFrame(() => {
1240
- !Array.isArray(A) || !A.length || u();
1240
+ !Array.isArray(T) || !T.length || o();
1241
1241
  });
1242
1242
  });
1243
- for (const A of f)
1244
- A && i.observe(A);
1243
+ for (const T of f)
1244
+ T && i.observe(T);
1245
1245
  }
1246
1246
  },
1247
1247
  { immediate: !0, flush: "post", deep: !0 }
1248
- ), U = N(() => n.value ? c.value > C.value : !1);
1248
+ ), U = N(() => n.value ? p.value > b.value : !1);
1249
1249
  return Re(() => {
1250
- u();
1251
- }), De(() => {
1252
- m();
1253
- }), (f, A) => {
1254
- const F = P("KTooltip");
1255
- return E(), V("span", {
1250
+ o();
1251
+ }), Be(() => {
1252
+ _();
1253
+ }), (f, T) => {
1254
+ const P = M("KTooltip");
1255
+ return j(), V("span", {
1256
1256
  ref_key: "contentRef",
1257
- ref: p,
1257
+ ref: d,
1258
1258
  class: "content-wrapper"
1259
1259
  }, [
1260
- n.value ? (E(), V("span", Br, [
1261
- g(F, {
1260
+ n.value ? (j(), V("span", qr, [
1261
+ g(P, {
1262
1262
  label: U.value ? y.value : "",
1263
1263
  "max-width": "300",
1264
1264
  placement: "bottomStart"
1265
1265
  }, {
1266
- default: o(() => [
1267
- J(f.$slots, "default", {}, void 0, !0)
1266
+ default: s(() => [
1267
+ Y(f.$slots, "default", {}, void 0, !0)
1268
1268
  ]),
1269
1269
  _: 3
1270
1270
  }, 8, ["label"])
1271
- ])) : J(f.$slots, "default", { key: 1 }, void 0, !0)
1271
+ ])) : Y(f.$slots, "default", { key: 1 }, void 0, !0)
1272
1272
  ], 512);
1273
1273
  };
1274
1274
  }
1275
- }), Hr = /* @__PURE__ */ fe(qr, [["__scopeId", "data-v-e42a20c9"]]), Wr = { class: "toolbar-container" }, zr = {
1275
+ }), Hr = /* @__PURE__ */ ye(zr, [["__scopeId", "data-v-e42a20c9"]]), Wr = { class: "toolbar-container" }, Jr = {
1276
1276
  key: 0,
1277
1277
  class: "toolbar-button-container"
1278
- }, Jr = ["data-testid"], Yr = /* @__PURE__ */ ne({
1278
+ }, Yr = ["data-testid"], Gr = /* @__PURE__ */ ie({
1279
1279
  __name: "EntityBaseTable",
1280
1280
  props: {
1281
1281
  // table header configuration
@@ -1385,138 +1385,138 @@ const Br = {
1385
1385
  },
1386
1386
  emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
1387
1387
  setup(e, { emit: r }) {
1388
- const t = e, { i18n: { t: a } } = pe.useI18n(), n = N(() => {
1389
- var s, w;
1388
+ const t = e, a = r, { i18n: { t: n } } = fe.useI18n(), i = N(() => {
1389
+ var c, k;
1390
1390
  return typeof t.errorMessage == "string" ? {
1391
1391
  hasError: !!t.errorMessage,
1392
1392
  title: t.errorMessage,
1393
1393
  message: void 0
1394
1394
  } : {
1395
1395
  hasError: !!t.errorMessage,
1396
- title: (s = t.errorMessage) == null ? void 0 : s.title,
1397
- message: (w = t.errorMessage) == null ? void 0 : w.message
1396
+ title: (c = t.errorMessage) == null ? void 0 : c.title,
1397
+ message: (k = t.errorMessage) == null ? void 0 : k.message
1398
1398
  };
1399
- }), i = N(() => t.cacheIdentifier || t.preferencesStorageKey), l = (s) => s.hasData || !!t.query, u = N(() => {
1400
- const s = [];
1401
- return Object.keys(t.tableHeaders).forEach((w) => {
1402
- const B = t.tableHeaders[w];
1403
- s.push({
1404
- label: B.label ?? w,
1405
- key: w,
1406
- sortable: B.sortable ?? !1
1399
+ }), l = N(() => t.cacheIdentifier || t.preferencesStorageKey), o = (c) => c.hasData || !!t.query, d = N(() => {
1400
+ const c = [];
1401
+ return Object.keys(t.tableHeaders).forEach((k) => {
1402
+ const q = t.tableHeaders[k];
1403
+ c.push({
1404
+ label: q.label ?? k,
1405
+ key: k,
1406
+ sortable: q.sortable ?? !1
1407
1407
  });
1408
- }), t.enableEntityActions && s.push({
1408
+ }), t.enableEntityActions && c.push({
1409
1409
  key: "actions",
1410
1410
  hideLabel: !0
1411
- }), s;
1412
- }), p = (s) => ({
1413
- "data-rowid": s.id,
1414
- "data-testid": s.name,
1415
- ...t.rowAttributes(s)
1416
- }), c = b({}), C = (s) => {
1417
- var w;
1418
- return (w = c.value) == null ? void 0 : w.$el.querySelector(`[data-rowid="${s.id}"]`);
1419
- }, y = (s) => {
1420
- const w = {
1421
- "data-testid": s.headerKey,
1422
- ...t.cellAttributes(s)
1411
+ }), c;
1412
+ }), p = (c) => ({
1413
+ "data-rowid": c.id,
1414
+ "data-testid": c.name,
1415
+ ...t.rowAttributes(c)
1416
+ }), b = v({}), y = (c) => {
1417
+ var k;
1418
+ return (k = b.value) == null ? void 0 : k.$el.querySelector(`[data-rowid="${c.id}"]`);
1419
+ }, A = (c) => {
1420
+ const k = {
1421
+ "data-testid": c.headerKey,
1422
+ ...t.cellAttributes(c)
1423
1423
  };
1424
- return s.colIndex === 0 && (w.style = {
1424
+ return c.colIndex === 0 && (k.style = {
1425
1425
  maxWidth: "250px",
1426
1426
  overflowX: "hidden",
1427
1427
  textOverflow: "ellipsis"
1428
- }), w;
1429
- }, T = () => {
1430
- r("empty-state-cta-clicked"), m();
1431
- }, m = () => {
1432
- r("clear-search-input");
1433
- }, U = N(() => t.disableRowClick ? void 0 : (s, w) => {
1434
- r("click:row", w);
1435
- }), f = (s) => {
1436
- r("sort", s);
1437
- }, { setTablePreferences: A, getTablePreferences: F } = et(), Q = N(() => {
1438
- const s = F(t.preferencesStorageKey);
1428
+ }), k;
1429
+ }, _ = () => {
1430
+ a("empty-state-cta-clicked"), U();
1431
+ }, U = () => {
1432
+ a("clear-search-input");
1433
+ }, f = N(() => t.disableRowClick ? void 0 : (c, k) => {
1434
+ a("click:row", k);
1435
+ }), T = (c) => {
1436
+ a("sort", c);
1437
+ }, { setTablePreferences: P, getTablePreferences: Z } = tt(), ae = N(() => {
1438
+ const c = Z(t.preferencesStorageKey);
1439
1439
  return {
1440
1440
  ...t.initialFetcherParams,
1441
- ...s
1441
+ ...c
1442
1442
  };
1443
- }), W = (s) => {
1444
- t.preferencesStorageKey && A(t.preferencesStorageKey, s);
1443
+ }), w = (c) => {
1444
+ t.preferencesStorageKey && P(t.preferencesStorageKey, c);
1445
1445
  };
1446
- return (s, w) => {
1447
- const B = P("KIcon"), ee = P("KButton"), x = P("KDropdown"), O = P("KTable"), q = P("KCard");
1448
- return E(), H(q, {
1446
+ return (c, k) => {
1447
+ const q = M("KIcon"), E = M("KButton"), K = M("KDropdown"), z = M("KTable"), I = M("KCard");
1448
+ return j(), H(I, {
1449
1449
  class: "kong-ui-entity-base-table",
1450
1450
  title: e.title
1451
1451
  }, {
1452
- default: o(() => [
1453
- g(O, {
1452
+ default: s(() => [
1453
+ g(z, {
1454
1454
  ref_key: "tableRefs",
1455
- ref: c,
1456
- "cache-identifier": i.value,
1457
- "cell-attrs": y,
1455
+ ref: b,
1456
+ "cache-identifier": l.value,
1457
+ "cell-attrs": A,
1458
1458
  "disable-pagination-page-jump": e.disablePaginationPageJump,
1459
1459
  "disable-sorting": e.disableSorting,
1460
1460
  "empty-state-action-button-icon": e.query ? "" : "plus",
1461
- "empty-state-action-message": e.query ? v(a)("baseTable.emptyState.noSearchResultsCtaText") : e.emptyStateOptions.ctaText,
1461
+ "empty-state-action-message": e.query ? m(n)("baseTable.emptyState.noSearchResultsCtaText") : e.emptyStateOptions.ctaText,
1462
1462
  "empty-state-action-route": e.query ? "" : e.emptyStateOptions.ctaPath,
1463
1463
  "empty-state-icon": e.query ? "stateNoSearchResults" : "stateGruceo",
1464
1464
  "empty-state-icon-size": "96",
1465
- "empty-state-message": e.query ? v(a)("baseTable.emptyState.noSearchResultsMessage") : e.emptyStateOptions.message,
1466
- "empty-state-title": e.query ? v(a)("baseTable.emptyState.noSearchResultsTitle") : e.emptyStateOptions.title,
1465
+ "empty-state-message": e.query ? m(n)("baseTable.emptyState.noSearchResultsMessage") : e.emptyStateOptions.message,
1466
+ "empty-state-title": e.query ? m(n)("baseTable.emptyState.noSearchResultsTitle") : e.emptyStateOptions.title,
1467
1467
  "enable-client-sort": e.enableClientSort,
1468
- "error-state-message": n.value.message,
1469
- "error-state-title": n.value.title,
1468
+ "error-state-message": i.value.message,
1469
+ "error-state-title": i.value.title,
1470
1470
  fetcher: e.fetcher,
1471
1471
  "fetcher-cache-key": String(e.fetcherCacheKey),
1472
- "has-error": n.value.hasError,
1473
- headers: u.value,
1472
+ "has-error": i.value.hasError,
1473
+ headers: d.value,
1474
1474
  "hide-pagination-when-optional": "",
1475
- "initial-fetcher-params": Q.value,
1475
+ "initial-fetcher-params": ae.value,
1476
1476
  "is-loading": e.isLoading,
1477
1477
  "pagination-type": e.paginationType,
1478
1478
  "row-attrs": p,
1479
1479
  "search-input": e.query,
1480
- onKtableEmptyStateCtaClicked: T,
1481
- "onRow:click": U.value,
1482
- onSort: w[0] || (w[0] = (_) => f(_)),
1483
- "onUpdate:tablePreferences": W
1484
- }, Se({
1485
- toolbar: o(({ state: _ }) => [
1486
- Te(X("div", Wr, [
1487
- J(s.$slots, "toolbar-filter", {}, void 0, !0),
1488
- s.$slots["toolbar-button"] ? (E(), V("div", zr, [
1489
- J(s.$slots, "toolbar-button", {}, void 0, !0)
1490
- ])) : Y("", !0)
1480
+ onKtableEmptyStateCtaClicked: _,
1481
+ "onRow:click": f.value,
1482
+ onSort: k[0] || (k[0] = (O) => T(O)),
1483
+ "onUpdate:tablePreferences": w
1484
+ }, Ae({
1485
+ toolbar: s(({ state: O }) => [
1486
+ Te(ee("div", Wr, [
1487
+ Y(c.$slots, "toolbar-filter", {}, void 0, !0),
1488
+ c.$slots["toolbar-button"] ? (j(), V("div", Jr, [
1489
+ Y(c.$slots, "toolbar-button", {}, void 0, !0)
1490
+ ])) : G("", !0)
1491
1491
  ], 512), [
1492
- [Ae, l(_)]
1492
+ [Ne, o(O)]
1493
1493
  ])
1494
1494
  ]),
1495
- actions: o(({ row: _, rowKey: j, rowValue: R }) => [
1496
- X("div", {
1495
+ actions: s(({ row: O, rowKey: R, rowValue: W }) => [
1496
+ ee("div", {
1497
1497
  class: "actions-container",
1498
- "data-testid": _.name
1498
+ "data-testid": O.name
1499
1499
  }, [
1500
- g(x, {
1500
+ g(K, {
1501
1501
  "kpop-attributes": { placement: "bottomEnd" },
1502
1502
  width: e.dropdownMenuWidth
1503
1503
  }, {
1504
- items: o(() => [
1505
- J(s.$slots, "actions", {
1506
- row: _,
1507
- rowKey: j,
1508
- rowValue: R
1504
+ items: s(() => [
1505
+ Y(c.$slots, "actions", {
1506
+ row: O,
1507
+ rowKey: R,
1508
+ rowValue: W
1509
1509
  }, void 0, !0)
1510
1510
  ]),
1511
- default: o(() => [
1512
- g(ee, {
1511
+ default: s(() => [
1512
+ g(E, {
1513
1513
  class: "actions-trigger",
1514
1514
  "data-testid": "overflow-actions-button",
1515
1515
  size: "small"
1516
1516
  }, {
1517
- icon: o(() => [
1518
- g(B, {
1519
- color: v(St),
1517
+ icon: s(() => [
1518
+ g(q, {
1519
+ color: m(At),
1520
1520
  icon: "more",
1521
1521
  size: "16"
1522
1522
  }, null, 8, ["color"])
@@ -1526,24 +1526,24 @@ const Br = {
1526
1526
  ]),
1527
1527
  _: 2
1528
1528
  }, 1032, ["width"])
1529
- ], 8, Jr)
1529
+ ], 8, Yr)
1530
1530
  ]),
1531
1531
  _: 2
1532
1532
  }, [
1533
- Ne(e.tableHeaders, (_, j) => ({
1534
- name: j,
1535
- fn: o(({ row: R, rowKey: d, rowValue: k }) => [
1533
+ Ie(e.tableHeaders, (O, R) => ({
1534
+ name: R,
1535
+ fn: s(({ row: W, rowKey: u, rowValue: C }) => [
1536
1536
  g(Hr, {
1537
- "key-name": String(j),
1538
- "row-el": C(R)
1537
+ "key-name": String(R),
1538
+ "row-el": y(W)
1539
1539
  }, {
1540
- default: o(() => [
1541
- J(s.$slots, j, {
1542
- row: R,
1543
- rowKey: d,
1544
- rowValue: k
1540
+ default: s(() => [
1541
+ Y(c.$slots, R, {
1542
+ row: W,
1543
+ rowKey: u,
1544
+ rowValue: C
1545
1545
  }, () => [
1546
- L(I(k), 1)
1546
+ L(x(C), 1)
1547
1547
  ], !0)
1548
1548
  ]),
1549
1549
  _: 2
@@ -1556,13 +1556,13 @@ const Br = {
1556
1556
  }, 8, ["title"]);
1557
1557
  };
1558
1558
  }
1559
- }), Vr = /* @__PURE__ */ fe(Yr, [["__scopeId", "data-v-57b5a97b"]]), Gr = {
1559
+ }), Vr = /* @__PURE__ */ ye(Gr, [["__scopeId", "data-v-57b5a97b"]]), Zr = {
1560
1560
  key: 0,
1561
1561
  class: "kong-ui-entity-delete-error"
1562
- }, Zr = {
1562
+ }, Qr = {
1563
1563
  key: 1,
1564
1564
  class: "description"
1565
- }, Xr = /* @__PURE__ */ ne({
1565
+ }, Xr = /* @__PURE__ */ ie({
1566
1566
  __name: "EntityDeleteModal",
1567
1567
  props: {
1568
1568
  visible: {
@@ -1601,62 +1601,62 @@ const Br = {
1601
1601
  },
1602
1602
  emits: ["cancel", "proceed"],
1603
1603
  setup(e, { emit: r }) {
1604
- const t = e, { i18nT: a } = pe.useI18n(), n = N(() => t.needConfirm ? t.entityName : ""), i = () => {
1605
- r("cancel");
1606
- }, l = () => {
1607
- r("proceed");
1604
+ const { i18nT: t } = fe.useI18n(), a = e, n = r, i = N(() => a.needConfirm ? a.entityName : ""), l = () => {
1605
+ n("cancel");
1606
+ }, o = () => {
1607
+ n("proceed");
1608
1608
  };
1609
- return (u, p) => {
1610
- const c = P("KAlert"), C = P("KPrompt");
1611
- return E(), H(C, {
1609
+ return (d, p) => {
1610
+ const b = M("KAlert"), y = M("KPrompt");
1611
+ return j(), H(y, {
1612
1612
  "action-button-text": "Yes, delete",
1613
1613
  "action-pending": e.actionPending,
1614
1614
  class: "kong-ui-entity-delete-modal",
1615
- "confirmation-text": n.value,
1615
+ "confirmation-text": i.value,
1616
1616
  "is-visible": e.visible,
1617
1617
  title: e.title,
1618
1618
  type: "danger",
1619
- onCanceled: i,
1620
- onProceed: l
1619
+ onCanceled: l,
1620
+ onProceed: o
1621
1621
  }, {
1622
- "body-content": o(() => [
1623
- e.error ? (E(), V("div", Gr, [
1624
- g(c, { appearance: "danger" }, {
1625
- alertMessage: o(() => [
1626
- L(I(e.error), 1)
1622
+ "body-content": s(() => [
1623
+ e.error ? (j(), V("div", Zr, [
1624
+ g(b, { appearance: "danger" }, {
1625
+ alertMessage: s(() => [
1626
+ L(x(e.error), 1)
1627
1627
  ]),
1628
1628
  _: 1
1629
1629
  })
1630
- ])) : Y("", !0),
1631
- g(v(a), {
1630
+ ])) : G("", !0),
1631
+ g(m(t), {
1632
1632
  class: "message",
1633
- keypath: t.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
1633
+ keypath: a.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
1634
1634
  tag: "p"
1635
- }, Se({
1636
- entityType: o(() => [
1637
- L(I(t.entityType), 1)
1635
+ }, Ae({
1636
+ entityType: s(() => [
1637
+ L(x(a.entityType), 1)
1638
1638
  ]),
1639
1639
  _: 2
1640
1640
  }, [
1641
- t.entityName ? {
1641
+ a.entityName ? {
1642
1642
  name: "entityName",
1643
- fn: o(() => [
1644
- X("strong", null, I(t.entityName), 1)
1643
+ fn: s(() => [
1644
+ ee("strong", null, x(a.entityName), 1)
1645
1645
  ]),
1646
1646
  key: "0"
1647
1647
  } : void 0
1648
1648
  ]), 1032, ["keypath"]),
1649
- t.description || u.$slots.description ? (E(), V("div", Zr, [
1650
- J(u.$slots, "description", {}, () => [
1651
- X("p", null, I(t.description), 1)
1649
+ a.description || d.$slots.description ? (j(), V("div", Qr, [
1650
+ Y(d.$slots, "description", {}, () => [
1651
+ ee("p", null, x(a.description), 1)
1652
1652
  ], !0)
1653
- ])) : Y("", !0)
1653
+ ])) : G("", !0)
1654
1654
  ]),
1655
1655
  _: 3
1656
1656
  }, 8, ["action-pending", "confirmation-text", "is-visible", "title"]);
1657
1657
  };
1658
1658
  }
1659
- }), Qr = /* @__PURE__ */ fe(Xr, [["__scopeId", "data-v-1c9a2a07"]]), oe = /* @__PURE__ */ ne({
1659
+ }), ea = /* @__PURE__ */ ye(Xr, [["__scopeId", "data-v-1c9a2a07"]]), ce = /* @__PURE__ */ ie({
1660
1660
  __name: "PermissionsWrapper",
1661
1661
  props: {
1662
1662
  /**
@@ -1678,15 +1678,15 @@ const Br = {
1678
1678
  }
1679
1679
  },
1680
1680
  setup(e) {
1681
- const r = e, t = b(void 0), a = N(() => t.value === !0 || t.value !== void 0 && r.forceShow === !0);
1682
- return le(() => r.authFunction, async () => {
1681
+ const r = e, t = v(void 0), a = N(() => t.value === !0 || t.value !== void 0 && r.forceShow === !0);
1682
+ return se(() => r.authFunction, async () => {
1683
1683
  t.value = await r.authFunction();
1684
- }, { immediate: !0 }), (n, i) => a.value ? J(n.$slots, "default", {
1684
+ }, { immediate: !0 }), (n, i) => a.value ? Y(n.$slots, "default", {
1685
1685
  key: 0,
1686
1686
  isAllowed: t.value
1687
- }) : Y("", !0);
1687
+ }) : G("", !0);
1688
1688
  }
1689
- }), { useAxios: ea, useDeleteUrlBuilder: ta, useErrors: pa, useExternalLinkCreator: fa, useFetchUrlBuilder: ya, useFetcher: ra, useDebouncedFilter: ha, useStringHelpers: ga, useHelpers: ma, useGatewayFeatureSupported: va, useTruncationDetector: ba } = pe, aa = { class: "kong-ui-entities-consumer-credentials-list" }, na = { key: 1 }, ia = /* @__PURE__ */ ne({
1689
+ }), { useAxios: ta, useDeleteUrlBuilder: ra, useErrors: fa, useExternalLinkCreator: ya, useFetchUrlBuilder: ha, useFetcher: aa, useDebouncedFilter: ga, useStringHelpers: ma, useHelpers: va, useGatewayFeatureSupported: ba, useTruncationDetector: wa } = fe, na = { class: "kong-ui-entities-consumer-credentials-list" }, ia = { key: 1 }, la = /* @__PURE__ */ ie({
1690
1690
  __name: "ConsumerCredentialList",
1691
1691
  props: {
1692
1692
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -1726,326 +1726,326 @@ const Br = {
1726
1726
  },
1727
1727
  emits: ["error", "copy:success", "copy:error", "delete:success"],
1728
1728
  setup(e, { emit: r }) {
1729
- const t = e, { i18n: { t: a, formatUnixTimeStamp: n } } = Ge.useI18n(), { axiosInstance: i } = ea({
1730
- headers: t.config.requestHeaders
1731
- }), l = b(1), u = {
1729
+ const t = r, a = e, { i18n: { t: n, formatUnixTimeStamp: i } } = Ze.useI18n(), { axiosInstance: l } = ta({
1730
+ headers: a.config.requestHeaders
1731
+ }), o = v(1), d = {
1732
1732
  acls: {
1733
- group: { label: a("credentials.list.table_headers.acls.group") },
1734
- created_at: { label: a("credentials.list.table_headers.acls.created_at") },
1735
- tags: { label: a("credentials.list.table_headers.acls.tags") }
1733
+ group: { label: n("credentials.list.table_headers.acls.group") },
1734
+ created_at: { label: n("credentials.list.table_headers.acls.created_at") },
1735
+ tags: { label: n("credentials.list.table_headers.acls.tags") }
1736
1736
  },
1737
1737
  "basic-auth": {
1738
- password: { label: a("credentials.list.table_headers.basic-auth.password") },
1739
- username: { label: a("credentials.list.table_headers.basic-auth.username") },
1740
- created_at: { label: a("credentials.list.table_headers.basic-auth.created_at") },
1741
- tags: { label: a("credentials.list.table_headers.basic-auth.tags") }
1738
+ password: { label: n("credentials.list.table_headers.basic-auth.password") },
1739
+ username: { label: n("credentials.list.table_headers.basic-auth.username") },
1740
+ created_at: { label: n("credentials.list.table_headers.basic-auth.created_at") },
1741
+ tags: { label: n("credentials.list.table_headers.basic-auth.tags") }
1742
1742
  },
1743
1743
  "key-auth": {
1744
- key: { label: a("credentials.list.table_headers.key-auth.key") },
1745
- created_at: { label: a("credentials.list.table_headers.key-auth.created_at") },
1746
- tags: { label: a("credentials.list.table_headers.key-auth.tags") }
1744
+ key: { label: n("credentials.list.table_headers.key-auth.key") },
1745
+ created_at: { label: n("credentials.list.table_headers.key-auth.created_at") },
1746
+ tags: { label: n("credentials.list.table_headers.key-auth.tags") }
1747
1747
  },
1748
1748
  "key-auth-enc": {
1749
- key: { label: a("credentials.list.table_headers.key-auth-enc.key") },
1750
- created_at: { label: a("credentials.list.table_headers.key-auth-enc.created_at") },
1751
- tags: { label: a("credentials.list.table_headers.key-auth-enc.tags") }
1749
+ key: { label: n("credentials.list.table_headers.key-auth-enc.key") },
1750
+ created_at: { label: n("credentials.list.table_headers.key-auth-enc.created_at") },
1751
+ tags: { label: n("credentials.list.table_headers.key-auth-enc.tags") }
1752
1752
  },
1753
1753
  oauth2: {
1754
- name: { label: a("credentials.list.table_headers.oauth2.name") },
1755
- client_id: { label: a("credentials.list.table_headers.oauth2.client_id") },
1756
- client_secret: { label: a("credentials.list.table_headers.oauth2.client_secret") },
1757
- created_at: { label: a("credentials.list.table_headers.oauth2.created_at") },
1758
- tags: { label: a("credentials.list.table_headers.oauth2.tags") }
1754
+ name: { label: n("credentials.list.table_headers.oauth2.name") },
1755
+ client_id: { label: n("credentials.list.table_headers.oauth2.client_id") },
1756
+ client_secret: { label: n("credentials.list.table_headers.oauth2.client_secret") },
1757
+ created_at: { label: n("credentials.list.table_headers.oauth2.created_at") },
1758
+ tags: { label: n("credentials.list.table_headers.oauth2.tags") }
1759
1759
  },
1760
1760
  "hmac-auth": {
1761
- username: { label: a("credentials.list.table_headers.hmac-auth.username") },
1762
- secret: { label: a("credentials.list.table_headers.hmac-auth.secret") },
1763
- created_at: { label: a("credentials.list.table_headers.hmac-auth.created_at") },
1764
- tags: { label: a("credentials.list.table_headers.hmac-auth.tags") }
1761
+ username: { label: n("credentials.list.table_headers.hmac-auth.username") },
1762
+ secret: { label: n("credentials.list.table_headers.hmac-auth.secret") },
1763
+ created_at: { label: n("credentials.list.table_headers.hmac-auth.created_at") },
1764
+ tags: { label: n("credentials.list.table_headers.hmac-auth.tags") }
1765
1765
  },
1766
1766
  jwt: {
1767
- key: { label: a("credentials.list.table_headers.jwt.key") },
1768
- algorithm: { label: a("credentials.list.table_headers.jwt.algorithm") },
1769
- created_at: { label: a("credentials.list.table_headers.jwt.created_at") },
1770
- tags: { label: a("credentials.list.table_headers.jwt.tags") }
1767
+ key: { label: n("credentials.list.table_headers.jwt.key") },
1768
+ algorithm: { label: n("credentials.list.table_headers.jwt.algorithm") },
1769
+ created_at: { label: n("credentials.list.table_headers.jwt.created_at") },
1770
+ tags: { label: n("credentials.list.table_headers.jwt.tags") }
1771
1771
  }
1772
- }, p = N(() => u[t.config.plugin]), c = N(() => {
1773
- let d = `${t.config.apiBaseUrl}${Ze.list[t.config.app]}`;
1774
- return t.config.app === "konnect" ? d = d.replace(/{controlPlaneId}/gi, t.config.controlPlaneId || "").replace(/{consumerId}/gi, t.config.consumerId || "").replace(/{plugin}/gi, t.config.plugin || "") : t.config.app === "kongManager" && (d = d.replace(/\/{workspace}/gi, t.config.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, t.config.consumerId || "").replace(/{plugin}/gi, t.config.plugin || "")), d;
1775
- }), { fetcher: C, fetcherState: y } = ra(t.config, c), T = () => {
1776
- l.value++;
1777
- }, m = b(null), U = (d, k, D) => {
1778
- const $ = k ? d[k] : JSON.stringify(d);
1779
- if (!D($)) {
1780
- F(d, k);
1772
+ }, p = N(() => d[a.config.plugin]), b = N(() => {
1773
+ let u = `${a.config.apiBaseUrl}${Qe.list[a.config.app]}`;
1774
+ 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;
1775
+ }), { fetcher: y, fetcherState: A } = aa(a.config, b), _ = () => {
1776
+ o.value++;
1777
+ }, U = v(null), f = (u, C, B) => {
1778
+ const F = C ? u[C] : JSON.stringify(u);
1779
+ if (!B(F)) {
1780
+ Z(u, C);
1781
1781
  return;
1782
1782
  }
1783
- A(d, k);
1784
- }, f = (d, k, D) => {
1785
- const { type: $ } = d;
1786
- $ === "success" ? A(k, D) : F(k, D);
1787
- }, A = (d, k) => {
1788
- r("copy:success", {
1789
- entity: d,
1790
- field: k,
1791
- message: k ? a("credentials.copy.success", { val: d[k] }) : a("credentials.copy.success_brief")
1783
+ P(u, C);
1784
+ }, T = (u, C, B) => {
1785
+ const { type: F } = u;
1786
+ F === "success" ? P(C, B) : Z(C, B);
1787
+ }, P = (u, C) => {
1788
+ t("copy:success", {
1789
+ entity: u,
1790
+ field: C,
1791
+ message: C ? n("credentials.copy.success", { val: u[C] }) : n("credentials.copy.success_brief")
1792
1792
  });
1793
- }, F = (d, k) => {
1794
- r("copy:error", {
1795
- entity: d,
1796
- field: k,
1797
- message: a("credentials.error.copy")
1793
+ }, Z = (u, C) => {
1794
+ t("copy:error", {
1795
+ entity: u,
1796
+ field: C,
1797
+ message: n("credentials.error.copy")
1798
1798
  });
1799
- }, Q = (d) => ({
1800
- label: a("credentials.actions.edit"),
1801
- to: t.config.getEditRoute(d)
1802
- }), W = b(void 0), s = b(!1), w = b(!1), B = b(""), ee = ta(t.config, c.value), x = N(() => Ee[t.config.plugin]), O = (d) => {
1803
- W.value = d, s.value = !0;
1804
- }, q = () => {
1805
- s.value = !1;
1806
- }, _ = async () => {
1807
- var d, k, D;
1808
- if ((d = W.value) != null && d.id) {
1809
- w.value = !0;
1799
+ }, ae = (u) => ({
1800
+ label: n("credentials.actions.edit"),
1801
+ to: a.config.getEditRoute(u)
1802
+ }), w = v(void 0), c = v(!1), k = v(!1), q = v(""), E = ra(a.config, b.value), K = N(() => Oe[a.config.plugin]), z = (u) => {
1803
+ w.value = u, c.value = !0;
1804
+ }, I = () => {
1805
+ c.value = !1;
1806
+ }, O = async () => {
1807
+ var u, C, B;
1808
+ if ((u = w.value) != null && u.id) {
1809
+ k.value = !0;
1810
1810
  try {
1811
- await i.delete(ee(W.value.id)), w.value = !1, s.value = !1, l.value++, r("delete:success", W.value);
1812
- } catch ($) {
1813
- B.value = ((D = (k = $.response) == null ? void 0 : k.data) == null ? void 0 : D.message) || $.message || a("credentials.error.delete"), r("error", $);
1811
+ await l.delete(E(w.value.id)), k.value = !1, c.value = !1, o.value++, t("delete:success", w.value);
1812
+ } catch (F) {
1813
+ q.value = ((B = (C = F.response) == null ? void 0 : C.data) == null ? void 0 : B.message) || F.message || n("credentials.error.delete"), t("error", F);
1814
1814
  } finally {
1815
- w.value = !1;
1815
+ k.value = !1;
1816
1816
  }
1817
1817
  }
1818
- }, j = b(!0);
1819
- le(y, (d) => {
1820
- var k, D, $, ie;
1821
- if (Array.isArray((k = d == null ? void 0 : d.response) == null ? void 0 : k.data) && (j.value = d.response.data.length > 0), d.status === G.Error) {
1822
- m.value = {
1823
- title: a("credentials.error.general")
1824
- }, (ie = ($ = (D = d.error) == null ? void 0 : D.response) == null ? void 0 : $.data) != null && ie.message && (m.value.message = d.error.response.data.message), r("error", d.error);
1818
+ }, R = v(!0);
1819
+ se(A, (u) => {
1820
+ var C, B, F, le;
1821
+ if (Array.isArray((C = u == null ? void 0 : u.response) == null ? void 0 : C.data) && (R.value = u.response.data.length > 0), u.status === Q.Error) {
1822
+ U.value = {
1823
+ title: n("credentials.error.general")
1824
+ }, (le = (F = (B = u.error) == null ? void 0 : B.response) == null ? void 0 : F.data) != null && le.message && (U.value.message = u.error.response.data.message), t("error", u.error);
1825
1825
  return;
1826
1826
  }
1827
- m.value = null;
1827
+ U.value = null;
1828
1828
  });
1829
- const R = b({
1830
- ctaPath: t.config.createRoute,
1829
+ const W = v({
1830
+ ctaPath: a.config.createRoute,
1831
1831
  ctaText: void 0,
1832
1832
  message: "",
1833
- title: a("credentials.title")
1833
+ title: n("credentials.title")
1834
1834
  });
1835
- return Be(async () => {
1836
- await t.canCreate() && (R.value.title = a(`credentials.list.empty_state.${t.config.plugin}.title`), R.value.ctaText = a(`credentials.list.empty_state.${t.config.plugin}.cta`));
1837
- }), (d, k) => {
1838
- const D = P("KButton"), $ = P("CopyUuid"), ie = P("KBadge"), Le = P("KTruncate"), z = P("KDropdownItem"), te = P("KClipboardProvider");
1839
- return E(), V("div", aa, [
1840
- g(v(Vr), {
1835
+ return qe(async () => {
1836
+ await a.canCreate() && (W.value.title = n(`credentials.list.empty_state.${a.config.plugin}.title`), W.value.ctaText = n(`credentials.list.empty_state.${a.config.plugin}.cta`));
1837
+ }), (u, C) => {
1838
+ const B = M("KButton"), F = M("CopyUuid"), le = M("KBadge"), Ue = M("KTruncate"), J = M("KDropdownItem"), te = M("KClipboardProvider");
1839
+ return j(), V("div", na, [
1840
+ g(m(Vr), {
1841
1841
  "cache-identifier": e.cacheIdentifier,
1842
1842
  "disable-pagination-page-jump": "",
1843
1843
  "disable-row-click": "",
1844
1844
  "disable-sorting": "",
1845
- "empty-state-options": R.value,
1845
+ "empty-state-options": W.value,
1846
1846
  "enable-entity-actions": "",
1847
- "error-message": m.value,
1848
- fetcher: v(C),
1849
- "fetcher-cache-key": l.value,
1847
+ "error-message": U.value,
1848
+ fetcher: m(y),
1849
+ "fetcher-cache-key": o.value,
1850
1850
  "pagination-type": "offset",
1851
1851
  "preferences-storage-key": "kong-ui-entities-consumer-credentials-list",
1852
1852
  "table-headers": p.value,
1853
1853
  "use-action-outside": e.useActionOutside,
1854
- onSort: T
1854
+ onSort: _
1855
1855
  }, {
1856
- "toolbar-button": o(() => [
1857
- (E(), H(qe, {
1856
+ "toolbar-button": s(() => [
1857
+ (j(), H(ze, {
1858
1858
  disabled: !e.useActionOutside,
1859
1859
  to: "#kong-ui-app-page-header-action-button"
1860
1860
  }, [
1861
- g(v(oe), {
1861
+ g(m(ce), {
1862
1862
  "auth-function": () => e.canCreate()
1863
1863
  }, {
1864
- default: o(() => [
1865
- Te(g(D, {
1864
+ default: s(() => [
1865
+ Te(g(B, {
1866
1866
  appearance: "primary",
1867
1867
  "data-testid": "toolbar-add-credential",
1868
1868
  icon: "plus",
1869
1869
  to: e.config.createRoute
1870
1870
  }, {
1871
- default: o(() => [
1872
- L(I(v(a)(`credentials.list.toolbar_actions.${e.config.plugin}.new`)), 1)
1871
+ default: s(() => [
1872
+ L(x(m(n)(`credentials.list.toolbar_actions.${e.config.plugin}.new`)), 1)
1873
1873
  ]),
1874
1874
  _: 1
1875
1875
  }, 8, ["to"]), [
1876
- [Ae, j.value]
1876
+ [Ne, R.value]
1877
1877
  ])
1878
1878
  ]),
1879
1879
  _: 1
1880
1880
  }, 8, ["auth-function"])
1881
1881
  ], 8, ["disabled"]))
1882
1882
  ]),
1883
- group: o(({ rowValue: h }) => [
1884
- X("b", null, I(h ?? "-"), 1)
1883
+ group: s(({ rowValue: h }) => [
1884
+ ee("b", null, x(h ?? "-"), 1)
1885
1885
  ]),
1886
- name: o(({ rowValue: h }) => [
1887
- X("b", null, I(h ?? "-"), 1)
1886
+ name: s(({ rowValue: h }) => [
1887
+ ee("b", null, x(h ?? "-"), 1)
1888
1888
  ]),
1889
- username: o(({ rowValue: h }) => [
1890
- X("span", null, I(h ?? "-"), 1)
1889
+ username: s(({ rowValue: h }) => [
1890
+ ee("span", null, x(h ?? "-"), 1)
1891
1891
  ]),
1892
- password: o(({ row: h, rowValue: S }) => [
1893
- g($, {
1892
+ password: s(({ row: h, rowValue: S }) => [
1893
+ g(F, {
1894
1894
  format: "redacted",
1895
- notify: (M) => f(M, h, "password"),
1895
+ notify: (D) => T(D, h, "password"),
1896
1896
  uuid: S
1897
1897
  }, null, 8, ["notify", "uuid"])
1898
1898
  ]),
1899
- key: o(({ row: h, rowValue: S }) => [
1900
- g($, {
1899
+ key: s(({ row: h, rowValue: S }) => [
1900
+ g(F, {
1901
1901
  format: "redacted",
1902
- notify: (M) => f(M, h, "key"),
1902
+ notify: (D) => T(D, h, "key"),
1903
1903
  uuid: S
1904
1904
  }, null, 8, ["notify", "uuid"])
1905
1905
  ]),
1906
- client_secret: o(({ row: h, rowValue: S }) => [
1907
- g($, {
1906
+ client_secret: s(({ row: h, rowValue: S }) => [
1907
+ g(F, {
1908
1908
  format: "redacted",
1909
- notify: (M) => f(M, h, "client_secret"),
1909
+ notify: (D) => T(D, h, "client_secret"),
1910
1910
  uuid: S
1911
1911
  }, null, 8, ["notify", "uuid"])
1912
1912
  ]),
1913
- secret: o(({ row: h, rowValue: S }) => [
1914
- g($, {
1913
+ secret: s(({ row: h, rowValue: S }) => [
1914
+ g(F, {
1915
1915
  format: "redacted",
1916
- notify: (M) => f(M, h, "secret"),
1916
+ notify: (D) => T(D, h, "secret"),
1917
1917
  uuid: S
1918
1918
  }, null, 8, ["notify", "uuid"])
1919
1919
  ]),
1920
- created_at: o(({ rowValue: h }) => [
1921
- L(I(v(n)(h)), 1)
1920
+ created_at: s(({ rowValue: h }) => [
1921
+ L(x(m(i)(h)), 1)
1922
1922
  ]),
1923
- tags: o(({ rowValue: h }) => [
1924
- (h == null ? void 0 : h.length) > 0 ? (E(), H(Le, { key: 0 }, {
1925
- default: o(() => [
1926
- (E(!0), V(He, null, Ne(h, (S) => (E(), H(ie, {
1923
+ tags: s(({ rowValue: h }) => [
1924
+ (h == null ? void 0 : h.length) > 0 ? (j(), H(Ue, { key: 0 }, {
1925
+ default: s(() => [
1926
+ (j(!0), V(He, null, Ie(h, (S) => (j(), H(le, {
1927
1927
  key: S,
1928
- onClick: k[0] || (k[0] = We(() => {
1928
+ onClick: C[0] || (C[0] = We(() => {
1929
1929
  }, ["stop"]))
1930
1930
  }, {
1931
- default: o(() => [
1932
- L(I(S), 1)
1931
+ default: s(() => [
1932
+ L(x(S), 1)
1933
1933
  ]),
1934
1934
  _: 2
1935
1935
  }, 1024))), 128))
1936
1936
  ]),
1937
1937
  _: 2
1938
- }, 1024)) : (E(), V("span", na, "-"))
1938
+ }, 1024)) : (j(), V("span", ia, "-"))
1939
1939
  ]),
1940
- actions: o(({ row: h }) => [
1940
+ actions: s(({ row: h }) => [
1941
1941
  g(te, null, {
1942
- default: o(({ copyToClipboard: S }) => [
1943
- g(z, {
1942
+ default: s(({ copyToClipboard: S }) => [
1943
+ g(J, {
1944
1944
  "data-testid": "action-entity-copy-id",
1945
- onClick: (M) => U(h, "id", S)
1945
+ onClick: (D) => f(h, "id", S)
1946
1946
  }, {
1947
- default: o(() => [
1948
- L(I(v(a)("credentials.actions.copy_id")), 1)
1947
+ default: s(() => [
1948
+ L(x(m(n)("credentials.actions.copy_id")), 1)
1949
1949
  ]),
1950
1950
  _: 2
1951
1951
  }, 1032, ["onClick"])
1952
1952
  ]),
1953
1953
  _: 2
1954
1954
  }, 1024),
1955
- e.config.plugin === "basic-auth" ? (E(), H(te, { key: 0 }, {
1956
- default: o(({ copyToClipboard: S }) => [
1957
- g(z, {
1955
+ e.config.plugin === "basic-auth" ? (j(), H(te, { key: 0 }, {
1956
+ default: s(({ copyToClipboard: S }) => [
1957
+ g(J, {
1958
1958
  "data-testid": "action-entity-copy-credential",
1959
- onClick: (M) => U(h, "password", S)
1959
+ onClick: (D) => f(h, "password", S)
1960
1960
  }, {
1961
- default: o(() => [
1962
- L(I(v(a)("credentials.actions.copy_credential")), 1)
1961
+ default: s(() => [
1962
+ L(x(m(n)("credentials.actions.copy_credential")), 1)
1963
1963
  ]),
1964
1964
  _: 2
1965
1965
  }, 1032, ["onClick"])
1966
1966
  ]),
1967
1967
  _: 2
1968
- }, 1024)) : Y("", !0),
1969
- ["key-auth", "key-auth-enc", "jwt"].includes(e.config.plugin) ? (E(), H(te, { key: 1 }, {
1970
- default: o(({ copyToClipboard: S }) => [
1971
- g(z, {
1968
+ }, 1024)) : G("", !0),
1969
+ ["key-auth", "key-auth-enc", "jwt"].includes(e.config.plugin) ? (j(), H(te, { key: 1 }, {
1970
+ default: s(({ copyToClipboard: S }) => [
1971
+ g(J, {
1972
1972
  "data-testid": "action-entity-copy-key",
1973
- onClick: (M) => U(h, "key", S)
1973
+ onClick: (D) => f(h, "key", S)
1974
1974
  }, {
1975
- default: o(() => [
1976
- L(I(v(a)("credentials.actions.copy_key")), 1)
1975
+ default: s(() => [
1976
+ L(x(m(n)("credentials.actions.copy_key")), 1)
1977
1977
  ]),
1978
1978
  _: 2
1979
1979
  }, 1032, ["onClick"])
1980
1980
  ]),
1981
1981
  _: 2
1982
- }, 1024)) : Y("", !0),
1983
- e.config.plugin === "oauth2" ? (E(), H(te, { key: 2 }, {
1984
- default: o(({ copyToClipboard: S }) => [
1985
- g(z, {
1982
+ }, 1024)) : G("", !0),
1983
+ e.config.plugin === "oauth2" ? (j(), H(te, { key: 2 }, {
1984
+ default: s(({ copyToClipboard: S }) => [
1985
+ g(J, {
1986
1986
  "data-testid": "action-entity-copy-secret",
1987
- onClick: (M) => U(h, "client_secret", S)
1987
+ onClick: (D) => f(h, "client_secret", S)
1988
1988
  }, {
1989
- default: o(() => [
1990
- L(I(v(a)("credentials.actions.copy_secret")), 1)
1989
+ default: s(() => [
1990
+ L(x(m(n)("credentials.actions.copy_secret")), 1)
1991
1991
  ]),
1992
1992
  _: 2
1993
1993
  }, 1032, ["onClick"])
1994
1994
  ]),
1995
1995
  _: 2
1996
- }, 1024)) : Y("", !0),
1997
- e.config.plugin === "hmac-auth" ? (E(), H(te, { key: 3 }, {
1998
- default: o(({ copyToClipboard: S }) => [
1999
- g(z, {
1996
+ }, 1024)) : G("", !0),
1997
+ e.config.plugin === "hmac-auth" ? (j(), H(te, { key: 3 }, {
1998
+ default: s(({ copyToClipboard: S }) => [
1999
+ g(J, {
2000
2000
  "data-testid": "action-entity-copy-secret",
2001
- onClick: (M) => U(h, "secret", S)
2001
+ onClick: (D) => f(h, "secret", S)
2002
2002
  }, {
2003
- default: o(() => [
2004
- L(I(v(a)("credentials.actions.copy_secret")), 1)
2003
+ default: s(() => [
2004
+ L(x(m(n)("credentials.actions.copy_secret")), 1)
2005
2005
  ]),
2006
2006
  _: 2
2007
2007
  }, 1032, ["onClick"])
2008
2008
  ]),
2009
2009
  _: 2
2010
- }, 1024)) : Y("", !0),
2010
+ }, 1024)) : G("", !0),
2011
2011
  g(te, null, {
2012
- default: o(({ copyToClipboard: S }) => [
2013
- g(z, {
2012
+ default: s(({ copyToClipboard: S }) => [
2013
+ g(J, {
2014
2014
  "data-testid": "action-entity-copy-json",
2015
- onClick: (M) => U(h, void 0, S)
2015
+ onClick: (D) => f(h, void 0, S)
2016
2016
  }, {
2017
- default: o(() => [
2018
- L(I(v(a)("credentials.actions.copy_json")), 1)
2017
+ default: s(() => [
2018
+ L(x(m(n)("credentials.actions.copy_json")), 1)
2019
2019
  ]),
2020
2020
  _: 2
2021
2021
  }, 1032, ["onClick"])
2022
2022
  ]),
2023
2023
  _: 2
2024
2024
  }, 1024),
2025
- g(v(oe), {
2025
+ g(m(ce), {
2026
2026
  "auth-function": () => e.canEdit(h)
2027
2027
  }, {
2028
- default: o(() => [
2029
- g(z, {
2028
+ default: s(() => [
2029
+ g(J, {
2030
2030
  "data-testid": "action-entity-edit",
2031
2031
  "has-divider": "",
2032
- item: Q(h.id)
2032
+ item: ae(h.id)
2033
2033
  }, null, 8, ["item"])
2034
2034
  ]),
2035
2035
  _: 2
2036
2036
  }, 1032, ["auth-function"]),
2037
- g(v(oe), {
2037
+ g(m(ce), {
2038
2038
  "auth-function": () => e.canDelete(h)
2039
2039
  }, {
2040
- default: o(() => [
2041
- g(z, {
2040
+ default: s(() => [
2041
+ g(J, {
2042
2042
  danger: "",
2043
2043
  "data-testid": "action-entity-delete",
2044
2044
  "has-divider": "",
2045
- onClick: (S) => O(h)
2045
+ onClick: (S) => z(h)
2046
2046
  }, {
2047
- default: o(() => [
2048
- L(I(v(a)("credentials.actions.delete")), 1)
2047
+ default: s(() => [
2048
+ L(x(m(n)("credentials.actions.delete")), 1)
2049
2049
  ]),
2050
2050
  _: 2
2051
2051
  }, 1032, ["onClick"])
@@ -2055,25 +2055,25 @@ const Br = {
2055
2055
  ]),
2056
2056
  _: 1
2057
2057
  }, 8, ["cache-identifier", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "table-headers", "use-action-outside"]),
2058
- g(v(Qr), {
2059
- "action-pending": w.value,
2060
- description: v(a)("credentials.delete.description"),
2061
- "entity-type": x.value,
2062
- error: B.value,
2063
- title: v(a)(`credentials.delete.${e.config.plugin}.title`),
2064
- visible: s.value,
2065
- onCancel: q,
2066
- onProceed: _
2058
+ g(m(ea), {
2059
+ "action-pending": k.value,
2060
+ description: m(n)("credentials.delete.description"),
2061
+ "entity-type": K.value,
2062
+ error: q.value,
2063
+ title: m(n)(`credentials.delete.${e.config.plugin}.title`),
2064
+ visible: c.value,
2065
+ onCancel: I,
2066
+ onProceed: O
2067
2067
  }, null, 8, ["action-pending", "description", "entity-type", "error", "title", "visible"])
2068
2068
  ]);
2069
2069
  };
2070
2070
  }
2071
- }), la = (e, r) => {
2071
+ }), sa = (e, r) => {
2072
2072
  const t = e.__vccOpts || e;
2073
2073
  for (const [a, n] of r)
2074
2074
  t[a] = n;
2075
2075
  return t;
2076
- }, wa = /* @__PURE__ */ la(ia, [["__scopeId", "data-v-f6c6d08c"]]);
2076
+ }, ka = /* @__PURE__ */ sa(la, [["__scopeId", "data-v-f6c6d08c"]]);
2077
2077
  export {
2078
- wa as ConsumerCredentialList
2078
+ ka as ConsumerCredentialList
2079
2079
  };