@kong-ui-public/entities-keys 1.1.27 → 1.1.28

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,6 +1,6 @@
1
- import { defineComponent as Z, ref as T, computed as C, watch as de, renderSlot as G, createCommentVNode as X, unref as r, resolveComponent as j, openBlock as u, createElementBlock as K, createVNode as S, withCtx as p, createTextVNode as W, toDisplayString as x, useCssVars as et, useSlots as Ke, createElementVNode as q, createSlots as fe, createBlock as U, resolveDynamicComponent as xe, normalizeProps as tt, guardReactiveProps as at, Fragment as ne, renderList as ie, mergeProps as De, normalizeClass as pe, onBeforeMount as Ie, withModifiers as we, withDirectives as _e, vShow as Ce, onMounted as lt, onUnmounted as ot, inject as it, reactive as Re } from "vue";
2
- import { useRouter as Te } from "vue-router";
3
- import { createI18n as Be, i18nTComponent as Je } from "@kong-ui-public/i18n";
1
+ import { defineComponent as Z, ref as T, computed as C, watch as de, renderSlot as G, createCommentVNode as X, unref as r, resolveComponent as j, openBlock as u, createElementBlock as $, createVNode as S, withCtx as p, createTextVNode as W, toDisplayString as x, useCssVars as et, useSlots as Te, createElementVNode as U, createSlots as fe, createBlock as V, resolveDynamicComponent as we, normalizeProps as tt, guardReactiveProps as at, Fragment as ne, renderList as ie, mergeProps as xe, normalizeClass as pe, onBeforeMount as Ke, withModifiers as Se, withDirectives as _e, vShow as Ce, onMounted as lt, onUnmounted as ot, inject as it, reactive as qe } from "vue";
2
+ import { useRouter as Be } from "vue-router";
3
+ import { createI18n as je, i18nTComponent as Je } from "@kong-ui-public/i18n";
4
4
  import nt from "axios";
5
5
  import { MethodsArray as st } from "@kong/kongponents";
6
6
  const rt = {
@@ -119,14 +119,14 @@ const rt = {
119
119
  keys: rt
120
120
  };
121
121
  function ct() {
122
- const e = Be("en-us", dt);
122
+ const e = je("en-us", dt);
123
123
  return {
124
124
  i18n: e,
125
125
  i18nT: Je(e)
126
126
  // Translation component <i18n-t>
127
127
  };
128
128
  }
129
- const je = {
129
+ const Ee = {
130
130
  useI18n: ct
131
131
  }, ye = {
132
132
  list: {
@@ -155,7 +155,7 @@ const je = {
155
155
  }
156
156
  };
157
157
  var He = /* @__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))(He || {}), ke = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(ke || {}), ue = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(ue || {}), H = /* @__PURE__ */ ((e) => (e.ID = "id", e.IdArray = "id-array", e.Text = "plain-text", e.Date = "date", e.Redacted = "redacted", e.RedactedArray = "redacted-array", e.Json = "json", e.JsonArray = "json-array", e.BadgeTag = "badge-tag", e.BadgeStatus = "badge-status", e.BadgeMethod = "badge-method", e.LinkInternal = "link-internal", e.LinkExternal = "link-external", e))(H || {}), ae = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(ae || {});
158
- function Pe(e = {}) {
158
+ function Me(e = {}) {
159
159
  return {
160
160
  axiosInstance: nt.create({
161
161
  withCredentials: !0,
@@ -301,8 +301,8 @@ const ft = {
301
301
  errors: ht,
302
302
  toggleModal: _t
303
303
  };
304
- function Ee() {
305
- const e = Be("en-us", Ct);
304
+ function Pe() {
305
+ const e = je("en-us", Ct);
306
306
  return {
307
307
  i18n: e,
308
308
  i18nT: Je(e)
@@ -314,27 +314,27 @@ function wt(e, l, t, a = {
314
314
  searchKeys: ["id"]
315
315
  }) {
316
316
  t || (t = "100");
317
- const { axiosInstance: i } = Pe({
317
+ const { axiosInstance: i } = Me({
318
318
  headers: e.requestHeaders
319
- }), { i18n: { t: n } } = Ee(), { debounce: _ } = ut(), M = _(async (m) => {
319
+ }), { i18n: { t: s } } = Pe(), { debounce: _ } = ut(), E = _(async (m) => {
320
320
  await d(m);
321
- }, 200), b = T(!1), o = T(""), g = T(""), h = T([]), R = T(void 0), w = r(l);
321
+ }, 200), b = T(!1), o = T(""), g = T(""), h = T([]), P = T(void 0), w = r(l);
322
322
  let O = `${e.apiBaseUrl}${w}`;
323
323
  e.app === "konnect" ? O = O.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (O = O.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
324
324
  const B = async () => {
325
325
  try {
326
326
  b.value = !0;
327
327
  const { data: m } = await i.get(`${O}?size=${t}`);
328
- m != null && m.next || (R.value = a.fetchedItemsKey in m ? m[a.fetchedItemsKey] : []), h.value = a.fetchedItemsKey in m ? m[a.fetchedItemsKey] : [];
328
+ m != null && m.next || (P.value = a.fetchedItemsKey in m ? m[a.fetchedItemsKey] : []), h.value = a.fetchedItemsKey in m ? m[a.fetchedItemsKey] : [];
329
329
  } catch {
330
- h.value = [], o.value = n("debouncedFilter.errors.fetch");
330
+ h.value = [], o.value = s("debouncedFilter.errors.fetch");
331
331
  } finally {
332
332
  b.value = !1;
333
333
  }
334
334
  }, c = T(""), d = async (m) => {
335
- var k, P;
335
+ var k, M;
336
336
  if (c.value !== m)
337
- if (c.value = m || "", R.value === void 0)
337
+ if (c.value = m || "", P.value === void 0)
338
338
  try {
339
339
  b.value = !0, o.value = "", g.value = "";
340
340
  let f = O + "";
@@ -342,12 +342,12 @@ function wt(e, l, t, a = {
342
342
  const { data: y } = await i.get(`${f}?size=${t}`);
343
343
  a.fetchedItemsKey in y ? h.value = y[a.fetchedItemsKey] : y != null && y.id ? h.value = [y] : h.value = [];
344
344
  } catch (f) {
345
- ((k = f == null ? void 0 : f.response) == null ? void 0 : k.status) === 404 ? g.value = n("debouncedFilter.errors.invalid") : (h.value = [], o.value = n("debouncedFilter.errors.fetch"));
345
+ ((k = f == null ? void 0 : f.response) == null ? void 0 : k.status) === 404 ? g.value = s("debouncedFilter.errors.invalid") : (h.value = [], o.value = s("debouncedFilter.errors.fetch"));
346
346
  } finally {
347
347
  b.value = !1;
348
348
  }
349
349
  else
350
- b.value = !0, g.value = "", m ? (h.value = (P = R.value) == null ? void 0 : P.filter((f) => {
350
+ b.value = !0, g.value = "", m ? (h.value = (M = P.value) == null ? void 0 : M.filter((f) => {
351
351
  var y;
352
352
  let I = !1;
353
353
  for (const z of a.searchKeys) {
@@ -355,16 +355,16 @@ function wt(e, l, t, a = {
355
355
  J != null && J.includes(m.toLowerCase()) && (I = !0);
356
356
  }
357
357
  return I;
358
- }), (!h.value || !h.value.length) && (g.value = n("debouncedFilter.errors.invalid"))) : h.value = R.value, b.value = !1;
358
+ }), (!h.value || !h.value.length) && (g.value = s("debouncedFilter.errors.invalid"))) : h.value = P.value, b.value = !1;
359
359
  };
360
360
  return {
361
361
  loading: b,
362
362
  error: o,
363
363
  validationError: g,
364
364
  results: h,
365
- allRecords: R,
365
+ allRecords: P,
366
366
  loadItems: B,
367
- debouncedQueryChange: M
367
+ debouncedQueryChange: E
368
368
  };
369
369
  }
370
370
  function St(e, l) {
@@ -374,7 +374,7 @@ function St(e, l) {
374
374
  return a.value.search = "", (i) => `${a.value.href}/${i}`;
375
375
  }
376
376
  function It() {
377
- const { i18n: { t: e } } = Ee();
377
+ const { i18n: { t: e } } = Pe();
378
378
  return {
379
379
  getMessageFromError: (l) => {
380
380
  var t, a, i;
@@ -384,18 +384,18 @@ function It() {
384
384
  if (l.response.data.detail)
385
385
  return l.response.data.detail;
386
386
  if ((a = l.response.data.details) != null && a.length)
387
- return l.response.data.details.map((n) => {
387
+ return l.response.data.details.map((s) => {
388
388
  let _ = e("errors.unexpected");
389
- return n.messages && typeof n.messages == "object" && n.messages.length && (_ = n.messages.join(", ")), n.field ? `${n.field} - ${_}` : _;
389
+ return s.messages && typeof s.messages == "object" && s.messages.length && (_ = s.messages.join(", ")), s.field ? `${s.field} - ${_}` : _;
390
390
  }).join("; ");
391
391
  if (l.response.data.message) {
392
- const { message: n } = l.response.data;
393
- return Array.isArray(n) ? (i = n[0]) != null && i.constraints ? Object.values(n[0].constraints)[0] : n[0] : n;
392
+ const { message: s } = l.response.data;
393
+ return Array.isArray(s) ? (i = s[0]) != null && i.constraints ? Object.values(s[0].constraints)[0] : s[0] : s;
394
394
  }
395
395
  if (typeof l.response.data == "string")
396
396
  return l.response.data;
397
397
  if (typeof l.response.data == "object")
398
- return Object.keys(l.response.data).map((n) => `${n} ${l.response.data[n]}`).join(", ");
398
+ return Object.keys(l.response.data).map((s) => `${s} ${l.response.data[s]}`).join(", ");
399
399
  }
400
400
  return l.message || e("errors.unexpected");
401
401
  }
@@ -404,34 +404,34 @@ function It() {
404
404
  function ze(e, l) {
405
405
  const t = T(r(e)), a = T(r(l)), i = C(
406
406
  () => !!(t.value.app === "konnect" || t.value.isExactMatch)
407
- ), n = C(
407
+ ), s = C(
408
408
  () => a.value.startsWith("/") ? new URL(`${window.location.origin}${a.value}`) : new URL(a.value)
409
409
  );
410
410
  return (_) => {
411
- const { page: M, pageSize: b, offset: o, sortColumnKey: g, sortColumnOrder: h, query: R } = _;
411
+ const { page: E, pageSize: b, offset: o, sortColumnKey: g, sortColumnOrder: h, query: P } = _;
412
412
  try {
413
- let w = new URL(n.value.href);
414
- return i.value && R ? (w.search = "", w = new URL(`${w.href}/${R}/`)) : (i.value || new URLSearchParams(R).forEach((O, B) => {
413
+ let w = new URL(s.value.href);
414
+ return i.value && P ? (w.search = "", w = new URL(`${w.href}/${P}/`)) : (i.value || new URLSearchParams(P).forEach((O, B) => {
415
415
  w.searchParams.append(B, O);
416
- }), g && w.searchParams.append("sort_by", g), h === "desc" && w.searchParams.append("sort_desc", "1"), w.searchParams.append("size", String(b))), o && M !== 1 && w.searchParams.append("offset", String(o)), w.href;
416
+ }), g && w.searchParams.append("sort_by", g), h === "desc" && w.searchParams.append("sort_desc", "1"), w.searchParams.append("size", String(b))), o && E !== 1 && w.searchParams.append("offset", String(o)), w.href;
417
417
  } catch (w) {
418
418
  return console.error("RouteList(fetcher)", w), a.value;
419
419
  }
420
420
  };
421
421
  }
422
- function $t(e, l, t = "data") {
423
- const a = r(l), { axiosInstance: i } = Pe({
422
+ function Kt(e, l, t = "data") {
423
+ const a = r(l), { axiosInstance: i } = Me({
424
424
  headers: e.requestHeaders
425
- }), n = ze(e, a), _ = T({
425
+ }), s = ze(e, a), _ = T({
426
426
  status: ue.Idle
427
427
  });
428
- return { fetcher: async (M) => {
428
+ return { fetcher: async (E) => {
429
429
  try {
430
430
  _.value = { status: ue.Loading };
431
- const b = n(M), { data: o } = await i.get(b), g = t && t.replace(/[^\w-_]/gi, "");
431
+ const b = s(E), { data: o } = await i.get(b), g = t && t.replace(/[^\w-_]/gi, "");
432
432
  let h;
433
433
  o[g] && Array.isArray(o[g]) ? h = o[g] : h = Object.keys(o).length ? [o] : [];
434
- const R = {
434
+ const P = {
435
435
  data: h,
436
436
  total: h.length,
437
437
  ...o.offset ? {
@@ -442,14 +442,14 @@ function $t(e, l, t = "data") {
442
442
  };
443
443
  return _.value = {
444
444
  status: ue.Idle,
445
- response: R
446
- }, R;
445
+ response: P
446
+ }, P;
447
447
  } catch (b) {
448
448
  const o = {
449
449
  data: [],
450
450
  total: 0
451
451
  };
452
- return M.query && b.response.status === 404 ? (_.value = {
452
+ return E.query && b.response.status === 404 ? (_.value = {
453
453
  status: ue.NoResults,
454
454
  response: o,
455
455
  error: b
@@ -461,25 +461,25 @@ function $t(e, l, t = "data") {
461
461
  }
462
462
  }, fetcherState: _ };
463
463
  }
464
- function Kt() {
464
+ function $t() {
465
465
  return {
466
466
  convertKeyToTitle: (e, l = "_") => e ? e.split(l).map((t) => t.toLowerCase() === "id" ? t.toUpperCase() : t.charAt(0).toUpperCase() + t.substring(1)).join(" ") : ""
467
467
  };
468
468
  }
469
- const We = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, Ae = (e) => {
469
+ const We = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, Ue = (e) => {
470
470
  if (typeof e != "string")
471
471
  throw new TypeError("Invalid argument expected string");
472
472
  const l = e.match(We);
473
473
  if (!l)
474
474
  throw new Error(`Invalid argument not valid semver ('${e}' received)`);
475
475
  return l.shift(), l;
476
- }, qe = (e) => e === "*" || e === "x" || e === "X", Fe = (e) => {
476
+ }, Fe = (e) => e === "*" || e === "x" || e === "X", Re = (e) => {
477
477
  const l = parseInt(e, 10);
478
478
  return isNaN(l) ? e : l;
479
479
  }, xt = (e, l) => typeof e != typeof l ? [String(e), String(l)] : [e, l], Tt = (e, l) => {
480
- if (qe(e) || qe(l))
480
+ if (Fe(e) || Fe(l))
481
481
  return 0;
482
- const [t, a] = xt(Fe(e), Fe(l));
482
+ const [t, a] = xt(Re(e), Re(l));
483
483
  return t > a ? 1 : t < a ? -1 : 0;
484
484
  }, Ve = (e, l) => {
485
485
  for (let t = 0; t < Math.max(e.length, l.length); t++) {
@@ -489,9 +489,9 @@ const We = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
489
489
  }
490
490
  return 0;
491
491
  }, Bt = (e, l) => {
492
- const t = Ae(e), a = Ae(l), i = t.pop(), n = a.pop(), _ = Ve(t, a);
493
- return _ !== 0 ? _ : i && n ? Ve(i.split("."), n.split(".")) : i || n ? i ? -1 : 1 : 0;
494
- }, Ue = (e, l, t) => {
492
+ const t = Ue(e), a = Ue(l), i = t.pop(), s = a.pop(), _ = Ve(t, a);
493
+ return _ !== 0 ? _ : i && s ? Ve(i.split("."), s.split(".")) : i || s ? i ? -1 : 1 : 0;
494
+ }, Oe = (e, l, t) => {
495
495
  jt(t);
496
496
  const a = Bt(e, l);
497
497
  return Ge[t].includes(a);
@@ -502,51 +502,55 @@ const We = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
502
502
  "<=": [-1, 0],
503
503
  "<": [-1],
504
504
  "!=": [-1, 1]
505
- }, Oe = Object.keys(Ge), jt = (e) => {
505
+ }, Le = Object.keys(Ge), jt = (e) => {
506
506
  if (typeof e != "string")
507
507
  throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
508
- if (Oe.indexOf(e) === -1)
509
- throw new Error(`Invalid operator, expected one of ${Oe.join("|")}`);
510
- }, Pt = (e) => typeof e == "string" && /^[v\d]/.test(e) && We.test(e);
511
- function Et(e) {
508
+ if (Le.indexOf(e) === -1)
509
+ throw new Error(`Invalid operator, expected one of ${Le.join("|")}`);
510
+ }, Et = (e) => typeof e == "string" && /^[v\d]/.test(e) && We.test(e);
511
+ function Mt(e) {
512
512
  const { gatewayInfo: l, supportedRange: t } = e;
513
513
  if (!l)
514
514
  return !0;
515
515
  const { edition: a, version: i } = l;
516
- if (!Pt(i))
516
+ if (!Et(i))
517
517
  return console.error("Invalid version"), !1;
518
- const n = t[a];
519
- if (!n)
518
+ const s = t[a];
519
+ if (!s)
520
520
  return !1;
521
- const [_, M] = n;
522
- return !(_ && Ue(i, _, "<") || M && Ue(i, M, ">"));
521
+ const [_, E] = s;
522
+ return !(_ && Oe(i, _, "<") || E && Oe(i, E, ">"));
523
523
  }
524
524
  const ee = {
525
- useAxios: Pe,
525
+ useAxios: Me,
526
526
  useDebouncedFilter: wt,
527
527
  useDeleteUrlBuilder: St,
528
528
  useErrors: It,
529
- useFetcher: $t,
529
+ useFetcher: Kt,
530
530
  useFetchUrlBuilder: ze,
531
- useStringHelpers: Kt,
532
- useI18n: Ee,
533
- useGatewayFeatureSupported: Et
534
- }, Mt = {
531
+ useStringHelpers: $t,
532
+ useI18n: Pe,
533
+ useGatewayFeatureSupported: Mt
534
+ }, Pt = {
535
535
  fail: "Failed to copy id to clipboard",
536
536
  success: {
537
537
  prefix: "Successfully",
538
538
  content: " copied to clipboard"
539
539
  }
540
- }, Rt = "Copy to clipboard", At = {
541
- message: Mt,
542
- iconTitle: Rt
543
- }, qt = "kong-ui-copy-uuid-notify", Ft = { class: "kong-ui-copy-uuid" }, Vt = ["title"], Ut = ["onClick"], Le = 15, Ot = /* @__PURE__ */ Z({
540
+ }, At = "Copy to clipboard", qt = {
541
+ message: Pt,
542
+ iconTitle: At
543
+ }, Ut = "kong-ui-copy-uuid-notify", Ft = { class: "kong-ui-copy-uuid" }, Rt = ["onClick"], Ne = 15, Vt = /* @__PURE__ */ Z({
544
544
  __name: "CopyUuid",
545
545
  props: {
546
546
  uuid: {
547
547
  type: String,
548
548
  required: !0
549
549
  },
550
+ idTooltip: {
551
+ type: String,
552
+ default: ""
553
+ },
550
554
  truncated: {
551
555
  type: Boolean,
552
556
  default: !0
@@ -580,57 +584,62 @@ const ee = {
580
584
  },
581
585
  emits: ["success", "error"],
582
586
  setup(e, { emit: l }) {
583
- const t = e, { t: a } = Be("en-us", At), i = t.notify || it(qt, () => {
584
- }), n = C(() => !!(t.tooltip && t.successTooltip)), _ = T(t.tooltip), M = C(() => t.tooltip ? {
585
- label: _.value,
587
+ const t = e, { t: a } = je("en-us", qt), i = t.notify || it(Ut, () => {
588
+ }), s = C(() => t.idTooltip ? {
589
+ label: t.idTooltip,
590
+ positionFixed: !0,
591
+ placement: "bottomStart"
592
+ } : {
593
+ title: t.uuid
594
+ }), _ = C(() => !!(t.tooltip && t.successTooltip)), E = T(t.tooltip), b = C(() => t.tooltip ? {
595
+ label: E.value,
586
596
  positionFixed: !0,
587
597
  maxWidth: "500px",
588
598
  placement: "bottomStart"
589
- } : {}), b = C(() => t.format === "redacted" ? "*****" : t.format === "deleted" ? `*${t.uuid.substring(0, 5)}` : t.uuid), o = (h) => {
590
- _.value = h, setTimeout(() => {
591
- _.value = t.tooltip;
599
+ } : {}), o = C(() => t.format === "redacted" ? "*****" : t.format === "deleted" ? `*${t.uuid.substring(0, 5)}` : t.uuid), g = (P) => {
600
+ E.value = P, setTimeout(() => {
601
+ E.value = t.tooltip;
592
602
  }, 1800);
593
- }, g = (h) => {
594
- if (!h(t.uuid)) {
603
+ }, h = (P) => {
604
+ if (!P(t.uuid)) {
595
605
  typeof i == "function" && i({
596
606
  type: "error",
597
607
  message: a("message.fail")
598
- }), n.value ? o(a("message.fail")) : l("error", t.uuid);
608
+ }), _.value ? g(a("message.fail")) : l("error", t.uuid);
599
609
  return;
600
610
  }
601
- const R = t.uuid.length > Le, w = t.format === "hidden" || t.format === "redacted" ? a("message.success.prefix") : `"${t.uuid.substring(0, Le) + (R ? "..." : "")}"`;
611
+ const w = t.uuid.length > Ne, O = t.format === "hidden" || t.format === "redacted" ? a("message.success.prefix") : `"${t.uuid.substring(0, Ne) + (w ? "..." : "")}"`;
602
612
  typeof i == "function" && i({
603
613
  type: "success",
604
- message: `${w}${a("message.success.content")}`
605
- }), n.value ? o(t.successTooltip) : l("success", t.uuid);
614
+ message: `${O}${a("message.success.content")}`
615
+ }), _.value ? g(t.successTooltip) : l("success", t.uuid);
606
616
  };
607
- return (h, R) => {
608
- const w = j("KIcon"), O = j("KClipboardProvider");
609
- return u(), K("div", Ft, [
610
- e.format !== "hidden" ? (u(), K("div", {
611
- key: 0,
612
- "data-testid": "copy-id",
613
- title: e.uuid
614
- }, [
615
- q("div", {
616
- class: pe([
617
- "uuid-container",
618
- e.truncated ? "truncated-uuid" : null,
619
- e.useMono ? "mono" : null
620
- ])
621
- }, x(b.value), 3)
622
- ], 8, Vt)) : X("", !0),
623
- (u(), U(xe(e.tooltip ? "KTooltip" : "div"), De(M.value, { class: "uuid-icon-wrapper" }), {
617
+ return (P, w) => {
618
+ const O = j("KIcon"), B = j("KClipboardProvider");
619
+ return u(), $("div", Ft, [
620
+ e.format !== "hidden" ? (u(), V(we(e.idTooltip ? "KTooltip" : "div"), xe({ key: 0 }, s.value, { "data-testid": "copy-id" }), {
621
+ default: p(() => [
622
+ U("div", {
623
+ class: pe([
624
+ "uuid-container",
625
+ e.truncated ? "truncated-uuid" : null,
626
+ e.useMono ? "mono" : null
627
+ ])
628
+ }, x(o.value), 3)
629
+ ]),
630
+ _: 1
631
+ }, 16)) : X("", !0),
632
+ (u(), V(we(e.tooltip ? "KTooltip" : "div"), xe(b.value, { class: "uuid-icon-wrapper" }), {
624
633
  default: p(() => [
625
- S(O, null, {
626
- default: p(({ copyToClipboard: B }) => [
627
- q("span", {
634
+ S(B, null, {
635
+ default: p(({ copyToClipboard: c }) => [
636
+ U("span", {
628
637
  "data-testid": "copy-to-clipboard",
629
638
  role: "button",
630
639
  tabindex: "0",
631
- onClick: we((c) => g(B), ["stop"])
640
+ onClick: Se((d) => h(c), ["stop"])
632
641
  }, [
633
- S(w, {
642
+ S(O, {
634
643
  class: "uuid-icon",
635
644
  color: e.iconColor,
636
645
  "hide-title": !!e.tooltip || void 0,
@@ -638,7 +647,7 @@ const ee = {
638
647
  size: "16",
639
648
  title: r(a)("iconTitle")
640
649
  }, null, 8, ["color", "hide-title", "title"])
641
- ], 8, Ut)
650
+ ], 8, Rt)
642
651
  ]),
643
652
  _: 1
644
653
  })
@@ -648,15 +657,15 @@ const ee = {
648
657
  ]);
649
658
  };
650
659
  }
651
- }), Lt = (e, l) => {
660
+ }), Ot = (e, l) => {
652
661
  const t = e.__vccOpts || e;
653
662
  for (const [a, i] of l)
654
663
  t[a] = i;
655
664
  return t;
656
- }, Qe = /* @__PURE__ */ Lt(Ot, [["__scopeId", "data-v-e4ea1359"]]), Nt = {
665
+ }, Qe = /* @__PURE__ */ Ot(Vt, [["__scopeId", "data-v-bfdaf6f7"]]), Lt = {
657
666
  key: 0,
658
667
  class: "config-card-fieldset-title"
659
- }, Dt = /* @__PURE__ */ Z({
668
+ }, Nt = /* @__PURE__ */ Z({
660
669
  __name: "JsonCardItem",
661
670
  props: {
662
671
  item: {
@@ -673,21 +682,21 @@ const ee = {
673
682
  }
674
683
  },
675
684
  setup(e) {
676
- const l = e, { i18n: { t } } = ee.useI18n(), { convertKeyToTitle: a } = ee.useStringHelpers(), i = C(() => l.item.key ?? "json-array-item"), n = C(() => l.item.value ?? l.item), _ = C(() => {
677
- const b = JSON.parse(JSON.stringify(n.value));
685
+ const l = e, { i18n: { t } } = ee.useI18n(), { convertKeyToTitle: a } = ee.useStringHelpers(), i = C(() => l.item.key ?? "json-array-item"), s = C(() => l.item.value ?? l.item), _ = C(() => {
686
+ const b = JSON.parse(JSON.stringify(s.value));
678
687
  return l.isArrayItem && delete b.name, b;
679
- }), M = C(() => {
688
+ }), E = C(() => {
680
689
  var b;
681
- return l.isArrayItem ? (b = n.value) != null && b.name ? a(n.value.name, "_") : t("baseConfigCard.general.entryTitle", { index: l.index }) : "";
690
+ return l.isArrayItem ? (b = s.value) != null && b.name ? a(s.value.name, "_") : t("baseConfigCard.general.entryTitle", { index: l.index }) : "";
682
691
  });
683
- return (b, o) => (u(), U(xe(e.isArrayItem ? "fieldset" : "div"), {
692
+ return (b, o) => (u(), V(we(e.isArrayItem ? "fieldset" : "div"), {
684
693
  class: pe(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
685
694
  }, {
686
695
  default: p(() => [
687
- e.isArrayItem ? (u(), K("legend", Nt, [
688
- q("b", null, x(M.value), 1)
696
+ e.isArrayItem ? (u(), $("legend", Lt, [
697
+ U("b", null, x(E.value), 1)
689
698
  ])) : X("", !0),
690
- (u(!0), K(ne, null, ie(Object.keys(_.value), (g, h) => (u(), U(Se, {
699
+ (u(!0), $(ne, null, ie(Object.keys(_.value), (g, h) => (u(), V(Ie, {
691
700
  key: `${i.value}-property-${h}`,
692
701
  item: {
693
702
  key: g,
@@ -704,7 +713,7 @@ const ee = {
704
713
  for (const [a, i] of l)
705
714
  t[a] = i;
706
715
  return t;
707
- }, Xe = /* @__PURE__ */ se(Dt, [["__scopeId", "data-v-68ca83ec"]]), Jt = /* @__PURE__ */ Z({
716
+ }, Xe = /* @__PURE__ */ se(Nt, [["__scopeId", "data-v-68ca83ec"]]), Dt = /* @__PURE__ */ Z({
708
717
  __name: "InternalLinkItem",
709
718
  props: {
710
719
  item: {
@@ -717,11 +726,11 @@ const ee = {
717
726
  const { i18n: { t: l } } = ee.useI18n();
718
727
  return (t, a) => {
719
728
  const i = j("KButton");
720
- return u(), K("div", null, [
729
+ return u(), $("div", null, [
721
730
  S(i, {
722
731
  appearance: "btn-link",
723
732
  class: "navigation-button",
724
- onClick: a[0] || (a[0] = (n) => t.$emit("navigation-click", e.item))
733
+ onClick: a[0] || (a[0] = (s) => t.$emit("navigation-click", e.item))
725
734
  }, {
726
735
  default: p(() => [
727
736
  W(x(e.item.value || r(l)("baseConfigCard.commonFields.link")), 1)
@@ -731,7 +740,7 @@ const ee = {
731
740
  ]);
732
741
  };
733
742
  }
734
- }), Ye = /* @__PURE__ */ se(Jt, [["__scopeId", "data-v-7410504d"]]), Ht = /* @__PURE__ */ Z({
743
+ }), Ye = /* @__PURE__ */ se(Dt, [["__scopeId", "data-v-7410504d"]]), Jt = /* @__PURE__ */ Z({
735
744
  __name: "StatusBadge",
736
745
  props: {
737
746
  status: {
@@ -743,7 +752,7 @@ const ee = {
743
752
  const { i18n: { t: l } } = ee.useI18n();
744
753
  return (t, a) => {
745
754
  const i = j("KBadge");
746
- return u(), U(i, {
755
+ return u(), V(i, {
747
756
  appearance: e.status ? "success" : "neutral"
748
757
  }, {
749
758
  default: p(() => [
@@ -753,11 +762,11 @@ const ee = {
753
762
  }, 8, ["appearance"]);
754
763
  };
755
764
  }
756
- }), zt = "#0044f4", Wt = "#e0e4ea", Gt = "#3a3f51", Qt = "1px", Xt = { class: "config-card-details-row" }, Yt = ["data-testid"], Zt = ["data-testid"], ea = ["data-testid"], ta = ["data-testid"], aa = { key: 1 }, la = ["data-testid"], oa = ["data-testid"], ia = ["data-testid"], na = ["data-testid"], sa = ["title"], ra = {
765
+ }), Ht = "#0044f4", zt = "#e0e4ea", Wt = "#3a3f51", Gt = "1px", Qt = { class: "config-card-details-row" }, Xt = ["data-testid"], Yt = ["data-testid"], Zt = ["data-testid"], ea = ["data-testid"], ta = { key: 1 }, aa = ["data-testid"], la = ["data-testid"], oa = ["data-testid"], ia = ["data-testid"], na = ["title"], sa = {
757
766
  name: "ConfigCardItem",
758
- components: { CopyUuid: Qe, JsonCardItem: Xe, StatusBadge: Ht, InternalLinkItem: Ye }
759
- }, da = /* @__PURE__ */ Z({
760
- ...ra,
767
+ components: { CopyUuid: Qe, JsonCardItem: Xe, StatusBadge: Jt, InternalLinkItem: Ye }
768
+ }, ra = /* @__PURE__ */ Z({
769
+ ...sa,
761
770
  props: {
762
771
  item: {
763
772
  type: Object,
@@ -778,12 +787,12 @@ const ee = {
778
787
  setup(e, { emit: l }) {
779
788
  const t = e;
780
789
  et((h) => ({
781
- "2c6ac268": o.value ? "none" : `solid ${r(Qt)} ${r(Wt)}`,
790
+ "2c6ac268": o.value ? "none" : `solid ${r(Gt)} ${r(zt)}`,
782
791
  c7a65802: b.value && _.value ? "block" : "flex",
783
792
  "778426fe": b.value && _.value ? "100%" : t.slim ? "50%" : "25%",
784
793
  "777f9b48": b.value && _.value ? "100%" : t.slim ? "50%" : "75%"
785
794
  }));
786
- const a = Ke(), { i18n: { t: i, formatUnixTimeStamp: n } } = ee.useI18n(), _ = C(() => t.item.value !== void 0 && t.item.value !== null && t.item.value !== ""), M = C(() => !!(t.item.tooltip || a["label-tooltip"])), b = C(() => t.item.type === H.Json || t.item.type === H.JsonArray), o = C(() => t.item.type === H.JsonArray), g = C(() => {
795
+ const a = Te(), { i18n: { t: i, formatUnixTimeStamp: s } } = ee.useI18n(), _ = C(() => t.item.value !== void 0 && t.item.value !== null && t.item.value !== ""), E = C(() => !!(t.item.tooltip || a["label-tooltip"])), b = C(() => t.item.type === H.Json || t.item.type === H.JsonArray), o = C(() => t.item.type === H.JsonArray), g = C(() => {
787
796
  switch (t.item.type) {
788
797
  case H.ID:
789
798
  return {
@@ -843,7 +852,7 @@ const ee = {
843
852
  attrs: {
844
853
  "data-testid": `${t.item.key}-date`
845
854
  },
846
- text: n(t.item.value)
855
+ text: s(t.item.value)
847
856
  };
848
857
  case H.BadgeStatus:
849
858
  return {
@@ -910,10 +919,10 @@ const ee = {
910
919
  };
911
920
  }
912
921
  });
913
- return (h, R) => {
922
+ return (h, P) => {
914
923
  const w = j("KLabel"), O = j("KBadge"), B = j("KMethodBadge");
915
- return u(), K("div", Xt, [
916
- q("div", {
924
+ return u(), $("div", Qt, [
925
+ U("div", {
917
926
  class: "config-card-details-label",
918
927
  "data-testid": `${e.item.key}-label`
919
928
  }, [
@@ -924,37 +933,37 @@ const ee = {
924
933
  ]),
925
934
  _: 2
926
935
  }, [
927
- M.value ? {
936
+ E.value ? {
928
937
  name: "tooltip",
929
938
  fn: p(() => [
930
- q("div", {
939
+ U("div", {
931
940
  "data-testid": `${e.item.key}-label-tooltip`
932
941
  }, [
933
942
  G(h.$slots, "label-tooltip", {}, () => [
934
943
  W(x(e.item.tooltip), 1)
935
944
  ], !0)
936
- ], 8, Zt)
945
+ ], 8, Yt)
937
946
  ]),
938
947
  key: "0"
939
948
  } : void 0
940
949
  ]), 1024)
941
950
  ], !0)
942
- ], 8, Yt),
943
- q("div", {
951
+ ], 8, Xt),
952
+ U("div", {
944
953
  class: "config-card-details-value",
945
954
  "data-testid": `${e.item.key}-property-value`
946
955
  }, [
947
956
  G(h.$slots, e.item.key, {
948
957
  rowValue: e.item.value
949
958
  }, () => [
950
- _.value ? (u(), K("div", aa, [
951
- (u(), U(xe(g.value.tag), tt(at(g.value.attrs)), {
959
+ _.value ? (u(), $("div", ta, [
960
+ (u(), V(we(g.value.tag), tt(at(g.value.attrs)), {
952
961
  default: p(() => [
953
- g.value.additionalComponent === "KBadge" ? (u(), K("div", {
962
+ g.value.additionalComponent === "KBadge" ? (u(), $("div", {
954
963
  key: 0,
955
964
  "data-testid": `${e.item.key}-badge-tags`
956
965
  }, [
957
- (u(!0), K(ne, null, ie(e.item.value, (c, d) => (u(), U(O, {
966
+ (u(!0), $(ne, null, ie(e.item.value, (c, d) => (u(), V(O, {
958
967
  key: `${e.item.key}-badge-tag-${d}`,
959
968
  class: "config-badge",
960
969
  "data-testid": `${e.item.key}-badge-tag-${d}`,
@@ -965,23 +974,23 @@ const ee = {
965
974
  ]),
966
975
  _: 2
967
976
  }, 1032, ["data-testid", "truncation-tooltip"]))), 128))
968
- ], 8, la)) : X("", !0),
969
- g.value.additionalComponent === "CopyUuid" ? (u(), K("div", {
977
+ ], 8, aa)) : X("", !0),
978
+ g.value.additionalComponent === "CopyUuid" ? (u(), $("div", {
970
979
  key: 1,
971
980
  class: "copy-uuid-array",
972
981
  "data-testid": `${e.item.key}-copy-uuid-array`
973
982
  }, [
974
- (u(!0), K(ne, null, ie(e.item.value, (c, d) => (u(), U(r(Qe), De(g.value.childAttrs, {
983
+ (u(!0), $(ne, null, ie(e.item.value, (c, d) => (u(), V(r(Qe), xe(g.value.childAttrs, {
975
984
  key: `${e.item.key}-copy-uuid-${d}`,
976
985
  "data-testid": `${e.item.key}-copy-uuid-${d}`,
977
986
  uuid: c
978
987
  }), null, 16, ["data-testid", "uuid"]))), 128))
979
- ], 8, oa)) : g.value.additionalComponent === "KMethodBadge" ? (u(), K("div", {
988
+ ], 8, la)) : g.value.additionalComponent === "KMethodBadge" ? (u(), $("div", {
980
989
  key: 2,
981
990
  class: "method-badge-array",
982
991
  "data-testid": `${e.item.key}-badge-methods`
983
992
  }, [
984
- (u(!0), K(ne, null, ie(e.item.value, (c, d) => (u(), U(B, {
993
+ (u(!0), $(ne, null, ie(e.item.value, (c, d) => (u(), V(B, {
985
994
  key: `${e.item.key}-badge-method-${d}`,
986
995
  class: "config-badge",
987
996
  "data-testid": `${e.item.key}-badge-method-${d}`,
@@ -994,38 +1003,38 @@ const ee = {
994
1003
  ]),
995
1004
  _: 2
996
1005
  }, 1032, ["data-testid", "label", "method"]))), 128))
997
- ], 8, ia)) : X("", !0),
998
- g.value.additionalComponent === "JsonCardItem" ? (u(), K("div", {
1006
+ ], 8, oa)) : X("", !0),
1007
+ g.value.additionalComponent === "JsonCardItem" ? (u(), $("div", {
999
1008
  key: 3,
1000
1009
  "data-testid": `${t.item.key}-json-array-content`
1001
1010
  }, [
1002
- (u(!0), K(ne, null, ie(e.item.value, (c, d) => (u(), U(Xe, {
1011
+ (u(!0), $(ne, null, ie(e.item.value, (c, d) => (u(), V(Xe, {
1003
1012
  key: `json-array-item-${d}`,
1004
1013
  index: d,
1005
1014
  "is-array-item": "",
1006
1015
  item: c
1007
1016
  }, null, 8, ["index", "item"]))), 128))
1008
- ], 8, na)) : (u(), K("span", {
1017
+ ], 8, ia)) : (u(), $("span", {
1009
1018
  key: 4,
1010
1019
  class: pe(["attrs-data-text", { truncated: e.truncated }]),
1011
1020
  title: e.truncated ? e.item.value : void 0
1012
- }, x(g.value.text), 11, sa))
1021
+ }, x(g.value.text), 11, na))
1013
1022
  ]),
1014
1023
  _: 1
1015
1024
  }, 16))
1016
- ])) : (u(), K("div", {
1025
+ ])) : (u(), $("div", {
1017
1026
  key: 0,
1018
1027
  "data-testid": `${e.item.key}-no-value`
1019
- }, " – ", 8, ta))
1028
+ }, " – ", 8, ea))
1020
1029
  ], !0)
1021
- ], 8, ea)
1030
+ ], 8, Zt)
1022
1031
  ]);
1023
1032
  };
1024
1033
  }
1025
- }), Se = /* @__PURE__ */ se(da, [["__scopeId", "data-v-a3c5ab01"]]), ca = { "data-testid": "config-card-title" }, ua = { class: "config-card-actions" }, pa = { class: "config-card-details-section" }, ya = ["data-testid"], fa = {
1034
+ }), Ie = /* @__PURE__ */ se(ra, [["__scopeId", "data-v-a3c5ab01"]]), da = { "data-testid": "config-card-title" }, ca = { class: "config-card-actions" }, ua = { class: "config-card-details-section" }, pa = ["data-testid"], ya = {
1026
1035
  key: 0,
1027
1036
  class: "config-card-prop-section-title"
1028
- }, ma = /* @__PURE__ */ Z({
1037
+ }, fa = /* @__PURE__ */ Z({
1029
1038
  __name: "EntityBaseConfigCard",
1030
1039
  props: {
1031
1040
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -1084,12 +1093,12 @@ const ee = {
1084
1093
  emits: ["loading", "fetch:success", "fetch:error", "copy:success", "copy:error"],
1085
1094
  setup(e, { emit: l }) {
1086
1095
  var t;
1087
- const a = e, i = Ke(), { i18n: { t: n } } = ee.useI18n(), { getMessageFromError: _ } = ee.useErrors(), { convertKeyToTitle: M } = ee.useStringHelpers(), { axiosInstance: b } = ee.useAxios({
1096
+ const a = e, i = Te(), { i18n: { t: s } } = ee.useI18n(), { getMessageFromError: _ } = ee.useErrors(), { convertKeyToTitle: E } = ee.useStringHelpers(), { axiosInstance: b } = ee.useAxios({
1088
1097
  headers: (t = a.config) == null ? void 0 : t.requestHeaders
1089
1098
  }), o = {
1090
1099
  id: {
1091
1100
  type: H.ID,
1092
- label: n("baseConfigCard.commonFields.id_label"),
1101
+ label: s("baseConfigCard.commonFields.id_label"),
1093
1102
  order: 0,
1094
1103
  section: ae.Basic
1095
1104
  },
@@ -1104,13 +1113,13 @@ const ee = {
1104
1113
  },
1105
1114
  updated_at: {
1106
1115
  type: H.Date,
1107
- label: n("baseConfigCard.commonFields.updated_at_label"),
1116
+ label: s("baseConfigCard.commonFields.updated_at_label"),
1108
1117
  order: 3,
1109
1118
  section: ae.Basic
1110
1119
  },
1111
1120
  created_at: {
1112
1121
  type: H.Date,
1113
- label: n("baseConfigCard.commonFields.created_at_label"),
1122
+ label: s("baseConfigCard.commonFields.created_at_label"),
1114
1123
  order: 4,
1115
1124
  section: ae.Basic
1116
1125
  },
@@ -1120,56 +1129,56 @@ const ee = {
1120
1129
  // the last property displayed
1121
1130
  section: ae.Basic
1122
1131
  }
1123
- }, g = T(!1), h = T(!1), R = T(""), w = T(), O = C(() => {
1132
+ }, g = T(!1), h = T(!1), P = T(""), w = T(), O = C(() => {
1124
1133
  var f, y, I;
1125
1134
  if (!w.value)
1126
1135
  return [];
1127
1136
  const z = [], J = Object.keys(w.value).length;
1128
- for (const $ in w.value) {
1129
- const E = (y = (f = a.configSchema) == null ? void 0 : f[$]) == null ? void 0 : y.order, A = (I = o[$]) == null ? void 0 : I.order;
1137
+ for (const K in w.value) {
1138
+ const A = (y = (f = a.configSchema) == null ? void 0 : f[K]) == null ? void 0 : y.order, q = (I = o[K]) == null ? void 0 : I.order;
1130
1139
  let F = J;
1131
- (A || A === 0) && (F = A === -1 ? J + 1 : A), E && (F = E === -1 ? J + 1 : E), z.push([$, F]);
1140
+ (q || q === 0) && (F = q === -1 ? J + 1 : q), A && (F = A === -1 ? J + 1 : A), z.push([K, F]);
1132
1141
  }
1133
- return z.sort(function($, E) {
1134
- return $[1] - E[1];
1135
- }), z.map(($) => {
1136
- var E, A;
1137
- const F = $[0], te = (E = w.value) == null ? void 0 : E[F], re = ((A = a.configSchema) == null ? void 0 : A[F]) || {}, le = o[F];
1142
+ return z.sort(function(K, A) {
1143
+ return K[1] - A[1];
1144
+ }), z.map((K) => {
1145
+ var A, q;
1146
+ const F = K[0], te = (A = w.value) == null ? void 0 : A[F], re = ((q = a.configSchema) == null ? void 0 : q[F]) || {}, le = o[F];
1138
1147
  return {
1139
1148
  key: F,
1140
1149
  value: te,
1141
1150
  hidden: re.hidden || !1,
1142
1151
  type: re.type ?? ((le == null ? void 0 : le.type) || H.Text),
1143
- label: re.label ?? ((le == null ? void 0 : le.label) || M(F)),
1152
+ label: re.label ?? ((le == null ? void 0 : le.label) || E(F)),
1144
1153
  tooltip: re.tooltip ?? ((le == null ? void 0 : le.tooltip) || void 0),
1145
1154
  section: re.section ?? ((le == null ? void 0 : le.section) || ae.Advanced)
1146
1155
  };
1147
- }).filter(($) => !$.hidden && $.key !== a.pluginConfigKey);
1156
+ }).filter((K) => !K.hidden && K.key !== a.pluginConfigKey);
1148
1157
  }), B = C(() => {
1149
1158
  var f, y;
1150
1159
  if (!w.value || !a.pluginConfigKey)
1151
1160
  return [];
1152
1161
  const I = w.value[a.pluginConfigKey] || {}, z = Object.keys(I).length, J = [];
1153
- for (const $ in I) {
1154
- const E = (y = (f = a.pluginConfigSchema) == null ? void 0 : f[$]) == null ? void 0 : y.order, A = I[$];
1155
- let F = A != null && A !== "" ? z - 1 : z;
1156
- E && (F = E === -1 ? z + 1 : E), J.push([$, F]);
1162
+ for (const K in I) {
1163
+ const A = (y = (f = a.pluginConfigSchema) == null ? void 0 : f[K]) == null ? void 0 : y.order, q = I[K];
1164
+ let F = q != null && q !== "" ? z - 1 : z;
1165
+ A && (F = A === -1 ? z + 1 : A), J.push([K, F]);
1157
1166
  }
1158
- return J.sort(function($, E) {
1159
- return $[1] - E[1];
1160
- }), J.map(($) => {
1161
- var E;
1162
- const A = $[0], F = I[A], te = ((E = a.pluginConfigSchema) == null ? void 0 : E[A]) || {};
1167
+ return J.sort(function(K, A) {
1168
+ return K[1] - A[1];
1169
+ }), J.map((K) => {
1170
+ var A;
1171
+ const q = K[0], F = I[q], te = ((A = a.pluginConfigSchema) == null ? void 0 : A[q]) || {};
1163
1172
  return {
1164
- key: A,
1173
+ key: q,
1165
1174
  value: F,
1166
1175
  hidden: te.hidden || !1,
1167
1176
  type: te.type ?? H.Text,
1168
- label: te.label ?? M(A),
1177
+ label: te.label ?? E(q),
1169
1178
  tooltip: te.tooltip ?? void 0,
1170
1179
  section: ae.Plugin
1171
1180
  };
1172
- }).filter(($) => !$.hidden);
1181
+ }).filter((K) => !K.hidden);
1173
1182
  }), c = C(() => {
1174
1183
  var f, y, I, z;
1175
1184
  return {
@@ -1184,12 +1193,12 @@ const ee = {
1184
1193
  var f, y;
1185
1194
  let I = `${a.config.apiBaseUrl}${a.fetchUrl}`;
1186
1195
  return a.config.app === "konnect" ? I = I.replace(/{controlPlaneId}/gi, ((f = a.config) == null ? void 0 : f.controlPlaneId) || "") : a.config.app === "kongManager" && (I = I.replace(/\/{workspace}/gi, (y = a.config) != null && y.workspace ? `/${a.config.workspace}` : "")), I = I.replace(/{id}/gi, a.config.entityId), I;
1187
- }), P = (f) => {
1196
+ }), M = (f) => {
1188
1197
  w.value && f(JSON.stringify(w.value)) ? l("copy:success", w.value) : l("copy:error");
1189
1198
  };
1190
1199
  return de(g, (f) => {
1191
1200
  l("loading", f);
1192
- }, { immediate: !0 }), Ie(async () => {
1201
+ }, { immediate: !0 }), Ke(async () => {
1193
1202
  h.value = !1, g.value = !0;
1194
1203
  try {
1195
1204
  const { data: f } = await b.get(k.value);
@@ -1197,7 +1206,7 @@ const ee = {
1197
1206
  if (typeof f[a.dataKey] < "u")
1198
1207
  w.value = { ...f[a.dataKey] };
1199
1208
  else
1200
- throw new Error(n("errors.dataKeyUndefined", { dataKey: a.dataKey }));
1209
+ throw new Error(s("errors.dataKeyUndefined", { dataKey: a.dataKey }));
1201
1210
  else
1202
1211
  w.value = { ...f };
1203
1212
  Object.keys(a.configSchema).filter((y) => a.configSchema[y].forceShow).forEach((y) => {
@@ -1205,29 +1214,29 @@ const ee = {
1205
1214
  }), l("fetch:success", f);
1206
1215
  } catch (f) {
1207
1216
  const y = _(f);
1208
- R.value = y.startsWith("code") ? n("baseConfigCard.errors.load") : y, h.value = !0, l("fetch:error", f);
1217
+ P.value = y.startsWith("code") ? s("baseConfigCard.errors.load") : y, h.value = !0, l("fetch:error", f);
1209
1218
  } finally {
1210
1219
  g.value = !1;
1211
1220
  }
1212
1221
  }), (f, y) => {
1213
- const I = j("KButton"), z = j("KClipboardProvider"), J = j("KSkeleton"), $ = j("KEmptyState"), E = j("KCard");
1214
- return u(), U(E, {
1222
+ const I = j("KButton"), z = j("KClipboardProvider"), J = j("KSkeleton"), K = j("KEmptyState"), A = j("KCard");
1223
+ return u(), V(A, {
1215
1224
  "border-variant": "noBorder",
1216
1225
  class: "kong-ui-entity-base-config-card"
1217
1226
  }, fe({
1218
1227
  actions: p(() => [
1219
- q("div", ua, [
1228
+ U("div", ca, [
1220
1229
  G(f.$slots, "actions", {}, void 0, !0),
1221
1230
  S(z, null, {
1222
- default: p(({ copyToClipboard: A }) => [
1223
- !g.value && !h.value ? (u(), U(I, {
1231
+ default: p(({ copyToClipboard: q }) => [
1232
+ !g.value && !h.value ? (u(), V(I, {
1224
1233
  key: 0,
1225
1234
  appearance: "btn-link",
1226
1235
  "data-testid": "json-copy-button",
1227
- onClick: (F) => P(A)
1236
+ onClick: (F) => M(q)
1228
1237
  }, {
1229
1238
  default: p(() => [
1230
- W(x(r(n)("baseConfigCard.actions.copy")), 1)
1239
+ W(x(r(s)("baseConfigCard.actions.copy")), 1)
1231
1240
  ]),
1232
1241
  _: 2
1233
1242
  }, 1032, ["onClick"])) : X("", !0)
@@ -1237,29 +1246,29 @@ const ee = {
1237
1246
  ])
1238
1247
  ]),
1239
1248
  body: p(() => [
1240
- g.value ? (u(), U(J, {
1249
+ g.value ? (u(), V(J, {
1241
1250
  key: 0,
1242
1251
  "data-testid": "config-card-loader",
1243
1252
  "table-columns": 2,
1244
1253
  type: "table"
1245
- })) : h.value ? (u(), U($, {
1254
+ })) : h.value ? (u(), V(K, {
1246
1255
  key: 1,
1247
1256
  "data-testid": "config-card-fetch-error",
1248
1257
  "is-error": ""
1249
1258
  }, {
1250
1259
  message: p(() => [
1251
- q("h3", null, x(R.value), 1)
1260
+ U("h3", null, x(P.value), 1)
1252
1261
  ]),
1253
1262
  _: 1
1254
1263
  })) : X("", !0),
1255
- q("div", pa, [
1256
- (u(!0), K(ne, null, ie(d.value, (A) => (u(), K("div", {
1257
- key: `config-card-details-${A}-props`,
1258
- class: pe(`config-card-details-${A}-props`),
1259
- "data-testid": `config-card-details-${A}-props`
1264
+ U("div", ua, [
1265
+ (u(!0), $(ne, null, ie(d.value, (q) => (u(), $("div", {
1266
+ key: `config-card-details-${q}-props`,
1267
+ class: pe(`config-card-details-${q}-props`),
1268
+ "data-testid": `config-card-details-${q}-props`
1260
1269
  }, [
1261
- A !== "basic" ? (u(), K("div", fa, x(A === "advanced" ? r(n)("baseConfigCard.sections.advanced") : r(n)("baseConfigCard.sections.plugin")), 1)) : X("", !0),
1262
- (u(!0), K(ne, null, ie(c.value[A], (F) => (u(), U(Se, {
1270
+ q !== "basic" ? (u(), $("div", ya, x(q === "advanced" ? r(s)("baseConfigCard.sections.advanced") : r(s)("baseConfigCard.sections.plugin")), 1)) : X("", !0),
1271
+ (u(!0), $(ne, null, ie(c.value[q], (F) => (u(), V(Ie, {
1263
1272
  key: F.key,
1264
1273
  item: F
1265
1274
  }, fe({
@@ -1282,7 +1291,7 @@ const ee = {
1282
1291
  key: "0"
1283
1292
  } : void 0
1284
1293
  ]), 1032, ["item"]))), 128))
1285
- ], 10, ya))), 128))
1294
+ ], 10, pa))), 128))
1286
1295
  ])
1287
1296
  ]),
1288
1297
  _: 2
@@ -1290,9 +1299,9 @@ const ee = {
1290
1299
  e.hideTitle ? void 0 : {
1291
1300
  name: "title",
1292
1301
  fn: p(() => [
1293
- q("div", ca, [
1302
+ U("div", da, [
1294
1303
  G(f.$slots, "title", {}, () => [
1295
- W(x(r(n)("baseConfigCard.title")), 1)
1304
+ W(x(r(s)("baseConfigCard.title")), 1)
1296
1305
  ], !0)
1297
1306
  ])
1298
1307
  ]),
@@ -1301,10 +1310,10 @@ const ee = {
1301
1310
  ]), 1024);
1302
1311
  };
1303
1312
  }
1304
- }), va = /* @__PURE__ */ se(ma, [["__scopeId", "data-v-b72bbdde"]]), ga = ["onReset", "onSubmit"], ka = {
1313
+ }), ma = /* @__PURE__ */ se(fa, [["__scopeId", "data-v-b72bbdde"]]), va = ["onReset", "onSubmit"], ga = {
1305
1314
  class: "form-actions",
1306
1315
  "data-testid": "form-actions"
1307
- }, ba = /* @__PURE__ */ Z({
1316
+ }, ka = /* @__PURE__ */ Z({
1308
1317
  __name: "EntityBaseForm",
1309
1318
  props: {
1310
1319
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -1354,9 +1363,9 @@ const ee = {
1354
1363
  emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel"],
1355
1364
  setup(e, { emit: l }) {
1356
1365
  var t;
1357
- const a = e, i = Te(), { i18n: { t: n } } = ee.useI18n(), { getMessageFromError: _ } = ee.useErrors(), { axiosInstance: M } = ee.useAxios({
1366
+ const a = e, i = Be(), { i18n: { t: s } } = ee.useI18n(), { getMessageFromError: _ } = ee.useErrors(), { axiosInstance: E } = ee.useAxios({
1358
1367
  headers: (t = a.config) == null ? void 0 : t.requestHeaders
1359
- }), b = T(!1), o = T(!1), g = T(""), h = C(() => a.canSubmit === !1 || a.isReadonly), R = C(() => {
1368
+ }), b = T(!1), o = T(!1), g = T(""), h = C(() => a.canSubmit === !1 || a.isReadonly), P = C(() => {
1360
1369
  var c, d;
1361
1370
  if (!a.editId)
1362
1371
  return "";
@@ -1371,50 +1380,50 @@ const ee = {
1371
1380
  };
1372
1381
  return de(() => b.value, (c) => {
1373
1382
  l("loading", c);
1374
- }, { immediate: !0 }), Ie(async () => {
1383
+ }, { immediate: !0 }), Ke(async () => {
1375
1384
  if (a.editId)
1376
1385
  try {
1377
1386
  o.value = !1, b.value = !0;
1378
- const { data: c } = await M.get(R.value);
1387
+ const { data: c } = await E.get(P.value);
1379
1388
  l("fetch:success", c);
1380
1389
  } catch (c) {
1381
1390
  const d = _(c);
1382
- g.value = d.startsWith("code") ? n("baseForm.errors.edit") : d, o.value = !0, l("fetch:error", c);
1391
+ g.value = d.startsWith("code") ? s("baseForm.errors.edit") : d, o.value = !0, l("fetch:error", c);
1383
1392
  } finally {
1384
1393
  b.value = !1;
1385
1394
  }
1386
1395
  }), (c, d) => {
1387
- const m = j("KSkeleton"), k = j("KEmptyState"), P = j("KAlert"), f = j("KButton"), y = j("KCard");
1388
- return u(), U(y, { class: "kong-ui-entity-base-form" }, {
1396
+ const m = j("KSkeleton"), k = j("KEmptyState"), M = j("KAlert"), f = j("KButton"), y = j("KCard");
1397
+ return u(), V(y, { class: "kong-ui-entity-base-form" }, {
1389
1398
  body: p(() => [
1390
- b.value ? (u(), U(m, {
1399
+ b.value ? (u(), V(m, {
1391
1400
  key: 0,
1392
1401
  type: "form"
1393
- })) : o.value ? (u(), U(k, {
1402
+ })) : o.value ? (u(), V(k, {
1394
1403
  key: 1,
1395
- "cta-text": r(n)("baseForm.actions.back"),
1404
+ "cta-text": r(s)("baseForm.actions.back"),
1396
1405
  "data-testid": "form-fetch-error",
1397
1406
  "handle-click": w,
1398
1407
  "is-error": !0
1399
1408
  }, {
1400
1409
  message: p(() => [
1401
- q("h3", null, x(g.value), 1)
1410
+ U("h3", null, x(g.value), 1)
1402
1411
  ]),
1403
1412
  _: 1
1404
- }, 8, ["cta-text"])) : (u(), K("form", {
1413
+ }, 8, ["cta-text"])) : (u(), $("form", {
1405
1414
  key: 2,
1406
1415
  "data-testid": "form-content",
1407
- onReset: we(O, ["prevent"]),
1408
- onSubmit: we(B, ["prevent"])
1416
+ onReset: Se(O, ["prevent"]),
1417
+ onSubmit: Se(B, ["prevent"])
1409
1418
  }, [
1410
1419
  G(c.$slots, "default", {}, void 0, !0),
1411
- e.errorMessage ? (u(), U(P, {
1420
+ e.errorMessage ? (u(), V(M, {
1412
1421
  key: 0,
1413
1422
  "alert-message": e.errorMessage,
1414
1423
  appearance: "danger",
1415
1424
  "data-testid": "form-error"
1416
1425
  }, null, 8, ["alert-message"])) : X("", !0),
1417
- q("div", ka, [
1426
+ U("div", ga, [
1418
1427
  G(c.$slots, "form-actions", {}, () => [
1419
1428
  S(f, {
1420
1429
  appearance: "outline",
@@ -1423,7 +1432,7 @@ const ee = {
1423
1432
  type: "reset"
1424
1433
  }, {
1425
1434
  default: p(() => [
1426
- W(x(r(n)("baseForm.actions.cancel")), 1)
1435
+ W(x(r(s)("baseForm.actions.cancel")), 1)
1427
1436
  ]),
1428
1437
  _: 1
1429
1438
  }, 8, ["disabled"]),
@@ -1434,19 +1443,19 @@ const ee = {
1434
1443
  type: "submit"
1435
1444
  }, {
1436
1445
  default: p(() => [
1437
- W(x(r(n)("baseForm.actions.save")), 1)
1446
+ W(x(r(s)("baseForm.actions.save")), 1)
1438
1447
  ]),
1439
1448
  _: 1
1440
1449
  }, 8, ["disabled"])
1441
1450
  ], !0)
1442
1451
  ])
1443
- ], 40, ga))
1452
+ ], 40, va))
1444
1453
  ]),
1445
1454
  _: 3
1446
1455
  });
1447
1456
  };
1448
1457
  }
1449
- }), ha = /* @__PURE__ */ se(ba, [["__scopeId", "data-v-2286e5f2"]]), _a = { key: 0 }, Ca = /* @__PURE__ */ Z({
1458
+ }), ba = /* @__PURE__ */ se(ka, [["__scopeId", "data-v-2286e5f2"]]), ha = { key: 0 }, _a = /* @__PURE__ */ Z({
1450
1459
  __name: "EntityBaseTableCell",
1451
1460
  props: {
1452
1461
  keyName: {
@@ -1470,39 +1479,39 @@ const ee = {
1470
1479
  const d = (B = l.rowEl) == null ? void 0 : B.querySelectorAll("td");
1471
1480
  return d ? ((c = d[0]) == null ? void 0 : c.getAttribute("data-testid")) === l.keyName : !1;
1472
1481
  });
1473
- let n;
1482
+ let s;
1474
1483
  const _ = () => {
1475
- n && (n.disconnect(), n = void 0);
1476
- }, M = () => {
1484
+ s && (s.disconnect(), s = void 0);
1485
+ }, E = () => {
1477
1486
  var B, c, d;
1478
1487
  o.value = ((B = a.value) == null ? void 0 : B.getBoundingClientRect().width) || 0, g.value = ((c = t.value) == null ? void 0 : c.clientWidth) || 0, h.value = ((d = b.value) == null ? void 0 : d.innerText) || "";
1479
- }, b = T({}), o = T(0), g = T(0), h = T(""), R = C(() => [a.value, t.value]), w = de(
1480
- R,
1488
+ }, b = T({}), o = T(0), g = T(0), h = T(""), P = C(() => [a.value, t.value]), w = de(
1489
+ P,
1481
1490
  (B) => {
1482
1491
  if (i.value && (_(), "ResizeObserver" in window && window)) {
1483
- n = new ResizeObserver((c) => {
1492
+ s = new ResizeObserver((c) => {
1484
1493
  window.requestAnimationFrame(() => {
1485
- !Array.isArray(c) || !c.length || M();
1494
+ !Array.isArray(c) || !c.length || E();
1486
1495
  });
1487
1496
  });
1488
1497
  for (const c of B)
1489
- c && n.observe(c);
1498
+ c && s.observe(c);
1490
1499
  }
1491
1500
  },
1492
1501
  { immediate: !0, flush: "post", deep: !0 }
1493
1502
  ), O = C(() => i.value ? o.value > g.value : !1);
1494
1503
  return lt(() => {
1495
- M();
1504
+ E();
1496
1505
  }), ot(() => {
1497
1506
  w();
1498
1507
  }), (B, c) => {
1499
1508
  const d = j("KTooltip");
1500
- return u(), K("span", {
1509
+ return u(), $("span", {
1501
1510
  ref_key: "contentRef",
1502
1511
  ref: b,
1503
1512
  class: "content-wrapper"
1504
1513
  }, [
1505
- i.value ? (u(), K("span", _a, [
1514
+ i.value ? (u(), $("span", ha, [
1506
1515
  S(d, {
1507
1516
  disabled: !O.value,
1508
1517
  label: h.value,
@@ -1518,10 +1527,10 @@ const ee = {
1518
1527
  ], 512);
1519
1528
  };
1520
1529
  }
1521
- }), wa = /* @__PURE__ */ se(Ca, [["__scopeId", "data-v-f8a220e9"]]), Sa = { class: "toolbar-container" }, Ia = {
1530
+ }), Ca = /* @__PURE__ */ se(_a, [["__scopeId", "data-v-f8a220e9"]]), wa = { class: "toolbar-container" }, Sa = {
1522
1531
  key: 0,
1523
1532
  class: "toolbar-button-container"
1524
- }, $a = ["data-testid"], Ka = /* @__PURE__ */ Z({
1533
+ }, Ia = ["data-testid"], Ka = /* @__PURE__ */ Z({
1525
1534
  __name: "EntityBaseTable",
1526
1535
  props: {
1527
1536
  // table header configuration
@@ -1625,42 +1634,42 @@ const ee = {
1625
1634
  },
1626
1635
  emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
1627
1636
  setup(e, { emit: l }) {
1628
- const t = e, { i18n: { t: a } } = ee.useI18n(), i = C(() => t.cacheIdentifier || t.preferencesStorageKey), n = (k) => k.hasData || !!t.query, _ = C(() => {
1637
+ const t = e, { i18n: { t: a } } = ee.useI18n(), i = C(() => t.cacheIdentifier || t.preferencesStorageKey), s = (k) => k.hasData || !!t.query, _ = C(() => {
1629
1638
  const k = [];
1630
- return Object.keys(t.tableHeaders).forEach((P) => {
1631
- const f = t.tableHeaders[P];
1639
+ return Object.keys(t.tableHeaders).forEach((M) => {
1640
+ const f = t.tableHeaders[M];
1632
1641
  k.push({
1633
- label: f.label ?? P,
1634
- key: P,
1642
+ label: f.label ?? M,
1643
+ key: M,
1635
1644
  sortable: f.sortable ?? !1
1636
1645
  });
1637
1646
  }), t.enableEntityActions && k.push({
1638
1647
  key: "actions",
1639
1648
  hideLabel: !0
1640
1649
  }), k;
1641
- }), M = (k) => ({
1650
+ }), E = (k) => ({
1642
1651
  "data-rowid": k.id,
1643
1652
  "data-testid": k.name,
1644
1653
  ...t.rowAttributes(k)
1645
1654
  }), b = T({}), o = (k) => {
1646
- var P;
1647
- return (P = b.value) == null ? void 0 : P.$el.querySelector(`[data-rowid="${k.id}"]`);
1655
+ var M;
1656
+ return (M = b.value) == null ? void 0 : M.$el.querySelector(`[data-rowid="${k.id}"]`);
1648
1657
  }, g = (k) => {
1649
- const P = {
1658
+ const M = {
1650
1659
  "data-testid": k.headerKey,
1651
1660
  ...t.cellAttributes(k)
1652
1661
  };
1653
- return k.colIndex === 0 && (P.style = {
1662
+ return k.colIndex === 0 && (M.style = {
1654
1663
  maxWidth: "250px",
1655
1664
  overflowX: "hidden",
1656
1665
  textOverflow: "ellipsis"
1657
- }), P;
1666
+ }), M;
1658
1667
  }, h = () => {
1659
- l("empty-state-cta-clicked"), R();
1660
- }, R = () => {
1668
+ l("empty-state-cta-clicked"), P();
1669
+ }, P = () => {
1661
1670
  l("clear-search-input");
1662
- }, w = (k, P) => {
1663
- l("click:row", P);
1671
+ }, w = (k, M) => {
1672
+ l("click:row", M);
1664
1673
  }, O = (k) => {
1665
1674
  l("sort", k);
1666
1675
  }, { setTablePreferences: B, getTablePreferences: c } = yt(), d = C(() => {
@@ -1672,9 +1681,9 @@ const ee = {
1672
1681
  }), m = (k) => {
1673
1682
  t.preferencesStorageKey && B(t.preferencesStorageKey, k);
1674
1683
  };
1675
- return (k, P) => {
1684
+ return (k, M) => {
1676
1685
  const f = j("KIcon"), y = j("KButton"), I = j("KDropdownMenu"), z = j("KTable"), J = j("KCard");
1677
- return u(), U(J, {
1686
+ return u(), V(J, {
1678
1687
  class: "kong-ui-entity-base-table",
1679
1688
  title: e.title
1680
1689
  }, {
@@ -1703,27 +1712,27 @@ const ee = {
1703
1712
  "initial-fetcher-params": d.value,
1704
1713
  "is-loading": e.isLoading,
1705
1714
  "pagination-type": e.paginationType,
1706
- "row-attrs": M,
1715
+ "row-attrs": E,
1707
1716
  "search-input": e.query,
1708
1717
  onKtableEmptyStateCtaClicked: h,
1709
1718
  "onRow:click": w,
1710
- onSort: P[0] || (P[0] = ($) => O($)),
1719
+ onSort: M[0] || (M[0] = (K) => O(K)),
1711
1720
  "onUpdate:tablePreferences": m
1712
1721
  }, fe({
1713
- toolbar: p(({ state: $ }) => [
1714
- _e(q("div", Sa, [
1722
+ toolbar: p(({ state: K }) => [
1723
+ _e(U("div", wa, [
1715
1724
  G(k.$slots, "toolbar-filter", {}, void 0, !0),
1716
- k.$slots["toolbar-button"] ? (u(), K("div", Ia, [
1725
+ k.$slots["toolbar-button"] ? (u(), $("div", Sa, [
1717
1726
  G(k.$slots, "toolbar-button", {}, void 0, !0)
1718
1727
  ])) : X("", !0)
1719
1728
  ], 512), [
1720
- [Ce, n($)]
1729
+ [Ce, s(K)]
1721
1730
  ])
1722
1731
  ]),
1723
- actions: p(({ row: $, rowKey: E, rowValue: A }) => [
1724
- q("div", {
1732
+ actions: p(({ row: K, rowKey: A, rowValue: q }) => [
1733
+ U("div", {
1725
1734
  class: "actions-container",
1726
- "data-testid": $.name
1735
+ "data-testid": K.name
1727
1736
  }, [
1728
1737
  S(I, {
1729
1738
  "kpop-attributes": { placement: "bottomEnd" },
@@ -1731,9 +1740,9 @@ const ee = {
1731
1740
  }, {
1732
1741
  items: p(() => [
1733
1742
  G(k.$slots, "actions", {
1734
- row: $,
1735
- rowKey: E,
1736
- rowValue: A
1743
+ row: K,
1744
+ rowKey: A,
1745
+ rowValue: q
1737
1746
  }, void 0, !0)
1738
1747
  ]),
1739
1748
  default: p(() => [
@@ -1744,7 +1753,7 @@ const ee = {
1744
1753
  }, {
1745
1754
  icon: p(() => [
1746
1755
  S(f, {
1747
- color: r(Gt),
1756
+ color: r(Wt),
1748
1757
  icon: "more",
1749
1758
  size: "16"
1750
1759
  }, null, 8, ["color"])
@@ -1754,20 +1763,20 @@ const ee = {
1754
1763
  ]),
1755
1764
  _: 2
1756
1765
  }, 1032, ["width"])
1757
- ], 8, $a)
1766
+ ], 8, Ia)
1758
1767
  ]),
1759
1768
  _: 2
1760
1769
  }, [
1761
- ie(e.tableHeaders, ($, E) => ({
1762
- name: E,
1763
- fn: p(({ row: A, rowKey: F, rowValue: te }) => [
1764
- S(wa, {
1765
- "key-name": String(E),
1766
- "row-el": o(A)
1770
+ ie(e.tableHeaders, (K, A) => ({
1771
+ name: A,
1772
+ fn: p(({ row: q, rowKey: F, rowValue: te }) => [
1773
+ S(Ca, {
1774
+ "key-name": String(A),
1775
+ "row-el": o(q)
1767
1776
  }, {
1768
1777
  default: p(() => [
1769
- G(k.$slots, E, {
1770
- row: A,
1778
+ G(k.$slots, A, {
1779
+ row: q,
1771
1780
  rowKey: F,
1772
1781
  rowValue: te
1773
1782
  }, () => [
@@ -1784,13 +1793,13 @@ const ee = {
1784
1793
  }, 8, ["title"]);
1785
1794
  };
1786
1795
  }
1787
- }), xa = /* @__PURE__ */ se(Ka, [["__scopeId", "data-v-a598b1d9"]]), Ta = {
1796
+ }), $a = /* @__PURE__ */ se(Ka, [["__scopeId", "data-v-a598b1d9"]]), xa = {
1788
1797
  key: 0,
1789
1798
  class: "kong-ui-entity-delete-error"
1790
- }, Ba = {
1799
+ }, Ta = {
1791
1800
  key: 1,
1792
1801
  class: "description"
1793
- }, ja = /* @__PURE__ */ Z({
1802
+ }, Ba = /* @__PURE__ */ Z({
1794
1803
  __name: "EntityDeleteModal",
1795
1804
  props: {
1796
1805
  visible: {
@@ -1829,14 +1838,14 @@ const ee = {
1829
1838
  },
1830
1839
  emits: ["cancel", "proceed"],
1831
1840
  setup(e, { emit: l }) {
1832
- const t = e, { i18nT: a } = ee.useI18n(), i = C(() => t.needConfirm ? t.entityName : ""), n = () => {
1841
+ const t = e, { i18nT: a } = ee.useI18n(), i = C(() => t.needConfirm ? t.entityName : ""), s = () => {
1833
1842
  l("cancel");
1834
1843
  }, _ = () => {
1835
1844
  l("proceed");
1836
1845
  };
1837
- return (M, b) => {
1846
+ return (E, b) => {
1838
1847
  const o = j("KAlert"), g = j("KPrompt");
1839
- return u(), U(g, {
1848
+ return u(), V(g, {
1840
1849
  "action-button-text": "Yes, delete",
1841
1850
  "action-pending": e.actionPending,
1842
1851
  class: "kong-ui-entity-delete-modal",
@@ -1844,11 +1853,11 @@ const ee = {
1844
1853
  "is-visible": e.visible,
1845
1854
  title: e.title,
1846
1855
  type: "danger",
1847
- onCanceled: n,
1856
+ onCanceled: s,
1848
1857
  onProceed: _
1849
1858
  }, {
1850
1859
  "body-content": p(() => [
1851
- e.error ? (u(), K("div", Ta, [
1860
+ e.error ? (u(), $("div", xa, [
1852
1861
  S(o, { appearance: "danger" }, {
1853
1862
  alertMessage: p(() => [
1854
1863
  W(x(e.error), 1)
@@ -1869,14 +1878,14 @@ const ee = {
1869
1878
  t.entityName ? {
1870
1879
  name: "entityName",
1871
1880
  fn: p(() => [
1872
- q("strong", null, x(t.entityName), 1)
1881
+ U("strong", null, x(t.entityName), 1)
1873
1882
  ]),
1874
1883
  key: "0"
1875
1884
  } : void 0
1876
1885
  ]), 1032, ["keypath"]),
1877
- t.description || M.$slots.description ? (u(), K("div", Ba, [
1878
- G(M.$slots, "description", {}, () => [
1879
- q("p", null, x(t.description), 1)
1886
+ t.description || E.$slots.description ? (u(), $("div", Ta, [
1887
+ G(E.$slots, "description", {}, () => [
1888
+ U("p", null, x(t.description), 1)
1880
1889
  ], !0)
1881
1890
  ])) : X("", !0)
1882
1891
  ]),
@@ -1884,7 +1893,7 @@ const ee = {
1884
1893
  }, 8, ["action-pending", "confirmation-text", "is-visible", "title"]);
1885
1894
  };
1886
1895
  }
1887
- }), Pa = /* @__PURE__ */ se(ja, [["__scopeId", "data-v-1c9a2a07"]]), Ea = {
1896
+ }), ja = /* @__PURE__ */ se(Ba, [["__scopeId", "data-v-1c9a2a07"]]), Ea = {
1888
1897
  fill: "none",
1889
1898
  height: "20",
1890
1899
  viewBox: "0 0 20 20",
@@ -1898,35 +1907,35 @@ const ee = {
1898
1907
  width: "20",
1899
1908
  x: "0",
1900
1909
  y: "0"
1901
- }, Ra = ["fill"], Aa = { mask: "url(#mask0_180_20349)" }, qa = ["fill"], Fa = /* @__PURE__ */ Z({
1910
+ }, Pa = ["fill"], Aa = { mask: "url(#mask0_180_20349)" }, qa = ["fill"], Ua = /* @__PURE__ */ Z({
1902
1911
  __name: "IconFilter",
1903
1912
  props: {
1904
1913
  color: {
1905
1914
  type: String,
1906
- default: `var(--kong-ui-entity-filter-color, ${zt})`
1915
+ default: `var(--kong-ui-entity-filter-color, ${Ht})`
1907
1916
  }
1908
1917
  },
1909
1918
  setup(e) {
1910
- return (l, t) => (u(), K("svg", Ea, [
1911
- q("mask", Ma, [
1912
- q("rect", {
1919
+ return (l, t) => (u(), $("svg", Ea, [
1920
+ U("mask", Ma, [
1921
+ U("rect", {
1913
1922
  fill: e.color,
1914
1923
  height: "20",
1915
1924
  width: "20"
1916
- }, null, 8, Ra)
1925
+ }, null, 8, Pa)
1917
1926
  ]),
1918
- q("g", Aa, [
1919
- q("path", {
1927
+ U("g", Aa, [
1928
+ U("path", {
1920
1929
  d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
1921
1930
  fill: e.color
1922
1931
  }, null, 8, qa)
1923
1932
  ])
1924
1933
  ]));
1925
1934
  }
1926
- }), Va = {
1935
+ }), Fa = {
1927
1936
  key: 1,
1928
1937
  class: "kong-ui-entity-filter"
1929
- }, Ua = { class: "menu-item-title" }, Oa = { class: "menu-item-indicator" }, La = { class: "menu-item-body" }, Na = ["for"], Da = { class: "menu-item-buttons" }, Ja = /* @__PURE__ */ Z({
1938
+ }, Ra = { class: "menu-item-title" }, Va = { class: "menu-item-indicator" }, Oa = { class: "menu-item-body" }, La = ["for"], Na = { class: "menu-item-buttons" }, Da = /* @__PURE__ */ Z({
1930
1939
  __name: "EntityFilter",
1931
1940
  props: {
1932
1941
  // filter config, either exact match or fuzzy match
@@ -1946,12 +1955,12 @@ const ee = {
1946
1955
  },
1947
1956
  emits: ["update:modelValue"],
1948
1957
  setup(e, { emit: l }) {
1949
- const t = e, { i18n: { t: a } } = ee.useI18n(), i = T(!1), n = T({}), _ = C(() => {
1958
+ const t = e, { i18n: { t: a } } = ee.useI18n(), i = T(!1), s = T({}), _ = C(() => {
1950
1959
  const c = [];
1951
1960
  return new URLSearchParams(t.modelValue).forEach((d, m) => {
1952
1961
  d !== "" && c.push(m);
1953
1962
  }), c;
1954
- }), M = C(() => {
1963
+ }), E = C(() => {
1955
1964
  const c = t.config.fields;
1956
1965
  return Object.keys(c).filter((d) => c[d].searchable).map((d) => ({
1957
1966
  label: c[d].label || d,
@@ -1959,8 +1968,8 @@ const ee = {
1959
1968
  }));
1960
1969
  });
1961
1970
  de(() => t.modelValue, (c) => {
1962
- n.value = {}, new URLSearchParams(c).forEach((d, m) => {
1963
- n.value[m] = d;
1971
+ s.value = {}, new URLSearchParams(c).forEach((d, m) => {
1972
+ s.value[m] = d;
1964
1973
  });
1965
1974
  });
1966
1975
  const b = () => {
@@ -1973,23 +1982,23 @@ const ee = {
1973
1982
  value: k,
1974
1983
  label: k
1975
1984
  }));
1976
- }, R = (c) => {
1985
+ }, P = (c) => {
1977
1986
  var d, m;
1978
1987
  return ((m = (d = t.config.schema) == null ? void 0 : d[c]) == null ? void 0 : m.type) ?? "text";
1979
1988
  }, w = (c) => {
1980
- n.value = {
1981
- ...n.value,
1989
+ s.value = {
1990
+ ...s.value,
1982
1991
  [c]: ""
1983
1992
  }, B();
1984
1993
  }, O = () => {
1985
- n.value = {}, B(!0);
1994
+ s.value = {}, B(!0);
1986
1995
  }, B = (c = !1) => {
1987
- const d = Object.keys(n.value).reduce((m, k) => (n.value[k] && (m[k] = `${n.value[k]}`), m), {});
1996
+ const d = Object.keys(s.value).reduce((m, k) => (s.value[k] && (m[k] = `${s.value[k]}`), m), {});
1988
1997
  c && (i.value = !1), l("update:modelValue", new URLSearchParams(d).toString());
1989
1998
  };
1990
1999
  return (c, d) => {
1991
- const m = j("KInput"), k = j("KButton"), P = j("KSelect"), f = j("KMenuItem"), y = j("KMenu");
1992
- return e.config.isExactMatch ? (u(), U(m, {
2000
+ const m = j("KInput"), k = j("KButton"), M = j("KSelect"), f = j("KMenuItem"), y = j("KMenu");
2001
+ return e.config.isExactMatch ? (u(), V(m, {
1993
2002
  key: 0,
1994
2003
  autocomplete: "off",
1995
2004
  class: "kong-ui-entity-filter-input",
@@ -1999,10 +2008,10 @@ const ee = {
1999
2008
  "onUpdate:modelValue": o
2000
2009
  }, {
2001
2010
  icon: p(() => [
2002
- S(Fa)
2011
+ S(Ua)
2003
2012
  ]),
2004
2013
  _: 1
2005
- }, 8, ["model-value", "placeholder"])) : (u(), K("div", Va, [
2014
+ }, 8, ["model-value", "placeholder"])) : (u(), $("div", Fa, [
2006
2015
  S(k, {
2007
2016
  appearance: "btn-link",
2008
2017
  "data-testid": "filter-button",
@@ -2014,7 +2023,7 @@ const ee = {
2014
2023
  ]),
2015
2024
  _: 1
2016
2025
  }),
2017
- _e(q("div", {
2026
+ _e(U("div", {
2018
2027
  class: "kong-ui-entity-filter-backdrop",
2019
2028
  onClick: b
2020
2029
  }, null, 512), [
@@ -2022,53 +2031,53 @@ const ee = {
2022
2031
  ]),
2023
2032
  _e(S(y, { class: "kong-ui-entity-filter-menu" }, {
2024
2033
  body: p(() => [
2025
- (u(!0), K(ne, null, ie(M.value, (I, z) => (u(), U(f, {
2034
+ (u(!0), $(ne, null, ie(E.value, (I, z) => (u(), V(f, {
2026
2035
  key: I.value,
2027
2036
  "data-testid": I.value,
2028
2037
  expandable: "",
2029
- "last-menu-item": z === M.value.length - 1
2038
+ "last-menu-item": z === E.value.length - 1
2030
2039
  }, {
2031
2040
  itemTitle: p(() => [
2032
- q("span", Ua, [
2041
+ U("span", Ra, [
2033
2042
  W(x(I.label) + " ", 1),
2034
- _e(q("span", Oa, null, 512), [
2043
+ _e(U("span", Va, null, 512), [
2035
2044
  [Ce, _.value.includes(I.value)]
2036
2045
  ])
2037
2046
  ])
2038
2047
  ]),
2039
2048
  itemBody: p(() => {
2040
- var J, $;
2049
+ var J, K;
2041
2050
  return [
2042
- q("div", La, [
2043
- q("label", {
2051
+ U("div", Oa, [
2052
+ U("label", {
2044
2053
  class: "menu-item-label",
2045
2054
  for: g(I.value)
2046
- }, x(r(a)("filter.fieldLabel")), 9, Na),
2047
- (($ = (J = e.config.schema) == null ? void 0 : J[I.value]) == null ? void 0 : $.type) === "select" ? (u(), U(P, {
2055
+ }, x(r(a)("filter.fieldLabel")), 9, La),
2056
+ ((K = (J = e.config.schema) == null ? void 0 : J[I.value]) == null ? void 0 : K.type) === "select" ? (u(), V(M, {
2048
2057
  key: 0,
2049
2058
  id: g(I.value),
2050
- modelValue: n.value[I.value],
2051
- "onUpdate:modelValue": (E) => n.value[I.value] = E,
2059
+ modelValue: s.value[I.value],
2060
+ "onUpdate:modelValue": (A) => s.value[I.value] = A,
2052
2061
  appearance: "select",
2053
2062
  items: h(I.value),
2054
2063
  placeholder: r(a)("filter.selectPlaceholder")
2055
- }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (u(), U(m, {
2064
+ }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (u(), V(m, {
2056
2065
  key: 1,
2057
2066
  id: g(I.value),
2058
- modelValue: n.value[I.value],
2059
- "onUpdate:modelValue": (E) => n.value[I.value] = E,
2067
+ modelValue: s.value[I.value],
2068
+ "onUpdate:modelValue": (A) => s.value[I.value] = A,
2060
2069
  autocomplete: "off",
2061
2070
  placeholder: r(a)("filter.inputPlaceholder"),
2062
2071
  size: "small",
2063
- type: R(I.value)
2072
+ type: P(I.value)
2064
2073
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
2065
2074
  ]),
2066
- q("div", Da, [
2075
+ U("div", Na, [
2067
2076
  S(k, {
2068
2077
  appearance: "btn-link",
2069
2078
  "data-testid": "apply-filter",
2070
2079
  size: "small",
2071
- onClick: d[0] || (d[0] = (E) => B(!0))
2080
+ onClick: d[0] || (d[0] = (A) => B(!0))
2072
2081
  }, {
2073
2082
  default: p(() => [
2074
2083
  W(x(r(a)("filter.applyButtonText")), 1)
@@ -2079,7 +2088,7 @@ const ee = {
2079
2088
  appearance: "btn-link",
2080
2089
  "data-testid": "clear-filter",
2081
2090
  size: "small",
2082
- onClick: (E) => w(I.value)
2091
+ onClick: (A) => w(I.value)
2083
2092
  }, {
2084
2093
  default: p(() => [
2085
2094
  W(x(r(a)("filter.clearButtonText")), 1)
@@ -2107,7 +2116,7 @@ const ee = {
2107
2116
  ]));
2108
2117
  };
2109
2118
  }
2110
- }), Ha = /* @__PURE__ */ se(Ja, [["__scopeId", "data-v-745f38c0"]]), he = /* @__PURE__ */ Z({
2119
+ }), Ja = /* @__PURE__ */ se(Da, [["__scopeId", "data-v-745f38c0"]]), he = /* @__PURE__ */ Z({
2111
2120
  __name: "PermissionsWrapper",
2112
2121
  props: {
2113
2122
  /**
@@ -2132,21 +2141,21 @@ const ee = {
2132
2141
  const l = e, t = T(void 0), a = C(() => t.value === !0 || t.value !== void 0 && l.forceShow === !0);
2133
2142
  return de(() => l.authFunction, async () => {
2134
2143
  t.value = await l.authFunction();
2135
- }, { immediate: !0 }), (i, n) => a.value ? G(i.$slots, "default", {
2144
+ }, { immediate: !0 }), (i, s) => a.value ? G(i.$slots, "default", {
2136
2145
  key: 0,
2137
2146
  isAllowed: t.value
2138
2147
  }) : X("", !0);
2139
2148
  }
2140
- }), za = { class: "form-section-wrapper" }, Wa = {
2149
+ }), Ha = { class: "form-section-wrapper" }, za = {
2141
2150
  key: 0,
2142
2151
  class: "form-section-title"
2143
- }, Ga = {
2152
+ }, Wa = {
2144
2153
  key: 1,
2145
2154
  class: "form-section-description"
2146
- }, Qa = {
2155
+ }, Ga = {
2147
2156
  key: 2,
2148
2157
  class: "form-section-footer"
2149
- }, Xa = { class: "form-section-content" }, Ya = /* @__PURE__ */ Z({
2158
+ }, Qa = { class: "form-section-content" }, Xa = /* @__PURE__ */ Z({
2150
2159
  __name: "EntityFormSection",
2151
2160
  props: {
2152
2161
  title: {
@@ -2171,33 +2180,33 @@ const ee = {
2171
2180
  }
2172
2181
  },
2173
2182
  setup(e) {
2174
- const l = Ke();
2175
- return (t, a) => (u(), K("fieldset", {
2183
+ const l = Te();
2184
+ return (t, a) => (u(), $("fieldset", {
2176
2185
  class: pe(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
2177
2186
  }, [
2178
- q("div", za, [
2179
- e.hideInfoHeader ? X("", !0) : (u(), K("div", {
2187
+ U("div", Ha, [
2188
+ e.hideInfoHeader ? X("", !0) : (u(), $("div", {
2180
2189
  key: 0,
2181
2190
  class: pe(["form-section-info", { sticky: e.stickyInfoHeader }])
2182
2191
  }, [
2183
- e.title ? (u(), K("h4", Wa, x(e.title), 1)) : X("", !0),
2184
- e.description || r(l).description ? (u(), K("div", Ga, [
2192
+ e.title ? (u(), $("h4", za, x(e.title), 1)) : X("", !0),
2193
+ e.description || r(l).description ? (u(), $("div", Wa, [
2185
2194
  G(t.$slots, "description", {}, () => [
2186
- q("p", null, x(e.description), 1)
2195
+ U("p", null, x(e.description), 1)
2187
2196
  ], !0)
2188
2197
  ])) : X("", !0),
2189
- r(l).footer ? (u(), K("div", Qa, [
2198
+ r(l).footer ? (u(), $("div", Ga, [
2190
2199
  G(t.$slots, "footer", {}, void 0, !0)
2191
2200
  ])) : X("", !0)
2192
2201
  ], 2)),
2193
- q("div", Xa, [
2202
+ U("div", Qa, [
2194
2203
  G(t.$slots, "default", {}, void 0, !0)
2195
2204
  ])
2196
2205
  ])
2197
2206
  ], 2));
2198
2207
  }
2199
- }), Ne = /* @__PURE__ */ se(Ya, [["__scopeId", "data-v-8b6dc312"]]), { useAxios: Me, useDeleteUrlBuilder: Za, useErrors: el, useFetchUrlBuilder: _l, useFetcher: tl, useDebouncedFilter: al, useStringHelpers: ll, useGatewayFeatureSupported: Cl } = ee;
2200
- const ol = { class: "kong-ui-entities-keys-list" }, il = { key: 1 }, nl = /* @__PURE__ */ Z({
2208
+ }), De = /* @__PURE__ */ se(Xa, [["__scopeId", "data-v-8b6dc312"]]), { useAxios: Ae, useDeleteUrlBuilder: Ya, useErrors: Za, useFetchUrlBuilder: hl, useFetcher: el, useDebouncedFilter: tl, useStringHelpers: al, useGatewayFeatureSupported: _l } = ee;
2209
+ const ll = { class: "kong-ui-entities-keys-list" }, ol = { key: 1 }, il = /* @__PURE__ */ Z({
2201
2210
  __name: "KeyList",
2202
2211
  props: {
2203
2212
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -2239,98 +2248,98 @@ const ol = { class: "kong-ui-entities-keys-list" }, il = { key: 1 }, nl = /* @__
2239
2248
  emits: ["error", "copy:success", "copy:error", "delete:success"],
2240
2249
  setup(e, { emit: l }) {
2241
2250
  var ve;
2242
- const t = e, { i18n: { t: a } } = je.useI18n(), i = Te(), { axiosInstance: n } = Me({
2251
+ const t = e, { i18n: { t: a } } = Ee.useI18n(), i = Be(), { axiosInstance: s } = Ae({
2243
2252
  headers: (ve = t.config) == null ? void 0 : ve.requestHeaders
2244
- }), _ = T(1), M = C(() => t.config.app !== "kongManager" || !!t.config.disableSorting), b = {
2253
+ }), _ = T(1), E = C(() => t.config.app !== "kongManager" || !!t.config.disableSorting), b = {
2245
2254
  name: { label: a("keys.list.table_headers.name"), searchable: !0, sortable: !0 },
2246
2255
  kid: { label: a("keys.list.table_headers.key_id"), sortable: !0 },
2247
2256
  tags: { label: a("keys.list.table_headers.tags") },
2248
2257
  id: { label: a("keys.list.table_headers.id"), sortable: !0 }
2249
2258
  }, o = b, g = C(() => {
2250
2259
  var v, L, Q, oe;
2251
- let s = `${t.config.apiBaseUrl}${ye.list[t.config.app][t.config.keySetId ? "forKeySet" : "all"]}`;
2252
- return t.config.app === "konnect" ? s = s.replace(/{controlPlaneId}/gi, ((v = t.config) == null ? void 0 : v.controlPlaneId) || "").replace(/{keySetId}/gi, ((L = t.config) == null ? void 0 : L.keySetId) || "") : t.config.app === "kongManager" && (s = s.replace(/\/{workspace}/gi, (Q = t.config) != null && Q.workspace ? `/${t.config.workspace}` : "").replace(/{keySetId}/gi, ((oe = t.config) == null ? void 0 : oe.keySetId) || "")), s;
2253
- }), h = T(""), R = C(() => {
2254
- const s = t.config.app === "konnect" || t.config.isExactMatch;
2255
- if (s)
2260
+ let n = `${t.config.apiBaseUrl}${ye.list[t.config.app][t.config.keySetId ? "forKeySet" : "all"]}`;
2261
+ return t.config.app === "konnect" ? n = n.replace(/{controlPlaneId}/gi, ((v = t.config) == null ? void 0 : v.controlPlaneId) || "").replace(/{keySetId}/gi, ((L = t.config) == null ? void 0 : L.keySetId) || "") : t.config.app === "kongManager" && (n = n.replace(/\/{workspace}/gi, (Q = t.config) != null && Q.workspace ? `/${t.config.workspace}` : "").replace(/{keySetId}/gi, ((oe = t.config) == null ? void 0 : oe.keySetId) || "")), n;
2262
+ }), h = T(""), P = C(() => {
2263
+ const n = t.config.app === "konnect" || t.config.isExactMatch;
2264
+ if (n)
2256
2265
  return {
2257
- isExactMatch: s,
2266
+ isExactMatch: n,
2258
2267
  placeholder: a("keys.search.placeholder")
2259
2268
  };
2260
2269
  const v = { name: b.name };
2261
2270
  return {
2262
- isExactMatch: s,
2271
+ isExactMatch: n,
2263
2272
  fields: v,
2264
2273
  schema: t.config.filterSchema
2265
2274
  };
2266
- }), { fetcher: w, fetcherState: O } = tl(t.config, g.value), B = () => {
2275
+ }), { fetcher: w, fetcherState: O } = el(t.config, g.value), B = () => {
2267
2276
  h.value = "";
2268
2277
  }, c = () => {
2269
2278
  _.value++;
2270
- }, d = T(""), m = (s, v) => {
2271
- const L = s.id;
2279
+ }, d = T(""), m = (n, v) => {
2280
+ const L = n.id;
2272
2281
  if (!v(L)) {
2273
- y(s, "id");
2282
+ y(n, "id");
2274
2283
  return;
2275
2284
  }
2276
- f(s, "id");
2277
- }, k = (s, v) => {
2278
- const L = JSON.stringify(s);
2285
+ f(n, "id");
2286
+ }, k = (n, v) => {
2287
+ const L = JSON.stringify(n);
2279
2288
  if (!v(L)) {
2280
2289
  l("copy:error", {
2281
- entity: s,
2290
+ entity: n,
2282
2291
  message: a("keys.errors.copy")
2283
2292
  });
2284
2293
  return;
2285
2294
  }
2286
2295
  l("copy:success", {
2287
- entity: s,
2296
+ entity: n,
2288
2297
  message: a("keys.copy.success_brief")
2289
2298
  });
2290
- }, P = (s, v, L) => {
2291
- const { type: Q } = s;
2299
+ }, M = (n, v, L) => {
2300
+ const { type: Q } = n;
2292
2301
  Q === "success" ? f(v, L) : y(v, L);
2293
- }, f = (s, v) => {
2302
+ }, f = (n, v) => {
2294
2303
  l("copy:success", {
2295
- entity: s,
2304
+ entity: n,
2296
2305
  field: v,
2297
- message: a("keys.copy.success", { val: s[v] })
2306
+ message: a("keys.copy.success", { val: n[v] })
2298
2307
  });
2299
- }, y = (s, v) => {
2308
+ }, y = (n, v) => {
2300
2309
  l("copy:error", {
2301
- entity: s,
2310
+ entity: n,
2302
2311
  field: v,
2303
2312
  message: a("keys.errors.copy")
2304
2313
  });
2305
- }, I = async (s) => {
2314
+ }, I = async (n) => {
2306
2315
  var L;
2307
- await ((L = t.canRetrieve) == null ? void 0 : L.call(t, s)) && i.push(t.config.getViewRoute(s.id));
2308
- }, z = (s) => ({
2316
+ await ((L = t.canRetrieve) == null ? void 0 : L.call(t, n)) && i.push(t.config.getViewRoute(n.id));
2317
+ }, z = (n) => ({
2309
2318
  label: a("keys.actions.view"),
2310
- to: t.config.getViewRoute(s)
2311
- }), J = (s) => ({
2319
+ to: t.config.getViewRoute(n)
2320
+ }), J = (n) => ({
2312
2321
  label: a("keys.actions.edit"),
2313
- to: t.config.getEditRoute(s)
2314
- }), $ = T(void 0), E = T(!1), A = T(!1), F = T(""), te = Za(t.config, g.value), re = (s) => {
2315
- $.value = s, E.value = !0;
2322
+ to: t.config.getEditRoute(n)
2323
+ }), K = T(void 0), A = T(!1), q = T(!1), F = T(""), te = Ya(t.config, g.value), re = (n) => {
2324
+ K.value = n, A.value = !0;
2316
2325
  }, le = () => {
2317
- E.value = !1;
2326
+ A.value = !1;
2318
2327
  }, be = async () => {
2319
- var s, v, L;
2320
- if ((s = $.value) != null && s.id) {
2321
- A.value = !0;
2328
+ var n, v, L;
2329
+ if ((n = K.value) != null && n.id) {
2330
+ q.value = !0;
2322
2331
  try {
2323
- await n.delete(te($.value.id)), A.value = !1, E.value = !1, _.value++, l("delete:success", $.value);
2332
+ await s.delete(te(K.value.id)), q.value = !1, A.value = !1, _.value++, l("delete:success", K.value);
2324
2333
  } catch (Q) {
2325
2334
  F.value = ((L = (v = Q.response) == null ? void 0 : v.data) == null ? void 0 : L.message) || Q.message || a("keys.errors.delete"), l("error", Q);
2326
2335
  } finally {
2327
- A.value = !1;
2336
+ q.value = !1;
2328
2337
  }
2329
2338
  }
2330
2339
  };
2331
- de(O, (s) => {
2332
- if (s.status === ue.Error) {
2333
- d.value = a("keys.errors.general"), l("error", s.error);
2340
+ de(O, (n) => {
2341
+ if (n.status === ue.Error) {
2342
+ d.value = a("keys.errors.general"), l("error", n.error);
2334
2343
  return;
2335
2344
  }
2336
2345
  d.value = "";
@@ -2341,15 +2350,15 @@ const ol = { class: "kong-ui-entities-keys-list" }, il = { key: 1 }, nl = /* @__
2341
2350
  message: a("keys.list.empty_state.description"),
2342
2351
  title: a("keys.title")
2343
2352
  });
2344
- return Ie(async () => {
2353
+ return Ke(async () => {
2345
2354
  await t.canCreate() && (me.value.title = a("keys.list.empty_state.title"), me.value.ctaText = a("keys.actions.create"));
2346
- }), (s, v) => {
2355
+ }), (n, v) => {
2347
2356
  const L = j("KButton"), Q = j("CopyUuid"), oe = j("KBadge"), D = j("KTruncate"), ce = j("KDropdownItem"), ge = j("KClipboardProvider");
2348
- return u(), K("div", ol, [
2349
- S(r(xa), {
2357
+ return u(), $("div", ll, [
2358
+ S(r($a), {
2350
2359
  "cache-identifier": e.cacheIdentifier,
2351
2360
  "disable-pagination-page-jump": "",
2352
- "disable-sorting": M.value,
2361
+ "disable-sorting": E.value,
2353
2362
  "empty-state-options": me.value,
2354
2363
  "enable-entity-actions": "",
2355
2364
  "error-message": d.value,
@@ -2364,10 +2373,10 @@ const ol = { class: "kong-ui-entities-keys-list" }, il = { key: 1 }, nl = /* @__
2364
2373
  onSort: c
2365
2374
  }, {
2366
2375
  "toolbar-filter": p(() => [
2367
- S(r(Ha), {
2376
+ S(r(Ja), {
2368
2377
  modelValue: h.value,
2369
2378
  "onUpdate:modelValue": v[0] || (v[0] = (N) => h.value = N),
2370
- config: R.value
2379
+ config: P.value
2371
2380
  }, null, 8, ["modelValue", "config"])
2372
2381
  ]),
2373
2382
  "toolbar-button": p(() => [
@@ -2391,20 +2400,20 @@ const ol = { class: "kong-ui-entities-keys-list" }, il = { key: 1 }, nl = /* @__
2391
2400
  }, 8, ["auth-function"])
2392
2401
  ]),
2393
2402
  name: p(({ rowValue: N }) => [
2394
- q("b", null, x(N ?? "-"), 1)
2403
+ U("b", null, x(N ?? "-"), 1)
2395
2404
  ]),
2396
2405
  kid: p(({ row: N, rowValue: Y }) => [
2397
2406
  S(Q, {
2398
- notify: (V) => P(V, N, "kid"),
2407
+ notify: (R) => M(R, N, "kid"),
2399
2408
  uuid: Y
2400
2409
  }, null, 8, ["notify", "uuid"])
2401
2410
  ]),
2402
2411
  tags: p(({ rowValue: N }) => [
2403
- (N == null ? void 0 : N.length) > 0 ? (u(), U(D, { key: 0 }, {
2412
+ (N == null ? void 0 : N.length) > 0 ? (u(), V(D, { key: 0 }, {
2404
2413
  default: p(() => [
2405
- (u(!0), K(ne, null, ie(N, (Y) => (u(), U(oe, {
2414
+ (u(!0), $(ne, null, ie(N, (Y) => (u(), V(oe, {
2406
2415
  key: Y,
2407
- onClick: v[1] || (v[1] = we(() => {
2416
+ onClick: v[1] || (v[1] = Se(() => {
2408
2417
  }, ["stop"]))
2409
2418
  }, {
2410
2419
  default: p(() => [
@@ -2414,11 +2423,11 @@ const ol = { class: "kong-ui-entities-keys-list" }, il = { key: 1 }, nl = /* @__
2414
2423
  }, 1024))), 128))
2415
2424
  ]),
2416
2425
  _: 2
2417
- }, 1024)) : (u(), K("span", il, "-"))
2426
+ }, 1024)) : (u(), $("span", ol, "-"))
2418
2427
  ]),
2419
2428
  id: p(({ row: N, rowValue: Y }) => [
2420
2429
  S(Q, {
2421
- notify: (V) => P(V, N, "id"),
2430
+ notify: (R) => M(R, N, "id"),
2422
2431
  uuid: Y
2423
2432
  }, null, 8, ["notify", "uuid"])
2424
2433
  ]),
@@ -2427,7 +2436,7 @@ const ol = { class: "kong-ui-entities-keys-list" }, il = { key: 1 }, nl = /* @__
2427
2436
  default: p(({ copyToClipboard: Y }) => [
2428
2437
  S(ce, {
2429
2438
  "data-testid": "action-entity-copy-id",
2430
- onClick: (V) => m(N, Y)
2439
+ onClick: (R) => m(N, Y)
2431
2440
  }, {
2432
2441
  default: p(() => [
2433
2442
  W(x(r(a)("keys.actions.copy_id")), 1)
@@ -2441,7 +2450,7 @@ const ol = { class: "kong-ui-entities-keys-list" }, il = { key: 1 }, nl = /* @__
2441
2450
  default: p(({ copyToClipboard: Y }) => [
2442
2451
  S(ce, {
2443
2452
  "data-testid": "action-entity-copy-json",
2444
- onClick: (V) => k(N, Y)
2453
+ onClick: (R) => k(N, Y)
2445
2454
  }, {
2446
2455
  default: p(() => [
2447
2456
  W(x(r(a)("keys.actions.copy_json")), 1)
@@ -2495,15 +2504,15 @@ const ol = { class: "kong-ui-entities-keys-list" }, il = { key: 1 }, nl = /* @__
2495
2504
  ]),
2496
2505
  _: 1
2497
2506
  }, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers"]),
2498
- S(r(Pa), {
2499
- "action-pending": A.value,
2507
+ S(r(ja), {
2508
+ "action-pending": q.value,
2500
2509
  description: r(a)("keys.delete.description"),
2501
- "entity-name": $.value && ($.value.name || $.value.id),
2510
+ "entity-name": K.value && (K.value.name || K.value.id),
2502
2511
  "entity-type": r(He).Key,
2503
2512
  error: F.value,
2504
2513
  "need-confirm": !1,
2505
2514
  title: r(a)("keys.delete.title"),
2506
- visible: E.value,
2515
+ visible: A.value,
2507
2516
  onCancel: le,
2508
2517
  onProceed: be
2509
2518
  }, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"])
@@ -2516,11 +2525,11 @@ const Ze = (e, l) => {
2516
2525
  for (const [a, i] of l)
2517
2526
  t[a] = i;
2518
2527
  return t;
2519
- }, wl = /* @__PURE__ */ Ze(nl, [["__scopeId", "data-v-bede4326"]]), sl = { class: "kong-ui-entities-keys-form" }, rl = { "data-testid": "no-search-results" }, dl = { class: "select-item-label" }, cl = { class: "select-item-desc" }, ul = {
2528
+ }, Cl = /* @__PURE__ */ Ze(il, [["__scopeId", "data-v-bede4326"]]), nl = { class: "kong-ui-entities-keys-form" }, sl = { "data-testid": "no-search-results" }, rl = { class: "select-item-label" }, dl = { class: "select-item-desc" }, cl = {
2520
2529
  key: 0,
2521
2530
  class: "invalid-key-set-message",
2522
2531
  "data-testid": "invalid-key-set-message"
2523
- }, pl = { "data-testid": "key-format-container" }, yl = /* @__PURE__ */ Z({
2532
+ }, ul = { "data-testid": "key-format-container" }, pl = /* @__PURE__ */ Z({
2524
2533
  __name: "KeyForm",
2525
2534
  props: {
2526
2535
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -2545,9 +2554,9 @@ const Ze = (e, l) => {
2545
2554
  emits: ["update", "error", "loading"],
2546
2555
  setup(e, { emit: l }) {
2547
2556
  var ve;
2548
- const t = e, a = Te(), { i18n: { t: i } } = je.useI18n(), { getMessageFromError: n } = el(), { axiosInstance: _ } = Me({
2557
+ const t = e, a = Be(), { i18n: { t: i } } = Ee.useI18n(), { getMessageFromError: s } = Za(), { axiosInstance: _ } = Ae({
2549
2558
  headers: (ve = t.config) == null ? void 0 : ve.requestHeaders
2550
- }), M = C(() => ye.form[t.config.app].edit), b = C(() => t.keyId ? ke.Edit : ke.Create), o = Re({
2559
+ }), E = C(() => ye.form[t.config.app].edit), b = C(() => t.keyId ? ke.Edit : ke.Create), o = qe({
2551
2560
  fields: {
2552
2561
  name: "",
2553
2562
  tags: "",
@@ -2560,7 +2569,7 @@ const Ze = (e, l) => {
2560
2569
  },
2561
2570
  isReadonly: !1,
2562
2571
  errorMessage: ""
2563
- }), g = Re({
2572
+ }), g = qe({
2564
2573
  name: "",
2565
2574
  tags: "",
2566
2575
  key_id: "",
@@ -2578,91 +2587,91 @@ const Ze = (e, l) => {
2578
2587
  label: i("keys.form.fields.key_format.options.pem"),
2579
2588
  value: "pem"
2580
2589
  }
2581
- ], R = C(() => o.isReadonly || b.value === ke.Create && !!t.fixedKeySetId), w = C(() => !R.value);
2582
- de(() => t.fixedKeySetId, (s) => {
2583
- b.value === ke.Create && (o.fields.key_set = s);
2590
+ ], P = C(() => o.isReadonly || b.value === ke.Create && !!t.fixedKeySetId), w = C(() => !P.value);
2591
+ de(() => t.fixedKeySetId, (n) => {
2592
+ b.value === ke.Create && (o.fields.key_set = n);
2584
2593
  }, { immediate: !0 });
2585
- const O = C(() => JSON.stringify(o.fields) !== JSON.stringify(g) && !!o.fields.key_id && !!o.fields.key_format && (o.fields.key_format === "jwk" && !!o.fields.jwk || o.fields.key_format === "pem" && !!o.fields.private_key && !!o.fields.public_key)), B = (s) => {
2594
+ const O = C(() => JSON.stringify(o.fields) !== JSON.stringify(g) && !!o.fields.key_id && !!o.fields.key_format && (o.fields.key_format === "jwk" && !!o.fields.jwk || o.fields.key_format === "pem" && !!o.fields.private_key && !!o.fields.public_key)), B = (n) => {
2586
2595
  var v, L, Q, oe;
2587
- o.fields.key_id = (s == null ? void 0 : s.kid) || "", o.fields.name = (s == null ? void 0 : s.name) || "", o.fields.tags = ((v = s == null ? void 0 : s.tags) == null ? void 0 : v.join(", ")) || "", o.fields.key_set = ((L = s == null ? void 0 : s.set) == null ? void 0 : L.id) || "", o.fields.key_format = s != null && s.pem ? "pem" : "jwk", o.fields.jwk = (s == null ? void 0 : s.jwk) || "", o.fields.private_key = ((Q = s == null ? void 0 : s.pem) == null ? void 0 : Q.private_key) || "", o.fields.public_key = ((oe = s == null ? void 0 : s.pem) == null ? void 0 : oe.public_key) || "", o.fields.key_set && ($.value = !1), Object.assign(g, o.fields);
2596
+ o.fields.key_id = (n == null ? void 0 : n.kid) || "", o.fields.name = (n == null ? void 0 : n.name) || "", o.fields.tags = ((v = n == null ? void 0 : n.tags) == null ? void 0 : v.join(", ")) || "", o.fields.key_set = ((L = n == null ? void 0 : n.set) == null ? void 0 : L.id) || "", o.fields.key_format = n != null && n.pem ? "pem" : "jwk", o.fields.jwk = (n == null ? void 0 : n.jwk) || "", o.fields.private_key = ((Q = n == null ? void 0 : n.pem) == null ? void 0 : Q.private_key) || "", o.fields.public_key = ((oe = n == null ? void 0 : n.pem) == null ? void 0 : oe.public_key) || "", o.fields.key_set && (K.value = !1), Object.assign(g, o.fields);
2588
2597
  }, c = () => {
2589
2598
  a.push(t.config.cancelRoute);
2590
2599
  }, d = C(() => {
2591
2600
  var v, L;
2592
- let s = `${t.config.apiBaseUrl}${ye.form[t.config.app][b.value]}`;
2593
- return t.config.app === "konnect" ? s = s.replace(/{controlPlaneId}/gi, ((v = t.config) == null ? void 0 : v.controlPlaneId) || "") : t.config.app === "kongManager" && (s = s.replace(/\/{workspace}/gi, (L = t.config) != null && L.workspace ? `/${t.config.workspace}` : "")), s = s.replace(/{id}/gi, t.keyId), s;
2601
+ let n = `${t.config.apiBaseUrl}${ye.form[t.config.app][b.value]}`;
2602
+ return t.config.app === "konnect" ? n = n.replace(/{controlPlaneId}/gi, ((v = t.config) == null ? void 0 : v.controlPlaneId) || "") : t.config.app === "kongManager" && (n = n.replace(/\/{workspace}/gi, (L = t.config) != null && L.workspace ? `/${t.config.workspace}` : "")), n = n.replace(/{id}/gi, t.keyId), n;
2594
2603
  }), m = async () => {
2595
- var s, v, L, Q, oe, D, ce, ge;
2604
+ var n, v, L, Q, oe, D, ce, ge;
2596
2605
  try {
2597
2606
  o.isReadonly = !0;
2598
2607
  const N = {
2599
2608
  kid: o.fields.key_id,
2600
2609
  name: o.fields.name || null,
2601
- tags: ((L = (v = (s = o.fields.tags) == null ? void 0 : s.split(",")) == null ? void 0 : v.map((V) => String(V || "").trim())) == null ? void 0 : L.filter((V) => V !== "")) || [],
2610
+ tags: ((L = (v = (n = o.fields.tags) == null ? void 0 : n.split(",")) == null ? void 0 : v.map((R) => String(R || "").trim())) == null ? void 0 : L.filter((R) => R !== "")) || [],
2602
2611
  set: o.fields.key_set ? { id: o.fields.key_set } : null,
2603
2612
  jwk: o.fields.key_format === "jwk" ? o.fields.jwk : null,
2604
2613
  pem: o.fields.key_format === "pem" ? { private_key: o.fields.private_key, public_key: o.fields.public_key } : null
2605
2614
  };
2606
2615
  let Y;
2607
2616
  if (b.value === "create" ? Y = await _.post(d.value, N) : b.value === "edit" && (Y = ((Q = t.config) == null ? void 0 : Q.app) === "konnect" ? await _.put(d.value, N) : await _.patch(d.value, N)), Y) {
2608
- const { data: V } = Y;
2609
- o.fields.key_id = (V == null ? void 0 : V.kid) || "", o.fields.name = (V == null ? void 0 : V.name) || "", o.fields.tags = ((oe = V == null ? void 0 : V.tags) == null ? void 0 : oe.join(", ")) || "", o.fields.key_set = ((D = V == null ? void 0 : V.set) == null ? void 0 : D.id) || "", o.fields.key_format = V != null && V.pem ? "pem" : "jwk", o.fields.jwk = (V == null ? void 0 : V.jwk) || "", o.fields.private_key = ((ce = V == null ? void 0 : V.pem) == null ? void 0 : ce.private_key) || "", o.fields.public_key = ((ge = V == null ? void 0 : V.pem) == null ? void 0 : ge.public_key) || "", Object.assign(g, o.fields), l("update", Y == null ? void 0 : Y.data);
2617
+ const { data: R } = Y;
2618
+ o.fields.key_id = (R == null ? void 0 : R.kid) || "", o.fields.name = (R == null ? void 0 : R.name) || "", o.fields.tags = ((oe = R == null ? void 0 : R.tags) == null ? void 0 : oe.join(", ")) || "", o.fields.key_set = ((D = R == null ? void 0 : R.set) == null ? void 0 : D.id) || "", o.fields.key_format = R != null && R.pem ? "pem" : "jwk", o.fields.jwk = (R == null ? void 0 : R.jwk) || "", o.fields.private_key = ((ce = R == null ? void 0 : R.pem) == null ? void 0 : ce.private_key) || "", o.fields.public_key = ((ge = R == null ? void 0 : R.pem) == null ? void 0 : ge.public_key) || "", Object.assign(g, o.fields), l("update", Y == null ? void 0 : Y.data);
2610
2619
  }
2611
2620
  } catch (N) {
2612
- o.errorMessage = n(N), l("error", N);
2621
+ o.errorMessage = s(N), l("error", N);
2613
2622
  } finally {
2614
2623
  o.isReadonly = !1;
2615
2624
  }
2616
2625
  }, {
2617
2626
  debouncedQueryChange: k,
2618
- loading: P,
2627
+ loading: M,
2619
2628
  allRecords: f,
2620
2629
  error: y,
2621
2630
  validationError: I,
2622
2631
  loadItems: z,
2623
2632
  results: J
2624
- } = al(t.config, ye.form[t.config.app].keySets, void 0, {
2633
+ } = tl(t.config, ye.form[t.config.app].keySets, void 0, {
2625
2634
  fetchedItemsKey: "data",
2626
2635
  searchKeys: ["id", "name"]
2627
- }), $ = T(!0), E = (s) => {
2628
- $.value = !s, (!s || s !== o.fields.key_set && s !== g.key_set) && k(s);
2629
- }, A = C(() => y.value ? i("keys.errors.key_sets.fetch") : ""), F = C(() => I.value ? i("keys.errors.key_sets.invalid") : ""), te = T(0), re = C(() => f.value === void 0), le = T(/* @__PURE__ */ new Set()), be = C(() => Array.from(le.value).map((v) => ({
2636
+ }), K = T(!0), A = (n) => {
2637
+ K.value = !n, (!n || n !== o.fields.key_set && n !== g.key_set) && k(n);
2638
+ }, q = C(() => y.value ? i("keys.errors.key_sets.fetch") : ""), F = C(() => I.value ? i("keys.errors.key_sets.invalid") : ""), te = T(0), re = C(() => f.value === void 0), le = T(/* @__PURE__ */ new Set()), be = C(() => Array.from(le.value).map((v) => ({
2630
2639
  name: v.name || "",
2631
2640
  // can't use name for label or it tries to search => 404
2632
2641
  label: "",
2633
2642
  // leave it blank so no flicker when used with selected-item-template
2634
2643
  value: v.id,
2635
2644
  selected: o.fields.key_set === v.id
2636
- }))), me = (s) => {
2645
+ }))), me = (n) => {
2637
2646
  le.value.clear();
2638
2647
  let v;
2639
- for (v of s)
2648
+ for (v of n)
2640
2649
  le.value.add(v);
2641
2650
  };
2642
- return de(J, (s) => {
2643
- me(s);
2651
+ return de(J, (n) => {
2652
+ me(n);
2644
2653
  }, { immediate: !0, deep: !0 }), de(be, () => {
2645
2654
  te.value++;
2646
- }, { immediate: !0, deep: !0 }), Ie(async () => {
2655
+ }, { immediate: !0, deep: !0 }), Ke(async () => {
2647
2656
  await z();
2648
- }), (s, v) => {
2657
+ }), (n, v) => {
2649
2658
  const L = j("KInput"), Q = j("KSelect"), oe = j("KTextArea");
2650
- return u(), K("div", sl, [
2651
- S(r(ha), {
2659
+ return u(), $("div", nl, [
2660
+ S(r(ba), {
2652
2661
  "can-submit": O.value,
2653
2662
  config: e.config,
2654
2663
  "edit-id": e.keyId,
2655
- "error-message": o.errorMessage || A.value,
2656
- "fetch-url": M.value,
2664
+ "error-message": o.errorMessage || q.value,
2665
+ "fetch-url": E.value,
2657
2666
  "is-readonly": o.isReadonly,
2658
2667
  onCancel: c,
2659
- "onFetch:error": v[8] || (v[8] = (D) => s.$emit("error", D)),
2668
+ "onFetch:error": v[8] || (v[8] = (D) => n.$emit("error", D)),
2660
2669
  "onFetch:success": B,
2661
- onLoading: v[9] || (v[9] = (D) => s.$emit("loading", D)),
2670
+ onLoading: v[9] || (v[9] = (D) => n.$emit("loading", D)),
2662
2671
  onSubmit: m
2663
2672
  }, {
2664
2673
  default: p(() => [
2665
- S(r(Ne), {
2674
+ S(r(De), {
2666
2675
  description: r(i)("keys.form.sections.general.description"),
2667
2676
  title: r(i)("keys.form.sections.general.title")
2668
2677
  }, {
@@ -2697,35 +2706,35 @@ const Ze = (e, l) => {
2697
2706
  "onUpdate:modelValue": v[2] || (v[2] = (D) => o.fields.key_set = D),
2698
2707
  appearance: "select",
2699
2708
  autosuggest: "",
2700
- class: pe({ "k-select-placeholder": $.value }),
2709
+ class: pe({ "k-select-placeholder": K.value }),
2701
2710
  clearable: w.value,
2702
2711
  "data-testid": "key-form-key-set",
2703
2712
  "dropdown-footer-text": re.value ? r(i)("keys.form.fields.key_set.footer") : void 0,
2704
2713
  "enable-filtering": "",
2705
2714
  items: be.value,
2706
2715
  label: r(i)("keys.form.fields.key_set.label"),
2707
- loading: r(P),
2716
+ loading: r(M),
2708
2717
  placeholder: r(i)("keys.form.fields.key_set.placeholder"),
2709
- readonly: R.value,
2718
+ readonly: P.value,
2710
2719
  width: "100%",
2711
- onQueryChange: E
2720
+ onQueryChange: A
2712
2721
  }, {
2713
2722
  loading: p(() => [
2714
- q("div", null, x(r(i)("keys.actions.loading")), 1)
2723
+ U("div", null, x(r(i)("keys.actions.loading")), 1)
2715
2724
  ]),
2716
2725
  empty: p(() => [
2717
- q("div", rl, x(r(i)("keys.search.no_results")), 1)
2726
+ U("div", sl, x(r(i)("keys.search.no_results")), 1)
2718
2727
  ]),
2719
2728
  "selected-item-template": p(({ item: D }) => [
2720
- q("div", null, x(D.name), 1)
2729
+ U("div", null, x(D.name), 1)
2721
2730
  ]),
2722
2731
  "item-template": p(({ item: D }) => [
2723
- q("div", dl, x(D.name), 1),
2724
- q("div", cl, x(D.value), 1)
2732
+ U("div", rl, x(D.name), 1),
2733
+ U("div", dl, x(D.value), 1)
2725
2734
  ]),
2726
2735
  _: 1
2727
2736
  }, 8, ["modelValue", "class", "clearable", "dropdown-footer-text", "items", "label", "loading", "placeholder", "readonly"]),
2728
- F.value ? (u(), K("p", ul, x(F.value), 1)) : X("", !0),
2737
+ F.value ? (u(), $("p", cl, x(F.value), 1)) : X("", !0),
2729
2738
  S(L, {
2730
2739
  modelValue: o.fields.tags,
2731
2740
  "onUpdate:modelValue": v[3] || (v[3] = (D) => o.fields.tags = D),
@@ -2742,13 +2751,13 @@ const Ze = (e, l) => {
2742
2751
  ]),
2743
2752
  _: 1
2744
2753
  }, 8, ["description", "title"]),
2745
- S(r(Ne), {
2754
+ S(r(De), {
2746
2755
  description: r(i)("keys.form.sections.keys.description"),
2747
2756
  "has-divider": "",
2748
2757
  title: r(i)("keys.form.sections.keys.title")
2749
2758
  }, {
2750
2759
  default: p(() => [
2751
- q("div", pl, [
2760
+ U("div", ul, [
2752
2761
  S(Q, {
2753
2762
  modelValue: o.fields.key_format,
2754
2763
  "onUpdate:modelValue": v[4] || (v[4] = (D) => o.fields.key_format = D),
@@ -2761,7 +2770,7 @@ const Ze = (e, l) => {
2761
2770
  width: "100%"
2762
2771
  }, null, 8, ["modelValue", "label", "readonly"])
2763
2772
  ]),
2764
- o.fields.key_format === "jwk" ? (u(), U(oe, {
2773
+ o.fields.key_format === "jwk" ? (u(), V(oe, {
2765
2774
  key: 0,
2766
2775
  modelValue: o.fields.jwk,
2767
2776
  "onUpdate:modelValue": v[5] || (v[5] = (D) => o.fields.jwk = D),
@@ -2774,7 +2783,7 @@ const Ze = (e, l) => {
2774
2783
  readonly: o.isReadonly,
2775
2784
  required: ""
2776
2785
  }, null, 8, ["modelValue", "label", "label-attributes", "placeholder", "readonly"])) : X("", !0),
2777
- o.fields.key_format === "pem" ? (u(), U(oe, {
2786
+ o.fields.key_format === "pem" ? (u(), V(oe, {
2778
2787
  key: 1,
2779
2788
  modelValue: o.fields.private_key,
2780
2789
  "onUpdate:modelValue": v[6] || (v[6] = (D) => o.fields.private_key = D),
@@ -2786,7 +2795,7 @@ const Ze = (e, l) => {
2786
2795
  readonly: o.isReadonly,
2787
2796
  required: ""
2788
2797
  }, null, 8, ["modelValue", "label", "placeholder", "readonly"])) : X("", !0),
2789
- o.fields.key_format === "pem" ? (u(), U(oe, {
2798
+ o.fields.key_format === "pem" ? (u(), V(oe, {
2790
2799
  key: 2,
2791
2800
  modelValue: o.fields.public_key,
2792
2801
  "onUpdate:modelValue": v[7] || (v[7] = (D) => o.fields.public_key = D),
@@ -2808,7 +2817,7 @@ const Ze = (e, l) => {
2808
2817
  };
2809
2818
  }
2810
2819
  });
2811
- const Sl = /* @__PURE__ */ Ze(yl, [["__scopeId", "data-v-8e9c13a2"]]), fl = { class: "kong-ui-entities-keys-entity-config-card" }, ml = { key: 2 }, Il = /* @__PURE__ */ Z({
2820
+ const wl = /* @__PURE__ */ Ze(pl, [["__scopeId", "data-v-8e9c13a2"]]), yl = { class: "kong-ui-entities-keys-entity-config-card" }, fl = { key: 2 }, Sl = /* @__PURE__ */ Z({
2812
2821
  __name: "KeyConfigCard",
2813
2822
  props: {
2814
2823
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -2828,35 +2837,35 @@ const Sl = /* @__PURE__ */ Ze(yl, [["__scopeId", "data-v-8e9c13a2"]]), fl = { cl
2828
2837
  emits: ["loading", "fetch:error", "fetch:success", "copy:success", "navigation-click"],
2829
2838
  setup(e, { emit: l }) {
2830
2839
  var c;
2831
- const t = e, { axiosInstance: a } = Me({
2840
+ const t = e, { axiosInstance: a } = Ae({
2832
2841
  headers: (c = t.config) == null ? void 0 : c.requestHeaders
2833
- }), { convertKeyToTitle: i } = ll(), { i18n: { t: n } } = je.useI18n(), _ = C(() => ye.form[t.config.app].edit), M = C(() => {
2842
+ }), { convertKeyToTitle: i } = al(), { i18n: { t: s } } = Ee.useI18n(), _ = C(() => ye.form[t.config.app].edit), E = C(() => {
2834
2843
  var d;
2835
2844
  return (d = ye.form[t.config.app]) == null ? void 0 : d.getKeySet;
2836
- }), b = T(), o = T({}), g = T(""), h = T(""), R = T(!1), w = async (d) => {
2837
- var k, P, f;
2845
+ }), b = T(), o = T({}), g = T(""), h = T(""), P = T(!1), w = async (d) => {
2846
+ var k, M, f;
2838
2847
  if (b.value = d, g.value = (k = d == null ? void 0 : d.set) == null ? void 0 : k.id, l("fetch:success", d), await O(d), !g.value)
2839
2848
  return;
2840
- let m = `${t.config.apiBaseUrl}${M.value}`;
2841
- t.config.app === "konnect" ? m = m.replace(/{controlPlaneId}/gi, ((P = t.config) == null ? void 0 : P.controlPlaneId) || "").replace(/{keySetId}/gi, g.value || "") : t.config.app === "kongManager" && (m = m.replace(/\/{workspace}/gi, (f = t.config) != null && f.workspace ? `/${t.config.workspace}` : "").replace(/{keySetId}/gi, g.value || ""));
2849
+ let m = `${t.config.apiBaseUrl}${E.value}`;
2850
+ t.config.app === "konnect" ? m = m.replace(/{controlPlaneId}/gi, ((M = t.config) == null ? void 0 : M.controlPlaneId) || "").replace(/{keySetId}/gi, g.value || "") : t.config.app === "kongManager" && (m = m.replace(/\/{workspace}/gi, (f = t.config) != null && f.workspace ? `/${t.config.workspace}` : "").replace(/{keySetId}/gi, g.value || ""));
2842
2851
  try {
2843
- R.value = !0;
2852
+ P.value = !0;
2844
2853
  const { data: y } = await a.get(m);
2845
2854
  h.value = (y == null ? void 0 : y.name) || (y == null ? void 0 : y.id);
2846
2855
  } catch (y) {
2847
2856
  l("fetch:error", y);
2848
2857
  } finally {
2849
- R.value = !1;
2858
+ P.value = !1;
2850
2859
  }
2851
2860
  }, O = async (d) => {
2852
2861
  var m, k;
2853
2862
  try {
2854
2863
  if (d.jwk) {
2855
- const P = JSON.parse(d.jwk);
2856
- Object.keys(P).forEach((f) => {
2864
+ const M = JSON.parse(d.jwk);
2865
+ Object.keys(M).forEach((f) => {
2857
2866
  o.value = {
2858
2867
  ...o.value,
2859
- [`jwk.${f}`]: P[f]
2868
+ [`jwk.${f}`]: M[f]
2860
2869
  };
2861
2870
  });
2862
2871
  } else
@@ -2864,47 +2873,47 @@ const Sl = /* @__PURE__ */ Ze(yl, [["__scopeId", "data-v-8e9c13a2"]]), fl = { cl
2864
2873
  "pem.public_key": (m = d == null ? void 0 : d.pem) == null ? void 0 : m.public_key,
2865
2874
  "pem.private_key": (k = d == null ? void 0 : d.pem) == null ? void 0 : k.private_key
2866
2875
  };
2867
- } catch (P) {
2868
- l("fetch:error", P);
2876
+ } catch (M) {
2877
+ l("fetch:error", M);
2869
2878
  }
2870
2879
  return o;
2871
2880
  }, B = T({
2872
2881
  id: {},
2873
2882
  name: {
2874
- tooltip: n("keys.form.fields.name.tooltip")
2883
+ tooltip: s("keys.form.fields.name.tooltip")
2875
2884
  },
2876
2885
  last_updated: {},
2877
2886
  created: {},
2878
2887
  set: {
2879
- label: n("keys.form.fields.set.label"),
2888
+ label: s("keys.form.fields.set.label"),
2880
2889
  section: ae.Basic,
2881
- tooltip: n("keys.form.fields.set.tooltip"),
2890
+ tooltip: s("keys.form.fields.set.tooltip"),
2882
2891
  order: 5
2883
2892
  },
2884
2893
  kid: {
2885
- label: n("keys.form.fields.kid.label"),
2894
+ label: s("keys.form.fields.kid.label"),
2886
2895
  section: ae.Basic,
2887
- tooltip: n("keys.form.fields.kid.tooltip")
2896
+ tooltip: s("keys.form.fields.kid.tooltip")
2888
2897
  },
2889
2898
  tags: {
2890
- tooltip: n("keys.form.fields.tags.tooltip")
2899
+ tooltip: s("keys.form.fields.tags.tooltip")
2891
2900
  },
2892
2901
  // advanced fields
2893
2902
  jwk: {
2894
- label: n("keys.form.fields.jwk.label"),
2903
+ label: s("keys.form.fields.jwk.label"),
2895
2904
  type: H.Json
2896
2905
  },
2897
2906
  pem: {
2898
2907
  section: ae.Advanced,
2899
- label: n("keys.form.fields.key_format.options.pem"),
2908
+ label: s("keys.form.fields.key_format.options.pem"),
2900
2909
  type: H.Json
2901
2910
  }
2902
2911
  });
2903
2912
  return (d, m) => {
2904
- var P, f;
2913
+ var M, f;
2905
2914
  const k = j("KSkeleton");
2906
- return u(), K("div", fl, [
2907
- S(r(va), {
2915
+ return u(), $("div", yl, [
2916
+ S(r(ma), {
2908
2917
  config: e.config,
2909
2918
  "config-schema": B.value,
2910
2919
  "fetch-url": _.value,
@@ -2915,11 +2924,11 @@ const Sl = /* @__PURE__ */ Ze(yl, [["__scopeId", "data-v-8e9c13a2"]]), fl = { cl
2915
2924
  onLoading: m[2] || (m[2] = (y) => d.$emit("loading", y))
2916
2925
  }, fe({
2917
2926
  set: p(({ row: y }) => [
2918
- R.value ? (u(), U(k, {
2927
+ P.value ? (u(), V(k, {
2919
2928
  key: 0,
2920
2929
  "data-testid": "key-set-name-loader",
2921
2930
  type: "spinner"
2922
- })) : y.value && y.value.id === g.value && h.value ? (u(), U(r(Ye), {
2931
+ })) : y.value && y.value.id === g.value && h.value ? (u(), V(r(Ye), {
2923
2932
  key: 1,
2924
2933
  item: {
2925
2934
  key: y.value.id,
@@ -2927,14 +2936,14 @@ const Sl = /* @__PURE__ */ Ze(yl, [["__scopeId", "data-v-8e9c13a2"]]), fl = { cl
2927
2936
  type: r(H).LinkInternal
2928
2937
  },
2929
2938
  onClick: (I) => d.$emit("navigation-click", y.value.id, "key-sets")
2930
- }, null, 8, ["item", "onClick"])) : (u(), K("div", ml, x("–")))
2939
+ }, null, 8, ["item", "onClick"])) : (u(), $("div", fl, x("–")))
2931
2940
  ]),
2932
2941
  _: 2
2933
2942
  }, [
2934
- (P = b.value) != null && P.jwk ? {
2943
+ (M = b.value) != null && M.jwk ? {
2935
2944
  name: "jwk",
2936
2945
  fn: p(() => [
2937
- (u(!0), K(ne, null, ie(Object.keys(o.value), (y) => (u(), U(r(Se), {
2946
+ (u(!0), $(ne, null, ie(Object.keys(o.value), (y) => (u(), V(r(Ie), {
2938
2947
  key: y,
2939
2948
  "data-testid": `${y}`,
2940
2949
  item: {
@@ -2949,7 +2958,7 @@ const Sl = /* @__PURE__ */ Ze(yl, [["__scopeId", "data-v-8e9c13a2"]]), fl = { cl
2949
2958
  (f = b.value) != null && f.pem ? {
2950
2959
  name: "pem",
2951
2960
  fn: p(() => [
2952
- (u(!0), K(ne, null, ie(Object.keys(o.value), (y) => (u(), U(r(Se), {
2961
+ (u(!0), $(ne, null, ie(Object.keys(o.value), (y) => (u(), V(r(Ie), {
2953
2962
  key: y,
2954
2963
  "data-testid": `${y}`,
2955
2964
  item: {
@@ -2967,7 +2976,7 @@ const Sl = /* @__PURE__ */ Ze(yl, [["__scopeId", "data-v-8e9c13a2"]]), fl = { cl
2967
2976
  }
2968
2977
  });
2969
2978
  export {
2970
- Il as KeyConfigCard,
2971
- Sl as KeyForm,
2972
- wl as KeyList
2979
+ Sl as KeyConfigCard,
2980
+ wl as KeyForm,
2981
+ Cl as KeyList
2973
2982
  };