@kong-ui-public/entities-consumers 2.0.4 → 2.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { defineComponent as ee, ref as N, computed as M, watch as ve, renderSlot as Y, createCommentVNode as G, unref as g, useSlots as Ze, onBeforeMount as Xe, resolveComponent as V, openBlock as m, createBlock as U, createSlots as be, withCtx as y, createElementVNode as K, createTextVNode as W, toDisplayString as $, createVNode as E, createElementBlock as T, renderList as ce, Fragment as pe, normalizeClass as Ae, withModifiers as Ge, withDirectives as Ue, vShow as De, useCssVars as fr, resolveDynamicComponent as Ne, normalizeProps as mr, guardReactiveProps as gr, mergeProps as lt, onMounted as yr, onUnmounted as hr, normalizeStyle as ln, inject as vr, pushScopeId as un, popScopeId as cn, reactive as Ft } from "vue";
1
+ import { defineComponent as te, ref as F, computed as $, watch as ve, renderSlot as Y, createCommentVNode as G, unref as g, useSlots as Ze, onBeforeMount as Qe, resolveComponent as P, openBlock as m, createBlock as D, createSlots as be, withCtx as y, createElementVNode as K, createTextVNode as W, toDisplayString as M, createVNode as O, createElementBlock as T, renderList as de, Fragment as fe, normalizeClass as Ae, withModifiers as Ge, withDirectives as Ue, vShow as De, useCssVars as fr, resolveDynamicComponent as Fe, normalizeProps as mr, guardReactiveProps as gr, mergeProps as lt, onMounted as yr, onUnmounted as hr, normalizeStyle as ln, inject as vr, pushScopeId as un, popScopeId as cn, reactive as Kt } from "vue";
2
2
  import { useRouter as gt } from "vue-router";
3
3
  import { createI18n as yt, i18nTComponent as dn } from "@kong-ui-public/i18n";
4
4
  import br from "axios";
@@ -106,7 +106,7 @@ function _r() {
106
106
  // Translation component <i18n-t>
107
107
  };
108
108
  }
109
- const Qe = {
109
+ const Xe = {
110
110
  useI18n: _r
111
111
  }, Te = "/api/runtime_groups/{controlPlaneId}", $e = "/{workspace}", Se = {
112
112
  list: {
@@ -134,7 +134,7 @@ const Qe = {
134
134
  }
135
135
  }
136
136
  };
137
- 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 || {}), ut = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(ut || {}), _e = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(_e || {}), Q = /* @__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))(Q || {}), ue = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(ue || {});
137
+ 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 || {}), ut = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(ut || {}), _e = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(_e || {}), X = /* @__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))(X || {}), ce = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(ce || {});
138
138
  function ht(e = {}) {
139
139
  return {
140
140
  axiosInstance: br.create({
@@ -211,13 +211,13 @@ const xr = {
211
211
  errors: {
212
212
  edit: "The entity could not be edited at this time."
213
213
  }
214
- }, jr = {
214
+ }, Mr = {
215
215
  emptyState: {
216
216
  noSearchResultsTitle: "No results found",
217
217
  noSearchResultsMessage: "Please adjust the criteria and try again.",
218
218
  noSearchResultsCtaText: "Clear"
219
219
  }
220
- }, Mr = {
220
+ }, jr = {
221
221
  title: "Configuration",
222
222
  actions: {
223
223
  copy: "Copy JSON"
@@ -252,7 +252,7 @@ const xr = {
252
252
  entryTitle: "Entry {index}",
253
253
  structuredFormat: "Structured"
254
254
  }
255
- }, Or = {
255
+ }, Er = {
256
256
  filterButtonText: "Filter",
257
257
  fieldLabel: "Filter by:",
258
258
  inputPlaceholder: "Enter a value",
@@ -260,15 +260,15 @@ const xr = {
260
260
  applyButtonText: "Apply",
261
261
  clearButtonText: "Clear",
262
262
  clearAllButtonText: "Clear all filters"
263
- }, Er = {
263
+ }, Or = {
264
264
  errors: {
265
265
  fetch: "Could not fetch available items",
266
266
  invalid: "Please select a valid value"
267
267
  }
268
- }, Nr = {
268
+ }, Fr = {
269
269
  unexpected: "An unexpected error has occurred",
270
270
  dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.'
271
- }, Fr = {
271
+ }, Kr = {
272
272
  enable: {
273
273
  title: "Enable {entityType}",
274
274
  message: "Are you sure you want to enable the {entityType} {entityName}?",
@@ -279,19 +279,19 @@ const xr = {
279
279
  message: "Are you sure you want to disable the {entityType} {entityName}?",
280
280
  confirmText: "Yes, disable"
281
281
  }
282
- }, Kr = {
282
+ }, Nr = {
283
283
  global: xr,
284
284
  deleteModal: Tr,
285
285
  baseForm: $r,
286
- baseTable: jr,
287
- baseConfigCard: Mr,
288
- filter: Or,
289
- debouncedFilter: Er,
290
- errors: Nr,
291
- toggleModal: Fr
286
+ baseTable: Mr,
287
+ baseConfigCard: jr,
288
+ filter: Er,
289
+ debouncedFilter: Or,
290
+ errors: Fr,
291
+ toggleModal: Kr
292
292
  };
293
293
  function vt() {
294
- const e = yt("en-us", Kr);
294
+ const e = yt("en-us", Nr);
295
295
  return {
296
296
  i18n: e,
297
297
  i18nT: dn(e)
@@ -349,65 +349,65 @@ function Br(e, n, t, r = {
349
349
  t || (t = "100");
350
350
  const { axiosInstance: a } = ht({
351
351
  headers: e.requestHeaders
352
- }), { i18n: { t: o } } = vt(), { debounce: i } = Ir(), s = i(async (S) => {
353
- await k(S);
354
- }, 200), l = N(!1), c = N(""), d = N(""), u = N([]), h = N([]), f = N(void 0), I = g(n);
355
- let b = `${e.apiBaseUrl}${I}`;
356
- e.app === "konnect" ? b = b.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (b = b.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
357
- const { isValidUuid: p } = fn(), A = async () => {
352
+ }), { i18n: { t: o } } = vt(), { debounce: i } = Ir(), s = i(async (v) => {
353
+ await q(v);
354
+ }, 200), l = F(!1), c = F(""), d = F(""), u = F([]), h = F([]), f = F(void 0), A = g(n);
355
+ let C = `${e.apiBaseUrl}${A}`;
356
+ e.app === "konnect" ? C = C.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (C = C.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
357
+ const { isValidUuid: p } = fn(), S = async () => {
358
358
  try {
359
359
  l.value = !0;
360
- const { data: S } = await a.get(`${b}?size=${t}`);
361
- S != null && S.next || (f.value = r.fetchedItemsKey in S ? S[r.fetchedItemsKey] : []), h.value = r.fetchedItemsKey in S ? S[r.fetchedItemsKey] : [], u.value = h.value;
360
+ const { data: v } = await a.get(`${C}?size=${t}`);
361
+ v != null && v.next || (f.value = r.fetchedItemsKey in v ? v[r.fetchedItemsKey] : []), h.value = r.fetchedItemsKey in v ? v[r.fetchedItemsKey] : [], u.value = h.value;
362
362
  } catch {
363
363
  u.value = [], c.value = o("debouncedFilter.errors.fetch");
364
364
  } finally {
365
365
  l.value = !1;
366
366
  }
367
- }, w = N(""), k = async (S) => {
368
- var x, P, R;
369
- if (w.value !== S)
370
- if (w.value = S || "", f.value === void 0)
367
+ }, _ = F(""), q = async (v) => {
368
+ var w, N, R;
369
+ if (_.value !== v)
370
+ if (_.value = v || "", f.value === void 0)
371
371
  try {
372
372
  if (l.value = !0, c.value = "", d.value = "", e.app === "konnect") {
373
- let v = b + "";
374
- S && (v += `/${S}`);
375
- const { data: C } = await a.get(`${v}?size=${t}`);
376
- r.fetchedItemsKey in C ? u.value = C[r.fetchedItemsKey] : C != null && C.id ? u.value = [C] : u.value = [];
377
- } else if (S) {
378
- const v = [];
379
- p(S) && r.searchKeys.includes("id") ? v.push((async () => {
380
- const { data: q } = await a.get(`${b}/${S}`);
381
- return [q[r.fetchedItemsKey] ?? q];
382
- })()) : v.push(
383
- ...r.searchKeys.filter((q) => q !== "id").map(async (q) => {
384
- const { data: _ } = await a.get(`${b}?${q}=${S}`);
385
- return _[r.fetchedItemsKey];
373
+ let b = C + "";
374
+ v && (b += `/${v}`);
375
+ const { data: k } = await a.get(`${b}?size=${t}`);
376
+ r.fetchedItemsKey in k ? u.value = k[r.fetchedItemsKey] : k != null && k.id ? u.value = [k] : u.value = [];
377
+ } else if (v) {
378
+ const b = [];
379
+ p(v) && r.searchKeys.includes("id") ? b.push((async () => {
380
+ const { data: B } = await a.get(`${C}/${v}`);
381
+ return [B[r.fetchedItemsKey] ?? B];
382
+ })()) : b.push(
383
+ ...r.searchKeys.filter((B) => B !== "id").map(async (B) => {
384
+ const { data: I } = await a.get(`${C}?${B}=${v}`);
385
+ return I[r.fetchedItemsKey];
386
386
  })
387
387
  );
388
- const C = await Promise.all(v), B = /* @__PURE__ */ new Set();
389
- u.value = [], (x = C == null ? void 0 : C.forEach) == null || x.call(C, (q) => {
390
- var _;
391
- (_ = q == null ? void 0 : q.forEach) == null || _.call(q, (F) => {
392
- B.has(F.id) || (B.add(F.id), u.value.push(F));
388
+ const k = await Promise.all(b), V = /* @__PURE__ */ new Set();
389
+ u.value = [], (w = k == null ? void 0 : k.forEach) == null || w.call(k, (B) => {
390
+ var I;
391
+ (I = B == null ? void 0 : B.forEach) == null || I.call(B, (E) => {
392
+ V.has(E.id) || (V.add(E.id), u.value.push(E));
393
393
  });
394
394
  });
395
395
  } else
396
396
  u.value = h.value;
397
- } catch (v) {
398
- ((P = v == null ? void 0 : v.response) == null ? void 0 : P.status) === 404 ? d.value = o("debouncedFilter.errors.invalid") : (u.value = [], c.value = o("debouncedFilter.errors.fetch"));
397
+ } catch (b) {
398
+ ((N = b == null ? void 0 : b.response) == null ? void 0 : N.status) === 404 ? d.value = o("debouncedFilter.errors.invalid") : (u.value = [], c.value = o("debouncedFilter.errors.fetch"));
399
399
  } finally {
400
400
  l.value = !1;
401
401
  }
402
402
  else
403
- l.value = !0, d.value = "", S ? (u.value = (R = f.value) == null ? void 0 : R.filter((v) => {
404
- var C;
405
- let B = !1;
406
- for (const q of r.searchKeys) {
407
- const _ = typeof v[q] == "string" ? (C = v[q]) == null ? void 0 : C.toLowerCase() : v[q];
408
- _ != null && _.includes(S.toLowerCase()) && (B = !0);
403
+ l.value = !0, d.value = "", v ? (u.value = (R = f.value) == null ? void 0 : R.filter((b) => {
404
+ var k;
405
+ let V = !1;
406
+ for (const B of r.searchKeys) {
407
+ const I = typeof b[B] == "string" ? (k = b[B]) == null ? void 0 : k.toLowerCase() : b[B];
408
+ I != null && I.includes(v.toLowerCase()) && (V = !0);
409
409
  }
410
- return B;
410
+ return V;
411
411
  }), (!u.value || !u.value.length) && (d.value = o("debouncedFilter.errors.invalid"))) : u.value = f.value, l.value = !1;
412
412
  };
413
413
  return {
@@ -416,12 +416,12 @@ function Br(e, n, t, r = {
416
416
  validationError: d,
417
417
  results: u,
418
418
  allRecords: f,
419
- loadItems: A,
419
+ loadItems: S,
420
420
  debouncedQueryChange: s
421
421
  };
422
422
  }
423
423
  function qr(e, n) {
424
- const t = g(n), r = M(
424
+ const t = g(n), r = $(
425
425
  () => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${t}`) : new URL(t)
426
426
  );
427
427
  return r.value.search = "", (a) => `${r.value.href}/${a}`;
@@ -466,17 +466,17 @@ function Pr(e) {
466
466
  }
467
467
  }
468
468
  function mn(e, n) {
469
- const t = N(g(e)), r = N(g(n)), a = M(
469
+ const t = F(g(e)), r = F(g(n)), a = $(
470
470
  () => !!(t.value.app === "konnect" || t.value.isExactMatch)
471
- ), o = M(
471
+ ), o = $(
472
472
  () => r.value.startsWith("/") ? new URL(`${window.location.origin}${r.value}`) : new URL(r.value)
473
473
  );
474
474
  return (i) => {
475
475
  const { page: s, pageSize: l, offset: c, sortColumnKey: d, sortColumnOrder: u, query: h } = i;
476
476
  try {
477
477
  let f = new URL(o.value.href);
478
- return a.value && h ? (f.search = "", f = new URL(`${f.href}/${h}/`)) : (a.value || new URLSearchParams(h).forEach((I, b) => {
479
- f.searchParams.append(b, I);
478
+ return a.value && h ? (f.search = "", f = new URL(`${f.href}/${h}/`)) : (a.value || new URLSearchParams(h).forEach((A, C) => {
479
+ f.searchParams.append(C, A);
480
480
  }), d && f.searchParams.append("sort_by", d), u === "desc" && f.searchParams.append("sort_desc", "1"), f.searchParams.append("size", String(l))), c && s !== 1 && f.searchParams.append("offset", String(c)), f.href;
481
481
  } catch (f) {
482
482
  return console.error("RouteList(fetcher)", f), r.value;
@@ -486,7 +486,7 @@ function mn(e, n) {
486
486
  function Vr(e, n, t = "data") {
487
487
  const r = g(n), { axiosInstance: a } = ht({
488
488
  headers: e.requestHeaders
489
- }), o = mn(e, r), i = N({
489
+ }), o = mn(e, r), i = F({
490
490
  status: _e.Idle
491
491
  });
492
492
  return { fetcher: async (s) => {
@@ -532,7 +532,7 @@ function Rr() {
532
532
  convertKeyToTitle: e
533
533
  };
534
534
  }
535
- const gn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, Kt = (e) => {
535
+ const gn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, Nt = (e) => {
536
536
  if (typeof e != "string")
537
537
  throw new TypeError("Invalid argument expected string");
538
538
  const n = e.match(gn);
@@ -555,7 +555,7 @@ const gn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
555
555
  }
556
556
  return 0;
557
557
  }, Gr = (e, n) => {
558
- const t = Kt(e), r = Kt(n), a = t.pop(), o = r.pop(), i = Lt(t, r);
558
+ const t = Nt(e), r = Nt(n), a = t.pop(), o = r.pop(), i = Lt(t, r);
559
559
  return i !== 0 ? i : a && o ? Lt(a.split("."), o.split(".")) : a || o ? a ? -1 : 1 : 0;
560
560
  }, Pt = (e, n, t) => {
561
561
  Hr(t);
@@ -588,11 +588,11 @@ function Jr(e) {
588
588
  return !(i && Pt(a, i, "<") || s && Pt(a, s, ">"));
589
589
  }
590
590
  function Yr(e) {
591
- const n = N(0), t = N(0), r = N(!1);
591
+ const n = F(0), t = F(0), r = F(!1);
592
592
  return ve(e, (a) => {
593
593
  a && !r.value && (n.value = a.offsetWidth, t.value = a.scrollWidth, r.value = !0);
594
594
  }), {
595
- isTruncated: M(() => n.value < t.value)
595
+ isTruncated: $(() => n.value < t.value)
596
596
  };
597
597
  }
598
598
  const ae = {
@@ -614,10 +614,10 @@ const ae = {
614
614
  prefix: "Successfully",
615
615
  content: " copied to clipboard"
616
616
  }
617
- }, Zr = "Copy to clipboard", Xr = {
617
+ }, Zr = "Copy to clipboard", Qr = {
618
618
  message: Wr,
619
619
  iconTitle: Zr
620
- }, Qr = "kong-ui-copy-uuid-notify", Rt = "24px", ea = (e, n) => {
620
+ }, Xr = "kong-ui-copy-uuid-notify", Rt = "24px", ea = (e, n) => {
621
621
  const t = e.__vccOpts || e;
622
622
  for (const [r, a] of n)
623
623
  t[r] = a;
@@ -628,7 +628,7 @@ const ae = {
628
628
  }, aa = /* @__PURE__ */ ta(() => /* @__PURE__ */ K("path", {
629
629
  d: "M5 22C4.45 22 3.97917 21.8042 3.5875 21.4125C3.19583 21.0208 3 20.55 3 20V6H5V20H16V22H5ZM9 18C8.45 18 7.97917 17.8042 7.5875 17.4125C7.19583 17.0208 7 16.55 7 16V4C7 3.45 7.19583 2.97917 7.5875 2.5875C7.97917 2.19583 8.45 2 9 2H18C18.55 2 19.0208 2.19583 19.4125 2.5875C19.8042 2.97917 20 3.45 20 4V16C20 16.55 19.8042 17.0208 19.4125 17.4125C19.0208 17.8042 18.55 18 18 18H9ZM9 16H18V4H9V16Z",
630
630
  fill: "currentColor"
631
- }, null, -1)), oa = /* @__PURE__ */ ee({
631
+ }, null, -1)), oa = /* @__PURE__ */ te({
632
632
  __name: "CopyIcon",
633
633
  props: {
634
634
  /** The accessibility text provided to screen readers */
@@ -680,7 +680,7 @@ const ae = {
680
680
  }
681
681
  },
682
682
  setup(e) {
683
- const n = e, t = M(() => {
683
+ const n = e, t = $(() => {
684
684
  if (typeof n.size == "number" && n.size > 0)
685
685
  return `${n.size}px`;
686
686
  if (typeof n.size == "string") {
@@ -689,7 +689,7 @@ const ae = {
689
689
  return `${o}px`;
690
690
  }
691
691
  return Rt;
692
- }), r = M(() => ({
692
+ }), r = $(() => ({
693
693
  boxSizing: "border-box",
694
694
  color: n.color,
695
695
  display: n.display,
@@ -697,7 +697,7 @@ const ae = {
697
697
  lineHeight: "0",
698
698
  width: t.value
699
699
  }));
700
- return (a, o) => (m(), U(Ne(e.as), {
700
+ return (a, o) => (m(), D(Fe(e.as), {
701
701
  "aria-hidden": e.decorative ? "true" : void 0,
702
702
  class: "kui-icon copy-icon",
703
703
  "data-testid": "kui-icon-wrapper-copy-icon",
@@ -714,14 +714,14 @@ const ae = {
714
714
  width: "100%",
715
715
  xmlns: "http://www.w3.org/2000/svg"
716
716
  }, [
717
- e.title ? (m(), T("title", ra, $(e.title), 1)) : G("", !0),
717
+ e.title ? (m(), T("title", ra, M(e.title), 1)) : G("", !0),
718
718
  aa
719
719
  ], 8, na))
720
720
  ]),
721
721
  _: 1
722
722
  }, 8, ["aria-hidden", "style"]));
723
723
  }
724
- }), ia = /* @__PURE__ */ ea(oa, [["__scopeId", "data-v-9971cc79"]]), sa = "16px", la = { class: "kong-ui-copy-uuid" }, ua = ["onClick"], Ut = 15, ca = /* @__PURE__ */ ee({
724
+ }), ia = /* @__PURE__ */ ea(oa, [["__scopeId", "data-v-9971cc79"]]), sa = "16px", la = { class: "kong-ui-copy-uuid" }, ua = ["onClick"], Ut = 15, ca = /* @__PURE__ */ te({
725
725
  __name: "CopyUuid",
726
726
  props: {
727
727
  uuid: {
@@ -765,19 +765,19 @@ const ae = {
765
765
  },
766
766
  emits: ["success", "error"],
767
767
  setup(e, { emit: n }) {
768
- const t = e, { t: r } = yt("en-us", Xr), a = t.notify || vr(Qr, () => {
769
- }), o = M(() => t.idTooltip ? {
768
+ const t = e, { t: r } = yt("en-us", Qr), a = t.notify || vr(Xr, () => {
769
+ }), o = $(() => t.idTooltip ? {
770
770
  label: t.idTooltip,
771
771
  positionFixed: !0,
772
772
  placement: "bottomStart"
773
773
  } : {
774
774
  title: t.uuid
775
- }), i = M(() => !!(t.tooltip && t.successTooltip)), s = N(t.tooltip), l = M(() => t.tooltip ? {
775
+ }), i = $(() => !!(t.tooltip && t.successTooltip)), s = F(t.tooltip), l = $(() => t.tooltip ? {
776
776
  label: s.value,
777
777
  positionFixed: !0,
778
778
  maxWidth: "500px",
779
779
  placement: "bottomStart"
780
- } : {}), c = M(() => {
780
+ } : {}), c = $(() => {
781
781
  var h;
782
782
  return t.format === "redacted" ? "*****" : t.format === "deleted" ? `*${(h = t.uuid) == null ? void 0 : h.substring(0, 5)}` : t.uuid;
783
783
  }), d = (h) => {
@@ -785,7 +785,7 @@ const ae = {
785
785
  s.value = t.tooltip;
786
786
  }, 1800);
787
787
  }, u = (h) => {
788
- var f, I;
788
+ var f, A;
789
789
  if (!h(t.uuid)) {
790
790
  typeof a == "function" && a({
791
791
  type: "error",
@@ -793,16 +793,16 @@ const ae = {
793
793
  }), i.value ? d(r("message.fail")) : n("error", t.uuid);
794
794
  return;
795
795
  }
796
- const b = ((f = t.uuid) == null ? void 0 : f.length) > Ut, p = t.format === "hidden" || t.format === "redacted" ? r("message.success.prefix") : `"${((I = t.uuid) == null ? void 0 : I.substring(0, Ut)) + (b ? "..." : "")}"`;
796
+ const C = ((f = t.uuid) == null ? void 0 : f.length) > Ut, p = t.format === "hidden" || t.format === "redacted" ? r("message.success.prefix") : `"${((A = t.uuid) == null ? void 0 : A.substring(0, Ut)) + (C ? "..." : "")}"`;
797
797
  typeof a == "function" && a({
798
798
  type: "success",
799
799
  message: `${p}${r("message.success.content")}`
800
800
  }), i.value ? d(t.successTooltip) : n("success", t.uuid);
801
801
  };
802
802
  return (h, f) => {
803
- const I = V("KClipboardProvider");
803
+ const A = P("KClipboardProvider");
804
804
  return m(), T("div", la, [
805
- e.format !== "hidden" ? (m(), U(Ne(e.idTooltip ? "KTooltip" : "div"), lt({ key: 0 }, o.value, { "data-testid": "copy-id" }), {
805
+ e.format !== "hidden" ? (m(), D(Fe(e.idTooltip ? "KTooltip" : "div"), lt({ key: 0 }, o.value, { "data-testid": "copy-id" }), {
806
806
  default: y(() => [
807
807
  K("div", {
808
808
  class: Ae([
@@ -810,21 +810,21 @@ const ae = {
810
810
  e.truncated ? "truncated-uuid" : null,
811
811
  e.useMono ? "mono" : null
812
812
  ])
813
- }, $(c.value), 3)
813
+ }, M(c.value), 3)
814
814
  ]),
815
815
  _: 1
816
816
  }, 16)) : G("", !0),
817
- (m(), U(Ne(e.tooltip ? "KTooltip" : "div"), lt(l.value, { class: "uuid-icon-wrapper" }), {
817
+ (m(), D(Fe(e.tooltip ? "KTooltip" : "div"), lt(l.value, { class: "uuid-icon-wrapper" }), {
818
818
  default: y(() => [
819
- E(I, null, {
820
- default: y(({ copyToClipboard: b }) => [
819
+ O(A, null, {
820
+ default: y(({ copyToClipboard: C }) => [
821
821
  K("span", {
822
822
  "data-testid": "copy-to-clipboard",
823
823
  role: "button",
824
824
  tabindex: "0",
825
- onClick: Ge((p) => u(b), ["stop"])
825
+ onClick: Ge((p) => u(C), ["stop"])
826
826
  }, [
827
- E(g(ia), {
827
+ O(g(ia), {
828
828
  class: "uuid-icon",
829
829
  color: e.iconColor,
830
830
  decorative: !!e.tooltip,
@@ -849,7 +849,7 @@ const ae = {
849
849
  }, hn = /* @__PURE__ */ da(ca, [["__scopeId", "data-v-0c07874b"]]), pa = {
850
850
  key: 0,
851
851
  class: "config-card-fieldset-title"
852
- }, fa = /* @__PURE__ */ ee({
852
+ }, fa = /* @__PURE__ */ te({
853
853
  __name: "JsonCardItem",
854
854
  props: {
855
855
  item: {
@@ -866,21 +866,21 @@ const ae = {
866
866
  }
867
867
  },
868
868
  setup(e) {
869
- const n = e, { i18n: { t } } = ae.useI18n(), { convertKeyToTitle: r } = ae.useStringHelpers(), a = M(() => n.item.key ?? "json-array-item"), o = M(() => n.item.value ?? n.item), i = M(() => {
869
+ const n = e, { i18n: { t } } = ae.useI18n(), { convertKeyToTitle: r } = ae.useStringHelpers(), a = $(() => n.item.key ?? "json-array-item"), o = $(() => n.item.value ?? n.item), i = $(() => {
870
870
  const l = JSON.parse(JSON.stringify(o.value));
871
871
  return n.isArrayItem && delete l.name, l;
872
- }), s = M(() => {
872
+ }), s = $(() => {
873
873
  var l;
874
874
  return n.isArrayItem ? (l = o.value) != null && l.name ? r(o.value.name, "_") : t("baseConfigCard.general.entryTitle", { index: n.index }) : "";
875
875
  });
876
- return (l, c) => (m(), U(Ne(e.isArrayItem ? "fieldset" : "div"), {
876
+ return (l, c) => (m(), D(Fe(e.isArrayItem ? "fieldset" : "div"), {
877
877
  class: Ae(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
878
878
  }, {
879
879
  default: y(() => [
880
880
  e.isArrayItem ? (m(), T("legend", pa, [
881
- K("b", null, $(s.value), 1)
881
+ K("b", null, M(s.value), 1)
882
882
  ])) : G("", !0),
883
- (m(!0), T(pe, null, ce(Object.keys(i.value), (d, u) => (m(), U(bt, {
883
+ (m(!0), T(fe, null, de(Object.keys(i.value), (d, u) => (m(), D(bt, {
884
884
  key: `${a.value}-property-${u}`,
885
885
  item: {
886
886
  key: d,
@@ -897,7 +897,7 @@ const ae = {
897
897
  for (const [r, a] of n)
898
898
  t[r] = a;
899
899
  return t;
900
- }, vn = /* @__PURE__ */ me(fa, [["__scopeId", "data-v-68ca83ec"]]), ma = /* @__PURE__ */ ee({
900
+ }, vn = /* @__PURE__ */ me(fa, [["__scopeId", "data-v-68ca83ec"]]), ma = /* @__PURE__ */ te({
901
901
  __name: "InternalLinkItem",
902
902
  props: {
903
903
  item: {
@@ -909,22 +909,22 @@ const ae = {
909
909
  setup(e) {
910
910
  const { i18n: { t: n } } = ae.useI18n();
911
911
  return (t, r) => {
912
- const a = V("KButton");
912
+ const a = P("KButton");
913
913
  return m(), T("div", null, [
914
- E(a, {
914
+ O(a, {
915
915
  appearance: "tertiary",
916
916
  class: "navigation-button",
917
917
  onClick: r[0] || (r[0] = (o) => t.$emit("navigation-click", e.item))
918
918
  }, {
919
919
  default: y(() => [
920
- W($(e.item.value || g(n)("baseConfigCard.commonFields.link")), 1)
920
+ W(M(e.item.value || g(n)("baseConfigCard.commonFields.link")), 1)
921
921
  ]),
922
922
  _: 1
923
923
  })
924
924
  ]);
925
925
  };
926
926
  }
927
- }), ga = /* @__PURE__ */ me(ma, [["__scopeId", "data-v-c96811e5"]]), ya = /* @__PURE__ */ ee({
927
+ }), ga = /* @__PURE__ */ me(ma, [["__scopeId", "data-v-c96811e5"]]), ya = /* @__PURE__ */ te({
928
928
  __name: "StatusBadge",
929
929
  props: {
930
930
  status: {
@@ -935,22 +935,22 @@ const ae = {
935
935
  setup(e) {
936
936
  const { i18n: { t: n } } = ae.useI18n();
937
937
  return (t, r) => {
938
- const a = V("KBadge");
939
- return m(), U(a, {
938
+ const a = P("KBadge");
939
+ return m(), D(a, {
940
940
  appearance: e.status ? "success" : "neutral"
941
941
  }, {
942
942
  default: y(() => [
943
- W($(e.status ? g(n)("baseConfigCard.statusBadge.enabledLabel") : g(n)("baseConfigCard.statusBadge.disabledLabel")), 1)
943
+ W(M(e.status ? g(n)("baseConfigCard.statusBadge.enabledLabel") : g(n)("baseConfigCard.statusBadge.disabledLabel")), 1)
944
944
  ]),
945
945
  _: 1
946
946
  }, 8, ["appearance"]);
947
947
  };
948
948
  }
949
- }), ha = "#0044f4", va = "#e0e4ea", ba = "#3a3f51", Ca = "1px", ka = "20px", wa = { class: "config-card-details-row" }, _a = ["data-testid"], Ia = ["data-testid"], Aa = ["data-testid"], Sa = ["data-testid"], xa = { key: 1 }, Ta = ["data-testid"], $a = ["data-testid"], ja = ["data-testid"], Ma = ["data-testid"], Oa = {
949
+ }), ha = "#0044f4", va = "#e0e4ea", ba = "#3a3f51", Ca = "1px", ka = "20px", wa = { class: "config-card-details-row" }, _a = ["data-testid"], Ia = ["data-testid"], Aa = ["data-testid"], Sa = ["data-testid"], xa = { key: 1 }, Ta = ["data-testid"], $a = ["data-testid"], Ma = ["data-testid"], ja = ["data-testid"], Ea = {
950
950
  name: "ConfigCardItem",
951
951
  components: { CopyUuid: hn, JsonCardItem: vn, StatusBadge: ya, InternalLinkItem: ga }
952
- }, Ea = /* @__PURE__ */ ee({
953
- ...Oa,
952
+ }, Oa = /* @__PURE__ */ te({
953
+ ...Ea,
954
954
  props: {
955
955
  item: {
956
956
  type: Object,
@@ -976,9 +976,9 @@ const ae = {
976
976
  "4d3dc7e7": l.value && i.value ? "100%" : t.slim ? "50%" : "25%",
977
977
  "4d400dc2": l.value && i.value ? "100%" : t.slim ? "50%" : "75%"
978
978
  }));
979
- const r = Ze(), { i18n: { t: a, formatUnixTimeStamp: o } } = ae.useI18n(), i = M(() => t.item.value !== void 0 && t.item.value !== null && t.item.value !== ""), s = M(() => !!(t.item.tooltip || r["label-tooltip"])), l = M(() => t.item.type === Q.Json || t.item.type === Q.JsonArray), c = M(() => t.item.type === Q.JsonArray), d = M(() => {
979
+ const r = Ze(), { i18n: { t: a, formatUnixTimeStamp: o } } = ae.useI18n(), i = $(() => t.item.value !== void 0 && t.item.value !== null && t.item.value !== ""), s = $(() => !!(t.item.tooltip || r["label-tooltip"])), l = $(() => t.item.type === X.Json || t.item.type === X.JsonArray), c = $(() => t.item.type === X.JsonArray), d = $(() => {
980
980
  switch (t.item.type) {
981
- case Q.ID:
981
+ case X.ID:
982
982
  return {
983
983
  tag: "CopyUuid",
984
984
  attrs: {
@@ -991,7 +991,7 @@ const ae = {
991
991
  }
992
992
  }
993
993
  };
994
- case Q.IdArray:
994
+ case X.IdArray:
995
995
  return {
996
996
  tag: "div",
997
997
  additionalComponent: "CopyUuid",
@@ -1003,7 +1003,7 @@ const ae = {
1003
1003
  }
1004
1004
  }
1005
1005
  };
1006
- case Q.Redacted:
1006
+ case X.Redacted:
1007
1007
  return {
1008
1008
  tag: "CopyUuid",
1009
1009
  attrs: {
@@ -1017,7 +1017,7 @@ const ae = {
1017
1017
  }
1018
1018
  }
1019
1019
  };
1020
- case Q.RedactedArray:
1020
+ case X.RedactedArray:
1021
1021
  return {
1022
1022
  tag: "div",
1023
1023
  additionalComponent: "CopyUuid",
@@ -1030,7 +1030,7 @@ const ae = {
1030
1030
  }
1031
1031
  }
1032
1032
  };
1033
- case Q.Date:
1033
+ case X.Date:
1034
1034
  return {
1035
1035
  tag: "div",
1036
1036
  attrs: {
@@ -1038,7 +1038,7 @@ const ae = {
1038
1038
  },
1039
1039
  text: o(t.item.value)
1040
1040
  };
1041
- case Q.BadgeStatus:
1041
+ case X.BadgeStatus:
1042
1042
  return {
1043
1043
  tag: "StatusBadge",
1044
1044
  attrs: {
@@ -1046,17 +1046,17 @@ const ae = {
1046
1046
  status: t.item.value
1047
1047
  }
1048
1048
  };
1049
- case Q.BadgeTag:
1049
+ case X.BadgeTag:
1050
1050
  return {
1051
1051
  tag: "div",
1052
1052
  additionalComponent: "KBadge"
1053
1053
  };
1054
- case Q.BadgeMethod:
1054
+ case X.BadgeMethod:
1055
1055
  return {
1056
1056
  tag: "div",
1057
1057
  additionalComponent: "KMethodBadge"
1058
1058
  };
1059
- case Q.LinkInternal:
1059
+ case X.LinkInternal:
1060
1060
  return {
1061
1061
  tag: "InternalLinkItem",
1062
1062
  attrs: {
@@ -1067,7 +1067,7 @@ const ae = {
1067
1067
  }
1068
1068
  }
1069
1069
  };
1070
- case Q.LinkExternal:
1070
+ case X.LinkExternal:
1071
1071
  return {
1072
1072
  tag: "KExternalLink",
1073
1073
  attrs: {
@@ -1076,7 +1076,7 @@ const ae = {
1076
1076
  },
1077
1077
  text: t.item.value
1078
1078
  };
1079
- case Q.Json:
1079
+ case X.Json:
1080
1080
  return {
1081
1081
  tag: "JsonCardItem",
1082
1082
  attrs: {
@@ -1084,7 +1084,7 @@ const ae = {
1084
1084
  item: t.item
1085
1085
  }
1086
1086
  };
1087
- case Q.JsonArray:
1087
+ case X.JsonArray:
1088
1088
  return {
1089
1089
  tag: "div",
1090
1090
  additionalComponent: "JsonCardItem",
@@ -1102,18 +1102,18 @@ const ae = {
1102
1102
  text: t.item.value
1103
1103
  };
1104
1104
  }
1105
- }), u = N(), { isTruncated: h } = ae.useTruncationDetector(u);
1106
- return (f, I) => {
1107
- const b = V("KLabel"), p = V("KBadge"), A = V("KMethodBadge"), w = V("KTooltip");
1105
+ }), u = F(), { isTruncated: h } = ae.useTruncationDetector(u);
1106
+ return (f, A) => {
1107
+ const C = P("KLabel"), p = P("KBadge"), S = P("KMethodBadge"), _ = P("KTooltip");
1108
1108
  return m(), T("div", wa, [
1109
1109
  K("div", {
1110
1110
  class: "config-card-details-label",
1111
1111
  "data-testid": `${e.item.key}-label`
1112
1112
  }, [
1113
1113
  Y(f.$slots, "label", { item: e.item }, () => [
1114
- E(b, { "tooltip-attributes": { maxWidth: "500px" } }, be({
1114
+ O(C, { "tooltip-attributes": { maxWidth: "500px" } }, be({
1115
1115
  default: y(() => [
1116
- W($(e.item.label) + " ", 1)
1116
+ W(M(e.item.label) + " ", 1)
1117
1117
  ]),
1118
1118
  _: 2
1119
1119
  }, [
@@ -1124,7 +1124,7 @@ const ae = {
1124
1124
  "data-testid": `${e.item.key}-label-tooltip`
1125
1125
  }, [
1126
1126
  Y(f.$slots, "label-tooltip", {}, () => [
1127
- W($(e.item.tooltip), 1)
1127
+ W(M(e.item.tooltip), 1)
1128
1128
  ], !0)
1129
1129
  ], 8, Ia)
1130
1130
  ]),
@@ -1141,20 +1141,20 @@ const ae = {
1141
1141
  rowValue: e.item.value
1142
1142
  }, () => [
1143
1143
  i.value ? (m(), T("div", xa, [
1144
- (m(), U(Ne(d.value.tag), mr(gr(d.value.attrs)), {
1144
+ (m(), D(Fe(d.value.tag), mr(gr(d.value.attrs)), {
1145
1145
  default: y(() => [
1146
1146
  d.value.additionalComponent === "KBadge" ? (m(), T("div", {
1147
1147
  key: 0,
1148
1148
  "data-testid": `${e.item.key}-badge-tags`
1149
1149
  }, [
1150
- (m(!0), T(pe, null, ce(e.item.value, (k, S) => (m(), U(p, {
1151
- key: `${e.item.key}-badge-tag-${S}`,
1150
+ (m(!0), T(fe, null, de(e.item.value, (q, v) => (m(), D(p, {
1151
+ key: `${e.item.key}-badge-tag-${v}`,
1152
1152
  class: "config-badge",
1153
- "data-testid": `${e.item.key}-badge-tag-${S}`,
1154
- "truncation-tooltip": k
1153
+ "data-testid": `${e.item.key}-badge-tag-${v}`,
1154
+ "truncation-tooltip": q
1155
1155
  }, {
1156
1156
  default: y(() => [
1157
- W($(k), 1)
1157
+ W(M(q), 1)
1158
1158
  ]),
1159
1159
  _: 2
1160
1160
  }, 1032, ["data-testid", "truncation-tooltip"]))), 128))
@@ -1164,41 +1164,41 @@ const ae = {
1164
1164
  class: "copy-uuid-array",
1165
1165
  "data-testid": `${e.item.key}-copy-uuid-array`
1166
1166
  }, [
1167
- (m(!0), T(pe, null, ce(e.item.value, (k, S) => (m(), U(g(hn), lt(d.value.childAttrs, {
1168
- key: `${e.item.key}-copy-uuid-${S}`,
1169
- "data-testid": `${e.item.key}-copy-uuid-${S}`,
1170
- uuid: k
1167
+ (m(!0), T(fe, null, de(e.item.value, (q, v) => (m(), D(g(hn), lt(d.value.childAttrs, {
1168
+ key: `${e.item.key}-copy-uuid-${v}`,
1169
+ "data-testid": `${e.item.key}-copy-uuid-${v}`,
1170
+ uuid: q
1171
1171
  }), null, 16, ["data-testid", "uuid"]))), 128))
1172
1172
  ], 8, $a)) : d.value.additionalComponent === "KMethodBadge" ? (m(), T("div", {
1173
1173
  key: 2,
1174
1174
  class: "method-badge-array",
1175
1175
  "data-testid": `${e.item.key}-badge-methods`
1176
1176
  }, [
1177
- (m(!0), T(pe, null, ce(e.item.value, (k, S) => (m(), U(A, {
1178
- key: `${e.item.key}-badge-method-${S}`,
1177
+ (m(!0), T(fe, null, de(e.item.value, (q, v) => (m(), D(S, {
1178
+ key: `${e.item.key}-badge-method-${v}`,
1179
1179
  class: "config-badge",
1180
- "data-testid": `${e.item.key}-badge-method-${S}`,
1180
+ "data-testid": `${e.item.key}-badge-method-${v}`,
1181
1181
  "is-rounded": "",
1182
- label: k,
1183
- method: g(Cr).includes(k.toLowerCase()) ? k.toLowerCase() : "custom"
1182
+ label: q,
1183
+ method: g(Cr).includes(q.toLowerCase()) ? q.toLowerCase() : "custom"
1184
1184
  }, {
1185
1185
  default: y(() => [
1186
- W($(k), 1)
1186
+ W(M(q), 1)
1187
1187
  ]),
1188
1188
  _: 2
1189
1189
  }, 1032, ["data-testid", "label", "method"]))), 128))
1190
- ], 8, ja)) : G("", !0),
1190
+ ], 8, Ma)) : G("", !0),
1191
1191
  d.value.additionalComponent === "JsonCardItem" ? (m(), T("div", {
1192
1192
  key: 3,
1193
1193
  "data-testid": `${t.item.key}-json-array-content`
1194
1194
  }, [
1195
- (m(!0), T(pe, null, ce(e.item.value, (k, S) => (m(), U(vn, {
1196
- key: `json-array-item-${S}`,
1197
- index: S,
1195
+ (m(!0), T(fe, null, de(e.item.value, (q, v) => (m(), D(vn, {
1196
+ key: `json-array-item-${v}`,
1197
+ index: v,
1198
1198
  "is-array-item": "",
1199
- item: k
1199
+ item: q
1200
1200
  }, null, 8, ["index", "item"]))), 128))
1201
- ], 8, Ma)) : (m(), U(w, {
1201
+ ], 8, ja)) : (m(), D(_, {
1202
1202
  key: 4,
1203
1203
  label: g(h) ? e.item.value : ""
1204
1204
  }, {
@@ -1207,7 +1207,7 @@ const ae = {
1207
1207
  ref_key: "textContent",
1208
1208
  ref: u,
1209
1209
  class: Ae(["attrs-data-text", { truncated: e.truncated }])
1210
- }, $(d.value.text), 3)
1210
+ }, M(d.value.text), 3)
1211
1211
  ]),
1212
1212
  _: 1
1213
1213
  }, 8, ["label"]))
@@ -1223,18 +1223,18 @@ const ae = {
1223
1223
  ]);
1224
1224
  };
1225
1225
  }
1226
- }), bt = /* @__PURE__ */ me(Ea, [["__scopeId", "data-v-307ab96d"]]);
1226
+ }), bt = /* @__PURE__ */ me(Oa, [["__scopeId", "data-v-307ab96d"]]);
1227
1227
  /*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
1228
1228
  function bn(e) {
1229
1229
  return typeof e > "u" || e === null;
1230
1230
  }
1231
- function Na(e) {
1231
+ function Fa(e) {
1232
1232
  return typeof e == "object" && e !== null;
1233
1233
  }
1234
- function Fa(e) {
1234
+ function Ka(e) {
1235
1235
  return Array.isArray(e) ? e : bn(e) ? [] : [e];
1236
1236
  }
1237
- function Ka(e, n) {
1237
+ function Na(e, n) {
1238
1238
  var t, r, a, o;
1239
1239
  if (n)
1240
1240
  for (o = Object.keys(n), t = 0, r = o.length; t < r; t += 1)
@@ -1250,7 +1250,7 @@ function Ba(e, n) {
1250
1250
  function qa(e) {
1251
1251
  return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
1252
1252
  }
1253
- var La = bn, Pa = Na, Va = Fa, Ra = Ba, Ua = qa, Da = Ka, ne = {
1253
+ var La = bn, Pa = Fa, Va = Ka, Ra = Ba, Ua = qa, Da = Na, re = {
1254
1254
  isNothing: La,
1255
1255
  isObject: Pa,
1256
1256
  toArray: Va,
@@ -1282,7 +1282,7 @@ function ot(e, n, t, r, a) {
1282
1282
  };
1283
1283
  }
1284
1284
  function it(e, n) {
1285
- return ne.repeat(" ", n - e.length) + e;
1285
+ return re.repeat(" ", n - e.length) + e;
1286
1286
  }
1287
1287
  function Ga(e, n) {
1288
1288
  if (n = Object.create(n || null), !e.buffer)
@@ -1299,10 +1299,10 @@ function Ga(e, n) {
1299
1299
  a[i - l],
1300
1300
  e.position - (r[i] - r[i - l]),
1301
1301
  u
1302
- ), s = ne.repeat(" ", n.indent) + it((e.line - l + 1).toString(), d) + " | " + c.str + `
1302
+ ), s = re.repeat(" ", n.indent) + it((e.line - l + 1).toString(), d) + " | " + c.str + `
1303
1303
  ` + s;
1304
- for (c = ot(e.buffer, r[i], a[i], e.position, u), s += ne.repeat(" ", n.indent) + it((e.line + 1).toString(), d) + " | " + c.str + `
1305
- `, s += ne.repeat("-", n.indent + d + 3 + c.pos) + `^
1304
+ for (c = ot(e.buffer, r[i], a[i], e.position, u), s += re.repeat(" ", n.indent) + it((e.line + 1).toString(), d) + " | " + c.str + `
1305
+ `, s += re.repeat("-", n.indent + d + 3 + c.pos) + `^
1306
1306
  `, l = 1; l <= n.linesAfter && !(i + l >= a.length); l++)
1307
1307
  c = ot(
1308
1308
  e.buffer,
@@ -1310,7 +1310,7 @@ function Ga(e, n) {
1310
1310
  a[i + l],
1311
1311
  e.position - (r[i] - r[i + l]),
1312
1312
  u
1313
- ), s += ne.repeat(" ", n.indent) + it((e.line + l + 1).toString(), d) + " | " + c.str + `
1313
+ ), s += re.repeat(" ", n.indent) + it((e.line + l + 1).toString(), d) + " | " + c.str + `
1314
1314
  `;
1315
1315
  return s.replace(/\n$/, "");
1316
1316
  }
@@ -1428,13 +1428,13 @@ var kn = ct, wn = new oe("tag:yaml.org,2002:str", {
1428
1428
  In
1429
1429
  ]
1430
1430
  });
1431
- function Xa(e) {
1431
+ function Qa(e) {
1432
1432
  if (e === null)
1433
1433
  return !0;
1434
1434
  var n = e.length;
1435
1435
  return n === 1 && e === "~" || n === 4 && (e === "null" || e === "Null" || e === "NULL");
1436
1436
  }
1437
- function Qa() {
1437
+ function Xa() {
1438
1438
  return null;
1439
1439
  }
1440
1440
  function eo(e) {
@@ -1442,8 +1442,8 @@ function eo(e) {
1442
1442
  }
1443
1443
  var Sn = new oe("tag:yaml.org,2002:null", {
1444
1444
  kind: "scalar",
1445
- resolve: Xa,
1446
- construct: Qa,
1445
+ resolve: Qa,
1446
+ construct: Xa,
1447
1447
  predicate: eo,
1448
1448
  represent: {
1449
1449
  canonical: function() {
@@ -1565,7 +1565,7 @@ function lo(e) {
1565
1565
  return t * parseInt(n, 10);
1566
1566
  }
1567
1567
  function uo(e) {
1568
- return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !ne.isNegativeZero(e);
1568
+ return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !re.isNegativeZero(e);
1569
1569
  }
1570
1570
  var Tn = new oe("tag:yaml.org,2002:int", {
1571
1571
  kind: "scalar",
@@ -1637,12 +1637,12 @@ function go(e, n) {
1637
1637
  case "camelcase":
1638
1638
  return "-.Inf";
1639
1639
  }
1640
- else if (ne.isNegativeZero(e))
1640
+ else if (re.isNegativeZero(e))
1641
1641
  return "-0.0";
1642
1642
  return t = e.toString(10), mo.test(t) ? t.replace("e", ".e") : t;
1643
1643
  }
1644
1644
  function yo(e) {
1645
- return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || ne.isNegativeZero(e));
1645
+ return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || re.isNegativeZero(e));
1646
1646
  }
1647
1647
  var $n = new oe("tag:yaml.org,2002:float", {
1648
1648
  kind: "scalar",
@@ -1651,24 +1651,24 @@ var $n = new oe("tag:yaml.org,2002:float", {
1651
1651
  predicate: yo,
1652
1652
  represent: go,
1653
1653
  defaultStyle: "lowercase"
1654
- }), jn = An.extend({
1654
+ }), Mn = An.extend({
1655
1655
  implicit: [
1656
1656
  Sn,
1657
1657
  xn,
1658
1658
  Tn,
1659
1659
  $n
1660
1660
  ]
1661
- }), Mn = jn, On = new RegExp(
1661
+ }), jn = Mn, En = new RegExp(
1662
1662
  "^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
1663
- ), En = new RegExp(
1663
+ ), On = new RegExp(
1664
1664
  "^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"
1665
1665
  );
1666
1666
  function ho(e) {
1667
- return e === null ? !1 : On.exec(e) !== null || En.exec(e) !== null;
1667
+ return e === null ? !1 : En.exec(e) !== null || On.exec(e) !== null;
1668
1668
  }
1669
1669
  function vo(e) {
1670
1670
  var n, t, r, a, o, i, s, l = 0, c = null, d, u, h;
1671
- if (n = On.exec(e), n === null && (n = En.exec(e)), n === null)
1671
+ if (n = En.exec(e), n === null && (n = On.exec(e)), n === null)
1672
1672
  throw new Error("Date resolve error");
1673
1673
  if (t = +n[1], r = +n[2] - 1, a = +n[3], !n[4])
1674
1674
  return new Date(Date.UTC(t, r, a));
@@ -1682,7 +1682,7 @@ function vo(e) {
1682
1682
  function bo(e) {
1683
1683
  return e.toISOString();
1684
1684
  }
1685
- var Nn = new oe("tag:yaml.org,2002:timestamp", {
1685
+ var Fn = new oe("tag:yaml.org,2002:timestamp", {
1686
1686
  kind: "scalar",
1687
1687
  resolve: ho,
1688
1688
  construct: vo,
@@ -1692,7 +1692,7 @@ var Nn = new oe("tag:yaml.org,2002:timestamp", {
1692
1692
  function Co(e) {
1693
1693
  return e === "<<" || e === null;
1694
1694
  }
1695
- var Fn = new oe("tag:yaml.org,2002:merge", {
1695
+ var Kn = new oe("tag:yaml.org,2002:merge", {
1696
1696
  kind: "scalar",
1697
1697
  resolve: Co
1698
1698
  }), Ct = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
@@ -1724,7 +1724,7 @@ function _o(e) {
1724
1724
  function Io(e) {
1725
1725
  return Object.prototype.toString.call(e) === "[object Uint8Array]";
1726
1726
  }
1727
- var Kn = new oe("tag:yaml.org,2002:binary", {
1727
+ var Nn = new oe("tag:yaml.org,2002:binary", {
1728
1728
  kind: "scalar",
1729
1729
  resolve: ko,
1730
1730
  construct: wo,
@@ -1761,7 +1761,7 @@ var Bn = new oe("tag:yaml.org,2002:omap", {
1761
1761
  resolve: xo,
1762
1762
  construct: To
1763
1763
  }), $o = Object.prototype.toString;
1764
- function jo(e) {
1764
+ function Mo(e) {
1765
1765
  if (e === null)
1766
1766
  return !0;
1767
1767
  var n, t, r, a, o, i = e;
@@ -1772,7 +1772,7 @@ function jo(e) {
1772
1772
  }
1773
1773
  return !0;
1774
1774
  }
1775
- function Mo(e) {
1775
+ function jo(e) {
1776
1776
  if (e === null)
1777
1777
  return [];
1778
1778
  var n, t, r, a, o, i = e;
@@ -1782,37 +1782,37 @@ function Mo(e) {
1782
1782
  }
1783
1783
  var qn = new oe("tag:yaml.org,2002:pairs", {
1784
1784
  kind: "sequence",
1785
- resolve: jo,
1786
- construct: Mo
1787
- }), Oo = Object.prototype.hasOwnProperty;
1788
- function Eo(e) {
1785
+ resolve: Mo,
1786
+ construct: jo
1787
+ }), Eo = Object.prototype.hasOwnProperty;
1788
+ function Oo(e) {
1789
1789
  if (e === null)
1790
1790
  return !0;
1791
1791
  var n, t = e;
1792
1792
  for (n in t)
1793
- if (Oo.call(t, n) && t[n] !== null)
1793
+ if (Eo.call(t, n) && t[n] !== null)
1794
1794
  return !1;
1795
1795
  return !0;
1796
1796
  }
1797
- function No(e) {
1797
+ function Fo(e) {
1798
1798
  return e !== null ? e : {};
1799
1799
  }
1800
1800
  var Ln = new oe("tag:yaml.org,2002:set", {
1801
1801
  kind: "mapping",
1802
- resolve: Eo,
1803
- construct: No
1804
- }), kt = Mn.extend({
1802
+ resolve: Oo,
1803
+ construct: Fo
1804
+ }), kt = jn.extend({
1805
1805
  implicit: [
1806
- Nn,
1807
- Fn
1806
+ Fn,
1807
+ Kn
1808
1808
  ],
1809
1809
  explicit: [
1810
- Kn,
1810
+ Nn,
1811
1811
  Bn,
1812
1812
  qn,
1813
1813
  Ln
1814
1814
  ]
1815
- }), ke = Object.prototype.hasOwnProperty, He = 1, Pn = 2, Vn = 3, ze = 4, st = 1, Fo = 2, Gt = 3, Ko = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Bo = /[\x85\u2028\u2029]/, qo = /[,\[\]\{\}]/, Rn = /^(?:!|!!|![a-z\-]+!)$/i, Un = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1815
+ }), ke = Object.prototype.hasOwnProperty, He = 1, Pn = 2, Vn = 3, ze = 4, st = 1, Ko = 2, Gt = 3, No = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Bo = /[\x85\u2028\u2029]/, qo = /[,\[\]\{\}]/, Rn = /^(?:!|!!|![a-z\-]+!)$/i, Un = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1816
1816
  function Ht(e) {
1817
1817
  return Object.prototype.toString.call(e);
1818
1818
  }
@@ -1822,10 +1822,10 @@ function ge(e) {
1822
1822
  function Ie(e) {
1823
1823
  return e === 9 || e === 32;
1824
1824
  }
1825
- function de(e) {
1825
+ function pe(e) {
1826
1826
  return e === 9 || e === 32 || e === 10 || e === 13;
1827
1827
  }
1828
- function Oe(e) {
1828
+ function Ee(e) {
1829
1829
  return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
1830
1830
  }
1831
1831
  function Lo(e) {
@@ -1849,8 +1849,8 @@ function Ro(e) {
1849
1849
  );
1850
1850
  }
1851
1851
  var Dn = new Array(256), Gn = new Array(256);
1852
- for (var je = 0; je < 256; je++)
1853
- Dn[je] = zt(je) ? 1 : 0, Gn[je] = zt(je);
1852
+ for (var Me = 0; Me < 256; Me++)
1853
+ Dn[Me] = zt(Me) ? 1 : 0, Gn[Me] = zt(Me);
1854
1854
  function Uo(e, n) {
1855
1855
  this.input = e, this.filename = n.filename || null, this.schema = n.schema || kt, this.onWarning = n.onWarning || null, this.legacy = n.legacy || !1, this.json = n.json || !1, this.listener = n.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
1856
1856
  }
@@ -1894,16 +1894,16 @@ function Ce(e, n, t, r) {
1894
1894
  for (a = 0, o = s.length; a < o; a += 1)
1895
1895
  i = s.charCodeAt(a), i === 9 || 32 <= i && i <= 1114111 || j(e, "expected valid JSON character");
1896
1896
  else
1897
- Ko.test(s) && j(e, "the stream contains non-printable characters");
1897
+ No.test(s) && j(e, "the stream contains non-printable characters");
1898
1898
  e.result += s;
1899
1899
  }
1900
1900
  }
1901
1901
  function Yt(e, n, t, r) {
1902
1902
  var a, o, i, s;
1903
- for (ne.isObject(t) || j(e, "cannot merge mappings; the provided source object is unacceptable"), a = Object.keys(t), i = 0, s = a.length; i < s; i += 1)
1903
+ for (re.isObject(t) || j(e, "cannot merge mappings; the provided source object is unacceptable"), a = Object.keys(t), i = 0, s = a.length; i < s; i += 1)
1904
1904
  o = a[i], ke.call(n, o) || (n[o] = t[o], r[o] = !0);
1905
1905
  }
1906
- function Ee(e, n, t, r, a, o, i, s, l) {
1906
+ function Oe(e, n, t, r, a, o, i, s, l) {
1907
1907
  var c, d;
1908
1908
  if (Array.isArray(a))
1909
1909
  for (a = Array.prototype.slice.call(a), c = 0, d = a.length; c < d; c += 1)
@@ -1927,7 +1927,7 @@ function wt(e) {
1927
1927
  var n;
1928
1928
  n = e.input.charCodeAt(e.position), n === 10 ? e.position++ : n === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : j(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
1929
1929
  }
1930
- function te(e, n, t) {
1930
+ function ne(e, n, t) {
1931
1931
  for (var r = 0, a = e.input.charCodeAt(e.position); a !== 0; ) {
1932
1932
  for (; Ie(a); )
1933
1933
  a === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), a = e.input.charCodeAt(++e.position);
@@ -1945,28 +1945,28 @@ function te(e, n, t) {
1945
1945
  }
1946
1946
  function et(e) {
1947
1947
  var n = e.position, t;
1948
- 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 || de(t)));
1948
+ 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 || pe(t)));
1949
1949
  }
1950
1950
  function _t(e, n) {
1951
- n === 1 ? e.result += " " : n > 1 && (e.result += ne.repeat(`
1951
+ n === 1 ? e.result += " " : n > 1 && (e.result += re.repeat(`
1952
1952
  `, n - 1));
1953
1953
  }
1954
1954
  function Do(e, n, t) {
1955
1955
  var r, a, o, i, s, l, c, d, u = e.kind, h = e.result, f;
1956
- if (f = e.input.charCodeAt(e.position), de(f) || Oe(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), de(a) || t && Oe(a)))
1956
+ if (f = e.input.charCodeAt(e.position), pe(f) || Ee(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), pe(a) || t && Ee(a)))
1957
1957
  return !1;
1958
1958
  for (e.kind = "scalar", e.result = "", o = i = e.position, s = !1; f !== 0; ) {
1959
1959
  if (f === 58) {
1960
- if (a = e.input.charCodeAt(e.position + 1), de(a) || t && Oe(a))
1960
+ if (a = e.input.charCodeAt(e.position + 1), pe(a) || t && Ee(a))
1961
1961
  break;
1962
1962
  } else if (f === 35) {
1963
- if (r = e.input.charCodeAt(e.position - 1), de(r))
1963
+ if (r = e.input.charCodeAt(e.position - 1), pe(r))
1964
1964
  break;
1965
1965
  } else {
1966
- if (e.position === e.lineStart && et(e) || t && Oe(f))
1966
+ if (e.position === e.lineStart && et(e) || t && Ee(f))
1967
1967
  break;
1968
1968
  if (ge(f))
1969
- if (l = e.line, c = e.lineStart, d = e.lineIndent, te(e, !1, -1), e.lineIndent >= n) {
1969
+ if (l = e.line, c = e.lineStart, d = e.lineIndent, ne(e, !1, -1), e.lineIndent >= n) {
1970
1970
  s = !0, f = e.input.charCodeAt(e.position);
1971
1971
  continue;
1972
1972
  } else {
@@ -1989,7 +1989,7 @@ function Go(e, n) {
1989
1989
  else
1990
1990
  return !0;
1991
1991
  else
1992
- ge(t) ? (Ce(e, r, a, !0), _t(e, te(e, !1, n)), r = a = e.position) : e.position === e.lineStart && et(e) ? j(e, "unexpected end of the document within a single quoted scalar") : (e.position++, a = e.position);
1992
+ ge(t) ? (Ce(e, r, a, !0), _t(e, ne(e, !1, n)), r = a = e.position) : e.position === e.lineStart && et(e) ? j(e, "unexpected end of the document within a single quoted scalar") : (e.position++, a = e.position);
1993
1993
  j(e, "unexpected end of the stream within a single quoted scalar");
1994
1994
  }
1995
1995
  function Ho(e, n) {
@@ -2001,7 +2001,7 @@ function Ho(e, n) {
2001
2001
  return Ce(e, t, e.position, !0), e.position++, !0;
2002
2002
  if (s === 92) {
2003
2003
  if (Ce(e, t, e.position, !0), s = e.input.charCodeAt(++e.position), ge(s))
2004
- te(e, !1, n);
2004
+ ne(e, !1, n);
2005
2005
  else if (s < 256 && Dn[s])
2006
2006
  e.result += Gn[s], e.position++;
2007
2007
  else if ((i = Po(s)) > 0) {
@@ -2012,22 +2012,22 @@ function Ho(e, n) {
2012
2012
  j(e, "unknown escape sequence");
2013
2013
  t = r = e.position;
2014
2014
  } else
2015
- ge(s) ? (Ce(e, t, r, !0), _t(e, te(e, !1, n)), t = r = e.position) : e.position === e.lineStart && et(e) ? j(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
2015
+ ge(s) ? (Ce(e, t, r, !0), _t(e, ne(e, !1, n)), t = r = e.position) : e.position === e.lineStart && et(e) ? j(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
2016
2016
  }
2017
2017
  j(e, "unexpected end of the stream within a double quoted scalar");
2018
2018
  }
2019
2019
  function zo(e, n) {
2020
- var t = !0, r, a, o, i = e.tag, s, l = e.anchor, c, d, u, h, f, I = /* @__PURE__ */ Object.create(null), b, p, A, w;
2021
- if (w = e.input.charCodeAt(e.position), w === 91)
2020
+ var t = !0, r, a, o, i = e.tag, s, l = e.anchor, c, d, u, h, f, A = /* @__PURE__ */ Object.create(null), C, p, S, _;
2021
+ if (_ = e.input.charCodeAt(e.position), _ === 91)
2022
2022
  d = 93, f = !1, s = [];
2023
- else if (w === 123)
2023
+ else if (_ === 123)
2024
2024
  d = 125, f = !0, s = {};
2025
2025
  else
2026
2026
  return !1;
2027
- for (e.anchor !== null && (e.anchorMap[e.anchor] = s), w = e.input.charCodeAt(++e.position); w !== 0; ) {
2028
- if (te(e, !0, n), w = e.input.charCodeAt(e.position), w === d)
2027
+ for (e.anchor !== null && (e.anchorMap[e.anchor] = s), _ = e.input.charCodeAt(++e.position); _ !== 0; ) {
2028
+ if (ne(e, !0, n), _ = e.input.charCodeAt(e.position), _ === d)
2029
2029
  return e.position++, e.tag = i, e.anchor = l, e.kind = f ? "mapping" : "sequence", e.result = s, !0;
2030
- t ? w === 44 && j(e, "expected the node content, but found ','") : j(e, "missed comma between flow collection entries"), p = b = A = null, u = h = !1, w === 63 && (c = e.input.charCodeAt(e.position + 1), de(c) && (u = h = !0, e.position++, te(e, !0, n))), r = e.line, a = e.lineStart, o = e.position, Fe(e, n, He, !1, !0), p = e.tag, b = e.result, te(e, !0, n), w = e.input.charCodeAt(e.position), (h || e.line === r) && w === 58 && (u = !0, w = e.input.charCodeAt(++e.position), te(e, !0, n), Fe(e, n, He, !1, !0), A = e.result), f ? Ee(e, s, I, p, b, A, r, a, o) : u ? s.push(Ee(e, null, I, p, b, A, r, a, o)) : s.push(b), te(e, !0, n), w = e.input.charCodeAt(e.position), w === 44 ? (t = !0, w = e.input.charCodeAt(++e.position)) : t = !1;
2030
+ t ? _ === 44 && j(e, "expected the node content, but found ','") : j(e, "missed comma between flow collection entries"), p = C = S = null, u = h = !1, _ === 63 && (c = e.input.charCodeAt(e.position + 1), pe(c) && (u = h = !0, e.position++, ne(e, !0, n))), r = e.line, a = e.lineStart, o = e.position, Ke(e, n, He, !1, !0), p = e.tag, C = e.result, ne(e, !0, n), _ = e.input.charCodeAt(e.position), (h || e.line === r) && _ === 58 && (u = !0, _ = e.input.charCodeAt(++e.position), ne(e, !0, n), Ke(e, n, He, !1, !0), S = e.result), f ? Oe(e, s, A, p, C, S, r, a, o) : u ? s.push(Oe(e, null, A, p, C, S, r, a, o)) : s.push(C), ne(e, !0, n), _ = e.input.charCodeAt(e.position), _ === 44 ? (t = !0, _ = e.input.charCodeAt(++e.position)) : t = !1;
2031
2031
  }
2032
2032
  j(e, "unexpected end of the stream within a flow collection");
2033
2033
  }
@@ -2041,7 +2041,7 @@ function Jo(e, n) {
2041
2041
  return !1;
2042
2042
  for (e.kind = "scalar", e.result = ""; u !== 0; )
2043
2043
  if (u = e.input.charCodeAt(++e.position), u === 43 || u === 45)
2044
- st === a ? a = u === 43 ? Gt : Fo : j(e, "repeat of a chomping mode identifier");
2044
+ st === a ? a = u === 43 ? Gt : Ko : j(e, "repeat of a chomping mode identifier");
2045
2045
  else if ((d = Vo(u)) >= 0)
2046
2046
  d === 0 ? j(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : i ? j(e, "repeat of an indentation width identifier") : (s = n + d - 1, i = !0);
2047
2047
  else
@@ -2063,15 +2063,15 @@ function Jo(e, n) {
2063
2063
  continue;
2064
2064
  }
2065
2065
  if (e.lineIndent < s) {
2066
- a === Gt ? e.result += ne.repeat(`
2066
+ a === Gt ? e.result += re.repeat(`
2067
2067
  `, o ? 1 + l : l) : a === st && o && (e.result += `
2068
2068
  `);
2069
2069
  break;
2070
2070
  }
2071
- for (r ? Ie(u) ? (c = !0, e.result += ne.repeat(`
2072
- `, o ? 1 + l : l)) : c ? (c = !1, e.result += ne.repeat(`
2073
- `, l + 1)) : l === 0 ? o && (e.result += " ") : e.result += ne.repeat(`
2074
- `, l) : e.result += ne.repeat(`
2071
+ for (r ? Ie(u) ? (c = !0, e.result += re.repeat(`
2072
+ `, o ? 1 + l : l)) : c ? (c = !1, e.result += re.repeat(`
2073
+ `, l + 1)) : l === 0 ? o && (e.result += " ") : e.result += re.repeat(`
2074
+ `, l) : e.result += re.repeat(`
2075
2075
  `, o ? 1 + l : l), o = !0, i = !0, l = 0, t = e.position; !ge(u) && u !== 0; )
2076
2076
  u = e.input.charCodeAt(++e.position);
2077
2077
  Ce(e, t, e.position, !1);
@@ -2082,12 +2082,12 @@ function Wt(e, n) {
2082
2082
  var t, r = e.tag, a = e.anchor, o = [], i, s = !1, l;
2083
2083
  if (e.firstTabInLine !== -1)
2084
2084
  return !1;
2085
- for (e.anchor !== null && (e.anchorMap[e.anchor] = o), l = e.input.charCodeAt(e.position); l !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, j(e, "tab characters must not be used in indentation")), !(l !== 45 || (i = e.input.charCodeAt(e.position + 1), !de(i)))); ) {
2086
- if (s = !0, e.position++, te(e, !0, -1) && e.lineIndent <= n) {
2085
+ for (e.anchor !== null && (e.anchorMap[e.anchor] = o), l = e.input.charCodeAt(e.position); l !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, j(e, "tab characters must not be used in indentation")), !(l !== 45 || (i = e.input.charCodeAt(e.position + 1), !pe(i)))); ) {
2086
+ if (s = !0, e.position++, ne(e, !0, -1) && e.lineIndent <= n) {
2087
2087
  o.push(null), l = e.input.charCodeAt(e.position);
2088
2088
  continue;
2089
2089
  }
2090
- if (t = e.line, Fe(e, n, Vn, !1, !0), o.push(e.result), te(e, !0, -1), l = e.input.charCodeAt(e.position), (e.line === t || e.lineIndent > n) && l !== 0)
2090
+ if (t = e.line, Ke(e, n, Vn, !1, !0), o.push(e.result), ne(e, !0, -1), l = e.input.charCodeAt(e.position), (e.line === t || e.lineIndent > n) && l !== 0)
2091
2091
  j(e, "bad indentation of a sequence entry");
2092
2092
  else if (e.lineIndent < n)
2093
2093
  break;
@@ -2095,35 +2095,35 @@ function Wt(e, n) {
2095
2095
  return s ? (e.tag = r, e.anchor = a, e.kind = "sequence", e.result = o, !0) : !1;
2096
2096
  }
2097
2097
  function Yo(e, n, t) {
2098
- var r, a, o, i, s, l, c = e.tag, d = e.anchor, u = {}, h = /* @__PURE__ */ Object.create(null), f = null, I = null, b = null, p = !1, A = !1, w;
2098
+ var r, a, o, i, s, l, c = e.tag, d = e.anchor, u = {}, h = /* @__PURE__ */ Object.create(null), f = null, A = null, C = null, p = !1, S = !1, _;
2099
2099
  if (e.firstTabInLine !== -1)
2100
2100
  return !1;
2101
- for (e.anchor !== null && (e.anchorMap[e.anchor] = u), w = e.input.charCodeAt(e.position); w !== 0; ) {
2102
- if (!p && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, j(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), o = e.line, (w === 63 || w === 58) && de(r))
2103
- w === 63 ? (p && (Ee(e, u, h, f, I, null, i, s, l), f = I = b = null), A = !0, p = !0, a = !0) : p ? (p = !1, a = !0) : j(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, w = r;
2101
+ for (e.anchor !== null && (e.anchorMap[e.anchor] = u), _ = e.input.charCodeAt(e.position); _ !== 0; ) {
2102
+ if (!p && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, j(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), o = e.line, (_ === 63 || _ === 58) && pe(r))
2103
+ _ === 63 ? (p && (Oe(e, u, h, f, A, null, i, s, l), f = A = C = null), S = !0, p = !0, a = !0) : p ? (p = !1, a = !0) : j(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, _ = r;
2104
2104
  else {
2105
- if (i = e.line, s = e.lineStart, l = e.position, !Fe(e, t, Pn, !1, !0))
2105
+ if (i = e.line, s = e.lineStart, l = e.position, !Ke(e, t, Pn, !1, !0))
2106
2106
  break;
2107
2107
  if (e.line === o) {
2108
- for (w = e.input.charCodeAt(e.position); Ie(w); )
2109
- w = e.input.charCodeAt(++e.position);
2110
- if (w === 58)
2111
- w = e.input.charCodeAt(++e.position), de(w) || j(e, "a whitespace character is expected after the key-value separator within a block mapping"), p && (Ee(e, u, h, f, I, null, i, s, l), f = I = b = null), A = !0, p = !1, a = !1, f = e.tag, I = e.result;
2112
- else if (A)
2108
+ for (_ = e.input.charCodeAt(e.position); Ie(_); )
2109
+ _ = e.input.charCodeAt(++e.position);
2110
+ if (_ === 58)
2111
+ _ = e.input.charCodeAt(++e.position), pe(_) || j(e, "a whitespace character is expected after the key-value separator within a block mapping"), p && (Oe(e, u, h, f, A, null, i, s, l), f = A = C = null), S = !0, p = !1, a = !1, f = e.tag, A = e.result;
2112
+ else if (S)
2113
2113
  j(e, "can not read an implicit mapping pair; a colon is missed");
2114
2114
  else
2115
2115
  return e.tag = c, e.anchor = d, !0;
2116
- } else if (A)
2116
+ } else if (S)
2117
2117
  j(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
2118
2118
  else
2119
2119
  return e.tag = c, e.anchor = d, !0;
2120
2120
  }
2121
- if ((e.line === o || e.lineIndent > n) && (p && (i = e.line, s = e.lineStart, l = e.position), Fe(e, n, ze, !0, a) && (p ? I = e.result : b = e.result), p || (Ee(e, u, h, f, I, b, i, s, l), f = I = b = null), te(e, !0, -1), w = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > n) && w !== 0)
2121
+ if ((e.line === o || e.lineIndent > n) && (p && (i = e.line, s = e.lineStart, l = e.position), Ke(e, n, ze, !0, a) && (p ? A = e.result : C = e.result), p || (Oe(e, u, h, f, A, C, i, s, l), f = A = C = null), ne(e, !0, -1), _ = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > n) && _ !== 0)
2122
2122
  j(e, "bad indentation of a mapping entry");
2123
2123
  else if (e.lineIndent < n)
2124
2124
  break;
2125
2125
  }
2126
- return p && Ee(e, u, h, f, I, null, i, s, l), A && (e.tag = c, e.anchor = d, e.kind = "mapping", e.result = u), A;
2126
+ return p && Oe(e, u, h, f, A, null, i, s, l), S && (e.tag = c, e.anchor = d, e.kind = "mapping", e.result = u), S;
2127
2127
  }
2128
2128
  function Wo(e) {
2129
2129
  var n, t = !1, r = !1, a, o, i;
@@ -2135,7 +2135,7 @@ function Wo(e) {
2135
2135
  while (i !== 0 && i !== 62);
2136
2136
  e.position < e.length ? (o = e.input.slice(n, e.position), i = e.input.charCodeAt(++e.position)) : j(e, "unexpected end of the stream within a verbatim tag");
2137
2137
  } else {
2138
- for (; i !== 0 && !de(i); )
2138
+ for (; i !== 0 && !pe(i); )
2139
2139
  i === 33 && (r ? j(e, "tag suffix cannot contain exclamation marks") : (a = e.input.slice(n - 1, e.position + 1), Rn.test(a) || j(e, "named tag handle cannot contain such characters"), r = !0, n = e.position + 1)), i = e.input.charCodeAt(++e.position);
2140
2140
  o = e.input.slice(n, e.position), qo.test(o) && j(e, "tag suffix cannot contain flow indicator characters");
2141
2141
  }
@@ -2151,48 +2151,48 @@ function Zo(e) {
2151
2151
  var n, t;
2152
2152
  if (t = e.input.charCodeAt(e.position), t !== 38)
2153
2153
  return !1;
2154
- for (e.anchor !== null && j(e, "duplication of an anchor property"), t = e.input.charCodeAt(++e.position), n = e.position; t !== 0 && !de(t) && !Oe(t); )
2154
+ for (e.anchor !== null && j(e, "duplication of an anchor property"), t = e.input.charCodeAt(++e.position), n = e.position; t !== 0 && !pe(t) && !Ee(t); )
2155
2155
  t = e.input.charCodeAt(++e.position);
2156
2156
  return e.position === n && j(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(n, e.position), !0;
2157
2157
  }
2158
- function Xo(e) {
2158
+ function Qo(e) {
2159
2159
  var n, t, r;
2160
2160
  if (r = e.input.charCodeAt(e.position), r !== 42)
2161
2161
  return !1;
2162
- for (r = e.input.charCodeAt(++e.position), n = e.position; r !== 0 && !de(r) && !Oe(r); )
2162
+ for (r = e.input.charCodeAt(++e.position), n = e.position; r !== 0 && !pe(r) && !Ee(r); )
2163
2163
  r = e.input.charCodeAt(++e.position);
2164
- return e.position === n && j(e, "name of an alias node must contain at least one character"), t = e.input.slice(n, e.position), ke.call(e.anchorMap, t) || j(e, 'unidentified alias "' + t + '"'), e.result = e.anchorMap[t], te(e, !0, -1), !0;
2164
+ return e.position === n && j(e, "name of an alias node must contain at least one character"), t = e.input.slice(n, e.position), ke.call(e.anchorMap, t) || j(e, 'unidentified alias "' + t + '"'), e.result = e.anchorMap[t], ne(e, !0, -1), !0;
2165
2165
  }
2166
- function Fe(e, n, t, r, a) {
2167
- var o, i, s, l = 1, c = !1, d = !1, u, h, f, I, b, p;
2168
- if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = i = s = ze === t || Vn === t, r && te(e, !0, -1) && (c = !0, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)), l === 1)
2166
+ function Ke(e, n, t, r, a) {
2167
+ var o, i, s, l = 1, c = !1, d = !1, u, h, f, A, C, p;
2168
+ if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = i = s = ze === t || Vn === t, r && ne(e, !0, -1) && (c = !0, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)), l === 1)
2169
2169
  for (; Wo(e) || Zo(e); )
2170
- te(e, !0, -1) ? (c = !0, s = o, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)) : s = !1;
2171
- if (s && (s = c || a), (l === 1 || ze === t) && (He === t || Pn === t ? b = n : b = n + 1, p = e.position - e.lineStart, l === 1 ? s && (Wt(e, p) || Yo(e, p, b)) || zo(e, b) ? d = !0 : (i && Jo(e, b) || Go(e, b) || Ho(e, b) ? d = !0 : Xo(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && j(e, "alias node should not have any properties")) : Do(e, b, He === t) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : l === 0 && (d = s && Wt(e, p))), e.tag === null)
2170
+ ne(e, !0, -1) ? (c = !0, s = o, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)) : s = !1;
2171
+ if (s && (s = c || a), (l === 1 || ze === t) && (He === t || Pn === t ? C = n : C = n + 1, p = e.position - e.lineStart, l === 1 ? s && (Wt(e, p) || Yo(e, p, C)) || zo(e, C) ? d = !0 : (i && Jo(e, C) || Go(e, C) || Ho(e, C) ? d = !0 : Qo(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && j(e, "alias node should not have any properties")) : Do(e, C, He === t) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : l === 0 && (d = s && Wt(e, p))), e.tag === null)
2172
2172
  e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2173
2173
  else if (e.tag === "?") {
2174
2174
  for (e.result !== null && e.kind !== "scalar" && j(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, h = e.implicitTypes.length; u < h; u += 1)
2175
- if (I = e.implicitTypes[u], I.resolve(e.result)) {
2176
- e.result = I.construct(e.result), e.tag = I.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2175
+ if (A = e.implicitTypes[u], A.resolve(e.result)) {
2176
+ e.result = A.construct(e.result), e.tag = A.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2177
2177
  break;
2178
2178
  }
2179
2179
  } else if (e.tag !== "!") {
2180
2180
  if (ke.call(e.typeMap[e.kind || "fallback"], e.tag))
2181
- I = e.typeMap[e.kind || "fallback"][e.tag];
2181
+ A = e.typeMap[e.kind || "fallback"][e.tag];
2182
2182
  else
2183
- for (I = null, f = e.typeMap.multi[e.kind || "fallback"], u = 0, h = f.length; u < h; u += 1)
2183
+ for (A = null, f = e.typeMap.multi[e.kind || "fallback"], u = 0, h = f.length; u < h; u += 1)
2184
2184
  if (e.tag.slice(0, f[u].tag.length) === f[u].tag) {
2185
- I = f[u];
2185
+ A = f[u];
2186
2186
  break;
2187
2187
  }
2188
- I || j(e, "unknown tag !<" + e.tag + ">"), e.result !== null && I.kind !== e.kind && j(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + I.kind + '", not "' + e.kind + '"'), I.resolve(e.result, e.tag) ? (e.result = I.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : j(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
2188
+ A || j(e, "unknown tag !<" + e.tag + ">"), e.result !== null && A.kind !== e.kind && j(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + A.kind + '", not "' + e.kind + '"'), A.resolve(e.result, e.tag) ? (e.result = A.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : j(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
2189
2189
  }
2190
2190
  return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || d;
2191
2191
  }
2192
- function Qo(e) {
2192
+ function Xo(e) {
2193
2193
  var n = e.position, t, r, a, o = !1, i;
2194
- for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (i = e.input.charCodeAt(e.position)) !== 0 && (te(e, !0, -1), i = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || i !== 37)); ) {
2195
- for (o = !0, i = e.input.charCodeAt(++e.position), t = e.position; i !== 0 && !de(i); )
2194
+ for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (i = e.input.charCodeAt(e.position)) !== 0 && (ne(e, !0, -1), i = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || i !== 37)); ) {
2195
+ for (o = !0, i = e.input.charCodeAt(++e.position), t = e.position; i !== 0 && !pe(i); )
2196
2196
  i = e.input.charCodeAt(++e.position);
2197
2197
  for (r = e.input.slice(t, e.position), a = [], r.length < 1 && j(e, "directive name must not be less than one character in length"); i !== 0; ) {
2198
2198
  for (; Ie(i); )
@@ -2205,14 +2205,14 @@ function Qo(e) {
2205
2205
  }
2206
2206
  if (ge(i))
2207
2207
  break;
2208
- for (t = e.position; i !== 0 && !de(i); )
2208
+ for (t = e.position; i !== 0 && !pe(i); )
2209
2209
  i = e.input.charCodeAt(++e.position);
2210
2210
  a.push(e.input.slice(t, e.position));
2211
2211
  }
2212
2212
  i !== 0 && wt(e), ke.call(Jt, r) ? Jt[r](e, r, a) : Je(e, 'unknown document directive "' + r + '"');
2213
2213
  }
2214
- if (te(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, te(e, !0, -1)) : o && j(e, "directives end mark is expected"), Fe(e, e.lineIndent - 1, ze, !1, !0), te(e, !0, -1), e.checkLineBreaks && Bo.test(e.input.slice(n, e.position)) && Je(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && et(e)) {
2215
- e.input.charCodeAt(e.position) === 46 && (e.position += 3, te(e, !0, -1));
2214
+ if (ne(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, ne(e, !0, -1)) : o && j(e, "directives end mark is expected"), Ke(e, e.lineIndent - 1, ze, !1, !0), ne(e, !0, -1), e.checkLineBreaks && Bo.test(e.input.slice(n, e.position)) && Je(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && et(e)) {
2215
+ e.input.charCodeAt(e.position) === 46 && (e.position += 3, ne(e, !0, -1));
2216
2216
  return;
2217
2217
  }
2218
2218
  if (e.position < e.length - 1)
@@ -2227,7 +2227,7 @@ function zn(e, n) {
2227
2227
  for (r !== -1 && (t.position = r, j(t, "null byte is not allowed in input")), t.input += "\0"; t.input.charCodeAt(t.position) === 32; )
2228
2228
  t.lineIndent += 1, t.position += 1;
2229
2229
  for (; t.position < t.length - 1; )
2230
- Qo(t);
2230
+ Xo(t);
2231
2231
  return t.documents;
2232
2232
  }
2233
2233
  function ei(e, n, t) {
@@ -2249,7 +2249,7 @@ function ti(e, n) {
2249
2249
  var ni = ei, ri = ti, Jn = {
2250
2250
  loadAll: ni,
2251
2251
  load: ri
2252
- }, Yn = Object.prototype.toString, Wn = Object.prototype.hasOwnProperty, It = 65279, ai = 9, Le = 10, oi = 13, ii = 32, si = 33, li = 34, dt = 35, ui = 37, ci = 38, di = 39, pi = 42, Zn = 44, fi = 45, Ye = 58, mi = 61, gi = 62, yi = 63, hi = 64, Xn = 91, Qn = 93, vi = 96, er = 123, bi = 124, tr = 125, ie = {};
2252
+ }, Yn = Object.prototype.toString, Wn = Object.prototype.hasOwnProperty, It = 65279, ai = 9, Le = 10, oi = 13, ii = 32, si = 33, li = 34, dt = 35, ui = 37, ci = 38, di = 39, pi = 42, Zn = 44, fi = 45, Ye = 58, mi = 61, gi = 62, yi = 63, hi = 64, Qn = 91, Xn = 93, vi = 96, er = 123, bi = 124, tr = 125, ie = {};
2253
2253
  ie[0] = "\\0";
2254
2254
  ie[7] = "\\a";
2255
2255
  ie[8] = "\\b";
@@ -2301,14 +2301,14 @@ function _i(e) {
2301
2301
  t = "U", r = 8;
2302
2302
  else
2303
2303
  throw new se("code point within a string may not be greater than 0xFFFFFFFF");
2304
- return "\\" + t + ne.repeat("0", r - n.length) + n;
2304
+ return "\\" + t + re.repeat("0", r - n.length) + n;
2305
2305
  }
2306
2306
  var Ii = 1, Pe = 2;
2307
2307
  function Ai(e) {
2308
- this.schema = e.schema || kt, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = ne.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = wi(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === '"' ? Pe : Ii, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
2308
+ this.schema = e.schema || kt, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = re.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = wi(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === '"' ? Pe : Ii, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
2309
2309
  }
2310
2310
  function Zt(e, n) {
2311
- for (var t = ne.repeat(" ", n), r = 0, a = -1, o = "", i, s = e.length; r < s; )
2311
+ for (var t = re.repeat(" ", n), r = 0, a = -1, o = "", i, s = e.length; r < s; )
2312
2312
  a = e.indexOf(`
2313
2313
  `, r), a === -1 ? (i = e.slice(r), r = s) : (i = e.slice(r, a + 1), r = a + 1), i.length && i !== `
2314
2314
  ` && (o += t), o += i;
@@ -2316,7 +2316,7 @@ function Zt(e, n) {
2316
2316
  }
2317
2317
  function pt(e, n) {
2318
2318
  return `
2319
- ` + ne.repeat(" ", e.indent * n);
2319
+ ` + re.repeat(" ", e.indent * n);
2320
2320
  }
2321
2321
  function Si(e, n) {
2322
2322
  var t, r, a;
@@ -2331,21 +2331,21 @@ function We(e) {
2331
2331
  function Ve(e) {
2332
2332
  return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== It || 65536 <= e && e <= 1114111;
2333
2333
  }
2334
- function Xt(e) {
2334
+ function Qt(e) {
2335
2335
  return Ve(e) && e !== It && e !== oi && e !== Le;
2336
2336
  }
2337
- function Qt(e, n, t) {
2338
- var r = Xt(e), a = r && !We(e);
2337
+ function Xt(e, n, t) {
2338
+ var r = Qt(e), a = r && !We(e);
2339
2339
  return (
2340
2340
  // ns-plain-safe
2341
2341
  (t ? (
2342
2342
  // c = flow-in
2343
2343
  r
2344
- ) : r && e !== Zn && e !== Xn && e !== Qn && e !== er && e !== tr) && e !== dt && !(n === Ye && !a) || Xt(n) && !We(n) && e === dt || n === Ye && a
2344
+ ) : r && e !== Zn && e !== Qn && e !== Xn && e !== er && e !== tr) && e !== dt && !(n === Ye && !a) || Qt(n) && !We(n) && e === dt || n === Ye && a
2345
2345
  );
2346
2346
  }
2347
2347
  function xi(e) {
2348
- return Ve(e) && e !== It && !We(e) && e !== fi && e !== yi && e !== Ye && e !== Zn && e !== Xn && e !== Qn && e !== er && e !== tr && e !== dt && e !== ci && e !== pi && e !== si && e !== bi && e !== mi && e !== gi && e !== di && e !== li && e !== ui && e !== hi && e !== vi;
2348
+ return Ve(e) && e !== It && !We(e) && e !== fi && e !== yi && e !== Ye && e !== Zn && e !== Qn && e !== Xn && e !== er && e !== tr && e !== dt && e !== ci && e !== pi && e !== si && e !== bi && e !== mi && e !== gi && e !== di && e !== li && e !== ui && e !== hi && e !== vi;
2349
2349
  }
2350
2350
  function Ti(e) {
2351
2351
  return !We(e) && e !== Ye;
@@ -2358,29 +2358,29 @@ function nr(e) {
2358
2358
  var n = /^\n* /;
2359
2359
  return n.test(e);
2360
2360
  }
2361
- var rr = 1, ft = 2, ar = 3, or = 4, Me = 5;
2361
+ var rr = 1, ft = 2, ar = 3, or = 4, je = 5;
2362
2362
  function $i(e, n, t, r, a, o, i, s) {
2363
- var l, c = 0, d = null, u = !1, h = !1, f = r !== -1, I = -1, b = xi(Be(e, 0)) && Ti(Be(e, e.length - 1));
2363
+ var l, c = 0, d = null, u = !1, h = !1, f = r !== -1, A = -1, C = xi(Be(e, 0)) && Ti(Be(e, e.length - 1));
2364
2364
  if (n || i)
2365
2365
  for (l = 0; l < e.length; c >= 65536 ? l += 2 : l++) {
2366
2366
  if (c = Be(e, l), !Ve(c))
2367
- return Me;
2368
- b = b && Qt(c, d, s), d = c;
2367
+ return je;
2368
+ C = C && Xt(c, d, s), d = c;
2369
2369
  }
2370
2370
  else {
2371
2371
  for (l = 0; l < e.length; c >= 65536 ? l += 2 : l++) {
2372
2372
  if (c = Be(e, l), c === Le)
2373
2373
  u = !0, f && (h = h || // Foldable line = too long, and not more-indented.
2374
- l - I - 1 > r && e[I + 1] !== " ", I = l);
2374
+ l - A - 1 > r && e[A + 1] !== " ", A = l);
2375
2375
  else if (!Ve(c))
2376
- return Me;
2377
- b = b && Qt(c, d, s), d = c;
2376
+ return je;
2377
+ C = C && Xt(c, d, s), d = c;
2378
2378
  }
2379
- h = h || f && l - I - 1 > r && e[I + 1] !== " ";
2379
+ h = h || f && l - A - 1 > r && e[A + 1] !== " ";
2380
2380
  }
2381
- return !u && !h ? b && !i && !a(e) ? rr : o === Pe ? Me : ft : t > 9 && nr(e) ? Me : i ? o === Pe ? Me : ft : h ? or : ar;
2381
+ return !u && !h ? C && !i && !a(e) ? rr : o === Pe ? je : ft : t > 9 && nr(e) ? je : i ? o === Pe ? je : ft : h ? or : ar;
2382
2382
  }
2383
- function ji(e, n, t, r, a) {
2383
+ function Mi(e, n, t, r, a) {
2384
2384
  e.dump = function() {
2385
2385
  if (n.length === 0)
2386
2386
  return e.quotingType === Pe ? '""' : "''";
@@ -2407,9 +2407,9 @@ function ji(e, n, t, r, a) {
2407
2407
  case ar:
2408
2408
  return "|" + en(n, e.indent) + tn(Zt(n, o));
2409
2409
  case or:
2410
- return ">" + en(n, e.indent) + tn(Zt(Mi(n, i), o));
2411
- case Me:
2412
- return '"' + Oi(n) + '"';
2410
+ return ">" + en(n, e.indent) + tn(Zt(ji(n, i), o));
2411
+ case je:
2412
+ return '"' + Ei(n) + '"';
2413
2413
  default:
2414
2414
  throw new se("impossible error: invalid scalar style");
2415
2415
  }
@@ -2427,7 +2427,7 @@ function tn(e) {
2427
2427
  return e[e.length - 1] === `
2428
2428
  ` ? e.slice(0, -1) : e;
2429
2429
  }
2430
- function Mi(e, n) {
2430
+ function ji(e, n) {
2431
2431
  for (var t = /(\n+)([^\n]*)/g, r = function() {
2432
2432
  var c = e.indexOf(`
2433
2433
  `);
@@ -2450,12 +2450,12 @@ function nn(e, n) {
2450
2450
  `, e.length - a > n && i > a ? l += e.slice(a, i) + `
2451
2451
  ` + e.slice(i + 1) : l += e.slice(a), l.slice(1);
2452
2452
  }
2453
- function Oi(e) {
2453
+ function Ei(e) {
2454
2454
  for (var n = "", t = 0, r, a = 0; a < e.length; t >= 65536 ? a += 2 : a++)
2455
2455
  t = Be(e, a), r = ie[t], !r && Ve(t) ? (n += e[a], t >= 65536 && (n += e[a + 1])) : n += r || _i(t);
2456
2456
  return n;
2457
2457
  }
2458
- function Ei(e, n, t) {
2458
+ function Oi(e, n, t) {
2459
2459
  var r = "", a = e.tag, o, i, s;
2460
2460
  for (o = 0, i = t.length; o < i; o += 1)
2461
2461
  s = t[o], e.replacer && (s = e.replacer.call(t, String(o), s)), (he(e, n, s, !1, !1) || typeof s > "u" && he(e, n, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
@@ -2467,13 +2467,13 @@ function rn(e, n, t, r) {
2467
2467
  l = t[i], e.replacer && (l = e.replacer.call(t, String(i), l)), (he(e, n + 1, l, !0, !0, !1, !0) || typeof l > "u" && he(e, n + 1, null, !0, !0, !1, !0)) && ((!r || a !== "") && (a += pt(e, n)), e.dump && Le === e.dump.charCodeAt(0) ? a += "-" : a += "- ", a += e.dump);
2468
2468
  e.tag = o, e.dump = a || "[]";
2469
2469
  }
2470
- function Ni(e, n, t) {
2470
+ function Fi(e, n, t) {
2471
2471
  var r = "", a = e.tag, o = Object.keys(t), i, s, l, c, d;
2472
2472
  for (i = 0, s = o.length; i < s; i += 1)
2473
2473
  d = "", r !== "" && (d += ", "), e.condenseFlow && (d += '"'), l = o[i], c = t[l], e.replacer && (c = e.replacer.call(t, l, c)), he(e, n, l, !1, !1) && (e.dump.length > 1024 && (d += "? "), d += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), he(e, n, c, !1, !1) && (d += e.dump, r += d));
2474
2474
  e.tag = a, e.dump = "{" + r + "}";
2475
2475
  }
2476
- function Fi(e, n, t, r) {
2476
+ function Ki(e, n, t, r) {
2477
2477
  var a = "", o = e.tag, i = Object.keys(t), s, l, c, d, u, h;
2478
2478
  if (e.sortKeys === !0)
2479
2479
  i.sort();
@@ -2511,11 +2511,11 @@ function he(e, n, t, r, a, o, i) {
2511
2511
  e.dump = "*ref_" + u;
2512
2512
  else {
2513
2513
  if (d && h && !e.usedDuplicates[u] && (e.usedDuplicates[u] = !0), s === "[object Object]")
2514
- r && Object.keys(e.dump).length !== 0 ? (Fi(e, n, e.dump, a), h && (e.dump = "&ref_" + u + e.dump)) : (Ni(e, n, e.dump), h && (e.dump = "&ref_" + u + " " + e.dump));
2514
+ r && Object.keys(e.dump).length !== 0 ? (Ki(e, n, e.dump, a), h && (e.dump = "&ref_" + u + e.dump)) : (Fi(e, n, e.dump), h && (e.dump = "&ref_" + u + " " + e.dump));
2515
2515
  else if (s === "[object Array]")
2516
- r && e.dump.length !== 0 ? (e.noArrayIndent && !i && n > 0 ? rn(e, n - 1, e.dump, a) : rn(e, n, e.dump, a), h && (e.dump = "&ref_" + u + e.dump)) : (Ei(e, n, e.dump), h && (e.dump = "&ref_" + u + " " + e.dump));
2516
+ r && e.dump.length !== 0 ? (e.noArrayIndent && !i && n > 0 ? rn(e, n - 1, e.dump, a) : rn(e, n, e.dump, a), h && (e.dump = "&ref_" + u + e.dump)) : (Oi(e, n, e.dump), h && (e.dump = "&ref_" + u + " " + e.dump));
2517
2517
  else if (s === "[object String]")
2518
- e.tag !== "?" && ji(e, e.dump, n, o, l);
2518
+ e.tag !== "?" && Mi(e, e.dump, n, o, l);
2519
2519
  else {
2520
2520
  if (s === "[object Undefined]" || e.skipInvalid)
2521
2521
  return !1;
@@ -2527,7 +2527,7 @@ function he(e, n, t, r, a, o, i) {
2527
2527
  }
2528
2528
  return !0;
2529
2529
  }
2530
- function Ki(e, n) {
2530
+ function Ni(e, n) {
2531
2531
  var t = [], r = [], a, o;
2532
2532
  for (mt(e, t, r), a = 0, o = r.length; a < o; a += 1)
2533
2533
  n.duplicates.push(t[r[a]]);
@@ -2548,7 +2548,7 @@ function mt(e, n, t) {
2548
2548
  function Bi(e, n) {
2549
2549
  n = n || {};
2550
2550
  var t = new Ai(n);
2551
- t.noRefs || Ki(e, t);
2551
+ t.noRefs || Ni(e, t);
2552
2552
  var r = e;
2553
2553
  return t.replacer && (r = t.replacer.call({ "": r }, "", r)), he(t, 0, r, !0, !0) ? t.dump + `
2554
2554
  ` : "";
@@ -2561,21 +2561,21 @@ function At(e, n) {
2561
2561
  throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + n + " instead, which is now safe by default.");
2562
2562
  };
2563
2563
  }
2564
- var Pi = oe, Vi = kn, Ri = An, Ui = jn, Di = Mn, Gi = kt, Hi = Jn.load, zi = Jn.loadAll, Ji = Li.dump, Yi = se, Wi = {
2565
- binary: Kn,
2564
+ var Pi = oe, Vi = kn, Ri = An, Ui = Mn, Di = jn, Gi = kt, Hi = Jn.load, zi = Jn.loadAll, Ji = Li.dump, Yi = se, Wi = {
2565
+ binary: Nn,
2566
2566
  float: $n,
2567
2567
  map: In,
2568
2568
  null: Sn,
2569
2569
  pairs: qn,
2570
2570
  set: Ln,
2571
- timestamp: Nn,
2571
+ timestamp: Fn,
2572
2572
  bool: xn,
2573
2573
  int: Tn,
2574
- merge: Fn,
2574
+ merge: Kn,
2575
2575
  omap: Bn,
2576
2576
  seq: _n,
2577
2577
  str: wn
2578
- }, Zi = At("safeLoad", "load"), Xi = At("safeLoadAll", "loadAll"), Qi = At("safeDump", "dump"), es = {
2578
+ }, Zi = At("safeLoad", "load"), Qi = At("safeLoadAll", "loadAll"), Xi = At("safeDump", "dump"), es = {
2579
2579
  Type: Pi,
2580
2580
  Schema: Vi,
2581
2581
  FAILSAFE_SCHEMA: Ri,
@@ -2588,8 +2588,8 @@ var Pi = oe, Vi = kn, Ri = An, Ui = jn, Di = Mn, Gi = kt, Hi = Jn.load, zi = Jn.
2588
2588
  YAMLException: Yi,
2589
2589
  types: Wi,
2590
2590
  safeLoad: Zi,
2591
- safeLoadAll: Xi,
2592
- safeDump: Qi
2591
+ safeLoadAll: Qi,
2592
+ safeDump: Xi
2593
2593
  };
2594
2594
  const ts = {
2595
2595
  key: 0,
@@ -2603,7 +2603,7 @@ const ts = {
2603
2603
  }, os = {
2604
2604
  key: 2,
2605
2605
  class: "config-card-display-yaml"
2606
- }, is = /* @__PURE__ */ ee({
2606
+ }, is = /* @__PURE__ */ te({
2607
2607
  __name: "ConfigCardDisplay",
2608
2608
  props: {
2609
2609
  propertyCollections: {
@@ -2629,20 +2629,20 @@ const ts = {
2629
2629
  }
2630
2630
  },
2631
2631
  setup(e) {
2632
- const n = e, t = Ze(), { i18n: { t: r } } = ae.useI18n(), a = (s) => !!(s.tooltip || t[`${s.key}-label-tooltip`]), o = N(""), i = N("");
2632
+ const n = e, t = Ze(), { i18n: { t: r } } = ae.useI18n(), a = (s) => !!(s.tooltip || t[`${s.key}-label-tooltip`]), o = F(""), i = F("");
2633
2633
  return ve(() => n.format, (s) => {
2634
2634
  s === "json" ? o.value = JSON.stringify(n.record, null, 2) : s === "yaml" && (i.value = es.dump(n.record));
2635
2635
  }, { immediate: !0 }), (s, l) => {
2636
- const c = V("KCodeBlock");
2637
- return m(), T(pe, null, [
2636
+ const c = P("KCodeBlock");
2637
+ return m(), T(fe, null, [
2638
2638
  e.format === "structured" ? (m(), T("div", ts, [
2639
- (m(!0), T(pe, null, ce(e.propListTypes, (d) => (m(), T("div", {
2639
+ (m(!0), T(fe, null, de(e.propListTypes, (d) => (m(), T("div", {
2640
2640
  key: `config-card-details-${d}-props`,
2641
2641
  class: Ae(`config-card-details-${d}-props`),
2642
2642
  "data-testid": `config-card-details-${d}-props`
2643
2643
  }, [
2644
- d !== "basic" ? (m(), T("div", rs, $(d === "advanced" ? g(r)("baseConfigCard.sections.advanced") : g(r)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
2645
- (m(!0), T(pe, null, ce(e.propertyCollections[d], (u) => (m(), U(bt, {
2644
+ d !== "basic" ? (m(), T("div", rs, M(d === "advanced" ? g(r)("baseConfigCard.sections.advanced") : g(r)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
2645
+ (m(!0), T(fe, null, de(e.propertyCollections[d], (u) => (m(), D(bt, {
2646
2646
  key: u.key,
2647
2647
  item: u
2648
2648
  }, be({
@@ -2668,7 +2668,7 @@ const ts = {
2668
2668
  ], 10, ns))), 128))
2669
2669
  ])) : G("", !0),
2670
2670
  e.format === "json" ? (m(), T("div", as, [
2671
- E(c, {
2671
+ O(c, {
2672
2672
  id: "config-card-codeblock",
2673
2673
  code: o.value,
2674
2674
  language: "json",
@@ -2676,7 +2676,7 @@ const ts = {
2676
2676
  }, null, 8, ["code"])
2677
2677
  ])) : G("", !0),
2678
2678
  e.format === "yaml" ? (m(), T("div", os, [
2679
- E(c, {
2679
+ O(c, {
2680
2680
  id: "config-card-codeblock",
2681
2681
  code: i.value,
2682
2682
  language: "yaml",
@@ -2697,7 +2697,7 @@ const ts = {
2697
2697
  }, ps = /* @__PURE__ */ us(() => /* @__PURE__ */ K("path", {
2698
2698
  d: "M14 9.9V8.2C14.55 7.96667 15.1125 7.79167 15.6875 7.675C16.2625 7.55833 16.8667 7.5 17.5 7.5C17.9333 7.5 18.3583 7.53333 18.775 7.6C19.1917 7.66667 19.6 7.75 20 7.85V9.45C19.6 9.3 19.1958 9.1875 18.7875 9.1125C18.3792 9.0375 17.95 9 17.5 9C16.8667 9 16.2583 9.07917 15.675 9.2375C15.0917 9.39583 14.5333 9.61667 14 9.9ZM14 15.4V13.7C14.55 13.4667 15.1125 13.2917 15.6875 13.175C16.2625 13.0583 16.8667 13 17.5 13C17.9333 13 18.3583 13.0333 18.775 13.1C19.1917 13.1667 19.6 13.25 20 13.35V14.95C19.6 14.8 19.1958 14.6875 18.7875 14.6125C18.3792 14.5375 17.95 14.5 17.5 14.5C16.8667 14.5 16.2583 14.575 15.675 14.725C15.0917 14.875 14.5333 15.1 14 15.4ZM14 12.65V10.95C14.55 10.7167 15.1125 10.5417 15.6875 10.425C16.2625 10.3083 16.8667 10.25 17.5 10.25C17.9333 10.25 18.3583 10.2833 18.775 10.35C19.1917 10.4167 19.6 10.5 20 10.6V12.2C19.6 12.05 19.1958 11.9375 18.7875 11.8625C18.3792 11.7875 17.95 11.75 17.5 11.75C16.8667 11.75 16.2583 11.8292 15.675 11.9875C15.0917 12.1458 14.5333 12.3667 14 12.65ZM6.5 16C7.28333 16 8.04583 16.0875 8.7875 16.2625C9.52917 16.4375 10.2667 16.7 11 17.05V7.2C10.3167 6.8 9.59167 6.5 8.825 6.3C8.05833 6.1 7.28333 6 6.5 6C5.9 6 5.30417 6.05833 4.7125 6.175C4.12083 6.29167 3.55 6.46667 3 6.7V16.6C3.58333 16.4 4.1625 16.25 4.7375 16.15C5.3125 16.05 5.9 16 6.5 16ZM13 17.05C13.7333 16.7 14.4708 16.4375 15.2125 16.2625C15.9542 16.0875 16.7167 16 17.5 16C18.1 16 18.6875 16.05 19.2625 16.15C19.8375 16.25 20.4167 16.4 21 16.6V6.7C20.45 6.46667 19.8792 6.29167 19.2875 6.175C18.6958 6.05833 18.1 6 17.5 6C16.7167 6 15.9417 6.1 15.175 6.3C14.4083 6.5 13.6833 6.8 13 7.2V17.05ZM12 20C11.2 19.3667 10.3333 18.875 9.4 18.525C8.46667 18.175 7.5 18 6.5 18C5.8 18 5.1125 18.0917 4.4375 18.275C3.7625 18.4583 3.11667 18.7167 2.5 19.05C2.15 19.2333 1.8125 19.225 1.4875 19.025C1.1625 18.825 1 18.5333 1 18.15V6.1C1 5.91667 1.04583 5.74167 1.1375 5.575C1.22917 5.40833 1.36667 5.28333 1.55 5.2C2.31667 4.8 3.11667 4.5 3.95 4.3C4.78333 4.1 5.63333 4 6.5 4C7.46667 4 8.4125 4.125 9.3375 4.375C10.2625 4.625 11.15 5 12 5.5C12.85 5 13.7375 4.625 14.6625 4.375C15.5875 4.125 16.5333 4 17.5 4C18.3667 4 19.2167 4.1 20.05 4.3C20.8833 4.5 21.6833 4.8 22.45 5.2C22.6333 5.28333 22.7708 5.40833 22.8625 5.575C22.9542 5.74167 23 5.91667 23 6.1V18.15C23 18.5333 22.8375 18.825 22.5125 19.025C22.1875 19.225 21.85 19.2333 21.5 19.05C20.8833 18.7167 20.2375 18.4583 19.5625 18.275C18.8875 18.0917 18.2 18 17.5 18C16.5 18 15.5333 18.175 14.6 18.525C13.6667 18.875 12.8 19.3667 12 20Z",
2699
2699
  fill: "currentColor"
2700
- }, null, -1)), fs = /* @__PURE__ */ ee({
2700
+ }, null, -1)), fs = /* @__PURE__ */ te({
2701
2701
  __name: "BookIcon",
2702
2702
  props: {
2703
2703
  /** The accessibility text provided to screen readers */
@@ -2749,7 +2749,7 @@ const ts = {
2749
2749
  }
2750
2750
  },
2751
2751
  setup(e) {
2752
- const n = e, t = M(() => {
2752
+ const n = e, t = $(() => {
2753
2753
  if (typeof n.size == "number" && n.size > 0)
2754
2754
  return `${n.size}px`;
2755
2755
  if (typeof n.size == "string") {
@@ -2758,7 +2758,7 @@ const ts = {
2758
2758
  return `${o}px`;
2759
2759
  }
2760
2760
  return on;
2761
- }), r = M(() => ({
2761
+ }), r = $(() => ({
2762
2762
  boxSizing: "border-box",
2763
2763
  color: n.color,
2764
2764
  display: n.display,
@@ -2766,7 +2766,7 @@ const ts = {
2766
2766
  lineHeight: "0",
2767
2767
  width: t.value
2768
2768
  }));
2769
- return (a, o) => (m(), U(Ne(e.as), {
2769
+ return (a, o) => (m(), D(Fe(e.as), {
2770
2770
  "aria-hidden": e.decorative ? "true" : void 0,
2771
2771
  class: "kui-icon book-icon",
2772
2772
  "data-testid": "kui-icon-wrapper-book-icon",
@@ -2783,7 +2783,7 @@ const ts = {
2783
2783
  width: "100%",
2784
2784
  xmlns: "http://www.w3.org/2000/svg"
2785
2785
  }, [
2786
- e.title ? (m(), T("title", ds, $(e.title), 1)) : G("", !0),
2786
+ e.title ? (m(), T("title", ds, M(e.title), 1)) : G("", !0),
2787
2787
  ps
2788
2788
  ], 8, cs))
2789
2789
  ]),
@@ -2799,7 +2799,7 @@ const ts = {
2799
2799
  }, Cs = ["data-testid"], ks = {
2800
2800
  key: 0,
2801
2801
  class: "config-card-prop-section-title"
2802
- }, ws = /* @__PURE__ */ ee({
2802
+ }, ws = /* @__PURE__ */ te({
2803
2803
  __name: "EntityBaseConfigCard",
2804
2804
  props: {
2805
2805
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -2890,155 +2890,155 @@ const ts = {
2890
2890
  label: "YAML",
2891
2891
  value: "yaml"
2892
2892
  }
2893
- ], d = N("structured"), u = (v) => {
2894
- d.value = v == null ? void 0 : v.value;
2893
+ ], d = F("structured"), u = (b) => {
2894
+ d.value = b == null ? void 0 : b.value;
2895
2895
  }, h = {
2896
2896
  id: {
2897
- type: Q.ID,
2897
+ type: X.ID,
2898
2898
  label: o("baseConfigCard.commonFields.id_label"),
2899
2899
  order: 0,
2900
- section: ue.Basic
2900
+ section: ce.Basic
2901
2901
  },
2902
2902
  name: {
2903
2903
  order: 1,
2904
- section: ue.Basic
2904
+ section: ce.Basic
2905
2905
  },
2906
2906
  enabled: {
2907
- type: Q.BadgeStatus,
2907
+ type: X.BadgeStatus,
2908
2908
  order: 2,
2909
- section: ue.Basic
2909
+ section: ce.Basic
2910
2910
  },
2911
2911
  updated_at: {
2912
- type: Q.Date,
2912
+ type: X.Date,
2913
2913
  label: o("baseConfigCard.commonFields.updated_at_label"),
2914
2914
  order: 3,
2915
- section: ue.Basic
2915
+ section: ce.Basic
2916
2916
  },
2917
2917
  created_at: {
2918
- type: Q.Date,
2918
+ type: X.Date,
2919
2919
  label: o("baseConfigCard.commonFields.created_at_label"),
2920
2920
  order: 4,
2921
- section: ue.Basic
2921
+ section: ce.Basic
2922
2922
  },
2923
2923
  tags: {
2924
- type: Q.BadgeTag,
2924
+ type: X.BadgeTag,
2925
2925
  order: -1,
2926
2926
  // the last property displayed
2927
- section: ue.Basic
2927
+ section: ce.Basic
2928
2928
  }
2929
- }, f = N(!1), I = N(!1), b = N(""), p = N(), A = M(() => {
2930
- var v, C, B;
2929
+ }, f = F(!1), A = F(!1), C = F(""), p = F(), S = $(() => {
2930
+ var b, k, V;
2931
2931
  if (!p.value)
2932
2932
  return [];
2933
- const q = [], _ = Object.keys(p.value).length;
2934
- for (const F in p.value) {
2935
- const L = (C = (v = r.configSchema) == null ? void 0 : v[F]) == null ? void 0 : C.order, D = (B = h[F]) == null ? void 0 : B.order;
2936
- let Z = _;
2937
- (D || D === 0) && (Z = D === -1 ? _ + 1 : D), L && (Z = L === -1 ? _ + 1 : L), q.push([F, Z]);
2933
+ const B = [], I = Object.keys(p.value).length;
2934
+ for (const E in p.value) {
2935
+ const L = (k = (b = r.configSchema) == null ? void 0 : b[E]) == null ? void 0 : k.order, U = (V = h[E]) == null ? void 0 : V.order;
2936
+ let Z = I;
2937
+ (U || U === 0) && (Z = U === -1 ? I + 1 : U), L && (Z = L === -1 ? I + 1 : L), B.push([E, Z]);
2938
2938
  }
2939
- return q.sort(function(F, L) {
2940
- return F[1] - L[1];
2941
- }), q.map((F) => {
2942
- var L, D;
2943
- const Z = F[0], H = (L = p.value) == null ? void 0 : L[Z], X = ((D = r.configSchema) == null ? void 0 : D[Z]) || {}, le = h[Z];
2939
+ return B.sort(function(E, L) {
2940
+ return E[1] - L[1];
2941
+ }), B.map((E) => {
2942
+ var L, U;
2943
+ const Z = E[0], z = (L = p.value) == null ? void 0 : L[Z], Q = ((U = r.configSchema) == null ? void 0 : U[Z]) || {}, le = h[Z];
2944
2944
  return {
2945
2945
  key: Z,
2946
- value: H,
2947
- hidden: X.hidden || !1,
2948
- type: X.type ?? ((le == null ? void 0 : le.type) || Q.Text),
2949
- label: X.label ?? ((le == null ? void 0 : le.label) || s(Z)),
2950
- tooltip: X.tooltip ?? ((le == null ? void 0 : le.tooltip) || void 0),
2951
- section: X.section ?? ((le == null ? void 0 : le.section) || ue.Advanced)
2946
+ value: z,
2947
+ hidden: Q.hidden || !1,
2948
+ type: Q.type ?? ((le == null ? void 0 : le.type) || X.Text),
2949
+ label: Q.label ?? ((le == null ? void 0 : le.label) || s(Z)),
2950
+ tooltip: Q.tooltip ?? ((le == null ? void 0 : le.tooltip) || void 0),
2951
+ section: Q.section ?? ((le == null ? void 0 : le.section) || ce.Advanced)
2952
2952
  };
2953
- }).filter((F) => !F.hidden && F.key !== r.pluginConfigKey);
2954
- }), w = M(() => {
2955
- var v, C;
2953
+ }).filter((E) => !E.hidden && E.key !== r.pluginConfigKey);
2954
+ }), _ = $(() => {
2955
+ var b, k;
2956
2956
  if (!p.value || !r.pluginConfigKey)
2957
2957
  return [];
2958
- const B = p.value[r.pluginConfigKey] || {}, q = Object.keys(B).length, _ = [];
2959
- for (const F in B) {
2960
- const L = (C = (v = r.pluginConfigSchema) == null ? void 0 : v[F]) == null ? void 0 : C.order, D = B[F];
2961
- let Z = D != null && D !== "" ? q - 1 : q;
2962
- L && (Z = L === -1 ? q + 1 : L), _.push([F, Z]);
2958
+ const V = p.value[r.pluginConfigKey] || {}, B = Object.keys(V).length, I = [];
2959
+ for (const E in V) {
2960
+ const L = (k = (b = r.pluginConfigSchema) == null ? void 0 : b[E]) == null ? void 0 : k.order, U = V[E];
2961
+ let Z = U != null && U !== "" ? B - 1 : B;
2962
+ L && (Z = L === -1 ? B + 1 : L), I.push([E, Z]);
2963
2963
  }
2964
- return _.sort(function(F, L) {
2965
- return F[1] - L[1];
2966
- }), _.map((F) => {
2964
+ return I.sort(function(E, L) {
2965
+ return E[1] - L[1];
2966
+ }), I.map((E) => {
2967
2967
  var L;
2968
- const D = F[0], Z = B[D], H = ((L = r.pluginConfigSchema) == null ? void 0 : L[D]) || {};
2968
+ const U = E[0], Z = V[U], z = ((L = r.pluginConfigSchema) == null ? void 0 : L[U]) || {};
2969
2969
  return {
2970
- key: D,
2970
+ key: U,
2971
2971
  value: Z,
2972
- hidden: H.hidden || !1,
2973
- type: H.type ?? Q.Text,
2974
- label: H.label ?? s(D),
2975
- tooltip: H.tooltip ?? void 0,
2976
- section: ue.Plugin
2972
+ hidden: z.hidden || !1,
2973
+ type: z.type ?? X.Text,
2974
+ label: z.label ?? s(U),
2975
+ tooltip: z.tooltip ?? void 0,
2976
+ section: ce.Plugin
2977
2977
  };
2978
- }).filter((F) => !F.hidden);
2979
- }), k = M(() => {
2980
- var v, C, B, q;
2978
+ }).filter((E) => !E.hidden);
2979
+ }), q = $(() => {
2980
+ var b, k, V, B;
2981
2981
  return {
2982
- basic: (v = A.value) == null ? void 0 : v.filter((_) => _.section === ue.Basic),
2983
- advanced: (C = A.value) == null ? void 0 : C.filter((_) => _.section === ue.Advanced),
2984
- plugin: (q = w.value) == null ? void 0 : q.concat((B = A.value) == null ? void 0 : B.filter((_) => _.section === ue.Plugin))
2982
+ basic: (b = S.value) == null ? void 0 : b.filter((I) => I.section === ce.Basic),
2983
+ advanced: (k = S.value) == null ? void 0 : k.filter((I) => I.section === ce.Advanced),
2984
+ plugin: (B = _.value) == null ? void 0 : B.concat((V = S.value) == null ? void 0 : V.filter((I) => I.section === ce.Plugin))
2985
2985
  };
2986
- }), S = M(() => {
2987
- const v = [];
2988
- return k.value.basic.length && v.push("basic"), k.value.advanced.length && v.push("advanced"), k.value.plugin.length && v.push("plugin"), v;
2989
- }), x = (v) => !!(v.tooltip || a[`${v.key}-label-tooltip`]), P = M(() => {
2990
- var v, C;
2991
- let B = `${r.config.apiBaseUrl}${r.fetchUrl}`;
2992
- return r.config.app === "konnect" ? B = B.replace(/{controlPlaneId}/gi, ((v = r.config) == null ? void 0 : v.controlPlaneId) || "") : r.config.app === "kongManager" && (B = B.replace(/\/{workspace}/gi, (C = r.config) != null && C.workspace ? `/${r.config.workspace}` : "")), B = B.replace(/{id}/gi, r.config.entityId), B;
2993
- }), R = (v) => {
2994
- p.value && v(JSON.stringify(p.value)) ? n("copy:success", p.value) : n("copy:error");
2986
+ }), v = $(() => {
2987
+ const b = [];
2988
+ return q.value.basic.length && b.push("basic"), q.value.advanced.length && b.push("advanced"), q.value.plugin.length && b.push("plugin"), b;
2989
+ }), w = (b) => !!(b.tooltip || a[`${b.key}-label-tooltip`]), N = $(() => {
2990
+ var b, k;
2991
+ let V = `${r.config.apiBaseUrl}${r.fetchUrl}`;
2992
+ return r.config.app === "konnect" ? V = V.replace(/{controlPlaneId}/gi, ((b = r.config) == null ? void 0 : b.controlPlaneId) || "") : r.config.app === "kongManager" && (V = V.replace(/\/{workspace}/gi, (k = r.config) != null && k.workspace ? `/${r.config.workspace}` : "")), V = V.replace(/{id}/gi, r.config.entityId), V;
2993
+ }), R = (b) => {
2994
+ p.value && b(JSON.stringify(p.value)) ? n("copy:success", p.value) : n("copy:error");
2995
2995
  };
2996
- return ve(f, (v) => {
2997
- n("loading", v);
2998
- }, { immediate: !0 }), Xe(async () => {
2999
- I.value = !1, f.value = !0;
2996
+ return ve(f, (b) => {
2997
+ n("loading", b);
2998
+ }, { immediate: !0 }), Qe(async () => {
2999
+ A.value = !1, f.value = !0;
3000
3000
  try {
3001
- const { data: v } = await l.get(P.value);
3001
+ const { data: b } = await l.get(N.value);
3002
3002
  if (r.dataKey)
3003
- if (typeof v[r.dataKey] < "u")
3004
- p.value = { ...v[r.dataKey] };
3003
+ if (typeof b[r.dataKey] < "u")
3004
+ p.value = { ...b[r.dataKey] };
3005
3005
  else
3006
3006
  throw new Error(o("errors.dataKeyUndefined", { dataKey: r.dataKey }));
3007
3007
  else
3008
- p.value = { ...v };
3009
- Object.keys(r.configSchema).filter((C) => r.configSchema[C].forceShow).forEach((C) => {
3010
- p.value && typeof p.value[C] > "u" && (p.value[C] = null);
3011
- }), n("fetch:success", v);
3012
- } catch (v) {
3013
- const C = i(v);
3014
- b.value = C.startsWith("code") ? o("baseConfigCard.errors.load") : C, I.value = !0, n("fetch:error", v);
3008
+ p.value = { ...b };
3009
+ Object.keys(r.configSchema).filter((k) => r.configSchema[k].forceShow).forEach((k) => {
3010
+ p.value && typeof p.value[k] > "u" && (p.value[k] = null);
3011
+ }), n("fetch:success", b);
3012
+ } catch (b) {
3013
+ const k = i(b);
3014
+ C.value = k.startsWith("code") ? o("baseConfigCard.errors.load") : k, A.value = !0, n("fetch:error", b);
3015
3015
  } finally {
3016
3016
  f.value = !1;
3017
3017
  }
3018
- }), (v, C) => {
3019
- const B = V("KLabel"), q = V("KSelect"), _ = V("KButton"), F = V("KClipboardProvider"), L = V("KSkeleton"), D = V("KEmptyState"), Z = V("KCard");
3020
- return m(), U(Z, { class: "kong-ui-entity-base-config-card" }, be({
3018
+ }), (b, k) => {
3019
+ const V = P("KLabel"), B = P("KSelect"), I = P("KButton"), E = P("KClipboardProvider"), L = P("KSkeleton"), U = P("KEmptyState"), Z = P("KCard");
3020
+ return m(), D(Z, { class: "kong-ui-entity-base-config-card" }, be({
3021
3021
  actions: y(() => [
3022
3022
  K("div", ys, [
3023
- Y(v.$slots, "actions", {}, void 0, !0),
3024
- e.config.jsonYamlEnabled ? (m(), U(B, {
3023
+ Y(b.$slots, "actions", {}, void 0, !0),
3024
+ e.config.jsonYamlEnabled ? (m(), D(V, {
3025
3025
  key: 0,
3026
3026
  class: "config-format-select-label",
3027
3027
  "data-testid": "config-format-select-label"
3028
3028
  }, {
3029
3029
  default: y(() => [
3030
- W($(e.label), 1)
3030
+ W(M(e.label), 1)
3031
3031
  ]),
3032
3032
  _: 1
3033
3033
  })) : G("", !0),
3034
- e.config.jsonYamlEnabled ? (m(), U(q, {
3034
+ e.config.jsonYamlEnabled ? (m(), D(B, {
3035
3035
  key: 1,
3036
3036
  appearance: "select",
3037
3037
  "data-testid": "select-config-format",
3038
3038
  items: c,
3039
3039
  onChange: u
3040
3040
  })) : G("", !0),
3041
- r.config.jsonYamlEnabled && e.configCardDoc ? (m(), U(_, {
3041
+ r.config.jsonYamlEnabled && e.configCardDoc ? (m(), D(I, {
3042
3042
  key: 2,
3043
3043
  appearance: "tertiary",
3044
3044
  class: "book-icon",
@@ -3050,21 +3050,21 @@ const ts = {
3050
3050
  rel: "noopener",
3051
3051
  target: "_blank"
3052
3052
  }, [
3053
- E(g(ms), { size: g(ka) }, null, 8, ["size"])
3053
+ O(g(ms), { size: g(ka) }, null, 8, ["size"])
3054
3054
  ], 8, hs)
3055
3055
  ]),
3056
3056
  _: 1
3057
3057
  })) : G("", !0),
3058
- e.config.jsonYamlEnabled ? G("", !0) : (m(), U(F, { key: 3 }, {
3059
- default: y(({ copyToClipboard: H }) => [
3060
- !f.value && !I.value ? (m(), U(_, {
3058
+ e.config.jsonYamlEnabled ? G("", !0) : (m(), D(E, { key: 3 }, {
3059
+ default: y(({ copyToClipboard: z }) => [
3060
+ !f.value && !A.value ? (m(), D(I, {
3061
3061
  key: 0,
3062
3062
  appearance: "tertiary",
3063
3063
  "data-testid": "json-copy-button",
3064
- onClick: (X) => R(H)
3064
+ onClick: (Q) => R(z)
3065
3065
  }, {
3066
3066
  default: y(() => [
3067
- W($(g(o)("baseConfigCard.actions.copy")), 1)
3067
+ W(M(g(o)("baseConfigCard.actions.copy")), 1)
3068
3068
  ]),
3069
3069
  _: 2
3070
3070
  }, 1032, ["onClick"])) : G("", !0)
@@ -3074,64 +3074,64 @@ const ts = {
3074
3074
  ])
3075
3075
  ]),
3076
3076
  body: y(() => [
3077
- f.value ? (m(), U(L, {
3077
+ f.value ? (m(), D(L, {
3078
3078
  key: 0,
3079
3079
  "data-testid": "config-card-loader",
3080
3080
  "table-columns": 2,
3081
3081
  type: "table"
3082
- })) : I.value ? (m(), U(D, {
3082
+ })) : A.value ? (m(), D(U, {
3083
3083
  key: 1,
3084
3084
  "data-testid": "config-card-fetch-error",
3085
3085
  "is-error": ""
3086
3086
  }, {
3087
3087
  message: y(() => [
3088
- K("h3", null, $(b.value), 1)
3088
+ K("h3", null, M(C.value), 1)
3089
3089
  ]),
3090
3090
  _: 1
3091
3091
  })) : G("", !0),
3092
3092
  e.config.jsonYamlEnabled ? (m(), T("div", vs, [
3093
- E(ss, {
3093
+ O(ss, {
3094
3094
  format: d.value,
3095
- "prop-list-types": S.value,
3096
- "property-collections": k.value,
3095
+ "prop-list-types": v.value,
3096
+ "property-collections": q.value,
3097
3097
  record: p.value
3098
3098
  }, be({ _: 2 }, [
3099
- ce(Object.keys(v.$slots), (H) => ({
3100
- name: H,
3101
- fn: y(({ row: X, rowValue: le }) => [
3102
- Y(v.$slots, H, {
3103
- row: X,
3099
+ de(Object.keys(b.$slots), (z) => ({
3100
+ name: z,
3101
+ fn: y(({ row: Q, rowValue: le }) => [
3102
+ Y(b.$slots, z, {
3103
+ row: Q,
3104
3104
  rowValue: le
3105
3105
  }, void 0, !0)
3106
3106
  ])
3107
3107
  }))
3108
3108
  ]), 1032, ["format", "prop-list-types", "property-collections", "record"])
3109
3109
  ])) : (m(), T("div", bs, [
3110
- (m(!0), T(pe, null, ce(S.value, (H) => (m(), T("div", {
3111
- key: `config-card-details-${H}-props`,
3112
- class: Ae(`config-card-details-${H}-props`),
3113
- "data-testid": `config-card-details-${H}-props`
3110
+ (m(!0), T(fe, null, de(v.value, (z) => (m(), T("div", {
3111
+ key: `config-card-details-${z}-props`,
3112
+ class: Ae(`config-card-details-${z}-props`),
3113
+ "data-testid": `config-card-details-${z}-props`
3114
3114
  }, [
3115
- H !== "basic" ? (m(), T("div", ks, $(H === "advanced" ? g(o)("baseConfigCard.sections.advanced") : g(o)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
3116
- (m(!0), T(pe, null, ce(k.value[H], (X) => (m(), U(bt, {
3117
- key: X.key,
3118
- item: X
3115
+ z !== "basic" ? (m(), T("div", ks, M(z === "advanced" ? g(o)("baseConfigCard.sections.advanced") : g(o)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
3116
+ (m(!0), T(fe, null, de(q.value[z], (Q) => (m(), D(bt, {
3117
+ key: Q.key,
3118
+ item: Q
3119
3119
  }, be({
3120
3120
  label: y(() => [
3121
- Y(v.$slots, `${X.key}-label`, { row: X }, void 0, !0)
3121
+ Y(b.$slots, `${Q.key}-label`, { row: Q }, void 0, !0)
3122
3122
  ]),
3123
- [X.key]: y(({ rowValue: le }) => [
3124
- Y(v.$slots, X.key, {
3125
- row: X,
3123
+ [Q.key]: y(({ rowValue: le }) => [
3124
+ Y(b.$slots, Q.key, {
3125
+ row: Q,
3126
3126
  rowValue: le
3127
3127
  }, void 0, !0)
3128
3128
  ]),
3129
3129
  _: 2
3130
3130
  }, [
3131
- x(X) ? {
3131
+ w(Q) ? {
3132
3132
  name: "label-tooltip",
3133
3133
  fn: y(() => [
3134
- Y(v.$slots, `${X.key}-label-tooltip`, { row: X }, void 0, !0)
3134
+ Y(b.$slots, `${Q.key}-label-tooltip`, { row: Q }, void 0, !0)
3135
3135
  ]),
3136
3136
  key: "0"
3137
3137
  } : void 0
@@ -3145,8 +3145,8 @@ const ts = {
3145
3145
  name: "title",
3146
3146
  fn: y(() => [
3147
3147
  K("div", gs, [
3148
- Y(v.$slots, "title", {}, () => [
3149
- W($(g(o)("baseConfigCard.title")), 1)
3148
+ Y(b.$slots, "title", {}, () => [
3149
+ W(M(g(o)("baseConfigCard.title")), 1)
3150
3150
  ], !0)
3151
3151
  ])
3152
3152
  ]),
@@ -3158,7 +3158,7 @@ const ts = {
3158
3158
  }), _s = /* @__PURE__ */ me(ws, [["__scopeId", "data-v-24515123"]]), Is = ["onReset", "onSubmit"], As = {
3159
3159
  class: "form-actions",
3160
3160
  "data-testid": "form-actions"
3161
- }, Ss = /* @__PURE__ */ ee({
3161
+ }, Ss = /* @__PURE__ */ te({
3162
3162
  __name: "EntityBaseForm",
3163
3163
  props: {
3164
3164
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -3210,41 +3210,41 @@ const ts = {
3210
3210
  var t;
3211
3211
  const r = e, a = gt(), { i18n: { t: o } } = ae.useI18n(), { getMessageFromError: i } = ae.useErrors(), { axiosInstance: s } = ae.useAxios({
3212
3212
  headers: (t = r.config) == null ? void 0 : t.requestHeaders
3213
- }), l = N(!1), c = N(!1), d = N(""), u = M(() => r.canSubmit === !1 || r.isReadonly), h = M(() => {
3214
- var p, A;
3213
+ }), l = F(!1), c = F(!1), d = F(""), u = $(() => r.canSubmit === !1 || r.isReadonly), h = $(() => {
3214
+ var p, S;
3215
3215
  if (!r.editId)
3216
3216
  return "";
3217
- let w = `${r.config.apiBaseUrl}${r.fetchUrl}`;
3218
- return r.config.app === "konnect" ? w = w.replace(/{controlPlaneId}/gi, ((p = r.config) == null ? void 0 : p.controlPlaneId) || "") : r.config.app === "kongManager" && (w = w.replace(/\/{workspace}/gi, (A = r.config) != null && A.workspace ? `/${r.config.workspace}` : "")), w = w.replace(/{id}/gi, r.editId), w;
3217
+ let _ = `${r.config.apiBaseUrl}${r.fetchUrl}`;
3218
+ return r.config.app === "konnect" ? _ = _.replace(/{controlPlaneId}/gi, ((p = r.config) == null ? void 0 : p.controlPlaneId) || "") : r.config.app === "kongManager" && (_ = _.replace(/\/{workspace}/gi, (S = r.config) != null && S.workspace ? `/${r.config.workspace}` : "")), _ = _.replace(/{id}/gi, r.editId), _;
3219
3219
  }), f = () => {
3220
- r.config.cancelRoute ? a.push(r.config.cancelRoute) : I();
3221
- }, I = () => {
3220
+ r.config.cancelRoute ? a.push(r.config.cancelRoute) : A();
3221
+ }, A = () => {
3222
3222
  n("cancel");
3223
- }, b = () => {
3223
+ }, C = () => {
3224
3224
  u.value || n("submit");
3225
3225
  };
3226
3226
  return ve(() => l.value, (p) => {
3227
3227
  n("loading", p);
3228
- }, { immediate: !0 }), Xe(async () => {
3228
+ }, { immediate: !0 }), Qe(async () => {
3229
3229
  if (r.editId)
3230
3230
  try {
3231
3231
  c.value = !1, l.value = !0;
3232
3232
  const { data: p } = await s.get(h.value);
3233
3233
  n("fetch:success", p);
3234
3234
  } catch (p) {
3235
- const A = i(p);
3236
- d.value = A.startsWith("code") ? o("baseForm.errors.edit") : A, c.value = !0, n("fetch:error", p);
3235
+ const S = i(p);
3236
+ d.value = S.startsWith("code") ? o("baseForm.errors.edit") : S, c.value = !0, n("fetch:error", p);
3237
3237
  } finally {
3238
3238
  l.value = !1;
3239
3239
  }
3240
- }), (p, A) => {
3241
- const w = V("KSkeleton"), k = V("KEmptyState"), S = V("KAlert"), x = V("KButton"), P = V("KCard");
3242
- return m(), U(P, { class: "kong-ui-entity-base-form" }, {
3240
+ }), (p, S) => {
3241
+ const _ = P("KSkeleton"), q = P("KEmptyState"), v = P("KAlert"), w = P("KButton"), N = P("KCard");
3242
+ return m(), D(N, { class: "kong-ui-entity-base-form" }, {
3243
3243
  body: y(() => [
3244
- l.value ? (m(), U(w, {
3244
+ l.value ? (m(), D(_, {
3245
3245
  key: 0,
3246
3246
  type: "form"
3247
- })) : c.value ? (m(), U(k, {
3247
+ })) : c.value ? (m(), D(q, {
3248
3248
  key: 1,
3249
3249
  "cta-text": g(o)("baseForm.actions.back"),
3250
3250
  "data-testid": "form-fetch-error",
@@ -3252,17 +3252,17 @@ const ts = {
3252
3252
  "is-error": !0
3253
3253
  }, {
3254
3254
  message: y(() => [
3255
- K("h3", null, $(d.value), 1)
3255
+ K("h3", null, M(d.value), 1)
3256
3256
  ]),
3257
3257
  _: 1
3258
3258
  }, 8, ["cta-text"])) : (m(), T("form", {
3259
3259
  key: 2,
3260
3260
  "data-testid": "form-content",
3261
- onReset: Ge(I, ["prevent"]),
3262
- onSubmit: Ge(b, ["prevent"])
3261
+ onReset: Ge(A, ["prevent"]),
3262
+ onSubmit: Ge(C, ["prevent"])
3263
3263
  }, [
3264
3264
  Y(p.$slots, "default", {}, void 0, !0),
3265
- e.errorMessage ? (m(), U(S, {
3265
+ e.errorMessage ? (m(), D(v, {
3266
3266
  key: 0,
3267
3267
  "alert-message": e.errorMessage,
3268
3268
  appearance: "danger",
@@ -3270,25 +3270,25 @@ const ts = {
3270
3270
  }, null, 8, ["alert-message"])) : G("", !0),
3271
3271
  K("div", As, [
3272
3272
  Y(p.$slots, "form-actions", {}, () => [
3273
- E(x, {
3273
+ O(w, {
3274
3274
  appearance: "secondary",
3275
3275
  "data-testid": "form-cancel",
3276
3276
  disabled: e.isReadonly,
3277
3277
  type: "reset"
3278
3278
  }, {
3279
3279
  default: y(() => [
3280
- W($(g(o)("baseForm.actions.cancel")), 1)
3280
+ W(M(g(o)("baseForm.actions.cancel")), 1)
3281
3281
  ]),
3282
3282
  _: 1
3283
3283
  }, 8, ["disabled"]),
3284
- E(x, {
3284
+ O(w, {
3285
3285
  appearance: "primary",
3286
3286
  "data-testid": "form-submit",
3287
3287
  disabled: u.value,
3288
3288
  type: "submit"
3289
3289
  }, {
3290
3290
  default: y(() => [
3291
- W($(g(o)("baseForm.actions.save")), 1)
3291
+ W(M(g(o)("baseForm.actions.save")), 1)
3292
3292
  ]),
3293
3293
  _: 1
3294
3294
  }, 8, ["disabled"])
@@ -3303,7 +3303,7 @@ const ts = {
3303
3303
  }), xs = /* @__PURE__ */ me(Ss, [["__scopeId", "data-v-81612aef"]]), Ts = {
3304
3304
  key: 0,
3305
3305
  "data-testid": "first-col"
3306
- }, $s = /* @__PURE__ */ ee({
3306
+ }, $s = /* @__PURE__ */ te({
3307
3307
  __name: "EntityBaseTableCell",
3308
3308
  props: {
3309
3309
  keyName: {
@@ -3316,68 +3316,68 @@ const ts = {
3316
3316
  }
3317
3317
  },
3318
3318
  setup(e) {
3319
- const n = e, t = M(() => {
3320
- var b;
3321
- return ((b = n.rowEl) == null ? void 0 : b.querySelector(`[data-testid="${n.keyName}"]`)) || null;
3322
- }), r = M(() => {
3323
- var b;
3324
- return ((b = t.value) == null ? void 0 : b.querySelector('[data-testid="first-col"]')) || null;
3325
- }), a = M(() => {
3326
- var b, p;
3327
- const A = (b = n.rowEl) == null ? void 0 : b.querySelectorAll("td");
3328
- return A ? ((p = A[0]) == null ? void 0 : p.getAttribute("data-testid")) === n.keyName : !1;
3319
+ const n = e, t = $(() => {
3320
+ var C;
3321
+ return ((C = n.rowEl) == null ? void 0 : C.querySelector(`[data-testid="${n.keyName}"]`)) || null;
3322
+ }), r = $(() => {
3323
+ var C;
3324
+ return ((C = t.value) == null ? void 0 : C.querySelector('[data-testid="first-col"]')) || null;
3325
+ }), a = $(() => {
3326
+ var C, p;
3327
+ const S = (C = n.rowEl) == null ? void 0 : C.querySelectorAll("td");
3328
+ return S ? ((p = S[0]) == null ? void 0 : p.getAttribute("data-testid")) === n.keyName : !1;
3329
3329
  });
3330
3330
  let o;
3331
3331
  const i = () => {
3332
3332
  o && (o.disconnect(), o = void 0);
3333
3333
  }, s = () => {
3334
- var b, p, A;
3335
- c.value = ((b = r.value) == null ? void 0 : b.getBoundingClientRect().width) || 0, d.value = ((p = t.value) == null ? void 0 : p.clientWidth) || 0, u.value = ((A = l.value) == null ? void 0 : A.innerText) || "";
3336
- }, l = N({}), c = N(0), d = N(0), u = N(""), h = M(() => [r.value, t.value]), f = ve(
3334
+ var C, p, S;
3335
+ c.value = ((C = r.value) == null ? void 0 : C.getBoundingClientRect().width) || 0, d.value = ((p = t.value) == null ? void 0 : p.clientWidth) || 0, u.value = ((S = l.value) == null ? void 0 : S.innerText) || "";
3336
+ }, l = F({}), c = F(0), d = F(0), u = F(""), h = $(() => [r.value, t.value]), f = ve(
3337
3337
  h,
3338
- (b) => {
3338
+ (C) => {
3339
3339
  if (a.value && (i(), "ResizeObserver" in window && window)) {
3340
3340
  o = new ResizeObserver((p) => {
3341
3341
  window.requestAnimationFrame(() => {
3342
3342
  !Array.isArray(p) || !p.length || s();
3343
3343
  });
3344
3344
  });
3345
- for (const p of b)
3345
+ for (const p of C)
3346
3346
  p && o.observe(p);
3347
3347
  }
3348
3348
  },
3349
3349
  { immediate: !0, flush: "post", deep: !0 }
3350
- ), I = M(() => a.value ? c.value > d.value : !1);
3350
+ ), A = $(() => a.value ? c.value > d.value : !1);
3351
3351
  return yr(() => {
3352
3352
  s();
3353
3353
  }), hr(() => {
3354
3354
  f();
3355
- }), (b, p) => {
3356
- const A = V("KTooltip");
3355
+ }), (C, p) => {
3356
+ const S = P("KTooltip");
3357
3357
  return m(), T("span", {
3358
3358
  ref_key: "contentRef",
3359
3359
  ref: l,
3360
3360
  class: "content-wrapper"
3361
3361
  }, [
3362
3362
  a.value ? (m(), T("span", Ts, [
3363
- E(A, {
3364
- label: I.value ? u.value : "",
3363
+ O(S, {
3364
+ label: A.value ? u.value : "",
3365
3365
  "max-width": "300",
3366
3366
  placement: "bottomStart"
3367
3367
  }, {
3368
3368
  default: y(() => [
3369
- Y(b.$slots, "default", {}, void 0, !0)
3369
+ Y(C.$slots, "default", {}, void 0, !0)
3370
3370
  ]),
3371
3371
  _: 3
3372
3372
  }, 8, ["label"])
3373
- ])) : Y(b.$slots, "default", { key: 1 }, void 0, !0)
3373
+ ])) : Y(C.$slots, "default", { key: 1 }, void 0, !0)
3374
3374
  ], 512);
3375
3375
  };
3376
3376
  }
3377
- }), js = /* @__PURE__ */ me($s, [["__scopeId", "data-v-e42a20c9"]]), Ms = { class: "toolbar-container" }, Os = {
3377
+ }), Ms = /* @__PURE__ */ me($s, [["__scopeId", "data-v-e42a20c9"]]), js = { class: "toolbar-container" }, Es = {
3378
3378
  key: 0,
3379
3379
  class: "toolbar-button-container"
3380
- }, Es = ["data-testid"], Ns = /* @__PURE__ */ ee({
3380
+ }, Os = ["data-testid"], Fs = /* @__PURE__ */ te({
3381
3381
  __name: "EntityBaseTable",
3382
3382
  props: {
3383
3383
  // table header configuration
@@ -3436,9 +3436,10 @@ const ts = {
3436
3436
  },
3437
3437
  // error message to show in the error state
3438
3438
  // this prop being set (or empty) determines if the KTable is in an error state
3439
+ // please use `TableErrorMessage` since `string` is only for backwards compatibility
3439
3440
  errorMessage: {
3440
- type: String,
3441
- default: ""
3441
+ type: [String, Object],
3442
+ default: null
3442
3443
  },
3443
3444
  disablePaginationPageJump: {
3444
3445
  type: Boolean,
@@ -3486,65 +3487,76 @@ const ts = {
3486
3487
  },
3487
3488
  emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
3488
3489
  setup(e, { emit: n }) {
3489
- const t = e, { i18n: { t: r } } = ae.useI18n(), a = M(() => t.cacheIdentifier || t.preferencesStorageKey), o = (k) => k.hasData || !!t.query, i = M(() => {
3490
- const k = [];
3491
- return Object.keys(t.tableHeaders).forEach((S) => {
3492
- const x = t.tableHeaders[S];
3493
- k.push({
3494
- label: x.label ?? S,
3495
- key: S,
3496
- sortable: x.sortable ?? !1
3490
+ const t = e, { i18n: { t: r } } = ae.useI18n(), a = $(() => {
3491
+ var v, w;
3492
+ return typeof t.errorMessage == "string" ? {
3493
+ hasError: !!t.errorMessage,
3494
+ title: t.errorMessage,
3495
+ message: void 0
3496
+ } : {
3497
+ hasError: !!t.errorMessage,
3498
+ title: (v = t.errorMessage) == null ? void 0 : v.title,
3499
+ message: (w = t.errorMessage) == null ? void 0 : w.message
3500
+ };
3501
+ }), o = $(() => t.cacheIdentifier || t.preferencesStorageKey), i = (v) => v.hasData || !!t.query, s = $(() => {
3502
+ const v = [];
3503
+ return Object.keys(t.tableHeaders).forEach((w) => {
3504
+ const N = t.tableHeaders[w];
3505
+ v.push({
3506
+ label: N.label ?? w,
3507
+ key: w,
3508
+ sortable: N.sortable ?? !1
3497
3509
  });
3498
- }), t.enableEntityActions && k.push({
3510
+ }), t.enableEntityActions && v.push({
3499
3511
  key: "actions",
3500
3512
  hideLabel: !0
3501
- }), k;
3502
- }), s = (k) => ({
3503
- "data-rowid": k.id,
3504
- "data-testid": k.name,
3505
- ...t.rowAttributes(k)
3506
- }), l = N({}), c = (k) => {
3507
- var S;
3508
- return (S = l.value) == null ? void 0 : S.$el.querySelector(`[data-rowid="${k.id}"]`);
3509
- }, d = (k) => {
3510
- const S = {
3511
- "data-testid": k.headerKey,
3512
- ...t.cellAttributes(k)
3513
+ }), v;
3514
+ }), l = (v) => ({
3515
+ "data-rowid": v.id,
3516
+ "data-testid": v.name,
3517
+ ...t.rowAttributes(v)
3518
+ }), c = F({}), d = (v) => {
3519
+ var w;
3520
+ return (w = c.value) == null ? void 0 : w.$el.querySelector(`[data-rowid="${v.id}"]`);
3521
+ }, u = (v) => {
3522
+ const w = {
3523
+ "data-testid": v.headerKey,
3524
+ ...t.cellAttributes(v)
3513
3525
  };
3514
- return k.colIndex === 0 && (S.style = {
3526
+ return v.colIndex === 0 && (w.style = {
3515
3527
  maxWidth: "250px",
3516
3528
  overflowX: "hidden",
3517
3529
  textOverflow: "ellipsis"
3518
- }), S;
3519
- }, u = () => {
3520
- n("empty-state-cta-clicked"), h();
3530
+ }), w;
3521
3531
  }, h = () => {
3532
+ n("empty-state-cta-clicked"), f();
3533
+ }, f = () => {
3522
3534
  n("clear-search-input");
3523
- }, f = M(() => t.disableRowClick ? void 0 : (k, S) => {
3524
- n("click:row", S);
3525
- }), I = (k) => {
3526
- n("sort", k);
3527
- }, { setTablePreferences: b, getTablePreferences: p } = Sr(), A = M(() => {
3528
- const k = p(t.preferencesStorageKey);
3535
+ }, A = $(() => t.disableRowClick ? void 0 : (v, w) => {
3536
+ n("click:row", w);
3537
+ }), C = (v) => {
3538
+ n("sort", v);
3539
+ }, { setTablePreferences: p, getTablePreferences: S } = Sr(), _ = $(() => {
3540
+ const v = S(t.preferencesStorageKey);
3529
3541
  return {
3530
3542
  ...t.initialFetcherParams,
3531
- ...k
3543
+ ...v
3532
3544
  };
3533
- }), w = (k) => {
3534
- t.preferencesStorageKey && b(t.preferencesStorageKey, k);
3545
+ }), q = (v) => {
3546
+ t.preferencesStorageKey && p(t.preferencesStorageKey, v);
3535
3547
  };
3536
- return (k, S) => {
3537
- const x = V("KIcon"), P = V("KButton"), R = V("KDropdown"), v = V("KTable"), C = V("KCard");
3538
- return m(), U(C, {
3548
+ return (v, w) => {
3549
+ const N = P("KIcon"), R = P("KButton"), b = P("KDropdown"), k = P("KTable"), V = P("KCard");
3550
+ return m(), D(V, {
3539
3551
  class: "kong-ui-entity-base-table",
3540
3552
  title: e.title
3541
3553
  }, {
3542
3554
  body: y(() => [
3543
- E(v, {
3555
+ O(k, {
3544
3556
  ref_key: "tableRefs",
3545
- ref: l,
3546
- "cache-identifier": a.value,
3547
- "cell-attrs": d,
3557
+ ref: c,
3558
+ "cache-identifier": o.value,
3559
+ "cell-attrs": u,
3548
3560
  "disable-pagination-page-jump": e.disablePaginationPageJump,
3549
3561
  "disable-sorting": e.disableSorting,
3550
3562
  "empty-state-action-button-icon": e.query ? "" : "plus",
@@ -3555,56 +3567,57 @@ const ts = {
3555
3567
  "empty-state-message": e.query ? g(r)("baseTable.emptyState.noSearchResultsMessage") : e.emptyStateOptions.message,
3556
3568
  "empty-state-title": e.query ? g(r)("baseTable.emptyState.noSearchResultsTitle") : e.emptyStateOptions.title,
3557
3569
  "enable-client-sort": e.enableClientSort,
3558
- "error-state-title": e.errorMessage,
3570
+ "error-state-message": a.value.message,
3571
+ "error-state-title": a.value.title,
3559
3572
  fetcher: e.fetcher,
3560
3573
  "fetcher-cache-key": String(e.fetcherCacheKey),
3561
- "has-error": !!e.errorMessage,
3562
- headers: i.value,
3574
+ "has-error": a.value.hasError,
3575
+ headers: s.value,
3563
3576
  "hide-pagination-when-optional": "",
3564
- "initial-fetcher-params": A.value,
3577
+ "initial-fetcher-params": _.value,
3565
3578
  "is-loading": e.isLoading,
3566
3579
  "pagination-type": e.paginationType,
3567
- "row-attrs": s,
3580
+ "row-attrs": l,
3568
3581
  "search-input": e.query,
3569
- onKtableEmptyStateCtaClicked: u,
3570
- "onRow:click": f.value,
3571
- onSort: S[0] || (S[0] = (B) => I(B)),
3572
- "onUpdate:tablePreferences": w
3582
+ onKtableEmptyStateCtaClicked: h,
3583
+ "onRow:click": A.value,
3584
+ onSort: w[0] || (w[0] = (B) => C(B)),
3585
+ "onUpdate:tablePreferences": q
3573
3586
  }, be({
3574
3587
  toolbar: y(({ state: B }) => [
3575
- Ue(K("div", Ms, [
3576
- Y(k.$slots, "toolbar-filter", {}, void 0, !0),
3577
- k.$slots["toolbar-button"] ? (m(), T("div", Os, [
3578
- Y(k.$slots, "toolbar-button", {}, void 0, !0)
3588
+ Ue(K("div", js, [
3589
+ Y(v.$slots, "toolbar-filter", {}, void 0, !0),
3590
+ v.$slots["toolbar-button"] ? (m(), T("div", Es, [
3591
+ Y(v.$slots, "toolbar-button", {}, void 0, !0)
3579
3592
  ])) : G("", !0)
3580
3593
  ], 512), [
3581
- [De, o(B)]
3594
+ [De, i(B)]
3582
3595
  ])
3583
3596
  ]),
3584
- actions: y(({ row: B, rowKey: q, rowValue: _ }) => [
3597
+ actions: y(({ row: B, rowKey: I, rowValue: E }) => [
3585
3598
  K("div", {
3586
3599
  class: "actions-container",
3587
3600
  "data-testid": B.name
3588
3601
  }, [
3589
- E(R, {
3602
+ O(b, {
3590
3603
  "kpop-attributes": { placement: "bottomEnd" },
3591
3604
  width: e.dropdownMenuWidth
3592
3605
  }, {
3593
3606
  items: y(() => [
3594
- Y(k.$slots, "actions", {
3607
+ Y(v.$slots, "actions", {
3595
3608
  row: B,
3596
- rowKey: q,
3597
- rowValue: _
3609
+ rowKey: I,
3610
+ rowValue: E
3598
3611
  }, void 0, !0)
3599
3612
  ]),
3600
3613
  default: y(() => [
3601
- E(P, {
3614
+ O(R, {
3602
3615
  class: "actions-trigger",
3603
3616
  "data-testid": "overflow-actions-button",
3604
3617
  size: "small"
3605
3618
  }, {
3606
3619
  icon: y(() => [
3607
- E(x, {
3620
+ O(N, {
3608
3621
  color: g(ba),
3609
3622
  icon: "more",
3610
3623
  size: "16"
@@ -3615,43 +3628,43 @@ const ts = {
3615
3628
  ]),
3616
3629
  _: 2
3617
3630
  }, 1032, ["width"])
3618
- ], 8, Es)
3631
+ ], 8, Os)
3619
3632
  ]),
3620
3633
  _: 2
3621
3634
  }, [
3622
- ce(e.tableHeaders, (B, q) => ({
3623
- name: q,
3624
- fn: y(({ row: _, rowKey: F, rowValue: L }) => [
3625
- E(js, {
3626
- "key-name": String(q),
3627
- "row-el": c(_)
3635
+ de(e.tableHeaders, (B, I) => ({
3636
+ name: I,
3637
+ fn: y(({ row: E, rowKey: L, rowValue: U }) => [
3638
+ O(Ms, {
3639
+ "key-name": String(I),
3640
+ "row-el": d(E)
3628
3641
  }, {
3629
3642
  default: y(() => [
3630
- Y(k.$slots, q, {
3631
- row: _,
3632
- rowKey: F,
3633
- rowValue: L
3643
+ Y(v.$slots, I, {
3644
+ row: E,
3645
+ rowKey: L,
3646
+ rowValue: U
3634
3647
  }, () => [
3635
- W($(L), 1)
3648
+ W(M(U), 1)
3636
3649
  ], !0)
3637
3650
  ]),
3638
3651
  _: 2
3639
3652
  }, 1032, ["key-name", "row-el"])
3640
3653
  ])
3641
3654
  }))
3642
- ]), 1032, ["cache-identifier", "disable-pagination-page-jump", "disable-sorting", "empty-state-action-button-icon", "empty-state-action-message", "empty-state-action-route", "empty-state-icon", "empty-state-message", "empty-state-title", "enable-client-sort", "error-state-title", "fetcher", "fetcher-cache-key", "has-error", "headers", "initial-fetcher-params", "is-loading", "pagination-type", "search-input", "onRow:click"])
3655
+ ]), 1032, ["cache-identifier", "disable-pagination-page-jump", "disable-sorting", "empty-state-action-button-icon", "empty-state-action-message", "empty-state-action-route", "empty-state-icon", "empty-state-message", "empty-state-title", "enable-client-sort", "error-state-message", "error-state-title", "fetcher", "fetcher-cache-key", "has-error", "headers", "initial-fetcher-params", "is-loading", "pagination-type", "search-input", "onRow:click"])
3643
3656
  ]),
3644
3657
  _: 3
3645
3658
  }, 8, ["title"]);
3646
3659
  };
3647
3660
  }
3648
- }), Fs = /* @__PURE__ */ me(Ns, [["__scopeId", "data-v-86d2d2a3"]]), Ks = {
3661
+ }), Ks = /* @__PURE__ */ me(Fs, [["__scopeId", "data-v-499a771c"]]), Ns = {
3649
3662
  key: 0,
3650
3663
  class: "kong-ui-entity-delete-error"
3651
3664
  }, Bs = {
3652
3665
  key: 1,
3653
3666
  class: "description"
3654
- }, qs = /* @__PURE__ */ ee({
3667
+ }, qs = /* @__PURE__ */ te({
3655
3668
  __name: "EntityDeleteModal",
3656
3669
  props: {
3657
3670
  visible: {
@@ -3690,14 +3703,14 @@ const ts = {
3690
3703
  },
3691
3704
  emits: ["cancel", "proceed"],
3692
3705
  setup(e, { emit: n }) {
3693
- const t = e, { i18nT: r } = ae.useI18n(), a = M(() => t.needConfirm ? t.entityName : ""), o = () => {
3706
+ const t = e, { i18nT: r } = ae.useI18n(), a = $(() => t.needConfirm ? t.entityName : ""), o = () => {
3694
3707
  n("cancel");
3695
3708
  }, i = () => {
3696
3709
  n("proceed");
3697
3710
  };
3698
3711
  return (s, l) => {
3699
- const c = V("KAlert"), d = V("KPrompt");
3700
- return m(), U(d, {
3712
+ const c = P("KAlert"), d = P("KPrompt");
3713
+ return m(), D(d, {
3701
3714
  "action-button-text": "Yes, delete",
3702
3715
  "action-pending": e.actionPending,
3703
3716
  class: "kong-ui-entity-delete-modal",
@@ -3709,35 +3722,35 @@ const ts = {
3709
3722
  onProceed: i
3710
3723
  }, {
3711
3724
  "body-content": y(() => [
3712
- e.error ? (m(), T("div", Ks, [
3713
- E(c, { appearance: "danger" }, {
3725
+ e.error ? (m(), T("div", Ns, [
3726
+ O(c, { appearance: "danger" }, {
3714
3727
  alertMessage: y(() => [
3715
- W($(e.error), 1)
3728
+ W(M(e.error), 1)
3716
3729
  ]),
3717
3730
  _: 1
3718
3731
  })
3719
3732
  ])) : G("", !0),
3720
- E(g(r), {
3733
+ O(g(r), {
3721
3734
  class: "message",
3722
3735
  keypath: t.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
3723
3736
  tag: "p"
3724
3737
  }, be({
3725
3738
  entityType: y(() => [
3726
- W($(t.entityType), 1)
3739
+ W(M(t.entityType), 1)
3727
3740
  ]),
3728
3741
  _: 2
3729
3742
  }, [
3730
3743
  t.entityName ? {
3731
3744
  name: "entityName",
3732
3745
  fn: y(() => [
3733
- K("strong", null, $(t.entityName), 1)
3746
+ K("strong", null, M(t.entityName), 1)
3734
3747
  ]),
3735
3748
  key: "0"
3736
3749
  } : void 0
3737
3750
  ]), 1032, ["keypath"]),
3738
3751
  t.description || s.$slots.description ? (m(), T("div", Bs, [
3739
3752
  Y(s.$slots, "description", {}, () => [
3740
- K("p", null, $(t.description), 1)
3753
+ K("p", null, M(t.description), 1)
3741
3754
  ], !0)
3742
3755
  ])) : G("", !0)
3743
3756
  ]),
@@ -3759,7 +3772,7 @@ const ts = {
3759
3772
  width: "20",
3760
3773
  x: "0",
3761
3774
  y: "0"
3762
- }, Rs = ["fill"], Us = { mask: "url(#mask0_180_20349)" }, Ds = ["fill"], sn = /* @__PURE__ */ ee({
3775
+ }, Rs = ["fill"], Us = { mask: "url(#mask0_180_20349)" }, Ds = ["fill"], sn = /* @__PURE__ */ te({
3763
3776
  __name: "IconFilter",
3764
3777
  props: {
3765
3778
  color: {
@@ -3787,7 +3800,7 @@ const ts = {
3787
3800
  }), Gs = {
3788
3801
  key: 1,
3789
3802
  class: "kong-ui-entity-filter"
3790
- }, Hs = { class: "menu-item-title" }, zs = { class: "menu-item-indicator" }, Js = { class: "menu-item-body" }, Ys = ["for"], Ws = { class: "menu-item-buttons" }, Zs = { class: "filter-clear-button-container" }, Xs = /* @__PURE__ */ ee({
3803
+ }, Hs = { class: "menu-item-title" }, zs = { class: "menu-item-indicator" }, Js = { class: "menu-item-body" }, Ys = ["for"], Ws = { class: "menu-item-buttons" }, Zs = { class: "filter-clear-button-container" }, Qs = /* @__PURE__ */ te({
3791
3804
  __name: "EntityFilter",
3792
3805
  props: {
3793
3806
  // filter config, either exact match or fuzzy match
@@ -3807,21 +3820,21 @@ const ts = {
3807
3820
  },
3808
3821
  emits: ["update:modelValue"],
3809
3822
  setup(e, { emit: n }) {
3810
- const t = e, { i18n: { t: r } } = ae.useI18n(), a = N(!1), o = N({}), i = M(() => {
3823
+ const t = e, { i18n: { t: r } } = ae.useI18n(), a = F(!1), o = F({}), i = $(() => {
3811
3824
  const p = [];
3812
- return new URLSearchParams(t.modelValue).forEach((A, w) => {
3813
- A !== "" && p.push(w);
3825
+ return new URLSearchParams(t.modelValue).forEach((S, _) => {
3826
+ S !== "" && p.push(_);
3814
3827
  }), p;
3815
- }), s = M(() => {
3828
+ }), s = $(() => {
3816
3829
  const p = t.config.fields;
3817
- return Object.keys(p).filter((A) => p[A].searchable).map((A) => ({
3818
- label: p[A].label || A,
3819
- value: A
3830
+ return Object.keys(p).filter((S) => p[S].searchable).map((S) => ({
3831
+ label: p[S].label || S,
3832
+ value: S
3820
3833
  }));
3821
3834
  });
3822
3835
  ve(() => t.modelValue, (p) => {
3823
- o.value = {}, new URLSearchParams(p).forEach((A, w) => {
3824
- o.value[w] = A;
3836
+ o.value = {}, new URLSearchParams(p).forEach((S, _) => {
3837
+ o.value[_] = S;
3825
3838
  });
3826
3839
  });
3827
3840
  const l = () => {
@@ -3829,28 +3842,28 @@ const ts = {
3829
3842
  }, c = (p) => {
3830
3843
  n("update:modelValue", p);
3831
3844
  }, d = (p) => `filter-${p}`, u = (p) => {
3832
- var A, w;
3833
- return (((w = (A = t.config.schema) == null ? void 0 : A[p]) == null ? void 0 : w.values) ?? []).map((k) => ({
3834
- value: k,
3835
- label: k
3845
+ var S, _;
3846
+ return (((_ = (S = t.config.schema) == null ? void 0 : S[p]) == null ? void 0 : _.values) ?? []).map((q) => ({
3847
+ value: q,
3848
+ label: q
3836
3849
  }));
3837
3850
  }, h = (p) => {
3838
- var A, w;
3839
- return ((w = (A = t.config.schema) == null ? void 0 : A[p]) == null ? void 0 : w.type) ?? "text";
3851
+ var S, _;
3852
+ return ((_ = (S = t.config.schema) == null ? void 0 : S[p]) == null ? void 0 : _.type) ?? "text";
3840
3853
  }, f = (p) => {
3841
3854
  o.value = {
3842
3855
  ...o.value,
3843
3856
  [p]: ""
3844
- }, b();
3845
- }, I = () => {
3846
- o.value = {}, b(!0);
3847
- }, b = (p = !1) => {
3848
- const A = Object.keys(o.value).reduce((w, k) => (o.value[k] && (w[k] = `${o.value[k]}`), w), {});
3849
- p && (a.value = !1), n("update:modelValue", new URLSearchParams(A).toString());
3857
+ }, C();
3858
+ }, A = () => {
3859
+ o.value = {}, C(!0);
3860
+ }, C = (p = !1) => {
3861
+ const S = Object.keys(o.value).reduce((_, q) => (o.value[q] && (_[q] = `${o.value[q]}`), _), {});
3862
+ p && (a.value = !1), n("update:modelValue", new URLSearchParams(S).toString());
3850
3863
  };
3851
- return (p, A) => {
3852
- const w = V("KInput"), k = V("KButton"), S = V("KSelect"), x = V("KMenuItem"), P = V("KMenu");
3853
- return e.config.isExactMatch ? (m(), U(w, {
3864
+ return (p, S) => {
3865
+ const _ = P("KInput"), q = P("KButton"), v = P("KSelect"), w = P("KMenuItem"), N = P("KMenu");
3866
+ return e.config.isExactMatch ? (m(), D(_, {
3854
3867
  key: 0,
3855
3868
  autocomplete: "off",
3856
3869
  class: "kong-ui-entity-filter-input",
@@ -3860,18 +3873,18 @@ const ts = {
3860
3873
  "onUpdate:modelValue": c
3861
3874
  }, {
3862
3875
  before: y(() => [
3863
- E(sn)
3876
+ O(sn)
3864
3877
  ]),
3865
3878
  _: 1
3866
3879
  }, 8, ["model-value", "placeholder"])) : (m(), T("div", Gs, [
3867
- E(k, {
3880
+ O(q, {
3868
3881
  appearance: "tertiary",
3869
3882
  "data-testid": "filter-button",
3870
3883
  onClick: l
3871
3884
  }, {
3872
3885
  default: y(() => [
3873
- E(sn),
3874
- W(" " + $(g(r)("filter.filterButtonText")) + " " + $(i.value.length > 0 ? `(${i.value.length})` : ""), 1)
3886
+ O(sn),
3887
+ W(" " + M(g(r)("filter.filterButtonText")) + " " + M(i.value.length > 0 ? `(${i.value.length})` : ""), 1)
3875
3888
  ]),
3876
3889
  _: 1
3877
3890
  }),
@@ -3881,68 +3894,68 @@ const ts = {
3881
3894
  }, null, 512), [
3882
3895
  [De, a.value]
3883
3896
  ]),
3884
- Ue(E(P, { class: "kong-ui-entity-filter-menu" }, {
3897
+ Ue(O(N, { class: "kong-ui-entity-filter-menu" }, {
3885
3898
  body: y(() => [
3886
- (m(!0), T(pe, null, ce(s.value, (R, v) => (m(), U(x, {
3899
+ (m(!0), T(fe, null, de(s.value, (R, b) => (m(), D(w, {
3887
3900
  key: R.value,
3888
3901
  "data-testid": R.value,
3889
3902
  expandable: "",
3890
- "last-menu-item": v === s.value.length - 1
3903
+ "last-menu-item": b === s.value.length - 1
3891
3904
  }, {
3892
3905
  itemTitle: y(() => [
3893
3906
  K("span", Hs, [
3894
- W($(R.label) + " ", 1),
3907
+ W(M(R.label) + " ", 1),
3895
3908
  Ue(K("span", zs, null, 512), [
3896
3909
  [De, i.value.includes(R.value)]
3897
3910
  ])
3898
3911
  ])
3899
3912
  ]),
3900
3913
  itemBody: y(() => {
3901
- var C, B;
3914
+ var k, V;
3902
3915
  return [
3903
3916
  K("div", Js, [
3904
3917
  K("label", {
3905
3918
  class: "menu-item-label",
3906
3919
  for: d(R.value)
3907
- }, $(g(r)("filter.fieldLabel")), 9, Ys),
3908
- ((B = (C = e.config.schema) == null ? void 0 : C[R.value]) == null ? void 0 : B.type) === "select" ? (m(), U(S, {
3920
+ }, M(g(r)("filter.fieldLabel")), 9, Ys),
3921
+ ((V = (k = e.config.schema) == null ? void 0 : k[R.value]) == null ? void 0 : V.type) === "select" ? (m(), D(v, {
3909
3922
  key: 0,
3910
3923
  id: d(R.value),
3911
3924
  modelValue: o.value[R.value],
3912
- "onUpdate:modelValue": (q) => o.value[R.value] = q,
3925
+ "onUpdate:modelValue": (B) => o.value[R.value] = B,
3913
3926
  appearance: "select",
3914
3927
  items: u(R.value),
3915
3928
  placeholder: g(r)("filter.selectPlaceholder")
3916
- }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (m(), U(w, {
3929
+ }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (m(), D(_, {
3917
3930
  key: 1,
3918
3931
  id: d(R.value),
3919
3932
  modelValue: o.value[R.value],
3920
- "onUpdate:modelValue": (q) => o.value[R.value] = q,
3933
+ "onUpdate:modelValue": (B) => o.value[R.value] = B,
3921
3934
  autocomplete: "off",
3922
3935
  placeholder: g(r)("filter.inputPlaceholder"),
3923
3936
  type: h(R.value)
3924
3937
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
3925
3938
  ]),
3926
3939
  K("div", Ws, [
3927
- E(k, {
3940
+ O(q, {
3928
3941
  appearance: "tertiary",
3929
3942
  "data-testid": "apply-filter",
3930
3943
  size: "small",
3931
- onClick: A[0] || (A[0] = (q) => b(!0))
3944
+ onClick: S[0] || (S[0] = (B) => C(!0))
3932
3945
  }, {
3933
3946
  default: y(() => [
3934
- W($(g(r)("filter.applyButtonText")), 1)
3947
+ W(M(g(r)("filter.applyButtonText")), 1)
3935
3948
  ]),
3936
3949
  _: 1
3937
3950
  }),
3938
- E(k, {
3951
+ O(q, {
3939
3952
  appearance: "tertiary",
3940
3953
  "data-testid": "clear-filter",
3941
3954
  size: "small",
3942
- onClick: (q) => f(R.value)
3955
+ onClick: (B) => f(R.value)
3943
3956
  }, {
3944
3957
  default: y(() => [
3945
- W($(g(r)("filter.clearButtonText")), 1)
3958
+ W(M(g(r)("filter.clearButtonText")), 1)
3946
3959
  ]),
3947
3960
  _: 2
3948
3961
  }, 1032, ["onClick"])
@@ -3954,12 +3967,12 @@ const ts = {
3954
3967
  ]),
3955
3968
  actionButton: y(() => [
3956
3969
  K("div", Zs, [
3957
- E(k, {
3970
+ O(q, {
3958
3971
  size: "small",
3959
- onClick: I
3972
+ onClick: A
3960
3973
  }, {
3961
3974
  default: y(() => [
3962
- W($(g(r)("filter.clearAllButtonText")), 1)
3975
+ W(M(g(r)("filter.clearAllButtonText")), 1)
3963
3976
  ]),
3964
3977
  _: 1
3965
3978
  })
@@ -3972,7 +3985,7 @@ const ts = {
3972
3985
  ]));
3973
3986
  };
3974
3987
  }
3975
- }), Qs = /* @__PURE__ */ me(Xs, [["__scopeId", "data-v-4ea260f0"]]), Re = /* @__PURE__ */ ee({
3988
+ }), Xs = /* @__PURE__ */ me(Qs, [["__scopeId", "data-v-4ea260f0"]]), Re = /* @__PURE__ */ te({
3976
3989
  __name: "PermissionsWrapper",
3977
3990
  props: {
3978
3991
  /**
@@ -3994,7 +4007,7 @@ const ts = {
3994
4007
  }
3995
4008
  },
3996
4009
  setup(e) {
3997
- const n = e, t = N(void 0), r = M(() => t.value === !0 || t.value !== void 0 && n.forceShow === !0);
4010
+ const n = e, t = F(void 0), r = $(() => t.value === !0 || t.value !== void 0 && n.forceShow === !0);
3998
4011
  return ve(() => n.authFunction, async () => {
3999
4012
  t.value = await n.authFunction();
4000
4013
  }, { immediate: !0 }), (a, o) => r.value ? Y(a.$slots, "default", {
@@ -4011,7 +4024,7 @@ const ts = {
4011
4024
  }, rl = {
4012
4025
  key: 2,
4013
4026
  class: "form-section-footer"
4014
- }, al = { class: "form-section-content" }, ol = /* @__PURE__ */ ee({
4027
+ }, al = { class: "form-section-content" }, ol = /* @__PURE__ */ te({
4015
4028
  __name: "EntityFormSection",
4016
4029
  props: {
4017
4030
  title: {
@@ -4045,10 +4058,10 @@ const ts = {
4045
4058
  key: 0,
4046
4059
  class: Ae(["form-section-info", { sticky: e.stickyInfoHeader }])
4047
4060
  }, [
4048
- e.title ? (m(), T("h4", tl, $(e.title), 1)) : G("", !0),
4061
+ e.title ? (m(), T("h4", tl, M(e.title), 1)) : G("", !0),
4049
4062
  e.description || g(n).description ? (m(), T("div", nl, [
4050
4063
  Y(t.$slots, "description", {}, () => [
4051
- K("p", null, $(e.description), 1)
4064
+ K("p", null, M(e.description), 1)
4052
4065
  ], !0)
4053
4066
  ])) : G("", !0),
4054
4067
  g(n).footer ? (m(), T("div", rl, [
@@ -4061,14 +4074,14 @@ const ts = {
4061
4074
  ])
4062
4075
  ], 2));
4063
4076
  }
4064
- }), il = /* @__PURE__ */ me(ol, [["__scopeId", "data-v-8b6dc312"]]), { useAxios: St, useDeleteUrlBuilder: sl, useErrors: ll, useExternalLinkCreator: Ol, useFetchUrlBuilder: El, useFetcher: ul, useDebouncedFilter: cl, useStringHelpers: Nl, useHelpers: Fl, useGatewayFeatureSupported: Kl, useTruncationDetector: Bl } = ae;
4077
+ }), il = /* @__PURE__ */ me(ol, [["__scopeId", "data-v-8b6dc312"]]), { useAxios: St, useDeleteUrlBuilder: sl, useErrors: ll, useExternalLinkCreator: El, useFetchUrlBuilder: Ol, useFetcher: ul, useDebouncedFilter: cl, useStringHelpers: Fl, useHelpers: Kl, useGatewayFeatureSupported: Nl, useTruncationDetector: Bl } = ae;
4065
4078
  const dl = { class: "add-consumer-form-container" }, pl = { class: "add-consumer-form-cta" }, fl = { class: "select-item-label" }, ml = {
4066
4079
  key: 0,
4067
4080
  class: "select-item-desc"
4068
4081
  }, gl = {
4069
4082
  key: 0,
4070
4083
  class: "kong-ui-entity-add-consumers-error"
4071
- }, yl = { key: 0 }, hl = /* @__PURE__ */ ee({
4084
+ }, yl = { key: 0 }, hl = /* @__PURE__ */ te({
4072
4085
  __name: "AddConsumerModal",
4073
4086
  props: {
4074
4087
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -4085,10 +4098,10 @@ const dl = { class: "add-consumer-form-container" }, pl = { class: "add-consumer
4085
4098
  },
4086
4099
  emits: ["cancel", "add:success", "add:partial-success", "error"],
4087
4100
  setup(e, { emit: n }) {
4088
- var q;
4089
- const t = e, { i18n: { t: r } } = Qe.useI18n(), { axiosInstance: a } = St({
4090
- headers: (q = t.config) == null ? void 0 : q.requestHeaders
4091
- }), o = N([]), {
4101
+ var B;
4102
+ const t = e, { i18n: { t: r } } = Xe.useI18n(), { axiosInstance: a } = St({
4103
+ headers: (B = t.config) == null ? void 0 : B.requestHeaders
4104
+ }), o = F([]), {
4092
4105
  debouncedQueryChange: i,
4093
4106
  loading: s,
4094
4107
  allRecords: l,
@@ -4103,103 +4116,103 @@ const dl = { class: "add-consumer-form-container" }, pl = { class: "add-consumer
4103
4116
  fetchedItemsKey: "data",
4104
4117
  searchKeys: ["username", "id"]
4105
4118
  }
4106
- ), h = (_) => _, f = M(() => c.value ? r("consumers.errors.general") : ""), I = N(0), b = M(() => l.value === void 0), p = M(() => u.value.map((_) => ({
4107
- label: _.username || _.customId,
4108
- value: _.id,
4109
- selected: o.value.includes(_.id),
4110
- data: _
4119
+ ), h = (I) => I, f = $(() => c.value ? r("consumers.errors.general") : ""), A = F(0), C = $(() => l.value === void 0), p = $(() => u.value.map((I) => ({
4120
+ label: I.username || I.customId,
4121
+ value: I.id,
4122
+ selected: o.value.includes(I.id),
4123
+ data: I
4111
4124
  // we need this to determine whether or not to show the description text
4112
- }))), A = (_) => {
4125
+ }))), S = (I) => {
4113
4126
  var L;
4114
- const F = b.value ? u.value.find((D) => D.id === _) : (L = l.value) == null ? void 0 : L.find((D) => D.id === _);
4115
- return F ? F.username || F.custom_id : _;
4116
- }, w = () => {
4117
- x.value = "", k.value = [], C.value = [], n("cancel");
4118
- }, k = N([]), S = N(!1), x = N(""), P = async () => {
4127
+ const E = C.value ? u.value.find((U) => U.id === I) : (L = l.value) == null ? void 0 : L.find((U) => U.id === I);
4128
+ return E ? E.username || E.custom_id : I;
4129
+ }, _ = () => {
4130
+ w.value = "", q.value = [], k.value = [], n("cancel");
4131
+ }, q = F([]), v = F(!1), w = F(""), N = async () => {
4119
4132
  if (!o.value.length) {
4120
- x.value = "", C.value = [], n("cancel");
4133
+ w.value = "", k.value = [], n("cancel");
4121
4134
  return;
4122
4135
  }
4123
- S.value = !0, x.value = "", k.value = [], C.value = [];
4136
+ v.value = !0, w.value = "", q.value = [], k.value = [];
4124
4137
  try {
4125
- const _ = o.value.map((D) => v(D)), F = await Promise.allSettled(_);
4138
+ const I = o.value.map((U) => b(U)), E = await Promise.allSettled(I);
4126
4139
  let L = !0;
4127
- F.forEach((D) => {
4128
- D.status !== "fulfilled" && (L = !1);
4129
- }), L ? (k.value = [], C.value = [], n("add:success", o.value), o.value = []) : (k.value.length && n("add:partial-success", k.value), o.value = [], B(F));
4140
+ E.forEach((U) => {
4141
+ U.status !== "fulfilled" && (L = !1);
4142
+ }), L ? (q.value = [], k.value = [], n("add:success", o.value), o.value = []) : (q.value.length && n("add:partial-success", q.value), o.value = [], V(E));
4130
4143
  } catch {
4131
- x.value = r("consumers.errors.add"), n("error", x.value);
4144
+ w.value = r("consumers.errors.add"), n("error", w.value);
4132
4145
  } finally {
4133
- S.value = !1;
4146
+ v.value = !1;
4134
4147
  }
4135
- }, R = M(() => {
4136
- var F, L, D, Z;
4137
- let _ = `${t.config.apiBaseUrl}${Se.list[t.config.app].forConsumerGroup}`;
4138
- return t.config.app === "konnect" ? _ = _.replace(/{controlPlaneId}/gi, ((F = t.config) == null ? void 0 : F.controlPlaneId) || "").replace(/{consumerGroupId}/gi, ((L = t.config) == null ? void 0 : L.consumerGroupId) || "") : t.config.app === "kongManager" && (_ = _.replace(/\/{workspace}/gi, (D = t.config) != null && D.workspace ? `/${t.config.workspace}` : "").replace(/{consumerGroupId}/gi, ((Z = t.config) == null ? void 0 : Z.consumerGroupId) || "")), _;
4139
- }), v = async (_) => {
4140
- const F = {
4141
- consumer: _
4148
+ }, R = $(() => {
4149
+ var E, L, U, Z;
4150
+ let I = `${t.config.apiBaseUrl}${Se.list[t.config.app].forConsumerGroup}`;
4151
+ return t.config.app === "konnect" ? I = I.replace(/{controlPlaneId}/gi, ((E = t.config) == null ? void 0 : E.controlPlaneId) || "").replace(/{consumerGroupId}/gi, ((L = t.config) == null ? void 0 : L.consumerGroupId) || "") : t.config.app === "kongManager" && (I = I.replace(/\/{workspace}/gi, (U = t.config) != null && U.workspace ? `/${t.config.workspace}` : "").replace(/{consumerGroupId}/gi, ((Z = t.config) == null ? void 0 : Z.consumerGroupId) || "")), I;
4152
+ }), b = async (I) => {
4153
+ const E = {
4154
+ consumer: I
4142
4155
  };
4143
4156
  try {
4144
- const L = await a.post(R.value, F);
4145
- return k.value.push(_), L;
4157
+ const L = await a.post(R.value, E);
4158
+ return q.value.push(I), L;
4146
4159
  } catch (L) {
4147
- let D = `${A(_)} - ${L.message}`;
4148
- return L.response.status === 409 && (D = `${A(_)} - ${r("consumers.errors.already_added")}`), Promise.reject(Error(D));
4160
+ let U = `${S(I)} - ${L.message}`;
4161
+ return L.response.status === 409 && (U = `${S(I)} - ${r("consumers.errors.already_added")}`), Promise.reject(Error(U));
4149
4162
  }
4150
- }, C = N([]), B = (_) => {
4151
- C.value = _.map((F) => {
4163
+ }, k = F([]), V = (I) => {
4164
+ k.value = I.map((E) => {
4152
4165
  var L;
4153
- return (L = F.reason) == null ? void 0 : L.message;
4166
+ return (L = E.reason) == null ? void 0 : L.message;
4154
4167
  }).filter(Boolean);
4155
4168
  };
4156
4169
  return ve(p, () => {
4157
- I.value++;
4158
- }, { immediate: !0, deep: !0 }), Xe(async () => {
4170
+ A.value++;
4171
+ }, { immediate: !0, deep: !0 }), Qe(async () => {
4159
4172
  await d();
4160
- }), (_, F) => {
4161
- const L = V("KMultiselect"), D = V("KAlert"), Z = V("KPrompt");
4162
- return m(), U(Z, {
4163
- "action-pending": S.value,
4173
+ }), (I, E) => {
4174
+ const L = P("KMultiselect"), U = P("KAlert"), Z = P("KPrompt");
4175
+ return m(), D(Z, {
4176
+ "action-pending": v.value,
4164
4177
  class: "kong-ui-entities-add-consumers-modal",
4165
4178
  "data-testid": "add-consumer-modal",
4166
4179
  "is-visible": e.visible,
4167
4180
  title: g(r)("consumers.consumer_groups.add.title"),
4168
- onCanceled: w,
4169
- onProceed: P
4181
+ onCanceled: _,
4182
+ onProceed: N
4170
4183
  }, {
4171
4184
  "body-content": y(() => [
4172
4185
  K("div", dl, [
4173
- K("p", pl, $(g(r)("consumers.consumer_groups.add.ctaText")), 1),
4174
- E(L, {
4186
+ K("p", pl, M(g(r)("consumers.consumer_groups.add.ctaText")), 1),
4187
+ O(L, {
4175
4188
  modelValue: o.value,
4176
- "onUpdate:modelValue": F[0] || (F[0] = (H) => o.value = H),
4189
+ "onUpdate:modelValue": E[0] || (E[0] = (z) => o.value = z),
4177
4190
  autosuggest: "",
4178
4191
  "data-testid": "add-consumers-multiselect",
4179
- "dropdown-footer-text": b.value ? g(r)("consumers.consumer_groups.add.footer") : void 0,
4192
+ "dropdown-footer-text": C.value ? g(r)("consumers.consumer_groups.add.footer") : void 0,
4180
4193
  items: p.value,
4181
4194
  label: g(r)("consumers.consumer_groups.add.consumers_label"),
4182
4195
  loading: g(s),
4183
4196
  placeholder: g(r)("consumers.consumer_groups.add.consumer_placeholder"),
4184
- readonly: S.value,
4197
+ readonly: v.value,
4185
4198
  required: "",
4186
4199
  width: "100%",
4187
4200
  onQueryChange: g(i)
4188
4201
  }, {
4189
- "item-template": y(({ item: H }) => [
4190
- K("div", fl, $(H.label), 1),
4191
- h(H).data.username && h(H).data.custom_id ? (m(), T("div", ml, $(h(H).data.custom_id), 1)) : G("", !0)
4202
+ "item-template": y(({ item: z }) => [
4203
+ K("div", fl, M(z.label), 1),
4204
+ h(z).data.username && h(z).data.custom_id ? (m(), T("div", ml, M(h(z).data.custom_id), 1)) : G("", !0)
4192
4205
  ]),
4193
4206
  _: 1
4194
4207
  }, 8, ["modelValue", "dropdown-footer-text", "items", "label", "loading", "placeholder", "readonly", "onQueryChange"]),
4195
- x.value || f.value || C.value.length ? (m(), T("div", gl, [
4196
- E(D, { appearance: "danger" }, {
4208
+ w.value || f.value || k.value.length ? (m(), T("div", gl, [
4209
+ O(U, { appearance: "danger" }, {
4197
4210
  alertMessage: y(() => [
4198
- K("p", null, $(g(r)("consumers.errors.add")), 1),
4199
- C.value.length ? (m(), T("ul", yl, [
4200
- (m(!0), T(pe, null, ce(C.value, (H, X) => (m(), T("li", { key: X }, $(H), 1))), 128))
4211
+ K("p", null, M(g(r)("consumers.errors.add")), 1),
4212
+ k.value.length ? (m(), T("ul", yl, [
4213
+ (m(!0), T(fe, null, de(k.value, (z, Q) => (m(), T("li", { key: Q }, M(z), 1))), 128))
4201
4214
  ])) : G("", !0),
4202
- K("div", null, $(x.value || f.value), 1)
4215
+ K("div", null, M(w.value || f.value), 1)
4203
4216
  ]),
4204
4217
  _: 1
4205
4218
  })
@@ -4216,7 +4229,7 @@ const xt = (e, n) => {
4216
4229
  for (const [r, a] of n)
4217
4230
  t[r] = a;
4218
4231
  return t;
4219
- }, vl = /* @__PURE__ */ xt(hl, [["__scopeId", "data-v-86f09821"]]), bl = { class: "kong-ui-entities-consumers-list" }, Cl = { key: 1 }, kl = /* @__PURE__ */ ee({
4232
+ }, vl = /* @__PURE__ */ xt(hl, [["__scopeId", "data-v-86f09821"]]), bl = { class: "kong-ui-entities-consumers-list" }, Cl = { key: 1 }, kl = /* @__PURE__ */ te({
4220
4233
  __name: "ConsumerList",
4221
4234
  props: {
4222
4235
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -4257,178 +4270,181 @@ const xt = (e, n) => {
4257
4270
  },
4258
4271
  emits: ["error", "copy:success", "copy:error", "delete:success", "add:success", "remove:success"],
4259
4272
  setup(e, { emit: n }) {
4260
- var Et;
4261
- const t = e, { i18nT: r, i18n: { t: a } } = Qe.useI18n(), o = gt(), { axiosInstance: i } = St({
4262
- headers: (Et = t.config) == null ? void 0 : Et.requestHeaders
4263
- }), s = N(1), l = M(() => !!t.config.consumerGroupId), c = M(() => t.config.app !== "kongManager" || !!t.config.disableSorting), d = {
4273
+ var Ot;
4274
+ const t = e, { i18nT: r, i18n: { t: a } } = Xe.useI18n(), o = gt(), { axiosInstance: i } = St({
4275
+ headers: (Ot = t.config) == null ? void 0 : Ot.requestHeaders
4276
+ }), s = F(1), l = $(() => !!t.config.consumerGroupId), c = $(() => t.config.app !== "kongManager" || !!t.config.disableSorting), d = {
4264
4277
  username: { label: a("consumers.list.table_headers.username"), searchable: !0, sortable: !0 },
4265
4278
  custom_id: { label: a("consumers.list.table_headers.custom_id"), searchable: !0, sortable: !0 },
4266
4279
  tags: { label: a("consumers.list.table_headers.tags"), sortable: !1 }
4267
- }, u = d, h = (O) => ({
4268
- "data-testid": O.username ?? O.custom_id ?? O.id
4269
- }), f = M(() => {
4270
- var z, re, fe, we;
4271
- let O = `${t.config.apiBaseUrl}${Se.list[t.config.app][l.value ? "forConsumerGroup" : "all"]}`;
4272
- return t.config.app === "konnect" ? O = O.replace(/{controlPlaneId}/gi, ((z = t.config) == null ? void 0 : z.controlPlaneId) || "").replace(/{consumerGroupId}/gi, ((re = t.config) == null ? void 0 : re.consumerGroupId) || "") : t.config.app === "kongManager" && (O = O.replace(/\/{workspace}/gi, (fe = t.config) != null && fe.workspace ? `/${t.config.workspace}` : "").replace(/{consumerGroupId}/gi, ((we = t.config) == null ? void 0 : we.consumerGroupId) || "")), O;
4273
- }), I = N(""), b = M(() => {
4274
- const O = t.config.app === "konnect" || t.config.isExactMatch;
4275
- return O ? {
4276
- isExactMatch: O,
4280
+ }, u = d, h = (x) => ({
4281
+ "data-testid": x.username ?? x.custom_id ?? x.id
4282
+ }), f = $(() => {
4283
+ var H, ee, ue, we;
4284
+ let x = `${t.config.apiBaseUrl}${Se.list[t.config.app][l.value ? "forConsumerGroup" : "all"]}`;
4285
+ return t.config.app === "konnect" ? x = x.replace(/{controlPlaneId}/gi, ((H = t.config) == null ? void 0 : H.controlPlaneId) || "").replace(/{consumerGroupId}/gi, ((ee = t.config) == null ? void 0 : ee.consumerGroupId) || "") : t.config.app === "kongManager" && (x = x.replace(/\/{workspace}/gi, (ue = t.config) != null && ue.workspace ? `/${t.config.workspace}` : "").replace(/{consumerGroupId}/gi, ((we = t.config) == null ? void 0 : we.consumerGroupId) || "")), x;
4286
+ }), A = F(""), C = $(() => {
4287
+ const x = t.config.app === "konnect" || t.config.isExactMatch;
4288
+ return x ? {
4289
+ isExactMatch: x,
4277
4290
  placeholder: a("consumers.search.placeholder")
4278
4291
  } : {
4279
- isExactMatch: O,
4292
+ isExactMatch: x,
4280
4293
  fields: {
4281
4294
  username: d.username,
4282
4295
  custom_id: d.custom_id
4283
4296
  },
4284
4297
  schema: t.config.filterSchema
4285
4298
  };
4286
- }), p = M(() => l.value ? "consumers" : void 0), { fetcher: A, fetcherState: w } = ul(t.config, f.value, p.value), k = () => {
4287
- I.value = "";
4288
- }, S = () => {
4299
+ }), p = $(() => l.value ? "consumers" : void 0), { fetcher: S, fetcherState: _ } = ul(t.config, f.value, p.value), q = () => {
4300
+ A.value = "";
4301
+ }, v = () => {
4289
4302
  s.value++;
4290
- }, x = (O) => O ?? "-", P = N(""), R = (O, z) => {
4291
- const re = O.id;
4292
- if (!z(re)) {
4303
+ }, w = (x) => x ?? "-", N = F(null), R = (x, H) => {
4304
+ const ee = x.id;
4305
+ if (!H(ee)) {
4293
4306
  n("copy:error", {
4294
- entity: O,
4307
+ entity: x,
4295
4308
  field: "id",
4296
4309
  message: a("consumers.errors.copy")
4297
4310
  });
4298
4311
  return;
4299
4312
  }
4300
4313
  n("copy:success", {
4301
- entity: O,
4314
+ entity: x,
4302
4315
  field: "id",
4303
- message: a("consumers.copy.success", { val: re })
4316
+ message: a("consumers.copy.success", { val: ee })
4304
4317
  });
4305
- }, v = (O, z) => {
4306
- const re = JSON.stringify(O);
4307
- if (!z(re)) {
4318
+ }, b = (x, H) => {
4319
+ const ee = JSON.stringify(x);
4320
+ if (!H(ee)) {
4308
4321
  n("copy:error", {
4309
- entity: O,
4322
+ entity: x,
4310
4323
  message: a("consumers.errors.copy")
4311
4324
  });
4312
4325
  return;
4313
4326
  }
4314
4327
  n("copy:success", {
4315
- entity: O,
4328
+ entity: x,
4316
4329
  message: a("consumers.copy.success_brief")
4317
4330
  });
4318
- }, C = async (O) => {
4319
- var re;
4320
- await ((re = t.canRetrieve) == null ? void 0 : re.call(t, O)) && o.push(t.config.getViewRoute(O.id));
4321
- }, B = (O) => ({
4331
+ }, k = async (x) => {
4332
+ var ee;
4333
+ await ((ee = t.canRetrieve) == null ? void 0 : ee.call(t, x)) && o.push(t.config.getViewRoute(x.id));
4334
+ }, V = (x) => ({
4322
4335
  label: a("consumers.actions.view"),
4323
- to: t.config.getViewRoute(O)
4324
- }), q = (O) => ({
4336
+ to: t.config.getViewRoute(x)
4337
+ }), B = (x) => ({
4325
4338
  label: a("consumers.actions.edit"),
4326
- to: t.config.getEditRoute(O)
4327
- }), _ = N(void 0), F = N(!1), L = N(!1), D = N(""), Z = sl(t.config, f.value), H = (O) => {
4328
- _.value = O, F.value = !0;
4329
- }, X = () => {
4330
- F.value = !1;
4339
+ to: t.config.getEditRoute(x)
4340
+ }), I = F(void 0), E = F(!1), L = F(!1), U = F(""), Z = sl(t.config, f.value), z = (x) => {
4341
+ I.value = x, E.value = !0;
4342
+ }, Q = () => {
4343
+ E.value = !1;
4331
4344
  }, le = async () => {
4332
- var O, z, re;
4333
- if ((O = _.value) != null && O.id) {
4345
+ var x, H, ee;
4346
+ if ((x = I.value) != null && x.id) {
4334
4347
  L.value = !0;
4335
4348
  try {
4336
- await i.delete(Z(_.value.id)), L.value = !1, F.value = !1, s.value++, n("delete:success", _.value);
4337
- } catch (fe) {
4338
- D.value = ((re = (z = fe.response) == null ? void 0 : z.data) == null ? void 0 : re.message) || fe.message || a("consumers.errors.delete"), n("error", fe);
4349
+ await i.delete(Z(I.value.id)), L.value = !1, E.value = !1, s.value++, n("delete:success", I.value);
4350
+ } catch (ue) {
4351
+ U.value = ((ee = (H = ue.response) == null ? void 0 : H.data) == null ? void 0 : ee.message) || ue.message || a("consumers.errors.delete"), n("error", ue);
4339
4352
  } finally {
4340
4353
  L.value = !1;
4341
4354
  }
4342
4355
  }
4343
- }, tt = N(!1), Tt = () => {
4356
+ }, tt = F(!1), Tt = () => {
4344
4357
  tt.value = !0;
4345
4358
  }, $t = () => {
4346
4359
  tt.value = !1;
4347
- }, jt = (O, z) => {
4348
- z || $t(), s.value++, n("add:success", O);
4360
+ }, Mt = (x, H) => {
4361
+ H || $t(), s.value++, n("add:success", x);
4349
4362
  }, ir = () => {
4350
4363
  l.value && Tt();
4351
- }, ye = N(void 0), nt = N(!1), sr = N(""), lr = (O) => {
4352
- ye.value = O, nt.value = !0;
4353
- }, Mt = () => {
4364
+ }, ye = F(void 0), nt = F(!1), sr = F(""), lr = (x) => {
4365
+ ye.value = x, nt.value = !0;
4366
+ }, jt = () => {
4354
4367
  nt.value = !1, ye.value = void 0;
4355
- }, ur = M(() => {
4356
- var z, re, fe, we;
4357
- let O = `${t.config.apiBaseUrl}${Se.list[t.config.app].oneForConsumerGroup}`;
4358
- return t.config.app === "konnect" ? O = O.replace(/{controlPlaneId}/gi, ((z = t.config) == null ? void 0 : z.controlPlaneId) || "").replace(/{consumerGroupId}/gi, ((re = t.config) == null ? void 0 : re.consumerGroupId) || "") : t.config.app === "kongManager" && (O = O.replace(/\/{workspace}/gi, (fe = t.config) != null && fe.workspace ? `/${t.config.workspace}` : "").replace(/{consumerGroupId}/gi, ((we = t.config) == null ? void 0 : we.consumerGroupId) || "")), O;
4359
- }), Ot = N(!1), cr = async () => {
4368
+ }, ur = $(() => {
4369
+ var H, ee, ue, we;
4370
+ let x = `${t.config.apiBaseUrl}${Se.list[t.config.app].oneForConsumerGroup}`;
4371
+ return t.config.app === "konnect" ? x = x.replace(/{controlPlaneId}/gi, ((H = t.config) == null ? void 0 : H.controlPlaneId) || "").replace(/{consumerGroupId}/gi, ((ee = t.config) == null ? void 0 : ee.consumerGroupId) || "") : t.config.app === "kongManager" && (x = x.replace(/\/{workspace}/gi, (ue = t.config) != null && ue.workspace ? `/${t.config.workspace}` : "").replace(/{consumerGroupId}/gi, ((we = t.config) == null ? void 0 : we.consumerGroupId) || "")), x;
4372
+ }), Et = F(!1), cr = async () => {
4360
4373
  if (ye.value) {
4361
- Ot.value = !0;
4374
+ Et.value = !0;
4362
4375
  try {
4363
- const O = ur.value.replace(/{consumerId}/gi, ye.value.id);
4364
- await i.delete(O), n("remove:success", ye.value), Mt(), s.value++;
4365
- } catch (O) {
4366
- sr.value = O.message || a("consumers.errors.delete"), n("error", O);
4376
+ const x = ur.value.replace(/{consumerId}/gi, ye.value.id);
4377
+ await i.delete(x), n("remove:success", ye.value), jt(), s.value++;
4378
+ } catch (x) {
4379
+ sr.value = x.message || a("consumers.errors.delete"), n("error", x);
4367
4380
  } finally {
4368
- Ot.value = !1;
4381
+ Et.value = !1;
4369
4382
  }
4370
4383
  }
4371
4384
  };
4372
- ve(w, (O) => {
4373
- if (O.status === _e.Error) {
4374
- P.value = a("consumers.errors.general"), n("error", O.error);
4385
+ ve(_, (x) => {
4386
+ var H, ee, ue;
4387
+ if (x.status === _e.Error) {
4388
+ N.value = {
4389
+ title: a("consumers.errors.general")
4390
+ }, (ue = (ee = (H = x.error) == null ? void 0 : H.response) == null ? void 0 : ee.data) != null && ue.message && (N.value.message = x.error.response.data.message), n("error", x.error);
4375
4391
  return;
4376
4392
  }
4377
- P.value = "";
4393
+ N.value = null;
4378
4394
  });
4379
- const rt = N({
4395
+ const rt = F({
4380
4396
  ctaPath: l.value ? void 0 : t.config.createRoute,
4381
4397
  ctaText: void 0,
4382
4398
  message: a("consumers.list.empty_state.description"),
4383
4399
  title: a("consumers.title")
4384
4400
  });
4385
- return Xe(async () => {
4401
+ return Qe(async () => {
4386
4402
  await t.canCreate() && (rt.value.title = l.value ? a("consumers.list.empty_state.title_for_consumer_group") : a("consumers.list.empty_state.title"), rt.value.ctaText = l.value ? a("consumers.actions.add_consumer") : a("consumers.actions.create"));
4387
- }), (O, z) => {
4388
- const re = V("KButton"), fe = V("KBadge"), we = V("KTruncate"), Ke = V("KDropdownItem"), Nt = V("KClipboardProvider"), dr = V("KPrompt");
4403
+ }), (x, H) => {
4404
+ const ee = P("KButton"), ue = P("KBadge"), we = P("KTruncate"), Ne = P("KDropdownItem"), Ft = P("KClipboardProvider"), dr = P("KPrompt");
4389
4405
  return m(), T("div", bl, [
4390
- E(g(Fs), {
4406
+ O(g(Ks), {
4391
4407
  "cache-identifier": e.cacheIdentifier,
4392
4408
  "disable-pagination": l.value,
4393
4409
  "disable-pagination-page-jump": "",
4394
4410
  "disable-sorting": c.value,
4395
4411
  "empty-state-options": rt.value,
4396
4412
  "enable-entity-actions": "",
4397
- "error-message": P.value,
4398
- fetcher: g(A),
4413
+ "error-message": N.value,
4414
+ fetcher: g(S),
4399
4415
  "fetcher-cache-key": s.value,
4400
4416
  "pagination-type": "offset",
4401
4417
  "preferences-storage-key": "kong-ui-entities-consumers-list",
4402
- query: I.value,
4418
+ query: A.value,
4403
4419
  "row-attributes": h,
4404
4420
  "table-headers": g(u),
4405
- onClearSearchInput: k,
4406
- "onClick:row": z[3] || (z[3] = (J) => C(J)),
4421
+ onClearSearchInput: q,
4422
+ "onClick:row": H[3] || (H[3] = (J) => k(J)),
4407
4423
  onEmptyStateCtaClicked: ir,
4408
- onSort: S
4424
+ onSort: v
4409
4425
  }, {
4410
4426
  "toolbar-filter": y(() => [
4411
- l.value ? G("", !0) : (m(), U(g(Qs), {
4427
+ l.value ? G("", !0) : (m(), D(g(Xs), {
4412
4428
  key: 0,
4413
- modelValue: I.value,
4414
- "onUpdate:modelValue": z[0] || (z[0] = (J) => I.value = J),
4415
- config: b.value
4429
+ modelValue: A.value,
4430
+ "onUpdate:modelValue": H[0] || (H[0] = (J) => A.value = J),
4431
+ config: C.value
4416
4432
  }, null, 8, ["modelValue", "config"]))
4417
4433
  ]),
4418
4434
  "toolbar-button": y(() => [
4419
- E(g(Re), {
4435
+ O(g(Re), {
4420
4436
  "auth-function": () => e.canCreate()
4421
4437
  }, {
4422
4438
  default: y(() => [
4423
- E(re, {
4439
+ O(ee, {
4424
4440
  appearance: "primary",
4425
4441
  "data-testid": "toolbar-add-consumer",
4426
4442
  icon: "plus",
4427
4443
  to: e.config.consumerGroupId ? void 0 : e.config.createRoute,
4428
- onClick: z[1] || (z[1] = () => e.config.consumerGroupId ? Tt() : void 0)
4444
+ onClick: H[1] || (H[1] = () => e.config.consumerGroupId ? Tt() : void 0)
4429
4445
  }, {
4430
4446
  default: y(() => [
4431
- W($(e.config.consumerGroupId ? g(a)("consumers.actions.add_consumer") : g(a)("consumers.list.toolbar_actions.new_consumer")), 1)
4447
+ W(M(e.config.consumerGroupId ? g(a)("consumers.actions.add_consumer") : g(a)("consumers.list.toolbar_actions.new_consumer")), 1)
4432
4448
  ]),
4433
4449
  _: 1
4434
4450
  }, 8, ["to"])
@@ -4437,21 +4453,21 @@ const xt = (e, n) => {
4437
4453
  }, 8, ["auth-function"])
4438
4454
  ]),
4439
4455
  username: y(({ rowValue: J }) => [
4440
- K("b", null, $(x(J)), 1)
4456
+ K("b", null, M(w(J)), 1)
4441
4457
  ]),
4442
4458
  custom_id: y(({ rowValue: J }) => [
4443
- W($(x(J)), 1)
4459
+ W(M(w(J)), 1)
4444
4460
  ]),
4445
4461
  tags: y(({ rowValue: J }) => [
4446
- J && J.length > 0 ? (m(), U(we, { key: 0 }, {
4462
+ J && J.length > 0 ? (m(), D(we, { key: 0 }, {
4447
4463
  default: y(() => [
4448
- (m(!0), T(pe, null, ce(J, (xe) => (m(), U(fe, {
4464
+ (m(!0), T(fe, null, de(J, (xe) => (m(), D(ue, {
4449
4465
  key: xe,
4450
- onClick: z[2] || (z[2] = Ge(() => {
4466
+ onClick: H[2] || (H[2] = Ge(() => {
4451
4467
  }, ["stop"]))
4452
4468
  }, {
4453
4469
  default: y(() => [
4454
- W($(xe), 1)
4470
+ W(M(xe), 1)
4455
4471
  ]),
4456
4472
  _: 2
4457
4473
  }, 1024))), 128))
@@ -4460,69 +4476,69 @@ const xt = (e, n) => {
4460
4476
  }, 1024)) : (m(), T("span", Cl, "-"))
4461
4477
  ]),
4462
4478
  actions: y(({ row: J }) => [
4463
- E(Nt, null, {
4479
+ O(Ft, null, {
4464
4480
  default: y(({ copyToClipboard: xe }) => [
4465
- E(Ke, {
4481
+ O(Ne, {
4466
4482
  "data-testid": "action-entity-copy-id",
4467
4483
  onClick: (pr) => R(J, xe)
4468
4484
  }, {
4469
4485
  default: y(() => [
4470
- W($(g(a)("consumers.actions.copy_id")), 1)
4486
+ W(M(g(a)("consumers.actions.copy_id")), 1)
4471
4487
  ]),
4472
4488
  _: 2
4473
4489
  }, 1032, ["onClick"])
4474
4490
  ]),
4475
4491
  _: 2
4476
4492
  }, 1024),
4477
- E(Nt, null, {
4493
+ O(Ft, null, {
4478
4494
  default: y(({ copyToClipboard: xe }) => [
4479
- E(Ke, {
4495
+ O(Ne, {
4480
4496
  "data-testid": "action-entity-copy-json",
4481
- onClick: (pr) => v(J, xe)
4497
+ onClick: (pr) => b(J, xe)
4482
4498
  }, {
4483
4499
  default: y(() => [
4484
- W($(g(a)("consumers.actions.copy_json")), 1)
4500
+ W(M(g(a)("consumers.actions.copy_json")), 1)
4485
4501
  ]),
4486
4502
  _: 2
4487
4503
  }, 1032, ["onClick"])
4488
4504
  ]),
4489
4505
  _: 2
4490
4506
  }, 1024),
4491
- E(g(Re), {
4507
+ O(g(Re), {
4492
4508
  "auth-function": () => e.canRetrieve(J)
4493
4509
  }, {
4494
4510
  default: y(() => [
4495
- E(Ke, {
4511
+ O(Ne, {
4496
4512
  "data-testid": "action-entity-view",
4497
4513
  "has-divider": "",
4498
- item: B(J.id)
4514
+ item: V(J.id)
4499
4515
  }, null, 8, ["item"])
4500
4516
  ]),
4501
4517
  _: 2
4502
4518
  }, 1032, ["auth-function"]),
4503
- E(g(Re), {
4519
+ O(g(Re), {
4504
4520
  "auth-function": () => e.canEdit(J)
4505
4521
  }, {
4506
4522
  default: y(() => [
4507
- E(Ke, {
4523
+ O(Ne, {
4508
4524
  "data-testid": "action-entity-edit",
4509
- item: q(J.id)
4525
+ item: B(J.id)
4510
4526
  }, null, 8, ["item"])
4511
4527
  ]),
4512
4528
  _: 2
4513
4529
  }, 1032, ["auth-function"]),
4514
- E(g(Re), {
4530
+ O(g(Re), {
4515
4531
  "auth-function": () => e.canDelete(J)
4516
4532
  }, {
4517
4533
  default: y(() => [
4518
- E(Ke, {
4534
+ O(Ne, {
4519
4535
  danger: "",
4520
4536
  "data-testid": "action-entity-delete",
4521
4537
  "has-divider": "",
4522
- onClick: () => e.config.consumerGroupId ? lr(J) : H(J)
4538
+ onClick: () => e.config.consumerGroupId ? lr(J) : z(J)
4523
4539
  }, {
4524
4540
  default: y(() => [
4525
- W($(e.config.consumerGroupId ? g(a)("consumers.actions.remove") : g(a)("consumers.actions.delete")), 1)
4541
+ W(M(e.config.consumerGroupId ? g(a)("consumers.actions.remove") : g(a)("consumers.actions.delete")), 1)
4526
4542
  ]),
4527
4543
  _: 2
4528
4544
  }, 1032, ["onClick"])
@@ -4532,56 +4548,56 @@ const xt = (e, n) => {
4532
4548
  ]),
4533
4549
  _: 1
4534
4550
  }, 8, ["cache-identifier", "disable-pagination", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers"]),
4535
- E(g(Ls), {
4551
+ O(g(Ls), {
4536
4552
  "action-pending": L.value,
4537
4553
  "data-testid": "delete-consumer-modal",
4538
4554
  description: g(a)("consumers.delete.description"),
4539
- "entity-name": _.value && (_.value.username || _.value.custom_id || _.value.id),
4555
+ "entity-name": I.value && (I.value.username || I.value.custom_id || I.value.id),
4540
4556
  "entity-type": g(pn).Consumer,
4541
- error: D.value,
4557
+ error: U.value,
4542
4558
  title: g(a)("consumers.delete.title"),
4543
- visible: F.value,
4544
- onCancel: X,
4559
+ visible: E.value,
4560
+ onCancel: Q,
4545
4561
  onProceed: le
4546
4562
  }, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"]),
4547
- e.config.consumerGroupId ? (m(), U(vl, {
4563
+ e.config.consumerGroupId ? (m(), D(vl, {
4548
4564
  key: 0,
4549
4565
  config: e.config,
4550
4566
  "data-testid": "add-consumer-modal",
4551
4567
  visible: tt.value,
4552
- "onAdd:partialSuccess": z[4] || (z[4] = (J) => jt(J, !0)),
4553
- "onAdd:success": z[5] || (z[5] = (J) => jt(J)),
4568
+ "onAdd:partialSuccess": H[4] || (H[4] = (J) => Mt(J, !0)),
4569
+ "onAdd:success": H[5] || (H[5] = (J) => Mt(J)),
4554
4570
  onCancel: $t
4555
4571
  }, null, 8, ["config", "visible"])) : G("", !0),
4556
- e.config.consumerGroupId && ye.value ? (m(), U(dr, {
4572
+ e.config.consumerGroupId && ye.value ? (m(), D(dr, {
4557
4573
  key: 1,
4558
4574
  "data-testid": "remove-consumer-modal",
4559
4575
  "is-visible": nt.value,
4560
4576
  title: g(a)("consumers.consumer_groups.remove.title"),
4561
4577
  type: "danger",
4562
- onCanceled: Mt,
4578
+ onCanceled: jt,
4563
4579
  onProceed: cr
4564
4580
  }, {
4565
4581
  "body-content": y(() => [
4566
- E(g(r), {
4582
+ O(g(r), {
4567
4583
  class: "message",
4568
4584
  keypath: e.config.consumerGroupName ? "consumers.consumer_groups.remove.confirmation" : "consumers.consumer_groups.remove.confirmationNoCG",
4569
4585
  tag: "p"
4570
4586
  }, be({
4571
4587
  consumer: y(() => [
4572
- K("strong", null, $(ye.value.username || ye.value.custom_id || ye.value.id), 1)
4588
+ K("strong", null, M(ye.value.username || ye.value.custom_id || ye.value.id), 1)
4573
4589
  ]),
4574
4590
  _: 2
4575
4591
  }, [
4576
4592
  e.config.consumerGroupName ? {
4577
4593
  name: "consumerGroup",
4578
4594
  fn: y(() => [
4579
- K("strong", null, $(e.config.consumerGroupName), 1)
4595
+ K("strong", null, M(e.config.consumerGroupName), 1)
4580
4596
  ]),
4581
4597
  key: "0"
4582
4598
  } : void 0
4583
4599
  ]), 1032, ["keypath"]),
4584
- K("p", null, $(g(a)("consumers.consumer_groups.remove.description")), 1)
4600
+ K("p", null, M(g(a)("consumers.consumer_groups.remove.description")), 1)
4585
4601
  ]),
4586
4602
  _: 1
4587
4603
  }, 8, ["is-visible", "title"])) : G("", !0)
@@ -4589,7 +4605,7 @@ const xt = (e, n) => {
4589
4605
  };
4590
4606
  }
4591
4607
  });
4592
- const ql = /* @__PURE__ */ xt(kl, [["__scopeId", "data-v-b084add6"]]), wl = { class: "kong-ui-entities-consumer-form" }, _l = { class: "fields-group-title" }, Il = { class: "fields-group-text" }, Al = /* @__PURE__ */ ee({
4608
+ const ql = /* @__PURE__ */ xt(kl, [["__scopeId", "data-v-17811e46"]]), wl = { class: "kong-ui-entities-consumer-form" }, _l = { class: "fields-group-title" }, Il = { class: "fields-group-text" }, Al = /* @__PURE__ */ te({
4593
4609
  __name: "ConsumerForm",
4594
4610
  props: {
4595
4611
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -4607,10 +4623,10 @@ const ql = /* @__PURE__ */ xt(kl, [["__scopeId", "data-v-b084add6"]]), wl = { cl
4607
4623
  },
4608
4624
  emits: ["update", "error", "loading"],
4609
4625
  setup(e, { emit: n }) {
4610
- var S;
4611
- const t = e, { i18nT: r, i18n: { t: a } } = Qe.useI18n(), o = gt(), { axiosInstance: i } = St({
4612
- headers: (S = t.config) == null ? void 0 : S.requestHeaders
4613
- }), { getMessageFromError: s } = ll(), l = Ft({
4626
+ var v;
4627
+ const t = e, { i18nT: r, i18n: { t: a } } = Xe.useI18n(), o = gt(), { axiosInstance: i } = St({
4628
+ headers: (v = t.config) == null ? void 0 : v.requestHeaders
4629
+ }), { getMessageFromError: s } = ll(), l = Kt({
4614
4630
  fields: {
4615
4631
  username: "",
4616
4632
  customId: "",
@@ -4618,79 +4634,79 @@ const ql = /* @__PURE__ */ xt(kl, [["__scopeId", "data-v-b084add6"]]), wl = { cl
4618
4634
  },
4619
4635
  readonly: !1,
4620
4636
  errorMessage: ""
4621
- }), c = Ft({
4637
+ }), c = Kt({
4622
4638
  username: "",
4623
4639
  customId: "",
4624
4640
  tags: ""
4625
- }), d = M(() => {
4626
- var x, P;
4627
- return (P = Se.form[(x = t.config) == null ? void 0 : x.app]) == null ? void 0 : P.edit;
4641
+ }), d = $(() => {
4642
+ var w, N;
4643
+ return (N = Se.form[(w = t.config) == null ? void 0 : w.app]) == null ? void 0 : N.edit;
4628
4644
  }), u = () => {
4629
- var x;
4630
- o.push(((x = t.config) == null ? void 0 : x.cancelRoute) || { name: "consumer-list" });
4631
- }, h = (x) => {
4632
- n("loading", x);
4633
- }, f = (x) => {
4634
- n("error", x);
4635
- }, I = (x) => {
4636
- var R, v, C;
4637
- l.fields.username = ((R = x == null ? void 0 : x.item) == null ? void 0 : R.username) || (x == null ? void 0 : x.username) || "", l.fields.customId = ((v = x == null ? void 0 : x.item) == null ? void 0 : v.custom_id) || (x == null ? void 0 : x.custom_id) || "";
4638
- const P = ((C = x == null ? void 0 : x.item) == null ? void 0 : C.tags) || (x == null ? void 0 : x.tags) || [];
4639
- l.fields.tags = (P == null ? void 0 : P.join(", ")) || "", Object.assign(c, l.fields);
4640
- }, b = M(() => t.consumerId ? ut.Edit : ut.Create), p = (x) => {
4641
- var R, v, C, B, q, _;
4642
- let P = `${(R = t.config) == null ? void 0 : R.apiBaseUrl}${Se.form[(v = t.config) == null ? void 0 : v.app][x]}`;
4643
- return ((C = t.config) == null ? void 0 : C.app) === "konnect" ? P = P.replace(/{controlPlaneId}/gi, ((B = t.config) == null ? void 0 : B.controlPlaneId) || "") : ((q = t.config) == null ? void 0 : q.app) === "kongManager" && (P = P.replace(/\/{workspace}/gi, (_ = t.config) != null && _.workspace ? `/${t.config.workspace}` : "")), P = P.replace(/{id}/gi, t.consumerId), P;
4644
- }, A = M(() => !!l.fields.username || !!l.fields.customId), w = M(() => JSON.stringify(l.fields) !== JSON.stringify(c)), k = async () => {
4645
- var x, P, R;
4645
+ var w;
4646
+ o.push(((w = t.config) == null ? void 0 : w.cancelRoute) || { name: "consumer-list" });
4647
+ }, h = (w) => {
4648
+ n("loading", w);
4649
+ }, f = (w) => {
4650
+ n("error", w);
4651
+ }, A = (w) => {
4652
+ var R, b, k;
4653
+ l.fields.username = ((R = w == null ? void 0 : w.item) == null ? void 0 : R.username) || (w == null ? void 0 : w.username) || "", l.fields.customId = ((b = w == null ? void 0 : w.item) == null ? void 0 : b.custom_id) || (w == null ? void 0 : w.custom_id) || "";
4654
+ const N = ((k = w == null ? void 0 : w.item) == null ? void 0 : k.tags) || (w == null ? void 0 : w.tags) || [];
4655
+ l.fields.tags = (N == null ? void 0 : N.join(", ")) || "", Object.assign(c, l.fields);
4656
+ }, C = $(() => t.consumerId ? ut.Edit : ut.Create), p = (w) => {
4657
+ var R, b, k, V, B, I;
4658
+ let N = `${(R = t.config) == null ? void 0 : R.apiBaseUrl}${Se.form[(b = t.config) == null ? void 0 : b.app][w]}`;
4659
+ return ((k = t.config) == null ? void 0 : k.app) === "konnect" ? N = N.replace(/{controlPlaneId}/gi, ((V = t.config) == null ? void 0 : V.controlPlaneId) || "") : ((B = t.config) == null ? void 0 : B.app) === "kongManager" && (N = N.replace(/\/{workspace}/gi, (I = t.config) != null && I.workspace ? `/${t.config.workspace}` : "")), N = N.replace(/{id}/gi, t.consumerId), N;
4660
+ }, S = $(() => !!l.fields.username || !!l.fields.customId), _ = $(() => JSON.stringify(l.fields) !== JSON.stringify(c)), q = async () => {
4661
+ var w, N, R;
4646
4662
  try {
4647
4663
  l.readonly = !0;
4648
- const v = {
4664
+ const b = {
4649
4665
  username: l.fields.username || null,
4650
4666
  custom_id: l.fields.customId || null,
4651
- tags: (P = (x = l.fields.tags.split(",")) == null ? void 0 : x.map((B) => String(B || "").trim())) == null ? void 0 : P.filter((B) => B !== "")
4667
+ tags: (N = (w = l.fields.tags.split(",")) == null ? void 0 : w.map((V) => String(V || "").trim())) == null ? void 0 : N.filter((V) => V !== "")
4652
4668
  };
4653
- let C;
4654
- await i.post(p("validate"), v), b.value === "create" ? C = await i.post(p("create"), v) : b.value === "edit" && (C = ((R = t.config) == null ? void 0 : R.app) === "konnect" ? await i.put(p("edit"), v) : await i.patch(p("edit"), v)), I(C == null ? void 0 : C.data), n("update", C == null ? void 0 : C.data);
4655
- } catch (v) {
4656
- l.errorMessage = s(v), n("error", v);
4669
+ let k;
4670
+ await i.post(p("validate"), b), C.value === "create" ? k = await i.post(p("create"), b) : C.value === "edit" && (k = ((R = t.config) == null ? void 0 : R.app) === "konnect" ? await i.put(p("edit"), b) : await i.patch(p("edit"), b)), A(k == null ? void 0 : k.data), n("update", k == null ? void 0 : k.data);
4671
+ } catch (b) {
4672
+ l.errorMessage = s(b), n("error", b);
4657
4673
  } finally {
4658
4674
  l.readonly = !1;
4659
4675
  }
4660
4676
  };
4661
- return (x, P) => {
4662
- const R = V("KInput"), v = V("KCard");
4677
+ return (w, N) => {
4678
+ const R = P("KInput"), b = P("KCard");
4663
4679
  return m(), T("div", wl, [
4664
- E(g(xs), {
4665
- "can-submit": A.value && w.value,
4680
+ O(g(xs), {
4681
+ "can-submit": S.value && _.value,
4666
4682
  config: e.config,
4667
4683
  "edit-id": e.consumerId,
4668
4684
  "error-message": l.errorMessage,
4669
4685
  "fetch-url": d.value,
4670
4686
  "is-readonly": l.readonly,
4671
4687
  onCancel: u,
4672
- "onFetch:error": P[3] || (P[3] = (C) => f(C)),
4673
- "onFetch:success": I,
4674
- onLoading: P[4] || (P[4] = (C) => h(C)),
4675
- onSubmit: k
4688
+ "onFetch:error": N[3] || (N[3] = (k) => f(k)),
4689
+ "onFetch:success": A,
4690
+ onLoading: N[4] || (N[4] = (k) => h(k)),
4691
+ onSubmit: q
4676
4692
  }, {
4677
4693
  default: y(() => [
4678
4694
  K("div", null, [
4679
- E(g(il), {
4695
+ O(g(il), {
4680
4696
  description: g(a)("consumers.form.info.description"),
4681
4697
  "has-divider": "",
4682
4698
  title: g(a)("consumers.form.info.title")
4683
4699
  }, {
4684
4700
  default: y(() => [
4685
4701
  K("div", null, [
4686
- K("h5", _l, $(g(a)("consumers.form.consumer_identification.title")) + "* ", 1),
4687
- K("p", Il, $(g(a)("consumers.form.consumer_identification.description")), 1)
4702
+ K("h5", _l, M(g(a)("consumers.form.consumer_identification.title")) + "* ", 1),
4703
+ K("p", Il, M(g(a)("consumers.form.consumer_identification.description")), 1)
4688
4704
  ]),
4689
- E(v, null, {
4705
+ O(b, null, {
4690
4706
  body: y(() => [
4691
- E(R, {
4707
+ O(R, {
4692
4708
  modelValue: l.fields.username,
4693
- "onUpdate:modelValue": P[0] || (P[0] = (C) => l.fields.username = C),
4709
+ "onUpdate:modelValue": N[0] || (N[0] = (k) => l.fields.username = k),
4694
4710
  modelModifiers: { trim: !0 },
4695
4711
  autocomplete: "off",
4696
4712
  class: "username-field",
@@ -4704,21 +4720,21 @@ const ql = /* @__PURE__ */ xt(kl, [["__scopeId", "data-v-b084add6"]]), wl = { cl
4704
4720
  type: "text"
4705
4721
  }, {
4706
4722
  "label-tooltip": y(() => [
4707
- E(g(r), {
4723
+ O(g(r), {
4708
4724
  keypath: "consumers.fields.username.tooltip",
4709
4725
  scope: "global"
4710
4726
  }, {
4711
4727
  custom_id: y(() => [
4712
- K("code", null, $(g(a)("consumers.fields.username.custom_id")), 1)
4728
+ K("code", null, M(g(a)("consumers.fields.username.custom_id")), 1)
4713
4729
  ]),
4714
4730
  _: 1
4715
4731
  })
4716
4732
  ]),
4717
4733
  _: 1
4718
4734
  }, 8, ["modelValue", "label", "placeholder", "readonly"]),
4719
- E(R, {
4735
+ O(R, {
4720
4736
  modelValue: l.fields.customId,
4721
- "onUpdate:modelValue": P[1] || (P[1] = (C) => l.fields.customId = C),
4737
+ "onUpdate:modelValue": N[1] || (N[1] = (k) => l.fields.customId = k),
4722
4738
  modelModifiers: { trim: !0 },
4723
4739
  autocomplete: "off",
4724
4740
  "data-testid": "consumer-form-custom-id",
@@ -4731,12 +4747,12 @@ const ql = /* @__PURE__ */ xt(kl, [["__scopeId", "data-v-b084add6"]]), wl = { cl
4731
4747
  type: "text"
4732
4748
  }, {
4733
4749
  "label-tooltip": y(() => [
4734
- E(g(r), {
4750
+ O(g(r), {
4735
4751
  keypath: "consumers.fields.custom_id.tooltip",
4736
4752
  scope: "global"
4737
4753
  }, {
4738
4754
  username: y(() => [
4739
- K("code", null, $(g(a)("consumers.fields.custom_id.username")), 1)
4755
+ K("code", null, M(g(a)("consumers.fields.custom_id.username")), 1)
4740
4756
  ]),
4741
4757
  _: 1
4742
4758
  })
@@ -4746,9 +4762,9 @@ const ql = /* @__PURE__ */ xt(kl, [["__scopeId", "data-v-b084add6"]]), wl = { cl
4746
4762
  ]),
4747
4763
  _: 1
4748
4764
  }),
4749
- E(R, {
4765
+ O(R, {
4750
4766
  modelValue: l.fields.tags,
4751
- "onUpdate:modelValue": P[2] || (P[2] = (C) => l.fields.tags = C),
4767
+ "onUpdate:modelValue": N[2] || (N[2] = (k) => l.fields.tags = k),
4752
4768
  modelModifiers: { trim: !0 },
4753
4769
  autocomplete: "off",
4754
4770
  "data-testid": "consumer-form-tags",
@@ -4773,7 +4789,7 @@ const ql = /* @__PURE__ */ xt(kl, [["__scopeId", "data-v-b084add6"]]), wl = { cl
4773
4789
  };
4774
4790
  }
4775
4791
  });
4776
- const Ll = /* @__PURE__ */ xt(Al, [["__scopeId", "data-v-335659fc"]]), Sl = { class: "kong-ui-consumer-entity-config-card" }, Pl = /* @__PURE__ */ ee({
4792
+ const Ll = /* @__PURE__ */ xt(Al, [["__scopeId", "data-v-335659fc"]]), Sl = { class: "kong-ui-consumer-entity-config-card" }, Pl = /* @__PURE__ */ te({
4777
4793
  __name: "ConsumerConfigCard",
4778
4794
  props: {
4779
4795
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -4800,15 +4816,15 @@ const Ll = /* @__PURE__ */ xt(Al, [["__scopeId", "data-v-335659fc"]]), Sl = { cl
4800
4816
  },
4801
4817
  emits: ["loading", "fetch:error", "fetch:success", "copy:success"],
4802
4818
  setup(e) {
4803
- const n = e, { i18n: { t }, i18nT: r } = Qe.useI18n(), a = M(() => Se.form[n.config.app].edit), o = N({
4819
+ const n = e, { i18n: { t }, i18nT: r } = Xe.useI18n(), a = $(() => Se.form[n.config.app].edit), o = F({
4804
4820
  id: {},
4805
4821
  username: {
4806
- section: ue.Basic,
4822
+ section: ce.Basic,
4807
4823
  tooltip: t("consumers.fields.username.tooltip"),
4808
4824
  order: 1
4809
4825
  },
4810
4826
  custom_id: {
4811
- section: ue.Basic,
4827
+ section: ce.Basic,
4812
4828
  tooltip: t("consumers.fields.custom_id.tooltip"),
4813
4829
  label: t("consumers.fields.custom_id.label"),
4814
4830
  order: 2
@@ -4826,7 +4842,7 @@ const Ll = /* @__PURE__ */ xt(Al, [["__scopeId", "data-v-335659fc"]]), Sl = { cl
4826
4842
  }
4827
4843
  });
4828
4844
  return (i, s) => (m(), T("div", Sl, [
4829
- E(g(_s), {
4845
+ O(g(_s), {
4830
4846
  config: e.config,
4831
4847
  "config-card-doc": e.configCardDoc,
4832
4848
  "config-schema": o.value,
@@ -4838,23 +4854,23 @@ const Ll = /* @__PURE__ */ xt(Al, [["__scopeId", "data-v-335659fc"]]), Sl = { cl
4838
4854
  onLoading: s[3] || (s[3] = (l) => i.$emit("loading", l))
4839
4855
  }, {
4840
4856
  "username-label-tooltip": y(() => [
4841
- E(g(r), {
4857
+ O(g(r), {
4842
4858
  keypath: "consumers.fields.username.tooltip",
4843
4859
  scope: "global"
4844
4860
  }, {
4845
4861
  custom_id: y(() => [
4846
- K("code", null, $(g(t)("consumers.fields.username.custom_id")), 1)
4862
+ K("code", null, M(g(t)("consumers.fields.username.custom_id")), 1)
4847
4863
  ]),
4848
4864
  _: 1
4849
4865
  })
4850
4866
  ]),
4851
4867
  "custom_id-label-tooltip": y(() => [
4852
- E(g(r), {
4868
+ O(g(r), {
4853
4869
  keypath: "consumers.fields.custom_id.tooltip",
4854
4870
  scope: "global"
4855
4871
  }, {
4856
4872
  username: y(() => [
4857
- K("code", null, $(g(t)("consumers.fields.custom_id.username")), 1)
4873
+ K("code", null, M(g(t)("consumers.fields.custom_id.username")), 1)
4858
4874
  ]),
4859
4875
  _: 1
4860
4876
  })