@kong-ui-public/entities-plugins 2.14.1 → 2.14.2

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.
@@ -10,7 +10,7 @@ var yo = (e, a, n) => {
10
10
  a instanceof WeakSet ? a.add(e) : a.set(e, n);
11
11
  };
12
12
  var Dr = (e, a, n) => (qb(e, a, "access private method"), n);
13
- import { defineComponent as ze, useCssVars as Md, computed as Q, resolveComponent as ae, openBlock as v, createElementBlock as O, createVNode as Z, withCtx as T, createTextVNode as Oe, toDisplayString as te, createCommentVNode as oe, createBlock as _, normalizeClass as Fe, ref as ce, Teleport as Xb, unref as L, createElementVNode as M, watch as un, renderSlot as gt, onBeforeMount as ji, createSlots as mi, renderList as qe, withModifiers as gi, withDirectives as Pe, vShow as Rn, Fragment as De, withKeys as Jb, inject as Wb, useSlots as Sd, onMounted as Do, onUnmounted as Zb, resolveDynamicComponent as Ot, normalizeStyle as vi, normalizeProps as Qb, guardReactiveProps as _b, mergeProps as ra, pushScopeId as cn, popScopeId as dn, resolveDirective as $n, vModelCheckbox as jo, vModelSelect as Po, vModelText as Cn, Transition as $b, vModelDynamic as e1, vModelRadio as t1, provide as n1, reactive as Ta } from "vue";
13
+ import { defineComponent as ze, useCssVars as Md, computed as Q, resolveComponent as ae, openBlock as v, createElementBlock as O, createVNode as Z, withCtx as T, createTextVNode as Oe, toDisplayString as te, createCommentVNode as oe, createBlock as _, normalizeClass as Fe, ref as ue, Teleport as Xb, unref as L, createElementVNode as M, watch as un, renderSlot as gt, onBeforeMount as ji, createSlots as mi, renderList as qe, withModifiers as gi, withDirectives as Pe, vShow as Rn, Fragment as De, withKeys as Jb, inject as Wb, useSlots as Sd, onMounted as Do, onUnmounted as Zb, resolveDynamicComponent as Ot, normalizeStyle as vi, normalizeProps as Qb, guardReactiveProps as _b, mergeProps as ra, pushScopeId as cn, popScopeId as dn, resolveDirective as $n, vModelCheckbox as jo, vModelSelect as Po, vModelText as Cn, Transition as $b, vModelDynamic as e1, vModelRadio as t1, provide as n1, reactive as Ta } from "vue";
14
14
  import { useRouter as Va, useRoute as i1 } from "vue-router";
15
15
  import Lc from "axios";
16
16
  import { createI18n as $r, i18nTComponent as Td } from "@kong-ui-public/i18n";
@@ -267,17 +267,17 @@ class Ur {
267
267
  let H = !1;
268
268
  if (!y && /^ *$/.test(k) && (d += k + `
269
269
  `, a = a.substring(k.length + 1), b = !0), !b) {
270
- const ne = new RegExp(`^ {0,${Math.min(3, S - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), X = new RegExp(`^ {0,${Math.min(3, S - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), F = new RegExp(`^ {0,${Math.min(3, S - 1)}}(?:\`\`\`|~~~)`), Y = new RegExp(`^ {0,${Math.min(3, S - 1)}}#`);
270
+ const ne = new RegExp(`^ {0,${Math.min(3, S - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), q = new RegExp(`^ {0,${Math.min(3, S - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), F = new RegExp(`^ {0,${Math.min(3, S - 1)}}(?:\`\`\`|~~~)`), Y = new RegExp(`^ {0,${Math.min(3, S - 1)}}#`);
271
271
  for (; a; ) {
272
272
  const B = a.split(`
273
273
  `, 1)[0];
274
- if (k = B, this.options.pedantic && (k = k.replace(/^ {1,4}(?=( {4})*[^ ])/g, " ")), F.test(k) || Y.test(k) || ne.test(k) || X.test(a))
274
+ if (k = B, this.options.pedantic && (k = k.replace(/^ {1,4}(?=( {4})*[^ ])/g, " ")), F.test(k) || Y.test(k) || ne.test(k) || q.test(a))
275
275
  break;
276
276
  if (k.search(/[^ ]/) >= S || !k.trim())
277
277
  p += `
278
278
  ` + k.slice(S);
279
279
  else {
280
- if (H || y.search(/[^ ]/) >= 4 || F.test(y) || Y.test(y) || X.test(y))
280
+ if (H || y.search(/[^ ]/) >= 4 || F.test(y) || Y.test(y) || q.test(y))
281
281
  break;
282
282
  p += `
283
283
  ` + k;
@@ -1693,7 +1693,7 @@ function e0(e, a, n, r = {
1693
1693
  headers: e.requestHeaders
1694
1694
  }), { i18n: { t: l } } = Xo(), { debounce: u } = H1(), d = u(async (Y) => {
1695
1695
  await F(Y);
1696
- }, 200), p = ce(!1), A = ce(""), b = ce(""), y = ce([]), k = ce([]), S = ce(void 0), H = L(a);
1696
+ }, 200), p = ue(!1), A = ue(""), b = ue(""), y = ue([]), k = ue([]), S = ue(void 0), H = L(a);
1697
1697
  let N = `${e.apiBaseUrl}${H}`;
1698
1698
  e.app === "konnect" ? N = N.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (N = N.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
1699
1699
  const { isValidUuid: P } = Fd(), ne = async () => {
@@ -1706,10 +1706,10 @@ function e0(e, a, n, r = {
1706
1706
  } finally {
1707
1707
  p.value = !1;
1708
1708
  }
1709
- }, X = ce(""), F = async (Y) => {
1709
+ }, q = ue(""), F = async (Y) => {
1710
1710
  var B, w, R;
1711
- if (X.value !== Y)
1712
- if (X.value = Y || "", S.value === void 0)
1711
+ if (q.value !== Y)
1712
+ if (q.value = Y || "", S.value === void 0)
1713
1713
  try {
1714
1714
  if (p.value = !0, A.value = "", b.value = "", e.app === "konnect") {
1715
1715
  let D = N + "";
@@ -1810,7 +1810,7 @@ function i0(e) {
1810
1810
  }
1811
1811
  }
1812
1812
  function zd(e, a) {
1813
- const n = ce(L(e)), r = ce(L(a)), s = Q(
1813
+ const n = ue(L(e)), r = ue(L(a)), s = Q(
1814
1814
  () => !!(n.value.app === "konnect" || n.value.isExactMatch)
1815
1815
  ), l = Q(
1816
1816
  () => r.value.startsWith("/") ? new URL(`${window.location.origin}${r.value}`) : new URL(r.value)
@@ -1830,7 +1830,7 @@ function zd(e, a) {
1830
1830
  function a0(e, a, n = "data") {
1831
1831
  const r = L(a), { axiosInstance: s } = qo({
1832
1832
  headers: e.requestHeaders
1833
- }), l = zd(e, r), u = ce({
1833
+ }), l = zd(e, r), u = ue({
1834
1834
  status: Ti.Idle
1835
1835
  });
1836
1836
  return { fetcher: async (d) => {
@@ -1934,7 +1934,7 @@ function d0(e) {
1934
1934
  return !(u && Fc(s, u, "<") || d && Fc(s, d, ">"));
1935
1935
  }
1936
1936
  function p0(e) {
1937
- const a = ce(0), n = ce(0), r = ce(!1);
1937
+ const a = ue(0), n = ue(0), r = ue(!1);
1938
1938
  return un(e, (s) => {
1939
1939
  s && !r.value && (a.value = s.offsetWidth, n.value = s.scrollWidth, r.value = !0);
1940
1940
  }), {
@@ -2193,9 +2193,9 @@ const It = {
2193
2193
  text: n.item.value
2194
2194
  };
2195
2195
  }
2196
- }), k = ce(), { isTruncated: S } = It.useTruncationDetector(k);
2196
+ }), k = ue(), { isTruncated: S } = It.useTruncationDetector(k);
2197
2197
  return (H, N) => {
2198
- const P = ae("KLabel"), ne = ae("KBadge"), X = ae("KCopy"), F = ae("KTooltip");
2198
+ const P = ae("KLabel"), ne = ae("KBadge"), q = ae("KCopy"), F = ae("KTooltip");
2199
2199
  return v(), O("div", E0, [
2200
2200
  M("div", {
2201
2201
  class: "config-card-details-label",
@@ -2256,7 +2256,7 @@ const It = {
2256
2256
  class: "copy-uuid-array",
2257
2257
  "data-testid": `${e.item.key}-copy-uuid-array`
2258
2258
  }, [
2259
- (v(!0), O(De, null, qe(e.item.value, (Y, B) => (v(), _(X, ra(y.value.childAttrs, {
2259
+ (v(!0), O(De, null, qe(e.item.value, (Y, B) => (v(), _(q, ra(y.value.childAttrs, {
2260
2260
  key: `${e.item.key}-copy-uuid-${B}`,
2261
2261
  "data-testid": `${e.item.key}-copy-uuid-${B}`,
2262
2262
  text: Y
@@ -3180,17 +3180,17 @@ function Jw(e, a) {
3180
3180
  ke(e, "unexpected end of the stream within a double quoted scalar");
3181
3181
  }
3182
3182
  function Ww(e, a) {
3183
- var n = !0, r, s, l, u = e.tag, d, p = e.anchor, A, b, y, k, S, H = /* @__PURE__ */ Object.create(null), N, P, ne, X;
3184
- if (X = e.input.charCodeAt(e.position), X === 91)
3183
+ var n = !0, r, s, l, u = e.tag, d, p = e.anchor, A, b, y, k, S, H = /* @__PURE__ */ Object.create(null), N, P, ne, q;
3184
+ if (q = e.input.charCodeAt(e.position), q === 91)
3185
3185
  b = 93, S = !1, d = [];
3186
- else if (X === 123)
3186
+ else if (q === 123)
3187
3187
  b = 125, S = !0, d = {};
3188
3188
  else
3189
3189
  return !1;
3190
- for (e.anchor !== null && (e.anchorMap[e.anchor] = d), X = e.input.charCodeAt(++e.position); X !== 0; ) {
3191
- if (yt(e, !0, a), X = e.input.charCodeAt(e.position), X === b)
3190
+ for (e.anchor !== null && (e.anchorMap[e.anchor] = d), q = e.input.charCodeAt(++e.position); q !== 0; ) {
3191
+ if (yt(e, !0, a), q = e.input.charCodeAt(e.position), q === b)
3192
3192
  return e.position++, e.tag = u, e.anchor = p, e.kind = S ? "mapping" : "sequence", e.result = d, !0;
3193
- n ? X === 44 && ke(e, "expected the node content, but found ','") : ke(e, "missed comma between flow collection entries"), P = N = ne = null, y = k = !1, X === 63 && (A = e.input.charCodeAt(e.position + 1), Qt(A) && (y = k = !0, e.position++, yt(e, !0, a))), r = e.line, s = e.lineStart, l = e.position, la(e, a, Vr, !1, !0), P = e.tag, N = e.result, yt(e, !0, a), X = e.input.charCodeAt(e.position), (k || e.line === r) && X === 58 && (y = !0, X = e.input.charCodeAt(++e.position), yt(e, !0, a), la(e, a, Vr, !1, !0), ne = e.result), S ? oa(e, d, H, P, N, ne, r, s, l) : y ? d.push(oa(e, null, H, P, N, ne, r, s, l)) : d.push(N), yt(e, !0, a), X = e.input.charCodeAt(e.position), X === 44 ? (n = !0, X = e.input.charCodeAt(++e.position)) : n = !1;
3193
+ n ? q === 44 && ke(e, "expected the node content, but found ','") : ke(e, "missed comma between flow collection entries"), P = N = ne = null, y = k = !1, q === 63 && (A = e.input.charCodeAt(e.position + 1), Qt(A) && (y = k = !0, e.position++, yt(e, !0, a))), r = e.line, s = e.lineStart, l = e.position, la(e, a, Vr, !1, !0), P = e.tag, N = e.result, yt(e, !0, a), q = e.input.charCodeAt(e.position), (k || e.line === r) && q === 58 && (y = !0, q = e.input.charCodeAt(++e.position), yt(e, !0, a), la(e, a, Vr, !1, !0), ne = e.result), S ? oa(e, d, H, P, N, ne, r, s, l) : y ? d.push(oa(e, null, H, P, N, ne, r, s, l)) : d.push(N), yt(e, !0, a), q = e.input.charCodeAt(e.position), q === 44 ? (n = !0, q = e.input.charCodeAt(++e.position)) : n = !1;
3194
3194
  }
3195
3195
  ke(e, "unexpected end of the stream within a flow collection");
3196
3196
  }
@@ -3258,20 +3258,20 @@ function Qc(e, a) {
3258
3258
  return d ? (e.tag = r, e.anchor = s, e.kind = "sequence", e.result = l, !0) : !1;
3259
3259
  }
3260
3260
  function Qw(e, a, n) {
3261
- var r, s, l, u, d, p, A = e.tag, b = e.anchor, y = {}, k = /* @__PURE__ */ Object.create(null), S = null, H = null, N = null, P = !1, ne = !1, X;
3261
+ var r, s, l, u, d, p, A = e.tag, b = e.anchor, y = {}, k = /* @__PURE__ */ Object.create(null), S = null, H = null, N = null, P = !1, ne = !1, q;
3262
3262
  if (e.firstTabInLine !== -1)
3263
3263
  return !1;
3264
- for (e.anchor !== null && (e.anchorMap[e.anchor] = y), X = e.input.charCodeAt(e.position); X !== 0; ) {
3265
- if (!P && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, ke(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), l = e.line, (X === 63 || X === 58) && Qt(r))
3266
- X === 63 ? (P && (oa(e, y, k, S, H, null, u, d, p), S = H = N = null), ne = !0, P = !0, s = !0) : P ? (P = !1, s = !0) : ke(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, X = r;
3264
+ for (e.anchor !== null && (e.anchorMap[e.anchor] = y), q = e.input.charCodeAt(e.position); q !== 0; ) {
3265
+ if (!P && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, ke(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), l = e.line, (q === 63 || q === 58) && Qt(r))
3266
+ q === 63 ? (P && (oa(e, y, k, S, H, null, u, d, p), S = H = N = null), ne = !0, P = !0, s = !0) : P ? (P = !1, s = !0) : ke(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, q = r;
3267
3267
  else {
3268
3268
  if (u = e.line, d = e.lineStart, p = e.position, !la(e, n, hp, !1, !0))
3269
3269
  break;
3270
3270
  if (e.line === l) {
3271
- for (X = e.input.charCodeAt(e.position); Li(X); )
3272
- X = e.input.charCodeAt(++e.position);
3273
- if (X === 58)
3274
- X = e.input.charCodeAt(++e.position), Qt(X) || ke(e, "a whitespace character is expected after the key-value separator within a block mapping"), P && (oa(e, y, k, S, H, null, u, d, p), S = H = N = null), ne = !0, P = !1, s = !1, S = e.tag, H = e.result;
3271
+ for (q = e.input.charCodeAt(e.position); Li(q); )
3272
+ q = e.input.charCodeAt(++e.position);
3273
+ if (q === 58)
3274
+ q = e.input.charCodeAt(++e.position), Qt(q) || ke(e, "a whitespace character is expected after the key-value separator within a block mapping"), P && (oa(e, y, k, S, H, null, u, d, p), S = H = N = null), ne = !0, P = !1, s = !1, S = e.tag, H = e.result;
3275
3275
  else if (ne)
3276
3276
  ke(e, "can not read an implicit mapping pair; a colon is missed");
3277
3277
  else
@@ -3281,7 +3281,7 @@ function Qw(e, a, n) {
3281
3281
  else
3282
3282
  return e.tag = A, e.anchor = b, !0;
3283
3283
  }
3284
- if ((e.line === l || e.lineIndent > a) && (P && (u = e.line, d = e.lineStart, p = e.position), la(e, a, Fr, !0, s) && (P ? H = e.result : N = e.result), P || (oa(e, y, k, S, H, N, u, d, p), S = H = N = null), yt(e, !0, -1), X = e.input.charCodeAt(e.position)), (e.line === l || e.lineIndent > a) && X !== 0)
3284
+ if ((e.line === l || e.lineIndent > a) && (P && (u = e.line, d = e.lineStart, p = e.position), la(e, a, Fr, !0, s) && (P ? H = e.result : N = e.result), P || (oa(e, y, k, S, H, N, u, d, p), S = H = N = null), yt(e, !0, -1), q = e.input.charCodeAt(e.position)), (e.line === l || e.lineIndent > a) && q !== 0)
3285
3285
  ke(e, "bad indentation of a mapping entry");
3286
3286
  else if (e.lineIndent < a)
3287
3287
  break;
@@ -4370,7 +4370,7 @@ const iE = { class: "yaml-config" }, tl = /* @__PURE__ */ ze({
4370
4370
  label: "YAML",
4371
4371
  value: "yaml"
4372
4372
  }
4373
- ], b = ce("structured"), y = (w) => {
4373
+ ], b = ue("structured"), y = (w) => {
4374
4374
  b.value = w == null ? void 0 : w.value;
4375
4375
  }, k = {
4376
4376
  id: {
@@ -4406,7 +4406,7 @@ const iE = { class: "yaml-config" }, tl = /* @__PURE__ */ ze({
4406
4406
  // the last property displayed
4407
4407
  section: xt.Basic
4408
4408
  }
4409
- }, S = ce(!1), H = ce(!1), N = ce(""), P = ce({}), ne = Q(() => {
4409
+ }, S = ue(!1), H = ue(!1), N = ue(""), P = ue({}), ne = Q(() => {
4410
4410
  var w, R, D;
4411
4411
  if (!P.value)
4412
4412
  return [];
@@ -4420,18 +4420,18 @@ const iE = { class: "yaml-config" }, tl = /* @__PURE__ */ ze({
4420
4420
  return ee[1] - z[1];
4421
4421
  }), re.map((ee) => {
4422
4422
  var z, le;
4423
- const me = ee[0], we = (z = P.value) == null ? void 0 : z[me], J = ((le = s.configSchema) == null ? void 0 : le[me]) || {}, ge = k[me];
4423
+ const me = ee[0], we = (z = P.value) == null ? void 0 : z[me], X = ((le = s.configSchema) == null ? void 0 : le[me]) || {}, ge = k[me];
4424
4424
  return {
4425
4425
  key: me,
4426
4426
  value: we,
4427
- hidden: J.hidden || !1,
4428
- type: J.type ?? ((ge == null ? void 0 : ge.type) || Ve.Text),
4429
- label: J.label ?? ((ge == null ? void 0 : ge.label) || d(me)),
4430
- tooltip: J.tooltip ?? ((ge == null ? void 0 : ge.tooltip) || void 0),
4431
- section: J.section ?? ((ge == null ? void 0 : ge.section) || xt.Advanced)
4427
+ hidden: X.hidden || !1,
4428
+ type: X.type ?? ((ge == null ? void 0 : ge.type) || Ve.Text),
4429
+ label: X.label ?? ((ge == null ? void 0 : ge.label) || d(me)),
4430
+ tooltip: X.tooltip ?? ((ge == null ? void 0 : ge.tooltip) || void 0),
4431
+ section: X.section ?? ((ge == null ? void 0 : ge.section) || xt.Advanced)
4432
4432
  };
4433
4433
  }).filter((ee) => !ee.hidden && ee.key !== s.pluginConfigKey);
4434
- }), X = Q(() => {
4434
+ }), q = Q(() => {
4435
4435
  var w, R;
4436
4436
  if (!P.value || !s.pluginConfigKey)
4437
4437
  return [];
@@ -4461,7 +4461,7 @@ const iE = { class: "yaml-config" }, tl = /* @__PURE__ */ ze({
4461
4461
  return {
4462
4462
  basic: (w = ne.value) == null ? void 0 : w.filter((be) => be.section === xt.Basic),
4463
4463
  advanced: (R = ne.value) == null ? void 0 : R.filter((be) => be.section === xt.Advanced),
4464
- plugin: (re = X.value) == null ? void 0 : re.concat((D = ne.value) == null ? void 0 : D.filter((be) => be.section === xt.Plugin))
4464
+ plugin: (re = q.value) == null ? void 0 : re.concat((D = ne.value) == null ? void 0 : D.filter((be) => be.section === xt.Plugin))
4465
4465
  };
4466
4466
  }), Y = Q(() => {
4467
4467
  const w = [];
@@ -4559,10 +4559,10 @@ const iE = { class: "yaml-config" }, tl = /* @__PURE__ */ ze({
4559
4559
  }, mi({ _: 2 }, [
4560
4560
  qe(Object.keys(w.$slots), (me) => ({
4561
4561
  name: me,
4562
- fn: T(({ row: we, rowValue: J }) => [
4562
+ fn: T(({ row: we, rowValue: X }) => [
4563
4563
  gt(w.$slots, me, {
4564
4564
  row: we,
4565
- rowValue: J
4565
+ rowValue: X
4566
4566
  }, void 0, !0)
4567
4567
  ])
4568
4568
  }))
@@ -4645,7 +4645,7 @@ const iE = { class: "yaml-config" }, tl = /* @__PURE__ */ ze({
4645
4645
  var n;
4646
4646
  const r = a, s = e, l = Va(), { i18n: { t: u } } = It.useI18n(), { getMessageFromError: d } = It.useErrors(), { axiosInstance: p } = It.useAxios({
4647
4647
  headers: (n = s.config) == null ? void 0 : n.requestHeaders
4648
- }), A = ce(!1), b = ce(!1), y = ce(""), k = Q(() => s.canSubmit === !1 || s.isReadonly), S = ce(!1), H = Q(() => {
4648
+ }), A = ue(!1), b = ue(!1), y = ue(""), k = Q(() => s.canSubmit === !1 || s.isReadonly), S = ue(!1), H = Q(() => {
4649
4649
  var Y, B;
4650
4650
  let w = `${s.config.apiBaseUrl}${s.fetchUrl}`;
4651
4651
  return s.config.app === "konnect" ? w = w.replace(/{controlPlaneId}/gi, ((Y = s.config) == null ? void 0 : Y.controlPlaneId) || "") : s.config.app === "kongManager" && (w = w.replace(/\/{workspace}/gi, (B = s.config) != null && B.workspace ? `/${s.config.workspace}` : "")), s.editId ? (w = w.replace(/{id}/gi, s.editId), w) : (w = w.replace(/\/{id}/gi, ""), w);
@@ -4655,9 +4655,9 @@ const iE = { class: "yaml-config" }, tl = /* @__PURE__ */ ze({
4655
4655
  s.config.cancelRoute ? l.push(s.config.cancelRoute) : ne();
4656
4656
  }, ne = () => {
4657
4657
  r("cancel");
4658
- }, X = () => {
4658
+ }, q = () => {
4659
4659
  k.value || r("submit");
4660
- }, F = ce([
4660
+ }, F = ue([
4661
4661
  {
4662
4662
  title: u("baseForm.configuration.yaml"),
4663
4663
  hash: "#yaml"
@@ -4703,7 +4703,7 @@ const iE = { class: "yaml-config" }, tl = /* @__PURE__ */ ze({
4703
4703
  key: 2,
4704
4704
  "data-testid": "form-content",
4705
4705
  onReset: gi(ne, ["prevent"]),
4706
- onSubmit: gi(X, ["prevent"])
4706
+ onSubmit: gi(q, ["prevent"])
4707
4707
  }, [
4708
4708
  gt(Y.$slots, "default", {}, void 0, !0),
4709
4709
  e.errorMessage ? (v(), _(D, {
@@ -4822,7 +4822,7 @@ const iE = { class: "yaml-config" }, tl = /* @__PURE__ */ ze({
4822
4822
  }, d = () => {
4823
4823
  var N, P, ne;
4824
4824
  A.value = ((N = r.value) == null ? void 0 : N.getBoundingClientRect().width) || 0, b.value = ((P = n.value) == null ? void 0 : P.clientWidth) || 0, y.value = ((ne = p.value) == null ? void 0 : ne.innerText) || "";
4825
- }, p = ce({}), A = ce(0), b = ce(0), y = ce(""), k = Q(() => [r.value, n.value]), S = un(
4825
+ }, p = ue({}), A = ue(0), b = ue(0), y = ue(""), k = Q(() => [r.value, n.value]), S = un(
4826
4826
  k,
4827
4827
  (N) => {
4828
4828
  if (s.value && (u(), "ResizeObserver" in window && window)) {
@@ -5004,7 +5004,7 @@ const iE = { class: "yaml-config" }, tl = /* @__PURE__ */ ze({
5004
5004
  "data-rowid": B.id,
5005
5005
  "data-testid": B.name,
5006
5006
  ...n.rowAttributes(B)
5007
- }), b = ce({}), y = (B) => {
5007
+ }), b = ue({}), y = (B) => {
5008
5008
  var w;
5009
5009
  return (w = b.value) == null ? void 0 : w.$el.querySelector(`[data-rowid="${B.id}"]`);
5010
5010
  }, k = (B) => {
@@ -5025,8 +5025,8 @@ const iE = { class: "yaml-config" }, tl = /* @__PURE__ */ ze({
5025
5025
  r("click:row", w);
5026
5026
  }), P = (B) => {
5027
5027
  r("sort", B);
5028
- }, { setTablePreferences: ne, getTablePreferences: X } = F1(), F = Q(() => {
5029
- const B = X(n.preferencesStorageKey);
5028
+ }, { setTablePreferences: ne, getTablePreferences: q } = F1(), F = Q(() => {
5029
+ const B = q(n.preferencesStorageKey);
5030
5030
  return {
5031
5031
  ...n.initialFetcherParams,
5032
5032
  ...B
@@ -5121,7 +5121,7 @@ const iE = { class: "yaml-config" }, tl = /* @__PURE__ */ ze({
5121
5121
  }, [
5122
5122
  qe(e.tableHeaders, (z, le) => ({
5123
5123
  name: le,
5124
- fn: T(({ row: me, rowKey: we, rowValue: J }) => [
5124
+ fn: T(({ row: me, rowKey: we, rowValue: X }) => [
5125
5125
  Z(KE, {
5126
5126
  "key-name": String(le),
5127
5127
  "row-el": y(me)
@@ -5130,9 +5130,9 @@ const iE = { class: "yaml-config" }, tl = /* @__PURE__ */ ze({
5130
5130
  gt(B.$slots, le, {
5131
5131
  row: me,
5132
5132
  rowKey: we,
5133
- rowValue: J
5133
+ rowValue: X
5134
5134
  }, () => [
5135
- Oe(te(J), 1)
5135
+ Oe(te(X), 1)
5136
5136
  ], !0)
5137
5137
  ]),
5138
5138
  _: 2
@@ -5314,7 +5314,7 @@ const iE = { class: "yaml-config" }, tl = /* @__PURE__ */ ze({
5314
5314
  },
5315
5315
  emits: ["update:modelValue"],
5316
5316
  setup(e, { emit: a }) {
5317
- const { i18n: { t: n } } = It.useI18n(), r = e, s = a, l = ce(!1), u = ce({}), d = ce(/* @__PURE__ */ new Set()), p = Q(() => {
5317
+ const { i18n: { t: n } } = It.useI18n(), r = e, s = a, l = ue(!1), u = ue({}), d = ue(/* @__PURE__ */ new Set()), p = Q(() => {
5318
5318
  const Y = [];
5319
5319
  return new URLSearchParams(r.modelValue).forEach((B, w) => {
5320
5320
  B !== "" && Y.push(w);
@@ -5354,7 +5354,7 @@ const iE = { class: "yaml-config" }, tl = /* @__PURE__ */ ze({
5354
5354
  ...u.value,
5355
5355
  [Y]: ""
5356
5356
  }, F();
5357
- }, X = () => {
5357
+ }, q = () => {
5358
5358
  u.value = {}, F(!0);
5359
5359
  }, F = (Y = !1) => {
5360
5360
  const B = Object.keys(u.value).reduce((w, R) => (u.value[R] && (w[R] = `${u.value[R]}`), w), {});
@@ -5481,7 +5481,7 @@ const iE = { class: "yaml-config" }, tl = /* @__PURE__ */ ze({
5481
5481
  Z(R, {
5482
5482
  appearance: "tertiary",
5483
5483
  size: "small",
5484
- onClick: X
5484
+ onClick: q
5485
5485
  }, {
5486
5486
  default: T(() => [
5487
5487
  Oe(te(L(n)("filter.clearAllButtonText")), 1)
@@ -5527,7 +5527,7 @@ const iE = { class: "yaml-config" }, tl = /* @__PURE__ */ ze({
5527
5527
  },
5528
5528
  emits: ["cancel", "proceed"],
5529
5529
  setup(e, { emit: a }) {
5530
- const { i18n: { t: n }, i18nT: r } = It.useI18n(), s = e, l = a, u = ce(!1), d = Q(
5530
+ const { i18n: { t: n }, i18nT: r } = It.useI18n(), s = e, l = a, u = ue(!1), d = Q(
5531
5531
  () => s.action === "enable" ? n("toggleModal.enable.title", { entityType: s.entityType }) : n("toggleModal.disable.title", { entityType: s.entityType })
5532
5532
  ), p = Q(
5533
5533
  () => s.action === "enable" ? n("toggleModal.enable.confirmText") : n("toggleModal.disable.confirmText")
@@ -5596,7 +5596,7 @@ const iE = { class: "yaml-config" }, tl = /* @__PURE__ */ ze({
5596
5596
  }
5597
5597
  },
5598
5598
  setup(e) {
5599
- const a = e, n = ce(void 0), r = Q(() => n.value === !0 || n.value !== void 0 && a.forceShow === !0);
5599
+ const a = e, n = ue(void 0), r = Q(() => n.value === !0 || n.value !== void 0 && a.forceShow === !0);
5600
5600
  return un(() => a.authFunction, async () => {
5601
5601
  n.value = await a.authFunction();
5602
5602
  }, { immediate: !0 }), (s, l) => r.value ? gt(s.$slots, "default", {
@@ -7602,7 +7602,7 @@ var xa = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
7602
7602
  Xr.exports;
7603
7603
  (function(e, a) {
7604
7604
  (function() {
7605
- var n, r = "4.17.21", s = 200, l = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", u = "Expected a function", d = "Invalid `variable` option passed into `_.template`", p = "__lodash_hash_undefined__", A = 500, b = "__lodash_placeholder__", y = 1, k = 2, S = 4, H = 1, N = 2, P = 1, ne = 2, X = 4, F = 8, Y = 16, B = 32, w = 64, R = 128, D = 256, re = 512, be = 30, ee = "...", z = 800, le = 16, me = 1, we = 2, J = 3, ge = 1 / 0, Se = 9007199254740991, Be = 17976931348623157e292, ye = NaN, He = 4294967295, wt = He - 1, rt = He >>> 1, En = [
7605
+ var n, r = "4.17.21", s = 200, l = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", u = "Expected a function", d = "Invalid `variable` option passed into `_.template`", p = "__lodash_hash_undefined__", A = 500, b = "__lodash_placeholder__", y = 1, k = 2, S = 4, H = 1, N = 2, P = 1, ne = 2, q = 4, F = 8, Y = 16, B = 32, w = 64, R = 128, D = 256, re = 512, be = 30, ee = "...", z = 800, le = 16, me = 1, we = 2, X = 3, ge = 1 / 0, Se = 9007199254740991, Be = 17976931348623157e292, ye = NaN, He = 4294967295, wt = He - 1, rt = He >>> 1, En = [
7606
7606
  ["ary", R],
7607
7607
  ["bind", P],
7608
7608
  ["bindKey", ne],
@@ -7612,7 +7612,7 @@ Xr.exports;
7612
7612
  ["partial", B],
7613
7613
  ["partialRight", w],
7614
7614
  ["rearg", D]
7615
- ], _t = "[object Arguments]", mt = "[object Array]", nt = "[object AsyncFunction]", Yt = "[object Boolean]", Ft = "[object Date]", ei = "[object DOMException]", Yn = "[object Error]", Lt = "[object Function]", Ae = "[object GeneratorFunction]", G = "[object Map]", de = "[object Number]", K = "[object Null]", Ee = "[object Object]", Te = "[object Promise]", _e = "[object Proxy]", it = "[object RegExp]", pe = "[object Set]", Re = "[object String]", ue = "[object Symbol]", he = "[object Undefined]", vt = "[object WeakMap]", Un = "[object WeakSet]", zt = "[object ArrayBuffer]", Gn = "[object DataView]", Ui = "[object Float32Array]", Gi = "[object Float64Array]", Hi = "[object Int8Array]", $e = "[object Int16Array]", Kt = "[object Int32Array]", $t = "[object Uint8Array]", xn = "[object Uint8ClampedArray]", Hn = "[object Uint16Array]", yi = "[object Uint32Array]", cg = /\b__p \+= '';/g, dg = /\b(__p \+=) '' \+/g, pg = /(__e\(.*?\)|\b__t\)) \+\n'';/g, al = /&(?:amp|lt|gt|quot|#39);/g, rl = /[&<>"']/g, gg = RegExp(al.source), fg = RegExp(rl.source), mg = /<%-([\s\S]+?)%>/g, hg = /<%([\s\S]+?)%>/g, sl = /<%=([\s\S]+?)%>/g, Ag = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, vg = /^\w*$/, yg = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, ss = /[\\^$.*+?()[\]{}|]/g, bg = RegExp(ss.source), os = /^\s+/, wg = /\s/, Cg = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, Eg = /\{\n\/\* \[wrapped with (.+)\] \*/, kg = /,? & /, Og = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, Ig = /[()=,{}\[\]\/\s]/, Bg = /\\(\\)?/g, xg = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, ol = /\w*$/, Mg = /^[-+]0x[0-9a-f]+$/i, Sg = /^0b[01]+$/i, Tg = /^\[object .+?Constructor\]$/, Rg = /^0o[0-7]+$/i, Lg = /^(?:0|[1-9]\d*)$/, Ng = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Xa = /($^)/, Dg = /['\n\r\u2028\u2029\\]/g, Ja = "\\ud800-\\udfff", jg = "\\u0300-\\u036f", Pg = "\\ufe20-\\ufe2f", Yg = "\\u20d0-\\u20ff", ll = jg + Pg + Yg, ul = "\\u2700-\\u27bf", cl = "a-z\\xdf-\\xf6\\xf8-\\xff", Ug = "\\xac\\xb1\\xd7\\xf7", Gg = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Hg = "\\u2000-\\u206f", Vg = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", dl = "A-Z\\xc0-\\xd6\\xd8-\\xde", pl = "\\ufe0e\\ufe0f", gl = Ug + Gg + Hg + Vg, ls = "['’]", Fg = "[" + Ja + "]", fl = "[" + gl + "]", Wa = "[" + ll + "]", ml = "\\d+", zg = "[" + ul + "]", hl = "[" + cl + "]", Al = "[^" + Ja + gl + ml + ul + cl + dl + "]", us = "\\ud83c[\\udffb-\\udfff]", Kg = "(?:" + Wa + "|" + us + ")", vl = "[^" + Ja + "]", cs = "(?:\\ud83c[\\udde6-\\uddff]){2}", ds = "[\\ud800-\\udbff][\\udc00-\\udfff]", Vi = "[" + dl + "]", yl = "\\u200d", bl = "(?:" + hl + "|" + Al + ")", qg = "(?:" + Vi + "|" + Al + ")", wl = "(?:" + ls + "(?:d|ll|m|re|s|t|ve))?", Cl = "(?:" + ls + "(?:D|LL|M|RE|S|T|VE))?", El = Kg + "?", kl = "[" + pl + "]?", Xg = "(?:" + yl + "(?:" + [vl, cs, ds].join("|") + ")" + kl + El + ")*", Jg = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", Wg = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", Ol = kl + El + Xg, Zg = "(?:" + [zg, cs, ds].join("|") + ")" + Ol, Qg = "(?:" + [vl + Wa + "?", Wa, cs, ds, Fg].join("|") + ")", _g = RegExp(ls, "g"), $g = RegExp(Wa, "g"), ps = RegExp(us + "(?=" + us + ")|" + Qg + Ol, "g"), ef = RegExp([
7615
+ ], _t = "[object Arguments]", mt = "[object Array]", nt = "[object AsyncFunction]", Yt = "[object Boolean]", Ft = "[object Date]", ei = "[object DOMException]", Yn = "[object Error]", Lt = "[object Function]", he = "[object GeneratorFunction]", G = "[object Map]", de = "[object Number]", J = "[object Null]", Ee = "[object Object]", Te = "[object Promise]", _e = "[object Proxy]", it = "[object RegExp]", pe = "[object Set]", Re = "[object String]", ce = "[object Symbol]", Ae = "[object Undefined]", vt = "[object WeakMap]", Un = "[object WeakSet]", zt = "[object ArrayBuffer]", Gn = "[object DataView]", Ui = "[object Float32Array]", Gi = "[object Float64Array]", Hi = "[object Int8Array]", $e = "[object Int16Array]", Kt = "[object Int32Array]", $t = "[object Uint8Array]", xn = "[object Uint8ClampedArray]", Hn = "[object Uint16Array]", yi = "[object Uint32Array]", cg = /\b__p \+= '';/g, dg = /\b(__p \+=) '' \+/g, pg = /(__e\(.*?\)|\b__t\)) \+\n'';/g, al = /&(?:amp|lt|gt|quot|#39);/g, rl = /[&<>"']/g, gg = RegExp(al.source), fg = RegExp(rl.source), mg = /<%-([\s\S]+?)%>/g, hg = /<%([\s\S]+?)%>/g, sl = /<%=([\s\S]+?)%>/g, Ag = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, vg = /^\w*$/, yg = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, ss = /[\\^$.*+?()[\]{}|]/g, bg = RegExp(ss.source), os = /^\s+/, wg = /\s/, Cg = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, Eg = /\{\n\/\* \[wrapped with (.+)\] \*/, kg = /,? & /, Og = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, Ig = /[()=,{}\[\]\/\s]/, Bg = /\\(\\)?/g, xg = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, ol = /\w*$/, Mg = /^[-+]0x[0-9a-f]+$/i, Sg = /^0b[01]+$/i, Tg = /^\[object .+?Constructor\]$/, Rg = /^0o[0-7]+$/i, Lg = /^(?:0|[1-9]\d*)$/, Ng = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Xa = /($^)/, Dg = /['\n\r\u2028\u2029\\]/g, Ja = "\\ud800-\\udfff", jg = "\\u0300-\\u036f", Pg = "\\ufe20-\\ufe2f", Yg = "\\u20d0-\\u20ff", ll = jg + Pg + Yg, ul = "\\u2700-\\u27bf", cl = "a-z\\xdf-\\xf6\\xf8-\\xff", Ug = "\\xac\\xb1\\xd7\\xf7", Gg = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Hg = "\\u2000-\\u206f", Vg = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", dl = "A-Z\\xc0-\\xd6\\xd8-\\xde", pl = "\\ufe0e\\ufe0f", gl = Ug + Gg + Hg + Vg, ls = "['’]", Fg = "[" + Ja + "]", fl = "[" + gl + "]", Wa = "[" + ll + "]", ml = "\\d+", zg = "[" + ul + "]", hl = "[" + cl + "]", Al = "[^" + Ja + gl + ml + ul + cl + dl + "]", us = "\\ud83c[\\udffb-\\udfff]", Kg = "(?:" + Wa + "|" + us + ")", vl = "[^" + Ja + "]", cs = "(?:\\ud83c[\\udde6-\\uddff]){2}", ds = "[\\ud800-\\udbff][\\udc00-\\udfff]", Vi = "[" + dl + "]", yl = "\\u200d", bl = "(?:" + hl + "|" + Al + ")", qg = "(?:" + Vi + "|" + Al + ")", wl = "(?:" + ls + "(?:d|ll|m|re|s|t|ve))?", Cl = "(?:" + ls + "(?:D|LL|M|RE|S|T|VE))?", El = Kg + "?", kl = "[" + pl + "]?", Xg = "(?:" + yl + "(?:" + [vl, cs, ds].join("|") + ")" + kl + El + ")*", Jg = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", Wg = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", Ol = kl + El + Xg, Zg = "(?:" + [zg, cs, ds].join("|") + ")" + Ol, Qg = "(?:" + [vl + Wa + "?", Wa, cs, ds, Fg].join("|") + ")", _g = RegExp(ls, "g"), $g = RegExp(Wa, "g"), ps = RegExp(us + "(?=" + us + ")|" + Qg + Ol, "g"), ef = RegExp([
7616
7616
  Vi + "?" + hl + "+" + wl + "(?=" + [fl, Vi, "$"].join("|") + ")",
7617
7617
  qg + "+" + Cl + "(?=" + [fl, Vi + bl, "$"].join("|") + ")",
7618
7618
  Vi + "?" + bl + "+" + wl,
@@ -7655,7 +7655,7 @@ Xr.exports;
7655
7655
  ], rf = -1, lt = {};
7656
7656
  lt[Ui] = lt[Gi] = lt[Hi] = lt[$e] = lt[Kt] = lt[$t] = lt[xn] = lt[Hn] = lt[yi] = !0, lt[_t] = lt[mt] = lt[zt] = lt[Yt] = lt[Gn] = lt[Ft] = lt[Yn] = lt[Lt] = lt[G] = lt[de] = lt[Ee] = lt[it] = lt[pe] = lt[Re] = lt[vt] = !1;
7657
7657
  var ot = {};
7658
- ot[_t] = ot[mt] = ot[zt] = ot[Gn] = ot[Yt] = ot[Ft] = ot[Ui] = ot[Gi] = ot[Hi] = ot[$e] = ot[Kt] = ot[G] = ot[de] = ot[Ee] = ot[it] = ot[pe] = ot[Re] = ot[ue] = ot[$t] = ot[xn] = ot[Hn] = ot[yi] = !0, ot[Yn] = ot[Lt] = ot[vt] = !1;
7658
+ ot[_t] = ot[mt] = ot[zt] = ot[Gn] = ot[Yt] = ot[Ft] = ot[Ui] = ot[Gi] = ot[Hi] = ot[$e] = ot[Kt] = ot[G] = ot[de] = ot[Ee] = ot[it] = ot[pe] = ot[Re] = ot[ce] = ot[$t] = ot[xn] = ot[Hn] = ot[yi] = !0, ot[Yn] = ot[Lt] = ot[vt] = !1;
7659
7659
  var sf = {
7660
7660
  // Latin-1 Supplement block.
7661
7661
  À: "A",
@@ -8246,14 +8246,14 @@ Xr.exports;
8246
8246
  return t;
8247
8247
  }
8248
8248
  function rm() {
8249
- var t = this.__wrapped__.value(), i = this.__dir__, o = Ne(t), c = i < 0, g = o ? t.length : 0, h = Ah(0, g, this.__views__), C = h.start, E = h.end, x = E - C, q = c ? E : C - 1, W = this.__iteratees__, ie = W.length, fe = 0, Ce = Nt(x, this.__takeCount__);
8249
+ var t = this.__wrapped__.value(), i = this.__dir__, o = Ne(t), c = i < 0, g = o ? t.length : 0, h = Ah(0, g, this.__views__), C = h.start, E = h.end, x = E - C, K = c ? E : C - 1, W = this.__iteratees__, ie = W.length, fe = 0, Ce = Nt(x, this.__takeCount__);
8250
8250
  if (!o || !c && g == x && Ce == x)
8251
8251
  return wu(t, this.__actions__);
8252
8252
  var xe = [];
8253
8253
  e:
8254
8254
  for (; x-- && fe < Ce; ) {
8255
- q += i;
8256
- for (var Ye = -1, Me = t[q]; ++Ye < ie; ) {
8255
+ K += i;
8256
+ for (var Ye = -1, Me = t[K]; ++Ye < ie; ) {
8257
8257
  var Ke = W[Ye], Je = Ke.iteratee, rn = Ke.type, Ht = Je(Me);
8258
8258
  if (rn == we)
8259
8259
  Me = Ht;
@@ -8399,12 +8399,12 @@ Xr.exports;
8399
8399
  On.prototype.clear = Em, On.prototype.delete = km, On.prototype.get = Om, On.prototype.has = Im, On.prototype.set = Bm;
8400
8400
  function _l(t, i) {
8401
8401
  var o = Ne(t), c = !o && xi(t), g = !o && !c && ui(t), h = !o && !c && !g && ea(t), C = o || c || g || h, E = C ? ws(t.length, Pf) : [], x = E.length;
8402
- for (var q in t)
8403
- (i || tt.call(t, q)) && !(C && // Safari 9 has enumerable `arguments.length` in strict mode.
8404
- (q == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
8405
- g && (q == "offset" || q == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
8406
- h && (q == "buffer" || q == "byteLength" || q == "byteOffset") || // Skip index properties.
8407
- Xn(q, x))) && E.push(q);
8402
+ for (var K in t)
8403
+ (i || tt.call(t, K)) && !(C && // Safari 9 has enumerable `arguments.length` in strict mode.
8404
+ (K == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
8405
+ g && (K == "offset" || K == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
8406
+ h && (K == "buffer" || K == "byteLength" || K == "byteOffset") || // Skip index properties.
8407
+ Xn(K, x))) && E.push(K);
8408
8408
  return E;
8409
8409
  }
8410
8410
  function $l(t) {
@@ -8458,7 +8458,7 @@ Xr.exports;
8458
8458
  return t === t && (o !== n && (t = t <= o ? t : o), i !== n && (t = t >= i ? t : i)), t;
8459
8459
  }
8460
8460
  function hn(t, i, o, c, g, h) {
8461
- var C, E = i & y, x = i & k, q = i & S;
8461
+ var C, E = i & y, x = i & k, K = i & S;
8462
8462
  if (o && (C = g ? o(t, c, g, h) : o(t)), C !== n)
8463
8463
  return C;
8464
8464
  if (!dt(t))
@@ -8468,7 +8468,7 @@ Xr.exports;
8468
8468
  if (C = yh(t), !E)
8469
8469
  return qt(t, C);
8470
8470
  } else {
8471
- var ie = Dt(t), fe = ie == Lt || ie == Ae;
8471
+ var ie = Dt(t), fe = ie == Lt || ie == he;
8472
8472
  if (ui(t))
8473
8473
  return ku(t, E);
8474
8474
  if (ie == Ee || ie == _t || fe && !g) {
@@ -8489,7 +8489,7 @@ Xr.exports;
8489
8489
  }) : hc(t) && t.forEach(function(Me, Ke) {
8490
8490
  C.set(Ke, hn(Me, i, o, Ke, t, h));
8491
8491
  });
8492
- var xe = q ? x ? Ws : Js : x ? Jt : Bt, Ye = W ? n : xe(t);
8492
+ var xe = K ? x ? Ws : Js : x ? Jt : Bt, Ye = W ? n : xe(t);
8493
8493
  return gn(Ye || t, function(Me, Ke) {
8494
8494
  Ye && (Ke = Me, Me = t[Ke]), va(C, Ke, hn(Me, i, o, Ke, t, h));
8495
8495
  }), C;
@@ -8519,7 +8519,7 @@ Xr.exports;
8519
8519
  }, i);
8520
8520
  }
8521
8521
  function ya(t, i, o, c) {
8522
- var g = -1, h = Za, C = !0, E = t.length, x = [], q = i.length;
8522
+ var g = -1, h = Za, C = !0, E = t.length, x = [], K = i.length;
8523
8523
  if (!E)
8524
8524
  return x;
8525
8525
  o && (i = ct(i, tn(o))), c ? (h = ms, C = !1) : i.length >= s && (h = pa, C = !1, i = new Ei(i));
@@ -8527,7 +8527,7 @@ Xr.exports;
8527
8527
  for (; ++g < E; ) {
8528
8528
  var W = t[g], ie = o == null ? W : o(W);
8529
8529
  if (W = c || W !== 0 ? W : 0, C && ie === ie) {
8530
- for (var fe = q; fe--; )
8530
+ for (var fe = K; fe--; )
8531
8531
  if (i[fe] === ie)
8532
8532
  continue e;
8533
8533
  x.push(W);
@@ -8594,7 +8594,7 @@ Xr.exports;
8594
8594
  return Ne(t) ? c : ni(c, o(t));
8595
8595
  }
8596
8596
  function Ut(t) {
8597
- return t == null ? t === n ? he : K : wi && wi in st(t) ? hh(t) : Mh(t);
8597
+ return t == null ? t === n ? Ae : J : wi && wi in st(t) ? hh(t) : Mh(t);
8598
8598
  }
8599
8599
  function Rs(t, i) {
8600
8600
  return t > i;
@@ -8609,25 +8609,25 @@ Xr.exports;
8609
8609
  return t >= Nt(i, o) && t < Et(i, o);
8610
8610
  }
8611
8611
  function Ls(t, i, o) {
8612
- for (var c = o ? ms : Za, g = t[0].length, h = t.length, C = h, E = j(h), x = 1 / 0, q = []; C--; ) {
8612
+ for (var c = o ? ms : Za, g = t[0].length, h = t.length, C = h, E = j(h), x = 1 / 0, K = []; C--; ) {
8613
8613
  var W = t[C];
8614
8614
  C && i && (W = ct(W, tn(i))), x = Nt(W.length, x), E[C] = !o && (i || g >= 120 && W.length >= 120) ? new Ei(C && W) : n;
8615
8615
  }
8616
8616
  W = t[0];
8617
8617
  var ie = -1, fe = E[0];
8618
8618
  e:
8619
- for (; ++ie < g && q.length < x; ) {
8619
+ for (; ++ie < g && K.length < x; ) {
8620
8620
  var Ce = W[ie], xe = i ? i(Ce) : Ce;
8621
- if (Ce = o || Ce !== 0 ? Ce : 0, !(fe ? pa(fe, xe) : c(q, xe, o))) {
8621
+ if (Ce = o || Ce !== 0 ? Ce : 0, !(fe ? pa(fe, xe) : c(K, xe, o))) {
8622
8622
  for (C = h; --C; ) {
8623
8623
  var Ye = E[C];
8624
8624
  if (!(Ye ? pa(Ye, xe) : c(t[C], xe, o)))
8625
8625
  continue e;
8626
8626
  }
8627
- fe && fe.push(xe), q.push(Ce);
8627
+ fe && fe.push(xe), K.push(Ce);
8628
8628
  }
8629
8629
  }
8630
- return q;
8630
+ return K;
8631
8631
  }
8632
8632
  function Ym(t, i, o, c) {
8633
8633
  return Mn(t, function(g, h, C) {
@@ -8652,9 +8652,9 @@ Xr.exports;
8652
8652
  return t === i ? !0 : t == null || i == null || !ft(t) && !ft(i) ? t !== t && i !== i : Hm(t, i, o, c, wa, g);
8653
8653
  }
8654
8654
  function Hm(t, i, o, c, g, h) {
8655
- var C = Ne(t), E = Ne(i), x = C ? mt : Dt(t), q = E ? mt : Dt(i);
8656
- x = x == _t ? Ee : x, q = q == _t ? Ee : q;
8657
- var W = x == Ee, ie = q == Ee, fe = x == q;
8655
+ var C = Ne(t), E = Ne(i), x = C ? mt : Dt(t), K = E ? mt : Dt(i);
8656
+ x = x == _t ? Ee : x, K = K == _t ? Ee : K;
8657
+ var W = x == Ee, ie = K == Ee, fe = x == K;
8658
8658
  if (fe && ui(t)) {
8659
8659
  if (!ui(i))
8660
8660
  return !1;
@@ -8685,15 +8685,15 @@ Xr.exports;
8685
8685
  }
8686
8686
  for (; ++g < h; ) {
8687
8687
  E = o[g];
8688
- var x = E[0], q = t[x], W = E[1];
8688
+ var x = E[0], K = t[x], W = E[1];
8689
8689
  if (C && E[2]) {
8690
- if (q === n && !(x in t))
8690
+ if (K === n && !(x in t))
8691
8691
  return !1;
8692
8692
  } else {
8693
8693
  var ie = new On();
8694
8694
  if (c)
8695
- var fe = c(q, W, x, t, i, ie);
8696
- if (!(fe === n ? wa(W, q, H | N, c, ie) : fe))
8695
+ var fe = c(K, W, x, t, i, ie);
8696
+ if (!(fe === n ? wa(W, K, H | N, c, ie) : fe))
8697
8697
  return !1;
8698
8698
  }
8699
8699
  }
@@ -8765,9 +8765,9 @@ Xr.exports;
8765
8765
  }, Jt);
8766
8766
  }
8767
8767
  function Xm(t, i, o, c, g, h, C) {
8768
- var E = to(t, o), x = to(i, o), q = C.get(x);
8769
- if (q) {
8770
- xs(t, o, q);
8768
+ var E = to(t, o), x = to(i, o), K = C.get(x);
8769
+ if (K) {
8770
+ xs(t, o, K);
8771
8771
  return;
8772
8772
  }
8773
8773
  var W = h ? h(E, x, o + "", t, i, C) : n, ie = W === n;
@@ -8791,8 +8791,8 @@ Xr.exports;
8791
8791
  var c = -1;
8792
8792
  i = ct(i, tn(Ie()));
8793
8793
  var g = cu(t, function(h, C, E) {
8794
- var x = ct(i, function(q) {
8795
- return q(h);
8794
+ var x = ct(i, function(K) {
8795
+ return K(h);
8796
8796
  });
8797
8797
  return { criteria: x, index: ++c, value: h };
8798
8798
  });
@@ -8820,7 +8820,7 @@ Xr.exports;
8820
8820
  function Ps(t, i, o, c) {
8821
8821
  var g = c ? yf : Fi, h = -1, C = i.length, E = t;
8822
8822
  for (t === i && (i = qt(i)), o && (E = ct(t, tn(o))); ++h < C; )
8823
- for (var x = 0, q = i[h], W = o ? o(q) : q; (x = g(E, W, x, c)) > -1; )
8823
+ for (var x = 0, K = i[h], W = o ? o(K) : K; (x = g(E, W, x, c)) > -1; )
8824
8824
  E !== t && sr.call(E, x, 1), sr.call(t, x, 1);
8825
8825
  return t;
8826
8826
  }
@@ -8866,14 +8866,14 @@ Xr.exports;
8866
8866
  return t;
8867
8867
  i = oi(i, t);
8868
8868
  for (var g = -1, h = i.length, C = h - 1, E = t; E != null && ++g < h; ) {
8869
- var x = Tn(i[g]), q = o;
8869
+ var x = Tn(i[g]), K = o;
8870
8870
  if (x === "__proto__" || x === "constructor" || x === "prototype")
8871
8871
  return t;
8872
8872
  if (g != C) {
8873
8873
  var W = E[x];
8874
- q = c ? c(W, x, E) : n, q === n && (q = dt(W) ? W : Xn(i[g + 1]) ? [] : {});
8874
+ K = c ? c(W, x, E) : n, K === n && (K = dt(W) ? W : Xn(i[g + 1]) ? [] : {});
8875
8875
  }
8876
- va(E, x, q), E = E[x];
8876
+ va(E, x, K), E = E[x];
8877
8877
  }
8878
8878
  return t;
8879
8879
  }
@@ -8919,12 +8919,12 @@ Xr.exports;
8919
8919
  if (h === 0)
8920
8920
  return 0;
8921
8921
  i = o(i);
8922
- for (var C = i !== i, E = i === null, x = an(i), q = i === n; g < h; ) {
8922
+ for (var C = i !== i, E = i === null, x = an(i), K = i === n; g < h; ) {
8923
8923
  var W = ur((g + h) / 2), ie = o(t[W]), fe = ie !== n, Ce = ie === null, xe = ie === ie, Ye = an(ie);
8924
8924
  if (C)
8925
8925
  var Me = c || xe;
8926
8926
  else
8927
- q ? Me = xe && (c || fe) : E ? Me = xe && fe && (c || !Ce) : x ? Me = xe && fe && !Ce && (c || !Ye) : Ce || Ye ? Me = !1 : Me = c ? ie <= i : ie < i;
8927
+ K ? Me = xe && (c || fe) : E ? Me = xe && fe && (c || !Ce) : x ? Me = xe && fe && !Ce && (c || !Ye) : Ce || Ye ? Me = !1 : Me = c ? ie <= i : ie < i;
8928
8928
  Me ? g = W + 1 : h = W;
8929
8929
  }
8930
8930
  return Nt(h, wt);
@@ -8957,9 +8957,9 @@ Xr.exports;
8957
8957
  if (o)
8958
8958
  C = !1, g = ms;
8959
8959
  else if (h >= s) {
8960
- var q = i ? null : ph(t);
8961
- if (q)
8962
- return _a(q);
8960
+ var K = i ? null : ph(t);
8961
+ if (K)
8962
+ return _a(K);
8963
8963
  C = !1, g = pa, x = new Ei();
8964
8964
  } else
8965
8965
  x = i ? [] : E;
@@ -9053,10 +9053,10 @@ Xr.exports;
9053
9053
  }
9054
9054
  function Iu(t, i) {
9055
9055
  if (t !== i) {
9056
- var o = t !== n, c = t === null, g = t === t, h = an(t), C = i !== n, E = i === null, x = i === i, q = an(i);
9057
- if (!E && !q && !h && t > i || h && C && x && !E && !q || c && C && x || !o && x || !g)
9056
+ var o = t !== n, c = t === null, g = t === t, h = an(t), C = i !== n, E = i === null, x = i === i, K = an(i);
9057
+ if (!E && !K && !h && t > i || h && C && x && !E && !K || c && C && x || !o && x || !g)
9058
9058
  return 1;
9059
- if (!c && !h && !q && t < i || q && o && g && !c && !h || E && o && g || !C && g || !x)
9059
+ if (!c && !h && !K && t < i || K && o && g && !c && !h || E && o && g || !C && g || !x)
9060
9060
  return -1;
9061
9061
  }
9062
9062
  return 0;
@@ -9067,25 +9067,25 @@ Xr.exports;
9067
9067
  if (x) {
9068
9068
  if (c >= E)
9069
9069
  return x;
9070
- var q = o[c];
9071
- return x * (q == "desc" ? -1 : 1);
9070
+ var K = o[c];
9071
+ return x * (K == "desc" ? -1 : 1);
9072
9072
  }
9073
9073
  }
9074
9074
  return t.index - i.index;
9075
9075
  }
9076
9076
  function Bu(t, i, o, c) {
9077
- for (var g = -1, h = t.length, C = o.length, E = -1, x = i.length, q = Et(h - C, 0), W = j(x + q), ie = !c; ++E < x; )
9077
+ for (var g = -1, h = t.length, C = o.length, E = -1, x = i.length, K = Et(h - C, 0), W = j(x + K), ie = !c; ++E < x; )
9078
9078
  W[E] = i[E];
9079
9079
  for (; ++g < C; )
9080
9080
  (ie || g < h) && (W[o[g]] = t[g]);
9081
- for (; q--; )
9081
+ for (; K--; )
9082
9082
  W[E++] = t[g++];
9083
9083
  return W;
9084
9084
  }
9085
9085
  function xu(t, i, o, c) {
9086
- for (var g = -1, h = t.length, C = -1, E = o.length, x = -1, q = i.length, W = Et(h - E, 0), ie = j(W + q), fe = !c; ++g < W; )
9086
+ for (var g = -1, h = t.length, C = -1, E = o.length, x = -1, K = i.length, W = Et(h - E, 0), ie = j(W + K), fe = !c; ++g < W; )
9087
9087
  ie[g] = t[g];
9088
- for (var Ce = g; ++x < q; )
9088
+ for (var Ce = g; ++x < K; )
9089
9089
  ie[Ce + x] = i[x];
9090
9090
  for (; ++C < E; )
9091
9091
  (fe || g < h) && (ie[Ce + o[C]] = t[g++]);
@@ -9199,8 +9199,8 @@ Xr.exports;
9199
9199
  function g() {
9200
9200
  for (var h = arguments.length, C = j(h), E = h, x = $i(g); E--; )
9201
9201
  C[E] = arguments[E];
9202
- var q = h < 3 && C[0] !== x && C[h - 1] !== x ? [] : ii(C, x);
9203
- if (h -= q.length, h < o)
9202
+ var K = h < 3 && C[0] !== x && C[h - 1] !== x ? [] : ii(C, x);
9203
+ if (h -= K.length, h < o)
9204
9204
  return ju(
9205
9205
  t,
9206
9206
  i,
@@ -9208,7 +9208,7 @@ Xr.exports;
9208
9208
  g.placeholder,
9209
9209
  n,
9210
9210
  C,
9211
- q,
9211
+ K,
9212
9212
  n,
9213
9213
  n,
9214
9214
  o - h
@@ -9247,23 +9247,23 @@ Xr.exports;
9247
9247
  x && eo(x[0]) && x[1] == (R | F | B | D) && !x[4].length && x[9] == 1 ? C = C[kr(x[0])].apply(C, x[3]) : C = h.length == 1 && eo(h) ? C[E]() : C.thru(h);
9248
9248
  }
9249
9249
  return function() {
9250
- var q = arguments, W = q[0];
9251
- if (C && q.length == 1 && Ne(W))
9250
+ var K = arguments, W = K[0];
9251
+ if (C && K.length == 1 && Ne(W))
9252
9252
  return C.plant(W).value();
9253
- for (var ie = 0, fe = o ? i[ie].apply(this, q) : W; ++ie < o; )
9253
+ for (var ie = 0, fe = o ? i[ie].apply(this, K) : W; ++ie < o; )
9254
9254
  fe = i[ie].call(this, fe);
9255
9255
  return fe;
9256
9256
  };
9257
9257
  });
9258
9258
  }
9259
- function br(t, i, o, c, g, h, C, E, x, q) {
9259
+ function br(t, i, o, c, g, h, C, E, x, K) {
9260
9260
  var W = i & R, ie = i & P, fe = i & ne, Ce = i & (F | Y), xe = i & re, Ye = fe ? n : Ea(t);
9261
9261
  function Me() {
9262
9262
  for (var Ke = arguments.length, Je = j(Ke), rn = Ke; rn--; )
9263
9263
  Je[rn] = arguments[rn];
9264
9264
  if (Ce)
9265
9265
  var Ht = $i(Me), sn = Cf(Je, Ht);
9266
- if (c && (Je = Bu(Je, c, g, Ce)), h && (Je = xu(Je, h, C, Ce)), Ke -= sn, Ce && Ke < q) {
9266
+ if (c && (Je = Bu(Je, c, g, Ce)), h && (Je = xu(Je, h, C, Ce)), Ke -= sn, Ce && Ke < K) {
9267
9267
  var At = ii(Je, Ht);
9268
9268
  return ju(
9269
9269
  t,
@@ -9275,7 +9275,7 @@ Xr.exports;
9275
9275
  At,
9276
9276
  E,
9277
9277
  x,
9278
- q - Ke
9278
+ K - Ke
9279
9279
  );
9280
9280
  }
9281
9281
  var Bn = ie ? o : this, Zn = fe ? Bn[t] : t;
@@ -9322,10 +9322,10 @@ Xr.exports;
9322
9322
  function dh(t, i, o, c) {
9323
9323
  var g = i & P, h = Ea(t);
9324
9324
  function C() {
9325
- for (var E = -1, x = arguments.length, q = -1, W = c.length, ie = j(W + x), fe = this && this !== St && this instanceof C ? h : t; ++q < W; )
9326
- ie[q] = c[q];
9325
+ for (var E = -1, x = arguments.length, K = -1, W = c.length, ie = j(W + x), fe = this && this !== St && this instanceof C ? h : t; ++K < W; )
9326
+ ie[K] = c[K];
9327
9327
  for (; x--; )
9328
- ie[q++] = arguments[++E];
9328
+ ie[K++] = arguments[++E];
9329
9329
  return en(fe, g ? o : this, ie);
9330
9330
  }
9331
9331
  return C;
@@ -9340,9 +9340,9 @@ Xr.exports;
9340
9340
  return typeof i == "string" && typeof o == "string" || (i = yn(i), o = yn(o)), t(i, o);
9341
9341
  };
9342
9342
  }
9343
- function ju(t, i, o, c, g, h, C, E, x, q) {
9343
+ function ju(t, i, o, c, g, h, C, E, x, K) {
9344
9344
  var W = i & F, ie = W ? C : n, fe = W ? n : C, Ce = W ? h : n, xe = W ? n : h;
9345
- i |= W ? B : w, i &= ~(W ? w : B), i & X || (i &= ~(P | ne));
9345
+ i |= W ? B : w, i &= ~(W ? w : B), i & q || (i &= ~(P | ne));
9346
9346
  var Ye = [
9347
9347
  t,
9348
9348
  i,
@@ -9353,7 +9353,7 @@ Xr.exports;
9353
9353
  fe,
9354
9354
  E,
9355
9355
  x,
9356
- q
9356
+ K
9357
9357
  ], Me = o.apply(n, Ye);
9358
9358
  return eo(t) && Ju(Me, Ye), Me.placeholder = c, Wu(Me, t, i);
9359
9359
  }
@@ -9380,8 +9380,8 @@ Xr.exports;
9380
9380
  var x = i & ne;
9381
9381
  if (!x && typeof t != "function")
9382
9382
  throw new fn(u);
9383
- var q = c ? c.length : 0;
9384
- if (q || (i &= ~(B | w), c = g = n), C = C === n ? C : Et(je(C), 0), E = E === n ? E : je(E), q -= g ? g.length : 0, i & w) {
9383
+ var K = c ? c.length : 0;
9384
+ if (K || (i &= ~(B | w), c = g = n), C = C === n ? C : Et(je(C), 0), E = E === n ? E : je(E), K -= g ? g.length : 0, i & w) {
9385
9385
  var W = c, ie = g;
9386
9386
  c = g = n;
9387
9387
  }
@@ -9397,7 +9397,7 @@ Xr.exports;
9397
9397
  C,
9398
9398
  E
9399
9399
  ];
9400
- if (fe && Bh(Ce, fe), t = Ce[0], i = Ce[1], o = Ce[2], c = Ce[3], g = Ce[4], E = Ce[9] = Ce[9] === n ? x ? 0 : t.length : Et(Ce[9] - q, 0), !E && i & (F | Y) && (i &= ~(F | Y)), !i || i == P)
9400
+ if (fe && Bh(Ce, fe), t = Ce[0], i = Ce[1], o = Ce[2], c = Ce[3], g = Ce[4], E = Ce[9] = Ce[9] === n ? x ? 0 : t.length : Et(Ce[9] - K, 0), !E && i & (F | Y) && (i &= ~(F | Y)), !i || i == P)
9401
9401
  var xe = uh(t, i, o);
9402
9402
  else
9403
9403
  i == F || i == Y ? xe = ch(t, i, E) : (i == B || i == (P | B)) && !g.length ? xe = dh(t, i, o, c) : xe = br.apply(n, Ce);
@@ -9417,9 +9417,9 @@ Xr.exports;
9417
9417
  var C = o & H, E = t.length, x = i.length;
9418
9418
  if (E != x && !(C && x > E))
9419
9419
  return !1;
9420
- var q = h.get(t), W = h.get(i);
9421
- if (q && W)
9422
- return q == i && W == t;
9420
+ var K = h.get(t), W = h.get(i);
9421
+ if (K && W)
9422
+ return K == i && W == t;
9423
9423
  var ie = -1, fe = !0, Ce = o & N ? new Ei() : n;
9424
9424
  for (h.set(t, i), h.set(i, t); ++ie < E; ) {
9425
9425
  var xe = t[ie], Ye = i[ie];
@@ -9469,20 +9469,20 @@ Xr.exports;
9469
9469
  var x = c & H;
9470
9470
  if (E || (E = _a), t.size != i.size && !x)
9471
9471
  return !1;
9472
- var q = C.get(t);
9473
- if (q)
9474
- return q == i;
9472
+ var K = C.get(t);
9473
+ if (K)
9474
+ return K == i;
9475
9475
  c |= N, C.set(t, i);
9476
9476
  var W = Gu(E(t), E(i), c, g, h, C);
9477
9477
  return C.delete(t), W;
9478
- case ue:
9478
+ case ce:
9479
9479
  if (Aa)
9480
9480
  return Aa.call(t) == Aa.call(i);
9481
9481
  }
9482
9482
  return !1;
9483
9483
  }
9484
9484
  function mh(t, i, o, c, g, h) {
9485
- var C = o & H, E = Js(t), x = E.length, q = Js(i), W = q.length;
9485
+ var C = o & H, E = Js(t), x = E.length, K = Js(i), W = K.length;
9486
9486
  if (x != W && !C)
9487
9487
  return !1;
9488
9488
  for (var ie = x; ie--; ) {
@@ -9661,7 +9661,7 @@ Xr.exports;
9661
9661
  return ah(t);
9662
9662
  case pe:
9663
9663
  return new c();
9664
- case ue:
9664
+ case ce:
9665
9665
  return rh(t);
9666
9666
  }
9667
9667
  }
@@ -9732,7 +9732,7 @@ Xr.exports;
9732
9732
  var o = t[1], c = i[1], g = o | c, h = g < (P | ne | R), C = c == R && o == F || c == R && o == D && t[7].length <= i[8] || c == (R | D) && i[7].length <= i[8] && o == F;
9733
9733
  if (!(h || C))
9734
9734
  return t;
9735
- c & P && (t[2] = i[2], g |= o & P ? 0 : X);
9735
+ c & P && (t[2] = i[2], g |= o & P ? 0 : q);
9736
9736
  var E = i[3];
9737
9737
  if (E) {
9738
9738
  var x = t[3];
@@ -10315,23 +10315,23 @@ Xr.exports;
10315
10315
  return c.placeholder = pc.placeholder, c;
10316
10316
  }
10317
10317
  function gc(t, i, o) {
10318
- var c, g, h, C, E, x, q = 0, W = !1, ie = !1, fe = !0;
10318
+ var c, g, h, C, E, x, K = 0, W = !1, ie = !1, fe = !0;
10319
10319
  if (typeof t != "function")
10320
10320
  throw new fn(u);
10321
10321
  i = yn(i) || 0, dt(o) && (W = !!o.leading, ie = "maxWait" in o, h = ie ? Et(yn(o.maxWait) || 0, i) : h, fe = "trailing" in o ? !!o.trailing : fe);
10322
10322
  function Ce(At) {
10323
10323
  var Bn = c, Zn = g;
10324
- return c = g = n, q = At, C = t.apply(Zn, Bn), C;
10324
+ return c = g = n, K = At, C = t.apply(Zn, Bn), C;
10325
10325
  }
10326
10326
  function xe(At) {
10327
- return q = At, E = Oa(Ke, i), W ? Ce(At) : C;
10327
+ return K = At, E = Oa(Ke, i), W ? Ce(At) : C;
10328
10328
  }
10329
10329
  function Ye(At) {
10330
- var Bn = At - x, Zn = At - q, Rc = i - Bn;
10330
+ var Bn = At - x, Zn = At - K, Rc = i - Bn;
10331
10331
  return ie ? Nt(Rc, h - Zn) : Rc;
10332
10332
  }
10333
10333
  function Me(At) {
10334
- var Bn = At - x, Zn = At - q;
10334
+ var Bn = At - x, Zn = At - K;
10335
10335
  return x === n || Bn >= i || Bn < 0 || ie && Zn >= h;
10336
10336
  }
10337
10337
  function Ke() {
@@ -10344,7 +10344,7 @@ Xr.exports;
10344
10344
  return E = n, fe && c ? Ce(At) : (c = g = n, C);
10345
10345
  }
10346
10346
  function rn() {
10347
- E !== n && Eu(E), q = 0, c = x = g = E = n;
10347
+ E !== n && Eu(E), K = 0, c = x = g = E = n;
10348
10348
  }
10349
10349
  function Ht() {
10350
10350
  return E === n ? C : Je(Mr());
@@ -10529,7 +10529,7 @@ Xr.exports;
10529
10529
  if (!dt(t))
10530
10530
  return !1;
10531
10531
  var i = Ut(t);
10532
- return i == Lt || i == Ae || i == nt || i == _e;
10532
+ return i == Lt || i == he || i == nt || i == _e;
10533
10533
  }
10534
10534
  function mc(t) {
10535
10535
  return typeof t == "number" && t == je(t);
@@ -10586,7 +10586,7 @@ Xr.exports;
10586
10586
  return typeof t == "string" || !Ne(t) && ft(t) && Ut(t) == Re;
10587
10587
  }
10588
10588
  function an(t) {
10589
- return typeof t == "symbol" || ft(t) && Ut(t) == ue;
10589
+ return typeof t == "symbol" || ft(t) && Ut(t) == ce;
10590
10590
  }
10591
10591
  var ea = Ll ? tn(Ll) : Km;
10592
10592
  function qv(t) {
@@ -10674,8 +10674,8 @@ Xr.exports;
10674
10674
  var o = -1, c = i.length, g = c > 2 ? i[2] : n;
10675
10675
  for (g && Gt(i[0], i[1], g) && (c = 1); ++o < c; )
10676
10676
  for (var h = i[o], C = Jt(h), E = -1, x = C.length; ++E < x; ) {
10677
- var q = C[E], W = t[q];
10678
- (W === n || In(W, Xi[q]) && !tt.call(t, q)) && (t[q] = h[q]);
10677
+ var K = C[E], W = t[K];
10678
+ (W === n || In(W, Xi[K]) && !tt.call(t, K)) && (t[K] = h[K]);
10679
10679
  }
10680
10680
  return t;
10681
10681
  }), iy = Ge(function(t) {
@@ -10898,19 +10898,19 @@ Xr.exports;
10898
10898
  function Zy(t, i, o) {
10899
10899
  var c = f.templateSettings;
10900
10900
  o && Gt(t, i, o) && (i = n), t = et(t), i = Nr({}, i, c, Yu);
10901
- var g = Nr({}, i.imports, c.imports, Yu), h = Bt(g), C = Cs(g, h), E, x, q = 0, W = i.interpolate || Xa, ie = "__p += '", fe = ks(
10901
+ var g = Nr({}, i.imports, c.imports, Yu), h = Bt(g), C = Cs(g, h), E, x, K = 0, W = i.interpolate || Xa, ie = "__p += '", fe = ks(
10902
10902
  (i.escape || Xa).source + "|" + W.source + "|" + (W === sl ? xg : Xa).source + "|" + (i.evaluate || Xa).source + "|$",
10903
10903
  "g"
10904
10904
  ), Ce = "//# sourceURL=" + (tt.call(i, "sourceURL") ? (i.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++rf + "]") + `
10905
10905
  `;
10906
10906
  t.replace(fe, function(Me, Ke, Je, rn, Ht, sn) {
10907
- return Je || (Je = rn), ie += t.slice(q, sn).replace(Dg, Of), Ke && (E = !0, ie += `' +
10907
+ return Je || (Je = rn), ie += t.slice(K, sn).replace(Dg, Of), Ke && (E = !0, ie += `' +
10908
10908
  __e(` + Ke + `) +
10909
10909
  '`), Ht && (x = !0, ie += `';
10910
10910
  ` + Ht + `;
10911
10911
  __p += '`), Je && (ie += `' +
10912
10912
  ((__t = (` + Je + `)) == null ? '' : __t) +
10913
- '`), q = sn + Me.length, Me;
10913
+ '`), K = sn + Me.length, Me;
10914
10914
  }), ie += `';
10915
10915
  `;
10916
10916
  var xe = tt.call(i, "variable") && i.variable;
@@ -10987,9 +10987,9 @@ function print() { __p += __j.call(arguments, '') }
10987
10987
  return x + c;
10988
10988
  if (C && (E += x.length - E), lo(g)) {
10989
10989
  if (t.slice(E).search(g)) {
10990
- var q, W = x;
10991
- for (g.global || (g = ks(g.source, et(ol.exec(g)) + "g")), g.lastIndex = 0; q = g.exec(W); )
10992
- var ie = q.index;
10990
+ var K, W = x;
10991
+ for (g.global || (g = ks(g.source, et(ol.exec(g)) + "g")), g.lastIndex = 0; K = g.exec(W); )
10992
+ var ie = K.index;
10993
10993
  x = x.slice(0, ie === n ? E : ie);
10994
10994
  }
10995
10995
  } else if (t.indexOf(nn(g), E) != E) {
@@ -11072,10 +11072,10 @@ function print() { __p += __j.call(arguments, '') }
11072
11072
  return gn(g, function(E) {
11073
11073
  var x = i[E];
11074
11074
  t[E] = x, C && (t.prototype[E] = function() {
11075
- var q = this.__chain__;
11076
- if (h || q) {
11075
+ var K = this.__chain__;
11076
+ if (h || K) {
11077
11077
  var W = t(this.__wrapped__), ie = W.__actions__ = qt(this.__actions__);
11078
- return ie.push({ func: x, args: arguments, thisArg: t }), W.__chain__ = q, W;
11078
+ return ie.push({ func: x, args: arguments, thisArg: t }), W.__chain__ = K, W;
11079
11079
  }
11080
11080
  return x.apply(t, ni([this.value()], arguments));
11081
11081
  });
@@ -11185,7 +11185,7 @@ function print() { __p += __j.call(arguments, '') }
11185
11185
  return this.reverse()[t](o).reverse();
11186
11186
  };
11187
11187
  }), gn(["filter", "map", "takeWhile"], function(t, i) {
11188
- var o = i + 1, c = o == me || o == J;
11188
+ var o = i + 1, c = o == me || o == X;
11189
11189
  Xe.prototype[t] = function(g) {
11190
11190
  var h = this.clone();
11191
11191
  return h.__iteratees__.push({
@@ -11226,11 +11226,11 @@ function print() { __p += __j.call(arguments, '') }
11226
11226
  }, Mn(Xe.prototype, function(t, i) {
11227
11227
  var o = /^(?:filter|find|map|reject)|While$/.test(i), c = /^(?:head|last)$/.test(i), g = f[c ? "take" + (i == "last" ? "Right" : "") : i], h = c || /^find/.test(i);
11228
11228
  g && (f.prototype[i] = function() {
11229
- var C = this.__wrapped__, E = c ? [1] : arguments, x = C instanceof Xe, q = E[0], W = x || Ne(C), ie = function(Ke) {
11229
+ var C = this.__wrapped__, E = c ? [1] : arguments, x = C instanceof Xe, K = E[0], W = x || Ne(C), ie = function(Ke) {
11230
11230
  var Je = g.apply(f, ni([Ke], E));
11231
11231
  return c && fe ? Je[0] : Je;
11232
11232
  };
11233
- W && o && typeof q == "function" && q.length != 1 && (x = W = !1);
11233
+ W && o && typeof K == "function" && K.length != 1 && (x = W = !1);
11234
11234
  var fe = this.__chain__, Ce = !!this.__actions__.length, xe = h && !fe, Ye = x && !Ce;
11235
11235
  if (!h && W) {
11236
11236
  C = Ye ? C : new Xe(this);
@@ -11582,14 +11582,14 @@ function VI(e, a, n) {
11582
11582
  var ne;
11583
11583
  if (s.timezoneOffset == null) {
11584
11584
  ne = new Date(s.year, s.month, s.day, s.hour, s.minute, s.second, s.millisecond);
11585
- for (var X = [
11585
+ for (var q = [
11586
11586
  ["month", "getMonth"],
11587
11587
  ["day", "getDate"],
11588
11588
  ["hour", "getHours"],
11589
11589
  ["minute", "getMinutes"],
11590
11590
  ["second", "getSeconds"]
11591
- ], k = 0, F = X.length; k < F; k++)
11592
- if (p[X[k][0]] && s[X[k][0]] !== ne[X[k][1]]())
11591
+ ], k = 0, F = q.length; k < F; k++)
11592
+ if (p[q[k][0]] && s[q[k][0]] !== ne[q[k][1]]())
11593
11593
  return null;
11594
11594
  } else if (ne = new Date(Date.UTC(s.year, s.month, s.day, s.hour, s.minute - s.timezoneOffset, s.second, s.millisecond)), s.month > 11 || s.month < 0 || s.day > 31 || s.day < 1 || s.hour > 23 || s.hour < 0 || s.minute > 59 || s.minute < 0 || s.second > 59 || s.second < 0)
11595
11595
  return null;
@@ -14400,7 +14400,7 @@ const LS = /* @__PURE__ */ Ue(xS, [["render", RS], ["__scopeId", "data-v-29d1537
14400
14400
  emits: ["validated", "modelUpdated"],
14401
14401
  data() {
14402
14402
  return {
14403
- child: ce()
14403
+ child: ue()
14404
14404
  };
14405
14405
  },
14406
14406
  methods: {
@@ -14578,7 +14578,7 @@ const ZS = /* @__PURE__ */ Ue(DS, [["render", WS], ["__scopeId", "data-v-bee6105
14578
14578
  return {
14579
14579
  validateAfterLoad: !1,
14580
14580
  validateAfterChanged: !1,
14581
- child: ce([]),
14581
+ child: ue([]),
14582
14582
  fieldIdPrefix: "",
14583
14583
  validateAsync: !1,
14584
14584
  validationErrorClass: "error",
@@ -14609,7 +14609,7 @@ const ZS = /* @__PURE__ */ Ue(DS, [["render", WS], ["__scopeId", "data-v-bee6105
14609
14609
  vfg: this,
14610
14610
  errors: [],
14611
14611
  // Validation errors,
14612
- children: ce([])
14612
+ children: ue([])
14613
14613
  };
14614
14614
  },
14615
14615
  computed: {
@@ -15610,7 +15610,7 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
15610
15610
  }
15611
15611
  },
15612
15612
  setup(e) {
15613
- const a = e, n = ce("zeroSsl"), r = ce("shm"), s = Q(() => {
15613
+ const a = e, n = ue("zeroSsl"), r = ue("shm"), s = Q(() => {
15614
15614
  var B;
15615
15615
  const w = {};
15616
15616
  if ((B = a.formSchema) != null && B.fields)
@@ -15672,7 +15672,7 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
15672
15672
  hash: "#advanced",
15673
15673
  title: "Advanced"
15674
15674
  }
15675
- ], X = [
15675
+ ], q = [
15676
15676
  {
15677
15677
  label: "Lets Encrypt",
15678
15678
  value: "letsEncrypt"
@@ -15721,7 +15721,7 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
15721
15721
  TT,
15722
15722
  Z(R, {
15723
15723
  class: "issuer-select",
15724
- items: X,
15724
+ items: q,
15725
15725
  label: "Issuer",
15726
15726
  onChange: F
15727
15727
  }),
@@ -16553,14 +16553,14 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
16553
16553
  if (ee.forEach((we) => {
16554
16554
  A(re[we], we, re, me, le, D);
16555
16555
  }), a != null && a.groupFields) {
16556
- const we = [], J = [], ge = [];
16556
+ const we = [], X = [], ge = [];
16557
16557
  for (const Be of le.fields) {
16558
16558
  if (!Be.model.startsWith("config-")) {
16559
16559
  we.push(Be);
16560
16560
  continue;
16561
16561
  }
16562
16562
  if (Be.required) {
16563
- J.push(Be);
16563
+ X.push(Be);
16564
16564
  continue;
16565
16565
  }
16566
16566
  ge.push(Be);
@@ -16571,9 +16571,9 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
16571
16571
  fields: we.sort(ug),
16572
16572
  collapsible: !0,
16573
16573
  collapsedByDefault: !1
16574
- }), J.length > 0 && Se.push({
16574
+ }), X.length > 0 && Se.push({
16575
16575
  legend: s("plugins.form.grouping.required_fields"),
16576
- fields: J.sort(Id),
16576
+ fields: X.sort(Id),
16577
16577
  collapsible: !0,
16578
16578
  collapsedByDefault: !1
16579
16579
  }), ge.length > 0 && Se.push({
@@ -16585,7 +16585,7 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
16585
16585
  groups: Se
16586
16586
  };
16587
16587
  } else
16588
- le.fields.sort((we, J) => (we.order = we.order || 0, J.order = J.order || 0, we.order - J.order));
16588
+ le.fields.sort((we, X) => (we.order = we.order || 0, X.order = X.order || 0, we.order - X.order));
16589
16589
  return {
16590
16590
  schema: le,
16591
16591
  model: me,
@@ -16658,12 +16658,12 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
16658
16658
  }
16659
16659
  ]
16660
16660
  });
16661
- }, X = (w) => w.fields.reduce((R, D) => (D.fields && D.fields.forEach((re) => {
16661
+ }, q = (w) => w.fields.reduce((R, D) => (D.fields && D.fields.forEach((re) => {
16662
16662
  R[re.model] = re;
16663
16663
  }), D.model && (R[D.model] = D), R), {}), F = (w, R) => {
16664
16664
  if (!No.includes(w.model))
16665
16665
  return;
16666
- const D = X(w);
16666
+ const D = q(w);
16667
16667
  No.forEach((re) => {
16668
16668
  Object.keys(D).forEach((be) => {
16669
16669
  const ee = p(D[be]);
@@ -16783,21 +16783,21 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
16783
16783
  return r.config.app === "konnect" ? s.get(le).then((me) => {
16784
16784
  const { data: { data: we } } = me;
16785
16785
  if (delete z.size, delete z.offset, we.length && Object.keys(z).length === 1) {
16786
- const J = Object.keys(z)[0], ge = we.filter((Se) => Se[J] ? !!Se[J].toLowerCase().includes(z[J].toLowerCase()) : !1);
16786
+ const X = Object.keys(z)[0], ge = we.filter((Se) => Se[X] ? !!Se[X].toLowerCase().includes(z[X].toLowerCase()) : !1);
16787
16787
  me.data.data = ge;
16788
16788
  }
16789
16789
  return me;
16790
16790
  }) : s.get(le, { params: z });
16791
16791
  }
16792
16792
  });
16793
- const N = ce(""), P = ce(null), ne = ce({}), X = Ta({}), F = Ta({}), Y = Q(() => {
16793
+ const N = ue(""), P = ue(null), ne = ue({}), q = Ta({}), F = Ta({}), Y = Q(() => {
16794
16794
  var ee;
16795
16795
  return (ee = P.value) == null ? void 0 : ee.options;
16796
16796
  }), B = () => {
16797
- var J, ge;
16798
- const ee = { ...r.schema }, z = F, le = X, me = Object.keys(z), we = {};
16797
+ var X, ge;
16798
+ const ee = { ...r.schema }, z = F, le = q, me = Object.keys(z), we = {};
16799
16799
  if (!p(ne.value))
16800
- for (let Se = 0; Se < ((ge = (J = ne.value) == null ? void 0 : J.fields) == null ? void 0 : ge.length); Se++)
16800
+ for (let Se = 0; Se < ((ge = (X = ne.value) == null ? void 0 : X.fields) == null ? void 0 : ge.length); Se++)
16801
16801
  ee[ne.value.fields[Se].model] = ne.value.fields[Se];
16802
16802
  return No.forEach((Se) => {
16803
16803
  ee[Se] && (ee[Se].fields.forEach((Be) => {
@@ -16867,7 +16867,7 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
16867
16867
  const me = Object.assign({}, F, le);
16868
16868
  Object.assign(F, me), n("model-updated", {
16869
16869
  model: F,
16870
- originalModel: X,
16870
+ originalModel: q,
16871
16871
  data: B()
16872
16872
  });
16873
16873
  }, R = (ee, z) => {
@@ -16878,28 +16878,28 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
16878
16878
  const ye = z ? `${z}-${le.replace(/-/g, "_")}` : le.replace(/-/g, "_");
16879
16879
  (Se = r.schema[ye]) != null && Se.fieldNameHasDashes && (me = ye, we = r.schema[me]), z && ((Be = r.schema[z]) == null ? void 0 : Be.keyFromObject) === le && (me = z, we = r.schema[me]);
16880
16880
  }
16881
- const J = ee[le], ge = typeof J;
16882
- if (we && we.type === "object-advanced" && !J) {
16883
- F[me] = {}, X[me] = {};
16881
+ const X = ee[le], ge = typeof X;
16882
+ if (we && we.type === "object-advanced" && !X) {
16883
+ F[me] = {}, q[me] = {};
16884
16884
  return;
16885
16885
  }
16886
- if (Array.isArray(J)) {
16887
- F[me] = JSON.parse(JSON.stringify(J)), X[me] = JSON.parse(JSON.stringify(J));
16886
+ if (Array.isArray(X)) {
16887
+ F[me] = JSON.parse(JSON.stringify(X)), q[me] = JSON.parse(JSON.stringify(X));
16888
16888
  return;
16889
16889
  }
16890
- if (ge === "object" && J && !J.length)
16891
- return R(J, me);
16892
- if (ge === "object" && J && J.length && we.type === "input") {
16893
- F[me] = J.join(", "), X[me] = J.join(", ");
16890
+ if (ge === "object" && X && !X.length)
16891
+ return R(X, me);
16892
+ if (ge === "object" && X && X.length && we.type === "input") {
16893
+ F[me] = X.join(", "), q[me] = X.join(", ");
16894
16894
  return;
16895
16895
  }
16896
- F[me] = J, X[me] = J;
16896
+ F[me] = X, q[me] = X;
16897
16897
  }), n("model-updated", {
16898
16898
  model: F,
16899
- originalModel: X,
16899
+ originalModel: q,
16900
16900
  data: B()
16901
16901
  });
16902
- }, D = ce(!0), re = () => {
16902
+ }, D = ue(!0), re = () => {
16903
16903
  var ee;
16904
16904
  if (r.record && r.schema && (R({
16905
16905
  enabled: r.record.enabled ?? !0,
@@ -16916,8 +16916,8 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
16916
16916
  }), R(r.record.config, "config"))), Object.keys(r.entityMap).length && !r.entityMap.global && r.schema) {
16917
16917
  const z = {};
16918
16918
  for (const le in r.entityMap) {
16919
- const me = r.entityMap[le].id, we = r.entityMap[le].idField, J = we === "consumer_group_id" ? "consumer_group-id" : JSON.parse(JSON.stringify(we).replace("_", "-"));
16920
- Object.prototype.hasOwnProperty.call(F, J) && (z[J] = me);
16919
+ const me = r.entityMap[le].id, we = r.entityMap[le].idField, X = we === "consumer_group_id" ? "consumer_group-id" : JSON.parse(JSON.stringify(we).replace("_", "-"));
16920
+ Object.prototype.hasOwnProperty.call(F, X) && (z[X] = me);
16921
16921
  }
16922
16922
  R(z);
16923
16923
  }
@@ -16934,7 +16934,7 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
16934
16934
  if (b(ee || {}, z || {}))
16935
16935
  return;
16936
16936
  const le = l(ee);
16937
- Object.assign(F, le.model), ne.value = { fields: (we = (me = ne.value) == null ? void 0 : me.fields) == null ? void 0 : we.map((J) => ({ ...J, disabled: J.disabled || !1 })) }, Object.assign(X, JSON.parse(JSON.stringify(le.model))), N.value = FT(le.model.name), re();
16937
+ Object.assign(F, le.model), ne.value = { fields: (we = (me = ne.value) == null ? void 0 : me.fields) == null ? void 0 : we.map((X) => ({ ...X, disabled: X.disabled || !1 })) }, Object.assign(q, JSON.parse(JSON.stringify(le.model))), N.value = FT(le.model.name), re();
16938
16938
  }, { immediate: !0, deep: !0 }), ji(() => {
16939
16939
  var ee, z;
16940
16940
  P.value = l(r.schema), Object.assign(F, ((ee = P.value) == null ? void 0 : ee.model) || {}), ne.value = ((z = P.value) == null ? void 0 : z.schema) || {}, re();
@@ -17026,7 +17026,7 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
17026
17026
  setup(e, { emit: a }) {
17027
17027
  const n = a, r = e, s = Va(), { i18n: { t: l } } = bt.useI18n(), { pluginMetaData: u, credentialMetaData: d, credentialSchemas: p } = bt.usePluginMetaData(), { customSchemas: A, typedefs: b } = bt.useSchemas(void 0, { app: r.config.app }), { getMessageFromError: y } = is(), { capitalize: k } = Pp(), { objectsAreEqual: S } = as(), { axiosInstance: H } = ca({
17028
17028
  headers: r.config.requestHeaders
17029
- }), N = ce(!1), P = Q(() => r.pluginId ? Qn.Edit : Qn.Create), ne = ce(null), X = Q(() => !!(r.credential && r.config.entityId)), F = ce(null), Y = ce({}), B = ce(!1), w = Ta({
17029
+ }), N = ue(!1), P = Q(() => r.pluginId ? Qn.Edit : Qn.Create), ne = ue(null), q = Q(() => !!(r.credential && r.config.entityId)), F = ue(null), Y = ue({}), B = ue(!1), w = Ta({
17030
17030
  enabled: !0,
17031
17031
  protocols: [],
17032
17032
  tags: []
@@ -17038,7 +17038,7 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
17038
17038
  },
17039
17039
  isReadonly: !1,
17040
17040
  errorMessage: ""
17041
- }), D = ce([
17041
+ }), D = ue([
17042
17042
  {
17043
17043
  title: l("view_configuration.yaml"),
17044
17044
  hash: "#yaml"
@@ -17048,7 +17048,7 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
17048
17048
  hash: "#json"
17049
17049
  }
17050
17050
  ]), re = Q(() => {
17051
- if (X.value) {
17051
+ if (q.value) {
17052
17052
  let G = Mt.form[r.config.app].credential[P.value];
17053
17053
  return G = G.replace(/{resourceEndpoint}/gi, le.value), G;
17054
17054
  }
@@ -17056,9 +17056,9 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
17056
17056
  }), be = () => {
17057
17057
  N.value = !N.value;
17058
17058
  }, ee = Q(() => {
17059
- var _e, it, pe, Re, ue, he, vt, Un;
17060
- const G = r.config.entityType === "consumers" && r.config.entityId || ((it = (_e = F.value) == null ? void 0 : _e.consumer) == null ? void 0 : it.id), de = r.config.entityType === "consumer_groups" && r.config.entityId || ((Re = (pe = F.value) == null ? void 0 : pe.consumer_group) == null ? void 0 : Re.id), K = r.config.entityType === "services" && r.config.entityId || ((he = (ue = F.value) == null ? void 0 : ue.service) == null ? void 0 : he.id), Ee = r.config.entityType === "routes" && r.config.entityId || ((Un = (vt = F.value) == null ? void 0 : vt.route) == null ? void 0 : Un.id);
17061
- if (!(G || de || K || Ee))
17059
+ var _e, it, pe, Re, ce, Ae, vt, Un;
17060
+ const G = r.config.entityType === "consumers" && r.config.entityId || ((it = (_e = F.value) == null ? void 0 : _e.consumer) == null ? void 0 : it.id), de = r.config.entityType === "consumer_groups" && r.config.entityId || ((Re = (pe = F.value) == null ? void 0 : pe.consumer_group) == null ? void 0 : Re.id), J = r.config.entityType === "services" && r.config.entityId || ((Ae = (ce = F.value) == null ? void 0 : ce.service) == null ? void 0 : Ae.id), Ee = r.config.entityType === "routes" && r.config.entityId || ((Un = (vt = F.value) == null ? void 0 : vt.route) == null ? void 0 : Un.id);
17061
+ if (!(G || de || J || Ee))
17062
17062
  return {
17063
17063
  global: {
17064
17064
  entity: m.GLOBAL,
@@ -17066,10 +17066,10 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
17066
17066
  }
17067
17067
  };
17068
17068
  const Te = {};
17069
- return K && (Te.service = {
17069
+ return J && (Te.service = {
17070
17070
  entity: m.SERVICE,
17071
17071
  entityEndpoint: "services",
17072
- id: K,
17072
+ id: J,
17073
17073
  idField: aa.SERVICE
17074
17074
  }), Ee && (Te.route = {
17075
17075
  entity: m.ROUTE,
@@ -17155,42 +17155,42 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
17155
17155
  ]
17156
17156
  }
17157
17157
  }), le = Q(() => {
17158
- var K;
17159
- const G = r.developer ? "developers" : "consumers", de = ((K = d[r.pluginType]) == null ? void 0 : K.endpoint) || "/plugins";
17158
+ var J;
17159
+ const G = r.developer ? "developers" : "consumers", de = ((J = d[r.pluginType]) == null ? void 0 : J.endpoint) || "/plugins";
17160
17160
  return `${G}/${r.config.entityId}${r.developer ? "/credentials" : ""}${de}`;
17161
17161
  }), me = (G) => {
17162
- const de = [...new Set(G.map((K) => typeof K))];
17162
+ const de = [...new Set(G.map((J) => typeof J))];
17163
17163
  return de.length > 1 ? "string" : de[0];
17164
- }, we = (G) => k(G.replace(/_/g, " ")), J = (G, de, K) => {
17164
+ }, we = (G) => k(G.replace(/_/g, " ")), X = (G, de, J) => {
17165
17165
  var it, pe;
17166
17166
  let Ee = de && de.fields || [];
17167
17167
  const Te = A[r.pluginType], _e = (pe = (it = d[r.pluginType]) == null ? void 0 : it.schema) == null ? void 0 : pe.fields;
17168
- return Array.isArray(Ee) && (Ee = Ee.reduce((Re, ue) => {
17169
- const he = Object.keys(ue)[0];
17170
- return he.match(/-/g) ? Re[he.replace(/-/g, "_")] = {
17171
- ...ue[he],
17168
+ return Array.isArray(Ee) && (Ee = Ee.reduce((Re, ce) => {
17169
+ const Ae = Object.keys(ce)[0];
17170
+ return Ae.match(/-/g) ? Re[Ae.replace(/-/g, "_")] = {
17171
+ ...ce[Ae],
17172
17172
  // A flag to indicate the field name has dashes originally and they are replaced with underscores.
17173
17173
  // When submitting the form, the underscores should be replaced with dashes again
17174
17174
  fieldNameHasDashes: !0
17175
- } : Re[he] = ue[he], Re;
17175
+ } : Re[Ae] = ce[Ae], Re;
17176
17176
  }, {})), Object.keys(Ee).sort().forEach((Re) => {
17177
17177
  var Un, zt, Gn, Ui, Gi, Hi;
17178
- const ue = Ee[Re], he = G ? `${G}-${Re}` : `${Re}`;
17179
- if (Object.prototype.hasOwnProperty.call(ue, "overwrite") || ue.hidden)
17178
+ const ce = Ee[Re], Ae = G ? `${G}-${Re}` : `${Re}`;
17179
+ if (Object.prototype.hasOwnProperty.call(ce, "overwrite") || ce.hidden)
17180
17180
  return;
17181
- if (ue.type === "table")
17182
- return J(he, ue.schema, K);
17183
- if (ue.fields)
17184
- return J(he, ue, K);
17185
- if (K[he] = { id: he }, K[he].type = ue.type === "boolean" ? "checkbox" : "input", K[he].required = ue.required, he.startsWith("config-") && (K[he].label = we(he)), (G === "config" || G.startsWith("config-")) && (Un = Ee[Re]) != null && Un.description && (K[he].help = We.parse(Ee[Re].description, { mangle: !1, headerIds: !1 })), ue.type === "map") {
17186
- if (K[he].type = "object-advanced", ue.values.type === "array") {
17187
- const { type: $e } = ue.values.elements || {};
17188
- K[he].schema = {
17181
+ if (ce.type === "table")
17182
+ return X(Ae, ce.schema, J);
17183
+ if (ce.fields)
17184
+ return X(Ae, ce, J);
17185
+ if (J[Ae] = { id: Ae }, J[Ae].type = ce.type === "boolean" ? "checkbox" : "input", Ae.startsWith("config-") && (J[Ae].label = we(Ae)), (G === "config" || G.startsWith("config-")) && (Un = Ee[Re]) != null && Un.description && (J[Ae].help = We.parse(Ee[Re].description, { mangle: !1, headerIds: !1 })), ce.type === "map") {
17186
+ if (J[Ae].type = "object-advanced", ce.values.type === "array") {
17187
+ const { type: $e } = ce.values.elements || {};
17188
+ J[Ae].schema = {
17189
17189
  fields: [{
17190
17190
  schema: {
17191
17191
  fields: [{
17192
17192
  ...Da,
17193
- model: he,
17193
+ model: Ae,
17194
17194
  valueArrayType: $e === "integer" ? "number" : $e || "string",
17195
17195
  inputAttributes: {
17196
17196
  ...Da.inputAttributes,
@@ -17202,13 +17202,13 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
17202
17202
  }]
17203
17203
  };
17204
17204
  } else
17205
- ue.values.fields && (K[he].schema = {
17205
+ ce.values.fields && (J[Ae].schema = {
17206
17206
  fields: [
17207
17207
  {
17208
17208
  type: "object",
17209
17209
  model: "object",
17210
17210
  schema: {
17211
- fields: ue.values.fields.map(($e) => {
17211
+ fields: ce.values.fields.map(($e) => {
17212
17212
  const Kt = Object.keys($e)[0];
17213
17213
  return {
17214
17214
  model: Kt,
@@ -17222,55 +17222,55 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
17222
17222
  }
17223
17223
  ]
17224
17224
  });
17225
- return K;
17225
+ return J;
17226
17226
  }
17227
- if (ue.enum && ue.type === "array" && (K[he].type = "checklist", K[he].values = ue.enum, K[he].multi = !0, K[he].multiSelect = !0), ue.one_of && ue.type !== "array" && (K[he].type = "select", K[he].values = ue.one_of, K[he].selectOptions = {
17227
+ if (ce.enum && ce.type === "array" && (J[Ae].type = "checklist", J[Ae].values = ce.enum, J[Ae].multi = !0, J[Ae].multiSelect = !0), ce.one_of && ce.type !== "array" && (J[Ae].type = "select", J[Ae].values = ce.one_of, J[Ae].selectOptions = {
17228
17228
  noneSelectedText: l("plugins.form.no_selection")
17229
- }), ue.elements && ue.type === "array") {
17230
- const $e = ue.elements;
17229
+ }), ce.elements && ce.type === "array") {
17230
+ const $e = ce.elements;
17231
17231
  if ($e.type === "string" && !$e.one_of) {
17232
- const { help: Kt, label: $t, hint: xn } = K[he], { help: Hn, ...yi } = JSON.parse(JSON.stringify(Da));
17233
- K[he] = { help: Kt, label: $t, hint: xn, ...yi }, K[he].help === void 0 && typeof Hn == "string" && (K[he].help = We.parse(Hn, { mangle: !1, headerIds: !1 }));
17232
+ const { help: Kt, label: $t, hint: xn } = J[Ae], { help: Hn, ...yi } = JSON.parse(JSON.stringify(Da));
17233
+ J[Ae] = { help: Kt, label: $t, hint: xn, ...yi }, J[Ae].help === void 0 && typeof Hn == "string" && (J[Ae].help = We.parse(Hn, { mangle: !1, headerIds: !1 }));
17234
17234
  }
17235
17235
  }
17236
- if (ue.hint && (K[he].hint = ue.hint), Te && !Te.overwriteDefault && Object.keys(Te).forEach(($e) => {
17237
- if ($e === he) {
17238
- const { help: Kt, label: $t, hint: xn } = K[he], { help: Hn, ...yi } = Te[$e];
17239
- K[he] = { help: Kt, label: $t, hint: xn, ...yi }, typeof Hn == "string" && (K[he].help = We.parse(Hn, { mangle: !1, headerIds: !1 }));
17236
+ if (ce.hint && (J[Ae].hint = ce.hint), Te && !Te.overwriteDefault && Object.keys(Te).forEach(($e) => {
17237
+ if ($e === Ae) {
17238
+ const { help: Kt, label: $t, hint: xn } = J[Ae], { help: Hn, ...yi } = Te[$e];
17239
+ J[Ae] = { help: Kt, label: $t, hint: xn, ...yi }, typeof Hn == "string" && (J[Ae].help = We.parse(Hn, { mangle: !1, headerIds: !1 }));
17240
17240
  }
17241
- }), ue.type === "array" && ((zt = ue.elements) == null ? void 0 : zt.type) === "record" && Array.isArray(ue.elements.fields)) {
17241
+ }), ce.type === "array" && ((zt = ce.elements) == null ? void 0 : zt.type) === "record" && Array.isArray(ce.elements.fields)) {
17242
17242
  let $e = {};
17243
- for (const $t of ue.elements.fields)
17243
+ for (const $t of ce.elements.fields)
17244
17244
  $e = { ...$e, ...$t };
17245
- const Kt = (Gi = (Ui = (Gn = K[he]) == null ? void 0 : Gn.items) == null ? void 0 : Ui.schema) == null ? void 0 : Gi.fields;
17245
+ const Kt = (Gi = (Ui = (Gn = J[Ae]) == null ? void 0 : Gn.items) == null ? void 0 : Ui.schema) == null ? void 0 : Gi.fields;
17246
17246
  if (Array.isArray(Kt))
17247
- for (const $t of K[he].items.schema.fields) {
17247
+ for (const $t of J[Ae].items.schema.fields) {
17248
17248
  const xn = (Hi = $e[$t.model]) == null ? void 0 : Hi.description;
17249
17249
  $t.help === void 0 && typeof xn == "string" && ($t.help = We.parse(xn, { mangle: !1, headerIds: !1 }));
17250
17250
  }
17251
17251
  }
17252
- if (X.value && r.config.app === "kongManager" && _e) {
17252
+ if (q.value && r.config.app === "kongManager" && _e) {
17253
17253
  for (let $e = 0; $e < _e.length; $e++)
17254
- if (_e[$e][he]) {
17255
- K[he] = {
17256
- ...K[he],
17257
- ..._e[$e][he]
17254
+ if (_e[$e][Ae]) {
17255
+ J[Ae] = {
17256
+ ...J[Ae],
17257
+ ..._e[$e][Ae]
17258
17258
  };
17259
17259
  break;
17260
17260
  }
17261
17261
  }
17262
- if (ue.required && ue.type !== "boolean" && (K[he].required = !0, K[he].selectOptions = {
17262
+ if (ce.required && ce.type !== "boolean" && (J[Ae].required = !0, J[Ae].selectOptions = {
17263
17263
  hideNoneSelectedText: !0
17264
- }), ue.default != null && typeof ue.default != "object" && ue.default !== "function" && (K[he].default = ue.default), K[he].type === "input") {
17265
- const { type: $e } = ue.elements || {};
17266
- $e && (K[he].valueArrayType = $e === "integer" ? "number" : $e), K[he].inputType = ue.type === "array" || ue.type === "string" ? "text" : ue.type;
17264
+ }), ce.default != null && typeof ce.default != "object" && ce.default !== "function" && (J[Ae].default = ce.default), J[Ae].type === "input") {
17265
+ const { type: $e } = ce.elements || {};
17266
+ $e && (J[Ae].valueArrayType = $e === "integer" ? "number" : $e), J[Ae].inputType = ce.type === "array" || ce.type === "string" ? "text" : ce.type;
17267
17267
  }
17268
17268
  let vt = "string";
17269
- ue.enum ? vt = me(ue.enum) : ue.type === "boolean" ? vt = "boolean" : ue.type === "number" || ue.type === "integer" ? (vt = "number", K[he].inputType = "number") : ue.type === "array" || ue.type === "set" ? (vt = "array", K[he].default = ue.default, ue.len_min > 0 && (K[he].submitWhenNull = !0)) : ue.type === "foreign" ? vt = "object" : ue.default && Array.isArray(ue.default) ? (vt = "array", K[he].valueArrayType = me(ue.default)) : ue.default && (vt = typeof ue.default), K[he].valueType = vt, ue.fieldNameHasDashes && (K[he].fieldNameHasDashes = !0);
17270
- }), K;
17269
+ ce.enum ? vt = me(ce.enum) : ce.type === "boolean" ? vt = "boolean" : ce.type === "number" || ce.type === "integer" ? (vt = "number", J[Ae].inputType = "number") : ce.type === "array" || ce.type === "set" ? (vt = "array", J[Ae].default = ce.default, ce.len_min > 0 && (J[Ae].submitWhenNull = !0)) : ce.type === "foreign" ? vt = "object" : ce.default && Array.isArray(ce.default) ? (vt = "array", J[Ae].valueArrayType = me(ce.default)) : ce.default && (vt = typeof ce.default), J[Ae].valueType = vt, ce.fieldNameHasDashes && (J[Ae].fieldNameHasDashes = !0);
17270
+ }), J;
17271
17271
  }, ge = () => {
17272
17272
  var _e, it, pe, Re;
17273
- const G = ((_e = u[r.pluginType]) == null ? void 0 : _e.scope.includes(m.SERVICE)) ?? !0, de = ((it = u[r.pluginType]) == null ? void 0 : it.scope.includes(m.ROUTE)) ?? !0, K = ((pe = u[r.pluginType]) == null ? void 0 : pe.scope.includes(m.CONSUMER)) ?? !0, Ee = r.config.disableConsumerGroupScope ? !1 : ((Re = u[r.pluginType]) == null ? void 0 : Re.scope.includes(m.CONSUMER_GROUP)) ?? !0, Te = [];
17273
+ const G = ((_e = u[r.pluginType]) == null ? void 0 : _e.scope.includes(m.SERVICE)) ?? !0, de = ((it = u[r.pluginType]) == null ? void 0 : it.scope.includes(m.ROUTE)) ?? !0, J = ((pe = u[r.pluginType]) == null ? void 0 : pe.scope.includes(m.CONSUMER)) ?? !0, Ee = r.config.disableConsumerGroupScope ? !1 : ((Re = u[r.pluginType]) == null ? void 0 : Re.scope.includes(m.CONSUMER_GROUP)) ?? !0, Te = [];
17274
17274
  if (G && Te.push({
17275
17275
  model: "service-id",
17276
17276
  label: l("plugins.form.scoping.gateway_service.label"),
@@ -17292,7 +17292,7 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
17292
17292
  primaryField: "id"
17293
17293
  },
17294
17294
  help: l("plugins.form.scoping.route.help")
17295
- }), K && Te.push({
17295
+ }), J && Te.push({
17296
17296
  model: "consumer-id",
17297
17297
  label: l("plugins.form.scoping.consumer.label"),
17298
17298
  placeholder: l("plugins.form.scoping.consumer.placeholder"),
@@ -17316,15 +17316,15 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
17316
17316
  },
17317
17317
  help: l("plugins.form.scoping.consumer_group.help")
17318
17318
  }), Te.length) {
17319
- const ue = [
17319
+ const ce = [
17320
17320
  ...G ? ["service"] : [],
17321
17321
  ...de ? ["route"] : [],
17322
- ...K ? ["consumer"] : [],
17322
+ ...J ? ["consumer"] : [],
17323
17323
  ...Ee ? ["consumer_group"] : []
17324
- ], vt = ue.splice(ue.length - 2, 2).map((zt) => l(zt === "service" ? "plugins.form.scoping.gateway_service.plural" : `plugins.form.scoping.${zt}.plural`)).join(`${ue.length > 0 ? "," : ""} and/or `), Un = [
17324
+ ], vt = ce.splice(ce.length - 2, 2).map((zt) => l(zt === "service" ? "plugins.form.scoping.gateway_service.plural" : `plugins.form.scoping.${zt}.plural`)).join(`${ce.length > 0 ? "," : ""} and/or `), Un = [
17325
17325
  "Specific",
17326
17326
  [
17327
- ...ue.length > 0 ? [ue.map(
17327
+ ...ce.length > 0 ? [ce.map(
17328
17328
  (zt) => l(zt === "service" ? "plugins.form.scoping.gateway_service.plural" : `plugins.form.scoping.${zt}.plural`)
17329
17329
  ).join(", ")] : [],
17330
17330
  vt
@@ -17337,9 +17337,9 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
17337
17337
  }), z.selectionGroup.fields[1].fields = Te;
17338
17338
  }
17339
17339
  A[r.pluginType] && A[r.pluginType].overwriteDefault && Object.hasOwnProperty.call(A[r.pluginType], "formSchema") && Object.assign(z, A[r.pluginType].formSchema);
17340
- }, Se = Q(() => !S(R.fields, w, !0)), Be = Q(() => !Lt.value && !B.value && (P.value === Qn.Create || Se.value)), ye = ce(!1), He = (G) => {
17340
+ }, Se = Q(() => !S(R.fields, w, !0)), Be = Q(() => !Lt.value && !B.value && (P.value === Qn.Create || Se.value)), ye = ue(!1), He = (G) => {
17341
17341
  R.fields.id = (G == null ? void 0 : G.id) || void 0, Object.assign(w, R.fields), F.value = G, ye.value = !0;
17342
- }, wt = ce({}), rt = (G) => {
17342
+ }, wt = ue({}), rt = (G) => {
17343
17343
  var de;
17344
17344
  R.fields = G.model, R.fields.id = ((de = F.value) == null ? void 0 : de.id) || void 0, Object.assign(w, G.originalModel), wt.value = G.data, r.isWizardStep && n("model-updated", {
17345
17345
  model: R.fields,
@@ -17348,8 +17348,8 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
17348
17348
  });
17349
17349
  };
17350
17350
  un([ee, ye], (G, de) => {
17351
- const K = G[0] !== de[0], Ee = G[1], Te = de[1];
17352
- !X.value && P.value === Qn.Edit && (K || Ee && Ee !== Te) && (Lt.value = !0, ne.value = J("config", Y.value, z), Lt.value = !1);
17351
+ const J = G[0] !== de[0], Ee = G[1], Te = de[1];
17352
+ !q.value && P.value === Qn.Edit && (J || Ee && Ee !== Te) && (Lt.value = !0, ne.value = X("config", Y.value, z), Lt.value = !1);
17353
17353
  }, { deep: !0 });
17354
17354
  const En = () => {
17355
17355
  r.config.cancelRoute && s.push(r.config.cancelRoute);
@@ -17359,15 +17359,15 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
17359
17359
  let G = `${r.config.apiBaseUrl}${Mt.form[r.config.app].validate}`;
17360
17360
  return r.config.app === "konnect" ? G = G.replace(/{controlPlaneId}/gi, r.config.controlPlaneId || "") : r.config.app === "kongManager" && (G = G.replace(/\/{workspace}/gi, r.config.workspace ? `/${r.config.workspace}` : "")), G = G.replace(/{id}/gi, r.pluginId), G;
17361
17361
  }), nt = Q(() => {
17362
- const G = r.config.entityType && r.config.entityId && !r.developer, de = X.value ? Mt.form[r.config.app].credential[P.value] : Mt.form[r.config.app][P.value][G ? "forEntity" : "all"];
17363
- let K = `${r.config.apiBaseUrl}${de}`;
17364
- return r.config.app === "konnect" ? K = K.replace(/{controlPlaneId}/gi, r.config.controlPlaneId || "") : r.config.app === "kongManager" && (K = K.replace(/\/{workspace}/gi, r.config.workspace ? `/${r.config.workspace}` : "")), K = K.replace(/{resourceEndpoint}/gi, le.value), K = K.replace(/{id}/gi, r.pluginId), K = K.replace(/{entityType}/gi, r.config.entityType || ""), K = K.replace(/{entityId}/gi, r.config.entityId || ""), K;
17362
+ const G = r.config.entityType && r.config.entityId && !r.developer, de = q.value ? Mt.form[r.config.app].credential[P.value] : Mt.form[r.config.app][P.value][G ? "forEntity" : "all"];
17363
+ let J = `${r.config.apiBaseUrl}${de}`;
17364
+ return r.config.app === "konnect" ? J = J.replace(/{controlPlaneId}/gi, r.config.controlPlaneId || "") : r.config.app === "kongManager" && (J = J.replace(/\/{workspace}/gi, r.config.workspace ? `/${r.config.workspace}` : "")), J = J.replace(/{resourceEndpoint}/gi, le.value), J = J.replace(/{id}/gi, r.pluginId), J = J.replace(/{entityType}/gi, r.config.entityType || ""), J = J.replace(/{entityId}/gi, r.config.entityId || ""), J;
17365
17365
  }), Yt = Q(() => !Object.keys(u).includes(r.pluginType)), Ft = Q(() => {
17366
17366
  const G = wt.value;
17367
- if (X.value) {
17367
+ if (q.value) {
17368
17368
  for (const de in m) {
17369
- const K = m[de];
17370
- G[K] && !G[K].id && (G[K] = { id: r.config.entityId });
17369
+ const J = m[de];
17370
+ G[J] && !G[J].id && (G[J] = { id: r.config.entityId });
17371
17371
  }
17372
17372
  delete G.created_at;
17373
17373
  }
@@ -17377,7 +17377,7 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
17377
17377
  try {
17378
17378
  R.isReadonly = !0;
17379
17379
  let G;
17380
- !X.value && !Yt.value && await H.post(mt.value, Ft.value), P.value === "create" ? G = await H.post(nt.value, Ft.value) : P.value === "edit" && (G = r.config.app === "konnect" ? await H.put(nt.value, Ft.value) : await H.patch(nt.value, Ft.value)), Object.assign(w, R.fields), n("update", G == null ? void 0 : G.data);
17380
+ !q.value && !Yt.value && await H.post(mt.value, Ft.value), P.value === "create" ? G = await H.post(nt.value, Ft.value) : P.value === "edit" && (G = r.config.app === "konnect" ? await H.put(nt.value, Ft.value) : await H.patch(nt.value, Ft.value)), Object.assign(w, R.fields), n("update", G == null ? void 0 : G.data);
17381
17381
  } catch (G) {
17382
17382
  R.errorMessage = y(G), n("error", G);
17383
17383
  } finally {
@@ -17385,45 +17385,45 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
17385
17385
  }
17386
17386
  }, Yn = Q(() => {
17387
17387
  var Ee;
17388
- const G = X.value ? (Ee = d[r.pluginType]) == null ? void 0 : Ee.schemaEndpoint : r.pluginType, de = X.value ? Mt.form[r.config.app].credentialSchema : Mt.form[r.config.app].pluginSchema;
17389
- let K = `${r.config.apiBaseUrl}${de}`;
17390
- return r.config.app === "konnect" ? K = K.replace(/{controlPlaneId}/gi, r.config.controlPlaneId || "") : r.config.app === "kongManager" && (K = K.replace(/\/{workspace}/gi, r.config.workspace ? `/${r.config.workspace}` : "")), K = K.replace(/{plugin}/gi, G), K;
17391
- }), Lt = ce(!1), Ae = ce("");
17388
+ const G = q.value ? (Ee = d[r.pluginType]) == null ? void 0 : Ee.schemaEndpoint : r.pluginType, de = q.value ? Mt.form[r.config.app].credentialSchema : Mt.form[r.config.app].pluginSchema;
17389
+ let J = `${r.config.apiBaseUrl}${de}`;
17390
+ return r.config.app === "konnect" ? J = J.replace(/{controlPlaneId}/gi, r.config.controlPlaneId || "") : r.config.app === "kongManager" && (J = J.replace(/\/{workspace}/gi, r.config.workspace ? `/${r.config.workspace}` : "")), J = J.replace(/{plugin}/gi, G), J;
17391
+ }), Lt = ue(!1), he = ue("");
17392
17392
  return ji(async () => {
17393
- var G, de, K;
17393
+ var G, de, J;
17394
17394
  Lt.value = !0;
17395
17395
  try {
17396
- if (X.value && r.config.app === "konnect") {
17396
+ if (q.value && r.config.app === "konnect") {
17397
17397
  const Ee = (G = d[r.pluginType]) == null ? void 0 : G.schemaEndpoint, Te = p[Ee];
17398
- ne.value = J("", Te, {}), Lt.value = !1;
17398
+ ne.value = X("", Te, {}), Lt.value = !1;
17399
17399
  } else {
17400
17400
  const Ee = await H.get(Yn.value), { data: Te } = Ee;
17401
17401
  if (Te)
17402
- if (X.value)
17403
- ne.value = J("", Te, {}), Lt.value = !1;
17402
+ if (q.value)
17403
+ ne.value = X("", Te, {}), Lt.value = !1;
17404
17404
  else {
17405
17405
  const _e = Te.fields.find((pe) => pe.config);
17406
17406
  Y.value = _e ? _e.config : Ee, ge();
17407
17407
  const it = (de = Te.fields.find((pe) => pe.protocols)) == null ? void 0 : de.protocols;
17408
17408
  if (it) {
17409
17409
  const { default: pe = [], elements: Re = {} } = it;
17410
- z.protocols.default = pe, (K = Re.one_of) != null && K.length && (z.protocols.values = Re.one_of.map((ue) => ({ label: ue, value: ue })));
17410
+ z.protocols.default = pe, (J = Re.one_of) != null && J.length && (z.protocols.values = Re.one_of.map((ce) => ({ label: ce, value: ce })));
17411
17411
  }
17412
- (ye.value || P.value === Qn.Create) && (ne.value = J("config", Y.value, z));
17412
+ (ye.value || P.value === Qn.Create) && (ne.value = X("config", Y.value, z));
17413
17413
  }
17414
17414
  }
17415
17415
  } catch (Ee) {
17416
- Ae.value = y(Ee), n("error:fetch-schema", Ee);
17416
+ he.value = y(Ee), n("error:fetch-schema", Ee);
17417
17417
  } finally {
17418
17418
  Lt.value = !1;
17419
17419
  }
17420
17420
  }), (G, de) => {
17421
- const K = ae("KSkeleton"), Ee = ae("KEmptyState"), Te = ae("KButton"), _e = ae("KTabs"), it = ae("KSlideout");
17421
+ const J = ae("KSkeleton"), Ee = ae("KEmptyState"), Te = ae("KButton"), _e = ae("KTabs"), it = ae("KSlideout");
17422
17422
  return v(), O("div", pR, [
17423
- Lt.value ? (v(), _(K, {
17423
+ Lt.value ? (v(), _(J, {
17424
17424
  key: 0,
17425
17425
  type: "form"
17426
- })) : Ae.value ? (v(), _(Ee, {
17426
+ })) : he.value ? (v(), _(Ee, {
17427
17427
  key: 1,
17428
17428
  "action-button-visible": !1,
17429
17429
  "data-testid": "plugin-form-schema-error",
@@ -17508,7 +17508,7 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
17508
17508
  }, null, 32),
17509
17509
  Z(dR, {
17510
17510
  config: e.config,
17511
- credential: X.value,
17511
+ credential: q.value,
17512
17512
  editing: P.value === L(Qn).Edit,
17513
17513
  "entity-map": ee.value,
17514
17514
  record: F.value || void 0,
@@ -17555,7 +17555,7 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
17555
17555
  ]);
17556
17556
  };
17557
17557
  }
17558
- }), G2 = /* @__PURE__ */ Pn(hR, [["__scopeId", "data-v-f5a82cae"]]), AR = ["alt", "src", "width"], il = /* @__PURE__ */ ze({
17558
+ }), G2 = /* @__PURE__ */ Pn(hR, [["__scopeId", "data-v-c9258d1f"]]), AR = ["alt", "src", "width"], il = /* @__PURE__ */ ze({
17559
17559
  __name: "PluginIcon",
17560
17560
  props: {
17561
17561
  name: {
@@ -17574,7 +17574,7 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
17574
17574
  }
17575
17575
  },
17576
17576
  setup(e) {
17577
- const a = new URL("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAeAAAAHgCAMAAABKCk6nAAAAhFBMVEUAAADs+fnr8PTo7fLm7PDl6e7j6+7j6O3i6Ozh5+vp9PTm7PDj6e319fXn7PHj6O739/fn7PDi6e3////o7fLj6Ozt8fbj6u7r7vPi6ezo7fL////n7PHm6/Dl6+/q8PTs8vbu9Pjv9frw9vri6ezv9fnp7/Pt8vfk6u6cpar////e4ePLpSv+AAAAHnRSTlMAKIq93/T6/f7/W8z3GbL4Hr/9AZ39OPFo/Z4FzOeuk05oAAAFJklEQVR4Ae3ThZLjyhWA4SNdWJ9BMy/KA3n/twoXBafWWYb2QPi6Vd9XKGz4q5t4QPNZHDP2n8W/4uT0bJBUZHB2ehL/pPOLy6wQlxfn8bThaJxUajwaxuMm01lSsdl0Eo+YL5LKLebxoOUqqd5qGQ9YD7IHGKzjPptt9gTbzT19n2dv8Pyw8DZ7hG0U1tkrrOM7y0H2CoNlfGO+yp5hNY8vJovsHRaT+GyaPcQ03mkiYvjnNu4za94Ljtn+vd/Efc7+/sf4YJT32L286qjE1ctd3mMUH5yP89D1m46KvLnOQ+PzeO8iD+xuOipzs8sDF/HeZZZuX3dU5/Vtli7jnZMs7fSts/AuSycRcZqlm44q3WTpNCLOsnDdUanrLJxF29zF9zZ3QaXuNuWNJtosvOyo1ssstG0ThZ+Dah3Ea+LHIvmLjoq9KHL+2DYHyanYQc6jDYzACCxwZKGjallog177DwIjMAIjMAIjsMAIjMAIjMAIjMAILDACIzACIzACI7DACIzACIzACIzAAiMwAiMwAiMwAiOwwAiMwAiMwAiMwAIjMAIjMAIjMAILjMAIjMAIjMAIjMACIzACIzACIzACC4zACIzACIzACIzAAiMwAiMwAiMwAguMwAiMwAiMwAgsMAIjMAIjMAIjMAILjMAIjMAIjMAILDACIzACI/DP/6GjGENgBEZgBBYYgREYgREYgRGYJwMjMAIjMAI3TziCMQTmaAIjMAIjMAIjMAILjMAIjMAIjMAITBa6X9CveqD7hWWhDXpNYIERGIERGIERGIEFRmAERmAERuBKCdw2R68VGIERGIERWGAERmAERmAERmCBERiBERiBERiBEVhgBEZgBEZgBEZggREYgREYgREYgRFYYARGYARGYARGYIERGIERGIERGIEFRmAERmAERuB+EPjt/ui9FRiBERiBEVhgBEZgBEZgBEZggREYgREYgREYgWshcNscvVZgBEZgBEZggREYgREYgREYgQVGYARGYARGYARGYIERGIERGIERGIEFRmAERmAERmAERmCBERiBERiBERiBBUZgBEZgBEZgBBYYgREYgREYgftB4Lf7o/dWYARGYARGYIERGIERGIERGIEFRmAE5kj9GEfkb/EfwwkWGIERGIERGIERWGAERmAERmAERmAEFhiBERiBERiBEVhgBEZgBEZgBEZggREYgREYgREYgRFYYARGYARGYARGYIERGIERGIERGIERWGAERmAERmAERmCBERiBERiBERiBBUZgBEZgBEZgBEZggREYgREYgREYgQVGYARGYARGYAQWGIERGIERGIERGIEFRmAERmAERmAEFhiBERiBERiBEZh2r3iflPn2B4HvgordPRl4H1RsL7DAfSJw/JCFq45qXWXhh3Yfhb8F1TqIt2/3ZeGf9kGl9j/F997XPcvCdUelrrNwFhGnWbrpqNJNlk4j4iRLu9cdFXq9y9JJvHOZpVuFa+x7m6XLeO8iD+xuOipzs8sDF/He+TgPXb/pqMib6zw0Po8PRnmP3curjkpcvdzlPUYR0UTE8M9t3GfWvBfHjP17v4n7nP39j/HRNOmhaXw2WSS9s5jEF/NV0jOreXxjOUh6ZbCM76yTXllHYZv0yDZKm+dJbzzfxGHhbdIT203cZz1IemCwjgcsV0n1Vst40HyRVG4xj0dMprOkYrPpJB43HI2TSo1Hw3ja+cVlUqHLi/P4J52cng2SigzOTk/iPk08oPksjhn7z+J+/wBSUhUZLUGZBgAAAABJRU5ErkJggg==", import.meta.url).href, n = e, r = ce(), s = Q(() => n.name ? bt.getPluginIconURL(n.name) : ""), l = () => {
17577
+ const a = new URL("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAeAAAAHgCAMAAABKCk6nAAAAhFBMVEUAAADs+fnr8PTo7fLm7PDl6e7j6+7j6O3i6Ozh5+vp9PTm7PDj6e319fXn7PHj6O739/fn7PDi6e3////o7fLj6Ozt8fbj6u7r7vPi6ezo7fL////n7PHm6/Dl6+/q8PTs8vbu9Pjv9frw9vri6ezv9fnp7/Pt8vfk6u6cpar////e4ePLpSv+AAAAHnRSTlMAKIq93/T6/f7/W8z3GbL4Hr/9AZ39OPFo/Z4FzOeuk05oAAAFJklEQVR4Ae3ThZLjyhWA4SNdWJ9BMy/KA3n/twoXBafWWYb2QPi6Vd9XKGz4q5t4QPNZHDP2n8W/4uT0bJBUZHB2ehL/pPOLy6wQlxfn8bThaJxUajwaxuMm01lSsdl0Eo+YL5LKLebxoOUqqd5qGQ9YD7IHGKzjPptt9gTbzT19n2dv8Pyw8DZ7hG0U1tkrrOM7y0H2CoNlfGO+yp5hNY8vJovsHRaT+GyaPcQ03mkiYvjnNu4za94Ljtn+vd/Efc7+/sf4YJT32L286qjE1ctd3mMUH5yP89D1m46KvLnOQ+PzeO8iD+xuOipzs8sDF/HeZZZuX3dU5/Vtli7jnZMs7fSts/AuSycRcZqlm44q3WTpNCLOsnDdUanrLJxF29zF9zZ3QaXuNuWNJtosvOyo1ssstG0ThZ+Dah3Ea+LHIvmLjoq9KHL+2DYHyanYQc6jDYzACCxwZKGjallog177DwIjMAIjMAIjsMAIjMAIjMAIjMAILDACIzACIzACI7DACIzACIzACIzAAiMwAiMwAiMwAiOwwAiMwAiMwAiMwAIjMAIjMAIjMAILjMAIjMAIjMAIjMACIzACIzACIzACC4zACIzACIzACIzAAiMwAiMwAiMwAguMwAiMwAiMwAgsMAIjMAIjMAIjMAILjMAIjMAIjMAILDACIzACI/DP/6GjGENgBEZgBBYYgREYgREYgRGYJwMjMAIjMAI3TziCMQTmaAIjMAIjMAIjMAILjMAIjMAIjMAITBa6X9CveqD7hWWhDXpNYIERGIERGIERGIEFRmAERmAERuBKCdw2R68VGIERGIERWGAERmAERmAERmCBERiBERiBERiBEVhgBEZgBEZgBEZggREYgREYgREYgRFYYARGYARGYARGYIERGIERGIERGIEFRmAERmAERuB+EPjt/ui9FRiBERiBEVhgBEZgBEZgBEZggREYgREYgREYgWshcNscvVZgBEZgBEZggREYgREYgREYgQVGYARGYARGYARGYIERGIERGIERGIEFRmAERmAERmAERmCBERiBERiBERiBBUZgBEZgBEZgBBYYgREYgREYgftB4Lf7o/dWYARGYARGYIERGIERGIERGIEFRmAE5kj9GEfkb/EfwwkWGIERGIERGIERWGAERmAERmAERmAEFhiBERiBERiBEVhgBEZgBEZgBEZggREYgREYgREYgRFYYARGYARGYARGYIERGIERGIERGIERWGAERmAERmAERmCBERiBERiBERiBBUZgBEZgBEZgBEZggREYgREYgREYgQVGYARGYARGYAQWGIERGIERGIERGIEFRmAERmAERmAEFhiBERiBERiBEZh2r3iflPn2B4HvgordPRl4H1RsL7DAfSJw/JCFq45qXWXhh3Yfhb8F1TqIt2/3ZeGf9kGl9j/F997XPcvCdUelrrNwFhGnWbrpqNJNlk4j4iRLu9cdFXq9y9JJvHOZpVuFa+x7m6XLeO8iD+xuOipzs8sDF/He+TgPXb/pqMib6zw0Po8PRnmP3curjkpcvdzlPUYR0UTE8M9t3GfWvBfHjP17v4n7nP39j/HRNOmhaXw2WSS9s5jEF/NV0jOreXxjOUh6ZbCM76yTXllHYZv0yDZKm+dJbzzfxGHhbdIT203cZz1IemCwjgcsV0n1Vst40HyRVG4xj0dMprOkYrPpJB43HI2TSo1Hw3ja+cVlUqHLi/P4J52cng2SigzOTk/iPk08oPksjhn7z+J+/wBSUhUZLUGZBgAAAABJRU5ErkJggg==", import.meta.url).href, n = e, r = ue(), s = Q(() => n.name ? bt.getPluginIconURL(n.name) : ""), l = () => {
17578
17578
  r.value && (r.value.src = a);
17579
17579
  };
17580
17580
  return (u, d) => (v(), O("img", {
@@ -17667,8 +17667,8 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
17667
17667
  const n = bt.usePluginMetaData(), r = a, s = e, { i18n: { t: l } } = bt.useI18n(), u = Va(), { axiosInstance: d } = ca({
17668
17668
  headers: (Yn = s.config) == null ? void 0 : Yn.requestHeaders
17669
17669
  }), p = Q(() => {
17670
- var Ae;
17671
- return ((Ae = s.config) == null ? void 0 : Ae.entityType) === "consumers";
17670
+ var he;
17671
+ return ((he = s.config) == null ? void 0 : he.entityType) === "consumers";
17672
17672
  }), A = s.config.app === "konnect" || yk({
17673
17673
  gatewayInfo: s.config.gatewayInfo,
17674
17674
  // dynamic ordering is not supported in Gateway Community Edition or before Gateway Enterprise Edition 3.0
@@ -17680,10 +17680,10 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
17680
17680
  };
17681
17681
  (Lt = s.config) != null && Lt.entityId || (y.appliedTo = { label: l("plugins.list.table_headers.applied_to"), sortable: !1 }), y.enabled = { label: l("plugins.list.table_headers.status"), searchable: !0, sortable: !0 }, A && (y.ordering = { label: l("plugins.list.table_headers.ordering"), sortable: !0 }), y.tags = { label: l("plugins.list.table_headers.tags"), sortable: !1 };
17682
17682
  const k = y, S = Q(() => {
17683
- var G, de, K, Ee;
17684
- let Ae = s.config.entityType ? `${s.config.apiBaseUrl}${Mt.list[s.config.app].forEntity}` : `${s.config.apiBaseUrl}${Mt.list[s.config.app].all}`;
17685
- return s.config.app === "konnect" ? Ae = Ae.replace(/{controlPlaneId}/gi, ((G = s.config) == null ? void 0 : G.controlPlaneId) || "") : s.config.app === "kongManager" && (Ae = Ae.replace(/\/{workspace}/gi, (de = s.config) != null && de.workspace ? `/${s.config.workspace}` : "")), Ae.replace(/{entityType}/gi, ((K = s.config) == null ? void 0 : K.entityType) || "").replace(/{entityId}/gi, ((Ee = s.config) == null ? void 0 : Ee.entityId) || "");
17686
- }), H = ce(""), N = Q(() => s.config.app === "konnect" || s.config.isExactMatch ? {
17683
+ var G, de, J, Ee;
17684
+ let he = s.config.entityType ? `${s.config.apiBaseUrl}${Mt.list[s.config.app].forEntity}` : `${s.config.apiBaseUrl}${Mt.list[s.config.app].all}`;
17685
+ return s.config.app === "konnect" ? he = he.replace(/{controlPlaneId}/gi, ((G = s.config) == null ? void 0 : G.controlPlaneId) || "") : s.config.app === "kongManager" && (he = he.replace(/\/{workspace}/gi, (de = s.config) != null && de.workspace ? `/${s.config.workspace}` : "")), he.replace(/{entityType}/gi, ((J = s.config) == null ? void 0 : J.entityType) || "").replace(/{entityId}/gi, ((Ee = s.config) == null ? void 0 : Ee.entityId) || "");
17686
+ }), H = ue(""), N = Q(() => s.config.app === "konnect" || s.config.isExactMatch ? {
17687
17687
  isExactMatch: !0,
17688
17688
  fields: {
17689
17689
  name: y.name,
@@ -17698,23 +17698,23 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
17698
17698
  instance_name: { label: l("plugins.list.table_headers.instance_name"), searchable: !0 }
17699
17699
  },
17700
17700
  schema: s.config.filterSchema
17701
- }), P = ce(1), { fetcher: ne, fetcherState: X } = vk(s.config, S.value), F = () => {
17701
+ }), P = ue(1), { fetcher: ne, fetcherState: q } = vk(s.config, S.value), F = () => {
17702
17702
  H.value = "";
17703
17703
  }, Y = () => {
17704
17704
  P.value++;
17705
- }, B = ce(null), w = (Ae) => {
17706
- var de, K, Ee, Te;
17705
+ }, B = ue(null), w = (he) => {
17706
+ var de, J, Ee, Te;
17707
17707
  const G = [];
17708
- return (de = Ae.route) != null && de.id && G.push({ type: "route", badgeText: l("plugins.list.table_headers.applied_to_badges.route") }), (K = Ae.service) != null && K.id && G.push({ type: "service", badgeText: l("plugins.list.table_headers.applied_to_badges.service") }), (Ee = Ae.consumer) != null && Ee.id && G.push({ type: "consumer", badgeText: l("plugins.list.table_headers.applied_to_badges.consumer") }), (Te = Ae.consumer_group) != null && Te.id && G.push({ type: "consumer_group", badgeText: l("plugins.list.table_headers.applied_to_badges.consumer_group") }), G.length ? G : [{ type: null, badgeText: l("plugins.list.table_headers.applied_to_badges.global") }];
17709
- }, R = async (Ae, G) => {
17708
+ return (de = he.route) != null && de.id && G.push({ type: "route", badgeText: l("plugins.list.table_headers.applied_to_badges.route") }), (J = he.service) != null && J.id && G.push({ type: "service", badgeText: l("plugins.list.table_headers.applied_to_badges.service") }), (Ee = he.consumer) != null && Ee.id && G.push({ type: "consumer", badgeText: l("plugins.list.table_headers.applied_to_badges.consumer") }), (Te = he.consumer_group) != null && Te.id && G.push({ type: "consumer_group", badgeText: l("plugins.list.table_headers.applied_to_badges.consumer_group") }), G.length ? G : [{ type: null, badgeText: l("plugins.list.table_headers.applied_to_badges.global") }];
17709
+ }, R = async (he, G) => {
17710
17710
  var de;
17711
- return Ae === null ? !1 : await ((de = s.canRetrieveScopedEntity) == null ? void 0 : de.call(s, Ae, G.id));
17712
- }, D = (Ae, G) => {
17713
- var K, Ee, Te, _e, it;
17711
+ return he === null ? !1 : await ((de = s.canRetrieveScopedEntity) == null ? void 0 : de.call(s, he, G.id));
17712
+ }, D = (he, G) => {
17713
+ var J, Ee, Te, _e, it;
17714
17714
  let de = null;
17715
- switch (Ae) {
17715
+ switch (he) {
17716
17716
  case "route":
17717
- de = (K = G.route) == null ? void 0 : K.id;
17717
+ de = (J = G.route) == null ? void 0 : J.id;
17718
17718
  break;
17719
17719
  case "service":
17720
17720
  de = (Ee = G.service) == null ? void 0 : Ee.id;
@@ -17726,104 +17726,104 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
17726
17726
  de = (_e = G.consumer_group) == null ? void 0 : _e.id;
17727
17727
  break;
17728
17728
  }
17729
- de && ((it = s.config) != null && it.getScopedEntityViewRoute) && u.push(s.config.getScopedEntityViewRoute(Ae, de));
17730
- }, re = ce(!1), be = ce(null), ee = Q(() => {
17731
- const Ae = {
17729
+ de && ((it = s.config) != null && it.getScopedEntityViewRoute) && u.push(s.config.getScopedEntityViewRoute(he, de));
17730
+ }, re = ue(!1), be = ue(null), ee = Q(() => {
17731
+ const he = {
17732
17732
  action: "disable",
17733
17733
  id: "",
17734
17734
  name: ""
17735
17735
  };
17736
17736
  if (be.value) {
17737
- const { enabled: G, id: de, name: K } = be.value;
17738
- Ae.action = G ? "disable" : "enable", Ae.id = de, Ae.name = n.getDisplayName(K) || de;
17737
+ const { enabled: G, id: de, name: J } = be.value;
17738
+ he.action = G ? "disable" : "enable", he.id = de, he.name = n.getDisplayName(J) || de;
17739
17739
  }
17740
- return Ae;
17741
- }), z = (Ae) => {
17742
- re.value = !0, be.value = Ae;
17740
+ return he;
17741
+ }), z = (he) => {
17742
+ re.value = !0, be.value = he;
17743
17743
  }, le = () => {
17744
17744
  re.value = !1, be.value = null;
17745
17745
  }, me = async () => {
17746
- var K, Ee, Te, _e, it, pe, Re, ue;
17747
- if (!await ((K = s.canEdit) == null ? void 0 : K.call(s, be.value)) || !be.value)
17746
+ var J, Ee, Te, _e, it, pe, Re, ce;
17747
+ if (!await ((J = s.canEdit) == null ? void 0 : J.call(s, be.value)) || !be.value)
17748
17748
  return;
17749
17749
  let G = `${s.config.apiBaseUrl}${(it = Mt.item[s.config.app]) == null ? void 0 : it[(Ee = s.config) != null && Ee.entityType ? "forEntity" : "all"].replace(/{entityType}/gi, ((Te = s.config) == null ? void 0 : Te.entityType) || "").replace(/{entityId}/gi, ((_e = s.config) == null ? void 0 : _e.entityId) || "")}`.replace(/{id}/gi, be.value.id || "");
17750
17750
  s.config.app === "konnect" ? G = G.replace(/{controlPlaneId}/gi, ((pe = s.config) == null ? void 0 : pe.controlPlaneId) || "") : s.config.app === "kongManager" && (G = G.replace(/\/{workspace}/gi, (Re = s.config) != null && Re.workspace ? `/${s.config.workspace}` : ""));
17751
17751
  const de = !be.value.enabled;
17752
17752
  try {
17753
- const { data: he } = ((ue = s.config) == null ? void 0 : ue.app) === "konnect" ? await d.put(G, { ...be.value, enabled: de }) : await d.patch(G, { ...be.value, enabled: de });
17754
- r("toggle-enabled", de, he);
17755
- } catch (he) {
17756
- r("error", he);
17753
+ const { data: Ae } = ((ce = s.config) == null ? void 0 : ce.app) === "konnect" ? await d.put(G, { ...be.value, enabled: de }) : await d.patch(G, { ...be.value, enabled: de });
17754
+ r("toggle-enabled", de, Ae);
17755
+ } catch (Ae) {
17756
+ r("error", Ae);
17757
17757
  }
17758
17758
  be.value.enabled = de;
17759
- }, we = (Ae, G) => {
17760
- const de = Ae.id;
17759
+ }, we = (he, G) => {
17760
+ const de = he.id;
17761
17761
  if (!G(de)) {
17762
17762
  r("copy:error", {
17763
- entity: Ae,
17763
+ entity: he,
17764
17764
  field: "id",
17765
17765
  message: l("errors.copy")
17766
17766
  });
17767
17767
  return;
17768
17768
  }
17769
17769
  r("copy:success", {
17770
- entity: Ae,
17770
+ entity: he,
17771
17771
  field: "id",
17772
17772
  message: l("copy.success", { val: de })
17773
17773
  });
17774
- }, J = (Ae, G) => {
17775
- const de = JSON.stringify(Ae);
17774
+ }, X = (he, G) => {
17775
+ const de = JSON.stringify(he);
17776
17776
  if (!G(de)) {
17777
17777
  r("copy:error", {
17778
- entity: Ae,
17778
+ entity: he,
17779
17779
  message: l("errors.copy")
17780
17780
  });
17781
17781
  return;
17782
17782
  }
17783
17783
  r("copy:success", {
17784
- entity: Ae,
17784
+ entity: he,
17785
17785
  message: l("copy.success_brief")
17786
17786
  });
17787
- }, ge = async (Ae) => {
17787
+ }, ge = async (he) => {
17788
17788
  var de;
17789
- await ((de = s.canRetrieve) == null ? void 0 : de.call(s, Ae)) && u.push(s.config.getViewRoute(Ae));
17790
- }, Se = (Ae) => ({
17789
+ await ((de = s.canRetrieve) == null ? void 0 : de.call(s, he)) && u.push(s.config.getViewRoute(he));
17790
+ }, Se = (he) => ({
17791
17791
  label: l("actions.view"),
17792
- to: s.config.getViewRoute(Ae)
17793
- }), Be = (Ae) => ({
17792
+ to: s.config.getViewRoute(he)
17793
+ }), Be = (he) => ({
17794
17794
  label: l("actions.edit"),
17795
- to: s.config.getEditRoute(Ae)
17796
- }), ye = (Ae) => ({
17795
+ to: s.config.getEditRoute(he)
17796
+ }), ye = (he) => ({
17797
17797
  label: l("actions.configure_dynamic_ordering"),
17798
- to: s.config.getConfigureDynamicOrderingRoute(Ae)
17799
- }), He = ce(void 0), wt = ce(!1), rt = ce(!1), En = ce(""), _t = Ak(s.config, S.value), mt = (Ae) => {
17800
- He.value = Ae, wt.value = !0;
17798
+ to: s.config.getConfigureDynamicOrderingRoute(he)
17799
+ }), He = ue(void 0), wt = ue(!1), rt = ue(!1), En = ue(""), _t = Ak(s.config, S.value), mt = (he) => {
17800
+ He.value = he, wt.value = !0;
17801
17801
  }, nt = () => {
17802
17802
  wt.value = !1;
17803
17803
  }, Yt = async () => {
17804
- var Ae, G, de;
17805
- if ((Ae = He.value) != null && Ae.id) {
17804
+ var he, G, de;
17805
+ if ((he = He.value) != null && he.id) {
17806
17806
  rt.value = !0;
17807
17807
  try {
17808
17808
  await d.delete(_t(He.value.id)), rt.value = !1, wt.value = !1, P.value++, r("delete:success", He.value);
17809
- } catch (K) {
17810
- En.value = ((de = (G = K.response) == null ? void 0 : G.data) == null ? void 0 : de.message) || K.message || l("errors.delete"), r("error", K);
17809
+ } catch (J) {
17810
+ En.value = ((de = (G = J.response) == null ? void 0 : G.data) == null ? void 0 : de.message) || J.message || l("errors.delete"), r("error", J);
17811
17811
  } finally {
17812
17812
  rt.value = !1;
17813
17813
  }
17814
17814
  }
17815
- }, Ft = ce(!0);
17816
- un(X, (Ae) => {
17817
- var G, de, K, Ee;
17818
- if (Array.isArray((G = Ae == null ? void 0 : Ae.response) == null ? void 0 : G.data) && (Ft.value = Ae.response.data.length > 0), Ae.status === Ti.Error) {
17815
+ }, Ft = ue(!0);
17816
+ un(q, (he) => {
17817
+ var G, de, J, Ee;
17818
+ if (Array.isArray((G = he == null ? void 0 : he.response) == null ? void 0 : G.data) && (Ft.value = he.response.data.length > 0), he.status === Ti.Error) {
17819
17819
  B.value = {
17820
17820
  title: l("errors.general")
17821
- }, (Ee = (K = (de = Ae.error) == null ? void 0 : de.response) == null ? void 0 : K.data) != null && Ee.message && (B.value.message = Ae.error.response.data.message), r("error", Ae.error);
17821
+ }, (Ee = (J = (de = he.error) == null ? void 0 : de.response) == null ? void 0 : J.data) != null && Ee.message && (B.value.message = he.error.response.data.message), r("error", he.error);
17822
17822
  return;
17823
17823
  }
17824
17824
  B.value = null;
17825
17825
  });
17826
- const ei = ce({
17826
+ const ei = ue({
17827
17827
  ctaPath: s.config.createRoute,
17828
17828
  ctaText: void 0,
17829
17829
  message: `${l("plugins.list.empty_state.description")}${s.config.additionMessageForEmptyState ? ` ${s.config.additionMessageForEmptyState}` : ""}`,
@@ -17831,8 +17831,8 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
17831
17831
  });
17832
17832
  return ji(async () => {
17833
17833
  await s.canCreate() && (ei.value.title = l("plugins.list.empty_state.title"), ei.value.ctaText = l("actions.create"));
17834
- }), (Ae, G) => {
17835
- const de = ae("KButton"), K = ae("KBadge"), Ee = ae("KTruncate"), Te = ae("KInputSwitch"), _e = ae("KDropdownItem"), it = ae("KClipboardProvider");
17834
+ }), (he, G) => {
17835
+ const de = ae("KButton"), J = ae("KBadge"), Ee = ae("KTruncate"), Te = ae("KInputSwitch"), _e = ae("KDropdownItem"), it = ae("KClipboardProvider");
17836
17836
  return v(), O("div", vR, [
17837
17837
  Z(L(ZE), {
17838
17838
  "cache-identifier": e.cacheIdentifier,
@@ -17912,10 +17912,10 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
17912
17912
  "auth-function": () => R(Re.type, pe),
17913
17913
  "force-show": ""
17914
17914
  }, {
17915
- default: T(({ isAllowed: ue }) => [
17916
- Z(K, {
17917
- class: Fe(ue || "disabled"),
17918
- onClick: gi((he) => ue && Re.type && D(Re.type, pe), ["stop"])
17915
+ default: T(({ isAllowed: ce }) => [
17916
+ Z(J, {
17917
+ class: Fe(ce || "disabled"),
17918
+ onClick: gi((Ae) => ce && Re.type && D(Re.type, pe), ["stop"])
17919
17919
  }, {
17920
17920
  default: T(() => [
17921
17921
  Oe(te(Re.badgeText), 1)
@@ -17935,7 +17935,7 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
17935
17935
  "force-show": ""
17936
17936
  }, {
17937
17937
  default: T(({ isAllowed: Re }) => {
17938
- var ue, he;
17938
+ var ce, Ae;
17939
17939
  return [
17940
17940
  M("div", {
17941
17941
  onClick: G[1] || (G[1] = gi(() => {
@@ -17943,7 +17943,7 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
17943
17943
  }, [
17944
17944
  Z(Te, {
17945
17945
  disabled: !Re,
17946
- "disabled-tooltip-text": !Re && ((he = (ue = e.config).getToggleDisabledTooltip) == null ? void 0 : he.call(ue, pe)) || void 0,
17946
+ "disabled-tooltip-text": !Re && ((Ae = (ce = e.config).getToggleDisabledTooltip) == null ? void 0 : Ae.call(ce, pe)) || void 0,
17947
17947
  "label-before": "",
17948
17948
  "model-value": pe.enabled,
17949
17949
  onClick: gi((vt) => Re && z(pe), ["stop", "prevent"])
@@ -17960,7 +17960,7 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
17960
17960
  }, 1032, ["auth-function"])
17961
17961
  ]),
17962
17962
  ordering: T(({ rowValue: pe }) => [
17963
- Z(K, {
17963
+ Z(J, {
17964
17964
  appearance: pe ? "warning" : "info"
17965
17965
  }, {
17966
17966
  default: T(() => [
@@ -17972,7 +17972,7 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
17972
17972
  tags: T(({ rowValue: pe }) => [
17973
17973
  (pe == null ? void 0 : pe.length) > 0 ? (v(), _(Ee, { key: 0 }, {
17974
17974
  default: T(() => [
17975
- (v(!0), O(De, null, qe(pe, (Re) => (v(), _(K, {
17975
+ (v(!0), O(De, null, qe(pe, (Re) => (v(), _(J, {
17976
17976
  key: Re,
17977
17977
  onClick: G[2] || (G[2] = gi(() => {
17978
17978
  }, ["stop"]))
@@ -17991,7 +17991,7 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
17991
17991
  default: T(({ copyToClipboard: Re }) => [
17992
17992
  Z(_e, {
17993
17993
  "data-testid": "action-entity-copy-id",
17994
- onClick: (ue) => we(pe, Re)
17994
+ onClick: (ce) => we(pe, Re)
17995
17995
  }, {
17996
17996
  default: T(() => [
17997
17997
  Oe(te(L(l)("actions.copy_id")), 1)
@@ -18005,7 +18005,7 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
18005
18005
  default: T(({ copyToClipboard: Re }) => [
18006
18006
  Z(_e, {
18007
18007
  "data-testid": "action-entity-copy-json",
18008
- onClick: (ue) => J(pe, Re)
18008
+ onClick: (ce) => X(pe, Re)
18009
18009
  }, {
18010
18010
  default: T(() => [
18011
18011
  Oe(te(L(l)("actions.copy_json")), 1)
@@ -18285,15 +18285,15 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
18285
18285
  }, k = Q(() => r.plugin.id === "custom-plugin-create"), S = Q(() => r.config.app === "konnect" && r.plugin.group === se.CUSTOM_PLUGINS), H = () => {
18286
18286
  r.config.app === "konnect" && n("custom-plugin-delete");
18287
18287
  }, N = (ne) => {
18288
- const X = r.config;
18289
- r.config.app === "konnect" && typeof X.getCustomEditRoute == "function" && X.getCustomEditRoute && s.push(X.getCustomEditRoute(ne));
18288
+ const q = r.config;
18289
+ r.config.app === "konnect" && typeof q.getCustomEditRoute == "function" && q.getCustomEditRoute && s.push(q.getCustomEditRoute(ne));
18290
18290
  }, P = () => {
18291
18291
  if (!d.value && r.config.app === "konnect") {
18292
18292
  const ne = r.config;
18293
18293
  k.value && ne.createCustomRoute ? s.push(ne.createCustomRoute) : S.value && A();
18294
18294
  }
18295
18295
  };
18296
- return (ne, X) => {
18296
+ return (ne, q) => {
18297
18297
  const F = ae("KButton"), Y = ae("KDropdownItem"), B = ae("KDropdownMenu"), w = ae("KTooltip");
18298
18298
  return v(), _(w, {
18299
18299
  "position-fixed": "",
@@ -18304,7 +18304,7 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
18304
18304
  class: Fe(["plugin-select-card", { disabled: d.value }]),
18305
18305
  "data-testid": `${e.plugin.id}-card`,
18306
18306
  role: "button",
18307
- onClick: X[1] || (X[1] = (R) => d.value || S.value ? void 0 : b())
18307
+ onClick: q[1] || (q[1] = (R) => d.value || S.value ? void 0 : b())
18308
18308
  }, [
18309
18309
  M("div", zR, [
18310
18310
  M("div", KR, [
@@ -18335,7 +18335,7 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
18335
18335
  e.canDeleteCustomPlugin ? (v(), _(Y, {
18336
18336
  key: 0,
18337
18337
  "data-testid": "edit-plugin-schema",
18338
- onClick: X[0] || (X[0] = gi((R) => N(e.plugin.name), ["stop"]))
18338
+ onClick: q[0] || (q[0] = gi((R) => N(e.plugin.name), ["stop"]))
18339
18339
  }, {
18340
18340
  default: T(() => [
18341
18341
  Oe(te(L(l)("actions.edit")), 1)
@@ -18412,15 +18412,15 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
18412
18412
  }), p = Q(() => {
18413
18413
  var H;
18414
18414
  return y.value ? l("delete.plugin_schema_in_use_title") : l("delete.title", { name: ((H = n.plugin) == null ? void 0 : H.name) || l("delete.custom_plugin") });
18415
- }), A = ce(!1), b = ce(""), y = ce(!1), k = async () => {
18416
- var H, N, P, ne, X;
18415
+ }), A = ue(!1), b = ue(""), y = ue(!1), k = async () => {
18416
+ var H, N, P, ne, q;
18417
18417
  if (A.value = !0, b.value = "", !(!((H = n.plugin) != null && H.name) || ((N = n.config) == null ? void 0 : N.app) !== "konnect"))
18418
18418
  try {
18419
18419
  const F = `${n.config.apiBaseUrl}/v2/control-planes/${n.config.controlPlaneId}/core-entities/plugin-schemas/${(P = n.plugin) == null ? void 0 : P.name}`;
18420
18420
  await d.delete(F), r("proceed");
18421
18421
  } catch (F) {
18422
18422
  const { response: Y } = F;
18423
- (Y == null ? void 0 : Y.status) === 400 && ((X = (ne = Y.data) == null ? void 0 : ne.message) != null && X.includes("plugin schema is currently in use")) ? y.value = !0 : b.value = u(F);
18423
+ (Y == null ? void 0 : Y.status) === 400 && ((q = (ne = Y.data) == null ? void 0 : ne.message) != null && q.includes("plugin schema is currently in use")) ? y.value = !0 : b.value = u(F);
18424
18424
  } finally {
18425
18425
  A.value = !1;
18426
18426
  }
@@ -18439,7 +18439,7 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
18439
18439
  "need-confirm": "",
18440
18440
  title: p.value,
18441
18441
  visible: "",
18442
- onCancel: N[0] || (N[0] = (X) => H.$emit("closed")),
18442
+ onCancel: N[0] || (N[0] = (q) => H.$emit("closed")),
18443
18443
  onProceed: k
18444
18444
  }, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title"])) : e.plugin ? (v(), _(ne, {
18445
18445
  key: 1,
@@ -18448,7 +18448,7 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
18448
18448
  "data-testid": "delete-custom-plugin-schema-modal",
18449
18449
  title: p.value,
18450
18450
  visible: "",
18451
- onCancel: N[2] || (N[2] = (X) => H.$emit("closed"))
18451
+ onCancel: N[2] || (N[2] = (q) => H.$emit("closed"))
18452
18452
  }, {
18453
18453
  default: T(() => [
18454
18454
  M("div", null, [
@@ -18469,7 +18469,7 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
18469
18469
  appearance: "tertiary",
18470
18470
  class: "cancel-button",
18471
18471
  "data-testid": "delete-custom-plugin-form-cancel",
18472
- onClick: N[1] || (N[1] = (X) => H.$emit("closed"))
18472
+ onClick: N[1] || (N[1] = (q) => H.$emit("closed"))
18473
18473
  }, {
18474
18474
  default: T(() => [
18475
18475
  Oe(te(L(l)("actions.cancel")), 1)
@@ -18537,7 +18537,7 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
18537
18537
  },
18538
18538
  emits: ["plugin-clicked", "revalidate", "delete:success"],
18539
18539
  setup(e, { emit: a }) {
18540
- const n = e, r = a, { i18n: { t: s } } = bt.useI18n(), { getPluginCards: l } = bt.usePluginHelpers(), u = ce(!0), d = (H) => {
18540
+ const n = e, r = a, { i18n: { t: s } } = bt.useI18n(), { getPluginCards: l } = bt.usePluginHelpers(), u = ue(!0), d = (H) => {
18541
18541
  r("plugin-clicked", H);
18542
18542
  }, p = Q(() => {
18543
18543
  if (n.config.app === "kongManager")
@@ -18554,7 +18554,7 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
18554
18554
  var P, ne;
18555
18555
  const H = (P = l("all", p.value, n.pluginsPerRow)) == null ? void 0 : P.length, N = (ne = l("hidden", p.value, n.pluginsPerRow)) == null ? void 0 : ne.length;
18556
18556
  return H > n.pluginsPerRow ? s("plugins.select.view_more", { count: N }) : s("plugins.select.view_less");
18557
- }), b = ce(!1), y = ce(null), k = (H) => {
18557
+ }), b = ue(!1), y = ue(null), k = (H) => {
18558
18558
  b.value = !0, y.value = {
18559
18559
  id: H.id,
18560
18560
  name: H.name
@@ -18569,7 +18569,7 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
18569
18569
  p.value.length ? (v(), _(ne, {
18570
18570
  key: 1,
18571
18571
  modelValue: u.value,
18572
- "onUpdate:modelValue": N[0] || (N[0] = (X) => u.value = X),
18572
+ "onUpdate:modelValue": N[0] || (N[0] = (q) => u.value = q),
18573
18573
  class: "custom-plugins-collapse",
18574
18574
  "data-testid": `${L(se).CUSTOM_PLUGINS}-collapse`,
18575
18575
  title: L(se).CUSTOM_PLUGINS,
@@ -18577,27 +18577,27 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
18577
18577
  }, mi({
18578
18578
  "visible-content": T(() => [
18579
18579
  M("div", i2, [
18580
- (v(!0), O(De, null, qe(L(l)("visible", p.value, e.pluginsPerRow), (X, F) => (v(), _(Qr, {
18580
+ (v(!0), O(De, null, qe(L(l)("visible", p.value, e.pluginsPerRow), (q, F) => (v(), _(Qr, {
18581
18581
  key: `plugin-card-${F}`,
18582
18582
  "can-delete-custom-plugin": e.canDeleteCustomPlugin,
18583
18583
  "can-edit-custom-plugin": e.canEditCustomPlugin,
18584
18584
  config: e.config,
18585
18585
  "navigate-on-click": e.navigateOnClick,
18586
- plugin: X,
18587
- onCustomPluginDelete: (Y) => k(X),
18586
+ plugin: q,
18587
+ onCustomPluginDelete: (Y) => k(q),
18588
18588
  onPluginClicked: d
18589
18589
  }, null, 8, ["can-delete-custom-plugin", "can-edit-custom-plugin", "config", "navigate-on-click", "plugin", "onCustomPluginDelete"]))), 128))
18590
18590
  ])
18591
18591
  ]),
18592
18592
  default: T(() => [
18593
18593
  M("div", a2, [
18594
- (v(!0), O(De, null, qe(L(l)("hidden", p.value, e.pluginsPerRow), (X, F) => (v(), _(Qr, {
18594
+ (v(!0), O(De, null, qe(L(l)("hidden", p.value, e.pluginsPerRow), (q, F) => (v(), _(Qr, {
18595
18595
  key: `plugin-card-${F}`,
18596
18596
  "can-delete-custom-plugin": e.canDeleteCustomPlugin,
18597
18597
  "can-edit-custom-plugin": e.canEditCustomPlugin,
18598
18598
  config: e.config,
18599
18599
  "navigate-on-click": e.navigateOnClick,
18600
- plugin: X,
18600
+ plugin: q,
18601
18601
  onPluginClicked: d
18602
18602
  }, null, 8, ["can-delete-custom-plugin", "can-edit-custom-plugin", "config", "navigate-on-click", "plugin"]))), 128))
18603
18603
  ])
@@ -18630,7 +18630,7 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
18630
18630
  config: e.config,
18631
18631
  plugin: y.value,
18632
18632
  onClosed: S,
18633
- onProceed: N[1] || (N[1] = (X) => S(!0))
18633
+ onProceed: N[1] || (N[1] = (q) => S(!0))
18634
18634
  }, null, 8, ["config", "plugin"])) : oe("", !0)
18635
18635
  ]);
18636
18636
  };
@@ -18669,7 +18669,7 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
18669
18669
  },
18670
18670
  emits: ["plugin-clicked"],
18671
18671
  setup(e, { emit: a }) {
18672
- const n = e, r = a, { i18n: { t: s } } = bt.useI18n(), { getPluginCards: l } = bt.usePluginHelpers(), u = ce(wk), d = (y) => {
18672
+ const n = e, r = a, { i18n: { t: s } } = bt.useI18n(), { getPluginCards: l } = bt.usePluginHelpers(), u = ue(wk), d = (y) => {
18673
18673
  r("plugin-clicked", y);
18674
18674
  }, p = Q(() => {
18675
18675
  const y = JSON.parse(JSON.stringify(n.pluginList));
@@ -18712,8 +18712,8 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
18712
18712
  }, mi({
18713
18713
  "visible-content": T(() => [
18714
18714
  M("div", c2, [
18715
- (v(!0), O(De, null, qe(L(l)("visible", p.value[N] || [], e.pluginsPerRow), (ne, X) => (v(), _(Qr, {
18716
- key: `plugin-card-${X}`,
18715
+ (v(!0), O(De, null, qe(L(l)("visible", p.value[N] || [], e.pluginsPerRow), (ne, q) => (v(), _(Qr, {
18716
+ key: `plugin-card-${q}`,
18717
18717
  config: e.config,
18718
18718
  "navigate-on-click": e.navigateOnClick,
18719
18719
  plugin: ne,
@@ -18723,8 +18723,8 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
18723
18723
  ]),
18724
18724
  default: T(() => [
18725
18725
  M("div", d2, [
18726
- (v(!0), O(De, null, qe(L(l)("hidden", p.value[N] || [], e.pluginsPerRow), (ne, X) => (v(), _(Qr, {
18727
- key: `plugin-card-${X}`,
18726
+ (v(!0), O(De, null, qe(L(l)("hidden", p.value[N] || [], e.pluginsPerRow), (ne, q) => (v(), _(Qr, {
18727
+ key: `plugin-card-${q}`,
18728
18728
  config: e.config,
18729
18729
  "navigate-on-click": e.navigateOnClick,
18730
18730
  plugin: ne,
@@ -18828,15 +18828,15 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
18828
18828
  emits: ["loading", "plugin-clicked", "delete-custom:success"],
18829
18829
  setup(e, { emit: a }) {
18830
18830
  var we;
18831
- const n = e, r = a, s = i1(), l = Va(), { i18n: { t: u } } = bt.useI18n(), { pluginMetaData: d } = bt.usePluginMetaData(), { getMessageFromError: p } = is(), { sortAlpha: A, objectsAreEqual: b } = as(), y = ce(""), k = ce(!0), S = ce(!1), H = ce(""), N = ce([]), P = ce({}), ne = ce([]), { axiosInstance: X } = ca({
18831
+ const n = e, r = a, s = i1(), l = Va(), { i18n: { t: u } } = bt.useI18n(), { pluginMetaData: d } = bt.usePluginMetaData(), { getMessageFromError: p } = is(), { sortAlpha: A, objectsAreEqual: b } = as(), y = ue(""), k = ue(!0), S = ue(!1), H = ue(""), N = ue([]), P = ue({}), ne = ue([]), { axiosInstance: q } = ca({
18832
18832
  headers: n.config.requestHeaders
18833
18833
  }), F = Q(() => {
18834
18834
  var Se;
18835
18835
  if (!P.value)
18836
18836
  return {};
18837
- const J = y.value.toLowerCase(), ge = JSON.parse(JSON.stringify(P.value));
18837
+ const X = y.value.toLowerCase(), ge = JSON.parse(JSON.stringify(P.value));
18838
18838
  for (const Be in P.value) {
18839
- const ye = ((Se = P.value[Be]) == null ? void 0 : Se.filter((He) => He.name.toLowerCase().includes(J) || He.id.toLowerCase().includes(J) || He.group.toLowerCase().includes(J))) || [];
18839
+ const ye = ((Se = P.value[Be]) == null ? void 0 : Se.filter((He) => He.name.toLowerCase().includes(X) || He.id.toLowerCase().includes(X) || He.group.toLowerCase().includes(X))) || [];
18840
18840
  ye.length ? ge[Be] = ye : delete ge[Be];
18841
18841
  }
18842
18842
  return ge;
@@ -18849,12 +18849,12 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
18849
18849
  hash: "#custom",
18850
18850
  title: u("plugins.select.tabs.custom.title")
18851
18851
  }
18852
- ] : [], R = ce(w.length && ((s == null ? void 0 : s.hash) || ((we = w[0]) == null ? void 0 : we.hash)) || ""), D = () => [.../* @__PURE__ */ new Set(
18852
+ ] : [], R = ue(w.length && ((s == null ? void 0 : s.hash) || ((we = w[0]) == null ? void 0 : we.hash)) || ""), D = () => [.../* @__PURE__ */ new Set(
18853
18853
  [
18854
18854
  ...Object.keys({ ...n.availableOnServer ? {} : d }),
18855
18855
  ...N.value
18856
18856
  ]
18857
- )].filter((J) => !n.ignoredPlugins.includes(J)).filter((J) => n.config.entityType && (n.config.entityType === "services" && d[J] && !d[J].scope.includes(m.SERVICE) || n.config.entityType === "routes" && d[J] && !d[J].scope.includes(m.ROUTE) || n.config.entityType === "consumer_groups" && d[J] && !d[J].scope.includes(m.CONSUMER_GROUP) || n.config.entityType === "consumers" && d[J] && !d[J].scope.includes(m.CONSUMER)) ? !1 : J).reduce((J, ge) => {
18857
+ )].filter((X) => !n.ignoredPlugins.includes(X)).filter((X) => n.config.entityType && (n.config.entityType === "services" && d[X] && !d[X].scope.includes(m.SERVICE) || n.config.entityType === "routes" && d[X] && !d[X].scope.includes(m.ROUTE) || n.config.entityType === "consumer_groups" && d[X] && !d[X].scope.includes(m.CONSUMER_GROUP) || n.config.entityType === "consumers" && d[X] && !d[X].scope.includes(m.CONSUMER)) ? !1 : X).reduce((X, ge) => {
18858
18858
  var wt;
18859
18859
  const Se = d[ge] && d[ge].name || ge, Be = {
18860
18860
  ...d[ge],
@@ -18866,55 +18866,55 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
18866
18866
  };
18867
18867
  n.disabledPlugins && (Be.disabledMessage = n.disabledPlugins[ge]);
18868
18868
  const ye = Be.group || u("plugins.select.misc_plugins");
18869
- let He = J[ye];
18870
- return He || (He = []), He.push(Be), He.sort(A("name")), J[ye] = He, J;
18869
+ let He = X[ye];
18870
+ return He || (He = []), He.push(Be), He.sort(A("name")), X[ye] = He, X;
18871
18871
  }, {}), re = Q(() => {
18872
18872
  var ge;
18873
- let J = `${n.config.apiBaseUrl}${Mt.select[n.config.app].availablePlugins}`;
18874
- return n.config.app === "konnect" ? J = J.replace(/{controlPlaneId}/gi, n.config.controlPlaneId || "") : n.config.app === "kongManager" && (J = ((ge = n.config.gatewayInfo) == null ? void 0 : ge.edition) === "community" ? `${n.config.apiBaseUrl}${Mt.select[n.config.app].availablePluginsForOss}` : J.replace(/\/{workspace}/gi, n.config.workspace ? `/${n.config.workspace}` : "")), J;
18873
+ let X = `${n.config.apiBaseUrl}${Mt.select[n.config.app].availablePlugins}`;
18874
+ return n.config.app === "konnect" ? X = X.replace(/{controlPlaneId}/gi, n.config.controlPlaneId || "") : n.config.app === "kongManager" && (X = ((ge = n.config.gatewayInfo) == null ? void 0 : ge.edition) === "community" ? `${n.config.apiBaseUrl}${Mt.select[n.config.app].availablePluginsForOss}` : X.replace(/\/{workspace}/gi, n.config.workspace ? `/${n.config.workspace}` : "")), X;
18875
18875
  }), be = Q(() => {
18876
18876
  if (n.config.entityType && n.config.entityId) {
18877
- let J = `${n.config.apiBaseUrl}${Mt.list[n.config.app].forEntity}`;
18878
- return n.config.app === "konnect" ? J = J.replace(/{controlPlaneId}/gi, n.config.controlPlaneId || "") : n.config.app === "kongManager" && (J = J.replace(/\/{workspace}/gi, n.config.workspace ? `/${n.config.workspace}` : "")), J.replace(/{entityType}/gi, n.config.entityType || "").replace(/{entityId}/gi, n.config.entityId || "");
18877
+ let X = `${n.config.apiBaseUrl}${Mt.list[n.config.app].forEntity}`;
18878
+ return n.config.app === "konnect" ? X = X.replace(/{controlPlaneId}/gi, n.config.controlPlaneId || "") : n.config.app === "kongManager" && (X = X.replace(/\/{workspace}/gi, n.config.workspace ? `/${n.config.workspace}` : "")), X.replace(/{entityType}/gi, n.config.entityType || "").replace(/{entityId}/gi, n.config.entityId || "");
18879
18879
  }
18880
18880
  return "";
18881
- }), ee = (J) => {
18882
- l.replace({ hash: J, query: s.query });
18881
+ }), ee = (X) => {
18882
+ l.replace({ hash: X, query: s.query });
18883
18883
  };
18884
- un(() => n.disabledPlugins, (J, ge) => {
18885
- !b(J, ge) && !k.value && (P.value = D());
18886
- }), un(() => n.ignoredPlugins, (J, ge) => {
18887
- !b(J, ge) && !k.value && (P.value = D());
18888
- }), un(k, (J) => {
18889
- r("loading", J);
18884
+ un(() => n.disabledPlugins, (X, ge) => {
18885
+ !b(X, ge) && !k.value && (P.value = D());
18886
+ }), un(() => n.ignoredPlugins, (X, ge) => {
18887
+ !b(X, ge) && !k.value && (P.value = D());
18888
+ }), un(k, (X) => {
18889
+ r("loading", X);
18890
18890
  });
18891
- const z = ce(!1), le = ce(!1), me = ce(!1);
18891
+ const z = ue(!1), le = ue(!1), me = ue(!1);
18892
18892
  return ji(async () => {
18893
18893
  z.value = await n.canCreateCustomPlugin(), le.value = await n.canEditCustomPlugin(), me.value = await n.canDeleteCustomPlugin();
18894
18894
  }), Do(async () => {
18895
18895
  try {
18896
- const { data: J } = await X.get(re.value);
18896
+ const { data: X } = await q.get(re.value);
18897
18897
  if (n.config.app === "konnect") {
18898
- const { names: ge } = J;
18898
+ const { names: ge } = X;
18899
18899
  N.value = ge || [];
18900
18900
  } else if (n.config.app === "kongManager") {
18901
- const { plugins: { available_on_server: ge } } = J;
18901
+ const { plugins: { available_on_server: ge } } = X;
18902
18902
  N.value = ge ? Object.keys(ge) : [];
18903
18903
  }
18904
- } catch (J) {
18905
- S.value = !0, H.value = p(J);
18904
+ } catch (X) {
18905
+ S.value = !0, H.value = p(X);
18906
18906
  }
18907
18907
  if (be.value)
18908
18908
  try {
18909
- const { data: { data: J } } = await X.get(be.value);
18910
- if (J != null && J.length) {
18911
- const ge = J.reduce((Se, Be) => (Be.name && Se.push(Be.name), Se), []);
18909
+ const { data: { data: X } } = await q.get(be.value);
18910
+ if (X != null && X.length) {
18911
+ const ge = X.reduce((Se, Be) => (Be.name && Se.push(Be.name), Se), []);
18912
18912
  ne.value = ne.value.concat(ge);
18913
18913
  }
18914
18914
  } catch {
18915
18915
  }
18916
18916
  S.value || (P.value = D()), k.value = !1;
18917
- }), (J, ge) => {
18917
+ }), (X, ge) => {
18918
18918
  const Se = ae("KInput"), Be = ae("KSkeletonBox"), ye = ae("KSkeleton"), He = ae("KEmptyState"), wt = ae("KTabs");
18919
18919
  return v(), O("div", g2, [
18920
18920
  M("div", f2, [
@@ -18983,7 +18983,7 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
18983
18983
  "navigate-on-click": e.navigateOnClick,
18984
18984
  "plugin-list": F.value,
18985
18985
  "plugins-per-row": e.pluginsPerRow,
18986
- onPluginClicked: ge[1] || (ge[1] = (rt) => J.$emit("plugin-clicked", rt))
18986
+ onPluginClicked: ge[1] || (ge[1] = (rt) => X.$emit("plugin-clicked", rt))
18987
18987
  }, null, 8, ["config", "navigate-on-click", "plugin-list", "plugins-per-row"])
18988
18988
  ])
18989
18989
  ]),
@@ -18998,8 +18998,8 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
18998
18998
  "navigate-on-click": e.navigateOnClick,
18999
18999
  "plugin-list": F.value,
19000
19000
  "plugins-per-row": e.pluginsPerRow,
19001
- "onDelete:success": ge[2] || (ge[2] = (rt) => J.$emit("delete-custom:success", rt)),
19002
- onPluginClicked: ge[3] || (ge[3] = (rt) => J.$emit("plugin-clicked", rt)),
19001
+ "onDelete:success": ge[2] || (ge[2] = (rt) => X.$emit("delete-custom:success", rt)),
19002
+ onPluginClicked: ge[3] || (ge[3] = (rt) => X.$emit("plugin-clicked", rt)),
19003
19003
  onRevalidate: ge[4] || (ge[4] = () => P.value = D())
19004
19004
  }, null, 8, ["can-create-custom-plugin", "can-delete-custom-plugin", "can-edit-custom-plugin", "config", "navigate-on-click", "plugin-list", "plugins-per-row"])
19005
19005
  ])
@@ -19011,7 +19011,7 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
19011
19011
  "navigate-on-click": e.navigateOnClick,
19012
19012
  "plugin-list": F.value,
19013
19013
  "plugins-per-row": e.pluginsPerRow,
19014
- onPluginClicked: ge[6] || (ge[6] = (rt) => J.$emit("plugin-clicked", rt))
19014
+ onPluginClicked: ge[6] || (ge[6] = (rt) => X.$emit("plugin-clicked", rt))
19015
19015
  }, null, 8, ["config", "navigate-on-click", "plugin-list", "plugins-per-row"]))
19016
19016
  ]))
19017
19017
  ]);
@@ -19060,7 +19060,7 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
19060
19060
  },
19061
19061
  emits: ["loading", "fetch:error", "error:fetch-schema", "fetch:success", "navigation-click"],
19062
19062
  setup(e, { emit: a }) {
19063
- var X;
19063
+ var q;
19064
19064
  const n = a, r = e, { i18n: { t: s } } = bt.useI18n(), l = bt.usePluginMetaData(), { setFieldType: u } = bt.usePluginHelpers(), { getPropValue: d } = as(), p = Q(
19065
19065
  () => {
19066
19066
  var F;
@@ -19127,12 +19127,12 @@ const yT = /* @__PURE__ */ Ue(aT, [["render", vT], ["__scopeId", "data-v-e7395ff
19127
19127
  }
19128
19128
  return F;
19129
19129
  }), { getMessageFromError: k } = is(), { axiosInstance: S } = ca({
19130
- headers: (X = r.config) == null ? void 0 : X.requestHeaders
19130
+ headers: (q = r.config) == null ? void 0 : q.requestHeaders
19131
19131
  }), H = Q(() => {
19132
19132
  var Y, B;
19133
19133
  let F = `${r.config.apiBaseUrl}${Mt.form[r.config.app].pluginSchema}`;
19134
19134
  return r.config.app === "konnect" ? F = F.replace(/{controlPlaneId}/gi, ((Y = r.config) == null ? void 0 : Y.controlPlaneId) || "") : r.config.app === "kongManager" && (F = F.replace(/\/{workspace}/gi, (B = r.config) != null && B.workspace ? `/${r.config.workspace}` : "")), F = F.replace(/{plugin}/gi, r.config.pluginType), F;
19135
- }), N = ce({}), P = ce(!1), ne = ce("");
19135
+ }), N = ue({}), P = ue(!1), ne = ue("");
19136
19136
  return ji(async () => {
19137
19137
  P.value = !0;
19138
19138
  try {