@kong-ui-public/entities-consumers 1.2.28 → 1.2.29

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 te, ref as E, computed as O, watch as ve, renderSlot as W, createCommentVNode as G, unref as g, useSlots as Ze, onBeforeMount as Xe, resolveComponent as U, openBlock as m, createBlock as V, createSlots as be, withCtx as h, createElementVNode as B, createTextVNode as Y, toDisplayString as M, createVNode as K, createElementBlock as j, renderList as ce, Fragment as pe, normalizeClass as Ae, withModifiers as Ge, withDirectives as Ve, vShow as De, useCssVars as la, resolveDynamicComponent as Be, normalizeProps as ua, guardReactiveProps as ca, mergeProps as lt, onMounted as da, onUnmounted as pa, normalizeStyle as fa, inject as ma, pushScopeId as ga, popScopeId as ya, reactive as Ft } from "vue";
1
+ import { defineComponent as te, ref as K, computed as O, watch as ve, renderSlot as W, createCommentVNode as G, unref as g, useSlots as Ze, onBeforeMount as Xe, resolveComponent as q, openBlock as m, createBlock as D, createSlots as be, withCtx as h, createElementVNode as B, createTextVNode as Y, toDisplayString as M, createVNode as F, createElementBlock as j, renderList as ce, Fragment as pe, normalizeClass as Ae, withModifiers as Ge, withDirectives as Ve, vShow as De, useCssVars as ua, resolveDynamicComponent as Be, normalizeProps as ca, guardReactiveProps as da, mergeProps as lt, onMounted as pa, onUnmounted as fa, normalizeStyle as ma, inject as ga, pushScopeId as ya, popScopeId as ha, reactive as Ft } from "vue";
2
2
  import { useRouter as gt } from "vue-router";
3
3
  import { createI18n as yt, i18nTComponent as on } from "@kong-ui-public/i18n";
4
- import ha from "axios";
5
- import { ToastManager as va, MethodsArray as ba } from "@kong/kongponents";
6
- const ka = {
4
+ import va from "axios";
5
+ import { ToastManager as ba, MethodsArray as ka } from "@kong/kongponents";
6
+ const Ca = {
7
7
  list: {
8
8
  table_headers: {
9
9
  username: "Username",
@@ -95,11 +95,11 @@ const ka = {
95
95
  tooltip: "An optional set of strings associated with the Consumer for grouping and filtering."
96
96
  }
97
97
  }
98
- }, Ca = {
99
- consumers: ka
98
+ }, wa = {
99
+ consumers: Ca
100
100
  };
101
- function wa() {
102
- const e = yt("en-us", Ca);
101
+ function _a() {
102
+ const e = yt("en-us", wa);
103
103
  return {
104
104
  i18n: e,
105
105
  i18nT: on(e)
@@ -107,7 +107,7 @@ function wa() {
107
107
  };
108
108
  }
109
109
  const Qe = {
110
- useI18n: wa
110
+ useI18n: _a
111
111
  }, Te = "/api/runtime_groups/{controlPlaneId}", $e = "/{workspace}", Se = {
112
112
  list: {
113
113
  konnect: {
@@ -137,14 +137,14 @@ const Qe = {
137
137
  var sn = /* @__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))(sn || {}), ut = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(ut || {}), _e = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(_e || {}), Q = /* @__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))(Q || {}), ue = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(ue || {});
138
138
  function ht(e = {}) {
139
139
  return {
140
- axiosInstance: ha.create({
140
+ axiosInstance: va.create({
141
141
  withCredentials: !0,
142
142
  timeout: 3e4,
143
143
  ...e
144
144
  })
145
145
  };
146
146
  }
147
- function _a() {
147
+ function Ia() {
148
148
  return {
149
149
  debounce: (e, n) => {
150
150
  let t;
@@ -156,12 +156,12 @@ function _a() {
156
156
  }
157
157
  };
158
158
  }
159
- const rt = "khcp-user-table-preferences", Ia = {
159
+ const rt = "khcp-user-table-preferences", Aa = {
160
160
  pageSize: 30,
161
161
  sortColumnKey: void 0,
162
162
  sortColumnOrder: void 0
163
163
  };
164
- function Aa() {
164
+ function Sa() {
165
165
  const e = (t) => {
166
166
  if (typeof t == "string")
167
167
  try {
@@ -185,24 +185,24 @@ function Aa() {
185
185
  },
186
186
  getTablePreferences: (t) => {
187
187
  const a = n();
188
- return (a == null ? void 0 : a.get(t)) || void 0 || Ia;
188
+ return (a == null ? void 0 : a.get(t)) || void 0 || Aa;
189
189
  },
190
190
  deleteAllTablePreferences: () => {
191
191
  localStorage.removeItem(rt);
192
192
  }
193
193
  };
194
194
  }
195
- const Sa = {
195
+ const xa = {
196
196
  actions: {
197
197
  copyId: "Copy ID",
198
198
  copied_id: 'Copied "{id}" to the clipboard',
199
199
  copyToClipboard: "Copied successfully!",
200
200
  copyToClipboardFailed: "Failed to copy to the clipboard"
201
201
  }
202
- }, xa = {
202
+ }, Ta = {
203
203
  message: "Are you sure you want to delete this {entityType}?",
204
204
  messageWithName: "Are you sure you want to delete this {entityType} {entityName}?"
205
- }, Ta = {
205
+ }, $a = {
206
206
  actions: {
207
207
  save: "Save",
208
208
  cancel: "Cancel",
@@ -211,13 +211,13 @@ const Sa = {
211
211
  errors: {
212
212
  edit: "The entity could not be edited at this time."
213
213
  }
214
- }, $a = {
214
+ }, ja = {
215
215
  emptyState: {
216
216
  noSearchResultsTitle: "No results found",
217
217
  noSearchResultsMessage: "Please adjust the criteria and try again.",
218
218
  noSearchResultsCtaText: "Clear"
219
219
  }
220
- }, ja = {
220
+ }, Ma = {
221
221
  title: "Configuration",
222
222
  actions: {
223
223
  copy: "Copy JSON"
@@ -252,7 +252,7 @@ const Sa = {
252
252
  entryTitle: "Entry {index}",
253
253
  structuredFormat: "Structured"
254
254
  }
255
- }, Ma = {
255
+ }, Oa = {
256
256
  filterButtonText: "Filter",
257
257
  fieldLabel: "Filter by:",
258
258
  inputPlaceholder: "Enter a value",
@@ -260,15 +260,15 @@ const Sa = {
260
260
  applyButtonText: "Apply",
261
261
  clearButtonText: "Clear",
262
262
  clearAllButtonText: "Clear all filters"
263
- }, Oa = {
263
+ }, Ea = {
264
264
  errors: {
265
265
  fetch: "Could not fetch available items",
266
266
  invalid: "Please select a valid value"
267
267
  }
268
- }, Ea = {
268
+ }, Ka = {
269
269
  unexpected: "An unexpected error has occurred",
270
270
  dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.'
271
- }, Ka = {
271
+ }, Fa = {
272
272
  enable: {
273
273
  title: "Enable {entityType}",
274
274
  message: "Are you sure you want to enable the {entityType} {entityName}?",
@@ -279,19 +279,19 @@ const Sa = {
279
279
  message: "Are you sure you want to disable the {entityType} {entityName}?",
280
280
  confirmText: "Yes, disable"
281
281
  }
282
- }, Fa = {
283
- global: Sa,
284
- deleteModal: xa,
285
- baseForm: Ta,
286
- baseTable: $a,
287
- baseConfigCard: ja,
288
- filter: Ma,
289
- debouncedFilter: Oa,
290
- errors: Ea,
291
- toggleModal: Ka
282
+ }, Na = {
283
+ global: xa,
284
+ deleteModal: Ta,
285
+ baseForm: $a,
286
+ baseTable: ja,
287
+ baseConfigCard: Ma,
288
+ filter: Oa,
289
+ debouncedFilter: Ea,
290
+ errors: Ka,
291
+ toggleModal: Fa
292
292
  };
293
293
  function vt() {
294
- const e = yt("en-us", Fa);
294
+ const e = yt("en-us", Na);
295
295
  return {
296
296
  i18n: e,
297
297
  i18nT: on(e)
@@ -342,70 +342,70 @@ function ln() {
342
342
  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
343
343
  };
344
344
  }
345
- function Na(e, n, t, a = {
345
+ function Ba(e, n, t, a = {
346
346
  fetchedItemsKey: "data",
347
347
  searchKeys: ["id"]
348
348
  }) {
349
349
  t || (t = "100");
350
350
  const { axiosInstance: r } = ht({
351
351
  headers: e.requestHeaders
352
- }), { i18n: { t: o } } = vt(), { debounce: i } = _a(), s = i(async (S) => {
353
- await C(S);
354
- }, 200), l = E(!1), c = E(""), d = E(""), u = E([]), y = E([]), f = E(void 0), I = g(n);
355
- let b = `${e.apiBaseUrl}${I}`;
356
- e.app === "konnect" ? b = b.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (b = b.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
357
- const { isValidUuid: p } = ln(), A = async () => {
352
+ }), { i18n: { t: o } } = vt(), { debounce: i } = Ia(), s = i(async (A) => {
353
+ await C(A);
354
+ }, 200), l = K(!1), c = K(""), d = K(""), u = K([]), y = K([]), f = K(void 0), I = g(n);
355
+ let v = `${e.apiBaseUrl}${I}`;
356
+ 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}` : ""));
357
+ const { isValidUuid: p } = ln(), _ = async () => {
358
358
  try {
359
359
  l.value = !0;
360
- const { data: S } = await r.get(`${b}?size=${t}`);
361
- S != null && S.next || (f.value = a.fetchedItemsKey in S ? S[a.fetchedItemsKey] : []), y.value = a.fetchedItemsKey in S ? S[a.fetchedItemsKey] : [], u.value = y.value;
360
+ const { data: A } = await r.get(`${v}?size=${t}`);
361
+ A != null && A.next || (f.value = a.fetchedItemsKey in A ? A[a.fetchedItemsKey] : []), y.value = a.fetchedItemsKey in A ? A[a.fetchedItemsKey] : [], u.value = y.value;
362
362
  } catch {
363
363
  u.value = [], c.value = o("debouncedFilter.errors.fetch");
364
364
  } finally {
365
365
  l.value = !1;
366
366
  }
367
- }, w = E(""), C = async (S) => {
368
- var x, q, R;
369
- if (w.value !== S)
370
- if (w.value = S || "", f.value === void 0)
367
+ }, w = K(""), C = async (A) => {
368
+ var x, U, R;
369
+ if (w.value !== A)
370
+ if (w.value = A || "", f.value === void 0)
371
371
  try {
372
372
  if (l.value = !0, c.value = "", d.value = "", e.app === "konnect") {
373
- let v = b + "";
374
- S && (v += `/${S}`);
375
- const { data: k } = await r.get(`${v}?size=${t}`);
373
+ let b = v + "";
374
+ A && (b += `/${A}`);
375
+ const { data: k } = await r.get(`${b}?size=${t}`);
376
376
  a.fetchedItemsKey in k ? u.value = k[a.fetchedItemsKey] : k != null && k.id ? u.value = [k] : u.value = [];
377
- } else if (S) {
378
- const v = [];
379
- p(S) && a.searchKeys.includes("id") ? v.push((async () => {
380
- const { data: L } = await r.get(`${b}/${S}`);
377
+ } else if (A) {
378
+ const b = [];
379
+ p(A) && a.searchKeys.includes("id") ? b.push((async () => {
380
+ const { data: L } = await r.get(`${v}/${A}`);
381
381
  return [L[a.fetchedItemsKey] ?? L];
382
- })()) : v.push(
382
+ })()) : b.push(
383
383
  ...a.searchKeys.filter((L) => L !== "id").map(async (L) => {
384
- const { data: _ } = await r.get(`${b}?${L}=${S}`);
385
- return _[a.fetchedItemsKey];
384
+ const { data: S } = await r.get(`${v}?${L}=${A}`);
385
+ return S[a.fetchedItemsKey];
386
386
  })
387
387
  );
388
- const k = await Promise.all(v), N = /* @__PURE__ */ new Set();
388
+ const k = await Promise.all(b), N = /* @__PURE__ */ new Set();
389
389
  u.value = [], (x = k == null ? void 0 : k.forEach) == null || x.call(k, (L) => {
390
- var _;
391
- (_ = L == null ? void 0 : L.forEach) == null || _.call(L, (F) => {
392
- N.has(F.id) || (N.add(F.id), u.value.push(F));
390
+ var S;
391
+ (S = L == null ? void 0 : L.forEach) == null || S.call(L, (E) => {
392
+ N.has(E.id) || (N.add(E.id), u.value.push(E));
393
393
  });
394
394
  });
395
395
  } else
396
396
  u.value = y.value;
397
- } catch (v) {
398
- ((q = v == null ? void 0 : v.response) == null ? void 0 : q.status) === 404 ? d.value = o("debouncedFilter.errors.invalid") : (u.value = [], c.value = o("debouncedFilter.errors.fetch"));
397
+ } catch (b) {
398
+ ((U = b == null ? void 0 : b.response) == null ? void 0 : U.status) === 404 ? d.value = o("debouncedFilter.errors.invalid") : (u.value = [], c.value = o("debouncedFilter.errors.fetch"));
399
399
  } finally {
400
400
  l.value = !1;
401
401
  }
402
402
  else
403
- l.value = !0, d.value = "", S ? (u.value = (R = f.value) == null ? void 0 : R.filter((v) => {
403
+ l.value = !0, d.value = "", A ? (u.value = (R = f.value) == null ? void 0 : R.filter((b) => {
404
404
  var k;
405
405
  let N = !1;
406
406
  for (const L of a.searchKeys) {
407
- const _ = typeof v[L] == "string" ? (k = v[L]) == null ? void 0 : k.toLowerCase() : v[L];
408
- _ != null && _.includes(S.toLowerCase()) && (N = !0);
407
+ const S = typeof b[L] == "string" ? (k = b[L]) == null ? void 0 : k.toLowerCase() : b[L];
408
+ S != null && S.includes(A.toLowerCase()) && (N = !0);
409
409
  }
410
410
  return N;
411
411
  }), (!u.value || !u.value.length) && (d.value = o("debouncedFilter.errors.invalid"))) : u.value = f.value, l.value = !1;
@@ -416,17 +416,17 @@ function Na(e, n, t, a = {
416
416
  validationError: d,
417
417
  results: u,
418
418
  allRecords: f,
419
- loadItems: A,
419
+ loadItems: _,
420
420
  debouncedQueryChange: s
421
421
  };
422
422
  }
423
- function Ba(e, n) {
423
+ function La(e, n) {
424
424
  const t = g(n), a = O(
425
425
  () => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${t}`) : new URL(t)
426
426
  );
427
427
  return a.value.search = "", (r) => `${a.value.href}/${r}`;
428
428
  }
429
- function La() {
429
+ function Pa() {
430
430
  const { i18n: { t: e } } = vt();
431
431
  return {
432
432
  getMessageFromError: (n) => {
@@ -454,7 +454,7 @@ function La() {
454
454
  }
455
455
  };
456
456
  }
457
- function Pa(e) {
457
+ function qa(e) {
458
458
  const n = window.location.origin, t = n.endsWith("/") ? n : `${n}/`;
459
459
  try {
460
460
  const a = e.join("/"), r = `${t}${a}`, o = e.some((i) => i.trim() === "");
@@ -466,7 +466,7 @@ function Pa(e) {
466
466
  }
467
467
  }
468
468
  function un(e, n) {
469
- const t = E(g(e)), a = E(g(n)), r = O(
469
+ const t = K(g(e)), a = K(g(n)), r = O(
470
470
  () => !!(t.value.app === "konnect" || t.value.isExactMatch)
471
471
  ), o = O(
472
472
  () => a.value.startsWith("/") ? new URL(`${window.location.origin}${a.value}`) : new URL(a.value)
@@ -475,18 +475,18 @@ function un(e, n) {
475
475
  const { page: s, pageSize: l, offset: c, sortColumnKey: d, sortColumnOrder: u, query: y } = i;
476
476
  try {
477
477
  let f = new URL(o.value.href);
478
- return r.value && y ? (f.search = "", f = new URL(`${f.href}/${y}/`)) : (r.value || new URLSearchParams(y).forEach((I, b) => {
479
- f.searchParams.append(b, I);
478
+ return r.value && y ? (f.search = "", f = new URL(`${f.href}/${y}/`)) : (r.value || new URLSearchParams(y).forEach((I, v) => {
479
+ f.searchParams.append(v, I);
480
480
  }), d && f.searchParams.append("sort_by", d), u === "desc" && f.searchParams.append("sort_desc", "1"), f.searchParams.append("size", String(l))), c && s !== 1 && f.searchParams.append("offset", String(c)), f.href;
481
481
  } catch (f) {
482
482
  return console.error("RouteList(fetcher)", f), a.value;
483
483
  }
484
484
  };
485
485
  }
486
- function qa(e, n, t = "data") {
486
+ function Ua(e, n, t = "data") {
487
487
  const a = g(n), { axiosInstance: r } = ht({
488
488
  headers: e.requestHeaders
489
- }), o = un(e, a), i = E({
489
+ }), o = un(e, a), i = K({
490
490
  status: _e.Idle
491
491
  });
492
492
  return { fetcher: async (s) => {
@@ -525,7 +525,7 @@ function qa(e, n, t = "data") {
525
525
  }
526
526
  }, fetcherState: i };
527
527
  }
528
- function Ua() {
528
+ function Ra() {
529
529
  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;
530
530
  return {
531
531
  capitalize: (t) => t ? t.replace(n, (a) => a.toUpperCase()) : "",
@@ -542,24 +542,24 @@ const cn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
542
542
  }, Bt = (e) => e === "*" || e === "x" || e === "X", Lt = (e) => {
543
543
  const n = parseInt(e, 10);
544
544
  return isNaN(n) ? e : n;
545
- }, Ra = (e, n) => typeof e != typeof n ? [String(e), String(n)] : [e, n], Va = (e, n) => {
545
+ }, Va = (e, n) => typeof e != typeof n ? [String(e), String(n)] : [e, n], Da = (e, n) => {
546
546
  if (Bt(e) || Bt(n))
547
547
  return 0;
548
- const [t, a] = Ra(Lt(e), Lt(n));
548
+ const [t, a] = Va(Lt(e), Lt(n));
549
549
  return t > a ? 1 : t < a ? -1 : 0;
550
550
  }, Pt = (e, n) => {
551
551
  for (let t = 0; t < Math.max(e.length, n.length); t++) {
552
- const a = Va(e[t] || "0", n[t] || "0");
552
+ const a = Da(e[t] || "0", n[t] || "0");
553
553
  if (a !== 0)
554
554
  return a;
555
555
  }
556
556
  return 0;
557
- }, Da = (e, n) => {
557
+ }, Ga = (e, n) => {
558
558
  const t = Nt(e), a = Nt(n), r = t.pop(), o = a.pop(), i = Pt(t, a);
559
559
  return i !== 0 ? i : r && o ? Pt(r.split("."), o.split(".")) : r || o ? r ? -1 : 1 : 0;
560
560
  }, qt = (e, n, t) => {
561
- Ga(t);
562
- const a = Da(e, n);
561
+ za(t);
562
+ const a = Ga(e, n);
563
563
  return dn[t].includes(a);
564
564
  }, dn = {
565
565
  ">": [1],
@@ -568,18 +568,18 @@ const cn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
568
568
  "<=": [-1, 0],
569
569
  "<": [-1],
570
570
  "!=": [-1, 1]
571
- }, Ut = Object.keys(dn), Ga = (e) => {
571
+ }, Ut = Object.keys(dn), za = (e) => {
572
572
  if (typeof e != "string")
573
573
  throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
574
574
  if (Ut.indexOf(e) === -1)
575
575
  throw new Error(`Invalid operator, expected one of ${Ut.join("|")}`);
576
- }, za = (e) => typeof e == "string" && /^[v\d]/.test(e) && cn.test(e);
577
- function Ha(e) {
576
+ }, Ha = (e) => typeof e == "string" && /^[v\d]/.test(e) && cn.test(e);
577
+ function Ja(e) {
578
578
  const { gatewayInfo: n, supportedRange: t } = e;
579
579
  if (!n)
580
580
  return !0;
581
581
  const { edition: a, version: r } = n;
582
- if (!za(r))
582
+ if (!Ha(r))
583
583
  return console.error("Invalid version"), !1;
584
584
  const o = t[a];
585
585
  if (!o)
@@ -587,16 +587,16 @@ function Ha(e) {
587
587
  const [i, s] = o;
588
588
  return !(i && qt(r, i, "<") || s && qt(r, s, ">"));
589
589
  }
590
- function Ja(e) {
591
- const n = E(0), t = E(0), a = E(!1);
590
+ function Wa(e) {
591
+ const n = K(0), t = K(0), a = K(!1);
592
592
  return ve(e, (r) => {
593
593
  r && !a.value && (n.value = r.offsetWidth, t.value = r.scrollWidth, a.value = !0);
594
594
  }), {
595
595
  isTruncated: O(() => n.value < t.value)
596
596
  };
597
597
  }
598
- const Wa = new va();
599
- function Ya() {
598
+ const Ya = new ba();
599
+ function Za() {
600
600
  return {
601
601
  notify: async (e) => {
602
602
  const n = {
@@ -604,7 +604,7 @@ function Ya() {
604
604
  message: "Success",
605
605
  timeoutMilliseconds: 3e3
606
606
  };
607
- Wa.open({
607
+ Ya.open({
608
608
  ...n,
609
609
  ...e
610
610
  });
@@ -613,28 +613,28 @@ function Ya() {
613
613
  }
614
614
  const re = {
615
615
  useAxios: ht,
616
- useDebouncedFilter: Na,
617
- useDeleteUrlBuilder: Ba,
618
- useErrors: La,
619
- useExternalLinkCreator: Pa,
620
- useFetcher: qa,
616
+ useDebouncedFilter: Ba,
617
+ useDeleteUrlBuilder: La,
618
+ useErrors: Pa,
619
+ useExternalLinkCreator: qa,
620
+ useFetcher: Ua,
621
621
  useFetchUrlBuilder: un,
622
622
  useHelpers: ln,
623
- useStringHelpers: Ua,
623
+ useStringHelpers: Ra,
624
624
  useI18n: vt,
625
- useGatewayFeatureSupported: Ha,
626
- useTruncationDetector: Ja,
627
- useToaster: Ya
628
- }, Za = {
625
+ useGatewayFeatureSupported: Ja,
626
+ useTruncationDetector: Wa,
627
+ useToaster: Za
628
+ }, Xa = {
629
629
  fail: "Failed to copy id to clipboard",
630
630
  success: {
631
631
  prefix: "Successfully",
632
632
  content: " copied to clipboard"
633
633
  }
634
- }, Xa = "Copy to clipboard", Qa = {
635
- message: Za,
636
- iconTitle: Xa
637
- }, er = "kong-ui-copy-uuid-notify", tr = { class: "kong-ui-copy-uuid" }, nr = ["onClick"], Rt = 15, ar = /* @__PURE__ */ te({
634
+ }, Qa = "Copy to clipboard", er = {
635
+ message: Xa,
636
+ iconTitle: Qa
637
+ }, tr = "kong-ui-copy-uuid-notify", nr = { class: "kong-ui-copy-uuid" }, ar = ["onClick"], Rt = 15, rr = /* @__PURE__ */ te({
638
638
  __name: "CopyUuid",
639
639
  props: {
640
640
  uuid: {
@@ -678,14 +678,14 @@ const re = {
678
678
  },
679
679
  emits: ["success", "error"],
680
680
  setup(e, { emit: n }) {
681
- const t = e, { t: a } = yt("en-us", Qa), r = t.notify || ma(er, () => {
681
+ const t = e, { t: a } = yt("en-us", er), r = t.notify || ga(tr, () => {
682
682
  }), o = O(() => t.idTooltip ? {
683
683
  label: t.idTooltip,
684
684
  positionFixed: !0,
685
685
  placement: "bottomStart"
686
686
  } : {
687
687
  title: t.uuid
688
- }), i = O(() => !!(t.tooltip && t.successTooltip)), s = E(t.tooltip), l = O(() => t.tooltip ? {
688
+ }), i = O(() => !!(t.tooltip && t.successTooltip)), s = K(t.tooltip), l = O(() => t.tooltip ? {
689
689
  label: s.value,
690
690
  positionFixed: !0,
691
691
  maxWidth: "500px",
@@ -706,16 +706,16 @@ const re = {
706
706
  }), i.value ? d(a("message.fail")) : n("error", t.uuid);
707
707
  return;
708
708
  }
709
- const b = ((f = t.uuid) == null ? void 0 : f.length) > Rt, p = t.format === "hidden" || t.format === "redacted" ? a("message.success.prefix") : `"${((I = t.uuid) == null ? void 0 : I.substring(0, Rt)) + (b ? "..." : "")}"`;
709
+ const v = ((f = t.uuid) == null ? void 0 : f.length) > Rt, p = t.format === "hidden" || t.format === "redacted" ? a("message.success.prefix") : `"${((I = t.uuid) == null ? void 0 : I.substring(0, Rt)) + (v ? "..." : "")}"`;
710
710
  typeof r == "function" && r({
711
711
  type: "success",
712
712
  message: `${p}${a("message.success.content")}`
713
713
  }), i.value ? d(t.successTooltip) : n("success", t.uuid);
714
714
  };
715
715
  return (y, f) => {
716
- const I = U("KIcon"), b = U("KClipboardProvider");
717
- return m(), j("div", tr, [
718
- e.format !== "hidden" ? (m(), V(Be(e.idTooltip ? "KTooltip" : "div"), lt({ key: 0 }, o.value, { "data-testid": "copy-id" }), {
716
+ const I = q("KIcon"), v = q("KClipboardProvider");
717
+ return m(), j("div", nr, [
718
+ e.format !== "hidden" ? (m(), D(Be(e.idTooltip ? "KTooltip" : "div"), lt({ key: 0 }, o.value, { "data-testid": "copy-id" }), {
719
719
  default: h(() => [
720
720
  B("div", {
721
721
  class: Ae([
@@ -727,17 +727,17 @@ const re = {
727
727
  ]),
728
728
  _: 1
729
729
  }, 16)) : G("", !0),
730
- (m(), V(Be(e.tooltip ? "KTooltip" : "div"), lt(l.value, { class: "uuid-icon-wrapper" }), {
730
+ (m(), D(Be(e.tooltip ? "KTooltip" : "div"), lt(l.value, { class: "uuid-icon-wrapper" }), {
731
731
  default: h(() => [
732
- K(b, null, {
732
+ F(v, null, {
733
733
  default: h(({ copyToClipboard: p }) => [
734
734
  B("span", {
735
735
  "data-testid": "copy-to-clipboard",
736
736
  role: "button",
737
737
  tabindex: "0",
738
- onClick: Ge((A) => u(p), ["stop"])
738
+ onClick: Ge((_) => u(p), ["stop"])
739
739
  }, [
740
- K(I, {
740
+ F(I, {
741
741
  class: "uuid-icon",
742
742
  color: e.iconColor,
743
743
  "hide-title": !!e.tooltip || void 0,
@@ -745,7 +745,7 @@ const re = {
745
745
  size: "16",
746
746
  title: g(a)("iconTitle")
747
747
  }, null, 8, ["color", "hide-title", "title"])
748
- ], 8, nr)
748
+ ], 8, ar)
749
749
  ]),
750
750
  _: 1
751
751
  })
@@ -755,15 +755,15 @@ const re = {
755
755
  ]);
756
756
  };
757
757
  }
758
- }), rr = (e, n) => {
758
+ }), or = (e, n) => {
759
759
  const t = e.__vccOpts || e;
760
760
  for (const [a, r] of n)
761
761
  t[a] = r;
762
762
  return t;
763
- }, pn = /* @__PURE__ */ rr(ar, [["__scopeId", "data-v-a2ebe0bb"]]), or = {
763
+ }, pn = /* @__PURE__ */ or(rr, [["__scopeId", "data-v-a2ebe0bb"]]), ir = {
764
764
  key: 0,
765
765
  class: "config-card-fieldset-title"
766
- }, ir = /* @__PURE__ */ te({
766
+ }, sr = /* @__PURE__ */ te({
767
767
  __name: "JsonCardItem",
768
768
  props: {
769
769
  item: {
@@ -787,14 +787,14 @@ const re = {
787
787
  var l;
788
788
  return n.isArrayItem ? (l = o.value) != null && l.name ? a(o.value.name, "_") : t("baseConfigCard.general.entryTitle", { index: n.index }) : "";
789
789
  });
790
- return (l, c) => (m(), V(Be(e.isArrayItem ? "fieldset" : "div"), {
790
+ return (l, c) => (m(), D(Be(e.isArrayItem ? "fieldset" : "div"), {
791
791
  class: Ae(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
792
792
  }, {
793
793
  default: h(() => [
794
- e.isArrayItem ? (m(), j("legend", or, [
794
+ e.isArrayItem ? (m(), j("legend", ir, [
795
795
  B("b", null, M(s.value), 1)
796
796
  ])) : G("", !0),
797
- (m(!0), j(pe, null, ce(Object.keys(i.value), (d, u) => (m(), V(bt, {
797
+ (m(!0), j(pe, null, ce(Object.keys(i.value), (d, u) => (m(), D(bt, {
798
798
  key: `${r.value}-property-${u}`,
799
799
  item: {
800
800
  key: d,
@@ -811,7 +811,7 @@ const re = {
811
811
  for (const [a, r] of n)
812
812
  t[a] = r;
813
813
  return t;
814
- }, fn = /* @__PURE__ */ me(ir, [["__scopeId", "data-v-68ca83ec"]]), sr = /* @__PURE__ */ te({
814
+ }, fn = /* @__PURE__ */ me(sr, [["__scopeId", "data-v-68ca83ec"]]), lr = /* @__PURE__ */ te({
815
815
  __name: "InternalLinkItem",
816
816
  props: {
817
817
  item: {
@@ -823,9 +823,9 @@ const re = {
823
823
  setup(e) {
824
824
  const { i18n: { t: n } } = re.useI18n();
825
825
  return (t, a) => {
826
- const r = U("KButton");
826
+ const r = q("KButton");
827
827
  return m(), j("div", null, [
828
- K(r, {
828
+ F(r, {
829
829
  appearance: "btn-link",
830
830
  class: "navigation-button",
831
831
  onClick: a[0] || (a[0] = (o) => t.$emit("navigation-click", e.item))
@@ -838,7 +838,7 @@ const re = {
838
838
  ]);
839
839
  };
840
840
  }
841
- }), lr = /* @__PURE__ */ me(sr, [["__scopeId", "data-v-7410504d"]]), ur = /* @__PURE__ */ te({
841
+ }), ur = /* @__PURE__ */ me(lr, [["__scopeId", "data-v-7410504d"]]), cr = /* @__PURE__ */ te({
842
842
  __name: "StatusBadge",
843
843
  props: {
844
844
  status: {
@@ -849,8 +849,8 @@ const re = {
849
849
  setup(e) {
850
850
  const { i18n: { t: n } } = re.useI18n();
851
851
  return (t, a) => {
852
- const r = U("KBadge");
853
- return m(), V(r, {
852
+ const r = q("KBadge");
853
+ return m(), D(r, {
854
854
  appearance: e.status ? "success" : "neutral"
855
855
  }, {
856
856
  default: h(() => [
@@ -860,11 +860,11 @@ const re = {
860
860
  }, 8, ["appearance"]);
861
861
  };
862
862
  }
863
- }), cr = "#0044f4", dr = "#e0e4ea", pr = "#3a3f51", fr = "1px", mr = "20px", gr = { class: "config-card-details-row" }, yr = ["data-testid"], hr = ["data-testid"], vr = ["data-testid"], br = ["data-testid"], kr = { key: 1 }, Cr = ["data-testid"], wr = ["data-testid"], _r = ["data-testid"], Ir = ["data-testid"], Ar = {
863
+ }), dr = "#0044f4", pr = "#e0e4ea", fr = "#3a3f51", mr = "1px", gr = "20px", yr = { class: "config-card-details-row" }, hr = ["data-testid"], vr = ["data-testid"], br = ["data-testid"], kr = ["data-testid"], Cr = { key: 1 }, wr = ["data-testid"], _r = ["data-testid"], Ir = ["data-testid"], Ar = ["data-testid"], Sr = {
864
864
  name: "ConfigCardItem",
865
- components: { CopyUuid: pn, JsonCardItem: fn, StatusBadge: ur, InternalLinkItem: lr }
866
- }, Sr = /* @__PURE__ */ te({
867
- ...Ar,
865
+ components: { CopyUuid: pn, JsonCardItem: fn, StatusBadge: cr, InternalLinkItem: ur }
866
+ }, xr = /* @__PURE__ */ te({
867
+ ...Sr,
868
868
  props: {
869
869
  item: {
870
870
  type: Object,
@@ -884,8 +884,8 @@ const re = {
884
884
  emits: ["navigation-click"],
885
885
  setup(e, { emit: n }) {
886
886
  const t = e;
887
- la((f) => ({
888
- "1df60db4": c.value ? "none" : `solid ${g(fr)} ${g(dr)}`,
887
+ ua((f) => ({
888
+ "1df60db4": c.value ? "none" : `solid ${g(mr)} ${g(pr)}`,
889
889
  "21d1d34e": l.value && i.value ? "block" : "flex",
890
890
  "4d3dc7e7": l.value && i.value ? "100%" : t.slim ? "50%" : "25%",
891
891
  "4d400dc2": l.value && i.value ? "100%" : t.slim ? "50%" : "75%"
@@ -1016,16 +1016,16 @@ const re = {
1016
1016
  text: t.item.value
1017
1017
  };
1018
1018
  }
1019
- }), u = E(), { isTruncated: y } = re.useTruncationDetector(u);
1019
+ }), u = K(), { isTruncated: y } = re.useTruncationDetector(u);
1020
1020
  return (f, I) => {
1021
- const b = U("KLabel"), p = U("KBadge"), A = U("KMethodBadge"), w = U("KTooltip");
1022
- return m(), j("div", gr, [
1021
+ const v = q("KLabel"), p = q("KBadge"), _ = q("KMethodBadge"), w = q("KTooltip");
1022
+ return m(), j("div", yr, [
1023
1023
  B("div", {
1024
1024
  class: "config-card-details-label",
1025
1025
  "data-testid": `${e.item.key}-label`
1026
1026
  }, [
1027
1027
  W(f.$slots, "label", { item: e.item }, () => [
1028
- K(b, { "tooltip-attributes": { maxWidth: "500px" } }, be({
1028
+ F(v, { "tooltip-attributes": { maxWidth: "500px" } }, be({
1029
1029
  default: h(() => [
1030
1030
  Y(M(e.item.label) + " ", 1)
1031
1031
  ]),
@@ -1040,13 +1040,13 @@ const re = {
1040
1040
  W(f.$slots, "label-tooltip", {}, () => [
1041
1041
  Y(M(e.item.tooltip), 1)
1042
1042
  ], !0)
1043
- ], 8, hr)
1043
+ ], 8, vr)
1044
1044
  ]),
1045
1045
  key: "0"
1046
1046
  } : void 0
1047
1047
  ]), 1024)
1048
1048
  ], !0)
1049
- ], 8, yr),
1049
+ ], 8, hr),
1050
1050
  B("div", {
1051
1051
  class: "config-card-details-value",
1052
1052
  "data-testid": `${e.item.key}-property-value`
@@ -1054,17 +1054,17 @@ const re = {
1054
1054
  W(f.$slots, e.item.key, {
1055
1055
  rowValue: e.item.value
1056
1056
  }, () => [
1057
- i.value ? (m(), j("div", kr, [
1058
- (m(), V(Be(d.value.tag), ua(ca(d.value.attrs)), {
1057
+ i.value ? (m(), j("div", Cr, [
1058
+ (m(), D(Be(d.value.tag), ca(da(d.value.attrs)), {
1059
1059
  default: h(() => [
1060
1060
  d.value.additionalComponent === "KBadge" ? (m(), j("div", {
1061
1061
  key: 0,
1062
1062
  "data-testid": `${e.item.key}-badge-tags`
1063
1063
  }, [
1064
- (m(!0), j(pe, null, ce(e.item.value, (C, S) => (m(), V(p, {
1065
- key: `${e.item.key}-badge-tag-${S}`,
1064
+ (m(!0), j(pe, null, ce(e.item.value, (C, A) => (m(), D(p, {
1065
+ key: `${e.item.key}-badge-tag-${A}`,
1066
1066
  class: "config-badge",
1067
- "data-testid": `${e.item.key}-badge-tag-${S}`,
1067
+ "data-testid": `${e.item.key}-badge-tag-${A}`,
1068
1068
  "truncation-tooltip": C
1069
1069
  }, {
1070
1070
  default: h(() => [
@@ -1072,47 +1072,47 @@ const re = {
1072
1072
  ]),
1073
1073
  _: 2
1074
1074
  }, 1032, ["data-testid", "truncation-tooltip"]))), 128))
1075
- ], 8, Cr)) : G("", !0),
1075
+ ], 8, wr)) : G("", !0),
1076
1076
  d.value.additionalComponent === "CopyUuid" ? (m(), j("div", {
1077
1077
  key: 1,
1078
1078
  class: "copy-uuid-array",
1079
1079
  "data-testid": `${e.item.key}-copy-uuid-array`
1080
1080
  }, [
1081
- (m(!0), j(pe, null, ce(e.item.value, (C, S) => (m(), V(g(pn), lt(d.value.childAttrs, {
1082
- key: `${e.item.key}-copy-uuid-${S}`,
1083
- "data-testid": `${e.item.key}-copy-uuid-${S}`,
1081
+ (m(!0), j(pe, null, ce(e.item.value, (C, A) => (m(), D(g(pn), lt(d.value.childAttrs, {
1082
+ key: `${e.item.key}-copy-uuid-${A}`,
1083
+ "data-testid": `${e.item.key}-copy-uuid-${A}`,
1084
1084
  uuid: C
1085
1085
  }), null, 16, ["data-testid", "uuid"]))), 128))
1086
- ], 8, wr)) : d.value.additionalComponent === "KMethodBadge" ? (m(), j("div", {
1086
+ ], 8, _r)) : d.value.additionalComponent === "KMethodBadge" ? (m(), j("div", {
1087
1087
  key: 2,
1088
1088
  class: "method-badge-array",
1089
1089
  "data-testid": `${e.item.key}-badge-methods`
1090
1090
  }, [
1091
- (m(!0), j(pe, null, ce(e.item.value, (C, S) => (m(), V(A, {
1092
- key: `${e.item.key}-badge-method-${S}`,
1091
+ (m(!0), j(pe, null, ce(e.item.value, (C, A) => (m(), D(_, {
1092
+ key: `${e.item.key}-badge-method-${A}`,
1093
1093
  class: "config-badge",
1094
- "data-testid": `${e.item.key}-badge-method-${S}`,
1094
+ "data-testid": `${e.item.key}-badge-method-${A}`,
1095
1095
  "is-rounded": "",
1096
1096
  label: C,
1097
- method: g(ba).includes(C.toLowerCase()) ? C.toLowerCase() : "custom"
1097
+ method: g(ka).includes(C.toLowerCase()) ? C.toLowerCase() : "custom"
1098
1098
  }, {
1099
1099
  default: h(() => [
1100
1100
  Y(M(C), 1)
1101
1101
  ]),
1102
1102
  _: 2
1103
1103
  }, 1032, ["data-testid", "label", "method"]))), 128))
1104
- ], 8, _r)) : G("", !0),
1104
+ ], 8, Ir)) : G("", !0),
1105
1105
  d.value.additionalComponent === "JsonCardItem" ? (m(), j("div", {
1106
1106
  key: 3,
1107
1107
  "data-testid": `${t.item.key}-json-array-content`
1108
1108
  }, [
1109
- (m(!0), j(pe, null, ce(e.item.value, (C, S) => (m(), V(fn, {
1110
- key: `json-array-item-${S}`,
1111
- index: S,
1109
+ (m(!0), j(pe, null, ce(e.item.value, (C, A) => (m(), D(fn, {
1110
+ key: `json-array-item-${A}`,
1111
+ index: A,
1112
1112
  "is-array-item": "",
1113
1113
  item: C
1114
1114
  }, null, 8, ["index", "item"]))), 128))
1115
- ], 8, Ir)) : (m(), V(w, {
1115
+ ], 8, Ar)) : (m(), D(w, {
1116
1116
  key: 4,
1117
1117
  label: g(y) ? e.item.value : ""
1118
1118
  }, {
@@ -1131,46 +1131,46 @@ const re = {
1131
1131
  ])) : (m(), j("div", {
1132
1132
  key: 0,
1133
1133
  "data-testid": `${e.item.key}-no-value`
1134
- }, " – ", 8, br))
1134
+ }, " – ", 8, kr))
1135
1135
  ], !0)
1136
- ], 8, vr)
1136
+ ], 8, br)
1137
1137
  ]);
1138
1138
  };
1139
1139
  }
1140
- }), bt = /* @__PURE__ */ me(Sr, [["__scopeId", "data-v-307ab96d"]]);
1140
+ }), bt = /* @__PURE__ */ me(xr, [["__scopeId", "data-v-307ab96d"]]);
1141
1141
  /*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
1142
1142
  function mn(e) {
1143
1143
  return typeof e > "u" || e === null;
1144
1144
  }
1145
- function xr(e) {
1145
+ function Tr(e) {
1146
1146
  return typeof e == "object" && e !== null;
1147
1147
  }
1148
- function Tr(e) {
1148
+ function $r(e) {
1149
1149
  return Array.isArray(e) ? e : mn(e) ? [] : [e];
1150
1150
  }
1151
- function $r(e, n) {
1151
+ function jr(e, n) {
1152
1152
  var t, a, r, o;
1153
1153
  if (n)
1154
1154
  for (o = Object.keys(n), t = 0, a = o.length; t < a; t += 1)
1155
1155
  r = o[t], e[r] = n[r];
1156
1156
  return e;
1157
1157
  }
1158
- function jr(e, n) {
1158
+ function Mr(e, n) {
1159
1159
  var t = "", a;
1160
1160
  for (a = 0; a < n; a += 1)
1161
1161
  t += e;
1162
1162
  return t;
1163
1163
  }
1164
- function Mr(e) {
1164
+ function Or(e) {
1165
1165
  return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
1166
1166
  }
1167
- var Or = mn, Er = xr, Kr = Tr, Fr = jr, Nr = Mr, Br = $r, ne = {
1168
- isNothing: Or,
1169
- isObject: Er,
1170
- toArray: Kr,
1171
- repeat: Fr,
1172
- isNegativeZero: Nr,
1173
- extend: Br
1167
+ var Er = mn, Kr = Tr, Fr = $r, Nr = Mr, Br = Or, Lr = jr, ne = {
1168
+ isNothing: Er,
1169
+ isObject: Kr,
1170
+ toArray: Fr,
1171
+ repeat: Nr,
1172
+ isNegativeZero: Br,
1173
+ extend: Lr
1174
1174
  };
1175
1175
  function gn(e, n) {
1176
1176
  var t = "", a = e.reason || "(unknown reason)";
@@ -1198,7 +1198,7 @@ function ot(e, n, t, a, r) {
1198
1198
  function it(e, n) {
1199
1199
  return ne.repeat(" ", n - e.length) + e;
1200
1200
  }
1201
- function Lr(e, n) {
1201
+ function Pr(e, n) {
1202
1202
  if (n = Object.create(n || null), !e.buffer)
1203
1203
  return null;
1204
1204
  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);
@@ -1228,7 +1228,7 @@ function Lr(e, n) {
1228
1228
  `;
1229
1229
  return s.replace(/\n$/, "");
1230
1230
  }
1231
- var Pr = Lr, qr = [
1231
+ var qr = Pr, Ur = [
1232
1232
  "kind",
1233
1233
  "multi",
1234
1234
  "resolve",
@@ -1239,12 +1239,12 @@ var Pr = Lr, qr = [
1239
1239
  "representName",
1240
1240
  "defaultStyle",
1241
1241
  "styleAliases"
1242
- ], Ur = [
1242
+ ], Rr = [
1243
1243
  "scalar",
1244
1244
  "sequence",
1245
1245
  "mapping"
1246
1246
  ];
1247
- function Rr(e) {
1247
+ function Vr(e) {
1248
1248
  var n = {};
1249
1249
  return e !== null && Object.keys(e).forEach(function(t) {
1250
1250
  e[t].forEach(function(a) {
@@ -1252,18 +1252,18 @@ function Rr(e) {
1252
1252
  });
1253
1253
  }), n;
1254
1254
  }
1255
- function Vr(e, n) {
1255
+ function Dr(e, n) {
1256
1256
  if (n = n || {}, Object.keys(n).forEach(function(t) {
1257
- if (qr.indexOf(t) === -1)
1257
+ if (Ur.indexOf(t) === -1)
1258
1258
  throw new se('Unknown option "' + t + '" is met in definition of "' + e + '" YAML type.');
1259
1259
  }), this.options = n, this.tag = e, this.kind = n.kind || null, this.resolve = n.resolve || function() {
1260
1260
  return !0;
1261
1261
  }, this.construct = n.construct || function(t) {
1262
1262
  return t;
1263
- }, 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 = Rr(n.styleAliases || null), Ur.indexOf(this.kind) === -1)
1263
+ }, 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 = Vr(n.styleAliases || null), Rr.indexOf(this.kind) === -1)
1264
1264
  throw new se('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
1265
1265
  }
1266
- var oe = Vr;
1266
+ var oe = Dr;
1267
1267
  function Vt(e, n) {
1268
1268
  var t = [];
1269
1269
  return e[n].forEach(function(a) {
@@ -1273,7 +1273,7 @@ function Vt(e, n) {
1273
1273
  }), t[r] = a;
1274
1274
  }), t;
1275
1275
  }
1276
- function Dr() {
1276
+ function Gr() {
1277
1277
  var e = {
1278
1278
  scalar: {},
1279
1279
  sequence: {},
@@ -1318,7 +1318,7 @@ ct.prototype.extend = function(e) {
1318
1318
  throw new se("Specified list of YAML types (or a single Type object) contains a non-Type object.");
1319
1319
  });
1320
1320
  var a = Object.create(ct.prototype);
1321
- return a.implicit = (this.implicit || []).concat(n), a.explicit = (this.explicit || []).concat(t), a.compiledImplicit = Vt(a, "implicit"), a.compiledExplicit = Vt(a, "explicit"), a.compiledTypeMap = Dr(a.compiledImplicit, a.compiledExplicit), a;
1321
+ return a.implicit = (this.implicit || []).concat(n), a.explicit = (this.explicit || []).concat(t), a.compiledImplicit = Vt(a, "implicit"), a.compiledExplicit = Vt(a, "explicit"), a.compiledTypeMap = Gr(a.compiledImplicit, a.compiledExplicit), a;
1322
1322
  };
1323
1323
  var yn = ct, hn = new oe("tag:yaml.org,2002:str", {
1324
1324
  kind: "scalar",
@@ -1342,23 +1342,23 @@ var yn = ct, hn = new oe("tag:yaml.org,2002:str", {
1342
1342
  bn
1343
1343
  ]
1344
1344
  });
1345
- function Gr(e) {
1345
+ function zr(e) {
1346
1346
  if (e === null)
1347
1347
  return !0;
1348
1348
  var n = e.length;
1349
1349
  return n === 1 && e === "~" || n === 4 && (e === "null" || e === "Null" || e === "NULL");
1350
1350
  }
1351
- function zr() {
1351
+ function Hr() {
1352
1352
  return null;
1353
1353
  }
1354
- function Hr(e) {
1354
+ function Jr(e) {
1355
1355
  return e === null;
1356
1356
  }
1357
1357
  var Cn = new oe("tag:yaml.org,2002:null", {
1358
1358
  kind: "scalar",
1359
- resolve: Gr,
1360
- construct: zr,
1361
- predicate: Hr,
1359
+ resolve: zr,
1360
+ construct: Hr,
1361
+ predicate: Jr,
1362
1362
  represent: {
1363
1363
  canonical: function() {
1364
1364
  return "~";
@@ -1378,23 +1378,23 @@ var Cn = new oe("tag:yaml.org,2002:null", {
1378
1378
  },
1379
1379
  defaultStyle: "lowercase"
1380
1380
  });
1381
- function Jr(e) {
1381
+ function Wr(e) {
1382
1382
  if (e === null)
1383
1383
  return !1;
1384
1384
  var n = e.length;
1385
1385
  return n === 4 && (e === "true" || e === "True" || e === "TRUE") || n === 5 && (e === "false" || e === "False" || e === "FALSE");
1386
1386
  }
1387
- function Wr(e) {
1387
+ function Yr(e) {
1388
1388
  return e === "true" || e === "True" || e === "TRUE";
1389
1389
  }
1390
- function Yr(e) {
1390
+ function Zr(e) {
1391
1391
  return Object.prototype.toString.call(e) === "[object Boolean]";
1392
1392
  }
1393
1393
  var wn = new oe("tag:yaml.org,2002:bool", {
1394
1394
  kind: "scalar",
1395
- resolve: Jr,
1396
- construct: Wr,
1397
- predicate: Yr,
1395
+ resolve: Wr,
1396
+ construct: Yr,
1397
+ predicate: Zr,
1398
1398
  represent: {
1399
1399
  lowercase: function(e) {
1400
1400
  return e ? "true" : "false";
@@ -1408,16 +1408,16 @@ var wn = new oe("tag:yaml.org,2002:bool", {
1408
1408
  },
1409
1409
  defaultStyle: "lowercase"
1410
1410
  });
1411
- function Zr(e) {
1411
+ function Xr(e) {
1412
1412
  return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
1413
1413
  }
1414
- function Xr(e) {
1414
+ function Qr(e) {
1415
1415
  return 48 <= e && e <= 55;
1416
1416
  }
1417
- function Qr(e) {
1417
+ function eo(e) {
1418
1418
  return 48 <= e && e <= 57;
1419
1419
  }
1420
- function eo(e) {
1420
+ function to(e) {
1421
1421
  if (e === null)
1422
1422
  return !1;
1423
1423
  var n = e.length, t = 0, a = !1, r;
@@ -1438,7 +1438,7 @@ function eo(e) {
1438
1438
  if (r === "x") {
1439
1439
  for (t++; t < n; t++)
1440
1440
  if (r = e[t], r !== "_") {
1441
- if (!Zr(e.charCodeAt(t)))
1441
+ if (!Xr(e.charCodeAt(t)))
1442
1442
  return !1;
1443
1443
  a = !0;
1444
1444
  }
@@ -1447,7 +1447,7 @@ function eo(e) {
1447
1447
  if (r === "o") {
1448
1448
  for (t++; t < n; t++)
1449
1449
  if (r = e[t], r !== "_") {
1450
- if (!Xr(e.charCodeAt(t)))
1450
+ if (!Qr(e.charCodeAt(t)))
1451
1451
  return !1;
1452
1452
  a = !0;
1453
1453
  }
@@ -1458,13 +1458,13 @@ function eo(e) {
1458
1458
  return !1;
1459
1459
  for (; t < n; t++)
1460
1460
  if (r = e[t], r !== "_") {
1461
- if (!Qr(e.charCodeAt(t)))
1461
+ if (!eo(e.charCodeAt(t)))
1462
1462
  return !1;
1463
1463
  a = !0;
1464
1464
  }
1465
1465
  return !(!a || r === "_");
1466
1466
  }
1467
- function to(e) {
1467
+ function no(e) {
1468
1468
  var n = e, t = 1, a;
1469
1469
  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")
1470
1470
  return 0;
@@ -1478,14 +1478,14 @@ function to(e) {
1478
1478
  }
1479
1479
  return t * parseInt(n, 10);
1480
1480
  }
1481
- function no(e) {
1481
+ function ao(e) {
1482
1482
  return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !ne.isNegativeZero(e);
1483
1483
  }
1484
1484
  var _n = new oe("tag:yaml.org,2002:int", {
1485
1485
  kind: "scalar",
1486
- resolve: eo,
1487
- construct: to,
1488
- predicate: no,
1486
+ resolve: to,
1487
+ construct: no,
1488
+ predicate: ao,
1489
1489
  represent: {
1490
1490
  binary: function(e) {
1491
1491
  return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
@@ -1508,21 +1508,21 @@ var _n = new oe("tag:yaml.org,2002:int", {
1508
1508
  decimal: [10, "dec"],
1509
1509
  hexadecimal: [16, "hex"]
1510
1510
  }
1511
- }), ao = new RegExp(
1511
+ }), ro = new RegExp(
1512
1512
  // 2.5e4, 2.5 and integers
1513
1513
  "^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
1514
1514
  );
1515
- function ro(e) {
1516
- return !(e === null || !ao.test(e) || // Quick hack to not allow integers end with `_`
1515
+ function oo(e) {
1516
+ return !(e === null || !ro.test(e) || // Quick hack to not allow integers end with `_`
1517
1517
  // Probably should update regexp & check speed
1518
1518
  e[e.length - 1] === "_");
1519
1519
  }
1520
- function oo(e) {
1520
+ function io(e) {
1521
1521
  var n, t;
1522
1522
  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);
1523
1523
  }
1524
- var io = /^[-+]?[0-9]+e/;
1525
- function so(e, n) {
1524
+ var so = /^[-+]?[0-9]+e/;
1525
+ function lo(e, n) {
1526
1526
  var t;
1527
1527
  if (isNaN(e))
1528
1528
  switch (n) {
@@ -1553,17 +1553,17 @@ function so(e, n) {
1553
1553
  }
1554
1554
  else if (ne.isNegativeZero(e))
1555
1555
  return "-0.0";
1556
- return t = e.toString(10), io.test(t) ? t.replace("e", ".e") : t;
1556
+ return t = e.toString(10), so.test(t) ? t.replace("e", ".e") : t;
1557
1557
  }
1558
- function lo(e) {
1558
+ function uo(e) {
1559
1559
  return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || ne.isNegativeZero(e));
1560
1560
  }
1561
1561
  var In = new oe("tag:yaml.org,2002:float", {
1562
1562
  kind: "scalar",
1563
- resolve: ro,
1564
- construct: oo,
1565
- predicate: lo,
1566
- represent: so,
1563
+ resolve: oo,
1564
+ construct: io,
1565
+ predicate: uo,
1566
+ represent: lo,
1567
1567
  defaultStyle: "lowercase"
1568
1568
  }), An = kn.extend({
1569
1569
  implicit: [
@@ -1577,10 +1577,10 @@ var In = new oe("tag:yaml.org,2002:float", {
1577
1577
  ), Tn = new RegExp(
1578
1578
  "^([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]))?))?$"
1579
1579
  );
1580
- function uo(e) {
1580
+ function co(e) {
1581
1581
  return e === null ? !1 : xn.exec(e) !== null || Tn.exec(e) !== null;
1582
1582
  }
1583
- function co(e) {
1583
+ function po(e) {
1584
1584
  var n, t, a, r, o, i, s, l = 0, c = null, d, u, y;
1585
1585
  if (n = xn.exec(e), n === null && (n = Tn.exec(e)), n === null)
1586
1586
  throw new Error("Date resolve error");
@@ -1593,25 +1593,25 @@ function co(e) {
1593
1593
  }
1594
1594
  return n[9] && (d = +n[10], u = +(n[11] || 0), c = (d * 60 + u) * 6e4, n[9] === "-" && (c = -c)), y = new Date(Date.UTC(t, a, r, o, i, s, l)), c && y.setTime(y.getTime() - c), y;
1595
1595
  }
1596
- function po(e) {
1596
+ function fo(e) {
1597
1597
  return e.toISOString();
1598
1598
  }
1599
1599
  var $n = new oe("tag:yaml.org,2002:timestamp", {
1600
1600
  kind: "scalar",
1601
- resolve: uo,
1602
- construct: co,
1601
+ resolve: co,
1602
+ construct: po,
1603
1603
  instanceOf: Date,
1604
- represent: po
1604
+ represent: fo
1605
1605
  });
1606
- function fo(e) {
1606
+ function mo(e) {
1607
1607
  return e === "<<" || e === null;
1608
1608
  }
1609
1609
  var jn = new oe("tag:yaml.org,2002:merge", {
1610
1610
  kind: "scalar",
1611
- resolve: fo
1611
+ resolve: mo
1612
1612
  }), kt = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
1613
1613
  \r`;
1614
- function mo(e) {
1614
+ function go(e) {
1615
1615
  if (e === null)
1616
1616
  return !1;
1617
1617
  var n, t, a = 0, r = e.length, o = kt;
@@ -1623,37 +1623,37 @@ function mo(e) {
1623
1623
  }
1624
1624
  return a % 8 === 0;
1625
1625
  }
1626
- function go(e) {
1626
+ function yo(e) {
1627
1627
  var n, t, a = e.replace(/[\r\n=]/g, ""), r = a.length, o = kt, i = 0, s = [];
1628
1628
  for (n = 0; n < r; n++)
1629
1629
  n % 4 === 0 && n && (s.push(i >> 16 & 255), s.push(i >> 8 & 255), s.push(i & 255)), i = i << 6 | o.indexOf(a.charAt(n));
1630
1630
  return t = r % 4 * 6, t === 0 ? (s.push(i >> 16 & 255), s.push(i >> 8 & 255), s.push(i & 255)) : t === 18 ? (s.push(i >> 10 & 255), s.push(i >> 2 & 255)) : t === 12 && s.push(i >> 4 & 255), new Uint8Array(s);
1631
1631
  }
1632
- function yo(e) {
1632
+ function ho(e) {
1633
1633
  var n = "", t = 0, a, r, o = e.length, i = kt;
1634
1634
  for (a = 0; a < o; a++)
1635
1635
  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];
1636
1636
  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;
1637
1637
  }
1638
- function ho(e) {
1638
+ function vo(e) {
1639
1639
  return Object.prototype.toString.call(e) === "[object Uint8Array]";
1640
1640
  }
1641
1641
  var Mn = new oe("tag:yaml.org,2002:binary", {
1642
1642
  kind: "scalar",
1643
- resolve: mo,
1644
- construct: go,
1645
- predicate: ho,
1646
- represent: yo
1647
- }), vo = Object.prototype.hasOwnProperty, bo = Object.prototype.toString;
1648
- function ko(e) {
1643
+ resolve: go,
1644
+ construct: yo,
1645
+ predicate: vo,
1646
+ represent: ho
1647
+ }), bo = Object.prototype.hasOwnProperty, ko = Object.prototype.toString;
1648
+ function Co(e) {
1649
1649
  if (e === null)
1650
1650
  return !0;
1651
1651
  var n = [], t, a, r, o, i, s = e;
1652
1652
  for (t = 0, a = s.length; t < a; t += 1) {
1653
- if (r = s[t], i = !1, bo.call(r) !== "[object Object]")
1653
+ if (r = s[t], i = !1, ko.call(r) !== "[object Object]")
1654
1654
  return !1;
1655
1655
  for (o in r)
1656
- if (vo.call(r, o))
1656
+ if (bo.call(r, o))
1657
1657
  if (!i)
1658
1658
  i = !0;
1659
1659
  else
@@ -1667,26 +1667,26 @@ function ko(e) {
1667
1667
  }
1668
1668
  return !0;
1669
1669
  }
1670
- function Co(e) {
1670
+ function wo(e) {
1671
1671
  return e !== null ? e : [];
1672
1672
  }
1673
1673
  var On = new oe("tag:yaml.org,2002:omap", {
1674
1674
  kind: "sequence",
1675
- resolve: ko,
1676
- construct: Co
1677
- }), wo = Object.prototype.toString;
1678
- function _o(e) {
1675
+ resolve: Co,
1676
+ construct: wo
1677
+ }), _o = Object.prototype.toString;
1678
+ function Io(e) {
1679
1679
  if (e === null)
1680
1680
  return !0;
1681
1681
  var n, t, a, r, o, i = e;
1682
1682
  for (o = new Array(i.length), n = 0, t = i.length; n < t; n += 1) {
1683
- if (a = i[n], wo.call(a) !== "[object Object]" || (r = Object.keys(a), r.length !== 1))
1683
+ if (a = i[n], _o.call(a) !== "[object Object]" || (r = Object.keys(a), r.length !== 1))
1684
1684
  return !1;
1685
1685
  o[n] = [r[0], a[r[0]]];
1686
1686
  }
1687
1687
  return !0;
1688
1688
  }
1689
- function Io(e) {
1689
+ function Ao(e) {
1690
1690
  if (e === null)
1691
1691
  return [];
1692
1692
  var n, t, a, r, o, i = e;
@@ -1696,25 +1696,25 @@ function Io(e) {
1696
1696
  }
1697
1697
  var En = new oe("tag:yaml.org,2002:pairs", {
1698
1698
  kind: "sequence",
1699
- resolve: _o,
1700
- construct: Io
1701
- }), Ao = Object.prototype.hasOwnProperty;
1702
- function So(e) {
1699
+ resolve: Io,
1700
+ construct: Ao
1701
+ }), So = Object.prototype.hasOwnProperty;
1702
+ function xo(e) {
1703
1703
  if (e === null)
1704
1704
  return !0;
1705
1705
  var n, t = e;
1706
1706
  for (n in t)
1707
- if (Ao.call(t, n) && t[n] !== null)
1707
+ if (So.call(t, n) && t[n] !== null)
1708
1708
  return !1;
1709
1709
  return !0;
1710
1710
  }
1711
- function xo(e) {
1711
+ function To(e) {
1712
1712
  return e !== null ? e : {};
1713
1713
  }
1714
1714
  var Kn = new oe("tag:yaml.org,2002:set", {
1715
1715
  kind: "mapping",
1716
- resolve: So,
1717
- construct: xo
1716
+ resolve: xo,
1717
+ construct: To
1718
1718
  }), Ct = Sn.extend({
1719
1719
  implicit: [
1720
1720
  $n,
@@ -1726,7 +1726,7 @@ var Kn = new oe("tag:yaml.org,2002:set", {
1726
1726
  En,
1727
1727
  Kn
1728
1728
  ]
1729
- }), Ce = Object.prototype.hasOwnProperty, ze = 1, Fn = 2, Nn = 3, He = 4, st = 1, To = 2, Dt = 3, $o = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, jo = /[\x85\u2028\u2029]/, Mo = /[,\[\]\{\}]/, Bn = /^(?:!|!!|![a-z\-]+!)$/i, Ln = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1729
+ }), Ce = Object.prototype.hasOwnProperty, ze = 1, Fn = 2, Nn = 3, He = 4, st = 1, $o = 2, Dt = 3, jo = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Mo = /[\x85\u2028\u2029]/, Oo = /[,\[\]\{\}]/, Bn = /^(?:!|!!|![a-z\-]+!)$/i, Ln = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1730
1730
  function Gt(e) {
1731
1731
  return Object.prototype.toString.call(e);
1732
1732
  }
@@ -1742,21 +1742,21 @@ function de(e) {
1742
1742
  function Oe(e) {
1743
1743
  return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
1744
1744
  }
1745
- function Oo(e) {
1745
+ function Eo(e) {
1746
1746
  var n;
1747
1747
  return 48 <= e && e <= 57 ? e - 48 : (n = e | 32, 97 <= n && n <= 102 ? n - 97 + 10 : -1);
1748
1748
  }
1749
- function Eo(e) {
1749
+ function Ko(e) {
1750
1750
  return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
1751
1751
  }
1752
- function Ko(e) {
1752
+ function Fo(e) {
1753
1753
  return 48 <= e && e <= 57 ? e - 48 : -1;
1754
1754
  }
1755
1755
  function zt(e) {
1756
1756
  return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
1757
1757
  ` : 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" : "";
1758
1758
  }
1759
- function Fo(e) {
1759
+ function No(e) {
1760
1760
  return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode(
1761
1761
  (e - 65536 >> 10) + 55296,
1762
1762
  (e - 65536 & 1023) + 56320
@@ -1765,7 +1765,7 @@ function Fo(e) {
1765
1765
  var Pn = new Array(256), qn = new Array(256);
1766
1766
  for (var je = 0; je < 256; je++)
1767
1767
  Pn[je] = zt(je) ? 1 : 0, qn[je] = zt(je);
1768
- function No(e, n) {
1768
+ function Bo(e, n) {
1769
1769
  this.input = e, this.filename = n.filename || null, this.schema = n.schema || Ct, 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 = [];
1770
1770
  }
1771
1771
  function Un(e, n) {
@@ -1777,7 +1777,7 @@ function Un(e, n) {
1777
1777
  line: e.line,
1778
1778
  column: e.position - e.lineStart
1779
1779
  };
1780
- return t.snippet = Pr(t), new se(n, t);
1780
+ return t.snippet = qr(t), new se(n, t);
1781
1781
  }
1782
1782
  function T(e, n) {
1783
1783
  throw Un(e, n);
@@ -1808,7 +1808,7 @@ function ke(e, n, t, a) {
1808
1808
  for (r = 0, o = s.length; r < o; r += 1)
1809
1809
  i = s.charCodeAt(r), i === 9 || 32 <= i && i <= 1114111 || T(e, "expected valid JSON character");
1810
1810
  else
1811
- $o.test(s) && T(e, "the stream contains non-printable characters");
1811
+ jo.test(s) && T(e, "the stream contains non-printable characters");
1812
1812
  e.result += s;
1813
1813
  }
1814
1814
  }
@@ -1865,7 +1865,7 @@ function _t(e, n) {
1865
1865
  n === 1 ? e.result += " " : n > 1 && (e.result += ne.repeat(`
1866
1866
  `, n - 1));
1867
1867
  }
1868
- function Bo(e, n, t) {
1868
+ function Lo(e, n, t) {
1869
1869
  var a, r, o, i, s, l, c, d, u = e.kind, y = e.result, f;
1870
1870
  if (f = e.input.charCodeAt(e.position), de(f) || Oe(f) || f === 35 || f === 38 || f === 42 || f === 33 || f === 124 || f === 62 || f === 39 || f === 34 || f === 37 || f === 64 || f === 96 || (f === 63 || f === 45) && (r = e.input.charCodeAt(e.position + 1), de(r) || t && Oe(r)))
1871
1871
  return !1;
@@ -1892,7 +1892,7 @@ function Bo(e, n, t) {
1892
1892
  }
1893
1893
  return ke(e, o, i, !1), e.result ? !0 : (e.kind = u, e.result = y, !1);
1894
1894
  }
1895
- function Lo(e, n) {
1895
+ function Po(e, n) {
1896
1896
  var t, a, r;
1897
1897
  if (t = e.input.charCodeAt(e.position), t !== 39)
1898
1898
  return !1;
@@ -1906,7 +1906,7 @@ function Lo(e, n) {
1906
1906
  ge(t) ? (ke(e, a, r, !0), _t(e, ee(e, !1, n)), a = r = e.position) : e.position === e.lineStart && et(e) ? T(e, "unexpected end of the document within a single quoted scalar") : (e.position++, r = e.position);
1907
1907
  T(e, "unexpected end of the stream within a single quoted scalar");
1908
1908
  }
1909
- function Po(e, n) {
1909
+ function qo(e, n) {
1910
1910
  var t, a, r, o, i, s;
1911
1911
  if (s = e.input.charCodeAt(e.position), s !== 34)
1912
1912
  return !1;
@@ -1918,10 +1918,10 @@ function Po(e, n) {
1918
1918
  ee(e, !1, n);
1919
1919
  else if (s < 256 && Pn[s])
1920
1920
  e.result += qn[s], e.position++;
1921
- else if ((i = Eo(s)) > 0) {
1921
+ else if ((i = Ko(s)) > 0) {
1922
1922
  for (r = i, o = 0; r > 0; r--)
1923
- s = e.input.charCodeAt(++e.position), (i = Oo(s)) >= 0 ? o = (o << 4) + i : T(e, "expected hexadecimal character");
1924
- e.result += Fo(o), e.position++;
1923
+ s = e.input.charCodeAt(++e.position), (i = Eo(s)) >= 0 ? o = (o << 4) + i : T(e, "expected hexadecimal character");
1924
+ e.result += No(o), e.position++;
1925
1925
  } else
1926
1926
  T(e, "unknown escape sequence");
1927
1927
  t = a = e.position;
@@ -1930,8 +1930,8 @@ function Po(e, n) {
1930
1930
  }
1931
1931
  T(e, "unexpected end of the stream within a double quoted scalar");
1932
1932
  }
1933
- function qo(e, n) {
1934
- var t = !0, a, r, o, i = e.tag, s, l = e.anchor, c, d, u, y, f, I = /* @__PURE__ */ Object.create(null), b, p, A, w;
1933
+ function Uo(e, n) {
1934
+ var t = !0, a, r, o, i = e.tag, s, l = e.anchor, c, d, u, y, f, I = /* @__PURE__ */ Object.create(null), v, p, _, w;
1935
1935
  if (w = e.input.charCodeAt(e.position), w === 91)
1936
1936
  d = 93, f = !1, s = [];
1937
1937
  else if (w === 123)
@@ -1941,11 +1941,11 @@ function qo(e, n) {
1941
1941
  for (e.anchor !== null && (e.anchorMap[e.anchor] = s), w = e.input.charCodeAt(++e.position); w !== 0; ) {
1942
1942
  if (ee(e, !0, n), w = e.input.charCodeAt(e.position), w === d)
1943
1943
  return e.position++, e.tag = i, e.anchor = l, e.kind = f ? "mapping" : "sequence", e.result = s, !0;
1944
- t ? w === 44 && T(e, "expected the node content, but found ','") : T(e, "missed comma between flow collection entries"), p = b = A = null, u = y = !1, w === 63 && (c = e.input.charCodeAt(e.position + 1), de(c) && (u = y = !0, e.position++, ee(e, !0, n))), a = e.line, r = e.lineStart, o = e.position, Ke(e, n, ze, !1, !0), p = e.tag, b = e.result, ee(e, !0, n), w = e.input.charCodeAt(e.position), (y || e.line === a) && w === 58 && (u = !0, w = e.input.charCodeAt(++e.position), ee(e, !0, n), Ke(e, n, ze, !1, !0), A = e.result), f ? Ee(e, s, I, p, b, A, a, r, o) : u ? s.push(Ee(e, null, I, p, b, A, a, r, o)) : s.push(b), ee(e, !0, n), w = e.input.charCodeAt(e.position), w === 44 ? (t = !0, w = e.input.charCodeAt(++e.position)) : t = !1;
1944
+ t ? w === 44 && T(e, "expected the node content, but found ','") : T(e, "missed comma between flow collection entries"), p = v = _ = null, u = y = !1, w === 63 && (c = e.input.charCodeAt(e.position + 1), de(c) && (u = y = !0, e.position++, ee(e, !0, n))), a = e.line, r = e.lineStart, o = e.position, Ke(e, n, ze, !1, !0), p = e.tag, v = e.result, ee(e, !0, n), w = e.input.charCodeAt(e.position), (y || e.line === a) && w === 58 && (u = !0, w = e.input.charCodeAt(++e.position), ee(e, !0, n), Ke(e, n, ze, !1, !0), _ = e.result), f ? Ee(e, s, I, p, v, _, a, r, o) : u ? s.push(Ee(e, null, I, p, v, _, a, r, o)) : s.push(v), ee(e, !0, n), w = e.input.charCodeAt(e.position), w === 44 ? (t = !0, w = e.input.charCodeAt(++e.position)) : t = !1;
1945
1945
  }
1946
1946
  T(e, "unexpected end of the stream within a flow collection");
1947
1947
  }
1948
- function Uo(e, n) {
1948
+ function Ro(e, n) {
1949
1949
  var t, a, r = st, o = !1, i = !1, s = n, l = 0, c = !1, d, u;
1950
1950
  if (u = e.input.charCodeAt(e.position), u === 124)
1951
1951
  a = !1;
@@ -1955,8 +1955,8 @@ function Uo(e, n) {
1955
1955
  return !1;
1956
1956
  for (e.kind = "scalar", e.result = ""; u !== 0; )
1957
1957
  if (u = e.input.charCodeAt(++e.position), u === 43 || u === 45)
1958
- st === r ? r = u === 43 ? Dt : To : T(e, "repeat of a chomping mode identifier");
1959
- else if ((d = Ko(u)) >= 0)
1958
+ st === r ? r = u === 43 ? Dt : $o : T(e, "repeat of a chomping mode identifier");
1959
+ else if ((d = Fo(u)) >= 0)
1960
1960
  d === 0 ? T(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : i ? T(e, "repeat of an indentation width identifier") : (s = n + d - 1, i = !0);
1961
1961
  else
1962
1962
  break;
@@ -2008,13 +2008,13 @@ function Wt(e, n) {
2008
2008
  }
2009
2009
  return s ? (e.tag = a, e.anchor = r, e.kind = "sequence", e.result = o, !0) : !1;
2010
2010
  }
2011
- function Ro(e, n, t) {
2012
- var a, r, o, i, s, l, c = e.tag, d = e.anchor, u = {}, y = /* @__PURE__ */ Object.create(null), f = null, I = null, b = null, p = !1, A = !1, w;
2011
+ function Vo(e, n, t) {
2012
+ var a, r, o, i, s, l, c = e.tag, d = e.anchor, u = {}, y = /* @__PURE__ */ Object.create(null), f = null, I = null, v = null, p = !1, _ = !1, w;
2013
2013
  if (e.firstTabInLine !== -1)
2014
2014
  return !1;
2015
2015
  for (e.anchor !== null && (e.anchorMap[e.anchor] = u), w = e.input.charCodeAt(e.position); w !== 0; ) {
2016
2016
  if (!p && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, T(e, "tab characters must not be used in indentation")), a = e.input.charCodeAt(e.position + 1), o = e.line, (w === 63 || w === 58) && de(a))
2017
- w === 63 ? (p && (Ee(e, u, y, f, I, null, i, s, l), f = I = b = null), A = !0, p = !0, r = !0) : p ? (p = !1, r = !0) : T(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, w = a;
2017
+ w === 63 ? (p && (Ee(e, u, y, f, I, null, i, s, l), f = I = v = null), _ = !0, p = !0, r = !0) : p ? (p = !1, r = !0) : T(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, w = a;
2018
2018
  else {
2019
2019
  if (i = e.line, s = e.lineStart, l = e.position, !Ke(e, t, Fn, !1, !0))
2020
2020
  break;
@@ -2022,24 +2022,24 @@ function Ro(e, n, t) {
2022
2022
  for (w = e.input.charCodeAt(e.position); Ie(w); )
2023
2023
  w = e.input.charCodeAt(++e.position);
2024
2024
  if (w === 58)
2025
- w = e.input.charCodeAt(++e.position), de(w) || T(e, "a whitespace character is expected after the key-value separator within a block mapping"), p && (Ee(e, u, y, f, I, null, i, s, l), f = I = b = null), A = !0, p = !1, r = !1, f = e.tag, I = e.result;
2026
- else if (A)
2025
+ w = e.input.charCodeAt(++e.position), de(w) || T(e, "a whitespace character is expected after the key-value separator within a block mapping"), p && (Ee(e, u, y, f, I, null, i, s, l), f = I = v = null), _ = !0, p = !1, r = !1, f = e.tag, I = e.result;
2026
+ else if (_)
2027
2027
  T(e, "can not read an implicit mapping pair; a colon is missed");
2028
2028
  else
2029
2029
  return e.tag = c, e.anchor = d, !0;
2030
- } else if (A)
2030
+ } else if (_)
2031
2031
  T(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
2032
2032
  else
2033
2033
  return e.tag = c, e.anchor = d, !0;
2034
2034
  }
2035
- if ((e.line === o || e.lineIndent > n) && (p && (i = e.line, s = e.lineStart, l = e.position), Ke(e, n, He, !0, r) && (p ? I = e.result : b = e.result), p || (Ee(e, u, y, f, I, b, i, s, l), f = I = b = null), ee(e, !0, -1), w = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > n) && w !== 0)
2035
+ if ((e.line === o || e.lineIndent > n) && (p && (i = e.line, s = e.lineStart, l = e.position), Ke(e, n, He, !0, r) && (p ? I = e.result : v = e.result), p || (Ee(e, u, y, f, I, v, i, s, l), f = I = v = null), ee(e, !0, -1), w = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > n) && w !== 0)
2036
2036
  T(e, "bad indentation of a mapping entry");
2037
2037
  else if (e.lineIndent < n)
2038
2038
  break;
2039
2039
  }
2040
- return p && Ee(e, u, y, f, I, null, i, s, l), A && (e.tag = c, e.anchor = d, e.kind = "mapping", e.result = u), A;
2040
+ return p && Ee(e, u, y, f, I, null, i, s, l), _ && (e.tag = c, e.anchor = d, e.kind = "mapping", e.result = u), _;
2041
2041
  }
2042
- function Vo(e) {
2042
+ function Do(e) {
2043
2043
  var n, t = !1, a = !1, r, o, i;
2044
2044
  if (i = e.input.charCodeAt(e.position), i !== 33)
2045
2045
  return !1;
@@ -2051,7 +2051,7 @@ function Vo(e) {
2051
2051
  } else {
2052
2052
  for (; i !== 0 && !de(i); )
2053
2053
  i === 33 && (a ? T(e, "tag suffix cannot contain exclamation marks") : (r = e.input.slice(n - 1, e.position + 1), Bn.test(r) || T(e, "named tag handle cannot contain such characters"), a = !0, n = e.position + 1)), i = e.input.charCodeAt(++e.position);
2054
- o = e.input.slice(n, e.position), Mo.test(o) && T(e, "tag suffix cannot contain flow indicator characters");
2054
+ o = e.input.slice(n, e.position), Oo.test(o) && T(e, "tag suffix cannot contain flow indicator characters");
2055
2055
  }
2056
2056
  o && !Ln.test(o) && T(e, "tag name cannot contain such characters: " + o);
2057
2057
  try {
@@ -2061,7 +2061,7 @@ function Vo(e) {
2061
2061
  }
2062
2062
  return t ? e.tag = o : Ce.call(e.tagMap, r) ? e.tag = e.tagMap[r] + o : r === "!" ? e.tag = "!" + o : r === "!!" ? e.tag = "tag:yaml.org,2002:" + o : T(e, 'undeclared tag handle "' + r + '"'), !0;
2063
2063
  }
2064
- function Do(e) {
2064
+ function Go(e) {
2065
2065
  var n, t;
2066
2066
  if (t = e.input.charCodeAt(e.position), t !== 38)
2067
2067
  return !1;
@@ -2069,7 +2069,7 @@ function Do(e) {
2069
2069
  t = e.input.charCodeAt(++e.position);
2070
2070
  return e.position === n && T(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(n, e.position), !0;
2071
2071
  }
2072
- function Go(e) {
2072
+ function zo(e) {
2073
2073
  var n, t, a;
2074
2074
  if (a = e.input.charCodeAt(e.position), a !== 42)
2075
2075
  return !1;
@@ -2078,11 +2078,11 @@ function Go(e) {
2078
2078
  return e.position === n && T(e, "name of an alias node must contain at least one character"), t = e.input.slice(n, e.position), Ce.call(e.anchorMap, t) || T(e, 'unidentified alias "' + t + '"'), e.result = e.anchorMap[t], ee(e, !0, -1), !0;
2079
2079
  }
2080
2080
  function Ke(e, n, t, a, r) {
2081
- var o, i, s, l = 1, c = !1, d = !1, u, y, f, I, b, p;
2081
+ var o, i, s, l = 1, c = !1, d = !1, u, y, f, I, v, p;
2082
2082
  if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = i = s = He === t || Nn === t, a && ee(e, !0, -1) && (c = !0, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)), l === 1)
2083
- for (; Vo(e) || Do(e); )
2083
+ for (; Do(e) || Go(e); )
2084
2084
  ee(e, !0, -1) ? (c = !0, s = o, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)) : s = !1;
2085
- if (s && (s = c || r), (l === 1 || He === t) && (ze === t || Fn === t ? b = n : b = n + 1, p = e.position - e.lineStart, l === 1 ? s && (Wt(e, p) || Ro(e, p, b)) || qo(e, b) ? d = !0 : (i && Uo(e, b) || Lo(e, b) || Po(e, b) ? d = !0 : Go(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && T(e, "alias node should not have any properties")) : Bo(e, b, ze === t) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : l === 0 && (d = s && Wt(e, p))), e.tag === null)
2085
+ if (s && (s = c || r), (l === 1 || He === t) && (ze === t || Fn === t ? v = n : v = n + 1, p = e.position - e.lineStart, l === 1 ? s && (Wt(e, p) || Vo(e, p, v)) || Uo(e, v) ? d = !0 : (i && Ro(e, v) || Po(e, v) || qo(e, v) ? d = !0 : zo(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && T(e, "alias node should not have any properties")) : Lo(e, v, ze === t) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : l === 0 && (d = s && Wt(e, p))), e.tag === null)
2086
2086
  e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2087
2087
  else if (e.tag === "?") {
2088
2088
  for (e.result !== null && e.kind !== "scalar" && T(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, y = e.implicitTypes.length; u < y; u += 1)
@@ -2103,7 +2103,7 @@ function Ke(e, n, t, a, r) {
2103
2103
  }
2104
2104
  return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || d;
2105
2105
  }
2106
- function zo(e) {
2106
+ function Ho(e) {
2107
2107
  var n = e.position, t, a, r, o = !1, i;
2108
2108
  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 && (ee(e, !0, -1), i = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || i !== 37)); ) {
2109
2109
  for (o = !0, i = e.input.charCodeAt(++e.position), t = e.position; i !== 0 && !de(i); )
@@ -2125,7 +2125,7 @@ function zo(e) {
2125
2125
  }
2126
2126
  i !== 0 && wt(e), Ce.call(Ht, a) ? Ht[a](e, a, r) : Je(e, 'unknown document directive "' + a + '"');
2127
2127
  }
2128
- if (ee(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, ee(e, !0, -1)) : o && T(e, "directives end mark is expected"), Ke(e, e.lineIndent - 1, He, !1, !0), ee(e, !0, -1), e.checkLineBreaks && jo.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 && et(e)) {
2128
+ if (ee(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, ee(e, !0, -1)) : o && T(e, "directives end mark is expected"), Ke(e, e.lineIndent - 1, He, !1, !0), ee(e, !0, -1), e.checkLineBreaks && Mo.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 && et(e)) {
2129
2129
  e.input.charCodeAt(e.position) === 46 && (e.position += 3, ee(e, !0, -1));
2130
2130
  return;
2131
2131
  }
@@ -2137,14 +2137,14 @@ function zo(e) {
2137
2137
  function Rn(e, n) {
2138
2138
  e = String(e), n = n || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
2139
2139
  `), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
2140
- var t = new No(e, n), a = e.indexOf("\0");
2140
+ var t = new Bo(e, n), a = e.indexOf("\0");
2141
2141
  for (a !== -1 && (t.position = a, T(t, "null byte is not allowed in input")), t.input += "\0"; t.input.charCodeAt(t.position) === 32; )
2142
2142
  t.lineIndent += 1, t.position += 1;
2143
2143
  for (; t.position < t.length - 1; )
2144
- zo(t);
2144
+ Ho(t);
2145
2145
  return t.documents;
2146
2146
  }
2147
- function Ho(e, n, t) {
2147
+ function Jo(e, n, t) {
2148
2148
  n !== null && typeof n == "object" && typeof t > "u" && (t = n, n = null);
2149
2149
  var a = Rn(e, t);
2150
2150
  if (typeof n != "function")
@@ -2152,7 +2152,7 @@ function Ho(e, n, t) {
2152
2152
  for (var r = 0, o = a.length; r < o; r += 1)
2153
2153
  n(a[r]);
2154
2154
  }
2155
- function Jo(e, n) {
2155
+ function Wo(e, n) {
2156
2156
  var t = Rn(e, n);
2157
2157
  if (t.length !== 0) {
2158
2158
  if (t.length === 1)
@@ -2160,10 +2160,10 @@ function Jo(e, n) {
2160
2160
  throw new se("expected a single document in the stream, but found more");
2161
2161
  }
2162
2162
  }
2163
- var Wo = Ho, Yo = Jo, Vn = {
2164
- loadAll: Wo,
2165
- load: Yo
2166
- }, Dn = Object.prototype.toString, Gn = Object.prototype.hasOwnProperty, It = 65279, Zo = 9, Pe = 10, Xo = 13, Qo = 32, ei = 33, ti = 34, dt = 35, ni = 37, ai = 38, ri = 39, oi = 42, zn = 44, ii = 45, We = 58, si = 61, li = 62, ui = 63, ci = 64, Hn = 91, Jn = 93, di = 96, Wn = 123, pi = 124, Yn = 125, ie = {};
2163
+ var Yo = Jo, Zo = Wo, Vn = {
2164
+ loadAll: Yo,
2165
+ load: Zo
2166
+ }, Dn = Object.prototype.toString, Gn = Object.prototype.hasOwnProperty, It = 65279, Xo = 9, Pe = 10, Qo = 13, ei = 32, ti = 33, ni = 34, dt = 35, ai = 37, ri = 38, oi = 39, ii = 42, zn = 44, si = 45, We = 58, li = 61, ui = 62, ci = 63, di = 64, Hn = 91, Jn = 93, pi = 96, Wn = 123, fi = 124, Yn = 125, ie = {};
2167
2167
  ie[0] = "\\0";
2168
2168
  ie[7] = "\\a";
2169
2169
  ie[8] = "\\b";
@@ -2179,7 +2179,7 @@ ie[133] = "\\N";
2179
2179
  ie[160] = "\\_";
2180
2180
  ie[8232] = "\\L";
2181
2181
  ie[8233] = "\\P";
2182
- var fi = [
2182
+ var mi = [
2183
2183
  "y",
2184
2184
  "Y",
2185
2185
  "yes",
@@ -2196,8 +2196,8 @@ var fi = [
2196
2196
  "off",
2197
2197
  "Off",
2198
2198
  "OFF"
2199
- ], mi = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
2200
- function gi(e, n) {
2199
+ ], gi = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
2200
+ function yi(e, n) {
2201
2201
  var t, a, r, o, i, s, l;
2202
2202
  if (n === null)
2203
2203
  return {};
@@ -2205,7 +2205,7 @@ function gi(e, n) {
2205
2205
  i = a[r], s = String(n[i]), i.slice(0, 2) === "!!" && (i = "tag:yaml.org,2002:" + i.slice(2)), l = e.compiledTypeMap.fallback[i], l && Gn.call(l.styleAliases, s) && (s = l.styleAliases[s]), t[i] = s;
2206
2206
  return t;
2207
2207
  }
2208
- function yi(e) {
2208
+ function hi(e) {
2209
2209
  var n, t, a;
2210
2210
  if (n = e.toString(16).toUpperCase(), e <= 255)
2211
2211
  t = "x", a = 2;
@@ -2217,9 +2217,9 @@ function yi(e) {
2217
2217
  throw new se("code point within a string may not be greater than 0xFFFFFFFF");
2218
2218
  return "\\" + t + ne.repeat("0", a - n.length) + n;
2219
2219
  }
2220
- var hi = 1, qe = 2;
2221
- function vi(e) {
2222
- this.schema = e.schema || Ct, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = ne.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = gi(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 === '"' ? qe : hi, 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;
2220
+ var vi = 1, qe = 2;
2221
+ function bi(e) {
2222
+ this.schema = e.schema || Ct, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = ne.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = yi(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 === '"' ? qe : vi, 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;
2223
2223
  }
2224
2224
  function Yt(e, n) {
2225
2225
  for (var t = ne.repeat(" ", n), a = 0, r = -1, o = "", i, s = e.length; a < s; )
@@ -2232,7 +2232,7 @@ function pt(e, n) {
2232
2232
  return `
2233
2233
  ` + ne.repeat(" ", e.indent * n);
2234
2234
  }
2235
- function bi(e, n) {
2235
+ function ki(e, n) {
2236
2236
  var t, a, r;
2237
2237
  for (t = 0, a = e.implicitTypes.length; t < a; t += 1)
2238
2238
  if (r = e.implicitTypes[t], r.resolve(n))
@@ -2240,13 +2240,13 @@ function bi(e, n) {
2240
2240
  return !1;
2241
2241
  }
2242
2242
  function Ye(e) {
2243
- return e === Qo || e === Zo;
2243
+ return e === ei || e === Xo;
2244
2244
  }
2245
2245
  function Ue(e) {
2246
2246
  return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== It || 65536 <= e && e <= 1114111;
2247
2247
  }
2248
2248
  function Zt(e) {
2249
- return Ue(e) && e !== It && e !== Xo && e !== Pe;
2249
+ return Ue(e) && e !== It && e !== Qo && e !== Pe;
2250
2250
  }
2251
2251
  function Xt(e, n, t) {
2252
2252
  var a = Zt(e), r = a && !Ye(e);
@@ -2258,10 +2258,10 @@ function Xt(e, n, t) {
2258
2258
  ) : a && e !== zn && e !== Hn && e !== Jn && e !== Wn && e !== Yn) && e !== dt && !(n === We && !r) || Zt(n) && !Ye(n) && e === dt || n === We && r
2259
2259
  );
2260
2260
  }
2261
- function ki(e) {
2262
- return Ue(e) && e !== It && !Ye(e) && e !== ii && e !== ui && e !== We && e !== zn && e !== Hn && e !== Jn && e !== Wn && e !== Yn && e !== dt && e !== ai && e !== oi && e !== ei && e !== pi && e !== si && e !== li && e !== ri && e !== ti && e !== ni && e !== ci && e !== di;
2263
- }
2264
2261
  function Ci(e) {
2262
+ return Ue(e) && e !== It && !Ye(e) && e !== si && e !== ci && e !== We && e !== zn && e !== Hn && e !== Jn && e !== Wn && e !== Yn && e !== dt && e !== ri && e !== ii && e !== ti && e !== fi && e !== li && e !== ui && e !== oi && e !== ni && e !== ai && e !== di && e !== pi;
2263
+ }
2264
+ function wi(e) {
2265
2265
  return !Ye(e) && e !== We;
2266
2266
  }
2267
2267
  function Ne(e, n) {
@@ -2273,13 +2273,13 @@ function Zn(e) {
2273
2273
  return n.test(e);
2274
2274
  }
2275
2275
  var Xn = 1, ft = 2, Qn = 3, ea = 4, Me = 5;
2276
- function wi(e, n, t, a, r, o, i, s) {
2277
- var l, c = 0, d = null, u = !1, y = !1, f = a !== -1, I = -1, b = ki(Ne(e, 0)) && Ci(Ne(e, e.length - 1));
2276
+ function _i(e, n, t, a, r, o, i, s) {
2277
+ var l, c = 0, d = null, u = !1, y = !1, f = a !== -1, I = -1, v = Ci(Ne(e, 0)) && wi(Ne(e, e.length - 1));
2278
2278
  if (n || i)
2279
2279
  for (l = 0; l < e.length; c >= 65536 ? l += 2 : l++) {
2280
2280
  if (c = Ne(e, l), !Ue(c))
2281
2281
  return Me;
2282
- b = b && Xt(c, d, s), d = c;
2282
+ v = v && Xt(c, d, s), d = c;
2283
2283
  }
2284
2284
  else {
2285
2285
  for (l = 0; l < e.length; c >= 65536 ? l += 2 : l++) {
@@ -2288,23 +2288,23 @@ function wi(e, n, t, a, r, o, i, s) {
2288
2288
  l - I - 1 > a && e[I + 1] !== " ", I = l);
2289
2289
  else if (!Ue(c))
2290
2290
  return Me;
2291
- b = b && Xt(c, d, s), d = c;
2291
+ v = v && Xt(c, d, s), d = c;
2292
2292
  }
2293
2293
  y = y || f && l - I - 1 > a && e[I + 1] !== " ";
2294
2294
  }
2295
- return !u && !y ? b && !i && !r(e) ? Xn : o === qe ? Me : ft : t > 9 && Zn(e) ? Me : i ? o === qe ? Me : ft : y ? ea : Qn;
2295
+ return !u && !y ? v && !i && !r(e) ? Xn : o === qe ? Me : ft : t > 9 && Zn(e) ? Me : i ? o === qe ? Me : ft : y ? ea : Qn;
2296
2296
  }
2297
- function _i(e, n, t, a, r) {
2297
+ function Ii(e, n, t, a, r) {
2298
2298
  e.dump = function() {
2299
2299
  if (n.length === 0)
2300
2300
  return e.quotingType === qe ? '""' : "''";
2301
- if (!e.noCompatMode && (fi.indexOf(n) !== -1 || mi.test(n)))
2301
+ if (!e.noCompatMode && (mi.indexOf(n) !== -1 || gi.test(n)))
2302
2302
  return e.quotingType === qe ? '"' + n + '"' : "'" + n + "'";
2303
2303
  var o = e.indent * Math.max(1, t), i = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - o), s = a || e.flowLevel > -1 && t >= e.flowLevel;
2304
2304
  function l(c) {
2305
- return bi(e, c);
2305
+ return ki(e, c);
2306
2306
  }
2307
- switch (wi(
2307
+ switch (_i(
2308
2308
  n,
2309
2309
  s,
2310
2310
  e.indent,
@@ -2321,9 +2321,9 @@ function _i(e, n, t, a, r) {
2321
2321
  case Qn:
2322
2322
  return "|" + Qt(n, e.indent) + en(Yt(n, o));
2323
2323
  case ea:
2324
- return ">" + Qt(n, e.indent) + en(Yt(Ii(n, i), o));
2324
+ return ">" + Qt(n, e.indent) + en(Yt(Ai(n, i), o));
2325
2325
  case Me:
2326
- return '"' + Ai(n) + '"';
2326
+ return '"' + Si(n) + '"';
2327
2327
  default:
2328
2328
  throw new se("impossible error: invalid scalar style");
2329
2329
  }
@@ -2341,7 +2341,7 @@ function en(e) {
2341
2341
  return e[e.length - 1] === `
2342
2342
  ` ? e.slice(0, -1) : e;
2343
2343
  }
2344
- function Ii(e, n) {
2344
+ function Ai(e, n) {
2345
2345
  for (var t = /(\n+)([^\n]*)/g, a = function() {
2346
2346
  var c = e.indexOf(`
2347
2347
  `);
@@ -2364,12 +2364,12 @@ function tn(e, n) {
2364
2364
  `, e.length - r > n && i > r ? l += e.slice(r, i) + `
2365
2365
  ` + e.slice(i + 1) : l += e.slice(r), l.slice(1);
2366
2366
  }
2367
- function Ai(e) {
2367
+ function Si(e) {
2368
2368
  for (var n = "", t = 0, a, r = 0; r < e.length; t >= 65536 ? r += 2 : r++)
2369
- t = Ne(e, r), a = ie[t], !a && Ue(t) ? (n += e[r], t >= 65536 && (n += e[r + 1])) : n += a || yi(t);
2369
+ t = Ne(e, r), a = ie[t], !a && Ue(t) ? (n += e[r], t >= 65536 && (n += e[r + 1])) : n += a || hi(t);
2370
2370
  return n;
2371
2371
  }
2372
- function Si(e, n, t) {
2372
+ function xi(e, n, t) {
2373
2373
  var a = "", r = e.tag, o, i, s;
2374
2374
  for (o = 0, i = t.length; o < i; o += 1)
2375
2375
  s = t[o], e.replacer && (s = e.replacer.call(t, String(o), s)), (he(e, n, s, !1, !1) || typeof s > "u" && he(e, n, null, !1, !1)) && (a !== "" && (a += "," + (e.condenseFlow ? "" : " ")), a += e.dump);
@@ -2381,13 +2381,13 @@ function nn(e, n, t, a) {
2381
2381
  l = t[i], e.replacer && (l = e.replacer.call(t, String(i), l)), (he(e, n + 1, l, !0, !0, !1, !0) || typeof l > "u" && he(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);
2382
2382
  e.tag = o, e.dump = r || "[]";
2383
2383
  }
2384
- function xi(e, n, t) {
2384
+ function Ti(e, n, t) {
2385
2385
  var a = "", r = e.tag, o = Object.keys(t), i, s, l, c, d;
2386
2386
  for (i = 0, s = o.length; i < s; i += 1)
2387
2387
  d = "", a !== "" && (d += ", "), e.condenseFlow && (d += '"'), l = o[i], c = t[l], e.replacer && (c = e.replacer.call(t, l, c)), he(e, n, l, !1, !1) && (e.dump.length > 1024 && (d += "? "), d += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), he(e, n, c, !1, !1) && (d += e.dump, a += d));
2388
2388
  e.tag = r, e.dump = "{" + a + "}";
2389
2389
  }
2390
- function Ti(e, n, t, a) {
2390
+ function $i(e, n, t, a) {
2391
2391
  var r = "", o = e.tag, i = Object.keys(t), s, l, c, d, u, y;
2392
2392
  if (e.sortKeys === !0)
2393
2393
  i.sort();
@@ -2425,11 +2425,11 @@ function he(e, n, t, a, r, o, i) {
2425
2425
  e.dump = "*ref_" + u;
2426
2426
  else {
2427
2427
  if (d && y && !e.usedDuplicates[u] && (e.usedDuplicates[u] = !0), s === "[object Object]")
2428
- a && Object.keys(e.dump).length !== 0 ? (Ti(e, n, e.dump, r), y && (e.dump = "&ref_" + u + e.dump)) : (xi(e, n, e.dump), y && (e.dump = "&ref_" + u + " " + e.dump));
2428
+ a && Object.keys(e.dump).length !== 0 ? ($i(e, n, e.dump, r), y && (e.dump = "&ref_" + u + e.dump)) : (Ti(e, n, e.dump), y && (e.dump = "&ref_" + u + " " + e.dump));
2429
2429
  else if (s === "[object Array]")
2430
- a && e.dump.length !== 0 ? (e.noArrayIndent && !i && n > 0 ? nn(e, n - 1, e.dump, r) : nn(e, n, e.dump, r), y && (e.dump = "&ref_" + u + e.dump)) : (Si(e, n, e.dump), y && (e.dump = "&ref_" + u + " " + e.dump));
2430
+ a && e.dump.length !== 0 ? (e.noArrayIndent && !i && n > 0 ? nn(e, n - 1, e.dump, r) : nn(e, n, e.dump, r), y && (e.dump = "&ref_" + u + e.dump)) : (xi(e, n, e.dump), y && (e.dump = "&ref_" + u + " " + e.dump));
2431
2431
  else if (s === "[object String]")
2432
- e.tag !== "?" && _i(e, e.dump, n, o, l);
2432
+ e.tag !== "?" && Ii(e, e.dump, n, o, l);
2433
2433
  else {
2434
2434
  if (s === "[object Undefined]" || e.skipInvalid)
2435
2435
  return !1;
@@ -2441,7 +2441,7 @@ function he(e, n, t, a, r, o, i) {
2441
2441
  }
2442
2442
  return !0;
2443
2443
  }
2444
- function $i(e, n) {
2444
+ function ji(e, n) {
2445
2445
  var t = [], a = [], r, o;
2446
2446
  for (mt(e, t, a), r = 0, o = a.length; r < o; r += 1)
2447
2447
  n.duplicates.push(t[a[r]]);
@@ -2459,23 +2459,23 @@ function mt(e, n, t) {
2459
2459
  for (a = Object.keys(e), r = 0, o = a.length; r < o; r += 1)
2460
2460
  mt(e[a[r]], n, t);
2461
2461
  }
2462
- function ji(e, n) {
2462
+ function Mi(e, n) {
2463
2463
  n = n || {};
2464
- var t = new vi(n);
2465
- t.noRefs || $i(e, t);
2464
+ var t = new bi(n);
2465
+ t.noRefs || ji(e, t);
2466
2466
  var a = e;
2467
2467
  return t.replacer && (a = t.replacer.call({ "": a }, "", a)), he(t, 0, a, !0, !0) ? t.dump + `
2468
2468
  ` : "";
2469
2469
  }
2470
- var Mi = ji, Oi = {
2471
- dump: Mi
2470
+ var Oi = Mi, Ei = {
2471
+ dump: Oi
2472
2472
  };
2473
2473
  function At(e, n) {
2474
2474
  return function() {
2475
2475
  throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + n + " instead, which is now safe by default.");
2476
2476
  };
2477
2477
  }
2478
- var Ei = oe, Ki = yn, Fi = kn, Ni = An, Bi = Sn, Li = Ct, Pi = Vn.load, qi = Vn.loadAll, Ui = Oi.dump, Ri = se, Vi = {
2478
+ var Ki = oe, Fi = yn, Ni = kn, Bi = An, Li = Sn, Pi = Ct, qi = Vn.load, Ui = Vn.loadAll, Ri = Ei.dump, Vi = se, Di = {
2479
2479
  binary: Mn,
2480
2480
  float: In,
2481
2481
  map: bn,
@@ -2489,35 +2489,35 @@ var Ei = oe, Ki = yn, Fi = kn, Ni = An, Bi = Sn, Li = Ct, Pi = Vn.load, qi = Vn.
2489
2489
  omap: On,
2490
2490
  seq: vn,
2491
2491
  str: hn
2492
- }, Di = At("safeLoad", "load"), Gi = At("safeLoadAll", "loadAll"), zi = At("safeDump", "dump"), Hi = {
2493
- Type: Ei,
2494
- Schema: Ki,
2495
- FAILSAFE_SCHEMA: Fi,
2496
- JSON_SCHEMA: Ni,
2497
- CORE_SCHEMA: Bi,
2498
- DEFAULT_SCHEMA: Li,
2499
- load: Pi,
2500
- loadAll: qi,
2501
- dump: Ui,
2502
- YAMLException: Ri,
2503
- types: Vi,
2504
- safeLoad: Di,
2505
- safeLoadAll: Gi,
2506
- safeDump: zi
2492
+ }, Gi = At("safeLoad", "load"), zi = At("safeLoadAll", "loadAll"), Hi = At("safeDump", "dump"), Ji = {
2493
+ Type: Ki,
2494
+ Schema: Fi,
2495
+ FAILSAFE_SCHEMA: Ni,
2496
+ JSON_SCHEMA: Bi,
2497
+ CORE_SCHEMA: Li,
2498
+ DEFAULT_SCHEMA: Pi,
2499
+ load: qi,
2500
+ loadAll: Ui,
2501
+ dump: Ri,
2502
+ YAMLException: Vi,
2503
+ types: Di,
2504
+ safeLoad: Gi,
2505
+ safeLoadAll: zi,
2506
+ safeDump: Hi
2507
2507
  };
2508
- const Ji = {
2508
+ const Wi = {
2509
2509
  key: 0,
2510
2510
  class: "config-card-display-form"
2511
- }, Wi = ["data-testid"], Yi = {
2511
+ }, Yi = ["data-testid"], Zi = {
2512
2512
  key: 0,
2513
2513
  class: "config-card-prop-section-title"
2514
- }, Zi = {
2514
+ }, Xi = {
2515
2515
  key: 1,
2516
2516
  class: "config-card-display-json"
2517
- }, Xi = {
2517
+ }, Qi = {
2518
2518
  key: 2,
2519
2519
  class: "config-card-display-yaml"
2520
- }, Qi = /* @__PURE__ */ te({
2520
+ }, es = /* @__PURE__ */ te({
2521
2521
  __name: "ConfigCardDisplay",
2522
2522
  props: {
2523
2523
  propertyCollections: {
@@ -2543,20 +2543,20 @@ const Ji = {
2543
2543
  }
2544
2544
  },
2545
2545
  setup(e) {
2546
- const n = e, t = Ze(), { i18n: { t: a } } = re.useI18n(), r = (s) => !!(s.tooltip || t[`${s.key}-label-tooltip`]), o = E(""), i = E("");
2546
+ const n = e, t = Ze(), { i18n: { t: a } } = re.useI18n(), r = (s) => !!(s.tooltip || t[`${s.key}-label-tooltip`]), o = K(""), i = K("");
2547
2547
  return ve(() => n.format, (s) => {
2548
- s === "json" ? o.value = JSON.stringify(n.record, null, 2) : s === "yaml" && (i.value = Hi.dump(n.record));
2548
+ s === "json" ? o.value = JSON.stringify(n.record, null, 2) : s === "yaml" && (i.value = Ji.dump(n.record));
2549
2549
  }, { immediate: !0 }), (s, l) => {
2550
- const c = U("KCodeBlock");
2550
+ const c = q("KCodeBlock");
2551
2551
  return m(), j(pe, null, [
2552
- e.format === "structured" ? (m(), j("div", Ji, [
2552
+ e.format === "structured" ? (m(), j("div", Wi, [
2553
2553
  (m(!0), j(pe, null, ce(e.propListTypes, (d) => (m(), j("div", {
2554
2554
  key: `config-card-details-${d}-props`,
2555
2555
  class: Ae(`config-card-details-${d}-props`),
2556
2556
  "data-testid": `config-card-details-${d}-props`
2557
2557
  }, [
2558
- d !== "basic" ? (m(), j("div", Yi, M(d === "advanced" ? g(a)("baseConfigCard.sections.advanced") : g(a)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
2559
- (m(!0), j(pe, null, ce(e.propertyCollections[d], (u) => (m(), V(bt, {
2558
+ d !== "basic" ? (m(), j("div", Zi, M(d === "advanced" ? g(a)("baseConfigCard.sections.advanced") : g(a)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
2559
+ (m(!0), j(pe, null, ce(e.propertyCollections[d], (u) => (m(), D(bt, {
2560
2560
  key: u.key,
2561
2561
  item: u
2562
2562
  }, be({
@@ -2579,18 +2579,18 @@ const Ji = {
2579
2579
  key: "0"
2580
2580
  } : void 0
2581
2581
  ]), 1032, ["item"]))), 128))
2582
- ], 10, Wi))), 128))
2582
+ ], 10, Yi))), 128))
2583
2583
  ])) : G("", !0),
2584
- e.format === "json" ? (m(), j("div", Zi, [
2585
- K(c, {
2584
+ e.format === "json" ? (m(), j("div", Xi, [
2585
+ F(c, {
2586
2586
  id: "config-card-codeblock",
2587
2587
  code: o.value,
2588
2588
  language: "json",
2589
2589
  theme: "dark"
2590
2590
  }, null, 8, ["code"])
2591
2591
  ])) : G("", !0),
2592
- e.format === "yaml" ? (m(), j("div", Xi, [
2593
- K(c, {
2592
+ e.format === "yaml" ? (m(), j("div", Qi, [
2593
+ F(c, {
2594
2594
  id: "config-card-codeblock",
2595
2595
  code: i.value,
2596
2596
  language: "yaml",
@@ -2600,18 +2600,18 @@ const Ji = {
2600
2600
  ], 64);
2601
2601
  };
2602
2602
  }
2603
- }), es = /* @__PURE__ */ me(Qi, [["__scopeId", "data-v-6c45e9e4"]]), rn = "24px", ts = (e, n) => {
2603
+ }), ts = /* @__PURE__ */ me(es, [["__scopeId", "data-v-6c45e9e4"]]), rn = "24px", ns = (e, n) => {
2604
2604
  const t = e.__vccOpts || e;
2605
2605
  for (const [a, r] of n)
2606
2606
  t[a] = r;
2607
2607
  return t;
2608
- }, ns = (e) => (ga("data-v-dd88a2bb"), e = e(), ya(), e), as = ["aria-hidden"], rs = {
2608
+ }, as = (e) => (ya("data-v-dd88a2bb"), e = e(), ha(), e), rs = ["aria-hidden"], os = {
2609
2609
  key: 0,
2610
2610
  "data-testid": "kui-icon-svg-title"
2611
- }, os = /* @__PURE__ */ ns(() => /* @__PURE__ */ B("path", {
2611
+ }, is = /* @__PURE__ */ as(() => /* @__PURE__ */ B("path", {
2612
2612
  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",
2613
2613
  fill: "currentColor"
2614
- }, null, -1)), is = /* @__PURE__ */ te({
2614
+ }, null, -1)), ss = /* @__PURE__ */ te({
2615
2615
  __name: "BookIcon",
2616
2616
  props: {
2617
2617
  /** The accessibility text provided to screen readers */
@@ -2680,11 +2680,11 @@ const Ji = {
2680
2680
  lineHeight: "0",
2681
2681
  width: t.value
2682
2682
  }));
2683
- return (r, o) => (m(), V(Be(e.as), {
2683
+ return (r, o) => (m(), D(Be(e.as), {
2684
2684
  "aria-hidden": e.decorative ? "true" : void 0,
2685
2685
  class: "kui-icon book-icon",
2686
2686
  "data-testid": "kui-icon-wrapper-book-icon",
2687
- style: fa(a.value)
2687
+ style: ma(a.value)
2688
2688
  }, {
2689
2689
  default: h(() => [
2690
2690
  (m(), j("svg", {
@@ -2697,23 +2697,23 @@ const Ji = {
2697
2697
  width: "100%",
2698
2698
  xmlns: "http://www.w3.org/2000/svg"
2699
2699
  }, [
2700
- e.title ? (m(), j("title", rs, M(e.title), 1)) : G("", !0),
2701
- os
2702
- ], 8, as))
2700
+ e.title ? (m(), j("title", os, M(e.title), 1)) : G("", !0),
2701
+ is
2702
+ ], 8, rs))
2703
2703
  ]),
2704
2704
  _: 1
2705
2705
  }, 8, ["aria-hidden", "style"]));
2706
2706
  }
2707
- }), ss = /* @__PURE__ */ ts(is, [["__scopeId", "data-v-dd88a2bb"]]), ls = { "data-testid": "config-card-title" }, us = { class: "config-card-actions" }, cs = ["href"], ds = {
2707
+ }), ls = /* @__PURE__ */ ns(ss, [["__scopeId", "data-v-dd88a2bb"]]), us = { "data-testid": "config-card-title" }, cs = { class: "config-card-actions" }, ds = ["href"], ps = {
2708
2708
  key: 2,
2709
2709
  class: "config-card-details-section"
2710
- }, ps = {
2710
+ }, fs = {
2711
2711
  key: 3,
2712
2712
  class: "config-card-details-section"
2713
- }, fs = ["data-testid"], ms = {
2713
+ }, ms = ["data-testid"], gs = {
2714
2714
  key: 0,
2715
2715
  class: "config-card-prop-section-title"
2716
- }, gs = /* @__PURE__ */ te({
2716
+ }, ys = /* @__PURE__ */ te({
2717
2717
  __name: "EntityBaseConfigCard",
2718
2718
  props: {
2719
2719
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -2804,8 +2804,8 @@ const Ji = {
2804
2804
  label: "YAML",
2805
2805
  value: "yaml"
2806
2806
  }
2807
- ], d = E("structured"), u = (v) => {
2808
- d.value = v == null ? void 0 : v.value;
2807
+ ], d = K("structured"), u = (b) => {
2808
+ d.value = b == null ? void 0 : b.value;
2809
2809
  }, y = {
2810
2810
  id: {
2811
2811
  type: Q.ID,
@@ -2840,21 +2840,21 @@ const Ji = {
2840
2840
  // the last property displayed
2841
2841
  section: ue.Basic
2842
2842
  }
2843
- }, f = E(!1), I = E(!1), b = E(""), p = E(), A = O(() => {
2844
- var v, k, N;
2843
+ }, f = K(!1), I = K(!1), v = K(""), p = K(), _ = O(() => {
2844
+ var b, k, N;
2845
2845
  if (!p.value)
2846
2846
  return [];
2847
- const L = [], _ = Object.keys(p.value).length;
2848
- for (const F in p.value) {
2849
- const P = (k = (v = a.configSchema) == null ? void 0 : v[F]) == null ? void 0 : k.order, D = (N = y[F]) == null ? void 0 : N.order;
2850
- let Z = _;
2851
- (D || D === 0) && (Z = D === -1 ? _ + 1 : D), P && (Z = P === -1 ? _ + 1 : P), L.push([F, Z]);
2847
+ const L = [], S = Object.keys(p.value).length;
2848
+ for (const E in p.value) {
2849
+ const P = (k = (b = a.configSchema) == null ? void 0 : b[E]) == null ? void 0 : k.order, V = (N = y[E]) == null ? void 0 : N.order;
2850
+ let Z = S;
2851
+ (V || V === 0) && (Z = V === -1 ? S + 1 : V), P && (Z = P === -1 ? S + 1 : P), L.push([E, Z]);
2852
2852
  }
2853
- return L.sort(function(F, P) {
2854
- return F[1] - P[1];
2855
- }), L.map((F) => {
2856
- var P, D;
2857
- const Z = F[0], z = (P = p.value) == null ? void 0 : P[Z], X = ((D = a.configSchema) == null ? void 0 : D[Z]) || {}, le = y[Z];
2853
+ return L.sort(function(E, P) {
2854
+ return E[1] - P[1];
2855
+ }), L.map((E) => {
2856
+ var P, V;
2857
+ const Z = E[0], z = (P = p.value) == null ? void 0 : P[Z], X = ((V = a.configSchema) == null ? void 0 : V[Z]) || {}, le = y[Z];
2858
2858
  return {
2859
2859
  key: Z,
2860
2860
  value: z,
@@ -2864,78 +2864,78 @@ const Ji = {
2864
2864
  tooltip: X.tooltip ?? ((le == null ? void 0 : le.tooltip) || void 0),
2865
2865
  section: X.section ?? ((le == null ? void 0 : le.section) || ue.Advanced)
2866
2866
  };
2867
- }).filter((F) => !F.hidden && F.key !== a.pluginConfigKey);
2867
+ }).filter((E) => !E.hidden && E.key !== a.pluginConfigKey);
2868
2868
  }), w = O(() => {
2869
- var v, k;
2869
+ var b, k;
2870
2870
  if (!p.value || !a.pluginConfigKey)
2871
2871
  return [];
2872
- const N = p.value[a.pluginConfigKey] || {}, L = Object.keys(N).length, _ = [];
2873
- for (const F in N) {
2874
- const P = (k = (v = a.pluginConfigSchema) == null ? void 0 : v[F]) == null ? void 0 : k.order, D = N[F];
2875
- let Z = D != null && D !== "" ? L - 1 : L;
2876
- P && (Z = P === -1 ? L + 1 : P), _.push([F, Z]);
2872
+ const N = p.value[a.pluginConfigKey] || {}, L = Object.keys(N).length, S = [];
2873
+ for (const E in N) {
2874
+ const P = (k = (b = a.pluginConfigSchema) == null ? void 0 : b[E]) == null ? void 0 : k.order, V = N[E];
2875
+ let Z = V != null && V !== "" ? L - 1 : L;
2876
+ P && (Z = P === -1 ? L + 1 : P), S.push([E, Z]);
2877
2877
  }
2878
- return _.sort(function(F, P) {
2879
- return F[1] - P[1];
2880
- }), _.map((F) => {
2878
+ return S.sort(function(E, P) {
2879
+ return E[1] - P[1];
2880
+ }), S.map((E) => {
2881
2881
  var P;
2882
- const D = F[0], Z = N[D], z = ((P = a.pluginConfigSchema) == null ? void 0 : P[D]) || {};
2882
+ const V = E[0], Z = N[V], z = ((P = a.pluginConfigSchema) == null ? void 0 : P[V]) || {};
2883
2883
  return {
2884
- key: D,
2884
+ key: V,
2885
2885
  value: Z,
2886
2886
  hidden: z.hidden || !1,
2887
2887
  type: z.type ?? Q.Text,
2888
- label: z.label ?? s(D),
2888
+ label: z.label ?? s(V),
2889
2889
  tooltip: z.tooltip ?? void 0,
2890
2890
  section: ue.Plugin
2891
2891
  };
2892
- }).filter((F) => !F.hidden);
2892
+ }).filter((E) => !E.hidden);
2893
2893
  }), C = O(() => {
2894
- var v, k, N, L;
2894
+ var b, k, N, L;
2895
2895
  return {
2896
- basic: (v = A.value) == null ? void 0 : v.filter((_) => _.section === ue.Basic),
2897
- advanced: (k = A.value) == null ? void 0 : k.filter((_) => _.section === ue.Advanced),
2898
- plugin: (L = w.value) == null ? void 0 : L.concat((N = A.value) == null ? void 0 : N.filter((_) => _.section === ue.Plugin))
2896
+ basic: (b = _.value) == null ? void 0 : b.filter((S) => S.section === ue.Basic),
2897
+ advanced: (k = _.value) == null ? void 0 : k.filter((S) => S.section === ue.Advanced),
2898
+ plugin: (L = w.value) == null ? void 0 : L.concat((N = _.value) == null ? void 0 : N.filter((S) => S.section === ue.Plugin))
2899
2899
  };
2900
- }), S = O(() => {
2901
- const v = [];
2902
- return C.value.basic.length && v.push("basic"), C.value.advanced.length && v.push("advanced"), C.value.plugin.length && v.push("plugin"), v;
2903
- }), x = (v) => !!(v.tooltip || r[`${v.key}-label-tooltip`]), q = O(() => {
2904
- var v, k;
2900
+ }), A = O(() => {
2901
+ const b = [];
2902
+ return C.value.basic.length && b.push("basic"), C.value.advanced.length && b.push("advanced"), C.value.plugin.length && b.push("plugin"), b;
2903
+ }), x = (b) => !!(b.tooltip || r[`${b.key}-label-tooltip`]), U = O(() => {
2904
+ var b, k;
2905
2905
  let N = `${a.config.apiBaseUrl}${a.fetchUrl}`;
2906
- return a.config.app === "konnect" ? N = N.replace(/{controlPlaneId}/gi, ((v = a.config) == null ? void 0 : v.controlPlaneId) || "") : a.config.app === "kongManager" && (N = N.replace(/\/{workspace}/gi, (k = a.config) != null && k.workspace ? `/${a.config.workspace}` : "")), N = N.replace(/{id}/gi, a.config.entityId), N;
2907
- }), R = (v) => {
2908
- p.value && v(JSON.stringify(p.value)) ? n("copy:success", p.value) : n("copy:error");
2906
+ return a.config.app === "konnect" ? N = N.replace(/{controlPlaneId}/gi, ((b = a.config) == null ? void 0 : b.controlPlaneId) || "") : a.config.app === "kongManager" && (N = N.replace(/\/{workspace}/gi, (k = a.config) != null && k.workspace ? `/${a.config.workspace}` : "")), N = N.replace(/{id}/gi, a.config.entityId), N;
2907
+ }), R = (b) => {
2908
+ p.value && b(JSON.stringify(p.value)) ? n("copy:success", p.value) : n("copy:error");
2909
2909
  };
2910
- return ve(f, (v) => {
2911
- n("loading", v);
2910
+ return ve(f, (b) => {
2911
+ n("loading", b);
2912
2912
  }, { immediate: !0 }), Xe(async () => {
2913
2913
  I.value = !1, f.value = !0;
2914
2914
  try {
2915
- const { data: v } = await l.get(q.value);
2915
+ const { data: b } = await l.get(U.value);
2916
2916
  if (a.dataKey)
2917
- if (typeof v[a.dataKey] < "u")
2918
- p.value = { ...v[a.dataKey] };
2917
+ if (typeof b[a.dataKey] < "u")
2918
+ p.value = { ...b[a.dataKey] };
2919
2919
  else
2920
2920
  throw new Error(o("errors.dataKeyUndefined", { dataKey: a.dataKey }));
2921
2921
  else
2922
- p.value = { ...v };
2922
+ p.value = { ...b };
2923
2923
  Object.keys(a.configSchema).filter((k) => a.configSchema[k].forceShow).forEach((k) => {
2924
2924
  p.value && typeof p.value[k] > "u" && (p.value[k] = null);
2925
- }), n("fetch:success", v);
2926
- } catch (v) {
2927
- const k = i(v);
2928
- b.value = k.startsWith("code") ? o("baseConfigCard.errors.load") : k, I.value = !0, n("fetch:error", v);
2925
+ }), n("fetch:success", b);
2926
+ } catch (b) {
2927
+ const k = i(b);
2928
+ v.value = k.startsWith("code") ? o("baseConfigCard.errors.load") : k, I.value = !0, n("fetch:error", b);
2929
2929
  } finally {
2930
2930
  f.value = !1;
2931
2931
  }
2932
- }), (v, k) => {
2933
- const N = U("KLabel"), L = U("KSelect"), _ = U("KButton"), F = U("KClipboardProvider"), P = U("KSkeleton"), D = U("KEmptyState"), Z = U("KCard");
2934
- return m(), V(Z, { class: "kong-ui-entity-base-config-card" }, be({
2932
+ }), (b, k) => {
2933
+ const N = q("KLabel"), L = q("KSelect"), S = q("KButton"), E = q("KClipboardProvider"), P = q("KSkeleton"), V = q("KEmptyState"), Z = q("KCard");
2934
+ return m(), D(Z, { class: "kong-ui-entity-base-config-card" }, be({
2935
2935
  actions: h(() => [
2936
- B("div", us, [
2937
- W(v.$slots, "actions", {}, void 0, !0),
2938
- e.config.jsonYamlEnabled ? (m(), V(N, {
2936
+ B("div", cs, [
2937
+ W(b.$slots, "actions", {}, void 0, !0),
2938
+ e.config.jsonYamlEnabled ? (m(), D(N, {
2939
2939
  key: 0,
2940
2940
  class: "config-format-select-label",
2941
2941
  "data-testid": "config-format-select-label"
@@ -2945,14 +2945,14 @@ const Ji = {
2945
2945
  ]),
2946
2946
  _: 1
2947
2947
  })) : G("", !0),
2948
- e.config.jsonYamlEnabled ? (m(), V(L, {
2948
+ e.config.jsonYamlEnabled ? (m(), D(L, {
2949
2949
  key: 1,
2950
2950
  appearance: "select",
2951
2951
  "data-testid": "select-config-format",
2952
2952
  items: c,
2953
2953
  onChange: u
2954
2954
  })) : G("", !0),
2955
- a.config.jsonYamlEnabled && e.configCardDoc ? (m(), V(_, {
2955
+ a.config.jsonYamlEnabled && e.configCardDoc ? (m(), D(S, {
2956
2956
  key: 2,
2957
2957
  appearance: "btn-link",
2958
2958
  class: "book-icon",
@@ -2964,14 +2964,14 @@ const Ji = {
2964
2964
  rel: "noopener",
2965
2965
  target: "_blank"
2966
2966
  }, [
2967
- K(g(ss), { size: g(mr) }, null, 8, ["size"])
2968
- ], 8, cs)
2967
+ F(g(ls), { size: g(gr) }, null, 8, ["size"])
2968
+ ], 8, ds)
2969
2969
  ]),
2970
2970
  _: 1
2971
2971
  })) : G("", !0),
2972
- e.config.jsonYamlEnabled ? G("", !0) : (m(), V(F, { key: 3 }, {
2972
+ e.config.jsonYamlEnabled ? G("", !0) : (m(), D(E, { key: 3 }, {
2973
2973
  default: h(({ copyToClipboard: z }) => [
2974
- !f.value && !I.value ? (m(), V(_, {
2974
+ !f.value && !I.value ? (m(), D(S, {
2975
2975
  key: 0,
2976
2976
  appearance: "btn-link",
2977
2977
  "data-testid": "json-copy-button",
@@ -2988,54 +2988,54 @@ const Ji = {
2988
2988
  ])
2989
2989
  ]),
2990
2990
  body: h(() => [
2991
- f.value ? (m(), V(P, {
2991
+ f.value ? (m(), D(P, {
2992
2992
  key: 0,
2993
2993
  "data-testid": "config-card-loader",
2994
2994
  "table-columns": 2,
2995
2995
  type: "table"
2996
- })) : I.value ? (m(), V(D, {
2996
+ })) : I.value ? (m(), D(V, {
2997
2997
  key: 1,
2998
2998
  "data-testid": "config-card-fetch-error",
2999
2999
  "is-error": ""
3000
3000
  }, {
3001
3001
  message: h(() => [
3002
- B("h3", null, M(b.value), 1)
3002
+ B("h3", null, M(v.value), 1)
3003
3003
  ]),
3004
3004
  _: 1
3005
3005
  })) : G("", !0),
3006
- e.config.jsonYamlEnabled ? (m(), j("div", ds, [
3007
- K(es, {
3006
+ e.config.jsonYamlEnabled ? (m(), j("div", ps, [
3007
+ F(ts, {
3008
3008
  format: d.value,
3009
- "prop-list-types": S.value,
3009
+ "prop-list-types": A.value,
3010
3010
  "property-collections": C.value,
3011
3011
  record: p.value
3012
3012
  }, be({ _: 2 }, [
3013
- ce(Object.keys(v.$slots), (z) => ({
3013
+ ce(Object.keys(b.$slots), (z) => ({
3014
3014
  name: z,
3015
3015
  fn: h(({ row: X, rowValue: le }) => [
3016
- W(v.$slots, z, {
3016
+ W(b.$slots, z, {
3017
3017
  row: X,
3018
3018
  rowValue: le
3019
3019
  }, void 0, !0)
3020
3020
  ])
3021
3021
  }))
3022
3022
  ]), 1032, ["format", "prop-list-types", "property-collections", "record"])
3023
- ])) : (m(), j("div", ps, [
3024
- (m(!0), j(pe, null, ce(S.value, (z) => (m(), j("div", {
3023
+ ])) : (m(), j("div", fs, [
3024
+ (m(!0), j(pe, null, ce(A.value, (z) => (m(), j("div", {
3025
3025
  key: `config-card-details-${z}-props`,
3026
3026
  class: Ae(`config-card-details-${z}-props`),
3027
3027
  "data-testid": `config-card-details-${z}-props`
3028
3028
  }, [
3029
- z !== "basic" ? (m(), j("div", ms, M(z === "advanced" ? g(o)("baseConfigCard.sections.advanced") : g(o)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
3030
- (m(!0), j(pe, null, ce(C.value[z], (X) => (m(), V(bt, {
3029
+ z !== "basic" ? (m(), j("div", gs, M(z === "advanced" ? g(o)("baseConfigCard.sections.advanced") : g(o)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
3030
+ (m(!0), j(pe, null, ce(C.value[z], (X) => (m(), D(bt, {
3031
3031
  key: X.key,
3032
3032
  item: X
3033
3033
  }, be({
3034
3034
  label: h(() => [
3035
- W(v.$slots, `${X.key}-label`, { row: X }, void 0, !0)
3035
+ W(b.$slots, `${X.key}-label`, { row: X }, void 0, !0)
3036
3036
  ]),
3037
3037
  [X.key]: h(({ rowValue: le }) => [
3038
- W(v.$slots, X.key, {
3038
+ W(b.$slots, X.key, {
3039
3039
  row: X,
3040
3040
  rowValue: le
3041
3041
  }, void 0, !0)
@@ -3045,12 +3045,12 @@ const Ji = {
3045
3045
  x(X) ? {
3046
3046
  name: "label-tooltip",
3047
3047
  fn: h(() => [
3048
- W(v.$slots, `${X.key}-label-tooltip`, { row: X }, void 0, !0)
3048
+ W(b.$slots, `${X.key}-label-tooltip`, { row: X }, void 0, !0)
3049
3049
  ]),
3050
3050
  key: "0"
3051
3051
  } : void 0
3052
3052
  ]), 1032, ["item"]))), 128))
3053
- ], 10, fs))), 128))
3053
+ ], 10, ms))), 128))
3054
3054
  ]))
3055
3055
  ]),
3056
3056
  _: 2
@@ -3058,8 +3058,8 @@ const Ji = {
3058
3058
  e.hideTitle ? void 0 : {
3059
3059
  name: "title",
3060
3060
  fn: h(() => [
3061
- B("div", ls, [
3062
- W(v.$slots, "title", {}, () => [
3061
+ B("div", us, [
3062
+ W(b.$slots, "title", {}, () => [
3063
3063
  Y(M(g(o)("baseConfigCard.title")), 1)
3064
3064
  ], !0)
3065
3065
  ])
@@ -3069,10 +3069,10 @@ const Ji = {
3069
3069
  ]), 1024);
3070
3070
  };
3071
3071
  }
3072
- }), ys = /* @__PURE__ */ me(gs, [["__scopeId", "data-v-64349aa2"]]), hs = ["onReset", "onSubmit"], vs = {
3072
+ }), hs = /* @__PURE__ */ me(ys, [["__scopeId", "data-v-64349aa2"]]), vs = ["onReset", "onSubmit"], bs = {
3073
3073
  class: "form-actions",
3074
3074
  "data-testid": "form-actions"
3075
- }, bs = /* @__PURE__ */ te({
3075
+ }, ks = /* @__PURE__ */ te({
3076
3076
  __name: "EntityBaseForm",
3077
3077
  props: {
3078
3078
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -3124,17 +3124,17 @@ const Ji = {
3124
3124
  var t;
3125
3125
  const a = e, r = gt(), { i18n: { t: o } } = re.useI18n(), { getMessageFromError: i } = re.useErrors(), { axiosInstance: s } = re.useAxios({
3126
3126
  headers: (t = a.config) == null ? void 0 : t.requestHeaders
3127
- }), l = E(!1), c = E(!1), d = E(""), u = O(() => a.canSubmit === !1 || a.isReadonly), y = O(() => {
3128
- var p, A;
3127
+ }), l = K(!1), c = K(!1), d = K(""), u = O(() => a.canSubmit === !1 || a.isReadonly), y = O(() => {
3128
+ var p, _;
3129
3129
  if (!a.editId)
3130
3130
  return "";
3131
3131
  let w = `${a.config.apiBaseUrl}${a.fetchUrl}`;
3132
- return a.config.app === "konnect" ? w = w.replace(/{controlPlaneId}/gi, ((p = a.config) == null ? void 0 : p.controlPlaneId) || "") : a.config.app === "kongManager" && (w = w.replace(/\/{workspace}/gi, (A = a.config) != null && A.workspace ? `/${a.config.workspace}` : "")), w = w.replace(/{id}/gi, a.editId), w;
3132
+ return a.config.app === "konnect" ? w = w.replace(/{controlPlaneId}/gi, ((p = a.config) == null ? void 0 : p.controlPlaneId) || "") : a.config.app === "kongManager" && (w = w.replace(/\/{workspace}/gi, (_ = a.config) != null && _.workspace ? `/${a.config.workspace}` : "")), w = w.replace(/{id}/gi, a.editId), w;
3133
3133
  }), f = () => {
3134
3134
  a.config.cancelRoute ? r.push(a.config.cancelRoute) : I();
3135
3135
  }, I = () => {
3136
3136
  n("cancel");
3137
- }, b = () => {
3137
+ }, v = () => {
3138
3138
  u.value || n("submit");
3139
3139
  };
3140
3140
  return ve(() => l.value, (p) => {
@@ -3146,19 +3146,19 @@ const Ji = {
3146
3146
  const { data: p } = await s.get(y.value);
3147
3147
  n("fetch:success", p);
3148
3148
  } catch (p) {
3149
- const A = i(p);
3150
- d.value = A.startsWith("code") ? o("baseForm.errors.edit") : A, c.value = !0, n("fetch:error", p);
3149
+ const _ = i(p);
3150
+ d.value = _.startsWith("code") ? o("baseForm.errors.edit") : _, c.value = !0, n("fetch:error", p);
3151
3151
  } finally {
3152
3152
  l.value = !1;
3153
3153
  }
3154
- }), (p, A) => {
3155
- const w = U("KSkeleton"), C = U("KEmptyState"), S = U("KAlert"), x = U("KButton"), q = U("KCard");
3156
- return m(), V(q, { class: "kong-ui-entity-base-form" }, {
3154
+ }), (p, _) => {
3155
+ const w = q("KSkeleton"), C = q("KEmptyState"), A = q("KAlert"), x = q("KButton"), U = q("KCard");
3156
+ return m(), D(U, { class: "kong-ui-entity-base-form" }, {
3157
3157
  body: h(() => [
3158
- l.value ? (m(), V(w, {
3158
+ l.value ? (m(), D(w, {
3159
3159
  key: 0,
3160
3160
  type: "form"
3161
- })) : c.value ? (m(), V(C, {
3161
+ })) : c.value ? (m(), D(C, {
3162
3162
  key: 1,
3163
3163
  "cta-text": g(o)("baseForm.actions.back"),
3164
3164
  "data-testid": "form-fetch-error",
@@ -3173,18 +3173,18 @@ const Ji = {
3173
3173
  key: 2,
3174
3174
  "data-testid": "form-content",
3175
3175
  onReset: Ge(I, ["prevent"]),
3176
- onSubmit: Ge(b, ["prevent"])
3176
+ onSubmit: Ge(v, ["prevent"])
3177
3177
  }, [
3178
3178
  W(p.$slots, "default", {}, void 0, !0),
3179
- e.errorMessage ? (m(), V(S, {
3179
+ e.errorMessage ? (m(), D(A, {
3180
3180
  key: 0,
3181
3181
  "alert-message": e.errorMessage,
3182
3182
  appearance: "danger",
3183
3183
  "data-testid": "form-error"
3184
3184
  }, null, 8, ["alert-message"])) : G("", !0),
3185
- B("div", vs, [
3185
+ B("div", bs, [
3186
3186
  W(p.$slots, "form-actions", {}, () => [
3187
- K(x, {
3187
+ F(x, {
3188
3188
  appearance: "outline",
3189
3189
  "data-testid": "form-cancel",
3190
3190
  disabled: e.isReadonly,
@@ -3195,7 +3195,7 @@ const Ji = {
3195
3195
  ]),
3196
3196
  _: 1
3197
3197
  }, 8, ["disabled"]),
3198
- K(x, {
3198
+ F(x, {
3199
3199
  appearance: "primary",
3200
3200
  "data-testid": "form-submit",
3201
3201
  disabled: u.value,
@@ -3208,16 +3208,16 @@ const Ji = {
3208
3208
  }, 8, ["disabled"])
3209
3209
  ], !0)
3210
3210
  ])
3211
- ], 40, hs))
3211
+ ], 40, vs))
3212
3212
  ]),
3213
3213
  _: 3
3214
3214
  });
3215
3215
  };
3216
3216
  }
3217
- }), ks = /* @__PURE__ */ me(bs, [["__scopeId", "data-v-44a90aae"]]), Cs = {
3217
+ }), Cs = /* @__PURE__ */ me(ks, [["__scopeId", "data-v-44a90aae"]]), ws = {
3218
3218
  key: 0,
3219
3219
  "data-testid": "first-col"
3220
- }, ws = /* @__PURE__ */ te({
3220
+ }, _s = /* @__PURE__ */ te({
3221
3221
  __name: "EntityBaseTableCell",
3222
3222
  props: {
3223
3223
  keyName: {
@@ -3231,67 +3231,67 @@ const Ji = {
3231
3231
  },
3232
3232
  setup(e) {
3233
3233
  const n = e, t = O(() => {
3234
- var b;
3235
- return ((b = n.rowEl) == null ? void 0 : b.querySelector(`[data-testid="${n.keyName}"]`)) || null;
3234
+ var v;
3235
+ return ((v = n.rowEl) == null ? void 0 : v.querySelector(`[data-testid="${n.keyName}"]`)) || null;
3236
3236
  }), a = O(() => {
3237
- var b;
3238
- return ((b = t.value) == null ? void 0 : b.querySelector('[data-testid="first-col"]')) || null;
3237
+ var v;
3238
+ return ((v = t.value) == null ? void 0 : v.querySelector('[data-testid="first-col"]')) || null;
3239
3239
  }), r = O(() => {
3240
- var b, p;
3241
- const A = (b = n.rowEl) == null ? void 0 : b.querySelectorAll("td");
3242
- return A ? ((p = A[0]) == null ? void 0 : p.getAttribute("data-testid")) === n.keyName : !1;
3240
+ var v, p;
3241
+ const _ = (v = n.rowEl) == null ? void 0 : v.querySelectorAll("td");
3242
+ return _ ? ((p = _[0]) == null ? void 0 : p.getAttribute("data-testid")) === n.keyName : !1;
3243
3243
  });
3244
3244
  let o;
3245
3245
  const i = () => {
3246
3246
  o && (o.disconnect(), o = void 0);
3247
3247
  }, s = () => {
3248
- var b, p, A;
3249
- c.value = ((b = a.value) == null ? void 0 : b.getBoundingClientRect().width) || 0, d.value = ((p = t.value) == null ? void 0 : p.clientWidth) || 0, u.value = ((A = l.value) == null ? void 0 : A.innerText) || "";
3250
- }, l = E({}), c = E(0), d = E(0), u = E(""), y = O(() => [a.value, t.value]), f = ve(
3248
+ var v, p, _;
3249
+ c.value = ((v = a.value) == null ? void 0 : v.getBoundingClientRect().width) || 0, d.value = ((p = t.value) == null ? void 0 : p.clientWidth) || 0, u.value = ((_ = l.value) == null ? void 0 : _.innerText) || "";
3250
+ }, l = K({}), c = K(0), d = K(0), u = K(""), y = O(() => [a.value, t.value]), f = ve(
3251
3251
  y,
3252
- (b) => {
3252
+ (v) => {
3253
3253
  if (r.value && (i(), "ResizeObserver" in window && window)) {
3254
3254
  o = new ResizeObserver((p) => {
3255
3255
  window.requestAnimationFrame(() => {
3256
3256
  !Array.isArray(p) || !p.length || s();
3257
3257
  });
3258
3258
  });
3259
- for (const p of b)
3259
+ for (const p of v)
3260
3260
  p && o.observe(p);
3261
3261
  }
3262
3262
  },
3263
3263
  { immediate: !0, flush: "post", deep: !0 }
3264
3264
  ), I = O(() => r.value ? c.value > d.value : !1);
3265
- return da(() => {
3265
+ return pa(() => {
3266
3266
  s();
3267
- }), pa(() => {
3267
+ }), fa(() => {
3268
3268
  f();
3269
- }), (b, p) => {
3270
- const A = U("KTooltip");
3269
+ }), (v, p) => {
3270
+ const _ = q("KTooltip");
3271
3271
  return m(), j("span", {
3272
3272
  ref_key: "contentRef",
3273
3273
  ref: l,
3274
3274
  class: "content-wrapper"
3275
3275
  }, [
3276
- r.value ? (m(), j("span", Cs, [
3277
- K(A, {
3276
+ r.value ? (m(), j("span", ws, [
3277
+ F(_, {
3278
3278
  label: I.value ? u.value : "",
3279
3279
  "max-width": "300",
3280
3280
  placement: "bottomStart"
3281
3281
  }, {
3282
3282
  default: h(() => [
3283
- W(b.$slots, "default", {}, void 0, !0)
3283
+ W(v.$slots, "default", {}, void 0, !0)
3284
3284
  ]),
3285
3285
  _: 3
3286
3286
  }, 8, ["label"])
3287
- ])) : W(b.$slots, "default", { key: 1 }, void 0, !0)
3287
+ ])) : W(v.$slots, "default", { key: 1 }, void 0, !0)
3288
3288
  ], 512);
3289
3289
  };
3290
3290
  }
3291
- }), _s = /* @__PURE__ */ me(ws, [["__scopeId", "data-v-e42a20c9"]]), Is = { class: "toolbar-container" }, As = {
3291
+ }), Is = /* @__PURE__ */ me(_s, [["__scopeId", "data-v-e42a20c9"]]), As = { class: "toolbar-container" }, Ss = {
3292
3292
  key: 0,
3293
3293
  class: "toolbar-button-container"
3294
- }, Ss = ["data-testid"], xs = /* @__PURE__ */ te({
3294
+ }, xs = ["data-testid"], Ts = /* @__PURE__ */ te({
3295
3295
  __name: "EntityBaseTable",
3296
3296
  props: {
3297
3297
  // table header configuration
@@ -3402,11 +3402,11 @@ const Ji = {
3402
3402
  setup(e, { emit: n }) {
3403
3403
  const t = e, { i18n: { t: a } } = re.useI18n(), r = O(() => t.cacheIdentifier || t.preferencesStorageKey), o = (C) => C.hasData || !!t.query, i = O(() => {
3404
3404
  const C = [];
3405
- return Object.keys(t.tableHeaders).forEach((S) => {
3406
- const x = t.tableHeaders[S];
3405
+ return Object.keys(t.tableHeaders).forEach((A) => {
3406
+ const x = t.tableHeaders[A];
3407
3407
  C.push({
3408
- label: x.label ?? S,
3409
- key: S,
3408
+ label: x.label ?? A,
3409
+ key: A,
3410
3410
  sortable: x.sortable ?? !1
3411
3411
  });
3412
3412
  }), t.enableEntityActions && C.push({
@@ -3417,44 +3417,44 @@ const Ji = {
3417
3417
  "data-rowid": C.id,
3418
3418
  "data-testid": C.name,
3419
3419
  ...t.rowAttributes(C)
3420
- }), l = E({}), c = (C) => {
3421
- var S;
3422
- return (S = l.value) == null ? void 0 : S.$el.querySelector(`[data-rowid="${C.id}"]`);
3420
+ }), l = K({}), c = (C) => {
3421
+ var A;
3422
+ return (A = l.value) == null ? void 0 : A.$el.querySelector(`[data-rowid="${C.id}"]`);
3423
3423
  }, d = (C) => {
3424
- const S = {
3424
+ const A = {
3425
3425
  "data-testid": C.headerKey,
3426
3426
  ...t.cellAttributes(C)
3427
3427
  };
3428
- return C.colIndex === 0 && (S.style = {
3428
+ return C.colIndex === 0 && (A.style = {
3429
3429
  maxWidth: "250px",
3430
3430
  overflowX: "hidden",
3431
3431
  textOverflow: "ellipsis"
3432
- }), S;
3432
+ }), A;
3433
3433
  }, u = () => {
3434
3434
  n("empty-state-cta-clicked"), y();
3435
3435
  }, y = () => {
3436
3436
  n("clear-search-input");
3437
- }, f = O(() => t.disableRowClick ? void 0 : (C, S) => {
3438
- n("click:row", S);
3437
+ }, f = O(() => t.disableRowClick ? void 0 : (C, A) => {
3438
+ n("click:row", A);
3439
3439
  }), I = (C) => {
3440
3440
  n("sort", C);
3441
- }, { setTablePreferences: b, getTablePreferences: p } = Aa(), A = O(() => {
3441
+ }, { setTablePreferences: v, getTablePreferences: p } = Sa(), _ = O(() => {
3442
3442
  const C = p(t.preferencesStorageKey);
3443
3443
  return {
3444
3444
  ...t.initialFetcherParams,
3445
3445
  ...C
3446
3446
  };
3447
3447
  }), w = (C) => {
3448
- t.preferencesStorageKey && b(t.preferencesStorageKey, C);
3448
+ t.preferencesStorageKey && v(t.preferencesStorageKey, C);
3449
3449
  };
3450
- return (C, S) => {
3451
- const x = U("KIcon"), q = U("KButton"), R = U("KDropdownMenu"), v = U("KTable"), k = U("KCard");
3452
- return m(), V(k, {
3450
+ return (C, A) => {
3451
+ const x = q("KIcon"), U = q("KButton"), R = q("KDropdownMenu"), b = q("KTable"), k = q("KCard");
3452
+ return m(), D(k, {
3453
3453
  class: "kong-ui-entity-base-table",
3454
3454
  title: e.title
3455
3455
  }, {
3456
3456
  body: h(() => [
3457
- K(v, {
3457
+ F(b, {
3458
3458
  ref_key: "tableRefs",
3459
3459
  ref: l,
3460
3460
  "cache-identifier": r.value,
@@ -3475,32 +3475,32 @@ const Ji = {
3475
3475
  "has-error": !!e.errorMessage,
3476
3476
  headers: i.value,
3477
3477
  "hide-pagination-when-optional": "",
3478
- "initial-fetcher-params": A.value,
3478
+ "initial-fetcher-params": _.value,
3479
3479
  "is-loading": e.isLoading,
3480
3480
  "pagination-type": e.paginationType,
3481
3481
  "row-attrs": s,
3482
3482
  "search-input": e.query,
3483
3483
  onKtableEmptyStateCtaClicked: u,
3484
3484
  "onRow:click": f.value,
3485
- onSort: S[0] || (S[0] = (N) => I(N)),
3485
+ onSort: A[0] || (A[0] = (N) => I(N)),
3486
3486
  "onUpdate:tablePreferences": w
3487
3487
  }, be({
3488
3488
  toolbar: h(({ state: N }) => [
3489
- Ve(B("div", Is, [
3489
+ Ve(B("div", As, [
3490
3490
  W(C.$slots, "toolbar-filter", {}, void 0, !0),
3491
- C.$slots["toolbar-button"] ? (m(), j("div", As, [
3491
+ C.$slots["toolbar-button"] ? (m(), j("div", Ss, [
3492
3492
  W(C.$slots, "toolbar-button", {}, void 0, !0)
3493
3493
  ])) : G("", !0)
3494
3494
  ], 512), [
3495
3495
  [De, o(N)]
3496
3496
  ])
3497
3497
  ]),
3498
- actions: h(({ row: N, rowKey: L, rowValue: _ }) => [
3498
+ actions: h(({ row: N, rowKey: L, rowValue: S }) => [
3499
3499
  B("div", {
3500
3500
  class: "actions-container",
3501
3501
  "data-testid": N.name
3502
3502
  }, [
3503
- K(R, {
3503
+ F(R, {
3504
3504
  "kpop-attributes": { placement: "bottomEnd" },
3505
3505
  width: e.dropdownMenuWidth
3506
3506
  }, {
@@ -3508,18 +3508,18 @@ const Ji = {
3508
3508
  W(C.$slots, "actions", {
3509
3509
  row: N,
3510
3510
  rowKey: L,
3511
- rowValue: _
3511
+ rowValue: S
3512
3512
  }, void 0, !0)
3513
3513
  ]),
3514
3514
  default: h(() => [
3515
- K(q, {
3515
+ F(U, {
3516
3516
  class: "actions-trigger",
3517
3517
  "data-testid": "overflow-actions-button",
3518
3518
  size: "small"
3519
3519
  }, {
3520
3520
  icon: h(() => [
3521
- K(x, {
3522
- color: g(pr),
3521
+ F(x, {
3522
+ color: g(fr),
3523
3523
  icon: "more",
3524
3524
  size: "16"
3525
3525
  }, null, 8, ["color"])
@@ -3529,21 +3529,21 @@ const Ji = {
3529
3529
  ]),
3530
3530
  _: 2
3531
3531
  }, 1032, ["width"])
3532
- ], 8, Ss)
3532
+ ], 8, xs)
3533
3533
  ]),
3534
3534
  _: 2
3535
3535
  }, [
3536
3536
  ce(e.tableHeaders, (N, L) => ({
3537
3537
  name: L,
3538
- fn: h(({ row: _, rowKey: F, rowValue: P }) => [
3539
- K(_s, {
3538
+ fn: h(({ row: S, rowKey: E, rowValue: P }) => [
3539
+ F(Is, {
3540
3540
  "key-name": String(L),
3541
- "row-el": c(_)
3541
+ "row-el": c(S)
3542
3542
  }, {
3543
3543
  default: h(() => [
3544
3544
  W(C.$slots, L, {
3545
- row: _,
3546
- rowKey: F,
3545
+ row: S,
3546
+ rowKey: E,
3547
3547
  rowValue: P
3548
3548
  }, () => [
3549
3549
  Y(M(P), 1)
@@ -3559,13 +3559,13 @@ const Ji = {
3559
3559
  }, 8, ["title"]);
3560
3560
  };
3561
3561
  }
3562
- }), Ts = /* @__PURE__ */ me(xs, [["__scopeId", "data-v-6bf92df6"]]), $s = {
3562
+ }), $s = /* @__PURE__ */ me(Ts, [["__scopeId", "data-v-6bf92df6"]]), js = {
3563
3563
  key: 0,
3564
3564
  class: "kong-ui-entity-delete-error"
3565
- }, js = {
3565
+ }, Ms = {
3566
3566
  key: 1,
3567
3567
  class: "description"
3568
- }, Ms = /* @__PURE__ */ te({
3568
+ }, Os = /* @__PURE__ */ te({
3569
3569
  __name: "EntityDeleteModal",
3570
3570
  props: {
3571
3571
  visible: {
@@ -3610,8 +3610,8 @@ const Ji = {
3610
3610
  n("proceed");
3611
3611
  };
3612
3612
  return (s, l) => {
3613
- const c = U("KAlert"), d = U("KPrompt");
3614
- return m(), V(d, {
3613
+ const c = q("KAlert"), d = q("KPrompt");
3614
+ return m(), D(d, {
3615
3615
  "action-button-text": "Yes, delete",
3616
3616
  "action-pending": e.actionPending,
3617
3617
  class: "kong-ui-entity-delete-modal",
@@ -3623,15 +3623,15 @@ const Ji = {
3623
3623
  onProceed: i
3624
3624
  }, {
3625
3625
  "body-content": h(() => [
3626
- e.error ? (m(), j("div", $s, [
3627
- K(c, { appearance: "danger" }, {
3626
+ e.error ? (m(), j("div", js, [
3627
+ F(c, { appearance: "danger" }, {
3628
3628
  alertMessage: h(() => [
3629
3629
  Y(M(e.error), 1)
3630
3630
  ]),
3631
3631
  _: 1
3632
3632
  })
3633
3633
  ])) : G("", !0),
3634
- K(g(a), {
3634
+ F(g(a), {
3635
3635
  class: "message",
3636
3636
  keypath: t.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
3637
3637
  tag: "p"
@@ -3649,7 +3649,7 @@ const Ji = {
3649
3649
  key: "0"
3650
3650
  } : void 0
3651
3651
  ]), 1032, ["keypath"]),
3652
- t.description || s.$slots.description ? (m(), j("div", js, [
3652
+ t.description || s.$slots.description ? (m(), j("div", Ms, [
3653
3653
  W(s.$slots, "description", {}, () => [
3654
3654
  B("p", null, M(t.description), 1)
3655
3655
  ], !0)
@@ -3659,13 +3659,13 @@ const Ji = {
3659
3659
  }, 8, ["action-pending", "confirmation-text", "is-visible", "title"]);
3660
3660
  };
3661
3661
  }
3662
- }), Os = /* @__PURE__ */ me(Ms, [["__scopeId", "data-v-1c9a2a07"]]), Es = {
3662
+ }), Es = /* @__PURE__ */ me(Os, [["__scopeId", "data-v-1c9a2a07"]]), Ks = {
3663
3663
  fill: "none",
3664
3664
  height: "20",
3665
3665
  viewBox: "0 0 20 20",
3666
3666
  width: "20",
3667
3667
  xmlns: "http://www.w3.org/2000/svg"
3668
- }, Ks = {
3668
+ }, Fs = {
3669
3669
  id: "mask0_180_20349",
3670
3670
  height: "20",
3671
3671
  maskUnits: "userSpaceOnUse",
@@ -3673,35 +3673,35 @@ const Ji = {
3673
3673
  width: "20",
3674
3674
  x: "0",
3675
3675
  y: "0"
3676
- }, Fs = ["fill"], Ns = { mask: "url(#mask0_180_20349)" }, Bs = ["fill"], Ls = /* @__PURE__ */ te({
3676
+ }, Ns = ["fill"], Bs = { mask: "url(#mask0_180_20349)" }, Ls = ["fill"], Ps = /* @__PURE__ */ te({
3677
3677
  __name: "IconFilter",
3678
3678
  props: {
3679
3679
  color: {
3680
3680
  type: String,
3681
- default: `var(--kong-ui-entity-filter-color, ${cr})`
3681
+ default: `var(--kong-ui-entity-filter-color, ${dr})`
3682
3682
  }
3683
3683
  },
3684
3684
  setup(e) {
3685
- return (n, t) => (m(), j("svg", Es, [
3686
- B("mask", Ks, [
3685
+ return (n, t) => (m(), j("svg", Ks, [
3686
+ B("mask", Fs, [
3687
3687
  B("rect", {
3688
3688
  fill: e.color,
3689
3689
  height: "20",
3690
3690
  width: "20"
3691
- }, null, 8, Fs)
3691
+ }, null, 8, Ns)
3692
3692
  ]),
3693
- B("g", Ns, [
3693
+ B("g", Bs, [
3694
3694
  B("path", {
3695
3695
  d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
3696
3696
  fill: e.color
3697
- }, null, 8, Bs)
3697
+ }, null, 8, Ls)
3698
3698
  ])
3699
3699
  ]));
3700
3700
  }
3701
- }), Ps = {
3701
+ }), qs = {
3702
3702
  key: 1,
3703
3703
  class: "kong-ui-entity-filter"
3704
- }, qs = { class: "menu-item-title" }, Us = { class: "menu-item-indicator" }, Rs = { class: "menu-item-body" }, Vs = ["for"], Ds = { class: "menu-item-buttons" }, Gs = /* @__PURE__ */ te({
3704
+ }, Us = { class: "menu-item-title" }, Rs = { class: "menu-item-indicator" }, Vs = { class: "menu-item-body" }, Ds = ["for"], Gs = { class: "menu-item-buttons" }, zs = /* @__PURE__ */ te({
3705
3705
  __name: "EntityFilter",
3706
3706
  props: {
3707
3707
  // filter config, either exact match or fuzzy match
@@ -3721,21 +3721,21 @@ const Ji = {
3721
3721
  },
3722
3722
  emits: ["update:modelValue"],
3723
3723
  setup(e, { emit: n }) {
3724
- const t = e, { i18n: { t: a } } = re.useI18n(), r = E(!1), o = E({}), i = O(() => {
3724
+ const t = e, { i18n: { t: a } } = re.useI18n(), r = K(!1), o = K({}), i = O(() => {
3725
3725
  const p = [];
3726
- return new URLSearchParams(t.modelValue).forEach((A, w) => {
3727
- A !== "" && p.push(w);
3726
+ return new URLSearchParams(t.modelValue).forEach((_, w) => {
3727
+ _ !== "" && p.push(w);
3728
3728
  }), p;
3729
3729
  }), s = O(() => {
3730
3730
  const p = t.config.fields;
3731
- return Object.keys(p).filter((A) => p[A].searchable).map((A) => ({
3732
- label: p[A].label || A,
3733
- value: A
3731
+ return Object.keys(p).filter((_) => p[_].searchable).map((_) => ({
3732
+ label: p[_].label || _,
3733
+ value: _
3734
3734
  }));
3735
3735
  });
3736
3736
  ve(() => t.modelValue, (p) => {
3737
- o.value = {}, new URLSearchParams(p).forEach((A, w) => {
3738
- o.value[w] = A;
3737
+ o.value = {}, new URLSearchParams(p).forEach((_, w) => {
3738
+ o.value[w] = _;
3739
3739
  });
3740
3740
  });
3741
3741
  const l = () => {
@@ -3743,28 +3743,28 @@ const Ji = {
3743
3743
  }, c = (p) => {
3744
3744
  n("update:modelValue", p);
3745
3745
  }, d = (p) => `filter-${p}`, u = (p) => {
3746
- var A, w;
3747
- return (((w = (A = t.config.schema) == null ? void 0 : A[p]) == null ? void 0 : w.values) ?? []).map((C) => ({
3746
+ var _, w;
3747
+ return (((w = (_ = t.config.schema) == null ? void 0 : _[p]) == null ? void 0 : w.values) ?? []).map((C) => ({
3748
3748
  value: C,
3749
3749
  label: C
3750
3750
  }));
3751
3751
  }, y = (p) => {
3752
- var A, w;
3753
- return ((w = (A = t.config.schema) == null ? void 0 : A[p]) == null ? void 0 : w.type) ?? "text";
3752
+ var _, w;
3753
+ return ((w = (_ = t.config.schema) == null ? void 0 : _[p]) == null ? void 0 : w.type) ?? "text";
3754
3754
  }, f = (p) => {
3755
3755
  o.value = {
3756
3756
  ...o.value,
3757
3757
  [p]: ""
3758
- }, b();
3758
+ }, v();
3759
3759
  }, I = () => {
3760
- o.value = {}, b(!0);
3761
- }, b = (p = !1) => {
3762
- const A = Object.keys(o.value).reduce((w, C) => (o.value[C] && (w[C] = `${o.value[C]}`), w), {});
3763
- p && (r.value = !1), n("update:modelValue", new URLSearchParams(A).toString());
3760
+ o.value = {}, v(!0);
3761
+ }, v = (p = !1) => {
3762
+ const _ = Object.keys(o.value).reduce((w, C) => (o.value[C] && (w[C] = `${o.value[C]}`), w), {});
3763
+ p && (r.value = !1), n("update:modelValue", new URLSearchParams(_).toString());
3764
3764
  };
3765
- return (p, A) => {
3766
- const w = U("KInput"), C = U("KButton"), S = U("KSelect"), x = U("KMenuItem"), q = U("KMenu");
3767
- return e.config.isExactMatch ? (m(), V(w, {
3765
+ return (p, _) => {
3766
+ const w = q("KInput"), C = q("KButton"), A = q("KSelect"), x = q("KMenuItem"), U = q("KMenu");
3767
+ return e.config.isExactMatch ? (m(), D(w, {
3768
3768
  key: 0,
3769
3769
  autocomplete: "off",
3770
3770
  class: "kong-ui-entity-filter-input",
@@ -3774,11 +3774,11 @@ const Ji = {
3774
3774
  "onUpdate:modelValue": c
3775
3775
  }, {
3776
3776
  icon: h(() => [
3777
- K(Ls)
3777
+ F(Ps)
3778
3778
  ]),
3779
3779
  _: 1
3780
- }, 8, ["model-value", "placeholder"])) : (m(), j("div", Ps, [
3781
- K(C, {
3780
+ }, 8, ["model-value", "placeholder"])) : (m(), j("div", qs, [
3781
+ F(C, {
3782
3782
  appearance: "btn-link",
3783
3783
  "data-testid": "filter-button",
3784
3784
  icon: "filter",
@@ -3795,18 +3795,18 @@ const Ji = {
3795
3795
  }, null, 512), [
3796
3796
  [De, r.value]
3797
3797
  ]),
3798
- Ve(K(q, { class: "kong-ui-entity-filter-menu" }, {
3798
+ Ve(F(U, { class: "kong-ui-entity-filter-menu" }, {
3799
3799
  body: h(() => [
3800
- (m(!0), j(pe, null, ce(s.value, (R, v) => (m(), V(x, {
3800
+ (m(!0), j(pe, null, ce(s.value, (R, b) => (m(), D(x, {
3801
3801
  key: R.value,
3802
3802
  "data-testid": R.value,
3803
3803
  expandable: "",
3804
- "last-menu-item": v === s.value.length - 1
3804
+ "last-menu-item": b === s.value.length - 1
3805
3805
  }, {
3806
3806
  itemTitle: h(() => [
3807
- B("span", qs, [
3807
+ B("span", Us, [
3808
3808
  Y(M(R.label) + " ", 1),
3809
- Ve(B("span", Us, null, 512), [
3809
+ Ve(B("span", Rs, null, 512), [
3810
3810
  [De, i.value.includes(R.value)]
3811
3811
  ])
3812
3812
  ])
@@ -3814,12 +3814,12 @@ const Ji = {
3814
3814
  itemBody: h(() => {
3815
3815
  var k, N;
3816
3816
  return [
3817
- B("div", Rs, [
3817
+ B("div", Vs, [
3818
3818
  B("label", {
3819
3819
  class: "menu-item-label",
3820
3820
  for: d(R.value)
3821
- }, M(g(a)("filter.fieldLabel")), 9, Vs),
3822
- ((N = (k = e.config.schema) == null ? void 0 : k[R.value]) == null ? void 0 : N.type) === "select" ? (m(), V(S, {
3821
+ }, M(g(a)("filter.fieldLabel")), 9, Ds),
3822
+ ((N = (k = e.config.schema) == null ? void 0 : k[R.value]) == null ? void 0 : N.type) === "select" ? (m(), D(A, {
3823
3823
  key: 0,
3824
3824
  id: d(R.value),
3825
3825
  modelValue: o.value[R.value],
@@ -3827,7 +3827,7 @@ const Ji = {
3827
3827
  appearance: "select",
3828
3828
  items: u(R.value),
3829
3829
  placeholder: g(a)("filter.selectPlaceholder")
3830
- }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (m(), V(w, {
3830
+ }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (m(), D(w, {
3831
3831
  key: 1,
3832
3832
  id: d(R.value),
3833
3833
  modelValue: o.value[R.value],
@@ -3838,19 +3838,19 @@ const Ji = {
3838
3838
  type: y(R.value)
3839
3839
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
3840
3840
  ]),
3841
- B("div", Ds, [
3842
- K(C, {
3841
+ B("div", Gs, [
3842
+ F(C, {
3843
3843
  appearance: "btn-link",
3844
3844
  "data-testid": "apply-filter",
3845
3845
  size: "small",
3846
- onClick: A[0] || (A[0] = (L) => b(!0))
3846
+ onClick: _[0] || (_[0] = (L) => v(!0))
3847
3847
  }, {
3848
3848
  default: h(() => [
3849
3849
  Y(M(g(a)("filter.applyButtonText")), 1)
3850
3850
  ]),
3851
3851
  _: 1
3852
3852
  }),
3853
- K(C, {
3853
+ F(C, {
3854
3854
  appearance: "btn-link",
3855
3855
  "data-testid": "clear-filter",
3856
3856
  size: "small",
@@ -3868,7 +3868,7 @@ const Ji = {
3868
3868
  }, 1032, ["data-testid", "last-menu-item"]))), 128))
3869
3869
  ]),
3870
3870
  actionButton: h(() => [
3871
- K(C, { onClick: I }, {
3871
+ F(C, { onClick: I }, {
3872
3872
  default: h(() => [
3873
3873
  Y(M(g(a)("filter.clearAllButtonText")), 1)
3874
3874
  ]),
@@ -3882,7 +3882,7 @@ const Ji = {
3882
3882
  ]));
3883
3883
  };
3884
3884
  }
3885
- }), zs = /* @__PURE__ */ me(Gs, [["__scopeId", "data-v-745f38c0"]]), Re = /* @__PURE__ */ te({
3885
+ }), Hs = /* @__PURE__ */ me(zs, [["__scopeId", "data-v-745f38c0"]]), Re = /* @__PURE__ */ te({
3886
3886
  __name: "PermissionsWrapper",
3887
3887
  props: {
3888
3888
  /**
@@ -3904,7 +3904,7 @@ const Ji = {
3904
3904
  }
3905
3905
  },
3906
3906
  setup(e) {
3907
- const n = e, t = E(void 0), a = O(() => t.value === !0 || t.value !== void 0 && n.forceShow === !0);
3907
+ const n = e, t = K(void 0), a = O(() => t.value === !0 || t.value !== void 0 && n.forceShow === !0);
3908
3908
  return ve(() => n.authFunction, async () => {
3909
3909
  t.value = await n.authFunction();
3910
3910
  }, { immediate: !0 }), (r, o) => a.value ? W(r.$slots, "default", {
@@ -3912,16 +3912,16 @@ const Ji = {
3912
3912
  isAllowed: t.value
3913
3913
  }) : G("", !0);
3914
3914
  }
3915
- }), Hs = { class: "form-section-wrapper" }, Js = {
3915
+ }), Js = { class: "form-section-wrapper" }, Ws = {
3916
3916
  key: 0,
3917
3917
  class: "form-section-title"
3918
- }, Ws = {
3918
+ }, Ys = {
3919
3919
  key: 1,
3920
3920
  class: "form-section-description"
3921
- }, Ys = {
3921
+ }, Zs = {
3922
3922
  key: 2,
3923
3923
  class: "form-section-footer"
3924
- }, Zs = { class: "form-section-content" }, Xs = /* @__PURE__ */ te({
3924
+ }, Xs = { class: "form-section-content" }, Qs = /* @__PURE__ */ te({
3925
3925
  __name: "EntityFormSection",
3926
3926
  props: {
3927
3927
  title: {
@@ -3950,35 +3950,35 @@ const Ji = {
3950
3950
  return (t, a) => (m(), j("fieldset", {
3951
3951
  class: Ae(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
3952
3952
  }, [
3953
- B("div", Hs, [
3953
+ B("div", Js, [
3954
3954
  e.hideInfoHeader ? G("", !0) : (m(), j("div", {
3955
3955
  key: 0,
3956
3956
  class: Ae(["form-section-info", { sticky: e.stickyInfoHeader }])
3957
3957
  }, [
3958
- e.title ? (m(), j("h4", Js, M(e.title), 1)) : G("", !0),
3959
- e.description || g(n).description ? (m(), j("div", Ws, [
3958
+ e.title ? (m(), j("h4", Ws, M(e.title), 1)) : G("", !0),
3959
+ e.description || g(n).description ? (m(), j("div", Ys, [
3960
3960
  W(t.$slots, "description", {}, () => [
3961
3961
  B("p", null, M(e.description), 1)
3962
3962
  ], !0)
3963
3963
  ])) : G("", !0),
3964
- g(n).footer ? (m(), j("div", Ys, [
3964
+ g(n).footer ? (m(), j("div", Zs, [
3965
3965
  W(t.$slots, "footer", {}, void 0, !0)
3966
3966
  ])) : G("", !0)
3967
3967
  ], 2)),
3968
- B("div", Zs, [
3968
+ B("div", Xs, [
3969
3969
  W(t.$slots, "default", {}, void 0, !0)
3970
3970
  ])
3971
3971
  ])
3972
3972
  ], 2));
3973
3973
  }
3974
- }), Qs = /* @__PURE__ */ me(Xs, [["__scopeId", "data-v-8b6dc312"]]), { useAxios: St, useDeleteUrlBuilder: el, useErrors: tl, useExternalLinkCreator: Al, useFetchUrlBuilder: Sl, useFetcher: nl, useDebouncedFilter: al, useStringHelpers: xl, useHelpers: Tl, useGatewayFeatureSupported: $l, useTruncationDetector: jl } = re;
3975
- const rl = { class: "add-consumer-form-container" }, ol = { class: "add-consumer-form-cta" }, il = { class: "select-item-label" }, sl = {
3974
+ }), el = /* @__PURE__ */ me(Qs, [["__scopeId", "data-v-8b6dc312"]]), { useAxios: St, useDeleteUrlBuilder: tl, useErrors: nl, useExternalLinkCreator: Sl, useFetchUrlBuilder: xl, useFetcher: al, useDebouncedFilter: rl, useStringHelpers: Tl, useHelpers: $l, useGatewayFeatureSupported: jl, useTruncationDetector: Ml } = re;
3975
+ const ol = { class: "add-consumer-form-container" }, il = { class: "add-consumer-form-cta" }, sl = { class: "select-item-label" }, ll = {
3976
3976
  key: 0,
3977
3977
  class: "select-item-desc"
3978
- }, ll = {
3978
+ }, ul = {
3979
3979
  key: 0,
3980
3980
  class: "kong-ui-entity-add-consumers-error"
3981
- }, ul = { key: 0 }, cl = /* @__PURE__ */ te({
3981
+ }, cl = { key: 0 }, dl = /* @__PURE__ */ te({
3982
3982
  __name: "AddConsumerModal",
3983
3983
  props: {
3984
3984
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -3998,14 +3998,14 @@ const rl = { class: "add-consumer-form-container" }, ol = { class: "add-consumer
3998
3998
  var L;
3999
3999
  const t = e, { i18n: { t: a } } = Qe.useI18n(), { axiosInstance: r } = St({
4000
4000
  headers: (L = t.config) == null ? void 0 : L.requestHeaders
4001
- }), o = E([]), {
4001
+ }), o = K([]), {
4002
4002
  debouncedQueryChange: i,
4003
4003
  loading: s,
4004
4004
  allRecords: l,
4005
4005
  error: c,
4006
4006
  loadItems: d,
4007
4007
  results: u
4008
- } = al(
4008
+ } = rl(
4009
4009
  t.config,
4010
4010
  Se.list[t.config.app].all,
4011
4011
  "",
@@ -4013,100 +4013,100 @@ const rl = { class: "add-consumer-form-container" }, ol = { class: "add-consumer
4013
4013
  fetchedItemsKey: "data",
4014
4014
  searchKeys: ["username", "id"]
4015
4015
  }
4016
- ), y = (_) => _, f = O(() => c.value ? a("consumers.errors.general") : ""), I = E(0), b = O(() => l.value === void 0), p = O(() => u.value.map((_) => ({
4017
- label: _.username || _.customId,
4018
- value: _.id,
4019
- selected: o.value.includes(_.id),
4020
- data: _
4016
+ ), y = (S) => S, f = O(() => c.value ? a("consumers.errors.general") : ""), I = K(0), v = O(() => l.value === void 0), p = O(() => u.value.map((S) => ({
4017
+ label: S.username || S.customId,
4018
+ value: S.id,
4019
+ selected: o.value.includes(S.id),
4020
+ data: S
4021
4021
  // we need this to determine whether or not to show the description text
4022
- }))), A = (_) => {
4022
+ }))), _ = (S) => {
4023
4023
  var P;
4024
- const F = b.value ? u.value.find((D) => D.id === _) : (P = l.value) == null ? void 0 : P.find((D) => D.id === _);
4025
- return F ? F.username || F.custom_id : _;
4024
+ const E = v.value ? u.value.find((V) => V.id === S) : (P = l.value) == null ? void 0 : P.find((V) => V.id === S);
4025
+ return E ? E.username || E.custom_id : S;
4026
4026
  }, w = () => {
4027
4027
  x.value = "", C.value = [], k.value = [], n("cancel");
4028
- }, C = E([]), S = E(!1), x = E(""), q = async () => {
4028
+ }, C = K([]), A = K(!1), x = K(""), U = async () => {
4029
4029
  if (!o.value.length) {
4030
4030
  x.value = "", k.value = [], n("cancel");
4031
4031
  return;
4032
4032
  }
4033
- S.value = !0, x.value = "", C.value = [], k.value = [];
4033
+ A.value = !0, x.value = "", C.value = [], k.value = [];
4034
4034
  try {
4035
- const _ = o.value.map((D) => v(D)), F = await Promise.allSettled(_);
4035
+ const S = o.value.map((V) => b(V)), E = await Promise.allSettled(S);
4036
4036
  let P = !0;
4037
- F.forEach((D) => {
4038
- D.status !== "fulfilled" && (P = !1);
4039
- }), P ? (C.value = [], k.value = [], n("add:success", o.value), o.value = []) : (C.value.length && n("add:partial-success", C.value), o.value = [], N(F));
4037
+ E.forEach((V) => {
4038
+ V.status !== "fulfilled" && (P = !1);
4039
+ }), P ? (C.value = [], k.value = [], n("add:success", o.value), o.value = []) : (C.value.length && n("add:partial-success", C.value), o.value = [], N(E));
4040
4040
  } catch {
4041
4041
  x.value = a("consumers.errors.add"), n("error", x.value);
4042
4042
  } finally {
4043
- S.value = !1;
4043
+ A.value = !1;
4044
4044
  }
4045
4045
  }, R = O(() => {
4046
- var F, P, D, Z;
4047
- let _ = `${t.config.apiBaseUrl}${Se.list[t.config.app].forConsumerGroup}`;
4048
- return t.config.app === "konnect" ? _ = _.replace(/{controlPlaneId}/gi, ((F = t.config) == null ? void 0 : F.controlPlaneId) || "").replace(/{consumerGroupId}/gi, ((P = t.config) == null ? void 0 : P.consumerGroupId) || "") : t.config.app === "kongManager" && (_ = _.replace(/\/{workspace}/gi, (D = t.config) != null && D.workspace ? `/${t.config.workspace}` : "").replace(/{consumerGroupId}/gi, ((Z = t.config) == null ? void 0 : Z.consumerGroupId) || "")), _;
4049
- }), v = async (_) => {
4050
- const F = {
4051
- consumer: _
4046
+ var E, P, V, Z;
4047
+ let S = `${t.config.apiBaseUrl}${Se.list[t.config.app].forConsumerGroup}`;
4048
+ return t.config.app === "konnect" ? S = S.replace(/{controlPlaneId}/gi, ((E = t.config) == null ? void 0 : E.controlPlaneId) || "").replace(/{consumerGroupId}/gi, ((P = t.config) == null ? void 0 : P.consumerGroupId) || "") : t.config.app === "kongManager" && (S = S.replace(/\/{workspace}/gi, (V = t.config) != null && V.workspace ? `/${t.config.workspace}` : "").replace(/{consumerGroupId}/gi, ((Z = t.config) == null ? void 0 : Z.consumerGroupId) || "")), S;
4049
+ }), b = async (S) => {
4050
+ const E = {
4051
+ consumer: S
4052
4052
  };
4053
4053
  try {
4054
- const P = await r.post(R.value, F);
4055
- return C.value.push(_), P;
4054
+ const P = await r.post(R.value, E);
4055
+ return C.value.push(S), P;
4056
4056
  } catch (P) {
4057
- let D = `${A(_)} - ${P.message}`;
4058
- return P.response.status === 409 && (D = `${A(_)} - ${a("consumers.errors.already_added")}`), Promise.reject(Error(D));
4057
+ let V = `${_(S)} - ${P.message}`;
4058
+ return P.response.status === 409 && (V = `${_(S)} - ${a("consumers.errors.already_added")}`), Promise.reject(Error(V));
4059
4059
  }
4060
- }, k = E([]), N = (_) => {
4061
- k.value = _.map((F) => {
4060
+ }, k = K([]), N = (S) => {
4061
+ k.value = S.map((E) => {
4062
4062
  var P;
4063
- return (P = F.reason) == null ? void 0 : P.message;
4063
+ return (P = E.reason) == null ? void 0 : P.message;
4064
4064
  }).filter(Boolean);
4065
4065
  };
4066
4066
  return ve(p, () => {
4067
4067
  I.value++;
4068
4068
  }, { immediate: !0, deep: !0 }), Xe(async () => {
4069
4069
  await d();
4070
- }), (_, F) => {
4071
- const P = U("KMultiselect"), D = U("KAlert"), Z = U("KPrompt");
4072
- return m(), V(Z, {
4073
- "action-pending": S.value,
4070
+ }), (S, E) => {
4071
+ const P = q("KMultiselect"), V = q("KAlert"), Z = q("KPrompt");
4072
+ return m(), D(Z, {
4073
+ "action-pending": A.value,
4074
4074
  class: "kong-ui-entities-add-consumers-modal",
4075
4075
  "data-testid": "add-consumer-modal",
4076
4076
  "is-visible": e.visible,
4077
4077
  title: g(a)("consumers.consumer_groups.add.title"),
4078
4078
  onCanceled: w,
4079
- onProceed: q
4079
+ onProceed: U
4080
4080
  }, {
4081
4081
  "body-content": h(() => [
4082
- B("div", rl, [
4083
- B("p", ol, M(g(a)("consumers.consumer_groups.add.ctaText")), 1),
4084
- K(P, {
4082
+ B("div", ol, [
4083
+ B("p", il, M(g(a)("consumers.consumer_groups.add.ctaText")), 1),
4084
+ F(P, {
4085
4085
  modelValue: o.value,
4086
- "onUpdate:modelValue": F[0] || (F[0] = (z) => o.value = z),
4086
+ "onUpdate:modelValue": E[0] || (E[0] = (z) => o.value = z),
4087
4087
  autosuggest: "",
4088
4088
  "data-testid": "add-consumers-multiselect",
4089
- "dropdown-footer-text": b.value ? g(a)("consumers.consumer_groups.add.footer") : void 0,
4089
+ "dropdown-footer-text": v.value ? g(a)("consumers.consumer_groups.add.footer") : void 0,
4090
4090
  items: p.value,
4091
4091
  label: g(a)("consumers.consumer_groups.add.consumers_label"),
4092
4092
  loading: g(s),
4093
4093
  placeholder: g(a)("consumers.consumer_groups.add.consumer_placeholder"),
4094
- readonly: S.value,
4094
+ readonly: A.value,
4095
4095
  required: "",
4096
4096
  width: "100%",
4097
4097
  onQueryChange: g(i)
4098
4098
  }, {
4099
4099
  "item-template": h(({ item: z }) => [
4100
- B("div", il, M(z.label), 1),
4101
- y(z).data.username && y(z).data.custom_id ? (m(), j("div", sl, M(y(z).data.custom_id), 1)) : G("", !0)
4100
+ B("div", sl, M(z.label), 1),
4101
+ y(z).data.username && y(z).data.custom_id ? (m(), j("div", ll, M(y(z).data.custom_id), 1)) : G("", !0)
4102
4102
  ]),
4103
4103
  _: 1
4104
4104
  }, 8, ["modelValue", "dropdown-footer-text", "items", "label", "loading", "placeholder", "readonly", "onQueryChange"]),
4105
- x.value || f.value || k.value.length ? (m(), j("div", ll, [
4106
- K(D, { appearance: "danger" }, {
4105
+ x.value || f.value || k.value.length ? (m(), j("div", ul, [
4106
+ F(V, { appearance: "danger" }, {
4107
4107
  alertMessage: h(() => [
4108
4108
  B("p", null, M(g(a)("consumers.errors.add")), 1),
4109
- k.value.length ? (m(), j("ul", ul, [
4109
+ k.value.length ? (m(), j("ul", cl, [
4110
4110
  (m(!0), j(pe, null, ce(k.value, (z, X) => (m(), j("li", { key: X }, M(z), 1))), 128))
4111
4111
  ])) : G("", !0),
4112
4112
  B("div", null, M(x.value || f.value), 1)
@@ -4126,7 +4126,7 @@ const xt = (e, n) => {
4126
4126
  for (const [a, r] of n)
4127
4127
  t[a] = r;
4128
4128
  return t;
4129
- }, dl = /* @__PURE__ */ xt(cl, [["__scopeId", "data-v-86f09821"]]), pl = { class: "kong-ui-entities-consumers-list" }, fl = { key: 1 }, ml = /* @__PURE__ */ te({
4129
+ }, pl = /* @__PURE__ */ xt(dl, [["__scopeId", "data-v-86f09821"]]), fl = { class: "kong-ui-entities-consumers-list" }, ml = { key: 1 }, gl = /* @__PURE__ */ te({
4130
4130
  __name: "ConsumerList",
4131
4131
  props: {
4132
4132
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -4170,17 +4170,19 @@ const xt = (e, n) => {
4170
4170
  var Et;
4171
4171
  const t = e, { i18nT: a, i18n: { t: r } } = Qe.useI18n(), o = gt(), { axiosInstance: i } = St({
4172
4172
  headers: (Et = t.config) == null ? void 0 : Et.requestHeaders
4173
- }), s = E(1), l = O(() => !!t.config.consumerGroupId), c = O(() => t.config.app !== "kongManager" || !!t.config.disableSorting), d = {
4173
+ }), s = K(1), l = O(() => !!t.config.consumerGroupId), c = O(
4174
+ () => l.value ? "kong-ui-entities-consumers-list-in-group-page" : "kong-ui-entities-consumers-list"
4175
+ ), d = O(() => t.config.app !== "kongManager" || !!t.config.disableSorting), u = {
4174
4176
  username: { label: r("consumers.list.table_headers.username"), searchable: !0, sortable: !0 },
4175
4177
  custom_id: { label: r("consumers.list.table_headers.custom_id"), searchable: !0, sortable: !0 },
4176
4178
  tags: { label: r("consumers.list.table_headers.tags"), sortable: !1 }
4177
- }, u = d, y = ($) => ({
4179
+ }, y = u, f = ($) => ({
4178
4180
  "data-testid": $.username ?? $.custom_id ?? $.id
4179
- }), f = O(() => {
4181
+ }), I = O(() => {
4180
4182
  var H, ae, fe, we;
4181
4183
  let $ = `${t.config.apiBaseUrl}${Se.list[t.config.app][l.value ? "forConsumerGroup" : "all"]}`;
4182
4184
  return t.config.app === "konnect" ? $ = $.replace(/{controlPlaneId}/gi, ((H = t.config) == null ? void 0 : H.controlPlaneId) || "").replace(/{consumerGroupId}/gi, ((ae = t.config) == null ? void 0 : ae.consumerGroupId) || "") : t.config.app === "kongManager" && ($ = $.replace(/\/{workspace}/gi, (fe = t.config) != null && fe.workspace ? `/${t.config.workspace}` : "").replace(/{consumerGroupId}/gi, ((we = t.config) == null ? void 0 : we.consumerGroupId) || "")), $;
4183
- }), I = E(""), b = O(() => {
4185
+ }), v = K(""), p = O(() => {
4184
4186
  const $ = t.config.app === "konnect" || t.config.isExactMatch;
4185
4187
  return $ ? {
4186
4188
  isExactMatch: $,
@@ -4188,16 +4190,16 @@ const xt = (e, n) => {
4188
4190
  } : {
4189
4191
  isExactMatch: $,
4190
4192
  fields: {
4191
- username: d.username,
4192
- custom_id: d.custom_id
4193
+ username: u.username,
4194
+ custom_id: u.custom_id
4193
4195
  },
4194
4196
  schema: t.config.filterSchema
4195
4197
  };
4196
- }), p = O(() => l.value ? "consumers" : void 0), { fetcher: A, fetcherState: w } = nl(t.config, f.value, p.value), C = () => {
4197
- I.value = "";
4198
- }, S = () => {
4198
+ }), _ = O(() => l.value && !t.config.paginatedEndpoint ? "consumers" : void 0), { fetcher: w, fetcherState: C } = al(t.config, I.value, _.value), A = () => {
4199
+ v.value = "";
4200
+ }, x = () => {
4199
4201
  s.value++;
4200
- }, x = ($) => $ ?? "-", q = E(""), R = ($, H) => {
4202
+ }, U = ($) => $ ?? "-", R = K(""), b = ($, H) => {
4201
4203
  const ae = $.id;
4202
4204
  if (!H(ae)) {
4203
4205
  n("copy:error", {
@@ -4212,7 +4214,7 @@ const xt = (e, n) => {
4212
4214
  field: "id",
4213
4215
  message: r("consumers.copy.success", { val: ae })
4214
4216
  });
4215
- }, v = ($, H) => {
4217
+ }, k = ($, H) => {
4216
4218
  const ae = JSON.stringify($);
4217
4219
  if (!H(ae)) {
4218
4220
  n("copy:error", {
@@ -4225,68 +4227,68 @@ const xt = (e, n) => {
4225
4227
  entity: $,
4226
4228
  message: r("consumers.copy.success_brief")
4227
4229
  });
4228
- }, k = async ($) => {
4230
+ }, N = async ($) => {
4229
4231
  var ae;
4230
4232
  await ((ae = t.canRetrieve) == null ? void 0 : ae.call(t, $)) && o.push(t.config.getViewRoute($.id));
4231
- }, N = ($) => ({
4233
+ }, L = ($) => ({
4232
4234
  label: r("consumers.actions.view"),
4233
4235
  to: t.config.getViewRoute($)
4234
- }), L = ($) => ({
4236
+ }), S = ($) => ({
4235
4237
  label: r("consumers.actions.edit"),
4236
4238
  to: t.config.getEditRoute($)
4237
- }), _ = E(void 0), F = E(!1), P = E(!1), D = E(""), Z = el(t.config, f.value), z = ($) => {
4238
- _.value = $, F.value = !0;
4239
- }, X = () => {
4240
- F.value = !1;
4241
- }, le = async () => {
4239
+ }), E = K(void 0), P = K(!1), V = K(!1), Z = K(""), z = tl(t.config, I.value), X = ($) => {
4240
+ E.value = $, P.value = !0;
4241
+ }, le = () => {
4242
+ P.value = !1;
4243
+ }, ta = async () => {
4242
4244
  var $, H, ae;
4243
- if (($ = _.value) != null && $.id) {
4244
- P.value = !0;
4245
+ if (($ = E.value) != null && $.id) {
4246
+ V.value = !0;
4245
4247
  try {
4246
- await i.delete(Z(_.value.id)), P.value = !1, F.value = !1, s.value++, n("delete:success", _.value);
4248
+ await i.delete(z(E.value.id)), V.value = !1, P.value = !1, s.value++, n("delete:success", E.value);
4247
4249
  } catch (fe) {
4248
- D.value = ((ae = (H = fe.response) == null ? void 0 : H.data) == null ? void 0 : ae.message) || fe.message || r("consumers.errors.delete"), n("error", fe);
4250
+ Z.value = ((ae = (H = fe.response) == null ? void 0 : H.data) == null ? void 0 : ae.message) || fe.message || r("consumers.errors.delete"), n("error", fe);
4249
4251
  } finally {
4250
- P.value = !1;
4252
+ V.value = !1;
4251
4253
  }
4252
4254
  }
4253
- }, tt = E(!1), Tt = () => {
4255
+ }, tt = K(!1), Tt = () => {
4254
4256
  tt.value = !0;
4255
4257
  }, $t = () => {
4256
4258
  tt.value = !1;
4257
4259
  }, jt = ($, H) => {
4258
4260
  H || $t(), s.value++, n("add:success", $);
4259
- }, ta = () => {
4261
+ }, na = () => {
4260
4262
  l.value && Tt();
4261
- }, ye = E(void 0), nt = E(!1), na = E(""), aa = ($) => {
4263
+ }, ye = K(void 0), nt = K(!1), aa = K(""), ra = ($) => {
4262
4264
  ye.value = $, nt.value = !0;
4263
4265
  }, Mt = () => {
4264
4266
  nt.value = !1, ye.value = void 0;
4265
- }, ra = O(() => {
4267
+ }, oa = O(() => {
4266
4268
  var H, ae, fe, we;
4267
4269
  let $ = `${t.config.apiBaseUrl}${Se.list[t.config.app].oneForConsumerGroup}`;
4268
4270
  return t.config.app === "konnect" ? $ = $.replace(/{controlPlaneId}/gi, ((H = t.config) == null ? void 0 : H.controlPlaneId) || "").replace(/{consumerGroupId}/gi, ((ae = t.config) == null ? void 0 : ae.consumerGroupId) || "") : t.config.app === "kongManager" && ($ = $.replace(/\/{workspace}/gi, (fe = t.config) != null && fe.workspace ? `/${t.config.workspace}` : "").replace(/{consumerGroupId}/gi, ((we = t.config) == null ? void 0 : we.consumerGroupId) || "")), $;
4269
- }), Ot = E(!1), oa = async () => {
4271
+ }), Ot = K(!1), ia = async () => {
4270
4272
  if (ye.value) {
4271
4273
  Ot.value = !0;
4272
4274
  try {
4273
- const $ = ra.value.replace(/{consumerId}/gi, ye.value.id);
4275
+ const $ = oa.value.replace(/{consumerId}/gi, ye.value.id);
4274
4276
  await i.delete($), n("remove:success", ye.value), Mt(), s.value++;
4275
4277
  } catch ($) {
4276
- na.value = $.message || r("consumers.errors.delete"), n("error", $);
4278
+ aa.value = $.message || r("consumers.errors.delete"), n("error", $);
4277
4279
  } finally {
4278
4280
  Ot.value = !1;
4279
4281
  }
4280
4282
  }
4281
4283
  };
4282
- ve(w, ($) => {
4284
+ ve(C, ($) => {
4283
4285
  if ($.status === _e.Error) {
4284
- q.value = r("consumers.errors.general"), n("error", $.error);
4286
+ R.value = r("consumers.errors.general"), n("error", $.error);
4285
4287
  return;
4286
4288
  }
4287
- q.value = "";
4289
+ R.value = "";
4288
4290
  });
4289
- const at = E({
4291
+ const at = K({
4290
4292
  ctaPath: l.value ? void 0 : t.config.createRoute,
4291
4293
  ctaText: void 0,
4292
4294
  message: r("consumers.list.empty_state.description"),
@@ -4295,42 +4297,42 @@ const xt = (e, n) => {
4295
4297
  return Xe(async () => {
4296
4298
  await t.canCreate() && (at.value.title = l.value ? r("consumers.list.empty_state.title_for_consumer_group") : r("consumers.list.empty_state.title"), at.value.ctaText = l.value ? r("consumers.actions.add_consumer") : r("consumers.actions.create"));
4297
4299
  }), ($, H) => {
4298
- const ae = U("KButton"), fe = U("KBadge"), we = U("KTruncate"), Fe = U("KDropdownItem"), Kt = U("KClipboardProvider"), ia = U("KPrompt");
4299
- return m(), j("div", pl, [
4300
- K(g(Ts), {
4300
+ const ae = q("KButton"), fe = q("KBadge"), we = q("KTruncate"), Fe = q("KDropdownItem"), Kt = q("KClipboardProvider"), sa = q("KPrompt");
4301
+ return m(), j("div", fl, [
4302
+ F(g($s), {
4301
4303
  "cache-identifier": e.cacheIdentifier,
4302
- "disable-pagination": l.value,
4304
+ "disable-pagination": l.value && !e.config.paginatedEndpoint,
4303
4305
  "disable-pagination-page-jump": "",
4304
- "disable-sorting": c.value,
4306
+ "disable-sorting": d.value,
4305
4307
  "empty-state-options": at.value,
4306
4308
  "enable-entity-actions": "",
4307
- "error-message": q.value,
4308
- fetcher: g(A),
4309
+ "error-message": R.value,
4310
+ fetcher: g(w),
4309
4311
  "fetcher-cache-key": s.value,
4310
4312
  "pagination-type": "offset",
4311
- "preferences-storage-key": "kong-ui-entities-consumers-list",
4312
- query: I.value,
4313
- "row-attributes": y,
4314
- "table-headers": g(u),
4315
- onClearSearchInput: C,
4316
- "onClick:row": H[3] || (H[3] = (J) => k(J)),
4317
- onEmptyStateCtaClicked: ta,
4318
- onSort: S
4313
+ "preferences-storage-key": c.value,
4314
+ query: v.value,
4315
+ "row-attributes": f,
4316
+ "table-headers": g(y),
4317
+ onClearSearchInput: A,
4318
+ "onClick:row": H[3] || (H[3] = (J) => N(J)),
4319
+ onEmptyStateCtaClicked: na,
4320
+ onSort: x
4319
4321
  }, {
4320
4322
  "toolbar-filter": h(() => [
4321
- l.value ? G("", !0) : (m(), V(g(zs), {
4323
+ l.value ? G("", !0) : (m(), D(g(Hs), {
4322
4324
  key: 0,
4323
- modelValue: I.value,
4324
- "onUpdate:modelValue": H[0] || (H[0] = (J) => I.value = J),
4325
- config: b.value
4325
+ modelValue: v.value,
4326
+ "onUpdate:modelValue": H[0] || (H[0] = (J) => v.value = J),
4327
+ config: p.value
4326
4328
  }, null, 8, ["modelValue", "config"]))
4327
4329
  ]),
4328
4330
  "toolbar-button": h(() => [
4329
- K(g(Re), {
4331
+ F(g(Re), {
4330
4332
  "auth-function": () => e.canCreate()
4331
4333
  }, {
4332
4334
  default: h(() => [
4333
- K(ae, {
4335
+ F(ae, {
4334
4336
  appearance: "primary",
4335
4337
  "data-testid": "toolbar-add-consumer",
4336
4338
  icon: "plus",
@@ -4347,15 +4349,15 @@ const xt = (e, n) => {
4347
4349
  }, 8, ["auth-function"])
4348
4350
  ]),
4349
4351
  username: h(({ rowValue: J }) => [
4350
- B("b", null, M(x(J)), 1)
4352
+ B("b", null, M(U(J)), 1)
4351
4353
  ]),
4352
4354
  custom_id: h(({ rowValue: J }) => [
4353
- Y(M(x(J)), 1)
4355
+ Y(M(U(J)), 1)
4354
4356
  ]),
4355
4357
  tags: h(({ rowValue: J }) => [
4356
- J && J.length > 0 ? (m(), V(we, { key: 0 }, {
4358
+ J && J.length > 0 ? (m(), D(we, { key: 0 }, {
4357
4359
  default: h(() => [
4358
- (m(!0), j(pe, null, ce(J, (xe) => (m(), V(fe, {
4360
+ (m(!0), j(pe, null, ce(J, (xe) => (m(), D(fe, {
4359
4361
  key: xe,
4360
4362
  onClick: H[2] || (H[2] = Ge(() => {
4361
4363
  }, ["stop"]))
@@ -4367,14 +4369,14 @@ const xt = (e, n) => {
4367
4369
  }, 1024))), 128))
4368
4370
  ]),
4369
4371
  _: 2
4370
- }, 1024)) : (m(), j("span", fl, "-"))
4372
+ }, 1024)) : (m(), j("span", ml, "-"))
4371
4373
  ]),
4372
4374
  actions: h(({ row: J }) => [
4373
- K(Kt, null, {
4375
+ F(Kt, null, {
4374
4376
  default: h(({ copyToClipboard: xe }) => [
4375
- K(Fe, {
4377
+ F(Fe, {
4376
4378
  "data-testid": "action-entity-copy-id",
4377
- onClick: (sa) => R(J, xe)
4379
+ onClick: (la) => b(J, xe)
4378
4380
  }, {
4379
4381
  default: h(() => [
4380
4382
  Y(M(g(r)("consumers.actions.copy_id")), 1)
@@ -4384,11 +4386,11 @@ const xt = (e, n) => {
4384
4386
  ]),
4385
4387
  _: 2
4386
4388
  }, 1024),
4387
- K(Kt, null, {
4389
+ F(Kt, null, {
4388
4390
  default: h(({ copyToClipboard: xe }) => [
4389
- K(Fe, {
4391
+ F(Fe, {
4390
4392
  "data-testid": "action-entity-copy-json",
4391
- onClick: (sa) => v(J, xe)
4393
+ onClick: (la) => k(J, xe)
4392
4394
  }, {
4393
4395
  default: h(() => [
4394
4396
  Y(M(g(r)("consumers.actions.copy_json")), 1)
@@ -4398,38 +4400,38 @@ const xt = (e, n) => {
4398
4400
  ]),
4399
4401
  _: 2
4400
4402
  }, 1024),
4401
- K(g(Re), {
4403
+ F(g(Re), {
4402
4404
  "auth-function": () => e.canRetrieve(J)
4403
4405
  }, {
4404
4406
  default: h(() => [
4405
- K(Fe, {
4407
+ F(Fe, {
4406
4408
  "data-testid": "action-entity-view",
4407
4409
  "has-divider": "",
4408
- item: N(J.id)
4410
+ item: L(J.id)
4409
4411
  }, null, 8, ["item"])
4410
4412
  ]),
4411
4413
  _: 2
4412
4414
  }, 1032, ["auth-function"]),
4413
- K(g(Re), {
4415
+ F(g(Re), {
4414
4416
  "auth-function": () => e.canEdit(J)
4415
4417
  }, {
4416
4418
  default: h(() => [
4417
- K(Fe, {
4419
+ F(Fe, {
4418
4420
  "data-testid": "action-entity-edit",
4419
- item: L(J.id)
4421
+ item: S(J.id)
4420
4422
  }, null, 8, ["item"])
4421
4423
  ]),
4422
4424
  _: 2
4423
4425
  }, 1032, ["auth-function"]),
4424
- K(g(Re), {
4426
+ F(g(Re), {
4425
4427
  "auth-function": () => e.canDelete(J)
4426
4428
  }, {
4427
4429
  default: h(() => [
4428
- K(Fe, {
4430
+ F(Fe, {
4429
4431
  "data-testid": "action-entity-delete",
4430
4432
  "has-divider": "",
4431
4433
  "is-dangerous": "",
4432
- onClick: () => e.config.consumerGroupId ? aa(J) : z(J)
4434
+ onClick: () => e.config.consumerGroupId ? ra(J) : X(J)
4433
4435
  }, {
4434
4436
  default: h(() => [
4435
4437
  Y(M(e.config.consumerGroupId ? g(r)("consumers.actions.remove") : g(r)("consumers.actions.delete")), 1)
@@ -4441,20 +4443,20 @@ const xt = (e, n) => {
4441
4443
  }, 1032, ["auth-function"])
4442
4444
  ]),
4443
4445
  _: 1
4444
- }, 8, ["cache-identifier", "disable-pagination", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers"]),
4445
- K(g(Os), {
4446
- "action-pending": P.value,
4446
+ }, 8, ["cache-identifier", "disable-pagination", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "preferences-storage-key", "query", "table-headers"]),
4447
+ F(g(Es), {
4448
+ "action-pending": V.value,
4447
4449
  "data-testid": "delete-consumer-modal",
4448
4450
  description: g(r)("consumers.delete.description"),
4449
- "entity-name": _.value && (_.value.username || _.value.custom_id || _.value.id),
4451
+ "entity-name": E.value && (E.value.username || E.value.custom_id || E.value.id),
4450
4452
  "entity-type": g(sn).Consumer,
4451
- error: D.value,
4453
+ error: Z.value,
4452
4454
  title: g(r)("consumers.delete.title"),
4453
- visible: F.value,
4454
- onCancel: X,
4455
- onProceed: le
4455
+ visible: P.value,
4456
+ onCancel: le,
4457
+ onProceed: ta
4456
4458
  }, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"]),
4457
- e.config.consumerGroupId ? (m(), V(dl, {
4459
+ e.config.consumerGroupId ? (m(), D(pl, {
4458
4460
  key: 0,
4459
4461
  config: e.config,
4460
4462
  "data-testid": "add-consumer-modal",
@@ -4463,17 +4465,17 @@ const xt = (e, n) => {
4463
4465
  "onAdd:success": H[5] || (H[5] = (J) => jt(J)),
4464
4466
  onCancel: $t
4465
4467
  }, null, 8, ["config", "visible"])) : G("", !0),
4466
- e.config.consumerGroupId && ye.value ? (m(), V(ia, {
4468
+ e.config.consumerGroupId && ye.value ? (m(), D(sa, {
4467
4469
  key: 1,
4468
4470
  "data-testid": "remove-consumer-modal",
4469
4471
  "is-visible": nt.value,
4470
4472
  title: g(r)("consumers.consumer_groups.remove.title"),
4471
4473
  type: "danger",
4472
4474
  onCanceled: Mt,
4473
- onProceed: oa
4475
+ onProceed: ia
4474
4476
  }, {
4475
4477
  "body-content": h(() => [
4476
- K(g(a), {
4478
+ F(g(a), {
4477
4479
  class: "message",
4478
4480
  keypath: e.config.consumerGroupName ? "consumers.consumer_groups.remove.confirmation" : "consumers.consumer_groups.remove.confirmationNoCG",
4479
4481
  tag: "p"
@@ -4499,7 +4501,7 @@ const xt = (e, n) => {
4499
4501
  };
4500
4502
  }
4501
4503
  });
4502
- const Ml = /* @__PURE__ */ xt(ml, [["__scopeId", "data-v-45929bbf"]]), gl = { class: "kong-ui-entities-consumer-form" }, yl = { class: "fields-group-title" }, hl = { class: "fields-group-text" }, vl = /* @__PURE__ */ te({
4504
+ const Ol = /* @__PURE__ */ xt(gl, [["__scopeId", "data-v-0526c8fa"]]), yl = { class: "kong-ui-entities-consumer-form" }, hl = { class: "fields-group-title" }, vl = { class: "fields-group-text" }, bl = /* @__PURE__ */ te({
4503
4505
  __name: "ConsumerForm",
4504
4506
  props: {
4505
4507
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -4517,10 +4519,10 @@ const Ml = /* @__PURE__ */ xt(ml, [["__scopeId", "data-v-45929bbf"]]), gl = { cl
4517
4519
  },
4518
4520
  emits: ["update", "error", "loading"],
4519
4521
  setup(e, { emit: n }) {
4520
- var S;
4522
+ var A;
4521
4523
  const t = e, { i18nT: a, i18n: { t: r } } = Qe.useI18n(), o = gt(), { axiosInstance: i } = St({
4522
- headers: (S = t.config) == null ? void 0 : S.requestHeaders
4523
- }), { getMessageFromError: s } = tl(), l = Ft({
4524
+ headers: (A = t.config) == null ? void 0 : A.requestHeaders
4525
+ }), { getMessageFromError: s } = nl(), l = Ft({
4524
4526
  fields: {
4525
4527
  username: "",
4526
4528
  customId: "",
@@ -4533,8 +4535,8 @@ const Ml = /* @__PURE__ */ xt(ml, [["__scopeId", "data-v-45929bbf"]]), gl = { cl
4533
4535
  customId: "",
4534
4536
  tags: ""
4535
4537
  }), d = O(() => {
4536
- var x, q;
4537
- return (q = Se.form[(x = t.config) == null ? void 0 : x.app]) == null ? void 0 : q.edit;
4538
+ var x, U;
4539
+ return (U = Se.form[(x = t.config) == null ? void 0 : x.app]) == null ? void 0 : U.edit;
4538
4540
  }), u = () => {
4539
4541
  var x;
4540
4542
  o.push(((x = t.config) == null ? void 0 : x.cancelRoute) || { name: "consumer-list" });
@@ -4543,64 +4545,64 @@ const Ml = /* @__PURE__ */ xt(ml, [["__scopeId", "data-v-45929bbf"]]), gl = { cl
4543
4545
  }, f = (x) => {
4544
4546
  n("error", x);
4545
4547
  }, I = (x) => {
4546
- var R, v, k;
4547
- l.fields.username = ((R = x == null ? void 0 : x.item) == null ? void 0 : R.username) || (x == null ? void 0 : x.username) || "", l.fields.customId = ((v = x == null ? void 0 : x.item) == null ? void 0 : v.custom_id) || (x == null ? void 0 : x.custom_id) || "";
4548
- const q = ((k = x == null ? void 0 : x.item) == null ? void 0 : k.tags) || (x == null ? void 0 : x.tags) || [];
4549
- l.fields.tags = (q == null ? void 0 : q.join(", ")) || "", Object.assign(c, l.fields);
4550
- }, b = O(() => t.consumerId ? ut.Edit : ut.Create), p = (x) => {
4551
- var R, v, k, N, L, _;
4552
- let q = `${(R = t.config) == null ? void 0 : R.apiBaseUrl}${Se.form[(v = t.config) == null ? void 0 : v.app][x]}`;
4553
- return ((k = t.config) == null ? void 0 : k.app) === "konnect" ? q = q.replace(/{controlPlaneId}/gi, ((N = t.config) == null ? void 0 : N.controlPlaneId) || "") : ((L = t.config) == null ? void 0 : L.app) === "kongManager" && (q = q.replace(/\/{workspace}/gi, (_ = t.config) != null && _.workspace ? `/${t.config.workspace}` : "")), q = q.replace(/{id}/gi, t.consumerId), q;
4554
- }, A = O(() => !!l.fields.username || !!l.fields.customId), w = O(() => JSON.stringify(l.fields) !== JSON.stringify(c)), C = async () => {
4555
- var x, q, R;
4548
+ var R, b, k;
4549
+ l.fields.username = ((R = x == null ? void 0 : x.item) == null ? void 0 : R.username) || (x == null ? void 0 : x.username) || "", l.fields.customId = ((b = x == null ? void 0 : x.item) == null ? void 0 : b.custom_id) || (x == null ? void 0 : x.custom_id) || "";
4550
+ const U = ((k = x == null ? void 0 : x.item) == null ? void 0 : k.tags) || (x == null ? void 0 : x.tags) || [];
4551
+ l.fields.tags = (U == null ? void 0 : U.join(", ")) || "", Object.assign(c, l.fields);
4552
+ }, v = O(() => t.consumerId ? ut.Edit : ut.Create), p = (x) => {
4553
+ var R, b, k, N, L, S;
4554
+ let U = `${(R = t.config) == null ? void 0 : R.apiBaseUrl}${Se.form[(b = t.config) == null ? void 0 : b.app][x]}`;
4555
+ return ((k = t.config) == null ? void 0 : k.app) === "konnect" ? U = U.replace(/{controlPlaneId}/gi, ((N = t.config) == null ? void 0 : N.controlPlaneId) || "") : ((L = t.config) == null ? void 0 : L.app) === "kongManager" && (U = U.replace(/\/{workspace}/gi, (S = t.config) != null && S.workspace ? `/${t.config.workspace}` : "")), U = U.replace(/{id}/gi, t.consumerId), U;
4556
+ }, _ = O(() => !!l.fields.username || !!l.fields.customId), w = O(() => JSON.stringify(l.fields) !== JSON.stringify(c)), C = async () => {
4557
+ var x, U, R;
4556
4558
  try {
4557
4559
  l.readonly = !0;
4558
- const v = {
4560
+ const b = {
4559
4561
  username: l.fields.username || null,
4560
4562
  custom_id: l.fields.customId || null,
4561
- tags: (q = (x = l.fields.tags.split(",")) == null ? void 0 : x.map((N) => String(N || "").trim())) == null ? void 0 : q.filter((N) => N !== "")
4563
+ tags: (U = (x = l.fields.tags.split(",")) == null ? void 0 : x.map((N) => String(N || "").trim())) == null ? void 0 : U.filter((N) => N !== "")
4562
4564
  };
4563
4565
  let k;
4564
- await i.post(p("validate"), v), b.value === "create" ? k = await i.post(p("create"), v) : b.value === "edit" && (k = ((R = t.config) == null ? void 0 : R.app) === "konnect" ? await i.put(p("edit"), v) : await i.patch(p("edit"), v)), I(k == null ? void 0 : k.data), n("update", k == null ? void 0 : k.data);
4565
- } catch (v) {
4566
- l.errorMessage = s(v), n("error", v);
4566
+ await i.post(p("validate"), b), v.value === "create" ? k = await i.post(p("create"), b) : v.value === "edit" && (k = ((R = t.config) == null ? void 0 : R.app) === "konnect" ? await i.put(p("edit"), b) : await i.patch(p("edit"), b)), I(k == null ? void 0 : k.data), n("update", k == null ? void 0 : k.data);
4567
+ } catch (b) {
4568
+ l.errorMessage = s(b), n("error", b);
4567
4569
  } finally {
4568
4570
  l.readonly = !1;
4569
4571
  }
4570
4572
  };
4571
- return (x, q) => {
4572
- const R = U("KInput"), v = U("KCard");
4573
- return m(), j("div", gl, [
4574
- K(g(ks), {
4575
- "can-submit": A.value && w.value,
4573
+ return (x, U) => {
4574
+ const R = q("KInput"), b = q("KCard");
4575
+ return m(), j("div", yl, [
4576
+ F(g(Cs), {
4577
+ "can-submit": _.value && w.value,
4576
4578
  config: e.config,
4577
4579
  "edit-id": e.consumerId,
4578
4580
  "error-message": l.errorMessage,
4579
4581
  "fetch-url": d.value,
4580
4582
  "is-readonly": l.readonly,
4581
4583
  onCancel: u,
4582
- "onFetch:error": q[3] || (q[3] = (k) => f(k)),
4584
+ "onFetch:error": U[3] || (U[3] = (k) => f(k)),
4583
4585
  "onFetch:success": I,
4584
- onLoading: q[4] || (q[4] = (k) => y(k)),
4586
+ onLoading: U[4] || (U[4] = (k) => y(k)),
4585
4587
  onSubmit: C
4586
4588
  }, {
4587
4589
  default: h(() => [
4588
4590
  B("div", null, [
4589
- K(g(Qs), {
4591
+ F(g(el), {
4590
4592
  description: g(r)("consumers.form.info.description"),
4591
4593
  "has-divider": "",
4592
4594
  title: g(r)("consumers.form.info.title")
4593
4595
  }, {
4594
4596
  default: h(() => [
4595
4597
  B("div", null, [
4596
- B("h5", yl, M(g(r)("consumers.form.consumer_identification.title")) + "* ", 1),
4597
- B("p", hl, M(g(r)("consumers.form.consumer_identification.description")), 1)
4598
+ B("h5", hl, M(g(r)("consumers.form.consumer_identification.title")) + "* ", 1),
4599
+ B("p", vl, M(g(r)("consumers.form.consumer_identification.description")), 1)
4598
4600
  ]),
4599
- K(v, null, {
4601
+ F(b, null, {
4600
4602
  body: h(() => [
4601
- K(R, {
4603
+ F(R, {
4602
4604
  modelValue: l.fields.username,
4603
- "onUpdate:modelValue": q[0] || (q[0] = (k) => l.fields.username = k),
4605
+ "onUpdate:modelValue": U[0] || (U[0] = (k) => l.fields.username = k),
4604
4606
  modelModifiers: { trim: !0 },
4605
4607
  autocomplete: "off",
4606
4608
  class: "username-field",
@@ -4614,7 +4616,7 @@ const Ml = /* @__PURE__ */ xt(ml, [["__scopeId", "data-v-45929bbf"]]), gl = { cl
4614
4616
  type: "text"
4615
4617
  }, {
4616
4618
  "label-tooltip": h(() => [
4617
- K(g(a), {
4619
+ F(g(a), {
4618
4620
  keypath: "consumers.fields.username.tooltip",
4619
4621
  scope: "global"
4620
4622
  }, {
@@ -4626,9 +4628,9 @@ const Ml = /* @__PURE__ */ xt(ml, [["__scopeId", "data-v-45929bbf"]]), gl = { cl
4626
4628
  ]),
4627
4629
  _: 1
4628
4630
  }, 8, ["modelValue", "label", "placeholder", "readonly"]),
4629
- K(R, {
4631
+ F(R, {
4630
4632
  modelValue: l.fields.customId,
4631
- "onUpdate:modelValue": q[1] || (q[1] = (k) => l.fields.customId = k),
4633
+ "onUpdate:modelValue": U[1] || (U[1] = (k) => l.fields.customId = k),
4632
4634
  modelModifiers: { trim: !0 },
4633
4635
  autocomplete: "off",
4634
4636
  "data-testid": "consumer-form-custom-id",
@@ -4641,7 +4643,7 @@ const Ml = /* @__PURE__ */ xt(ml, [["__scopeId", "data-v-45929bbf"]]), gl = { cl
4641
4643
  type: "text"
4642
4644
  }, {
4643
4645
  "label-tooltip": h(() => [
4644
- K(g(a), {
4646
+ F(g(a), {
4645
4647
  keypath: "consumers.fields.custom_id.tooltip",
4646
4648
  scope: "global"
4647
4649
  }, {
@@ -4656,9 +4658,9 @@ const Ml = /* @__PURE__ */ xt(ml, [["__scopeId", "data-v-45929bbf"]]), gl = { cl
4656
4658
  ]),
4657
4659
  _: 1
4658
4660
  }),
4659
- K(R, {
4661
+ F(R, {
4660
4662
  modelValue: l.fields.tags,
4661
- "onUpdate:modelValue": q[2] || (q[2] = (k) => l.fields.tags = k),
4663
+ "onUpdate:modelValue": U[2] || (U[2] = (k) => l.fields.tags = k),
4662
4664
  modelModifiers: { trim: !0 },
4663
4665
  autocomplete: "off",
4664
4666
  "data-testid": "consumer-form-tags",
@@ -4683,7 +4685,7 @@ const Ml = /* @__PURE__ */ xt(ml, [["__scopeId", "data-v-45929bbf"]]), gl = { cl
4683
4685
  };
4684
4686
  }
4685
4687
  });
4686
- const Ol = /* @__PURE__ */ xt(vl, [["__scopeId", "data-v-335659fc"]]), bl = { class: "kong-ui-consumer-entity-config-card" }, El = /* @__PURE__ */ te({
4688
+ const El = /* @__PURE__ */ xt(bl, [["__scopeId", "data-v-335659fc"]]), kl = { class: "kong-ui-consumer-entity-config-card" }, Kl = /* @__PURE__ */ te({
4687
4689
  __name: "ConsumerConfigCard",
4688
4690
  props: {
4689
4691
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -4710,7 +4712,7 @@ const Ol = /* @__PURE__ */ xt(vl, [["__scopeId", "data-v-335659fc"]]), bl = { cl
4710
4712
  },
4711
4713
  emits: ["loading", "fetch:error", "fetch:success", "copy:success"],
4712
4714
  setup(e) {
4713
- const n = e, { i18n: { t }, i18nT: a } = Qe.useI18n(), r = O(() => Se.form[n.config.app].edit), o = E({
4715
+ const n = e, { i18n: { t }, i18nT: a } = Qe.useI18n(), r = O(() => Se.form[n.config.app].edit), o = K({
4714
4716
  id: {},
4715
4717
  username: {
4716
4718
  section: ue.Basic,
@@ -4735,8 +4737,8 @@ const Ol = /* @__PURE__ */ xt(vl, [["__scopeId", "data-v-335659fc"]]), bl = { cl
4735
4737
  hidden: !0
4736
4738
  }
4737
4739
  });
4738
- return (i, s) => (m(), j("div", bl, [
4739
- K(g(ys), {
4740
+ return (i, s) => (m(), j("div", kl, [
4741
+ F(g(hs), {
4740
4742
  config: e.config,
4741
4743
  "config-card-doc": e.configCardDoc,
4742
4744
  "config-schema": o.value,
@@ -4748,7 +4750,7 @@ const Ol = /* @__PURE__ */ xt(vl, [["__scopeId", "data-v-335659fc"]]), bl = { cl
4748
4750
  onLoading: s[3] || (s[3] = (l) => i.$emit("loading", l))
4749
4751
  }, {
4750
4752
  "username-label-tooltip": h(() => [
4751
- K(g(a), {
4753
+ F(g(a), {
4752
4754
  keypath: "consumers.fields.username.tooltip",
4753
4755
  scope: "global"
4754
4756
  }, {
@@ -4759,7 +4761,7 @@ const Ol = /* @__PURE__ */ xt(vl, [["__scopeId", "data-v-335659fc"]]), bl = { cl
4759
4761
  })
4760
4762
  ]),
4761
4763
  "custom_id-label-tooltip": h(() => [
4762
- K(g(a), {
4764
+ F(g(a), {
4763
4765
  keypath: "consumers.fields.custom_id.tooltip",
4764
4766
  scope: "global"
4765
4767
  }, {
@@ -4775,7 +4777,7 @@ const Ol = /* @__PURE__ */ xt(vl, [["__scopeId", "data-v-335659fc"]]), bl = { cl
4775
4777
  }
4776
4778
  });
4777
4779
  export {
4778
- El as ConsumerConfigCard,
4779
- Ol as ConsumerForm,
4780
- Ml as ConsumerList
4780
+ Kl as ConsumerConfigCard,
4781
+ El as ConsumerForm,
4782
+ Ol as ConsumerList
4781
4783
  };