@kong-ui-public/entities-consumers 2.2.16-pr.759.723fd99b.0 → 2.2.16

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 ne, ref as E, computed as T, watch as ve, renderSlot as Z, createCommentVNode as z, unref as m, useSlots as Ze, onBeforeMount as gt, resolveComponent as D, openBlock as f, createBlock as G, createSlots as ke, withCtx as y, createElementVNode as F, createTextVNode as W, toDisplayString as j, createVNode as O, createElementBlock as $, renderList as pe, Fragment as me, normalizeClass as Ie, withModifiers as Ge, withDirectives as Fe, vShow as Le, useCssVars as cn, resolveDynamicComponent as Ne, normalizeProps as ha, guardReactiveProps as va, mergeProps as st, onMounted as ba, onUnmounted as Ca, normalizeStyle as dn, inject as ka, pushScopeId as pn, popScopeId as fn, Teleport as wa, reactive as Bt } from "vue";
1
+ import { defineComponent as ne, ref as E, computed as $, watch as ve, renderSlot as Z, createCommentVNode as z, unref as m, useSlots as Ze, onBeforeMount as gt, resolveComponent as D, openBlock as f, createBlock as R, createSlots as ke, withCtx as g, createElementVNode as F, createTextVNode as W, toDisplayString as j, createVNode as O, createElementBlock as T, renderList as pe, Fragment as me, normalizeClass as Ie, withModifiers as Ge, withDirectives as Fe, vShow as Le, useCssVars as cn, resolveDynamicComponent as xe, normalizeProps as ya, guardReactiveProps as ha, mergeProps as st, onMounted as va, onUnmounted as ba, normalizeStyle as dn, inject as Ca, pushScopeId as pn, popScopeId as fn, reactive as Bt } from "vue";
2
2
  import { useRouter as yt } from "vue-router";
3
3
  import { createI18n as ht, i18nTComponent as mn } from "@kong-ui-public/i18n";
4
- import Ia from "axios";
5
- import { BadgeMethodAppearances as _a } from "@kong/kongponents";
6
- const Sa = {
4
+ import ka from "axios";
5
+ import { BadgeMethodAppearances as wa } from "@kong/kongponents";
6
+ const Ia = {
7
7
  list: {
8
8
  table_headers: {
9
9
  username: "Username",
@@ -98,11 +98,11 @@ const Sa = {
98
98
  tooltip: "An optional set of strings associated with the Consumer for grouping and filtering."
99
99
  }
100
100
  }
101
- }, Aa = {
102
- consumers: Sa
101
+ }, _a = {
102
+ consumers: Ia
103
103
  };
104
- function xa() {
105
- const e = ht("en-us", Aa);
104
+ function Sa() {
105
+ const e = ht("en-us", _a);
106
106
  return {
107
107
  i18n: e,
108
108
  i18nT: mn(e)
@@ -110,8 +110,8 @@ function xa() {
110
110
  };
111
111
  }
112
112
  const Qe = {
113
- useI18n: xa
114
- }, at = "/api/runtime_groups/{controlPlaneId}", $e = "/{workspace}", xe = {
113
+ useI18n: Sa
114
+ }, at = "/api/runtime_groups/{controlPlaneId}", je = "/{workspace}", Te = {
115
115
  list: {
116
116
  konnect: {
117
117
  all: "/v2/control-planes/{controlPlaneId}/core-entities/consumers",
@@ -119,9 +119,9 @@ const Qe = {
119
119
  oneForConsumerGroup: "/v2/control-planes/{controlPlaneId}/core-entities/consumer_groups/{consumerGroupId}/consumers/{consumerId}"
120
120
  },
121
121
  kongManager: {
122
- all: `${$e}/consumers`,
123
- forConsumerGroup: `${$e}/consumer_groups/{consumerGroupId}/consumers`,
124
- oneForConsumerGroup: `${$e}/consumer_groups/{consumerGroupId}/consumers/{consumerId}`
122
+ all: `${je}/consumers`,
123
+ forConsumerGroup: `${je}/consumer_groups/{consumerGroupId}/consumers`,
124
+ oneForConsumerGroup: `${je}/consumer_groups/{consumerGroupId}/consumers/{consumerId}`
125
125
  }
126
126
  },
127
127
  form: {
@@ -131,23 +131,23 @@ const Qe = {
131
131
  edit: `${at}/consumers/{id}`
132
132
  },
133
133
  kongManager: {
134
- validate: `${$e}/schemas/consumers/validate`,
135
- create: `${$e}/consumers`,
136
- edit: `${$e}/consumers/{id}`
134
+ validate: `${je}/schemas/consumers/validate`,
135
+ create: `${je}/consumers`,
136
+ edit: `${je}/consumers/{id}`
137
137
  }
138
138
  }
139
139
  };
140
140
  var gn = /* @__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))(gn || {}), ut = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(ut || {}), Se = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(Se || {}), ee = /* @__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))(ee || {}), de = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(de || {});
141
141
  function vt(e = {}) {
142
142
  return {
143
- axiosInstance: Ia.create({
143
+ axiosInstance: ka.create({
144
144
  withCredentials: !0,
145
145
  timeout: 3e4,
146
146
  ...e
147
147
  })
148
148
  };
149
149
  }
150
- function Ta() {
150
+ function Aa() {
151
151
  return {
152
152
  debounce: (e, n) => {
153
153
  let t;
@@ -159,12 +159,12 @@ function Ta() {
159
159
  }
160
160
  };
161
161
  }
162
- const rt = "khcp-user-table-preferences", $a = {
162
+ const rt = "khcp-user-table-preferences", xa = {
163
163
  pageSize: 30,
164
164
  sortColumnKey: void 0,
165
165
  sortColumnOrder: void 0
166
166
  };
167
- function ja() {
167
+ function Ta() {
168
168
  const e = (t) => {
169
169
  if (typeof t == "string")
170
170
  try {
@@ -188,24 +188,24 @@ function ja() {
188
188
  },
189
189
  getTablePreferences: (t) => {
190
190
  const a = n();
191
- return (a == null ? void 0 : a.get(t)) || void 0 || $a;
191
+ return (a == null ? void 0 : a.get(t)) || void 0 || xa;
192
192
  },
193
193
  deleteAllTablePreferences: () => {
194
194
  localStorage.removeItem(rt);
195
195
  }
196
196
  };
197
197
  }
198
- const Ma = {
198
+ const $a = {
199
199
  actions: {
200
200
  copyId: "Copy ID",
201
201
  copied_id: 'Copied "{id}" to the clipboard',
202
202
  copyToClipboard: "Copied successfully!",
203
203
  copyToClipboardFailed: "Failed to copy to the clipboard"
204
204
  }
205
- }, Oa = {
205
+ }, ja = {
206
206
  message: "Are you sure you want to delete this {entityType}?",
207
207
  messageWithName: "Are you sure you want to delete this {entityType} {entityName}?"
208
- }, Ea = {
208
+ }, Ma = {
209
209
  actions: {
210
210
  save: "Save",
211
211
  cancel: "Cancel",
@@ -214,13 +214,13 @@ const Ma = {
214
214
  errors: {
215
215
  edit: "The entity could not be edited at this time."
216
216
  }
217
- }, Na = {
217
+ }, Oa = {
218
218
  emptyState: {
219
219
  noSearchResultsTitle: "No results found",
220
220
  noSearchResultsMessage: "Please adjust the criteria and try again.",
221
221
  noSearchResultsCtaText: "Clear"
222
222
  }
223
- }, Ka = {
223
+ }, Ea = {
224
224
  title: "Configuration",
225
225
  actions: {
226
226
  copy: "Copy JSON"
@@ -258,7 +258,7 @@ const Ma = {
258
258
  entryTitle: "Entry {index}",
259
259
  structuredFormat: "Structured"
260
260
  }
261
- }, qa = {
261
+ }, Na = {
262
262
  filterButtonText: "Filter",
263
263
  fieldLabel: "Filter by:",
264
264
  inputPlaceholder: "Enter a value",
@@ -266,15 +266,15 @@ const Ma = {
266
266
  applyButtonText: "Apply",
267
267
  clearButtonText: "Clear",
268
268
  clearAllButtonText: "Clear all filters"
269
- }, Ba = {
269
+ }, Ka = {
270
270
  errors: {
271
271
  fetch: "Could not fetch available items",
272
272
  invalid: "Please select a valid value"
273
273
  }
274
- }, Fa = {
274
+ }, qa = {
275
275
  unexpected: "An unexpected error has occurred",
276
276
  dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.'
277
- }, La = {
277
+ }, Ba = {
278
278
  enable: {
279
279
  title: "Enable {entityType}",
280
280
  message: "Are you sure you want to enable the {entityType} {entityName}?",
@@ -285,19 +285,19 @@ const Ma = {
285
285
  message: "Are you sure you want to disable the {entityType} {entityName}?",
286
286
  confirmText: "Yes, disable"
287
287
  }
288
- }, Ua = {
289
- global: Ma,
290
- deleteModal: Oa,
291
- baseForm: Ea,
292
- baseTable: Na,
293
- baseConfigCard: Ka,
294
- filter: qa,
295
- debouncedFilter: Ba,
296
- errors: Fa,
297
- toggleModal: La
288
+ }, Fa = {
289
+ global: $a,
290
+ deleteModal: ja,
291
+ baseForm: Ma,
292
+ baseTable: Oa,
293
+ baseConfigCard: Ea,
294
+ filter: Na,
295
+ debouncedFilter: Ka,
296
+ errors: qa,
297
+ toggleModal: Ba
298
298
  };
299
299
  function bt() {
300
- const e = ht("en-us", Ua);
300
+ const e = ht("en-us", Fa);
301
301
  return {
302
302
  i18n: e,
303
303
  i18nT: mn(e)
@@ -348,69 +348,69 @@ function yn() {
348
348
  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
349
  };
350
350
  }
351
- function Pa(e, n, t, a = {
351
+ function La(e, n, t, a = {
352
352
  fetchedItemsKey: "data",
353
353
  searchKeys: ["id"]
354
354
  }) {
355
355
  t || (t = "100");
356
356
  const { axiosInstance: r } = vt({
357
357
  headers: e.requestHeaders
358
- }), { i18n: { t: o } } = bt(), { debounce: i } = Ta(), l = i(async (S) => {
359
- await L(S);
360
- }, 200), s = E(!1), u = E(""), p = E(""), c = E([]), g = E([]), d = E(void 0), w = m(n);
358
+ }), { i18n: { t: o } } = bt(), { debounce: i } = Aa(), l = i(async (S) => {
359
+ await U(S);
360
+ }, 200), s = E(!1), u = E(""), p = E(""), c = E([]), h = E([]), d = E(void 0), w = m(n);
361
361
  let v = `${e.apiBaseUrl}${w}`;
362
362
  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}` : ""));
363
- const { isValidUuid: _ } = yn(), h = async () => {
363
+ const { isValidUuid: A } = yn(), y = async () => {
364
364
  try {
365
365
  s.value = !0;
366
366
  const { data: S } = await r.get(`${v}?size=${t}`);
367
- S != null && S.next || (d.value = a.fetchedItemsKey in S ? S[a.fetchedItemsKey] : []), g.value = a.fetchedItemsKey in S ? S[a.fetchedItemsKey] : [], c.value = g.value;
367
+ S != null && S.next || (d.value = a.fetchedItemsKey in S ? S[a.fetchedItemsKey] : []), h.value = a.fetchedItemsKey in S ? S[a.fetchedItemsKey] : [], c.value = h.value;
368
368
  } catch {
369
369
  c.value = [], u.value = o("debouncedFilter.errors.fetch");
370
370
  } finally {
371
371
  s.value = !1;
372
372
  }
373
- }, C = E(""), L = async (S) => {
374
- var q, k, U;
373
+ }, C = E(""), U = async (S) => {
374
+ var N, k, q;
375
375
  if (C.value !== S)
376
376
  if (C.value = S || "", d.value === void 0)
377
377
  try {
378
378
  if (s.value = !0, u.value = "", p.value = "", e.app === "konnect") {
379
- let N = v + "";
380
- S && (N += `/${S}`);
381
- const { data: b } = await r.get(`${N}?size=${t}`);
379
+ let B = v + "";
380
+ S && (B += `/${S}`);
381
+ const { data: b } = await r.get(`${B}?size=${t}`);
382
382
  a.fetchedItemsKey in b ? c.value = b[a.fetchedItemsKey] : b != null && b.id ? c.value = [b] : c.value = [];
383
383
  } else if (S) {
384
- const N = [];
385
- _(S) && a.searchKeys.includes("id") ? N.push((async () => {
386
- const { data: B } = await r.get(`${v}/${S}`);
387
- return [B[a.fetchedItemsKey] ?? B];
388
- })()) : N.push(
389
- ...a.searchKeys.filter((B) => B !== "id").map(async (B) => {
390
- const { data: V } = await r.get(`${v}?${B}=${S}`);
384
+ const B = [];
385
+ A(S) && a.searchKeys.includes("id") ? B.push((async () => {
386
+ const { data: K } = await r.get(`${v}/${S}`);
387
+ return [K[a.fetchedItemsKey] ?? K];
388
+ })()) : B.push(
389
+ ...a.searchKeys.filter((K) => K !== "id").map(async (K) => {
390
+ const { data: V } = await r.get(`${v}?${K}=${S}`);
391
391
  return V[a.fetchedItemsKey];
392
392
  })
393
393
  );
394
- const b = await Promise.all(N), I = /* @__PURE__ */ new Set();
395
- c.value = [], (q = b == null ? void 0 : b.forEach) == null || q.call(b, (B) => {
394
+ const b = await Promise.all(B), I = /* @__PURE__ */ new Set();
395
+ c.value = [], (N = b == null ? void 0 : b.forEach) == null || N.call(b, (K) => {
396
396
  var V;
397
- (V = B == null ? void 0 : B.forEach) == null || V.call(B, (x) => {
398
- I.has(x.id) || (I.add(x.id), c.value.push(x));
397
+ (V = K == null ? void 0 : K.forEach) == null || V.call(K, (_) => {
398
+ I.has(_.id) || (I.add(_.id), c.value.push(_));
399
399
  });
400
400
  });
401
401
  } else
402
- c.value = g.value;
403
- } catch (N) {
404
- ((k = N == null ? void 0 : N.response) == null ? void 0 : k.status) === 404 ? p.value = o("debouncedFilter.errors.invalid") : (c.value = [], u.value = o("debouncedFilter.errors.fetch"));
402
+ c.value = h.value;
403
+ } catch (B) {
404
+ ((k = B == null ? void 0 : B.response) == null ? void 0 : k.status) === 404 ? p.value = o("debouncedFilter.errors.invalid") : (c.value = [], u.value = o("debouncedFilter.errors.fetch"));
405
405
  } finally {
406
406
  s.value = !1;
407
407
  }
408
408
  else
409
- s.value = !0, p.value = "", S ? (c.value = (U = d.value) == null ? void 0 : U.filter((N) => {
409
+ s.value = !0, p.value = "", S ? (c.value = (q = d.value) == null ? void 0 : q.filter((B) => {
410
410
  var b;
411
411
  let I = !1;
412
- for (const B of a.searchKeys) {
413
- const V = typeof N[B] == "string" ? (b = N[B]) == null ? void 0 : b.toLowerCase() : N[B];
412
+ for (const K of a.searchKeys) {
413
+ const V = typeof B[K] == "string" ? (b = B[K]) == null ? void 0 : b.toLowerCase() : B[K];
414
414
  V != null && V.includes(S.toLowerCase()) && (I = !0);
415
415
  }
416
416
  return I;
@@ -422,17 +422,17 @@ function Pa(e, n, t, a = {
422
422
  validationError: p,
423
423
  results: c,
424
424
  allRecords: d,
425
- loadItems: h,
425
+ loadItems: y,
426
426
  debouncedQueryChange: l
427
427
  };
428
428
  }
429
- function Da(e, n) {
430
- const t = m(n), a = T(
429
+ function Ua(e, n) {
430
+ const t = m(n), a = $(
431
431
  () => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${t}`) : new URL(t)
432
432
  );
433
433
  return a.value.search = "", (r) => `${a.value.href}/${r}`;
434
434
  }
435
- function Va() {
435
+ function Pa() {
436
436
  const { i18n: { t: e } } = bt();
437
437
  return {
438
438
  getMessageFromError: (n) => {
@@ -460,7 +460,7 @@ function Va() {
460
460
  }
461
461
  };
462
462
  }
463
- function Ra(e) {
463
+ function Da(e) {
464
464
  const n = window.location.origin, t = n.endsWith("/") ? n : `${n}/`;
465
465
  try {
466
466
  const a = e.join("/"), r = `${t}${a}`, o = e.some((i) => i.trim() === "");
@@ -472,16 +472,16 @@ function Ra(e) {
472
472
  }
473
473
  }
474
474
  function hn(e, n) {
475
- const t = E(m(e)), a = E(m(n)), r = T(
475
+ const t = E(m(e)), a = E(m(n)), r = $(
476
476
  () => !!(t.value.app === "konnect" || t.value.isExactMatch)
477
- ), o = T(
477
+ ), o = $(
478
478
  () => a.value.startsWith("/") ? new URL(`${window.location.origin}${a.value}`) : new URL(a.value)
479
479
  );
480
480
  return (i) => {
481
- const { page: l, pageSize: s, offset: u, sortColumnKey: p, sortColumnOrder: c, query: g } = i;
481
+ const { page: l, pageSize: s, offset: u, sortColumnKey: p, sortColumnOrder: c, query: h } = i;
482
482
  try {
483
483
  let d = new URL(o.value.href);
484
- return r.value && g ? (d.search = "", d = t.value.app === "konnect" ? new URL(`${d.href}?filter[name][contains]=${g}`) : new URL(`${d.href}/${g}/`)) : (r.value || new URLSearchParams(g).forEach((w, v) => {
484
+ return r.value && h ? (d.search = "", d = t.value.app === "konnect" ? new URL(`${d.href}?filter[name][contains]=${h}`) : new URL(`${d.href}/${h}/`)) : (r.value || new URLSearchParams(h).forEach((w, v) => {
485
485
  d.searchParams.append(v, w);
486
486
  }), p && d.searchParams.append("sort_by", p), c === "desc" && d.searchParams.append("sort_desc", "1"), d.searchParams.append("size", String(s))), u && l !== 1 && d.searchParams.append("offset", String(u)), d.href;
487
487
  } catch (d) {
@@ -489,7 +489,7 @@ function hn(e, n) {
489
489
  }
490
490
  };
491
491
  }
492
- function Ga(e, n, t = "data") {
492
+ function Va(e, n, t = "data") {
493
493
  const a = m(n), { axiosInstance: r } = vt({
494
494
  headers: e.requestHeaders
495
495
  }), o = hn(e, a), i = E({
@@ -503,7 +503,7 @@ function Ga(e, n, t = "data") {
503
503
  const { data: u } = await r.get(s), p = t && t.replace(/[^\w-_]/gi, "");
504
504
  let c;
505
505
  u[p] && Array.isArray(u[p]) ? c = u[p] : Array.isArray(u) ? c = u : c = Object.keys(u).length ? [u] : [];
506
- const g = {
506
+ const h = {
507
507
  data: c,
508
508
  total: c.length,
509
509
  ...u.offset ? {
@@ -514,8 +514,8 @@ function Ga(e, n, t = "data") {
514
514
  };
515
515
  return i.value = {
516
516
  status: Se.Idle,
517
- response: g
518
- }, g;
517
+ response: h
518
+ }, h;
519
519
  } catch (s) {
520
520
  const u = {
521
521
  data: [],
@@ -533,7 +533,7 @@ function Ga(e, n, t = "data") {
533
533
  }
534
534
  }, fetcherState: i };
535
535
  }
536
- function za() {
536
+ function Ra() {
537
537
  const e = (t, a = "_") => t ? t.split(a).map((r) => r.toLowerCase() === "id" ? r.toUpperCase() : r.charAt(0).toUpperCase() + r.substring(1)).join(" ") : "", n = /(?:^|[\s-:'"])\w/g;
538
538
  return {
539
539
  capitalize: (t) => t ? t.replace(n, (a) => a.toUpperCase()) : "",
@@ -550,24 +550,24 @@ const vn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
550
550
  }, Lt = (e) => e === "*" || e === "x" || e === "X", Ut = (e) => {
551
551
  const n = parseInt(e, 10);
552
552
  return isNaN(n) ? e : n;
553
- }, Ha = (e, n) => typeof e != typeof n ? [String(e), String(n)] : [e, n], Ja = (e, n) => {
553
+ }, Ga = (e, n) => typeof e != typeof n ? [String(e), String(n)] : [e, n], za = (e, n) => {
554
554
  if (Lt(e) || Lt(n))
555
555
  return 0;
556
- const [t, a] = Ha(Ut(e), Ut(n));
556
+ const [t, a] = Ga(Ut(e), Ut(n));
557
557
  return t > a ? 1 : t < a ? -1 : 0;
558
558
  }, Pt = (e, n) => {
559
559
  for (let t = 0; t < Math.max(e.length, n.length); t++) {
560
- const a = Ja(e[t] || "0", n[t] || "0");
560
+ const a = za(e[t] || "0", n[t] || "0");
561
561
  if (a !== 0)
562
562
  return a;
563
563
  }
564
564
  return 0;
565
- }, Wa = (e, n) => {
565
+ }, Ha = (e, n) => {
566
566
  const t = Ft(e), a = Ft(n), r = t.pop(), o = a.pop(), i = Pt(t, a);
567
567
  return i !== 0 ? i : r && o ? Pt(r.split("."), o.split(".")) : r || o ? r ? -1 : 1 : 0;
568
568
  }, Dt = (e, n, t) => {
569
- Ya(t);
570
- const a = Wa(e, n);
569
+ Ja(t);
570
+ const a = Ha(e, n);
571
571
  return bn[t].includes(a);
572
572
  }, bn = {
573
573
  ">": [1],
@@ -576,18 +576,18 @@ const vn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
576
576
  "<=": [-1, 0],
577
577
  "<": [-1],
578
578
  "!=": [-1, 1]
579
- }, Vt = Object.keys(bn), Ya = (e) => {
579
+ }, Vt = Object.keys(bn), Ja = (e) => {
580
580
  if (typeof e != "string")
581
581
  throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
582
582
  if (Vt.indexOf(e) === -1)
583
583
  throw new Error(`Invalid operator, expected one of ${Vt.join("|")}`);
584
- }, Za = (e) => typeof e == "string" && /^[v\d]/.test(e) && vn.test(e);
585
- function Qa(e) {
584
+ }, Wa = (e) => typeof e == "string" && /^[v\d]/.test(e) && vn.test(e);
585
+ function Ya(e) {
586
586
  const { gatewayInfo: n, supportedRange: t } = e;
587
587
  if (!n)
588
588
  return !0;
589
589
  const { edition: a, version: r } = n;
590
- if (!Za(r))
590
+ if (!Wa(r))
591
591
  return console.error("Invalid version"), !1;
592
592
  const o = t[a];
593
593
  if (!o)
@@ -595,48 +595,48 @@ function Qa(e) {
595
595
  const [i, l] = o;
596
596
  return !(i && Dt(r, i, "<") || l && Dt(r, l, ">"));
597
597
  }
598
- function Xa(e) {
598
+ function Za(e) {
599
599
  const n = E(0), t = E(0), a = E(!1);
600
600
  return ve(e, (r) => {
601
601
  r && !a.value && (n.value = r.offsetWidth, t.value = r.scrollWidth, a.value = !0);
602
602
  }), {
603
- isTruncated: T(() => n.value < t.value)
603
+ isTruncated: $(() => n.value < t.value)
604
604
  };
605
605
  }
606
606
  const oe = {
607
607
  useAxios: vt,
608
- useDebouncedFilter: Pa,
609
- useDeleteUrlBuilder: Da,
610
- useErrors: Va,
611
- useExternalLinkCreator: Ra,
612
- useFetcher: Ga,
608
+ useDebouncedFilter: La,
609
+ useDeleteUrlBuilder: Ua,
610
+ useErrors: Pa,
611
+ useExternalLinkCreator: Da,
612
+ useFetcher: Va,
613
613
  useFetchUrlBuilder: hn,
614
614
  useHelpers: yn,
615
- useStringHelpers: za,
615
+ useStringHelpers: Ra,
616
616
  useI18n: bt,
617
- useGatewayFeatureSupported: Qa,
618
- useTruncationDetector: Xa
619
- }, er = {
617
+ useGatewayFeatureSupported: Ya,
618
+ useTruncationDetector: Za
619
+ }, Qa = {
620
620
  fail: "Failed to copy id to clipboard",
621
621
  success: {
622
622
  prefix: "Successfully",
623
623
  content: " copied to clipboard"
624
624
  }
625
- }, tr = "Copy to clipboard", nr = {
626
- message: er,
627
- iconTitle: tr
628
- }, ar = "kong-ui-copy-uuid-notify", Rt = "24px", rr = (e, n) => {
625
+ }, Xa = "Copy to clipboard", er = {
626
+ message: Qa,
627
+ iconTitle: Xa
628
+ }, tr = "kong-ui-copy-uuid-notify", Rt = "24px", nr = (e, n) => {
629
629
  const t = e.__vccOpts || e;
630
630
  for (const [a, r] of n)
631
631
  t[a] = r;
632
632
  return t;
633
- }, or = (e) => (pn("data-v-ac7fcfb4"), e = e(), fn(), e), ir = ["aria-hidden"], lr = {
633
+ }, ar = (e) => (pn("data-v-ac7fcfb4"), e = e(), fn(), e), rr = ["aria-hidden"], or = {
634
634
  key: 0,
635
635
  "data-testid": "kui-icon-svg-title"
636
- }, sr = /* @__PURE__ */ or(() => /* @__PURE__ */ F("path", {
636
+ }, ir = /* @__PURE__ */ ar(() => /* @__PURE__ */ F("path", {
637
637
  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",
638
638
  fill: "currentColor"
639
- }, null, -1)), ur = /* @__PURE__ */ ne({
639
+ }, null, -1)), lr = /* @__PURE__ */ ne({
640
640
  __name: "CopyIcon",
641
641
  props: {
642
642
  /** The accessibility text provided to screen readers */
@@ -688,7 +688,7 @@ const oe = {
688
688
  }
689
689
  },
690
690
  setup(e) {
691
- const n = e, t = T(() => {
691
+ const n = e, t = $(() => {
692
692
  if (typeof n.size == "number" && n.size > 0)
693
693
  return `${n.size}px`;
694
694
  if (typeof n.size == "string") {
@@ -697,7 +697,7 @@ const oe = {
697
697
  return `${o}px`;
698
698
  }
699
699
  return Rt;
700
- }), a = T(() => ({
700
+ }), a = $(() => ({
701
701
  boxSizing: "border-box",
702
702
  color: n.color,
703
703
  display: n.display,
@@ -705,14 +705,14 @@ const oe = {
705
705
  lineHeight: "0",
706
706
  width: t.value
707
707
  }));
708
- return (r, o) => (f(), G(Ne(e.as), {
708
+ return (r, o) => (f(), R(xe(e.as), {
709
709
  "aria-hidden": e.decorative ? "true" : void 0,
710
710
  class: "kui-icon copy-icon",
711
711
  "data-testid": "kui-icon-wrapper-copy-icon",
712
712
  style: dn(a.value)
713
713
  }, {
714
- default: y(() => [
715
- (f(), $("svg", {
714
+ default: g(() => [
715
+ (f(), T("svg", {
716
716
  "aria-hidden": e.decorative ? "true" : void 0,
717
717
  "data-testid": "kui-icon-svg-copy-icon",
718
718
  fill: "none",
@@ -722,14 +722,14 @@ const oe = {
722
722
  width: "100%",
723
723
  xmlns: "http://www.w3.org/2000/svg"
724
724
  }, [
725
- e.title ? (f(), $("title", lr, j(e.title), 1)) : z("", !0),
726
- sr
727
- ], 8, ir))
725
+ e.title ? (f(), T("title", or, j(e.title), 1)) : z("", !0),
726
+ ir
727
+ ], 8, rr))
728
728
  ]),
729
729
  _: 1
730
730
  }, 8, ["aria-hidden", "style"]));
731
731
  }
732
- }), cr = /* @__PURE__ */ rr(ur, [["__scopeId", "data-v-ac7fcfb4"]]), dr = "16px", pr = { class: "kong-ui-copy-uuid" }, fr = ["onClick"], Gt = 15, mr = /* @__PURE__ */ ne({
732
+ }), sr = /* @__PURE__ */ nr(lr, [["__scopeId", "data-v-ac7fcfb4"]]), ur = "16px", cr = { class: "kong-ui-copy-uuid" }, dr = ["onClick"], Gt = 15, pr = /* @__PURE__ */ ne({
733
733
  __name: "CopyUuid",
734
734
  props: {
735
735
  uuid: {
@@ -773,26 +773,26 @@ const oe = {
773
773
  },
774
774
  emits: ["success", "error"],
775
775
  setup(e, { emit: n }) {
776
- const { t } = ht("en-us", nr), a = e, r = n, o = a.notify || ka(ar, () => {
777
- }), i = T(() => a.idTooltip ? {
776
+ const { t } = ht("en-us", er), a = e, r = n, o = a.notify || Ca(tr, () => {
777
+ }), i = $(() => a.idTooltip ? {
778
778
  label: a.idTooltip,
779
779
  positionFixed: !0,
780
780
  placement: "bottomStart"
781
781
  } : {
782
782
  title: a.uuid
783
- }), l = T(() => !!(a.tooltip && a.successTooltip)), s = E(a.tooltip), u = T(() => a.tooltip ? {
783
+ }), l = $(() => !!(a.tooltip && a.successTooltip)), s = E(a.tooltip), u = $(() => a.tooltip ? {
784
784
  label: s.value,
785
785
  positionFixed: !0,
786
786
  maxWidth: "500px",
787
787
  placement: "bottomStart"
788
- } : {}), p = T(() => {
788
+ } : {}), p = $(() => {
789
789
  var d;
790
790
  return a.format === "redacted" ? "*****" : a.format === "deleted" ? `*${(d = a.uuid) == null ? void 0 : d.substring(0, 5)}` : a.uuid;
791
791
  }), c = (d) => {
792
792
  s.value = d, setTimeout(() => {
793
793
  s.value = a.tooltip;
794
794
  }, 1800);
795
- }, g = (d) => {
795
+ }, h = (d) => {
796
796
  var w, v;
797
797
  if (!d(a.uuid)) {
798
798
  typeof o == "function" && o({
@@ -801,17 +801,17 @@ const oe = {
801
801
  }), l.value ? c(t("message.fail")) : r("error", a.uuid);
802
802
  return;
803
803
  }
804
- const _ = ((w = a.uuid) == null ? void 0 : w.length) > Gt, h = a.format === "hidden" || a.format === "redacted" ? t("message.success.prefix") : `"${((v = a.uuid) == null ? void 0 : v.substring(0, Gt)) + (_ ? "..." : "")}"`;
804
+ const A = ((w = a.uuid) == null ? void 0 : w.length) > Gt, y = a.format === "hidden" || a.format === "redacted" ? t("message.success.prefix") : `"${((v = a.uuid) == null ? void 0 : v.substring(0, Gt)) + (A ? "..." : "")}"`;
805
805
  typeof o == "function" && o({
806
806
  type: "success",
807
- message: `${h}${t("message.success.content")}`
807
+ message: `${y}${t("message.success.content")}`
808
808
  }), l.value ? c(a.successTooltip) : r("success", a.uuid);
809
809
  };
810
810
  return (d, w) => {
811
811
  const v = D("KClipboardProvider");
812
- return f(), $("div", pr, [
813
- e.format !== "hidden" ? (f(), G(Ne(e.idTooltip ? "KTooltip" : "div"), st({ key: 0 }, i.value, { "data-testid": "copy-id" }), {
814
- default: y(() => [
812
+ return f(), T("div", cr, [
813
+ e.format !== "hidden" ? (f(), R(xe(e.idTooltip ? "KTooltip" : "div"), st({ key: 0 }, i.value, { "data-testid": "copy-id" }), {
814
+ default: g(() => [
815
815
  F("div", {
816
816
  class: Ie([
817
817
  "uuid-container",
@@ -822,24 +822,24 @@ const oe = {
822
822
  ]),
823
823
  _: 1
824
824
  }, 16)) : z("", !0),
825
- (f(), G(Ne(e.tooltip ? "KTooltip" : "div"), st(u.value, { class: "uuid-icon-wrapper" }), {
826
- default: y(() => [
825
+ (f(), R(xe(e.tooltip ? "KTooltip" : "div"), st(u.value, { class: "uuid-icon-wrapper" }), {
826
+ default: g(() => [
827
827
  O(v, null, {
828
- default: y(({ copyToClipboard: _ }) => [
828
+ default: g(({ copyToClipboard: A }) => [
829
829
  F("span", {
830
830
  "data-testid": "copy-to-clipboard",
831
831
  role: "button",
832
832
  tabindex: "0",
833
- onClick: Ge((h) => g(_), ["stop"])
833
+ onClick: Ge((y) => h(A), ["stop"])
834
834
  }, [
835
- O(m(cr), {
835
+ O(m(sr), {
836
836
  class: "uuid-icon",
837
837
  color: e.iconColor,
838
838
  decorative: !!e.tooltip,
839
- size: m(dr),
839
+ size: m(ur),
840
840
  title: m(t)("iconTitle")
841
841
  }, null, 8, ["color", "decorative", "size", "title"])
842
- ], 8, fr)
842
+ ], 8, dr)
843
843
  ]),
844
844
  _: 1
845
845
  })
@@ -849,15 +849,15 @@ const oe = {
849
849
  ]);
850
850
  };
851
851
  }
852
- }), gr = (e, n) => {
852
+ }), fr = (e, n) => {
853
853
  const t = e.__vccOpts || e;
854
854
  for (const [a, r] of n)
855
855
  t[a] = r;
856
856
  return t;
857
- }, Cn = /* @__PURE__ */ gr(mr, [["__scopeId", "data-v-0c07874b"]]), yr = {
857
+ }, Cn = /* @__PURE__ */ fr(pr, [["__scopeId", "data-v-0c07874b"]]), mr = {
858
858
  key: 0,
859
859
  class: "config-card-fieldset-title"
860
- }, hr = /* @__PURE__ */ ne({
860
+ }, gr = /* @__PURE__ */ ne({
861
861
  __name: "JsonCardItem",
862
862
  props: {
863
863
  item: {
@@ -874,21 +874,21 @@ const oe = {
874
874
  }
875
875
  },
876
876
  setup(e) {
877
- const n = e, { i18n: { t } } = oe.useI18n(), { convertKeyToTitle: a } = oe.useStringHelpers(), r = T(() => n.item.key ?? "json-array-item"), o = T(() => n.item.value ?? n.item), i = T(() => {
877
+ const n = e, { i18n: { t } } = oe.useI18n(), { convertKeyToTitle: a } = oe.useStringHelpers(), r = $(() => n.item.key ?? "json-array-item"), o = $(() => n.item.value ?? n.item), i = $(() => {
878
878
  const s = JSON.parse(JSON.stringify(o.value));
879
879
  return n.isArrayItem && delete s.name, s;
880
- }), l = T(() => {
880
+ }), l = $(() => {
881
881
  var s;
882
882
  return n.isArrayItem ? (s = o.value) != null && s.name ? a(o.value.name, "_") : t("baseConfigCard.general.entryTitle", { index: n.index }) : "";
883
883
  });
884
- return (s, u) => (f(), G(Ne(e.isArrayItem ? "fieldset" : "div"), {
884
+ return (s, u) => (f(), R(xe(e.isArrayItem ? "fieldset" : "div"), {
885
885
  class: Ie(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
886
886
  }, {
887
- default: y(() => [
888
- e.isArrayItem ? (f(), $("legend", yr, [
887
+ default: g(() => [
888
+ e.isArrayItem ? (f(), T("legend", mr, [
889
889
  F("b", null, j(l.value), 1)
890
890
  ])) : z("", !0),
891
- (f(!0), $(me, null, pe(Object.keys(i.value), (p, c) => (f(), G(Ct, {
891
+ (f(!0), T(me, null, pe(Object.keys(i.value), (p, c) => (f(), R(Ct, {
892
892
  key: `${r.value}-property-${c}`,
893
893
  item: {
894
894
  key: p,
@@ -905,7 +905,7 @@ const oe = {
905
905
  for (const [a, r] of n)
906
906
  t[a] = r;
907
907
  return t;
908
- }, kn = /* @__PURE__ */ ge(hr, [["__scopeId", "data-v-68ca83ec"]]), vr = /* @__PURE__ */ ne({
908
+ }, kn = /* @__PURE__ */ ge(gr, [["__scopeId", "data-v-68ca83ec"]]), yr = /* @__PURE__ */ ne({
909
909
  __name: "InternalLinkItem",
910
910
  props: {
911
911
  item: {
@@ -918,13 +918,13 @@ const oe = {
918
918
  const { i18n: { t: n } } = oe.useI18n();
919
919
  return (t, a) => {
920
920
  const r = D("KButton");
921
- return f(), $("div", null, [
921
+ return f(), T("div", null, [
922
922
  O(r, {
923
923
  appearance: "tertiary",
924
924
  class: "navigation-button",
925
925
  onClick: a[0] || (a[0] = (o) => t.$emit("navigation-click", e.item))
926
926
  }, {
927
- default: y(() => [
927
+ default: g(() => [
928
928
  W(j(e.item.value || m(n)("baseConfigCard.commonFields.link")), 1)
929
929
  ]),
930
930
  _: 1
@@ -932,7 +932,7 @@ const oe = {
932
932
  ]);
933
933
  };
934
934
  }
935
- }), br = /* @__PURE__ */ ge(vr, [["__scopeId", "data-v-c96811e5"]]), Cr = /* @__PURE__ */ ne({
935
+ }), hr = /* @__PURE__ */ ge(yr, [["__scopeId", "data-v-c96811e5"]]), vr = /* @__PURE__ */ ne({
936
936
  __name: "StatusBadge",
937
937
  props: {
938
938
  status: {
@@ -944,21 +944,21 @@ const oe = {
944
944
  const { i18n: { t: n } } = oe.useI18n();
945
945
  return (t, a) => {
946
946
  const r = D("KBadge");
947
- return f(), G(r, {
947
+ return f(), R(r, {
948
948
  appearance: e.status ? "success" : "neutral"
949
949
  }, {
950
- default: y(() => [
950
+ default: g(() => [
951
951
  W(j(e.status ? m(n)("baseConfigCard.statusBadge.enabledLabel") : m(n)("baseConfigCard.statusBadge.disabledLabel")), 1)
952
952
  ]),
953
953
  _: 1
954
954
  }, 8, ["appearance"]);
955
955
  };
956
956
  }
957
- }), kr = "#0044f4", wr = "#e0e4ea", Ir = "#3a3f51", _r = "1px", Sr = "20px", Ar = { class: "config-card-details-row" }, xr = ["data-testid"], Tr = ["data-testid"], $r = ["data-testid"], jr = ["data-testid"], Mr = { key: 1 }, Or = ["data-testid"], Er = ["data-testid"], Nr = ["data-testid"], Kr = ["data-testid"], qr = {
957
+ }), br = "#0044f4", Cr = "#e0e4ea", kr = "#3a3f51", wr = "1px", Ir = "20px", _r = { class: "config-card-details-row" }, Sr = ["data-testid"], Ar = ["data-testid"], xr = ["data-testid"], Tr = ["data-testid"], $r = { key: 1 }, jr = ["data-testid"], Mr = ["data-testid"], Or = ["data-testid"], Er = ["data-testid"], Nr = {
958
958
  name: "ConfigCardItem",
959
- components: { CopyUuid: Cn, JsonCardItem: kn, StatusBadge: Cr, InternalLinkItem: br }
960
- }, Br = /* @__PURE__ */ ne({
961
- ...qr,
959
+ components: { CopyUuid: Cn, JsonCardItem: kn, StatusBadge: vr, InternalLinkItem: hr }
960
+ }, Kr = /* @__PURE__ */ ne({
961
+ ...Nr,
962
962
  props: {
963
963
  item: {
964
964
  type: Object,
@@ -978,12 +978,12 @@ const oe = {
978
978
  emits: ["navigation-click"],
979
979
  setup(e, { emit: n }) {
980
980
  cn((w) => ({
981
- "0da74440": p.value ? "none" : `solid ${m(_r)} ${m(wr)}`,
981
+ "0da74440": p.value ? "none" : `solid ${m(wr)} ${m(Cr)}`,
982
982
  "02a039da": u.value && l.value ? "block" : "flex",
983
983
  "690f3ced": u.value && l.value ? "100%" : t.slim ? "50%" : "25%",
984
984
  "691182c8": u.value && l.value ? "100%" : t.slim ? "50%" : "75%"
985
985
  }));
986
- const t = e, a = n, r = Ze(), { i18n: { t: o, formatUnixTimeStamp: i } } = oe.useI18n(), l = T(() => t.item.value !== void 0 && t.item.value !== null && t.item.value !== ""), s = T(() => !!(t.item.tooltip || r["label-tooltip"])), u = T(() => t.item.type === ee.Json || t.item.type === ee.JsonArray), p = T(() => t.item.type === ee.JsonArray), c = T(() => {
986
+ const t = e, a = n, r = Ze(), { i18n: { t: o, formatUnixTimeStamp: i } } = oe.useI18n(), l = $(() => t.item.value !== void 0 && t.item.value !== null && t.item.value !== ""), s = $(() => !!(t.item.tooltip || r["label-tooltip"])), u = $(() => t.item.type === ee.Json || t.item.type === ee.JsonArray), p = $(() => t.item.type === ee.JsonArray), c = $(() => {
987
987
  switch (t.item.type) {
988
988
  case ee.ID:
989
989
  return {
@@ -1109,37 +1109,37 @@ const oe = {
1109
1109
  text: t.item.value
1110
1110
  };
1111
1111
  }
1112
- }), g = E(), { isTruncated: d } = oe.useTruncationDetector(g);
1112
+ }), h = E(), { isTruncated: d } = oe.useTruncationDetector(h);
1113
1113
  return (w, v) => {
1114
- const _ = D("KLabel"), h = D("KBadge"), C = D("KTooltip");
1115
- return f(), $("div", Ar, [
1114
+ const A = D("KLabel"), y = D("KBadge"), C = D("KTooltip");
1115
+ return f(), T("div", _r, [
1116
1116
  F("div", {
1117
1117
  class: "config-card-details-label",
1118
1118
  "data-testid": `${e.item.key}-label`
1119
1119
  }, [
1120
1120
  Z(w.$slots, "label", { item: e.item }, () => [
1121
- O(_, { "tooltip-attributes": { maxWidth: "500px" } }, ke({
1122
- default: y(() => [
1121
+ O(A, { "tooltip-attributes": { maxWidth: "500px" } }, ke({
1122
+ default: g(() => [
1123
1123
  W(j(e.item.label) + " ", 1)
1124
1124
  ]),
1125
1125
  _: 2
1126
1126
  }, [
1127
1127
  s.value ? {
1128
1128
  name: "tooltip",
1129
- fn: y(() => [
1129
+ fn: g(() => [
1130
1130
  F("div", {
1131
1131
  "data-testid": `${e.item.key}-label-tooltip`
1132
1132
  }, [
1133
1133
  Z(w.$slots, "label-tooltip", {}, () => [
1134
1134
  W(j(e.item.tooltip), 1)
1135
1135
  ], !0)
1136
- ], 8, Tr)
1136
+ ], 8, Ar)
1137
1137
  ]),
1138
1138
  key: "0"
1139
1139
  } : void 0
1140
1140
  ]), 1024)
1141
1141
  ], !0)
1142
- ], 8, xr),
1142
+ ], 8, Sr),
1143
1143
  F("div", {
1144
1144
  class: "config-card-details-value",
1145
1145
  "data-testid": `${e.item.key}-property-value`
@@ -1147,71 +1147,71 @@ const oe = {
1147
1147
  Z(w.$slots, e.item.key, {
1148
1148
  rowValue: e.item.value
1149
1149
  }, () => [
1150
- l.value ? (f(), $("div", Mr, [
1151
- (f(), G(Ne(c.value.tag), ha(va(c.value.attrs)), {
1152
- default: y(() => [
1153
- c.value.additionalComponent === "KBadge" ? (f(), $("div", {
1150
+ l.value ? (f(), T("div", $r, [
1151
+ (f(), R(xe(c.value.tag), ya(ha(c.value.attrs)), {
1152
+ default: g(() => [
1153
+ c.value.additionalComponent === "KBadge" ? (f(), T("div", {
1154
1154
  key: 0,
1155
1155
  "data-testid": `${e.item.key}-badge-tags`
1156
1156
  }, [
1157
- (f(!0), $(me, null, pe(e.item.value, (L, S) => (f(), G(h, {
1157
+ (f(!0), T(me, null, pe(e.item.value, (U, S) => (f(), R(y, {
1158
1158
  key: `${e.item.key}-badge-tag-${S}`,
1159
1159
  class: "config-badge",
1160
1160
  "data-testid": `${e.item.key}-badge-tag-${S}`,
1161
- tooltip: L,
1161
+ tooltip: U,
1162
1162
  "truncation-tooltip": ""
1163
1163
  }, {
1164
- default: y(() => [
1165
- W(j(L), 1)
1164
+ default: g(() => [
1165
+ W(j(U), 1)
1166
1166
  ]),
1167
1167
  _: 2
1168
1168
  }, 1032, ["data-testid", "tooltip"]))), 128))
1169
- ], 8, Or)) : z("", !0),
1170
- c.value.additionalComponent === "CopyUuid" ? (f(), $("div", {
1169
+ ], 8, jr)) : z("", !0),
1170
+ c.value.additionalComponent === "CopyUuid" ? (f(), T("div", {
1171
1171
  key: 1,
1172
1172
  class: "copy-uuid-array",
1173
1173
  "data-testid": `${e.item.key}-copy-uuid-array`
1174
1174
  }, [
1175
- (f(!0), $(me, null, pe(e.item.value, (L, S) => (f(), G(m(Cn), st(c.value.childAttrs, {
1175
+ (f(!0), T(me, null, pe(e.item.value, (U, S) => (f(), R(m(Cn), st(c.value.childAttrs, {
1176
1176
  key: `${e.item.key}-copy-uuid-${S}`,
1177
1177
  "data-testid": `${e.item.key}-copy-uuid-${S}`,
1178
- uuid: L
1178
+ uuid: U
1179
1179
  }), null, 16, ["data-testid", "uuid"]))), 128))
1180
- ], 8, Er)) : c.value.additionalComponent === "KMethodBadge" ? (f(), $("div", {
1180
+ ], 8, Mr)) : c.value.additionalComponent === "KMethodBadge" ? (f(), T("div", {
1181
1181
  key: 2,
1182
1182
  class: "method-badge-array",
1183
1183
  "data-testid": `${e.item.key}-badge-methods`
1184
1184
  }, [
1185
- (f(!0), $(me, null, pe(e.item.value, (L, S) => (f(), G(h, {
1185
+ (f(!0), T(me, null, pe(e.item.value, (U, S) => (f(), R(y, {
1186
1186
  key: `${e.item.key}-badge-method-${S}`,
1187
- appearance: Object.values(m(_a)).includes(L.toLowerCase()) ? L.toLowerCase() : "custom",
1187
+ appearance: Object.values(m(wa)).includes(U.toLowerCase()) ? U.toLowerCase() : "custom",
1188
1188
  class: "config-badge",
1189
1189
  "data-testid": `${e.item.key}-badge-method-${S}`
1190
1190
  }, {
1191
- default: y(() => [
1192
- W(j(L), 1)
1191
+ default: g(() => [
1192
+ W(j(U), 1)
1193
1193
  ]),
1194
1194
  _: 2
1195
1195
  }, 1032, ["appearance", "data-testid"]))), 128))
1196
- ], 8, Nr)) : z("", !0),
1197
- c.value.additionalComponent === "JsonCardItem" ? (f(), $("div", {
1196
+ ], 8, Or)) : z("", !0),
1197
+ c.value.additionalComponent === "JsonCardItem" ? (f(), T("div", {
1198
1198
  key: 3,
1199
1199
  "data-testid": `${t.item.key}-json-array-content`
1200
1200
  }, [
1201
- (f(!0), $(me, null, pe(e.item.value, (L, S) => (f(), G(kn, {
1201
+ (f(!0), T(me, null, pe(e.item.value, (U, S) => (f(), R(kn, {
1202
1202
  key: `json-array-item-${S}`,
1203
1203
  index: S,
1204
1204
  "is-array-item": "",
1205
- item: L
1205
+ item: U
1206
1206
  }, null, 8, ["index", "item"]))), 128))
1207
- ], 8, Kr)) : (f(), G(C, {
1207
+ ], 8, Er)) : (f(), R(C, {
1208
1208
  key: 4,
1209
1209
  label: m(d) ? e.item.value : ""
1210
1210
  }, {
1211
- default: y(() => [
1211
+ default: g(() => [
1212
1212
  F("span", {
1213
1213
  ref_key: "textContent",
1214
- ref: g,
1214
+ ref: h,
1215
1215
  class: Ie(["attrs-data-text", { truncated: e.truncated }])
1216
1216
  }, j(c.value.text), 3)
1217
1217
  ]),
@@ -1220,49 +1220,49 @@ const oe = {
1220
1220
  ]),
1221
1221
  _: 1
1222
1222
  }, 16))
1223
- ])) : (f(), $("div", {
1223
+ ])) : (f(), T("div", {
1224
1224
  key: 0,
1225
1225
  "data-testid": `${e.item.key}-no-value`
1226
- }, " – ", 8, jr))
1226
+ }, " – ", 8, Tr))
1227
1227
  ], !0)
1228
- ], 8, $r)
1228
+ ], 8, xr)
1229
1229
  ]);
1230
1230
  };
1231
1231
  }
1232
- }), Ct = /* @__PURE__ */ ge(Br, [["__scopeId", "data-v-9c87856b"]]);
1232
+ }), Ct = /* @__PURE__ */ ge(Kr, [["__scopeId", "data-v-9c87856b"]]);
1233
1233
  /*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
1234
1234
  function wn(e) {
1235
1235
  return typeof e > "u" || e === null;
1236
1236
  }
1237
- function Fr(e) {
1237
+ function qr(e) {
1238
1238
  return typeof e == "object" && e !== null;
1239
1239
  }
1240
- function Lr(e) {
1240
+ function Br(e) {
1241
1241
  return Array.isArray(e) ? e : wn(e) ? [] : [e];
1242
1242
  }
1243
- function Ur(e, n) {
1243
+ function Fr(e, n) {
1244
1244
  var t, a, r, o;
1245
1245
  if (n)
1246
1246
  for (o = Object.keys(n), t = 0, a = o.length; t < a; t += 1)
1247
1247
  r = o[t], e[r] = n[r];
1248
1248
  return e;
1249
1249
  }
1250
- function Pr(e, n) {
1250
+ function Lr(e, n) {
1251
1251
  var t = "", a;
1252
1252
  for (a = 0; a < n; a += 1)
1253
1253
  t += e;
1254
1254
  return t;
1255
1255
  }
1256
- function Dr(e) {
1256
+ function Ur(e) {
1257
1257
  return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
1258
1258
  }
1259
- var Vr = wn, Rr = Fr, Gr = Lr, zr = Pr, Hr = Dr, Jr = Ur, re = {
1260
- isNothing: Vr,
1261
- isObject: Rr,
1262
- toArray: Gr,
1263
- repeat: zr,
1264
- isNegativeZero: Hr,
1265
- extend: Jr
1259
+ var Pr = wn, Dr = qr, Vr = Br, Rr = Lr, Gr = Ur, zr = Fr, re = {
1260
+ isNothing: Pr,
1261
+ isObject: Dr,
1262
+ toArray: Vr,
1263
+ repeat: Rr,
1264
+ isNegativeZero: Gr,
1265
+ extend: zr
1266
1266
  };
1267
1267
  function In(e, n) {
1268
1268
  var t = "", a = e.reason || "(unknown reason)";
@@ -1290,7 +1290,7 @@ function ot(e, n, t, a, r) {
1290
1290
  function it(e, n) {
1291
1291
  return re.repeat(" ", n - e.length) + e;
1292
1292
  }
1293
- function Wr(e, n) {
1293
+ function Hr(e, n) {
1294
1294
  if (n = Object.create(n || null), !e.buffer)
1295
1295
  return null;
1296
1296
  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);
@@ -1320,7 +1320,7 @@ function Wr(e, n) {
1320
1320
  `;
1321
1321
  return l.replace(/\n$/, "");
1322
1322
  }
1323
- var Yr = Wr, Zr = [
1323
+ var Jr = Hr, Wr = [
1324
1324
  "kind",
1325
1325
  "multi",
1326
1326
  "resolve",
@@ -1331,12 +1331,12 @@ var Yr = Wr, Zr = [
1331
1331
  "representName",
1332
1332
  "defaultStyle",
1333
1333
  "styleAliases"
1334
- ], Qr = [
1334
+ ], Yr = [
1335
1335
  "scalar",
1336
1336
  "sequence",
1337
1337
  "mapping"
1338
1338
  ];
1339
- function Xr(e) {
1339
+ function Zr(e) {
1340
1340
  var n = {};
1341
1341
  return e !== null && Object.keys(e).forEach(function(t) {
1342
1342
  e[t].forEach(function(a) {
@@ -1344,18 +1344,18 @@ function Xr(e) {
1344
1344
  });
1345
1345
  }), n;
1346
1346
  }
1347
- function eo(e, n) {
1347
+ function Qr(e, n) {
1348
1348
  if (n = n || {}, Object.keys(n).forEach(function(t) {
1349
- if (Zr.indexOf(t) === -1)
1349
+ if (Wr.indexOf(t) === -1)
1350
1350
  throw new se('Unknown option "' + t + '" is met in definition of "' + e + '" YAML type.');
1351
1351
  }), this.options = n, this.tag = e, this.kind = n.kind || null, this.resolve = n.resolve || function() {
1352
1352
  return !0;
1353
1353
  }, this.construct = n.construct || function(t) {
1354
1354
  return t;
1355
- }, this.instanceOf = n.instanceOf || null, this.predicate = n.predicate || null, this.represent = n.represent || null, this.representName = n.representName || null, this.defaultStyle = n.defaultStyle || null, this.multi = n.multi || !1, this.styleAliases = Xr(n.styleAliases || null), Qr.indexOf(this.kind) === -1)
1355
+ }, this.instanceOf = n.instanceOf || null, this.predicate = n.predicate || null, this.represent = n.represent || null, this.representName = n.representName || null, this.defaultStyle = n.defaultStyle || null, this.multi = n.multi || !1, this.styleAliases = Zr(n.styleAliases || null), Yr.indexOf(this.kind) === -1)
1356
1356
  throw new se('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
1357
1357
  }
1358
- var ie = eo;
1358
+ var ie = Qr;
1359
1359
  function zt(e, n) {
1360
1360
  var t = [];
1361
1361
  return e[n].forEach(function(a) {
@@ -1365,7 +1365,7 @@ function zt(e, n) {
1365
1365
  }), t[r] = a;
1366
1366
  }), t;
1367
1367
  }
1368
- function to() {
1368
+ function Xr() {
1369
1369
  var e = {
1370
1370
  scalar: {},
1371
1371
  sequence: {},
@@ -1410,7 +1410,7 @@ ct.prototype.extend = function(e) {
1410
1410
  throw new se("Specified list of YAML types (or a single Type object) contains a non-Type object.");
1411
1411
  });
1412
1412
  var a = Object.create(ct.prototype);
1413
- return a.implicit = (this.implicit || []).concat(n), a.explicit = (this.explicit || []).concat(t), a.compiledImplicit = zt(a, "implicit"), a.compiledExplicit = zt(a, "explicit"), a.compiledTypeMap = to(a.compiledImplicit, a.compiledExplicit), a;
1413
+ return a.implicit = (this.implicit || []).concat(n), a.explicit = (this.explicit || []).concat(t), a.compiledImplicit = zt(a, "implicit"), a.compiledExplicit = zt(a, "explicit"), a.compiledTypeMap = Xr(a.compiledImplicit, a.compiledExplicit), a;
1414
1414
  };
1415
1415
  var _n = ct, Sn = new ie("tag:yaml.org,2002:str", {
1416
1416
  kind: "scalar",
@@ -1434,23 +1434,23 @@ var _n = ct, Sn = new ie("tag:yaml.org,2002:str", {
1434
1434
  xn
1435
1435
  ]
1436
1436
  });
1437
- function no(e) {
1437
+ function eo(e) {
1438
1438
  if (e === null)
1439
1439
  return !0;
1440
1440
  var n = e.length;
1441
1441
  return n === 1 && e === "~" || n === 4 && (e === "null" || e === "Null" || e === "NULL");
1442
1442
  }
1443
- function ao() {
1443
+ function to() {
1444
1444
  return null;
1445
1445
  }
1446
- function ro(e) {
1446
+ function no(e) {
1447
1447
  return e === null;
1448
1448
  }
1449
1449
  var $n = new ie("tag:yaml.org,2002:null", {
1450
1450
  kind: "scalar",
1451
- resolve: no,
1452
- construct: ao,
1453
- predicate: ro,
1451
+ resolve: eo,
1452
+ construct: to,
1453
+ predicate: no,
1454
1454
  represent: {
1455
1455
  canonical: function() {
1456
1456
  return "~";
@@ -1470,23 +1470,23 @@ var $n = new ie("tag:yaml.org,2002:null", {
1470
1470
  },
1471
1471
  defaultStyle: "lowercase"
1472
1472
  });
1473
- function oo(e) {
1473
+ function ao(e) {
1474
1474
  if (e === null)
1475
1475
  return !1;
1476
1476
  var n = e.length;
1477
1477
  return n === 4 && (e === "true" || e === "True" || e === "TRUE") || n === 5 && (e === "false" || e === "False" || e === "FALSE");
1478
1478
  }
1479
- function io(e) {
1479
+ function ro(e) {
1480
1480
  return e === "true" || e === "True" || e === "TRUE";
1481
1481
  }
1482
- function lo(e) {
1482
+ function oo(e) {
1483
1483
  return Object.prototype.toString.call(e) === "[object Boolean]";
1484
1484
  }
1485
1485
  var jn = new ie("tag:yaml.org,2002:bool", {
1486
1486
  kind: "scalar",
1487
- resolve: oo,
1488
- construct: io,
1489
- predicate: lo,
1487
+ resolve: ao,
1488
+ construct: ro,
1489
+ predicate: oo,
1490
1490
  represent: {
1491
1491
  lowercase: function(e) {
1492
1492
  return e ? "true" : "false";
@@ -1500,16 +1500,16 @@ var jn = new ie("tag:yaml.org,2002:bool", {
1500
1500
  },
1501
1501
  defaultStyle: "lowercase"
1502
1502
  });
1503
- function so(e) {
1503
+ function io(e) {
1504
1504
  return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
1505
1505
  }
1506
- function uo(e) {
1506
+ function lo(e) {
1507
1507
  return 48 <= e && e <= 55;
1508
1508
  }
1509
- function co(e) {
1509
+ function so(e) {
1510
1510
  return 48 <= e && e <= 57;
1511
1511
  }
1512
- function po(e) {
1512
+ function uo(e) {
1513
1513
  if (e === null)
1514
1514
  return !1;
1515
1515
  var n = e.length, t = 0, a = !1, r;
@@ -1530,7 +1530,7 @@ function po(e) {
1530
1530
  if (r === "x") {
1531
1531
  for (t++; t < n; t++)
1532
1532
  if (r = e[t], r !== "_") {
1533
- if (!so(e.charCodeAt(t)))
1533
+ if (!io(e.charCodeAt(t)))
1534
1534
  return !1;
1535
1535
  a = !0;
1536
1536
  }
@@ -1539,7 +1539,7 @@ function po(e) {
1539
1539
  if (r === "o") {
1540
1540
  for (t++; t < n; t++)
1541
1541
  if (r = e[t], r !== "_") {
1542
- if (!uo(e.charCodeAt(t)))
1542
+ if (!lo(e.charCodeAt(t)))
1543
1543
  return !1;
1544
1544
  a = !0;
1545
1545
  }
@@ -1550,13 +1550,13 @@ function po(e) {
1550
1550
  return !1;
1551
1551
  for (; t < n; t++)
1552
1552
  if (r = e[t], r !== "_") {
1553
- if (!co(e.charCodeAt(t)))
1553
+ if (!so(e.charCodeAt(t)))
1554
1554
  return !1;
1555
1555
  a = !0;
1556
1556
  }
1557
1557
  return !(!a || r === "_");
1558
1558
  }
1559
- function fo(e) {
1559
+ function co(e) {
1560
1560
  var n = e, t = 1, a;
1561
1561
  if (n.indexOf("_") !== -1 && (n = n.replace(/_/g, "")), a = n[0], (a === "-" || a === "+") && (a === "-" && (t = -1), n = n.slice(1), a = n[0]), n === "0")
1562
1562
  return 0;
@@ -1570,14 +1570,14 @@ function fo(e) {
1570
1570
  }
1571
1571
  return t * parseInt(n, 10);
1572
1572
  }
1573
- function mo(e) {
1573
+ function po(e) {
1574
1574
  return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !re.isNegativeZero(e);
1575
1575
  }
1576
1576
  var Mn = new ie("tag:yaml.org,2002:int", {
1577
1577
  kind: "scalar",
1578
- resolve: po,
1579
- construct: fo,
1580
- predicate: mo,
1578
+ resolve: uo,
1579
+ construct: co,
1580
+ predicate: po,
1581
1581
  represent: {
1582
1582
  binary: function(e) {
1583
1583
  return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
@@ -1600,21 +1600,21 @@ var Mn = new ie("tag:yaml.org,2002:int", {
1600
1600
  decimal: [10, "dec"],
1601
1601
  hexadecimal: [16, "hex"]
1602
1602
  }
1603
- }), go = new RegExp(
1603
+ }), fo = new RegExp(
1604
1604
  // 2.5e4, 2.5 and integers
1605
1605
  "^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
1606
1606
  );
1607
- function yo(e) {
1608
- return !(e === null || !go.test(e) || // Quick hack to not allow integers end with `_`
1607
+ function mo(e) {
1608
+ return !(e === null || !fo.test(e) || // Quick hack to not allow integers end with `_`
1609
1609
  // Probably should update regexp & check speed
1610
1610
  e[e.length - 1] === "_");
1611
1611
  }
1612
- function ho(e) {
1612
+ function go(e) {
1613
1613
  var n, t;
1614
1614
  return n = e.replace(/_/g, "").toLowerCase(), t = n[0] === "-" ? -1 : 1, "+-".indexOf(n[0]) >= 0 && (n = n.slice(1)), n === ".inf" ? t === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : n === ".nan" ? NaN : t * parseFloat(n, 10);
1615
1615
  }
1616
- var vo = /^[-+]?[0-9]+e/;
1617
- function bo(e, n) {
1616
+ var yo = /^[-+]?[0-9]+e/;
1617
+ function ho(e, n) {
1618
1618
  var t;
1619
1619
  if (isNaN(e))
1620
1620
  switch (n) {
@@ -1645,17 +1645,17 @@ function bo(e, n) {
1645
1645
  }
1646
1646
  else if (re.isNegativeZero(e))
1647
1647
  return "-0.0";
1648
- return t = e.toString(10), vo.test(t) ? t.replace("e", ".e") : t;
1648
+ return t = e.toString(10), yo.test(t) ? t.replace("e", ".e") : t;
1649
1649
  }
1650
- function Co(e) {
1650
+ function vo(e) {
1651
1651
  return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || re.isNegativeZero(e));
1652
1652
  }
1653
1653
  var On = new ie("tag:yaml.org,2002:float", {
1654
1654
  kind: "scalar",
1655
- resolve: yo,
1656
- construct: ho,
1657
- predicate: Co,
1658
- represent: bo,
1655
+ resolve: mo,
1656
+ construct: go,
1657
+ predicate: vo,
1658
+ represent: ho,
1659
1659
  defaultStyle: "lowercase"
1660
1660
  }), En = Tn.extend({
1661
1661
  implicit: [
@@ -1669,11 +1669,11 @@ var On = new ie("tag:yaml.org,2002:float", {
1669
1669
  ), qn = new RegExp(
1670
1670
  "^([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]))?))?$"
1671
1671
  );
1672
- function ko(e) {
1672
+ function bo(e) {
1673
1673
  return e === null ? !1 : Kn.exec(e) !== null || qn.exec(e) !== null;
1674
1674
  }
1675
- function wo(e) {
1676
- var n, t, a, r, o, i, l, s = 0, u = null, p, c, g;
1675
+ function Co(e) {
1676
+ var n, t, a, r, o, i, l, s = 0, u = null, p, c, h;
1677
1677
  if (n = Kn.exec(e), n === null && (n = qn.exec(e)), n === null)
1678
1678
  throw new Error("Date resolve error");
1679
1679
  if (t = +n[1], a = +n[2] - 1, r = +n[3], !n[4])
@@ -1683,27 +1683,27 @@ function wo(e) {
1683
1683
  s += "0";
1684
1684
  s = +s;
1685
1685
  }
1686
- 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, a, r, o, i, l, s)), u && g.setTime(g.getTime() - u), g;
1686
+ return n[9] && (p = +n[10], c = +(n[11] || 0), u = (p * 60 + c) * 6e4, n[9] === "-" && (u = -u)), h = new Date(Date.UTC(t, a, r, o, i, l, s)), u && h.setTime(h.getTime() - u), h;
1687
1687
  }
1688
- function Io(e) {
1688
+ function ko(e) {
1689
1689
  return e.toISOString();
1690
1690
  }
1691
1691
  var Bn = new ie("tag:yaml.org,2002:timestamp", {
1692
1692
  kind: "scalar",
1693
- resolve: ko,
1694
- construct: wo,
1693
+ resolve: bo,
1694
+ construct: Co,
1695
1695
  instanceOf: Date,
1696
- represent: Io
1696
+ represent: ko
1697
1697
  });
1698
- function _o(e) {
1698
+ function wo(e) {
1699
1699
  return e === "<<" || e === null;
1700
1700
  }
1701
1701
  var Fn = new ie("tag:yaml.org,2002:merge", {
1702
1702
  kind: "scalar",
1703
- resolve: _o
1703
+ resolve: wo
1704
1704
  }), kt = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
1705
1705
  \r`;
1706
- function So(e) {
1706
+ function Io(e) {
1707
1707
  if (e === null)
1708
1708
  return !1;
1709
1709
  var n, t, a = 0, r = e.length, o = kt;
@@ -1715,37 +1715,37 @@ function So(e) {
1715
1715
  }
1716
1716
  return a % 8 === 0;
1717
1717
  }
1718
- function Ao(e) {
1718
+ function _o(e) {
1719
1719
  var n, t, a = e.replace(/[\r\n=]/g, ""), r = a.length, o = kt, i = 0, l = [];
1720
1720
  for (n = 0; n < r; n++)
1721
1721
  n % 4 === 0 && n && (l.push(i >> 16 & 255), l.push(i >> 8 & 255), l.push(i & 255)), i = i << 6 | o.indexOf(a.charAt(n));
1722
1722
  return t = r % 4 * 6, t === 0 ? (l.push(i >> 16 & 255), l.push(i >> 8 & 255), l.push(i & 255)) : t === 18 ? (l.push(i >> 10 & 255), l.push(i >> 2 & 255)) : t === 12 && l.push(i >> 4 & 255), new Uint8Array(l);
1723
1723
  }
1724
- function xo(e) {
1724
+ function So(e) {
1725
1725
  var n = "", t = 0, a, r, o = e.length, i = kt;
1726
1726
  for (a = 0; a < o; a++)
1727
1727
  a % 3 === 0 && a && (n += i[t >> 18 & 63], n += i[t >> 12 & 63], n += i[t >> 6 & 63], n += i[t & 63]), t = (t << 8) + e[a];
1728
1728
  return r = o % 3, r === 0 ? (n += i[t >> 18 & 63], n += i[t >> 12 & 63], n += i[t >> 6 & 63], n += i[t & 63]) : r === 2 ? (n += i[t >> 10 & 63], n += i[t >> 4 & 63], n += i[t << 2 & 63], n += i[64]) : r === 1 && (n += i[t >> 2 & 63], n += i[t << 4 & 63], n += i[64], n += i[64]), n;
1729
1729
  }
1730
- function To(e) {
1730
+ function Ao(e) {
1731
1731
  return Object.prototype.toString.call(e) === "[object Uint8Array]";
1732
1732
  }
1733
1733
  var Ln = new ie("tag:yaml.org,2002:binary", {
1734
1734
  kind: "scalar",
1735
- resolve: So,
1736
- construct: Ao,
1737
- predicate: To,
1738
- represent: xo
1739
- }), $o = Object.prototype.hasOwnProperty, jo = Object.prototype.toString;
1740
- function Mo(e) {
1735
+ resolve: Io,
1736
+ construct: _o,
1737
+ predicate: Ao,
1738
+ represent: So
1739
+ }), xo = Object.prototype.hasOwnProperty, To = Object.prototype.toString;
1740
+ function $o(e) {
1741
1741
  if (e === null)
1742
1742
  return !0;
1743
1743
  var n = [], t, a, r, o, i, l = e;
1744
1744
  for (t = 0, a = l.length; t < a; t += 1) {
1745
- if (r = l[t], i = !1, jo.call(r) !== "[object Object]")
1745
+ if (r = l[t], i = !1, To.call(r) !== "[object Object]")
1746
1746
  return !1;
1747
1747
  for (o in r)
1748
- if ($o.call(r, o))
1748
+ if (xo.call(r, o))
1749
1749
  if (!i)
1750
1750
  i = !0;
1751
1751
  else
@@ -1759,26 +1759,26 @@ function Mo(e) {
1759
1759
  }
1760
1760
  return !0;
1761
1761
  }
1762
- function Oo(e) {
1762
+ function jo(e) {
1763
1763
  return e !== null ? e : [];
1764
1764
  }
1765
1765
  var Un = new ie("tag:yaml.org,2002:omap", {
1766
1766
  kind: "sequence",
1767
- resolve: Mo,
1768
- construct: Oo
1769
- }), Eo = Object.prototype.toString;
1770
- function No(e) {
1767
+ resolve: $o,
1768
+ construct: jo
1769
+ }), Mo = Object.prototype.toString;
1770
+ function Oo(e) {
1771
1771
  if (e === null)
1772
1772
  return !0;
1773
1773
  var n, t, a, r, o, i = e;
1774
1774
  for (o = new Array(i.length), n = 0, t = i.length; n < t; n += 1) {
1775
- if (a = i[n], Eo.call(a) !== "[object Object]" || (r = Object.keys(a), r.length !== 1))
1775
+ if (a = i[n], Mo.call(a) !== "[object Object]" || (r = Object.keys(a), r.length !== 1))
1776
1776
  return !1;
1777
1777
  o[n] = [r[0], a[r[0]]];
1778
1778
  }
1779
1779
  return !0;
1780
1780
  }
1781
- function Ko(e) {
1781
+ function Eo(e) {
1782
1782
  if (e === null)
1783
1783
  return [];
1784
1784
  var n, t, a, r, o, i = e;
@@ -1788,25 +1788,25 @@ function Ko(e) {
1788
1788
  }
1789
1789
  var Pn = new ie("tag:yaml.org,2002:pairs", {
1790
1790
  kind: "sequence",
1791
- resolve: No,
1792
- construct: Ko
1793
- }), qo = Object.prototype.hasOwnProperty;
1794
- function Bo(e) {
1791
+ resolve: Oo,
1792
+ construct: Eo
1793
+ }), No = Object.prototype.hasOwnProperty;
1794
+ function Ko(e) {
1795
1795
  if (e === null)
1796
1796
  return !0;
1797
1797
  var n, t = e;
1798
1798
  for (n in t)
1799
- if (qo.call(t, n) && t[n] !== null)
1799
+ if (No.call(t, n) && t[n] !== null)
1800
1800
  return !1;
1801
1801
  return !0;
1802
1802
  }
1803
- function Fo(e) {
1803
+ function qo(e) {
1804
1804
  return e !== null ? e : {};
1805
1805
  }
1806
1806
  var Dn = new ie("tag:yaml.org,2002:set", {
1807
1807
  kind: "mapping",
1808
- resolve: Bo,
1809
- construct: Fo
1808
+ resolve: Ko,
1809
+ construct: qo
1810
1810
  }), wt = Nn.extend({
1811
1811
  implicit: [
1812
1812
  Bn,
@@ -1818,7 +1818,7 @@ var Dn = new ie("tag:yaml.org,2002:set", {
1818
1818
  Pn,
1819
1819
  Dn
1820
1820
  ]
1821
- }), _e = Object.prototype.hasOwnProperty, ze = 1, Vn = 2, Rn = 3, He = 4, lt = 1, Lo = 2, Ht = 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 = /[,\[\]\{\}]/, Gn = /^(?:!|!!|![a-z\-]+!)$/i, zn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1821
+ }), _e = Object.prototype.hasOwnProperty, ze = 1, Vn = 2, Rn = 3, He = 4, lt = 1, Bo = 2, Ht = 3, Fo = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Lo = /[\x85\u2028\u2029]/, Uo = /[,\[\]\{\}]/, Gn = /^(?:!|!!|![a-z\-]+!)$/i, zn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1822
1822
  function Jt(e) {
1823
1823
  return Object.prototype.toString.call(e);
1824
1824
  }
@@ -1831,33 +1831,33 @@ function Ae(e) {
1831
1831
  function fe(e) {
1832
1832
  return e === 9 || e === 32 || e === 10 || e === 13;
1833
1833
  }
1834
- function Oe(e) {
1834
+ function Ee(e) {
1835
1835
  return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
1836
1836
  }
1837
- function Vo(e) {
1837
+ function Po(e) {
1838
1838
  var n;
1839
1839
  return 48 <= e && e <= 57 ? e - 48 : (n = e | 32, 97 <= n && n <= 102 ? n - 97 + 10 : -1);
1840
1840
  }
1841
- function Ro(e) {
1841
+ function Do(e) {
1842
1842
  return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
1843
1843
  }
1844
- function Go(e) {
1844
+ function Vo(e) {
1845
1845
  return 48 <= e && e <= 57 ? e - 48 : -1;
1846
1846
  }
1847
1847
  function Wt(e) {
1848
1848
  return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
1849
1849
  ` : e === 118 ? "\v" : e === 102 ? "\f" : e === 114 ? "\r" : e === 101 ? "\x1B" : e === 32 ? " " : e === 34 ? '"' : e === 47 ? "/" : e === 92 ? "\\" : e === 78 ? "…" : e === 95 ? " " : e === 76 ? "\u2028" : e === 80 ? "\u2029" : "";
1850
1850
  }
1851
- function zo(e) {
1851
+ function Ro(e) {
1852
1852
  return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode(
1853
1853
  (e - 65536 >> 10) + 55296,
1854
1854
  (e - 65536 & 1023) + 56320
1855
1855
  );
1856
1856
  }
1857
1857
  var Hn = new Array(256), Jn = new Array(256);
1858
- for (var je = 0; je < 256; je++)
1859
- Hn[je] = Wt(je) ? 1 : 0, Jn[je] = Wt(je);
1860
- function Ho(e, n) {
1858
+ for (var Me = 0; Me < 256; Me++)
1859
+ Hn[Me] = Wt(Me) ? 1 : 0, Jn[Me] = Wt(Me);
1860
+ function Go(e, n) {
1861
1861
  this.input = e, this.filename = n.filename || null, this.schema = n.schema || wt, 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
1862
  }
1863
1863
  function Wn(e, n) {
@@ -1869,7 +1869,7 @@ function Wn(e, n) {
1869
1869
  line: e.line,
1870
1870
  column: e.position - e.lineStart
1871
1871
  };
1872
- return t.snippet = Yr(t), new se(n, t);
1872
+ return t.snippet = Jr(t), new se(n, t);
1873
1873
  }
1874
1874
  function M(e, n) {
1875
1875
  throw Wn(e, n);
@@ -1900,7 +1900,7 @@ function we(e, n, t, a) {
1900
1900
  for (r = 0, o = l.length; r < o; r += 1)
1901
1901
  i = l.charCodeAt(r), i === 9 || 32 <= i && i <= 1114111 || M(e, "expected valid JSON character");
1902
1902
  else
1903
- Uo.test(l) && M(e, "the stream contains non-printable characters");
1903
+ Fo.test(l) && M(e, "the stream contains non-printable characters");
1904
1904
  e.result += l;
1905
1905
  }
1906
1906
  }
@@ -1909,7 +1909,7 @@ function Zt(e, n, t, a) {
1909
1909
  for (re.isObject(t) || M(e, "cannot merge mappings; the provided source object is unacceptable"), r = Object.keys(t), i = 0, l = r.length; i < l; i += 1)
1910
1910
  o = r[i], _e.call(n, o) || (n[o] = t[o], a[o] = !0);
1911
1911
  }
1912
- function Ee(e, n, t, a, r, o, i, l, s) {
1912
+ function Ne(e, n, t, a, r, o, i, l, s) {
1913
1913
  var u, p;
1914
1914
  if (Array.isArray(r))
1915
1915
  for (r = Array.prototype.slice.call(r), u = 0, p = r.length; u < p; u += 1)
@@ -1957,19 +1957,19 @@ function _t(e, n) {
1957
1957
  n === 1 ? e.result += " " : n > 1 && (e.result += re.repeat(`
1958
1958
  `, n - 1));
1959
1959
  }
1960
- function Jo(e, n, t) {
1961
- var a, r, o, i, l, s, u, p, c = e.kind, g = e.result, d;
1962
- if (d = e.input.charCodeAt(e.position), fe(d) || Oe(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) && (r = e.input.charCodeAt(e.position + 1), fe(r) || t && Oe(r)))
1960
+ function zo(e, n, t) {
1961
+ var a, r, o, i, l, s, u, p, c = e.kind, h = e.result, d;
1962
+ if (d = e.input.charCodeAt(e.position), fe(d) || Ee(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) && (r = e.input.charCodeAt(e.position + 1), fe(r) || t && Ee(r)))
1963
1963
  return !1;
1964
1964
  for (e.kind = "scalar", e.result = "", o = i = e.position, l = !1; d !== 0; ) {
1965
1965
  if (d === 58) {
1966
- if (r = e.input.charCodeAt(e.position + 1), fe(r) || t && Oe(r))
1966
+ if (r = e.input.charCodeAt(e.position + 1), fe(r) || t && Ee(r))
1967
1967
  break;
1968
1968
  } else if (d === 35) {
1969
1969
  if (a = e.input.charCodeAt(e.position - 1), fe(a))
1970
1970
  break;
1971
1971
  } else {
1972
- if (e.position === e.lineStart && Xe(e) || t && Oe(d))
1972
+ if (e.position === e.lineStart && Xe(e) || t && Ee(d))
1973
1973
  break;
1974
1974
  if (he(d))
1975
1975
  if (s = e.line, u = e.lineStart, p = e.lineIndent, ae(e, !1, -1), e.lineIndent >= n) {
@@ -1982,9 +1982,9 @@ function Jo(e, n, t) {
1982
1982
  }
1983
1983
  l && (we(e, o, i, !1), _t(e, e.line - s), o = i = e.position, l = !1), Ae(d) || (i = e.position + 1), d = e.input.charCodeAt(++e.position);
1984
1984
  }
1985
- return we(e, o, i, !1), e.result ? !0 : (e.kind = c, e.result = g, !1);
1985
+ return we(e, o, i, !1), e.result ? !0 : (e.kind = c, e.result = h, !1);
1986
1986
  }
1987
- function Wo(e, n) {
1987
+ function Ho(e, n) {
1988
1988
  var t, a, r;
1989
1989
  if (t = e.input.charCodeAt(e.position), t !== 39)
1990
1990
  return !1;
@@ -1998,7 +1998,7 @@ function Wo(e, n) {
1998
1998
  he(t) ? (we(e, a, r, !0), _t(e, ae(e, !1, n)), a = r = e.position) : e.position === e.lineStart && Xe(e) ? M(e, "unexpected end of the document within a single quoted scalar") : (e.position++, r = e.position);
1999
1999
  M(e, "unexpected end of the stream within a single quoted scalar");
2000
2000
  }
2001
- function Yo(e, n) {
2001
+ function Jo(e, n) {
2002
2002
  var t, a, r, o, i, l;
2003
2003
  if (l = e.input.charCodeAt(e.position), l !== 34)
2004
2004
  return !1;
@@ -2010,10 +2010,10 @@ function Yo(e, n) {
2010
2010
  ae(e, !1, n);
2011
2011
  else if (l < 256 && Hn[l])
2012
2012
  e.result += Jn[l], e.position++;
2013
- else if ((i = Ro(l)) > 0) {
2013
+ else if ((i = Do(l)) > 0) {
2014
2014
  for (r = i, o = 0; r > 0; r--)
2015
- l = e.input.charCodeAt(++e.position), (i = Vo(l)) >= 0 ? o = (o << 4) + i : M(e, "expected hexadecimal character");
2016
- e.result += zo(o), e.position++;
2015
+ l = e.input.charCodeAt(++e.position), (i = Po(l)) >= 0 ? o = (o << 4) + i : M(e, "expected hexadecimal character");
2016
+ e.result += Ro(o), e.position++;
2017
2017
  } else
2018
2018
  M(e, "unknown escape sequence");
2019
2019
  t = a = e.position;
@@ -2022,8 +2022,8 @@ function Yo(e, n) {
2022
2022
  }
2023
2023
  M(e, "unexpected end of the stream within a double quoted scalar");
2024
2024
  }
2025
- function Zo(e, n) {
2026
- var t = !0, a, r, o, i = e.tag, l, s = e.anchor, u, p, c, g, d, w = /* @__PURE__ */ Object.create(null), v, _, h, C;
2025
+ function Wo(e, n) {
2026
+ var t = !0, a, r, o, i = e.tag, l, s = e.anchor, u, p, c, h, d, w = /* @__PURE__ */ Object.create(null), v, A, y, C;
2027
2027
  if (C = e.input.charCodeAt(e.position), C === 91)
2028
2028
  p = 93, d = !1, l = [];
2029
2029
  else if (C === 123)
@@ -2033,11 +2033,11 @@ function Zo(e, n) {
2033
2033
  for (e.anchor !== null && (e.anchorMap[e.anchor] = l), C = e.input.charCodeAt(++e.position); C !== 0; ) {
2034
2034
  if (ae(e, !0, n), C = e.input.charCodeAt(e.position), C === p)
2035
2035
  return e.position++, e.tag = i, e.anchor = s, e.kind = d ? "mapping" : "sequence", e.result = l, !0;
2036
- t ? C === 44 && M(e, "expected the node content, but found ','") : M(e, "missed comma between flow collection entries"), _ = v = h = null, c = g = !1, C === 63 && (u = e.input.charCodeAt(e.position + 1), fe(u) && (c = g = !0, e.position++, ae(e, !0, n))), a = e.line, r = e.lineStart, o = e.position, Ke(e, n, ze, !1, !0), _ = e.tag, v = e.result, ae(e, !0, n), C = e.input.charCodeAt(e.position), (g || e.line === a) && C === 58 && (c = !0, C = e.input.charCodeAt(++e.position), ae(e, !0, n), Ke(e, n, ze, !1, !0), h = e.result), d ? Ee(e, l, w, _, v, h, a, r, o) : c ? l.push(Ee(e, null, w, _, v, h, a, r, o)) : l.push(v), ae(e, !0, n), C = e.input.charCodeAt(e.position), C === 44 ? (t = !0, C = e.input.charCodeAt(++e.position)) : t = !1;
2036
+ t ? C === 44 && M(e, "expected the node content, but found ','") : M(e, "missed comma between flow collection entries"), A = v = y = null, c = h = !1, C === 63 && (u = e.input.charCodeAt(e.position + 1), fe(u) && (c = h = !0, e.position++, ae(e, !0, n))), a = e.line, r = e.lineStart, o = e.position, Ke(e, n, ze, !1, !0), A = e.tag, v = e.result, ae(e, !0, n), C = e.input.charCodeAt(e.position), (h || e.line === a) && C === 58 && (c = !0, C = e.input.charCodeAt(++e.position), ae(e, !0, n), Ke(e, n, ze, !1, !0), y = e.result), d ? Ne(e, l, w, A, v, y, a, r, o) : c ? l.push(Ne(e, null, w, A, v, y, a, r, o)) : l.push(v), ae(e, !0, n), C = e.input.charCodeAt(e.position), C === 44 ? (t = !0, C = e.input.charCodeAt(++e.position)) : t = !1;
2037
2037
  }
2038
2038
  M(e, "unexpected end of the stream within a flow collection");
2039
2039
  }
2040
- function Qo(e, n) {
2040
+ function Yo(e, n) {
2041
2041
  var t, a, r = lt, o = !1, i = !1, l = n, s = 0, u = !1, p, c;
2042
2042
  if (c = e.input.charCodeAt(e.position), c === 124)
2043
2043
  a = !1;
@@ -2047,8 +2047,8 @@ function Qo(e, n) {
2047
2047
  return !1;
2048
2048
  for (e.kind = "scalar", e.result = ""; c !== 0; )
2049
2049
  if (c = e.input.charCodeAt(++e.position), c === 43 || c === 45)
2050
- lt === r ? r = c === 43 ? Ht : Lo : M(e, "repeat of a chomping mode identifier");
2051
- else if ((p = Go(c)) >= 0)
2050
+ lt === r ? r = c === 43 ? Ht : Bo : M(e, "repeat of a chomping mode identifier");
2051
+ else if ((p = Vo(c)) >= 0)
2052
2052
  p === 0 ? M(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : i ? M(e, "repeat of an indentation width identifier") : (l = n + p - 1, i = !0);
2053
2053
  else
2054
2054
  break;
@@ -2100,13 +2100,13 @@ function Qt(e, n) {
2100
2100
  }
2101
2101
  return l ? (e.tag = a, e.anchor = r, e.kind = "sequence", e.result = o, !0) : !1;
2102
2102
  }
2103
- function Xo(e, n, t) {
2104
- var a, r, o, i, l, s, u = e.tag, p = e.anchor, c = {}, g = /* @__PURE__ */ Object.create(null), d = null, w = null, v = null, _ = !1, h = !1, C;
2103
+ function Zo(e, n, t) {
2104
+ var a, r, o, i, l, s, u = e.tag, p = e.anchor, c = {}, h = /* @__PURE__ */ Object.create(null), d = null, w = null, v = null, A = !1, y = !1, C;
2105
2105
  if (e.firstTabInLine !== -1)
2106
2106
  return !1;
2107
2107
  for (e.anchor !== null && (e.anchorMap[e.anchor] = c), C = e.input.charCodeAt(e.position); C !== 0; ) {
2108
- if (!_ && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, M(e, "tab characters must not be used in indentation")), a = e.input.charCodeAt(e.position + 1), o = e.line, (C === 63 || C === 58) && fe(a))
2109
- C === 63 ? (_ && (Ee(e, c, g, d, w, null, i, l, s), d = w = v = null), h = !0, _ = !0, r = !0) : _ ? (_ = !1, r = !0) : M(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, C = a;
2108
+ if (!A && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, M(e, "tab characters must not be used in indentation")), a = e.input.charCodeAt(e.position + 1), o = e.line, (C === 63 || C === 58) && fe(a))
2109
+ C === 63 ? (A && (Ne(e, c, h, d, w, null, i, l, s), d = w = v = null), y = !0, A = !0, r = !0) : A ? (A = !1, r = !0) : M(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, C = a;
2110
2110
  else {
2111
2111
  if (i = e.line, l = e.lineStart, s = e.position, !Ke(e, t, Vn, !1, !0))
2112
2112
  break;
@@ -2114,24 +2114,24 @@ function Xo(e, n, t) {
2114
2114
  for (C = e.input.charCodeAt(e.position); Ae(C); )
2115
2115
  C = e.input.charCodeAt(++e.position);
2116
2116
  if (C === 58)
2117
- C = e.input.charCodeAt(++e.position), fe(C) || M(e, "a whitespace character is expected after the key-value separator within a block mapping"), _ && (Ee(e, c, g, d, w, null, i, l, s), d = w = v = null), h = !0, _ = !1, r = !1, d = e.tag, w = e.result;
2118
- else if (h)
2117
+ C = e.input.charCodeAt(++e.position), fe(C) || M(e, "a whitespace character is expected after the key-value separator within a block mapping"), A && (Ne(e, c, h, d, w, null, i, l, s), d = w = v = null), y = !0, A = !1, r = !1, d = e.tag, w = e.result;
2118
+ else if (y)
2119
2119
  M(e, "can not read an implicit mapping pair; a colon is missed");
2120
2120
  else
2121
2121
  return e.tag = u, e.anchor = p, !0;
2122
- } else if (h)
2122
+ } else if (y)
2123
2123
  M(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
2124
2124
  else
2125
2125
  return e.tag = u, e.anchor = p, !0;
2126
2126
  }
2127
- if ((e.line === o || e.lineIndent > n) && (_ && (i = e.line, l = e.lineStart, s = e.position), Ke(e, n, He, !0, r) && (_ ? w = e.result : v = e.result), _ || (Ee(e, c, g, d, w, v, i, l, s), d = w = v = null), ae(e, !0, -1), C = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > n) && C !== 0)
2127
+ if ((e.line === o || e.lineIndent > n) && (A && (i = e.line, l = e.lineStart, s = e.position), Ke(e, n, He, !0, r) && (A ? w = e.result : v = e.result), A || (Ne(e, c, h, d, w, v, i, l, s), d = w = v = null), ae(e, !0, -1), C = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > n) && C !== 0)
2128
2128
  M(e, "bad indentation of a mapping entry");
2129
2129
  else if (e.lineIndent < n)
2130
2130
  break;
2131
2131
  }
2132
- return _ && Ee(e, c, g, d, w, null, i, l, s), h && (e.tag = u, e.anchor = p, e.kind = "mapping", e.result = c), h;
2132
+ return A && Ne(e, c, h, d, w, null, i, l, s), y && (e.tag = u, e.anchor = p, e.kind = "mapping", e.result = c), y;
2133
2133
  }
2134
- function ei(e) {
2134
+ function Qo(e) {
2135
2135
  var n, t = !1, a = !1, r, o, i;
2136
2136
  if (i = e.input.charCodeAt(e.position), i !== 33)
2137
2137
  return !1;
@@ -2143,7 +2143,7 @@ function ei(e) {
2143
2143
  } else {
2144
2144
  for (; i !== 0 && !fe(i); )
2145
2145
  i === 33 && (a ? M(e, "tag suffix cannot contain exclamation marks") : (r = e.input.slice(n - 1, e.position + 1), Gn.test(r) || M(e, "named tag handle cannot contain such characters"), a = !0, n = e.position + 1)), i = e.input.charCodeAt(++e.position);
2146
- o = e.input.slice(n, e.position), Do.test(o) && M(e, "tag suffix cannot contain flow indicator characters");
2146
+ o = e.input.slice(n, e.position), Uo.test(o) && M(e, "tag suffix cannot contain flow indicator characters");
2147
2147
  }
2148
2148
  o && !zn.test(o) && M(e, "tag name cannot contain such characters: " + o);
2149
2149
  try {
@@ -2153,31 +2153,31 @@ function ei(e) {
2153
2153
  }
2154
2154
  return t ? e.tag = o : _e.call(e.tagMap, r) ? e.tag = e.tagMap[r] + o : r === "!" ? e.tag = "!" + o : r === "!!" ? e.tag = "tag:yaml.org,2002:" + o : M(e, 'undeclared tag handle "' + r + '"'), !0;
2155
2155
  }
2156
- function ti(e) {
2156
+ function Xo(e) {
2157
2157
  var n, t;
2158
2158
  if (t = e.input.charCodeAt(e.position), t !== 38)
2159
2159
  return !1;
2160
- for (e.anchor !== null && M(e, "duplication of an anchor property"), t = e.input.charCodeAt(++e.position), n = e.position; t !== 0 && !fe(t) && !Oe(t); )
2160
+ for (e.anchor !== null && M(e, "duplication of an anchor property"), t = e.input.charCodeAt(++e.position), n = e.position; t !== 0 && !fe(t) && !Ee(t); )
2161
2161
  t = e.input.charCodeAt(++e.position);
2162
2162
  return e.position === n && M(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(n, e.position), !0;
2163
2163
  }
2164
- function ni(e) {
2164
+ function ei(e) {
2165
2165
  var n, t, a;
2166
2166
  if (a = e.input.charCodeAt(e.position), a !== 42)
2167
2167
  return !1;
2168
- for (a = e.input.charCodeAt(++e.position), n = e.position; a !== 0 && !fe(a) && !Oe(a); )
2168
+ for (a = e.input.charCodeAt(++e.position), n = e.position; a !== 0 && !fe(a) && !Ee(a); )
2169
2169
  a = e.input.charCodeAt(++e.position);
2170
2170
  return e.position === n && M(e, "name of an alias node must contain at least one character"), t = e.input.slice(n, e.position), _e.call(e.anchorMap, t) || M(e, 'unidentified alias "' + t + '"'), e.result = e.anchorMap[t], ae(e, !0, -1), !0;
2171
2171
  }
2172
2172
  function Ke(e, n, t, a, r) {
2173
- var o, i, l, s = 1, u = !1, p = !1, c, g, d, w, v, _;
2173
+ var o, i, l, s = 1, u = !1, p = !1, c, h, d, w, v, A;
2174
2174
  if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = i = l = He === t || Rn === t, a && ae(e, !0, -1) && (u = !0, e.lineIndent > n ? s = 1 : e.lineIndent === n ? s = 0 : e.lineIndent < n && (s = -1)), s === 1)
2175
- for (; ei(e) || ti(e); )
2175
+ for (; Qo(e) || Xo(e); )
2176
2176
  ae(e, !0, -1) ? (u = !0, l = o, e.lineIndent > n ? s = 1 : e.lineIndent === n ? s = 0 : e.lineIndent < n && (s = -1)) : l = !1;
2177
- if (l && (l = u || r), (s === 1 || He === t) && (ze === t || Vn === t ? v = n : v = n + 1, _ = e.position - e.lineStart, s === 1 ? l && (Qt(e, _) || Xo(e, _, v)) || Zo(e, v) ? p = !0 : (i && Qo(e, v) || Wo(e, v) || Yo(e, v) ? p = !0 : ni(e) ? (p = !0, (e.tag !== null || e.anchor !== null) && M(e, "alias node should not have any properties")) : Jo(e, v, ze === t) && (p = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : s === 0 && (p = l && Qt(e, _))), e.tag === null)
2177
+ if (l && (l = u || r), (s === 1 || He === t) && (ze === t || Vn === t ? v = n : v = n + 1, A = e.position - e.lineStart, s === 1 ? l && (Qt(e, A) || Zo(e, A, v)) || Wo(e, v) ? p = !0 : (i && Yo(e, v) || Ho(e, v) || Jo(e, v) ? p = !0 : ei(e) ? (p = !0, (e.tag !== null || e.anchor !== null) && M(e, "alias node should not have any properties")) : zo(e, v, ze === t) && (p = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : s === 0 && (p = l && Qt(e, A))), e.tag === null)
2178
2178
  e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2179
2179
  else if (e.tag === "?") {
2180
- for (e.result !== null && e.kind !== "scalar" && M(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), c = 0, g = e.implicitTypes.length; c < g; c += 1)
2180
+ for (e.result !== null && e.kind !== "scalar" && M(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), c = 0, h = e.implicitTypes.length; c < h; c += 1)
2181
2181
  if (w = e.implicitTypes[c], w.resolve(e.result)) {
2182
2182
  e.result = w.construct(e.result), e.tag = w.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2183
2183
  break;
@@ -2186,7 +2186,7 @@ function Ke(e, n, t, a, r) {
2186
2186
  if (_e.call(e.typeMap[e.kind || "fallback"], e.tag))
2187
2187
  w = e.typeMap[e.kind || "fallback"][e.tag];
2188
2188
  else
2189
- for (w = null, d = e.typeMap.multi[e.kind || "fallback"], c = 0, g = d.length; c < g; c += 1)
2189
+ for (w = null, d = e.typeMap.multi[e.kind || "fallback"], c = 0, h = d.length; c < h; c += 1)
2190
2190
  if (e.tag.slice(0, d[c].tag.length) === d[c].tag) {
2191
2191
  w = d[c];
2192
2192
  break;
@@ -2195,7 +2195,7 @@ function Ke(e, n, t, a, r) {
2195
2195
  }
2196
2196
  return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || p;
2197
2197
  }
2198
- function ai(e) {
2198
+ function ti(e) {
2199
2199
  var n = e.position, t, a, r, o = !1, i;
2200
2200
  for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (i = e.input.charCodeAt(e.position)) !== 0 && (ae(e, !0, -1), i = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || i !== 37)); ) {
2201
2201
  for (o = !0, i = e.input.charCodeAt(++e.position), t = e.position; i !== 0 && !fe(i); )
@@ -2217,7 +2217,7 @@ function ai(e) {
2217
2217
  }
2218
2218
  i !== 0 && It(e), _e.call(Yt, a) ? Yt[a](e, a, r) : Je(e, 'unknown document directive "' + a + '"');
2219
2219
  }
2220
- if (ae(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, ae(e, !0, -1)) : o && M(e, "directives end mark is expected"), Ke(e, e.lineIndent - 1, He, !1, !0), ae(e, !0, -1), e.checkLineBreaks && Po.test(e.input.slice(n, e.position)) && Je(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && Xe(e)) {
2220
+ if (ae(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, ae(e, !0, -1)) : o && M(e, "directives end mark is expected"), Ke(e, e.lineIndent - 1, He, !1, !0), ae(e, !0, -1), e.checkLineBreaks && Lo.test(e.input.slice(n, e.position)) && Je(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && Xe(e)) {
2221
2221
  e.input.charCodeAt(e.position) === 46 && (e.position += 3, ae(e, !0, -1));
2222
2222
  return;
2223
2223
  }
@@ -2229,14 +2229,14 @@ function ai(e) {
2229
2229
  function Yn(e, n) {
2230
2230
  e = String(e), n = n || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
2231
2231
  `), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
2232
- var t = new Ho(e, n), a = e.indexOf("\0");
2232
+ var t = new Go(e, n), a = e.indexOf("\0");
2233
2233
  for (a !== -1 && (t.position = a, M(t, "null byte is not allowed in input")), t.input += "\0"; t.input.charCodeAt(t.position) === 32; )
2234
2234
  t.lineIndent += 1, t.position += 1;
2235
2235
  for (; t.position < t.length - 1; )
2236
- ai(t);
2236
+ ti(t);
2237
2237
  return t.documents;
2238
2238
  }
2239
- function ri(e, n, t) {
2239
+ function ni(e, n, t) {
2240
2240
  n !== null && typeof n == "object" && typeof t > "u" && (t = n, n = null);
2241
2241
  var a = Yn(e, t);
2242
2242
  if (typeof n != "function")
@@ -2244,7 +2244,7 @@ function ri(e, n, t) {
2244
2244
  for (var r = 0, o = a.length; r < o; r += 1)
2245
2245
  n(a[r]);
2246
2246
  }
2247
- function oi(e, n) {
2247
+ function ai(e, n) {
2248
2248
  var t = Yn(e, n);
2249
2249
  if (t.length !== 0) {
2250
2250
  if (t.length === 1)
@@ -2252,10 +2252,10 @@ function oi(e, n) {
2252
2252
  throw new se("expected a single document in the stream, but found more");
2253
2253
  }
2254
2254
  }
2255
- var ii = ri, li = oi, Zn = {
2256
- loadAll: ii,
2257
- load: li
2258
- }, Qn = Object.prototype.toString, Xn = Object.prototype.hasOwnProperty, St = 65279, si = 9, Pe = 10, ui = 13, ci = 32, di = 33, pi = 34, dt = 35, fi = 37, mi = 38, gi = 39, yi = 42, ea = 44, hi = 45, We = 58, vi = 61, bi = 62, Ci = 63, ki = 64, ta = 91, na = 93, wi = 96, aa = 123, Ii = 124, ra = 125, le = {};
2255
+ var ri = ni, oi = ai, Zn = {
2256
+ loadAll: ri,
2257
+ load: oi
2258
+ }, Qn = Object.prototype.toString, Xn = Object.prototype.hasOwnProperty, St = 65279, ii = 9, Pe = 10, li = 13, si = 32, ui = 33, ci = 34, dt = 35, di = 37, pi = 38, fi = 39, mi = 42, ea = 44, gi = 45, We = 58, yi = 61, hi = 62, vi = 63, bi = 64, ta = 91, na = 93, Ci = 96, aa = 123, ki = 124, ra = 125, le = {};
2259
2259
  le[0] = "\\0";
2260
2260
  le[7] = "\\a";
2261
2261
  le[8] = "\\b";
@@ -2271,7 +2271,7 @@ le[133] = "\\N";
2271
2271
  le[160] = "\\_";
2272
2272
  le[8232] = "\\L";
2273
2273
  le[8233] = "\\P";
2274
- var _i = [
2274
+ var wi = [
2275
2275
  "y",
2276
2276
  "Y",
2277
2277
  "yes",
@@ -2288,8 +2288,8 @@ var _i = [
2288
2288
  "off",
2289
2289
  "Off",
2290
2290
  "OFF"
2291
- ], Si = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
2292
- function Ai(e, n) {
2291
+ ], Ii = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
2292
+ function _i(e, n) {
2293
2293
  var t, a, r, o, i, l, s;
2294
2294
  if (n === null)
2295
2295
  return {};
@@ -2297,7 +2297,7 @@ function Ai(e, n) {
2297
2297
  i = a[r], l = String(n[i]), i.slice(0, 2) === "!!" && (i = "tag:yaml.org,2002:" + i.slice(2)), s = e.compiledTypeMap.fallback[i], s && Xn.call(s.styleAliases, l) && (l = s.styleAliases[l]), t[i] = l;
2298
2298
  return t;
2299
2299
  }
2300
- function xi(e) {
2300
+ function Si(e) {
2301
2301
  var n, t, a;
2302
2302
  if (n = e.toString(16).toUpperCase(), e <= 255)
2303
2303
  t = "x", a = 2;
@@ -2309,9 +2309,9 @@ function xi(e) {
2309
2309
  throw new se("code point within a string may not be greater than 0xFFFFFFFF");
2310
2310
  return "\\" + t + re.repeat("0", a - n.length) + n;
2311
2311
  }
2312
- var Ti = 1, De = 2;
2313
- function $i(e) {
2314
- this.schema = e.schema || wt, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = re.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 === '"' ? De : 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;
2312
+ var Ai = 1, De = 2;
2313
+ function xi(e) {
2314
+ this.schema = e.schema || wt, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = re.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = _i(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 === '"' ? De : Ai, 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
2315
  }
2316
2316
  function Xt(e, n) {
2317
2317
  for (var t = re.repeat(" ", n), a = 0, r = -1, o = "", i, l = e.length; a < l; )
@@ -2324,7 +2324,7 @@ function pt(e, n) {
2324
2324
  return `
2325
2325
  ` + re.repeat(" ", e.indent * n);
2326
2326
  }
2327
- function ji(e, n) {
2327
+ function Ti(e, n) {
2328
2328
  var t, a, r;
2329
2329
  for (t = 0, a = e.implicitTypes.length; t < a; t += 1)
2330
2330
  if (r = e.implicitTypes[t], r.resolve(n))
@@ -2332,13 +2332,13 @@ function ji(e, n) {
2332
2332
  return !1;
2333
2333
  }
2334
2334
  function Ye(e) {
2335
- return e === ci || e === si;
2335
+ return e === si || e === ii;
2336
2336
  }
2337
2337
  function Ve(e) {
2338
2338
  return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== St || 65536 <= e && e <= 1114111;
2339
2339
  }
2340
2340
  function en(e) {
2341
- return Ve(e) && e !== St && e !== ui && e !== Pe;
2341
+ return Ve(e) && e !== St && e !== li && e !== Pe;
2342
2342
  }
2343
2343
  function tn(e, n, t) {
2344
2344
  var a = en(e), r = a && !Ye(e);
@@ -2350,10 +2350,10 @@ function tn(e, n, t) {
2350
2350
  ) : a && e !== ea && e !== ta && e !== na && e !== aa && e !== ra) && e !== dt && !(n === We && !r) || en(n) && !Ye(n) && e === dt || n === We && r
2351
2351
  );
2352
2352
  }
2353
- function Mi(e) {
2354
- return Ve(e) && e !== St && !Ye(e) && e !== hi && e !== Ci && e !== We && e !== ea && e !== ta && e !== na && e !== aa && e !== ra && e !== dt && e !== mi && e !== yi && e !== di && e !== Ii && e !== vi && e !== bi && e !== gi && e !== pi && e !== fi && e !== ki && e !== wi;
2353
+ function $i(e) {
2354
+ return Ve(e) && e !== St && !Ye(e) && e !== gi && e !== vi && e !== We && e !== ea && e !== ta && e !== na && e !== aa && e !== ra && e !== dt && e !== pi && e !== mi && e !== ui && e !== ki && e !== yi && e !== hi && e !== fi && e !== ci && e !== di && e !== bi && e !== Ci;
2355
2355
  }
2356
- function Oi(e) {
2356
+ function ji(e) {
2357
2357
  return !Ye(e) && e !== We;
2358
2358
  }
2359
2359
  function Be(e, n) {
@@ -2364,39 +2364,39 @@ function oa(e) {
2364
2364
  var n = /^\n* /;
2365
2365
  return n.test(e);
2366
2366
  }
2367
- var ia = 1, ft = 2, la = 3, sa = 4, Me = 5;
2368
- function Ei(e, n, t, a, r, o, i, l) {
2369
- var s, u = 0, p = null, c = !1, g = !1, d = a !== -1, w = -1, v = Mi(Be(e, 0)) && Oi(Be(e, e.length - 1));
2367
+ var ia = 1, ft = 2, la = 3, sa = 4, Oe = 5;
2368
+ function Mi(e, n, t, a, r, o, i, l) {
2369
+ var s, u = 0, p = null, c = !1, h = !1, d = a !== -1, w = -1, v = $i(Be(e, 0)) && ji(Be(e, e.length - 1));
2370
2370
  if (n || i)
2371
2371
  for (s = 0; s < e.length; u >= 65536 ? s += 2 : s++) {
2372
2372
  if (u = Be(e, s), !Ve(u))
2373
- return Me;
2373
+ return Oe;
2374
2374
  v = v && tn(u, p, l), p = u;
2375
2375
  }
2376
2376
  else {
2377
2377
  for (s = 0; s < e.length; u >= 65536 ? s += 2 : s++) {
2378
2378
  if (u = Be(e, s), u === Pe)
2379
- c = !0, d && (g = g || // Foldable line = too long, and not more-indented.
2379
+ c = !0, d && (h = h || // Foldable line = too long, and not more-indented.
2380
2380
  s - w - 1 > a && e[w + 1] !== " ", w = s);
2381
2381
  else if (!Ve(u))
2382
- return Me;
2382
+ return Oe;
2383
2383
  v = v && tn(u, p, l), p = u;
2384
2384
  }
2385
- g = g || d && s - w - 1 > a && e[w + 1] !== " ";
2385
+ h = h || d && s - w - 1 > a && e[w + 1] !== " ";
2386
2386
  }
2387
- return !c && !g ? v && !i && !r(e) ? ia : o === De ? Me : ft : t > 9 && oa(e) ? Me : i ? o === De ? Me : ft : g ? sa : la;
2387
+ return !c && !h ? v && !i && !r(e) ? ia : o === De ? Oe : ft : t > 9 && oa(e) ? Oe : i ? o === De ? Oe : ft : h ? sa : la;
2388
2388
  }
2389
- function Ni(e, n, t, a, r) {
2389
+ function Oi(e, n, t, a, r) {
2390
2390
  e.dump = function() {
2391
2391
  if (n.length === 0)
2392
2392
  return e.quotingType === De ? '""' : "''";
2393
- if (!e.noCompatMode && (_i.indexOf(n) !== -1 || Si.test(n)))
2393
+ if (!e.noCompatMode && (wi.indexOf(n) !== -1 || Ii.test(n)))
2394
2394
  return e.quotingType === De ? '"' + n + '"' : "'" + n + "'";
2395
2395
  var o = e.indent * Math.max(1, t), i = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - o), l = a || e.flowLevel > -1 && t >= e.flowLevel;
2396
2396
  function s(u) {
2397
- return ji(e, u);
2397
+ return Ti(e, u);
2398
2398
  }
2399
- switch (Ei(
2399
+ switch (Mi(
2400
2400
  n,
2401
2401
  l,
2402
2402
  e.indent,
@@ -2413,9 +2413,9 @@ function Ni(e, n, t, a, r) {
2413
2413
  case la:
2414
2414
  return "|" + nn(n, e.indent) + an(Xt(n, o));
2415
2415
  case sa:
2416
- return ">" + nn(n, e.indent) + an(Xt(Ki(n, i), o));
2417
- case Me:
2418
- return '"' + qi(n) + '"';
2416
+ return ">" + nn(n, e.indent) + an(Xt(Ei(n, i), o));
2417
+ case Oe:
2418
+ return '"' + Ni(n) + '"';
2419
2419
  default:
2420
2420
  throw new se("impossible error: invalid scalar style");
2421
2421
  }
@@ -2433,7 +2433,7 @@ function an(e) {
2433
2433
  return e[e.length - 1] === `
2434
2434
  ` ? e.slice(0, -1) : e;
2435
2435
  }
2436
- function Ki(e, n) {
2436
+ function Ei(e, n) {
2437
2437
  for (var t = /(\n+)([^\n]*)/g, a = function() {
2438
2438
  var u = e.indexOf(`
2439
2439
  `);
@@ -2456,12 +2456,12 @@ function rn(e, n) {
2456
2456
  `, e.length - r > n && i > r ? s += e.slice(r, i) + `
2457
2457
  ` + e.slice(i + 1) : s += e.slice(r), s.slice(1);
2458
2458
  }
2459
- function qi(e) {
2459
+ function Ni(e) {
2460
2460
  for (var n = "", t = 0, a, r = 0; r < e.length; t >= 65536 ? r += 2 : r++)
2461
- t = Be(e, r), a = le[t], !a && Ve(t) ? (n += e[r], t >= 65536 && (n += e[r + 1])) : n += a || xi(t);
2461
+ t = Be(e, r), a = le[t], !a && Ve(t) ? (n += e[r], t >= 65536 && (n += e[r + 1])) : n += a || Si(t);
2462
2462
  return n;
2463
2463
  }
2464
- function Bi(e, n, t) {
2464
+ function Ki(e, n, t) {
2465
2465
  var a = "", r = e.tag, o, i, l;
2466
2466
  for (o = 0, i = t.length; o < i; o += 1)
2467
2467
  l = t[o], e.replacer && (l = e.replacer.call(t, String(o), l)), (Ce(e, n, l, !1, !1) || typeof l > "u" && Ce(e, n, null, !1, !1)) && (a !== "" && (a += "," + (e.condenseFlow ? "" : " ")), a += e.dump);
@@ -2473,14 +2473,14 @@ function on(e, n, t, a) {
2473
2473
  s = t[i], e.replacer && (s = e.replacer.call(t, String(i), s)), (Ce(e, n + 1, s, !0, !0, !1, !0) || typeof s > "u" && Ce(e, n + 1, null, !0, !0, !1, !0)) && ((!a || r !== "") && (r += pt(e, n)), e.dump && Pe === e.dump.charCodeAt(0) ? r += "-" : r += "- ", r += e.dump);
2474
2474
  e.tag = o, e.dump = r || "[]";
2475
2475
  }
2476
- function Fi(e, n, t) {
2476
+ function qi(e, n, t) {
2477
2477
  var a = "", r = e.tag, o = Object.keys(t), i, l, s, u, p;
2478
2478
  for (i = 0, l = o.length; i < l; i += 1)
2479
2479
  p = "", a !== "" && (p += ", "), e.condenseFlow && (p += '"'), s = o[i], u = t[s], e.replacer && (u = e.replacer.call(t, s, u)), Ce(e, n, s, !1, !1) && (e.dump.length > 1024 && (p += "? "), p += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), Ce(e, n, u, !1, !1) && (p += e.dump, a += p));
2480
2480
  e.tag = r, e.dump = "{" + a + "}";
2481
2481
  }
2482
- function Li(e, n, t, a) {
2483
- var r = "", o = e.tag, i = Object.keys(t), l, s, u, p, c, g;
2482
+ function Bi(e, n, t, a) {
2483
+ var r = "", o = e.tag, i = Object.keys(t), l, s, u, p, c, h;
2484
2484
  if (e.sortKeys === !0)
2485
2485
  i.sort();
2486
2486
  else if (typeof e.sortKeys == "function")
@@ -2488,7 +2488,7 @@ function Li(e, n, t, a) {
2488
2488
  else if (e.sortKeys)
2489
2489
  throw new se("sortKeys must be a boolean or a function");
2490
2490
  for (l = 0, s = i.length; l < s; l += 1)
2491
- g = "", (!a || r !== "") && (g += pt(e, n)), u = i[l], p = t[u], e.replacer && (p = e.replacer.call(t, u, p)), Ce(e, n + 1, u, !0, !0, !0) && (c = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, c && (e.dump && Pe === e.dump.charCodeAt(0) ? g += "?" : g += "? "), g += e.dump, c && (g += pt(e, n)), Ce(e, n + 1, p, !0, c) && (e.dump && Pe === e.dump.charCodeAt(0) ? g += ":" : g += ": ", g += e.dump, r += g));
2491
+ h = "", (!a || r !== "") && (h += pt(e, n)), u = i[l], p = t[u], e.replacer && (p = e.replacer.call(t, u, p)), Ce(e, n + 1, u, !0, !0, !0) && (c = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, c && (e.dump && Pe === e.dump.charCodeAt(0) ? h += "?" : h += "? "), h += e.dump, c && (h += pt(e, n)), Ce(e, n + 1, p, !0, c) && (e.dump && Pe === e.dump.charCodeAt(0) ? h += ":" : h += ": ", h += e.dump, r += h));
2492
2492
  e.tag = o, e.dump = r || "{}";
2493
2493
  }
2494
2494
  function ln(e, n, t) {
@@ -2512,16 +2512,16 @@ function Ce(e, n, t, a, r, o, i) {
2512
2512
  e.tag = null, e.dump = t, ln(e, t, !1) || ln(e, t, !0);
2513
2513
  var l = Qn.call(e.dump), s = a, u;
2514
2514
  a && (a = e.flowLevel < 0 || e.flowLevel > n);
2515
- var p = l === "[object Object]" || l === "[object Array]", c, g;
2516
- if (p && (c = e.duplicates.indexOf(t), g = c !== -1), (e.tag !== null && e.tag !== "?" || g || e.indent !== 2 && n > 0) && (r = !1), g && e.usedDuplicates[c])
2515
+ var p = l === "[object Object]" || l === "[object Array]", c, h;
2516
+ if (p && (c = e.duplicates.indexOf(t), h = c !== -1), (e.tag !== null && e.tag !== "?" || h || e.indent !== 2 && n > 0) && (r = !1), h && e.usedDuplicates[c])
2517
2517
  e.dump = "*ref_" + c;
2518
2518
  else {
2519
- if (p && g && !e.usedDuplicates[c] && (e.usedDuplicates[c] = !0), l === "[object Object]")
2520
- a && Object.keys(e.dump).length !== 0 ? (Li(e, n, e.dump, r), g && (e.dump = "&ref_" + c + e.dump)) : (Fi(e, n, e.dump), g && (e.dump = "&ref_" + c + " " + e.dump));
2519
+ if (p && h && !e.usedDuplicates[c] && (e.usedDuplicates[c] = !0), l === "[object Object]")
2520
+ a && Object.keys(e.dump).length !== 0 ? (Bi(e, n, e.dump, r), h && (e.dump = "&ref_" + c + e.dump)) : (qi(e, n, e.dump), h && (e.dump = "&ref_" + c + " " + e.dump));
2521
2521
  else if (l === "[object Array]")
2522
- a && e.dump.length !== 0 ? (e.noArrayIndent && !i && n > 0 ? on(e, n - 1, e.dump, r) : on(e, n, e.dump, r), g && (e.dump = "&ref_" + c + e.dump)) : (Bi(e, n, e.dump), g && (e.dump = "&ref_" + c + " " + e.dump));
2522
+ a && e.dump.length !== 0 ? (e.noArrayIndent && !i && n > 0 ? on(e, n - 1, e.dump, r) : on(e, n, e.dump, r), h && (e.dump = "&ref_" + c + e.dump)) : (Ki(e, n, e.dump), h && (e.dump = "&ref_" + c + " " + e.dump));
2523
2523
  else if (l === "[object String]")
2524
- e.tag !== "?" && Ni(e, e.dump, n, o, s);
2524
+ e.tag !== "?" && Oi(e, e.dump, n, o, s);
2525
2525
  else {
2526
2526
  if (l === "[object Undefined]" || e.skipInvalid)
2527
2527
  return !1;
@@ -2533,7 +2533,7 @@ function Ce(e, n, t, a, r, o, i) {
2533
2533
  }
2534
2534
  return !0;
2535
2535
  }
2536
- function Ui(e, n) {
2536
+ function Fi(e, n) {
2537
2537
  var t = [], a = [], r, o;
2538
2538
  for (mt(e, t, a), r = 0, o = a.length; r < o; r += 1)
2539
2539
  n.duplicates.push(t[a[r]]);
@@ -2551,23 +2551,23 @@ function mt(e, n, t) {
2551
2551
  for (a = Object.keys(e), r = 0, o = a.length; r < o; r += 1)
2552
2552
  mt(e[a[r]], n, t);
2553
2553
  }
2554
- function Pi(e, n) {
2554
+ function Li(e, n) {
2555
2555
  n = n || {};
2556
- var t = new $i(n);
2557
- t.noRefs || Ui(e, t);
2556
+ var t = new xi(n);
2557
+ t.noRefs || Fi(e, t);
2558
2558
  var a = e;
2559
2559
  return t.replacer && (a = t.replacer.call({ "": a }, "", a)), Ce(t, 0, a, !0, !0) ? t.dump + `
2560
2560
  ` : "";
2561
2561
  }
2562
- var Di = Pi, Vi = {
2563
- dump: Di
2562
+ var Ui = Li, Pi = {
2563
+ dump: Ui
2564
2564
  };
2565
2565
  function At(e, n) {
2566
2566
  return function() {
2567
2567
  throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + n + " instead, which is now safe by default.");
2568
2568
  };
2569
2569
  }
2570
- var Ri = ie, Gi = _n, zi = Tn, Hi = En, Ji = Nn, Wi = wt, Yi = Zn.load, Zi = Zn.loadAll, Qi = Vi.dump, Xi = se, el = {
2570
+ var Di = ie, Vi = _n, Ri = Tn, Gi = En, zi = Nn, Hi = wt, Ji = Zn.load, Wi = Zn.loadAll, Yi = Pi.dump, Zi = se, Qi = {
2571
2571
  binary: Ln,
2572
2572
  float: On,
2573
2573
  map: xn,
@@ -2581,38 +2581,38 @@ var Ri = ie, Gi = _n, zi = Tn, Hi = En, Ji = Nn, Wi = wt, Yi = Zn.load, Zi = Zn.
2581
2581
  omap: Un,
2582
2582
  seq: An,
2583
2583
  str: Sn
2584
- }, tl = At("safeLoad", "load"), nl = At("safeLoadAll", "loadAll"), al = At("safeDump", "dump"), rl = {
2585
- Type: Ri,
2586
- Schema: Gi,
2587
- FAILSAFE_SCHEMA: zi,
2588
- JSON_SCHEMA: Hi,
2589
- CORE_SCHEMA: Ji,
2590
- DEFAULT_SCHEMA: Wi,
2591
- load: Yi,
2592
- loadAll: Zi,
2593
- dump: Qi,
2594
- YAMLException: Xi,
2595
- types: el,
2596
- safeLoad: tl,
2597
- safeLoadAll: nl,
2598
- safeDump: al
2584
+ }, Xi = At("safeLoad", "load"), el = At("safeLoadAll", "loadAll"), tl = At("safeDump", "dump"), nl = {
2585
+ Type: Di,
2586
+ Schema: Vi,
2587
+ FAILSAFE_SCHEMA: Ri,
2588
+ JSON_SCHEMA: Gi,
2589
+ CORE_SCHEMA: zi,
2590
+ DEFAULT_SCHEMA: Hi,
2591
+ load: Ji,
2592
+ loadAll: Wi,
2593
+ dump: Yi,
2594
+ YAMLException: Zi,
2595
+ types: Qi,
2596
+ safeLoad: Xi,
2597
+ safeLoadAll: el,
2598
+ safeDump: tl
2599
2599
  };
2600
- const ol = {
2600
+ const al = {
2601
2601
  key: 0,
2602
2602
  class: "config-card-display-form"
2603
- }, il = ["data-testid"], ll = {
2603
+ }, rl = ["data-testid"], ol = {
2604
2604
  key: 0,
2605
2605
  class: "config-card-prop-section-title"
2606
- }, sl = {
2606
+ }, il = {
2607
2607
  key: 1,
2608
2608
  class: "config-card-display-json"
2609
- }, ul = {
2609
+ }, ll = {
2610
2610
  key: 0,
2611
2611
  class: "config-card-display-json-endpoint"
2612
- }, cl = {
2612
+ }, sl = {
2613
2613
  key: 2,
2614
2614
  class: "config-card-display-yaml"
2615
- }, dl = /* @__PURE__ */ ne({
2615
+ }, ul = /* @__PURE__ */ ne({
2616
2616
  __name: "ConfigCardDisplay",
2617
2617
  props: {
2618
2618
  propertyCollections: {
@@ -2645,7 +2645,7 @@ const ol = {
2645
2645
  cn((s) => ({
2646
2646
  "7b486894": `${l.value}ch`
2647
2647
  }));
2648
- const n = e, t = Ze(), { i18n: { t: a } } = oe.useI18n(), r = (s) => !!(s.tooltip || t[`${s.key}-label-tooltip`]), o = E(""), i = E(""), l = T(() => {
2648
+ const n = e, t = Ze(), { i18n: { t: a } } = oe.useI18n(), r = (s) => !!(s.tooltip || t[`${s.key}-label-tooltip`]), o = E(""), i = E(""), l = $(() => {
2649
2649
  var s;
2650
2650
  if (!n.fetcherUrl)
2651
2651
  return 0;
@@ -2655,26 +2655,26 @@ const ol = {
2655
2655
  return ve(() => n.format, (s) => {
2656
2656
  if (s !== "structured") {
2657
2657
  const u = JSON.parse(JSON.stringify(n.record));
2658
- delete u.created_at, delete u.updated_at, s === "json" ? o.value = JSON.stringify(u, null, 2) : s === "yaml" && (i.value = rl.dump(u));
2658
+ delete u.created_at, delete u.updated_at, s === "json" ? o.value = JSON.stringify(u, null, 2) : s === "yaml" && (i.value = nl.dump(u));
2659
2659
  }
2660
2660
  }, { immediate: !0 }), (s, u) => {
2661
2661
  const p = D("KBadge"), c = D("KCodeBlock");
2662
- return f(), $(me, null, [
2663
- e.format === "structured" ? (f(), $("div", ol, [
2664
- (f(!0), $(me, null, pe(e.propListTypes, (g) => (f(), $("div", {
2665
- key: `config-card-details-${g}-props`,
2666
- class: Ie(`config-card-details-${g}-props`),
2667
- "data-testid": `config-card-details-${g}-props`
2662
+ return f(), T(me, null, [
2663
+ e.format === "structured" ? (f(), T("div", al, [
2664
+ (f(!0), T(me, null, pe(e.propListTypes, (h) => (f(), T("div", {
2665
+ key: `config-card-details-${h}-props`,
2666
+ class: Ie(`config-card-details-${h}-props`),
2667
+ "data-testid": `config-card-details-${h}-props`
2668
2668
  }, [
2669
- g !== "basic" ? (f(), $("div", ll, j(g === "advanced" ? m(a)("baseConfigCard.sections.advanced") : m(a)("baseConfigCard.sections.plugin")), 1)) : z("", !0),
2670
- (f(!0), $(me, null, pe(e.propertyCollections[g], (d) => (f(), G(Ct, {
2669
+ h !== "basic" ? (f(), T("div", ol, j(h === "advanced" ? m(a)("baseConfigCard.sections.advanced") : m(a)("baseConfigCard.sections.plugin")), 1)) : z("", !0),
2670
+ (f(!0), T(me, null, pe(e.propertyCollections[h], (d) => (f(), R(Ct, {
2671
2671
  key: d.key,
2672
2672
  item: d
2673
2673
  }, ke({
2674
- label: y(() => [
2674
+ label: g(() => [
2675
2675
  Z(s.$slots, `${d.key}-label`, { row: d }, void 0, !0)
2676
2676
  ]),
2677
- [d.key]: y(({ rowValue: w }) => [
2677
+ [d.key]: g(({ rowValue: w }) => [
2678
2678
  Z(s.$slots, d.key, {
2679
2679
  row: d,
2680
2680
  rowValue: w
@@ -2684,18 +2684,18 @@ const ol = {
2684
2684
  }, [
2685
2685
  r(d) ? {
2686
2686
  name: "label-tooltip",
2687
- fn: y(() => [
2687
+ fn: g(() => [
2688
2688
  Z(s.$slots, `${d.key}-label-tooltip`, { row: d }, void 0, !0)
2689
2689
  ]),
2690
2690
  key: "0"
2691
2691
  } : void 0
2692
2692
  ]), 1032, ["item"]))), 128))
2693
- ], 10, il))), 128))
2693
+ ], 10, rl))), 128))
2694
2694
  ])) : z("", !0),
2695
- e.format === "json" ? (f(), $("div", sl, [
2696
- n.fetcherUrl ? (f(), $("div", ul, [
2695
+ e.format === "json" ? (f(), T("div", il, [
2696
+ n.fetcherUrl ? (f(), T("div", ll, [
2697
2697
  O(p, { appearance: "get" }, {
2698
- default: y(() => [
2698
+ default: g(() => [
2699
2699
  W(j(m(a)("baseConfigCard.endpoints.get")), 1)
2700
2700
  ]),
2701
2701
  _: 1
@@ -2716,7 +2716,7 @@ const ol = {
2716
2716
  theme: "dark"
2717
2717
  }, null, 8, ["class", "code"])
2718
2718
  ])) : z("", !0),
2719
- e.format === "yaml" ? (f(), $("div", cl, [
2719
+ e.format === "yaml" ? (f(), T("div", sl, [
2720
2720
  O(c, {
2721
2721
  id: "config-card-codeblock",
2722
2722
  code: i.value,
@@ -2727,18 +2727,18 @@ const ol = {
2727
2727
  ], 64);
2728
2728
  };
2729
2729
  }
2730
- }), pl = /* @__PURE__ */ ge(dl, [["__scopeId", "data-v-27f85338"]]), sn = "24px", fl = (e, n) => {
2730
+ }), cl = /* @__PURE__ */ ge(ul, [["__scopeId", "data-v-27f85338"]]), sn = "24px", dl = (e, n) => {
2731
2731
  const t = e.__vccOpts || e;
2732
2732
  for (const [a, r] of n)
2733
2733
  t[a] = r;
2734
2734
  return t;
2735
- }, ml = (e) => (pn("data-v-84d5ee61"), e = e(), fn(), e), gl = ["aria-hidden"], yl = {
2735
+ }, pl = (e) => (pn("data-v-84d5ee61"), e = e(), fn(), e), fl = ["aria-hidden"], ml = {
2736
2736
  key: 0,
2737
2737
  "data-testid": "kui-icon-svg-title"
2738
- }, hl = /* @__PURE__ */ ml(() => /* @__PURE__ */ F("path", {
2738
+ }, gl = /* @__PURE__ */ pl(() => /* @__PURE__ */ F("path", {
2739
2739
  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",
2740
2740
  fill: "currentColor"
2741
- }, null, -1)), vl = /* @__PURE__ */ ne({
2741
+ }, null, -1)), yl = /* @__PURE__ */ ne({
2742
2742
  __name: "BookIcon",
2743
2743
  props: {
2744
2744
  /** The accessibility text provided to screen readers */
@@ -2790,7 +2790,7 @@ const ol = {
2790
2790
  }
2791
2791
  },
2792
2792
  setup(e) {
2793
- const n = e, t = T(() => {
2793
+ const n = e, t = $(() => {
2794
2794
  if (typeof n.size == "number" && n.size > 0)
2795
2795
  return `${n.size}px`;
2796
2796
  if (typeof n.size == "string") {
@@ -2799,7 +2799,7 @@ const ol = {
2799
2799
  return `${o}px`;
2800
2800
  }
2801
2801
  return sn;
2802
- }), a = T(() => ({
2802
+ }), a = $(() => ({
2803
2803
  boxSizing: "border-box",
2804
2804
  color: n.color,
2805
2805
  display: n.display,
@@ -2807,14 +2807,14 @@ const ol = {
2807
2807
  lineHeight: "0",
2808
2808
  width: t.value
2809
2809
  }));
2810
- return (r, o) => (f(), G(Ne(e.as), {
2810
+ return (r, o) => (f(), R(xe(e.as), {
2811
2811
  "aria-hidden": e.decorative ? "true" : void 0,
2812
2812
  class: "kui-icon book-icon",
2813
2813
  "data-testid": "kui-icon-wrapper-book-icon",
2814
2814
  style: dn(a.value)
2815
2815
  }, {
2816
- default: y(() => [
2817
- (f(), $("svg", {
2816
+ default: g(() => [
2817
+ (f(), T("svg", {
2818
2818
  "aria-hidden": e.decorative ? "true" : void 0,
2819
2819
  "data-testid": "kui-icon-svg-book-icon",
2820
2820
  fill: "none",
@@ -2824,23 +2824,23 @@ const ol = {
2824
2824
  width: "100%",
2825
2825
  xmlns: "http://www.w3.org/2000/svg"
2826
2826
  }, [
2827
- e.title ? (f(), $("title", yl, j(e.title), 1)) : z("", !0),
2828
- hl
2829
- ], 8, gl))
2827
+ e.title ? (f(), T("title", ml, j(e.title), 1)) : z("", !0),
2828
+ gl
2829
+ ], 8, fl))
2830
2830
  ]),
2831
2831
  _: 1
2832
2832
  }, 8, ["aria-hidden", "style"]));
2833
2833
  }
2834
- }), bl = /* @__PURE__ */ fl(vl, [["__scopeId", "data-v-84d5ee61"]]), Cl = { "data-testid": "config-card-title" }, kl = { class: "config-card-actions" }, wl = ["href"], Il = {
2834
+ }), hl = /* @__PURE__ */ dl(yl, [["__scopeId", "data-v-84d5ee61"]]), vl = { "data-testid": "config-card-title" }, bl = { class: "config-card-actions" }, Cl = ["href"], kl = {
2835
2835
  key: 2,
2836
2836
  class: "config-card-details-section"
2837
- }, _l = {
2837
+ }, wl = {
2838
2838
  key: 3,
2839
2839
  class: "config-card-details-section"
2840
- }, Sl = ["data-testid"], Al = {
2840
+ }, Il = ["data-testid"], _l = {
2841
2841
  key: 0,
2842
2842
  class: "config-card-prop-section-title"
2843
- }, xl = /* @__PURE__ */ ne({
2843
+ }, Sl = /* @__PURE__ */ ne({
2844
2844
  __name: "EntityBaseConfigCard",
2845
2845
  props: {
2846
2846
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -2931,7 +2931,7 @@ const ol = {
2931
2931
  label: "YAML",
2932
2932
  value: "yaml"
2933
2933
  }
2934
- ], c = E("structured"), g = (b) => {
2934
+ ], c = E("structured"), h = (b) => {
2935
2935
  c.value = b == null ? void 0 : b.value;
2936
2936
  }, d = {
2937
2937
  id: {
@@ -2967,21 +2967,21 @@ const ol = {
2967
2967
  // the last property displayed
2968
2968
  section: de.Basic
2969
2969
  }
2970
- }, w = E(!1), v = E(!1), _ = E(""), h = E(), C = T(() => {
2971
- var b, I, B;
2972
- if (!h.value)
2970
+ }, w = E(!1), v = E(!1), A = E(""), y = E(), C = $(() => {
2971
+ var b, I, K;
2972
+ if (!y.value)
2973
2973
  return [];
2974
- const V = [], x = Object.keys(h.value).length;
2975
- for (const K in h.value) {
2976
- const P = (I = (b = r.configSchema) == null ? void 0 : b[K]) == null ? void 0 : I.order, R = (B = d[K]) == null ? void 0 : B.order;
2977
- let Q = x;
2978
- (R || R === 0) && (Q = R === -1 ? x + 1 : R), P && (Q = P === -1 ? x + 1 : P), V.push([K, Q]);
2974
+ const V = [], _ = Object.keys(y.value).length;
2975
+ for (const L in y.value) {
2976
+ const P = (I = (b = r.configSchema) == null ? void 0 : b[L]) == null ? void 0 : I.order, G = (K = d[L]) == null ? void 0 : K.order;
2977
+ let Q = _;
2978
+ (G || G === 0) && (Q = G === -1 ? _ + 1 : G), P && (Q = P === -1 ? _ + 1 : P), V.push([L, Q]);
2979
2979
  }
2980
- return V.sort(function(K, P) {
2981
- return K[1] - P[1];
2982
- }), V.map((K) => {
2983
- var P, R;
2984
- const Q = K[0], J = (P = h.value) == null ? void 0 : P[Q], X = ((R = r.configSchema) == null ? void 0 : R[Q]) || {}, ue = d[Q];
2980
+ return V.sort(function(L, P) {
2981
+ return L[1] - P[1];
2982
+ }), V.map((L) => {
2983
+ var P, G;
2984
+ const Q = L[0], J = (P = y.value) == null ? void 0 : P[Q], X = ((G = r.configSchema) == null ? void 0 : G[Q]) || {}, ue = d[Q];
2985
2985
  return {
2986
2986
  key: Q,
2987
2987
  value: J,
@@ -2991,120 +2991,120 @@ const ol = {
2991
2991
  tooltip: X.tooltip ?? ((ue == null ? void 0 : ue.tooltip) || void 0),
2992
2992
  section: X.section ?? ((ue == null ? void 0 : ue.section) || de.Advanced)
2993
2993
  };
2994
- }).filter((K) => !K.hidden && K.key !== r.pluginConfigKey);
2995
- }), L = T(() => {
2994
+ }).filter((L) => !L.hidden && L.key !== r.pluginConfigKey);
2995
+ }), U = $(() => {
2996
2996
  var b, I;
2997
- if (!h.value || !r.pluginConfigKey)
2997
+ if (!y.value || !r.pluginConfigKey)
2998
2998
  return [];
2999
- const B = h.value[r.pluginConfigKey] || {}, V = Object.keys(B).length, x = [];
3000
- for (const K in B) {
3001
- const P = (I = (b = r.pluginConfigSchema) == null ? void 0 : b[K]) == null ? void 0 : I.order, R = B[K];
3002
- let Q = R != null && R !== "" ? V - 1 : V;
3003
- P && (Q = P === -1 ? V + 1 : P), x.push([K, Q]);
2999
+ const K = y.value[r.pluginConfigKey] || {}, V = Object.keys(K).length, _ = [];
3000
+ for (const L in K) {
3001
+ const P = (I = (b = r.pluginConfigSchema) == null ? void 0 : b[L]) == null ? void 0 : I.order, G = K[L];
3002
+ let Q = G != null && G !== "" ? V - 1 : V;
3003
+ P && (Q = P === -1 ? V + 1 : P), _.push([L, Q]);
3004
3004
  }
3005
- return x.sort(function(K, P) {
3006
- return K[1] - P[1];
3007
- }), x.map((K) => {
3005
+ return _.sort(function(L, P) {
3006
+ return L[1] - P[1];
3007
+ }), _.map((L) => {
3008
3008
  var P;
3009
- const R = K[0], Q = B[R], J = ((P = r.pluginConfigSchema) == null ? void 0 : P[R]) || {};
3009
+ const G = L[0], Q = K[G], J = ((P = r.pluginConfigSchema) == null ? void 0 : P[G]) || {};
3010
3010
  return {
3011
- key: R,
3011
+ key: G,
3012
3012
  value: Q,
3013
3013
  hidden: J.hidden || !1,
3014
3014
  type: J.type ?? ee.Text,
3015
- label: J.label ?? s(R),
3015
+ label: J.label ?? s(G),
3016
3016
  tooltip: J.tooltip ?? void 0,
3017
3017
  section: de.Plugin
3018
3018
  };
3019
- }).filter((K) => !K.hidden);
3020
- }), S = T(() => {
3021
- var b, I, B, V;
3019
+ }).filter((L) => !L.hidden);
3020
+ }), S = $(() => {
3021
+ var b, I, K, V;
3022
3022
  return {
3023
- basic: (b = C.value) == null ? void 0 : b.filter((x) => x.section === de.Basic),
3024
- advanced: (I = C.value) == null ? void 0 : I.filter((x) => x.section === de.Advanced),
3025
- plugin: (V = L.value) == null ? void 0 : V.concat((B = C.value) == null ? void 0 : B.filter((x) => x.section === de.Plugin))
3023
+ basic: (b = C.value) == null ? void 0 : b.filter((_) => _.section === de.Basic),
3024
+ advanced: (I = C.value) == null ? void 0 : I.filter((_) => _.section === de.Advanced),
3025
+ plugin: (V = U.value) == null ? void 0 : V.concat((K = C.value) == null ? void 0 : K.filter((_) => _.section === de.Plugin))
3026
3026
  };
3027
- }), q = T(() => {
3027
+ }), N = $(() => {
3028
3028
  const b = [];
3029
3029
  return S.value.basic.length && b.push("basic"), S.value.advanced.length && b.push("advanced"), S.value.plugin.length && b.push("plugin"), b;
3030
- }), k = (b) => !!(b.tooltip || o[`${b.key}-label-tooltip`]), U = T(() => {
3030
+ }), k = (b) => !!(b.tooltip || o[`${b.key}-label-tooltip`]), q = $(() => {
3031
3031
  var b, I;
3032
- let B = `${r.config.apiBaseUrl}${r.fetchUrl}`;
3033
- return r.config.app === "konnect" ? B = B.replace(/{controlPlaneId}/gi, ((b = r.config) == null ? void 0 : b.controlPlaneId) || "") : r.config.app === "kongManager" && (B = B.replace(/\/{workspace}/gi, (I = r.config) != null && I.workspace ? `/${r.config.workspace}` : "")), B = B.replace(/{id}/gi, r.config.entityId), B;
3034
- }), N = (b) => {
3035
- h.value && b(JSON.stringify(h.value)) ? a("copy:success", h.value) : a("copy:error");
3032
+ let K = `${r.config.apiBaseUrl}${r.fetchUrl}`;
3033
+ return r.config.app === "konnect" ? K = K.replace(/{controlPlaneId}/gi, ((b = r.config) == null ? void 0 : b.controlPlaneId) || "") : r.config.app === "kongManager" && (K = K.replace(/\/{workspace}/gi, (I = r.config) != null && I.workspace ? `/${r.config.workspace}` : "")), K = K.replace(/{id}/gi, r.config.entityId), K;
3034
+ }), B = (b) => {
3035
+ y.value && b(JSON.stringify(y.value)) ? a("copy:success", y.value) : a("copy:error");
3036
3036
  };
3037
3037
  return ve(w, (b) => {
3038
3038
  a("loading", b);
3039
3039
  }, { immediate: !0 }), gt(async () => {
3040
3040
  v.value = !1, w.value = !0;
3041
3041
  try {
3042
- const { data: b } = await u.get(U.value);
3042
+ const { data: b } = await u.get(q.value);
3043
3043
  if (r.dataKey)
3044
3044
  if (typeof b[r.dataKey] < "u")
3045
- h.value = { ...b[r.dataKey] };
3045
+ y.value = { ...b[r.dataKey] };
3046
3046
  else
3047
3047
  throw new Error(i("errors.dataKeyUndefined", { dataKey: r.dataKey }));
3048
3048
  else
3049
- h.value = { ...b };
3049
+ y.value = { ...b };
3050
3050
  Object.keys(r.configSchema).filter((I) => r.configSchema[I].forceShow).forEach((I) => {
3051
- h.value && typeof h.value[I] > "u" && (h.value[I] = null);
3051
+ y.value && typeof y.value[I] > "u" && (y.value[I] = null);
3052
3052
  }), a("fetch:success", b);
3053
3053
  } catch (b) {
3054
3054
  const I = l(b);
3055
- _.value = I.startsWith("code") ? i("baseConfigCard.errors.load") : I, v.value = !0, a("fetch:error", b);
3055
+ A.value = I.startsWith("code") ? i("baseConfigCard.errors.load") : I, v.value = !0, a("fetch:error", b);
3056
3056
  } finally {
3057
3057
  w.value = !1;
3058
3058
  }
3059
3059
  }), (b, I) => {
3060
- const B = D("KLabel"), V = D("KSelect"), x = D("KButton"), K = D("KClipboardProvider"), P = D("KSkeleton"), R = D("KEmptyState"), Q = D("KCard");
3061
- return f(), G(Q, { class: "kong-ui-entity-base-config-card" }, ke({
3062
- actions: y(() => [
3063
- F("div", kl, [
3060
+ const K = D("KLabel"), V = D("KSelect"), _ = D("KButton"), L = D("KClipboardProvider"), P = D("KSkeleton"), G = D("KEmptyState"), Q = D("KCard");
3061
+ return f(), R(Q, { class: "kong-ui-entity-base-config-card" }, ke({
3062
+ actions: g(() => [
3063
+ F("div", bl, [
3064
3064
  Z(b.$slots, "actions", {}, void 0, !0),
3065
- e.config.jsonYamlEnabled ? (f(), G(B, {
3065
+ e.config.jsonYamlEnabled ? (f(), R(K, {
3066
3066
  key: 0,
3067
3067
  class: "config-format-select-label",
3068
3068
  "data-testid": "config-format-select-label"
3069
3069
  }, {
3070
- default: y(() => [
3070
+ default: g(() => [
3071
3071
  W(j(e.label), 1)
3072
3072
  ]),
3073
3073
  _: 1
3074
3074
  })) : z("", !0),
3075
- e.config.jsonYamlEnabled ? (f(), G(V, {
3075
+ e.config.jsonYamlEnabled ? (f(), R(V, {
3076
3076
  key: 1,
3077
3077
  appearance: "select",
3078
3078
  "data-testid": "select-config-format",
3079
3079
  items: p,
3080
- onChange: g
3080
+ onChange: h
3081
3081
  })) : z("", !0),
3082
- r.config.jsonYamlEnabled && e.configCardDoc ? (f(), G(x, {
3082
+ r.config.jsonYamlEnabled && e.configCardDoc ? (f(), R(_, {
3083
3083
  key: 2,
3084
3084
  appearance: "tertiary",
3085
3085
  class: "book-icon",
3086
3086
  "data-testid": "book-icon"
3087
3087
  }, {
3088
- default: y(() => [
3088
+ default: g(() => [
3089
3089
  F("a", {
3090
3090
  href: e.configCardDoc,
3091
3091
  rel: "noopener",
3092
3092
  target: "_blank"
3093
3093
  }, [
3094
- O(m(bl), { size: m(Sr) }, null, 8, ["size"])
3095
- ], 8, wl)
3094
+ O(m(hl), { size: m(Ir) }, null, 8, ["size"])
3095
+ ], 8, Cl)
3096
3096
  ]),
3097
3097
  _: 1
3098
3098
  })) : z("", !0),
3099
- e.config.jsonYamlEnabled ? z("", !0) : (f(), G(K, { key: 3 }, {
3100
- default: y(({ copyToClipboard: J }) => [
3101
- !w.value && !v.value ? (f(), G(x, {
3099
+ e.config.jsonYamlEnabled ? z("", !0) : (f(), R(L, { key: 3 }, {
3100
+ default: g(({ copyToClipboard: J }) => [
3101
+ !w.value && !v.value ? (f(), R(_, {
3102
3102
  key: 0,
3103
3103
  appearance: "tertiary",
3104
3104
  "data-testid": "json-copy-button",
3105
- onClick: (X) => N(J)
3105
+ onClick: (X) => B(J)
3106
3106
  }, {
3107
- default: y(() => [
3107
+ default: g(() => [
3108
3108
  W(j(m(i)("baseConfigCard.actions.copy")), 1)
3109
3109
  ]),
3110
3110
  _: 2
@@ -3114,33 +3114,33 @@ const ol = {
3114
3114
  }))
3115
3115
  ])
3116
3116
  ]),
3117
- default: y(() => [
3118
- w.value ? (f(), G(P, {
3117
+ default: g(() => [
3118
+ w.value ? (f(), R(P, {
3119
3119
  key: 0,
3120
3120
  "data-testid": "config-card-loader",
3121
3121
  "table-columns": 2,
3122
3122
  type: "table"
3123
- })) : v.value ? (f(), G(R, {
3123
+ })) : v.value ? (f(), R(G, {
3124
3124
  key: 1,
3125
3125
  "data-testid": "config-card-fetch-error",
3126
3126
  "is-error": ""
3127
3127
  }, {
3128
- message: y(() => [
3129
- F("h3", null, j(_.value), 1)
3128
+ message: g(() => [
3129
+ F("h3", null, j(A.value), 1)
3130
3130
  ]),
3131
3131
  _: 1
3132
3132
  })) : z("", !0),
3133
- e.config.jsonYamlEnabled ? (f(), $("div", Il, [
3134
- O(pl, {
3135
- "fetcher-url": U.value,
3133
+ e.config.jsonYamlEnabled ? (f(), T("div", kl, [
3134
+ O(cl, {
3135
+ "fetcher-url": q.value,
3136
3136
  format: c.value,
3137
- "prop-list-types": q.value,
3137
+ "prop-list-types": N.value,
3138
3138
  "property-collections": S.value,
3139
- record: h.value
3139
+ record: y.value
3140
3140
  }, ke({ _: 2 }, [
3141
3141
  pe(Object.keys(b.$slots), (J) => ({
3142
3142
  name: J,
3143
- fn: y(({ row: X, rowValue: ue }) => [
3143
+ fn: g(({ row: X, rowValue: ue }) => [
3144
3144
  Z(b.$slots, J, {
3145
3145
  row: X,
3146
3146
  rowValue: ue
@@ -3148,21 +3148,21 @@ const ol = {
3148
3148
  ])
3149
3149
  }))
3150
3150
  ]), 1032, ["fetcher-url", "format", "prop-list-types", "property-collections", "record"])
3151
- ])) : (f(), $("div", _l, [
3152
- (f(!0), $(me, null, pe(q.value, (J) => (f(), $("div", {
3151
+ ])) : (f(), T("div", wl, [
3152
+ (f(!0), T(me, null, pe(N.value, (J) => (f(), T("div", {
3153
3153
  key: `config-card-details-${J}-props`,
3154
3154
  class: Ie(`config-card-details-${J}-props`),
3155
3155
  "data-testid": `config-card-details-${J}-props`
3156
3156
  }, [
3157
- J !== "basic" ? (f(), $("div", Al, j(J === "advanced" ? m(i)("baseConfigCard.sections.advanced") : m(i)("baseConfigCard.sections.plugin")), 1)) : z("", !0),
3158
- (f(!0), $(me, null, pe(S.value[J], (X) => (f(), G(Ct, {
3157
+ J !== "basic" ? (f(), T("div", _l, j(J === "advanced" ? m(i)("baseConfigCard.sections.advanced") : m(i)("baseConfigCard.sections.plugin")), 1)) : z("", !0),
3158
+ (f(!0), T(me, null, pe(S.value[J], (X) => (f(), R(Ct, {
3159
3159
  key: X.key,
3160
3160
  item: X
3161
3161
  }, ke({
3162
- label: y(() => [
3162
+ label: g(() => [
3163
3163
  Z(b.$slots, `${X.key}-label`, { row: X }, void 0, !0)
3164
3164
  ]),
3165
- [X.key]: y(({ rowValue: ue }) => [
3165
+ [X.key]: g(({ rowValue: ue }) => [
3166
3166
  Z(b.$slots, X.key, {
3167
3167
  row: X,
3168
3168
  rowValue: ue
@@ -3172,21 +3172,21 @@ const ol = {
3172
3172
  }, [
3173
3173
  k(X) ? {
3174
3174
  name: "label-tooltip",
3175
- fn: y(() => [
3175
+ fn: g(() => [
3176
3176
  Z(b.$slots, `${X.key}-label-tooltip`, { row: X }, void 0, !0)
3177
3177
  ]),
3178
3178
  key: "0"
3179
3179
  } : void 0
3180
3180
  ]), 1032, ["item"]))), 128))
3181
- ], 10, Sl))), 128))
3181
+ ], 10, Il))), 128))
3182
3182
  ]))
3183
3183
  ]),
3184
3184
  _: 2
3185
3185
  }, [
3186
3186
  e.hideTitle ? void 0 : {
3187
3187
  name: "title",
3188
- fn: y(() => [
3189
- F("div", Cl, [
3188
+ fn: g(() => [
3189
+ F("div", vl, [
3190
3190
  Z(b.$slots, "title", {}, () => [
3191
3191
  W(j(m(i)("baseConfigCard.title")), 1)
3192
3192
  ], !0)
@@ -3197,10 +3197,10 @@ const ol = {
3197
3197
  ]), 1024);
3198
3198
  };
3199
3199
  }
3200
- }), Tl = /* @__PURE__ */ ge(xl, [["__scopeId", "data-v-4f47d6ad"]]), $l = {
3200
+ }), Al = /* @__PURE__ */ ge(Sl, [["__scopeId", "data-v-4f47d6ad"]]), xl = {
3201
3201
  class: "form-actions",
3202
3202
  "data-testid": "form-actions"
3203
- }, jl = /* @__PURE__ */ ne({
3203
+ }, Tl = /* @__PURE__ */ ne({
3204
3204
  __name: "EntityBaseForm",
3205
3205
  props: {
3206
3206
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -3252,73 +3252,73 @@ const ol = {
3252
3252
  var t;
3253
3253
  const a = n, r = e, o = yt(), { i18n: { t: i } } = oe.useI18n(), { getMessageFromError: l } = oe.useErrors(), { axiosInstance: s } = oe.useAxios({
3254
3254
  headers: (t = r.config) == null ? void 0 : t.requestHeaders
3255
- }), u = E(!1), p = E(!1), c = E(""), g = T(() => r.canSubmit === !1 || r.isReadonly), d = T(() => {
3256
- var h, C;
3255
+ }), u = E(!1), p = E(!1), c = E(""), h = $(() => r.canSubmit === !1 || r.isReadonly), d = $(() => {
3256
+ var y, C;
3257
3257
  if (!r.editId)
3258
3258
  return "";
3259
- let L = `${r.config.apiBaseUrl}${r.fetchUrl}`;
3260
- return r.config.app === "konnect" ? L = L.replace(/{controlPlaneId}/gi, ((h = r.config) == null ? void 0 : h.controlPlaneId) || "") : r.config.app === "kongManager" && (L = L.replace(/\/{workspace}/gi, (C = r.config) != null && C.workspace ? `/${r.config.workspace}` : "")), L = L.replace(/{id}/gi, r.editId), L;
3259
+ let U = `${r.config.apiBaseUrl}${r.fetchUrl}`;
3260
+ return r.config.app === "konnect" ? U = U.replace(/{controlPlaneId}/gi, ((y = r.config) == null ? void 0 : y.controlPlaneId) || "") : r.config.app === "kongManager" && (U = U.replace(/\/{workspace}/gi, (C = r.config) != null && C.workspace ? `/${r.config.workspace}` : "")), U = U.replace(/{id}/gi, r.editId), U;
3261
3261
  }), w = () => {
3262
3262
  r.config.cancelRoute ? o.push(r.config.cancelRoute) : v();
3263
3263
  }, v = () => {
3264
3264
  a("cancel");
3265
- }, _ = () => {
3266
- g.value || a("submit");
3265
+ }, A = () => {
3266
+ h.value || a("submit");
3267
3267
  };
3268
- return ve(() => u.value, (h) => {
3269
- a("loading", h);
3268
+ return ve(() => u.value, (y) => {
3269
+ a("loading", y);
3270
3270
  }, { immediate: !0 }), gt(async () => {
3271
3271
  if (r.editId)
3272
3272
  try {
3273
3273
  p.value = !1, u.value = !0;
3274
- const { data: h } = await s.get(d.value);
3275
- a("fetch:success", h);
3276
- } catch (h) {
3277
- const C = l(h);
3278
- c.value = C.startsWith("code") ? i("baseForm.errors.edit") : C, p.value = !0, a("fetch:error", h);
3274
+ const { data: y } = await s.get(d.value);
3275
+ a("fetch:success", y);
3276
+ } catch (y) {
3277
+ const C = l(y);
3278
+ c.value = C.startsWith("code") ? i("baseForm.errors.edit") : C, p.value = !0, a("fetch:error", y);
3279
3279
  } finally {
3280
3280
  u.value = !1;
3281
3281
  }
3282
- }), (h, C) => {
3283
- const L = D("KSkeleton"), S = D("KEmptyState"), q = D("KAlert"), k = D("KButton"), U = D("KCard");
3284
- return f(), G(U, { class: "kong-ui-entity-base-form" }, {
3285
- default: y(() => [
3286
- u.value ? (f(), G(L, {
3282
+ }), (y, C) => {
3283
+ const U = D("KSkeleton"), S = D("KEmptyState"), N = D("KAlert"), k = D("KButton"), q = D("KCard");
3284
+ return f(), R(q, { class: "kong-ui-entity-base-form" }, {
3285
+ default: g(() => [
3286
+ u.value ? (f(), R(U, {
3287
3287
  key: 0,
3288
3288
  type: "form"
3289
- })) : p.value ? (f(), G(S, {
3289
+ })) : p.value ? (f(), R(S, {
3290
3290
  key: 1,
3291
3291
  "cta-text": m(i)("baseForm.actions.back"),
3292
3292
  "data-testid": "form-fetch-error",
3293
3293
  "handle-click": w,
3294
3294
  "is-error": !0
3295
3295
  }, {
3296
- message: y(() => [
3296
+ message: g(() => [
3297
3297
  F("h3", null, j(c.value), 1)
3298
3298
  ]),
3299
3299
  _: 1
3300
- }, 8, ["cta-text"])) : (f(), $("form", {
3300
+ }, 8, ["cta-text"])) : (f(), T("form", {
3301
3301
  key: 2,
3302
3302
  "data-testid": "form-content",
3303
3303
  onReset: Ge(v, ["prevent"]),
3304
- onSubmit: Ge(_, ["prevent"])
3304
+ onSubmit: Ge(A, ["prevent"])
3305
3305
  }, [
3306
- Z(h.$slots, "default", {}, void 0, !0),
3307
- e.errorMessage ? (f(), G(q, {
3306
+ Z(y.$slots, "default", {}, void 0, !0),
3307
+ e.errorMessage ? (f(), R(N, {
3308
3308
  key: 0,
3309
3309
  "alert-message": e.errorMessage,
3310
3310
  appearance: "danger",
3311
3311
  "data-testid": "form-error"
3312
3312
  }, null, 8, ["alert-message"])) : z("", !0),
3313
- F("div", $l, [
3314
- Z(h.$slots, "form-actions", {}, () => [
3313
+ F("div", xl, [
3314
+ Z(y.$slots, "form-actions", {}, () => [
3315
3315
  O(k, {
3316
3316
  appearance: "secondary",
3317
3317
  "data-testid": "form-cancel",
3318
3318
  disabled: e.isReadonly,
3319
3319
  type: "reset"
3320
3320
  }, {
3321
- default: y(() => [
3321
+ default: g(() => [
3322
3322
  W(j(m(i)("baseForm.actions.cancel")), 1)
3323
3323
  ]),
3324
3324
  _: 1
@@ -3326,10 +3326,10 @@ const ol = {
3326
3326
  O(k, {
3327
3327
  appearance: "primary",
3328
3328
  "data-testid": "form-submit",
3329
- disabled: g.value,
3329
+ disabled: h.value,
3330
3330
  type: "submit"
3331
3331
  }, {
3332
- default: y(() => [
3332
+ default: g(() => [
3333
3333
  W(j(m(i)("baseForm.actions.save")), 1)
3334
3334
  ]),
3335
3335
  _: 1
@@ -3342,10 +3342,10 @@ const ol = {
3342
3342
  });
3343
3343
  };
3344
3344
  }
3345
- }), Ml = /* @__PURE__ */ ge(jl, [["__scopeId", "data-v-448d8512"]]), Ol = {
3345
+ }), $l = /* @__PURE__ */ ge(Tl, [["__scopeId", "data-v-448d8512"]]), jl = {
3346
3346
  key: 0,
3347
3347
  "data-testid": "first-col"
3348
- }, El = /* @__PURE__ */ ne({
3348
+ }, Ml = /* @__PURE__ */ ne({
3349
3349
  __name: "EntityBaseTableCell",
3350
3350
  props: {
3351
3351
  keyName: {
@@ -3358,56 +3358,56 @@ const ol = {
3358
3358
  }
3359
3359
  },
3360
3360
  setup(e) {
3361
- const n = e, t = T(() => {
3361
+ const n = e, t = $(() => {
3362
3362
  var v;
3363
3363
  return ((v = n.rowEl) == null ? void 0 : v.querySelector(`[data-testid="${n.keyName}"]`)) || null;
3364
- }), a = T(() => {
3364
+ }), a = $(() => {
3365
3365
  var v;
3366
3366
  return ((v = t.value) == null ? void 0 : v.querySelector('[data-testid="first-col"]')) || null;
3367
- }), r = T(() => {
3368
- var v, _;
3369
- const h = (v = n.rowEl) == null ? void 0 : v.querySelectorAll("td");
3370
- return h ? ((_ = h[0]) == null ? void 0 : _.getAttribute("data-testid")) === n.keyName : !1;
3367
+ }), r = $(() => {
3368
+ var v, A;
3369
+ const y = (v = n.rowEl) == null ? void 0 : v.querySelectorAll("td");
3370
+ return y ? ((A = y[0]) == null ? void 0 : A.getAttribute("data-testid")) === n.keyName : !1;
3371
3371
  });
3372
3372
  let o;
3373
3373
  const i = () => {
3374
3374
  o && (o.disconnect(), o = void 0);
3375
3375
  }, l = () => {
3376
- var v, _, h;
3377
- u.value = ((v = a.value) == null ? void 0 : v.getBoundingClientRect().width) || 0, p.value = ((_ = t.value) == null ? void 0 : _.clientWidth) || 0, c.value = ((h = s.value) == null ? void 0 : h.innerText) || "";
3378
- }, s = E({}), u = E(0), p = E(0), c = E(""), g = T(() => [a.value, t.value]), d = ve(
3379
- g,
3376
+ var v, A, y;
3377
+ u.value = ((v = a.value) == null ? void 0 : v.getBoundingClientRect().width) || 0, p.value = ((A = t.value) == null ? void 0 : A.clientWidth) || 0, c.value = ((y = s.value) == null ? void 0 : y.innerText) || "";
3378
+ }, s = E({}), u = E(0), p = E(0), c = E(""), h = $(() => [a.value, t.value]), d = ve(
3379
+ h,
3380
3380
  (v) => {
3381
3381
  if (r.value && (i(), "ResizeObserver" in window && window)) {
3382
- o = new ResizeObserver((_) => {
3382
+ o = new ResizeObserver((A) => {
3383
3383
  window.requestAnimationFrame(() => {
3384
- !Array.isArray(_) || !_.length || l();
3384
+ !Array.isArray(A) || !A.length || l();
3385
3385
  });
3386
3386
  });
3387
- for (const _ of v)
3388
- _ && o.observe(_);
3387
+ for (const A of v)
3388
+ A && o.observe(A);
3389
3389
  }
3390
3390
  },
3391
3391
  { immediate: !0, flush: "post", deep: !0 }
3392
- ), w = T(() => r.value ? u.value > p.value : !1);
3393
- return ba(() => {
3392
+ ), w = $(() => r.value ? u.value > p.value : !1);
3393
+ return va(() => {
3394
3394
  l();
3395
- }), Ca(() => {
3395
+ }), ba(() => {
3396
3396
  d();
3397
- }), (v, _) => {
3398
- const h = D("KTooltip");
3399
- return f(), $("span", {
3397
+ }), (v, A) => {
3398
+ const y = D("KTooltip");
3399
+ return f(), T("span", {
3400
3400
  ref_key: "contentRef",
3401
3401
  ref: s,
3402
3402
  class: "content-wrapper"
3403
3403
  }, [
3404
- r.value ? (f(), $("span", Ol, [
3405
- O(h, {
3404
+ r.value ? (f(), T("span", jl, [
3405
+ O(y, {
3406
3406
  label: w.value ? c.value : "",
3407
3407
  "max-width": "300",
3408
3408
  placement: "bottomStart"
3409
3409
  }, {
3410
- default: y(() => [
3410
+ default: g(() => [
3411
3411
  Z(v.$slots, "default", {}, void 0, !0)
3412
3412
  ]),
3413
3413
  _: 3
@@ -3416,10 +3416,10 @@ const ol = {
3416
3416
  ], 512);
3417
3417
  };
3418
3418
  }
3419
- }), Nl = /* @__PURE__ */ ge(El, [["__scopeId", "data-v-e42a20c9"]]), Kl = { class: "toolbar-container" }, ql = {
3419
+ }), Ol = /* @__PURE__ */ ge(Ml, [["__scopeId", "data-v-e42a20c9"]]), El = { class: "toolbar-container" }, Nl = {
3420
3420
  key: 0,
3421
3421
  class: "toolbar-button-container"
3422
- }, Bl = ["data-testid"], Fl = /* @__PURE__ */ ne({
3422
+ }, Kl = ["data-testid"], ql = /* @__PURE__ */ ne({
3423
3423
  __name: "EntityBaseTable",
3424
3424
  props: {
3425
3425
  // table header configuration
@@ -3529,43 +3529,43 @@ const ol = {
3529
3529
  },
3530
3530
  emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
3531
3531
  setup(e, { emit: n }) {
3532
- const t = e, a = n, { i18n: { t: r } } = oe.useI18n(), o = T(() => {
3533
- var q, k;
3532
+ const t = e, a = n, { i18n: { t: r } } = oe.useI18n(), o = $(() => {
3533
+ var N, k;
3534
3534
  return typeof t.errorMessage == "string" ? {
3535
3535
  hasError: !!t.errorMessage,
3536
3536
  title: t.errorMessage,
3537
3537
  message: void 0
3538
3538
  } : {
3539
3539
  hasError: !!t.errorMessage,
3540
- title: (q = t.errorMessage) == null ? void 0 : q.title,
3540
+ title: (N = t.errorMessage) == null ? void 0 : N.title,
3541
3541
  message: (k = t.errorMessage) == null ? void 0 : k.message
3542
3542
  };
3543
- }), i = T(() => t.cacheIdentifier || t.preferencesStorageKey), l = (q) => q.hasData || !!t.query, s = T(() => {
3544
- const q = [];
3543
+ }), i = $(() => t.cacheIdentifier || t.preferencesStorageKey), l = (N) => N.hasData || !!t.query, s = $(() => {
3544
+ const N = [];
3545
3545
  return Object.keys(t.tableHeaders).forEach((k) => {
3546
- const U = t.tableHeaders[k];
3547
- q.push({
3548
- label: U.label ?? k,
3546
+ const q = t.tableHeaders[k];
3547
+ N.push({
3548
+ label: q.label ?? k,
3549
3549
  key: k,
3550
- sortable: U.sortable ?? !1
3550
+ sortable: q.sortable ?? !1
3551
3551
  });
3552
- }), t.enableEntityActions && q.push({
3552
+ }), t.enableEntityActions && N.push({
3553
3553
  key: "actions",
3554
3554
  hideLabel: !0
3555
- }), q;
3556
- }), u = (q) => ({
3557
- "data-rowid": q.id,
3558
- "data-testid": q.name,
3559
- ...t.rowAttributes(q)
3560
- }), p = E({}), c = (q) => {
3555
+ }), N;
3556
+ }), u = (N) => ({
3557
+ "data-rowid": N.id,
3558
+ "data-testid": N.name,
3559
+ ...t.rowAttributes(N)
3560
+ }), p = E({}), c = (N) => {
3561
3561
  var k;
3562
- return (k = p.value) == null ? void 0 : k.$el.querySelector(`[data-rowid="${q.id}"]`);
3563
- }, g = (q) => {
3562
+ return (k = p.value) == null ? void 0 : k.$el.querySelector(`[data-rowid="${N.id}"]`);
3563
+ }, h = (N) => {
3564
3564
  const k = {
3565
- "data-testid": q.headerKey,
3566
- ...t.cellAttributes(q)
3565
+ "data-testid": N.headerKey,
3566
+ ...t.cellAttributes(N)
3567
3567
  };
3568
- return q.colIndex === 0 && (k.style = {
3568
+ return N.colIndex === 0 && (k.style = {
3569
3569
  maxWidth: "250px",
3570
3570
  overflowX: "hidden",
3571
3571
  textOverflow: "ellipsis"
@@ -3574,31 +3574,31 @@ const ol = {
3574
3574
  a("empty-state-cta-clicked"), w();
3575
3575
  }, w = () => {
3576
3576
  a("clear-search-input");
3577
- }, v = T(() => t.disableRowClick ? void 0 : (q, k) => {
3577
+ }, v = $(() => t.disableRowClick ? void 0 : (N, k) => {
3578
3578
  a("click:row", k);
3579
- }), _ = (q) => {
3580
- a("sort", q);
3581
- }, { setTablePreferences: h, getTablePreferences: C } = ja(), L = T(() => {
3582
- const q = C(t.preferencesStorageKey);
3579
+ }), A = (N) => {
3580
+ a("sort", N);
3581
+ }, { setTablePreferences: y, getTablePreferences: C } = Ta(), U = $(() => {
3582
+ const N = C(t.preferencesStorageKey);
3583
3583
  return {
3584
3584
  ...t.initialFetcherParams,
3585
- ...q
3585
+ ...N
3586
3586
  };
3587
- }), S = (q) => {
3588
- t.preferencesStorageKey && h(t.preferencesStorageKey, q);
3587
+ }), S = (N) => {
3588
+ t.preferencesStorageKey && y(t.preferencesStorageKey, N);
3589
3589
  };
3590
- return (q, k) => {
3591
- const U = D("KIcon"), N = D("KButton"), b = D("KDropdown"), I = D("KTable"), B = D("KCard");
3592
- return f(), G(B, {
3590
+ return (N, k) => {
3591
+ const q = D("KIcon"), B = D("KButton"), b = D("KDropdown"), I = D("KTable"), K = D("KCard");
3592
+ return f(), R(K, {
3593
3593
  class: "kong-ui-entity-base-table",
3594
3594
  title: e.title
3595
3595
  }, {
3596
- default: y(() => [
3596
+ default: g(() => [
3597
3597
  O(I, {
3598
3598
  ref_key: "tableRefs",
3599
3599
  ref: p,
3600
3600
  "cache-identifier": i.value,
3601
- "cell-attrs": g,
3601
+ "cell-attrs": h,
3602
3602
  "disable-pagination-page-jump": e.disablePaginationPageJump,
3603
3603
  "disable-sorting": e.disableSorting,
3604
3604
  "empty-state-action-button-icon": e.query ? "" : "plus",
@@ -3616,27 +3616,27 @@ const ol = {
3616
3616
  "has-error": o.value.hasError,
3617
3617
  headers: s.value,
3618
3618
  "hide-pagination-when-optional": "",
3619
- "initial-fetcher-params": L.value,
3619
+ "initial-fetcher-params": U.value,
3620
3620
  "is-loading": e.isLoading,
3621
3621
  "pagination-type": e.paginationType,
3622
3622
  "row-attrs": u,
3623
3623
  "search-input": e.query,
3624
3624
  onKtableEmptyStateCtaClicked: d,
3625
3625
  "onRow:click": v.value,
3626
- onSort: k[0] || (k[0] = (V) => _(V)),
3626
+ onSort: k[0] || (k[0] = (V) => A(V)),
3627
3627
  "onUpdate:tablePreferences": S
3628
3628
  }, ke({
3629
- toolbar: y(({ state: V }) => [
3630
- Fe(F("div", Kl, [
3631
- Z(q.$slots, "toolbar-filter", {}, void 0, !0),
3632
- q.$slots["toolbar-button"] ? (f(), $("div", ql, [
3633
- Z(q.$slots, "toolbar-button", {}, void 0, !0)
3629
+ toolbar: g(({ state: V }) => [
3630
+ Fe(F("div", El, [
3631
+ Z(N.$slots, "toolbar-filter", {}, void 0, !0),
3632
+ N.$slots["toolbar-button"] ? (f(), T("div", Nl, [
3633
+ Z(N.$slots, "toolbar-button", {}, void 0, !0)
3634
3634
  ])) : z("", !0)
3635
3635
  ], 512), [
3636
3636
  [Le, l(V)]
3637
3637
  ])
3638
3638
  ]),
3639
- actions: y(({ row: V, rowKey: x, rowValue: K }) => [
3639
+ actions: g(({ row: V, rowKey: _, rowValue: L }) => [
3640
3640
  F("div", {
3641
3641
  class: "actions-container",
3642
3642
  "data-testid": V.name
@@ -3645,22 +3645,22 @@ const ol = {
3645
3645
  "kpop-attributes": { placement: "bottomEnd" },
3646
3646
  width: e.dropdownMenuWidth
3647
3647
  }, {
3648
- items: y(() => [
3649
- Z(q.$slots, "actions", {
3648
+ items: g(() => [
3649
+ Z(N.$slots, "actions", {
3650
3650
  row: V,
3651
- rowKey: x,
3652
- rowValue: K
3651
+ rowKey: _,
3652
+ rowValue: L
3653
3653
  }, void 0, !0)
3654
3654
  ]),
3655
- default: y(() => [
3656
- O(N, {
3655
+ default: g(() => [
3656
+ O(B, {
3657
3657
  class: "actions-trigger",
3658
3658
  "data-testid": "overflow-actions-button",
3659
3659
  size: "small"
3660
3660
  }, {
3661
- icon: y(() => [
3662
- O(U, {
3663
- color: m(Ir),
3661
+ icon: g(() => [
3662
+ O(q, {
3663
+ color: m(kr),
3664
3664
  icon: "more",
3665
3665
  size: "16"
3666
3666
  }, null, 8, ["color"])
@@ -3670,24 +3670,24 @@ const ol = {
3670
3670
  ]),
3671
3671
  _: 2
3672
3672
  }, 1032, ["width"])
3673
- ], 8, Bl)
3673
+ ], 8, Kl)
3674
3674
  ]),
3675
3675
  _: 2
3676
3676
  }, [
3677
- pe(e.tableHeaders, (V, x) => ({
3678
- name: x,
3679
- fn: y(({ row: K, rowKey: P, rowValue: R }) => [
3680
- O(Nl, {
3681
- "key-name": String(x),
3682
- "row-el": c(K)
3677
+ pe(e.tableHeaders, (V, _) => ({
3678
+ name: _,
3679
+ fn: g(({ row: L, rowKey: P, rowValue: G }) => [
3680
+ O(Ol, {
3681
+ "key-name": String(_),
3682
+ "row-el": c(L)
3683
3683
  }, {
3684
- default: y(() => [
3685
- Z(q.$slots, x, {
3686
- row: K,
3684
+ default: g(() => [
3685
+ Z(N.$slots, _, {
3686
+ row: L,
3687
3687
  rowKey: P,
3688
- rowValue: R
3688
+ rowValue: G
3689
3689
  }, () => [
3690
- W(j(R), 1)
3690
+ W(j(G), 1)
3691
3691
  ], !0)
3692
3692
  ]),
3693
3693
  _: 2
@@ -3700,13 +3700,13 @@ const ol = {
3700
3700
  }, 8, ["title"]);
3701
3701
  };
3702
3702
  }
3703
- }), Ll = /* @__PURE__ */ ge(Fl, [["__scopeId", "data-v-57b5a97b"]]), Ul = {
3703
+ }), Bl = /* @__PURE__ */ ge(ql, [["__scopeId", "data-v-57b5a97b"]]), Fl = {
3704
3704
  key: 0,
3705
3705
  class: "kong-ui-entity-delete-error"
3706
- }, Pl = {
3706
+ }, Ll = {
3707
3707
  key: 1,
3708
3708
  class: "description"
3709
- }, Dl = /* @__PURE__ */ ne({
3709
+ }, Ul = /* @__PURE__ */ ne({
3710
3710
  __name: "EntityDeleteModal",
3711
3711
  props: {
3712
3712
  visible: {
@@ -3745,14 +3745,14 @@ const ol = {
3745
3745
  },
3746
3746
  emits: ["cancel", "proceed"],
3747
3747
  setup(e, { emit: n }) {
3748
- const { i18nT: t } = oe.useI18n(), a = e, r = n, o = T(() => a.needConfirm ? a.entityName : ""), i = () => {
3748
+ const { i18nT: t } = oe.useI18n(), a = e, r = n, o = $(() => a.needConfirm ? a.entityName : ""), i = () => {
3749
3749
  r("cancel");
3750
3750
  }, l = () => {
3751
3751
  r("proceed");
3752
3752
  };
3753
3753
  return (s, u) => {
3754
3754
  const p = D("KAlert"), c = D("KPrompt");
3755
- return f(), G(c, {
3755
+ return f(), R(c, {
3756
3756
  "action-button-text": "Yes, delete",
3757
3757
  "action-pending": e.actionPending,
3758
3758
  class: "kong-ui-entity-delete-modal",
@@ -3763,10 +3763,10 @@ const ol = {
3763
3763
  onCanceled: i,
3764
3764
  onProceed: l
3765
3765
  }, {
3766
- "body-content": y(() => [
3767
- e.error ? (f(), $("div", Ul, [
3766
+ "body-content": g(() => [
3767
+ e.error ? (f(), T("div", Fl, [
3768
3768
  O(p, { appearance: "danger" }, {
3769
- alertMessage: y(() => [
3769
+ alertMessage: g(() => [
3770
3770
  W(j(e.error), 1)
3771
3771
  ]),
3772
3772
  _: 1
@@ -3777,20 +3777,20 @@ const ol = {
3777
3777
  keypath: a.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
3778
3778
  tag: "p"
3779
3779
  }, ke({
3780
- entityType: y(() => [
3780
+ entityType: g(() => [
3781
3781
  W(j(a.entityType), 1)
3782
3782
  ]),
3783
3783
  _: 2
3784
3784
  }, [
3785
3785
  a.entityName ? {
3786
3786
  name: "entityName",
3787
- fn: y(() => [
3787
+ fn: g(() => [
3788
3788
  F("strong", null, j(a.entityName), 1)
3789
3789
  ]),
3790
3790
  key: "0"
3791
3791
  } : void 0
3792
3792
  ]), 1032, ["keypath"]),
3793
- a.description || s.$slots.description ? (f(), $("div", Pl, [
3793
+ a.description || s.$slots.description ? (f(), T("div", Ll, [
3794
3794
  Z(s.$slots, "description", {}, () => [
3795
3795
  F("p", null, j(a.description), 1)
3796
3796
  ], !0)
@@ -3800,13 +3800,13 @@ const ol = {
3800
3800
  }, 8, ["action-pending", "confirmation-text", "is-visible", "title"]);
3801
3801
  };
3802
3802
  }
3803
- }), Vl = /* @__PURE__ */ ge(Dl, [["__scopeId", "data-v-1c9a2a07"]]), Rl = {
3803
+ }), Pl = /* @__PURE__ */ ge(Ul, [["__scopeId", "data-v-1c9a2a07"]]), Dl = {
3804
3804
  fill: "none",
3805
3805
  height: "20",
3806
3806
  viewBox: "0 0 20 20",
3807
3807
  width: "20",
3808
3808
  xmlns: "http://www.w3.org/2000/svg"
3809
- }, Gl = {
3809
+ }, Vl = {
3810
3810
  id: "mask0_180_20349",
3811
3811
  height: "20",
3812
3812
  maskUnits: "userSpaceOnUse",
@@ -3814,35 +3814,35 @@ const ol = {
3814
3814
  width: "20",
3815
3815
  x: "0",
3816
3816
  y: "0"
3817
- }, zl = ["fill"], Hl = { mask: "url(#mask0_180_20349)" }, Jl = ["fill"], un = /* @__PURE__ */ ne({
3817
+ }, Rl = ["fill"], Gl = { mask: "url(#mask0_180_20349)" }, zl = ["fill"], un = /* @__PURE__ */ ne({
3818
3818
  __name: "IconFilter",
3819
3819
  props: {
3820
3820
  color: {
3821
3821
  type: String,
3822
- default: `var(--kong-ui-entity-filter-color, ${kr})`
3822
+ default: `var(--kong-ui-entity-filter-color, ${br})`
3823
3823
  }
3824
3824
  },
3825
3825
  setup(e) {
3826
- return (n, t) => (f(), $("svg", Rl, [
3827
- F("mask", Gl, [
3826
+ return (n, t) => (f(), T("svg", Dl, [
3827
+ F("mask", Vl, [
3828
3828
  F("rect", {
3829
3829
  fill: e.color,
3830
3830
  height: "20",
3831
3831
  width: "20"
3832
- }, null, 8, zl)
3832
+ }, null, 8, Rl)
3833
3833
  ]),
3834
- F("g", Hl, [
3834
+ F("g", Gl, [
3835
3835
  F("path", {
3836
3836
  d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
3837
3837
  fill: e.color
3838
- }, null, 8, Jl)
3838
+ }, null, 8, zl)
3839
3839
  ])
3840
3840
  ]));
3841
3841
  }
3842
- }), Wl = {
3842
+ }), Hl = {
3843
3843
  key: 1,
3844
3844
  class: "kong-ui-entity-filter"
3845
- }, Yl = { class: "menu-item-title" }, Zl = { class: "menu-item-indicator" }, Ql = { class: "menu-item-body" }, Xl = ["for"], es = { class: "menu-item-buttons" }, ts = { class: "filter-clear-button-container" }, ns = /* @__PURE__ */ ne({
3845
+ }, Jl = { class: "menu-item-title" }, Wl = { class: "menu-item-indicator" }, Yl = { class: "menu-item-body" }, Zl = ["for"], Ql = { class: "menu-item-buttons" }, Xl = { class: "filter-clear-button-container" }, es = /* @__PURE__ */ ne({
3846
3846
  __name: "EntityFilter",
3847
3847
  props: {
3848
3848
  // filter config, either exact match or fuzzy match
@@ -3862,50 +3862,50 @@ const ol = {
3862
3862
  },
3863
3863
  emits: ["update:modelValue"],
3864
3864
  setup(e, { emit: n }) {
3865
- const { i18n: { t } } = oe.useI18n(), a = e, r = n, o = E(!1), i = E({}), l = T(() => {
3866
- const h = [];
3867
- return new URLSearchParams(a.modelValue).forEach((C, L) => {
3868
- C !== "" && h.push(L);
3869
- }), h;
3870
- }), s = T(() => {
3871
- const h = a.config.fields;
3872
- return Object.keys(h).filter((C) => h[C].searchable).map((C) => ({
3873
- label: h[C].label || C,
3865
+ const { i18n: { t } } = oe.useI18n(), a = e, r = n, o = E(!1), i = E({}), l = $(() => {
3866
+ const y = [];
3867
+ return new URLSearchParams(a.modelValue).forEach((C, U) => {
3868
+ C !== "" && y.push(U);
3869
+ }), y;
3870
+ }), s = $(() => {
3871
+ const y = a.config.fields;
3872
+ return Object.keys(y).filter((C) => y[C].searchable).map((C) => ({
3873
+ label: y[C].label || C,
3874
3874
  value: C
3875
3875
  }));
3876
3876
  });
3877
- ve(() => a.modelValue, (h) => {
3878
- i.value = {}, new URLSearchParams(h).forEach((C, L) => {
3879
- i.value[L] = C;
3877
+ ve(() => a.modelValue, (y) => {
3878
+ i.value = {}, new URLSearchParams(y).forEach((C, U) => {
3879
+ i.value[U] = C;
3880
3880
  });
3881
3881
  });
3882
3882
  const u = () => {
3883
3883
  o.value = !o.value;
3884
- }, p = (h) => {
3885
- r("update:modelValue", h);
3886
- }, c = (h) => `filter-${h}`, g = (h) => {
3887
- var C, L;
3888
- return (((L = (C = a.config.schema) == null ? void 0 : C[h]) == null ? void 0 : L.values) ?? []).map((S) => ({
3884
+ }, p = (y) => {
3885
+ r("update:modelValue", y);
3886
+ }, c = (y) => `filter-${y}`, h = (y) => {
3887
+ var C, U;
3888
+ return (((U = (C = a.config.schema) == null ? void 0 : C[y]) == null ? void 0 : U.values) ?? []).map((S) => ({
3889
3889
  value: S,
3890
3890
  label: S
3891
3891
  }));
3892
- }, d = (h) => {
3893
- var C, L;
3894
- return ((L = (C = a.config.schema) == null ? void 0 : C[h]) == null ? void 0 : L.type) ?? "text";
3895
- }, w = (h) => {
3892
+ }, d = (y) => {
3893
+ var C, U;
3894
+ return ((U = (C = a.config.schema) == null ? void 0 : C[y]) == null ? void 0 : U.type) ?? "text";
3895
+ }, w = (y) => {
3896
3896
  i.value = {
3897
3897
  ...i.value,
3898
- [h]: ""
3899
- }, _();
3898
+ [y]: ""
3899
+ }, A();
3900
3900
  }, v = () => {
3901
- i.value = {}, _(!0);
3902
- }, _ = (h = !1) => {
3903
- const C = Object.keys(i.value).reduce((L, S) => (i.value[S] && (L[S] = `${i.value[S]}`), L), {});
3904
- h && (o.value = !1), r("update:modelValue", new URLSearchParams(C).toString());
3901
+ i.value = {}, A(!0);
3902
+ }, A = (y = !1) => {
3903
+ const C = Object.keys(i.value).reduce((U, S) => (i.value[S] && (U[S] = `${i.value[S]}`), U), {});
3904
+ y && (o.value = !1), r("update:modelValue", new URLSearchParams(C).toString());
3905
3905
  };
3906
- return (h, C) => {
3907
- const L = D("KInput"), S = D("KButton"), q = D("KSelect"), k = D("KMenuItem"), U = D("KMenu");
3908
- return e.config.isExactMatch ? (f(), G(L, {
3906
+ return (y, C) => {
3907
+ const U = D("KInput"), S = D("KButton"), N = D("KSelect"), k = D("KMenuItem"), q = D("KMenu");
3908
+ return e.config.isExactMatch ? (f(), R(U, {
3909
3909
  key: 0,
3910
3910
  autocomplete: "off",
3911
3911
  class: "kong-ui-entity-filter-input",
@@ -3914,17 +3914,17 @@ const ol = {
3914
3914
  placeholder: e.config.placeholder,
3915
3915
  "onUpdate:modelValue": p
3916
3916
  }, {
3917
- before: y(() => [
3917
+ before: g(() => [
3918
3918
  O(un)
3919
3919
  ]),
3920
3920
  _: 1
3921
- }, 8, ["model-value", "placeholder"])) : (f(), $("div", Wl, [
3921
+ }, 8, ["model-value", "placeholder"])) : (f(), T("div", Hl, [
3922
3922
  O(S, {
3923
3923
  appearance: "tertiary",
3924
3924
  "data-testid": "filter-button",
3925
3925
  onClick: u
3926
3926
  }, {
3927
- default: y(() => [
3927
+ default: g(() => [
3928
3928
  O(un),
3929
3929
  W(" " + j(m(t)("filter.filterButtonText")) + " " + j(l.value.length > 0 ? `(${l.value.length})` : ""), 1)
3930
3930
  ]),
@@ -3936,56 +3936,56 @@ const ol = {
3936
3936
  }, null, 512), [
3937
3937
  [Le, o.value]
3938
3938
  ]),
3939
- Fe(O(U, { class: "kong-ui-entity-filter-menu" }, {
3940
- body: y(() => [
3941
- (f(!0), $(me, null, pe(s.value, (N, b) => (f(), G(k, {
3942
- key: N.value,
3943
- "data-testid": N.value,
3939
+ Fe(O(q, { class: "kong-ui-entity-filter-menu" }, {
3940
+ body: g(() => [
3941
+ (f(!0), T(me, null, pe(s.value, (B, b) => (f(), R(k, {
3942
+ key: B.value,
3943
+ "data-testid": B.value,
3944
3944
  expandable: "",
3945
3945
  "last-menu-item": b === s.value.length - 1
3946
3946
  }, {
3947
- itemTitle: y(() => [
3948
- F("span", Yl, [
3949
- W(j(N.label) + " ", 1),
3950
- Fe(F("span", Zl, null, 512), [
3951
- [Le, l.value.includes(N.value)]
3947
+ itemTitle: g(() => [
3948
+ F("span", Jl, [
3949
+ W(j(B.label) + " ", 1),
3950
+ Fe(F("span", Wl, null, 512), [
3951
+ [Le, l.value.includes(B.value)]
3952
3952
  ])
3953
3953
  ])
3954
3954
  ]),
3955
- itemBody: y(() => {
3956
- var I, B;
3955
+ itemBody: g(() => {
3956
+ var I, K;
3957
3957
  return [
3958
- F("div", Ql, [
3958
+ F("div", Yl, [
3959
3959
  F("label", {
3960
3960
  class: "menu-item-label",
3961
- for: c(N.value)
3962
- }, j(m(t)("filter.fieldLabel")), 9, Xl),
3963
- ((B = (I = e.config.schema) == null ? void 0 : I[N.value]) == null ? void 0 : B.type) === "select" ? (f(), G(q, {
3961
+ for: c(B.value)
3962
+ }, j(m(t)("filter.fieldLabel")), 9, Zl),
3963
+ ((K = (I = e.config.schema) == null ? void 0 : I[B.value]) == null ? void 0 : K.type) === "select" ? (f(), R(N, {
3964
3964
  key: 0,
3965
- id: c(N.value),
3966
- modelValue: i.value[N.value],
3967
- "onUpdate:modelValue": (V) => i.value[N.value] = V,
3965
+ id: c(B.value),
3966
+ modelValue: i.value[B.value],
3967
+ "onUpdate:modelValue": (V) => i.value[B.value] = V,
3968
3968
  appearance: "select",
3969
- items: g(N.value),
3969
+ items: h(B.value),
3970
3970
  placeholder: m(t)("filter.selectPlaceholder")
3971
- }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (f(), G(L, {
3971
+ }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (f(), R(U, {
3972
3972
  key: 1,
3973
- id: c(N.value),
3974
- modelValue: i.value[N.value],
3975
- "onUpdate:modelValue": (V) => i.value[N.value] = V,
3973
+ id: c(B.value),
3974
+ modelValue: i.value[B.value],
3975
+ "onUpdate:modelValue": (V) => i.value[B.value] = V,
3976
3976
  autocomplete: "off",
3977
3977
  placeholder: m(t)("filter.inputPlaceholder"),
3978
- type: d(N.value)
3978
+ type: d(B.value)
3979
3979
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
3980
3980
  ]),
3981
- F("div", es, [
3981
+ F("div", Ql, [
3982
3982
  O(S, {
3983
3983
  appearance: "tertiary",
3984
3984
  "data-testid": "apply-filter",
3985
3985
  size: "small",
3986
- onClick: C[0] || (C[0] = (V) => _(!0))
3986
+ onClick: C[0] || (C[0] = (V) => A(!0))
3987
3987
  }, {
3988
- default: y(() => [
3988
+ default: g(() => [
3989
3989
  W(j(m(t)("filter.applyButtonText")), 1)
3990
3990
  ]),
3991
3991
  _: 1
@@ -3994,9 +3994,9 @@ const ol = {
3994
3994
  appearance: "tertiary",
3995
3995
  "data-testid": "clear-filter",
3996
3996
  size: "small",
3997
- onClick: (V) => w(N.value)
3997
+ onClick: (V) => w(B.value)
3998
3998
  }, {
3999
- default: y(() => [
3999
+ default: g(() => [
4000
4000
  W(j(m(t)("filter.clearButtonText")), 1)
4001
4001
  ]),
4002
4002
  _: 2
@@ -4007,14 +4007,14 @@ const ol = {
4007
4007
  _: 2
4008
4008
  }, 1032, ["data-testid", "last-menu-item"]))), 128))
4009
4009
  ]),
4010
- actionButton: y(() => [
4011
- F("div", ts, [
4010
+ actionButton: g(() => [
4011
+ F("div", Xl, [
4012
4012
  O(S, {
4013
4013
  appearance: "tertiary",
4014
4014
  size: "small",
4015
4015
  onClick: v
4016
4016
  }, {
4017
- default: y(() => [
4017
+ default: g(() => [
4018
4018
  W(j(m(t)("filter.clearAllButtonText")), 1)
4019
4019
  ]),
4020
4020
  _: 1
@@ -4028,7 +4028,7 @@ const ol = {
4028
4028
  ]));
4029
4029
  };
4030
4030
  }
4031
- }), as = /* @__PURE__ */ ge(ns, [["__scopeId", "data-v-15962ee2"]]), Re = /* @__PURE__ */ ne({
4031
+ }), ts = /* @__PURE__ */ ge(es, [["__scopeId", "data-v-15962ee2"]]), Re = /* @__PURE__ */ ne({
4032
4032
  __name: "PermissionsWrapper",
4033
4033
  props: {
4034
4034
  /**
@@ -4050,7 +4050,7 @@ const ol = {
4050
4050
  }
4051
4051
  },
4052
4052
  setup(e) {
4053
- const n = e, t = E(void 0), a = T(() => t.value === !0 || t.value !== void 0 && n.forceShow === !0);
4053
+ const n = e, t = E(void 0), a = $(() => t.value === !0 || t.value !== void 0 && n.forceShow === !0);
4054
4054
  return ve(() => n.authFunction, async () => {
4055
4055
  t.value = await n.authFunction();
4056
4056
  }, { immediate: !0 }), (r, o) => a.value ? Z(r.$slots, "default", {
@@ -4058,16 +4058,16 @@ const ol = {
4058
4058
  isAllowed: t.value
4059
4059
  }) : z("", !0);
4060
4060
  }
4061
- }), rs = { class: "form-section-wrapper" }, os = {
4061
+ }), ns = { class: "form-section-wrapper" }, as = {
4062
4062
  key: 0,
4063
4063
  class: "form-section-title"
4064
- }, is = {
4064
+ }, rs = {
4065
4065
  key: 1,
4066
4066
  class: "form-section-description"
4067
- }, ls = {
4067
+ }, os = {
4068
4068
  key: 2,
4069
4069
  class: "form-section-footer"
4070
- }, ss = { class: "form-section-content" }, us = /* @__PURE__ */ ne({
4070
+ }, is = { class: "form-section-content" }, ls = /* @__PURE__ */ ne({
4071
4071
  __name: "EntityFormSection",
4072
4072
  props: {
4073
4073
  title: {
@@ -4093,37 +4093,37 @@ const ol = {
4093
4093
  },
4094
4094
  setup(e) {
4095
4095
  const n = Ze();
4096
- return (t, a) => (f(), $("fieldset", {
4096
+ return (t, a) => (f(), T("fieldset", {
4097
4097
  class: Ie(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
4098
4098
  }, [
4099
- F("div", rs, [
4100
- e.hideInfoHeader ? z("", !0) : (f(), $("div", {
4099
+ F("div", ns, [
4100
+ e.hideInfoHeader ? z("", !0) : (f(), T("div", {
4101
4101
  key: 0,
4102
4102
  class: Ie(["form-section-info", { sticky: e.stickyInfoHeader }])
4103
4103
  }, [
4104
- e.title ? (f(), $("h4", os, j(e.title), 1)) : z("", !0),
4105
- e.description || m(n).description ? (f(), $("div", is, [
4104
+ e.title ? (f(), T("h4", as, j(e.title), 1)) : z("", !0),
4105
+ e.description || m(n).description ? (f(), T("div", rs, [
4106
4106
  Z(t.$slots, "description", {}, () => [
4107
4107
  F("p", null, j(e.description), 1)
4108
4108
  ], !0)
4109
4109
  ])) : z("", !0),
4110
- m(n).footer ? (f(), $("div", ls, [
4110
+ m(n).footer ? (f(), T("div", os, [
4111
4111
  Z(t.$slots, "footer", {}, void 0, !0)
4112
4112
  ])) : z("", !0)
4113
4113
  ], 2)),
4114
- F("div", ss, [
4114
+ F("div", is, [
4115
4115
  Z(t.$slots, "default", {}, void 0, !0)
4116
4116
  ])
4117
4117
  ])
4118
4118
  ], 2));
4119
4119
  }
4120
- }), cs = /* @__PURE__ */ ge(us, [["__scopeId", "data-v-3565daa7"]]), { useAxios: xt, useDeleteUrlBuilder: ds, useErrors: ps, useExternalLinkCreator: qs, useFetchUrlBuilder: Bs, useFetcher: fs, useDebouncedFilter: ms, useStringHelpers: Fs, useHelpers: Ls, useGatewayFeatureSupported: Us, useTruncationDetector: Ps } = oe, gs = { class: "add-consumer-form-container" }, ys = { class: "add-consumer-form-cta" }, hs = { class: "select-item-label" }, vs = {
4120
+ }), ss = /* @__PURE__ */ ge(ls, [["__scopeId", "data-v-3565daa7"]]), { useAxios: xt, useDeleteUrlBuilder: us, useErrors: cs, useExternalLinkCreator: Ns, useFetchUrlBuilder: Ks, useFetcher: ds, useDebouncedFilter: ps, useStringHelpers: qs, useHelpers: Bs, useGatewayFeatureSupported: Fs, useTruncationDetector: Ls } = oe, fs = { class: "add-consumer-form-container" }, ms = { class: "add-consumer-form-cta" }, gs = { class: "select-item-label" }, ys = {
4121
4121
  key: 0,
4122
4122
  class: "select-item-desc"
4123
- }, bs = {
4123
+ }, hs = {
4124
4124
  key: 0,
4125
4125
  class: "kong-ui-entity-add-consumers-error"
4126
- }, Cs = { key: 0 }, ks = /* @__PURE__ */ ne({
4126
+ }, vs = { key: 0 }, bs = /* @__PURE__ */ ne({
4127
4127
  __name: "AddConsumerModal",
4128
4128
  props: {
4129
4129
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -4149,110 +4149,110 @@ const ol = {
4149
4149
  allRecords: u,
4150
4150
  error: p,
4151
4151
  loadItems: c,
4152
- results: g
4153
- } = ms(
4152
+ results: h
4153
+ } = ps(
4154
4154
  a.config,
4155
- xe.list[a.config.app].all,
4155
+ Te.list[a.config.app].all,
4156
4156
  "",
4157
4157
  {
4158
4158
  fetchedItemsKey: "data",
4159
4159
  searchKeys: ["username", "id"]
4160
4160
  }
4161
- ), d = (x) => x, w = T(() => p.value ? t("consumers.errors.general") : ""), v = E(0), _ = T(() => u.value === void 0), h = T(() => g.value.map((x) => ({
4162
- label: x.username || x.customId,
4163
- value: x.id,
4164
- selected: i.value.includes(x.id),
4165
- data: x
4161
+ ), d = (_) => _, w = $(() => p.value ? t("consumers.errors.general") : ""), v = E(0), A = $(() => u.value === void 0), y = $(() => h.value.map((_) => ({
4162
+ label: _.username || _.customId,
4163
+ value: _.id,
4164
+ selected: i.value.includes(_.id),
4165
+ data: _
4166
4166
  // we need this to determine whether or not to show the description text
4167
- }))), C = (x) => {
4167
+ }))), C = (_) => {
4168
4168
  var P;
4169
- const K = _.value ? g.value.find((R) => R.id === x) : (P = u.value) == null ? void 0 : P.find((R) => R.id === x);
4170
- return K ? K.username || K.custom_id : x;
4171
- }, L = () => {
4169
+ const L = A.value ? h.value.find((G) => G.id === _) : (P = u.value) == null ? void 0 : P.find((G) => G.id === _);
4170
+ return L ? L.username || L.custom_id : _;
4171
+ }, U = () => {
4172
4172
  k.value = "", S.value = [], I.value = [], r("cancel");
4173
- }, S = E([]), q = E(!1), k = E(""), U = async () => {
4173
+ }, S = E([]), N = E(!1), k = E(""), q = async () => {
4174
4174
  if (!i.value.length) {
4175
4175
  k.value = "", I.value = [], r("cancel");
4176
4176
  return;
4177
4177
  }
4178
- q.value = !0, k.value = "", S.value = [], I.value = [];
4178
+ N.value = !0, k.value = "", S.value = [], I.value = [];
4179
4179
  try {
4180
- const x = i.value.map((R) => b(R)), K = await Promise.allSettled(x);
4180
+ const _ = i.value.map((G) => b(G)), L = await Promise.allSettled(_);
4181
4181
  let P = !0;
4182
- K.forEach((R) => {
4183
- R.status !== "fulfilled" && (P = !1);
4184
- }), P ? (S.value = [], I.value = [], r("add:success", i.value), i.value = []) : (S.value.length && r("add:partial-success", S.value), i.value = [], B(K));
4182
+ L.forEach((G) => {
4183
+ G.status !== "fulfilled" && (P = !1);
4184
+ }), P ? (S.value = [], I.value = [], r("add:success", i.value), i.value = []) : (S.value.length && r("add:partial-success", S.value), i.value = [], K(L));
4185
4185
  } catch {
4186
4186
  k.value = t("consumers.errors.add"), r("error", k.value);
4187
4187
  } finally {
4188
- q.value = !1;
4188
+ N.value = !1;
4189
4189
  }
4190
- }, N = T(() => {
4191
- var K, P, R, Q;
4192
- let x = `${a.config.apiBaseUrl}${xe.list[a.config.app].forConsumerGroup}`;
4193
- return a.config.app === "konnect" ? x = x.replace(/{controlPlaneId}/gi, ((K = a.config) == null ? void 0 : K.controlPlaneId) || "").replace(/{consumerGroupId}/gi, ((P = a.config) == null ? void 0 : P.consumerGroupId) || "") : a.config.app === "kongManager" && (x = x.replace(/\/{workspace}/gi, (R = a.config) != null && R.workspace ? `/${a.config.workspace}` : "").replace(/{consumerGroupId}/gi, ((Q = a.config) == null ? void 0 : Q.consumerGroupId) || "")), x;
4194
- }), b = async (x) => {
4195
- const K = {
4196
- consumer: x
4190
+ }, B = $(() => {
4191
+ var L, P, G, Q;
4192
+ let _ = `${a.config.apiBaseUrl}${Te.list[a.config.app].forConsumerGroup}`;
4193
+ return a.config.app === "konnect" ? _ = _.replace(/{controlPlaneId}/gi, ((L = a.config) == null ? void 0 : L.controlPlaneId) || "").replace(/{consumerGroupId}/gi, ((P = a.config) == null ? void 0 : P.consumerGroupId) || "") : a.config.app === "kongManager" && (_ = _.replace(/\/{workspace}/gi, (G = a.config) != null && G.workspace ? `/${a.config.workspace}` : "").replace(/{consumerGroupId}/gi, ((Q = a.config) == null ? void 0 : Q.consumerGroupId) || "")), _;
4194
+ }), b = async (_) => {
4195
+ const L = {
4196
+ consumer: _
4197
4197
  };
4198
4198
  try {
4199
- const P = await o.post(N.value, K);
4200
- return S.value.push(x), P;
4199
+ const P = await o.post(B.value, L);
4200
+ return S.value.push(_), P;
4201
4201
  } catch (P) {
4202
- let R = `${C(x)} - ${P.message}`;
4203
- return P.response.status === 409 && (R = `${C(x)} - ${t("consumers.errors.already_added")}`), Promise.reject(Error(R));
4202
+ let G = `${C(_)} - ${P.message}`;
4203
+ return P.response.status === 409 && (G = `${C(_)} - ${t("consumers.errors.already_added")}`), Promise.reject(Error(G));
4204
4204
  }
4205
- }, I = E([]), B = (x) => {
4206
- I.value = x.map((K) => {
4205
+ }, I = E([]), K = (_) => {
4206
+ I.value = _.map((L) => {
4207
4207
  var P;
4208
- return (P = K.reason) == null ? void 0 : P.message;
4208
+ return (P = L.reason) == null ? void 0 : P.message;
4209
4209
  }).filter(Boolean);
4210
4210
  };
4211
- return ve(h, () => {
4211
+ return ve(y, () => {
4212
4212
  v.value++;
4213
4213
  }, { immediate: !0, deep: !0 }), ve(() => a.visible, () => {
4214
4214
  a.visible && c();
4215
- }, { immediate: !0 }), (x, K) => {
4216
- const P = D("KMultiselect"), R = D("KAlert"), Q = D("KPrompt");
4217
- return f(), G(Q, {
4218
- "action-pending": q.value,
4215
+ }, { immediate: !0 }), (_, L) => {
4216
+ const P = D("KMultiselect"), G = D("KAlert"), Q = D("KPrompt");
4217
+ return f(), R(Q, {
4218
+ "action-pending": N.value,
4219
4219
  class: "kong-ui-entities-add-consumers-modal",
4220
4220
  "data-testid": "add-consumer-modal",
4221
4221
  "is-visible": e.visible,
4222
4222
  title: m(t)("consumers.consumer_groups.add.title"),
4223
- onCanceled: L,
4224
- onProceed: U
4223
+ onCanceled: U,
4224
+ onProceed: q
4225
4225
  }, {
4226
- "body-content": y(() => [
4227
- F("div", gs, [
4228
- F("p", ys, j(m(t)("consumers.consumer_groups.add.ctaText")), 1),
4226
+ "body-content": g(() => [
4227
+ F("div", fs, [
4228
+ F("p", ms, j(m(t)("consumers.consumer_groups.add.ctaText")), 1),
4229
4229
  O(P, {
4230
4230
  modelValue: i.value,
4231
- "onUpdate:modelValue": K[0] || (K[0] = (J) => i.value = J),
4231
+ "onUpdate:modelValue": L[0] || (L[0] = (J) => i.value = J),
4232
4232
  autosuggest: "",
4233
4233
  "data-testid": "add-consumers-multiselect",
4234
- "dropdown-footer-text": _.value ? m(t)("consumers.consumer_groups.add.footer") : void 0,
4235
- items: h.value,
4234
+ "dropdown-footer-text": A.value ? m(t)("consumers.consumer_groups.add.footer") : void 0,
4235
+ items: y.value,
4236
4236
  label: m(t)("consumers.consumer_groups.add.consumers_label"),
4237
4237
  loading: m(s),
4238
4238
  placeholder: m(t)("consumers.consumer_groups.add.consumer_placeholder"),
4239
- readonly: q.value,
4239
+ readonly: N.value,
4240
4240
  required: "",
4241
4241
  width: "100%",
4242
4242
  onQueryChange: m(l)
4243
4243
  }, {
4244
- "item-template": y(({ item: J }) => [
4245
- F("div", hs, j(J.label), 1),
4246
- d(J).data.username && d(J).data.custom_id ? (f(), $("div", vs, j(d(J).data.custom_id), 1)) : z("", !0)
4244
+ "item-template": g(({ item: J }) => [
4245
+ F("div", gs, j(J.label), 1),
4246
+ d(J).data.username && d(J).data.custom_id ? (f(), T("div", ys, j(d(J).data.custom_id), 1)) : z("", !0)
4247
4247
  ]),
4248
4248
  _: 1
4249
4249
  }, 8, ["modelValue", "dropdown-footer-text", "items", "label", "loading", "placeholder", "readonly", "onQueryChange"]),
4250
- k.value || w.value || I.value.length ? (f(), $("div", bs, [
4251
- O(R, { appearance: "danger" }, {
4252
- alertMessage: y(() => [
4250
+ k.value || w.value || I.value.length ? (f(), T("div", hs, [
4251
+ O(G, { appearance: "danger" }, {
4252
+ alertMessage: g(() => [
4253
4253
  F("p", null, j(m(t)("consumers.errors.add")), 1),
4254
- I.value.length ? (f(), $("ul", Cs, [
4255
- (f(!0), $(me, null, pe(I.value, (J, X) => (f(), $("li", { key: X }, j(J), 1))), 128))
4254
+ I.value.length ? (f(), T("ul", vs, [
4255
+ (f(!0), T(me, null, pe(I.value, (J, X) => (f(), T("li", { key: X }, j(J), 1))), 128))
4256
4256
  ])) : z("", !0),
4257
4257
  F("div", null, j(k.value || w.value), 1)
4258
4258
  ]),
@@ -4270,7 +4270,7 @@ const ol = {
4270
4270
  for (const [a, r] of n)
4271
4271
  t[a] = r;
4272
4272
  return t;
4273
- }, ws = /* @__PURE__ */ Tt(ks, [["__scopeId", "data-v-68cc6403"]]), Is = { class: "kong-ui-entities-consumers-list" }, _s = { key: 1 }, Ss = /* @__PURE__ */ ne({
4273
+ }, Cs = /* @__PURE__ */ Tt(bs, [["__scopeId", "data-v-68cc6403"]]), ks = { class: "kong-ui-entities-consumers-list" }, ws = { key: 1 }, Is = /* @__PURE__ */ ne({
4274
4274
  __name: "ConsumerList",
4275
4275
  props: {
4276
4276
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -4312,11 +4312,6 @@ const ol = {
4312
4312
  useActionOutside: {
4313
4313
  type: Boolean,
4314
4314
  default: !1
4315
- },
4316
- /** A boolean to indicate if the paginated endpoint is used */
4317
- paginatedEndpoint: {
4318
- type: Boolean,
4319
- default: !1
4320
4315
  }
4321
4316
  },
4322
4317
  emits: ["error", "copy:success", "copy:error", "delete:success", "add:success", "remove:success"],
@@ -4324,126 +4319,124 @@ const ol = {
4324
4319
  var Kt;
4325
4320
  const t = n, a = e, { i18nT: r, i18n: { t: o } } = Qe.useI18n(), i = yt(), { axiosInstance: l } = xt({
4326
4321
  headers: (Kt = a.config) == null ? void 0 : Kt.requestHeaders
4327
- }), s = E(1), u = T(() => !!a.config.consumerGroupId), p = T(
4328
- () => u.value ? "kong-ui-entities-consumers-list-in-group-page" : "kong-ui-entities-consumers-list"
4329
- ), c = T(() => a.config.app !== "kongManager" || !!a.config.disableSorting), g = {
4322
+ }), s = E(1), u = $(() => !!a.config.consumerGroupId), p = $(() => a.config.app !== "kongManager" || !!a.config.disableSorting), c = {
4330
4323
  username: { label: o("consumers.list.table_headers.username"), searchable: !0, sortable: !0 },
4331
4324
  custom_id: { label: o("consumers.list.table_headers.custom_id"), searchable: !0, sortable: !0 },
4332
4325
  tags: { label: o("consumers.list.table_headers.tags"), sortable: !1 }
4333
- }, d = g, w = (A) => ({
4334
- "data-testid": A.username ?? A.custom_id ?? A.id
4335
- }), v = T(() => {
4326
+ }, h = c, d = (x) => ({
4327
+ "data-testid": x.username ?? x.custom_id ?? x.id
4328
+ }), w = $(() => {
4336
4329
  var H, te, ce, ye;
4337
- let A = `${a.config.apiBaseUrl}${xe.list[a.config.app][u.value ? "forConsumerGroup" : "all"]}`;
4338
- return a.config.app === "konnect" ? A = A.replace(/{controlPlaneId}/gi, ((H = a.config) == null ? void 0 : H.controlPlaneId) || "").replace(/{consumerGroupId}/gi, ((te = a.config) == null ? void 0 : te.consumerGroupId) || "") : a.config.app === "kongManager" && (A = A.replace(/\/{workspace}/gi, (ce = a.config) != null && ce.workspace ? `/${a.config.workspace}` : "").replace(/{consumerGroupId}/gi, ((ye = a.config) == null ? void 0 : ye.consumerGroupId) || "")), A;
4339
- }), _ = E(""), h = T(() => {
4340
- const A = a.config.app === "konnect" || a.config.isExactMatch;
4341
- return A ? {
4342
- isExactMatch: A,
4330
+ let x = `${a.config.apiBaseUrl}${Te.list[a.config.app][u.value ? "forConsumerGroup" : "all"]}`;
4331
+ return a.config.app === "konnect" ? x = x.replace(/{controlPlaneId}/gi, ((H = a.config) == null ? void 0 : H.controlPlaneId) || "").replace(/{consumerGroupId}/gi, ((te = a.config) == null ? void 0 : te.consumerGroupId) || "") : a.config.app === "kongManager" && (x = x.replace(/\/{workspace}/gi, (ce = a.config) != null && ce.workspace ? `/${a.config.workspace}` : "").replace(/{consumerGroupId}/gi, ((ye = a.config) == null ? void 0 : ye.consumerGroupId) || "")), x;
4332
+ }), v = E(""), A = $(() => {
4333
+ const x = a.config.app === "konnect" || a.config.isExactMatch;
4334
+ return x ? {
4335
+ isExactMatch: x,
4343
4336
  placeholder: o(`consumers.search.placeholder.${a.config.app}`)
4344
4337
  } : {
4345
- isExactMatch: A,
4338
+ isExactMatch: x,
4346
4339
  fields: {
4347
- username: g.username,
4348
- custom_id: g.custom_id
4340
+ username: c.username,
4341
+ custom_id: c.custom_id
4349
4342
  },
4350
4343
  schema: a.config.filterSchema
4351
4344
  };
4352
- }), C = T(() => u.value && !a.paginatedEndpoint ? "consumers" : void 0), { fetcher: L, fetcherState: S } = fs(a.config, v.value, C.value), q = () => {
4353
- _.value = "";
4354
- }, k = () => {
4345
+ }), y = $(() => u.value ? "consumers" : void 0), { fetcher: C, fetcherState: U } = ds(a.config, w.value, y.value), S = () => {
4346
+ v.value = "";
4347
+ }, N = () => {
4355
4348
  s.value++;
4356
- }, U = (A) => A ?? "-", N = E(null), b = (A, H) => {
4357
- const te = A.id;
4349
+ }, k = (x) => x ?? "-", q = E(null), B = (x, H) => {
4350
+ const te = x.id;
4358
4351
  if (!H(te)) {
4359
4352
  t("copy:error", {
4360
- entity: A,
4353
+ entity: x,
4361
4354
  field: "id",
4362
4355
  message: o("consumers.errors.copy")
4363
4356
  });
4364
4357
  return;
4365
4358
  }
4366
4359
  t("copy:success", {
4367
- entity: A,
4360
+ entity: x,
4368
4361
  field: "id",
4369
4362
  message: o("consumers.copy.success", { val: te })
4370
4363
  });
4371
- }, I = (A, H) => {
4372
- const te = JSON.stringify(A);
4364
+ }, b = (x, H) => {
4365
+ const te = JSON.stringify(x);
4373
4366
  if (!H(te)) {
4374
4367
  t("copy:error", {
4375
- entity: A,
4368
+ entity: x,
4376
4369
  message: o("consumers.errors.copy")
4377
4370
  });
4378
4371
  return;
4379
4372
  }
4380
4373
  t("copy:success", {
4381
- entity: A,
4374
+ entity: x,
4382
4375
  message: o("consumers.copy.success_brief")
4383
4376
  });
4384
- }, B = async (A) => {
4377
+ }, I = async (x) => {
4385
4378
  var te;
4386
- await ((te = a.canRetrieve) == null ? void 0 : te.call(a, A)) && i.push(a.config.getViewRoute(A.id));
4387
- }, V = (A) => ({
4379
+ await ((te = a.canRetrieve) == null ? void 0 : te.call(a, x)) && i.push(a.config.getViewRoute(x.id));
4380
+ }, K = (x) => ({
4388
4381
  label: o("consumers.actions.view"),
4389
- to: a.config.getViewRoute(A)
4390
- }), x = (A) => ({
4382
+ to: a.config.getViewRoute(x)
4383
+ }), V = (x) => ({
4391
4384
  label: o("consumers.actions.edit"),
4392
- to: a.config.getEditRoute(A)
4393
- }), K = E(void 0), P = E(!1), R = E(!1), Q = E(""), J = ds(a.config, v.value), X = (A) => {
4394
- K.value = A, P.value = !0;
4395
- }, ue = () => {
4396
- P.value = !1;
4397
- }, ua = async () => {
4398
- var A, H, te;
4399
- if ((A = K.value) != null && A.id) {
4400
- R.value = !0;
4385
+ to: a.config.getEditRoute(x)
4386
+ }), _ = E(void 0), L = E(!1), P = E(!1), G = E(""), Q = us(a.config, w.value), J = (x) => {
4387
+ _.value = x, L.value = !0;
4388
+ }, X = () => {
4389
+ L.value = !1;
4390
+ }, ue = async () => {
4391
+ var x, H, te;
4392
+ if ((x = _.value) != null && x.id) {
4393
+ P.value = !0;
4401
4394
  try {
4402
- await l.delete(J(K.value.id)), R.value = !1, P.value = !1, s.value++, t("delete:success", K.value);
4395
+ await l.delete(Q(_.value.id)), P.value = !1, L.value = !1, s.value++, t("delete:success", _.value);
4403
4396
  } catch (ce) {
4404
- Q.value = ((te = (H = ce.response) == null ? void 0 : H.data) == null ? void 0 : te.message) || ce.message || o("consumers.errors.delete"), t("error", ce);
4397
+ G.value = ((te = (H = ce.response) == null ? void 0 : H.data) == null ? void 0 : te.message) || ce.message || o("consumers.errors.delete"), t("error", ce);
4405
4398
  } finally {
4406
- R.value = !1;
4399
+ P.value = !1;
4407
4400
  }
4408
4401
  }
4409
4402
  }, et = E(!1), $t = () => {
4410
4403
  et.value = !0;
4411
4404
  }, jt = () => {
4412
4405
  et.value = !1;
4413
- }, Mt = (A, H) => {
4414
- H || jt(), s.value++, t("add:success", A);
4415
- }, ca = () => {
4406
+ }, Mt = (x, H) => {
4407
+ H || jt(), s.value++, t("add:success", x);
4408
+ }, ua = () => {
4416
4409
  u.value && $t();
4417
- }, be = E(void 0), tt = E(!1), da = E(""), pa = (A) => {
4418
- be.value = A, tt.value = !0;
4410
+ }, be = E(void 0), tt = E(!1), ca = E(""), da = (x) => {
4411
+ be.value = x, tt.value = !0;
4419
4412
  }, Ot = () => {
4420
4413
  tt.value = !1, be.value = void 0;
4421
- }, fa = T(() => {
4414
+ }, pa = $(() => {
4422
4415
  var H, te, ce, ye;
4423
- let A = `${a.config.apiBaseUrl}${xe.list[a.config.app].oneForConsumerGroup}`;
4424
- return a.config.app === "konnect" ? A = A.replace(/{controlPlaneId}/gi, ((H = a.config) == null ? void 0 : H.controlPlaneId) || "").replace(/{consumerGroupId}/gi, ((te = a.config) == null ? void 0 : te.consumerGroupId) || "") : a.config.app === "kongManager" && (A = A.replace(/\/{workspace}/gi, (ce = a.config) != null && ce.workspace ? `/${a.config.workspace}` : "").replace(/{consumerGroupId}/gi, ((ye = a.config) == null ? void 0 : ye.consumerGroupId) || "")), A;
4425
- }), Et = E(!1), ma = async () => {
4416
+ let x = `${a.config.apiBaseUrl}${Te.list[a.config.app].oneForConsumerGroup}`;
4417
+ return a.config.app === "konnect" ? x = x.replace(/{controlPlaneId}/gi, ((H = a.config) == null ? void 0 : H.controlPlaneId) || "").replace(/{consumerGroupId}/gi, ((te = a.config) == null ? void 0 : te.consumerGroupId) || "") : a.config.app === "kongManager" && (x = x.replace(/\/{workspace}/gi, (ce = a.config) != null && ce.workspace ? `/${a.config.workspace}` : "").replace(/{consumerGroupId}/gi, ((ye = a.config) == null ? void 0 : ye.consumerGroupId) || "")), x;
4418
+ }), Et = E(!1), fa = async () => {
4426
4419
  if (be.value) {
4427
4420
  Et.value = !0;
4428
4421
  try {
4429
- const A = fa.value.replace(/{consumerId}/gi, be.value.id);
4430
- await l.delete(A), t("remove:success", be.value), Ot(), s.value++;
4431
- } catch (A) {
4432
- da.value = A.message || o("consumers.errors.delete"), t("error", A);
4422
+ const x = pa.value.replace(/{consumerId}/gi, be.value.id);
4423
+ await l.delete(x), t("remove:success", be.value), Ot(), s.value++;
4424
+ } catch (x) {
4425
+ ca.value = x.message || o("consumers.errors.delete"), t("error", x);
4433
4426
  } finally {
4434
4427
  Et.value = !1;
4435
4428
  }
4436
4429
  }
4437
4430
  }, Nt = E(!0);
4438
- ve(S, (A) => {
4431
+ ve(U, (x) => {
4439
4432
  var H, te, ce, ye;
4440
- if (Array.isArray((H = A == null ? void 0 : A.response) == null ? void 0 : H.data) && (Nt.value = A.response.data.length > 0), A.status === Se.Error) {
4441
- N.value = {
4433
+ if (Array.isArray((H = x == null ? void 0 : x.response) == null ? void 0 : H.data) && (Nt.value = x.response.data.length > 0), x.status === Se.Error) {
4434
+ q.value = {
4442
4435
  title: o("consumers.errors.general")
4443
- }, (ye = (ce = (te = A.error) == null ? void 0 : te.response) == null ? void 0 : ce.data) != null && ye.message && (N.value.message = A.error.response.data.message), t("error", A.error);
4436
+ }, (ye = (ce = (te = x.error) == null ? void 0 : te.response) == null ? void 0 : ce.data) != null && ye.message && (q.value.message = x.error.response.data.message), t("error", x.error);
4444
4437
  return;
4445
4438
  }
4446
- N.value = null;
4439
+ q.value = null;
4447
4440
  });
4448
4441
  const nt = E({
4449
4442
  ctaPath: u.value ? void 0 : a.config.createRoute,
@@ -4453,96 +4446,99 @@ const ol = {
4453
4446
  });
4454
4447
  return gt(async () => {
4455
4448
  await a.canCreate() && (nt.value.title = u.value ? o("consumers.list.empty_state.title_for_consumer_group") : o("consumers.list.empty_state.title"), nt.value.ctaText = u.value ? o("consumers.actions.add_consumer") : o("consumers.actions.create"));
4456
- }), (A, H) => {
4457
- const te = D("KButton"), ce = D("KBadge"), ye = D("KTruncate"), qe = D("KDropdownItem"), qt = D("KClipboardProvider"), ga = D("KPrompt");
4458
- return f(), $("div", Is, [
4459
- O(m(Ll), {
4449
+ }), (x, H) => {
4450
+ const te = D("KButton"), ce = D("KBadge"), ye = D("KTruncate"), qe = D("KDropdownItem"), qt = D("KClipboardProvider"), ma = D("KPrompt");
4451
+ return f(), T("div", ks, [
4452
+ O(m(Bl), {
4460
4453
  "cache-identifier": e.cacheIdentifier,
4454
+ "disable-pagination": u.value,
4461
4455
  "disable-pagination-page-jump": "",
4462
- "disable-sorting": c.value,
4456
+ "disable-sorting": p.value,
4463
4457
  "empty-state-options": nt.value,
4464
4458
  "enable-entity-actions": "",
4465
- "error-message": N.value,
4466
- fetcher: m(L),
4459
+ "error-message": q.value,
4460
+ fetcher: m(C),
4467
4461
  "fetcher-cache-key": s.value,
4468
4462
  "pagination-type": "offset",
4469
- "preferences-storage-key": p.value,
4470
- query: _.value,
4471
- "row-attributes": w,
4472
- "table-headers": m(d),
4463
+ "preferences-storage-key": "kong-ui-entities-consumers-list",
4464
+ query: v.value,
4465
+ "row-attributes": d,
4466
+ "table-headers": m(h),
4473
4467
  "use-action-outside": e.useActionOutside,
4474
- onClearSearchInput: q,
4475
- "onClick:row": H[3] || (H[3] = (Y) => B(Y)),
4476
- onEmptyStateCtaClicked: ca,
4477
- onSort: k
4468
+ onClearSearchInput: S,
4469
+ "onClick:row": H[3] || (H[3] = (Y) => I(Y)),
4470
+ onEmptyStateCtaClicked: ua,
4471
+ onSort: N
4478
4472
  }, {
4479
- "toolbar-filter": y(() => [
4480
- u.value ? z("", !0) : (f(), G(m(as), {
4473
+ "toolbar-filter": g(() => [
4474
+ u.value ? z("", !0) : (f(), R(m(ts), {
4481
4475
  key: 0,
4482
- modelValue: _.value,
4483
- "onUpdate:modelValue": H[0] || (H[0] = (Y) => _.value = Y),
4484
- config: h.value
4476
+ modelValue: v.value,
4477
+ "onUpdate:modelValue": H[0] || (H[0] = (Y) => v.value = Y),
4478
+ config: A.value
4485
4479
  }, null, 8, ["modelValue", "config"]))
4486
4480
  ]),
4487
- "toolbar-button": y(() => [
4488
- (f(), G(wa, {
4489
- disabled: !e.useActionOutside,
4490
- to: "#kong-ui-app-page-header-action-button"
4491
- }, [
4492
- O(m(Re), {
4493
- "auth-function": () => e.canCreate()
4494
- }, {
4495
- default: y(() => [
4496
- Fe(O(te, {
4497
- appearance: "primary",
4498
- "data-testid": "toolbar-add-consumer",
4499
- icon: "plus",
4500
- to: e.config.consumerGroupId ? void 0 : e.config.createRoute,
4501
- onClick: H[1] || (H[1] = () => e.config.consumerGroupId ? $t() : void 0)
4502
- }, {
4503
- default: y(() => [
4504
- W(j(e.config.consumerGroupId ? m(o)("consumers.actions.add_consumer") : m(o)("consumers.list.toolbar_actions.new_consumer")), 1)
4505
- ]),
4506
- _: 1
4507
- }, 8, ["to"]), [
4508
- [Le, Nt.value]
4509
- ])
4510
- ]),
4511
- _: 1
4512
- }, 8, ["auth-function"])
4513
- ], 8, ["disabled"]))
4481
+ "toolbar-button": g(() => [
4482
+ (f(), R(xe(e.useActionOutside ? "Teleport" : "div"), {
4483
+ to: e.useActionOutside ? "#kong-ui-app-page-header-action-button" : void 0
4484
+ }, {
4485
+ default: g(() => [
4486
+ O(m(Re), {
4487
+ "auth-function": () => e.canCreate()
4488
+ }, {
4489
+ default: g(() => [
4490
+ Fe(O(te, {
4491
+ appearance: "primary",
4492
+ "data-testid": "toolbar-add-consumer",
4493
+ icon: "plus",
4494
+ to: e.config.consumerGroupId ? void 0 : e.config.createRoute,
4495
+ onClick: H[1] || (H[1] = () => e.config.consumerGroupId ? $t() : void 0)
4496
+ }, {
4497
+ default: g(() => [
4498
+ W(j(e.config.consumerGroupId ? m(o)("consumers.actions.add_consumer") : m(o)("consumers.list.toolbar_actions.new_consumer")), 1)
4499
+ ]),
4500
+ _: 1
4501
+ }, 8, ["to"]), [
4502
+ [Le, Nt.value]
4503
+ ])
4504
+ ]),
4505
+ _: 1
4506
+ }, 8, ["auth-function"])
4507
+ ]),
4508
+ _: 1
4509
+ }, 8, ["to"]))
4514
4510
  ]),
4515
- username: y(({ rowValue: Y }) => [
4516
- F("b", null, j(U(Y)), 1)
4511
+ username: g(({ rowValue: Y }) => [
4512
+ F("b", null, j(k(Y)), 1)
4517
4513
  ]),
4518
- custom_id: y(({ rowValue: Y }) => [
4519
- W(j(U(Y)), 1)
4514
+ custom_id: g(({ rowValue: Y }) => [
4515
+ W(j(k(Y)), 1)
4520
4516
  ]),
4521
- tags: y(({ rowValue: Y }) => [
4522
- Y && Y.length > 0 ? (f(), G(ye, { key: 0 }, {
4523
- default: y(() => [
4524
- (f(!0), $(me, null, pe(Y, (Te) => (f(), G(ce, {
4525
- key: Te,
4517
+ tags: g(({ rowValue: Y }) => [
4518
+ Y && Y.length > 0 ? (f(), R(ye, { key: 0 }, {
4519
+ default: g(() => [
4520
+ (f(!0), T(me, null, pe(Y, ($e) => (f(), R(ce, {
4521
+ key: $e,
4526
4522
  onClick: H[2] || (H[2] = Ge(() => {
4527
4523
  }, ["stop"]))
4528
4524
  }, {
4529
- default: y(() => [
4530
- W(j(Te), 1)
4525
+ default: g(() => [
4526
+ W(j($e), 1)
4531
4527
  ]),
4532
4528
  _: 2
4533
4529
  }, 1024))), 128))
4534
4530
  ]),
4535
4531
  _: 2
4536
- }, 1024)) : (f(), $("span", _s, "-"))
4532
+ }, 1024)) : (f(), T("span", ws, "-"))
4537
4533
  ]),
4538
- actions: y(({ row: Y }) => [
4534
+ actions: g(({ row: Y }) => [
4539
4535
  O(qt, null, {
4540
- default: y(({ copyToClipboard: Te }) => [
4536
+ default: g(({ copyToClipboard: $e }) => [
4541
4537
  O(qe, {
4542
4538
  "data-testid": "action-entity-copy-id",
4543
- onClick: (ya) => b(Y, Te)
4539
+ onClick: (ga) => B(Y, $e)
4544
4540
  }, {
4545
- default: y(() => [
4541
+ default: g(() => [
4546
4542
  W(j(m(o)("consumers.actions.copy_id")), 1)
4547
4543
  ]),
4548
4544
  _: 2
@@ -4551,12 +4547,12 @@ const ol = {
4551
4547
  _: 2
4552
4548
  }, 1024),
4553
4549
  O(qt, null, {
4554
- default: y(({ copyToClipboard: Te }) => [
4550
+ default: g(({ copyToClipboard: $e }) => [
4555
4551
  O(qe, {
4556
4552
  "data-testid": "action-entity-copy-json",
4557
- onClick: (ya) => I(Y, Te)
4553
+ onClick: (ga) => b(Y, $e)
4558
4554
  }, {
4559
- default: y(() => [
4555
+ default: g(() => [
4560
4556
  W(j(m(o)("consumers.actions.copy_json")), 1)
4561
4557
  ]),
4562
4558
  _: 2
@@ -4567,11 +4563,11 @@ const ol = {
4567
4563
  O(m(Re), {
4568
4564
  "auth-function": () => e.canRetrieve(Y)
4569
4565
  }, {
4570
- default: y(() => [
4566
+ default: g(() => [
4571
4567
  O(qe, {
4572
4568
  "data-testid": "action-entity-view",
4573
4569
  "has-divider": "",
4574
- item: V(Y.id)
4570
+ item: K(Y.id)
4575
4571
  }, null, 8, ["item"])
4576
4572
  ]),
4577
4573
  _: 2
@@ -4579,10 +4575,10 @@ const ol = {
4579
4575
  O(m(Re), {
4580
4576
  "auth-function": () => e.canEdit(Y)
4581
4577
  }, {
4582
- default: y(() => [
4578
+ default: g(() => [
4583
4579
  O(qe, {
4584
4580
  "data-testid": "action-entity-edit",
4585
- item: x(Y.id)
4581
+ item: V(Y.id)
4586
4582
  }, null, 8, ["item"])
4587
4583
  ]),
4588
4584
  _: 2
@@ -4590,14 +4586,14 @@ const ol = {
4590
4586
  O(m(Re), {
4591
4587
  "auth-function": () => e.canDelete(Y)
4592
4588
  }, {
4593
- default: y(() => [
4589
+ default: g(() => [
4594
4590
  O(qe, {
4595
4591
  danger: "",
4596
4592
  "data-testid": "action-entity-delete",
4597
4593
  "has-divider": "",
4598
- onClick: () => e.config.consumerGroupId ? pa(Y) : X(Y)
4594
+ onClick: () => e.config.consumerGroupId ? da(Y) : J(Y)
4599
4595
  }, {
4600
- default: y(() => [
4596
+ default: g(() => [
4601
4597
  W(j(e.config.consumerGroupId ? m(o)("consumers.actions.remove") : m(o)("consumers.actions.delete")), 1)
4602
4598
  ]),
4603
4599
  _: 2
@@ -4607,20 +4603,20 @@ const ol = {
4607
4603
  }, 1032, ["auth-function"])
4608
4604
  ]),
4609
4605
  _: 1
4610
- }, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "preferences-storage-key", "query", "table-headers", "use-action-outside"]),
4611
- O(m(Vl), {
4612
- "action-pending": R.value,
4606
+ }, 8, ["cache-identifier", "disable-pagination", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers", "use-action-outside"]),
4607
+ O(m(Pl), {
4608
+ "action-pending": P.value,
4613
4609
  "data-testid": "delete-consumer-modal",
4614
4610
  description: m(o)("consumers.delete.description"),
4615
- "entity-name": K.value && (K.value.username || K.value.custom_id || K.value.id),
4611
+ "entity-name": _.value && (_.value.username || _.value.custom_id || _.value.id),
4616
4612
  "entity-type": m(gn).Consumer,
4617
- error: Q.value,
4613
+ error: G.value,
4618
4614
  title: m(o)("consumers.delete.title"),
4619
- visible: P.value,
4620
- onCancel: ue,
4621
- onProceed: ua
4615
+ visible: L.value,
4616
+ onCancel: X,
4617
+ onProceed: ue
4622
4618
  }, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"]),
4623
- e.config.consumerGroupId ? (f(), G(ws, {
4619
+ e.config.consumerGroupId ? (f(), R(Cs, {
4624
4620
  key: 0,
4625
4621
  config: e.config,
4626
4622
  "data-testid": "add-consumer-modal",
@@ -4629,29 +4625,29 @@ const ol = {
4629
4625
  "onAdd:success": H[5] || (H[5] = (Y) => Mt(Y)),
4630
4626
  onCancel: jt
4631
4627
  }, null, 8, ["config", "visible"])) : z("", !0),
4632
- e.config.consumerGroupId && be.value ? (f(), G(ga, {
4628
+ e.config.consumerGroupId && be.value ? (f(), R(ma, {
4633
4629
  key: 1,
4634
4630
  "data-testid": "remove-consumer-modal",
4635
4631
  "is-visible": tt.value,
4636
4632
  title: m(o)("consumers.consumer_groups.remove.title"),
4637
4633
  type: "danger",
4638
4634
  onCanceled: Ot,
4639
- onProceed: ma
4635
+ onProceed: fa
4640
4636
  }, {
4641
- "body-content": y(() => [
4637
+ "body-content": g(() => [
4642
4638
  O(m(r), {
4643
4639
  class: "message",
4644
4640
  keypath: e.config.consumerGroupName ? "consumers.consumer_groups.remove.confirmation" : "consumers.consumer_groups.remove.confirmationNoCG",
4645
4641
  tag: "p"
4646
4642
  }, ke({
4647
- consumer: y(() => [
4643
+ consumer: g(() => [
4648
4644
  F("strong", null, j(be.value.username || be.value.custom_id || be.value.id), 1)
4649
4645
  ]),
4650
4646
  _: 2
4651
4647
  }, [
4652
4648
  e.config.consumerGroupName ? {
4653
4649
  name: "consumerGroup",
4654
- fn: y(() => [
4650
+ fn: g(() => [
4655
4651
  F("strong", null, j(e.config.consumerGroupName), 1)
4656
4652
  ]),
4657
4653
  key: "0"
@@ -4664,7 +4660,7 @@ const ol = {
4664
4660
  ]);
4665
4661
  };
4666
4662
  }
4667
- }), Ds = /* @__PURE__ */ Tt(Ss, [["__scopeId", "data-v-0bfc75d0"]]), As = { class: "kong-ui-entities-consumer-form" }, xs = { class: "fields-group-title" }, Ts = { class: "fields-group-text" }, $s = /* @__PURE__ */ ne({
4663
+ }), Us = /* @__PURE__ */ Tt(Is, [["__scopeId", "data-v-94f330ad"]]), _s = { class: "kong-ui-entities-consumer-form" }, Ss = { class: "fields-group-title" }, As = { class: "fields-group-text" }, xs = /* @__PURE__ */ ne({
4668
4664
  __name: "ConsumerForm",
4669
4665
  props: {
4670
4666
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -4682,10 +4678,10 @@ const ol = {
4682
4678
  },
4683
4679
  emits: ["update", "error", "loading"],
4684
4680
  setup(e, { emit: n }) {
4685
- var q;
4681
+ var N;
4686
4682
  const t = e, a = n, { i18nT: r, i18n: { t: o } } = Qe.useI18n(), i = yt(), { axiosInstance: l } = xt({
4687
- headers: (q = t.config) == null ? void 0 : q.requestHeaders
4688
- }), { getMessageFromError: s } = ps(), u = Bt({
4683
+ headers: (N = t.config) == null ? void 0 : N.requestHeaders
4684
+ }), { getMessageFromError: s } = cs(), u = Bt({
4689
4685
  fields: {
4690
4686
  username: "",
4691
4687
  customId: "",
@@ -4697,10 +4693,10 @@ const ol = {
4697
4693
  username: "",
4698
4694
  customId: "",
4699
4695
  tags: ""
4700
- }), c = T(() => {
4701
- var k, U;
4702
- return (U = xe.form[(k = t.config) == null ? void 0 : k.app]) == null ? void 0 : U.edit;
4703
- }), g = () => {
4696
+ }), c = $(() => {
4697
+ var k, q;
4698
+ return (q = Te.form[(k = t.config) == null ? void 0 : k.app]) == null ? void 0 : q.edit;
4699
+ }), h = () => {
4704
4700
  var k;
4705
4701
  i.push(((k = t.config) == null ? void 0 : k.cancelRoute) || { name: "consumer-list" });
4706
4702
  }, d = (k) => {
@@ -4708,64 +4704,64 @@ const ol = {
4708
4704
  }, w = (k) => {
4709
4705
  a("error", k);
4710
4706
  }, v = (k) => {
4711
- var N, b, I;
4712
- u.fields.username = ((N = k == null ? void 0 : k.item) == null ? void 0 : N.username) || (k == null ? void 0 : k.username) || "", u.fields.customId = ((b = k == null ? void 0 : k.item) == null ? void 0 : b.custom_id) || (k == null ? void 0 : k.custom_id) || "";
4713
- const U = ((I = k == null ? void 0 : k.item) == null ? void 0 : I.tags) || (k == null ? void 0 : k.tags) || [];
4714
- u.fields.tags = (U == null ? void 0 : U.join(", ")) || "", Object.assign(p, u.fields);
4715
- }, _ = T(() => t.consumerId ? ut.Edit : ut.Create), h = (k) => {
4716
- var N, b, I, B, V, x;
4717
- let U = `${(N = t.config) == null ? void 0 : N.apiBaseUrl}${xe.form[(b = t.config) == null ? void 0 : b.app][k]}`;
4718
- return ((I = t.config) == null ? void 0 : I.app) === "konnect" ? U = U.replace(/{controlPlaneId}/gi, ((B = t.config) == null ? void 0 : B.controlPlaneId) || "") : ((V = t.config) == null ? void 0 : V.app) === "kongManager" && (U = U.replace(/\/{workspace}/gi, (x = t.config) != null && x.workspace ? `/${t.config.workspace}` : "")), U = U.replace(/{id}/gi, t.consumerId), U;
4719
- }, C = T(() => !!u.fields.username || !!u.fields.customId), L = T(() => JSON.stringify(u.fields) !== JSON.stringify(p)), S = async () => {
4720
- var k, U, N;
4707
+ var B, b, I;
4708
+ u.fields.username = ((B = k == null ? void 0 : k.item) == null ? void 0 : B.username) || (k == null ? void 0 : k.username) || "", u.fields.customId = ((b = k == null ? void 0 : k.item) == null ? void 0 : b.custom_id) || (k == null ? void 0 : k.custom_id) || "";
4709
+ const q = ((I = k == null ? void 0 : k.item) == null ? void 0 : I.tags) || (k == null ? void 0 : k.tags) || [];
4710
+ u.fields.tags = (q == null ? void 0 : q.join(", ")) || "", Object.assign(p, u.fields);
4711
+ }, A = $(() => t.consumerId ? ut.Edit : ut.Create), y = (k) => {
4712
+ var B, b, I, K, V, _;
4713
+ let q = `${(B = t.config) == null ? void 0 : B.apiBaseUrl}${Te.form[(b = t.config) == null ? void 0 : b.app][k]}`;
4714
+ return ((I = t.config) == null ? void 0 : I.app) === "konnect" ? q = q.replace(/{controlPlaneId}/gi, ((K = t.config) == null ? void 0 : K.controlPlaneId) || "") : ((V = t.config) == null ? void 0 : V.app) === "kongManager" && (q = q.replace(/\/{workspace}/gi, (_ = t.config) != null && _.workspace ? `/${t.config.workspace}` : "")), q = q.replace(/{id}/gi, t.consumerId), q;
4715
+ }, C = $(() => !!u.fields.username || !!u.fields.customId), U = $(() => JSON.stringify(u.fields) !== JSON.stringify(p)), S = async () => {
4716
+ var k, q, B;
4721
4717
  try {
4722
4718
  u.readonly = !0;
4723
4719
  const b = {
4724
4720
  username: u.fields.username || null,
4725
4721
  custom_id: u.fields.customId || null,
4726
- tags: (U = (k = u.fields.tags.split(",")) == null ? void 0 : k.map((B) => String(B || "").trim())) == null ? void 0 : U.filter((B) => B !== "")
4722
+ tags: (q = (k = u.fields.tags.split(",")) == null ? void 0 : k.map((K) => String(K || "").trim())) == null ? void 0 : q.filter((K) => K !== "")
4727
4723
  };
4728
4724
  let I;
4729
- await l.post(h("validate"), b), _.value === "create" ? I = await l.post(h("create"), b) : _.value === "edit" && (I = ((N = t.config) == null ? void 0 : N.app) === "konnect" ? await l.put(h("edit"), b) : await l.patch(h("edit"), b)), v(I == null ? void 0 : I.data), a("update", I == null ? void 0 : I.data);
4725
+ await l.post(y("validate"), b), A.value === "create" ? I = await l.post(y("create"), b) : A.value === "edit" && (I = ((B = t.config) == null ? void 0 : B.app) === "konnect" ? await l.put(y("edit"), b) : await l.patch(y("edit"), b)), v(I == null ? void 0 : I.data), a("update", I == null ? void 0 : I.data);
4730
4726
  } catch (b) {
4731
4727
  u.errorMessage = s(b), a("error", b);
4732
4728
  } finally {
4733
4729
  u.readonly = !1;
4734
4730
  }
4735
4731
  };
4736
- return (k, U) => {
4737
- const N = D("KInput"), b = D("KCard");
4738
- return f(), $("div", As, [
4739
- O(m(Ml), {
4740
- "can-submit": C.value && L.value,
4732
+ return (k, q) => {
4733
+ const B = D("KInput"), b = D("KCard");
4734
+ return f(), T("div", _s, [
4735
+ O(m($l), {
4736
+ "can-submit": C.value && U.value,
4741
4737
  config: e.config,
4742
4738
  "edit-id": e.consumerId,
4743
4739
  "error-message": u.errorMessage,
4744
4740
  "fetch-url": c.value,
4745
4741
  "is-readonly": u.readonly,
4746
- onCancel: g,
4747
- "onFetch:error": U[3] || (U[3] = (I) => w(I)),
4742
+ onCancel: h,
4743
+ "onFetch:error": q[3] || (q[3] = (I) => w(I)),
4748
4744
  "onFetch:success": v,
4749
- onLoading: U[4] || (U[4] = (I) => d(I)),
4745
+ onLoading: q[4] || (q[4] = (I) => d(I)),
4750
4746
  onSubmit: S
4751
4747
  }, {
4752
- default: y(() => [
4748
+ default: g(() => [
4753
4749
  F("div", null, [
4754
- O(m(cs), {
4750
+ O(m(ss), {
4755
4751
  description: m(o)("consumers.form.info.description"),
4756
4752
  "has-divider": "",
4757
4753
  title: m(o)("consumers.form.info.title")
4758
4754
  }, {
4759
- default: y(() => [
4755
+ default: g(() => [
4760
4756
  F("div", null, [
4761
- F("h5", xs, j(m(o)("consumers.form.consumer_identification.title")) + "* ", 1),
4762
- F("p", Ts, j(m(o)("consumers.form.consumer_identification.description")), 1)
4757
+ F("h5", Ss, j(m(o)("consumers.form.consumer_identification.title")) + "* ", 1),
4758
+ F("p", As, j(m(o)("consumers.form.consumer_identification.description")), 1)
4763
4759
  ]),
4764
4760
  O(b, null, {
4765
- default: y(() => [
4766
- O(N, {
4761
+ default: g(() => [
4762
+ O(B, {
4767
4763
  modelValue: u.fields.username,
4768
- "onUpdate:modelValue": U[0] || (U[0] = (I) => u.fields.username = I),
4764
+ "onUpdate:modelValue": q[0] || (q[0] = (I) => u.fields.username = I),
4769
4765
  modelModifiers: { trim: !0 },
4770
4766
  autocomplete: "off",
4771
4767
  class: "username-field",
@@ -4778,12 +4774,12 @@ const ol = {
4778
4774
  readonly: u.readonly,
4779
4775
  type: "text"
4780
4776
  }, {
4781
- "label-tooltip": y(() => [
4777
+ "label-tooltip": g(() => [
4782
4778
  O(m(r), {
4783
4779
  keypath: "consumers.fields.username.tooltip",
4784
4780
  scope: "global"
4785
4781
  }, {
4786
- custom_id: y(() => [
4782
+ custom_id: g(() => [
4787
4783
  F("code", null, j(m(o)("consumers.fields.username.custom_id")), 1)
4788
4784
  ]),
4789
4785
  _: 1
@@ -4791,9 +4787,9 @@ const ol = {
4791
4787
  ]),
4792
4788
  _: 1
4793
4789
  }, 8, ["modelValue", "label", "placeholder", "readonly"]),
4794
- O(N, {
4790
+ O(B, {
4795
4791
  modelValue: u.fields.customId,
4796
- "onUpdate:modelValue": U[1] || (U[1] = (I) => u.fields.customId = I),
4792
+ "onUpdate:modelValue": q[1] || (q[1] = (I) => u.fields.customId = I),
4797
4793
  modelModifiers: { trim: !0 },
4798
4794
  autocomplete: "off",
4799
4795
  "data-testid": "consumer-form-custom-id",
@@ -4805,12 +4801,12 @@ const ol = {
4805
4801
  readonly: u.readonly,
4806
4802
  type: "text"
4807
4803
  }, {
4808
- "label-tooltip": y(() => [
4804
+ "label-tooltip": g(() => [
4809
4805
  O(m(r), {
4810
4806
  keypath: "consumers.fields.custom_id.tooltip",
4811
4807
  scope: "global"
4812
4808
  }, {
4813
- username: y(() => [
4809
+ username: g(() => [
4814
4810
  F("code", null, j(m(o)("consumers.fields.custom_id.username")), 1)
4815
4811
  ]),
4816
4812
  _: 1
@@ -4821,9 +4817,9 @@ const ol = {
4821
4817
  ]),
4822
4818
  _: 1
4823
4819
  }),
4824
- O(N, {
4820
+ O(B, {
4825
4821
  modelValue: u.fields.tags,
4826
- "onUpdate:modelValue": U[2] || (U[2] = (I) => u.fields.tags = I),
4822
+ "onUpdate:modelValue": q[2] || (q[2] = (I) => u.fields.tags = I),
4827
4823
  modelModifiers: { trim: !0 },
4828
4824
  autocomplete: "off",
4829
4825
  "data-testid": "consumer-form-tags",
@@ -4847,7 +4843,7 @@ const ol = {
4847
4843
  ]);
4848
4844
  };
4849
4845
  }
4850
- }), Vs = /* @__PURE__ */ Tt($s, [["__scopeId", "data-v-99612940"]]), js = { class: "kong-ui-consumer-entity-config-card" }, Rs = /* @__PURE__ */ ne({
4846
+ }), Ps = /* @__PURE__ */ Tt(xs, [["__scopeId", "data-v-99612940"]]), Ts = { class: "kong-ui-consumer-entity-config-card" }, Ds = /* @__PURE__ */ ne({
4851
4847
  __name: "ConsumerConfigCard",
4852
4848
  props: {
4853
4849
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -4874,7 +4870,7 @@ const ol = {
4874
4870
  },
4875
4871
  emits: ["loading", "fetch:error", "fetch:success", "copy:success"],
4876
4872
  setup(e) {
4877
- const n = e, { i18n: { t }, i18nT: a } = Qe.useI18n(), r = T(() => xe.form[n.config.app].edit), o = E({
4873
+ const n = e, { i18n: { t }, i18nT: a } = Qe.useI18n(), r = $(() => Te.form[n.config.app].edit), o = E({
4878
4874
  id: {},
4879
4875
  username: {
4880
4876
  section: de.Basic,
@@ -4899,8 +4895,8 @@ const ol = {
4899
4895
  hidden: !0
4900
4896
  }
4901
4897
  });
4902
- return (i, l) => (f(), $("div", js, [
4903
- O(m(Tl), {
4898
+ return (i, l) => (f(), T("div", Ts, [
4899
+ O(m(Al), {
4904
4900
  config: e.config,
4905
4901
  "config-card-doc": e.configCardDoc,
4906
4902
  "config-schema": o.value,
@@ -4911,23 +4907,23 @@ const ol = {
4911
4907
  "onFetch:success": l[2] || (l[2] = (s) => i.$emit("fetch:success", s)),
4912
4908
  onLoading: l[3] || (l[3] = (s) => i.$emit("loading", s))
4913
4909
  }, {
4914
- "username-label-tooltip": y(() => [
4910
+ "username-label-tooltip": g(() => [
4915
4911
  O(m(a), {
4916
4912
  keypath: "consumers.fields.username.tooltip",
4917
4913
  scope: "global"
4918
4914
  }, {
4919
- custom_id: y(() => [
4915
+ custom_id: g(() => [
4920
4916
  F("code", null, j(m(t)("consumers.fields.username.custom_id")), 1)
4921
4917
  ]),
4922
4918
  _: 1
4923
4919
  })
4924
4920
  ]),
4925
- "custom_id-label-tooltip": y(() => [
4921
+ "custom_id-label-tooltip": g(() => [
4926
4922
  O(m(a), {
4927
4923
  keypath: "consumers.fields.custom_id.tooltip",
4928
4924
  scope: "global"
4929
4925
  }, {
4930
- username: y(() => [
4926
+ username: g(() => [
4931
4927
  F("code", null, j(m(t)("consumers.fields.custom_id.username")), 1)
4932
4928
  ]),
4933
4929
  _: 1
@@ -4939,7 +4935,7 @@ const ol = {
4939
4935
  }
4940
4936
  });
4941
4937
  export {
4942
- Rs as ConsumerConfigCard,
4943
- Vs as ConsumerForm,
4944
- Ds as ConsumerList
4938
+ Ds as ConsumerConfigCard,
4939
+ Ps as ConsumerForm,
4940
+ Us as ConsumerList
4945
4941
  };