@kong-ui-public/entities-upstreams-targets 2.1.12 → 2.1.13

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,10 +1,10 @@
1
- import { defineComponent as le, ref as P, computed as q, watch as be, renderSlot as ae, createCommentVNode as Q, unref as u, useSlots as dt, onBeforeMount as tt, resolveComponent as M, openBlock as k, createBlock as L, createSlots as Te, withCtx as f, createElementVNode as x, createTextVNode as Z, toDisplayString as S, createVNode as y, createElementBlock as E, renderList as ve, Fragment as de, normalizeClass as qe, withModifiers as Ct, withDirectives as Ve, vShow as Le, useCssVars as Kl, resolveDynamicComponent as ze, normalizeProps as Rs, guardReactiveProps as Ds, mergeProps as _t, onMounted as zs, onUnmounted as Js, normalizeStyle as jl, inject as Ws, pushScopeId as Nl, popScopeId as El, Teleport as Pl, reactive as st } from "vue";
1
+ import { defineComponent as le, ref as P, computed as q, watch as be, renderSlot as ae, createCommentVNode as Q, unref as u, useSlots as dt, onBeforeMount as tt, resolveComponent as M, openBlock as k, createBlock as L, createSlots as Oe, withCtx as f, createElementVNode as x, createTextVNode as Y, toDisplayString as S, createVNode as y, createElementBlock as E, renderList as ve, Fragment as de, normalizeClass as Ie, withModifiers as Ct, withDirectives as Ve, vShow as Le, useCssVars as $t, resolveDynamicComponent as ze, normalizeProps as Rs, guardReactiveProps as Ds, mergeProps as _t, onMounted as zs, onUnmounted as Js, normalizeStyle as Nl, inject as Ws, pushScopeId as Kl, popScopeId as El, Teleport as Pl, reactive as st } from "vue";
2
2
  import Qs from "axios";
3
- import { createI18n as $t, i18nTComponent as Bl } from "@kong-ui-public/i18n";
3
+ import { createI18n as Mt, i18nTComponent as Bl } from "@kong-ui-public/i18n";
4
4
  import { BadgeMethodAppearances as Ys } from "@kong/kongponents";
5
- import { useRouter as Mt } from "vue-router";
6
- var Kt = /* @__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))(Kt || {}), _e = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(_e || {}), Ae = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(Ae || {}), re = /* @__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))(re || {}), oe = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(oe || {});
7
- function jt(e = {}) {
5
+ import { useRouter as jt } from "vue-router";
6
+ var Nt = /* @__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))(Nt || {}), _e = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(_e || {}), Te = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(Te || {}), re = /* @__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))(re || {}), oe = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(oe || {});
7
+ function Kt(e = {}) {
8
8
  return {
9
9
  axiosInstance: Qs.create({
10
10
  withCredentials: !0,
@@ -109,6 +109,9 @@ const er = {
109
109
  enabledLabel: "Enabled",
110
110
  disabledLabel: "Disabled"
111
111
  },
112
+ endpoints: {
113
+ get: "Get"
114
+ },
112
115
  copy: {
113
116
  tooltip: "Copy {label}",
114
117
  success: "Copied!"
@@ -159,8 +162,8 @@ const er = {
159
162
  errors: nr,
160
163
  toggleModal: or
161
164
  };
162
- function Nt() {
163
- const e = $t("en-us", ur);
165
+ function Et() {
166
+ const e = Mt("en-us", ur);
164
167
  return {
165
168
  i18n: e,
166
169
  i18nT: Bl(e)
@@ -216,9 +219,9 @@ function cr(e, l, t, a = {
216
219
  searchKeys: ["id"]
217
220
  }) {
218
221
  t || (t = "100");
219
- const { axiosInstance: s } = jt({
222
+ const { axiosInstance: s } = Kt({
220
223
  headers: e.requestHeaders
221
- }), { i18n: { t: i } } = Nt(), { debounce: r } = Zs(), c = r(async ($) => {
224
+ }), { i18n: { t: i } } = Et(), { debounce: r } = Zs(), c = r(async ($) => {
222
225
  await U($);
223
226
  }, 200), o = P(!1), d = P(""), h = P(""), p = P([]), m = P([]), n = P(void 0), A = u(l);
224
227
  let _ = `${e.apiBaseUrl}${A}`;
@@ -234,49 +237,49 @@ function cr(e, l, t, a = {
234
237
  o.value = !1;
235
238
  }
236
239
  }, H = P(""), U = async ($) => {
237
- var B, T, z;
240
+ var B, T, D;
238
241
  if (H.value !== $)
239
242
  if (H.value = $ || "", n.value === void 0)
240
243
  try {
241
244
  if (o.value = !0, d.value = "", h.value = "", e.app === "konnect") {
242
- let K = _ + "";
243
- $ && (K += `/${$}`);
244
- const { data: O } = await s.get(`${K}?size=${t}`);
245
+ let j = _ + "";
246
+ $ && (j += `/${$}`);
247
+ const { data: O } = await s.get(`${j}?size=${t}`);
245
248
  a.fetchedItemsKey in O ? p.value = O[a.fetchedItemsKey] : O != null && O.id ? p.value = [O] : p.value = [];
246
249
  } else if ($) {
247
- const K = [];
248
- g($) && a.searchKeys.includes("id") ? K.push((async () => {
250
+ const j = [];
251
+ g($) && a.searchKeys.includes("id") ? j.push((async () => {
249
252
  const { data: I } = await s.get(`${_}/${$}`);
250
253
  return [I[a.fetchedItemsKey] ?? I];
251
- })()) : K.push(
254
+ })()) : j.push(
252
255
  ...a.searchKeys.filter((I) => I !== "id").map(async (I) => {
253
- const { data: N } = await s.get(`${_}?${I}=${$}`);
254
- return N[a.fetchedItemsKey];
256
+ const { data: K } = await s.get(`${_}?${I}=${$}`);
257
+ return K[a.fetchedItemsKey];
255
258
  })
256
259
  );
257
- const O = await Promise.all(K), j = /* @__PURE__ */ new Set();
260
+ const O = await Promise.all(j), N = /* @__PURE__ */ new Set();
258
261
  p.value = [], (B = O == null ? void 0 : O.forEach) == null || B.call(O, (I) => {
259
- var N;
260
- (N = I == null ? void 0 : I.forEach) == null || N.call(I, (V) => {
261
- j.has(V.id) || (j.add(V.id), p.value.push(V));
262
+ var K;
263
+ (K = I == null ? void 0 : I.forEach) == null || K.call(I, (V) => {
264
+ N.has(V.id) || (N.add(V.id), p.value.push(V));
262
265
  });
263
266
  });
264
267
  } else
265
268
  p.value = m.value;
266
- } catch (K) {
267
- ((T = K == null ? void 0 : K.response) == null ? void 0 : T.status) === 404 ? h.value = i("debouncedFilter.errors.invalid") : (p.value = [], d.value = i("debouncedFilter.errors.fetch"));
269
+ } catch (j) {
270
+ ((T = j == null ? void 0 : j.response) == null ? void 0 : T.status) === 404 ? h.value = i("debouncedFilter.errors.invalid") : (p.value = [], d.value = i("debouncedFilter.errors.fetch"));
268
271
  } finally {
269
272
  o.value = !1;
270
273
  }
271
274
  else
272
- o.value = !0, h.value = "", $ ? (p.value = (z = n.value) == null ? void 0 : z.filter((K) => {
275
+ o.value = !0, h.value = "", $ ? (p.value = (D = n.value) == null ? void 0 : D.filter((j) => {
273
276
  var O;
274
- let j = !1;
277
+ let N = !1;
275
278
  for (const I of a.searchKeys) {
276
- const N = typeof K[I] == "string" ? (O = K[I]) == null ? void 0 : O.toLowerCase() : K[I];
277
- N != null && N.includes($.toLowerCase()) && (j = !0);
279
+ const K = typeof j[I] == "string" ? (O = j[I]) == null ? void 0 : O.toLowerCase() : j[I];
280
+ K != null && K.includes($.toLowerCase()) && (N = !0);
278
281
  }
279
- return j;
282
+ return N;
280
283
  }), (!p.value || !p.value.length) && (h.value = i("debouncedFilter.errors.invalid"))) : p.value = n.value, o.value = !1;
281
284
  };
282
285
  return {
@@ -296,7 +299,7 @@ function dr(e, l) {
296
299
  return a.value.search = "", (s) => `${a.value.href}/${s}`;
297
300
  }
298
301
  function hr() {
299
- const { i18n: { t: e } } = Nt();
302
+ const { i18n: { t: e } } = Et();
300
303
  return {
301
304
  getMessageFromError: (l) => {
302
305
  var t, a, s;
@@ -353,14 +356,14 @@ function Ll(e, l) {
353
356
  };
354
357
  }
355
358
  function fr(e, l, t = "data") {
356
- const a = u(l), { axiosInstance: s } = jt({
359
+ const a = u(l), { axiosInstance: s } = Kt({
357
360
  headers: e.requestHeaders
358
361
  }), i = Ll(e, a), r = P({
359
- status: Ae.Idle
362
+ status: Te.Idle
360
363
  });
361
364
  return { fetcher: async (c) => {
362
365
  try {
363
- r.value = { status: Ae.Loading };
366
+ r.value = { status: Te.Loading };
364
367
  const o = i(c), { data: d } = await s.get(o), h = t && t.replace(/[^\w-_]/gi, "");
365
368
  let p;
366
369
  d[h] && Array.isArray(d[h]) ? p = d[h] : Array.isArray(d) ? p = d : p = Object.keys(d).length ? [d] : [];
@@ -374,7 +377,7 @@ function fr(e, l, t = "data") {
374
377
  } : null
375
378
  };
376
379
  return r.value = {
377
- status: Ae.Idle,
380
+ status: Te.Idle,
378
381
  response: m
379
382
  }, m;
380
383
  } catch (o) {
@@ -383,11 +386,11 @@ function fr(e, l, t = "data") {
383
386
  total: 0
384
387
  };
385
388
  return c.query && o.response.status === 404 ? (r.value = {
386
- status: Ae.NoResults,
389
+ status: Te.NoResults,
387
390
  response: d,
388
391
  error: o
389
392
  }, d) : (r.value = {
390
- status: Ae.Error,
393
+ status: Te.Error,
391
394
  response: d,
392
395
  error: o
393
396
  }, d);
@@ -401,22 +404,22 @@ function mr() {
401
404
  convertKeyToTitle: e
402
405
  };
403
406
  }
404
- const Rl = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, ol = (e) => {
407
+ const Rl = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, ul = (e) => {
405
408
  if (typeof e != "string")
406
409
  throw new TypeError("Invalid argument expected string");
407
410
  const l = e.match(Rl);
408
411
  if (!l)
409
412
  throw new Error(`Invalid argument not valid semver ('${e}' received)`);
410
413
  return l.shift(), l;
411
- }, ul = (e) => e === "*" || e === "x" || e === "X", cl = (e) => {
414
+ }, cl = (e) => e === "*" || e === "x" || e === "X", dl = (e) => {
412
415
  const l = parseInt(e, 10);
413
416
  return isNaN(l) ? e : l;
414
417
  }, gr = (e, l) => typeof e != typeof l ? [String(e), String(l)] : [e, l], yr = (e, l) => {
415
- if (ul(e) || ul(l))
418
+ if (cl(e) || cl(l))
416
419
  return 0;
417
- const [t, a] = gr(cl(e), cl(l));
420
+ const [t, a] = gr(dl(e), dl(l));
418
421
  return t > a ? 1 : t < a ? -1 : 0;
419
- }, dl = (e, l) => {
422
+ }, hl = (e, l) => {
420
423
  for (let t = 0; t < Math.max(e.length, l.length); t++) {
421
424
  const a = yr(e[t] || "0", l[t] || "0");
422
425
  if (a !== 0)
@@ -424,9 +427,9 @@ const Rl = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
424
427
  }
425
428
  return 0;
426
429
  }, vr = (e, l) => {
427
- const t = ol(e), a = ol(l), s = t.pop(), i = a.pop(), r = dl(t, a);
428
- return r !== 0 ? r : s && i ? dl(s.split("."), i.split(".")) : s || i ? s ? -1 : 1 : 0;
429
- }, hl = (e, l, t) => {
430
+ const t = ul(e), a = ul(l), s = t.pop(), i = a.pop(), r = hl(t, a);
431
+ return r !== 0 ? r : s && i ? hl(s.split("."), i.split(".")) : s || i ? s ? -1 : 1 : 0;
432
+ }, pl = (e, l, t) => {
430
433
  br(t);
431
434
  const a = vr(e, l);
432
435
  return Dl[t].includes(a);
@@ -437,11 +440,11 @@ const Rl = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
437
440
  "<=": [-1, 0],
438
441
  "<": [-1],
439
442
  "!=": [-1, 1]
440
- }, pl = Object.keys(Dl), br = (e) => {
443
+ }, fl = Object.keys(Dl), br = (e) => {
441
444
  if (typeof e != "string")
442
445
  throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
443
- if (pl.indexOf(e) === -1)
444
- throw new Error(`Invalid operator, expected one of ${pl.join("|")}`);
446
+ if (fl.indexOf(e) === -1)
447
+ throw new Error(`Invalid operator, expected one of ${fl.join("|")}`);
445
448
  }, kr = (e) => typeof e == "string" && /^[v\d]/.test(e) && Rl.test(e);
446
449
  function Cr(e) {
447
450
  const { gatewayInfo: l, supportedRange: t } = e;
@@ -454,7 +457,7 @@ function Cr(e) {
454
457
  if (!i)
455
458
  return !1;
456
459
  const [r, c] = i;
457
- return !(r && hl(s, r, "<") || c && hl(s, c, ">"));
460
+ return !(r && pl(s, r, "<") || c && pl(s, c, ">"));
458
461
  }
459
462
  function _r(e) {
460
463
  const l = P(0), t = P(0), a = P(!1);
@@ -465,7 +468,7 @@ function _r(e) {
465
468
  };
466
469
  }
467
470
  const he = {
468
- useAxios: jt,
471
+ useAxios: Kt,
469
472
  useDebouncedFilter: cr,
470
473
  useDeleteUrlBuilder: dr,
471
474
  useErrors: hr,
@@ -474,7 +477,7 @@ const he = {
474
477
  useFetchUrlBuilder: Ll,
475
478
  useHelpers: Vl,
476
479
  useStringHelpers: mr,
477
- useI18n: Nt,
480
+ useI18n: Et,
478
481
  useGatewayFeatureSupported: Cr,
479
482
  useTruncationDetector: _r
480
483
  }, wr = {
@@ -486,12 +489,12 @@ const he = {
486
489
  }, Sr = "Copy to clipboard", Ir = {
487
490
  message: wr,
488
491
  iconTitle: Sr
489
- }, xr = "kong-ui-copy-uuid-notify", fl = "24px", Hr = (e, l) => {
492
+ }, xr = "kong-ui-copy-uuid-notify", ml = "24px", Hr = (e, l) => {
490
493
  const t = e.__vccOpts || e;
491
494
  for (const [a, s] of l)
492
495
  t[a] = s;
493
496
  return t;
494
- }, Ar = (e) => (Nl("data-v-641e0aee"), e = e(), El(), e), Tr = ["aria-hidden"], Or = {
497
+ }, Ar = (e) => (Kl("data-v-641e0aee"), e = e(), El(), e), Tr = ["aria-hidden"], Or = {
495
498
  key: 0,
496
499
  "data-testid": "kui-icon-svg-title"
497
500
  }, qr = /* @__PURE__ */ Ar(() => /* @__PURE__ */ x("path", {
@@ -528,7 +531,7 @@ const he = {
528
531
  size: {
529
532
  type: [Number, String],
530
533
  required: !1,
531
- default: fl,
534
+ default: ml,
532
535
  // if setting to the imported const fails, just pass a number of 24 as the default.
533
536
  validator: (e) => {
534
537
  if (typeof e == "number" && e > 0)
@@ -557,7 +560,7 @@ const he = {
557
560
  if (i && !isNaN(i) && Number.isInteger(i) && i > 0)
558
561
  return `${i}px`;
559
562
  }
560
- return fl;
563
+ return ml;
561
564
  }), a = q(() => ({
562
565
  boxSizing: "border-box",
563
566
  color: l.color,
@@ -570,7 +573,7 @@ const he = {
570
573
  "aria-hidden": e.decorative ? "true" : void 0,
571
574
  class: "kui-icon copy-icon",
572
575
  "data-testid": "kui-icon-wrapper-copy-icon",
573
- style: jl(a.value)
576
+ style: Nl(a.value)
574
577
  }, {
575
578
  default: f(() => [
576
579
  (k(), E("svg", {
@@ -590,7 +593,7 @@ const he = {
590
593
  _: 1
591
594
  }, 8, ["aria-hidden", "style"]));
592
595
  }
593
- }), Ur = /* @__PURE__ */ Hr(Fr, [["__scopeId", "data-v-641e0aee"]]), $r = "16px", Mr = { class: "kong-ui-copy-uuid" }, Kr = ["onClick"], ml = 15, jr = /* @__PURE__ */ le({
596
+ }), Ur = /* @__PURE__ */ Hr(Fr, [["__scopeId", "data-v-641e0aee"]]), $r = "16px", Mr = { class: "kong-ui-copy-uuid" }, jr = ["onClick"], gl = 15, Nr = /* @__PURE__ */ le({
594
597
  __name: "CopyUuid",
595
598
  props: {
596
599
  uuid: {
@@ -634,7 +637,7 @@ const he = {
634
637
  },
635
638
  emits: ["success", "error"],
636
639
  setup(e, { emit: l }) {
637
- const { t } = $t("en-us", Ir), a = e, s = l, i = a.notify || Ws(xr, () => {
640
+ const { t } = Mt("en-us", Ir), a = e, s = l, i = a.notify || Ws(xr, () => {
638
641
  }), r = q(() => a.idTooltip ? {
639
642
  label: a.idTooltip,
640
643
  positionFixed: !0,
@@ -662,7 +665,7 @@ const he = {
662
665
  }), c.value ? p(t("message.fail")) : s("error", a.uuid);
663
666
  return;
664
667
  }
665
- const g = ((A = a.uuid) == null ? void 0 : A.length) > ml, b = a.format === "hidden" || a.format === "redacted" ? t("message.success.prefix") : `"${((_ = a.uuid) == null ? void 0 : _.substring(0, ml)) + (g ? "..." : "")}"`;
668
+ const g = ((A = a.uuid) == null ? void 0 : A.length) > gl, b = a.format === "hidden" || a.format === "redacted" ? t("message.success.prefix") : `"${((_ = a.uuid) == null ? void 0 : _.substring(0, gl)) + (g ? "..." : "")}"`;
666
669
  typeof i == "function" && i({
667
670
  type: "success",
668
671
  message: `${b}${t("message.success.content")}`
@@ -674,7 +677,7 @@ const he = {
674
677
  e.format !== "hidden" ? (k(), L(ze(e.idTooltip ? "KTooltip" : "div"), _t({ key: 0 }, r.value, { "data-testid": "copy-id" }), {
675
678
  default: f(() => [
676
679
  x("div", {
677
- class: qe([
680
+ class: Ie([
678
681
  "uuid-container",
679
682
  e.truncated ? "truncated-uuid" : null,
680
683
  e.useMono ? "mono" : null
@@ -700,7 +703,7 @@ const he = {
700
703
  size: u($r),
701
704
  title: u(t)("iconTitle")
702
705
  }, null, 8, ["color", "decorative", "size", "title"])
703
- ], 8, Kr)
706
+ ], 8, jr)
704
707
  ]),
705
708
  _: 1
706
709
  })
@@ -710,12 +713,12 @@ const he = {
710
713
  ]);
711
714
  };
712
715
  }
713
- }), Nr = (e, l) => {
716
+ }), Kr = (e, l) => {
714
717
  const t = e.__vccOpts || e;
715
718
  for (const [a, s] of l)
716
719
  t[a] = s;
717
720
  return t;
718
- }, zl = /* @__PURE__ */ Nr(jr, [["__scopeId", "data-v-0c07874b"]]), Er = {
721
+ }, zl = /* @__PURE__ */ Kr(Nr, [["__scopeId", "data-v-0c07874b"]]), Er = {
719
722
  key: 0,
720
723
  class: "config-card-fieldset-title"
721
724
  }, Pr = /* @__PURE__ */ le({
@@ -743,13 +746,13 @@ const he = {
743
746
  return l.isArrayItem ? (o = i.value) != null && o.name ? a(i.value.name, "_") : t("baseConfigCard.general.entryTitle", { index: l.index }) : "";
744
747
  });
745
748
  return (o, d) => (k(), L(ze(e.isArrayItem ? "fieldset" : "div"), {
746
- class: qe(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
749
+ class: Ie(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
747
750
  }, {
748
751
  default: f(() => [
749
752
  e.isArrayItem ? (k(), E("legend", Er, [
750
753
  x("b", null, S(c.value), 1)
751
754
  ])) : Q("", !0),
752
- (k(!0), E(de, null, ve(Object.keys(r.value), (h, p) => (k(), L(Et, {
755
+ (k(!0), E(de, null, ve(Object.keys(r.value), (h, p) => (k(), L(Pt, {
753
756
  key: `${s.value}-property-${p}`,
754
757
  item: {
755
758
  key: h,
@@ -786,7 +789,7 @@ const he = {
786
789
  onClick: a[0] || (a[0] = (i) => t.$emit("navigation-click", e.item))
787
790
  }, {
788
791
  default: f(() => [
789
- Z(S(e.item.value || u(l)("baseConfigCard.commonFields.link")), 1)
792
+ Y(S(e.item.value || u(l)("baseConfigCard.commonFields.link")), 1)
790
793
  ]),
791
794
  _: 1
792
795
  })
@@ -809,7 +812,7 @@ const he = {
809
812
  appearance: e.status ? "success" : "neutral"
810
813
  }, {
811
814
  default: f(() => [
812
- Z(S(e.status ? u(l)("baseConfigCard.statusBadge.enabledLabel") : u(l)("baseConfigCard.statusBadge.disabledLabel")), 1)
815
+ Y(S(e.status ? u(l)("baseConfigCard.statusBadge.enabledLabel") : u(l)("baseConfigCard.statusBadge.disabledLabel")), 1)
813
816
  ]),
814
817
  _: 1
815
818
  }, 8, ["appearance"]);
@@ -838,7 +841,7 @@ const he = {
838
841
  },
839
842
  emits: ["navigation-click"],
840
843
  setup(e, { emit: l }) {
841
- Kl((A) => ({
844
+ $t((A) => ({
842
845
  "0da74440": h.value ? "none" : `solid ${u(Jr)} ${u(Dr)}`,
843
846
  "02a039da": d.value && c.value ? "block" : "flex",
844
847
  "690f3ced": d.value && c.value ? "100%" : t.slim ? "50%" : "25%",
@@ -979,9 +982,9 @@ const he = {
979
982
  "data-testid": `${e.item.key}-label`
980
983
  }, [
981
984
  ae(A.$slots, "label", { item: e.item }, () => [
982
- y(g, { "tooltip-attributes": { maxWidth: "500px" } }, Te({
985
+ y(g, { "tooltip-attributes": { maxWidth: "500px" } }, Oe({
983
986
  default: f(() => [
984
- Z(S(e.item.label) + " ", 1)
987
+ Y(S(e.item.label) + " ", 1)
985
988
  ]),
986
989
  _: 2
987
990
  }, [
@@ -992,7 +995,7 @@ const he = {
992
995
  "data-testid": `${e.item.key}-label-tooltip`
993
996
  }, [
994
997
  ae(A.$slots, "label-tooltip", {}, () => [
995
- Z(S(e.item.tooltip), 1)
998
+ Y(S(e.item.tooltip), 1)
996
999
  ], !0)
997
1000
  ], 8, Zr)
998
1001
  ]),
@@ -1023,7 +1026,7 @@ const he = {
1023
1026
  "truncation-tooltip": ""
1024
1027
  }, {
1025
1028
  default: f(() => [
1026
- Z(S(U), 1)
1029
+ Y(S(U), 1)
1027
1030
  ]),
1028
1031
  _: 2
1029
1032
  }, 1032, ["data-testid", "tooltip"]))), 128))
@@ -1050,7 +1053,7 @@ const he = {
1050
1053
  "data-testid": `${e.item.key}-badge-method-${$}`
1051
1054
  }, {
1052
1055
  default: f(() => [
1053
- Z(S(U), 1)
1056
+ Y(S(U), 1)
1054
1057
  ]),
1055
1058
  _: 2
1056
1059
  }, 1032, ["appearance", "data-testid"]))), 128))
@@ -1073,7 +1076,7 @@ const he = {
1073
1076
  x("span", {
1074
1077
  ref_key: "textContent",
1075
1078
  ref: m,
1076
- class: qe(["attrs-data-text", { truncated: e.truncated }])
1079
+ class: Ie(["attrs-data-text", { truncated: e.truncated }])
1077
1080
  }, S(p.value.text), 3)
1078
1081
  ]),
1079
1082
  _: 1
@@ -1090,7 +1093,7 @@ const he = {
1090
1093
  ]);
1091
1094
  };
1092
1095
  }
1093
- }), Et = /* @__PURE__ */ Ce(ii, [["__scopeId", "data-v-9c87856b"]]);
1096
+ }), Pt = /* @__PURE__ */ Ce(ii, [["__scopeId", "data-v-9c87856b"]]);
1094
1097
  /*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
1095
1098
  function Wl(e) {
1096
1099
  return typeof e > "u" || e === null;
@@ -1217,7 +1220,7 @@ function wi(e, l) {
1217
1220
  throw new ye('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
1218
1221
  }
1219
1222
  var fe = wi;
1220
- function gl(e, l) {
1223
+ function yl(e, l) {
1221
1224
  var t = [];
1222
1225
  return e[l].forEach(function(a) {
1223
1226
  var s = t.length;
@@ -1271,7 +1274,7 @@ wt.prototype.extend = function(e) {
1271
1274
  throw new ye("Specified list of YAML types (or a single Type object) contains a non-Type object.");
1272
1275
  });
1273
1276
  var a = Object.create(wt.prototype);
1274
- return a.implicit = (this.implicit || []).concat(l), a.explicit = (this.explicit || []).concat(t), a.compiledImplicit = gl(a, "implicit"), a.compiledExplicit = gl(a, "explicit"), a.compiledTypeMap = Si(a.compiledImplicit, a.compiledExplicit), a;
1277
+ return a.implicit = (this.implicit || []).concat(l), a.explicit = (this.explicit || []).concat(t), a.compiledImplicit = yl(a, "implicit"), a.compiledExplicit = yl(a, "explicit"), a.compiledTypeMap = Si(a.compiledImplicit, a.compiledExplicit), a;
1275
1278
  };
1276
1279
  var Yl = wt, Zl = new fe("tag:yaml.org,2002:str", {
1277
1280
  kind: "scalar",
@@ -1431,14 +1434,14 @@ function Mi(e) {
1431
1434
  }
1432
1435
  return t * parseInt(l, 10);
1433
1436
  }
1434
- function Ki(e) {
1437
+ function ji(e) {
1435
1438
  return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !ce.isNegativeZero(e);
1436
1439
  }
1437
1440
  var ls = new fe("tag:yaml.org,2002:int", {
1438
1441
  kind: "scalar",
1439
1442
  resolve: $i,
1440
1443
  construct: Mi,
1441
- predicate: Ki,
1444
+ predicate: ji,
1442
1445
  represent: {
1443
1446
  binary: function(e) {
1444
1447
  return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
@@ -1461,12 +1464,12 @@ var ls = new fe("tag:yaml.org,2002:int", {
1461
1464
  decimal: [10, "dec"],
1462
1465
  hexadecimal: [16, "hex"]
1463
1466
  }
1464
- }), ji = new RegExp(
1467
+ }), Ni = new RegExp(
1465
1468
  // 2.5e4, 2.5 and integers
1466
1469
  "^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
1467
1470
  );
1468
- function Ni(e) {
1469
- return !(e === null || !ji.test(e) || // Quick hack to not allow integers end with `_`
1471
+ function Ki(e) {
1472
+ return !(e === null || !Ni.test(e) || // Quick hack to not allow integers end with `_`
1470
1473
  // Probably should update regexp & check speed
1471
1474
  e[e.length - 1] === "_");
1472
1475
  }
@@ -1513,7 +1516,7 @@ function Vi(e) {
1513
1516
  }
1514
1517
  var ss = new fe("tag:yaml.org,2002:float", {
1515
1518
  kind: "scalar",
1516
- resolve: Ni,
1519
+ resolve: Ki,
1517
1520
  construct: Ei,
1518
1521
  predicate: Vi,
1519
1522
  represent: Bi,
@@ -1562,12 +1565,12 @@ function zi(e) {
1562
1565
  var cs = new fe("tag:yaml.org,2002:merge", {
1563
1566
  kind: "scalar",
1564
1567
  resolve: zi
1565
- }), Pt = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
1568
+ }), Bt = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
1566
1569
  \r`;
1567
1570
  function Ji(e) {
1568
1571
  if (e === null)
1569
1572
  return !1;
1570
- var l, t, a = 0, s = e.length, i = Pt;
1573
+ var l, t, a = 0, s = e.length, i = Bt;
1571
1574
  for (t = 0; t < s; t++)
1572
1575
  if (l = i.indexOf(e.charAt(t)), !(l > 64)) {
1573
1576
  if (l < 0)
@@ -1577,13 +1580,13 @@ function Ji(e) {
1577
1580
  return a % 8 === 0;
1578
1581
  }
1579
1582
  function Wi(e) {
1580
- var l, t, a = e.replace(/[\r\n=]/g, ""), s = a.length, i = Pt, r = 0, c = [];
1583
+ var l, t, a = e.replace(/[\r\n=]/g, ""), s = a.length, i = Bt, r = 0, c = [];
1581
1584
  for (l = 0; l < s; l++)
1582
1585
  l % 4 === 0 && l && (c.push(r >> 16 & 255), c.push(r >> 8 & 255), c.push(r & 255)), r = r << 6 | i.indexOf(a.charAt(l));
1583
1586
  return t = s % 4 * 6, t === 0 ? (c.push(r >> 16 & 255), c.push(r >> 8 & 255), c.push(r & 255)) : t === 18 ? (c.push(r >> 10 & 255), c.push(r >> 2 & 255)) : t === 12 && c.push(r >> 4 & 255), new Uint8Array(c);
1584
1587
  }
1585
1588
  function Qi(e) {
1586
- var l = "", t = 0, a, s, i = e.length, r = Pt;
1589
+ var l = "", t = 0, a, s, i = e.length, r = Bt;
1587
1590
  for (a = 0; a < i; a++)
1588
1591
  a % 3 === 0 && a && (l += r[t >> 18 & 63], l += r[t >> 12 & 63], l += r[t >> 6 & 63], l += r[t & 63]), t = (t << 8) + e[a];
1589
1592
  return s = i % 3, s === 0 ? (l += r[t >> 18 & 63], l += r[t >> 12 & 63], l += r[t >> 6 & 63], l += r[t & 63]) : s === 2 ? (l += r[t >> 10 & 63], l += r[t >> 4 & 63], l += r[t << 2 & 63], l += r[64]) : s === 1 && (l += r[t >> 2 & 63], l += r[t << 4 & 63], l += r[64], l += r[64]), l;
@@ -1668,7 +1671,7 @@ var fs = new fe("tag:yaml.org,2002:set", {
1668
1671
  kind: "mapping",
1669
1672
  resolve: rn,
1670
1673
  construct: nn
1671
- }), Bt = is.extend({
1674
+ }), Vt = is.extend({
1672
1675
  implicit: [
1673
1676
  us,
1674
1677
  cs
@@ -1679,8 +1682,8 @@ var fs = new fe("tag:yaml.org,2002:set", {
1679
1682
  ps,
1680
1683
  fs
1681
1684
  ]
1682
- }), Fe = Object.prototype.hasOwnProperty, rt = 1, ms = 2, gs = 3, it = 4, kt = 1, on = 2, yl = 3, un = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, cn = /[\x85\u2028\u2029]/, dn = /[,\[\]\{\}]/, ys = /^(?:!|!!|![a-z\-]+!)$/i, vs = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1683
- function vl(e) {
1685
+ }), Fe = Object.prototype.hasOwnProperty, rt = 1, ms = 2, gs = 3, it = 4, kt = 1, on = 2, vl = 3, un = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, cn = /[\x85\u2028\u2029]/, dn = /[,\[\]\{\}]/, ys = /^(?:!|!!|![a-z\-]+!)$/i, vs = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1686
+ function bl(e) {
1684
1687
  return Object.prototype.toString.call(e);
1685
1688
  }
1686
1689
  function we(e) {
@@ -1705,7 +1708,7 @@ function pn(e) {
1705
1708
  function fn(e) {
1706
1709
  return 48 <= e && e <= 57 ? e - 48 : -1;
1707
1710
  }
1708
- function bl(e) {
1711
+ function kl(e) {
1709
1712
  return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
1710
1713
  ` : e === 118 ? "\v" : e === 102 ? "\f" : e === 114 ? "\r" : e === 101 ? "\x1B" : e === 32 ? " " : e === 34 ? '"' : e === 47 ? "/" : e === 92 ? "\\" : e === 78 ? "…" : e === 95 ? " " : e === 76 ? "\u2028" : e === 80 ? "\u2029" : "";
1711
1714
  }
@@ -1716,10 +1719,10 @@ function mn(e) {
1716
1719
  );
1717
1720
  }
1718
1721
  var bs = new Array(256), ks = new Array(256);
1719
- for (var Ke = 0; Ke < 256; Ke++)
1720
- bs[Ke] = bl(Ke) ? 1 : 0, ks[Ke] = bl(Ke);
1722
+ for (var je = 0; je < 256; je++)
1723
+ bs[je] = kl(je) ? 1 : 0, ks[je] = kl(je);
1721
1724
  function gn(e, l) {
1722
- this.input = e, this.filename = l.filename || null, this.schema = l.schema || Bt, this.onWarning = l.onWarning || null, this.legacy = l.legacy || !1, this.json = l.json || !1, this.listener = l.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 = [];
1725
+ this.input = e, this.filename = l.filename || null, this.schema = l.schema || Vt, this.onWarning = l.onWarning || null, this.legacy = l.legacy || !1, this.json = l.json || !1, this.listener = l.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 = [];
1723
1726
  }
1724
1727
  function Cs(e, l) {
1725
1728
  var t = {
@@ -1738,7 +1741,7 @@ function R(e, l) {
1738
1741
  function nt(e, l) {
1739
1742
  e.onWarning && e.onWarning.call(null, Cs(e, l));
1740
1743
  }
1741
- var kl = {
1744
+ var Cl = {
1742
1745
  YAML: function(e, l, t) {
1743
1746
  var a, s, i;
1744
1747
  e.version !== null && R(e, "duplication of %YAML directive"), t.length !== 1 && R(e, "YAML directive accepts exactly one argument"), a = /^([0-9]+)\.([0-9]+)$/.exec(t[0]), a === null && R(e, "ill-formed argument of the YAML directive"), s = parseInt(a[1], 10), i = parseInt(a[2], 10), s !== 1 && R(e, "unacceptable YAML version of the document"), e.version = t[0], e.checkLineBreaks = i < 2, i !== 1 && i !== 2 && nt(e, "unsupported YAML version of the document");
@@ -1754,7 +1757,7 @@ var kl = {
1754
1757
  e.tagMap[a] = s;
1755
1758
  }
1756
1759
  };
1757
- function Oe(e, l, t, a) {
1760
+ function qe(e, l, t, a) {
1758
1761
  var s, i, r, c;
1759
1762
  if (l < t) {
1760
1763
  if (c = e.input.slice(l, t), a)
@@ -1765,7 +1768,7 @@ function Oe(e, l, t, a) {
1765
1768
  e.result += c;
1766
1769
  }
1767
1770
  }
1768
- function Cl(e, l, t, a) {
1771
+ function _l(e, l, t, a) {
1769
1772
  var s, i, r, c;
1770
1773
  for (ce.isObject(t) || R(e, "cannot merge mappings; the provided source object is unacceptable"), s = Object.keys(t), r = 0, c = s.length; r < c; r += 1)
1771
1774
  i = s[r], Fe.call(l, i) || (l[i] = t[i], a[i] = !0);
@@ -1774,13 +1777,13 @@ function Be(e, l, t, a, s, i, r, c, o) {
1774
1777
  var d, h;
1775
1778
  if (Array.isArray(s))
1776
1779
  for (s = Array.prototype.slice.call(s), d = 0, h = s.length; d < h; d += 1)
1777
- Array.isArray(s[d]) && R(e, "nested arrays are not supported inside keys"), typeof s == "object" && vl(s[d]) === "[object Object]" && (s[d] = "[object Object]");
1778
- if (typeof s == "object" && vl(s) === "[object Object]" && (s = "[object Object]"), s = String(s), l === null && (l = {}), a === "tag:yaml.org,2002:merge")
1780
+ Array.isArray(s[d]) && R(e, "nested arrays are not supported inside keys"), typeof s == "object" && bl(s[d]) === "[object Object]" && (s[d] = "[object Object]");
1781
+ if (typeof s == "object" && bl(s) === "[object Object]" && (s = "[object Object]"), s = String(s), l === null && (l = {}), a === "tag:yaml.org,2002:merge")
1779
1782
  if (Array.isArray(i))
1780
1783
  for (d = 0, h = i.length; d < h; d += 1)
1781
- Cl(e, l, i[d], t);
1784
+ _l(e, l, i[d], t);
1782
1785
  else
1783
- Cl(e, l, i, t);
1786
+ _l(e, l, i, t);
1784
1787
  else
1785
1788
  !e.json && !Fe.call(t, s) && Fe.call(l, s) && (e.line = r || e.line, e.lineStart = c || e.lineStart, e.position = o || e.position, R(e, "duplicated mapping key")), s === "__proto__" ? Object.defineProperty(l, s, {
1786
1789
  configurable: !0,
@@ -1790,7 +1793,7 @@ function Be(e, l, t, a, s, i, r, c, o) {
1790
1793
  }) : l[s] = i, delete t[s];
1791
1794
  return l;
1792
1795
  }
1793
- function Vt(e) {
1796
+ function Lt(e) {
1794
1797
  var l;
1795
1798
  l = e.input.charCodeAt(e.position), l === 10 ? e.position++ : l === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : R(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
1796
1799
  }
@@ -1803,7 +1806,7 @@ function ue(e, l, t) {
1803
1806
  s = e.input.charCodeAt(++e.position);
1804
1807
  while (s !== 10 && s !== 13 && s !== 0);
1805
1808
  if (we(s))
1806
- for (Vt(e), s = e.input.charCodeAt(e.position), a++, e.lineIndent = 0; s === 32; )
1809
+ for (Lt(e), s = e.input.charCodeAt(e.position), a++, e.lineIndent = 0; s === 32; )
1807
1810
  e.lineIndent++, s = e.input.charCodeAt(++e.position);
1808
1811
  else
1809
1812
  break;
@@ -1814,7 +1817,7 @@ function ht(e) {
1814
1817
  var l = e.position, t;
1815
1818
  return t = e.input.charCodeAt(l), !!((t === 45 || t === 46) && t === e.input.charCodeAt(l + 1) && t === e.input.charCodeAt(l + 2) && (l += 3, t = e.input.charCodeAt(l), t === 0 || ke(t)));
1816
1819
  }
1817
- function Lt(e, l) {
1820
+ function Rt(e, l) {
1818
1821
  l === 1 ? e.result += " " : l > 1 && (e.result += ce.repeat(`
1819
1822
  `, l - 1));
1820
1823
  }
@@ -1841,9 +1844,9 @@ function yn(e, l, t) {
1841
1844
  break;
1842
1845
  }
1843
1846
  }
1844
- c && (Oe(e, i, r, !1), Lt(e, e.line - o), i = r = e.position, c = !1), $e(n) || (r = e.position + 1), n = e.input.charCodeAt(++e.position);
1847
+ c && (qe(e, i, r, !1), Rt(e, e.line - o), i = r = e.position, c = !1), $e(n) || (r = e.position + 1), n = e.input.charCodeAt(++e.position);
1845
1848
  }
1846
- return Oe(e, i, r, !1), e.result ? !0 : (e.kind = p, e.result = m, !1);
1849
+ return qe(e, i, r, !1), e.result ? !0 : (e.kind = p, e.result = m, !1);
1847
1850
  }
1848
1851
  function vn(e, l) {
1849
1852
  var t, a, s;
@@ -1851,12 +1854,12 @@ function vn(e, l) {
1851
1854
  return !1;
1852
1855
  for (e.kind = "scalar", e.result = "", e.position++, a = s = e.position; (t = e.input.charCodeAt(e.position)) !== 0; )
1853
1856
  if (t === 39)
1854
- if (Oe(e, a, e.position, !0), t = e.input.charCodeAt(++e.position), t === 39)
1857
+ if (qe(e, a, e.position, !0), t = e.input.charCodeAt(++e.position), t === 39)
1855
1858
  a = e.position, e.position++, s = e.position;
1856
1859
  else
1857
1860
  return !0;
1858
1861
  else
1859
- we(t) ? (Oe(e, a, s, !0), Lt(e, ue(e, !1, l)), a = s = e.position) : e.position === e.lineStart && ht(e) ? R(e, "unexpected end of the document within a single quoted scalar") : (e.position++, s = e.position);
1862
+ we(t) ? (qe(e, a, s, !0), Rt(e, ue(e, !1, l)), a = s = e.position) : e.position === e.lineStart && ht(e) ? R(e, "unexpected end of the document within a single quoted scalar") : (e.position++, s = e.position);
1860
1863
  R(e, "unexpected end of the stream within a single quoted scalar");
1861
1864
  }
1862
1865
  function bn(e, l) {
@@ -1865,9 +1868,9 @@ function bn(e, l) {
1865
1868
  return !1;
1866
1869
  for (e.kind = "scalar", e.result = "", e.position++, t = a = e.position; (c = e.input.charCodeAt(e.position)) !== 0; ) {
1867
1870
  if (c === 34)
1868
- return Oe(e, t, e.position, !0), e.position++, !0;
1871
+ return qe(e, t, e.position, !0), e.position++, !0;
1869
1872
  if (c === 92) {
1870
- if (Oe(e, t, e.position, !0), c = e.input.charCodeAt(++e.position), we(c))
1873
+ if (qe(e, t, e.position, !0), c = e.input.charCodeAt(++e.position), we(c))
1871
1874
  ue(e, !1, l);
1872
1875
  else if (c < 256 && bs[c])
1873
1876
  e.result += ks[c], e.position++;
@@ -1879,7 +1882,7 @@ function bn(e, l) {
1879
1882
  R(e, "unknown escape sequence");
1880
1883
  t = a = e.position;
1881
1884
  } else
1882
- we(c) ? (Oe(e, t, a, !0), Lt(e, ue(e, !1, l)), t = a = e.position) : e.position === e.lineStart && ht(e) ? R(e, "unexpected end of the document within a double quoted scalar") : (e.position++, a = e.position);
1885
+ we(c) ? (qe(e, t, a, !0), Rt(e, ue(e, !1, l)), t = a = e.position) : e.position === e.lineStart && ht(e) ? R(e, "unexpected end of the document within a double quoted scalar") : (e.position++, a = e.position);
1883
1886
  }
1884
1887
  R(e, "unexpected end of the stream within a double quoted scalar");
1885
1888
  }
@@ -1908,7 +1911,7 @@ function Cn(e, l) {
1908
1911
  return !1;
1909
1912
  for (e.kind = "scalar", e.result = ""; p !== 0; )
1910
1913
  if (p = e.input.charCodeAt(++e.position), p === 43 || p === 45)
1911
- kt === s ? s = p === 43 ? yl : on : R(e, "repeat of a chomping mode identifier");
1914
+ kt === s ? s = p === 43 ? vl : on : R(e, "repeat of a chomping mode identifier");
1912
1915
  else if ((h = fn(p)) >= 0)
1913
1916
  h === 0 ? R(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : r ? R(e, "repeat of an indentation width identifier") : (c = l + h - 1, r = !0);
1914
1917
  else
@@ -1923,14 +1926,14 @@ function Cn(e, l) {
1923
1926
  while (!we(p) && p !== 0);
1924
1927
  }
1925
1928
  for (; p !== 0; ) {
1926
- for (Vt(e), e.lineIndent = 0, p = e.input.charCodeAt(e.position); (!r || e.lineIndent < c) && p === 32; )
1929
+ for (Lt(e), e.lineIndent = 0, p = e.input.charCodeAt(e.position); (!r || e.lineIndent < c) && p === 32; )
1927
1930
  e.lineIndent++, p = e.input.charCodeAt(++e.position);
1928
1931
  if (!r && e.lineIndent > c && (c = e.lineIndent), we(p)) {
1929
1932
  o++;
1930
1933
  continue;
1931
1934
  }
1932
1935
  if (e.lineIndent < c) {
1933
- s === yl ? e.result += ce.repeat(`
1936
+ s === vl ? e.result += ce.repeat(`
1934
1937
  `, i ? 1 + o : o) : s === kt && i && (e.result += `
1935
1938
  `);
1936
1939
  break;
@@ -1941,11 +1944,11 @@ function Cn(e, l) {
1941
1944
  `, o) : e.result += ce.repeat(`
1942
1945
  `, i ? 1 + o : o), i = !0, r = !0, o = 0, t = e.position; !we(p) && p !== 0; )
1943
1946
  p = e.input.charCodeAt(++e.position);
1944
- Oe(e, t, e.position, !1);
1947
+ qe(e, t, e.position, !1);
1945
1948
  }
1946
1949
  return !0;
1947
1950
  }
1948
- function _l(e, l) {
1951
+ function wl(e, l) {
1949
1952
  var t, a = e.tag, s = e.anchor, i = [], r, c = !1, o;
1950
1953
  if (e.firstTabInLine !== -1)
1951
1954
  return !1;
@@ -2035,7 +2038,7 @@ function Je(e, l, t, a, s) {
2035
2038
  if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, i = r = c = it === t || gs === t, a && ue(e, !0, -1) && (d = !0, e.lineIndent > l ? o = 1 : e.lineIndent === l ? o = 0 : e.lineIndent < l && (o = -1)), o === 1)
2036
2039
  for (; wn(e) || Sn(e); )
2037
2040
  ue(e, !0, -1) ? (d = !0, c = i, e.lineIndent > l ? o = 1 : e.lineIndent === l ? o = 0 : e.lineIndent < l && (o = -1)) : c = !1;
2038
- if (c && (c = d || s), (o === 1 || it === t) && (rt === t || ms === t ? _ = l : _ = l + 1, g = e.position - e.lineStart, o === 1 ? c && (_l(e, g) || _n(e, g, _)) || kn(e, _) ? h = !0 : (r && Cn(e, _) || vn(e, _) || bn(e, _) ? h = !0 : In(e) ? (h = !0, (e.tag !== null || e.anchor !== null) && R(e, "alias node should not have any properties")) : yn(e, _, rt === t) && (h = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : o === 0 && (h = c && _l(e, g))), e.tag === null)
2041
+ if (c && (c = d || s), (o === 1 || it === t) && (rt === t || ms === t ? _ = l : _ = l + 1, g = e.position - e.lineStart, o === 1 ? c && (wl(e, g) || _n(e, g, _)) || kn(e, _) ? h = !0 : (r && Cn(e, _) || vn(e, _) || bn(e, _) ? h = !0 : In(e) ? (h = !0, (e.tag !== null || e.anchor !== null) && R(e, "alias node should not have any properties")) : yn(e, _, rt === t) && (h = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : o === 0 && (h = c && wl(e, g))), e.tag === null)
2039
2042
  e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2040
2043
  else if (e.tag === "?") {
2041
2044
  for (e.result !== null && e.kind !== "scalar" && R(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), p = 0, m = e.implicitTypes.length; p < m; p += 1)
@@ -2076,7 +2079,7 @@ function xn(e) {
2076
2079
  r = e.input.charCodeAt(++e.position);
2077
2080
  s.push(e.input.slice(t, e.position));
2078
2081
  }
2079
- r !== 0 && Vt(e), Fe.call(kl, a) ? kl[a](e, a, s) : nt(e, 'unknown document directive "' + a + '"');
2082
+ r !== 0 && Lt(e), Fe.call(Cl, a) ? Cl[a](e, a, s) : nt(e, 'unknown document directive "' + a + '"');
2080
2083
  }
2081
2084
  if (ue(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, ue(e, !0, -1)) : i && R(e, "directives end mark is expected"), Je(e, e.lineIndent - 1, it, !1, !0), ue(e, !0, -1), e.checkLineBreaks && cn.test(e.input.slice(l, e.position)) && nt(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && ht(e)) {
2082
2085
  e.input.charCodeAt(e.position) === 46 && (e.position += 3, ue(e, !0, -1));
@@ -2116,7 +2119,7 @@ function An(e, l) {
2116
2119
  var Tn = Hn, On = An, ws = {
2117
2120
  loadAll: Tn,
2118
2121
  load: On
2119
- }, Ss = Object.prototype.toString, Is = Object.prototype.hasOwnProperty, Rt = 65279, qn = 9, Ze = 10, Fn = 13, Un = 32, $n = 33, Mn = 34, St = 35, Kn = 37, jn = 38, Nn = 39, En = 42, xs = 44, Pn = 45, ot = 58, Bn = 61, Vn = 62, Ln = 63, Rn = 64, Hs = 91, As = 93, Dn = 96, Ts = 123, zn = 124, Os = 125, ge = {};
2122
+ }, Ss = Object.prototype.toString, Is = Object.prototype.hasOwnProperty, Dt = 65279, qn = 9, Ze = 10, Fn = 13, Un = 32, $n = 33, Mn = 34, St = 35, jn = 37, Nn = 38, Kn = 39, En = 42, xs = 44, Pn = 45, ot = 58, Bn = 61, Vn = 62, Ln = 63, Rn = 64, Hs = 91, As = 93, Dn = 96, Ts = 123, zn = 124, Os = 125, ge = {};
2120
2123
  ge[0] = "\\0";
2121
2124
  ge[7] = "\\a";
2122
2125
  ge[8] = "\\b";
@@ -2172,9 +2175,9 @@ function Yn(e) {
2172
2175
  }
2173
2176
  var Zn = 1, Ge = 2;
2174
2177
  function Gn(e) {
2175
- this.schema = e.schema || Bt, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = ce.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = Qn(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 === '"' ? Ge : Zn, 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;
2178
+ this.schema = e.schema || Vt, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = ce.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = Qn(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 === '"' ? Ge : Zn, 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;
2176
2179
  }
2177
- function wl(e, l) {
2180
+ function Sl(e, l) {
2178
2181
  for (var t = ce.repeat(" ", l), a = 0, s = -1, i = "", r, c = e.length; a < c; )
2179
2182
  s = e.indexOf(`
2180
2183
  `, a), s === -1 ? (r = e.slice(a), a = c) : (r = e.slice(a, s + 1), a = s + 1), r.length && r !== `
@@ -2196,23 +2199,23 @@ function ut(e) {
2196
2199
  return e === Un || e === qn;
2197
2200
  }
2198
2201
  function Xe(e) {
2199
- return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== Rt || 65536 <= e && e <= 1114111;
2202
+ return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== Dt || 65536 <= e && e <= 1114111;
2200
2203
  }
2201
- function Sl(e) {
2202
- return Xe(e) && e !== Rt && e !== Fn && e !== Ze;
2204
+ function Il(e) {
2205
+ return Xe(e) && e !== Dt && e !== Fn && e !== Ze;
2203
2206
  }
2204
- function Il(e, l, t) {
2205
- var a = Sl(e), s = a && !ut(e);
2207
+ function xl(e, l, t) {
2208
+ var a = Il(e), s = a && !ut(e);
2206
2209
  return (
2207
2210
  // ns-plain-safe
2208
2211
  (t ? (
2209
2212
  // c = flow-in
2210
2213
  a
2211
- ) : a && e !== xs && e !== Hs && e !== As && e !== Ts && e !== Os) && e !== St && !(l === ot && !s) || Sl(l) && !ut(l) && e === St || l === ot && s
2214
+ ) : a && e !== xs && e !== Hs && e !== As && e !== Ts && e !== Os) && e !== St && !(l === ot && !s) || Il(l) && !ut(l) && e === St || l === ot && s
2212
2215
  );
2213
2216
  }
2214
2217
  function eo(e) {
2215
- return Xe(e) && e !== Rt && !ut(e) && e !== Pn && e !== Ln && e !== ot && e !== xs && e !== Hs && e !== As && e !== Ts && e !== Os && e !== St && e !== jn && e !== En && e !== $n && e !== zn && e !== Bn && e !== Vn && e !== Nn && e !== Mn && e !== Kn && e !== Rn && e !== Dn;
2218
+ return Xe(e) && e !== Dt && !ut(e) && e !== Pn && e !== Ln && e !== ot && e !== xs && e !== Hs && e !== As && e !== Ts && e !== Os && e !== St && e !== Nn && e !== En && e !== $n && e !== zn && e !== Bn && e !== Vn && e !== Kn && e !== Mn && e !== jn && e !== Rn && e !== Dn;
2216
2219
  }
2217
2220
  function to(e) {
2218
2221
  return !ut(e) && e !== ot;
@@ -2232,7 +2235,7 @@ function ao(e, l, t, a, s, i, r, c) {
2232
2235
  for (o = 0; o < e.length; d >= 65536 ? o += 2 : o++) {
2233
2236
  if (d = Qe(e, o), !Xe(d))
2234
2237
  return Ee;
2235
- _ = _ && Il(d, h, c), h = d;
2238
+ _ = _ && xl(d, h, c), h = d;
2236
2239
  }
2237
2240
  else {
2238
2241
  for (o = 0; o < e.length; d >= 65536 ? o += 2 : o++) {
@@ -2241,7 +2244,7 @@ function ao(e, l, t, a, s, i, r, c) {
2241
2244
  o - A - 1 > a && e[A + 1] !== " ", A = o);
2242
2245
  else if (!Xe(d))
2243
2246
  return Ee;
2244
- _ = _ && Il(d, h, c), h = d;
2247
+ _ = _ && xl(d, h, c), h = d;
2245
2248
  }
2246
2249
  m = m || n && o - A - 1 > a && e[A + 1] !== " ";
2247
2250
  }
@@ -2272,9 +2275,9 @@ function lo(e, l, t, a, s) {
2272
2275
  case xt:
2273
2276
  return "'" + l.replace(/'/g, "''") + "'";
2274
2277
  case Us:
2275
- return "|" + xl(l, e.indent) + Hl(wl(l, i));
2278
+ return "|" + Hl(l, e.indent) + Al(Sl(l, i));
2276
2279
  case $s:
2277
- return ">" + xl(l, e.indent) + Hl(wl(so(l, r), i));
2280
+ return ">" + Hl(l, e.indent) + Al(Sl(so(l, r), i));
2278
2281
  case Ee:
2279
2282
  return '"' + ro(l) + '"';
2280
2283
  default:
@@ -2282,7 +2285,7 @@ function lo(e, l, t, a, s) {
2282
2285
  }
2283
2286
  }();
2284
2287
  }
2285
- function xl(e, l) {
2288
+ function Hl(e, l) {
2286
2289
  var t = qs(e) ? String(l) : "", a = e[e.length - 1] === `
2287
2290
  `, s = a && (e[e.length - 2] === `
2288
2291
  ` || e === `
@@ -2290,7 +2293,7 @@ function xl(e, l) {
2290
2293
  return t + i + `
2291
2294
  `;
2292
2295
  }
2293
- function Hl(e) {
2296
+ function Al(e) {
2294
2297
  return e[e.length - 1] === `
2295
2298
  ` ? e.slice(0, -1) : e;
2296
2299
  }
@@ -2298,16 +2301,16 @@ function so(e, l) {
2298
2301
  for (var t = /(\n+)([^\n]*)/g, a = function() {
2299
2302
  var d = e.indexOf(`
2300
2303
  `);
2301
- return d = d !== -1 ? d : e.length, t.lastIndex = d, Al(e.slice(0, d), l);
2304
+ return d = d !== -1 ? d : e.length, t.lastIndex = d, Tl(e.slice(0, d), l);
2302
2305
  }(), s = e[0] === `
2303
2306
  ` || e[0] === " ", i, r; r = t.exec(e); ) {
2304
2307
  var c = r[1], o = r[2];
2305
2308
  i = o[0] === " ", a += c + (!s && !i && o !== "" ? `
2306
- ` : "") + Al(o, l), s = i;
2309
+ ` : "") + Tl(o, l), s = i;
2307
2310
  }
2308
2311
  return a;
2309
2312
  }
2310
- function Al(e, l) {
2313
+ function Tl(e, l) {
2311
2314
  if (e === "" || e[0] === " ")
2312
2315
  return e;
2313
2316
  for (var t = / [^ ]/g, a, s = 0, i, r = 0, c = 0, o = ""; a = t.exec(e); )
@@ -2325,19 +2328,19 @@ function ro(e) {
2325
2328
  function io(e, l, t) {
2326
2329
  var a = "", s = e.tag, i, r, c;
2327
2330
  for (i = 0, r = t.length; i < r; i += 1)
2328
- c = t[i], e.replacer && (c = e.replacer.call(t, String(i), c)), (Ie(e, l, c, !1, !1) || typeof c > "u" && Ie(e, l, null, !1, !1)) && (a !== "" && (a += "," + (e.condenseFlow ? "" : " ")), a += e.dump);
2331
+ c = t[i], e.replacer && (c = e.replacer.call(t, String(i), c)), (xe(e, l, c, !1, !1) || typeof c > "u" && xe(e, l, null, !1, !1)) && (a !== "" && (a += "," + (e.condenseFlow ? "" : " ")), a += e.dump);
2329
2332
  e.tag = s, e.dump = "[" + a + "]";
2330
2333
  }
2331
- function Tl(e, l, t, a) {
2334
+ function Ol(e, l, t, a) {
2332
2335
  var s = "", i = e.tag, r, c, o;
2333
2336
  for (r = 0, c = t.length; r < c; r += 1)
2334
- o = t[r], e.replacer && (o = e.replacer.call(t, String(r), o)), (Ie(e, l + 1, o, !0, !0, !1, !0) || typeof o > "u" && Ie(e, l + 1, null, !0, !0, !1, !0)) && ((!a || s !== "") && (s += It(e, l)), e.dump && Ze === e.dump.charCodeAt(0) ? s += "-" : s += "- ", s += e.dump);
2337
+ o = t[r], e.replacer && (o = e.replacer.call(t, String(r), o)), (xe(e, l + 1, o, !0, !0, !1, !0) || typeof o > "u" && xe(e, l + 1, null, !0, !0, !1, !0)) && ((!a || s !== "") && (s += It(e, l)), e.dump && Ze === e.dump.charCodeAt(0) ? s += "-" : s += "- ", s += e.dump);
2335
2338
  e.tag = i, e.dump = s || "[]";
2336
2339
  }
2337
2340
  function no(e, l, t) {
2338
2341
  var a = "", s = e.tag, i = Object.keys(t), r, c, o, d, h;
2339
2342
  for (r = 0, c = i.length; r < c; r += 1)
2340
- h = "", a !== "" && (h += ", "), e.condenseFlow && (h += '"'), o = i[r], d = t[o], e.replacer && (d = e.replacer.call(t, o, d)), Ie(e, l, o, !1, !1) && (e.dump.length > 1024 && (h += "? "), h += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), Ie(e, l, d, !1, !1) && (h += e.dump, a += h));
2343
+ h = "", a !== "" && (h += ", "), e.condenseFlow && (h += '"'), o = i[r], d = t[o], e.replacer && (d = e.replacer.call(t, o, d)), xe(e, l, o, !1, !1) && (e.dump.length > 1024 && (h += "? "), h += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), xe(e, l, d, !1, !1) && (h += e.dump, a += h));
2341
2344
  e.tag = s, e.dump = "{" + a + "}";
2342
2345
  }
2343
2346
  function oo(e, l, t, a) {
@@ -2349,10 +2352,10 @@ function oo(e, l, t, a) {
2349
2352
  else if (e.sortKeys)
2350
2353
  throw new ye("sortKeys must be a boolean or a function");
2351
2354
  for (c = 0, o = r.length; c < o; c += 1)
2352
- m = "", (!a || s !== "") && (m += It(e, l)), d = r[c], h = t[d], e.replacer && (h = e.replacer.call(t, d, h)), Ie(e, l + 1, d, !0, !0, !0) && (p = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, p && (e.dump && Ze === e.dump.charCodeAt(0) ? m += "?" : m += "? "), m += e.dump, p && (m += It(e, l)), Ie(e, l + 1, h, !0, p) && (e.dump && Ze === e.dump.charCodeAt(0) ? m += ":" : m += ": ", m += e.dump, s += m));
2355
+ m = "", (!a || s !== "") && (m += It(e, l)), d = r[c], h = t[d], e.replacer && (h = e.replacer.call(t, d, h)), xe(e, l + 1, d, !0, !0, !0) && (p = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, p && (e.dump && Ze === e.dump.charCodeAt(0) ? m += "?" : m += "? "), m += e.dump, p && (m += It(e, l)), xe(e, l + 1, h, !0, p) && (e.dump && Ze === e.dump.charCodeAt(0) ? m += ":" : m += ": ", m += e.dump, s += m));
2353
2356
  e.tag = i, e.dump = s || "{}";
2354
2357
  }
2355
- function Ol(e, l, t) {
2358
+ function ql(e, l, t) {
2356
2359
  var a, s, i, r, c, o;
2357
2360
  for (s = t ? e.explicitTypes : e.implicitTypes, i = 0, r = s.length; i < r; i += 1)
2358
2361
  if (c = s[i], (c.instanceOf || c.predicate) && (!c.instanceOf || typeof l == "object" && l instanceof c.instanceOf) && (!c.predicate || c.predicate(l))) {
@@ -2369,8 +2372,8 @@ function Ol(e, l, t) {
2369
2372
  }
2370
2373
  return !1;
2371
2374
  }
2372
- function Ie(e, l, t, a, s, i, r) {
2373
- e.tag = null, e.dump = t, Ol(e, t, !1) || Ol(e, t, !0);
2375
+ function xe(e, l, t, a, s, i, r) {
2376
+ e.tag = null, e.dump = t, ql(e, t, !1) || ql(e, t, !0);
2374
2377
  var c = Ss.call(e.dump), o = a, d;
2375
2378
  a && (a = e.flowLevel < 0 || e.flowLevel > l);
2376
2379
  var h = c === "[object Object]" || c === "[object Array]", p, m;
@@ -2380,7 +2383,7 @@ function Ie(e, l, t, a, s, i, r) {
2380
2383
  if (h && m && !e.usedDuplicates[p] && (e.usedDuplicates[p] = !0), c === "[object Object]")
2381
2384
  a && Object.keys(e.dump).length !== 0 ? (oo(e, l, e.dump, s), m && (e.dump = "&ref_" + p + e.dump)) : (no(e, l, e.dump), m && (e.dump = "&ref_" + p + " " + e.dump));
2382
2385
  else if (c === "[object Array]")
2383
- a && e.dump.length !== 0 ? (e.noArrayIndent && !r && l > 0 ? Tl(e, l - 1, e.dump, s) : Tl(e, l, e.dump, s), m && (e.dump = "&ref_" + p + e.dump)) : (io(e, l, e.dump), m && (e.dump = "&ref_" + p + " " + e.dump));
2386
+ a && e.dump.length !== 0 ? (e.noArrayIndent && !r && l > 0 ? Ol(e, l - 1, e.dump, s) : Ol(e, l, e.dump, s), m && (e.dump = "&ref_" + p + e.dump)) : (io(e, l, e.dump), m && (e.dump = "&ref_" + p + " " + e.dump));
2384
2387
  else if (c === "[object String]")
2385
2388
  e.tag !== "?" && lo(e, e.dump, l, i, o);
2386
2389
  else {
@@ -2417,18 +2420,18 @@ function co(e, l) {
2417
2420
  var t = new Gn(l);
2418
2421
  t.noRefs || uo(e, t);
2419
2422
  var a = e;
2420
- return t.replacer && (a = t.replacer.call({ "": a }, "", a)), Ie(t, 0, a, !0, !0) ? t.dump + `
2423
+ return t.replacer && (a = t.replacer.call({ "": a }, "", a)), xe(t, 0, a, !0, !0) ? t.dump + `
2421
2424
  ` : "";
2422
2425
  }
2423
2426
  var ho = co, po = {
2424
2427
  dump: ho
2425
2428
  };
2426
- function Dt(e, l) {
2429
+ function zt(e, l) {
2427
2430
  return function() {
2428
2431
  throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + l + " instead, which is now safe by default.");
2429
2432
  };
2430
2433
  }
2431
- var fo = fe, mo = Yl, go = es, yo = rs, vo = is, bo = Bt, ko = ws.load, Co = ws.loadAll, _o = po.dump, wo = ye, So = {
2434
+ var fo = fe, mo = Yl, go = es, yo = rs, vo = is, bo = Vt, ko = ws.load, Co = ws.loadAll, _o = po.dump, wo = ye, So = {
2432
2435
  binary: ds,
2433
2436
  float: ss,
2434
2437
  map: Xl,
@@ -2442,7 +2445,7 @@ var fo = fe, mo = Yl, go = es, yo = rs, vo = is, bo = Bt, ko = ws.load, Co = ws.
2442
2445
  omap: hs,
2443
2446
  seq: Gl,
2444
2447
  str: Zl
2445
- }, Io = Dt("safeLoad", "load"), xo = Dt("safeLoadAll", "loadAll"), Ho = Dt("safeDump", "dump"), Ao = {
2448
+ }, Io = zt("safeLoad", "load"), xo = zt("safeLoadAll", "loadAll"), Ho = zt("safeDump", "dump"), Ao = {
2446
2449
  Type: fo,
2447
2450
  Schema: mo,
2448
2451
  FAILSAFE_SCHEMA: go,
@@ -2468,9 +2471,12 @@ const To = {
2468
2471
  key: 1,
2469
2472
  class: "config-card-display-json"
2470
2473
  }, Uo = {
2474
+ key: 0,
2475
+ class: "config-card-display-json-endpoint"
2476
+ }, $o = {
2471
2477
  key: 2,
2472
2478
  class: "config-card-display-yaml"
2473
- }, $o = /* @__PURE__ */ le({
2479
+ }, Mo = /* @__PURE__ */ le({
2474
2480
  __name: "ConfigCardDisplay",
2475
2481
  props: {
2476
2482
  propertyCollections: {
@@ -2493,44 +2499,57 @@ const To = {
2493
2499
  type: Object,
2494
2500
  required: !1,
2495
2501
  default: () => null
2502
+ },
2503
+ fetcherUrl: {
2504
+ type: String,
2505
+ required: !0
2496
2506
  }
2497
2507
  },
2498
2508
  setup(e) {
2499
- const l = e, t = dt(), { i18n: { t: a } } = he.useI18n(), s = (c) => !!(c.tooltip || t[`${c.key}-label-tooltip`]), i = P(""), r = P("");
2500
- return be(() => l.format, (c) => {
2501
- if (c !== "structured") {
2502
- const o = JSON.parse(JSON.stringify(l.record));
2503
- delete o.created_at, delete o.updated_at, c === "json" ? i.value = JSON.stringify(o, null, 2) : c === "yaml" && (r.value = Ao.dump(o));
2509
+ $t((o) => ({
2510
+ "7b486894": `${c.value}ch`
2511
+ }));
2512
+ const l = e, t = dt(), { i18n: { t: a } } = he.useI18n(), s = (o) => !!(o.tooltip || t[`${o.key}-label-tooltip`]), i = P(""), r = P(""), c = q(() => {
2513
+ var o;
2514
+ if (!l.fetcherUrl)
2515
+ return 0;
2516
+ const d = (o = l.fetcherUrl) == null ? void 0 : o.split("/");
2517
+ return d.length < 2 ? 0 : 41 + d[d.length - 2].length;
2518
+ });
2519
+ return be(() => l.format, (o) => {
2520
+ if (o !== "structured") {
2521
+ const d = JSON.parse(JSON.stringify(l.record));
2522
+ delete d.created_at, delete d.updated_at, o === "json" ? i.value = JSON.stringify(d, null, 2) : o === "yaml" && (r.value = Ao.dump(d));
2504
2523
  }
2505
- }, { immediate: !0 }), (c, o) => {
2506
- const d = M("KCodeBlock");
2524
+ }, { immediate: !0 }), (o, d) => {
2525
+ const h = M("KBadge"), p = M("KCodeBlock");
2507
2526
  return k(), E(de, null, [
2508
2527
  e.format === "structured" ? (k(), E("div", To, [
2509
- (k(!0), E(de, null, ve(e.propListTypes, (h) => (k(), E("div", {
2510
- key: `config-card-details-${h}-props`,
2511
- class: qe(`config-card-details-${h}-props`),
2512
- "data-testid": `config-card-details-${h}-props`
2528
+ (k(!0), E(de, null, ve(e.propListTypes, (m) => (k(), E("div", {
2529
+ key: `config-card-details-${m}-props`,
2530
+ class: Ie(`config-card-details-${m}-props`),
2531
+ "data-testid": `config-card-details-${m}-props`
2513
2532
  }, [
2514
- h !== "basic" ? (k(), E("div", qo, S(h === "advanced" ? u(a)("baseConfigCard.sections.advanced") : u(a)("baseConfigCard.sections.plugin")), 1)) : Q("", !0),
2515
- (k(!0), E(de, null, ve(e.propertyCollections[h], (p) => (k(), L(Et, {
2516
- key: p.key,
2517
- item: p
2518
- }, Te({
2533
+ m !== "basic" ? (k(), E("div", qo, S(m === "advanced" ? u(a)("baseConfigCard.sections.advanced") : u(a)("baseConfigCard.sections.plugin")), 1)) : Q("", !0),
2534
+ (k(!0), E(de, null, ve(e.propertyCollections[m], (n) => (k(), L(Pt, {
2535
+ key: n.key,
2536
+ item: n
2537
+ }, Oe({
2519
2538
  label: f(() => [
2520
- ae(c.$slots, `${p.key}-label`, { row: p }, void 0, !0)
2539
+ ae(o.$slots, `${n.key}-label`, { row: n }, void 0, !0)
2521
2540
  ]),
2522
- [p.key]: f(({ rowValue: m }) => [
2523
- ae(c.$slots, p.key, {
2524
- row: p,
2525
- rowValue: m
2541
+ [n.key]: f(({ rowValue: A }) => [
2542
+ ae(o.$slots, n.key, {
2543
+ row: n,
2544
+ rowValue: A
2526
2545
  }, void 0, !0)
2527
2546
  ]),
2528
2547
  _: 2
2529
2548
  }, [
2530
- s(p) ? {
2549
+ s(n) ? {
2531
2550
  name: "label-tooltip",
2532
2551
  fn: f(() => [
2533
- ae(c.$slots, `${p.key}-label-tooltip`, { row: p }, void 0, !0)
2552
+ ae(o.$slots, `${n.key}-label-tooltip`, { row: n }, void 0, !0)
2534
2553
  ]),
2535
2554
  key: "0"
2536
2555
  } : void 0
@@ -2538,15 +2557,31 @@ const To = {
2538
2557
  ], 10, Oo))), 128))
2539
2558
  ])) : Q("", !0),
2540
2559
  e.format === "json" ? (k(), E("div", Fo, [
2541
- y(d, {
2560
+ l.fetcherUrl ? (k(), E("div", Uo, [
2561
+ y(h, { appearance: "get" }, {
2562
+ default: f(() => [
2563
+ Y(S(u(a)("baseConfigCard.endpoints.get")), 1)
2564
+ ]),
2565
+ _: 1
2566
+ }),
2567
+ y(p, {
2568
+ id: "config-card-endpoint-codeblock",
2569
+ code: l.fetcherUrl,
2570
+ "is-single-line": "",
2571
+ language: "json",
2572
+ theme: "dark"
2573
+ }, null, 8, ["code"])
2574
+ ])) : Q("", !0),
2575
+ y(p, {
2542
2576
  id: "config-card-codeblock",
2577
+ class: Ie({ "config-card-display-json-content": l.fetcherUrl }),
2543
2578
  code: i.value,
2544
2579
  language: "json",
2545
2580
  theme: "dark"
2546
- }, null, 8, ["code"])
2581
+ }, null, 8, ["class", "code"])
2547
2582
  ])) : Q("", !0),
2548
- e.format === "yaml" ? (k(), E("div", Uo, [
2549
- y(d, {
2583
+ e.format === "yaml" ? (k(), E("div", $o, [
2584
+ y(p, {
2550
2585
  id: "config-card-codeblock",
2551
2586
  code: r.value,
2552
2587
  language: "yaml",
@@ -2556,18 +2591,18 @@ const To = {
2556
2591
  ], 64);
2557
2592
  };
2558
2593
  }
2559
- }), Mo = /* @__PURE__ */ Ce($o, [["__scopeId", "data-v-c914c7e4"]]), ql = "24px", Ko = (e, l) => {
2594
+ }), jo = /* @__PURE__ */ Ce(Mo, [["__scopeId", "data-v-27f85338"]]), Fl = "24px", No = (e, l) => {
2560
2595
  const t = e.__vccOpts || e;
2561
2596
  for (const [a, s] of l)
2562
2597
  t[a] = s;
2563
2598
  return t;
2564
- }, jo = (e) => (Nl("data-v-a53b73fd"), e = e(), El(), e), No = ["aria-hidden"], Eo = {
2599
+ }, Ko = (e) => (Kl("data-v-a53b73fd"), e = e(), El(), e), Eo = ["aria-hidden"], Po = {
2565
2600
  key: 0,
2566
2601
  "data-testid": "kui-icon-svg-title"
2567
- }, Po = /* @__PURE__ */ jo(() => /* @__PURE__ */ x("path", {
2602
+ }, Bo = /* @__PURE__ */ Ko(() => /* @__PURE__ */ x("path", {
2568
2603
  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",
2569
2604
  fill: "currentColor"
2570
- }, null, -1)), Bo = /* @__PURE__ */ le({
2605
+ }, null, -1)), Vo = /* @__PURE__ */ le({
2571
2606
  __name: "BookIcon",
2572
2607
  props: {
2573
2608
  /** The accessibility text provided to screen readers */
@@ -2598,7 +2633,7 @@ const To = {
2598
2633
  size: {
2599
2634
  type: [Number, String],
2600
2635
  required: !1,
2601
- default: ql,
2636
+ default: Fl,
2602
2637
  // if setting to the imported const fails, just pass a number of 24 as the default.
2603
2638
  validator: (e) => {
2604
2639
  if (typeof e == "number" && e > 0)
@@ -2627,7 +2662,7 @@ const To = {
2627
2662
  if (i && !isNaN(i) && Number.isInteger(i) && i > 0)
2628
2663
  return `${i}px`;
2629
2664
  }
2630
- return ql;
2665
+ return Fl;
2631
2666
  }), a = q(() => ({
2632
2667
  boxSizing: "border-box",
2633
2668
  color: l.color,
@@ -2640,7 +2675,7 @@ const To = {
2640
2675
  "aria-hidden": e.decorative ? "true" : void 0,
2641
2676
  class: "kui-icon book-icon",
2642
2677
  "data-testid": "kui-icon-wrapper-book-icon",
2643
- style: jl(a.value)
2678
+ style: Nl(a.value)
2644
2679
  }, {
2645
2680
  default: f(() => [
2646
2681
  (k(), E("svg", {
@@ -2653,23 +2688,23 @@ const To = {
2653
2688
  width: "100%",
2654
2689
  xmlns: "http://www.w3.org/2000/svg"
2655
2690
  }, [
2656
- e.title ? (k(), E("title", Eo, S(e.title), 1)) : Q("", !0),
2657
- Po
2658
- ], 8, No))
2691
+ e.title ? (k(), E("title", Po, S(e.title), 1)) : Q("", !0),
2692
+ Bo
2693
+ ], 8, Eo))
2659
2694
  ]),
2660
2695
  _: 1
2661
2696
  }, 8, ["aria-hidden", "style"]));
2662
2697
  }
2663
- }), Vo = /* @__PURE__ */ Ko(Bo, [["__scopeId", "data-v-a53b73fd"]]), Lo = { "data-testid": "config-card-title" }, Ro = { class: "config-card-actions" }, Do = ["href"], zo = {
2698
+ }), Lo = /* @__PURE__ */ No(Vo, [["__scopeId", "data-v-a53b73fd"]]), Ro = { "data-testid": "config-card-title" }, Do = { class: "config-card-actions" }, zo = ["href"], Jo = {
2664
2699
  key: 2,
2665
2700
  class: "config-card-details-section"
2666
- }, Jo = {
2701
+ }, Wo = {
2667
2702
  key: 3,
2668
2703
  class: "config-card-details-section"
2669
- }, Wo = ["data-testid"], Qo = {
2704
+ }, Qo = ["data-testid"], Yo = {
2670
2705
  key: 0,
2671
2706
  class: "config-card-prop-section-title"
2672
- }, Yo = /* @__PURE__ */ le({
2707
+ }, Zo = /* @__PURE__ */ le({
2673
2708
  __name: "EntityBaseConfigCard",
2674
2709
  props: {
2675
2710
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -2797,20 +2832,20 @@ const To = {
2797
2832
  section: oe.Basic
2798
2833
  }
2799
2834
  }, A = P(!1), _ = P(!1), g = P(""), b = P(), H = q(() => {
2800
- var O, j, I;
2835
+ var O, N, I;
2801
2836
  if (!b.value)
2802
2837
  return [];
2803
- const N = [], V = Object.keys(b.value).length;
2804
- for (const Y in b.value) {
2805
- const J = (j = (O = s.configSchema) == null ? void 0 : O[Y]) == null ? void 0 : j.order, D = (I = n[Y]) == null ? void 0 : I.order;
2838
+ const K = [], V = Object.keys(b.value).length;
2839
+ for (const Z in b.value) {
2840
+ const J = (N = (O = s.configSchema) == null ? void 0 : O[Z]) == null ? void 0 : N.order, z = (I = n[Z]) == null ? void 0 : I.order;
2806
2841
  let G = V;
2807
- (D || D === 0) && (G = D === -1 ? V + 1 : D), J && (G = J === -1 ? V + 1 : J), N.push([Y, G]);
2842
+ (z || z === 0) && (G = z === -1 ? V + 1 : z), J && (G = J === -1 ? V + 1 : J), K.push([Z, G]);
2808
2843
  }
2809
- return N.sort(function(Y, J) {
2810
- return Y[1] - J[1];
2811
- }), N.map((Y) => {
2812
- var J, D;
2813
- const G = Y[0], X = (J = b.value) == null ? void 0 : J[G], F = ((D = s.configSchema) == null ? void 0 : D[G]) || {}, W = n[G];
2844
+ return K.sort(function(Z, J) {
2845
+ return Z[1] - J[1];
2846
+ }), K.map((Z) => {
2847
+ var J, z;
2848
+ const G = Z[0], X = (J = b.value) == null ? void 0 : J[G], F = ((z = s.configSchema) == null ? void 0 : z[G]) || {}, W = n[G];
2814
2849
  return {
2815
2850
  key: G,
2816
2851
  value: X,
@@ -2820,47 +2855,47 @@ const To = {
2820
2855
  tooltip: F.tooltip ?? ((W == null ? void 0 : W.tooltip) || void 0),
2821
2856
  section: F.section ?? ((W == null ? void 0 : W.section) || oe.Advanced)
2822
2857
  };
2823
- }).filter((Y) => !Y.hidden && Y.key !== s.pluginConfigKey);
2858
+ }).filter((Z) => !Z.hidden && Z.key !== s.pluginConfigKey);
2824
2859
  }), U = q(() => {
2825
- var O, j;
2860
+ var O, N;
2826
2861
  if (!b.value || !s.pluginConfigKey)
2827
2862
  return [];
2828
- const I = b.value[s.pluginConfigKey] || {}, N = Object.keys(I).length, V = [];
2829
- for (const Y in I) {
2830
- const J = (j = (O = s.pluginConfigSchema) == null ? void 0 : O[Y]) == null ? void 0 : j.order, D = I[Y];
2831
- let G = D != null && D !== "" ? N - 1 : N;
2832
- J && (G = J === -1 ? N + 1 : J), V.push([Y, G]);
2863
+ const I = b.value[s.pluginConfigKey] || {}, K = Object.keys(I).length, V = [];
2864
+ for (const Z in I) {
2865
+ const J = (N = (O = s.pluginConfigSchema) == null ? void 0 : O[Z]) == null ? void 0 : N.order, z = I[Z];
2866
+ let G = z != null && z !== "" ? K - 1 : K;
2867
+ J && (G = J === -1 ? K + 1 : J), V.push([Z, G]);
2833
2868
  }
2834
- return V.sort(function(Y, J) {
2835
- return Y[1] - J[1];
2836
- }), V.map((Y) => {
2869
+ return V.sort(function(Z, J) {
2870
+ return Z[1] - J[1];
2871
+ }), V.map((Z) => {
2837
2872
  var J;
2838
- const D = Y[0], G = I[D], X = ((J = s.pluginConfigSchema) == null ? void 0 : J[D]) || {};
2873
+ const z = Z[0], G = I[z], X = ((J = s.pluginConfigSchema) == null ? void 0 : J[z]) || {};
2839
2874
  return {
2840
- key: D,
2875
+ key: z,
2841
2876
  value: G,
2842
2877
  hidden: X.hidden || !1,
2843
2878
  type: X.type ?? re.Text,
2844
- label: X.label ?? o(D),
2879
+ label: X.label ?? o(z),
2845
2880
  tooltip: X.tooltip ?? void 0,
2846
2881
  section: oe.Plugin
2847
2882
  };
2848
- }).filter((Y) => !Y.hidden);
2883
+ }).filter((Z) => !Z.hidden);
2849
2884
  }), $ = q(() => {
2850
- var O, j, I, N;
2885
+ var O, N, I, K;
2851
2886
  return {
2852
2887
  basic: (O = H.value) == null ? void 0 : O.filter((V) => V.section === oe.Basic),
2853
- advanced: (j = H.value) == null ? void 0 : j.filter((V) => V.section === oe.Advanced),
2854
- plugin: (N = U.value) == null ? void 0 : N.concat((I = H.value) == null ? void 0 : I.filter((V) => V.section === oe.Plugin))
2888
+ advanced: (N = H.value) == null ? void 0 : N.filter((V) => V.section === oe.Advanced),
2889
+ plugin: (K = U.value) == null ? void 0 : K.concat((I = H.value) == null ? void 0 : I.filter((V) => V.section === oe.Plugin))
2855
2890
  };
2856
2891
  }), B = q(() => {
2857
2892
  const O = [];
2858
2893
  return $.value.basic.length && O.push("basic"), $.value.advanced.length && O.push("advanced"), $.value.plugin.length && O.push("plugin"), O;
2859
- }), T = (O) => !!(O.tooltip || i[`${O.key}-label-tooltip`]), z = q(() => {
2860
- var O, j;
2894
+ }), T = (O) => !!(O.tooltip || i[`${O.key}-label-tooltip`]), D = q(() => {
2895
+ var O, N;
2861
2896
  let I = `${s.config.apiBaseUrl}${s.fetchUrl}`;
2862
- return s.config.app === "konnect" ? I = I.replace(/{controlPlaneId}/gi, ((O = s.config) == null ? void 0 : O.controlPlaneId) || "") : s.config.app === "kongManager" && (I = I.replace(/\/{workspace}/gi, (j = s.config) != null && j.workspace ? `/${s.config.workspace}` : "")), I = I.replace(/{id}/gi, s.config.entityId), I;
2863
- }), K = (O) => {
2897
+ return s.config.app === "konnect" ? I = I.replace(/{controlPlaneId}/gi, ((O = s.config) == null ? void 0 : O.controlPlaneId) || "") : s.config.app === "kongManager" && (I = I.replace(/\/{workspace}/gi, (N = s.config) != null && N.workspace ? `/${s.config.workspace}` : "")), I = I.replace(/{id}/gi, s.config.entityId), I;
2898
+ }), j = (O) => {
2864
2899
  b.value && O(JSON.stringify(b.value)) ? a("copy:success", b.value) : a("copy:error");
2865
2900
  };
2866
2901
  return be(A, (O) => {
@@ -2868,7 +2903,7 @@ const To = {
2868
2903
  }, { immediate: !0 }), tt(async () => {
2869
2904
  _.value = !1, A.value = !0;
2870
2905
  try {
2871
- const { data: O } = await d.get(z.value);
2906
+ const { data: O } = await d.get(D.value);
2872
2907
  if (s.dataKey)
2873
2908
  if (typeof O[s.dataKey] < "u")
2874
2909
  b.value = { ...O[s.dataKey] };
@@ -2876,20 +2911,20 @@ const To = {
2876
2911
  throw new Error(r("errors.dataKeyUndefined", { dataKey: s.dataKey }));
2877
2912
  else
2878
2913
  b.value = { ...O };
2879
- Object.keys(s.configSchema).filter((j) => s.configSchema[j].forceShow).forEach((j) => {
2880
- b.value && typeof b.value[j] > "u" && (b.value[j] = null);
2914
+ Object.keys(s.configSchema).filter((N) => s.configSchema[N].forceShow).forEach((N) => {
2915
+ b.value && typeof b.value[N] > "u" && (b.value[N] = null);
2881
2916
  }), a("fetch:success", O);
2882
2917
  } catch (O) {
2883
- const j = c(O);
2884
- g.value = j.startsWith("code") ? r("baseConfigCard.errors.load") : j, _.value = !0, a("fetch:error", O);
2918
+ const N = c(O);
2919
+ g.value = N.startsWith("code") ? r("baseConfigCard.errors.load") : N, _.value = !0, a("fetch:error", O);
2885
2920
  } finally {
2886
2921
  A.value = !1;
2887
2922
  }
2888
- }), (O, j) => {
2889
- const I = M("KLabel"), N = M("KSelect"), V = M("KButton"), Y = M("KClipboardProvider"), J = M("KSkeleton"), D = M("KEmptyState"), G = M("KCard");
2890
- return k(), L(G, { class: "kong-ui-entity-base-config-card" }, Te({
2923
+ }), (O, N) => {
2924
+ const I = M("KLabel"), K = M("KSelect"), V = M("KButton"), Z = M("KClipboardProvider"), J = M("KSkeleton"), z = M("KEmptyState"), G = M("KCard");
2925
+ return k(), L(G, { class: "kong-ui-entity-base-config-card" }, Oe({
2891
2926
  actions: f(() => [
2892
- x("div", Ro, [
2927
+ x("div", Do, [
2893
2928
  ae(O.$slots, "actions", {}, void 0, !0),
2894
2929
  e.config.jsonYamlEnabled ? (k(), L(I, {
2895
2930
  key: 0,
@@ -2897,11 +2932,11 @@ const To = {
2897
2932
  "data-testid": "config-format-select-label"
2898
2933
  }, {
2899
2934
  default: f(() => [
2900
- Z(S(e.label), 1)
2935
+ Y(S(e.label), 1)
2901
2936
  ]),
2902
2937
  _: 1
2903
2938
  })) : Q("", !0),
2904
- e.config.jsonYamlEnabled ? (k(), L(N, {
2939
+ e.config.jsonYamlEnabled ? (k(), L(K, {
2905
2940
  key: 1,
2906
2941
  appearance: "select",
2907
2942
  "data-testid": "select-config-format",
@@ -2920,21 +2955,21 @@ const To = {
2920
2955
  rel: "noopener",
2921
2956
  target: "_blank"
2922
2957
  }, [
2923
- y(u(Vo), { size: u(Wr) }, null, 8, ["size"])
2924
- ], 8, Do)
2958
+ y(u(Lo), { size: u(Wr) }, null, 8, ["size"])
2959
+ ], 8, zo)
2925
2960
  ]),
2926
2961
  _: 1
2927
2962
  })) : Q("", !0),
2928
- e.config.jsonYamlEnabled ? Q("", !0) : (k(), L(Y, { key: 3 }, {
2963
+ e.config.jsonYamlEnabled ? Q("", !0) : (k(), L(Z, { key: 3 }, {
2929
2964
  default: f(({ copyToClipboard: X }) => [
2930
2965
  !A.value && !_.value ? (k(), L(V, {
2931
2966
  key: 0,
2932
2967
  appearance: "tertiary",
2933
2968
  "data-testid": "json-copy-button",
2934
- onClick: (F) => K(X)
2969
+ onClick: (F) => j(X)
2935
2970
  }, {
2936
2971
  default: f(() => [
2937
- Z(S(u(r)("baseConfigCard.actions.copy")), 1)
2972
+ Y(S(u(r)("baseConfigCard.actions.copy")), 1)
2938
2973
  ]),
2939
2974
  _: 2
2940
2975
  }, 1032, ["onClick"])) : Q("", !0)
@@ -2949,7 +2984,7 @@ const To = {
2949
2984
  "data-testid": "config-card-loader",
2950
2985
  "table-columns": 2,
2951
2986
  type: "table"
2952
- })) : _.value ? (k(), L(D, {
2987
+ })) : _.value ? (k(), L(z, {
2953
2988
  key: 1,
2954
2989
  "data-testid": "config-card-fetch-error",
2955
2990
  "is-error": ""
@@ -2959,13 +2994,14 @@ const To = {
2959
2994
  ]),
2960
2995
  _: 1
2961
2996
  })) : Q("", !0),
2962
- e.config.jsonYamlEnabled ? (k(), E("div", zo, [
2963
- y(Mo, {
2997
+ e.config.jsonYamlEnabled ? (k(), E("div", Jo, [
2998
+ y(jo, {
2999
+ "fetcher-url": D.value,
2964
3000
  format: p.value,
2965
3001
  "prop-list-types": B.value,
2966
3002
  "property-collections": $.value,
2967
3003
  record: b.value
2968
- }, Te({ _: 2 }, [
3004
+ }, Oe({ _: 2 }, [
2969
3005
  ve(Object.keys(O.$slots), (X) => ({
2970
3006
  name: X,
2971
3007
  fn: f(({ row: F, rowValue: W }) => [
@@ -2975,18 +3011,18 @@ const To = {
2975
3011
  }, void 0, !0)
2976
3012
  ])
2977
3013
  }))
2978
- ]), 1032, ["format", "prop-list-types", "property-collections", "record"])
2979
- ])) : (k(), E("div", Jo, [
3014
+ ]), 1032, ["fetcher-url", "format", "prop-list-types", "property-collections", "record"])
3015
+ ])) : (k(), E("div", Wo, [
2980
3016
  (k(!0), E(de, null, ve(B.value, (X) => (k(), E("div", {
2981
3017
  key: `config-card-details-${X}-props`,
2982
- class: qe(`config-card-details-${X}-props`),
3018
+ class: Ie(`config-card-details-${X}-props`),
2983
3019
  "data-testid": `config-card-details-${X}-props`
2984
3020
  }, [
2985
- X !== "basic" ? (k(), E("div", Qo, S(X === "advanced" ? u(r)("baseConfigCard.sections.advanced") : u(r)("baseConfigCard.sections.plugin")), 1)) : Q("", !0),
2986
- (k(!0), E(de, null, ve($.value[X], (F) => (k(), L(Et, {
3021
+ X !== "basic" ? (k(), E("div", Yo, S(X === "advanced" ? u(r)("baseConfigCard.sections.advanced") : u(r)("baseConfigCard.sections.plugin")), 1)) : Q("", !0),
3022
+ (k(!0), E(de, null, ve($.value[X], (F) => (k(), L(Pt, {
2987
3023
  key: F.key,
2988
3024
  item: F
2989
- }, Te({
3025
+ }, Oe({
2990
3026
  label: f(() => [
2991
3027
  ae(O.$slots, `${F.key}-label`, { row: F }, void 0, !0)
2992
3028
  ]),
@@ -3006,7 +3042,7 @@ const To = {
3006
3042
  key: "0"
3007
3043
  } : void 0
3008
3044
  ]), 1032, ["item"]))), 128))
3009
- ], 10, Wo))), 128))
3045
+ ], 10, Qo))), 128))
3010
3046
  ]))
3011
3047
  ]),
3012
3048
  _: 2
@@ -3014,9 +3050,9 @@ const To = {
3014
3050
  e.hideTitle ? void 0 : {
3015
3051
  name: "title",
3016
3052
  fn: f(() => [
3017
- x("div", Lo, [
3053
+ x("div", Ro, [
3018
3054
  ae(O.$slots, "title", {}, () => [
3019
- Z(S(u(r)("baseConfigCard.title")), 1)
3055
+ Y(S(u(r)("baseConfigCard.title")), 1)
3020
3056
  ], !0)
3021
3057
  ])
3022
3058
  ]),
@@ -3025,10 +3061,10 @@ const To = {
3025
3061
  ]), 1024);
3026
3062
  };
3027
3063
  }
3028
- }), Zo = /* @__PURE__ */ Ce(Yo, [["__scopeId", "data-v-bea4df63"]]), Go = {
3064
+ }), Go = /* @__PURE__ */ Ce(Zo, [["__scopeId", "data-v-4f47d6ad"]]), Xo = {
3029
3065
  class: "form-actions",
3030
3066
  "data-testid": "form-actions"
3031
- }, Xo = /* @__PURE__ */ le({
3067
+ }, eu = /* @__PURE__ */ le({
3032
3068
  __name: "EntityBaseForm",
3033
3069
  props: {
3034
3070
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -3078,7 +3114,7 @@ const To = {
3078
3114
  emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel"],
3079
3115
  setup(e, { emit: l }) {
3080
3116
  var t;
3081
- const a = l, s = e, i = Mt(), { i18n: { t: r } } = he.useI18n(), { getMessageFromError: c } = he.useErrors(), { axiosInstance: o } = he.useAxios({
3117
+ const a = l, s = e, i = jt(), { i18n: { t: r } } = he.useI18n(), { getMessageFromError: c } = he.useErrors(), { axiosInstance: o } = he.useAxios({
3082
3118
  headers: (t = s.config) == null ? void 0 : t.requestHeaders
3083
3119
  }), d = P(!1), h = P(!1), p = P(""), m = q(() => s.canSubmit === !1 || s.isReadonly), n = q(() => {
3084
3120
  var b, H;
@@ -3108,8 +3144,8 @@ const To = {
3108
3144
  d.value = !1;
3109
3145
  }
3110
3146
  }), (b, H) => {
3111
- const U = M("KSkeleton"), $ = M("KEmptyState"), B = M("KAlert"), T = M("KButton"), z = M("KCard");
3112
- return k(), L(z, { class: "kong-ui-entity-base-form" }, {
3147
+ const U = M("KSkeleton"), $ = M("KEmptyState"), B = M("KAlert"), T = M("KButton"), D = M("KCard");
3148
+ return k(), L(D, { class: "kong-ui-entity-base-form" }, {
3113
3149
  default: f(() => [
3114
3150
  d.value ? (k(), L(U, {
3115
3151
  key: 0,
@@ -3138,7 +3174,7 @@ const To = {
3138
3174
  appearance: "danger",
3139
3175
  "data-testid": "form-error"
3140
3176
  }, null, 8, ["alert-message"])) : Q("", !0),
3141
- x("div", Go, [
3177
+ x("div", Xo, [
3142
3178
  ae(b.$slots, "form-actions", {}, () => [
3143
3179
  y(T, {
3144
3180
  appearance: "secondary",
@@ -3147,7 +3183,7 @@ const To = {
3147
3183
  type: "reset"
3148
3184
  }, {
3149
3185
  default: f(() => [
3150
- Z(S(u(r)("baseForm.actions.cancel")), 1)
3186
+ Y(S(u(r)("baseForm.actions.cancel")), 1)
3151
3187
  ]),
3152
3188
  _: 1
3153
3189
  }, 8, ["disabled"]),
@@ -3158,7 +3194,7 @@ const To = {
3158
3194
  type: "submit"
3159
3195
  }, {
3160
3196
  default: f(() => [
3161
- Z(S(u(r)("baseForm.actions.save")), 1)
3197
+ Y(S(u(r)("baseForm.actions.save")), 1)
3162
3198
  ]),
3163
3199
  _: 1
3164
3200
  }, 8, ["disabled"])
@@ -3170,10 +3206,10 @@ const To = {
3170
3206
  });
3171
3207
  };
3172
3208
  }
3173
- }), Ms = /* @__PURE__ */ Ce(Xo, [["__scopeId", "data-v-448d8512"]]), eu = {
3209
+ }), Ms = /* @__PURE__ */ Ce(eu, [["__scopeId", "data-v-448d8512"]]), tu = {
3174
3210
  key: 0,
3175
3211
  "data-testid": "first-col"
3176
- }, tu = /* @__PURE__ */ le({
3212
+ }, au = /* @__PURE__ */ le({
3177
3213
  __name: "EntityBaseTableCell",
3178
3214
  props: {
3179
3215
  keyName: {
@@ -3229,7 +3265,7 @@ const To = {
3229
3265
  ref: o,
3230
3266
  class: "content-wrapper"
3231
3267
  }, [
3232
- s.value ? (k(), E("span", eu, [
3268
+ s.value ? (k(), E("span", tu, [
3233
3269
  y(b, {
3234
3270
  label: A.value ? p.value : "",
3235
3271
  "max-width": "300",
@@ -3244,10 +3280,10 @@ const To = {
3244
3280
  ], 512);
3245
3281
  };
3246
3282
  }
3247
- }), au = /* @__PURE__ */ Ce(tu, [["__scopeId", "data-v-e42a20c9"]]), lu = { class: "toolbar-container" }, su = {
3283
+ }), lu = /* @__PURE__ */ Ce(au, [["__scopeId", "data-v-e42a20c9"]]), su = { class: "toolbar-container" }, ru = {
3248
3284
  key: 0,
3249
3285
  class: "toolbar-button-container"
3250
- }, ru = ["data-testid"], iu = /* @__PURE__ */ le({
3286
+ }, iu = ["data-testid"], nu = /* @__PURE__ */ le({
3251
3287
  __name: "EntityBaseTable",
3252
3288
  props: {
3253
3289
  // table header configuration
@@ -3371,11 +3407,11 @@ const To = {
3371
3407
  }), r = q(() => t.cacheIdentifier || t.preferencesStorageKey), c = (B) => B.hasData || !!t.query, o = q(() => {
3372
3408
  const B = [];
3373
3409
  return Object.keys(t.tableHeaders).forEach((T) => {
3374
- const z = t.tableHeaders[T];
3410
+ const D = t.tableHeaders[T];
3375
3411
  B.push({
3376
- label: z.label ?? T,
3412
+ label: D.label ?? T,
3377
3413
  key: T,
3378
- sortable: z.sortable ?? !1
3414
+ sortable: D.sortable ?? !1
3379
3415
  });
3380
3416
  }), t.enableEntityActions && B.push({
3381
3417
  key: "actions",
@@ -3416,13 +3452,13 @@ const To = {
3416
3452
  t.preferencesStorageKey && b(t.preferencesStorageKey, B);
3417
3453
  };
3418
3454
  return (B, T) => {
3419
- const z = M("KIcon"), K = M("KButton"), O = M("KDropdown"), j = M("KTable"), I = M("KCard");
3455
+ const D = M("KIcon"), j = M("KButton"), O = M("KDropdown"), N = M("KTable"), I = M("KCard");
3420
3456
  return k(), L(I, {
3421
3457
  class: "kong-ui-entity-base-table",
3422
3458
  title: e.title
3423
3459
  }, {
3424
3460
  default: f(() => [
3425
- y(j, {
3461
+ y(N, {
3426
3462
  ref_key: "tableRefs",
3427
3463
  ref: h,
3428
3464
  "cache-identifier": r.value,
@@ -3451,23 +3487,23 @@ const To = {
3451
3487
  "search-input": e.query,
3452
3488
  onKtableEmptyStateCtaClicked: n,
3453
3489
  "onRow:click": _.value,
3454
- onSort: T[0] || (T[0] = (N) => g(N)),
3490
+ onSort: T[0] || (T[0] = (K) => g(K)),
3455
3491
  "onUpdate:tablePreferences": $
3456
- }, Te({
3457
- toolbar: f(({ state: N }) => [
3458
- Ve(x("div", lu, [
3492
+ }, Oe({
3493
+ toolbar: f(({ state: K }) => [
3494
+ Ve(x("div", su, [
3459
3495
  ae(B.$slots, "toolbar-filter", {}, void 0, !0),
3460
- B.$slots["toolbar-button"] ? (k(), E("div", su, [
3496
+ B.$slots["toolbar-button"] ? (k(), E("div", ru, [
3461
3497
  ae(B.$slots, "toolbar-button", {}, void 0, !0)
3462
3498
  ])) : Q("", !0)
3463
3499
  ], 512), [
3464
- [Le, c(N)]
3500
+ [Le, c(K)]
3465
3501
  ])
3466
3502
  ]),
3467
- actions: f(({ row: N, rowKey: V, rowValue: Y }) => [
3503
+ actions: f(({ row: K, rowKey: V, rowValue: Z }) => [
3468
3504
  x("div", {
3469
3505
  class: "actions-container",
3470
- "data-testid": N.name
3506
+ "data-testid": K.name
3471
3507
  }, [
3472
3508
  y(O, {
3473
3509
  "kpop-attributes": { placement: "bottomEnd" },
@@ -3475,19 +3511,19 @@ const To = {
3475
3511
  }, {
3476
3512
  items: f(() => [
3477
3513
  ae(B.$slots, "actions", {
3478
- row: N,
3514
+ row: K,
3479
3515
  rowKey: V,
3480
- rowValue: Y
3516
+ rowValue: Z
3481
3517
  }, void 0, !0)
3482
3518
  ]),
3483
3519
  default: f(() => [
3484
- y(K, {
3520
+ y(j, {
3485
3521
  class: "actions-trigger",
3486
3522
  "data-testid": "overflow-actions-button",
3487
3523
  size: "small"
3488
3524
  }, {
3489
3525
  icon: f(() => [
3490
- y(z, {
3526
+ y(D, {
3491
3527
  color: u(zr),
3492
3528
  icon: "more",
3493
3529
  size: "16"
@@ -3498,24 +3534,24 @@ const To = {
3498
3534
  ]),
3499
3535
  _: 2
3500
3536
  }, 1032, ["width"])
3501
- ], 8, ru)
3537
+ ], 8, iu)
3502
3538
  ]),
3503
3539
  _: 2
3504
3540
  }, [
3505
- ve(e.tableHeaders, (N, V) => ({
3541
+ ve(e.tableHeaders, (K, V) => ({
3506
3542
  name: V,
3507
- fn: f(({ row: Y, rowKey: J, rowValue: D }) => [
3508
- y(au, {
3543
+ fn: f(({ row: Z, rowKey: J, rowValue: z }) => [
3544
+ y(lu, {
3509
3545
  "key-name": String(V),
3510
- "row-el": p(Y)
3546
+ "row-el": p(Z)
3511
3547
  }, {
3512
3548
  default: f(() => [
3513
3549
  ae(B.$slots, V, {
3514
- row: Y,
3550
+ row: Z,
3515
3551
  rowKey: J,
3516
- rowValue: D
3552
+ rowValue: z
3517
3553
  }, () => [
3518
- Z(S(D), 1)
3554
+ Y(S(z), 1)
3519
3555
  ], !0)
3520
3556
  ]),
3521
3557
  _: 2
@@ -3528,13 +3564,13 @@ const To = {
3528
3564
  }, 8, ["title"]);
3529
3565
  };
3530
3566
  }
3531
- }), Ks = /* @__PURE__ */ Ce(iu, [["__scopeId", "data-v-57b5a97b"]]), nu = {
3567
+ }), js = /* @__PURE__ */ Ce(nu, [["__scopeId", "data-v-57b5a97b"]]), ou = {
3532
3568
  key: 0,
3533
3569
  class: "kong-ui-entity-delete-error"
3534
- }, ou = {
3570
+ }, uu = {
3535
3571
  key: 1,
3536
3572
  class: "description"
3537
- }, uu = /* @__PURE__ */ le({
3573
+ }, cu = /* @__PURE__ */ le({
3538
3574
  __name: "EntityDeleteModal",
3539
3575
  props: {
3540
3576
  visible: {
@@ -3592,10 +3628,10 @@ const To = {
3592
3628
  onProceed: c
3593
3629
  }, {
3594
3630
  "body-content": f(() => [
3595
- e.error ? (k(), E("div", nu, [
3631
+ e.error ? (k(), E("div", ou, [
3596
3632
  y(h, { appearance: "danger" }, {
3597
3633
  alertMessage: f(() => [
3598
- Z(S(e.error), 1)
3634
+ Y(S(e.error), 1)
3599
3635
  ]),
3600
3636
  _: 1
3601
3637
  })
@@ -3604,9 +3640,9 @@ const To = {
3604
3640
  class: "message",
3605
3641
  keypath: a.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
3606
3642
  tag: "p"
3607
- }, Te({
3643
+ }, Oe({
3608
3644
  entityType: f(() => [
3609
- Z(S(a.entityType), 1)
3645
+ Y(S(a.entityType), 1)
3610
3646
  ]),
3611
3647
  _: 2
3612
3648
  }, [
@@ -3618,7 +3654,7 @@ const To = {
3618
3654
  key: "0"
3619
3655
  } : void 0
3620
3656
  ]), 1032, ["keypath"]),
3621
- a.description || o.$slots.description ? (k(), E("div", ou, [
3657
+ a.description || o.$slots.description ? (k(), E("div", uu, [
3622
3658
  ae(o.$slots, "description", {}, () => [
3623
3659
  x("p", null, S(a.description), 1)
3624
3660
  ], !0)
@@ -3628,13 +3664,13 @@ const To = {
3628
3664
  }, 8, ["action-pending", "confirmation-text", "is-visible", "title"]);
3629
3665
  };
3630
3666
  }
3631
- }), js = /* @__PURE__ */ Ce(uu, [["__scopeId", "data-v-1c9a2a07"]]), cu = {
3667
+ }), Ns = /* @__PURE__ */ Ce(cu, [["__scopeId", "data-v-1c9a2a07"]]), du = {
3632
3668
  fill: "none",
3633
3669
  height: "20",
3634
3670
  viewBox: "0 0 20 20",
3635
3671
  width: "20",
3636
3672
  xmlns: "http://www.w3.org/2000/svg"
3637
- }, du = {
3673
+ }, hu = {
3638
3674
  id: "mask0_180_20349",
3639
3675
  height: "20",
3640
3676
  maskUnits: "userSpaceOnUse",
@@ -3642,7 +3678,7 @@ const To = {
3642
3678
  width: "20",
3643
3679
  x: "0",
3644
3680
  y: "0"
3645
- }, hu = ["fill"], pu = { mask: "url(#mask0_180_20349)" }, fu = ["fill"], Fl = /* @__PURE__ */ le({
3681
+ }, pu = ["fill"], fu = { mask: "url(#mask0_180_20349)" }, mu = ["fill"], Ul = /* @__PURE__ */ le({
3646
3682
  __name: "IconFilter",
3647
3683
  props: {
3648
3684
  color: {
@@ -3651,26 +3687,26 @@ const To = {
3651
3687
  }
3652
3688
  },
3653
3689
  setup(e) {
3654
- return (l, t) => (k(), E("svg", cu, [
3655
- x("mask", du, [
3690
+ return (l, t) => (k(), E("svg", du, [
3691
+ x("mask", hu, [
3656
3692
  x("rect", {
3657
3693
  fill: e.color,
3658
3694
  height: "20",
3659
3695
  width: "20"
3660
- }, null, 8, hu)
3696
+ }, null, 8, pu)
3661
3697
  ]),
3662
- x("g", pu, [
3698
+ x("g", fu, [
3663
3699
  x("path", {
3664
3700
  d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
3665
3701
  fill: e.color
3666
- }, null, 8, fu)
3702
+ }, null, 8, mu)
3667
3703
  ])
3668
3704
  ]));
3669
3705
  }
3670
- }), mu = {
3706
+ }), gu = {
3671
3707
  key: 1,
3672
3708
  class: "kong-ui-entity-filter"
3673
- }, gu = { class: "menu-item-title" }, yu = { class: "menu-item-indicator" }, vu = { class: "menu-item-body" }, bu = ["for"], ku = { class: "menu-item-buttons" }, Cu = { class: "filter-clear-button-container" }, _u = /* @__PURE__ */ le({
3709
+ }, yu = { class: "menu-item-title" }, vu = { class: "menu-item-indicator" }, bu = { class: "menu-item-body" }, ku = ["for"], Cu = { class: "menu-item-buttons" }, _u = { class: "filter-clear-button-container" }, wu = /* @__PURE__ */ le({
3674
3710
  __name: "EntityFilter",
3675
3711
  props: {
3676
3712
  // filter config, either exact match or fuzzy match
@@ -3732,7 +3768,7 @@ const To = {
3732
3768
  b && (i.value = !1), s("update:modelValue", new URLSearchParams(H).toString());
3733
3769
  };
3734
3770
  return (b, H) => {
3735
- const U = M("KInput"), $ = M("KButton"), B = M("KSelect"), T = M("KMenuItem"), z = M("KMenu");
3771
+ const U = M("KInput"), $ = M("KButton"), B = M("KSelect"), T = M("KMenuItem"), D = M("KMenu");
3736
3772
  return e.config.isExactMatch ? (k(), L(U, {
3737
3773
  key: 0,
3738
3774
  autocomplete: "off",
@@ -3743,18 +3779,18 @@ const To = {
3743
3779
  "onUpdate:modelValue": h
3744
3780
  }, {
3745
3781
  before: f(() => [
3746
- y(Fl)
3782
+ y(Ul)
3747
3783
  ]),
3748
3784
  _: 1
3749
- }, 8, ["model-value", "placeholder"])) : (k(), E("div", mu, [
3785
+ }, 8, ["model-value", "placeholder"])) : (k(), E("div", gu, [
3750
3786
  y($, {
3751
3787
  appearance: "tertiary",
3752
3788
  "data-testid": "filter-button",
3753
3789
  onClick: d
3754
3790
  }, {
3755
3791
  default: f(() => [
3756
- y(Fl),
3757
- Z(" " + S(u(t)("filter.filterButtonText")) + " " + S(c.value.length > 0 ? `(${c.value.length})` : ""), 1)
3792
+ y(Ul),
3793
+ Y(" " + S(u(t)("filter.filterButtonText")) + " " + S(c.value.length > 0 ? `(${c.value.length})` : ""), 1)
3758
3794
  ]),
3759
3795
  _: 1
3760
3796
  }),
@@ -3764,57 +3800,57 @@ const To = {
3764
3800
  }, null, 512), [
3765
3801
  [Le, i.value]
3766
3802
  ]),
3767
- Ve(y(z, { class: "kong-ui-entity-filter-menu" }, {
3803
+ Ve(y(D, { class: "kong-ui-entity-filter-menu" }, {
3768
3804
  body: f(() => [
3769
- (k(!0), E(de, null, ve(o.value, (K, O) => (k(), L(T, {
3770
- key: K.value,
3771
- "data-testid": K.value,
3805
+ (k(!0), E(de, null, ve(o.value, (j, O) => (k(), L(T, {
3806
+ key: j.value,
3807
+ "data-testid": j.value,
3772
3808
  expandable: "",
3773
3809
  "last-menu-item": O === o.value.length - 1
3774
3810
  }, {
3775
3811
  itemTitle: f(() => [
3776
- x("span", gu, [
3777
- Z(S(K.label) + " ", 1),
3778
- Ve(x("span", yu, null, 512), [
3779
- [Le, c.value.includes(K.value)]
3812
+ x("span", yu, [
3813
+ Y(S(j.label) + " ", 1),
3814
+ Ve(x("span", vu, null, 512), [
3815
+ [Le, c.value.includes(j.value)]
3780
3816
  ])
3781
3817
  ])
3782
3818
  ]),
3783
3819
  itemBody: f(() => {
3784
- var j, I;
3820
+ var N, I;
3785
3821
  return [
3786
- x("div", vu, [
3822
+ x("div", bu, [
3787
3823
  x("label", {
3788
3824
  class: "menu-item-label",
3789
- for: p(K.value)
3790
- }, S(u(t)("filter.fieldLabel")), 9, bu),
3791
- ((I = (j = e.config.schema) == null ? void 0 : j[K.value]) == null ? void 0 : I.type) === "select" ? (k(), L(B, {
3825
+ for: p(j.value)
3826
+ }, S(u(t)("filter.fieldLabel")), 9, ku),
3827
+ ((I = (N = e.config.schema) == null ? void 0 : N[j.value]) == null ? void 0 : I.type) === "select" ? (k(), L(B, {
3792
3828
  key: 0,
3793
- id: p(K.value),
3794
- modelValue: r.value[K.value],
3795
- "onUpdate:modelValue": (N) => r.value[K.value] = N,
3829
+ id: p(j.value),
3830
+ modelValue: r.value[j.value],
3831
+ "onUpdate:modelValue": (K) => r.value[j.value] = K,
3796
3832
  appearance: "select",
3797
- items: m(K.value),
3833
+ items: m(j.value),
3798
3834
  placeholder: u(t)("filter.selectPlaceholder")
3799
3835
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (k(), L(U, {
3800
3836
  key: 1,
3801
- id: p(K.value),
3802
- modelValue: r.value[K.value],
3803
- "onUpdate:modelValue": (N) => r.value[K.value] = N,
3837
+ id: p(j.value),
3838
+ modelValue: r.value[j.value],
3839
+ "onUpdate:modelValue": (K) => r.value[j.value] = K,
3804
3840
  autocomplete: "off",
3805
3841
  placeholder: u(t)("filter.inputPlaceholder"),
3806
- type: n(K.value)
3842
+ type: n(j.value)
3807
3843
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
3808
3844
  ]),
3809
- x("div", ku, [
3845
+ x("div", Cu, [
3810
3846
  y($, {
3811
3847
  appearance: "tertiary",
3812
3848
  "data-testid": "apply-filter",
3813
3849
  size: "small",
3814
- onClick: H[0] || (H[0] = (N) => g(!0))
3850
+ onClick: H[0] || (H[0] = (K) => g(!0))
3815
3851
  }, {
3816
3852
  default: f(() => [
3817
- Z(S(u(t)("filter.applyButtonText")), 1)
3853
+ Y(S(u(t)("filter.applyButtonText")), 1)
3818
3854
  ]),
3819
3855
  _: 1
3820
3856
  }),
@@ -3822,10 +3858,10 @@ const To = {
3822
3858
  appearance: "tertiary",
3823
3859
  "data-testid": "clear-filter",
3824
3860
  size: "small",
3825
- onClick: (N) => A(K.value)
3861
+ onClick: (K) => A(j.value)
3826
3862
  }, {
3827
3863
  default: f(() => [
3828
- Z(S(u(t)("filter.clearButtonText")), 1)
3864
+ Y(S(u(t)("filter.clearButtonText")), 1)
3829
3865
  ]),
3830
3866
  _: 2
3831
3867
  }, 1032, ["onClick"])
@@ -3836,14 +3872,14 @@ const To = {
3836
3872
  }, 1032, ["data-testid", "last-menu-item"]))), 128))
3837
3873
  ]),
3838
3874
  actionButton: f(() => [
3839
- x("div", Cu, [
3875
+ x("div", _u, [
3840
3876
  y($, {
3841
3877
  appearance: "tertiary",
3842
3878
  size: "small",
3843
3879
  onClick: _
3844
3880
  }, {
3845
3881
  default: f(() => [
3846
- Z(S(u(t)("filter.clearAllButtonText")), 1)
3882
+ Y(S(u(t)("filter.clearAllButtonText")), 1)
3847
3883
  ]),
3848
3884
  _: 1
3849
3885
  })
@@ -3856,7 +3892,7 @@ const To = {
3856
3892
  ]));
3857
3893
  };
3858
3894
  }
3859
- }), wu = /* @__PURE__ */ Ce(_u, [["__scopeId", "data-v-15962ee2"]]), Se = /* @__PURE__ */ le({
3895
+ }), Su = /* @__PURE__ */ Ce(wu, [["__scopeId", "data-v-15962ee2"]]), Se = /* @__PURE__ */ le({
3860
3896
  __name: "PermissionsWrapper",
3861
3897
  props: {
3862
3898
  /**
@@ -3886,16 +3922,16 @@ const To = {
3886
3922
  isAllowed: t.value
3887
3923
  }) : Q("", !0);
3888
3924
  }
3889
- }), Su = { class: "form-section-wrapper" }, Iu = {
3925
+ }), Iu = { class: "form-section-wrapper" }, xu = {
3890
3926
  key: 0,
3891
3927
  class: "form-section-title"
3892
- }, xu = {
3928
+ }, Hu = {
3893
3929
  key: 1,
3894
3930
  class: "form-section-description"
3895
- }, Hu = {
3931
+ }, Au = {
3896
3932
  key: 2,
3897
3933
  class: "form-section-footer"
3898
- }, Au = { class: "form-section-content" }, Tu = /* @__PURE__ */ le({
3934
+ }, Tu = { class: "form-section-content" }, Ou = /* @__PURE__ */ le({
3899
3935
  __name: "EntityFormSection",
3900
3936
  props: {
3901
3937
  title: {
@@ -3922,30 +3958,30 @@ const To = {
3922
3958
  setup(e) {
3923
3959
  const l = dt();
3924
3960
  return (t, a) => (k(), E("fieldset", {
3925
- class: qe(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
3961
+ class: Ie(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
3926
3962
  }, [
3927
- x("div", Su, [
3963
+ x("div", Iu, [
3928
3964
  e.hideInfoHeader ? Q("", !0) : (k(), E("div", {
3929
3965
  key: 0,
3930
- class: qe(["form-section-info", { sticky: e.stickyInfoHeader }])
3966
+ class: Ie(["form-section-info", { sticky: e.stickyInfoHeader }])
3931
3967
  }, [
3932
- e.title ? (k(), E("h4", Iu, S(e.title), 1)) : Q("", !0),
3933
- e.description || u(l).description ? (k(), E("div", xu, [
3968
+ e.title ? (k(), E("h4", xu, S(e.title), 1)) : Q("", !0),
3969
+ e.description || u(l).description ? (k(), E("div", Hu, [
3934
3970
  ae(t.$slots, "description", {}, () => [
3935
3971
  x("p", null, S(e.description), 1)
3936
3972
  ], !0)
3937
3973
  ])) : Q("", !0),
3938
- u(l).footer ? (k(), E("div", Hu, [
3974
+ u(l).footer ? (k(), E("div", Au, [
3939
3975
  ae(t.$slots, "footer", {}, void 0, !0)
3940
3976
  ])) : Q("", !0)
3941
3977
  ], 2)),
3942
- x("div", Au, [
3978
+ x("div", Tu, [
3943
3979
  ae(t.$slots, "default", {}, void 0, !0)
3944
3980
  ])
3945
3981
  ])
3946
3982
  ], 2));
3947
3983
  }
3948
- }), at = /* @__PURE__ */ Ce(Tu, [["__scopeId", "data-v-8b6dc312"]]), { useAxios: pt, useDeleteUrlBuilder: Ns, useErrors: Es, useExternalLinkCreator: Kc, useFetchUrlBuilder: jc, useFetcher: Ps, useDebouncedFilter: Ul, useStringHelpers: Nc, useHelpers: Ou, useGatewayFeatureSupported: Ec, useTruncationDetector: Pc } = he, qu = {
3984
+ }), at = /* @__PURE__ */ Ce(Ou, [["__scopeId", "data-v-8b6dc312"]]), { useAxios: pt, useDeleteUrlBuilder: Ks, useErrors: Es, useExternalLinkCreator: Nc, useFetchUrlBuilder: Kc, useFetcher: Ps, useDebouncedFilter: $l, useStringHelpers: Ec, useHelpers: qu, useGatewayFeatureSupported: Pc, useTruncationDetector: Bc } = he, Fu = {
3949
3985
  list: {
3950
3986
  table_headers: {
3951
3987
  id: "ID",
@@ -4231,7 +4267,7 @@ const To = {
4231
4267
  labels: {
4232
4268
  created_at: "Created at"
4233
4269
  }
4234
- }, Fu = {
4270
+ }, Uu = {
4235
4271
  list: {
4236
4272
  table_headers: {
4237
4273
  id: "ID",
@@ -4299,12 +4335,12 @@ const To = {
4299
4335
  }
4300
4336
  }
4301
4337
  }
4302
- }, Uu = {
4303
- upstreams: qu,
4304
- targets: Fu
4338
+ }, $u = {
4339
+ upstreams: Fu,
4340
+ targets: Uu
4305
4341
  };
4306
- function $u() {
4307
- const e = $t("en-us", Uu);
4342
+ function Mu() {
4343
+ const e = Mt("en-us", $u);
4308
4344
  return {
4309
4345
  i18n: e,
4310
4346
  i18nT: Bl(e)
@@ -4693,7 +4729,7 @@ const ct = [
4693
4729
  label: "599",
4694
4730
  value: "599"
4695
4731
  }
4696
- ], At = 10, Tt = 65536, Mu = 0, Ku = 65535, Re = 0, De = 255, Bs = 0, Vs = 255, ju = 0, Nu = 65535, $l = 0, Ml = 65535, Eu = 0, Pu = 2 ** 31, Ot = ["200", "302"], qt = ["200", "201", "202", "203", "204", "205", "206", "207", "208", "226", "300", "301", "302", "303", "304", "305", "306", "307", "308"], Ft = ["429", "404", "500", "501", "502", "503", "504", "505"], Ut = ["429", "500", "503"];
4732
+ ], At = 10, Tt = 65536, ju = 0, Nu = 65535, Re = 0, De = 255, Bs = 0, Vs = 255, Ku = 0, Eu = 65535, Ml = 0, jl = 65535, Pu = 0, Bu = 2 ** 31, Ot = ["200", "302"], qt = ["200", "201", "202", "203", "204", "205", "206", "207", "208", "226", "300", "301", "302", "303", "304", "305", "306", "307", "308"], Ft = ["429", "404", "500", "501", "502", "503", "504", "505"], Ut = ["429", "500", "503"];
4697
4733
  function ft() {
4698
4734
  const e = (o) => /^\d+$/.test(o), l = (o, d, h) => {
4699
4735
  if (e(o)) {
@@ -4754,9 +4790,9 @@ function ft() {
4754
4790
  stringToNumberArray: t,
4755
4791
  numberToStringArray: a,
4756
4792
  upstreamsResponseToFields: (o) => {
4757
- var h, p, m, n, A, _, g, b, H, U, $, B, T, z, K, O, j, I, N, V, Y, J, D, G, X, F, W, te, C, v, w, ie, ee, ne, pe, se, me, Ue, Me, zt, Jt, Wt, Qt, Yt, Zt, Gt, Xt, ea, ta, aa, la, sa, ra, ia, na, oa, ua, ca, da, ha, pa, fa, ma, ga, ya, va, ba, ka, Ca, _a, wa, Sa, Ia, xa, Ha, Aa, Ta, Oa, qa, Fa, Ua, $a, Ma, Ka, ja, Na, Ea, Pa, Ba, Va, La, Ra, Da, za, Ja, Wa, Qa, Ya, Za, Ga, Xa, el, tl, al, ll, sl, rl, il, nl;
4793
+ var h, p, m, n, A, _, g, b, H, U, $, B, T, D, j, O, N, I, K, V, Z, J, z, G, X, F, W, te, C, v, w, ie, ee, ne, pe, se, me, Ue, Me, Jt, Wt, Qt, Yt, Zt, Gt, Xt, ea, ta, aa, la, sa, ra, ia, na, oa, ua, ca, da, ha, pa, fa, ma, ga, ya, va, ba, ka, Ca, _a, wa, Sa, Ia, xa, Ha, Aa, Ta, Oa, qa, Fa, Ua, $a, Ma, ja, Na, Ka, Ea, Pa, Ba, Va, La, Ra, Da, za, Ja, Wa, Qa, Ya, Za, Ga, Xa, el, tl, al, ll, sl, rl, il, nl, ol;
4758
4794
  const d = s();
4759
- return d.name = o.name || "", d.algorithm = o.algorithm || "round-robin", d.hostHeader = o.host_header || "", d.clientCertificate = o.client_certificate ? (h = o.client_certificate) == null ? void 0 : h.id : "", d.tags = ((p = o.tags) == null ? void 0 : p.join(", ")) || "", d.slots = o.slots !== null && o.slots !== void 0 ? o.slots.toString() : "10000", d.hashOn = o.hash_on || "none", d.hashFallback = o.hash_fallback || "none", d.hashOnHeader = o.hash_on_header || "", d.hashOnCookie = o.hash_on_cookie || "", d.hashOnCookiePath = o.hash_on_cookie_path || "/", d.hashOnQueryArgument = o.hash_on_query_arg || "", d.hashOnUriCapture = o.hash_on_uri_capture || "", d.hashFallbackHeader = o.hash_fallback_header || "", d.hashFallbackQueryArgument = o.hash_fallback_query_arg || "", d.hashFallbackUriCapture = o.hash_fallback_uri_capture || "", d.healthchecksThreshold = o.healthchecks.threshold !== null && o.healthchecks.threshold !== void 0 ? o.healthchecks.threshold.toString() : "", d.activeHealthSwitch = ((n = (m = o.healthchecks.active) == null ? void 0 : m.healthy) == null ? void 0 : n.interval) !== 0 || ((_ = (A = o.healthchecks.active) == null ? void 0 : A.unhealthy) == null ? void 0 : _.interval) !== 0, d.activeHealthCheck.type = ((g = o.healthchecks.active) == null ? void 0 : g.type) || "http", d.activeHealthCheck.httpPath = ((b = o.healthchecks.active) == null ? void 0 : b.http_path) || "/", d.activeHealthCheck.timeout = ((H = o.healthchecks.active) == null ? void 0 : H.timeout) !== null && ((U = o.healthchecks.active) == null ? void 0 : U.timeout) !== void 0 ? (B = ($ = o.healthchecks.active) == null ? void 0 : $.timeout) == null ? void 0 : B.toString() : "", d.activeHealthCheck.concurrency = ((T = o.healthchecks.active) == null ? void 0 : T.concurrency) !== null && ((z = o.healthchecks.active) == null ? void 0 : z.concurrency) !== void 0 ? (O = (K = o.healthchecks.active) == null ? void 0 : K.concurrency) == null ? void 0 : O.toString() : "", d.activeHealthCheck.httpsSni = ((j = o.healthchecks.active) == null ? void 0 : j.https_sni) || "", d.activeHealthCheck.verifySsl = ((I = o.healthchecks.active) == null ? void 0 : I.https_verify_certificate) || !1, d.activeHealthCheck.headers = (N = o.healthchecks.active) != null && N.headers && Object.entries((V = o.healthchecks.active) == null ? void 0 : V.headers).length > 0 ? Object.entries((Y = o.healthchecks.active) == null ? void 0 : Y.headers).map(([Ls, gt]) => ({ key: Ls, values: gt == null ? void 0 : gt.join(", ") })) : [{ key: "", values: "" }], d.activeHealthCheck.interval = ((D = (J = o.healthchecks.active) == null ? void 0 : J.healthy) == null ? void 0 : D.interval) !== null && ((X = (G = o.healthchecks.active) == null ? void 0 : G.healthy) == null ? void 0 : X.interval) !== void 0 ? (te = (W = (F = o.healthchecks.active) == null ? void 0 : F.healthy) == null ? void 0 : W.interval) == null ? void 0 : te.toString() : "0", d.activeHealthCheck.interval = ((v = (C = o.healthchecks.active) == null ? void 0 : C.healthy) == null ? void 0 : v.interval) !== null && ((ie = (w = o.healthchecks.active) == null ? void 0 : w.healthy) == null ? void 0 : ie.interval) !== void 0 ? (pe = (ne = (ee = o.healthchecks.active) == null ? void 0 : ee.healthy) == null ? void 0 : ne.interval) == null ? void 0 : pe.toString() : "0", d.activeHealthCheck.successes = ((me = (se = o.healthchecks.active) == null ? void 0 : se.healthy) == null ? void 0 : me.successes) !== null && ((Me = (Ue = o.healthchecks.active) == null ? void 0 : Ue.healthy) == null ? void 0 : Me.successes) !== void 0 ? (Wt = (Jt = (zt = o.healthchecks.active) == null ? void 0 : zt.healthy) == null ? void 0 : Jt.successes) == null ? void 0 : Wt.toString() : "0", d.activeHealthCheck.httpStatuses = (Yt = (Qt = o.healthchecks.active) == null ? void 0 : Qt.healthy) != null && Yt.http_statuses ? a(((Gt = (Zt = o.healthchecks.active) == null ? void 0 : Zt.healthy) == null ? void 0 : Gt.http_statuses) || []) : Ot, d.activeHealthCheck.unhealthyInterval = ((ea = (Xt = o.healthchecks.active) == null ? void 0 : Xt.unhealthy) == null ? void 0 : ea.interval) !== null && ((aa = (ta = o.healthchecks.active) == null ? void 0 : ta.unhealthy) == null ? void 0 : aa.interval) !== void 0 ? (ra = (sa = (la = o.healthchecks.active) == null ? void 0 : la.unhealthy) == null ? void 0 : sa.interval) == null ? void 0 : ra.toString() : "0", d.activeHealthCheck.httpFailures = ((na = (ia = o.healthchecks.active) == null ? void 0 : ia.unhealthy) == null ? void 0 : na.http_failures) !== null && ((ua = (oa = o.healthchecks.active) == null ? void 0 : oa.unhealthy) == null ? void 0 : ua.http_failures) !== void 0 ? (ha = (da = (ca = o.healthchecks.active) == null ? void 0 : ca.unhealthy) == null ? void 0 : da.http_failures) == null ? void 0 : ha.toString() : "0", d.activeHealthCheck.unhealthyTimeouts = ((fa = (pa = o.healthchecks.active) == null ? void 0 : pa.unhealthy) == null ? void 0 : fa.timeouts) !== null && ((ga = (ma = o.healthchecks.active) == null ? void 0 : ma.unhealthy) == null ? void 0 : ga.timeouts) !== void 0 ? (ba = (va = (ya = o.healthchecks.active) == null ? void 0 : ya.unhealthy) == null ? void 0 : va.timeouts) == null ? void 0 : ba.toString() : "0", d.activeHealthCheck.unhealthyHttpStatuses = (Ca = (ka = o.healthchecks.active) == null ? void 0 : ka.unhealthy) != null && Ca.http_statuses ? a(((wa = (_a = o.healthchecks.active) == null ? void 0 : _a.unhealthy) == null ? void 0 : wa.http_statuses) || []) : Ft, d.passiveHealthSwitch = ((Ia = (Sa = o.healthchecks.passive) == null ? void 0 : Sa.healthy) == null ? void 0 : Ia.successes) !== 0 || ((Ha = (xa = o.healthchecks.passive) == null ? void 0 : xa.unhealthy) == null ? void 0 : Ha.timeouts) !== 0 || ((Ta = (Aa = o.healthchecks.passive) == null ? void 0 : Aa.unhealthy) == null ? void 0 : Ta.tcp_failures) !== 0 || ((qa = (Oa = o.healthchecks.passive) == null ? void 0 : Oa.unhealthy) == null ? void 0 : qa.http_failures) !== 0, d.passiveHealthCheck.type = ((Fa = o.healthchecks.passive) == null ? void 0 : Fa.type) || "http", d.passiveHealthCheck.successes = (($a = (Ua = o.healthchecks.passive) == null ? void 0 : Ua.healthy) == null ? void 0 : $a.successes) !== null && ((Ka = (Ma = o.healthchecks.passive) == null ? void 0 : Ma.healthy) == null ? void 0 : Ka.successes) !== void 0 ? (Ea = (Na = (ja = o.healthchecks.passive) == null ? void 0 : ja.healthy) == null ? void 0 : Na.successes) == null ? void 0 : Ea.toString() : "0", d.passiveHealthCheck.httpStatuses = (Ba = (Pa = o.healthchecks.passive) == null ? void 0 : Pa.healthy) != null && Ba.http_statuses ? a(((La = (Va = o.healthchecks.passive) == null ? void 0 : Va.healthy) == null ? void 0 : La.http_statuses) || []) : qt, d.passiveHealthCheck.timeouts = ((Da = (Ra = o.healthchecks.passive) == null ? void 0 : Ra.unhealthy) == null ? void 0 : Da.timeouts) !== null && ((Ja = (za = o.healthchecks.passive) == null ? void 0 : za.unhealthy) == null ? void 0 : Ja.timeouts) !== void 0 ? (Ya = (Qa = (Wa = o.healthchecks.passive) == null ? void 0 : Wa.unhealthy) == null ? void 0 : Qa.timeouts) == null ? void 0 : Ya.toString() : "0", d.passiveHealthCheck.tcpFailures = ((Ga = (Za = o.healthchecks.passive) == null ? void 0 : Za.unhealthy) == null ? void 0 : Ga.tcp_failures) !== null && ((el = (Xa = o.healthchecks.passive) == null ? void 0 : Xa.unhealthy) == null ? void 0 : el.tcp_failures) !== void 0 ? (ll = (al = (tl = o.healthchecks.passive) == null ? void 0 : tl.unhealthy) == null ? void 0 : al.tcp_failures) == null ? void 0 : ll.toString() : "", d.passiveHealthCheck.unhealthyHttpStatuses = (rl = (sl = o.healthchecks.passive) == null ? void 0 : sl.unhealthy) != null && rl.http_statuses ? a(((nl = (il = o.healthchecks.passive) == null ? void 0 : il.unhealthy) == null ? void 0 : nl.http_statuses) || []) : Ut, d;
4795
+ return d.name = o.name || "", d.algorithm = o.algorithm || "round-robin", d.hostHeader = o.host_header || "", d.clientCertificate = o.client_certificate ? (h = o.client_certificate) == null ? void 0 : h.id : "", d.tags = ((p = o.tags) == null ? void 0 : p.join(", ")) || "", d.slots = o.slots !== null && o.slots !== void 0 ? o.slots.toString() : "10000", d.hashOn = o.hash_on || "none", d.hashFallback = o.hash_fallback || "none", d.hashOnHeader = o.hash_on_header || "", d.hashOnCookie = o.hash_on_cookie || "", d.hashOnCookiePath = o.hash_on_cookie_path || "/", d.hashOnQueryArgument = o.hash_on_query_arg || "", d.hashOnUriCapture = o.hash_on_uri_capture || "", d.hashFallbackHeader = o.hash_fallback_header || "", d.hashFallbackQueryArgument = o.hash_fallback_query_arg || "", d.hashFallbackUriCapture = o.hash_fallback_uri_capture || "", d.healthchecksThreshold = o.healthchecks.threshold !== null && o.healthchecks.threshold !== void 0 ? o.healthchecks.threshold.toString() : "", d.activeHealthSwitch = ((n = (m = o.healthchecks.active) == null ? void 0 : m.healthy) == null ? void 0 : n.interval) !== 0 || ((_ = (A = o.healthchecks.active) == null ? void 0 : A.unhealthy) == null ? void 0 : _.interval) !== 0, d.activeHealthCheck.type = ((g = o.healthchecks.active) == null ? void 0 : g.type) || "http", d.activeHealthCheck.httpPath = ((b = o.healthchecks.active) == null ? void 0 : b.http_path) || "/", d.activeHealthCheck.timeout = ((H = o.healthchecks.active) == null ? void 0 : H.timeout) !== null && ((U = o.healthchecks.active) == null ? void 0 : U.timeout) !== void 0 ? (B = ($ = o.healthchecks.active) == null ? void 0 : $.timeout) == null ? void 0 : B.toString() : "", d.activeHealthCheck.concurrency = ((T = o.healthchecks.active) == null ? void 0 : T.concurrency) !== null && ((D = o.healthchecks.active) == null ? void 0 : D.concurrency) !== void 0 ? (O = (j = o.healthchecks.active) == null ? void 0 : j.concurrency) == null ? void 0 : O.toString() : "", d.activeHealthCheck.httpsSni = ((N = o.healthchecks.active) == null ? void 0 : N.https_sni) || "", d.activeHealthCheck.verifySsl = ((I = o.healthchecks.active) == null ? void 0 : I.https_verify_certificate) || !1, d.activeHealthCheck.headers = (K = o.healthchecks.active) != null && K.headers && Object.entries((V = o.healthchecks.active) == null ? void 0 : V.headers).length > 0 ? Object.entries((Z = o.healthchecks.active) == null ? void 0 : Z.headers).map(([Ls, gt]) => ({ key: Ls, values: gt == null ? void 0 : gt.join(", ") })) : [{ key: "", values: "" }], d.activeHealthCheck.interval = ((z = (J = o.healthchecks.active) == null ? void 0 : J.healthy) == null ? void 0 : z.interval) !== null && ((X = (G = o.healthchecks.active) == null ? void 0 : G.healthy) == null ? void 0 : X.interval) !== void 0 ? (te = (W = (F = o.healthchecks.active) == null ? void 0 : F.healthy) == null ? void 0 : W.interval) == null ? void 0 : te.toString() : "0", d.activeHealthCheck.interval = ((v = (C = o.healthchecks.active) == null ? void 0 : C.healthy) == null ? void 0 : v.interval) !== null && ((ie = (w = o.healthchecks.active) == null ? void 0 : w.healthy) == null ? void 0 : ie.interval) !== void 0 ? (pe = (ne = (ee = o.healthchecks.active) == null ? void 0 : ee.healthy) == null ? void 0 : ne.interval) == null ? void 0 : pe.toString() : "0", d.activeHealthCheck.successes = ((me = (se = o.healthchecks.active) == null ? void 0 : se.healthy) == null ? void 0 : me.successes) !== null && ((Me = (Ue = o.healthchecks.active) == null ? void 0 : Ue.healthy) == null ? void 0 : Me.successes) !== void 0 ? (Qt = (Wt = (Jt = o.healthchecks.active) == null ? void 0 : Jt.healthy) == null ? void 0 : Wt.successes) == null ? void 0 : Qt.toString() : "0", d.activeHealthCheck.httpStatuses = (Zt = (Yt = o.healthchecks.active) == null ? void 0 : Yt.healthy) != null && Zt.http_statuses ? a(((Xt = (Gt = o.healthchecks.active) == null ? void 0 : Gt.healthy) == null ? void 0 : Xt.http_statuses) || []) : Ot, d.activeHealthCheck.unhealthyInterval = ((ta = (ea = o.healthchecks.active) == null ? void 0 : ea.unhealthy) == null ? void 0 : ta.interval) !== null && ((la = (aa = o.healthchecks.active) == null ? void 0 : aa.unhealthy) == null ? void 0 : la.interval) !== void 0 ? (ia = (ra = (sa = o.healthchecks.active) == null ? void 0 : sa.unhealthy) == null ? void 0 : ra.interval) == null ? void 0 : ia.toString() : "0", d.activeHealthCheck.httpFailures = ((oa = (na = o.healthchecks.active) == null ? void 0 : na.unhealthy) == null ? void 0 : oa.http_failures) !== null && ((ca = (ua = o.healthchecks.active) == null ? void 0 : ua.unhealthy) == null ? void 0 : ca.http_failures) !== void 0 ? (pa = (ha = (da = o.healthchecks.active) == null ? void 0 : da.unhealthy) == null ? void 0 : ha.http_failures) == null ? void 0 : pa.toString() : "0", d.activeHealthCheck.unhealthyTimeouts = ((ma = (fa = o.healthchecks.active) == null ? void 0 : fa.unhealthy) == null ? void 0 : ma.timeouts) !== null && ((ya = (ga = o.healthchecks.active) == null ? void 0 : ga.unhealthy) == null ? void 0 : ya.timeouts) !== void 0 ? (ka = (ba = (va = o.healthchecks.active) == null ? void 0 : va.unhealthy) == null ? void 0 : ba.timeouts) == null ? void 0 : ka.toString() : "0", d.activeHealthCheck.unhealthyHttpStatuses = (_a = (Ca = o.healthchecks.active) == null ? void 0 : Ca.unhealthy) != null && _a.http_statuses ? a(((Sa = (wa = o.healthchecks.active) == null ? void 0 : wa.unhealthy) == null ? void 0 : Sa.http_statuses) || []) : Ft, d.passiveHealthSwitch = ((xa = (Ia = o.healthchecks.passive) == null ? void 0 : Ia.healthy) == null ? void 0 : xa.successes) !== 0 || ((Aa = (Ha = o.healthchecks.passive) == null ? void 0 : Ha.unhealthy) == null ? void 0 : Aa.timeouts) !== 0 || ((Oa = (Ta = o.healthchecks.passive) == null ? void 0 : Ta.unhealthy) == null ? void 0 : Oa.tcp_failures) !== 0 || ((Fa = (qa = o.healthchecks.passive) == null ? void 0 : qa.unhealthy) == null ? void 0 : Fa.http_failures) !== 0, d.passiveHealthCheck.type = ((Ua = o.healthchecks.passive) == null ? void 0 : Ua.type) || "http", d.passiveHealthCheck.successes = ((Ma = ($a = o.healthchecks.passive) == null ? void 0 : $a.healthy) == null ? void 0 : Ma.successes) !== null && ((Na = (ja = o.healthchecks.passive) == null ? void 0 : ja.healthy) == null ? void 0 : Na.successes) !== void 0 ? (Pa = (Ea = (Ka = o.healthchecks.passive) == null ? void 0 : Ka.healthy) == null ? void 0 : Ea.successes) == null ? void 0 : Pa.toString() : "0", d.passiveHealthCheck.httpStatuses = (Va = (Ba = o.healthchecks.passive) == null ? void 0 : Ba.healthy) != null && Va.http_statuses ? a(((Ra = (La = o.healthchecks.passive) == null ? void 0 : La.healthy) == null ? void 0 : Ra.http_statuses) || []) : qt, d.passiveHealthCheck.timeouts = ((za = (Da = o.healthchecks.passive) == null ? void 0 : Da.unhealthy) == null ? void 0 : za.timeouts) !== null && ((Wa = (Ja = o.healthchecks.passive) == null ? void 0 : Ja.unhealthy) == null ? void 0 : Wa.timeouts) !== void 0 ? (Za = (Ya = (Qa = o.healthchecks.passive) == null ? void 0 : Qa.unhealthy) == null ? void 0 : Ya.timeouts) == null ? void 0 : Za.toString() : "0", d.passiveHealthCheck.tcpFailures = ((Xa = (Ga = o.healthchecks.passive) == null ? void 0 : Ga.unhealthy) == null ? void 0 : Xa.tcp_failures) !== null && ((tl = (el = o.healthchecks.passive) == null ? void 0 : el.unhealthy) == null ? void 0 : tl.tcp_failures) !== void 0 ? (sl = (ll = (al = o.healthchecks.passive) == null ? void 0 : al.unhealthy) == null ? void 0 : ll.tcp_failures) == null ? void 0 : sl.toString() : "", d.passiveHealthCheck.unhealthyHttpStatuses = (il = (rl = o.healthchecks.passive) == null ? void 0 : rl.unhealthy) != null && il.http_statuses ? a(((ol = (nl = o.healthchecks.passive) == null ? void 0 : nl.unhealthy) == null ? void 0 : ol.http_statuses) || []) : Ut, d;
4760
4796
  },
4761
4797
  getDefaultUpstreamFields: s,
4762
4798
  objectsAreEqual: (o, d) => {
@@ -4769,32 +4805,32 @@ function ft() {
4769
4805
  cloneDeep: (o) => JSON.parse(JSON.stringify(o))
4770
4806
  };
4771
4807
  }
4772
- const xe = {
4773
- useI18n: $u,
4808
+ const He = {
4809
+ useI18n: Mu,
4774
4810
  useMultiselectCreation: et,
4775
4811
  useHelpers: ft
4776
- }, je = "/api/runtime_groups/{controlPlaneId}", Ne = "/{workspace}", We = {
4812
+ }, Ne = "/api/runtime_groups/{controlPlaneId}", Ke = "/{workspace}", We = {
4777
4813
  list: {
4778
- konnect: `${je}/upstreams`,
4779
- kongManager: `${Ne}/upstreams`
4814
+ konnect: `${Ne}/upstreams`,
4815
+ kongManager: `${Ke}/upstreams`
4780
4816
  },
4781
4817
  form: {
4782
4818
  konnect: {
4783
- getServices: `${je}/services`,
4784
- getCertificates: `${je}/certificates`,
4785
- validate: `${je}/v1/schemas/json/upstream/validate`,
4786
- create: `${je}/upstreams`,
4787
- edit: `${je}/upstreams/{id}`
4788
- },
4789
- kongManager: {
4790
4819
  getServices: `${Ne}/services`,
4791
4820
  getCertificates: `${Ne}/certificates`,
4792
- validate: `${Ne}/schemas/upstreams/validate`,
4821
+ validate: `${Ne}/v1/schemas/json/upstream/validate`,
4793
4822
  create: `${Ne}/upstreams`,
4794
4823
  edit: `${Ne}/upstreams/{id}`
4824
+ },
4825
+ kongManager: {
4826
+ getServices: `${Ke}/services`,
4827
+ getCertificates: `${Ke}/certificates`,
4828
+ validate: `${Ke}/schemas/upstreams/validate`,
4829
+ create: `${Ke}/upstreams`,
4830
+ edit: `${Ke}/upstreams/{id}`
4795
4831
  }
4796
4832
  }
4797
- }, Bu = { class: "kong-ui-entities-upstreams-list" }, Vu = { class: "upstream-name" }, Lu = /* @__PURE__ */ le({
4833
+ }, Vu = { class: "kong-ui-entities-upstreams-list" }, Lu = { class: "upstream-name" }, Ru = /* @__PURE__ */ le({
4798
4834
  __name: "UpstreamsList",
4799
4835
  props: {
4800
4836
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -4841,7 +4877,7 @@ const xe = {
4841
4877
  emits: ["error", "copy:success", "copy:error", "delete:success"],
4842
4878
  setup(e, { emit: l }) {
4843
4879
  var X;
4844
- const t = l, a = e, { i18n: { t: s } } = xe.useI18n(), i = Mt(), { axiosInstance: r } = pt({
4880
+ const t = l, a = e, { i18n: { t: s } } = He.useI18n(), i = jt(), { axiosInstance: r } = pt({
4845
4881
  headers: (X = a.config) == null ? void 0 : X.requestHeaders
4846
4882
  }), c = P(1), o = q(() => a.config.app !== "kongManager" || !!a.config.disableSorting), d = {
4847
4883
  name: { label: s("upstreams.list.table_headers.name"), searchable: !0, sortable: !0 },
@@ -4902,29 +4938,29 @@ const xe = {
4902
4938
  }, T = (F) => ({
4903
4939
  label: s("upstreams.actions.view"),
4904
4940
  to: a.config.getViewRoute(F)
4905
- }), z = (F) => ({
4941
+ }), D = (F) => ({
4906
4942
  label: s("upstreams.actions.edit"),
4907
4943
  to: a.config.getEditRoute(F)
4908
- }), K = P(void 0), O = P(!1), j = P(!1), I = P(""), N = Ns(a.config, p.value), V = (F) => {
4909
- K.value = F, O.value = !0;
4910
- }, Y = () => {
4944
+ }), j = P(void 0), O = P(!1), N = P(!1), I = P(""), K = Ks(a.config, p.value), V = (F) => {
4945
+ j.value = F, O.value = !0;
4946
+ }, Z = () => {
4911
4947
  O.value = !1;
4912
4948
  }, J = async () => {
4913
4949
  var F, W, te;
4914
- if ((F = K.value) != null && F.id) {
4915
- j.value = !0;
4950
+ if ((F = j.value) != null && F.id) {
4951
+ N.value = !0;
4916
4952
  try {
4917
- await r.delete(N(K.value.id)), j.value = !1, O.value = !1, c.value++, t("delete:success", K.value);
4953
+ await r.delete(K(j.value.id)), N.value = !1, O.value = !1, c.value++, t("delete:success", j.value);
4918
4954
  } catch (C) {
4919
4955
  I.value = ((te = (W = C.response) == null ? void 0 : W.data) == null ? void 0 : te.message) || C.message || s("upstreams.errors.delete"), t("error", C);
4920
4956
  } finally {
4921
- j.value = !1;
4957
+ N.value = !1;
4922
4958
  }
4923
4959
  }
4924
- }, D = P(!0);
4960
+ }, z = P(!0);
4925
4961
  be(_, (F) => {
4926
4962
  var W, te, C, v;
4927
- if (Array.isArray((W = F == null ? void 0 : F.response) == null ? void 0 : W.data) && (D.value = F.response.data.length > 0), F.status === Ae.Error) {
4963
+ if (Array.isArray((W = F == null ? void 0 : F.response) == null ? void 0 : W.data) && (z.value = F.response.data.length > 0), F.status === Te.Error) {
4928
4964
  H.value = {
4929
4965
  title: s("upstreams.errors.general")
4930
4966
  }, (v = (C = (te = F.error) == null ? void 0 : te.response) == null ? void 0 : C.data) != null && v.message && (H.value.message = F.error.response.data.message), t("error", F.error);
@@ -4942,8 +4978,8 @@ const xe = {
4942
4978
  await a.canCreate() && (G.value.title = s("upstreams.list.empty_state.title"), G.value.ctaText = s("upstreams.actions.create"));
4943
4979
  }), (F, W) => {
4944
4980
  const te = M("KButton"), C = M("KBadge"), v = M("KTruncate"), w = M("KDropdownItem"), ie = M("KClipboardProvider");
4945
- return k(), E("div", Bu, [
4946
- y(u(Ks), {
4981
+ return k(), E("div", Vu, [
4982
+ y(u(js), {
4947
4983
  "cache-identifier": e.cacheIdentifier,
4948
4984
  "disable-pagination-page-jump": "",
4949
4985
  "disable-sorting": o.value,
@@ -4962,7 +4998,7 @@ const xe = {
4962
4998
  onSort: b
4963
4999
  }, {
4964
5000
  "toolbar-filter": f(() => [
4965
- y(u(wu), {
5001
+ y(u(Su), {
4966
5002
  modelValue: m.value,
4967
5003
  "onUpdate:modelValue": W[0] || (W[0] = (ee) => m.value = ee),
4968
5004
  config: n.value
@@ -4984,11 +5020,11 @@ const xe = {
4984
5020
  to: e.config.createRoute
4985
5021
  }, {
4986
5022
  default: f(() => [
4987
- Z(S(u(s)("upstreams.list.toolbar_actions.new_upstream")), 1)
5023
+ Y(S(u(s)("upstreams.list.toolbar_actions.new_upstream")), 1)
4988
5024
  ]),
4989
5025
  _: 1
4990
5026
  }, 8, ["to"]), [
4991
- [Le, D.value]
5027
+ [Le, z.value]
4992
5028
  ])
4993
5029
  ]),
4994
5030
  _: 1
@@ -4996,7 +5032,7 @@ const xe = {
4996
5032
  ], 8, ["disabled"]))
4997
5033
  ]),
4998
5034
  name: f(({ rowValue: ee }) => [
4999
- x("span", Vu, S(ee), 1)
5035
+ x("span", Lu, S(ee), 1)
5000
5036
  ]),
5001
5037
  tags: f(({ rowValue: ee }) => [
5002
5038
  y(v, null, {
@@ -5006,7 +5042,7 @@ const xe = {
5006
5042
  "max-width": "auto"
5007
5043
  }, {
5008
5044
  default: f(() => [
5009
- Z(S(ne), 1)
5045
+ Y(S(ne), 1)
5010
5046
  ]),
5011
5047
  _: 2
5012
5048
  }, 1024))), 128))
@@ -5022,7 +5058,7 @@ const xe = {
5022
5058
  onClick: (pe) => U(ee, ne)
5023
5059
  }, {
5024
5060
  default: f(() => [
5025
- Z(S(u(s)("upstreams.actions.copy_id")), 1)
5061
+ Y(S(u(s)("upstreams.actions.copy_id")), 1)
5026
5062
  ]),
5027
5063
  _: 2
5028
5064
  }, 1032, ["onClick"])
@@ -5036,7 +5072,7 @@ const xe = {
5036
5072
  onClick: (pe) => $(ee, ne)
5037
5073
  }, {
5038
5074
  default: f(() => [
5039
- Z(S(u(s)("upstreams.actions.copy_json")), 1)
5075
+ Y(S(u(s)("upstreams.actions.copy_json")), 1)
5040
5076
  ]),
5041
5077
  _: 2
5042
5078
  }, 1032, ["onClick"])
@@ -5061,7 +5097,7 @@ const xe = {
5061
5097
  default: f(() => [
5062
5098
  y(w, {
5063
5099
  "data-testid": "action-entity-edit",
5064
- item: z(ee.id)
5100
+ item: D(ee.id)
5065
5101
  }, null, 8, ["item"])
5066
5102
  ]),
5067
5103
  _: 2
@@ -5077,7 +5113,7 @@ const xe = {
5077
5113
  onClick: (ne) => V(ee)
5078
5114
  }, {
5079
5115
  default: f(() => [
5080
- Z(S(u(s)("upstreams.actions.delete")), 1)
5116
+ Y(S(u(s)("upstreams.actions.delete")), 1)
5081
5117
  ]),
5082
5118
  _: 2
5083
5119
  }, 1032, ["onClick"])
@@ -5087,26 +5123,26 @@ const xe = {
5087
5123
  ]),
5088
5124
  _: 1
5089
5125
  }, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers", "use-action-outside"]),
5090
- y(u(js), {
5091
- "action-pending": j.value,
5126
+ y(u(Ns), {
5127
+ "action-pending": N.value,
5092
5128
  description: u(s)("upstreams.delete.description"),
5093
- "entity-name": K.value && (K.value.name || K.value.id),
5094
- "entity-type": u(Kt).Upstream,
5129
+ "entity-name": j.value && (j.value.name || j.value.id),
5130
+ "entity-type": u(Nt).Upstream,
5095
5131
  error: I.value,
5096
5132
  title: u(s)("upstreams.delete.title"),
5097
5133
  visible: O.value,
5098
- onCancel: Y,
5134
+ onCancel: Z,
5099
5135
  onProceed: J
5100
5136
  }, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"])
5101
5137
  ]);
5102
5138
  };
5103
5139
  }
5104
- }), He = (e, l) => {
5140
+ }), Ae = (e, l) => {
5105
5141
  const t = e.__vccOpts || e;
5106
5142
  for (const [a, s] of l)
5107
5143
  t[a] = s;
5108
5144
  return t;
5109
- }, Bc = /* @__PURE__ */ He(Lu, [["__scopeId", "data-v-1082fd6a"]]), lt = {
5145
+ }, Vc = /* @__PURE__ */ Ae(Ru, [["__scopeId", "data-v-1082fd6a"]]), lt = {
5110
5146
  list: {
5111
5147
  konnect: "/api/runtime_groups/{controlPlaneId}/upstreams/{upstreamId}/targets",
5112
5148
  kongManager: "/{workspace}/upstreams/{upstreamId}/targets"
@@ -5123,10 +5159,10 @@ const xe = {
5123
5159
  validate: "/{workspace}/schemas/targets/validate"
5124
5160
  }
5125
5161
  }
5126
- }, Ru = { class: "kong-ui-entities-target-form" }, Du = { class: "target-form-container" }, zu = {
5162
+ }, Du = { class: "kong-ui-entities-target-form" }, zu = { class: "target-form-container" }, Ju = {
5127
5163
  key: 0,
5128
5164
  class: "target-form-info"
5129
- }, Ju = /* @__PURE__ */ le({
5165
+ }, Wu = /* @__PURE__ */ le({
5130
5166
  __name: "TargetForm",
5131
5167
  props: {
5132
5168
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -5151,10 +5187,10 @@ const xe = {
5151
5187
  emits: ["update", "error", "loading", "cancel"],
5152
5188
  setup(e, { emit: l }) {
5153
5189
  var B;
5154
- Kl((T) => ({
5190
+ $t((T) => ({
5155
5191
  "2094a329": $.value
5156
5192
  }));
5157
- const t = l, a = e, { i18n: { t: s } } = xe.useI18n(), { getMessageFromError: i } = Es(), { axiosInstance: r } = pt({
5193
+ const t = l, a = e, { i18n: { t: s } } = He.useI18n(), { getMessageFromError: i } = Es(), { axiosInstance: r } = pt({
5158
5194
  headers: (B = a.config) == null ? void 0 : B.requestHeaders
5159
5195
  }), c = q(() => {
5160
5196
  var T;
@@ -5181,32 +5217,32 @@ const xe = {
5181
5217
  }), A = q(
5182
5218
  () => JSON.stringify(h.fields) !== JSON.stringify(p) && !!h.fields.target && !!h.fields.weight && !n.value
5183
5219
  ), _ = (T) => {
5184
- var z;
5185
- h.fields.target = (T == null ? void 0 : T.target) || "", h.fields.weight = (T == null ? void 0 : T.weight) ?? "", h.fields.tags = ((z = T == null ? void 0 : T.tags) == null ? void 0 : z.join(", ")) || "", Object.assign(p, h.fields);
5220
+ var D;
5221
+ h.fields.target = (T == null ? void 0 : T.target) || "", h.fields.weight = (T == null ? void 0 : T.weight) ?? "", h.fields.tags = ((D = T == null ? void 0 : T.tags) == null ? void 0 : D.join(", ")) || "", Object.assign(p, h.fields);
5186
5222
  }, g = () => {
5187
5223
  h.errorMessage = "", t("cancel");
5188
5224
  }, b = q(() => {
5189
- var z, K;
5225
+ var D, j;
5190
5226
  let T = `${a.config.apiBaseUrl}${lt.form[a.config.app].validate}`;
5191
- return a.config.app === "konnect" ? T = T.replace(/{controlPlaneId}/gi, ((z = a.config) == null ? void 0 : z.controlPlaneId) || "") : a.config.app === "kongManager" && (T = T.replace(/\/{workspace}/gi, (K = a.config) != null && K.workspace ? `/${a.config.workspace}` : "")), T = T.replace(/{id}/gi, a.targetId), T;
5227
+ return a.config.app === "konnect" ? T = T.replace(/{controlPlaneId}/gi, ((D = a.config) == null ? void 0 : D.controlPlaneId) || "") : a.config.app === "kongManager" && (T = T.replace(/\/{workspace}/gi, (j = a.config) != null && j.workspace ? `/${a.config.workspace}` : "")), T = T.replace(/{id}/gi, a.targetId), T;
5192
5228
  }), H = q(() => {
5193
- var z, K, O, j;
5229
+ var D, j, O, N;
5194
5230
  let T = `${a.config.apiBaseUrl}${lt.form[a.config.app][o.value]}`;
5195
- return a.config.app === "konnect" ? T = T.replace(/{controlPlaneId}/gi, ((z = a.config) == null ? void 0 : z.controlPlaneId) || "").replace(/{upstreamId}/gi, ((K = a.config) == null ? void 0 : K.upstreamId) || "") : a.config.app === "kongManager" && (T = T.replace(/\/{workspace}/gi, (O = a.config) != null && O.workspace ? `/${a.config.workspace}` : "").replace(/{upstreamId}/gi, ((j = a.config) == null ? void 0 : j.upstreamId) || "")), T = T.replace(/{id}/gi, a.targetId), T;
5231
+ return a.config.app === "konnect" ? T = T.replace(/{controlPlaneId}/gi, ((D = a.config) == null ? void 0 : D.controlPlaneId) || "").replace(/{upstreamId}/gi, ((j = a.config) == null ? void 0 : j.upstreamId) || "") : a.config.app === "kongManager" && (T = T.replace(/\/{workspace}/gi, (O = a.config) != null && O.workspace ? `/${a.config.workspace}` : "").replace(/{upstreamId}/gi, ((N = a.config) == null ? void 0 : N.upstreamId) || "")), T = T.replace(/{id}/gi, a.targetId), T;
5196
5232
  }), U = async () => {
5197
- var T, z, K, O, j;
5233
+ var T, D, j, O, N;
5198
5234
  try {
5199
5235
  h.isReadonly = !0, h.errorMessage = "";
5200
5236
  const I = {
5201
5237
  target: h.fields.target,
5202
5238
  weight: parseInt(h.fields.weight),
5203
- tags: (K = (z = (T = h.fields.tags) == null ? void 0 : T.split(",")) == null ? void 0 : z.map((V) => String(V || "").trim())) == null ? void 0 : K.filter((V) => V !== ""),
5239
+ tags: (j = (D = (T = h.fields.tags) == null ? void 0 : T.split(",")) == null ? void 0 : D.map((V) => String(V || "").trim())) == null ? void 0 : j.filter((V) => V !== ""),
5204
5240
  upstream: { id: a.config.upstreamId }
5205
5241
  };
5206
- let N;
5207
- if (await r.post(b.value, I), o.value === "create" ? N = await r.post(H.value, I) : o.value === "edit" && (N = ((O = a.config) == null ? void 0 : O.app) === "konnect" ? await r.put(H.value, I) : await r.patch(H.value, I)), N) {
5208
- const { data: V } = N;
5209
- h.fields.target = (V == null ? void 0 : V.name) || "", h.fields.weight = (V == null ? void 0 : V.weight) ?? 100, h.fields.tags = ((j = V == null ? void 0 : V.tags) == null ? void 0 : j.join(", ")) || "", t("update", V), Object.assign(h.fields, m);
5242
+ let K;
5243
+ if (await r.post(b.value, I), o.value === "create" ? K = await r.post(H.value, I) : o.value === "edit" && (K = ((O = a.config) == null ? void 0 : O.app) === "konnect" ? await r.put(H.value, I) : await r.patch(H.value, I)), K) {
5244
+ const { data: V } = K;
5245
+ h.fields.target = (V == null ? void 0 : V.name) || "", h.fields.weight = (V == null ? void 0 : V.weight) ?? 100, h.fields.tags = ((N = V == null ? void 0 : V.tags) == null ? void 0 : N.join(", ")) || "", t("update", V), Object.assign(h.fields, m);
5210
5246
  }
5211
5247
  } catch (I) {
5212
5248
  h.errorMessage = i(I), t("error", I);
@@ -5216,8 +5252,8 @@ const xe = {
5216
5252
  }, $ = q(() => h.isReadonly ? "inline-flex" : "none");
5217
5253
  return be(() => a.targetId, () => {
5218
5254
  Object.assign(h.fields, m);
5219
- }), (T, z) => {
5220
- const K = M("KInput"), O = M("KPrompt");
5255
+ }), (T, D) => {
5256
+ const j = M("KInput"), O = M("KPrompt");
5221
5257
  return k(), L(O, {
5222
5258
  "action-button-text": u(s)("targets.form.buttons.save"),
5223
5259
  "action-pending": !A.value || h.isReadonly,
@@ -5228,7 +5264,7 @@ const xe = {
5228
5264
  onProceed: U
5229
5265
  }, {
5230
5266
  "body-content": f(() => [
5231
- x("div", Ru, [
5267
+ x("div", Du, [
5232
5268
  y(u(Ms), {
5233
5269
  config: e.config,
5234
5270
  "edit-id": e.targetId,
@@ -5236,18 +5272,18 @@ const xe = {
5236
5272
  "fetch-url": c.value,
5237
5273
  "is-readonly": h.isReadonly,
5238
5274
  onCancel: g,
5239
- "onFetch:error": z[3] || (z[3] = (j) => T.$emit("error", j)),
5275
+ "onFetch:error": D[3] || (D[3] = (N) => T.$emit("error", N)),
5240
5276
  "onFetch:success": _,
5241
- onLoading: z[4] || (z[4] = (j) => T.$emit("loading", j))
5277
+ onLoading: D[4] || (D[4] = (N) => T.$emit("loading", N))
5242
5278
  }, {
5243
5279
  default: f(() => [
5244
- x("div", Du, [
5245
- T.$slots.info ? (k(), E("div", zu, [
5280
+ x("div", zu, [
5281
+ T.$slots.info ? (k(), E("div", Ju, [
5246
5282
  ae(T.$slots, "info", {}, void 0, !0)
5247
5283
  ])) : Q("", !0),
5248
- y(K, {
5284
+ y(j, {
5249
5285
  modelValue: h.fields.target,
5250
- "onUpdate:modelValue": z[0] || (z[0] = (j) => h.fields.target = j),
5286
+ "onUpdate:modelValue": D[0] || (D[0] = (N) => h.fields.target = N),
5251
5287
  modelModifiers: { trim: !0 },
5252
5288
  autocomplete: "off",
5253
5289
  class: "target-form-input",
@@ -5259,9 +5295,9 @@ const xe = {
5259
5295
  required: "",
5260
5296
  type: "text"
5261
5297
  }, null, 8, ["modelValue", "label", "label-attributes", "placeholder", "readonly"]),
5262
- y(K, {
5298
+ y(j, {
5263
5299
  modelValue: h.fields.weight,
5264
- "onUpdate:modelValue": z[1] || (z[1] = (j) => h.fields.weight = j),
5300
+ "onUpdate:modelValue": D[1] || (D[1] = (N) => h.fields.weight = N),
5265
5301
  autocomplete: "off",
5266
5302
  class: "target-form-input",
5267
5303
  "data-testid": "target-form-weight",
@@ -5275,9 +5311,9 @@ const xe = {
5275
5311
  required: "",
5276
5312
  type: "number"
5277
5313
  }, null, 8, ["modelValue", "error", "error-message", "label", "label-attributes", "readonly"]),
5278
- y(K, {
5314
+ y(j, {
5279
5315
  modelValue: h.fields.tags,
5280
- "onUpdate:modelValue": z[2] || (z[2] = (j) => h.fields.tags = j),
5316
+ "onUpdate:modelValue": D[2] || (D[2] = (N) => h.fields.tags = N),
5281
5317
  modelModifiers: { trim: !0 },
5282
5318
  autocomplete: "off",
5283
5319
  class: "target-form-input",
@@ -5298,7 +5334,7 @@ const xe = {
5298
5334
  }, 8, ["action-button-text", "action-pending", "cancel-button-text", "is-visible", "title"]);
5299
5335
  };
5300
5336
  }
5301
- }), Wu = /* @__PURE__ */ He(Ju, [["__scopeId", "data-v-45a3f9ee"]]), Qu = { class: "kong-ui-entities-targets-list" }, Yu = { class: "target-address" }, Zu = /* @__PURE__ */ le({
5337
+ }), Qu = /* @__PURE__ */ Ae(Wu, [["__scopeId", "data-v-45a3f9ee"]]), Yu = { class: "kong-ui-entities-targets-list" }, Zu = { class: "target-address" }, Gu = /* @__PURE__ */ le({
5302
5338
  __name: "TargetsList",
5303
5339
  props: {
5304
5340
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -5339,7 +5375,7 @@ const xe = {
5339
5375
  emits: ["error", "copy:success", "copy:error", "delete:success", "health-actions:healthy", "health-actions:unhealthy", "create:target", "update:target"],
5340
5376
  setup(e, { emit: l }) {
5341
5377
  var te;
5342
- const t = l, a = e, { i18n: { t: s } } = xe.useI18n(), { axiosInstance: i } = pt({
5378
+ const t = l, a = e, { i18n: { t: s } } = He.useI18n(), { axiosInstance: i } = pt({
5343
5379
  headers: (te = a.config) == null ? void 0 : te.requestHeaders
5344
5380
  }), r = P(1), c = q(() => a.config.app !== "kongManager" || !!a.config.disableSorting), d = {
5345
5381
  target: { label: s("targets.list.table_headers.target_address"), sortable: !0 },
@@ -5382,27 +5418,27 @@ const xe = {
5382
5418
  message: s("targets.copy.success_brief")
5383
5419
  });
5384
5420
  }, H = (C) => {
5385
- D.value = C, G.value = !0;
5386
- }, U = (C) => a.config.app === "konnect" ? !1 : a.config.canMarkHealthy(C), $ = (C) => a.config.app === "konnect" ? !1 : a.config.canMarkUnhealthy(C), B = P(void 0), T = P(!1), z = P(!1), K = P(""), O = Ns(a.config, h.value), j = (C) => {
5421
+ z.value = C, G.value = !0;
5422
+ }, U = (C) => a.config.app === "konnect" ? !1 : a.config.canMarkHealthy(C), $ = (C) => a.config.app === "konnect" ? !1 : a.config.canMarkUnhealthy(C), B = P(void 0), T = P(!1), D = P(!1), j = P(""), O = Ks(a.config, h.value), N = (C) => {
5387
5423
  B.value = C, T.value = !0;
5388
5424
  }, I = () => {
5389
5425
  T.value = !1;
5390
- }, N = async () => {
5426
+ }, K = async () => {
5391
5427
  var C, v, w;
5392
5428
  if ((C = B.value) != null && C.id) {
5393
- z.value = !0;
5429
+ D.value = !0;
5394
5430
  try {
5395
- await i.delete(O(B.value.id)), z.value = !1, T.value = !1, r.value++, t("delete:success", B.value);
5431
+ await i.delete(O(B.value.id)), D.value = !1, T.value = !1, r.value++, t("delete:success", B.value);
5396
5432
  } catch (ie) {
5397
- K.value = ((w = (v = ie.response) == null ? void 0 : v.data) == null ? void 0 : w.message) || ie.message || s("targets.errors.delete"), t("error", ie);
5433
+ j.value = ((w = (v = ie.response) == null ? void 0 : v.data) == null ? void 0 : w.message) || ie.message || s("targets.errors.delete"), t("error", ie);
5398
5434
  } finally {
5399
- z.value = !1;
5435
+ D.value = !1;
5400
5436
  }
5401
5437
  }
5402
5438
  }, V = P(!0);
5403
5439
  be(m, (C) => {
5404
5440
  var v, w, ie, ee;
5405
- if (Array.isArray((v = C == null ? void 0 : C.response) == null ? void 0 : v.data) && (V.value = C.response.data.length > 0), C.status === Ae.Error) {
5441
+ if (Array.isArray((v = C == null ? void 0 : C.response) == null ? void 0 : v.data) && (V.value = C.response.data.length > 0), C.status === Te.Error) {
5406
5442
  A.value = {
5407
5443
  title: s("targets.errors.general")
5408
5444
  }, (ee = (ie = (w = C.error) == null ? void 0 : w.response) == null ? void 0 : ie.data) != null && ee.message && (A.value.message = C.error.response.data.message), t("error", C.error);
@@ -5410,7 +5446,7 @@ const xe = {
5410
5446
  }
5411
5447
  A.value = null;
5412
5448
  });
5413
- const Y = P({
5449
+ const Z = P({
5414
5450
  ctaText: void 0,
5415
5451
  message: s("targets.list.empty_state.description"),
5416
5452
  title: s("targets.title"),
@@ -5420,7 +5456,7 @@ const xe = {
5420
5456
  }
5421
5457
  });
5422
5458
  tt(async () => {
5423
- await a.canCreate() && (Y.value.title = s("targets.list.empty_state.title"), Y.value.ctaText = s("targets.actions.create"));
5459
+ await a.canCreate() && (Z.value.title = s("targets.list.empty_state.title"), Z.value.ctaText = s("targets.actions.create"));
5424
5460
  });
5425
5461
  const J = q(() => ({
5426
5462
  app: a.config.app,
@@ -5435,21 +5471,21 @@ const xe = {
5435
5471
  workspace: a.config.workspace,
5436
5472
  requestHeaders: a.config.requestHeaders
5437
5473
  }
5438
- })), D = P(""), G = P(!1), X = (C) => {
5439
- D.value ? t("update:target", C) : t("create:target", C), F();
5474
+ })), z = P(""), G = P(!1), X = (C) => {
5475
+ z.value ? t("update:target", C) : t("create:target", C), F();
5440
5476
  }, F = () => {
5441
5477
  W(), r.value++;
5442
5478
  }, W = () => {
5443
- G.value = !1, D.value = "";
5479
+ G.value = !1, z.value = "";
5444
5480
  };
5445
5481
  return (C, v) => {
5446
5482
  const w = M("KButton"), ie = M("KBadge"), ee = M("KTruncate"), ne = M("KDropdownItem"), pe = M("KClipboardProvider");
5447
- return k(), E("div", Qu, [
5448
- y(u(Ks), {
5483
+ return k(), E("div", Yu, [
5484
+ y(u(js), {
5449
5485
  "cache-identifier": e.cacheIdentifier,
5450
5486
  "disable-pagination-page-jump": "",
5451
5487
  "disable-sorting": c.value,
5452
- "empty-state-options": Y.value,
5488
+ "empty-state-options": Z.value,
5453
5489
  "enable-entity-actions": "",
5454
5490
  "error-message": A.value,
5455
5491
  fetcher: u(p),
@@ -5478,7 +5514,7 @@ const xe = {
5478
5514
  onClick: v[0] || (v[0] = () => a.config.createRoute ? void 0 : _())
5479
5515
  }, {
5480
5516
  default: f(() => [
5481
- Z(S(u(s)("targets.list.toolbar_actions.new_target")), 1)
5517
+ Y(S(u(s)("targets.list.toolbar_actions.new_target")), 1)
5482
5518
  ]),
5483
5519
  _: 1
5484
5520
  }, 8, ["to"]), [
@@ -5490,7 +5526,7 @@ const xe = {
5490
5526
  ], 8, ["disabled"]))
5491
5527
  ]),
5492
5528
  target: f(({ rowValue: se }) => [
5493
- x("span", Yu, S(se), 1)
5529
+ x("span", Zu, S(se), 1)
5494
5530
  ]),
5495
5531
  tags: f(({ rowValue: se }) => [
5496
5532
  y(ee, null, {
@@ -5500,7 +5536,7 @@ const xe = {
5500
5536
  "max-width": "auto"
5501
5537
  }, {
5502
5538
  default: f(() => [
5503
- Z(S(me), 1)
5539
+ Y(S(me), 1)
5504
5540
  ]),
5505
5541
  _: 2
5506
5542
  }, 1024))), 128))
@@ -5516,7 +5552,7 @@ const xe = {
5516
5552
  onClick: (Ue) => g(se, me)
5517
5553
  }, {
5518
5554
  default: f(() => [
5519
- Z(S(u(s)("targets.actions.copy_id")), 1)
5555
+ Y(S(u(s)("targets.actions.copy_id")), 1)
5520
5556
  ]),
5521
5557
  _: 2
5522
5558
  }, 1032, ["onClick"])
@@ -5530,7 +5566,7 @@ const xe = {
5530
5566
  onClick: (Ue) => b(se, me)
5531
5567
  }, {
5532
5568
  default: f(() => [
5533
- Z(S(u(s)("targets.actions.copy_json")), 1)
5569
+ Y(S(u(s)("targets.actions.copy_json")), 1)
5534
5570
  ]),
5535
5571
  _: 2
5536
5572
  }, 1032, ["onClick"])
@@ -5547,7 +5583,7 @@ const xe = {
5547
5583
  onClick: (me) => H(se.id)
5548
5584
  }, {
5549
5585
  default: f(() => [
5550
- Z(S(u(s)("targets.actions.edit")), 1)
5586
+ Y(S(u(s)("targets.actions.edit")), 1)
5551
5587
  ]),
5552
5588
  _: 2
5553
5589
  }, 1032, ["onClick"])
@@ -5563,7 +5599,7 @@ const xe = {
5563
5599
  onClick: (me) => t("health-actions:healthy", se)
5564
5600
  }, {
5565
5601
  default: f(() => [
5566
- Z(S(u(s)("targets.actions.mark_healthy")), 1)
5602
+ Y(S(u(s)("targets.actions.mark_healthy")), 1)
5567
5603
  ]),
5568
5604
  _: 2
5569
5605
  }, 1032, ["onClick"])
@@ -5579,7 +5615,7 @@ const xe = {
5579
5615
  onClick: (me) => t("health-actions:unhealthy", se)
5580
5616
  }, {
5581
5617
  default: f(() => [
5582
- Z(S(u(s)("targets.actions.mark_unhealthy")), 1)
5618
+ Y(S(u(s)("targets.actions.mark_unhealthy")), 1)
5583
5619
  ]),
5584
5620
  _: 2
5585
5621
  }, 1032, ["onClick"])
@@ -5594,10 +5630,10 @@ const xe = {
5594
5630
  danger: "",
5595
5631
  "data-testid": "action-entity-delete",
5596
5632
  "has-divider": "",
5597
- onClick: (me) => j(se)
5633
+ onClick: (me) => N(se)
5598
5634
  }, {
5599
5635
  default: f(() => [
5600
- Z(S(u(s)("targets.actions.delete")), 1)
5636
+ Y(S(u(s)("targets.actions.delete")), 1)
5601
5637
  ]),
5602
5638
  _: 2
5603
5639
  }, 1032, ["onClick"])
@@ -5607,24 +5643,24 @@ const xe = {
5607
5643
  ]),
5608
5644
  _: 1
5609
5645
  }, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "table-headers", "use-action-outside"]),
5610
- y(u(js), {
5611
- "action-pending": z.value,
5646
+ y(u(Ns), {
5647
+ "action-pending": D.value,
5612
5648
  description: u(s)("targets.delete.description"),
5613
- "entity-type": u(Kt).Target,
5614
- error: K.value,
5649
+ "entity-type": u(Nt).Target,
5650
+ error: j.value,
5615
5651
  "need-confirm": !1,
5616
5652
  title: u(s)("targets.delete.title"),
5617
5653
  visible: T.value,
5618
5654
  onCancel: I,
5619
- onProceed: N
5655
+ onProceed: K
5620
5656
  }, null, 8, ["action-pending", "description", "entity-type", "error", "title", "visible"]),
5621
- y(Wu, {
5657
+ y(Qu, {
5622
5658
  config: J.value,
5623
5659
  "is-visible": G.value,
5624
- "target-id": D.value,
5660
+ "target-id": z.value,
5625
5661
  onCancel: W,
5626
5662
  onUpdate: X
5627
- }, Te({ _: 2 }, [
5663
+ }, Oe({ _: 2 }, [
5628
5664
  C.$slots["form-info"] ? {
5629
5665
  name: "info",
5630
5666
  fn: f(() => [
@@ -5636,7 +5672,7 @@ const xe = {
5636
5672
  ]);
5637
5673
  };
5638
5674
  }
5639
- }), Vc = /* @__PURE__ */ He(Zu, [["__scopeId", "data-v-268875d2"]]), Gu = { key: 1 }, Xu = /* @__PURE__ */ le({
5675
+ }), Lc = /* @__PURE__ */ Ae(Gu, [["__scopeId", "data-v-268875d2"]]), Xu = { key: 1 }, ec = /* @__PURE__ */ le({
5640
5676
  __name: "UpstreamsFormGeneralInfo",
5641
5677
  props: {
5642
5678
  config: {
@@ -5667,14 +5703,14 @@ const xe = {
5667
5703
  },
5668
5704
  emits: ["update:name", "update:host-header", "update:client-certificate", "update:tags"],
5669
5705
  setup(e, { emit: l }) {
5670
- var I, N, V, Y;
5671
- const { i18nT: t, i18n: { t: a } } = xe.useI18n(), s = e, i = l, {
5706
+ var I, K, V, Z;
5707
+ const { i18nT: t, i18n: { t: a } } = He.useI18n(), s = e, i = l, {
5672
5708
  debouncedQueryChange: r,
5673
5709
  loading: c,
5674
5710
  loadItems: o,
5675
5711
  results: d,
5676
5712
  allRecords: h
5677
- } = Ul(s.config, (N = We.form[(I = s.config) == null ? void 0 : I.app]) == null ? void 0 : N.getServices, "", {
5713
+ } = $l(s.config, (K = We.form[(I = s.config) == null ? void 0 : I.app]) == null ? void 0 : K.getServices, "", {
5678
5714
  fetchedItemsKey: "data",
5679
5715
  searchKeys: ["host"]
5680
5716
  }), {
@@ -5682,38 +5718,38 @@ const xe = {
5682
5718
  loading: m,
5683
5719
  loadItems: n,
5684
5720
  results: A
5685
- } = Ul(s.config, (Y = We.form[(V = s.config) == null ? void 0 : V.app]) == null ? void 0 : Y.getCertificates), _ = P(""), g = q(() => {
5721
+ } = $l(s.config, (Z = We.form[(V = s.config) == null ? void 0 : V.app]) == null ? void 0 : Z.getCertificates), _ = P(""), g = q(() => {
5686
5722
  var J;
5687
- return !!s.name && !((J = h.value) != null && J.some((D) => D.host === s.name));
5723
+ return !!s.name && !((J = h.value) != null && J.some((z) => z.host === s.name));
5688
5724
  }), b = q(() => {
5689
- var D, G, X;
5690
- const J = g.value && s.name.includes((D = _.value) == null ? void 0 : D.toLowerCase());
5725
+ var z, G, X;
5726
+ const J = g.value && s.name.includes((z = _.value) == null ? void 0 : z.toLowerCase());
5691
5727
  return (X = d.value) == null ? void 0 : X.map((F) => ({ label: F.host, value: F.id })).concat(
5692
5728
  J ? [{ label: s.name, value: ((G = $.value) == null ? void 0 : G.value) || s.name }] : []
5693
5729
  );
5694
5730
  }), H = q(() => {
5695
5731
  var J;
5696
- return (J = A.value) == null ? void 0 : J.map((D) => ({ label: D.id, value: D.id }));
5732
+ return (J = A.value) == null ? void 0 : J.map((z) => ({ label: z.id, value: z.id }));
5697
5733
  }), U = P(""), $ = P({ value: "", label: "" }), B = q(() => {
5698
- var J, D;
5699
- return ((J = b.value.find((G) => G.value === U.value)) == null ? void 0 : J.label) || ((D = $.value) == null ? void 0 : D.label);
5734
+ var J, z;
5735
+ return ((J = b.value.find((G) => G.value === U.value)) == null ? void 0 : J.label) || ((z = $.value) == null ? void 0 : z.label);
5700
5736
  }), T = (J) => {
5701
5737
  _.value = J, r(J);
5702
- }, z = (J) => {
5738
+ }, D = (J) => {
5703
5739
  $.value = J;
5704
- }, K = () => {
5740
+ }, j = () => {
5705
5741
  $.value = { value: "", label: "" };
5706
5742
  }, O = (J) => {
5707
5743
  U.value = J, i("update:name", B.value);
5708
- }, j = P(!1);
5744
+ }, N = P(!1);
5709
5745
  return tt(async () => {
5710
- var J, D;
5746
+ var J, z;
5711
5747
  try {
5712
- j.value = !0, await o(), s.name && (U.value = ((D = (J = b.value.find((G) => G.label === s.name)) == null ? void 0 : J.value) == null ? void 0 : D.toString()) || s.name), await n();
5748
+ N.value = !0, await o(), s.name && (U.value = ((z = (J = b.value.find((G) => G.label === s.name)) == null ? void 0 : J.value) == null ? void 0 : z.toString()) || s.name), await n();
5713
5749
  } finally {
5714
- j.value = !1;
5750
+ N.value = !1;
5715
5751
  }
5716
- }), (J, D) => {
5752
+ }), (J, z) => {
5717
5753
  const G = M("KSkeleton"), X = M("KSelect"), F = M("KInput");
5718
5754
  return k(), L(u(at), {
5719
5755
  class: "kong-ui-entities-upstreams-general-info",
@@ -5721,10 +5757,10 @@ const xe = {
5721
5757
  title: u(a)("upstreams.form.general_info.title")
5722
5758
  }, {
5723
5759
  default: f(() => [
5724
- j.value ? (k(), L(G, {
5760
+ N.value ? (k(), L(G, {
5725
5761
  key: 0,
5726
5762
  type: "form"
5727
- })) : (k(), E("div", Gu, [
5763
+ })) : (k(), E("div", Xu, [
5728
5764
  y(X, {
5729
5765
  appearance: "select",
5730
5766
  autosuggest: "",
@@ -5742,8 +5778,8 @@ const xe = {
5742
5778
  readonly: e.readonly,
5743
5779
  required: "",
5744
5780
  width: "100%",
5745
- "onItem:added": z,
5746
- "onItem:removed": K,
5781
+ "onItem:added": D,
5782
+ "onItem:removed": j,
5747
5783
  onQueryChange: T,
5748
5784
  "onUpdate:modelValue": O
5749
5785
  }, {
@@ -5768,7 +5804,7 @@ const xe = {
5768
5804
  "model-value": e.hostHeader,
5769
5805
  readonly: e.readonly,
5770
5806
  type: "text",
5771
- "onUpdate:modelValue": D[0] || (D[0] = (W) => i("update:host-header", W))
5807
+ "onUpdate:modelValue": z[0] || (z[0] = (W) => i("update:host-header", W))
5772
5808
  }, null, 8, ["label", "model-value", "readonly"]),
5773
5809
  y(X, {
5774
5810
  appearance: "select",
@@ -5786,7 +5822,7 @@ const xe = {
5786
5822
  readonly: e.readonly,
5787
5823
  width: "100%",
5788
5824
  onQueryChange: u(p),
5789
- "onUpdate:modelValue": D[1] || (D[1] = (W) => i("update:client-certificate", W))
5825
+ "onUpdate:modelValue": z[1] || (z[1] = (W) => i("update:client-certificate", W))
5790
5826
  }, null, 8, ["items", "label", "label-attributes", "loading", "model-value", "placeholder", "readonly", "onQueryChange"]),
5791
5827
  y(F, {
5792
5828
  autocomplete: "off",
@@ -5798,7 +5834,7 @@ const xe = {
5798
5834
  placeholder: u(a)("upstreams.form.fields.tags.placeholder"),
5799
5835
  readonly: e.readonly,
5800
5836
  type: "text",
5801
- "onUpdate:modelValue": D[2] || (D[2] = (W) => i("update:tags", W))
5837
+ "onUpdate:modelValue": z[2] || (z[2] = (W) => i("update:tags", W))
5802
5838
  }, null, 8, ["help", "label", "label-attributes", "model-value", "placeholder", "readonly"])
5803
5839
  ]))
5804
5840
  ]),
@@ -5806,10 +5842,10 @@ const xe = {
5806
5842
  }, 8, ["description", "title"]);
5807
5843
  };
5808
5844
  }
5809
- }), ec = /* @__PURE__ */ He(Xu, [["__scopeId", "data-v-02065a3d"]]), mt = {
5845
+ }), tc = /* @__PURE__ */ Ae(ec, [["__scopeId", "data-v-02065a3d"]]), mt = {
5810
5846
  upstreamObject: "https://docs.konghq.com/gateway/latest/admin-api/#upstream-object",
5811
5847
  loadBalancing: "https://docs.konghq.com/gateway/latest/how-kong-works/load-balancing/#main"
5812
- }, tc = { class: "fields-group-title" }, ac = { class: "fields-group-text" }, lc = { class: "fields-group-title" }, sc = { class: "fields-group-text" }, rc = /* @__PURE__ */ le({
5848
+ }, ac = { class: "fields-group-title" }, lc = { class: "fields-group-text" }, sc = { class: "fields-group-title" }, rc = { class: "fields-group-text" }, ic = /* @__PURE__ */ le({
5813
5849
  __name: "UpstreamsFormLoadBalancing",
5814
5850
  props: {
5815
5851
  algorithm: {
@@ -5868,7 +5904,7 @@ const xe = {
5868
5904
  },
5869
5905
  emits: ["update:algorithm", "update:slots", "update:hash-on", "update:hash-fallback", "update:hash-on-header", "update:hash-on-cookie", "update:hash-on-cookie-path", "update:hash-on-query-argument", "update:hash-on-uri-capture", "update:hash-fallback-header", "update:hash-fallback-query-argument", "update:hash-fallback-uri-capture"],
5870
5906
  setup(e, { emit: l }) {
5871
- const { i18nT: t, i18n: { t: a } } = xe.useI18n(), { inRange: s } = ft(), i = e, r = l, c = P([
5907
+ const { i18nT: t, i18n: { t: a } } = He.useI18n(), { inRange: s } = ft(), i = e, r = l, c = P([
5872
5908
  {
5873
5909
  label: a("upstreams.form.algorithms.round_robin_label"),
5874
5910
  value: "round-robin",
@@ -5945,13 +5981,13 @@ const xe = {
5945
5981
  }, {
5946
5982
  description: f(() => [
5947
5983
  x("p", null, [
5948
- Z(S(u(a)("upstreams.form.load_balancing.help")) + " ", 1),
5984
+ Y(S(u(a)("upstreams.form.load_balancing.help")) + " ", 1),
5949
5985
  y(n, {
5950
5986
  "hide-icon": "",
5951
5987
  href: u(mt).upstreamObject
5952
5988
  }, {
5953
5989
  default: f(() => [
5954
- Z(S(u(a)("upstreams.form.buttons.view_documentation")), 1)
5990
+ Y(S(u(a)("upstreams.form.buttons.view_documentation")), 1)
5955
5991
  ]),
5956
5992
  _: 1
5957
5993
  }, 8, ["href"])
@@ -5984,8 +6020,8 @@ const xe = {
5984
6020
  }, null, 8, ["error", "error-message", "help", "label", "max", "min", "model-value", "readonly"]),
5985
6021
  y(g, null, {
5986
6022
  default: f(() => [
5987
- x("h5", tc, S(u(a)("upstreams.form.fields.hash_on.label")), 1),
5988
- x("p", ac, S(u(a)("upstreams.form.fields.hash_on.help")), 1),
6023
+ x("h5", ac, S(u(a)("upstreams.form.fields.hash_on.label")), 1),
6024
+ x("p", lc, S(u(a)("upstreams.form.fields.hash_on.help")), 1),
5989
6025
  y(A, {
5990
6026
  appearance: "select",
5991
6027
  class: "hash-on-select",
@@ -6061,8 +6097,8 @@ const xe = {
6061
6097
  }),
6062
6098
  y(g, null, {
6063
6099
  default: f(() => [
6064
- x("h5", lc, S(u(a)("upstreams.form.fields.hash_fallback.label")), 1),
6065
- x("p", sc, S(u(a)("upstreams.form.fields.hash_fallback.help")), 1),
6100
+ x("h5", sc, S(u(a)("upstreams.form.fields.hash_fallback.label")), 1),
6101
+ x("p", rc, S(u(a)("upstreams.form.fields.hash_fallback.help")), 1),
6066
6102
  y(A, {
6067
6103
  appearance: "select",
6068
6104
  class: "hash-fallback-select",
@@ -6159,7 +6195,7 @@ const xe = {
6159
6195
  }, 8, ["title"]);
6160
6196
  };
6161
6197
  }
6162
- }), ic = /* @__PURE__ */ He(rc, [["__scopeId", "data-v-3a210772"]]), nc = { class: "fields-group-title" }, oc = { class: "fields-group-text" }, uc = { class: "fields-group-title" }, cc = { class: "fields-group-text" }, dc = /* @__PURE__ */ le({
6198
+ }), nc = /* @__PURE__ */ Ae(ic, [["__scopeId", "data-v-3a210772"]]), oc = { class: "fields-group-title" }, uc = { class: "fields-group-text" }, cc = { class: "fields-group-title" }, dc = { class: "fields-group-text" }, hc = /* @__PURE__ */ le({
6163
6199
  __name: "UpstreamsFormHealthChecks",
6164
6200
  props: {
6165
6201
  activeHealthSwitch: {
@@ -6182,7 +6218,7 @@ const xe = {
6182
6218
  },
6183
6219
  emits: ["update:active-health-switch", "update:passive-health-switch", "update:healthchecks-threshold"],
6184
6220
  setup(e, { emit: l }) {
6185
- const { i18n: { t } } = xe.useI18n(), a = l;
6221
+ const { i18n: { t } } = He.useI18n(), a = l;
6186
6222
  return (s, i) => {
6187
6223
  const r = M("KExternalLink"), c = M("KInputSwitch"), o = M("KCard"), d = M("KInput");
6188
6224
  return k(), L(u(at), {
@@ -6191,13 +6227,13 @@ const xe = {
6191
6227
  }, {
6192
6228
  description: f(() => [
6193
6229
  x("p", null, [
6194
- Z(S(u(t)("upstreams.form.health_check.help")) + " ", 1),
6230
+ Y(S(u(t)("upstreams.form.health_check.help")) + " ", 1),
6195
6231
  y(r, {
6196
6232
  "hide-icon": "",
6197
6233
  href: u(mt).loadBalancing
6198
6234
  }, {
6199
6235
  default: f(() => [
6200
- Z(S(u(t)("upstreams.form.buttons.view_documentation")), 1)
6236
+ Y(S(u(t)("upstreams.form.buttons.view_documentation")), 1)
6201
6237
  ]),
6202
6238
  _: 1
6203
6239
  }, 8, ["href"])
@@ -6206,8 +6242,8 @@ const xe = {
6206
6242
  default: f(() => [
6207
6243
  y(o, null, {
6208
6244
  default: f(() => [
6209
- x("h5", nc, S(u(t)("upstreams.form.fields.active_health_checks.label")), 1),
6210
- x("p", oc, S(u(t)("upstreams.form.fields.active_health_checks.help")), 1),
6245
+ x("h5", oc, S(u(t)("upstreams.form.fields.active_health_checks.label")), 1),
6246
+ x("p", uc, S(u(t)("upstreams.form.fields.active_health_checks.help")), 1),
6211
6247
  y(c, {
6212
6248
  class: "active-health-switch",
6213
6249
  "data-testid": "active-health-switch",
@@ -6220,8 +6256,8 @@ const xe = {
6220
6256
  }),
6221
6257
  y(o, null, {
6222
6258
  default: f(() => [
6223
- x("h5", uc, S(u(t)("upstreams.form.fields.passive_health_checks.label")), 1),
6224
- x("p", cc, S(u(t)("upstreams.form.fields.passive_health_checks.help")), 1),
6259
+ x("h5", cc, S(u(t)("upstreams.form.fields.passive_health_checks.label")), 1),
6260
+ x("p", dc, S(u(t)("upstreams.form.fields.passive_health_checks.help")), 1),
6225
6261
  y(c, {
6226
6262
  class: "passive-health-switch",
6227
6263
  "data-testid": "passive-health-switch",
@@ -6236,8 +6272,8 @@ const xe = {
6236
6272
  autocomplete: "off",
6237
6273
  "data-testid": "upstreams-form-healthchecks-threshold",
6238
6274
  label: u(t)("upstreams.form.fields.healthchecks_threshold.label"),
6239
- max: u(Ku),
6240
- min: u(Mu),
6275
+ max: u(Nu),
6276
+ min: u(ju),
6241
6277
  "model-value": e.healthchecksThreshold,
6242
6278
  readonly: e.readonly,
6243
6279
  type: "number",
@@ -6248,7 +6284,7 @@ const xe = {
6248
6284
  }, 8, ["title"]);
6249
6285
  };
6250
6286
  }
6251
- }), hc = /* @__PURE__ */ He(dc, [["__scopeId", "data-v-bfdc5a59"]]), pc = { key: 2 }, fc = { class: "fields-group-title" }, mc = { class: "fields-group-text" }, gc = { class: "fields-group-title" }, yc = { class: "fields-group-text" }, vc = /* @__PURE__ */ le({
6287
+ }), pc = /* @__PURE__ */ Ae(hc, [["__scopeId", "data-v-bfdc5a59"]]), fc = { key: 2 }, mc = { class: "fields-group-title" }, gc = { class: "fields-group-text" }, yc = { class: "fields-group-title" }, vc = { class: "fields-group-text" }, bc = /* @__PURE__ */ le({
6252
6288
  __name: "UpstreamsFormActiveHealthCheck",
6253
6289
  props: {
6254
6290
  config: {
@@ -6323,7 +6359,7 @@ const xe = {
6323
6359
  },
6324
6360
  emits: ["update:type", "update:http-path", "update:timeout", "update:concurrency", "update:https-sni", "update:verify-ssl", "update:headers", "update:interval", "update:successes", "update:http-statuses", "update:unhealthy-interval", "update:http-failures", "update:tcp-failures", "update:unhealthy-http-statuses", "update:unhealthy-timeouts"],
6325
6361
  setup(e, { emit: l }) {
6326
- const { i18n: { t } } = xe.useI18n(), { objectsAreEqual: a } = ft(), s = e, i = l, r = P([
6362
+ const { i18n: { t } } = He.useI18n(), { objectsAreEqual: a } = ft(), s = e, i = l, r = P([
6327
6363
  {
6328
6364
  label: t("upstreams.form.healthcheck_type_labels.http"),
6329
6365
  value: "http",
@@ -6372,27 +6408,27 @@ const xe = {
6372
6408
  _ === 0 && p.value.length === 1 ? p.value[0] = { key: "", values: "" } : p.value.splice(_, 1), m();
6373
6409
  };
6374
6410
  return (_, g) => {
6375
- const b = M("KExternalLink"), H = M("KSelect"), U = M("KInput"), $ = M("KCheckbox"), B = M("KLabel"), T = M("KIcon"), z = M("KButton"), K = M("KMultiselect"), O = M("KCard");
6411
+ const b = M("KExternalLink"), H = M("KSelect"), U = M("KInput"), $ = M("KCheckbox"), B = M("KLabel"), T = M("KIcon"), D = M("KButton"), j = M("KMultiselect"), O = M("KCard");
6376
6412
  return k(), L(u(at), {
6377
6413
  class: "kong-ui-entities-upstreams-active-healthcheck",
6378
6414
  title: u(t)("upstreams.form.active_health_check.title")
6379
6415
  }, {
6380
6416
  description: f(() => [
6381
6417
  x("p", null, [
6382
- Z(S(u(t)("upstreams.form.active_health_check.help")) + " ", 1),
6418
+ Y(S(u(t)("upstreams.form.active_health_check.help")) + " ", 1),
6383
6419
  y(b, {
6384
6420
  "hide-icon": "",
6385
6421
  href: u(mt).upstreamObject
6386
6422
  }, {
6387
6423
  default: f(() => [
6388
- Z(S(u(t)("upstreams.form.buttons.view_documentation")), 1)
6424
+ Y(S(u(t)("upstreams.form.buttons.view_documentation")), 1)
6389
6425
  ]),
6390
6426
  _: 1
6391
6427
  }, 8, ["href"])
6392
6428
  ])
6393
6429
  ]),
6394
6430
  default: f(() => {
6395
- var j;
6431
+ var N;
6396
6432
  return [
6397
6433
  y(H, {
6398
6434
  appearance: "select",
@@ -6418,8 +6454,8 @@ const xe = {
6418
6454
  autocomplete: "off",
6419
6455
  "data-testid": "active-healthcheck-timeout",
6420
6456
  label: u(t)("upstreams.form.fields.timeout.label"),
6421
- max: u(Nu),
6422
- min: u(ju),
6457
+ max: u(Eu),
6458
+ min: u(Ku),
6423
6459
  "model-value": e.timeout,
6424
6460
  readonly: e.readonly,
6425
6461
  type: "number",
@@ -6429,8 +6465,8 @@ const xe = {
6429
6465
  autocomplete: "off",
6430
6466
  "data-testid": "active-healthcheck-concurrency",
6431
6467
  label: u(t)("upstreams.form.fields.concurrency.label"),
6432
- max: u(Pu),
6433
- min: u(Eu),
6468
+ max: u(Bu),
6469
+ min: u(Pu),
6434
6470
  "model-value": e.concurrency,
6435
6471
  readonly: e.readonly,
6436
6472
  type: "number",
@@ -6455,44 +6491,44 @@ const xe = {
6455
6491
  "onUpdate:modelValue": g[5] || (g[5] = (I) => i("update:verify-ssl", I))
6456
6492
  }, null, 8, ["disabled", "label", "model-value"])
6457
6493
  ], 64)) : Q("", !0),
6458
- ((j = e.config) == null ? void 0 : j.app) === "kongManager" ? (k(), E("div", pc, [
6494
+ ((N = e.config) == null ? void 0 : N.app) === "kongManager" ? (k(), E("div", fc, [
6459
6495
  y(B, {
6460
6496
  info: u(t)("upstreams.form.fields.headers.tooltip_active"),
6461
6497
  "tooltip-attributes": { maxWidth: "250px" }
6462
6498
  }, {
6463
6499
  default: f(() => [
6464
- Z(S(u(t)("upstreams.form.fields.headers.label")), 1)
6500
+ Y(S(u(t)("upstreams.form.fields.headers.label")), 1)
6465
6501
  ]),
6466
6502
  _: 1
6467
6503
  }, 8, ["info"]),
6468
6504
  x("div", null, [
6469
- (k(!0), E(de, null, ve(p.value, (I, N) => (k(), E("div", {
6470
- key: `${I.header}_${N}`,
6471
- class: qe(["headers-row", { "margin-top-6": N > 0 }])
6505
+ (k(!0), E(de, null, ve(p.value, (I, K) => (k(), E("div", {
6506
+ key: `${I.header}_${K}`,
6507
+ class: Ie(["headers-row", { "margin-top-6": K > 0 }])
6472
6508
  }, [
6473
6509
  y(U, {
6474
- modelValue: p.value[N].key,
6475
- "onUpdate:modelValue": (V) => p.value[N].key = V,
6510
+ modelValue: p.value[K].key,
6511
+ "onUpdate:modelValue": (V) => p.value[K].key = V,
6476
6512
  autocomplete: "off",
6477
- "data-testid": `active-healthcheck-headers-header-${N + 1}`,
6513
+ "data-testid": `active-healthcheck-headers-header-${K + 1}`,
6478
6514
  readonly: e.readonly,
6479
6515
  type: "text",
6480
6516
  onBlur: m
6481
6517
  }, null, 8, ["modelValue", "onUpdate:modelValue", "data-testid", "readonly"]),
6482
6518
  y(U, {
6483
- modelValue: p.value[N].values,
6484
- "onUpdate:modelValue": (V) => p.value[N].values = V,
6519
+ modelValue: p.value[K].values,
6520
+ "onUpdate:modelValue": (V) => p.value[K].values = V,
6485
6521
  autocomplete: "off",
6486
- "data-testid": `active-healthcheck-headers-value-${N + 1}`,
6522
+ "data-testid": `active-healthcheck-headers-value-${K + 1}`,
6487
6523
  readonly: e.readonly,
6488
6524
  type: "text",
6489
6525
  onBlur: m
6490
6526
  }, null, 8, ["modelValue", "onUpdate:modelValue", "data-testid", "readonly"]),
6491
- y(z, {
6527
+ y(D, {
6492
6528
  appearance: "tertiary",
6493
6529
  class: "btn-remove",
6494
6530
  "data-testid": "btn-remove-header",
6495
- onClick: (V) => A(N)
6531
+ onClick: (V) => A(K)
6496
6532
  }, {
6497
6533
  icon: f(() => [
6498
6534
  y(T, {
@@ -6502,7 +6538,7 @@ const xe = {
6502
6538
  ]),
6503
6539
  _: 2
6504
6540
  }, 1032, ["onClick"]),
6505
- p.value && N === p.value.length - 1 ? (k(), L(z, {
6541
+ p.value && K === p.value.length - 1 ? (k(), L(D, {
6506
6542
  key: 0,
6507
6543
  appearance: "tertiary",
6508
6544
  class: "btn-add-header",
@@ -6523,16 +6559,16 @@ const xe = {
6523
6559
  ])) : Q("", !0),
6524
6560
  y(O, null, {
6525
6561
  default: f(() => [
6526
- x("h5", fc, S(u(t)("upstreams.form.healthy.label")), 1),
6527
- x("p", mc, S(u(t)("upstreams.form.healthy.help")), 1),
6562
+ x("h5", mc, S(u(t)("upstreams.form.healthy.label")), 1),
6563
+ x("p", gc, S(u(t)("upstreams.form.healthy.help")), 1),
6528
6564
  y(U, {
6529
6565
  autocomplete: "off",
6530
6566
  class: "margin-bottom-6",
6531
6567
  "data-testid": "active-healthcheck-interval",
6532
6568
  help: u(t)("upstreams.form.fields.interval.help"),
6533
6569
  label: u(t)("upstreams.form.fields.interval.label"),
6534
- max: u(Ml),
6535
- min: u($l),
6570
+ max: u(jl),
6571
+ min: u(Ml),
6536
6572
  "model-value": e.interval,
6537
6573
  readonly: e.readonly,
6538
6574
  type: "number",
@@ -6549,7 +6585,7 @@ const xe = {
6549
6585
  type: "number",
6550
6586
  "onUpdate:modelValue": g[7] || (g[7] = (I) => i("update:successes", I))
6551
6587
  }, null, 8, ["label", "max", "min", "model-value", "readonly"]),
6552
- o.value ? Q("", !0) : (k(), L(K, {
6588
+ o.value ? Q("", !0) : (k(), L(j, {
6553
6589
  key: 0,
6554
6590
  autocomplete: "off",
6555
6591
  class: "margin-top-6 active-healthcheck-http-statuses",
@@ -6568,16 +6604,16 @@ const xe = {
6568
6604
  }),
6569
6605
  y(O, null, {
6570
6606
  default: f(() => [
6571
- x("h5", gc, S(u(t)("upstreams.form.unhealthy.label")), 1),
6572
- x("p", yc, S(u(t)("upstreams.form.unhealthy.help")), 1),
6607
+ x("h5", yc, S(u(t)("upstreams.form.unhealthy.label")), 1),
6608
+ x("p", vc, S(u(t)("upstreams.form.unhealthy.help")), 1),
6573
6609
  y(U, {
6574
6610
  autocomplete: "off",
6575
6611
  class: "margin-bottom-6",
6576
6612
  "data-testid": "active-healthcheck-unhealthy-interval",
6577
6613
  help: u(t)("upstreams.form.fields.interval.help"),
6578
6614
  label: u(t)("upstreams.form.fields.interval.label"),
6579
- max: u(Ml),
6580
- min: u($l),
6615
+ max: u(jl),
6616
+ min: u(Ml),
6581
6617
  "model-value": e.unhealthyInterval,
6582
6618
  readonly: e.readonly,
6583
6619
  type: "number",
@@ -6608,7 +6644,7 @@ const xe = {
6608
6644
  type: "number",
6609
6645
  "onUpdate:modelValue": g[13] || (g[13] = (I) => i("update:http-failures", I))
6610
6646
  }, null, 8, ["label", "max", "min", "model-value", "readonly"]),
6611
- y(K, {
6647
+ y(j, {
6612
6648
  autocomplete: "off",
6613
6649
  class: "margin-bottom-6 active-healthcheck-unhealthy-http-statuses",
6614
6650
  "enable-item-creation": "",
@@ -6642,7 +6678,7 @@ const xe = {
6642
6678
  }, 8, ["title"]);
6643
6679
  };
6644
6680
  }
6645
- }), bc = /* @__PURE__ */ He(vc, [["__scopeId", "data-v-305fcec9"]]), kc = { class: "fields-group-title" }, Cc = { class: "fields-group-text" }, _c = { class: "fields-group-title" }, wc = { class: "fields-group-text" }, Sc = /* @__PURE__ */ le({
6681
+ }), kc = /* @__PURE__ */ Ae(bc, [["__scopeId", "data-v-305fcec9"]]), Cc = { class: "fields-group-title" }, _c = { class: "fields-group-text" }, wc = { class: "fields-group-title" }, Sc = { class: "fields-group-text" }, Ic = /* @__PURE__ */ le({
6646
6682
  __name: "UpstreamsFormPassiveHealthCheck",
6647
6683
  props: {
6648
6684
  type: {
@@ -6681,7 +6717,7 @@ const xe = {
6681
6717
  },
6682
6718
  emits: ["update:type", "update:successes", "update:http-statuses", "update:timeouts", "update:http-failures", "update:unhealthy-http-statuses", "update:tcp-failures"],
6683
6719
  setup(e, { emit: l }) {
6684
- const { i18n: { t } } = xe.useI18n(), a = e, s = l, i = P([
6720
+ const { i18n: { t } } = He.useI18n(), a = e, s = l, i = P([
6685
6721
  {
6686
6722
  label: t("upstreams.form.healthcheck_type_labels.http"),
6687
6723
  value: "http",
@@ -6722,13 +6758,13 @@ const xe = {
6722
6758
  }, {
6723
6759
  description: f(() => [
6724
6760
  x("p", null, [
6725
- Z(S(u(t)("upstreams.form.passive_health_check.help")) + " ", 1),
6761
+ Y(S(u(t)("upstreams.form.passive_health_check.help")) + " ", 1),
6726
6762
  y(p, {
6727
6763
  "hide-icon": "",
6728
6764
  href: u(mt).upstreamObject
6729
6765
  }, {
6730
6766
  default: f(() => [
6731
- Z(S(u(t)("upstreams.form.buttons.view_documentation")), 1)
6767
+ Y(S(u(t)("upstreams.form.buttons.view_documentation")), 1)
6732
6768
  ]),
6733
6769
  _: 1
6734
6770
  }, 8, ["href"])
@@ -6747,8 +6783,8 @@ const xe = {
6747
6783
  }, null, 8, ["items", "label", "model-value", "readonly"]),
6748
6784
  y(_, null, {
6749
6785
  default: f(() => [
6750
- x("h5", kc, S(u(t)("upstreams.form.passive_healthy.label")), 1),
6751
- x("p", Cc, S(u(t)("upstreams.form.passive_healthy.help")), 1),
6786
+ x("h5", Cc, S(u(t)("upstreams.form.passive_healthy.label")), 1),
6787
+ x("p", _c, S(u(t)("upstreams.form.passive_healthy.help")), 1),
6752
6788
  y(n, {
6753
6789
  autocomplete: "off",
6754
6790
  "data-testid": "passive-healthcheck-successes",
@@ -6778,8 +6814,8 @@ const xe = {
6778
6814
  }),
6779
6815
  y(_, null, {
6780
6816
  default: f(() => [
6781
- x("h5", _c, S(u(t)("upstreams.form.passive_unhealthy.label")), 1),
6782
- x("p", wc, S(u(t)("upstreams.form.passive_unhealthy.help")), 1),
6817
+ x("h5", wc, S(u(t)("upstreams.form.passive_unhealthy.label")), 1),
6818
+ x("p", Sc, S(u(t)("upstreams.form.passive_unhealthy.help")), 1),
6783
6819
  y(n, {
6784
6820
  autocomplete: "off",
6785
6821
  "data-testid": "passive-healthcheck-timeouts",
@@ -6838,7 +6874,7 @@ const xe = {
6838
6874
  }, 8, ["title"]);
6839
6875
  };
6840
6876
  }
6841
- }), Ic = /* @__PURE__ */ He(Sc, [["__scopeId", "data-v-43c4e55e"]]), xc = { class: "kong-ui-entities-upstreams-form" }, Hc = /* @__PURE__ */ le({
6877
+ }), xc = /* @__PURE__ */ Ae(Ic, [["__scopeId", "data-v-43c4e55e"]]), Hc = { class: "kong-ui-entities-upstreams-form" }, Ac = /* @__PURE__ */ le({
6842
6878
  __name: "UpstreamsForm",
6843
6879
  props: {
6844
6880
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -6859,7 +6895,7 @@ const xe = {
6859
6895
  var te;
6860
6896
  const t = e, a = l, { inRange: s, stringToNumberArray: i, upstreamsResponseToFields: r, getDefaultUpstreamFields: c, objectsAreEqual: o, cloneDeep: d } = ft(), { axiosInstance: h } = pt({
6861
6897
  headers: (te = t.config) == null ? void 0 : te.requestHeaders
6862
- }), { getMessageFromError: p } = Es(), m = Mt(), n = st({
6898
+ }), { getMessageFromError: p } = Es(), m = jt(), n = st({
6863
6899
  fields: c(),
6864
6900
  readonly: !1,
6865
6901
  errorMessage: ""
@@ -6867,15 +6903,15 @@ const xe = {
6867
6903
  n.fields.activeHealthCheck.interval = C ? "5" : "0", n.fields.activeHealthCheck.successes = C ? "5" : "0", n.fields.activeHealthCheck.httpFailures = C ? "5" : "0", n.fields.activeHealthCheck.unhealthyInterval = C ? "5" : "0";
6868
6904
  }, b = (C) => {
6869
6905
  n.fields.passiveHealthCheck.timeouts = C ? "5" : "0", n.fields.passiveHealthCheck.successes = C ? "80" : "0";
6870
- }, H = q(() => n.fields.slots ? s(n.fields.slots, At, Tt) : !0), U = q(() => n.fields.hashOn === "header" ? !!n.fields.hashOnHeader : !0), $ = q(() => n.fields.hashOn === "cookie" || n.fields.hashFallback === "cookie" ? !!n.fields.hashOnCookie : !0), B = q(() => n.fields.hashOn === "cookie" || n.fields.hashFallback === "cookie" ? !!n.fields.hashOnCookiePath : !0), T = q(() => n.fields.hashOn === "query_arg" ? !!n.fields.hashOnQueryArgument : !0), z = q(() => n.fields.hashOn === "uri_capture" ? !!n.fields.hashOnUriCapture : !0), K = q(() => n.fields.hashFallback === "header" ? !!n.fields.hashFallbackHeader : !0), O = q(() => n.fields.hashFallback === "query_arg" ? !!n.fields.hashFallbackQueryArgument : !0), j = q(() => n.fields.hashFallback === "uri_capture" ? !!n.fields.hashFallbackUriCapture : !0), I = q(() => !!n.fields.name && H.value && U.value && $.value && B.value && T.value && z.value && K.value && O.value && j.value), N = q(() => t.upstreamId ? _e.Edit : _e.Create), V = q(() => {
6906
+ }, H = q(() => n.fields.slots ? s(n.fields.slots, At, Tt) : !0), U = q(() => n.fields.hashOn === "header" ? !!n.fields.hashOnHeader : !0), $ = q(() => n.fields.hashOn === "cookie" || n.fields.hashFallback === "cookie" ? !!n.fields.hashOnCookie : !0), B = q(() => n.fields.hashOn === "cookie" || n.fields.hashFallback === "cookie" ? !!n.fields.hashOnCookiePath : !0), T = q(() => n.fields.hashOn === "query_arg" ? !!n.fields.hashOnQueryArgument : !0), D = q(() => n.fields.hashOn === "uri_capture" ? !!n.fields.hashOnUriCapture : !0), j = q(() => n.fields.hashFallback === "header" ? !!n.fields.hashFallbackHeader : !0), O = q(() => n.fields.hashFallback === "query_arg" ? !!n.fields.hashFallbackQueryArgument : !0), N = q(() => n.fields.hashFallback === "uri_capture" ? !!n.fields.hashFallbackUriCapture : !0), I = q(() => !!n.fields.name && H.value && U.value && $.value && B.value && T.value && D.value && j.value && O.value && N.value), K = q(() => t.upstreamId ? _e.Edit : _e.Create), V = q(() => {
6871
6907
  var C, v;
6872
6908
  return (v = We.form[(C = t.config) == null ? void 0 : C.app]) == null ? void 0 : v.edit;
6873
- }), Y = (C) => {
6909
+ }), Z = (C) => {
6874
6910
  Object.assign(n.fields, r(C)), Object.assign(A, d(n.fields));
6875
6911
  }, J = () => {
6876
6912
  var C;
6877
6913
  m.push(((C = t.config) == null ? void 0 : C.cancelRoute) || { name: "upstreams-list" });
6878
- }, D = (C) => {
6914
+ }, z = (C) => {
6879
6915
  a("loading", C);
6880
6916
  }, G = (C) => {
6881
6917
  a("error", C);
@@ -6901,7 +6937,7 @@ const xe = {
6901
6937
  } : {
6902
6938
  ...pe
6903
6939
  };
6904
- }, {})), (n.fields.activeHealthCheck.type === "https" || n.fields.activeHealthCheck.type === "grpcs") && n.fields.activeHealthCheck.httpsSni && (C.healthchecks.active.https_sni = n.fields.activeHealthCheck.httpsSni), (n.fields.activeHealthCheck.type === "https" || n.fields.activeHealthCheck.type === "grpcs") && (C.healthchecks.active.https_verify_certificate = n.fields.activeHealthCheck.verifySsl), n.fields.activeHealthCheck.interval && (C.healthchecks.active.healthy.interval = Number(n.fields.activeHealthCheck.interval)), n.fields.activeHealthCheck.successes && (C.healthchecks.active.healthy.successes = Number(n.fields.activeHealthCheck.successes)), n.fields.activeHealthCheck.type !== "tcp" && n.fields.activeHealthCheck.httpStatuses && (C.healthchecks.active.healthy.http_statuses = i(n.fields.activeHealthCheck.httpStatuses)), n.fields.activeHealthCheck.unhealthyInterval && (C.healthchecks.active.unhealthy.interval = Number(n.fields.activeHealthCheck.unhealthyInterval)), n.fields.activeHealthCheck.unhealthyTimeouts && (C.healthchecks.active.unhealthy.timeouts = Number(n.fields.activeHealthCheck.unhealthyTimeouts)), n.fields.activeHealthCheck.type !== "tcp" && n.fields.activeHealthCheck.unhealthyHttpStatuses && (C.healthchecks.active.unhealthy.http_statuses = i(n.fields.activeHealthCheck.unhealthyHttpStatuses)), n.fields.activeHealthCheck.type !== "tcp" && n.fields.activeHealthCheck.httpFailures && (C.healthchecks.active.unhealthy.http_failures = Number(n.fields.activeHealthCheck.httpFailures)), n.fields.activeHealthCheck.type === "tcp" && n.fields.activeHealthCheck.tcpFailures && (C.healthchecks.active.unhealthy.tcp_failures = Number(n.fields.activeHealthCheck.tcpFailures))) : ((ee = t.config) == null ? void 0 : ee.app) === "kongManager" && N.value === _e.Edit && (C.healthchecks.active = {
6940
+ }, {})), (n.fields.activeHealthCheck.type === "https" || n.fields.activeHealthCheck.type === "grpcs") && n.fields.activeHealthCheck.httpsSni && (C.healthchecks.active.https_sni = n.fields.activeHealthCheck.httpsSni), (n.fields.activeHealthCheck.type === "https" || n.fields.activeHealthCheck.type === "grpcs") && (C.healthchecks.active.https_verify_certificate = n.fields.activeHealthCheck.verifySsl), n.fields.activeHealthCheck.interval && (C.healthchecks.active.healthy.interval = Number(n.fields.activeHealthCheck.interval)), n.fields.activeHealthCheck.successes && (C.healthchecks.active.healthy.successes = Number(n.fields.activeHealthCheck.successes)), n.fields.activeHealthCheck.type !== "tcp" && n.fields.activeHealthCheck.httpStatuses && (C.healthchecks.active.healthy.http_statuses = i(n.fields.activeHealthCheck.httpStatuses)), n.fields.activeHealthCheck.unhealthyInterval && (C.healthchecks.active.unhealthy.interval = Number(n.fields.activeHealthCheck.unhealthyInterval)), n.fields.activeHealthCheck.unhealthyTimeouts && (C.healthchecks.active.unhealthy.timeouts = Number(n.fields.activeHealthCheck.unhealthyTimeouts)), n.fields.activeHealthCheck.type !== "tcp" && n.fields.activeHealthCheck.unhealthyHttpStatuses && (C.healthchecks.active.unhealthy.http_statuses = i(n.fields.activeHealthCheck.unhealthyHttpStatuses)), n.fields.activeHealthCheck.type !== "tcp" && n.fields.activeHealthCheck.httpFailures && (C.healthchecks.active.unhealthy.http_failures = Number(n.fields.activeHealthCheck.httpFailures)), n.fields.activeHealthCheck.type === "tcp" && n.fields.activeHealthCheck.tcpFailures && (C.healthchecks.active.unhealthy.tcp_failures = Number(n.fields.activeHealthCheck.tcpFailures))) : ((ee = t.config) == null ? void 0 : ee.app) === "kongManager" && K.value === _e.Edit && (C.healthchecks.active = {
6905
6941
  type: n.fields.activeHealthCheck.type,
6906
6942
  headers: {},
6907
6943
  healthy: {
@@ -6914,7 +6950,7 @@ const xe = {
6914
6950
  type: n.fields.passiveHealthCheck.type,
6915
6951
  healthy: {},
6916
6952
  unhealthy: {}
6917
- }, n.fields.passiveHealthCheck.successes && (C.healthchecks.passive.healthy.successes = Number(n.fields.passiveHealthCheck.successes)), n.fields.passiveHealthCheck.type !== "tcp" && n.fields.passiveHealthCheck.httpStatuses && (C.healthchecks.passive.healthy.http_statuses = i(n.fields.passiveHealthCheck.httpStatuses)), n.fields.passiveHealthCheck.timeouts && (C.healthchecks.passive.unhealthy.timeouts = Number(n.fields.passiveHealthCheck.timeouts)), n.fields.passiveHealthCheck.type !== "tcp" && n.fields.passiveHealthCheck.unhealthyHttpStatuses && (C.healthchecks.passive.unhealthy.http_statuses = i(n.fields.passiveHealthCheck.unhealthyHttpStatuses)), n.fields.passiveHealthCheck.type !== "tcp" && n.fields.passiveHealthCheck.httpFailures && (C.healthchecks.passive.unhealthy.http_failures = Number(n.fields.passiveHealthCheck.httpFailures)), n.fields.passiveHealthCheck.type === "tcp" && n.fields.passiveHealthCheck.tcpFailures && (C.healthchecks.passive.unhealthy.tcp_failures = Number(n.fields.passiveHealthCheck.tcpFailures))) : ((ne = t.config) == null ? void 0 : ne.app) === "kongManager" && N.value === _e.Edit && (C.healthchecks.passive = {
6953
+ }, n.fields.passiveHealthCheck.successes && (C.healthchecks.passive.healthy.successes = Number(n.fields.passiveHealthCheck.successes)), n.fields.passiveHealthCheck.type !== "tcp" && n.fields.passiveHealthCheck.httpStatuses && (C.healthchecks.passive.healthy.http_statuses = i(n.fields.passiveHealthCheck.httpStatuses)), n.fields.passiveHealthCheck.timeouts && (C.healthchecks.passive.unhealthy.timeouts = Number(n.fields.passiveHealthCheck.timeouts)), n.fields.passiveHealthCheck.type !== "tcp" && n.fields.passiveHealthCheck.unhealthyHttpStatuses && (C.healthchecks.passive.unhealthy.http_statuses = i(n.fields.passiveHealthCheck.unhealthyHttpStatuses)), n.fields.passiveHealthCheck.type !== "tcp" && n.fields.passiveHealthCheck.httpFailures && (C.healthchecks.passive.unhealthy.http_failures = Number(n.fields.passiveHealthCheck.httpFailures)), n.fields.passiveHealthCheck.type === "tcp" && n.fields.passiveHealthCheck.tcpFailures && (C.healthchecks.passive.unhealthy.tcp_failures = Number(n.fields.passiveHealthCheck.tcpFailures))) : ((ne = t.config) == null ? void 0 : ne.app) === "kongManager" && K.value === _e.Edit && (C.healthchecks.passive = {
6918
6954
  type: n.fields.passiveHealthCheck.type,
6919
6955
  healthy: {
6920
6956
  successes: 0
@@ -6934,14 +6970,14 @@ const xe = {
6934
6970
  try {
6935
6971
  n.readonly = !0, await h.post(F("validate"), X());
6936
6972
  let v;
6937
- N.value === _e.Create ? v = await h.post(F("create"), X()) : N.value === _e.Edit && (v = ((C = t.config) == null ? void 0 : C.app) === "konnect" ? await h.put(F("edit"), X()) : await h.patch(F("edit"), X())), a("update", v == null ? void 0 : v.data);
6973
+ K.value === _e.Create ? v = await h.post(F("create"), X()) : K.value === _e.Edit && (v = ((C = t.config) == null ? void 0 : C.app) === "konnect" ? await h.put(F("edit"), X()) : await h.patch(F("edit"), X())), a("update", v == null ? void 0 : v.data);
6938
6974
  } catch (v) {
6939
6975
  n.errorMessage = p(v), a("error", v);
6940
6976
  } finally {
6941
6977
  n.readonly = !1;
6942
6978
  }
6943
6979
  };
6944
- return (C, v) => (k(), E("div", xc, [
6980
+ return (C, v) => (k(), E("div", Hc, [
6945
6981
  y(u(Ms), {
6946
6982
  "can-submit": I.value && _.value,
6947
6983
  config: e.config,
@@ -6951,12 +6987,12 @@ const xe = {
6951
6987
  "is-readonly": n.readonly,
6952
6988
  onCancel: J,
6953
6989
  "onFetch:error": G,
6954
- "onFetch:success": Y,
6955
- onLoading: D,
6990
+ "onFetch:success": Z,
6991
+ onLoading: z,
6956
6992
  onSubmit: W
6957
6993
  }, {
6958
6994
  default: f(() => [
6959
- y(ec, {
6995
+ y(tc, {
6960
6996
  "client-certificate": n.fields.clientCertificate,
6961
6997
  "onUpdate:clientCertificate": v[0] || (v[0] = (w) => n.fields.clientCertificate = w),
6962
6998
  "host-header": n.fields.hostHeader,
@@ -6968,7 +7004,7 @@ const xe = {
6968
7004
  config: e.config,
6969
7005
  readonly: n.readonly
6970
7006
  }, null, 8, ["client-certificate", "host-header", "name", "tags", "config", "readonly"]),
6971
- y(ic, {
7007
+ y(nc, {
6972
7008
  algorithm: n.fields.algorithm,
6973
7009
  "onUpdate:algorithm": v[4] || (v[4] = (w) => n.fields.algorithm = w),
6974
7010
  "hash-fallback": n.fields.hashFallback,
@@ -6995,7 +7031,7 @@ const xe = {
6995
7031
  "onUpdate:slots": v[15] || (v[15] = (w) => n.fields.slots = w),
6996
7032
  readonly: n.readonly
6997
7033
  }, null, 8, ["algorithm", "hash-fallback", "hash-fallback-header", "hash-fallback-query-argument", "hash-fallback-uri-capture", "hash-on", "hash-on-cookie", "hash-on-cookie-path", "hash-on-header", "hash-on-query-argument", "hash-on-uri-capture", "slots", "readonly"]),
6998
- y(hc, {
7034
+ y(pc, {
6999
7035
  "active-health-switch": n.fields.activeHealthSwitch,
7000
7036
  "onUpdate:activeHealthSwitch": [
7001
7037
  v[16] || (v[16] = (w) => n.fields.activeHealthSwitch = w),
@@ -7010,7 +7046,7 @@ const xe = {
7010
7046
  ],
7011
7047
  readonly: n.readonly
7012
7048
  }, null, 8, ["active-health-switch", "healthchecks-threshold", "passive-health-switch", "readonly"]),
7013
- n.fields.activeHealthSwitch ? (k(), L(bc, {
7049
+ n.fields.activeHealthSwitch ? (k(), L(kc, {
7014
7050
  key: 0,
7015
7051
  concurrency: n.fields.activeHealthCheck.concurrency,
7016
7052
  "onUpdate:concurrency": v[19] || (v[19] = (w) => n.fields.activeHealthCheck.concurrency = w),
@@ -7045,7 +7081,7 @@ const xe = {
7045
7081
  config: e.config,
7046
7082
  readonly: n.readonly
7047
7083
  }, null, 8, ["concurrency", "headers", "http-failures", "http-path", "http-statuses", "https-sni", "interval", "successes", "tcp-failures", "timeout", "type", "unhealthy-http-statuses", "unhealthy-interval", "unhealthy-timeouts", "verify-ssl", "config", "readonly"])) : Q("", !0),
7048
- n.fields.passiveHealthSwitch ? (k(), L(Ic, {
7084
+ n.fields.passiveHealthSwitch ? (k(), L(xc, {
7049
7085
  key: 1,
7050
7086
  "http-failures": n.fields.passiveHealthCheck.httpFailures,
7051
7087
  "onUpdate:httpFailures": v[34] || (v[34] = (w) => n.fields.passiveHealthCheck.httpFailures = w),
@@ -7068,7 +7104,7 @@ const xe = {
7068
7104
  }, 8, ["can-submit", "config", "edit-id", "error-message", "fetch-url", "is-readonly"])
7069
7105
  ]));
7070
7106
  }
7071
- }), Lc = /* @__PURE__ */ He(Hc, [["__scopeId", "data-v-810fb7b7"]]), Ac = /* @__PURE__ */ x("code", null, "10", -1), Tc = /* @__PURE__ */ x("code", null, "65536", -1), Oc = { "data-testid": "client_certificate-plain-text" }, Rc = /* @__PURE__ */ le({
7107
+ }), Rc = /* @__PURE__ */ Ae(Ac, [["__scopeId", "data-v-810fb7b7"]]), Tc = /* @__PURE__ */ x("code", null, "10", -1), Oc = /* @__PURE__ */ x("code", null, "65536", -1), qc = { "data-testid": "client_certificate-plain-text" }, Dc = /* @__PURE__ */ le({
7072
7108
  __name: "UpstreamsConfigCard",
7073
7109
  props: {
7074
7110
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -7095,7 +7131,7 @@ const xe = {
7095
7131
  },
7096
7132
  emits: ["loading", "fetch:error", "fetch:success", "copy:success"],
7097
7133
  setup(e) {
7098
- const l = e, { i18n: { t }, i18nT: a } = xe.useI18n(), { getPropValue: s } = Ou(), i = q(() => We.form[l.config.app].edit), r = P({
7134
+ const l = e, { i18n: { t }, i18nT: a } = He.useI18n(), { getPropValue: s } = qu(), i = q(() => We.form[l.config.app].edit), r = P({
7099
7135
  id: {},
7100
7136
  name: {},
7101
7137
  created_at: {},
@@ -7170,7 +7206,7 @@ const xe = {
7170
7206
  }
7171
7207
  });
7172
7208
  return (c, o) => (k(), E("div", null, [
7173
- y(u(Zo), {
7209
+ y(u(Go), {
7174
7210
  config: e.config,
7175
7211
  "config-card-doc": e.configCardDoc,
7176
7212
  "config-schema": r.value,
@@ -7294,10 +7330,10 @@ const xe = {
7294
7330
  x("code", null, S(u(t)("upstreams.form.hash_tooltips.slots.consistent_hashing")), 1)
7295
7331
  ]),
7296
7332
  min: f(() => [
7297
- Ac
7333
+ Tc
7298
7334
  ]),
7299
7335
  max: f(() => [
7300
- Tc
7336
+ Oc
7301
7337
  ]),
7302
7338
  _: 1
7303
7339
  })
@@ -7373,7 +7409,7 @@ const xe = {
7373
7409
  var h;
7374
7410
  return [
7375
7411
  x("div", null, [
7376
- x("div", Oc, [
7412
+ x("div", qc, [
7377
7413
  x("span", null, S((h = u(s)("rowValue", d)) == null ? void 0 : h.id), 1)
7378
7414
  ])
7379
7415
  ])
@@ -7385,9 +7421,9 @@ const xe = {
7385
7421
  }
7386
7422
  });
7387
7423
  export {
7388
- Wu as TargetForm,
7389
- Vc as TargetsList,
7390
- Rc as UpstreamsConfigCard,
7391
- Lc as UpstreamsForm,
7392
- Bc as UpstreamsList
7424
+ Qu as TargetForm,
7425
+ Lc as TargetsList,
7426
+ Dc as UpstreamsConfigCard,
7427
+ Rc as UpstreamsForm,
7428
+ Vc as UpstreamsList
7393
7429
  };