@kong-ui-public/forms 4.13.6-pr.2204.7b095980a.0 → 4.13.6-pr.2204.b9dce8c7f.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
@@ -1,4 +1,4 @@
1
- import { openBlock as d, createElementBlock as g, createElementVNode as m, toDisplayString as U, normalizeClass as W, createVNode as C, defineComponent as re, provide as it, resolveComponent as k, withCtx as w, renderSlot as fe, unref as M, createTextVNode as te, createBlock as O, resolveDynamicComponent as ne, Fragment as K, renderList as J, mergeModels as Yt, useModel as Ui, createSlots as at, ref as ie, onMounted as Vt, computed as L, toRefs as Le, inject as st, onBeforeMount as Pt, mergeProps as Ee, Transition as $i, createCommentVNode as j, resolveDirective as Vn, withDirectives as ce, vModelText as Je, vModelCheckbox as Vi, vModelSelect as Pi, vModelDynamic as Pn, isRef as xe, toRef as Ri, vModelRadio as ji, vShow as Ni, watch as Rt, normalizeProps as Li, guardReactiveProps as qi, useSlots as ft, nextTick as Ht } from "vue";
1
+ import { openBlock as d, createElementBlock as v, createElementVNode as c, toDisplayString as F, normalizeClass as W, createVNode as C, defineComponent as re, provide as it, resolveComponent as U, withCtx as M, renderSlot as fe, unref as T, createTextVNode as ne, createBlock as O, resolveDynamicComponent as ie, Fragment as K, renderList as J, mergeModels as Yt, useModel as Ui, createSlots as at, ref as Q, computed as L, onMounted as Vt, toRefs as Le, inject as st, onBeforeMount as Pt, mergeProps as Ee, Transition as $i, createCommentVNode as R, resolveDirective as Vn, withDirectives as ce, vModelText as Je, vModelCheckbox as Vi, vModelSelect as Pi, vModelDynamic as Pn, isRef as xe, toRef as Ri, vModelRadio as ji, vShow as Ni, watch as Rt, normalizeProps as Li, guardReactiveProps as qi, useSlots as ft, nextTick as Ht } from "vue";
2
2
  import { createI18n as ve } from "@kong-ui-public/i18n";
3
3
  import { TrashIcon as rt, ProgressIcon as Ki, AddIcon as jt, RemoveIcon as Di } from "@kong/icons";
4
4
  import { useStringHelpers as Bi, useErrors as zi, useDebouncedFilter as Yi, useAxios as Hi } from "@kong-ui-public/entities-shared";
@@ -9,8 +9,8 @@ function Rn(e, t) {
9
9
  }
10
10
  function xi(e) {
11
11
  return function(t, n, i) {
12
- for (var a = -1, r = Object(t), o = i(t), s = o.length; s--; ) {
13
- var l = o[++a];
12
+ for (var a = -1, r = Object(t), s = i(t), o = s.length; o--; ) {
13
+ var l = s[++a];
14
14
  if (n(r[l], l, r) === !1)
15
15
  break;
16
16
  }
@@ -85,14 +85,14 @@ var zn = typeof exports == "object" && exports && !exports.nodeType && exports,
85
85
  }
86
86
  }(), Jt = Ye && Ye.isTypedArray, Ka = Jt ? Nt(Jt) : La, Da = Object.prototype, Ba = Da.hasOwnProperty;
87
87
  function Yn(e, t) {
88
- var n = $e(e), i = !n && la(e), a = !n && !i && Kn(e), r = !n && !i && !a && Ka(e), o = n || i || a || r, s = o ? Wi(e.length, String) : [], l = s.length;
88
+ var n = $e(e), i = !n && la(e), a = !n && !i && Kn(e), r = !n && !i && !a && Ka(e), s = n || i || a || r, o = s ? Wi(e.length, String) : [], l = o.length;
89
89
  for (var u in e)
90
- (t || Ba.call(e, u)) && !(o && // Safari 9 has enumerable `arguments.length` in strict mode.
90
+ (t || Ba.call(e, u)) && !(s && // Safari 9 has enumerable `arguments.length` in strict mode.
91
91
  (u == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
92
92
  a && (u == "offset" || u == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
93
93
  r && (u == "buffer" || u == "byteLength" || u == "byteOffset") || // Skip index properties.
94
- Dn(u, l))) && s.push(u);
95
- return s;
94
+ Dn(u, l))) && o.push(u);
95
+ return o;
96
96
  }
97
97
  var za = Object.prototype;
98
98
  function Lt(e) {
@@ -139,7 +139,7 @@ function er(e, t) {
139
139
  return n;
140
140
  if (!ht(n))
141
141
  return e(n, i);
142
- for (var a = n.length, r = -1, o = Object(n); ++r < a && i(o[r], r, o) !== !1; )
142
+ for (var a = n.length, r = -1, s = Object(n); ++r < a && i(s[r], r, s) !== !1; )
143
143
  ;
144
144
  return n;
145
145
  };
@@ -335,8 +335,8 @@ function Kt(e, t) {
335
335
  var i = arguments, a = t ? t.apply(this, i) : i[0], r = n.cache;
336
336
  if (r.has(a))
337
337
  return r.get(a);
338
- var o = e.apply(this, i);
339
- return n.cache = r.set(a, o) || r, o;
338
+ var s = e.apply(this, i);
339
+ return n.cache = r.set(a, s) || r, s;
340
340
  };
341
341
  return n.cache = new (Kt.Cache || Ce)(), n;
342
342
  }
@@ -393,10 +393,10 @@ function B(e, t, n) {
393
393
  var i = e == null ? void 0 : es(e, t);
394
394
  return i === void 0 ? n : i;
395
395
  }
396
- function X(e) {
396
+ function ee(e) {
397
397
  return e == null;
398
398
  }
399
- const de = "kong-ui-forms-api", ts = "kong-ui-forms-config", ns = "redis-partial-list-fetcher-key", Lm = "redis-partial-info", Ge = "autofill", ge = "autofillSlot", we = {
399
+ const de = "kong-ui-forms-api", ts = "kong-ui-forms-config", ns = "redis-partial-list-fetcher-key", Dm = "redis-partial-info", Ge = "autofill", ge = "autofillSlot", we = {
400
400
  CREATE_NOT_FROM_ENTITY: "CREATE_NOT_FROM_ENTITY",
401
401
  CREATE_FROM_ENTITY: "CREATE_FROM_ENTITY",
402
402
  UPDATE_ENTITY: "UPDATE_ENTITY",
@@ -458,9 +458,9 @@ function Zn(e, t, n) {
458
458
  function _t(e, t, n, i) {
459
459
  var a = !n;
460
460
  n || (n = {});
461
- for (var r = -1, o = t.length; ++r < o; ) {
462
- var s = t[r], l = void 0;
463
- l === void 0 && (l = e[s]), a ? Wn(n, s, l) : Zn(n, s, l);
461
+ for (var r = -1, s = t.length; ++r < s; ) {
462
+ var o = t[r], l = void 0;
463
+ l === void 0 && (l = e[o]), a ? Wn(n, o, l) : Zn(n, o, l);
464
464
  }
465
465
  return n;
466
466
  }
@@ -504,8 +504,8 @@ function bs(e, t) {
504
504
  }
505
505
  function _s(e, t) {
506
506
  for (var n = -1, i = e == null ? 0 : e.length, a = 0, r = []; ++n < i; ) {
507
- var o = e[n];
508
- t(o, n, e) && (r[a++] = o);
507
+ var s = e[n];
508
+ t(s, n, e) && (r[a++] = s);
509
509
  }
510
510
  return r;
511
511
  }
@@ -650,41 +650,41 @@ var gn = Ye && Ye.isSet, go = gn ? Nt(gn) : po, vo = 1, yo = 2, bo = 4, ii = "[o
650
650
  H[ii] = H[_o] = H[Uo] = H[$o] = H[wo] = H[Mo] = H[Vo] = H[Po] = H[Ro] = H[jo] = H[No] = H[Io] = H[Co] = H[ri] = H[Ao] = H[Oo] = H[Eo] = H[Fo] = H[Lo] = H[qo] = H[Ko] = H[Do] = !0;
651
651
  H[So] = H[ai] = H[ko] = !1;
652
652
  function Xe(e, t, n, i, a, r) {
653
- var o, s = t & vo, l = t & yo, u = t & bo;
654
- if (o !== void 0)
655
- return o;
653
+ var s, o = t & vo, l = t & yo, u = t & bo;
654
+ if (s !== void 0)
655
+ return s;
656
656
  if (!he(e))
657
657
  return e;
658
658
  var h = $e(e);
659
659
  if (h) {
660
- if (o = Rs(e), !s)
661
- return bs(e, o);
660
+ if (s = Rs(e), !o)
661
+ return bs(e, s);
662
662
  } else {
663
- var f = Se(e), p = f == ai || f == To;
663
+ var f = Se(e), g = f == ai || f == To;
664
664
  if (Kn(e))
665
- return ys(e, s);
666
- if (f == ri || f == ii || p && !a) {
667
- if (o = l || p ? {} : uo(e), !s)
668
- return l ? Is(e, gs(o, e)) : Ss(e, cs(o, e));
665
+ return ys(e, o);
666
+ if (f == ri || f == ii || g && !a) {
667
+ if (s = l || g ? {} : uo(e), !o)
668
+ return l ? Is(e, gs(s, e)) : Ss(e, cs(s, e));
669
669
  } else {
670
670
  if (!H[f])
671
671
  return a ? e : {};
672
- o = oo(e, f, s);
672
+ s = oo(e, f, o);
673
673
  }
674
674
  }
675
675
  r || (r = new We());
676
- var F = r.get(e);
677
- if (F)
678
- return F;
679
- r.set(e, o), go(e) ? e.forEach(function(y) {
680
- o.add(Xe(y, t, n, y, e, r));
681
- }) : fo(e) && e.forEach(function(y, A) {
682
- o.set(A, Xe(y, t, n, A, e, r));
676
+ var k = r.get(e);
677
+ if (k)
678
+ return k;
679
+ r.set(e, s), go(e) ? e.forEach(function(p) {
680
+ s.add(Xe(p, t, n, p, e, r));
681
+ }) : fo(e) && e.forEach(function(p, b) {
682
+ s.set(b, Xe(p, t, n, b, e, r));
683
683
  });
684
- var T = u ? l ? As : Cs : l ? wt : pt, c = h ? void 0 : T(e);
685
- return Rn(c || e, function(y, A) {
686
- c && (A = y, y = e[A]), Zn(o, A, Xe(y, t, n, A, e, r));
687
- }), o;
684
+ var N = u ? l ? As : Cs : l ? wt : pt, m = h ? void 0 : N(e);
685
+ return Rn(m || e, function(p, b) {
686
+ m && (b = p, p = e[b]), Zn(s, b, Xe(p, t, n, b, e, r));
687
+ }), s;
688
688
  }
689
689
  var Bo = 1, zo = 4;
690
690
  function Te(e) {
@@ -707,26 +707,26 @@ const si = {
707
707
  featured: this.fieldFeatured(e),
708
708
  required: this.fieldRequired(e)
709
709
  };
710
- return Array.isArray(e.styleClasses) ? ue(e.styleClasses, (i) => n[i] = !0) : Re(e.styleClasses) && (n[e.styleClasses] = !0), X(e.type) || (n["field-" + e.type] = !0), n;
710
+ return Array.isArray(e.styleClasses) ? ue(e.styleClasses, (i) => n[i] = !0) : Re(e.styleClasses) && (n[e.styleClasses] = !0), ee(e.type) || (n["field-" + e.type] = !0), n;
711
711
  },
712
712
  fieldErrors(e) {
713
713
  return this.errors.filter((n) => n.field.fieldName === e.fieldName).map((n) => n.error);
714
714
  },
715
715
  // Get disabled attr of field
716
716
  fieldDisabled(e) {
717
- return Y(e.disabled) ? e.disabled.call(this, this.model, e, this) : X(e.disabled) ? !1 : e.disabled;
717
+ return Y(e.disabled) ? e.disabled.call(this, this.model, e, this) : ee(e.disabled) ? !1 : e.disabled;
718
718
  },
719
719
  // Get readonly prop of field
720
720
  fieldReadonly(e) {
721
- return Y(e.readonly) ? e.readonly.call(this, this.model, e, this) : X(e.readonly) ? !1 : e.readonly;
721
+ return Y(e.readonly) ? e.readonly.call(this, this.model, e, this) : ee(e.readonly) ? !1 : e.readonly;
722
722
  },
723
723
  // Get featured prop of field
724
724
  fieldFeatured(e) {
725
- return Y(e.featured) ? e.featured.call(this, this.model, e, this) : X(e.featured) ? !1 : e.featured;
725
+ return Y(e.featured) ? e.featured.call(this, this.model, e, this) : ee(e.featured) ? !1 : e.featured;
726
726
  },
727
727
  // Get required prop of field
728
728
  fieldRequired(e) {
729
- return Y(e.required) ? e.required.call(this, this.model, e, this) : X(e.required) ? !1 : e.required;
729
+ return Y(e.required) ? e.required.call(this, this.model, e, this) : ee(e.required) ? !1 : e.required;
730
730
  }
731
731
  }
732
732
  };
@@ -760,51 +760,51 @@ function Ut(e) {
760
760
  }
761
761
  var el = "Expected a function", tl = Math.max, nl = Math.min;
762
762
  function He(e, t, n) {
763
- var i, a, r, o, s, l, u = 0, h = !1, f = !1, p = !0;
763
+ var i, a, r, s, o, l, u = 0, h = !1, f = !1, g = !0;
764
764
  if (typeof e != "function")
765
765
  throw new TypeError(el);
766
- t = Ut(t) || 0, he(n) && (h = !!n.leading, f = "maxWait" in n, r = f ? tl(Ut(n.maxWait) || 0, t) : r, p = "trailing" in n ? !!n.trailing : p);
767
- function F(S) {
768
- var v = i, R = a;
769
- return i = a = void 0, u = S, o = e.apply(R, v), o;
766
+ t = Ut(t) || 0, he(n) && (h = !!n.leading, f = "maxWait" in n, r = f ? tl(Ut(n.maxWait) || 0, t) : r, g = "trailing" in n ? !!n.trailing : g);
767
+ function k(S) {
768
+ var y = i, P = a;
769
+ return i = a = void 0, u = S, s = e.apply(P, y), s;
770
770
  }
771
- function T(S) {
772
- return u = S, s = setTimeout(A, t), h ? F(S) : o;
771
+ function N(S) {
772
+ return u = S, o = setTimeout(b, t), h ? k(S) : s;
773
773
  }
774
- function c(S) {
775
- var v = S - l, R = S - u, x = t - v;
776
- return f ? nl(x, r - R) : x;
774
+ function m(S) {
775
+ var y = S - l, P = S - u, x = t - y;
776
+ return f ? nl(x, r - P) : x;
777
777
  }
778
- function y(S) {
779
- var v = S - l, R = S - u;
780
- return l === void 0 || v >= t || v < 0 || f && R >= r;
778
+ function p(S) {
779
+ var y = S - l, P = S - u;
780
+ return l === void 0 || y >= t || y < 0 || f && P >= r;
781
781
  }
782
- function A() {
782
+ function b() {
783
783
  var S = It();
784
- if (y(S))
785
- return V(S);
786
- s = setTimeout(A, c(S));
784
+ if (p(S))
785
+ return A(S);
786
+ o = setTimeout(b, m(S));
787
787
  }
788
- function V(S) {
789
- return s = void 0, p && i ? F(S) : (i = a = void 0, o);
788
+ function A(S) {
789
+ return o = void 0, g && i ? k(S) : (i = a = void 0, s);
790
790
  }
791
- function b() {
792
- s !== void 0 && clearTimeout(s), u = 0, i = l = a = s = void 0;
791
+ function _() {
792
+ o !== void 0 && clearTimeout(o), u = 0, i = l = a = o = void 0;
793
793
  }
794
794
  function E() {
795
- return s === void 0 ? o : V(It());
795
+ return o === void 0 ? s : A(It());
796
796
  }
797
797
  function $() {
798
- var S = It(), v = y(S);
799
- if (i = arguments, a = this, l = S, v) {
800
- if (s === void 0)
801
- return T(l);
798
+ var S = It(), y = p(S);
799
+ if (i = arguments, a = this, l = S, y) {
800
+ if (o === void 0)
801
+ return N(l);
802
802
  if (f)
803
- return clearTimeout(s), s = setTimeout(A, t), F(l);
803
+ return clearTimeout(o), o = setTimeout(b, t), k(l);
804
804
  }
805
- return s === void 0 && (s = setTimeout(A, t)), o;
805
+ return o === void 0 && (o = setTimeout(b, t)), s;
806
806
  }
807
- return $.cancel = b, $.flush = E, $;
807
+ return $.cancel = _, $.flush = E, $;
808
808
  }
809
809
  var il = "__lodash_hash_undefined__";
810
810
  function al(e) {
@@ -857,25 +857,25 @@ var fl = 1 / 0, hl = ze && 1 / oi(new ze([, -0]))[1] == fl ? function(e) {
857
857
  return new ze(e);
858
858
  } : ml, pl = 200;
859
859
  function gl(e, t, n) {
860
- var i = -1, a = ul, r = e.length, o = !0, s = [], l = s;
860
+ var i = -1, a = ul, r = e.length, s = !0, o = [], l = o;
861
861
  if (r >= pl) {
862
862
  var u = hl(e);
863
863
  if (u)
864
864
  return oi(u);
865
- o = !1, a = cl, l = new lt();
865
+ s = !1, a = cl, l = new lt();
866
866
  } else
867
- l = s;
867
+ l = o;
868
868
  e:
869
869
  for (; ++i < r; ) {
870
870
  var h = e[i], f = h;
871
- if (h = h !== 0 ? h : 0, o && f === f) {
872
- for (var p = l.length; p--; )
873
- if (l[p] === f)
871
+ if (h = h !== 0 ? h : 0, s && f === f) {
872
+ for (var g = l.length; g--; )
873
+ if (l[g] === f)
874
874
  continue e;
875
- s.push(h);
876
- } else a(l, f, n) || (l !== s && l.push(f), s.push(h));
875
+ o.push(h);
876
+ } else a(l, f, n) || (l !== o && l.push(f), o.push(h));
877
877
  }
878
- return s;
878
+ return o;
879
879
  }
880
880
  function li(e) {
881
881
  return e && e.length ? gl(e) : [];
@@ -904,8 +904,8 @@ function je(e) {
904
904
  t[n - 1] = arguments[n];
905
905
  for (var i = 0, a = t; i < a.length; i++) {
906
906
  var r = a[i];
907
- for (var o in r)
908
- e[o] = r[o];
907
+ for (var s in r)
908
+ e[s] = r[s];
909
909
  }
910
910
  return e;
911
911
  }
@@ -1114,8 +1114,8 @@ var fi = [
1114
1114
  throw new Error("Invalid Date pass to format");
1115
1115
  t = ut[t] || t;
1116
1116
  var i = [];
1117
- t = t.replace(ci, function(r, o) {
1118
- return i.push(o), "@@@";
1117
+ t = t.replace(ci, function(r, s) {
1118
+ return i.push(s), "@@@";
1119
1119
  });
1120
1120
  var a = je(je({}, dt), n);
1121
1121
  return t = t.replace(ui, function(r) {
@@ -1139,45 +1139,45 @@ function Al(e, t, n) {
1139
1139
  millisecond: 0,
1140
1140
  isPm: null,
1141
1141
  timezoneOffset: null
1142
- }, r = [], o = [], s = t.replace(ci, function(E, $) {
1143
- return o.push(_n($)), "@@@";
1142
+ }, r = [], s = [], o = t.replace(ci, function(E, $) {
1143
+ return s.push(_n($)), "@@@";
1144
1144
  }), l = {}, u = {};
1145
- s = _n(s).replace(ui, function(E) {
1146
- var $ = Tl[E], S = $[0], v = $[1], R = $[3];
1145
+ o = _n(o).replace(ui, function(E) {
1146
+ var $ = Tl[E], S = $[0], y = $[1], P = $[3];
1147
1147
  if (l[S])
1148
1148
  throw new Error("Invalid format. " + S + " specified twice in format");
1149
- return l[S] = !0, R && (u[R] = !0), r.push($), "(" + v + ")";
1149
+ return l[S] = !0, P && (u[P] = !0), r.push($), "(" + y + ")";
1150
1150
  }), Object.keys(u).forEach(function(E) {
1151
1151
  if (!l[E])
1152
1152
  throw new Error("Invalid format. " + E + " is required in specified format");
1153
- }), s = s.replace(/@@@/g, function() {
1154
- return o.shift();
1153
+ }), o = o.replace(/@@@/g, function() {
1154
+ return s.shift();
1155
1155
  });
1156
- var h = e.match(new RegExp(s, "i"));
1156
+ var h = e.match(new RegExp(o, "i"));
1157
1157
  if (!h)
1158
1158
  return null;
1159
- for (var f = je(je({}, dt), n), p = 1; p < h.length; p++) {
1160
- var F = r[p - 1], T = F[0], c = F[2], y = c ? c(h[p], f) : +h[p];
1161
- if (y == null)
1159
+ for (var f = je(je({}, dt), n), g = 1; g < h.length; g++) {
1160
+ var k = r[g - 1], N = k[0], m = k[2], p = m ? m(h[g], f) : +h[g];
1161
+ if (p == null)
1162
1162
  return null;
1163
- a[T] = y;
1163
+ a[N] = p;
1164
1164
  }
1165
1165
  a.isPm === 1 && a.hour != null && +a.hour != 12 ? a.hour = +a.hour + 12 : a.isPm === 0 && +a.hour == 12 && (a.hour = 0);
1166
- var A;
1166
+ var b;
1167
1167
  if (a.timezoneOffset == null) {
1168
- A = new Date(a.year, a.month, a.day, a.hour, a.minute, a.second, a.millisecond);
1169
- for (var V = [
1168
+ b = new Date(a.year, a.month, a.day, a.hour, a.minute, a.second, a.millisecond);
1169
+ for (var A = [
1170
1170
  ["month", "getMonth"],
1171
1171
  ["day", "getDate"],
1172
1172
  ["hour", "getHours"],
1173
1173
  ["minute", "getMinutes"],
1174
1174
  ["second", "getSeconds"]
1175
- ], p = 0, b = V.length; p < b; p++)
1176
- if (l[V[p][0]] && a[V[p][0]] !== A[V[p][1]]())
1175
+ ], g = 0, _ = A.length; g < _; g++)
1176
+ if (l[A[g][0]] && a[A[g][0]] !== b[A[g][1]]())
1177
1177
  return null;
1178
- } else if (A = 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)
1178
+ } else if (b = 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)
1179
1179
  return null;
1180
- return A;
1180
+ return b;
1181
1181
  }
1182
1182
  var Be = {
1183
1183
  format: Cl,
@@ -1202,12 +1202,12 @@ function Ol(e, t, n) {
1202
1202
  var Cn = Math.max;
1203
1203
  function El(e, t, n) {
1204
1204
  return t = Cn(t === void 0 ? e.length - 1 : t, 0), function() {
1205
- for (var i = arguments, a = -1, r = Cn(i.length - t, 0), o = Array(r); ++a < r; )
1206
- o[a] = i[t + a];
1205
+ for (var i = arguments, a = -1, r = Cn(i.length - t, 0), s = Array(r); ++a < r; )
1206
+ s[a] = i[t + a];
1207
1207
  a = -1;
1208
- for (var s = Array(t + 1); ++a < t; )
1209
- s[a] = i[a];
1210
- return s[t] = n(o), Ol(e, this, s);
1208
+ for (var o = Array(t + 1); ++a < t; )
1209
+ o[a] = i[a];
1210
+ return o[t] = n(s), Ol(e, this, o);
1211
1211
  };
1212
1212
  }
1213
1213
  function Fl(e) {
@@ -1249,8 +1249,8 @@ var gi = Object.prototype, Ll = gi.hasOwnProperty, ql = jl(function(e, t) {
1249
1249
  e = Object(e);
1250
1250
  var n = -1, i = t.length, a = i > 2 ? t[2] : void 0;
1251
1251
  for (a && Nl(t[0], t[1], a) && (i = 1); ++n < i; )
1252
- for (var r = t[n], o = wt(r), s = -1, l = o.length; ++s < l; ) {
1253
- var u = o[s], h = e[u];
1252
+ for (var r = t[n], s = wt(r), o = -1, l = s.length; ++o < l; ) {
1253
+ var u = s[o], h = e[u];
1254
1254
  (h === void 0 || vt(h, gi[u]) && !Ll.call(e, u)) && (e[u] = r[u]);
1255
1255
  }
1256
1256
  return e;
@@ -1465,38 +1465,38 @@ const Gl = {
1465
1465
  redis: Jl,
1466
1466
  fields: Ql,
1467
1467
  vfg: Xl
1468
- }, { t: Q } = ve("en-us", be), oe = {
1469
- fieldIsRequired: Q("validators.field_is_required"),
1470
- invalidFormat: Q("validators.invalid_format"),
1471
- numberTooSmall: Q("validators.number_too_small"),
1472
- numberTooBig: Q("validators.number_too_large"),
1473
- invalidNumber: Q("validators.invalid_number"),
1474
- invalidInteger: Q("validators.invalid_integer"),
1475
- textTooSmall: Q("validators.text_too_short"),
1476
- textTooBig: Q("validators.text_too_long"),
1477
- thisNotText: Q("validators.this_not_text"),
1478
- thisNotArray: Q("validators.this_not_array"),
1479
- selectMinItems: Q("validators.select_min_items"),
1480
- selectMaxItems: Q("validators.select_max_items"),
1481
- invalidDate: Q("validators.invalid_date"),
1482
- dateIsEarly: Q("validators.date_is_early"),
1483
- dateIsLate: Q("validators.date_is_late"),
1484
- invalidEmail: Q("validators.invalid_email"),
1485
- invalidURL: Q("validators.invalid_url"),
1486
- invalidCard: Q("validators.invalid_card"),
1487
- invalidCardNumber: Q("validators.invalid_card_number"),
1488
- invalidTextContainNumber: Q("validators.invalid_text_contain_number"),
1489
- invalidTextContainSpec: Q("validators.invalid_tex_contain_spec")
1468
+ }, { t: X } = ve("en-us", be), oe = {
1469
+ fieldIsRequired: X("validators.field_is_required"),
1470
+ invalidFormat: X("validators.invalid_format"),
1471
+ numberTooSmall: X("validators.number_too_small"),
1472
+ numberTooBig: X("validators.number_too_large"),
1473
+ invalidNumber: X("validators.invalid_number"),
1474
+ invalidInteger: X("validators.invalid_integer"),
1475
+ textTooSmall: X("validators.text_too_short"),
1476
+ textTooBig: X("validators.text_too_long"),
1477
+ thisNotText: X("validators.this_not_text"),
1478
+ thisNotArray: X("validators.this_not_array"),
1479
+ selectMinItems: X("validators.select_min_items"),
1480
+ selectMaxItems: X("validators.select_max_items"),
1481
+ invalidDate: X("validators.invalid_date"),
1482
+ dateIsEarly: X("validators.date_is_early"),
1483
+ dateIsLate: X("validators.date_is_late"),
1484
+ invalidEmail: X("validators.invalid_email"),
1485
+ invalidURL: X("validators.invalid_url"),
1486
+ invalidCard: X("validators.invalid_card"),
1487
+ invalidCardNumber: X("validators.invalid_card_number"),
1488
+ invalidTextContainNumber: X("validators.invalid_text_contain_number"),
1489
+ invalidTextContainSpec: X("validators.invalid_tex_contain_spec")
1490
1490
  }, Z = (e, ...t) => {
1491
1491
  if (e && t.length > 0)
1492
1492
  for (let n = 0; n < t.length; n++)
1493
1493
  e = e.replace("{" + (n - 1) + "}", String(t[n] || ""));
1494
1494
  return e;
1495
- }, pe = (e, t, n = oe) => X(e) || e === "" ? t ? [Z(n.fieldIsRequired)] : [] : null, Ne = {
1495
+ }, pe = (e, t, n = oe) => ee(e) || e === "" ? t ? [Z(n.fieldIsRequired)] : [] : null, Ne = {
1496
1496
  required: (e, t, n, i = oe) => pe(e, t.required, i) || [],
1497
1497
  number: (e, t, n, i = oe) => {
1498
1498
  let a = pe(e, t.required, i);
1499
- return a != null || (a = [], Dl(e) ? (!X(t.min) && e < t.min, (i = oe) && a.push(Z(i.numberTooSmall, t.min)), !X(t.max) && e > t.max, (i = oe) && a.push(Z(i.numberTooBig, t.max))) : a.push(Z(i.invalidNumber))), a;
1499
+ return a != null || (a = [], Dl(e) ? (!ee(t.min) && e < t.min, (i = oe) && a.push(Z(i.numberTooSmall, t.min)), !ee(t.max) && e > t.max, (i = oe) && a.push(Z(i.numberTooBig, t.max))) : a.push(Z(i.invalidNumber))), a;
1500
1500
  },
1501
1501
  integer: (e, t, n, i = oe) => {
1502
1502
  let a = pe(e, t.required, i);
@@ -1508,7 +1508,7 @@ const Gl = {
1508
1508
  },
1509
1509
  string: (e, t, n, i = oe) => {
1510
1510
  let a = pe(e, t.required, i);
1511
- return a != null || (a = [], Re(e) ? (!X(t.min) && e.length < t.min && a.push(Z(i.textTooSmall, e.length, t.min)), !X(t.max) && e.length > t.max && a.push(Z(i.textTooBig, e.length, t.max))) : a.push(Z(i.thisNotText))), a;
1511
+ return a != null || (a = [], Re(e) ? (!ee(t.min) && e.length < t.min && a.push(Z(i.textTooSmall, e.length, t.min)), !ee(t.max) && e.length > t.max && a.push(Z(i.textTooBig, e.length, t.max))) : a.push(Z(i.thisNotText))), a;
1512
1512
  },
1513
1513
  array: (e, t, n, i = oe) => {
1514
1514
  if (t.required) {
@@ -1517,10 +1517,10 @@ const Gl = {
1517
1517
  if (e.length === 0)
1518
1518
  return [Z(i.fieldIsRequired)];
1519
1519
  }
1520
- if (!X(e)) {
1521
- if (!X(t.min) && e.length < t.min)
1520
+ if (!ee(e)) {
1521
+ if (!ee(t.min) && e.length < t.min)
1522
1522
  return [Z(i.selectMinItems, t.min)];
1523
- if (!X(t.max) && e.length > t.max)
1523
+ if (!ee(t.max) && e.length > t.max)
1524
1524
  return [Z(i.selectMaxItems, t.max)];
1525
1525
  }
1526
1526
  return [];
@@ -1532,19 +1532,19 @@ const Gl = {
1532
1532
  const r = new Date(e);
1533
1533
  if (isNaN(r.getDate()))
1534
1534
  return [Z(i.invalidDate)];
1535
- if (!X(t.min)) {
1536
- const o = new Date(t.min);
1537
- r.valueOf() < o.valueOf() && a.push(Z(i.dateIsEarly, Be.format(r), Be.format(o)));
1535
+ if (!ee(t.min)) {
1536
+ const s = new Date(t.min);
1537
+ r.valueOf() < s.valueOf() && a.push(Z(i.dateIsEarly, Be.format(r), Be.format(s)));
1538
1538
  }
1539
- if (!X(t.max)) {
1540
- const o = new Date(t.max);
1541
- r.valueOf() > o.valueOf() && a.push(Z(i.dateIsLate, Be.format(r), Be.format(o)));
1539
+ if (!ee(t.max)) {
1540
+ const s = new Date(t.max);
1541
+ r.valueOf() > s.valueOf() && a.push(Z(i.dateIsLate, Be.format(r), Be.format(s)));
1542
1542
  }
1543
1543
  return a;
1544
1544
  },
1545
1545
  regexp: (e, t, n, i = oe) => {
1546
1546
  const a = pe(e, t.required, i);
1547
- return a ?? (!X(t.pattern) && !new RegExp(t.pattern).test(e) ? [Z(i.invalidFormat)] : []);
1547
+ return a ?? (!ee(t.pattern) && !new RegExp(t.pattern).test(e) ? [Z(i.invalidFormat)] : []);
1548
1548
  },
1549
1549
  email: (e, t, n, i = oe) => {
1550
1550
  const a = pe(e, t.required, i);
@@ -1557,13 +1557,13 @@ const Gl = {
1557
1557
  creditCard: (e, t, n, i = oe) => {
1558
1558
  const a = pe(e, t.required, i);
1559
1559
  if (a != null) return a;
1560
- const r = /^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$/, o = e.replace(/[^0-9]+/g, "");
1561
- if (!r.test(o))
1560
+ const r = /^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$/, s = e.replace(/[^0-9]+/g, "");
1561
+ if (!r.test(s))
1562
1562
  return [Z(i.invalidCard)];
1563
- let s = 0, l, u, h;
1564
- for (let f = o.length - 1; f >= 0; f--)
1565
- l = o.substring(f, f + 1), u = parseInt(l, 10), h ? (u *= 2, u >= 10 ? s += u % 10 + 1 : s += u) : s += u, h = !h;
1566
- return s % 10 === 0 && o ? [] : [Z(i.invalidCardNumber)];
1563
+ let o = 0, l, u, h;
1564
+ for (let f = s.length - 1; f >= 0; f--)
1565
+ l = s.substring(f, f + 1), u = parseInt(l, 10), h ? (u *= 2, u >= 10 ? o += u % 10 + 1 : o += u) : o += u, h = !h;
1566
+ return o % 10 === 0 && s ? [] : [Z(i.invalidCardNumber)];
1567
1567
  },
1568
1568
  alpha: (e, t, n, i = oe) => {
1569
1569
  const a = pe(e, t.required, i);
@@ -1584,8 +1584,8 @@ function On(e) {
1584
1584
  function Ct(e, t, n) {
1585
1585
  let i = B(n.context, "schema.attributes", {});
1586
1586
  const a = t.value || "input";
1587
- Re(a) && (i = B(i, a) || i), ue(i, (r, o) => {
1588
- e.setAttribute(o, r);
1587
+ Re(a) && (i = B(i, a) || i), ue(i, (r, s) => {
1588
+ e.setAttribute(s, r);
1589
1589
  });
1590
1590
  }
1591
1591
  const _e = {
@@ -1632,22 +1632,22 @@ const _e = {
1632
1632
  if (t)
1633
1633
  n.push(r(this.value, this.schema, this.model));
1634
1634
  else {
1635
- const o = r(this.value, this.schema, this.model);
1636
- o && Y(o.then) ? o.then((s) => {
1637
- s && (this.errors = this.errors.concat(s));
1635
+ const s = r(this.value, this.schema, this.model);
1636
+ s && Y(s.then) ? s.then((o) => {
1637
+ o && (this.errors = this.errors.concat(o));
1638
1638
  const l = this.errors.length === 0;
1639
1639
  this.$emit("validated", l, this.errors, this);
1640
- }) : o && (n = n.concat(o));
1640
+ }) : s && (n = n.concat(s));
1641
1641
  }
1642
1642
  });
1643
1643
  }
1644
1644
  const i = (a) => {
1645
1645
  let r = [];
1646
- ue(li(a), (s) => {
1647
- Array.isArray(s) && s.length > 0 ? r = r.concat(s) : Re(s) && r.push(s);
1646
+ ue(li(a), (o) => {
1647
+ Array.isArray(o) && o.length > 0 ? r = r.concat(o) : Re(o) && r.push(o);
1648
1648
  }), Y(this.schema.onValidated) && this.schema.onValidated.call(this, this.model, r, this.schema);
1649
- const o = r.length === 0;
1650
- return e || this.$emit("validated", o, r, this), this.errors = r, r;
1649
+ const s = r.length === 0;
1650
+ return e || this.$emit("validated", s, r, this), this.errors = r, r;
1651
1651
  };
1652
1652
  return t ? Promise.all(n).then(i) : i(n);
1653
1653
  },
@@ -1670,13 +1670,13 @@ const _e = {
1670
1670
  let i = this.model;
1671
1671
  const a = n.split(".");
1672
1672
  let r = 0;
1673
- const o = a.length;
1674
- for (; r < o; ) {
1675
- const s = a[r];
1676
- if (r < o - 1)
1677
- i[s] !== void 0 || (i[s] = {}), i = i[s];
1673
+ const s = a.length;
1674
+ for (; r < s; ) {
1675
+ const o = a[r];
1676
+ if (r < s - 1)
1677
+ i[o] !== void 0 || (i[o] = {}), i = i[o];
1678
1678
  else {
1679
- i[s] = t;
1679
+ i[o] = t;
1680
1680
  return;
1681
1681
  }
1682
1682
  ++r;
@@ -1699,7 +1699,7 @@ const _e = {
1699
1699
  return e;
1700
1700
  }
1701
1701
  }
1702
- }, qm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1702
+ }, Bm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1703
1703
  __proto__: null,
1704
1704
  default: _e
1705
1705
  }, Symbol.toStringTag, { value: "Module" })), z = (e, t) => {
@@ -1741,19 +1741,19 @@ const _e = {
1741
1741
  }, id = /* @__PURE__ */ Object.assign(nd, {
1742
1742
  __name: "FieldAdvanced",
1743
1743
  setup(e) {
1744
- return (t, n) => (d(), g("div", ed, [
1745
- m("button", {
1744
+ return (t, n) => (d(), v("div", ed, [
1745
+ c("button", {
1746
1746
  class: "advanced-field-title",
1747
1747
  type: "button",
1748
1748
  onClick: n[0] || (n[0] = (...i) => t.handleOpen && t.handleOpen(...i))
1749
1749
  }, [
1750
- m("i", td, U(t.isOpen ? "keyboard_arrow_up" : "keyboard_arrow_right"), 1),
1751
- m("span", null, U(t.titleText), 1)
1750
+ c("i", td, F(t.isOpen ? "keyboard_arrow_up" : "keyboard_arrow_right"), 1),
1751
+ c("span", null, F(t.titleText), 1)
1752
1752
  ]),
1753
- m("div", {
1753
+ c("div", {
1754
1754
  class: W(["advanced-field-dropdown", t.openClass])
1755
1755
  }, [
1756
- C(ee, {
1756
+ C(te, {
1757
1757
  model: t.model,
1758
1758
  options: { helpAsHtml: !0 },
1759
1759
  schema: t.schema,
@@ -1781,10 +1781,10 @@ const _e = {
1781
1781
  emits: ["remove-item"],
1782
1782
  setup(e) {
1783
1783
  return it("vfg-array-item-index", e.index), (n, i) => {
1784
- const a = k("KCard"), r = k("KButton");
1785
- return d(), g("div", rd, [
1784
+ const a = U("KCard"), r = U("KButton");
1785
+ return d(), v("div", rd, [
1786
1786
  C(a, { class: "card" }, {
1787
- default: w(() => [
1787
+ default: M(() => [
1788
1788
  fe(n.$slots, "default", {}, void 0, !0)
1789
1789
  ]),
1790
1790
  _: 3
@@ -1792,10 +1792,10 @@ const _e = {
1792
1792
  C(r, {
1793
1793
  appearance: "tertiary",
1794
1794
  class: "array-card-remove-button",
1795
- onClick: i[0] || (i[0] = (o) => n.$emit("remove-item"))
1795
+ onClick: i[0] || (i[0] = (s) => n.$emit("remove-item"))
1796
1796
  }, {
1797
- default: w(() => [
1798
- C(M(rt))
1797
+ default: M(() => [
1798
+ C(T(rt))
1799
1799
  ]),
1800
1800
  _: 1
1801
1801
  })
@@ -1813,22 +1813,22 @@ const _e = {
1813
1813
  emits: ["remove-item"],
1814
1814
  setup(e) {
1815
1815
  return (t, n) => {
1816
- const i = k("KButton");
1817
- return d(), g("div", od, [
1818
- m("div", ld, [
1816
+ const i = U("KButton");
1817
+ return d(), v("div", od, [
1818
+ c("div", ld, [
1819
1819
  fe(t.$slots, "default", {}, void 0, !0),
1820
1820
  C(i, {
1821
1821
  appearance: "tertiary",
1822
1822
  class: "delete",
1823
1823
  onClick: n[0] || (n[0] = (a) => t.$emit("remove-item"))
1824
1824
  }, {
1825
- default: w(() => [
1826
- C(M(rt))
1825
+ default: M(() => [
1826
+ C(T(rt))
1827
1827
  ]),
1828
1828
  _: 1
1829
1829
  })
1830
1830
  ]),
1831
- m("div", dd, [
1831
+ c("div", dd, [
1832
1832
  fe(t.$slots, "after", {}, void 0, !0)
1833
1833
  ])
1834
1834
  ]);
@@ -1839,20 +1839,20 @@ const _e = {
1839
1839
  emits: ["remove-item"],
1840
1840
  setup(e) {
1841
1841
  return (t, n) => {
1842
- const i = k("KButton");
1843
- return d(), g("div", cd, [
1842
+ const i = U("KButton");
1843
+ return d(), v("div", cd, [
1844
1844
  fe(t.$slots, "default", {}, void 0, !0),
1845
1845
  C(i, {
1846
1846
  appearance: "danger",
1847
1847
  class: "delete",
1848
1848
  onClick: n[0] || (n[0] = (a) => t.$emit("remove-item"))
1849
1849
  }, {
1850
- default: w(() => n[1] || (n[1] = [
1851
- te(" - Remove Field ")
1850
+ default: M(() => n[1] || (n[1] = [
1851
+ ne(" - Remove Field ")
1852
1852
  ])),
1853
1853
  _: 1
1854
1854
  }),
1855
- n[2] || (n[2] = m("hr", null, null, -1))
1855
+ n[2] || (n[2] = c("hr", null, null, -1))
1856
1856
  ]);
1857
1857
  };
1858
1858
  }
@@ -1940,8 +1940,8 @@ const At = 50, pd = {
1940
1940
  const r = await this.fetchExact(e);
1941
1941
  t.push({ ...r, label: this.getSuggestionLabel(r), value: r.id });
1942
1942
  })()) : n.push(...i.filter((r) => r !== "id").map(async (r) => {
1943
- (await this.fetchSuggestions(e, r)).forEach((s) => {
1944
- a.has(s.id) || (a.add(s.id), t.push({ ...s, label: this.getSuggestionLabel(s), value: s.id }));
1943
+ (await this.fetchSuggestions(e, r)).forEach((o) => {
1944
+ a.has(o.id) || (a.add(o.id), t.push({ ...o, label: this.getSuggestionLabel(o), value: o.id }));
1945
1945
  });
1946
1946
  })), await Promise.all(n), this.items = t, this.items.length === 0 && (this.message = "No results"), this.loading = !1;
1947
1947
  },
@@ -1991,18 +1991,18 @@ const At = 50, pd = {
1991
1991
  }
1992
1992
  }, gd = ["data-testid", "data-testlabel"], vd = ["data-testid"], yd = { class: "autosuggest__results_message" };
1993
1993
  function bd(e, t, n, i, a, r) {
1994
- const o = k("KSelect");
1995
- return d(), O(ne(e.schema.disabled ? "k-tooltip" : "div"), {
1994
+ const s = U("KSelect");
1995
+ return d(), O(ie(e.schema.disabled ? "k-tooltip" : "div"), {
1996
1996
  class: "field-wrap autosuggest",
1997
1997
  "max-width": "300",
1998
1998
  text: i.t("general.disable_source_scope_change", { scope: r.scope })
1999
1999
  }, {
2000
- default: w(() => [
2001
- C(o, {
2000
+ default: M(() => [
2001
+ C(s, {
2002
2002
  id: e.schema.model,
2003
2003
  ref: "suggestion",
2004
2004
  modelValue: a.idValue,
2005
- "onUpdate:modelValue": t[0] || (t[0] = (s) => a.idValue = s),
2005
+ "onUpdate:modelValue": t[0] || (t[0] = (o) => a.idValue = o),
2006
2006
  clearable: "",
2007
2007
  disabled: e.schema.disabled,
2008
2008
  "enable-filtering": "",
@@ -2014,21 +2014,21 @@ function bd(e, t, n, i, a, r) {
2014
2014
  onChange: r.onSelected,
2015
2015
  onQueryChange: r.onQueryChange
2016
2016
  }, {
2017
- "item-template": w(({ item: s }) => [
2018
- m("span", {
2017
+ "item-template": M(({ item: o }) => [
2018
+ c("span", {
2019
2019
  class: "first-part",
2020
- "data-testid": s.id && `${s.id}-0`,
2021
- "data-testlabel": s.label
2022
- }, U(r.getSuggestionLabel(s).split(" - ")[0]), 9, gd),
2023
- (d(!0), g(K, null, J(r.getSuggestionLabel(s).split(" - ").slice(1), (l, u) => (d(), g("span", {
2020
+ "data-testid": o.id && `${o.id}-0`,
2021
+ "data-testlabel": o.label
2022
+ }, F(r.getSuggestionLabel(o).split(" - ")[0]), 9, gd),
2023
+ (d(!0), v(K, null, J(r.getSuggestionLabel(o).split(" - ").slice(1), (l, u) => (d(), v("span", {
2024
2024
  key: u,
2025
2025
  class: "field-span",
2026
- "data-testid": s.id && `${s.id}-${u + 1}` || u + 1
2027
- }, U(l), 9, vd))), 128))
2026
+ "data-testid": o.id && `${o.id}-${u + 1}` || u + 1
2027
+ }, F(l), 9, vd))), 128))
2028
2028
  ]),
2029
- empty: w(() => [
2030
- m("div", yd, [
2031
- m("span", null, U(a.message), 1)
2029
+ empty: M(() => [
2030
+ c("div", yd, [
2031
+ c("span", null, F(a.message), 1)
2032
2032
  ])
2033
2033
  ]),
2034
2034
  _: 1
@@ -2059,12 +2059,12 @@ const Sd = ["data-testid", "data-testlabel"], Td = { class: "item-label" }, Id =
2059
2059
  setup(e) {
2060
2060
  const { t } = ve("en-us", be), n = Ui(e, "id");
2061
2061
  return (i, a) => {
2062
- const r = k("KSelect");
2062
+ const r = U("KSelect");
2063
2063
  return d(), O(r, {
2064
2064
  id: i.domId,
2065
2065
  ref: "suggestion",
2066
2066
  modelValue: n.value,
2067
- "onUpdate:modelValue": a[0] || (a[0] = (o) => n.value = o),
2067
+ "onUpdate:modelValue": a[0] || (a[0] = (s) => n.value = s),
2068
2068
  clearable: "",
2069
2069
  disabled: i.disabled,
2070
2070
  "enable-filtering": "",
@@ -2073,36 +2073,33 @@ const Sd = ["data-testid", "data-testlabel"], Td = { class: "item-label" }, Id =
2073
2073
  loading: i.loading,
2074
2074
  placeholder: i.placeholder,
2075
2075
  width: "100%",
2076
- onChange: a[1] || (a[1] = (o) => i.$emit("change", o)),
2077
- onQueryChange: a[2] || (a[2] = (o) => i.$emit("query-change", o))
2076
+ onChange: a[1] || (a[1] = (s) => i.$emit("change", s)),
2077
+ onQueryChange: a[2] || (a[2] = (s) => i.$emit("query-change", s))
2078
2078
  }, at({
2079
- "dropdown-footer-text": w(() => [
2080
- m("span", null, U(M(t)("fields.auto_suggest.items_count", { count: i.suggestions.length })), 1)
2081
- ]),
2082
- "item-template": w(({ item: o }) => [
2083
- fe(i.$slots, "item", { item: o }, () => [
2084
- m("span", {
2079
+ "item-template": M(({ item: s }) => [
2080
+ fe(i.$slots, "item", { item: s }, () => [
2081
+ c("span", {
2085
2082
  class: "item-label",
2086
- "data-testid": o.id && `${o.id}-0`,
2087
- "data-testlabel": o.label
2088
- }, U(o.label), 9, Sd)
2083
+ "data-testid": s.id && `${s.id}-0`,
2084
+ "data-testlabel": s.label
2085
+ }, F(s.label), 9, Sd)
2089
2086
  ], !0)
2090
2087
  ]),
2091
- "selected-item-template": w(({ item: o }) => [
2092
- fe(i.$slots, "selected-item", { item: o }, () => [
2093
- m("span", Td, U(o.label), 1)
2088
+ "selected-item-template": M(({ item: s }) => [
2089
+ fe(i.$slots, "selected-item", { item: s }, () => [
2090
+ c("span", Td, F(s.label), 1)
2094
2091
  ], !0)
2095
2092
  ]),
2096
- empty: w(() => [
2097
- m("div", Id, [
2098
- m("span", null, U(i.emptyMessage || M(t)("fields.auto_suggest.no_results")), 1)
2093
+ empty: M(() => [
2094
+ c("div", Id, [
2095
+ c("span", null, F(i.emptyMessage || T(t)("fields.auto_suggest.no_results")), 1)
2099
2096
  ])
2100
2097
  ]),
2101
2098
  _: 2
2102
2099
  }, [
2103
2100
  i.$slots.before ? {
2104
2101
  name: "before",
2105
- fn: w(() => [
2102
+ fn: M(() => [
2106
2103
  fe(i.$slots, "before", {}, void 0, !0)
2107
2104
  ]),
2108
2105
  key: "0"
@@ -2110,7 +2107,7 @@ const Sd = ["data-testid", "data-testlabel"], Td = { class: "item-label" }, Id =
2110
2107
  ]), 1032, ["id", "modelValue", "disabled", "items", "loading", "placeholder"]);
2111
2108
  };
2112
2109
  }
2113
- }), Ad = /* @__PURE__ */ z(Cd, [["__scopeId", "data-v-6f3ee220"]]), Od = 500, Ed = 50, Fd = /* @__PURE__ */ re({
2110
+ }), Ad = /* @__PURE__ */ z(Cd, [["__scopeId", "data-v-baeb3bb0"]]), Od = 500, Ed = 50, Fd = /* @__PURE__ */ re({
2114
2111
  __name: "FieldScopedEntitySelect",
2115
2112
  props: {
2116
2113
  transformItem: { type: Function, default: hd },
@@ -2121,72 +2118,77 @@ const Sd = ["data-testid", "data-testlabel"], Td = { class: "item-label" }, Id =
2121
2118
  domId: {},
2122
2119
  id: {},
2123
2120
  disabled: { type: Boolean },
2121
+ fieldDisabled: { type: Boolean },
2124
2122
  getAll: { type: Function },
2125
2123
  getPartial: { type: Function },
2126
2124
  getOne: { type: Function }
2127
2125
  },
2128
2126
  emits: ["change"],
2129
2127
  setup(e) {
2130
- const t = ie(""), n = ie(!1), i = ie(!1), a = ie([]), r = ie([]), o = ie([]), s = async (T) => {
2128
+ const t = Q(""), n = Q(!1), i = Q(!1), a = Q(""), r = Q([]), s = Q([]), o = Q([]), l = async (p) => {
2131
2129
  try {
2132
2130
  n.value = !0;
2133
- const c = await T();
2134
- c.length && (o.value = c), r.value = c, a.value = r.value.map(e.transformItem);
2135
- } catch (c) {
2136
- a.value = [], t.value = c.message, console.error(c.message);
2131
+ const b = await p();
2132
+ b.length && (o.value = b), s.value = b, r.value = s.value.map(e.transformItem);
2133
+ } catch (b) {
2134
+ r.value = [], t.value = b.message;
2137
2135
  } finally {
2138
2136
  n.value = !1;
2139
2137
  }
2140
- }, l = He((T = "") => {
2141
- if (i.value) {
2142
- $t(T) && e.allowUuidSearch ? F(T) : p(T);
2138
+ }, u = He((p = "") => {
2139
+ if (a.value = p, i.value) {
2140
+ $t(p) && e.allowUuidSearch ? N(p) : k(p);
2143
2141
  return;
2144
2142
  }
2145
- if (!T.trim()) {
2146
- o.value.length && !r.value.length && (a.value = o.value.map(e.transformItem));
2143
+ if (!p.trim()) {
2144
+ o.value.length && !s.value.length && (r.value = o.value.map(e.transformItem));
2147
2145
  return;
2148
2146
  }
2149
- $t(T) && e.allowUuidSearch ? s(async () => await f(T)) : s(async () => await u(T));
2150
- }, Od), u = async (T) => await e.getAll(T), h = async () => {
2151
- const { data: { data: T, next: c, offset: y } } = await e.getPartial(Ed);
2152
- return (!c || !y) && (i.value = !0), r.value = T, T;
2153
- }, f = async (T) => {
2154
- const { data: c } = await e.getOne(T);
2155
- return [c];
2156
- }, p = (T) => {
2157
- T.trim() || (a.value = r.value.map(e.transformItem)), a.value = r.value.filter((c) => e.fields.some((y) => (c[y] || "").contains(T))).map(e.transformItem);
2158
- }, F = (T) => {
2159
- a.value = r.value.filter((c) => c.id === T).map(e.transformItem);
2160
- };
2147
+ $t(p) && e.allowUuidSearch ? l(async () => await g(p)) : l(async () => await h(p));
2148
+ }, Od), h = async (p) => await e.getAll(p), f = async () => {
2149
+ const { data: { data: p, next: b, offset: A } } = await e.getPartial(Ed);
2150
+ return (!b || !A) && (i.value = !0), s.value = p, p;
2151
+ }, g = async (p) => {
2152
+ const { data: b } = await e.getOne(p);
2153
+ return [b];
2154
+ }, k = (p) => {
2155
+ p.trim() || (r.value = s.value.map(e.transformItem)), r.value = s.value.filter((b) => e.fields.some((A) => (b[A] || "").contains(p))).map(e.transformItem);
2156
+ }, N = (p) => {
2157
+ r.value = s.value.filter((b) => b.id === p).map(e.transformItem);
2158
+ }, m = L(() => !e.initialItem || r.value.some((p) => p.id === e.initialItem.id) ? r.value : a.value ? e.fields.some((p) => {
2159
+ var b;
2160
+ (b = e.initialItem[p]) == null || b.includes(a.value);
2161
+ }) ? [e.initialItem, ...r.value] : r.value : [e.initialItem, ...r.value]);
2161
2162
  return Vt(async () => {
2162
- await s(h);
2163
- }), (T, c) => (d(), O(Ad, {
2164
- id: T.id,
2165
- "dom-id": T.domId,
2163
+ await l(f);
2164
+ }), (p, b) => (d(), O(Ad, {
2165
+ id: p.id,
2166
+ disabled: p.fieldDisabled,
2167
+ "dom-id": p.domId,
2166
2168
  "empty-message": t.value,
2167
2169
  loading: n.value,
2168
- placeholder: T.placeholder,
2169
- readonly: T.disabled,
2170
- suggestions: a.value,
2171
- onChange: c[0] || (c[0] = (y) => T.$emit("change", y)),
2172
- onQueryChange: M(l)
2170
+ placeholder: p.placeholder,
2171
+ readonly: p.disabled,
2172
+ suggestions: m.value,
2173
+ onChange: b[0] || (b[0] = (A) => p.$emit("change", A)),
2174
+ onQueryChange: T(u)
2173
2175
  }, at({
2174
- "selected-item": w(({ item: y }) => [
2175
- fe(T.$slots, "selected-item", { item: y })
2176
+ "selected-item": M(({ item: A }) => [
2177
+ fe(p.$slots, "selected-item", { item: A })
2176
2178
  ]),
2177
- item: w(({ item: y }) => [
2178
- fe(T.$slots, "item", { item: y })
2179
+ item: M(({ item: A }) => [
2180
+ fe(p.$slots, "item", { item: A })
2179
2181
  ]),
2180
2182
  _: 2
2181
2183
  }, [
2182
- T.$slots.before ? {
2184
+ p.$slots.before ? {
2183
2185
  name: "before",
2184
- fn: w(() => [
2185
- fe(T.$slots, "before")
2186
+ fn: M(() => [
2187
+ fe(p.$slots, "before")
2186
2188
  ]),
2187
2189
  key: "0"
2188
2190
  } : void 0
2189
- ]), 1032, ["id", "dom-id", "empty-message", "loading", "placeholder", "readonly", "suggestions", "onQueryChange"]));
2191
+ ]), 1032, ["id", "disabled", "dom-id", "empty-message", "loading", "placeholder", "readonly", "suggestions", "onQueryChange"]));
2190
2192
  }
2191
2193
  }), Ot = 50, kd = {
2192
2194
  components: {
@@ -2209,14 +2211,14 @@ const Sd = ["data-testid", "data-testlabel"], Td = { class: "item-label" }, Id =
2209
2211
  idValue: "",
2210
2212
  message: "Type something to search",
2211
2213
  items: [],
2212
- initialItems: [],
2214
+ initialItem: null,
2213
2215
  loading: !1,
2214
2216
  dataDrained: !1
2215
2217
  };
2216
2218
  },
2217
2219
  computed: {
2218
2220
  fieldState() {
2219
- return console.log(this.model, this.schema.model), _i(this.model[this.schema.model], this.associatedEntity || this.entityId, this.bypassSearch);
2221
+ return _i(this.model[this.schema.model], this.associatedEntity || this.entityId, this.bypassSearch);
2220
2222
  },
2221
2223
  associatedEntity() {
2222
2224
  return this.$route && this.$route.params[this.entity];
@@ -2259,7 +2261,7 @@ const Sd = ["data-testid", "data-testlabel"], Td = { class: "item-label" }, Id =
2259
2261
  case we.SET_REFERRAL_VALUE:
2260
2262
  this.idValue = this.value;
2261
2263
  }
2262
- e && (this.initialItems = [{ ...e, label: this.getSuggestionLabel(e), value: e.id }]), this.loading = !1;
2264
+ e && (this.initialItem = this.transformItem(e)), this.loading = !1;
2263
2265
  } catch (n) {
2264
2266
  this.message = this.t("fields.auto_suggest.error.load_entity", { entity: this.schema.entity }), console.error("err!", n);
2265
2267
  }
@@ -2288,11 +2290,7 @@ const Sd = ["data-testid", "data-testlabel"], Td = { class: "item-label" }, Id =
2288
2290
  dedupeSuggestions(e, t) {
2289
2291
  const n = [];
2290
2292
  return e.forEach((i) => {
2291
- t.has(i.id) || (t.add(i.id), n.push({
2292
- ...i,
2293
- label: this.getSuggestionLabel(i),
2294
- value: i.id
2295
- }));
2293
+ t.has(i.id) || (t.add(i.id), n.push(i));
2296
2294
  }), n;
2297
2295
  },
2298
2296
  getItem(e) {
@@ -2318,8 +2316,9 @@ const Sd = ["data-testid", "data-testlabel"], Td = { class: "item-label" }, Id =
2318
2316
  return this.fetchUntilLimit({ [t]: e });
2319
2317
  },
2320
2318
  getSuggestionLabel(e) {
2321
- const t = this.inputFields;
2322
- return t.length && e ? t.map((n) => e[n]).filter(Boolean).join(" - ") : "";
2319
+ var n;
2320
+ const t = ((n = this.schema) == null ? void 0 : n.labelField) || "id";
2321
+ return t && e ? e[t] : "";
2323
2322
  },
2324
2323
  updateModel(e) {
2325
2324
  this.$emit("model-updated", e != null && e.length ? e : null, this.schema.model);
@@ -2333,129 +2332,141 @@ const Sd = ["data-testid", "data-testlabel"], Td = { class: "item-label" }, Id =
2333
2332
  return t ? e[t] : e.id;
2334
2333
  }
2335
2334
  }
2336
- };
2337
- function Ud(e, t, n, i, a, r) {
2338
- const o = k("ProgressIcon"), s = k("FieldScopedEntitySelect");
2339
- return d(), O(ne(e.schema.disabled ? "k-tooltip" : "div"), {
2335
+ }, Ud = { class: "entity-suggestion-item" }, $d = { class: "entity-label" }, Vd = { class: "entity-id" };
2336
+ function Pd(e, t, n, i, a, r) {
2337
+ const s = U("ProgressIcon"), o = U("FieldScopedEntitySelect");
2338
+ return d(), O(ie(e.schema.disabled ? "k-tooltip" : "div"), {
2340
2339
  class: "field-wrap autosuggest",
2341
2340
  "max-width": "300",
2342
2341
  text: i.t("general.disable_source_scope_change", { scope: r.scope })
2343
2342
  }, {
2344
- default: w(() => [
2345
- C(s, {
2343
+ default: M(() => [
2344
+ C(o, {
2346
2345
  id: a.idValue,
2347
2346
  "allow-uuid-search": r.allowUuidSearch,
2348
2347
  disabled: a.loading,
2349
2348
  "dom-id": e.schema.model,
2349
+ "field-disabled": e.schema.disabled,
2350
2350
  fields: r.inputFieldsWithoutId,
2351
2351
  "get-all": r.getAll,
2352
2352
  "get-one": r.getOne,
2353
2353
  "get-partial": r.getPartial,
2354
- "initial-item": a.initialItems[0],
2354
+ "initial-item": a.initialItem,
2355
2355
  placeholder: a.loading ? i.t("fields.auto_suggest.loading") : e.schema.placeholder,
2356
2356
  "transform-item": r.transformItem,
2357
2357
  onChange: r.onSelected
2358
- }, at({ _: 2 }, [
2358
+ }, at({
2359
+ item: M(({ item: l }) => [
2360
+ c("div", Ud, [
2361
+ c("span", $d, F(l.label), 1),
2362
+ c("span", Vd, F(l.id), 1)
2363
+ ])
2364
+ ]),
2365
+ "selected-item": M(({ item: l }) => [
2366
+ c("span", null, F(l.label) + " - " + F(l.id), 1)
2367
+ ]),
2368
+ _: 2
2369
+ }, [
2359
2370
  a.loading ? {
2360
2371
  name: "before",
2361
- fn: w(() => [
2362
- C(o, { size: i.KUI_ICON_SIZE_30 }, null, 8, ["size"])
2372
+ fn: M(() => [
2373
+ C(s, { size: i.KUI_ICON_SIZE_30 }, null, 8, ["size"])
2363
2374
  ]),
2364
2375
  key: "0"
2365
2376
  } : void 0
2366
- ]), 1032, ["id", "allow-uuid-search", "disabled", "dom-id", "fields", "get-all", "get-one", "get-partial", "initial-item", "placeholder", "transform-item", "onChange"])
2377
+ ]), 1032, ["id", "allow-uuid-search", "disabled", "dom-id", "field-disabled", "fields", "get-all", "get-one", "get-partial", "initial-item", "placeholder", "transform-item", "onChange"])
2367
2378
  ]),
2368
2379
  _: 1
2369
2380
  }, 8, ["text"]);
2370
2381
  }
2371
- const Mi = /* @__PURE__ */ z(kd, [["render", Ud], ["__scopeId", "data-v-2796bf11"]]);
2372
- function $d(e) {
2373
- const t = ie([]), n = ie(null), i = (c) => Re(c) ? Ne[c] != null ? Ne[c] : (console.warn(`'${c}' is not a validator function!`), null) : c, a = L({
2382
+ const Mi = /* @__PURE__ */ z(kd, [["render", Pd], ["__scopeId", "data-v-277309fe"]]);
2383
+ function Rd(e) {
2384
+ const t = Q([]), n = Q(null), i = (m) => Re(m) ? Ne[m] != null ? Ne[m] : (console.warn(`'${m}' is not a validator function!`), null) : m, a = L({
2374
2385
  get() {
2375
- var y, A;
2376
- let c;
2377
- return Y(B(e.schema, "get")) ? c = e.schema.get((y = e.model) == null ? void 0 : y.value) : c = B((A = e.model) == null ? void 0 : A.value, e.schema.model), F(c);
2386
+ var p, b;
2387
+ let m;
2388
+ return Y(B(e.schema, "get")) ? m = e.schema.get((p = e.model) == null ? void 0 : p.value) : m = B((b = e.model) == null ? void 0 : b.value, e.schema.model), k(m);
2378
2389
  },
2379
- set(c) {
2380
- const y = a;
2381
- c = T(c), Y(c) ? c(c, y) : s(c, y);
2390
+ set(m) {
2391
+ const p = a;
2392
+ m = N(m), Y(m) ? m(m, p) : o(m, p);
2382
2393
  }
2383
- }), r = (c) => {
2384
- var b;
2394
+ }), r = (m) => {
2395
+ var _;
2385
2396
  l();
2386
- const y = B(e.formOptions, "validateAsync", !1);
2387
- let A = [];
2397
+ const p = B(e.formOptions, "validateAsync", !1);
2398
+ let b = [];
2388
2399
  if (e.schema.readonly !== !0 && e.disabled !== !0) {
2389
- const E = [], $ = (b = e.schema) == null ? void 0 : b.validator;
2400
+ const E = [], $ = (_ = e.schema) == null ? void 0 : _.validator;
2390
2401
  $ && (Array.isArray($) ? ue($, (S) => {
2391
2402
  E.push(i(S));
2392
2403
  }) : E.push(i($))), Y(e.externalValidator) && E.push(e.externalValidator), ue(E, (S) => {
2393
- var v, R;
2394
- if (y)
2395
- A.push(S(a.value, e.schema, (v = e.model) == null ? void 0 : v.value));
2404
+ var y, P;
2405
+ if (p)
2406
+ b.push(S(a.value, e.schema, (y = e.model) == null ? void 0 : y.value));
2396
2407
  else {
2397
- const x = S(a.value, e.schema, (R = e.model) == null ? void 0 : R.value);
2398
- x && Y(x.then) ? x.then((_) => {
2399
- _ && (t.value = t.value.concat(_));
2408
+ const x = S(a.value, e.schema, (P = e.model) == null ? void 0 : P.value);
2409
+ x && Y(x.then) ? x.then((w) => {
2410
+ w && (t.value = t.value.concat(w));
2400
2411
  const I = t.value.length === 0;
2401
2412
  e.emitValidated && e.emitValidated({ isValid: I, errors: t.value, field: e.schema });
2402
- }) : x && (A = A.concat(x));
2413
+ }) : x && (b = b.concat(x));
2403
2414
  }
2404
2415
  });
2405
2416
  }
2406
- const V = (E) => {
2407
- var S, v;
2417
+ const A = (E) => {
2418
+ var S, y;
2408
2419
  let $ = [];
2409
- if (ue(li(E), (R) => {
2410
- Array.isArray(R) && R.length > 0 ? $ = $.concat(R) : Re(R) && $.push(R);
2411
- }), Y((S = e.schema) == null ? void 0 : S.onValidated) && e.schema.onValidated((v = e.model) == null ? void 0 : v.value, $, e.schema), !c) {
2412
- const R = $.length === 0;
2413
- e.emitValidated && e.emitValidated({ isValid: R, errors: $, field: e.schema });
2420
+ if (ue(li(E), (P) => {
2421
+ Array.isArray(P) && P.length > 0 ? $ = $.concat(P) : Re(P) && $.push(P);
2422
+ }), Y((S = e.schema) == null ? void 0 : S.onValidated) && e.schema.onValidated((y = e.model) == null ? void 0 : y.value, $, e.schema), !m) {
2423
+ const P = $.length === 0;
2424
+ e.emitValidated && e.emitValidated({ isValid: P, errors: $, field: e.schema });
2414
2425
  }
2415
2426
  return E = $, $;
2416
2427
  };
2417
- return y ? Promise.all(A).then(V) : V(A);
2418
- }, o = () => {
2428
+ return p ? Promise.all(b).then(A) : A(b);
2429
+ }, s = () => {
2419
2430
  Y(n.value) ? n.value() : n.value = He(
2420
2431
  r,
2421
2432
  B(e.schema, "validateDebounceTime", B(e.formOptions, "validateDebounceTime", 500))
2422
2433
  );
2423
- }, s = (c, y) => {
2424
- var V, b, E;
2425
- let A = !1;
2426
- Y(e.schema.set) ? (e.schema.set((V = e.model) == null ? void 0 : V.value, c), A = !0) : e.schema.model && (u(e.schema.model, c), A = !0), A && (e.emitModelUpdated && ((b = e.model) != null && b.value) && e.emitModelUpdated({ value: c, model: e.schema.model }), Y(e.schema.onChanged) && e.schema.onChanged((E = e.model) == null ? void 0 : E.value, c, y, e.schema), B(e.formOptions, "validateAfterChanged", !1) === !0 && (B(e.schema, "validateDebounceTime", B(e.formOptions, "validateDebounceTime", 0)) > 0 ? o() : r()));
2434
+ }, o = (m, p) => {
2435
+ var A, _, E;
2436
+ let b = !1;
2437
+ Y(e.schema.set) ? (e.schema.set((A = e.model) == null ? void 0 : A.value, m), b = !0) : e.schema.model && (u(e.schema.model, m), b = !0), b && (e.emitModelUpdated && ((_ = e.model) != null && _.value) && e.emitModelUpdated({ value: m, model: e.schema.model }), Y(e.schema.onChanged) && e.schema.onChanged((E = e.model) == null ? void 0 : E.value, m, p, e.schema), B(e.formOptions, "validateAfterChanged", !1) === !0 && (B(e.schema, "validateDebounceTime", B(e.formOptions, "validateDebounceTime", 0)) > 0 ? s() : r()));
2427
2438
  }, l = () => {
2428
2439
  t.value.splice(0);
2429
- }, u = (c, y) => {
2440
+ }, u = (m, p) => {
2430
2441
  var S;
2431
- let A = c.replace(/\[(\w+)\]/g, ".$1");
2432
- A = A.replace(/^\./, "");
2433
- let V = ((S = e.model) == null ? void 0 : S.value) || {}, b = 0;
2434
- const E = A.split("."), $ = E.length;
2435
- for (; b < $; ) {
2436
- const v = E[b];
2437
- if (b < $ - 1)
2438
- V[v] !== void 0 || (V[v] = {}), V = V[v];
2442
+ let b = m.replace(/\[(\w+)\]/g, ".$1");
2443
+ b = b.replace(/^\./, "");
2444
+ let A = ((S = e.model) == null ? void 0 : S.value) || {}, _ = 0;
2445
+ const E = b.split("."), $ = E.length;
2446
+ for (; _ < $; ) {
2447
+ const y = E[_];
2448
+ if (_ < $ - 1)
2449
+ A[y] !== void 0 || (A[y] = {}), A = A[y];
2439
2450
  else {
2440
- V[v] = y;
2451
+ A[y] = p;
2441
2452
  return;
2442
2453
  }
2443
- ++b;
2454
+ ++_;
2444
2455
  }
2445
- }, h = (c, y = !1) => {
2446
- const A = B(e.formOptions, "fieldIdPrefix", "");
2447
- return zt(c, A) + (y ? "-" + di() : "");
2448
- }, f = (c) => `${h(c)}-label`, p = () => B(e.schema, "fieldClasses", []), F = (c) => e.formatValueToField && typeof e.formatValueToField == "function" ? e.formatValueToField(c) : c, T = (c) => e.formatValueToModel && typeof e.formatValueToModel == "function" ? e.formatValueToModel(c) : c;
2456
+ }, h = (m, p = !1) => {
2457
+ const b = B(e.formOptions, "fieldIdPrefix", "");
2458
+ return zt(m, b) + (p ? "-" + di() : "");
2459
+ }, f = (m) => `${h(m)}-label`, g = () => B(e.schema, "fieldClasses", []), k = (m) => e.formatValueToField && typeof e.formatValueToField == "function" ? e.formatValueToField(m) : m, N = (m) => e.formatValueToModel && typeof e.formatValueToModel == "function" ? e.formatValueToModel(m) : m;
2449
2460
  return {
2450
2461
  value: a,
2451
2462
  clearValidationErrors: l,
2452
2463
  getFieldID: h,
2453
2464
  getLabelId: f,
2454
- getFieldClasses: p,
2455
- updateModelValue: s
2465
+ getFieldClasses: g,
2466
+ updateModelValue: o
2456
2467
  };
2457
2468
  }
2458
- function Vd(e) {
2469
+ function jd(e) {
2459
2470
  const t = [], n = (i) => {
2460
2471
  const a = ["cluster-cache", "cluster_cache"];
2461
2472
  for (const r of a)
@@ -2476,15 +2487,15 @@ function Vd(e) {
2476
2487
  redisModels: t.map((i) => i.model)
2477
2488
  };
2478
2489
  }
2479
- function Pd(e, t) {
2490
+ function Nd(e, t) {
2480
2491
  const n = new RegExp("(?<=config-redis-).*"), i = /Config\.Redis.*/;
2481
2492
  return t.filter((r) => {
2482
- const o = r.model.match(n);
2483
- return o && !Object.keys(e).includes(o[0]);
2493
+ const s = r.model.match(n);
2494
+ return s && !Object.keys(e).includes(s[0]);
2484
2495
  }).map((r) => {
2485
- const o = r.label.match(i);
2496
+ const s = r.label.match(i);
2486
2497
  return {
2487
- label: o ? o[0] : r.label,
2498
+ label: s ? s[0] : r.label,
2488
2499
  key: r.model,
2489
2500
  value: "N/A",
2490
2501
  type: "text"
@@ -2492,10 +2503,10 @@ function Pd(e, t) {
2492
2503
  });
2493
2504
  }
2494
2505
  const Me = {
2495
- useAbstractFields: $d,
2496
- useRedisPartial: Vd,
2497
- useRedisNonStandardFields: Pd
2498
- }, Rd = { class: "form-field-wrapper" }, jd = /* @__PURE__ */ re({
2506
+ useAbstractFields: Rd,
2507
+ useRedisPartial: jd,
2508
+ useRedisNonStandardFields: Nd
2509
+ }, Ld = { class: "form-field-wrapper" }, qd = /* @__PURE__ */ re({
2499
2510
  __name: "FieldInput",
2500
2511
  props: {
2501
2512
  disabled: {
@@ -2535,12 +2546,12 @@ const Me = {
2535
2546
  },
2536
2547
  emits: ["modelUpdated"],
2537
2548
  setup(e, { expose: t, emit: n }) {
2538
- const i = e, a = n, r = Le(i), o = st(ge, void 0), { updateModelValue: s, getFieldID: l, clearValidationErrors: u, value: h } = Me.useAbstractFields({
2549
+ const i = e, a = n, r = Le(i), s = st(ge, void 0), { updateModelValue: o, getFieldID: l, clearValidationErrors: u, value: h } = Me.useAbstractFields({
2539
2550
  model: r.model,
2540
2551
  schema: i.schema,
2541
2552
  formOptions: i.formOptions,
2542
- emitModelUpdated: (b) => {
2543
- a("modelUpdated", b.value, b.model);
2553
+ emitModelUpdated: (_) => {
2554
+ a("modelUpdated", _.value, _.model);
2544
2555
  }
2545
2556
  });
2546
2557
  t({
@@ -2548,48 +2559,48 @@ const Me = {
2548
2559
  });
2549
2560
  const f = L(() => {
2550
2561
  var E;
2551
- const b = (E = i.schema) == null ? void 0 : E.inputType.toLowerCase();
2552
- switch (b) {
2562
+ const _ = (E = i.schema) == null ? void 0 : E.inputType.toLowerCase();
2563
+ switch (_) {
2553
2564
  case "string":
2554
2565
  return "text";
2555
2566
  case "datetime":
2556
2567
  return "datetime-local";
2557
2568
  default:
2558
- return b || "text";
2569
+ return _ || "text";
2559
2570
  }
2560
- }), p = {
2571
+ }), g = {
2561
2572
  date: "YYYY-MM-DD",
2562
2573
  datetime: "YYYY-MM-DD HH:mm:ss",
2563
2574
  "datetime-local": "YYYY-MM-DDTHH:mm:ss"
2564
- }, F = (b, E) => {
2565
- var R, x;
2566
- let $ = b;
2567
- const S = p[f.value] || "", v = Be.parse(b, S);
2568
- v && ((R = i.schema) != null && R.format ? $ = Be.format(v, (x = i.schema) == null ? void 0 : x.format) : $ = v.valueOf()), s($, E);
2569
- }, T = (b, E) => {
2570
- ct(b) || (b = NaN), s(b, E);
2571
- }, c = (b) => {
2572
- let E = b;
2575
+ }, k = (_, E) => {
2576
+ var P, x;
2577
+ let $ = _;
2578
+ const S = g[f.value] || "", y = Be.parse(_, S);
2579
+ y && ((P = i.schema) != null && P.format ? $ = Be.format(y, (x = i.schema) == null ? void 0 : x.format) : $ = y.valueOf()), o($, E);
2580
+ }, N = (_, E) => {
2581
+ ct(_) || (_ = NaN), o(_, E);
2582
+ }, m = (_) => {
2583
+ let E = _;
2573
2584
  switch (f.value) {
2574
2585
  case "number":
2575
2586
  case "range":
2576
- ct(parseFloat(b)) && (E = parseFloat(b));
2587
+ ct(parseFloat(_)) && (E = parseFloat(_));
2577
2588
  break;
2578
2589
  }
2579
- h.value = E, s(E, b);
2580
- }, y = (b) => {
2581
- h.value = b, s(b, b);
2582
- }, A = ie(null), V = () => {
2583
- var b;
2584
- Y(A.value) && ((b = A.value) == null || b.flush());
2590
+ h.value = E, o(E, _);
2591
+ }, p = (_) => {
2592
+ h.value = _, o(_, _);
2593
+ }, b = Q(null), A = () => {
2594
+ var _;
2595
+ Y(b.value) && ((_ = b.value) == null || _.flush());
2585
2596
  };
2586
2597
  return Vt(() => {
2587
2598
  switch (f.value) {
2588
2599
  case "number":
2589
2600
  case "range":
2590
- A.value = He(
2591
- (b, E) => {
2592
- T(b, E);
2601
+ b.value = He(
2602
+ (_, E) => {
2603
+ N(_, E);
2593
2604
  },
2594
2605
  parseInt(B(i.schema, "debounceFormatTimeout", 1e3)),
2595
2606
  {
@@ -2601,9 +2612,9 @@ const Me = {
2601
2612
  case "date":
2602
2613
  case "datetime":
2603
2614
  case "datetime-local":
2604
- A.value = He(
2605
- (b, E) => {
2606
- F(b, E);
2615
+ b.value = He(
2616
+ (_, E) => {
2617
+ k(_, E);
2607
2618
  },
2608
2619
  parseInt(B(i.schema, "debounceFormatTimeout", 1e3)),
2609
2620
  {
@@ -2615,20 +2626,20 @@ const Me = {
2615
2626
  }
2616
2627
  }), Pt(() => {
2617
2628
  f.value === "checkbox" ? console.warn("The use of 'checkbox' inputType with 'input' type fields is deprecated. Use 'checkbox' type instead.") : f.value === "radio" ? console.warn("The use of 'radio' inputType with 'input' type fields is deprecated. Use 'radio' type instead.") : f.value === "file" && console.warn("The 'file' type in input field is deprecated. Use 'file' field instead.");
2618
- }), (b, E) => {
2619
- const $ = k("KInput");
2620
- return d(), g("div", Rd, [
2621
- C($, Ee(b.$attrs, {
2622
- id: M(l)(e.schema),
2629
+ }), (_, E) => {
2630
+ const $ = U("KInput");
2631
+ return d(), v("div", Ld, [
2632
+ C($, Ee(_.$attrs, {
2633
+ id: T(l)(e.schema),
2623
2634
  autocomplete: e.schema.autocomplete,
2624
2635
  class: e.schema.fieldClasses,
2625
2636
  disabled: e.disabled || void 0,
2626
- help: e.hint ? e.hint : f.value === "color" || f.value === "range" ? M(h) : void 0,
2637
+ help: e.hint ? e.hint : f.value === "color" || f.value === "range" ? T(h) : void 0,
2627
2638
  max: e.schema.max,
2628
2639
  maxlength: e.schema.maxlength,
2629
2640
  min: e.schema.min,
2630
2641
  minlength: e.schema.minlength,
2631
- "model-value": M(h),
2642
+ "model-value": T(h),
2632
2643
  name: e.schema.inputName,
2633
2644
  pattern: e.schema.pattern,
2634
2645
  placeholder: e.schema.placeholder,
@@ -2637,18 +2648,18 @@ const Me = {
2637
2648
  "show-password-mask-toggle": f.value === "password",
2638
2649
  type: f.value,
2639
2650
  width: e.schema.width,
2640
- onBlur: V,
2641
- "onUpdate:modelValue": c
2651
+ onBlur: A,
2652
+ "onUpdate:modelValue": m
2642
2653
  }), null, 16, ["id", "autocomplete", "class", "disabled", "help", "max", "maxlength", "min", "minlength", "model-value", "name", "pattern", "placeholder", "readonly", "required", "show-password-mask-toggle", "type", "width"]),
2643
- (d(), O(ne(M(o)), {
2654
+ (d(), O(ie(T(s)), {
2644
2655
  schema: e.schema,
2645
- update: y,
2646
- value: M(h)
2656
+ update: p,
2657
+ value: T(h)
2647
2658
  }, null, 8, ["schema", "value"]))
2648
2659
  ]);
2649
2660
  };
2650
2661
  }
2651
- }), Si = /* @__PURE__ */ z(jd, [["__scopeId", "data-v-fe1132bb"]]), Nd = {
2662
+ }), Si = /* @__PURE__ */ z(qd, [["__scopeId", "data-v-fe1132bb"]]), Kd = {
2652
2663
  name: "FieldMetric",
2653
2664
  components: { AddIcon: jt, TrashIcon: rt },
2654
2665
  mixins: [_e],
@@ -2658,43 +2669,43 @@ const Me = {
2658
2669
  contentVisible: !1
2659
2670
  };
2660
2671
  }
2661
- }, Ld = {
2672
+ }, Dd = {
2662
2673
  key: 0,
2663
2674
  class: "content"
2664
2675
  };
2665
- function qd(e, t, n, i, a, r) {
2666
- const o = k("AddIcon"), s = k("TrashIcon"), l = k("KButton");
2667
- return d(), g("div", {
2676
+ function Bd(e, t, n, i, a, r) {
2677
+ const s = U("AddIcon"), o = U("TrashIcon"), l = U("KButton");
2678
+ return d(), v("div", {
2668
2679
  class: W(["field-dropdown", { active: a.contentVisible }])
2669
2680
  }, [
2670
- m("div", {
2681
+ c("div", {
2671
2682
  class: "title",
2672
2683
  onClick: t[0] || (t[0] = (u) => a.contentVisible = !a.contentVisible)
2673
2684
  }, [
2674
- te(U(e.model.name ? e.model.name : "New Item") + " ", 1),
2675
- C(o, { class: "metric-add-icon" })
2685
+ ne(F(e.model.name ? e.model.name : "New Item") + " ", 1),
2686
+ C(s, { class: "metric-add-icon" })
2676
2687
  ]),
2677
2688
  C($i, { name: "slide-fade" }, {
2678
- default: w(() => [
2679
- a.contentVisible ? (d(), g("div", Ld, [
2689
+ default: M(() => [
2690
+ a.contentVisible ? (d(), v("div", Dd, [
2680
2691
  fe(e.$slots, "default"),
2681
2692
  C(l, {
2682
2693
  appearance: "tertiary",
2683
2694
  class: "metric-remove-button",
2684
2695
  onClick: t[1] || (t[1] = (u) => e.$emit("remove-item"))
2685
2696
  }, {
2686
- default: w(() => [
2687
- C(s)
2697
+ default: M(() => [
2698
+ C(o)
2688
2699
  ]),
2689
2700
  _: 1
2690
2701
  })
2691
- ])) : j("", !0)
2702
+ ])) : R("", !0)
2692
2703
  ]),
2693
2704
  _: 3
2694
2705
  })
2695
2706
  ], 2);
2696
2707
  }
2697
- const Ti = /* @__PURE__ */ z(Nd, [["render", qd]]), Kd = { class: "field-object-container" }, Dd = { key: 1 }, Bd = ["id"], zd = { key: 0 }, Yd = ["onUpdate:modelValue"], Hd = { key: 1 }, xd = ["onUpdate:modelValue"], Gd = { key: 2 }, Wd = ["onUpdate:modelValue"], Zd = ["onClick"], Jd = {
2708
+ const Ti = /* @__PURE__ */ z(Kd, [["render", Bd]]), zd = { class: "field-object-container" }, Yd = { key: 1 }, Hd = ["id"], xd = { key: 0 }, Gd = ["onUpdate:modelValue"], Wd = { key: 1 }, Zd = ["onUpdate:modelValue"], Jd = { key: 2 }, Qd = ["onUpdate:modelValue"], Xd = ["onClick"], eu = {
2698
2709
  mixins: [_e],
2699
2710
  expose: ["validate", "clearValidationErrors", "schema"],
2700
2711
  emits: ["modelUpdated"],
@@ -2732,74 +2743,74 @@ const Ti = /* @__PURE__ */ z(Nd, [["render", qd]]), Kd = { class: "field-object-
2732
2743
  this.$emit("modelUpdated", e, t);
2733
2744
  }
2734
2745
  }
2735
- }, Qd = /* @__PURE__ */ Object.assign(Jd, {
2746
+ }, tu = /* @__PURE__ */ Object.assign(eu, {
2736
2747
  __name: "FieldObject",
2737
2748
  setup(e) {
2738
2749
  return (t, n) => {
2739
2750
  const i = Vn("attributes");
2740
- return ce((d(), g("div", Kd, [
2741
- t.schema.schema ? (d(), O(ee, {
2751
+ return ce((d(), v("div", zd, [
2752
+ t.schema.schema ? (d(), O(te, {
2742
2753
  key: 0,
2743
2754
  model: t.value,
2744
2755
  options: t.formOptions,
2745
2756
  schema: t.schema.schema,
2746
2757
  onModelUpdated: t.updateModel
2747
- }, null, 8, ["model", "options", "schema", "onModelUpdated"])) : (d(), g("div", Dd, [
2748
- m("table", {
2758
+ }, null, 8, ["model", "options", "schema", "onModelUpdated"])) : (d(), v("div", Yd, [
2759
+ c("table", {
2749
2760
  id: t.getFieldID(t.schema),
2750
2761
  class: W(t.schema.fieldClasses)
2751
2762
  }, [
2752
- (d(!0), g(K, null, J(t.value, (a, r) => (d(), g("tr", { key: r }, [
2753
- m("td", null, U(r), 1),
2754
- t.keyTypes[r] === "string" ? (d(), g("td", zd, [
2755
- ce(m("input", {
2756
- "onUpdate:modelValue": (o) => t.value[r] = o,
2763
+ (d(!0), v(K, null, J(t.value, (a, r) => (d(), v("tr", { key: r }, [
2764
+ c("td", null, F(r), 1),
2765
+ t.keyTypes[r] === "string" ? (d(), v("td", xd, [
2766
+ ce(c("input", {
2767
+ "onUpdate:modelValue": (s) => t.value[r] = s,
2757
2768
  type: "text"
2758
- }, null, 8, Yd), [
2769
+ }, null, 8, Gd), [
2759
2770
  [Je, t.value[r]]
2760
2771
  ])
2761
- ])) : j("", !0),
2762
- t.keyTypes[r] === "boolean" ? (d(), g("td", Hd, [
2763
- ce(m("input", {
2764
- "onUpdate:modelValue": (o) => t.value[r] = o,
2772
+ ])) : R("", !0),
2773
+ t.keyTypes[r] === "boolean" ? (d(), v("td", Wd, [
2774
+ ce(c("input", {
2775
+ "onUpdate:modelValue": (s) => t.value[r] = s,
2765
2776
  type: "checkbox"
2766
- }, null, 8, xd), [
2777
+ }, null, 8, Zd), [
2767
2778
  [Vi, t.value[r]]
2768
2779
  ])
2769
- ])) : j("", !0),
2770
- t.keyTypes[r] === "number" ? (d(), g("td", Gd, [
2771
- ce(m("input", {
2772
- "onUpdate:modelValue": (o) => t.value[r] = o,
2780
+ ])) : R("", !0),
2781
+ t.keyTypes[r] === "number" ? (d(), v("td", Jd, [
2782
+ ce(c("input", {
2783
+ "onUpdate:modelValue": (s) => t.value[r] = s,
2773
2784
  type: "number"
2774
- }, null, 8, Wd), [
2785
+ }, null, 8, Qd), [
2775
2786
  [Je, t.value[r]]
2776
2787
  ])
2777
- ])) : j("", !0),
2778
- m("td", null, [
2779
- m("input", {
2788
+ ])) : R("", !0),
2789
+ c("td", null, [
2790
+ c("input", {
2780
2791
  type: "button",
2781
2792
  value: "x",
2782
- onClick: (o) => t.removeElement(r)
2783
- }, null, 8, Zd)
2793
+ onClick: (s) => t.removeElement(r)
2794
+ }, null, 8, Xd)
2784
2795
  ])
2785
2796
  ]))), 128))
2786
- ], 10, Bd),
2787
- ce(m("select", {
2797
+ ], 10, Hd),
2798
+ ce(c("select", {
2788
2799
  "onUpdate:modelValue": n[0] || (n[0] = (a) => t.newKeyType = a)
2789
2800
  }, n[3] || (n[3] = [
2790
- m("option", { value: "string" }, " String ", -1),
2791
- m("option", { value: "number" }, " Number ", -1),
2792
- m("option", { value: "boolean" }, " Boolean ", -1)
2801
+ c("option", { value: "string" }, " String ", -1),
2802
+ c("option", { value: "number" }, " Number ", -1),
2803
+ c("option", { value: "boolean" }, " Boolean ", -1)
2793
2804
  ]), 512), [
2794
2805
  [Pi, t.newKeyType]
2795
2806
  ]),
2796
- ce(m("input", {
2807
+ ce(c("input", {
2797
2808
  "onUpdate:modelValue": n[1] || (n[1] = (a) => t.newKeyName = a),
2798
2809
  type: "text"
2799
2810
  }, null, 512), [
2800
2811
  [Je, t.newKeyName]
2801
2812
  ]),
2802
- m("input", {
2813
+ c("input", {
2803
2814
  type: "button",
2804
2815
  value: "Add key",
2805
2816
  onClick: n[2] || (n[2] = (...a) => t.addKey && t.addKey(...a))
@@ -2810,13 +2821,13 @@ const Ti = /* @__PURE__ */ z(Nd, [["render", qd]]), Kd = { class: "field-object-
2810
2821
  ]);
2811
2822
  };
2812
2823
  }
2813
- }), Ii = /* @__PURE__ */ z(Qd, [["__scopeId", "data-v-4ace4106"]]), Xd = ["id"], eu = ["data-testid"], tu = { class: "item-wrapper" }, nu = { class: "index-wrapper" }, iu = { key: 0 }, au = { key: 1 }, ru = ["onUpdate:modelValue", "placeholder", "type", "onInput"], su = {
2824
+ }), Ii = /* @__PURE__ */ z(tu, [["__scopeId", "data-v-4ace4106"]]), nu = ["id"], iu = ["data-testid"], au = { class: "item-wrapper" }, ru = { class: "index-wrapper" }, su = { key: 0 }, ou = { key: 1 }, lu = ["onUpdate:modelValue", "placeholder", "type", "onInput"], du = {
2814
2825
  key: 0,
2815
2826
  class: "hint"
2816
- }, ou = { class: "input-item" }, lu = ["placeholder"], du = {
2827
+ }, uu = { class: "input-item" }, cu = ["placeholder"], mu = {
2817
2828
  key: 0,
2818
2829
  class: "hint"
2819
- }, uu = {
2830
+ }, fu = {
2820
2831
  mixins: [_e],
2821
2832
  expose: ["validate", "clearValidationErrors", "schema"],
2822
2833
  inject: {
@@ -2892,15 +2903,15 @@ const Ti = /* @__PURE__ */ z(Nd, [["render", qd]]), Kd = { class: "field-object-
2892
2903
  const r = a.indexOf(n + "-");
2893
2904
  if (r > -1 && Array.isArray(t))
2894
2905
  if (t.length > 0) {
2895
- const s = a.split("-").filter((u) => t.find((h) => h.model === u)), l = a.split(`-${s}`)[0].split(`${n}-`)[1];
2896
- s.length ? i[l] = {
2906
+ const o = a.split("-").filter((u) => t.find((h) => h.model === u)), l = a.split(`-${o}`)[0].split(`${n}-`)[1];
2907
+ o.length ? i[l] = {
2897
2908
  ...i[l],
2898
- [s]: e[a]
2909
+ [o]: e[a]
2899
2910
  } : i[a.substring(r + `${n}-`.length)] = e[a];
2900
2911
  } else
2901
2912
  i[a.substring(`${n}-`.length)] = e[a];
2902
2913
  else {
2903
- const s = a.split("-").filter((u) => u === this.schema.model), l = a.split(`-${s}`)[0].split(`${n}-`)[1];
2914
+ const o = a.split("-").filter((u) => u === this.schema.model), l = a.split(`-${o}`)[0].split(`${n}-`)[1];
2904
2915
  l && (i[l] = e[a]);
2905
2916
  }
2906
2917
  return a;
@@ -2915,78 +2926,78 @@ const Ti = /* @__PURE__ */ z(Nd, [["render", qd]]), Kd = { class: "field-object-
2915
2926
  this.$emit("model-updated", this.model[this.schema.model], t);
2916
2927
  }
2917
2928
  }
2918
- }, cu = /* @__PURE__ */ Object.assign(uu, {
2929
+ }, hu = /* @__PURE__ */ Object.assign(fu, {
2919
2930
  __name: "FieldObjectAdvanced",
2920
2931
  setup(e) {
2921
2932
  return (t, n) => {
2922
- const i = k("KButton");
2923
- return d(), g("div", {
2933
+ const i = U("KButton");
2934
+ return d(), v("div", {
2924
2935
  id: t.getFieldID(t.schema),
2925
2936
  class: W(["object-advanced-wrapper", t.schema.fieldClasses])
2926
2937
  }, [
2927
- (d(!0), g(K, null, J(t.value, (a, r) => (d(), g("div", {
2938
+ (d(!0), v(K, null, J(t.value, (a, r) => (d(), v("div", {
2928
2939
  key: r,
2929
2940
  "data-testid": `field-object-key-${r}`
2930
2941
  }, [
2931
- m("div", null, [
2932
- m("div", tu, [
2933
- m("div", nu, [
2934
- m("strong", null, U(r), 1),
2935
- m("div", null, [
2942
+ c("div", null, [
2943
+ c("div", au, [
2944
+ c("div", ru, [
2945
+ c("strong", null, F(r), 1),
2946
+ c("div", null, [
2936
2947
  C(i, {
2937
2948
  appearance: "tertiary",
2938
2949
  class: "delete",
2939
2950
  icon: "",
2940
2951
  type: "button",
2941
- onClick: (o) => t.removeElement(r)
2952
+ onClick: (s) => t.removeElement(r)
2942
2953
  }, {
2943
- default: w(() => [
2944
- C(M(rt))
2954
+ default: M(() => [
2955
+ C(T(rt))
2945
2956
  ]),
2946
2957
  _: 2
2947
2958
  }, 1032, ["onClick"])
2948
2959
  ])
2949
2960
  ]),
2950
- n[1] || (n[1] = m("hr", { class: "divider" }, null, -1)),
2951
- t.subSchema ? (d(), g("div", iu, [
2952
- C(ee, {
2961
+ n[1] || (n[1] = c("hr", { class: "divider" }, null, -1)),
2962
+ t.subSchema ? (d(), v("div", su, [
2963
+ C(te, {
2953
2964
  model: t.transformedModel[r],
2954
2965
  options: { helpAsHtml: !0 },
2955
2966
  schema: t.subSchema,
2956
2967
  onModelUpdated: t.updateModel
2957
2968
  }, null, 8, ["model", "schema", "onModelUpdated"])
2958
- ])) : (d(), g("div", au, [
2959
- ce(m("input", {
2960
- "onUpdate:modelValue": (o) => t.value[r] = o,
2969
+ ])) : (d(), v("div", ou, [
2970
+ ce(c("input", {
2971
+ "onUpdate:modelValue": (s) => t.value[r] = s,
2961
2972
  class: "form-control",
2962
2973
  placeholder: t.schema.fields && t.schema.fields[0].schema.placeholder,
2963
2974
  type: t.valueInputType,
2964
- onInput: (o) => t.updateModel(t.value[r], t.model[t.schema.model])
2965
- }, null, 40, ru), [
2975
+ onInput: (s) => t.updateModel(t.value[r], t.model[t.schema.model])
2976
+ }, null, 40, lu), [
2966
2977
  [Pn, t.value[r]]
2967
2978
  ]),
2968
- t.schema.fields && t.schema.fields[0].schema.hint ? (d(), g("p", su, U(t.schema.fields[0].schema.hint), 1)) : j("", !0),
2969
- (d(), O(ne(t.autofillSlot), {
2979
+ t.schema.fields && t.schema.fields[0].schema.hint ? (d(), v("p", du, F(t.schema.fields[0].schema.hint), 1)) : R("", !0),
2980
+ (d(), O(ie(t.autofillSlot), {
2970
2981
  schema: t.schema.fields && t.schema.fields[0].schema || t.schema.values,
2971
- update: (o) => t.value[r] = o,
2982
+ update: (s) => t.value[r] = s,
2972
2983
  value: t.value[r]
2973
2984
  }, null, 8, ["schema", "update", "value"]))
2974
2985
  ])),
2975
- n[2] || (n[2] = m("hr", { class: "wide-divider" }, null, -1))
2986
+ n[2] || (n[2] = c("hr", { class: "wide-divider" }, null, -1))
2976
2987
  ])
2977
2988
  ])
2978
- ], 8, eu))), 128)),
2979
- m("div", {
2989
+ ], 8, iu))), 128)),
2990
+ c("div", {
2980
2991
  class: W(["input-wrapper", { indent: t.hasObjectKeys }])
2981
2992
  }, [
2982
- m("div", ou, [
2983
- ce(m("input", {
2993
+ c("div", uu, [
2994
+ ce(c("input", {
2984
2995
  "onUpdate:modelValue": n[0] || (n[0] = (a) => t.newKeyName = a),
2985
2996
  class: "form-control",
2986
2997
  "data-testid": "keyname-input",
2987
2998
  placeholder: t.schema.placeholder,
2988
2999
  type: "text"
2989
- }, null, 8, lu), [
3000
+ }, null, 8, cu), [
2990
3001
  [Je, t.newKeyName]
2991
3002
  ]),
2992
3003
  C(i, {
@@ -2995,18 +3006,18 @@ const Ti = /* @__PURE__ */ z(Nd, [["render", qd]]), Kd = { class: "field-object-
2995
3006
  disabled: !t.newKeyName,
2996
3007
  onClick: t.addKey
2997
3008
  }, {
2998
- default: w(() => [
2999
- te(" + Add " + U(t.schema.buttonLabel || t.schema.label), 1)
3009
+ default: M(() => [
3010
+ ne(" + Add " + F(t.schema.buttonLabel || t.schema.label), 1)
3000
3011
  ]),
3001
3012
  _: 1
3002
3013
  }, 8, ["disabled", "onClick"])
3003
3014
  ]),
3004
- t.schema.hintText ? (d(), g("p", du, U(t.schema.hintText), 1)) : j("", !0)
3015
+ t.schema.hintText ? (d(), v("p", mu, F(t.schema.hintText), 1)) : R("", !0)
3005
3016
  ], 2)
3006
- ], 10, Xd);
3017
+ ], 10, nu);
3007
3018
  };
3008
3019
  }
3009
- }), Ci = /* @__PURE__ */ z(cu, [["__scopeId", "data-v-502ed880"]]), mu = { class: "radio-selection-group" }, fu = /* @__PURE__ */ re({
3020
+ }), Ci = /* @__PURE__ */ z(hu, [["__scopeId", "data-v-502ed880"]]), pu = { class: "radio-selection-group" }, gu = /* @__PURE__ */ re({
3010
3021
  __name: "FieldRadio",
3011
3022
  props: {
3012
3023
  disabled: {
@@ -3046,7 +3057,7 @@ const Ti = /* @__PURE__ */ z(Nd, [["render", qd]]), Kd = { class: "field-object-
3046
3057
  },
3047
3058
  emits: ["modelUpdated"],
3048
3059
  setup(e, { expose: t, emit: n }) {
3049
- const i = e, a = n, r = Le(i), { updateModelValue: o, value: s, clearValidationErrors: l } = Me.useAbstractFields({
3060
+ const i = e, a = n, r = Le(i), { updateModelValue: s, value: o, clearValidationErrors: l } = Me.useAbstractFields({
3050
3061
  model: r.model,
3051
3062
  schema: i.schema,
3052
3063
  formOptions: i.formOptions,
@@ -3059,27 +3070,27 @@ const Ti = /* @__PURE__ */ z(Nd, [["render", qd]]), Kd = { class: "field-object-
3059
3070
  });
3060
3071
  const u = (h) => {
3061
3072
  let f = h;
3062
- typeof h == "string" && (f = h.split(","), i.schema.array || (f = f.toString())), o(f, h);
3073
+ typeof h == "string" && (f = h.split(","), i.schema.array || (f = f.toString())), s(f, h);
3063
3074
  };
3064
3075
  return (h, f) => {
3065
- const p = k("KRadio");
3066
- return d(), g("div", mu, [
3067
- (d(!0), g(K, null, J(e.schema.values, (F, T) => (d(), O(p, {
3068
- id: e.schema.name + "-" + T,
3069
- key: F.value,
3070
- modelValue: M(s),
3071
- "onUpdate:modelValue": f[0] || (f[0] = (c) => xe(s) ? s.value = c : null),
3072
- label: F.name,
3076
+ const g = U("KRadio");
3077
+ return d(), v("div", pu, [
3078
+ (d(!0), v(K, null, J(e.schema.values, (k, N) => (d(), O(g, {
3079
+ id: e.schema.name + "-" + N,
3080
+ key: k.value,
3081
+ modelValue: T(o),
3082
+ "onUpdate:modelValue": f[0] || (f[0] = (m) => xe(o) ? o.value = m : null),
3083
+ label: k.name,
3073
3084
  "label-attributes": { info: e.schema.help },
3074
3085
  name: e.schema.name,
3075
3086
  required: e.schema.required || void 0,
3076
- "selected-value": F.value,
3087
+ "selected-value": k.value,
3077
3088
  onChange: u
3078
3089
  }, null, 8, ["id", "modelValue", "label", "label-attributes", "name", "required", "selected-value"]))), 128))
3079
3090
  ]);
3080
3091
  };
3081
3092
  }
3082
- }), Ai = /* @__PURE__ */ z(fu, [["__scopeId", "data-v-09b8afda"]]), Oi = /* @__PURE__ */ re({
3093
+ }), Ai = /* @__PURE__ */ z(gu, [["__scopeId", "data-v-09b8afda"]]), Oi = /* @__PURE__ */ re({
3083
3094
  __name: "FieldSelect",
3084
3095
  props: {
3085
3096
  disabled: {
@@ -3119,61 +3130,61 @@ const Ti = /* @__PURE__ */ z(Nd, [["render", qd]]), Kd = { class: "field-object-
3119
3130
  },
3120
3131
  emits: ["modelUpdated"],
3121
3132
  setup(e, { expose: t, emit: n }) {
3122
- const i = e, a = n, r = L(() => i.schema.selectOptions || {}), o = (c) => X(c) ? null : c, s = Le(i), { getFieldID: l, clearValidationErrors: u, value: h } = Me.useAbstractFields({
3123
- model: s.model,
3133
+ const i = e, a = n, r = L(() => i.schema.selectOptions || {}), s = (m) => ee(m) ? null : m, o = Le(i), { getFieldID: l, clearValidationErrors: u, value: h } = Me.useAbstractFields({
3134
+ model: o.model,
3124
3135
  schema: i.schema,
3125
3136
  formOptions: i.formOptions,
3126
- formatValueToField: o,
3127
- emitModelUpdated: (c) => {
3128
- a("modelUpdated", c.value, c.model);
3137
+ formatValueToField: s,
3138
+ emitModelUpdated: (m) => {
3139
+ a("modelUpdated", m.value, m.model);
3129
3140
  }
3130
3141
  });
3131
3142
  t({
3132
3143
  clearValidationErrors: u
3133
3144
  });
3134
3145
  const f = L(() => {
3135
- const c = i.schema.values;
3136
- return p(typeof c == "function" ? c.apply(this, [i.model, i.schema]) : c);
3137
- }), p = (c) => {
3138
- const y = [];
3139
- return c.forEach((A) => {
3140
- y.push({
3141
- label: T(A),
3142
- value: F(A),
3143
- disabled: typeof A == "object" && A.disabled || void 0,
3144
- group: typeof A == "object" && String(A.group || "").toUpperCase() || void 0
3146
+ const m = i.schema.values;
3147
+ return g(typeof m == "function" ? m.apply(this, [i.model, i.schema]) : m);
3148
+ }), g = (m) => {
3149
+ const p = [];
3150
+ return m.forEach((b) => {
3151
+ p.push({
3152
+ label: N(b),
3153
+ value: k(b),
3154
+ disabled: typeof b == "object" && b.disabled || void 0,
3155
+ group: typeof b == "object" && String(b.group || "").toUpperCase() || void 0
3145
3156
  });
3146
- }), y;
3147
- }, F = (c) => {
3148
- if (he(c)) {
3157
+ }), p;
3158
+ }, k = (m) => {
3159
+ if (he(m)) {
3149
3160
  if (r.value && typeof r.value.value < "u")
3150
- return c[r.value.value];
3151
- if (typeof c.id < "u")
3152
- return String(c.id);
3161
+ return m[r.value.value];
3162
+ if (typeof m.id < "u")
3163
+ return String(m.id);
3153
3164
  throw new Error("`id` is not defined. If you want to use another key name, add a `value` property under `selectOptions` in the schema. https://icebob.gitbooks.io/vueformgenerator/content/fields/select.html#select-field-with-object-items");
3154
3165
  } else
3155
- return c;
3156
- }, T = (c) => {
3157
- if (he(c)) {
3166
+ return m;
3167
+ }, N = (m) => {
3168
+ if (he(m)) {
3158
3169
  if (r.value && typeof r.value.name < "u")
3159
- return c[r.value.name];
3160
- if (typeof c.name < "u")
3161
- return String(c.name);
3170
+ return m[r.value.name];
3171
+ if (typeof m.name < "u")
3172
+ return String(m.name);
3162
3173
  throw new Error("`name` is not defined. If you want to use another key name, add a `name` property under `selectOptions` in the schema. https://icebob.gitbooks.io/vueformgenerator/content/fields/select.html#select-field-with-object-items");
3163
3174
  } else
3164
- return String(c);
3175
+ return String(m);
3165
3176
  };
3166
- return (c, y) => {
3167
- const A = k("KSelect");
3168
- return d(), O(A, {
3169
- id: M(l)(e.schema),
3170
- modelValue: M(h),
3171
- "onUpdate:modelValue": y[0] || (y[0] = (V) => xe(h) ? h.value = V : null),
3177
+ return (m, p) => {
3178
+ const b = U("KSelect");
3179
+ return d(), O(b, {
3180
+ id: T(l)(e.schema),
3181
+ modelValue: T(h),
3182
+ "onUpdate:modelValue": p[0] || (p[0] = (A) => xe(h) ? h.value = A : null),
3172
3183
  class: W(e.schema.fieldClasses),
3173
3184
  clearable: !e.schema.required,
3174
3185
  disabled: e.disabled || void 0,
3175
3186
  items: f.value,
3176
- "kpop-attributes": { "data-testid": `${M(l)(e.schema)}-items` },
3187
+ "kpop-attributes": { "data-testid": `${T(l)(e.schema)}-items` },
3177
3188
  "label-attributes": { info: e.schema.help },
3178
3189
  name: e.schema.inputName,
3179
3190
  placeholder: r.value.hideNoneSelectedText ? void 0 : r.value.noneSelectedText || "Nothing Selected",
@@ -3182,7 +3193,7 @@ const Ti = /* @__PURE__ */ z(Nd, [["render", qd]]), Kd = { class: "field-object-
3182
3193
  }, null, 8, ["id", "modelValue", "class", "clearable", "disabled", "items", "kpop-attributes", "label-attributes", "name", "placeholder", "required"]);
3183
3194
  };
3184
3195
  }
3185
- }), hu = {
3196
+ }), vu = {
3186
3197
  name: "FieldArray",
3187
3198
  components: {
3188
3199
  FieldArrayItem: yi,
@@ -3217,11 +3228,11 @@ const Ti = /* @__PURE__ */ z(Nd, [["render", qd]]), Kd = { class: "field-object-
3217
3228
  emits: ["refreshModel"],
3218
3229
  methods: {
3219
3230
  generateSchema(e, t, n) {
3220
- var a, r, o;
3231
+ var a, r, s;
3221
3232
  let i;
3222
- return t && (i = JSON.parse(JSON.stringify(t)), (o = (r = (a = i.schema) == null ? void 0 : a.fields) == null ? void 0 : r.map) == null || o.call(r, (s) => (s.id = `${s.id || s.model}-${n}`, s))), {
3233
+ return t && (i = JSON.parse(JSON.stringify(t)), (s = (r = (a = i.schema) == null ? void 0 : a.fields) == null ? void 0 : r.map) == null || s.call(r, (o) => (o.id = `${o.id || o.model}-${n}`, o))), {
3223
3234
  ...i,
3224
- set(s, l) {
3235
+ set(o, l) {
3225
3236
  e[n] = l;
3226
3237
  },
3227
3238
  get() {
@@ -3245,30 +3256,30 @@ const Ti = /* @__PURE__ */ z(Nd, [["render", qd]]), Kd = { class: "field-object-
3245
3256
  handleInput(e, t) {
3246
3257
  var i, a;
3247
3258
  let n = e;
3248
- ((a = (i = this.schema) == null ? void 0 : i.inputAttributes) == null ? void 0 : a.type) === "number" && ct(parseFloat(e)) && (n = parseFloat(e)), this.value = this.value.map((r, o) => o === t ? n : r);
3259
+ ((a = (i = this.schema) == null ? void 0 : i.inputAttributes) == null ? void 0 : a.type) === "number" && ct(parseFloat(e)) && (n = parseFloat(e)), this.value = this.value.map((r, s) => s === t ? n : r);
3249
3260
  }
3250
3261
  }
3251
- }, pu = ["id"], gu = { key: 1 }, vu = ["onUpdate:modelValue", "aria-labelledby", "type"], yu = ["onUpdate:modelValue", "aria-labelledby"];
3252
- function bu(e, t, n, i, a, r) {
3253
- const o = k("KTextArea"), s = k("KInput"), l = k("KButton");
3254
- return e.schema ? (d(), g("div", {
3262
+ }, yu = ["id"], bu = { key: 1 }, _u = ["onUpdate:modelValue", "aria-labelledby", "type"], wu = ["onUpdate:modelValue", "aria-labelledby"];
3263
+ function Mu(e, t, n, i, a, r) {
3264
+ const s = U("KTextArea"), o = U("KInput"), l = U("KButton");
3265
+ return e.schema ? (d(), v("div", {
3255
3266
  key: 0,
3256
3267
  id: e.getFieldID(e.schema),
3257
3268
  class: W(e.schema.fieldClasses)
3258
3269
  }, [
3259
- (d(!0), g(K, null, J(e.value, (u, h) => (d(), g("div", {
3270
+ (d(!0), v(K, null, J(e.value, (u, h) => (d(), v("div", {
3260
3271
  key: h,
3261
3272
  class: W(e.schema.fieldItemsClasses)
3262
3273
  }, [
3263
- e.schema.items && e.schema.itemContainerComponent ? (d(), O(ne(e.schema.itemContainerComponent), {
3274
+ e.schema.items && e.schema.itemContainerComponent ? (d(), O(ie(e.schema.itemContainerComponent), {
3264
3275
  key: 0,
3265
3276
  index: h,
3266
3277
  model: u,
3267
3278
  schema: r.generateSchema(e.value, e.schema.items, h),
3268
3279
  onRemoveItem: (f) => r.removeElement(h)
3269
3280
  }, {
3270
- default: w(() => [
3271
- (d(), O(ne(r.getFieldComponent(e.schema.items)), {
3281
+ default: M(() => [
3282
+ (d(), O(ie(r.getFieldComponent(e.schema.items)), {
3272
3283
  "form-options": e.formOptions,
3273
3284
  model: u,
3274
3285
  schema: r.generateSchema(e.value, e.schema.items, h),
@@ -3276,37 +3287,37 @@ function bu(e, t, n, i, a, r) {
3276
3287
  }, null, 40, ["form-options", "model", "schema", "onModelUpdated"]))
3277
3288
  ]),
3278
3289
  _: 2
3279
- }, 1064, ["index", "model", "schema", "onRemoveItem"])) : e.schema.items ? (d(), g("span", gu, [
3280
- (d(), O(ne(r.getFieldComponent(e.schema.items)), {
3290
+ }, 1064, ["index", "model", "schema", "onRemoveItem"])) : e.schema.items ? (d(), v("span", bu, [
3291
+ (d(), O(ie(r.getFieldComponent(e.schema.items)), {
3281
3292
  "form-options": e.formOptions,
3282
3293
  model: u,
3283
3294
  schema: r.generateSchema(e.value, e.schema.items, h),
3284
3295
  onModelUpdated: r.modelUpdated
3285
3296
  }, null, 40, ["form-options", "model", "schema", "onModelUpdated"]))
3286
- ])) : e.schema.itemContainerComponent ? (d(), O(ne(e.schema.itemContainerComponent), {
3297
+ ])) : e.schema.itemContainerComponent ? (d(), O(ie(e.schema.itemContainerComponent), {
3287
3298
  key: 2,
3288
3299
  "data-testid": `${e.getFieldID(e.schema)}-item-${h}`,
3289
3300
  model: u,
3290
3301
  schema: r.generateSchema(e.value, e.schema.items, h),
3291
3302
  onRemoveItem: (f) => r.removeElement(h)
3292
3303
  }, {
3293
- after: w(() => [
3294
- (d(), O(ne(r.autofillSlot), {
3304
+ after: M(() => [
3305
+ (d(), O(ie(r.autofillSlot), {
3295
3306
  schema: e.schema,
3296
3307
  update: (f) => e.value[h] = f,
3297
3308
  value: e.value[h]
3298
3309
  }, null, 8, ["schema", "update", "value"]))
3299
3310
  ]),
3300
- default: w(() => {
3311
+ default: M(() => {
3301
3312
  var f;
3302
3313
  return [
3303
- e.schema.inputAttributes && e.schema.inputAttributes.type === "textarea" ? (d(), O(o, Ee({
3314
+ e.schema.inputAttributes && e.schema.inputAttributes.type === "textarea" ? (d(), O(s, Ee({
3304
3315
  key: 0,
3305
3316
  ref_for: !0
3306
3317
  }, e.schema.inputAttributes, {
3307
3318
  id: e.getFieldID(e.schema),
3308
3319
  modelValue: e.value[h],
3309
- "onUpdate:modelValue": (p) => e.value[h] = p,
3320
+ "onUpdate:modelValue": (g) => e.value[h] = g,
3310
3321
  "aria-labelledby": e.getLabelId(e.schema),
3311
3322
  autosize: "",
3312
3323
  "character-limit": e.schema.inputAttributes.max,
@@ -3319,38 +3330,38 @@ function bu(e, t, n, i, a, r) {
3319
3330
  required: e.schema.required,
3320
3331
  resizable: "",
3321
3332
  rows: e.schema.rows || 3
3322
- }), null, 16, ["id", "modelValue", "onUpdate:modelValue", "aria-labelledby", "character-limit", "class", "maxlength", "minlength", "name", "placeholder", "readonly", "required", "rows"])) : !e.schema.inputAttributes || !e.schema.inputAttributes.type || e.schema.inputAttributes.type === "text" || e.schema.inputAttributes.type === "number" ? (d(), O(s, Ee({
3333
+ }), null, 16, ["id", "modelValue", "onUpdate:modelValue", "aria-labelledby", "character-limit", "class", "maxlength", "minlength", "name", "placeholder", "readonly", "required", "rows"])) : !e.schema.inputAttributes || !e.schema.inputAttributes.type || e.schema.inputAttributes.type === "text" || e.schema.inputAttributes.type === "number" ? (d(), O(o, Ee({
3323
3334
  key: 1,
3324
3335
  "aria-labelledby": e.getLabelId(e.schema),
3325
3336
  ref_for: !0
3326
3337
  }, e.schema.inputAttributes, {
3327
3338
  "model-value": e.value[h],
3328
3339
  type: e.schema.inputAttributes && e.schema.inputAttributes.type || "text",
3329
- onInput: (p) => {
3330
- r.handleInput(p, h);
3340
+ onInput: (g) => {
3341
+ r.handleInput(g, h);
3331
3342
  }
3332
- }), null, 16, ["aria-labelledby", "model-value", "type", "onInput"])) : ce((d(), g("input", Ee({
3343
+ }), null, 16, ["aria-labelledby", "model-value", "type", "onInput"])) : ce((d(), v("input", Ee({
3333
3344
  key: 2,
3334
- "onUpdate:modelValue": (p) => e.value[h] = p,
3345
+ "onUpdate:modelValue": (g) => e.value[h] = g,
3335
3346
  "aria-labelledby": e.getLabelId(e.schema),
3336
3347
  ref_for: !0
3337
3348
  }, e.schema.inputAttributes, {
3338
3349
  type: ((f = e.schema.inputAttributes) == null ? void 0 : f.type) || "text"
3339
- }), null, 16, vu)), [
3350
+ }), null, 16, _u)), [
3340
3351
  [Pn, e.value[h]]
3341
3352
  ])
3342
3353
  ];
3343
3354
  }),
3344
3355
  _: 2
3345
- }, 1064, ["data-testid", "model", "schema", "onRemoveItem"])) : (d(), g(K, { key: 3 }, [
3346
- ce(m("input", Ee({ ref_for: !0 }, e.schema.inputAttributes, {
3356
+ }, 1064, ["data-testid", "model", "schema", "onRemoveItem"])) : (d(), v(K, { key: 3 }, [
3357
+ ce(c("input", Ee({ ref_for: !0 }, e.schema.inputAttributes, {
3347
3358
  "onUpdate:modelValue": (f) => e.value[h] = f,
3348
3359
  "aria-labelledby": e.getLabelId(e.schema),
3349
3360
  type: "text"
3350
- }), null, 16, yu), [
3361
+ }), null, 16, wu), [
3351
3362
  [Je, e.value[h]]
3352
3363
  ]),
3353
- (d(), O(ne(r.autofillSlot), {
3364
+ (d(), O(ie(r.autofillSlot), {
3354
3365
  schema: e.schema,
3355
3366
  update: (f) => e.value[h] = f,
3356
3367
  value: e.value[h]
@@ -3364,14 +3375,14 @@ function bu(e, t, n, i, a, r) {
3364
3375
  type: "button",
3365
3376
  onClick: r.newElement
3366
3377
  }, {
3367
- default: w(() => [
3368
- te(U(e.schema.newElementButtonLabel || n.newElementButtonLabel), 1)
3378
+ default: M(() => [
3379
+ ne(F(e.schema.newElementButtonLabel || n.newElementButtonLabel), 1)
3369
3380
  ]),
3370
3381
  _: 1
3371
3382
  }, 8, ["class", "data-testid", "onClick"])
3372
- ], 10, pu)) : j("", !0);
3383
+ ], 10, yu)) : R("", !0);
3373
3384
  }
3374
- const _u = /* @__PURE__ */ z(hu, [["render", bu], ["__scopeId", "data-v-ae802bb2"]]), wu = { class: "form-field-wrapper field-checkbox" }, Mu = /* @__PURE__ */ re({
3385
+ const Su = /* @__PURE__ */ z(vu, [["render", Mu], ["__scopeId", "data-v-ae802bb2"]]), Tu = { class: "form-field-wrapper field-checkbox" }, Iu = /* @__PURE__ */ re({
3375
3386
  __name: "FieldCheckbox",
3376
3387
  props: {
3377
3388
  disabled: {
@@ -3411,7 +3422,7 @@ const _u = /* @__PURE__ */ z(hu, [["render", bu], ["__scopeId", "data-v-ae802bb2
3411
3422
  },
3412
3423
  emits: ["modelUpdated"],
3413
3424
  setup(e, { expose: t, emit: n }) {
3414
- const i = e, a = n, r = Le(i), { getFieldID: o, value: s, clearValidationErrors: l } = Me.useAbstractFields({
3425
+ const i = e, a = n, r = Le(i), { getFieldID: s, value: o, clearValidationErrors: l } = Me.useAbstractFields({
3415
3426
  model: r.model,
3416
3427
  schema: i.schema,
3417
3428
  formOptions: i.formOptions,
@@ -3422,12 +3433,12 @@ const _u = /* @__PURE__ */ z(hu, [["render", bu], ["__scopeId", "data-v-ae802bb2
3422
3433
  return t({
3423
3434
  clearValidationErrors: l
3424
3435
  }), (u, h) => {
3425
- const f = k("KCheckbox");
3426
- return d(), g("div", wu, [
3436
+ const f = U("KCheckbox");
3437
+ return d(), v("div", Tu, [
3427
3438
  C(f, Ee(u.$attrs, {
3428
- id: M(o)(e.schema),
3429
- modelValue: M(s),
3430
- "onUpdate:modelValue": h[0] || (h[0] = (p) => xe(s) ? s.value = p : null),
3439
+ id: T(s)(e.schema),
3440
+ modelValue: T(o),
3441
+ "onUpdate:modelValue": h[0] || (h[0] = (g) => xe(o) ? o.value = g : null),
3431
3442
  autocomplete: e.schema.autocomplete,
3432
3443
  class: e.schema.fieldClasses,
3433
3444
  disabled: e.disabled || void 0,
@@ -3440,70 +3451,70 @@ const _u = /* @__PURE__ */ z(hu, [["render", bu], ["__scopeId", "data-v-ae802bb2
3440
3451
  ]);
3441
3452
  };
3442
3453
  }
3443
- }), Su = /* @__PURE__ */ z(Mu, [["__scopeId", "data-v-6b4ee1cd"]]), Tu = { class: "wrapper" }, Iu = ["disabled"], Cu = ["id", "checked", "disabled", "onChange", "name"], Au = ["disabled"], Ou = { class: "info" }, Eu = { class: "dropList" }, Fu = ["id", "checked", "disabled", "onChange", "name"];
3444
- function ku(e, t, n, i, a, r) {
3445
- const o = Vn("attributes");
3446
- return ce((d(), g("div", Tu, [
3447
- e.schema.listBox ? (d(), g("div", {
3454
+ }), Cu = /* @__PURE__ */ z(Iu, [["__scopeId", "data-v-6b4ee1cd"]]), Au = { class: "wrapper" }, Ou = ["disabled"], Eu = ["id", "checked", "disabled", "onChange", "name"], Fu = ["disabled"], ku = { class: "info" }, Uu = { class: "dropList" }, $u = ["id", "checked", "disabled", "onChange", "name"];
3455
+ function Vu(e, t, n, i, a, r) {
3456
+ const s = Vn("attributes");
3457
+ return ce((d(), v("div", Au, [
3458
+ e.schema.listBox ? (d(), v("div", {
3448
3459
  key: 0,
3449
3460
  class: "listbox form-control",
3450
3461
  disabled: e.disabled || null
3451
3462
  }, [
3452
- (d(!0), g(K, null, J(r.items, (s) => (d(), g("div", {
3453
- class: W(["list-row", { "is-checked": r.isItemChecked(s) }])
3463
+ (d(!0), v(K, null, J(r.items, (o) => (d(), v("div", {
3464
+ class: W(["list-row", { "is-checked": r.isItemChecked(o) }])
3454
3465
  }, [
3455
- m("label", null, [
3456
- ce(m("input", {
3466
+ c("label", null, [
3467
+ ce(c("input", {
3457
3468
  id: e.getFieldID(e.schema, !0),
3458
3469
  type: "checkbox",
3459
- checked: r.isItemChecked(s) || null,
3470
+ checked: r.isItemChecked(o) || null,
3460
3471
  disabled: e.disabled || null,
3461
- onChange: (l) => r.onChanged(l, s),
3462
- name: r.getInputName(s)
3463
- }, null, 40, Cu), [
3464
- [o, "input"]
3472
+ onChange: (l) => r.onChanged(l, o),
3473
+ name: r.getInputName(o)
3474
+ }, null, 40, Eu), [
3475
+ [s, "input"]
3465
3476
  ]),
3466
- te(U(r.getItemName(s)), 1)
3477
+ ne(F(r.getItemName(o)), 1)
3467
3478
  ])
3468
3479
  ], 2))), 256))
3469
- ], 8, Iu)) : j("", !0),
3470
- e.schema.listBox ? j("", !0) : (d(), g("div", {
3480
+ ], 8, Ou)) : R("", !0),
3481
+ e.schema.listBox ? R("", !0) : (d(), v("div", {
3471
3482
  key: 1,
3472
3483
  class: "combobox form-control",
3473
3484
  disabled: e.disabled || null
3474
3485
  }, [
3475
- m("div", {
3486
+ c("div", {
3476
3487
  class: W(["mainRow", { expanded: a.comboExpanded }]),
3477
- onClick: t[0] || (t[0] = (...s) => r.onExpandCombo && r.onExpandCombo(...s))
3488
+ onClick: t[0] || (t[0] = (...o) => r.onExpandCombo && r.onExpandCombo(...o))
3478
3489
  }, [
3479
- m("div", Ou, U(r.selectedCount) + " selected", 1),
3480
- t[1] || (t[1] = m("div", { class: "arrow" }, null, -1))
3490
+ c("div", ku, F(r.selectedCount) + " selected", 1),
3491
+ t[1] || (t[1] = c("div", { class: "arrow" }, null, -1))
3481
3492
  ], 2),
3482
- m("div", Eu, [
3483
- a.comboExpanded ? (d(!0), g(K, { key: 0 }, J(r.items, (s) => (d(), g("div", {
3484
- class: W(["list-row", { "is-checked": r.isItemChecked(s) }])
3493
+ c("div", Uu, [
3494
+ a.comboExpanded ? (d(!0), v(K, { key: 0 }, J(r.items, (o) => (d(), v("div", {
3495
+ class: W(["list-row", { "is-checked": r.isItemChecked(o) }])
3485
3496
  }, [
3486
- m("label", null, [
3487
- ce(m("input", {
3497
+ c("label", null, [
3498
+ ce(c("input", {
3488
3499
  id: e.getFieldID(e.schema, !0),
3489
3500
  type: "checkbox",
3490
- checked: r.isItemChecked(s) || null,
3501
+ checked: r.isItemChecked(o) || null,
3491
3502
  disabled: e.disabled || null,
3492
- onChange: (l) => r.onChanged(l, s),
3493
- name: r.getInputName(s)
3494
- }, null, 40, Fu), [
3495
- [o, "input"]
3503
+ onChange: (l) => r.onChanged(l, o),
3504
+ name: r.getInputName(o)
3505
+ }, null, 40, $u), [
3506
+ [s, "input"]
3496
3507
  ]),
3497
- te(U(r.getItemName(s)), 1)
3508
+ ne(F(r.getItemName(o)), 1)
3498
3509
  ])
3499
- ], 2))), 256)) : j("", !0)
3510
+ ], 2))), 256)) : R("", !0)
3500
3511
  ])
3501
- ], 8, Au))
3512
+ ], 8, Fu))
3502
3513
  ])), [
3503
- [o, "wrapper"]
3514
+ [s, "wrapper"]
3504
3515
  ]);
3505
3516
  }
3506
- const Uu = {
3517
+ const Pu = {
3507
3518
  mixins: [_e],
3508
3519
  data() {
3509
3520
  return {
@@ -3547,7 +3558,7 @@ const Uu = {
3547
3558
  return this.value && this.value.indexOf(this.getItemValue(e)) !== -1;
3548
3559
  },
3549
3560
  onChanged(e, t) {
3550
- if ((X(this.value) || !Array.isArray(this.value)) && (this.value = []), e.target.checked) {
3561
+ if ((ee(this.value) || !Array.isArray(this.value)) && (this.value = []), e.target.checked) {
3551
3562
  const n = En(this.value);
3552
3563
  n.push(this.getItemValue(t)), this.value = n;
3553
3564
  } else {
@@ -3559,7 +3570,7 @@ const Uu = {
3559
3570
  this.comboExpanded = !this.comboExpanded;
3560
3571
  }
3561
3572
  }
3562
- }, $u = /* @__PURE__ */ z(Uu, [["render", ku]]), Vu = {
3573
+ }, Ru = /* @__PURE__ */ z(Pu, [["render", Vu]]), ju = {
3563
3574
  name: "FieldKeyValuePairs",
3564
3575
  components: { TrashIcon: rt },
3565
3576
  mixins: [_e],
@@ -3613,16 +3624,16 @@ const Uu = {
3613
3624
  this.pairs.splice(e, 1);
3614
3625
  }
3615
3626
  }
3616
- }, Pu = { class: "key-value-pairs-editor" }, Ru = { class: "pair-item-cell" }, ju = ["data-testid", "placeholder", "value", "onInput"], Nu = { class: "pair-item-cell" }, Lu = ["data-testid", "placeholder", "value", "onInput"];
3617
- function qu(e, t, n, i, a, r) {
3618
- const o = k("TrashIcon"), s = k("KButton");
3619
- return d(), g("div", Pu, [
3620
- (d(!0), g(K, null, J(a.pairs, (l, u) => (d(), g("div", {
3627
+ }, Nu = { class: "key-value-pairs-editor" }, Lu = { class: "pair-item-cell" }, qu = ["data-testid", "placeholder", "value", "onInput"], Ku = { class: "pair-item-cell" }, Du = ["data-testid", "placeholder", "value", "onInput"];
3628
+ function Bu(e, t, n, i, a, r) {
3629
+ const s = U("TrashIcon"), o = U("KButton");
3630
+ return d(), v("div", Nu, [
3631
+ (d(!0), v(K, null, J(a.pairs, (l, u) => (d(), v("div", {
3621
3632
  key: u,
3622
3633
  class: "pair-item"
3623
3634
  }, [
3624
- m("div", Ru, [
3625
- m("input", {
3635
+ c("div", Lu, [
3636
+ c("input", {
3626
3637
  class: "form-control",
3627
3638
  "data-testid": `${e.getFieldID(e.schema)}-pair-key-${u}`,
3628
3639
  placeholder: e.schema.keyInputPlaceholder ?? "Key",
@@ -3631,15 +3642,15 @@ function qu(e, t, n, i, a, r) {
3631
3642
  onInput: (h) => {
3632
3643
  r.onInput(h, u, "key");
3633
3644
  }
3634
- }, null, 40, ju),
3635
- (d(), O(ne(r.autofillSlot), {
3645
+ }, null, 40, qu),
3646
+ (d(), O(ie(r.autofillSlot), {
3636
3647
  schema: e.schema,
3637
3648
  update: (h) => r.onInput({ target: { value: h } }, u, "key"),
3638
3649
  value: l.key
3639
3650
  }, null, 8, ["schema", "update", "value"]))
3640
3651
  ]),
3641
- m("div", Nu, [
3642
- m("input", {
3652
+ c("div", Ku, [
3653
+ c("input", {
3643
3654
  class: "form-control",
3644
3655
  "data-testid": `${e.getFieldID(e.schema)}-pair-value-${u}`,
3645
3656
  placeholder: e.schema.valueInputPlaceholder ?? "Value",
@@ -3648,41 +3659,41 @@ function qu(e, t, n, i, a, r) {
3648
3659
  onInput: (h) => {
3649
3660
  r.onInput(h, u, "value");
3650
3661
  }
3651
- }, null, 40, Lu),
3652
- (d(), O(ne(r.autofillSlot), {
3662
+ }, null, 40, Du),
3663
+ (d(), O(ie(r.autofillSlot), {
3653
3664
  schema: e.schema,
3654
3665
  update: (h) => r.onInput({ target: { value: h } }, u, "value"),
3655
3666
  value: l.value
3656
3667
  }, null, 8, ["schema", "update", "value"]))
3657
3668
  ]),
3658
- C(s, {
3669
+ C(o, {
3659
3670
  appearance: "tertiary",
3660
3671
  "data-testid": `${e.getFieldID(e.schema)}-remove-pair-${u}`,
3661
3672
  onClick: () => {
3662
3673
  r.removePair(u);
3663
3674
  }
3664
3675
  }, {
3665
- default: w(() => [
3666
- C(o)
3676
+ default: M(() => [
3677
+ C(s)
3667
3678
  ]),
3668
3679
  _: 2
3669
3680
  }, 1032, ["data-testid", "onClick"])
3670
3681
  ]))), 128)),
3671
- C(s, {
3682
+ C(o, {
3672
3683
  appearance: "tertiary",
3673
3684
  class: W(e.schema.newElementButtonLabelClasses),
3674
3685
  "data-testid": `${e.getFieldID(e.schema)}-add-pair`,
3675
3686
  type: "button",
3676
3687
  onClick: r.addPair
3677
3688
  }, {
3678
- default: w(() => [
3679
- te(U(e.schema.newElementButtonLabel ?? "+ Add Pair"), 1)
3689
+ default: M(() => [
3690
+ ne(F(e.schema.newElementButtonLabel ?? "+ Add Pair"), 1)
3680
3691
  ]),
3681
3692
  _: 1
3682
3693
  }, 8, ["class", "data-testid", "onClick"])
3683
3694
  ]);
3684
3695
  }
3685
- const Ku = /* @__PURE__ */ z(Vu, [["render", qu], ["__scopeId", "data-v-70998d5b"]]), Du = /* @__PURE__ */ re({
3696
+ const zu = /* @__PURE__ */ z(ju, [["render", Bu], ["__scopeId", "data-v-70998d5b"]]), Yu = /* @__PURE__ */ re({
3686
3697
  __name: "FieldLabel",
3687
3698
  props: {
3688
3699
  disabled: {
@@ -3714,23 +3725,23 @@ const Ku = /* @__PURE__ */ z(Vu, [["render", qu], ["__scopeId", "data-v-70998d5b
3714
3725
  schema: t.schema,
3715
3726
  formOptions: t.formOptions
3716
3727
  });
3717
- return (r, o) => {
3718
- const s = k("KLabel");
3719
- return d(), g("span", {
3728
+ return (r, s) => {
3729
+ const o = U("KLabel");
3730
+ return d(), v("span", {
3720
3731
  class: W(["field-label", e.schema.fieldClasses])
3721
3732
  }, [
3722
- C(s, {
3723
- id: M(i)(e.schema)
3733
+ C(o, {
3734
+ id: T(i)(e.schema)
3724
3735
  }, {
3725
- default: w(() => [
3726
- te(U(M(a)), 1)
3736
+ default: M(() => [
3737
+ ne(F(T(a)), 1)
3727
3738
  ]),
3728
3739
  _: 1
3729
3740
  }, 8, ["id"])
3730
3741
  ], 2);
3731
3742
  };
3732
3743
  }
3733
- }), Bu = /* @__PURE__ */ z(Du, [["__scopeId", "data-v-d046a15a"]]), zu = /* @__PURE__ */ re({
3744
+ }), Hu = /* @__PURE__ */ z(Yu, [["__scopeId", "data-v-d046a15a"]]), xu = /* @__PURE__ */ re({
3734
3745
  __name: "FieldMultiselect",
3735
3746
  props: {
3736
3747
  disabled: {
@@ -3770,7 +3781,7 @@ const Ku = /* @__PURE__ */ z(Vu, [["render", qu], ["__scopeId", "data-v-70998d5b
3770
3781
  },
3771
3782
  emits: ["modelUpdated"],
3772
3783
  setup(e, { expose: t, emit: n }) {
3773
- const i = e, a = n, r = Ri(i, "model"), { getLabelId: o, getFieldID: s, clearValidationErrors: l, value: u } = Me.useAbstractFields({
3784
+ const i = e, a = n, r = Ri(i, "model"), { getLabelId: s, getFieldID: o, clearValidationErrors: l, value: u } = Me.useAbstractFields({
3774
3785
  model: r,
3775
3786
  schema: i.schema,
3776
3787
  formOptions: i.formOptions,
@@ -3782,21 +3793,21 @@ const Ku = /* @__PURE__ */ z(Vu, [["render", qu], ["__scopeId", "data-v-70998d5b
3782
3793
  clearValidationErrors: l
3783
3794
  });
3784
3795
  const h = L(() => {
3785
- var f, p;
3786
- return i.schema.values ? i.schema.values : (p = (f = i.schema.elements) == null ? void 0 : f.one_of) != null && p.length ? i.schema.elements.one_of.map((F) => ({ label: String(F), value: String(F) })) : [];
3796
+ var f, g;
3797
+ return i.schema.values ? i.schema.values : (g = (f = i.schema.elements) == null ? void 0 : f.one_of) != null && g.length ? i.schema.elements.one_of.map((k) => ({ label: String(k), value: String(k) })) : [];
3787
3798
  });
3788
- return (f, p) => {
3789
- const F = k("KMultiselect");
3790
- return d(), O(F, {
3791
- id: M(s)(e.schema),
3792
- modelValue: M(u),
3793
- "onUpdate:modelValue": p[0] || (p[0] = (T) => xe(u) ? u.value = T : null),
3794
- "aria-labelledby": M(o)(e.schema),
3799
+ return (f, g) => {
3800
+ const k = U("KMultiselect");
3801
+ return d(), O(k, {
3802
+ id: T(o)(e.schema),
3803
+ modelValue: T(u),
3804
+ "onUpdate:modelValue": g[0] || (g[0] = (N) => xe(u) ? u.value = N : null),
3805
+ "aria-labelledby": T(s)(e.schema),
3795
3806
  class: W(e.schema.fieldClasses),
3796
3807
  "data-testid": "field-multiselect",
3797
3808
  disabled: e.disabled || void 0,
3798
3809
  items: h.value,
3799
- "kpop-attributes": { "data-testid": `${M(s)(e.schema)}-items` },
3810
+ "kpop-attributes": { "data-testid": `${T(o)(e.schema)}-items` },
3800
3811
  "label-attributes": { info: e.schema.help },
3801
3812
  name: e.schema.inputName,
3802
3813
  placeholder: e.schema.placeholder,
@@ -3805,7 +3816,7 @@ const Ku = /* @__PURE__ */ z(Vu, [["render", qu], ["__scopeId", "data-v-70998d5b
3805
3816
  }, null, 8, ["id", "modelValue", "aria-labelledby", "class", "disabled", "items", "kpop-attributes", "label-attributes", "name", "placeholder", "required"]);
3806
3817
  };
3807
3818
  }
3808
- }), Yu = { class: "selection-group" }, Hu = { class: "form-group horizontal-radios" }, xu = { class: "radio-group" }, Gu = ["disabled", "value"], Wu = { class: "control-help" }, Zu = { class: "option-field" }, Ju = { class: "option-field-container" }, Qu = {
3819
+ }), Gu = { class: "selection-group" }, Wu = { class: "form-group horizontal-radios" }, Zu = { class: "radio-group" }, Ju = ["disabled", "value"], Qu = { class: "control-help" }, Xu = { class: "option-field" }, ec = { class: "option-field-container" }, tc = {
3809
3820
  mixins: [_e],
3810
3821
  expose: ["validate", "clearValidationErrors", "schema"],
3811
3822
  emits: ["model-updated"],
@@ -3843,36 +3854,36 @@ const Ku = /* @__PURE__ */ z(Vu, [["render", qu], ["__scopeId", "data-v-70998d5b
3843
3854
  this.$emit("model-updated", e, t);
3844
3855
  }
3845
3856
  }
3846
- }, Xu = /* @__PURE__ */ Object.assign(Qu, {
3857
+ }, nc = /* @__PURE__ */ Object.assign(tc, {
3847
3858
  __name: "FieldSelectionGroup",
3848
3859
  setup(e) {
3849
3860
  const { t } = ve("en-us", be);
3850
- return (n, i) => (d(), g("div", Yu, [
3851
- (d(), O(ne(n.$props.disabled ? "k-tooltip" : "div"), {
3861
+ return (n, i) => (d(), v("div", Gu, [
3862
+ (d(), O(ie(n.$props.disabled ? "k-tooltip" : "div"), {
3852
3863
  "max-width": "300",
3853
- text: M(t)("general.disable_global_radio", { scope: n.scope })
3864
+ text: T(t)("general.disable_global_radio", { scope: n.scope })
3854
3865
  }, {
3855
- default: w(() => [
3856
- m("div", Hu, [
3857
- m("div", xu, [
3858
- (d(!0), g(K, null, J(n.schema.fields, (a, r) => (d(), g("div", {
3866
+ default: M(() => [
3867
+ c("div", Wu, [
3868
+ c("div", Zu, [
3869
+ (d(!0), v(K, null, J(n.schema.fields, (a, r) => (d(), v("div", {
3859
3870
  key: r,
3860
3871
  class: W(["option-group", { "radio-disabled": n.$props.disabled }])
3861
3872
  }, [
3862
- m("label", {
3873
+ c("label", {
3863
3874
  class: W(["k-label", `${a.label}-check`])
3864
3875
  }, [
3865
- ce(m("input", {
3866
- "onUpdate:modelValue": i[0] || (i[0] = (o) => n.checkedGroup = o),
3876
+ ce(c("input", {
3877
+ "onUpdate:modelValue": i[0] || (i[0] = (s) => n.checkedGroup = s),
3867
3878
  class: "k-input",
3868
3879
  disabled: n.$props.disabled,
3869
3880
  type: "radio",
3870
3881
  value: r
3871
- }, null, 8, Gu), [
3882
+ }, null, 8, Ju), [
3872
3883
  [ji, n.checkedGroup]
3873
3884
  ]),
3874
- te(" " + U(a.label) + " ", 1),
3875
- m("div", Wu, U(a.description), 1)
3885
+ ne(" " + F(a.label) + " ", 1),
3886
+ c("div", Qu, F(a.description), 1)
3876
3887
  ], 2)
3877
3888
  ], 2))), 128))
3878
3889
  ])
@@ -3880,13 +3891,13 @@ const Ku = /* @__PURE__ */ z(Vu, [["render", qu], ["__scopeId", "data-v-70998d5b
3880
3891
  ]),
3881
3892
  _: 1
3882
3893
  }, 8, ["text"])),
3883
- (d(!0), g(K, null, J(n.schema.fields, (a, r) => (d(), g("div", {
3894
+ (d(!0), v(K, null, J(n.schema.fields, (a, r) => (d(), v("div", {
3884
3895
  key: r,
3885
3896
  class: "option-group"
3886
3897
  }, [
3887
- ce(m("div", Zu, [
3888
- m("div", Ju, [
3889
- C(ee, {
3898
+ ce(c("div", Xu, [
3899
+ c("div", ec, [
3900
+ C(te, {
3890
3901
  model: n.model,
3891
3902
  options: { helpAsHtml: !0 },
3892
3903
  schema: { fields: a.fields },
@@ -3899,7 +3910,7 @@ const Ku = /* @__PURE__ */ z(Vu, [["render", qu], ["__scopeId", "data-v-70998d5b
3899
3910
  ]))), 128))
3900
3911
  ]));
3901
3912
  }
3902
- }), ec = /* @__PURE__ */ z(Xu, [["__scopeId", "data-v-7b085c16"]]), tc = { class: "form-field-wrapper" }, nc = /* @__PURE__ */ re({
3913
+ }), ic = /* @__PURE__ */ z(nc, [["__scopeId", "data-v-7b085c16"]]), ac = { class: "form-field-wrapper" }, rc = /* @__PURE__ */ re({
3903
3914
  __name: "FieldSwitch",
3904
3915
  props: {
3905
3916
  disabled: {
@@ -3939,29 +3950,29 @@ const Ku = /* @__PURE__ */ z(Vu, [["render", qu], ["__scopeId", "data-v-70998d5b
3939
3950
  },
3940
3951
  emits: ["modelUpdated"],
3941
3952
  setup(e, { expose: t, emit: n }) {
3942
- const i = e, a = n, { t: r } = ve("en-us", be), o = (p) => p != null && i.schema.valueOn ? p === i.schema.valueOn : p, s = (p) => p != null && i.schema.valueOn ? p ? i.schema.valueOn : i.schema.valueOff : p, l = Le(i), { getFieldID: u, value: h, clearValidationErrors: f } = Me.useAbstractFields({
3953
+ const i = e, a = n, { t: r } = ve("en-us", be), s = (g) => g != null && i.schema.valueOn ? g === i.schema.valueOn : g, o = (g) => g != null && i.schema.valueOn ? g ? i.schema.valueOn : i.schema.valueOff : g, l = Le(i), { getFieldID: u, value: h, clearValidationErrors: f } = Me.useAbstractFields({
3943
3954
  model: l.model,
3944
3955
  schema: i.schema,
3945
3956
  formOptions: i.formOptions,
3946
- formatValueToField: o,
3947
- formatValueToModel: s,
3948
- emitModelUpdated: (p) => {
3949
- a("modelUpdated", p.value, p.model);
3957
+ formatValueToField: s,
3958
+ formatValueToModel: o,
3959
+ emitModelUpdated: (g) => {
3960
+ a("modelUpdated", g.value, g.model);
3950
3961
  }
3951
3962
  });
3952
3963
  return t({
3953
3964
  clearValidationErrors: f
3954
- }), (p, F) => {
3955
- const T = k("KInputSwitch");
3956
- return d(), g("div", tc, [
3957
- C(T, {
3958
- id: M(u)(e.schema),
3959
- modelValue: M(h),
3960
- "onUpdate:modelValue": F[0] || (F[0] = (c) => xe(h) ? h.value = c : null),
3965
+ }), (g, k) => {
3966
+ const N = U("KInputSwitch");
3967
+ return d(), v("div", ac, [
3968
+ C(N, {
3969
+ id: T(u)(e.schema),
3970
+ modelValue: T(h),
3971
+ "onUpdate:modelValue": k[0] || (k[0] = (m) => xe(h) ? h.value = m : null),
3961
3972
  autocomplete: e.schema.autocomplete,
3962
3973
  class: W(e.schema.fieldClasses),
3963
3974
  disabled: e.disabled || void 0,
3964
- label: M(h) ? e.schema.textOn || M(r)("vfg.labels.on") : e.schema.textOff || M(r)("vfg.labels.off"),
3975
+ label: T(h) ? e.schema.textOn || T(r)("vfg.labels.on") : e.schema.textOff || T(r)("vfg.labels.off"),
3965
3976
  "label-attributes": { info: e.schema.help },
3966
3977
  name: e.schema.inputName,
3967
3978
  required: e.schema.required || void 0
@@ -3969,7 +3980,7 @@ const Ku = /* @__PURE__ */ z(Vu, [["render", qu], ["__scopeId", "data-v-70998d5b
3969
3980
  ]);
3970
3981
  };
3971
3982
  }
3972
- }), ic = { class: "field-textarea" }, ac = /* @__PURE__ */ re({
3983
+ }), sc = { class: "field-textarea" }, oc = /* @__PURE__ */ re({
3973
3984
  __name: "FieldTextArea",
3974
3985
  props: {
3975
3986
  disabled: {
@@ -4009,27 +4020,27 @@ const Ku = /* @__PURE__ */ z(Vu, [["render", qu], ["__scopeId", "data-v-70998d5b
4009
4020
  },
4010
4021
  emits: ["modelUpdated"],
4011
4022
  setup(e, { expose: t, emit: n }) {
4012
- const i = e, a = n, r = Le(i), o = st(ge, void 0), { updateModelValue: s, getFieldID: l, clearValidationErrors: u, value: h } = Me.useAbstractFields({
4023
+ const i = e, a = n, r = Le(i), s = st(ge, void 0), { updateModelValue: o, getFieldID: l, clearValidationErrors: u, value: h } = Me.useAbstractFields({
4013
4024
  model: r.model,
4014
4025
  schema: i.schema,
4015
4026
  formOptions: i.formOptions,
4016
- emitModelUpdated: (p) => {
4017
- a("modelUpdated", p.value, p.model);
4027
+ emitModelUpdated: (g) => {
4028
+ a("modelUpdated", g.value, g.model);
4018
4029
  }
4019
4030
  });
4020
4031
  t({
4021
4032
  clearValidationErrors: u
4022
4033
  });
4023
- const f = (p) => {
4024
- h.value = p, s(p, p);
4034
+ const f = (g) => {
4035
+ h.value = g, o(g, g);
4025
4036
  };
4026
- return (p, F) => {
4027
- const T = k("KTextArea");
4028
- return d(), g("div", ic, [
4029
- C(T, Ee(p.$attrs, {
4030
- id: M(l)(e.schema),
4031
- modelValue: M(h),
4032
- "onUpdate:modelValue": F[0] || (F[0] = (c) => xe(h) ? h.value = c : null),
4037
+ return (g, k) => {
4038
+ const N = U("KTextArea");
4039
+ return d(), v("div", sc, [
4040
+ C(N, Ee(g.$attrs, {
4041
+ id: T(l)(e.schema),
4042
+ modelValue: T(h),
4043
+ "onUpdate:modelValue": k[0] || (k[0] = (m) => xe(h) ? h.value = m : null),
4033
4044
  autosize: "",
4034
4045
  "character-limit": e.schema.max,
4035
4046
  class: e.schema.fieldClasses,
@@ -4043,40 +4054,40 @@ const Ku = /* @__PURE__ */ z(Vu, [["render", qu], ["__scopeId", "data-v-70998d5b
4043
4054
  resizable: "",
4044
4055
  rows: e.schema.rows || 3
4045
4056
  }), null, 16, ["id", "modelValue", "character-limit", "class", "disabled", "help", "minlength", "name", "placeholder", "readonly", "required", "rows"]),
4046
- (d(), O(ne(M(o)), {
4057
+ (d(), O(ie(T(s)), {
4047
4058
  schema: e.schema,
4048
4059
  update: f,
4049
- value: M(h)
4060
+ value: T(h)
4050
4061
  }, null, 8, ["schema", "value"]))
4051
4062
  ]);
4052
4063
  };
4053
4064
  }
4054
- }), rc = /* @__PURE__ */ z(ac, [["__scopeId", "data-v-0e146fba"]]), sc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4065
+ }), lc = /* @__PURE__ */ z(oc, [["__scopeId", "data-v-0e146fba"]]), dc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4055
4066
  __proto__: null,
4056
4067
  FieldAdvanced: ad,
4057
- FieldArray: _u,
4068
+ FieldArray: Su,
4058
4069
  FieldArrayCardContainer: vi,
4059
4070
  FieldArrayItem: yi,
4060
4071
  FieldArrayMultiItem: bi,
4061
4072
  FieldAutoSuggest: wi,
4062
4073
  FieldAutoSuggestV2: Mi,
4063
- FieldCheckbox: Su,
4064
- FieldChecklist: $u,
4074
+ FieldCheckbox: Cu,
4075
+ FieldChecklist: Ru,
4065
4076
  FieldInput: Si,
4066
- FieldKeyValuePairs: Ku,
4067
- FieldLabel: Bu,
4077
+ FieldKeyValuePairs: zu,
4078
+ FieldLabel: Hu,
4068
4079
  FieldMetric: Ti,
4069
- FieldMultiselect: zu,
4080
+ FieldMultiselect: xu,
4070
4081
  FieldObject: Ii,
4071
4082
  FieldObjectAdvanced: Ci,
4072
4083
  FieldRadio: Ai,
4073
4084
  FieldSelect: Oi,
4074
- FieldSelectionGroup: ec,
4075
- FieldSwitch: nc,
4076
- FieldTextArea: rc
4077
- }, Symbol.toStringTag, { value: "Module" })), oc = {
4085
+ FieldSelectionGroup: ic,
4086
+ FieldSwitch: rc,
4087
+ FieldTextArea: lc
4088
+ }, Symbol.toStringTag, { value: "Module" })), uc = {
4078
4089
  name: "FormGroup",
4079
- components: sc,
4090
+ components: dc,
4080
4091
  mixins: [si],
4081
4092
  inject: {
4082
4093
  "vfg-array-item-index": {
@@ -4112,7 +4123,7 @@ const Ku = /* @__PURE__ */ z(Vu, [["render", qu], ["__scopeId", "data-v-70998d5b
4112
4123
  emits: ["validated", "modelUpdated", "refreshModel"],
4113
4124
  data() {
4114
4125
  return {
4115
- child: ie()
4126
+ child: Q()
4116
4127
  };
4117
4128
  },
4118
4129
  computed: {
@@ -4136,7 +4147,7 @@ const Ku = /* @__PURE__ */ z(Vu, [["render", qu], ["__scopeId", "data-v-70998d5b
4136
4147
  methods: {
4137
4148
  // Should field type have a label?
4138
4149
  fieldTypeHasLabel(e) {
4139
- if (X(e.label)) return !1;
4150
+ if (ee(e.label)) return !1;
4140
4151
  let t = "";
4141
4152
  switch (e.type === "input" ? t = e.inputType : t = e.type, t) {
4142
4153
  case "button":
@@ -4198,22 +4209,22 @@ const Ku = /* @__PURE__ */ z(Vu, [["render", qu], ["__scopeId", "data-v-70998d5b
4198
4209
  return e ? e.replace(/^[cC]onfig\./, "") : "";
4199
4210
  }
4200
4211
  }
4201
- }, lc = ["innerHTML"], dc = { class: "icon-wrapper" }, uc = ["innerHTML"], cc = {
4212
+ }, cc = ["innerHTML"], mc = { class: "icon-wrapper" }, fc = ["innerHTML"], hc = {
4202
4213
  key: 0,
4203
4214
  class: "link-wrapper"
4204
- }, mc = { class: "field-wrap" }, fc = {
4215
+ }, pc = { class: "field-wrap" }, gc = {
4205
4216
  key: 0,
4206
4217
  class: "buttons"
4207
- }, hc = ["type", "onClick", "textContent"], pc = ["innerHTML"], gc = {
4218
+ }, vc = ["type", "onClick", "textContent"], yc = ["innerHTML"], bc = {
4208
4219
  key: 2,
4209
4220
  class: "errors help-block"
4210
- }, vc = ["innerHTML"];
4211
- function yc(e, t, n, i, a, r) {
4212
- const o = k("KExternalLink"), s = k("KLabel");
4213
- return d(), g("div", {
4221
+ }, _c = ["innerHTML"];
4222
+ function wc(e, t, n, i, a, r) {
4223
+ const s = U("KExternalLink"), o = U("KLabel");
4224
+ return d(), v("div", {
4214
4225
  class: W(["form-group", e.getFieldRowClasses(n.field)])
4215
4226
  }, [
4216
- r.fieldTypeHasLabel(n.field) ? (d(), O(s, {
4227
+ r.fieldTypeHasLabel(n.field) ? (d(), O(o, {
4217
4228
  key: 0,
4218
4229
  "aria-describedby": n.field.help ? r.getTooltipId(n.field) : void 0,
4219
4230
  class: W([n.field.labelClasses, "form-group-label"]),
@@ -4225,37 +4236,37 @@ function yc(e, t, n, i, a, r) {
4225
4236
  tooltipId: r.getTooltipId(n.field)
4226
4237
  } : void 0
4227
4238
  }, at({
4228
- default: w(() => [
4229
- m("div", dc, [
4230
- m("span", {
4239
+ default: M(() => [
4240
+ c("div", mc, [
4241
+ c("span", {
4231
4242
  innerHTML: r.formattedLabel(n.field.label)
4232
- }, null, 8, uc)
4243
+ }, null, 8, fc)
4233
4244
  ]),
4234
- n.field.link ? (d(), g("div", cc, [
4235
- C(o, {
4245
+ n.field.link ? (d(), v("div", hc, [
4246
+ C(s, {
4236
4247
  href: n.field.link
4237
4248
  }, {
4238
- default: w(() => t[0] || (t[0] = [
4239
- m("span", { class: "section-header" }, "More info", -1)
4249
+ default: M(() => t[0] || (t[0] = [
4250
+ c("span", { class: "section-header" }, "More info", -1)
4240
4251
  ])),
4241
4252
  _: 1
4242
4253
  }, 8, ["href"])
4243
- ])) : j("", !0)
4254
+ ])) : R("", !0)
4244
4255
  ]),
4245
4256
  _: 2
4246
4257
  }, [
4247
4258
  n.options.helpAsHtml && n.field.help ? {
4248
4259
  name: "tooltip",
4249
- fn: w(() => [
4250
- m("div", {
4260
+ fn: M(() => [
4261
+ c("div", {
4251
4262
  innerHTML: n.field.help
4252
- }, null, 8, lc)
4263
+ }, null, 8, cc)
4253
4264
  ]),
4254
4265
  key: "0"
4255
4266
  } : void 0
4256
- ]), 1032, ["aria-describedby", "class", "for", "info", "tooltip-attributes"])) : j("", !0),
4257
- m("div", mc, [
4258
- (d(), O(ne(r.getFieldComponent(n.field)), Ee(e.$attrs, {
4267
+ ]), 1032, ["aria-describedby", "class", "for", "info", "tooltip-attributes"])) : R("", !0),
4268
+ c("div", pc, [
4269
+ (d(), O(ie(r.getFieldComponent(n.field)), Ee(e.$attrs, {
4259
4270
  ref: "child",
4260
4271
  disabled: e.fieldDisabled(n.field) || null,
4261
4272
  "form-options": n.options,
@@ -4267,38 +4278,38 @@ function yc(e, t, n, i, a, r) {
4267
4278
  onRefreshModel: r.onRefreshModel,
4268
4279
  onValidated: r.onFieldValidated
4269
4280
  }), null, 16, ["disabled", "form-options", "hint", "model", "schema", "vfg", "onModelUpdated", "onRefreshModel", "onValidated"])),
4270
- r.buttonVisibility(n.field) ? (d(), g("div", fc, [
4271
- (d(!0), g(K, null, J(n.field.buttons, (l, u) => (d(), g("button", {
4281
+ r.buttonVisibility(n.field) ? (d(), v("div", gc, [
4282
+ (d(!0), v(K, null, J(n.field.buttons, (l, u) => (d(), v("button", {
4272
4283
  key: u,
4273
4284
  class: W(l.classes),
4274
4285
  type: r.getButtonType(l),
4275
4286
  onClick: (h) => r.buttonClickHandler(l, n.field, h),
4276
- textContent: U(l.label)
4277
- }, null, 10, hc))), 128))
4278
- ])) : j("", !0)
4287
+ textContent: F(l.label)
4288
+ }, null, 10, vc))), 128))
4289
+ ])) : R("", !0)
4279
4290
  ]),
4280
- n.field.hint && n.field.type !== "input" ? (d(), g("div", {
4291
+ n.field.hint && n.field.type !== "input" ? (d(), v("div", {
4281
4292
  key: 1,
4282
4293
  class: "hint",
4283
4294
  innerHTML: r.fieldHint(n.field)
4284
- }, null, 8, pc)) : j("", !0),
4285
- r.fieldErrors(n.field).length > 0 ? (d(), g("div", gc, [
4286
- (d(!0), g(K, null, J(r.fieldErrors(n.field), (l, u) => (d(), g("span", {
4295
+ }, null, 8, yc)) : R("", !0),
4296
+ r.fieldErrors(n.field).length > 0 ? (d(), v("div", bc, [
4297
+ (d(!0), v(K, null, J(r.fieldErrors(n.field), (l, u) => (d(), v("span", {
4287
4298
  key: u,
4288
4299
  innerHTML: l
4289
- }, null, 8, vc))), 128))
4290
- ])) : j("", !0)
4300
+ }, null, 8, _c))), 128))
4301
+ ])) : R("", !0)
4291
4302
  ], 2);
4292
4303
  }
4293
- const Ei = /* @__PURE__ */ z(oc, [["render", yc], ["__scopeId", "data-v-172f268b"]]);
4304
+ const Ei = /* @__PURE__ */ z(uc, [["render", wc], ["__scopeId", "data-v-172f268b"]]);
4294
4305
  var mt = /* @__PURE__ */ ((e) => (e.REDIS_CE = "redis-ce", e.REDIS_EE = "redis-ee", e))(mt || {});
4295
- const bc = (e) => {
4306
+ const Mc = (e) => {
4296
4307
  var t, n;
4297
4308
  return e.type === mt.REDIS_CE ? "Host/Port" : (t = e.config.sentinel_nodes) != null && t.length ? "Sentinel" : (n = e.config.cluster_nodes) != null && n.length ? "Cluster" : "Host/Port";
4298
- }, _c = {
4309
+ }, Sc = {
4299
4310
  [mt.REDIS_CE]: "open source",
4300
4311
  [mt.REDIS_EE]: "enterprise"
4301
- }, Fn = (e) => _c[e] ?? "", wc = { class: "partial-config-card" }, Mc = { class: "config-card-row-label" }, Sc = { class: "label-text" }, Tc = ["data-testid"], Ic = ["data-testid"], Cc = { key: 1 }, Ac = ["data-testid"], Oc = ["data-testid"], Ec = /* @__PURE__ */ re({
4312
+ }, Fn = (e) => Sc[e] ?? "", Tc = { class: "partial-config-card" }, Ic = { class: "config-card-row-label" }, Cc = { class: "label-text" }, Ac = ["data-testid"], Oc = ["data-testid"], Ec = { key: 1 }, Fc = ["data-testid"], kc = ["data-testid"], Uc = /* @__PURE__ */ re({
4302
4313
  __name: "RedisConfigCard",
4303
4314
  props: {
4304
4315
  configFields: {
@@ -4333,67 +4344,67 @@ const bc = (e) => {
4333
4344
  formatter: n,
4334
4345
  order: 3
4335
4346
  }
4336
- }, a = e, r = (f) => f != null, o = (f, p) => r(p) && ["password", "sentinel_password"].includes(f) ? "password" : "text", { convertKeyToTitle: s } = Bi(), l = L(() => Object.entries(a.configFields).map(([f, p]) => {
4337
- var F, T, c, y;
4347
+ }, a = e, r = (f) => f != null, s = (f, g) => r(g) && ["password", "sentinel_password"].includes(f) ? "password" : "text", { convertKeyToTitle: o } = Bi(), l = L(() => Object.entries(a.configFields).map(([f, g]) => {
4348
+ var k, N, m, p;
4338
4349
  return {
4339
4350
  key: f,
4340
- label: ((F = i[f]) == null ? void 0 : F.label) ?? s(f),
4341
- value: (T = i[f]) != null && T.formatter ? i[f].formatter(p) : p,
4342
- type: ((c = i[f]) == null ? void 0 : c.type) ?? o(f, p),
4343
- order: ((y = i[f]) == null ? void 0 : y.order) ?? 100
4351
+ label: ((k = i[f]) == null ? void 0 : k.label) ?? o(f),
4352
+ value: (N = i[f]) != null && N.formatter ? i[f].formatter(g) : g,
4353
+ type: ((m = i[f]) == null ? void 0 : m.type) ?? s(f, g),
4354
+ order: ((p = i[f]) == null ? void 0 : p.order) ?? 100
4344
4355
  // attrs: value.attrs,
4345
4356
  };
4346
- }).sort((f, p) => f.order - p.order).filter((f) => f.type !== "hidden")), u = Me.useRedisNonStandardFields(a.configFields, a.pluginRedisFields), h = L(() => l.value.concat(u));
4347
- return (f, p) => {
4348
- const F = k("KCopy");
4349
- return d(), g("div", wc, [
4350
- (d(!0), g(K, null, J(h.value, ({ key: T, label: c, value: y, type: A }) => (d(), g("div", {
4351
- key: T,
4357
+ }).sort((f, g) => f.order - g.order).filter((f) => f.type !== "hidden")), u = Me.useRedisNonStandardFields(a.configFields, a.pluginRedisFields), h = L(() => l.value.concat(u));
4358
+ return (f, g) => {
4359
+ const k = U("KCopy");
4360
+ return d(), v("div", Tc, [
4361
+ (d(!0), v(K, null, J(h.value, ({ key: N, label: m, value: p, type: b }) => (d(), v("div", {
4362
+ key: N,
4352
4363
  class: "partial-config-card-row"
4353
4364
  }, [
4354
- m("div", Mc, [
4355
- m("div", Sc, U(c), 1)
4365
+ c("div", Ic, [
4366
+ c("div", Cc, F(m), 1)
4356
4367
  ]),
4357
- m("div", {
4368
+ c("div", {
4358
4369
  class: "config-card-row-value",
4359
- "data-testid": `${T}-property-value`
4370
+ "data-testid": `${N}-property-value`
4360
4371
  }, [
4361
- r(y) ? (d(), g("div", Cc, [
4362
- A === "password" ? (d(), g("div", {
4372
+ r(p) ? (d(), v("div", Ec, [
4373
+ b === "password" ? (d(), v("div", {
4363
4374
  key: 0,
4364
- "data-testid": `${T}-copy-password`
4375
+ "data-testid": `${N}-copy-password`
4365
4376
  }, [
4366
- C(F, {
4377
+ C(k, {
4367
4378
  format: "redacted",
4368
- text: String(y)
4379
+ text: String(p)
4369
4380
  }, null, 8, ["text"])
4370
- ], 8, Ac)) : (d(), g("div", {
4381
+ ], 8, Fc)) : (d(), v("div", {
4371
4382
  key: 1,
4372
- "data-testid": `${T}-plain-text`
4373
- }, U(y), 9, Oc))
4374
- ])) : (d(), g("div", {
4383
+ "data-testid": `${N}-plain-text`
4384
+ }, F(p), 9, kc))
4385
+ ])) : (d(), v("div", {
4375
4386
  key: 0,
4376
- "data-testid": `${T}-no-value`
4377
- }, " – ", 8, Ic))
4378
- ], 8, Tc)
4387
+ "data-testid": `${N}-no-value`
4388
+ }, " – ", 8, Oc))
4389
+ ], 8, Ac)
4379
4390
  ]))), 128))
4380
4391
  ]);
4381
4392
  };
4382
4393
  }
4383
- }), Fc = /* @__PURE__ */ z(Ec, [["__scopeId", "data-v-c1eb723f"]]), kc = {
4394
+ }), $c = /* @__PURE__ */ z(Uc, [["__scopeId", "data-v-c1eb723f"]]), Vc = {
4384
4395
  class: "redis-config-select",
4385
4396
  "data-testid": "redis-config-select"
4386
- }, Uc = { class: "selected-redis-config" }, $c = ["data-testid"], Vc = {
4397
+ }, Pc = { class: "selected-redis-config" }, Rc = ["data-testid"], jc = {
4387
4398
  class: "select-item-name",
4388
4399
  "data-testid": "selected-redis-config"
4389
- }, Pc = {
4400
+ }, Nc = {
4390
4401
  class: "empty-redis-config",
4391
4402
  "data-testid": "empty-redis-config"
4392
- }, Rc = {
4403
+ }, Lc = {
4393
4404
  key: 1,
4394
4405
  class: "redis-shared-config-error-message",
4395
4406
  "data-testid": "redis-config-fetch-error"
4396
- }, jc = /* @__PURE__ */ re({
4407
+ }, qc = /* @__PURE__ */ re({
4397
4408
  __name: "RedisConfigSelect",
4398
4409
  props: {
4399
4410
  defaultRedisConfigItem: {
@@ -4429,124 +4440,124 @@ const bc = (e) => {
4429
4440
  getOne: "/{workspace}/partials/{id}",
4430
4441
  getAll: "/{workspace}/partials"
4431
4442
  }
4432
- }, a = e, r = ie(null), { getMessageFromError: o } = zi(), s = st(ts), {
4443
+ }, a = e, r = Q(null), { getMessageFromError: s } = zi(), o = st(ts), {
4433
4444
  debouncedQueryChange: l,
4434
4445
  loading: u,
4435
4446
  error: h,
4436
4447
  loadItems: f,
4437
- results: p
4438
- } = Yi(s, i[s.app].getAll, void 0, {
4448
+ results: g
4449
+ } = Yi(o, i[o.app].getAll, void 0, {
4439
4450
  fetchedItemsKey: "data",
4440
4451
  searchKeys: ["id", "name"]
4441
- }), F = L(() => h.value ? o(h.value) : ""), T = (V) => {
4442
- let b = `${s.apiBaseUrl}${i[s.app].getOne}`;
4443
- return s.app === "konnect" ? b = b.replace(/{controlPlaneId}/gi, (s == null ? void 0 : s.controlPlaneId) || "") : s.app === "kongManager" && (b = b.replace(/\/{workspace}/gi, s != null && s.workspace ? `/${s.workspace}` : "")), b = b.replace(/{id}/gi, String(V)), b;
4444
- }, c = L(() => {
4445
- var b;
4446
- const V = ((b = p.value) == null ? void 0 : b.map((E) => ({ label: E.id, name: E.name, value: E.id, type: E.type, tag: bc(E) }))) || [];
4447
- return a.redisType !== "all" ? V.filter((E) => E.type === a.redisType) : V;
4448
- }), { axiosInstance: y } = Hi(s == null ? void 0 : s.axiosRequestConfig), A = async (V) => {
4449
- if (V) {
4450
- a.updateRedisModel(V);
4452
+ }), k = L(() => h.value ? s(h.value) : ""), N = (A) => {
4453
+ let _ = `${o.apiBaseUrl}${i[o.app].getOne}`;
4454
+ return o.app === "konnect" ? _ = _.replace(/{controlPlaneId}/gi, (o == null ? void 0 : o.controlPlaneId) || "") : o.app === "kongManager" && (_ = _.replace(/\/{workspace}/gi, o != null && o.workspace ? `/${o.workspace}` : "")), _ = _.replace(/{id}/gi, String(A)), _;
4455
+ }, m = L(() => {
4456
+ var _;
4457
+ const A = ((_ = g.value) == null ? void 0 : _.map((E) => ({ label: E.id, name: E.name, value: E.id, type: E.type, tag: Mc(E) }))) || [];
4458
+ return a.redisType !== "all" ? A.filter((E) => E.type === a.redisType) : A;
4459
+ }), { axiosInstance: p } = Hi(o == null ? void 0 : o.axiosRequestConfig), b = async (A) => {
4460
+ if (A) {
4461
+ a.updateRedisModel(A);
4451
4462
  try {
4452
- const b = await y.get(T(V));
4453
- if (b.data.config) {
4454
- const E = Object.assign(b.data, b.data.config);
4463
+ const _ = await p.get(N(A));
4464
+ if (_.data.config) {
4465
+ const E = Object.assign(_.data, _.data.config);
4455
4466
  delete E.config, r.value = E;
4456
4467
  }
4457
- } catch (b) {
4458
- console.error(b);
4468
+ } catch (_) {
4469
+ console.error(_);
4459
4470
  }
4460
4471
  }
4461
4472
  };
4462
- return Rt(() => n == null ? void 0 : n.value, async (V) => {
4463
- V && await f();
4473
+ return Rt(() => n == null ? void 0 : n.value, async (A) => {
4474
+ A && await f();
4464
4475
  }), Pt(() => {
4465
- f(), a.defaultRedisConfigItem && A(a.defaultRedisConfigItem);
4466
- }), (V, b) => {
4467
- const E = k("KLabel"), $ = k("KBadge"), S = k("KSelect");
4468
- return d(), g(K, null, [
4469
- m("div", kc, [
4476
+ f(), a.defaultRedisConfigItem && b(a.defaultRedisConfigItem);
4477
+ }), (A, _) => {
4478
+ const E = U("KLabel"), $ = U("KBadge"), S = U("KSelect");
4479
+ return d(), v(K, null, [
4480
+ c("div", Vc, [
4470
4481
  C(E, {
4471
- info: e.isCustomPlugin ? M(t)("redis.custom_plugin.tooltip") : M(t)("redis.shared_configuration.tooltip", { type: M(Fn)(e.redisType) }),
4482
+ info: e.isCustomPlugin ? T(t)("redis.custom_plugin.tooltip") : T(t)("redis.shared_configuration.tooltip", { type: T(Fn)(e.redisType) }),
4472
4483
  "tooltip-attributes": {
4473
4484
  maxWidth: "300",
4474
4485
  placement: "top"
4475
4486
  }
4476
4487
  }, {
4477
- default: w(() => [
4478
- te(U(M(t)("redis.shared_configuration.title")), 1)
4488
+ default: M(() => [
4489
+ ne(F(T(t)("redis.shared_configuration.title")), 1)
4479
4490
  ]),
4480
4491
  _: 1
4481
4492
  }, 8, ["info"]),
4482
- b[2] || (b[2] = m("div", { class: "shared-redis-config-title" }, null, -1)),
4493
+ _[2] || (_[2] = c("div", { class: "shared-redis-config-title" }, null, -1)),
4483
4494
  C(S, {
4484
4495
  class: "redis-config-select-trigger",
4485
4496
  "data-testid": "redis-config-select-trigger",
4486
4497
  "enable-filtering": "",
4487
4498
  "filter-function": () => !0,
4488
- items: c.value,
4489
- loading: M(u),
4499
+ items: m.value,
4500
+ loading: T(u),
4490
4501
  "model-value": e.defaultRedisConfigItem,
4491
- placeholder: M(t)("redis.shared_configuration.selector.placeholder"),
4492
- onChange: b[1] || (b[1] = (v) => A(v == null ? void 0 : v.value)),
4493
- onQueryChange: M(l)
4502
+ placeholder: T(t)("redis.shared_configuration.selector.placeholder"),
4503
+ onChange: _[1] || (_[1] = (y) => b(y == null ? void 0 : y.value)),
4504
+ onQueryChange: T(l)
4494
4505
  }, {
4495
- "selected-item-template": w(({ item: v }) => [
4496
- m("div", Uc, U(v.name), 1)
4506
+ "selected-item-template": M(({ item: y }) => [
4507
+ c("div", Pc, F(y.name), 1)
4497
4508
  ]),
4498
- "item-template": w(({ item: v }) => [
4499
- m("div", {
4509
+ "item-template": M(({ item: y }) => [
4510
+ c("div", {
4500
4511
  class: "plugin-form-redis-configuration-dropdown-item",
4501
- "data-testid": `redis-configuration-dropdown-item-${v.name}`
4512
+ "data-testid": `redis-configuration-dropdown-item-${y.name}`
4502
4513
  }, [
4503
- m("span", Vc, U(v.name), 1),
4514
+ c("span", jc, F(y.name), 1),
4504
4515
  C($, {
4505
4516
  appearance: "info",
4506
4517
  class: "select-item-label"
4507
4518
  }, {
4508
- default: w(() => [
4509
- te(U(v.tag), 1)
4519
+ default: M(() => [
4520
+ ne(F(y.tag), 1)
4510
4521
  ]),
4511
4522
  _: 2
4512
4523
  }, 1024)
4513
- ], 8, $c)
4524
+ ], 8, Rc)
4514
4525
  ]),
4515
- empty: w(() => [
4516
- m("div", Pc, U(M(t)("redis.shared_configuration.empty_state")), 1)
4526
+ empty: M(() => [
4527
+ c("div", Nc, F(T(t)("redis.shared_configuration.empty_state")), 1)
4517
4528
  ]),
4518
- "dropdown-footer-text": w(() => [
4519
- m("div", {
4529
+ "dropdown-footer-text": M(() => [
4530
+ c("div", {
4520
4531
  class: "new-redis-config-area",
4521
4532
  "data-testid": "new-redis-config-area",
4522
- onClick: b[0] || (b[0] = (v) => V.$emit("showNewPartialModal"))
4533
+ onClick: _[0] || (_[0] = (y) => A.$emit("showNewPartialModal"))
4523
4534
  }, [
4524
- C(M(jt), { size: M(_d) }, null, 8, ["size"]),
4525
- m("span", null, U(M(t)("redis.shared_configuration.create_new_configuration", { type: M(Fn)(e.redisType) })), 1)
4535
+ C(T(jt), { size: T(_d) }, null, 8, ["size"]),
4536
+ c("span", null, F(T(t)("redis.shared_configuration.create_new_configuration", { type: T(Fn)(e.redisType) })), 1)
4526
4537
  ])
4527
4538
  ]),
4528
4539
  _: 1
4529
4540
  }, 8, ["items", "loading", "model-value", "placeholder", "onQueryChange"])
4530
4541
  ]),
4531
- r.value ? (d(), O(Fc, {
4542
+ r.value ? (d(), O($c, {
4532
4543
  key: 0,
4533
4544
  "config-fields": r.value,
4534
4545
  "plugin-redis-fields": e.pluginRedisFields
4535
- }, null, 8, ["config-fields", "plugin-redis-fields"])) : j("", !0),
4536
- F.value ? (d(), g("p", Rc, U(F.value || M(t)("redis.shared_configuration.error")), 1)) : j("", !0)
4546
+ }, null, 8, ["config-fields", "plugin-redis-fields"])) : R("", !0),
4547
+ k.value ? (d(), v("p", Lc, F(k.value || T(t)("redis.shared_configuration.error")), 1)) : R("", !0)
4537
4548
  ], 64);
4538
4549
  };
4539
4550
  }
4540
- }), kn = /* @__PURE__ */ z(jc, [["__scopeId", "data-v-e0256888"]]), Nc = { key: 0 }, Lc = {
4551
+ }), kn = /* @__PURE__ */ z(qc, [["__scopeId", "data-v-e0256888"]]), Kc = { key: 0 }, Dc = {
4541
4552
  class: "redis-config-radio-group",
4542
4553
  "data-testid": "redis-config-radio-group"
4543
- }, qc = {
4554
+ }, Bc = {
4544
4555
  key: 0,
4545
4556
  class: "shared-redis-config"
4546
- }, Kc = {
4557
+ }, zc = {
4547
4558
  key: 1,
4548
4559
  class: "dedicated-redis-config"
4549
- }, Dc = { class: "dedicated-redis-config-title" }, Bc = /* @__PURE__ */ re({
4560
+ }, Yc = { class: "dedicated-redis-config-title" }, Hc = /* @__PURE__ */ re({
4550
4561
  __name: "FormRedis",
4551
4562
  props: {
4552
4563
  tag: {
@@ -4594,90 +4605,90 @@ const bc = (e) => {
4594
4605
  },
4595
4606
  emits: ["modelUpdated", "partialToggled", "showNewPartialModal", "refreshModel", "validated"],
4596
4607
  setup(e, { emit: t }) {
4597
- const n = e, i = t, { t: a } = ve("en-us", be), r = L(() => n.field.pluginType === "custom"), o = ie(!n.isEditing), s = ie(), l = ie({}), u = ie(), h = (c) => Y(c.visible) ? c.visible.call(this, n.model, c, this) : X(c.visible) ? !0 : c.visible, f = async (c) => {
4598
- i("modelUpdated", [{ id: c, path: n.redisPath }], "partials"), u.value = [{ id: c, path: n.redisPath }], s.value = c;
4599
- }, p = (c, y) => {
4600
- l.value = { ...l.value, [y]: c }, i("modelUpdated", c, y);
4601
- }, F = () => {
4608
+ const n = e, i = t, { t: a } = ve("en-us", be), r = L(() => n.field.pluginType === "custom"), s = Q(!n.isEditing), o = Q(), l = Q({}), u = Q(), h = (m) => Y(m.visible) ? m.visible.call(this, n.model, m, this) : ee(m.visible) ? !0 : m.visible, f = async (m) => {
4609
+ i("modelUpdated", [{ id: m, path: n.redisPath }], "partials"), u.value = [{ id: m, path: n.redisPath }], o.value = m;
4610
+ }, g = (m, p) => {
4611
+ l.value = { ...l.value, [p]: m }, i("modelUpdated", m, p);
4612
+ }, k = () => {
4602
4613
  i("refreshModel");
4603
- }, T = (c, y, A) => {
4604
- i("validated", c, y, A);
4614
+ }, N = (m, p, b) => {
4615
+ i("validated", m, p, b);
4605
4616
  };
4606
- return Rt(() => o.value, (c) => {
4607
- c ? u.value && i("partialToggled", "redis", { partials: u.value }) : i("partialToggled", "partials", l.value);
4617
+ return Rt(() => s.value, (m) => {
4618
+ m ? u.value && i("partialToggled", "redis", { partials: u.value }) : i("partialToggled", "partials", l.value);
4608
4619
  }), Pt(() => {
4609
- var c, y, A;
4610
- if (n.model && (l.value = n.field.fields.reduce((V, b) => (Object.keys(n.model).includes(b.model) && (V[b.model] = n.model[b.model]), V), {})), (A = (y = (c = n == null ? void 0 : n.model) == null ? void 0 : c.partials) == null ? void 0 : y[0]) != null && A.id) {
4611
- const V = n.model.partials[0].id;
4612
- o.value = !0, s.value = V;
4620
+ var m, p, b;
4621
+ if (n.model && (l.value = n.field.fields.reduce((A, _) => (Object.keys(n.model).includes(_.model) && (A[_.model] = n.model[_.model]), A), {})), (b = (p = (m = n == null ? void 0 : n.model) == null ? void 0 : m.partials) == null ? void 0 : p[0]) != null && b.id) {
4622
+ const A = n.model.partials[0].id;
4623
+ s.value = !0, o.value = A;
4613
4624
  }
4614
- }), (c, y) => {
4615
- const A = k("KAlert"), V = k("KBadge"), b = k("KRadio"), E = k("KCard");
4616
- return d(), g("div", null, [
4617
- r.value ? (d(), g("div", Nc, [
4618
- C(A, {
4625
+ }), (m, p) => {
4626
+ const b = U("KAlert"), A = U("KBadge"), _ = U("KRadio"), E = U("KCard");
4627
+ return d(), v("div", null, [
4628
+ r.value ? (d(), v("div", Kc, [
4629
+ C(b, {
4619
4630
  "data-testid": "custom-plugin-redis-config-note",
4620
- message: M(a)("redis.custom_plugin.alert")
4631
+ message: T(a)("redis.custom_plugin.alert")
4621
4632
  }, null, 8, ["message"]),
4622
4633
  C(kn, {
4623
- "default-redis-config-item": s.value,
4634
+ "default-redis-config-item": o.value,
4624
4635
  "is-custom-plugin": "",
4625
4636
  "plugin-redis-fields": e.field.fields,
4626
4637
  "update-redis-model": f,
4627
- onShowNewPartialModal: y[0] || (y[0] = ($) => c.$emit("showNewPartialModal"))
4638
+ onShowNewPartialModal: p[0] || (p[0] = ($) => m.$emit("showNewPartialModal"))
4628
4639
  }, null, 8, ["default-redis-config-item", "plugin-redis-fields"])
4629
4640
  ])) : (d(), O(E, {
4630
4641
  key: 1,
4631
4642
  class: "redis-config-card",
4632
4643
  "data-testid": "redis-config-card",
4633
- title: M(a)("redis.title")
4644
+ title: T(a)("redis.title")
4634
4645
  }, {
4635
- default: w(() => [
4636
- m("div", Lc, [
4637
- C(b, {
4638
- modelValue: o.value,
4639
- "onUpdate:modelValue": y[1] || (y[1] = ($) => o.value = $),
4646
+ default: M(() => [
4647
+ c("div", Dc, [
4648
+ C(_, {
4649
+ modelValue: s.value,
4650
+ "onUpdate:modelValue": p[1] || (p[1] = ($) => s.value = $),
4640
4651
  card: "",
4641
4652
  "card-orientation": "horizontal",
4642
4653
  "data-testid": "shared-redis-config-radio",
4643
- description: M(a)("redis.shared_configuration.description"),
4644
- label: M(a)("redis.shared_configuration.label"),
4654
+ description: T(a)("redis.shared_configuration.description"),
4655
+ label: T(a)("redis.shared_configuration.label"),
4645
4656
  "selected-value": !0
4646
4657
  }, {
4647
- default: w(() => [
4648
- C(V, { appearance: "success" }, {
4649
- default: w(() => [
4650
- te(U(M(a)("redis.shared_configuration.badge")), 1)
4658
+ default: M(() => [
4659
+ C(A, { appearance: "success" }, {
4660
+ default: M(() => [
4661
+ ne(F(T(a)("redis.shared_configuration.badge")), 1)
4651
4662
  ]),
4652
4663
  _: 1
4653
4664
  })
4654
4665
  ]),
4655
4666
  _: 1
4656
4667
  }, 8, ["modelValue", "description", "label"]),
4657
- C(b, {
4658
- modelValue: o.value,
4659
- "onUpdate:modelValue": y[2] || (y[2] = ($) => o.value = $),
4668
+ C(_, {
4669
+ modelValue: s.value,
4670
+ "onUpdate:modelValue": p[2] || (p[2] = ($) => s.value = $),
4660
4671
  card: "",
4661
4672
  "card-orientation": "horizontal",
4662
4673
  "data-testid": "dedicated-redis-config-radio",
4663
- description: M(a)("redis.dedicated_configuration.description"),
4664
- label: M(a)("redis.dedicated_configuration.label"),
4674
+ description: T(a)("redis.dedicated_configuration.description"),
4675
+ label: T(a)("redis.dedicated_configuration.label"),
4665
4676
  "selected-value": !1
4666
4677
  }, null, 8, ["modelValue", "description", "label"])
4667
4678
  ]),
4668
- o.value ? (d(), g("div", qc, [
4679
+ s.value ? (d(), v("div", Bc, [
4669
4680
  C(kn, {
4670
- "default-redis-config-item": s.value,
4681
+ "default-redis-config-item": o.value,
4671
4682
  "plugin-redis-fields": e.field.fields,
4672
4683
  "redis-type": e.field.redisType,
4673
4684
  "update-redis-model": f,
4674
- onShowNewPartialModal: y[3] || (y[3] = ($) => c.$emit("showNewPartialModal"))
4685
+ onShowNewPartialModal: p[3] || (p[3] = ($) => m.$emit("showNewPartialModal"))
4675
4686
  }, null, 8, ["default-redis-config-item", "plugin-redis-fields", "redis-type"])
4676
- ])) : (d(), g("div", Kc, [
4677
- m("div", Dc, U(M(a)("redis.dedicated_configuration.title")), 1),
4678
- (d(), O(ne(e.tag), null, {
4679
- default: w(() => [
4680
- (d(!0), g(K, null, J(e.field.fields, ($) => (d(), g(K, {
4687
+ ])) : (d(), v("div", zc, [
4688
+ c("div", Yc, F(T(a)("redis.dedicated_configuration.title")), 1),
4689
+ (d(), O(ie(e.tag), null, {
4690
+ default: M(() => [
4691
+ (d(!0), v(K, null, J(e.field.fields, ($) => (d(), v(K, {
4681
4692
  key: $.model
4682
4693
  }, [
4683
4694
  h($) ? (d(), O(Ei, {
@@ -4689,10 +4700,10 @@ const bc = (e) => {
4689
4700
  model: e.model,
4690
4701
  options: e.options,
4691
4702
  vfg: e.vfg,
4692
- onModelUpdated: p,
4693
- onRefreshModel: F,
4694
- onValidated: T
4695
- }, null, 8, ["errors", "field", "model", "options", "vfg"])) : j("", !0)
4703
+ onModelUpdated: g,
4704
+ onRefreshModel: k,
4705
+ onValidated: N
4706
+ }, null, 8, ["errors", "field", "model", "options", "vfg"])) : R("", !0)
4696
4707
  ], 64))), 128))
4697
4708
  ]),
4698
4709
  _: 1
@@ -4704,9 +4715,9 @@ const bc = (e) => {
4704
4715
  ]);
4705
4716
  };
4706
4717
  }
4707
- }), zc = /* @__PURE__ */ z(Bc, [["__scopeId", "data-v-b9a17494"]]), Yc = {
4718
+ }), xc = /* @__PURE__ */ z(Hc, [["__scopeId", "data-v-b9a17494"]]), Gc = {
4708
4719
  name: "VueFormGenerator",
4709
- components: { formGroup: Ei, formRedis: zc },
4720
+ components: { formGroup: Ei, formRedis: xc },
4710
4721
  mixins: [si],
4711
4722
  inject: {
4712
4723
  // Inject AUTOFILL_SLOT for provide()
@@ -4741,7 +4752,7 @@ const bc = (e) => {
4741
4752
  return {
4742
4753
  validateAfterLoad: !1,
4743
4754
  validateAfterChanged: !1,
4744
- child: ie([]),
4755
+ child: Q([]),
4745
4756
  fieldIdPrefix: "",
4746
4757
  validateAsync: !1,
4747
4758
  validationErrorClass: "error",
@@ -4780,7 +4791,7 @@ const bc = (e) => {
4780
4791
  vfg: this,
4781
4792
  errors: [],
4782
4793
  // Validation errors,
4783
- children: ie([]),
4794
+ children: Q([]),
4784
4795
  collapseStates: {}
4785
4796
  };
4786
4797
  },
@@ -4817,7 +4828,7 @@ const bc = (e) => {
4817
4828
  methods: {
4818
4829
  // Get visible prop of field
4819
4830
  fieldVisible(e) {
4820
- return Y(e.visible) ? e.visible.call(this, this.model, e, this) : X(e.visible) ? !0 : e.visible;
4831
+ return Y(e.visible) ? e.visible.call(this, this.model, e, this) : ee(e.visible) ? !0 : e.visible;
4821
4832
  },
4822
4833
  // Child field executed validation
4823
4834
  onFieldValidated(e, t, n) {
@@ -4848,16 +4859,16 @@ const bc = (e) => {
4848
4859
  });
4849
4860
  const i = (a) => {
4850
4861
  const r = [];
4851
- ue(a, (s, l) => {
4852
- Array.isArray(s) && s.length > 0 && ue(s, (u) => {
4862
+ ue(a, (o, l) => {
4863
+ Array.isArray(o) && o.length > 0 && ue(o, (u) => {
4853
4864
  r.push({
4854
4865
  field: t[l].schema,
4855
4866
  error: u
4856
4867
  });
4857
4868
  });
4858
4869
  }), this.errors = r;
4859
- const o = r.length === 0;
4860
- return this.$emit("validated", o, r, this), e ? r : o;
4870
+ const s = r.length === 0;
4871
+ return this.$emit("validated", s, r, this), e ? r : s;
4861
4872
  };
4862
4873
  return e ? Promise.all(n).then(i) : i(n);
4863
4874
  },
@@ -4868,19 +4879,19 @@ const bc = (e) => {
4868
4879
  });
4869
4880
  }
4870
4881
  }
4871
- }, Hc = {
4882
+ }, Wc = {
4872
4883
  key: 0,
4873
4884
  class: "vue-form-generator"
4874
- }, xc = { key: 0 };
4875
- function Gc(e, t, n, i, a, r) {
4876
- const o = k("form-redis"), s = k("form-group"), l = k("KCollapse");
4877
- return n.schema != null ? (d(), g("div", Hc, [
4878
- n.schema.fields ? (d(), O(ne(n.tag), { key: 0 }, {
4879
- default: w(() => [
4880
- (d(!0), g(K, null, J(r.fields, (u) => (d(), g(K, {
4885
+ }, Zc = { key: 0 };
4886
+ function Jc(e, t, n, i, a, r) {
4887
+ const s = U("form-redis"), o = U("form-group"), l = U("KCollapse");
4888
+ return n.schema != null ? (d(), v("div", Wc, [
4889
+ n.schema.fields ? (d(), O(ie(n.tag), { key: 0 }, {
4890
+ default: M(() => [
4891
+ (d(!0), v(K, null, J(r.fields, (u) => (d(), v(K, {
4881
4892
  key: u.model
4882
4893
  }, [
4883
- u.model === "__redis_partial" && n.enableRedisPartial ? (d(), O(o, {
4894
+ u.model === "__redis_partial" && n.enableRedisPartial ? (d(), O(s, {
4884
4895
  key: 0,
4885
4896
  errors: a.errors,
4886
4897
  field: u,
@@ -4893,7 +4904,7 @@ function Gc(e, t, n, i, a, r) {
4893
4904
  onPartialToggled: r.onPartialToggled,
4894
4905
  onShowNewPartialModal: (h) => e.$emit("showNewPartialModal", u.redisType),
4895
4906
  onValidated: r.onFieldValidated
4896
- }, null, 8, ["errors", "field", "is-editing", "model", "options", "tag", "vfg", "onModelUpdated", "onPartialToggled", "onShowNewPartialModal", "onValidated"])) : r.fieldVisible(u) ? (d(), O(s, {
4907
+ }, null, 8, ["errors", "field", "is-editing", "model", "options", "tag", "vfg", "onModelUpdated", "onPartialToggled", "onShowNewPartialModal", "onValidated"])) : r.fieldVisible(u) ? (d(), O(o, {
4897
4908
  key: 1,
4898
4909
  ref_for: !0,
4899
4910
  ref: "children",
@@ -4905,12 +4916,12 @@ function Gc(e, t, n, i, a, r) {
4905
4916
  onModelUpdated: r.onModelUpdated,
4906
4917
  onRefreshModel: r.onRefreshModel,
4907
4918
  onValidated: r.onFieldValidated
4908
- }, null, 8, ["errors", "field", "model", "options", "vfg", "onModelUpdated", "onRefreshModel", "onValidated"])) : j("", !0)
4919
+ }, null, 8, ["errors", "field", "model", "options", "vfg", "onModelUpdated", "onRefreshModel", "onValidated"])) : R("", !0)
4909
4920
  ], 64))), 128))
4910
4921
  ]),
4911
4922
  _: 1
4912
- })) : j("", !0),
4913
- (d(!0), g(K, null, J(r.groups, (u, h) => (d(), g(K, {
4923
+ })) : R("", !0),
4924
+ (d(!0), v(K, null, J(r.groups, (u, h) => (d(), v(K, {
4914
4925
  key: `group-${h}`
4915
4926
  }, [
4916
4927
  u.collapsible !== void 0 && u.collapsible !== !1 ? (d(), O(l, {
@@ -4919,31 +4930,31 @@ function Gc(e, t, n, i, a, r) {
4919
4930
  "model-value": !1,
4920
4931
  title: u.collapsible.title
4921
4932
  }, at({
4922
- default: w(() => {
4923
- var f, p, F, T;
4933
+ default: M(() => {
4934
+ var f, g, k, N;
4924
4935
  return [
4925
- (f = u.slots) != null && f.beforeContent ? fe(e.$slots, (p = u.slots) == null ? void 0 : p.beforeContent, { key: 0 }) : j("", !0),
4926
- u.fields.length === 0 && ((F = u.slots) != null && F.emptyState) ? fe(e.$slots, (T = u.slots) == null ? void 0 : T.emptyState, { key: 1 }) : (d(), O(ne(n.tag), {
4936
+ (f = u.slots) != null && f.beforeContent ? fe(e.$slots, (g = u.slots) == null ? void 0 : g.beforeContent, { key: 0 }) : R("", !0),
4937
+ u.fields.length === 0 && ((k = u.slots) != null && k.emptyState) ? fe(e.$slots, (N = u.slots) == null ? void 0 : N.emptyState, { key: 1 }) : (d(), O(ie(n.tag), {
4927
4938
  key: 2,
4928
4939
  class: W(e.getFieldRowClasses(u))
4929
4940
  }, {
4930
- default: w(() => [
4931
- (d(!0), g(K, null, J(u.fields, (c) => (d(), g(K, {
4932
- key: c.model
4941
+ default: M(() => [
4942
+ (d(!0), v(K, null, J(u.fields, (m) => (d(), v(K, {
4943
+ key: m.model
4933
4944
  }, [
4934
- r.fieldVisible(c) ? (d(), O(s, {
4945
+ r.fieldVisible(m) ? (d(), O(o, {
4935
4946
  key: 0,
4936
4947
  ref_for: !0,
4937
4948
  ref: "children",
4938
4949
  errors: a.errors,
4939
- field: c,
4950
+ field: m,
4940
4951
  model: n.model,
4941
4952
  options: n.options,
4942
4953
  vfg: a.vfg,
4943
4954
  onModelUpdated: r.onModelUpdated,
4944
4955
  onRefreshModel: r.onRefreshModel,
4945
4956
  onValidated: r.onFieldValidated
4946
- }, null, 8, ["errors", "field", "model", "options", "vfg", "onModelUpdated", "onRefreshModel", "onValidated"])) : j("", !0)
4957
+ }, null, 8, ["errors", "field", "model", "options", "vfg", "onModelUpdated", "onRefreshModel", "onValidated"])) : R("", !0)
4947
4958
  ], 64))), 128))
4948
4959
  ]),
4949
4960
  _: 2
@@ -4954,20 +4965,20 @@ function Gc(e, t, n, i, a, r) {
4954
4965
  "model-value": a.collapseStates[`group-${h}-nested`] ?? !0,
4955
4966
  "trigger-alignment": "leading",
4956
4967
  "trigger-label": a.collapseStates[`group-${h}-nested`] ?? !0 ? u.collapsible.nestedCollapsible.triggerLabel.expand : u.collapsible.nestedCollapsible.triggerLabel.collapse,
4957
- "onUpdate:modelValue": (c) => a.collapseStates[`group-${h}-nested`] = c
4968
+ "onUpdate:modelValue": (m) => a.collapseStates[`group-${h}-nested`] = m
4958
4969
  }, {
4959
- default: w(() => [
4960
- (d(), O(ne(n.tag), {
4970
+ default: M(() => [
4971
+ (d(), O(ie(n.tag), {
4961
4972
  class: W(e.getFieldRowClasses(u))
4962
4973
  }, {
4963
- default: w(() => [
4964
- (d(!0), g(K, null, J(u.collapsible.nestedCollapsible.fields, (c) => (d(), g(K, {
4965
- key: c.model
4974
+ default: M(() => [
4975
+ (d(!0), v(K, null, J(u.collapsible.nestedCollapsible.fields, (m) => (d(), v(K, {
4976
+ key: m.model
4966
4977
  }, [
4967
- c.model === "__redis_partial" && n.enableRedisPartial ? (d(), O(o, {
4978
+ m.model === "__redis_partial" && n.enableRedisPartial ? (d(), O(s, {
4968
4979
  key: 0,
4969
4980
  errors: a.errors,
4970
- field: c,
4981
+ field: m,
4971
4982
  "is-editing": n.isEditing,
4972
4983
  model: n.model,
4973
4984
  options: n.options,
@@ -4975,49 +4986,49 @@ function Gc(e, t, n, i, a, r) {
4975
4986
  vfg: a.vfg,
4976
4987
  onModelUpdated: r.onModelUpdated,
4977
4988
  onPartialToggled: r.onPartialToggled,
4978
- onShowNewPartialModal: (y) => e.$emit("showNewPartialModal", c.redisType),
4989
+ onShowNewPartialModal: (p) => e.$emit("showNewPartialModal", m.redisType),
4979
4990
  onValidated: r.onFieldValidated
4980
- }, null, 8, ["errors", "field", "is-editing", "model", "options", "tag", "vfg", "onModelUpdated", "onPartialToggled", "onShowNewPartialModal", "onValidated"])) : r.fieldVisible(c) ? (d(), O(s, {
4991
+ }, null, 8, ["errors", "field", "is-editing", "model", "options", "tag", "vfg", "onModelUpdated", "onPartialToggled", "onShowNewPartialModal", "onValidated"])) : r.fieldVisible(m) ? (d(), O(o, {
4981
4992
  key: 1,
4982
4993
  ref_for: !0,
4983
4994
  ref: "children",
4984
4995
  errors: a.errors,
4985
- field: c,
4996
+ field: m,
4986
4997
  model: n.model,
4987
4998
  options: n.options,
4988
4999
  vfg: a.vfg,
4989
5000
  onModelUpdated: r.onModelUpdated,
4990
5001
  onRefreshModel: r.onRefreshModel,
4991
5002
  onValidated: r.onFieldValidated
4992
- }, null, 8, ["errors", "field", "model", "options", "vfg", "onModelUpdated", "onRefreshModel", "onValidated"])) : j("", !0)
5003
+ }, null, 8, ["errors", "field", "model", "options", "vfg", "onModelUpdated", "onRefreshModel", "onValidated"])) : R("", !0)
4993
5004
  ], 64))), 128))
4994
5005
  ]),
4995
5006
  _: 2
4996
5007
  }, 1032, ["class"]))
4997
5008
  ]),
4998
5009
  _: 2
4999
- }, 1032, ["model-value", "trigger-label", "onUpdate:modelValue"])) : j("", !0)
5010
+ }, 1032, ["model-value", "trigger-label", "onUpdate:modelValue"])) : R("", !0)
5000
5011
  ];
5001
5012
  }),
5002
5013
  _: 2
5003
5014
  }, [
5004
5015
  u.collapsible.description ? {
5005
5016
  name: "visible-content",
5006
- fn: w(() => [
5007
- te(U(u.collapsible.description), 1)
5017
+ fn: M(() => [
5018
+ ne(F(u.collapsible.description), 1)
5008
5019
  ]),
5009
5020
  key: "0"
5010
5021
  } : void 0
5011
- ]), 1032, ["title"])) : (d(), O(ne(n.tag), {
5022
+ ]), 1032, ["title"])) : (d(), O(ie(n.tag), {
5012
5023
  key: 1,
5013
5024
  class: W(e.getFieldRowClasses(u))
5014
5025
  }, {
5015
- default: w(() => [
5016
- u.legend ? (d(), g("legend", xc, U(u.legend), 1)) : j("", !0),
5017
- (d(!0), g(K, null, J(u.fields, (f) => (d(), g(K, {
5026
+ default: M(() => [
5027
+ u.legend ? (d(), v("legend", Zc, F(u.legend), 1)) : R("", !0),
5028
+ (d(!0), v(K, null, J(u.fields, (f) => (d(), v(K, {
5018
5029
  key: f.model
5019
5030
  }, [
5020
- r.fieldVisible(f) ? (d(), O(s, {
5031
+ r.fieldVisible(f) ? (d(), O(o, {
5021
5032
  key: 0,
5022
5033
  ref_for: !0,
5023
5034
  ref: "children",
@@ -5029,15 +5040,15 @@ function Gc(e, t, n, i, a, r) {
5029
5040
  onModelUpdated: r.onModelUpdated,
5030
5041
  onRefreshModel: r.onRefreshModel,
5031
5042
  onValidated: r.onFieldValidated
5032
- }, null, 8, ["errors", "field", "model", "options", "vfg", "onModelUpdated", "onRefreshModel", "onValidated"])) : j("", !0)
5043
+ }, null, 8, ["errors", "field", "model", "options", "vfg", "onModelUpdated", "onRefreshModel", "onValidated"])) : R("", !0)
5033
5044
  ], 64))), 128))
5034
5045
  ]),
5035
5046
  _: 2
5036
5047
  }, 1032, ["class"]))
5037
5048
  ], 64))), 128))
5038
- ])) : j("", !0);
5049
+ ])) : R("", !0);
5039
5050
  }
5040
- const ee = /* @__PURE__ */ z(Yc, [["render", Gc]]), Un = /* @__PURE__ */ new Set([
5051
+ const te = /* @__PURE__ */ z(Gc, [["render", Jc]]), Un = /* @__PURE__ */ new Set([
5041
5052
  "config-client_id",
5042
5053
  "config-client_secret",
5043
5054
  "config-issuer"
@@ -5051,9 +5062,9 @@ const ee = /* @__PURE__ */ z(Yc, [["render", Gc]]), Un = /* @__PURE__ */ new Set
5051
5062
  "config-groups_claim",
5052
5063
  "config-groups_required",
5053
5064
  "config-authenticated_groups_claim"
5054
- ]), Wc = {
5065
+ ]), Qc = {
5055
5066
  name: "OIDCForm",
5056
- components: { VueFormGenerator: ee },
5067
+ components: { VueFormGenerator: te },
5057
5068
  provide() {
5058
5069
  var e;
5059
5070
  return {
@@ -5157,10 +5168,10 @@ const ee = /* @__PURE__ */ z(Yc, [["render", Gc]]), Un = /* @__PURE__ */ new Set
5157
5168
  fields: this.formSchema.fields.filter(
5158
5169
  (a) => a.model.startsWith("config") && a.model !== "config-auth_methods" && !Un.has(a.model) && !$n.has(a.model) && (!this.enableRedisPartial || !i.includes(a.model)) || a.model === "tags"
5159
5170
  ).reduce((a, r) => {
5160
- var o, s, l, u;
5171
+ var s, o, l, u;
5161
5172
  switch (r.model) {
5162
5173
  case "config-client_jwk": {
5163
- if (Array.isArray((s = (o = r.items) == null ? void 0 : o.schema) == null ? void 0 : s.fields))
5174
+ if (Array.isArray((o = (s = r.items) == null ? void 0 : s.schema) == null ? void 0 : o.fields))
5164
5175
  for (const h of r.items.schema.fields)
5165
5176
  h.label = h.model;
5166
5177
  a.push({
@@ -5236,8 +5247,8 @@ const ee = /* @__PURE__ */ z(Yc, [["render", Gc]]), Un = /* @__PURE__ */ new Set
5236
5247
  ];
5237
5248
  for (const a of [this.commonFieldsSchema, this.authFieldsSchema, this.advancedFieldsSchema])
5238
5249
  for (const r of a.fields) {
5239
- const o = (e = t[r.model]) == null ? void 0 : e.help;
5240
- r.help === void 0 && typeof o == "string" && (r.help = o);
5250
+ const s = (e = t[r.model]) == null ? void 0 : e.help;
5251
+ r.help === void 0 && typeof s == "string" && (r.help = s);
5241
5252
  }
5242
5253
  }
5243
5254
  },
@@ -5251,55 +5262,55 @@ const ee = /* @__PURE__ */ z(Yc, [["render", Gc]]), Un = /* @__PURE__ */ new Set
5251
5262
  this.formModel["config-auth_methods"] = this.getAuthMethodsValue(t, e), this.onModelUpdated();
5252
5263
  }
5253
5264
  }
5254
- }, Zc = { class: "general-settings" }, Jc = { class: "link-wrapper" }, Qc = { class: "auth-method-container" }, Xc = { class: "general-settings" }, em = { class: "link-wrapper" }, tm = { class: "general-settings" }, nm = { class: "link-wrapper" };
5255
- function im(e, t, n, i, a, r) {
5256
- const o = k("VueFormGenerator"), s = k("KExternalLink"), l = k("KLabel"), u = k("KCheckbox"), h = k("KInputSwitch"), f = k("KTabs");
5257
- return d(), g("div", null, [
5258
- n.formModel.id && n.isEditing || !n.isEditing ? (d(), O(o, {
5265
+ }, Xc = { class: "general-settings" }, em = { class: "link-wrapper" }, tm = { class: "auth-method-container" }, nm = { class: "general-settings" }, im = { class: "link-wrapper" }, am = { class: "general-settings" }, rm = { class: "link-wrapper" };
5266
+ function sm(e, t, n, i, a, r) {
5267
+ const s = U("VueFormGenerator"), o = U("KExternalLink"), l = U("KLabel"), u = U("KCheckbox"), h = U("KInputSwitch"), f = U("KTabs");
5268
+ return d(), v("div", null, [
5269
+ n.formModel.id && n.isEditing || !n.isEditing ? (d(), O(s, {
5259
5270
  key: 0,
5260
5271
  class: "global-fields",
5261
5272
  model: n.formModel,
5262
5273
  options: n.formOptions,
5263
5274
  schema: a.globalFields,
5264
5275
  onModelUpdated: n.onModelUpdated
5265
- }, null, 8, ["model", "options", "schema", "onModelUpdated"])) : j("", !0),
5276
+ }, null, 8, ["model", "options", "schema", "onModelUpdated"])) : R("", !0),
5266
5277
  C(f, { tabs: a.tabs }, {
5267
- common: w(() => [
5268
- m("div", Zc, [
5269
- m("div", Jc, [
5270
- C(s, { href: "https://docs.konghq.com/hub/kong-inc/openid-connect/#important-configuration-parameters" }, {
5271
- default: w(() => t[2] || (t[2] = [
5272
- m("span", { class: "section-header" }, "Common Configuration Settings", -1)
5278
+ common: M(() => [
5279
+ c("div", Xc, [
5280
+ c("div", em, [
5281
+ C(o, { href: "https://docs.konghq.com/hub/kong-inc/openid-connect/#important-configuration-parameters" }, {
5282
+ default: M(() => t[2] || (t[2] = [
5283
+ c("span", { class: "section-header" }, "Common Configuration Settings", -1)
5273
5284
  ])),
5274
5285
  _: 1
5275
5286
  })
5276
5287
  ]),
5277
- t[4] || (t[4] = m("div", { class: "description" }, " Parameters for enabling the OpenID Connect plugin. Set these parameters before adding authorization, authentication, or other advanced configuration details. ", -1)),
5278
- r.displayForm ? (d(), O(o, {
5288
+ t[4] || (t[4] = c("div", { class: "description" }, " Parameters for enabling the OpenID Connect plugin. Set these parameters before adding authorization, authentication, or other advanced configuration details. ", -1)),
5289
+ r.displayForm ? (d(), O(s, {
5279
5290
  key: 0,
5280
5291
  model: n.formModel,
5281
5292
  options: n.formOptions,
5282
5293
  schema: a.commonFieldsSchema,
5283
5294
  onModelUpdated: n.onModelUpdated
5284
- }, null, 8, ["model", "options", "schema", "onModelUpdated"])) : j("", !0),
5295
+ }, null, 8, ["model", "options", "schema", "onModelUpdated"])) : R("", !0),
5285
5296
  C(l, null, {
5286
- default: w(() => t[3] || (t[3] = [
5287
- te("Auth Methods")
5297
+ default: M(() => t[3] || (t[3] = [
5298
+ ne("Auth Methods")
5288
5299
  ])),
5289
5300
  _: 1
5290
5301
  }),
5291
- m("div", Qc, [
5292
- (d(!0), g(K, null, J(a.authMethods, (p) => (d(), g("div", {
5293
- key: p.value,
5302
+ c("div", tm, [
5303
+ (d(!0), v(K, null, J(a.authMethods, (g) => (d(), v("div", {
5304
+ key: g.value,
5294
5305
  class: "auth-method"
5295
5306
  }, [
5296
5307
  C(u, {
5297
- modelValue: p.prop,
5298
- "onUpdate:modelValue": (F) => p.prop = F,
5299
- onChange: (F) => r.handleUpdate(F, p.value)
5308
+ modelValue: g.prop,
5309
+ "onUpdate:modelValue": (k) => g.prop = k,
5310
+ onChange: (k) => r.handleUpdate(k, g.value)
5300
5311
  }, {
5301
- default: w(() => [
5302
- te(U(p.label), 1)
5312
+ default: M(() => [
5313
+ ne(F(g.label), 1)
5303
5314
  ]),
5304
5315
  _: 2
5305
5316
  }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])
@@ -5307,49 +5318,49 @@ function im(e, t, n, i, a, r) {
5307
5318
  ]),
5308
5319
  C(h, {
5309
5320
  modelValue: a.sessionManagement,
5310
- "onUpdate:modelValue": t[0] || (t[0] = (p) => a.sessionManagement = p),
5321
+ "onUpdate:modelValue": t[0] || (t[0] = (g) => a.sessionManagement = g),
5311
5322
  label: "Enable Session Management",
5312
5323
  onChange: r.handleUpdate
5313
5324
  }, null, 8, ["modelValue", "onChange"])
5314
5325
  ])
5315
5326
  ]),
5316
- authorization: w(() => [
5317
- m("div", Xc, [
5318
- m("div", em, [
5319
- C(s, { href: "https://docs.konghq.com/hub/kong-inc/openid-connect/#authorization" }, {
5320
- default: w(() => t[5] || (t[5] = [
5321
- m("span", { class: "section-header" }, "Authorization Configuration Settings", -1)
5327
+ authorization: M(() => [
5328
+ c("div", nm, [
5329
+ c("div", im, [
5330
+ C(o, { href: "https://docs.konghq.com/hub/kong-inc/openid-connect/#authorization" }, {
5331
+ default: M(() => t[5] || (t[5] = [
5332
+ c("span", { class: "section-header" }, "Authorization Configuration Settings", -1)
5322
5333
  ])),
5323
5334
  _: 1
5324
5335
  })
5325
5336
  ]),
5326
- t[6] || (t[6] = m("div", { class: "description" }, " Parameters for setting up claims-based authorization. ", -1)),
5327
- r.displayForm ? (d(), O(o, {
5337
+ t[6] || (t[6] = c("div", { class: "description" }, " Parameters for setting up claims-based authorization. ", -1)),
5338
+ r.displayForm ? (d(), O(s, {
5328
5339
  key: 0,
5329
5340
  model: n.formModel,
5330
5341
  options: n.formOptions,
5331
5342
  schema: a.authFieldsSchema,
5332
5343
  onModelUpdated: n.onModelUpdated
5333
5344
  }, {
5334
- "autofill-provider": w((p) => [
5335
- fe(e.$slots, "autofill-provider", Li(qi(p)), void 0, !0)
5345
+ "autofill-provider": M((g) => [
5346
+ fe(e.$slots, "autofill-provider", Li(qi(g)), void 0, !0)
5336
5347
  ]),
5337
5348
  _: 3
5338
- }, 8, ["model", "options", "schema", "onModelUpdated"])) : j("", !0)
5349
+ }, 8, ["model", "options", "schema", "onModelUpdated"])) : R("", !0)
5339
5350
  ])
5340
5351
  ]),
5341
- advanced: w(() => [
5342
- m("div", tm, [
5343
- m("div", nm, [
5344
- C(s, { href: "https://docs.konghq.com/hub/kong-inc/openid-connect/" }, {
5345
- default: w(() => t[7] || (t[7] = [
5346
- m("span", { class: "section-header" }, "Advanced Configuration Settings", -1)
5352
+ advanced: M(() => [
5353
+ c("div", am, [
5354
+ c("div", rm, [
5355
+ C(o, { href: "https://docs.konghq.com/hub/kong-inc/openid-connect/" }, {
5356
+ default: M(() => t[7] || (t[7] = [
5357
+ c("span", { class: "section-header" }, "Advanced Configuration Settings", -1)
5347
5358
  ])),
5348
5359
  _: 1
5349
5360
  })
5350
5361
  ]),
5351
- t[8] || (t[8] = m("div", { class: "description" }, " Advanced parameters for manually configuring the OpenID Connect plugin. ", -1)),
5352
- r.displayForm ? (d(), O(o, {
5362
+ t[8] || (t[8] = c("div", { class: "description" }, " Advanced parameters for manually configuring the OpenID Connect plugin. ", -1)),
5363
+ r.displayForm ? (d(), O(s, {
5353
5364
  key: 0,
5354
5365
  "enable-redis-partial": n.enableRedisPartial,
5355
5366
  "is-editing": n.isEditing,
@@ -5359,14 +5370,14 @@ function im(e, t, n, i, a, r) {
5359
5370
  onModelUpdated: n.onModelUpdated,
5360
5371
  onPartialToggled: n.onPartialToggled,
5361
5372
  onShowNewPartialModal: t[1] || (t[1] = () => n.showNewPartialModal(n.formSchema._supported_redis_partial_type))
5362
- }, null, 8, ["enable-redis-partial", "is-editing", "model", "options", "schema", "onModelUpdated", "onPartialToggled"])) : j("", !0)
5373
+ }, null, 8, ["enable-redis-partial", "is-editing", "model", "options", "schema", "onModelUpdated", "onPartialToggled"])) : R("", !0)
5363
5374
  ])
5364
5375
  ]),
5365
5376
  _: 3
5366
5377
  }, 8, ["tabs"])
5367
5378
  ]);
5368
5379
  }
5369
- const am = /* @__PURE__ */ z(Wc, [["render", im], ["__scopeId", "data-v-44df963d"]]), rm = /* @__PURE__ */ re({
5380
+ const om = /* @__PURE__ */ z(Qc, [["render", sm], ["__scopeId", "data-v-44df963d"]]), lm = /* @__PURE__ */ re({
5370
5381
  __name: "PostFunction",
5371
5382
  props: {
5372
5383
  formModel: {
@@ -5392,24 +5403,24 @@ const am = /* @__PURE__ */ z(Wc, [["render", im], ["__scopeId", "data-v-44df963d
5392
5403
  }
5393
5404
  },
5394
5405
  setup(e) {
5395
- var o;
5396
- it(ge, (o = ft()) == null ? void 0 : o[Ge]);
5406
+ var s;
5407
+ it(ge, (s = ft()) == null ? void 0 : s[Ge]);
5397
5408
  const { t, te: n } = ve("en-us", be), i = e, a = L(() => i.formModel.id && i.isEditing || !i.isEditing), r = L(() => {
5398
- const s = i.formSchema;
5399
- return s.fields.map((l) => {
5409
+ const o = i.formSchema;
5410
+ return o.fields.map((l) => {
5400
5411
  const u = `post-function.${l.model}`;
5401
5412
  return l.hint = n(`${u}.hint`) && t(`${u}.hint`) || l.hint, l.help = n(`${u}.help`) && t(`${u}.help`) || l.help, l.newElementButtonLabel = n(`${u}.newElementButtonLabel`) && t(`${u}.newElementButtonLabel`) || l.newElementButtonLabel, l.model !== "tags" && (l.valueType === "array" || l.type === "array") && (l.type = "array", l.valueArrayType = "array", l.itemContainerComponent = "FieldArrayItem", l.fieldClasses = "post-function-array-item-container", l.fieldItemsClasses = "post-function-array-item", l.inputAttributes = { ...l.inputAttributes, type: "textarea" }), l;
5402
- }), s;
5413
+ }), o;
5403
5414
  });
5404
- return (s, l) => a.value ? (d(), O(ee, {
5415
+ return (o, l) => a.value ? (d(), O(te, {
5405
5416
  key: 0,
5406
5417
  model: e.formModel,
5407
5418
  options: e.formOptions,
5408
5419
  schema: r.value,
5409
5420
  onModelUpdated: e.onModelUpdated
5410
- }, null, 8, ["model", "options", "schema", "onModelUpdated"])) : j("", !0);
5421
+ }, null, 8, ["model", "options", "schema", "onModelUpdated"])) : R("", !0);
5411
5422
  }
5412
- }), sm = /* @__PURE__ */ z(rm, [["__scopeId", "data-v-f54f37ae"]]), om = /* @__PURE__ */ re({
5423
+ }), dm = /* @__PURE__ */ z(lm, [["__scopeId", "data-v-f54f37ae"]]), um = /* @__PURE__ */ re({
5413
5424
  __name: "ExitTransformer",
5414
5425
  props: {
5415
5426
  formModel: {
@@ -5435,24 +5446,24 @@ const am = /* @__PURE__ */ z(Wc, [["render", im], ["__scopeId", "data-v-44df963d
5435
5446
  }
5436
5447
  },
5437
5448
  setup(e) {
5438
- var o;
5439
- it(ge, (o = ft()) == null ? void 0 : o[Ge]);
5449
+ var s;
5450
+ it(ge, (s = ft()) == null ? void 0 : s[Ge]);
5440
5451
  const { t, te: n } = ve("en-us", be), i = e, a = L(() => i.formModel.id && i.isEditing || !i.isEditing), r = L(() => {
5441
- const s = i.formSchema;
5442
- return s.fields.map((l) => {
5452
+ const o = i.formSchema;
5453
+ return o.fields.map((l) => {
5443
5454
  const u = `exit-transformer.${l.model}`;
5444
5455
  return l.hint = n(`${u}.hint`) && t(`${u}.hint`) || l.hint, l.help = n(`${u}.help`) && t(`${u}.help`) || l.help, l.newElementButtonLabel = n(`${u}.newElementButtonLabel`) && t(`${u}.newElementButtonLabel`) || l.newElementButtonLabel, l.model !== "tags" && (l.valueType === "array" || l.type === "array") && (l.type = "array", l.valueArrayType = "array", l.itemContainerComponent = "FieldArrayItem", l.fieldClasses = "exit-transformer-array-item-container", l.fieldItemsClasses = "exit-transformer-array-item", l.inputAttributes = { ...l.inputAttributes, type: "textarea" }), l;
5445
- }), s;
5456
+ }), o;
5446
5457
  });
5447
- return (s, l) => a.value ? (d(), O(ee, {
5458
+ return (o, l) => a.value ? (d(), O(te, {
5448
5459
  key: 0,
5449
5460
  model: e.formModel,
5450
5461
  options: e.formOptions,
5451
5462
  schema: r.value,
5452
5463
  onModelUpdated: e.onModelUpdated
5453
- }, null, 8, ["model", "options", "schema", "onModelUpdated"])) : j("", !0);
5464
+ }, null, 8, ["model", "options", "schema", "onModelUpdated"])) : R("", !0);
5454
5465
  }
5455
- }), lm = /* @__PURE__ */ z(om, [["__scopeId", "data-v-0d5c541f"]]), dm = {
5466
+ }), cm = /* @__PURE__ */ z(um, [["__scopeId", "data-v-0d5c541f"]]), mm = {
5456
5467
  fields: [
5457
5468
  {
5458
5469
  inputType: "text",
@@ -5487,7 +5498,7 @@ const am = /* @__PURE__ */ z(Wc, [["render", im], ["__scopeId", "data-v-44df963d
5487
5498
  disabled: !1
5488
5499
  }
5489
5500
  ]
5490
- }, um = {
5501
+ }, fm = {
5491
5502
  fields: [
5492
5503
  {
5493
5504
  type: "input",
@@ -5509,7 +5520,7 @@ const am = /* @__PURE__ */ z(Wc, [["render", im], ["__scopeId", "data-v-44df963d
5509
5520
  disabled: !1
5510
5521
  }
5511
5522
  ]
5512
- }, cm = {
5523
+ }, hm = {
5513
5524
  fields: [
5514
5525
  {
5515
5526
  type: "input",
@@ -5540,7 +5551,7 @@ const am = /* @__PURE__ */ z(Wc, [["render", im], ["__scopeId", "data-v-44df963d
5540
5551
  disabled: !1
5541
5552
  }
5542
5553
  ]
5543
- }, mm = { class: "general-settings" }, fm = { class: "sub-form" }, hm = { class: "general-settings" }, pm = { class: "sub-form" }, gm = { class: "general-settings" }, vm = /* @__PURE__ */ re({
5554
+ }, pm = { class: "general-settings" }, gm = { class: "sub-form" }, vm = { class: "general-settings" }, ym = { class: "sub-form" }, bm = { class: "general-settings" }, _m = /* @__PURE__ */ re({
5544
5555
  __name: "ACMEForm",
5545
5556
  props: {
5546
5557
  formModel: {
@@ -5568,56 +5579,56 @@ const am = /* @__PURE__ */ z(Wc, [["render", im], ["__scopeId", "data-v-44df963d
5568
5579
  setup(e) {
5569
5580
  var $;
5570
5581
  it(ge, ($ = ft()) == null ? void 0 : $[Ge]);
5571
- const t = e, n = ie("zeroSsl"), i = ie("shm"), a = L(() => {
5572
- var v;
5582
+ const t = e, n = Q("zeroSsl"), i = Q("shm"), a = L(() => {
5583
+ var y;
5573
5584
  const S = {};
5574
- if ((v = t.formSchema) != null && v.fields)
5575
- for (const R of t.formSchema.fields)
5576
- S[R.model] = R;
5585
+ if ((y = t.formSchema) != null && y.fields)
5586
+ for (const P of t.formSchema.fields)
5587
+ S[P.model] = P;
5577
5588
  return S;
5578
5589
  }), r = L(() => {
5579
- var v;
5580
- const S = Te(dm);
5581
- for (const R of S.fields) {
5582
- const x = (v = a.value[R.model]) == null ? void 0 : v.help;
5583
- R.help === void 0 && typeof x == "string" && (R.help = x);
5590
+ var y;
5591
+ const S = Te(mm);
5592
+ for (const P of S.fields) {
5593
+ const x = (y = a.value[P.model]) == null ? void 0 : y.help;
5594
+ P.help === void 0 && typeof x == "string" && (P.help = x);
5584
5595
  }
5585
5596
  return S;
5586
- }), o = L(() => {
5587
- var v;
5588
- const S = Te(um);
5589
- for (const R of S.fields) {
5590
- const x = (v = a.value[R.model]) == null ? void 0 : v.help;
5591
- R.help === void 0 && typeof x == "string" && (R.help = x);
5597
+ }), s = L(() => {
5598
+ var y;
5599
+ const S = Te(fm);
5600
+ for (const P of S.fields) {
5601
+ const x = (y = a.value[P.model]) == null ? void 0 : y.help;
5602
+ P.help === void 0 && typeof x == "string" && (P.help = x);
5592
5603
  }
5593
5604
  return S;
5594
- }), s = L(() => {
5595
- var v;
5596
- const S = Te(cm);
5597
- for (const R of S.fields) {
5598
- const x = (v = a.value[R.model]) == null ? void 0 : v.help;
5599
- R.help === void 0 && typeof x == "string" && (R.help = x);
5605
+ }), o = L(() => {
5606
+ var y;
5607
+ const S = Te(hm);
5608
+ for (const P of S.fields) {
5609
+ const x = (y = a.value[P.model]) == null ? void 0 : y.help;
5610
+ P.help === void 0 && typeof x == "string" && (P.help = x);
5600
5611
  }
5601
5612
  return S;
5602
5613
  }), l = L(() => ({
5603
5614
  fields: t.formSchema.fields.filter((S) => !S.model.startsWith("config") && S.model !== "tags")
5604
5615
  })), u = L(() => ({
5605
5616
  fields: r.value.fields.filter(
5606
- (v) => !o.value.fields.some((R) => R.model === v.model) && !s.value.fields.some((R) => R.model === v.model)
5617
+ (y) => !s.value.fields.some((P) => P.model === y.model) && !o.value.fields.some((P) => P.model === y.model)
5607
5618
  )
5608
5619
  })), h = L(() => ({
5609
- fields: t.formSchema.fields.filter((v) => v.model.startsWith("config-storage") && !v.model.startsWith("config-storage_config-consul") && !v.model.startsWith("config-storage_config-redis") && !v.model.startsWith("config-storage_config-shm") && !v.model.startsWith("config-storage_config-vault"))
5620
+ fields: t.formSchema.fields.filter((y) => y.model.startsWith("config-storage") && !y.model.startsWith("config-storage_config-consul") && !y.model.startsWith("config-storage_config-redis") && !y.model.startsWith("config-storage_config-shm") && !y.model.startsWith("config-storage_config-vault"))
5610
5621
  })), f = L(() => ({
5611
- fields: t.formSchema.fields.filter((v) => v.model.startsWith("config-storage_config-consul"))
5612
- })), p = L(() => ({
5613
- fields: t.formSchema.fields.filter((v) => v.model.startsWith("config-storage_config-redis"))
5614
- })), F = L(() => ({
5615
- fields: t.formSchema.fields.filter((v) => v.model.startsWith("config-storage_config-shm"))
5616
- })), T = L(() => ({
5617
- fields: t.formSchema.fields.filter((v) => v.model.startsWith("config-storage_config-vault"))
5618
- })), c = L(() => ({
5619
- fields: t.formSchema.fields.filter((S) => S.model.startsWith("config") && !u.value.fields.filter((v) => v.model === S.model).length && !h.value.fields.filter((v) => v.model === S.model).length || S.model === "tags")
5620
- })), y = L(() => t.formModel.id && t.isEditing || !t.isEditing), A = [
5622
+ fields: t.formSchema.fields.filter((y) => y.model.startsWith("config-storage_config-consul"))
5623
+ })), g = L(() => ({
5624
+ fields: t.formSchema.fields.filter((y) => y.model.startsWith("config-storage_config-redis"))
5625
+ })), k = L(() => ({
5626
+ fields: t.formSchema.fields.filter((y) => y.model.startsWith("config-storage_config-shm"))
5627
+ })), N = L(() => ({
5628
+ fields: t.formSchema.fields.filter((y) => y.model.startsWith("config-storage_config-vault"))
5629
+ })), m = L(() => ({
5630
+ fields: t.formSchema.fields.filter((S) => S.model.startsWith("config") && !u.value.fields.filter((y) => y.model === S.model).length && !h.value.fields.filter((y) => y.model === S.model).length || S.model === "tags")
5631
+ })), p = L(() => t.formModel.id && t.isEditing || !t.isEditing), b = [
5621
5632
  {
5622
5633
  hash: "#general",
5623
5634
  title: "General"
@@ -5630,7 +5641,7 @@ const am = /* @__PURE__ */ z(Wc, [["render", im], ["__scopeId", "data-v-44df963d
5630
5641
  hash: "#advanced",
5631
5642
  title: "Advanced"
5632
5643
  }
5633
- ], V = [
5644
+ ], A = [
5634
5645
  {
5635
5646
  label: "Lets Encrypt",
5636
5647
  value: "letsEncrypt"
@@ -5648,119 +5659,119 @@ const am = /* @__PURE__ */ z(Wc, [["render", im], ["__scopeId", "data-v-44df963d
5648
5659
  Vt(() => {
5649
5660
  n.value === "zeroSsl" && (t.formModel["config-api_uri"] = "https://acme.zerossl.com/v2/DV90");
5650
5661
  });
5651
- const b = (S) => {
5662
+ const _ = (S) => {
5652
5663
  n.value = S.value, (S.value === "zeroSsl" || S.value === "other") && (S.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), S.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();
5653
- }, E = (S, v) => {
5654
- v === "config-storage" && (i.value = S), t.onModelUpdated();
5664
+ }, E = (S, y) => {
5665
+ y === "config-storage" && (i.value = S), t.onModelUpdated();
5655
5666
  };
5656
- return (S, v) => {
5657
- const R = k("KSelect"), x = k("KTabs");
5658
- return d(), g("div", null, [
5659
- e.formModel.id && e.isEditing || !e.isEditing ? (d(), O(ee, {
5667
+ return (S, y) => {
5668
+ const P = U("KSelect"), x = U("KTabs");
5669
+ return d(), v("div", null, [
5670
+ e.formModel.id && e.isEditing || !e.isEditing ? (d(), O(te, {
5660
5671
  key: 0,
5661
5672
  class: "global-fields",
5662
5673
  model: e.formModel,
5663
5674
  options: e.formOptions,
5664
5675
  schema: l.value,
5665
5676
  onModelUpdated: e.onModelUpdated
5666
- }, null, 8, ["model", "options", "schema", "onModelUpdated"])) : j("", !0),
5667
- C(x, { tabs: A }, {
5668
- general: w(() => [
5669
- m("div", mm, [
5670
- v[0] || (v[0] = m("div", { class: "header-wrapper" }, [
5671
- m("span", { class: "section-header" }, "General Configuration Settings")
5677
+ }, null, 8, ["model", "options", "schema", "onModelUpdated"])) : R("", !0),
5678
+ C(x, { tabs: b }, {
5679
+ general: M(() => [
5680
+ c("div", pm, [
5681
+ y[0] || (y[0] = c("div", { class: "header-wrapper" }, [
5682
+ c("span", { class: "section-header" }, "General Configuration Settings")
5672
5683
  ], -1)),
5673
- v[1] || (v[1] = m("div", { class: "description" }, " Parameters for enabling the ACME plugin. ", -1)),
5674
- y.value ? (d(), O(ee, {
5684
+ y[1] || (y[1] = c("div", { class: "description" }, " Parameters for enabling the ACME plugin. ", -1)),
5685
+ p.value ? (d(), O(te, {
5675
5686
  key: 0,
5676
5687
  model: e.formModel,
5677
5688
  options: e.formOptions,
5678
5689
  schema: u.value,
5679
5690
  onModelUpdated: e.onModelUpdated
5680
- }, null, 8, ["model", "options", "schema", "onModelUpdated"])) : j("", !0),
5681
- v[2] || (v[2] = m("hr", null, null, -1)),
5682
- C(R, {
5691
+ }, null, 8, ["model", "options", "schema", "onModelUpdated"])) : R("", !0),
5692
+ y[2] || (y[2] = c("hr", null, null, -1)),
5693
+ C(P, {
5683
5694
  class: "issuer-select",
5684
- items: V,
5695
+ items: A,
5685
5696
  label: "Issuer",
5686
- onChange: b
5697
+ onChange: _
5687
5698
  }),
5688
- m("div", fm, [
5689
- n.value === "letsEncrypt" ? (d(), O(ee, {
5699
+ c("div", gm, [
5700
+ n.value === "letsEncrypt" ? (d(), O(te, {
5690
5701
  key: 0,
5691
5702
  model: e.formModel,
5692
5703
  options: e.formOptions,
5693
- schema: o.value,
5704
+ schema: s.value,
5694
5705
  onModelUpdated: e.onModelUpdated
5695
- }, null, 8, ["model", "options", "schema", "onModelUpdated"])) : j("", !0),
5696
- n.value === "zeroSsl" || n.value === "other" ? (d(), O(ee, {
5706
+ }, null, 8, ["model", "options", "schema", "onModelUpdated"])) : R("", !0),
5707
+ n.value === "zeroSsl" || n.value === "other" ? (d(), O(te, {
5697
5708
  key: 1,
5698
5709
  model: e.formModel,
5699
5710
  options: e.formOptions,
5700
- schema: s.value,
5711
+ schema: o.value,
5701
5712
  onModelUpdated: e.onModelUpdated
5702
- }, null, 8, ["model", "options", "schema", "onModelUpdated"])) : j("", !0)
5713
+ }, null, 8, ["model", "options", "schema", "onModelUpdated"])) : R("", !0)
5703
5714
  ])
5704
5715
  ])
5705
5716
  ]),
5706
- storage: w(() => [
5707
- m("div", hm, [
5708
- v[3] || (v[3] = m("div", { class: "header-wrapper" }, [
5709
- m("span", { class: "section-header" }, "Storage Configuration Settings")
5717
+ storage: M(() => [
5718
+ c("div", vm, [
5719
+ y[3] || (y[3] = c("div", { class: "header-wrapper" }, [
5720
+ c("span", { class: "section-header" }, "Storage Configuration Settings")
5710
5721
  ], -1)),
5711
- v[4] || (v[4] = m("div", { class: "description" }, " Parameters for setting up storage. ", -1)),
5712
- y.value ? (d(), O(ee, {
5722
+ y[4] || (y[4] = c("div", { class: "description" }, " Parameters for setting up storage. ", -1)),
5723
+ p.value ? (d(), O(te, {
5713
5724
  key: 0,
5714
5725
  model: e.formModel,
5715
5726
  options: e.formOptions,
5716
5727
  schema: h.value,
5717
5728
  onModelUpdated: E
5718
- }, null, 8, ["model", "options", "schema"])) : j("", !0),
5719
- m("div", pm, [
5720
- i.value === "consul" ? (d(), O(ee, {
5729
+ }, null, 8, ["model", "options", "schema"])) : R("", !0),
5730
+ c("div", ym, [
5731
+ i.value === "consul" ? (d(), O(te, {
5721
5732
  key: 0,
5722
5733
  model: e.formModel,
5723
5734
  options: e.formOptions,
5724
5735
  schema: f.value,
5725
5736
  onModelUpdated: e.onModelUpdated
5726
- }, null, 8, ["model", "options", "schema", "onModelUpdated"])) : j("", !0),
5727
- i.value === "redis" ? (d(), O(ee, {
5737
+ }, null, 8, ["model", "options", "schema", "onModelUpdated"])) : R("", !0),
5738
+ i.value === "redis" ? (d(), O(te, {
5728
5739
  key: 1,
5729
5740
  model: e.formModel,
5730
5741
  options: e.formOptions,
5731
- schema: p.value,
5742
+ schema: g.value,
5732
5743
  onModelUpdated: e.onModelUpdated
5733
- }, null, 8, ["model", "options", "schema", "onModelUpdated"])) : j("", !0),
5734
- i.value === "shm" ? (d(), O(ee, {
5744
+ }, null, 8, ["model", "options", "schema", "onModelUpdated"])) : R("", !0),
5745
+ i.value === "shm" ? (d(), O(te, {
5735
5746
  key: 2,
5736
5747
  model: e.formModel,
5737
5748
  options: e.formOptions,
5738
- schema: F.value,
5749
+ schema: k.value,
5739
5750
  onModelUpdated: e.onModelUpdated
5740
- }, null, 8, ["model", "options", "schema", "onModelUpdated"])) : j("", !0),
5741
- i.value === "vault" ? (d(), O(ee, {
5751
+ }, null, 8, ["model", "options", "schema", "onModelUpdated"])) : R("", !0),
5752
+ i.value === "vault" ? (d(), O(te, {
5742
5753
  key: 3,
5743
5754
  model: e.formModel,
5744
5755
  options: e.formOptions,
5745
- schema: T.value,
5756
+ schema: N.value,
5746
5757
  onModelUpdated: e.onModelUpdated
5747
- }, null, 8, ["model", "options", "schema", "onModelUpdated"])) : j("", !0)
5758
+ }, null, 8, ["model", "options", "schema", "onModelUpdated"])) : R("", !0)
5748
5759
  ])
5749
5760
  ])
5750
5761
  ]),
5751
- advanced: w(() => [
5752
- m("div", gm, [
5753
- v[5] || (v[5] = m("div", { class: "header-wrapper" }, [
5754
- m("span", { class: "section-header" }, "Advanced Configuration Settings")
5762
+ advanced: M(() => [
5763
+ c("div", bm, [
5764
+ y[5] || (y[5] = c("div", { class: "header-wrapper" }, [
5765
+ c("span", { class: "section-header" }, "Advanced Configuration Settings")
5755
5766
  ], -1)),
5756
- v[6] || (v[6] = m("div", { class: "description" }, " Advanced parameters for manually configuring the ACME plugin. ", -1)),
5757
- y.value ? (d(), O(ee, {
5767
+ y[6] || (y[6] = c("div", { class: "description" }, " Advanced parameters for manually configuring the ACME plugin. ", -1)),
5768
+ p.value ? (d(), O(te, {
5758
5769
  key: 0,
5759
5770
  model: e.formModel,
5760
5771
  options: e.formOptions,
5761
- schema: c.value,
5772
+ schema: m.value,
5762
5773
  onModelUpdated: e.onModelUpdated
5763
- }, null, 8, ["model", "options", "schema", "onModelUpdated"])) : j("", !0)
5774
+ }, null, 8, ["model", "options", "schema", "onModelUpdated"])) : R("", !0)
5764
5775
  ])
5765
5776
  ]),
5766
5777
  _: 1
@@ -5768,13 +5779,13 @@ const am = /* @__PURE__ */ z(Wc, [["render", im], ["__scopeId", "data-v-44df963d
5768
5779
  ]);
5769
5780
  };
5770
5781
  }
5771
- }), ym = /* @__PURE__ */ z(vm, [["__scopeId", "data-v-07cecf5b"]]), bm = { class: "rla-form-basic-fields" }, _m = { class: "rla-form-request-limits-subtitle" }, wm = { class: "rla-form-request-limits-content" }, Mm = { class: "rla-form-window-type" }, Sm = ["innerHTML"], Tm = { class: "rla-form-window-type-radios" }, Im = { class: "rla-form-request-limits-items" }, Cm = { class: "rla-form-request-limits-row" }, Am = ["id"], Om = { class: "rla-form-request-limits-actions" }, Em = {
5782
+ }), wm = /* @__PURE__ */ z(_m, [["__scopeId", "data-v-07cecf5b"]]), Mm = { class: "rla-form-basic-fields" }, Sm = { class: "rla-form-request-limits-subtitle" }, Tm = { class: "rla-form-request-limits-content" }, Im = { class: "rla-form-window-type" }, Cm = ["innerHTML"], Am = { class: "rla-form-window-type-radios" }, Om = { class: "rla-form-request-limits-items" }, Em = { class: "rla-form-request-limits-row" }, Fm = ["id"], km = { class: "rla-form-request-limits-actions" }, Um = {
5772
5783
  key: 0,
5773
5784
  class: "rla-form-request-limits-examples"
5774
- }, Fm = { class: "rla-form-request-limits-examples-badges" }, km = ["innerHTML"], Um = {
5785
+ }, $m = { class: "rla-form-request-limits-examples-badges" }, Vm = ["innerHTML"], Pm = {
5775
5786
  id: "rla-form-error-legend",
5776
5787
  class: "rla-form-error-inputs"
5777
- }, $m = /* @__PURE__ */ re({
5788
+ }, Rm = /* @__PURE__ */ re({
5778
5789
  __name: "RLAForm",
5779
5790
  props: {
5780
5791
  formSchema: {},
@@ -5848,223 +5859,223 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
5848
5859
  }, n = /* @__PURE__ */ new Set([
5849
5860
  "selectionGroup",
5850
5861
  "enabled",
5851
- ...["identifier", "limit", "window_size", "error_code", "error_message"].map((_) => `config-${_}`)
5852
- ]), i = (_) => _ === void 0 ? !1 : n.has(_), { t: a } = ve("en-us", be), r = e, o = L(() => {
5853
- var P, N, D;
5854
- const _ = (N = (P = r.formSchema) == null ? void 0 : P.fields) == null ? void 0 : N.find((le) => le.type === "selectionGroup" && le.model === "selectionGroup");
5855
- return { fields: [(D = r.formSchema) == null ? void 0 : D.fields.find((le) => le.model === "enabled"), _].filter(Boolean) };
5856
- }), s = L(() => {
5862
+ ...["identifier", "limit", "window_size", "error_code", "error_message"].map((w) => `config-${w}`)
5863
+ ]), i = (w) => w === void 0 ? !1 : n.has(w), { t: a } = ve("en-us", be), r = e, s = L(() => {
5864
+ var V, j, D;
5865
+ const w = (j = (V = r.formSchema) == null ? void 0 : V.fields) == null ? void 0 : j.find((le) => le.type === "selectionGroup" && le.model === "selectionGroup");
5866
+ return { fields: [(D = r.formSchema) == null ? void 0 : D.fields.find((le) => le.model === "enabled"), w].filter(Boolean) };
5867
+ }), o = L(() => {
5857
5868
  var le, Ve;
5858
- const _ = ((Ve = (le = r.formSchema) == null ? void 0 : le.fields) == null ? void 0 : Ve.filter((se) => !i(se.model))) ?? [], I = [], P = [], N = [];
5869
+ const w = ((Ve = (le = r.formSchema) == null ? void 0 : le.fields) == null ? void 0 : Ve.filter((se) => !i(se.model))) ?? [], I = [], V = [], j = [];
5859
5870
  let D = !1;
5860
- for (const se of _) {
5871
+ for (const se of w) {
5861
5872
  const De = se.model;
5862
5873
  if (De !== void 0) {
5863
5874
  if (De.startsWith("config-redis-")) {
5864
- (se.model === "config-redis-cluster_addresses" || se.model === "config-redis-sentinel_addresses") && (se.inputAttributes.help = a("rla.redis.address_example")), P.push(se);
5875
+ (se.model === "config-redis-cluster_addresses" || se.model === "config-redis-sentinel_addresses") && (se.inputAttributes.help = a("rla.redis.address_example")), V.push(se);
5865
5876
  continue;
5866
5877
  }
5867
- D ? N.push(se) : I.push(se), se.model === "config-strategy" && (D = !0);
5878
+ D ? j.push(se) : I.push(se), se.model === "config-strategy" && (D = !0);
5868
5879
  }
5869
5880
  }
5870
5881
  return {
5871
5882
  endsWithStrategy: { fields: I },
5872
- redis: r.enableRedisPartial ? { fields: [{ fields: P, id: "_redis", model: "__redis_partial", redisType: r.formSchema._supported_redis_partial_type }] } : { fields: P },
5873
- afterStrategy: { fields: N }
5883
+ redis: r.enableRedisPartial ? { fields: [{ fields: V, id: "_redis", model: "__redis_partial", redisType: r.formSchema._supported_redis_partial_type }] } : { fields: V },
5884
+ afterStrategy: { fields: j }
5874
5885
  };
5875
5886
  }), l = L(() => {
5876
- const _ = r.formModel["config-window_type"];
5877
- return Object.prototype.hasOwnProperty.call(t, _) ? t[_] : [];
5887
+ const w = r.formModel["config-window_type"];
5888
+ return Object.prototype.hasOwnProperty.call(t, w) ? t[w] : [];
5878
5889
  }), u = L(() => {
5879
- var _, I;
5880
- return (I = (_ = r.formSchema) == null ? void 0 : _.fields) == null ? void 0 : I.find((P) => P.model === "config-identifier");
5890
+ var w, I;
5891
+ return (I = (w = r.formSchema) == null ? void 0 : w.fields) == null ? void 0 : I.find((V) => V.model === "config-identifier");
5881
5892
  }), h = L(
5882
5893
  () => {
5883
- var _, I, P;
5884
- return (((P = (I = (_ = r.formSchema) == null ? void 0 : _.fields) == null ? void 0 : I.find((N) => N.model === "config-identifier")) == null ? void 0 : P.values) ?? []).map((N) => ({
5885
- label: a(`rla.identifiers.options.${N}`),
5886
- value: N
5894
+ var w, I, V;
5895
+ return (((V = (I = (w = r.formSchema) == null ? void 0 : w.fields) == null ? void 0 : I.find((j) => j.model === "config-identifier")) == null ? void 0 : V.values) ?? []).map((j) => ({
5896
+ label: a(`rla.identifiers.options.${j}`),
5897
+ value: j
5887
5898
  }));
5888
5899
  }
5889
- ), f = ie(), p = ie(!0), F = L(
5900
+ ), f = Q(), g = Q(!0), k = L(
5890
5901
  () => {
5891
- var _, I, P;
5892
- return r.formModel["config-window_type"] ?? ((P = (I = (_ = r.formSchema) == null ? void 0 : _.fields) == null ? void 0 : I.find((N) => N.model === "config-window_type")) == null ? void 0 : P.default);
5902
+ var w, I, V;
5903
+ return r.formModel["config-window_type"] ?? ((V = (I = (w = r.formSchema) == null ? void 0 : w.fields) == null ? void 0 : I.find((j) => j.model === "config-window_type")) == null ? void 0 : V.default);
5893
5904
  }
5894
- ), T = L(() => {
5895
- var I, P, N, D, le, Ve;
5896
- const _ = (N = (P = (I = r.formSchema) == null ? void 0 : I.fields) == null ? void 0 : P.find((se) => se.model === "config-window_type")) == null ? void 0 : N.default;
5897
- return (((Ve = (le = (D = r.formSchema) == null ? void 0 : D.fields) == null ? void 0 : le.find((se) => se.model === "config-window_type")) == null ? void 0 : Ve.values) ?? []).sort((se, De) => se === _ ? -1 : De === _ ? 1 : 0);
5898
- }), c = L(() => {
5905
+ ), N = L(() => {
5906
+ var I, V, j, D, le, Ve;
5907
+ const w = (j = (V = (I = r.formSchema) == null ? void 0 : I.fields) == null ? void 0 : V.find((se) => se.model === "config-window_type")) == null ? void 0 : j.default;
5908
+ return (((Ve = (le = (D = r.formSchema) == null ? void 0 : D.fields) == null ? void 0 : le.find((se) => se.model === "config-window_type")) == null ? void 0 : Ve.values) ?? []).sort((se, De) => se === w ? -1 : De === w ? 1 : 0);
5909
+ }), m = L(() => {
5899
5910
  var I;
5900
- const _ = (I = r.formModel["config-limit"]) == null ? void 0 : I.map((P, N) => {
5911
+ const w = (I = r.formModel["config-limit"]) == null ? void 0 : I.map((V, j) => {
5901
5912
  var D, le;
5902
5913
  return {
5903
- limit: P,
5904
- windowSize: (le = (D = r.formModel) == null ? void 0 : D["config-window_size"]) == null ? void 0 : le[N]
5914
+ limit: V,
5915
+ windowSize: (le = (D = r.formModel) == null ? void 0 : D["config-window_size"]) == null ? void 0 : le[j]
5905
5916
  };
5906
5917
  });
5907
- return !Array.isArray(_) || _.length === 0 ? [{ limit: void 0, windowSize: void 0 }] : _;
5908
- }), y = L(
5918
+ return !Array.isArray(w) || w.length === 0 ? [{ limit: void 0, windowSize: void 0 }] : w;
5919
+ }), p = L(
5909
5920
  () => {
5910
- var _, I, P, N;
5911
- return ((_ = r.formModel) == null ? void 0 : _["config-identifier"]) ?? ((N = (P = (I = r.formSchema) == null ? void 0 : I.fields) == null ? void 0 : P.find((D) => D.model === "config-identifier")) == null ? void 0 : N.default);
5921
+ var w, I, V, j;
5922
+ return ((w = r.formModel) == null ? void 0 : w["config-identifier"]) ?? ((j = (V = (I = r.formSchema) == null ? void 0 : I.fields) == null ? void 0 : V.find((D) => D.model === "config-identifier")) == null ? void 0 : j.default);
5912
5923
  }
5913
- ), A = L(
5924
+ ), b = L(
5914
5925
  () => {
5915
- var _, I, P, N;
5916
- return ((_ = r.formModel) == null ? void 0 : _["config-error_code"]) ?? ((N = (P = (I = r.formSchema) == null ? void 0 : I.fields) == null ? void 0 : P.find((D) => D.model === "config-error_code")) == null ? void 0 : N.default);
5926
+ var w, I, V, j;
5927
+ return ((w = r.formModel) == null ? void 0 : w["config-error_code"]) ?? ((j = (V = (I = r.formSchema) == null ? void 0 : I.fields) == null ? void 0 : V.find((D) => D.model === "config-error_code")) == null ? void 0 : j.default);
5917
5928
  }
5918
- ), V = L(
5929
+ ), A = L(
5919
5930
  () => {
5920
- var _, I, P, N;
5921
- return ((_ = r.formModel) == null ? void 0 : _["config-error_message"]) ?? ((N = (P = (I = r.formSchema) == null ? void 0 : I.fields) == null ? void 0 : P.find((D) => D.model === "config-error_message")) == null ? void 0 : N.default);
5931
+ var w, I, V, j;
5932
+ return ((w = r.formModel) == null ? void 0 : w["config-error_message"]) ?? ((j = (V = (I = r.formSchema) == null ? void 0 : I.fields) == null ? void 0 : V.find((D) => D.model === "config-error_message")) == null ? void 0 : j.default);
5922
5933
  }
5923
- ), b = (_, I) => {
5934
+ ), _ = (w, I) => {
5924
5935
  if (I === f.value) {
5925
5936
  r.onModelUpdated([], "config-limit"), r.onModelUpdated([], "config-window_size"), Ht(() => {
5926
5937
  f.value = void 0;
5927
5938
  });
5928
5939
  return;
5929
5940
  }
5930
- r.onModelUpdated([_.config.limit], "config-limit"), r.onModelUpdated([_.config.window_size], "config-window_size"), Ht(() => {
5941
+ r.onModelUpdated([w.config.limit], "config-limit"), r.onModelUpdated([w.config.window_size], "config-window_size"), Ht(() => {
5931
5942
  f.value = I;
5932
5943
  });
5933
- }, E = (_) => {
5934
- f.value !== void 0 && (f.value = void 0), _ !== null && r.onModelUpdated(_.toString(), "config-window_type");
5935
- }, $ = (_, I) => {
5936
- var N;
5944
+ }, E = (w) => {
5945
+ f.value !== void 0 && (f.value = void 0), w !== null && r.onModelUpdated(w.toString(), "config-window_type");
5946
+ }, $ = (w, I) => {
5947
+ var j;
5937
5948
  f.value !== void 0 && (f.value = void 0);
5938
- const P = Te(((N = r.formModel) == null ? void 0 : N["config-limit"]) ?? []);
5939
- P[_] = I, r.onModelUpdated(P, "config-limit");
5940
- }, S = (_, I) => {
5941
- var N;
5949
+ const V = Te(((j = r.formModel) == null ? void 0 : j["config-limit"]) ?? []);
5950
+ V[w] = I, r.onModelUpdated(V, "config-limit");
5951
+ }, S = (w, I) => {
5952
+ var j;
5942
5953
  f.value !== void 0 && (f.value = void 0);
5943
- const P = Te(((N = r.formModel) == null ? void 0 : N["config-window_size"]) ?? []);
5944
- P[_] = I, r.onModelUpdated(P, "config-window_size");
5945
- }, v = (_) => {
5946
- var N, D;
5954
+ const V = Te(((j = r.formModel) == null ? void 0 : j["config-window_size"]) ?? []);
5955
+ V[w] = I, r.onModelUpdated(V, "config-window_size");
5956
+ }, y = (w) => {
5957
+ var j, D;
5947
5958
  f.value !== void 0 && (f.value = void 0);
5948
- const I = Te(((N = r.formModel) == null ? void 0 : N["config-limit"]) ?? []), P = Te(((D = r.formModel) == null ? void 0 : D["config-window_size"]) ?? []);
5949
- I.length === 0 && I.push(void 0), P.length === 0 && P.push(void 0), I.splice(_ + 1, 0, void 0), P.splice(_ + 1, 0, void 0), r.onModelUpdated(I, "config-limit"), r.onModelUpdated(P, "config-window_size");
5950
- }, R = (_) => {
5951
- var I, P;
5952
- if (c.value.length > 1) {
5959
+ const I = Te(((j = r.formModel) == null ? void 0 : j["config-limit"]) ?? []), V = Te(((D = r.formModel) == null ? void 0 : D["config-window_size"]) ?? []);
5960
+ I.length === 0 && I.push(void 0), V.length === 0 && V.push(void 0), I.splice(w + 1, 0, void 0), V.splice(w + 1, 0, void 0), r.onModelUpdated(I, "config-limit"), r.onModelUpdated(V, "config-window_size");
5961
+ }, P = (w) => {
5962
+ var I, V;
5963
+ if (m.value.length > 1) {
5953
5964
  f.value !== void 0 && (f.value = void 0);
5954
- const N = Te(((I = r.formModel) == null ? void 0 : I["config-limit"]) ?? []), D = Te(((P = r.formModel) == null ? void 0 : P["config-window_size"]) ?? []);
5955
- N.length === 0 && N.push(void 0), D.length === 0 && D.push(void 0), N.splice(_, 1), D.splice(_, 1), r.onModelUpdated(N, "config-limit"), r.onModelUpdated(D, "config-window_size");
5965
+ const j = Te(((I = r.formModel) == null ? void 0 : I["config-limit"]) ?? []), D = Te(((V = r.formModel) == null ? void 0 : V["config-window_size"]) ?? []);
5966
+ j.length === 0 && j.push(void 0), D.length === 0 && D.push(void 0), j.splice(w, 1), D.splice(w, 1), r.onModelUpdated(j, "config-limit"), r.onModelUpdated(D, "config-window_size");
5956
5967
  }
5957
5968
  };
5958
- return Rt(() => r.formModel["config-strategy"], (_) => {
5959
- _ !== "redis" && r.formModel.partials && r.onModelUpdated(void 0, "partials");
5960
- }), (_, I) => {
5961
- const P = k("KLabel"), N = k("KRadio"), D = k("KInput"), le = k("KButton"), Ve = k("KBadge"), se = k("KTooltip"), De = k("KCard"), Fi = k("KSelect"), ki = k("KCollapse");
5962
- return d(), g(K, null, [
5963
- m("div", bm, [
5964
- C(ee, {
5965
- model: _.formModel,
5966
- options: _.formOptions,
5967
- schema: o.value,
5968
- onModelUpdated: I[0] || (I[0] = (q, ae) => _.onModelUpdated(q, ae))
5969
+ return Rt(() => r.formModel["config-strategy"], (w) => {
5970
+ w !== "redis" && r.formModel.partials && r.onModelUpdated(void 0, "partials");
5971
+ }), (w, I) => {
5972
+ const V = U("KLabel"), j = U("KRadio"), D = U("KInput"), le = U("KButton"), Ve = U("KBadge"), se = U("KTooltip"), De = U("KCard"), Fi = U("KSelect"), ki = U("KCollapse");
5973
+ return d(), v(K, null, [
5974
+ c("div", Mm, [
5975
+ C(te, {
5976
+ model: w.formModel,
5977
+ options: w.formOptions,
5978
+ schema: s.value,
5979
+ onModelUpdated: I[0] || (I[0] = (q, ae) => w.onModelUpdated(q, ae))
5969
5980
  }, null, 8, ["model", "options", "schema"]),
5970
5981
  C(De, { class: "rla-form-request-limits" }, {
5971
- title: w(() => [
5972
- C(P, {
5982
+ title: M(() => [
5983
+ C(V, {
5973
5984
  class: "rla-form-request-limits-title",
5974
5985
  for: "rla-form-request-limits-legend",
5975
5986
  required: ""
5976
5987
  }, {
5977
- default: w(() => [
5978
- te(U(M(a)("rla.request_limits.title")), 1)
5988
+ default: M(() => [
5989
+ ne(F(T(a)("rla.request_limits.title")), 1)
5979
5990
  ]),
5980
5991
  _: 1
5981
5992
  }),
5982
- m("div", _m, U(M(a)("rla.request_limits.subtitle")), 1)
5993
+ c("div", Sm, F(T(a)("rla.request_limits.subtitle")), 1)
5983
5994
  ]),
5984
- default: w(() => [
5985
- m("div", wm, [
5986
- m("div", Mm, [
5987
- C(P, {
5995
+ default: M(() => [
5996
+ c("div", Tm, [
5997
+ c("div", Im, [
5998
+ C(V, {
5988
5999
  class: "rla-form-window-type-label",
5989
6000
  "tooltip-attributes": {
5990
6001
  maxWidth: "300",
5991
6002
  placement: "top"
5992
6003
  }
5993
6004
  }, {
5994
- tooltip: w(() => [
5995
- m("div", {
5996
- innerHTML: M(a)("rla.window_type.help")
5997
- }, null, 8, Sm)
6005
+ tooltip: M(() => [
6006
+ c("div", {
6007
+ innerHTML: T(a)("rla.window_type.help")
6008
+ }, null, 8, Cm)
5998
6009
  ]),
5999
- default: w(() => [
6000
- te(U(M(a)("rla.window_type.label")) + " ", 1)
6010
+ default: M(() => [
6011
+ ne(F(T(a)("rla.window_type.label")) + " ", 1)
6001
6012
  ]),
6002
6013
  _: 1
6003
6014
  }),
6004
- m("div", Tm, [
6005
- (d(!0), g(K, null, J(T.value, (q) => (d(), O(N, {
6015
+ c("div", Am, [
6016
+ (d(!0), v(K, null, J(N.value, (q) => (d(), O(j, {
6006
6017
  key: `window-type-${q}`,
6007
- "model-value": F.value,
6018
+ "model-value": k.value,
6008
6019
  name: q,
6009
6020
  "selected-value": q,
6010
6021
  "onUpdate:modelValue": E
6011
6022
  }, {
6012
- default: w(() => [
6013
- te(U(M(a)(`rla.window_type.options.${q}`)), 1)
6023
+ default: M(() => [
6024
+ ne(F(T(a)(`rla.window_type.options.${q}`)), 1)
6014
6025
  ]),
6015
6026
  _: 2
6016
6027
  }, 1032, ["model-value", "name", "selected-value"]))), 128))
6017
6028
  ])
6018
6029
  ]),
6019
- m("div", Im, [
6020
- (d(!0), g(K, null, J(c.value, (q, ae) => (d(), g("div", {
6030
+ c("div", Om, [
6031
+ (d(!0), v(K, null, J(m.value, (q, ae) => (d(), v("div", {
6021
6032
  key: ae.toString()
6022
6033
  }, [
6023
- C(P, {
6034
+ C(V, {
6024
6035
  for: `rla-form-request-limits-item-${ae}-legend`
6025
6036
  }, {
6026
- default: w(() => [
6027
- te(U(M(a)("rla.request_limits.label_index", { index: ae + 1 })), 1)
6037
+ default: M(() => [
6038
+ ne(F(T(a)("rla.request_limits.label_index", { index: ae + 1 })), 1)
6028
6039
  ]),
6029
6040
  _: 2
6030
6041
  }, 1032, ["for"]),
6031
- m("div", Cm, [
6032
- m("legend", {
6042
+ c("div", Em, [
6043
+ c("legend", {
6033
6044
  id: `rla-form-request-limits-item-${ae}-legend`,
6034
6045
  class: "rla-form-request-limits-inputs"
6035
6046
  }, [
6036
6047
  C(D, {
6037
6048
  "model-value": q.limit && q.limit.toString(),
6038
- placeholder: M(a)("rla.request_limits.request_number"),
6049
+ placeholder: T(a)("rla.request_limits.request_number"),
6039
6050
  type: "number",
6040
6051
  "onUpdate:modelValue": (Mt) => $(ae, Number.parseInt(Mt))
6041
6052
  }, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"]),
6042
- m("div", null, U(M(a)("rla.request_limits.interval_determiner")), 1),
6053
+ c("div", null, F(T(a)("rla.request_limits.interval_determiner")), 1),
6043
6054
  C(D, {
6044
6055
  "model-value": q.windowSize && q.windowSize.toString(),
6045
- placeholder: M(a)("rla.request_limits.time_interval"),
6056
+ placeholder: T(a)("rla.request_limits.time_interval"),
6046
6057
  type: "number",
6047
6058
  "onUpdate:modelValue": (Mt) => S(ae, Number.parseInt(Mt))
6048
6059
  }, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"]),
6049
- m("div", null, U(M(a)("rla.request_limits.seconds")), 1)
6050
- ], 8, Am),
6051
- m("div", Om, [
6060
+ c("div", null, F(T(a)("rla.request_limits.seconds")), 1)
6061
+ ], 8, Fm),
6062
+ c("div", km, [
6052
6063
  C(le, {
6053
6064
  appearance: "tertiary",
6054
- disabled: c.value.length <= 1,
6055
- onClick: () => R(ae)
6065
+ disabled: m.value.length <= 1,
6066
+ onClick: () => P(ae)
6056
6067
  }, {
6057
- default: w(() => [
6058
- C(M(Di))
6068
+ default: M(() => [
6069
+ C(T(Di))
6059
6070
  ]),
6060
6071
  _: 2
6061
6072
  }, 1032, ["disabled", "onClick"]),
6062
6073
  C(le, {
6063
6074
  appearance: "tertiary",
6064
- onClick: () => v(ae)
6075
+ onClick: () => y(ae)
6065
6076
  }, {
6066
- default: w(() => [
6067
- C(M(jt))
6077
+ default: M(() => [
6078
+ C(T(jt))
6068
6079
  ]),
6069
6080
  _: 2
6070
6081
  }, 1032, ["onClick"])
@@ -6072,27 +6083,27 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
6072
6083
  ])
6073
6084
  ]))), 128))
6074
6085
  ]),
6075
- l.value.length > 0 ? (d(), g("div", Em, [
6076
- m("div", null, U(M(a)("rla.start_with_a_use_case")), 1),
6077
- m("div", Fm, [
6078
- (d(!0), g(K, null, J(l.value, (q, ae) => (d(), O(se, {
6086
+ l.value.length > 0 ? (d(), v("div", Um, [
6087
+ c("div", null, F(T(a)("rla.start_with_a_use_case")), 1),
6088
+ c("div", $m, [
6089
+ (d(!0), v(K, null, J(l.value, (q, ae) => (d(), O(se, {
6079
6090
  key: `use-case-${ae}`,
6080
6091
  "max-width": "300"
6081
6092
  }, {
6082
- content: w(() => [
6083
- m("div", null, U(q.description), 1),
6084
- I[10] || (I[10] = m("br", null, null, -1)),
6085
- m("div", null, U(M(a)("rla.request_limits.label")) + ": " + U(q.config.limit), 1),
6086
- m("div", null, U(M(a)("rla.request_limits.time_interval")) + ": " + U(q.config.window_size), 1)
6093
+ content: M(() => [
6094
+ c("div", null, F(q.description), 1),
6095
+ I[10] || (I[10] = c("br", null, null, -1)),
6096
+ c("div", null, F(T(a)("rla.request_limits.label")) + ": " + F(q.config.limit), 1),
6097
+ c("div", null, F(T(a)("rla.request_limits.time_interval")) + ": " + F(q.config.window_size), 1)
6087
6098
  ]),
6088
- default: w(() => [
6099
+ default: M(() => [
6089
6100
  C(Ve, {
6090
- appearance: f.value === `${F.value}-${ae}` ? "info" : "decorative",
6101
+ appearance: f.value === `${k.value}-${ae}` ? "info" : "decorative",
6091
6102
  class: "rla-form-request-limits-examples-badge",
6092
- onClick: () => b(q, `${F.value}-${ae}`)
6103
+ onClick: () => _(q, `${k.value}-${ae}`)
6093
6104
  }, {
6094
- default: w(() => [
6095
- te(U(q.label), 1)
6105
+ default: M(() => [
6106
+ ne(F(q.label), 1)
6096
6107
  ]),
6097
6108
  _: 2
6098
6109
  }, 1032, ["appearance", "onClick"])
@@ -6100,17 +6111,17 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
6100
6111
  _: 2
6101
6112
  }, 1024))), 128))
6102
6113
  ])
6103
- ])) : j("", !0)
6114
+ ])) : R("", !0)
6104
6115
  ])
6105
6116
  ]),
6106
6117
  _: 1
6107
6118
  }),
6108
6119
  C(Fi, {
6109
- modelValue: y.value,
6110
- "onUpdate:modelValue": I[1] || (I[1] = (q) => y.value = q),
6120
+ modelValue: p.value,
6121
+ "onUpdate:modelValue": I[1] || (I[1] = (q) => p.value = q),
6111
6122
  class: "rla-form-identifiers",
6112
6123
  items: h.value,
6113
- label: M(a)("rla.identifiers.label"),
6124
+ label: T(a)("rla.identifiers.label"),
6114
6125
  "label-attributes": {
6115
6126
  tooltipAttributes: {
6116
6127
  maxWidth: "300",
@@ -6120,82 +6131,82 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
6120
6131
  required: "",
6121
6132
  onSelected: I[2] || (I[2] = (q) => r.onModelUpdated(q.value, "config-identifier"))
6122
6133
  }, {
6123
- "label-tooltip": w(() => [
6124
- m("div", {
6134
+ "label-tooltip": M(() => [
6135
+ c("div", {
6125
6136
  innerHTML: u.value && u.value.help
6126
- }, null, 8, km)
6137
+ }, null, 8, Vm)
6127
6138
  ]),
6128
6139
  _: 1
6129
6140
  }, 8, ["modelValue", "items", "label"]),
6130
- m("div", null, [
6131
- C(P, {
6141
+ c("div", null, [
6142
+ C(V, {
6132
6143
  for: "rla-form-error-legend",
6133
- info: M(a)("rla.error_message.help"),
6144
+ info: T(a)("rla.error_message.help"),
6134
6145
  required: "",
6135
6146
  "tooltip-attributes": {
6136
6147
  maxWidth: "300",
6137
6148
  placement: "top"
6138
6149
  }
6139
6150
  }, {
6140
- default: w(() => [
6141
- te(U(M(a)("rla.error_message.label")), 1)
6151
+ default: M(() => [
6152
+ ne(F(T(a)("rla.error_message.label")), 1)
6142
6153
  ]),
6143
6154
  _: 1
6144
6155
  }, 8, ["info"]),
6145
- m("legend", Um, [
6156
+ c("legend", Pm, [
6146
6157
  C(D, {
6147
6158
  class: "input-error-code",
6148
- "model-value": A.value && A.value.toString(),
6149
- placeholder: M(a)("rla.error_message.code_placeholder"),
6159
+ "model-value": b.value && b.value.toString(),
6160
+ placeholder: T(a)("rla.error_message.code_placeholder"),
6150
6161
  type: "number",
6151
- "onUpdate:modelValue": I[3] || (I[3] = (q) => _.onModelUpdated(Number.parseInt(q), "config-error_code"))
6162
+ "onUpdate:modelValue": I[3] || (I[3] = (q) => w.onModelUpdated(Number.parseInt(q), "config-error_code"))
6152
6163
  }, null, 8, ["model-value", "placeholder"]),
6153
- I[11] || (I[11] = m("div", null, ":", -1)),
6164
+ I[11] || (I[11] = c("div", null, ":", -1)),
6154
6165
  C(D, {
6155
- "model-value": V.value,
6156
- placeholder: M(a)("rla.error_message.message_placeholder"),
6157
- "onUpdate:modelValue": I[4] || (I[4] = (q) => _.onModelUpdated(q, "config-error_message"))
6166
+ "model-value": A.value,
6167
+ placeholder: T(a)("rla.error_message.message_placeholder"),
6168
+ "onUpdate:modelValue": I[4] || (I[4] = (q) => w.onModelUpdated(q, "config-error_message"))
6158
6169
  }, null, 8, ["model-value", "placeholder"])
6159
6170
  ])
6160
6171
  ])
6161
6172
  ]),
6162
6173
  C(ki, {
6163
- modelValue: p.value,
6164
- "onUpdate:modelValue": I[9] || (I[9] = (q) => p.value = q),
6165
- "trigger-label": M(a)("rla.view_advanced_fields")
6174
+ modelValue: g.value,
6175
+ "onUpdate:modelValue": I[9] || (I[9] = (q) => g.value = q),
6176
+ "trigger-label": T(a)("rla.view_advanced_fields")
6166
6177
  }, {
6167
- default: w(() => [
6168
- C(ee, {
6169
- model: _.formModel,
6170
- options: _.formOptions,
6171
- schema: s.value.endsWithStrategy,
6172
- onModelUpdated: I[5] || (I[5] = (q, ae) => _.onModelUpdated(q, ae))
6178
+ default: M(() => [
6179
+ C(te, {
6180
+ model: w.formModel,
6181
+ options: w.formOptions,
6182
+ schema: o.value.endsWithStrategy,
6183
+ onModelUpdated: I[5] || (I[5] = (q, ae) => w.onModelUpdated(q, ae))
6173
6184
  }, null, 8, ["model", "options", "schema"]),
6174
- _.formModel["config-strategy"] === "redis" ? (d(), O(ne(_.enableRedisPartial ? "div" : "KCard"), {
6185
+ w.formModel["config-strategy"] === "redis" ? (d(), O(ie(w.enableRedisPartial ? "div" : "KCard"), {
6175
6186
  key: 0,
6176
6187
  class: "rla-form-redis-card",
6177
- title: M(a)("rla.redis.title")
6188
+ title: T(a)("rla.redis.title")
6178
6189
  }, {
6179
- default: w(() => [
6180
- C(ee, {
6181
- "enable-redis-partial": _.enableRedisPartial,
6182
- "is-editing": _.isEditing,
6183
- model: _.formModel,
6184
- options: _.formOptions,
6185
- schema: s.value.redis,
6186
- onModelUpdated: I[6] || (I[6] = (q, ae) => _.onModelUpdated(q, ae)),
6187
- onPartialToggled: _.onPartialToggled,
6188
- onShowNewPartialModal: I[7] || (I[7] = () => _.showNewPartialModal(_.formSchema._supported_redis_partial_type))
6190
+ default: M(() => [
6191
+ C(te, {
6192
+ "enable-redis-partial": w.enableRedisPartial,
6193
+ "is-editing": w.isEditing,
6194
+ model: w.formModel,
6195
+ options: w.formOptions,
6196
+ schema: o.value.redis,
6197
+ onModelUpdated: I[6] || (I[6] = (q, ae) => w.onModelUpdated(q, ae)),
6198
+ onPartialToggled: w.onPartialToggled,
6199
+ onShowNewPartialModal: I[7] || (I[7] = () => w.showNewPartialModal(w.formSchema._supported_redis_partial_type))
6189
6200
  }, null, 8, ["enable-redis-partial", "is-editing", "model", "options", "schema", "onPartialToggled"])
6190
6201
  ]),
6191
6202
  _: 1
6192
- }, 8, ["title"])) : j("", !0),
6193
- C(ee, {
6194
- class: W({ "rla-last-vfg": _.formModel["config-strategy"] !== "redis" }),
6195
- model: _.formModel,
6196
- options: _.formOptions,
6197
- schema: s.value.afterStrategy,
6198
- onModelUpdated: I[8] || (I[8] = (q, ae) => _.onModelUpdated(q, ae))
6203
+ }, 8, ["title"])) : R("", !0),
6204
+ C(te, {
6205
+ class: W({ "rla-last-vfg": w.formModel["config-strategy"] !== "redis" }),
6206
+ model: w.formModel,
6207
+ options: w.formOptions,
6208
+ schema: o.value.afterStrategy,
6209
+ onModelUpdated: I[8] || (I[8] = (q, ae) => w.onModelUpdated(q, ae))
6199
6210
  }, null, 8, ["class", "model", "options", "schema"])
6200
6211
  ]),
6201
6212
  _: 1
@@ -6203,20 +6214,20 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
6203
6214
  ], 64);
6204
6215
  };
6205
6216
  }
6206
- }), Vm = /* @__PURE__ */ z($m, [["__scopeId", "data-v-f6dcb65c"]]), Km = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6217
+ }), jm = /* @__PURE__ */ z(Rm, [["__scopeId", "data-v-f6dcb65c"]]), zm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6207
6218
  __proto__: null,
6208
- ACMEForm: ym,
6209
- ExitTransformer: lm,
6210
- OIDCForm: am,
6211
- PostFunction: sm,
6212
- RLAForm: Vm
6213
- }, Symbol.toStringTag, { value: "Module" })), Dm = [
6219
+ ACMEForm: wm,
6220
+ ExitTransformer: cm,
6221
+ OIDCForm: om,
6222
+ PostFunction: dm,
6223
+ RLAForm: jm
6224
+ }, Symbol.toStringTag, { value: "Module" })), Ym = [
6214
6225
  "array",
6215
6226
  "metric",
6216
6227
  "advanced",
6217
6228
  "selectionGroup",
6218
6229
  "object-advanced"
6219
- ], Bm = (e) => ({
6230
+ ], Hm = (e) => ({
6220
6231
  "openid-connect": "OIDCForm",
6221
6232
  "post-function": "PostFunction",
6222
6233
  // Pre and Post function plugins are using same component
@@ -6232,11 +6243,11 @@ export {
6232
6243
  ts as FORMS_CONFIG,
6233
6244
  mt as PartialType,
6234
6245
  ns as REDIS_PARTIAL_FETCHER_KEY,
6235
- Lm as REDIS_PARTIAL_INFO,
6236
- ee as VueFormGenerator,
6237
- qm as abstractField,
6246
+ Dm as REDIS_PARTIAL_INFO,
6247
+ te as VueFormGenerator,
6248
+ Bm as abstractField,
6238
6249
  Me as composables,
6239
- Dm as customFields,
6240
- Bm as getSharedFormName,
6241
- Km as sharedForms
6250
+ Ym as customFields,
6251
+ Hm as getSharedFormName,
6252
+ zm as sharedForms
6242
6253
  };