@kong-ui-public/entities-shared 2.10.5 → 2.10.6-pr.1243.039753f1.0

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 { inject as In, ref as R, unref as I, computed as k, watch as Ae, defineComponent as H, openBlock as p, createBlock as K, resolveDynamicComponent as ge, normalizeClass as ue, withCtx as b, createElementBlock as A, createElementVNode as L, toDisplayString as O, createCommentVNode as D, Fragment as le, renderList as ie, resolveComponent as B, createVNode as N, createTextVNode as Y, useCssVars as Tt, useSlots as Ge, renderSlot as V, createSlots as _e, normalizeProps as En, guardReactiveProps as Tn, mergeProps as Fn, normalizeStyle as Fe, pushScopeId as Oe, popScopeId as $e, onBeforeMount as Ft, withModifiers as He, onMounted as On, onUnmounted as $n, withDirectives as pe, vShow as he, withKeys as Ln, Teleport as Nn } from "vue";
1
+ import { inject as In, ref as R, unref as I, computed as k, watch as Ae, defineComponent as H, openBlock as p, createBlock as K, resolveDynamicComponent as ge, normalizeClass as ue, withCtx as x, createElementBlock as A, createElementVNode as L, toDisplayString as O, createCommentVNode as D, Fragment as le, renderList as ie, resolveComponent as B, createVNode as N, createTextVNode as Y, useCssVars as Tt, useSlots as Ge, renderSlot as V, createSlots as _e, normalizeProps as En, guardReactiveProps as Tn, mergeProps as Fn, normalizeStyle as Fe, pushScopeId as Oe, popScopeId as $e, onBeforeMount as Ft, withModifiers as He, onMounted as On, onUnmounted as $n, withDirectives as pe, vShow as he, withKeys as Ln, Teleport as Nn } from "vue";
2
2
  import ot from "axios";
3
3
  import { createI18n as Bn, i18nTComponent as Rn } from "@kong-ui-public/i18n";
4
4
  import { BadgeMethodAppearances as Kn } from "@kong/kongponents";
@@ -201,8 +201,8 @@ function Ot() {
201
201
  return !1;
202
202
  const l = /* @__PURE__ */ new Set([...a, ...o]);
203
203
  for (const s of l) {
204
- const c = a.filter((u) => u === s).length, d = o.filter((u) => u === s).length;
205
- if (c !== d)
204
+ const u = a.filter((c) => c === s).length, d = o.filter((c) => c === s).length;
205
+ if (u !== d)
206
206
  return !1;
207
207
  }
208
208
  return !0;
@@ -233,8 +233,8 @@ function Ot() {
233
233
  }
234
234
  },
235
235
  sortAlpha: (a) => (o, l) => {
236
- let s = o[a] === void 0 || o[a] === null ? "" : o[a], c = l[a] === void 0 || l[a] === null ? "" : l[a];
237
- return Array.isArray(o[a]) && (s = o[a][0]), Array.isArray(l[a]) && (c = l[a][0]), s.localeCompare(c);
236
+ let s = o[a] === void 0 || o[a] === null ? "" : o[a], u = l[a] === void 0 || l[a] === null ? "" : l[a];
237
+ return Array.isArray(o[a]) && (s = o[a][0]), Array.isArray(l[a]) && (u = l[a][0]), s.localeCompare(u);
238
238
  },
239
239
  isValidUuid: (a) => a ? /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(a) : !1
240
240
  };
@@ -248,29 +248,29 @@ function tr(e, t, n, r = {
248
248
  headers: e.requestHeaders
249
249
  }), { i18n: { t: a } } = Qe(), { debounce: o } = qn(), l = o(async (h) => {
250
250
  await ee(h);
251
- }, 200), s = R(!1), c = R(""), d = R(""), u = R([]), m = R([]), f = R(void 0), x = I(t);
252
- let v = `${e.apiBaseUrl}${x}`;
251
+ }, 200), s = R(!1), u = R(""), d = R(""), c = R([]), g = R([]), f = R(void 0), b = I(t);
252
+ let v = `${e.apiBaseUrl}${b}`;
253
253
  e.app === "konnect" ? v = v.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (v = v.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
254
254
  const { isValidUuid: w } = Ot(), M = async () => {
255
255
  try {
256
256
  s.value = !0;
257
257
  const { data: h } = await i.get(`${v}?size=${n}`);
258
- h != null && h.next || (f.value = r.fetchedItemsKey in h ? h[r.fetchedItemsKey] : []), m.value = r.fetchedItemsKey in h ? h[r.fetchedItemsKey] : [], u.value = m.value;
258
+ h != null && h.next || (f.value = r.fetchedItemsKey in h ? h[r.fetchedItemsKey] : []), g.value = r.fetchedItemsKey in h ? h[r.fetchedItemsKey] : [], c.value = g.value;
259
259
  } catch {
260
- u.value = [], c.value = a("debouncedFilter.errors.fetch");
260
+ c.value = [], u.value = a("debouncedFilter.errors.fetch");
261
261
  } finally {
262
262
  s.value = !1;
263
263
  }
264
264
  }, E = R(""), ee = async (h) => {
265
- var y, g, $;
265
+ var y, m, $;
266
266
  if (E.value !== h)
267
267
  if (E.value = h || "", f.value === void 0)
268
268
  try {
269
- if (s.value = !0, c.value = "", d.value = "", e.app === "konnect") {
269
+ if (s.value = !0, u.value = "", d.value = "", e.app === "konnect") {
270
270
  let F = v + "";
271
271
  h && (F += `/${h}`);
272
272
  const { data: _ } = await i.get(`${F}?size=${n}`);
273
- r.fetchedItemsKey in _ ? u.value = _[r.fetchedItemsKey] : _ != null && _.id ? u.value = [_] : u.value = [];
273
+ r.fetchedItemsKey in _ ? c.value = _[r.fetchedItemsKey] : _ != null && _.id ? c.value = [_] : c.value = [];
274
274
  } else if (h) {
275
275
  const F = [];
276
276
  w(h) && r.searchKeys.includes("id") ? F.push((async () => {
@@ -283,21 +283,21 @@ function tr(e, t, n, r = {
283
283
  })
284
284
  );
285
285
  const _ = await Promise.all(F), j = /* @__PURE__ */ new Set();
286
- u.value = [], (y = _ == null ? void 0 : _.forEach) == null || y.call(_, (T) => {
286
+ c.value = [], (y = _ == null ? void 0 : _.forEach) == null || y.call(_, (T) => {
287
287
  var S;
288
288
  (S = T == null ? void 0 : T.forEach) == null || S.call(T, (U) => {
289
- j.has(U.id) || (j.add(U.id), u.value.push(U));
289
+ j.has(U.id) || (j.add(U.id), c.value.push(U));
290
290
  });
291
291
  });
292
292
  } else
293
- u.value = m.value;
293
+ c.value = g.value;
294
294
  } catch (F) {
295
- ((g = F == null ? void 0 : F.response) == null ? void 0 : g.status) === 404 ? d.value = a("debouncedFilter.errors.invalid") : (u.value = [], c.value = a("debouncedFilter.errors.fetch"));
295
+ ((m = F == null ? void 0 : F.response) == null ? void 0 : m.status) === 404 ? d.value = a("debouncedFilter.errors.invalid") : (c.value = [], u.value = a("debouncedFilter.errors.fetch"));
296
296
  } finally {
297
297
  s.value = !1;
298
298
  }
299
299
  else
300
- s.value = !0, d.value = "", h ? (u.value = ($ = f.value) == null ? void 0 : $.filter((F) => {
300
+ s.value = !0, d.value = "", h ? (c.value = ($ = f.value) == null ? void 0 : $.filter((F) => {
301
301
  var j;
302
302
  let _ = !1;
303
303
  for (const T of r.searchKeys) {
@@ -305,13 +305,13 @@ function tr(e, t, n, r = {
305
305
  S != null && S.includes(h.toLowerCase()) && (_ = !0);
306
306
  }
307
307
  return _;
308
- }), (!u.value || !u.value.length) && (d.value = a("debouncedFilter.errors.invalid"))) : u.value = f.value, s.value = !1;
308
+ }), (!c.value || !c.value.length) && (d.value = a("debouncedFilter.errors.invalid"))) : c.value = f.value, s.value = !1;
309
309
  };
310
310
  return {
311
311
  loading: s,
312
- error: c,
312
+ error: u,
313
313
  validationError: d,
314
- results: u,
314
+ results: c,
315
315
  allRecords: f,
316
316
  loadItems: M,
317
317
  debouncedQueryChange: l
@@ -371,58 +371,60 @@ function $t(e, t) {
371
371
  () => r.value.startsWith("/") ? new URL(`${window.location.origin}${r.value}`) : new URL(r.value)
372
372
  );
373
373
  return (o) => {
374
- const { page: l, pageSize: s, offset: c, sortColumnKey: d, sortColumnOrder: u, query: m } = o;
374
+ const { page: l, pageSize: s, offset: u, sortColumnKey: d, sortColumnOrder: c, query: g } = o;
375
375
  try {
376
376
  let f = new URL(a.value.href);
377
- return i.value && m ? (f.search = "", f = n.value.isExactMatch ? new URL(`${f.href}/${m}/`) : new URL(`${f.href}?filter[name][contains]=${m}`)) : (i.value || new URLSearchParams(m).forEach((x, v) => {
378
- f.searchParams.append(v, x);
379
- }), d && f.searchParams.append("sort_by", d), u === "desc" && f.searchParams.append("sort_desc", "1"), f.searchParams.append("size", String(s))), c && l !== 1 && f.searchParams.append("offset", String(c)), f.href;
377
+ return i.value && g ? (f.search = "", f = n.value.isExactMatch ? new URL(`${f.href}/${g}/`) : new URL(`${f.href}?filter[name][contains]=${g}`)) : (i.value || new URLSearchParams(g).forEach((b, v) => {
378
+ f.searchParams.append(v, b);
379
+ }), d && f.searchParams.append("sort_by", d), c === "desc" && f.searchParams.append("sort_desc", "1"), f.searchParams.append("size", String(s))), u && l !== 1 && f.searchParams.append("offset", String(u)), f.href;
380
380
  } catch (f) {
381
381
  return console.error("RouteList(fetcher)", f), r.value;
382
382
  }
383
383
  };
384
384
  }
385
385
  function ar(e, t, n = "data") {
386
+ var s;
386
387
  const r = I(t), { axiosInstance: i } = Ze({
387
- headers: e.requestHeaders
388
+ ...e.axiosRequestConfig,
389
+ headers: { ...(s = e.axiosRequestConfig) == null ? void 0 : s.headers, ...e.requestHeaders }
388
390
  }), a = $t(e, r), o = R({
389
391
  status: ve.Idle
390
392
  });
391
- return { fetcher: async (s) => {
393
+ return { fetcher: async (u) => {
392
394
  try {
393
395
  o.value = { status: ve.Loading };
394
- let c = a(s);
395
- c.includes("filter[name]") && (c = `${c}&page[size]=${s.pageSize}&page[number]=${s.page}`);
396
- const { data: d } = await i.get(c), u = n && n.replace(/[^\w-_]/gi, "");
397
- let m;
398
- d[u] && Array.isArray(d[u]) ? m = d[u] : Array.isArray(d) ? m = d : m = Object.keys(d).length ? [d] : [];
399
- const f = {
400
- data: m,
401
- total: m.length,
402
- ...d.offset ? {
396
+ let d = a(u);
397
+ d.includes("filter[name]") && (d = `${d}&page[size]=${u.pageSize}&page[number]=${u.page}`);
398
+ const { data: c } = await i.get(d), g = n && n.replace(/[^\w-_]/gi, "");
399
+ let f;
400
+ console.log({ data: c }), c[g] && Array.isArray(c[g]) ? f = c[g] : Array.isArray(c) ? f = c : f = Object.keys(c).length ? [c] : [];
401
+ const b = {
402
+ data: f,
403
+ total: f.length,
404
+ ...c.offset ? {
403
405
  pagination: {
404
- offset: d.offset
406
+ offset: c.offset
405
407
  }
406
408
  } : null
407
409
  };
408
410
  return o.value = {
409
411
  status: ve.Idle,
410
- response: f
411
- }, f;
412
- } catch (c) {
413
- const d = {
412
+ response: b
413
+ }, b;
414
+ } catch (d) {
415
+ const c = {
414
416
  data: [],
415
417
  total: 0
416
418
  };
417
- return s.query && c.response.status === 404 ? (o.value = {
419
+ return u.query && d.response.status === 404 ? (o.value = {
418
420
  status: ve.NoResults,
419
- response: d,
420
- error: c
421
- }, d) : (o.value = {
421
+ response: c,
422
+ error: d
423
+ }, c) : (o.value = {
422
424
  status: ve.Error,
423
- response: d,
424
- error: c
425
- }, d);
425
+ response: c,
426
+ error: d
427
+ }, c);
426
428
  }
427
429
  }, fetcherState: o };
428
430
  }
@@ -536,15 +538,15 @@ const z = {
536
538
  var s;
537
539
  return t.isArrayItem ? (s = a.value) != null && s.name ? r(a.value.name, "_") : n("baseConfigCard.general.entryTitle", { index: t.index }) : "";
538
540
  });
539
- return (s, c) => (p(), K(ge(e.isArrayItem ? "fieldset" : "div"), {
541
+ return (s, u) => (p(), K(ge(e.isArrayItem ? "fieldset" : "div"), {
540
542
  class: ue(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
541
543
  }, {
542
- default: b(() => [
544
+ default: x(() => [
543
545
  e.isArrayItem ? (p(), A("legend", hr, [
544
546
  L("b", null, O(l.value), 1)
545
547
  ])) : D("", !0),
546
- (p(!0), A(le, null, ie(Object.keys(o.value), (d, u) => (p(), K(Rt, {
547
- key: `${i.value}-property-${u}`,
548
+ (p(!0), A(le, null, ie(Object.keys(o.value), (d, c) => (p(), K(Rt, {
549
+ key: `${i.value}-property-${c}`,
548
550
  item: {
549
551
  key: d,
550
552
  label: I(r)(d),
@@ -579,7 +581,7 @@ const z = {
579
581
  class: "navigation-button",
580
582
  onClick: r[0] || (r[0] = (a) => n.$emit("navigation-click", e.item))
581
583
  }, {
582
- default: b(() => [
584
+ default: x(() => [
583
585
  Y(O(e.item.value || I(t)("baseConfigCard.commonFields.link")), 1)
584
586
  ]),
585
587
  _: 1
@@ -602,7 +604,7 @@ const z = {
602
604
  return p(), K(i, {
603
605
  appearance: e.status ? "success" : "neutral"
604
606
  }, {
605
- default: b(() => [
607
+ default: x(() => [
606
608
  Y(O(e.status ? I(t)("baseConfigCard.statusBadge.enabledLabel") : I(t)("baseConfigCard.statusBadge.disabledLabel")), 1)
607
609
  ]),
608
610
  _: 1
@@ -632,13 +634,13 @@ const z = {
632
634
  },
633
635
  emits: ["navigation-click"],
634
636
  setup(e, { emit: t }) {
635
- Tt((x) => ({
637
+ Tt((b) => ({
636
638
  "07753575": d.value ? "none" : `solid ${I(Ar)} ${I(xr)}`,
637
- "32d44ea8": c.value && l.value ? "block" : "flex",
638
- "5036b738": c.value && l.value ? "100%" : n.slim ? "50%" : "25%",
639
- "5038fd13": c.value && l.value ? "100%" : n.slim ? "50%" : "75%"
639
+ "32d44ea8": u.value && l.value ? "block" : "flex",
640
+ "5036b738": u.value && l.value ? "100%" : n.slim ? "50%" : "25%",
641
+ "5038fd13": u.value && l.value ? "100%" : n.slim ? "50%" : "75%"
640
642
  }));
641
- const n = e, r = t, i = Ge(), { i18n: { t: a, formatUnixTimeStamp: o } } = z.useI18n(), l = k(() => n.item.value !== void 0 && n.item.value !== null && n.item.value !== ""), s = k(() => !!(n.item.tooltip || i["label-tooltip"])), c = k(() => n.item.type === P.Json || n.item.type === P.JsonArray), d = k(() => n.item.type === P.JsonArray), u = k(() => {
643
+ const n = e, r = t, i = Ge(), { i18n: { t: a, formatUnixTimeStamp: o } } = z.useI18n(), l = k(() => n.item.value !== void 0 && n.item.value !== null && n.item.value !== ""), s = k(() => !!(n.item.tooltip || i["label-tooltip"])), u = k(() => n.item.type === P.Json || n.item.type === P.JsonArray), d = k(() => n.item.type === P.JsonArray), c = k(() => {
642
644
  switch (n.item.type) {
643
645
  case P.ID:
644
646
  return {
@@ -708,8 +710,8 @@ const z = {
708
710
  attrs: {
709
711
  "data-testid": `${n.item.key}-internal-link`,
710
712
  item: n.item,
711
- onNavigationClick: (x) => {
712
- r("navigation-click", x);
713
+ onNavigationClick: (b) => {
714
+ r("navigation-click", b);
713
715
  }
714
716
  }
715
717
  };
@@ -748,28 +750,28 @@ const z = {
748
750
  text: n.item.value
749
751
  };
750
752
  }
751
- }), m = R(), { isTruncated: f } = z.useTruncationDetector(m);
752
- return (x, v) => {
753
+ }), g = R(), { isTruncated: f } = z.useTruncationDetector(g);
754
+ return (b, v) => {
753
755
  const w = B("KLabel"), M = B("KBadge"), E = B("KCopy"), ee = B("KTooltip");
754
756
  return p(), A("div", Ir, [
755
757
  L("div", {
756
758
  class: "config-card-details-label",
757
759
  "data-testid": `${e.item.key}-label`
758
760
  }, [
759
- V(x.$slots, "label", { item: e.item }, () => [
761
+ V(b.$slots, "label", { item: e.item }, () => [
760
762
  N(w, { "tooltip-attributes": { maxWidth: "500px" } }, _e({
761
- default: b(() => [
763
+ default: x(() => [
762
764
  Y(O(e.item.label) + " ", 1)
763
765
  ]),
764
766
  _: 2
765
767
  }, [
766
768
  s.value ? {
767
769
  name: "tooltip",
768
- fn: b(() => [
770
+ fn: x(() => [
769
771
  L("div", {
770
772
  "data-testid": `${e.item.key}-label-tooltip`
771
773
  }, [
772
- V(x.$slots, "label-tooltip", {}, () => [
774
+ V(b.$slots, "label-tooltip", {}, () => [
773
775
  Y(O(e.item.tooltip), 1)
774
776
  ], !0)
775
777
  ], 8, Tr)
@@ -783,13 +785,13 @@ const z = {
783
785
  class: "config-card-details-value",
784
786
  "data-testid": `${e.item.key}-property-value`
785
787
  }, [
786
- V(x.$slots, e.item.key, {
788
+ V(b.$slots, e.item.key, {
787
789
  rowValue: e.item.value
788
790
  }, () => [
789
791
  l.value ? (p(), A("div", $r, [
790
- (p(), K(ge(u.value.tag), En(Tn(u.value.attrs)), {
791
- default: b(() => [
792
- u.value.additionalComponent === "KBadge" ? (p(), A("div", {
792
+ (p(), K(ge(c.value.tag), En(Tn(c.value.attrs)), {
793
+ default: x(() => [
794
+ c.value.additionalComponent === "KBadge" ? (p(), A("div", {
793
795
  key: 0,
794
796
  "data-testid": `${e.item.key}-badge-tags`
795
797
  }, [
@@ -800,23 +802,23 @@ const z = {
800
802
  tooltip: h,
801
803
  "truncation-tooltip": ""
802
804
  }, {
803
- default: b(() => [
805
+ default: x(() => [
804
806
  Y(O(h), 1)
805
807
  ]),
806
808
  _: 2
807
809
  }, 1032, ["data-testid", "tooltip"]))), 128))
808
810
  ], 8, Lr)) : D("", !0),
809
- u.value.additionalComponent === "KCopy" ? (p(), A("div", {
811
+ c.value.additionalComponent === "KCopy" ? (p(), A("div", {
810
812
  key: 1,
811
813
  class: "copy-uuid-array",
812
814
  "data-testid": `${e.item.key}-copy-uuid-array`
813
815
  }, [
814
- (p(!0), A(le, null, ie(e.item.value, (h, y) => (p(), K(E, Fn(u.value.childAttrs, {
816
+ (p(!0), A(le, null, ie(e.item.value, (h, y) => (p(), K(E, Fn(c.value.childAttrs, {
815
817
  key: `${e.item.key}-copy-uuid-${y}`,
816
818
  "data-testid": `${e.item.key}-copy-uuid-${y}`,
817
819
  text: h
818
820
  }), null, 16, ["data-testid", "text"]))), 128))
819
- ], 8, Nr)) : u.value.additionalComponent === "KMethodBadge" ? (p(), A("div", {
821
+ ], 8, Nr)) : c.value.additionalComponent === "KMethodBadge" ? (p(), A("div", {
820
822
  key: 2,
821
823
  class: "method-badge-array",
822
824
  "data-testid": `${e.item.key}-badge-methods`
@@ -827,13 +829,13 @@ const z = {
827
829
  class: "config-badge",
828
830
  "data-testid": `${e.item.key}-badge-method-${y}`
829
831
  }, {
830
- default: b(() => [
832
+ default: x(() => [
831
833
  Y(O(h), 1)
832
834
  ]),
833
835
  _: 2
834
836
  }, 1032, ["appearance", "data-testid"]))), 128))
835
837
  ], 8, Br)) : D("", !0),
836
- u.value.additionalComponent === "JsonCardItem" ? (p(), A("div", {
838
+ c.value.additionalComponent === "JsonCardItem" ? (p(), A("div", {
837
839
  key: 3,
838
840
  "data-testid": `${n.item.key}-json-array-content`
839
841
  }, [
@@ -847,12 +849,12 @@ const z = {
847
849
  key: 4,
848
850
  text: I(f) ? e.item.value : ""
849
851
  }, {
850
- default: b(() => [
852
+ default: x(() => [
851
853
  L("span", {
852
854
  ref_key: "textContent",
853
- ref: m,
855
+ ref: g,
854
856
  class: ue(["attrs-data-text", { truncated: e.truncated }])
855
- }, O(u.value.text), 3)
857
+ }, O(c.value.text), 3)
856
858
  ]),
857
859
  _: 1
858
860
  }, 8, ["text"]))
@@ -917,7 +919,7 @@ const z = {
917
919
  N(o, {
918
920
  appearance: t.requestMethod
919
921
  }, {
920
- default: b(() => [
922
+ default: x(() => [
921
923
  Y(O(t.requestMethod), 1)
922
924
  ]),
923
925
  _: 1
@@ -1009,26 +1011,26 @@ function Qr(e, t) {
1009
1011
  for (var n = /\r?\n|\r|\0/g, r = [0], i = [], a, o = -1; a = n.exec(e.buffer); )
1010
1012
  i.push(a.index), r.push(a.index + a[0].length), e.position <= a.index && o < 0 && (o = r.length - 2);
1011
1013
  o < 0 && (o = r.length - 1);
1012
- var l = "", s, c, d = Math.min(e.line + t.linesAfter, i.length).toString().length, u = t.maxLength - (t.indent + d + 3);
1014
+ var l = "", s, u, d = Math.min(e.line + t.linesAfter, i.length).toString().length, c = t.maxLength - (t.indent + d + 3);
1013
1015
  for (s = 1; s <= t.linesBefore && !(o - s < 0); s++)
1014
- c = Ue(
1016
+ u = Ue(
1015
1017
  e.buffer,
1016
1018
  r[o - s],
1017
1019
  i[o - s],
1018
1020
  e.position - (r[o] - r[o - s]),
1019
- u
1020
- ), l = G.repeat(" ", t.indent) + qe((e.line - s + 1).toString(), d) + " | " + c.str + `
1021
+ c
1022
+ ), l = G.repeat(" ", t.indent) + qe((e.line - s + 1).toString(), d) + " | " + u.str + `
1021
1023
  ` + l;
1022
- for (c = Ue(e.buffer, r[o], i[o], e.position, u), l += G.repeat(" ", t.indent) + qe((e.line + 1).toString(), d) + " | " + c.str + `
1023
- `, l += G.repeat("-", t.indent + d + 3 + c.pos) + `^
1024
+ for (u = Ue(e.buffer, r[o], i[o], e.position, c), l += G.repeat(" ", t.indent) + qe((e.line + 1).toString(), d) + " | " + u.str + `
1025
+ `, l += G.repeat("-", t.indent + d + 3 + u.pos) + `^
1024
1026
  `, s = 1; s <= t.linesAfter && !(o + s >= i.length); s++)
1025
- c = Ue(
1027
+ u = Ue(
1026
1028
  e.buffer,
1027
1029
  r[o + s],
1028
1030
  i[o + s],
1029
1031
  e.position - (r[o] - r[o + s]),
1030
- u
1031
- ), l += G.repeat(" ", t.indent) + qe((e.line + s + 1).toString(), d) + " | " + c.str + `
1032
+ c
1033
+ ), l += G.repeat(" ", t.indent) + qe((e.line + s + 1).toString(), d) + " | " + u.str + `
1032
1034
  `;
1033
1035
  return l.replace(/\n$/, "");
1034
1036
  }
@@ -1385,7 +1387,7 @@ function ki(e) {
1385
1387
  return e === null ? !1 : Zt.exec(e) !== null || Qt.exec(e) !== null;
1386
1388
  }
1387
1389
  function Ai(e) {
1388
- var t, n, r, i, a, o, l, s = 0, c = null, d, u, m;
1390
+ var t, n, r, i, a, o, l, s = 0, u = null, d, c, g;
1389
1391
  if (t = Zt.exec(e), t === null && (t = Qt.exec(e)), t === null)
1390
1392
  throw new Error("Date resolve error");
1391
1393
  if (n = +t[1], r = +t[2] - 1, i = +t[3], !t[4])
@@ -1395,7 +1397,7 @@ function Ai(e) {
1395
1397
  s += "0";
1396
1398
  s = +s;
1397
1399
  }
1398
- return t[9] && (d = +t[10], u = +(t[11] || 0), c = (d * 60 + u) * 6e4, t[9] === "-" && (c = -c)), m = new Date(Date.UTC(n, r, i, a, o, l, s)), c && m.setTime(m.getTime() - c), m;
1400
+ return t[9] && (d = +t[10], c = +(t[11] || 0), u = (d * 60 + c) * 6e4, t[9] === "-" && (u = -u)), g = new Date(Date.UTC(n, r, i, a, o, l, s)), u && g.setTime(g.getTime() - u), g;
1399
1401
  }
1400
1402
  function wi(e) {
1401
1403
  return e.toISOString();
@@ -1622,14 +1624,14 @@ function vt(e, t, n, r) {
1622
1624
  a = i[o], de.call(t, a) || (t[a] = n[a], r[a] = !0);
1623
1625
  }
1624
1626
  function Ce(e, t, n, r, i, a, o, l, s) {
1625
- var c, d;
1627
+ var u, d;
1626
1628
  if (Array.isArray(i))
1627
- for (i = Array.prototype.slice.call(i), c = 0, d = i.length; c < d; c += 1)
1628
- Array.isArray(i[c]) && C(e, "nested arrays are not supported inside keys"), typeof i == "object" && mt(i[c]) === "[object Object]" && (i[c] = "[object Object]");
1629
+ for (i = Array.prototype.slice.call(i), u = 0, d = i.length; u < d; u += 1)
1630
+ Array.isArray(i[u]) && C(e, "nested arrays are not supported inside keys"), typeof i == "object" && mt(i[u]) === "[object Object]" && (i[u] = "[object Object]");
1629
1631
  if (typeof i == "object" && mt(i) === "[object Object]" && (i = "[object Object]"), i = String(i), t === null && (t = {}), r === "tag:yaml.org,2002:merge")
1630
1632
  if (Array.isArray(a))
1631
- for (c = 0, d = a.length; c < d; c += 1)
1632
- vt(e, t, a[c], n);
1633
+ for (u = 0, d = a.length; u < d; u += 1)
1634
+ vt(e, t, a[u], n);
1633
1635
  else
1634
1636
  vt(e, t, a, n);
1635
1637
  else
@@ -1670,7 +1672,7 @@ function nt(e, t) {
1670
1672
  `, t - 1));
1671
1673
  }
1672
1674
  function Gi(e, t, n) {
1673
- var r, i, a, o, l, s, c, d, u = e.kind, m = e.result, f;
1675
+ var r, i, a, o, l, s, u, d, c = e.kind, g = e.result, f;
1674
1676
  if (f = e.input.charCodeAt(e.position), te(f) || xe(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) && (i = e.input.charCodeAt(e.position + 1), te(i) || n && xe(i)))
1675
1677
  return !1;
1676
1678
  for (e.kind = "scalar", e.result = "", a = o = e.position, l = !1; f !== 0; ) {
@@ -1684,17 +1686,17 @@ function Gi(e, t, n) {
1684
1686
  if (e.position === e.lineStart && De(e) || n && xe(f))
1685
1687
  break;
1686
1688
  if (ae(f))
1687
- if (s = e.line, c = e.lineStart, d = e.lineIndent, W(e, !1, -1), e.lineIndent >= t) {
1689
+ if (s = e.line, u = e.lineStart, d = e.lineIndent, W(e, !1, -1), e.lineIndent >= t) {
1688
1690
  l = !0, f = e.input.charCodeAt(e.position);
1689
1691
  continue;
1690
1692
  } else {
1691
- e.position = o, e.line = s, e.lineStart = c, e.lineIndent = d;
1693
+ e.position = o, e.line = s, e.lineStart = u, e.lineIndent = d;
1692
1694
  break;
1693
1695
  }
1694
1696
  }
1695
1697
  l && (ce(e, a, o, !1), nt(e, e.line - s), a = o = e.position, l = !1), me(f) || (o = e.position + 1), f = e.input.charCodeAt(++e.position);
1696
1698
  }
1697
- return ce(e, a, o, !1), e.result ? !0 : (e.kind = u, e.result = m, !1);
1699
+ return ce(e, a, o, !1), e.result ? !0 : (e.kind = c, e.result = g, !1);
1698
1700
  }
1699
1701
  function Zi(e, t) {
1700
1702
  var n, r, i;
@@ -1735,7 +1737,7 @@ function Qi(e, t) {
1735
1737
  C(e, "unexpected end of the stream within a double quoted scalar");
1736
1738
  }
1737
1739
  function Xi(e, t) {
1738
- var n = !0, r, i, a, o = e.tag, l, s = e.anchor, c, d, u, m, f, x = /* @__PURE__ */ Object.create(null), v, w, M, E;
1740
+ var n = !0, r, i, a, o = e.tag, l, s = e.anchor, u, d, c, g, f, b = /* @__PURE__ */ Object.create(null), v, w, M, E;
1739
1741
  if (E = e.input.charCodeAt(e.position), E === 91)
1740
1742
  d = 93, f = !1, l = [];
1741
1743
  else if (E === 123)
@@ -1745,38 +1747,38 @@ function Xi(e, t) {
1745
1747
  for (e.anchor !== null && (e.anchorMap[e.anchor] = l), E = e.input.charCodeAt(++e.position); E !== 0; ) {
1746
1748
  if (W(e, !0, t), E = e.input.charCodeAt(e.position), E === d)
1747
1749
  return e.position++, e.tag = o, e.anchor = s, e.kind = f ? "mapping" : "sequence", e.result = l, !0;
1748
- n ? E === 44 && C(e, "expected the node content, but found ','") : C(e, "missed comma between flow collection entries"), w = v = M = null, u = m = !1, E === 63 && (c = e.input.charCodeAt(e.position + 1), te(c) && (u = m = !0, e.position++, W(e, !0, t))), r = e.line, i = e.lineStart, a = e.position, ke(e, t, Ne, !1, !0), w = e.tag, v = e.result, W(e, !0, t), E = e.input.charCodeAt(e.position), (m || e.line === r) && E === 58 && (u = !0, E = e.input.charCodeAt(++e.position), W(e, !0, t), ke(e, t, Ne, !1, !0), M = e.result), f ? Ce(e, l, x, w, v, M, r, i, a) : u ? l.push(Ce(e, null, x, w, v, M, r, i, a)) : l.push(v), W(e, !0, t), E = e.input.charCodeAt(e.position), E === 44 ? (n = !0, E = e.input.charCodeAt(++e.position)) : n = !1;
1750
+ n ? E === 44 && C(e, "expected the node content, but found ','") : C(e, "missed comma between flow collection entries"), w = v = M = null, c = g = !1, E === 63 && (u = e.input.charCodeAt(e.position + 1), te(u) && (c = g = !0, e.position++, W(e, !0, t))), r = e.line, i = e.lineStart, a = e.position, ke(e, t, Ne, !1, !0), w = e.tag, v = e.result, W(e, !0, t), E = e.input.charCodeAt(e.position), (g || e.line === r) && E === 58 && (c = !0, E = e.input.charCodeAt(++e.position), W(e, !0, t), ke(e, t, Ne, !1, !0), M = e.result), f ? Ce(e, l, b, w, v, M, r, i, a) : c ? l.push(Ce(e, null, b, w, v, M, r, i, a)) : l.push(v), W(e, !0, t), E = e.input.charCodeAt(e.position), E === 44 ? (n = !0, E = e.input.charCodeAt(++e.position)) : n = !1;
1749
1751
  }
1750
1752
  C(e, "unexpected end of the stream within a flow collection");
1751
1753
  }
1752
1754
  function ea(e, t) {
1753
- var n, r, i = Pe, a = !1, o = !1, l = t, s = 0, c = !1, d, u;
1754
- if (u = e.input.charCodeAt(e.position), u === 124)
1755
+ var n, r, i = Pe, a = !1, o = !1, l = t, s = 0, u = !1, d, c;
1756
+ if (c = e.input.charCodeAt(e.position), c === 124)
1755
1757
  r = !1;
1756
- else if (u === 62)
1758
+ else if (c === 62)
1757
1759
  r = !0;
1758
1760
  else
1759
1761
  return !1;
1760
- for (e.kind = "scalar", e.result = ""; u !== 0; )
1761
- if (u = e.input.charCodeAt(++e.position), u === 43 || u === 45)
1762
- Pe === i ? i = u === 43 ? ht : Ui : C(e, "repeat of a chomping mode identifier");
1763
- else if ((d = zi(u)) >= 0)
1762
+ for (e.kind = "scalar", e.result = ""; c !== 0; )
1763
+ if (c = e.input.charCodeAt(++e.position), c === 43 || c === 45)
1764
+ Pe === i ? i = c === 43 ? ht : Ui : C(e, "repeat of a chomping mode identifier");
1765
+ else if ((d = zi(c)) >= 0)
1764
1766
  d === 0 ? C(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? C(e, "repeat of an indentation width identifier") : (l = t + d - 1, o = !0);
1765
1767
  else
1766
1768
  break;
1767
- if (me(u)) {
1769
+ if (me(c)) {
1768
1770
  do
1769
- u = e.input.charCodeAt(++e.position);
1770
- while (me(u));
1771
- if (u === 35)
1771
+ c = e.input.charCodeAt(++e.position);
1772
+ while (me(c));
1773
+ if (c === 35)
1772
1774
  do
1773
- u = e.input.charCodeAt(++e.position);
1774
- while (!ae(u) && u !== 0);
1775
+ c = e.input.charCodeAt(++e.position);
1776
+ while (!ae(c) && c !== 0);
1775
1777
  }
1776
- for (; u !== 0; ) {
1777
- for (tt(e), e.lineIndent = 0, u = e.input.charCodeAt(e.position); (!o || e.lineIndent < l) && u === 32; )
1778
- e.lineIndent++, u = e.input.charCodeAt(++e.position);
1779
- if (!o && e.lineIndent > l && (l = e.lineIndent), ae(u)) {
1778
+ for (; c !== 0; ) {
1779
+ for (tt(e), e.lineIndent = 0, c = e.input.charCodeAt(e.position); (!o || e.lineIndent < l) && c === 32; )
1780
+ e.lineIndent++, c = e.input.charCodeAt(++e.position);
1781
+ if (!o && e.lineIndent > l && (l = e.lineIndent), ae(c)) {
1780
1782
  s++;
1781
1783
  continue;
1782
1784
  }
@@ -1786,12 +1788,12 @@ function ea(e, t) {
1786
1788
  `);
1787
1789
  break;
1788
1790
  }
1789
- for (r ? me(u) ? (c = !0, e.result += G.repeat(`
1790
- `, a ? 1 + s : s)) : c ? (c = !1, e.result += G.repeat(`
1791
+ for (r ? me(c) ? (u = !0, e.result += G.repeat(`
1792
+ `, a ? 1 + s : s)) : u ? (u = !1, e.result += G.repeat(`
1791
1793
  `, s + 1)) : s === 0 ? a && (e.result += " ") : e.result += G.repeat(`
1792
1794
  `, s) : e.result += G.repeat(`
1793
- `, a ? 1 + s : s), a = !0, o = !0, s = 0, n = e.position; !ae(u) && u !== 0; )
1794
- u = e.input.charCodeAt(++e.position);
1795
+ `, a ? 1 + s : s), a = !0, o = !0, s = 0, n = e.position; !ae(c) && c !== 0; )
1796
+ c = e.input.charCodeAt(++e.position);
1795
1797
  ce(e, n, e.position, !1);
1796
1798
  }
1797
1799
  return !0;
@@ -1813,12 +1815,12 @@ function bt(e, t) {
1813
1815
  return l ? (e.tag = r, e.anchor = i, e.kind = "sequence", e.result = a, !0) : !1;
1814
1816
  }
1815
1817
  function ta(e, t, n) {
1816
- var r, i, a, o, l, s, c = e.tag, d = e.anchor, u = {}, m = /* @__PURE__ */ Object.create(null), f = null, x = null, v = null, w = !1, M = !1, E;
1818
+ var r, i, a, o, l, s, u = e.tag, d = e.anchor, c = {}, g = /* @__PURE__ */ Object.create(null), f = null, b = null, v = null, w = !1, M = !1, E;
1817
1819
  if (e.firstTabInLine !== -1)
1818
1820
  return !1;
1819
- for (e.anchor !== null && (e.anchorMap[e.anchor] = u), E = e.input.charCodeAt(e.position); E !== 0; ) {
1821
+ for (e.anchor !== null && (e.anchorMap[e.anchor] = c), E = e.input.charCodeAt(e.position); E !== 0; ) {
1820
1822
  if (!w && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, C(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), a = e.line, (E === 63 || E === 58) && te(r))
1821
- E === 63 ? (w && (Ce(e, u, m, f, x, null, o, l, s), f = x = v = null), M = !0, w = !0, i = !0) : w ? (w = !1, i = !0) : C(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, E = r;
1823
+ E === 63 ? (w && (Ce(e, c, g, f, b, null, o, l, s), f = b = v = null), M = !0, w = !0, i = !0) : w ? (w = !1, i = !0) : C(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, E = r;
1822
1824
  else {
1823
1825
  if (o = e.line, l = e.lineStart, s = e.position, !ke(e, n, on, !1, !0))
1824
1826
  break;
@@ -1826,22 +1828,22 @@ function ta(e, t, n) {
1826
1828
  for (E = e.input.charCodeAt(e.position); me(E); )
1827
1829
  E = e.input.charCodeAt(++e.position);
1828
1830
  if (E === 58)
1829
- E = e.input.charCodeAt(++e.position), te(E) || C(e, "a whitespace character is expected after the key-value separator within a block mapping"), w && (Ce(e, u, m, f, x, null, o, l, s), f = x = v = null), M = !0, w = !1, i = !1, f = e.tag, x = e.result;
1831
+ E = e.input.charCodeAt(++e.position), te(E) || C(e, "a whitespace character is expected after the key-value separator within a block mapping"), w && (Ce(e, c, g, f, b, null, o, l, s), f = b = v = null), M = !0, w = !1, i = !1, f = e.tag, b = e.result;
1830
1832
  else if (M)
1831
1833
  C(e, "can not read an implicit mapping pair; a colon is missed");
1832
1834
  else
1833
- return e.tag = c, e.anchor = d, !0;
1835
+ return e.tag = u, e.anchor = d, !0;
1834
1836
  } else if (M)
1835
1837
  C(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
1836
1838
  else
1837
- return e.tag = c, e.anchor = d, !0;
1839
+ return e.tag = u, e.anchor = d, !0;
1838
1840
  }
1839
- if ((e.line === a || e.lineIndent > t) && (w && (o = e.line, l = e.lineStart, s = e.position), ke(e, t, Be, !0, i) && (w ? x = e.result : v = e.result), w || (Ce(e, u, m, f, x, v, o, l, s), f = x = v = null), W(e, !0, -1), E = e.input.charCodeAt(e.position)), (e.line === a || e.lineIndent > t) && E !== 0)
1841
+ if ((e.line === a || e.lineIndent > t) && (w && (o = e.line, l = e.lineStart, s = e.position), ke(e, t, Be, !0, i) && (w ? b = e.result : v = e.result), w || (Ce(e, c, g, f, b, v, o, l, s), f = b = v = null), W(e, !0, -1), E = e.input.charCodeAt(e.position)), (e.line === a || e.lineIndent > t) && E !== 0)
1840
1842
  C(e, "bad indentation of a mapping entry");
1841
1843
  else if (e.lineIndent < t)
1842
1844
  break;
1843
1845
  }
1844
- return w && Ce(e, u, m, f, x, null, o, l, s), M && (e.tag = c, e.anchor = d, e.kind = "mapping", e.result = u), M;
1846
+ return w && Ce(e, c, g, f, b, null, o, l, s), M && (e.tag = u, e.anchor = d, e.kind = "mapping", e.result = c), M;
1845
1847
  }
1846
1848
  function na(e) {
1847
1849
  var t, n = !1, r = !1, i, a, o;
@@ -1882,28 +1884,28 @@ function ia(e) {
1882
1884
  return e.position === t && C(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), de.call(e.anchorMap, n) || C(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], W(e, !0, -1), !0;
1883
1885
  }
1884
1886
  function ke(e, t, n, r, i) {
1885
- var a, o, l, s = 1, c = !1, d = !1, u, m, f, x, v, w;
1886
- if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = o = l = Be === n || ln === n, r && W(e, !0, -1) && (c = !0, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)), s === 1)
1887
+ var a, o, l, s = 1, u = !1, d = !1, c, g, f, b, v, w;
1888
+ if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = o = l = Be === n || ln === n, r && W(e, !0, -1) && (u = !0, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)), s === 1)
1887
1889
  for (; na(e) || ra(e); )
1888
- W(e, !0, -1) ? (c = !0, l = a, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)) : l = !1;
1889
- if (l && (l = c || i), (s === 1 || Be === n) && (Ne === n || on === n ? v = t : v = t + 1, w = e.position - e.lineStart, s === 1 ? l && (bt(e, w) || ta(e, w, v)) || Xi(e, v) ? d = !0 : (o && ea(e, v) || Zi(e, v) || Qi(e, v) ? d = !0 : ia(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && C(e, "alias node should not have any properties")) : Gi(e, v, Ne === n) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : s === 0 && (d = l && bt(e, w))), e.tag === null)
1890
+ W(e, !0, -1) ? (u = !0, l = a, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)) : l = !1;
1891
+ if (l && (l = u || i), (s === 1 || Be === n) && (Ne === n || on === n ? v = t : v = t + 1, w = e.position - e.lineStart, s === 1 ? l && (bt(e, w) || ta(e, w, v)) || Xi(e, v) ? d = !0 : (o && ea(e, v) || Zi(e, v) || Qi(e, v) ? d = !0 : ia(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && C(e, "alias node should not have any properties")) : Gi(e, v, Ne === n) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : s === 0 && (d = l && bt(e, w))), e.tag === null)
1890
1892
  e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
1891
1893
  else if (e.tag === "?") {
1892
- for (e.result !== null && e.kind !== "scalar" && C(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, m = e.implicitTypes.length; u < m; u += 1)
1893
- if (x = e.implicitTypes[u], x.resolve(e.result)) {
1894
- e.result = x.construct(e.result), e.tag = x.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
1894
+ for (e.result !== null && e.kind !== "scalar" && C(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), c = 0, g = e.implicitTypes.length; c < g; c += 1)
1895
+ if (b = e.implicitTypes[c], b.resolve(e.result)) {
1896
+ e.result = b.construct(e.result), e.tag = b.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
1895
1897
  break;
1896
1898
  }
1897
1899
  } else if (e.tag !== "!") {
1898
1900
  if (de.call(e.typeMap[e.kind || "fallback"], e.tag))
1899
- x = e.typeMap[e.kind || "fallback"][e.tag];
1901
+ b = e.typeMap[e.kind || "fallback"][e.tag];
1900
1902
  else
1901
- for (x = null, f = e.typeMap.multi[e.kind || "fallback"], u = 0, m = f.length; u < m; u += 1)
1902
- if (e.tag.slice(0, f[u].tag.length) === f[u].tag) {
1903
- x = f[u];
1903
+ for (b = null, f = e.typeMap.multi[e.kind || "fallback"], c = 0, g = f.length; c < g; c += 1)
1904
+ if (e.tag.slice(0, f[c].tag.length) === f[c].tag) {
1905
+ b = f[c];
1904
1906
  break;
1905
1907
  }
1906
- x || C(e, "unknown tag !<" + e.tag + ">"), e.result !== null && x.kind !== e.kind && C(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + x.kind + '", not "' + e.kind + '"'), x.resolve(e.result, e.tag) ? (e.result = x.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : C(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
1908
+ b || C(e, "unknown tag !<" + e.tag + ">"), e.result !== null && b.kind !== e.kind && C(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + b.kind + '", not "' + e.kind + '"'), b.resolve(e.result, e.tag) ? (e.result = b.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : C(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
1907
1909
  }
1908
1910
  return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || d;
1909
1911
  }
@@ -2078,25 +2080,25 @@ function _n(e) {
2078
2080
  }
2079
2081
  var kn = 1, We = 2, An = 3, wn = 4, be = 5;
2080
2082
  function Ba(e, t, n, r, i, a, o, l) {
2081
- var s, c = 0, d = null, u = !1, m = !1, f = r !== -1, x = -1, v = La(we(e, 0)) && Na(we(e, e.length - 1));
2083
+ var s, u = 0, d = null, c = !1, g = !1, f = r !== -1, b = -1, v = La(we(e, 0)) && Na(we(e, e.length - 1));
2082
2084
  if (t || o)
2083
- for (s = 0; s < e.length; c >= 65536 ? s += 2 : s++) {
2084
- if (c = we(e, s), !Te(c))
2085
+ for (s = 0; s < e.length; u >= 65536 ? s += 2 : s++) {
2086
+ if (u = we(e, s), !Te(u))
2085
2087
  return be;
2086
- v = v && _t(c, d, l), d = c;
2088
+ v = v && _t(u, d, l), d = u;
2087
2089
  }
2088
2090
  else {
2089
- for (s = 0; s < e.length; c >= 65536 ? s += 2 : s++) {
2090
- if (c = we(e, s), c === Ie)
2091
- u = !0, f && (m = m || // Foldable line = too long, and not more-indented.
2092
- s - x - 1 > r && e[x + 1] !== " ", x = s);
2093
- else if (!Te(c))
2091
+ for (s = 0; s < e.length; u >= 65536 ? s += 2 : s++) {
2092
+ if (u = we(e, s), u === Ie)
2093
+ c = !0, f && (g = g || // Foldable line = too long, and not more-indented.
2094
+ s - b - 1 > r && e[b + 1] !== " ", b = s);
2095
+ else if (!Te(u))
2094
2096
  return be;
2095
- v = v && _t(c, d, l), d = c;
2097
+ v = v && _t(u, d, l), d = u;
2096
2098
  }
2097
- m = m || f && s - x - 1 > r && e[x + 1] !== " ";
2099
+ g = g || f && s - b - 1 > r && e[b + 1] !== " ";
2098
2100
  }
2099
- return !u && !m ? v && !o && !i(e) ? kn : a === Ee ? be : We : n > 9 && _n(e) ? be : o ? a === Ee ? be : We : m ? wn : An;
2101
+ return !c && !g ? v && !o && !i(e) ? kn : a === Ee ? be : We : n > 9 && _n(e) ? be : o ? a === Ee ? be : We : g ? wn : An;
2100
2102
  }
2101
2103
  function Ra(e, t, n, r, i) {
2102
2104
  e.dump = function() {
@@ -2105,8 +2107,8 @@ function Ra(e, t, n, r, i) {
2105
2107
  if (!e.noCompatMode && (Sa.indexOf(t) !== -1 || Ia.test(t)))
2106
2108
  return e.quotingType === Ee ? '"' + t + '"' : "'" + t + "'";
2107
2109
  var a = e.indent * Math.max(1, n), o = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - a), l = r || e.flowLevel > -1 && n >= e.flowLevel;
2108
- function s(c) {
2109
- return $a(e, c);
2110
+ function s(u) {
2111
+ return $a(e, u);
2110
2112
  }
2111
2113
  switch (Ba(
2112
2114
  t,
@@ -2147,9 +2149,9 @@ function At(e) {
2147
2149
  }
2148
2150
  function Ka(e, t) {
2149
2151
  for (var n = /(\n+)([^\n]*)/g, r = function() {
2150
- var c = e.indexOf(`
2152
+ var u = e.indexOf(`
2151
2153
  `);
2152
- return c = c !== -1 ? c : e.length, n.lastIndex = c, wt(e.slice(0, c), t);
2154
+ return u = u !== -1 ? u : e.length, n.lastIndex = u, wt(e.slice(0, u), t);
2153
2155
  }(), i = e[0] === `
2154
2156
  ` || e[0] === " ", a, o; o = n.exec(e); ) {
2155
2157
  var l = o[1], s = o[2];
@@ -2186,13 +2188,13 @@ function St(e, t, n, r) {
2186
2188
  e.tag = a, e.dump = i || "[]";
2187
2189
  }
2188
2190
  function ja(e, t, n) {
2189
- var r = "", i = e.tag, a = Object.keys(n), o, l, s, c, d;
2191
+ var r = "", i = e.tag, a = Object.keys(n), o, l, s, u, d;
2190
2192
  for (o = 0, l = a.length; o < l; o += 1)
2191
- d = "", r !== "" && (d += ", "), e.condenseFlow && (d += '"'), s = a[o], c = n[s], e.replacer && (c = e.replacer.call(n, s, c)), se(e, t, s, !1, !1) && (e.dump.length > 1024 && (d += "? "), d += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), se(e, t, c, !1, !1) && (d += e.dump, r += d));
2193
+ d = "", r !== "" && (d += ", "), e.condenseFlow && (d += '"'), s = a[o], u = n[s], e.replacer && (u = e.replacer.call(n, s, u)), se(e, t, s, !1, !1) && (e.dump.length > 1024 && (d += "? "), d += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), se(e, t, u, !1, !1) && (d += e.dump, r += d));
2192
2194
  e.tag = i, e.dump = "{" + r + "}";
2193
2195
  }
2194
2196
  function Ua(e, t, n, r) {
2195
- var i = "", a = e.tag, o = Object.keys(n), l, s, c, d, u, m;
2197
+ var i = "", a = e.tag, o = Object.keys(n), l, s, u, d, c, g;
2196
2198
  if (e.sortKeys === !0)
2197
2199
  o.sort();
2198
2200
  else if (typeof e.sortKeys == "function")
@@ -2200,7 +2202,7 @@ function Ua(e, t, n, r) {
2200
2202
  else if (e.sortKeys)
2201
2203
  throw new X("sortKeys must be a boolean or a function");
2202
2204
  for (l = 0, s = o.length; l < s; l += 1)
2203
- m = "", (!r || i !== "") && (m += ze(e, t)), c = o[l], d = n[c], e.replacer && (d = e.replacer.call(n, c, d)), se(e, t + 1, c, !0, !0, !0) && (u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, u && (e.dump && Ie === e.dump.charCodeAt(0) ? m += "?" : m += "? "), m += e.dump, u && (m += ze(e, t)), se(e, t + 1, d, !0, u) && (e.dump && Ie === e.dump.charCodeAt(0) ? m += ":" : m += ": ", m += e.dump, i += m));
2205
+ g = "", (!r || i !== "") && (g += ze(e, t)), u = o[l], d = n[u], e.replacer && (d = e.replacer.call(n, u, d)), se(e, t + 1, u, !0, !0, !0) && (c = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, c && (e.dump && Ie === e.dump.charCodeAt(0) ? g += "?" : g += "? "), g += e.dump, c && (g += ze(e, t)), se(e, t + 1, d, !0, c) && (e.dump && Ie === e.dump.charCodeAt(0) ? g += ":" : g += ": ", g += e.dump, i += g));
2204
2206
  e.tag = a, e.dump = i || "{}";
2205
2207
  }
2206
2208
  function It(e, t, n) {
@@ -2222,16 +2224,16 @@ function It(e, t, n) {
2222
2224
  }
2223
2225
  function se(e, t, n, r, i, a, o) {
2224
2226
  e.tag = null, e.dump = n, It(e, n, !1) || It(e, n, !0);
2225
- var l = mn.call(e.dump), s = r, c;
2227
+ var l = mn.call(e.dump), s = r, u;
2226
2228
  r && (r = e.flowLevel < 0 || e.flowLevel > t);
2227
- var d = l === "[object Object]" || l === "[object Array]", u, m;
2228
- if (d && (u = e.duplicates.indexOf(n), m = u !== -1), (e.tag !== null && e.tag !== "?" || m || e.indent !== 2 && t > 0) && (i = !1), m && e.usedDuplicates[u])
2229
- e.dump = "*ref_" + u;
2229
+ var d = l === "[object Object]" || l === "[object Array]", c, g;
2230
+ if (d && (c = e.duplicates.indexOf(n), g = c !== -1), (e.tag !== null && e.tag !== "?" || g || e.indent !== 2 && t > 0) && (i = !1), g && e.usedDuplicates[c])
2231
+ e.dump = "*ref_" + c;
2230
2232
  else {
2231
- if (d && m && !e.usedDuplicates[u] && (e.usedDuplicates[u] = !0), l === "[object Object]")
2232
- r && Object.keys(e.dump).length !== 0 ? (Ua(e, t, e.dump, i), m && (e.dump = "&ref_" + u + e.dump)) : (ja(e, t, e.dump), m && (e.dump = "&ref_" + u + " " + e.dump));
2233
+ if (d && g && !e.usedDuplicates[c] && (e.usedDuplicates[c] = !0), l === "[object Object]")
2234
+ r && Object.keys(e.dump).length !== 0 ? (Ua(e, t, e.dump, i), g && (e.dump = "&ref_" + c + e.dump)) : (ja(e, t, e.dump), g && (e.dump = "&ref_" + c + " " + e.dump));
2233
2235
  else if (l === "[object Array]")
2234
- r && e.dump.length !== 0 ? (e.noArrayIndent && !o && t > 0 ? St(e, t - 1, e.dump, i) : St(e, t, e.dump, i), m && (e.dump = "&ref_" + u + e.dump)) : (Da(e, t, e.dump), m && (e.dump = "&ref_" + u + " " + e.dump));
2236
+ r && e.dump.length !== 0 ? (e.noArrayIndent && !o && t > 0 ? St(e, t - 1, e.dump, i) : St(e, t, e.dump, i), g && (e.dump = "&ref_" + c + e.dump)) : (Da(e, t, e.dump), g && (e.dump = "&ref_" + c + " " + e.dump));
2235
2237
  else if (l === "[object String]")
2236
2238
  e.tag !== "?" && Ra(e, e.dump, t, a, s);
2237
2239
  else {
@@ -2241,9 +2243,9 @@ function se(e, t, n, r, i, a, o) {
2241
2243
  return !1;
2242
2244
  throw new X("unacceptable kind of an object to dump " + l);
2243
2245
  }
2244
- e.tag !== null && e.tag !== "?" && (c = encodeURI(
2246
+ e.tag !== null && e.tag !== "?" && (u = encodeURI(
2245
2247
  e.tag[0] === "!" ? e.tag.slice(1) : e.tag
2246
- ).replace(/!/g, "%21"), e.tag[0] === "!" ? c = "!" + c : c.slice(0, 18) === "tag:yaml.org,2002:" ? c = "!!" + c.slice(18) : c = "!<" + c + ">", e.dump = c + " " + e.dump);
2248
+ ).replace(/!/g, "%21"), e.tag[0] === "!" ? u = "!" + u : u.slice(0, 18) === "tag:yaml.org,2002:" ? u = "!!" + u.slice(18) : u = "!<" + u + ">", e.dump = u + " " + e.dump);
2247
2249
  }
2248
2250
  return !0;
2249
2251
  }
@@ -2397,25 +2399,25 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
2397
2399
  "data-testid": `config-card-details-${s}-props`
2398
2400
  }, [
2399
2401
  s !== "basic" ? (p(), A("div", uo, O(s === "advanced" ? I(r)("baseConfigCard.sections.advanced") : I(r)("baseConfigCard.sections.plugin")), 1)) : D("", !0),
2400
- (p(!0), A(le, null, ie(e.propertyCollections[s], (c) => (p(), K(Rt, {
2401
- key: c.key,
2402
- item: c
2402
+ (p(!0), A(le, null, ie(e.propertyCollections[s], (u) => (p(), K(Rt, {
2403
+ key: u.key,
2404
+ item: u
2403
2405
  }, _e({
2404
- label: b(() => [
2405
- V(o.$slots, `${c.key}-label`, { row: c }, void 0, !0)
2406
+ label: x(() => [
2407
+ V(o.$slots, `${u.key}-label`, { row: u }, void 0, !0)
2406
2408
  ]),
2407
- [c.key]: b(({ rowValue: d }) => [
2408
- V(o.$slots, c.key, {
2409
- row: c,
2409
+ [u.key]: x(({ rowValue: d }) => [
2410
+ V(o.$slots, u.key, {
2411
+ row: u,
2410
2412
  rowValue: d
2411
2413
  }, void 0, !0)
2412
2414
  ]),
2413
2415
  _: 2
2414
2416
  }, [
2415
- i(c) ? {
2417
+ i(u) ? {
2416
2418
  name: "label-tooltip",
2417
- fn: b(() => [
2418
- V(o.$slots, `${c.key}-label-tooltip`, { row: c }, void 0, !0)
2419
+ fn: x(() => [
2420
+ V(o.$slots, `${u.key}-label-tooltip`, { row: u }, void 0, !0)
2419
2421
  ]),
2420
2422
  key: "0"
2421
2423
  } : void 0
@@ -2521,7 +2523,7 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
2521
2523
  "data-testid": "kui-icon-wrapper-add-icon",
2522
2524
  style: Fe(r.value)
2523
2525
  }, {
2524
- default: b(() => [
2526
+ default: x(() => [
2525
2527
  (p(), A("svg", {
2526
2528
  "aria-hidden": e.decorative ? "true" : void 0,
2527
2529
  "data-testid": "kui-icon-svg-add-icon",
@@ -2620,7 +2622,7 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
2620
2622
  "data-testid": "kui-icon-wrapper-book-icon",
2621
2623
  style: Fe(r.value)
2622
2624
  }, {
2623
- default: b(() => [
2625
+ default: x(() => [
2624
2626
  (p(), A("svg", {
2625
2627
  "aria-hidden": e.decorative ? "true" : void 0,
2626
2628
  "data-testid": "kui-icon-svg-book-icon",
@@ -2719,7 +2721,7 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
2719
2721
  "data-testid": "kui-icon-wrapper-chevron-down-icon",
2720
2722
  style: Fe(r.value)
2721
2723
  }, {
2722
- default: b(() => [
2724
+ default: x(() => [
2723
2725
  (p(), A("svg", {
2724
2726
  "aria-hidden": e.decorative ? "true" : void 0,
2725
2727
  "data-testid": "kui-icon-svg-chevron-down-icon",
@@ -2818,7 +2820,7 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
2818
2820
  "data-testid": "kui-icon-wrapper-close-icon",
2819
2821
  style: Fe(r.value)
2820
2822
  }, {
2821
- default: b(() => [
2823
+ default: x(() => [
2822
2824
  (p(), A("svg", {
2823
2825
  "aria-hidden": e.decorative ? "true" : void 0,
2824
2826
  "data-testid": "kui-icon-svg-close-icon",
@@ -2917,7 +2919,7 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
2917
2919
  "data-testid": "kui-icon-wrapper-copy-icon",
2918
2920
  style: Fe(r.value)
2919
2921
  }, {
2920
- default: b(() => [
2922
+ default: x(() => [
2921
2923
  (p(), A("svg", {
2922
2924
  "aria-hidden": e.decorative ? "true" : void 0,
2923
2925
  "data-testid": "kui-icon-svg-copy-icon",
@@ -3026,9 +3028,9 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
3026
3028
  label: "YAML",
3027
3029
  value: "yaml"
3028
3030
  }
3029
- ], c = R("structured"), d = (g) => {
3030
- c.value = g == null ? void 0 : g.value;
3031
- }, u = {
3031
+ ], u = R("structured"), d = (m) => {
3032
+ u.value = m == null ? void 0 : m.value;
3033
+ }, c = {
3032
3034
  id: {
3033
3035
  type: P.ID,
3034
3036
  label: i("baseConfigCard.commonFields.id_label"),
@@ -3062,21 +3064,21 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
3062
3064
  // the last property displayed
3063
3065
  section: ne.Basic
3064
3066
  }
3065
- }, m = R(!1), f = R(!1), x = R(""), v = R({}), w = k(() => {
3067
+ }, g = R(!1), f = R(!1), b = R(""), v = R({}), w = k(() => {
3066
3068
  var F, _, j;
3067
3069
  if (!v.value)
3068
3070
  return [];
3069
- const g = [], $ = Object.keys(v.value).length;
3071
+ const m = [], $ = Object.keys(v.value).length;
3070
3072
  for (const T in v.value) {
3071
- const S = (_ = (F = r.configSchema) == null ? void 0 : F[T]) == null ? void 0 : _.order, U = (j = u[T]) == null ? void 0 : j.order;
3073
+ const S = (_ = (F = r.configSchema) == null ? void 0 : F[T]) == null ? void 0 : _.order, U = (j = c[T]) == null ? void 0 : j.order;
3072
3074
  let q = $;
3073
- (U || U === 0) && (q = U === -1 ? $ + 1 : U), S && (q = S === -1 ? $ + 1 : S), g.push([T, q]);
3075
+ (U || U === 0) && (q = U === -1 ? $ + 1 : U), S && (q = S === -1 ? $ + 1 : S), m.push([T, q]);
3074
3076
  }
3075
- return g.sort(function(T, S) {
3077
+ return m.sort(function(T, S) {
3076
3078
  return T[1] - S[1];
3077
- }), g.map((T) => {
3079
+ }), m.map((T) => {
3078
3080
  var fe, at;
3079
- const S = T[0], U = (fe = v.value) == null ? void 0 : fe[S], q = ((at = r.configSchema) == null ? void 0 : at[S]) || {}, J = u[S];
3081
+ const S = T[0], U = (fe = v.value) == null ? void 0 : fe[S], q = ((at = r.configSchema) == null ? void 0 : at[S]) || {}, J = c[S];
3080
3082
  return {
3081
3083
  key: S,
3082
3084
  value: U,
@@ -3091,9 +3093,9 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
3091
3093
  var _, j;
3092
3094
  if (!v.value || !r.pluginConfigKey)
3093
3095
  return [];
3094
- const g = v.value[r.pluginConfigKey] || {}, $ = Object.keys(g).length, F = [];
3095
- for (const T in g) {
3096
- const S = (j = (_ = r.pluginConfigSchema) == null ? void 0 : _[T]) == null ? void 0 : j.order, U = g[T];
3096
+ const m = v.value[r.pluginConfigKey] || {}, $ = Object.keys(m).length, F = [];
3097
+ for (const T in m) {
3098
+ const S = (j = (_ = r.pluginConfigSchema) == null ? void 0 : _[T]) == null ? void 0 : j.order, U = m[T];
3097
3099
  let q = U != null && U !== "" ? $ - 1 : $;
3098
3100
  S && (q = S === -1 ? $ + 1 : S), F.push([T, q]);
3099
3101
  }
@@ -3101,7 +3103,7 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
3101
3103
  return T[1] - S[1];
3102
3104
  }), F.map((T) => {
3103
3105
  var J;
3104
- const S = T[0], U = g[S], q = ((J = r.pluginConfigSchema) == null ? void 0 : J[S]) || {};
3106
+ const S = T[0], U = m[S], q = ((J = r.pluginConfigSchema) == null ? void 0 : J[S]) || {};
3105
3107
  return {
3106
3108
  key: S,
3107
3109
  value: U,
@@ -3113,53 +3115,53 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
3113
3115
  };
3114
3116
  }).filter((T) => !T.hidden);
3115
3117
  }), E = k(() => {
3116
- var g, $, F, _;
3118
+ var m, $, F, _;
3117
3119
  return {
3118
- basic: (g = w.value) == null ? void 0 : g.filter((j) => j.section === ne.Basic),
3120
+ basic: (m = w.value) == null ? void 0 : m.filter((j) => j.section === ne.Basic),
3119
3121
  advanced: ($ = w.value) == null ? void 0 : $.filter((j) => j.section === ne.Advanced),
3120
3122
  plugin: (_ = M.value) == null ? void 0 : _.concat((F = w.value) == null ? void 0 : F.filter((j) => j.section === ne.Plugin))
3121
3123
  };
3122
3124
  }), ee = k(() => {
3123
- const g = [];
3124
- return E.value.basic.length && g.push("basic"), E.value.advanced.length && g.push("advanced"), E.value.plugin.length && g.push("plugin"), g;
3125
+ const m = [];
3126
+ return E.value.basic.length && m.push("basic"), E.value.advanced.length && m.push("advanced"), E.value.plugin.length && m.push("plugin"), m;
3125
3127
  }), h = k(() => {
3126
3128
  var $, F;
3127
- let g = `${r.config.apiBaseUrl}${r.fetchUrl}`;
3128
- return r.config.app === "konnect" ? g = g.replace(/{controlPlaneId}/gi, (($ = r.config) == null ? void 0 : $.controlPlaneId) || "") : r.config.app === "kongManager" && (g = g.replace(/\/{workspace}/gi, (F = r.config) != null && F.workspace ? `/${r.config.workspace}` : "")), g = g.replace(/{id}/gi, r.config.entityId), g;
3129
+ let m = `${r.config.apiBaseUrl}${r.fetchUrl}`;
3130
+ return r.config.app === "konnect" ? m = m.replace(/{controlPlaneId}/gi, (($ = r.config) == null ? void 0 : $.controlPlaneId) || "") : r.config.app === "kongManager" && (m = m.replace(/\/{workspace}/gi, (F = r.config) != null && F.workspace ? `/${r.config.workspace}` : "")), m = m.replace(/{id}/gi, r.config.entityId), m;
3129
3131
  });
3130
- return Ae(m, (g) => {
3131
- n("loading", g);
3132
+ return Ae(g, (m) => {
3133
+ n("loading", m);
3132
3134
  }, { immediate: !0 }), Ft(async () => {
3133
- f.value = !1, m.value = !0;
3135
+ f.value = !1, g.value = !0;
3134
3136
  try {
3135
- const { data: g } = await l.get(h.value);
3137
+ const { data: m } = await l.get(h.value);
3136
3138
  if (r.dataKey)
3137
- if (typeof g[r.dataKey] < "u")
3138
- v.value = { ...g[r.dataKey] };
3139
+ if (typeof m[r.dataKey] < "u")
3140
+ v.value = { ...m[r.dataKey] };
3139
3141
  else
3140
3142
  throw new Error(i("errors.dataKeyUndefined", { dataKey: r.dataKey }));
3141
3143
  else
3142
- v.value = { ...g };
3144
+ v.value = { ...m };
3143
3145
  Object.keys(r.configSchema).filter((F) => r.configSchema[F].forceShow).forEach((F) => {
3144
3146
  v.value && typeof v.value[F] > "u" && (v.value[F] = null);
3145
- }), n("fetch:success", g);
3146
- } catch (g) {
3147
- const $ = a(g);
3148
- x.value = $.startsWith("code") ? i("baseConfigCard.errors.load") : $, f.value = !0, n("fetch:error", g);
3147
+ }), n("fetch:success", m);
3148
+ } catch (m) {
3149
+ const $ = a(m);
3150
+ b.value = $.startsWith("code") ? i("baseConfigCard.errors.load") : $, f.value = !0, n("fetch:error", m);
3149
3151
  } finally {
3150
- m.value = !1;
3152
+ g.value = !1;
3151
3153
  }
3152
- }), (g, $) => {
3154
+ }), (m, $) => {
3153
3155
  const F = B("KLabel"), _ = B("KSelect"), j = B("KButton"), T = B("KSkeleton"), S = B("KEmptyState"), U = B("KCard");
3154
3156
  return p(), K(U, { class: "kong-ui-entity-base-config-card" }, _e({
3155
- actions: b(() => [
3157
+ actions: x(() => [
3156
3158
  L("div", Vo, [
3157
- V(g.$slots, "actions", {}, void 0, !0),
3159
+ V(m.$slots, "actions", {}, void 0, !0),
3158
3160
  N(F, {
3159
3161
  class: "config-format-select-label",
3160
3162
  "data-testid": "config-format-select-label"
3161
3163
  }, {
3162
- default: b(() => [
3164
+ default: x(() => [
3163
3165
  Y(O(e.label), 1)
3164
3166
  ]),
3165
3167
  _: 1
@@ -3175,7 +3177,7 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
3175
3177
  class: "book-icon",
3176
3178
  "data-testid": "book-icon"
3177
3179
  }, {
3178
- default: b(() => [
3180
+ default: x(() => [
3179
3181
  L("a", {
3180
3182
  href: e.configCardDoc,
3181
3183
  rel: "noopener",
@@ -3188,8 +3190,8 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
3188
3190
  })) : D("", !0)
3189
3191
  ])
3190
3192
  ]),
3191
- default: b(() => [
3192
- m.value ? (p(), K(T, {
3193
+ default: x(() => [
3194
+ g.value ? (p(), K(T, {
3193
3195
  key: 0,
3194
3196
  "data-testid": "config-card-loader",
3195
3197
  "table-columns": 2,
@@ -3199,8 +3201,8 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
3199
3201
  "data-testid": "config-card-fetch-error",
3200
3202
  "icon-variant": "error"
3201
3203
  }, {
3202
- default: b(() => [
3203
- L("h3", null, O(x.value), 1)
3204
+ default: x(() => [
3205
+ L("h3", null, O(b.value), 1)
3204
3206
  ]),
3205
3207
  _: 1
3206
3208
  })) : D("", !0),
@@ -3208,15 +3210,15 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
3208
3210
  N(po, {
3209
3211
  config: e.config,
3210
3212
  "fetcher-url": h.value,
3211
- format: c.value,
3213
+ format: u.value,
3212
3214
  "prop-list-types": ee.value,
3213
3215
  "property-collections": E.value,
3214
3216
  record: v.value
3215
3217
  }, _e({ _: 2 }, [
3216
- ie(Object.keys(g.$slots), (q) => ({
3218
+ ie(Object.keys(m.$slots), (q) => ({
3217
3219
  name: q,
3218
- fn: b(({ row: J, rowValue: fe }) => [
3219
- V(g.$slots, q, {
3220
+ fn: x(({ row: J, rowValue: fe }) => [
3221
+ V(m.$slots, q, {
3220
3222
  row: J,
3221
3223
  rowValue: fe
3222
3224
  }, void 0, !0)
@@ -3229,9 +3231,9 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
3229
3231
  }, [
3230
3232
  e.hideTitle ? void 0 : {
3231
3233
  name: "title",
3232
- fn: b(() => [
3234
+ fn: x(() => [
3233
3235
  L("div", Ho, [
3234
- V(g.$slots, "title", {}, () => [
3236
+ V(m.$slots, "title", {}, () => [
3235
3237
  Y(O(I(i)("baseConfigCard.title")), 1)
3236
3238
  ], !0)
3237
3239
  ])
@@ -3301,18 +3303,18 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
3301
3303
  var ee;
3302
3304
  const n = t, r = e, i = Mn(), { i18n: { t: a } } = z.useI18n(), { getMessageFromError: o } = z.useErrors(), { axiosInstance: l } = z.useAxios({
3303
3305
  headers: (ee = r.config) == null ? void 0 : ee.requestHeaders
3304
- }), s = R(!1), c = R(!1), d = R(""), u = k(() => r.canSubmit === !1 || r.isReadonly), m = R(!1), f = k(() => {
3305
- var y, g;
3306
+ }), s = R(!1), u = R(!1), d = R(""), c = k(() => r.canSubmit === !1 || r.isReadonly), g = R(!1), f = k(() => {
3307
+ var y, m;
3306
3308
  let h = `${r.config.apiBaseUrl}${r.fetchUrl}`;
3307
- return r.config.app === "konnect" ? h = h.replace(/{controlPlaneId}/gi, ((y = r.config) == null ? void 0 : y.controlPlaneId) || "") : r.config.app === "kongManager" && (h = h.replace(/\/{workspace}/gi, (g = r.config) != null && g.workspace ? `/${r.config.workspace}` : "")), r.editId ? (h = h.replace(/{id}/gi, r.editId), h) : (h = h.replace(/\/{id}/gi, ""), h);
3308
- }), x = () => {
3309
- m.value = !m.value;
3309
+ return r.config.app === "konnect" ? h = h.replace(/{controlPlaneId}/gi, ((y = r.config) == null ? void 0 : y.controlPlaneId) || "") : r.config.app === "kongManager" && (h = h.replace(/\/{workspace}/gi, (m = r.config) != null && m.workspace ? `/${r.config.workspace}` : "")), r.editId ? (h = h.replace(/{id}/gi, r.editId), h) : (h = h.replace(/\/{id}/gi, ""), h);
3310
+ }), b = () => {
3311
+ g.value = !g.value;
3310
3312
  }, v = () => {
3311
3313
  r.config.cancelRoute ? i.push(r.config.cancelRoute) : w();
3312
3314
  }, w = () => {
3313
3315
  n("cancel");
3314
3316
  }, M = () => {
3315
- u.value || n("submit");
3317
+ c.value || n("submit");
3316
3318
  }, E = R([
3317
3319
  {
3318
3320
  title: a("baseForm.configuration.yaml"),
@@ -3328,30 +3330,30 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
3328
3330
  }, { immediate: !0 }), Ft(async () => {
3329
3331
  if (r.editId)
3330
3332
  try {
3331
- c.value = !1, s.value = !0;
3333
+ u.value = !1, s.value = !0;
3332
3334
  const { data: h } = await l.get(f.value);
3333
3335
  n("fetch:success", h);
3334
3336
  } catch (h) {
3335
3337
  const y = o(h);
3336
- d.value = y.startsWith("code") ? a("baseForm.errors.edit") : y, c.value = !0, n("fetch:error", h);
3338
+ d.value = y.startsWith("code") ? a("baseForm.errors.edit") : y, u.value = !0, n("fetch:error", h);
3337
3339
  } finally {
3338
3340
  s.value = !1;
3339
3341
  }
3340
3342
  }), (h, y) => {
3341
- const g = B("KSkeleton"), $ = B("KEmptyState"), F = B("KAlert"), _ = B("KButton"), j = B("KTabs"), T = B("KSlideout"), S = B("KCard");
3343
+ const m = B("KSkeleton"), $ = B("KEmptyState"), F = B("KAlert"), _ = B("KButton"), j = B("KTabs"), T = B("KSlideout"), S = B("KCard");
3342
3344
  return p(), K(S, { class: "kong-ui-entity-base-form" }, {
3343
- default: b(() => [
3344
- s.value ? (p(), K(g, {
3345
+ default: x(() => [
3346
+ s.value ? (p(), K(m, {
3345
3347
  key: 0,
3346
3348
  type: "form"
3347
- })) : c.value ? (p(), K($, {
3349
+ })) : u.value ? (p(), K($, {
3348
3350
  key: 1,
3349
3351
  "action-button-text": I(a)("baseForm.actions.back"),
3350
3352
  "data-testid": "form-fetch-error",
3351
3353
  "icon-variant": "error",
3352
3354
  onClickAction: v
3353
3355
  }, {
3354
- default: b(() => [
3356
+ default: x(() => [
3355
3357
  L("h3", null, O(d.value), 1)
3356
3358
  ]),
3357
3359
  _: 1
@@ -3374,9 +3376,9 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
3374
3376
  N(_, {
3375
3377
  appearance: "tertiary",
3376
3378
  "data-testid": "form-view-configuration",
3377
- onClick: y[0] || (y[0] = (U) => x())
3379
+ onClick: y[0] || (y[0] = (U) => b())
3378
3380
  }, {
3379
- default: b(() => [
3381
+ default: x(() => [
3380
3382
  Y(O(I(a)("baseForm.actions.viewConfiguration")), 1)
3381
3383
  ]),
3382
3384
  _: 1
@@ -3388,7 +3390,7 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
3388
3390
  disabled: e.isReadonly,
3389
3391
  type: "reset"
3390
3392
  }, {
3391
- default: b(() => [
3393
+ default: x(() => [
3392
3394
  Y(O(I(a)("baseForm.actions.cancel")), 1)
3393
3395
  ]),
3394
3396
  _: 1
@@ -3396,10 +3398,10 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
3396
3398
  N(_, {
3397
3399
  appearance: "primary",
3398
3400
  "data-testid": "form-submit",
3399
- disabled: u.value,
3401
+ disabled: c.value,
3400
3402
  type: "submit"
3401
3403
  }, {
3402
- default: b(() => [
3404
+ default: x(() => [
3403
3405
  Y(O(I(a)("baseForm.actions.save")), 1)
3404
3406
  ]),
3405
3407
  _: 1
@@ -3413,16 +3415,16 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
3413
3415
  "has-overlay": !1,
3414
3416
  "offset-top": 60,
3415
3417
  title: I(a)("baseForm.configuration.title"),
3416
- visible: m.value,
3417
- onClose: y[1] || (y[1] = (U) => x())
3418
+ visible: g.value,
3419
+ onClose: y[1] || (y[1] = (U) => b())
3418
3420
  }, {
3419
- default: b(() => [
3421
+ default: x(() => [
3420
3422
  L("div", null, O(I(a)("baseForm.configuration.message")), 1),
3421
3423
  N(j, {
3422
3424
  "data-testid": "form-view-configuration-slideout-tabs",
3423
3425
  tabs: E.value
3424
3426
  }, {
3425
- json: b(() => [
3427
+ json: x(() => [
3426
3428
  N(Kt, {
3427
3429
  config: e.config,
3428
3430
  "fetcher-url": f.value,
@@ -3430,7 +3432,7 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
3430
3432
  "request-method": r.editId ? "put" : "post"
3431
3433
  }, null, 8, ["config", "fetcher-url", "json-record", "request-method"])
3432
3434
  ]),
3433
- yaml: b(() => [
3435
+ yaml: x(() => [
3434
3436
  N(Sn, {
3435
3437
  "yaml-record": r.formFields
3436
3438
  }, null, 8, ["yaml-record"])
@@ -3477,9 +3479,9 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
3477
3479
  a && (a.disconnect(), a = void 0);
3478
3480
  }, l = () => {
3479
3481
  var v, w, M;
3480
- c.value = ((v = r.value) == null ? void 0 : v.getBoundingClientRect().width) || 0, d.value = ((w = n.value) == null ? void 0 : w.clientWidth) || 0, u.value = ((M = s.value) == null ? void 0 : M.innerText) || "";
3481
- }, s = R({}), c = R(0), d = R(0), u = R(""), m = k(() => [r.value, n.value]), f = Ae(
3482
- m,
3482
+ u.value = ((v = r.value) == null ? void 0 : v.getBoundingClientRect().width) || 0, d.value = ((w = n.value) == null ? void 0 : w.clientWidth) || 0, c.value = ((M = s.value) == null ? void 0 : M.innerText) || "";
3483
+ }, s = R({}), u = R(0), d = R(0), c = R(""), g = k(() => [r.value, n.value]), f = Ae(
3484
+ g,
3483
3485
  (v) => {
3484
3486
  if (i.value && (o(), "ResizeObserver" in window && window)) {
3485
3487
  a = new ResizeObserver((w) => {
@@ -3492,7 +3494,7 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
3492
3494
  }
3493
3495
  },
3494
3496
  { immediate: !0, flush: "post", deep: !0 }
3495
- ), x = k(() => i.value ? c.value > d.value : !1);
3497
+ ), b = k(() => i.value ? u.value > d.value : !1);
3496
3498
  return On(() => {
3497
3499
  l();
3498
3500
  }), $n(() => {
@@ -3508,9 +3510,9 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
3508
3510
  N(M, {
3509
3511
  "max-width": "300",
3510
3512
  placement: "bottomStart",
3511
- text: x.value ? u.value : ""
3513
+ text: b.value ? c.value : ""
3512
3514
  }, {
3513
- default: b(() => [
3515
+ default: x(() => [
3514
3516
  V(v.$slots, "default", {}, void 0, !0)
3515
3517
  ]),
3516
3518
  _: 3
@@ -3633,7 +3635,7 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
3633
3635
  emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
3634
3636
  setup(e, { emit: t }) {
3635
3637
  const n = e, r = t, { i18n: { t: i } } = z.useI18n(), a = k(() => {
3636
- var y, g;
3638
+ var y, m;
3637
3639
  return typeof n.errorMessage == "string" ? {
3638
3640
  hasError: !!n.errorMessage,
3639
3641
  title: n.errorMessage,
@@ -3641,7 +3643,7 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
3641
3643
  } : {
3642
3644
  hasError: !!n.errorMessage,
3643
3645
  title: (y = n.errorMessage) == null ? void 0 : y.title,
3644
- message: (g = n.errorMessage) == null ? void 0 : g.message
3646
+ message: (m = n.errorMessage) == null ? void 0 : m.message
3645
3647
  };
3646
3648
  }), o = k(() => n.cacheIdentifier || n.preferencesStorageKey), l = (y) => y.hasData || !!n.query, s = k(() => {
3647
3649
  const y = [];
@@ -3656,29 +3658,29 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
3656
3658
  key: "actions",
3657
3659
  hideLabel: !0
3658
3660
  }), y;
3659
- }), c = (y) => ({
3661
+ }), u = (y) => ({
3660
3662
  "data-rowid": y.id,
3661
3663
  "data-testid": y.name,
3662
3664
  ...n.rowAttributes(y)
3663
- }), d = R({}), u = (y) => {
3664
- var g;
3665
- return (g = d.value) == null ? void 0 : g.$el.querySelector(`[data-rowid="${y.id}"]`);
3666
- }, m = (y) => {
3667
- const g = {
3665
+ }), d = R({}), c = (y) => {
3666
+ var m;
3667
+ return (m = d.value) == null ? void 0 : m.$el.querySelector(`[data-rowid="${y.id}"]`);
3668
+ }, g = (y) => {
3669
+ const m = {
3668
3670
  "data-testid": y.headerKey,
3669
3671
  ...n.cellAttributes(y)
3670
3672
  };
3671
- return y.colIndex === 0 && (g.style = {
3673
+ return y.colIndex === 0 && (m.style = {
3672
3674
  maxWidth: "250px",
3673
3675
  overflowX: "hidden",
3674
3676
  textOverflow: "ellipsis"
3675
- }), g;
3677
+ }), m;
3676
3678
  }, f = () => {
3677
- r("empty-state-cta-clicked"), x();
3678
- }, x = () => {
3679
+ r("empty-state-cta-clicked"), b();
3680
+ }, b = () => {
3679
3681
  r("clear-search-input");
3680
- }, v = k(() => n.disableRowClick ? void 0 : (y, g) => {
3681
- r("click:row", g);
3682
+ }, v = k(() => n.disableRowClick ? void 0 : (y, m) => {
3683
+ r("click:row", m);
3682
3684
  }), w = (y) => {
3683
3685
  r("sort", y);
3684
3686
  }, { setTablePreferences: M, getTablePreferences: E } = Hn(), ee = k(() => {
@@ -3690,18 +3692,18 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
3690
3692
  }), h = (y) => {
3691
3693
  n.preferencesStorageKey && M(n.preferencesStorageKey, y);
3692
3694
  };
3693
- return (y, g) => {
3695
+ return (y, m) => {
3694
3696
  const $ = B("KIcon"), F = B("KButton"), _ = B("KDropdown"), j = B("KTable"), T = B("KCard");
3695
3697
  return p(), K(T, {
3696
3698
  class: "kong-ui-entity-base-table",
3697
3699
  title: e.title
3698
3700
  }, {
3699
- default: b(() => [
3701
+ default: x(() => [
3700
3702
  N(j, {
3701
3703
  ref_key: "tableRefs",
3702
3704
  ref: d,
3703
3705
  "cache-identifier": o.value,
3704
- "cell-attrs": m,
3706
+ "cell-attrs": g,
3705
3707
  "disable-pagination-page-jump": e.disablePaginationPageJump,
3706
3708
  "disable-sorting": e.disableSorting,
3707
3709
  "empty-state-action-message": e.query ? I(i)("baseTable.emptyState.noSearchResultsCtaText") : e.emptyStateOptions.ctaText,
@@ -3720,14 +3722,14 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
3720
3722
  "initial-fetcher-params": ee.value,
3721
3723
  "is-loading": e.isLoading,
3722
3724
  "pagination-type": e.paginationType,
3723
- "row-attrs": c,
3725
+ "row-attrs": u,
3724
3726
  "search-input": e.query,
3725
3727
  onKtableEmptyStateCtaClicked: f,
3726
3728
  "onRow:click": v.value,
3727
- onSort: g[0] || (g[0] = (S) => w(S)),
3729
+ onSort: m[0] || (m[0] = (S) => w(S)),
3728
3730
  "onUpdate:tablePreferences": h
3729
3731
  }, _e({
3730
- toolbar: b(({ state: S }) => [
3732
+ toolbar: x(({ state: S }) => [
3731
3733
  pe(L("div", tl, [
3732
3734
  V(y.$slots, "toolbar-filter", {}, void 0, !0),
3733
3735
  y.$slots["toolbar-button"] ? (p(), A("div", nl, [
@@ -3737,7 +3739,7 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
3737
3739
  [he, l(S)]
3738
3740
  ])
3739
3741
  ]),
3740
- actions: b(({ row: S, rowKey: U, rowValue: q }) => [
3742
+ actions: x(({ row: S, rowKey: U, rowValue: q }) => [
3741
3743
  L("div", {
3742
3744
  class: "actions-container",
3743
3745
  "data-testid": S.name
@@ -3746,20 +3748,20 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
3746
3748
  "kpop-attributes": { placement: "bottomEnd" },
3747
3749
  width: e.dropdownMenuWidth
3748
3750
  }, {
3749
- items: b(() => [
3751
+ items: x(() => [
3750
3752
  V(y.$slots, "actions", {
3751
3753
  row: S,
3752
3754
  rowKey: U,
3753
3755
  rowValue: q
3754
3756
  }, void 0, !0)
3755
3757
  ]),
3756
- default: b(() => [
3758
+ default: x(() => [
3757
3759
  N(F, {
3758
3760
  class: "actions-trigger",
3759
3761
  "data-testid": "overflow-actions-button",
3760
3762
  size: "small"
3761
3763
  }, {
3762
- icon: b(() => [
3764
+ icon: x(() => [
3763
3765
  N($, {
3764
3766
  color: I(Cr),
3765
3767
  icon: "more",
@@ -3777,12 +3779,12 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
3777
3779
  }, [
3778
3780
  ie(e.tableHeaders, (S, U) => ({
3779
3781
  name: U,
3780
- fn: b(({ row: q, rowKey: J, rowValue: fe }) => [
3782
+ fn: x(({ row: q, rowKey: J, rowValue: fe }) => [
3781
3783
  N(el, {
3782
3784
  "key-name": String(U),
3783
- "row-el": u(q)
3785
+ "row-el": c(q)
3784
3786
  }, {
3785
- default: b(() => [
3787
+ default: x(() => [
3786
3788
  V(y.$slots, U, {
3787
3789
  row: q,
3788
3790
  rowKey: J,
@@ -3797,7 +3799,7 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
3797
3799
  })),
3798
3800
  e.query ? void 0 : {
3799
3801
  name: "empty-state-action-icon",
3800
- fn: b(() => [
3802
+ fn: x(() => [
3801
3803
  N(I(bo))
3802
3804
  ]),
3803
3805
  key: "0"
@@ -3858,9 +3860,9 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
3858
3860
  }, l = () => {
3859
3861
  i("proceed");
3860
3862
  };
3861
- return (s, c) => {
3862
- const d = B("KAlert"), u = B("KPrompt");
3863
- return p(), K(u, {
3863
+ return (s, u) => {
3864
+ const d = B("KAlert"), c = B("KPrompt");
3865
+ return p(), K(c, {
3864
3866
  "action-button-appearance": "danger",
3865
3867
  "action-button-disabled": e.actionPending,
3866
3868
  "action-button-text": "Yes, delete",
@@ -3871,10 +3873,10 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
3871
3873
  onCancel: o,
3872
3874
  onProceed: l
3873
3875
  }, {
3874
- default: b(() => [
3876
+ default: x(() => [
3875
3877
  e.error ? (p(), A("div", al, [
3876
3878
  N(d, { appearance: "danger" }, {
3877
- default: b(() => [
3879
+ default: x(() => [
3878
3880
  Y(O(e.error), 1)
3879
3881
  ]),
3880
3882
  _: 1
@@ -3885,14 +3887,14 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
3885
3887
  keypath: r.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
3886
3888
  tag: "p"
3887
3889
  }, _e({
3888
- entityType: b(() => [
3890
+ entityType: x(() => [
3889
3891
  Y(O(r.entityType), 1)
3890
3892
  ]),
3891
3893
  _: 2
3892
3894
  }, [
3893
3895
  r.entityName ? {
3894
3896
  name: "entityName",
3895
- fn: b(() => [
3897
+ fn: x(() => [
3896
3898
  L("strong", null, O(r.entityName), 1)
3897
3899
  ]),
3898
3900
  key: "0"
@@ -3972,10 +3974,10 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
3972
3974
  setup(e, { emit: t }) {
3973
3975
  const { i18n: { t: n } } = z.useI18n(), r = e, i = t, a = R(!1), o = R({}), l = R(/* @__PURE__ */ new Set()), s = k(() => {
3974
3976
  const h = [];
3975
- return new URLSearchParams(r.modelValue).forEach((y, g) => {
3976
- y !== "" && h.push(g);
3977
+ return new URLSearchParams(r.modelValue).forEach((y, m) => {
3978
+ y !== "" && h.push(m);
3977
3979
  }), h;
3978
- }), c = k(() => {
3980
+ }), u = k(() => {
3979
3981
  const h = r.config.fields;
3980
3982
  return Object.keys(h).filter((y) => h[y].searchable).map((y) => ({
3981
3983
  label: h[y].label || y,
@@ -3984,27 +3986,27 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
3984
3986
  }));
3985
3987
  });
3986
3988
  Ae(() => r.modelValue, (h) => {
3987
- o.value = {}, new URLSearchParams(h).forEach((y, g) => {
3988
- o.value[g] = y;
3989
+ o.value = {}, new URLSearchParams(h).forEach((y, m) => {
3990
+ o.value[m] = y;
3989
3991
  });
3990
3992
  });
3991
3993
  const d = () => {
3992
3994
  a.value = !a.value;
3993
- }, u = (h) => {
3995
+ }, c = (h) => {
3994
3996
  l.value.has(h) ? l.value.delete(h) : l.value.add(h);
3995
- }, m = (h) => {
3997
+ }, g = (h) => {
3996
3998
  i("update:modelValue", h);
3997
3999
  }, f = () => {
3998
- m("");
3999
- }, x = (h) => `filter-${h}`, v = (h) => {
4000
- var y, g;
4001
- return (((g = (y = r.config.schema) == null ? void 0 : y[h]) == null ? void 0 : g.values) ?? []).map(($) => ({
4000
+ g("");
4001
+ }, b = (h) => `filter-${h}`, v = (h) => {
4002
+ var y, m;
4003
+ return (((m = (y = r.config.schema) == null ? void 0 : y[h]) == null ? void 0 : m.values) ?? []).map(($) => ({
4002
4004
  value: $,
4003
4005
  label: $
4004
4006
  }));
4005
4007
  }, w = (h) => {
4006
- var y, g;
4007
- return ((g = (y = r.config.schema) == null ? void 0 : y[h]) == null ? void 0 : g.type) ?? "text";
4008
+ var y, m;
4009
+ return ((m = (y = r.config.schema) == null ? void 0 : y[h]) == null ? void 0 : m.type) ?? "text";
4008
4010
  }, M = (h) => {
4009
4011
  o.value = {
4010
4012
  ...o.value,
@@ -4013,24 +4015,24 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
4013
4015
  }, E = () => {
4014
4016
  o.value = {}, ee(!0);
4015
4017
  }, ee = (h = !1) => {
4016
- const y = Object.keys(o.value).reduce((g, $) => (o.value[$] && (g[$] = `${o.value[$]}`), g), {});
4018
+ const y = Object.keys(o.value).reduce((m, $) => (o.value[$] && (m[$] = `${o.value[$]}`), m), {});
4017
4019
  h && (a.value = !1), i("update:modelValue", new URLSearchParams(y).toString());
4018
4020
  };
4019
4021
  return (h, y) => {
4020
- const g = B("KInput"), $ = B("KButton"), F = B("KSelect");
4021
- return e.config.isExactMatch ? (p(), K(g, {
4022
+ const m = B("KInput"), $ = B("KButton"), F = B("KSelect");
4023
+ return e.config.isExactMatch ? (p(), K(m, {
4022
4024
  key: 0,
4023
4025
  autocomplete: "off",
4024
4026
  class: "kong-ui-entity-filter-input",
4025
4027
  "data-testid": "search-input",
4026
4028
  "model-value": e.modelValue,
4027
4029
  placeholder: e.config.placeholder,
4028
- "onUpdate:modelValue": m
4030
+ "onUpdate:modelValue": g
4029
4031
  }, {
4030
- before: b(() => [
4032
+ before: x(() => [
4031
4033
  N(Et)
4032
4034
  ]),
4033
- after: b(() => [
4035
+ after: x(() => [
4034
4036
  pe(N(I(Ko), {
4035
4037
  class: "kong-ui-entity-filter-clear",
4036
4038
  onClick: f
@@ -4045,7 +4047,7 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
4045
4047
  "data-testid": "filter-button",
4046
4048
  onClick: d
4047
4049
  }, {
4048
- default: b(() => [
4050
+ default: x(() => [
4049
4051
  N(Et),
4050
4052
  Y(" " + O(I(n)("filter.filterButtonText")) + " " + O(s.value.length > 0 ? `(${s.value.length})` : ""), 1)
4051
4053
  ]),
@@ -4058,7 +4060,7 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
4058
4060
  [he, a.value]
4059
4061
  ]),
4060
4062
  pe(L("div", hl, [
4061
- (p(!0), A(le, null, ie(c.value, (_) => {
4063
+ (p(!0), A(le, null, ie(u.value, (_) => {
4062
4064
  var j, T;
4063
4065
  return p(), A("div", {
4064
4066
  key: _.value,
@@ -4069,8 +4071,8 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
4069
4071
  class: ue(["menu-item-title", { expanded: l.value.has(_.value) }]),
4070
4072
  role: "button",
4071
4073
  tabindex: "0",
4072
- onClick: (S) => u(_.value),
4073
- onKeydown: Ln((S) => u(_.value), ["enter"])
4074
+ onClick: (S) => c(_.value),
4075
+ onKeydown: Ln((S) => c(_.value), ["enter"])
4074
4076
  }, [
4075
4077
  Y(O(_.label) + " ", 1),
4076
4078
  pe(L("span", yl, null, 512), [
@@ -4084,18 +4086,18 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
4084
4086
  pe(L("div", vl, [
4085
4087
  L("label", {
4086
4088
  class: "menu-item-label",
4087
- for: x(_.value)
4089
+ for: b(_.value)
4088
4090
  }, O(I(n)("filter.fieldLabel")), 9, bl),
4089
4091
  ((T = (j = e.config.schema) == null ? void 0 : j[_.value]) == null ? void 0 : T.type) === "select" ? (p(), K(F, {
4090
4092
  key: 0,
4091
- id: x(_.value),
4093
+ id: b(_.value),
4092
4094
  modelValue: o.value[_.value],
4093
4095
  "onUpdate:modelValue": (S) => o.value[_.value] = S,
4094
4096
  items: v(_.value),
4095
4097
  placeholder: I(n)("filter.selectPlaceholder")
4096
- }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (p(), K(g, {
4098
+ }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (p(), K(m, {
4097
4099
  key: 1,
4098
- id: x(_.value),
4100
+ id: b(_.value),
4099
4101
  modelValue: o.value[_.value],
4100
4102
  "onUpdate:modelValue": (S) => o.value[_.value] = S,
4101
4103
  autocomplete: "off",
@@ -4112,7 +4114,7 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
4112
4114
  size: "small",
4113
4115
  onClick: y[0] || (y[0] = (S) => ee(!0))
4114
4116
  }, {
4115
- default: b(() => [
4117
+ default: x(() => [
4116
4118
  Y(O(I(n)("filter.applyButtonText")), 1)
4117
4119
  ]),
4118
4120
  _: 1
@@ -4123,7 +4125,7 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
4123
4125
  size: "small",
4124
4126
  onClick: (S) => M(_.value)
4125
4127
  }, {
4126
- default: b(() => [
4128
+ default: x(() => [
4127
4129
  Y(O(I(n)("filter.clearButtonText")), 1)
4128
4130
  ]),
4129
4131
  _: 2
@@ -4139,7 +4141,7 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
4139
4141
  size: "small",
4140
4142
  onClick: E
4141
4143
  }, {
4142
- default: b(() => [
4144
+ default: x(() => [
4143
4145
  Y(O(I(n)("filter.clearAllButtonText")), 1)
4144
4146
  ]),
4145
4147
  _: 1
@@ -4187,19 +4189,19 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
4187
4189
  () => i.action === "enable" ? n("toggleModal.enable.title", { entityType: i.entityType }) : n("toggleModal.disable.title", { entityType: i.entityType })
4188
4190
  ), s = k(
4189
4191
  () => i.action === "enable" ? n("toggleModal.enable.confirmText") : n("toggleModal.disable.confirmText")
4190
- ), c = () => a("cancel"), d = async () => {
4192
+ ), u = () => a("cancel"), d = async () => {
4191
4193
  if (i.onConfirm) {
4192
4194
  o.value = !0;
4193
4195
  try {
4194
4196
  await i.onConfirm(), a("proceed");
4195
- } catch (u) {
4196
- console.error(u);
4197
+ } catch (c) {
4198
+ console.error(c);
4197
4199
  } finally {
4198
4200
  o.value = !1;
4199
4201
  }
4200
4202
  }
4201
4203
  };
4202
- return (u, m) => {
4204
+ return (c, g) => {
4203
4205
  const f = B("KPrompt");
4204
4206
  return p(), K(Nn, { to: "body" }, [
4205
4207
  N(f, {
@@ -4208,18 +4210,18 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
4208
4210
  "data-testid": `${e.entityType}-${e.entityId}-toggle-prompt`,
4209
4211
  title: l.value,
4210
4212
  visible: e.visible,
4211
- onCancel: c,
4213
+ onCancel: u,
4212
4214
  onProceed: d
4213
4215
  }, {
4214
- default: b(() => [
4216
+ default: x(() => [
4215
4217
  N(I(r), {
4216
4218
  keypath: `toggleModal.${i.action}.message`,
4217
4219
  scope: "global"
4218
4220
  }, {
4219
- entityType: b(() => [
4221
+ entityType: x(() => [
4220
4222
  Y(O(e.entityType), 1)
4221
4223
  ]),
4222
- entityName: b(() => [
4224
+ entityName: x(() => [
4223
4225
  L("strong", null, O(e.entityName), 1)
4224
4226
  ]),
4225
4227
  _: 1
@@ -4349,26 +4351,26 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
4349
4351
  }
4350
4352
  },
4351
4353
  setup(e) {
4352
- const t = e, n = R(), { isTruncated: r } = z.useTruncationDetector(n), { i18n: { t: i } } = z.useI18n(), a = i("global.actions.copyId"), o = R(a), l = k(() => t.entityLinkData.deleted ?? !1), s = k(() => t.entityLinkData.id.toString().includes(":") ? t.entityLinkData.id.toString().split(":")[1] : t.entityLinkData.id), c = k(() => `${s.value.toString().slice(0, 5)} (deleted)`), d = async (u) => {
4353
- await u(s.value || "") && (o.value = i("global.actions.copyToClipboard"), setTimeout(() => {
4354
+ const t = e, n = R(), { isTruncated: r } = z.useTruncationDetector(n), { i18n: { t: i } } = z.useI18n(), a = i("global.actions.copyId"), o = R(a), l = k(() => t.entityLinkData.deleted ?? !1), s = k(() => t.entityLinkData.id.toString().includes(":") ? t.entityLinkData.id.toString().split(":")[1] : t.entityLinkData.id), u = k(() => `${s.value.toString().slice(0, 5)} (deleted)`), d = async (c) => {
4355
+ await c(s.value || "") && (o.value = i("global.actions.copyToClipboard"), setTimeout(() => {
4354
4356
  o.value = a;
4355
4357
  }, 1800));
4356
4358
  };
4357
- return (u, m) => {
4358
- const f = B("KTooltip"), x = B("KExternalLink"), v = B("KClipboardProvider");
4359
+ return (c, g) => {
4360
+ const f = B("KTooltip"), b = B("KExternalLink"), v = B("KClipboardProvider");
4359
4361
  return p(), A("div", Tl, [
4360
- l.value ? (p(), A("div", Fl, O(c.value), 1)) : s.value ? s.value ? (p(), K(x, {
4362
+ l.value ? (p(), A("div", Fl, O(u.value), 1)) : s.value ? s.value ? (p(), K(b, {
4361
4363
  key: 2,
4362
4364
  class: "entity-link",
4363
4365
  "hide-icon": !e.newWindow,
4364
4366
  href: e.externalLink,
4365
4367
  target: e.newWindow ? "_blank" : "_self"
4366
4368
  }, {
4367
- default: b(() => [
4369
+ default: x(() => [
4368
4370
  N(f, {
4369
4371
  text: I(r) && e.entityLinkData.label || ""
4370
4372
  }, {
4371
- default: b(() => [
4373
+ default: x(() => [
4372
4374
  L("span", {
4373
4375
  ref_key: "textContent",
4374
4376
  ref: n,
@@ -4387,9 +4389,9 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
4387
4389
  placement: "bottomEnd",
4388
4390
  text: o.value
4389
4391
  }, {
4390
- default: b(() => [
4392
+ default: x(() => [
4391
4393
  N(v, null, {
4392
- default: b(({ copyToClipboard: w }) => [
4394
+ default: x(({ copyToClipboard: w }) => [
4393
4395
  L("span", {
4394
4396
  class: "entity-link-copy-id",
4395
4397
  onClick: He((M) => d(w), ["stop"])