@kong-ui-public/entities-consumer-groups 2.1.12 → 2.1.14-pr.940.0fa4e316.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
- import { defineComponent as oe, ref as E, computed as S, watch as xe, renderSlot as Q, createCommentVNode as J, unref as m, useSlots as ut, onBeforeMount as ct, resolveComponent as P, openBlock as f, createBlock as R, createSlots as Me, withCtx as v, createElementVNode as V, createTextVNode as X, toDisplayString as F, createVNode as N, createElementBlock as T, renderList as ve, Fragment as Ce, normalizeClass as Ne, withModifiers as rt, withDirectives as Ye, vShow as We, useCssVars as yr, resolveDynamicComponent as Re, normalizeProps as hr, guardReactiveProps as vr, mergeProps as vt, onMounted as br, onUnmounted as Cr, normalizeStyle as mn, inject as kr, pushScopeId as gn, popScopeId as yn, Teleport as wr, reactive as Pt } from "vue";
1
+ import { defineComponent as oe, ref as E, computed as A, watch as Ae, renderSlot as X, createCommentVNode as J, unref as m, useSlots as ut, onBeforeMount as ct, resolveComponent as U, openBlock as f, createBlock as V, createSlots as je, withCtx as h, createElementVNode as D, createTextVNode as Q, toDisplayString as K, createVNode as N, createElementBlock as T, renderList as ve, Fragment as Ce, normalizeClass as Oe, withModifiers as rt, withDirectives as We, vShow as Ye, useCssVars as mn, resolveDynamicComponent as Ve, normalizeProps as hr, guardReactiveProps as vr, mergeProps as vt, onMounted as br, onUnmounted as Cr, normalizeStyle as gn, inject as kr, pushScopeId as yn, popScopeId as hn, Teleport as wr, reactive as Ut } from "vue";
2
2
  import { useRouter as It } from "vue-router";
3
- import { createI18n as At, i18nTComponent as hn } from "@kong-ui-public/i18n";
3
+ import { createI18n as St, i18nTComponent as vn } from "@kong-ui-public/i18n";
4
4
  import _r from "axios";
5
5
  import { BadgeMethodAppearances as Ir } from "@kong/kongponents";
6
- const Ar = {
6
+ const Sr = {
7
7
  list: {
8
8
  table_headers: {
9
9
  name: "Name",
@@ -95,25 +95,25 @@ const Ar = {
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
- }, xr = {
99
- consumer_groups: Ar
98
+ }, Ar = {
99
+ consumer_groups: Sr
100
100
  };
101
- function Sr() {
102
- const e = At("en-us", xr);
101
+ function xr() {
102
+ const e = St("en-us", Ar);
103
103
  return {
104
104
  i18n: e,
105
- i18nT: hn(e)
105
+ i18nT: vn(e)
106
106
  // Translation component <i18n-t>
107
107
  };
108
108
  }
109
109
  const dt = {
110
- useI18n: Sr
111
- }, Se = "/api/runtime_groups/{controlPlaneId}", Te = "/{workspace}", je = {
110
+ useI18n: xr
111
+ }, xe = "/api/runtime_groups/{controlPlaneId}", Te = "/{workspace}", Me = {
112
112
  list: {
113
113
  konnect: {
114
- all: `${Se}/consumer_groups`,
115
- forConsumer: `${Se}/consumers/{consumerId}/consumer_groups`,
116
- oneForConsumer: `${Se}/consumers/{consumerId}/consumer_groups/{consumerGroupId}`
114
+ all: `${xe}/consumer_groups`,
115
+ forConsumer: `${xe}/consumers/{consumerId}/consumer_groups`,
116
+ oneForConsumer: `${xe}/consumers/{consumerId}/consumer_groups/{consumerGroupId}`
117
117
  },
118
118
  kongManager: {
119
119
  all: `${Te}/consumer_groups?counter=true`,
@@ -123,12 +123,12 @@ const dt = {
123
123
  },
124
124
  form: {
125
125
  konnect: {
126
- consumersList: `${Se}/consumers`,
127
- create: `${Se}/consumer_groups`,
128
- edit: `${Se}/consumer_groups/{id}`,
129
- addConsumer: `${Se}/consumer_groups/{id}/consumers`,
130
- removeConsumer: `${Se}/consumer_groups/{id}/consumers/{consumerId}`,
131
- getConsumers: `${Se}/consumer_groups/{id}/consumers`
126
+ consumersList: `${xe}/consumers`,
127
+ create: `${xe}/consumer_groups`,
128
+ edit: `${xe}/consumer_groups/{id}`,
129
+ addConsumer: `${xe}/consumer_groups/{id}/consumers`,
130
+ removeConsumer: `${xe}/consumer_groups/{id}/consumers/{consumerId}`,
131
+ getConsumers: `${xe}/consumer_groups/{id}/consumers`
132
132
  },
133
133
  kongManager: {
134
134
  consumersList: `${Te}/consumers`,
@@ -140,8 +140,8 @@ const dt = {
140
140
  }
141
141
  }
142
142
  };
143
- var vn = /* @__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))(vn || {}), nt = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(nt || {}), Ke = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(Ke || {}), re = /* @__PURE__ */ ((e) => (e.ID = "id", e.IdArray = "id-array", e.Text = "plain-text", e.Date = "date", e.Redacted = "redacted", e.RedactedArray = "redacted-array", e.Json = "json", e.JsonArray = "json-array", e.BadgeTag = "badge-tag", e.BadgeStatus = "badge-status", e.BadgeMethod = "badge-method", e.LinkInternal = "link-internal", e.LinkExternal = "link-external", e))(re || {}), ke = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(ke || {});
144
- function xt(e = {}) {
143
+ var bn = /* @__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))(bn || {}), nt = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(nt || {}), Ne = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(Ne || {}), re = /* @__PURE__ */ ((e) => (e.ID = "id", e.IdArray = "id-array", e.Text = "plain-text", e.Date = "date", e.Redacted = "redacted", e.RedactedArray = "redacted-array", e.Json = "json", e.JsonArray = "json-array", e.BadgeTag = "badge-tag", e.BadgeStatus = "badge-status", e.BadgeMethod = "badge-method", e.LinkInternal = "link-internal", e.LinkExternal = "link-external", e))(re || {}), ke = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(ke || {});
144
+ function At(e = {}) {
145
145
  return {
146
146
  axiosInstance: _r.create({
147
147
  withCredentials: !0,
@@ -167,7 +167,7 @@ const mt = "khcp-user-table-preferences", $r = {
167
167
  sortColumnKey: void 0,
168
168
  sortColumnOrder: void 0
169
169
  };
170
- function Mr() {
170
+ function jr() {
171
171
  const e = (t) => {
172
172
  if (typeof t == "string")
173
173
  try {
@@ -198,7 +198,7 @@ function Mr() {
198
198
  }
199
199
  };
200
200
  }
201
- const jr = {
201
+ const Mr = {
202
202
  actions: {
203
203
  copyId: "Copy ID",
204
204
  copied_id: 'Copied "{id}" to the clipboard',
@@ -217,13 +217,13 @@ const jr = {
217
217
  errors: {
218
218
  edit: "The entity could not be edited at this time."
219
219
  }
220
- }, Kr = {
220
+ }, Fr = {
221
221
  emptyState: {
222
222
  noSearchResultsTitle: "No results found",
223
223
  noSearchResultsMessage: "Please adjust the criteria and try again.",
224
224
  noSearchResultsCtaText: "Clear"
225
225
  }
226
- }, Fr = {
226
+ }, Nr = {
227
227
  title: "Configuration",
228
228
  actions: {
229
229
  copy: "Copy JSON"
@@ -246,6 +246,9 @@ const jr = {
246
246
  enabledLabel: "Enabled",
247
247
  disabledLabel: "Disabled"
248
248
  },
249
+ endpoints: {
250
+ get: "Get"
251
+ },
249
252
  copy: {
250
253
  tooltip: "Copy {label}",
251
254
  success: "Copied!"
@@ -258,7 +261,7 @@ const jr = {
258
261
  entryTitle: "Entry {index}",
259
262
  structuredFormat: "Structured"
260
263
  }
261
- }, Nr = {
264
+ }, Kr = {
262
265
  filterButtonText: "Filter",
263
266
  fieldLabel: "Filter by:",
264
267
  inputPlaceholder: "Enter a value",
@@ -285,26 +288,26 @@ const jr = {
285
288
  message: "Are you sure you want to disable the {entityType} {entityName}?",
286
289
  confirmText: "Yes, disable"
287
290
  }
288
- }, Pr = {
289
- global: jr,
291
+ }, Ur = {
292
+ global: Mr,
290
293
  deleteModal: Er,
291
294
  baseForm: Or,
292
- baseTable: Kr,
293
- baseConfigCard: Fr,
294
- filter: Nr,
295
+ baseTable: Fr,
296
+ baseConfigCard: Nr,
297
+ filter: Kr,
295
298
  debouncedFilter: Br,
296
299
  errors: qr,
297
300
  toggleModal: Lr
298
301
  };
299
- function St() {
300
- const e = At("en-us", Pr);
302
+ function xt() {
303
+ const e = St("en-us", Ur);
301
304
  return {
302
305
  i18n: e,
303
- i18nT: hn(e)
306
+ i18nT: vn(e)
304
307
  // Translation component <i18n-t>
305
308
  };
306
309
  }
307
- function bn() {
310
+ function Cn() {
308
311
  const e = (t, r) => (r == null ? void 0 : r[t]) ?? void 0, n = (t, r) => {
309
312
  if (t.length !== r.length)
310
313
  return !1;
@@ -348,92 +351,92 @@ function bn() {
348
351
  isValidUuid: (t) => t ? /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(t) : !1
349
352
  };
350
353
  }
351
- function Ur(e, n, t, r = {
354
+ function Pr(e, n, t, r = {
352
355
  fetchedItemsKey: "data",
353
356
  searchKeys: ["id"]
354
357
  }) {
355
358
  t || (t = "100");
356
- const { axiosInstance: a } = xt({
359
+ const { axiosInstance: a } = At({
357
360
  headers: e.requestHeaders
358
- }), { i18n: { t: i } } = St(), { debounce: o } = Tr(), s = o(async (I) => {
361
+ }), { i18n: { t: i } } = xt(), { debounce: o } = Tr(), s = o(async (I) => {
359
362
  await O(I);
360
- }, 200), l = E(!1), c = E(""), d = E(""), u = E([]), y = E([]), p = E(void 0), _ = m(n);
361
- let h = `${e.apiBaseUrl}${_}`;
362
- e.app === "konnect" ? h = h.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (h = h.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
363
- const { isValidUuid: A } = bn(), g = async () => {
363
+ }, 200), l = E(!1), u = E(""), p = E(""), c = E([]), g = E([]), d = E(void 0), _ = m(n);
364
+ let v = `${e.apiBaseUrl}${_}`;
365
+ 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}` : ""));
366
+ const { isValidUuid: S } = Cn(), y = async () => {
364
367
  try {
365
368
  l.value = !0;
366
- const { data: I } = await a.get(`${h}?size=${t}`);
367
- I != null && I.next || (p.value = r.fetchedItemsKey in I ? I[r.fetchedItemsKey] : []), y.value = r.fetchedItemsKey in I ? I[r.fetchedItemsKey] : [], u.value = y.value;
369
+ const { data: I } = await a.get(`${v}?size=${t}`);
370
+ I != null && I.next || (d.value = r.fetchedItemsKey in I ? I[r.fetchedItemsKey] : []), g.value = r.fetchedItemsKey in I ? I[r.fetchedItemsKey] : [], c.value = g.value;
368
371
  } catch {
369
- u.value = [], c.value = i("debouncedFilter.errors.fetch");
372
+ c.value = [], u.value = i("debouncedFilter.errors.fetch");
370
373
  } finally {
371
374
  l.value = !1;
372
375
  }
373
376
  }, b = E(""), O = async (I) => {
374
- var K, H, le;
377
+ var F, H, ie;
375
378
  if (b.value !== I)
376
- if (b.value = I || "", p.value === void 0)
379
+ if (b.value = I || "", d.value === void 0)
377
380
  try {
378
- if (l.value = !0, c.value = "", d.value = "", e.app === "konnect") {
379
- let D = h + "";
380
- I && (D += `/${I}`);
381
- const { data: k } = await a.get(`${D}?size=${t}`);
382
- r.fetchedItemsKey in k ? u.value = k[r.fetchedItemsKey] : k != null && k.id ? u.value = [k] : u.value = [];
381
+ if (l.value = !0, u.value = "", p.value = "", e.app === "konnect") {
382
+ let R = v + "";
383
+ I && (R += `/${I}`);
384
+ const { data: k } = await a.get(`${R}?size=${t}`);
385
+ r.fetchedItemsKey in k ? c.value = k[r.fetchedItemsKey] : k != null && k.id ? c.value = [k] : c.value = [];
383
386
  } else if (I) {
384
- const D = [];
385
- A(I) && r.searchKeys.includes("id") ? D.push((async () => {
386
- const { data: B } = await a.get(`${h}/${I}`);
387
+ const R = [];
388
+ S(I) && r.searchKeys.includes("id") ? R.push((async () => {
389
+ const { data: B } = await a.get(`${v}/${I}`);
387
390
  return [B[r.fetchedItemsKey] ?? B];
388
- })()) : D.push(
391
+ })()) : R.push(
389
392
  ...r.searchKeys.filter((B) => B !== "id").map(async (B) => {
390
- const { data: w } = await a.get(`${h}?${B}=${I}`);
393
+ const { data: w } = await a.get(`${v}?${B}=${I}`);
391
394
  return w[r.fetchedItemsKey];
392
395
  })
393
396
  );
394
- const k = await Promise.all(D), G = /* @__PURE__ */ new Set();
395
- u.value = [], (K = k == null ? void 0 : k.forEach) == null || K.call(k, (B) => {
397
+ const k = await Promise.all(R), G = /* @__PURE__ */ new Set();
398
+ c.value = [], (F = k == null ? void 0 : k.forEach) == null || F.call(k, (B) => {
396
399
  var w;
397
- (w = B == null ? void 0 : B.forEach) == null || w.call(B, (M) => {
398
- G.has(M.id) || (G.add(M.id), u.value.push(M));
400
+ (w = B == null ? void 0 : B.forEach) == null || w.call(B, (j) => {
401
+ G.has(j.id) || (G.add(j.id), c.value.push(j));
399
402
  });
400
403
  });
401
404
  } else
402
- u.value = y.value;
403
- } catch (D) {
404
- ((H = D == null ? void 0 : D.response) == null ? void 0 : H.status) === 404 ? d.value = i("debouncedFilter.errors.invalid") : (u.value = [], c.value = i("debouncedFilter.errors.fetch"));
405
+ c.value = g.value;
406
+ } catch (R) {
407
+ ((H = R == null ? void 0 : R.response) == null ? void 0 : H.status) === 404 ? p.value = i("debouncedFilter.errors.invalid") : (c.value = [], u.value = i("debouncedFilter.errors.fetch"));
405
408
  } finally {
406
409
  l.value = !1;
407
410
  }
408
411
  else
409
- l.value = !0, d.value = "", I ? (u.value = (le = p.value) == null ? void 0 : le.filter((D) => {
412
+ l.value = !0, p.value = "", I ? (c.value = (ie = d.value) == null ? void 0 : ie.filter((R) => {
410
413
  var k;
411
414
  let G = !1;
412
415
  for (const B of r.searchKeys) {
413
- const w = typeof D[B] == "string" ? (k = D[B]) == null ? void 0 : k.toLowerCase() : D[B];
416
+ const w = typeof R[B] == "string" ? (k = R[B]) == null ? void 0 : k.toLowerCase() : R[B];
414
417
  w != null && w.includes(I.toLowerCase()) && (G = !0);
415
418
  }
416
419
  return G;
417
- }), (!u.value || !u.value.length) && (d.value = i("debouncedFilter.errors.invalid"))) : u.value = p.value, l.value = !1;
420
+ }), (!c.value || !c.value.length) && (p.value = i("debouncedFilter.errors.invalid"))) : c.value = d.value, l.value = !1;
418
421
  };
419
422
  return {
420
423
  loading: l,
421
- error: c,
422
- validationError: d,
423
- results: u,
424
- allRecords: p,
425
- loadItems: g,
424
+ error: u,
425
+ validationError: p,
426
+ results: c,
427
+ allRecords: d,
428
+ loadItems: y,
426
429
  debouncedQueryChange: s
427
430
  };
428
431
  }
429
- function Vr(e, n) {
430
- const t = m(n), r = S(
432
+ function Dr(e, n) {
433
+ const t = m(n), r = A(
431
434
  () => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${t}`) : new URL(t)
432
435
  );
433
436
  return r.value.search = "", (a) => `${r.value.href}/${a}`;
434
437
  }
435
- function Rr() {
436
- const { i18n: { t: e } } = St();
438
+ function Vr() {
439
+ const { i18n: { t: e } } = xt();
437
440
  return {
438
441
  getMessageFromError: (n) => {
439
442
  var t, r, a;
@@ -460,7 +463,7 @@ function Rr() {
460
463
  }
461
464
  };
462
465
  }
463
- function Dr(e) {
466
+ function Rr(e) {
464
467
  const n = window.location.origin, t = n.endsWith("/") ? n : `${n}/`;
465
468
  try {
466
469
  const r = e.join("/"), a = `${t}${r}`, i = e.some((o) => o.trim() === "");
@@ -471,63 +474,63 @@ function Dr(e) {
471
474
  return console.warn("Failed to build valid URL:", r), "";
472
475
  }
473
476
  }
474
- function Cn(e, n) {
475
- const t = E(m(e)), r = E(m(n)), a = S(
477
+ function kn(e, n) {
478
+ const t = E(m(e)), r = E(m(n)), a = A(
476
479
  () => !!(t.value.app === "konnect" || t.value.isExactMatch)
477
- ), i = S(
480
+ ), i = A(
478
481
  () => r.value.startsWith("/") ? new URL(`${window.location.origin}${r.value}`) : new URL(r.value)
479
482
  );
480
483
  return (o) => {
481
- const { page: s, pageSize: l, offset: c, sortColumnKey: d, sortColumnOrder: u, query: y } = o;
484
+ const { page: s, pageSize: l, offset: u, sortColumnKey: p, sortColumnOrder: c, query: g } = o;
482
485
  try {
483
- let p = new URL(i.value.href);
484
- return a.value && y ? (p.search = "", p = t.value.app === "konnect" ? new URL(`${p.href}?filter[name][contains]=${y}`) : new URL(`${p.href}/${y}/`)) : (a.value || new URLSearchParams(y).forEach((_, h) => {
485
- p.searchParams.append(h, _);
486
- }), d && p.searchParams.append("sort_by", d), u === "desc" && p.searchParams.append("sort_desc", "1"), p.searchParams.append("size", String(l))), c && s !== 1 && p.searchParams.append("offset", String(c)), p.href;
487
- } catch (p) {
488
- return console.error("RouteList(fetcher)", p), r.value;
486
+ let d = new URL(i.value.href);
487
+ return a.value && g ? (d.search = "", d = t.value.app === "konnect" ? new URL(`${d.href}?filter[name][contains]=${g}`) : new URL(`${d.href}/${g}/`)) : (a.value || new URLSearchParams(g).forEach((_, v) => {
488
+ d.searchParams.append(v, _);
489
+ }), p && d.searchParams.append("sort_by", p), c === "desc" && d.searchParams.append("sort_desc", "1"), d.searchParams.append("size", String(l))), u && s !== 1 && d.searchParams.append("offset", String(u)), d.href;
490
+ } catch (d) {
491
+ return console.error("RouteList(fetcher)", d), r.value;
489
492
  }
490
493
  };
491
494
  }
492
495
  function Gr(e, n, t = "data") {
493
- const r = m(n), { axiosInstance: a } = xt({
496
+ const r = m(n), { axiosInstance: a } = At({
494
497
  headers: e.requestHeaders
495
- }), i = Cn(e, r), o = E({
496
- status: Ke.Idle
498
+ }), i = kn(e, r), o = E({
499
+ status: Ne.Idle
497
500
  });
498
501
  return { fetcher: async (s) => {
499
502
  try {
500
- o.value = { status: Ke.Loading };
501
- const l = i(s), { data: c } = await a.get(l), d = t && t.replace(/[^\w-_]/gi, "");
502
- let u;
503
- c[d] && Array.isArray(c[d]) ? u = c[d] : Array.isArray(c) ? u = c : u = Object.keys(c).length ? [c] : [];
504
- const y = {
505
- data: u,
506
- total: u.length,
507
- ...c.offset ? {
503
+ o.value = { status: Ne.Loading };
504
+ const l = i(s), { data: u } = await a.get(l), p = t && t.replace(/[^\w-_]/gi, "");
505
+ let c;
506
+ u[p] && Array.isArray(u[p]) ? c = u[p] : Array.isArray(u) ? c = u : c = Object.keys(u).length ? [u] : [];
507
+ const g = {
508
+ data: c,
509
+ total: c.length,
510
+ ...u.offset ? {
508
511
  pagination: {
509
- offset: c.offset
512
+ offset: u.offset
510
513
  }
511
514
  } : null
512
515
  };
513
516
  return o.value = {
514
- status: Ke.Idle,
515
- response: y
516
- }, y;
517
+ status: Ne.Idle,
518
+ response: g
519
+ }, g;
517
520
  } catch (l) {
518
- const c = {
521
+ const u = {
519
522
  data: [],
520
523
  total: 0
521
524
  };
522
525
  return s.query && l.response.status === 404 ? (o.value = {
523
- status: Ke.NoResults,
524
- response: c,
526
+ status: Ne.NoResults,
527
+ response: u,
525
528
  error: l
526
- }, c) : (o.value = {
527
- status: Ke.Error,
528
- response: c,
529
+ }, u) : (o.value = {
530
+ status: Ne.Error,
531
+ response: u,
529
532
  error: l
530
- }, c);
533
+ }, u);
531
534
  }
532
535
  }, fetcherState: o };
533
536
  }
@@ -538,48 +541,48 @@ function Hr() {
538
541
  convertKeyToTitle: e
539
542
  };
540
543
  }
541
- const kn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, Ut = (e) => {
544
+ const wn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, Pt = (e) => {
542
545
  if (typeof e != "string")
543
546
  throw new TypeError("Invalid argument expected string");
544
- const n = e.match(kn);
547
+ const n = e.match(wn);
545
548
  if (!n)
546
549
  throw new Error(`Invalid argument not valid semver ('${e}' received)`);
547
550
  return n.shift(), n;
548
- }, Vt = (e) => e === "*" || e === "x" || e === "X", Rt = (e) => {
551
+ }, Dt = (e) => e === "*" || e === "x" || e === "X", Vt = (e) => {
549
552
  const n = parseInt(e, 10);
550
553
  return isNaN(n) ? e : n;
551
554
  }, zr = (e, n) => typeof e != typeof n ? [String(e), String(n)] : [e, n], Jr = (e, n) => {
552
- if (Vt(e) || Vt(n))
555
+ if (Dt(e) || Dt(n))
553
556
  return 0;
554
- const [t, r] = zr(Rt(e), Rt(n));
557
+ const [t, r] = zr(Vt(e), Vt(n));
555
558
  return t > r ? 1 : t < r ? -1 : 0;
556
- }, Dt = (e, n) => {
559
+ }, Rt = (e, n) => {
557
560
  for (let t = 0; t < Math.max(e.length, n.length); t++) {
558
561
  const r = Jr(e[t] || "0", n[t] || "0");
559
562
  if (r !== 0)
560
563
  return r;
561
564
  }
562
565
  return 0;
563
- }, Yr = (e, n) => {
564
- const t = Ut(e), r = Ut(n), a = t.pop(), i = r.pop(), o = Dt(t, r);
565
- return o !== 0 ? o : a && i ? Dt(a.split("."), i.split(".")) : a || i ? a ? -1 : 1 : 0;
566
+ }, Wr = (e, n) => {
567
+ const t = Pt(e), r = Pt(n), a = t.pop(), i = r.pop(), o = Rt(t, r);
568
+ return o !== 0 ? o : a && i ? Rt(a.split("."), i.split(".")) : a || i ? a ? -1 : 1 : 0;
566
569
  }, Gt = (e, n, t) => {
567
- Wr(t);
568
- const r = Yr(e, n);
569
- return wn[t].includes(r);
570
- }, wn = {
570
+ Yr(t);
571
+ const r = Wr(e, n);
572
+ return _n[t].includes(r);
573
+ }, _n = {
571
574
  ">": [1],
572
575
  ">=": [0, 1],
573
576
  "=": [0],
574
577
  "<=": [-1, 0],
575
578
  "<": [-1],
576
579
  "!=": [-1, 1]
577
- }, Ht = Object.keys(wn), Wr = (e) => {
580
+ }, Ht = Object.keys(_n), Yr = (e) => {
578
581
  if (typeof e != "string")
579
582
  throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
580
583
  if (Ht.indexOf(e) === -1)
581
584
  throw new Error(`Invalid operator, expected one of ${Ht.join("|")}`);
582
- }, Zr = (e) => typeof e == "string" && /^[v\d]/.test(e) && kn.test(e);
585
+ }, Zr = (e) => typeof e == "string" && /^[v\d]/.test(e) && wn.test(e);
583
586
  function Qr(e) {
584
587
  const { gatewayInfo: n, supportedRange: t } = e;
585
588
  if (!n)
@@ -595,23 +598,23 @@ function Qr(e) {
595
598
  }
596
599
  function Xr(e) {
597
600
  const n = E(0), t = E(0), r = E(!1);
598
- return xe(e, (a) => {
601
+ return Ae(e, (a) => {
599
602
  a && !r.value && (n.value = a.offsetWidth, t.value = a.scrollWidth, r.value = !0);
600
603
  }), {
601
- isTruncated: S(() => n.value < t.value)
604
+ isTruncated: A(() => n.value < t.value)
602
605
  };
603
606
  }
604
607
  const de = {
605
- useAxios: xt,
606
- useDebouncedFilter: Ur,
607
- useDeleteUrlBuilder: Vr,
608
- useErrors: Rr,
609
- useExternalLinkCreator: Dr,
608
+ useAxios: At,
609
+ useDebouncedFilter: Pr,
610
+ useDeleteUrlBuilder: Dr,
611
+ useErrors: Vr,
612
+ useExternalLinkCreator: Rr,
610
613
  useFetcher: Gr,
611
- useFetchUrlBuilder: Cn,
612
- useHelpers: bn,
614
+ useFetchUrlBuilder: kn,
615
+ useHelpers: Cn,
613
616
  useStringHelpers: Hr,
614
- useI18n: St,
617
+ useI18n: xt,
615
618
  useGatewayFeatureSupported: Qr,
616
619
  useTruncationDetector: Xr
617
620
  }, ea = {
@@ -628,10 +631,10 @@ const de = {
628
631
  for (const [r, a] of n)
629
632
  t[r] = a;
630
633
  return t;
631
- }, oa = (e) => (gn("data-v-641e0aee"), e = e(), yn(), e), ia = ["aria-hidden"], sa = {
634
+ }, oa = (e) => (yn("data-v-641e0aee"), e = e(), hn(), e), ia = ["aria-hidden"], sa = {
632
635
  key: 0,
633
636
  "data-testid": "kui-icon-svg-title"
634
- }, la = /* @__PURE__ */ oa(() => /* @__PURE__ */ V("path", {
637
+ }, la = /* @__PURE__ */ oa(() => /* @__PURE__ */ D("path", {
635
638
  d: "M5 22C4.45 22 3.97917 21.8042 3.5875 21.4125C3.19583 21.0208 3 20.55 3 20V6H5V20H16V22H5ZM9 18C8.45 18 7.97917 17.8042 7.5875 17.4125C7.19583 17.0208 7 16.55 7 16V4C7 3.45 7.19583 2.97917 7.5875 2.5875C7.97917 2.19583 8.45 2 9 2H18C18.55 2 19.0208 2.19583 19.4125 2.5875C19.8042 2.97917 20 3.45 20 4V16C20 16.55 19.8042 17.0208 19.4125 17.4125C19.0208 17.8042 18.55 18 18 18H9ZM9 16H18V4H9V16Z",
636
639
  fill: "currentColor"
637
640
  }, null, -1)), ua = /* @__PURE__ */ oe({
@@ -686,7 +689,7 @@ const de = {
686
689
  }
687
690
  },
688
691
  setup(e) {
689
- const n = e, t = S(() => {
692
+ const n = e, t = A(() => {
690
693
  if (typeof n.size == "number" && n.size > 0)
691
694
  return `${n.size}px`;
692
695
  if (typeof n.size == "string") {
@@ -695,7 +698,7 @@ const de = {
695
698
  return `${i}px`;
696
699
  }
697
700
  return zt;
698
- }), r = S(() => ({
701
+ }), r = A(() => ({
699
702
  boxSizing: "border-box",
700
703
  color: n.color,
701
704
  display: n.display,
@@ -703,13 +706,13 @@ const de = {
703
706
  lineHeight: "0",
704
707
  width: t.value
705
708
  }));
706
- return (a, i) => (f(), R(Re(e.as), {
709
+ return (a, i) => (f(), V(Ve(e.as), {
707
710
  "aria-hidden": e.decorative ? "true" : void 0,
708
711
  class: "kui-icon copy-icon",
709
712
  "data-testid": "kui-icon-wrapper-copy-icon",
710
- style: mn(r.value)
713
+ style: gn(r.value)
711
714
  }, {
712
- default: v(() => [
715
+ default: h(() => [
713
716
  (f(), T("svg", {
714
717
  "aria-hidden": e.decorative ? "true" : void 0,
715
718
  "data-testid": "kui-icon-svg-copy-icon",
@@ -720,7 +723,7 @@ const de = {
720
723
  width: "100%",
721
724
  xmlns: "http://www.w3.org/2000/svg"
722
725
  }, [
723
- e.title ? (f(), T("title", sa, F(e.title), 1)) : J("", !0),
726
+ e.title ? (f(), T("title", sa, K(e.title), 1)) : J("", !0),
724
727
  la
725
728
  ], 8, ia))
726
729
  ]),
@@ -771,64 +774,64 @@ const de = {
771
774
  },
772
775
  emits: ["success", "error"],
773
776
  setup(e, { emit: n }) {
774
- const { t } = At("en-us", na), r = e, a = n, i = r.notify || kr(ra, () => {
775
- }), o = S(() => r.idTooltip ? {
777
+ const { t } = St("en-us", na), r = e, a = n, i = r.notify || kr(ra, () => {
778
+ }), o = A(() => r.idTooltip ? {
776
779
  label: r.idTooltip,
777
780
  positionFixed: !0,
778
781
  placement: "bottomStart"
779
782
  } : {
780
783
  title: r.uuid
781
- }), s = S(() => !!(r.tooltip && r.successTooltip)), l = E(r.tooltip), c = S(() => r.tooltip ? {
784
+ }), s = A(() => !!(r.tooltip && r.successTooltip)), l = E(r.tooltip), u = A(() => r.tooltip ? {
782
785
  label: l.value,
783
786
  positionFixed: !0,
784
787
  maxWidth: "500px",
785
788
  placement: "bottomStart"
786
- } : {}), d = S(() => {
787
- var p;
788
- return r.format === "redacted" ? "*****" : r.format === "deleted" ? `*${(p = r.uuid) == null ? void 0 : p.substring(0, 5)}` : r.uuid;
789
- }), u = (p) => {
790
- l.value = p, setTimeout(() => {
789
+ } : {}), p = A(() => {
790
+ var d;
791
+ return r.format === "redacted" ? "*****" : r.format === "deleted" ? `*${(d = r.uuid) == null ? void 0 : d.substring(0, 5)}` : r.uuid;
792
+ }), c = (d) => {
793
+ l.value = d, setTimeout(() => {
791
794
  l.value = r.tooltip;
792
795
  }, 1800);
793
- }, y = (p) => {
794
- var _, h;
795
- if (!p(r.uuid)) {
796
+ }, g = (d) => {
797
+ var _, v;
798
+ if (!d(r.uuid)) {
796
799
  typeof i == "function" && i({
797
800
  type: "error",
798
801
  message: t("message.fail")
799
- }), s.value ? u(t("message.fail")) : a("error", r.uuid);
802
+ }), s.value ? c(t("message.fail")) : a("error", r.uuid);
800
803
  return;
801
804
  }
802
- const A = ((_ = r.uuid) == null ? void 0 : _.length) > Jt, g = r.format === "hidden" || r.format === "redacted" ? t("message.success.prefix") : `"${((h = r.uuid) == null ? void 0 : h.substring(0, Jt)) + (A ? "..." : "")}"`;
805
+ const S = ((_ = r.uuid) == null ? void 0 : _.length) > Jt, y = r.format === "hidden" || r.format === "redacted" ? t("message.success.prefix") : `"${((v = r.uuid) == null ? void 0 : v.substring(0, Jt)) + (S ? "..." : "")}"`;
803
806
  typeof i == "function" && i({
804
807
  type: "success",
805
- message: `${g}${t("message.success.content")}`
806
- }), s.value ? u(r.successTooltip) : a("success", r.uuid);
808
+ message: `${y}${t("message.success.content")}`
809
+ }), s.value ? c(r.successTooltip) : a("success", r.uuid);
807
810
  };
808
- return (p, _) => {
809
- const h = P("KClipboardProvider");
811
+ return (d, _) => {
812
+ const v = U("KClipboardProvider");
810
813
  return f(), T("div", pa, [
811
- e.format !== "hidden" ? (f(), R(Re(e.idTooltip ? "KTooltip" : "div"), vt({ key: 0 }, o.value, { "data-testid": "copy-id" }), {
812
- default: v(() => [
813
- V("div", {
814
- class: Ne([
814
+ e.format !== "hidden" ? (f(), V(Ve(e.idTooltip ? "KTooltip" : "div"), vt({ key: 0 }, o.value, { "data-testid": "copy-id" }), {
815
+ default: h(() => [
816
+ D("div", {
817
+ class: Oe([
815
818
  "uuid-container",
816
819
  e.truncated ? "truncated-uuid" : null,
817
820
  e.useMono ? "mono" : null
818
821
  ])
819
- }, F(d.value), 3)
822
+ }, K(p.value), 3)
820
823
  ]),
821
824
  _: 1
822
825
  }, 16)) : J("", !0),
823
- (f(), R(Re(e.tooltip ? "KTooltip" : "div"), vt(c.value, { class: "uuid-icon-wrapper" }), {
824
- default: v(() => [
825
- N(h, null, {
826
- default: v(({ copyToClipboard: A }) => [
827
- V("span", {
826
+ (f(), V(Ve(e.tooltip ? "KTooltip" : "div"), vt(u.value, { class: "uuid-icon-wrapper" }), {
827
+ default: h(() => [
828
+ N(v, null, {
829
+ default: h(({ copyToClipboard: S }) => [
830
+ D("span", {
828
831
  "data-testid": "copy-to-clipboard",
829
832
  role: "button",
830
833
  tabindex: "0",
831
- onClick: rt((g) => y(A), ["stop"])
834
+ onClick: rt((y) => g(S), ["stop"])
832
835
  }, [
833
836
  N(m(ca), {
834
837
  class: "uuid-icon",
@@ -852,7 +855,7 @@ const de = {
852
855
  for (const [r, a] of n)
853
856
  t[r] = a;
854
857
  return t;
855
- }, _n = /* @__PURE__ */ ga(ma, [["__scopeId", "data-v-0c07874b"]]), ya = {
858
+ }, In = /* @__PURE__ */ ga(ma, [["__scopeId", "data-v-0c07874b"]]), ya = {
856
859
  key: 0,
857
860
  class: "config-card-fieldset-title"
858
861
  }, ha = /* @__PURE__ */ oe({
@@ -872,26 +875,26 @@ const de = {
872
875
  }
873
876
  },
874
877
  setup(e) {
875
- const n = e, { i18n: { t } } = de.useI18n(), { convertKeyToTitle: r } = de.useStringHelpers(), a = S(() => n.item.key ?? "json-array-item"), i = S(() => n.item.value ?? n.item), o = S(() => {
878
+ const n = e, { i18n: { t } } = de.useI18n(), { convertKeyToTitle: r } = de.useStringHelpers(), a = A(() => n.item.key ?? "json-array-item"), i = A(() => n.item.value ?? n.item), o = A(() => {
876
879
  const l = JSON.parse(JSON.stringify(i.value));
877
880
  return n.isArrayItem && delete l.name, l;
878
- }), s = S(() => {
881
+ }), s = A(() => {
879
882
  var l;
880
883
  return n.isArrayItem ? (l = i.value) != null && l.name ? r(i.value.name, "_") : t("baseConfigCard.general.entryTitle", { index: n.index }) : "";
881
884
  });
882
- return (l, c) => (f(), R(Re(e.isArrayItem ? "fieldset" : "div"), {
883
- class: Ne(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
885
+ return (l, u) => (f(), V(Ve(e.isArrayItem ? "fieldset" : "div"), {
886
+ class: Oe(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
884
887
  }, {
885
- default: v(() => [
888
+ default: h(() => [
886
889
  e.isArrayItem ? (f(), T("legend", ya, [
887
- V("b", null, F(s.value), 1)
890
+ D("b", null, K(s.value), 1)
888
891
  ])) : J("", !0),
889
- (f(!0), T(Ce, null, ve(Object.keys(o.value), (d, u) => (f(), R(Tt, {
890
- key: `${a.value}-property-${u}`,
892
+ (f(!0), T(Ce, null, ve(Object.keys(o.value), (p, c) => (f(), V(Tt, {
893
+ key: `${a.value}-property-${c}`,
891
894
  item: {
892
- key: d,
893
- label: m(r)(d),
894
- value: o.value[d]
895
+ key: p,
896
+ label: m(r)(p),
897
+ value: o.value[p]
895
898
  }
896
899
  }, null, 8, ["item"]))), 128))
897
900
  ]),
@@ -903,7 +906,7 @@ const de = {
903
906
  for (const [r, a] of n)
904
907
  t[r] = a;
905
908
  return t;
906
- }, In = /* @__PURE__ */ we(ha, [["__scopeId", "data-v-68ca83ec"]]), va = /* @__PURE__ */ oe({
909
+ }, Sn = /* @__PURE__ */ we(ha, [["__scopeId", "data-v-68ca83ec"]]), va = /* @__PURE__ */ oe({
907
910
  __name: "InternalLinkItem",
908
911
  props: {
909
912
  item: {
@@ -915,15 +918,15 @@ const de = {
915
918
  setup(e) {
916
919
  const { i18n: { t: n } } = de.useI18n();
917
920
  return (t, r) => {
918
- const a = P("KButton");
921
+ const a = U("KButton");
919
922
  return f(), T("div", null, [
920
923
  N(a, {
921
924
  appearance: "tertiary",
922
925
  class: "navigation-button",
923
926
  onClick: r[0] || (r[0] = (i) => t.$emit("navigation-click", e.item))
924
927
  }, {
925
- default: v(() => [
926
- X(F(e.item.value || m(n)("baseConfigCard.commonFields.link")), 1)
928
+ default: h(() => [
929
+ Q(K(e.item.value || m(n)("baseConfigCard.commonFields.link")), 1)
927
930
  ]),
928
931
  _: 1
929
932
  })
@@ -941,22 +944,22 @@ const de = {
941
944
  setup(e) {
942
945
  const { i18n: { t: n } } = de.useI18n();
943
946
  return (t, r) => {
944
- const a = P("KBadge");
945
- return f(), R(a, {
947
+ const a = U("KBadge");
948
+ return f(), V(a, {
946
949
  appearance: e.status ? "success" : "neutral"
947
950
  }, {
948
- default: v(() => [
949
- X(F(e.status ? m(n)("baseConfigCard.statusBadge.enabledLabel") : m(n)("baseConfigCard.statusBadge.disabledLabel")), 1)
951
+ default: h(() => [
952
+ Q(K(e.status ? m(n)("baseConfigCard.statusBadge.enabledLabel") : m(n)("baseConfigCard.statusBadge.disabledLabel")), 1)
950
953
  ]),
951
954
  _: 1
952
955
  }, 8, ["appearance"]);
953
956
  };
954
957
  }
955
- }), ka = "#0044f4", wa = "#e0e4ea", _a = "#3a3f51", Ia = "1px", Aa = "20px", xa = { class: "config-card-details-row" }, Sa = ["data-testid"], Ta = ["data-testid"], $a = ["data-testid"], Ma = ["data-testid"], ja = { key: 1 }, Ea = ["data-testid"], Oa = ["data-testid"], Ka = ["data-testid"], Fa = ["data-testid"], Na = {
958
+ }), ka = "#0044f4", wa = "#e0e4ea", _a = "#3a3f51", Ia = "1px", Sa = "20px", Aa = { class: "config-card-details-row" }, xa = ["data-testid"], Ta = ["data-testid"], $a = ["data-testid"], ja = ["data-testid"], Ma = { key: 1 }, Ea = ["data-testid"], Oa = ["data-testid"], Fa = ["data-testid"], Na = ["data-testid"], Ka = {
956
959
  name: "ConfigCardItem",
957
- components: { CopyUuid: _n, JsonCardItem: In, StatusBadge: Ca, InternalLinkItem: ba }
960
+ components: { CopyUuid: In, JsonCardItem: Sn, StatusBadge: Ca, InternalLinkItem: ba }
958
961
  }, Ba = /* @__PURE__ */ oe({
959
- ...Na,
962
+ ...Ka,
960
963
  props: {
961
964
  item: {
962
965
  type: Object,
@@ -975,13 +978,13 @@ const de = {
975
978
  },
976
979
  emits: ["navigation-click"],
977
980
  setup(e, { emit: n }) {
978
- yr((_) => ({
979
- "0da74440": d.value ? "none" : `solid ${m(Ia)} ${m(wa)}`,
980
- "02a039da": c.value && s.value ? "block" : "flex",
981
- "690f3ced": c.value && s.value ? "100%" : t.slim ? "50%" : "25%",
982
- "691182c8": c.value && s.value ? "100%" : t.slim ? "50%" : "75%"
981
+ mn((_) => ({
982
+ "0da74440": p.value ? "none" : `solid ${m(Ia)} ${m(wa)}`,
983
+ "02a039da": u.value && s.value ? "block" : "flex",
984
+ "690f3ced": u.value && s.value ? "100%" : t.slim ? "50%" : "25%",
985
+ "691182c8": u.value && s.value ? "100%" : t.slim ? "50%" : "75%"
983
986
  }));
984
- const t = e, r = n, a = ut(), { i18n: { t: i, formatUnixTimeStamp: o } } = de.useI18n(), s = S(() => t.item.value !== void 0 && t.item.value !== null && t.item.value !== ""), l = S(() => !!(t.item.tooltip || a["label-tooltip"])), c = S(() => t.item.type === re.Json || t.item.type === re.JsonArray), d = S(() => t.item.type === re.JsonArray), u = S(() => {
987
+ const t = e, r = n, a = ut(), { i18n: { t: i, formatUnixTimeStamp: o } } = de.useI18n(), s = A(() => t.item.value !== void 0 && t.item.value !== null && t.item.value !== ""), l = A(() => !!(t.item.tooltip || a["label-tooltip"])), u = A(() => t.item.type === re.Json || t.item.type === re.JsonArray), p = A(() => t.item.type === re.JsonArray), c = A(() => {
985
988
  switch (t.item.type) {
986
989
  case re.ID:
987
990
  return {
@@ -1107,29 +1110,29 @@ const de = {
1107
1110
  text: t.item.value
1108
1111
  };
1109
1112
  }
1110
- }), y = E(), { isTruncated: p } = de.useTruncationDetector(y);
1111
- return (_, h) => {
1112
- const A = P("KLabel"), g = P("KBadge"), b = P("KTooltip");
1113
- return f(), T("div", xa, [
1114
- V("div", {
1113
+ }), g = E(), { isTruncated: d } = de.useTruncationDetector(g);
1114
+ return (_, v) => {
1115
+ const S = U("KLabel"), y = U("KBadge"), b = U("KTooltip");
1116
+ return f(), T("div", Aa, [
1117
+ D("div", {
1115
1118
  class: "config-card-details-label",
1116
1119
  "data-testid": `${e.item.key}-label`
1117
1120
  }, [
1118
- Q(_.$slots, "label", { item: e.item }, () => [
1119
- N(A, { "tooltip-attributes": { maxWidth: "500px" } }, Me({
1120
- default: v(() => [
1121
- X(F(e.item.label) + " ", 1)
1121
+ X(_.$slots, "label", { item: e.item }, () => [
1122
+ N(S, { "tooltip-attributes": { maxWidth: "500px" } }, je({
1123
+ default: h(() => [
1124
+ Q(K(e.item.label) + " ", 1)
1122
1125
  ]),
1123
1126
  _: 2
1124
1127
  }, [
1125
1128
  l.value ? {
1126
1129
  name: "tooltip",
1127
- fn: v(() => [
1128
- V("div", {
1130
+ fn: h(() => [
1131
+ D("div", {
1129
1132
  "data-testid": `${e.item.key}-label-tooltip`
1130
1133
  }, [
1131
- Q(_.$slots, "label-tooltip", {}, () => [
1132
- X(F(e.item.tooltip), 1)
1134
+ X(_.$slots, "label-tooltip", {}, () => [
1135
+ Q(K(e.item.tooltip), 1)
1133
1136
  ], !0)
1134
1137
  ], 8, Ta)
1135
1138
  ]),
@@ -1137,81 +1140,81 @@ const de = {
1137
1140
  } : void 0
1138
1141
  ]), 1024)
1139
1142
  ], !0)
1140
- ], 8, Sa),
1141
- V("div", {
1143
+ ], 8, xa),
1144
+ D("div", {
1142
1145
  class: "config-card-details-value",
1143
1146
  "data-testid": `${e.item.key}-property-value`
1144
1147
  }, [
1145
- Q(_.$slots, e.item.key, {
1148
+ X(_.$slots, e.item.key, {
1146
1149
  rowValue: e.item.value
1147
1150
  }, () => [
1148
- s.value ? (f(), T("div", ja, [
1149
- (f(), R(Re(u.value.tag), hr(vr(u.value.attrs)), {
1150
- default: v(() => [
1151
- u.value.additionalComponent === "KBadge" ? (f(), T("div", {
1151
+ s.value ? (f(), T("div", Ma, [
1152
+ (f(), V(Ve(c.value.tag), hr(vr(c.value.attrs)), {
1153
+ default: h(() => [
1154
+ c.value.additionalComponent === "KBadge" ? (f(), T("div", {
1152
1155
  key: 0,
1153
1156
  "data-testid": `${e.item.key}-badge-tags`
1154
1157
  }, [
1155
- (f(!0), T(Ce, null, ve(e.item.value, (O, I) => (f(), R(g, {
1158
+ (f(!0), T(Ce, null, ve(e.item.value, (O, I) => (f(), V(y, {
1156
1159
  key: `${e.item.key}-badge-tag-${I}`,
1157
1160
  class: "config-badge",
1158
1161
  "data-testid": `${e.item.key}-badge-tag-${I}`,
1159
1162
  tooltip: O,
1160
1163
  "truncation-tooltip": ""
1161
1164
  }, {
1162
- default: v(() => [
1163
- X(F(O), 1)
1165
+ default: h(() => [
1166
+ Q(K(O), 1)
1164
1167
  ]),
1165
1168
  _: 2
1166
1169
  }, 1032, ["data-testid", "tooltip"]))), 128))
1167
1170
  ], 8, Ea)) : J("", !0),
1168
- u.value.additionalComponent === "CopyUuid" ? (f(), T("div", {
1171
+ c.value.additionalComponent === "CopyUuid" ? (f(), T("div", {
1169
1172
  key: 1,
1170
1173
  class: "copy-uuid-array",
1171
1174
  "data-testid": `${e.item.key}-copy-uuid-array`
1172
1175
  }, [
1173
- (f(!0), T(Ce, null, ve(e.item.value, (O, I) => (f(), R(m(_n), vt(u.value.childAttrs, {
1176
+ (f(!0), T(Ce, null, ve(e.item.value, (O, I) => (f(), V(m(In), vt(c.value.childAttrs, {
1174
1177
  key: `${e.item.key}-copy-uuid-${I}`,
1175
1178
  "data-testid": `${e.item.key}-copy-uuid-${I}`,
1176
1179
  uuid: O
1177
1180
  }), null, 16, ["data-testid", "uuid"]))), 128))
1178
- ], 8, Oa)) : u.value.additionalComponent === "KMethodBadge" ? (f(), T("div", {
1181
+ ], 8, Oa)) : c.value.additionalComponent === "KMethodBadge" ? (f(), T("div", {
1179
1182
  key: 2,
1180
1183
  class: "method-badge-array",
1181
1184
  "data-testid": `${e.item.key}-badge-methods`
1182
1185
  }, [
1183
- (f(!0), T(Ce, null, ve(e.item.value, (O, I) => (f(), R(g, {
1186
+ (f(!0), T(Ce, null, ve(e.item.value, (O, I) => (f(), V(y, {
1184
1187
  key: `${e.item.key}-badge-method-${I}`,
1185
1188
  appearance: Object.values(m(Ir)).includes(O.toLowerCase()) ? O.toLowerCase() : "custom",
1186
1189
  class: "config-badge",
1187
1190
  "data-testid": `${e.item.key}-badge-method-${I}`
1188
1191
  }, {
1189
- default: v(() => [
1190
- X(F(O), 1)
1192
+ default: h(() => [
1193
+ Q(K(O), 1)
1191
1194
  ]),
1192
1195
  _: 2
1193
1196
  }, 1032, ["appearance", "data-testid"]))), 128))
1194
- ], 8, Ka)) : J("", !0),
1195
- u.value.additionalComponent === "JsonCardItem" ? (f(), T("div", {
1197
+ ], 8, Fa)) : J("", !0),
1198
+ c.value.additionalComponent === "JsonCardItem" ? (f(), T("div", {
1196
1199
  key: 3,
1197
1200
  "data-testid": `${t.item.key}-json-array-content`
1198
1201
  }, [
1199
- (f(!0), T(Ce, null, ve(e.item.value, (O, I) => (f(), R(In, {
1202
+ (f(!0), T(Ce, null, ve(e.item.value, (O, I) => (f(), V(Sn, {
1200
1203
  key: `json-array-item-${I}`,
1201
1204
  index: I,
1202
1205
  "is-array-item": "",
1203
1206
  item: O
1204
1207
  }, null, 8, ["index", "item"]))), 128))
1205
- ], 8, Fa)) : (f(), R(b, {
1208
+ ], 8, Na)) : (f(), V(b, {
1206
1209
  key: 4,
1207
- label: m(p) ? e.item.value : ""
1210
+ label: m(d) ? e.item.value : ""
1208
1211
  }, {
1209
- default: v(() => [
1210
- V("span", {
1212
+ default: h(() => [
1213
+ D("span", {
1211
1214
  ref_key: "textContent",
1212
- ref: y,
1213
- class: Ne(["attrs-data-text", { truncated: e.truncated }])
1214
- }, F(u.value.text), 3)
1215
+ ref: g,
1216
+ class: Oe(["attrs-data-text", { truncated: e.truncated }])
1217
+ }, K(c.value.text), 3)
1215
1218
  ]),
1216
1219
  _: 1
1217
1220
  }, 8, ["label"]))
@@ -1221,7 +1224,7 @@ const de = {
1221
1224
  ])) : (f(), T("div", {
1222
1225
  key: 0,
1223
1226
  "data-testid": `${e.item.key}-no-value`
1224
- }, " – ", 8, Ma))
1227
+ }, " – ", 8, ja))
1225
1228
  ], !0)
1226
1229
  ], 8, $a)
1227
1230
  ]);
@@ -1238,25 +1241,25 @@ function qa(e) {
1238
1241
  function La(e) {
1239
1242
  return Array.isArray(e) ? e : An(e) ? [] : [e];
1240
1243
  }
1241
- function Pa(e, n) {
1244
+ function Ua(e, n) {
1242
1245
  var t, r, a, i;
1243
1246
  if (n)
1244
1247
  for (i = Object.keys(n), t = 0, r = i.length; t < r; t += 1)
1245
1248
  a = i[t], e[a] = n[a];
1246
1249
  return e;
1247
1250
  }
1248
- function Ua(e, n) {
1251
+ function Pa(e, n) {
1249
1252
  var t = "", r;
1250
1253
  for (r = 0; r < n; r += 1)
1251
1254
  t += e;
1252
1255
  return t;
1253
1256
  }
1254
- function Va(e) {
1257
+ function Da(e) {
1255
1258
  return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
1256
1259
  }
1257
- var Ra = An, Da = qa, Ga = La, Ha = Ua, za = Va, Ja = Pa, ce = {
1258
- isNothing: Ra,
1259
- isObject: Da,
1260
+ var Va = An, Ra = qa, Ga = La, Ha = Pa, za = Da, Ja = Ua, ce = {
1261
+ isNothing: Va,
1262
+ isObject: Ra,
1260
1263
  toArray: Ga,
1261
1264
  repeat: Ha,
1262
1265
  isNegativeZero: za,
@@ -1288,37 +1291,37 @@ function gt(e, n, t, r, a) {
1288
1291
  function yt(e, n) {
1289
1292
  return ce.repeat(" ", n - e.length) + e;
1290
1293
  }
1291
- function Ya(e, n) {
1294
+ function Wa(e, n) {
1292
1295
  if (n = Object.create(n || null), !e.buffer)
1293
1296
  return null;
1294
1297
  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);
1295
1298
  for (var t = /\r?\n|\r|\0/g, r = [0], a = [], i, o = -1; i = t.exec(e.buffer); )
1296
1299
  a.push(i.index), r.push(i.index + i[0].length), e.position <= i.index && o < 0 && (o = r.length - 2);
1297
1300
  o < 0 && (o = r.length - 1);
1298
- var s = "", l, c, d = Math.min(e.line + n.linesAfter, a.length).toString().length, u = n.maxLength - (n.indent + d + 3);
1301
+ var s = "", l, u, p = Math.min(e.line + n.linesAfter, a.length).toString().length, c = n.maxLength - (n.indent + p + 3);
1299
1302
  for (l = 1; l <= n.linesBefore && !(o - l < 0); l++)
1300
- c = gt(
1303
+ u = gt(
1301
1304
  e.buffer,
1302
1305
  r[o - l],
1303
1306
  a[o - l],
1304
1307
  e.position - (r[o] - r[o - l]),
1305
- u
1306
- ), s = ce.repeat(" ", n.indent) + yt((e.line - l + 1).toString(), d) + " | " + c.str + `
1308
+ c
1309
+ ), s = ce.repeat(" ", n.indent) + yt((e.line - l + 1).toString(), p) + " | " + u.str + `
1307
1310
  ` + s;
1308
- for (c = gt(e.buffer, r[o], a[o], e.position, u), s += ce.repeat(" ", n.indent) + yt((e.line + 1).toString(), d) + " | " + c.str + `
1309
- `, s += ce.repeat("-", n.indent + d + 3 + c.pos) + `^
1311
+ for (u = gt(e.buffer, r[o], a[o], e.position, c), s += ce.repeat(" ", n.indent) + yt((e.line + 1).toString(), p) + " | " + u.str + `
1312
+ `, s += ce.repeat("-", n.indent + p + 3 + u.pos) + `^
1310
1313
  `, l = 1; l <= n.linesAfter && !(o + l >= a.length); l++)
1311
- c = gt(
1314
+ u = gt(
1312
1315
  e.buffer,
1313
1316
  r[o + l],
1314
1317
  a[o + l],
1315
1318
  e.position - (r[o] - r[o + l]),
1316
- u
1317
- ), s += ce.repeat(" ", n.indent) + yt((e.line + l + 1).toString(), d) + " | " + c.str + `
1319
+ c
1320
+ ), s += ce.repeat(" ", n.indent) + yt((e.line + l + 1).toString(), p) + " | " + u.str + `
1318
1321
  `;
1319
1322
  return s.replace(/\n$/, "");
1320
1323
  }
1321
- var Wa = Ya, Za = [
1324
+ var Ya = Wa, Za = [
1322
1325
  "kind",
1323
1326
  "multi",
1324
1327
  "resolve",
@@ -1354,7 +1357,7 @@ function eo(e, n) {
1354
1357
  throw new ge('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
1355
1358
  }
1356
1359
  var fe = eo;
1357
- function Yt(e, n) {
1360
+ function Wt(e, n) {
1358
1361
  var t = [];
1359
1362
  return e[n].forEach(function(r) {
1360
1363
  var a = t.length;
@@ -1408,14 +1411,14 @@ bt.prototype.extend = function(e) {
1408
1411
  throw new ge("Specified list of YAML types (or a single Type object) contains a non-Type object.");
1409
1412
  });
1410
1413
  var r = Object.create(bt.prototype);
1411
- return r.implicit = (this.implicit || []).concat(n), r.explicit = (this.explicit || []).concat(t), r.compiledImplicit = Yt(r, "implicit"), r.compiledExplicit = Yt(r, "explicit"), r.compiledTypeMap = to(r.compiledImplicit, r.compiledExplicit), r;
1414
+ return r.implicit = (this.implicit || []).concat(n), r.explicit = (this.explicit || []).concat(t), r.compiledImplicit = Wt(r, "implicit"), r.compiledExplicit = Wt(r, "explicit"), r.compiledTypeMap = to(r.compiledImplicit, r.compiledExplicit), r;
1412
1415
  };
1413
- var Sn = bt, Tn = new fe("tag:yaml.org,2002:str", {
1416
+ var Tn = bt, $n = new fe("tag:yaml.org,2002:str", {
1414
1417
  kind: "scalar",
1415
1418
  construct: function(e) {
1416
1419
  return e !== null ? e : "";
1417
1420
  }
1418
- }), $n = new fe("tag:yaml.org,2002:seq", {
1421
+ }), jn = new fe("tag:yaml.org,2002:seq", {
1419
1422
  kind: "sequence",
1420
1423
  construct: function(e) {
1421
1424
  return e !== null ? e : [];
@@ -1425,10 +1428,10 @@ var Sn = bt, Tn = new fe("tag:yaml.org,2002:str", {
1425
1428
  construct: function(e) {
1426
1429
  return e !== null ? e : {};
1427
1430
  }
1428
- }), jn = new Sn({
1431
+ }), En = new Tn({
1429
1432
  explicit: [
1430
- Tn,
1431
1433
  $n,
1434
+ jn,
1432
1435
  Mn
1433
1436
  ]
1434
1437
  });
@@ -1444,7 +1447,7 @@ function ro() {
1444
1447
  function ao(e) {
1445
1448
  return e === null;
1446
1449
  }
1447
- var En = new fe("tag:yaml.org,2002:null", {
1450
+ var On = new fe("tag:yaml.org,2002:null", {
1448
1451
  kind: "scalar",
1449
1452
  resolve: no,
1450
1453
  construct: ro,
@@ -1480,7 +1483,7 @@ function io(e) {
1480
1483
  function so(e) {
1481
1484
  return Object.prototype.toString.call(e) === "[object Boolean]";
1482
1485
  }
1483
- var On = new fe("tag:yaml.org,2002:bool", {
1486
+ var Fn = new fe("tag:yaml.org,2002:bool", {
1484
1487
  kind: "scalar",
1485
1488
  resolve: oo,
1486
1489
  construct: io,
@@ -1571,7 +1574,7 @@ function fo(e) {
1571
1574
  function mo(e) {
1572
1575
  return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !ce.isNegativeZero(e);
1573
1576
  }
1574
- var Kn = new fe("tag:yaml.org,2002:int", {
1577
+ var Nn = new fe("tag:yaml.org,2002:int", {
1575
1578
  kind: "scalar",
1576
1579
  resolve: po,
1577
1580
  construct: fo,
@@ -1648,31 +1651,31 @@ function bo(e, n) {
1648
1651
  function Co(e) {
1649
1652
  return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || ce.isNegativeZero(e));
1650
1653
  }
1651
- var Fn = new fe("tag:yaml.org,2002:float", {
1654
+ var Kn = new fe("tag:yaml.org,2002:float", {
1652
1655
  kind: "scalar",
1653
1656
  resolve: yo,
1654
1657
  construct: ho,
1655
1658
  predicate: Co,
1656
1659
  represent: bo,
1657
1660
  defaultStyle: "lowercase"
1658
- }), Nn = jn.extend({
1661
+ }), Bn = En.extend({
1659
1662
  implicit: [
1660
- En,
1661
1663
  On,
1662
- Kn,
1663
- Fn
1664
+ Fn,
1665
+ Nn,
1666
+ Kn
1664
1667
  ]
1665
- }), Bn = Nn, qn = new RegExp(
1668
+ }), qn = Bn, Ln = new RegExp(
1666
1669
  "^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
1667
- ), Ln = new RegExp(
1670
+ ), Un = new RegExp(
1668
1671
  "^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"
1669
1672
  );
1670
1673
  function ko(e) {
1671
- return e === null ? !1 : qn.exec(e) !== null || Ln.exec(e) !== null;
1674
+ return e === null ? !1 : Ln.exec(e) !== null || Un.exec(e) !== null;
1672
1675
  }
1673
1676
  function wo(e) {
1674
- var n, t, r, a, i, o, s, l = 0, c = null, d, u, y;
1675
- if (n = qn.exec(e), n === null && (n = Ln.exec(e)), n === null)
1677
+ var n, t, r, a, i, o, s, l = 0, u = null, p, c, g;
1678
+ if (n = Ln.exec(e), n === null && (n = Un.exec(e)), n === null)
1676
1679
  throw new Error("Date resolve error");
1677
1680
  if (t = +n[1], r = +n[2] - 1, a = +n[3], !n[4])
1678
1681
  return new Date(Date.UTC(t, r, a));
@@ -1681,7 +1684,7 @@ function wo(e) {
1681
1684
  l += "0";
1682
1685
  l = +l;
1683
1686
  }
1684
- return n[9] && (d = +n[10], u = +(n[11] || 0), c = (d * 60 + u) * 6e4, n[9] === "-" && (c = -c)), y = new Date(Date.UTC(t, r, a, i, o, s, l)), c && y.setTime(y.getTime() - c), y;
1687
+ return n[9] && (p = +n[10], c = +(n[11] || 0), u = (p * 60 + c) * 6e4, n[9] === "-" && (u = -u)), g = new Date(Date.UTC(t, r, a, i, o, s, l)), u && g.setTime(g.getTime() - u), g;
1685
1688
  }
1686
1689
  function _o(e) {
1687
1690
  return e.toISOString();
@@ -1696,12 +1699,12 @@ var Pn = new fe("tag:yaml.org,2002:timestamp", {
1696
1699
  function Io(e) {
1697
1700
  return e === "<<" || e === null;
1698
1701
  }
1699
- var Un = new fe("tag:yaml.org,2002:merge", {
1702
+ var Dn = new fe("tag:yaml.org,2002:merge", {
1700
1703
  kind: "scalar",
1701
1704
  resolve: Io
1702
1705
  }), $t = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
1703
1706
  \r`;
1704
- function Ao(e) {
1707
+ function So(e) {
1705
1708
  if (e === null)
1706
1709
  return !1;
1707
1710
  var n, t, r = 0, a = e.length, i = $t;
@@ -1713,13 +1716,13 @@ function Ao(e) {
1713
1716
  }
1714
1717
  return r % 8 === 0;
1715
1718
  }
1716
- function xo(e) {
1719
+ function Ao(e) {
1717
1720
  var n, t, r = e.replace(/[\r\n=]/g, ""), a = r.length, i = $t, o = 0, s = [];
1718
1721
  for (n = 0; n < a; n++)
1719
1722
  n % 4 === 0 && n && (s.push(o >> 16 & 255), s.push(o >> 8 & 255), s.push(o & 255)), o = o << 6 | i.indexOf(r.charAt(n));
1720
1723
  return t = a % 4 * 6, t === 0 ? (s.push(o >> 16 & 255), s.push(o >> 8 & 255), s.push(o & 255)) : t === 18 ? (s.push(o >> 10 & 255), s.push(o >> 2 & 255)) : t === 12 && s.push(o >> 4 & 255), new Uint8Array(s);
1721
1724
  }
1722
- function So(e) {
1725
+ function xo(e) {
1723
1726
  var n = "", t = 0, r, a, i = e.length, o = $t;
1724
1727
  for (r = 0; r < i; r++)
1725
1728
  r % 3 === 0 && r && (n += o[t >> 18 & 63], n += o[t >> 12 & 63], n += o[t >> 6 & 63], n += o[t & 63]), t = (t << 8) + e[r];
@@ -1730,17 +1733,17 @@ function To(e) {
1730
1733
  }
1731
1734
  var Vn = new fe("tag:yaml.org,2002:binary", {
1732
1735
  kind: "scalar",
1733
- resolve: Ao,
1734
- construct: xo,
1736
+ resolve: So,
1737
+ construct: Ao,
1735
1738
  predicate: To,
1736
- represent: So
1737
- }), $o = Object.prototype.hasOwnProperty, Mo = Object.prototype.toString;
1738
- function jo(e) {
1739
+ represent: xo
1740
+ }), $o = Object.prototype.hasOwnProperty, jo = Object.prototype.toString;
1741
+ function Mo(e) {
1739
1742
  if (e === null)
1740
1743
  return !0;
1741
1744
  var n = [], t, r, a, i, o, s = e;
1742
1745
  for (t = 0, r = s.length; t < r; t += 1) {
1743
- if (a = s[t], o = !1, Mo.call(a) !== "[object Object]")
1746
+ if (a = s[t], o = !1, jo.call(a) !== "[object Object]")
1744
1747
  return !1;
1745
1748
  for (i in a)
1746
1749
  if ($o.call(a, i))
@@ -1762,10 +1765,10 @@ function Eo(e) {
1762
1765
  }
1763
1766
  var Rn = new fe("tag:yaml.org,2002:omap", {
1764
1767
  kind: "sequence",
1765
- resolve: jo,
1768
+ resolve: Mo,
1766
1769
  construct: Eo
1767
1770
  }), Oo = Object.prototype.toString;
1768
- function Ko(e) {
1771
+ function Fo(e) {
1769
1772
  if (e === null)
1770
1773
  return !0;
1771
1774
  var n, t, r, a, i, o = e;
@@ -1776,7 +1779,7 @@ function Ko(e) {
1776
1779
  }
1777
1780
  return !0;
1778
1781
  }
1779
- function Fo(e) {
1782
+ function No(e) {
1780
1783
  if (e === null)
1781
1784
  return [];
1782
1785
  var n, t, r, a, i, o = e;
@@ -1784,59 +1787,59 @@ function Fo(e) {
1784
1787
  r = o[n], a = Object.keys(r), i[n] = [a[0], r[a[0]]];
1785
1788
  return i;
1786
1789
  }
1787
- var Dn = new fe("tag:yaml.org,2002:pairs", {
1790
+ var Gn = new fe("tag:yaml.org,2002:pairs", {
1788
1791
  kind: "sequence",
1789
- resolve: Ko,
1790
- construct: Fo
1791
- }), No = Object.prototype.hasOwnProperty;
1792
+ resolve: Fo,
1793
+ construct: No
1794
+ }), Ko = Object.prototype.hasOwnProperty;
1792
1795
  function Bo(e) {
1793
1796
  if (e === null)
1794
1797
  return !0;
1795
1798
  var n, t = e;
1796
1799
  for (n in t)
1797
- if (No.call(t, n) && t[n] !== null)
1800
+ if (Ko.call(t, n) && t[n] !== null)
1798
1801
  return !1;
1799
1802
  return !0;
1800
1803
  }
1801
1804
  function qo(e) {
1802
1805
  return e !== null ? e : {};
1803
1806
  }
1804
- var Gn = new fe("tag:yaml.org,2002:set", {
1807
+ var Hn = new fe("tag:yaml.org,2002:set", {
1805
1808
  kind: "mapping",
1806
1809
  resolve: Bo,
1807
1810
  construct: qo
1808
- }), Mt = Bn.extend({
1811
+ }), jt = qn.extend({
1809
1812
  implicit: [
1810
1813
  Pn,
1811
- Un
1814
+ Dn
1812
1815
  ],
1813
1816
  explicit: [
1814
1817
  Vn,
1815
1818
  Rn,
1816
- Dn,
1817
- Gn
1819
+ Gn,
1820
+ Hn
1818
1821
  ]
1819
- }), Oe = Object.prototype.hasOwnProperty, at = 1, Hn = 2, zn = 3, ot = 4, ht = 1, Lo = 2, Wt = 3, Po = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Uo = /[\x85\u2028\u2029]/, Vo = /[,\[\]\{\}]/, Jn = /^(?:!|!!|![a-z\-]+!)$/i, Yn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1822
+ }), Fe = Object.prototype.hasOwnProperty, at = 1, zn = 2, Jn = 3, ot = 4, ht = 1, Lo = 2, Yt = 3, Uo = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Po = /[\x85\u2028\u2029]/, Do = /[,\[\]\{\}]/, Wn = /^(?:!|!!|![a-z\-]+!)$/i, Yn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1820
1823
  function Zt(e) {
1821
1824
  return Object.prototype.toString.call(e);
1822
1825
  }
1823
- function Ae(e) {
1826
+ function Se(e) {
1824
1827
  return e === 10 || e === 13;
1825
1828
  }
1826
- function Fe(e) {
1829
+ function Ke(e) {
1827
1830
  return e === 9 || e === 32;
1828
1831
  }
1829
1832
  function be(e) {
1830
1833
  return e === 9 || e === 32 || e === 10 || e === 13;
1831
1834
  }
1832
- function Ue(e) {
1835
+ function Pe(e) {
1833
1836
  return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
1834
1837
  }
1835
- function Ro(e) {
1838
+ function Vo(e) {
1836
1839
  var n;
1837
1840
  return 48 <= e && e <= 57 ? e - 48 : (n = e | 32, 97 <= n && n <= 102 ? n - 97 + 10 : -1);
1838
1841
  }
1839
- function Do(e) {
1842
+ function Ro(e) {
1840
1843
  return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
1841
1844
  }
1842
1845
  function Go(e) {
@@ -1852,13 +1855,13 @@ function Ho(e) {
1852
1855
  (e - 65536 & 1023) + 56320
1853
1856
  );
1854
1857
  }
1855
- var Wn = new Array(256), Zn = new Array(256);
1858
+ var Zn = new Array(256), Qn = new Array(256);
1856
1859
  for (var Le = 0; Le < 256; Le++)
1857
- Wn[Le] = Qt(Le) ? 1 : 0, Zn[Le] = Qt(Le);
1860
+ Zn[Le] = Qt(Le) ? 1 : 0, Qn[Le] = Qt(Le);
1858
1861
  function zo(e, n) {
1859
- this.input = e, this.filename = n.filename || null, this.schema = n.schema || Mt, 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 = [];
1862
+ this.input = e, this.filename = n.filename || null, this.schema = n.schema || jt, 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 = [];
1860
1863
  }
1861
- function Qn(e, n) {
1864
+ function Xn(e, n) {
1862
1865
  var t = {
1863
1866
  name: e.filename,
1864
1867
  buffer: e.input.slice(0, -1),
@@ -1867,13 +1870,13 @@ function Qn(e, n) {
1867
1870
  line: e.line,
1868
1871
  column: e.position - e.lineStart
1869
1872
  };
1870
- return t.snippet = Wa(t), new ge(n, t);
1873
+ return t.snippet = Ya(t), new ge(n, t);
1871
1874
  }
1872
1875
  function $(e, n) {
1873
- throw Qn(e, n);
1876
+ throw Xn(e, n);
1874
1877
  }
1875
1878
  function it(e, n) {
1876
- e.onWarning && e.onWarning.call(null, Qn(e, n));
1879
+ e.onWarning && e.onWarning.call(null, Xn(e, n));
1877
1880
  }
1878
1881
  var Xt = {
1879
1882
  YAML: function(e, n, t) {
@@ -1882,7 +1885,7 @@ var Xt = {
1882
1885
  },
1883
1886
  TAG: function(e, n, t) {
1884
1887
  var r, a;
1885
- t.length !== 2 && $(e, "TAG directive accepts exactly two arguments"), r = t[0], a = t[1], Jn.test(r) || $(e, "ill-formed tag handle (first argument) of the TAG directive"), Oe.call(e.tagMap, r) && $(e, 'there is a previously declared suffix for "' + r + '" tag handle'), Yn.test(a) || $(e, "ill-formed tag prefix (second argument) of the TAG directive");
1888
+ t.length !== 2 && $(e, "TAG directive accepts exactly two arguments"), r = t[0], a = t[1], Wn.test(r) || $(e, "ill-formed tag handle (first argument) of the TAG directive"), Fe.call(e.tagMap, r) && $(e, 'there is a previously declared suffix for "' + r + '" tag handle'), Yn.test(a) || $(e, "ill-formed tag prefix (second argument) of the TAG directive");
1886
1889
  try {
1887
1890
  a = decodeURIComponent(a);
1888
1891
  } catch {
@@ -1898,28 +1901,28 @@ function Ee(e, n, t, r) {
1898
1901
  for (a = 0, i = s.length; a < i; a += 1)
1899
1902
  o = s.charCodeAt(a), o === 9 || 32 <= o && o <= 1114111 || $(e, "expected valid JSON character");
1900
1903
  else
1901
- Po.test(s) && $(e, "the stream contains non-printable characters");
1904
+ Uo.test(s) && $(e, "the stream contains non-printable characters");
1902
1905
  e.result += s;
1903
1906
  }
1904
1907
  }
1905
1908
  function en(e, n, t, r) {
1906
1909
  var a, i, o, s;
1907
1910
  for (ce.isObject(t) || $(e, "cannot merge mappings; the provided source object is unacceptable"), a = Object.keys(t), o = 0, s = a.length; o < s; o += 1)
1908
- i = a[o], Oe.call(n, i) || (n[i] = t[i], r[i] = !0);
1911
+ i = a[o], Fe.call(n, i) || (n[i] = t[i], r[i] = !0);
1909
1912
  }
1910
- function Ve(e, n, t, r, a, i, o, s, l) {
1911
- var c, d;
1913
+ function De(e, n, t, r, a, i, o, s, l) {
1914
+ var u, p;
1912
1915
  if (Array.isArray(a))
1913
- for (a = Array.prototype.slice.call(a), c = 0, d = a.length; c < d; c += 1)
1914
- Array.isArray(a[c]) && $(e, "nested arrays are not supported inside keys"), typeof a == "object" && Zt(a[c]) === "[object Object]" && (a[c] = "[object Object]");
1916
+ for (a = Array.prototype.slice.call(a), u = 0, p = a.length; u < p; u += 1)
1917
+ Array.isArray(a[u]) && $(e, "nested arrays are not supported inside keys"), typeof a == "object" && Zt(a[u]) === "[object Object]" && (a[u] = "[object Object]");
1915
1918
  if (typeof a == "object" && Zt(a) === "[object Object]" && (a = "[object Object]"), a = String(a), n === null && (n = {}), r === "tag:yaml.org,2002:merge")
1916
1919
  if (Array.isArray(i))
1917
- for (c = 0, d = i.length; c < d; c += 1)
1918
- en(e, n, i[c], t);
1920
+ for (u = 0, p = i.length; u < p; u += 1)
1921
+ en(e, n, i[u], t);
1919
1922
  else
1920
1923
  en(e, n, i, t);
1921
1924
  else
1922
- !e.json && !Oe.call(t, a) && Oe.call(n, a) && (e.line = o || e.line, e.lineStart = s || e.lineStart, e.position = l || e.position, $(e, "duplicated mapping key")), a === "__proto__" ? Object.defineProperty(n, a, {
1925
+ !e.json && !Fe.call(t, a) && Fe.call(n, a) && (e.line = o || e.line, e.lineStart = s || e.lineStart, e.position = l || e.position, $(e, "duplicated mapping key")), a === "__proto__" ? Object.defineProperty(n, a, {
1923
1926
  configurable: !0,
1924
1927
  enumerable: !0,
1925
1928
  writable: !0,
@@ -1927,20 +1930,20 @@ function Ve(e, n, t, r, a, i, o, s, l) {
1927
1930
  }) : n[a] = i, delete t[a];
1928
1931
  return n;
1929
1932
  }
1930
- function jt(e) {
1933
+ function Mt(e) {
1931
1934
  var n;
1932
1935
  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;
1933
1936
  }
1934
- function se(e, n, t) {
1937
+ function le(e, n, t) {
1935
1938
  for (var r = 0, a = e.input.charCodeAt(e.position); a !== 0; ) {
1936
- for (; Fe(a); )
1939
+ for (; Ke(a); )
1937
1940
  a === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), a = e.input.charCodeAt(++e.position);
1938
1941
  if (n && a === 35)
1939
1942
  do
1940
1943
  a = e.input.charCodeAt(++e.position);
1941
1944
  while (a !== 10 && a !== 13 && a !== 0);
1942
- if (Ae(a))
1943
- for (jt(e), a = e.input.charCodeAt(e.position), r++, e.lineIndent = 0; a === 32; )
1945
+ if (Se(a))
1946
+ for (Mt(e), a = e.input.charCodeAt(e.position), r++, e.lineIndent = 0; a === 32; )
1944
1947
  e.lineIndent++, a = e.input.charCodeAt(++e.position);
1945
1948
  else
1946
1949
  break;
@@ -1956,33 +1959,33 @@ function Et(e, n) {
1956
1959
  `, n - 1));
1957
1960
  }
1958
1961
  function Jo(e, n, t) {
1959
- var r, a, i, o, s, l, c, d, u = e.kind, y = e.result, p;
1960
- if (p = e.input.charCodeAt(e.position), be(p) || Ue(p) || p === 35 || p === 38 || p === 42 || p === 33 || p === 124 || p === 62 || p === 39 || p === 34 || p === 37 || p === 64 || p === 96 || (p === 63 || p === 45) && (a = e.input.charCodeAt(e.position + 1), be(a) || t && Ue(a)))
1962
+ var r, a, i, o, s, l, u, p, c = e.kind, g = e.result, d;
1963
+ if (d = e.input.charCodeAt(e.position), be(d) || Pe(d) || d === 35 || d === 38 || d === 42 || d === 33 || d === 124 || d === 62 || d === 39 || d === 34 || d === 37 || d === 64 || d === 96 || (d === 63 || d === 45) && (a = e.input.charCodeAt(e.position + 1), be(a) || t && Pe(a)))
1961
1964
  return !1;
1962
- for (e.kind = "scalar", e.result = "", i = o = e.position, s = !1; p !== 0; ) {
1963
- if (p === 58) {
1964
- if (a = e.input.charCodeAt(e.position + 1), be(a) || t && Ue(a))
1965
+ for (e.kind = "scalar", e.result = "", i = o = e.position, s = !1; d !== 0; ) {
1966
+ if (d === 58) {
1967
+ if (a = e.input.charCodeAt(e.position + 1), be(a) || t && Pe(a))
1965
1968
  break;
1966
- } else if (p === 35) {
1969
+ } else if (d === 35) {
1967
1970
  if (r = e.input.charCodeAt(e.position - 1), be(r))
1968
1971
  break;
1969
1972
  } else {
1970
- if (e.position === e.lineStart && pt(e) || t && Ue(p))
1973
+ if (e.position === e.lineStart && pt(e) || t && Pe(d))
1971
1974
  break;
1972
- if (Ae(p))
1973
- if (l = e.line, c = e.lineStart, d = e.lineIndent, se(e, !1, -1), e.lineIndent >= n) {
1974
- s = !0, p = e.input.charCodeAt(e.position);
1975
+ if (Se(d))
1976
+ if (l = e.line, u = e.lineStart, p = e.lineIndent, le(e, !1, -1), e.lineIndent >= n) {
1977
+ s = !0, d = e.input.charCodeAt(e.position);
1975
1978
  continue;
1976
1979
  } else {
1977
- e.position = o, e.line = l, e.lineStart = c, e.lineIndent = d;
1980
+ e.position = o, e.line = l, e.lineStart = u, e.lineIndent = p;
1978
1981
  break;
1979
1982
  }
1980
1983
  }
1981
- s && (Ee(e, i, o, !1), Et(e, e.line - l), i = o = e.position, s = !1), Fe(p) || (o = e.position + 1), p = e.input.charCodeAt(++e.position);
1984
+ s && (Ee(e, i, o, !1), Et(e, e.line - l), i = o = e.position, s = !1), Ke(d) || (o = e.position + 1), d = e.input.charCodeAt(++e.position);
1982
1985
  }
1983
- return Ee(e, i, o, !1), e.result ? !0 : (e.kind = u, e.result = y, !1);
1986
+ return Ee(e, i, o, !1), e.result ? !0 : (e.kind = c, e.result = g, !1);
1984
1987
  }
1985
- function Yo(e, n) {
1988
+ function Wo(e, n) {
1986
1989
  var t, r, a;
1987
1990
  if (t = e.input.charCodeAt(e.position), t !== 39)
1988
1991
  return !1;
@@ -1993,10 +1996,10 @@ function Yo(e, n) {
1993
1996
  else
1994
1997
  return !0;
1995
1998
  else
1996
- Ae(t) ? (Ee(e, r, a, !0), Et(e, se(e, !1, n)), r = a = e.position) : e.position === e.lineStart && pt(e) ? $(e, "unexpected end of the document within a single quoted scalar") : (e.position++, a = e.position);
1999
+ Se(t) ? (Ee(e, r, a, !0), Et(e, le(e, !1, n)), r = a = e.position) : e.position === e.lineStart && pt(e) ? $(e, "unexpected end of the document within a single quoted scalar") : (e.position++, a = e.position);
1997
2000
  $(e, "unexpected end of the stream within a single quoted scalar");
1998
2001
  }
1999
- function Wo(e, n) {
2002
+ function Yo(e, n) {
2000
2003
  var t, r, a, i, o, s;
2001
2004
  if (s = e.input.charCodeAt(e.position), s !== 34)
2002
2005
  return !1;
@@ -2004,80 +2007,80 @@ function Wo(e, n) {
2004
2007
  if (s === 34)
2005
2008
  return Ee(e, t, e.position, !0), e.position++, !0;
2006
2009
  if (s === 92) {
2007
- if (Ee(e, t, e.position, !0), s = e.input.charCodeAt(++e.position), Ae(s))
2008
- se(e, !1, n);
2009
- else if (s < 256 && Wn[s])
2010
- e.result += Zn[s], e.position++;
2011
- else if ((o = Do(s)) > 0) {
2010
+ if (Ee(e, t, e.position, !0), s = e.input.charCodeAt(++e.position), Se(s))
2011
+ le(e, !1, n);
2012
+ else if (s < 256 && Zn[s])
2013
+ e.result += Qn[s], e.position++;
2014
+ else if ((o = Ro(s)) > 0) {
2012
2015
  for (a = o, i = 0; a > 0; a--)
2013
- s = e.input.charCodeAt(++e.position), (o = Ro(s)) >= 0 ? i = (i << 4) + o : $(e, "expected hexadecimal character");
2016
+ s = e.input.charCodeAt(++e.position), (o = Vo(s)) >= 0 ? i = (i << 4) + o : $(e, "expected hexadecimal character");
2014
2017
  e.result += Ho(i), e.position++;
2015
2018
  } else
2016
2019
  $(e, "unknown escape sequence");
2017
2020
  t = r = e.position;
2018
2021
  } else
2019
- Ae(s) ? (Ee(e, t, r, !0), Et(e, se(e, !1, n)), t = r = e.position) : e.position === e.lineStart && pt(e) ? $(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
2022
+ Se(s) ? (Ee(e, t, r, !0), Et(e, le(e, !1, n)), t = r = e.position) : e.position === e.lineStart && pt(e) ? $(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
2020
2023
  }
2021
2024
  $(e, "unexpected end of the stream within a double quoted scalar");
2022
2025
  }
2023
2026
  function Zo(e, n) {
2024
- var t = !0, r, a, i, o = e.tag, s, l = e.anchor, c, d, u, y, p, _ = /* @__PURE__ */ Object.create(null), h, A, g, b;
2027
+ var t = !0, r, a, i, o = e.tag, s, l = e.anchor, u, p, c, g, d, _ = /* @__PURE__ */ Object.create(null), v, S, y, b;
2025
2028
  if (b = e.input.charCodeAt(e.position), b === 91)
2026
- d = 93, p = !1, s = [];
2029
+ p = 93, d = !1, s = [];
2027
2030
  else if (b === 123)
2028
- d = 125, p = !0, s = {};
2031
+ p = 125, d = !0, s = {};
2029
2032
  else
2030
2033
  return !1;
2031
2034
  for (e.anchor !== null && (e.anchorMap[e.anchor] = s), b = e.input.charCodeAt(++e.position); b !== 0; ) {
2032
- if (se(e, !0, n), b = e.input.charCodeAt(e.position), b === d)
2033
- return e.position++, e.tag = o, e.anchor = l, e.kind = p ? "mapping" : "sequence", e.result = s, !0;
2034
- t ? b === 44 && $(e, "expected the node content, but found ','") : $(e, "missed comma between flow collection entries"), A = h = g = null, u = y = !1, b === 63 && (c = e.input.charCodeAt(e.position + 1), be(c) && (u = y = !0, e.position++, se(e, !0, n))), r = e.line, a = e.lineStart, i = e.position, De(e, n, at, !1, !0), A = e.tag, h = e.result, se(e, !0, n), b = e.input.charCodeAt(e.position), (y || e.line === r) && b === 58 && (u = !0, b = e.input.charCodeAt(++e.position), se(e, !0, n), De(e, n, at, !1, !0), g = e.result), p ? Ve(e, s, _, A, h, g, r, a, i) : u ? s.push(Ve(e, null, _, A, h, g, r, a, i)) : s.push(h), se(e, !0, n), b = e.input.charCodeAt(e.position), b === 44 ? (t = !0, b = e.input.charCodeAt(++e.position)) : t = !1;
2035
+ if (le(e, !0, n), b = e.input.charCodeAt(e.position), b === p)
2036
+ return e.position++, e.tag = o, e.anchor = l, e.kind = d ? "mapping" : "sequence", e.result = s, !0;
2037
+ t ? b === 44 && $(e, "expected the node content, but found ','") : $(e, "missed comma between flow collection entries"), S = v = y = null, c = g = !1, b === 63 && (u = e.input.charCodeAt(e.position + 1), be(u) && (c = g = !0, e.position++, le(e, !0, n))), r = e.line, a = e.lineStart, i = e.position, Re(e, n, at, !1, !0), S = e.tag, v = e.result, le(e, !0, n), b = e.input.charCodeAt(e.position), (g || e.line === r) && b === 58 && (c = !0, b = e.input.charCodeAt(++e.position), le(e, !0, n), Re(e, n, at, !1, !0), y = e.result), d ? De(e, s, _, S, v, y, r, a, i) : c ? s.push(De(e, null, _, S, v, y, r, a, i)) : s.push(v), le(e, !0, n), b = e.input.charCodeAt(e.position), b === 44 ? (t = !0, b = e.input.charCodeAt(++e.position)) : t = !1;
2035
2038
  }
2036
2039
  $(e, "unexpected end of the stream within a flow collection");
2037
2040
  }
2038
2041
  function Qo(e, n) {
2039
- var t, r, a = ht, i = !1, o = !1, s = n, l = 0, c = !1, d, u;
2040
- if (u = e.input.charCodeAt(e.position), u === 124)
2042
+ var t, r, a = ht, i = !1, o = !1, s = n, l = 0, u = !1, p, c;
2043
+ if (c = e.input.charCodeAt(e.position), c === 124)
2041
2044
  r = !1;
2042
- else if (u === 62)
2045
+ else if (c === 62)
2043
2046
  r = !0;
2044
2047
  else
2045
2048
  return !1;
2046
- for (e.kind = "scalar", e.result = ""; u !== 0; )
2047
- if (u = e.input.charCodeAt(++e.position), u === 43 || u === 45)
2048
- ht === a ? a = u === 43 ? Wt : Lo : $(e, "repeat of a chomping mode identifier");
2049
- else if ((d = Go(u)) >= 0)
2050
- d === 0 ? $(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? $(e, "repeat of an indentation width identifier") : (s = n + d - 1, o = !0);
2049
+ for (e.kind = "scalar", e.result = ""; c !== 0; )
2050
+ if (c = e.input.charCodeAt(++e.position), c === 43 || c === 45)
2051
+ ht === a ? a = c === 43 ? Yt : Lo : $(e, "repeat of a chomping mode identifier");
2052
+ else if ((p = Go(c)) >= 0)
2053
+ p === 0 ? $(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? $(e, "repeat of an indentation width identifier") : (s = n + p - 1, o = !0);
2051
2054
  else
2052
2055
  break;
2053
- if (Fe(u)) {
2056
+ if (Ke(c)) {
2054
2057
  do
2055
- u = e.input.charCodeAt(++e.position);
2056
- while (Fe(u));
2057
- if (u === 35)
2058
+ c = e.input.charCodeAt(++e.position);
2059
+ while (Ke(c));
2060
+ if (c === 35)
2058
2061
  do
2059
- u = e.input.charCodeAt(++e.position);
2060
- while (!Ae(u) && u !== 0);
2062
+ c = e.input.charCodeAt(++e.position);
2063
+ while (!Se(c) && c !== 0);
2061
2064
  }
2062
- for (; u !== 0; ) {
2063
- for (jt(e), e.lineIndent = 0, u = e.input.charCodeAt(e.position); (!o || e.lineIndent < s) && u === 32; )
2064
- e.lineIndent++, u = e.input.charCodeAt(++e.position);
2065
- if (!o && e.lineIndent > s && (s = e.lineIndent), Ae(u)) {
2065
+ for (; c !== 0; ) {
2066
+ for (Mt(e), e.lineIndent = 0, c = e.input.charCodeAt(e.position); (!o || e.lineIndent < s) && c === 32; )
2067
+ e.lineIndent++, c = e.input.charCodeAt(++e.position);
2068
+ if (!o && e.lineIndent > s && (s = e.lineIndent), Se(c)) {
2066
2069
  l++;
2067
2070
  continue;
2068
2071
  }
2069
2072
  if (e.lineIndent < s) {
2070
- a === Wt ? e.result += ce.repeat(`
2073
+ a === Yt ? e.result += ce.repeat(`
2071
2074
  `, i ? 1 + l : l) : a === ht && i && (e.result += `
2072
2075
  `);
2073
2076
  break;
2074
2077
  }
2075
- for (r ? Fe(u) ? (c = !0, e.result += ce.repeat(`
2076
- `, i ? 1 + l : l)) : c ? (c = !1, e.result += ce.repeat(`
2078
+ for (r ? Ke(c) ? (u = !0, e.result += ce.repeat(`
2079
+ `, i ? 1 + l : l)) : u ? (u = !1, e.result += ce.repeat(`
2077
2080
  `, l + 1)) : l === 0 ? i && (e.result += " ") : e.result += ce.repeat(`
2078
2081
  `, l) : e.result += ce.repeat(`
2079
- `, i ? 1 + l : l), i = !0, o = !0, l = 0, t = e.position; !Ae(u) && u !== 0; )
2080
- u = e.input.charCodeAt(++e.position);
2082
+ `, i ? 1 + l : l), i = !0, o = !0, l = 0, t = e.position; !Se(c) && c !== 0; )
2083
+ c = e.input.charCodeAt(++e.position);
2081
2084
  Ee(e, t, e.position, !1);
2082
2085
  }
2083
2086
  return !0;
@@ -2087,11 +2090,11 @@ function tn(e, n) {
2087
2090
  if (e.firstTabInLine !== -1)
2088
2091
  return !1;
2089
2092
  for (e.anchor !== null && (e.anchorMap[e.anchor] = i), 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 || (o = e.input.charCodeAt(e.position + 1), !be(o)))); ) {
2090
- if (s = !0, e.position++, se(e, !0, -1) && e.lineIndent <= n) {
2093
+ if (s = !0, e.position++, le(e, !0, -1) && e.lineIndent <= n) {
2091
2094
  i.push(null), l = e.input.charCodeAt(e.position);
2092
2095
  continue;
2093
2096
  }
2094
- if (t = e.line, De(e, n, zn, !1, !0), i.push(e.result), se(e, !0, -1), l = e.input.charCodeAt(e.position), (e.line === t || e.lineIndent > n) && l !== 0)
2097
+ if (t = e.line, Re(e, n, Jn, !1, !0), i.push(e.result), le(e, !0, -1), l = e.input.charCodeAt(e.position), (e.line === t || e.lineIndent > n) && l !== 0)
2095
2098
  $(e, "bad indentation of a sequence entry");
2096
2099
  else if (e.lineIndent < n)
2097
2100
  break;
@@ -2099,35 +2102,35 @@ function tn(e, n) {
2099
2102
  return s ? (e.tag = r, e.anchor = a, e.kind = "sequence", e.result = i, !0) : !1;
2100
2103
  }
2101
2104
  function Xo(e, n, t) {
2102
- var r, a, i, o, s, l, c = e.tag, d = e.anchor, u = {}, y = /* @__PURE__ */ Object.create(null), p = null, _ = null, h = null, A = !1, g = !1, b;
2105
+ var r, a, i, o, s, l, u = e.tag, p = e.anchor, c = {}, g = /* @__PURE__ */ Object.create(null), d = null, _ = null, v = null, S = !1, y = !1, b;
2103
2106
  if (e.firstTabInLine !== -1)
2104
2107
  return !1;
2105
- for (e.anchor !== null && (e.anchorMap[e.anchor] = u), b = e.input.charCodeAt(e.position); b !== 0; ) {
2106
- if (!A && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, $(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), i = e.line, (b === 63 || b === 58) && be(r))
2107
- b === 63 ? (A && (Ve(e, u, y, p, _, null, o, s, l), p = _ = h = null), g = !0, A = !0, a = !0) : A ? (A = !1, a = !0) : $(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, b = r;
2108
+ for (e.anchor !== null && (e.anchorMap[e.anchor] = c), b = e.input.charCodeAt(e.position); b !== 0; ) {
2109
+ if (!S && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, $(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), i = e.line, (b === 63 || b === 58) && be(r))
2110
+ b === 63 ? (S && (De(e, c, g, d, _, null, o, s, l), d = _ = v = null), y = !0, S = !0, a = !0) : S ? (S = !1, a = !0) : $(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, b = r;
2108
2111
  else {
2109
- if (o = e.line, s = e.lineStart, l = e.position, !De(e, t, Hn, !1, !0))
2112
+ if (o = e.line, s = e.lineStart, l = e.position, !Re(e, t, zn, !1, !0))
2110
2113
  break;
2111
2114
  if (e.line === i) {
2112
- for (b = e.input.charCodeAt(e.position); Fe(b); )
2115
+ for (b = e.input.charCodeAt(e.position); Ke(b); )
2113
2116
  b = e.input.charCodeAt(++e.position);
2114
2117
  if (b === 58)
2115
- b = e.input.charCodeAt(++e.position), be(b) || $(e, "a whitespace character is expected after the key-value separator within a block mapping"), A && (Ve(e, u, y, p, _, null, o, s, l), p = _ = h = null), g = !0, A = !1, a = !1, p = e.tag, _ = e.result;
2116
- else if (g)
2118
+ b = e.input.charCodeAt(++e.position), be(b) || $(e, "a whitespace character is expected after the key-value separator within a block mapping"), S && (De(e, c, g, d, _, null, o, s, l), d = _ = v = null), y = !0, S = !1, a = !1, d = e.tag, _ = e.result;
2119
+ else if (y)
2117
2120
  $(e, "can not read an implicit mapping pair; a colon is missed");
2118
2121
  else
2119
- return e.tag = c, e.anchor = d, !0;
2120
- } else if (g)
2122
+ return e.tag = u, e.anchor = p, !0;
2123
+ } else if (y)
2121
2124
  $(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
2122
2125
  else
2123
- return e.tag = c, e.anchor = d, !0;
2126
+ return e.tag = u, e.anchor = p, !0;
2124
2127
  }
2125
- if ((e.line === i || e.lineIndent > n) && (A && (o = e.line, s = e.lineStart, l = e.position), De(e, n, ot, !0, a) && (A ? _ = e.result : h = e.result), A || (Ve(e, u, y, p, _, h, o, s, l), p = _ = h = null), se(e, !0, -1), b = e.input.charCodeAt(e.position)), (e.line === i || e.lineIndent > n) && b !== 0)
2128
+ if ((e.line === i || e.lineIndent > n) && (S && (o = e.line, s = e.lineStart, l = e.position), Re(e, n, ot, !0, a) && (S ? _ = e.result : v = e.result), S || (De(e, c, g, d, _, v, o, s, l), d = _ = v = null), le(e, !0, -1), b = e.input.charCodeAt(e.position)), (e.line === i || e.lineIndent > n) && b !== 0)
2126
2129
  $(e, "bad indentation of a mapping entry");
2127
2130
  else if (e.lineIndent < n)
2128
2131
  break;
2129
2132
  }
2130
- return A && Ve(e, u, y, p, _, null, o, s, l), g && (e.tag = c, e.anchor = d, e.kind = "mapping", e.result = u), g;
2133
+ return S && De(e, c, g, d, _, null, o, s, l), y && (e.tag = u, e.anchor = p, e.kind = "mapping", e.result = c), y;
2131
2134
  }
2132
2135
  function ei(e) {
2133
2136
  var n, t = !1, r = !1, a, i, o;
@@ -2140,8 +2143,8 @@ function ei(e) {
2140
2143
  e.position < e.length ? (i = e.input.slice(n, e.position), o = e.input.charCodeAt(++e.position)) : $(e, "unexpected end of the stream within a verbatim tag");
2141
2144
  } else {
2142
2145
  for (; o !== 0 && !be(o); )
2143
- o === 33 && (r ? $(e, "tag suffix cannot contain exclamation marks") : (a = e.input.slice(n - 1, e.position + 1), Jn.test(a) || $(e, "named tag handle cannot contain such characters"), r = !0, n = e.position + 1)), o = e.input.charCodeAt(++e.position);
2144
- i = e.input.slice(n, e.position), Vo.test(i) && $(e, "tag suffix cannot contain flow indicator characters");
2146
+ o === 33 && (r ? $(e, "tag suffix cannot contain exclamation marks") : (a = e.input.slice(n - 1, e.position + 1), Wn.test(a) || $(e, "named tag handle cannot contain such characters"), r = !0, n = e.position + 1)), o = e.input.charCodeAt(++e.position);
2147
+ i = e.input.slice(n, e.position), Do.test(i) && $(e, "tag suffix cannot contain flow indicator characters");
2145
2148
  }
2146
2149
  i && !Yn.test(i) && $(e, "tag name cannot contain such characters: " + i);
2147
2150
  try {
@@ -2149,13 +2152,13 @@ function ei(e) {
2149
2152
  } catch {
2150
2153
  $(e, "tag name is malformed: " + i);
2151
2154
  }
2152
- return t ? e.tag = i : Oe.call(e.tagMap, a) ? e.tag = e.tagMap[a] + i : a === "!" ? e.tag = "!" + i : a === "!!" ? e.tag = "tag:yaml.org,2002:" + i : $(e, 'undeclared tag handle "' + a + '"'), !0;
2155
+ return t ? e.tag = i : Fe.call(e.tagMap, a) ? e.tag = e.tagMap[a] + i : a === "!" ? e.tag = "!" + i : a === "!!" ? e.tag = "tag:yaml.org,2002:" + i : $(e, 'undeclared tag handle "' + a + '"'), !0;
2153
2156
  }
2154
2157
  function ti(e) {
2155
2158
  var n, t;
2156
2159
  if (t = e.input.charCodeAt(e.position), t !== 38)
2157
2160
  return !1;
2158
- for (e.anchor !== null && $(e, "duplication of an anchor property"), t = e.input.charCodeAt(++e.position), n = e.position; t !== 0 && !be(t) && !Ue(t); )
2161
+ for (e.anchor !== null && $(e, "duplication of an anchor property"), t = e.input.charCodeAt(++e.position), n = e.position; t !== 0 && !be(t) && !Pe(t); )
2159
2162
  t = e.input.charCodeAt(++e.position);
2160
2163
  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;
2161
2164
  }
@@ -2163,60 +2166,60 @@ function ni(e) {
2163
2166
  var n, t, r;
2164
2167
  if (r = e.input.charCodeAt(e.position), r !== 42)
2165
2168
  return !1;
2166
- for (r = e.input.charCodeAt(++e.position), n = e.position; r !== 0 && !be(r) && !Ue(r); )
2169
+ for (r = e.input.charCodeAt(++e.position), n = e.position; r !== 0 && !be(r) && !Pe(r); )
2167
2170
  r = e.input.charCodeAt(++e.position);
2168
- return e.position === n && $(e, "name of an alias node must contain at least one character"), t = e.input.slice(n, e.position), Oe.call(e.anchorMap, t) || $(e, 'unidentified alias "' + t + '"'), e.result = e.anchorMap[t], se(e, !0, -1), !0;
2171
+ return e.position === n && $(e, "name of an alias node must contain at least one character"), t = e.input.slice(n, e.position), Fe.call(e.anchorMap, t) || $(e, 'unidentified alias "' + t + '"'), e.result = e.anchorMap[t], le(e, !0, -1), !0;
2169
2172
  }
2170
- function De(e, n, t, r, a) {
2171
- var i, o, s, l = 1, c = !1, d = !1, u, y, p, _, h, A;
2172
- if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, i = o = s = ot === t || zn === t, r && se(e, !0, -1) && (c = !0, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)), l === 1)
2173
+ function Re(e, n, t, r, a) {
2174
+ var i, o, s, l = 1, u = !1, p = !1, c, g, d, _, v, S;
2175
+ if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, i = o = s = ot === t || Jn === t, r && le(e, !0, -1) && (u = !0, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)), l === 1)
2173
2176
  for (; ei(e) || ti(e); )
2174
- se(e, !0, -1) ? (c = !0, s = i, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)) : s = !1;
2175
- if (s && (s = c || a), (l === 1 || ot === t) && (at === t || Hn === t ? h = n : h = n + 1, A = e.position - e.lineStart, l === 1 ? s && (tn(e, A) || Xo(e, A, h)) || Zo(e, h) ? d = !0 : (o && Qo(e, h) || Yo(e, h) || Wo(e, h) ? d = !0 : ni(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && $(e, "alias node should not have any properties")) : Jo(e, h, at === t) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : l === 0 && (d = s && tn(e, A))), e.tag === null)
2177
+ le(e, !0, -1) ? (u = !0, s = i, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)) : s = !1;
2178
+ if (s && (s = u || a), (l === 1 || ot === t) && (at === t || zn === t ? v = n : v = n + 1, S = e.position - e.lineStart, l === 1 ? s && (tn(e, S) || Xo(e, S, v)) || Zo(e, v) ? p = !0 : (o && Qo(e, v) || Wo(e, v) || Yo(e, v) ? p = !0 : ni(e) ? (p = !0, (e.tag !== null || e.anchor !== null) && $(e, "alias node should not have any properties")) : Jo(e, v, at === t) && (p = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : l === 0 && (p = s && tn(e, S))), e.tag === null)
2176
2179
  e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2177
2180
  else if (e.tag === "?") {
2178
- for (e.result !== null && e.kind !== "scalar" && $(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, y = e.implicitTypes.length; u < y; u += 1)
2179
- if (_ = e.implicitTypes[u], _.resolve(e.result)) {
2181
+ for (e.result !== null && e.kind !== "scalar" && $(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), c = 0, g = e.implicitTypes.length; c < g; c += 1)
2182
+ if (_ = e.implicitTypes[c], _.resolve(e.result)) {
2180
2183
  e.result = _.construct(e.result), e.tag = _.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2181
2184
  break;
2182
2185
  }
2183
2186
  } else if (e.tag !== "!") {
2184
- if (Oe.call(e.typeMap[e.kind || "fallback"], e.tag))
2187
+ if (Fe.call(e.typeMap[e.kind || "fallback"], e.tag))
2185
2188
  _ = e.typeMap[e.kind || "fallback"][e.tag];
2186
2189
  else
2187
- for (_ = null, p = e.typeMap.multi[e.kind || "fallback"], u = 0, y = p.length; u < y; u += 1)
2188
- if (e.tag.slice(0, p[u].tag.length) === p[u].tag) {
2189
- _ = p[u];
2190
+ for (_ = null, d = e.typeMap.multi[e.kind || "fallback"], c = 0, g = d.length; c < g; c += 1)
2191
+ if (e.tag.slice(0, d[c].tag.length) === d[c].tag) {
2192
+ _ = d[c];
2190
2193
  break;
2191
2194
  }
2192
2195
  _ || $(e, "unknown tag !<" + e.tag + ">"), e.result !== null && _.kind !== e.kind && $(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + _.kind + '", not "' + e.kind + '"'), _.resolve(e.result, e.tag) ? (e.result = _.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : $(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
2193
2196
  }
2194
- return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || d;
2197
+ return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || p;
2195
2198
  }
2196
2199
  function ri(e) {
2197
2200
  var n = e.position, t, r, a, i = !1, o;
2198
- for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (o = e.input.charCodeAt(e.position)) !== 0 && (se(e, !0, -1), o = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || o !== 37)); ) {
2201
+ for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (o = e.input.charCodeAt(e.position)) !== 0 && (le(e, !0, -1), o = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || o !== 37)); ) {
2199
2202
  for (i = !0, o = e.input.charCodeAt(++e.position), t = e.position; o !== 0 && !be(o); )
2200
2203
  o = e.input.charCodeAt(++e.position);
2201
2204
  for (r = e.input.slice(t, e.position), a = [], r.length < 1 && $(e, "directive name must not be less than one character in length"); o !== 0; ) {
2202
- for (; Fe(o); )
2205
+ for (; Ke(o); )
2203
2206
  o = e.input.charCodeAt(++e.position);
2204
2207
  if (o === 35) {
2205
2208
  do
2206
2209
  o = e.input.charCodeAt(++e.position);
2207
- while (o !== 0 && !Ae(o));
2210
+ while (o !== 0 && !Se(o));
2208
2211
  break;
2209
2212
  }
2210
- if (Ae(o))
2213
+ if (Se(o))
2211
2214
  break;
2212
2215
  for (t = e.position; o !== 0 && !be(o); )
2213
2216
  o = e.input.charCodeAt(++e.position);
2214
2217
  a.push(e.input.slice(t, e.position));
2215
2218
  }
2216
- o !== 0 && jt(e), Oe.call(Xt, r) ? Xt[r](e, r, a) : it(e, 'unknown document directive "' + r + '"');
2219
+ o !== 0 && Mt(e), Fe.call(Xt, r) ? Xt[r](e, r, a) : it(e, 'unknown document directive "' + r + '"');
2217
2220
  }
2218
- if (se(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, se(e, !0, -1)) : i && $(e, "directives end mark is expected"), De(e, e.lineIndent - 1, ot, !1, !0), se(e, !0, -1), e.checkLineBreaks && Uo.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 && pt(e)) {
2219
- e.input.charCodeAt(e.position) === 46 && (e.position += 3, se(e, !0, -1));
2221
+ if (le(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, le(e, !0, -1)) : i && $(e, "directives end mark is expected"), Re(e, e.lineIndent - 1, ot, !1, !0), le(e, !0, -1), e.checkLineBreaks && Po.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 && pt(e)) {
2222
+ e.input.charCodeAt(e.position) === 46 && (e.position += 3, le(e, !0, -1));
2220
2223
  return;
2221
2224
  }
2222
2225
  if (e.position < e.length - 1)
@@ -2224,7 +2227,7 @@ function ri(e) {
2224
2227
  else
2225
2228
  return;
2226
2229
  }
2227
- function Xn(e, n) {
2230
+ function er(e, n) {
2228
2231
  e = String(e), n = n || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
2229
2232
  `), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
2230
2233
  var t = new zo(e, n), r = e.indexOf("\0");
@@ -2236,24 +2239,24 @@ function Xn(e, n) {
2236
2239
  }
2237
2240
  function ai(e, n, t) {
2238
2241
  n !== null && typeof n == "object" && typeof t > "u" && (t = n, n = null);
2239
- var r = Xn(e, t);
2242
+ var r = er(e, t);
2240
2243
  if (typeof n != "function")
2241
2244
  return r;
2242
2245
  for (var a = 0, i = r.length; a < i; a += 1)
2243
2246
  n(r[a]);
2244
2247
  }
2245
2248
  function oi(e, n) {
2246
- var t = Xn(e, n);
2249
+ var t = er(e, n);
2247
2250
  if (t.length !== 0) {
2248
2251
  if (t.length === 1)
2249
2252
  return t[0];
2250
2253
  throw new ge("expected a single document in the stream, but found more");
2251
2254
  }
2252
2255
  }
2253
- var ii = ai, si = oi, er = {
2256
+ var ii = ai, si = oi, tr = {
2254
2257
  loadAll: ii,
2255
2258
  load: si
2256
- }, tr = Object.prototype.toString, nr = Object.prototype.hasOwnProperty, Ot = 65279, li = 9, Qe = 10, ui = 13, ci = 32, di = 33, pi = 34, Ct = 35, fi = 37, mi = 38, gi = 39, yi = 42, rr = 44, hi = 45, st = 58, vi = 61, bi = 62, Ci = 63, ki = 64, ar = 91, or = 93, wi = 96, ir = 123, _i = 124, sr = 125, me = {};
2259
+ }, nr = Object.prototype.toString, rr = Object.prototype.hasOwnProperty, Ot = 65279, li = 9, Qe = 10, ui = 13, ci = 32, di = 33, pi = 34, Ct = 35, fi = 37, mi = 38, gi = 39, yi = 42, ar = 44, hi = 45, st = 58, vi = 61, bi = 62, Ci = 63, ki = 64, or = 91, ir = 93, wi = 96, sr = 123, _i = 124, lr = 125, me = {};
2257
2260
  me[0] = "\\0";
2258
2261
  me[7] = "\\a";
2259
2262
  me[8] = "\\b";
@@ -2286,16 +2289,16 @@ var Ii = [
2286
2289
  "off",
2287
2290
  "Off",
2288
2291
  "OFF"
2289
- ], Ai = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
2290
- function xi(e, n) {
2292
+ ], Si = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
2293
+ function Ai(e, n) {
2291
2294
  var t, r, a, i, o, s, l;
2292
2295
  if (n === null)
2293
2296
  return {};
2294
2297
  for (t = {}, r = Object.keys(n), a = 0, i = r.length; a < i; a += 1)
2295
- o = r[a], s = String(n[o]), o.slice(0, 2) === "!!" && (o = "tag:yaml.org,2002:" + o.slice(2)), l = e.compiledTypeMap.fallback[o], l && nr.call(l.styleAliases, s) && (s = l.styleAliases[s]), t[o] = s;
2298
+ o = r[a], s = String(n[o]), o.slice(0, 2) === "!!" && (o = "tag:yaml.org,2002:" + o.slice(2)), l = e.compiledTypeMap.fallback[o], l && rr.call(l.styleAliases, s) && (s = l.styleAliases[s]), t[o] = s;
2296
2299
  return t;
2297
2300
  }
2298
- function Si(e) {
2301
+ function xi(e) {
2299
2302
  var n, t, r;
2300
2303
  if (n = e.toString(16).toUpperCase(), e <= 255)
2301
2304
  t = "x", r = 2;
@@ -2309,7 +2312,7 @@ function Si(e) {
2309
2312
  }
2310
2313
  var Ti = 1, Xe = 2;
2311
2314
  function $i(e) {
2312
- this.schema = e.schema || Mt, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = ce.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = xi(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 === '"' ? Xe : Ti, 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;
2315
+ this.schema = e.schema || jt, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = ce.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = Ai(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 === '"' ? Xe : Ti, 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;
2313
2316
  }
2314
2317
  function nn(e, n) {
2315
2318
  for (var t = ce.repeat(" ", n), r = 0, a = -1, i = "", o, s = e.length; r < s; )
@@ -2322,7 +2325,7 @@ function kt(e, n) {
2322
2325
  return `
2323
2326
  ` + ce.repeat(" ", e.indent * n);
2324
2327
  }
2325
- function Mi(e, n) {
2328
+ function ji(e, n) {
2326
2329
  var t, r, a;
2327
2330
  for (t = 0, r = e.implicitTypes.length; t < r; t += 1)
2328
2331
  if (a = e.implicitTypes[t], a.resolve(n))
@@ -2345,11 +2348,11 @@ function an(e, n, t) {
2345
2348
  (t ? (
2346
2349
  // c = flow-in
2347
2350
  r
2348
- ) : r && e !== rr && e !== ar && e !== or && e !== ir && e !== sr) && e !== Ct && !(n === st && !a) || rn(n) && !lt(n) && e === Ct || n === st && a
2351
+ ) : r && e !== ar && e !== or && e !== ir && e !== sr && e !== lr) && e !== Ct && !(n === st && !a) || rn(n) && !lt(n) && e === Ct || n === st && a
2349
2352
  );
2350
2353
  }
2351
- function ji(e) {
2352
- return et(e) && e !== Ot && !lt(e) && e !== hi && e !== Ci && e !== st && e !== rr && e !== ar && e !== or && e !== ir && e !== sr && e !== Ct && e !== mi && e !== yi && e !== di && e !== _i && e !== vi && e !== bi && e !== gi && e !== pi && e !== fi && e !== ki && e !== wi;
2354
+ function Mi(e) {
2355
+ return et(e) && e !== Ot && !lt(e) && e !== hi && e !== Ci && e !== st && e !== ar && e !== or && e !== ir && e !== sr && e !== lr && e !== Ct && e !== mi && e !== yi && e !== di && e !== _i && e !== vi && e !== bi && e !== gi && e !== pi && e !== fi && e !== ki && e !== wi;
2353
2356
  }
2354
2357
  function Ei(e) {
2355
2358
  return !lt(e) && e !== st;
@@ -2358,41 +2361,41 @@ function Je(e, n) {
2358
2361
  var t = e.charCodeAt(n), r;
2359
2362
  return t >= 55296 && t <= 56319 && n + 1 < e.length && (r = e.charCodeAt(n + 1), r >= 56320 && r <= 57343) ? (t - 55296) * 1024 + r - 56320 + 65536 : t;
2360
2363
  }
2361
- function lr(e) {
2364
+ function ur(e) {
2362
2365
  var n = /^\n* /;
2363
2366
  return n.test(e);
2364
2367
  }
2365
- var ur = 1, wt = 2, cr = 3, dr = 4, Pe = 5;
2368
+ var cr = 1, wt = 2, dr = 3, pr = 4, Ue = 5;
2366
2369
  function Oi(e, n, t, r, a, i, o, s) {
2367
- var l, c = 0, d = null, u = !1, y = !1, p = r !== -1, _ = -1, h = ji(Je(e, 0)) && Ei(Je(e, e.length - 1));
2370
+ var l, u = 0, p = null, c = !1, g = !1, d = r !== -1, _ = -1, v = Mi(Je(e, 0)) && Ei(Je(e, e.length - 1));
2368
2371
  if (n || o)
2369
- for (l = 0; l < e.length; c >= 65536 ? l += 2 : l++) {
2370
- if (c = Je(e, l), !et(c))
2371
- return Pe;
2372
- h = h && an(c, d, s), d = c;
2372
+ for (l = 0; l < e.length; u >= 65536 ? l += 2 : l++) {
2373
+ if (u = Je(e, l), !et(u))
2374
+ return Ue;
2375
+ v = v && an(u, p, s), p = u;
2373
2376
  }
2374
2377
  else {
2375
- for (l = 0; l < e.length; c >= 65536 ? l += 2 : l++) {
2376
- if (c = Je(e, l), c === Qe)
2377
- u = !0, p && (y = y || // Foldable line = too long, and not more-indented.
2378
+ for (l = 0; l < e.length; u >= 65536 ? l += 2 : l++) {
2379
+ if (u = Je(e, l), u === Qe)
2380
+ c = !0, d && (g = g || // Foldable line = too long, and not more-indented.
2378
2381
  l - _ - 1 > r && e[_ + 1] !== " ", _ = l);
2379
- else if (!et(c))
2380
- return Pe;
2381
- h = h && an(c, d, s), d = c;
2382
+ else if (!et(u))
2383
+ return Ue;
2384
+ v = v && an(u, p, s), p = u;
2382
2385
  }
2383
- y = y || p && l - _ - 1 > r && e[_ + 1] !== " ";
2386
+ g = g || d && l - _ - 1 > r && e[_ + 1] !== " ";
2384
2387
  }
2385
- return !u && !y ? h && !o && !a(e) ? ur : i === Xe ? Pe : wt : t > 9 && lr(e) ? Pe : o ? i === Xe ? Pe : wt : y ? dr : cr;
2388
+ return !c && !g ? v && !o && !a(e) ? cr : i === Xe ? Ue : wt : t > 9 && ur(e) ? Ue : o ? i === Xe ? Ue : wt : g ? pr : dr;
2386
2389
  }
2387
- function Ki(e, n, t, r, a) {
2390
+ function Fi(e, n, t, r, a) {
2388
2391
  e.dump = function() {
2389
2392
  if (n.length === 0)
2390
2393
  return e.quotingType === Xe ? '""' : "''";
2391
- if (!e.noCompatMode && (Ii.indexOf(n) !== -1 || Ai.test(n)))
2394
+ if (!e.noCompatMode && (Ii.indexOf(n) !== -1 || Si.test(n)))
2392
2395
  return e.quotingType === Xe ? '"' + n + '"' : "'" + n + "'";
2393
2396
  var i = e.indent * Math.max(1, t), o = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - i), s = r || e.flowLevel > -1 && t >= e.flowLevel;
2394
- function l(c) {
2395
- return Mi(e, c);
2397
+ function l(u) {
2398
+ return ji(e, u);
2396
2399
  }
2397
2400
  switch (Oi(
2398
2401
  n,
@@ -2404,23 +2407,23 @@ function Ki(e, n, t, r, a) {
2404
2407
  e.forceQuotes && !r,
2405
2408
  a
2406
2409
  )) {
2407
- case ur:
2410
+ case cr:
2408
2411
  return n;
2409
2412
  case wt:
2410
2413
  return "'" + n.replace(/'/g, "''") + "'";
2411
- case cr:
2412
- return "|" + on(n, e.indent) + sn(nn(n, i));
2413
2414
  case dr:
2414
- return ">" + on(n, e.indent) + sn(nn(Fi(n, o), i));
2415
- case Pe:
2416
- return '"' + Ni(n) + '"';
2415
+ return "|" + on(n, e.indent) + sn(nn(n, i));
2416
+ case pr:
2417
+ return ">" + on(n, e.indent) + sn(nn(Ni(n, o), i));
2418
+ case Ue:
2419
+ return '"' + Ki(n) + '"';
2417
2420
  default:
2418
2421
  throw new ge("impossible error: invalid scalar style");
2419
2422
  }
2420
2423
  }();
2421
2424
  }
2422
2425
  function on(e, n) {
2423
- var t = lr(e) ? String(n) : "", r = e[e.length - 1] === `
2426
+ var t = ur(e) ? String(n) : "", r = e[e.length - 1] === `
2424
2427
  `, a = r && (e[e.length - 2] === `
2425
2428
  ` || e === `
2426
2429
  `), i = a ? "+" : r ? "" : "-";
@@ -2431,11 +2434,11 @@ function sn(e) {
2431
2434
  return e[e.length - 1] === `
2432
2435
  ` ? e.slice(0, -1) : e;
2433
2436
  }
2434
- function Fi(e, n) {
2437
+ function Ni(e, n) {
2435
2438
  for (var t = /(\n+)([^\n]*)/g, r = function() {
2436
- var c = e.indexOf(`
2439
+ var u = e.indexOf(`
2437
2440
  `);
2438
- return c = c !== -1 ? c : e.length, t.lastIndex = c, ln(e.slice(0, c), n);
2441
+ return u = u !== -1 ? u : e.length, t.lastIndex = u, ln(e.slice(0, u), n);
2439
2442
  }(), a = e[0] === `
2440
2443
  ` || e[0] === " ", i, o; o = t.exec(e); ) {
2441
2444
  var s = o[1], l = o[2];
@@ -2454,9 +2457,9 @@ function ln(e, n) {
2454
2457
  `, e.length - a > n && o > a ? l += e.slice(a, o) + `
2455
2458
  ` + e.slice(o + 1) : l += e.slice(a), l.slice(1);
2456
2459
  }
2457
- function Ni(e) {
2460
+ function Ki(e) {
2458
2461
  for (var n = "", t = 0, r, a = 0; a < e.length; t >= 65536 ? a += 2 : a++)
2459
- t = Je(e, a), r = me[t], !r && et(t) ? (n += e[a], t >= 65536 && (n += e[a + 1])) : n += r || Si(t);
2462
+ t = Je(e, a), r = me[t], !r && et(t) ? (n += e[a], t >= 65536 && (n += e[a + 1])) : n += r || xi(t);
2460
2463
  return n;
2461
2464
  }
2462
2465
  function Bi(e, n, t) {
@@ -2472,13 +2475,13 @@ function un(e, n, t, r) {
2472
2475
  e.tag = i, e.dump = a || "[]";
2473
2476
  }
2474
2477
  function qi(e, n, t) {
2475
- var r = "", a = e.tag, i = Object.keys(t), o, s, l, c, d;
2478
+ var r = "", a = e.tag, i = Object.keys(t), o, s, l, u, p;
2476
2479
  for (o = 0, s = i.length; o < s; o += 1)
2477
- d = "", r !== "" && (d += ", "), e.condenseFlow && (d += '"'), l = i[o], c = t[l], e.replacer && (c = e.replacer.call(t, l, c)), $e(e, n, l, !1, !1) && (e.dump.length > 1024 && (d += "? "), d += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), $e(e, n, c, !1, !1) && (d += e.dump, r += d));
2480
+ p = "", r !== "" && (p += ", "), e.condenseFlow && (p += '"'), l = i[o], u = t[l], e.replacer && (u = e.replacer.call(t, l, u)), $e(e, n, l, !1, !1) && (e.dump.length > 1024 && (p += "? "), p += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), $e(e, n, u, !1, !1) && (p += e.dump, r += p));
2478
2481
  e.tag = a, e.dump = "{" + r + "}";
2479
2482
  }
2480
2483
  function Li(e, n, t, r) {
2481
- var a = "", i = e.tag, o = Object.keys(t), s, l, c, d, u, y;
2484
+ var a = "", i = e.tag, o = Object.keys(t), s, l, u, p, c, g;
2482
2485
  if (e.sortKeys === !0)
2483
2486
  o.sort();
2484
2487
  else if (typeof e.sortKeys == "function")
@@ -2486,7 +2489,7 @@ function Li(e, n, t, r) {
2486
2489
  else if (e.sortKeys)
2487
2490
  throw new ge("sortKeys must be a boolean or a function");
2488
2491
  for (s = 0, l = o.length; s < l; s += 1)
2489
- y = "", (!r || a !== "") && (y += kt(e, n)), c = o[s], d = t[c], e.replacer && (d = e.replacer.call(t, c, d)), $e(e, n + 1, c, !0, !0, !0) && (u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, u && (e.dump && Qe === e.dump.charCodeAt(0) ? y += "?" : y += "? "), y += e.dump, u && (y += kt(e, n)), $e(e, n + 1, d, !0, u) && (e.dump && Qe === e.dump.charCodeAt(0) ? y += ":" : y += ": ", y += e.dump, a += y));
2492
+ g = "", (!r || a !== "") && (g += kt(e, n)), u = o[s], p = t[u], e.replacer && (p = e.replacer.call(t, u, p)), $e(e, n + 1, u, !0, !0, !0) && (c = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, c && (e.dump && Qe === e.dump.charCodeAt(0) ? g += "?" : g += "? "), g += e.dump, c && (g += kt(e, n)), $e(e, n + 1, p, !0, c) && (e.dump && Qe === e.dump.charCodeAt(0) ? g += ":" : g += ": ", g += e.dump, a += g));
2490
2493
  e.tag = i, e.dump = a || "{}";
2491
2494
  }
2492
2495
  function cn(e, n, t) {
@@ -2494,9 +2497,9 @@ function cn(e, n, t) {
2494
2497
  for (a = t ? e.explicitTypes : e.implicitTypes, i = 0, o = a.length; i < o; i += 1)
2495
2498
  if (s = a[i], (s.instanceOf || s.predicate) && (!s.instanceOf || typeof n == "object" && n instanceof s.instanceOf) && (!s.predicate || s.predicate(n))) {
2496
2499
  if (t ? s.multi && s.representName ? e.tag = s.representName(n) : e.tag = s.tag : e.tag = "?", s.represent) {
2497
- if (l = e.styleMap[s.tag] || s.defaultStyle, tr.call(s.represent) === "[object Function]")
2500
+ if (l = e.styleMap[s.tag] || s.defaultStyle, nr.call(s.represent) === "[object Function]")
2498
2501
  r = s.represent(n, l);
2499
- else if (nr.call(s.represent, l))
2502
+ else if (rr.call(s.represent, l))
2500
2503
  r = s.represent[l](n, l);
2501
2504
  else
2502
2505
  throw new ge("!<" + s.tag + '> tag resolver accepts not "' + l + '" style');
@@ -2508,30 +2511,30 @@ function cn(e, n, t) {
2508
2511
  }
2509
2512
  function $e(e, n, t, r, a, i, o) {
2510
2513
  e.tag = null, e.dump = t, cn(e, t, !1) || cn(e, t, !0);
2511
- var s = tr.call(e.dump), l = r, c;
2514
+ var s = nr.call(e.dump), l = r, u;
2512
2515
  r && (r = e.flowLevel < 0 || e.flowLevel > n);
2513
- var d = s === "[object Object]" || s === "[object Array]", u, y;
2514
- if (d && (u = e.duplicates.indexOf(t), y = u !== -1), (e.tag !== null && e.tag !== "?" || y || e.indent !== 2 && n > 0) && (a = !1), y && e.usedDuplicates[u])
2515
- e.dump = "*ref_" + u;
2516
+ var p = s === "[object Object]" || s === "[object Array]", c, g;
2517
+ if (p && (c = e.duplicates.indexOf(t), g = c !== -1), (e.tag !== null && e.tag !== "?" || g || e.indent !== 2 && n > 0) && (a = !1), g && e.usedDuplicates[c])
2518
+ e.dump = "*ref_" + c;
2516
2519
  else {
2517
- if (d && y && !e.usedDuplicates[u] && (e.usedDuplicates[u] = !0), s === "[object Object]")
2518
- r && Object.keys(e.dump).length !== 0 ? (Li(e, n, e.dump, a), y && (e.dump = "&ref_" + u + e.dump)) : (qi(e, n, e.dump), y && (e.dump = "&ref_" + u + " " + e.dump));
2520
+ if (p && g && !e.usedDuplicates[c] && (e.usedDuplicates[c] = !0), s === "[object Object]")
2521
+ r && Object.keys(e.dump).length !== 0 ? (Li(e, n, e.dump, a), g && (e.dump = "&ref_" + c + e.dump)) : (qi(e, n, e.dump), g && (e.dump = "&ref_" + c + " " + e.dump));
2519
2522
  else if (s === "[object Array]")
2520
- r && e.dump.length !== 0 ? (e.noArrayIndent && !o && n > 0 ? un(e, n - 1, e.dump, a) : un(e, n, e.dump, a), y && (e.dump = "&ref_" + u + e.dump)) : (Bi(e, n, e.dump), y && (e.dump = "&ref_" + u + " " + e.dump));
2523
+ r && e.dump.length !== 0 ? (e.noArrayIndent && !o && n > 0 ? un(e, n - 1, e.dump, a) : un(e, n, e.dump, a), g && (e.dump = "&ref_" + c + e.dump)) : (Bi(e, n, e.dump), g && (e.dump = "&ref_" + c + " " + e.dump));
2521
2524
  else if (s === "[object String]")
2522
- e.tag !== "?" && Ki(e, e.dump, n, i, l);
2525
+ e.tag !== "?" && Fi(e, e.dump, n, i, l);
2523
2526
  else {
2524
2527
  if (s === "[object Undefined]" || e.skipInvalid)
2525
2528
  return !1;
2526
2529
  throw new ge("unacceptable kind of an object to dump " + s);
2527
2530
  }
2528
- e.tag !== null && e.tag !== "?" && (c = encodeURI(
2531
+ e.tag !== null && e.tag !== "?" && (u = encodeURI(
2529
2532
  e.tag[0] === "!" ? e.tag.slice(1) : e.tag
2530
- ).replace(/!/g, "%21"), e.tag[0] === "!" ? c = "!" + c : c.slice(0, 18) === "tag:yaml.org,2002:" ? c = "!!" + c.slice(18) : c = "!<" + c + ">", e.dump = c + " " + e.dump);
2533
+ ).replace(/!/g, "%21"), e.tag[0] === "!" ? u = "!" + u : u.slice(0, 18) === "tag:yaml.org,2002:" ? u = "!!" + u.slice(18) : u = "!<" + u + ">", e.dump = u + " " + e.dump);
2531
2534
  }
2532
2535
  return !0;
2533
2536
  }
2534
- function Pi(e, n) {
2537
+ function Ui(e, n) {
2535
2538
  var t = [], r = [], a, i;
2536
2539
  for (_t(e, t, r), a = 0, i = r.length; a < i; a += 1)
2537
2540
  n.duplicates.push(t[r[a]]);
@@ -2549,44 +2552,44 @@ function _t(e, n, t) {
2549
2552
  for (r = Object.keys(e), a = 0, i = r.length; a < i; a += 1)
2550
2553
  _t(e[r[a]], n, t);
2551
2554
  }
2552
- function Ui(e, n) {
2555
+ function Pi(e, n) {
2553
2556
  n = n || {};
2554
2557
  var t = new $i(n);
2555
- t.noRefs || Pi(e, t);
2558
+ t.noRefs || Ui(e, t);
2556
2559
  var r = e;
2557
2560
  return t.replacer && (r = t.replacer.call({ "": r }, "", r)), $e(t, 0, r, !0, !0) ? t.dump + `
2558
2561
  ` : "";
2559
2562
  }
2560
- var Vi = Ui, Ri = {
2561
- dump: Vi
2563
+ var Di = Pi, Vi = {
2564
+ dump: Di
2562
2565
  };
2563
- function Kt(e, n) {
2566
+ function Ft(e, n) {
2564
2567
  return function() {
2565
2568
  throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + n + " instead, which is now safe by default.");
2566
2569
  };
2567
2570
  }
2568
- var Di = fe, Gi = Sn, Hi = jn, zi = Nn, Ji = Bn, Yi = Mt, Wi = er.load, Zi = er.loadAll, Qi = Ri.dump, Xi = ge, es = {
2571
+ var Ri = fe, Gi = Tn, Hi = En, zi = Bn, Ji = qn, Wi = jt, Yi = tr.load, Zi = tr.loadAll, Qi = Vi.dump, Xi = ge, es = {
2569
2572
  binary: Vn,
2570
- float: Fn,
2573
+ float: Kn,
2571
2574
  map: Mn,
2572
- null: En,
2573
- pairs: Dn,
2574
- set: Gn,
2575
+ null: On,
2576
+ pairs: Gn,
2577
+ set: Hn,
2575
2578
  timestamp: Pn,
2576
- bool: On,
2577
- int: Kn,
2578
- merge: Un,
2579
+ bool: Fn,
2580
+ int: Nn,
2581
+ merge: Dn,
2579
2582
  omap: Rn,
2580
- seq: $n,
2581
- str: Tn
2582
- }, ts = Kt("safeLoad", "load"), ns = Kt("safeLoadAll", "loadAll"), rs = Kt("safeDump", "dump"), as = {
2583
- Type: Di,
2583
+ seq: jn,
2584
+ str: $n
2585
+ }, ts = Ft("safeLoad", "load"), ns = Ft("safeLoadAll", "loadAll"), rs = Ft("safeDump", "dump"), as = {
2586
+ Type: Ri,
2584
2587
  Schema: Gi,
2585
2588
  FAILSAFE_SCHEMA: Hi,
2586
2589
  JSON_SCHEMA: zi,
2587
2590
  CORE_SCHEMA: Ji,
2588
- DEFAULT_SCHEMA: Yi,
2589
- load: Wi,
2591
+ DEFAULT_SCHEMA: Wi,
2592
+ load: Yi,
2590
2593
  loadAll: Zi,
2591
2594
  dump: Qi,
2592
2595
  YAMLException: Xi,
@@ -2605,9 +2608,12 @@ const os = {
2605
2608
  key: 1,
2606
2609
  class: "config-card-display-json"
2607
2610
  }, us = {
2611
+ key: 0,
2612
+ class: "config-card-display-json-endpoint"
2613
+ }, cs = {
2608
2614
  key: 2,
2609
2615
  class: "config-card-display-yaml"
2610
- }, cs = /* @__PURE__ */ oe({
2616
+ }, ds = /* @__PURE__ */ oe({
2611
2617
  __name: "ConfigCardDisplay",
2612
2618
  props: {
2613
2619
  propertyCollections: {
@@ -2630,44 +2636,57 @@ const os = {
2630
2636
  type: Object,
2631
2637
  required: !1,
2632
2638
  default: () => null
2639
+ },
2640
+ fetcherUrl: {
2641
+ type: String,
2642
+ required: !0
2633
2643
  }
2634
2644
  },
2635
2645
  setup(e) {
2636
- const n = e, t = ut(), { i18n: { t: r } } = de.useI18n(), a = (s) => !!(s.tooltip || t[`${s.key}-label-tooltip`]), i = E(""), o = E("");
2637
- return xe(() => n.format, (s) => {
2638
- if (s !== "structured") {
2639
- const l = JSON.parse(JSON.stringify(n.record));
2640
- delete l.created_at, delete l.updated_at, s === "json" ? i.value = JSON.stringify(l, null, 2) : s === "yaml" && (o.value = as.dump(l));
2646
+ mn((l) => ({
2647
+ "7b486894": `${s.value}ch`
2648
+ }));
2649
+ const n = e, t = ut(), { i18n: { t: r } } = de.useI18n(), a = (l) => !!(l.tooltip || t[`${l.key}-label-tooltip`]), i = E(""), o = E(""), s = A(() => {
2650
+ var l;
2651
+ if (!n.fetcherUrl)
2652
+ return 0;
2653
+ const u = (l = n.fetcherUrl) == null ? void 0 : l.split("/");
2654
+ return u.length < 2 ? 0 : 41 + u[u.length - 2].length;
2655
+ });
2656
+ return Ae(() => n.format, (l) => {
2657
+ if (l !== "structured") {
2658
+ const u = JSON.parse(JSON.stringify(n.record));
2659
+ delete u.created_at, delete u.updated_at, l === "json" ? i.value = JSON.stringify(u, null, 2) : l === "yaml" && (o.value = as.dump(u));
2641
2660
  }
2642
- }, { immediate: !0 }), (s, l) => {
2643
- const c = P("KCodeBlock");
2661
+ }, { immediate: !0 }), (l, u) => {
2662
+ const p = U("KBadge"), c = U("KCodeBlock");
2644
2663
  return f(), T(Ce, null, [
2645
2664
  e.format === "structured" ? (f(), T("div", os, [
2646
- (f(!0), T(Ce, null, ve(e.propListTypes, (d) => (f(), T("div", {
2647
- key: `config-card-details-${d}-props`,
2648
- class: Ne(`config-card-details-${d}-props`),
2649
- "data-testid": `config-card-details-${d}-props`
2665
+ (f(!0), T(Ce, null, ve(e.propListTypes, (g) => (f(), T("div", {
2666
+ key: `config-card-details-${g}-props`,
2667
+ class: Oe(`config-card-details-${g}-props`),
2668
+ "data-testid": `config-card-details-${g}-props`
2650
2669
  }, [
2651
- d !== "basic" ? (f(), T("div", ss, F(d === "advanced" ? m(r)("baseConfigCard.sections.advanced") : m(r)("baseConfigCard.sections.plugin")), 1)) : J("", !0),
2652
- (f(!0), T(Ce, null, ve(e.propertyCollections[d], (u) => (f(), R(Tt, {
2653
- key: u.key,
2654
- item: u
2655
- }, Me({
2656
- label: v(() => [
2657
- Q(s.$slots, `${u.key}-label`, { row: u }, void 0, !0)
2670
+ g !== "basic" ? (f(), T("div", ss, K(g === "advanced" ? m(r)("baseConfigCard.sections.advanced") : m(r)("baseConfigCard.sections.plugin")), 1)) : J("", !0),
2671
+ (f(!0), T(Ce, null, ve(e.propertyCollections[g], (d) => (f(), V(Tt, {
2672
+ key: d.key,
2673
+ item: d
2674
+ }, je({
2675
+ label: h(() => [
2676
+ X(l.$slots, `${d.key}-label`, { row: d }, void 0, !0)
2658
2677
  ]),
2659
- [u.key]: v(({ rowValue: y }) => [
2660
- Q(s.$slots, u.key, {
2661
- row: u,
2662
- rowValue: y
2678
+ [d.key]: h(({ rowValue: _ }) => [
2679
+ X(l.$slots, d.key, {
2680
+ row: d,
2681
+ rowValue: _
2663
2682
  }, void 0, !0)
2664
2683
  ]),
2665
2684
  _: 2
2666
2685
  }, [
2667
- a(u) ? {
2686
+ a(d) ? {
2668
2687
  name: "label-tooltip",
2669
- fn: v(() => [
2670
- Q(s.$slots, `${u.key}-label-tooltip`, { row: u }, void 0, !0)
2688
+ fn: h(() => [
2689
+ X(l.$slots, `${d.key}-label-tooltip`, { row: d }, void 0, !0)
2671
2690
  ]),
2672
2691
  key: "0"
2673
2692
  } : void 0
@@ -2675,14 +2694,30 @@ const os = {
2675
2694
  ], 10, is))), 128))
2676
2695
  ])) : J("", !0),
2677
2696
  e.format === "json" ? (f(), T("div", ls, [
2697
+ n.fetcherUrl ? (f(), T("div", us, [
2698
+ N(p, { appearance: "get" }, {
2699
+ default: h(() => [
2700
+ Q(K(m(r)("baseConfigCard.endpoints.get")), 1)
2701
+ ]),
2702
+ _: 1
2703
+ }),
2704
+ N(c, {
2705
+ id: "config-card-endpoint-codeblock",
2706
+ code: n.fetcherUrl,
2707
+ "is-single-line": "",
2708
+ language: "json",
2709
+ theme: "dark"
2710
+ }, null, 8, ["code"])
2711
+ ])) : J("", !0),
2678
2712
  N(c, {
2679
2713
  id: "config-card-codeblock",
2714
+ class: Oe({ "config-card-display-json-content": n.fetcherUrl }),
2680
2715
  code: i.value,
2681
2716
  language: "json",
2682
2717
  theme: "dark"
2683
- }, null, 8, ["code"])
2718
+ }, null, 8, ["class", "code"])
2684
2719
  ])) : J("", !0),
2685
- e.format === "yaml" ? (f(), T("div", us, [
2720
+ e.format === "yaml" ? (f(), T("div", cs, [
2686
2721
  N(c, {
2687
2722
  id: "config-card-codeblock",
2688
2723
  code: o.value,
@@ -2693,18 +2728,18 @@ const os = {
2693
2728
  ], 64);
2694
2729
  };
2695
2730
  }
2696
- }), ds = /* @__PURE__ */ we(cs, [["__scopeId", "data-v-c914c7e4"]]), dn = "24px", ps = (e, n) => {
2731
+ }), ps = /* @__PURE__ */ we(ds, [["__scopeId", "data-v-27f85338"]]), dn = "24px", fs = (e, n) => {
2697
2732
  const t = e.__vccOpts || e;
2698
2733
  for (const [r, a] of n)
2699
2734
  t[r] = a;
2700
2735
  return t;
2701
- }, fs = (e) => (gn("data-v-a53b73fd"), e = e(), yn(), e), ms = ["aria-hidden"], gs = {
2736
+ }, ms = (e) => (yn("data-v-a53b73fd"), e = e(), hn(), e), gs = ["aria-hidden"], ys = {
2702
2737
  key: 0,
2703
2738
  "data-testid": "kui-icon-svg-title"
2704
- }, ys = /* @__PURE__ */ fs(() => /* @__PURE__ */ V("path", {
2739
+ }, hs = /* @__PURE__ */ ms(() => /* @__PURE__ */ D("path", {
2705
2740
  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",
2706
2741
  fill: "currentColor"
2707
- }, null, -1)), hs = /* @__PURE__ */ oe({
2742
+ }, null, -1)), vs = /* @__PURE__ */ oe({
2708
2743
  __name: "BookIcon",
2709
2744
  props: {
2710
2745
  /** The accessibility text provided to screen readers */
@@ -2756,7 +2791,7 @@ const os = {
2756
2791
  }
2757
2792
  },
2758
2793
  setup(e) {
2759
- const n = e, t = S(() => {
2794
+ const n = e, t = A(() => {
2760
2795
  if (typeof n.size == "number" && n.size > 0)
2761
2796
  return `${n.size}px`;
2762
2797
  if (typeof n.size == "string") {
@@ -2765,7 +2800,7 @@ const os = {
2765
2800
  return `${i}px`;
2766
2801
  }
2767
2802
  return dn;
2768
- }), r = S(() => ({
2803
+ }), r = A(() => ({
2769
2804
  boxSizing: "border-box",
2770
2805
  color: n.color,
2771
2806
  display: n.display,
@@ -2773,13 +2808,13 @@ const os = {
2773
2808
  lineHeight: "0",
2774
2809
  width: t.value
2775
2810
  }));
2776
- return (a, i) => (f(), R(Re(e.as), {
2811
+ return (a, i) => (f(), V(Ve(e.as), {
2777
2812
  "aria-hidden": e.decorative ? "true" : void 0,
2778
2813
  class: "kui-icon book-icon",
2779
2814
  "data-testid": "kui-icon-wrapper-book-icon",
2780
- style: mn(r.value)
2815
+ style: gn(r.value)
2781
2816
  }, {
2782
- default: v(() => [
2817
+ default: h(() => [
2783
2818
  (f(), T("svg", {
2784
2819
  "aria-hidden": e.decorative ? "true" : void 0,
2785
2820
  "data-testid": "kui-icon-svg-book-icon",
@@ -2790,20 +2825,20 @@ const os = {
2790
2825
  width: "100%",
2791
2826
  xmlns: "http://www.w3.org/2000/svg"
2792
2827
  }, [
2793
- e.title ? (f(), T("title", gs, F(e.title), 1)) : J("", !0),
2794
- ys
2795
- ], 8, ms))
2828
+ e.title ? (f(), T("title", ys, K(e.title), 1)) : J("", !0),
2829
+ hs
2830
+ ], 8, gs))
2796
2831
  ]),
2797
2832
  _: 1
2798
2833
  }, 8, ["aria-hidden", "style"]));
2799
2834
  }
2800
- }), vs = /* @__PURE__ */ ps(hs, [["__scopeId", "data-v-a53b73fd"]]), bs = { "data-testid": "config-card-title" }, Cs = { class: "config-card-actions" }, ks = ["href"], ws = {
2835
+ }), bs = /* @__PURE__ */ fs(vs, [["__scopeId", "data-v-a53b73fd"]]), Cs = { "data-testid": "config-card-title" }, ks = { class: "config-card-actions" }, ws = ["href"], _s = {
2801
2836
  key: 2,
2802
2837
  class: "config-card-details-section"
2803
- }, _s = {
2838
+ }, Is = {
2804
2839
  key: 3,
2805
2840
  class: "config-card-details-section"
2806
- }, Is = ["data-testid"], As = {
2841
+ }, Ss = ["data-testid"], As = {
2807
2842
  key: 0,
2808
2843
  class: "config-card-prop-section-title"
2809
2844
  }, xs = /* @__PURE__ */ oe({
@@ -2881,9 +2916,9 @@ const os = {
2881
2916
  emits: ["loading", "fetch:success", "fetch:error", "copy:success", "copy:error"],
2882
2917
  setup(e, { emit: n }) {
2883
2918
  var t;
2884
- const r = n, a = e, i = ut(), { i18n: { t: o } } = de.useI18n(), { getMessageFromError: s } = de.useErrors(), { convertKeyToTitle: l } = de.useStringHelpers(), { axiosInstance: c } = de.useAxios({
2919
+ const r = n, a = e, i = ut(), { i18n: { t: o } } = de.useI18n(), { getMessageFromError: s } = de.useErrors(), { convertKeyToTitle: l } = de.useStringHelpers(), { axiosInstance: u } = de.useAxios({
2885
2920
  headers: (t = a.config) == null ? void 0 : t.requestHeaders
2886
- }), d = [
2921
+ }), p = [
2887
2922
  {
2888
2923
  label: o("baseConfigCard.general.structuredFormat"),
2889
2924
  value: "structured",
@@ -2897,9 +2932,9 @@ const os = {
2897
2932
  label: "YAML",
2898
2933
  value: "yaml"
2899
2934
  }
2900
- ], u = E("structured"), y = (k) => {
2901
- u.value = k == null ? void 0 : k.value;
2902
- }, p = {
2935
+ ], c = E("structured"), g = (k) => {
2936
+ c.value = k == null ? void 0 : k.value;
2937
+ }, d = {
2903
2938
  id: {
2904
2939
  type: re.ID,
2905
2940
  label: o("baseConfigCard.commonFields.id_label"),
@@ -2933,21 +2968,21 @@ const os = {
2933
2968
  // the last property displayed
2934
2969
  section: ke.Basic
2935
2970
  }
2936
- }, _ = E(!1), h = E(!1), A = E(""), g = E(), b = S(() => {
2971
+ }, _ = E(!1), v = E(!1), S = E(""), y = E(), b = A(() => {
2937
2972
  var k, G, B;
2938
- if (!g.value)
2973
+ if (!y.value)
2939
2974
  return [];
2940
- const w = [], M = Object.keys(g.value).length;
2941
- for (const j in g.value) {
2942
- const L = (G = (k = a.configSchema) == null ? void 0 : k[j]) == null ? void 0 : G.order, W = (B = p[j]) == null ? void 0 : B.order;
2943
- let ee = M;
2944
- (W || W === 0) && (ee = W === -1 ? M + 1 : W), L && (ee = L === -1 ? M + 1 : L), w.push([j, ee]);
2975
+ const w = [], j = Object.keys(y.value).length;
2976
+ for (const M in y.value) {
2977
+ const L = (G = (k = a.configSchema) == null ? void 0 : k[M]) == null ? void 0 : G.order, Y = (B = d[M]) == null ? void 0 : B.order;
2978
+ let ee = j;
2979
+ (Y || Y === 0) && (ee = Y === -1 ? j + 1 : Y), L && (ee = L === -1 ? j + 1 : L), w.push([M, ee]);
2945
2980
  }
2946
- return w.sort(function(j, L) {
2947
- return j[1] - L[1];
2948
- }), w.map((j) => {
2949
- var L, W;
2950
- const ee = j[0], te = (L = g.value) == null ? void 0 : L[ee], ne = ((W = a.configSchema) == null ? void 0 : W[ee]) || {}, ue = p[ee];
2981
+ return w.sort(function(M, L) {
2982
+ return M[1] - L[1];
2983
+ }), w.map((M) => {
2984
+ var L, Y;
2985
+ const ee = M[0], te = (L = y.value) == null ? void 0 : L[ee], ne = ((Y = a.configSchema) == null ? void 0 : Y[ee]) || {}, ue = d[ee];
2951
2986
  return {
2952
2987
  key: ee,
2953
2988
  value: te,
@@ -2957,121 +2992,121 @@ const os = {
2957
2992
  tooltip: ne.tooltip ?? ((ue == null ? void 0 : ue.tooltip) || void 0),
2958
2993
  section: ne.section ?? ((ue == null ? void 0 : ue.section) || ke.Advanced)
2959
2994
  };
2960
- }).filter((j) => !j.hidden && j.key !== a.pluginConfigKey);
2961
- }), O = S(() => {
2995
+ }).filter((M) => !M.hidden && M.key !== a.pluginConfigKey);
2996
+ }), O = A(() => {
2962
2997
  var k, G;
2963
- if (!g.value || !a.pluginConfigKey)
2998
+ if (!y.value || !a.pluginConfigKey)
2964
2999
  return [];
2965
- const B = g.value[a.pluginConfigKey] || {}, w = Object.keys(B).length, M = [];
2966
- for (const j in B) {
2967
- const L = (G = (k = a.pluginConfigSchema) == null ? void 0 : k[j]) == null ? void 0 : G.order, W = B[j];
2968
- let ee = W != null && W !== "" ? w - 1 : w;
2969
- L && (ee = L === -1 ? w + 1 : L), M.push([j, ee]);
3000
+ const B = y.value[a.pluginConfigKey] || {}, w = Object.keys(B).length, j = [];
3001
+ for (const M in B) {
3002
+ const L = (G = (k = a.pluginConfigSchema) == null ? void 0 : k[M]) == null ? void 0 : G.order, Y = B[M];
3003
+ let ee = Y != null && Y !== "" ? w - 1 : w;
3004
+ L && (ee = L === -1 ? w + 1 : L), j.push([M, ee]);
2970
3005
  }
2971
- return M.sort(function(j, L) {
2972
- return j[1] - L[1];
2973
- }), M.map((j) => {
3006
+ return j.sort(function(M, L) {
3007
+ return M[1] - L[1];
3008
+ }), j.map((M) => {
2974
3009
  var L;
2975
- const W = j[0], ee = B[W], te = ((L = a.pluginConfigSchema) == null ? void 0 : L[W]) || {};
3010
+ const Y = M[0], ee = B[Y], te = ((L = a.pluginConfigSchema) == null ? void 0 : L[Y]) || {};
2976
3011
  return {
2977
- key: W,
3012
+ key: Y,
2978
3013
  value: ee,
2979
3014
  hidden: te.hidden || !1,
2980
3015
  type: te.type ?? re.Text,
2981
- label: te.label ?? l(W),
3016
+ label: te.label ?? l(Y),
2982
3017
  tooltip: te.tooltip ?? void 0,
2983
3018
  section: ke.Plugin
2984
3019
  };
2985
- }).filter((j) => !j.hidden);
2986
- }), I = S(() => {
3020
+ }).filter((M) => !M.hidden);
3021
+ }), I = A(() => {
2987
3022
  var k, G, B, w;
2988
3023
  return {
2989
- basic: (k = b.value) == null ? void 0 : k.filter((M) => M.section === ke.Basic),
2990
- advanced: (G = b.value) == null ? void 0 : G.filter((M) => M.section === ke.Advanced),
2991
- plugin: (w = O.value) == null ? void 0 : w.concat((B = b.value) == null ? void 0 : B.filter((M) => M.section === ke.Plugin))
3024
+ basic: (k = b.value) == null ? void 0 : k.filter((j) => j.section === ke.Basic),
3025
+ advanced: (G = b.value) == null ? void 0 : G.filter((j) => j.section === ke.Advanced),
3026
+ plugin: (w = O.value) == null ? void 0 : w.concat((B = b.value) == null ? void 0 : B.filter((j) => j.section === ke.Plugin))
2992
3027
  };
2993
- }), K = S(() => {
3028
+ }), F = A(() => {
2994
3029
  const k = [];
2995
3030
  return I.value.basic.length && k.push("basic"), I.value.advanced.length && k.push("advanced"), I.value.plugin.length && k.push("plugin"), k;
2996
- }), H = (k) => !!(k.tooltip || i[`${k.key}-label-tooltip`]), le = S(() => {
3031
+ }), H = (k) => !!(k.tooltip || i[`${k.key}-label-tooltip`]), ie = A(() => {
2997
3032
  var k, G;
2998
3033
  let B = `${a.config.apiBaseUrl}${a.fetchUrl}`;
2999
3034
  return a.config.app === "konnect" ? B = B.replace(/{controlPlaneId}/gi, ((k = a.config) == null ? void 0 : k.controlPlaneId) || "") : a.config.app === "kongManager" && (B = B.replace(/\/{workspace}/gi, (G = a.config) != null && G.workspace ? `/${a.config.workspace}` : "")), B = B.replace(/{id}/gi, a.config.entityId), B;
3000
- }), D = (k) => {
3001
- g.value && k(JSON.stringify(g.value)) ? r("copy:success", g.value) : r("copy:error");
3035
+ }), R = (k) => {
3036
+ y.value && k(JSON.stringify(y.value)) ? r("copy:success", y.value) : r("copy:error");
3002
3037
  };
3003
- return xe(_, (k) => {
3038
+ return Ae(_, (k) => {
3004
3039
  r("loading", k);
3005
3040
  }, { immediate: !0 }), ct(async () => {
3006
- h.value = !1, _.value = !0;
3041
+ v.value = !1, _.value = !0;
3007
3042
  try {
3008
- const { data: k } = await c.get(le.value);
3043
+ const { data: k } = await u.get(ie.value);
3009
3044
  if (a.dataKey)
3010
3045
  if (typeof k[a.dataKey] < "u")
3011
- g.value = { ...k[a.dataKey] };
3046
+ y.value = { ...k[a.dataKey] };
3012
3047
  else
3013
3048
  throw new Error(o("errors.dataKeyUndefined", { dataKey: a.dataKey }));
3014
3049
  else
3015
- g.value = { ...k };
3050
+ y.value = { ...k };
3016
3051
  Object.keys(a.configSchema).filter((G) => a.configSchema[G].forceShow).forEach((G) => {
3017
- g.value && typeof g.value[G] > "u" && (g.value[G] = null);
3052
+ y.value && typeof y.value[G] > "u" && (y.value[G] = null);
3018
3053
  }), r("fetch:success", k);
3019
3054
  } catch (k) {
3020
3055
  const G = s(k);
3021
- A.value = G.startsWith("code") ? o("baseConfigCard.errors.load") : G, h.value = !0, r("fetch:error", k);
3056
+ S.value = G.startsWith("code") ? o("baseConfigCard.errors.load") : G, v.value = !0, r("fetch:error", k);
3022
3057
  } finally {
3023
3058
  _.value = !1;
3024
3059
  }
3025
3060
  }), (k, G) => {
3026
- const B = P("KLabel"), w = P("KSelect"), M = P("KButton"), j = P("KClipboardProvider"), L = P("KSkeleton"), W = P("KEmptyState"), ee = P("KCard");
3027
- return f(), R(ee, { class: "kong-ui-entity-base-config-card" }, Me({
3028
- actions: v(() => [
3029
- V("div", Cs, [
3030
- Q(k.$slots, "actions", {}, void 0, !0),
3031
- e.config.jsonYamlEnabled ? (f(), R(B, {
3061
+ const B = U("KLabel"), w = U("KSelect"), j = U("KButton"), M = U("KClipboardProvider"), L = U("KSkeleton"), Y = U("KEmptyState"), ee = U("KCard");
3062
+ return f(), V(ee, { class: "kong-ui-entity-base-config-card" }, je({
3063
+ actions: h(() => [
3064
+ D("div", ks, [
3065
+ X(k.$slots, "actions", {}, void 0, !0),
3066
+ e.config.jsonYamlEnabled ? (f(), V(B, {
3032
3067
  key: 0,
3033
3068
  class: "config-format-select-label",
3034
3069
  "data-testid": "config-format-select-label"
3035
3070
  }, {
3036
- default: v(() => [
3037
- X(F(e.label), 1)
3071
+ default: h(() => [
3072
+ Q(K(e.label), 1)
3038
3073
  ]),
3039
3074
  _: 1
3040
3075
  })) : J("", !0),
3041
- e.config.jsonYamlEnabled ? (f(), R(w, {
3076
+ e.config.jsonYamlEnabled ? (f(), V(w, {
3042
3077
  key: 1,
3043
3078
  appearance: "select",
3044
3079
  "data-testid": "select-config-format",
3045
- items: d,
3046
- onChange: y
3080
+ items: p,
3081
+ onChange: g
3047
3082
  })) : J("", !0),
3048
- a.config.jsonYamlEnabled && e.configCardDoc ? (f(), R(M, {
3083
+ a.config.jsonYamlEnabled && e.configCardDoc ? (f(), V(j, {
3049
3084
  key: 2,
3050
3085
  appearance: "tertiary",
3051
3086
  class: "book-icon",
3052
3087
  "data-testid": "book-icon"
3053
3088
  }, {
3054
- default: v(() => [
3055
- V("a", {
3089
+ default: h(() => [
3090
+ D("a", {
3056
3091
  href: e.configCardDoc,
3057
3092
  rel: "noopener",
3058
3093
  target: "_blank"
3059
3094
  }, [
3060
- N(m(vs), { size: m(Aa) }, null, 8, ["size"])
3061
- ], 8, ks)
3095
+ N(m(bs), { size: m(Sa) }, null, 8, ["size"])
3096
+ ], 8, ws)
3062
3097
  ]),
3063
3098
  _: 1
3064
3099
  })) : J("", !0),
3065
- e.config.jsonYamlEnabled ? J("", !0) : (f(), R(j, { key: 3 }, {
3066
- default: v(({ copyToClipboard: te }) => [
3067
- !_.value && !h.value ? (f(), R(M, {
3100
+ e.config.jsonYamlEnabled ? J("", !0) : (f(), V(M, { key: 3 }, {
3101
+ default: h(({ copyToClipboard: te }) => [
3102
+ !_.value && !v.value ? (f(), V(j, {
3068
3103
  key: 0,
3069
3104
  appearance: "tertiary",
3070
3105
  "data-testid": "json-copy-button",
3071
- onClick: (ne) => D(te)
3106
+ onClick: (ne) => R(te)
3072
3107
  }, {
3073
- default: v(() => [
3074
- X(F(m(o)("baseConfigCard.actions.copy")), 1)
3108
+ default: h(() => [
3109
+ Q(K(m(o)("baseConfigCard.actions.copy")), 1)
3075
3110
  ]),
3076
3111
  _: 2
3077
3112
  }, 1032, ["onClick"])) : J("", !0)
@@ -3080,55 +3115,56 @@ const os = {
3080
3115
  }))
3081
3116
  ])
3082
3117
  ]),
3083
- default: v(() => [
3084
- _.value ? (f(), R(L, {
3118
+ default: h(() => [
3119
+ _.value ? (f(), V(L, {
3085
3120
  key: 0,
3086
3121
  "data-testid": "config-card-loader",
3087
3122
  "table-columns": 2,
3088
3123
  type: "table"
3089
- })) : h.value ? (f(), R(W, {
3124
+ })) : v.value ? (f(), V(Y, {
3090
3125
  key: 1,
3091
3126
  "data-testid": "config-card-fetch-error",
3092
3127
  "is-error": ""
3093
3128
  }, {
3094
- message: v(() => [
3095
- V("h3", null, F(A.value), 1)
3129
+ message: h(() => [
3130
+ D("h3", null, K(S.value), 1)
3096
3131
  ]),
3097
3132
  _: 1
3098
3133
  })) : J("", !0),
3099
- e.config.jsonYamlEnabled ? (f(), T("div", ws, [
3100
- N(ds, {
3101
- format: u.value,
3102
- "prop-list-types": K.value,
3134
+ e.config.jsonYamlEnabled ? (f(), T("div", _s, [
3135
+ N(ps, {
3136
+ "fetcher-url": ie.value,
3137
+ format: c.value,
3138
+ "prop-list-types": F.value,
3103
3139
  "property-collections": I.value,
3104
- record: g.value
3105
- }, Me({ _: 2 }, [
3140
+ record: y.value
3141
+ }, je({ _: 2 }, [
3106
3142
  ve(Object.keys(k.$slots), (te) => ({
3107
3143
  name: te,
3108
- fn: v(({ row: ne, rowValue: ue }) => [
3109
- Q(k.$slots, te, {
3144
+ fn: h(({ row: ne, rowValue: ue }) => [
3145
+ X(k.$slots, te, {
3110
3146
  row: ne,
3111
3147
  rowValue: ue
3112
3148
  }, void 0, !0)
3113
3149
  ])
3114
3150
  }))
3115
- ]), 1032, ["format", "prop-list-types", "property-collections", "record"])
3116
- ])) : (f(), T("div", _s, [
3117
- (f(!0), T(Ce, null, ve(K.value, (te) => (f(), T("div", {
3151
+ ]), 1032, ["fetcher-url", "format", "prop-list-types", "property-collections", "record"])
3152
+ ])) : (f(), T("div", Is, [
3153
+ (f(!0), T(Ce, null, ve(F.value, (te) => (f(), T("div", {
3118
3154
  key: `config-card-details-${te}-props`,
3119
- class: Ne(`config-card-details-${te}-props`),
3155
+ class: Oe(`config-card-details-${te}-props`),
3120
3156
  "data-testid": `config-card-details-${te}-props`
3121
3157
  }, [
3122
- te !== "basic" ? (f(), T("div", As, F(te === "advanced" ? m(o)("baseConfigCard.sections.advanced") : m(o)("baseConfigCard.sections.plugin")), 1)) : J("", !0),
3123
- (f(!0), T(Ce, null, ve(I.value[te], (ne) => (f(), R(Tt, {
3158
+ te !== "basic" ? (f(), T("div", As, K(te === "advanced" ? m(o)("baseConfigCard.sections.advanced") : m(o)("baseConfigCard.sections.plugin")), 1)) : J("", !0),
3159
+ (f(!0), T(Ce, null, ve(I.value[te], (ne) => (f(), V(Tt, {
3124
3160
  key: ne.key,
3125
3161
  item: ne
3126
- }, Me({
3127
- label: v(() => [
3128
- Q(k.$slots, `${ne.key}-label`, { row: ne }, void 0, !0)
3162
+ }, je({
3163
+ label: h(() => [
3164
+ X(k.$slots, `${ne.key}-label`, { row: ne }, void 0, !0)
3129
3165
  ]),
3130
- [ne.key]: v(({ rowValue: ue }) => [
3131
- Q(k.$slots, ne.key, {
3166
+ [ne.key]: h(({ rowValue: ue }) => [
3167
+ X(k.$slots, ne.key, {
3132
3168
  row: ne,
3133
3169
  rowValue: ue
3134
3170
  }, void 0, !0)
@@ -3137,23 +3173,23 @@ const os = {
3137
3173
  }, [
3138
3174
  H(ne) ? {
3139
3175
  name: "label-tooltip",
3140
- fn: v(() => [
3141
- Q(k.$slots, `${ne.key}-label-tooltip`, { row: ne }, void 0, !0)
3176
+ fn: h(() => [
3177
+ X(k.$slots, `${ne.key}-label-tooltip`, { row: ne }, void 0, !0)
3142
3178
  ]),
3143
3179
  key: "0"
3144
3180
  } : void 0
3145
3181
  ]), 1032, ["item"]))), 128))
3146
- ], 10, Is))), 128))
3182
+ ], 10, Ss))), 128))
3147
3183
  ]))
3148
3184
  ]),
3149
3185
  _: 2
3150
3186
  }, [
3151
3187
  e.hideTitle ? void 0 : {
3152
3188
  name: "title",
3153
- fn: v(() => [
3154
- V("div", bs, [
3155
- Q(k.$slots, "title", {}, () => [
3156
- X(F(m(o)("baseConfigCard.title")), 1)
3189
+ fn: h(() => [
3190
+ D("div", Cs, [
3191
+ X(k.$slots, "title", {}, () => [
3192
+ Q(K(m(o)("baseConfigCard.title")), 1)
3157
3193
  ], !0)
3158
3194
  ])
3159
3195
  ]),
@@ -3162,10 +3198,10 @@ const os = {
3162
3198
  ]), 1024);
3163
3199
  };
3164
3200
  }
3165
- }), Ss = /* @__PURE__ */ we(xs, [["__scopeId", "data-v-bea4df63"]]), Ts = {
3201
+ }), Ts = /* @__PURE__ */ we(xs, [["__scopeId", "data-v-4f47d6ad"]]), $s = {
3166
3202
  class: "form-actions",
3167
3203
  "data-testid": "form-actions"
3168
- }, $s = /* @__PURE__ */ oe({
3204
+ }, js = /* @__PURE__ */ oe({
3169
3205
  __name: "EntityBaseForm",
3170
3206
  props: {
3171
3207
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -3217,85 +3253,85 @@ const os = {
3217
3253
  var t;
3218
3254
  const r = n, a = e, i = It(), { i18n: { t: o } } = de.useI18n(), { getMessageFromError: s } = de.useErrors(), { axiosInstance: l } = de.useAxios({
3219
3255
  headers: (t = a.config) == null ? void 0 : t.requestHeaders
3220
- }), c = E(!1), d = E(!1), u = E(""), y = S(() => a.canSubmit === !1 || a.isReadonly), p = S(() => {
3221
- var g, b;
3256
+ }), u = E(!1), p = E(!1), c = E(""), g = A(() => a.canSubmit === !1 || a.isReadonly), d = A(() => {
3257
+ var y, b;
3222
3258
  if (!a.editId)
3223
3259
  return "";
3224
3260
  let O = `${a.config.apiBaseUrl}${a.fetchUrl}`;
3225
- return a.config.app === "konnect" ? O = O.replace(/{controlPlaneId}/gi, ((g = a.config) == null ? void 0 : g.controlPlaneId) || "") : a.config.app === "kongManager" && (O = O.replace(/\/{workspace}/gi, (b = a.config) != null && b.workspace ? `/${a.config.workspace}` : "")), O = O.replace(/{id}/gi, a.editId), O;
3261
+ return a.config.app === "konnect" ? O = O.replace(/{controlPlaneId}/gi, ((y = a.config) == null ? void 0 : y.controlPlaneId) || "") : a.config.app === "kongManager" && (O = O.replace(/\/{workspace}/gi, (b = a.config) != null && b.workspace ? `/${a.config.workspace}` : "")), O = O.replace(/{id}/gi, a.editId), O;
3226
3262
  }), _ = () => {
3227
- a.config.cancelRoute ? i.push(a.config.cancelRoute) : h();
3228
- }, h = () => {
3263
+ a.config.cancelRoute ? i.push(a.config.cancelRoute) : v();
3264
+ }, v = () => {
3229
3265
  r("cancel");
3230
- }, A = () => {
3231
- y.value || r("submit");
3266
+ }, S = () => {
3267
+ g.value || r("submit");
3232
3268
  };
3233
- return xe(() => c.value, (g) => {
3234
- r("loading", g);
3269
+ return Ae(() => u.value, (y) => {
3270
+ r("loading", y);
3235
3271
  }, { immediate: !0 }), ct(async () => {
3236
3272
  if (a.editId)
3237
3273
  try {
3238
- d.value = !1, c.value = !0;
3239
- const { data: g } = await l.get(p.value);
3240
- r("fetch:success", g);
3241
- } catch (g) {
3242
- const b = s(g);
3243
- u.value = b.startsWith("code") ? o("baseForm.errors.edit") : b, d.value = !0, r("fetch:error", g);
3274
+ p.value = !1, u.value = !0;
3275
+ const { data: y } = await l.get(d.value);
3276
+ r("fetch:success", y);
3277
+ } catch (y) {
3278
+ const b = s(y);
3279
+ c.value = b.startsWith("code") ? o("baseForm.errors.edit") : b, p.value = !0, r("fetch:error", y);
3244
3280
  } finally {
3245
- c.value = !1;
3281
+ u.value = !1;
3246
3282
  }
3247
- }), (g, b) => {
3248
- const O = P("KSkeleton"), I = P("KEmptyState"), K = P("KAlert"), H = P("KButton"), le = P("KCard");
3249
- return f(), R(le, { class: "kong-ui-entity-base-form" }, {
3250
- default: v(() => [
3251
- c.value ? (f(), R(O, {
3283
+ }), (y, b) => {
3284
+ const O = U("KSkeleton"), I = U("KEmptyState"), F = U("KAlert"), H = U("KButton"), ie = U("KCard");
3285
+ return f(), V(ie, { class: "kong-ui-entity-base-form" }, {
3286
+ default: h(() => [
3287
+ u.value ? (f(), V(O, {
3252
3288
  key: 0,
3253
3289
  type: "form"
3254
- })) : d.value ? (f(), R(I, {
3290
+ })) : p.value ? (f(), V(I, {
3255
3291
  key: 1,
3256
3292
  "cta-text": m(o)("baseForm.actions.back"),
3257
3293
  "data-testid": "form-fetch-error",
3258
3294
  "handle-click": _,
3259
3295
  "is-error": !0
3260
3296
  }, {
3261
- message: v(() => [
3262
- V("h3", null, F(u.value), 1)
3297
+ message: h(() => [
3298
+ D("h3", null, K(c.value), 1)
3263
3299
  ]),
3264
3300
  _: 1
3265
3301
  }, 8, ["cta-text"])) : (f(), T("form", {
3266
3302
  key: 2,
3267
3303
  "data-testid": "form-content",
3268
- onReset: rt(h, ["prevent"]),
3269
- onSubmit: rt(A, ["prevent"])
3304
+ onReset: rt(v, ["prevent"]),
3305
+ onSubmit: rt(S, ["prevent"])
3270
3306
  }, [
3271
- Q(g.$slots, "default", {}, void 0, !0),
3272
- e.errorMessage ? (f(), R(K, {
3307
+ X(y.$slots, "default", {}, void 0, !0),
3308
+ e.errorMessage ? (f(), V(F, {
3273
3309
  key: 0,
3274
3310
  "alert-message": e.errorMessage,
3275
3311
  appearance: "danger",
3276
3312
  "data-testid": "form-error"
3277
3313
  }, null, 8, ["alert-message"])) : J("", !0),
3278
- V("div", Ts, [
3279
- Q(g.$slots, "form-actions", {}, () => [
3314
+ D("div", $s, [
3315
+ X(y.$slots, "form-actions", {}, () => [
3280
3316
  N(H, {
3281
3317
  appearance: "secondary",
3282
3318
  "data-testid": "form-cancel",
3283
3319
  disabled: e.isReadonly,
3284
3320
  type: "reset"
3285
3321
  }, {
3286
- default: v(() => [
3287
- X(F(m(o)("baseForm.actions.cancel")), 1)
3322
+ default: h(() => [
3323
+ Q(K(m(o)("baseForm.actions.cancel")), 1)
3288
3324
  ]),
3289
3325
  _: 1
3290
3326
  }, 8, ["disabled"]),
3291
3327
  N(H, {
3292
3328
  appearance: "primary",
3293
3329
  "data-testid": "form-submit",
3294
- disabled: y.value,
3330
+ disabled: g.value,
3295
3331
  type: "submit"
3296
3332
  }, {
3297
- default: v(() => [
3298
- X(F(m(o)("baseForm.actions.save")), 1)
3333
+ default: h(() => [
3334
+ Q(K(m(o)("baseForm.actions.save")), 1)
3299
3335
  ]),
3300
3336
  _: 1
3301
3337
  }, 8, ["disabled"])
@@ -3307,10 +3343,10 @@ const os = {
3307
3343
  });
3308
3344
  };
3309
3345
  }
3310
- }), Ms = /* @__PURE__ */ we($s, [["__scopeId", "data-v-448d8512"]]), js = {
3346
+ }), Ms = /* @__PURE__ */ we(js, [["__scopeId", "data-v-448d8512"]]), Es = {
3311
3347
  key: 0,
3312
3348
  "data-testid": "first-col"
3313
- }, Es = /* @__PURE__ */ oe({
3349
+ }, Os = /* @__PURE__ */ oe({
3314
3350
  __name: "EntityBaseTableCell",
3315
3351
  props: {
3316
3352
  keyName: {
@@ -3323,68 +3359,68 @@ const os = {
3323
3359
  }
3324
3360
  },
3325
3361
  setup(e) {
3326
- const n = e, t = S(() => {
3327
- var h;
3328
- return ((h = n.rowEl) == null ? void 0 : h.querySelector(`[data-testid="${n.keyName}"]`)) || null;
3329
- }), r = S(() => {
3330
- var h;
3331
- return ((h = t.value) == null ? void 0 : h.querySelector('[data-testid="first-col"]')) || null;
3332
- }), a = S(() => {
3333
- var h, A;
3334
- const g = (h = n.rowEl) == null ? void 0 : h.querySelectorAll("td");
3335
- return g ? ((A = g[0]) == null ? void 0 : A.getAttribute("data-testid")) === n.keyName : !1;
3362
+ const n = e, t = A(() => {
3363
+ var v;
3364
+ return ((v = n.rowEl) == null ? void 0 : v.querySelector(`[data-testid="${n.keyName}"]`)) || null;
3365
+ }), r = A(() => {
3366
+ var v;
3367
+ return ((v = t.value) == null ? void 0 : v.querySelector('[data-testid="first-col"]')) || null;
3368
+ }), a = A(() => {
3369
+ var v, S;
3370
+ const y = (v = n.rowEl) == null ? void 0 : v.querySelectorAll("td");
3371
+ return y ? ((S = y[0]) == null ? void 0 : S.getAttribute("data-testid")) === n.keyName : !1;
3336
3372
  });
3337
3373
  let i;
3338
3374
  const o = () => {
3339
3375
  i && (i.disconnect(), i = void 0);
3340
3376
  }, s = () => {
3341
- var h, A, g;
3342
- c.value = ((h = r.value) == null ? void 0 : h.getBoundingClientRect().width) || 0, d.value = ((A = t.value) == null ? void 0 : A.clientWidth) || 0, u.value = ((g = l.value) == null ? void 0 : g.innerText) || "";
3343
- }, l = E({}), c = E(0), d = E(0), u = E(""), y = S(() => [r.value, t.value]), p = xe(
3344
- y,
3345
- (h) => {
3377
+ var v, S, y;
3378
+ u.value = ((v = r.value) == null ? void 0 : v.getBoundingClientRect().width) || 0, p.value = ((S = t.value) == null ? void 0 : S.clientWidth) || 0, c.value = ((y = l.value) == null ? void 0 : y.innerText) || "";
3379
+ }, l = E({}), u = E(0), p = E(0), c = E(""), g = A(() => [r.value, t.value]), d = Ae(
3380
+ g,
3381
+ (v) => {
3346
3382
  if (a.value && (o(), "ResizeObserver" in window && window)) {
3347
- i = new ResizeObserver((A) => {
3383
+ i = new ResizeObserver((S) => {
3348
3384
  window.requestAnimationFrame(() => {
3349
- !Array.isArray(A) || !A.length || s();
3385
+ !Array.isArray(S) || !S.length || s();
3350
3386
  });
3351
3387
  });
3352
- for (const A of h)
3353
- A && i.observe(A);
3388
+ for (const S of v)
3389
+ S && i.observe(S);
3354
3390
  }
3355
3391
  },
3356
3392
  { immediate: !0, flush: "post", deep: !0 }
3357
- ), _ = S(() => a.value ? c.value > d.value : !1);
3393
+ ), _ = A(() => a.value ? u.value > p.value : !1);
3358
3394
  return br(() => {
3359
3395
  s();
3360
3396
  }), Cr(() => {
3361
- p();
3362
- }), (h, A) => {
3363
- const g = P("KTooltip");
3397
+ d();
3398
+ }), (v, S) => {
3399
+ const y = U("KTooltip");
3364
3400
  return f(), T("span", {
3365
3401
  ref_key: "contentRef",
3366
3402
  ref: l,
3367
3403
  class: "content-wrapper"
3368
3404
  }, [
3369
- a.value ? (f(), T("span", js, [
3370
- N(g, {
3371
- label: _.value ? u.value : "",
3405
+ a.value ? (f(), T("span", Es, [
3406
+ N(y, {
3407
+ label: _.value ? c.value : "",
3372
3408
  "max-width": "300",
3373
3409
  placement: "bottomStart"
3374
3410
  }, {
3375
- default: v(() => [
3376
- Q(h.$slots, "default", {}, void 0, !0)
3411
+ default: h(() => [
3412
+ X(v.$slots, "default", {}, void 0, !0)
3377
3413
  ]),
3378
3414
  _: 3
3379
3415
  }, 8, ["label"])
3380
- ])) : Q(h.$slots, "default", { key: 1 }, void 0, !0)
3416
+ ])) : X(v.$slots, "default", { key: 1 }, void 0, !0)
3381
3417
  ], 512);
3382
3418
  };
3383
3419
  }
3384
- }), Os = /* @__PURE__ */ we(Es, [["__scopeId", "data-v-e42a20c9"]]), Ks = { class: "toolbar-container" }, Fs = {
3420
+ }), Fs = /* @__PURE__ */ we(Os, [["__scopeId", "data-v-e42a20c9"]]), Ns = { class: "toolbar-container" }, Ks = {
3385
3421
  key: 0,
3386
3422
  class: "toolbar-button-container"
3387
- }, Ns = ["data-testid"], Bs = /* @__PURE__ */ oe({
3423
+ }, Bs = ["data-testid"], qs = /* @__PURE__ */ oe({
3388
3424
  __name: "EntityBaseTable",
3389
3425
  props: {
3390
3426
  // table header configuration
@@ -3494,76 +3530,76 @@ const os = {
3494
3530
  },
3495
3531
  emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
3496
3532
  setup(e, { emit: n }) {
3497
- const t = e, r = n, { i18n: { t: a } } = de.useI18n(), i = S(() => {
3498
- var K, H;
3533
+ const t = e, r = n, { i18n: { t: a } } = de.useI18n(), i = A(() => {
3534
+ var F, H;
3499
3535
  return typeof t.errorMessage == "string" ? {
3500
3536
  hasError: !!t.errorMessage,
3501
3537
  title: t.errorMessage,
3502
3538
  message: void 0
3503
3539
  } : {
3504
3540
  hasError: !!t.errorMessage,
3505
- title: (K = t.errorMessage) == null ? void 0 : K.title,
3541
+ title: (F = t.errorMessage) == null ? void 0 : F.title,
3506
3542
  message: (H = t.errorMessage) == null ? void 0 : H.message
3507
3543
  };
3508
- }), o = S(() => t.cacheIdentifier || t.preferencesStorageKey), s = (K) => K.hasData || !!t.query, l = S(() => {
3509
- const K = [];
3544
+ }), o = A(() => t.cacheIdentifier || t.preferencesStorageKey), s = (F) => F.hasData || !!t.query, l = A(() => {
3545
+ const F = [];
3510
3546
  return Object.keys(t.tableHeaders).forEach((H) => {
3511
- const le = t.tableHeaders[H];
3512
- K.push({
3513
- label: le.label ?? H,
3547
+ const ie = t.tableHeaders[H];
3548
+ F.push({
3549
+ label: ie.label ?? H,
3514
3550
  key: H,
3515
- sortable: le.sortable ?? !1
3551
+ sortable: ie.sortable ?? !1
3516
3552
  });
3517
- }), t.enableEntityActions && K.push({
3553
+ }), t.enableEntityActions && F.push({
3518
3554
  key: "actions",
3519
3555
  hideLabel: !0
3520
- }), K;
3521
- }), c = (K) => ({
3522
- "data-rowid": K.id,
3523
- "data-testid": K.name,
3524
- ...t.rowAttributes(K)
3525
- }), d = E({}), u = (K) => {
3556
+ }), F;
3557
+ }), u = (F) => ({
3558
+ "data-rowid": F.id,
3559
+ "data-testid": F.name,
3560
+ ...t.rowAttributes(F)
3561
+ }), p = E({}), c = (F) => {
3526
3562
  var H;
3527
- return (H = d.value) == null ? void 0 : H.$el.querySelector(`[data-rowid="${K.id}"]`);
3528
- }, y = (K) => {
3563
+ return (H = p.value) == null ? void 0 : H.$el.querySelector(`[data-rowid="${F.id}"]`);
3564
+ }, g = (F) => {
3529
3565
  const H = {
3530
- "data-testid": K.headerKey,
3531
- ...t.cellAttributes(K)
3566
+ "data-testid": F.headerKey,
3567
+ ...t.cellAttributes(F)
3532
3568
  };
3533
- return K.colIndex === 0 && (H.style = {
3569
+ return F.colIndex === 0 && (H.style = {
3534
3570
  maxWidth: "250px",
3535
3571
  overflowX: "hidden",
3536
3572
  textOverflow: "ellipsis"
3537
3573
  }), H;
3538
- }, p = () => {
3574
+ }, d = () => {
3539
3575
  r("empty-state-cta-clicked"), _();
3540
3576
  }, _ = () => {
3541
3577
  r("clear-search-input");
3542
- }, h = S(() => t.disableRowClick ? void 0 : (K, H) => {
3578
+ }, v = A(() => t.disableRowClick ? void 0 : (F, H) => {
3543
3579
  r("click:row", H);
3544
- }), A = (K) => {
3545
- r("sort", K);
3546
- }, { setTablePreferences: g, getTablePreferences: b } = Mr(), O = S(() => {
3547
- const K = b(t.preferencesStorageKey);
3580
+ }), S = (F) => {
3581
+ r("sort", F);
3582
+ }, { setTablePreferences: y, getTablePreferences: b } = jr(), O = A(() => {
3583
+ const F = b(t.preferencesStorageKey);
3548
3584
  return {
3549
3585
  ...t.initialFetcherParams,
3550
- ...K
3586
+ ...F
3551
3587
  };
3552
- }), I = (K) => {
3553
- t.preferencesStorageKey && g(t.preferencesStorageKey, K);
3588
+ }), I = (F) => {
3589
+ t.preferencesStorageKey && y(t.preferencesStorageKey, F);
3554
3590
  };
3555
- return (K, H) => {
3556
- const le = P("KIcon"), D = P("KButton"), k = P("KDropdown"), G = P("KTable"), B = P("KCard");
3557
- return f(), R(B, {
3591
+ return (F, H) => {
3592
+ const ie = U("KIcon"), R = U("KButton"), k = U("KDropdown"), G = U("KTable"), B = U("KCard");
3593
+ return f(), V(B, {
3558
3594
  class: "kong-ui-entity-base-table",
3559
3595
  title: e.title
3560
3596
  }, {
3561
- default: v(() => [
3597
+ default: h(() => [
3562
3598
  N(G, {
3563
3599
  ref_key: "tableRefs",
3564
- ref: d,
3600
+ ref: p,
3565
3601
  "cache-identifier": o.value,
3566
- "cell-attrs": y,
3602
+ "cell-attrs": g,
3567
3603
  "disable-pagination-page-jump": e.disablePaginationPageJump,
3568
3604
  "disable-sorting": e.disableSorting,
3569
3605
  "empty-state-action-button-icon": e.query ? "" : "plus",
@@ -3584,25 +3620,25 @@ const os = {
3584
3620
  "initial-fetcher-params": O.value,
3585
3621
  "is-loading": e.isLoading,
3586
3622
  "pagination-type": e.paginationType,
3587
- "row-attrs": c,
3623
+ "row-attrs": u,
3588
3624
  "search-input": e.query,
3589
- onKtableEmptyStateCtaClicked: p,
3590
- "onRow:click": h.value,
3591
- onSort: H[0] || (H[0] = (w) => A(w)),
3625
+ onKtableEmptyStateCtaClicked: d,
3626
+ "onRow:click": v.value,
3627
+ onSort: H[0] || (H[0] = (w) => S(w)),
3592
3628
  "onUpdate:tablePreferences": I
3593
- }, Me({
3594
- toolbar: v(({ state: w }) => [
3595
- Ye(V("div", Ks, [
3596
- Q(K.$slots, "toolbar-filter", {}, void 0, !0),
3597
- K.$slots["toolbar-button"] ? (f(), T("div", Fs, [
3598
- Q(K.$slots, "toolbar-button", {}, void 0, !0)
3629
+ }, je({
3630
+ toolbar: h(({ state: w }) => [
3631
+ We(D("div", Ns, [
3632
+ X(F.$slots, "toolbar-filter", {}, void 0, !0),
3633
+ F.$slots["toolbar-button"] ? (f(), T("div", Ks, [
3634
+ X(F.$slots, "toolbar-button", {}, void 0, !0)
3599
3635
  ])) : J("", !0)
3600
3636
  ], 512), [
3601
- [We, s(w)]
3637
+ [Ye, s(w)]
3602
3638
  ])
3603
3639
  ]),
3604
- actions: v(({ row: w, rowKey: M, rowValue: j }) => [
3605
- V("div", {
3640
+ actions: h(({ row: w, rowKey: j, rowValue: M }) => [
3641
+ D("div", {
3606
3642
  class: "actions-container",
3607
3643
  "data-testid": w.name
3608
3644
  }, [
@@ -3610,21 +3646,21 @@ const os = {
3610
3646
  "kpop-attributes": { placement: "bottomEnd" },
3611
3647
  width: e.dropdownMenuWidth
3612
3648
  }, {
3613
- items: v(() => [
3614
- Q(K.$slots, "actions", {
3649
+ items: h(() => [
3650
+ X(F.$slots, "actions", {
3615
3651
  row: w,
3616
- rowKey: M,
3617
- rowValue: j
3652
+ rowKey: j,
3653
+ rowValue: M
3618
3654
  }, void 0, !0)
3619
3655
  ]),
3620
- default: v(() => [
3621
- N(D, {
3656
+ default: h(() => [
3657
+ N(R, {
3622
3658
  class: "actions-trigger",
3623
3659
  "data-testid": "overflow-actions-button",
3624
3660
  size: "small"
3625
3661
  }, {
3626
- icon: v(() => [
3627
- N(le, {
3662
+ icon: h(() => [
3663
+ N(ie, {
3628
3664
  color: m(_a),
3629
3665
  icon: "more",
3630
3666
  size: "16"
@@ -3635,24 +3671,24 @@ const os = {
3635
3671
  ]),
3636
3672
  _: 2
3637
3673
  }, 1032, ["width"])
3638
- ], 8, Ns)
3674
+ ], 8, Bs)
3639
3675
  ]),
3640
3676
  _: 2
3641
3677
  }, [
3642
- ve(e.tableHeaders, (w, M) => ({
3643
- name: M,
3644
- fn: v(({ row: j, rowKey: L, rowValue: W }) => [
3645
- N(Os, {
3646
- "key-name": String(M),
3647
- "row-el": u(j)
3678
+ ve(e.tableHeaders, (w, j) => ({
3679
+ name: j,
3680
+ fn: h(({ row: M, rowKey: L, rowValue: Y }) => [
3681
+ N(Fs, {
3682
+ "key-name": String(j),
3683
+ "row-el": c(M)
3648
3684
  }, {
3649
- default: v(() => [
3650
- Q(K.$slots, M, {
3651
- row: j,
3685
+ default: h(() => [
3686
+ X(F.$slots, j, {
3687
+ row: M,
3652
3688
  rowKey: L,
3653
- rowValue: W
3689
+ rowValue: Y
3654
3690
  }, () => [
3655
- X(F(W), 1)
3691
+ Q(K(Y), 1)
3656
3692
  ], !0)
3657
3693
  ]),
3658
3694
  _: 2
@@ -3665,13 +3701,13 @@ const os = {
3665
3701
  }, 8, ["title"]);
3666
3702
  };
3667
3703
  }
3668
- }), qs = /* @__PURE__ */ we(Bs, [["__scopeId", "data-v-57b5a97b"]]), Ls = {
3704
+ }), Ls = /* @__PURE__ */ we(qs, [["__scopeId", "data-v-57b5a97b"]]), Us = {
3669
3705
  key: 0,
3670
3706
  class: "kong-ui-entity-delete-error"
3671
3707
  }, Ps = {
3672
3708
  key: 1,
3673
3709
  class: "description"
3674
- }, Us = /* @__PURE__ */ oe({
3710
+ }, Ds = /* @__PURE__ */ oe({
3675
3711
  __name: "EntityDeleteModal",
3676
3712
  props: {
3677
3713
  visible: {
@@ -3710,14 +3746,14 @@ const os = {
3710
3746
  },
3711
3747
  emits: ["cancel", "proceed"],
3712
3748
  setup(e, { emit: n }) {
3713
- const { i18nT: t } = de.useI18n(), r = e, a = n, i = S(() => r.needConfirm ? r.entityName : ""), o = () => {
3749
+ const { i18nT: t } = de.useI18n(), r = e, a = n, i = A(() => r.needConfirm ? r.entityName : ""), o = () => {
3714
3750
  a("cancel");
3715
3751
  }, s = () => {
3716
3752
  a("proceed");
3717
3753
  };
3718
- return (l, c) => {
3719
- const d = P("KAlert"), u = P("KPrompt");
3720
- return f(), R(u, {
3754
+ return (l, u) => {
3755
+ const p = U("KAlert"), c = U("KPrompt");
3756
+ return f(), V(c, {
3721
3757
  "action-button-text": "Yes, delete",
3722
3758
  "action-pending": e.actionPending,
3723
3759
  class: "kong-ui-entity-delete-modal",
@@ -3728,11 +3764,11 @@ const os = {
3728
3764
  onCanceled: o,
3729
3765
  onProceed: s
3730
3766
  }, {
3731
- "body-content": v(() => [
3732
- e.error ? (f(), T("div", Ls, [
3733
- N(d, { appearance: "danger" }, {
3734
- alertMessage: v(() => [
3735
- X(F(e.error), 1)
3767
+ "body-content": h(() => [
3768
+ e.error ? (f(), T("div", Us, [
3769
+ N(p, { appearance: "danger" }, {
3770
+ alertMessage: h(() => [
3771
+ Q(K(e.error), 1)
3736
3772
  ]),
3737
3773
  _: 1
3738
3774
  })
@@ -3741,23 +3777,23 @@ const os = {
3741
3777
  class: "message",
3742
3778
  keypath: r.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
3743
3779
  tag: "p"
3744
- }, Me({
3745
- entityType: v(() => [
3746
- X(F(r.entityType), 1)
3780
+ }, je({
3781
+ entityType: h(() => [
3782
+ Q(K(r.entityType), 1)
3747
3783
  ]),
3748
3784
  _: 2
3749
3785
  }, [
3750
3786
  r.entityName ? {
3751
3787
  name: "entityName",
3752
- fn: v(() => [
3753
- V("strong", null, F(r.entityName), 1)
3788
+ fn: h(() => [
3789
+ D("strong", null, K(r.entityName), 1)
3754
3790
  ]),
3755
3791
  key: "0"
3756
3792
  } : void 0
3757
3793
  ]), 1032, ["keypath"]),
3758
3794
  r.description || l.$slots.description ? (f(), T("div", Ps, [
3759
- Q(l.$slots, "description", {}, () => [
3760
- V("p", null, F(r.description), 1)
3795
+ X(l.$slots, "description", {}, () => [
3796
+ D("p", null, K(r.description), 1)
3761
3797
  ], !0)
3762
3798
  ])) : J("", !0)
3763
3799
  ]),
@@ -3765,13 +3801,13 @@ const os = {
3765
3801
  }, 8, ["action-pending", "confirmation-text", "is-visible", "title"]);
3766
3802
  };
3767
3803
  }
3768
- }), Vs = /* @__PURE__ */ we(Us, [["__scopeId", "data-v-1c9a2a07"]]), Rs = {
3804
+ }), Vs = /* @__PURE__ */ we(Ds, [["__scopeId", "data-v-1c9a2a07"]]), Rs = {
3769
3805
  fill: "none",
3770
3806
  height: "20",
3771
3807
  viewBox: "0 0 20 20",
3772
3808
  width: "20",
3773
3809
  xmlns: "http://www.w3.org/2000/svg"
3774
- }, Ds = {
3810
+ }, Gs = {
3775
3811
  id: "mask0_180_20349",
3776
3812
  height: "20",
3777
3813
  maskUnits: "userSpaceOnUse",
@@ -3779,7 +3815,7 @@ const os = {
3779
3815
  width: "20",
3780
3816
  x: "0",
3781
3817
  y: "0"
3782
- }, Gs = ["fill"], Hs = { mask: "url(#mask0_180_20349)" }, zs = ["fill"], pn = /* @__PURE__ */ oe({
3818
+ }, Hs = ["fill"], zs = { mask: "url(#mask0_180_20349)" }, Js = ["fill"], pn = /* @__PURE__ */ oe({
3783
3819
  __name: "IconFilter",
3784
3820
  props: {
3785
3821
  color: {
@@ -3789,25 +3825,25 @@ const os = {
3789
3825
  },
3790
3826
  setup(e) {
3791
3827
  return (n, t) => (f(), T("svg", Rs, [
3792
- V("mask", Ds, [
3793
- V("rect", {
3828
+ D("mask", Gs, [
3829
+ D("rect", {
3794
3830
  fill: e.color,
3795
3831
  height: "20",
3796
3832
  width: "20"
3797
- }, null, 8, Gs)
3833
+ }, null, 8, Hs)
3798
3834
  ]),
3799
- V("g", Hs, [
3800
- V("path", {
3835
+ D("g", zs, [
3836
+ D("path", {
3801
3837
  d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
3802
3838
  fill: e.color
3803
- }, null, 8, zs)
3839
+ }, null, 8, Js)
3804
3840
  ])
3805
3841
  ]));
3806
3842
  }
3807
- }), Js = {
3843
+ }), Ws = {
3808
3844
  key: 1,
3809
3845
  class: "kong-ui-entity-filter"
3810
- }, Ys = { class: "menu-item-title" }, Ws = { class: "menu-item-indicator" }, Zs = { class: "menu-item-body" }, Qs = ["for"], Xs = { class: "menu-item-buttons" }, el = { class: "filter-clear-button-container" }, tl = /* @__PURE__ */ oe({
3846
+ }, Ys = { class: "menu-item-title" }, Zs = { class: "menu-item-indicator" }, Qs = { class: "menu-item-body" }, Xs = ["for"], el = { class: "menu-item-buttons" }, tl = { class: "filter-clear-button-container" }, nl = /* @__PURE__ */ oe({
3811
3847
  __name: "EntityFilter",
3812
3848
  props: {
3813
3849
  // filter config, either exact match or fuzzy match
@@ -3827,131 +3863,131 @@ const os = {
3827
3863
  },
3828
3864
  emits: ["update:modelValue"],
3829
3865
  setup(e, { emit: n }) {
3830
- const { i18n: { t } } = de.useI18n(), r = e, a = n, i = E(!1), o = E({}), s = S(() => {
3831
- const g = [];
3866
+ const { i18n: { t } } = de.useI18n(), r = e, a = n, i = E(!1), o = E({}), s = A(() => {
3867
+ const y = [];
3832
3868
  return new URLSearchParams(r.modelValue).forEach((b, O) => {
3833
- b !== "" && g.push(O);
3834
- }), g;
3835
- }), l = S(() => {
3836
- const g = r.config.fields;
3837
- return Object.keys(g).filter((b) => g[b].searchable).map((b) => ({
3838
- label: g[b].label || b,
3869
+ b !== "" && y.push(O);
3870
+ }), y;
3871
+ }), l = A(() => {
3872
+ const y = r.config.fields;
3873
+ return Object.keys(y).filter((b) => y[b].searchable).map((b) => ({
3874
+ label: y[b].label || b,
3839
3875
  value: b
3840
3876
  }));
3841
3877
  });
3842
- xe(() => r.modelValue, (g) => {
3843
- o.value = {}, new URLSearchParams(g).forEach((b, O) => {
3878
+ Ae(() => r.modelValue, (y) => {
3879
+ o.value = {}, new URLSearchParams(y).forEach((b, O) => {
3844
3880
  o.value[O] = b;
3845
3881
  });
3846
3882
  });
3847
- const c = () => {
3883
+ const u = () => {
3848
3884
  i.value = !i.value;
3849
- }, d = (g) => {
3850
- a("update:modelValue", g);
3851
- }, u = (g) => `filter-${g}`, y = (g) => {
3885
+ }, p = (y) => {
3886
+ a("update:modelValue", y);
3887
+ }, c = (y) => `filter-${y}`, g = (y) => {
3852
3888
  var b, O;
3853
- return (((O = (b = r.config.schema) == null ? void 0 : b[g]) == null ? void 0 : O.values) ?? []).map((I) => ({
3889
+ return (((O = (b = r.config.schema) == null ? void 0 : b[y]) == null ? void 0 : O.values) ?? []).map((I) => ({
3854
3890
  value: I,
3855
3891
  label: I
3856
3892
  }));
3857
- }, p = (g) => {
3893
+ }, d = (y) => {
3858
3894
  var b, O;
3859
- return ((O = (b = r.config.schema) == null ? void 0 : b[g]) == null ? void 0 : O.type) ?? "text";
3860
- }, _ = (g) => {
3895
+ return ((O = (b = r.config.schema) == null ? void 0 : b[y]) == null ? void 0 : O.type) ?? "text";
3896
+ }, _ = (y) => {
3861
3897
  o.value = {
3862
3898
  ...o.value,
3863
- [g]: ""
3864
- }, A();
3865
- }, h = () => {
3866
- o.value = {}, A(!0);
3867
- }, A = (g = !1) => {
3899
+ [y]: ""
3900
+ }, S();
3901
+ }, v = () => {
3902
+ o.value = {}, S(!0);
3903
+ }, S = (y = !1) => {
3868
3904
  const b = Object.keys(o.value).reduce((O, I) => (o.value[I] && (O[I] = `${o.value[I]}`), O), {});
3869
- g && (i.value = !1), a("update:modelValue", new URLSearchParams(b).toString());
3905
+ y && (i.value = !1), a("update:modelValue", new URLSearchParams(b).toString());
3870
3906
  };
3871
- return (g, b) => {
3872
- const O = P("KInput"), I = P("KButton"), K = P("KSelect"), H = P("KMenuItem"), le = P("KMenu");
3873
- return e.config.isExactMatch ? (f(), R(O, {
3907
+ return (y, b) => {
3908
+ const O = U("KInput"), I = U("KButton"), F = U("KSelect"), H = U("KMenuItem"), ie = U("KMenu");
3909
+ return e.config.isExactMatch ? (f(), V(O, {
3874
3910
  key: 0,
3875
3911
  autocomplete: "off",
3876
3912
  class: "kong-ui-entity-filter-input",
3877
3913
  "data-testid": "search-input",
3878
3914
  "model-value": e.modelValue,
3879
3915
  placeholder: e.config.placeholder,
3880
- "onUpdate:modelValue": d
3916
+ "onUpdate:modelValue": p
3881
3917
  }, {
3882
- before: v(() => [
3918
+ before: h(() => [
3883
3919
  N(pn)
3884
3920
  ]),
3885
3921
  _: 1
3886
- }, 8, ["model-value", "placeholder"])) : (f(), T("div", Js, [
3922
+ }, 8, ["model-value", "placeholder"])) : (f(), T("div", Ws, [
3887
3923
  N(I, {
3888
3924
  appearance: "tertiary",
3889
3925
  "data-testid": "filter-button",
3890
- onClick: c
3926
+ onClick: u
3891
3927
  }, {
3892
- default: v(() => [
3928
+ default: h(() => [
3893
3929
  N(pn),
3894
- X(" " + F(m(t)("filter.filterButtonText")) + " " + F(s.value.length > 0 ? `(${s.value.length})` : ""), 1)
3930
+ Q(" " + K(m(t)("filter.filterButtonText")) + " " + K(s.value.length > 0 ? `(${s.value.length})` : ""), 1)
3895
3931
  ]),
3896
3932
  _: 1
3897
3933
  }),
3898
- Ye(V("div", {
3934
+ We(D("div", {
3899
3935
  class: "kong-ui-entity-filter-backdrop",
3900
- onClick: c
3936
+ onClick: u
3901
3937
  }, null, 512), [
3902
- [We, i.value]
3938
+ [Ye, i.value]
3903
3939
  ]),
3904
- Ye(N(le, { class: "kong-ui-entity-filter-menu" }, {
3905
- body: v(() => [
3906
- (f(!0), T(Ce, null, ve(l.value, (D, k) => (f(), R(H, {
3907
- key: D.value,
3908
- "data-testid": D.value,
3940
+ We(N(ie, { class: "kong-ui-entity-filter-menu" }, {
3941
+ body: h(() => [
3942
+ (f(!0), T(Ce, null, ve(l.value, (R, k) => (f(), V(H, {
3943
+ key: R.value,
3944
+ "data-testid": R.value,
3909
3945
  expandable: "",
3910
3946
  "last-menu-item": k === l.value.length - 1
3911
3947
  }, {
3912
- itemTitle: v(() => [
3913
- V("span", Ys, [
3914
- X(F(D.label) + " ", 1),
3915
- Ye(V("span", Ws, null, 512), [
3916
- [We, s.value.includes(D.value)]
3948
+ itemTitle: h(() => [
3949
+ D("span", Ys, [
3950
+ Q(K(R.label) + " ", 1),
3951
+ We(D("span", Zs, null, 512), [
3952
+ [Ye, s.value.includes(R.value)]
3917
3953
  ])
3918
3954
  ])
3919
3955
  ]),
3920
- itemBody: v(() => {
3956
+ itemBody: h(() => {
3921
3957
  var G, B;
3922
3958
  return [
3923
- V("div", Zs, [
3924
- V("label", {
3959
+ D("div", Qs, [
3960
+ D("label", {
3925
3961
  class: "menu-item-label",
3926
- for: u(D.value)
3927
- }, F(m(t)("filter.fieldLabel")), 9, Qs),
3928
- ((B = (G = e.config.schema) == null ? void 0 : G[D.value]) == null ? void 0 : B.type) === "select" ? (f(), R(K, {
3962
+ for: c(R.value)
3963
+ }, K(m(t)("filter.fieldLabel")), 9, Xs),
3964
+ ((B = (G = e.config.schema) == null ? void 0 : G[R.value]) == null ? void 0 : B.type) === "select" ? (f(), V(F, {
3929
3965
  key: 0,
3930
- id: u(D.value),
3931
- modelValue: o.value[D.value],
3932
- "onUpdate:modelValue": (w) => o.value[D.value] = w,
3966
+ id: c(R.value),
3967
+ modelValue: o.value[R.value],
3968
+ "onUpdate:modelValue": (w) => o.value[R.value] = w,
3933
3969
  appearance: "select",
3934
- items: y(D.value),
3970
+ items: g(R.value),
3935
3971
  placeholder: m(t)("filter.selectPlaceholder")
3936
- }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (f(), R(O, {
3972
+ }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (f(), V(O, {
3937
3973
  key: 1,
3938
- id: u(D.value),
3939
- modelValue: o.value[D.value],
3940
- "onUpdate:modelValue": (w) => o.value[D.value] = w,
3974
+ id: c(R.value),
3975
+ modelValue: o.value[R.value],
3976
+ "onUpdate:modelValue": (w) => o.value[R.value] = w,
3941
3977
  autocomplete: "off",
3942
3978
  placeholder: m(t)("filter.inputPlaceholder"),
3943
- type: p(D.value)
3979
+ type: d(R.value)
3944
3980
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
3945
3981
  ]),
3946
- V("div", Xs, [
3982
+ D("div", el, [
3947
3983
  N(I, {
3948
3984
  appearance: "tertiary",
3949
3985
  "data-testid": "apply-filter",
3950
3986
  size: "small",
3951
- onClick: b[0] || (b[0] = (w) => A(!0))
3987
+ onClick: b[0] || (b[0] = (w) => S(!0))
3952
3988
  }, {
3953
- default: v(() => [
3954
- X(F(m(t)("filter.applyButtonText")), 1)
3989
+ default: h(() => [
3990
+ Q(K(m(t)("filter.applyButtonText")), 1)
3955
3991
  ]),
3956
3992
  _: 1
3957
3993
  }),
@@ -3959,10 +3995,10 @@ const os = {
3959
3995
  appearance: "tertiary",
3960
3996
  "data-testid": "clear-filter",
3961
3997
  size: "small",
3962
- onClick: (w) => _(D.value)
3998
+ onClick: (w) => _(R.value)
3963
3999
  }, {
3964
- default: v(() => [
3965
- X(F(m(t)("filter.clearButtonText")), 1)
4000
+ default: h(() => [
4001
+ Q(K(m(t)("filter.clearButtonText")), 1)
3966
4002
  ]),
3967
4003
  _: 2
3968
4004
  }, 1032, ["onClick"])
@@ -3972,15 +4008,15 @@ const os = {
3972
4008
  _: 2
3973
4009
  }, 1032, ["data-testid", "last-menu-item"]))), 128))
3974
4010
  ]),
3975
- actionButton: v(() => [
3976
- V("div", el, [
4011
+ actionButton: h(() => [
4012
+ D("div", tl, [
3977
4013
  N(I, {
3978
4014
  appearance: "tertiary",
3979
4015
  size: "small",
3980
- onClick: h
4016
+ onClick: v
3981
4017
  }, {
3982
- default: v(() => [
3983
- X(F(m(t)("filter.clearAllButtonText")), 1)
4018
+ default: h(() => [
4019
+ Q(K(m(t)("filter.clearAllButtonText")), 1)
3984
4020
  ]),
3985
4021
  _: 1
3986
4022
  })
@@ -3988,12 +4024,12 @@ const os = {
3988
4024
  ]),
3989
4025
  _: 1
3990
4026
  }, 512), [
3991
- [We, i.value]
4027
+ [Ye, i.value]
3992
4028
  ])
3993
4029
  ]));
3994
4030
  };
3995
4031
  }
3996
- }), nl = /* @__PURE__ */ we(tl, [["__scopeId", "data-v-15962ee2"]]), tt = /* @__PURE__ */ oe({
4032
+ }), rl = /* @__PURE__ */ we(nl, [["__scopeId", "data-v-15962ee2"]]), tt = /* @__PURE__ */ oe({
3997
4033
  __name: "PermissionsWrapper",
3998
4034
  props: {
3999
4035
  /**
@@ -4015,24 +4051,24 @@ const os = {
4015
4051
  }
4016
4052
  },
4017
4053
  setup(e) {
4018
- const n = e, t = E(void 0), r = S(() => t.value === !0 || t.value !== void 0 && n.forceShow === !0);
4019
- return xe(() => n.authFunction, async () => {
4054
+ const n = e, t = E(void 0), r = A(() => t.value === !0 || t.value !== void 0 && n.forceShow === !0);
4055
+ return Ae(() => n.authFunction, async () => {
4020
4056
  t.value = await n.authFunction();
4021
- }, { immediate: !0 }), (a, i) => r.value ? Q(a.$slots, "default", {
4057
+ }, { immediate: !0 }), (a, i) => r.value ? X(a.$slots, "default", {
4022
4058
  key: 0,
4023
4059
  isAllowed: t.value
4024
4060
  }) : J("", !0);
4025
4061
  }
4026
- }), rl = { class: "form-section-wrapper" }, al = {
4062
+ }), al = { class: "form-section-wrapper" }, ol = {
4027
4063
  key: 0,
4028
4064
  class: "form-section-title"
4029
- }, ol = {
4065
+ }, il = {
4030
4066
  key: 1,
4031
4067
  class: "form-section-description"
4032
- }, il = {
4068
+ }, sl = {
4033
4069
  key: 2,
4034
4070
  class: "form-section-footer"
4035
- }, sl = { class: "form-section-content" }, ll = /* @__PURE__ */ oe({
4071
+ }, ll = { class: "form-section-content" }, ul = /* @__PURE__ */ oe({
4036
4072
  __name: "EntityFormSection",
4037
4073
  props: {
4038
4074
  title: {
@@ -4059,33 +4095,33 @@ const os = {
4059
4095
  setup(e) {
4060
4096
  const n = ut();
4061
4097
  return (t, r) => (f(), T("fieldset", {
4062
- class: Ne(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
4098
+ class: Oe(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
4063
4099
  }, [
4064
- V("div", rl, [
4100
+ D("div", al, [
4065
4101
  e.hideInfoHeader ? J("", !0) : (f(), T("div", {
4066
4102
  key: 0,
4067
- class: Ne(["form-section-info", { sticky: e.stickyInfoHeader }])
4103
+ class: Oe(["form-section-info", { sticky: e.stickyInfoHeader }])
4068
4104
  }, [
4069
- e.title ? (f(), T("h4", al, F(e.title), 1)) : J("", !0),
4070
- e.description || m(n).description ? (f(), T("div", ol, [
4071
- Q(t.$slots, "description", {}, () => [
4072
- V("p", null, F(e.description), 1)
4105
+ e.title ? (f(), T("h4", ol, K(e.title), 1)) : J("", !0),
4106
+ e.description || m(n).description ? (f(), T("div", il, [
4107
+ X(t.$slots, "description", {}, () => [
4108
+ D("p", null, K(e.description), 1)
4073
4109
  ], !0)
4074
4110
  ])) : J("", !0),
4075
- m(n).footer ? (f(), T("div", il, [
4076
- Q(t.$slots, "footer", {}, void 0, !0)
4111
+ m(n).footer ? (f(), T("div", sl, [
4112
+ X(t.$slots, "footer", {}, void 0, !0)
4077
4113
  ])) : J("", !0)
4078
4114
  ], 2)),
4079
- V("div", sl, [
4080
- Q(t.$slots, "default", {}, void 0, !0)
4115
+ D("div", ll, [
4116
+ X(t.$slots, "default", {}, void 0, !0)
4081
4117
  ])
4082
4118
  ])
4083
4119
  ], 2));
4084
4120
  }
4085
- }), fn = /* @__PURE__ */ we(ll, [["__scopeId", "data-v-8b6dc312"]]), { useAxios: Ft, useDeleteUrlBuilder: ul, useErrors: cl, useExternalLinkCreator: jl, useFetchUrlBuilder: El, useFetcher: dl, useDebouncedFilter: pr, useStringHelpers: Ol, useHelpers: Kl, useGatewayFeatureSupported: Fl, useTruncationDetector: Nl } = de, pl = { class: "add-to-group-form-container" }, fl = { class: "add-to-group-cta-text" }, ml = {
4121
+ }), fn = /* @__PURE__ */ we(ul, [["__scopeId", "data-v-8b6dc312"]]), { useAxios: Nt, useDeleteUrlBuilder: cl, useErrors: dl, useExternalLinkCreator: El, useFetchUrlBuilder: Ol, useFetcher: pl, useDebouncedFilter: fr, useStringHelpers: Fl, useHelpers: Nl, useGatewayFeatureSupported: Kl, useTruncationDetector: Bl } = de, fl = { class: "add-to-group-form-container" }, ml = { class: "add-to-group-cta-text" }, gl = {
4086
4122
  key: 0,
4087
4123
  class: "kong-ui-entity-add-to-groups-error"
4088
- }, gl = { key: 0 }, yl = /* @__PURE__ */ oe({
4124
+ }, yl = { key: 0 }, hl = /* @__PURE__ */ oe({
4089
4125
  __name: "AddToGroupModal",
4090
4126
  props: {
4091
4127
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -4103,80 +4139,80 @@ const os = {
4103
4139
  emits: ["cancel", "add:success", "add:partial-success", "error"],
4104
4140
  setup(e, { emit: n }) {
4105
4141
  var B;
4106
- const { i18n: { t } } = dt.useI18n(), r = e, a = n, { axiosInstance: i } = Ft({
4142
+ const { i18n: { t } } = dt.useI18n(), r = e, a = n, { axiosInstance: i } = Nt({
4107
4143
  headers: (B = r.config) == null ? void 0 : B.requestHeaders
4108
4144
  }), o = E([]), {
4109
4145
  debouncedQueryChange: s,
4110
4146
  loading: l,
4111
- allRecords: c,
4112
- error: d,
4113
- loadItems: u,
4114
- results: y
4115
- } = pr(
4147
+ allRecords: u,
4148
+ error: p,
4149
+ loadItems: c,
4150
+ results: g
4151
+ } = fr(
4116
4152
  r.config,
4117
- je.list[r.config.app].all,
4153
+ Me.list[r.config.app].all,
4118
4154
  "",
4119
4155
  {
4120
4156
  fetchedItemsKey: "data",
4121
4157
  searchKeys: ["name", "id"]
4122
4158
  }
4123
- ), p = S(() => d.value ? t("consumer_groups.errors.general") : ""), _ = E(0), h = S(() => c.value === void 0), A = S(() => y.value.map((w) => ({
4159
+ ), d = A(() => p.value ? t("consumer_groups.errors.general") : ""), _ = E(0), v = A(() => u.value === void 0), S = A(() => g.value.map((w) => ({
4124
4160
  label: w.name,
4125
4161
  value: w.id,
4126
4162
  selected: o.value.includes(w.id),
4127
4163
  data: w
4128
4164
  // we need this to determine whether or not to show the description text
4129
- }))), g = (w) => {
4130
- var j;
4131
- const M = h.value ? y.value.find((L) => L.id === w) : (j = c.value) == null ? void 0 : j.find((L) => L.id === w);
4132
- return M ? M.name : w;
4165
+ }))), y = (w) => {
4166
+ var M;
4167
+ const j = v.value ? g.value.find((L) => L.id === w) : (M = u.value) == null ? void 0 : M.find((L) => L.id === w);
4168
+ return j ? j.name : w;
4133
4169
  }, b = () => {
4134
- K.value = "", O.value = [], k.value = [], a("cancel");
4135
- }, O = E([]), I = E(!1), K = E(""), H = async () => {
4170
+ F.value = "", O.value = [], k.value = [], a("cancel");
4171
+ }, O = E([]), I = E(!1), F = E(""), H = async () => {
4136
4172
  if (!o.value.length) {
4137
- K.value = "", k.value = [], a("cancel");
4173
+ F.value = "", k.value = [], a("cancel");
4138
4174
  return;
4139
4175
  }
4140
- I.value = !0, K.value = "", O.value = [], k.value = [];
4176
+ I.value = !0, F.value = "", O.value = [], k.value = [];
4141
4177
  try {
4142
- const w = o.value.map((L) => D(L)), M = await Promise.allSettled(w);
4143
- let j = !0;
4144
- M.forEach((L) => {
4145
- L.status !== "fulfilled" && (j = !1);
4146
- }), j ? (O.value = [], k.value = [], a("add:success", o.value), o.value = []) : (O.value.length && a("add:partial-success", O.value), o.value = [], G(M));
4178
+ const w = o.value.map((L) => R(L)), j = await Promise.allSettled(w);
4179
+ let M = !0;
4180
+ j.forEach((L) => {
4181
+ L.status !== "fulfilled" && (M = !1);
4182
+ }), M ? (O.value = [], k.value = [], a("add:success", o.value), o.value = []) : (O.value.length && a("add:partial-success", O.value), o.value = [], G(j));
4147
4183
  } catch {
4148
- K.value = t("consumer_groups.errors.add"), a("error", K.value);
4184
+ F.value = t("consumer_groups.errors.add"), a("error", F.value);
4149
4185
  } finally {
4150
4186
  I.value = !1;
4151
4187
  }
4152
- }, le = S(() => {
4153
- var M, j, L, W;
4154
- let w = `${r.config.apiBaseUrl}${je.list[r.config.app].forConsumer}`;
4155
- return r.config.app === "konnect" ? w = w.replace(/{controlPlaneId}/gi, ((M = r.config) == null ? void 0 : M.controlPlaneId) || "").replace(/{consumerId}/gi, ((j = r.config) == null ? void 0 : j.consumerId) || "") : r.config.app === "kongManager" && (w = w.replace(/\/{workspace}/gi, (L = r.config) != null && L.workspace ? `/${r.config.workspace}` : "").replace(/{consumerId}/gi, ((W = r.config) == null ? void 0 : W.consumerId) || "")), w;
4156
- }), D = async (w) => {
4157
- const M = {
4188
+ }, ie = A(() => {
4189
+ var j, M, L, Y;
4190
+ let w = `${r.config.apiBaseUrl}${Me.list[r.config.app].forConsumer}`;
4191
+ return r.config.app === "konnect" ? w = w.replace(/{controlPlaneId}/gi, ((j = r.config) == null ? void 0 : j.controlPlaneId) || "").replace(/{consumerId}/gi, ((M = r.config) == null ? void 0 : M.consumerId) || "") : r.config.app === "kongManager" && (w = w.replace(/\/{workspace}/gi, (L = r.config) != null && L.workspace ? `/${r.config.workspace}` : "").replace(/{consumerId}/gi, ((Y = r.config) == null ? void 0 : Y.consumerId) || "")), w;
4192
+ }), R = async (w) => {
4193
+ const j = {
4158
4194
  group: w
4159
4195
  };
4160
4196
  try {
4161
- const j = await i.post(le.value, M);
4162
- return O.value.push(w), j;
4163
- } catch (j) {
4164
- let L = `${g(w)} - ${j.message}`;
4165
- return j.response.status === 409 && (L = `${g(w)} - ${t("consumer_groups.errors.already_added")}`), Promise.reject(Error(L));
4197
+ const M = await i.post(ie.value, j);
4198
+ return O.value.push(w), M;
4199
+ } catch (M) {
4200
+ let L = `${y(w)} - ${M.message}`;
4201
+ return M.response.status === 409 && (L = `${y(w)} - ${t("consumer_groups.errors.already_added")}`), Promise.reject(Error(L));
4166
4202
  }
4167
4203
  }, k = E([]), G = (w) => {
4168
- k.value = w.map((M) => {
4169
- var j;
4170
- return (j = M.reason) == null ? void 0 : j.message;
4204
+ k.value = w.map((j) => {
4205
+ var M;
4206
+ return (M = j.reason) == null ? void 0 : M.message;
4171
4207
  }).filter(Boolean);
4172
4208
  };
4173
- return xe(A, () => {
4209
+ return Ae(S, () => {
4174
4210
  _.value++;
4175
- }, { immediate: !0, deep: !0 }), xe(() => r.visible, () => {
4176
- r.visible && u();
4177
- }, { immediate: !0 }), (w, M) => {
4178
- const j = P("KMultiselect"), L = P("KAlert"), W = P("KPrompt");
4179
- return f(), R(W, {
4211
+ }, { immediate: !0, deep: !0 }), Ae(() => r.visible, () => {
4212
+ r.visible && c();
4213
+ }, { immediate: !0 }), (w, j) => {
4214
+ const M = U("KMultiselect"), L = U("KAlert"), Y = U("KPrompt");
4215
+ return f(), V(Y, {
4180
4216
  "action-pending": I.value,
4181
4217
  class: "kong-ui-entities-add-to-groups-modal",
4182
4218
  "data-testid": "add-to-group-modal",
@@ -4185,16 +4221,16 @@ const os = {
4185
4221
  onCanceled: b,
4186
4222
  onProceed: H
4187
4223
  }, {
4188
- "body-content": v(() => [
4189
- V("div", pl, [
4190
- V("p", fl, F(m(t)("consumer_groups.consumers.add.ctaText")), 1),
4191
- N(j, {
4224
+ "body-content": h(() => [
4225
+ D("div", fl, [
4226
+ D("p", ml, K(m(t)("consumer_groups.consumers.add.ctaText")), 1),
4227
+ N(M, {
4192
4228
  modelValue: o.value,
4193
- "onUpdate:modelValue": M[0] || (M[0] = (ee) => o.value = ee),
4229
+ "onUpdate:modelValue": j[0] || (j[0] = (ee) => o.value = ee),
4194
4230
  autosuggest: "",
4195
4231
  "data-testid": "add-to-groups-multiselect",
4196
- "dropdown-footer-text": h.value ? m(t)("consumer_groups.consumers.add.footer") : void 0,
4197
- items: A.value,
4232
+ "dropdown-footer-text": v.value ? m(t)("consumer_groups.consumers.add.footer") : void 0,
4233
+ items: S.value,
4198
4234
  label: m(t)("consumer_groups.consumers.add.consumer_groups_label"),
4199
4235
  loading: m(l),
4200
4236
  placeholder: m(t)("consumer_groups.consumers.add.consumer_group_placeholder"),
@@ -4203,14 +4239,14 @@ const os = {
4203
4239
  width: "100%",
4204
4240
  onQueryChange: m(s)
4205
4241
  }, null, 8, ["modelValue", "dropdown-footer-text", "items", "label", "loading", "placeholder", "readonly", "onQueryChange"]),
4206
- K.value || p.value || k.value.length ? (f(), T("div", ml, [
4242
+ F.value || d.value || k.value.length ? (f(), T("div", gl, [
4207
4243
  N(L, { appearance: "danger" }, {
4208
- alertMessage: v(() => [
4209
- V("p", null, F(m(t)("consumer_groups.errors.add")), 1),
4210
- k.value.length ? (f(), T("ul", gl, [
4211
- (f(!0), T(Ce, null, ve(k.value, (ee, te) => (f(), T("li", { key: te }, F(ee), 1))), 128))
4244
+ alertMessage: h(() => [
4245
+ D("p", null, K(m(t)("consumer_groups.errors.add")), 1),
4246
+ k.value.length ? (f(), T("ul", yl, [
4247
+ (f(!0), T(Ce, null, ve(k.value, (ee, te) => (f(), T("li", { key: te }, K(ee), 1))), 128))
4212
4248
  ])) : J("", !0),
4213
- V("div", null, F(K.value || p.value), 1)
4249
+ D("div", null, K(F.value || d.value), 1)
4214
4250
  ]),
4215
4251
  _: 1
4216
4252
  })
@@ -4221,12 +4257,12 @@ const os = {
4221
4257
  }, 8, ["action-pending", "is-visible", "title"]);
4222
4258
  };
4223
4259
  }
4224
- }), Nt = (e, n) => {
4260
+ }), Kt = (e, n) => {
4225
4261
  const t = e.__vccOpts || e;
4226
4262
  for (const [r, a] of n)
4227
4263
  t[r] = a;
4228
4264
  return t;
4229
- }, hl = /* @__PURE__ */ Nt(yl, [["__scopeId", "data-v-3808b4c0"]]), vl = { class: "kong-ui-entities-consumer-groups-list" }, bl = { key: 1 }, Cl = /* @__PURE__ */ oe({
4265
+ }, vl = /* @__PURE__ */ Kt(hl, [["__scopeId", "data-v-3808b4c0"]]), bl = { class: "kong-ui-entities-consumer-groups-list" }, Cl = { key: 1 }, kl = /* @__PURE__ */ oe({
4230
4266
  __name: "ConsumerGroupList",
4231
4267
  props: {
4232
4268
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -4273,41 +4309,41 @@ const os = {
4273
4309
  emits: ["error", "copy:success", "copy:error", "delete:success", "add:success", "remove:success"],
4274
4310
  setup(e, { emit: n }) {
4275
4311
  var qt;
4276
- const t = n, r = e, { i18nT: a, i18n: { t: i } } = dt.useI18n(), o = It(), { axiosInstance: s } = Ft({
4312
+ const t = n, r = e, { i18nT: a, i18n: { t: i } } = dt.useI18n(), o = It(), { axiosInstance: s } = Nt({
4277
4313
  headers: (qt = r.config) == null ? void 0 : qt.requestHeaders
4278
- }), l = E(1), c = S(() => !!r.config.consumerId), d = S(() => r.config.app !== "kongManager" || !!r.config.disableSorting), u = {
4314
+ }), l = E(1), u = A(() => !!r.config.consumerId), p = A(() => r.config.app !== "kongManager" || !!r.config.disableSorting), c = {
4279
4315
  name: { label: i("consumer_groups.list.table_headers.name"), searchable: !0, sortable: !0 }
4280
4316
  };
4281
- r.config.app === "kongManager" && (u.consumers_count = { label: i("consumer_groups.list.table_headers.consumers_count"), searchable: !1, sortable: !1 }), u.tags = { label: i("consumer_groups.list.table_headers.tags"), sortable: !1 };
4282
- const y = u, p = (x) => ({
4317
+ r.config.app === "kongManager" && (c.consumers_count = { label: i("consumer_groups.list.table_headers.consumers_count"), searchable: !1, sortable: !1 }), c.tags = { label: i("consumer_groups.list.table_headers.tags"), sortable: !1 };
4318
+ const g = c, d = (x) => ({
4283
4319
  "data-testid": x.username ?? x.custom_id ?? x.id
4284
- }), _ = S(() => {
4285
- var Y, ae, he, Ie;
4286
- let x = `${r.config.apiBaseUrl}${je.list[r.config.app][c.value ? "forConsumer" : "all"]}`;
4287
- return r.config.app === "konnect" ? x = x.replace(/{controlPlaneId}/gi, ((Y = r.config) == null ? void 0 : Y.controlPlaneId) || "").replace(/{consumerId}/gi, ((ae = r.config) == null ? void 0 : ae.consumerId) || "") : r.config.app === "kongManager" && (x = x.replace(/\/{workspace}/gi, (he = r.config) != null && he.workspace ? `/${r.config.workspace}` : "").replace(/{consumerId}/gi, ((Ie = r.config) == null ? void 0 : Ie.consumerId) || "")), x;
4288
- }), h = E(""), A = S(() => {
4320
+ }), _ = A(() => {
4321
+ var W, ae, he, Ie;
4322
+ let x = `${r.config.apiBaseUrl}${Me.list[r.config.app][u.value ? "forConsumer" : "all"]}`;
4323
+ return r.config.app === "konnect" ? x = x.replace(/{controlPlaneId}/gi, ((W = r.config) == null ? void 0 : W.controlPlaneId) || "").replace(/{consumerId}/gi, ((ae = r.config) == null ? void 0 : ae.consumerId) || "") : r.config.app === "kongManager" && (x = x.replace(/\/{workspace}/gi, (he = r.config) != null && he.workspace ? `/${r.config.workspace}` : "").replace(/{consumerId}/gi, ((Ie = r.config) == null ? void 0 : Ie.consumerId) || "")), x;
4324
+ }), v = E(""), S = A(() => {
4289
4325
  const x = r.config.app === "konnect" || r.config.isExactMatch;
4290
4326
  return x ? {
4291
4327
  isExactMatch: x,
4292
4328
  fields: {
4293
- username: u.name,
4329
+ username: c.name,
4294
4330
  id: { label: i("consumer_groups.list.table_headers.id") }
4295
4331
  },
4296
4332
  placeholder: i("consumer_groups.search.placeholder")
4297
4333
  } : {
4298
4334
  isExactMatch: x,
4299
4335
  fields: {
4300
- name: u.name
4336
+ name: c.name
4301
4337
  },
4302
4338
  schema: r.config.filterSchema
4303
4339
  };
4304
- }), g = S(() => c.value ? "consumer_groups" : void 0), { fetcher: b, fetcherState: O } = dl(r.config, _.value, g.value), I = () => {
4305
- h.value = "";
4306
- }, K = () => {
4340
+ }), y = A(() => u.value ? "consumer_groups" : void 0), { fetcher: b, fetcherState: O } = pl(r.config, _.value, y.value), I = () => {
4341
+ v.value = "";
4342
+ }, F = () => {
4307
4343
  l.value++;
4308
- }, H = E(null), le = (x, Y) => {
4344
+ }, H = E(null), ie = (x, W) => {
4309
4345
  const ae = x.id;
4310
- if (!Y(ae)) {
4346
+ if (!W(ae)) {
4311
4347
  t("copy:error", {
4312
4348
  entity: x,
4313
4349
  field: "id",
@@ -4320,9 +4356,9 @@ const os = {
4320
4356
  field: "id",
4321
4357
  message: i("consumer_groups.copy.success", { val: ae })
4322
4358
  });
4323
- }, D = (x, Y) => {
4359
+ }, R = (x, W) => {
4324
4360
  const ae = JSON.stringify(x);
4325
- if (!Y(ae)) {
4361
+ if (!W(ae)) {
4326
4362
  t("copy:error", {
4327
4363
  entity: x,
4328
4364
  message: i("consumer_groups.errors.copy")
@@ -4342,44 +4378,44 @@ const os = {
4342
4378
  }), B = (x) => ({
4343
4379
  label: i("consumer_groups.actions.edit"),
4344
4380
  to: r.config.getEditRoute(x)
4345
- }), w = E(void 0), M = E(!1), j = E(!1), L = E(""), W = ul(r.config, _.value), ee = (x) => {
4346
- w.value = x, M.value = !0;
4381
+ }), w = E(void 0), j = E(!1), M = E(!1), L = E(""), Y = cl(r.config, _.value), ee = (x) => {
4382
+ w.value = x, j.value = !0;
4347
4383
  }, te = () => {
4348
- M.value = !1;
4384
+ j.value = !1;
4349
4385
  }, ne = async () => {
4350
- var x, Y, ae;
4386
+ var x, W, ae;
4351
4387
  if ((x = w.value) != null && x.id) {
4352
- j.value = !0;
4388
+ M.value = !0;
4353
4389
  try {
4354
- await s.delete(W(w.value.id)), j.value = !1, M.value = !1, l.value++, t("delete:success", w.value);
4390
+ await s.delete(Y(w.value.id)), M.value = !1, j.value = !1, l.value++, t("delete:success", w.value);
4355
4391
  } catch (he) {
4356
- L.value = ((ae = (Y = he.response) == null ? void 0 : Y.data) == null ? void 0 : ae.message) || he.message || i("consumer_groups.errors.delete"), t("error", he);
4392
+ L.value = ((ae = (W = he.response) == null ? void 0 : W.data) == null ? void 0 : ae.message) || he.message || i("consumer_groups.errors.delete"), t("error", he);
4357
4393
  } finally {
4358
- j.value = !1;
4394
+ M.value = !1;
4359
4395
  }
4360
4396
  }
4361
4397
  }, ue = E(!1), Ge = () => {
4362
4398
  ue.value = !0;
4363
4399
  }, C = () => {
4364
4400
  ue.value = !1;
4365
- }, q = (x, Y) => {
4366
- Y || C(), l.value++, t("add:success", x);
4367
- }, ie = () => {
4368
- c.value && Ge();
4369
- }, U = E(void 0), z = E(!1), ye = E(""), _e = (x) => {
4370
- U.value = x, z.value = !0;
4401
+ }, q = (x, W) => {
4402
+ W || C(), l.value++, t("add:success", x);
4403
+ }, se = () => {
4404
+ u.value && Ge();
4405
+ }, P = E(void 0), z = E(!1), ye = E(""), _e = (x) => {
4406
+ P.value = x, z.value = !0;
4371
4407
  }, pe = () => {
4372
- z.value = !1, U.value = void 0;
4373
- }, Be = S(() => {
4374
- var Y, ae, he, Ie;
4375
- let x = `${r.config.apiBaseUrl}${je.list[r.config.app].oneForConsumer}`;
4376
- return r.config.app === "konnect" ? x = x.replace(/{controlPlaneId}/gi, ((Y = r.config) == null ? void 0 : Y.controlPlaneId) || "").replace(/{consumerId}/gi, ((ae = r.config) == null ? void 0 : ae.consumerId) || "") : r.config.app === "kongManager" && (x = x.replace(/\/{workspace}/gi, (he = r.config) != null && he.workspace ? `/${r.config.workspace}` : "").replace(/{consumerId}/gi, ((Ie = r.config) == null ? void 0 : Ie.consumerId) || "")), x;
4377
- }), He = E(!1), fr = async () => {
4378
- if (U.value) {
4408
+ z.value = !1, P.value = void 0;
4409
+ }, Be = A(() => {
4410
+ var W, ae, he, Ie;
4411
+ let x = `${r.config.apiBaseUrl}${Me.list[r.config.app].oneForConsumer}`;
4412
+ return r.config.app === "konnect" ? x = x.replace(/{controlPlaneId}/gi, ((W = r.config) == null ? void 0 : W.controlPlaneId) || "").replace(/{consumerId}/gi, ((ae = r.config) == null ? void 0 : ae.consumerId) || "") : r.config.app === "kongManager" && (x = x.replace(/\/{workspace}/gi, (he = r.config) != null && he.workspace ? `/${r.config.workspace}` : "").replace(/{consumerId}/gi, ((Ie = r.config) == null ? void 0 : Ie.consumerId) || "")), x;
4413
+ }), He = E(!1), mr = async () => {
4414
+ if (P.value) {
4379
4415
  He.value = !0;
4380
4416
  try {
4381
- const x = Be.value.replace(/{consumerGroupId}/gi, U.value.id);
4382
- await s.delete(x), t("remove:success", U.value), pe(), l.value++;
4417
+ const x = Be.value.replace(/{consumerGroupId}/gi, P.value.id);
4418
+ await s.delete(x), t("remove:success", P.value), pe(), l.value++;
4383
4419
  } catch (x) {
4384
4420
  ye.value = x.message || i("consumer_groups.errors.delete"), t("error", x);
4385
4421
  } finally {
@@ -4387,9 +4423,9 @@ const os = {
4387
4423
  }
4388
4424
  }
4389
4425
  }, Bt = E(!0);
4390
- xe(O, (x) => {
4391
- var Y, ae, he, Ie;
4392
- if (Array.isArray((Y = x == null ? void 0 : x.response) == null ? void 0 : Y.data) && (Bt.value = x.response.data.length > 0), x.status === Ke.Error) {
4426
+ Ae(O, (x) => {
4427
+ var W, ae, he, Ie;
4428
+ if (Array.isArray((W = x == null ? void 0 : x.response) == null ? void 0 : W.data) && (Bt.value = x.response.data.length > 0), x.status === Ne.Error) {
4393
4429
  H.value = {
4394
4430
  title: i("consumer_groups.errors.general")
4395
4431
  }, (Ie = (he = (ae = x.error) == null ? void 0 : ae.response) == null ? void 0 : he.data) != null && Ie.message && (H.value.message = x.error.response.data.message), t("error", x.error);
@@ -4398,21 +4434,21 @@ const os = {
4398
4434
  H.value = null;
4399
4435
  });
4400
4436
  const ft = E({
4401
- ctaPath: c.value ? void 0 : r.config.createRoute,
4437
+ ctaPath: u.value ? void 0 : r.config.createRoute,
4402
4438
  ctaText: void 0,
4403
4439
  message: i("consumer_groups.list.empty_state.description"),
4404
4440
  title: i("consumer_groups.title")
4405
4441
  });
4406
4442
  return ct(async () => {
4407
- await r.canCreate() && (ft.value.title = c.value ? i("consumer_groups.list.empty_state.title_for_consumer") : i("consumer_groups.list.empty_state.title"), ft.value.ctaText = c.value ? i("consumer_groups.actions.add_to_group") : i("consumer_groups.actions.create"));
4408
- }), (x, Y) => {
4409
- const ae = P("KButton"), he = P("KBadge"), Ie = P("KTruncate"), ze = P("KDropdownItem"), Lt = P("KClipboardProvider"), mr = P("KPrompt");
4410
- return f(), T("div", vl, [
4411
- N(m(qs), {
4443
+ await r.canCreate() && (ft.value.title = u.value ? i("consumer_groups.list.empty_state.title_for_consumer") : i("consumer_groups.list.empty_state.title"), ft.value.ctaText = u.value ? i("consumer_groups.actions.add_to_group") : i("consumer_groups.actions.create"));
4444
+ }), (x, W) => {
4445
+ const ae = U("KButton"), he = U("KBadge"), Ie = U("KTruncate"), ze = U("KDropdownItem"), Lt = U("KClipboardProvider"), gr = U("KPrompt");
4446
+ return f(), T("div", bl, [
4447
+ N(m(Ls), {
4412
4448
  "cache-identifier": e.cacheIdentifier,
4413
- "disable-pagination": c.value,
4449
+ "disable-pagination": u.value,
4414
4450
  "disable-pagination-page-jump": "",
4415
- "disable-sorting": d.value,
4451
+ "disable-sorting": p.value,
4416
4452
  "empty-state-options": ft.value,
4417
4453
  "enable-entity-actions": "",
4418
4454
  "error-message": H.value,
@@ -4420,83 +4456,83 @@ const os = {
4420
4456
  "fetcher-cache-key": l.value,
4421
4457
  "pagination-type": "offset",
4422
4458
  "preferences-storage-key": "kong-ui-entities-consumer-groups-list",
4423
- query: h.value,
4424
- "row-attributes": p,
4425
- "table-headers": m(y),
4459
+ query: v.value,
4460
+ "row-attributes": d,
4461
+ "table-headers": m(g),
4426
4462
  "use-action-outside": e.useActionOutside,
4427
4463
  onClearSearchInput: I,
4428
- "onClick:row": Y[3] || (Y[3] = (Z) => k(Z)),
4429
- onEmptyStateCtaClicked: ie,
4430
- onSort: K
4464
+ "onClick:row": W[3] || (W[3] = (Z) => k(Z)),
4465
+ onEmptyStateCtaClicked: se,
4466
+ onSort: F
4431
4467
  }, {
4432
- "toolbar-filter": v(() => [
4433
- c.value ? J("", !0) : (f(), R(m(nl), {
4468
+ "toolbar-filter": h(() => [
4469
+ u.value ? J("", !0) : (f(), V(m(rl), {
4434
4470
  key: 0,
4435
- modelValue: h.value,
4436
- "onUpdate:modelValue": Y[0] || (Y[0] = (Z) => h.value = Z),
4437
- config: A.value
4471
+ modelValue: v.value,
4472
+ "onUpdate:modelValue": W[0] || (W[0] = (Z) => v.value = Z),
4473
+ config: S.value
4438
4474
  }, null, 8, ["modelValue", "config"]))
4439
4475
  ]),
4440
- "toolbar-button": v(() => [
4441
- (f(), R(wr, {
4476
+ "toolbar-button": h(() => [
4477
+ (f(), V(wr, {
4442
4478
  disabled: !e.useActionOutside,
4443
4479
  to: "#kong-ui-app-page-header-action-button"
4444
4480
  }, [
4445
4481
  N(m(tt), {
4446
4482
  "auth-function": () => e.canCreate()
4447
4483
  }, {
4448
- default: v(() => [
4449
- Ye(N(ae, {
4484
+ default: h(() => [
4485
+ We(N(ae, {
4450
4486
  appearance: "primary",
4451
4487
  "data-testid": "toolbar-add-consumer-group",
4452
4488
  icon: "plus",
4453
4489
  to: e.config.consumerId ? void 0 : e.config.createRoute,
4454
- onClick: Y[1] || (Y[1] = () => e.config.consumerId ? Ge() : void 0)
4490
+ onClick: W[1] || (W[1] = () => e.config.consumerId ? Ge() : void 0)
4455
4491
  }, {
4456
- default: v(() => [
4457
- X(F(e.config.consumerId ? m(i)("consumer_groups.actions.add_to_group") : m(i)("consumer_groups.list.toolbar_actions.new_consumer_group")), 1)
4492
+ default: h(() => [
4493
+ Q(K(e.config.consumerId ? m(i)("consumer_groups.actions.add_to_group") : m(i)("consumer_groups.list.toolbar_actions.new_consumer_group")), 1)
4458
4494
  ]),
4459
4495
  _: 1
4460
4496
  }, 8, ["to"]), [
4461
- [We, Bt.value]
4497
+ [Ye, Bt.value]
4462
4498
  ])
4463
4499
  ]),
4464
4500
  _: 1
4465
4501
  }, 8, ["auth-function"])
4466
4502
  ], 8, ["disabled"]))
4467
4503
  ]),
4468
- name: v(({ rowValue: Z }) => [
4469
- V("b", null, F(Z ?? "-"), 1)
4504
+ name: h(({ rowValue: Z }) => [
4505
+ D("b", null, K(Z ?? "-"), 1)
4470
4506
  ]),
4471
- consumers_count: v(({ rowValue: Z }) => [
4472
- X(F(Z ?? "-"), 1)
4507
+ consumers_count: h(({ rowValue: Z }) => [
4508
+ Q(K(Z ?? "-"), 1)
4473
4509
  ]),
4474
- tags: v(({ rowValue: Z }) => [
4475
- (Z == null ? void 0 : Z.length) > 0 ? (f(), R(Ie, { key: 0 }, {
4476
- default: v(() => [
4477
- (f(!0), T(Ce, null, ve(Z, (qe) => (f(), R(he, {
4510
+ tags: h(({ rowValue: Z }) => [
4511
+ (Z == null ? void 0 : Z.length) > 0 ? (f(), V(Ie, { key: 0 }, {
4512
+ default: h(() => [
4513
+ (f(!0), T(Ce, null, ve(Z, (qe) => (f(), V(he, {
4478
4514
  key: qe,
4479
- onClick: Y[2] || (Y[2] = rt(() => {
4515
+ onClick: W[2] || (W[2] = rt(() => {
4480
4516
  }, ["stop"]))
4481
4517
  }, {
4482
- default: v(() => [
4483
- X(F(qe), 1)
4518
+ default: h(() => [
4519
+ Q(K(qe), 1)
4484
4520
  ]),
4485
4521
  _: 2
4486
4522
  }, 1024))), 128))
4487
4523
  ]),
4488
4524
  _: 2
4489
- }, 1024)) : (f(), T("span", bl, "-"))
4525
+ }, 1024)) : (f(), T("span", Cl, "-"))
4490
4526
  ]),
4491
- actions: v(({ row: Z }) => [
4527
+ actions: h(({ row: Z }) => [
4492
4528
  N(Lt, null, {
4493
- default: v(({ copyToClipboard: qe }) => [
4529
+ default: h(({ copyToClipboard: qe }) => [
4494
4530
  N(ze, {
4495
4531
  "data-testid": "action-entity-copy-id",
4496
- onClick: (gr) => le(Z, qe)
4532
+ onClick: (yr) => ie(Z, qe)
4497
4533
  }, {
4498
- default: v(() => [
4499
- X(F(m(i)("consumer_groups.actions.copy_id")), 1)
4534
+ default: h(() => [
4535
+ Q(K(m(i)("consumer_groups.actions.copy_id")), 1)
4500
4536
  ]),
4501
4537
  _: 2
4502
4538
  }, 1032, ["onClick"])
@@ -4504,13 +4540,13 @@ const os = {
4504
4540
  _: 2
4505
4541
  }, 1024),
4506
4542
  N(Lt, null, {
4507
- default: v(({ copyToClipboard: qe }) => [
4543
+ default: h(({ copyToClipboard: qe }) => [
4508
4544
  N(ze, {
4509
4545
  "data-testid": "action-entity-copy-json",
4510
- onClick: (gr) => D(Z, qe)
4546
+ onClick: (yr) => R(Z, qe)
4511
4547
  }, {
4512
- default: v(() => [
4513
- X(F(m(i)("consumer_groups.actions.copy_json")), 1)
4548
+ default: h(() => [
4549
+ Q(K(m(i)("consumer_groups.actions.copy_json")), 1)
4514
4550
  ]),
4515
4551
  _: 2
4516
4552
  }, 1032, ["onClick"])
@@ -4520,7 +4556,7 @@ const os = {
4520
4556
  N(m(tt), {
4521
4557
  "auth-function": () => e.canRetrieve(Z)
4522
4558
  }, {
4523
- default: v(() => [
4559
+ default: h(() => [
4524
4560
  N(ze, {
4525
4561
  "data-testid": "action-entity-view",
4526
4562
  "has-divider": "",
@@ -4532,7 +4568,7 @@ const os = {
4532
4568
  N(m(tt), {
4533
4569
  "auth-function": () => e.canEdit(Z)
4534
4570
  }, {
4535
- default: v(() => [
4571
+ default: h(() => [
4536
4572
  N(ze, {
4537
4573
  "data-testid": "action-entity-edit",
4538
4574
  item: B(Z.id)
@@ -4543,15 +4579,15 @@ const os = {
4543
4579
  N(m(tt), {
4544
4580
  "auth-function": () => e.canDelete(Z)
4545
4581
  }, {
4546
- default: v(() => [
4582
+ default: h(() => [
4547
4583
  N(ze, {
4548
4584
  danger: "",
4549
4585
  "data-testid": "action-entity-delete",
4550
4586
  "has-divider": "",
4551
4587
  onClick: () => e.config.consumerId ? _e(Z) : ee(Z)
4552
4588
  }, {
4553
- default: v(() => [
4554
- X(F(e.config.consumerId ? m(i)("consumer_groups.actions.exit") : m(i)("consumer_groups.actions.delete")), 1)
4589
+ default: h(() => [
4590
+ Q(K(e.config.consumerId ? m(i)("consumer_groups.actions.exit") : m(i)("consumer_groups.actions.delete")), 1)
4555
4591
  ]),
4556
4592
  _: 2
4557
4593
  }, 1032, ["onClick"])
@@ -4562,65 +4598,65 @@ const os = {
4562
4598
  _: 1
4563
4599
  }, 8, ["cache-identifier", "disable-pagination", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers", "use-action-outside"]),
4564
4600
  N(m(Vs), {
4565
- "action-pending": j.value,
4601
+ "action-pending": M.value,
4566
4602
  "data-testid": "delete-consumer-group-modal",
4567
4603
  description: m(i)("consumer_groups.delete.description"),
4568
4604
  "entity-name": w.value && (w.value.name || w.value.id),
4569
- "entity-type": m(vn).ConsumerGroup,
4605
+ "entity-type": m(bn).ConsumerGroup,
4570
4606
  error: L.value,
4571
4607
  title: m(i)("consumer_groups.delete.title"),
4572
- visible: M.value,
4608
+ visible: j.value,
4573
4609
  onCancel: te,
4574
4610
  onProceed: ne
4575
4611
  }, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"]),
4576
- e.config.consumerId ? (f(), R(hl, {
4612
+ e.config.consumerId ? (f(), V(vl, {
4577
4613
  key: 0,
4578
4614
  config: e.config,
4579
4615
  "data-testid": "add-to-group-modal",
4580
4616
  visible: ue.value,
4581
- "onAdd:partialSuccess": Y[4] || (Y[4] = (Z) => q(Z, !0)),
4582
- "onAdd:success": Y[5] || (Y[5] = (Z) => q(Z)),
4617
+ "onAdd:partialSuccess": W[4] || (W[4] = (Z) => q(Z, !0)),
4618
+ "onAdd:success": W[5] || (W[5] = (Z) => q(Z)),
4583
4619
  onCancel: C
4584
4620
  }, null, 8, ["config", "visible"])) : J("", !0),
4585
- e.config.consumerId && U.value ? (f(), R(mr, {
4621
+ e.config.consumerId && P.value ? (f(), V(gr, {
4586
4622
  key: 1,
4587
4623
  "data-testid": "exit-group-modal",
4588
4624
  "is-visible": z.value,
4589
4625
  title: m(i)("consumer_groups.consumers.exit.title"),
4590
4626
  type: "danger",
4591
4627
  onCanceled: pe,
4592
- onProceed: fr
4628
+ onProceed: mr
4593
4629
  }, {
4594
- "body-content": v(() => [
4630
+ "body-content": h(() => [
4595
4631
  N(m(a), {
4596
4632
  class: "exit-modal-message",
4597
4633
  keypath: e.config.consumerUsername ? "consumer_groups.consumers.exit.confirmation" : "consumer_groups.consumers.exit.confirmationNoUsername",
4598
4634
  tag: "p"
4599
- }, Me({
4600
- consumerGroup: v(() => [
4601
- V("strong", null, F(U.value.name || U.value.id), 1)
4635
+ }, je({
4636
+ consumerGroup: h(() => [
4637
+ D("strong", null, K(P.value.name || P.value.id), 1)
4602
4638
  ]),
4603
4639
  _: 2
4604
4640
  }, [
4605
4641
  e.config.consumerUsername ? {
4606
4642
  name: "consumer",
4607
- fn: v(() => [
4608
- V("strong", null, F(e.config.consumerUsername), 1)
4643
+ fn: h(() => [
4644
+ D("strong", null, K(e.config.consumerUsername), 1)
4609
4645
  ]),
4610
4646
  key: "0"
4611
4647
  } : void 0
4612
4648
  ]), 1032, ["keypath"]),
4613
- V("p", null, F(m(i)("consumer_groups.consumers.exit.description")), 1)
4649
+ D("p", null, K(m(i)("consumer_groups.consumers.exit.description")), 1)
4614
4650
  ]),
4615
4651
  _: 1
4616
4652
  }, 8, ["is-visible", "title"])) : J("", !0)
4617
4653
  ]);
4618
4654
  };
4619
4655
  }
4620
- }), Bl = /* @__PURE__ */ Nt(Cl, [["__scopeId", "data-v-12149d54"]]), kl = { class: "kong-ui-entities-consumer-group-form" }, wl = { class: "select-item-label" }, _l = {
4656
+ }), ql = /* @__PURE__ */ Kt(kl, [["__scopeId", "data-v-12149d54"]]), wl = { class: "kong-ui-entities-consumer-group-form" }, _l = { class: "select-item-label" }, Il = {
4621
4657
  key: 0,
4622
4658
  class: "select-item-desc"
4623
- }, Il = /* @__PURE__ */ oe({
4659
+ }, Sl = /* @__PURE__ */ oe({
4624
4660
  __name: "ConsumerGroupForm",
4625
4661
  props: {
4626
4662
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -4639,7 +4675,7 @@ const os = {
4639
4675
  emits: ["update", "error", "loading"],
4640
4676
  setup(e, { emit: n }) {
4641
4677
  var ne, ue, Ge;
4642
- const t = e, r = n, { i18n: { t: a } } = dt.useI18n(), i = It(), o = Pt({
4678
+ const t = e, r = n, { i18n: { t: a } } = dt.useI18n(), i = It(), o = Ut({
4643
4679
  fields: {
4644
4680
  name: "",
4645
4681
  tags: "",
@@ -4647,146 +4683,146 @@ const os = {
4647
4683
  },
4648
4684
  errorMessage: "",
4649
4685
  readonly: !1
4650
- }), s = Pt({
4686
+ }), s = Ut({
4651
4687
  name: "",
4652
4688
  tags: "",
4653
4689
  consumers: []
4654
4690
  }), {
4655
4691
  debouncedQueryChange: l,
4656
- loading: c,
4657
- error: d,
4658
- loadItems: u,
4659
- results: y
4660
- } = pr(t.config, (ue = je.form[(ne = t.config) == null ? void 0 : ne.app]) == null ? void 0 : ue.consumersList, "", {
4692
+ loading: u,
4693
+ error: p,
4694
+ loadItems: c,
4695
+ results: g
4696
+ } = fr(t.config, (ue = Me.form[(ne = t.config) == null ? void 0 : ne.app]) == null ? void 0 : ue.consumersList, "", {
4661
4697
  fetchedItemsKey: "data",
4662
4698
  searchKeys: ["username", "custom_id", "id"]
4663
- }), { axiosInstance: p } = Ft({
4699
+ }), { axiosInstance: d } = Nt({
4664
4700
  headers: (Ge = t.config) == null ? void 0 : Ge.requestHeaders
4665
- }), { getMessageFromError: _ } = cl(), h = S(() => y.value.map((C) => ({
4701
+ }), { getMessageFromError: _ } = dl(), v = A(() => g.value.map((C) => ({
4666
4702
  label: C.username || C.custom_id,
4667
4703
  value: C.id,
4668
4704
  selected: o.fields.consumers.includes(C.id),
4669
4705
  data: C
4670
4706
  // we need this to determine whether or not to show the description text
4671
- }))), A = S(() => {
4707
+ }))), S = A(() => {
4672
4708
  var C, q;
4673
- return (q = je.form[(C = t.config) == null ? void 0 : C.app]) == null ? void 0 : q.edit;
4674
- }), g = S(() => t.consumerGroupId ? nt.Edit : nt.Create), b = S(() => !!o.fields.name && !k.value), O = S(() => JSON.stringify(o.fields) !== JSON.stringify(s)), I = (C, q = "", ie = "") => {
4709
+ return (q = Me.form[(C = t.config) == null ? void 0 : C.app]) == null ? void 0 : q.edit;
4710
+ }), y = A(() => t.consumerGroupId ? nt.Edit : nt.Create), b = A(() => !!o.fields.name && !k.value), O = A(() => JSON.stringify(o.fields) !== JSON.stringify(s)), I = (C, q = "", se = "") => {
4675
4711
  var z, ye, _e, pe, Be, He;
4676
- let U = `${(z = t.config) == null ? void 0 : z.apiBaseUrl}${je.form[(ye = t.config) == null ? void 0 : ye.app][C]}`;
4677
- return ((_e = t.config) == null ? void 0 : _e.app) === "konnect" ? U = U.replace(/{controlPlaneId}/gi, ((pe = t.config) == null ? void 0 : pe.controlPlaneId) || "") : ((Be = t.config) == null ? void 0 : Be.app) === "kongManager" && (U = U.replace(/\/{workspace}/gi, (He = t.config) != null && He.workspace ? `/${t.config.workspace}` : "")), U = U.replace(/{id}/gi, q || t.consumerGroupId), (C === "addConsumer" || C === "removeConsumer") && (U = U.replace(/{consumerId}/gi, ie)), U;
4678
- }, K = () => {
4712
+ let P = `${(z = t.config) == null ? void 0 : z.apiBaseUrl}${Me.form[(ye = t.config) == null ? void 0 : ye.app][C]}`;
4713
+ return ((_e = t.config) == null ? void 0 : _e.app) === "konnect" ? P = P.replace(/{controlPlaneId}/gi, ((pe = t.config) == null ? void 0 : pe.controlPlaneId) || "") : ((Be = t.config) == null ? void 0 : Be.app) === "kongManager" && (P = P.replace(/\/{workspace}/gi, (He = t.config) != null && He.workspace ? `/${t.config.workspace}` : "")), P = P.replace(/{id}/gi, q || t.consumerGroupId), (C === "addConsumer" || C === "removeConsumer") && (P = P.replace(/{consumerId}/gi, se)), P;
4714
+ }, F = () => {
4679
4715
  var C;
4680
4716
  i.push(((C = t.config) == null ? void 0 : C.cancelRoute) || { name: "consumer-group-list" });
4681
4717
  }, H = (C) => {
4682
4718
  r("error", C);
4683
- }, le = (C) => {
4719
+ }, ie = (C) => {
4684
4720
  r("loading", C);
4685
- }, D = async (C) => {
4686
- var ie, U, z, ye, _e;
4687
- o.fields.name = ((ie = C == null ? void 0 : C.item) == null ? void 0 : ie.name) || ((U = C == null ? void 0 : C.consumer_group) == null ? void 0 : U.name) || (C == null ? void 0 : C.name) || "";
4721
+ }, R = async (C) => {
4722
+ var se, P, z, ye, _e;
4723
+ o.fields.name = ((se = C == null ? void 0 : C.item) == null ? void 0 : se.name) || ((P = C == null ? void 0 : C.consumer_group) == null ? void 0 : P.name) || (C == null ? void 0 : C.name) || "";
4688
4724
  const q = ((z = C == null ? void 0 : C.item) == null ? void 0 : z.tags) || (C == null ? void 0 : C.consumer_group.tags) || (C == null ? void 0 : C.tags) || [];
4689
4725
  if (o.fields.tags = (q == null ? void 0 : q.join(", ")) || "", "consumers" in C)
4690
4726
  o.fields.consumers = ((ye = C == null ? void 0 : C.consumers) == null ? void 0 : ye.map((pe) => pe.id)) || [];
4691
4727
  else
4692
4728
  try {
4693
- const { data: pe } = await p.get(I("getConsumers"));
4729
+ const { data: pe } = await d.get(I("getConsumers"));
4694
4730
  o.fields.consumers = "consumers" in pe ? (_e = pe == null ? void 0 : pe.consumers) == null ? void 0 : _e.map((Be) => Be.id) : [];
4695
4731
  } catch (pe) {
4696
- M(pe);
4732
+ j(pe);
4697
4733
  }
4698
4734
  Object.assign(s, o.fields);
4699
- }, k = S(() => /^[0-9a-zA-Z.\-_~]*$/.test(o.fields.name) ? "" : a("consumer_groups.form.validation_errors.name")), G = () => {
4735
+ }, k = A(() => /^[0-9a-zA-Z.\-_~]*$/.test(o.fields.name) ? "" : a("consumer_groups.form.validation_errors.name")), G = () => {
4700
4736
  var C, q;
4701
4737
  return {
4702
4738
  name: o.fields.name,
4703
- tags: (q = (C = o.fields.tags.split(",")) == null ? void 0 : C.map((ie) => String(ie || "").trim())) == null ? void 0 : q.filter((ie) => ie !== "")
4739
+ tags: (q = (C = o.fields.tags.split(",")) == null ? void 0 : C.map((se) => String(se || "").trim())) == null ? void 0 : q.filter((se) => se !== "")
4704
4740
  };
4705
- }, B = async (C, q = "") => await p.post(I("addConsumer", q, C), { consumer: C }), w = async (C, q = "") => await p.delete(I("removeConsumer", q, C)), M = (C) => {
4741
+ }, B = async (C, q = "") => await d.post(I("addConsumer", q, C), { consumer: C }), w = async (C, q = "") => await d.delete(I("removeConsumer", q, C)), j = (C) => {
4706
4742
  o.errorMessage = _(C), r("error", C);
4707
- }, j = (C = t.consumerGroupId) => {
4743
+ }, M = (C = t.consumerGroupId) => {
4708
4744
  Object.assign(s, o.fields), r("update", { ...o.fields, id: C });
4709
- }, L = (C, q, ie = t.consumerGroupId) => {
4710
- const U = C == null ? void 0 : C.find((z) => z.status !== "fulfilled");
4711
- U ? M({
4712
- code: U.status,
4745
+ }, L = (C, q, se = t.consumerGroupId) => {
4746
+ const P = C == null ? void 0 : C.find((z) => z.status !== "fulfilled");
4747
+ P ? j({
4748
+ code: P.status,
4713
4749
  message: q
4714
- }) : j(ie);
4715
- }, W = async () => {
4750
+ }) : M(se);
4751
+ }, Y = async () => {
4716
4752
  let C = "";
4717
4753
  try {
4718
- const { data: q } = await p.post(I("create"), G());
4754
+ const { data: q } = await d.post(I("create"), G());
4719
4755
  C = "item" in q ? q.item.id : q.id;
4720
4756
  } catch (q) {
4721
- M(q);
4757
+ j(q);
4722
4758
  }
4723
4759
  if (o.fields.consumers.length > 0 && C)
4724
4760
  try {
4725
- const q = o.fields.consumers.map((U) => B(U, C)), ie = await Promise.allSettled(q);
4726
- L(ie, a("consumer_groups.errors.add_consumer"), C);
4761
+ const q = o.fields.consumers.map((P) => B(P, C)), se = await Promise.allSettled(q);
4762
+ L(se, a("consumer_groups.errors.add_consumer"), C);
4727
4763
  } catch (q) {
4728
- M(q);
4764
+ j(q);
4729
4765
  }
4730
4766
  else
4731
- o.fields.consumers.length === 0 && C && j(C);
4767
+ o.fields.consumers.length === 0 && C && M(C);
4732
4768
  }, ee = async () => {
4733
- var ie;
4769
+ var se;
4734
4770
  try {
4735
- ((ie = t.config) == null ? void 0 : ie.app) === "konnect" ? await p.put(I("edit"), G()) : await p.patch(I("edit"), G());
4736
- } catch (U) {
4737
- M(U);
4771
+ ((se = t.config) == null ? void 0 : se.app) === "konnect" ? await d.put(I("edit"), G()) : await d.patch(I("edit"), G());
4772
+ } catch (P) {
4773
+ j(P);
4738
4774
  }
4739
- const C = o.fields.consumers.filter((U) => !s.consumers.includes(U)), q = s.consumers.filter((U) => !o.fields.consumers.includes(U));
4775
+ const C = o.fields.consumers.filter((P) => !s.consumers.includes(P)), q = s.consumers.filter((P) => !o.fields.consumers.includes(P));
4740
4776
  if (q.length === 0 && C.length === 0)
4741
- j();
4777
+ M();
4742
4778
  else {
4743
4779
  if (q.length > 0)
4744
4780
  try {
4745
- const U = q.map((ye) => w(ye)), z = await Promise.allSettled(U);
4781
+ const P = q.map((ye) => w(ye)), z = await Promise.allSettled(P);
4746
4782
  L(z, a("consumer_groups.errors.remove_consumer"));
4747
- } catch (U) {
4748
- M(U);
4783
+ } catch (P) {
4784
+ j(P);
4749
4785
  }
4750
4786
  if (C.length > 0)
4751
4787
  try {
4752
- const U = C.map((ye) => B(ye)), z = await Promise.allSettled(U);
4788
+ const P = C.map((ye) => B(ye)), z = await Promise.allSettled(P);
4753
4789
  L(z, a("consumer_groups.errors.add_consumer"));
4754
- } catch (U) {
4755
- M(U);
4790
+ } catch (P) {
4791
+ j(P);
4756
4792
  }
4757
4793
  }
4758
4794
  }, te = async () => {
4759
4795
  try {
4760
- o.readonly = !0, g.value === nt.Create ? await W() : await ee();
4796
+ o.readonly = !0, y.value === nt.Create ? await Y() : await ee();
4761
4797
  } finally {
4762
4798
  o.readonly = !1;
4763
4799
  }
4764
4800
  };
4765
4801
  return ct(async () => {
4766
- await u();
4802
+ await c();
4767
4803
  }), (C, q) => {
4768
- const ie = P("KInput"), U = P("KMultiselect");
4769
- return f(), T("div", kl, [
4804
+ const se = U("KInput"), P = U("KMultiselect");
4805
+ return f(), T("div", wl, [
4770
4806
  N(m(Ms), {
4771
4807
  "can-submit": b.value && O.value,
4772
4808
  config: e.config,
4773
4809
  "edit-id": e.consumerGroupId,
4774
- "error-message": o.errorMessage || m(d) || k.value,
4775
- "fetch-url": A.value,
4810
+ "error-message": o.errorMessage || m(p) || k.value,
4811
+ "fetch-url": S.value,
4776
4812
  "is-readonly": o.readonly,
4777
- onCancel: K,
4813
+ onCancel: F,
4778
4814
  "onFetch:error": q[3] || (q[3] = (z) => H(z)),
4779
- "onFetch:success": D,
4780
- onLoading: q[4] || (q[4] = (z) => le(z)),
4815
+ "onFetch:success": R,
4816
+ onLoading: q[4] || (q[4] = (z) => ie(z)),
4781
4817
  onSubmit: te
4782
4818
  }, {
4783
- default: v(() => [
4819
+ default: h(() => [
4784
4820
  N(m(fn), {
4785
4821
  description: m(a)("consumer_groups.form.general_info.description"),
4786
4822
  title: m(a)("consumer_groups.form.general_info.title")
4787
4823
  }, {
4788
- default: v(() => [
4789
- N(ie, {
4824
+ default: h(() => [
4825
+ N(se, {
4790
4826
  modelValue: o.fields.name,
4791
4827
  "onUpdate:modelValue": q[0] || (q[0] = (z) => o.fields.name = z),
4792
4828
  modelModifiers: { trim: !0 },
@@ -4797,7 +4833,7 @@ const os = {
4797
4833
  required: "",
4798
4834
  type: "text"
4799
4835
  }, null, 8, ["modelValue", "label", "placeholder"]),
4800
- N(ie, {
4836
+ N(se, {
4801
4837
  modelValue: o.fields.tags,
4802
4838
  "onUpdate:modelValue": q[1] || (q[1] = (z) => o.fields.tags = z),
4803
4839
  modelModifiers: { trim: !0 },
@@ -4820,25 +4856,25 @@ const os = {
4820
4856
  "has-divider": "",
4821
4857
  title: m(a)("consumer_groups.form.consumers.title")
4822
4858
  }, {
4823
- default: v(() => [
4824
- N(U, {
4859
+ default: h(() => [
4860
+ N(P, {
4825
4861
  modelValue: o.fields.consumers,
4826
4862
  "onUpdate:modelValue": q[2] || (q[2] = (z) => o.fields.consumers = z),
4827
4863
  appearance: "select",
4828
4864
  autosuggest: "",
4829
4865
  "expand-selected": "",
4830
- items: h.value,
4866
+ items: v.value,
4831
4867
  label: m(a)("consumer_groups.form.fields.consumers.label"),
4832
- loading: m(c),
4868
+ loading: m(u),
4833
4869
  placeholder: m(a)("consumer_groups.form.fields.consumers.placeholder"),
4834
4870
  width: "auto",
4835
4871
  onQueryChange: m(l)
4836
4872
  }, {
4837
- "item-template": v(({ item: z }) => {
4873
+ "item-template": h(({ item: z }) => {
4838
4874
  var ye, _e, pe;
4839
4875
  return [
4840
- V("div", wl, F(z.label), 1),
4841
- (ye = z == null ? void 0 : z.data) != null && ye.username && ((_e = z == null ? void 0 : z.data) != null && _e.custom_id) ? (f(), T("div", _l, F((pe = z == null ? void 0 : z.data) == null ? void 0 : pe.custom_id), 1)) : J("", !0)
4876
+ D("div", _l, K(z.label), 1),
4877
+ (ye = z == null ? void 0 : z.data) != null && ye.username && ((_e = z == null ? void 0 : z.data) != null && _e.custom_id) ? (f(), T("div", Il, K((pe = z == null ? void 0 : z.data) == null ? void 0 : pe.custom_id), 1)) : J("", !0)
4842
4878
  ];
4843
4879
  }),
4844
4880
  _: 1
@@ -4852,7 +4888,7 @@ const os = {
4852
4888
  ]);
4853
4889
  };
4854
4890
  }
4855
- }), ql = /* @__PURE__ */ Nt(Il, [["__scopeId", "data-v-102d40d2"]]), Al = { class: "kong-ui-consumer-group-entity-config-card" }, Ll = /* @__PURE__ */ oe({
4891
+ }), Ll = /* @__PURE__ */ Kt(Sl, [["__scopeId", "data-v-102d40d2"]]), Al = { class: "kong-ui-consumer-group-entity-config-card" }, Ul = /* @__PURE__ */ oe({
4856
4892
  __name: "ConsumerGroupConfigCard",
4857
4893
  props: {
4858
4894
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -4879,7 +4915,7 @@ const os = {
4879
4915
  },
4880
4916
  emits: ["loading", "fetch:error", "fetch:success", "copy:success"],
4881
4917
  setup(e) {
4882
- const n = e, { i18n: { t } } = dt.useI18n(), r = S(() => je.form[n.config.app].edit), a = E({
4918
+ const n = e, { i18n: { t } } = dt.useI18n(), r = A(() => Me.form[n.config.app].edit), a = E({
4883
4919
  id: {},
4884
4920
  name: {},
4885
4921
  created_at: {},
@@ -4889,7 +4925,7 @@ const os = {
4889
4925
  }
4890
4926
  });
4891
4927
  return (i, o) => (f(), T("div", Al, [
4892
- N(m(Ss), {
4928
+ N(m(Ts), {
4893
4929
  config: e.config,
4894
4930
  "config-card-doc": e.configCardDoc,
4895
4931
  "config-schema": a.value,
@@ -4905,7 +4941,7 @@ const os = {
4905
4941
  }
4906
4942
  });
4907
4943
  export {
4908
- Ll as ConsumerGroupConfigCard,
4909
- ql as ConsumerGroupForm,
4910
- Bl as ConsumerGroupList
4944
+ Ul as ConsumerGroupConfigCard,
4945
+ Ll as ConsumerGroupForm,
4946
+ ql as ConsumerGroupList
4911
4947
  };