@kong-ui-public/forms 4.23.5 → 4.23.6-pr.3042.f0eeeddbe.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
@@ -50,9 +50,9 @@ var fr = "[object Arguments]";
50
50
  function Li(e) {
51
51
  return ot(e) && at(e) == fr;
52
52
  }
53
- var Na = Object.prototype, hr = Na.hasOwnProperty, pr = Na.propertyIsEnumerable, gr = Li(/* @__PURE__ */ (function() {
53
+ var Na = Object.prototype, hr = Na.hasOwnProperty, pr = Na.propertyIsEnumerable, gr = Li(/* @__PURE__ */ function() {
54
54
  return arguments;
55
- })()) ? Li : function(e) {
55
+ }()) ? Li : function(e) {
56
56
  return ot(e) && hr.call(e, "callee") && !pr.call(e, "callee");
57
57
  }, rt = Array.isArray;
58
58
  function yr() {
@@ -78,13 +78,13 @@ function ii(e) {
78
78
  return e(t);
79
79
  };
80
80
  }
81
- var Va = typeof exports == "object" && exports && !exports.nodeType && exports, xt = Va && typeof module == "object" && module && !module.nodeType && module, Gr = xt && xt.exports === Va, Ln = Gr && Ra.process, At = (function() {
81
+ var Va = typeof exports == "object" && exports && !exports.nodeType && exports, xt = Va && typeof module == "object" && module && !module.nodeType && module, Gr = xt && xt.exports === Va, Ln = Gr && Ra.process, At = function() {
82
82
  try {
83
83
  var e = xt && xt.require && xt.require("util").types;
84
84
  return e || Ln && Ln.binding && Ln.binding("util");
85
85
  } catch {
86
86
  }
87
- })(), $i = At && At.isTypedArray, Wr = $i ? ii($i) : Yr, Zr = Object.prototype, Xr = Zr.hasOwnProperty;
87
+ }(), $i = At && At.isTypedArray, Wr = $i ? ii($i) : Yr, Zr = Object.prototype, Xr = Zr.hasOwnProperty;
88
88
  function ja(e, t) {
89
89
  var n = rt(e), i = !n && gr(e), a = !n && !i && Pa(e), o = !n && !i && !a && Wr(e), r = n || i || a || o, s = r ? ir(e.length, String) : [], d = s.length;
90
90
  for (var u in e)
@@ -167,10 +167,10 @@ function hs(e, t) {
167
167
  var n = typeof e;
168
168
  return n == "number" || n == "symbol" || n == "boolean" || e == null || yn(e) ? !0 : fs.test(e) || !ms.test(e) || t != null && e in Object(t);
169
169
  }
170
- var Pn = De["__core-js_shared__"], Vi = (function() {
170
+ var Pn = De["__core-js_shared__"], Vi = function() {
171
171
  var e = /[^.]+$/.exec(Pn && Pn.keys && Pn.keys.IE_PROTO || "");
172
172
  return e ? "Symbol(src)_1." + e : "";
173
- })();
173
+ }();
174
174
  function ps(e) {
175
175
  return !!Vi && Vi in e;
176
176
  }
@@ -570,7 +570,7 @@ function Ya() {
570
570
  HTMLFormElement: p,
571
571
  DOMParser: h,
572
572
  trustedTypes: S
573
- } = e, R = d.prototype, m = Dt(R, "cloneNode"), I = Dt(R, "remove"), F = Dt(R, "nextSibling"), V = Dt(R, "childNodes"), _ = Dt(R, "parentNode");
573
+ } = e, R = d.prototype, m = Dt(R, "cloneNode"), I = Dt(R, "remove"), F = Dt(R, "nextSibling"), V = Dt(R, "childNodes"), T = Dt(R, "parentNode");
574
574
  if (typeof r == "function") {
575
575
  const $ = n.createElement("template");
576
576
  $.content && $.content.ownerDocument && (n = $.content.ownerDocument);
@@ -578,14 +578,14 @@ function Ya() {
578
578
  let k, U = "";
579
579
  const {
580
580
  implementation: A,
581
- createNodeIterator: T,
581
+ createNodeIterator: _,
582
582
  createDocumentFragment: q,
583
583
  getElementsByTagName: W
584
584
  } = n, {
585
585
  importNode: v
586
586
  } = i;
587
587
  let g = Wi();
588
- t.isSupported = typeof Ba == "function" && typeof _ == "function" && A && A.createHTMLDocument !== void 0;
588
+ t.isSupported = typeof Ba == "function" && typeof T == "function" && A && A.createHTMLDocument !== void 0;
589
589
  const {
590
590
  MUSTACHE_EXPR: M,
591
591
  ERB_EXPR: x,
@@ -668,7 +668,7 @@ function Ya() {
668
668
  Ae && Ae(l), _t = l;
669
669
  }
670
670
  }, Ti = B({}, [...Vn, ...jn, ...bl]), Si = B({}, [...xn, ..._l]), $o = function(l) {
671
- let w = _(l);
671
+ let w = T(l);
672
672
  (!w || !w.tagName) && (w = {
673
673
  namespaceURI: bt,
674
674
  tagName: "template"
@@ -680,7 +680,7 @@ function Ya() {
680
680
  element: l
681
681
  });
682
682
  try {
683
- _(l).removeChild(l);
683
+ T(l).removeChild(l);
684
684
  } catch {
685
685
  I(l);
686
686
  }
@@ -732,7 +732,7 @@ function Ya() {
732
732
  const _e = w.body || w.documentElement;
733
733
  return l && N && _e.insertBefore(n.createTextNode(N), _e.childNodes[0] || null), bt === He ? W.call(w, st ? "html" : "body")[0] : st ? w.documentElement : _e;
734
734
  }, Ai = function(l) {
735
- return T.call(
735
+ return _.call(
736
736
  l.ownerDocument || l,
737
737
  l,
738
738
  // eslint-disable-next-line no-bitwise
@@ -763,7 +763,7 @@ function Ya() {
763
763
  if (!Ft[N] && Ci(N) && (se.tagNameCheck instanceof RegExp && Te(se.tagNameCheck, N) || se.tagNameCheck instanceof Function && se.tagNameCheck(N)))
764
764
  return !1;
765
765
  if (In && !je[N]) {
766
- const te = _(l) || l.parentNode, _e = V(l) || l.childNodes;
766
+ const te = T(l) || l.parentNode, _e = V(l) || l.childNodes;
767
767
  if (_e && te) {
768
768
  const pe = _e.length;
769
769
  for (let Me = pe - 1; Me >= 0; --Me) {
@@ -985,13 +985,13 @@ Ot.prototype.delete = Ul;
985
985
  Ot.prototype.get = Nl;
986
986
  Ot.prototype.has = Ll;
987
987
  Ot.prototype.set = Dl;
988
- var dn = (function() {
988
+ var dn = function() {
989
989
  try {
990
990
  var e = pt(Object, "defineProperty");
991
991
  return e({}, "", {}), e;
992
992
  } catch {
993
993
  }
994
- })();
994
+ }();
995
995
  function Ga(e, t, n) {
996
996
  t == "__proto__" && dn ? dn(e, t, {
997
997
  configurable: !0,
@@ -1172,7 +1172,7 @@ function Pd(e, t, n) {
1172
1172
  return pd(e);
1173
1173
  }
1174
1174
  }
1175
- var la = Object.create, Dd = /* @__PURE__ */ (function() {
1175
+ var la = Object.create, Dd = /* @__PURE__ */ function() {
1176
1176
  function e() {
1177
1177
  }
1178
1178
  return function(t) {
@@ -1184,7 +1184,7 @@ var la = Object.create, Dd = /* @__PURE__ */ (function() {
1184
1184
  var n = new e();
1185
1185
  return e.prototype = void 0, n;
1186
1186
  };
1187
- })();
1187
+ }();
1188
1188
  function $d(e) {
1189
1189
  return typeof e.constructor == "function" && !ai(e) ? Dd(Qa(e)) : {};
1190
1190
  }
@@ -1315,19 +1315,19 @@ function Et(e, t, n) {
1315
1315
  throw new TypeError(Cu);
1316
1316
  t = Xn(t) || 0, Fe(n) && (y = !!n.leading, p = "maxWait" in n, o = p ? Ou(Xn(n.maxWait) || 0, t) : o, h = "trailing" in n ? !!n.trailing : h);
1317
1317
  function S(A) {
1318
- var T = i, q = a;
1319
- return i = a = void 0, u = A, r = e.apply(q, T), r;
1318
+ var _ = i, q = a;
1319
+ return i = a = void 0, u = A, r = e.apply(q, _), r;
1320
1320
  }
1321
1321
  function R(A) {
1322
1322
  return u = A, s = setTimeout(F, t), y ? S(A) : r;
1323
1323
  }
1324
1324
  function m(A) {
1325
- var T = A - d, q = A - u, W = t - T;
1325
+ var _ = A - d, q = A - u, W = t - _;
1326
1326
  return p ? Fu(W, o - q) : W;
1327
1327
  }
1328
1328
  function I(A) {
1329
- var T = A - d, q = A - u;
1330
- return d === void 0 || T >= t || T < 0 || p && q >= o;
1329
+ var _ = A - d, q = A - u;
1330
+ return d === void 0 || _ >= t || _ < 0 || p && q >= o;
1331
1331
  }
1332
1332
  function F() {
1333
1333
  var A = Kn();
@@ -1338,15 +1338,15 @@ function Et(e, t, n) {
1338
1338
  function V(A) {
1339
1339
  return s = void 0, h && i ? S(A) : (i = a = void 0, r);
1340
1340
  }
1341
- function _() {
1341
+ function T() {
1342
1342
  s !== void 0 && clearTimeout(s), u = 0, i = d = a = s = void 0;
1343
1343
  }
1344
1344
  function k() {
1345
1345
  return s === void 0 ? r : V(Kn());
1346
1346
  }
1347
1347
  function U() {
1348
- var A = Kn(), T = I(A);
1349
- if (i = arguments, a = this, d = A, T) {
1348
+ var A = Kn(), _ = I(A);
1349
+ if (i = arguments, a = this, d = A, _) {
1350
1350
  if (s === void 0)
1351
1351
  return R(d);
1352
1352
  if (p)
@@ -1354,7 +1354,7 @@ function Et(e, t, n) {
1354
1354
  }
1355
1355
  return s === void 0 && (s = setTimeout(F, t)), r;
1356
1356
  }
1357
- return U.cancel = _, U.flush = k, U;
1357
+ return U.cancel = T, U.flush = k, U;
1358
1358
  }
1359
1359
  var ku = "__lodash_hash_undefined__";
1360
1360
  function Ru(e) {
@@ -1693,10 +1693,10 @@ function tc(e, t, n) {
1693
1693
  return r.push(ha(U)), "@@@";
1694
1694
  }), d = {}, u = {};
1695
1695
  s = ha(s).replace(uo, function(k) {
1696
- var U = Ju[k], A = U[0], T = U[1], q = U[3];
1696
+ var U = Ju[k], A = U[0], _ = U[1], q = U[3];
1697
1697
  if (d[A])
1698
1698
  throw new Error("Invalid format. " + A + " specified twice in format");
1699
- return d[A] = !0, q && (u[q] = !0), o.push(U), "(" + T + ")";
1699
+ return d[A] = !0, q && (u[q] = !0), o.push(U), "(" + _ + ")";
1700
1700
  }), Object.keys(u).forEach(function(k) {
1701
1701
  if (!d[k])
1702
1702
  throw new Error("Invalid format. " + k + " is required in specified format");
@@ -1722,7 +1722,7 @@ function tc(e, t, n) {
1722
1722
  ["hour", "getHours"],
1723
1723
  ["minute", "getMinutes"],
1724
1724
  ["second", "getSeconds"]
1725
- ], h = 0, _ = V.length; h < _; h++)
1725
+ ], h = 0, T = V.length; h < T; h++)
1726
1726
  if (d[V[h][0]] && a[V[h][0]] !== F[V[h][1]]())
1727
1727
  return null;
1728
1728
  } else if (F = 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)
@@ -2543,7 +2543,7 @@ const xc = "#6c7489", qc = "12px", Kc = "20px", Bc = ["data-testid", "data-testl
2543
2543
  }
2544
2544
  }, F = Et((v) => {
2545
2545
  if (v = v || "", u.value = v, !v.trim() && !d.value) {
2546
- y.value = T(h.value);
2546
+ y.value = _(h.value);
2547
2547
  return;
2548
2548
  }
2549
2549
  R.value && R.value.abort();
@@ -2553,7 +2553,7 @@ const xc = "#6c7489", qc = "12px", Kc = "20px", Bc = ["data-testid", "data-testl
2553
2553
  return;
2554
2554
  }
2555
2555
  U(v, g);
2556
- }, tm, { leading: !0 }), V = async (v, g) => await n(v, g), _ = async () => {
2556
+ }, tm, { leading: !0 }), V = async (v, g) => await n(v, g), T = async () => {
2557
2557
  const { data: { data: v, next: g, offset: M } } = await i(nm);
2558
2558
  return (!g || !M) && (d.value = !0), p.value = v, h.value = v.map((x) => ({
2559
2559
  ...o(x),
@@ -2563,18 +2563,18 @@ const xc = "#6c7489", qc = "12px", Kc = "20px", Bc = ["data-testid", "data-testl
2563
2563
  Jn(v) && e.allowUuidSearch ? I(async () => await k(v)) : I(async () => await V(v, g.signal), g.signal);
2564
2564
  }, A = (v) => {
2565
2565
  let g = [];
2566
- g = T(h.value), v != null && v.trim() ? y.value = g.filter((M) => e.fields.some((x) => (M[x] || "").includes(v))) : y.value = g;
2567
- }, T = (v) => e.selectedItem ? v.some((g) => g.value === e.selectedItem.value) ? v : [e.selectedItem, ...v] : v, q = (v) => {
2566
+ g = _(h.value), v != null && v.trim() ? y.value = g.filter((M) => e.fields.some((x) => (M[x] || "").includes(v))) : y.value = g;
2567
+ }, _ = (v) => e.selectedItem ? v.some((g) => g.value === e.selectedItem.value) ? v : [e.selectedItem, ...v] : v, q = (v) => {
2568
2568
  y.value = h.value.filter((g) => g.id === v);
2569
2569
  }, W = (v) => {
2570
2570
  Jn(v) && e.allowUuidSearch ? q(v) : A(v);
2571
2571
  };
2572
2572
  return ei(async () => {
2573
- await I(_);
2573
+ await I(T);
2574
2574
  const v = Gt(() => e.selectedItem, (g) => {
2575
- g && (y.value = T(h.value)), v();
2575
+ g && (y.value = _(h.value)), v();
2576
2576
  });
2577
- y.value = T(h.value);
2577
+ y.value = _(h.value);
2578
2578
  }), (v, g) => (c(), L(Gc, {
2579
2579
  id: e.id,
2580
2580
  disabled: e.fieldDisabled,
@@ -2942,18 +2942,18 @@ function fm(e) {
2942
2942
  m = R(m), X(m) ? m(m, I) : s(m, I);
2943
2943
  }
2944
2944
  }), o = (m) => {
2945
- var _;
2945
+ var T;
2946
2946
  d();
2947
2947
  const I = Z(e.formOptions, "validateAsync", !1);
2948
2948
  let F = [];
2949
2949
  if (e.schema.readonly !== !0 && e.disabled !== !0) {
2950
- const k = [], U = (_ = e.schema) == null ? void 0 : _.validator;
2950
+ const k = [], U = (T = e.schema) == null ? void 0 : T.validator;
2951
2951
  U && (Array.isArray(U) ? Se(U, (A) => {
2952
2952
  k.push(i(A));
2953
2953
  }) : k.push(i(U))), X(e.externalValidator) && k.push(e.externalValidator), Se(k, (A) => {
2954
- var T, q;
2954
+ var _, q;
2955
2955
  if (I)
2956
- F.push(A(a.value, e.schema, (T = e.model) == null ? void 0 : T.value));
2956
+ F.push(A(a.value, e.schema, (_ = e.model) == null ? void 0 : _.value));
2957
2957
  else {
2958
2958
  const W = A(a.value, e.schema, (q = e.model) == null ? void 0 : q.value);
2959
2959
  W && X(W.then) ? W.then((v) => {
@@ -2965,11 +2965,11 @@ function fm(e) {
2965
2965
  });
2966
2966
  }
2967
2967
  const V = (k) => {
2968
- var A, T;
2968
+ var A, _;
2969
2969
  let U = [];
2970
2970
  if (Se(so(k), (q) => {
2971
2971
  Array.isArray(q) && q.length > 0 ? U = U.concat(q) : ut(q) && U.push(q);
2972
- }), X((A = e.schema) == null ? void 0 : A.onValidated) && e.schema.onValidated((T = e.model) == null ? void 0 : T.value, U, e.schema), !m) {
2972
+ }), X((A = e.schema) == null ? void 0 : A.onValidated) && e.schema.onValidated((_ = e.model) == null ? void 0 : _.value, U, e.schema), !m) {
2973
2973
  const q = U.length === 0;
2974
2974
  e.emitValidated && e.emitValidated({ isValid: q, errors: U, field: e.schema });
2975
2975
  }
@@ -2982,26 +2982,26 @@ function fm(e) {
2982
2982
  Z(e.schema, "validateDebounceTime", Z(e.formOptions, "validateDebounceTime", 500))
2983
2983
  );
2984
2984
  }, s = (m, I) => {
2985
- var V, _, k;
2985
+ var V, T, k;
2986
2986
  let F = !1;
2987
- X(e.schema.set) ? (e.schema.set((V = e.model) == null ? void 0 : V.value, m), F = !0) : e.schema.model && (u(e.schema.model, m), F = !0), F && (e.emitModelUpdated && ((_ = e.model) != null && _.value) && e.emitModelUpdated({ value: m, model: e.schema.model }), X(e.schema.onChanged) && e.schema.onChanged((k = e.model) == null ? void 0 : k.value, m, I, e.schema), Z(e.formOptions, "validateAfterChanged", !1) === !0 && (Z(e.schema, "validateDebounceTime", Z(e.formOptions, "validateDebounceTime", 0)) > 0 ? r() : o()));
2987
+ X(e.schema.set) ? (e.schema.set((V = e.model) == null ? void 0 : V.value, m), F = !0) : e.schema.model && (u(e.schema.model, m), F = !0), F && (e.emitModelUpdated && ((T = e.model) != null && T.value) && e.emitModelUpdated({ value: m, model: e.schema.model }), X(e.schema.onChanged) && e.schema.onChanged((k = e.model) == null ? void 0 : k.value, m, I, e.schema), Z(e.formOptions, "validateAfterChanged", !1) === !0 && (Z(e.schema, "validateDebounceTime", Z(e.formOptions, "validateDebounceTime", 0)) > 0 ? r() : o()));
2988
2988
  }, d = () => {
2989
2989
  t.value.splice(0);
2990
2990
  }, u = (m, I) => {
2991
2991
  var A;
2992
2992
  let F = m.replace(/\[(\w+)\]/g, ".$1");
2993
2993
  F = F.replace(/^\./, "");
2994
- let V = ((A = e.model) == null ? void 0 : A.value) || {}, _ = 0;
2994
+ let V = ((A = e.model) == null ? void 0 : A.value) || {}, T = 0;
2995
2995
  const k = F.split("."), U = k.length;
2996
- for (; _ < U; ) {
2997
- const T = k[_];
2998
- if (_ < U - 1)
2999
- V[T] !== void 0 || (V[T] = {}), V = V[T];
2996
+ for (; T < U; ) {
2997
+ const _ = k[T];
2998
+ if (T < U - 1)
2999
+ V[_] !== void 0 || (V[_] = {}), V = V[_];
3000
3000
  else {
3001
- V[T] = I;
3001
+ V[_] = I;
3002
3002
  return;
3003
3003
  }
3004
- ++_;
3004
+ ++T;
3005
3005
  }
3006
3006
  }, y = (m, I = !1) => {
3007
3007
  const F = Z(e.formOptions, "fieldIdPrefix", "");
@@ -3100,8 +3100,8 @@ const Ve = {
3100
3100
  model: o.model,
3101
3101
  schema: i.schema,
3102
3102
  formOptions: i.formOptions,
3103
- emitModelUpdated: (_) => {
3104
- a("modelUpdated", _.value, _.model);
3103
+ emitModelUpdated: (T) => {
3104
+ a("modelUpdated", T.value, T.model);
3105
3105
  }
3106
3106
  });
3107
3107
  t({
@@ -3109,52 +3109,50 @@ const Ve = {
3109
3109
  });
3110
3110
  const p = z(() => {
3111
3111
  var k, U;
3112
- const _ = (k = i.schema) == null ? void 0 : k.inputType.toLowerCase();
3113
- if (_ === "number" && ((U = i.schema) == null ? void 0 : U.referenceable) === !0)
3112
+ const T = (k = i.schema) == null ? void 0 : k.inputType.toLowerCase();
3113
+ if (T === "number" && ((U = i.schema) == null ? void 0 : U.referenceable) === !0)
3114
3114
  return "text";
3115
- switch (_) {
3116
- // 'string' maps to 'text' input type
3115
+ switch (T) {
3117
3116
  case "string":
3118
3117
  return "text";
3119
- // 'datetime' maps to 'datetime-local'
3120
3118
  case "datetime":
3121
3119
  return "datetime-local";
3122
3120
  default:
3123
- return _ || "text";
3121
+ return T || "text";
3124
3122
  }
3125
3123
  }), h = {
3126
3124
  date: "YYYY-MM-DD",
3127
3125
  datetime: "YYYY-MM-DD HH:mm:ss",
3128
3126
  "datetime-local": "YYYY-MM-DDTHH:mm:ss"
3129
- }, S = (_, k) => {
3127
+ }, S = (T, k) => {
3130
3128
  var q, W;
3131
- let U = _;
3132
- const A = h[p.value] || "", T = St.parse(_, A);
3133
- T && ((q = i.schema) != null && q.format ? U = St.format(T, (W = i.schema) == null ? void 0 : W.format) : U = T.valueOf()), s(U, k);
3134
- }, R = (_, k) => {
3135
- ui(_) || (_ = NaN), s(_, k);
3136
- }, m = (_) => {
3137
- let k = _;
3129
+ let U = T;
3130
+ const A = h[p.value] || "", _ = St.parse(T, A);
3131
+ _ && ((q = i.schema) != null && q.format ? U = St.format(_, (W = i.schema) == null ? void 0 : W.format) : U = _.valueOf()), s(U, k);
3132
+ }, R = (T, k) => {
3133
+ ui(T) || (T = NaN), s(T, k);
3134
+ }, m = (T) => {
3135
+ let k = T;
3138
3136
  switch (i.schema.inputType) {
3139
3137
  case "number":
3140
3138
  case "range":
3141
- yo(parseFloat(_)) && (k = parseFloat(_));
3139
+ yo(parseFloat(T)) && (k = parseFloat(T));
3142
3140
  break;
3143
3141
  }
3144
- y.value = k, s(k, _);
3145
- }, I = (_) => {
3146
- y.value = _, s(_, _);
3142
+ y.value = k, s(k, T);
3143
+ }, I = (T) => {
3144
+ y.value = T, s(T, T);
3147
3145
  }, F = ne(null), V = () => {
3148
- var _;
3149
- X(F.value) && ((_ = F.value) == null || _.flush());
3146
+ var T;
3147
+ X(F.value) && ((T = F.value) == null || T.flush());
3150
3148
  };
3151
3149
  return ei(() => {
3152
3150
  switch (p.value) {
3153
3151
  case "number":
3154
3152
  case "range":
3155
3153
  F.value = Et(
3156
- (_, k) => {
3157
- R(_, k);
3154
+ (T, k) => {
3155
+ R(T, k);
3158
3156
  },
3159
3157
  parseInt(Z(i.schema, "debounceFormatTimeout", 1e3)),
3160
3158
  {
@@ -3167,8 +3165,8 @@ const Ve = {
3167
3165
  case "datetime":
3168
3166
  case "datetime-local":
3169
3167
  F.value = Et(
3170
- (_, k) => {
3171
- S(_, k);
3168
+ (T, k) => {
3169
+ S(T, k);
3172
3170
  },
3173
3171
  parseInt(Z(i.schema, "debounceFormatTimeout", 1e3)),
3174
3172
  {
@@ -3180,10 +3178,10 @@ const Ve = {
3180
3178
  }
3181
3179
  }), ti(() => {
3182
3180
  p.value === "checkbox" ? console.warn("The use of 'checkbox' inputType with 'input' type fields is deprecated. Use 'checkbox' type instead.") : p.value === "radio" ? console.warn("The use of 'radio' inputType with 'input' type fields is deprecated. Use 'radio' type instead.") : p.value === "file" && console.warn("The 'file' type in input field is deprecated. Use 'file' field instead.");
3183
- }), (_, k) => {
3181
+ }), (T, k) => {
3184
3182
  const U = D("KInput");
3185
3183
  return c(), b("div", gm, [
3186
- O(U, Xe(_.$attrs, {
3184
+ O(U, Xe(T.$attrs, {
3187
3185
  id: E(d)(e.schema),
3188
3186
  autocomplete: e.schema.autocomplete,
3189
3187
  class: e.schema.fieldClasses,
@@ -5103,22 +5101,22 @@ const th = (e) => {
5103
5101
  fetchedItemsKey: "data",
5104
5102
  searchKeys: ["id", "name"]
5105
5103
  }), S = z(() => y.value ? r(y.value) : ""), R = (V) => {
5106
- let _ = `${s.apiBaseUrl}${i[s.app].getOne}`;
5107
- return s.app === "konnect" ? _ = _.replace(/{controlPlaneId}/gi, (s == null ? void 0 : s.controlPlaneId) || "") : s.app === "kongManager" && (_ = _.replace(/\/{workspace}/gi, s != null && s.workspace ? `/${s.workspace}` : "")), _ = _.replace(/{id}/gi, String(V)), _;
5104
+ let T = `${s.apiBaseUrl}${i[s.app].getOne}`;
5105
+ return s.app === "konnect" && (T = T.replace(/{controlPlaneId}/gi, (s == null ? void 0 : s.controlPlaneId) || "")), T = T.replace(/\/{workspace}/gi, s != null && s.workspace ? `/${s.workspace}` : "").replace(/{id}/gi, String(V)), T;
5108
5106
  }, m = z(() => {
5109
- const V = (h.value || []).map((_) => ({ label: _.id, name: _.name, value: _.id, type: _.type, tag: th(_) })).filter((_) => _.type === "redis-ce" || _.type === "redis-ee");
5110
- return a.redisType !== "all" ? V.filter((_) => _.type === a.redisType) : V;
5107
+ const V = (h.value || []).map((T) => ({ label: T.id, name: T.name, value: T.id, type: T.type, tag: th(T) })).filter((T) => T.type === "redis-ce" || T.type === "redis-ee");
5108
+ return a.redisType !== "all" ? V.filter((T) => T.type === a.redisType) : V;
5111
5109
  }), { axiosInstance: I } = er(s == null ? void 0 : s.axiosRequestConfig), F = async (V) => {
5112
5110
  if (V) {
5113
5111
  a.updateRedisModel(V);
5114
5112
  try {
5115
- const _ = await I.get(R(V));
5116
- if (_.data.config) {
5117
- const k = Object.assign(_.data, _.data.config);
5113
+ const T = await I.get(R(V));
5114
+ if (T.data.config) {
5115
+ const k = Object.assign(T.data, T.data.config);
5118
5116
  delete k.config, o.value = k;
5119
5117
  }
5120
- } catch (_) {
5121
- console.error(_);
5118
+ } catch (T) {
5119
+ console.error(T);
5122
5120
  }
5123
5121
  }
5124
5122
  };
@@ -5126,7 +5124,7 @@ const th = (e) => {
5126
5124
  V && await p();
5127
5125
  }), ti(() => {
5128
5126
  p(), a.defaultRedisConfigItem && F(a.defaultRedisConfigItem);
5129
- }), (V, _) => {
5127
+ }), (V, T) => {
5130
5128
  const k = D("KLabel"), U = D("KBadge"), A = D("KSelect");
5131
5129
  return c(), b(Y, null, [
5132
5130
  f("div", fh, [
@@ -5142,7 +5140,7 @@ const th = (e) => {
5142
5140
  ]),
5143
5141
  _: 1
5144
5142
  }, 8, ["info"]),
5145
- _[2] || (_[2] = f("div", { class: "shared-redis-config-title" }, null, -1)),
5143
+ T[2] || (T[2] = f("div", { class: "shared-redis-config-title" }, null, -1)),
5146
5144
  O(A, {
5147
5145
  class: "redis-config-select-trigger",
5148
5146
  "data-testid": "redis-config-select-trigger",
@@ -5152,24 +5150,24 @@ const th = (e) => {
5152
5150
  loading: E(u),
5153
5151
  "model-value": e.defaultRedisConfigItem,
5154
5152
  placeholder: E(t)("redis.shared_configuration.selector.placeholder"),
5155
- onChange: _[1] || (_[1] = (T) => F(T == null ? void 0 : T.value)),
5153
+ onChange: T[1] || (T[1] = (_) => F(_ == null ? void 0 : _.value)),
5156
5154
  onQueryChange: E(d)
5157
5155
  }, {
5158
- "selected-item-template": C(({ item: T }) => [
5159
- f("div", hh, P(T.name), 1)
5156
+ "selected-item-template": C(({ item: _ }) => [
5157
+ f("div", hh, P(_.name), 1)
5160
5158
  ]),
5161
- "item-template": C(({ item: T }) => [
5159
+ "item-template": C(({ item: _ }) => [
5162
5160
  f("div", {
5163
5161
  class: "plugin-form-redis-configuration-dropdown-item",
5164
- "data-testid": `redis-configuration-dropdown-item-${T.name}`
5162
+ "data-testid": `redis-configuration-dropdown-item-${_.name}`
5165
5163
  }, [
5166
- f("span", gh, P(T.name), 1),
5164
+ f("span", gh, P(_.name), 1),
5167
5165
  O(U, {
5168
5166
  appearance: "info",
5169
5167
  class: "select-item-label"
5170
5168
  }, {
5171
5169
  default: C(() => [
5172
- ce(P(T.tag), 1)
5170
+ ce(P(_.tag), 1)
5173
5171
  ]),
5174
5172
  _: 2
5175
5173
  }, 1024)
@@ -5182,7 +5180,7 @@ const th = (e) => {
5182
5180
  f("div", {
5183
5181
  class: "new-redis-config-area",
5184
5182
  "data-testid": "new-redis-config-area",
5185
- onClick: _[0] || (_[0] = (T) => V.$emit("showNewPartialModal"))
5183
+ onClick: T[0] || (T[0] = (_) => V.$emit("showNewPartialModal"))
5186
5184
  }, [
5187
5185
  O(E(ni), { size: E(qc) }, null, 8, ["size"]),
5188
5186
  f("span", null, P(E(t)("redis.shared_configuration.create_new_configuration", { type: E(Aa)(e.redisType) })), 1)
@@ -5200,7 +5198,7 @@ const th = (e) => {
5200
5198
  ], 64);
5201
5199
  };
5202
5200
  }
5203
- }), Ea = /* @__PURE__ */ G(_h, [["__scopeId", "data-v-e9b166a3"]]), Th = { key: 0 }, Sh = {
5201
+ }), Ea = /* @__PURE__ */ G(_h, [["__scopeId", "data-v-614666d9"]]), Th = { key: 0 }, Sh = {
5204
5202
  class: "redis-config-radio-group",
5205
5203
  "data-testid": "redis-config-radio-group"
5206
5204
  }, wh = {
@@ -5270,12 +5268,12 @@ const th = (e) => {
5270
5268
  m ? u.value && i("partialToggled", "redis", { partials: u.value }) : i("partialToggled", "partials", d.value);
5271
5269
  }), ti(() => {
5272
5270
  var m, I, F;
5273
- if (n.model && (d.value = n.field.fields.reduce((V, _) => (Object.keys(n.model).includes(_.model) && (V[_.model] = n.model[_.model]), V), {})), (F = (I = (m = n == null ? void 0 : n.model) == null ? void 0 : m.partials) == null ? void 0 : I[0]) != null && F.id) {
5271
+ if (n.model && (d.value = n.field.fields.reduce((V, T) => (Object.keys(n.model).includes(T.model) && (V[T.model] = n.model[T.model]), V), {})), (F = (I = (m = n == null ? void 0 : n.model) == null ? void 0 : m.partials) == null ? void 0 : I[0]) != null && F.id) {
5274
5272
  const V = n.model.partials[0].id;
5275
5273
  r.value = !0, s.value = V;
5276
5274
  }
5277
5275
  }), (m, I) => {
5278
- const F = D("KAlert"), V = D("KBadge"), _ = D("KRadio"), k = D("KCard");
5276
+ const F = D("KAlert"), V = D("KBadge"), T = D("KRadio"), k = D("KCard");
5279
5277
  return c(), b("div", null, [
5280
5278
  o.value ? (c(), b("div", Th, [
5281
5279
  O(F, {
@@ -5297,7 +5295,7 @@ const th = (e) => {
5297
5295
  }, {
5298
5296
  default: C(() => [
5299
5297
  f("div", Sh, [
5300
- O(_, {
5298
+ O(T, {
5301
5299
  modelValue: r.value,
5302
5300
  "onUpdate:modelValue": I[1] || (I[1] = (U) => r.value = U),
5303
5301
  card: "",
@@ -5317,7 +5315,7 @@ const th = (e) => {
5317
5315
  ]),
5318
5316
  _: 1
5319
5317
  }, 8, ["modelValue", "description", "label"]),
5320
- O(_, {
5318
+ O(T, {
5321
5319
  modelValue: r.value,
5322
5320
  "onUpdate:modelValue": I[2] || (I[2] = (U) => r.value = U),
5323
5321
  card: "",
@@ -6243,33 +6241,33 @@ const xh = /* @__PURE__ */ G(Rh, [["render", jh], ["__scopeId", "data-v-7eb80ef6
6243
6241
  var U;
6244
6242
  Yt(Le, (U = hn()) == null ? void 0 : U[Ct]);
6245
6243
  const t = e, n = ne("zeroSsl"), i = ne("shm"), a = z(() => {
6246
- var T;
6244
+ var _;
6247
6245
  const A = {};
6248
- if ((T = t.formSchema) != null && T.fields)
6246
+ if ((_ = t.formSchema) != null && _.fields)
6249
6247
  for (const q of t.formSchema.fields)
6250
6248
  A[q.model] = q;
6251
6249
  return A;
6252
6250
  }), o = z(() => {
6253
- var T;
6251
+ var _;
6254
6252
  const A = Ze(Hh);
6255
6253
  for (const q of A.fields) {
6256
- const W = (T = a.value[q.model]) == null ? void 0 : T.help;
6254
+ const W = (_ = a.value[q.model]) == null ? void 0 : _.help;
6257
6255
  q.help === void 0 && typeof W == "string" && (q.help = W);
6258
6256
  }
6259
6257
  return A;
6260
6258
  }), r = z(() => {
6261
- var T;
6259
+ var _;
6262
6260
  const A = Ze(Yh);
6263
6261
  for (const q of A.fields) {
6264
- const W = (T = a.value[q.model]) == null ? void 0 : T.help;
6262
+ const W = (_ = a.value[q.model]) == null ? void 0 : _.help;
6265
6263
  q.help === void 0 && typeof W == "string" && (q.help = W);
6266
6264
  }
6267
6265
  return A;
6268
6266
  }), s = z(() => {
6269
- var T;
6267
+ var _;
6270
6268
  const A = Ze(Gh);
6271
6269
  for (const q of A.fields) {
6272
- const W = (T = a.value[q.model]) == null ? void 0 : T.help;
6270
+ const W = (_ = a.value[q.model]) == null ? void 0 : _.help;
6273
6271
  q.help === void 0 && typeof W == "string" && (q.help = W);
6274
6272
  }
6275
6273
  return A;
@@ -6277,20 +6275,20 @@ const xh = /* @__PURE__ */ G(Rh, [["render", jh], ["__scopeId", "data-v-7eb80ef6
6277
6275
  fields: t.formSchema.fields.filter((A) => !A.model.startsWith("config") && A.model !== "tags")
6278
6276
  })), u = z(() => ({
6279
6277
  fields: o.value.fields.filter(
6280
- (T) => !r.value.fields.some((q) => q.model === T.model) && !s.value.fields.some((q) => q.model === T.model)
6278
+ (_) => !r.value.fields.some((q) => q.model === _.model) && !s.value.fields.some((q) => q.model === _.model)
6281
6279
  )
6282
6280
  })), y = z(() => ({
6283
- fields: t.formSchema.fields.filter((T) => T.model.startsWith("config-storage") && !T.model.startsWith("config-storage_config-consul") && !T.model.startsWith("config-storage_config-redis") && !T.model.startsWith("config-storage_config-shm") && !T.model.startsWith("config-storage_config-vault"))
6281
+ fields: t.formSchema.fields.filter((_) => _.model.startsWith("config-storage") && !_.model.startsWith("config-storage_config-consul") && !_.model.startsWith("config-storage_config-redis") && !_.model.startsWith("config-storage_config-shm") && !_.model.startsWith("config-storage_config-vault"))
6284
6282
  })), p = z(() => ({
6285
- fields: t.formSchema.fields.filter((T) => T.model.startsWith("config-storage_config-consul"))
6283
+ fields: t.formSchema.fields.filter((_) => _.model.startsWith("config-storage_config-consul"))
6286
6284
  })), h = z(() => ({
6287
- fields: t.formSchema.fields.filter((T) => T.model.startsWith("config-storage_config-redis"))
6285
+ fields: t.formSchema.fields.filter((_) => _.model.startsWith("config-storage_config-redis"))
6288
6286
  })), S = z(() => ({
6289
- fields: t.formSchema.fields.filter((T) => T.model.startsWith("config-storage_config-shm"))
6287
+ fields: t.formSchema.fields.filter((_) => _.model.startsWith("config-storage_config-shm"))
6290
6288
  })), R = z(() => ({
6291
- fields: t.formSchema.fields.filter((T) => T.model.startsWith("config-storage_config-vault"))
6289
+ fields: t.formSchema.fields.filter((_) => _.model.startsWith("config-storage_config-vault"))
6292
6290
  })), m = z(() => ({
6293
- fields: t.formSchema.fields.filter((A) => A.model.startsWith("config") && !u.value.fields.filter((T) => T.model === A.model).length && !y.value.fields.filter((T) => T.model === A.model).length || A.model === "tags")
6291
+ fields: t.formSchema.fields.filter((A) => A.model.startsWith("config") && !u.value.fields.filter((_) => _.model === A.model).length && !y.value.fields.filter((_) => _.model === A.model).length || A.model === "tags")
6294
6292
  })), I = z(() => t.formModel.id && t.isEditing || !t.isEditing), F = [
6295
6293
  {
6296
6294
  hash: "#general",
@@ -6322,12 +6320,12 @@ const xh = /* @__PURE__ */ G(Rh, [["render", jh], ["__scopeId", "data-v-7eb80ef6
6322
6320
  ei(() => {
6323
6321
  n.value === "zeroSsl" && (t.formModel["config-api_uri"] = "https://acme.zerossl.com/v2/DV90");
6324
6322
  });
6325
- const _ = (A) => {
6323
+ const T = (A) => {
6326
6324
  n.value = A.value, (A.value === "zeroSsl" || A.value === "other") && (A.value === "zeroSsl" ? t.formModel["config-api_uri"] = "https://acme.zerossl.com/v2/DV90" : t.formModel["config-api_uri"] = "https://acme.example.com/", t.formModel["config-tos_accepted"] = !1), A.value === "letsEncrypt" && (t.formModel["config-api_uri"] = "https://acme-v02.api.letsencrypt.org/directory", t.formModel["config-eab_hmac_key"] = "", t.formModel["config-eab_kid"] = ""), t.onModelUpdated();
6327
- }, k = (A, T) => {
6328
- T === "config-storage" && (i.value = A), t.onModelUpdated();
6325
+ }, k = (A, _) => {
6326
+ _ === "config-storage" && (i.value = A), t.onModelUpdated();
6329
6327
  };
6330
- return (A, T) => {
6328
+ return (A, _) => {
6331
6329
  const q = D("KSelect"), W = D("KTabs");
6332
6330
  return c(), b("div", null, [
6333
6331
  e.formModel.id && e.isEditing || !e.isEditing ? (c(), L(ue, {
@@ -6341,10 +6339,10 @@ const xh = /* @__PURE__ */ G(Rh, [["render", jh], ["__scopeId", "data-v-7eb80ef6
6341
6339
  O(W, { tabs: F }, {
6342
6340
  general: C(() => [
6343
6341
  f("div", Wh, [
6344
- T[0] || (T[0] = f("div", { class: "header-wrapper" }, [
6342
+ _[0] || (_[0] = f("div", { class: "header-wrapper" }, [
6345
6343
  f("span", { class: "section-header" }, "General Configuration Settings")
6346
6344
  ], -1)),
6347
- T[1] || (T[1] = f("div", { class: "description" }, " Parameters for enabling the ACME plugin. ", -1)),
6345
+ _[1] || (_[1] = f("div", { class: "description" }, " Parameters for enabling the ACME plugin. ", -1)),
6348
6346
  I.value ? (c(), L(ue, {
6349
6347
  key: 0,
6350
6348
  model: e.formModel,
@@ -6352,12 +6350,12 @@ const xh = /* @__PURE__ */ G(Rh, [["render", jh], ["__scopeId", "data-v-7eb80ef6
6352
6350
  schema: u.value,
6353
6351
  onModelUpdated: e.onModelUpdated
6354
6352
  }, null, 8, ["model", "options", "schema", "onModelUpdated"])) : K("", !0),
6355
- T[2] || (T[2] = f("hr", null, null, -1)),
6353
+ _[2] || (_[2] = f("hr", null, null, -1)),
6356
6354
  O(q, {
6357
6355
  class: "issuer-select",
6358
6356
  items: V,
6359
6357
  label: "Issuer",
6360
- onChange: _
6358
+ onChange: T
6361
6359
  }),
6362
6360
  f("div", Zh, [
6363
6361
  n.value === "letsEncrypt" ? (c(), L(ue, {
@@ -6379,10 +6377,10 @@ const xh = /* @__PURE__ */ G(Rh, [["render", jh], ["__scopeId", "data-v-7eb80ef6
6379
6377
  ]),
6380
6378
  storage: C(() => [
6381
6379
  f("div", Xh, [
6382
- T[3] || (T[3] = f("div", { class: "header-wrapper" }, [
6380
+ _[3] || (_[3] = f("div", { class: "header-wrapper" }, [
6383
6381
  f("span", { class: "section-header" }, "Storage Configuration Settings")
6384
6382
  ], -1)),
6385
- T[4] || (T[4] = f("div", { class: "description" }, " Parameters for setting up storage. ", -1)),
6383
+ _[4] || (_[4] = f("div", { class: "description" }, " Parameters for setting up storage. ", -1)),
6386
6384
  I.value ? (c(), L(ue, {
6387
6385
  key: 0,
6388
6386
  model: e.formModel,
@@ -6424,10 +6422,10 @@ const xh = /* @__PURE__ */ G(Rh, [["render", jh], ["__scopeId", "data-v-7eb80ef6
6424
6422
  ]),
6425
6423
  advanced: C(() => [
6426
6424
  f("div", Qh, [
6427
- T[5] || (T[5] = f("div", { class: "header-wrapper" }, [
6425
+ _[5] || (_[5] = f("div", { class: "header-wrapper" }, [
6428
6426
  f("span", { class: "section-header" }, "Advanced Configuration Settings")
6429
6427
  ], -1)),
6430
- T[6] || (T[6] = f("div", { class: "description" }, " Advanced parameters for manually configuring the ACME plugin. ", -1)),
6428
+ _[6] || (_[6] = f("div", { class: "description" }, " Advanced parameters for manually configuring the ACME plugin. ", -1)),
6431
6429
  I.value ? (c(), L(ue, {
6432
6430
  key: 0,
6433
6431
  model: e.formModel,
@@ -6594,7 +6592,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
6594
6592
  var v, g, M, x;
6595
6593
  return ((v = o.formModel) == null ? void 0 : v["config-error_message"]) ?? ((x = (M = (g = o.formSchema) == null ? void 0 : g.fields) == null ? void 0 : M.find((H) => H.model === "config-error_message")) == null ? void 0 : x.default);
6596
6594
  }
6597
- ), _ = (v, g) => {
6595
+ ), T = (v, g) => {
6598
6596
  if (g === p.value) {
6599
6597
  o.onModelUpdated([], "config-limit"), o.onModelUpdated([], "config-window_size"), Ui(() => {
6600
6598
  p.value = void 0;
@@ -6616,7 +6614,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
6616
6614
  p.value !== void 0 && (p.value = void 0);
6617
6615
  const M = Ze(((x = o.formModel) == null ? void 0 : x["config-window_size"]) ?? []);
6618
6616
  M[v] = g, o.onModelUpdated(M, "config-window_size");
6619
- }, T = (v) => {
6617
+ }, _ = (v) => {
6620
6618
  var x, H;
6621
6619
  p.value !== void 0 && (p.value = void 0);
6622
6620
  const g = Ze(((x = o.formModel) == null ? void 0 : x["config-limit"]) ?? []), M = Ze(((H = o.formModel) == null ? void 0 : H["config-window_size"]) ?? []);
@@ -6735,7 +6733,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
6735
6733
  }, 8, ["disabled", "onClick"]),
6736
6734
  O(ye, {
6737
6735
  appearance: "tertiary",
6738
- onClick: () => T(ie)
6736
+ onClick: () => _(ie)
6739
6737
  }, {
6740
6738
  default: C(() => [
6741
6739
  O(E(ni))
@@ -6763,7 +6761,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
6763
6761
  O(Be, {
6764
6762
  appearance: p.value === `${S.value}-${ie}` ? "info" : "decorative",
6765
6763
  class: "rla-form-request-limits-examples-badge",
6766
- onClick: () => _(j, `${S.value}-${ie}`)
6764
+ onClick: () => T(j, `${S.value}-${ie}`)
6767
6765
  }, {
6768
6766
  default: C(() => [
6769
6767
  ce(P(j.label), 1)