@kong-ui-public/forms 4.23.28 → 4.23.29-pr.3042.9d78ca55d.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/forms.es.js CHANGED
@@ -607,7 +607,7 @@ function to() {
607
607
  HTMLFormElement: f,
608
608
  DOMParser: p,
609
609
  trustedTypes: S
610
- } = e, F = d.prototype, v = wt(F, "cloneNode"), U = wt(F, "remove"), N = wt(F, "nextSibling"), H = wt(F, "childNodes"), P = wt(F, "parentNode");
610
+ } = e, F = d.prototype, v = wt(F, "cloneNode"), U = wt(F, "remove"), k = wt(F, "nextSibling"), H = wt(F, "childNodes"), P = wt(F, "parentNode");
611
611
  if (typeof s == "function") {
612
612
  const K = n.createElement("template");
613
613
  K.content && K.content.ownerDocument && (n = K.content.ownerDocument);
@@ -617,7 +617,7 @@ function to() {
617
617
  implementation: E,
618
618
  createNodeIterator: T,
619
619
  createDocumentFragment: I,
620
- getElementsByTagName: k
620
+ getElementsByTagName: N
621
621
  } = n, {
622
622
  importNode: m
623
623
  } = i;
@@ -769,7 +769,7 @@ function to() {
769
769
  }
770
770
  }
771
771
  const Ee = b.body || b.documentElement;
772
- return r && D && Ee.insertBefore(n.createTextNode(D), Ee.childNodes[0] || null), Tt === He ? k.call(b, ut ? "html" : "body")[0] : ut ? b.documentElement : Ee;
772
+ return r && D && Ee.insertBefore(n.createTextNode(D), Ee.childNodes[0] || null), Tt === He ? N.call(b, ut ? "html" : "body")[0] : ut ? b.documentElement : Ee;
773
773
  }, Oi = function(r) {
774
774
  return T.call(
775
775
  r.ownerDocument || r,
@@ -807,7 +807,7 @@ function to() {
807
807
  const ge = Ee.length;
808
808
  for (let Oe = ge - 1; Oe >= 0; --Oe) {
809
809
  const Le = v(Ee[Oe], !0);
810
- te.insertBefore(Le, N(r));
810
+ te.insertBefore(Le, k(r));
811
811
  }
812
812
  }
813
813
  }
@@ -1271,12 +1271,12 @@ function Yt(e, t, n, i, a, o) {
1271
1271
  return S;
1272
1272
  o.set(e, s), eu(e) ? e.forEach(function(U) {
1273
1273
  s.add(Yt(U, t, n, U, e, o));
1274
- }) : Xd(e) && e.forEach(function(U, N) {
1275
- s.set(N, Yt(U, t, n, N, e, o));
1274
+ }) : Xd(e) && e.forEach(function(U, k) {
1275
+ s.set(k, Yt(U, t, n, k, e, o));
1276
1276
  });
1277
1277
  var F = u ? d ? md : cd : d ? En : yn, v = y ? void 0 : F(e);
1278
- return Va(v || e, function(U, N) {
1279
- v && (N = U, U = e[N]), io(s, N, Yt(U, t, n, N, e, o));
1278
+ return Va(v || e, function(U, k) {
1279
+ v && (k = U, U = e[k]), io(s, k, Yt(U, t, n, k, e, o));
1280
1280
  }), s;
1281
1281
  }
1282
1282
  var Iu = 1, Ou = 4;
@@ -1362,21 +1362,21 @@ function Rt(e, t, n) {
1362
1362
  return i = a = void 0, u = E, s = e.apply(I, T), s;
1363
1363
  }
1364
1364
  function F(E) {
1365
- return u = E, l = setTimeout(N, t), y ? S(E) : s;
1365
+ return u = E, l = setTimeout(k, t), y ? S(E) : s;
1366
1366
  }
1367
1367
  function v(E) {
1368
- var T = E - d, I = E - u, k = t - T;
1369
- return f ? ju(k, o - I) : k;
1368
+ var T = E - d, I = E - u, N = t - T;
1369
+ return f ? ju(N, o - I) : N;
1370
1370
  }
1371
1371
  function U(E) {
1372
1372
  var T = E - d, I = E - u;
1373
1373
  return d === void 0 || T >= t || T < 0 || f && I >= o;
1374
1374
  }
1375
- function N() {
1375
+ function k() {
1376
1376
  var E = Hn();
1377
1377
  if (U(E))
1378
1378
  return H(E);
1379
- l = setTimeout(N, v(E));
1379
+ l = setTimeout(k, v(E));
1380
1380
  }
1381
1381
  function H(E) {
1382
1382
  return l = void 0, p && i ? S(E) : (i = a = void 0, s);
@@ -1393,9 +1393,9 @@ function Rt(e, t, n) {
1393
1393
  if (l === void 0)
1394
1394
  return F(d);
1395
1395
  if (f)
1396
- return clearTimeout(l), l = setTimeout(N, t), S(d);
1396
+ return clearTimeout(l), l = setTimeout(k, t), S(d);
1397
1397
  }
1398
- return l === void 0 && (l = setTimeout(N, t)), s;
1398
+ return l === void 0 && (l = setTimeout(k, t)), s;
1399
1399
  }
1400
1400
  return C.cancel = P, C.flush = w, C;
1401
1401
  }
@@ -1756,9 +1756,9 @@ function cc(e, t, n) {
1756
1756
  a[F] = U;
1757
1757
  }
1758
1758
  a.isPm === 1 && a.hour != null && +a.hour != 12 ? a.hour = +a.hour + 12 : a.isPm === 0 && +a.hour == 12 && (a.hour = 0);
1759
- var N;
1759
+ var k;
1760
1760
  if (a.timezoneOffset == null) {
1761
- N = new Date(a.year, a.month, a.day, a.hour, a.minute, a.second, a.millisecond);
1761
+ k = new Date(a.year, a.month, a.day, a.hour, a.minute, a.second, a.millisecond);
1762
1762
  for (var H = [
1763
1763
  ["month", "getMonth"],
1764
1764
  ["day", "getDate"],
@@ -1766,11 +1766,11 @@ function cc(e, t, n) {
1766
1766
  ["minute", "getMinutes"],
1767
1767
  ["second", "getSeconds"]
1768
1768
  ], p = 0, P = H.length; p < P; p++)
1769
- if (d[H[p][0]] && a[H[p][0]] !== N[H[p][1]]())
1769
+ if (d[H[p][0]] && a[H[p][0]] !== k[H[p][1]]())
1770
1770
  return null;
1771
- } else if (N = new Date(Date.UTC(a.year, a.month, a.day, a.hour, a.minute - a.timezoneOffset, a.second, a.millisecond)), a.month > 11 || a.month < 0 || a.day > 31 || a.day < 1 || a.hour > 23 || a.hour < 0 || a.minute > 59 || a.minute < 0 || a.second > 59 || a.second < 0)
1771
+ } else if (k = new Date(Date.UTC(a.year, a.month, a.day, a.hour, a.minute - a.timezoneOffset, a.second, a.millisecond)), a.month > 11 || a.month < 0 || a.day > 31 || a.day < 1 || a.hour > 23 || a.hour < 0 || a.minute > 59 || a.minute < 0 || a.second > 59 || a.second < 0)
1772
1772
  return null;
1773
- return N;
1773
+ return k;
1774
1774
  }
1775
1775
  var Mt = {
1776
1776
  format: uc,
@@ -2603,7 +2603,7 @@ const Xc = "#6c7489", Jc = "12px", Qc = "20px", em = ["data-testid", "data-testl
2603
2603
  clearTimeout(v), l.value = !1;
2604
2604
  }
2605
2605
  }
2606
- }, N = Rt((m) => {
2606
+ }, k = Rt((m) => {
2607
2607
  if (m = m || "", u.value = m, !m.trim() && !d.value) {
2608
2608
  y.value = T(p.value);
2609
2609
  return;
@@ -2611,7 +2611,7 @@ const Xc = "#6c7489", Jc = "12px", Qc = "20px", em = ["data-testid", "data-testl
2611
2611
  F.value && F.value.abort();
2612
2612
  const g = new AbortController();
2613
2613
  if (F.value = g, d.value) {
2614
- k(m);
2614
+ N(m);
2615
2615
  return;
2616
2616
  }
2617
2617
  C(m, g);
@@ -2628,7 +2628,7 @@ const Xc = "#6c7489", Jc = "12px", Qc = "20px", em = ["data-testid", "data-testl
2628
2628
  g = T(p.value), m != null && m.trim() ? y.value = g.filter((A) => e.fields.some((L) => (A[L] || "").includes(m))) : y.value = g;
2629
2629
  }, T = (m) => e.selectedItem ? m.some((g) => g.value === e.selectedItem.value) ? m : [e.selectedItem, ...m] : m, I = (m) => {
2630
2630
  y.value = p.value.filter((g) => g.id === m);
2631
- }, k = (m) => {
2631
+ }, N = (m) => {
2632
2632
  ti(m) && e.allowUuidSearch ? I(m) : E(m);
2633
2633
  };
2634
2634
  return ii(async () => {
@@ -2648,7 +2648,7 @@ const Xc = "#6c7489", Jc = "12px", Qc = "20px", em = ["data-testid", "data-testl
2648
2648
  readonly: e.disabled,
2649
2649
  suggestions: y.value,
2650
2650
  onChange: g[0] || (g[0] = (A) => m.$emit("change", A)),
2651
- onQueryChange: R(N)
2651
+ onQueryChange: R(k)
2652
2652
  }, {
2653
2653
  before: M(() => [
2654
2654
  Fe(m.$slots, "before", {}, () => [
@@ -2995,9 +2995,9 @@ const Fo = /* @__PURE__ */ W(vm, [["render", Sm], ["__scopeId", "data-v-433129a3
2995
2995
  function Em(e) {
2996
2996
  const t = ne([]), n = ne(null), i = (v) => ft(v) ? pt[v] != null ? pt[v] : (console.warn(`'${v}' is not a validator function!`), null) : v, a = q({
2997
2997
  get() {
2998
- var U, N;
2998
+ var U, k;
2999
2999
  let v;
3000
- return X(Z(e.schema, "get")) ? v = e.schema.get((U = e.model) == null ? void 0 : U.value) : v = Z((N = e.model) == null ? void 0 : N.value, e.schema.model), S(v);
3000
+ return X(Z(e.schema, "get")) ? v = e.schema.get((U = e.model) == null ? void 0 : U.value) : v = Z((k = e.model) == null ? void 0 : k.value, e.schema.model), S(v);
3001
3001
  },
3002
3002
  set(v) {
3003
3003
  const U = a;
@@ -3007,7 +3007,7 @@ function Em(e) {
3007
3007
  var P;
3008
3008
  d();
3009
3009
  const U = Z(e.formOptions, "validateAsync", !1);
3010
- let N = [];
3010
+ let k = [];
3011
3011
  if (e.schema.readonly !== !0 && e.disabled !== !0) {
3012
3012
  const w = [], C = (P = e.schema) == null ? void 0 : P.validator;
3013
3013
  C && (Array.isArray(C) ? we(C, (E) => {
@@ -3015,14 +3015,14 @@ function Em(e) {
3015
3015
  }) : w.push(i(C))), X(e.externalValidator) && w.push(e.externalValidator), we(w, (E) => {
3016
3016
  var T, I;
3017
3017
  if (U)
3018
- N.push(E(a.value, e.schema, (T = e.model) == null ? void 0 : T.value));
3018
+ k.push(E(a.value, e.schema, (T = e.model) == null ? void 0 : T.value));
3019
3019
  else {
3020
- const k = E(a.value, e.schema, (I = e.model) == null ? void 0 : I.value);
3021
- k && X(k.then) ? k.then((m) => {
3020
+ const N = E(a.value, e.schema, (I = e.model) == null ? void 0 : I.value);
3021
+ N && X(N.then) ? N.then((m) => {
3022
3022
  m && (t.value = t.value.concat(m));
3023
3023
  const g = t.value.length === 0;
3024
3024
  e.emitValidated && e.emitValidated({ isValid: g, errors: t.value, field: e.schema });
3025
- }) : k && (N = N.concat(k));
3025
+ }) : N && (k = k.concat(N));
3026
3026
  }
3027
3027
  });
3028
3028
  }
@@ -3037,7 +3037,7 @@ function Em(e) {
3037
3037
  }
3038
3038
  return w = C, C;
3039
3039
  };
3040
- return U ? Promise.all(N).then(H) : H(N);
3040
+ return U ? Promise.all(k).then(H) : H(k);
3041
3041
  }, s = () => {
3042
3042
  X(n.value) ? n.value() : n.value = Rt(
3043
3043
  o,
@@ -3045,16 +3045,16 @@ function Em(e) {
3045
3045
  );
3046
3046
  }, l = (v, U) => {
3047
3047
  var H, P, w;
3048
- let N = !1;
3049
- X(e.schema.set) ? (e.schema.set((H = e.model) == null ? void 0 : H.value, v), N = !0) : e.schema.model && (u(e.schema.model, v), N = !0), N && (e.emitModelUpdated && ((P = e.model) != null && P.value) && e.emitModelUpdated({ value: v, model: e.schema.model }), X(e.schema.onChanged) && e.schema.onChanged((w = e.model) == null ? void 0 : w.value, v, U, e.schema), Z(e.formOptions, "validateAfterChanged", !1) === !0 && (Z(e.schema, "validateDebounceTime", Z(e.formOptions, "validateDebounceTime", 0)) > 0 ? s() : o()));
3048
+ let k = !1;
3049
+ X(e.schema.set) ? (e.schema.set((H = e.model) == null ? void 0 : H.value, v), k = !0) : e.schema.model && (u(e.schema.model, v), k = !0), k && (e.emitModelUpdated && ((P = e.model) != null && P.value) && e.emitModelUpdated({ value: v, model: e.schema.model }), X(e.schema.onChanged) && e.schema.onChanged((w = e.model) == null ? void 0 : w.value, v, U, e.schema), Z(e.formOptions, "validateAfterChanged", !1) === !0 && (Z(e.schema, "validateDebounceTime", Z(e.formOptions, "validateDebounceTime", 0)) > 0 ? s() : o()));
3050
3050
  }, d = () => {
3051
3051
  t.value.splice(0);
3052
3052
  }, u = (v, U) => {
3053
3053
  var E;
3054
- let N = v.replace(/\[(\w+)\]/g, ".$1");
3055
- N = N.replace(/^\./, "");
3054
+ let k = v.replace(/\[(\w+)\]/g, ".$1");
3055
+ k = k.replace(/^\./, "");
3056
3056
  let H = ((E = e.model) == null ? void 0 : E.value) || {}, P = 0;
3057
- const w = N.split("."), C = w.length;
3057
+ const w = k.split("."), C = w.length;
3058
3058
  for (; P < C; ) {
3059
3059
  const T = w[P];
3060
3060
  if (P < C - 1)
@@ -3066,8 +3066,8 @@ function Em(e) {
3066
3066
  ++P;
3067
3067
  }
3068
3068
  }, y = (v, U = !1) => {
3069
- const N = Z(e.formOptions, "fieldIdPrefix", "");
3070
- return mi(v, N) + (U ? "-" + yo() : "");
3069
+ const k = Z(e.formOptions, "fieldIdPrefix", "");
3070
+ return mi(v, k) + (U ? "-" + yo() : "");
3071
3071
  }, f = (v) => `${y(v)}-label`, p = () => Z(e.schema, "fieldClasses", []), S = (v) => e.formatValueToField && typeof e.formatValueToField == "function" ? e.formatValueToField(v) : v, F = (v) => e.formatValueToModel && typeof e.formatValueToModel == "function" ? e.formatValueToModel(v) : v;
3072
3072
  return {
3073
3073
  value: a,
@@ -3187,10 +3187,10 @@ const Be = {
3187
3187
  datetime: "YYYY-MM-DD HH:mm:ss",
3188
3188
  "datetime-local": "YYYY-MM-DDTHH:mm:ss"
3189
3189
  }, S = (P, w) => {
3190
- var I, k;
3190
+ var I, N;
3191
3191
  let C = P;
3192
3192
  const E = p[f.value] || "", T = Mt.parse(P, E);
3193
- T && ((I = i.schema) != null && I.format ? C = Mt.format(T, (k = i.schema) == null ? void 0 : k.format) : C = T.valueOf()), l(C, w);
3193
+ T && ((I = i.schema) != null && I.format ? C = Mt.format(T, (N = i.schema) == null ? void 0 : N.format) : C = T.valueOf()), l(C, w);
3194
3194
  }, F = (P, w) => {
3195
3195
  fi(P) || (P = NaN), l(P, w);
3196
3196
  }, v = (P) => {
@@ -3204,15 +3204,15 @@ const Be = {
3204
3204
  y.value = w, l(w, P);
3205
3205
  }, U = (P) => {
3206
3206
  y.value = P, l(P, P);
3207
- }, N = ne(null), H = () => {
3207
+ }, k = ne(null), H = () => {
3208
3208
  var P;
3209
- X(N.value) && ((P = N.value) == null || P.flush());
3209
+ X(k.value) && ((P = k.value) == null || P.flush());
3210
3210
  };
3211
3211
  return ii(() => {
3212
3212
  switch (f.value) {
3213
3213
  case "number":
3214
3214
  case "range":
3215
- N.value = Rt(
3215
+ k.value = Rt(
3216
3216
  (P, w) => {
3217
3217
  F(P, w);
3218
3218
  },
@@ -3226,7 +3226,7 @@ const Be = {
3226
3226
  case "date":
3227
3227
  case "datetime":
3228
3228
  case "datetime-local":
3229
- N.value = Rt(
3229
+ k.value = Rt(
3230
3230
  (P, w) => {
3231
3231
  S(P, w);
3232
3232
  },
@@ -3761,12 +3761,12 @@ const No = /* @__PURE__ */ W(Om, [["render", Rm]]), Fm = { class: "field-object-
3761
3761
  return p(typeof v == "function" ? v.apply(this, [i.model, i.schema]) : v);
3762
3762
  }), p = (v) => {
3763
3763
  const U = [];
3764
- return v.forEach((N) => {
3764
+ return v.forEach((k) => {
3765
3765
  U.push({
3766
- label: F(N),
3767
- value: S(N),
3768
- disabled: typeof N == "object" && N.disabled || void 0,
3769
- group: typeof N == "object" && String(N.group || "").toUpperCase() || void 0
3766
+ label: F(k),
3767
+ value: S(k),
3768
+ disabled: typeof k == "object" && k.disabled || void 0,
3769
+ group: typeof k == "object" && String(k.group || "").toUpperCase() || void 0
3770
3770
  });
3771
3771
  }), U;
3772
3772
  }, S = (v) => {
@@ -3789,8 +3789,8 @@ const No = /* @__PURE__ */ W(Om, [["render", Rm]]), Fm = { class: "field-object-
3789
3789
  return String(v);
3790
3790
  };
3791
3791
  return (v, U) => {
3792
- const N = j("KSelect");
3793
- return c(), $(N, {
3792
+ const k = j("KSelect");
3793
+ return c(), $(k, {
3794
3794
  id: R(d)(e.schema),
3795
3795
  modelValue: R(y),
3796
3796
  "onUpdate:modelValue": U[0] || (U[0] = (H) => Ft(y) ? y.value = H : null),
@@ -5079,7 +5079,7 @@ const ph = { class: "partial-config-card" }, gh = { class: "config-card-row-labe
5079
5079
  return (f, p) => {
5080
5080
  const S = j("KCopy");
5081
5081
  return c(), _("div", ph, [
5082
- (c(!0), _(Y, null, oe(y.value, ({ key: F, label: v, value: U, type: N }) => (c(), _("div", {
5082
+ (c(!0), _(Y, null, oe(y.value, ({ key: F, label: v, value: U, type: k }) => (c(), _("div", {
5083
5083
  key: F,
5084
5084
  class: "partial-config-card-row"
5085
5085
  }, [
@@ -5091,7 +5091,7 @@ const ph = { class: "partial-config-card" }, gh = { class: "config-card-row-labe
5091
5091
  "data-testid": `${F}-property-value`
5092
5092
  }, [
5093
5093
  o(U) ? (c(), _("div", _h, [
5094
- N === "password" ? (c(), _("div", {
5094
+ k === "password" ? (c(), _("div", {
5095
5095
  key: 0,
5096
5096
  "data-testid": `${F}-copy-password`
5097
5097
  }, [
@@ -5181,35 +5181,35 @@ const ph = { class: "partial-config-card" }, gh = { class: "config-card-row-labe
5181
5181
  () => a.isKonnectManagedRedisEnabled ? t("redis.managed_ui.shared_configuration.title") : t("redis.shared_configuration.title")
5182
5182
  ), U = q(
5183
5183
  () => a.isKonnectManagedRedisEnabled ? t("redis.managed_ui.shared_configuration.selector.placeholder") : t("redis.shared_configuration.selector.placeholder")
5184
- ), N = q(
5184
+ ), k = q(
5185
5185
  () => a.isKonnectManagedRedisEnabled ? t("redis.managed_ui.shared_configuration.create_new_configuration") : t("redis.shared_configuration.create_new_configuration", { type: ka(a.redisType) })
5186
5186
  ), H = q(
5187
5187
  () => S.value || t("redis.shared_configuration.error")
5188
5188
  ), P = (I) => {
5189
- let k = `${l.apiBaseUrl}${i[l.app].getOne}`;
5190
- return l.app === "konnect" ? k = k.replace(/{controlPlaneId}/gi, (l == null ? void 0 : l.controlPlaneId) || "") : l.app === "kongManager" && (k = k.replace(/\/{workspace}/gi, l != null && l.workspace ? `/${l.workspace}` : "")), k = k.replace(/{id}/gi, String(I)), k;
5189
+ let N = `${l.apiBaseUrl}${i[l.app].getOne}`;
5190
+ return l.app === "konnect" && (N = N.replace(/{controlPlaneId}/gi, (l == null ? void 0 : l.controlPlaneId) || "")), N = N.replace(/\/{workspace}/gi, l != null && l.workspace ? `/${l.workspace}` : "").replace(/{id}/gi, String(I)), N;
5191
5191
  }, w = q(() => {
5192
- const I = (p.value || []).map((k) => {
5193
- const m = k, g = a.isKonnectManagedRedisEnabled ? hh(m) : void 0, A = g === Ot.KONNECT_MANAGED;
5192
+ const I = (p.value || []).map((N) => {
5193
+ const m = N, g = a.isKonnectManagedRedisEnabled ? hh(m) : void 0, A = g === Ot.KONNECT_MANAGED;
5194
5194
  return {
5195
5195
  ...a.isKonnectManagedRedisEnabled && g ? { source: g } : {},
5196
5196
  // only attach `source` in managed mode
5197
- label: k.id,
5198
- name: k.name,
5199
- value: k.id,
5200
- type: k.type,
5197
+ label: N.id,
5198
+ name: N.name,
5199
+ value: N.id,
5200
+ type: N.type,
5201
5201
  tag: a.isKonnectManagedRedisEnabled && A ? void 0 : ch(m)
5202
5202
  };
5203
- }).filter((k) => k.type === "redis-ce" || k.type === "redis-ee");
5204
- return a.redisType !== "all" ? I.filter((k) => k.type === a.redisType) : I;
5203
+ }).filter((N) => N.type === "redis-ce" || N.type === "redis-ee");
5204
+ return a.redisType !== "all" ? I.filter((N) => N.type === a.redisType) : I;
5205
5205
  }), C = q(() => {
5206
5206
  const I = w.value;
5207
5207
  if (!a.isKonnectManagedRedisEnabled)
5208
5208
  return I;
5209
- const k = I.filter((A) => A.source === Ot.KONNECT_MANAGED), m = I.filter((A) => A.source === Ot.SELF_MANAGED), g = [];
5210
- return k.length > 0 && g.push({
5209
+ const N = I.filter((A) => A.source === Ot.KONNECT_MANAGED), m = I.filter((A) => A.source === Ot.SELF_MANAGED), g = [];
5210
+ return N.length > 0 && g.push({
5211
5211
  label: t("redis.managed_ui.groups.konnect_managed"),
5212
- items: k
5212
+ items: N
5213
5213
  }), m.length > 0 && g.push({
5214
5214
  label: t("redis.managed_ui.groups.self_managed"),
5215
5215
  items: m
@@ -5218,13 +5218,13 @@ const ph = { class: "partial-config-card" }, gh = { class: "config-card-row-labe
5218
5218
  if (I) {
5219
5219
  a.updateRedisModel(I);
5220
5220
  try {
5221
- const k = await E.get(P(I));
5222
- if (k.data.config) {
5223
- const m = Object.assign(k.data, k.data.config);
5221
+ const N = await E.get(P(I));
5222
+ if (N.data.config) {
5223
+ const m = Object.assign(N.data, N.data.config);
5224
5224
  delete m.config, o.value = m;
5225
5225
  }
5226
- } catch (k) {
5227
- console.error(k);
5226
+ } catch (N) {
5227
+ console.error(N);
5228
5228
  }
5229
5229
  }
5230
5230
  };
@@ -5232,7 +5232,7 @@ const ph = { class: "partial-config-card" }, gh = { class: "config-card-row-labe
5232
5232
  I && await f();
5233
5233
  }), ai(() => {
5234
5234
  f(), a.defaultRedisConfigItem && T(a.defaultRedisConfigItem);
5235
- }), (I, k) => {
5235
+ }), (I, N) => {
5236
5236
  const m = j("KLabel"), g = j("KBadge"), A = j("KSelect");
5237
5237
  return c(), _(Y, null, [
5238
5238
  h("div", wh, [
@@ -5248,7 +5248,7 @@ const ph = { class: "partial-config-card" }, gh = { class: "config-card-row-labe
5248
5248
  ]),
5249
5249
  _: 1
5250
5250
  }, 8, ["info"]),
5251
- k[2] || (k[2] = h("div", { class: "shared-redis-config-title" }, null, -1)),
5251
+ N[2] || (N[2] = h("div", { class: "shared-redis-config-title" }, null, -1)),
5252
5252
  O(A, {
5253
5253
  class: "redis-config-select-trigger",
5254
5254
  "data-testid": "redis-config-select-trigger",
@@ -5258,7 +5258,7 @@ const ph = { class: "partial-config-card" }, gh = { class: "config-card-row-labe
5258
5258
  loading: R(u),
5259
5259
  "model-value": e.defaultRedisConfigItem,
5260
5260
  placeholder: U.value,
5261
- onChange: k[1] || (k[1] = (L) => T(L == null ? void 0 : L.value)),
5261
+ onChange: N[1] || (N[1] = (L) => T(L == null ? void 0 : L.value)),
5262
5262
  onQueryChange: R(d)
5263
5263
  }, {
5264
5264
  "selected-item-template": M(({ item: L }) => [
@@ -5289,10 +5289,10 @@ const ph = { class: "partial-config-card" }, gh = { class: "config-card-row-labe
5289
5289
  h("div", {
5290
5290
  class: "new-redis-config-area",
5291
5291
  "data-testid": "new-redis-config-area",
5292
- onClick: k[0] || (k[0] = (L) => I.$emit("showNewPartialModal"))
5292
+ onClick: N[0] || (N[0] = (L) => I.$emit("showNewPartialModal"))
5293
5293
  }, [
5294
5294
  O(R(oi), { size: R(Jc) }, null, 8, ["size"]),
5295
- h("span", null, V(N.value), 1)
5295
+ h("span", null, V(k.value), 1)
5296
5296
  ])
5297
5297
  ]),
5298
5298
  _: 1
@@ -5307,7 +5307,7 @@ const ph = { class: "partial-config-card" }, gh = { class: "config-card-row-labe
5307
5307
  ], 64);
5308
5308
  };
5309
5309
  }
5310
- }), Na = /* @__PURE__ */ W(kh, [["__scopeId", "data-v-03885614"]]), Nh = { key: 0 }, Uh = {
5310
+ }), Na = /* @__PURE__ */ W(kh, [["__scopeId", "data-v-11c0d9f3"]]), Nh = { key: 0 }, Uh = {
5311
5311
  class: "redis-config-radio-group",
5312
5312
  "data-testid": "redis-config-radio-group"
5313
5313
  }, Lh = {
@@ -5381,7 +5381,7 @@ const ph = { class: "partial-config-card" }, gh = { class: "config-card-row-labe
5381
5381
  () => n.isKonnectManagedRedisEnabled ? a("redis.managed_ui.dedicated_configuration.label") : a("redis.dedicated_configuration.label")
5382
5382
  ), y = q(() => n.field.pluginType === "custom"), f = ne(!n.isEditing), p = ne(), S = ne({}), F = ne(), v = (w) => X(w.visible) ? w.visible.call(this, n.model, w, this) : ue(w.visible) ? !0 : w.visible, U = async (w) => {
5383
5383
  i("modelUpdated", [{ id: w, path: n.redisPath }], "partials"), F.value = [{ id: w, path: n.redisPath }], p.value = w;
5384
- }, N = (w, C) => {
5384
+ }, k = (w, C) => {
5385
5385
  S.value = { ...S.value, [C]: w }, i("modelUpdated", w, C);
5386
5386
  }, H = () => {
5387
5387
  i("refreshModel");
@@ -5397,7 +5397,7 @@ const ph = { class: "partial-config-card" }, gh = { class: "config-card-row-labe
5397
5397
  f.value = !0, p.value = T;
5398
5398
  }
5399
5399
  }), (w, C) => {
5400
- const E = j("KAlert"), T = j("KBadge"), I = j("KRadio"), k = j("KCard");
5400
+ const E = j("KAlert"), T = j("KBadge"), I = j("KRadio"), N = j("KCard");
5401
5401
  return c(), _("div", null, [
5402
5402
  y.value ? (c(), _("div", Nh, [
5403
5403
  O(E, {
@@ -5412,7 +5412,7 @@ const ph = { class: "partial-config-card" }, gh = { class: "config-card-row-labe
5412
5412
  "update-redis-model": U,
5413
5413
  onShowNewPartialModal: C[0] || (C[0] = (m) => w.$emit("showNewPartialModal"))
5414
5414
  }, null, 8, ["default-redis-config-item", "is-konnect-managed-redis-enabled", "plugin-redis-fields"])
5415
- ])) : (c(), $(k, {
5415
+ ])) : (c(), $(N, {
5416
5416
  key: 1,
5417
5417
  class: "redis-config-card",
5418
5418
  "data-testid": "redis-config-card",
@@ -5479,7 +5479,7 @@ const ph = { class: "partial-config-card" }, gh = { class: "config-card-row-labe
5479
5479
  model: e.model,
5480
5480
  options: e.options,
5481
5481
  vfg: e.vfg,
5482
- onModelUpdated: N,
5482
+ onModelUpdated: k,
5483
5483
  onRefreshModel: H,
5484
5484
  onValidated: P
5485
5485
  }, null, 8, ["errors", "field", "model", "options", "vfg"])) : B("", !0)
@@ -6397,24 +6397,24 @@ const Qh = /* @__PURE__ */ W(Bh, [["render", Jh], ["__scopeId", "data-v-681792ad
6397
6397
  var T;
6398
6398
  const E = Je(ap);
6399
6399
  for (const I of E.fields) {
6400
- const k = (T = a.value[I.model]) == null ? void 0 : T.help;
6401
- I.help === void 0 && typeof k == "string" && (I.help = k);
6400
+ const N = (T = a.value[I.model]) == null ? void 0 : T.help;
6401
+ I.help === void 0 && typeof N == "string" && (I.help = N);
6402
6402
  }
6403
6403
  return E;
6404
6404
  }), s = q(() => {
6405
6405
  var T;
6406
6406
  const E = Je(op);
6407
6407
  for (const I of E.fields) {
6408
- const k = (T = a.value[I.model]) == null ? void 0 : T.help;
6409
- I.help === void 0 && typeof k == "string" && (I.help = k);
6408
+ const N = (T = a.value[I.model]) == null ? void 0 : T.help;
6409
+ I.help === void 0 && typeof N == "string" && (I.help = N);
6410
6410
  }
6411
6411
  return E;
6412
6412
  }), l = q(() => {
6413
6413
  var T;
6414
6414
  const E = Je(rp);
6415
6415
  for (const I of E.fields) {
6416
- const k = (T = a.value[I.model]) == null ? void 0 : T.help;
6417
- I.help === void 0 && typeof k == "string" && (I.help = k);
6416
+ const N = (T = a.value[I.model]) == null ? void 0 : T.help;
6417
+ I.help === void 0 && typeof N == "string" && (I.help = N);
6418
6418
  }
6419
6419
  return E;
6420
6420
  }), d = q(() => ({
@@ -6435,7 +6435,7 @@ const Qh = /* @__PURE__ */ W(Bh, [["render", Jh], ["__scopeId", "data-v-681792ad
6435
6435
  fields: t.formSchema.fields.filter((T) => T.model.startsWith("config-storage_config-vault"))
6436
6436
  })), v = q(() => ({
6437
6437
  fields: t.formSchema.fields.filter((E) => E.model.startsWith("config") && !u.value.fields.filter((T) => T.model === E.model).length && !y.value.fields.filter((T) => T.model === E.model).length || E.model === "tags")
6438
- })), U = q(() => t.formModel.id && t.isEditing || !t.isEditing), N = [
6438
+ })), U = q(() => t.formModel.id && t.isEditing || !t.isEditing), k = [
6439
6439
  {
6440
6440
  hash: "#general",
6441
6441
  title: "General"
@@ -6472,7 +6472,7 @@ const Qh = /* @__PURE__ */ W(Bh, [["render", Jh], ["__scopeId", "data-v-681792ad
6472
6472
  T === "config-storage" && (i.value = E), t.onModelUpdated();
6473
6473
  };
6474
6474
  return (E, T) => {
6475
- const I = j("KSelect"), k = j("KTabs");
6475
+ const I = j("KSelect"), N = j("KTabs");
6476
6476
  return c(), _("div", null, [
6477
6477
  e.formModel.id && e.isEditing || !e.isEditing ? (c(), $(ce, {
6478
6478
  key: 0,
@@ -6482,7 +6482,7 @@ const Qh = /* @__PURE__ */ W(Bh, [["render", Jh], ["__scopeId", "data-v-681792ad
6482
6482
  schema: d.value,
6483
6483
  onModelUpdated: e.onModelUpdated
6484
6484
  }, null, 8, ["model", "options", "schema", "onModelUpdated"])) : B("", !0),
6485
- O(k, { tabs: N }, {
6485
+ O(N, { tabs: k }, {
6486
6486
  general: M(() => [
6487
6487
  h("div", sp, [
6488
6488
  T[0] || (T[0] = h("div", { class: "header-wrapper" }, [
@@ -6606,8 +6606,8 @@ const Qh = /* @__PURE__ */ W(Bh, [["render", Jh], ["__scopeId", "data-v-681792ad
6606
6606
  isKonnectManagedRedisEnabled: { type: Boolean }
6607
6607
  },
6608
6608
  setup(e) {
6609
- var k;
6610
- Qt($e, (k = pn()) == null ? void 0 : k[Nt]);
6609
+ var N;
6610
+ Qt($e, (N = pn()) == null ? void 0 : N[Nt]);
6611
6611
  const t = {
6612
6612
  fixed: [
6613
6613
  {
@@ -6729,7 +6729,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
6729
6729
  var m, g, A, L;
6730
6730
  return ((m = o.formModel) == null ? void 0 : m["config-identifier"]) ?? ((L = (A = (g = o.formSchema) == null ? void 0 : g.fields) == null ? void 0 : A.find((G) => G.model === "config-identifier")) == null ? void 0 : L.default);
6731
6731
  }
6732
- ), N = q(
6732
+ ), k = q(
6733
6733
  () => {
6734
6734
  var m, g, A, L;
6735
6735
  return ((m = o.formModel) == null ? void 0 : m["config-error_code"]) ?? ((L = (A = (g = o.formSchema) == null ? void 0 : g.fields) == null ? void 0 : A.find((G) => G.model === "config-error_code")) == null ? void 0 : L.default);
@@ -6964,7 +6964,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
6964
6964
  h("legend", Ip, [
6965
6965
  O(G, {
6966
6966
  class: "input-error-code",
6967
- "model-value": N.value && N.value.toString(),
6967
+ "model-value": k.value && k.value.toString(),
6968
6968
  placeholder: R(a)("rla.error_message.code_placeholder"),
6969
6969
  type: "number",
6970
6970
  "onUpdate:modelValue": g[3] || (g[3] = (x) => e.onModelUpdated(Number.parseInt(x), "config-error_code"))