@kong-ui-public/entities-consumers 2.7.0 → 2.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
- import { defineComponent as W, ref as N, computed as $, watch as ye, renderSlot as Q, createCommentVNode as G, unref as f, onBeforeMount as yt, resolveComponent as P, openBlock as m, createBlock as R, createSlots as _e, withCtx as b, createElementVNode as q, createVNode as T, createTextVNode as H, toDisplayString as M, renderList as ce, createElementBlock as O, withModifiers as ct, withDirectives as be, vShow as ke, Fragment as de, normalizeClass as we, withKeys as yr, useSlots as vt, useCssVars as un, inject as vr, onMounted as br, onUnmounted as kr, resolveDynamicComponent as je, normalizeStyle as We, normalizeProps as Cr, guardReactiveProps as wr, mergeProps as Ir, pushScopeId as Ye, popScopeId as Ze, reactive as Bt } from "vue";
1
+ import { defineComponent as W, ref as N, computed as $, watch as ye, renderSlot as Q, createCommentVNode as G, unref as m, onBeforeMount as yt, resolveComponent as P, openBlock as g, createBlock as R, createSlots as xe, withCtx as k, createElementVNode as q, createVNode as T, createTextVNode as H, toDisplayString as M, renderList as ce, createElementBlock as O, withModifiers as ct, withDirectives as be, vShow as ke, Fragment as de, normalizeClass as we, withKeys as yr, useSlots as vt, useCssVars as un, inject as vr, onMounted as br, onUnmounted as kr, resolveDynamicComponent as je, normalizeStyle as We, normalizeProps as Cr, guardReactiveProps as wr, mergeProps as Ir, pushScopeId as Ye, popScopeId as Ze, reactive as Bt } from "vue";
2
2
  import { useRouter as bt } from "vue-router";
3
3
  import { createI18n as cn, i18nTComponent as dn } from "@kong-ui-public/i18n";
4
4
  import Lt from "axios";
5
- import { BadgeMethodAppearances as Ar } from "@kong/kongponents";
6
- const xr = {
5
+ import { BadgeMethodAppearances as _r } from "@kong/kongponents";
6
+ const Ar = {
7
7
  list: {
8
8
  table_headers: {
9
9
  username: "Username",
@@ -99,9 +99,9 @@ const xr = {
99
99
  }
100
100
  }
101
101
  }, Sr = {
102
- consumers: xr
102
+ consumers: Ar
103
103
  };
104
- function _r() {
104
+ function xr() {
105
105
  const e = cn("en-us", Sr);
106
106
  return {
107
107
  i18n: e,
@@ -110,7 +110,7 @@ function _r() {
110
110
  };
111
111
  }
112
112
  const Qe = {
113
- useI18n: _r
113
+ useI18n: xr
114
114
  }, ot = "/api/runtime_groups/{controlPlaneId}", Me = "/{workspace}", $e = {
115
115
  list: {
116
116
  konnect: {
@@ -137,7 +137,7 @@ const Qe = {
137
137
  }
138
138
  }
139
139
  };
140
- var pn = /* @__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))(pn || {}), dt = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(dt || {}), xe = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(xe || {}), Y = /* @__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))(Y || {}), se = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(se || {});
140
+ var pn = /* @__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))(pn || {}), dt = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(dt || {}), Ae = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(Ae || {}), Y = /* @__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))(Y || {}), se = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(se || {});
141
141
  function $r() {
142
142
  return {
143
143
  getAxiosInstance: (e = {}) => {
@@ -380,79 +380,79 @@ function Rr(e, n, t, r = {
380
380
  t || (t = "100");
381
381
  const { axiosInstance: a } = kt({
382
382
  headers: e.requestHeaders
383
- }), { i18n: { t: o } } = Ct(), { debounce: i } = jr(), l = i(async (y) => {
384
- await Z(y);
385
- }, 200), s = N(!1), u = N(""), d = N(""), c = N([]), C = N([]), g = N(void 0), x = f(n);
386
- let w = `${e.apiBaseUrl}${x}`;
383
+ }), { i18n: { t: o } } = Ct(), { debounce: i } = jr(), l = i(async (v) => {
384
+ await Z(v);
385
+ }, 200), s = N(!1), u = N(""), d = N(""), c = N([]), h = N([]), f = N(void 0), _ = m(n);
386
+ let w = `${e.apiBaseUrl}${_}`;
387
387
  e.app === "konnect" ? w = w.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (w = w.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
388
388
  const { isValidUuid: A } = fn(), U = async () => {
389
389
  try {
390
390
  s.value = !0;
391
- const { data: y } = await a.get(`${w}?size=${t}`);
392
- y != null && y.next || (g.value = r.fetchedItemsKey in y ? y[r.fetchedItemsKey] : []), C.value = r.fetchedItemsKey in y ? y[r.fetchedItemsKey] : [], c.value = C.value;
391
+ const { data: v } = await a.get(`${w}?size=${t}`);
392
+ v != null && v.next || (f.value = r.fetchedItemsKey in v ? v[r.fetchedItemsKey] : []), h.value = r.fetchedItemsKey in v ? v[r.fetchedItemsKey] : [], c.value = h.value;
393
393
  } catch {
394
394
  c.value = [], u.value = o("debouncedFilter.errors.fetch");
395
395
  } finally {
396
396
  s.value = !1;
397
397
  }
398
- }, B = N(""), Z = async (y) => {
399
- var h, p, k;
400
- if (B.value !== y)
401
- if (B.value = y || "", g.value === void 0)
398
+ }, B = N(""), Z = async (v) => {
399
+ var y, p, C;
400
+ if (B.value !== v)
401
+ if (B.value = v || "", f.value === void 0)
402
402
  try {
403
403
  if (s.value = !0, u.value = "", d.value = "", e.app === "konnect") {
404
- let v = w + "";
405
- y && (v += `/${y}`);
406
- const { data: I } = await a.get(`${v}?size=${t}`);
404
+ let b = w + "";
405
+ v && (b += `/${v}`);
406
+ const { data: I } = await a.get(`${b}?size=${t}`);
407
407
  r.fetchedItemsKey in I ? c.value = I[r.fetchedItemsKey] : I != null && I.id ? c.value = [I] : c.value = [];
408
- } else if (y) {
409
- const v = [];
410
- A(y) && r.searchKeys.includes("id") ? v.push((async () => {
411
- const { data: S } = await a.get(`${w}/${y}`);
408
+ } else if (v) {
409
+ const b = [];
410
+ A(v) && r.searchKeys.includes("id") ? b.push((async () => {
411
+ const { data: S } = await a.get(`${w}/${v}`);
412
412
  return [S[r.fetchedItemsKey] ?? S];
413
- })()) : v.push(
413
+ })()) : b.push(
414
414
  ...r.searchKeys.filter((S) => S !== "id").map(async (S) => {
415
- const { data: F } = await a.get(`${w}?${S}=${y}`);
415
+ const { data: F } = await a.get(`${w}?${S}=${v}`);
416
416
  return F[r.fetchedItemsKey];
417
417
  })
418
418
  );
419
- const I = await Promise.all(v), L = /* @__PURE__ */ new Set();
420
- c.value = [], (h = I == null ? void 0 : I.forEach) == null || h.call(I, (S) => {
419
+ const I = await Promise.all(b), L = /* @__PURE__ */ new Set();
420
+ c.value = [], (y = I == null ? void 0 : I.forEach) == null || y.call(I, (S) => {
421
421
  var F;
422
- (F = S == null ? void 0 : S.forEach) == null || F.call(S, (_) => {
423
- L.has(_.id) || (L.add(_.id), c.value.push(_));
422
+ (F = S == null ? void 0 : S.forEach) == null || F.call(S, (x) => {
423
+ L.has(x.id) || (L.add(x.id), c.value.push(x));
424
424
  });
425
425
  });
426
426
  } else
427
- c.value = C.value;
428
- } catch (v) {
429
- ((p = v == null ? void 0 : v.response) == null ? void 0 : p.status) === 404 ? d.value = o("debouncedFilter.errors.invalid") : (c.value = [], u.value = o("debouncedFilter.errors.fetch"));
427
+ c.value = h.value;
428
+ } catch (b) {
429
+ ((p = b == null ? void 0 : b.response) == null ? void 0 : p.status) === 404 ? d.value = o("debouncedFilter.errors.invalid") : (c.value = [], u.value = o("debouncedFilter.errors.fetch"));
430
430
  } finally {
431
431
  s.value = !1;
432
432
  }
433
433
  else
434
- s.value = !0, d.value = "", y ? (c.value = (k = g.value) == null ? void 0 : k.filter((v) => {
434
+ s.value = !0, d.value = "", v ? (c.value = (C = f.value) == null ? void 0 : C.filter((b) => {
435
435
  var I;
436
436
  let L = !1;
437
437
  for (const S of r.searchKeys) {
438
- const F = typeof v[S] == "string" ? (I = v[S]) == null ? void 0 : I.toLowerCase() : v[S];
439
- F != null && F.includes(y.toLowerCase()) && (L = !0);
438
+ const F = typeof b[S] == "string" ? (I = b[S]) == null ? void 0 : I.toLowerCase() : b[S];
439
+ F != null && F.includes(v.toLowerCase()) && (L = !0);
440
440
  }
441
441
  return L;
442
- }), (!c.value || !c.value.length) && (d.value = o("debouncedFilter.errors.invalid"))) : c.value = g.value, s.value = !1;
442
+ }), (!c.value || !c.value.length) && (d.value = o("debouncedFilter.errors.invalid"))) : c.value = f.value, s.value = !1;
443
443
  };
444
444
  return {
445
445
  loading: s,
446
446
  error: u,
447
447
  validationError: d,
448
448
  results: c,
449
- allRecords: g,
449
+ allRecords: f,
450
450
  loadItems: U,
451
451
  debouncedQueryChange: l
452
452
  };
453
453
  }
454
454
  function Vr(e, n) {
455
- const t = f(n), r = $(
455
+ const t = m(n), r = $(
456
456
  () => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${t}`) : new URL(t)
457
457
  );
458
458
  return r.value.search = "", (a) => `${r.value.href}/${a}`;
@@ -499,66 +499,72 @@ function zr(e) {
499
499
  }
500
500
  }
501
501
  function mn(e, n) {
502
- const t = N(f(e)), r = N(f(n)), a = $(
502
+ const t = N(m(e)), r = N(m(n)), a = $(
503
503
  () => !!(t.value.app === "konnect" || t.value.isExactMatch)
504
504
  ), o = $(
505
505
  () => r.value.startsWith("/") ? new URL(`${window.location.origin}${r.value}`) : new URL(r.value)
506
506
  );
507
507
  return (i) => {
508
- const { page: l, pageSize: s, offset: u, sortColumnKey: d, sortColumnOrder: c, query: C } = i;
508
+ const { page: l, pageSize: s, offset: u, sortColumnKey: d, sortColumnOrder: c, query: h } = i;
509
509
  try {
510
- let g = new URL(o.value.href);
511
- return a.value && C ? (g.search = "", g = t.value.isExactMatch ? new URL(`${g.href}/${C}/`) : new URL(`${g.href}?filter[name][contains]=${C}`)) : (a.value || new URLSearchParams(C).forEach((x, w) => {
512
- g.searchParams.append(w, x);
513
- }), d && g.searchParams.append("sort_by", d), c === "desc" && g.searchParams.append("sort_desc", "1"), g.searchParams.append("size", String(s))), u && l !== 1 && g.searchParams.append("offset", String(u)), g.href;
514
- } catch (g) {
515
- return console.error("RouteList(fetcher)", g), r.value;
510
+ let f = new URL(o.value.href);
511
+ return a.value && h ? (f.search = "", f = t.value.isExactMatch ? new URL(`${f.href}/${h}/`) : new URL(`${f.href}?filter[name][contains]=${h}`)) : (a.value || new URLSearchParams(h).forEach((_, w) => {
512
+ f.searchParams.append(w, _);
513
+ }), d && f.searchParams.append("sort_by", d), c === "desc" && f.searchParams.append("sort_desc", "1"), f.searchParams.append("size", String(s))), u && l !== 1 && f.searchParams.append("offset", String(u)), f.href;
514
+ } catch (f) {
515
+ return console.error("RouteList(fetcher)", f), r.value;
516
516
  }
517
517
  };
518
518
  }
519
519
  function Gr(e, n, t = "data") {
520
- const r = f(n), { axiosInstance: a } = kt({
521
- headers: e.requestHeaders
522
- }), o = mn(e, r), i = N({
523
- status: xe.Idle
520
+ var r;
521
+ const a = m(n), { axiosInstance: o } = kt({
522
+ ...e.axiosRequestConfig,
523
+ headers: { ...(r = e.axiosRequestConfig) == null ? void 0 : r.headers, ...e.requestHeaders }
524
+ }), i = mn(e, a), l = N({
525
+ status: Ae.Idle
524
526
  });
525
- return { fetcher: async (l) => {
527
+ return { fetcher: async (s) => {
528
+ var u;
526
529
  try {
527
- i.value = { status: xe.Loading };
528
- let s = o(l);
529
- s.includes("filter[name]") && (s = `${s}&page[size]=${l.pageSize}&page[number]=${l.page}`);
530
- const { data: u } = await a.get(s), d = t && t.replace(/[^\w-_]/gi, "");
531
- let c;
532
- u[d] && Array.isArray(u[d]) ? c = u[d] : Array.isArray(u) ? c = u : c = Object.keys(u).length ? [u] : [];
533
- const C = {
534
- data: c,
535
- total: c.length,
536
- ...u.offset ? {
530
+ l.value = { status: Ae.Loading };
531
+ let d = i(s);
532
+ d.includes("filter[name]") && (d = `${d}&page[size]=${s.pageSize}&page[number]=${s.page}`);
533
+ const c = await o.get(d);
534
+ if (c.status >= 400)
535
+ throw c;
536
+ const h = c.data, f = t && t.replace(/[^\w-_]/gi, "");
537
+ let _;
538
+ h[f] && Array.isArray(h[f]) ? _ = h[f] : Array.isArray(h) ? _ = h : _ = Object.keys(h).length ? [h] : [];
539
+ const w = {
540
+ data: _,
541
+ total: _.length,
542
+ ...h.offset ? {
537
543
  pagination: {
538
- offset: u.offset
544
+ offset: h.offset
539
545
  }
540
546
  } : null
541
547
  };
542
- return i.value = {
543
- status: xe.Idle,
544
- response: C
545
- }, C;
546
- } catch (s) {
547
- const u = {
548
+ return l.value = {
549
+ status: Ae.Idle,
550
+ response: w
551
+ }, w;
552
+ } catch (d) {
553
+ const c = {
548
554
  data: [],
549
555
  total: 0
550
556
  };
551
- return l.query && s.response.status === 404 ? (i.value = {
552
- status: xe.NoResults,
553
- response: u,
554
- error: s
555
- }, u) : (i.value = {
556
- status: xe.Error,
557
- response: u,
558
- error: s
559
- }, u);
557
+ return s.query && (((u = d.response) == null ? void 0 : u.status) === 404 || d.status === 404) ? (l.value = {
558
+ status: Ae.NoResults,
559
+ response: c,
560
+ error: d.response ? d : { response: d }
561
+ }, c) : (l.value = {
562
+ status: Ae.Error,
563
+ response: c,
564
+ error: d.response ? d : { response: d }
565
+ }, c);
560
566
  }
561
- }, fetcherState: i };
567
+ }, fetcherState: l };
562
568
  }
563
569
  function Hr() {
564
570
  const e = (t, r = "_") => t ? t.split(r).map((a) => a.toLowerCase() === "id" ? a.toUpperCase() : a.charAt(0).toUpperCase() + a.substring(1)).join(" ") : "", n = /(?:^|[\s-:'"])\w/g;
@@ -670,18 +676,18 @@ const ne = {
670
676
  var s;
671
677
  return n.isArrayItem ? (s = o.value) != null && s.name ? r(o.value.name, "_") : t("baseConfigCard.general.entryTitle", { index: n.index }) : "";
672
678
  });
673
- return (s, u) => (m(), R(je(e.isArrayItem ? "fieldset" : "div"), {
679
+ return (s, u) => (g(), R(je(e.isArrayItem ? "fieldset" : "div"), {
674
680
  class: we(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
675
681
  }, {
676
- default: b(() => [
677
- e.isArrayItem ? (m(), O("legend", ta, [
682
+ default: k(() => [
683
+ e.isArrayItem ? (g(), O("legend", ta, [
678
684
  q("b", null, M(l.value), 1)
679
685
  ])) : G("", !0),
680
- (m(!0), O(de, null, ce(Object.keys(i.value), (d, c) => (m(), R(vn, {
686
+ (g(!0), O(de, null, ce(Object.keys(i.value), (d, c) => (g(), R(vn, {
681
687
  key: `${a.value}-property-${c}`,
682
688
  item: {
683
689
  key: d,
684
- label: f(r)(d),
690
+ label: m(r)(d),
685
691
  value: i.value[d]
686
692
  }
687
693
  }, null, 8, ["item"]))), 128))
@@ -707,14 +713,14 @@ const ne = {
707
713
  const { i18n: { t: n } } = ne.useI18n();
708
714
  return (t, r) => {
709
715
  const a = P("KButton");
710
- return m(), O("div", null, [
716
+ return g(), O("div", null, [
711
717
  T(a, {
712
718
  appearance: "tertiary",
713
719
  class: "navigation-button",
714
720
  onClick: r[0] || (r[0] = (o) => t.$emit("navigation-click", e.item))
715
721
  }, {
716
- default: b(() => [
717
- H(M(e.item.value || f(n)("baseConfigCard.commonFields.link")), 1)
722
+ default: k(() => [
723
+ H(M(e.item.value || m(n)("baseConfigCard.commonFields.link")), 1)
718
724
  ]),
719
725
  _: 1
720
726
  })
@@ -733,11 +739,11 @@ const ne = {
733
739
  const { i18n: { t: n } } = ne.useI18n();
734
740
  return (t, r) => {
735
741
  const a = P("KBadge");
736
- return m(), R(a, {
742
+ return g(), R(a, {
737
743
  appearance: e.status ? "success" : "neutral"
738
744
  }, {
739
- default: b(() => [
740
- H(M(e.status ? f(n)("baseConfigCard.statusBadge.enabledLabel") : f(n)("baseConfigCard.statusBadge.disabledLabel")), 1)
745
+ default: k(() => [
746
+ H(M(e.status ? m(n)("baseConfigCard.statusBadge.enabledLabel") : m(n)("baseConfigCard.statusBadge.disabledLabel")), 1)
741
747
  ]),
742
748
  _: 1
743
749
  }, 8, ["appearance"]);
@@ -766,8 +772,8 @@ const ne = {
766
772
  },
767
773
  emits: ["navigation-click"],
768
774
  setup(e, { emit: n }) {
769
- un((x) => ({
770
- "07753575": d.value ? "none" : `solid ${f(ca)} ${f(la)}`,
775
+ un((_) => ({
776
+ "07753575": d.value ? "none" : `solid ${m(ca)} ${m(la)}`,
771
777
  "32d44ea8": u.value && l.value ? "block" : "flex",
772
778
  "5036b738": u.value && l.value ? "100%" : t.slim ? "50%" : "25%",
773
779
  "5038fd13": u.value && l.value ? "100%" : t.slim ? "50%" : "75%"
@@ -842,8 +848,8 @@ const ne = {
842
848
  attrs: {
843
849
  "data-testid": `${t.item.key}-internal-link`,
844
850
  item: t.item,
845
- onNavigationClick: (x) => {
846
- r("navigation-click", x);
851
+ onNavigationClick: (_) => {
852
+ r("navigation-click", _);
847
853
  }
848
854
  }
849
855
  };
@@ -882,28 +888,28 @@ const ne = {
882
888
  text: t.item.value
883
889
  };
884
890
  }
885
- }), C = N(), { isTruncated: g } = ne.useTruncationDetector(C);
886
- return (x, w) => {
891
+ }), h = N(), { isTruncated: f } = ne.useTruncationDetector(h);
892
+ return (_, w) => {
887
893
  const A = P("KLabel"), U = P("KBadge"), B = P("KCopy"), Z = P("KTooltip");
888
- return m(), O("div", pa, [
894
+ return g(), O("div", pa, [
889
895
  q("div", {
890
896
  class: "config-card-details-label",
891
897
  "data-testid": `${e.item.key}-label`
892
898
  }, [
893
- Q(x.$slots, "label", { item: e.item }, () => [
894
- T(A, { "tooltip-attributes": { maxWidth: "500px" } }, _e({
895
- default: b(() => [
899
+ Q(_.$slots, "label", { item: e.item }, () => [
900
+ T(A, { "tooltip-attributes": { maxWidth: "500px" } }, xe({
901
+ default: k(() => [
896
902
  H(M(e.item.label) + " ", 1)
897
903
  ]),
898
904
  _: 2
899
905
  }, [
900
906
  s.value ? {
901
907
  name: "tooltip",
902
- fn: b(() => [
908
+ fn: k(() => [
903
909
  q("div", {
904
910
  "data-testid": `${e.item.key}-label-tooltip`
905
911
  }, [
906
- Q(x.$slots, "label-tooltip", {}, () => [
912
+ Q(_.$slots, "label-tooltip", {}, () => [
907
913
  H(M(e.item.tooltip), 1)
908
914
  ], !0)
909
915
  ], 8, ma)
@@ -917,74 +923,74 @@ const ne = {
917
923
  class: "config-card-details-value",
918
924
  "data-testid": `${e.item.key}-property-value`
919
925
  }, [
920
- Q(x.$slots, e.item.key, {
926
+ Q(_.$slots, e.item.key, {
921
927
  rowValue: e.item.value
922
928
  }, () => [
923
- l.value ? (m(), O("div", ya, [
924
- (m(), R(je(c.value.tag), Cr(wr(c.value.attrs)), {
925
- default: b(() => [
926
- c.value.additionalComponent === "KBadge" ? (m(), O("div", {
929
+ l.value ? (g(), O("div", ya, [
930
+ (g(), R(je(c.value.tag), Cr(wr(c.value.attrs)), {
931
+ default: k(() => [
932
+ c.value.additionalComponent === "KBadge" ? (g(), O("div", {
927
933
  key: 0,
928
934
  "data-testid": `${e.item.key}-badge-tags`
929
935
  }, [
930
- (m(!0), O(de, null, ce(e.item.value, (y, h) => (m(), R(U, {
931
- key: `${e.item.key}-badge-tag-${h}`,
936
+ (g(!0), O(de, null, ce(e.item.value, (v, y) => (g(), R(U, {
937
+ key: `${e.item.key}-badge-tag-${y}`,
932
938
  class: "config-badge",
933
- "data-testid": `${e.item.key}-badge-tag-${h}`,
934
- tooltip: y,
939
+ "data-testid": `${e.item.key}-badge-tag-${y}`,
940
+ tooltip: v,
935
941
  "truncation-tooltip": ""
936
942
  }, {
937
- default: b(() => [
938
- H(M(y), 1)
943
+ default: k(() => [
944
+ H(M(v), 1)
939
945
  ]),
940
946
  _: 2
941
947
  }, 1032, ["data-testid", "tooltip"]))), 128))
942
948
  ], 8, va)) : G("", !0),
943
- c.value.additionalComponent === "KCopy" ? (m(), O("div", {
949
+ c.value.additionalComponent === "KCopy" ? (g(), O("div", {
944
950
  key: 1,
945
951
  class: "copy-uuid-array",
946
952
  "data-testid": `${e.item.key}-copy-uuid-array`
947
953
  }, [
948
- (m(!0), O(de, null, ce(e.item.value, (y, h) => (m(), R(B, Ir(c.value.childAttrs, {
949
- key: `${e.item.key}-copy-uuid-${h}`,
950
- "data-testid": `${e.item.key}-copy-uuid-${h}`,
951
- text: y
954
+ (g(!0), O(de, null, ce(e.item.value, (v, y) => (g(), R(B, Ir(c.value.childAttrs, {
955
+ key: `${e.item.key}-copy-uuid-${y}`,
956
+ "data-testid": `${e.item.key}-copy-uuid-${y}`,
957
+ text: v
952
958
  }), null, 16, ["data-testid", "text"]))), 128))
953
- ], 8, ba)) : c.value.additionalComponent === "KMethodBadge" ? (m(), O("div", {
959
+ ], 8, ba)) : c.value.additionalComponent === "KMethodBadge" ? (g(), O("div", {
954
960
  key: 2,
955
961
  class: "method-badge-array",
956
962
  "data-testid": `${e.item.key}-badge-methods`
957
963
  }, [
958
- (m(!0), O(de, null, ce(e.item.value, (y, h) => (m(), R(U, {
959
- key: `${e.item.key}-badge-method-${h}`,
960
- appearance: Object.values(f(Ar)).includes(y.toLowerCase()) ? y.toLowerCase() : "custom",
964
+ (g(!0), O(de, null, ce(e.item.value, (v, y) => (g(), R(U, {
965
+ key: `${e.item.key}-badge-method-${y}`,
966
+ appearance: Object.values(m(_r)).includes(v.toLowerCase()) ? v.toLowerCase() : "custom",
961
967
  class: "config-badge",
962
- "data-testid": `${e.item.key}-badge-method-${h}`
968
+ "data-testid": `${e.item.key}-badge-method-${y}`
963
969
  }, {
964
- default: b(() => [
965
- H(M(y), 1)
970
+ default: k(() => [
971
+ H(M(v), 1)
966
972
  ]),
967
973
  _: 2
968
974
  }, 1032, ["appearance", "data-testid"]))), 128))
969
975
  ], 8, ka)) : G("", !0),
970
- c.value.additionalComponent === "JsonCardItem" ? (m(), O("div", {
976
+ c.value.additionalComponent === "JsonCardItem" ? (g(), O("div", {
971
977
  key: 3,
972
978
  "data-testid": `${t.item.key}-json-array-content`
973
979
  }, [
974
- (m(!0), O(de, null, ce(e.item.value, (y, h) => (m(), R(yn, {
975
- key: `json-array-item-${h}`,
976
- index: h,
980
+ (g(!0), O(de, null, ce(e.item.value, (v, y) => (g(), R(yn, {
981
+ key: `json-array-item-${y}`,
982
+ index: y,
977
983
  "is-array-item": "",
978
- item: y
984
+ item: v
979
985
  }, null, 8, ["index", "item"]))), 128))
980
- ], 8, Ca)) : (m(), R(Z, {
986
+ ], 8, Ca)) : (g(), R(Z, {
981
987
  key: 4,
982
- text: f(g) ? e.item.value : ""
988
+ text: m(f) ? e.item.value : ""
983
989
  }, {
984
- default: b(() => [
990
+ default: k(() => [
985
991
  q("span", {
986
992
  ref_key: "textContent",
987
- ref: C,
993
+ ref: h,
988
994
  class: we(["attrs-data-text", { truncated: e.truncated }])
989
995
  }, M(c.value.text), 3)
990
996
  ]),
@@ -993,7 +999,7 @@ const ne = {
993
999
  ]),
994
1000
  _: 1
995
1001
  }, 16))
996
- ])) : (m(), O("div", {
1002
+ ])) : (g(), O("div", {
997
1003
  key: 0,
998
1004
  "data-testid": `${e.item.key}-no-value`
999
1005
  }, " – ", 8, ha))
@@ -1002,7 +1008,7 @@ const ne = {
1002
1008
  ]);
1003
1009
  };
1004
1010
  }
1005
- }), vn = /* @__PURE__ */ pe(Ia, [["__scopeId", "data-v-d056663c"]]), Aa = { class: "json-config" }, xa = {
1011
+ }), vn = /* @__PURE__ */ pe(Ia, [["__scopeId", "data-v-d056663c"]]), _a = { class: "json-config" }, Aa = {
1006
1012
  key: 0,
1007
1013
  class: "json-endpoint"
1008
1014
  }, bn = /* @__PURE__ */ W({
@@ -1045,12 +1051,12 @@ const ne = {
1045
1051
  });
1046
1052
  return (a, o) => {
1047
1053
  const i = P("KBadge"), l = P("KCodeBlock");
1048
- return m(), O("div", Aa, [
1049
- n.fetcherUrl ? (m(), O("div", xa, [
1054
+ return g(), O("div", _a, [
1055
+ n.fetcherUrl ? (g(), O("div", Aa, [
1050
1056
  T(i, {
1051
1057
  appearance: n.requestMethod
1052
1058
  }, {
1053
- default: b(() => [
1059
+ default: k(() => [
1054
1060
  H(M(n.requestMethod), 1)
1055
1061
  ]),
1056
1062
  _: 1
@@ -1063,7 +1069,7 @@ const ne = {
1063
1069
  theme: "dark"
1064
1070
  }, null, 8, ["code"])
1065
1071
  ])) : G("", !0),
1066
- n.jsonRecord ? (m(), R(l, {
1072
+ n.jsonRecord ? (g(), R(l, {
1067
1073
  key: 1,
1068
1074
  id: "json-codeblock",
1069
1075
  class: we({ "json-content": n.fetcherUrl }),
@@ -1082,7 +1088,7 @@ function kn(e) {
1082
1088
  function Sa(e) {
1083
1089
  return typeof e == "object" && e !== null;
1084
1090
  }
1085
- function _a(e) {
1091
+ function xa(e) {
1086
1092
  return Array.isArray(e) ? e : kn(e) ? [] : [e];
1087
1093
  }
1088
1094
  function $a(e, n) {
@@ -1101,7 +1107,7 @@ function ja(e, n) {
1101
1107
  function Ta(e) {
1102
1108
  return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
1103
1109
  }
1104
- var Ma = kn, Oa = Sa, Ea = _a, Na = ja, Fa = Ta, qa = $a, te = {
1110
+ var Ma = kn, Oa = Sa, Ea = xa, Na = ja, Fa = Ta, qa = $a, te = {
1105
1111
  isNothing: Ma,
1106
1112
  isObject: Oa,
1107
1113
  toArray: Ea,
@@ -1262,12 +1268,12 @@ var wn = pt, In = new re("tag:yaml.org,2002:str", {
1262
1268
  construct: function(e) {
1263
1269
  return e !== null ? e : "";
1264
1270
  }
1265
- }), An = new re("tag:yaml.org,2002:seq", {
1271
+ }), _n = new re("tag:yaml.org,2002:seq", {
1266
1272
  kind: "sequence",
1267
1273
  construct: function(e) {
1268
1274
  return e !== null ? e : [];
1269
1275
  }
1270
- }), xn = new re("tag:yaml.org,2002:map", {
1276
+ }), An = new re("tag:yaml.org,2002:map", {
1271
1277
  kind: "mapping",
1272
1278
  construct: function(e) {
1273
1279
  return e !== null ? e : {};
@@ -1275,8 +1281,8 @@ var wn = pt, In = new re("tag:yaml.org,2002:str", {
1275
1281
  }), Sn = new wn({
1276
1282
  explicit: [
1277
1283
  In,
1278
- An,
1279
- xn
1284
+ _n,
1285
+ An
1280
1286
  ]
1281
1287
  });
1282
1288
  function Da(e) {
@@ -1291,7 +1297,7 @@ function za() {
1291
1297
  function Ga(e) {
1292
1298
  return e === null;
1293
1299
  }
1294
- var _n = new re("tag:yaml.org,2002:null", {
1300
+ var xn = new re("tag:yaml.org,2002:null", {
1295
1301
  kind: "scalar",
1296
1302
  resolve: Da,
1297
1303
  construct: za,
@@ -1504,7 +1510,7 @@ var Tn = new re("tag:yaml.org,2002:float", {
1504
1510
  defaultStyle: "lowercase"
1505
1511
  }), Mn = Sn.extend({
1506
1512
  implicit: [
1507
- _n,
1513
+ xn,
1508
1514
  $n,
1509
1515
  jn,
1510
1516
  Tn
@@ -1518,7 +1524,7 @@ function so(e) {
1518
1524
  return e === null ? !1 : En.exec(e) !== null || Nn.exec(e) !== null;
1519
1525
  }
1520
1526
  function uo(e) {
1521
- var n, t, r, a, o, i, l, s = 0, u = null, d, c, C;
1527
+ var n, t, r, a, o, i, l, s = 0, u = null, d, c, h;
1522
1528
  if (n = En.exec(e), n === null && (n = Nn.exec(e)), n === null)
1523
1529
  throw new Error("Date resolve error");
1524
1530
  if (t = +n[1], r = +n[2] - 1, a = +n[3], !n[4])
@@ -1528,7 +1534,7 @@ function uo(e) {
1528
1534
  s += "0";
1529
1535
  s = +s;
1530
1536
  }
1531
- return n[9] && (d = +n[10], c = +(n[11] || 0), u = (d * 60 + c) * 6e4, n[9] === "-" && (u = -u)), C = new Date(Date.UTC(t, r, a, o, i, l, s)), u && C.setTime(C.getTime() - u), C;
1537
+ return n[9] && (d = +n[10], c = +(n[11] || 0), u = (d * 60 + c) * 6e4, n[9] === "-" && (u = -u)), h = new Date(Date.UTC(t, r, a, o, i, l, s)), u && h.setTime(h.getTime() - u), h;
1532
1538
  }
1533
1539
  function co(e) {
1534
1540
  return e.toISOString();
@@ -1635,13 +1641,13 @@ var Ln = new re("tag:yaml.org,2002:pairs", {
1635
1641
  kind: "sequence",
1636
1642
  resolve: wo,
1637
1643
  construct: Io
1638
- }), Ao = Object.prototype.hasOwnProperty;
1639
- function xo(e) {
1644
+ }), _o = Object.prototype.hasOwnProperty;
1645
+ function Ao(e) {
1640
1646
  if (e === null)
1641
1647
  return !0;
1642
1648
  var n, t = e;
1643
1649
  for (n in t)
1644
- if (Ao.call(t, n) && t[n] !== null)
1650
+ if (_o.call(t, n) && t[n] !== null)
1645
1651
  return !1;
1646
1652
  return !0;
1647
1653
  }
@@ -1650,7 +1656,7 @@ function So(e) {
1650
1656
  }
1651
1657
  var Un = new re("tag:yaml.org,2002:set", {
1652
1658
  kind: "mapping",
1653
- resolve: xo,
1659
+ resolve: Ao,
1654
1660
  construct: So
1655
1661
  }), It = On.extend({
1656
1662
  implicit: [
@@ -1663,7 +1669,7 @@ var Un = new re("tag:yaml.org,2002:set", {
1663
1669
  Ln,
1664
1670
  Un
1665
1671
  ]
1666
- }), Ie = Object.prototype.hasOwnProperty, De = 1, Pn = 2, Rn = 3, ze = 4, ut = 1, _o = 2, Ht = 3, $o = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, jo = /[\x85\u2028\u2029]/, To = /[,\[\]\{\}]/, Vn = /^(?:!|!!|![a-z\-]+!)$/i, Dn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1672
+ }), Ie = Object.prototype.hasOwnProperty, De = 1, Pn = 2, Rn = 3, ze = 4, ut = 1, xo = 2, Ht = 3, $o = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, jo = /[\x85\u2028\u2029]/, To = /[,\[\]\{\}]/, Vn = /^(?:!|!!|![a-z\-]+!)$/i, Dn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1667
1673
  function Jt(e) {
1668
1674
  return Object.prototype.toString.call(e);
1669
1675
  }
@@ -1774,7 +1780,7 @@ function Fe(e, n, t, r, a, o, i, l, s) {
1774
1780
  }) : n[a] = o, delete t[a];
1775
1781
  return n;
1776
1782
  }
1777
- function At(e) {
1783
+ function _t(e) {
1778
1784
  var n;
1779
1785
  n = e.input.charCodeAt(e.position), n === 10 ? e.position++ : n === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : E(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
1780
1786
  }
@@ -1787,7 +1793,7 @@ function ee(e, n, t) {
1787
1793
  a = e.input.charCodeAt(++e.position);
1788
1794
  while (a !== 10 && a !== 13 && a !== 0);
1789
1795
  if (ge(a))
1790
- for (At(e), a = e.input.charCodeAt(e.position), r++, e.lineIndent = 0; a === 32; )
1796
+ for (_t(e), a = e.input.charCodeAt(e.position), r++, e.lineIndent = 0; a === 32; )
1791
1797
  e.lineIndent++, a = e.input.charCodeAt(++e.position);
1792
1798
  else
1793
1799
  break;
@@ -1798,36 +1804,36 @@ function Xe(e) {
1798
1804
  var n = e.position, t;
1799
1805
  return t = e.input.charCodeAt(n), !!((t === 45 || t === 46) && t === e.input.charCodeAt(n + 1) && t === e.input.charCodeAt(n + 2) && (n += 3, t = e.input.charCodeAt(n), t === 0 || ue(t)));
1800
1806
  }
1801
- function xt(e, n) {
1807
+ function At(e, n) {
1802
1808
  n === 1 ? e.result += " " : n > 1 && (e.result += te.repeat(`
1803
1809
  `, n - 1));
1804
1810
  }
1805
1811
  function qo(e, n, t) {
1806
- var r, a, o, i, l, s, u, d, c = e.kind, C = e.result, g;
1807
- if (g = e.input.charCodeAt(e.position), ue(g) || Ne(g) || g === 35 || g === 38 || g === 42 || g === 33 || g === 124 || g === 62 || g === 39 || g === 34 || g === 37 || g === 64 || g === 96 || (g === 63 || g === 45) && (a = e.input.charCodeAt(e.position + 1), ue(a) || t && Ne(a)))
1812
+ var r, a, o, i, l, s, u, d, c = e.kind, h = e.result, f;
1813
+ if (f = e.input.charCodeAt(e.position), ue(f) || Ne(f) || f === 35 || f === 38 || f === 42 || f === 33 || f === 124 || f === 62 || f === 39 || f === 34 || f === 37 || f === 64 || f === 96 || (f === 63 || f === 45) && (a = e.input.charCodeAt(e.position + 1), ue(a) || t && Ne(a)))
1808
1814
  return !1;
1809
- for (e.kind = "scalar", e.result = "", o = i = e.position, l = !1; g !== 0; ) {
1810
- if (g === 58) {
1815
+ for (e.kind = "scalar", e.result = "", o = i = e.position, l = !1; f !== 0; ) {
1816
+ if (f === 58) {
1811
1817
  if (a = e.input.charCodeAt(e.position + 1), ue(a) || t && Ne(a))
1812
1818
  break;
1813
- } else if (g === 35) {
1819
+ } else if (f === 35) {
1814
1820
  if (r = e.input.charCodeAt(e.position - 1), ue(r))
1815
1821
  break;
1816
1822
  } else {
1817
- if (e.position === e.lineStart && Xe(e) || t && Ne(g))
1823
+ if (e.position === e.lineStart && Xe(e) || t && Ne(f))
1818
1824
  break;
1819
- if (ge(g))
1825
+ if (ge(f))
1820
1826
  if (s = e.line, u = e.lineStart, d = e.lineIndent, ee(e, !1, -1), e.lineIndent >= n) {
1821
- l = !0, g = e.input.charCodeAt(e.position);
1827
+ l = !0, f = e.input.charCodeAt(e.position);
1822
1828
  continue;
1823
1829
  } else {
1824
1830
  e.position = i, e.line = s, e.lineStart = u, e.lineIndent = d;
1825
1831
  break;
1826
1832
  }
1827
1833
  }
1828
- l && (Ce(e, o, i, !1), xt(e, e.line - s), o = i = e.position, l = !1), Se(g) || (i = e.position + 1), g = e.input.charCodeAt(++e.position);
1834
+ l && (Ce(e, o, i, !1), At(e, e.line - s), o = i = e.position, l = !1), Se(f) || (i = e.position + 1), f = e.input.charCodeAt(++e.position);
1829
1835
  }
1830
- return Ce(e, o, i, !1), e.result ? !0 : (e.kind = c, e.result = C, !1);
1836
+ return Ce(e, o, i, !1), e.result ? !0 : (e.kind = c, e.result = h, !1);
1831
1837
  }
1832
1838
  function Ko(e, n) {
1833
1839
  var t, r, a;
@@ -1840,7 +1846,7 @@ function Ko(e, n) {
1840
1846
  else
1841
1847
  return !0;
1842
1848
  else
1843
- ge(t) ? (Ce(e, r, a, !0), xt(e, ee(e, !1, n)), r = a = e.position) : e.position === e.lineStart && Xe(e) ? E(e, "unexpected end of the document within a single quoted scalar") : (e.position++, a = e.position);
1849
+ ge(t) ? (Ce(e, r, a, !0), At(e, ee(e, !1, n)), r = a = e.position) : e.position === e.lineStart && Xe(e) ? E(e, "unexpected end of the document within a single quoted scalar") : (e.position++, a = e.position);
1844
1850
  E(e, "unexpected end of the stream within a single quoted scalar");
1845
1851
  }
1846
1852
  function Bo(e, n) {
@@ -1863,22 +1869,22 @@ function Bo(e, n) {
1863
1869
  E(e, "unknown escape sequence");
1864
1870
  t = r = e.position;
1865
1871
  } else
1866
- ge(l) ? (Ce(e, t, r, !0), xt(e, ee(e, !1, n)), t = r = e.position) : e.position === e.lineStart && Xe(e) ? E(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
1872
+ ge(l) ? (Ce(e, t, r, !0), At(e, ee(e, !1, n)), t = r = e.position) : e.position === e.lineStart && Xe(e) ? E(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
1867
1873
  }
1868
1874
  E(e, "unexpected end of the stream within a double quoted scalar");
1869
1875
  }
1870
1876
  function Lo(e, n) {
1871
- var t = !0, r, a, o, i = e.tag, l, s = e.anchor, u, d, c, C, g, x = /* @__PURE__ */ Object.create(null), w, A, U, B;
1877
+ var t = !0, r, a, o, i = e.tag, l, s = e.anchor, u, d, c, h, f, _ = /* @__PURE__ */ Object.create(null), w, A, U, B;
1872
1878
  if (B = e.input.charCodeAt(e.position), B === 91)
1873
- d = 93, g = !1, l = [];
1879
+ d = 93, f = !1, l = [];
1874
1880
  else if (B === 123)
1875
- d = 125, g = !0, l = {};
1881
+ d = 125, f = !0, l = {};
1876
1882
  else
1877
1883
  return !1;
1878
1884
  for (e.anchor !== null && (e.anchorMap[e.anchor] = l), B = e.input.charCodeAt(++e.position); B !== 0; ) {
1879
1885
  if (ee(e, !0, n), B = e.input.charCodeAt(e.position), B === d)
1880
- return e.position++, e.tag = i, e.anchor = s, e.kind = g ? "mapping" : "sequence", e.result = l, !0;
1881
- t ? B === 44 && E(e, "expected the node content, but found ','") : E(e, "missed comma between flow collection entries"), A = w = U = null, c = C = !1, B === 63 && (u = e.input.charCodeAt(e.position + 1), ue(u) && (c = C = !0, e.position++, ee(e, !0, n))), r = e.line, a = e.lineStart, o = e.position, qe(e, n, De, !1, !0), A = e.tag, w = e.result, ee(e, !0, n), B = e.input.charCodeAt(e.position), (C || e.line === r) && B === 58 && (c = !0, B = e.input.charCodeAt(++e.position), ee(e, !0, n), qe(e, n, De, !1, !0), U = e.result), g ? Fe(e, l, x, A, w, U, r, a, o) : c ? l.push(Fe(e, null, x, A, w, U, r, a, o)) : l.push(w), ee(e, !0, n), B = e.input.charCodeAt(e.position), B === 44 ? (t = !0, B = e.input.charCodeAt(++e.position)) : t = !1;
1886
+ return e.position++, e.tag = i, e.anchor = s, e.kind = f ? "mapping" : "sequence", e.result = l, !0;
1887
+ t ? B === 44 && E(e, "expected the node content, but found ','") : E(e, "missed comma between flow collection entries"), A = w = U = null, c = h = !1, B === 63 && (u = e.input.charCodeAt(e.position + 1), ue(u) && (c = h = !0, e.position++, ee(e, !0, n))), r = e.line, a = e.lineStart, o = e.position, qe(e, n, De, !1, !0), A = e.tag, w = e.result, ee(e, !0, n), B = e.input.charCodeAt(e.position), (h || e.line === r) && B === 58 && (c = !0, B = e.input.charCodeAt(++e.position), ee(e, !0, n), qe(e, n, De, !1, !0), U = e.result), f ? Fe(e, l, _, A, w, U, r, a, o) : c ? l.push(Fe(e, null, _, A, w, U, r, a, o)) : l.push(w), ee(e, !0, n), B = e.input.charCodeAt(e.position), B === 44 ? (t = !0, B = e.input.charCodeAt(++e.position)) : t = !1;
1882
1888
  }
1883
1889
  E(e, "unexpected end of the stream within a flow collection");
1884
1890
  }
@@ -1892,7 +1898,7 @@ function Uo(e, n) {
1892
1898
  return !1;
1893
1899
  for (e.kind = "scalar", e.result = ""; c !== 0; )
1894
1900
  if (c = e.input.charCodeAt(++e.position), c === 43 || c === 45)
1895
- ut === a ? a = c === 43 ? Ht : _o : E(e, "repeat of a chomping mode identifier");
1901
+ ut === a ? a = c === 43 ? Ht : xo : E(e, "repeat of a chomping mode identifier");
1896
1902
  else if ((d = Eo(c)) >= 0)
1897
1903
  d === 0 ? E(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : i ? E(e, "repeat of an indentation width identifier") : (l = n + d - 1, i = !0);
1898
1904
  else
@@ -1907,7 +1913,7 @@ function Uo(e, n) {
1907
1913
  while (!ge(c) && c !== 0);
1908
1914
  }
1909
1915
  for (; c !== 0; ) {
1910
- for (At(e), e.lineIndent = 0, c = e.input.charCodeAt(e.position); (!i || e.lineIndent < l) && c === 32; )
1916
+ for (_t(e), e.lineIndent = 0, c = e.input.charCodeAt(e.position); (!i || e.lineIndent < l) && c === 32; )
1911
1917
  e.lineIndent++, c = e.input.charCodeAt(++e.position);
1912
1918
  if (!i && e.lineIndent > l && (l = e.lineIndent), ge(c)) {
1913
1919
  s++;
@@ -1946,12 +1952,12 @@ function Qt(e, n) {
1946
1952
  return l ? (e.tag = r, e.anchor = a, e.kind = "sequence", e.result = o, !0) : !1;
1947
1953
  }
1948
1954
  function Po(e, n, t) {
1949
- var r, a, o, i, l, s, u = e.tag, d = e.anchor, c = {}, C = /* @__PURE__ */ Object.create(null), g = null, x = null, w = null, A = !1, U = !1, B;
1955
+ var r, a, o, i, l, s, u = e.tag, d = e.anchor, c = {}, h = /* @__PURE__ */ Object.create(null), f = null, _ = null, w = null, A = !1, U = !1, B;
1950
1956
  if (e.firstTabInLine !== -1)
1951
1957
  return !1;
1952
1958
  for (e.anchor !== null && (e.anchorMap[e.anchor] = c), B = e.input.charCodeAt(e.position); B !== 0; ) {
1953
1959
  if (!A && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, E(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), o = e.line, (B === 63 || B === 58) && ue(r))
1954
- B === 63 ? (A && (Fe(e, c, C, g, x, null, i, l, s), g = x = w = null), U = !0, A = !0, a = !0) : A ? (A = !1, a = !0) : E(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, B = r;
1960
+ B === 63 ? (A && (Fe(e, c, h, f, _, null, i, l, s), f = _ = w = null), U = !0, A = !0, a = !0) : A ? (A = !1, a = !0) : E(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, B = r;
1955
1961
  else {
1956
1962
  if (i = e.line, l = e.lineStart, s = e.position, !qe(e, t, Pn, !1, !0))
1957
1963
  break;
@@ -1959,7 +1965,7 @@ function Po(e, n, t) {
1959
1965
  for (B = e.input.charCodeAt(e.position); Se(B); )
1960
1966
  B = e.input.charCodeAt(++e.position);
1961
1967
  if (B === 58)
1962
- B = e.input.charCodeAt(++e.position), ue(B) || E(e, "a whitespace character is expected after the key-value separator within a block mapping"), A && (Fe(e, c, C, g, x, null, i, l, s), g = x = w = null), U = !0, A = !1, a = !1, g = e.tag, x = e.result;
1968
+ B = e.input.charCodeAt(++e.position), ue(B) || E(e, "a whitespace character is expected after the key-value separator within a block mapping"), A && (Fe(e, c, h, f, _, null, i, l, s), f = _ = w = null), U = !0, A = !1, a = !1, f = e.tag, _ = e.result;
1963
1969
  else if (U)
1964
1970
  E(e, "can not read an implicit mapping pair; a colon is missed");
1965
1971
  else
@@ -1969,12 +1975,12 @@ function Po(e, n, t) {
1969
1975
  else
1970
1976
  return e.tag = u, e.anchor = d, !0;
1971
1977
  }
1972
- if ((e.line === o || e.lineIndent > n) && (A && (i = e.line, l = e.lineStart, s = e.position), qe(e, n, ze, !0, a) && (A ? x = e.result : w = e.result), A || (Fe(e, c, C, g, x, w, i, l, s), g = x = w = null), ee(e, !0, -1), B = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > n) && B !== 0)
1978
+ if ((e.line === o || e.lineIndent > n) && (A && (i = e.line, l = e.lineStart, s = e.position), qe(e, n, ze, !0, a) && (A ? _ = e.result : w = e.result), A || (Fe(e, c, h, f, _, w, i, l, s), f = _ = w = null), ee(e, !0, -1), B = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > n) && B !== 0)
1973
1979
  E(e, "bad indentation of a mapping entry");
1974
1980
  else if (e.lineIndent < n)
1975
1981
  break;
1976
1982
  }
1977
- return A && Fe(e, c, C, g, x, null, i, l, s), U && (e.tag = u, e.anchor = d, e.kind = "mapping", e.result = c), U;
1983
+ return A && Fe(e, c, h, f, _, null, i, l, s), U && (e.tag = u, e.anchor = d, e.kind = "mapping", e.result = c), U;
1978
1984
  }
1979
1985
  function Ro(e) {
1980
1986
  var n, t = !1, r = !1, a, o, i;
@@ -2015,28 +2021,28 @@ function Do(e) {
2015
2021
  return e.position === n && E(e, "name of an alias node must contain at least one character"), t = e.input.slice(n, e.position), Ie.call(e.anchorMap, t) || E(e, 'unidentified alias "' + t + '"'), e.result = e.anchorMap[t], ee(e, !0, -1), !0;
2016
2022
  }
2017
2023
  function qe(e, n, t, r, a) {
2018
- var o, i, l, s = 1, u = !1, d = !1, c, C, g, x, w, A;
2024
+ var o, i, l, s = 1, u = !1, d = !1, c, h, f, _, w, A;
2019
2025
  if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = i = l = ze === t || Rn === t, r && ee(e, !0, -1) && (u = !0, e.lineIndent > n ? s = 1 : e.lineIndent === n ? s = 0 : e.lineIndent < n && (s = -1)), s === 1)
2020
2026
  for (; Ro(e) || Vo(e); )
2021
2027
  ee(e, !0, -1) ? (u = !0, l = o, e.lineIndent > n ? s = 1 : e.lineIndent === n ? s = 0 : e.lineIndent < n && (s = -1)) : l = !1;
2022
2028
  if (l && (l = u || a), (s === 1 || ze === t) && (De === t || Pn === t ? w = n : w = n + 1, A = e.position - e.lineStart, s === 1 ? l && (Qt(e, A) || Po(e, A, w)) || Lo(e, w) ? d = !0 : (i && Uo(e, w) || Ko(e, w) || Bo(e, w) ? d = !0 : Do(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && E(e, "alias node should not have any properties")) : qo(e, w, De === t) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : s === 0 && (d = l && Qt(e, A))), e.tag === null)
2023
2029
  e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2024
2030
  else if (e.tag === "?") {
2025
- for (e.result !== null && e.kind !== "scalar" && E(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), c = 0, C = e.implicitTypes.length; c < C; c += 1)
2026
- if (x = e.implicitTypes[c], x.resolve(e.result)) {
2027
- e.result = x.construct(e.result), e.tag = x.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2031
+ for (e.result !== null && e.kind !== "scalar" && E(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), c = 0, h = e.implicitTypes.length; c < h; c += 1)
2032
+ if (_ = e.implicitTypes[c], _.resolve(e.result)) {
2033
+ e.result = _.construct(e.result), e.tag = _.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2028
2034
  break;
2029
2035
  }
2030
2036
  } else if (e.tag !== "!") {
2031
2037
  if (Ie.call(e.typeMap[e.kind || "fallback"], e.tag))
2032
- x = e.typeMap[e.kind || "fallback"][e.tag];
2038
+ _ = e.typeMap[e.kind || "fallback"][e.tag];
2033
2039
  else
2034
- for (x = null, g = e.typeMap.multi[e.kind || "fallback"], c = 0, C = g.length; c < C; c += 1)
2035
- if (e.tag.slice(0, g[c].tag.length) === g[c].tag) {
2036
- x = g[c];
2040
+ for (_ = null, f = e.typeMap.multi[e.kind || "fallback"], c = 0, h = f.length; c < h; c += 1)
2041
+ if (e.tag.slice(0, f[c].tag.length) === f[c].tag) {
2042
+ _ = f[c];
2037
2043
  break;
2038
2044
  }
2039
- x || E(e, "unknown tag !<" + e.tag + ">"), e.result !== null && x.kind !== e.kind && E(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + x.kind + '", not "' + e.kind + '"'), x.resolve(e.result, e.tag) ? (e.result = x.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : E(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
2045
+ _ || E(e, "unknown tag !<" + e.tag + ">"), e.result !== null && _.kind !== e.kind && E(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + _.kind + '", not "' + e.kind + '"'), _.resolve(e.result, e.tag) ? (e.result = _.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : E(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
2040
2046
  }
2041
2047
  return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || d;
2042
2048
  }
@@ -2060,7 +2066,7 @@ function zo(e) {
2060
2066
  i = e.input.charCodeAt(++e.position);
2061
2067
  a.push(e.input.slice(t, e.position));
2062
2068
  }
2063
- i !== 0 && At(e), Ie.call(Yt, r) ? Yt[r](e, r, a) : Ge(e, 'unknown document directive "' + r + '"');
2069
+ i !== 0 && _t(e), Ie.call(Yt, r) ? Yt[r](e, r, a) : Ge(e, 'unknown document directive "' + r + '"');
2064
2070
  }
2065
2071
  if (ee(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, ee(e, !0, -1)) : o && E(e, "directives end mark is expected"), qe(e, e.lineIndent - 1, ze, !1, !0), ee(e, !0, -1), e.checkLineBreaks && jo.test(e.input.slice(n, e.position)) && Ge(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && Xe(e)) {
2066
2072
  e.input.charCodeAt(e.position) === 46 && (e.position += 3, ee(e, !0, -1));
@@ -2211,7 +2217,7 @@ function rr(e) {
2211
2217
  }
2212
2218
  var ar = 1, gt = 2, or = 3, ir = 4, Ee = 5;
2213
2219
  function Ci(e, n, t, r, a, o, i, l) {
2214
- var s, u = 0, d = null, c = !1, C = !1, g = r !== -1, x = -1, w = bi(Be(e, 0)) && ki(Be(e, e.length - 1));
2220
+ var s, u = 0, d = null, c = !1, h = !1, f = r !== -1, _ = -1, w = bi(Be(e, 0)) && ki(Be(e, e.length - 1));
2215
2221
  if (n || i)
2216
2222
  for (s = 0; s < e.length; u >= 65536 ? s += 2 : s++) {
2217
2223
  if (u = Be(e, s), !Re(u))
@@ -2221,15 +2227,15 @@ function Ci(e, n, t, r, a, o, i, l) {
2221
2227
  else {
2222
2228
  for (s = 0; s < e.length; u >= 65536 ? s += 2 : s++) {
2223
2229
  if (u = Be(e, s), u === Ue)
2224
- c = !0, g && (C = C || // Foldable line = too long, and not more-indented.
2225
- s - x - 1 > r && e[x + 1] !== " ", x = s);
2230
+ c = !0, f && (h = h || // Foldable line = too long, and not more-indented.
2231
+ s - _ - 1 > r && e[_ + 1] !== " ", _ = s);
2226
2232
  else if (!Re(u))
2227
2233
  return Ee;
2228
2234
  w = w && tn(u, d, l), d = u;
2229
2235
  }
2230
- C = C || g && s - x - 1 > r && e[x + 1] !== " ";
2236
+ h = h || f && s - _ - 1 > r && e[_ + 1] !== " ";
2231
2237
  }
2232
- return !c && !C ? w && !i && !a(e) ? ar : o === Pe ? Ee : gt : t > 9 && rr(e) ? Ee : i ? o === Pe ? Ee : gt : C ? ir : or;
2238
+ return !c && !h ? w && !i && !a(e) ? ar : o === Pe ? Ee : gt : t > 9 && rr(e) ? Ee : i ? o === Pe ? Ee : gt : h ? ir : or;
2233
2239
  }
2234
2240
  function wi(e, n, t, r, a) {
2235
2241
  e.dump = function() {
@@ -2260,7 +2266,7 @@ function wi(e, n, t, r, a) {
2260
2266
  case ir:
2261
2267
  return ">" + nn(n, e.indent) + rn(Xt(Ii(n, i), o));
2262
2268
  case Ee:
2263
- return '"' + Ai(n) + '"';
2269
+ return '"' + _i(n) + '"';
2264
2270
  default:
2265
2271
  throw new ie("impossible error: invalid scalar style");
2266
2272
  }
@@ -2301,12 +2307,12 @@ function an(e, n) {
2301
2307
  `, e.length - a > n && i > a ? s += e.slice(a, i) + `
2302
2308
  ` + e.slice(i + 1) : s += e.slice(a), s.slice(1);
2303
2309
  }
2304
- function Ai(e) {
2310
+ function _i(e) {
2305
2311
  for (var n = "", t = 0, r, a = 0; a < e.length; t >= 65536 ? a += 2 : a++)
2306
2312
  t = Be(e, a), r = oe[t], !r && Re(t) ? (n += e[a], t >= 65536 && (n += e[a + 1])) : n += r || gi(t);
2307
2313
  return n;
2308
2314
  }
2309
- function xi(e, n, t) {
2315
+ function Ai(e, n, t) {
2310
2316
  var r = "", a = e.tag, o, i, l;
2311
2317
  for (o = 0, i = t.length; o < i; o += 1)
2312
2318
  l = t[o], e.replacer && (l = e.replacer.call(t, String(o), l)), (ve(e, n, l, !1, !1) || typeof l > "u" && ve(e, n, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
@@ -2324,8 +2330,8 @@ function Si(e, n, t) {
2324
2330
  d = "", r !== "" && (d += ", "), e.condenseFlow && (d += '"'), s = o[i], u = t[s], e.replacer && (u = e.replacer.call(t, s, u)), ve(e, n, s, !1, !1) && (e.dump.length > 1024 && (d += "? "), d += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), ve(e, n, u, !1, !1) && (d += e.dump, r += d));
2325
2331
  e.tag = a, e.dump = "{" + r + "}";
2326
2332
  }
2327
- function _i(e, n, t, r) {
2328
- var a = "", o = e.tag, i = Object.keys(t), l, s, u, d, c, C;
2333
+ function xi(e, n, t, r) {
2334
+ var a = "", o = e.tag, i = Object.keys(t), l, s, u, d, c, h;
2329
2335
  if (e.sortKeys === !0)
2330
2336
  i.sort();
2331
2337
  else if (typeof e.sortKeys == "function")
@@ -2333,7 +2339,7 @@ function _i(e, n, t, r) {
2333
2339
  else if (e.sortKeys)
2334
2340
  throw new ie("sortKeys must be a boolean or a function");
2335
2341
  for (l = 0, s = i.length; l < s; l += 1)
2336
- C = "", (!r || a !== "") && (C += mt(e, n)), u = i[l], d = t[u], e.replacer && (d = e.replacer.call(t, u, d)), ve(e, n + 1, u, !0, !0, !0) && (c = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, c && (e.dump && Ue === e.dump.charCodeAt(0) ? C += "?" : C += "? "), C += e.dump, c && (C += mt(e, n)), ve(e, n + 1, d, !0, c) && (e.dump && Ue === e.dump.charCodeAt(0) ? C += ":" : C += ": ", C += e.dump, a += C));
2342
+ h = "", (!r || a !== "") && (h += mt(e, n)), u = i[l], d = t[u], e.replacer && (d = e.replacer.call(t, u, d)), ve(e, n + 1, u, !0, !0, !0) && (c = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, c && (e.dump && Ue === e.dump.charCodeAt(0) ? h += "?" : h += "? "), h += e.dump, c && (h += mt(e, n)), ve(e, n + 1, d, !0, c) && (e.dump && Ue === e.dump.charCodeAt(0) ? h += ":" : h += ": ", h += e.dump, a += h));
2337
2343
  e.tag = o, e.dump = a || "{}";
2338
2344
  }
2339
2345
  function ln(e, n, t) {
@@ -2357,14 +2363,14 @@ function ve(e, n, t, r, a, o, i) {
2357
2363
  e.tag = null, e.dump = t, ln(e, t, !1) || ln(e, t, !0);
2358
2364
  var l = Yn.call(e.dump), s = r, u;
2359
2365
  r && (r = e.flowLevel < 0 || e.flowLevel > n);
2360
- var d = l === "[object Object]" || l === "[object Array]", c, C;
2361
- if (d && (c = e.duplicates.indexOf(t), C = c !== -1), (e.tag !== null && e.tag !== "?" || C || e.indent !== 2 && n > 0) && (a = !1), C && e.usedDuplicates[c])
2366
+ var d = l === "[object Object]" || l === "[object Array]", c, h;
2367
+ if (d && (c = e.duplicates.indexOf(t), h = c !== -1), (e.tag !== null && e.tag !== "?" || h || e.indent !== 2 && n > 0) && (a = !1), h && e.usedDuplicates[c])
2362
2368
  e.dump = "*ref_" + c;
2363
2369
  else {
2364
- if (d && C && !e.usedDuplicates[c] && (e.usedDuplicates[c] = !0), l === "[object Object]")
2365
- r && Object.keys(e.dump).length !== 0 ? (_i(e, n, e.dump, a), C && (e.dump = "&ref_" + c + e.dump)) : (Si(e, n, e.dump), C && (e.dump = "&ref_" + c + " " + e.dump));
2370
+ if (d && h && !e.usedDuplicates[c] && (e.usedDuplicates[c] = !0), l === "[object Object]")
2371
+ r && Object.keys(e.dump).length !== 0 ? (xi(e, n, e.dump, a), h && (e.dump = "&ref_" + c + e.dump)) : (Si(e, n, e.dump), h && (e.dump = "&ref_" + c + " " + e.dump));
2366
2372
  else if (l === "[object Array]")
2367
- r && e.dump.length !== 0 ? (e.noArrayIndent && !i && n > 0 ? on(e, n - 1, e.dump, a) : on(e, n, e.dump, a), C && (e.dump = "&ref_" + c + e.dump)) : (xi(e, n, e.dump), C && (e.dump = "&ref_" + c + " " + e.dump));
2373
+ r && e.dump.length !== 0 ? (e.noArrayIndent && !i && n > 0 ? on(e, n - 1, e.dump, a) : on(e, n, e.dump, a), h && (e.dump = "&ref_" + c + e.dump)) : (Ai(e, n, e.dump), h && (e.dump = "&ref_" + c + " " + e.dump));
2368
2374
  else if (l === "[object String]")
2369
2375
  e.tag !== "?" && wi(e, e.dump, n, o, s);
2370
2376
  else {
@@ -2407,7 +2413,7 @@ function ji(e, n) {
2407
2413
  var Ti = ji, Mi = {
2408
2414
  dump: Ti
2409
2415
  };
2410
- function _t(e, n) {
2416
+ function xt(e, n) {
2411
2417
  return function() {
2412
2418
  throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + n + " instead, which is now safe by default.");
2413
2419
  };
@@ -2415,8 +2421,8 @@ function _t(e, n) {
2415
2421
  var Oi = re, Ei = wn, Ni = Sn, Fi = Mn, qi = On, Ki = It, Bi = Wn.load, Li = Wn.loadAll, Ui = Mi.dump, Pi = ie, Ri = {
2416
2422
  binary: Kn,
2417
2423
  float: Tn,
2418
- map: xn,
2419
- null: _n,
2424
+ map: An,
2425
+ null: xn,
2420
2426
  pairs: Ln,
2421
2427
  set: Un,
2422
2428
  timestamp: Fn,
@@ -2424,9 +2430,9 @@ var Oi = re, Ei = wn, Ni = Sn, Fi = Mn, qi = On, Ki = It, Bi = Wn.load, Li = Wn.
2424
2430
  int: jn,
2425
2431
  merge: qn,
2426
2432
  omap: Bn,
2427
- seq: An,
2433
+ seq: _n,
2428
2434
  str: In
2429
- }, Vi = _t("safeLoad", "load"), Di = _t("safeLoadAll", "loadAll"), zi = _t("safeDump", "dump"), Gi = {
2435
+ }, Vi = xt("safeLoad", "load"), Di = xt("safeLoadAll", "loadAll"), zi = xt("safeDump", "dump"), Gi = {
2430
2436
  Type: Oi,
2431
2437
  Schema: Ei,
2432
2438
  FAILSAFE_SCHEMA: Ni,
@@ -2458,8 +2464,8 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
2458
2464
  });
2459
2465
  return (r, a) => {
2460
2466
  const o = P("KCodeBlock");
2461
- return m(), O("div", Hi, [
2462
- n.yamlRecord ? (m(), R(o, {
2467
+ return g(), O("div", Hi, [
2468
+ n.yamlRecord ? (g(), R(o, {
2463
2469
  key: 0,
2464
2470
  id: "yaml-codeblock",
2465
2471
  code: t.value,
@@ -2520,22 +2526,22 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
2520
2526
  const i = JSON.parse(JSON.stringify(n.record));
2521
2527
  return delete i.created_at, delete i.updated_at, i;
2522
2528
  });
2523
- return (i, l) => (m(), O(de, null, [
2524
- e.format === "structured" ? (m(), O("div", Ji, [
2525
- (m(!0), O(de, null, ce(e.propListTypes, (s) => (m(), O("div", {
2529
+ return (i, l) => (g(), O(de, null, [
2530
+ e.format === "structured" ? (g(), O("div", Ji, [
2531
+ (g(!0), O(de, null, ce(e.propListTypes, (s) => (g(), O("div", {
2526
2532
  key: `config-card-details-${s}-props`,
2527
2533
  class: we(`config-card-details-${s}-props`),
2528
2534
  "data-testid": `config-card-details-${s}-props`
2529
2535
  }, [
2530
- s !== "basic" ? (m(), O("div", Yi, M(s === "advanced" ? f(r)("baseConfigCard.sections.advanced") : f(r)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
2531
- (m(!0), O(de, null, ce(e.propertyCollections[s], (u) => (m(), R(vn, {
2536
+ s !== "basic" ? (g(), O("div", Yi, M(s === "advanced" ? m(r)("baseConfigCard.sections.advanced") : m(r)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
2537
+ (g(!0), O(de, null, ce(e.propertyCollections[s], (u) => (g(), R(vn, {
2532
2538
  key: u.key,
2533
2539
  item: u
2534
- }, _e({
2535
- label: b(() => [
2540
+ }, xe({
2541
+ label: k(() => [
2536
2542
  Q(i.$slots, `${u.key}-label`, { row: u }, void 0, !0)
2537
2543
  ]),
2538
- [u.key]: b(({ rowValue: d }) => [
2544
+ [u.key]: k(({ rowValue: d }) => [
2539
2545
  Q(i.$slots, u.key, {
2540
2546
  row: u,
2541
2547
  rowValue: d
@@ -2545,7 +2551,7 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
2545
2551
  }, [
2546
2552
  a(u) ? {
2547
2553
  name: "label-tooltip",
2548
- fn: b(() => [
2554
+ fn: k(() => [
2549
2555
  Q(i.$slots, `${u.key}-label-tooltip`, { row: u }, void 0, !0)
2550
2556
  ]),
2551
2557
  key: "0"
@@ -2553,20 +2559,20 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
2553
2559
  ]), 1032, ["item"]))), 128))
2554
2560
  ], 10, Wi))), 128))
2555
2561
  ])) : G("", !0),
2556
- e.format === "json" && n.record ? (m(), R(bn, {
2562
+ e.format === "json" && n.record ? (g(), R(bn, {
2557
2563
  key: 1,
2558
2564
  config: n.config,
2559
2565
  "fetcher-url": n.fetcherUrl,
2560
2566
  "json-record": o.value,
2561
2567
  "request-method": "get"
2562
2568
  }, null, 8, ["config", "fetcher-url", "json-record"])) : G("", !0),
2563
- e.format === "yaml" && n.record ? (m(), R(lr, {
2569
+ e.format === "yaml" && n.record ? (g(), R(lr, {
2564
2570
  key: 2,
2565
2571
  "yaml-record": o.value
2566
2572
  }, null, 8, ["yaml-record"])) : G("", !0)
2567
2573
  ], 64));
2568
2574
  }
2569
- }), Qi = /* @__PURE__ */ pe(Zi, [["__scopeId", "data-v-147a2f70"]]), Ae = "24px", et = (e, n) => {
2575
+ }), Qi = /* @__PURE__ */ pe(Zi, [["__scopeId", "data-v-147a2f70"]]), _e = "24px", et = (e, n) => {
2570
2576
  const t = e.__vccOpts || e;
2571
2577
  for (const [r, a] of n)
2572
2578
  t[r] = a;
@@ -2608,7 +2614,7 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
2608
2614
  size: {
2609
2615
  type: [Number, String],
2610
2616
  required: !1,
2611
- default: Ae,
2617
+ default: _e,
2612
2618
  // if setting to the imported const fails, just pass a number of 24 as the default.
2613
2619
  validator: (e) => {
2614
2620
  if (typeof e == "number" && e > 0)
@@ -2637,7 +2643,7 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
2637
2643
  if (o && !isNaN(o) && Number.isInteger(o) && o > 0)
2638
2644
  return `${o}px`;
2639
2645
  }
2640
- return Ae;
2646
+ return _e;
2641
2647
  }), r = $(() => ({
2642
2648
  boxSizing: "border-box",
2643
2649
  color: n.color,
@@ -2646,14 +2652,14 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
2646
2652
  lineHeight: "0",
2647
2653
  width: t.value
2648
2654
  }));
2649
- return (a, o) => (m(), R(je(e.as), {
2655
+ return (a, o) => (g(), R(je(e.as), {
2650
2656
  "aria-hidden": e.decorative ? "true" : void 0,
2651
2657
  class: "kui-icon add-icon",
2652
2658
  "data-testid": "kui-icon-wrapper-add-icon",
2653
2659
  style: We(r.value)
2654
2660
  }, {
2655
- default: b(() => [
2656
- (m(), O("svg", {
2661
+ default: k(() => [
2662
+ (g(), O("svg", {
2657
2663
  "aria-hidden": e.decorative ? "true" : void 0,
2658
2664
  "data-testid": "kui-icon-svg-add-icon",
2659
2665
  fill: "none",
@@ -2663,7 +2669,7 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
2663
2669
  width: "100%",
2664
2670
  xmlns: "http://www.w3.org/2000/svg"
2665
2671
  }, [
2666
- e.title ? (m(), O("title", tl, M(e.title), 1)) : G("", !0),
2672
+ e.title ? (g(), O("title", tl, M(e.title), 1)) : G("", !0),
2667
2673
  nl
2668
2674
  ], 8, el))
2669
2675
  ]),
@@ -2707,7 +2713,7 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
2707
2713
  size: {
2708
2714
  type: [Number, String],
2709
2715
  required: !1,
2710
- default: Ae,
2716
+ default: _e,
2711
2717
  // if setting to the imported const fails, just pass a number of 24 as the default.
2712
2718
  validator: (e) => {
2713
2719
  if (typeof e == "number" && e > 0)
@@ -2736,7 +2742,7 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
2736
2742
  if (o && !isNaN(o) && Number.isInteger(o) && o > 0)
2737
2743
  return `${o}px`;
2738
2744
  }
2739
- return Ae;
2745
+ return _e;
2740
2746
  }), r = $(() => ({
2741
2747
  boxSizing: "border-box",
2742
2748
  color: n.color,
@@ -2745,14 +2751,14 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
2745
2751
  lineHeight: "0",
2746
2752
  width: t.value
2747
2753
  }));
2748
- return (a, o) => (m(), R(je(e.as), {
2754
+ return (a, o) => (g(), R(je(e.as), {
2749
2755
  "aria-hidden": e.decorative ? "true" : void 0,
2750
2756
  class: "kui-icon book-icon",
2751
2757
  "data-testid": "kui-icon-wrapper-book-icon",
2752
2758
  style: We(r.value)
2753
2759
  }, {
2754
- default: b(() => [
2755
- (m(), O("svg", {
2760
+ default: k(() => [
2761
+ (g(), O("svg", {
2756
2762
  "aria-hidden": e.decorative ? "true" : void 0,
2757
2763
  "data-testid": "kui-icon-svg-book-icon",
2758
2764
  fill: "none",
@@ -2762,7 +2768,7 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
2762
2768
  width: "100%",
2763
2769
  xmlns: "http://www.w3.org/2000/svg"
2764
2770
  }, [
2765
- e.title ? (m(), O("title", ll, M(e.title), 1)) : G("", !0),
2771
+ e.title ? (g(), O("title", ll, M(e.title), 1)) : G("", !0),
2766
2772
  sl
2767
2773
  ], 8, il))
2768
2774
  ]),
@@ -2806,7 +2812,7 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
2806
2812
  size: {
2807
2813
  type: [Number, String],
2808
2814
  required: !1,
2809
- default: Ae,
2815
+ default: _e,
2810
2816
  // if setting to the imported const fails, just pass a number of 24 as the default.
2811
2817
  validator: (e) => {
2812
2818
  if (typeof e == "number" && e > 0)
@@ -2835,7 +2841,7 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
2835
2841
  if (o && !isNaN(o) && Number.isInteger(o) && o > 0)
2836
2842
  return `${o}px`;
2837
2843
  }
2838
- return Ae;
2844
+ return _e;
2839
2845
  }), r = $(() => ({
2840
2846
  boxSizing: "border-box",
2841
2847
  color: n.color,
@@ -2844,14 +2850,14 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
2844
2850
  lineHeight: "0",
2845
2851
  width: t.value
2846
2852
  }));
2847
- return (a, o) => (m(), R(je(e.as), {
2853
+ return (a, o) => (g(), R(je(e.as), {
2848
2854
  "aria-hidden": e.decorative ? "true" : void 0,
2849
2855
  class: "kui-icon chevron-down-icon",
2850
2856
  "data-testid": "kui-icon-wrapper-chevron-down-icon",
2851
2857
  style: We(r.value)
2852
2858
  }, {
2853
- default: b(() => [
2854
- (m(), O("svg", {
2859
+ default: k(() => [
2860
+ (g(), O("svg", {
2855
2861
  "aria-hidden": e.decorative ? "true" : void 0,
2856
2862
  "data-testid": "kui-icon-svg-chevron-down-icon",
2857
2863
  fill: "none",
@@ -2861,7 +2867,7 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
2861
2867
  width: "100%",
2862
2868
  xmlns: "http://www.w3.org/2000/svg"
2863
2869
  }, [
2864
- e.title ? (m(), O("title", fl, M(e.title), 1)) : G("", !0),
2870
+ e.title ? (g(), O("title", fl, M(e.title), 1)) : G("", !0),
2865
2871
  ml
2866
2872
  ], 8, pl))
2867
2873
  ]),
@@ -2905,7 +2911,7 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
2905
2911
  size: {
2906
2912
  type: [Number, String],
2907
2913
  required: !1,
2908
- default: Ae,
2914
+ default: _e,
2909
2915
  // if setting to the imported const fails, just pass a number of 24 as the default.
2910
2916
  validator: (e) => {
2911
2917
  if (typeof e == "number" && e > 0)
@@ -2934,7 +2940,7 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
2934
2940
  if (o && !isNaN(o) && Number.isInteger(o) && o > 0)
2935
2941
  return `${o}px`;
2936
2942
  }
2937
- return Ae;
2943
+ return _e;
2938
2944
  }), r = $(() => ({
2939
2945
  boxSizing: "border-box",
2940
2946
  color: n.color,
@@ -2943,14 +2949,14 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
2943
2949
  lineHeight: "0",
2944
2950
  width: t.value
2945
2951
  }));
2946
- return (a, o) => (m(), R(je(e.as), {
2952
+ return (a, o) => (g(), R(je(e.as), {
2947
2953
  "aria-hidden": e.decorative ? "true" : void 0,
2948
2954
  class: "kui-icon close-icon",
2949
2955
  "data-testid": "kui-icon-wrapper-close-icon",
2950
2956
  style: We(r.value)
2951
2957
  }, {
2952
- default: b(() => [
2953
- (m(), O("svg", {
2958
+ default: k(() => [
2959
+ (g(), O("svg", {
2954
2960
  "aria-hidden": e.decorative ? "true" : void 0,
2955
2961
  "data-testid": "kui-icon-svg-close-icon",
2956
2962
  fill: "none",
@@ -2960,14 +2966,14 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
2960
2966
  width: "100%",
2961
2967
  xmlns: "http://www.w3.org/2000/svg"
2962
2968
  }, [
2963
- e.title ? (m(), O("title", bl, M(e.title), 1)) : G("", !0),
2969
+ e.title ? (g(), O("title", bl, M(e.title), 1)) : G("", !0),
2964
2970
  kl
2965
2971
  ], 8, vl))
2966
2972
  ]),
2967
2973
  _: 1
2968
2974
  }, 8, ["aria-hidden", "style"]));
2969
2975
  }
2970
- }), wl = /* @__PURE__ */ et(Cl, [["__scopeId", "data-v-19f4cbbe"]]), Il = { "data-testid": "config-card-title" }, Al = { class: "config-card-actions" }, xl = ["href"], Sl = { class: "config-card-details-section" }, _l = /* @__PURE__ */ W({
2976
+ }), wl = /* @__PURE__ */ et(Cl, [["__scopeId", "data-v-19f4cbbe"]]), Il = { "data-testid": "config-card-title" }, _l = { class: "config-card-actions" }, Al = ["href"], Sl = { class: "config-card-details-section" }, xl = /* @__PURE__ */ W({
2971
2977
  __name: "EntityBaseConfigCard",
2972
2978
  props: {
2973
2979
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -3060,7 +3066,7 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
3060
3066
  }
3061
3067
  ], d = N("structured"), c = (p) => {
3062
3068
  d.value = p == null ? void 0 : p.value;
3063
- }, C = {
3069
+ }, h = {
3064
3070
  id: {
3065
3071
  type: Y.ID,
3066
3072
  label: o("baseConfigCard.commonFields.id_label"),
@@ -3094,21 +3100,21 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
3094
3100
  // the last property displayed
3095
3101
  section: se.Basic
3096
3102
  }
3097
- }, g = N(!1), x = N(!1), w = N(""), A = N({}), U = $(() => {
3098
- var p, k, v;
3103
+ }, f = N(!1), _ = N(!1), w = N(""), A = N({}), U = $(() => {
3104
+ var p, C, b;
3099
3105
  if (!A.value)
3100
3106
  return [];
3101
3107
  const I = [], L = Object.keys(A.value).length;
3102
3108
  for (const S in A.value) {
3103
- const F = (k = (p = a.configSchema) == null ? void 0 : p[S]) == null ? void 0 : k.order, _ = (v = C[S]) == null ? void 0 : v.order;
3109
+ const F = (C = (p = a.configSchema) == null ? void 0 : p[S]) == null ? void 0 : C.order, x = (b = h[S]) == null ? void 0 : b.order;
3104
3110
  let K = L;
3105
- (_ || _ === 0) && (K = _ === -1 ? L + 1 : _), F && (K = F === -1 ? L + 1 : F), I.push([S, K]);
3111
+ (x || x === 0) && (K = x === -1 ? L + 1 : x), F && (K = F === -1 ? L + 1 : F), I.push([S, K]);
3106
3112
  }
3107
3113
  return I.sort(function(S, F) {
3108
3114
  return S[1] - F[1];
3109
3115
  }), I.map((S) => {
3110
- var F, _;
3111
- const K = S[0], V = (F = A.value) == null ? void 0 : F[K], D = ((_ = a.configSchema) == null ? void 0 : _[K]) || {}, ae = C[K];
3116
+ var F, x;
3117
+ const K = S[0], V = (F = A.value) == null ? void 0 : F[K], D = ((x = a.configSchema) == null ? void 0 : x[K]) || {}, ae = h[K];
3112
3118
  return {
3113
3119
  key: K,
3114
3120
  value: V,
@@ -3120,51 +3126,51 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
3120
3126
  };
3121
3127
  }).filter((S) => !S.hidden && S.key !== a.pluginConfigKey);
3122
3128
  }), B = $(() => {
3123
- var p, k;
3129
+ var p, C;
3124
3130
  if (!A.value || !a.pluginConfigKey)
3125
3131
  return [];
3126
- const v = A.value[a.pluginConfigKey] || {}, I = Object.keys(v).length, L = [];
3127
- for (const S in v) {
3128
- const F = (k = (p = a.pluginConfigSchema) == null ? void 0 : p[S]) == null ? void 0 : k.order, _ = v[S];
3129
- let K = _ != null && _ !== "" ? I - 1 : I;
3132
+ const b = A.value[a.pluginConfigKey] || {}, I = Object.keys(b).length, L = [];
3133
+ for (const S in b) {
3134
+ const F = (C = (p = a.pluginConfigSchema) == null ? void 0 : p[S]) == null ? void 0 : C.order, x = b[S];
3135
+ let K = x != null && x !== "" ? I - 1 : I;
3130
3136
  F && (K = F === -1 ? I + 1 : F), L.push([S, K]);
3131
3137
  }
3132
3138
  return L.sort(function(S, F) {
3133
3139
  return S[1] - F[1];
3134
3140
  }), L.map((S) => {
3135
3141
  var F;
3136
- const _ = S[0], K = v[_], V = ((F = a.pluginConfigSchema) == null ? void 0 : F[_]) || {};
3142
+ const x = S[0], K = b[x], V = ((F = a.pluginConfigSchema) == null ? void 0 : F[x]) || {};
3137
3143
  return {
3138
- key: _,
3144
+ key: x,
3139
3145
  value: K,
3140
3146
  hidden: V.hidden || !1,
3141
3147
  type: V.type ?? Y.Text,
3142
- label: V.label ?? l(_),
3148
+ label: V.label ?? l(x),
3143
3149
  tooltip: V.tooltip ?? void 0,
3144
3150
  section: se.Plugin
3145
3151
  };
3146
3152
  }).filter((S) => !S.hidden);
3147
3153
  }), Z = $(() => {
3148
- var p, k, v, I;
3154
+ var p, C, b, I;
3149
3155
  return {
3150
3156
  basic: (p = U.value) == null ? void 0 : p.filter((L) => L.section === se.Basic),
3151
- advanced: (k = U.value) == null ? void 0 : k.filter((L) => L.section === se.Advanced),
3152
- plugin: (I = B.value) == null ? void 0 : I.concat((v = U.value) == null ? void 0 : v.filter((L) => L.section === se.Plugin))
3157
+ advanced: (C = U.value) == null ? void 0 : C.filter((L) => L.section === se.Advanced),
3158
+ plugin: (I = B.value) == null ? void 0 : I.concat((b = U.value) == null ? void 0 : b.filter((L) => L.section === se.Plugin))
3153
3159
  };
3154
- }), y = $(() => {
3160
+ }), v = $(() => {
3155
3161
  const p = [];
3156
3162
  return Z.value.basic.length && p.push("basic"), Z.value.advanced.length && p.push("advanced"), Z.value.plugin.length && p.push("plugin"), p;
3157
- }), h = $(() => {
3158
- var p, k;
3159
- let v = `${a.config.apiBaseUrl}${a.fetchUrl}`;
3160
- return a.config.app === "konnect" ? v = v.replace(/{controlPlaneId}/gi, ((p = a.config) == null ? void 0 : p.controlPlaneId) || "") : a.config.app === "kongManager" && (v = v.replace(/\/{workspace}/gi, (k = a.config) != null && k.workspace ? `/${a.config.workspace}` : "")), v = v.replace(/{id}/gi, a.config.entityId), v;
3163
+ }), y = $(() => {
3164
+ var p, C;
3165
+ let b = `${a.config.apiBaseUrl}${a.fetchUrl}`;
3166
+ return a.config.app === "konnect" ? b = b.replace(/{controlPlaneId}/gi, ((p = a.config) == null ? void 0 : p.controlPlaneId) || "") : a.config.app === "kongManager" && (b = b.replace(/\/{workspace}/gi, (C = a.config) != null && C.workspace ? `/${a.config.workspace}` : "")), b = b.replace(/{id}/gi, a.config.entityId), b;
3161
3167
  });
3162
- return ye(g, (p) => {
3168
+ return ye(f, (p) => {
3163
3169
  r("loading", p);
3164
3170
  }, { immediate: !0 }), yt(async () => {
3165
- x.value = !1, g.value = !0;
3171
+ _.value = !1, f.value = !0;
3166
3172
  try {
3167
- const { data: p } = await s.get(h.value);
3173
+ const { data: p } = await s.get(y.value);
3168
3174
  if (a.dataKey)
3169
3175
  if (typeof p[a.dataKey] < "u")
3170
3176
  A.value = { ...p[a.dataKey] };
@@ -3172,26 +3178,26 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
3172
3178
  throw new Error(o("errors.dataKeyUndefined", { dataKey: a.dataKey }));
3173
3179
  else
3174
3180
  A.value = { ...p };
3175
- Object.keys(a.configSchema).filter((k) => a.configSchema[k].forceShow).forEach((k) => {
3176
- A.value && typeof A.value[k] > "u" && (A.value[k] = null);
3181
+ Object.keys(a.configSchema).filter((C) => a.configSchema[C].forceShow).forEach((C) => {
3182
+ A.value && typeof A.value[C] > "u" && (A.value[C] = null);
3177
3183
  }), r("fetch:success", p);
3178
3184
  } catch (p) {
3179
- const k = i(p);
3180
- w.value = k.startsWith("code") ? o("baseConfigCard.errors.load") : k, x.value = !0, r("fetch:error", p);
3185
+ const C = i(p);
3186
+ w.value = C.startsWith("code") ? o("baseConfigCard.errors.load") : C, _.value = !0, r("fetch:error", p);
3181
3187
  } finally {
3182
- g.value = !1;
3188
+ f.value = !1;
3183
3189
  }
3184
- }), (p, k) => {
3185
- const v = P("KLabel"), I = P("KSelect"), L = P("KButton"), S = P("KSkeleton"), F = P("KEmptyState"), _ = P("KCard");
3186
- return m(), R(_, { class: "kong-ui-entity-base-config-card" }, _e({
3187
- actions: b(() => [
3188
- q("div", Al, [
3190
+ }), (p, C) => {
3191
+ const b = P("KLabel"), I = P("KSelect"), L = P("KButton"), S = P("KSkeleton"), F = P("KEmptyState"), x = P("KCard");
3192
+ return g(), R(x, { class: "kong-ui-entity-base-config-card" }, xe({
3193
+ actions: k(() => [
3194
+ q("div", _l, [
3189
3195
  Q(p.$slots, "actions", {}, void 0, !0),
3190
- T(v, {
3196
+ T(b, {
3191
3197
  class: "config-format-select-label",
3192
3198
  "data-testid": "config-format-select-label"
3193
3199
  }, {
3194
- default: b(() => [
3200
+ default: k(() => [
3195
3201
  H(M(e.label), 1)
3196
3202
  ]),
3197
3203
  _: 1
@@ -3201,37 +3207,37 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
3201
3207
  items: u,
3202
3208
  onChange: c
3203
3209
  }),
3204
- e.configCardDoc ? (m(), R(L, {
3210
+ e.configCardDoc ? (g(), R(L, {
3205
3211
  key: 0,
3206
3212
  appearance: "tertiary",
3207
3213
  class: "book-icon",
3208
3214
  "data-testid": "book-icon"
3209
3215
  }, {
3210
- default: b(() => [
3216
+ default: k(() => [
3211
3217
  q("a", {
3212
3218
  href: e.configCardDoc,
3213
3219
  rel: "noopener",
3214
3220
  target: "_blank"
3215
3221
  }, [
3216
- T(f(cl), { size: f(da) }, null, 8, ["size"])
3217
- ], 8, xl)
3222
+ T(m(cl), { size: m(da) }, null, 8, ["size"])
3223
+ ], 8, Al)
3218
3224
  ]),
3219
3225
  _: 1
3220
3226
  })) : G("", !0)
3221
3227
  ])
3222
3228
  ]),
3223
- default: b(() => [
3224
- g.value ? (m(), R(S, {
3229
+ default: k(() => [
3230
+ f.value ? (g(), R(S, {
3225
3231
  key: 0,
3226
3232
  "data-testid": "config-card-loader",
3227
3233
  "table-columns": 2,
3228
3234
  type: "table"
3229
- })) : x.value ? (m(), R(F, {
3235
+ })) : _.value ? (g(), R(F, {
3230
3236
  key: 1,
3231
3237
  "data-testid": "config-card-fetch-error",
3232
3238
  "icon-variant": "error"
3233
3239
  }, {
3234
- default: b(() => [
3240
+ default: k(() => [
3235
3241
  q("h3", null, M(w.value), 1)
3236
3242
  ]),
3237
3243
  _: 1
@@ -3239,15 +3245,15 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
3239
3245
  q("div", Sl, [
3240
3246
  T(Qi, {
3241
3247
  config: e.config,
3242
- "fetcher-url": h.value,
3248
+ "fetcher-url": y.value,
3243
3249
  format: d.value,
3244
- "prop-list-types": y.value,
3250
+ "prop-list-types": v.value,
3245
3251
  "property-collections": Z.value,
3246
3252
  record: A.value
3247
- }, _e({ _: 2 }, [
3253
+ }, xe({ _: 2 }, [
3248
3254
  ce(Object.keys(p.$slots), (K) => ({
3249
3255
  name: K,
3250
- fn: b(({ row: V, rowValue: D }) => [
3256
+ fn: k(({ row: V, rowValue: D }) => [
3251
3257
  Q(p.$slots, K, {
3252
3258
  row: V,
3253
3259
  rowValue: D
@@ -3261,10 +3267,10 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
3261
3267
  }, [
3262
3268
  e.hideTitle ? void 0 : {
3263
3269
  name: "title",
3264
- fn: b(() => [
3270
+ fn: k(() => [
3265
3271
  q("div", Il, [
3266
3272
  Q(p.$slots, "title", {}, () => [
3267
- H(M(f(o)("baseConfigCard.title")), 1)
3273
+ H(M(m(o)("baseConfigCard.title")), 1)
3268
3274
  ], !0)
3269
3275
  ])
3270
3276
  ]),
@@ -3273,7 +3279,7 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
3273
3279
  ]), 1024);
3274
3280
  };
3275
3281
  }
3276
- }), $l = /* @__PURE__ */ pe(_l, [["__scopeId", "data-v-491f1797"]]), jl = {
3282
+ }), $l = /* @__PURE__ */ pe(xl, [["__scopeId", "data-v-491f1797"]]), jl = {
3277
3283
  class: "form-actions",
3278
3284
  "data-testid": "form-actions"
3279
3285
  }, Tl = /* @__PURE__ */ W({
@@ -3333,18 +3339,18 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
3333
3339
  var t;
3334
3340
  const r = n, a = e, o = bt(), { i18n: { t: i } } = ne.useI18n(), { getMessageFromError: l } = ne.useErrors(), { axiosInstance: s } = ne.useAxios({
3335
3341
  headers: (t = a.config) == null ? void 0 : t.requestHeaders
3336
- }), u = N(!1), d = N(!1), c = N(""), C = $(() => a.canSubmit === !1 || a.isReadonly), g = N(!1), x = $(() => {
3337
- var y, h;
3342
+ }), u = N(!1), d = N(!1), c = N(""), h = $(() => a.canSubmit === !1 || a.isReadonly), f = N(!1), _ = $(() => {
3343
+ var v, y;
3338
3344
  let p = `${a.config.apiBaseUrl}${a.fetchUrl}`;
3339
- return a.config.app === "konnect" ? p = p.replace(/{controlPlaneId}/gi, ((y = a.config) == null ? void 0 : y.controlPlaneId) || "") : a.config.app === "kongManager" && (p = p.replace(/\/{workspace}/gi, (h = a.config) != null && h.workspace ? `/${a.config.workspace}` : "")), a.editId ? (p = p.replace(/{id}/gi, a.editId), p) : (p = p.replace(/\/{id}/gi, ""), p);
3345
+ return a.config.app === "konnect" ? p = p.replace(/{controlPlaneId}/gi, ((v = a.config) == null ? void 0 : v.controlPlaneId) || "") : a.config.app === "kongManager" && (p = p.replace(/\/{workspace}/gi, (y = a.config) != null && y.workspace ? `/${a.config.workspace}` : "")), a.editId ? (p = p.replace(/{id}/gi, a.editId), p) : (p = p.replace(/\/{id}/gi, ""), p);
3340
3346
  }), w = () => {
3341
- g.value = !g.value;
3347
+ f.value = !f.value;
3342
3348
  }, A = () => {
3343
3349
  a.config.cancelRoute ? o.push(a.config.cancelRoute) : U();
3344
3350
  }, U = () => {
3345
3351
  r("cancel");
3346
3352
  }, B = () => {
3347
- C.value || r("submit");
3353
+ h.value || r("submit");
3348
3354
  }, Z = N([
3349
3355
  {
3350
3356
  title: i("baseForm.configuration.yaml"),
@@ -3355,60 +3361,60 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
3355
3361
  hash: "#json"
3356
3362
  }
3357
3363
  ]);
3358
- return ye(() => u.value, (y) => {
3359
- r("loading", y);
3364
+ return ye(() => u.value, (v) => {
3365
+ r("loading", v);
3360
3366
  }, { immediate: !0 }), yt(async () => {
3361
3367
  if (a.editId)
3362
3368
  try {
3363
3369
  d.value = !1, u.value = !0;
3364
- const { data: y } = await s.get(x.value);
3365
- r("fetch:success", y);
3366
- } catch (y) {
3367
- const h = l(y);
3368
- c.value = h.startsWith("code") ? i("baseForm.errors.edit") : h, d.value = !0, r("fetch:error", y);
3370
+ const { data: v } = await s.get(_.value);
3371
+ r("fetch:success", v);
3372
+ } catch (v) {
3373
+ const y = l(v);
3374
+ c.value = y.startsWith("code") ? i("baseForm.errors.edit") : y, d.value = !0, r("fetch:error", v);
3369
3375
  } finally {
3370
3376
  u.value = !1;
3371
3377
  }
3372
- }), (y, h) => {
3373
- const p = P("KSkeleton"), k = P("KEmptyState"), v = P("KAlert"), I = P("KButton"), L = P("KTabs"), S = P("KSlideout"), F = P("KCard");
3374
- return m(), R(F, { class: "kong-ui-entity-base-form" }, {
3375
- default: b(() => [
3376
- u.value ? (m(), R(p, {
3378
+ }), (v, y) => {
3379
+ const p = P("KSkeleton"), C = P("KEmptyState"), b = P("KAlert"), I = P("KButton"), L = P("KTabs"), S = P("KSlideout"), F = P("KCard");
3380
+ return g(), R(F, { class: "kong-ui-entity-base-form" }, {
3381
+ default: k(() => [
3382
+ u.value ? (g(), R(p, {
3377
3383
  key: 0,
3378
3384
  type: "form"
3379
- })) : d.value ? (m(), R(k, {
3385
+ })) : d.value ? (g(), R(C, {
3380
3386
  key: 1,
3381
- "action-button-text": f(i)("baseForm.actions.back"),
3387
+ "action-button-text": m(i)("baseForm.actions.back"),
3382
3388
  "data-testid": "form-fetch-error",
3383
3389
  "icon-variant": "error",
3384
3390
  onClickAction: A
3385
3391
  }, {
3386
- default: b(() => [
3392
+ default: k(() => [
3387
3393
  q("h3", null, M(c.value), 1)
3388
3394
  ]),
3389
3395
  _: 1
3390
- }, 8, ["action-button-text"])) : (m(), O("form", {
3396
+ }, 8, ["action-button-text"])) : (g(), O("form", {
3391
3397
  key: 2,
3392
3398
  "data-testid": "form-content",
3393
3399
  onReset: ct(U, ["prevent"]),
3394
3400
  onSubmit: ct(B, ["prevent"])
3395
3401
  }, [
3396
- Q(y.$slots, "default", {}, void 0, !0),
3397
- e.errorMessage ? (m(), R(v, {
3402
+ Q(v.$slots, "default", {}, void 0, !0),
3403
+ e.errorMessage ? (g(), R(b, {
3398
3404
  key: 0,
3399
3405
  appearance: "danger",
3400
3406
  "data-testid": "form-error",
3401
3407
  message: e.errorMessage
3402
3408
  }, null, 8, ["message"])) : G("", !0),
3403
3409
  q("div", jl, [
3404
- Q(y.$slots, "form-actions", {}, () => [
3410
+ Q(v.$slots, "form-actions", {}, () => [
3405
3411
  T(I, {
3406
3412
  appearance: "tertiary",
3407
3413
  "data-testid": "form-view-configuration",
3408
- onClick: h[0] || (h[0] = (_) => w())
3414
+ onClick: y[0] || (y[0] = (x) => w())
3409
3415
  }, {
3410
- default: b(() => [
3411
- H(M(f(i)("baseForm.actions.viewConfiguration")), 1)
3416
+ default: k(() => [
3417
+ H(M(m(i)("baseForm.actions.viewConfiguration")), 1)
3412
3418
  ]),
3413
3419
  _: 1
3414
3420
  }),
@@ -3418,19 +3424,19 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
3418
3424
  disabled: e.isReadonly,
3419
3425
  type: "reset"
3420
3426
  }, {
3421
- default: b(() => [
3422
- H(M(f(i)("baseForm.actions.cancel")), 1)
3427
+ default: k(() => [
3428
+ H(M(m(i)("baseForm.actions.cancel")), 1)
3423
3429
  ]),
3424
3430
  _: 1
3425
3431
  }, 8, ["disabled"]),
3426
3432
  T(I, {
3427
3433
  appearance: "primary",
3428
3434
  "data-testid": "form-submit",
3429
- disabled: C.value,
3435
+ disabled: h.value,
3430
3436
  type: "submit"
3431
3437
  }, {
3432
- default: b(() => [
3433
- H(M(f(i)("baseForm.actions.save")), 1)
3438
+ default: k(() => [
3439
+ H(M(m(i)("baseForm.actions.save")), 1)
3434
3440
  ]),
3435
3441
  _: 1
3436
3442
  }, 8, ["disabled"])
@@ -3442,25 +3448,25 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
3442
3448
  "data-testid": "form-view-configuration-slideout",
3443
3449
  "has-overlay": !1,
3444
3450
  "offset-top": 60,
3445
- title: f(i)("baseForm.configuration.title"),
3446
- visible: g.value,
3447
- onClose: h[1] || (h[1] = (_) => w())
3451
+ title: m(i)("baseForm.configuration.title"),
3452
+ visible: f.value,
3453
+ onClose: y[1] || (y[1] = (x) => w())
3448
3454
  }, {
3449
- default: b(() => [
3450
- q("div", null, M(f(i)("baseForm.configuration.message")), 1),
3455
+ default: k(() => [
3456
+ q("div", null, M(m(i)("baseForm.configuration.message")), 1),
3451
3457
  T(L, {
3452
3458
  "data-testid": "form-view-configuration-slideout-tabs",
3453
3459
  tabs: Z.value
3454
3460
  }, {
3455
- json: b(() => [
3461
+ json: k(() => [
3456
3462
  T(bn, {
3457
3463
  config: e.config,
3458
- "fetcher-url": x.value,
3464
+ "fetcher-url": _.value,
3459
3465
  "json-record": a.formFields,
3460
3466
  "request-method": a.editId ? "put" : "post"
3461
3467
  }, null, 8, ["config", "fetcher-url", "json-record", "request-method"])
3462
3468
  ]),
3463
- yaml: b(() => [
3469
+ yaml: k(() => [
3464
3470
  T(lr, {
3465
3471
  "yaml-record": a.formFields
3466
3472
  }, null, 8, ["yaml-record"])
@@ -3508,8 +3514,8 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
3508
3514
  }, l = () => {
3509
3515
  var w, A, U;
3510
3516
  u.value = ((w = r.value) == null ? void 0 : w.getBoundingClientRect().width) || 0, d.value = ((A = t.value) == null ? void 0 : A.clientWidth) || 0, c.value = ((U = s.value) == null ? void 0 : U.innerText) || "";
3511
- }, s = N({}), u = N(0), d = N(0), c = N(""), C = $(() => [r.value, t.value]), g = ye(
3512
- C,
3517
+ }, s = N({}), u = N(0), d = N(0), c = N(""), h = $(() => [r.value, t.value]), f = ye(
3518
+ h,
3513
3519
  (w) => {
3514
3520
  if (a.value && (i(), "ResizeObserver" in window && window)) {
3515
3521
  o = new ResizeObserver((A) => {
@@ -3522,25 +3528,25 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
3522
3528
  }
3523
3529
  },
3524
3530
  { immediate: !0, flush: "post", deep: !0 }
3525
- ), x = $(() => a.value ? u.value > d.value : !1);
3531
+ ), _ = $(() => a.value ? u.value > d.value : !1);
3526
3532
  return br(() => {
3527
3533
  l();
3528
3534
  }), kr(() => {
3529
- g();
3535
+ f();
3530
3536
  }), (w, A) => {
3531
3537
  const U = P("KTooltip");
3532
- return m(), O("span", {
3538
+ return g(), O("span", {
3533
3539
  ref_key: "contentRef",
3534
3540
  ref: s,
3535
3541
  class: "content-wrapper"
3536
3542
  }, [
3537
- a.value ? (m(), O("span", Ol, [
3543
+ a.value ? (g(), O("span", Ol, [
3538
3544
  T(U, {
3539
3545
  "max-width": "300",
3540
3546
  placement: "bottomStart",
3541
- text: x.value ? c.value : ""
3547
+ text: _.value ? c.value : ""
3542
3548
  }, {
3543
- default: b(() => [
3549
+ default: k(() => [
3544
3550
  Q(w.$slots, "default", {}, void 0, !0)
3545
3551
  ]),
3546
3552
  _: 3
@@ -3663,82 +3669,82 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
3663
3669
  emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
3664
3670
  setup(e, { emit: n }) {
3665
3671
  const t = e, r = n, { i18n: { t: a } } = ne.useI18n(), o = $(() => {
3666
- var h, p;
3672
+ var y, p;
3667
3673
  return typeof t.errorMessage == "string" ? {
3668
3674
  hasError: !!t.errorMessage,
3669
3675
  title: t.errorMessage,
3670
3676
  message: void 0
3671
3677
  } : {
3672
3678
  hasError: !!t.errorMessage,
3673
- title: (h = t.errorMessage) == null ? void 0 : h.title,
3679
+ title: (y = t.errorMessage) == null ? void 0 : y.title,
3674
3680
  message: (p = t.errorMessage) == null ? void 0 : p.message
3675
3681
  };
3676
- }), i = $(() => t.cacheIdentifier || t.preferencesStorageKey), l = (h) => h.hasData || !!t.query, s = $(() => {
3677
- const h = [];
3682
+ }), i = $(() => t.cacheIdentifier || t.preferencesStorageKey), l = (y) => y.hasData || !!t.query, s = $(() => {
3683
+ const y = [];
3678
3684
  return Object.keys(t.tableHeaders).forEach((p) => {
3679
- const k = t.tableHeaders[p];
3680
- h.push({
3681
- label: k.label ?? p,
3685
+ const C = t.tableHeaders[p];
3686
+ y.push({
3687
+ label: C.label ?? p,
3682
3688
  key: p,
3683
- sortable: k.sortable ?? !1
3689
+ sortable: C.sortable ?? !1
3684
3690
  });
3685
- }), t.enableEntityActions && h.push({
3691
+ }), t.enableEntityActions && y.push({
3686
3692
  key: "actions",
3687
3693
  hideLabel: !0
3688
- }), h;
3689
- }), u = (h) => ({
3690
- "data-rowid": h.id,
3691
- "data-testid": h.name,
3692
- ...t.rowAttributes(h)
3693
- }), d = N({}), c = (h) => {
3694
+ }), y;
3695
+ }), u = (y) => ({
3696
+ "data-rowid": y.id,
3697
+ "data-testid": y.name,
3698
+ ...t.rowAttributes(y)
3699
+ }), d = N({}), c = (y) => {
3694
3700
  var p;
3695
- return (p = d.value) == null ? void 0 : p.$el.querySelector(`[data-rowid="${h.id}"]`);
3696
- }, C = (h) => {
3701
+ return (p = d.value) == null ? void 0 : p.$el.querySelector(`[data-rowid="${y.id}"]`);
3702
+ }, h = (y) => {
3697
3703
  const p = {
3698
- "data-testid": h.headerKey,
3699
- ...t.cellAttributes(h)
3704
+ "data-testid": y.headerKey,
3705
+ ...t.cellAttributes(y)
3700
3706
  };
3701
- return h.colIndex === 0 && (p.style = {
3707
+ return y.colIndex === 0 && (p.style = {
3702
3708
  maxWidth: "250px",
3703
3709
  overflowX: "hidden",
3704
3710
  textOverflow: "ellipsis"
3705
3711
  }), p;
3706
- }, g = () => {
3707
- r("empty-state-cta-clicked"), x();
3708
- }, x = () => {
3712
+ }, f = () => {
3713
+ r("empty-state-cta-clicked"), _();
3714
+ }, _ = () => {
3709
3715
  r("clear-search-input");
3710
- }, w = $(() => t.disableRowClick ? void 0 : (h, p) => {
3716
+ }, w = $(() => t.disableRowClick ? void 0 : (y, p) => {
3711
3717
  r("click:row", p);
3712
- }), A = (h) => {
3713
- r("sort", h);
3718
+ }), A = (y) => {
3719
+ r("sort", y);
3714
3720
  }, { setTablePreferences: U, getTablePreferences: B } = Mr(), Z = $(() => {
3715
- const h = B(t.preferencesStorageKey);
3721
+ const y = B(t.preferencesStorageKey);
3716
3722
  return {
3717
3723
  ...t.initialFetcherParams,
3718
- ...h
3724
+ ...y
3719
3725
  };
3720
- }), y = (h) => {
3721
- t.preferencesStorageKey && U(t.preferencesStorageKey, h);
3726
+ }), v = (y) => {
3727
+ t.preferencesStorageKey && U(t.preferencesStorageKey, y);
3722
3728
  };
3723
- return (h, p) => {
3724
- const k = P("KIcon"), v = P("KButton"), I = P("KDropdown"), L = P("KTable"), S = P("KCard");
3725
- return m(), R(S, {
3729
+ return (y, p) => {
3730
+ const C = P("KIcon"), b = P("KButton"), I = P("KDropdown"), L = P("KTable"), S = P("KCard");
3731
+ return g(), R(S, {
3726
3732
  class: "kong-ui-entity-base-table",
3727
3733
  title: e.title
3728
3734
  }, {
3729
- default: b(() => [
3735
+ default: k(() => [
3730
3736
  T(L, {
3731
3737
  ref_key: "tableRefs",
3732
3738
  ref: d,
3733
3739
  "cache-identifier": i.value,
3734
- "cell-attrs": C,
3740
+ "cell-attrs": h,
3735
3741
  "disable-pagination-page-jump": e.disablePaginationPageJump,
3736
3742
  "disable-sorting": e.disableSorting,
3737
- "empty-state-action-message": e.query ? f(a)("baseTable.emptyState.noSearchResultsCtaText") : e.emptyStateOptions.ctaText,
3743
+ "empty-state-action-message": e.query ? m(a)("baseTable.emptyState.noSearchResultsCtaText") : e.emptyStateOptions.ctaText,
3738
3744
  "empty-state-action-route": e.query ? void 0 : e.emptyStateOptions.ctaPath,
3739
3745
  "empty-state-icon-variant": e.query ? "search" : "kong",
3740
- "empty-state-message": e.query ? f(a)("baseTable.emptyState.noSearchResultsMessage") : e.emptyStateOptions.message,
3741
- "empty-state-title": e.query ? f(a)("baseTable.emptyState.noSearchResultsTitle") : e.emptyStateOptions.title,
3746
+ "empty-state-message": e.query ? m(a)("baseTable.emptyState.noSearchResultsMessage") : e.emptyStateOptions.message,
3747
+ "empty-state-title": e.query ? m(a)("baseTable.emptyState.noSearchResultsTitle") : e.emptyStateOptions.title,
3742
3748
  "enable-client-sort": e.enableClientSort,
3743
3749
  "error-state-message": o.value.message,
3744
3750
  "error-state-title": o.value.title,
@@ -3752,22 +3758,22 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
3752
3758
  "pagination-type": e.paginationType,
3753
3759
  "row-attrs": u,
3754
3760
  "search-input": e.query,
3755
- onKtableEmptyStateCtaClicked: g,
3761
+ onKtableEmptyStateCtaClicked: f,
3756
3762
  "onRow:click": w.value,
3757
3763
  onSort: p[0] || (p[0] = (F) => A(F)),
3758
- "onUpdate:tablePreferences": y
3759
- }, _e({
3760
- toolbar: b(({ state: F }) => [
3764
+ "onUpdate:tablePreferences": v
3765
+ }, xe({
3766
+ toolbar: k(({ state: F }) => [
3761
3767
  be(q("div", Fl, [
3762
- Q(h.$slots, "toolbar-filter", {}, void 0, !0),
3763
- h.$slots["toolbar-button"] ? (m(), O("div", ql, [
3764
- Q(h.$slots, "toolbar-button", {}, void 0, !0)
3768
+ Q(y.$slots, "toolbar-filter", {}, void 0, !0),
3769
+ y.$slots["toolbar-button"] ? (g(), O("div", ql, [
3770
+ Q(y.$slots, "toolbar-button", {}, void 0, !0)
3765
3771
  ])) : G("", !0)
3766
3772
  ], 512), [
3767
3773
  [ke, l(F)]
3768
3774
  ])
3769
3775
  ]),
3770
- actions: b(({ row: F, rowKey: _, rowValue: K }) => [
3776
+ actions: k(({ row: F, rowKey: x, rowValue: K }) => [
3771
3777
  q("div", {
3772
3778
  class: "actions-container",
3773
3779
  "data-testid": F.name
@@ -3776,22 +3782,22 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
3776
3782
  "kpop-attributes": { placement: "bottomEnd" },
3777
3783
  width: e.dropdownMenuWidth
3778
3784
  }, {
3779
- items: b(() => [
3780
- Q(h.$slots, "actions", {
3785
+ items: k(() => [
3786
+ Q(y.$slots, "actions", {
3781
3787
  row: F,
3782
- rowKey: _,
3788
+ rowKey: x,
3783
3789
  rowValue: K
3784
3790
  }, void 0, !0)
3785
3791
  ]),
3786
- default: b(() => [
3787
- T(v, {
3792
+ default: k(() => [
3793
+ T(b, {
3788
3794
  class: "actions-trigger",
3789
3795
  "data-testid": "overflow-actions-button",
3790
3796
  size: "small"
3791
3797
  }, {
3792
- icon: b(() => [
3793
- T(k, {
3794
- color: f(sa),
3798
+ icon: k(() => [
3799
+ T(C, {
3800
+ color: m(sa),
3795
3801
  icon: "more",
3796
3802
  size: "16"
3797
3803
  }, null, 8, ["color"])
@@ -3805,15 +3811,15 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
3805
3811
  ]),
3806
3812
  _: 2
3807
3813
  }, [
3808
- ce(e.tableHeaders, (F, _) => ({
3809
- name: _,
3810
- fn: b(({ row: K, rowKey: V, rowValue: D }) => [
3814
+ ce(e.tableHeaders, (F, x) => ({
3815
+ name: x,
3816
+ fn: k(({ row: K, rowKey: V, rowValue: D }) => [
3811
3817
  T(Nl, {
3812
- "key-name": String(_),
3818
+ "key-name": String(x),
3813
3819
  "row-el": c(K)
3814
3820
  }, {
3815
- default: b(() => [
3816
- Q(h.$slots, _, {
3821
+ default: k(() => [
3822
+ Q(y.$slots, x, {
3817
3823
  row: K,
3818
3824
  rowKey: V,
3819
3825
  rowValue: D
@@ -3827,8 +3833,8 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
3827
3833
  })),
3828
3834
  e.query ? void 0 : {
3829
3835
  name: "empty-state-action-icon",
3830
- fn: b(() => [
3831
- T(f(al))
3836
+ fn: k(() => [
3837
+ T(m(al))
3832
3838
  ]),
3833
3839
  key: "0"
3834
3840
  }
@@ -3890,7 +3896,7 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
3890
3896
  };
3891
3897
  return (s, u) => {
3892
3898
  const d = P("KAlert"), c = P("KPrompt");
3893
- return m(), R(c, {
3899
+ return g(), R(c, {
3894
3900
  "action-button-appearance": "danger",
3895
3901
  "action-button-disabled": e.actionPending,
3896
3902
  "action-button-text": "Yes, delete",
@@ -3901,34 +3907,34 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
3901
3907
  onCancel: i,
3902
3908
  onProceed: l
3903
3909
  }, {
3904
- default: b(() => [
3905
- e.error ? (m(), O("div", Ul, [
3910
+ default: k(() => [
3911
+ e.error ? (g(), O("div", Ul, [
3906
3912
  T(d, { appearance: "danger" }, {
3907
- default: b(() => [
3913
+ default: k(() => [
3908
3914
  H(M(e.error), 1)
3909
3915
  ]),
3910
3916
  _: 1
3911
3917
  })
3912
3918
  ])) : G("", !0),
3913
- T(f(t), {
3919
+ T(m(t), {
3914
3920
  class: "message",
3915
3921
  keypath: r.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
3916
3922
  tag: "p"
3917
- }, _e({
3918
- entityType: b(() => [
3923
+ }, xe({
3924
+ entityType: k(() => [
3919
3925
  H(M(r.entityType), 1)
3920
3926
  ]),
3921
3927
  _: 2
3922
3928
  }, [
3923
3929
  r.entityName ? {
3924
3930
  name: "entityName",
3925
- fn: b(() => [
3931
+ fn: k(() => [
3926
3932
  q("strong", null, M(r.entityName), 1)
3927
3933
  ]),
3928
3934
  key: "0"
3929
3935
  } : void 0
3930
3936
  ]), 1032, ["keypath"]),
3931
- r.description || s.$slots.description ? (m(), O("div", Pl, [
3937
+ r.description || s.$slots.description ? (g(), O("div", Pl, [
3932
3938
  Q(s.$slots, "description", {}, () => [
3933
3939
  q("p", null, M(r.description), 1)
3934
3940
  ], !0)
@@ -3961,7 +3967,7 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
3961
3967
  }
3962
3968
  },
3963
3969
  setup(e) {
3964
- return (n, t) => (m(), O("svg", Dl, [
3970
+ return (n, t) => (g(), O("svg", Dl, [
3965
3971
  q("mask", zl, [
3966
3972
  q("rect", {
3967
3973
  fill: e.color,
@@ -4001,83 +4007,83 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
4001
4007
  emits: ["update:modelValue"],
4002
4008
  setup(e, { emit: n }) {
4003
4009
  const { i18n: { t } } = ne.useI18n(), r = e, a = n, o = N(!1), i = N({}), l = N(/* @__PURE__ */ new Set()), s = $(() => {
4004
- const y = [];
4005
- return new URLSearchParams(r.modelValue).forEach((h, p) => {
4006
- h !== "" && y.push(p);
4007
- }), y;
4010
+ const v = [];
4011
+ return new URLSearchParams(r.modelValue).forEach((y, p) => {
4012
+ y !== "" && v.push(p);
4013
+ }), v;
4008
4014
  }), u = $(() => {
4009
- const y = r.config.fields;
4010
- return Object.keys(y).filter((h) => y[h].searchable).map((h) => ({
4011
- label: y[h].label || h,
4012
- value: h,
4015
+ const v = r.config.fields;
4016
+ return Object.keys(v).filter((y) => v[y].searchable).map((y) => ({
4017
+ label: v[y].label || y,
4018
+ value: y,
4013
4019
  expanded: !1
4014
4020
  }));
4015
4021
  });
4016
- ye(() => r.modelValue, (y) => {
4017
- i.value = {}, new URLSearchParams(y).forEach((h, p) => {
4018
- i.value[p] = h;
4022
+ ye(() => r.modelValue, (v) => {
4023
+ i.value = {}, new URLSearchParams(v).forEach((y, p) => {
4024
+ i.value[p] = y;
4019
4025
  });
4020
4026
  });
4021
4027
  const d = () => {
4022
4028
  o.value = !o.value;
4023
- }, c = (y) => {
4024
- l.value.has(y) ? l.value.delete(y) : l.value.add(y);
4025
- }, C = (y) => {
4026
- a("update:modelValue", y);
4027
- }, g = () => {
4028
- C("");
4029
- }, x = (y) => `filter-${y}`, w = (y) => {
4030
- var h, p;
4031
- return (((p = (h = r.config.schema) == null ? void 0 : h[y]) == null ? void 0 : p.values) ?? []).map((k) => ({
4032
- value: k,
4033
- label: k
4029
+ }, c = (v) => {
4030
+ l.value.has(v) ? l.value.delete(v) : l.value.add(v);
4031
+ }, h = (v) => {
4032
+ a("update:modelValue", v);
4033
+ }, f = () => {
4034
+ h("");
4035
+ }, _ = (v) => `filter-${v}`, w = (v) => {
4036
+ var y, p;
4037
+ return (((p = (y = r.config.schema) == null ? void 0 : y[v]) == null ? void 0 : p.values) ?? []).map((C) => ({
4038
+ value: C,
4039
+ label: C
4034
4040
  }));
4035
- }, A = (y) => {
4036
- var h, p;
4037
- return ((p = (h = r.config.schema) == null ? void 0 : h[y]) == null ? void 0 : p.type) ?? "text";
4038
- }, U = (y) => {
4041
+ }, A = (v) => {
4042
+ var y, p;
4043
+ return ((p = (y = r.config.schema) == null ? void 0 : y[v]) == null ? void 0 : p.type) ?? "text";
4044
+ }, U = (v) => {
4039
4045
  i.value = {
4040
4046
  ...i.value,
4041
- [y]: ""
4047
+ [v]: ""
4042
4048
  }, Z();
4043
4049
  }, B = () => {
4044
4050
  i.value = {}, Z(!0);
4045
- }, Z = (y = !1) => {
4046
- const h = Object.keys(i.value).reduce((p, k) => (i.value[k] && (p[k] = `${i.value[k]}`), p), {});
4047
- y && (o.value = !1), a("update:modelValue", new URLSearchParams(h).toString());
4051
+ }, Z = (v = !1) => {
4052
+ const y = Object.keys(i.value).reduce((p, C) => (i.value[C] && (p[C] = `${i.value[C]}`), p), {});
4053
+ v && (o.value = !1), a("update:modelValue", new URLSearchParams(y).toString());
4048
4054
  };
4049
- return (y, h) => {
4050
- const p = P("KInput"), k = P("KButton"), v = P("KSelect");
4051
- return e.config.isExactMatch ? (m(), R(p, {
4055
+ return (v, y) => {
4056
+ const p = P("KInput"), C = P("KButton"), b = P("KSelect");
4057
+ return e.config.isExactMatch ? (g(), R(p, {
4052
4058
  key: 0,
4053
4059
  autocomplete: "off",
4054
4060
  class: "kong-ui-entity-filter-input",
4055
4061
  "data-testid": "search-input",
4056
4062
  "model-value": e.modelValue,
4057
4063
  placeholder: e.config.placeholder,
4058
- "onUpdate:modelValue": C
4064
+ "onUpdate:modelValue": h
4059
4065
  }, {
4060
- before: b(() => [
4066
+ before: k(() => [
4061
4067
  T(sn)
4062
4068
  ]),
4063
- after: b(() => [
4064
- be(T(f(wl), {
4069
+ after: k(() => [
4070
+ be(T(m(wl), {
4065
4071
  class: "kong-ui-entity-filter-clear",
4066
- onClick: g
4072
+ onClick: f
4067
4073
  }, null, 512), [
4068
4074
  [ke, e.modelValue !== ""]
4069
4075
  ])
4070
4076
  ]),
4071
4077
  _: 1
4072
- }, 8, ["model-value", "placeholder"])) : (m(), O("div", Wl, [
4073
- T(k, {
4078
+ }, 8, ["model-value", "placeholder"])) : (g(), O("div", Wl, [
4079
+ T(C, {
4074
4080
  appearance: "tertiary",
4075
4081
  "data-testid": "filter-button",
4076
4082
  onClick: d
4077
4083
  }, {
4078
- default: b(() => [
4084
+ default: k(() => [
4079
4085
  T(sn),
4080
- H(" " + M(f(t)("filter.filterButtonText")) + " " + M(s.value.length > 0 ? `(${s.value.length})` : ""), 1)
4086
+ H(" " + M(m(t)("filter.filterButtonText")) + " " + M(s.value.length > 0 ? `(${s.value.length})` : ""), 1)
4081
4087
  ]),
4082
4088
  _: 1
4083
4089
  }),
@@ -4088,9 +4094,9 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
4088
4094
  [ke, o.value]
4089
4095
  ]),
4090
4096
  be(q("div", Yl, [
4091
- (m(!0), O(de, null, ce(u.value, (I) => {
4097
+ (g(!0), O(de, null, ce(u.value, (I) => {
4092
4098
  var L, S;
4093
- return m(), O("div", {
4099
+ return g(), O("div", {
4094
4100
  key: I.value,
4095
4101
  class: "kong-ui-entity-filter-menu-item",
4096
4102
  "data-testid": I.value
@@ -4106,55 +4112,55 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
4106
4112
  be(q("span", Xl, null, 512), [
4107
4113
  [ke, s.value.includes(I.value)]
4108
4114
  ]),
4109
- T(f(hl), {
4115
+ T(m(hl), {
4110
4116
  class: we(["menu-item-expand-icon", { expanded: l.value.has(I.value) }]),
4111
- color: f(ua)
4117
+ color: m(ua)
4112
4118
  }, null, 8, ["class", "color"])
4113
4119
  ], 42, Ql),
4114
4120
  be(q("div", es, [
4115
4121
  q("label", {
4116
4122
  class: "menu-item-label",
4117
- for: x(I.value)
4118
- }, M(f(t)("filter.fieldLabel")), 9, ts),
4119
- ((S = (L = e.config.schema) == null ? void 0 : L[I.value]) == null ? void 0 : S.type) === "select" ? (m(), R(v, {
4123
+ for: _(I.value)
4124
+ }, M(m(t)("filter.fieldLabel")), 9, ts),
4125
+ ((S = (L = e.config.schema) == null ? void 0 : L[I.value]) == null ? void 0 : S.type) === "select" ? (g(), R(b, {
4120
4126
  key: 0,
4121
- id: x(I.value),
4127
+ id: _(I.value),
4122
4128
  modelValue: i.value[I.value],
4123
4129
  "onUpdate:modelValue": (F) => i.value[I.value] = F,
4124
4130
  items: w(I.value),
4125
- placeholder: f(t)("filter.selectPlaceholder")
4126
- }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (m(), R(p, {
4131
+ placeholder: m(t)("filter.selectPlaceholder")
4132
+ }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (g(), R(p, {
4127
4133
  key: 1,
4128
- id: x(I.value),
4134
+ id: _(I.value),
4129
4135
  modelValue: i.value[I.value],
4130
4136
  "onUpdate:modelValue": (F) => i.value[I.value] = F,
4131
4137
  autocomplete: "off",
4132
- placeholder: f(t)("filter.inputPlaceholder"),
4138
+ placeholder: m(t)("filter.inputPlaceholder"),
4133
4139
  type: A(I.value)
4134
4140
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
4135
4141
  ], 512), [
4136
4142
  [ke, l.value.has(I.value)]
4137
4143
  ]),
4138
4144
  be(q("div", ns, [
4139
- T(k, {
4145
+ T(C, {
4140
4146
  appearance: "tertiary",
4141
4147
  "data-testid": "apply-filter",
4142
4148
  size: "small",
4143
- onClick: h[0] || (h[0] = (F) => Z(!0))
4149
+ onClick: y[0] || (y[0] = (F) => Z(!0))
4144
4150
  }, {
4145
- default: b(() => [
4146
- H(M(f(t)("filter.applyButtonText")), 1)
4151
+ default: k(() => [
4152
+ H(M(m(t)("filter.applyButtonText")), 1)
4147
4153
  ]),
4148
4154
  _: 1
4149
4155
  }),
4150
- T(k, {
4156
+ T(C, {
4151
4157
  appearance: "tertiary",
4152
4158
  "data-testid": "clear-filter",
4153
4159
  size: "small",
4154
4160
  onClick: (F) => U(I.value)
4155
4161
  }, {
4156
- default: b(() => [
4157
- H(M(f(t)("filter.clearButtonText")), 1)
4162
+ default: k(() => [
4163
+ H(M(m(t)("filter.clearButtonText")), 1)
4158
4164
  ]),
4159
4165
  _: 2
4160
4166
  }, 1032, ["onClick"])
@@ -4164,13 +4170,13 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
4164
4170
  ], 8, Zl);
4165
4171
  }), 128)),
4166
4172
  q("div", rs, [
4167
- T(k, {
4173
+ T(C, {
4168
4174
  appearance: "tertiary",
4169
4175
  size: "small",
4170
4176
  onClick: B
4171
4177
  }, {
4172
- default: b(() => [
4173
- H(M(f(t)("filter.clearAllButtonText")), 1)
4178
+ default: k(() => [
4179
+ H(M(m(t)("filter.clearAllButtonText")), 1)
4174
4180
  ]),
4175
4181
  _: 1
4176
4182
  })
@@ -4246,21 +4252,21 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
4246
4252
  },
4247
4253
  setup(e) {
4248
4254
  const n = vt();
4249
- return (t, r) => (m(), O("fieldset", {
4255
+ return (t, r) => (g(), O("fieldset", {
4250
4256
  class: we(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
4251
4257
  }, [
4252
4258
  q("div", is, [
4253
- e.hideInfoHeader ? G("", !0) : (m(), O("div", {
4259
+ e.hideInfoHeader ? G("", !0) : (g(), O("div", {
4254
4260
  key: 0,
4255
4261
  class: we(["form-section-info", { sticky: e.stickyInfoHeader }])
4256
4262
  }, [
4257
- e.title ? (m(), O("h4", ls, M(e.title), 1)) : G("", !0),
4258
- e.description || f(n).description ? (m(), O("div", ss, [
4263
+ e.title ? (g(), O("h4", ls, M(e.title), 1)) : G("", !0),
4264
+ e.description || m(n).description ? (g(), O("div", ss, [
4259
4265
  Q(t.$slots, "description", {}, () => [
4260
4266
  q("p", null, M(e.description), 1)
4261
4267
  ], !0)
4262
4268
  ])) : G("", !0),
4263
- f(n).footer ? (m(), O("div", us, [
4269
+ m(n).footer ? (g(), O("div", us, [
4264
4270
  Q(t.$slots, "footer", {}, void 0, !0)
4265
4271
  ])) : G("", !0)
4266
4272
  ], 2)),
@@ -4302,7 +4308,7 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
4302
4308
  allRecords: u,
4303
4309
  error: d,
4304
4310
  loadItems: c,
4305
- results: C
4311
+ results: h
4306
4312
  } = hs(
4307
4313
  r.config,
4308
4314
  $e.list[r.config.app].all,
@@ -4311,52 +4317,52 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
4311
4317
  fetchedItemsKey: "data",
4312
4318
  searchKeys: ["username", "id"]
4313
4319
  }
4314
- ), g = (_) => _, x = $(() => d.value ? t("consumers.errors.general") : ""), w = N(0), A = $(() => u.value === void 0), U = $(() => C.value.map((_) => ({
4315
- label: _.username || _.customId,
4316
- value: _.id,
4317
- selected: i.value.includes(_.id),
4318
- data: _
4320
+ ), f = (x) => x, _ = $(() => d.value ? t("consumers.errors.general") : ""), w = N(0), A = $(() => u.value === void 0), U = $(() => h.value.map((x) => ({
4321
+ label: x.username || x.customId,
4322
+ value: x.id,
4323
+ selected: i.value.includes(x.id),
4324
+ data: x
4319
4325
  // we need this to determine whether or not to show the description text
4320
- }))), B = (_) => {
4326
+ }))), B = (x) => {
4321
4327
  var V;
4322
- const K = A.value ? C.value.find((D) => D.id === _) : (V = u.value) == null ? void 0 : V.find((D) => D.id === _);
4323
- return K ? K.username || K.custom_id : _;
4328
+ const K = A.value ? h.value.find((D) => D.id === x) : (V = u.value) == null ? void 0 : V.find((D) => D.id === x);
4329
+ return K ? K.username || K.custom_id : x;
4324
4330
  }, Z = () => {
4325
- p.value = "", y.value = [], L.value = [], a("cancel");
4326
- }, y = N([]), h = N(!1), p = N(""), k = async () => {
4331
+ p.value = "", v.value = [], L.value = [], a("cancel");
4332
+ }, v = N([]), y = N(!1), p = N(""), C = async () => {
4327
4333
  if (!i.value.length) {
4328
4334
  p.value = "", L.value = [], a("cancel");
4329
4335
  return;
4330
4336
  }
4331
- h.value = !0, p.value = "", y.value = [], L.value = [];
4337
+ y.value = !0, p.value = "", v.value = [], L.value = [];
4332
4338
  try {
4333
- const _ = i.value.map((D) => I(D)), K = await Promise.allSettled(_);
4339
+ const x = i.value.map((D) => I(D)), K = await Promise.allSettled(x);
4334
4340
  let V = !0;
4335
4341
  K.forEach((D) => {
4336
4342
  D.status !== "fulfilled" && (V = !1);
4337
- }), V ? (y.value = [], L.value = [], a("add:success", i.value), i.value = []) : (y.value.length && a("add:partial-success", y.value), i.value = [], S(K));
4343
+ }), V ? (v.value = [], L.value = [], a("add:success", i.value), i.value = []) : (v.value.length && a("add:partial-success", v.value), i.value = [], S(K));
4338
4344
  } catch {
4339
4345
  p.value = t("consumers.errors.add"), a("error", p.value);
4340
4346
  } finally {
4341
- h.value = !1;
4347
+ y.value = !1;
4342
4348
  }
4343
- }, v = $(() => {
4349
+ }, b = $(() => {
4344
4350
  var K, V, D, ae;
4345
- let _ = `${r.config.apiBaseUrl}${$e.list[r.config.app].forConsumerGroup}`;
4346
- return r.config.app === "konnect" ? _ = _.replace(/{controlPlaneId}/gi, ((K = r.config) == null ? void 0 : K.controlPlaneId) || "").replace(/{consumerGroupId}/gi, ((V = r.config) == null ? void 0 : V.consumerGroupId) || "") : r.config.app === "kongManager" && (_ = _.replace(/\/{workspace}/gi, (D = r.config) != null && D.workspace ? `/${r.config.workspace}` : "").replace(/{consumerGroupId}/gi, ((ae = r.config) == null ? void 0 : ae.consumerGroupId) || "")), _;
4347
- }), I = async (_) => {
4351
+ let x = `${r.config.apiBaseUrl}${$e.list[r.config.app].forConsumerGroup}`;
4352
+ return r.config.app === "konnect" ? x = x.replace(/{controlPlaneId}/gi, ((K = r.config) == null ? void 0 : K.controlPlaneId) || "").replace(/{consumerGroupId}/gi, ((V = r.config) == null ? void 0 : V.consumerGroupId) || "") : r.config.app === "kongManager" && (x = x.replace(/\/{workspace}/gi, (D = r.config) != null && D.workspace ? `/${r.config.workspace}` : "").replace(/{consumerGroupId}/gi, ((ae = r.config) == null ? void 0 : ae.consumerGroupId) || "")), x;
4353
+ }), I = async (x) => {
4348
4354
  const K = {
4349
- consumer: _
4355
+ consumer: x
4350
4356
  };
4351
4357
  try {
4352
- const V = await o.post(v.value, K);
4353
- return y.value.push(_), V;
4358
+ const V = await o.post(b.value, K);
4359
+ return v.value.push(x), V;
4354
4360
  } catch (V) {
4355
- let D = `${B(_)} - ${V.message}`;
4356
- return V.response.status === 409 && (D = `${B(_)} - ${t("consumers.errors.already_added")}`), Promise.reject(Error(D));
4361
+ let D = `${B(x)} - ${V.message}`;
4362
+ return V.response.status === 409 && (D = `${B(x)} - ${t("consumers.errors.already_added")}`), Promise.reject(Error(D));
4357
4363
  }
4358
- }, L = N([]), S = (_) => {
4359
- L.value = _.map((K) => {
4364
+ }, L = N([]), S = (x) => {
4365
+ L.value = x.map((K) => {
4360
4366
  var V;
4361
4367
  return (V = K.reason) == null ? void 0 : V.message;
4362
4368
  }).filter(Boolean);
@@ -4365,49 +4371,49 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
4365
4371
  w.value++;
4366
4372
  }, { immediate: !0, deep: !0 }), ye(() => r.visible, () => {
4367
4373
  r.visible && c();
4368
- }, { immediate: !0 }), (_, K) => {
4374
+ }, { immediate: !0 }), (x, K) => {
4369
4375
  const V = P("KMultiselect"), D = P("KAlert"), ae = P("KPrompt");
4370
- return m(), R(ae, {
4371
- "action-button-disabled": h.value,
4376
+ return g(), R(ae, {
4377
+ "action-button-disabled": y.value,
4372
4378
  class: "kong-ui-entities-add-consumers-modal",
4373
4379
  "data-testid": "add-consumer-modal",
4374
- title: f(t)("consumers.consumer_groups.add.title"),
4380
+ title: m(t)("consumers.consumer_groups.add.title"),
4375
4381
  visible: e.visible,
4376
4382
  onCancel: Z,
4377
- onProceed: k
4383
+ onProceed: C
4378
4384
  }, {
4379
- default: b(() => [
4385
+ default: k(() => [
4380
4386
  q("div", ys, [
4381
- q("p", vs, M(f(t)("consumers.consumer_groups.add.ctaText")), 1),
4387
+ q("p", vs, M(m(t)("consumers.consumer_groups.add.ctaText")), 1),
4382
4388
  T(V, {
4383
4389
  modelValue: i.value,
4384
4390
  "onUpdate:modelValue": K[0] || (K[0] = (fe) => i.value = fe),
4385
4391
  autosuggest: "",
4386
4392
  "data-testid": "add-consumers-multiselect",
4387
- "dropdown-footer-text": A.value ? f(t)("consumers.consumer_groups.add.footer") : void 0,
4393
+ "dropdown-footer-text": A.value ? m(t)("consumers.consumer_groups.add.footer") : void 0,
4388
4394
  items: U.value,
4389
- label: f(t)("consumers.consumer_groups.add.consumers_label"),
4390
- loading: f(s),
4391
- placeholder: f(t)("consumers.consumer_groups.add.consumer_placeholder"),
4392
- readonly: h.value,
4395
+ label: m(t)("consumers.consumer_groups.add.consumers_label"),
4396
+ loading: m(s),
4397
+ placeholder: m(t)("consumers.consumer_groups.add.consumer_placeholder"),
4398
+ readonly: y.value,
4393
4399
  required: "",
4394
4400
  width: "100%",
4395
- onQueryChange: f(l)
4401
+ onQueryChange: m(l)
4396
4402
  }, {
4397
- "item-template": b(({ item: fe }) => [
4403
+ "item-template": k(({ item: fe }) => [
4398
4404
  q("div", bs, M(fe.label), 1),
4399
- g(fe).data.username && g(fe).data.custom_id ? (m(), O("div", ks, M(g(fe).data.custom_id), 1)) : G("", !0)
4405
+ f(fe).data.username && f(fe).data.custom_id ? (g(), O("div", ks, M(f(fe).data.custom_id), 1)) : G("", !0)
4400
4406
  ]),
4401
4407
  _: 1
4402
4408
  }, 8, ["modelValue", "dropdown-footer-text", "items", "label", "loading", "placeholder", "readonly", "onQueryChange"]),
4403
- p.value || x.value || L.value.length ? (m(), O("div", Cs, [
4409
+ p.value || _.value || L.value.length ? (g(), O("div", Cs, [
4404
4410
  T(D, { appearance: "danger" }, {
4405
- default: b(() => [
4406
- q("p", null, M(f(t)("consumers.errors.add")), 1),
4407
- L.value.length ? (m(), O("ul", ws, [
4408
- (m(!0), O(de, null, ce(L.value, (fe, tt) => (m(), O("li", { key: tt }, M(fe), 1))), 128))
4411
+ default: k(() => [
4412
+ q("p", null, M(m(t)("consumers.errors.add")), 1),
4413
+ L.value.length ? (g(), O("ul", ws, [
4414
+ (g(!0), O(de, null, ce(L.value, (fe, tt) => (g(), O("li", { key: tt }, M(fe), 1))), 128))
4409
4415
  ])) : G("", !0),
4410
- q("div", null, M(p.value || x.value), 1)
4416
+ q("div", null, M(p.value || _.value), 1)
4411
4417
  ]),
4412
4418
  _: 1
4413
4419
  })
@@ -4423,7 +4429,7 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
4423
4429
  for (const [r, a] of n)
4424
4430
  t[r] = a;
4425
4431
  return t;
4426
- }, As = /* @__PURE__ */ jt(Is, [["__scopeId", "data-v-f91d7d30"]]), xs = { class: "kong-ui-entities-consumers-list" }, Ss = { key: 1 }, _s = /* @__PURE__ */ W({
4432
+ }, _s = /* @__PURE__ */ jt(Is, [["__scopeId", "data-v-f91d7d30"]]), As = { class: "kong-ui-entities-consumers-list" }, Ss = { key: 1 }, xs = /* @__PURE__ */ W({
4427
4433
  __name: "ConsumerList",
4428
4434
  props: {
4429
4435
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -4474,11 +4480,11 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
4474
4480
  headers: (qt = r.config) == null ? void 0 : qt.requestHeaders
4475
4481
  }), s = N(1), u = $(() => !!r.config.consumerGroupId), d = $(
4476
4482
  () => u.value ? "kong-ui-entities-consumers-list-in-group-page" : "kong-ui-entities-consumers-list"
4477
- ), c = $(() => r.config.app !== "kongManager" || !!r.config.disableSorting), C = {
4483
+ ), c = $(() => r.config.app !== "kongManager" || !!r.config.disableSorting), h = {
4478
4484
  username: { label: o("consumers.list.table_headers.username"), searchable: !0, sortable: !0 },
4479
4485
  custom_id: { label: o("consumers.list.table_headers.custom_id"), searchable: !0, sortable: !0 },
4480
4486
  tags: { label: o("consumers.list.table_headers.tags"), sortable: !1 }
4481
- }, g = C, x = (j) => ({
4487
+ }, f = h, _ = (j) => ({
4482
4488
  "data-testid": j.username ?? j.custom_id ?? j.id
4483
4489
  }), w = $(() => {
4484
4490
  var z, X, le, me;
@@ -4492,16 +4498,16 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
4492
4498
  } : {
4493
4499
  isExactMatch: j,
4494
4500
  fields: {
4495
- username: C.username,
4496
- custom_id: C.custom_id
4501
+ username: h.username,
4502
+ custom_id: h.custom_id
4497
4503
  },
4498
4504
  schema: r.config.filterSchema
4499
4505
  };
4500
- }), B = $(() => u.value && !r.config.paginatedEndpoint ? "consumers" : void 0), { fetcher: Z, fetcherState: y } = gs(r.config, w.value, B.value), h = () => {
4506
+ }), B = $(() => u.value && !r.config.paginatedEndpoint ? "consumers" : void 0), { fetcher: Z, fetcherState: v } = gs(r.config, w.value, B.value), y = () => {
4501
4507
  A.value = "";
4502
4508
  }, p = () => {
4503
4509
  s.value++;
4504
- }, k = (j) => j ?? "-", v = N(null), I = (j, z) => {
4510
+ }, C = (j) => j ?? "-", b = N(null), I = (j, z) => {
4505
4511
  const X = j.id;
4506
4512
  if (!z(X)) {
4507
4513
  t("copy:error", {
@@ -4535,7 +4541,7 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
4535
4541
  }, F = (j) => ({
4536
4542
  label: o("consumers.actions.view"),
4537
4543
  to: r.config.getViewRoute(j)
4538
- }), _ = (j) => ({
4544
+ }), x = (j) => ({
4539
4545
  label: o("consumers.actions.edit"),
4540
4546
  to: r.config.getEditRoute(j)
4541
4547
  }), K = N(void 0), V = N(!1), D = N(!1), ae = N(""), fe = fs(r.config, w.value), tt = (j) => {
@@ -4583,15 +4589,15 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
4583
4589
  }
4584
4590
  }
4585
4591
  }, Ft = N(!0);
4586
- ye(y, (j) => {
4592
+ ye(v, (j) => {
4587
4593
  var z, X, le, me;
4588
- if (Array.isArray((z = j == null ? void 0 : j.response) == null ? void 0 : z.data) && (Ft.value = j.response.data.length > 0), j.status === xe.Error) {
4589
- v.value = {
4594
+ if (Array.isArray((z = j == null ? void 0 : j.response) == null ? void 0 : z.data) && (Ft.value = j.response.data.length > 0), j.status === Ae.Error) {
4595
+ b.value = {
4590
4596
  title: o("consumers.errors.general")
4591
- }, (me = (le = (X = j.error) == null ? void 0 : X.response) == null ? void 0 : le.data) != null && me.message && (v.value.message = j.error.response.data.message), t("error", j.error);
4597
+ }, (me = (le = (X = j.error) == null ? void 0 : X.response) == null ? void 0 : le.data) != null && me.message && (b.value.message = j.error.response.data.message), t("error", j.error);
4592
4598
  return;
4593
4599
  }
4594
- v.value = null;
4600
+ b.value = null;
4595
4601
  });
4596
4602
  const at = N({
4597
4603
  ctaPath: u.value ? void 0 : r.config.createRoute,
@@ -4603,45 +4609,45 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
4603
4609
  await r.canCreate() && (at.value.title = u.value ? o("consumers.list.empty_state.title_for_consumer_group") : o("consumers.list.empty_state.title"), at.value.ctaText = u.value ? o("consumers.actions.add_consumer") : o("consumers.actions.create"));
4604
4610
  }), (j, z) => {
4605
4611
  const X = P("KButton"), le = P("KBadge"), me = P("KTruncate"), Ke = P("KDropdownItem"), Kt = P("KClipboardProvider"), gr = P("KPrompt");
4606
- return m(), O("div", xs, [
4607
- T(f(Ll), {
4612
+ return g(), O("div", As, [
4613
+ T(m(Ll), {
4608
4614
  "cache-identifier": e.cacheIdentifier,
4609
4615
  "disable-pagination": u.value && !e.config.paginatedEndpoint,
4610
4616
  "disable-pagination-page-jump": "",
4611
4617
  "disable-sorting": c.value,
4612
4618
  "empty-state-options": at.value,
4613
4619
  "enable-entity-actions": "",
4614
- "error-message": v.value,
4615
- fetcher: f(Z),
4620
+ "error-message": b.value,
4621
+ fetcher: m(Z),
4616
4622
  "fetcher-cache-key": s.value,
4617
4623
  "pagination-type": "offset",
4618
4624
  "preferences-storage-key": d.value,
4619
4625
  query: A.value,
4620
- "row-attributes": x,
4621
- "table-headers": f(g),
4626
+ "row-attributes": _,
4627
+ "table-headers": m(f),
4622
4628
  "use-action-outside": e.useActionOutside,
4623
- onClearSearchInput: h,
4629
+ onClearSearchInput: y,
4624
4630
  "onClick:row": z[3] || (z[3] = (J) => S(J)),
4625
4631
  onEmptyStateCtaClicked: cr,
4626
4632
  onSort: p
4627
4633
  }, {
4628
- "toolbar-filter": b(() => [
4629
- u.value ? G("", !0) : (m(), R(f(os), {
4634
+ "toolbar-filter": k(() => [
4635
+ u.value ? G("", !0) : (g(), R(m(os), {
4630
4636
  key: 0,
4631
4637
  modelValue: A.value,
4632
4638
  "onUpdate:modelValue": z[0] || (z[0] = (J) => A.value = J),
4633
4639
  config: U.value
4634
4640
  }, null, 8, ["modelValue", "config"]))
4635
4641
  ]),
4636
- "toolbar-button": b(() => [
4637
- (m(), R(je(e.useActionOutside ? "Teleport" : "div"), {
4642
+ "toolbar-button": k(() => [
4643
+ (g(), R(je(e.useActionOutside ? "Teleport" : "div"), {
4638
4644
  to: e.useActionOutside ? "#kong-ui-app-page-header-action-button" : void 0
4639
4645
  }, {
4640
- default: b(() => [
4641
- T(f(Ve), {
4646
+ default: k(() => [
4647
+ T(m(Ve), {
4642
4648
  "auth-function": () => e.canCreate()
4643
4649
  }, {
4644
- default: b(() => [
4650
+ default: k(() => [
4645
4651
  be(T(X, {
4646
4652
  appearance: "primary",
4647
4653
  "data-testid": "toolbar-add-consumer",
@@ -4650,8 +4656,8 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
4650
4656
  to: e.config.consumerGroupId ? void 0 : e.config.createRoute,
4651
4657
  onClick: z[1] || (z[1] = () => e.config.consumerGroupId ? Tt() : void 0)
4652
4658
  }, {
4653
- default: b(() => [
4654
- H(M(e.config.consumerGroupId ? f(o)("consumers.actions.add_consumer") : f(o)("consumers.list.toolbar_actions.new_consumer")), 1)
4659
+ default: k(() => [
4660
+ H(M(e.config.consumerGroupId ? m(o)("consumers.actions.add_consumer") : m(o)("consumers.list.toolbar_actions.new_consumer")), 1)
4655
4661
  ]),
4656
4662
  _: 1
4657
4663
  }, 8, ["to"]), [
@@ -4664,38 +4670,38 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
4664
4670
  _: 1
4665
4671
  }, 8, ["to"]))
4666
4672
  ]),
4667
- username: b(({ rowValue: J }) => [
4668
- q("b", null, M(k(J)), 1)
4673
+ username: k(({ rowValue: J }) => [
4674
+ q("b", null, M(C(J)), 1)
4669
4675
  ]),
4670
- custom_id: b(({ rowValue: J }) => [
4671
- H(M(k(J)), 1)
4676
+ custom_id: k(({ rowValue: J }) => [
4677
+ H(M(C(J)), 1)
4672
4678
  ]),
4673
- tags: b(({ rowValue: J }) => [
4674
- J && J.length > 0 ? (m(), R(me, { key: 0 }, {
4675
- default: b(() => [
4676
- (m(!0), O(de, null, ce(J, (Te) => (m(), R(le, {
4679
+ tags: k(({ rowValue: J }) => [
4680
+ J && J.length > 0 ? (g(), R(me, { key: 0 }, {
4681
+ default: k(() => [
4682
+ (g(!0), O(de, null, ce(J, (Te) => (g(), R(le, {
4677
4683
  key: Te,
4678
4684
  onClick: z[2] || (z[2] = ct(() => {
4679
4685
  }, ["stop"]))
4680
4686
  }, {
4681
- default: b(() => [
4687
+ default: k(() => [
4682
4688
  H(M(Te), 1)
4683
4689
  ]),
4684
4690
  _: 2
4685
4691
  }, 1024))), 128))
4686
4692
  ]),
4687
4693
  _: 2
4688
- }, 1024)) : (m(), O("span", Ss, "-"))
4694
+ }, 1024)) : (g(), O("span", Ss, "-"))
4689
4695
  ]),
4690
- actions: b(({ row: J }) => [
4696
+ actions: k(({ row: J }) => [
4691
4697
  T(Kt, null, {
4692
- default: b(({ copyToClipboard: Te }) => [
4698
+ default: k(({ copyToClipboard: Te }) => [
4693
4699
  T(Ke, {
4694
4700
  "data-testid": "action-entity-copy-id",
4695
4701
  onClick: (hr) => I(J, Te)
4696
4702
  }, {
4697
- default: b(() => [
4698
- H(M(f(o)("consumers.actions.copy_id")), 1)
4703
+ default: k(() => [
4704
+ H(M(m(o)("consumers.actions.copy_id")), 1)
4699
4705
  ]),
4700
4706
  _: 2
4701
4707
  }, 1032, ["onClick"])
@@ -4703,23 +4709,23 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
4703
4709
  _: 2
4704
4710
  }, 1024),
4705
4711
  T(Kt, null, {
4706
- default: b(({ copyToClipboard: Te }) => [
4712
+ default: k(({ copyToClipboard: Te }) => [
4707
4713
  T(Ke, {
4708
4714
  "data-testid": "action-entity-copy-json",
4709
4715
  onClick: (hr) => L(J, Te)
4710
4716
  }, {
4711
- default: b(() => [
4712
- H(M(f(o)("consumers.actions.copy_json")), 1)
4717
+ default: k(() => [
4718
+ H(M(m(o)("consumers.actions.copy_json")), 1)
4713
4719
  ]),
4714
4720
  _: 2
4715
4721
  }, 1032, ["onClick"])
4716
4722
  ]),
4717
4723
  _: 2
4718
4724
  }, 1024),
4719
- T(f(Ve), {
4725
+ T(m(Ve), {
4720
4726
  "auth-function": () => e.canRetrieve(J)
4721
4727
  }, {
4722
- default: b(() => [
4728
+ default: k(() => [
4723
4729
  T(Ke, {
4724
4730
  "data-testid": "action-entity-view",
4725
4731
  "has-divider": "",
@@ -4728,29 +4734,29 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
4728
4734
  ]),
4729
4735
  _: 2
4730
4736
  }, 1032, ["auth-function"]),
4731
- T(f(Ve), {
4737
+ T(m(Ve), {
4732
4738
  "auth-function": () => e.canEdit(J)
4733
4739
  }, {
4734
- default: b(() => [
4740
+ default: k(() => [
4735
4741
  T(Ke, {
4736
4742
  "data-testid": "action-entity-edit",
4737
- item: _(J.id)
4743
+ item: x(J.id)
4738
4744
  }, null, 8, ["item"])
4739
4745
  ]),
4740
4746
  _: 2
4741
4747
  }, 1032, ["auth-function"]),
4742
- T(f(Ve), {
4748
+ T(m(Ve), {
4743
4749
  "auth-function": () => e.canDelete(J)
4744
4750
  }, {
4745
- default: b(() => [
4751
+ default: k(() => [
4746
4752
  T(Ke, {
4747
4753
  danger: "",
4748
4754
  "data-testid": "action-entity-delete",
4749
4755
  "has-divider": "",
4750
4756
  onClick: () => e.config.consumerGroupId ? pr(J) : tt(J)
4751
4757
  }, {
4752
- default: b(() => [
4753
- H(M(e.config.consumerGroupId ? f(o)("consumers.actions.remove") : f(o)("consumers.actions.delete")), 1)
4758
+ default: k(() => [
4759
+ H(M(e.config.consumerGroupId ? m(o)("consumers.actions.remove") : m(o)("consumers.actions.delete")), 1)
4754
4760
  ]),
4755
4761
  _: 2
4756
4762
  }, 1032, ["onClick"])
@@ -4760,19 +4766,19 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
4760
4766
  ]),
4761
4767
  _: 1
4762
4768
  }, 8, ["cache-identifier", "disable-pagination", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "preferences-storage-key", "query", "table-headers", "use-action-outside"]),
4763
- T(f(Vl), {
4769
+ T(m(Vl), {
4764
4770
  "action-button-disabled": D.value,
4765
4771
  "data-testid": "delete-consumer-modal",
4766
- description: f(o)("consumers.delete.description"),
4772
+ description: m(o)("consumers.delete.description"),
4767
4773
  "entity-name": K.value && (K.value.username || K.value.custom_id || K.value.id),
4768
- "entity-type": f(pn).Consumer,
4774
+ "entity-type": m(pn).Consumer,
4769
4775
  error: ae.value,
4770
- title: f(o)("consumers.delete.title"),
4776
+ title: m(o)("consumers.delete.title"),
4771
4777
  visible: V.value,
4772
4778
  onCancel: sr,
4773
4779
  onProceed: ur
4774
4780
  }, null, 8, ["action-button-disabled", "description", "entity-name", "entity-type", "error", "title", "visible"]),
4775
- e.config.consumerGroupId ? (m(), R(As, {
4781
+ e.config.consumerGroupId ? (g(), R(_s, {
4776
4782
  key: 0,
4777
4783
  config: e.config,
4778
4784
  "data-testid": "add-consumer-modal",
@@ -4781,42 +4787,42 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
4781
4787
  "onAdd:success": z[5] || (z[5] = (J) => Ot(J)),
4782
4788
  onCancel: Mt
4783
4789
  }, null, 8, ["config", "visible"])) : G("", !0),
4784
- e.config.consumerGroupId && he.value ? (m(), R(gr, {
4790
+ e.config.consumerGroupId && he.value ? (g(), R(gr, {
4785
4791
  key: 1,
4786
4792
  "action-button-appearance": "danger",
4787
4793
  "data-testid": "remove-consumer-modal",
4788
- title: f(o)("consumers.consumer_groups.remove.title"),
4794
+ title: m(o)("consumers.consumer_groups.remove.title"),
4789
4795
  visible: rt.value,
4790
4796
  onCancel: Et,
4791
4797
  onProceed: mr
4792
4798
  }, {
4793
- default: b(() => [
4794
- T(f(a), {
4799
+ default: k(() => [
4800
+ T(m(a), {
4795
4801
  class: "message",
4796
4802
  keypath: e.config.consumerGroupName ? "consumers.consumer_groups.remove.confirmation" : "consumers.consumer_groups.remove.confirmationNoCG",
4797
4803
  tag: "p"
4798
- }, _e({
4799
- consumer: b(() => [
4804
+ }, xe({
4805
+ consumer: k(() => [
4800
4806
  q("strong", null, M(he.value.username || he.value.custom_id || he.value.id), 1)
4801
4807
  ]),
4802
4808
  _: 2
4803
4809
  }, [
4804
4810
  e.config.consumerGroupName ? {
4805
4811
  name: "consumerGroup",
4806
- fn: b(() => [
4812
+ fn: k(() => [
4807
4813
  q("strong", null, M(e.config.consumerGroupName), 1)
4808
4814
  ]),
4809
4815
  key: "0"
4810
4816
  } : void 0
4811
4817
  ]), 1032, ["keypath"]),
4812
- q("p", null, M(f(o)("consumers.consumer_groups.remove.description")), 1)
4818
+ q("p", null, M(m(o)("consumers.consumer_groups.remove.description")), 1)
4813
4819
  ]),
4814
4820
  _: 1
4815
4821
  }, 8, ["title", "visible"])) : G("", !0)
4816
4822
  ]);
4817
4823
  };
4818
4824
  }
4819
- }), Ds = /* @__PURE__ */ jt(_s, [["__scopeId", "data-v-2be5223c"]]), $s = { class: "kong-ui-entities-consumer-form" }, js = { class: "fields-group-title" }, Ts = { class: "fields-group-text" }, Ms = /* @__PURE__ */ W({
4825
+ }), Ds = /* @__PURE__ */ jt(xs, [["__scopeId", "data-v-2be5223c"]]), $s = { class: "kong-ui-entities-consumer-form" }, js = { class: "fields-group-title" }, Ts = { class: "fields-group-text" }, Ms = /* @__PURE__ */ W({
4820
4826
  __name: "ConsumerForm",
4821
4827
  props: {
4822
4828
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -4850,96 +4856,96 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
4850
4856
  customId: "",
4851
4857
  tags: ""
4852
4858
  }), c = $(() => {
4853
- var k, v;
4854
- return (v = $e.form[(k = t.config) == null ? void 0 : k.app]) == null ? void 0 : v.edit;
4855
- }), C = () => {
4856
- var k;
4857
- i.push(((k = t.config) == null ? void 0 : k.cancelRoute) || { name: "consumer-list" });
4858
- }, g = (k) => {
4859
- r("loading", k);
4860
- }, x = (k) => {
4861
- r("error", k);
4862
- }, w = (k) => {
4859
+ var C, b;
4860
+ return (b = $e.form[(C = t.config) == null ? void 0 : C.app]) == null ? void 0 : b.edit;
4861
+ }), h = () => {
4862
+ var C;
4863
+ i.push(((C = t.config) == null ? void 0 : C.cancelRoute) || { name: "consumer-list" });
4864
+ }, f = (C) => {
4865
+ r("loading", C);
4866
+ }, _ = (C) => {
4867
+ r("error", C);
4868
+ }, w = (C) => {
4863
4869
  var I, L, S;
4864
- u.fields.username = ((I = k == null ? void 0 : k.item) == null ? void 0 : I.username) || (k == null ? void 0 : k.username) || "", u.fields.customId = ((L = k == null ? void 0 : k.item) == null ? void 0 : L.custom_id) || (k == null ? void 0 : k.custom_id) || "";
4865
- const v = ((S = k == null ? void 0 : k.item) == null ? void 0 : S.tags) || (k == null ? void 0 : k.tags) || [];
4866
- u.fields.tags = (v == null ? void 0 : v.join(", ")) || "", Object.assign(d, u.fields);
4867
- }, A = $(() => t.consumerId ? dt.Edit : dt.Create), U = (k) => {
4868
- var I, L, S, F, _, K;
4869
- let v = `${(I = t.config) == null ? void 0 : I.apiBaseUrl}${$e.form[(L = t.config) == null ? void 0 : L.app][k]}`;
4870
- return ((S = t.config) == null ? void 0 : S.app) === "konnect" ? v = v.replace(/{controlPlaneId}/gi, ((F = t.config) == null ? void 0 : F.controlPlaneId) || "") : ((_ = t.config) == null ? void 0 : _.app) === "kongManager" && (v = v.replace(/\/{workspace}/gi, (K = t.config) != null && K.workspace ? `/${t.config.workspace}` : "")), v = v.replace(/{id}/gi, t.consumerId), v;
4871
- }, B = $(() => !!u.fields.username || !!u.fields.customId), Z = $(() => JSON.stringify(u.fields) !== JSON.stringify(d)), y = $(() => {
4872
- var k, v;
4870
+ u.fields.username = ((I = C == null ? void 0 : C.item) == null ? void 0 : I.username) || (C == null ? void 0 : C.username) || "", u.fields.customId = ((L = C == null ? void 0 : C.item) == null ? void 0 : L.custom_id) || (C == null ? void 0 : C.custom_id) || "";
4871
+ const b = ((S = C == null ? void 0 : C.item) == null ? void 0 : S.tags) || (C == null ? void 0 : C.tags) || [];
4872
+ u.fields.tags = (b == null ? void 0 : b.join(", ")) || "", Object.assign(d, u.fields);
4873
+ }, A = $(() => t.consumerId ? dt.Edit : dt.Create), U = (C) => {
4874
+ var I, L, S, F, x, K;
4875
+ let b = `${(I = t.config) == null ? void 0 : I.apiBaseUrl}${$e.form[(L = t.config) == null ? void 0 : L.app][C]}`;
4876
+ return ((S = t.config) == null ? void 0 : S.app) === "konnect" ? b = b.replace(/{controlPlaneId}/gi, ((F = t.config) == null ? void 0 : F.controlPlaneId) || "") : ((x = t.config) == null ? void 0 : x.app) === "kongManager" && (b = b.replace(/\/{workspace}/gi, (K = t.config) != null && K.workspace ? `/${t.config.workspace}` : "")), b = b.replace(/{id}/gi, t.consumerId), b;
4877
+ }, B = $(() => !!u.fields.username || !!u.fields.customId), Z = $(() => JSON.stringify(u.fields) !== JSON.stringify(d)), v = $(() => {
4878
+ var C, b;
4873
4879
  return {
4874
4880
  username: u.fields.username || null,
4875
4881
  custom_id: u.fields.customId || null,
4876
- tags: (v = (k = u.fields.tags.split(",")) == null ? void 0 : k.map((I) => String(I || "").trim())) == null ? void 0 : v.filter((I) => I !== "")
4882
+ tags: (b = (C = u.fields.tags.split(",")) == null ? void 0 : C.map((I) => String(I || "").trim())) == null ? void 0 : b.filter((I) => I !== "")
4877
4883
  };
4878
- }), h = async () => {
4879
- var k;
4884
+ }), y = async () => {
4885
+ var C;
4880
4886
  try {
4881
4887
  u.readonly = !0;
4882
- let v;
4883
- await l.post(U("validate"), y.value), A.value === "create" ? v = await l.post(U("create"), y.value) : A.value === "edit" && (v = ((k = t.config) == null ? void 0 : k.app) === "konnect" ? await l.put(U("edit"), y.value) : await l.patch(U("edit"), y.value)), w(v == null ? void 0 : v.data), r("update", v == null ? void 0 : v.data);
4884
- } catch (v) {
4885
- u.errorMessage = s(v), r("error", v);
4888
+ let b;
4889
+ await l.post(U("validate"), v.value), A.value === "create" ? b = await l.post(U("create"), v.value) : A.value === "edit" && (b = ((C = t.config) == null ? void 0 : C.app) === "konnect" ? await l.put(U("edit"), v.value) : await l.patch(U("edit"), v.value)), w(b == null ? void 0 : b.data), r("update", b == null ? void 0 : b.data);
4890
+ } catch (b) {
4891
+ u.errorMessage = s(b), r("error", b);
4886
4892
  } finally {
4887
4893
  u.readonly = !1;
4888
4894
  }
4889
4895
  };
4890
- return (k, v) => {
4896
+ return (C, b) => {
4891
4897
  const I = P("KInput"), L = P("KCard");
4892
- return m(), O("div", $s, [
4893
- T(f(Ml), {
4898
+ return g(), O("div", $s, [
4899
+ T(m(Ml), {
4894
4900
  "can-submit": B.value && Z.value,
4895
4901
  config: e.config,
4896
4902
  "edit-id": e.consumerId,
4897
4903
  "error-message": u.errorMessage,
4898
4904
  "fetch-url": c.value,
4899
- "form-fields": y.value,
4905
+ "form-fields": v.value,
4900
4906
  "is-readonly": u.readonly,
4901
- onCancel: C,
4902
- "onFetch:error": v[3] || (v[3] = (S) => x(S)),
4907
+ onCancel: h,
4908
+ "onFetch:error": b[3] || (b[3] = (S) => _(S)),
4903
4909
  "onFetch:success": w,
4904
- onLoading: v[4] || (v[4] = (S) => g(S)),
4905
- onSubmit: h
4910
+ onLoading: b[4] || (b[4] = (S) => f(S)),
4911
+ onSubmit: y
4906
4912
  }, {
4907
- default: b(() => [
4913
+ default: k(() => [
4908
4914
  q("div", null, [
4909
- T(f(ps), {
4910
- description: f(o)("consumers.form.info.description"),
4915
+ T(m(ps), {
4916
+ description: m(o)("consumers.form.info.description"),
4911
4917
  "has-divider": "",
4912
- title: f(o)("consumers.form.info.title")
4918
+ title: m(o)("consumers.form.info.title")
4913
4919
  }, {
4914
- default: b(() => [
4920
+ default: k(() => [
4915
4921
  q("div", null, [
4916
- q("h5", js, M(f(o)("consumers.form.consumer_identification.title")) + "* ", 1),
4917
- q("p", Ts, M(f(o)("consumers.form.consumer_identification.description")), 1)
4922
+ q("h5", js, M(m(o)("consumers.form.consumer_identification.title")) + "* ", 1),
4923
+ q("p", Ts, M(m(o)("consumers.form.consumer_identification.description")), 1)
4918
4924
  ]),
4919
4925
  T(L, null, {
4920
- default: b(() => [
4926
+ default: k(() => [
4921
4927
  T(I, {
4922
4928
  modelValue: u.fields.username,
4923
- "onUpdate:modelValue": v[0] || (v[0] = (S) => u.fields.username = S),
4929
+ "onUpdate:modelValue": b[0] || (b[0] = (S) => u.fields.username = S),
4924
4930
  modelModifiers: { trim: !0 },
4925
4931
  autocomplete: "off",
4926
4932
  class: "username-field",
4927
4933
  "data-testid": "consumer-form-username",
4928
- label: f(o)("consumers.fields.username.label"),
4934
+ label: m(o)("consumers.fields.username.label"),
4929
4935
  "label-attributes": {
4930
4936
  tooltipAttributes: { maxWidth: "250" }
4931
4937
  },
4932
- placeholder: f(o)("consumers.fields.username.placeholder"),
4938
+ placeholder: m(o)("consumers.fields.username.placeholder"),
4933
4939
  readonly: u.readonly,
4934
4940
  type: "text"
4935
4941
  }, {
4936
- "label-tooltip": b(() => [
4937
- T(f(a), {
4942
+ "label-tooltip": k(() => [
4943
+ T(m(a), {
4938
4944
  keypath: "consumers.fields.username.tooltip",
4939
4945
  scope: "global"
4940
4946
  }, {
4941
- custom_id: b(() => [
4942
- q("code", null, M(f(o)("consumers.fields.username.custom_id")), 1)
4947
+ custom_id: k(() => [
4948
+ q("code", null, M(m(o)("consumers.fields.username.custom_id")), 1)
4943
4949
  ]),
4944
4950
  _: 1
4945
4951
  })
@@ -4948,25 +4954,25 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
4948
4954
  }, 8, ["modelValue", "label", "placeholder", "readonly"]),
4949
4955
  T(I, {
4950
4956
  modelValue: u.fields.customId,
4951
- "onUpdate:modelValue": v[1] || (v[1] = (S) => u.fields.customId = S),
4957
+ "onUpdate:modelValue": b[1] || (b[1] = (S) => u.fields.customId = S),
4952
4958
  modelModifiers: { trim: !0 },
4953
4959
  autocomplete: "off",
4954
4960
  "data-testid": "consumer-form-custom-id",
4955
- label: f(o)("consumers.fields.custom_id.label"),
4961
+ label: m(o)("consumers.fields.custom_id.label"),
4956
4962
  "label-attributes": {
4957
4963
  tooltipAttributes: { maxWidth: "250" }
4958
4964
  },
4959
- placeholder: f(o)("consumers.fields.custom_id.placeholder"),
4965
+ placeholder: m(o)("consumers.fields.custom_id.placeholder"),
4960
4966
  readonly: u.readonly,
4961
4967
  type: "text"
4962
4968
  }, {
4963
- "label-tooltip": b(() => [
4964
- T(f(a), {
4969
+ "label-tooltip": k(() => [
4970
+ T(m(a), {
4965
4971
  keypath: "consumers.fields.custom_id.tooltip",
4966
4972
  scope: "global"
4967
4973
  }, {
4968
- username: b(() => [
4969
- q("code", null, M(f(o)("consumers.fields.custom_id.username")), 1)
4974
+ username: k(() => [
4975
+ q("code", null, M(m(o)("consumers.fields.custom_id.username")), 1)
4970
4976
  ]),
4971
4977
  _: 1
4972
4978
  })
@@ -4978,17 +4984,17 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
4978
4984
  }),
4979
4985
  T(I, {
4980
4986
  modelValue: u.fields.tags,
4981
- "onUpdate:modelValue": v[2] || (v[2] = (S) => u.fields.tags = S),
4987
+ "onUpdate:modelValue": b[2] || (b[2] = (S) => u.fields.tags = S),
4982
4988
  modelModifiers: { trim: !0 },
4983
4989
  autocomplete: "off",
4984
4990
  "data-testid": "consumer-form-tags",
4985
- help: f(o)("consumers.fields.tags.help"),
4986
- label: f(o)("consumers.fields.tags.label"),
4991
+ help: m(o)("consumers.fields.tags.help"),
4992
+ label: m(o)("consumers.fields.tags.label"),
4987
4993
  "label-attributes": {
4988
- info: f(o)("consumers.fields.tags.tooltip"),
4994
+ info: m(o)("consumers.fields.tags.tooltip"),
4989
4995
  tooltipAttributes: { maxWidth: "250" }
4990
4996
  },
4991
- placeholder: f(o)("consumers.fields.tags.placeholder"),
4997
+ placeholder: m(o)("consumers.fields.tags.placeholder"),
4992
4998
  readonly: u.readonly,
4993
4999
  type: "text"
4994
5000
  }, null, 8, ["modelValue", "help", "label", "label-attributes", "placeholder", "readonly"])
@@ -5054,8 +5060,8 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
5054
5060
  hidden: !0
5055
5061
  }
5056
5062
  });
5057
- return (i, l) => (m(), O("div", Os, [
5058
- T(f($l), {
5063
+ return (i, l) => (g(), O("div", Os, [
5064
+ T(m($l), {
5059
5065
  config: e.config,
5060
5066
  "config-card-doc": e.configCardDoc,
5061
5067
  "config-schema": o.value,
@@ -5065,24 +5071,24 @@ const Hi = { class: "yaml-config" }, lr = /* @__PURE__ */ W({
5065
5071
  "onFetch:success": l[1] || (l[1] = (s) => i.$emit("fetch:success", s)),
5066
5072
  onLoading: l[2] || (l[2] = (s) => i.$emit("loading", s))
5067
5073
  }, {
5068
- "username-label-tooltip": b(() => [
5069
- T(f(r), {
5074
+ "username-label-tooltip": k(() => [
5075
+ T(m(r), {
5070
5076
  keypath: "consumers.fields.username.tooltip",
5071
5077
  scope: "global"
5072
5078
  }, {
5073
- custom_id: b(() => [
5074
- q("code", null, M(f(t)("consumers.fields.username.custom_id")), 1)
5079
+ custom_id: k(() => [
5080
+ q("code", null, M(m(t)("consumers.fields.username.custom_id")), 1)
5075
5081
  ]),
5076
5082
  _: 1
5077
5083
  })
5078
5084
  ]),
5079
- "custom_id-label-tooltip": b(() => [
5080
- T(f(r), {
5085
+ "custom_id-label-tooltip": k(() => [
5086
+ T(m(r), {
5081
5087
  keypath: "consumers.fields.custom_id.tooltip",
5082
5088
  scope: "global"
5083
5089
  }, {
5084
- username: b(() => [
5085
- q("code", null, M(f(t)("consumers.fields.custom_id.username")), 1)
5090
+ username: k(() => [
5091
+ q("code", null, M(m(t)("consumers.fields.custom_id.username")), 1)
5086
5092
  ]),
5087
5093
  _: 1
5088
5094
  })