@kong-ui-public/entities-consumer-groups 1.3.4-pr.920.50af0ead.0 → 1.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
- import { defineComponent as ie, ref as E, computed as T, watch as Se, renderSlot as Z, createCommentVNode as z, unref as y, useSlots as ut, onBeforeMount as Qe, resolveComponent as P, openBlock as m, createBlock as R, createSlots as Te, withCtx as v, createElementVNode as U, createTextVNode as Q, toDisplayString as K, createVNode as N, createElementBlock as j, renderList as he, Fragment as be, normalizeClass as Ne, withModifiers as rt, withDirectives as et, vShow as tt, useCssVars as ur, resolveDynamicComponent as ze, normalizeProps as cr, guardReactiveProps as dr, mergeProps as ht, onMounted as pr, onUnmounted as fr, normalizeStyle as mr, inject as gr, pushScopeId as yr, popScopeId as hr, reactive as Pt } from "vue";
1
+ import { defineComponent as ae, ref as O, computed as M, watch as xe, renderSlot as Y, createCommentVNode as G, unref as y, useSlots as ut, onBeforeMount as Qe, resolveComponent as U, openBlock as g, createBlock as V, createSlots as Te, withCtx as h, createElementVNode as R, createTextVNode as Z, toDisplayString as F, createVNode as K, createElementBlock as j, renderList as ye, Fragment as ve, normalizeClass as Ke, withModifiers as rt, withDirectives as et, vShow as tt, useCssVars as ur, resolveDynamicComponent as ze, normalizeProps as cr, guardReactiveProps as dr, mergeProps as ht, onMounted as pr, onUnmounted as fr, normalizeStyle as mr, inject as gr, pushScopeId as yr, popScopeId as hr, reactive as Pt } from "vue";
2
2
  import { useRouter as wt } from "vue-router";
3
3
  import { createI18n as It, i18nTComponent as cn } from "@kong-ui-public/i18n";
4
4
  import vr from "axios";
5
5
  import { MethodsArray as br } from "@kong/kongponents";
6
- const kr = {
6
+ const Cr = {
7
7
  list: {
8
8
  table_headers: {
9
9
  name: "Name",
@@ -95,11 +95,11 @@ const kr = {
95
95
  name: "The name can be any string containing letters, numbers, or the following characters: ., -, _, or ~. Do not use spaces."
96
96
  }
97
97
  }
98
- }, Cr = {
99
- consumer_groups: kr
98
+ }, kr = {
99
+ consumer_groups: Cr
100
100
  };
101
101
  function _r() {
102
- const e = It("en-us", Cr);
102
+ const e = It("en-us", kr);
103
103
  return {
104
104
  i18n: e,
105
105
  i18nT: cn(e)
@@ -140,7 +140,7 @@ const ct = {
140
140
  }
141
141
  }
142
142
  };
143
- var dn = /* @__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))(dn || {}), nt = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(nt || {}), Oe = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(Oe || {}), ne = /* @__PURE__ */ ((e) => (e.ID = "id", e.IdArray = "id-array", e.Text = "plain-text", e.Date = "date", e.Redacted = "redacted", e.RedactedArray = "redacted-array", e.Json = "json", e.JsonArray = "json-array", e.BadgeTag = "badge-tag", e.BadgeStatus = "badge-status", e.BadgeMethod = "badge-method", e.LinkInternal = "link-internal", e.LinkExternal = "link-external", e))(ne || {}), ke = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(ke || {});
143
+ var dn = /* @__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))(dn || {}), nt = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(nt || {}), Oe = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(Oe || {}), te = /* @__PURE__ */ ((e) => (e.ID = "id", e.IdArray = "id-array", e.Text = "plain-text", e.Date = "date", e.Redacted = "redacted", e.RedactedArray = "redacted-array", e.Json = "json", e.JsonArray = "json-array", e.BadgeTag = "badge-tag", e.BadgeStatus = "badge-status", e.BadgeMethod = "badge-method", e.LinkInternal = "link-internal", e.LinkExternal = "link-external", e))(te || {}), be = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(be || {});
144
144
  function At(e = {}) {
145
145
  return {
146
146
  axiosInstance: vr.create({
@@ -198,10 +198,10 @@ function Ar() {
198
198
  }
199
199
  };
200
200
  }
201
- const xr = {
201
+ const Sr = {
202
202
  message: "Are you sure you want to delete this {entityType}?",
203
203
  messageWithName: "Are you sure you want to delete this {entityType} {entityName}?"
204
- }, Sr = {
204
+ }, xr = {
205
205
  actions: {
206
206
  save: "Save",
207
207
  cancel: "Cancel",
@@ -278,9 +278,9 @@ const xr = {
278
278
  message: "Are you sure you want to disable the {entityType} {entityName}?",
279
279
  confirmText: "Yes, disable"
280
280
  }
281
- }, Kr = {
282
- deleteModal: xr,
283
- baseForm: Sr,
281
+ }, Fr = {
282
+ deleteModal: Sr,
283
+ baseForm: xr,
284
284
  baseTable: Tr,
285
285
  baseConfigCard: $r,
286
286
  filter: Mr,
@@ -288,8 +288,8 @@ const xr = {
288
288
  errors: Er,
289
289
  toggleModal: Or
290
290
  };
291
- function xt() {
292
- const e = It("en-us", Kr);
291
+ function St() {
292
+ const e = It("en-us", Fr);
293
293
  return {
294
294
  i18n: e,
295
295
  i18nT: cn(e)
@@ -313,72 +313,72 @@ function pn() {
313
313
  isValidUuid: (e) => e ? /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(e) : !1
314
314
  };
315
315
  }
316
- function Nr(e, n, t, r = {
316
+ function Kr(e, n, t, r = {
317
317
  fetchedItemsKey: "data",
318
318
  searchKeys: ["id"]
319
319
  }) {
320
320
  t || (t = "100");
321
321
  const { axiosInstance: o } = At({
322
322
  headers: e.requestHeaders
323
- }), { i18n: { t: a } } = xt(), { debounce: i } = wr(), s = i(async (h) => {
324
- await O(h);
325
- }, 200), l = E(!1), c = E(""), d = E(""), u = E([]), g = E([]), f = E(void 0), I = y(n);
326
- let k = `${e.apiBaseUrl}${I}`;
327
- e.app === "konnect" ? k = k.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (k = k.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
328
- const { isValidUuid: p } = pn(), A = async () => {
323
+ }), { i18n: { t: a } } = St(), { debounce: i } = wr(), s = i(async (A) => {
324
+ await C(A);
325
+ }, 200), l = O(!1), c = O(""), d = O(""), u = O([]), m = O([]), f = O(void 0), I = y(n);
326
+ let v = `${e.apiBaseUrl}${I}`;
327
+ e.app === "konnect" ? v = v.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (v = v.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
328
+ const { isValidUuid: p } = pn(), S = async () => {
329
329
  try {
330
330
  l.value = !0;
331
- const { data: h } = await o.get(`${k}?size=${t}`);
332
- h != null && h.next || (f.value = r.fetchedItemsKey in h ? h[r.fetchedItemsKey] : []), g.value = r.fetchedItemsKey in h ? h[r.fetchedItemsKey] : [], u.value = g.value;
331
+ const { data: A } = await o.get(`${v}?size=${t}`);
332
+ A != null && A.next || (f.value = r.fetchedItemsKey in A ? A[r.fetchedItemsKey] : []), m.value = r.fetchedItemsKey in A ? A[r.fetchedItemsKey] : [], u.value = m.value;
333
333
  } catch {
334
334
  u.value = [], c.value = a("debouncedFilter.errors.fetch");
335
335
  } finally {
336
336
  l.value = !1;
337
337
  }
338
- }, C = E(""), O = async (h) => {
339
- var D, se, Y;
340
- if (C.value !== h)
341
- if (C.value = h || "", f.value === void 0)
338
+ }, b = O(""), C = async (A) => {
339
+ var ne, pe, H;
340
+ if (b.value !== A)
341
+ if (b.value = A || "", f.value === void 0)
342
342
  try {
343
343
  if (l.value = !0, c.value = "", d.value = "", e.app === "konnect") {
344
- let w = k + "";
345
- h && (w += `/${h}`);
346
- const { data: F } = await o.get(`${w}?size=${t}`);
347
- r.fetchedItemsKey in F ? u.value = F[r.fetchedItemsKey] : F != null && F.id ? u.value = [F] : u.value = [];
348
- } else if (h) {
344
+ let w = v + "";
345
+ A && (w += `/${A}`);
346
+ const { data: N } = await o.get(`${w}?size=${t}`);
347
+ r.fetchedItemsKey in N ? u.value = N[r.fetchedItemsKey] : N != null && N.id ? u.value = [N] : u.value = [];
348
+ } else if (A) {
349
349
  const w = [];
350
- p(h) && r.searchKeys.includes("id") ? w.push((async () => {
351
- const { data: b } = await o.get(`${k}/${h}`);
352
- return [b[r.fetchedItemsKey] ?? b];
350
+ p(A) && r.searchKeys.includes("id") ? w.push((async () => {
351
+ const { data: k } = await o.get(`${v}/${A}`);
352
+ return [k[r.fetchedItemsKey] ?? k];
353
353
  })()) : w.push(
354
- ...r.searchKeys.filter((b) => b !== "id").map(async (b) => {
355
- const { data: x } = await o.get(`${k}?${b}=${h}`);
354
+ ...r.searchKeys.filter((k) => k !== "id").map(async (k) => {
355
+ const { data: x } = await o.get(`${v}?${k}=${A}`);
356
356
  return x[r.fetchedItemsKey];
357
357
  })
358
358
  );
359
- const F = await Promise.all(w), V = /* @__PURE__ */ new Set();
360
- u.value = [], (D = F == null ? void 0 : F.forEach) == null || D.call(F, (b) => {
359
+ const N = await Promise.all(w), B = /* @__PURE__ */ new Set();
360
+ u.value = [], (ne = N == null ? void 0 : N.forEach) == null || ne.call(N, (k) => {
361
361
  var x;
362
- (x = b == null ? void 0 : b.forEach) == null || x.call(b, (S) => {
363
- V.has(S.id) || (V.add(S.id), u.value.push(S));
362
+ (x = k == null ? void 0 : k.forEach) == null || x.call(k, (T) => {
363
+ B.has(T.id) || (B.add(T.id), u.value.push(T));
364
364
  });
365
365
  });
366
366
  } else
367
- u.value = g.value;
367
+ u.value = m.value;
368
368
  } catch (w) {
369
- ((se = w == null ? void 0 : w.response) == null ? void 0 : se.status) === 404 ? d.value = a("debouncedFilter.errors.invalid") : (u.value = [], c.value = a("debouncedFilter.errors.fetch"));
369
+ ((pe = w == null ? void 0 : w.response) == null ? void 0 : pe.status) === 404 ? d.value = a("debouncedFilter.errors.invalid") : (u.value = [], c.value = a("debouncedFilter.errors.fetch"));
370
370
  } finally {
371
371
  l.value = !1;
372
372
  }
373
373
  else
374
- l.value = !0, d.value = "", h ? (u.value = (Y = f.value) == null ? void 0 : Y.filter((w) => {
375
- var F;
376
- let V = !1;
377
- for (const b of r.searchKeys) {
378
- const x = typeof w[b] == "string" ? (F = w[b]) == null ? void 0 : F.toLowerCase() : w[b];
379
- x != null && x.includes(h.toLowerCase()) && (V = !0);
374
+ l.value = !0, d.value = "", A ? (u.value = (H = f.value) == null ? void 0 : H.filter((w) => {
375
+ var N;
376
+ let B = !1;
377
+ for (const k of r.searchKeys) {
378
+ const x = typeof w[k] == "string" ? (N = w[k]) == null ? void 0 : N.toLowerCase() : w[k];
379
+ x != null && x.includes(A.toLowerCase()) && (B = !0);
380
380
  }
381
- return V;
381
+ return B;
382
382
  }), (!u.value || !u.value.length) && (d.value = a("debouncedFilter.errors.invalid"))) : u.value = f.value, l.value = !1;
383
383
  };
384
384
  return {
@@ -387,18 +387,18 @@ function Nr(e, n, t, r = {
387
387
  validationError: d,
388
388
  results: u,
389
389
  allRecords: f,
390
- loadItems: A,
390
+ loadItems: S,
391
391
  debouncedQueryChange: s
392
392
  };
393
393
  }
394
- function Fr(e, n) {
395
- const t = y(n), r = T(
394
+ function Nr(e, n) {
395
+ const t = y(n), r = M(
396
396
  () => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${t}`) : new URL(t)
397
397
  );
398
398
  return r.value.search = "", (o) => `${r.value.href}/${o}`;
399
399
  }
400
400
  function Br() {
401
- const { i18n: { t: e } } = xt();
401
+ const { i18n: { t: e } } = St();
402
402
  return {
403
403
  getMessageFromError: (n) => {
404
404
  var t, r, o;
@@ -426,17 +426,17 @@ function Br() {
426
426
  };
427
427
  }
428
428
  function fn(e, n) {
429
- const t = E(y(e)), r = E(y(n)), o = T(
429
+ const t = O(y(e)), r = O(y(n)), o = M(
430
430
  () => !!(t.value.app === "konnect" || t.value.isExactMatch)
431
- ), a = T(
431
+ ), a = M(
432
432
  () => r.value.startsWith("/") ? new URL(`${window.location.origin}${r.value}`) : new URL(r.value)
433
433
  );
434
434
  return (i) => {
435
- const { page: s, pageSize: l, offset: c, sortColumnKey: d, sortColumnOrder: u, query: g } = i;
435
+ const { page: s, pageSize: l, offset: c, sortColumnKey: d, sortColumnOrder: u, query: m } = i;
436
436
  try {
437
437
  let f = new URL(a.value.href);
438
- return o.value && g ? (f.search = "", f = new URL(`${f.href}/${g}/`)) : (o.value || new URLSearchParams(g).forEach((I, k) => {
439
- f.searchParams.append(k, I);
438
+ return o.value && m ? (f.search = "", f = new URL(`${f.href}/${m}/`)) : (o.value || new URLSearchParams(m).forEach((I, v) => {
439
+ f.searchParams.append(v, I);
440
440
  }), d && f.searchParams.append("sort_by", d), u === "desc" && f.searchParams.append("sort_desc", "1"), f.searchParams.append("size", String(l))), c && s !== 1 && f.searchParams.append("offset", String(c)), f.href;
441
441
  } catch (f) {
442
442
  return console.error("RouteList(fetcher)", f), r.value;
@@ -446,7 +446,7 @@ function fn(e, n) {
446
446
  function Pr(e, n, t = "data") {
447
447
  const r = y(n), { axiosInstance: o } = At({
448
448
  headers: e.requestHeaders
449
- }), a = fn(e, r), i = E({
449
+ }), a = fn(e, r), i = O({
450
450
  status: Oe.Idle
451
451
  });
452
452
  return { fetcher: async (s) => {
@@ -455,7 +455,7 @@ function Pr(e, n, t = "data") {
455
455
  const l = a(s), { data: c } = await o.get(l), d = t && t.replace(/[^\w-_]/gi, "");
456
456
  let u;
457
457
  c[d] && Array.isArray(c[d]) ? u = c[d] : u = Object.keys(c).length ? [c] : [];
458
- const g = {
458
+ const m = {
459
459
  data: u,
460
460
  total: u.length,
461
461
  ...c.offset ? {
@@ -466,8 +466,8 @@ function Pr(e, n, t = "data") {
466
466
  };
467
467
  return i.value = {
468
468
  status: Oe.Idle,
469
- response: g
470
- }, g;
469
+ response: m
470
+ }, m;
471
471
  } catch (l) {
472
472
  const c = {
473
473
  data: [],
@@ -485,39 +485,39 @@ function Pr(e, n, t = "data") {
485
485
  }
486
486
  }, fetcherState: i };
487
487
  }
488
- function qr() {
488
+ function Lr() {
489
489
  return {
490
490
  convertKeyToTitle: (e, n = "_") => e ? e.split(n).map((t) => t.toLowerCase() === "id" ? t.toUpperCase() : t.charAt(0).toUpperCase() + t.substring(1)).join(" ") : ""
491
491
  };
492
492
  }
493
- const mn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, qt = (e) => {
493
+ const mn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, Lt = (e) => {
494
494
  if (typeof e != "string")
495
495
  throw new TypeError("Invalid argument expected string");
496
496
  const n = e.match(mn);
497
497
  if (!n)
498
498
  throw new Error(`Invalid argument not valid semver ('${e}' received)`);
499
499
  return n.shift(), n;
500
- }, Lt = (e) => e === "*" || e === "x" || e === "X", Ut = (e) => {
500
+ }, Ut = (e) => e === "*" || e === "x" || e === "X", qt = (e) => {
501
501
  const n = parseInt(e, 10);
502
502
  return isNaN(n) ? e : n;
503
- }, Lr = (e, n) => typeof e != typeof n ? [String(e), String(n)] : [e, n], Ur = (e, n) => {
504
- if (Lt(e) || Lt(n))
503
+ }, Ur = (e, n) => typeof e != typeof n ? [String(e), String(n)] : [e, n], qr = (e, n) => {
504
+ if (Ut(e) || Ut(n))
505
505
  return 0;
506
- const [t, r] = Lr(Ut(e), Ut(n));
506
+ const [t, r] = Ur(qt(e), qt(n));
507
507
  return t > r ? 1 : t < r ? -1 : 0;
508
- }, Vt = (e, n) => {
508
+ }, Rt = (e, n) => {
509
509
  for (let t = 0; t < Math.max(e.length, n.length); t++) {
510
- const r = Ur(e[t] || "0", n[t] || "0");
510
+ const r = qr(e[t] || "0", n[t] || "0");
511
511
  if (r !== 0)
512
512
  return r;
513
513
  }
514
514
  return 0;
515
- }, Vr = (e, n) => {
516
- const t = qt(e), r = qt(n), o = t.pop(), a = r.pop(), i = Vt(t, r);
517
- return i !== 0 ? i : o && a ? Vt(o.split("."), a.split(".")) : o || a ? o ? -1 : 1 : 0;
518
- }, Rt = (e, n, t) => {
519
- Rr(t);
520
- const r = Vr(e, n);
515
+ }, Rr = (e, n) => {
516
+ const t = Lt(e), r = Lt(n), o = t.pop(), a = r.pop(), i = Rt(t, r);
517
+ return i !== 0 ? i : o && a ? Rt(o.split("."), a.split(".")) : o || a ? o ? -1 : 1 : 0;
518
+ }, Vt = (e, n, t) => {
519
+ Vr(t);
520
+ const r = Rr(e, n);
521
521
  return gn[t].includes(r);
522
522
  }, gn = {
523
523
  ">": [1],
@@ -526,7 +526,7 @@ const mn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
526
526
  "<=": [-1, 0],
527
527
  "<": [-1],
528
528
  "!=": [-1, 1]
529
- }, Dt = Object.keys(gn), Rr = (e) => {
529
+ }, Dt = Object.keys(gn), Vr = (e) => {
530
530
  if (typeof e != "string")
531
531
  throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
532
532
  if (Dt.indexOf(e) === -1)
@@ -543,26 +543,26 @@ function Gr(e) {
543
543
  if (!a)
544
544
  return !1;
545
545
  const [i, s] = a;
546
- return !(i && Rt(o, i, "<") || s && Rt(o, s, ">"));
546
+ return !(i && Vt(o, i, "<") || s && Vt(o, s, ">"));
547
547
  }
548
548
  function Hr(e) {
549
- const n = E(0), t = E(0), r = E(!1);
550
- return Se(e, (o) => {
549
+ const n = O(0), t = O(0), r = O(!1);
550
+ return xe(e, (o) => {
551
551
  o && !r.value && (n.value = o.offsetWidth, t.value = o.scrollWidth, r.value = !0);
552
552
  }), {
553
- isTruncated: T(() => n.value < t.value)
553
+ isTruncated: M(() => n.value < t.value)
554
554
  };
555
555
  }
556
- const ce = {
556
+ const ue = {
557
557
  useAxios: At,
558
- useDebouncedFilter: Nr,
559
- useDeleteUrlBuilder: Fr,
558
+ useDebouncedFilter: Kr,
559
+ useDeleteUrlBuilder: Nr,
560
560
  useErrors: Br,
561
561
  useFetcher: Pr,
562
562
  useFetchUrlBuilder: fn,
563
563
  useHelpers: pn,
564
- useStringHelpers: qr,
565
- useI18n: xt,
564
+ useStringHelpers: Lr,
565
+ useI18n: St,
566
566
  useGatewayFeatureSupported: Gr,
567
567
  useTruncationDetector: Hr
568
568
  }, zr = {
@@ -571,10 +571,10 @@ const ce = {
571
571
  prefix: "Successfully",
572
572
  content: " copied to clipboard"
573
573
  }
574
- }, Jr = "Copy to clipboard", Yr = {
574
+ }, Jr = "Copy to clipboard", Wr = {
575
575
  message: zr,
576
576
  iconTitle: Jr
577
- }, Wr = "kong-ui-copy-uuid-notify", Zr = { class: "kong-ui-copy-uuid" }, Qr = ["onClick"], Gt = 15, Xr = /* @__PURE__ */ ie({
577
+ }, Yr = "kong-ui-copy-uuid-notify", Zr = { class: "kong-ui-copy-uuid" }, Qr = ["onClick"], Gt = 15, Xr = /* @__PURE__ */ ae({
578
578
  __name: "CopyUuid",
579
579
  props: {
580
580
  uuid: {
@@ -618,62 +618,66 @@ const ce = {
618
618
  },
619
619
  emits: ["success", "error"],
620
620
  setup(e, { emit: n }) {
621
- const t = e, { t: r } = It("en-us", Yr), o = t.notify || gr(Wr, () => {
622
- }), a = T(() => t.idTooltip ? {
621
+ const t = e, { t: r } = It("en-us", Wr), o = t.notify || gr(Yr, () => {
622
+ }), a = M(() => t.idTooltip ? {
623
623
  label: t.idTooltip,
624
624
  positionFixed: !0,
625
625
  placement: "bottomStart"
626
626
  } : {
627
627
  title: t.uuid
628
- }), i = T(() => !!(t.tooltip && t.successTooltip)), s = E(t.tooltip), l = T(() => t.tooltip ? {
628
+ }), i = M(() => !!(t.tooltip && t.successTooltip)), s = O(t.tooltip), l = M(() => t.tooltip ? {
629
629
  label: s.value,
630
630
  positionFixed: !0,
631
631
  maxWidth: "500px",
632
632
  placement: "bottomStart"
633
- } : {}), c = T(() => t.format === "redacted" ? "*****" : t.format === "deleted" ? `*${t.uuid.substring(0, 5)}` : t.uuid), d = (g) => {
634
- s.value = g, setTimeout(() => {
633
+ } : {}), c = M(() => {
634
+ var m;
635
+ return t.format === "redacted" ? "*****" : t.format === "deleted" ? `*${(m = t.uuid) == null ? void 0 : m.substring(0, 5)}` : t.uuid;
636
+ }), d = (m) => {
637
+ s.value = m, setTimeout(() => {
635
638
  s.value = t.tooltip;
636
639
  }, 1800);
637
- }, u = (g) => {
638
- if (!g(t.uuid)) {
640
+ }, u = (m) => {
641
+ var f, I;
642
+ if (!m(t.uuid)) {
639
643
  typeof o == "function" && o({
640
644
  type: "error",
641
645
  message: r("message.fail")
642
646
  }), i.value ? d(r("message.fail")) : n("error", t.uuid);
643
647
  return;
644
648
  }
645
- const f = t.uuid.length > Gt, I = t.format === "hidden" || t.format === "redacted" ? r("message.success.prefix") : `"${t.uuid.substring(0, Gt) + (f ? "..." : "")}"`;
649
+ const v = ((f = t.uuid) == null ? void 0 : f.length) > Gt, p = t.format === "hidden" || t.format === "redacted" ? r("message.success.prefix") : `"${((I = t.uuid) == null ? void 0 : I.substring(0, Gt)) + (v ? "..." : "")}"`;
646
650
  typeof o == "function" && o({
647
651
  type: "success",
648
- message: `${I}${r("message.success.content")}`
652
+ message: `${p}${r("message.success.content")}`
649
653
  }), i.value ? d(t.successTooltip) : n("success", t.uuid);
650
654
  };
651
- return (g, f) => {
652
- const I = P("KIcon"), k = P("KClipboardProvider");
653
- return m(), j("div", Zr, [
654
- e.format !== "hidden" ? (m(), R(ze(e.idTooltip ? "KTooltip" : "div"), ht({ key: 0 }, a.value, { "data-testid": "copy-id" }), {
655
- default: v(() => [
656
- U("div", {
657
- class: Ne([
655
+ return (m, f) => {
656
+ const I = U("KIcon"), v = U("KClipboardProvider");
657
+ return g(), j("div", Zr, [
658
+ e.format !== "hidden" ? (g(), V(ze(e.idTooltip ? "KTooltip" : "div"), ht({ key: 0 }, a.value, { "data-testid": "copy-id" }), {
659
+ default: h(() => [
660
+ R("div", {
661
+ class: Ke([
658
662
  "uuid-container",
659
663
  e.truncated ? "truncated-uuid" : null,
660
664
  e.useMono ? "mono" : null
661
665
  ])
662
- }, K(c.value), 3)
666
+ }, F(c.value), 3)
663
667
  ]),
664
668
  _: 1
665
- }, 16)) : z("", !0),
666
- (m(), R(ze(e.tooltip ? "KTooltip" : "div"), ht(l.value, { class: "uuid-icon-wrapper" }), {
667
- default: v(() => [
668
- N(k, null, {
669
- default: v(({ copyToClipboard: p }) => [
670
- U("span", {
669
+ }, 16)) : G("", !0),
670
+ (g(), V(ze(e.tooltip ? "KTooltip" : "div"), ht(l.value, { class: "uuid-icon-wrapper" }), {
671
+ default: h(() => [
672
+ K(v, null, {
673
+ default: h(({ copyToClipboard: p }) => [
674
+ R("span", {
671
675
  "data-testid": "copy-to-clipboard",
672
676
  role: "button",
673
677
  tabindex: "0",
674
- onClick: rt((A) => u(p), ["stop"])
678
+ onClick: rt((S) => u(p), ["stop"])
675
679
  }, [
676
- N(I, {
680
+ K(I, {
677
681
  class: "uuid-icon",
678
682
  color: e.iconColor,
679
683
  "hide-title": !!e.tooltip || void 0,
@@ -696,10 +700,10 @@ const ce = {
696
700
  for (const [r, o] of n)
697
701
  t[r] = o;
698
702
  return t;
699
- }, yn = /* @__PURE__ */ eo(Xr, [["__scopeId", "data-v-bfdaf6f7"]]), to = {
703
+ }, yn = /* @__PURE__ */ eo(Xr, [["__scopeId", "data-v-a2ebe0bb"]]), to = {
700
704
  key: 0,
701
705
  class: "config-card-fieldset-title"
702
- }, no = /* @__PURE__ */ ie({
706
+ }, no = /* @__PURE__ */ ae({
703
707
  __name: "JsonCardItem",
704
708
  props: {
705
709
  item: {
@@ -716,21 +720,21 @@ const ce = {
716
720
  }
717
721
  },
718
722
  setup(e) {
719
- const n = e, { i18n: { t } } = ce.useI18n(), { convertKeyToTitle: r } = ce.useStringHelpers(), o = T(() => n.item.key ?? "json-array-item"), a = T(() => n.item.value ?? n.item), i = T(() => {
723
+ const n = e, { i18n: { t } } = ue.useI18n(), { convertKeyToTitle: r } = ue.useStringHelpers(), o = M(() => n.item.key ?? "json-array-item"), a = M(() => n.item.value ?? n.item), i = M(() => {
720
724
  const l = JSON.parse(JSON.stringify(a.value));
721
725
  return n.isArrayItem && delete l.name, l;
722
- }), s = T(() => {
726
+ }), s = M(() => {
723
727
  var l;
724
728
  return n.isArrayItem ? (l = a.value) != null && l.name ? r(a.value.name, "_") : t("baseConfigCard.general.entryTitle", { index: n.index }) : "";
725
729
  });
726
- return (l, c) => (m(), R(ze(e.isArrayItem ? "fieldset" : "div"), {
727
- class: Ne(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
730
+ return (l, c) => (g(), V(ze(e.isArrayItem ? "fieldset" : "div"), {
731
+ class: Ke(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
728
732
  }, {
729
- default: v(() => [
730
- e.isArrayItem ? (m(), j("legend", to, [
731
- U("b", null, K(s.value), 1)
732
- ])) : z("", !0),
733
- (m(!0), j(be, null, he(Object.keys(i.value), (d, u) => (m(), R(St, {
733
+ default: h(() => [
734
+ e.isArrayItem ? (g(), j("legend", to, [
735
+ R("b", null, F(s.value), 1)
736
+ ])) : G("", !0),
737
+ (g(!0), j(ve, null, ye(Object.keys(i.value), (d, u) => (g(), V(xt, {
734
738
  key: `${o.value}-property-${u}`,
735
739
  item: {
736
740
  key: d,
@@ -742,12 +746,12 @@ const ce = {
742
746
  _: 1
743
747
  }, 8, ["class"]));
744
748
  }
745
- }), Ce = (e, n) => {
749
+ }), ke = (e, n) => {
746
750
  const t = e.__vccOpts || e;
747
751
  for (const [r, o] of n)
748
752
  t[r] = o;
749
753
  return t;
750
- }, hn = /* @__PURE__ */ Ce(no, [["__scopeId", "data-v-68ca83ec"]]), ro = /* @__PURE__ */ ie({
754
+ }, hn = /* @__PURE__ */ ke(no, [["__scopeId", "data-v-68ca83ec"]]), ro = /* @__PURE__ */ ae({
751
755
  __name: "InternalLinkItem",
752
756
  props: {
753
757
  item: {
@@ -757,24 +761,24 @@ const ce = {
757
761
  },
758
762
  emits: ["navigation-click"],
759
763
  setup(e) {
760
- const { i18n: { t: n } } = ce.useI18n();
764
+ const { i18n: { t: n } } = ue.useI18n();
761
765
  return (t, r) => {
762
- const o = P("KButton");
763
- return m(), j("div", null, [
764
- N(o, {
766
+ const o = U("KButton");
767
+ return g(), j("div", null, [
768
+ K(o, {
765
769
  appearance: "btn-link",
766
770
  class: "navigation-button",
767
771
  onClick: r[0] || (r[0] = (a) => t.$emit("navigation-click", e.item))
768
772
  }, {
769
- default: v(() => [
770
- Q(K(e.item.value || y(n)("baseConfigCard.commonFields.link")), 1)
773
+ default: h(() => [
774
+ Z(F(e.item.value || y(n)("baseConfigCard.commonFields.link")), 1)
771
775
  ]),
772
776
  _: 1
773
777
  })
774
778
  ]);
775
779
  };
776
780
  }
777
- }), oo = /* @__PURE__ */ Ce(ro, [["__scopeId", "data-v-7410504d"]]), ao = /* @__PURE__ */ ie({
781
+ }), oo = /* @__PURE__ */ ke(ro, [["__scopeId", "data-v-7410504d"]]), ao = /* @__PURE__ */ ae({
778
782
  __name: "StatusBadge",
779
783
  props: {
780
784
  status: {
@@ -783,23 +787,23 @@ const ce = {
783
787
  }
784
788
  },
785
789
  setup(e) {
786
- const { i18n: { t: n } } = ce.useI18n();
790
+ const { i18n: { t: n } } = ue.useI18n();
787
791
  return (t, r) => {
788
- const o = P("KBadge");
789
- return m(), R(o, {
792
+ const o = U("KBadge");
793
+ return g(), V(o, {
790
794
  appearance: e.status ? "success" : "neutral"
791
795
  }, {
792
- default: v(() => [
793
- Q(K(e.status ? y(n)("baseConfigCard.statusBadge.enabledLabel") : y(n)("baseConfigCard.statusBadge.disabledLabel")), 1)
796
+ default: h(() => [
797
+ Z(F(e.status ? y(n)("baseConfigCard.statusBadge.enabledLabel") : y(n)("baseConfigCard.statusBadge.disabledLabel")), 1)
794
798
  ]),
795
799
  _: 1
796
800
  }, 8, ["appearance"]);
797
801
  };
798
802
  }
799
- }), io = "#0044f4", so = "#e0e4ea", lo = "#3a3f51", uo = "1px", co = "20px", po = { class: "config-card-details-row" }, fo = ["data-testid"], mo = ["data-testid"], go = ["data-testid"], yo = ["data-testid"], ho = { key: 1 }, vo = ["data-testid"], bo = ["data-testid"], ko = ["data-testid"], Co = ["data-testid"], _o = {
803
+ }), io = "#0044f4", so = "#e0e4ea", lo = "#3a3f51", uo = "1px", co = "20px", po = { class: "config-card-details-row" }, fo = ["data-testid"], mo = ["data-testid"], go = ["data-testid"], yo = ["data-testid"], ho = { key: 1 }, vo = ["data-testid"], bo = ["data-testid"], Co = ["data-testid"], ko = ["data-testid"], _o = {
800
804
  name: "ConfigCardItem",
801
805
  components: { CopyUuid: yn, JsonCardItem: hn, StatusBadge: ao, InternalLinkItem: oo }
802
- }, wo = /* @__PURE__ */ ie({
806
+ }, wo = /* @__PURE__ */ ae({
803
807
  ..._o,
804
808
  props: {
805
809
  item: {
@@ -826,9 +830,9 @@ const ce = {
826
830
  "4d3dc7e7": l.value && i.value ? "100%" : t.slim ? "50%" : "25%",
827
831
  "4d400dc2": l.value && i.value ? "100%" : t.slim ? "50%" : "75%"
828
832
  }));
829
- const r = ut(), { i18n: { t: o, formatUnixTimeStamp: a } } = ce.useI18n(), i = T(() => t.item.value !== void 0 && t.item.value !== null && t.item.value !== ""), s = T(() => !!(t.item.tooltip || r["label-tooltip"])), l = T(() => t.item.type === ne.Json || t.item.type === ne.JsonArray), c = T(() => t.item.type === ne.JsonArray), d = T(() => {
833
+ const r = ut(), { i18n: { t: o, formatUnixTimeStamp: a } } = ue.useI18n(), i = M(() => t.item.value !== void 0 && t.item.value !== null && t.item.value !== ""), s = M(() => !!(t.item.tooltip || r["label-tooltip"])), l = M(() => t.item.type === te.Json || t.item.type === te.JsonArray), c = M(() => t.item.type === te.JsonArray), d = M(() => {
830
834
  switch (t.item.type) {
831
- case ne.ID:
835
+ case te.ID:
832
836
  return {
833
837
  tag: "CopyUuid",
834
838
  attrs: {
@@ -841,7 +845,7 @@ const ce = {
841
845
  }
842
846
  }
843
847
  };
844
- case ne.IdArray:
848
+ case te.IdArray:
845
849
  return {
846
850
  tag: "div",
847
851
  additionalComponent: "CopyUuid",
@@ -853,7 +857,7 @@ const ce = {
853
857
  }
854
858
  }
855
859
  };
856
- case ne.Redacted:
860
+ case te.Redacted:
857
861
  return {
858
862
  tag: "CopyUuid",
859
863
  attrs: {
@@ -867,7 +871,7 @@ const ce = {
867
871
  }
868
872
  }
869
873
  };
870
- case ne.RedactedArray:
874
+ case te.RedactedArray:
871
875
  return {
872
876
  tag: "div",
873
877
  additionalComponent: "CopyUuid",
@@ -880,7 +884,7 @@ const ce = {
880
884
  }
881
885
  }
882
886
  };
883
- case ne.Date:
887
+ case te.Date:
884
888
  return {
885
889
  tag: "div",
886
890
  attrs: {
@@ -888,7 +892,7 @@ const ce = {
888
892
  },
889
893
  text: a(t.item.value)
890
894
  };
891
- case ne.BadgeStatus:
895
+ case te.BadgeStatus:
892
896
  return {
893
897
  tag: "StatusBadge",
894
898
  attrs: {
@@ -896,17 +900,17 @@ const ce = {
896
900
  status: t.item.value
897
901
  }
898
902
  };
899
- case ne.BadgeTag:
903
+ case te.BadgeTag:
900
904
  return {
901
905
  tag: "div",
902
906
  additionalComponent: "KBadge"
903
907
  };
904
- case ne.BadgeMethod:
908
+ case te.BadgeMethod:
905
909
  return {
906
910
  tag: "div",
907
911
  additionalComponent: "KMethodBadge"
908
912
  };
909
- case ne.LinkInternal:
913
+ case te.LinkInternal:
910
914
  return {
911
915
  tag: "InternalLinkItem",
912
916
  attrs: {
@@ -917,7 +921,7 @@ const ce = {
917
921
  }
918
922
  }
919
923
  };
920
- case ne.LinkExternal:
924
+ case te.LinkExternal:
921
925
  return {
922
926
  tag: "KExternalLink",
923
927
  attrs: {
@@ -926,7 +930,7 @@ const ce = {
926
930
  },
927
931
  text: t.item.value
928
932
  };
929
- case ne.Json:
933
+ case te.Json:
930
934
  return {
931
935
  tag: "JsonCardItem",
932
936
  attrs: {
@@ -934,7 +938,7 @@ const ce = {
934
938
  item: t.item
935
939
  }
936
940
  };
937
- case ne.JsonArray:
941
+ case te.JsonArray:
938
942
  return {
939
943
  tag: "div",
940
944
  additionalComponent: "JsonCardItem",
@@ -952,29 +956,29 @@ const ce = {
952
956
  text: t.item.value
953
957
  };
954
958
  }
955
- }), u = E(), { isTruncated: g } = ce.useTruncationDetector(u);
959
+ }), u = O(), { isTruncated: m } = ue.useTruncationDetector(u);
956
960
  return (f, I) => {
957
- const k = P("KLabel"), p = P("KBadge"), A = P("KMethodBadge"), C = P("KTooltip");
958
- return m(), j("div", po, [
959
- U("div", {
961
+ const v = U("KLabel"), p = U("KBadge"), S = U("KMethodBadge"), b = U("KTooltip");
962
+ return g(), j("div", po, [
963
+ R("div", {
960
964
  class: "config-card-details-label",
961
965
  "data-testid": `${e.item.key}-label`
962
966
  }, [
963
- Z(f.$slots, "label", { item: e.item }, () => [
964
- N(k, { "tooltip-attributes": { maxWidth: "500px" } }, Te({
965
- default: v(() => [
966
- Q(K(e.item.label) + " ", 1)
967
+ Y(f.$slots, "label", { item: e.item }, () => [
968
+ K(v, { "tooltip-attributes": { maxWidth: "500px" } }, Te({
969
+ default: h(() => [
970
+ Z(F(e.item.label) + " ", 1)
967
971
  ]),
968
972
  _: 2
969
973
  }, [
970
974
  s.value ? {
971
975
  name: "tooltip",
972
- fn: v(() => [
973
- U("div", {
976
+ fn: h(() => [
977
+ R("div", {
974
978
  "data-testid": `${e.item.key}-label-tooltip`
975
979
  }, [
976
- Z(f.$slots, "label-tooltip", {}, () => [
977
- Q(K(e.item.tooltip), 1)
980
+ Y(f.$slots, "label-tooltip", {}, () => [
981
+ Z(F(e.item.tooltip), 1)
978
982
  ], !0)
979
983
  ], 8, mo)
980
984
  ]),
@@ -983,88 +987,88 @@ const ce = {
983
987
  ]), 1024)
984
988
  ], !0)
985
989
  ], 8, fo),
986
- U("div", {
990
+ R("div", {
987
991
  class: "config-card-details-value",
988
992
  "data-testid": `${e.item.key}-property-value`
989
993
  }, [
990
- Z(f.$slots, e.item.key, {
994
+ Y(f.$slots, e.item.key, {
991
995
  rowValue: e.item.value
992
996
  }, () => [
993
- i.value ? (m(), j("div", ho, [
994
- (m(), R(ze(d.value.tag), cr(dr(d.value.attrs)), {
995
- default: v(() => [
996
- d.value.additionalComponent === "KBadge" ? (m(), j("div", {
997
+ i.value ? (g(), j("div", ho, [
998
+ (g(), V(ze(d.value.tag), cr(dr(d.value.attrs)), {
999
+ default: h(() => [
1000
+ d.value.additionalComponent === "KBadge" ? (g(), j("div", {
997
1001
  key: 0,
998
1002
  "data-testid": `${e.item.key}-badge-tags`
999
1003
  }, [
1000
- (m(!0), j(be, null, he(e.item.value, (O, h) => (m(), R(p, {
1001
- key: `${e.item.key}-badge-tag-${h}`,
1004
+ (g(!0), j(ve, null, ye(e.item.value, (C, A) => (g(), V(p, {
1005
+ key: `${e.item.key}-badge-tag-${A}`,
1002
1006
  class: "config-badge",
1003
- "data-testid": `${e.item.key}-badge-tag-${h}`,
1004
- "truncation-tooltip": O
1007
+ "data-testid": `${e.item.key}-badge-tag-${A}`,
1008
+ "truncation-tooltip": C
1005
1009
  }, {
1006
- default: v(() => [
1007
- Q(K(O), 1)
1010
+ default: h(() => [
1011
+ Z(F(C), 1)
1008
1012
  ]),
1009
1013
  _: 2
1010
1014
  }, 1032, ["data-testid", "truncation-tooltip"]))), 128))
1011
- ], 8, vo)) : z("", !0),
1012
- d.value.additionalComponent === "CopyUuid" ? (m(), j("div", {
1015
+ ], 8, vo)) : G("", !0),
1016
+ d.value.additionalComponent === "CopyUuid" ? (g(), j("div", {
1013
1017
  key: 1,
1014
1018
  class: "copy-uuid-array",
1015
1019
  "data-testid": `${e.item.key}-copy-uuid-array`
1016
1020
  }, [
1017
- (m(!0), j(be, null, he(e.item.value, (O, h) => (m(), R(y(yn), ht(d.value.childAttrs, {
1018
- key: `${e.item.key}-copy-uuid-${h}`,
1019
- "data-testid": `${e.item.key}-copy-uuid-${h}`,
1020
- uuid: O
1021
+ (g(!0), j(ve, null, ye(e.item.value, (C, A) => (g(), V(y(yn), ht(d.value.childAttrs, {
1022
+ key: `${e.item.key}-copy-uuid-${A}`,
1023
+ "data-testid": `${e.item.key}-copy-uuid-${A}`,
1024
+ uuid: C
1021
1025
  }), null, 16, ["data-testid", "uuid"]))), 128))
1022
- ], 8, bo)) : d.value.additionalComponent === "KMethodBadge" ? (m(), j("div", {
1026
+ ], 8, bo)) : d.value.additionalComponent === "KMethodBadge" ? (g(), j("div", {
1023
1027
  key: 2,
1024
1028
  class: "method-badge-array",
1025
1029
  "data-testid": `${e.item.key}-badge-methods`
1026
1030
  }, [
1027
- (m(!0), j(be, null, he(e.item.value, (O, h) => (m(), R(A, {
1028
- key: `${e.item.key}-badge-method-${h}`,
1031
+ (g(!0), j(ve, null, ye(e.item.value, (C, A) => (g(), V(S, {
1032
+ key: `${e.item.key}-badge-method-${A}`,
1029
1033
  class: "config-badge",
1030
- "data-testid": `${e.item.key}-badge-method-${h}`,
1034
+ "data-testid": `${e.item.key}-badge-method-${A}`,
1031
1035
  "is-rounded": "",
1032
- label: O,
1033
- method: y(br).includes(O.toLowerCase()) ? O.toLowerCase() : "custom"
1036
+ label: C,
1037
+ method: y(br).includes(C.toLowerCase()) ? C.toLowerCase() : "custom"
1034
1038
  }, {
1035
- default: v(() => [
1036
- Q(K(O), 1)
1039
+ default: h(() => [
1040
+ Z(F(C), 1)
1037
1041
  ]),
1038
1042
  _: 2
1039
1043
  }, 1032, ["data-testid", "label", "method"]))), 128))
1040
- ], 8, ko)) : z("", !0),
1041
- d.value.additionalComponent === "JsonCardItem" ? (m(), j("div", {
1044
+ ], 8, Co)) : G("", !0),
1045
+ d.value.additionalComponent === "JsonCardItem" ? (g(), j("div", {
1042
1046
  key: 3,
1043
1047
  "data-testid": `${t.item.key}-json-array-content`
1044
1048
  }, [
1045
- (m(!0), j(be, null, he(e.item.value, (O, h) => (m(), R(hn, {
1046
- key: `json-array-item-${h}`,
1047
- index: h,
1049
+ (g(!0), j(ve, null, ye(e.item.value, (C, A) => (g(), V(hn, {
1050
+ key: `json-array-item-${A}`,
1051
+ index: A,
1048
1052
  "is-array-item": "",
1049
- item: O
1053
+ item: C
1050
1054
  }, null, 8, ["index", "item"]))), 128))
1051
- ], 8, Co)) : (m(), R(C, {
1055
+ ], 8, ko)) : (g(), V(b, {
1052
1056
  key: 4,
1053
- label: y(g) ? e.item.value : ""
1057
+ label: y(m) ? e.item.value : ""
1054
1058
  }, {
1055
- default: v(() => [
1056
- U("span", {
1059
+ default: h(() => [
1060
+ R("span", {
1057
1061
  ref_key: "textContent",
1058
1062
  ref: u,
1059
- class: Ne(["attrs-data-text", { truncated: e.truncated }])
1060
- }, K(d.value.text), 3)
1063
+ class: Ke(["attrs-data-text", { truncated: e.truncated }])
1064
+ }, F(d.value.text), 3)
1061
1065
  ]),
1062
1066
  _: 1
1063
1067
  }, 8, ["label"]))
1064
1068
  ]),
1065
1069
  _: 1
1066
1070
  }, 16))
1067
- ])) : (m(), j("div", {
1071
+ ])) : (g(), j("div", {
1068
1072
  key: 0,
1069
1073
  "data-testid": `${e.item.key}-no-value`
1070
1074
  }, " – ", 8, yo))
@@ -1073,7 +1077,7 @@ const ce = {
1073
1077
  ]);
1074
1078
  };
1075
1079
  }
1076
- }), St = /* @__PURE__ */ Ce(wo, [["__scopeId", "data-v-307ab96d"]]);
1080
+ }), xt = /* @__PURE__ */ ke(wo, [["__scopeId", "data-v-307ab96d"]]);
1077
1081
  /*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
1078
1082
  function vn(e) {
1079
1083
  return typeof e > "u" || e === null;
@@ -1084,14 +1088,14 @@ function Io(e) {
1084
1088
  function Ao(e) {
1085
1089
  return Array.isArray(e) ? e : vn(e) ? [] : [e];
1086
1090
  }
1087
- function xo(e, n) {
1091
+ function So(e, n) {
1088
1092
  var t, r, o, a;
1089
1093
  if (n)
1090
1094
  for (a = Object.keys(n), t = 0, r = a.length; t < r; t += 1)
1091
1095
  o = a[t], e[o] = n[o];
1092
1096
  return e;
1093
1097
  }
1094
- function So(e, n) {
1098
+ function xo(e, n) {
1095
1099
  var t = "", r;
1096
1100
  for (r = 0; r < n; r += 1)
1097
1101
  t += e;
@@ -1100,13 +1104,13 @@ function So(e, n) {
1100
1104
  function To(e) {
1101
1105
  return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
1102
1106
  }
1103
- var $o = vn, Mo = Io, jo = Ao, Eo = So, Oo = To, Ko = xo, ue = {
1107
+ var $o = vn, Mo = Io, jo = Ao, Eo = xo, Oo = To, Fo = So, se = {
1104
1108
  isNothing: $o,
1105
1109
  isObject: Mo,
1106
1110
  toArray: jo,
1107
1111
  repeat: Eo,
1108
1112
  isNegativeZero: Oo,
1109
- extend: Ko
1113
+ extend: Fo
1110
1114
  };
1111
1115
  function bn(e, n) {
1112
1116
  var t = "", r = e.reason || "(unknown reason)";
@@ -1132,9 +1136,9 @@ function mt(e, n, t, r, o) {
1132
1136
  };
1133
1137
  }
1134
1138
  function gt(e, n) {
1135
- return ue.repeat(" ", n - e.length) + e;
1139
+ return se.repeat(" ", n - e.length) + e;
1136
1140
  }
1137
- function No(e, n) {
1141
+ function Ko(e, n) {
1138
1142
  if (n = Object.create(n || null), !e.buffer)
1139
1143
  return null;
1140
1144
  n.maxLength || (n.maxLength = 79), typeof n.indent != "number" && (n.indent = 1), typeof n.linesBefore != "number" && (n.linesBefore = 3), typeof n.linesAfter != "number" && (n.linesAfter = 2);
@@ -1149,10 +1153,10 @@ function No(e, n) {
1149
1153
  o[i - l],
1150
1154
  e.position - (r[i] - r[i - l]),
1151
1155
  u
1152
- ), s = ue.repeat(" ", n.indent) + gt((e.line - l + 1).toString(), d) + " | " + c.str + `
1156
+ ), s = se.repeat(" ", n.indent) + gt((e.line - l + 1).toString(), d) + " | " + c.str + `
1153
1157
  ` + s;
1154
- for (c = mt(e.buffer, r[i], o[i], e.position, u), s += ue.repeat(" ", n.indent) + gt((e.line + 1).toString(), d) + " | " + c.str + `
1155
- `, s += ue.repeat("-", n.indent + d + 3 + c.pos) + `^
1158
+ for (c = mt(e.buffer, r[i], o[i], e.position, u), s += se.repeat(" ", n.indent) + gt((e.line + 1).toString(), d) + " | " + c.str + `
1159
+ `, s += se.repeat("-", n.indent + d + 3 + c.pos) + `^
1156
1160
  `, l = 1; l <= n.linesAfter && !(i + l >= o.length); l++)
1157
1161
  c = mt(
1158
1162
  e.buffer,
@@ -1160,11 +1164,11 @@ function No(e, n) {
1160
1164
  o[i + l],
1161
1165
  e.position - (r[i] - r[i + l]),
1162
1166
  u
1163
- ), s += ue.repeat(" ", n.indent) + gt((e.line + l + 1).toString(), d) + " | " + c.str + `
1167
+ ), s += se.repeat(" ", n.indent) + gt((e.line + l + 1).toString(), d) + " | " + c.str + `
1164
1168
  `;
1165
1169
  return s.replace(/\n$/, "");
1166
1170
  }
1167
- var Fo = No, Bo = [
1171
+ var No = Ko, Bo = [
1168
1172
  "kind",
1169
1173
  "multi",
1170
1174
  "resolve",
@@ -1180,7 +1184,7 @@ var Fo = No, Bo = [
1180
1184
  "sequence",
1181
1185
  "mapping"
1182
1186
  ];
1183
- function qo(e) {
1187
+ function Lo(e) {
1184
1188
  var n = {};
1185
1189
  return e !== null && Object.keys(e).forEach(function(t) {
1186
1190
  e[t].forEach(function(r) {
@@ -1188,7 +1192,7 @@ function qo(e) {
1188
1192
  });
1189
1193
  }), n;
1190
1194
  }
1191
- function Lo(e, n) {
1195
+ function Uo(e, n) {
1192
1196
  if (n = n || {}, Object.keys(n).forEach(function(t) {
1193
1197
  if (Bo.indexOf(t) === -1)
1194
1198
  throw new me('Unknown option "' + t + '" is met in definition of "' + e + '" YAML type.');
@@ -1196,10 +1200,10 @@ function Lo(e, n) {
1196
1200
  return !0;
1197
1201
  }, this.construct = n.construct || function(t) {
1198
1202
  return t;
1199
- }, this.instanceOf = n.instanceOf || null, this.predicate = n.predicate || null, this.represent = n.represent || null, this.representName = n.representName || null, this.defaultStyle = n.defaultStyle || null, this.multi = n.multi || !1, this.styleAliases = qo(n.styleAliases || null), Po.indexOf(this.kind) === -1)
1203
+ }, this.instanceOf = n.instanceOf || null, this.predicate = n.predicate || null, this.represent = n.represent || null, this.representName = n.representName || null, this.defaultStyle = n.defaultStyle || null, this.multi = n.multi || !1, this.styleAliases = Lo(n.styleAliases || null), Po.indexOf(this.kind) === -1)
1200
1204
  throw new me('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
1201
1205
  }
1202
- var pe = Lo;
1206
+ var de = Uo;
1203
1207
  function Ht(e, n) {
1204
1208
  var t = [];
1205
1209
  return e[n].forEach(function(r) {
@@ -1209,7 +1213,7 @@ function Ht(e, n) {
1209
1213
  }), t[o] = r;
1210
1214
  }), t;
1211
1215
  }
1212
- function Uo() {
1216
+ function qo() {
1213
1217
  var e = {
1214
1218
  scalar: {},
1215
1219
  sequence: {},
@@ -1234,7 +1238,7 @@ function vt(e) {
1234
1238
  }
1235
1239
  vt.prototype.extend = function(e) {
1236
1240
  var n = [], t = [];
1237
- if (e instanceof pe)
1241
+ if (e instanceof de)
1238
1242
  t.push(e);
1239
1243
  else if (Array.isArray(e))
1240
1244
  t = t.concat(e);
@@ -1243,57 +1247,57 @@ vt.prototype.extend = function(e) {
1243
1247
  else
1244
1248
  throw new me("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
1245
1249
  n.forEach(function(o) {
1246
- if (!(o instanceof pe))
1250
+ if (!(o instanceof de))
1247
1251
  throw new me("Specified list of YAML types (or a single Type object) contains a non-Type object.");
1248
1252
  if (o.loadKind && o.loadKind !== "scalar")
1249
1253
  throw new me("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
1250
1254
  if (o.multi)
1251
1255
  throw new me("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
1252
1256
  }), t.forEach(function(o) {
1253
- if (!(o instanceof pe))
1257
+ if (!(o instanceof de))
1254
1258
  throw new me("Specified list of YAML types (or a single Type object) contains a non-Type object.");
1255
1259
  });
1256
1260
  var r = Object.create(vt.prototype);
1257
- return r.implicit = (this.implicit || []).concat(n), r.explicit = (this.explicit || []).concat(t), r.compiledImplicit = Ht(r, "implicit"), r.compiledExplicit = Ht(r, "explicit"), r.compiledTypeMap = Uo(r.compiledImplicit, r.compiledExplicit), r;
1261
+ return r.implicit = (this.implicit || []).concat(n), r.explicit = (this.explicit || []).concat(t), r.compiledImplicit = Ht(r, "implicit"), r.compiledExplicit = Ht(r, "explicit"), r.compiledTypeMap = qo(r.compiledImplicit, r.compiledExplicit), r;
1258
1262
  };
1259
- var kn = vt, Cn = new pe("tag:yaml.org,2002:str", {
1263
+ var Cn = vt, kn = new de("tag:yaml.org,2002:str", {
1260
1264
  kind: "scalar",
1261
1265
  construct: function(e) {
1262
1266
  return e !== null ? e : "";
1263
1267
  }
1264
- }), _n = new pe("tag:yaml.org,2002:seq", {
1268
+ }), _n = new de("tag:yaml.org,2002:seq", {
1265
1269
  kind: "sequence",
1266
1270
  construct: function(e) {
1267
1271
  return e !== null ? e : [];
1268
1272
  }
1269
- }), wn = new pe("tag:yaml.org,2002:map", {
1273
+ }), wn = new de("tag:yaml.org,2002:map", {
1270
1274
  kind: "mapping",
1271
1275
  construct: function(e) {
1272
1276
  return e !== null ? e : {};
1273
1277
  }
1274
- }), In = new kn({
1278
+ }), In = new Cn({
1275
1279
  explicit: [
1276
- Cn,
1280
+ kn,
1277
1281
  _n,
1278
1282
  wn
1279
1283
  ]
1280
1284
  });
1281
- function Vo(e) {
1285
+ function Ro(e) {
1282
1286
  if (e === null)
1283
1287
  return !0;
1284
1288
  var n = e.length;
1285
1289
  return n === 1 && e === "~" || n === 4 && (e === "null" || e === "Null" || e === "NULL");
1286
1290
  }
1287
- function Ro() {
1291
+ function Vo() {
1288
1292
  return null;
1289
1293
  }
1290
1294
  function Do(e) {
1291
1295
  return e === null;
1292
1296
  }
1293
- var An = new pe("tag:yaml.org,2002:null", {
1297
+ var An = new de("tag:yaml.org,2002:null", {
1294
1298
  kind: "scalar",
1295
- resolve: Vo,
1296
- construct: Ro,
1299
+ resolve: Ro,
1300
+ construct: Vo,
1297
1301
  predicate: Do,
1298
1302
  represent: {
1299
1303
  canonical: function() {
@@ -1326,7 +1330,7 @@ function Ho(e) {
1326
1330
  function zo(e) {
1327
1331
  return Object.prototype.toString.call(e) === "[object Boolean]";
1328
1332
  }
1329
- var xn = new pe("tag:yaml.org,2002:bool", {
1333
+ var Sn = new de("tag:yaml.org,2002:bool", {
1330
1334
  kind: "scalar",
1331
1335
  resolve: Go,
1332
1336
  construct: Ho,
@@ -1347,10 +1351,10 @@ var xn = new pe("tag:yaml.org,2002:bool", {
1347
1351
  function Jo(e) {
1348
1352
  return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
1349
1353
  }
1350
- function Yo(e) {
1354
+ function Wo(e) {
1351
1355
  return 48 <= e && e <= 55;
1352
1356
  }
1353
- function Wo(e) {
1357
+ function Yo(e) {
1354
1358
  return 48 <= e && e <= 57;
1355
1359
  }
1356
1360
  function Zo(e) {
@@ -1383,7 +1387,7 @@ function Zo(e) {
1383
1387
  if (o === "o") {
1384
1388
  for (t++; t < n; t++)
1385
1389
  if (o = e[t], o !== "_") {
1386
- if (!Yo(e.charCodeAt(t)))
1390
+ if (!Wo(e.charCodeAt(t)))
1387
1391
  return !1;
1388
1392
  r = !0;
1389
1393
  }
@@ -1394,7 +1398,7 @@ function Zo(e) {
1394
1398
  return !1;
1395
1399
  for (; t < n; t++)
1396
1400
  if (o = e[t], o !== "_") {
1397
- if (!Wo(e.charCodeAt(t)))
1401
+ if (!Yo(e.charCodeAt(t)))
1398
1402
  return !1;
1399
1403
  r = !0;
1400
1404
  }
@@ -1415,9 +1419,9 @@ function Qo(e) {
1415
1419
  return t * parseInt(n, 10);
1416
1420
  }
1417
1421
  function Xo(e) {
1418
- return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !ue.isNegativeZero(e);
1422
+ return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !se.isNegativeZero(e);
1419
1423
  }
1420
- var Sn = new pe("tag:yaml.org,2002:int", {
1424
+ var xn = new de("tag:yaml.org,2002:int", {
1421
1425
  kind: "scalar",
1422
1426
  resolve: Zo,
1423
1427
  construct: Qo,
@@ -1487,14 +1491,14 @@ function oa(e, n) {
1487
1491
  case "camelcase":
1488
1492
  return "-.Inf";
1489
1493
  }
1490
- else if (ue.isNegativeZero(e))
1494
+ else if (se.isNegativeZero(e))
1491
1495
  return "-0.0";
1492
1496
  return t = e.toString(10), ra.test(t) ? t.replace("e", ".e") : t;
1493
1497
  }
1494
1498
  function aa(e) {
1495
- return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || ue.isNegativeZero(e));
1499
+ return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || se.isNegativeZero(e));
1496
1500
  }
1497
- var Tn = new pe("tag:yaml.org,2002:float", {
1501
+ var Tn = new de("tag:yaml.org,2002:float", {
1498
1502
  kind: "scalar",
1499
1503
  resolve: ta,
1500
1504
  construct: na,
@@ -1504,8 +1508,8 @@ var Tn = new pe("tag:yaml.org,2002:float", {
1504
1508
  }), $n = In.extend({
1505
1509
  implicit: [
1506
1510
  An,
1507
- xn,
1508
1511
  Sn,
1512
+ xn,
1509
1513
  Tn
1510
1514
  ]
1511
1515
  }), Mn = $n, jn = new RegExp(
@@ -1517,7 +1521,7 @@ function ia(e) {
1517
1521
  return e === null ? !1 : jn.exec(e) !== null || En.exec(e) !== null;
1518
1522
  }
1519
1523
  function sa(e) {
1520
- var n, t, r, o, a, i, s, l = 0, c = null, d, u, g;
1524
+ var n, t, r, o, a, i, s, l = 0, c = null, d, u, m;
1521
1525
  if (n = jn.exec(e), n === null && (n = En.exec(e)), n === null)
1522
1526
  throw new Error("Date resolve error");
1523
1527
  if (t = +n[1], r = +n[2] - 1, o = +n[3], !n[4])
@@ -1527,12 +1531,12 @@ function sa(e) {
1527
1531
  l += "0";
1528
1532
  l = +l;
1529
1533
  }
1530
- return n[9] && (d = +n[10], u = +(n[11] || 0), c = (d * 60 + u) * 6e4, n[9] === "-" && (c = -c)), g = new Date(Date.UTC(t, r, o, a, i, s, l)), c && g.setTime(g.getTime() - c), g;
1534
+ return n[9] && (d = +n[10], u = +(n[11] || 0), c = (d * 60 + u) * 6e4, n[9] === "-" && (c = -c)), m = new Date(Date.UTC(t, r, o, a, i, s, l)), c && m.setTime(m.getTime() - c), m;
1531
1535
  }
1532
1536
  function la(e) {
1533
1537
  return e.toISOString();
1534
1538
  }
1535
- var On = new pe("tag:yaml.org,2002:timestamp", {
1539
+ var On = new de("tag:yaml.org,2002:timestamp", {
1536
1540
  kind: "scalar",
1537
1541
  resolve: ia,
1538
1542
  construct: sa,
@@ -1542,7 +1546,7 @@ var On = new pe("tag:yaml.org,2002:timestamp", {
1542
1546
  function ua(e) {
1543
1547
  return e === "<<" || e === null;
1544
1548
  }
1545
- var Kn = new pe("tag:yaml.org,2002:merge", {
1549
+ var Fn = new de("tag:yaml.org,2002:merge", {
1546
1550
  kind: "scalar",
1547
1551
  resolve: ua
1548
1552
  }), Tt = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
@@ -1574,7 +1578,7 @@ function pa(e) {
1574
1578
  function fa(e) {
1575
1579
  return Object.prototype.toString.call(e) === "[object Uint8Array]";
1576
1580
  }
1577
- var Nn = new pe("tag:yaml.org,2002:binary", {
1581
+ var Kn = new de("tag:yaml.org,2002:binary", {
1578
1582
  kind: "scalar",
1579
1583
  resolve: ca,
1580
1584
  construct: da,
@@ -1606,7 +1610,7 @@ function ya(e) {
1606
1610
  function ha(e) {
1607
1611
  return e !== null ? e : [];
1608
1612
  }
1609
- var Fn = new pe("tag:yaml.org,2002:omap", {
1613
+ var Nn = new de("tag:yaml.org,2002:omap", {
1610
1614
  kind: "sequence",
1611
1615
  resolve: ya,
1612
1616
  construct: ha
@@ -1622,7 +1626,7 @@ function ba(e) {
1622
1626
  }
1623
1627
  return !0;
1624
1628
  }
1625
- function ka(e) {
1629
+ function Ca(e) {
1626
1630
  if (e === null)
1627
1631
  return [];
1628
1632
  var n, t, r, o, a, i = e;
@@ -1630,52 +1634,52 @@ function ka(e) {
1630
1634
  r = i[n], o = Object.keys(r), a[n] = [o[0], r[o[0]]];
1631
1635
  return a;
1632
1636
  }
1633
- var Bn = new pe("tag:yaml.org,2002:pairs", {
1637
+ var Bn = new de("tag:yaml.org,2002:pairs", {
1634
1638
  kind: "sequence",
1635
1639
  resolve: ba,
1636
- construct: ka
1637
- }), Ca = Object.prototype.hasOwnProperty;
1640
+ construct: Ca
1641
+ }), ka = Object.prototype.hasOwnProperty;
1638
1642
  function _a(e) {
1639
1643
  if (e === null)
1640
1644
  return !0;
1641
1645
  var n, t = e;
1642
1646
  for (n in t)
1643
- if (Ca.call(t, n) && t[n] !== null)
1647
+ if (ka.call(t, n) && t[n] !== null)
1644
1648
  return !1;
1645
1649
  return !0;
1646
1650
  }
1647
1651
  function wa(e) {
1648
1652
  return e !== null ? e : {};
1649
1653
  }
1650
- var Pn = new pe("tag:yaml.org,2002:set", {
1654
+ var Pn = new de("tag:yaml.org,2002:set", {
1651
1655
  kind: "mapping",
1652
1656
  resolve: _a,
1653
1657
  construct: wa
1654
1658
  }), $t = Mn.extend({
1655
1659
  implicit: [
1656
1660
  On,
1657
- Kn
1661
+ Fn
1658
1662
  ],
1659
1663
  explicit: [
1664
+ Kn,
1660
1665
  Nn,
1661
- Fn,
1662
1666
  Bn,
1663
1667
  Pn
1664
1668
  ]
1665
- }), je = Object.prototype.hasOwnProperty, ot = 1, qn = 2, Ln = 3, at = 4, yt = 1, Ia = 2, zt = 3, Aa = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, xa = /[\x85\u2028\u2029]/, Sa = /[,\[\]\{\}]/, Un = /^(?:!|!!|![a-z\-]+!)$/i, Vn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1669
+ }), je = Object.prototype.hasOwnProperty, ot = 1, Ln = 2, Un = 3, at = 4, yt = 1, Ia = 2, zt = 3, Aa = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Sa = /[\x85\u2028\u2029]/, xa = /[,\[\]\{\}]/, qn = /^(?:!|!!|![a-z\-]+!)$/i, Rn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1666
1670
  function Jt(e) {
1667
1671
  return Object.prototype.toString.call(e);
1668
1672
  }
1669
1673
  function we(e) {
1670
1674
  return e === 10 || e === 13;
1671
1675
  }
1672
- function Ke(e) {
1676
+ function Fe(e) {
1673
1677
  return e === 9 || e === 32;
1674
1678
  }
1675
- function ve(e) {
1679
+ function he(e) {
1676
1680
  return e === 9 || e === 32 || e === 10 || e === 13;
1677
1681
  }
1678
- function Le(e) {
1682
+ function Ue(e) {
1679
1683
  return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
1680
1684
  }
1681
1685
  function Ta(e) {
@@ -1688,7 +1692,7 @@ function $a(e) {
1688
1692
  function Ma(e) {
1689
1693
  return 48 <= e && e <= 57 ? e - 48 : -1;
1690
1694
  }
1691
- function Yt(e) {
1695
+ function Wt(e) {
1692
1696
  return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
1693
1697
  ` : e === 118 ? "\v" : e === 102 ? "\f" : e === 114 ? "\r" : e === 101 ? "\x1B" : e === 32 ? " " : e === 34 ? '"' : e === 47 ? "/" : e === 92 ? "\\" : e === 78 ? "…" : e === 95 ? " " : e === 76 ? "\u2028" : e === 80 ? "\u2029" : "";
1694
1698
  }
@@ -1698,9 +1702,9 @@ function ja(e) {
1698
1702
  (e - 65536 & 1023) + 56320
1699
1703
  );
1700
1704
  }
1701
- var Rn = new Array(256), Dn = new Array(256);
1705
+ var Vn = new Array(256), Dn = new Array(256);
1702
1706
  for (var Pe = 0; Pe < 256; Pe++)
1703
- Rn[Pe] = Yt(Pe) ? 1 : 0, Dn[Pe] = Yt(Pe);
1707
+ Vn[Pe] = Wt(Pe) ? 1 : 0, Dn[Pe] = Wt(Pe);
1704
1708
  function Ea(e, n) {
1705
1709
  this.input = e, this.filename = n.filename || null, this.schema = n.schema || $t, this.onWarning = n.onWarning || null, this.legacy = n.legacy || !1, this.json = n.json || !1, this.listener = n.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
1706
1710
  }
@@ -1713,7 +1717,7 @@ function Gn(e, n) {
1713
1717
  line: e.line,
1714
1718
  column: e.position - e.lineStart
1715
1719
  };
1716
- return t.snippet = Fo(t), new me(n, t);
1720
+ return t.snippet = No(t), new me(n, t);
1717
1721
  }
1718
1722
  function $(e, n) {
1719
1723
  throw Gn(e, n);
@@ -1721,14 +1725,14 @@ function $(e, n) {
1721
1725
  function it(e, n) {
1722
1726
  e.onWarning && e.onWarning.call(null, Gn(e, n));
1723
1727
  }
1724
- var Wt = {
1728
+ var Yt = {
1725
1729
  YAML: function(e, n, t) {
1726
1730
  var r, o, a;
1727
1731
  e.version !== null && $(e, "duplication of %YAML directive"), t.length !== 1 && $(e, "YAML directive accepts exactly one argument"), r = /^([0-9]+)\.([0-9]+)$/.exec(t[0]), r === null && $(e, "ill-formed argument of the YAML directive"), o = parseInt(r[1], 10), a = parseInt(r[2], 10), o !== 1 && $(e, "unacceptable YAML version of the document"), e.version = t[0], e.checkLineBreaks = a < 2, a !== 1 && a !== 2 && it(e, "unsupported YAML version of the document");
1728
1732
  },
1729
1733
  TAG: function(e, n, t) {
1730
1734
  var r, o;
1731
- t.length !== 2 && $(e, "TAG directive accepts exactly two arguments"), r = t[0], o = t[1], Un.test(r) || $(e, "ill-formed tag handle (first argument) of the TAG directive"), je.call(e.tagMap, r) && $(e, 'there is a previously declared suffix for "' + r + '" tag handle'), Vn.test(o) || $(e, "ill-formed tag prefix (second argument) of the TAG directive");
1735
+ t.length !== 2 && $(e, "TAG directive accepts exactly two arguments"), r = t[0], o = t[1], qn.test(r) || $(e, "ill-formed tag handle (first argument) of the TAG directive"), je.call(e.tagMap, r) && $(e, 'there is a previously declared suffix for "' + r + '" tag handle'), Rn.test(o) || $(e, "ill-formed tag prefix (second argument) of the TAG directive");
1732
1736
  try {
1733
1737
  o = decodeURIComponent(o);
1734
1738
  } catch {
@@ -1750,10 +1754,10 @@ function Me(e, n, t, r) {
1750
1754
  }
1751
1755
  function Zt(e, n, t, r) {
1752
1756
  var o, a, i, s;
1753
- for (ue.isObject(t) || $(e, "cannot merge mappings; the provided source object is unacceptable"), o = Object.keys(t), i = 0, s = o.length; i < s; i += 1)
1757
+ for (se.isObject(t) || $(e, "cannot merge mappings; the provided source object is unacceptable"), o = Object.keys(t), i = 0, s = o.length; i < s; i += 1)
1754
1758
  a = o[i], je.call(n, a) || (n[a] = t[a], r[a] = !0);
1755
1759
  }
1756
- function Ue(e, n, t, r, o, a, i, s, l) {
1760
+ function qe(e, n, t, r, o, a, i, s, l) {
1757
1761
  var c, d;
1758
1762
  if (Array.isArray(o))
1759
1763
  for (o = Array.prototype.slice.call(o), c = 0, d = o.length; c < d; c += 1)
@@ -1777,9 +1781,9 @@ function Mt(e) {
1777
1781
  var n;
1778
1782
  n = e.input.charCodeAt(e.position), n === 10 ? e.position++ : n === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : $(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
1779
1783
  }
1780
- function ae(e, n, t) {
1784
+ function oe(e, n, t) {
1781
1785
  for (var r = 0, o = e.input.charCodeAt(e.position); o !== 0; ) {
1782
- for (; Ke(o); )
1786
+ for (; Fe(o); )
1783
1787
  o === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), o = e.input.charCodeAt(++e.position);
1784
1788
  if (n && o === 35)
1785
1789
  do
@@ -1795,28 +1799,28 @@ function ae(e, n, t) {
1795
1799
  }
1796
1800
  function dt(e) {
1797
1801
  var n = e.position, t;
1798
- return t = e.input.charCodeAt(n), !!((t === 45 || t === 46) && t === e.input.charCodeAt(n + 1) && t === e.input.charCodeAt(n + 2) && (n += 3, t = e.input.charCodeAt(n), t === 0 || ve(t)));
1802
+ return t = e.input.charCodeAt(n), !!((t === 45 || t === 46) && t === e.input.charCodeAt(n + 1) && t === e.input.charCodeAt(n + 2) && (n += 3, t = e.input.charCodeAt(n), t === 0 || he(t)));
1799
1803
  }
1800
1804
  function jt(e, n) {
1801
- n === 1 ? e.result += " " : n > 1 && (e.result += ue.repeat(`
1805
+ n === 1 ? e.result += " " : n > 1 && (e.result += se.repeat(`
1802
1806
  `, n - 1));
1803
1807
  }
1804
1808
  function Oa(e, n, t) {
1805
- var r, o, a, i, s, l, c, d, u = e.kind, g = e.result, f;
1806
- if (f = e.input.charCodeAt(e.position), ve(f) || Le(f) || f === 35 || f === 38 || f === 42 || f === 33 || f === 124 || f === 62 || f === 39 || f === 34 || f === 37 || f === 64 || f === 96 || (f === 63 || f === 45) && (o = e.input.charCodeAt(e.position + 1), ve(o) || t && Le(o)))
1809
+ var r, o, a, i, s, l, c, d, u = e.kind, m = e.result, f;
1810
+ if (f = e.input.charCodeAt(e.position), he(f) || Ue(f) || f === 35 || f === 38 || f === 42 || f === 33 || f === 124 || f === 62 || f === 39 || f === 34 || f === 37 || f === 64 || f === 96 || (f === 63 || f === 45) && (o = e.input.charCodeAt(e.position + 1), he(o) || t && Ue(o)))
1807
1811
  return !1;
1808
1812
  for (e.kind = "scalar", e.result = "", a = i = e.position, s = !1; f !== 0; ) {
1809
1813
  if (f === 58) {
1810
- if (o = e.input.charCodeAt(e.position + 1), ve(o) || t && Le(o))
1814
+ if (o = e.input.charCodeAt(e.position + 1), he(o) || t && Ue(o))
1811
1815
  break;
1812
1816
  } else if (f === 35) {
1813
- if (r = e.input.charCodeAt(e.position - 1), ve(r))
1817
+ if (r = e.input.charCodeAt(e.position - 1), he(r))
1814
1818
  break;
1815
1819
  } else {
1816
- if (e.position === e.lineStart && dt(e) || t && Le(f))
1820
+ if (e.position === e.lineStart && dt(e) || t && Ue(f))
1817
1821
  break;
1818
1822
  if (we(f))
1819
- if (l = e.line, c = e.lineStart, d = e.lineIndent, ae(e, !1, -1), e.lineIndent >= n) {
1823
+ if (l = e.line, c = e.lineStart, d = e.lineIndent, oe(e, !1, -1), e.lineIndent >= n) {
1820
1824
  s = !0, f = e.input.charCodeAt(e.position);
1821
1825
  continue;
1822
1826
  } else {
@@ -1824,11 +1828,11 @@ function Oa(e, n, t) {
1824
1828
  break;
1825
1829
  }
1826
1830
  }
1827
- s && (Me(e, a, i, !1), jt(e, e.line - l), a = i = e.position, s = !1), Ke(f) || (i = e.position + 1), f = e.input.charCodeAt(++e.position);
1831
+ s && (Me(e, a, i, !1), jt(e, e.line - l), a = i = e.position, s = !1), Fe(f) || (i = e.position + 1), f = e.input.charCodeAt(++e.position);
1828
1832
  }
1829
- return Me(e, a, i, !1), e.result ? !0 : (e.kind = u, e.result = g, !1);
1833
+ return Me(e, a, i, !1), e.result ? !0 : (e.kind = u, e.result = m, !1);
1830
1834
  }
1831
- function Ka(e, n) {
1835
+ function Fa(e, n) {
1832
1836
  var t, r, o;
1833
1837
  if (t = e.input.charCodeAt(e.position), t !== 39)
1834
1838
  return !1;
@@ -1839,10 +1843,10 @@ function Ka(e, n) {
1839
1843
  else
1840
1844
  return !0;
1841
1845
  else
1842
- we(t) ? (Me(e, r, o, !0), jt(e, ae(e, !1, n)), r = o = e.position) : e.position === e.lineStart && dt(e) ? $(e, "unexpected end of the document within a single quoted scalar") : (e.position++, o = e.position);
1846
+ we(t) ? (Me(e, r, o, !0), jt(e, oe(e, !1, n)), r = o = e.position) : e.position === e.lineStart && dt(e) ? $(e, "unexpected end of the document within a single quoted scalar") : (e.position++, o = e.position);
1843
1847
  $(e, "unexpected end of the stream within a single quoted scalar");
1844
1848
  }
1845
- function Na(e, n) {
1849
+ function Ka(e, n) {
1846
1850
  var t, r, o, a, i, s;
1847
1851
  if (s = e.input.charCodeAt(e.position), s !== 34)
1848
1852
  return !1;
@@ -1851,8 +1855,8 @@ function Na(e, n) {
1851
1855
  return Me(e, t, e.position, !0), e.position++, !0;
1852
1856
  if (s === 92) {
1853
1857
  if (Me(e, t, e.position, !0), s = e.input.charCodeAt(++e.position), we(s))
1854
- ae(e, !1, n);
1855
- else if (s < 256 && Rn[s])
1858
+ oe(e, !1, n);
1859
+ else if (s < 256 && Vn[s])
1856
1860
  e.result += Dn[s], e.position++;
1857
1861
  else if ((i = $a(s)) > 0) {
1858
1862
  for (o = i, a = 0; o > 0; o--)
@@ -1862,22 +1866,22 @@ function Na(e, n) {
1862
1866
  $(e, "unknown escape sequence");
1863
1867
  t = r = e.position;
1864
1868
  } else
1865
- we(s) ? (Me(e, t, r, !0), jt(e, ae(e, !1, n)), t = r = e.position) : e.position === e.lineStart && dt(e) ? $(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
1869
+ we(s) ? (Me(e, t, r, !0), jt(e, oe(e, !1, n)), t = r = e.position) : e.position === e.lineStart && dt(e) ? $(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
1866
1870
  }
1867
1871
  $(e, "unexpected end of the stream within a double quoted scalar");
1868
1872
  }
1869
- function Fa(e, n) {
1870
- var t = !0, r, o, a, i = e.tag, s, l = e.anchor, c, d, u, g, f, I = /* @__PURE__ */ Object.create(null), k, p, A, C;
1871
- if (C = e.input.charCodeAt(e.position), C === 91)
1873
+ function Na(e, n) {
1874
+ var t = !0, r, o, a, i = e.tag, s, l = e.anchor, c, d, u, m, f, I = /* @__PURE__ */ Object.create(null), v, p, S, b;
1875
+ if (b = e.input.charCodeAt(e.position), b === 91)
1872
1876
  d = 93, f = !1, s = [];
1873
- else if (C === 123)
1877
+ else if (b === 123)
1874
1878
  d = 125, f = !0, s = {};
1875
1879
  else
1876
1880
  return !1;
1877
- for (e.anchor !== null && (e.anchorMap[e.anchor] = s), C = e.input.charCodeAt(++e.position); C !== 0; ) {
1878
- if (ae(e, !0, n), C = e.input.charCodeAt(e.position), C === d)
1881
+ for (e.anchor !== null && (e.anchorMap[e.anchor] = s), b = e.input.charCodeAt(++e.position); b !== 0; ) {
1882
+ if (oe(e, !0, n), b = e.input.charCodeAt(e.position), b === d)
1879
1883
  return e.position++, e.tag = i, e.anchor = l, e.kind = f ? "mapping" : "sequence", e.result = s, !0;
1880
- t ? C === 44 && $(e, "expected the node content, but found ','") : $(e, "missed comma between flow collection entries"), p = k = A = null, u = g = !1, C === 63 && (c = e.input.charCodeAt(e.position + 1), ve(c) && (u = g = !0, e.position++, ae(e, !0, n))), r = e.line, o = e.lineStart, a = e.position, Ve(e, n, ot, !1, !0), p = e.tag, k = e.result, ae(e, !0, n), C = e.input.charCodeAt(e.position), (g || e.line === r) && C === 58 && (u = !0, C = e.input.charCodeAt(++e.position), ae(e, !0, n), Ve(e, n, ot, !1, !0), A = e.result), f ? Ue(e, s, I, p, k, A, r, o, a) : u ? s.push(Ue(e, null, I, p, k, A, r, o, a)) : s.push(k), ae(e, !0, n), C = e.input.charCodeAt(e.position), C === 44 ? (t = !0, C = e.input.charCodeAt(++e.position)) : t = !1;
1884
+ t ? b === 44 && $(e, "expected the node content, but found ','") : $(e, "missed comma between flow collection entries"), p = v = S = null, u = m = !1, b === 63 && (c = e.input.charCodeAt(e.position + 1), he(c) && (u = m = !0, e.position++, oe(e, !0, n))), r = e.line, o = e.lineStart, a = e.position, Re(e, n, ot, !1, !0), p = e.tag, v = e.result, oe(e, !0, n), b = e.input.charCodeAt(e.position), (m || e.line === r) && b === 58 && (u = !0, b = e.input.charCodeAt(++e.position), oe(e, !0, n), Re(e, n, ot, !1, !0), S = e.result), f ? qe(e, s, I, p, v, S, r, o, a) : u ? s.push(qe(e, null, I, p, v, S, r, o, a)) : s.push(v), oe(e, !0, n), b = e.input.charCodeAt(e.position), b === 44 ? (t = !0, b = e.input.charCodeAt(++e.position)) : t = !1;
1881
1885
  }
1882
1886
  $(e, "unexpected end of the stream within a flow collection");
1883
1887
  }
@@ -1896,10 +1900,10 @@ function Ba(e, n) {
1896
1900
  d === 0 ? $(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : i ? $(e, "repeat of an indentation width identifier") : (s = n + d - 1, i = !0);
1897
1901
  else
1898
1902
  break;
1899
- if (Ke(u)) {
1903
+ if (Fe(u)) {
1900
1904
  do
1901
1905
  u = e.input.charCodeAt(++e.position);
1902
- while (Ke(u));
1906
+ while (Fe(u));
1903
1907
  if (u === 35)
1904
1908
  do
1905
1909
  u = e.input.charCodeAt(++e.position);
@@ -1913,15 +1917,15 @@ function Ba(e, n) {
1913
1917
  continue;
1914
1918
  }
1915
1919
  if (e.lineIndent < s) {
1916
- o === zt ? e.result += ue.repeat(`
1920
+ o === zt ? e.result += se.repeat(`
1917
1921
  `, a ? 1 + l : l) : o === yt && a && (e.result += `
1918
1922
  `);
1919
1923
  break;
1920
1924
  }
1921
- for (r ? Ke(u) ? (c = !0, e.result += ue.repeat(`
1922
- `, a ? 1 + l : l)) : c ? (c = !1, e.result += ue.repeat(`
1923
- `, l + 1)) : l === 0 ? a && (e.result += " ") : e.result += ue.repeat(`
1924
- `, l) : e.result += ue.repeat(`
1925
+ for (r ? Fe(u) ? (c = !0, e.result += se.repeat(`
1926
+ `, a ? 1 + l : l)) : c ? (c = !1, e.result += se.repeat(`
1927
+ `, l + 1)) : l === 0 ? a && (e.result += " ") : e.result += se.repeat(`
1928
+ `, l) : e.result += se.repeat(`
1925
1929
  `, a ? 1 + l : l), a = !0, i = !0, l = 0, t = e.position; !we(u) && u !== 0; )
1926
1930
  u = e.input.charCodeAt(++e.position);
1927
1931
  Me(e, t, e.position, !1);
@@ -1932,12 +1936,12 @@ function Qt(e, n) {
1932
1936
  var t, r = e.tag, o = e.anchor, a = [], i, s = !1, l;
1933
1937
  if (e.firstTabInLine !== -1)
1934
1938
  return !1;
1935
- for (e.anchor !== null && (e.anchorMap[e.anchor] = a), l = e.input.charCodeAt(e.position); l !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, $(e, "tab characters must not be used in indentation")), !(l !== 45 || (i = e.input.charCodeAt(e.position + 1), !ve(i)))); ) {
1936
- if (s = !0, e.position++, ae(e, !0, -1) && e.lineIndent <= n) {
1939
+ for (e.anchor !== null && (e.anchorMap[e.anchor] = a), l = e.input.charCodeAt(e.position); l !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, $(e, "tab characters must not be used in indentation")), !(l !== 45 || (i = e.input.charCodeAt(e.position + 1), !he(i)))); ) {
1940
+ if (s = !0, e.position++, oe(e, !0, -1) && e.lineIndent <= n) {
1937
1941
  a.push(null), l = e.input.charCodeAt(e.position);
1938
1942
  continue;
1939
1943
  }
1940
- if (t = e.line, Ve(e, n, Ln, !1, !0), a.push(e.result), ae(e, !0, -1), l = e.input.charCodeAt(e.position), (e.line === t || e.lineIndent > n) && l !== 0)
1944
+ if (t = e.line, Re(e, n, Un, !1, !0), a.push(e.result), oe(e, !0, -1), l = e.input.charCodeAt(e.position), (e.line === t || e.lineIndent > n) && l !== 0)
1941
1945
  $(e, "bad indentation of a sequence entry");
1942
1946
  else if (e.lineIndent < n)
1943
1947
  break;
@@ -1945,37 +1949,37 @@ function Qt(e, n) {
1945
1949
  return s ? (e.tag = r, e.anchor = o, e.kind = "sequence", e.result = a, !0) : !1;
1946
1950
  }
1947
1951
  function Pa(e, n, t) {
1948
- var r, o, a, i, s, l, c = e.tag, d = e.anchor, u = {}, g = /* @__PURE__ */ Object.create(null), f = null, I = null, k = null, p = !1, A = !1, C;
1952
+ var r, o, a, i, s, l, c = e.tag, d = e.anchor, u = {}, m = /* @__PURE__ */ Object.create(null), f = null, I = null, v = null, p = !1, S = !1, b;
1949
1953
  if (e.firstTabInLine !== -1)
1950
1954
  return !1;
1951
- for (e.anchor !== null && (e.anchorMap[e.anchor] = u), C = e.input.charCodeAt(e.position); C !== 0; ) {
1952
- if (!p && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, $(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), a = e.line, (C === 63 || C === 58) && ve(r))
1953
- C === 63 ? (p && (Ue(e, u, g, f, I, null, i, s, l), f = I = k = null), A = !0, p = !0, o = !0) : p ? (p = !1, o = !0) : $(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, C = r;
1955
+ for (e.anchor !== null && (e.anchorMap[e.anchor] = u), b = e.input.charCodeAt(e.position); b !== 0; ) {
1956
+ if (!p && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, $(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), a = e.line, (b === 63 || b === 58) && he(r))
1957
+ b === 63 ? (p && (qe(e, u, m, f, I, null, i, s, l), f = I = v = null), S = !0, p = !0, o = !0) : p ? (p = !1, o = !0) : $(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, b = r;
1954
1958
  else {
1955
- if (i = e.line, s = e.lineStart, l = e.position, !Ve(e, t, qn, !1, !0))
1959
+ if (i = e.line, s = e.lineStart, l = e.position, !Re(e, t, Ln, !1, !0))
1956
1960
  break;
1957
1961
  if (e.line === a) {
1958
- for (C = e.input.charCodeAt(e.position); Ke(C); )
1959
- C = e.input.charCodeAt(++e.position);
1960
- if (C === 58)
1961
- C = e.input.charCodeAt(++e.position), ve(C) || $(e, "a whitespace character is expected after the key-value separator within a block mapping"), p && (Ue(e, u, g, f, I, null, i, s, l), f = I = k = null), A = !0, p = !1, o = !1, f = e.tag, I = e.result;
1962
- else if (A)
1962
+ for (b = e.input.charCodeAt(e.position); Fe(b); )
1963
+ b = e.input.charCodeAt(++e.position);
1964
+ if (b === 58)
1965
+ b = e.input.charCodeAt(++e.position), he(b) || $(e, "a whitespace character is expected after the key-value separator within a block mapping"), p && (qe(e, u, m, f, I, null, i, s, l), f = I = v = null), S = !0, p = !1, o = !1, f = e.tag, I = e.result;
1966
+ else if (S)
1963
1967
  $(e, "can not read an implicit mapping pair; a colon is missed");
1964
1968
  else
1965
1969
  return e.tag = c, e.anchor = d, !0;
1966
- } else if (A)
1970
+ } else if (S)
1967
1971
  $(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
1968
1972
  else
1969
1973
  return e.tag = c, e.anchor = d, !0;
1970
1974
  }
1971
- if ((e.line === a || e.lineIndent > n) && (p && (i = e.line, s = e.lineStart, l = e.position), Ve(e, n, at, !0, o) && (p ? I = e.result : k = e.result), p || (Ue(e, u, g, f, I, k, i, s, l), f = I = k = null), ae(e, !0, -1), C = e.input.charCodeAt(e.position)), (e.line === a || e.lineIndent > n) && C !== 0)
1975
+ if ((e.line === a || e.lineIndent > n) && (p && (i = e.line, s = e.lineStart, l = e.position), Re(e, n, at, !0, o) && (p ? I = e.result : v = e.result), p || (qe(e, u, m, f, I, v, i, s, l), f = I = v = null), oe(e, !0, -1), b = e.input.charCodeAt(e.position)), (e.line === a || e.lineIndent > n) && b !== 0)
1972
1976
  $(e, "bad indentation of a mapping entry");
1973
1977
  else if (e.lineIndent < n)
1974
1978
  break;
1975
1979
  }
1976
- return p && Ue(e, u, g, f, I, null, i, s, l), A && (e.tag = c, e.anchor = d, e.kind = "mapping", e.result = u), A;
1980
+ return p && qe(e, u, m, f, I, null, i, s, l), S && (e.tag = c, e.anchor = d, e.kind = "mapping", e.result = u), S;
1977
1981
  }
1978
- function qa(e) {
1982
+ function La(e) {
1979
1983
  var n, t = !1, r = !1, o, a, i;
1980
1984
  if (i = e.input.charCodeAt(e.position), i !== 33)
1981
1985
  return !1;
@@ -1985,11 +1989,11 @@ function qa(e) {
1985
1989
  while (i !== 0 && i !== 62);
1986
1990
  e.position < e.length ? (a = e.input.slice(n, e.position), i = e.input.charCodeAt(++e.position)) : $(e, "unexpected end of the stream within a verbatim tag");
1987
1991
  } else {
1988
- for (; i !== 0 && !ve(i); )
1989
- i === 33 && (r ? $(e, "tag suffix cannot contain exclamation marks") : (o = e.input.slice(n - 1, e.position + 1), Un.test(o) || $(e, "named tag handle cannot contain such characters"), r = !0, n = e.position + 1)), i = e.input.charCodeAt(++e.position);
1990
- a = e.input.slice(n, e.position), Sa.test(a) && $(e, "tag suffix cannot contain flow indicator characters");
1992
+ for (; i !== 0 && !he(i); )
1993
+ i === 33 && (r ? $(e, "tag suffix cannot contain exclamation marks") : (o = e.input.slice(n - 1, e.position + 1), qn.test(o) || $(e, "named tag handle cannot contain such characters"), r = !0, n = e.position + 1)), i = e.input.charCodeAt(++e.position);
1994
+ a = e.input.slice(n, e.position), xa.test(a) && $(e, "tag suffix cannot contain flow indicator characters");
1991
1995
  }
1992
- a && !Vn.test(a) && $(e, "tag name cannot contain such characters: " + a);
1996
+ a && !Rn.test(a) && $(e, "tag name cannot contain such characters: " + a);
1993
1997
  try {
1994
1998
  a = decodeURIComponent(a);
1995
1999
  } catch {
@@ -1997,31 +2001,31 @@ function qa(e) {
1997
2001
  }
1998
2002
  return t ? e.tag = a : je.call(e.tagMap, o) ? e.tag = e.tagMap[o] + a : o === "!" ? e.tag = "!" + a : o === "!!" ? e.tag = "tag:yaml.org,2002:" + a : $(e, 'undeclared tag handle "' + o + '"'), !0;
1999
2003
  }
2000
- function La(e) {
2004
+ function Ua(e) {
2001
2005
  var n, t;
2002
2006
  if (t = e.input.charCodeAt(e.position), t !== 38)
2003
2007
  return !1;
2004
- for (e.anchor !== null && $(e, "duplication of an anchor property"), t = e.input.charCodeAt(++e.position), n = e.position; t !== 0 && !ve(t) && !Le(t); )
2008
+ for (e.anchor !== null && $(e, "duplication of an anchor property"), t = e.input.charCodeAt(++e.position), n = e.position; t !== 0 && !he(t) && !Ue(t); )
2005
2009
  t = e.input.charCodeAt(++e.position);
2006
2010
  return e.position === n && $(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(n, e.position), !0;
2007
2011
  }
2008
- function Ua(e) {
2012
+ function qa(e) {
2009
2013
  var n, t, r;
2010
2014
  if (r = e.input.charCodeAt(e.position), r !== 42)
2011
2015
  return !1;
2012
- for (r = e.input.charCodeAt(++e.position), n = e.position; r !== 0 && !ve(r) && !Le(r); )
2016
+ for (r = e.input.charCodeAt(++e.position), n = e.position; r !== 0 && !he(r) && !Ue(r); )
2013
2017
  r = e.input.charCodeAt(++e.position);
2014
- return e.position === n && $(e, "name of an alias node must contain at least one character"), t = e.input.slice(n, e.position), je.call(e.anchorMap, t) || $(e, 'unidentified alias "' + t + '"'), e.result = e.anchorMap[t], ae(e, !0, -1), !0;
2018
+ return e.position === n && $(e, "name of an alias node must contain at least one character"), t = e.input.slice(n, e.position), je.call(e.anchorMap, t) || $(e, 'unidentified alias "' + t + '"'), e.result = e.anchorMap[t], oe(e, !0, -1), !0;
2015
2019
  }
2016
- function Ve(e, n, t, r, o) {
2017
- var a, i, s, l = 1, c = !1, d = !1, u, g, f, I, k, p;
2018
- if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = i = s = at === t || Ln === t, r && ae(e, !0, -1) && (c = !0, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)), l === 1)
2019
- for (; qa(e) || La(e); )
2020
- ae(e, !0, -1) ? (c = !0, s = a, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)) : s = !1;
2021
- if (s && (s = c || o), (l === 1 || at === t) && (ot === t || qn === t ? k = n : k = n + 1, p = e.position - e.lineStart, l === 1 ? s && (Qt(e, p) || Pa(e, p, k)) || Fa(e, k) ? d = !0 : (i && Ba(e, k) || Ka(e, k) || Na(e, k) ? d = !0 : Ua(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && $(e, "alias node should not have any properties")) : Oa(e, k, ot === t) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : l === 0 && (d = s && Qt(e, p))), e.tag === null)
2020
+ function Re(e, n, t, r, o) {
2021
+ var a, i, s, l = 1, c = !1, d = !1, u, m, f, I, v, p;
2022
+ if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = i = s = at === t || Un === t, r && oe(e, !0, -1) && (c = !0, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)), l === 1)
2023
+ for (; La(e) || Ua(e); )
2024
+ oe(e, !0, -1) ? (c = !0, s = a, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)) : s = !1;
2025
+ if (s && (s = c || o), (l === 1 || at === t) && (ot === t || Ln === t ? v = n : v = n + 1, p = e.position - e.lineStart, l === 1 ? s && (Qt(e, p) || Pa(e, p, v)) || Na(e, v) ? d = !0 : (i && Ba(e, v) || Fa(e, v) || Ka(e, v) ? d = !0 : qa(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && $(e, "alias node should not have any properties")) : Oa(e, v, ot === t) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : l === 0 && (d = s && Qt(e, p))), e.tag === null)
2022
2026
  e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2023
2027
  else if (e.tag === "?") {
2024
- for (e.result !== null && e.kind !== "scalar" && $(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, g = e.implicitTypes.length; u < g; u += 1)
2028
+ for (e.result !== null && e.kind !== "scalar" && $(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, m = e.implicitTypes.length; u < m; u += 1)
2025
2029
  if (I = e.implicitTypes[u], I.resolve(e.result)) {
2026
2030
  e.result = I.construct(e.result), e.tag = I.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2027
2031
  break;
@@ -2030,7 +2034,7 @@ function Ve(e, n, t, r, o) {
2030
2034
  if (je.call(e.typeMap[e.kind || "fallback"], e.tag))
2031
2035
  I = e.typeMap[e.kind || "fallback"][e.tag];
2032
2036
  else
2033
- for (I = null, f = e.typeMap.multi[e.kind || "fallback"], u = 0, g = f.length; u < g; u += 1)
2037
+ for (I = null, f = e.typeMap.multi[e.kind || "fallback"], u = 0, m = f.length; u < m; u += 1)
2034
2038
  if (e.tag.slice(0, f[u].tag.length) === f[u].tag) {
2035
2039
  I = f[u];
2036
2040
  break;
@@ -2039,13 +2043,13 @@ function Ve(e, n, t, r, o) {
2039
2043
  }
2040
2044
  return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || d;
2041
2045
  }
2042
- function Va(e) {
2046
+ function Ra(e) {
2043
2047
  var n = e.position, t, r, o, a = !1, i;
2044
- for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (i = e.input.charCodeAt(e.position)) !== 0 && (ae(e, !0, -1), i = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || i !== 37)); ) {
2045
- for (a = !0, i = e.input.charCodeAt(++e.position), t = e.position; i !== 0 && !ve(i); )
2048
+ for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (i = e.input.charCodeAt(e.position)) !== 0 && (oe(e, !0, -1), i = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || i !== 37)); ) {
2049
+ for (a = !0, i = e.input.charCodeAt(++e.position), t = e.position; i !== 0 && !he(i); )
2046
2050
  i = e.input.charCodeAt(++e.position);
2047
2051
  for (r = e.input.slice(t, e.position), o = [], r.length < 1 && $(e, "directive name must not be less than one character in length"); i !== 0; ) {
2048
- for (; Ke(i); )
2052
+ for (; Fe(i); )
2049
2053
  i = e.input.charCodeAt(++e.position);
2050
2054
  if (i === 35) {
2051
2055
  do
@@ -2055,14 +2059,14 @@ function Va(e) {
2055
2059
  }
2056
2060
  if (we(i))
2057
2061
  break;
2058
- for (t = e.position; i !== 0 && !ve(i); )
2062
+ for (t = e.position; i !== 0 && !he(i); )
2059
2063
  i = e.input.charCodeAt(++e.position);
2060
2064
  o.push(e.input.slice(t, e.position));
2061
2065
  }
2062
- i !== 0 && Mt(e), je.call(Wt, r) ? Wt[r](e, r, o) : it(e, 'unknown document directive "' + r + '"');
2066
+ i !== 0 && Mt(e), je.call(Yt, r) ? Yt[r](e, r, o) : it(e, 'unknown document directive "' + r + '"');
2063
2067
  }
2064
- if (ae(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, ae(e, !0, -1)) : a && $(e, "directives end mark is expected"), Ve(e, e.lineIndent - 1, at, !1, !0), ae(e, !0, -1), e.checkLineBreaks && xa.test(e.input.slice(n, e.position)) && it(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && dt(e)) {
2065
- e.input.charCodeAt(e.position) === 46 && (e.position += 3, ae(e, !0, -1));
2068
+ if (oe(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, oe(e, !0, -1)) : a && $(e, "directives end mark is expected"), Re(e, e.lineIndent - 1, at, !1, !0), oe(e, !0, -1), e.checkLineBreaks && Sa.test(e.input.slice(n, e.position)) && it(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && dt(e)) {
2069
+ e.input.charCodeAt(e.position) === 46 && (e.position += 3, oe(e, !0, -1));
2066
2070
  return;
2067
2071
  }
2068
2072
  if (e.position < e.length - 1)
@@ -2077,10 +2081,10 @@ function Hn(e, n) {
2077
2081
  for (r !== -1 && (t.position = r, $(t, "null byte is not allowed in input")), t.input += "\0"; t.input.charCodeAt(t.position) === 32; )
2078
2082
  t.lineIndent += 1, t.position += 1;
2079
2083
  for (; t.position < t.length - 1; )
2080
- Va(t);
2084
+ Ra(t);
2081
2085
  return t.documents;
2082
2086
  }
2083
- function Ra(e, n, t) {
2087
+ function Va(e, n, t) {
2084
2088
  n !== null && typeof n == "object" && typeof t > "u" && (t = n, n = null);
2085
2089
  var r = Hn(e, t);
2086
2090
  if (typeof n != "function")
@@ -2096,10 +2100,10 @@ function Da(e, n) {
2096
2100
  throw new me("expected a single document in the stream, but found more");
2097
2101
  }
2098
2102
  }
2099
- var Ga = Ra, Ha = Da, zn = {
2103
+ var Ga = Va, Ha = Da, zn = {
2100
2104
  loadAll: Ga,
2101
2105
  load: Ha
2102
- }, Jn = Object.prototype.toString, Yn = Object.prototype.hasOwnProperty, Et = 65279, za = 9, Ye = 10, Ja = 13, Ya = 32, Wa = 33, Za = 34, bt = 35, Qa = 37, Xa = 38, ei = 39, ti = 42, Wn = 44, ni = 45, st = 58, ri = 61, oi = 62, ai = 63, ii = 64, Zn = 91, Qn = 93, si = 96, Xn = 123, li = 124, er = 125, fe = {};
2106
+ }, Jn = Object.prototype.toString, Wn = Object.prototype.hasOwnProperty, Et = 65279, za = 9, We = 10, Ja = 13, Wa = 32, Ya = 33, Za = 34, bt = 35, Qa = 37, Xa = 38, ei = 39, ti = 42, Yn = 44, ni = 45, st = 58, ri = 61, oi = 62, ai = 63, ii = 64, Zn = 91, Qn = 93, si = 96, Xn = 123, li = 124, er = 125, fe = {};
2103
2107
  fe[0] = "\\0";
2104
2108
  fe[7] = "\\a";
2105
2109
  fe[8] = "\\b";
@@ -2138,7 +2142,7 @@ function di(e, n) {
2138
2142
  if (n === null)
2139
2143
  return {};
2140
2144
  for (t = {}, r = Object.keys(n), o = 0, a = r.length; o < a; o += 1)
2141
- i = r[o], s = String(n[i]), i.slice(0, 2) === "!!" && (i = "tag:yaml.org,2002:" + i.slice(2)), l = e.compiledTypeMap.fallback[i], l && Yn.call(l.styleAliases, s) && (s = l.styleAliases[s]), t[i] = s;
2145
+ i = r[o], s = String(n[i]), i.slice(0, 2) === "!!" && (i = "tag:yaml.org,2002:" + i.slice(2)), l = e.compiledTypeMap.fallback[i], l && Wn.call(l.styleAliases, s) && (s = l.styleAliases[s]), t[i] = s;
2142
2146
  return t;
2143
2147
  }
2144
2148
  function pi(e) {
@@ -2151,22 +2155,22 @@ function pi(e) {
2151
2155
  t = "U", r = 8;
2152
2156
  else
2153
2157
  throw new me("code point within a string may not be greater than 0xFFFFFFFF");
2154
- return "\\" + t + ue.repeat("0", r - n.length) + n;
2158
+ return "\\" + t + se.repeat("0", r - n.length) + n;
2155
2159
  }
2156
- var fi = 1, We = 2;
2160
+ var fi = 1, Ye = 2;
2157
2161
  function mi(e) {
2158
- this.schema = e.schema || $t, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = ue.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = di(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 === '"' ? We : fi, 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;
2162
+ this.schema = e.schema || $t, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = se.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = di(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 === '"' ? Ye : fi, 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;
2159
2163
  }
2160
2164
  function Xt(e, n) {
2161
- for (var t = ue.repeat(" ", n), r = 0, o = -1, a = "", i, s = e.length; r < s; )
2165
+ for (var t = se.repeat(" ", n), r = 0, o = -1, a = "", i, s = e.length; r < s; )
2162
2166
  o = e.indexOf(`
2163
2167
  `, r), o === -1 ? (i = e.slice(r), r = s) : (i = e.slice(r, o + 1), r = o + 1), i.length && i !== `
2164
2168
  ` && (a += t), a += i;
2165
2169
  return a;
2166
2170
  }
2167
- function kt(e, n) {
2171
+ function Ct(e, n) {
2168
2172
  return `
2169
- ` + ue.repeat(" ", e.indent * n);
2173
+ ` + se.repeat(" ", e.indent * n);
2170
2174
  }
2171
2175
  function gi(e, n) {
2172
2176
  var t, r, o;
@@ -2176,13 +2180,13 @@ function gi(e, n) {
2176
2180
  return !1;
2177
2181
  }
2178
2182
  function lt(e) {
2179
- return e === Ya || e === za;
2183
+ return e === Wa || e === za;
2180
2184
  }
2181
2185
  function Ze(e) {
2182
2186
  return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== Et || 65536 <= e && e <= 1114111;
2183
2187
  }
2184
2188
  function en(e) {
2185
- return Ze(e) && e !== Et && e !== Ja && e !== Ye;
2189
+ return Ze(e) && e !== Et && e !== Ja && e !== We;
2186
2190
  }
2187
2191
  function tn(e, n, t) {
2188
2192
  var r = en(e), o = r && !lt(e);
@@ -2191,11 +2195,11 @@ function tn(e, n, t) {
2191
2195
  (t ? (
2192
2196
  // c = flow-in
2193
2197
  r
2194
- ) : r && e !== Wn && e !== Zn && e !== Qn && e !== Xn && e !== er) && e !== bt && !(n === st && !o) || en(n) && !lt(n) && e === bt || n === st && o
2198
+ ) : r && e !== Yn && e !== Zn && e !== Qn && e !== Xn && e !== er) && e !== bt && !(n === st && !o) || en(n) && !lt(n) && e === bt || n === st && o
2195
2199
  );
2196
2200
  }
2197
2201
  function yi(e) {
2198
- return Ze(e) && e !== Et && !lt(e) && e !== ni && e !== ai && e !== st && e !== Wn && e !== Zn && e !== Qn && e !== Xn && e !== er && e !== bt && e !== Xa && e !== ti && e !== Wa && e !== li && e !== ri && e !== oi && e !== ei && e !== Za && e !== Qa && e !== ii && e !== si;
2202
+ return Ze(e) && e !== Et && !lt(e) && e !== ni && e !== ai && e !== st && e !== Yn && e !== Zn && e !== Qn && e !== Xn && e !== er && e !== bt && e !== Xa && e !== ti && e !== Ya && e !== li && e !== ri && e !== oi && e !== ei && e !== Za && e !== Qa && e !== ii && e !== si;
2199
2203
  }
2200
2204
  function hi(e) {
2201
2205
  return !lt(e) && e !== st;
@@ -2208,34 +2212,34 @@ function tr(e) {
2208
2212
  var n = /^\n* /;
2209
2213
  return n.test(e);
2210
2214
  }
2211
- var nr = 1, Ct = 2, rr = 3, or = 4, qe = 5;
2215
+ var nr = 1, kt = 2, rr = 3, or = 4, Le = 5;
2212
2216
  function vi(e, n, t, r, o, a, i, s) {
2213
- var l, c = 0, d = null, u = !1, g = !1, f = r !== -1, I = -1, k = yi(He(e, 0)) && hi(He(e, e.length - 1));
2217
+ var l, c = 0, d = null, u = !1, m = !1, f = r !== -1, I = -1, v = yi(He(e, 0)) && hi(He(e, e.length - 1));
2214
2218
  if (n || i)
2215
2219
  for (l = 0; l < e.length; c >= 65536 ? l += 2 : l++) {
2216
2220
  if (c = He(e, l), !Ze(c))
2217
- return qe;
2218
- k = k && tn(c, d, s), d = c;
2221
+ return Le;
2222
+ v = v && tn(c, d, s), d = c;
2219
2223
  }
2220
2224
  else {
2221
2225
  for (l = 0; l < e.length; c >= 65536 ? l += 2 : l++) {
2222
- if (c = He(e, l), c === Ye)
2223
- u = !0, f && (g = g || // Foldable line = too long, and not more-indented.
2226
+ if (c = He(e, l), c === We)
2227
+ u = !0, f && (m = m || // Foldable line = too long, and not more-indented.
2224
2228
  l - I - 1 > r && e[I + 1] !== " ", I = l);
2225
2229
  else if (!Ze(c))
2226
- return qe;
2227
- k = k && tn(c, d, s), d = c;
2230
+ return Le;
2231
+ v = v && tn(c, d, s), d = c;
2228
2232
  }
2229
- g = g || f && l - I - 1 > r && e[I + 1] !== " ";
2233
+ m = m || f && l - I - 1 > r && e[I + 1] !== " ";
2230
2234
  }
2231
- return !u && !g ? k && !i && !o(e) ? nr : a === We ? qe : Ct : t > 9 && tr(e) ? qe : i ? a === We ? qe : Ct : g ? or : rr;
2235
+ return !u && !m ? v && !i && !o(e) ? nr : a === Ye ? Le : kt : t > 9 && tr(e) ? Le : i ? a === Ye ? Le : kt : m ? or : rr;
2232
2236
  }
2233
2237
  function bi(e, n, t, r, o) {
2234
2238
  e.dump = function() {
2235
2239
  if (n.length === 0)
2236
- return e.quotingType === We ? '""' : "''";
2240
+ return e.quotingType === Ye ? '""' : "''";
2237
2241
  if (!e.noCompatMode && (ui.indexOf(n) !== -1 || ci.test(n)))
2238
- return e.quotingType === We ? '"' + n + '"' : "'" + n + "'";
2242
+ return e.quotingType === Ye ? '"' + n + '"' : "'" + n + "'";
2239
2243
  var a = e.indent * Math.max(1, t), i = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - a), s = r || e.flowLevel > -1 && t >= e.flowLevel;
2240
2244
  function l(c) {
2241
2245
  return gi(e, c);
@@ -2252,14 +2256,14 @@ function bi(e, n, t, r, o) {
2252
2256
  )) {
2253
2257
  case nr:
2254
2258
  return n;
2255
- case Ct:
2259
+ case kt:
2256
2260
  return "'" + n.replace(/'/g, "''") + "'";
2257
2261
  case rr:
2258
2262
  return "|" + nn(n, e.indent) + rn(Xt(n, a));
2259
2263
  case or:
2260
- return ">" + nn(n, e.indent) + rn(Xt(ki(n, i), a));
2261
- case qe:
2262
- return '"' + Ci(n) + '"';
2264
+ return ">" + nn(n, e.indent) + rn(Xt(Ci(n, i), a));
2265
+ case Le:
2266
+ return '"' + ki(n) + '"';
2263
2267
  default:
2264
2268
  throw new me("impossible error: invalid scalar style");
2265
2269
  }
@@ -2277,7 +2281,7 @@ function rn(e) {
2277
2281
  return e[e.length - 1] === `
2278
2282
  ` ? e.slice(0, -1) : e;
2279
2283
  }
2280
- function ki(e, n) {
2284
+ function Ci(e, n) {
2281
2285
  for (var t = /(\n+)([^\n]*)/g, r = function() {
2282
2286
  var c = e.indexOf(`
2283
2287
  `);
@@ -2300,7 +2304,7 @@ function on(e, n) {
2300
2304
  `, e.length - o > n && i > o ? l += e.slice(o, i) + `
2301
2305
  ` + e.slice(i + 1) : l += e.slice(o), l.slice(1);
2302
2306
  }
2303
- function Ci(e) {
2307
+ function ki(e) {
2304
2308
  for (var n = "", t = 0, r, o = 0; o < e.length; t >= 65536 ? o += 2 : o++)
2305
2309
  t = He(e, o), r = fe[t], !r && Ze(t) ? (n += e[o], t >= 65536 && (n += e[o + 1])) : n += r || pi(t);
2306
2310
  return n;
@@ -2308,23 +2312,23 @@ function Ci(e) {
2308
2312
  function _i(e, n, t) {
2309
2313
  var r = "", o = e.tag, a, i, s;
2310
2314
  for (a = 0, i = t.length; a < i; a += 1)
2311
- s = t[a], e.replacer && (s = e.replacer.call(t, String(a), s)), (xe(e, n, s, !1, !1) || typeof s > "u" && xe(e, n, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
2315
+ s = t[a], e.replacer && (s = e.replacer.call(t, String(a), s)), (Se(e, n, s, !1, !1) || typeof s > "u" && Se(e, n, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
2312
2316
  e.tag = o, e.dump = "[" + r + "]";
2313
2317
  }
2314
2318
  function an(e, n, t, r) {
2315
2319
  var o = "", a = e.tag, i, s, l;
2316
2320
  for (i = 0, s = t.length; i < s; i += 1)
2317
- l = t[i], e.replacer && (l = e.replacer.call(t, String(i), l)), (xe(e, n + 1, l, !0, !0, !1, !0) || typeof l > "u" && xe(e, n + 1, null, !0, !0, !1, !0)) && ((!r || o !== "") && (o += kt(e, n)), e.dump && Ye === e.dump.charCodeAt(0) ? o += "-" : o += "- ", o += e.dump);
2321
+ l = t[i], e.replacer && (l = e.replacer.call(t, String(i), l)), (Se(e, n + 1, l, !0, !0, !1, !0) || typeof l > "u" && Se(e, n + 1, null, !0, !0, !1, !0)) && ((!r || o !== "") && (o += Ct(e, n)), e.dump && We === e.dump.charCodeAt(0) ? o += "-" : o += "- ", o += e.dump);
2318
2322
  e.tag = a, e.dump = o || "[]";
2319
2323
  }
2320
2324
  function wi(e, n, t) {
2321
2325
  var r = "", o = e.tag, a = Object.keys(t), i, s, l, c, d;
2322
2326
  for (i = 0, s = a.length; i < s; i += 1)
2323
- d = "", r !== "" && (d += ", "), e.condenseFlow && (d += '"'), l = a[i], c = t[l], e.replacer && (c = e.replacer.call(t, l, c)), xe(e, n, l, !1, !1) && (e.dump.length > 1024 && (d += "? "), d += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), xe(e, n, c, !1, !1) && (d += e.dump, r += d));
2327
+ d = "", r !== "" && (d += ", "), e.condenseFlow && (d += '"'), l = a[i], c = t[l], e.replacer && (c = e.replacer.call(t, l, c)), Se(e, n, l, !1, !1) && (e.dump.length > 1024 && (d += "? "), d += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), Se(e, n, c, !1, !1) && (d += e.dump, r += d));
2324
2328
  e.tag = o, e.dump = "{" + r + "}";
2325
2329
  }
2326
2330
  function Ii(e, n, t, r) {
2327
- var o = "", a = e.tag, i = Object.keys(t), s, l, c, d, u, g;
2331
+ var o = "", a = e.tag, i = Object.keys(t), s, l, c, d, u, m;
2328
2332
  if (e.sortKeys === !0)
2329
2333
  i.sort();
2330
2334
  else if (typeof e.sortKeys == "function")
@@ -2332,7 +2336,7 @@ function Ii(e, n, t, r) {
2332
2336
  else if (e.sortKeys)
2333
2337
  throw new me("sortKeys must be a boolean or a function");
2334
2338
  for (s = 0, l = i.length; s < l; s += 1)
2335
- g = "", (!r || o !== "") && (g += kt(e, n)), c = i[s], d = t[c], e.replacer && (d = e.replacer.call(t, c, d)), xe(e, n + 1, c, !0, !0, !0) && (u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, u && (e.dump && Ye === e.dump.charCodeAt(0) ? g += "?" : g += "? "), g += e.dump, u && (g += kt(e, n)), xe(e, n + 1, d, !0, u) && (e.dump && Ye === e.dump.charCodeAt(0) ? g += ":" : g += ": ", g += e.dump, o += g));
2339
+ m = "", (!r || o !== "") && (m += Ct(e, n)), c = i[s], d = t[c], e.replacer && (d = e.replacer.call(t, c, d)), Se(e, n + 1, c, !0, !0, !0) && (u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, u && (e.dump && We === e.dump.charCodeAt(0) ? m += "?" : m += "? "), m += e.dump, u && (m += Ct(e, n)), Se(e, n + 1, d, !0, u) && (e.dump && We === e.dump.charCodeAt(0) ? m += ":" : m += ": ", m += e.dump, o += m));
2336
2340
  e.tag = a, e.dump = o || "{}";
2337
2341
  }
2338
2342
  function sn(e, n, t) {
@@ -2342,7 +2346,7 @@ function sn(e, n, t) {
2342
2346
  if (t ? s.multi && s.representName ? e.tag = s.representName(n) : e.tag = s.tag : e.tag = "?", s.represent) {
2343
2347
  if (l = e.styleMap[s.tag] || s.defaultStyle, Jn.call(s.represent) === "[object Function]")
2344
2348
  r = s.represent(n, l);
2345
- else if (Yn.call(s.represent, l))
2349
+ else if (Wn.call(s.represent, l))
2346
2350
  r = s.represent[l](n, l);
2347
2351
  else
2348
2352
  throw new me("!<" + s.tag + '> tag resolver accepts not "' + l + '" style');
@@ -2352,18 +2356,18 @@ function sn(e, n, t) {
2352
2356
  }
2353
2357
  return !1;
2354
2358
  }
2355
- function xe(e, n, t, r, o, a, i) {
2359
+ function Se(e, n, t, r, o, a, i) {
2356
2360
  e.tag = null, e.dump = t, sn(e, t, !1) || sn(e, t, !0);
2357
2361
  var s = Jn.call(e.dump), l = r, c;
2358
2362
  r && (r = e.flowLevel < 0 || e.flowLevel > n);
2359
- var d = s === "[object Object]" || s === "[object Array]", u, g;
2360
- if (d && (u = e.duplicates.indexOf(t), g = u !== -1), (e.tag !== null && e.tag !== "?" || g || e.indent !== 2 && n > 0) && (o = !1), g && e.usedDuplicates[u])
2363
+ var d = s === "[object Object]" || s === "[object Array]", u, m;
2364
+ if (d && (u = e.duplicates.indexOf(t), m = u !== -1), (e.tag !== null && e.tag !== "?" || m || e.indent !== 2 && n > 0) && (o = !1), m && e.usedDuplicates[u])
2361
2365
  e.dump = "*ref_" + u;
2362
2366
  else {
2363
- if (d && g && !e.usedDuplicates[u] && (e.usedDuplicates[u] = !0), s === "[object Object]")
2364
- r && Object.keys(e.dump).length !== 0 ? (Ii(e, n, e.dump, o), g && (e.dump = "&ref_" + u + e.dump)) : (wi(e, n, e.dump), g && (e.dump = "&ref_" + u + " " + e.dump));
2367
+ if (d && m && !e.usedDuplicates[u] && (e.usedDuplicates[u] = !0), s === "[object Object]")
2368
+ r && Object.keys(e.dump).length !== 0 ? (Ii(e, n, e.dump, o), m && (e.dump = "&ref_" + u + e.dump)) : (wi(e, n, e.dump), m && (e.dump = "&ref_" + u + " " + e.dump));
2365
2369
  else if (s === "[object Array]")
2366
- r && e.dump.length !== 0 ? (e.noArrayIndent && !i && n > 0 ? an(e, n - 1, e.dump, o) : an(e, n, e.dump, o), g && (e.dump = "&ref_" + u + e.dump)) : (_i(e, n, e.dump), g && (e.dump = "&ref_" + u + " " + e.dump));
2370
+ r && e.dump.length !== 0 ? (e.noArrayIndent && !i && n > 0 ? an(e, n - 1, e.dump, o) : an(e, n, e.dump, o), m && (e.dump = "&ref_" + u + e.dump)) : (_i(e, n, e.dump), m && (e.dump = "&ref_" + u + " " + e.dump));
2367
2371
  else if (s === "[object String]")
2368
2372
  e.tag !== "?" && bi(e, e.dump, n, a, l);
2369
2373
  else {
@@ -2395,51 +2399,51 @@ function _t(e, n, t) {
2395
2399
  for (r = Object.keys(e), o = 0, a = r.length; o < a; o += 1)
2396
2400
  _t(e[r[o]], n, t);
2397
2401
  }
2398
- function xi(e, n) {
2402
+ function Si(e, n) {
2399
2403
  n = n || {};
2400
2404
  var t = new mi(n);
2401
2405
  t.noRefs || Ai(e, t);
2402
2406
  var r = e;
2403
- return t.replacer && (r = t.replacer.call({ "": r }, "", r)), xe(t, 0, r, !0, !0) ? t.dump + `
2407
+ return t.replacer && (r = t.replacer.call({ "": r }, "", r)), Se(t, 0, r, !0, !0) ? t.dump + `
2404
2408
  ` : "";
2405
2409
  }
2406
- var Si = xi, Ti = {
2407
- dump: Si
2410
+ var xi = Si, Ti = {
2411
+ dump: xi
2408
2412
  };
2409
2413
  function Ot(e, n) {
2410
2414
  return function() {
2411
2415
  throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + n + " instead, which is now safe by default.");
2412
2416
  };
2413
2417
  }
2414
- var $i = pe, Mi = kn, ji = In, Ei = $n, Oi = Mn, Ki = $t, Ni = zn.load, Fi = zn.loadAll, Bi = Ti.dump, Pi = me, qi = {
2415
- binary: Nn,
2418
+ var $i = de, Mi = Cn, ji = In, Ei = $n, Oi = Mn, Fi = $t, Ki = zn.load, Ni = zn.loadAll, Bi = Ti.dump, Pi = me, Li = {
2419
+ binary: Kn,
2416
2420
  float: Tn,
2417
2421
  map: wn,
2418
2422
  null: An,
2419
2423
  pairs: Bn,
2420
2424
  set: Pn,
2421
2425
  timestamp: On,
2422
- bool: xn,
2423
- int: Sn,
2424
- merge: Kn,
2425
- omap: Fn,
2426
+ bool: Sn,
2427
+ int: xn,
2428
+ merge: Fn,
2429
+ omap: Nn,
2426
2430
  seq: _n,
2427
- str: Cn
2428
- }, Li = Ot("safeLoad", "load"), Ui = Ot("safeLoadAll", "loadAll"), Vi = Ot("safeDump", "dump"), Ri = {
2431
+ str: kn
2432
+ }, Ui = Ot("safeLoad", "load"), qi = Ot("safeLoadAll", "loadAll"), Ri = Ot("safeDump", "dump"), Vi = {
2429
2433
  Type: $i,
2430
2434
  Schema: Mi,
2431
2435
  FAILSAFE_SCHEMA: ji,
2432
2436
  JSON_SCHEMA: Ei,
2433
2437
  CORE_SCHEMA: Oi,
2434
- DEFAULT_SCHEMA: Ki,
2435
- load: Ni,
2436
- loadAll: Fi,
2438
+ DEFAULT_SCHEMA: Fi,
2439
+ load: Ki,
2440
+ loadAll: Ni,
2437
2441
  dump: Bi,
2438
2442
  YAMLException: Pi,
2439
- types: qi,
2440
- safeLoad: Li,
2441
- safeLoadAll: Ui,
2442
- safeDump: Vi
2443
+ types: Li,
2444
+ safeLoad: Ui,
2445
+ safeLoadAll: qi,
2446
+ safeDump: Ri
2443
2447
  };
2444
2448
  const Di = {
2445
2449
  key: 0,
@@ -2453,7 +2457,7 @@ const Di = {
2453
2457
  }, Ji = {
2454
2458
  key: 2,
2455
2459
  class: "config-card-display-yaml"
2456
- }, Yi = /* @__PURE__ */ ie({
2460
+ }, Wi = /* @__PURE__ */ ae({
2457
2461
  __name: "ConfigCardDisplay",
2458
2462
  props: {
2459
2463
  propertyCollections: {
@@ -2479,64 +2483,64 @@ const Di = {
2479
2483
  }
2480
2484
  },
2481
2485
  setup(e) {
2482
- const n = e, t = ut(), { i18n: { t: r } } = ce.useI18n(), o = (s) => !!(s.tooltip || t[`${s.key}-label-tooltip`]), a = E(""), i = E("");
2483
- return Se(() => n.format, (s) => {
2484
- s === "json" ? a.value = JSON.stringify(n.record, null, 2) : s === "yaml" && (i.value = Ri.dump(n.record));
2486
+ const n = e, t = ut(), { i18n: { t: r } } = ue.useI18n(), o = (s) => !!(s.tooltip || t[`${s.key}-label-tooltip`]), a = O(""), i = O("");
2487
+ return xe(() => n.format, (s) => {
2488
+ s === "json" ? a.value = JSON.stringify(n.record, null, 2) : s === "yaml" && (i.value = Vi.dump(n.record));
2485
2489
  }, { immediate: !0 }), (s, l) => {
2486
- const c = P("KCodeBlock");
2487
- return m(), j(be, null, [
2488
- e.format === "structured" ? (m(), j("div", Di, [
2489
- (m(!0), j(be, null, he(e.propListTypes, (d) => (m(), j("div", {
2490
+ const c = U("KCodeBlock");
2491
+ return g(), j(ve, null, [
2492
+ e.format === "structured" ? (g(), j("div", Di, [
2493
+ (g(!0), j(ve, null, ye(e.propListTypes, (d) => (g(), j("div", {
2490
2494
  key: `config-card-details-${d}-props`,
2491
- class: Ne(`config-card-details-${d}-props`),
2495
+ class: Ke(`config-card-details-${d}-props`),
2492
2496
  "data-testid": `config-card-details-${d}-props`
2493
2497
  }, [
2494
- d !== "basic" ? (m(), j("div", Hi, K(d === "advanced" ? y(r)("baseConfigCard.sections.advanced") : y(r)("baseConfigCard.sections.plugin")), 1)) : z("", !0),
2495
- (m(!0), j(be, null, he(e.propertyCollections[d], (u) => (m(), R(St, {
2498
+ d !== "basic" ? (g(), j("div", Hi, F(d === "advanced" ? y(r)("baseConfigCard.sections.advanced") : y(r)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
2499
+ (g(!0), j(ve, null, ye(e.propertyCollections[d], (u) => (g(), V(xt, {
2496
2500
  key: u.key,
2497
2501
  item: u
2498
2502
  }, Te({
2499
- label: v(() => [
2500
- Z(s.$slots, `${u.key}-label`, { row: u }, void 0, !0)
2503
+ label: h(() => [
2504
+ Y(s.$slots, `${u.key}-label`, { row: u }, void 0, !0)
2501
2505
  ]),
2502
- [u.key]: v(({ rowValue: g }) => [
2503
- Z(s.$slots, u.key, {
2506
+ [u.key]: h(({ rowValue: m }) => [
2507
+ Y(s.$slots, u.key, {
2504
2508
  row: u,
2505
- rowValue: g
2509
+ rowValue: m
2506
2510
  }, void 0, !0)
2507
2511
  ]),
2508
2512
  _: 2
2509
2513
  }, [
2510
2514
  o(u) ? {
2511
2515
  name: "label-tooltip",
2512
- fn: v(() => [
2513
- Z(s.$slots, `${u.key}-label-tooltip`, { row: u }, void 0, !0)
2516
+ fn: h(() => [
2517
+ Y(s.$slots, `${u.key}-label-tooltip`, { row: u }, void 0, !0)
2514
2518
  ]),
2515
2519
  key: "0"
2516
2520
  } : void 0
2517
2521
  ]), 1032, ["item"]))), 128))
2518
2522
  ], 10, Gi))), 128))
2519
- ])) : z("", !0),
2520
- e.format === "json" ? (m(), j("div", zi, [
2521
- N(c, {
2523
+ ])) : G("", !0),
2524
+ e.format === "json" ? (g(), j("div", zi, [
2525
+ K(c, {
2522
2526
  id: "config-card-codeblock",
2523
2527
  code: a.value,
2524
2528
  language: "json",
2525
2529
  theme: "dark"
2526
2530
  }, null, 8, ["code"])
2527
- ])) : z("", !0),
2528
- e.format === "yaml" ? (m(), j("div", Ji, [
2529
- N(c, {
2531
+ ])) : G("", !0),
2532
+ e.format === "yaml" ? (g(), j("div", Ji, [
2533
+ K(c, {
2530
2534
  id: "config-card-codeblock",
2531
2535
  code: i.value,
2532
2536
  language: "yaml",
2533
2537
  theme: "dark"
2534
2538
  }, null, 8, ["code"])
2535
- ])) : z("", !0)
2539
+ ])) : G("", !0)
2536
2540
  ], 64);
2537
2541
  };
2538
2542
  }
2539
- }), Wi = /* @__PURE__ */ Ce(Yi, [["__scopeId", "data-v-6c45e9e4"]]), ln = "24px", Zi = (e, n) => {
2543
+ }), Yi = /* @__PURE__ */ ke(Wi, [["__scopeId", "data-v-6c45e9e4"]]), ln = "24px", Zi = (e, n) => {
2540
2544
  const t = e.__vccOpts || e;
2541
2545
  for (const [r, o] of n)
2542
2546
  t[r] = o;
@@ -2544,10 +2548,10 @@ const Di = {
2544
2548
  }, Qi = (e) => (yr("data-v-dd88a2bb"), e = e(), hr(), e), Xi = ["aria-hidden"], es = {
2545
2549
  key: 0,
2546
2550
  "data-testid": "kui-icon-svg-title"
2547
- }, ts = /* @__PURE__ */ Qi(() => /* @__PURE__ */ U("path", {
2551
+ }, ts = /* @__PURE__ */ Qi(() => /* @__PURE__ */ R("path", {
2548
2552
  d: "M14 9.9V8.2C14.55 7.96667 15.1125 7.79167 15.6875 7.675C16.2625 7.55833 16.8667 7.5 17.5 7.5C17.9333 7.5 18.3583 7.53333 18.775 7.6C19.1917 7.66667 19.6 7.75 20 7.85V9.45C19.6 9.3 19.1958 9.1875 18.7875 9.1125C18.3792 9.0375 17.95 9 17.5 9C16.8667 9 16.2583 9.07917 15.675 9.2375C15.0917 9.39583 14.5333 9.61667 14 9.9ZM14 15.4V13.7C14.55 13.4667 15.1125 13.2917 15.6875 13.175C16.2625 13.0583 16.8667 13 17.5 13C17.9333 13 18.3583 13.0333 18.775 13.1C19.1917 13.1667 19.6 13.25 20 13.35V14.95C19.6 14.8 19.1958 14.6875 18.7875 14.6125C18.3792 14.5375 17.95 14.5 17.5 14.5C16.8667 14.5 16.2583 14.575 15.675 14.725C15.0917 14.875 14.5333 15.1 14 15.4ZM14 12.65V10.95C14.55 10.7167 15.1125 10.5417 15.6875 10.425C16.2625 10.3083 16.8667 10.25 17.5 10.25C17.9333 10.25 18.3583 10.2833 18.775 10.35C19.1917 10.4167 19.6 10.5 20 10.6V12.2C19.6 12.05 19.1958 11.9375 18.7875 11.8625C18.3792 11.7875 17.95 11.75 17.5 11.75C16.8667 11.75 16.2583 11.8292 15.675 11.9875C15.0917 12.1458 14.5333 12.3667 14 12.65ZM6.5 16C7.28333 16 8.04583 16.0875 8.7875 16.2625C9.52917 16.4375 10.2667 16.7 11 17.05V7.2C10.3167 6.8 9.59167 6.5 8.825 6.3C8.05833 6.1 7.28333 6 6.5 6C5.9 6 5.30417 6.05833 4.7125 6.175C4.12083 6.29167 3.55 6.46667 3 6.7V16.6C3.58333 16.4 4.1625 16.25 4.7375 16.15C5.3125 16.05 5.9 16 6.5 16ZM13 17.05C13.7333 16.7 14.4708 16.4375 15.2125 16.2625C15.9542 16.0875 16.7167 16 17.5 16C18.1 16 18.6875 16.05 19.2625 16.15C19.8375 16.25 20.4167 16.4 21 16.6V6.7C20.45 6.46667 19.8792 6.29167 19.2875 6.175C18.6958 6.05833 18.1 6 17.5 6C16.7167 6 15.9417 6.1 15.175 6.3C14.4083 6.5 13.6833 6.8 13 7.2V17.05ZM12 20C11.2 19.3667 10.3333 18.875 9.4 18.525C8.46667 18.175 7.5 18 6.5 18C5.8 18 5.1125 18.0917 4.4375 18.275C3.7625 18.4583 3.11667 18.7167 2.5 19.05C2.15 19.2333 1.8125 19.225 1.4875 19.025C1.1625 18.825 1 18.5333 1 18.15V6.1C1 5.91667 1.04583 5.74167 1.1375 5.575C1.22917 5.40833 1.36667 5.28333 1.55 5.2C2.31667 4.8 3.11667 4.5 3.95 4.3C4.78333 4.1 5.63333 4 6.5 4C7.46667 4 8.4125 4.125 9.3375 4.375C10.2625 4.625 11.15 5 12 5.5C12.85 5 13.7375 4.625 14.6625 4.375C15.5875 4.125 16.5333 4 17.5 4C18.3667 4 19.2167 4.1 20.05 4.3C20.8833 4.5 21.6833 4.8 22.45 5.2C22.6333 5.28333 22.7708 5.40833 22.8625 5.575C22.9542 5.74167 23 5.91667 23 6.1V18.15C23 18.5333 22.8375 18.825 22.5125 19.025C22.1875 19.225 21.85 19.2333 21.5 19.05C20.8833 18.7167 20.2375 18.4583 19.5625 18.275C18.8875 18.0917 18.2 18 17.5 18C16.5 18 15.5333 18.175 14.6 18.525C13.6667 18.875 12.8 19.3667 12 20Z",
2549
2553
  fill: "currentColor"
2550
- }, null, -1)), ns = /* @__PURE__ */ ie({
2554
+ }, null, -1)), ns = /* @__PURE__ */ ae({
2551
2555
  __name: "BookIcon",
2552
2556
  props: {
2553
2557
  /** The accessibility text provided to screen readers */
@@ -2599,7 +2603,7 @@ const Di = {
2599
2603
  }
2600
2604
  },
2601
2605
  setup(e) {
2602
- const n = e, t = T(() => {
2606
+ const n = e, t = M(() => {
2603
2607
  if (typeof n.size == "number" && n.size > 0)
2604
2608
  return `${n.size}px`;
2605
2609
  if (typeof n.size == "string") {
@@ -2608,7 +2612,7 @@ const Di = {
2608
2612
  return `${a}px`;
2609
2613
  }
2610
2614
  return ln;
2611
- }), r = T(() => ({
2615
+ }), r = M(() => ({
2612
2616
  boxSizing: "border-box",
2613
2617
  color: n.color,
2614
2618
  display: n.display,
@@ -2616,14 +2620,14 @@ const Di = {
2616
2620
  lineHeight: "0",
2617
2621
  width: t.value
2618
2622
  }));
2619
- return (o, a) => (m(), R(ze(e.as), {
2623
+ return (o, a) => (g(), V(ze(e.as), {
2620
2624
  "aria-hidden": e.decorative ? "true" : void 0,
2621
2625
  class: "kui-icon book-icon",
2622
2626
  "data-testid": "kui-icon-wrapper-book-icon",
2623
2627
  style: mr(r.value)
2624
2628
  }, {
2625
- default: v(() => [
2626
- (m(), j("svg", {
2629
+ default: h(() => [
2630
+ (g(), j("svg", {
2627
2631
  "aria-hidden": e.decorative ? "true" : void 0,
2628
2632
  "data-testid": "kui-icon-svg-book-icon",
2629
2633
  fill: "none",
@@ -2633,7 +2637,7 @@ const Di = {
2633
2637
  width: "100%",
2634
2638
  xmlns: "http://www.w3.org/2000/svg"
2635
2639
  }, [
2636
- e.title ? (m(), j("title", es, K(e.title), 1)) : z("", !0),
2640
+ e.title ? (g(), j("title", es, F(e.title), 1)) : G("", !0),
2637
2641
  ts
2638
2642
  ], 8, Xi))
2639
2643
  ]),
@@ -2649,7 +2653,7 @@ const Di = {
2649
2653
  }, us = ["data-testid"], cs = {
2650
2654
  key: 0,
2651
2655
  class: "config-card-prop-section-title"
2652
- }, ds = /* @__PURE__ */ ie({
2656
+ }, ds = /* @__PURE__ */ ae({
2653
2657
  __name: "EntityBaseConfigCard",
2654
2658
  props: {
2655
2659
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -2724,7 +2728,7 @@ const Di = {
2724
2728
  emits: ["loading", "fetch:success", "fetch:error", "copy:success", "copy:error"],
2725
2729
  setup(e, { emit: n }) {
2726
2730
  var t;
2727
- const r = e, o = ut(), { i18n: { t: a } } = ce.useI18n(), { getMessageFromError: i } = ce.useErrors(), { convertKeyToTitle: s } = ce.useStringHelpers(), { axiosInstance: l } = ce.useAxios({
2731
+ const r = e, o = ut(), { i18n: { t: a } } = ue.useI18n(), { getMessageFromError: i } = ue.useErrors(), { convertKeyToTitle: s } = ue.useStringHelpers(), { axiosInstance: l } = ue.useAxios({
2728
2732
  headers: (t = r.config) == null ? void 0 : t.requestHeaders
2729
2733
  }), c = [
2730
2734
  {
@@ -2740,115 +2744,115 @@ const Di = {
2740
2744
  label: "YAML",
2741
2745
  value: "yaml"
2742
2746
  }
2743
- ], d = E("structured"), u = (w) => {
2747
+ ], d = O("structured"), u = (w) => {
2744
2748
  d.value = w == null ? void 0 : w.value;
2745
- }, g = {
2749
+ }, m = {
2746
2750
  id: {
2747
- type: ne.ID,
2751
+ type: te.ID,
2748
2752
  label: a("baseConfigCard.commonFields.id_label"),
2749
2753
  order: 0,
2750
- section: ke.Basic
2754
+ section: be.Basic
2751
2755
  },
2752
2756
  name: {
2753
2757
  order: 1,
2754
- section: ke.Basic
2758
+ section: be.Basic
2755
2759
  },
2756
2760
  enabled: {
2757
- type: ne.BadgeStatus,
2761
+ type: te.BadgeStatus,
2758
2762
  order: 2,
2759
- section: ke.Basic
2763
+ section: be.Basic
2760
2764
  },
2761
2765
  updated_at: {
2762
- type: ne.Date,
2766
+ type: te.Date,
2763
2767
  label: a("baseConfigCard.commonFields.updated_at_label"),
2764
2768
  order: 3,
2765
- section: ke.Basic
2769
+ section: be.Basic
2766
2770
  },
2767
2771
  created_at: {
2768
- type: ne.Date,
2772
+ type: te.Date,
2769
2773
  label: a("baseConfigCard.commonFields.created_at_label"),
2770
2774
  order: 4,
2771
- section: ke.Basic
2775
+ section: be.Basic
2772
2776
  },
2773
2777
  tags: {
2774
- type: ne.BadgeTag,
2778
+ type: te.BadgeTag,
2775
2779
  order: -1,
2776
2780
  // the last property displayed
2777
- section: ke.Basic
2781
+ section: be.Basic
2778
2782
  }
2779
- }, f = E(!1), I = E(!1), k = E(""), p = E(), A = T(() => {
2780
- var w, F, V;
2783
+ }, f = O(!1), I = O(!1), v = O(""), p = O(), S = M(() => {
2784
+ var w, N, B;
2781
2785
  if (!p.value)
2782
2786
  return [];
2783
- const b = [], x = Object.keys(p.value).length;
2784
- for (const S in p.value) {
2785
- const q = (F = (w = r.configSchema) == null ? void 0 : w[S]) == null ? void 0 : F.order, J = (V = g[S]) == null ? void 0 : V.order;
2786
- let X = x;
2787
- (J || J === 0) && (X = J === -1 ? x + 1 : J), q && (X = q === -1 ? x + 1 : q), b.push([S, X]);
2787
+ const k = [], x = Object.keys(p.value).length;
2788
+ for (const T in p.value) {
2789
+ const P = (N = (w = r.configSchema) == null ? void 0 : w[T]) == null ? void 0 : N.order, J = (B = m[T]) == null ? void 0 : B.order;
2790
+ let Q = x;
2791
+ (J || J === 0) && (Q = J === -1 ? x + 1 : J), P && (Q = P === -1 ? x + 1 : P), k.push([T, Q]);
2788
2792
  }
2789
- return b.sort(function(S, q) {
2790
- return S[1] - q[1];
2791
- }), b.map((S) => {
2792
- var q, J;
2793
- const X = S[0], ee = (q = p.value) == null ? void 0 : q[X], te = ((J = r.configSchema) == null ? void 0 : J[X]) || {}, le = g[X];
2793
+ return k.sort(function(T, P) {
2794
+ return T[1] - P[1];
2795
+ }), k.map((T) => {
2796
+ var P, J;
2797
+ const Q = T[0], X = (P = p.value) == null ? void 0 : P[Q], ee = ((J = r.configSchema) == null ? void 0 : J[Q]) || {}, ie = m[Q];
2794
2798
  return {
2795
- key: X,
2796
- value: ee,
2797
- hidden: te.hidden || !1,
2798
- type: te.type ?? ((le == null ? void 0 : le.type) || ne.Text),
2799
- label: te.label ?? ((le == null ? void 0 : le.label) || s(X)),
2800
- tooltip: te.tooltip ?? ((le == null ? void 0 : le.tooltip) || void 0),
2801
- section: te.section ?? ((le == null ? void 0 : le.section) || ke.Advanced)
2799
+ key: Q,
2800
+ value: X,
2801
+ hidden: ee.hidden || !1,
2802
+ type: ee.type ?? ((ie == null ? void 0 : ie.type) || te.Text),
2803
+ label: ee.label ?? ((ie == null ? void 0 : ie.label) || s(Q)),
2804
+ tooltip: ee.tooltip ?? ((ie == null ? void 0 : ie.tooltip) || void 0),
2805
+ section: ee.section ?? ((ie == null ? void 0 : ie.section) || be.Advanced)
2802
2806
  };
2803
- }).filter((S) => !S.hidden && S.key !== r.pluginConfigKey);
2804
- }), C = T(() => {
2805
- var w, F;
2807
+ }).filter((T) => !T.hidden && T.key !== r.pluginConfigKey);
2808
+ }), b = M(() => {
2809
+ var w, N;
2806
2810
  if (!p.value || !r.pluginConfigKey)
2807
2811
  return [];
2808
- const V = p.value[r.pluginConfigKey] || {}, b = Object.keys(V).length, x = [];
2809
- for (const S in V) {
2810
- const q = (F = (w = r.pluginConfigSchema) == null ? void 0 : w[S]) == null ? void 0 : F.order, J = V[S];
2811
- let X = J != null && J !== "" ? b - 1 : b;
2812
- q && (X = q === -1 ? b + 1 : q), x.push([S, X]);
2812
+ const B = p.value[r.pluginConfigKey] || {}, k = Object.keys(B).length, x = [];
2813
+ for (const T in B) {
2814
+ const P = (N = (w = r.pluginConfigSchema) == null ? void 0 : w[T]) == null ? void 0 : N.order, J = B[T];
2815
+ let Q = J != null && J !== "" ? k - 1 : k;
2816
+ P && (Q = P === -1 ? k + 1 : P), x.push([T, Q]);
2813
2817
  }
2814
- return x.sort(function(S, q) {
2815
- return S[1] - q[1];
2816
- }), x.map((S) => {
2817
- var q;
2818
- const J = S[0], X = V[J], ee = ((q = r.pluginConfigSchema) == null ? void 0 : q[J]) || {};
2818
+ return x.sort(function(T, P) {
2819
+ return T[1] - P[1];
2820
+ }), x.map((T) => {
2821
+ var P;
2822
+ const J = T[0], Q = B[J], X = ((P = r.pluginConfigSchema) == null ? void 0 : P[J]) || {};
2819
2823
  return {
2820
2824
  key: J,
2821
- value: X,
2822
- hidden: ee.hidden || !1,
2823
- type: ee.type ?? ne.Text,
2824
- label: ee.label ?? s(J),
2825
- tooltip: ee.tooltip ?? void 0,
2826
- section: ke.Plugin
2825
+ value: Q,
2826
+ hidden: X.hidden || !1,
2827
+ type: X.type ?? te.Text,
2828
+ label: X.label ?? s(J),
2829
+ tooltip: X.tooltip ?? void 0,
2830
+ section: be.Plugin
2827
2831
  };
2828
- }).filter((S) => !S.hidden);
2829
- }), O = T(() => {
2830
- var w, F, V, b;
2832
+ }).filter((T) => !T.hidden);
2833
+ }), C = M(() => {
2834
+ var w, N, B, k;
2831
2835
  return {
2832
- basic: (w = A.value) == null ? void 0 : w.filter((x) => x.section === ke.Basic),
2833
- advanced: (F = A.value) == null ? void 0 : F.filter((x) => x.section === ke.Advanced),
2834
- plugin: (b = C.value) == null ? void 0 : b.concat((V = A.value) == null ? void 0 : V.filter((x) => x.section === ke.Plugin))
2836
+ basic: (w = S.value) == null ? void 0 : w.filter((x) => x.section === be.Basic),
2837
+ advanced: (N = S.value) == null ? void 0 : N.filter((x) => x.section === be.Advanced),
2838
+ plugin: (k = b.value) == null ? void 0 : k.concat((B = S.value) == null ? void 0 : B.filter((x) => x.section === be.Plugin))
2835
2839
  };
2836
- }), h = T(() => {
2840
+ }), A = M(() => {
2837
2841
  const w = [];
2838
- return O.value.basic.length && w.push("basic"), O.value.advanced.length && w.push("advanced"), O.value.plugin.length && w.push("plugin"), w;
2839
- }), D = (w) => !!(w.tooltip || o[`${w.key}-label-tooltip`]), se = T(() => {
2840
- var w, F;
2841
- let V = `${r.config.apiBaseUrl}${r.fetchUrl}`;
2842
- return r.config.app === "konnect" ? V = V.replace(/{controlPlaneId}/gi, ((w = r.config) == null ? void 0 : w.controlPlaneId) || "") : r.config.app === "kongManager" && (V = V.replace(/\/{workspace}/gi, (F = r.config) != null && F.workspace ? `/${r.config.workspace}` : "")), V = V.replace(/{id}/gi, r.config.entityId), V;
2843
- }), Y = (w) => {
2842
+ return C.value.basic.length && w.push("basic"), C.value.advanced.length && w.push("advanced"), C.value.plugin.length && w.push("plugin"), w;
2843
+ }), ne = (w) => !!(w.tooltip || o[`${w.key}-label-tooltip`]), pe = M(() => {
2844
+ var w, N;
2845
+ let B = `${r.config.apiBaseUrl}${r.fetchUrl}`;
2846
+ return r.config.app === "konnect" ? B = B.replace(/{controlPlaneId}/gi, ((w = r.config) == null ? void 0 : w.controlPlaneId) || "") : r.config.app === "kongManager" && (B = B.replace(/\/{workspace}/gi, (N = r.config) != null && N.workspace ? `/${r.config.workspace}` : "")), B = B.replace(/{id}/gi, r.config.entityId), B;
2847
+ }), H = (w) => {
2844
2848
  p.value && w(JSON.stringify(p.value)) ? n("copy:success", p.value) : n("copy:error");
2845
2849
  };
2846
- return Se(f, (w) => {
2850
+ return xe(f, (w) => {
2847
2851
  n("loading", w);
2848
2852
  }, { immediate: !0 }), Qe(async () => {
2849
2853
  I.value = !1, f.value = !0;
2850
2854
  try {
2851
- const { data: w } = await l.get(se.value);
2855
+ const { data: w } = await l.get(pe.value);
2852
2856
  if (r.dataKey)
2853
2857
  if (typeof w[r.dataKey] < "u")
2854
2858
  p.value = { ...w[r.dataKey] };
@@ -2856,132 +2860,132 @@ const Di = {
2856
2860
  throw new Error(a("errors.dataKeyUndefined", { dataKey: r.dataKey }));
2857
2861
  else
2858
2862
  p.value = { ...w };
2859
- Object.keys(r.configSchema).filter((F) => r.configSchema[F].forceShow).forEach((F) => {
2860
- p.value && typeof p.value[F] > "u" && (p.value[F] = null);
2863
+ Object.keys(r.configSchema).filter((N) => r.configSchema[N].forceShow).forEach((N) => {
2864
+ p.value && typeof p.value[N] > "u" && (p.value[N] = null);
2861
2865
  }), n("fetch:success", w);
2862
2866
  } catch (w) {
2863
- const F = i(w);
2864
- k.value = F.startsWith("code") ? a("baseConfigCard.errors.load") : F, I.value = !0, n("fetch:error", w);
2867
+ const N = i(w);
2868
+ v.value = N.startsWith("code") ? a("baseConfigCard.errors.load") : N, I.value = !0, n("fetch:error", w);
2865
2869
  } finally {
2866
2870
  f.value = !1;
2867
2871
  }
2868
- }), (w, F) => {
2869
- const V = P("KLabel"), b = P("KSelect"), x = P("KButton"), S = P("KClipboardProvider"), q = P("KSkeleton"), J = P("KEmptyState"), X = P("KCard");
2870
- return m(), R(X, { class: "kong-ui-entity-base-config-card" }, Te({
2871
- actions: v(() => [
2872
- U("div", as, [
2873
- Z(w.$slots, "actions", {}, void 0, !0),
2874
- e.config.jsonYamlEnabled ? (m(), R(V, {
2872
+ }), (w, N) => {
2873
+ const B = U("KLabel"), k = U("KSelect"), x = U("KButton"), T = U("KClipboardProvider"), P = U("KSkeleton"), J = U("KEmptyState"), Q = U("KCard");
2874
+ return g(), V(Q, { class: "kong-ui-entity-base-config-card" }, Te({
2875
+ actions: h(() => [
2876
+ R("div", as, [
2877
+ Y(w.$slots, "actions", {}, void 0, !0),
2878
+ e.config.jsonYamlEnabled ? (g(), V(B, {
2875
2879
  key: 0,
2876
2880
  class: "config-format-select-label",
2877
2881
  "data-testid": "config-format-select-label"
2878
2882
  }, {
2879
- default: v(() => [
2880
- Q(K(e.label), 1)
2883
+ default: h(() => [
2884
+ Z(F(e.label), 1)
2881
2885
  ]),
2882
2886
  _: 1
2883
- })) : z("", !0),
2884
- e.config.jsonYamlEnabled ? (m(), R(b, {
2887
+ })) : G("", !0),
2888
+ e.config.jsonYamlEnabled ? (g(), V(k, {
2885
2889
  key: 1,
2886
2890
  appearance: "select",
2887
2891
  "data-testid": "select-config-format",
2888
2892
  items: c,
2889
2893
  onChange: u
2890
- })) : z("", !0),
2891
- r.config.jsonYamlEnabled && e.configCardDoc ? (m(), R(x, {
2894
+ })) : G("", !0),
2895
+ r.config.jsonYamlEnabled && e.configCardDoc ? (g(), V(x, {
2892
2896
  key: 2,
2893
2897
  appearance: "btn-link",
2894
2898
  class: "book-icon",
2895
2899
  "data-testid": "book-icon"
2896
2900
  }, {
2897
- default: v(() => [
2898
- U("a", {
2901
+ default: h(() => [
2902
+ R("a", {
2899
2903
  href: e.configCardDoc,
2900
2904
  rel: "noopener",
2901
2905
  target: "_blank"
2902
2906
  }, [
2903
- N(y(rs), { size: y(co) }, null, 8, ["size"])
2907
+ K(y(rs), { size: y(co) }, null, 8, ["size"])
2904
2908
  ], 8, is)
2905
2909
  ]),
2906
2910
  _: 1
2907
- })) : z("", !0),
2908
- e.config.jsonYamlEnabled ? z("", !0) : (m(), R(S, { key: 3 }, {
2909
- default: v(({ copyToClipboard: ee }) => [
2910
- !f.value && !I.value ? (m(), R(x, {
2911
+ })) : G("", !0),
2912
+ e.config.jsonYamlEnabled ? G("", !0) : (g(), V(T, { key: 3 }, {
2913
+ default: h(({ copyToClipboard: X }) => [
2914
+ !f.value && !I.value ? (g(), V(x, {
2911
2915
  key: 0,
2912
2916
  appearance: "btn-link",
2913
2917
  "data-testid": "json-copy-button",
2914
- onClick: (te) => Y(ee)
2918
+ onClick: (ee) => H(X)
2915
2919
  }, {
2916
- default: v(() => [
2917
- Q(K(y(a)("baseConfigCard.actions.copy")), 1)
2920
+ default: h(() => [
2921
+ Z(F(y(a)("baseConfigCard.actions.copy")), 1)
2918
2922
  ]),
2919
2923
  _: 2
2920
- }, 1032, ["onClick"])) : z("", !0)
2924
+ }, 1032, ["onClick"])) : G("", !0)
2921
2925
  ]),
2922
2926
  _: 1
2923
2927
  }))
2924
2928
  ])
2925
2929
  ]),
2926
- body: v(() => [
2927
- f.value ? (m(), R(q, {
2930
+ body: h(() => [
2931
+ f.value ? (g(), V(P, {
2928
2932
  key: 0,
2929
2933
  "data-testid": "config-card-loader",
2930
2934
  "table-columns": 2,
2931
2935
  type: "table"
2932
- })) : I.value ? (m(), R(J, {
2936
+ })) : I.value ? (g(), V(J, {
2933
2937
  key: 1,
2934
2938
  "data-testid": "config-card-fetch-error",
2935
2939
  "is-error": ""
2936
2940
  }, {
2937
- message: v(() => [
2938
- U("h3", null, K(k.value), 1)
2941
+ message: h(() => [
2942
+ R("h3", null, F(v.value), 1)
2939
2943
  ]),
2940
2944
  _: 1
2941
- })) : z("", !0),
2942
- e.config.jsonYamlEnabled ? (m(), j("div", ss, [
2943
- N(Wi, {
2945
+ })) : G("", !0),
2946
+ e.config.jsonYamlEnabled ? (g(), j("div", ss, [
2947
+ K(Yi, {
2944
2948
  format: d.value,
2945
- "prop-list-types": h.value,
2946
- "property-collections": O.value,
2949
+ "prop-list-types": A.value,
2950
+ "property-collections": C.value,
2947
2951
  record: p.value
2948
2952
  }, Te({ _: 2 }, [
2949
- he(Object.keys(w.$slots), (ee) => ({
2950
- name: ee,
2951
- fn: v(({ row: te, rowValue: le }) => [
2952
- Z(w.$slots, ee, {
2953
- row: te,
2954
- rowValue: le
2953
+ ye(Object.keys(w.$slots), (X) => ({
2954
+ name: X,
2955
+ fn: h(({ row: ee, rowValue: ie }) => [
2956
+ Y(w.$slots, X, {
2957
+ row: ee,
2958
+ rowValue: ie
2955
2959
  }, void 0, !0)
2956
2960
  ])
2957
2961
  }))
2958
2962
  ]), 1032, ["format", "prop-list-types", "property-collections", "record"])
2959
- ])) : (m(), j("div", ls, [
2960
- (m(!0), j(be, null, he(h.value, (ee) => (m(), j("div", {
2961
- key: `config-card-details-${ee}-props`,
2962
- class: Ne(`config-card-details-${ee}-props`),
2963
- "data-testid": `config-card-details-${ee}-props`
2963
+ ])) : (g(), j("div", ls, [
2964
+ (g(!0), j(ve, null, ye(A.value, (X) => (g(), j("div", {
2965
+ key: `config-card-details-${X}-props`,
2966
+ class: Ke(`config-card-details-${X}-props`),
2967
+ "data-testid": `config-card-details-${X}-props`
2964
2968
  }, [
2965
- ee !== "basic" ? (m(), j("div", cs, K(ee === "advanced" ? y(a)("baseConfigCard.sections.advanced") : y(a)("baseConfigCard.sections.plugin")), 1)) : z("", !0),
2966
- (m(!0), j(be, null, he(O.value[ee], (te) => (m(), R(St, {
2967
- key: te.key,
2968
- item: te
2969
+ X !== "basic" ? (g(), j("div", cs, F(X === "advanced" ? y(a)("baseConfigCard.sections.advanced") : y(a)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
2970
+ (g(!0), j(ve, null, ye(C.value[X], (ee) => (g(), V(xt, {
2971
+ key: ee.key,
2972
+ item: ee
2969
2973
  }, Te({
2970
- label: v(() => [
2971
- Z(w.$slots, `${te.key}-label`, { row: te }, void 0, !0)
2974
+ label: h(() => [
2975
+ Y(w.$slots, `${ee.key}-label`, { row: ee }, void 0, !0)
2972
2976
  ]),
2973
- [te.key]: v(({ rowValue: le }) => [
2974
- Z(w.$slots, te.key, {
2975
- row: te,
2976
- rowValue: le
2977
+ [ee.key]: h(({ rowValue: ie }) => [
2978
+ Y(w.$slots, ee.key, {
2979
+ row: ee,
2980
+ rowValue: ie
2977
2981
  }, void 0, !0)
2978
2982
  ]),
2979
2983
  _: 2
2980
2984
  }, [
2981
- D(te) ? {
2985
+ ne(ee) ? {
2982
2986
  name: "label-tooltip",
2983
- fn: v(() => [
2984
- Z(w.$slots, `${te.key}-label-tooltip`, { row: te }, void 0, !0)
2987
+ fn: h(() => [
2988
+ Y(w.$slots, `${ee.key}-label-tooltip`, { row: ee }, void 0, !0)
2985
2989
  ]),
2986
2990
  key: "0"
2987
2991
  } : void 0
@@ -2993,10 +2997,10 @@ const Di = {
2993
2997
  }, [
2994
2998
  e.hideTitle ? void 0 : {
2995
2999
  name: "title",
2996
- fn: v(() => [
2997
- U("div", os, [
2998
- Z(w.$slots, "title", {}, () => [
2999
- Q(K(y(a)("baseConfigCard.title")), 1)
3000
+ fn: h(() => [
3001
+ R("div", os, [
3002
+ Y(w.$slots, "title", {}, () => [
3003
+ Z(F(y(a)("baseConfigCard.title")), 1)
3000
3004
  ], !0)
3001
3005
  ])
3002
3006
  ]),
@@ -3005,10 +3009,10 @@ const Di = {
3005
3009
  ]), 1024);
3006
3010
  };
3007
3011
  }
3008
- }), ps = /* @__PURE__ */ Ce(ds, [["__scopeId", "data-v-64349aa2"]]), fs = ["onReset", "onSubmit"], ms = {
3012
+ }), ps = /* @__PURE__ */ ke(ds, [["__scopeId", "data-v-64349aa2"]]), fs = ["onReset", "onSubmit"], ms = {
3009
3013
  class: "form-actions",
3010
3014
  "data-testid": "form-actions"
3011
- }, gs = /* @__PURE__ */ ie({
3015
+ }, gs = /* @__PURE__ */ ae({
3012
3016
  __name: "EntityBaseForm",
3013
3017
  props: {
3014
3018
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -3058,87 +3062,87 @@ const Di = {
3058
3062
  emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel"],
3059
3063
  setup(e, { emit: n }) {
3060
3064
  var t;
3061
- const r = e, o = wt(), { i18n: { t: a } } = ce.useI18n(), { getMessageFromError: i } = ce.useErrors(), { axiosInstance: s } = ce.useAxios({
3065
+ const r = e, o = wt(), { i18n: { t: a } } = ue.useI18n(), { getMessageFromError: i } = ue.useErrors(), { axiosInstance: s } = ue.useAxios({
3062
3066
  headers: (t = r.config) == null ? void 0 : t.requestHeaders
3063
- }), l = E(!1), c = E(!1), d = E(""), u = T(() => r.canSubmit === !1 || r.isReadonly), g = T(() => {
3064
- var p, A;
3067
+ }), l = O(!1), c = O(!1), d = O(""), u = M(() => r.canSubmit === !1 || r.isReadonly), m = M(() => {
3068
+ var p, S;
3065
3069
  if (!r.editId)
3066
3070
  return "";
3067
- let C = `${r.config.apiBaseUrl}${r.fetchUrl}`;
3068
- return r.config.app === "konnect" ? C = C.replace(/{controlPlaneId}/gi, ((p = r.config) == null ? void 0 : p.controlPlaneId) || "") : r.config.app === "kongManager" && (C = C.replace(/\/{workspace}/gi, (A = r.config) != null && A.workspace ? `/${r.config.workspace}` : "")), C = C.replace(/{id}/gi, r.editId), C;
3071
+ let b = `${r.config.apiBaseUrl}${r.fetchUrl}`;
3072
+ return r.config.app === "konnect" ? b = b.replace(/{controlPlaneId}/gi, ((p = r.config) == null ? void 0 : p.controlPlaneId) || "") : r.config.app === "kongManager" && (b = b.replace(/\/{workspace}/gi, (S = r.config) != null && S.workspace ? `/${r.config.workspace}` : "")), b = b.replace(/{id}/gi, r.editId), b;
3069
3073
  }), f = () => {
3070
3074
  r.config.cancelRoute ? o.push(r.config.cancelRoute) : I();
3071
3075
  }, I = () => {
3072
3076
  n("cancel");
3073
- }, k = () => {
3077
+ }, v = () => {
3074
3078
  u.value || n("submit");
3075
3079
  };
3076
- return Se(() => l.value, (p) => {
3080
+ return xe(() => l.value, (p) => {
3077
3081
  n("loading", p);
3078
3082
  }, { immediate: !0 }), Qe(async () => {
3079
3083
  if (r.editId)
3080
3084
  try {
3081
3085
  c.value = !1, l.value = !0;
3082
- const { data: p } = await s.get(g.value);
3086
+ const { data: p } = await s.get(m.value);
3083
3087
  n("fetch:success", p);
3084
3088
  } catch (p) {
3085
- const A = i(p);
3086
- d.value = A.startsWith("code") ? a("baseForm.errors.edit") : A, c.value = !0, n("fetch:error", p);
3089
+ const S = i(p);
3090
+ d.value = S.startsWith("code") ? a("baseForm.errors.edit") : S, c.value = !0, n("fetch:error", p);
3087
3091
  } finally {
3088
3092
  l.value = !1;
3089
3093
  }
3090
- }), (p, A) => {
3091
- const C = P("KSkeleton"), O = P("KEmptyState"), h = P("KAlert"), D = P("KButton"), se = P("KCard");
3092
- return m(), R(se, { class: "kong-ui-entity-base-form" }, {
3093
- body: v(() => [
3094
- l.value ? (m(), R(C, {
3094
+ }), (p, S) => {
3095
+ const b = U("KSkeleton"), C = U("KEmptyState"), A = U("KAlert"), ne = U("KButton"), pe = U("KCard");
3096
+ return g(), V(pe, { class: "kong-ui-entity-base-form" }, {
3097
+ body: h(() => [
3098
+ l.value ? (g(), V(b, {
3095
3099
  key: 0,
3096
3100
  type: "form"
3097
- })) : c.value ? (m(), R(O, {
3101
+ })) : c.value ? (g(), V(C, {
3098
3102
  key: 1,
3099
3103
  "cta-text": y(a)("baseForm.actions.back"),
3100
3104
  "data-testid": "form-fetch-error",
3101
3105
  "handle-click": f,
3102
3106
  "is-error": !0
3103
3107
  }, {
3104
- message: v(() => [
3105
- U("h3", null, K(d.value), 1)
3108
+ message: h(() => [
3109
+ R("h3", null, F(d.value), 1)
3106
3110
  ]),
3107
3111
  _: 1
3108
- }, 8, ["cta-text"])) : (m(), j("form", {
3112
+ }, 8, ["cta-text"])) : (g(), j("form", {
3109
3113
  key: 2,
3110
3114
  "data-testid": "form-content",
3111
3115
  onReset: rt(I, ["prevent"]),
3112
- onSubmit: rt(k, ["prevent"])
3116
+ onSubmit: rt(v, ["prevent"])
3113
3117
  }, [
3114
- Z(p.$slots, "default", {}, void 0, !0),
3115
- e.errorMessage ? (m(), R(h, {
3118
+ Y(p.$slots, "default", {}, void 0, !0),
3119
+ e.errorMessage ? (g(), V(A, {
3116
3120
  key: 0,
3117
3121
  "alert-message": e.errorMessage,
3118
3122
  appearance: "danger",
3119
3123
  "data-testid": "form-error"
3120
- }, null, 8, ["alert-message"])) : z("", !0),
3121
- U("div", ms, [
3122
- Z(p.$slots, "form-actions", {}, () => [
3123
- N(D, {
3124
+ }, null, 8, ["alert-message"])) : G("", !0),
3125
+ R("div", ms, [
3126
+ Y(p.$slots, "form-actions", {}, () => [
3127
+ K(ne, {
3124
3128
  appearance: "outline",
3125
3129
  "data-testid": "form-cancel",
3126
3130
  disabled: e.isReadonly,
3127
3131
  type: "reset"
3128
3132
  }, {
3129
- default: v(() => [
3130
- Q(K(y(a)("baseForm.actions.cancel")), 1)
3133
+ default: h(() => [
3134
+ Z(F(y(a)("baseForm.actions.cancel")), 1)
3131
3135
  ]),
3132
3136
  _: 1
3133
3137
  }, 8, ["disabled"]),
3134
- N(D, {
3138
+ K(ne, {
3135
3139
  appearance: "primary",
3136
3140
  "data-testid": "form-submit",
3137
3141
  disabled: u.value,
3138
3142
  type: "submit"
3139
3143
  }, {
3140
- default: v(() => [
3141
- Q(K(y(a)("baseForm.actions.save")), 1)
3144
+ default: h(() => [
3145
+ Z(F(y(a)("baseForm.actions.save")), 1)
3142
3146
  ]),
3143
3147
  _: 1
3144
3148
  }, 8, ["disabled"])
@@ -3150,10 +3154,10 @@ const Di = {
3150
3154
  });
3151
3155
  };
3152
3156
  }
3153
- }), ys = /* @__PURE__ */ Ce(gs, [["__scopeId", "data-v-44a90aae"]]), hs = {
3157
+ }), ys = /* @__PURE__ */ ke(gs, [["__scopeId", "data-v-44a90aae"]]), hs = {
3154
3158
  key: 0,
3155
3159
  "data-testid": "first-col"
3156
- }, vs = /* @__PURE__ */ ie({
3160
+ }, vs = /* @__PURE__ */ ae({
3157
3161
  __name: "EntityBaseTableCell",
3158
3162
  props: {
3159
3163
  keyName: {
@@ -3166,68 +3170,68 @@ const Di = {
3166
3170
  }
3167
3171
  },
3168
3172
  setup(e) {
3169
- const n = e, t = T(() => {
3170
- var k;
3171
- return ((k = n.rowEl) == null ? void 0 : k.querySelector(`[data-testid="${n.keyName}"]`)) || null;
3172
- }), r = T(() => {
3173
- var k;
3174
- return ((k = t.value) == null ? void 0 : k.querySelector('[data-testid="first-col"]')) || null;
3175
- }), o = T(() => {
3176
- var k, p;
3177
- const A = (k = n.rowEl) == null ? void 0 : k.querySelectorAll("td");
3178
- return A ? ((p = A[0]) == null ? void 0 : p.getAttribute("data-testid")) === n.keyName : !1;
3173
+ const n = e, t = M(() => {
3174
+ var v;
3175
+ return ((v = n.rowEl) == null ? void 0 : v.querySelector(`[data-testid="${n.keyName}"]`)) || null;
3176
+ }), r = M(() => {
3177
+ var v;
3178
+ return ((v = t.value) == null ? void 0 : v.querySelector('[data-testid="first-col"]')) || null;
3179
+ }), o = M(() => {
3180
+ var v, p;
3181
+ const S = (v = n.rowEl) == null ? void 0 : v.querySelectorAll("td");
3182
+ return S ? ((p = S[0]) == null ? void 0 : p.getAttribute("data-testid")) === n.keyName : !1;
3179
3183
  });
3180
3184
  let a;
3181
3185
  const i = () => {
3182
3186
  a && (a.disconnect(), a = void 0);
3183
3187
  }, s = () => {
3184
- var k, p, A;
3185
- c.value = ((k = r.value) == null ? void 0 : k.getBoundingClientRect().width) || 0, d.value = ((p = t.value) == null ? void 0 : p.clientWidth) || 0, u.value = ((A = l.value) == null ? void 0 : A.innerText) || "";
3186
- }, l = E({}), c = E(0), d = E(0), u = E(""), g = T(() => [r.value, t.value]), f = Se(
3187
- g,
3188
- (k) => {
3188
+ var v, p, S;
3189
+ c.value = ((v = r.value) == null ? void 0 : v.getBoundingClientRect().width) || 0, d.value = ((p = t.value) == null ? void 0 : p.clientWidth) || 0, u.value = ((S = l.value) == null ? void 0 : S.innerText) || "";
3190
+ }, l = O({}), c = O(0), d = O(0), u = O(""), m = M(() => [r.value, t.value]), f = xe(
3191
+ m,
3192
+ (v) => {
3189
3193
  if (o.value && (i(), "ResizeObserver" in window && window)) {
3190
3194
  a = new ResizeObserver((p) => {
3191
3195
  window.requestAnimationFrame(() => {
3192
3196
  !Array.isArray(p) || !p.length || s();
3193
3197
  });
3194
3198
  });
3195
- for (const p of k)
3199
+ for (const p of v)
3196
3200
  p && a.observe(p);
3197
3201
  }
3198
3202
  },
3199
3203
  { immediate: !0, flush: "post", deep: !0 }
3200
- ), I = T(() => o.value ? c.value > d.value : !1);
3204
+ ), I = M(() => o.value ? c.value > d.value : !1);
3201
3205
  return pr(() => {
3202
3206
  s();
3203
3207
  }), fr(() => {
3204
3208
  f();
3205
- }), (k, p) => {
3206
- const A = P("KTooltip");
3207
- return m(), j("span", {
3209
+ }), (v, p) => {
3210
+ const S = U("KTooltip");
3211
+ return g(), j("span", {
3208
3212
  ref_key: "contentRef",
3209
3213
  ref: l,
3210
3214
  class: "content-wrapper"
3211
3215
  }, [
3212
- o.value ? (m(), j("span", hs, [
3213
- N(A, {
3216
+ o.value ? (g(), j("span", hs, [
3217
+ K(S, {
3214
3218
  label: I.value ? u.value : "",
3215
3219
  "max-width": "300",
3216
3220
  placement: "bottomStart"
3217
3221
  }, {
3218
- default: v(() => [
3219
- Z(k.$slots, "default", {}, void 0, !0)
3222
+ default: h(() => [
3223
+ Y(v.$slots, "default", {}, void 0, !0)
3220
3224
  ]),
3221
3225
  _: 3
3222
3226
  }, 8, ["label"])
3223
- ])) : Z(k.$slots, "default", { key: 1 }, void 0, !0)
3227
+ ])) : Y(v.$slots, "default", { key: 1 }, void 0, !0)
3224
3228
  ], 512);
3225
3229
  };
3226
3230
  }
3227
- }), bs = /* @__PURE__ */ Ce(vs, [["__scopeId", "data-v-e42a20c9"]]), ks = { class: "toolbar-container" }, Cs = {
3231
+ }), bs = /* @__PURE__ */ ke(vs, [["__scopeId", "data-v-e42a20c9"]]), Cs = { class: "toolbar-container" }, ks = {
3228
3232
  key: 0,
3229
3233
  class: "toolbar-button-container"
3230
- }, _s = ["data-testid"], ws = /* @__PURE__ */ ie({
3234
+ }, _s = ["data-testid"], ws = /* @__PURE__ */ ae({
3231
3235
  __name: "EntityBaseTable",
3232
3236
  props: {
3233
3237
  // table header configuration
@@ -3287,8 +3291,8 @@ const Di = {
3287
3291
  // error message to show in the error state
3288
3292
  // this prop being set (or empty) determines if the KTable is in an error state
3289
3293
  errorMessage: {
3290
- type: [String, Object],
3291
- default: null
3294
+ type: String,
3295
+ default: ""
3292
3296
  },
3293
3297
  disablePaginationPageJump: {
3294
3298
  type: Boolean,
@@ -3336,76 +3340,65 @@ const Di = {
3336
3340
  },
3337
3341
  emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
3338
3342
  setup(e, { emit: n }) {
3339
- const t = e, { i18n: { t: r } } = ce.useI18n(), o = T(() => {
3340
- var h, D;
3341
- return typeof t.errorMessage == "string" ? {
3342
- hasError: !!t.errorMessage,
3343
- title: t.errorMessage,
3344
- message: void 0
3345
- } : {
3346
- hasError: !!t.errorMessage,
3347
- title: (h = t.errorMessage) == null ? void 0 : h.title,
3348
- message: (D = t.errorMessage) == null ? void 0 : D.message
3349
- };
3350
- }), a = T(() => t.cacheIdentifier || t.preferencesStorageKey), i = (h) => h.hasData || !!t.query, s = T(() => {
3351
- const h = [];
3352
- return Object.keys(t.tableHeaders).forEach((D) => {
3353
- const se = t.tableHeaders[D];
3354
- h.push({
3355
- label: se.label ?? D,
3356
- key: D,
3357
- sortable: se.sortable ?? !1
3343
+ const t = e, { i18n: { t: r } } = ue.useI18n(), o = M(() => t.cacheIdentifier || t.preferencesStorageKey), a = (C) => C.hasData || !!t.query, i = M(() => {
3344
+ const C = [];
3345
+ return Object.keys(t.tableHeaders).forEach((A) => {
3346
+ const ne = t.tableHeaders[A];
3347
+ C.push({
3348
+ label: ne.label ?? A,
3349
+ key: A,
3350
+ sortable: ne.sortable ?? !1
3358
3351
  });
3359
- }), t.enableEntityActions && h.push({
3352
+ }), t.enableEntityActions && C.push({
3360
3353
  key: "actions",
3361
3354
  hideLabel: !0
3362
- }), h;
3363
- }), l = (h) => ({
3364
- "data-rowid": h.id,
3365
- "data-testid": h.name,
3366
- ...t.rowAttributes(h)
3367
- }), c = E({}), d = (h) => {
3368
- var D;
3369
- return (D = c.value) == null ? void 0 : D.$el.querySelector(`[data-rowid="${h.id}"]`);
3370
- }, u = (h) => {
3371
- const D = {
3372
- "data-testid": h.headerKey,
3373
- ...t.cellAttributes(h)
3355
+ }), C;
3356
+ }), s = (C) => ({
3357
+ "data-rowid": C.id,
3358
+ "data-testid": C.name,
3359
+ ...t.rowAttributes(C)
3360
+ }), l = O({}), c = (C) => {
3361
+ var A;
3362
+ return (A = l.value) == null ? void 0 : A.$el.querySelector(`[data-rowid="${C.id}"]`);
3363
+ }, d = (C) => {
3364
+ const A = {
3365
+ "data-testid": C.headerKey,
3366
+ ...t.cellAttributes(C)
3374
3367
  };
3375
- return h.colIndex === 0 && (D.style = {
3368
+ return C.colIndex === 0 && (A.style = {
3376
3369
  maxWidth: "250px",
3377
3370
  overflowX: "hidden",
3378
3371
  textOverflow: "ellipsis"
3379
- }), D;
3380
- }, g = () => {
3381
- n("empty-state-cta-clicked"), f();
3382
- }, f = () => {
3372
+ }), A;
3373
+ }, u = () => {
3374
+ n("empty-state-cta-clicked"), m();
3375
+ }, m = () => {
3383
3376
  n("clear-search-input");
3384
- }, I = T(() => t.disableRowClick ? void 0 : (h, D) => {
3385
- n("click:row", D);
3386
- }), k = (h) => {
3387
- n("sort", h);
3388
- }, { setTablePreferences: p, getTablePreferences: A } = Ar(), C = T(() => {
3389
- const h = A(t.preferencesStorageKey);
3377
+ }, f = M(() => t.disableRowClick ? void 0 : (C, A) => {
3378
+ n("click:row", A);
3379
+ }), I = (C) => {
3380
+ n("sort", C);
3381
+ }, { setTablePreferences: v, getTablePreferences: p } = Ar(), S = M(() => {
3382
+ const C = p(t.preferencesStorageKey);
3390
3383
  return {
3391
3384
  ...t.initialFetcherParams,
3392
- ...h
3385
+ ...C
3393
3386
  };
3394
- }), O = (h) => {
3395
- t.preferencesStorageKey && p(t.preferencesStorageKey, h);
3387
+ }), b = (C) => {
3388
+ t.preferencesStorageKey && v(t.preferencesStorageKey, C);
3396
3389
  };
3397
- return (h, D) => {
3398
- const se = P("KIcon"), Y = P("KButton"), w = P("KDropdownMenu"), F = P("KTable"), V = P("KCard");
3399
- return m(), R(V, {
3390
+ return (C, A) => {
3391
+ const ne = U("KIcon"), pe = U("KButton"), H = U("KDropdownMenu"), w = U("KTable"), N = U("KCard");
3392
+ return g(), V(N, {
3400
3393
  class: "kong-ui-entity-base-table",
3401
3394
  title: e.title
3402
3395
  }, {
3403
- body: v(() => [
3404
- N(F, {
3396
+ body: h(() => [
3397
+ K(w, {
3405
3398
  ref_key: "tableRefs",
3406
- ref: c,
3407
- "cache-identifier": a.value,
3408
- "cell-attrs": u,
3399
+ ref: l,
3400
+ "cache-identifier": o.value,
3401
+ "cell-attrs": d,
3409
3402
  "disable-pagination-page-jump": e.disablePaginationPageJump,
3410
3403
  "disable-sorting": e.disableSorting,
3411
3404
  "empty-state-action-button-icon": e.query ? "" : "plus",
@@ -3416,57 +3409,56 @@ const Di = {
3416
3409
  "empty-state-message": e.query ? y(r)("baseTable.emptyState.noSearchResultsMessage") : e.emptyStateOptions.message,
3417
3410
  "empty-state-title": e.query ? y(r)("baseTable.emptyState.noSearchResultsTitle") : e.emptyStateOptions.title,
3418
3411
  "enable-client-sort": e.enableClientSort,
3419
- "error-state-message": o.value.message,
3420
- "error-state-title": o.value.title,
3412
+ "error-state-title": e.errorMessage,
3421
3413
  fetcher: e.fetcher,
3422
3414
  "fetcher-cache-key": String(e.fetcherCacheKey),
3423
- "has-error": o.value.hasError,
3424
- headers: s.value,
3415
+ "has-error": !!e.errorMessage,
3416
+ headers: i.value,
3425
3417
  "hide-pagination-when-optional": "",
3426
- "initial-fetcher-params": C.value,
3418
+ "initial-fetcher-params": S.value,
3427
3419
  "is-loading": e.isLoading,
3428
3420
  "pagination-type": e.paginationType,
3429
- "row-attrs": l,
3421
+ "row-attrs": s,
3430
3422
  "search-input": e.query,
3431
- onKtableEmptyStateCtaClicked: g,
3432
- "onRow:click": I.value,
3433
- onSort: D[0] || (D[0] = (b) => k(b)),
3434
- "onUpdate:tablePreferences": O
3423
+ onKtableEmptyStateCtaClicked: u,
3424
+ "onRow:click": f.value,
3425
+ onSort: A[0] || (A[0] = (B) => I(B)),
3426
+ "onUpdate:tablePreferences": b
3435
3427
  }, Te({
3436
- toolbar: v(({ state: b }) => [
3437
- et(U("div", ks, [
3438
- Z(h.$slots, "toolbar-filter", {}, void 0, !0),
3439
- h.$slots["toolbar-button"] ? (m(), j("div", Cs, [
3440
- Z(h.$slots, "toolbar-button", {}, void 0, !0)
3441
- ])) : z("", !0)
3428
+ toolbar: h(({ state: B }) => [
3429
+ et(R("div", Cs, [
3430
+ Y(C.$slots, "toolbar-filter", {}, void 0, !0),
3431
+ C.$slots["toolbar-button"] ? (g(), j("div", ks, [
3432
+ Y(C.$slots, "toolbar-button", {}, void 0, !0)
3433
+ ])) : G("", !0)
3442
3434
  ], 512), [
3443
- [tt, i(b)]
3435
+ [tt, a(B)]
3444
3436
  ])
3445
3437
  ]),
3446
- actions: v(({ row: b, rowKey: x, rowValue: S }) => [
3447
- U("div", {
3438
+ actions: h(({ row: B, rowKey: k, rowValue: x }) => [
3439
+ R("div", {
3448
3440
  class: "actions-container",
3449
- "data-testid": b.name
3441
+ "data-testid": B.name
3450
3442
  }, [
3451
- N(w, {
3443
+ K(H, {
3452
3444
  "kpop-attributes": { placement: "bottomEnd" },
3453
3445
  width: e.dropdownMenuWidth
3454
3446
  }, {
3455
- items: v(() => [
3456
- Z(h.$slots, "actions", {
3457
- row: b,
3458
- rowKey: x,
3459
- rowValue: S
3447
+ items: h(() => [
3448
+ Y(C.$slots, "actions", {
3449
+ row: B,
3450
+ rowKey: k,
3451
+ rowValue: x
3460
3452
  }, void 0, !0)
3461
3453
  ]),
3462
- default: v(() => [
3463
- N(Y, {
3454
+ default: h(() => [
3455
+ K(pe, {
3464
3456
  class: "actions-trigger",
3465
3457
  "data-testid": "overflow-actions-button",
3466
3458
  size: "small"
3467
3459
  }, {
3468
- icon: v(() => [
3469
- N(se, {
3460
+ icon: h(() => [
3461
+ K(ne, {
3470
3462
  color: y(lo),
3471
3463
  icon: "more",
3472
3464
  size: "16"
@@ -3481,39 +3473,39 @@ const Di = {
3481
3473
  ]),
3482
3474
  _: 2
3483
3475
  }, [
3484
- he(e.tableHeaders, (b, x) => ({
3485
- name: x,
3486
- fn: v(({ row: S, rowKey: q, rowValue: J }) => [
3487
- N(bs, {
3488
- "key-name": String(x),
3489
- "row-el": d(S)
3476
+ ye(e.tableHeaders, (B, k) => ({
3477
+ name: k,
3478
+ fn: h(({ row: x, rowKey: T, rowValue: P }) => [
3479
+ K(bs, {
3480
+ "key-name": String(k),
3481
+ "row-el": c(x)
3490
3482
  }, {
3491
- default: v(() => [
3492
- Z(h.$slots, x, {
3493
- row: S,
3494
- rowKey: q,
3495
- rowValue: J
3483
+ default: h(() => [
3484
+ Y(C.$slots, k, {
3485
+ row: x,
3486
+ rowKey: T,
3487
+ rowValue: P
3496
3488
  }, () => [
3497
- Q(K(J), 1)
3489
+ Z(F(P), 1)
3498
3490
  ], !0)
3499
3491
  ]),
3500
3492
  _: 2
3501
3493
  }, 1032, ["key-name", "row-el"])
3502
3494
  ])
3503
3495
  }))
3504
- ]), 1032, ["cache-identifier", "disable-pagination-page-jump", "disable-sorting", "empty-state-action-button-icon", "empty-state-action-message", "empty-state-action-route", "empty-state-icon", "empty-state-message", "empty-state-title", "enable-client-sort", "error-state-message", "error-state-title", "fetcher", "fetcher-cache-key", "has-error", "headers", "initial-fetcher-params", "is-loading", "pagination-type", "search-input", "onRow:click"])
3496
+ ]), 1032, ["cache-identifier", "disable-pagination-page-jump", "disable-sorting", "empty-state-action-button-icon", "empty-state-action-message", "empty-state-action-route", "empty-state-icon", "empty-state-message", "empty-state-title", "enable-client-sort", "error-state-title", "fetcher", "fetcher-cache-key", "has-error", "headers", "initial-fetcher-params", "is-loading", "pagination-type", "search-input", "onRow:click"])
3505
3497
  ]),
3506
3498
  _: 3
3507
3499
  }, 8, ["title"]);
3508
3500
  };
3509
3501
  }
3510
- }), Is = /* @__PURE__ */ Ce(ws, [["__scopeId", "data-v-11bb0e6e"]]), As = {
3502
+ }), Is = /* @__PURE__ */ ke(ws, [["__scopeId", "data-v-6bf92df6"]]), As = {
3511
3503
  key: 0,
3512
3504
  class: "kong-ui-entity-delete-error"
3513
- }, xs = {
3505
+ }, Ss = {
3514
3506
  key: 1,
3515
3507
  class: "description"
3516
- }, Ss = /* @__PURE__ */ ie({
3508
+ }, xs = /* @__PURE__ */ ae({
3517
3509
  __name: "EntityDeleteModal",
3518
3510
  props: {
3519
3511
  visible: {
@@ -3552,14 +3544,14 @@ const Di = {
3552
3544
  },
3553
3545
  emits: ["cancel", "proceed"],
3554
3546
  setup(e, { emit: n }) {
3555
- const t = e, { i18nT: r } = ce.useI18n(), o = T(() => t.needConfirm ? t.entityName : ""), a = () => {
3547
+ const t = e, { i18nT: r } = ue.useI18n(), o = M(() => t.needConfirm ? t.entityName : ""), a = () => {
3556
3548
  n("cancel");
3557
3549
  }, i = () => {
3558
3550
  n("proceed");
3559
3551
  };
3560
3552
  return (s, l) => {
3561
- const c = P("KAlert"), d = P("KPrompt");
3562
- return m(), R(d, {
3553
+ const c = U("KAlert"), d = U("KPrompt");
3554
+ return g(), V(d, {
3563
3555
  "action-button-text": "Yes, delete",
3564
3556
  "action-pending": e.actionPending,
3565
3557
  class: "kong-ui-entity-delete-modal",
@@ -3570,44 +3562,44 @@ const Di = {
3570
3562
  onCanceled: a,
3571
3563
  onProceed: i
3572
3564
  }, {
3573
- "body-content": v(() => [
3574
- e.error ? (m(), j("div", As, [
3575
- N(c, { appearance: "danger" }, {
3576
- alertMessage: v(() => [
3577
- Q(K(e.error), 1)
3565
+ "body-content": h(() => [
3566
+ e.error ? (g(), j("div", As, [
3567
+ K(c, { appearance: "danger" }, {
3568
+ alertMessage: h(() => [
3569
+ Z(F(e.error), 1)
3578
3570
  ]),
3579
3571
  _: 1
3580
3572
  })
3581
- ])) : z("", !0),
3582
- N(y(r), {
3573
+ ])) : G("", !0),
3574
+ K(y(r), {
3583
3575
  class: "message",
3584
3576
  keypath: t.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
3585
3577
  tag: "p"
3586
3578
  }, Te({
3587
- entityType: v(() => [
3588
- Q(K(t.entityType), 1)
3579
+ entityType: h(() => [
3580
+ Z(F(t.entityType), 1)
3589
3581
  ]),
3590
3582
  _: 2
3591
3583
  }, [
3592
3584
  t.entityName ? {
3593
3585
  name: "entityName",
3594
- fn: v(() => [
3595
- U("strong", null, K(t.entityName), 1)
3586
+ fn: h(() => [
3587
+ R("strong", null, F(t.entityName), 1)
3596
3588
  ]),
3597
3589
  key: "0"
3598
3590
  } : void 0
3599
3591
  ]), 1032, ["keypath"]),
3600
- t.description || s.$slots.description ? (m(), j("div", xs, [
3601
- Z(s.$slots, "description", {}, () => [
3602
- U("p", null, K(t.description), 1)
3592
+ t.description || s.$slots.description ? (g(), j("div", Ss, [
3593
+ Y(s.$slots, "description", {}, () => [
3594
+ R("p", null, F(t.description), 1)
3603
3595
  ], !0)
3604
- ])) : z("", !0)
3596
+ ])) : G("", !0)
3605
3597
  ]),
3606
3598
  _: 3
3607
3599
  }, 8, ["action-pending", "confirmation-text", "is-visible", "title"]);
3608
3600
  };
3609
3601
  }
3610
- }), Ts = /* @__PURE__ */ Ce(Ss, [["__scopeId", "data-v-1c9a2a07"]]), $s = {
3602
+ }), Ts = /* @__PURE__ */ ke(xs, [["__scopeId", "data-v-1c9a2a07"]]), $s = {
3611
3603
  fill: "none",
3612
3604
  height: "20",
3613
3605
  viewBox: "0 0 20 20",
@@ -3621,7 +3613,7 @@ const Di = {
3621
3613
  width: "20",
3622
3614
  x: "0",
3623
3615
  y: "0"
3624
- }, js = ["fill"], Es = { mask: "url(#mask0_180_20349)" }, Os = ["fill"], Ks = /* @__PURE__ */ ie({
3616
+ }, js = ["fill"], Es = { mask: "url(#mask0_180_20349)" }, Os = ["fill"], Fs = /* @__PURE__ */ ae({
3625
3617
  __name: "IconFilter",
3626
3618
  props: {
3627
3619
  color: {
@@ -3630,26 +3622,26 @@ const Di = {
3630
3622
  }
3631
3623
  },
3632
3624
  setup(e) {
3633
- return (n, t) => (m(), j("svg", $s, [
3634
- U("mask", Ms, [
3635
- U("rect", {
3625
+ return (n, t) => (g(), j("svg", $s, [
3626
+ R("mask", Ms, [
3627
+ R("rect", {
3636
3628
  fill: e.color,
3637
3629
  height: "20",
3638
3630
  width: "20"
3639
3631
  }, null, 8, js)
3640
3632
  ]),
3641
- U("g", Es, [
3642
- U("path", {
3633
+ R("g", Es, [
3634
+ R("path", {
3643
3635
  d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
3644
3636
  fill: e.color
3645
3637
  }, null, 8, Os)
3646
3638
  ])
3647
3639
  ]));
3648
3640
  }
3649
- }), Ns = {
3641
+ }), Ks = {
3650
3642
  key: 1,
3651
3643
  class: "kong-ui-entity-filter"
3652
- }, Fs = { class: "menu-item-title" }, Bs = { class: "menu-item-indicator" }, Ps = { class: "menu-item-body" }, qs = ["for"], Ls = { class: "menu-item-buttons" }, Us = /* @__PURE__ */ ie({
3644
+ }, Ns = { class: "menu-item-title" }, Bs = { class: "menu-item-indicator" }, Ps = { class: "menu-item-body" }, Ls = ["for"], Us = { class: "menu-item-buttons" }, qs = /* @__PURE__ */ ae({
3653
3645
  __name: "EntityFilter",
3654
3646
  props: {
3655
3647
  // filter config, either exact match or fuzzy match
@@ -3669,21 +3661,21 @@ const Di = {
3669
3661
  },
3670
3662
  emits: ["update:modelValue"],
3671
3663
  setup(e, { emit: n }) {
3672
- const t = e, { i18n: { t: r } } = ce.useI18n(), o = E(!1), a = E({}), i = T(() => {
3664
+ const t = e, { i18n: { t: r } } = ue.useI18n(), o = O(!1), a = O({}), i = M(() => {
3673
3665
  const p = [];
3674
- return new URLSearchParams(t.modelValue).forEach((A, C) => {
3675
- A !== "" && p.push(C);
3666
+ return new URLSearchParams(t.modelValue).forEach((S, b) => {
3667
+ S !== "" && p.push(b);
3676
3668
  }), p;
3677
- }), s = T(() => {
3669
+ }), s = M(() => {
3678
3670
  const p = t.config.fields;
3679
- return Object.keys(p).filter((A) => p[A].searchable).map((A) => ({
3680
- label: p[A].label || A,
3681
- value: A
3671
+ return Object.keys(p).filter((S) => p[S].searchable).map((S) => ({
3672
+ label: p[S].label || S,
3673
+ value: S
3682
3674
  }));
3683
3675
  });
3684
- Se(() => t.modelValue, (p) => {
3685
- a.value = {}, new URLSearchParams(p).forEach((A, C) => {
3686
- a.value[C] = A;
3676
+ xe(() => t.modelValue, (p) => {
3677
+ a.value = {}, new URLSearchParams(p).forEach((S, b) => {
3678
+ a.value[b] = S;
3687
3679
  });
3688
3680
  });
3689
3681
  const l = () => {
@@ -3691,28 +3683,28 @@ const Di = {
3691
3683
  }, c = (p) => {
3692
3684
  n("update:modelValue", p);
3693
3685
  }, d = (p) => `filter-${p}`, u = (p) => {
3694
- var A, C;
3695
- return (((C = (A = t.config.schema) == null ? void 0 : A[p]) == null ? void 0 : C.values) ?? []).map((O) => ({
3696
- value: O,
3697
- label: O
3686
+ var S, b;
3687
+ return (((b = (S = t.config.schema) == null ? void 0 : S[p]) == null ? void 0 : b.values) ?? []).map((C) => ({
3688
+ value: C,
3689
+ label: C
3698
3690
  }));
3699
- }, g = (p) => {
3700
- var A, C;
3701
- return ((C = (A = t.config.schema) == null ? void 0 : A[p]) == null ? void 0 : C.type) ?? "text";
3691
+ }, m = (p) => {
3692
+ var S, b;
3693
+ return ((b = (S = t.config.schema) == null ? void 0 : S[p]) == null ? void 0 : b.type) ?? "text";
3702
3694
  }, f = (p) => {
3703
3695
  a.value = {
3704
3696
  ...a.value,
3705
3697
  [p]: ""
3706
- }, k();
3698
+ }, v();
3707
3699
  }, I = () => {
3708
- a.value = {}, k(!0);
3709
- }, k = (p = !1) => {
3710
- const A = Object.keys(a.value).reduce((C, O) => (a.value[O] && (C[O] = `${a.value[O]}`), C), {});
3711
- p && (o.value = !1), n("update:modelValue", new URLSearchParams(A).toString());
3700
+ a.value = {}, v(!0);
3701
+ }, v = (p = !1) => {
3702
+ const S = Object.keys(a.value).reduce((b, C) => (a.value[C] && (b[C] = `${a.value[C]}`), b), {});
3703
+ p && (o.value = !1), n("update:modelValue", new URLSearchParams(S).toString());
3712
3704
  };
3713
- return (p, A) => {
3714
- const C = P("KInput"), O = P("KButton"), h = P("KSelect"), D = P("KMenuItem"), se = P("KMenu");
3715
- return e.config.isExactMatch ? (m(), R(C, {
3705
+ return (p, S) => {
3706
+ const b = U("KInput"), C = U("KButton"), A = U("KSelect"), ne = U("KMenuItem"), pe = U("KMenu");
3707
+ return e.config.isExactMatch ? (g(), V(b, {
3716
3708
  key: 0,
3717
3709
  autocomplete: "off",
3718
3710
  class: "kong-ui-entity-filter-input",
@@ -3721,91 +3713,91 @@ const Di = {
3721
3713
  placeholder: e.config.placeholder,
3722
3714
  "onUpdate:modelValue": c
3723
3715
  }, {
3724
- icon: v(() => [
3725
- N(Ks)
3716
+ icon: h(() => [
3717
+ K(Fs)
3726
3718
  ]),
3727
3719
  _: 1
3728
- }, 8, ["model-value", "placeholder"])) : (m(), j("div", Ns, [
3729
- N(O, {
3720
+ }, 8, ["model-value", "placeholder"])) : (g(), j("div", Ks, [
3721
+ K(C, {
3730
3722
  appearance: "btn-link",
3731
3723
  "data-testid": "filter-button",
3732
3724
  icon: "filter",
3733
3725
  onClick: l
3734
3726
  }, {
3735
- default: v(() => [
3736
- Q(K(y(r)("filter.filterButtonText")) + " " + K(i.value.length > 0 ? `(${i.value.length})` : ""), 1)
3727
+ default: h(() => [
3728
+ Z(F(y(r)("filter.filterButtonText")) + " " + F(i.value.length > 0 ? `(${i.value.length})` : ""), 1)
3737
3729
  ]),
3738
3730
  _: 1
3739
3731
  }),
3740
- et(U("div", {
3732
+ et(R("div", {
3741
3733
  class: "kong-ui-entity-filter-backdrop",
3742
3734
  onClick: l
3743
3735
  }, null, 512), [
3744
3736
  [tt, o.value]
3745
3737
  ]),
3746
- et(N(se, { class: "kong-ui-entity-filter-menu" }, {
3747
- body: v(() => [
3748
- (m(!0), j(be, null, he(s.value, (Y, w) => (m(), R(D, {
3749
- key: Y.value,
3750
- "data-testid": Y.value,
3738
+ et(K(pe, { class: "kong-ui-entity-filter-menu" }, {
3739
+ body: h(() => [
3740
+ (g(!0), j(ve, null, ye(s.value, (H, w) => (g(), V(ne, {
3741
+ key: H.value,
3742
+ "data-testid": H.value,
3751
3743
  expandable: "",
3752
3744
  "last-menu-item": w === s.value.length - 1
3753
3745
  }, {
3754
- itemTitle: v(() => [
3755
- U("span", Fs, [
3756
- Q(K(Y.label) + " ", 1),
3757
- et(U("span", Bs, null, 512), [
3758
- [tt, i.value.includes(Y.value)]
3746
+ itemTitle: h(() => [
3747
+ R("span", Ns, [
3748
+ Z(F(H.label) + " ", 1),
3749
+ et(R("span", Bs, null, 512), [
3750
+ [tt, i.value.includes(H.value)]
3759
3751
  ])
3760
3752
  ])
3761
3753
  ]),
3762
- itemBody: v(() => {
3763
- var F, V;
3754
+ itemBody: h(() => {
3755
+ var N, B;
3764
3756
  return [
3765
- U("div", Ps, [
3766
- U("label", {
3757
+ R("div", Ps, [
3758
+ R("label", {
3767
3759
  class: "menu-item-label",
3768
- for: d(Y.value)
3769
- }, K(y(r)("filter.fieldLabel")), 9, qs),
3770
- ((V = (F = e.config.schema) == null ? void 0 : F[Y.value]) == null ? void 0 : V.type) === "select" ? (m(), R(h, {
3760
+ for: d(H.value)
3761
+ }, F(y(r)("filter.fieldLabel")), 9, Ls),
3762
+ ((B = (N = e.config.schema) == null ? void 0 : N[H.value]) == null ? void 0 : B.type) === "select" ? (g(), V(A, {
3771
3763
  key: 0,
3772
- id: d(Y.value),
3773
- modelValue: a.value[Y.value],
3774
- "onUpdate:modelValue": (b) => a.value[Y.value] = b,
3764
+ id: d(H.value),
3765
+ modelValue: a.value[H.value],
3766
+ "onUpdate:modelValue": (k) => a.value[H.value] = k,
3775
3767
  appearance: "select",
3776
- items: u(Y.value),
3768
+ items: u(H.value),
3777
3769
  placeholder: y(r)("filter.selectPlaceholder")
3778
- }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (m(), R(C, {
3770
+ }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (g(), V(b, {
3779
3771
  key: 1,
3780
- id: d(Y.value),
3781
- modelValue: a.value[Y.value],
3782
- "onUpdate:modelValue": (b) => a.value[Y.value] = b,
3772
+ id: d(H.value),
3773
+ modelValue: a.value[H.value],
3774
+ "onUpdate:modelValue": (k) => a.value[H.value] = k,
3783
3775
  autocomplete: "off",
3784
3776
  placeholder: y(r)("filter.inputPlaceholder"),
3785
3777
  size: "small",
3786
- type: g(Y.value)
3778
+ type: m(H.value)
3787
3779
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
3788
3780
  ]),
3789
- U("div", Ls, [
3790
- N(O, {
3781
+ R("div", Us, [
3782
+ K(C, {
3791
3783
  appearance: "btn-link",
3792
3784
  "data-testid": "apply-filter",
3793
3785
  size: "small",
3794
- onClick: A[0] || (A[0] = (b) => k(!0))
3786
+ onClick: S[0] || (S[0] = (k) => v(!0))
3795
3787
  }, {
3796
- default: v(() => [
3797
- Q(K(y(r)("filter.applyButtonText")), 1)
3788
+ default: h(() => [
3789
+ Z(F(y(r)("filter.applyButtonText")), 1)
3798
3790
  ]),
3799
3791
  _: 1
3800
3792
  }),
3801
- N(O, {
3793
+ K(C, {
3802
3794
  appearance: "btn-link",
3803
3795
  "data-testid": "clear-filter",
3804
3796
  size: "small",
3805
- onClick: (b) => f(Y.value)
3797
+ onClick: (k) => f(H.value)
3806
3798
  }, {
3807
- default: v(() => [
3808
- Q(K(y(r)("filter.clearButtonText")), 1)
3799
+ default: h(() => [
3800
+ Z(F(y(r)("filter.clearButtonText")), 1)
3809
3801
  ]),
3810
3802
  _: 2
3811
3803
  }, 1032, ["onClick"])
@@ -3815,10 +3807,10 @@ const Di = {
3815
3807
  _: 2
3816
3808
  }, 1032, ["data-testid", "last-menu-item"]))), 128))
3817
3809
  ]),
3818
- actionButton: v(() => [
3819
- N(O, { onClick: I }, {
3820
- default: v(() => [
3821
- Q(K(y(r)("filter.clearAllButtonText")), 1)
3810
+ actionButton: h(() => [
3811
+ K(C, { onClick: I }, {
3812
+ default: h(() => [
3813
+ Z(F(y(r)("filter.clearAllButtonText")), 1)
3822
3814
  ]),
3823
3815
  _: 1
3824
3816
  })
@@ -3830,7 +3822,7 @@ const Di = {
3830
3822
  ]));
3831
3823
  };
3832
3824
  }
3833
- }), Vs = /* @__PURE__ */ Ce(Us, [["__scopeId", "data-v-745f38c0"]]), Xe = /* @__PURE__ */ ie({
3825
+ }), Rs = /* @__PURE__ */ ke(qs, [["__scopeId", "data-v-745f38c0"]]), Xe = /* @__PURE__ */ ae({
3834
3826
  __name: "PermissionsWrapper",
3835
3827
  props: {
3836
3828
  /**
@@ -3852,15 +3844,15 @@ const Di = {
3852
3844
  }
3853
3845
  },
3854
3846
  setup(e) {
3855
- const n = e, t = E(void 0), r = T(() => t.value === !0 || t.value !== void 0 && n.forceShow === !0);
3856
- return Se(() => n.authFunction, async () => {
3847
+ const n = e, t = O(void 0), r = M(() => t.value === !0 || t.value !== void 0 && n.forceShow === !0);
3848
+ return xe(() => n.authFunction, async () => {
3857
3849
  t.value = await n.authFunction();
3858
- }, { immediate: !0 }), (o, a) => r.value ? Z(o.$slots, "default", {
3850
+ }, { immediate: !0 }), (o, a) => r.value ? Y(o.$slots, "default", {
3859
3851
  key: 0,
3860
3852
  isAllowed: t.value
3861
- }) : z("", !0);
3853
+ }) : G("", !0);
3862
3854
  }
3863
- }), Rs = { class: "form-section-wrapper" }, Ds = {
3855
+ }), Vs = { class: "form-section-wrapper" }, Ds = {
3864
3856
  key: 0,
3865
3857
  class: "form-section-title"
3866
3858
  }, Gs = {
@@ -3869,7 +3861,7 @@ const Di = {
3869
3861
  }, Hs = {
3870
3862
  key: 2,
3871
3863
  class: "form-section-footer"
3872
- }, zs = { class: "form-section-content" }, Js = /* @__PURE__ */ ie({
3864
+ }, zs = { class: "form-section-content" }, Js = /* @__PURE__ */ ae({
3873
3865
  __name: "EntityFormSection",
3874
3866
  props: {
3875
3867
  title: {
@@ -3895,35 +3887,35 @@ const Di = {
3895
3887
  },
3896
3888
  setup(e) {
3897
3889
  const n = ut();
3898
- return (t, r) => (m(), j("fieldset", {
3899
- class: Ne(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
3890
+ return (t, r) => (g(), j("fieldset", {
3891
+ class: Ke(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
3900
3892
  }, [
3901
- U("div", Rs, [
3902
- e.hideInfoHeader ? z("", !0) : (m(), j("div", {
3893
+ R("div", Vs, [
3894
+ e.hideInfoHeader ? G("", !0) : (g(), j("div", {
3903
3895
  key: 0,
3904
- class: Ne(["form-section-info", { sticky: e.stickyInfoHeader }])
3896
+ class: Ke(["form-section-info", { sticky: e.stickyInfoHeader }])
3905
3897
  }, [
3906
- e.title ? (m(), j("h4", Ds, K(e.title), 1)) : z("", !0),
3907
- e.description || y(n).description ? (m(), j("div", Gs, [
3908
- Z(t.$slots, "description", {}, () => [
3909
- U("p", null, K(e.description), 1)
3898
+ e.title ? (g(), j("h4", Ds, F(e.title), 1)) : G("", !0),
3899
+ e.description || y(n).description ? (g(), j("div", Gs, [
3900
+ Y(t.$slots, "description", {}, () => [
3901
+ R("p", null, F(e.description), 1)
3910
3902
  ], !0)
3911
- ])) : z("", !0),
3912
- y(n).footer ? (m(), j("div", Hs, [
3913
- Z(t.$slots, "footer", {}, void 0, !0)
3914
- ])) : z("", !0)
3903
+ ])) : G("", !0),
3904
+ y(n).footer ? (g(), j("div", Hs, [
3905
+ Y(t.$slots, "footer", {}, void 0, !0)
3906
+ ])) : G("", !0)
3915
3907
  ], 2)),
3916
- U("div", zs, [
3917
- Z(t.$slots, "default", {}, void 0, !0)
3908
+ R("div", zs, [
3909
+ Y(t.$slots, "default", {}, void 0, !0)
3918
3910
  ])
3919
3911
  ])
3920
3912
  ], 2));
3921
3913
  }
3922
- }), un = /* @__PURE__ */ Ce(Js, [["__scopeId", "data-v-8b6dc312"]]), { useAxios: Kt, useDeleteUrlBuilder: Ys, useErrors: Ws, useFetchUrlBuilder: hl, useFetcher: Zs, useDebouncedFilter: ar, useStringHelpers: vl, useHelpers: bl, useGatewayFeatureSupported: kl, useTruncationDetector: Cl } = ce;
3914
+ }), un = /* @__PURE__ */ ke(Js, [["__scopeId", "data-v-8b6dc312"]]), { useAxios: Ft, useDeleteUrlBuilder: Ws, useErrors: Ys, useFetchUrlBuilder: hl, useFetcher: Zs, useDebouncedFilter: ar, useStringHelpers: vl, useHelpers: bl, useGatewayFeatureSupported: Cl, useTruncationDetector: kl } = ue;
3923
3915
  const Qs = { class: "add-to-group-form-container" }, Xs = { class: "add-to-group-cta-text" }, el = {
3924
3916
  key: 0,
3925
3917
  class: "kong-ui-entity-add-to-groups-error"
3926
- }, tl = { key: 0 }, nl = /* @__PURE__ */ ie({
3918
+ }, tl = { key: 0 }, nl = /* @__PURE__ */ ae({
3927
3919
  __name: "AddToGroupModal",
3928
3920
  props: {
3929
3921
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -3940,10 +3932,10 @@ const Qs = { class: "add-to-group-form-container" }, Xs = { class: "add-to-group
3940
3932
  },
3941
3933
  emits: ["cancel", "add:success", "add:partial-success", "error"],
3942
3934
  setup(e, { emit: n }) {
3943
- var V;
3944
- const t = e, { i18n: { t: r } } = ct.useI18n(), { axiosInstance: o } = Kt({
3945
- headers: (V = t.config) == null ? void 0 : V.requestHeaders
3946
- }), a = E([]), {
3935
+ var B;
3936
+ const t = e, { i18n: { t: r } } = ct.useI18n(), { axiosInstance: o } = Ft({
3937
+ headers: (B = t.config) == null ? void 0 : B.requestHeaders
3938
+ }), a = O([]), {
3947
3939
  debouncedQueryChange: i,
3948
3940
  loading: s,
3949
3941
  allRecords: l,
@@ -3958,101 +3950,101 @@ const Qs = { class: "add-to-group-form-container" }, Xs = { class: "add-to-group
3958
3950
  fetchedItemsKey: "data",
3959
3951
  searchKeys: ["name", "id"]
3960
3952
  }
3961
- ), g = T(() => c.value ? r("consumer_groups.errors.general") : ""), f = E(0), I = T(() => l.value === void 0), k = T(() => u.value.map((b) => ({
3962
- label: b.name,
3963
- value: b.id,
3964
- selected: a.value.includes(b.id),
3965
- data: b
3953
+ ), m = M(() => c.value ? r("consumer_groups.errors.general") : ""), f = O(0), I = M(() => l.value === void 0), v = M(() => u.value.map((k) => ({
3954
+ label: k.name,
3955
+ value: k.id,
3956
+ selected: a.value.includes(k.id),
3957
+ data: k
3966
3958
  // we need this to determine whether or not to show the description text
3967
- }))), p = (b) => {
3968
- var S;
3969
- const x = I.value ? u.value.find((q) => q.id === b) : (S = l.value) == null ? void 0 : S.find((q) => q.id === b);
3970
- return x ? x.name : b;
3971
- }, A = () => {
3972
- h.value = "", C.value = [], w.value = [], n("cancel");
3973
- }, C = E([]), O = E(!1), h = E(""), D = async () => {
3959
+ }))), p = (k) => {
3960
+ var T;
3961
+ const x = I.value ? u.value.find((P) => P.id === k) : (T = l.value) == null ? void 0 : T.find((P) => P.id === k);
3962
+ return x ? x.name : k;
3963
+ }, S = () => {
3964
+ A.value = "", b.value = [], w.value = [], n("cancel");
3965
+ }, b = O([]), C = O(!1), A = O(""), ne = async () => {
3974
3966
  if (!a.value.length) {
3975
- h.value = "", w.value = [], n("cancel");
3967
+ A.value = "", w.value = [], n("cancel");
3976
3968
  return;
3977
3969
  }
3978
- O.value = !0, h.value = "", C.value = [], w.value = [];
3970
+ C.value = !0, A.value = "", b.value = [], w.value = [];
3979
3971
  try {
3980
- const b = a.value.map((q) => Y(q)), x = await Promise.allSettled(b);
3981
- let S = !0;
3982
- x.forEach((q) => {
3983
- q.status !== "fulfilled" && (S = !1);
3984
- }), S ? (C.value = [], w.value = [], n("add:success", a.value), a.value = []) : (C.value.length && n("add:partial-success", C.value), a.value = [], F(x));
3972
+ const k = a.value.map((P) => H(P)), x = await Promise.allSettled(k);
3973
+ let T = !0;
3974
+ x.forEach((P) => {
3975
+ P.status !== "fulfilled" && (T = !1);
3976
+ }), T ? (b.value = [], w.value = [], n("add:success", a.value), a.value = []) : (b.value.length && n("add:partial-success", b.value), a.value = [], N(x));
3985
3977
  } catch {
3986
- h.value = r("consumer_groups.errors.add"), n("error", h.value);
3978
+ A.value = r("consumer_groups.errors.add"), n("error", A.value);
3987
3979
  } finally {
3988
- O.value = !1;
3980
+ C.value = !1;
3989
3981
  }
3990
- }, se = T(() => {
3991
- var x, S, q, J;
3992
- let b = `${t.config.apiBaseUrl}${$e.list[t.config.app].forConsumer}`;
3993
- return t.config.app === "konnect" ? b = b.replace(/{controlPlaneId}/gi, ((x = t.config) == null ? void 0 : x.controlPlaneId) || "").replace(/{consumerId}/gi, ((S = t.config) == null ? void 0 : S.consumerId) || "") : t.config.app === "kongManager" && (b = b.replace(/\/{workspace}/gi, (q = t.config) != null && q.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((J = t.config) == null ? void 0 : J.consumerId) || "")), b;
3994
- }), Y = async (b) => {
3982
+ }, pe = M(() => {
3983
+ var x, T, P, J;
3984
+ let k = `${t.config.apiBaseUrl}${$e.list[t.config.app].forConsumer}`;
3985
+ return t.config.app === "konnect" ? k = k.replace(/{controlPlaneId}/gi, ((x = t.config) == null ? void 0 : x.controlPlaneId) || "").replace(/{consumerId}/gi, ((T = t.config) == null ? void 0 : T.consumerId) || "") : t.config.app === "kongManager" && (k = k.replace(/\/{workspace}/gi, (P = t.config) != null && P.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((J = t.config) == null ? void 0 : J.consumerId) || "")), k;
3986
+ }), H = async (k) => {
3995
3987
  const x = {
3996
- group: b
3988
+ group: k
3997
3989
  };
3998
3990
  try {
3999
- const S = await o.post(se.value, x);
4000
- return C.value.push(b), S;
4001
- } catch (S) {
4002
- let q = `${p(b)} - ${S.message}`;
4003
- return S.response.status === 409 && (q = `${p(b)} - ${r("consumer_groups.errors.already_added")}`), Promise.reject(Error(q));
3991
+ const T = await o.post(pe.value, x);
3992
+ return b.value.push(k), T;
3993
+ } catch (T) {
3994
+ let P = `${p(k)} - ${T.message}`;
3995
+ return T.response.status === 409 && (P = `${p(k)} - ${r("consumer_groups.errors.already_added")}`), Promise.reject(Error(P));
4004
3996
  }
4005
- }, w = E([]), F = (b) => {
4006
- w.value = b.map((x) => {
4007
- var S;
4008
- return (S = x.reason) == null ? void 0 : S.message;
3997
+ }, w = O([]), N = (k) => {
3998
+ w.value = k.map((x) => {
3999
+ var T;
4000
+ return (T = x.reason) == null ? void 0 : T.message;
4009
4001
  }).filter(Boolean);
4010
4002
  };
4011
- return Se(k, () => {
4003
+ return xe(v, () => {
4012
4004
  f.value++;
4013
4005
  }, { immediate: !0, deep: !0 }), Qe(async () => {
4014
4006
  await d();
4015
- }), (b, x) => {
4016
- const S = P("KMultiselect"), q = P("KAlert"), J = P("KPrompt");
4017
- return m(), R(J, {
4018
- "action-pending": O.value,
4007
+ }), (k, x) => {
4008
+ const T = U("KMultiselect"), P = U("KAlert"), J = U("KPrompt");
4009
+ return g(), V(J, {
4010
+ "action-pending": C.value,
4019
4011
  class: "kong-ui-entities-add-to-groups-modal",
4020
4012
  "data-testid": "add-to-group-modal",
4021
4013
  "is-visible": e.visible,
4022
4014
  title: y(r)("consumer_groups.consumers.add.title"),
4023
- onCanceled: A,
4024
- onProceed: D
4015
+ onCanceled: S,
4016
+ onProceed: ne
4025
4017
  }, {
4026
- "body-content": v(() => [
4027
- U("div", Qs, [
4028
- U("p", Xs, K(y(r)("consumer_groups.consumers.add.ctaText")), 1),
4029
- N(S, {
4018
+ "body-content": h(() => [
4019
+ R("div", Qs, [
4020
+ R("p", Xs, F(y(r)("consumer_groups.consumers.add.ctaText")), 1),
4021
+ K(T, {
4030
4022
  modelValue: a.value,
4031
- "onUpdate:modelValue": x[0] || (x[0] = (X) => a.value = X),
4023
+ "onUpdate:modelValue": x[0] || (x[0] = (Q) => a.value = Q),
4032
4024
  autosuggest: "",
4033
4025
  "data-testid": "add-to-groups-multiselect",
4034
4026
  "dropdown-footer-text": I.value ? y(r)("consumer_groups.consumers.add.footer") : void 0,
4035
- items: k.value,
4027
+ items: v.value,
4036
4028
  label: y(r)("consumer_groups.consumers.add.consumer_groups_label"),
4037
4029
  loading: y(s),
4038
4030
  placeholder: y(r)("consumer_groups.consumers.add.consumer_group_placeholder"),
4039
- readonly: O.value,
4031
+ readonly: C.value,
4040
4032
  required: "",
4041
4033
  width: "100%",
4042
4034
  onQueryChange: y(i)
4043
4035
  }, null, 8, ["modelValue", "dropdown-footer-text", "items", "label", "loading", "placeholder", "readonly", "onQueryChange"]),
4044
- h.value || g.value || w.value.length ? (m(), j("div", el, [
4045
- N(q, { appearance: "danger" }, {
4046
- alertMessage: v(() => [
4047
- U("p", null, K(y(r)("consumer_groups.errors.add")), 1),
4048
- w.value.length ? (m(), j("ul", tl, [
4049
- (m(!0), j(be, null, he(w.value, (X, ee) => (m(), j("li", { key: ee }, K(X), 1))), 128))
4050
- ])) : z("", !0),
4051
- U("div", null, K(h.value || g.value), 1)
4036
+ A.value || m.value || w.value.length ? (g(), j("div", el, [
4037
+ K(P, { appearance: "danger" }, {
4038
+ alertMessage: h(() => [
4039
+ R("p", null, F(y(r)("consumer_groups.errors.add")), 1),
4040
+ w.value.length ? (g(), j("ul", tl, [
4041
+ (g(!0), j(ve, null, ye(w.value, (Q, X) => (g(), j("li", { key: X }, F(Q), 1))), 128))
4042
+ ])) : G("", !0),
4043
+ R("div", null, F(A.value || m.value), 1)
4052
4044
  ]),
4053
4045
  _: 1
4054
4046
  })
4055
- ])) : z("", !0)
4047
+ ])) : G("", !0)
4056
4048
  ])
4057
4049
  ]),
4058
4050
  _: 1
@@ -4060,12 +4052,12 @@ const Qs = { class: "add-to-group-form-container" }, Xs = { class: "add-to-group
4060
4052
  };
4061
4053
  }
4062
4054
  });
4063
- const Nt = (e, n) => {
4055
+ const Kt = (e, n) => {
4064
4056
  const t = e.__vccOpts || e;
4065
4057
  for (const [r, o] of n)
4066
4058
  t[r] = o;
4067
4059
  return t;
4068
- }, rl = /* @__PURE__ */ Nt(nl, [["__scopeId", "data-v-4d30f3c5"]]), ol = { class: "kong-ui-entities-consumer-groups-list" }, al = { key: 1 }, il = /* @__PURE__ */ ie({
4060
+ }, rl = /* @__PURE__ */ Kt(nl, [["__scopeId", "data-v-4d30f3c5"]]), ol = { class: "kong-ui-entities-consumer-groups-list" }, al = { key: 1 }, il = /* @__PURE__ */ ae({
4069
4061
  __name: "ConsumerGroupList",
4070
4062
  props: {
4071
4063
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -4106,132 +4098,129 @@ const Nt = (e, n) => {
4106
4098
  },
4107
4099
  emits: ["error", "copy:success", "copy:error", "delete:success", "add:success", "remove:success"],
4108
4100
  setup(e, { emit: n }) {
4109
- var Ft;
4110
- const t = e, { i18nT: r, i18n: { t: o } } = ct.useI18n(), a = wt(), { axiosInstance: i } = Kt({
4111
- headers: (Ft = t.config) == null ? void 0 : Ft.requestHeaders
4112
- }), s = E(1), l = T(() => !!t.config.consumerId), c = T(() => t.config.app !== "kongManager" || !!t.config.disableSorting), d = {
4101
+ var Nt;
4102
+ const t = e, { i18nT: r, i18n: { t: o } } = ct.useI18n(), a = wt(), { axiosInstance: i } = Ft({
4103
+ headers: (Nt = t.config) == null ? void 0 : Nt.requestHeaders
4104
+ }), s = O(1), l = M(() => !!t.config.consumerId), c = M(() => t.config.app !== "kongManager" || !!t.config.disableSorting), d = {
4113
4105
  name: { label: o("consumer_groups.list.table_headers.name"), searchable: !0, sortable: !0 }
4114
4106
  };
4115
4107
  t.config.app === "kongManager" && (d.consumers_count = { label: o("consumer_groups.list.table_headers.consumers_count"), searchable: !1, sortable: !1 }), d.tags = { label: o("consumer_groups.list.table_headers.tags"), sortable: !1 };
4116
- const u = d, g = (M) => ({
4117
- "data-testid": M.username ?? M.custom_id ?? M.id
4118
- }), f = T(() => {
4119
- var H, re, ye, Ee;
4120
- let M = `${t.config.apiBaseUrl}${$e.list[t.config.app][l.value ? "forConsumer" : "all"]}`;
4121
- return t.config.app === "konnect" ? M = M.replace(/{controlPlaneId}/gi, ((H = t.config) == null ? void 0 : H.controlPlaneId) || "").replace(/{consumerId}/gi, ((re = t.config) == null ? void 0 : re.consumerId) || "") : t.config.app === "kongManager" && (M = M.replace(/\/{workspace}/gi, (ye = t.config) != null && ye.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((Ee = t.config) == null ? void 0 : Ee.consumerId) || "")), M;
4122
- }), I = E(""), k = T(() => {
4123
- const M = t.config.app === "konnect" || t.config.isExactMatch;
4124
- return M ? {
4125
- isExactMatch: M,
4108
+ const u = d, m = (E) => ({
4109
+ "data-testid": E.username ?? E.custom_id ?? E.id
4110
+ }), f = M(() => {
4111
+ var z, le, Ce, Ee;
4112
+ let E = `${t.config.apiBaseUrl}${$e.list[t.config.app][l.value ? "forConsumer" : "all"]}`;
4113
+ return t.config.app === "konnect" ? E = E.replace(/{controlPlaneId}/gi, ((z = t.config) == null ? void 0 : z.controlPlaneId) || "").replace(/{consumerId}/gi, ((le = t.config) == null ? void 0 : le.consumerId) || "") : t.config.app === "kongManager" && (E = E.replace(/\/{workspace}/gi, (Ce = t.config) != null && Ce.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((Ee = t.config) == null ? void 0 : Ee.consumerId) || "")), E;
4114
+ }), I = O(""), v = M(() => {
4115
+ const E = t.config.app === "konnect" || t.config.isExactMatch;
4116
+ return E ? {
4117
+ isExactMatch: E,
4126
4118
  fields: {
4127
4119
  username: d.name,
4128
4120
  id: { label: o("consumer_groups.list.table_headers.id") }
4129
4121
  },
4130
4122
  placeholder: o("consumer_groups.search.placeholder")
4131
4123
  } : {
4132
- isExactMatch: M,
4124
+ isExactMatch: E,
4133
4125
  fields: {
4134
4126
  name: d.name
4135
4127
  },
4136
4128
  schema: t.config.filterSchema
4137
4129
  };
4138
- }), p = T(() => l.value ? "consumer_groups" : void 0), { fetcher: A, fetcherState: C } = Zs(t.config, f.value, p.value), O = () => {
4130
+ }), p = M(() => l.value ? "consumer_groups" : void 0), { fetcher: S, fetcherState: b } = Zs(t.config, f.value, p.value), C = () => {
4139
4131
  I.value = "";
4140
- }, h = () => {
4132
+ }, A = () => {
4141
4133
  s.value++;
4142
- }, D = E(null), se = (M, H) => {
4143
- const re = M.id;
4144
- if (!H(re)) {
4134
+ }, ne = O(""), pe = (E, z) => {
4135
+ const le = E.id;
4136
+ if (!z(le)) {
4145
4137
  n("copy:error", {
4146
- entity: M,
4138
+ entity: E,
4147
4139
  field: "id",
4148
4140
  message: o("consumer_groups.errors.copy")
4149
4141
  });
4150
4142
  return;
4151
4143
  }
4152
4144
  n("copy:success", {
4153
- entity: M,
4145
+ entity: E,
4154
4146
  field: "id",
4155
- message: o("consumer_groups.copy.success", { val: re })
4147
+ message: o("consumer_groups.copy.success", { val: le })
4156
4148
  });
4157
- }, Y = (M, H) => {
4158
- const re = JSON.stringify(M);
4159
- if (!H(re)) {
4149
+ }, H = (E, z) => {
4150
+ const le = JSON.stringify(E);
4151
+ if (!z(le)) {
4160
4152
  n("copy:error", {
4161
- entity: M,
4153
+ entity: E,
4162
4154
  message: o("consumer_groups.errors.copy")
4163
4155
  });
4164
4156
  return;
4165
4157
  }
4166
4158
  n("copy:success", {
4167
- entity: M,
4159
+ entity: E,
4168
4160
  message: o("consumer_groups.copy.success_brief")
4169
4161
  });
4170
- }, w = async (M) => {
4171
- var re;
4172
- await ((re = t.canRetrieve) == null ? void 0 : re.call(t, M)) && a.push(t.config.getViewRoute(M.id));
4173
- }, F = (M) => ({
4162
+ }, w = async (E) => {
4163
+ var le;
4164
+ await ((le = t.canRetrieve) == null ? void 0 : le.call(t, E)) && a.push(t.config.getViewRoute(E.id));
4165
+ }, N = (E) => ({
4174
4166
  label: o("consumer_groups.actions.view"),
4175
- to: t.config.getViewRoute(M)
4176
- }), V = (M) => ({
4167
+ to: t.config.getViewRoute(E)
4168
+ }), B = (E) => ({
4177
4169
  label: o("consumer_groups.actions.edit"),
4178
- to: t.config.getEditRoute(M)
4179
- }), b = E(void 0), x = E(!1), S = E(!1), q = E(""), J = Ys(t.config, f.value), X = (M) => {
4180
- b.value = M, x.value = !0;
4181
- }, ee = () => {
4170
+ to: t.config.getEditRoute(E)
4171
+ }), k = O(void 0), x = O(!1), T = O(!1), P = O(""), J = Ws(t.config, f.value), Q = (E) => {
4172
+ k.value = E, x.value = !0;
4173
+ }, X = () => {
4182
4174
  x.value = !1;
4183
- }, te = async () => {
4184
- var M, H, re;
4185
- if ((M = b.value) != null && M.id) {
4186
- S.value = !0;
4175
+ }, ee = async () => {
4176
+ var E, z, le;
4177
+ if ((E = k.value) != null && E.id) {
4178
+ T.value = !0;
4187
4179
  try {
4188
- await i.delete(J(b.value.id)), S.value = !1, x.value = !1, s.value++, n("delete:success", b.value);
4189
- } catch (ye) {
4190
- q.value = ((re = (H = ye.response) == null ? void 0 : H.data) == null ? void 0 : re.message) || ye.message || o("consumer_groups.errors.delete"), n("error", ye);
4180
+ await i.delete(J(k.value.id)), T.value = !1, x.value = !1, s.value++, n("delete:success", k.value);
4181
+ } catch (Ce) {
4182
+ P.value = ((le = (z = Ce.response) == null ? void 0 : z.data) == null ? void 0 : le.message) || Ce.message || o("consumer_groups.errors.delete"), n("error", Ce);
4191
4183
  } finally {
4192
- S.value = !1;
4184
+ T.value = !1;
4193
4185
  }
4194
4186
  }
4195
- }, le = E(!1), Re = () => {
4196
- le.value = !0;
4187
+ }, ie = O(!1), Ve = () => {
4188
+ ie.value = !0;
4197
4189
  }, _ = () => {
4198
- le.value = !1;
4199
- }, B = (M, H) => {
4200
- H || _(), s.value++, n("add:success", M);
4201
- }, oe = () => {
4202
- l.value && Re();
4203
- }, L = E(void 0), G = E(!1), ge = E(""), _e = (M) => {
4204
- L.value = M, G.value = !0;
4205
- }, de = () => {
4206
- G.value = !1, L.value = void 0;
4207
- }, Fe = T(() => {
4208
- var H, re, ye, Ee;
4209
- let M = `${t.config.apiBaseUrl}${$e.list[t.config.app].oneForConsumer}`;
4210
- return t.config.app === "konnect" ? M = M.replace(/{controlPlaneId}/gi, ((H = t.config) == null ? void 0 : H.controlPlaneId) || "").replace(/{consumerId}/gi, ((re = t.config) == null ? void 0 : re.consumerId) || "") : t.config.app === "kongManager" && (M = M.replace(/\/{workspace}/gi, (ye = t.config) != null && ye.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((Ee = t.config) == null ? void 0 : Ee.consumerId) || "")), M;
4211
- }), De = E(!1), ir = async () => {
4212
- if (L.value) {
4190
+ ie.value = !1;
4191
+ }, L = (E, z) => {
4192
+ z || _(), s.value++, n("add:success", E);
4193
+ }, re = () => {
4194
+ l.value && Ve();
4195
+ }, q = O(void 0), D = O(!1), ge = O(""), _e = (E) => {
4196
+ q.value = E, D.value = !0;
4197
+ }, ce = () => {
4198
+ D.value = !1, q.value = void 0;
4199
+ }, Ne = M(() => {
4200
+ var z, le, Ce, Ee;
4201
+ let E = `${t.config.apiBaseUrl}${$e.list[t.config.app].oneForConsumer}`;
4202
+ return t.config.app === "konnect" ? E = E.replace(/{controlPlaneId}/gi, ((z = t.config) == null ? void 0 : z.controlPlaneId) || "").replace(/{consumerId}/gi, ((le = t.config) == null ? void 0 : le.consumerId) || "") : t.config.app === "kongManager" && (E = E.replace(/\/{workspace}/gi, (Ce = t.config) != null && Ce.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((Ee = t.config) == null ? void 0 : Ee.consumerId) || "")), E;
4203
+ }), De = O(!1), ir = async () => {
4204
+ if (q.value) {
4213
4205
  De.value = !0;
4214
4206
  try {
4215
- const M = Fe.value.replace(/{consumerGroupId}/gi, L.value.id);
4216
- await i.delete(M), n("remove:success", L.value), de(), s.value++;
4217
- } catch (M) {
4218
- ge.value = M.message || o("consumer_groups.errors.delete"), n("error", M);
4207
+ const E = Ne.value.replace(/{consumerGroupId}/gi, q.value.id);
4208
+ await i.delete(E), n("remove:success", q.value), ce(), s.value++;
4209
+ } catch (E) {
4210
+ ge.value = E.message || o("consumer_groups.errors.delete"), n("error", E);
4219
4211
  } finally {
4220
4212
  De.value = !1;
4221
4213
  }
4222
4214
  }
4223
4215
  };
4224
- Se(C, (M) => {
4225
- var H, re, ye;
4226
- if (M.status === Oe.Error) {
4227
- D.value = {
4228
- title: o("consumer_groups.errors.general")
4229
- }, (ye = (re = (H = M.error) == null ? void 0 : H.response) == null ? void 0 : re.data) != null && ye.message && (D.value.message = M.error.response.data.message), n("error", M.error);
4216
+ xe(b, (E) => {
4217
+ if (E.status === Oe.Error) {
4218
+ ne.value = o("consumer_groups.errors.general"), n("error", E.error);
4230
4219
  return;
4231
4220
  }
4232
- D.value = null;
4221
+ ne.value = "";
4233
4222
  });
4234
- const pt = E({
4223
+ const pt = O({
4235
4224
  ctaPath: l.value ? void 0 : t.config.createRoute,
4236
4225
  ctaText: void 0,
4237
4226
  message: o("consumer_groups.list.empty_state.description"),
@@ -4239,51 +4228,51 @@ const Nt = (e, n) => {
4239
4228
  });
4240
4229
  return Qe(async () => {
4241
4230
  await t.canCreate() && (pt.value.title = l.value ? o("consumer_groups.list.empty_state.title_for_consumer") : o("consumer_groups.list.empty_state.title"), pt.value.ctaText = l.value ? o("consumer_groups.actions.add_to_group") : o("consumer_groups.actions.create"));
4242
- }), (M, H) => {
4243
- const re = P("KButton"), ye = P("KBadge"), Ee = P("KTruncate"), Ge = P("KDropdownItem"), Bt = P("KClipboardProvider"), sr = P("KPrompt");
4244
- return m(), j("div", ol, [
4245
- N(y(Is), {
4231
+ }), (E, z) => {
4232
+ const le = U("KButton"), Ce = U("KBadge"), Ee = U("KTruncate"), Ge = U("KDropdownItem"), Bt = U("KClipboardProvider"), sr = U("KPrompt");
4233
+ return g(), j("div", ol, [
4234
+ K(y(Is), {
4246
4235
  "cache-identifier": e.cacheIdentifier,
4247
4236
  "disable-pagination": l.value,
4248
4237
  "disable-pagination-page-jump": "",
4249
4238
  "disable-sorting": c.value,
4250
4239
  "empty-state-options": pt.value,
4251
4240
  "enable-entity-actions": "",
4252
- "error-message": D.value,
4253
- fetcher: y(A),
4241
+ "error-message": ne.value,
4242
+ fetcher: y(S),
4254
4243
  "fetcher-cache-key": s.value,
4255
4244
  "pagination-type": "offset",
4256
4245
  "preferences-storage-key": "kong-ui-entities-consumer-groups-list",
4257
4246
  query: I.value,
4258
- "row-attributes": g,
4247
+ "row-attributes": m,
4259
4248
  "table-headers": y(u),
4260
- onClearSearchInput: O,
4261
- "onClick:row": H[3] || (H[3] = (W) => w(W)),
4262
- onEmptyStateCtaClicked: oe,
4263
- onSort: h
4249
+ onClearSearchInput: C,
4250
+ "onClick:row": z[3] || (z[3] = (W) => w(W)),
4251
+ onEmptyStateCtaClicked: re,
4252
+ onSort: A
4264
4253
  }, {
4265
- "toolbar-filter": v(() => [
4266
- l.value ? z("", !0) : (m(), R(y(Vs), {
4254
+ "toolbar-filter": h(() => [
4255
+ l.value ? G("", !0) : (g(), V(y(Rs), {
4267
4256
  key: 0,
4268
4257
  modelValue: I.value,
4269
- "onUpdate:modelValue": H[0] || (H[0] = (W) => I.value = W),
4270
- config: k.value
4258
+ "onUpdate:modelValue": z[0] || (z[0] = (W) => I.value = W),
4259
+ config: v.value
4271
4260
  }, null, 8, ["modelValue", "config"]))
4272
4261
  ]),
4273
- "toolbar-button": v(() => [
4274
- N(y(Xe), {
4262
+ "toolbar-button": h(() => [
4263
+ K(y(Xe), {
4275
4264
  "auth-function": () => e.canCreate()
4276
4265
  }, {
4277
- default: v(() => [
4278
- N(re, {
4266
+ default: h(() => [
4267
+ K(le, {
4279
4268
  appearance: "primary",
4280
4269
  "data-testid": "toolbar-add-consumer-group",
4281
4270
  icon: "plus",
4282
4271
  to: e.config.consumerId ? void 0 : e.config.createRoute,
4283
- onClick: H[1] || (H[1] = () => e.config.consumerId ? Re() : void 0)
4272
+ onClick: z[1] || (z[1] = () => e.config.consumerId ? Ve() : void 0)
4284
4273
  }, {
4285
- default: v(() => [
4286
- Q(K(e.config.consumerId ? y(o)("consumer_groups.actions.add_to_group") : y(o)("consumer_groups.list.toolbar_actions.new_consumer_group")), 1)
4274
+ default: h(() => [
4275
+ Z(F(e.config.consumerId ? y(o)("consumer_groups.actions.add_to_group") : y(o)("consumer_groups.list.toolbar_actions.new_consumer_group")), 1)
4287
4276
  ]),
4288
4277
  _: 1
4289
4278
  }, 8, ["to"])
@@ -4291,93 +4280,93 @@ const Nt = (e, n) => {
4291
4280
  _: 1
4292
4281
  }, 8, ["auth-function"])
4293
4282
  ]),
4294
- name: v(({ rowValue: W }) => [
4295
- U("b", null, K(W ?? "-"), 1)
4283
+ name: h(({ rowValue: W }) => [
4284
+ R("b", null, F(W ?? "-"), 1)
4296
4285
  ]),
4297
- consumers_count: v(({ rowValue: W }) => [
4298
- Q(K(W ?? "-"), 1)
4286
+ consumers_count: h(({ rowValue: W }) => [
4287
+ Z(F(W ?? "-"), 1)
4299
4288
  ]),
4300
- tags: v(({ rowValue: W }) => [
4301
- (W == null ? void 0 : W.length) > 0 ? (m(), R(Ee, { key: 0 }, {
4302
- default: v(() => [
4303
- (m(!0), j(be, null, he(W, (Be) => (m(), R(ye, {
4289
+ tags: h(({ rowValue: W }) => [
4290
+ (W == null ? void 0 : W.length) > 0 ? (g(), V(Ee, { key: 0 }, {
4291
+ default: h(() => [
4292
+ (g(!0), j(ve, null, ye(W, (Be) => (g(), V(Ce, {
4304
4293
  key: Be,
4305
- onClick: H[2] || (H[2] = rt(() => {
4294
+ onClick: z[2] || (z[2] = rt(() => {
4306
4295
  }, ["stop"]))
4307
4296
  }, {
4308
- default: v(() => [
4309
- Q(K(Be), 1)
4297
+ default: h(() => [
4298
+ Z(F(Be), 1)
4310
4299
  ]),
4311
4300
  _: 2
4312
4301
  }, 1024))), 128))
4313
4302
  ]),
4314
4303
  _: 2
4315
- }, 1024)) : (m(), j("span", al, "-"))
4304
+ }, 1024)) : (g(), j("span", al, "-"))
4316
4305
  ]),
4317
- actions: v(({ row: W }) => [
4318
- N(Bt, null, {
4319
- default: v(({ copyToClipboard: Be }) => [
4320
- N(Ge, {
4306
+ actions: h(({ row: W }) => [
4307
+ K(Bt, null, {
4308
+ default: h(({ copyToClipboard: Be }) => [
4309
+ K(Ge, {
4321
4310
  "data-testid": "action-entity-copy-id",
4322
- onClick: (lr) => se(W, Be)
4311
+ onClick: (lr) => pe(W, Be)
4323
4312
  }, {
4324
- default: v(() => [
4325
- Q(K(y(o)("consumer_groups.actions.copy_id")), 1)
4313
+ default: h(() => [
4314
+ Z(F(y(o)("consumer_groups.actions.copy_id")), 1)
4326
4315
  ]),
4327
4316
  _: 2
4328
4317
  }, 1032, ["onClick"])
4329
4318
  ]),
4330
4319
  _: 2
4331
4320
  }, 1024),
4332
- N(Bt, null, {
4333
- default: v(({ copyToClipboard: Be }) => [
4334
- N(Ge, {
4321
+ K(Bt, null, {
4322
+ default: h(({ copyToClipboard: Be }) => [
4323
+ K(Ge, {
4335
4324
  "data-testid": "action-entity-copy-json",
4336
- onClick: (lr) => Y(W, Be)
4325
+ onClick: (lr) => H(W, Be)
4337
4326
  }, {
4338
- default: v(() => [
4339
- Q(K(y(o)("consumer_groups.actions.copy_json")), 1)
4327
+ default: h(() => [
4328
+ Z(F(y(o)("consumer_groups.actions.copy_json")), 1)
4340
4329
  ]),
4341
4330
  _: 2
4342
4331
  }, 1032, ["onClick"])
4343
4332
  ]),
4344
4333
  _: 2
4345
4334
  }, 1024),
4346
- N(y(Xe), {
4335
+ K(y(Xe), {
4347
4336
  "auth-function": () => e.canRetrieve(W)
4348
4337
  }, {
4349
- default: v(() => [
4350
- N(Ge, {
4338
+ default: h(() => [
4339
+ K(Ge, {
4351
4340
  "data-testid": "action-entity-view",
4352
4341
  "has-divider": "",
4353
- item: F(W.id)
4342
+ item: N(W.id)
4354
4343
  }, null, 8, ["item"])
4355
4344
  ]),
4356
4345
  _: 2
4357
4346
  }, 1032, ["auth-function"]),
4358
- N(y(Xe), {
4347
+ K(y(Xe), {
4359
4348
  "auth-function": () => e.canEdit(W)
4360
4349
  }, {
4361
- default: v(() => [
4362
- N(Ge, {
4350
+ default: h(() => [
4351
+ K(Ge, {
4363
4352
  "data-testid": "action-entity-edit",
4364
- item: V(W.id)
4353
+ item: B(W.id)
4365
4354
  }, null, 8, ["item"])
4366
4355
  ]),
4367
4356
  _: 2
4368
4357
  }, 1032, ["auth-function"]),
4369
- N(y(Xe), {
4358
+ K(y(Xe), {
4370
4359
  "auth-function": () => e.canDelete(W)
4371
4360
  }, {
4372
- default: v(() => [
4373
- N(Ge, {
4361
+ default: h(() => [
4362
+ K(Ge, {
4374
4363
  "data-testid": "action-entity-delete",
4375
4364
  "has-divider": "",
4376
4365
  "is-dangerous": "",
4377
- onClick: () => e.config.consumerId ? _e(W) : X(W)
4366
+ onClick: () => e.config.consumerId ? _e(W) : Q(W)
4378
4367
  }, {
4379
- default: v(() => [
4380
- Q(K(e.config.consumerId ? y(o)("consumer_groups.actions.exit") : y(o)("consumer_groups.actions.delete")), 1)
4368
+ default: h(() => [
4369
+ Z(F(e.config.consumerId ? y(o)("consumer_groups.actions.exit") : y(o)("consumer_groups.actions.delete")), 1)
4381
4370
  ]),
4382
4371
  _: 2
4383
4372
  }, 1032, ["onClick"])
@@ -4387,67 +4376,67 @@ const Nt = (e, n) => {
4387
4376
  ]),
4388
4377
  _: 1
4389
4378
  }, 8, ["cache-identifier", "disable-pagination", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers"]),
4390
- N(y(Ts), {
4391
- "action-pending": S.value,
4379
+ K(y(Ts), {
4380
+ "action-pending": T.value,
4392
4381
  "data-testid": "delete-consumer-group-modal",
4393
4382
  description: y(o)("consumer_groups.delete.description"),
4394
- "entity-name": b.value && (b.value.name || b.value.id),
4383
+ "entity-name": k.value && (k.value.name || k.value.id),
4395
4384
  "entity-type": y(dn).ConsumerGroup,
4396
- error: q.value,
4385
+ error: P.value,
4397
4386
  title: y(o)("consumer_groups.delete.title"),
4398
4387
  visible: x.value,
4399
- onCancel: ee,
4400
- onProceed: te
4388
+ onCancel: X,
4389
+ onProceed: ee
4401
4390
  }, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"]),
4402
- e.config.consumerId ? (m(), R(rl, {
4391
+ e.config.consumerId ? (g(), V(rl, {
4403
4392
  key: 0,
4404
4393
  config: e.config,
4405
4394
  "data-testid": "add-to-group-modal",
4406
- visible: le.value,
4407
- "onAdd:partialSuccess": H[4] || (H[4] = (W) => B(W, !0)),
4408
- "onAdd:success": H[5] || (H[5] = (W) => B(W)),
4395
+ visible: ie.value,
4396
+ "onAdd:partialSuccess": z[4] || (z[4] = (W) => L(W, !0)),
4397
+ "onAdd:success": z[5] || (z[5] = (W) => L(W)),
4409
4398
  onCancel: _
4410
- }, null, 8, ["config", "visible"])) : z("", !0),
4411
- e.config.consumerId && L.value ? (m(), R(sr, {
4399
+ }, null, 8, ["config", "visible"])) : G("", !0),
4400
+ e.config.consumerId && q.value ? (g(), V(sr, {
4412
4401
  key: 1,
4413
4402
  "data-testid": "exit-group-modal",
4414
- "is-visible": G.value,
4403
+ "is-visible": D.value,
4415
4404
  title: y(o)("consumer_groups.consumers.exit.title"),
4416
4405
  type: "danger",
4417
- onCanceled: de,
4406
+ onCanceled: ce,
4418
4407
  onProceed: ir
4419
4408
  }, {
4420
- "body-content": v(() => [
4421
- N(y(r), {
4409
+ "body-content": h(() => [
4410
+ K(y(r), {
4422
4411
  class: "exit-modal-message",
4423
4412
  keypath: e.config.consumerUsername ? "consumer_groups.consumers.exit.confirmation" : "consumer_groups.consumers.exit.confirmationNoUsername",
4424
4413
  tag: "p"
4425
4414
  }, Te({
4426
- consumerGroup: v(() => [
4427
- U("strong", null, K(L.value.name || L.value.id), 1)
4415
+ consumerGroup: h(() => [
4416
+ R("strong", null, F(q.value.name || q.value.id), 1)
4428
4417
  ]),
4429
4418
  _: 2
4430
4419
  }, [
4431
4420
  e.config.consumerUsername ? {
4432
4421
  name: "consumer",
4433
- fn: v(() => [
4434
- U("strong", null, K(e.config.consumerUsername), 1)
4422
+ fn: h(() => [
4423
+ R("strong", null, F(e.config.consumerUsername), 1)
4435
4424
  ]),
4436
4425
  key: "0"
4437
4426
  } : void 0
4438
4427
  ]), 1032, ["keypath"]),
4439
- U("p", null, K(y(o)("consumer_groups.consumers.exit.description")), 1)
4428
+ R("p", null, F(y(o)("consumer_groups.consumers.exit.description")), 1)
4440
4429
  ]),
4441
4430
  _: 1
4442
- }, 8, ["is-visible", "title"])) : z("", !0)
4431
+ }, 8, ["is-visible", "title"])) : G("", !0)
4443
4432
  ]);
4444
4433
  };
4445
4434
  }
4446
4435
  });
4447
- const _l = /* @__PURE__ */ Nt(il, [["__scopeId", "data-v-d623df4d"]]), sl = { class: "kong-ui-entities-consumer-group-form" }, ll = { class: "select-item-label" }, ul = {
4436
+ const _l = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { class: "kong-ui-entities-consumer-group-form" }, ll = { class: "select-item-label" }, ul = {
4448
4437
  key: 0,
4449
4438
  class: "select-item-desc"
4450
- }, cl = /* @__PURE__ */ ie({
4439
+ }, cl = /* @__PURE__ */ ae({
4451
4440
  __name: "ConsumerGroupForm",
4452
4441
  props: {
4453
4442
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -4465,7 +4454,7 @@ const _l = /* @__PURE__ */ Nt(il, [["__scopeId", "data-v-d623df4d"]]), sl = { cl
4465
4454
  },
4466
4455
  emits: ["update", "error", "loading"],
4467
4456
  setup(e, { emit: n }) {
4468
- var te, le, Re;
4457
+ var ee, ie, Ve;
4469
4458
  const t = e, { i18n: { t: r } } = ct.useI18n(), o = wt(), a = Pt({
4470
4459
  fields: {
4471
4460
  name: "",
@@ -4484,138 +4473,138 @@ const _l = /* @__PURE__ */ Nt(il, [["__scopeId", "data-v-d623df4d"]]), sl = { cl
4484
4473
  error: c,
4485
4474
  loadItems: d,
4486
4475
  results: u
4487
- } = ar(t.config, (le = $e.form[(te = t.config) == null ? void 0 : te.app]) == null ? void 0 : le.consumersList, "", {
4476
+ } = ar(t.config, (ie = $e.form[(ee = t.config) == null ? void 0 : ee.app]) == null ? void 0 : ie.consumersList, "", {
4488
4477
  fetchedItemsKey: "data",
4489
4478
  searchKeys: ["username", "custom_id", "id"]
4490
- }), { axiosInstance: g } = Kt({
4491
- headers: (Re = t.config) == null ? void 0 : Re.requestHeaders
4492
- }), { getMessageFromError: f } = Ws(), I = T(() => u.value.map((_) => ({
4479
+ }), { axiosInstance: m } = Ft({
4480
+ headers: (Ve = t.config) == null ? void 0 : Ve.requestHeaders
4481
+ }), { getMessageFromError: f } = Ys(), I = M(() => u.value.map((_) => ({
4493
4482
  label: _.username || _.custom_id,
4494
4483
  value: _.id,
4495
4484
  selected: a.fields.consumers.includes(_.id),
4496
4485
  data: _
4497
4486
  // we need this to determine whether or not to show the description text
4498
- }))), k = T(() => {
4499
- var _, B;
4500
- return (B = $e.form[(_ = t.config) == null ? void 0 : _.app]) == null ? void 0 : B.edit;
4501
- }), p = T(() => t.consumerGroupId ? nt.Edit : nt.Create), A = T(() => !!a.fields.name && !w.value), C = T(() => JSON.stringify(a.fields) !== JSON.stringify(i)), O = (_, B = "", oe = "") => {
4502
- var G, ge, _e, de, Fe, De;
4503
- let L = `${(G = t.config) == null ? void 0 : G.apiBaseUrl}${$e.form[(ge = t.config) == null ? void 0 : ge.app][_]}`;
4504
- return ((_e = t.config) == null ? void 0 : _e.app) === "konnect" ? L = L.replace(/{controlPlaneId}/gi, ((de = t.config) == null ? void 0 : de.controlPlaneId) || "") : ((Fe = t.config) == null ? void 0 : Fe.app) === "kongManager" && (L = L.replace(/\/{workspace}/gi, (De = t.config) != null && De.workspace ? `/${t.config.workspace}` : "")), L = L.replace(/{id}/gi, B || t.consumerGroupId), (_ === "addConsumer" || _ === "removeConsumer") && (L = L.replace(/{consumerId}/gi, oe)), L;
4505
- }, h = () => {
4487
+ }))), v = M(() => {
4488
+ var _, L;
4489
+ return (L = $e.form[(_ = t.config) == null ? void 0 : _.app]) == null ? void 0 : L.edit;
4490
+ }), p = M(() => t.consumerGroupId ? nt.Edit : nt.Create), S = M(() => !!a.fields.name && !w.value), b = M(() => JSON.stringify(a.fields) !== JSON.stringify(i)), C = (_, L = "", re = "") => {
4491
+ var D, ge, _e, ce, Ne, De;
4492
+ let q = `${(D = t.config) == null ? void 0 : D.apiBaseUrl}${$e.form[(ge = t.config) == null ? void 0 : ge.app][_]}`;
4493
+ return ((_e = t.config) == null ? void 0 : _e.app) === "konnect" ? q = q.replace(/{controlPlaneId}/gi, ((ce = t.config) == null ? void 0 : ce.controlPlaneId) || "") : ((Ne = t.config) == null ? void 0 : Ne.app) === "kongManager" && (q = q.replace(/\/{workspace}/gi, (De = t.config) != null && De.workspace ? `/${t.config.workspace}` : "")), q = q.replace(/{id}/gi, L || t.consumerGroupId), (_ === "addConsumer" || _ === "removeConsumer") && (q = q.replace(/{consumerId}/gi, re)), q;
4494
+ }, A = () => {
4506
4495
  var _;
4507
4496
  o.push(((_ = t.config) == null ? void 0 : _.cancelRoute) || { name: "consumer-group-list" });
4508
- }, D = (_) => {
4497
+ }, ne = (_) => {
4509
4498
  n("error", _);
4510
- }, se = (_) => {
4499
+ }, pe = (_) => {
4511
4500
  n("loading", _);
4512
- }, Y = async (_) => {
4513
- var oe, L, G, ge, _e;
4514
- a.fields.name = ((oe = _ == null ? void 0 : _.item) == null ? void 0 : oe.name) || ((L = _ == null ? void 0 : _.consumer_group) == null ? void 0 : L.name) || (_ == null ? void 0 : _.name) || "";
4515
- const B = ((G = _ == null ? void 0 : _.item) == null ? void 0 : G.tags) || (_ == null ? void 0 : _.consumer_group.tags) || (_ == null ? void 0 : _.tags) || [];
4516
- if (a.fields.tags = (B == null ? void 0 : B.join(", ")) || "", "consumers" in _)
4517
- a.fields.consumers = ((ge = _ == null ? void 0 : _.consumers) == null ? void 0 : ge.map((de) => de.id)) || [];
4501
+ }, H = async (_) => {
4502
+ var re, q, D, ge, _e;
4503
+ a.fields.name = ((re = _ == null ? void 0 : _.item) == null ? void 0 : re.name) || ((q = _ == null ? void 0 : _.consumer_group) == null ? void 0 : q.name) || (_ == null ? void 0 : _.name) || "";
4504
+ const L = ((D = _ == null ? void 0 : _.item) == null ? void 0 : D.tags) || (_ == null ? void 0 : _.consumer_group.tags) || (_ == null ? void 0 : _.tags) || [];
4505
+ if (a.fields.tags = (L == null ? void 0 : L.join(", ")) || "", "consumers" in _)
4506
+ a.fields.consumers = ((ge = _ == null ? void 0 : _.consumers) == null ? void 0 : ge.map((ce) => ce.id)) || [];
4518
4507
  else
4519
4508
  try {
4520
- const { data: de } = await g.get(O("getConsumers"));
4521
- a.fields.consumers = "consumers" in de ? (_e = de == null ? void 0 : de.consumers) == null ? void 0 : _e.map((Fe) => Fe.id) : [];
4522
- } catch (de) {
4523
- x(de);
4509
+ const { data: ce } = await m.get(C("getConsumers"));
4510
+ a.fields.consumers = "consumers" in ce ? (_e = ce == null ? void 0 : ce.consumers) == null ? void 0 : _e.map((Ne) => Ne.id) : [];
4511
+ } catch (ce) {
4512
+ x(ce);
4524
4513
  }
4525
4514
  Object.assign(i, a.fields);
4526
- }, w = T(() => /^[0-9a-zA-Z.\-_~]*$/.test(a.fields.name) ? "" : r("consumer_groups.form.validation_errors.name")), F = () => {
4527
- var _, B;
4515
+ }, w = M(() => /^[0-9a-zA-Z.\-_~]*$/.test(a.fields.name) ? "" : r("consumer_groups.form.validation_errors.name")), N = () => {
4516
+ var _, L;
4528
4517
  return {
4529
4518
  name: a.fields.name,
4530
- tags: (B = (_ = a.fields.tags.split(",")) == null ? void 0 : _.map((oe) => String(oe || "").trim())) == null ? void 0 : B.filter((oe) => oe !== "")
4519
+ tags: (L = (_ = a.fields.tags.split(",")) == null ? void 0 : _.map((re) => String(re || "").trim())) == null ? void 0 : L.filter((re) => re !== "")
4531
4520
  };
4532
- }, V = async (_, B = "") => await g.post(O("addConsumer", B, _), { consumer: _ }), b = async (_, B = "") => await g.delete(O("removeConsumer", B, _)), x = (_) => {
4521
+ }, B = async (_, L = "") => await m.post(C("addConsumer", L, _), { consumer: _ }), k = async (_, L = "") => await m.delete(C("removeConsumer", L, _)), x = (_) => {
4533
4522
  a.errorMessage = f(_), n("error", _);
4534
- }, S = (_ = t.consumerGroupId) => {
4523
+ }, T = (_ = t.consumerGroupId) => {
4535
4524
  Object.assign(i, a.fields), n("update", { ...a.fields, id: _ });
4536
- }, q = (_, B, oe = t.consumerGroupId) => {
4537
- const L = _ == null ? void 0 : _.find((G) => G.status !== "fulfilled");
4538
- L ? x({
4539
- code: L.status,
4540
- message: B
4541
- }) : S(oe);
4525
+ }, P = (_, L, re = t.consumerGroupId) => {
4526
+ const q = _ == null ? void 0 : _.find((D) => D.status !== "fulfilled");
4527
+ q ? x({
4528
+ code: q.status,
4529
+ message: L
4530
+ }) : T(re);
4542
4531
  }, J = async () => {
4543
4532
  let _ = "";
4544
4533
  try {
4545
- const { data: B } = await g.post(O("create"), F());
4546
- _ = "item" in B ? B.item.id : B.id;
4547
- } catch (B) {
4548
- x(B);
4534
+ const { data: L } = await m.post(C("create"), N());
4535
+ _ = "item" in L ? L.item.id : L.id;
4536
+ } catch (L) {
4537
+ x(L);
4549
4538
  }
4550
4539
  if (a.fields.consumers.length > 0 && _)
4551
4540
  try {
4552
- const B = a.fields.consumers.map((L) => V(L, _)), oe = await Promise.allSettled(B);
4553
- q(oe, r("consumer_groups.errors.add_consumer"), _);
4554
- } catch (B) {
4555
- x(B);
4541
+ const L = a.fields.consumers.map((q) => B(q, _)), re = await Promise.allSettled(L);
4542
+ P(re, r("consumer_groups.errors.add_consumer"), _);
4543
+ } catch (L) {
4544
+ x(L);
4556
4545
  }
4557
4546
  else
4558
- a.fields.consumers.length === 0 && _ && S(_);
4559
- }, X = async () => {
4560
- var oe;
4547
+ a.fields.consumers.length === 0 && _ && T(_);
4548
+ }, Q = async () => {
4549
+ var re;
4561
4550
  try {
4562
- ((oe = t.config) == null ? void 0 : oe.app) === "konnect" ? await g.put(O("edit"), F()) : await g.patch(O("edit"), F());
4563
- } catch (L) {
4564
- x(L);
4551
+ ((re = t.config) == null ? void 0 : re.app) === "konnect" ? await m.put(C("edit"), N()) : await m.patch(C("edit"), N());
4552
+ } catch (q) {
4553
+ x(q);
4565
4554
  }
4566
- const _ = a.fields.consumers.filter((L) => !i.consumers.includes(L)), B = i.consumers.filter((L) => !a.fields.consumers.includes(L));
4567
- if (B.length === 0 && _.length === 0)
4568
- S();
4555
+ const _ = a.fields.consumers.filter((q) => !i.consumers.includes(q)), L = i.consumers.filter((q) => !a.fields.consumers.includes(q));
4556
+ if (L.length === 0 && _.length === 0)
4557
+ T();
4569
4558
  else {
4570
- if (B.length > 0)
4559
+ if (L.length > 0)
4571
4560
  try {
4572
- const L = B.map((ge) => b(ge)), G = await Promise.allSettled(L);
4573
- q(G, r("consumer_groups.errors.remove_consumer"));
4574
- } catch (L) {
4575
- x(L);
4561
+ const q = L.map((ge) => k(ge)), D = await Promise.allSettled(q);
4562
+ P(D, r("consumer_groups.errors.remove_consumer"));
4563
+ } catch (q) {
4564
+ x(q);
4576
4565
  }
4577
4566
  if (_.length > 0)
4578
4567
  try {
4579
- const L = _.map((ge) => V(ge)), G = await Promise.allSettled(L);
4580
- q(G, r("consumer_groups.errors.add_consumer"));
4581
- } catch (L) {
4582
- x(L);
4568
+ const q = _.map((ge) => B(ge)), D = await Promise.allSettled(q);
4569
+ P(D, r("consumer_groups.errors.add_consumer"));
4570
+ } catch (q) {
4571
+ x(q);
4583
4572
  }
4584
4573
  }
4585
- }, ee = async () => {
4574
+ }, X = async () => {
4586
4575
  try {
4587
- a.readonly = !0, p.value === nt.Create ? await J() : await X();
4576
+ a.readonly = !0, p.value === nt.Create ? await J() : await Q();
4588
4577
  } finally {
4589
4578
  a.readonly = !1;
4590
4579
  }
4591
4580
  };
4592
4581
  return Qe(async () => {
4593
4582
  await d();
4594
- }), (_, B) => {
4595
- const oe = P("KInput"), L = P("KMultiselect");
4596
- return m(), j("div", sl, [
4597
- N(y(ys), {
4598
- "can-submit": A.value && C.value,
4583
+ }), (_, L) => {
4584
+ const re = U("KInput"), q = U("KMultiselect");
4585
+ return g(), j("div", sl, [
4586
+ K(y(ys), {
4587
+ "can-submit": S.value && b.value,
4599
4588
  config: e.config,
4600
4589
  "edit-id": e.consumerGroupId,
4601
4590
  "error-message": a.errorMessage || y(c) || w.value,
4602
- "fetch-url": k.value,
4591
+ "fetch-url": v.value,
4603
4592
  "is-readonly": a.readonly,
4604
- onCancel: h,
4605
- "onFetch:error": B[3] || (B[3] = (G) => D(G)),
4606
- "onFetch:success": Y,
4607
- onLoading: B[4] || (B[4] = (G) => se(G)),
4608
- onSubmit: ee
4593
+ onCancel: A,
4594
+ "onFetch:error": L[3] || (L[3] = (D) => ne(D)),
4595
+ "onFetch:success": H,
4596
+ onLoading: L[4] || (L[4] = (D) => pe(D)),
4597
+ onSubmit: X
4609
4598
  }, {
4610
- default: v(() => [
4611
- N(y(un), {
4599
+ default: h(() => [
4600
+ K(y(un), {
4612
4601
  description: y(r)("consumer_groups.form.general_info.description"),
4613
4602
  title: y(r)("consumer_groups.form.general_info.title")
4614
4603
  }, {
4615
- default: v(() => [
4616
- N(oe, {
4604
+ default: h(() => [
4605
+ K(re, {
4617
4606
  modelValue: a.fields.name,
4618
- "onUpdate:modelValue": B[0] || (B[0] = (G) => a.fields.name = G),
4607
+ "onUpdate:modelValue": L[0] || (L[0] = (D) => a.fields.name = D),
4619
4608
  modelModifiers: { trim: !0 },
4620
4609
  autocomplete: "off",
4621
4610
  "data-testid": "consumer-group-form-name",
@@ -4624,9 +4613,9 @@ const _l = /* @__PURE__ */ Nt(il, [["__scopeId", "data-v-d623df4d"]]), sl = { cl
4624
4613
  required: "",
4625
4614
  type: "text"
4626
4615
  }, null, 8, ["modelValue", "label", "placeholder"]),
4627
- N(oe, {
4616
+ K(re, {
4628
4617
  modelValue: a.fields.tags,
4629
- "onUpdate:modelValue": B[1] || (B[1] = (G) => a.fields.tags = G),
4618
+ "onUpdate:modelValue": L[1] || (L[1] = (D) => a.fields.tags = D),
4630
4619
  modelModifiers: { trim: !0 },
4631
4620
  autocomplete: "off",
4632
4621
  "data-testid": "consumer-group-form-tags",
@@ -4642,15 +4631,15 @@ const _l = /* @__PURE__ */ Nt(il, [["__scopeId", "data-v-d623df4d"]]), sl = { cl
4642
4631
  ]),
4643
4632
  _: 1
4644
4633
  }, 8, ["description", "title"]),
4645
- N(y(un), {
4634
+ K(y(un), {
4646
4635
  description: y(r)("consumer_groups.form.consumers.description"),
4647
4636
  "has-divider": "",
4648
4637
  title: y(r)("consumer_groups.form.consumers.title")
4649
4638
  }, {
4650
- default: v(() => [
4651
- N(L, {
4639
+ default: h(() => [
4640
+ K(q, {
4652
4641
  modelValue: a.fields.consumers,
4653
- "onUpdate:modelValue": B[2] || (B[2] = (G) => a.fields.consumers = G),
4642
+ "onUpdate:modelValue": L[2] || (L[2] = (D) => a.fields.consumers = D),
4654
4643
  appearance: "select",
4655
4644
  autosuggest: "",
4656
4645
  "expand-selected": "",
@@ -4661,11 +4650,11 @@ const _l = /* @__PURE__ */ Nt(il, [["__scopeId", "data-v-d623df4d"]]), sl = { cl
4661
4650
  width: "auto",
4662
4651
  onQueryChange: y(s)
4663
4652
  }, {
4664
- "item-template": v(({ item: G }) => {
4665
- var ge, _e, de;
4653
+ "item-template": h(({ item: D }) => {
4654
+ var ge, _e, ce;
4666
4655
  return [
4667
- U("div", ll, K(G.label), 1),
4668
- (ge = G == null ? void 0 : G.data) != null && ge.username && ((_e = G == null ? void 0 : G.data) != null && _e.custom_id) ? (m(), j("div", ul, K((de = G == null ? void 0 : G.data) == null ? void 0 : de.custom_id), 1)) : z("", !0)
4656
+ R("div", ll, F(D.label), 1),
4657
+ (ge = D == null ? void 0 : D.data) != null && ge.username && ((_e = D == null ? void 0 : D.data) != null && _e.custom_id) ? (g(), j("div", ul, F((ce = D == null ? void 0 : D.data) == null ? void 0 : ce.custom_id), 1)) : G("", !0)
4669
4658
  ];
4670
4659
  }),
4671
4660
  _: 1
@@ -4680,7 +4669,7 @@ const _l = /* @__PURE__ */ Nt(il, [["__scopeId", "data-v-d623df4d"]]), sl = { cl
4680
4669
  };
4681
4670
  }
4682
4671
  });
4683
- const wl = /* @__PURE__ */ Nt(cl, [["__scopeId", "data-v-102d40d2"]]), dl = { class: "kong-ui-consumer-group-entity-config-card" }, Il = /* @__PURE__ */ ie({
4672
+ const wl = /* @__PURE__ */ Kt(cl, [["__scopeId", "data-v-102d40d2"]]), dl = { class: "kong-ui-consumer-group-entity-config-card" }, Il = /* @__PURE__ */ ae({
4684
4673
  __name: "ConsumerGroupConfigCard",
4685
4674
  props: {
4686
4675
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -4707,7 +4696,7 @@ const wl = /* @__PURE__ */ Nt(cl, [["__scopeId", "data-v-102d40d2"]]), dl = { cl
4707
4696
  },
4708
4697
  emits: ["loading", "fetch:error", "fetch:success", "copy:success"],
4709
4698
  setup(e) {
4710
- const n = e, { i18n: { t } } = ct.useI18n(), r = T(() => $e.form[n.config.app].edit), o = E({
4699
+ const n = e, { i18n: { t } } = ct.useI18n(), r = M(() => $e.form[n.config.app].edit), o = O({
4711
4700
  id: {},
4712
4701
  name: {},
4713
4702
  created_at: {},
@@ -4716,8 +4705,8 @@ const wl = /* @__PURE__ */ Nt(cl, [["__scopeId", "data-v-102d40d2"]]), dl = { cl
4716
4705
  tooltip: t("consumer_groups.form.fields.tags.tooltip")
4717
4706
  }
4718
4707
  });
4719
- return (a, i) => (m(), j("div", dl, [
4720
- N(y(ps), {
4708
+ return (a, i) => (g(), j("div", dl, [
4709
+ K(y(ps), {
4721
4710
  config: e.config,
4722
4711
  "config-card-doc": e.configCardDoc,
4723
4712
  "config-schema": o.value,