@kong-ui-public/entities-shared 3.41.3 → 3.41.4-pr.3042.a8a6aeb68.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -295,14 +295,14 @@ function Gi(e, t, n, i = {
295
295
  n || (n = "1000");
296
296
  const { axiosInstance: r } = ct(e.axiosRequestConfig), { i18n: { t: o } } = Ve(), { debounce: a } = Li(), l = a(async (k) => {
297
297
  await A(k);
298
- }, 200), s = M(!1), u = M(""), d = M(""), c = M([]), g = M([]), m = M(void 0), f = S(() => {
299
- const k = `${e.apiBaseUrl}${x(t)}`;
300
- return e.app === "konnect" ? k.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" ? k.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : "") : k;
298
+ }, 200), s = M(!1), u = M(""), d = M(""), c = M([]), m = M([]), p = M(void 0), f = S(() => {
299
+ let k = `${e.apiBaseUrl}${x(t)}`;
300
+ return e.app === "konnect" && (k = k.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "")), k.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : "");
301
301
  }), { isValidUuid: y } = tn(), b = async () => {
302
302
  try {
303
303
  s.value = !0;
304
304
  const { data: k } = await r.get(`${f.value}?size=${n}`);
305
- k != null && k.next || (m.value = i.fetchedItemsKey in k ? k[i.fetchedItemsKey] : []), g.value = i.fetchedItemsKey in k ? k[i.fetchedItemsKey] : [], c.value = g.value;
305
+ k != null && k.next || (p.value = i.fetchedItemsKey in k ? k[i.fetchedItemsKey] : []), m.value = i.fetchedItemsKey in k ? k[i.fetchedItemsKey] : [], c.value = m.value;
306
306
  } catch {
307
307
  c.value = [], u.value = o("debouncedFilter.errors.fetch");
308
308
  } finally {
@@ -312,10 +312,10 @@ function Gi(e, t, n, i = {
312
312
  var Y, te, E;
313
313
  if (C.value !== k) {
314
314
  if (C.value = k ?? "", !k) {
315
- c.value = g.value;
315
+ c.value = m.value;
316
316
  return;
317
317
  }
318
- if (m.value === void 0)
318
+ if (p.value === void 0)
319
319
  try {
320
320
  if (s.value = !0, u.value = "", d.value = "", e.app === "konnect") {
321
321
  const O = `${f.value}/${k}`, { data: I } = await r.get(`${O}?size=${n}`);
@@ -327,14 +327,14 @@ function Gi(e, t, n, i = {
327
327
  return [_[i.fetchedItemsKey] ?? _];
328
328
  })()) : O.push(
329
329
  ...i.searchKeys.filter((_) => _ !== "id").map(async (_) => {
330
- const { data: p } = await r.get(`${f.value}?${_}=${k}`);
331
- return p[i.fetchedItemsKey];
330
+ const { data: g } = await r.get(`${f.value}?${_}=${k}`);
331
+ return g[i.fetchedItemsKey];
332
332
  })
333
333
  );
334
334
  const I = await Promise.all(O), v = /* @__PURE__ */ new Set();
335
335
  c.value = [], (Y = I == null ? void 0 : I.forEach) == null || Y.call(I, (_) => {
336
- var p;
337
- (p = _ == null ? void 0 : _.forEach) == null || p.call(_, (K) => {
336
+ var g;
337
+ (g = _ == null ? void 0 : _.forEach) == null || g.call(_, (K) => {
338
338
  v.has(K.id) || (v.add(K.id), c.value.push(K));
339
339
  });
340
340
  });
@@ -345,12 +345,12 @@ function Gi(e, t, n, i = {
345
345
  s.value = !1;
346
346
  }
347
347
  else
348
- s.value = !0, d.value = "", c.value = (E = m.value) == null ? void 0 : E.filter((O) => {
348
+ s.value = !0, d.value = "", c.value = (E = p.value) == null ? void 0 : E.filter((O) => {
349
349
  var v;
350
350
  let I = !1;
351
351
  for (const _ of i.searchKeys) {
352
- const p = typeof O[_] == "string" ? (v = O[_]) == null ? void 0 : v.toLowerCase() : O[_];
353
- p != null && p.includes(k.toLowerCase()) && (I = !0);
352
+ const g = typeof O[_] == "string" ? (v = O[_]) == null ? void 0 : v.toLowerCase() : O[_];
353
+ g != null && g.includes(k.toLowerCase()) && (I = !0);
354
354
  }
355
355
  return I;
356
356
  }), (!c.value || !c.value.length) && (d.value = o("debouncedFilter.errors.invalid")), s.value = !1;
@@ -361,7 +361,7 @@ function Gi(e, t, n, i = {
361
361
  error: u,
362
362
  validationError: d,
363
363
  results: c,
364
- allRecords: m,
364
+ allRecords: p,
365
365
  loadItems: b,
366
366
  debouncedQueryChange: l
367
367
  };
@@ -467,8 +467,8 @@ function nn(e, t) {
467
467
  const { page: o, pageSize: a, offset: l, sortColumnKey: s, sortColumnOrder: u, query: d } = r;
468
468
  try {
469
469
  let c = new URL(i.value.href);
470
- return n.value && d ? (c.search = "", c = ye(e).isExactMatch ? new URL(`${c.href}/${d}`) : new URL(`${c.href}?filter[name][contains]=${d}`)) : (n.value || new URLSearchParams(d).forEach((g, m) => {
471
- c.searchParams.append(m, g);
470
+ return n.value && d ? (c.search = "", c = ye(e).isExactMatch ? new URL(`${c.href}/${d}`) : new URL(`${c.href}?filter[name][contains]=${d}`)) : (n.value || new URLSearchParams(d).forEach((m, p) => {
471
+ c.searchParams.append(p, m);
472
472
  }), s && c.searchParams.append("sort_by", s), u === "desc" && c.searchParams.append("sort_desc", "1"), c.searchParams.append("size", String(a))), l && o !== 1 && c.searchParams.append("offset", String(l)), c.href;
473
473
  } catch (c) {
474
474
  return console.error("RouteList(fetcher)", c), ye(t);
@@ -480,8 +480,8 @@ function Xi(e, t, n) {
480
480
  const i = M(!0), r = ye(e), { axiosInstance: o } = ct(r.axiosRequestConfig), a = nn(e, t), l = M({
481
481
  status: he.Idle
482
482
  }), s = async (c) => {
483
- var m;
484
- const g = ye(n) || "data";
483
+ var p;
484
+ const m = ye(n) || "data";
485
485
  try {
486
486
  l.value = i.value ? { status: he.InitialLoad } : { status: he.Loading }, i.value = !1;
487
487
  let f = a(c);
@@ -489,7 +489,7 @@ function Xi(e, t, n) {
489
489
  const y = await o.get(f);
490
490
  if (y.status >= 400)
491
491
  throw y;
492
- const b = y.data, C = g && g.replace(/[^\w-_]/gi, "");
492
+ const b = y.data, C = m && m.replace(/[^\w-_]/gi, "");
493
493
  let A;
494
494
  b[C] ? A = Array.isArray(b[C]) ? b[C] : [b[C]] : Array.isArray(b) ? A = b : A = Object.keys(b).length ? [b] : [];
495
495
  const k = {
@@ -513,7 +513,7 @@ function Xi(e, t, n) {
513
513
  data: [],
514
514
  total: 0
515
515
  };
516
- return c.query && (((m = f.response) == null ? void 0 : m.status) === 404 || f.status === 404) ? (l.value = {
516
+ return c.query && (((p = f.response) == null ? void 0 : p.status) === 404 || f.status === 404) ? (l.value = {
517
517
  status: he.NoResults,
518
518
  response: y,
519
519
  error: f.response ? f : { response: f }
@@ -794,14 +794,14 @@ const Sr = { class: "config-card-details-row" }, $r = ["data-testid"], Tr = ["da
794
794
  emits: ["navigation-click"],
795
795
  setup(e, { emit: t }) {
796
796
  Gt((Y) => ({
797
- v25a763c4: g.value ? "none" : `solid ${x(Cr)} ${x(vr)}`,
797
+ v25a763c4: m.value ? "none" : `solid ${x(Cr)} ${x(vr)}`,
798
798
  v1ac90e12: c.value && u.value ? "block" : "flex",
799
799
  v45a716ee: c.value && u.value ? "100%" : n.slim ? "50%" : "25%",
800
800
  v45a28b38: c.value && u.value ? "100%" : n.slim ? "50%" : "75%"
801
801
  }));
802
- const n = e, i = t, r = ii(), o = He(), { i18n: { t: a, formatIsoDate: l, formatUnixTimeStamp: s } } = G.useI18n(), u = S(() => n.item.value !== void 0 && n.item.value !== null && n.item.value !== ""), d = S(() => !!(n.item.tooltip || o["label-tooltip"])), c = S(() => n.item.type === J.Json || n.item.type === J.JsonArray), g = S(() => n.item.type === J.JsonArray), m = G.useSubSchema(n.item.key), f = S(() => {
802
+ const n = e, i = t, r = ii(), o = He(), { i18n: { t: a, formatIsoDate: l, formatUnixTimeStamp: s } } = G.useI18n(), u = S(() => n.item.value !== void 0 && n.item.value !== null && n.item.value !== ""), d = S(() => !!(n.item.tooltip || o["label-tooltip"])), c = S(() => n.item.type === J.Json || n.item.type === J.JsonArray), m = S(() => n.item.type === J.JsonArray), p = G.useSubSchema(n.item.key), f = S(() => {
803
803
  var Y;
804
- return n.item.type ? n.item.type : (Y = m == null ? void 0 : m.value) != null && Y.encrypted ? J.Redacted : void 0;
804
+ return n.item.type ? n.item.type : (Y = p == null ? void 0 : p.value) != null && Y.encrypted ? J.Redacted : void 0;
805
805
  }), y = S(() => {
806
806
  switch (f.value) {
807
807
  case J.ID:
@@ -990,10 +990,10 @@ const Sr = { class: "config-card-details-row" }, $r = ["data-testid"], Tr = ["da
990
990
  key: 0,
991
991
  "data-testid": `${e.item.key}-badge-tags`
992
992
  }, [
993
- (h(!0), $(pe, null, de(e.item.value, (_, p) => (h(), B(I, {
994
- key: `${e.item.key}-badge-tag-${p}`,
993
+ (h(!0), $(pe, null, de(e.item.value, (_, g) => (h(), B(I, {
994
+ key: `${e.item.key}-badge-tag-${g}`,
995
995
  class: "config-badge",
996
- "data-testid": `${e.item.key}-badge-tag-${p}`,
996
+ "data-testid": `${e.item.key}-badge-tag-${g}`,
997
997
  tooltip: _,
998
998
  "truncation-tooltip": ""
999
999
  }, {
@@ -1007,9 +1007,9 @@ const Sr = { class: "config-card-details-row" }, $r = ["data-testid"], Tr = ["da
1007
1007
  class: "copy-uuid-array",
1008
1008
  "data-testid": `${e.item.key}-copy-uuid-array`
1009
1009
  }, [
1010
- (h(!0), $(pe, null, de(e.item.value, (_, p) => (h(), B(v, zt({ ref_for: !0 }, y.value.childAttrs, {
1011
- key: `${e.item.key}-copy-uuid-${p}`,
1012
- "data-testid": `${e.item.key}-copy-uuid-${p}`,
1010
+ (h(!0), $(pe, null, de(e.item.value, (_, g) => (h(), B(v, zt({ ref_for: !0 }, y.value.childAttrs, {
1011
+ key: `${e.item.key}-copy-uuid-${g}`,
1012
+ "data-testid": `${e.item.key}-copy-uuid-${g}`,
1013
1013
  text: _
1014
1014
  }), null, 16, ["data-testid", "text"]))), 128))
1015
1015
  ], 8, Lr)) : y.value.additionalComponent === "KMethodBadge" ? (h(), $("div", {
@@ -1017,11 +1017,11 @@ const Sr = { class: "config-card-details-row" }, $r = ["data-testid"], Tr = ["da
1017
1017
  class: "method-badge-array",
1018
1018
  "data-testid": `${e.item.key}-badge-methods`
1019
1019
  }, [
1020
- (h(!0), $(pe, null, de(e.item.value, (_, p) => (h(), B(I, {
1021
- key: `${e.item.key}-badge-method-${p}`,
1020
+ (h(!0), $(pe, null, de(e.item.value, (_, g) => (h(), B(I, {
1021
+ key: `${e.item.key}-badge-method-${g}`,
1022
1022
  appearance: Object.values(x(di)).includes(_.toLowerCase()) ? _.toLowerCase() : "custom",
1023
1023
  class: "config-badge",
1024
- "data-testid": `${e.item.key}-badge-method-${p}`
1024
+ "data-testid": `${e.item.key}-badge-method-${g}`
1025
1025
  }, {
1026
1026
  default: w(() => [
1027
1027
  q(F(_), 1)
@@ -1032,9 +1032,9 @@ const Sr = { class: "config-card-details-row" }, $r = ["data-testid"], Tr = ["da
1032
1032
  key: 3,
1033
1033
  "data-testid": `${n.item.key}-json-array-content`
1034
1034
  }, [
1035
- (h(!0), $(pe, null, de(e.item.value, (_, p) => (h(), B(ln, {
1036
- key: `json-array-item-${p}`,
1037
- index: Number(p),
1035
+ (h(!0), $(pe, null, de(e.item.value, (_, g) => (h(), B(ln, {
1036
+ key: `json-array-item-${g}`,
1037
+ index: Number(g),
1038
1038
  "is-array-item": "",
1039
1039
  item: _
1040
1040
  }, null, 8, ["index", "item"]))), 128))
@@ -1566,7 +1566,7 @@ function xa(e) {
1566
1566
  return e === null ? !1 : An.exec(e) !== null || wn.exec(e) !== null;
1567
1567
  }
1568
1568
  function Aa(e) {
1569
- var t, n, i, r, o, a, l, s = 0, u = null, d, c, g;
1569
+ var t, n, i, r, o, a, l, s = 0, u = null, d, c, m;
1570
1570
  if (t = An.exec(e), t === null && (t = wn.exec(e)), t === null) throw new Error("Date resolve error");
1571
1571
  if (n = +t[1], i = +t[2] - 1, r = +t[3], !t[4])
1572
1572
  return new Date(Date.UTC(n, i, r));
@@ -1575,7 +1575,7 @@ function Aa(e) {
1575
1575
  s += "0";
1576
1576
  s = +s;
1577
1577
  }
1578
- return t[9] && (d = +t[10], c = +(t[11] || 0), u = (d * 60 + c) * 6e4, t[9] === "-" && (u = -u)), g = new Date(Date.UTC(n, i, r, o, a, l, s)), u && g.setTime(g.getTime() - u), g;
1578
+ return t[9] && (d = +t[10], c = +(t[11] || 0), u = (d * 60 + c) * 6e4, t[9] === "-" && (u = -u)), m = new Date(Date.UTC(n, i, r, o, a, l, s)), u && m.setTime(m.getTime() - u), m;
1579
1579
  }
1580
1580
  function wa(e) {
1581
1581
  return e.toISOString();
@@ -1839,31 +1839,31 @@ function pt(e, t) {
1839
1839
  `, t - 1));
1840
1840
  }
1841
1841
  function Ga(e, t, n) {
1842
- var i, r, o, a, l, s, u, d, c = e.kind, g = e.result, m;
1843
- if (m = e.input.charCodeAt(e.position), ue(m) || Te(m) || m === 35 || m === 38 || m === 42 || m === 33 || m === 124 || m === 62 || m === 39 || m === 34 || m === 37 || m === 64 || m === 96 || (m === 63 || m === 45) && (r = e.input.charCodeAt(e.position + 1), ue(r) || n && Te(r)))
1842
+ var i, r, o, a, l, s, u, d, c = e.kind, m = e.result, p;
1843
+ if (p = e.input.charCodeAt(e.position), ue(p) || Te(p) || p === 35 || p === 38 || p === 42 || p === 33 || p === 124 || p === 62 || p === 39 || p === 34 || p === 37 || p === 64 || p === 96 || (p === 63 || p === 45) && (r = e.input.charCodeAt(e.position + 1), ue(r) || n && Te(r)))
1844
1844
  return !1;
1845
- for (e.kind = "scalar", e.result = "", o = a = e.position, l = !1; m !== 0; ) {
1846
- if (m === 58) {
1845
+ for (e.kind = "scalar", e.result = "", o = a = e.position, l = !1; p !== 0; ) {
1846
+ if (p === 58) {
1847
1847
  if (r = e.input.charCodeAt(e.position + 1), ue(r) || n && Te(r))
1848
1848
  break;
1849
- } else if (m === 35) {
1849
+ } else if (p === 35) {
1850
1850
  if (i = e.input.charCodeAt(e.position - 1), ue(i))
1851
1851
  break;
1852
1852
  } else {
1853
- if (e.position === e.lineStart && We(e) || n && Te(m))
1853
+ if (e.position === e.lineStart && We(e) || n && Te(p))
1854
1854
  break;
1855
- if (me(m))
1855
+ if (me(p))
1856
1856
  if (s = e.line, u = e.lineStart, d = e.lineIndent, ee(e, !1, -1), e.lineIndent >= t) {
1857
- l = !0, m = e.input.charCodeAt(e.position);
1857
+ l = !0, p = e.input.charCodeAt(e.position);
1858
1858
  continue;
1859
1859
  } else {
1860
1860
  e.position = a, e.line = s, e.lineStart = u, e.lineIndent = d;
1861
1861
  break;
1862
1862
  }
1863
1863
  }
1864
- l && (ve(e, o, a, !1), pt(e, e.line - s), o = a = e.position, l = !1), Ce(m) || (a = e.position + 1), m = e.input.charCodeAt(++e.position);
1864
+ l && (ve(e, o, a, !1), pt(e, e.line - s), o = a = e.position, l = !1), Ce(p) || (a = e.position + 1), p = e.input.charCodeAt(++e.position);
1865
1865
  }
1866
- return ve(e, o, a, !1), e.result ? !0 : (e.kind = c, e.result = g, !1);
1866
+ return ve(e, o, a, !1), e.result ? !0 : (e.kind = c, e.result = m, !1);
1867
1867
  }
1868
1868
  function za(e, t) {
1869
1869
  var n, i, r;
@@ -1902,17 +1902,17 @@ function Qa(e, t) {
1902
1902
  T(e, "unexpected end of the stream within a double quoted scalar");
1903
1903
  }
1904
1904
  function Za(e, t) {
1905
- var n = !0, i, r, o, a = e.tag, l, s = e.anchor, u, d, c, g, m, f = /* @__PURE__ */ Object.create(null), y, b, C, A;
1905
+ var n = !0, i, r, o, a = e.tag, l, s = e.anchor, u, d, c, m, p, f = /* @__PURE__ */ Object.create(null), y, b, C, A;
1906
1906
  if (A = e.input.charCodeAt(e.position), A === 91)
1907
- d = 93, m = !1, l = [];
1907
+ d = 93, p = !1, l = [];
1908
1908
  else if (A === 123)
1909
- d = 125, m = !0, l = {};
1909
+ d = 125, p = !0, l = {};
1910
1910
  else
1911
1911
  return !1;
1912
1912
  for (e.anchor !== null && (e.anchorMap[e.anchor] = l), A = e.input.charCodeAt(++e.position); A !== 0; ) {
1913
1913
  if (ee(e, !0, t), A = e.input.charCodeAt(e.position), A === d)
1914
- return e.position++, e.tag = a, e.anchor = s, e.kind = m ? "mapping" : "sequence", e.result = l, !0;
1915
- n ? A === 44 && T(e, "expected the node content, but found ','") : T(e, "missed comma between flow collection entries"), b = y = C = null, c = g = !1, A === 63 && (u = e.input.charCodeAt(e.position + 1), ue(u) && (c = g = !0, e.position++, ee(e, !0, t))), i = e.line, r = e.lineStart, o = e.position, Fe(e, t, Me, !1, !0), b = e.tag, y = e.result, ee(e, !0, t), A = e.input.charCodeAt(e.position), (g || e.line === i) && A === 58 && (c = !0, A = e.input.charCodeAt(++e.position), ee(e, !0, t), Fe(e, t, Me, !1, !0), C = e.result), m ? Ee(e, l, f, b, y, C, i, r, o) : c ? l.push(Ee(e, null, f, b, y, C, i, r, o)) : l.push(y), ee(e, !0, t), A = e.input.charCodeAt(e.position), A === 44 ? (n = !0, A = e.input.charCodeAt(++e.position)) : n = !1;
1914
+ return e.position++, e.tag = a, e.anchor = s, e.kind = p ? "mapping" : "sequence", e.result = l, !0;
1915
+ n ? A === 44 && T(e, "expected the node content, but found ','") : T(e, "missed comma between flow collection entries"), b = y = C = null, c = m = !1, A === 63 && (u = e.input.charCodeAt(e.position + 1), ue(u) && (c = m = !0, e.position++, ee(e, !0, t))), i = e.line, r = e.lineStart, o = e.position, Fe(e, t, Me, !1, !0), b = e.tag, y = e.result, ee(e, !0, t), A = e.input.charCodeAt(e.position), (m || e.line === i) && A === 58 && (c = !0, A = e.input.charCodeAt(++e.position), ee(e, !0, t), Fe(e, t, Me, !1, !0), C = e.result), p ? Ee(e, l, f, b, y, C, i, r, o) : c ? l.push(Ee(e, null, f, b, y, C, i, r, o)) : l.push(y), ee(e, !0, t), A = e.input.charCodeAt(e.position), A === 44 ? (n = !0, A = e.input.charCodeAt(++e.position)) : n = !1;
1916
1916
  }
1917
1917
  T(e, "unexpected end of the stream within a flow collection");
1918
1918
  }
@@ -1979,11 +1979,11 @@ function Kt(e, t) {
1979
1979
  return l ? (e.tag = i, e.anchor = r, e.kind = "sequence", e.result = o, !0) : !1;
1980
1980
  }
1981
1981
  function eo(e, t, n) {
1982
- var i, r, o, a, l, s, u = e.tag, d = e.anchor, c = {}, g = /* @__PURE__ */ Object.create(null), m = null, f = null, y = null, b = !1, C = !1, A;
1982
+ var i, r, o, a, l, s, u = e.tag, d = e.anchor, c = {}, m = /* @__PURE__ */ Object.create(null), p = null, f = null, y = null, b = !1, C = !1, A;
1983
1983
  if (e.firstTabInLine !== -1) return !1;
1984
1984
  for (e.anchor !== null && (e.anchorMap[e.anchor] = c), A = e.input.charCodeAt(e.position); A !== 0; ) {
1985
1985
  if (!b && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, T(e, "tab characters must not be used in indentation")), i = e.input.charCodeAt(e.position + 1), o = e.line, (A === 63 || A === 58) && ue(i))
1986
- A === 63 ? (b && (Ee(e, c, g, m, f, null, a, l, s), m = f = y = null), C = !0, b = !0, r = !0) : b ? (b = !1, r = !0) : T(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, A = i;
1986
+ A === 63 ? (b && (Ee(e, c, m, p, f, null, a, l, s), p = f = y = null), C = !0, b = !0, r = !0) : b ? (b = !1, r = !0) : T(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, A = i;
1987
1987
  else {
1988
1988
  if (a = e.line, l = e.lineStart, s = e.position, !Fe(e, n, Fn, !1, !0))
1989
1989
  break;
@@ -1991,7 +1991,7 @@ function eo(e, t, n) {
1991
1991
  for (A = e.input.charCodeAt(e.position); Ce(A); )
1992
1992
  A = e.input.charCodeAt(++e.position);
1993
1993
  if (A === 58)
1994
- A = e.input.charCodeAt(++e.position), ue(A) || T(e, "a whitespace character is expected after the key-value separator within a block mapping"), b && (Ee(e, c, g, m, f, null, a, l, s), m = f = y = null), C = !0, b = !1, r = !1, m = e.tag, f = e.result;
1994
+ A = e.input.charCodeAt(++e.position), ue(A) || T(e, "a whitespace character is expected after the key-value separator within a block mapping"), b && (Ee(e, c, m, p, f, null, a, l, s), p = f = y = null), C = !0, b = !1, r = !1, p = e.tag, f = e.result;
1995
1995
  else if (C)
1996
1996
  T(e, "can not read an implicit mapping pair; a colon is missed");
1997
1997
  else
@@ -2001,12 +2001,12 @@ function eo(e, t, n) {
2001
2001
  else
2002
2002
  return e.tag = u, e.anchor = d, !0;
2003
2003
  }
2004
- if ((e.line === o || e.lineIndent > t) && (b && (a = e.line, l = e.lineStart, s = e.position), Fe(e, t, De, !0, r) && (b ? f = e.result : y = e.result), b || (Ee(e, c, g, m, f, y, a, l, s), m = f = y = null), ee(e, !0, -1), A = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > t) && A !== 0)
2004
+ if ((e.line === o || e.lineIndent > t) && (b && (a = e.line, l = e.lineStart, s = e.position), Fe(e, t, De, !0, r) && (b ? f = e.result : y = e.result), b || (Ee(e, c, m, p, f, y, a, l, s), p = f = y = null), ee(e, !0, -1), A = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > t) && A !== 0)
2005
2005
  T(e, "bad indentation of a mapping entry");
2006
2006
  else if (e.lineIndent < t)
2007
2007
  break;
2008
2008
  }
2009
- return b && Ee(e, c, g, m, f, null, a, l, s), C && (e.tag = u, e.anchor = d, e.kind = "mapping", e.result = c), C;
2009
+ return b && Ee(e, c, m, p, f, null, a, l, s), C && (e.tag = u, e.anchor = d, e.kind = "mapping", e.result = c), C;
2010
2010
  }
2011
2011
  function to(e) {
2012
2012
  var t, n = !1, i = !1, r, o, a;
@@ -2044,14 +2044,14 @@ function io(e) {
2044
2044
  return e.position === t && T(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), be.call(e.anchorMap, n) || T(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], ee(e, !0, -1), !0;
2045
2045
  }
2046
2046
  function Fe(e, t, n, i, r) {
2047
- var o, a, l, s = 1, u = !1, d = !1, c, g, m, f, y, b;
2047
+ var o, a, l, s = 1, u = !1, d = !1, c, m, p, f, y, b;
2048
2048
  if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = a = l = De === n || On === n, i && ee(e, !0, -1) && (u = !0, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)), s === 1)
2049
2049
  for (; to(e) || no(e); )
2050
2050
  ee(e, !0, -1) ? (u = !0, l = o, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)) : l = !1;
2051
2051
  if (l && (l = u || r), (s === 1 || De === n) && (Me === n || Fn === n ? y = t : y = t + 1, b = e.position - e.lineStart, s === 1 ? l && (Kt(e, b) || eo(e, b, y)) || Za(e, y) ? d = !0 : (a && Xa(e, y) || za(e, y) || Qa(e, y) ? d = !0 : io(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && T(e, "alias node should not have any properties")) : Ga(e, y, Me === n) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : s === 0 && (d = l && Kt(e, b))), e.tag === null)
2052
2052
  e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2053
2053
  else if (e.tag === "?") {
2054
- for (e.result !== null && e.kind !== "scalar" && T(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), c = 0, g = e.implicitTypes.length; c < g; c += 1)
2054
+ for (e.result !== null && e.kind !== "scalar" && T(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), c = 0, m = e.implicitTypes.length; c < m; c += 1)
2055
2055
  if (f = e.implicitTypes[c], f.resolve(e.result)) {
2056
2056
  e.result = f.construct(e.result), e.tag = f.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2057
2057
  break;
@@ -2060,9 +2060,9 @@ function Fe(e, t, n, i, r) {
2060
2060
  if (be.call(e.typeMap[e.kind || "fallback"], e.tag))
2061
2061
  f = e.typeMap[e.kind || "fallback"][e.tag];
2062
2062
  else
2063
- for (f = null, m = e.typeMap.multi[e.kind || "fallback"], c = 0, g = m.length; c < g; c += 1)
2064
- if (e.tag.slice(0, m[c].tag.length) === m[c].tag) {
2065
- f = m[c];
2063
+ for (f = null, p = e.typeMap.multi[e.kind || "fallback"], c = 0, m = p.length; c < m; c += 1)
2064
+ if (e.tag.slice(0, p[c].tag.length) === p[c].tag) {
2065
+ f = p[c];
2066
2066
  break;
2067
2067
  }
2068
2068
  f || T(e, "unknown tag !<" + e.tag + ">"), e.result !== null && f.kind !== e.kind && T(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + f.kind + '", not "' + e.kind + '"'), f.resolve(e.result, e.tag) ? (e.result = f.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : T(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
@@ -2238,7 +2238,7 @@ function Jn(e) {
2238
2238
  }
2239
2239
  var Gn = 1, rt = 2, zn = 3, Qn = 4, $e = 5;
2240
2240
  function Ro(e, t, n, i, r, o, a, l) {
2241
- var s, u = 0, d = null, c = !1, g = !1, m = i !== -1, f = -1, y = Lo(Oe(e, 0)) && Bo(Oe(e, e.length - 1));
2241
+ var s, u = 0, d = null, c = !1, m = !1, p = i !== -1, f = -1, y = Lo(Oe(e, 0)) && Bo(Oe(e, e.length - 1));
2242
2242
  if (t || a)
2243
2243
  for (s = 0; s < e.length; u >= 65536 ? s += 2 : s++) {
2244
2244
  if (u = Oe(e, s), !Ke(u))
@@ -2248,15 +2248,15 @@ function Ro(e, t, n, i, r, o, a, l) {
2248
2248
  else {
2249
2249
  for (s = 0; s < e.length; u >= 65536 ? s += 2 : s++) {
2250
2250
  if (u = Oe(e, s), u === Be)
2251
- c = !0, m && (g = g || // Foldable line = too long, and not more-indented.
2251
+ c = !0, p && (m = m || // Foldable line = too long, and not more-indented.
2252
2252
  s - f - 1 > i && e[f + 1] !== " ", f = s);
2253
2253
  else if (!Ke(u))
2254
2254
  return $e;
2255
2255
  y = y && Dt(u, d, l), d = u;
2256
2256
  }
2257
- g = g || m && s - f - 1 > i && e[f + 1] !== " ";
2257
+ m = m || p && s - f - 1 > i && e[f + 1] !== " ";
2258
2258
  }
2259
- return !c && !g ? y && !a && !r(e) ? Gn : o === Re ? $e : rt : n > 9 && Jn(e) ? $e : a ? o === Re ? $e : rt : g ? Qn : zn;
2259
+ return !c && !m ? y && !a && !r(e) ? Gn : o === Re ? $e : rt : n > 9 && Jn(e) ? $e : a ? o === Re ? $e : rt : m ? Qn : zn;
2260
2260
  }
2261
2261
  function Ko(e, t, n, i, r) {
2262
2262
  e.dump = function() {
@@ -2351,7 +2351,7 @@ function Po(e, t, n) {
2351
2351
  e.tag = r, e.dump = "{" + i + "}";
2352
2352
  }
2353
2353
  function jo(e, t, n, i) {
2354
- var r = "", o = e.tag, a = Object.keys(n), l, s, u, d, c, g;
2354
+ var r = "", o = e.tag, a = Object.keys(n), l, s, u, d, c, m;
2355
2355
  if (e.sortKeys === !0)
2356
2356
  a.sort();
2357
2357
  else if (typeof e.sortKeys == "function")
@@ -2359,7 +2359,7 @@ function jo(e, t, n, i) {
2359
2359
  else if (e.sortKeys)
2360
2360
  throw new se("sortKeys must be a boolean or a function");
2361
2361
  for (l = 0, s = a.length; l < s; l += 1)
2362
- g = "", (!i || r !== "") && (g += it(e, t)), u = a[l], d = n[u], e.replacer && (d = e.replacer.call(n, u, d)), ge(e, t + 1, u, !0, !0, !0) && (c = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, c && (e.dump && Be === e.dump.charCodeAt(0) ? g += "?" : g += "? "), g += e.dump, c && (g += it(e, t)), ge(e, t + 1, d, !0, c) && (e.dump && Be === e.dump.charCodeAt(0) ? g += ":" : g += ": ", g += e.dump, r += g));
2362
+ m = "", (!i || r !== "") && (m += it(e, t)), u = a[l], d = n[u], e.replacer && (d = e.replacer.call(n, u, d)), ge(e, t + 1, u, !0, !0, !0) && (c = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, c && (e.dump && Be === e.dump.charCodeAt(0) ? m += "?" : m += "? "), m += e.dump, c && (m += it(e, t)), ge(e, t + 1, d, !0, c) && (e.dump && Be === e.dump.charCodeAt(0) ? m += ":" : m += ": ", m += e.dump, r += m));
2363
2363
  e.tag = o, e.dump = r || "{}";
2364
2364
  }
2365
2365
  function Ht(e, t, n) {
@@ -2383,14 +2383,14 @@ function ge(e, t, n, i, r, o, a) {
2383
2383
  e.tag = null, e.dump = n, Ht(e, n, !1) || Ht(e, n, !0);
2384
2384
  var l = jn.call(e.dump), s = i, u;
2385
2385
  i && (i = e.flowLevel < 0 || e.flowLevel > t);
2386
- var d = l === "[object Object]" || l === "[object Array]", c, g;
2387
- if (d && (c = e.duplicates.indexOf(n), g = c !== -1), (e.tag !== null && e.tag !== "?" || g || e.indent !== 2 && t > 0) && (r = !1), g && e.usedDuplicates[c])
2386
+ var d = l === "[object Object]" || l === "[object Array]", c, m;
2387
+ if (d && (c = e.duplicates.indexOf(n), m = c !== -1), (e.tag !== null && e.tag !== "?" || m || e.indent !== 2 && t > 0) && (r = !1), m && e.usedDuplicates[c])
2388
2388
  e.dump = "*ref_" + c;
2389
2389
  else {
2390
- if (d && g && !e.usedDuplicates[c] && (e.usedDuplicates[c] = !0), l === "[object Object]")
2391
- i && Object.keys(e.dump).length !== 0 ? (jo(e, t, e.dump, r), g && (e.dump = "&ref_" + c + e.dump)) : (Po(e, t, e.dump), g && (e.dump = "&ref_" + c + " " + e.dump));
2390
+ if (d && m && !e.usedDuplicates[c] && (e.usedDuplicates[c] = !0), l === "[object Object]")
2391
+ i && Object.keys(e.dump).length !== 0 ? (jo(e, t, e.dump, r), m && (e.dump = "&ref_" + c + e.dump)) : (Po(e, t, e.dump), m && (e.dump = "&ref_" + c + " " + e.dump));
2392
2392
  else if (l === "[object Array]")
2393
- i && e.dump.length !== 0 ? (e.noArrayIndent && !a && t > 0 ? qt(e, t - 1, e.dump, r) : qt(e, t, e.dump, r), g && (e.dump = "&ref_" + c + e.dump)) : (Do(e, t, e.dump), g && (e.dump = "&ref_" + c + " " + e.dump));
2393
+ i && e.dump.length !== 0 ? (e.noArrayIndent && !a && t > 0 ? qt(e, t - 1, e.dump, r) : qt(e, t, e.dump, r), m && (e.dump = "&ref_" + c + e.dump)) : (Do(e, t, e.dump), m && (e.dump = "&ref_" + c + " " + e.dump));
2394
2394
  else if (l === "[object String]")
2395
2395
  e.tag !== "?" && Ko(e, e.dump, t, o, s);
2396
2396
  else {
@@ -2521,10 +2521,10 @@ const ol = { class: "yaml-config config-card-code-block" }, Xn = /* @__PURE__ */
2521
2521
  }
2522
2522
  },
2523
2523
  setup(e) {
2524
- const t = e, n = S(() => Ii.includes(t.entityType)), i = S(() => Fi.includes(t.entityType)), r = (c, g) => {
2524
+ const t = e, n = S(() => Ii.includes(t.entityType)), i = S(() => Fi.includes(t.entityType)), r = (c, m) => {
2525
2525
  if (c.includes(`
2526
2526
  `)) {
2527
- const f = g + X, y = c.split(`
2527
+ const f = m + X, y = c.split(`
2528
2528
  `).map((b) => `${f}${b}`).join(`
2529
2529
  `);
2530
2530
  return `<<-${Yt}
@@ -2532,20 +2532,20 @@ ${y}
2532
2532
  ${f}${Yt}`;
2533
2533
  }
2534
2534
  return `"${c.replace(/\\/g, "\\\\").replace(/"/g, '\\"')}"`;
2535
- }, o = (c, g) => {
2536
- const m = X;
2535
+ }, o = (c, m) => {
2536
+ const p = X;
2537
2537
  let f = "";
2538
- return typeof c == "string" ? f += `${m}${g} = ${r(c, m)}
2539
- ` : f += `${m}${g} = ${String(c ?? "")}
2538
+ return typeof c == "string" ? f += `${p}${m} = ${r(c, p)}
2539
+ ` : f += `${p}${m} = ${String(c ?? "")}
2540
2540
  `, f;
2541
- }, a = (c, g, m = "") => {
2541
+ }, a = (c, m, p = "") => {
2542
2542
  if (typeof c != "object")
2543
2543
  return "Invalid object";
2544
- const f = X + m;
2544
+ const f = X + p;
2545
2545
  let y = "";
2546
- if (g && (y += `${f}${g} = {
2546
+ if (m && (y += `${f}${m} = {
2547
2547
  `), c === null)
2548
- return g ? y += `${f}}` : y = "{}", y;
2548
+ return m ? y += `${f}}` : y = "{}", y;
2549
2549
  const b = Object.fromEntries(Object.entries(c).filter(([, A]) => A !== null));
2550
2550
  let C = "";
2551
2551
  for (const [A, k] of Object.entries(b))
@@ -2553,14 +2553,14 @@ ${f}${Yt}`;
2553
2553
  `, C += l(k, void 0, f), C += `${f}${X}]`) : k && typeof k == "object" ? (C = `{
2554
2554
  `, C += a(k, void 0, f), C += `${f}${X}}`) : typeof k == "string" ? C = r(k, f + X) : C = String(k ?? ""), y += `${f}${X}${A} = ${C}
2555
2555
  `;
2556
- return g ? y += `${f}}
2556
+ return m ? y += `${f}}
2557
2557
  ` : y;
2558
- }, l = (c, g, m = "") => {
2558
+ }, l = (c, m, p = "") => {
2559
2559
  if (!Array.isArray(c))
2560
2560
  return "Invalid array";
2561
- const f = X + m;
2561
+ const f = X + p;
2562
2562
  let y = "";
2563
- g && (c.length === 0 ? y += `${f}${g} = [` : y += `${f}${g} = [
2563
+ m && (c.length === 0 ? y += `${f}${m} = [` : y += `${f}${m} = [
2564
2564
  `);
2565
2565
  for (let b = 0; b < c.length; b++) {
2566
2566
  const C = c[b];
@@ -2568,45 +2568,45 @@ ${f}${Yt}`;
2568
2568
  `, y += a(C, void 0, f), y += `${f}${X}}`) : typeof C == "string" ? y += `${f}${X}${r(C, f + X)}` : y += `${f}${X}${String(C ?? "")}`, b < c.length - 1 && (y += ","), y += `
2569
2569
  `;
2570
2570
  }
2571
- return g && (c.length === 0 ? y += `]
2571
+ return m && (c.length === 0 ? y += `]
2572
2572
  ` : y += `${f}]
2573
2573
  `), y;
2574
2574
  }, s = (c) => c.replace(/\$\{/g, () => "$${"), u = (c) => {
2575
- let g = "";
2576
- for (const [m, f] of Object.entries(c))
2577
- Array.isArray(f) ? g += l(f, m) : typeof f == "object" ? g += a(f, m) : g += o(f, m);
2578
- return s(g);
2575
+ let m = "";
2576
+ for (const [p, f] of Object.entries(c))
2577
+ Array.isArray(f) ? m += l(f, p) : typeof f == "object" ? m += a(f, p) : m += o(f, p);
2578
+ return s(m);
2579
2579
  }, d = S(() => {
2580
2580
  var y, b, C, A, k, Y, te;
2581
- const c = Object.fromEntries(Object.entries(t.entityRecord).filter(([, E]) => E != null)), g = t.entityRecord.config ? Object.fromEntries(Object.entries((y = t.entityRecord) == null ? void 0 : y.config).filter(([, E]) => E != null)) : void 0;
2582
- if (g && (c.config = g), Object.keys(c).length === 0)
2581
+ const c = Object.fromEntries(Object.entries(t.entityRecord).filter(([, E]) => E != null)), m = t.entityRecord.config ? Object.fromEntries(Object.entries((y = t.entityRecord) == null ? void 0 : y.config).filter(([, E]) => E != null)) : void 0;
2582
+ if (m && (c.config = m), Object.keys(c).length === 0)
2583
2583
  return "";
2584
2584
  delete c.id;
2585
- let m = "", f = "";
2585
+ let p = "", f = "";
2586
2586
  if ((b = c.service) != null && b.id ? (f = "service", delete c.service) : (C = c.route) != null && C.id ? (f = "route", delete c.route) : (A = c.consumer) != null && A.id ? (f = "consumer", delete c.consumer) : (k = c.consumer_group) != null && k.id ? (f = "consumer_group", delete c.consumer_group) : (Y = c.certificate) != null && Y.id ? (f = "certificate", delete c.certificate) : (te = c.set) != null && te.id && (f = "set", delete c.set), n.value) {
2587
2587
  const E = t.subEntityType ? `${t.entityType}_${t.subEntityType}` : t.entityType;
2588
- m += `resource "konnect_event_gateway_${E}" "my_eventgateway${E.replaceAll("_", "")}" {
2589
- `, m += `${X}provider = konnect-beta
2588
+ p += `resource "konnect_event_gateway_${E}" "my_eventgateway${E.replaceAll("_", "")}" {
2589
+ `, p += `${X}provider = konnect-beta
2590
2590
  `;
2591
2591
  } else if (t.entityType === "plugin") {
2592
2592
  const E = t.credentialType.replace(/-/g, "_") || (c.name + "").replace(/-/g, "_");
2593
- delete c.name, m += `resource "konnect_gateway_plugin_${E}" "my_${E}" {
2593
+ delete c.name, p += `resource "konnect_gateway_plugin_${E}" "my_${E}" {
2594
2594
  `;
2595
- } else i.value ? (m += `resource "konnect_${t.entityType}" "my_${t.entityType}" {
2596
- `, m += `${X}provider = konnect-beta
2597
- `) : m += `resource "konnect_gateway_${t.entityType}" "my_${t.entityType}" {
2595
+ } else i.value ? (p += `resource "konnect_${t.entityType}" "my_${t.entityType}" {
2596
+ `, p += `${X}provider = konnect-beta
2597
+ `) : p += `resource "konnect_gateway_${t.entityType}" "my_${t.entityType}" {
2598
2598
  `;
2599
- return m += u(c), !n.value && !i.value ? m += `${X}control_plane_id = konnect_gateway_control_plane.my_konnect_cp.id
2600
- ` : f && (m += `${X}${f} = {
2601
- `, m += `${X}${X}id = konnect_gateway_${f}.my_${f}.id
2602
- `, m += `${X}}
2603
- `), m += `}
2604
- `, m;
2599
+ return p += u(c), !n.value && !i.value ? p += `${X}control_plane_id = konnect_gateway_control_plane.my_konnect_cp.id
2600
+ ` : f && (p += `${X}${f} = {
2601
+ `, p += `${X}${X}id = konnect_gateway_${f}.my_${f}.id
2602
+ `, p += `${X}}
2603
+ `), p += `}
2604
+ `, p;
2605
2605
  });
2606
- return (c, g) => {
2607
- const m = U("KCodeBlock");
2606
+ return (c, m) => {
2607
+ const p = U("KCodeBlock");
2608
2608
  return h(), $("div", ll, [
2609
- t.entityRecord ? (h(), B(m, {
2609
+ t.entityRecord ? (h(), B(p, {
2610
2610
  key: 0,
2611
2611
  id: "terraform-codeblock",
2612
2612
  code: d.value,
@@ -2640,14 +2640,14 @@ ${f}${Yt}`;
2640
2640
  control_plane_name: t.controlPlaneName
2641
2641
  } : t.workspace && (d._workspace = t.workspace), d;
2642
2642
  }), l = S(() => {
2643
- var m, f, y, b, C;
2643
+ var p, f, y, b, C;
2644
2644
  const d = Object.fromEntries(Object.entries(t.entityRecord).filter(([, A]) => A !== null && A !== "" && (Array.isArray(A) ? A.length !== 0 : !0)));
2645
- t.entityType === ke.Plugin ? ((m = d.service) != null && m.id && (d.service = d.service.id), (f = d.route) != null && f.id && (d.route = d.route.id), (y = d.consumer) != null && y.id && (d.consumer = d.consumer.id), (b = d.consumer_group) != null && b.id && (d.consumer_group = d.consumer_group.id)) : t.entityType === ke.Key && (C = d.key_set) != null && C.id && (d.key_set = d.key_set.id);
2646
- const c = t.entityType === ke.KeySet ? "key_sets" : t.entityType + "s", g = {
2645
+ t.entityType === ke.Plugin ? ((p = d.service) != null && p.id && (d.service = d.service.id), (f = d.route) != null && f.id && (d.route = d.route.id), (y = d.consumer) != null && y.id && (d.consumer = d.consumer.id), (b = d.consumer_group) != null && b.id && (d.consumer_group = d.consumer_group.id)) : t.entityType === ke.Key && (C = d.key_set) != null && C.id && (d.key_set = d.key_set.id);
2646
+ const c = t.entityType === ke.KeySet ? "key_sets" : t.entityType + "s", m = {
2647
2647
  ...a.value,
2648
2648
  [c]: [d]
2649
2649
  };
2650
- return Zn.dump(g, { quotingType: '"' }).trim();
2650
+ return Zn.dump(m, { quotingType: '"' }).trim();
2651
2651
  }), s = S(() => o.value === "bash" ? "export DECK_KONNECT_TOKEN='YOUR_KONNECT_PAT'" : '$env:DECK_KONNECT_TOKEN = "YOUR_KONNECT_PAT"'), u = S(() => {
2652
2652
  let d = "deck gateway apply -";
2653
2653
  return t.geoApiServerUrl ? d += ` --konnect-addr ${t.geoApiServerUrl}` : t.kongAdminApiUrl && (d += ` --kong-addr ${t.kongAdminApiUrl}`), o.value === "bash" ? `echo '
@@ -2657,9 +2657,9 @@ ${l.value}
2657
2657
  '@ | ${d}`;
2658
2658
  });
2659
2659
  return (d, c) => {
2660
- const g = U("KSelect"), m = U("KBadge"), f = U("KCodeBlock");
2660
+ const m = U("KSelect"), p = U("KBadge"), f = U("KCodeBlock");
2661
2661
  return h(), $("div", sl, [
2662
- N(g, {
2662
+ N(m, {
2663
2663
  modelValue: o.value,
2664
2664
  "onUpdate:modelValue": c[0] || (c[0] = (y) => o.value = y),
2665
2665
  items: r
@@ -2694,7 +2694,7 @@ ${l.value}
2694
2694
  e.app === "konnect" ? {
2695
2695
  name: "token",
2696
2696
  fn: w(() => [
2697
- N(m, null, {
2697
+ N(p, null, {
2698
2698
  default: w(() => [...c[1] || (c[1] = [
2699
2699
  q("DECK_KONNECT_TOKEN", -1)
2700
2700
  ])]),
@@ -3014,17 +3014,17 @@ ${l.value}
3014
3014
  label: r("baseForm.configuration.deck"),
3015
3015
  value: "deck"
3016
3016
  });
3017
- const c = s[0].value, g = M(c), m = (p) => {
3018
- g.value = p == null ? void 0 : p.value, n("configFormatChange", g.value);
3019
- }, f = (p, K) => {
3020
- localStorage.setItem(p, K);
3017
+ const c = s[0].value, m = M(c), p = (g) => {
3018
+ m.value = g == null ? void 0 : g.value, n("configFormatChange", m.value);
3019
+ }, f = (g, K) => {
3020
+ localStorage.setItem(g, K);
3021
3021
  };
3022
- xe(g, (p) => {
3023
- i.config.formatPreferenceKey && f(i.config.formatPreferenceKey, p);
3022
+ xe(m, (g) => {
3023
+ i.config.formatPreferenceKey && f(i.config.formatPreferenceKey, g);
3024
3024
  }), lt(() => {
3025
3025
  if (i.config.formatPreferenceKey) {
3026
- const p = localStorage.getItem(i.config.formatPreferenceKey);
3027
- p && s.some((K) => K.value === p) ? g.value = p : g.value = c, f(i.config.formatPreferenceKey, g.value);
3026
+ const g = localStorage.getItem(i.config.formatPreferenceKey);
3027
+ g && s.some((K) => K.value === g) ? m.value = g : m.value = c, f(i.config.formatPreferenceKey, m.value);
3028
3028
  }
3029
3029
  });
3030
3030
  const y = {
@@ -3072,16 +3072,16 @@ ${l.value}
3072
3072
  var H, V, ie;
3073
3073
  if (!k.value)
3074
3074
  return [];
3075
- const p = [], K = Object.keys(k.value).length;
3075
+ const g = [], K = Object.keys(k.value).length;
3076
3076
  for (const D in k.value) {
3077
3077
  if (D === "__ui_data") continue;
3078
3078
  const L = (V = (H = i.configSchema) == null ? void 0 : H[D]) == null ? void 0 : V.order, Q = (ie = y[D]) == null ? void 0 : ie.order;
3079
3079
  let W = K;
3080
- (Q || Q === 0) && (W = Q === -1 ? K + 1 : Q), L && (W = L === -1 ? K + 1 : L), p.push([D, W]);
3080
+ (Q || Q === 0) && (W = Q === -1 ? K + 1 : Q), L && (W = L === -1 ? K + 1 : L), g.push([D, W]);
3081
3081
  }
3082
- return p.sort(function(D, L) {
3082
+ return g.sort(function(D, L) {
3083
3083
  return D[1] - L[1];
3084
- }), p.map((D) => {
3084
+ }), g.map((D) => {
3085
3085
  var ht, yt;
3086
3086
  const L = D[0], Q = (ht = k.value) == null ? void 0 : ht[L], W = ((yt = i.configSchema) == null ? void 0 : yt[L]) || {}, Z = y[L];
3087
3087
  return {
@@ -3098,9 +3098,9 @@ ${l.value}
3098
3098
  var V, ie;
3099
3099
  if (!k.value || !i.pluginConfigKey)
3100
3100
  return [];
3101
- const p = k.value[i.pluginConfigKey] || {}, K = Object.keys(p).length, H = [];
3102
- for (const D in p) {
3103
- const L = (ie = (V = i.pluginConfigSchema) == null ? void 0 : V[D]) == null ? void 0 : ie.order, Q = p[D];
3101
+ const g = k.value[i.pluginConfigKey] || {}, K = Object.keys(g).length, H = [];
3102
+ for (const D in g) {
3103
+ const L = (ie = (V = i.pluginConfigSchema) == null ? void 0 : V[D]) == null ? void 0 : ie.order, Q = g[D];
3104
3104
  let W = Q != null && Q !== "" ? K - 1 : K;
3105
3105
  L && (W = L === -1 ? K + 1 : L), H.push([D, W]);
3106
3106
  }
@@ -3108,7 +3108,7 @@ ${l.value}
3108
3108
  return D[1] - L[1];
3109
3109
  }), H.map((D) => {
3110
3110
  var Z;
3111
- const L = D[0], Q = p[L], W = ((Z = i.pluginConfigSchema) == null ? void 0 : Z[L]) || {};
3111
+ const L = D[0], Q = g[L], W = ((Z = i.pluginConfigSchema) == null ? void 0 : Z[L]) || {};
3112
3112
  return {
3113
3113
  key: L,
3114
3114
  value: Q,
@@ -3123,9 +3123,9 @@ ${l.value}
3123
3123
  var V, ie;
3124
3124
  if (!k.value || !i.policyConfigKey)
3125
3125
  return [];
3126
- const p = k.value[i.policyConfigKey] || {}, K = Object.keys(p).length, H = [];
3127
- for (const D in p) {
3128
- const L = (ie = (V = i.policyConfigSchema) == null ? void 0 : V[D]) == null ? void 0 : ie.order, Q = p[D];
3126
+ const g = k.value[i.policyConfigKey] || {}, K = Object.keys(g).length, H = [];
3127
+ for (const D in g) {
3128
+ const L = (ie = (V = i.policyConfigSchema) == null ? void 0 : V[D]) == null ? void 0 : ie.order, Q = g[D];
3129
3129
  let W = Q != null && Q !== "" ? K - 1 : K;
3130
3130
  L && (W = L === -1 ? K + 1 : L), H.push([D, W]);
3131
3131
  }
@@ -3133,7 +3133,7 @@ ${l.value}
3133
3133
  return D[1] - L[1];
3134
3134
  }), H.map((D) => {
3135
3135
  var Z;
3136
- const L = D[0], Q = p[L], W = ((Z = i.policyConfigSchema) == null ? void 0 : Z[L]) || {};
3136
+ const L = D[0], Q = g[L], W = ((Z = i.policyConfigSchema) == null ? void 0 : Z[L]) || {};
3137
3137
  return {
3138
3138
  key: L,
3139
3139
  value: Q,
@@ -3145,43 +3145,43 @@ ${l.value}
3145
3145
  };
3146
3146
  }).filter((D) => !D.hidden);
3147
3147
  }), O = S(() => {
3148
- var p, K, H, V, ie, D;
3148
+ var g, K, H, V, ie, D;
3149
3149
  return {
3150
- basic: (p = Y.value) == null ? void 0 : p.filter((L) => L.section === le.Basic),
3150
+ basic: (g = Y.value) == null ? void 0 : g.filter((L) => L.section === le.Basic),
3151
3151
  advanced: (K = Y.value) == null ? void 0 : K.filter((L) => L.section === le.Advanced),
3152
3152
  plugin: (V = te.value) == null ? void 0 : V.concat((H = Y.value) == null ? void 0 : H.filter((L) => L.section === le.Plugin)),
3153
3153
  policy: (D = E.value) == null ? void 0 : D.concat((ie = Y.value) == null ? void 0 : ie.filter((L) => L.section === le.Policy))
3154
3154
  };
3155
3155
  }), I = S(() => {
3156
- const p = [];
3157
- return O.value.basic.length && p.push("basic"), O.value.advanced.length && p.push("advanced"), O.value.plugin.length && p.push("plugin"), O.value.policy.length && p.push("policy"), p;
3156
+ const g = [];
3157
+ return O.value.basic.length && g.push("basic"), O.value.advanced.length && g.push("advanced"), O.value.plugin.length && g.push("plugin"), O.value.policy.length && g.push("policy"), g;
3158
3158
  }), v = S(() => {
3159
3159
  var K, H;
3160
- let p = `${i.config.apiBaseUrl}${i.fetchUrl}`;
3161
- return i.config.app === "konnect" ? p = p.replace(/{controlPlaneId}/gi, ((K = i.config) == null ? void 0 : K.controlPlaneId) || "") : i.config.app === "kongManager" && (p = p.replace(/\/{workspace}/gi, (H = i.config) != null && H.workspace ? `/${i.config.workspace}` : "")), p = p.replace(/{id}/gi, i.config.entityId), p;
3160
+ let g = `${i.config.apiBaseUrl}${i.fetchUrl}`;
3161
+ return i.config.app === "konnect" && (g = g.replace(/{controlPlaneId}/gi, ((K = i.config) == null ? void 0 : K.controlPlaneId) || "")), g.replace(/\/{workspace}/gi, (H = i.config) != null && H.workspace ? `/${i.config.workspace}` : "").replace(/{id}/gi, i.config.entityId);
3162
3162
  });
3163
- return xe(b, (p) => {
3164
- n("loading", p);
3163
+ return xe(b, (g) => {
3164
+ n("loading", g);
3165
3165
  }, { immediate: !0 }), st(async () => {
3166
3166
  C.value = !1, b.value = !0;
3167
3167
  try {
3168
- const { data: p } = await l.get(v.value);
3168
+ const { data: g } = await l.get(v.value);
3169
3169
  if (i.dataKey)
3170
- if (typeof p[i.dataKey] < "u")
3171
- k.value = { ...p[i.dataKey] };
3170
+ if (typeof g[i.dataKey] < "u")
3171
+ k.value = { ...g[i.dataKey] };
3172
3172
  else
3173
3173
  throw new Error(r("errors.dataKeyUndefined", { dataKey: i.dataKey }));
3174
- else i.recordResolver ? k.value = { ...i.recordResolver(p) } : k.value = { ...p };
3174
+ else i.recordResolver ? k.value = { ...i.recordResolver(g) } : k.value = { ...g };
3175
3175
  Object.keys(i.configSchema).filter((H) => i.configSchema[H].forceShow).forEach((H) => {
3176
3176
  k.value && typeof k.value[H] > "u" && (k.value[H] = null);
3177
- }), n("fetch:success", p);
3178
- } catch (p) {
3179
- const K = o(p);
3180
- A.value = K.startsWith("code") ? r("baseConfigCard.errors.load") : K, C.value = !0, n("fetch:error", p);
3177
+ }), n("fetch:success", g);
3178
+ } catch (g) {
3179
+ const K = o(g);
3180
+ A.value = K.startsWith("code") ? r("baseConfigCard.errors.load") : K, C.value = !0, n("fetch:error", g);
3181
3181
  } finally {
3182
3182
  b.value = !1;
3183
3183
  }
3184
- }), (p, K) => {
3184
+ }), (g, K) => {
3185
3185
  const H = U("KLabel"), V = U("KSelect"), ie = U("KButton"), D = U("KSkeleton"), L = U("KEmptyState"), Q = U("KCard");
3186
3186
  return h(), B(Q, {
3187
3187
  class: "kong-ui-entity-base-config-card",
@@ -3189,7 +3189,7 @@ ${l.value}
3189
3189
  }, Ae({
3190
3190
  actions: w(() => [
3191
3191
  R("div", hl, [
3192
- j(p.$slots, "actions", {}, void 0, !0),
3192
+ j(g.$slots, "actions", {}, void 0, !0),
3193
3193
  N(H, {
3194
3194
  class: "config-format-select-label",
3195
3195
  "data-testid": "config-format-select-label"
@@ -3200,11 +3200,11 @@ ${l.value}
3200
3200
  _: 1
3201
3201
  }),
3202
3202
  N(V, {
3203
- modelValue: g.value,
3204
- "onUpdate:modelValue": K[0] || (K[0] = (W) => g.value = W),
3203
+ modelValue: m.value,
3204
+ "onUpdate:modelValue": K[0] || (K[0] = (W) => m.value = W),
3205
3205
  "data-testid": "select-config-format",
3206
3206
  items: s,
3207
- onChange: m
3207
+ onChange: p
3208
3208
  }, null, 8, ["modelValue"]),
3209
3209
  e.configCardDoc ? (h(), B(ie, {
3210
3210
  key: 0,
@@ -3246,16 +3246,16 @@ ${l.value}
3246
3246
  config: e.config,
3247
3247
  "entity-type": e.entityType,
3248
3248
  "fetcher-url": v.value,
3249
- format: g.value,
3249
+ format: m.value,
3250
3250
  "prop-list-types": I.value,
3251
3251
  "property-collections": O.value,
3252
3252
  record: k.value,
3253
3253
  "sub-entity-type": e.subEntityType
3254
3254
  }, Ae({ _: 2 }, [
3255
- de(Object.keys(p.$slots), (W) => ({
3255
+ de(Object.keys(g.$slots), (W) => ({
3256
3256
  name: W,
3257
3257
  fn: w((Z) => [
3258
- j(p.$slots, W, zt({ record: k.value }, Z), void 0, !0)
3258
+ j(g.$slots, W, zt({ record: k.value }, Z), void 0, !0)
3259
3259
  ])
3260
3260
  }))
3261
3261
  ]), 1032, ["code-block-record-formatter", "config", "entity-type", "fetcher-url", "format", "prop-list-types", "property-collections", "record", "sub-entity-type"])
@@ -3267,7 +3267,7 @@ ${l.value}
3267
3267
  name: "title",
3268
3268
  fn: w(() => [
3269
3269
  R("span", gl, [
3270
- j(p.$slots, "title", {}, () => [
3270
+ j(g.$slots, "title", {}, () => [
3271
3271
  q(F(x(r)("baseConfigCard.title")), 1)
3272
3272
  ], !0)
3273
3273
  ])
@@ -3277,7 +3277,7 @@ ${l.value}
3277
3277
  ]), 1032, ["title-tag"]);
3278
3278
  };
3279
3279
  }
3280
- }), Js = /* @__PURE__ */ ce(bl, [["__scopeId", "data-v-6a85aad7"]]), kl = {
3280
+ }), Js = /* @__PURE__ */ ce(bl, [["__scopeId", "data-v-b0848300"]]), kl = {
3281
3281
  /** Enable the new plugin form layout */
3282
3282
  KM_1948_PLUGIN_FORM_LAYOUT: "KM_1948_PLUGIN_FORM_LAYOUT"
3283
3283
  }, Cl = ["novalidate"], xl = /* @__PURE__ */ z({
@@ -3404,10 +3404,10 @@ ${l.value}
3404
3404
  emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel", "codeBlockTabChange"],
3405
3405
  setup(e, { expose: t, emit: n }) {
3406
3406
  var I;
3407
- const i = ot(kl.KM_1948_PLUGIN_FORM_LAYOUT, S(() => !1)), r = n, o = e, a = $i(), { i18n: { t: l } } = G.useI18n(), { getMessageFromError: s } = G.useErrors(), { axiosInstance: u } = G.useAxios((I = o.config) == null ? void 0 : I.axiosRequestConfig), d = M(!1), c = S(() => !!o.editId), g = M(!1), m = M(""), f = S(() => o.canSubmit === !1 || o.isReadonly), y = M(!1), b = S(() => {
3408
- var _, p;
3407
+ const i = ot(kl.KM_1948_PLUGIN_FORM_LAYOUT, S(() => !1)), r = n, o = e, a = $i(), { i18n: { t: l } } = G.useI18n(), { getMessageFromError: s } = G.useErrors(), { axiosInstance: u } = G.useAxios((I = o.config) == null ? void 0 : I.axiosRequestConfig), d = M(!1), c = S(() => !!o.editId), m = M(!1), p = M(""), f = S(() => o.canSubmit === !1 || o.isReadonly), y = M(!1), b = S(() => {
3408
+ var _, g;
3409
3409
  let v = `${o.config.apiBaseUrl}${o.fetchUrl}`;
3410
- return o.config.app === "konnect" ? v = v.replace(/{controlPlaneId}/gi, ((_ = o.config) == null ? void 0 : _.controlPlaneId) || "") : o.config.app === "kongManager" && (v = v.replace(/\/{workspace}/gi, (p = o.config) != null && p.workspace ? `/${o.config.workspace}` : "")), o.editId ? (v = v.replace(/{id}/gi, o.editId), v) : (v = v.replace(/\/{id}/gi, ""), v);
3410
+ return o.config.app === "konnect" && (v = v.replace(/{controlPlaneId}/gi, ((_ = o.config) == null ? void 0 : _.controlPlaneId) || "")), v = v.replace(/\/{workspace}/gi, (g = o.config) != null && g.workspace ? `/${o.config.workspace}` : ""), o.editId ? (v = v.replace(/{id}/gi, o.editId), v) : (v = v.replace(/\/{id}/gi, ""), v);
3411
3411
  }), C = () => {
3412
3412
  y.value = !y.value;
3413
3413
  }, A = () => {
@@ -3439,12 +3439,12 @@ ${l.value}
3439
3439
  }, { immediate: !0 }), st(async () => {
3440
3440
  if (o.editId)
3441
3441
  try {
3442
- g.value = !1, d.value = !0;
3442
+ m.value = !1, d.value = !0;
3443
3443
  const { data: v } = await u.get(b.value);
3444
3444
  r("fetch:success", v);
3445
3445
  } catch (v) {
3446
3446
  const _ = s(v);
3447
- m.value = _.startsWith("code") ? l("baseForm.errors.edit") : _, g.value = !0, r("fetch:error", v);
3447
+ p.value = _.startsWith("code") ? l("baseForm.errors.edit") : _, m.value = !0, r("fetch:error", v);
3448
3448
  } finally {
3449
3449
  d.value = !1;
3450
3450
  }
@@ -3453,17 +3453,17 @@ ${l.value}
3453
3453
  formCancel: k,
3454
3454
  formSubmit: Y
3455
3455
  }), (v, _) => {
3456
- const p = U("KSkeleton"), K = U("KEmptyState"), H = U("KAlert"), V = U("KButton"), ie = U("KTabs"), D = U("KSlideout");
3456
+ const g = U("KSkeleton"), K = U("KEmptyState"), H = U("KAlert"), V = U("KButton"), ie = U("KTabs"), D = U("KSlideout");
3457
3457
  return h(), B(qe(e.wrapperComponent), {
3458
3458
  class: fe(["kong-ui-entity-base-form", {
3459
3459
  "new-form-layout": x(i) && e.entityType === x(ke).Plugin
3460
3460
  }])
3461
3461
  }, {
3462
3462
  default: w(() => [
3463
- d.value ? (h(), B(p, {
3463
+ d.value ? (h(), B(g, {
3464
3464
  key: 0,
3465
3465
  type: "form"
3466
- })) : g.value ? (h(), B(K, {
3466
+ })) : m.value ? (h(), B(K, {
3467
3467
  key: 1,
3468
3468
  "action-button-text": x(l)("baseForm.actions.back"),
3469
3469
  "data-testid": "form-fetch-error",
@@ -3471,7 +3471,7 @@ ${l.value}
3471
3471
  onClickAction: A
3472
3472
  }, {
3473
3473
  default: w(() => [
3474
- R("h3", null, F(m.value), 1)
3474
+ R("h3", null, F(p.value), 1)
3475
3475
  ]),
3476
3476
  _: 1
3477
3477
  }, 8, ["action-button-text"])) : (h(), $("form", {
@@ -3598,7 +3598,7 @@ ${l.value}
3598
3598
  }, 8, ["class"]);
3599
3599
  };
3600
3600
  }
3601
- }), Gs = /* @__PURE__ */ ce(xl, [["__scopeId", "data-v-e9e45c9a"]]), Al = ["data-truncate"], wl = /* @__PURE__ */ z({
3601
+ }), Gs = /* @__PURE__ */ ce(xl, [["__scopeId", "data-v-acce8e51"]]), Al = ["data-truncate"], wl = /* @__PURE__ */ z({
3602
3602
  __name: "EntityBaseTableCell",
3603
3603
  props: {
3604
3604
  keyName: {
@@ -3636,9 +3636,9 @@ ${l.value}
3636
3636
  const Y = window.getComputedStyle(n.value);
3637
3637
  b -= (parseFloat(Y.paddingLeft) || 0) + (parseFloat(Y.paddingRight) || 0);
3638
3638
  }
3639
- d.value = ((A = i.value) == null ? void 0 : A.getBoundingClientRect().width) || 0, c.value = b, g.value = ((k = u.value) == null ? void 0 : k.innerText) || "";
3640
- }, u = M({}), d = M(0), c = M(0), g = M(""), m = S(() => [i.value, n.value]), f = xe(
3641
- m,
3639
+ d.value = ((A = i.value) == null ? void 0 : A.getBoundingClientRect().width) || 0, c.value = b, m.value = ((k = u.value) == null ? void 0 : k.innerText) || "";
3640
+ }, u = M({}), d = M(0), c = M(0), m = M(""), p = S(() => [i.value, n.value]), f = xe(
3641
+ p,
3642
3642
  (b) => {
3643
3643
  if (o.value && (l(), "ResizeObserver" in window && window)) {
3644
3644
  a = new ResizeObserver((C) => {
@@ -3670,7 +3670,7 @@ ${l.value}
3670
3670
  N(A, {
3671
3671
  "max-width": "300",
3672
3672
  placement: "bottom-start",
3673
- text: y.value ? g.value : ""
3673
+ text: y.value ? m.value : ""
3674
3674
  }, {
3675
3675
  default: w(() => [
3676
3676
  j(b.$slots, "default", {}, void 0, !0)
@@ -3845,11 +3845,11 @@ ${l.value}
3845
3845
  };
3846
3846
  }), a = S(() => n.cacheIdentifier || n.preferencesStorageKey), l = S(() => {
3847
3847
  const v = [];
3848
- return Object.keys(n.tableHeaders).forEach((p) => {
3849
- const K = n.tableHeaders[p];
3848
+ return Object.keys(n.tableHeaders).forEach((g) => {
3849
+ const K = n.tableHeaders[g];
3850
3850
  v.push({
3851
- label: K.label ?? p,
3852
- key: p,
3851
+ label: K.label ?? g,
3852
+ key: g,
3853
3853
  sortable: K.sortable ?? !1,
3854
3854
  hidable: K.hidable ?? !0
3855
3855
  });
@@ -3874,9 +3874,9 @@ ${l.value}
3874
3874
  overflowX: "hidden",
3875
3875
  textOverflow: "ellipsis"
3876
3876
  }), _;
3877
- }, g = (v) => {
3877
+ }, m = (v) => {
3878
3878
  A(v), i("state", v);
3879
- }, m = () => {
3879
+ }, p = () => {
3880
3880
  i("empty-state-cta-clicked"), f();
3881
3881
  }, f = () => {
3882
3882
  i("clear-search-input");
@@ -3900,14 +3900,14 @@ ${l.value}
3900
3900
  ...n.paginationAttributes
3901
3901
  }));
3902
3902
  return (v, _) => {
3903
- const p = U("KTableData"), K = U("KCard");
3903
+ const g = U("KTableData"), K = U("KCard");
3904
3904
  return h(), B(K, {
3905
3905
  class: "kong-ui-entity-base-table",
3906
3906
  title: e.title,
3907
3907
  "title-tag": e.titleTag
3908
3908
  }, {
3909
3909
  default: w(() => [
3910
- N(p, {
3910
+ N(g, {
3911
3911
  ref_key: "tableRefs",
3912
3912
  ref: u,
3913
3913
  "cache-identifier": a.value,
@@ -3937,10 +3937,10 @@ ${l.value}
3937
3937
  "sort-handler-function": e.enableClientSort ? e.sortHandlerFunction : void 0,
3938
3938
  sortable: !e.disableSorting,
3939
3939
  "table-preferences": te.value,
3940
- onEmptyStateActionClick: m,
3940
+ onEmptyStateActionClick: p,
3941
3941
  "onRow:click": y.value,
3942
3942
  onSort: _[0] || (_[0] = (H) => b(H)),
3943
- onState: g,
3943
+ onState: m,
3944
3944
  "onUpdate:tablePreferences": O
3945
3945
  }, Ae({
3946
3946
  toolbar: w(() => [
@@ -4187,10 +4187,10 @@ ${l.value}
4187
4187
  o.value = !o.value;
4188
4188
  }, c = (E) => {
4189
4189
  l.value.has(E) ? l.value.delete(E) : l.value.add(E);
4190
- }, g = (E) => {
4190
+ }, m = (E) => {
4191
4191
  r("update:modelValue", E);
4192
- }, m = () => {
4193
- g("");
4192
+ }, p = () => {
4193
+ m("");
4194
4194
  }, f = (E) => `filter-${E}`, y = (E) => {
4195
4195
  var O, I;
4196
4196
  return (((I = (O = i.config.schema) == null ? void 0 : O[E]) == null ? void 0 : I.values) ?? []).map((v) => typeof v == "string" ? { value: v, label: v } : v);
@@ -4224,7 +4224,7 @@ ${l.value}
4224
4224
  "data-testid": "search-input",
4225
4225
  "model-value": e.modelValue,
4226
4226
  placeholder: e.config.placeholder,
4227
- "onUpdate:modelValue": g
4227
+ "onUpdate:modelValue": m
4228
4228
  }, {
4229
4229
  before: w(() => [
4230
4230
  N(Vt)
@@ -4234,7 +4234,7 @@ ${l.value}
4234
4234
  class: "kong-ui-entity-filter-clear",
4235
4235
  role: "button",
4236
4236
  tabindex: "0",
4237
- onClick: m
4237
+ onClick: p
4238
4238
  }, null, 512), [
4239
4239
  [_e, e.modelValue !== ""]
4240
4240
  ])
@@ -4259,54 +4259,54 @@ ${l.value}
4259
4259
  [_e, o.value]
4260
4260
  ]),
4261
4261
  we(R("div", Dl, [
4262
- (h(!0), $(pe, null, de(u.value, (p) => {
4262
+ (h(!0), $(pe, null, de(u.value, (g) => {
4263
4263
  var K, H;
4264
4264
  return h(), $("div", {
4265
- key: p.value,
4265
+ key: g.value,
4266
4266
  class: "kong-ui-entity-filter-menu-item",
4267
- "data-testid": p.value
4267
+ "data-testid": g.value
4268
4268
  }, [
4269
4269
  R("span", {
4270
- class: fe(["menu-item-title", { expanded: l.value.has(p.value) }]),
4270
+ class: fe(["menu-item-title", { expanded: l.value.has(g.value) }]),
4271
4271
  role: "button",
4272
4272
  tabindex: "0",
4273
- onClick: (V) => c(p.value),
4274
- onKeydown: li((V) => c(p.value), ["enter"])
4273
+ onClick: (V) => c(g.value),
4274
+ onKeydown: li((V) => c(g.value), ["enter"])
4275
4275
  }, [
4276
- q(F(p.label) + " ", 1),
4276
+ q(F(g.label) + " ", 1),
4277
4277
  we(R("span", Ul, null, 512), [
4278
- [_e, s.value.includes(p.value)]
4278
+ [_e, s.value.includes(g.value)]
4279
4279
  ]),
4280
4280
  N(x(_i), {
4281
- class: fe(["menu-item-expand-icon", { expanded: l.value.has(p.value) }]),
4281
+ class: fe(["menu-item-expand-icon", { expanded: l.value.has(g.value) }]),
4282
4282
  color: x(br)
4283
4283
  }, null, 8, ["class", "color"])
4284
4284
  ], 42, jl),
4285
4285
  we(R("div", ql, [
4286
4286
  R("label", {
4287
4287
  class: "menu-item-label",
4288
- for: f(p.value)
4288
+ for: f(g.value)
4289
4289
  }, F(x(n)("filter.fieldLabel")), 9, Hl),
4290
- ((H = (K = e.config.schema) == null ? void 0 : K[p.value]) == null ? void 0 : H.type) === "select" ? (h(), B(_, {
4290
+ ((H = (K = e.config.schema) == null ? void 0 : K[g.value]) == null ? void 0 : H.type) === "select" ? (h(), B(_, {
4291
4291
  key: 0,
4292
- id: f(p.value),
4293
- modelValue: a.value[p.value],
4294
- "onUpdate:modelValue": (V) => a.value[p.value] = V,
4295
- "enable-filtering": Y(p.value),
4296
- "filter-function": (V) => te(p.value, V),
4297
- items: y(p.value),
4292
+ id: f(g.value),
4293
+ modelValue: a.value[g.value],
4294
+ "onUpdate:modelValue": (V) => a.value[g.value] = V,
4295
+ "enable-filtering": Y(g.value),
4296
+ "filter-function": (V) => te(g.value, V),
4297
+ items: y(g.value),
4298
4298
  placeholder: x(n)("filter.selectPlaceholder")
4299
4299
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "enable-filtering", "filter-function", "items", "placeholder"])) : (h(), B(I, {
4300
4300
  key: 1,
4301
- id: f(p.value),
4302
- modelValue: a.value[p.value],
4303
- "onUpdate:modelValue": (V) => a.value[p.value] = V,
4301
+ id: f(g.value),
4302
+ modelValue: a.value[g.value],
4303
+ "onUpdate:modelValue": (V) => a.value[g.value] = V,
4304
4304
  autocomplete: "off",
4305
4305
  placeholder: x(n)("filter.inputPlaceholder"),
4306
- type: b(p.value)
4306
+ type: b(g.value)
4307
4307
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
4308
4308
  ], 512), [
4309
- [_e, l.value.has(p.value)]
4309
+ [_e, l.value.has(g.value)]
4310
4310
  ]),
4311
4311
  we(R("div", Yl, [
4312
4312
  N(v, {
@@ -4324,7 +4324,7 @@ ${l.value}
4324
4324
  appearance: "tertiary",
4325
4325
  "data-testid": "clear-filter",
4326
4326
  size: "small",
4327
- onClick: (V) => C(p.value)
4327
+ onClick: (V) => C(g.value)
4328
4328
  }, {
4329
4329
  default: w(() => [
4330
4330
  q(F(x(n)("filter.clearButtonText")), 1)
@@ -4332,7 +4332,7 @@ ${l.value}
4332
4332
  _: 1
4333
4333
  }, 8, ["onClick"])
4334
4334
  ], 512), [
4335
- [_e, l.value.has(p.value)]
4335
+ [_e, l.value.has(g.value)]
4336
4336
  ])
4337
4337
  ], 8, Pl);
4338
4338
  }), 128)),
@@ -4402,10 +4402,10 @@ ${l.value}
4402
4402
  }
4403
4403
  }
4404
4404
  };
4405
- return (c, g) => {
4406
- const m = U("KPrompt");
4405
+ return (c, m) => {
4406
+ const p = U("KPrompt");
4407
4407
  return h(), B(Qt, { to: "body" }, [
4408
- N(m, {
4408
+ N(p, {
4409
4409
  "action-button-disabled": a.value,
4410
4410
  "action-button-text": s.value,
4411
4411
  "data-testid": `${e.entityType}-${e.entityId}-toggle-prompt`,
@@ -4662,8 +4662,8 @@ const Xl = ["aria-labelledby"], es = { class: "form-section-wrapper" }, ts = {
4662
4662
  a.value = o;
4663
4663
  }, 1800));
4664
4664
  };
4665
- return (c, g) => {
4666
- const m = U("KTooltip"), f = U("KExternalLink"), y = U("KClipboardProvider");
4665
+ return (c, m) => {
4666
+ const p = U("KTooltip"), f = U("KExternalLink"), y = U("KClipboardProvider");
4667
4667
  return h(), $("div", ps, [
4668
4668
  l.value ? (h(), $("div", ms, F(u.value), 1)) : s.value ? s.value ? (h(), B(f, {
4669
4669
  key: 2,
@@ -4673,7 +4673,7 @@ const Xl = ["aria-labelledby"], es = { class: "form-section-wrapper" }, ts = {
4673
4673
  target: e.newWindow ? "_blank" : "_self"
4674
4674
  }, {
4675
4675
  default: w(() => [
4676
- N(m, {
4676
+ N(p, {
4677
4677
  text: x(i) && e.entityLinkData.label || ""
4678
4678
  }, {
4679
4679
  default: w(() => [
@@ -4688,7 +4688,7 @@ const Xl = ["aria-labelledby"], es = { class: "form-section-wrapper" }, ts = {
4688
4688
  ]),
4689
4689
  _: 1
4690
4690
  }, 8, ["hide-icon", "href", "target"])) : P("", !0) : (h(), $("div", gs, F(" – "))),
4691
- s.value && e.allowCopy ? (h(), B(m, {
4691
+ s.value && e.allowCopy ? (h(), B(p, {
4692
4692
  key: a.value,
4693
4693
  class: "copy-uuid-tooltip",
4694
4694
  "max-width": "160",