@kong-ui-public/entities-shared 3.35.0 → 3.36.1-pr.2731.85320bd35.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,13 +1,13 @@
1
- import { inject as qt, ref as N, computed as $, unref as A, toValue as he, watch as be, toRef as zn, provide as Ht, defineComponent as z, createBlock as M, openBlock as h, resolveDynamicComponent as Pe, normalizeClass as fe, withCtx as _, createElementBlock as T, createCommentVNode as j, createElementVNode as L, toDisplayString as O, Fragment as ue, renderList as ce, resolveComponent as P, createVNode as K, createTextVNode as q, useCssVars as Vt, useId as Qn, useSlots as Ue, renderSlot as U, createSlots as $e, normalizeProps as Zn, guardReactiveProps as Xn, mergeProps as Yt, onMounted as it, onBeforeMount as rt, withModifiers as Re, Teleport as Wt, onUnmounted as ei, withDirectives as ke, vShow as Ce, withKeys as ti, warn as ni } from "vue";
1
+ import { inject as qt, ref as N, computed as S, unref as _, toValue as ge, watch as be, toRef as zn, provide as Ht, defineComponent as z, createBlock as K, openBlock as g, resolveDynamicComponent as je, normalizeClass as fe, withCtx as w, createElementBlock as $, createCommentVNode as D, createElementVNode as L, toDisplayString as I, Fragment as ue, renderList as ce, resolveComponent as U, createVNode as R, createTextVNode as q, useCssVars as Vt, useId as Qn, useSlots as Ue, renderSlot as j, createSlots as ke, normalizeProps as Zn, guardReactiveProps as Xn, mergeProps as Yt, onMounted as it, onBeforeMount as rt, withModifiers as Re, Teleport as Wt, onUnmounted as ei, withDirectives as Ce, vShow as xe, withKeys as ti, warn as ni } from "vue";
2
2
  import mt from "axios";
3
3
  import { createI18n as ii, i18nTComponent as ri } from "@kong-ui-public/i18n";
4
- import { BadgeMethodAppearances as ai, KExternalLink as oi, KButton as ht, KTruncate as li, KBadge as si } from "@kong/kongponents";
4
+ import { BadgeMethodAppearances as ai, KExternalLink as oi, KButton as gt, KTruncate as li, KBadge as si } from "@kong/kongponents";
5
5
  import { createdBundledHighlighter as ci, createSingletonShorthands as ui } from "@shikijs/core";
6
6
  import { createJavaScriptRegexEngine as di } from "@shikijs/engine-javascript";
7
- import { BookIcon as Jt, LanguageShellIcon as gt, LanguageBashIcon as yt, AddIcon as Gt, CloseIcon as fi, ChevronDownIcon as pi, CopyIcon as mi } from "@kong/icons";
8
- import { useRouter as hi } from "vue-router";
9
- var gi = /* @__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.Secret = "secret", e.RedisConfiguration = "redis configuration", e))(gi || {}), yi = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(yi || {}), me = /* @__PURE__ */ ((e) => (e[e.InitialLoad = 0] = "InitialLoad", e[e.Loading = 1] = "Loading", e[e.Idle = 2] = "Idle", e[e.NoResults = 3] = "NoResults", e[e.NoRecords = 4] = "NoRecords", e[e.Error = 5] = "Error", e))(me || {}), Se = /* @__PURE__ */ ((e) => (e.CaCertificate = "ca_certificate", e.Certificate = "certificate", e.Consumer = "consumer", e.ConsumerGroup = "consumer_group", e.GatewayService = "service", e.Key = "key", e.KeySet = "set", e.Plugin = "plugin", e.Route = "route", e.SNI = "sni", e.Upstream = "upstream", e.Target = "target", e.Vault = "vault", e.Partial = "partial", e.BackendCluster = "backend_cluster", e.VirtualCluster = "virtual_cluster", e.Listener = "listener", e.ProducePolicy = "produce_policy", e.ConsumePolicy = "consume_policy", e.ClusterPolicy = "cluster_policy", e.ListenerPolicy = "listener_policy", e.SchemaRegistry = "schema_registry", e.StaticKey = "static_key", e.AuthServer = "auth_server", e.AuthServerScopes = "auth_server_scopes", e.AuthServerClaims = "auth_server_claims", e.AuthServerClients = "auth_server_clients", e.Other = "other", e))(Se || {});
10
- const qe = Object.values(Se), vi = [
7
+ import { BookIcon as Jt, LanguageShellIcon as ht, LanguageBashIcon as yt, AddIcon as Gt, CloseIcon as fi, ChevronDownIcon as pi, CopyIcon as mi } from "@kong/icons";
8
+ import { useRouter as gi } from "vue-router";
9
+ var hi = /* @__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.Secret = "secret", e.RedisConfiguration = "redis configuration", e))(hi || {}), yi = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(yi || {}), me = /* @__PURE__ */ ((e) => (e[e.InitialLoad = 0] = "InitialLoad", e[e.Loading = 1] = "Loading", e[e.Idle = 2] = "Idle", e[e.NoResults = 3] = "NoResults", e[e.NoRecords = 4] = "NoRecords", e[e.Error = 5] = "Error", e))(me || {}), $e = /* @__PURE__ */ ((e) => (e.CaCertificate = "ca_certificate", e.Certificate = "certificate", e.Consumer = "consumer", e.ConsumerGroup = "consumer_group", e.GatewayService = "service", e.Key = "key", e.KeySet = "set", e.Plugin = "plugin", e.Route = "route", e.SNI = "sni", e.Upstream = "upstream", e.Target = "target", e.Vault = "vault", e.Partial = "partial", e.BackendCluster = "backend_cluster", e.VirtualCluster = "virtual_cluster", e.Listener = "listener", e.ProducePolicy = "produce_policy", e.ConsumePolicy = "consume_policy", e.ClusterPolicy = "cluster_policy", e.ListenerPolicy = "listener_policy", e.SchemaRegistry = "schema_registry", e.StaticKey = "static_key", e.AuthServer = "auth_server", e.AuthServerScopes = "auth_server_scopes", e.AuthServerClaims = "auth_server_claims", e.AuthServerClients = "auth_server_clients", e.Other = "other", e))($e || {});
10
+ const qe = Object.values($e), vi = [
11
11
  "ca_certificate",
12
12
  "certificate",
13
13
  "consumer",
@@ -23,7 +23,7 @@ const qe = Object.values(Se), vi = [
23
23
  "partial"
24
24
  /* Partial */
25
25
  ], bi = ["backend_cluster", "virtual_cluster", "listener", "produce_policy", "consume_policy", "cluster_policy", "listener_policy", "schema_registry", "static_key"], ki = ["auth_server", "auth_server_scopes", "auth_server_claims", "auth_server_clients"];
26
- var Y = /* @__PURE__ */ ((e) => (e.ID = "id", e.IdArray = "id-array", e.Text = "plain-text", e.Date = "date", e.Redacted = "redacted", e.RedactedArray = "redacted-array", e.Json = "json", e.JsonArray = "json-array", e.BadgeTag = "badge-tag", e.CopyBadge = "copy-badge", e.BadgeStatus = "badge-status", e.BadgeMethod = "badge-method", e.LinkInternal = "link-internal", e.LinkExternal = "link-external", e))(Y || {}), ae = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e.Policy = "policy", e))(ae || {});
26
+ var W = /* @__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.CopyBadge = "copy-badge", e.BadgeStatus = "badge-status", e.BadgeMethod = "badge-method", e.LinkInternal = "link-internal", e.LinkExternal = "link-external", e))(W || {}), ae = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e.Policy = "policy", e))(ae || {});
27
27
  const vt = [
28
28
  "primary",
29
29
  "secondary"
@@ -119,7 +119,8 @@ const wi = {
119
119
  messageWithName: "Are you sure you want to delete this {entityType} {entityName}?"
120
120
  }, $i = {
121
121
  actions: {
122
- viewConfiguration: "View Configuration",
122
+ viewConfiguration: "View configuration",
123
+ hideConfiguration: "Hide configuration",
123
124
  save: "Save",
124
125
  cancel: "Cancel",
125
126
  back: "Back"
@@ -211,7 +212,10 @@ const wi = {
211
212
  confirmText: "Yes, disable"
212
213
  }
213
214
  }, Ki = {
214
- hint: "The {token} environment variable must be added first. See {link} for details.",
215
+ hint: {
216
+ konnect: "The {token} environment variable must be added first. See {link} for details.",
217
+ kongManager: "If your Admin API is secured, set up authentication following {link}."
218
+ },
215
219
  documentation: "the documentation"
216
220
  }, Ni = {
217
221
  global: wi,
@@ -283,11 +287,11 @@ function Mi(e, t, n, i = {
283
287
  }) {
284
288
  n || (n = "1000");
285
289
  const { axiosInstance: r } = at(e.axiosRequestConfig), { i18n: { t: o } } = He(), { debounce: a } = xi(), l = a(async (B) => {
286
- await x(B);
287
- }, 200), s = N(!1), c = N(""), d = N(""), u = N([]), p = N([]), m = N(void 0), y = $(() => {
288
- const B = `${e.apiBaseUrl}${A(t)}`;
290
+ await A(B);
291
+ }, 200), s = N(!1), c = N(""), d = N(""), u = N([]), p = N([]), m = N(void 0), y = S(() => {
292
+ const B = `${e.apiBaseUrl}${_(t)}`;
289
293
  return e.app === "konnect" ? B.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" ? B.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : "") : B;
290
- }), { isValidUuid: g } = zt(), k = async () => {
294
+ }), { isValidUuid: h } = zt(), b = async () => {
291
295
  try {
292
296
  s.value = !0;
293
297
  const { data: B } = await r.get(`${y.value}?size=${n}`);
@@ -297,51 +301,51 @@ function Mi(e, t, n, i = {
297
301
  } finally {
298
302
  s.value = !1;
299
303
  }
300
- }, C = N(""), x = async (B) => {
301
- var D, X, S;
302
- if (C.value !== B) {
303
- if (C.value = B ?? "", !B) {
304
+ }, k = N(""), A = async (B) => {
305
+ var P, ee, M;
306
+ if (k.value !== B) {
307
+ if (k.value = B ?? "", !B) {
304
308
  u.value = p.value;
305
309
  return;
306
310
  }
307
311
  if (m.value === void 0)
308
312
  try {
309
313
  if (s.value = !0, c.value = "", d.value = "", e.app === "konnect") {
310
- const w = `${y.value}/${B}`, { data: F } = await r.get(`${w}?size=${n}`);
311
- i.fetchedItemsKey in F ? u.value = F[i.fetchedItemsKey] : F != null && F[i.exactMatchKey ?? "id"] ? u.value = [F] : u.value = [];
314
+ const F = `${y.value}/${B}`, { data: x } = await r.get(`${F}?size=${n}`);
315
+ i.fetchedItemsKey in x ? u.value = x[i.fetchedItemsKey] : x != null && x[i.exactMatchKey ?? "id"] ? u.value = [x] : u.value = [];
312
316
  } else {
313
- const w = [];
314
- g(B) && i.searchKeys.includes("id") ? w.push((async () => {
317
+ const F = [];
318
+ h(B) && i.searchKeys.includes("id") ? F.push((async () => {
315
319
  const { data: v } = await r.get(`${y.value}/${B}`);
316
320
  return [v[i.fetchedItemsKey] ?? v];
317
- })()) : w.push(
321
+ })()) : F.push(
318
322
  ...i.searchKeys.filter((v) => v !== "id").map(async (v) => {
319
- const { data: b } = await r.get(`${y.value}?${v}=${B}`);
320
- return b[i.fetchedItemsKey];
323
+ const { data: C } = await r.get(`${y.value}?${v}=${B}`);
324
+ return C[i.fetchedItemsKey];
321
325
  })
322
326
  );
323
- const F = await Promise.all(w), f = /* @__PURE__ */ new Set();
324
- u.value = [], (D = F == null ? void 0 : F.forEach) == null || D.call(F, (v) => {
325
- var b;
326
- (b = v == null ? void 0 : v.forEach) == null || b.call(v, (V) => {
327
- f.has(V.id) || (f.add(V.id), u.value.push(V));
327
+ const x = await Promise.all(F), f = /* @__PURE__ */ new Set();
328
+ u.value = [], (P = x == null ? void 0 : x.forEach) == null || P.call(x, (v) => {
329
+ var C;
330
+ (C = v == null ? void 0 : v.forEach) == null || C.call(v, (Y) => {
331
+ f.has(Y.id) || (f.add(Y.id), u.value.push(Y));
328
332
  });
329
333
  });
330
334
  }
331
- } catch (w) {
332
- ((X = w == null ? void 0 : w.response) == null ? void 0 : X.status) === 404 ? d.value = o("debouncedFilter.errors.invalid") : (u.value = [], c.value = o("debouncedFilter.errors.fetch"));
335
+ } catch (F) {
336
+ ((ee = F == null ? void 0 : F.response) == null ? void 0 : ee.status) === 404 ? d.value = o("debouncedFilter.errors.invalid") : (u.value = [], c.value = o("debouncedFilter.errors.fetch"));
333
337
  } finally {
334
338
  s.value = !1;
335
339
  }
336
340
  else
337
- s.value = !0, d.value = "", u.value = (S = m.value) == null ? void 0 : S.filter((w) => {
341
+ s.value = !0, d.value = "", u.value = (M = m.value) == null ? void 0 : M.filter((F) => {
338
342
  var f;
339
- let F = !1;
343
+ let x = !1;
340
344
  for (const v of i.searchKeys) {
341
- const b = typeof w[v] == "string" ? (f = w[v]) == null ? void 0 : f.toLowerCase() : w[v];
342
- b != null && b.includes(B.toLowerCase()) && (F = !0);
345
+ const C = typeof F[v] == "string" ? (f = F[v]) == null ? void 0 : f.toLowerCase() : F[v];
346
+ C != null && C.includes(B.toLowerCase()) && (x = !0);
343
347
  }
344
- return F;
348
+ return x;
345
349
  }), (!u.value || !u.value.length) && (d.value = o("debouncedFilter.errors.invalid")), s.value = !1;
346
350
  }
347
351
  };
@@ -351,17 +355,17 @@ function Mi(e, t, n, i = {
351
355
  validationError: d,
352
356
  results: u,
353
357
  allRecords: m,
354
- loadItems: k,
358
+ loadItems: b,
355
359
  debouncedQueryChange: l
356
360
  };
357
361
  }
358
- function ji(e, t) {
359
- const n = A(t), i = $(
362
+ function Di(e, t) {
363
+ const n = _(t), i = S(
360
364
  () => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${n}`) : new URL(n)
361
365
  );
362
366
  return i.value.search = "", (r) => `${i.value.href}/${r}`;
363
367
  }
364
- function Di() {
368
+ function Pi() {
365
369
  const { i18n: { t: e } } = He();
366
370
  return {
367
371
  getErrorFieldsFromError: (i) => {
@@ -433,7 +437,7 @@ function Di() {
433
437
  }
434
438
  };
435
439
  }
436
- function Pi(e) {
440
+ function ji(e) {
437
441
  const t = window.location.origin, n = t.endsWith("/") ? t : `${t}/`;
438
442
  try {
439
443
  const i = e.join("/"), r = `${n}${i}`, o = e.some((l) => l.trim() === "");
@@ -445,48 +449,48 @@ function Pi(e) {
445
449
  }
446
450
  }
447
451
  function Qt(e, t) {
448
- const n = $(() => {
449
- const r = he(e);
452
+ const n = S(() => {
453
+ const r = ge(e);
450
454
  return r.app === "konnect" || !!r.isExactMatch;
451
- }), i = $(() => {
452
- const r = he(t);
455
+ }), i = S(() => {
456
+ const r = ge(t);
453
457
  return r.startsWith("/") ? new URL(`${window.location.origin}${r}`) : new URL(r);
454
458
  });
455
459
  return (r) => {
456
460
  const { page: o, pageSize: a, offset: l, sortColumnKey: s, sortColumnOrder: c, query: d } = r;
457
461
  try {
458
462
  let u = new URL(i.value.href);
459
- return n.value && d ? (u.search = "", u = he(e).isExactMatch ? new URL(`${u.href}/${d}`) : new URL(`${u.href}?filter[name][contains]=${d}`)) : (n.value || new URLSearchParams(d).forEach((p, m) => {
463
+ return n.value && d ? (u.search = "", u = ge(e).isExactMatch ? new URL(`${u.href}/${d}`) : new URL(`${u.href}?filter[name][contains]=${d}`)) : (n.value || new URLSearchParams(d).forEach((p, m) => {
460
464
  u.searchParams.append(m, p);
461
465
  }), s && u.searchParams.append("sort_by", s), c === "desc" && u.searchParams.append("sort_desc", "1"), u.searchParams.append("size", String(a))), l && o !== 1 && u.searchParams.append("offset", String(l)), u.href;
462
466
  } catch (u) {
463
- return console.error("RouteList(fetcher)", u), he(t);
467
+ return console.error("RouteList(fetcher)", u), ge(t);
464
468
  }
465
469
  };
466
470
  }
467
471
  const bt = /* @__PURE__ */ new Map();
468
472
  function Ui(e, t, n) {
469
- const i = N(!0), r = he(e), { axiosInstance: o } = at(r.axiosRequestConfig), a = Qt(e, t), l = N({
473
+ const i = N(!0), r = ge(e), { axiosInstance: o } = at(r.axiosRequestConfig), a = Qt(e, t), l = N({
470
474
  status: me.Idle
471
475
  }), s = async (u) => {
472
476
  var m;
473
- const p = he(n) || "data";
477
+ const p = ge(n) || "data";
474
478
  try {
475
479
  l.value = i.value ? { status: me.InitialLoad } : { status: me.Loading }, i.value = !1;
476
480
  let y = a(u);
477
481
  y.includes("filter[name]") && (y = `${y}&page[size]=${u.pageSize}&page[number]=${u.page}`);
478
- const g = await o.get(y);
479
- if (g.status >= 400)
480
- throw g;
481
- const k = g.data, C = p && p.replace(/[^\w-_]/gi, "");
482
- let x;
483
- k[C] ? x = Array.isArray(k[C]) ? k[C] : [k[C]] : Array.isArray(k) ? x = k : x = Object.keys(k).length ? [k] : [];
482
+ const h = await o.get(y);
483
+ if (h.status >= 400)
484
+ throw h;
485
+ const b = h.data, k = p && p.replace(/[^\w-_]/gi, "");
486
+ let A;
487
+ b[k] ? A = Array.isArray(b[k]) ? b[k] : [b[k]] : Array.isArray(b) ? A = b : A = Object.keys(b).length ? [b] : [];
484
488
  const B = {
485
- data: x,
486
- total: x.length,
487
- ...k.offset ? {
489
+ data: A,
490
+ total: A.length,
491
+ ...b.offset ? {
488
492
  pagination: {
489
- offset: k.offset
493
+ offset: b.offset
490
494
  }
491
495
  } : null
492
496
  };
@@ -498,19 +502,19 @@ function Ui(e, t, n) {
498
502
  response: B
499
503
  }, B;
500
504
  } catch (y) {
501
- const g = {
505
+ const h = {
502
506
  data: [],
503
507
  total: 0
504
508
  };
505
509
  return u.query && (((m = y.response) == null ? void 0 : m.status) === 404 || y.status === 404) ? (l.value = {
506
510
  status: me.NoResults,
507
- response: g,
511
+ response: h,
508
512
  error: y.response ? y : { response: y }
509
- }, g) : (l.value = {
513
+ }, h) : (l.value = {
510
514
  status: me.Error,
511
- response: g,
515
+ response: h,
512
516
  error: y.response ? y : { response: y }
513
- }, g);
517
+ }, h);
514
518
  }
515
519
  }, c = r.cacheIdentifier, d = Zt(c);
516
520
  return { fetcher: s, fetcherState: l, fetcherCacheKey: d };
@@ -589,7 +593,7 @@ function zi(e) {
589
593
  return be(e, (o) => {
590
594
  o && !i.value && (t.value = o.offsetWidth, n.value = o.scrollWidth, i.value = !0);
591
595
  }), {
592
- isTruncated: $(() => t.value < n.value)
596
+ isTruncated: S(() => t.value < n.value)
593
597
  };
594
598
  }
595
599
  function Qi() {
@@ -607,25 +611,25 @@ const Qe = Symbol("schema"), Zi = (e) => {
607
611
  };
608
612
  function er(e) {
609
613
  let t = "";
610
- const n = N(!1), i = N(null), r = $(() => {
614
+ const n = N(!1), i = N(null), r = S(() => {
611
615
  let a;
612
- return n.value ? a = !0 : i.value ? a = i.value.hasData || e && he(e) : a = !1, !a;
616
+ return n.value ? a = !0 : i.value ? a = i.value.hasData || e && ge(e) : a = !1, !a;
613
617
  });
614
618
  return {
615
619
  tableState: i,
616
620
  hasRecords: n,
617
621
  hideTableToolbar: r,
618
622
  handleStateChange: (a) => {
619
- a.hasData ? n.value = !0 : a.state === "success" && !a.hasData && (!e || !t) && (n.value = !1), e && (t = he(e)), i.value = { ...a };
623
+ a.hasData ? n.value = !0 : a.state === "success" && !a.hasData && (!e || !t) && (n.value = !1), e && (t = ge(e)), i.value = { ...a };
620
624
  }
621
625
  };
622
626
  }
623
- const W = {
627
+ const J = {
624
628
  useAxios: at,
625
629
  useDebouncedFilter: Mi,
626
- useDeleteUrlBuilder: ji,
627
- useErrors: Di,
628
- useExternalLinkCreator: Pi,
630
+ useDeleteUrlBuilder: Di,
631
+ useErrors: Pi,
632
+ useExternalLinkCreator: ji,
629
633
  useFetcher: Ui,
630
634
  useFetcherCacheKey: Zt,
631
635
  useFetchUrlBuilder: Qt,
@@ -658,25 +662,25 @@ const W = {
658
662
  }
659
663
  },
660
664
  setup(e) {
661
- const t = e, { i18n: { t: n } } = W.useI18n(), { convertKeyToTitle: i } = W.useStringHelpers(), r = $(() => t.item.key ?? "json-array-item"), o = $(() => t.item.value ?? t.item), a = $(() => {
665
+ const t = e, { i18n: { t: n } } = J.useI18n(), { convertKeyToTitle: i } = J.useStringHelpers(), r = S(() => t.item.key ?? "json-array-item"), o = S(() => t.item.value ?? t.item), a = S(() => {
662
666
  const s = JSON.parse(JSON.stringify(o.value));
663
667
  return t.isArrayItem && delete s.name, s;
664
- }), l = $(() => {
668
+ }), l = S(() => {
665
669
  var s;
666
670
  return t.isArrayItem ? (s = o.value) != null && s.name ? i(o.value.name, "_") : n("baseConfigCard.general.entryTitle", { index: t.index }) : "";
667
671
  });
668
- return (s, c) => (h(), M(Pe(e.isArrayItem ? "fieldset" : "div"), {
672
+ return (s, c) => (g(), K(je(e.isArrayItem ? "fieldset" : "div"), {
669
673
  class: fe(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
670
674
  }, {
671
- default: _(() => [
672
- e.isArrayItem ? (h(), T("legend", tr, [
673
- L("b", null, O(l.value), 1)
674
- ])) : j("", !0),
675
- (h(!0), T(ue, null, ce(Object.keys(a.value), (d, u) => (h(), M(nn, {
675
+ default: w(() => [
676
+ e.isArrayItem ? (g(), $("legend", tr, [
677
+ L("b", null, I(l.value), 1)
678
+ ])) : D("", !0),
679
+ (g(!0), $(ue, null, ce(Object.keys(a.value), (d, u) => (g(), K(nn, {
676
680
  key: `${r.value}-property-${u}`,
677
681
  item: {
678
682
  key: d,
679
- label: A(i)(d),
683
+ label: _(i)(d),
680
684
  value: a.value[d]
681
685
  }
682
686
  }, null, 8, ["item"]))), 128))
@@ -699,17 +703,17 @@ const W = {
699
703
  },
700
704
  emits: ["navigation-click"],
701
705
  setup(e) {
702
- const { i18n: { t } } = W.useI18n();
706
+ const { i18n: { t } } = J.useI18n();
703
707
  return (n, i) => {
704
- const r = P("KButton");
705
- return h(), T("div", null, [
706
- K(r, {
708
+ const r = U("KButton");
709
+ return g(), $("div", null, [
710
+ R(r, {
707
711
  appearance: "tertiary",
708
712
  class: "navigation-button",
709
713
  onClick: i[0] || (i[0] = (o) => n.$emit("navigation-click", e.item))
710
714
  }, {
711
- default: _(() => [
712
- q(O(e.item.value || A(t)("baseConfigCard.commonFields.link")), 1)
715
+ default: w(() => [
716
+ q(I(e.item.value || _(t)("baseConfigCard.commonFields.link")), 1)
713
717
  ]),
714
718
  _: 1
715
719
  })
@@ -725,14 +729,14 @@ const W = {
725
729
  }
726
730
  },
727
731
  setup(e) {
728
- const { i18n: { t } } = W.useI18n();
732
+ const { i18n: { t } } = J.useI18n();
729
733
  return (n, i) => {
730
- const r = P("KBadge");
731
- return h(), M(r, {
734
+ const r = U("KBadge");
735
+ return g(), K(r, {
732
736
  appearance: e.status ? "success" : "neutral"
733
737
  }, {
734
- default: _(() => [
735
- q(O(e.status ? A(t)("baseConfigCard.statusBadge.enabledLabel") : A(t)("baseConfigCard.statusBadge.disabledLabel")), 1)
738
+ default: w(() => [
739
+ q(I(e.status ? _(t)("baseConfigCard.statusBadge.enabledLabel") : _(t)("baseConfigCard.statusBadge.disabledLabel")), 1)
736
740
  ]),
737
741
  _: 1
738
742
  }, 8, ["appearance"]);
@@ -759,7 +763,7 @@ const W = {
759
763
  async function Te({ codeElement: e, code: t, language: n, theme: i }) {
760
764
  e.innerHTML = await mr(t, { lang: n, theme: i === "dark" ? "catppuccin-mocha" : "catppuccin-latte", structure: "inline" });
761
765
  }
762
- const hr = { class: "config-card-details-row" }, gr = ["data-testid"], yr = ["data-testid"], vr = ["data-testid"], br = ["data-testid"], kr = { key: 1 }, Cr = ["data-testid"], xr = ["data-testid"], Ar = ["data-testid"], _r = ["data-testid"], wr = {
766
+ const gr = { class: "config-card-details-row" }, hr = ["data-testid"], yr = ["data-testid"], vr = ["data-testid"], br = ["data-testid"], kr = { key: 1 }, Cr = ["data-testid"], xr = ["data-testid"], Ar = ["data-testid"], _r = ["data-testid"], wr = {
763
767
  name: "ConfigCardItem",
764
768
  components: { JsonCardItem: tn, StatusBadge: ar, InternalLinkItem: rr }
765
769
  }, Sr = /* @__PURE__ */ z({
@@ -782,18 +786,18 @@ const hr = { class: "config-card-details-row" }, gr = ["data-testid"], yr = ["da
782
786
  },
783
787
  emits: ["navigation-click"],
784
788
  setup(e, { emit: t }) {
785
- Vt((D) => ({
786
- v0b2cd434: p.value ? "none" : `solid ${A(ur)} ${A(lr)}`,
789
+ Vt((P) => ({
790
+ v0b2cd434: p.value ? "none" : `solid ${_(ur)} ${_(lr)}`,
787
791
  bb02ad32: u.value && c.value ? "block" : "flex",
788
792
  d92de3ce: u.value && c.value ? "100%" : n.slim ? "50%" : "25%",
789
793
  d9295818: u.value && c.value ? "100%" : n.slim ? "50%" : "75%"
790
794
  }));
791
- const n = e, i = t, r = Qn(), o = Ue(), { i18n: { t: a, formatIsoDate: l, formatUnixTimeStamp: s } } = W.useI18n(), c = $(() => n.item.value !== void 0 && n.item.value !== null && n.item.value !== ""), d = $(() => !!(n.item.tooltip || o["label-tooltip"])), u = $(() => n.item.type === Y.Json || n.item.type === Y.JsonArray), p = $(() => n.item.type === Y.JsonArray), m = W.useSubSchema(n.item.key), y = $(() => {
792
- var D;
793
- return n.item.type ? n.item.type : (D = m == null ? void 0 : m.value) != null && D.encrypted ? Y.Redacted : void 0;
794
- }), g = $(() => {
795
+ const n = e, i = t, r = Qn(), o = Ue(), { i18n: { t: a, formatIsoDate: l, formatUnixTimeStamp: s } } = J.useI18n(), c = S(() => n.item.value !== void 0 && n.item.value !== null && n.item.value !== ""), d = S(() => !!(n.item.tooltip || o["label-tooltip"])), u = S(() => n.item.type === W.Json || n.item.type === W.JsonArray), p = S(() => n.item.type === W.JsonArray), m = J.useSubSchema(n.item.key), y = S(() => {
796
+ var P;
797
+ return n.item.type ? n.item.type : (P = m == null ? void 0 : m.value) != null && P.encrypted ? W.Redacted : void 0;
798
+ }), h = S(() => {
795
799
  switch (y.value) {
796
- case Y.ID:
800
+ case W.ID:
797
801
  return {
798
802
  tag: "KCopy",
799
803
  attrs: {
@@ -802,7 +806,7 @@ const hr = { class: "config-card-details-row" }, gr = ["data-testid"], yr = ["da
802
806
  text: n.item.value
803
807
  }
804
808
  };
805
- case Y.IdArray:
809
+ case W.IdArray:
806
810
  return {
807
811
  tag: "div",
808
812
  additionalComponent: "KCopy",
@@ -810,7 +814,7 @@ const hr = { class: "config-card-details-row" }, gr = ["data-testid"], yr = ["da
810
814
  "copy-tooltip": a("baseConfigCard.copy.tooltip", { label: n.item.label })
811
815
  }
812
816
  };
813
- case Y.Redacted:
817
+ case W.Redacted:
814
818
  return {
815
819
  tag: "KCopy",
816
820
  attrs: {
@@ -820,7 +824,7 @@ const hr = { class: "config-card-details-row" }, gr = ["data-testid"], yr = ["da
820
824
  text: n.item.value
821
825
  }
822
826
  };
823
- case Y.RedactedArray:
827
+ case W.RedactedArray:
824
828
  return {
825
829
  tag: "div",
826
830
  additionalComponent: "KCopy",
@@ -829,7 +833,7 @@ const hr = { class: "config-card-details-row" }, gr = ["data-testid"], yr = ["da
829
833
  "copy-tooltip": a("baseConfigCard.copy.tooltip", { label: n.item.label })
830
834
  }
831
835
  };
832
- case Y.Date:
836
+ case W.Date:
833
837
  return {
834
838
  tag: "div",
835
839
  attrs: {
@@ -837,7 +841,7 @@ const hr = { class: "config-card-details-row" }, gr = ["data-testid"], yr = ["da
837
841
  },
838
842
  text: isNaN(Number(n.item.value)) ? l(n.item.value) : s(n.item.value)
839
843
  };
840
- case Y.BadgeStatus:
844
+ case W.BadgeStatus:
841
845
  return {
842
846
  tag: "StatusBadge",
843
847
  attrs: {
@@ -845,12 +849,12 @@ const hr = { class: "config-card-details-row" }, gr = ["data-testid"], yr = ["da
845
849
  status: n.item.value
846
850
  }
847
851
  };
848
- case Y.BadgeTag:
852
+ case W.BadgeTag:
849
853
  return {
850
854
  tag: "div",
851
855
  additionalComponent: "KBadge"
852
856
  };
853
- case Y.CopyBadge:
857
+ case W.CopyBadge:
854
858
  return {
855
859
  tag: "div",
856
860
  additionalComponent: "KCopy",
@@ -861,23 +865,23 @@ const hr = { class: "config-card-details-row" }, gr = ["data-testid"], yr = ["da
861
865
  text: n.item.value
862
866
  }
863
867
  };
864
- case Y.BadgeMethod:
868
+ case W.BadgeMethod:
865
869
  return {
866
870
  tag: "div",
867
871
  additionalComponent: "KMethodBadge"
868
872
  };
869
- case Y.LinkInternal:
873
+ case W.LinkInternal:
870
874
  return {
871
875
  tag: "InternalLinkItem",
872
876
  attrs: {
873
877
  "data-testid": `${n.item.key}-internal-link`,
874
878
  item: n.item,
875
- onNavigationClick: (D) => {
876
- i("navigation-click", D);
879
+ onNavigationClick: (P) => {
880
+ i("navigation-click", P);
877
881
  }
878
882
  }
879
883
  };
880
- case Y.LinkExternal:
884
+ case W.LinkExternal:
881
885
  return {
882
886
  tag: "KExternalLink",
883
887
  attrs: {
@@ -886,7 +890,7 @@ const hr = { class: "config-card-details-row" }, gr = ["data-testid"], yr = ["da
886
890
  },
887
891
  text: n.item.value
888
892
  };
889
- case Y.Json:
893
+ case W.Json:
890
894
  return {
891
895
  tag: "JsonCardItem",
892
896
  attrs: {
@@ -894,7 +898,7 @@ const hr = { class: "config-card-details-row" }, gr = ["data-testid"], yr = ["da
894
898
  item: n.item
895
899
  }
896
900
  };
897
- case Y.JsonArray:
901
+ case W.JsonArray:
898
902
  return {
899
903
  tag: "div",
900
904
  additionalComponent: "JsonCardItem",
@@ -923,26 +927,26 @@ const hr = { class: "config-card-details-row" }, gr = ["data-testid"], yr = ["da
923
927
  text: n.item.value
924
928
  };
925
929
  }
926
- }), k = N(), C = N(), { isTruncated: x } = W.useTruncationDetector(k), { isTruncated: B } = W.useTruncationDetector(C);
927
- return (D, X) => {
928
- const S = P("KTooltip"), w = P("KLabel"), F = P("KBadge"), f = P("KCopy");
929
- return h(), T("div", hr, [
930
+ }), b = N(), k = N(), { isTruncated: A } = J.useTruncationDetector(b), { isTruncated: B } = J.useTruncationDetector(k);
931
+ return (P, ee) => {
932
+ const M = U("KTooltip"), F = U("KLabel"), x = U("KBadge"), f = U("KCopy");
933
+ return g(), $("div", gr, [
930
934
  L("div", {
931
935
  class: "config-card-details-label",
932
936
  "data-testid": `${e.item.key}-label`
933
937
  }, [
934
- U(D.$slots, "label", { item: e.item }, () => [
935
- K(w, { "tooltip-attributes": { maxWidth: "500px" } }, $e({
936
- default: _(() => [
937
- K(S, {
938
- text: A(x) ? e.item.label : ""
938
+ j(P.$slots, "label", { item: e.item }, () => [
939
+ R(F, { "tooltip-attributes": { maxWidth: "500px" } }, ke({
940
+ default: w(() => [
941
+ R(M, {
942
+ text: _(A) ? e.item.label : ""
939
943
  }, {
940
- default: _(() => [
944
+ default: w(() => [
941
945
  L("span", {
942
946
  ref_key: "labelContent",
943
- ref: k,
947
+ ref: b,
944
948
  class: "label-content"
945
- }, O(e.item.label), 513)
949
+ }, I(e.item.label), 513)
946
950
  ]),
947
951
  _: 1
948
952
  }, 8, ["text"])
@@ -951,12 +955,12 @@ const hr = { class: "config-card-details-row" }, gr = ["data-testid"], yr = ["da
951
955
  }, [
952
956
  d.value ? {
953
957
  name: "tooltip",
954
- fn: _(() => [
958
+ fn: w(() => [
955
959
  L("div", {
956
960
  "data-testid": `${e.item.key}-label-tooltip`
957
961
  }, [
958
- U(D.$slots, "label-tooltip", {}, () => [
959
- q(O(e.item.tooltip), 1)
962
+ j(P.$slots, "label-tooltip", {}, () => [
963
+ q(I(e.item.tooltip), 1)
960
964
  ], !0)
961
965
  ], 8, yr)
962
966
  ]),
@@ -964,86 +968,86 @@ const hr = { class: "config-card-details-row" }, gr = ["data-testid"], yr = ["da
964
968
  } : void 0
965
969
  ]), 1024)
966
970
  ], !0)
967
- ], 8, gr),
971
+ ], 8, hr),
968
972
  L("div", {
969
973
  class: "config-card-details-value",
970
974
  "data-testid": `${e.item.key}-property-value`
971
975
  }, [
972
- U(D.$slots, e.item.key, {
976
+ j(P.$slots, e.item.key, {
973
977
  rowValue: e.item.value
974
978
  }, () => [
975
- c.value ? (h(), T("div", kr, [
976
- (h(), M(Pe(g.value.tag), Zn(Xn(g.value.attrs)), {
977
- default: _(() => [
978
- g.value.additionalComponent === "KBadge" ? (h(), T("div", {
979
+ c.value ? (g(), $("div", kr, [
980
+ (g(), K(je(h.value.tag), Zn(Xn(h.value.attrs)), {
981
+ default: w(() => [
982
+ h.value.additionalComponent === "KBadge" ? (g(), $("div", {
979
983
  key: 0,
980
984
  "data-testid": `${e.item.key}-badge-tags`
981
985
  }, [
982
- (h(!0), T(ue, null, ce(e.item.value, (v, b) => (h(), M(F, {
983
- key: `${e.item.key}-badge-tag-${b}`,
986
+ (g(!0), $(ue, null, ce(e.item.value, (v, C) => (g(), K(x, {
987
+ key: `${e.item.key}-badge-tag-${C}`,
984
988
  class: "config-badge",
985
- "data-testid": `${e.item.key}-badge-tag-${b}`,
989
+ "data-testid": `${e.item.key}-badge-tag-${C}`,
986
990
  tooltip: v,
987
991
  "truncation-tooltip": ""
988
992
  }, {
989
- default: _(() => [
990
- q(O(v), 1)
993
+ default: w(() => [
994
+ q(I(v), 1)
991
995
  ]),
992
996
  _: 2
993
997
  }, 1032, ["data-testid", "tooltip"]))), 128))
994
- ], 8, Cr)) : g.value.additionalComponent === "KCopy" ? (h(), T("div", {
998
+ ], 8, Cr)) : h.value.additionalComponent === "KCopy" ? (g(), $("div", {
995
999
  key: 1,
996
1000
  class: "copy-uuid-array",
997
1001
  "data-testid": `${e.item.key}-copy-uuid-array`
998
1002
  }, [
999
- (h(!0), T(ue, null, ce(e.item.value, (v, b) => (h(), M(f, Yt({ ref_for: !0 }, g.value.childAttrs, {
1000
- key: `${e.item.key}-copy-uuid-${b}`,
1001
- "data-testid": `${e.item.key}-copy-uuid-${b}`,
1003
+ (g(!0), $(ue, null, ce(e.item.value, (v, C) => (g(), K(f, Yt({ ref_for: !0 }, h.value.childAttrs, {
1004
+ key: `${e.item.key}-copy-uuid-${C}`,
1005
+ "data-testid": `${e.item.key}-copy-uuid-${C}`,
1002
1006
  text: v
1003
1007
  }), null, 16, ["data-testid", "text"]))), 128))
1004
- ], 8, xr)) : g.value.additionalComponent === "KMethodBadge" ? (h(), T("div", {
1008
+ ], 8, xr)) : h.value.additionalComponent === "KMethodBadge" ? (g(), $("div", {
1005
1009
  key: 2,
1006
1010
  class: "method-badge-array",
1007
1011
  "data-testid": `${e.item.key}-badge-methods`
1008
1012
  }, [
1009
- (h(!0), T(ue, null, ce(e.item.value, (v, b) => (h(), M(F, {
1010
- key: `${e.item.key}-badge-method-${b}`,
1011
- appearance: Object.values(A(ai)).includes(v.toLowerCase()) ? v.toLowerCase() : "custom",
1013
+ (g(!0), $(ue, null, ce(e.item.value, (v, C) => (g(), K(x, {
1014
+ key: `${e.item.key}-badge-method-${C}`,
1015
+ appearance: Object.values(_(ai)).includes(v.toLowerCase()) ? v.toLowerCase() : "custom",
1012
1016
  class: "config-badge",
1013
- "data-testid": `${e.item.key}-badge-method-${b}`
1017
+ "data-testid": `${e.item.key}-badge-method-${C}`
1014
1018
  }, {
1015
- default: _(() => [
1016
- q(O(v), 1)
1019
+ default: w(() => [
1020
+ q(I(v), 1)
1017
1021
  ]),
1018
1022
  _: 2
1019
1023
  }, 1032, ["appearance", "data-testid"]))), 128))
1020
- ], 8, Ar)) : g.value.additionalComponent === "JsonCardItem" ? (h(), T("div", {
1024
+ ], 8, Ar)) : h.value.additionalComponent === "JsonCardItem" ? (g(), $("div", {
1021
1025
  key: 3,
1022
1026
  "data-testid": `${n.item.key}-json-array-content`
1023
1027
  }, [
1024
- (h(!0), T(ue, null, ce(e.item.value, (v, b) => (h(), M(tn, {
1025
- key: `json-array-item-${b}`,
1026
- index: b,
1028
+ (g(!0), $(ue, null, ce(e.item.value, (v, C) => (g(), K(tn, {
1029
+ key: `json-array-item-${C}`,
1030
+ index: C,
1027
1031
  "is-array-item": "",
1028
1032
  item: v
1029
1033
  }, null, 8, ["index", "item"]))), 128))
1030
- ], 8, _r)) : (h(), M(S, {
1034
+ ], 8, _r)) : (g(), K(M, {
1031
1035
  key: 4,
1032
- text: A(B) ? e.item.value : ""
1036
+ text: _(B) ? e.item.value : ""
1033
1037
  }, {
1034
- default: _(() => [
1038
+ default: w(() => [
1035
1039
  L("span", {
1036
1040
  ref_key: "textContent",
1037
- ref: C,
1041
+ ref: k,
1038
1042
  class: fe(["attrs-data-text", { truncated: e.truncated }])
1039
- }, O(g.value.text), 3)
1043
+ }, I(h.value.text), 3)
1040
1044
  ]),
1041
1045
  _: 1
1042
1046
  }, 8, ["text"]))
1043
1047
  ]),
1044
1048
  _: 1
1045
1049
  }, 16))
1046
- ])) : (h(), T("div", {
1050
+ ])) : (g(), $("div", {
1047
1051
  key: 0,
1048
1052
  "data-testid": `${e.item.key}-no-value`
1049
1053
  }, " – ", 8, br))
@@ -1086,7 +1090,7 @@ const hr = { class: "config-card-details-row" }, gr = ["data-testid"], yr = ["da
1086
1090
  Vt((r) => ({
1087
1091
  v58418ff6: `${i.value}ch`
1088
1092
  }));
1089
- const t = e, n = $(() => t.entityRecord), i = $(() => {
1093
+ const t = e, n = S(() => t.entityRecord), i = S(() => {
1090
1094
  var a;
1091
1095
  if (!t.fetcherUrl)
1092
1096
  return 0;
@@ -1094,34 +1098,34 @@ const hr = { class: "config-card-details-row" }, gr = ["data-testid"], yr = ["da
1094
1098
  return r.length < 2 ? 0 : 41 + (t.requestMethod === "post" ? r[r.length - 1] : r[r.length - 2]).length;
1095
1099
  });
1096
1100
  return (r, o) => {
1097
- const a = P("KBadge"), l = P("KCodeBlock");
1098
- return h(), T("div", $r, [
1099
- t.fetcherUrl ? (h(), T("div", Tr, [
1100
- K(a, {
1101
+ const a = U("KBadge"), l = U("KCodeBlock");
1102
+ return g(), $("div", $r, [
1103
+ t.fetcherUrl ? (g(), $("div", Tr, [
1104
+ R(a, {
1101
1105
  appearance: t.requestMethod
1102
1106
  }, {
1103
- default: _(() => [
1104
- q(O(t.requestMethod), 1)
1107
+ default: w(() => [
1108
+ q(I(t.requestMethod), 1)
1105
1109
  ]),
1106
1110
  _: 1
1107
1111
  }, 8, ["appearance"]),
1108
- K(l, {
1112
+ R(l, {
1109
1113
  id: "json-endpoint-codeblock",
1110
1114
  code: t.fetcherUrl,
1111
1115
  language: "plaintext",
1112
1116
  "single-line": "",
1113
1117
  theme: "dark"
1114
1118
  }, null, 8, ["code"])
1115
- ])) : j("", !0),
1116
- t.entityRecord ? (h(), M(l, {
1119
+ ])) : D("", !0),
1120
+ t.entityRecord ? (g(), K(l, {
1117
1121
  key: 1,
1118
1122
  id: "json-codeblock",
1119
1123
  class: fe({ "json-content": t.fetcherUrl }),
1120
1124
  code: JSON.stringify(n.value, null, 2),
1121
1125
  language: "json",
1122
1126
  theme: "dark",
1123
- onCodeBlockRender: A(Te)
1124
- }, null, 8, ["class", "code", "onCodeBlockRender"])) : j("", !0)
1127
+ onCodeBlockRender: _(Te)
1128
+ }, null, 8, ["class", "code", "onCodeBlockRender"])) : D("", !0)
1125
1129
  ]);
1126
1130
  };
1127
1131
  }
@@ -1152,13 +1156,13 @@ function Or(e, t) {
1152
1156
  function Br(e) {
1153
1157
  return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
1154
1158
  }
1155
- var Lr = an, Rr = Er, Kr = Ir, Nr = Or, Mr = Br, jr = Fr, ee = {
1159
+ var Lr = an, Rr = Er, Kr = Ir, Nr = Or, Mr = Br, Dr = Fr, X = {
1156
1160
  isNothing: Lr,
1157
1161
  isObject: Rr,
1158
1162
  toArray: Kr,
1159
1163
  repeat: Nr,
1160
1164
  isNegativeZero: Mr,
1161
- extend: jr
1165
+ extend: Dr
1162
1166
  };
1163
1167
  function on(e, t) {
1164
1168
  var n = "", i = e.reason || "(unknown reason)";
@@ -1184,9 +1188,9 @@ function We(e, t, n, i, r) {
1184
1188
  };
1185
1189
  }
1186
1190
  function Je(e, t) {
1187
- return ee.repeat(" ", t - e.length) + e;
1191
+ return X.repeat(" ", t - e.length) + e;
1188
1192
  }
1189
- function Dr(e, t) {
1193
+ function Pr(e, t) {
1190
1194
  if (t = Object.create(t || null), !e.buffer) return null;
1191
1195
  t.maxLength || (t.maxLength = 79), typeof t.indent != "number" && (t.indent = 1), typeof t.linesBefore != "number" && (t.linesBefore = 3), typeof t.linesAfter != "number" && (t.linesAfter = 2);
1192
1196
  for (var n = /\r?\n|\r|\0/g, i = [0], r = [], o, a = -1; o = n.exec(e.buffer); )
@@ -1200,10 +1204,10 @@ function Dr(e, t) {
1200
1204
  r[a - s],
1201
1205
  e.position - (i[a] - i[a - s]),
1202
1206
  u
1203
- ), l = ee.repeat(" ", t.indent) + Je((e.line - s + 1).toString(), d) + " | " + c.str + `
1207
+ ), l = X.repeat(" ", t.indent) + Je((e.line - s + 1).toString(), d) + " | " + c.str + `
1204
1208
  ` + l;
1205
- for (c = We(e.buffer, i[a], r[a], e.position, u), l += ee.repeat(" ", t.indent) + Je((e.line + 1).toString(), d) + " | " + c.str + `
1206
- `, l += ee.repeat("-", t.indent + d + 3 + c.pos) + `^
1209
+ for (c = We(e.buffer, i[a], r[a], e.position, u), l += X.repeat(" ", t.indent) + Je((e.line + 1).toString(), d) + " | " + c.str + `
1210
+ `, l += X.repeat("-", t.indent + d + 3 + c.pos) + `^
1207
1211
  `, s = 1; s <= t.linesAfter && !(a + s >= r.length); s++)
1208
1212
  c = We(
1209
1213
  e.buffer,
@@ -1211,11 +1215,11 @@ function Dr(e, t) {
1211
1215
  r[a + s],
1212
1216
  e.position - (i[a] - i[a + s]),
1213
1217
  u
1214
- ), l += ee.repeat(" ", t.indent) + Je((e.line + s + 1).toString(), d) + " | " + c.str + `
1218
+ ), l += X.repeat(" ", t.indent) + Je((e.line + s + 1).toString(), d) + " | " + c.str + `
1215
1219
  `;
1216
1220
  return l.replace(/\n$/, "");
1217
1221
  }
1218
- var Pr = Dr, Ur = [
1222
+ var jr = Pr, Ur = [
1219
1223
  "kind",
1220
1224
  "multi",
1221
1225
  "resolve",
@@ -1453,7 +1457,7 @@ function ia(e) {
1453
1457
  return n * parseInt(t, 10);
1454
1458
  }
1455
1459
  function ra(e) {
1456
- return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !ee.isNegativeZero(e);
1460
+ return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !X.isNegativeZero(e);
1457
1461
  }
1458
1462
  var mn = new ie("tag:yaml.org,2002:int", {
1459
1463
  kind: "scalar",
@@ -1525,28 +1529,28 @@ function ca(e, t) {
1525
1529
  case "camelcase":
1526
1530
  return "-.Inf";
1527
1531
  }
1528
- else if (ee.isNegativeZero(e))
1532
+ else if (X.isNegativeZero(e))
1529
1533
  return "-0.0";
1530
1534
  return n = e.toString(10), sa.test(n) ? n.replace("e", ".e") : n;
1531
1535
  }
1532
1536
  function ua(e) {
1533
- return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || ee.isNegativeZero(e));
1537
+ return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || X.isNegativeZero(e));
1534
1538
  }
1535
- var hn = new ie("tag:yaml.org,2002:float", {
1539
+ var gn = new ie("tag:yaml.org,2002:float", {
1536
1540
  kind: "scalar",
1537
1541
  resolve: oa,
1538
1542
  construct: la,
1539
1543
  predicate: ua,
1540
1544
  represent: ca,
1541
1545
  defaultStyle: "lowercase"
1542
- }), gn = dn.extend({
1546
+ }), hn = dn.extend({
1543
1547
  implicit: [
1544
1548
  fn,
1545
1549
  pn,
1546
1550
  mn,
1547
- hn
1551
+ gn
1548
1552
  ]
1549
- }), yn = gn, vn = new RegExp(
1553
+ }), yn = hn, vn = new RegExp(
1550
1554
  "^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
1551
1555
  ), bn = new RegExp(
1552
1556
  "^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"
@@ -1584,7 +1588,7 @@ var Cn = new ie("tag:yaml.org,2002:merge", {
1584
1588
  resolve: ma
1585
1589
  }), ot = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
1586
1590
  \r`;
1587
- function ha(e) {
1591
+ function ga(e) {
1588
1592
  if (e === null) return !1;
1589
1593
  var t, n, i = 0, r = e.length, o = ot;
1590
1594
  for (n = 0; n < r; n++)
@@ -1594,7 +1598,7 @@ function ha(e) {
1594
1598
  }
1595
1599
  return i % 8 === 0;
1596
1600
  }
1597
- function ga(e) {
1601
+ function ha(e) {
1598
1602
  var t, n, i = e.replace(/[\r\n=]/g, ""), r = i.length, o = ot, a = 0, l = [];
1599
1603
  for (t = 0; t < r; t++)
1600
1604
  t % 4 === 0 && t && (l.push(a >> 16 & 255), l.push(a >> 8 & 255), l.push(a & 255)), a = a << 6 | o.indexOf(i.charAt(t));
@@ -1611,8 +1615,8 @@ function va(e) {
1611
1615
  }
1612
1616
  var xn = new ie("tag:yaml.org,2002:binary", {
1613
1617
  kind: "scalar",
1614
- resolve: ha,
1615
- construct: ga,
1618
+ resolve: ga,
1619
+ construct: ha,
1616
1620
  predicate: va,
1617
1621
  represent: ya
1618
1622
  }), ba = Object.prototype.hasOwnProperty, ka = Object.prototype.toString;
@@ -1699,7 +1703,7 @@ function ve(e) {
1699
1703
  function se(e) {
1700
1704
  return e === 9 || e === 32 || e === 10 || e === 13;
1701
1705
  }
1702
- function _e(e) {
1706
+ function we(e) {
1703
1707
  return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
1704
1708
  }
1705
1709
  function Ba(e) {
@@ -1731,8 +1735,8 @@ function In(e, t, n) {
1731
1735
  }) : e[t] = n;
1732
1736
  }
1733
1737
  var Fn = new Array(256), On = new Array(256);
1734
- for (var xe = 0; xe < 256; xe++)
1735
- Fn[xe] = Et(xe) ? 1 : 0, On[xe] = Et(xe);
1738
+ for (var Ae = 0; Ae < 256; Ae++)
1739
+ Fn[Ae] = Et(Ae) ? 1 : 0, On[Ae] = Et(Ae);
1736
1740
  function Na(e, t) {
1737
1741
  this.input = e, this.filename = t.filename || null, this.schema = t.schema || lt, this.onWarning = t.onWarning || null, this.legacy = t.legacy || !1, this.json = t.json || !1, this.listener = t.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 = [];
1738
1742
  }
@@ -1745,9 +1749,9 @@ function Bn(e, t) {
1745
1749
  line: e.line,
1746
1750
  column: e.position - e.lineStart
1747
1751
  };
1748
- return n.snippet = Pr(n), new oe(t, n);
1752
+ return n.snippet = jr(n), new oe(t, n);
1749
1753
  }
1750
- function I(e, t) {
1754
+ function T(e, t) {
1751
1755
  throw Bn(e, t);
1752
1756
  }
1753
1757
  function Me(e, t) {
@@ -1756,39 +1760,39 @@ function Me(e, t) {
1756
1760
  var It = {
1757
1761
  YAML: function(t, n, i) {
1758
1762
  var r, o, a;
1759
- t.version !== null && I(t, "duplication of %YAML directive"), i.length !== 1 && I(t, "YAML directive accepts exactly one argument"), r = /^([0-9]+)\.([0-9]+)$/.exec(i[0]), r === null && I(t, "ill-formed argument of the YAML directive"), o = parseInt(r[1], 10), a = parseInt(r[2], 10), o !== 1 && I(t, "unacceptable YAML version of the document"), t.version = i[0], t.checkLineBreaks = a < 2, a !== 1 && a !== 2 && Me(t, "unsupported YAML version of the document");
1763
+ t.version !== null && T(t, "duplication of %YAML directive"), i.length !== 1 && T(t, "YAML directive accepts exactly one argument"), r = /^([0-9]+)\.([0-9]+)$/.exec(i[0]), r === null && T(t, "ill-formed argument of the YAML directive"), o = parseInt(r[1], 10), a = parseInt(r[2], 10), o !== 1 && T(t, "unacceptable YAML version of the document"), t.version = i[0], t.checkLineBreaks = a < 2, a !== 1 && a !== 2 && Me(t, "unsupported YAML version of the document");
1760
1764
  },
1761
1765
  TAG: function(t, n, i) {
1762
1766
  var r, o;
1763
- i.length !== 2 && I(t, "TAG directive accepts exactly two arguments"), r = i[0], o = i[1], Tn.test(r) || I(t, "ill-formed tag handle (first argument) of the TAG directive"), ye.call(t.tagMap, r) && I(t, 'there is a previously declared suffix for "' + r + '" tag handle'), En.test(o) || I(t, "ill-formed tag prefix (second argument) of the TAG directive");
1767
+ i.length !== 2 && T(t, "TAG directive accepts exactly two arguments"), r = i[0], o = i[1], Tn.test(r) || T(t, "ill-formed tag handle (first argument) of the TAG directive"), ye.call(t.tagMap, r) && T(t, 'there is a previously declared suffix for "' + r + '" tag handle'), En.test(o) || T(t, "ill-formed tag prefix (second argument) of the TAG directive");
1764
1768
  try {
1765
1769
  o = decodeURIComponent(o);
1766
1770
  } catch {
1767
- I(t, "tag prefix is malformed: " + o);
1771
+ T(t, "tag prefix is malformed: " + o);
1768
1772
  }
1769
1773
  t.tagMap[r] = o;
1770
1774
  }
1771
1775
  };
1772
- function ge(e, t, n, i) {
1776
+ function he(e, t, n, i) {
1773
1777
  var r, o, a, l;
1774
1778
  if (t < n) {
1775
1779
  if (l = e.input.slice(t, n), i)
1776
1780
  for (r = 0, o = l.length; r < o; r += 1)
1777
- a = l.charCodeAt(r), a === 9 || 32 <= a && a <= 1114111 || I(e, "expected valid JSON character");
1778
- else Ia.test(l) && I(e, "the stream contains non-printable characters");
1781
+ a = l.charCodeAt(r), a === 9 || 32 <= a && a <= 1114111 || T(e, "expected valid JSON character");
1782
+ else Ia.test(l) && T(e, "the stream contains non-printable characters");
1779
1783
  e.result += l;
1780
1784
  }
1781
1785
  }
1782
1786
  function Ft(e, t, n, i) {
1783
1787
  var r, o, a, l;
1784
- for (ee.isObject(n) || I(e, "cannot merge mappings; the provided source object is unacceptable"), r = Object.keys(n), a = 0, l = r.length; a < l; a += 1)
1788
+ for (X.isObject(n) || T(e, "cannot merge mappings; the provided source object is unacceptable"), r = Object.keys(n), a = 0, l = r.length; a < l; a += 1)
1785
1789
  o = r[a], ye.call(t, o) || (In(t, o, n[o]), i[o] = !0);
1786
1790
  }
1787
- function we(e, t, n, i, r, o, a, l, s) {
1791
+ function Se(e, t, n, i, r, o, a, l, s) {
1788
1792
  var c, d;
1789
1793
  if (Array.isArray(r))
1790
1794
  for (r = Array.prototype.slice.call(r), c = 0, d = r.length; c < d; c += 1)
1791
- Array.isArray(r[c]) && I(e, "nested arrays are not supported inside keys"), typeof r == "object" && Tt(r[c]) === "[object Object]" && (r[c] = "[object Object]");
1795
+ Array.isArray(r[c]) && T(e, "nested arrays are not supported inside keys"), typeof r == "object" && Tt(r[c]) === "[object Object]" && (r[c] = "[object Object]");
1792
1796
  if (typeof r == "object" && Tt(r) === "[object Object]" && (r = "[object Object]"), r = String(r), t === null && (t = {}), i === "tag:yaml.org,2002:merge")
1793
1797
  if (Array.isArray(o))
1794
1798
  for (c = 0, d = o.length; c < d; c += 1)
@@ -1796,12 +1800,12 @@ function we(e, t, n, i, r, o, a, l, s) {
1796
1800
  else
1797
1801
  Ft(e, t, o, n);
1798
1802
  else
1799
- !e.json && !ye.call(n, r) && ye.call(t, r) && (e.line = a || e.line, e.lineStart = l || e.lineStart, e.position = s || e.position, I(e, "duplicated mapping key")), In(t, r, o), delete n[r];
1803
+ !e.json && !ye.call(n, r) && ye.call(t, r) && (e.line = a || e.line, e.lineStart = l || e.lineStart, e.position = s || e.position, T(e, "duplicated mapping key")), In(t, r, o), delete n[r];
1800
1804
  return t;
1801
1805
  }
1802
1806
  function st(e) {
1803
1807
  var t;
1804
- t = e.input.charCodeAt(e.position), t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : I(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
1808
+ t = e.input.charCodeAt(e.position), t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : T(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
1805
1809
  }
1806
1810
  function Z(e, t, n) {
1807
1811
  for (var i = 0, r = e.input.charCodeAt(e.position); r !== 0; ) {
@@ -1824,22 +1828,22 @@ function Ve(e) {
1824
1828
  return n = e.input.charCodeAt(t), !!((n === 45 || n === 46) && n === e.input.charCodeAt(t + 1) && n === e.input.charCodeAt(t + 2) && (t += 3, n = e.input.charCodeAt(t), n === 0 || se(n)));
1825
1829
  }
1826
1830
  function ct(e, t) {
1827
- t === 1 ? e.result += " " : t > 1 && (e.result += ee.repeat(`
1831
+ t === 1 ? e.result += " " : t > 1 && (e.result += X.repeat(`
1828
1832
  `, t - 1));
1829
1833
  }
1830
1834
  function Ma(e, t, n) {
1831
1835
  var i, r, o, a, l, s, c, d, u = e.kind, p = e.result, m;
1832
- if (m = e.input.charCodeAt(e.position), se(m) || _e(m) || m === 35 || m === 38 || m === 42 || m === 33 || m === 124 || m === 62 || m === 39 || m === 34 || m === 37 || m === 64 || m === 96 || (m === 63 || m === 45) && (r = e.input.charCodeAt(e.position + 1), se(r) || n && _e(r)))
1836
+ if (m = e.input.charCodeAt(e.position), se(m) || we(m) || m === 35 || m === 38 || m === 42 || m === 33 || m === 124 || m === 62 || m === 39 || m === 34 || m === 37 || m === 64 || m === 96 || (m === 63 || m === 45) && (r = e.input.charCodeAt(e.position + 1), se(r) || n && we(r)))
1833
1837
  return !1;
1834
1838
  for (e.kind = "scalar", e.result = "", o = a = e.position, l = !1; m !== 0; ) {
1835
1839
  if (m === 58) {
1836
- if (r = e.input.charCodeAt(e.position + 1), se(r) || n && _e(r))
1840
+ if (r = e.input.charCodeAt(e.position + 1), se(r) || n && we(r))
1837
1841
  break;
1838
1842
  } else if (m === 35) {
1839
1843
  if (i = e.input.charCodeAt(e.position - 1), se(i))
1840
1844
  break;
1841
1845
  } else {
1842
- if (e.position === e.lineStart && Ve(e) || n && _e(m))
1846
+ if (e.position === e.lineStart && Ve(e) || n && we(m))
1843
1847
  break;
1844
1848
  if (de(m))
1845
1849
  if (s = e.line, c = e.lineStart, d = e.lineIndent, Z(e, !1, -1), e.lineIndent >= t) {
@@ -1850,60 +1854,60 @@ function Ma(e, t, n) {
1850
1854
  break;
1851
1855
  }
1852
1856
  }
1853
- l && (ge(e, o, a, !1), ct(e, e.line - s), o = a = e.position, l = !1), ve(m) || (a = e.position + 1), m = e.input.charCodeAt(++e.position);
1857
+ l && (he(e, o, a, !1), ct(e, e.line - s), o = a = e.position, l = !1), ve(m) || (a = e.position + 1), m = e.input.charCodeAt(++e.position);
1854
1858
  }
1855
- return ge(e, o, a, !1), e.result ? !0 : (e.kind = u, e.result = p, !1);
1859
+ return he(e, o, a, !1), e.result ? !0 : (e.kind = u, e.result = p, !1);
1856
1860
  }
1857
- function ja(e, t) {
1861
+ function Da(e, t) {
1858
1862
  var n, i, r;
1859
1863
  if (n = e.input.charCodeAt(e.position), n !== 39)
1860
1864
  return !1;
1861
1865
  for (e.kind = "scalar", e.result = "", e.position++, i = r = e.position; (n = e.input.charCodeAt(e.position)) !== 0; )
1862
1866
  if (n === 39)
1863
- if (ge(e, i, e.position, !0), n = e.input.charCodeAt(++e.position), n === 39)
1867
+ if (he(e, i, e.position, !0), n = e.input.charCodeAt(++e.position), n === 39)
1864
1868
  i = e.position, e.position++, r = e.position;
1865
1869
  else
1866
1870
  return !0;
1867
- else de(n) ? (ge(e, i, r, !0), ct(e, Z(e, !1, t)), i = r = e.position) : e.position === e.lineStart && Ve(e) ? I(e, "unexpected end of the document within a single quoted scalar") : (e.position++, r = e.position);
1868
- I(e, "unexpected end of the stream within a single quoted scalar");
1871
+ else de(n) ? (he(e, i, r, !0), ct(e, Z(e, !1, t)), i = r = e.position) : e.position === e.lineStart && Ve(e) ? T(e, "unexpected end of the document within a single quoted scalar") : (e.position++, r = e.position);
1872
+ T(e, "unexpected end of the stream within a single quoted scalar");
1869
1873
  }
1870
- function Da(e, t) {
1874
+ function Pa(e, t) {
1871
1875
  var n, i, r, o, a, l;
1872
1876
  if (l = e.input.charCodeAt(e.position), l !== 34)
1873
1877
  return !1;
1874
1878
  for (e.kind = "scalar", e.result = "", e.position++, n = i = e.position; (l = e.input.charCodeAt(e.position)) !== 0; ) {
1875
1879
  if (l === 34)
1876
- return ge(e, n, e.position, !0), e.position++, !0;
1880
+ return he(e, n, e.position, !0), e.position++, !0;
1877
1881
  if (l === 92) {
1878
- if (ge(e, n, e.position, !0), l = e.input.charCodeAt(++e.position), de(l))
1882
+ if (he(e, n, e.position, !0), l = e.input.charCodeAt(++e.position), de(l))
1879
1883
  Z(e, !1, t);
1880
1884
  else if (l < 256 && Fn[l])
1881
1885
  e.result += On[l], e.position++;
1882
1886
  else if ((a = La(l)) > 0) {
1883
1887
  for (r = a, o = 0; r > 0; r--)
1884
- l = e.input.charCodeAt(++e.position), (a = Ba(l)) >= 0 ? o = (o << 4) + a : I(e, "expected hexadecimal character");
1888
+ l = e.input.charCodeAt(++e.position), (a = Ba(l)) >= 0 ? o = (o << 4) + a : T(e, "expected hexadecimal character");
1885
1889
  e.result += Ka(o), e.position++;
1886
1890
  } else
1887
- I(e, "unknown escape sequence");
1891
+ T(e, "unknown escape sequence");
1888
1892
  n = i = e.position;
1889
- } else de(l) ? (ge(e, n, i, !0), ct(e, Z(e, !1, t)), n = i = e.position) : e.position === e.lineStart && Ve(e) ? I(e, "unexpected end of the document within a double quoted scalar") : (e.position++, i = e.position);
1893
+ } else de(l) ? (he(e, n, i, !0), ct(e, Z(e, !1, t)), n = i = e.position) : e.position === e.lineStart && Ve(e) ? T(e, "unexpected end of the document within a double quoted scalar") : (e.position++, i = e.position);
1890
1894
  }
1891
- I(e, "unexpected end of the stream within a double quoted scalar");
1895
+ T(e, "unexpected end of the stream within a double quoted scalar");
1892
1896
  }
1893
- function Pa(e, t) {
1894
- var n = !0, i, r, o, a = e.tag, l, s = e.anchor, c, d, u, p, m, y = /* @__PURE__ */ Object.create(null), g, k, C, x;
1895
- if (x = e.input.charCodeAt(e.position), x === 91)
1897
+ function ja(e, t) {
1898
+ var n = !0, i, r, o, a = e.tag, l, s = e.anchor, c, d, u, p, m, y = /* @__PURE__ */ Object.create(null), h, b, k, A;
1899
+ if (A = e.input.charCodeAt(e.position), A === 91)
1896
1900
  d = 93, m = !1, l = [];
1897
- else if (x === 123)
1901
+ else if (A === 123)
1898
1902
  d = 125, m = !0, l = {};
1899
1903
  else
1900
1904
  return !1;
1901
- for (e.anchor !== null && (e.anchorMap[e.anchor] = l), x = e.input.charCodeAt(++e.position); x !== 0; ) {
1902
- if (Z(e, !0, t), x = e.input.charCodeAt(e.position), x === d)
1905
+ for (e.anchor !== null && (e.anchorMap[e.anchor] = l), A = e.input.charCodeAt(++e.position); A !== 0; ) {
1906
+ if (Z(e, !0, t), A = e.input.charCodeAt(e.position), A === d)
1903
1907
  return e.position++, e.tag = a, e.anchor = s, e.kind = m ? "mapping" : "sequence", e.result = l, !0;
1904
- n ? x === 44 && I(e, "expected the node content, but found ','") : I(e, "missed comma between flow collection entries"), k = g = C = null, u = p = !1, x === 63 && (c = e.input.charCodeAt(e.position + 1), se(c) && (u = p = !0, e.position++, Z(e, !0, t))), i = e.line, r = e.lineStart, o = e.position, Ee(e, t, Ke, !1, !0), k = e.tag, g = e.result, Z(e, !0, t), x = e.input.charCodeAt(e.position), (p || e.line === i) && x === 58 && (u = !0, x = e.input.charCodeAt(++e.position), Z(e, !0, t), Ee(e, t, Ke, !1, !0), C = e.result), m ? we(e, l, y, k, g, C, i, r, o) : u ? l.push(we(e, null, y, k, g, C, i, r, o)) : l.push(g), Z(e, !0, t), x = e.input.charCodeAt(e.position), x === 44 ? (n = !0, x = e.input.charCodeAt(++e.position)) : n = !1;
1908
+ n ? A === 44 && T(e, "expected the node content, but found ','") : T(e, "missed comma between flow collection entries"), b = h = k = null, u = p = !1, A === 63 && (c = e.input.charCodeAt(e.position + 1), se(c) && (u = p = !0, e.position++, Z(e, !0, t))), i = e.line, r = e.lineStart, o = e.position, Ee(e, t, Ke, !1, !0), b = e.tag, h = e.result, Z(e, !0, t), A = e.input.charCodeAt(e.position), (p || e.line === i) && A === 58 && (u = !0, A = e.input.charCodeAt(++e.position), Z(e, !0, t), Ee(e, t, Ke, !1, !0), k = e.result), m ? Se(e, l, y, b, h, k, i, r, o) : u ? l.push(Se(e, null, y, b, h, k, i, r, o)) : l.push(h), Z(e, !0, t), A = e.input.charCodeAt(e.position), A === 44 ? (n = !0, A = e.input.charCodeAt(++e.position)) : n = !1;
1905
1909
  }
1906
- I(e, "unexpected end of the stream within a flow collection");
1910
+ T(e, "unexpected end of the stream within a flow collection");
1907
1911
  }
1908
1912
  function Ua(e, t) {
1909
1913
  var n, i, r = Ge, o = !1, a = !1, l = t, s = 0, c = !1, d, u;
@@ -1915,9 +1919,9 @@ function Ua(e, t) {
1915
1919
  return !1;
1916
1920
  for (e.kind = "scalar", e.result = ""; u !== 0; )
1917
1921
  if (u = e.input.charCodeAt(++e.position), u === 43 || u === 45)
1918
- Ge === r ? r = u === 43 ? $t : Ea : I(e, "repeat of a chomping mode identifier");
1922
+ Ge === r ? r = u === 43 ? $t : Ea : T(e, "repeat of a chomping mode identifier");
1919
1923
  else if ((d = Ra(u)) >= 0)
1920
- d === 0 ? I(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : a ? I(e, "repeat of an indentation width identifier") : (l = t + d - 1, a = !0);
1924
+ d === 0 ? T(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : a ? T(e, "repeat of an indentation width identifier") : (l = t + d - 1, a = !0);
1921
1925
  else
1922
1926
  break;
1923
1927
  if (ve(u)) {
@@ -1937,110 +1941,110 @@ function Ua(e, t) {
1937
1941
  continue;
1938
1942
  }
1939
1943
  if (e.lineIndent < l) {
1940
- r === $t ? e.result += ee.repeat(`
1944
+ r === $t ? e.result += X.repeat(`
1941
1945
  `, o ? 1 + s : s) : r === Ge && o && (e.result += `
1942
1946
  `);
1943
1947
  break;
1944
1948
  }
1945
- for (i ? ve(u) ? (c = !0, e.result += ee.repeat(`
1946
- `, o ? 1 + s : s)) : c ? (c = !1, e.result += ee.repeat(`
1947
- `, s + 1)) : s === 0 ? o && (e.result += " ") : e.result += ee.repeat(`
1948
- `, s) : e.result += ee.repeat(`
1949
+ for (i ? ve(u) ? (c = !0, e.result += X.repeat(`
1950
+ `, o ? 1 + s : s)) : c ? (c = !1, e.result += X.repeat(`
1951
+ `, s + 1)) : s === 0 ? o && (e.result += " ") : e.result += X.repeat(`
1952
+ `, s) : e.result += X.repeat(`
1949
1953
  `, o ? 1 + s : s), o = !0, a = !0, s = 0, n = e.position; !de(u) && u !== 0; )
1950
1954
  u = e.input.charCodeAt(++e.position);
1951
- ge(e, n, e.position, !1);
1955
+ he(e, n, e.position, !1);
1952
1956
  }
1953
1957
  return !0;
1954
1958
  }
1955
1959
  function Ot(e, t) {
1956
1960
  var n, i = e.tag, r = e.anchor, o = [], a, l = !1, s;
1957
1961
  if (e.firstTabInLine !== -1) return !1;
1958
- for (e.anchor !== null && (e.anchorMap[e.anchor] = o), s = e.input.charCodeAt(e.position); s !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, I(e, "tab characters must not be used in indentation")), !(s !== 45 || (a = e.input.charCodeAt(e.position + 1), !se(a)))); ) {
1962
+ for (e.anchor !== null && (e.anchorMap[e.anchor] = o), s = e.input.charCodeAt(e.position); s !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, T(e, "tab characters must not be used in indentation")), !(s !== 45 || (a = e.input.charCodeAt(e.position + 1), !se(a)))); ) {
1959
1963
  if (l = !0, e.position++, Z(e, !0, -1) && e.lineIndent <= t) {
1960
1964
  o.push(null), s = e.input.charCodeAt(e.position);
1961
1965
  continue;
1962
1966
  }
1963
1967
  if (n = e.line, Ee(e, t, $n, !1, !0), o.push(e.result), Z(e, !0, -1), s = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && s !== 0)
1964
- I(e, "bad indentation of a sequence entry");
1968
+ T(e, "bad indentation of a sequence entry");
1965
1969
  else if (e.lineIndent < t)
1966
1970
  break;
1967
1971
  }
1968
1972
  return l ? (e.tag = i, e.anchor = r, e.kind = "sequence", e.result = o, !0) : !1;
1969
1973
  }
1970
1974
  function qa(e, t, n) {
1971
- var i, r, o, a, l, s, c = e.tag, d = e.anchor, u = {}, p = /* @__PURE__ */ Object.create(null), m = null, y = null, g = null, k = !1, C = !1, x;
1975
+ var i, r, o, a, l, s, c = e.tag, d = e.anchor, u = {}, p = /* @__PURE__ */ Object.create(null), m = null, y = null, h = null, b = !1, k = !1, A;
1972
1976
  if (e.firstTabInLine !== -1) return !1;
1973
- for (e.anchor !== null && (e.anchorMap[e.anchor] = u), x = e.input.charCodeAt(e.position); x !== 0; ) {
1974
- if (!k && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, I(e, "tab characters must not be used in indentation")), i = e.input.charCodeAt(e.position + 1), o = e.line, (x === 63 || x === 58) && se(i))
1975
- x === 63 ? (k && (we(e, u, p, m, y, null, a, l, s), m = y = g = null), C = !0, k = !0, r = !0) : k ? (k = !1, r = !0) : I(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, x = i;
1977
+ for (e.anchor !== null && (e.anchorMap[e.anchor] = u), A = e.input.charCodeAt(e.position); A !== 0; ) {
1978
+ if (!b && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, T(e, "tab characters must not be used in indentation")), i = e.input.charCodeAt(e.position + 1), o = e.line, (A === 63 || A === 58) && se(i))
1979
+ A === 63 ? (b && (Se(e, u, p, m, y, null, a, l, s), m = y = h = null), k = !0, b = !0, r = !0) : b ? (b = !1, r = !0) : T(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, A = i;
1976
1980
  else {
1977
1981
  if (a = e.line, l = e.lineStart, s = e.position, !Ee(e, n, Sn, !1, !0))
1978
1982
  break;
1979
1983
  if (e.line === o) {
1980
- for (x = e.input.charCodeAt(e.position); ve(x); )
1981
- x = e.input.charCodeAt(++e.position);
1982
- if (x === 58)
1983
- x = e.input.charCodeAt(++e.position), se(x) || I(e, "a whitespace character is expected after the key-value separator within a block mapping"), k && (we(e, u, p, m, y, null, a, l, s), m = y = g = null), C = !0, k = !1, r = !1, m = e.tag, y = e.result;
1984
- else if (C)
1985
- I(e, "can not read an implicit mapping pair; a colon is missed");
1984
+ for (A = e.input.charCodeAt(e.position); ve(A); )
1985
+ A = e.input.charCodeAt(++e.position);
1986
+ if (A === 58)
1987
+ A = e.input.charCodeAt(++e.position), se(A) || T(e, "a whitespace character is expected after the key-value separator within a block mapping"), b && (Se(e, u, p, m, y, null, a, l, s), m = y = h = null), k = !0, b = !1, r = !1, m = e.tag, y = e.result;
1988
+ else if (k)
1989
+ T(e, "can not read an implicit mapping pair; a colon is missed");
1986
1990
  else
1987
1991
  return e.tag = c, e.anchor = d, !0;
1988
- } else if (C)
1989
- I(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
1992
+ } else if (k)
1993
+ T(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
1990
1994
  else
1991
1995
  return e.tag = c, e.anchor = d, !0;
1992
1996
  }
1993
- if ((e.line === o || e.lineIndent > t) && (k && (a = e.line, l = e.lineStart, s = e.position), Ee(e, t, Ne, !0, r) && (k ? y = e.result : g = e.result), k || (we(e, u, p, m, y, g, a, l, s), m = y = g = null), Z(e, !0, -1), x = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > t) && x !== 0)
1994
- I(e, "bad indentation of a mapping entry");
1997
+ if ((e.line === o || e.lineIndent > t) && (b && (a = e.line, l = e.lineStart, s = e.position), Ee(e, t, Ne, !0, r) && (b ? y = e.result : h = e.result), b || (Se(e, u, p, m, y, h, a, l, s), m = y = h = null), Z(e, !0, -1), A = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > t) && A !== 0)
1998
+ T(e, "bad indentation of a mapping entry");
1995
1999
  else if (e.lineIndent < t)
1996
2000
  break;
1997
2001
  }
1998
- return k && we(e, u, p, m, y, null, a, l, s), C && (e.tag = c, e.anchor = d, e.kind = "mapping", e.result = u), C;
2002
+ return b && Se(e, u, p, m, y, null, a, l, s), k && (e.tag = c, e.anchor = d, e.kind = "mapping", e.result = u), k;
1999
2003
  }
2000
2004
  function Ha(e) {
2001
2005
  var t, n = !1, i = !1, r, o, a;
2002
2006
  if (a = e.input.charCodeAt(e.position), a !== 33) return !1;
2003
- if (e.tag !== null && I(e, "duplication of a tag property"), a = e.input.charCodeAt(++e.position), a === 60 ? (n = !0, a = e.input.charCodeAt(++e.position)) : a === 33 ? (i = !0, r = "!!", a = e.input.charCodeAt(++e.position)) : r = "!", t = e.position, n) {
2007
+ if (e.tag !== null && T(e, "duplication of a tag property"), a = e.input.charCodeAt(++e.position), a === 60 ? (n = !0, a = e.input.charCodeAt(++e.position)) : a === 33 ? (i = !0, r = "!!", a = e.input.charCodeAt(++e.position)) : r = "!", t = e.position, n) {
2004
2008
  do
2005
2009
  a = e.input.charCodeAt(++e.position);
2006
2010
  while (a !== 0 && a !== 62);
2007
- e.position < e.length ? (o = e.input.slice(t, e.position), a = e.input.charCodeAt(++e.position)) : I(e, "unexpected end of the stream within a verbatim tag");
2011
+ e.position < e.length ? (o = e.input.slice(t, e.position), a = e.input.charCodeAt(++e.position)) : T(e, "unexpected end of the stream within a verbatim tag");
2008
2012
  } else {
2009
2013
  for (; a !== 0 && !se(a); )
2010
- a === 33 && (i ? I(e, "tag suffix cannot contain exclamation marks") : (r = e.input.slice(t - 1, e.position + 1), Tn.test(r) || I(e, "named tag handle cannot contain such characters"), i = !0, t = e.position + 1)), a = e.input.charCodeAt(++e.position);
2011
- o = e.input.slice(t, e.position), Oa.test(o) && I(e, "tag suffix cannot contain flow indicator characters");
2014
+ a === 33 && (i ? T(e, "tag suffix cannot contain exclamation marks") : (r = e.input.slice(t - 1, e.position + 1), Tn.test(r) || T(e, "named tag handle cannot contain such characters"), i = !0, t = e.position + 1)), a = e.input.charCodeAt(++e.position);
2015
+ o = e.input.slice(t, e.position), Oa.test(o) && T(e, "tag suffix cannot contain flow indicator characters");
2012
2016
  }
2013
- o && !En.test(o) && I(e, "tag name cannot contain such characters: " + o);
2017
+ o && !En.test(o) && T(e, "tag name cannot contain such characters: " + o);
2014
2018
  try {
2015
2019
  o = decodeURIComponent(o);
2016
2020
  } catch {
2017
- I(e, "tag name is malformed: " + o);
2021
+ T(e, "tag name is malformed: " + o);
2018
2022
  }
2019
- return n ? e.tag = o : ye.call(e.tagMap, r) ? e.tag = e.tagMap[r] + o : r === "!" ? e.tag = "!" + o : r === "!!" ? e.tag = "tag:yaml.org,2002:" + o : I(e, 'undeclared tag handle "' + r + '"'), !0;
2023
+ return n ? e.tag = o : ye.call(e.tagMap, r) ? e.tag = e.tagMap[r] + o : r === "!" ? e.tag = "!" + o : r === "!!" ? e.tag = "tag:yaml.org,2002:" + o : T(e, 'undeclared tag handle "' + r + '"'), !0;
2020
2024
  }
2021
2025
  function Va(e) {
2022
2026
  var t, n;
2023
2027
  if (n = e.input.charCodeAt(e.position), n !== 38) return !1;
2024
- for (e.anchor !== null && I(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !se(n) && !_e(n); )
2028
+ for (e.anchor !== null && T(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !se(n) && !we(n); )
2025
2029
  n = e.input.charCodeAt(++e.position);
2026
- return e.position === t && I(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0;
2030
+ return e.position === t && T(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0;
2027
2031
  }
2028
2032
  function Ya(e) {
2029
2033
  var t, n, i;
2030
2034
  if (i = e.input.charCodeAt(e.position), i !== 42) return !1;
2031
- for (i = e.input.charCodeAt(++e.position), t = e.position; i !== 0 && !se(i) && !_e(i); )
2035
+ for (i = e.input.charCodeAt(++e.position), t = e.position; i !== 0 && !se(i) && !we(i); )
2032
2036
  i = e.input.charCodeAt(++e.position);
2033
- return e.position === t && I(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), ye.call(e.anchorMap, n) || I(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], Z(e, !0, -1), !0;
2037
+ return e.position === t && T(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), ye.call(e.anchorMap, n) || T(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], Z(e, !0, -1), !0;
2034
2038
  }
2035
2039
  function Ee(e, t, n, i, r) {
2036
- var o, a, l, s = 1, c = !1, d = !1, u, p, m, y, g, k;
2040
+ var o, a, l, s = 1, c = !1, d = !1, u, p, m, y, h, b;
2037
2041
  if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = a = l = Ne === n || $n === n, i && Z(e, !0, -1) && (c = !0, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)), s === 1)
2038
2042
  for (; Ha(e) || Va(e); )
2039
2043
  Z(e, !0, -1) ? (c = !0, l = o, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)) : l = !1;
2040
- if (l && (l = c || r), (s === 1 || Ne === n) && (Ke === n || Sn === n ? g = t : g = t + 1, k = e.position - e.lineStart, s === 1 ? l && (Ot(e, k) || qa(e, k, g)) || Pa(e, g) ? d = !0 : (a && Ua(e, g) || ja(e, g) || Da(e, g) ? d = !0 : Ya(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && I(e, "alias node should not have any properties")) : Ma(e, g, Ke === n) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : s === 0 && (d = l && Ot(e, k))), e.tag === null)
2044
+ if (l && (l = c || r), (s === 1 || Ne === n) && (Ke === n || Sn === n ? h = t : h = t + 1, b = e.position - e.lineStart, s === 1 ? l && (Ot(e, b) || qa(e, b, h)) || ja(e, h) ? d = !0 : (a && Ua(e, h) || Da(e, h) || Pa(e, h) ? d = !0 : Ya(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && T(e, "alias node should not have any properties")) : Ma(e, h, Ke === n) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : s === 0 && (d = l && Ot(e, b))), e.tag === null)
2041
2045
  e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2042
2046
  else if (e.tag === "?") {
2043
- for (e.result !== null && e.kind !== "scalar" && I(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, p = e.implicitTypes.length; u < p; u += 1)
2047
+ for (e.result !== null && e.kind !== "scalar" && T(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, p = e.implicitTypes.length; u < p; u += 1)
2044
2048
  if (y = e.implicitTypes[u], y.resolve(e.result)) {
2045
2049
  e.result = y.construct(e.result), e.tag = y.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2046
2050
  break;
@@ -2054,7 +2058,7 @@ function Ee(e, t, n, i, r) {
2054
2058
  y = m[u];
2055
2059
  break;
2056
2060
  }
2057
- y || I(e, "unknown tag !<" + e.tag + ">"), e.result !== null && y.kind !== e.kind && I(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + y.kind + '", not "' + e.kind + '"'), y.resolve(e.result, e.tag) ? (e.result = y.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : I(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
2061
+ y || T(e, "unknown tag !<" + e.tag + ">"), e.result !== null && y.kind !== e.kind && T(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + y.kind + '", not "' + e.kind + '"'), y.resolve(e.result, e.tag) ? (e.result = y.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : T(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
2058
2062
  }
2059
2063
  return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || d;
2060
2064
  }
@@ -2063,7 +2067,7 @@ function Wa(e) {
2063
2067
  for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (a = e.input.charCodeAt(e.position)) !== 0 && (Z(e, !0, -1), a = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || a !== 37)); ) {
2064
2068
  for (o = !0, a = e.input.charCodeAt(++e.position), n = e.position; a !== 0 && !se(a); )
2065
2069
  a = e.input.charCodeAt(++e.position);
2066
- for (i = e.input.slice(n, e.position), r = [], i.length < 1 && I(e, "directive name must not be less than one character in length"); a !== 0; ) {
2070
+ for (i = e.input.slice(n, e.position), r = [], i.length < 1 && T(e, "directive name must not be less than one character in length"); a !== 0; ) {
2067
2071
  for (; ve(a); )
2068
2072
  a = e.input.charCodeAt(++e.position);
2069
2073
  if (a === 35) {
@@ -2079,12 +2083,12 @@ function Wa(e) {
2079
2083
  }
2080
2084
  a !== 0 && st(e), ye.call(It, i) ? It[i](e, i, r) : Me(e, 'unknown document directive "' + i + '"');
2081
2085
  }
2082
- if (Z(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, Z(e, !0, -1)) : o && I(e, "directives end mark is expected"), Ee(e, e.lineIndent - 1, Ne, !1, !0), Z(e, !0, -1), e.checkLineBreaks && Fa.test(e.input.slice(t, e.position)) && Me(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && Ve(e)) {
2086
+ if (Z(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, Z(e, !0, -1)) : o && T(e, "directives end mark is expected"), Ee(e, e.lineIndent - 1, Ne, !1, !0), Z(e, !0, -1), e.checkLineBreaks && Fa.test(e.input.slice(t, e.position)) && Me(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && Ve(e)) {
2083
2087
  e.input.charCodeAt(e.position) === 46 && (e.position += 3, Z(e, !0, -1));
2084
2088
  return;
2085
2089
  }
2086
2090
  if (e.position < e.length - 1)
2087
- I(e, "end of the stream or a document separator is expected");
2091
+ T(e, "end of the stream or a document separator is expected");
2088
2092
  else
2089
2093
  return;
2090
2094
  }
@@ -2092,7 +2096,7 @@ function Ln(e, t) {
2092
2096
  e = String(e), t = t || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
2093
2097
  `), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
2094
2098
  var n = new Na(e, t), i = e.indexOf("\0");
2095
- for (i !== -1 && (n.position = i, I(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32; )
2099
+ for (i !== -1 && (n.position = i, T(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32; )
2096
2100
  n.lineIndent += 1, n.position += 1;
2097
2101
  for (; n.position < n.length - 1; )
2098
2102
  Wa(n);
@@ -2117,7 +2121,7 @@ function Ga(e, t) {
2117
2121
  var za = Ja, Qa = Ga, Rn = {
2118
2122
  loadAll: za,
2119
2123
  load: Qa
2120
- }, Kn = Object.prototype.toString, Nn = Object.prototype.hasOwnProperty, ut = 65279, Za = 9, Oe = 10, Xa = 13, eo = 32, to = 33, no = 34, Xe = 35, io = 37, ro = 38, ao = 39, oo = 42, Mn = 44, lo = 45, je = 58, so = 61, co = 62, uo = 63, fo = 64, jn = 91, Dn = 93, po = 96, Pn = 123, mo = 124, Un = 125, re = {};
2124
+ }, Kn = Object.prototype.toString, Nn = Object.prototype.hasOwnProperty, ut = 65279, Za = 9, Oe = 10, Xa = 13, eo = 32, to = 33, no = 34, Xe = 35, io = 37, ro = 38, ao = 39, oo = 42, Mn = 44, lo = 45, De = 58, so = 61, co = 62, uo = 63, fo = 64, Dn = 91, Pn = 93, po = 96, jn = 123, mo = 124, Un = 125, re = {};
2121
2125
  re[0] = "\\0";
2122
2126
  re[7] = "\\a";
2123
2127
  re[8] = "\\b";
@@ -2133,7 +2137,7 @@ re[133] = "\\N";
2133
2137
  re[160] = "\\_";
2134
2138
  re[8232] = "\\L";
2135
2139
  re[8233] = "\\P";
2136
- var ho = [
2140
+ var go = [
2137
2141
  "y",
2138
2142
  "Y",
2139
2143
  "yes",
@@ -2150,7 +2154,7 @@ var ho = [
2150
2154
  "off",
2151
2155
  "Off",
2152
2156
  "OFF"
2153
- ], go = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
2157
+ ], ho = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
2154
2158
  function yo(e, t) {
2155
2159
  var n, i, r, o, a, l, s;
2156
2160
  if (t === null) return {};
@@ -2168,14 +2172,14 @@ function vo(e) {
2168
2172
  n = "U", i = 8;
2169
2173
  else
2170
2174
  throw new oe("code point within a string may not be greater than 0xFFFFFFFF");
2171
- return "\\" + n + ee.repeat("0", i - t.length) + t;
2175
+ return "\\" + n + X.repeat("0", i - t.length) + t;
2172
2176
  }
2173
2177
  var bo = 1, Be = 2;
2174
2178
  function ko(e) {
2175
- this.schema = e.schema || lt, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = ee.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = yo(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 === '"' ? Be : bo, 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;
2179
+ this.schema = e.schema || lt, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = X.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = yo(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 === '"' ? Be : bo, 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
2180
  }
2177
2181
  function Bt(e, t) {
2178
- for (var n = ee.repeat(" ", t), i = 0, r = -1, o = "", a, l = e.length; i < l; )
2182
+ for (var n = X.repeat(" ", t), i = 0, r = -1, o = "", a, l = e.length; i < l; )
2179
2183
  r = e.indexOf(`
2180
2184
  `, i), r === -1 ? (a = e.slice(i), i = l) : (a = e.slice(i, r + 1), i = r + 1), a.length && a !== `
2181
2185
  ` && (o += n), o += a;
@@ -2183,7 +2187,7 @@ function Bt(e, t) {
2183
2187
  }
2184
2188
  function et(e, t) {
2185
2189
  return `
2186
- ` + ee.repeat(" ", e.indent * t);
2190
+ ` + X.repeat(" ", e.indent * t);
2187
2191
  }
2188
2192
  function Co(e, t) {
2189
2193
  var n, i, r;
@@ -2192,7 +2196,7 @@ function Co(e, t) {
2192
2196
  return !0;
2193
2197
  return !1;
2194
2198
  }
2195
- function De(e) {
2199
+ function Pe(e) {
2196
2200
  return e === eo || e === Za;
2197
2201
  }
2198
2202
  function Le(e) {
@@ -2202,20 +2206,20 @@ function Lt(e) {
2202
2206
  return Le(e) && e !== ut && e !== Xa && e !== Oe;
2203
2207
  }
2204
2208
  function Rt(e, t, n) {
2205
- var i = Lt(e), r = i && !De(e);
2209
+ var i = Lt(e), r = i && !Pe(e);
2206
2210
  return (
2207
2211
  // ns-plain-safe
2208
2212
  (n ? (
2209
2213
  // c = flow-in
2210
2214
  i
2211
- ) : i && e !== Mn && e !== jn && e !== Dn && e !== Pn && e !== Un) && e !== Xe && !(t === je && !r) || Lt(t) && !De(t) && e === Xe || t === je && r
2215
+ ) : i && e !== Mn && e !== Dn && e !== Pn && e !== jn && e !== Un) && e !== Xe && !(t === De && !r) || Lt(t) && !Pe(t) && e === Xe || t === De && r
2212
2216
  );
2213
2217
  }
2214
2218
  function xo(e) {
2215
- return Le(e) && e !== ut && !De(e) && e !== lo && e !== uo && e !== je && e !== Mn && e !== jn && e !== Dn && e !== Pn && e !== Un && e !== Xe && e !== ro && e !== oo && e !== to && e !== mo && e !== so && e !== co && e !== ao && e !== no && e !== io && e !== fo && e !== po;
2219
+ return Le(e) && e !== ut && !Pe(e) && e !== lo && e !== uo && e !== De && e !== Mn && e !== Dn && e !== Pn && e !== jn && e !== Un && e !== Xe && e !== ro && e !== oo && e !== to && e !== mo && e !== so && e !== co && e !== ao && e !== no && e !== io && e !== fo && e !== po;
2216
2220
  }
2217
2221
  function Ao(e) {
2218
- return !De(e) && e !== je;
2222
+ return !Pe(e) && e !== De;
2219
2223
  }
2220
2224
  function Ie(e, t) {
2221
2225
  var n = e.charCodeAt(t), i;
@@ -2225,14 +2229,14 @@ function qn(e) {
2225
2229
  var t = /^\n* /;
2226
2230
  return t.test(e);
2227
2231
  }
2228
- var Hn = 1, tt = 2, Vn = 3, Yn = 4, Ae = 5;
2232
+ var Hn = 1, tt = 2, Vn = 3, Yn = 4, _e = 5;
2229
2233
  function _o(e, t, n, i, r, o, a, l) {
2230
- var s, c = 0, d = null, u = !1, p = !1, m = i !== -1, y = -1, g = xo(Ie(e, 0)) && Ao(Ie(e, e.length - 1));
2234
+ var s, c = 0, d = null, u = !1, p = !1, m = i !== -1, y = -1, h = xo(Ie(e, 0)) && Ao(Ie(e, e.length - 1));
2231
2235
  if (t || a)
2232
2236
  for (s = 0; s < e.length; c >= 65536 ? s += 2 : s++) {
2233
2237
  if (c = Ie(e, s), !Le(c))
2234
- return Ae;
2235
- g = g && Rt(c, d, l), d = c;
2238
+ return _e;
2239
+ h = h && Rt(c, d, l), d = c;
2236
2240
  }
2237
2241
  else {
2238
2242
  for (s = 0; s < e.length; c >= 65536 ? s += 2 : s++) {
@@ -2240,18 +2244,18 @@ function _o(e, t, n, i, r, o, a, l) {
2240
2244
  u = !0, m && (p = p || // Foldable line = too long, and not more-indented.
2241
2245
  s - y - 1 > i && e[y + 1] !== " ", y = s);
2242
2246
  else if (!Le(c))
2243
- return Ae;
2244
- g = g && Rt(c, d, l), d = c;
2247
+ return _e;
2248
+ h = h && Rt(c, d, l), d = c;
2245
2249
  }
2246
2250
  p = p || m && s - y - 1 > i && e[y + 1] !== " ";
2247
2251
  }
2248
- return !u && !p ? g && !a && !r(e) ? Hn : o === Be ? Ae : tt : n > 9 && qn(e) ? Ae : a ? o === Be ? Ae : tt : p ? Yn : Vn;
2252
+ return !u && !p ? h && !a && !r(e) ? Hn : o === Be ? _e : tt : n > 9 && qn(e) ? _e : a ? o === Be ? _e : tt : p ? Yn : Vn;
2249
2253
  }
2250
2254
  function wo(e, t, n, i, r) {
2251
2255
  e.dump = function() {
2252
2256
  if (t.length === 0)
2253
2257
  return e.quotingType === Be ? '""' : "''";
2254
- if (!e.noCompatMode && (ho.indexOf(t) !== -1 || go.test(t)))
2258
+ if (!e.noCompatMode && (go.indexOf(t) !== -1 || ho.test(t)))
2255
2259
  return e.quotingType === Be ? '"' + t + '"' : "'" + t + "'";
2256
2260
  var o = e.indent * Math.max(1, n), a = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - o), l = i || e.flowLevel > -1 && n >= e.flowLevel;
2257
2261
  function s(c) {
@@ -2275,7 +2279,7 @@ function wo(e, t, n, i, r) {
2275
2279
  return "|" + Kt(t, e.indent) + Nt(Bt(t, o));
2276
2280
  case Yn:
2277
2281
  return ">" + Kt(t, e.indent) + Nt(Bt(So(t, a), o));
2278
- case Ae:
2282
+ case _e:
2279
2283
  return '"' + $o(t) + '"';
2280
2284
  default:
2281
2285
  throw new oe("impossible error: invalid scalar style");
@@ -2327,7 +2331,7 @@ function To(e, t, n) {
2327
2331
  l = n[o], e.replacer && (l = e.replacer.call(n, String(o), l)), (pe(e, t, l, !1, !1) || typeof l > "u" && pe(e, t, null, !1, !1)) && (i !== "" && (i += "," + (e.condenseFlow ? "" : " ")), i += e.dump);
2328
2332
  e.tag = r, e.dump = "[" + i + "]";
2329
2333
  }
2330
- function jt(e, t, n, i) {
2334
+ function Dt(e, t, n, i) {
2331
2335
  var r = "", o = e.tag, a, l, s;
2332
2336
  for (a = 0, l = n.length; a < l; a += 1)
2333
2337
  s = n[a], e.replacer && (s = e.replacer.call(n, String(a), s)), (pe(e, t + 1, s, !0, !0, !1, !0) || typeof s > "u" && pe(e, t + 1, null, !0, !0, !1, !0)) && ((!i || r !== "") && (r += et(e, t)), e.dump && Oe === e.dump.charCodeAt(0) ? r += "-" : r += "- ", r += e.dump);
@@ -2351,7 +2355,7 @@ function Io(e, t, n, i) {
2351
2355
  p = "", (!i || r !== "") && (p += et(e, t)), c = a[l], d = n[c], e.replacer && (d = e.replacer.call(n, c, d)), pe(e, t + 1, c, !0, !0, !0) && (u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, u && (e.dump && Oe === e.dump.charCodeAt(0) ? p += "?" : p += "? "), p += e.dump, u && (p += et(e, t)), pe(e, t + 1, d, !0, u) && (e.dump && Oe === e.dump.charCodeAt(0) ? p += ":" : p += ": ", p += e.dump, r += p));
2352
2356
  e.tag = o, e.dump = r || "{}";
2353
2357
  }
2354
- function Dt(e, t, n) {
2358
+ function Pt(e, t, n) {
2355
2359
  var i, r, o, a, l, s;
2356
2360
  for (r = n ? e.explicitTypes : e.implicitTypes, o = 0, a = r.length; o < a; o += 1)
2357
2361
  if (l = r[o], (l.instanceOf || l.predicate) && (!l.instanceOf || typeof t == "object" && t instanceof l.instanceOf) && (!l.predicate || l.predicate(t))) {
@@ -2369,7 +2373,7 @@ function Dt(e, t, n) {
2369
2373
  return !1;
2370
2374
  }
2371
2375
  function pe(e, t, n, i, r, o, a) {
2372
- e.tag = null, e.dump = n, Dt(e, n, !1) || Dt(e, n, !0);
2376
+ e.tag = null, e.dump = n, Pt(e, n, !1) || Pt(e, n, !0);
2373
2377
  var l = Kn.call(e.dump), s = i, c;
2374
2378
  i && (i = e.flowLevel < 0 || e.flowLevel > t);
2375
2379
  var d = l === "[object Object]" || l === "[object Array]", u, p;
@@ -2379,7 +2383,7 @@ function pe(e, t, n, i, r, o, a) {
2379
2383
  if (d && p && !e.usedDuplicates[u] && (e.usedDuplicates[u] = !0), l === "[object Object]")
2380
2384
  i && Object.keys(e.dump).length !== 0 ? (Io(e, t, e.dump, r), p && (e.dump = "&ref_" + u + e.dump)) : (Eo(e, t, e.dump), p && (e.dump = "&ref_" + u + " " + e.dump));
2381
2385
  else if (l === "[object Array]")
2382
- i && e.dump.length !== 0 ? (e.noArrayIndent && !a && t > 0 ? jt(e, t - 1, e.dump, r) : jt(e, t, e.dump, r), p && (e.dump = "&ref_" + u + e.dump)) : (To(e, t, e.dump), p && (e.dump = "&ref_" + u + " " + e.dump));
2386
+ i && e.dump.length !== 0 ? (e.noArrayIndent && !a && t > 0 ? Dt(e, t - 1, e.dump, r) : Dt(e, t, e.dump, r), p && (e.dump = "&ref_" + u + e.dump)) : (To(e, t, e.dump), p && (e.dump = "&ref_" + u + " " + e.dump));
2383
2387
  else if (l === "[object String]")
2384
2388
  e.tag !== "?" && wo(e, e.dump, t, o, s);
2385
2389
  else {
@@ -2428,9 +2432,9 @@ function dt(e, t) {
2428
2432
  throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
2429
2433
  };
2430
2434
  }
2431
- var Ro = ie, Ko = ln, No = dn, Mo = gn, jo = yn, Do = lt, Po = Rn.load, Uo = Rn.loadAll, qo = Lo.dump, Ho = oe, Vo = {
2435
+ var Ro = ie, Ko = ln, No = dn, Mo = hn, Do = yn, Po = lt, jo = Rn.load, Uo = Rn.loadAll, qo = Lo.dump, Ho = oe, Vo = {
2432
2436
  binary: xn,
2433
- float: hn,
2437
+ float: gn,
2434
2438
  map: un,
2435
2439
  null: fn,
2436
2440
  pairs: _n,
@@ -2447,9 +2451,9 @@ var Ro = ie, Ko = ln, No = dn, Mo = gn, jo = yn, Do = lt, Po = Rn.load, Uo = Rn.
2447
2451
  Schema: Ko,
2448
2452
  FAILSAFE_SCHEMA: No,
2449
2453
  JSON_SCHEMA: Mo,
2450
- CORE_SCHEMA: jo,
2451
- DEFAULT_SCHEMA: Do,
2452
- load: Po,
2454
+ CORE_SCHEMA: Do,
2455
+ DEFAULT_SCHEMA: Po,
2456
+ load: jo,
2453
2457
  loadAll: Uo,
2454
2458
  dump: qo,
2455
2459
  YAMLException: Ho,
@@ -2468,21 +2472,21 @@ const Go = { class: "yaml-config config-card-code-block" }, Jn = /* @__PURE__ */
2468
2472
  }
2469
2473
  },
2470
2474
  setup(e) {
2471
- const t = e, n = $(() => {
2475
+ const t = e, n = S(() => {
2472
2476
  const i = Object.fromEntries(Object.entries(t.entityRecord).filter(([, r]) => r !== null && r !== "" && (Array.isArray(r) ? r.length !== 0 : !0)));
2473
2477
  return Object.keys(i).length === 0 && i.constructor === Object ? "" : Wn.dump(i).trim();
2474
2478
  });
2475
2479
  return (i, r) => {
2476
- const o = P("KCodeBlock");
2477
- return h(), T("div", Go, [
2478
- t.entityRecord ? (h(), M(o, {
2480
+ const o = U("KCodeBlock");
2481
+ return g(), $("div", Go, [
2482
+ t.entityRecord ? (g(), K(o, {
2479
2483
  key: 0,
2480
2484
  id: "yaml-codeblock",
2481
2485
  code: n.value,
2482
2486
  language: "yaml",
2483
2487
  theme: "dark",
2484
- onCodeBlockRender: A(Te)
2485
- }, null, 8, ["code", "onCodeBlockRender"])) : j("", !0)
2488
+ onCodeBlockRender: _(Te)
2489
+ }, null, 8, ["code", "onCodeBlockRender"])) : D("", !0)
2486
2490
  ]);
2487
2491
  };
2488
2492
  }
@@ -2510,7 +2514,7 @@ const Go = { class: "yaml-config config-card-code-block" }, Jn = /* @__PURE__ */
2510
2514
  }
2511
2515
  },
2512
2516
  setup(e) {
2513
- const t = e, n = $(() => bi.includes(t.entityType)), i = $(() => ki.includes(t.entityType)), r = (c, d) => {
2517
+ const t = e, n = S(() => bi.includes(t.entityType)), i = S(() => ki.includes(t.entityType)), r = (c, d) => {
2514
2518
  const u = te;
2515
2519
  let p = "";
2516
2520
  return typeof c == "string" ? p += `${u}${d} = "${c}"
@@ -2524,12 +2528,12 @@ const Go = { class: "yaml-config config-card-code-block" }, Jn = /* @__PURE__ */
2524
2528
  if (d && (m += `${p}${d} = {
2525
2529
  `), c === null)
2526
2530
  return d ? m += `${p}}` : m = "{}", m;
2527
- const y = Object.fromEntries(Object.entries(c).filter(([, k]) => k !== null));
2528
- let g = "";
2529
- for (const [k, C] of Object.entries(y))
2530
- Array.isArray(C) ? C.length === 0 ? g = "[]" : (g = `[
2531
- `, g += a(C, void 0, p), g += `${p}${te}]`) : C && typeof C == "object" ? (g = `{
2532
- `, g += o(C, void 0, p), g += `${p}${te}}`) : g = String(C ?? ""), typeof C == "string" && (g = `"${g}"`), m += `${p}${te}${k} = ${g}
2531
+ const y = Object.fromEntries(Object.entries(c).filter(([, b]) => b !== null));
2532
+ let h = "";
2533
+ for (const [b, k] of Object.entries(y))
2534
+ Array.isArray(k) ? k.length === 0 ? h = "[]" : (h = `[
2535
+ `, h += a(k, void 0, p), h += `${p}${te}]`) : k && typeof k == "object" ? (h = `{
2536
+ `, h += o(k, void 0, p), h += `${p}${te}}`) : h = String(k ?? ""), typeof k == "string" && (h = `"${h}"`), m += `${p}${te}${b} = ${h}
2533
2537
  `;
2534
2538
  return d ? m += `${p}}
2535
2539
  ` : m;
@@ -2541,9 +2545,9 @@ const Go = { class: "yaml-config config-card-code-block" }, Jn = /* @__PURE__ */
2541
2545
  d && (c.length === 0 ? m += `${p}${d} = [` : m += `${p}${d} = [
2542
2546
  `);
2543
2547
  for (let y = 0; y < c.length; y++) {
2544
- const g = c[y];
2545
- typeof g == "object" ? (m += `${p}${te}{
2546
- `, m += o(g, void 0, p), m += `${p}${te}}`) : typeof g == "string" ? m += `${p}${te}"${g}"` : m += `${p}${te}${String(g ?? "")}`, y < c.length - 1 && (m += ","), m += `
2548
+ const h = c[y];
2549
+ typeof h == "object" ? (m += `${p}${te}{
2550
+ `, m += o(h, void 0, p), m += `${p}${te}}`) : typeof h == "string" ? m += `${p}${te}"${h}"` : m += `${p}${te}${String(h ?? "")}`, y < c.length - 1 && (m += ","), m += `
2547
2551
  `;
2548
2552
  }
2549
2553
  return d && (c.length === 0 ? m += `]
@@ -2554,21 +2558,21 @@ const Go = { class: "yaml-config config-card-code-block" }, Jn = /* @__PURE__ */
2554
2558
  for (const [u, p] of Object.entries(c))
2555
2559
  Array.isArray(p) ? d += a(p, u) : typeof p == "object" ? d += o(p, u) : d += r(p, u);
2556
2560
  return d;
2557
- }, s = $(() => {
2558
- var m, y, g, k, C, x, B;
2559
- const c = Object.fromEntries(Object.entries(t.entityRecord).filter(([, D]) => D != null)), d = t.entityRecord.config ? Object.fromEntries(Object.entries((m = t.entityRecord) == null ? void 0 : m.config).filter(([, D]) => D != null)) : void 0;
2561
+ }, s = S(() => {
2562
+ var m, y, h, b, k, A, B;
2563
+ const c = Object.fromEntries(Object.entries(t.entityRecord).filter(([, P]) => P != null)), d = t.entityRecord.config ? Object.fromEntries(Object.entries((m = t.entityRecord) == null ? void 0 : m.config).filter(([, P]) => P != null)) : void 0;
2560
2564
  if (d && (c.config = d), Object.keys(c).length === 0)
2561
2565
  return "";
2562
2566
  delete c.id;
2563
2567
  let u = "", p = "";
2564
- if ((y = c.service) != null && y.id ? (p = "service", delete c.service) : (g = c.route) != null && g.id ? (p = "route", delete c.route) : (k = c.consumer) != null && k.id ? (p = "consumer", delete c.consumer) : (C = c.consumer_group) != null && C.id ? (p = "consumer_group", delete c.consumer_group) : (x = c.certificate) != null && x.id ? (p = "certificate", delete c.certificate) : (B = c.set) != null && B.id && (p = "set", delete c.set), n.value) {
2565
- const D = t.subEntityType ? `${t.entityType}_${t.subEntityType}` : t.entityType;
2566
- u += `resource "konnect_event_gateway_${D}" "my_eventgateway${D.replaceAll("_", "")}" {
2568
+ if ((y = c.service) != null && y.id ? (p = "service", delete c.service) : (h = c.route) != null && h.id ? (p = "route", delete c.route) : (b = c.consumer) != null && b.id ? (p = "consumer", delete c.consumer) : (k = c.consumer_group) != null && k.id ? (p = "consumer_group", delete c.consumer_group) : (A = c.certificate) != null && A.id ? (p = "certificate", delete c.certificate) : (B = c.set) != null && B.id && (p = "set", delete c.set), n.value) {
2569
+ const P = t.subEntityType ? `${t.entityType}_${t.subEntityType}` : t.entityType;
2570
+ u += `resource "konnect_event_gateway_${P}" "my_eventgateway${P.replaceAll("_", "")}" {
2567
2571
  `, u += `${te}provider = konnect-beta
2568
2572
  `;
2569
2573
  } else if (t.entityType === "plugin") {
2570
- const D = t.credentialType.replace(/-/g, "_") || (c.name + "").replace(/-/g, "_");
2571
- delete c.name, u += `resource "konnect_gateway_plugin_${D}" "my_${D}" {
2574
+ const P = t.credentialType.replace(/-/g, "_") || (c.name + "").replace(/-/g, "_");
2575
+ delete c.name, u += `resource "konnect_gateway_plugin_${P}" "my_${P}" {
2572
2576
  `;
2573
2577
  } else i.value ? (u += `resource "konnect_${t.entityType}" "my_${t.entityType}" {
2574
2578
  `, u += `${te}provider = konnect-beta
@@ -2582,16 +2586,16 @@ const Go = { class: "yaml-config config-card-code-block" }, Jn = /* @__PURE__ */
2582
2586
  `, u;
2583
2587
  });
2584
2588
  return (c, d) => {
2585
- const u = P("KCodeBlock");
2586
- return h(), T("div", zo, [
2587
- t.entityRecord ? (h(), M(u, {
2589
+ const u = U("KCodeBlock");
2590
+ return g(), $("div", zo, [
2591
+ t.entityRecord ? (g(), K(u, {
2588
2592
  key: 0,
2589
2593
  id: "terraform-codeblock",
2590
2594
  code: s.value,
2591
2595
  language: "terraform",
2592
2596
  theme: "dark",
2593
- onCodeBlockRender: A(Te)
2594
- }, null, 8, ["code", "onCodeBlockRender"])) : j("", !0)
2597
+ onCodeBlockRender: _(Te)
2598
+ }, null, 8, ["code", "onCodeBlockRender"])) : D("", !0)
2595
2599
  ]);
2596
2600
  };
2597
2601
  }
@@ -2658,32 +2662,32 @@ const Go = { class: "yaml-config config-card-code-block" }, Jn = /* @__PURE__ */
2658
2662
  }
2659
2663
  },
2660
2664
  setup(e) {
2661
- const t = e, n = Ue(), { i18n: { t: i } } = W.useI18n(), r = (l) => !!(l.tooltip || n[`${l.key}-label-tooltip`]), o = $(() => {
2665
+ const t = e, n = Ue(), { i18n: { t: i } } = J.useI18n(), r = (l) => !!(l.tooltip || n[`${l.key}-label-tooltip`]), o = S(() => {
2662
2666
  if (!t.record)
2663
2667
  return t.record;
2664
2668
  let l = t.record;
2665
2669
  t.codeBlockRecordFormatter && (l = t.codeBlockRecordFormatter(l, t.format));
2666
2670
  const s = JSON.parse(JSON.stringify(l));
2667
2671
  return delete s.created_at, delete s.updated_at, s;
2668
- }), a = $(() => t.fetcherUrl.replace(/(\?|&)__ui_data=true/, ""));
2669
- return (l, s) => (h(), T(ue, null, [
2670
- e.format === "structured" ? (h(), T("div", Qo, [
2671
- (h(!0), T(ue, null, ce(e.propListTypes, (c) => (h(), T("div", {
2672
+ }), a = S(() => t.fetcherUrl.replace(/(\?|&)__ui_data=true/, ""));
2673
+ return (l, s) => (g(), $(ue, null, [
2674
+ e.format === "structured" ? (g(), $("div", Qo, [
2675
+ (g(!0), $(ue, null, ce(e.propListTypes, (c) => (g(), $("div", {
2672
2676
  key: `config-card-details-${c}-props`,
2673
2677
  class: fe(`config-card-details-${c}-props`),
2674
2678
  "data-testid": `config-card-details-${c}-props`
2675
2679
  }, [
2676
- c !== "basic" ? (h(), T("div", Xo, O(c === "advanced" ? A(i)("baseConfigCard.sections.advanced") : c === "plugin" ? A(i)("baseConfigCard.sections.plugin") : A(i)("baseConfigCard.sections.policy")), 1)) : j("", !0),
2677
- (h(!0), T(ue, null, ce(e.propertyCollections[c], (d) => U(l.$slots, `config-card-item-${d.key}`, {
2680
+ c !== "basic" ? (g(), $("div", Xo, I(c === "advanced" ? _(i)("baseConfigCard.sections.advanced") : c === "plugin" ? _(i)("baseConfigCard.sections.plugin") : _(i)("baseConfigCard.sections.policy")), 1)) : D("", !0),
2681
+ (g(!0), $(ue, null, ce(e.propertyCollections[c], (d) => j(l.$slots, `config-card-item-${d.key}`, {
2678
2682
  key: d.key,
2679
2683
  item: d
2680
2684
  }, () => [
2681
- K(nn, { item: d }, $e({
2682
- label: _(() => [
2683
- U(l.$slots, `${d.key}-label`, { row: d }, void 0, !0)
2685
+ R(nn, { item: d }, ke({
2686
+ label: w(() => [
2687
+ j(l.$slots, `${d.key}-label`, { row: d }, void 0, !0)
2684
2688
  ]),
2685
- [d.key]: _(({ rowValue: u }) => [
2686
- U(l.$slots, d.key, {
2689
+ [d.key]: w(({ rowValue: u }) => [
2690
+ j(l.$slots, d.key, {
2687
2691
  row: d,
2688
2692
  rowValue: u
2689
2693
  }, void 0, !0)
@@ -2692,32 +2696,32 @@ const Go = { class: "yaml-config config-card-code-block" }, Jn = /* @__PURE__ */
2692
2696
  }, [
2693
2697
  r(d) ? {
2694
2698
  name: "label-tooltip",
2695
- fn: _(() => [
2696
- U(l.$slots, `${d.key}-label-tooltip`, { row: d }, void 0, !0)
2699
+ fn: w(() => [
2700
+ j(l.$slots, `${d.key}-label-tooltip`, { row: d }, void 0, !0)
2697
2701
  ]),
2698
2702
  key: "0"
2699
2703
  } : void 0
2700
2704
  ]), 1032, ["item"])
2701
2705
  ], !0)), 128))
2702
2706
  ], 10, Zo))), 128))
2703
- ])) : j("", !0),
2704
- e.format === "json" && o.value ? (h(), M(rn, {
2707
+ ])) : D("", !0),
2708
+ e.format === "json" && o.value ? (g(), K(rn, {
2705
2709
  key: 1,
2706
2710
  config: t.config,
2707
2711
  "entity-record": o.value,
2708
2712
  "fetcher-url": a.value,
2709
2713
  "request-method": "get"
2710
- }, null, 8, ["config", "entity-record", "fetcher-url"])) : j("", !0),
2711
- e.format === "yaml" && o.value ? (h(), M(Jn, {
2714
+ }, null, 8, ["config", "entity-record", "fetcher-url"])) : D("", !0),
2715
+ e.format === "yaml" && o.value ? (g(), K(Jn, {
2712
2716
  key: 2,
2713
2717
  "entity-record": o.value
2714
- }, null, 8, ["entity-record"])) : j("", !0),
2715
- e.format === "terraform" && o.value ? (h(), M(Gn, {
2718
+ }, null, 8, ["entity-record"])) : D("", !0),
2719
+ e.format === "terraform" && o.value ? (g(), K(Gn, {
2716
2720
  key: 3,
2717
2721
  "entity-record": o.value,
2718
2722
  "entity-type": t.entityType,
2719
2723
  "sub-entity-type": t.subEntityType
2720
- }, null, 8, ["entity-record", "entity-type", "sub-entity-type"])) : j("", !0)
2724
+ }, null, 8, ["entity-record", "entity-type", "sub-entity-type"])) : D("", !0)
2721
2725
  ], 64));
2722
2726
  }
2723
2727
  }), tl = /* @__PURE__ */ le(el, [["__scopeId", "data-v-a7689049"]]), nl = {
@@ -2845,10 +2849,10 @@ const Go = { class: "yaml-config config-card-code-block" }, Jn = /* @__PURE__ */
2845
2849
  },
2846
2850
  emits: ["loading", "fetch:success", "fetch:error", "configFormatChange"],
2847
2851
  setup(e, { emit: t }) {
2848
- var F;
2849
- const n = t, i = e, { i18n: { t: r } } = W.useI18n(), { getMessageFromError: o } = W.useErrors(), { convertKeyToTitle: a } = W.useStringHelpers();
2850
- W.useSubSchema(i.pluginConfigKey);
2851
- const { axiosInstance: l } = W.useAxios((F = i.config) == null ? void 0 : F.axiosRequestConfig), s = [
2852
+ var x;
2853
+ const n = t, i = e, { i18n: { t: r } } = J.useI18n(), { getMessageFromError: o } = J.useErrors(), { convertKeyToTitle: a } = J.useStringHelpers();
2854
+ J.useSubSchema(i.pluginConfigKey);
2855
+ const { axiosInstance: l } = J.useAxios((x = i.config) == null ? void 0 : x.axiosRequestConfig), s = [
2852
2856
  {
2853
2857
  label: r("baseConfigCard.general.structuredFormat"),
2854
2858
  value: "structured",
@@ -2882,7 +2886,7 @@ const Go = { class: "yaml-config config-card-code-block" }, Jn = /* @__PURE__ */
2882
2886
  });
2883
2887
  const m = {
2884
2888
  id: {
2885
- type: Y.ID,
2889
+ type: W.ID,
2886
2890
  label: r("baseConfigCard.commonFields.id_label"),
2887
2891
  order: 0,
2888
2892
  section: ae.Basic
@@ -2892,224 +2896,224 @@ const Go = { class: "yaml-config config-card-code-block" }, Jn = /* @__PURE__ */
2892
2896
  section: ae.Basic
2893
2897
  },
2894
2898
  enabled: {
2895
- type: Y.BadgeStatus,
2899
+ type: W.BadgeStatus,
2896
2900
  order: 2,
2897
2901
  section: ae.Basic
2898
2902
  },
2899
2903
  updated_at: {
2900
- type: Y.Date,
2904
+ type: W.Date,
2901
2905
  label: r("baseConfigCard.commonFields.updated_at_label"),
2902
2906
  order: 3,
2903
2907
  section: ae.Basic
2904
2908
  },
2905
2909
  created_at: {
2906
- type: Y.Date,
2910
+ type: W.Date,
2907
2911
  label: r("baseConfigCard.commonFields.created_at_label"),
2908
2912
  order: 4,
2909
2913
  section: ae.Basic
2910
2914
  },
2911
2915
  tags: {
2912
- type: Y.BadgeTag,
2916
+ type: W.BadgeTag,
2913
2917
  order: -1,
2914
2918
  // the last property displayed
2915
2919
  section: ae.Basic
2916
2920
  },
2917
2921
  partials: {
2918
- type: Y.LinkInternal,
2922
+ type: W.LinkInternal,
2919
2923
  label: r("baseConfigCard.commonFields.partial_label"),
2920
2924
  order: -1,
2921
2925
  // the last property displayed
2922
2926
  section: ae.Basic
2923
2927
  }
2924
- }, y = N(!1), g = N(!1), k = N(""), C = N({}), x = $(() => {
2925
- var b, V, J;
2926
- if (!C.value)
2928
+ }, y = N(!1), h = N(!1), b = N(""), k = N({}), A = S(() => {
2929
+ var C, Y, G;
2930
+ if (!k.value)
2927
2931
  return [];
2928
- const f = [], v = Object.keys(C.value).length;
2929
- for (const E in C.value) {
2932
+ const f = [], v = Object.keys(k.value).length;
2933
+ for (const E in k.value) {
2930
2934
  if (E === "__ui_data") continue;
2931
- const R = (V = (b = i.configSchema) == null ? void 0 : b[E]) == null ? void 0 : V.order, G = (J = m[E]) == null ? void 0 : J.order;
2935
+ const O = (Y = (C = i.configSchema) == null ? void 0 : C[E]) == null ? void 0 : Y.order, V = (G = m[E]) == null ? void 0 : G.order;
2932
2936
  let H = v;
2933
- (G || G === 0) && (H = G === -1 ? v + 1 : G), R && (H = R === -1 ? v + 1 : R), f.push([E, H]);
2937
+ (V || V === 0) && (H = V === -1 ? v + 1 : V), O && (H = O === -1 ? v + 1 : O), f.push([E, H]);
2934
2938
  }
2935
- return f.sort(function(E, R) {
2936
- return E[1] - R[1];
2939
+ return f.sort(function(E, O) {
2940
+ return E[1] - O[1];
2937
2941
  }), f.map((E) => {
2938
2942
  var ft, pt;
2939
- const R = E[0], G = (ft = C.value) == null ? void 0 : ft[R], H = ((pt = i.configSchema) == null ? void 0 : pt[R]) || {}, Q = m[R];
2943
+ const O = E[0], V = (ft = k.value) == null ? void 0 : ft[O], H = ((pt = i.configSchema) == null ? void 0 : pt[O]) || {}, Q = m[O];
2940
2944
  return {
2941
- key: R,
2942
- value: G,
2945
+ key: O,
2946
+ value: V,
2943
2947
  hidden: H.hidden || !1,
2944
- type: H.type ?? ((Q == null ? void 0 : Q.type) || Y.Text),
2945
- label: H.label ?? ((Q == null ? void 0 : Q.label) || a(R)),
2948
+ type: H.type ?? ((Q == null ? void 0 : Q.type) || W.Text),
2949
+ label: H.label ?? ((Q == null ? void 0 : Q.label) || a(O)),
2946
2950
  tooltip: H.tooltip ?? ((Q == null ? void 0 : Q.tooltip) || void 0),
2947
2951
  section: H.section ?? ((Q == null ? void 0 : Q.section) || ae.Advanced)
2948
2952
  };
2949
2953
  }).filter((E) => !E.hidden && E.key !== i.pluginConfigKey);
2950
- }), B = $(() => {
2951
- var V, J;
2952
- if (!C.value || !i.pluginConfigKey)
2954
+ }), B = S(() => {
2955
+ var Y, G;
2956
+ if (!k.value || !i.pluginConfigKey)
2953
2957
  return [];
2954
- const f = C.value[i.pluginConfigKey] || {}, v = Object.keys(f).length, b = [];
2958
+ const f = k.value[i.pluginConfigKey] || {}, v = Object.keys(f).length, C = [];
2955
2959
  for (const E in f) {
2956
- const R = (J = (V = i.pluginConfigSchema) == null ? void 0 : V[E]) == null ? void 0 : J.order, G = f[E];
2957
- let H = G != null && G !== "" ? v - 1 : v;
2958
- R && (H = R === -1 ? v + 1 : R), b.push([E, H]);
2960
+ const O = (G = (Y = i.pluginConfigSchema) == null ? void 0 : Y[E]) == null ? void 0 : G.order, V = f[E];
2961
+ let H = V != null && V !== "" ? v - 1 : v;
2962
+ O && (H = O === -1 ? v + 1 : O), C.push([E, H]);
2959
2963
  }
2960
- return b.sort(function(E, R) {
2961
- return E[1] - R[1];
2962
- }), b.map((E) => {
2964
+ return C.sort(function(E, O) {
2965
+ return E[1] - O[1];
2966
+ }), C.map((E) => {
2963
2967
  var Q;
2964
- const R = E[0], G = f[R], H = ((Q = i.pluginConfigSchema) == null ? void 0 : Q[R]) || {};
2968
+ const O = E[0], V = f[O], H = ((Q = i.pluginConfigSchema) == null ? void 0 : Q[O]) || {};
2965
2969
  return {
2966
- key: R,
2967
- value: G,
2970
+ key: O,
2971
+ value: V,
2968
2972
  hidden: H.hidden || !1,
2969
- type: H.type ?? Y.Text,
2970
- label: H.label ?? a(R),
2973
+ type: H.type ?? W.Text,
2974
+ label: H.label ?? a(O),
2971
2975
  tooltip: H.tooltip ?? void 0,
2972
2976
  section: ae.Plugin
2973
2977
  };
2974
2978
  }).filter((E) => !E.hidden);
2975
- }), D = $(() => {
2976
- var V, J;
2977
- if (!C.value || !i.policyConfigKey)
2979
+ }), P = S(() => {
2980
+ var Y, G;
2981
+ if (!k.value || !i.policyConfigKey)
2978
2982
  return [];
2979
- const f = C.value[i.policyConfigKey] || {}, v = Object.keys(f).length, b = [];
2983
+ const f = k.value[i.policyConfigKey] || {}, v = Object.keys(f).length, C = [];
2980
2984
  for (const E in f) {
2981
- const R = (J = (V = i.policyConfigSchema) == null ? void 0 : V[E]) == null ? void 0 : J.order, G = f[E];
2982
- let H = G != null && G !== "" ? v - 1 : v;
2983
- R && (H = R === -1 ? v + 1 : R), b.push([E, H]);
2985
+ const O = (G = (Y = i.policyConfigSchema) == null ? void 0 : Y[E]) == null ? void 0 : G.order, V = f[E];
2986
+ let H = V != null && V !== "" ? v - 1 : v;
2987
+ O && (H = O === -1 ? v + 1 : O), C.push([E, H]);
2984
2988
  }
2985
- return b.sort(function(E, R) {
2986
- return E[1] - R[1];
2987
- }), b.map((E) => {
2989
+ return C.sort(function(E, O) {
2990
+ return E[1] - O[1];
2991
+ }), C.map((E) => {
2988
2992
  var Q;
2989
- const R = E[0], G = f[R], H = ((Q = i.policyConfigSchema) == null ? void 0 : Q[R]) || {};
2993
+ const O = E[0], V = f[O], H = ((Q = i.policyConfigSchema) == null ? void 0 : Q[O]) || {};
2990
2994
  return {
2991
- key: R,
2992
- value: G,
2995
+ key: O,
2996
+ value: V,
2993
2997
  hidden: H.hidden || !1,
2994
- type: H.type ?? Y.Text,
2995
- label: H.label ?? a(R),
2998
+ type: H.type ?? W.Text,
2999
+ label: H.label ?? a(O),
2996
3000
  tooltip: H.tooltip ?? void 0,
2997
3001
  section: ae.Policy
2998
3002
  };
2999
3003
  }).filter((E) => !E.hidden);
3000
- }), X = $(() => {
3001
- var f, v, b, V, J, E;
3004
+ }), ee = S(() => {
3005
+ var f, v, C, Y, G, E;
3002
3006
  return {
3003
- basic: (f = x.value) == null ? void 0 : f.filter((R) => R.section === ae.Basic),
3004
- advanced: (v = x.value) == null ? void 0 : v.filter((R) => R.section === ae.Advanced),
3005
- plugin: (V = B.value) == null ? void 0 : V.concat((b = x.value) == null ? void 0 : b.filter((R) => R.section === ae.Plugin)),
3006
- policy: (E = D.value) == null ? void 0 : E.concat((J = x.value) == null ? void 0 : J.filter((R) => R.section === ae.Policy))
3007
+ basic: (f = A.value) == null ? void 0 : f.filter((O) => O.section === ae.Basic),
3008
+ advanced: (v = A.value) == null ? void 0 : v.filter((O) => O.section === ae.Advanced),
3009
+ plugin: (Y = B.value) == null ? void 0 : Y.concat((C = A.value) == null ? void 0 : C.filter((O) => O.section === ae.Plugin)),
3010
+ policy: (E = P.value) == null ? void 0 : E.concat((G = A.value) == null ? void 0 : G.filter((O) => O.section === ae.Policy))
3007
3011
  };
3008
- }), S = $(() => {
3012
+ }), M = S(() => {
3009
3013
  const f = [];
3010
- return X.value.basic.length && f.push("basic"), X.value.advanced.length && f.push("advanced"), X.value.plugin.length && f.push("plugin"), X.value.policy.length && f.push("policy"), f;
3011
- }), w = $(() => {
3012
- var v, b;
3014
+ return ee.value.basic.length && f.push("basic"), ee.value.advanced.length && f.push("advanced"), ee.value.plugin.length && f.push("plugin"), ee.value.policy.length && f.push("policy"), f;
3015
+ }), F = S(() => {
3016
+ var v, C;
3013
3017
  let f = `${i.config.apiBaseUrl}${i.fetchUrl}`;
3014
- return i.config.app === "konnect" ? f = f.replace(/{controlPlaneId}/gi, ((v = i.config) == null ? void 0 : v.controlPlaneId) || "") : i.config.app === "kongManager" && (f = f.replace(/\/{workspace}/gi, (b = i.config) != null && b.workspace ? `/${i.config.workspace}` : "")), f = f.replace(/{id}/gi, i.config.entityId), f;
3018
+ return i.config.app === "konnect" ? f = f.replace(/{controlPlaneId}/gi, ((v = i.config) == null ? void 0 : v.controlPlaneId) || "") : i.config.app === "kongManager" && (f = f.replace(/\/{workspace}/gi, (C = i.config) != null && C.workspace ? `/${i.config.workspace}` : "")), f = f.replace(/{id}/gi, i.config.entityId), f;
3015
3019
  });
3016
3020
  return be(y, (f) => {
3017
3021
  n("loading", f);
3018
3022
  }, { immediate: !0 }), rt(async () => {
3019
- g.value = !1, y.value = !0;
3023
+ h.value = !1, y.value = !0;
3020
3024
  try {
3021
- const { data: f } = await l.get(w.value);
3025
+ const { data: f } = await l.get(F.value);
3022
3026
  if (i.dataKey)
3023
3027
  if (typeof f[i.dataKey] < "u")
3024
- C.value = { ...f[i.dataKey] };
3028
+ k.value = { ...f[i.dataKey] };
3025
3029
  else
3026
3030
  throw new Error(r("errors.dataKeyUndefined", { dataKey: i.dataKey }));
3027
- else i.recordResolver ? C.value = { ...i.recordResolver(f) } : C.value = { ...f };
3028
- Object.keys(i.configSchema).filter((b) => i.configSchema[b].forceShow).forEach((b) => {
3029
- C.value && typeof C.value[b] > "u" && (C.value[b] = null);
3031
+ else i.recordResolver ? k.value = { ...i.recordResolver(f) } : k.value = { ...f };
3032
+ Object.keys(i.configSchema).filter((C) => i.configSchema[C].forceShow).forEach((C) => {
3033
+ k.value && typeof k.value[C] > "u" && (k.value[C] = null);
3030
3034
  }), n("fetch:success", f);
3031
3035
  } catch (f) {
3032
3036
  const v = o(f);
3033
- k.value = v.startsWith("code") ? r("baseConfigCard.errors.load") : v, g.value = !0, n("fetch:error", f);
3037
+ b.value = v.startsWith("code") ? r("baseConfigCard.errors.load") : v, h.value = !0, n("fetch:error", f);
3034
3038
  } finally {
3035
3039
  y.value = !1;
3036
3040
  }
3037
3041
  }), (f, v) => {
3038
- const b = P("KLabel"), V = P("KSelect"), J = P("KButton"), E = P("KSkeleton"), R = P("KEmptyState"), G = P("KCard");
3039
- return h(), M(G, {
3042
+ const C = U("KLabel"), Y = U("KSelect"), G = U("KButton"), E = U("KSkeleton"), O = U("KEmptyState"), V = U("KCard");
3043
+ return g(), K(V, {
3040
3044
  class: "kong-ui-entity-base-config-card",
3041
3045
  "title-tag": e.titleTag
3042
- }, $e({
3043
- actions: _(() => [
3046
+ }, ke({
3047
+ actions: w(() => [
3044
3048
  L("div", il, [
3045
- U(f.$slots, "actions", {}, void 0, !0),
3046
- K(b, {
3049
+ j(f.$slots, "actions", {}, void 0, !0),
3050
+ R(C, {
3047
3051
  class: "config-format-select-label",
3048
3052
  "data-testid": "config-format-select-label"
3049
3053
  }, {
3050
- default: _(() => [
3051
- q(O(e.label), 1)
3054
+ default: w(() => [
3055
+ q(I(e.label), 1)
3052
3056
  ]),
3053
3057
  _: 1
3054
3058
  }),
3055
- K(V, {
3059
+ R(Y, {
3056
3060
  modelValue: d.value,
3057
3061
  "onUpdate:modelValue": v[0] || (v[0] = (H) => d.value = H),
3058
3062
  "data-testid": "select-config-format",
3059
3063
  items: s,
3060
3064
  onChange: u
3061
3065
  }, null, 8, ["modelValue"]),
3062
- e.configCardDoc ? (h(), M(J, {
3066
+ e.configCardDoc ? (g(), K(G, {
3063
3067
  key: 0,
3064
3068
  appearance: "tertiary",
3065
3069
  class: "book-icon",
3066
3070
  "data-testid": "book-icon"
3067
3071
  }, {
3068
- default: _(() => [
3072
+ default: w(() => [
3069
3073
  L("a", {
3070
3074
  href: e.configCardDoc,
3071
3075
  rel: "noopener",
3072
3076
  target: "_blank"
3073
3077
  }, [
3074
- K(A(Jt), { size: A(fr) }, null, 8, ["size"])
3078
+ R(_(Jt), { size: _(fr) }, null, 8, ["size"])
3075
3079
  ], 8, rl)
3076
3080
  ]),
3077
3081
  _: 1
3078
- })) : j("", !0)
3082
+ })) : D("", !0)
3079
3083
  ])
3080
3084
  ]),
3081
- default: _(() => [
3082
- y.value ? (h(), M(E, {
3085
+ default: w(() => [
3086
+ y.value ? (g(), K(E, {
3083
3087
  key: 0,
3084
3088
  "data-testid": "config-card-loader",
3085
3089
  "table-columns": 2,
3086
3090
  type: "table"
3087
- })) : g.value ? (h(), M(R, {
3091
+ })) : h.value ? (g(), K(O, {
3088
3092
  key: 1,
3089
3093
  "data-testid": "config-card-fetch-error",
3090
3094
  "icon-variant": "error"
3091
3095
  }, {
3092
- default: _(() => [
3093
- L("h3", null, O(k.value), 1)
3096
+ default: w(() => [
3097
+ L("h3", null, I(b.value), 1)
3094
3098
  ]),
3095
3099
  _: 1
3096
- })) : j("", !0),
3100
+ })) : D("", !0),
3097
3101
  L("div", al, [
3098
- K(tl, {
3102
+ R(tl, {
3099
3103
  "code-block-record-formatter": e.codeBlockRecordFormatter,
3100
3104
  config: e.config,
3101
3105
  "entity-type": e.entityType,
3102
- "fetcher-url": w.value,
3106
+ "fetcher-url": F.value,
3103
3107
  format: d.value,
3104
- "prop-list-types": S.value,
3105
- "property-collections": X.value,
3106
- record: C.value,
3108
+ "prop-list-types": M.value,
3109
+ "property-collections": ee.value,
3110
+ record: k.value,
3107
3111
  "sub-entity-type": e.subEntityType
3108
- }, $e({ _: 2 }, [
3112
+ }, ke({ _: 2 }, [
3109
3113
  ce(Object.keys(f.$slots), (H) => ({
3110
3114
  name: H,
3111
- fn: _((Q) => [
3112
- U(f.$slots, H, Yt({ record: C.value }, Q), void 0, !0)
3115
+ fn: w((Q) => [
3116
+ j(f.$slots, H, Yt({ record: k.value }, Q), void 0, !0)
3113
3117
  ])
3114
3118
  }))
3115
3119
  ]), 1032, ["code-block-record-formatter", "config", "entity-type", "fetcher-url", "format", "prop-list-types", "property-collections", "record", "sub-entity-type"])
@@ -3119,10 +3123,10 @@ const Go = { class: "yaml-config config-card-code-block" }, Jn = /* @__PURE__ */
3119
3123
  }, [
3120
3124
  e.hideTitle ? void 0 : {
3121
3125
  name: "title",
3122
- fn: _(() => [
3126
+ fn: w(() => [
3123
3127
  L("span", nl, [
3124
- U(f.$slots, "title", {}, () => [
3125
- q(O(A(r)("baseConfigCard.title")), 1)
3128
+ j(f.$slots, "title", {}, () => [
3129
+ q(I(_(r)("baseConfigCard.title")), 1)
3126
3130
  ], !0)
3127
3131
  ])
3128
3132
  ]),
@@ -3134,98 +3138,111 @@ const Go = { class: "yaml-config config-card-code-block" }, Jn = /* @__PURE__ */
3134
3138
  }), Fs = /* @__PURE__ */ le(ol, [["__scopeId", "data-v-f2b42324"]]), ll = { class: "deck-config config-card-code-block" }, sl = /* @__PURE__ */ z({
3135
3139
  __name: "DeckCodeBlock",
3136
3140
  props: {
3141
+ app: {},
3137
3142
  entityRecord: {},
3138
3143
  entityType: {},
3139
3144
  geoApiServerUrl: {},
3140
- controlPlaneName: {}
3145
+ controlPlaneName: {},
3146
+ kongAdminApiUrl: {},
3147
+ workspace: {}
3141
3148
  },
3142
3149
  setup(e) {
3143
- const t = e, { i18n: n, i18nT: i } = W.useI18n(), r = [
3150
+ const t = e, { i18n: n, i18nT: i } = J.useI18n(), r = [
3144
3151
  { value: "bash", label: "Linux / macOS Bash" },
3145
3152
  { value: "powershell", label: "Windows PowerShell" }
3146
- ], o = N(navigator.userAgent.toLowerCase().includes("windows") ? "powershell" : "bash"), a = $(() => {
3153
+ ], o = N(navigator.userAgent.toLowerCase().includes("windows") ? "powershell" : "bash"), a = S(() => {
3147
3154
  const d = {
3148
3155
  _format_version: "3.0"
3149
3156
  };
3150
- return t.controlPlaneName && (d._konnect = {
3157
+ return t.controlPlaneName ? d._konnect = {
3151
3158
  control_plane_name: t.controlPlaneName
3152
- }), d;
3153
- }), l = $(() => {
3154
- var m, y, g, k, C;
3155
- const d = Object.fromEntries(Object.entries(t.entityRecord).filter(([, x]) => x !== null && x !== "" && (Array.isArray(x) ? x.length !== 0 : !0)));
3156
- t.entityType === Se.Plugin ? ((m = d.service) != null && m.id && (d.service = d.service.id), (y = d.route) != null && y.id && (d.route = d.route.id), (g = d.consumer) != null && g.id && (d.consumer = d.consumer.id), (k = d.consumer_group) != null && k.id && (d.consumer_group = d.consumer_group.id)) : t.entityType === Se.Key && (C = d.key_set) != null && C.id && (d.key_set = d.key_set.id);
3157
- const u = t.entityType === Se.KeySet ? "key_sets" : t.entityType + "s", p = {
3159
+ } : t.workspace && (d._workspace = t.workspace), d;
3160
+ }), l = S(() => {
3161
+ var m, y, h, b, k;
3162
+ const d = Object.fromEntries(Object.entries(t.entityRecord).filter(([, A]) => A !== null && A !== "" && (Array.isArray(A) ? A.length !== 0 : !0)));
3163
+ t.entityType === $e.Plugin ? ((m = d.service) != null && m.id && (d.service = d.service.id), (y = d.route) != null && y.id && (d.route = d.route.id), (h = d.consumer) != null && h.id && (d.consumer = d.consumer.id), (b = d.consumer_group) != null && b.id && (d.consumer_group = d.consumer_group.id)) : t.entityType === $e.Key && (k = d.key_set) != null && k.id && (d.key_set = d.key_set.id);
3164
+ const u = t.entityType === $e.KeySet ? "key_sets" : t.entityType + "s", p = {
3158
3165
  ...a.value,
3159
3166
  [u]: [d]
3160
3167
  };
3161
3168
  return Wn.dump(p, { quotingType: '"' }).trim();
3162
- }), s = $(() => o.value === "bash" ? "export DECK_KONNECT_TOKEN='YOUR_KONNECT_PAT'" : '$env:DECK_KONNECT_TOKEN = "YOUR_KONNECT_PAT"'), c = $(() => {
3169
+ }), s = S(() => o.value === "bash" ? "export DECK_KONNECT_TOKEN='YOUR_KONNECT_PAT'" : '$env:DECK_KONNECT_TOKEN = "YOUR_KONNECT_PAT"'), c = S(() => {
3163
3170
  let d = "deck gateway apply -";
3164
- return t.geoApiServerUrl && (d += ` --konnect-addr ${t.geoApiServerUrl}`), o.value === "bash" ? `echo '
3171
+ return t.geoApiServerUrl ? d += ` --konnect-addr ${t.geoApiServerUrl}` : t.kongAdminApiUrl && (d += ` --kong-addr ${t.kongAdminApiUrl}`), o.value === "bash" ? `echo '
3165
3172
  ${l.value}
3166
3173
  ' | ${d}` : `@'
3167
3174
  ${l.value}
3168
3175
  '@ | ${d}`;
3169
3176
  });
3170
3177
  return (d, u) => {
3171
- const p = P("KSelect"), m = P("KBadge"), y = P("KCodeBlock");
3172
- return h(), T("div", ll, [
3173
- K(p, {
3178
+ const p = U("KSelect"), m = U("KBadge"), y = U("KCodeBlock");
3179
+ return g(), $("div", ll, [
3180
+ R(p, {
3174
3181
  modelValue: o.value,
3175
- "onUpdate:modelValue": u[0] || (u[0] = (g) => o.value = g),
3182
+ "onUpdate:modelValue": u[0] || (u[0] = (h) => o.value = h),
3176
3183
  items: r
3177
3184
  }, {
3178
- "item-template": _(({ item: g }) => [
3179
- g.value === "powershell" ? (h(), M(A(gt), { key: 0 })) : (h(), M(A(yt), { key: 1 })),
3180
- q(" " + O(g.label), 1)
3185
+ "item-template": w(({ item: h }) => [
3186
+ h.value === "powershell" ? (g(), K(_(ht), { key: 0 })) : (g(), K(_(yt), { key: 1 })),
3187
+ q(" " + I(h.label), 1)
3181
3188
  ]),
3182
- "selected-item-template": _(({ item: g }) => [
3183
- g.value === "powershell" ? (h(), M(A(gt), { key: 0 })) : (h(), M(A(yt), { key: 1 })),
3184
- q(" " + O(g.label), 1)
3189
+ "selected-item-template": w(({ item: h }) => [
3190
+ h.value === "powershell" ? (g(), K(_(ht), { key: 0 })) : (g(), K(_(yt), { key: 1 })),
3191
+ q(" " + I(h.label), 1)
3185
3192
  ]),
3186
3193
  _: 1
3187
3194
  }, 8, ["modelValue"]),
3188
- L("p", null, [
3189
- K(A(i), { keypath: "deckCodeBlock.hint" }, {
3190
- token: _(() => [
3191
- K(m, null, {
3192
- default: _(() => [...u[1] || (u[1] = [
3195
+ R(_(i), {
3196
+ "data-testid": `deck-hint-${e.app}`,
3197
+ keypath: `deckCodeBlock.hint.${e.app}`,
3198
+ tag: "p"
3199
+ }, ke({
3200
+ link: w(() => [
3201
+ R(_(oi), {
3202
+ href: e.app === "konnect" ? "https://developer.konghq.com/deck/get-started/" : "https://developer.konghq.com/deck/gateway/configuration/"
3203
+ }, {
3204
+ default: w(() => [
3205
+ q(I(_(n).t("deckCodeBlock.documentation")), 1)
3206
+ ]),
3207
+ _: 1
3208
+ }, 8, ["href"])
3209
+ ]),
3210
+ _: 2
3211
+ }, [
3212
+ e.app === "konnect" ? {
3213
+ name: "token",
3214
+ fn: w(() => [
3215
+ R(m, null, {
3216
+ default: w(() => [...u[1] || (u[1] = [
3193
3217
  q("DECK_KONNECT_TOKEN", -1)
3194
3218
  ])]),
3195
3219
  _: 1
3196
3220
  })
3197
3221
  ]),
3198
- link: _(() => [
3199
- K(A(oi), { href: "https://developer.konghq.com/deck/get-started/" }, {
3200
- default: _(() => [
3201
- q(O(A(n).t("deckCodeBlock.documentation")), 1)
3202
- ]),
3203
- _: 1
3204
- })
3205
- ]),
3206
- _: 1
3207
- })
3208
- ]),
3209
- K(y, {
3222
+ key: "0"
3223
+ } : void 0
3224
+ ]), 1032, ["data-testid", "keypath"]),
3225
+ e.app === "konnect" ? (g(), K(y, {
3226
+ key: 0,
3210
3227
  id: "deck-env-codeblock",
3211
3228
  code: s.value,
3212
3229
  language: o.value,
3213
3230
  "single-line": "",
3214
3231
  theme: "dark",
3215
- onCodeBlockRender: A(Te)
3216
- }, null, 8, ["code", "language", "onCodeBlockRender"]),
3217
- t.entityRecord ? (h(), M(y, {
3218
- key: 0,
3232
+ onCodeBlockRender: _(Te)
3233
+ }, null, 8, ["code", "language", "onCodeBlockRender"])) : D("", !0),
3234
+ t.entityRecord ? (g(), K(y, {
3235
+ key: 1,
3219
3236
  id: "deck-codeblock",
3220
3237
  code: c.value,
3221
3238
  language: o.value,
3222
3239
  theme: "dark",
3223
- onCodeBlockRender: A(Te)
3224
- }, null, 8, ["code", "language", "onCodeBlockRender"])) : j("", !0)
3240
+ onCodeBlockRender: _(Te)
3241
+ }, null, 8, ["code", "language", "onCodeBlockRender"])) : D("", !0)
3225
3242
  ]);
3226
3243
  };
3227
3244
  }
3228
- }), cl = /* @__PURE__ */ le(sl, [["__scopeId", "data-v-22097768"]]), ul = ["novalidate"], dl = /* @__PURE__ */ z({
3245
+ }), cl = /* @__PURE__ */ le(sl, [["__scopeId", "data-v-04c956bc"]]), ul = ["novalidate"], dl = /* @__PURE__ */ z({
3229
3246
  __name: "EntityBaseForm",
3230
3247
  props: {
3231
3248
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -3348,20 +3365,20 @@ ${l.value}
3348
3365
  },
3349
3366
  emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel", "codeBlockTabChange"],
3350
3367
  setup(e, { expose: t, emit: n }) {
3351
- var X;
3352
- const i = n, r = e, o = hi(), { i18n: { t: a } } = W.useI18n(), { getMessageFromError: l } = W.useErrors(), { axiosInstance: s } = W.useAxios((X = r.config) == null ? void 0 : X.axiosRequestConfig), c = N(!1), d = $(() => !!r.editId), u = N(!1), p = N(""), m = $(() => r.canSubmit === !1 || r.isReadonly), y = N(!1), g = $(() => {
3353
- var w, F;
3354
- let S = `${r.config.apiBaseUrl}${r.fetchUrl}`;
3355
- return r.config.app === "konnect" ? S = S.replace(/{controlPlaneId}/gi, ((w = r.config) == null ? void 0 : w.controlPlaneId) || "") : r.config.app === "kongManager" && (S = S.replace(/\/{workspace}/gi, (F = r.config) != null && F.workspace ? `/${r.config.workspace}` : "")), r.editId ? (S = S.replace(/{id}/gi, r.editId), S) : (S = S.replace(/\/{id}/gi, ""), S);
3356
- }), k = () => {
3368
+ var F;
3369
+ const i = n, r = e, o = gi(), { i18n: { t: a } } = J.useI18n(), { getMessageFromError: l } = J.useErrors(), { axiosInstance: s } = J.useAxios((F = r.config) == null ? void 0 : F.axiosRequestConfig), c = N(!1), d = S(() => !!r.editId), u = N(!1), p = N(""), m = S(() => r.canSubmit === !1 || r.isReadonly), y = N(!1), h = S(() => {
3370
+ var f, v;
3371
+ let x = `${r.config.apiBaseUrl}${r.fetchUrl}`;
3372
+ return r.config.app === "konnect" ? x = x.replace(/{controlPlaneId}/gi, ((f = r.config) == null ? void 0 : f.controlPlaneId) || "") : r.config.app === "kongManager" && (x = x.replace(/\/{workspace}/gi, (v = r.config) != null && v.workspace ? `/${r.config.workspace}` : "")), r.editId ? (x = x.replace(/{id}/gi, r.editId), x) : (x = x.replace(/\/{id}/gi, ""), x);
3373
+ }), b = () => {
3357
3374
  y.value = !y.value;
3358
- }, C = () => {
3359
- r.config.cancelRoute ? o.push(r.config.cancelRoute) : x();
3360
- }, x = () => {
3375
+ }, k = () => {
3376
+ r.config.cancelRoute ? o.push(r.config.cancelRoute) : A();
3377
+ }, A = () => {
3361
3378
  i("cancel");
3362
3379
  }, B = () => {
3363
3380
  m.value || i("submit");
3364
- }, D = N([
3381
+ }, P = N([
3365
3382
  {
3366
3383
  title: a("baseForm.configuration.json"),
3367
3384
  hash: "#json"
@@ -3371,63 +3388,65 @@ ${l.value}
3371
3388
  hash: "#yaml"
3372
3389
  }
3373
3390
  ]);
3374
- return r.config.app === "konnect" && r.entityType !== Se.Other && D.value.splice(1, 0, {
3391
+ r.config.app === "konnect" && r.entityType !== $e.Other && P.value.splice(1, 0, {
3375
3392
  title: a("baseForm.configuration.terraform"),
3376
3393
  hash: "#terraform"
3377
- }), r.config.app === "konnect" && r.config.enableDeckTab && vi.includes(r.entityType) && D.value.push({
3394
+ });
3395
+ const ee = vi.includes(r.entityType);
3396
+ return (r.config.app === "kongManager" || r.config.enableDeckTab) && ee && P.value.push({
3378
3397
  title: a("baseForm.configuration.deck"),
3379
3398
  hash: "#deck"
3380
- }), be(() => c.value, (S) => {
3381
- i("loading", S);
3399
+ }), be(() => c.value, (x) => {
3400
+ i("loading", x);
3382
3401
  }, { immediate: !0 }), rt(async () => {
3383
3402
  if (r.editId)
3384
3403
  try {
3385
3404
  u.value = !1, c.value = !0;
3386
- const { data: S } = await s.get(g.value);
3387
- i("fetch:success", S);
3388
- } catch (S) {
3389
- const w = l(S);
3390
- p.value = w.startsWith("code") ? a("baseForm.errors.edit") : w, u.value = !0, i("fetch:error", S);
3405
+ const { data: x } = await s.get(h.value);
3406
+ i("fetch:success", x);
3407
+ } catch (x) {
3408
+ const f = l(x);
3409
+ p.value = f.startsWith("code") ? a("baseForm.errors.edit") : f, u.value = !0, i("fetch:error", x);
3391
3410
  } finally {
3392
3411
  c.value = !1;
3393
3412
  }
3394
3413
  }), t({
3395
- viewConfig: k,
3396
- formCancel: x,
3414
+ viewConfig: b,
3415
+ formCancel: A,
3397
3416
  formSubmit: B
3398
- }), (S, w) => {
3399
- const F = P("KSkeleton"), f = P("KEmptyState"), v = P("KAlert"), b = P("KButton"), V = P("KTabs"), J = P("KSlideout");
3400
- return h(), M(Pe(e.wrapperComponent), { class: "kong-ui-entity-base-form" }, {
3401
- default: _(() => [
3402
- c.value ? (h(), M(F, {
3417
+ }), (x, f) => {
3418
+ const v = U("KSkeleton"), C = U("KEmptyState"), Y = U("KAlert"), G = U("KButton"), E = U("KTabs"), O = U("KSlideout");
3419
+ return g(), K(je(e.wrapperComponent), { class: "kong-ui-entity-base-form" }, {
3420
+ default: w(() => [
3421
+ c.value ? (g(), K(v, {
3403
3422
  key: 0,
3404
3423
  type: "form"
3405
- })) : u.value ? (h(), M(f, {
3424
+ })) : u.value ? (g(), K(C, {
3406
3425
  key: 1,
3407
- "action-button-text": A(a)("baseForm.actions.back"),
3426
+ "action-button-text": _(a)("baseForm.actions.back"),
3408
3427
  "data-testid": "form-fetch-error",
3409
3428
  "icon-variant": "error",
3410
- onClickAction: C
3429
+ onClickAction: k
3411
3430
  }, {
3412
- default: _(() => [
3413
- L("h3", null, O(p.value), 1)
3431
+ default: w(() => [
3432
+ L("h3", null, I(p.value), 1)
3414
3433
  ]),
3415
3434
  _: 1
3416
- }, 8, ["action-button-text"])) : (h(), T("form", {
3435
+ }, 8, ["action-button-text"])) : (g(), $("form", {
3417
3436
  key: 2,
3418
3437
  "data-testid": "form-content",
3419
3438
  novalidate: r.noValidate,
3420
- onReset: Re(x, ["prevent"]),
3439
+ onReset: Re(A, ["prevent"]),
3421
3440
  onSubmit: Re(B, ["prevent"])
3422
3441
  }, [
3423
- U(S.$slots, "default", {}, void 0, !0),
3424
- e.errorMessage ? (h(), M(v, {
3442
+ j(x.$slots, "default", {}, void 0, !0),
3443
+ e.errorMessage ? (g(), K(Y, {
3425
3444
  key: 0,
3426
3445
  appearance: "danger",
3427
3446
  "data-testid": "form-error",
3428
3447
  message: e.errorMessage
3429
- }, null, 8, ["message"])) : j("", !0),
3430
- e.hideActions ? j("", !0) : (h(), M(Wt, {
3448
+ }, null, 8, ["message"])) : D("", !0),
3449
+ e.hideActions ? D("", !0) : (g(), K(Wt, {
3431
3450
  key: 1,
3432
3451
  disabled: !e.actionTeleportTarget,
3433
3452
  to: e.actionTeleportTarget
@@ -3436,38 +3455,38 @@ ${l.value}
3436
3455
  class: fe(["form-actions", { "form-actions-reverted": e.alignActionButtonToLeft }]),
3437
3456
  "data-testid": "form-actions"
3438
3457
  }, [
3439
- U(S.$slots, "form-actions", {}, () => [
3440
- K(b, {
3458
+ j(x.$slots, "form-actions", {}, () => [
3459
+ R(G, {
3441
3460
  appearance: "tertiary",
3442
3461
  "data-testid": `${e.entityType}-${d.value ? "edit" : "create"}-form-view-configuration`,
3443
- onClick: w[0] || (w[0] = (E) => k())
3462
+ onClick: f[0] || (f[0] = (V) => b())
3444
3463
  }, {
3445
- default: _(() => [
3446
- q(O(A(a)("baseForm.actions.viewConfiguration")), 1)
3464
+ default: w(() => [
3465
+ q(I(y.value ? _(a)("baseForm.actions.hideConfiguration") : _(a)("baseForm.actions.viewConfiguration")), 1)
3447
3466
  ]),
3448
3467
  _: 1
3449
3468
  }, 8, ["data-testid"]),
3450
- K(b, {
3469
+ R(G, {
3451
3470
  appearance: "secondary",
3452
3471
  "data-testid": `${e.entityType}-${d.value ? "edit" : "create"}-form-cancel`,
3453
3472
  disabled: e.isReadonly,
3454
3473
  type: "reset",
3455
- onClick: w[1] || (w[1] = (E) => !!e.actionTeleportTarget && x())
3474
+ onClick: f[1] || (f[1] = (V) => !!e.actionTeleportTarget && A())
3456
3475
  }, {
3457
- default: _(() => [
3458
- q(O(e.cancelButtonText ?? A(a)("baseForm.actions.cancel")), 1)
3476
+ default: w(() => [
3477
+ q(I(e.cancelButtonText ?? _(a)("baseForm.actions.cancel")), 1)
3459
3478
  ]),
3460
3479
  _: 1
3461
3480
  }, 8, ["data-testid", "disabled"]),
3462
- K(b, {
3481
+ R(G, {
3463
3482
  appearance: "primary",
3464
3483
  "data-testid": `${e.entityType}-${d.value ? "edit" : "create"}-form-submit`,
3465
3484
  disabled: m.value,
3466
3485
  type: "submit",
3467
- onClick: w[2] || (w[2] = (E) => !!e.actionTeleportTarget && B())
3486
+ onClick: f[2] || (f[2] = (V) => !!e.actionTeleportTarget && B())
3468
3487
  }, {
3469
- default: _(() => [
3470
- q(O(e.saveButtonText ?? A(a)("baseForm.actions.save")), 1)
3488
+ default: w(() => [
3489
+ q(I(e.saveButtonText ?? _(a)("baseForm.actions.save")), 1)
3471
3490
  ]),
3472
3491
  _: 1
3473
3492
  }, 8, ["data-testid", "disabled"])
@@ -3475,61 +3494,68 @@ ${l.value}
3475
3494
  ], 2)
3476
3495
  ], 8, ["disabled", "to"]))
3477
3496
  ], 40, ul)),
3478
- K(J, {
3497
+ R(O, {
3479
3498
  "close-on-blur": !1,
3480
3499
  "data-testid": "form-view-configuration-slideout",
3481
3500
  "has-overlay": !1,
3482
3501
  "offset-top": e.slidoutTopOffset,
3483
- title: A(a)("baseForm.configuration.title"),
3502
+ title: _(a)("baseForm.configuration.title"),
3484
3503
  visible: y.value,
3485
- onClose: w[4] || (w[4] = (E) => k())
3504
+ onClose: f[4] || (f[4] = (V) => b())
3486
3505
  }, {
3487
- default: _(() => [
3488
- L("div", null, O(A(a)("baseForm.configuration.message")), 1),
3489
- K(V, {
3506
+ default: w(() => [
3507
+ L("div", null, [
3508
+ j(x.$slots, "configuration-slideout-message", {}, () => [
3509
+ q(I(_(a)("baseForm.configuration.message")), 1)
3510
+ ], !0)
3511
+ ]),
3512
+ R(E, {
3490
3513
  "data-testid": "form-view-configuration-slideout-tabs",
3491
- tabs: D.value,
3492
- onChange: w[3] || (w[3] = (E) => i("codeBlockTabChange", E.replace("#", "")))
3514
+ tabs: P.value,
3515
+ onChange: f[3] || (f[3] = (V) => i("codeBlockTabChange", V.replace("#", "")))
3493
3516
  }, {
3494
- json: _(() => [
3495
- K(rn, {
3517
+ json: w(() => [
3518
+ R(rn, {
3496
3519
  config: e.config,
3497
3520
  "entity-record": r.formFields,
3498
- "fetcher-url": g.value,
3521
+ "fetcher-url": h.value,
3499
3522
  "request-method": r.editId ? "put" : "post"
3500
3523
  }, null, 8, ["config", "entity-record", "fetcher-url", "request-method"])
3501
3524
  ]),
3502
- yaml: _(() => [
3503
- K(Jn, {
3525
+ yaml: w(() => [
3526
+ R(Jn, {
3504
3527
  "entity-record": r.formFields
3505
3528
  }, null, 8, ["entity-record"])
3506
3529
  ]),
3507
- terraform: _(() => [
3508
- K(Gn, {
3530
+ terraform: w(() => [
3531
+ R(Gn, {
3509
3532
  "entity-record": r.formFields,
3510
3533
  "entity-type": e.entityType,
3511
3534
  "sub-entity-type": e.subEntityType
3512
3535
  }, null, 8, ["entity-record", "entity-type", "sub-entity-type"])
3513
3536
  ]),
3514
- deck: _(() => [
3515
- K(cl, {
3537
+ deck: w(() => [
3538
+ R(cl, {
3539
+ app: e.config.app,
3516
3540
  "control-plane-name": e.config.app === "konnect" ? e.config.controlPlaneName : void 0,
3517
3541
  "entity-record": r.formFields,
3518
3542
  "entity-type": e.entityType,
3519
- "geo-api-server-url": e.config.app === "konnect" ? e.config.geoApiServerUrl : void 0
3520
- }, null, 8, ["control-plane-name", "entity-record", "entity-type", "geo-api-server-url"])
3543
+ "geo-api-server-url": e.config.app === "konnect" ? e.config.geoApiServerUrl : void 0,
3544
+ "kong-admin-api-url": e.config.app === "kongManager" ? e.config.apiBaseUrl : void 0,
3545
+ workspace: e.config.app === "kongManager" ? e.config.workspace : void 0
3546
+ }, null, 8, ["app", "control-plane-name", "entity-record", "entity-type", "geo-api-server-url", "kong-admin-api-url", "workspace"])
3521
3547
  ]),
3522
3548
  _: 1
3523
3549
  }, 8, ["tabs"])
3524
3550
  ]),
3525
- _: 1
3551
+ _: 3
3526
3552
  }, 8, ["offset-top", "title", "visible"])
3527
3553
  ]),
3528
3554
  _: 3
3529
3555
  });
3530
3556
  };
3531
3557
  }
3532
- }), Os = /* @__PURE__ */ le(dl, [["__scopeId", "data-v-23f330b9"]]), fl = ["data-truncate"], pl = /* @__PURE__ */ z({
3558
+ }), Os = /* @__PURE__ */ le(dl, [["__scopeId", "data-v-7cbcaad8"]]), fl = ["data-truncate"], pl = /* @__PURE__ */ z({
3533
3559
  __name: "EntityBaseTableCell",
3534
3560
  props: {
3535
3561
  keyName: {
@@ -3546,73 +3572,73 @@ ${l.value}
3546
3572
  }
3547
3573
  },
3548
3574
  setup(e) {
3549
- const t = e, n = $(() => {
3550
- var k;
3551
- return ((k = t.rowEl) == null ? void 0 : k.querySelector(`[data-testid="${t.keyName}"]`)) || null;
3552
- }), i = $(() => {
3553
- var k;
3554
- return ((k = n.value) == null ? void 0 : k.querySelector('[data-truncate="true"]')) || null;
3555
- }), r = $(() => {
3556
- var C, x;
3557
- const k = (C = t.rowEl) == null ? void 0 : C.querySelectorAll("td");
3558
- return k ? ((x = k[0]) == null ? void 0 : x.getAttribute("data-testid")) === t.keyName : !0;
3559
- }), o = $(() => r.value || t.tooltip);
3575
+ const t = e, n = S(() => {
3576
+ var b;
3577
+ return ((b = t.rowEl) == null ? void 0 : b.querySelector(`[data-testid="${t.keyName}"]`)) || null;
3578
+ }), i = S(() => {
3579
+ var b;
3580
+ return ((b = n.value) == null ? void 0 : b.querySelector('[data-truncate="true"]')) || null;
3581
+ }), r = S(() => {
3582
+ var k, A;
3583
+ const b = (k = t.rowEl) == null ? void 0 : k.querySelectorAll("td");
3584
+ return b ? ((A = b[0]) == null ? void 0 : A.getAttribute("data-testid")) === t.keyName : !0;
3585
+ }), o = S(() => r.value || t.tooltip);
3560
3586
  let a;
3561
3587
  const l = () => {
3562
3588
  a && (a.disconnect(), a = void 0);
3563
3589
  }, s = () => {
3564
- var C, x, B;
3565
- let k = ((C = n.value) == null ? void 0 : C.clientWidth) || 0;
3590
+ var k, A, B;
3591
+ let b = ((k = n.value) == null ? void 0 : k.clientWidth) || 0;
3566
3592
  if (n.value && "getComputedStyle" in window) {
3567
- const D = window.getComputedStyle(n.value);
3568
- k -= (parseFloat(D.paddingLeft) || 0) + (parseFloat(D.paddingRight) || 0);
3593
+ const P = window.getComputedStyle(n.value);
3594
+ b -= (parseFloat(P.paddingLeft) || 0) + (parseFloat(P.paddingRight) || 0);
3569
3595
  }
3570
- d.value = ((x = i.value) == null ? void 0 : x.getBoundingClientRect().width) || 0, u.value = k, p.value = ((B = c.value) == null ? void 0 : B.innerText) || "";
3571
- }, c = N({}), d = N(0), u = N(0), p = N(""), m = $(() => [i.value, n.value]), y = be(
3596
+ d.value = ((A = i.value) == null ? void 0 : A.getBoundingClientRect().width) || 0, u.value = b, p.value = ((B = c.value) == null ? void 0 : B.innerText) || "";
3597
+ }, c = N({}), d = N(0), u = N(0), p = N(""), m = S(() => [i.value, n.value]), y = be(
3572
3598
  m,
3573
- (k) => {
3599
+ (b) => {
3574
3600
  if (o.value && (l(), "ResizeObserver" in window && window)) {
3575
- a = new ResizeObserver((C) => {
3601
+ a = new ResizeObserver((k) => {
3576
3602
  window.requestAnimationFrame(() => {
3577
- !Array.isArray(C) || !C.length || s();
3603
+ !Array.isArray(k) || !k.length || s();
3578
3604
  });
3579
3605
  });
3580
- for (const C of k)
3581
- C && a.observe(C);
3606
+ for (const k of b)
3607
+ k && a.observe(k);
3582
3608
  }
3583
3609
  },
3584
3610
  { immediate: !0, flush: "post", deep: !0 }
3585
- ), g = $(() => o.value ? d.value > u.value : !1);
3611
+ ), h = S(() => o.value ? d.value > u.value : !1);
3586
3612
  return it(() => {
3587
3613
  s();
3588
3614
  }), ei(() => {
3589
3615
  y();
3590
- }), (k, C) => {
3591
- const x = P("KTooltip");
3592
- return h(), T("span", {
3616
+ }), (b, k) => {
3617
+ const A = U("KTooltip");
3618
+ return g(), $("span", {
3593
3619
  ref_key: "contentRef",
3594
3620
  ref: c,
3595
3621
  class: "content-wrapper"
3596
3622
  }, [
3597
- o.value ? (h(), T("span", {
3623
+ o.value ? (g(), $("span", {
3598
3624
  key: 0,
3599
3625
  "data-truncate": o.value || void 0
3600
3626
  }, [
3601
- K(x, {
3627
+ R(A, {
3602
3628
  "max-width": "300",
3603
3629
  placement: "bottom-start",
3604
- text: g.value ? p.value : ""
3630
+ text: h.value ? p.value : ""
3605
3631
  }, {
3606
- default: _(() => [
3607
- U(k.$slots, "default", {}, void 0, !0)
3632
+ default: w(() => [
3633
+ j(b.$slots, "default", {}, void 0, !0)
3608
3634
  ]),
3609
3635
  _: 3
3610
3636
  }, 8, ["text"])
3611
- ], 8, fl)) : U(k.$slots, "default", { key: 1 }, void 0, !0)
3637
+ ], 8, fl)) : j(b.$slots, "default", { key: 1 }, void 0, !0)
3612
3638
  ], 512);
3613
3639
  };
3614
3640
  }
3615
- }), ml = /* @__PURE__ */ le(pl, [["__scopeId", "data-v-a3a65cac"]]), hl = { class: "toolbar-container" }, gl = {
3641
+ }), ml = /* @__PURE__ */ le(pl, [["__scopeId", "data-v-a3a65cac"]]), gl = { class: "toolbar-container" }, hl = {
3616
3642
  key: 0,
3617
3643
  class: "toolbar-button-container"
3618
3644
  }, yl = {
@@ -3763,7 +3789,7 @@ ${l.value}
3763
3789
  },
3764
3790
  emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked", "state"],
3765
3791
  setup(e, { emit: t }) {
3766
- const n = e, i = t, { i18n: { t: r } } = W.useI18n(), o = $(() => {
3792
+ const n = e, i = t, { i18n: { t: r } } = J.useI18n(), o = S(() => {
3767
3793
  var f, v;
3768
3794
  return typeof n.errorMessage == "string" ? {
3769
3795
  hasError: !!n.errorMessage,
@@ -3774,15 +3800,15 @@ ${l.value}
3774
3800
  title: (f = n.errorMessage) == null ? void 0 : f.title,
3775
3801
  message: (v = n.errorMessage) == null ? void 0 : v.message
3776
3802
  };
3777
- }), a = $(() => n.cacheIdentifier || n.preferencesStorageKey), l = $(() => {
3803
+ }), a = S(() => n.cacheIdentifier || n.preferencesStorageKey), l = S(() => {
3778
3804
  const f = [];
3779
- return Object.keys(n.tableHeaders).forEach((b) => {
3780
- const V = n.tableHeaders[b];
3805
+ return Object.keys(n.tableHeaders).forEach((C) => {
3806
+ const Y = n.tableHeaders[C];
3781
3807
  f.push({
3782
- label: V.label ?? b,
3783
- key: b,
3784
- sortable: V.sortable ?? !1,
3785
- hidable: V.hidable ?? !0
3808
+ label: Y.label ?? C,
3809
+ key: C,
3810
+ sortable: Y.sortable ?? !1,
3811
+ hidable: Y.hidable ?? !0
3786
3812
  });
3787
3813
  }), n.enableEntityActions && f.push({
3788
3814
  key: "actions",
@@ -3806,49 +3832,49 @@ ${l.value}
3806
3832
  textOverflow: "ellipsis"
3807
3833
  }), v;
3808
3834
  }, p = (f) => {
3809
- x(f), i("state", f);
3835
+ A(f), i("state", f);
3810
3836
  }, m = () => {
3811
3837
  i("empty-state-cta-clicked"), y();
3812
3838
  }, y = () => {
3813
3839
  i("clear-search-input");
3814
- }, g = $(() => n.disableRowClick ? void 0 : (f, v) => {
3840
+ }, h = S(() => n.disableRowClick ? void 0 : (f, v) => {
3815
3841
  i("click:row", v);
3816
- }), k = (f) => {
3842
+ }), b = (f) => {
3817
3843
  i("sort", f);
3818
- }, { hideTableToolbar: C, handleStateChange: x } = W.useTableState(() => n.query), { setTablePreferences: B, getTablePreferences: D } = _i(), X = N(D(a.value, n.defaultTablePreferences)), S = $(() => {
3819
- const f = D(a.value);
3844
+ }, { hideTableToolbar: k, handleStateChange: A } = J.useTableState(() => n.query), { setTablePreferences: B, getTablePreferences: P } = _i(), ee = N(P(a.value, n.defaultTablePreferences)), M = S(() => {
3845
+ const f = P(a.value);
3820
3846
  return {
3821
3847
  ...n.initialFetcherParams,
3822
3848
  ...f
3823
3849
  };
3824
- }), w = (f) => {
3825
- X.value = f, l.value.forEach((v) => {
3826
- !("hidable" in v) || !X.value.columnVisibility || v.hidable === !1 && (X.value.columnVisibility[v.key] = !0);
3850
+ }), F = (f) => {
3851
+ ee.value = f, l.value.forEach((v) => {
3852
+ !("hidable" in v) || !ee.value.columnVisibility || v.hidable === !1 && (ee.value.columnVisibility[v.key] = !0);
3827
3853
  }), a.value && B(a.value, f);
3828
- }, F = $(() => ({
3854
+ }, x = S(() => ({
3829
3855
  disablePageJump: n.disablePaginationPageJump,
3830
3856
  offset: n.paginationType === "offset",
3831
3857
  ...n.paginationAttributes
3832
3858
  }));
3833
3859
  return (f, v) => {
3834
- const b = P("KTableData"), V = P("KCard");
3835
- return h(), M(V, {
3860
+ const C = U("KTableData"), Y = U("KCard");
3861
+ return g(), K(Y, {
3836
3862
  class: "kong-ui-entity-base-table",
3837
3863
  title: e.title,
3838
3864
  "title-tag": e.titleTag
3839
3865
  }, {
3840
- default: _(() => [
3841
- K(b, {
3866
+ default: w(() => [
3867
+ R(C, {
3842
3868
  ref_key: "tableRefs",
3843
3869
  ref: c,
3844
3870
  "cache-identifier": a.value,
3845
3871
  "cell-attrs": u,
3846
3872
  "client-sort": e.enableClientSort,
3847
- "empty-state-action-message": e.query ? A(r)("baseTable.emptyState.noSearchResultsCtaText") : e.emptyStateOptions.ctaText,
3873
+ "empty-state-action-message": e.query ? _(r)("baseTable.emptyState.noSearchResultsCtaText") : e.emptyStateOptions.ctaText,
3848
3874
  "empty-state-action-route": e.query ? void 0 : e.emptyStateOptions.ctaPath,
3849
3875
  "empty-state-icon-variant": e.query ? "search" : "kong",
3850
- "empty-state-message": e.query ? A(r)("baseTable.emptyState.noSearchResultsMessage") : e.emptyStateOptions.message,
3851
- "empty-state-title": e.query ? A(r)("baseTable.emptyState.noSearchResultsTitle") : e.emptyStateOptions.title,
3876
+ "empty-state-message": e.query ? _(r)("baseTable.emptyState.noSearchResultsMessage") : e.emptyStateOptions.message,
3877
+ "empty-state-title": e.query ? _(r)("baseTable.emptyState.noSearchResultsTitle") : e.emptyStateOptions.title,
3852
3878
  error: o.value.hasError,
3853
3879
  "error-state-message": o.value.message,
3854
3880
  "error-state-title": o.value.title,
@@ -3857,58 +3883,58 @@ ${l.value}
3857
3883
  headers: l.value,
3858
3884
  "hide-pagination": e.hidePagination,
3859
3885
  "hide-pagination-when-optional": e.hidePaginationWhenOptional,
3860
- "hide-toolbar": e.hideToolbar ?? A(C),
3861
- "initial-fetcher-params": S.value,
3886
+ "hide-toolbar": e.hideToolbar ?? _(k),
3887
+ "initial-fetcher-params": M.value,
3862
3888
  loading: e.isLoading,
3863
- "pagination-attributes": F.value,
3889
+ "pagination-attributes": x.value,
3864
3890
  "resize-columns": "",
3865
3891
  "row-attrs": s,
3866
3892
  "row-key": e.rowKey,
3867
3893
  "search-input": e.query,
3868
3894
  "sort-handler-function": e.enableClientSort ? e.sortHandlerFunction : void 0,
3869
3895
  sortable: !e.disableSorting,
3870
- "table-preferences": X.value,
3896
+ "table-preferences": ee.value,
3871
3897
  onEmptyStateActionClick: m,
3872
- "onRow:click": g.value,
3873
- onSort: v[0] || (v[0] = (J) => k(J)),
3898
+ "onRow:click": h.value,
3899
+ onSort: v[0] || (v[0] = (G) => b(G)),
3874
3900
  onState: p,
3875
- "onUpdate:tablePreferences": w
3876
- }, $e({
3877
- toolbar: _(() => [
3878
- L("div", hl, [
3879
- U(f.$slots, "toolbar-filter", {}, void 0, !0),
3880
- f.$slots["toolbar-button"] ? (h(), T("div", gl, [
3881
- U(f.$slots, "toolbar-button", {}, void 0, !0)
3882
- ])) : j("", !0)
3901
+ "onUpdate:tablePreferences": F
3902
+ }, ke({
3903
+ toolbar: w(() => [
3904
+ L("div", gl, [
3905
+ j(f.$slots, "toolbar-filter", {}, void 0, !0),
3906
+ f.$slots["toolbar-button"] ? (g(), $("div", hl, [
3907
+ j(f.$slots, "toolbar-button", {}, void 0, !0)
3908
+ ])) : D("", !0)
3883
3909
  ])
3884
3910
  ]),
3885
- "action-items": _(({ row: J }) => [
3886
- U(f.$slots, "actions", { row: J }, void 0, !0)
3911
+ "action-items": w(({ row: G }) => [
3912
+ j(f.$slots, "actions", { row: G }, void 0, !0)
3887
3913
  ]),
3888
3914
  _: 2
3889
3915
  }, [
3890
3916
  f.$slots["empty-state"] ? {
3891
3917
  name: "empty-state",
3892
- fn: _(() => [
3893
- U(f.$slots, "empty-state", {}, void 0, !0)
3918
+ fn: w(() => [
3919
+ j(f.$slots, "empty-state", {}, void 0, !0)
3894
3920
  ]),
3895
3921
  key: "0"
3896
3922
  } : void 0,
3897
- ce(e.tableHeaders, (J, E) => ({
3923
+ ce(e.tableHeaders, (G, E) => ({
3898
3924
  name: E,
3899
- fn: _(({ row: R, rowValue: G }) => [
3900
- K(ml, {
3925
+ fn: w(({ row: O, rowValue: V }) => [
3926
+ R(ml, {
3901
3927
  "key-name": String(E),
3902
- "row-el": d(R),
3903
- tooltip: J.tooltip
3928
+ "row-el": d(O),
3929
+ tooltip: G.tooltip
3904
3930
  }, {
3905
- default: _(() => [
3906
- U(f.$slots, E, {
3907
- row: R,
3931
+ default: w(() => [
3932
+ j(f.$slots, E, {
3933
+ row: O,
3908
3934
  rowKey: e.rowKey,
3909
- rowValue: G
3935
+ rowValue: V
3910
3936
  }, () => [
3911
- q(O(G), 1)
3937
+ q(I(V), 1)
3912
3938
  ], !0)
3913
3939
  ]),
3914
3940
  _: 2
@@ -3917,15 +3943,15 @@ ${l.value}
3917
3943
  })),
3918
3944
  e.query ? void 0 : {
3919
3945
  name: "empty-state-action-icon",
3920
- fn: _(() => [
3921
- K(A(Gt))
3946
+ fn: w(() => [
3947
+ R(_(Gt))
3922
3948
  ]),
3923
3949
  key: "1"
3924
3950
  }
3925
3951
  ]), 1032, ["cache-identifier", "client-sort", "empty-state-action-message", "empty-state-action-route", "empty-state-icon-variant", "empty-state-message", "empty-state-title", "error", "error-state-message", "error-state-title", "fetcher", "fetcher-cache-key", "headers", "hide-pagination", "hide-pagination-when-optional", "hide-toolbar", "initial-fetcher-params", "loading", "pagination-attributes", "row-key", "search-input", "sort-handler-function", "sortable", "table-preferences", "onRow:click"]),
3926
- f.$slots["outside-actions"] && A(C) ? (h(), T("div", yl, [
3927
- U(f.$slots, "outside-actions", {}, void 0, !0)
3928
- ])) : j("", !0)
3952
+ f.$slots["outside-actions"] && _(k) ? (g(), $("div", yl, [
3953
+ j(f.$slots, "outside-actions", {}, void 0, !0)
3954
+ ])) : D("", !0)
3929
3955
  ]),
3930
3956
  _: 3
3931
3957
  }, 8, ["title", "title-tag"]);
@@ -3976,14 +4002,14 @@ ${l.value}
3976
4002
  },
3977
4003
  emits: ["cancel", "proceed"],
3978
4004
  setup(e, { emit: t }) {
3979
- const { i18nT: n } = W.useI18n(), i = e, r = t, o = $(() => i.needConfirm ? i.entityName : ""), a = () => {
4005
+ const { i18nT: n } = J.useI18n(), i = e, r = t, o = S(() => i.needConfirm ? i.entityName : ""), a = () => {
3980
4006
  r("cancel");
3981
4007
  }, l = () => {
3982
4008
  r("proceed");
3983
4009
  };
3984
4010
  return (s, c) => {
3985
- const d = P("KAlert"), u = P("KPrompt");
3986
- return h(), M(u, {
4011
+ const d = U("KAlert"), u = U("KPrompt");
4012
+ return g(), K(u, {
3987
4013
  "action-button-appearance": "danger",
3988
4014
  "action-button-disabled": e.actionPending,
3989
4015
  "action-button-text": "Yes, delete",
@@ -3994,38 +4020,38 @@ ${l.value}
3994
4020
  onCancel: a,
3995
4021
  onProceed: l
3996
4022
  }, {
3997
- default: _(() => [
3998
- e.error ? (h(), T("div", bl, [
3999
- K(d, { appearance: "danger" }, {
4000
- default: _(() => [
4001
- q(O(e.error), 1)
4023
+ default: w(() => [
4024
+ e.error ? (g(), $("div", bl, [
4025
+ R(d, { appearance: "danger" }, {
4026
+ default: w(() => [
4027
+ q(I(e.error), 1)
4002
4028
  ]),
4003
4029
  _: 1
4004
4030
  })
4005
- ])) : j("", !0),
4006
- K(A(n), {
4031
+ ])) : D("", !0),
4032
+ R(_(n), {
4007
4033
  class: "message",
4008
4034
  keypath: i.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
4009
4035
  tag: "p"
4010
- }, $e({
4011
- entityType: _(() => [
4012
- q(O(i.entityType), 1)
4036
+ }, ke({
4037
+ entityType: w(() => [
4038
+ q(I(i.entityType), 1)
4013
4039
  ]),
4014
4040
  _: 2
4015
4041
  }, [
4016
4042
  i.entityName ? {
4017
4043
  name: "entityName",
4018
- fn: _(() => [
4019
- L("strong", null, O(i.entityName), 1)
4044
+ fn: w(() => [
4045
+ L("strong", null, I(i.entityName), 1)
4020
4046
  ]),
4021
4047
  key: "0"
4022
4048
  } : void 0
4023
4049
  ]), 1032, ["keypath"]),
4024
- i.description || s.$slots.description ? (h(), T("div", kl, [
4025
- U(s.$slots, "description", {}, () => [
4026
- L("p", null, O(i.description), 1)
4050
+ i.description || s.$slots.description ? (g(), $("div", kl, [
4051
+ j(s.$slots, "description", {}, () => [
4052
+ L("p", null, I(i.description), 1)
4027
4053
  ], !0)
4028
- ])) : j("", !0)
4054
+ ])) : D("", !0)
4029
4055
  ]),
4030
4056
  _: 3
4031
4057
  }, 8, ["action-button-disabled", "confirmation-text", "title", "visible"]);
@@ -4045,7 +4071,7 @@ ${l.value}
4045
4071
  width: "20",
4046
4072
  x: "0",
4047
4073
  y: "0"
4048
- }, _l = ["fill"], wl = { mask: "url(#mask0_180_20349)" }, Sl = ["fill"], Pt = /* @__PURE__ */ z({
4074
+ }, _l = ["fill"], wl = { mask: "url(#mask0_180_20349)" }, Sl = ["fill"], jt = /* @__PURE__ */ z({
4049
4075
  __name: "IconFilter",
4050
4076
  props: {
4051
4077
  color: {
@@ -4054,7 +4080,7 @@ ${l.value}
4054
4080
  }
4055
4081
  },
4056
4082
  setup(e) {
4057
- return (t, n) => (h(), T("svg", xl, [
4083
+ return (t, n) => (g(), $("svg", xl, [
4058
4084
  L("mask", Al, [
4059
4085
  L("rect", {
4060
4086
  fill: e.color,
@@ -4093,62 +4119,62 @@ ${l.value}
4093
4119
  },
4094
4120
  emits: ["update:modelValue"],
4095
4121
  setup(e, { emit: t }) {
4096
- const { i18n: { t: n } } = W.useI18n(), i = e, r = t, o = N(!1), a = N({}), l = N(/* @__PURE__ */ new Set()), s = $(() => {
4097
- const S = [];
4098
- return new URLSearchParams(i.modelValue).forEach((w, F) => {
4099
- w !== "" && S.push(F);
4100
- }), S;
4101
- }), c = $(() => {
4102
- const S = i.config.fields;
4103
- return Object.keys(S).filter((w) => {
4104
- var F;
4105
- return (F = S == null ? void 0 : S[w]) == null ? void 0 : F.searchable;
4106
- }).map((w) => ({
4107
- label: S[w].label || w,
4108
- value: w,
4122
+ const { i18n: { t: n } } = J.useI18n(), i = e, r = t, o = N(!1), a = N({}), l = N(/* @__PURE__ */ new Set()), s = S(() => {
4123
+ const M = [];
4124
+ return new URLSearchParams(i.modelValue).forEach((F, x) => {
4125
+ F !== "" && M.push(x);
4126
+ }), M;
4127
+ }), c = S(() => {
4128
+ const M = i.config.fields;
4129
+ return Object.keys(M).filter((F) => {
4130
+ var x;
4131
+ return (x = M == null ? void 0 : M[F]) == null ? void 0 : x.searchable;
4132
+ }).map((F) => ({
4133
+ label: M[F].label || F,
4134
+ value: F,
4109
4135
  expanded: !1
4110
4136
  }));
4111
4137
  });
4112
- be(() => i.modelValue, (S) => {
4113
- a.value = {}, new URLSearchParams(S).forEach((w, F) => {
4114
- a.value[F] = w;
4138
+ be(() => i.modelValue, (M) => {
4139
+ a.value = {}, new URLSearchParams(M).forEach((F, x) => {
4140
+ a.value[x] = F;
4115
4141
  });
4116
4142
  });
4117
4143
  const d = () => {
4118
4144
  o.value = !o.value;
4119
- }, u = (S) => {
4120
- l.value.has(S) ? l.value.delete(S) : l.value.add(S);
4121
- }, p = (S) => {
4122
- r("update:modelValue", S);
4145
+ }, u = (M) => {
4146
+ l.value.has(M) ? l.value.delete(M) : l.value.add(M);
4147
+ }, p = (M) => {
4148
+ r("update:modelValue", M);
4123
4149
  }, m = () => {
4124
4150
  p("");
4125
- }, y = (S) => `filter-${S}`, g = (S) => {
4126
- var w, F;
4127
- return (((F = (w = i.config.schema) == null ? void 0 : w[S]) == null ? void 0 : F.values) ?? []).map((f) => typeof f == "string" ? { value: f, label: f } : f);
4128
- }, k = (S) => {
4129
- var w, F;
4130
- return ((F = (w = i.config.schema) == null ? void 0 : w[S]) == null ? void 0 : F.type) ?? "text";
4131
- }, C = (S) => {
4151
+ }, y = (M) => `filter-${M}`, h = (M) => {
4152
+ var F, x;
4153
+ return (((x = (F = i.config.schema) == null ? void 0 : F[M]) == null ? void 0 : x.values) ?? []).map((f) => typeof f == "string" ? { value: f, label: f } : f);
4154
+ }, b = (M) => {
4155
+ var F, x;
4156
+ return ((x = (F = i.config.schema) == null ? void 0 : F[M]) == null ? void 0 : x.type) ?? "text";
4157
+ }, k = (M) => {
4132
4158
  a.value = {
4133
4159
  ...a.value,
4134
- [S]: ""
4160
+ [M]: ""
4135
4161
  }, B();
4136
- }, x = () => {
4162
+ }, A = () => {
4137
4163
  a.value = {}, B(!0);
4138
- }, B = (S = !1) => {
4139
- const w = Object.keys(a.value).reduce((F, f) => (a.value[f] && (F[f] = `${a.value[f]}`), F), {});
4140
- S && (o.value = !1), r("update:modelValue", new URLSearchParams(w).toString());
4141
- }, D = (S) => {
4142
- var w, F;
4143
- return !!((F = (w = i.config.schema) == null ? void 0 : w[S]) != null && F.filterFunction);
4144
- }, X = (S, w) => {
4164
+ }, B = (M = !1) => {
4165
+ const F = Object.keys(a.value).reduce((x, f) => (a.value[f] && (x[f] = `${a.value[f]}`), x), {});
4166
+ M && (o.value = !1), r("update:modelValue", new URLSearchParams(F).toString());
4167
+ }, P = (M) => {
4168
+ var F, x;
4169
+ return !!((x = (F = i.config.schema) == null ? void 0 : F[M]) != null && x.filterFunction);
4170
+ }, ee = (M, F) => {
4145
4171
  var f;
4146
- const F = (f = i.config.schema) == null ? void 0 : f[S];
4147
- return (F == null ? void 0 : F.filterFunction) === void 0 ? !0 : F.filterFunction(w);
4172
+ const x = (f = i.config.schema) == null ? void 0 : f[M];
4173
+ return (x == null ? void 0 : x.filterFunction) === void 0 ? !0 : x.filterFunction(F);
4148
4174
  };
4149
- return (S, w) => {
4150
- const F = P("KInput"), f = P("KButton"), v = P("KSelect");
4151
- return e.config.isExactMatch ? (h(), M(F, {
4175
+ return (M, F) => {
4176
+ const x = U("KInput"), f = U("KButton"), v = U("KSelect");
4177
+ return e.config.isExactMatch ? (g(), K(x, {
4152
4178
  key: 0,
4153
4179
  autocomplete: "off",
4154
4180
  class: "kong-ui-entity-filter-input",
@@ -4157,130 +4183,130 @@ ${l.value}
4157
4183
  placeholder: e.config.placeholder,
4158
4184
  "onUpdate:modelValue": p
4159
4185
  }, {
4160
- before: _(() => [
4161
- K(Pt)
4186
+ before: w(() => [
4187
+ R(jt)
4162
4188
  ]),
4163
- after: _(() => [
4164
- ke(K(A(fi), {
4189
+ after: w(() => [
4190
+ Ce(R(_(fi), {
4165
4191
  class: "kong-ui-entity-filter-clear",
4166
4192
  role: "button",
4167
4193
  tabindex: "0",
4168
4194
  onClick: m
4169
4195
  }, null, 512), [
4170
- [Ce, e.modelValue !== ""]
4196
+ [xe, e.modelValue !== ""]
4171
4197
  ])
4172
4198
  ]),
4173
4199
  _: 1
4174
- }, 8, ["model-value", "placeholder"])) : (h(), T("div", $l, [
4175
- K(f, {
4200
+ }, 8, ["model-value", "placeholder"])) : (g(), $("div", $l, [
4201
+ R(f, {
4176
4202
  appearance: "tertiary",
4177
4203
  "data-testid": "filter-button",
4178
4204
  onClick: d
4179
4205
  }, {
4180
- default: _(() => [
4181
- K(Pt),
4182
- q(" " + O(A(n)("filter.filterButtonText")) + " " + O(s.value.length > 0 ? `(${s.value.length})` : ""), 1)
4206
+ default: w(() => [
4207
+ R(jt),
4208
+ q(" " + I(_(n)("filter.filterButtonText")) + " " + I(s.value.length > 0 ? `(${s.value.length})` : ""), 1)
4183
4209
  ]),
4184
4210
  _: 1
4185
4211
  }),
4186
- ke(L("div", {
4212
+ Ce(L("div", {
4187
4213
  class: "kong-ui-entity-filter-backdrop",
4188
4214
  onClick: d
4189
4215
  }, null, 512), [
4190
- [Ce, o.value]
4216
+ [xe, o.value]
4191
4217
  ]),
4192
- ke(L("div", Tl, [
4193
- (h(!0), T(ue, null, ce(c.value, (b) => {
4194
- var V, J;
4195
- return h(), T("div", {
4196
- key: b.value,
4218
+ Ce(L("div", Tl, [
4219
+ (g(!0), $(ue, null, ce(c.value, (C) => {
4220
+ var Y, G;
4221
+ return g(), $("div", {
4222
+ key: C.value,
4197
4223
  class: "kong-ui-entity-filter-menu-item",
4198
- "data-testid": b.value
4224
+ "data-testid": C.value
4199
4225
  }, [
4200
4226
  L("span", {
4201
- class: fe(["menu-item-title", { expanded: l.value.has(b.value) }]),
4227
+ class: fe(["menu-item-title", { expanded: l.value.has(C.value) }]),
4202
4228
  role: "button",
4203
4229
  tabindex: "0",
4204
- onClick: (E) => u(b.value),
4205
- onKeydown: ti((E) => u(b.value), ["enter"])
4230
+ onClick: (E) => u(C.value),
4231
+ onKeydown: ti((E) => u(C.value), ["enter"])
4206
4232
  }, [
4207
- q(O(b.label) + " ", 1),
4208
- ke(L("span", Fl, null, 512), [
4209
- [Ce, s.value.includes(b.value)]
4233
+ q(I(C.label) + " ", 1),
4234
+ Ce(L("span", Fl, null, 512), [
4235
+ [xe, s.value.includes(C.value)]
4210
4236
  ]),
4211
- K(A(pi), {
4212
- class: fe(["menu-item-expand-icon", { expanded: l.value.has(b.value) }]),
4213
- color: A(sr)
4237
+ R(_(pi), {
4238
+ class: fe(["menu-item-expand-icon", { expanded: l.value.has(C.value) }]),
4239
+ color: _(sr)
4214
4240
  }, null, 8, ["class", "color"])
4215
4241
  ], 42, Il),
4216
- ke(L("div", Ol, [
4242
+ Ce(L("div", Ol, [
4217
4243
  L("label", {
4218
4244
  class: "menu-item-label",
4219
- for: y(b.value)
4220
- }, O(A(n)("filter.fieldLabel")), 9, Bl),
4221
- ((J = (V = e.config.schema) == null ? void 0 : V[b.value]) == null ? void 0 : J.type) === "select" ? (h(), M(v, {
4245
+ for: y(C.value)
4246
+ }, I(_(n)("filter.fieldLabel")), 9, Bl),
4247
+ ((G = (Y = e.config.schema) == null ? void 0 : Y[C.value]) == null ? void 0 : G.type) === "select" ? (g(), K(v, {
4222
4248
  key: 0,
4223
- id: y(b.value),
4224
- modelValue: a.value[b.value],
4225
- "onUpdate:modelValue": (E) => a.value[b.value] = E,
4226
- "enable-filtering": D(b.value),
4227
- "filter-function": (E) => X(b.value, E),
4228
- items: g(b.value),
4229
- placeholder: A(n)("filter.selectPlaceholder")
4230
- }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "enable-filtering", "filter-function", "items", "placeholder"])) : (h(), M(F, {
4249
+ id: y(C.value),
4250
+ modelValue: a.value[C.value],
4251
+ "onUpdate:modelValue": (E) => a.value[C.value] = E,
4252
+ "enable-filtering": P(C.value),
4253
+ "filter-function": (E) => ee(C.value, E),
4254
+ items: h(C.value),
4255
+ placeholder: _(n)("filter.selectPlaceholder")
4256
+ }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "enable-filtering", "filter-function", "items", "placeholder"])) : (g(), K(x, {
4231
4257
  key: 1,
4232
- id: y(b.value),
4233
- modelValue: a.value[b.value],
4234
- "onUpdate:modelValue": (E) => a.value[b.value] = E,
4258
+ id: y(C.value),
4259
+ modelValue: a.value[C.value],
4260
+ "onUpdate:modelValue": (E) => a.value[C.value] = E,
4235
4261
  autocomplete: "off",
4236
- placeholder: A(n)("filter.inputPlaceholder"),
4237
- type: k(b.value)
4262
+ placeholder: _(n)("filter.inputPlaceholder"),
4263
+ type: b(C.value)
4238
4264
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
4239
4265
  ], 512), [
4240
- [Ce, l.value.has(b.value)]
4266
+ [xe, l.value.has(C.value)]
4241
4267
  ]),
4242
- ke(L("div", Ll, [
4243
- K(f, {
4268
+ Ce(L("div", Ll, [
4269
+ R(f, {
4244
4270
  appearance: "tertiary",
4245
4271
  "data-testid": "apply-filter",
4246
4272
  size: "small",
4247
- onClick: w[0] || (w[0] = (E) => B(!0))
4273
+ onClick: F[0] || (F[0] = (E) => B(!0))
4248
4274
  }, {
4249
- default: _(() => [
4250
- q(O(A(n)("filter.applyButtonText")), 1)
4275
+ default: w(() => [
4276
+ q(I(_(n)("filter.applyButtonText")), 1)
4251
4277
  ]),
4252
4278
  _: 1
4253
4279
  }),
4254
- K(f, {
4280
+ R(f, {
4255
4281
  appearance: "tertiary",
4256
4282
  "data-testid": "clear-filter",
4257
4283
  size: "small",
4258
- onClick: (E) => C(b.value)
4284
+ onClick: (E) => k(C.value)
4259
4285
  }, {
4260
- default: _(() => [
4261
- q(O(A(n)("filter.clearButtonText")), 1)
4286
+ default: w(() => [
4287
+ q(I(_(n)("filter.clearButtonText")), 1)
4262
4288
  ]),
4263
4289
  _: 1
4264
4290
  }, 8, ["onClick"])
4265
4291
  ], 512), [
4266
- [Ce, l.value.has(b.value)]
4292
+ [xe, l.value.has(C.value)]
4267
4293
  ])
4268
4294
  ], 8, El);
4269
4295
  }), 128)),
4270
4296
  L("div", Rl, [
4271
- K(f, {
4297
+ R(f, {
4272
4298
  appearance: "tertiary",
4273
4299
  size: "small",
4274
- onClick: x
4300
+ onClick: A
4275
4301
  }, {
4276
- default: _(() => [
4277
- q(O(A(n)("filter.clearAllButtonText")), 1)
4302
+ default: w(() => [
4303
+ q(I(_(n)("filter.clearAllButtonText")), 1)
4278
4304
  ]),
4279
4305
  _: 1
4280
4306
  })
4281
4307
  ])
4282
4308
  ], 512), [
4283
- [Ce, o.value]
4309
+ [xe, o.value]
4284
4310
  ])
4285
4311
  ]));
4286
4312
  };
@@ -4317,9 +4343,9 @@ ${l.value}
4317
4343
  },
4318
4344
  emits: ["cancel", "proceed"],
4319
4345
  setup(e, { emit: t }) {
4320
- const { i18n: { t: n }, i18nT: i } = W.useI18n(), r = e, o = t, a = N(!1), l = $(
4346
+ const { i18n: { t: n }, i18nT: i } = J.useI18n(), r = e, o = t, a = N(!1), l = S(
4321
4347
  () => r.action === "enable" ? n("toggleModal.enable.title", { entityType: r.entityType }) : n("toggleModal.disable.title", { entityType: r.entityType })
4322
- ), s = $(
4348
+ ), s = S(
4323
4349
  () => r.action === "enable" ? n("toggleModal.enable.confirmText") : n("toggleModal.disable.confirmText")
4324
4350
  ), c = () => o("cancel"), d = async () => {
4325
4351
  if (r.onConfirm) {
@@ -4334,9 +4360,9 @@ ${l.value}
4334
4360
  }
4335
4361
  };
4336
4362
  return (u, p) => {
4337
- const m = P("KPrompt");
4338
- return h(), M(Wt, { to: "body" }, [
4339
- K(m, {
4363
+ const m = U("KPrompt");
4364
+ return g(), K(Wt, { to: "body" }, [
4365
+ R(m, {
4340
4366
  "action-button-disabled": a.value,
4341
4367
  "action-button-text": s.value,
4342
4368
  "data-testid": `${e.entityType}-${e.entityId}-toggle-prompt`,
@@ -4345,16 +4371,16 @@ ${l.value}
4345
4371
  onCancel: c,
4346
4372
  onProceed: d
4347
4373
  }, {
4348
- default: _(() => [
4349
- K(A(i), {
4374
+ default: w(() => [
4375
+ R(_(i), {
4350
4376
  keypath: `toggleModal.${r.action}.message`,
4351
4377
  scope: "global"
4352
4378
  }, {
4353
- entityType: _(() => [
4354
- q(O(e.entityType), 1)
4379
+ entityType: w(() => [
4380
+ q(I(e.entityType), 1)
4355
4381
  ]),
4356
- entityName: _(() => [
4357
- L("strong", null, O(e.entityName), 1)
4382
+ entityName: w(() => [
4383
+ L("strong", null, I(e.entityName), 1)
4358
4384
  ]),
4359
4385
  _: 1
4360
4386
  }, 8, ["keypath"])
@@ -4386,13 +4412,13 @@ ${l.value}
4386
4412
  }
4387
4413
  },
4388
4414
  setup(e) {
4389
- const t = e, n = N(void 0), i = $(() => n.value === !0 || n.value !== void 0 && t.forceShow === !0);
4415
+ const t = e, n = N(void 0), i = S(() => n.value === !0 || n.value !== void 0 && t.forceShow === !0);
4390
4416
  return be(() => t.authFunction, async () => {
4391
4417
  n.value = await t.authFunction();
4392
- }, { immediate: !0 }), (r, o) => i.value ? U(r.$slots, "default", {
4418
+ }, { immediate: !0 }), (r, o) => i.value ? j(r.$slots, "default", {
4393
4419
  key: 0,
4394
4420
  isAllowed: n.value
4395
- }) : j("", !0);
4421
+ }) : D("", !0);
4396
4422
  }
4397
4423
  }), ne = [];
4398
4424
  for (let e = 0; e < 256; ++e)
@@ -4402,7 +4428,7 @@ function Nl(e, t = 0) {
4402
4428
  }
4403
4429
  let ze;
4404
4430
  const Ml = new Uint8Array(16);
4405
- function jl() {
4431
+ function Dl() {
4406
4432
  if (!ze) {
4407
4433
  if (typeof crypto > "u" || !crypto.getRandomValues)
4408
4434
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
@@ -4410,13 +4436,13 @@ function jl() {
4410
4436
  }
4411
4437
  return ze(Ml);
4412
4438
  }
4413
- const Dl = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Ut = { randomUUID: Dl };
4414
- function Pl(e, t, n) {
4439
+ const Pl = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Ut = { randomUUID: Pl };
4440
+ function jl(e, t, n) {
4415
4441
  var r;
4416
4442
  if (Ut.randomUUID && !e)
4417
4443
  return Ut.randomUUID();
4418
4444
  e = e || {};
4419
- const i = e.random ?? ((r = e.rng) == null ? void 0 : r.call(e)) ?? jl();
4445
+ const i = e.random ?? ((r = e.rng) == null ? void 0 : r.call(e)) ?? Dl();
4420
4446
  if (i.length < 16)
4421
4447
  throw new Error("Random bytes length must be >= 16");
4422
4448
  return i[6] = i[6] & 15 | 64, i[8] = i[8] & 63 | 128, Nl(i);
@@ -4456,38 +4482,38 @@ const Ul = ["aria-labelledby"], ql = { class: "form-section-wrapper" }, Hl = {
4456
4482
  }
4457
4483
  },
4458
4484
  setup(e) {
4459
- const t = Ue(), n = Pl();
4460
- return (i, r) => (h(), T("div", {
4461
- "aria-labelledby": e.title ? A(n) : void 0,
4485
+ const t = Ue(), n = jl();
4486
+ return (i, r) => (g(), $("div", {
4487
+ "aria-labelledby": e.title ? _(n) : void 0,
4462
4488
  class: fe(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }]),
4463
4489
  role: "group"
4464
4490
  }, [
4465
4491
  L("div", ql, [
4466
- e.hideInfoHeader ? j("", !0) : (h(), T("div", {
4492
+ e.hideInfoHeader ? D("", !0) : (g(), $("div", {
4467
4493
  key: 0,
4468
4494
  class: fe(["form-section-info", { sticky: e.stickyInfoHeader }])
4469
4495
  }, [
4470
- e.title ? (h(), M(Pe(e.titleTag), {
4496
+ e.title ? (g(), K(je(e.titleTag), {
4471
4497
  key: 0,
4472
- id: A(n),
4498
+ id: _(n),
4473
4499
  class: "form-section-title"
4474
4500
  }, {
4475
- default: _(() => [
4476
- q(O(e.title), 1)
4501
+ default: w(() => [
4502
+ q(I(e.title), 1)
4477
4503
  ]),
4478
4504
  _: 1
4479
- }, 8, ["id"])) : j("", !0),
4480
- e.description || A(t).description ? (h(), T("div", Hl, [
4481
- U(i.$slots, "description", {}, () => [
4482
- L("p", null, O(e.description), 1)
4505
+ }, 8, ["id"])) : D("", !0),
4506
+ e.description || _(t).description ? (g(), $("div", Hl, [
4507
+ j(i.$slots, "description", {}, () => [
4508
+ L("p", null, I(e.description), 1)
4483
4509
  ], !0)
4484
- ])) : j("", !0),
4485
- A(t).footer ? (h(), T("div", Vl, [
4486
- U(i.$slots, "footer", {}, void 0, !0)
4487
- ])) : j("", !0)
4510
+ ])) : D("", !0),
4511
+ _(t).footer ? (g(), $("div", Vl, [
4512
+ j(i.$slots, "footer", {}, void 0, !0)
4513
+ ])) : D("", !0)
4488
4514
  ], 2)),
4489
4515
  L("div", Yl, [
4490
- U(i.$slots, "default", {}, void 0, !0)
4516
+ j(i.$slots, "default", {}, void 0, !0)
4491
4517
  ])
4492
4518
  ])
4493
4519
  ], 10, Ul));
@@ -4510,31 +4536,31 @@ const Ul = ["aria-labelledby"], ql = { class: "form-section-wrapper" }, Hl = {
4510
4536
  },
4511
4537
  setup(e) {
4512
4538
  const t = Ue();
4513
- return (n, i) => (h(), T("div", Jl, [
4539
+ return (n, i) => (g(), $("div", Jl, [
4514
4540
  L("header", Gl, [
4515
- e.step != null ? (h(), T("div", zl, O(e.step), 1)) : j("", !0),
4541
+ e.step != null ? (g(), $("div", zl, I(e.step), 1)) : D("", !0),
4516
4542
  L("div", Ql, [
4517
4543
  L("h2", Zl, [
4518
- U(n.$slots, "title", {}, () => [
4519
- q(O(e.title), 1)
4544
+ j(n.$slots, "title", {}, () => [
4545
+ q(I(e.title), 1)
4520
4546
  ], !0)
4521
4547
  ]),
4522
- e.description || t.description ? (h(), T("div", Xl, [
4523
- U(n.$slots, "description", {}, () => [
4524
- q(O(e.description), 1)
4548
+ e.description || t.description ? (g(), $("div", Xl, [
4549
+ j(n.$slots, "description", {}, () => [
4550
+ q(I(e.description), 1)
4525
4551
  ], !0)
4526
- ])) : j("", !0)
4552
+ ])) : D("", !0)
4527
4553
  ]),
4528
- t.extra ? (h(), T("div", es, [
4529
- U(n.$slots, "extra", {}, void 0, !0)
4530
- ])) : j("", !0)
4554
+ t.extra ? (g(), $("div", es, [
4555
+ j(n.$slots, "extra", {}, void 0, !0)
4556
+ ])) : D("", !0)
4531
4557
  ]),
4532
4558
  L("div", ts, [
4533
- U(n.$slots, "default", {}, void 0, !0)
4559
+ j(n.$slots, "default", {}, void 0, !0)
4534
4560
  ])
4535
4561
  ]));
4536
4562
  }
4537
- }), js = /* @__PURE__ */ le(ns, [["__scopeId", "data-v-cb6d2e95"]]), is = {
4563
+ }), Ds = /* @__PURE__ */ le(ns, [["__scopeId", "data-v-cb6d2e95"]]), is = {
4538
4564
  class: "kong-ui-public-entity-link",
4539
4565
  "data-testid": "entity-link-parent"
4540
4566
  }, rs = {
@@ -4564,10 +4590,10 @@ const Ul = ["aria-labelledby"], ql = { class: "form-section-wrapper" }, Hl = {
4564
4590
  }
4565
4591
  },
4566
4592
  setup(e) {
4567
- const t = e, n = N(), { isTruncated: i } = W.useTruncationDetector(n), { i18n: { t: r } } = W.useI18n(), o = r("global.actions.copyId"), a = N(o), l = $(() => t.entityLinkData.deleted ?? !1), s = $(() => {
4593
+ const t = e, n = N(), { isTruncated: i } = J.useTruncationDetector(n), { i18n: { t: r } } = J.useI18n(), o = r("global.actions.copyId"), a = N(o), l = S(() => t.entityLinkData.deleted ?? !1), s = S(() => {
4568
4594
  var u;
4569
4595
  return (u = t.entityLinkData.id) != null && u.toString().includes(":") ? t.entityLinkData.id.toString().split(":")[1] : t.entityLinkData.id;
4570
- }), c = $(() => {
4596
+ }), c = S(() => {
4571
4597
  var u;
4572
4598
  return `${(u = s.value) == null ? void 0 : u.toString().slice(0, 5)} (deleted)`;
4573
4599
  }), d = async (u) => {
@@ -4576,50 +4602,50 @@ const Ul = ["aria-labelledby"], ql = { class: "form-section-wrapper" }, Hl = {
4576
4602
  }, 1800));
4577
4603
  };
4578
4604
  return (u, p) => {
4579
- const m = P("KTooltip"), y = P("KExternalLink"), g = P("KClipboardProvider");
4580
- return h(), T("div", is, [
4581
- l.value ? (h(), T("div", rs, O(c.value), 1)) : s.value ? s.value ? (h(), M(y, {
4605
+ const m = U("KTooltip"), y = U("KExternalLink"), h = U("KClipboardProvider");
4606
+ return g(), $("div", is, [
4607
+ l.value ? (g(), $("div", rs, I(c.value), 1)) : s.value ? s.value ? (g(), K(y, {
4582
4608
  key: 2,
4583
4609
  class: "entity-link",
4584
4610
  "hide-icon": !e.newWindow,
4585
4611
  href: e.externalLink,
4586
4612
  target: e.newWindow ? "_blank" : "_self"
4587
4613
  }, {
4588
- default: _(() => [
4589
- K(m, {
4590
- text: A(i) && e.entityLinkData.label || ""
4614
+ default: w(() => [
4615
+ R(m, {
4616
+ text: _(i) && e.entityLinkData.label || ""
4591
4617
  }, {
4592
- default: _(() => [
4618
+ default: w(() => [
4593
4619
  L("span", {
4594
4620
  ref_key: "textContent",
4595
4621
  ref: n,
4596
4622
  class: "entity-link-label"
4597
- }, O(e.entityLinkData.label), 513)
4623
+ }, I(e.entityLinkData.label), 513)
4598
4624
  ]),
4599
4625
  _: 1
4600
4626
  }, 8, ["text"])
4601
4627
  ]),
4602
4628
  _: 1
4603
- }, 8, ["hide-icon", "href", "target"])) : j("", !0) : (h(), T("div", as, O(" – "))),
4604
- s.value && e.allowCopy ? (h(), M(m, {
4629
+ }, 8, ["hide-icon", "href", "target"])) : D("", !0) : (g(), $("div", as, I(" – "))),
4630
+ s.value && e.allowCopy ? (g(), K(m, {
4605
4631
  key: a.value,
4606
4632
  class: "copy-uuid-tooltip",
4607
4633
  "max-width": "160",
4608
4634
  placement: "bottom-end",
4609
4635
  text: a.value
4610
4636
  }, {
4611
- default: _(() => [
4612
- K(g, null, {
4613
- default: _(({ copyToClipboard: k }) => [
4637
+ default: w(() => [
4638
+ R(h, null, {
4639
+ default: w(({ copyToClipboard: b }) => [
4614
4640
  L("span", {
4615
4641
  class: "entity-link-copy-id",
4616
- onClick: Re((C) => d(k), ["stop"])
4642
+ onClick: Re((k) => d(b), ["stop"])
4617
4643
  }, [
4618
- K(A(mi), {
4644
+ R(_(mi), {
4619
4645
  class: "copy-icon",
4620
- color: A(cr),
4646
+ color: _(cr),
4621
4647
  "data-testid": "copy-id",
4622
- size: A(dr)
4648
+ size: _(dr)
4623
4649
  }, null, 8, ["color", "size"])
4624
4650
  ], 8, os)
4625
4651
  ]),
@@ -4627,11 +4653,11 @@ const Ul = ["aria-labelledby"], ql = { class: "form-section-wrapper" }, Hl = {
4627
4653
  })
4628
4654
  ]),
4629
4655
  _: 1
4630
- }, 8, ["text"])) : j("", !0)
4656
+ }, 8, ["text"])) : D("", !0)
4631
4657
  ]);
4632
4658
  };
4633
4659
  }
4634
- }), Ds = /* @__PURE__ */ le(ls, [["__scopeId", "data-v-96efdfa5"]]), ss = { class: "kong-ui-public-entity-empty-state" }, cs = { class: "entity-empty-state-content" }, us = {
4660
+ }), Ps = /* @__PURE__ */ le(ls, [["__scopeId", "data-v-96efdfa5"]]), ss = { class: "kong-ui-public-entity-empty-state" }, cs = { class: "entity-empty-state-content" }, us = {
4635
4661
  key: 0,
4636
4662
  class: "empty-state-image"
4637
4663
  }, ds = {
@@ -4646,10 +4672,10 @@ const Ul = ["aria-labelledby"], ql = { class: "form-section-wrapper" }, Hl = {
4646
4672
  }, ms = {
4647
4673
  key: 0,
4648
4674
  class: "entity-empty-state-message"
4649
- }, hs = {
4675
+ }, gs = {
4650
4676
  key: 1,
4651
4677
  class: "entity-empty-state-action"
4652
- }, gs = {
4678
+ }, hs = {
4653
4679
  key: 2,
4654
4680
  class: "entity-empty-state-card-container"
4655
4681
  }, ys = {
@@ -4699,100 +4725,100 @@ const Ul = ["aria-labelledby"], ql = { class: "form-section-wrapper" }, Hl = {
4699
4725
  },
4700
4726
  emits: ["click:create", "click:learn-more"],
4701
4727
  setup(e) {
4702
- const t = e, { i18n: { t: n } } = W.useI18n(), i = N(!1), r = $(() => i.value && !!t.actionButtonText), o = $(() => vt.includes(t.appearance) ? t.appearance : ["primary", t.appearance]);
4728
+ const t = e, { i18n: { t: n } } = J.useI18n(), i = N(!1), r = S(() => i.value && !!t.actionButtonText), o = S(() => vt.includes(t.appearance) ? t.appearance : ["primary", t.appearance]);
4703
4729
  return rt(async () => {
4704
4730
  i.value = await t.canCreate();
4705
4731
  }), it(() => ni(`EntityEmptyState is deprecated and will be removed in future releases. Please use the KEmptyState component instead.
4706
4732
  Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) => {
4707
- const s = P("KCard");
4708
- return h(), T("div", ss, [
4733
+ const s = U("KCard");
4734
+ return g(), $("div", ss, [
4709
4735
  L("div", cs, [
4710
- a.$slots.image ? (h(), T("div", us, [
4711
- U(a.$slots, "image", {}, void 0, !0)
4712
- ])) : j("", !0),
4713
- e.title || a.$slots.title ? (h(), T("div", ds, [
4736
+ a.$slots.image ? (g(), $("div", us, [
4737
+ j(a.$slots, "image", {}, void 0, !0)
4738
+ ])) : D("", !0),
4739
+ e.title || a.$slots.title ? (g(), $("div", ds, [
4714
4740
  L("h1", {
4715
4741
  class: fe(o.value)
4716
4742
  }, [
4717
- U(a.$slots, "title", {}, () => [
4718
- q(O(e.title), 1)
4743
+ j(a.$slots, "title", {}, () => [
4744
+ q(I(e.title), 1)
4719
4745
  ], !0)
4720
4746
  ], 2)
4721
- ])) : j("", !0),
4722
- e.description || a.$slots.default ? (h(), T("div", fs, [
4723
- U(a.$slots, "default", {}, () => [
4724
- L("p", null, O(e.description), 1)
4747
+ ])) : D("", !0),
4748
+ e.description || a.$slots.default ? (g(), $("div", fs, [
4749
+ j(a.$slots, "default", {}, () => [
4750
+ L("p", null, I(e.description), 1)
4725
4751
  ], !0)
4726
- ])) : j("", !0),
4727
- e.pricing || a.$slots.pricing ? (h(), T("div", ps, [
4752
+ ])) : D("", !0),
4753
+ e.pricing || a.$slots.pricing ? (g(), $("div", ps, [
4728
4754
  L("p", null, [
4729
- L("b", null, O(A(n)("emptyState.pricingTitle")), 1),
4755
+ L("b", null, I(_(n)("emptyState.pricingTitle")), 1),
4730
4756
  l[2] || (l[2] = q()),
4731
- U(a.$slots, "pricing", {}, () => [
4732
- q(O(e.pricing), 1)
4757
+ j(a.$slots, "pricing", {}, () => [
4758
+ q(I(e.pricing), 1)
4733
4759
  ], !0)
4734
4760
  ])
4735
- ])) : j("", !0)
4761
+ ])) : D("", !0)
4736
4762
  ]),
4737
- a.$slots.message ? (h(), T("div", ms, [
4738
- U(a.$slots, "message", {}, void 0, !0)
4739
- ])) : j("", !0),
4740
- r.value || e.learnMore || a.$slots.actions ? (h(), T("div", hs, [
4741
- U(a.$slots, "actions", {}, () => [
4742
- r.value ? (h(), M(A(ht), {
4763
+ a.$slots.message ? (g(), $("div", ms, [
4764
+ j(a.$slots, "message", {}, void 0, !0)
4765
+ ])) : D("", !0),
4766
+ r.value || e.learnMore || a.$slots.actions ? (g(), $("div", gs, [
4767
+ j(a.$slots, "actions", {}, () => [
4768
+ r.value ? (g(), K(_(gt), {
4743
4769
  key: 0,
4744
4770
  appearance: "primary",
4745
4771
  "data-testid": "entity-create-button",
4746
4772
  size: e.appearance === "secondary" ? "medium" : "large",
4747
4773
  onClick: l[0] || (l[0] = (c) => a.$emit("click:create"))
4748
4774
  }, {
4749
- default: _(() => [
4750
- K(A(Gt)),
4751
- q(" " + O(e.actionButtonText), 1)
4775
+ default: w(() => [
4776
+ R(_(Gt)),
4777
+ q(" " + I(e.actionButtonText), 1)
4752
4778
  ]),
4753
4779
  _: 1
4754
- }, 8, ["size"])) : j("", !0),
4755
- e.learnMore ? (h(), M(A(ht), {
4780
+ }, 8, ["size"])) : D("", !0),
4781
+ e.learnMore ? (g(), K(_(gt), {
4756
4782
  key: 1,
4757
4783
  appearance: "secondary",
4758
4784
  "data-testid": "entity-learn-more-button",
4759
4785
  size: e.appearance === "secondary" ? "medium" : "large",
4760
4786
  onClick: l[1] || (l[1] = (c) => a.$emit("click:learn-more"))
4761
4787
  }, {
4762
- default: _(() => [
4763
- K(A(Jt), { decorative: "" }),
4764
- q(" " + O(A(n)("emptyState.learnMore")), 1)
4788
+ default: w(() => [
4789
+ R(_(Jt), { decorative: "" }),
4790
+ q(" " + I(_(n)("emptyState.learnMore")), 1)
4765
4791
  ]),
4766
4792
  _: 1
4767
- }, 8, ["size"])) : j("", !0)
4793
+ }, 8, ["size"])) : D("", !0)
4768
4794
  ], !0)
4769
- ])) : j("", !0),
4770
- e.features.length ? (h(), T("div", gs, [
4771
- (h(!0), T(ue, null, ce(e.features, (c, d) => (h(), M(s, {
4795
+ ])) : D("", !0),
4796
+ e.features.length ? (g(), $("div", hs, [
4797
+ (g(!0), $(ue, null, ce(e.features, (c, d) => (g(), K(s, {
4772
4798
  key: c,
4773
4799
  class: "entity-empty-state-card"
4774
4800
  }, {
4775
- title: _(() => [
4776
- a.$slots[`feature-${d}-icon`] ? (h(), T("div", ys, [
4777
- U(a.$slots, `feature-${d}-icon`, {}, void 0, !0)
4778
- ])) : j("", !0),
4779
- L("div", vs, O(c.title), 1)
4801
+ title: w(() => [
4802
+ a.$slots[`feature-${d}-icon`] ? (g(), $("div", ys, [
4803
+ j(a.$slots, `feature-${d}-icon`, {}, void 0, !0)
4804
+ ])) : D("", !0),
4805
+ L("div", vs, I(c.title), 1)
4780
4806
  ]),
4781
- default: _(() => [
4807
+ default: w(() => [
4782
4808
  L("div", {
4783
4809
  title: c.description
4784
- }, O(c.description), 9, bs)
4810
+ }, I(c.description), 9, bs)
4785
4811
  ]),
4786
4812
  _: 2
4787
4813
  }, 1024))), 128))
4788
- ])) : j("", !0),
4789
- a.$slots.bottom ? (h(), T("div", ks, [
4790
- U(a.$slots, "bottom", {}, void 0, !0)
4791
- ])) : j("", !0)
4814
+ ])) : D("", !0),
4815
+ a.$slots.bottom ? (g(), $("div", ks, [
4816
+ j(a.$slots, "bottom", {}, void 0, !0)
4817
+ ])) : D("", !0)
4792
4818
  ]);
4793
4819
  };
4794
4820
  }
4795
- }), Ps = /* @__PURE__ */ le(Cs, [["__scopeId", "data-v-645aae54"]]), xs = { key: 1 }, Us = /* @__PURE__ */ z({
4821
+ }), js = /* @__PURE__ */ le(Cs, [["__scopeId", "data-v-645aae54"]]), xs = { key: 1 }, Us = /* @__PURE__ */ z({
4796
4822
  __name: "TableTags",
4797
4823
  props: {
4798
4824
  /** The tags to display in the table */
@@ -4806,7 +4832,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) =>
4806
4832
  }
4807
4833
  },
4808
4834
  setup(e) {
4809
- const t = e, n = $(() => {
4835
+ const t = e, n = S(() => {
4810
4836
  if (Array.isArray(t.tags))
4811
4837
  return t.tags;
4812
4838
  if (typeof t.tags == "string")
@@ -4820,44 +4846,44 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) =>
4820
4846
  });
4821
4847
  return (i, r) => {
4822
4848
  var o;
4823
- return ((o = n.value) == null ? void 0 : o.length) > 0 ? (h(), M(A(li), { key: 0 }, {
4824
- default: _(() => [
4825
- (h(!0), T(ue, null, ce(n.value, (a) => (h(), M(A(si), {
4849
+ return ((o = n.value) == null ? void 0 : o.length) > 0 ? (g(), K(_(li), { key: 0 }, {
4850
+ default: w(() => [
4851
+ (g(!0), $(ue, null, ce(n.value, (a) => (g(), K(_(si), {
4826
4852
  key: a,
4827
4853
  "max-width": e.tagMaxWidth,
4828
4854
  onClick: r[0] || (r[0] = Re(() => {
4829
4855
  }, ["stop"]))
4830
4856
  }, {
4831
- default: _(() => [
4832
- q(O(a), 1)
4857
+ default: w(() => [
4858
+ q(I(a), 1)
4833
4859
  ]),
4834
4860
  _: 2
4835
4861
  }, 1032, ["max-width"]))), 128))
4836
4862
  ]),
4837
4863
  _: 1
4838
- })) : (h(), T("span", xs, "-"));
4864
+ })) : (g(), $("span", xs, "-"));
4839
4865
  };
4840
4866
  }
4841
- }), { useAxios: qs, useDeleteUrlBuilder: Hs, useErrors: Vs, useExternalLinkCreator: Ys, useFetchUrlBuilder: Ws, useFetcher: Js, useFetcherCacheKey: Gs, useDebouncedFilter: zs, useStringHelpers: Qs, useHelpers: Zs, useGatewayFeatureSupported: Xs, useTruncationDetector: ec, useValidators: tc, useSchemaProvider: nc, useTableState: ic } = W;
4867
+ }), { useAxios: qs, useDeleteUrlBuilder: Hs, useErrors: Vs, useExternalLinkCreator: Ys, useFetchUrlBuilder: Ws, useFetcher: Js, useFetcherCacheKey: Gs, useDebouncedFilter: zs, useStringHelpers: Qs, useHelpers: Zs, useGatewayFeatureSupported: Xs, useTruncationDetector: ec, useValidators: tc, useSchemaProvider: nc, useTableState: ic } = J;
4842
4868
  export {
4843
4869
  vt as Appearances,
4844
4870
  tl as ConfigCardDisplay,
4845
4871
  nn as ConfigCardItem,
4846
4872
  ae as ConfigurationSchemaSection,
4847
- Y as ConfigurationSchemaType,
4873
+ W as ConfigurationSchemaType,
4848
4874
  cl as DeckCodeBlock,
4849
4875
  Fs as EntityBaseConfigCard,
4850
4876
  Os as EntityBaseForm,
4851
4877
  yi as EntityBaseFormType,
4852
4878
  Bs as EntityBaseTable,
4853
4879
  Ls as EntityDeleteModal,
4854
- Ps as EntityEmptyState,
4880
+ js as EntityEmptyState,
4855
4881
  Rs as EntityFilter,
4856
- js as EntityFormBlock,
4882
+ Ds as EntityFormBlock,
4857
4883
  Ms as EntityFormSection,
4858
- Ds as EntityLink,
4884
+ Ps as EntityLink,
4859
4885
  Ks as EntityToggleModal,
4860
- gi as EntityTypes,
4886
+ hi as EntityTypes,
4861
4887
  bi as EventGatewayTypesArray,
4862
4888
  me as FetcherStatus,
4863
4889
  ki as IdentityTypesArray,
@@ -4865,7 +4891,7 @@ export {
4865
4891
  rn as JsonCodeBlock,
4866
4892
  Ns as PermissionsWrapper,
4867
4893
  vi as SupportedEntityDeckArray,
4868
- Se as SupportedEntityType,
4894
+ $e as SupportedEntityType,
4869
4895
  qe as SupportedEntityTypesArray,
4870
4896
  Us as TableTags,
4871
4897
  Gn as TerraformCodeBlock,