@kong-ui-public/forms 4.13.6-pr.2213.55dc7482a.0 → 4.13.6-pr.2214.df01ad6ca.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,13 +1,13 @@
|
|
|
1
|
-
import { openBlock as u, createElementBlock as g, createElementVNode as f, toDisplayString as $, normalizeClass as W, createVNode as C, defineComponent as re, provide as it, resolveComponent as F, withCtx as
|
|
1
|
+
import { openBlock as u, createElementBlock as g, createElementVNode as f, toDisplayString as $, normalizeClass as W, createVNode as C, defineComponent as re, provide as it, resolveComponent as F, withCtx as I, renderSlot as Oe, unref as w, createTextVNode as te, createBlock as A, resolveDynamicComponent as ie, Fragment as K, renderList as J, ref as ue, computed as L, toRefs as Le, inject as ot, onMounted as Fn, onBeforeMount as Ut, mergeProps as Ie, Transition as Ai, createCommentVNode as R, resolveDirective as kn, withDirectives as de, vModelText as Ze, vModelCheckbox as Ei, vModelSelect as Fi, vModelDynamic as Un, isRef as He, toRef as ki, vModelRadio as Ui, vShow as $i, createSlots as $n, watch as $t, normalizeProps as Vi, guardReactiveProps as ji, useSlots as ft, nextTick as Dt } from "vue";
|
|
2
2
|
import { createI18n as ge } from "@kong-ui-public/i18n";
|
|
3
|
-
import { TrashIcon as at, AddIcon as
|
|
4
|
-
import { useStringHelpers as
|
|
5
|
-
function
|
|
3
|
+
import { TrashIcon as at, AddIcon as Vt, RemoveIcon as Ri } from "@kong/icons";
|
|
4
|
+
import { useStringHelpers as Pi, useErrors as Ni, useDebouncedFilter as Li, useAxios as qi } from "@kong-ui-public/entities-shared";
|
|
5
|
+
function Vn(e, t) {
|
|
6
6
|
for (var n = -1, i = e == null ? 0 : e.length; ++n < i && t(e[n], n, e) !== !1; )
|
|
7
7
|
;
|
|
8
8
|
return e;
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function Ki(e) {
|
|
11
11
|
return function(t, n, i) {
|
|
12
12
|
for (var a = -1, r = Object(t), s = i(t), o = s.length; o--; ) {
|
|
13
13
|
var l = s[++a];
|
|
@@ -17,167 +17,167 @@ function qi(e) {
|
|
|
17
17
|
return t;
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
|
-
var
|
|
20
|
+
var Di = Ki();
|
|
21
21
|
function Bi(e, t) {
|
|
22
22
|
for (var n = -1, i = Array(e); ++n < e; )
|
|
23
23
|
i[n] = t(n);
|
|
24
24
|
return i;
|
|
25
25
|
}
|
|
26
|
-
var
|
|
27
|
-
function
|
|
28
|
-
var t =
|
|
26
|
+
var jn = typeof global == "object" && global && global.Object === Object && global, zi = typeof self == "object" && self && self.Object === Object && self, pe = jn || zi || Function("return this")(), Ae = pe.Symbol, Rn = Object.prototype, Yi = Rn.hasOwnProperty, Hi = Rn.toString, We = Ae ? Ae.toStringTag : void 0;
|
|
27
|
+
function xi(e) {
|
|
28
|
+
var t = Yi.call(e, We), n = e[We];
|
|
29
29
|
try {
|
|
30
30
|
e[We] = void 0;
|
|
31
31
|
var i = !0;
|
|
32
32
|
} catch {
|
|
33
33
|
}
|
|
34
|
-
var a =
|
|
34
|
+
var a = Hi.call(e);
|
|
35
35
|
return i && (t ? e[We] = n : delete e[We]), a;
|
|
36
36
|
}
|
|
37
|
-
var
|
|
38
|
-
function
|
|
39
|
-
return
|
|
37
|
+
var Gi = Object.prototype, Wi = Gi.toString;
|
|
38
|
+
function Zi(e) {
|
|
39
|
+
return Wi.call(e);
|
|
40
40
|
}
|
|
41
|
-
var
|
|
41
|
+
var Ji = "[object Null]", Qi = "[object Undefined]", Bt = Ae ? Ae.toStringTag : void 0;
|
|
42
42
|
function Ee(e) {
|
|
43
|
-
return e == null ? e === void 0 ?
|
|
43
|
+
return e == null ? e === void 0 ? Qi : Ji : Bt && Bt in Object(e) ? xi(e) : Zi(e);
|
|
44
44
|
}
|
|
45
45
|
function Fe(e) {
|
|
46
46
|
return e != null && typeof e == "object";
|
|
47
47
|
}
|
|
48
|
-
var
|
|
49
|
-
function
|
|
50
|
-
return Fe(e) && Ee(e) ==
|
|
48
|
+
var Xi = "[object Arguments]";
|
|
49
|
+
function zt(e) {
|
|
50
|
+
return Fe(e) && Ee(e) == Xi;
|
|
51
51
|
}
|
|
52
|
-
var
|
|
52
|
+
var Pn = Object.prototype, ea = Pn.hasOwnProperty, ta = Pn.propertyIsEnumerable, na = zt(/* @__PURE__ */ function() {
|
|
53
53
|
return arguments;
|
|
54
|
-
}()) ?
|
|
55
|
-
return Fe(e) &&
|
|
54
|
+
}()) ? zt : function(e) {
|
|
55
|
+
return Fe(e) && ea.call(e, "callee") && !ta.call(e, "callee");
|
|
56
56
|
}, ke = Array.isArray;
|
|
57
|
-
function
|
|
57
|
+
function ia() {
|
|
58
58
|
return !1;
|
|
59
59
|
}
|
|
60
|
-
var
|
|
61
|
-
function
|
|
60
|
+
var Nn = typeof exports == "object" && exports && !exports.nodeType && exports, Yt = Nn && typeof module == "object" && module && !module.nodeType && module, aa = Yt && Yt.exports === Nn, Ht = aa ? pe.Buffer : void 0, ra = Ht ? Ht.isBuffer : void 0, Ln = ra || ia, oa = 9007199254740991, sa = /^(?:0|[1-9]\d*)$/;
|
|
61
|
+
function qn(e, t) {
|
|
62
62
|
var n = typeof e;
|
|
63
|
-
return t = t ??
|
|
63
|
+
return t = t ?? oa, !!t && (n == "number" || n != "symbol" && sa.test(e)) && e > -1 && e % 1 == 0 && e < t;
|
|
64
64
|
}
|
|
65
|
-
var
|
|
66
|
-
function
|
|
67
|
-
return typeof e == "number" && e > -1 && e % 1 == 0 && e <=
|
|
65
|
+
var la = 9007199254740991;
|
|
66
|
+
function Kn(e) {
|
|
67
|
+
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= la;
|
|
68
68
|
}
|
|
69
|
-
var
|
|
70
|
-
G[
|
|
71
|
-
G[
|
|
72
|
-
function
|
|
73
|
-
return Fe(e) &&
|
|
69
|
+
var da = "[object Arguments]", ua = "[object Array]", ca = "[object Boolean]", ma = "[object Date]", fa = "[object Error]", ha = "[object Function]", pa = "[object Map]", ga = "[object Number]", va = "[object Object]", ba = "[object RegExp]", ya = "[object Set]", _a = "[object String]", wa = "[object WeakMap]", Ma = "[object ArrayBuffer]", Sa = "[object DataView]", Ta = "[object Float32Array]", Ca = "[object Float64Array]", Ia = "[object Int8Array]", Oa = "[object Int16Array]", Aa = "[object Int32Array]", Ea = "[object Uint8Array]", Fa = "[object Uint8ClampedArray]", ka = "[object Uint16Array]", Ua = "[object Uint32Array]", G = {};
|
|
70
|
+
G[Ta] = G[Ca] = G[Ia] = G[Oa] = G[Aa] = G[Ea] = G[Fa] = G[ka] = G[Ua] = !0;
|
|
71
|
+
G[da] = G[ua] = G[Ma] = G[ca] = G[Sa] = G[ma] = G[fa] = G[ha] = G[pa] = G[ga] = G[va] = G[ba] = G[ya] = G[_a] = G[wa] = !1;
|
|
72
|
+
function $a(e) {
|
|
73
|
+
return Fe(e) && Kn(e.length) && !!G[Ee(e)];
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function jt(e) {
|
|
76
76
|
return function(t) {
|
|
77
77
|
return e(t);
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
|
-
var
|
|
80
|
+
var Dn = typeof exports == "object" && exports && !exports.nodeType && exports, Je = Dn && typeof module == "object" && module && !module.nodeType && module, Va = Je && Je.exports === Dn, St = Va && jn.process, Ye = function() {
|
|
81
81
|
try {
|
|
82
82
|
var e = Je && Je.require && Je.require("util").types;
|
|
83
|
-
return e ||
|
|
83
|
+
return e || St && St.binding && St.binding("util");
|
|
84
84
|
} catch {
|
|
85
85
|
}
|
|
86
|
-
}(),
|
|
86
|
+
}(), xt = Ye && Ye.isTypedArray, ja = xt ? jt(xt) : $a, Ra = Object.prototype, Pa = Ra.hasOwnProperty;
|
|
87
87
|
function Bn(e, t) {
|
|
88
|
-
var n = ke(e), i = !n &&
|
|
88
|
+
var n = ke(e), i = !n && na(e), a = !n && !i && Ln(e), r = !n && !i && !a && ja(e), s = n || i || a || r, o = s ? Bi(e.length, String) : [], l = o.length;
|
|
89
89
|
for (var d in e)
|
|
90
|
-
(t ||
|
|
90
|
+
(t || Pa.call(e, d)) && !(s && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
91
91
|
(d == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
92
92
|
a && (d == "offset" || d == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
93
93
|
r && (d == "buffer" || d == "byteLength" || d == "byteOffset") || // Skip index properties.
|
|
94
|
-
|
|
94
|
+
qn(d, l))) && o.push(d);
|
|
95
95
|
return o;
|
|
96
96
|
}
|
|
97
|
-
var
|
|
98
|
-
function
|
|
99
|
-
var t = e && e.constructor, n = typeof t == "function" && t.prototype ||
|
|
97
|
+
var Na = Object.prototype;
|
|
98
|
+
function Rt(e) {
|
|
99
|
+
var t = e && e.constructor, n = typeof t == "function" && t.prototype || Na;
|
|
100
100
|
return e === n;
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function zn(e, t) {
|
|
103
103
|
return function(n) {
|
|
104
104
|
return e(t(n));
|
|
105
105
|
};
|
|
106
106
|
}
|
|
107
|
-
var
|
|
108
|
-
function
|
|
109
|
-
if (!
|
|
110
|
-
return
|
|
107
|
+
var La = zn(Object.keys, Object), qa = Object.prototype, Ka = qa.hasOwnProperty;
|
|
108
|
+
function Da(e) {
|
|
109
|
+
if (!Rt(e))
|
|
110
|
+
return La(e);
|
|
111
111
|
var t = [];
|
|
112
112
|
for (var n in Object(e))
|
|
113
|
-
|
|
113
|
+
Ka.call(e, n) && n != "constructor" && t.push(n);
|
|
114
114
|
return t;
|
|
115
115
|
}
|
|
116
116
|
function me(e) {
|
|
117
117
|
var t = typeof e;
|
|
118
118
|
return e != null && (t == "object" || t == "function");
|
|
119
119
|
}
|
|
120
|
-
var Ba = "[object AsyncFunction]",
|
|
120
|
+
var Ba = "[object AsyncFunction]", za = "[object Function]", Ya = "[object GeneratorFunction]", Ha = "[object Proxy]";
|
|
121
121
|
function z(e) {
|
|
122
122
|
if (!me(e))
|
|
123
123
|
return !1;
|
|
124
124
|
var t = Ee(e);
|
|
125
|
-
return t ==
|
|
126
|
-
}
|
|
127
|
-
function ft(e) {
|
|
128
|
-
return e != null && qn(e.length) && !z(e);
|
|
125
|
+
return t == za || t == Ya || t == Ba || t == Ha;
|
|
129
126
|
}
|
|
130
127
|
function ht(e) {
|
|
131
|
-
return
|
|
128
|
+
return e != null && Kn(e.length) && !z(e);
|
|
132
129
|
}
|
|
133
|
-
function
|
|
134
|
-
return e
|
|
130
|
+
function pt(e) {
|
|
131
|
+
return ht(e) ? Bn(e) : Da(e);
|
|
135
132
|
}
|
|
136
133
|
function xa(e, t) {
|
|
134
|
+
return e && Di(e, t, pt);
|
|
135
|
+
}
|
|
136
|
+
function Ga(e, t) {
|
|
137
137
|
return function(n, i) {
|
|
138
138
|
if (n == null)
|
|
139
139
|
return n;
|
|
140
|
-
if (!
|
|
140
|
+
if (!ht(n))
|
|
141
141
|
return e(n, i);
|
|
142
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
|
};
|
|
146
146
|
}
|
|
147
|
-
var
|
|
148
|
-
function
|
|
147
|
+
var Wa = Ga(xa);
|
|
148
|
+
function Pt(e) {
|
|
149
149
|
return e;
|
|
150
150
|
}
|
|
151
|
-
function
|
|
152
|
-
return typeof e == "function" ? e :
|
|
151
|
+
function Za(e) {
|
|
152
|
+
return typeof e == "function" ? e : Pt;
|
|
153
153
|
}
|
|
154
154
|
function le(e, t) {
|
|
155
|
-
var n = ke(e) ?
|
|
156
|
-
return n(e,
|
|
155
|
+
var n = ke(e) ? Vn : Wa;
|
|
156
|
+
return n(e, Za(t));
|
|
157
157
|
}
|
|
158
|
-
var
|
|
159
|
-
function
|
|
160
|
-
return typeof e == "symbol" || Fe(e) && Ee(e) ==
|
|
158
|
+
var Ja = "[object Symbol]";
|
|
159
|
+
function gt(e) {
|
|
160
|
+
return typeof e == "symbol" || Fe(e) && Ee(e) == Ja;
|
|
161
161
|
}
|
|
162
|
-
var
|
|
163
|
-
function
|
|
162
|
+
var Qa = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Xa = /^\w*$/;
|
|
163
|
+
function er(e, t) {
|
|
164
164
|
if (ke(e))
|
|
165
165
|
return !1;
|
|
166
166
|
var n = typeof e;
|
|
167
|
-
return n == "number" || n == "symbol" || n == "boolean" || e == null ||
|
|
167
|
+
return n == "number" || n == "symbol" || n == "boolean" || e == null || gt(e) ? !0 : Xa.test(e) || !Qa.test(e) || t != null && e in Object(t);
|
|
168
168
|
}
|
|
169
|
-
var
|
|
170
|
-
var e = /[^.]+$/.exec(
|
|
169
|
+
var Tt = pe["__core-js_shared__"], Gt = function() {
|
|
170
|
+
var e = /[^.]+$/.exec(Tt && Tt.keys && Tt.keys.IE_PROTO || "");
|
|
171
171
|
return e ? "Symbol(src)_1." + e : "";
|
|
172
172
|
}();
|
|
173
|
-
function
|
|
174
|
-
return !!
|
|
173
|
+
function tr(e) {
|
|
174
|
+
return !!Gt && Gt in e;
|
|
175
175
|
}
|
|
176
|
-
var
|
|
176
|
+
var nr = Function.prototype, ir = nr.toString;
|
|
177
177
|
function qe(e) {
|
|
178
178
|
if (e != null) {
|
|
179
179
|
try {
|
|
180
|
-
return
|
|
180
|
+
return ir.call(e);
|
|
181
181
|
} catch {
|
|
182
182
|
}
|
|
183
183
|
try {
|
|
@@ -187,48 +187,48 @@ function qe(e) {
|
|
|
187
187
|
}
|
|
188
188
|
return "";
|
|
189
189
|
}
|
|
190
|
-
var
|
|
191
|
-
"^" +
|
|
190
|
+
var ar = /[\\^$.*+?()[\]{}|]/g, rr = /^\[object .+?Constructor\]$/, or = Function.prototype, sr = Object.prototype, lr = or.toString, dr = sr.hasOwnProperty, ur = RegExp(
|
|
191
|
+
"^" + lr.call(dr).replace(ar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
192
192
|
);
|
|
193
|
-
function
|
|
194
|
-
if (!me(e) ||
|
|
193
|
+
function cr(e) {
|
|
194
|
+
if (!me(e) || tr(e))
|
|
195
195
|
return !1;
|
|
196
|
-
var t = z(e) ?
|
|
196
|
+
var t = z(e) ? ur : rr;
|
|
197
197
|
return t.test(qe(e));
|
|
198
198
|
}
|
|
199
|
-
function
|
|
199
|
+
function mr(e, t) {
|
|
200
200
|
return e == null ? void 0 : e[t];
|
|
201
201
|
}
|
|
202
202
|
function Ke(e, t) {
|
|
203
|
-
var n =
|
|
204
|
-
return
|
|
203
|
+
var n = mr(e, t);
|
|
204
|
+
return cr(n) ? n : void 0;
|
|
205
205
|
}
|
|
206
206
|
var et = Ke(Object, "create");
|
|
207
|
-
function
|
|
207
|
+
function fr() {
|
|
208
208
|
this.__data__ = et ? et(null) : {}, this.size = 0;
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function hr(e) {
|
|
211
211
|
var t = this.has(e) && delete this.__data__[e];
|
|
212
212
|
return this.size -= t ? 1 : 0, t;
|
|
213
213
|
}
|
|
214
|
-
var
|
|
215
|
-
function
|
|
214
|
+
var pr = "__lodash_hash_undefined__", gr = Object.prototype, vr = gr.hasOwnProperty;
|
|
215
|
+
function br(e) {
|
|
216
216
|
var t = this.__data__;
|
|
217
217
|
if (et) {
|
|
218
218
|
var n = t[e];
|
|
219
|
-
return n ===
|
|
219
|
+
return n === pr ? void 0 : n;
|
|
220
220
|
}
|
|
221
|
-
return
|
|
221
|
+
return vr.call(t, e) ? t[e] : void 0;
|
|
222
222
|
}
|
|
223
|
-
var
|
|
224
|
-
function
|
|
223
|
+
var yr = Object.prototype, _r = yr.hasOwnProperty;
|
|
224
|
+
function wr(e) {
|
|
225
225
|
var t = this.__data__;
|
|
226
|
-
return et ? t[e] !== void 0 :
|
|
226
|
+
return et ? t[e] !== void 0 : _r.call(t, e);
|
|
227
227
|
}
|
|
228
|
-
var
|
|
229
|
-
function
|
|
228
|
+
var Mr = "__lodash_hash_undefined__";
|
|
229
|
+
function Sr(e, t) {
|
|
230
230
|
var n = this.__data__;
|
|
231
|
-
return this.size += this.has(e) ? 0 : 1, n[e] = et && t === void 0 ?
|
|
231
|
+
return this.size += this.has(e) ? 0 : 1, n[e] = et && t === void 0 ? Mr : t, this;
|
|
232
232
|
}
|
|
233
233
|
function je(e) {
|
|
234
234
|
var t = -1, n = e == null ? 0 : e.length;
|
|
@@ -237,40 +237,40 @@ function je(e) {
|
|
|
237
237
|
this.set(i[0], i[1]);
|
|
238
238
|
}
|
|
239
239
|
}
|
|
240
|
-
je.prototype.clear =
|
|
241
|
-
je.prototype.delete =
|
|
242
|
-
je.prototype.get =
|
|
243
|
-
je.prototype.has =
|
|
244
|
-
je.prototype.set =
|
|
245
|
-
function
|
|
240
|
+
je.prototype.clear = fr;
|
|
241
|
+
je.prototype.delete = hr;
|
|
242
|
+
je.prototype.get = br;
|
|
243
|
+
je.prototype.has = wr;
|
|
244
|
+
je.prototype.set = Sr;
|
|
245
|
+
function Tr() {
|
|
246
246
|
this.__data__ = [], this.size = 0;
|
|
247
247
|
}
|
|
248
|
-
function
|
|
248
|
+
function vt(e, t) {
|
|
249
249
|
return e === t || e !== e && t !== t;
|
|
250
250
|
}
|
|
251
|
-
function
|
|
251
|
+
function bt(e, t) {
|
|
252
252
|
for (var n = e.length; n--; )
|
|
253
|
-
if (
|
|
253
|
+
if (vt(e[n][0], t))
|
|
254
254
|
return n;
|
|
255
255
|
return -1;
|
|
256
256
|
}
|
|
257
|
-
var
|
|
257
|
+
var Cr = Array.prototype, Ir = Cr.splice;
|
|
258
258
|
function Or(e) {
|
|
259
|
-
var t = this.__data__, n =
|
|
259
|
+
var t = this.__data__, n = bt(t, e);
|
|
260
260
|
if (n < 0)
|
|
261
261
|
return !1;
|
|
262
262
|
var i = t.length - 1;
|
|
263
|
-
return n == i ? t.pop() :
|
|
263
|
+
return n == i ? t.pop() : Ir.call(t, n, 1), --this.size, !0;
|
|
264
264
|
}
|
|
265
|
-
function
|
|
266
|
-
var t = this.__data__, n =
|
|
265
|
+
function Ar(e) {
|
|
266
|
+
var t = this.__data__, n = bt(t, e);
|
|
267
267
|
return n < 0 ? void 0 : t[n][1];
|
|
268
268
|
}
|
|
269
|
-
function
|
|
270
|
-
return
|
|
269
|
+
function Er(e) {
|
|
270
|
+
return bt(this.__data__, e) > -1;
|
|
271
271
|
}
|
|
272
|
-
function
|
|
273
|
-
var n = this.__data__, i =
|
|
272
|
+
function Fr(e, t) {
|
|
273
|
+
var n = this.__data__, i = bt(n, e);
|
|
274
274
|
return i < 0 ? (++this.size, n.push([e, t])) : n[i][1] = t, this;
|
|
275
275
|
}
|
|
276
276
|
function Me(e) {
|
|
@@ -280,39 +280,39 @@ function Me(e) {
|
|
|
280
280
|
this.set(i[0], i[1]);
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
|
-
Me.prototype.clear =
|
|
283
|
+
Me.prototype.clear = Tr;
|
|
284
284
|
Me.prototype.delete = Or;
|
|
285
|
-
Me.prototype.get =
|
|
286
|
-
Me.prototype.has =
|
|
287
|
-
Me.prototype.set =
|
|
285
|
+
Me.prototype.get = Ar;
|
|
286
|
+
Me.prototype.has = Er;
|
|
287
|
+
Me.prototype.set = Fr;
|
|
288
288
|
var tt = Ke(pe, "Map");
|
|
289
|
-
function
|
|
289
|
+
function kr() {
|
|
290
290
|
this.size = 0, this.__data__ = {
|
|
291
291
|
hash: new je(),
|
|
292
292
|
map: new (tt || Me)(),
|
|
293
293
|
string: new je()
|
|
294
294
|
};
|
|
295
295
|
}
|
|
296
|
-
function
|
|
296
|
+
function Ur(e) {
|
|
297
297
|
var t = typeof e;
|
|
298
298
|
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
|
|
299
299
|
}
|
|
300
|
-
function
|
|
300
|
+
function yt(e, t) {
|
|
301
301
|
var n = e.__data__;
|
|
302
|
-
return
|
|
303
|
-
}
|
|
304
|
-
function Ur(e) {
|
|
305
|
-
var t = bt(this, e).delete(e);
|
|
306
|
-
return this.size -= t ? 1 : 0, t;
|
|
302
|
+
return Ur(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
|
|
307
303
|
}
|
|
308
304
|
function $r(e) {
|
|
309
|
-
|
|
305
|
+
var t = yt(this, e).delete(e);
|
|
306
|
+
return this.size -= t ? 1 : 0, t;
|
|
310
307
|
}
|
|
311
308
|
function Vr(e) {
|
|
312
|
-
return
|
|
309
|
+
return yt(this, e).get(e);
|
|
310
|
+
}
|
|
311
|
+
function jr(e) {
|
|
312
|
+
return yt(this, e).has(e);
|
|
313
313
|
}
|
|
314
|
-
function
|
|
315
|
-
var n =
|
|
314
|
+
function Rr(e, t) {
|
|
315
|
+
var n = yt(this, e), i = n.size;
|
|
316
316
|
return n.set(e, t), this.size += n.size == i ? 0 : 1, this;
|
|
317
317
|
}
|
|
318
318
|
function Se(e) {
|
|
@@ -322,15 +322,15 @@ function Se(e) {
|
|
|
322
322
|
this.set(i[0], i[1]);
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
|
-
Se.prototype.clear =
|
|
326
|
-
Se.prototype.delete =
|
|
327
|
-
Se.prototype.get =
|
|
328
|
-
Se.prototype.has =
|
|
329
|
-
Se.prototype.set =
|
|
330
|
-
var
|
|
331
|
-
function
|
|
325
|
+
Se.prototype.clear = kr;
|
|
326
|
+
Se.prototype.delete = $r;
|
|
327
|
+
Se.prototype.get = Vr;
|
|
328
|
+
Se.prototype.has = jr;
|
|
329
|
+
Se.prototype.set = Rr;
|
|
330
|
+
var Pr = "Expected a function";
|
|
331
|
+
function Nt(e, t) {
|
|
332
332
|
if (typeof e != "function" || t != null && typeof t != "function")
|
|
333
|
-
throw new TypeError(
|
|
333
|
+
throw new TypeError(Pr);
|
|
334
334
|
var n = function() {
|
|
335
335
|
var i = arguments, a = t ? t.apply(this, i) : i[0], r = n.cache;
|
|
336
336
|
if (r.has(a))
|
|
@@ -338,20 +338,20 @@ function Pt(e, t) {
|
|
|
338
338
|
var s = e.apply(this, i);
|
|
339
339
|
return n.cache = r.set(a, s) || r, s;
|
|
340
340
|
};
|
|
341
|
-
return n.cache = new (
|
|
341
|
+
return n.cache = new (Nt.Cache || Se)(), n;
|
|
342
342
|
}
|
|
343
|
-
|
|
344
|
-
var
|
|
345
|
-
function
|
|
346
|
-
var t =
|
|
347
|
-
return n.size ===
|
|
343
|
+
Nt.Cache = Se;
|
|
344
|
+
var Nr = 500;
|
|
345
|
+
function Lr(e) {
|
|
346
|
+
var t = Nt(e, function(i) {
|
|
347
|
+
return n.size === Nr && n.clear(), i;
|
|
348
348
|
}), n = t.cache;
|
|
349
349
|
return t;
|
|
350
350
|
}
|
|
351
|
-
var
|
|
351
|
+
var qr = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Kr = /\\(\\)?/g, Dr = Lr(function(e) {
|
|
352
352
|
var t = [];
|
|
353
|
-
return e.charCodeAt(0) === 46 && t.push(""), e.replace(
|
|
354
|
-
t.push(a ? r.replace(
|
|
353
|
+
return e.charCodeAt(0) === 46 && t.push(""), e.replace(qr, function(n, i, a, r) {
|
|
354
|
+
t.push(a ? r.replace(Kr, "$1") : i || n);
|
|
355
355
|
}), t;
|
|
356
356
|
});
|
|
357
357
|
function Br(e, t) {
|
|
@@ -359,63 +359,63 @@ function Br(e, t) {
|
|
|
359
359
|
a[n] = t(e[n], n, e);
|
|
360
360
|
return a;
|
|
361
361
|
}
|
|
362
|
-
var
|
|
363
|
-
function
|
|
362
|
+
var zr = 1 / 0, Wt = Ae ? Ae.prototype : void 0, Zt = Wt ? Wt.toString : void 0;
|
|
363
|
+
function Yn(e) {
|
|
364
364
|
if (typeof e == "string")
|
|
365
365
|
return e;
|
|
366
366
|
if (ke(e))
|
|
367
|
-
return Br(e,
|
|
368
|
-
if (
|
|
369
|
-
return
|
|
367
|
+
return Br(e, Yn) + "";
|
|
368
|
+
if (gt(e))
|
|
369
|
+
return Zt ? Zt.call(e) : "";
|
|
370
370
|
var t = e + "";
|
|
371
|
-
return t == "0" && 1 / e == -
|
|
371
|
+
return t == "0" && 1 / e == -zr ? "-0" : t;
|
|
372
372
|
}
|
|
373
|
-
function
|
|
374
|
-
return e == null ? "" :
|
|
373
|
+
function Hn(e) {
|
|
374
|
+
return e == null ? "" : Yn(e);
|
|
375
375
|
}
|
|
376
|
-
function
|
|
377
|
-
return ke(e) ? e :
|
|
376
|
+
function Yr(e, t) {
|
|
377
|
+
return ke(e) ? e : er(e, t) ? [e] : Dr(Hn(e));
|
|
378
378
|
}
|
|
379
|
-
var
|
|
380
|
-
function
|
|
381
|
-
if (typeof e == "string" ||
|
|
379
|
+
var Hr = 1 / 0;
|
|
380
|
+
function xr(e) {
|
|
381
|
+
if (typeof e == "string" || gt(e))
|
|
382
382
|
return e;
|
|
383
383
|
var t = e + "";
|
|
384
|
-
return t == "0" && 1 / e == -
|
|
384
|
+
return t == "0" && 1 / e == -Hr ? "-0" : t;
|
|
385
385
|
}
|
|
386
|
-
function
|
|
387
|
-
t =
|
|
386
|
+
function Gr(e, t) {
|
|
387
|
+
t = Yr(t, e);
|
|
388
388
|
for (var n = 0, i = t.length; e != null && n < i; )
|
|
389
|
-
e = e[
|
|
389
|
+
e = e[xr(t[n++])];
|
|
390
390
|
return n && n == i ? e : void 0;
|
|
391
391
|
}
|
|
392
|
-
function
|
|
393
|
-
var i = e == null ? void 0 :
|
|
392
|
+
function B(e, t, n) {
|
|
393
|
+
var i = e == null ? void 0 : Gr(e, t);
|
|
394
394
|
return i === void 0 ? n : i;
|
|
395
395
|
}
|
|
396
396
|
function X(e) {
|
|
397
397
|
return e == null;
|
|
398
398
|
}
|
|
399
|
-
const $e = "kong-ui-forms-api",
|
|
400
|
-
function
|
|
399
|
+
const $e = "kong-ui-forms-api", Wr = "kong-ui-forms-config", Zr = "redis-partial-list-fetcher-key", Mm = "redis-partial-info", xe = "autofill", he = "autofillSlot";
|
|
400
|
+
function Jr() {
|
|
401
401
|
this.__data__ = new Me(), this.size = 0;
|
|
402
402
|
}
|
|
403
|
-
function
|
|
403
|
+
function Qr(e) {
|
|
404
404
|
var t = this.__data__, n = t.delete(e);
|
|
405
405
|
return this.size = t.size, n;
|
|
406
406
|
}
|
|
407
|
-
function
|
|
407
|
+
function Xr(e) {
|
|
408
408
|
return this.__data__.get(e);
|
|
409
409
|
}
|
|
410
|
-
function
|
|
410
|
+
function eo(e) {
|
|
411
411
|
return this.__data__.has(e);
|
|
412
412
|
}
|
|
413
|
-
var
|
|
414
|
-
function
|
|
413
|
+
var to = 200;
|
|
414
|
+
function no(e, t) {
|
|
415
415
|
var n = this.__data__;
|
|
416
416
|
if (n instanceof Me) {
|
|
417
417
|
var i = n.__data__;
|
|
418
|
-
if (!tt || i.length <
|
|
418
|
+
if (!tt || i.length < to - 1)
|
|
419
419
|
return i.push([e, t]), this.size = ++n.size, this;
|
|
420
420
|
n = this.__data__ = new Se(i);
|
|
421
421
|
}
|
|
@@ -425,176 +425,175 @@ function Ge(e) {
|
|
|
425
425
|
var t = this.__data__ = new Me(e);
|
|
426
426
|
this.size = t.size;
|
|
427
427
|
}
|
|
428
|
-
Ge.prototype.clear =
|
|
429
|
-
Ge.prototype.delete =
|
|
430
|
-
Ge.prototype.get =
|
|
431
|
-
Ge.prototype.has =
|
|
432
|
-
Ge.prototype.set =
|
|
433
|
-
var
|
|
428
|
+
Ge.prototype.clear = Jr;
|
|
429
|
+
Ge.prototype.delete = Qr;
|
|
430
|
+
Ge.prototype.get = Xr;
|
|
431
|
+
Ge.prototype.has = eo;
|
|
432
|
+
Ge.prototype.set = no;
|
|
433
|
+
var st = function() {
|
|
434
434
|
try {
|
|
435
435
|
var e = Ke(Object, "defineProperty");
|
|
436
436
|
return e({}, "", {}), e;
|
|
437
437
|
} catch {
|
|
438
438
|
}
|
|
439
439
|
}();
|
|
440
|
-
function
|
|
441
|
-
t == "__proto__" &&
|
|
440
|
+
function xn(e, t, n) {
|
|
441
|
+
t == "__proto__" && st ? st(e, t, {
|
|
442
442
|
configurable: !0,
|
|
443
443
|
enumerable: !0,
|
|
444
444
|
value: n,
|
|
445
445
|
writable: !0
|
|
446
446
|
}) : e[t] = n;
|
|
447
447
|
}
|
|
448
|
-
var
|
|
449
|
-
function
|
|
448
|
+
var io = Object.prototype, ao = io.hasOwnProperty;
|
|
449
|
+
function Gn(e, t, n) {
|
|
450
450
|
var i = e[t];
|
|
451
|
-
(!(
|
|
451
|
+
(!(ao.call(e, t) && vt(i, n)) || n === void 0 && !(t in e)) && xn(e, t, n);
|
|
452
452
|
}
|
|
453
|
-
function
|
|
453
|
+
function _t(e, t, n, i) {
|
|
454
454
|
var a = !n;
|
|
455
455
|
n || (n = {});
|
|
456
456
|
for (var r = -1, s = t.length; ++r < s; ) {
|
|
457
457
|
var o = t[r], l = void 0;
|
|
458
|
-
l === void 0 && (l = e[o]), a ?
|
|
458
|
+
l === void 0 && (l = e[o]), a ? xn(n, o, l) : Gn(n, o, l);
|
|
459
459
|
}
|
|
460
460
|
return n;
|
|
461
461
|
}
|
|
462
|
-
function
|
|
463
|
-
return e &&
|
|
462
|
+
function ro(e, t) {
|
|
463
|
+
return e && _t(t, pt(t), e);
|
|
464
464
|
}
|
|
465
|
-
function
|
|
465
|
+
function oo(e) {
|
|
466
466
|
var t = [];
|
|
467
467
|
if (e != null)
|
|
468
468
|
for (var n in Object(e))
|
|
469
469
|
t.push(n);
|
|
470
470
|
return t;
|
|
471
471
|
}
|
|
472
|
-
var
|
|
473
|
-
function
|
|
472
|
+
var so = Object.prototype, lo = so.hasOwnProperty;
|
|
473
|
+
function uo(e) {
|
|
474
474
|
if (!me(e))
|
|
475
|
-
return
|
|
476
|
-
var t =
|
|
475
|
+
return oo(e);
|
|
476
|
+
var t = Rt(e), n = [];
|
|
477
477
|
for (var i in e)
|
|
478
|
-
i == "constructor" && (t || !
|
|
478
|
+
i == "constructor" && (t || !lo.call(e, i)) || n.push(i);
|
|
479
479
|
return n;
|
|
480
480
|
}
|
|
481
|
-
function
|
|
482
|
-
return
|
|
481
|
+
function wt(e) {
|
|
482
|
+
return ht(e) ? Bn(e, !0) : uo(e);
|
|
483
483
|
}
|
|
484
|
-
function
|
|
485
|
-
return e &&
|
|
484
|
+
function co(e, t) {
|
|
485
|
+
return e && _t(t, wt(t), e);
|
|
486
486
|
}
|
|
487
|
-
var
|
|
488
|
-
function
|
|
487
|
+
var Wn = typeof exports == "object" && exports && !exports.nodeType && exports, Jt = Wn && typeof module == "object" && module && !module.nodeType && module, mo = Jt && Jt.exports === Wn, Qt = mo ? pe.Buffer : void 0, Xt = Qt ? Qt.allocUnsafe : void 0;
|
|
488
|
+
function fo(e, t) {
|
|
489
489
|
if (t)
|
|
490
490
|
return e.slice();
|
|
491
|
-
var n = e.length, i =
|
|
491
|
+
var n = e.length, i = Xt ? Xt(n) : new e.constructor(n);
|
|
492
492
|
return e.copy(i), i;
|
|
493
493
|
}
|
|
494
|
-
function
|
|
494
|
+
function ho(e, t) {
|
|
495
495
|
var n = -1, i = e.length;
|
|
496
496
|
for (t || (t = Array(i)); ++n < i; )
|
|
497
497
|
t[n] = e[n];
|
|
498
498
|
return t;
|
|
499
499
|
}
|
|
500
|
-
function
|
|
500
|
+
function po(e, t) {
|
|
501
501
|
for (var n = -1, i = e == null ? 0 : e.length, a = 0, r = []; ++n < i; ) {
|
|
502
502
|
var s = e[n];
|
|
503
503
|
t(s, n, e) && (r[a++] = s);
|
|
504
504
|
}
|
|
505
505
|
return r;
|
|
506
506
|
}
|
|
507
|
-
function
|
|
507
|
+
function Zn() {
|
|
508
508
|
return [];
|
|
509
509
|
}
|
|
510
|
-
var
|
|
511
|
-
return e == null ? [] : (e = Object(e),
|
|
512
|
-
return
|
|
510
|
+
var go = Object.prototype, vo = go.propertyIsEnumerable, en = Object.getOwnPropertySymbols, Lt = en ? function(e) {
|
|
511
|
+
return e == null ? [] : (e = Object(e), po(en(e), function(t) {
|
|
512
|
+
return vo.call(e, t);
|
|
513
513
|
}));
|
|
514
|
-
} :
|
|
515
|
-
function
|
|
516
|
-
return
|
|
514
|
+
} : Zn;
|
|
515
|
+
function bo(e, t) {
|
|
516
|
+
return _t(e, Lt(e), t);
|
|
517
517
|
}
|
|
518
|
-
function
|
|
518
|
+
function Jn(e, t) {
|
|
519
519
|
for (var n = -1, i = t.length, a = e.length; ++n < i; )
|
|
520
520
|
e[a + n] = t[n];
|
|
521
521
|
return e;
|
|
522
522
|
}
|
|
523
|
-
var
|
|
523
|
+
var Qn = zn(Object.getPrototypeOf, Object), yo = Object.getOwnPropertySymbols, Xn = yo ? function(e) {
|
|
524
524
|
for (var t = []; e; )
|
|
525
|
-
|
|
525
|
+
Jn(t, Lt(e)), e = Qn(e);
|
|
526
526
|
return t;
|
|
527
|
-
} :
|
|
528
|
-
function
|
|
529
|
-
return
|
|
527
|
+
} : Zn;
|
|
528
|
+
function _o(e, t) {
|
|
529
|
+
return _t(e, Xn(e), t);
|
|
530
530
|
}
|
|
531
|
-
function
|
|
531
|
+
function ei(e, t, n) {
|
|
532
532
|
var i = t(e);
|
|
533
|
-
return ke(e) ? i :
|
|
534
|
-
}
|
|
535
|
-
function _o(e) {
|
|
536
|
-
return Xn(e, ht, Nt);
|
|
533
|
+
return ke(e) ? i : Jn(i, n(e));
|
|
537
534
|
}
|
|
538
535
|
function wo(e) {
|
|
539
|
-
return
|
|
536
|
+
return ei(e, pt, Lt);
|
|
537
|
+
}
|
|
538
|
+
function Mo(e) {
|
|
539
|
+
return ei(e, wt, Xn);
|
|
540
540
|
}
|
|
541
|
-
var
|
|
542
|
-
(
|
|
543
|
-
var t = Ee(e), n = t ==
|
|
541
|
+
var At = Ke(pe, "DataView"), Et = Ke(pe, "Promise"), ze = Ke(pe, "Set"), Ft = Ke(pe, "WeakMap"), tn = "[object Map]", So = "[object Object]", nn = "[object Promise]", an = "[object Set]", rn = "[object WeakMap]", on = "[object DataView]", To = qe(At), Co = qe(tt), Io = qe(Et), Oo = qe(ze), Ao = qe(Ft), _e = Ee;
|
|
542
|
+
(At && _e(new At(new ArrayBuffer(1))) != on || tt && _e(new tt()) != tn || Et && _e(Et.resolve()) != nn || ze && _e(new ze()) != an || Ft && _e(new Ft()) != rn) && (_e = function(e) {
|
|
543
|
+
var t = Ee(e), n = t == So ? e.constructor : void 0, i = n ? qe(n) : "";
|
|
544
544
|
if (i)
|
|
545
545
|
switch (i) {
|
|
546
|
-
case So:
|
|
547
|
-
return rn;
|
|
548
546
|
case To:
|
|
549
|
-
return
|
|
547
|
+
return on;
|
|
550
548
|
case Co:
|
|
551
549
|
return tn;
|
|
552
|
-
case Oo:
|
|
553
|
-
return nn;
|
|
554
550
|
case Io:
|
|
551
|
+
return nn;
|
|
552
|
+
case Oo:
|
|
555
553
|
return an;
|
|
554
|
+
case Ao:
|
|
555
|
+
return rn;
|
|
556
556
|
}
|
|
557
557
|
return t;
|
|
558
558
|
});
|
|
559
|
-
var
|
|
560
|
-
function
|
|
559
|
+
var Eo = Object.prototype, Fo = Eo.hasOwnProperty;
|
|
560
|
+
function ko(e) {
|
|
561
561
|
var t = e.length, n = new e.constructor(t);
|
|
562
|
-
return t && typeof e[0] == "string" &&
|
|
562
|
+
return t && typeof e[0] == "string" && Fo.call(e, "index") && (n.index = e.index, n.input = e.input), n;
|
|
563
563
|
}
|
|
564
|
-
var
|
|
565
|
-
function
|
|
564
|
+
var sn = pe.Uint8Array;
|
|
565
|
+
function qt(e) {
|
|
566
566
|
var t = new e.constructor(e.byteLength);
|
|
567
|
-
return new
|
|
567
|
+
return new sn(t).set(new sn(e)), t;
|
|
568
568
|
}
|
|
569
|
-
function
|
|
570
|
-
var n = t ?
|
|
569
|
+
function Uo(e, t) {
|
|
570
|
+
var n = t ? qt(e.buffer) : e.buffer;
|
|
571
571
|
return new e.constructor(n, e.byteOffset, e.byteLength);
|
|
572
572
|
}
|
|
573
|
-
var
|
|
574
|
-
function
|
|
575
|
-
var t = new e.constructor(e.source,
|
|
573
|
+
var $o = /\w*$/;
|
|
574
|
+
function Vo(e) {
|
|
575
|
+
var t = new e.constructor(e.source, $o.exec(e));
|
|
576
576
|
return t.lastIndex = e.lastIndex, t;
|
|
577
577
|
}
|
|
578
|
-
var
|
|
579
|
-
function
|
|
580
|
-
return
|
|
578
|
+
var ln = Ae ? Ae.prototype : void 0, dn = ln ? ln.valueOf : void 0;
|
|
579
|
+
function jo(e) {
|
|
580
|
+
return dn ? Object(dn.call(e)) : {};
|
|
581
581
|
}
|
|
582
|
-
function
|
|
583
|
-
var n = t ?
|
|
582
|
+
function Ro(e, t) {
|
|
583
|
+
var n = t ? qt(e.buffer) : e.buffer;
|
|
584
584
|
return new e.constructor(n, e.byteOffset, e.length);
|
|
585
585
|
}
|
|
586
|
-
var
|
|
587
|
-
function
|
|
586
|
+
var Po = "[object Boolean]", No = "[object Date]", Lo = "[object Map]", qo = "[object Number]", Ko = "[object RegExp]", Do = "[object Set]", Bo = "[object String]", zo = "[object Symbol]", Yo = "[object ArrayBuffer]", Ho = "[object DataView]", xo = "[object Float32Array]", Go = "[object Float64Array]", Wo = "[object Int8Array]", Zo = "[object Int16Array]", Jo = "[object Int32Array]", Qo = "[object Uint8Array]", Xo = "[object Uint8ClampedArray]", es = "[object Uint16Array]", ts = "[object Uint32Array]";
|
|
587
|
+
function ns(e, t, n) {
|
|
588
588
|
var i = e.constructor;
|
|
589
589
|
switch (t) {
|
|
590
|
-
case
|
|
591
|
-
return
|
|
592
|
-
case Ro:
|
|
590
|
+
case Yo:
|
|
591
|
+
return qt(e);
|
|
593
592
|
case Po:
|
|
593
|
+
case No:
|
|
594
594
|
return new i(+e);
|
|
595
|
-
case Yo:
|
|
596
|
-
return ko(e, n);
|
|
597
595
|
case Ho:
|
|
596
|
+
return Uo(e, n);
|
|
598
597
|
case xo:
|
|
599
598
|
case Go:
|
|
600
599
|
case Wo:
|
|
@@ -603,100 +602,101 @@ function ts(e, t, n) {
|
|
|
603
602
|
case Qo:
|
|
604
603
|
case Xo:
|
|
605
604
|
case es:
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
return new i();
|
|
605
|
+
case ts:
|
|
606
|
+
return Ro(e, n);
|
|
609
607
|
case Lo:
|
|
608
|
+
return new i();
|
|
609
|
+
case qo:
|
|
610
610
|
case Bo:
|
|
611
611
|
return new i(e);
|
|
612
|
-
case qo:
|
|
613
|
-
return $o(e);
|
|
614
612
|
case Ko:
|
|
615
|
-
return new i();
|
|
616
|
-
case Do:
|
|
617
613
|
return Vo(e);
|
|
614
|
+
case Do:
|
|
615
|
+
return new i();
|
|
616
|
+
case zo:
|
|
617
|
+
return jo(e);
|
|
618
618
|
}
|
|
619
619
|
}
|
|
620
|
-
var
|
|
620
|
+
var un = Object.create, is = /* @__PURE__ */ function() {
|
|
621
621
|
function e() {
|
|
622
622
|
}
|
|
623
623
|
return function(t) {
|
|
624
624
|
if (!me(t))
|
|
625
625
|
return {};
|
|
626
|
-
if (
|
|
627
|
-
return
|
|
626
|
+
if (un)
|
|
627
|
+
return un(t);
|
|
628
628
|
e.prototype = t;
|
|
629
629
|
var n = new e();
|
|
630
630
|
return e.prototype = void 0, n;
|
|
631
631
|
};
|
|
632
632
|
}();
|
|
633
|
-
function
|
|
634
|
-
return typeof e.constructor == "function" && !
|
|
633
|
+
function as(e) {
|
|
634
|
+
return typeof e.constructor == "function" && !Rt(e) ? is(Qn(e)) : {};
|
|
635
635
|
}
|
|
636
|
-
var
|
|
637
|
-
function
|
|
638
|
-
return Fe(e) && _e(e) ==
|
|
636
|
+
var rs = "[object Map]";
|
|
637
|
+
function os(e) {
|
|
638
|
+
return Fe(e) && _e(e) == rs;
|
|
639
639
|
}
|
|
640
|
-
var
|
|
641
|
-
function
|
|
642
|
-
return Fe(e) && _e(e) ==
|
|
640
|
+
var cn = Ye && Ye.isMap, ss = cn ? jt(cn) : os, ls = "[object Set]";
|
|
641
|
+
function ds(e) {
|
|
642
|
+
return Fe(e) && _e(e) == ls;
|
|
643
643
|
}
|
|
644
|
-
var
|
|
645
|
-
H[
|
|
646
|
-
H[
|
|
644
|
+
var mn = Ye && Ye.isSet, us = mn ? jt(mn) : ds, cs = 1, ms = 2, fs = 4, ti = "[object Arguments]", hs = "[object Array]", ps = "[object Boolean]", gs = "[object Date]", vs = "[object Error]", ni = "[object Function]", bs = "[object GeneratorFunction]", ys = "[object Map]", _s = "[object Number]", ii = "[object Object]", ws = "[object RegExp]", Ms = "[object Set]", Ss = "[object String]", Ts = "[object Symbol]", Cs = "[object WeakMap]", Is = "[object ArrayBuffer]", Os = "[object DataView]", As = "[object Float32Array]", Es = "[object Float64Array]", Fs = "[object Int8Array]", ks = "[object Int16Array]", Us = "[object Int32Array]", $s = "[object Uint8Array]", Vs = "[object Uint8ClampedArray]", js = "[object Uint16Array]", Rs = "[object Uint32Array]", H = {};
|
|
645
|
+
H[ti] = H[hs] = H[Is] = H[Os] = H[ps] = H[gs] = H[As] = H[Es] = H[Fs] = H[ks] = H[Us] = H[ys] = H[_s] = H[ii] = H[ws] = H[Ms] = H[Ss] = H[Ts] = H[$s] = H[Vs] = H[js] = H[Rs] = !0;
|
|
646
|
+
H[vs] = H[ni] = H[Cs] = !1;
|
|
647
647
|
function Qe(e, t, n, i, a, r) {
|
|
648
|
-
var s, o = t &
|
|
648
|
+
var s, o = t & cs, l = t & ms, d = t & fs;
|
|
649
649
|
if (s !== void 0)
|
|
650
650
|
return s;
|
|
651
651
|
if (!me(e))
|
|
652
652
|
return e;
|
|
653
653
|
var h = ke(e);
|
|
654
654
|
if (h) {
|
|
655
|
-
if (s =
|
|
656
|
-
return
|
|
655
|
+
if (s = ko(e), !o)
|
|
656
|
+
return ho(e, s);
|
|
657
657
|
} else {
|
|
658
|
-
var m = _e(e), p = m ==
|
|
659
|
-
if (
|
|
660
|
-
return
|
|
661
|
-
if (m ==
|
|
662
|
-
if (s = l || p ? {} :
|
|
663
|
-
return l ?
|
|
658
|
+
var m = _e(e), p = m == ni || m == bs;
|
|
659
|
+
if (Ln(e))
|
|
660
|
+
return fo(e, o);
|
|
661
|
+
if (m == ii || m == ti || p && !a) {
|
|
662
|
+
if (s = l || p ? {} : as(e), !o)
|
|
663
|
+
return l ? _o(e, co(s, e)) : bo(e, ro(s, e));
|
|
664
664
|
} else {
|
|
665
665
|
if (!H[m])
|
|
666
666
|
return a ? e : {};
|
|
667
|
-
s =
|
|
667
|
+
s = ns(e, m, o);
|
|
668
668
|
}
|
|
669
669
|
}
|
|
670
670
|
r || (r = new Ge());
|
|
671
671
|
var E = r.get(e);
|
|
672
672
|
if (E)
|
|
673
673
|
return E;
|
|
674
|
-
r.set(e, s),
|
|
674
|
+
r.set(e, s), us(e) ? e.forEach(function(M) {
|
|
675
675
|
s.add(Qe(M, t, n, M, e, r));
|
|
676
|
-
}) :
|
|
676
|
+
}) : ss(e) && e.forEach(function(M, T) {
|
|
677
677
|
s.set(T, Qe(M, t, n, T, e, r));
|
|
678
678
|
});
|
|
679
|
-
var N = d ? l ?
|
|
680
|
-
return
|
|
681
|
-
c && (T = M, M = e[T]),
|
|
679
|
+
var N = d ? l ? Mo : wo : l ? wt : pt, c = h ? void 0 : N(e);
|
|
680
|
+
return Vn(c || e, function(M, T) {
|
|
681
|
+
c && (T = M, M = e[T]), Gn(s, T, Qe(M, t, n, T, e, r));
|
|
682
682
|
}), s;
|
|
683
683
|
}
|
|
684
|
-
var
|
|
684
|
+
var Ps = 1, Ns = 4;
|
|
685
685
|
function we(e) {
|
|
686
|
-
return Qe(e,
|
|
686
|
+
return Qe(e, Ps | Ns);
|
|
687
687
|
}
|
|
688
|
-
const
|
|
689
|
-
var
|
|
688
|
+
const Kt = (e, t = "") => typeof e.id < "u" ? t + e.id + "" : t + (e.inputName || e.label || e.model || "").toString().trim().toLowerCase().replace(/ |_/g, "-").replace(/-{2,}/g, "-").replace(/^-+|-+$/g, "").replace(/([^a-zA-Z0-9-]+)/g, ""), fn = (e = "") => e.toString().trim().replace(/ /g, "-").replace(/-{2,}/g, "-").replace(/^-+|-+$/g, "").replace(/([^a-zA-Z0-9-_/./:]+)/g, "");
|
|
689
|
+
var Ls = "[object String]";
|
|
690
690
|
function Re(e) {
|
|
691
|
-
return typeof e == "string" || !ke(e) && Fe(e) && Ee(e) ==
|
|
691
|
+
return typeof e == "string" || !ke(e) && Fe(e) && Ee(e) == Ls;
|
|
692
692
|
}
|
|
693
|
-
const
|
|
693
|
+
const ai = {
|
|
694
694
|
methods: {
|
|
695
695
|
// Get style classes of field
|
|
696
696
|
getFieldRowClasses(e) {
|
|
697
697
|
const t = this.fieldErrors(e).length > 0, n = {
|
|
698
|
-
[
|
|
699
|
-
[
|
|
698
|
+
[B(this.options, "validationErrorClass", "error")]: t,
|
|
699
|
+
[B(this.options, "validationSuccessClass", "valid")]: !t,
|
|
700
700
|
disabled: this.fieldDisabled(e),
|
|
701
701
|
readonly: this.fieldReadonly(e),
|
|
702
702
|
featured: this.fieldFeatured(e),
|
|
@@ -725,24 +725,24 @@ const ii = {
|
|
|
725
725
|
}
|
|
726
726
|
}
|
|
727
727
|
};
|
|
728
|
-
var
|
|
728
|
+
var Ct = function() {
|
|
729
729
|
return pe.Date.now();
|
|
730
|
-
},
|
|
731
|
-
function
|
|
732
|
-
for (var t = e.length; t-- &&
|
|
730
|
+
}, qs = /\s/;
|
|
731
|
+
function Ks(e) {
|
|
732
|
+
for (var t = e.length; t-- && qs.test(e.charAt(t)); )
|
|
733
733
|
;
|
|
734
734
|
return t;
|
|
735
735
|
}
|
|
736
|
-
var
|
|
736
|
+
var Ds = /^\s+/;
|
|
737
737
|
function Bs(e) {
|
|
738
|
-
return e && e.slice(0,
|
|
738
|
+
return e && e.slice(0, Ks(e) + 1).replace(Ds, "");
|
|
739
739
|
}
|
|
740
|
-
var
|
|
741
|
-
function
|
|
740
|
+
var hn = NaN, zs = /^[-+]0x[0-9a-f]+$/i, Ys = /^0b[01]+$/i, Hs = /^0o[0-7]+$/i, xs = parseInt;
|
|
741
|
+
function kt(e) {
|
|
742
742
|
if (typeof e == "number")
|
|
743
743
|
return e;
|
|
744
|
-
if (
|
|
745
|
-
return
|
|
744
|
+
if (gt(e))
|
|
745
|
+
return hn;
|
|
746
746
|
if (me(e)) {
|
|
747
747
|
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
748
748
|
e = me(t) ? t + "" : t;
|
|
@@ -750,15 +750,15 @@ function Ft(e) {
|
|
|
750
750
|
if (typeof e != "string")
|
|
751
751
|
return e === 0 ? e : +e;
|
|
752
752
|
e = Bs(e);
|
|
753
|
-
var n =
|
|
754
|
-
return n ||
|
|
753
|
+
var n = Ys.test(e);
|
|
754
|
+
return n || Hs.test(e) ? xs(e.slice(2), n ? 2 : 8) : zs.test(e) ? hn : +e;
|
|
755
755
|
}
|
|
756
|
-
var
|
|
756
|
+
var Gs = "Expected a function", Ws = Math.max, Zs = Math.min;
|
|
757
757
|
function nt(e, t, n) {
|
|
758
758
|
var i, a, r, s, o, l, d = 0, h = !1, m = !1, p = !0;
|
|
759
759
|
if (typeof e != "function")
|
|
760
|
-
throw new TypeError(
|
|
761
|
-
t =
|
|
760
|
+
throw new TypeError(Gs);
|
|
761
|
+
t = kt(t) || 0, me(n) && (h = !!n.leading, m = "maxWait" in n, r = m ? Ws(kt(n.maxWait) || 0, t) : r, p = "trailing" in n ? !!n.trailing : p);
|
|
762
762
|
function E(_) {
|
|
763
763
|
var v = i, j = a;
|
|
764
764
|
return i = a = void 0, d = _, s = e.apply(j, v), s;
|
|
@@ -768,14 +768,14 @@ function nt(e, t, n) {
|
|
|
768
768
|
}
|
|
769
769
|
function c(_) {
|
|
770
770
|
var v = _ - l, j = _ - d, x = t - v;
|
|
771
|
-
return m ?
|
|
771
|
+
return m ? Zs(x, r - j) : x;
|
|
772
772
|
}
|
|
773
773
|
function M(_) {
|
|
774
774
|
var v = _ - l, j = _ - d;
|
|
775
775
|
return l === void 0 || v >= t || v < 0 || m && j >= r;
|
|
776
776
|
}
|
|
777
777
|
function T() {
|
|
778
|
-
var _ =
|
|
778
|
+
var _ = Ct();
|
|
779
779
|
if (M(_))
|
|
780
780
|
return U(_);
|
|
781
781
|
o = setTimeout(T, c(_));
|
|
@@ -786,11 +786,11 @@ function nt(e, t, n) {
|
|
|
786
786
|
function b() {
|
|
787
787
|
o !== void 0 && clearTimeout(o), d = 0, i = l = a = o = void 0;
|
|
788
788
|
}
|
|
789
|
-
function
|
|
790
|
-
return o === void 0 ? s : U(
|
|
789
|
+
function O() {
|
|
790
|
+
return o === void 0 ? s : U(Ct());
|
|
791
791
|
}
|
|
792
792
|
function k() {
|
|
793
|
-
var _ =
|
|
793
|
+
var _ = Ct(), v = M(_);
|
|
794
794
|
if (i = arguments, a = this, l = _, v) {
|
|
795
795
|
if (o === void 0)
|
|
796
796
|
return N(l);
|
|
@@ -799,65 +799,65 @@ function nt(e, t, n) {
|
|
|
799
799
|
}
|
|
800
800
|
return o === void 0 && (o = setTimeout(T, t)), s;
|
|
801
801
|
}
|
|
802
|
-
return k.cancel = b, k.flush =
|
|
803
|
-
}
|
|
804
|
-
var Zs = "__lodash_hash_undefined__";
|
|
805
|
-
function Js(e) {
|
|
806
|
-
return this.__data__.set(e, Zs), this;
|
|
802
|
+
return k.cancel = b, k.flush = O, k;
|
|
807
803
|
}
|
|
804
|
+
var Js = "__lodash_hash_undefined__";
|
|
808
805
|
function Qs(e) {
|
|
806
|
+
return this.__data__.set(e, Js), this;
|
|
807
|
+
}
|
|
808
|
+
function Xs(e) {
|
|
809
809
|
return this.__data__.has(e);
|
|
810
810
|
}
|
|
811
|
-
function
|
|
811
|
+
function lt(e) {
|
|
812
812
|
var t = -1, n = e == null ? 0 : e.length;
|
|
813
813
|
for (this.__data__ = new Se(); ++t < n; )
|
|
814
814
|
this.add(e[t]);
|
|
815
815
|
}
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
function
|
|
816
|
+
lt.prototype.add = lt.prototype.push = Qs;
|
|
817
|
+
lt.prototype.has = Xs;
|
|
818
|
+
function el(e, t, n, i) {
|
|
819
819
|
for (var a = e.length, r = n + -1; ++r < a; )
|
|
820
820
|
if (t(e[r], r, e))
|
|
821
821
|
return r;
|
|
822
822
|
return -1;
|
|
823
823
|
}
|
|
824
|
-
function
|
|
824
|
+
function tl(e) {
|
|
825
825
|
return e !== e;
|
|
826
826
|
}
|
|
827
|
-
function
|
|
827
|
+
function nl(e, t, n) {
|
|
828
828
|
for (var i = n - 1, a = e.length; ++i < a; )
|
|
829
829
|
if (e[i] === t)
|
|
830
830
|
return i;
|
|
831
831
|
return -1;
|
|
832
832
|
}
|
|
833
|
-
function
|
|
834
|
-
return t === t ?
|
|
833
|
+
function il(e, t, n) {
|
|
834
|
+
return t === t ? nl(e, t, n) : el(e, tl, n);
|
|
835
835
|
}
|
|
836
|
-
function
|
|
836
|
+
function al(e, t) {
|
|
837
837
|
var n = e == null ? 0 : e.length;
|
|
838
|
-
return !!n &&
|
|
838
|
+
return !!n && il(e, t, 0) > -1;
|
|
839
839
|
}
|
|
840
|
-
function
|
|
840
|
+
function rl(e, t) {
|
|
841
841
|
return e.has(t);
|
|
842
842
|
}
|
|
843
|
-
function
|
|
843
|
+
function ol() {
|
|
844
844
|
}
|
|
845
|
-
function
|
|
845
|
+
function ri(e) {
|
|
846
846
|
var t = -1, n = Array(e.size);
|
|
847
847
|
return e.forEach(function(i) {
|
|
848
848
|
n[++t] = i;
|
|
849
849
|
}), n;
|
|
850
850
|
}
|
|
851
|
-
var
|
|
851
|
+
var sl = 1 / 0, ll = ze && 1 / ri(new ze([, -0]))[1] == sl ? function(e) {
|
|
852
852
|
return new ze(e);
|
|
853
|
-
} :
|
|
854
|
-
function
|
|
855
|
-
var i = -1, a =
|
|
856
|
-
if (r >=
|
|
857
|
-
var d =
|
|
853
|
+
} : ol, dl = 200;
|
|
854
|
+
function ul(e, t, n) {
|
|
855
|
+
var i = -1, a = al, r = e.length, s = !0, o = [], l = o;
|
|
856
|
+
if (r >= dl) {
|
|
857
|
+
var d = ll(e);
|
|
858
858
|
if (d)
|
|
859
|
-
return
|
|
860
|
-
s = !1, a =
|
|
859
|
+
return ri(d);
|
|
860
|
+
s = !1, a = rl, l = new lt();
|
|
861
861
|
} else
|
|
862
862
|
l = o;
|
|
863
863
|
e:
|
|
@@ -872,21 +872,21 @@ function dl(e, t, n) {
|
|
|
872
872
|
}
|
|
873
873
|
return o;
|
|
874
874
|
}
|
|
875
|
-
function ri(e) {
|
|
876
|
-
return e && e.length ? dl(e) : [];
|
|
877
|
-
}
|
|
878
|
-
var ul = 0;
|
|
879
875
|
function oi(e) {
|
|
880
|
-
|
|
881
|
-
|
|
876
|
+
return e && e.length ? ul(e) : [];
|
|
877
|
+
}
|
|
878
|
+
var cl = 0;
|
|
879
|
+
function si(e) {
|
|
880
|
+
var t = ++cl;
|
|
881
|
+
return Hn(e) + t;
|
|
882
882
|
}
|
|
883
|
-
var
|
|
884
|
-
function
|
|
883
|
+
var li = /d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g, Ce = "\\d\\d?", Te = "\\d\\d", ml = "\\d{3}", fl = "\\d{4}", Xe = "[^\\s]+", di = /\[([^]*?)\]/gm;
|
|
884
|
+
function ui(e, t) {
|
|
885
885
|
for (var n = [], i = 0, a = e.length; i < a; i++)
|
|
886
886
|
n.push(e[i].substr(0, t));
|
|
887
887
|
return n;
|
|
888
888
|
}
|
|
889
|
-
var
|
|
889
|
+
var pn = function(e) {
|
|
890
890
|
return function(t, n) {
|
|
891
891
|
var i = n[e].map(function(r) {
|
|
892
892
|
return r.toLowerCase();
|
|
@@ -904,7 +904,7 @@ function Pe(e) {
|
|
|
904
904
|
}
|
|
905
905
|
return e;
|
|
906
906
|
}
|
|
907
|
-
var
|
|
907
|
+
var ci = [
|
|
908
908
|
"Sunday",
|
|
909
909
|
"Monday",
|
|
910
910
|
"Tuesday",
|
|
@@ -912,7 +912,7 @@ var ui = [
|
|
|
912
912
|
"Thursday",
|
|
913
913
|
"Friday",
|
|
914
914
|
"Saturday"
|
|
915
|
-
],
|
|
915
|
+
], mi = [
|
|
916
916
|
"January",
|
|
917
917
|
"February",
|
|
918
918
|
"March",
|
|
@@ -925,24 +925,24 @@ var ui = [
|
|
|
925
925
|
"October",
|
|
926
926
|
"November",
|
|
927
927
|
"December"
|
|
928
|
-
],
|
|
929
|
-
dayNamesShort:
|
|
930
|
-
dayNames:
|
|
931
|
-
monthNamesShort:
|
|
932
|
-
monthNames:
|
|
928
|
+
], hl = ui(mi, 3), pl = ui(ci, 3), fi = {
|
|
929
|
+
dayNamesShort: pl,
|
|
930
|
+
dayNames: ci,
|
|
931
|
+
monthNamesShort: hl,
|
|
932
|
+
monthNames: mi,
|
|
933
933
|
amPm: ["am", "pm"],
|
|
934
934
|
DoFn: function(e) {
|
|
935
935
|
return e + ["th", "st", "nd", "rd"][e % 10 > 3 ? 0 : (e - e % 10 !== 10 ? 1 : 0) * e % 10];
|
|
936
936
|
}
|
|
937
|
-
},
|
|
938
|
-
return
|
|
939
|
-
},
|
|
937
|
+
}, dt = Pe({}, fi), gl = function(e) {
|
|
938
|
+
return dt = Pe(dt, e);
|
|
939
|
+
}, gn = function(e) {
|
|
940
940
|
return e.replace(/[|\\{()[^$+*?.-]/g, "\\$&");
|
|
941
941
|
}, ce = function(e, t) {
|
|
942
942
|
for (t === void 0 && (t = 2), e = String(e); e.length < t; )
|
|
943
943
|
e = "0" + e;
|
|
944
944
|
return e;
|
|
945
|
-
},
|
|
945
|
+
}, vl = {
|
|
946
946
|
D: function(e) {
|
|
947
947
|
return String(e.getDate());
|
|
948
948
|
},
|
|
@@ -1029,16 +1029,16 @@ var ui = [
|
|
|
1029
1029
|
var t = e.getTimezoneOffset();
|
|
1030
1030
|
return (t > 0 ? "-" : "+") + ce(Math.floor(Math.abs(t) / 60), 2) + ":" + ce(Math.abs(t) % 60, 2);
|
|
1031
1031
|
}
|
|
1032
|
-
},
|
|
1032
|
+
}, vn = function(e) {
|
|
1033
1033
|
return +e - 1;
|
|
1034
|
-
},
|
|
1034
|
+
}, bn = [null, Ce], yn = [null, Xe], _n = [
|
|
1035
1035
|
"isPm",
|
|
1036
1036
|
Xe,
|
|
1037
1037
|
function(e, t) {
|
|
1038
1038
|
var n = e.toLowerCase();
|
|
1039
1039
|
return n === t.amPm[0] ? 0 : n === t.amPm[1] ? 1 : null;
|
|
1040
1040
|
}
|
|
1041
|
-
],
|
|
1041
|
+
], wn = [
|
|
1042
1042
|
"timezoneOffset",
|
|
1043
1043
|
"[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",
|
|
1044
1044
|
function(e) {
|
|
@@ -1049,14 +1049,14 @@ var ui = [
|
|
|
1049
1049
|
}
|
|
1050
1050
|
return 0;
|
|
1051
1051
|
}
|
|
1052
|
-
],
|
|
1052
|
+
], bl = {
|
|
1053
1053
|
D: ["day", Ce],
|
|
1054
1054
|
DD: ["day", Te],
|
|
1055
1055
|
Do: ["day", Ce + Xe, function(e) {
|
|
1056
1056
|
return parseInt(e, 10);
|
|
1057
1057
|
}],
|
|
1058
|
-
M: ["month", Ce,
|
|
1059
|
-
MM: ["month", Te,
|
|
1058
|
+
M: ["month", Ce, vn],
|
|
1059
|
+
MM: ["month", Te, vn],
|
|
1060
1060
|
YY: [
|
|
1061
1061
|
"year",
|
|
1062
1062
|
Te,
|
|
@@ -1073,25 +1073,25 @@ var ui = [
|
|
|
1073
1073
|
mm: ["minute", Te],
|
|
1074
1074
|
s: ["second", Ce],
|
|
1075
1075
|
ss: ["second", Te],
|
|
1076
|
-
YYYY: ["year",
|
|
1076
|
+
YYYY: ["year", fl],
|
|
1077
1077
|
S: ["millisecond", "\\d", function(e) {
|
|
1078
1078
|
return +e * 100;
|
|
1079
1079
|
}],
|
|
1080
1080
|
SS: ["millisecond", Te, function(e) {
|
|
1081
1081
|
return +e * 10;
|
|
1082
1082
|
}],
|
|
1083
|
-
SSS: ["millisecond",
|
|
1084
|
-
d:
|
|
1085
|
-
dd:
|
|
1086
|
-
ddd:
|
|
1087
|
-
dddd:
|
|
1088
|
-
MMM: ["month", Xe,
|
|
1089
|
-
MMMM: ["month", Xe,
|
|
1090
|
-
a:
|
|
1091
|
-
A:
|
|
1092
|
-
ZZ:
|
|
1093
|
-
Z:
|
|
1094
|
-
},
|
|
1083
|
+
SSS: ["millisecond", ml],
|
|
1084
|
+
d: bn,
|
|
1085
|
+
dd: bn,
|
|
1086
|
+
ddd: yn,
|
|
1087
|
+
dddd: yn,
|
|
1088
|
+
MMM: ["month", Xe, pn("monthNamesShort")],
|
|
1089
|
+
MMMM: ["month", Xe, pn("monthNames")],
|
|
1090
|
+
a: _n,
|
|
1091
|
+
A: _n,
|
|
1092
|
+
ZZ: wn,
|
|
1093
|
+
Z: wn
|
|
1094
|
+
}, ut = {
|
|
1095
1095
|
default: "ddd MMM DD YYYY HH:mm:ss",
|
|
1096
1096
|
shortDate: "M/D/YY",
|
|
1097
1097
|
mediumDate: "MMM D, YYYY",
|
|
@@ -1102,27 +1102,27 @@ var ui = [
|
|
|
1102
1102
|
shortTime: "HH:mm",
|
|
1103
1103
|
mediumTime: "HH:mm:ss",
|
|
1104
1104
|
longTime: "HH:mm:ss.SSS"
|
|
1105
|
-
},
|
|
1106
|
-
return Pe(
|
|
1107
|
-
},
|
|
1108
|
-
if (t === void 0 && (t =
|
|
1105
|
+
}, yl = function(e) {
|
|
1106
|
+
return Pe(ut, e);
|
|
1107
|
+
}, _l = function(e, t, n) {
|
|
1108
|
+
if (t === void 0 && (t = ut.default), n === void 0 && (n = {}), typeof e == "number" && (e = new Date(e)), Object.prototype.toString.call(e) !== "[object Date]" || isNaN(e.getTime()))
|
|
1109
1109
|
throw new Error("Invalid Date pass to format");
|
|
1110
|
-
t =
|
|
1110
|
+
t = ut[t] || t;
|
|
1111
1111
|
var i = [];
|
|
1112
|
-
t = t.replace(
|
|
1112
|
+
t = t.replace(di, function(r, s) {
|
|
1113
1113
|
return i.push(s), "@@@";
|
|
1114
1114
|
});
|
|
1115
|
-
var a = Pe(Pe({},
|
|
1116
|
-
return t = t.replace(
|
|
1117
|
-
return
|
|
1115
|
+
var a = Pe(Pe({}, dt), n);
|
|
1116
|
+
return t = t.replace(li, function(r) {
|
|
1117
|
+
return vl[r](e, a);
|
|
1118
1118
|
}), t.replace(/@@@/g, function() {
|
|
1119
1119
|
return i.shift();
|
|
1120
1120
|
});
|
|
1121
1121
|
};
|
|
1122
|
-
function
|
|
1122
|
+
function wl(e, t, n) {
|
|
1123
1123
|
if (n === void 0 && (n = {}), typeof t != "string")
|
|
1124
1124
|
throw new Error("Invalid format in fecha parse");
|
|
1125
|
-
if (t =
|
|
1125
|
+
if (t = ut[t] || t, e.length > 1e3)
|
|
1126
1126
|
return null;
|
|
1127
1127
|
var i = /* @__PURE__ */ new Date(), a = {
|
|
1128
1128
|
year: i.getFullYear(),
|
|
@@ -1134,24 +1134,24 @@ function _l(e, t, n) {
|
|
|
1134
1134
|
millisecond: 0,
|
|
1135
1135
|
isPm: null,
|
|
1136
1136
|
timezoneOffset: null
|
|
1137
|
-
}, r = [], s = [], o = t.replace(
|
|
1138
|
-
return s.push(
|
|
1137
|
+
}, r = [], s = [], o = t.replace(di, function(O, k) {
|
|
1138
|
+
return s.push(gn(k)), "@@@";
|
|
1139
1139
|
}), l = {}, d = {};
|
|
1140
|
-
o =
|
|
1141
|
-
var k =
|
|
1140
|
+
o = gn(o).replace(li, function(O) {
|
|
1141
|
+
var k = bl[O], _ = k[0], v = k[1], j = k[3];
|
|
1142
1142
|
if (l[_])
|
|
1143
1143
|
throw new Error("Invalid format. " + _ + " specified twice in format");
|
|
1144
1144
|
return l[_] = !0, j && (d[j] = !0), r.push(k), "(" + v + ")";
|
|
1145
|
-
}), Object.keys(d).forEach(function(
|
|
1146
|
-
if (!l[
|
|
1147
|
-
throw new Error("Invalid format. " +
|
|
1145
|
+
}), Object.keys(d).forEach(function(O) {
|
|
1146
|
+
if (!l[O])
|
|
1147
|
+
throw new Error("Invalid format. " + O + " is required in specified format");
|
|
1148
1148
|
}), o = o.replace(/@@@/g, function() {
|
|
1149
1149
|
return s.shift();
|
|
1150
1150
|
});
|
|
1151
1151
|
var h = e.match(new RegExp(o, "i"));
|
|
1152
1152
|
if (!h)
|
|
1153
1153
|
return null;
|
|
1154
|
-
for (var m = Pe(Pe({},
|
|
1154
|
+
for (var m = Pe(Pe({}, dt), n), p = 1; p < h.length; p++) {
|
|
1155
1155
|
var E = r[p - 1], N = E[0], c = E[2], M = c ? c(h[p], m) : +h[p];
|
|
1156
1156
|
if (M == null)
|
|
1157
1157
|
return null;
|
|
@@ -1174,14 +1174,14 @@ function _l(e, t, n) {
|
|
|
1174
1174
|
return null;
|
|
1175
1175
|
return T;
|
|
1176
1176
|
}
|
|
1177
|
-
var
|
|
1178
|
-
format:
|
|
1179
|
-
parse:
|
|
1180
|
-
defaultI18n:
|
|
1181
|
-
setGlobalDateI18n:
|
|
1182
|
-
setGlobalDateMasks:
|
|
1177
|
+
var Be = {
|
|
1178
|
+
format: _l,
|
|
1179
|
+
parse: wl,
|
|
1180
|
+
defaultI18n: fi,
|
|
1181
|
+
setGlobalDateI18n: gl,
|
|
1182
|
+
setGlobalDateMasks: yl
|
|
1183
1183
|
};
|
|
1184
|
-
function
|
|
1184
|
+
function Ml(e, t, n) {
|
|
1185
1185
|
switch (n.length) {
|
|
1186
1186
|
case 0:
|
|
1187
1187
|
return e.call(t);
|
|
@@ -1194,87 +1194,87 @@ function wl(e, t, n) {
|
|
|
1194
1194
|
}
|
|
1195
1195
|
return e.apply(t, n);
|
|
1196
1196
|
}
|
|
1197
|
-
var
|
|
1198
|
-
function
|
|
1199
|
-
return t =
|
|
1200
|
-
for (var i = arguments, a = -1, r =
|
|
1197
|
+
var Mn = Math.max;
|
|
1198
|
+
function Sl(e, t, n) {
|
|
1199
|
+
return t = Mn(t === void 0 ? e.length - 1 : t, 0), function() {
|
|
1200
|
+
for (var i = arguments, a = -1, r = Mn(i.length - t, 0), s = Array(r); ++a < r; )
|
|
1201
1201
|
s[a] = i[t + a];
|
|
1202
1202
|
a = -1;
|
|
1203
1203
|
for (var o = Array(t + 1); ++a < t; )
|
|
1204
1204
|
o[a] = i[a];
|
|
1205
|
-
return o[t] = n(s),
|
|
1205
|
+
return o[t] = n(s), Ml(e, this, o);
|
|
1206
1206
|
};
|
|
1207
1207
|
}
|
|
1208
|
-
function
|
|
1208
|
+
function Tl(e) {
|
|
1209
1209
|
return function() {
|
|
1210
1210
|
return e;
|
|
1211
1211
|
};
|
|
1212
1212
|
}
|
|
1213
|
-
var
|
|
1214
|
-
return
|
|
1213
|
+
var Cl = st ? function(e, t) {
|
|
1214
|
+
return st(e, "toString", {
|
|
1215
1215
|
configurable: !0,
|
|
1216
1216
|
enumerable: !1,
|
|
1217
|
-
value:
|
|
1217
|
+
value: Tl(t),
|
|
1218
1218
|
writable: !0
|
|
1219
1219
|
});
|
|
1220
|
-
} :
|
|
1221
|
-
function
|
|
1220
|
+
} : Pt, Il = 800, Ol = 16, Al = Date.now;
|
|
1221
|
+
function El(e) {
|
|
1222
1222
|
var t = 0, n = 0;
|
|
1223
1223
|
return function() {
|
|
1224
|
-
var i =
|
|
1224
|
+
var i = Al(), a = Ol - (i - n);
|
|
1225
1225
|
if (n = i, a > 0) {
|
|
1226
|
-
if (++t >=
|
|
1226
|
+
if (++t >= Il)
|
|
1227
1227
|
return arguments[0];
|
|
1228
1228
|
} else
|
|
1229
1229
|
t = 0;
|
|
1230
1230
|
return e.apply(void 0, arguments);
|
|
1231
1231
|
};
|
|
1232
1232
|
}
|
|
1233
|
-
var
|
|
1234
|
-
function
|
|
1235
|
-
return
|
|
1233
|
+
var Fl = El(Cl);
|
|
1234
|
+
function kl(e, t) {
|
|
1235
|
+
return Fl(Sl(e, t, Pt), e + "");
|
|
1236
1236
|
}
|
|
1237
|
-
function
|
|
1237
|
+
function Ul(e, t, n) {
|
|
1238
1238
|
if (!me(n))
|
|
1239
1239
|
return !1;
|
|
1240
1240
|
var i = typeof t;
|
|
1241
|
-
return (i == "number" ?
|
|
1241
|
+
return (i == "number" ? ht(n) && qn(t, n.length) : i == "string" && t in n) ? vt(n[t], e) : !1;
|
|
1242
1242
|
}
|
|
1243
|
-
var
|
|
1243
|
+
var hi = Object.prototype, $l = hi.hasOwnProperty, Vl = kl(function(e, t) {
|
|
1244
1244
|
e = Object(e);
|
|
1245
1245
|
var n = -1, i = t.length, a = i > 2 ? t[2] : void 0;
|
|
1246
|
-
for (a &&
|
|
1247
|
-
for (var r = t[n], s =
|
|
1246
|
+
for (a && Ul(t[0], t[1], a) && (i = 1); ++n < i; )
|
|
1247
|
+
for (var r = t[n], s = wt(r), o = -1, l = s.length; ++o < l; ) {
|
|
1248
1248
|
var d = s[o], h = e[d];
|
|
1249
|
-
(h === void 0 ||
|
|
1249
|
+
(h === void 0 || vt(h, hi[d]) && !$l.call(e, d)) && (e[d] = r[d]);
|
|
1250
1250
|
}
|
|
1251
1251
|
return e;
|
|
1252
|
-
}),
|
|
1253
|
-
function
|
|
1254
|
-
return typeof e == "number" &&
|
|
1252
|
+
}), jl = pe.isFinite;
|
|
1253
|
+
function Rl(e) {
|
|
1254
|
+
return typeof e == "number" && jl(e);
|
|
1255
1255
|
}
|
|
1256
|
-
var
|
|
1257
|
-
function
|
|
1256
|
+
var Sn = 1 / 0, Pl = 17976931348623157e292;
|
|
1257
|
+
function Nl(e) {
|
|
1258
1258
|
if (!e)
|
|
1259
1259
|
return e === 0 ? e : 0;
|
|
1260
|
-
if (e =
|
|
1260
|
+
if (e = kt(e), e === Sn || e === -Sn) {
|
|
1261
1261
|
var t = e < 0 ? -1 : 1;
|
|
1262
|
-
return t *
|
|
1262
|
+
return t * Pl;
|
|
1263
1263
|
}
|
|
1264
1264
|
return e === e ? e : 0;
|
|
1265
1265
|
}
|
|
1266
|
-
function
|
|
1267
|
-
var t =
|
|
1266
|
+
function Ll(e) {
|
|
1267
|
+
var t = Nl(e), n = t % 1;
|
|
1268
1268
|
return t === t ? n ? t - n : t : 0;
|
|
1269
1269
|
}
|
|
1270
|
-
function
|
|
1271
|
-
return typeof e == "number" && e ==
|
|
1270
|
+
function ql(e) {
|
|
1271
|
+
return typeof e == "number" && e == Ll(e);
|
|
1272
1272
|
}
|
|
1273
|
-
var
|
|
1274
|
-
function
|
|
1275
|
-
return typeof e == "number" || Fe(e) && Ee(e) ==
|
|
1273
|
+
var Kl = "[object Number]";
|
|
1274
|
+
function ct(e) {
|
|
1275
|
+
return typeof e == "number" || Fe(e) && Ee(e) == Kl;
|
|
1276
1276
|
}
|
|
1277
|
-
const
|
|
1277
|
+
const Dl = {
|
|
1278
1278
|
packageName: "forms",
|
|
1279
1279
|
disable_global_radio: "The plugin is set to 'Scoped' by default when configured under a {scope}. To configure a global plugin, navigate to the global plugin list page.",
|
|
1280
1280
|
disable_source_scope_change: "Changing the {scope} is not allowed when configuring a plugin under it."
|
|
@@ -1322,7 +1322,7 @@ const Kl = {
|
|
|
1322
1322
|
title: "Configure your Redis",
|
|
1323
1323
|
address_example: "e.g. localhost:6379"
|
|
1324
1324
|
}
|
|
1325
|
-
},
|
|
1325
|
+
}, zl = {
|
|
1326
1326
|
field_is_required: "This field is required",
|
|
1327
1327
|
invalid_format: "Invalid format",
|
|
1328
1328
|
number_too_small: "The number is too small. Minimum: {0}",
|
|
@@ -1344,7 +1344,7 @@ const Kl = {
|
|
|
1344
1344
|
invalid_card_number: "Invalid card number",
|
|
1345
1345
|
invalid_text_contain_number: "Invalid text - cannot contains numbers or special characters",
|
|
1346
1346
|
invalid_tex_contain_spec: "Invalid text - cannot contains special characters"
|
|
1347
|
-
},
|
|
1347
|
+
}, Yl = {
|
|
1348
1348
|
title: "Redis Configuration",
|
|
1349
1349
|
shared_configuration: {
|
|
1350
1350
|
label: "Use shared configuration",
|
|
@@ -1379,13 +1379,13 @@ const Kl = {
|
|
|
1379
1379
|
alert: "Note: For custom plugins, we cannot determine the correct Redis configuration type. Please ensure you select the appropriate option manually.",
|
|
1380
1380
|
tooltip: "To apply a shared redis configuration, the redis fields must defined as Kong plugins in plugin schema."
|
|
1381
1381
|
}
|
|
1382
|
-
},
|
|
1382
|
+
}, Hl = {
|
|
1383
1383
|
labels: {
|
|
1384
1384
|
on: "On",
|
|
1385
1385
|
off: "Off"
|
|
1386
1386
|
}
|
|
1387
1387
|
}, ve = {
|
|
1388
|
-
general:
|
|
1388
|
+
general: Dl,
|
|
1389
1389
|
"post-function": {
|
|
1390
1390
|
tags: {
|
|
1391
1391
|
hint: "e.g. tag1, tag2, tag3",
|
|
@@ -1447,9 +1447,9 @@ const Kl = {
|
|
|
1447
1447
|
}
|
|
1448
1448
|
},
|
|
1449
1449
|
rla: Bl,
|
|
1450
|
-
validators:
|
|
1451
|
-
redis:
|
|
1452
|
-
vfg:
|
|
1450
|
+
validators: zl,
|
|
1451
|
+
redis: Yl,
|
|
1452
|
+
vfg: Hl
|
|
1453
1453
|
}, { t: Q } = ge("en-us", ve), oe = {
|
|
1454
1454
|
fieldIsRequired: Q("validators.field_is_required"),
|
|
1455
1455
|
invalidFormat: Q("validators.invalid_format"),
|
|
@@ -1481,15 +1481,15 @@ const Kl = {
|
|
|
1481
1481
|
required: (e, t, n, i = oe) => fe(e, t.required, i) || [],
|
|
1482
1482
|
number: (e, t, n, i = oe) => {
|
|
1483
1483
|
let a = fe(e, t.required, i);
|
|
1484
|
-
return a != null || (a = [],
|
|
1484
|
+
return a != null || (a = [], Rl(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;
|
|
1485
1485
|
},
|
|
1486
1486
|
integer: (e, t, n, i = oe) => {
|
|
1487
1487
|
let a = fe(e, t.required, i);
|
|
1488
|
-
return a != null || (a = [], a.concat(Ne.number(e, t, n, i)),
|
|
1488
|
+
return a != null || (a = [], a.concat(Ne.number(e, t, n, i)), ql(e) || a.push(Z(i.invalidInteger))), a;
|
|
1489
1489
|
},
|
|
1490
1490
|
double: (e, t, n, i = oe) => {
|
|
1491
1491
|
const a = fe(e, t.required, i);
|
|
1492
|
-
return a ?? (!
|
|
1492
|
+
return a ?? (!ct(e) || isNaN(e) ? [Z(i.invalidNumber)] : []);
|
|
1493
1493
|
},
|
|
1494
1494
|
string: (e, t, n, i = oe) => {
|
|
1495
1495
|
let a = fe(e, t.required, i);
|
|
@@ -1519,11 +1519,11 @@ const Kl = {
|
|
|
1519
1519
|
return [Z(i.invalidDate)];
|
|
1520
1520
|
if (!X(t.min)) {
|
|
1521
1521
|
const s = new Date(t.min);
|
|
1522
|
-
r.valueOf() < s.valueOf() && a.push(Z(i.dateIsEarly,
|
|
1522
|
+
r.valueOf() < s.valueOf() && a.push(Z(i.dateIsEarly, Be.format(r), Be.format(s)));
|
|
1523
1523
|
}
|
|
1524
1524
|
if (!X(t.max)) {
|
|
1525
1525
|
const s = new Date(t.max);
|
|
1526
|
-
r.valueOf() > s.valueOf() && a.push(Z(i.dateIsLate,
|
|
1526
|
+
r.valueOf() > s.valueOf() && a.push(Z(i.dateIsLate, Be.format(r), Be.format(s)));
|
|
1527
1527
|
}
|
|
1528
1528
|
return a;
|
|
1529
1529
|
},
|
|
@@ -1561,15 +1561,15 @@ const Kl = {
|
|
|
1561
1561
|
};
|
|
1562
1562
|
Object.keys(Ne).forEach((e) => {
|
|
1563
1563
|
const t = Ne[e];
|
|
1564
|
-
z(t) && (t.locale = (n) => (i, a, r) => t(i, a, r,
|
|
1564
|
+
z(t) && (t.locale = (n) => (i, a, r) => t(i, a, r, Vl(n, oe)));
|
|
1565
1565
|
});
|
|
1566
|
-
function
|
|
1566
|
+
function Tn(e) {
|
|
1567
1567
|
return Re(e) ? Ne[e] != null ? Ne[e] : (console.warn(`'${e}' is not a validator function!`), null) : e;
|
|
1568
1568
|
}
|
|
1569
|
-
function
|
|
1570
|
-
let i =
|
|
1569
|
+
function It(e, t, n) {
|
|
1570
|
+
let i = B(n.context, "schema.attributes", {});
|
|
1571
1571
|
const a = t.value || "input";
|
|
1572
|
-
Re(a) && (i =
|
|
1572
|
+
Re(a) && (i = B(i, a) || i), le(i, (r, s) => {
|
|
1573
1573
|
e.setAttribute(s, r);
|
|
1574
1574
|
});
|
|
1575
1575
|
}
|
|
@@ -1586,9 +1586,9 @@ const be = {
|
|
|
1586
1586
|
},
|
|
1587
1587
|
directives: {
|
|
1588
1588
|
attributes: {
|
|
1589
|
-
beforeMount:
|
|
1590
|
-
updated:
|
|
1591
|
-
componentUpdated:
|
|
1589
|
+
beforeMount: It,
|
|
1590
|
+
updated: It,
|
|
1591
|
+
componentUpdated: It
|
|
1592
1592
|
}
|
|
1593
1593
|
},
|
|
1594
1594
|
computed: {
|
|
@@ -1596,7 +1596,7 @@ const be = {
|
|
|
1596
1596
|
cache: !1,
|
|
1597
1597
|
get() {
|
|
1598
1598
|
let e;
|
|
1599
|
-
return z(
|
|
1599
|
+
return z(B(this.schema, "get")) ? e = this.schema.get(this.model) : e = B(this.model, this.schema.model), this.formatValueToField(e);
|
|
1600
1600
|
},
|
|
1601
1601
|
set(e) {
|
|
1602
1602
|
const t = this.value;
|
|
@@ -1607,13 +1607,13 @@ const be = {
|
|
|
1607
1607
|
methods: {
|
|
1608
1608
|
validate(e) {
|
|
1609
1609
|
this.clearValidationErrors();
|
|
1610
|
-
const t =
|
|
1610
|
+
const t = B(this.formOptions, "validateAsync", !1);
|
|
1611
1611
|
let n = [];
|
|
1612
1612
|
if (this.schema.validator && this.schema.readonly !== !0 && this.disabled !== !0) {
|
|
1613
1613
|
const a = [];
|
|
1614
1614
|
Array.isArray(this.schema.validator) ? le(this.schema.validator, (r) => {
|
|
1615
|
-
a.push(
|
|
1616
|
-
}) : a.push(
|
|
1615
|
+
a.push(Tn(r).bind(this));
|
|
1616
|
+
}) : a.push(Tn(this.schema.validator).bind(this)), le(a, (r) => {
|
|
1617
1617
|
if (t)
|
|
1618
1618
|
n.push(r(this.value, this.schema, this.model));
|
|
1619
1619
|
else {
|
|
@@ -1628,7 +1628,7 @@ const be = {
|
|
|
1628
1628
|
}
|
|
1629
1629
|
const i = (a) => {
|
|
1630
1630
|
let r = [];
|
|
1631
|
-
le(
|
|
1631
|
+
le(oi(a), (o) => {
|
|
1632
1632
|
Array.isArray(o) && o.length > 0 ? r = r.concat(o) : Re(o) && r.push(o);
|
|
1633
1633
|
}), z(this.schema.onValidated) && this.schema.onValidated.call(this, this.model, r, this.schema);
|
|
1634
1634
|
const s = r.length === 0;
|
|
@@ -1639,12 +1639,12 @@ const be = {
|
|
|
1639
1639
|
debouncedValidate() {
|
|
1640
1640
|
z(this.debouncedValidateFunc) || (this.debouncedValidateFunc = nt(
|
|
1641
1641
|
this.validate.bind(this),
|
|
1642
|
-
|
|
1642
|
+
B(this.schema, "validateDebounceTime", B(this.formOptions, "validateDebounceTime", 500))
|
|
1643
1643
|
)), this.debouncedValidateFunc();
|
|
1644
1644
|
},
|
|
1645
1645
|
updateModelValue(e, t) {
|
|
1646
1646
|
let n = !1;
|
|
1647
|
-
z(this.schema.set) ? (this.schema.set(this.model, e), n = !0) : this.schema.model && (this.setModelValueByPath(this.schema.model, e), n = !0), n && (this.$emit("modelUpdated", e, this.schema.model), z(this.schema.onChanged) && this.schema.onChanged.call(this, this.model, e, t, this.schema),
|
|
1647
|
+
z(this.schema.set) ? (this.schema.set(this.model, e), n = !0) : this.schema.model && (this.setModelValueByPath(this.schema.model, e), n = !0), n && (this.$emit("modelUpdated", e, this.schema.model), z(this.schema.onChanged) && this.schema.onChanged.call(this, this.model, e, t, this.schema), B(this.formOptions, "validateAfterChanged", !1) === !0 && (B(this.schema, "validateDebounceTime", B(this.formOptions, "validateDebounceTime", 0)) > 0 ? this.debouncedValidate() : this.validate()));
|
|
1648
1648
|
},
|
|
1649
1649
|
clearValidationErrors() {
|
|
1650
1650
|
this.errors.splice(0);
|
|
@@ -1668,14 +1668,14 @@ const be = {
|
|
|
1668
1668
|
}
|
|
1669
1669
|
},
|
|
1670
1670
|
getFieldID(e, t = !1) {
|
|
1671
|
-
const n =
|
|
1672
|
-
return
|
|
1671
|
+
const n = B(this.formOptions, "fieldIdPrefix", "");
|
|
1672
|
+
return Kt(e, n) + (t ? "-" + si() : "");
|
|
1673
1673
|
},
|
|
1674
1674
|
getLabelId(e) {
|
|
1675
1675
|
return `${this.getFieldID(e)}-label`;
|
|
1676
1676
|
},
|
|
1677
1677
|
getFieldClasses() {
|
|
1678
|
-
return
|
|
1678
|
+
return B(this.schema, "fieldClasses", []);
|
|
1679
1679
|
},
|
|
1680
1680
|
formatValueToField(e) {
|
|
1681
1681
|
return e;
|
|
@@ -1684,7 +1684,7 @@ const be = {
|
|
|
1684
1684
|
return e;
|
|
1685
1685
|
}
|
|
1686
1686
|
}
|
|
1687
|
-
},
|
|
1687
|
+
}, Sm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1688
1688
|
__proto__: null,
|
|
1689
1689
|
default: be
|
|
1690
1690
|
}, Symbol.toStringTag, { value: "Module" })), Y = (e, t) => {
|
|
@@ -1692,10 +1692,10 @@ const be = {
|
|
|
1692
1692
|
for (const [i, a] of t)
|
|
1693
1693
|
n[i] = a;
|
|
1694
1694
|
return n;
|
|
1695
|
-
},
|
|
1695
|
+
}, xl = {
|
|
1696
1696
|
class: "advanced-field-dropdown-wrapper",
|
|
1697
1697
|
"data-testid": "advanced-field-dropdown-wrapper"
|
|
1698
|
-
},
|
|
1698
|
+
}, Gl = { class: "material-icons" }, Wl = {
|
|
1699
1699
|
mixins: [be],
|
|
1700
1700
|
expose: ["validate", "clearValidationErrors", "schema"],
|
|
1701
1701
|
emits: ["model-updated"],
|
|
@@ -1723,16 +1723,16 @@ const be = {
|
|
|
1723
1723
|
this.$emit("model-updated", e, t);
|
|
1724
1724
|
}
|
|
1725
1725
|
}
|
|
1726
|
-
},
|
|
1726
|
+
}, Zl = /* @__PURE__ */ Object.assign(Wl, {
|
|
1727
1727
|
__name: "FieldAdvanced",
|
|
1728
1728
|
setup(e) {
|
|
1729
|
-
return (t, n) => (u(), g("div",
|
|
1729
|
+
return (t, n) => (u(), g("div", xl, [
|
|
1730
1730
|
f("button", {
|
|
1731
1731
|
class: "advanced-field-title",
|
|
1732
1732
|
type: "button",
|
|
1733
1733
|
onClick: n[0] || (n[0] = (...i) => t.handleOpen && t.handleOpen(...i))
|
|
1734
1734
|
}, [
|
|
1735
|
-
f("i",
|
|
1735
|
+
f("i", Gl, $(t.isOpen ? "keyboard_arrow_up" : "keyboard_arrow_right"), 1),
|
|
1736
1736
|
f("span", null, $(t.titleText), 1)
|
|
1737
1737
|
]),
|
|
1738
1738
|
f("div", {
|
|
@@ -1747,7 +1747,7 @@ const be = {
|
|
|
1747
1747
|
], 2)
|
|
1748
1748
|
]));
|
|
1749
1749
|
}
|
|
1750
|
-
}),
|
|
1750
|
+
}), Jl = /* @__PURE__ */ Y(Zl, [["__scopeId", "data-v-9bb032dd"]]), Ql = { class: "array-card-container" }, Xl = /* @__PURE__ */ re({
|
|
1751
1751
|
__name: "FieldArrayCardContainer",
|
|
1752
1752
|
props: {
|
|
1753
1753
|
model: {
|
|
@@ -1767,10 +1767,10 @@ const be = {
|
|
|
1767
1767
|
setup(e) {
|
|
1768
1768
|
return it("vfg-array-item-index", e.index), (n, i) => {
|
|
1769
1769
|
const a = F("KCard"), r = F("KButton");
|
|
1770
|
-
return u(), g("div",
|
|
1770
|
+
return u(), g("div", Ql, [
|
|
1771
1771
|
C(a, { class: "card" }, {
|
|
1772
|
-
default:
|
|
1773
|
-
|
|
1772
|
+
default: I(() => [
|
|
1773
|
+
Oe(n.$slots, "default", {}, void 0, !0)
|
|
1774
1774
|
]),
|
|
1775
1775
|
_: 3
|
|
1776
1776
|
}),
|
|
@@ -1779,7 +1779,7 @@ const be = {
|
|
|
1779
1779
|
class: "array-card-remove-button",
|
|
1780
1780
|
onClick: i[0] || (i[0] = (s) => n.$emit("remove-item"))
|
|
1781
1781
|
}, {
|
|
1782
|
-
default:
|
|
1782
|
+
default: I(() => [
|
|
1783
1783
|
C(w(at))
|
|
1784
1784
|
]),
|
|
1785
1785
|
_: 1
|
|
@@ -1787,7 +1787,7 @@ const be = {
|
|
|
1787
1787
|
]);
|
|
1788
1788
|
};
|
|
1789
1789
|
}
|
|
1790
|
-
}),
|
|
1790
|
+
}), pi = /* @__PURE__ */ Y(Xl, [["__scopeId", "data-v-97302224"]]), ed = { class: "array-item-wrapper" }, td = { class: "array-item" }, nd = { class: "array-item-after" }, id = /* @__PURE__ */ re({
|
|
1791
1791
|
__name: "FieldArrayItem",
|
|
1792
1792
|
props: {
|
|
1793
1793
|
model: {
|
|
@@ -1799,40 +1799,40 @@ const be = {
|
|
|
1799
1799
|
setup(e) {
|
|
1800
1800
|
return (t, n) => {
|
|
1801
1801
|
const i = F("KButton");
|
|
1802
|
-
return u(), g("div",
|
|
1803
|
-
f("div",
|
|
1804
|
-
|
|
1802
|
+
return u(), g("div", ed, [
|
|
1803
|
+
f("div", td, [
|
|
1804
|
+
Oe(t.$slots, "default", {}, void 0, !0),
|
|
1805
1805
|
C(i, {
|
|
1806
1806
|
appearance: "tertiary",
|
|
1807
1807
|
class: "delete",
|
|
1808
1808
|
onClick: n[0] || (n[0] = (a) => t.$emit("remove-item"))
|
|
1809
1809
|
}, {
|
|
1810
|
-
default:
|
|
1810
|
+
default: I(() => [
|
|
1811
1811
|
C(w(at))
|
|
1812
1812
|
]),
|
|
1813
1813
|
_: 1
|
|
1814
1814
|
})
|
|
1815
1815
|
]),
|
|
1816
|
-
f("div",
|
|
1817
|
-
|
|
1816
|
+
f("div", nd, [
|
|
1817
|
+
Oe(t.$slots, "after", {}, void 0, !0)
|
|
1818
1818
|
])
|
|
1819
1819
|
]);
|
|
1820
1820
|
};
|
|
1821
1821
|
}
|
|
1822
|
-
}),
|
|
1822
|
+
}), gi = /* @__PURE__ */ Y(id, [["__scopeId", "data-v-51d79db2"]]), ad = { class: "multi-item-wrapper" }, rd = /* @__PURE__ */ re({
|
|
1823
1823
|
__name: "FieldArrayMultiItem",
|
|
1824
1824
|
emits: ["remove-item"],
|
|
1825
1825
|
setup(e) {
|
|
1826
1826
|
return (t, n) => {
|
|
1827
1827
|
const i = F("KButton");
|
|
1828
|
-
return u(), g("div",
|
|
1829
|
-
|
|
1828
|
+
return u(), g("div", ad, [
|
|
1829
|
+
Oe(t.$slots, "default", {}, void 0, !0),
|
|
1830
1830
|
C(i, {
|
|
1831
1831
|
appearance: "danger",
|
|
1832
1832
|
class: "delete",
|
|
1833
1833
|
onClick: n[0] || (n[0] = (a) => t.$emit("remove-item"))
|
|
1834
1834
|
}, {
|
|
1835
|
-
default:
|
|
1835
|
+
default: I(() => n[1] || (n[1] = [
|
|
1836
1836
|
te(" - Remove Field ")
|
|
1837
1837
|
])),
|
|
1838
1838
|
_: 1
|
|
@@ -1841,16 +1841,16 @@ const be = {
|
|
|
1841
1841
|
]);
|
|
1842
1842
|
};
|
|
1843
1843
|
}
|
|
1844
|
-
}),
|
|
1844
|
+
}), vi = /* @__PURE__ */ Y(rd, [["__scopeId", "data-v-b4fcf731"]]), od = "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}", sd = (e) => e ? e.length === 36 && new RegExp(`^${od}$`).test(e) : !1, Ot = 50, Ve = {
|
|
1845
1845
|
CREATE_NOT_FROM_ENTITY: "CREATE_NOT_FROM_ENTITY",
|
|
1846
1846
|
CREATE_FROM_ENTITY: "CREATE_FROM_ENTITY",
|
|
1847
1847
|
UPDATE_ENTITY: "UPDATE_ENTITY",
|
|
1848
1848
|
SET_REFERRAL_VALUE: "SET_REFERRAL_VALUE"
|
|
1849
1849
|
};
|
|
1850
|
-
function
|
|
1850
|
+
function ld(e, t, n) {
|
|
1851
1851
|
return n ? Ve.SET_REFERRAL_VALUE : e && !t || !e && t ? Ve.UPDATE_ENTITY : e && t ? Ve.CREATE_FROM_ENTITY : Ve.CREATE_NOT_FROM_ENTITY;
|
|
1852
1852
|
}
|
|
1853
|
-
const
|
|
1853
|
+
const dd = {
|
|
1854
1854
|
mixins: [be],
|
|
1855
1855
|
inject: [$e],
|
|
1856
1856
|
emits: ["model-updated"],
|
|
@@ -1872,7 +1872,7 @@ const ld = {
|
|
|
1872
1872
|
},
|
|
1873
1873
|
computed: {
|
|
1874
1874
|
fieldState() {
|
|
1875
|
-
return
|
|
1875
|
+
return ld(this.model[this.schema.model], this.associatedEntity || this.entityId, this.bypassSearch);
|
|
1876
1876
|
},
|
|
1877
1877
|
associatedEntity() {
|
|
1878
1878
|
return this.$route && this.$route.params[this.entity];
|
|
@@ -1922,7 +1922,7 @@ const ld = {
|
|
|
1922
1922
|
return;
|
|
1923
1923
|
this.loading = !0;
|
|
1924
1924
|
const t = [], n = [], i = this.getInputFields(), a = /* @__PURE__ */ new Set();
|
|
1925
|
-
|
|
1925
|
+
sd(e) && i.includes("id") ? n.push((async () => {
|
|
1926
1926
|
const r = await this.fetchExact(e);
|
|
1927
1927
|
t.push({ ...r, label: this.getSuggestionLabel(r), value: r.id });
|
|
1928
1928
|
})()) : n.push(...i.filter((r) => r !== "id").map(async (r) => {
|
|
@@ -1975,15 +1975,15 @@ const ld = {
|
|
|
1975
1975
|
return t ? e[t] : e.id;
|
|
1976
1976
|
}
|
|
1977
1977
|
}
|
|
1978
|
-
},
|
|
1979
|
-
function
|
|
1978
|
+
}, ud = ["data-testid", "data-testlabel"], cd = ["data-testid"], md = { class: "autosuggest__results_message" };
|
|
1979
|
+
function fd(e, t, n, i, a, r) {
|
|
1980
1980
|
const s = F("KSelect");
|
|
1981
1981
|
return u(), A(ie(e.schema.disabled ? "k-tooltip" : "div"), {
|
|
1982
1982
|
class: "field-wrap autosuggest",
|
|
1983
1983
|
"max-width": "300",
|
|
1984
1984
|
text: i.t("general.disable_source_scope_change", { scope: r.scope })
|
|
1985
1985
|
}, {
|
|
1986
|
-
default:
|
|
1986
|
+
default: I(() => [
|
|
1987
1987
|
C(s, {
|
|
1988
1988
|
id: e.schema.model,
|
|
1989
1989
|
ref: "suggestion",
|
|
@@ -2000,20 +2000,20 @@ function md(e, t, n, i, a, r) {
|
|
|
2000
2000
|
onChange: r.onSelected,
|
|
2001
2001
|
onQueryChange: r.onQueryChange
|
|
2002
2002
|
}, {
|
|
2003
|
-
"item-template":
|
|
2003
|
+
"item-template": I(({ item: o }) => [
|
|
2004
2004
|
f("span", {
|
|
2005
2005
|
class: "first-part",
|
|
2006
2006
|
"data-testid": o.id && `${o.id}-0`,
|
|
2007
2007
|
"data-testlabel": o.label
|
|
2008
|
-
}, $(r.getSuggestionLabel(o).split(" - ")[0]), 9,
|
|
2008
|
+
}, $(r.getSuggestionLabel(o).split(" - ")[0]), 9, ud),
|
|
2009
2009
|
(u(!0), g(K, null, J(r.getSuggestionLabel(o).split(" - ").slice(1), (l, d) => (u(), g("span", {
|
|
2010
2010
|
key: d,
|
|
2011
2011
|
class: "field-span",
|
|
2012
2012
|
"data-testid": o.id && `${o.id}-${d + 1}` || d + 1
|
|
2013
|
-
}, $(l), 9,
|
|
2013
|
+
}, $(l), 9, cd))), 128))
|
|
2014
2014
|
]),
|
|
2015
|
-
empty:
|
|
2016
|
-
f("div",
|
|
2015
|
+
empty: I(() => [
|
|
2016
|
+
f("div", md, [
|
|
2017
2017
|
f("span", null, $(a.message), 1)
|
|
2018
2018
|
])
|
|
2019
2019
|
]),
|
|
@@ -2023,13 +2023,13 @@ function md(e, t, n, i, a, r) {
|
|
|
2023
2023
|
_: 1
|
|
2024
2024
|
}, 8, ["text"]);
|
|
2025
2025
|
}
|
|
2026
|
-
const
|
|
2027
|
-
function
|
|
2026
|
+
const bi = /* @__PURE__ */ Y(dd, [["render", fd], ["__scopeId", "data-v-40a272a2"]]);
|
|
2027
|
+
function hd(e) {
|
|
2028
2028
|
const t = ue([]), n = ue(null), i = (c) => Re(c) ? Ne[c] != null ? Ne[c] : (console.warn(`'${c}' is not a validator function!`), null) : c, a = L({
|
|
2029
2029
|
get() {
|
|
2030
2030
|
var M, T;
|
|
2031
2031
|
let c;
|
|
2032
|
-
return z(
|
|
2032
|
+
return z(B(e.schema, "get")) ? c = e.schema.get((M = e.model) == null ? void 0 : M.value) : c = B((T = e.model) == null ? void 0 : T.value, e.schema.model), E(c);
|
|
2033
2033
|
},
|
|
2034
2034
|
set(c) {
|
|
2035
2035
|
const M = a;
|
|
@@ -2038,13 +2038,13 @@ function fd(e) {
|
|
|
2038
2038
|
}), r = (c) => {
|
|
2039
2039
|
var b;
|
|
2040
2040
|
l();
|
|
2041
|
-
const M =
|
|
2041
|
+
const M = B(e.formOptions, "validateAsync", !1);
|
|
2042
2042
|
let T = [];
|
|
2043
2043
|
if (e.schema.readonly !== !0 && e.disabled !== !0) {
|
|
2044
|
-
const
|
|
2044
|
+
const O = [], k = (b = e.schema) == null ? void 0 : b.validator;
|
|
2045
2045
|
k && (Array.isArray(k) ? le(k, (_) => {
|
|
2046
|
-
|
|
2047
|
-
}) :
|
|
2046
|
+
O.push(i(_));
|
|
2047
|
+
}) : O.push(i(k))), z(e.externalValidator) && O.push(e.externalValidator), le(O, (_) => {
|
|
2048
2048
|
var v, j;
|
|
2049
2049
|
if (M)
|
|
2050
2050
|
T.push(_(a.value, e.schema, (v = e.model) == null ? void 0 : v.value));
|
|
@@ -2058,27 +2058,27 @@ function fd(e) {
|
|
|
2058
2058
|
}
|
|
2059
2059
|
});
|
|
2060
2060
|
}
|
|
2061
|
-
const U = (
|
|
2061
|
+
const U = (O) => {
|
|
2062
2062
|
var _, v;
|
|
2063
2063
|
let k = [];
|
|
2064
|
-
if (le(
|
|
2064
|
+
if (le(oi(O), (j) => {
|
|
2065
2065
|
Array.isArray(j) && j.length > 0 ? k = k.concat(j) : Re(j) && k.push(j);
|
|
2066
2066
|
}), z((_ = e.schema) == null ? void 0 : _.onValidated) && e.schema.onValidated((v = e.model) == null ? void 0 : v.value, k, e.schema), !c) {
|
|
2067
2067
|
const j = k.length === 0;
|
|
2068
2068
|
e.emitValidated && e.emitValidated({ isValid: j, errors: k, field: e.schema });
|
|
2069
2069
|
}
|
|
2070
|
-
return
|
|
2070
|
+
return O = k, k;
|
|
2071
2071
|
};
|
|
2072
2072
|
return M ? Promise.all(T).then(U) : U(T);
|
|
2073
2073
|
}, s = () => {
|
|
2074
2074
|
z(n.value) ? n.value() : n.value = nt(
|
|
2075
2075
|
r,
|
|
2076
|
-
|
|
2076
|
+
B(e.schema, "validateDebounceTime", B(e.formOptions, "validateDebounceTime", 500))
|
|
2077
2077
|
);
|
|
2078
2078
|
}, o = (c, M) => {
|
|
2079
|
-
var U, b,
|
|
2079
|
+
var U, b, O;
|
|
2080
2080
|
let T = !1;
|
|
2081
|
-
z(e.schema.set) ? (e.schema.set((U = e.model) == null ? void 0 : U.value, c), T = !0) : e.schema.model && (d(e.schema.model, c), T = !0), T && (e.emitModelUpdated && ((b = e.model) != null && b.value) && e.emitModelUpdated({ value: c, model: e.schema.model }), z(e.schema.onChanged) && e.schema.onChanged((
|
|
2081
|
+
z(e.schema.set) ? (e.schema.set((U = e.model) == null ? void 0 : U.value, c), T = !0) : e.schema.model && (d(e.schema.model, c), T = !0), T && (e.emitModelUpdated && ((b = e.model) != null && b.value) && e.emitModelUpdated({ value: c, model: e.schema.model }), z(e.schema.onChanged) && e.schema.onChanged((O = e.model) == null ? void 0 : O.value, c, M, e.schema), B(e.formOptions, "validateAfterChanged", !1) === !0 && (B(e.schema, "validateDebounceTime", B(e.formOptions, "validateDebounceTime", 0)) > 0 ? s() : r()));
|
|
2082
2082
|
}, l = () => {
|
|
2083
2083
|
t.value.splice(0);
|
|
2084
2084
|
}, d = (c, M) => {
|
|
@@ -2086,9 +2086,9 @@ function fd(e) {
|
|
|
2086
2086
|
let T = c.replace(/\[(\w+)\]/g, ".$1");
|
|
2087
2087
|
T = T.replace(/^\./, "");
|
|
2088
2088
|
let U = ((_ = e.model) == null ? void 0 : _.value) || {}, b = 0;
|
|
2089
|
-
const
|
|
2089
|
+
const O = T.split("."), k = O.length;
|
|
2090
2090
|
for (; b < k; ) {
|
|
2091
|
-
const v =
|
|
2091
|
+
const v = O[b];
|
|
2092
2092
|
if (b < k - 1)
|
|
2093
2093
|
U[v] !== void 0 || (U[v] = {}), U = U[v];
|
|
2094
2094
|
else {
|
|
@@ -2098,9 +2098,9 @@ function fd(e) {
|
|
|
2098
2098
|
++b;
|
|
2099
2099
|
}
|
|
2100
2100
|
}, h = (c, M = !1) => {
|
|
2101
|
-
const T =
|
|
2102
|
-
return
|
|
2103
|
-
}, m = (c) => `${h(c)}-label`, p = () =>
|
|
2101
|
+
const T = B(e.formOptions, "fieldIdPrefix", "");
|
|
2102
|
+
return Kt(c, T) + (M ? "-" + si() : "");
|
|
2103
|
+
}, m = (c) => `${h(c)}-label`, p = () => B(e.schema, "fieldClasses", []), E = (c) => e.formatValueToField && typeof e.formatValueToField == "function" ? e.formatValueToField(c) : c, N = (c) => e.formatValueToModel && typeof e.formatValueToModel == "function" ? e.formatValueToModel(c) : c;
|
|
2104
2104
|
return {
|
|
2105
2105
|
value: a,
|
|
2106
2106
|
clearValidationErrors: l,
|
|
@@ -2110,7 +2110,7 @@ function fd(e) {
|
|
|
2110
2110
|
updateModelValue: o
|
|
2111
2111
|
};
|
|
2112
2112
|
}
|
|
2113
|
-
function
|
|
2113
|
+
function pd(e) {
|
|
2114
2114
|
const t = [], n = (i) => {
|
|
2115
2115
|
const a = ["cluster-cache", "cluster_cache"];
|
|
2116
2116
|
for (const r of a)
|
|
@@ -2131,7 +2131,7 @@ function hd(e) {
|
|
|
2131
2131
|
redisModels: t.map((i) => i.model)
|
|
2132
2132
|
};
|
|
2133
2133
|
}
|
|
2134
|
-
function
|
|
2134
|
+
function gd(e, t) {
|
|
2135
2135
|
const n = new RegExp("(?<=config-redis-).*"), i = /Config\.Redis.*/;
|
|
2136
2136
|
return t.filter((r) => {
|
|
2137
2137
|
const s = r.model.match(n);
|
|
@@ -2147,10 +2147,10 @@ function pd(e, t) {
|
|
|
2147
2147
|
});
|
|
2148
2148
|
}
|
|
2149
2149
|
const ye = {
|
|
2150
|
-
useAbstractFields:
|
|
2151
|
-
useRedisPartial:
|
|
2152
|
-
useRedisNonStandardFields:
|
|
2153
|
-
},
|
|
2150
|
+
useAbstractFields: hd,
|
|
2151
|
+
useRedisPartial: pd,
|
|
2152
|
+
useRedisNonStandardFields: gd
|
|
2153
|
+
}, vd = { class: "form-field-wrapper" }, bd = /* @__PURE__ */ re({
|
|
2154
2154
|
__name: "FieldInput",
|
|
2155
2155
|
props: {
|
|
2156
2156
|
disabled: {
|
|
@@ -2190,7 +2190,7 @@ const ye = {
|
|
|
2190
2190
|
},
|
|
2191
2191
|
emits: ["modelUpdated"],
|
|
2192
2192
|
setup(e, { expose: t, emit: n }) {
|
|
2193
|
-
const i = e, a = n, r = Le(i), s =
|
|
2193
|
+
const i = e, a = n, r = Le(i), s = ot(he, void 0), { updateModelValue: o, getFieldID: l, clearValidationErrors: d, value: h } = ye.useAbstractFields({
|
|
2194
2194
|
model: r.model,
|
|
2195
2195
|
schema: i.schema,
|
|
2196
2196
|
formOptions: i.formOptions,
|
|
@@ -2202,8 +2202,8 @@ const ye = {
|
|
|
2202
2202
|
clearValidationErrors: d
|
|
2203
2203
|
});
|
|
2204
2204
|
const m = L(() => {
|
|
2205
|
-
var
|
|
2206
|
-
const b = (
|
|
2205
|
+
var O;
|
|
2206
|
+
const b = (O = i.schema) == null ? void 0 : O.inputType.toLowerCase();
|
|
2207
2207
|
switch (b) {
|
|
2208
2208
|
case "string":
|
|
2209
2209
|
return "text";
|
|
@@ -2216,37 +2216,37 @@ const ye = {
|
|
|
2216
2216
|
date: "YYYY-MM-DD",
|
|
2217
2217
|
datetime: "YYYY-MM-DD HH:mm:ss",
|
|
2218
2218
|
"datetime-local": "YYYY-MM-DDTHH:mm:ss"
|
|
2219
|
-
}, E = (b,
|
|
2219
|
+
}, E = (b, O) => {
|
|
2220
2220
|
var j, x;
|
|
2221
2221
|
let k = b;
|
|
2222
|
-
const _ = p[m.value] || "", v =
|
|
2223
|
-
v && ((j = i.schema) != null && j.format ? k =
|
|
2224
|
-
}, N = (b,
|
|
2225
|
-
|
|
2222
|
+
const _ = p[m.value] || "", v = Be.parse(b, _);
|
|
2223
|
+
v && ((j = i.schema) != null && j.format ? k = Be.format(v, (x = i.schema) == null ? void 0 : x.format) : k = v.valueOf()), o(k, O);
|
|
2224
|
+
}, N = (b, O) => {
|
|
2225
|
+
ct(b) || (b = NaN), o(b, O);
|
|
2226
2226
|
}, c = (b) => {
|
|
2227
|
-
let
|
|
2227
|
+
let O = b;
|
|
2228
2228
|
switch (m.value) {
|
|
2229
2229
|
case "number":
|
|
2230
2230
|
case "range":
|
|
2231
|
-
|
|
2231
|
+
ct(parseFloat(b)) && (O = parseFloat(b));
|
|
2232
2232
|
break;
|
|
2233
2233
|
}
|
|
2234
|
-
h.value =
|
|
2234
|
+
h.value = O, o(O, b);
|
|
2235
2235
|
}, M = (b) => {
|
|
2236
2236
|
h.value = b, o(b, b);
|
|
2237
2237
|
}, T = ue(null), U = () => {
|
|
2238
2238
|
var b;
|
|
2239
2239
|
z(T.value) && ((b = T.value) == null || b.flush());
|
|
2240
2240
|
};
|
|
2241
|
-
return
|
|
2241
|
+
return Fn(() => {
|
|
2242
2242
|
switch (m.value) {
|
|
2243
2243
|
case "number":
|
|
2244
2244
|
case "range":
|
|
2245
2245
|
T.value = nt(
|
|
2246
|
-
(b,
|
|
2247
|
-
N(b,
|
|
2246
|
+
(b, O) => {
|
|
2247
|
+
N(b, O);
|
|
2248
2248
|
},
|
|
2249
|
-
parseInt(
|
|
2249
|
+
parseInt(B(i.schema, "debounceFormatTimeout", 1e3)),
|
|
2250
2250
|
{
|
|
2251
2251
|
trailing: !0,
|
|
2252
2252
|
leading: !1
|
|
@@ -2257,10 +2257,10 @@ const ye = {
|
|
|
2257
2257
|
case "datetime":
|
|
2258
2258
|
case "datetime-local":
|
|
2259
2259
|
T.value = nt(
|
|
2260
|
-
(b,
|
|
2261
|
-
E(b,
|
|
2260
|
+
(b, O) => {
|
|
2261
|
+
E(b, O);
|
|
2262
2262
|
},
|
|
2263
|
-
parseInt(
|
|
2263
|
+
parseInt(B(i.schema, "debounceFormatTimeout", 1e3)),
|
|
2264
2264
|
{
|
|
2265
2265
|
trailing: !0,
|
|
2266
2266
|
leading: !1
|
|
@@ -2268,12 +2268,12 @@ const ye = {
|
|
|
2268
2268
|
);
|
|
2269
2269
|
break;
|
|
2270
2270
|
}
|
|
2271
|
-
}),
|
|
2271
|
+
}), Ut(() => {
|
|
2272
2272
|
m.value === "checkbox" ? console.warn("The use of 'checkbox' inputType with 'input' type fields is deprecated. Use 'checkbox' type instead.") : m.value === "radio" ? console.warn("The use of 'radio' inputType with 'input' type fields is deprecated. Use 'radio' type instead.") : m.value === "file" && console.warn("The 'file' type in input field is deprecated. Use 'file' field instead.");
|
|
2273
|
-
}), (b,
|
|
2273
|
+
}), (b, O) => {
|
|
2274
2274
|
const k = F("KInput");
|
|
2275
|
-
return u(), g("div",
|
|
2276
|
-
C(k,
|
|
2275
|
+
return u(), g("div", vd, [
|
|
2276
|
+
C(k, Ie(b.$attrs, {
|
|
2277
2277
|
id: w(l)(e.schema),
|
|
2278
2278
|
autocomplete: e.schema.autocomplete,
|
|
2279
2279
|
class: e.schema.fieldClasses,
|
|
@@ -2303,9 +2303,9 @@ const ye = {
|
|
|
2303
2303
|
]);
|
|
2304
2304
|
};
|
|
2305
2305
|
}
|
|
2306
|
-
}),
|
|
2306
|
+
}), yi = /* @__PURE__ */ Y(bd, [["__scopeId", "data-v-fe1132bb"]]), yd = {
|
|
2307
2307
|
name: "FieldMetric",
|
|
2308
|
-
components: { AddIcon:
|
|
2308
|
+
components: { AddIcon: Vt, TrashIcon: at },
|
|
2309
2309
|
mixins: [be],
|
|
2310
2310
|
emits: ["remove-item"],
|
|
2311
2311
|
data() {
|
|
@@ -2313,11 +2313,11 @@ const ye = {
|
|
|
2313
2313
|
contentVisible: !1
|
|
2314
2314
|
};
|
|
2315
2315
|
}
|
|
2316
|
-
},
|
|
2316
|
+
}, _d = {
|
|
2317
2317
|
key: 0,
|
|
2318
2318
|
class: "content"
|
|
2319
2319
|
};
|
|
2320
|
-
function
|
|
2320
|
+
function wd(e, t, n, i, a, r) {
|
|
2321
2321
|
const s = F("AddIcon"), o = F("TrashIcon"), l = F("KButton");
|
|
2322
2322
|
return u(), g("div", {
|
|
2323
2323
|
class: W(["field-dropdown", { active: a.contentVisible }])
|
|
@@ -2329,16 +2329,16 @@ function _d(e, t, n, i, a, r) {
|
|
|
2329
2329
|
te($(e.model.name ? e.model.name : "New Item") + " ", 1),
|
|
2330
2330
|
C(s, { class: "metric-add-icon" })
|
|
2331
2331
|
]),
|
|
2332
|
-
C(
|
|
2333
|
-
default:
|
|
2334
|
-
a.contentVisible ? (u(), g("div",
|
|
2335
|
-
|
|
2332
|
+
C(Ai, { name: "slide-fade" }, {
|
|
2333
|
+
default: I(() => [
|
|
2334
|
+
a.contentVisible ? (u(), g("div", _d, [
|
|
2335
|
+
Oe(e.$slots, "default"),
|
|
2336
2336
|
C(l, {
|
|
2337
2337
|
appearance: "tertiary",
|
|
2338
2338
|
class: "metric-remove-button",
|
|
2339
2339
|
onClick: t[1] || (t[1] = (d) => e.$emit("remove-item"))
|
|
2340
2340
|
}, {
|
|
2341
|
-
default:
|
|
2341
|
+
default: I(() => [
|
|
2342
2342
|
C(o)
|
|
2343
2343
|
]),
|
|
2344
2344
|
_: 1
|
|
@@ -2349,7 +2349,7 @@ function _d(e, t, n, i, a, r) {
|
|
|
2349
2349
|
})
|
|
2350
2350
|
], 2);
|
|
2351
2351
|
}
|
|
2352
|
-
const
|
|
2352
|
+
const _i = /* @__PURE__ */ Y(yd, [["render", wd]]), Md = { class: "field-object-container" }, Sd = { key: 1 }, Td = ["id"], Cd = { key: 0 }, Id = ["onUpdate:modelValue"], Od = { key: 1 }, Ad = ["onUpdate:modelValue"], Ed = { key: 2 }, Fd = ["onUpdate:modelValue"], kd = ["onClick"], Ud = {
|
|
2353
2353
|
mixins: [be],
|
|
2354
2354
|
expose: ["validate", "clearValidationErrors", "schema"],
|
|
2355
2355
|
emits: ["modelUpdated"],
|
|
@@ -2387,30 +2387,30 @@ const yi = /* @__PURE__ */ Y(bd, [["render", _d]]), wd = { class: "field-object-
|
|
|
2387
2387
|
this.$emit("modelUpdated", e, t);
|
|
2388
2388
|
}
|
|
2389
2389
|
}
|
|
2390
|
-
},
|
|
2390
|
+
}, $d = /* @__PURE__ */ Object.assign(Ud, {
|
|
2391
2391
|
__name: "FieldObject",
|
|
2392
2392
|
setup(e) {
|
|
2393
2393
|
return (t, n) => {
|
|
2394
|
-
const i =
|
|
2395
|
-
return de((u(), g("div",
|
|
2394
|
+
const i = kn("attributes");
|
|
2395
|
+
return de((u(), g("div", Md, [
|
|
2396
2396
|
t.schema.schema ? (u(), A(ee, {
|
|
2397
2397
|
key: 0,
|
|
2398
2398
|
model: t.value,
|
|
2399
2399
|
options: t.formOptions,
|
|
2400
2400
|
schema: t.schema.schema,
|
|
2401
2401
|
onModelUpdated: t.updateModel
|
|
2402
|
-
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : (u(), g("div",
|
|
2402
|
+
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : (u(), g("div", Sd, [
|
|
2403
2403
|
f("table", {
|
|
2404
2404
|
id: t.getFieldID(t.schema),
|
|
2405
2405
|
class: W(t.schema.fieldClasses)
|
|
2406
2406
|
}, [
|
|
2407
2407
|
(u(!0), g(K, null, J(t.value, (a, r) => (u(), g("tr", { key: r }, [
|
|
2408
2408
|
f("td", null, $(r), 1),
|
|
2409
|
-
t.keyTypes[r] === "string" ? (u(), g("td",
|
|
2409
|
+
t.keyTypes[r] === "string" ? (u(), g("td", Cd, [
|
|
2410
2410
|
de(f("input", {
|
|
2411
2411
|
"onUpdate:modelValue": (s) => t.value[r] = s,
|
|
2412
2412
|
type: "text"
|
|
2413
|
-
}, null, 8,
|
|
2413
|
+
}, null, 8, Id), [
|
|
2414
2414
|
[Ze, t.value[r]]
|
|
2415
2415
|
])
|
|
2416
2416
|
])) : R("", !0),
|
|
@@ -2418,15 +2418,15 @@ const yi = /* @__PURE__ */ Y(bd, [["render", _d]]), wd = { class: "field-object-
|
|
|
2418
2418
|
de(f("input", {
|
|
2419
2419
|
"onUpdate:modelValue": (s) => t.value[r] = s,
|
|
2420
2420
|
type: "checkbox"
|
|
2421
|
-
}, null, 8,
|
|
2422
|
-
[
|
|
2421
|
+
}, null, 8, Ad), [
|
|
2422
|
+
[Ei, t.value[r]]
|
|
2423
2423
|
])
|
|
2424
2424
|
])) : R("", !0),
|
|
2425
|
-
t.keyTypes[r] === "number" ? (u(), g("td",
|
|
2425
|
+
t.keyTypes[r] === "number" ? (u(), g("td", Ed, [
|
|
2426
2426
|
de(f("input", {
|
|
2427
2427
|
"onUpdate:modelValue": (s) => t.value[r] = s,
|
|
2428
2428
|
type: "number"
|
|
2429
|
-
}, null, 8,
|
|
2429
|
+
}, null, 8, Fd), [
|
|
2430
2430
|
[Ze, t.value[r]]
|
|
2431
2431
|
])
|
|
2432
2432
|
])) : R("", !0),
|
|
@@ -2435,10 +2435,10 @@ const yi = /* @__PURE__ */ Y(bd, [["render", _d]]), wd = { class: "field-object-
|
|
|
2435
2435
|
type: "button",
|
|
2436
2436
|
value: "x",
|
|
2437
2437
|
onClick: (s) => t.removeElement(r)
|
|
2438
|
-
}, null, 8,
|
|
2438
|
+
}, null, 8, kd)
|
|
2439
2439
|
])
|
|
2440
2440
|
]))), 128))
|
|
2441
|
-
], 10,
|
|
2441
|
+
], 10, Td),
|
|
2442
2442
|
de(f("select", {
|
|
2443
2443
|
"onUpdate:modelValue": n[0] || (n[0] = (a) => t.newKeyType = a)
|
|
2444
2444
|
}, n[3] || (n[3] = [
|
|
@@ -2446,7 +2446,7 @@ const yi = /* @__PURE__ */ Y(bd, [["render", _d]]), wd = { class: "field-object-
|
|
|
2446
2446
|
f("option", { value: "number" }, " Number ", -1),
|
|
2447
2447
|
f("option", { value: "boolean" }, " Boolean ", -1)
|
|
2448
2448
|
]), 512), [
|
|
2449
|
-
[
|
|
2449
|
+
[Fi, t.newKeyType]
|
|
2450
2450
|
]),
|
|
2451
2451
|
de(f("input", {
|
|
2452
2452
|
"onUpdate:modelValue": n[1] || (n[1] = (a) => t.newKeyName = a),
|
|
@@ -2465,13 +2465,13 @@ const yi = /* @__PURE__ */ Y(bd, [["render", _d]]), wd = { class: "field-object-
|
|
|
2465
2465
|
]);
|
|
2466
2466
|
};
|
|
2467
2467
|
}
|
|
2468
|
-
}),
|
|
2468
|
+
}), wi = /* @__PURE__ */ Y($d, [["__scopeId", "data-v-4ace4106"]]), Vd = ["id"], jd = ["data-testid"], Rd = { class: "item-wrapper" }, Pd = { class: "index-wrapper" }, Nd = { key: 0 }, Ld = { key: 1 }, qd = ["onUpdate:modelValue", "placeholder", "type", "onInput"], Kd = {
|
|
2469
2469
|
key: 0,
|
|
2470
2470
|
class: "hint"
|
|
2471
|
-
},
|
|
2471
|
+
}, Dd = { class: "input-item" }, Bd = ["placeholder"], zd = {
|
|
2472
2472
|
key: 0,
|
|
2473
2473
|
class: "hint"
|
|
2474
|
-
},
|
|
2474
|
+
}, Yd = {
|
|
2475
2475
|
mixins: [be],
|
|
2476
2476
|
expose: ["validate", "clearValidationErrors", "schema"],
|
|
2477
2477
|
inject: {
|
|
@@ -2570,7 +2570,7 @@ const yi = /* @__PURE__ */ Y(bd, [["render", _d]]), wd = { class: "field-object-
|
|
|
2570
2570
|
this.$emit("model-updated", this.model[this.schema.model], t);
|
|
2571
2571
|
}
|
|
2572
2572
|
}
|
|
2573
|
-
},
|
|
2573
|
+
}, Hd = /* @__PURE__ */ Object.assign(Yd, {
|
|
2574
2574
|
__name: "FieldObjectAdvanced",
|
|
2575
2575
|
setup(e) {
|
|
2576
2576
|
return (t, n) => {
|
|
@@ -2584,8 +2584,8 @@ const yi = /* @__PURE__ */ Y(bd, [["render", _d]]), wd = { class: "field-object-
|
|
|
2584
2584
|
"data-testid": `field-object-key-${r}`
|
|
2585
2585
|
}, [
|
|
2586
2586
|
f("div", null, [
|
|
2587
|
-
f("div",
|
|
2588
|
-
f("div",
|
|
2587
|
+
f("div", Rd, [
|
|
2588
|
+
f("div", Pd, [
|
|
2589
2589
|
f("strong", null, $(r), 1),
|
|
2590
2590
|
f("div", null, [
|
|
2591
2591
|
C(i, {
|
|
@@ -2595,7 +2595,7 @@ const yi = /* @__PURE__ */ Y(bd, [["render", _d]]), wd = { class: "field-object-
|
|
|
2595
2595
|
type: "button",
|
|
2596
2596
|
onClick: (s) => t.removeElement(r)
|
|
2597
2597
|
}, {
|
|
2598
|
-
default:
|
|
2598
|
+
default: I(() => [
|
|
2599
2599
|
C(w(at))
|
|
2600
2600
|
]),
|
|
2601
2601
|
_: 2
|
|
@@ -2603,24 +2603,24 @@ const yi = /* @__PURE__ */ Y(bd, [["render", _d]]), wd = { class: "field-object-
|
|
|
2603
2603
|
])
|
|
2604
2604
|
]),
|
|
2605
2605
|
n[1] || (n[1] = f("hr", { class: "divider" }, null, -1)),
|
|
2606
|
-
t.subSchema ? (u(), g("div",
|
|
2606
|
+
t.subSchema ? (u(), g("div", Nd, [
|
|
2607
2607
|
C(ee, {
|
|
2608
2608
|
model: t.transformedModel[r],
|
|
2609
2609
|
options: { helpAsHtml: !0 },
|
|
2610
2610
|
schema: t.subSchema,
|
|
2611
2611
|
onModelUpdated: t.updateModel
|
|
2612
2612
|
}, null, 8, ["model", "schema", "onModelUpdated"])
|
|
2613
|
-
])) : (u(), g("div",
|
|
2613
|
+
])) : (u(), g("div", Ld, [
|
|
2614
2614
|
de(f("input", {
|
|
2615
2615
|
"onUpdate:modelValue": (s) => t.value[r] = s,
|
|
2616
2616
|
class: "form-control",
|
|
2617
2617
|
placeholder: t.schema.fields && t.schema.fields[0].schema.placeholder,
|
|
2618
2618
|
type: t.valueInputType,
|
|
2619
2619
|
onInput: (s) => t.updateModel(t.value[r], t.model[t.schema.model])
|
|
2620
|
-
}, null, 40,
|
|
2621
|
-
[
|
|
2620
|
+
}, null, 40, qd), [
|
|
2621
|
+
[Un, t.value[r]]
|
|
2622
2622
|
]),
|
|
2623
|
-
t.schema.fields && t.schema.fields[0].schema.hint ? (u(), g("p",
|
|
2623
|
+
t.schema.fields && t.schema.fields[0].schema.hint ? (u(), g("p", Kd, $(t.schema.fields[0].schema.hint), 1)) : R("", !0),
|
|
2624
2624
|
(u(), A(ie(t.autofillSlot), {
|
|
2625
2625
|
schema: t.schema.fields && t.schema.fields[0].schema || t.schema.values,
|
|
2626
2626
|
update: (s) => t.value[r] = s,
|
|
@@ -2630,11 +2630,11 @@ const yi = /* @__PURE__ */ Y(bd, [["render", _d]]), wd = { class: "field-object-
|
|
|
2630
2630
|
n[2] || (n[2] = f("hr", { class: "wide-divider" }, null, -1))
|
|
2631
2631
|
])
|
|
2632
2632
|
])
|
|
2633
|
-
], 8,
|
|
2633
|
+
], 8, jd))), 128)),
|
|
2634
2634
|
f("div", {
|
|
2635
2635
|
class: W(["input-wrapper", { indent: t.hasObjectKeys }])
|
|
2636
2636
|
}, [
|
|
2637
|
-
f("div",
|
|
2637
|
+
f("div", Dd, [
|
|
2638
2638
|
de(f("input", {
|
|
2639
2639
|
"onUpdate:modelValue": n[0] || (n[0] = (a) => t.newKeyName = a),
|
|
2640
2640
|
class: "form-control",
|
|
@@ -2650,18 +2650,18 @@ const yi = /* @__PURE__ */ Y(bd, [["render", _d]]), wd = { class: "field-object-
|
|
|
2650
2650
|
disabled: !t.newKeyName,
|
|
2651
2651
|
onClick: t.addKey
|
|
2652
2652
|
}, {
|
|
2653
|
-
default:
|
|
2653
|
+
default: I(() => [
|
|
2654
2654
|
te(" + Add " + $(t.schema.buttonLabel || t.schema.label), 1)
|
|
2655
2655
|
]),
|
|
2656
2656
|
_: 1
|
|
2657
2657
|
}, 8, ["disabled", "onClick"])
|
|
2658
2658
|
]),
|
|
2659
|
-
t.schema.hintText ? (u(), g("p",
|
|
2659
|
+
t.schema.hintText ? (u(), g("p", zd, $(t.schema.hintText), 1)) : R("", !0)
|
|
2660
2660
|
], 2)
|
|
2661
|
-
], 10,
|
|
2661
|
+
], 10, Vd);
|
|
2662
2662
|
};
|
|
2663
2663
|
}
|
|
2664
|
-
}),
|
|
2664
|
+
}), Mi = /* @__PURE__ */ Y(Hd, [["__scopeId", "data-v-502ed880"]]), xd = { class: "radio-selection-group" }, Gd = /* @__PURE__ */ re({
|
|
2665
2665
|
__name: "FieldRadio",
|
|
2666
2666
|
props: {
|
|
2667
2667
|
disabled: {
|
|
@@ -2718,7 +2718,7 @@ const yi = /* @__PURE__ */ Y(bd, [["render", _d]]), wd = { class: "field-object-
|
|
|
2718
2718
|
};
|
|
2719
2719
|
return (h, m) => {
|
|
2720
2720
|
const p = F("KRadio");
|
|
2721
|
-
return u(), g("div",
|
|
2721
|
+
return u(), g("div", xd, [
|
|
2722
2722
|
(u(!0), g(K, null, J(e.schema.values, (E, N) => (u(), A(p, {
|
|
2723
2723
|
id: e.schema.name + "-" + N,
|
|
2724
2724
|
key: E.value,
|
|
@@ -2734,7 +2734,7 @@ const yi = /* @__PURE__ */ Y(bd, [["render", _d]]), wd = { class: "field-object-
|
|
|
2734
2734
|
]);
|
|
2735
2735
|
};
|
|
2736
2736
|
}
|
|
2737
|
-
}),
|
|
2737
|
+
}), Si = /* @__PURE__ */ Y(Gd, [["__scopeId", "data-v-09b8afda"]]), Ti = /* @__PURE__ */ re({
|
|
2738
2738
|
__name: "FieldSelect",
|
|
2739
2739
|
props: {
|
|
2740
2740
|
disabled: {
|
|
@@ -2837,19 +2837,19 @@ const yi = /* @__PURE__ */ Y(bd, [["render", _d]]), wd = { class: "field-object-
|
|
|
2837
2837
|
}, null, 8, ["id", "modelValue", "class", "clearable", "disabled", "items", "kpop-attributes", "label-attributes", "name", "placeholder", "required"]);
|
|
2838
2838
|
};
|
|
2839
2839
|
}
|
|
2840
|
-
}),
|
|
2840
|
+
}), Wd = {
|
|
2841
2841
|
name: "FieldArray",
|
|
2842
2842
|
components: {
|
|
2843
|
-
FieldArrayItem:
|
|
2844
|
-
FieldArrayMultiItem:
|
|
2845
|
-
FieldSelect:
|
|
2846
|
-
FieldMetric:
|
|
2847
|
-
FieldObject:
|
|
2848
|
-
FieldObjectAdvanced:
|
|
2849
|
-
FieldAutoSuggest:
|
|
2850
|
-
FieldRadio:
|
|
2851
|
-
FieldArrayCardContainer:
|
|
2852
|
-
FieldInput:
|
|
2843
|
+
FieldArrayItem: gi,
|
|
2844
|
+
FieldArrayMultiItem: vi,
|
|
2845
|
+
FieldSelect: Ti,
|
|
2846
|
+
FieldMetric: _i,
|
|
2847
|
+
FieldObject: wi,
|
|
2848
|
+
FieldObjectAdvanced: Mi,
|
|
2849
|
+
FieldAutoSuggest: bi,
|
|
2850
|
+
FieldRadio: Si,
|
|
2851
|
+
FieldArrayCardContainer: pi,
|
|
2852
|
+
FieldInput: yi
|
|
2853
2853
|
},
|
|
2854
2854
|
mixins: [be],
|
|
2855
2855
|
inject: {
|
|
@@ -2899,11 +2899,11 @@ const yi = /* @__PURE__ */ Y(bd, [["render", _d]]), wd = { class: "field-object-
|
|
|
2899
2899
|
handleInput(e, t) {
|
|
2900
2900
|
var i, a;
|
|
2901
2901
|
let n = e;
|
|
2902
|
-
((a = (i = this.schema) == null ? void 0 : i.inputAttributes) == null ? void 0 : a.type) === "number" &&
|
|
2902
|
+
((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);
|
|
2903
2903
|
}
|
|
2904
2904
|
}
|
|
2905
|
-
},
|
|
2906
|
-
function
|
|
2905
|
+
}, Zd = ["id"], Jd = { key: 1 }, Qd = ["onUpdate:modelValue", "aria-labelledby", "type"], Xd = ["onUpdate:modelValue", "aria-labelledby"];
|
|
2906
|
+
function eu(e, t, n, i, a, r) {
|
|
2907
2907
|
const s = F("KTextArea"), o = F("KInput"), l = F("KButton");
|
|
2908
2908
|
return e.schema ? (u(), g("div", {
|
|
2909
2909
|
key: 0,
|
|
@@ -2921,7 +2921,7 @@ function Xd(e, t, n, i, a, r) {
|
|
|
2921
2921
|
schema: r.generateSchema(e.value, e.schema.items, h),
|
|
2922
2922
|
onRemoveItem: (m) => r.removeElement(h)
|
|
2923
2923
|
}, {
|
|
2924
|
-
default:
|
|
2924
|
+
default: I(() => [
|
|
2925
2925
|
(u(), A(ie(r.getFieldComponent(e.schema.items)), {
|
|
2926
2926
|
"form-options": e.formOptions,
|
|
2927
2927
|
model: d,
|
|
@@ -2930,7 +2930,7 @@ function Xd(e, t, n, i, a, r) {
|
|
|
2930
2930
|
}, null, 40, ["form-options", "model", "schema", "onModelUpdated"]))
|
|
2931
2931
|
]),
|
|
2932
2932
|
_: 2
|
|
2933
|
-
}, 1064, ["index", "model", "schema", "onRemoveItem"])) : e.schema.items ? (u(), g("span",
|
|
2933
|
+
}, 1064, ["index", "model", "schema", "onRemoveItem"])) : e.schema.items ? (u(), g("span", Jd, [
|
|
2934
2934
|
(u(), A(ie(r.getFieldComponent(e.schema.items)), {
|
|
2935
2935
|
"form-options": e.formOptions,
|
|
2936
2936
|
model: d,
|
|
@@ -2944,17 +2944,17 @@ function Xd(e, t, n, i, a, r) {
|
|
|
2944
2944
|
schema: r.generateSchema(e.value, e.schema.items, h),
|
|
2945
2945
|
onRemoveItem: (m) => r.removeElement(h)
|
|
2946
2946
|
}, {
|
|
2947
|
-
after:
|
|
2947
|
+
after: I(() => [
|
|
2948
2948
|
(u(), A(ie(r.autofillSlot), {
|
|
2949
2949
|
schema: e.schema,
|
|
2950
2950
|
update: (m) => e.value[h] = m,
|
|
2951
2951
|
value: e.value[h]
|
|
2952
2952
|
}, null, 8, ["schema", "update", "value"]))
|
|
2953
2953
|
]),
|
|
2954
|
-
default:
|
|
2954
|
+
default: I(() => {
|
|
2955
2955
|
var m;
|
|
2956
2956
|
return [
|
|
2957
|
-
e.schema.inputAttributes && e.schema.inputAttributes.type === "textarea" ? (u(), A(s,
|
|
2957
|
+
e.schema.inputAttributes && e.schema.inputAttributes.type === "textarea" ? (u(), A(s, Ie({
|
|
2958
2958
|
key: 0,
|
|
2959
2959
|
ref_for: !0
|
|
2960
2960
|
}, e.schema.inputAttributes, {
|
|
@@ -2973,7 +2973,7 @@ function Xd(e, t, n, i, a, r) {
|
|
|
2973
2973
|
required: e.schema.required,
|
|
2974
2974
|
resizable: "",
|
|
2975
2975
|
rows: e.schema.rows || 3
|
|
2976
|
-
}), 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" ? (u(), A(o,
|
|
2976
|
+
}), 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" ? (u(), A(o, Ie({
|
|
2977
2977
|
key: 1,
|
|
2978
2978
|
"aria-labelledby": e.getLabelId(e.schema),
|
|
2979
2979
|
ref_for: !0
|
|
@@ -2983,25 +2983,25 @@ function Xd(e, t, n, i, a, r) {
|
|
|
2983
2983
|
onInput: (p) => {
|
|
2984
2984
|
r.handleInput(p, h);
|
|
2985
2985
|
}
|
|
2986
|
-
}), null, 16, ["aria-labelledby", "model-value", "type", "onInput"])) : de((u(), g("input",
|
|
2986
|
+
}), null, 16, ["aria-labelledby", "model-value", "type", "onInput"])) : de((u(), g("input", Ie({
|
|
2987
2987
|
key: 2,
|
|
2988
2988
|
"onUpdate:modelValue": (p) => e.value[h] = p,
|
|
2989
2989
|
"aria-labelledby": e.getLabelId(e.schema),
|
|
2990
2990
|
ref_for: !0
|
|
2991
2991
|
}, e.schema.inputAttributes, {
|
|
2992
2992
|
type: ((m = e.schema.inputAttributes) == null ? void 0 : m.type) || "text"
|
|
2993
|
-
}), null, 16,
|
|
2994
|
-
[
|
|
2993
|
+
}), null, 16, Qd)), [
|
|
2994
|
+
[Un, e.value[h]]
|
|
2995
2995
|
])
|
|
2996
2996
|
];
|
|
2997
2997
|
}),
|
|
2998
2998
|
_: 2
|
|
2999
2999
|
}, 1064, ["data-testid", "model", "schema", "onRemoveItem"])) : (u(), g(K, { key: 3 }, [
|
|
3000
|
-
de(f("input",
|
|
3000
|
+
de(f("input", Ie({ ref_for: !0 }, e.schema.inputAttributes, {
|
|
3001
3001
|
"onUpdate:modelValue": (m) => e.value[h] = m,
|
|
3002
3002
|
"aria-labelledby": e.getLabelId(e.schema),
|
|
3003
3003
|
type: "text"
|
|
3004
|
-
}), null, 16,
|
|
3004
|
+
}), null, 16, Xd), [
|
|
3005
3005
|
[Ze, e.value[h]]
|
|
3006
3006
|
]),
|
|
3007
3007
|
(u(), A(ie(r.autofillSlot), {
|
|
@@ -3018,14 +3018,14 @@ function Xd(e, t, n, i, a, r) {
|
|
|
3018
3018
|
type: "button",
|
|
3019
3019
|
onClick: r.newElement
|
|
3020
3020
|
}, {
|
|
3021
|
-
default:
|
|
3021
|
+
default: I(() => [
|
|
3022
3022
|
te($(e.schema.newElementButtonLabel || n.newElementButtonLabel), 1)
|
|
3023
3023
|
]),
|
|
3024
3024
|
_: 1
|
|
3025
3025
|
}, 8, ["class", "data-testid", "onClick"])
|
|
3026
|
-
], 10,
|
|
3026
|
+
], 10, Zd)) : R("", !0);
|
|
3027
3027
|
}
|
|
3028
|
-
const
|
|
3028
|
+
const tu = /* @__PURE__ */ Y(Wd, [["render", eu], ["__scopeId", "data-v-27efd618"]]), nu = { class: "form-field-wrapper field-checkbox" }, iu = /* @__PURE__ */ re({
|
|
3029
3029
|
__name: "FieldCheckbox",
|
|
3030
3030
|
props: {
|
|
3031
3031
|
disabled: {
|
|
@@ -3077,8 +3077,8 @@ const eu = /* @__PURE__ */ Y(Gd, [["render", Xd], ["__scopeId", "data-v-27efd618
|
|
|
3077
3077
|
clearValidationErrors: l
|
|
3078
3078
|
}), (d, h) => {
|
|
3079
3079
|
const m = F("KCheckbox");
|
|
3080
|
-
return u(), g("div",
|
|
3081
|
-
C(m,
|
|
3080
|
+
return u(), g("div", nu, [
|
|
3081
|
+
C(m, Ie(d.$attrs, {
|
|
3082
3082
|
id: w(s)(e.schema),
|
|
3083
3083
|
modelValue: w(o),
|
|
3084
3084
|
"onUpdate:modelValue": h[0] || (h[0] = (p) => He(o) ? o.value = p : null),
|
|
@@ -3094,15 +3094,15 @@ const eu = /* @__PURE__ */ Y(Gd, [["render", Xd], ["__scopeId", "data-v-27efd618
|
|
|
3094
3094
|
]);
|
|
3095
3095
|
};
|
|
3096
3096
|
}
|
|
3097
|
-
}),
|
|
3098
|
-
var
|
|
3099
|
-
function
|
|
3100
|
-
return Qe(e,
|
|
3101
|
-
}
|
|
3102
|
-
const
|
|
3103
|
-
function
|
|
3104
|
-
const s =
|
|
3105
|
-
return de((u(), g("div",
|
|
3097
|
+
}), au = /* @__PURE__ */ Y(iu, [["__scopeId", "data-v-6b4ee1cd"]]);
|
|
3098
|
+
var ru = 4;
|
|
3099
|
+
function Cn(e) {
|
|
3100
|
+
return Qe(e, ru);
|
|
3101
|
+
}
|
|
3102
|
+
const ou = { class: "wrapper" }, su = ["disabled"], lu = ["id", "checked", "disabled", "onChange", "name"], du = ["disabled"], uu = { class: "info" }, cu = { class: "dropList" }, mu = ["id", "checked", "disabled", "onChange", "name"];
|
|
3103
|
+
function fu(e, t, n, i, a, r) {
|
|
3104
|
+
const s = kn("attributes");
|
|
3105
|
+
return de((u(), g("div", ou, [
|
|
3106
3106
|
e.schema.listBox ? (u(), g("div", {
|
|
3107
3107
|
key: 0,
|
|
3108
3108
|
class: "listbox form-control",
|
|
@@ -3119,13 +3119,13 @@ function mu(e, t, n, i, a, r) {
|
|
|
3119
3119
|
disabled: e.disabled || null,
|
|
3120
3120
|
onChange: (l) => r.onChanged(l, o),
|
|
3121
3121
|
name: r.getInputName(o)
|
|
3122
|
-
}, null, 40,
|
|
3122
|
+
}, null, 40, lu), [
|
|
3123
3123
|
[s, "input"]
|
|
3124
3124
|
]),
|
|
3125
3125
|
te($(r.getItemName(o)), 1)
|
|
3126
3126
|
])
|
|
3127
3127
|
], 2))), 256))
|
|
3128
|
-
], 8,
|
|
3128
|
+
], 8, su)) : R("", !0),
|
|
3129
3129
|
e.schema.listBox ? R("", !0) : (u(), g("div", {
|
|
3130
3130
|
key: 1,
|
|
3131
3131
|
class: "combobox form-control",
|
|
@@ -3135,10 +3135,10 @@ function mu(e, t, n, i, a, r) {
|
|
|
3135
3135
|
class: W(["mainRow", { expanded: a.comboExpanded }]),
|
|
3136
3136
|
onClick: t[0] || (t[0] = (...o) => r.onExpandCombo && r.onExpandCombo(...o))
|
|
3137
3137
|
}, [
|
|
3138
|
-
f("div",
|
|
3138
|
+
f("div", uu, $(r.selectedCount) + " selected", 1),
|
|
3139
3139
|
t[1] || (t[1] = f("div", { class: "arrow" }, null, -1))
|
|
3140
3140
|
], 2),
|
|
3141
|
-
f("div",
|
|
3141
|
+
f("div", cu, [
|
|
3142
3142
|
a.comboExpanded ? (u(!0), g(K, { key: 0 }, J(r.items, (o) => (u(), g("div", {
|
|
3143
3143
|
class: W(["list-row", { "is-checked": r.isItemChecked(o) }])
|
|
3144
3144
|
}, [
|
|
@@ -3150,19 +3150,19 @@ function mu(e, t, n, i, a, r) {
|
|
|
3150
3150
|
disabled: e.disabled || null,
|
|
3151
3151
|
onChange: (l) => r.onChanged(l, o),
|
|
3152
3152
|
name: r.getInputName(o)
|
|
3153
|
-
}, null, 40,
|
|
3153
|
+
}, null, 40, mu), [
|
|
3154
3154
|
[s, "input"]
|
|
3155
3155
|
]),
|
|
3156
3156
|
te($(r.getItemName(o)), 1)
|
|
3157
3157
|
])
|
|
3158
3158
|
], 2))), 256)) : R("", !0)
|
|
3159
3159
|
])
|
|
3160
|
-
], 8,
|
|
3160
|
+
], 8, du))
|
|
3161
3161
|
])), [
|
|
3162
3162
|
[s, "wrapper"]
|
|
3163
3163
|
]);
|
|
3164
3164
|
}
|
|
3165
|
-
const
|
|
3165
|
+
const hu = {
|
|
3166
3166
|
mixins: [be],
|
|
3167
3167
|
data() {
|
|
3168
3168
|
return {
|
|
@@ -3180,7 +3180,7 @@ const fu = {
|
|
|
3180
3180
|
},
|
|
3181
3181
|
methods: {
|
|
3182
3182
|
getInputName(e) {
|
|
3183
|
-
return this.schema && this.schema.inputName && this.schema.inputName.length > 0 ?
|
|
3183
|
+
return this.schema && this.schema.inputName && this.schema.inputName.length > 0 ? fn(this.schema.inputName + "_" + this.getItemValue(e)) : fn(this.getItemValue(e));
|
|
3184
3184
|
},
|
|
3185
3185
|
getItemValue(e) {
|
|
3186
3186
|
if (me(e)) {
|
|
@@ -3207,10 +3207,10 @@ const fu = {
|
|
|
3207
3207
|
},
|
|
3208
3208
|
onChanged(e, t) {
|
|
3209
3209
|
if ((X(this.value) || !Array.isArray(this.value)) && (this.value = []), e.target.checked) {
|
|
3210
|
-
const n =
|
|
3210
|
+
const n = Cn(this.value);
|
|
3211
3211
|
n.push(this.getItemValue(t)), this.value = n;
|
|
3212
3212
|
} else {
|
|
3213
|
-
const n =
|
|
3213
|
+
const n = Cn(this.value);
|
|
3214
3214
|
n.splice(this.value.indexOf(this.getItemValue(t)), 1), this.value = n;
|
|
3215
3215
|
}
|
|
3216
3216
|
},
|
|
@@ -3218,7 +3218,7 @@ const fu = {
|
|
|
3218
3218
|
this.comboExpanded = !this.comboExpanded;
|
|
3219
3219
|
}
|
|
3220
3220
|
}
|
|
3221
|
-
},
|
|
3221
|
+
}, pu = /* @__PURE__ */ Y(hu, [["render", fu]]), gu = {
|
|
3222
3222
|
name: "FieldKeyValuePairs",
|
|
3223
3223
|
components: { TrashIcon: at },
|
|
3224
3224
|
mixins: [be],
|
|
@@ -3272,15 +3272,15 @@ const fu = {
|
|
|
3272
3272
|
this.pairs.splice(e, 1);
|
|
3273
3273
|
}
|
|
3274
3274
|
}
|
|
3275
|
-
},
|
|
3276
|
-
function
|
|
3275
|
+
}, vu = { class: "key-value-pairs-editor" }, bu = { class: "pair-item-cell" }, yu = ["data-testid", "placeholder", "value", "onInput"], _u = { class: "pair-item-cell" }, wu = ["data-testid", "placeholder", "value", "onInput"];
|
|
3276
|
+
function Mu(e, t, n, i, a, r) {
|
|
3277
3277
|
const s = F("TrashIcon"), o = F("KButton");
|
|
3278
|
-
return u(), g("div",
|
|
3278
|
+
return u(), g("div", vu, [
|
|
3279
3279
|
(u(!0), g(K, null, J(a.pairs, (l, d) => (u(), g("div", {
|
|
3280
3280
|
key: d,
|
|
3281
3281
|
class: "pair-item"
|
|
3282
3282
|
}, [
|
|
3283
|
-
f("div",
|
|
3283
|
+
f("div", bu, [
|
|
3284
3284
|
f("input", {
|
|
3285
3285
|
class: "form-control",
|
|
3286
3286
|
"data-testid": `${e.getFieldID(e.schema)}-pair-key-${d}`,
|
|
@@ -3290,14 +3290,14 @@ function wu(e, t, n, i, a, r) {
|
|
|
3290
3290
|
onInput: (h) => {
|
|
3291
3291
|
r.onInput(h, d, "key");
|
|
3292
3292
|
}
|
|
3293
|
-
}, null, 40,
|
|
3293
|
+
}, null, 40, yu),
|
|
3294
3294
|
(u(), A(ie(r.autofillSlot), {
|
|
3295
3295
|
schema: e.schema,
|
|
3296
3296
|
update: (h) => r.onInput({ target: { value: h } }, d, "key"),
|
|
3297
3297
|
value: l.key
|
|
3298
3298
|
}, null, 8, ["schema", "update", "value"]))
|
|
3299
3299
|
]),
|
|
3300
|
-
f("div",
|
|
3300
|
+
f("div", _u, [
|
|
3301
3301
|
f("input", {
|
|
3302
3302
|
class: "form-control",
|
|
3303
3303
|
"data-testid": `${e.getFieldID(e.schema)}-pair-value-${d}`,
|
|
@@ -3307,7 +3307,7 @@ function wu(e, t, n, i, a, r) {
|
|
|
3307
3307
|
onInput: (h) => {
|
|
3308
3308
|
r.onInput(h, d, "value");
|
|
3309
3309
|
}
|
|
3310
|
-
}, null, 40,
|
|
3310
|
+
}, null, 40, wu),
|
|
3311
3311
|
(u(), A(ie(r.autofillSlot), {
|
|
3312
3312
|
schema: e.schema,
|
|
3313
3313
|
update: (h) => r.onInput({ target: { value: h } }, d, "value"),
|
|
@@ -3321,7 +3321,7 @@ function wu(e, t, n, i, a, r) {
|
|
|
3321
3321
|
r.removePair(d);
|
|
3322
3322
|
}
|
|
3323
3323
|
}, {
|
|
3324
|
-
default:
|
|
3324
|
+
default: I(() => [
|
|
3325
3325
|
C(s)
|
|
3326
3326
|
]),
|
|
3327
3327
|
_: 2
|
|
@@ -3334,14 +3334,14 @@ function wu(e, t, n, i, a, r) {
|
|
|
3334
3334
|
type: "button",
|
|
3335
3335
|
onClick: r.addPair
|
|
3336
3336
|
}, {
|
|
3337
|
-
default:
|
|
3337
|
+
default: I(() => [
|
|
3338
3338
|
te($(e.schema.newElementButtonLabel ?? "+ Add Pair"), 1)
|
|
3339
3339
|
]),
|
|
3340
3340
|
_: 1
|
|
3341
3341
|
}, 8, ["class", "data-testid", "onClick"])
|
|
3342
3342
|
]);
|
|
3343
3343
|
}
|
|
3344
|
-
const
|
|
3344
|
+
const Su = /* @__PURE__ */ Y(gu, [["render", Mu], ["__scopeId", "data-v-70998d5b"]]), Tu = /* @__PURE__ */ re({
|
|
3345
3345
|
__name: "FieldLabel",
|
|
3346
3346
|
props: {
|
|
3347
3347
|
disabled: {
|
|
@@ -3381,7 +3381,7 @@ const Mu = /* @__PURE__ */ Y(pu, [["render", wu], ["__scopeId", "data-v-70998d5b
|
|
|
3381
3381
|
C(o, {
|
|
3382
3382
|
id: w(i)(e.schema)
|
|
3383
3383
|
}, {
|
|
3384
|
-
default:
|
|
3384
|
+
default: I(() => [
|
|
3385
3385
|
te($(w(a)), 1)
|
|
3386
3386
|
]),
|
|
3387
3387
|
_: 1
|
|
@@ -3389,7 +3389,7 @@ const Mu = /* @__PURE__ */ Y(pu, [["render", wu], ["__scopeId", "data-v-70998d5b
|
|
|
3389
3389
|
], 2);
|
|
3390
3390
|
};
|
|
3391
3391
|
}
|
|
3392
|
-
}),
|
|
3392
|
+
}), Cu = /* @__PURE__ */ Y(Tu, [["__scopeId", "data-v-d046a15a"]]), Iu = /* @__PURE__ */ re({
|
|
3393
3393
|
__name: "FieldMultiselect",
|
|
3394
3394
|
props: {
|
|
3395
3395
|
disabled: {
|
|
@@ -3429,7 +3429,7 @@ const Mu = /* @__PURE__ */ Y(pu, [["render", wu], ["__scopeId", "data-v-70998d5b
|
|
|
3429
3429
|
},
|
|
3430
3430
|
emits: ["modelUpdated"],
|
|
3431
3431
|
setup(e, { expose: t, emit: n }) {
|
|
3432
|
-
const i = e, a = n, r =
|
|
3432
|
+
const i = e, a = n, r = ki(i, "model"), { getLabelId: s, getFieldID: o, clearValidationErrors: l, value: d } = ye.useAbstractFields({
|
|
3433
3433
|
model: r,
|
|
3434
3434
|
schema: i.schema,
|
|
3435
3435
|
formOptions: i.formOptions,
|
|
@@ -3464,7 +3464,7 @@ const Mu = /* @__PURE__ */ Y(pu, [["render", wu], ["__scopeId", "data-v-70998d5b
|
|
|
3464
3464
|
}, null, 8, ["id", "modelValue", "aria-labelledby", "class", "disabled", "items", "kpop-attributes", "label-attributes", "name", "placeholder", "required"]);
|
|
3465
3465
|
};
|
|
3466
3466
|
}
|
|
3467
|
-
}), Ou = { class: "selection-group" },
|
|
3467
|
+
}), Ou = { class: "selection-group" }, Au = { class: "form-group horizontal-radios" }, Eu = { class: "radio-group" }, Fu = ["disabled", "value"], ku = { class: "control-help" }, Uu = { class: "option-field" }, $u = { class: "option-field-container" }, Vu = {
|
|
3468
3468
|
mixins: [be],
|
|
3469
3469
|
expose: ["validate", "clearValidationErrors", "schema"],
|
|
3470
3470
|
emits: ["model-updated"],
|
|
@@ -3502,7 +3502,7 @@ const Mu = /* @__PURE__ */ Y(pu, [["render", wu], ["__scopeId", "data-v-70998d5b
|
|
|
3502
3502
|
this.$emit("model-updated", e, t);
|
|
3503
3503
|
}
|
|
3504
3504
|
}
|
|
3505
|
-
},
|
|
3505
|
+
}, ju = /* @__PURE__ */ Object.assign(Vu, {
|
|
3506
3506
|
__name: "FieldSelectionGroup",
|
|
3507
3507
|
setup(e) {
|
|
3508
3508
|
const { t } = ge("en-us", ve);
|
|
@@ -3511,9 +3511,9 @@ const Mu = /* @__PURE__ */ Y(pu, [["render", wu], ["__scopeId", "data-v-70998d5b
|
|
|
3511
3511
|
"max-width": "300",
|
|
3512
3512
|
text: w(t)("general.disable_global_radio", { scope: n.scope })
|
|
3513
3513
|
}, {
|
|
3514
|
-
default:
|
|
3515
|
-
f("div",
|
|
3516
|
-
f("div",
|
|
3514
|
+
default: I(() => [
|
|
3515
|
+
f("div", Au, [
|
|
3516
|
+
f("div", Eu, [
|
|
3517
3517
|
(u(!0), g(K, null, J(n.schema.fields, (a, r) => (u(), g("div", {
|
|
3518
3518
|
key: r,
|
|
3519
3519
|
class: W(["option-group", { "radio-disabled": n.$props.disabled }])
|
|
@@ -3527,11 +3527,11 @@ const Mu = /* @__PURE__ */ Y(pu, [["render", wu], ["__scopeId", "data-v-70998d5b
|
|
|
3527
3527
|
disabled: n.$props.disabled,
|
|
3528
3528
|
type: "radio",
|
|
3529
3529
|
value: r
|
|
3530
|
-
}, null, 8,
|
|
3531
|
-
[
|
|
3530
|
+
}, null, 8, Fu), [
|
|
3531
|
+
[Ui, n.checkedGroup]
|
|
3532
3532
|
]),
|
|
3533
3533
|
te(" " + $(a.label) + " ", 1),
|
|
3534
|
-
f("div",
|
|
3534
|
+
f("div", ku, $(a.description), 1)
|
|
3535
3535
|
], 2)
|
|
3536
3536
|
], 2))), 128))
|
|
3537
3537
|
])
|
|
@@ -3543,8 +3543,8 @@ const Mu = /* @__PURE__ */ Y(pu, [["render", wu], ["__scopeId", "data-v-70998d5b
|
|
|
3543
3543
|
key: r,
|
|
3544
3544
|
class: "option-group"
|
|
3545
3545
|
}, [
|
|
3546
|
-
de(f("div",
|
|
3547
|
-
f("div",
|
|
3546
|
+
de(f("div", Uu, [
|
|
3547
|
+
f("div", $u, [
|
|
3548
3548
|
C(ee, {
|
|
3549
3549
|
model: n.model,
|
|
3550
3550
|
options: { helpAsHtml: !0 },
|
|
@@ -3553,12 +3553,12 @@ const Mu = /* @__PURE__ */ Y(pu, [["render", wu], ["__scopeId", "data-v-70998d5b
|
|
|
3553
3553
|
}, null, 8, ["model", "schema", "onModelUpdated"])
|
|
3554
3554
|
])
|
|
3555
3555
|
], 512), [
|
|
3556
|
-
[
|
|
3556
|
+
[$i, a.fields && n.checkedGroup === r]
|
|
3557
3557
|
])
|
|
3558
3558
|
]))), 128))
|
|
3559
3559
|
]));
|
|
3560
3560
|
}
|
|
3561
|
-
}),
|
|
3561
|
+
}), Ru = /* @__PURE__ */ Y(ju, [["__scopeId", "data-v-7b085c16"]]), Pu = { class: "form-field-wrapper" }, Nu = /* @__PURE__ */ re({
|
|
3562
3562
|
__name: "FieldSwitch",
|
|
3563
3563
|
props: {
|
|
3564
3564
|
disabled: {
|
|
@@ -3612,7 +3612,7 @@ const Mu = /* @__PURE__ */ Y(pu, [["render", wu], ["__scopeId", "data-v-70998d5b
|
|
|
3612
3612
|
clearValidationErrors: m
|
|
3613
3613
|
}), (p, E) => {
|
|
3614
3614
|
const N = F("KInputSwitch");
|
|
3615
|
-
return u(), g("div",
|
|
3615
|
+
return u(), g("div", Pu, [
|
|
3616
3616
|
C(N, {
|
|
3617
3617
|
id: w(d)(e.schema),
|
|
3618
3618
|
modelValue: w(h),
|
|
@@ -3628,7 +3628,7 @@ const Mu = /* @__PURE__ */ Y(pu, [["render", wu], ["__scopeId", "data-v-70998d5b
|
|
|
3628
3628
|
]);
|
|
3629
3629
|
};
|
|
3630
3630
|
}
|
|
3631
|
-
}),
|
|
3631
|
+
}), Lu = { class: "field-textarea" }, qu = /* @__PURE__ */ re({
|
|
3632
3632
|
__name: "FieldTextArea",
|
|
3633
3633
|
props: {
|
|
3634
3634
|
disabled: {
|
|
@@ -3668,7 +3668,7 @@ const Mu = /* @__PURE__ */ Y(pu, [["render", wu], ["__scopeId", "data-v-70998d5b
|
|
|
3668
3668
|
},
|
|
3669
3669
|
emits: ["modelUpdated"],
|
|
3670
3670
|
setup(e, { expose: t, emit: n }) {
|
|
3671
|
-
const i = e, a = n, r = Le(i), s =
|
|
3671
|
+
const i = e, a = n, r = Le(i), s = ot(he, void 0), { updateModelValue: o, getFieldID: l, clearValidationErrors: d, value: h } = ye.useAbstractFields({
|
|
3672
3672
|
model: r.model,
|
|
3673
3673
|
schema: i.schema,
|
|
3674
3674
|
formOptions: i.formOptions,
|
|
@@ -3684,8 +3684,8 @@ const Mu = /* @__PURE__ */ Y(pu, [["render", wu], ["__scopeId", "data-v-70998d5b
|
|
|
3684
3684
|
};
|
|
3685
3685
|
return (p, E) => {
|
|
3686
3686
|
const N = F("KTextArea");
|
|
3687
|
-
return u(), g("div",
|
|
3688
|
-
C(N,
|
|
3687
|
+
return u(), g("div", Lu, [
|
|
3688
|
+
C(N, Ie(p.$attrs, {
|
|
3689
3689
|
id: w(l)(e.schema),
|
|
3690
3690
|
modelValue: w(h),
|
|
3691
3691
|
"onUpdate:modelValue": E[0] || (E[0] = (c) => He(h) ? h.value = c : null),
|
|
@@ -3710,32 +3710,32 @@ const Mu = /* @__PURE__ */ Y(pu, [["render", wu], ["__scopeId", "data-v-70998d5b
|
|
|
3710
3710
|
]);
|
|
3711
3711
|
};
|
|
3712
3712
|
}
|
|
3713
|
-
}),
|
|
3713
|
+
}), Ku = /* @__PURE__ */ Y(qu, [["__scopeId", "data-v-0e146fba"]]), Du = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3714
3714
|
__proto__: null,
|
|
3715
|
-
FieldAdvanced:
|
|
3716
|
-
FieldArray:
|
|
3717
|
-
FieldArrayCardContainer:
|
|
3718
|
-
FieldArrayItem:
|
|
3719
|
-
FieldArrayMultiItem:
|
|
3720
|
-
FieldAutoSuggest:
|
|
3721
|
-
FieldCheckbox:
|
|
3722
|
-
FieldChecklist:
|
|
3723
|
-
FieldInput:
|
|
3724
|
-
FieldKeyValuePairs:
|
|
3725
|
-
FieldLabel:
|
|
3726
|
-
FieldMetric:
|
|
3727
|
-
FieldMultiselect:
|
|
3728
|
-
FieldObject:
|
|
3729
|
-
FieldObjectAdvanced:
|
|
3730
|
-
FieldRadio:
|
|
3731
|
-
FieldSelect:
|
|
3732
|
-
FieldSelectionGroup:
|
|
3733
|
-
FieldSwitch:
|
|
3734
|
-
FieldTextArea:
|
|
3715
|
+
FieldAdvanced: Jl,
|
|
3716
|
+
FieldArray: tu,
|
|
3717
|
+
FieldArrayCardContainer: pi,
|
|
3718
|
+
FieldArrayItem: gi,
|
|
3719
|
+
FieldArrayMultiItem: vi,
|
|
3720
|
+
FieldAutoSuggest: bi,
|
|
3721
|
+
FieldCheckbox: au,
|
|
3722
|
+
FieldChecklist: pu,
|
|
3723
|
+
FieldInput: yi,
|
|
3724
|
+
FieldKeyValuePairs: Su,
|
|
3725
|
+
FieldLabel: Cu,
|
|
3726
|
+
FieldMetric: _i,
|
|
3727
|
+
FieldMultiselect: Iu,
|
|
3728
|
+
FieldObject: wi,
|
|
3729
|
+
FieldObjectAdvanced: Mi,
|
|
3730
|
+
FieldRadio: Si,
|
|
3731
|
+
FieldSelect: Ti,
|
|
3732
|
+
FieldSelectionGroup: Ru,
|
|
3733
|
+
FieldSwitch: Nu,
|
|
3734
|
+
FieldTextArea: Ku
|
|
3735
3735
|
}, Symbol.toStringTag, { value: "Module" })), Bu = {
|
|
3736
3736
|
name: "FormGroup",
|
|
3737
|
-
components:
|
|
3738
|
-
mixins: [
|
|
3737
|
+
components: Du,
|
|
3738
|
+
mixins: [ai],
|
|
3739
3739
|
inject: {
|
|
3740
3740
|
"vfg-array-item-index": {
|
|
3741
3741
|
default: void 0
|
|
@@ -3806,8 +3806,8 @@ const Mu = /* @__PURE__ */ Y(pu, [["render", wu], ["__scopeId", "data-v-70998d5b
|
|
|
3806
3806
|
}
|
|
3807
3807
|
},
|
|
3808
3808
|
getFieldID(e) {
|
|
3809
|
-
const t =
|
|
3810
|
-
return
|
|
3809
|
+
const t = B(this.options, "fieldIdPrefix", "");
|
|
3810
|
+
return Kt(e, t);
|
|
3811
3811
|
},
|
|
3812
3812
|
getTooltipId(e) {
|
|
3813
3813
|
return `${this.getFieldID(e)}-tooltip`;
|
|
@@ -3819,7 +3819,7 @@ const Mu = /* @__PURE__ */ Y(pu, [["render", wu], ["__scopeId", "data-v-70998d5b
|
|
|
3819
3819
|
},
|
|
3820
3820
|
// Get type of button, default to 'button'
|
|
3821
3821
|
getButtonType(e) {
|
|
3822
|
-
return
|
|
3822
|
+
return B(e, "type", "button");
|
|
3823
3823
|
},
|
|
3824
3824
|
// Child field executed validation
|
|
3825
3825
|
onFieldValidated(e, t, n) {
|
|
@@ -3856,17 +3856,17 @@ const Mu = /* @__PURE__ */ Y(pu, [["render", wu], ["__scopeId", "data-v-70998d5b
|
|
|
3856
3856
|
return e ? e.replace(/^[cC]onfig\./, "") : "";
|
|
3857
3857
|
}
|
|
3858
3858
|
}
|
|
3859
|
-
},
|
|
3859
|
+
}, zu = ["innerHTML"], Yu = { class: "icon-wrapper" }, Hu = ["innerHTML"], xu = {
|
|
3860
3860
|
key: 0,
|
|
3861
3861
|
class: "link-wrapper"
|
|
3862
|
-
},
|
|
3862
|
+
}, Gu = { class: "field-wrap" }, Wu = {
|
|
3863
3863
|
key: 0,
|
|
3864
3864
|
class: "buttons"
|
|
3865
|
-
},
|
|
3865
|
+
}, Zu = ["type", "onClick", "textContent"], Ju = ["innerHTML"], Qu = {
|
|
3866
3866
|
key: 2,
|
|
3867
3867
|
class: "errors help-block"
|
|
3868
|
-
},
|
|
3869
|
-
function
|
|
3868
|
+
}, Xu = ["innerHTML"];
|
|
3869
|
+
function ec(e, t, n, i, a, r) {
|
|
3870
3870
|
const s = F("KExternalLink"), o = F("KLabel");
|
|
3871
3871
|
return u(), g("div", {
|
|
3872
3872
|
class: W(["form-group", e.getFieldRowClasses(n.field)])
|
|
@@ -3882,18 +3882,18 @@ function Xu(e, t, n, i, a, r) {
|
|
|
3882
3882
|
placement: "top",
|
|
3883
3883
|
tooltipId: r.getTooltipId(n.field)
|
|
3884
3884
|
} : void 0
|
|
3885
|
-
},
|
|
3886
|
-
default:
|
|
3887
|
-
f("div",
|
|
3885
|
+
}, $n({
|
|
3886
|
+
default: I(() => [
|
|
3887
|
+
f("div", Yu, [
|
|
3888
3888
|
f("span", {
|
|
3889
3889
|
innerHTML: r.formattedLabel(n.field.label)
|
|
3890
|
-
}, null, 8,
|
|
3890
|
+
}, null, 8, Hu)
|
|
3891
3891
|
]),
|
|
3892
|
-
n.field.link ? (u(), g("div",
|
|
3892
|
+
n.field.link ? (u(), g("div", xu, [
|
|
3893
3893
|
C(s, {
|
|
3894
3894
|
href: n.field.link
|
|
3895
3895
|
}, {
|
|
3896
|
-
default:
|
|
3896
|
+
default: I(() => t[0] || (t[0] = [
|
|
3897
3897
|
f("span", { class: "section-header" }, "More info", -1)
|
|
3898
3898
|
])),
|
|
3899
3899
|
_: 1
|
|
@@ -3904,16 +3904,16 @@ function Xu(e, t, n, i, a, r) {
|
|
|
3904
3904
|
}, [
|
|
3905
3905
|
n.options.helpAsHtml && n.field.help ? {
|
|
3906
3906
|
name: "tooltip",
|
|
3907
|
-
fn:
|
|
3907
|
+
fn: I(() => [
|
|
3908
3908
|
f("div", {
|
|
3909
3909
|
innerHTML: n.field.help
|
|
3910
|
-
}, null, 8,
|
|
3910
|
+
}, null, 8, zu)
|
|
3911
3911
|
]),
|
|
3912
3912
|
key: "0"
|
|
3913
3913
|
} : void 0
|
|
3914
3914
|
]), 1032, ["aria-describedby", "class", "for", "info", "tooltip-attributes"])) : R("", !0),
|
|
3915
|
-
f("div",
|
|
3916
|
-
(u(), A(ie(r.getFieldComponent(n.field)),
|
|
3915
|
+
f("div", Gu, [
|
|
3916
|
+
(u(), A(ie(r.getFieldComponent(n.field)), Ie(e.$attrs, {
|
|
3917
3917
|
ref: "child",
|
|
3918
3918
|
disabled: e.fieldDisabled(n.field) || null,
|
|
3919
3919
|
"form-options": n.options,
|
|
@@ -3925,38 +3925,38 @@ function Xu(e, t, n, i, a, r) {
|
|
|
3925
3925
|
onRefreshModel: r.onRefreshModel,
|
|
3926
3926
|
onValidated: r.onFieldValidated
|
|
3927
3927
|
}), null, 16, ["disabled", "form-options", "hint", "model", "schema", "vfg", "onModelUpdated", "onRefreshModel", "onValidated"])),
|
|
3928
|
-
r.buttonVisibility(n.field) ? (u(), g("div",
|
|
3928
|
+
r.buttonVisibility(n.field) ? (u(), g("div", Wu, [
|
|
3929
3929
|
(u(!0), g(K, null, J(n.field.buttons, (l, d) => (u(), g("button", {
|
|
3930
3930
|
key: d,
|
|
3931
3931
|
class: W(l.classes),
|
|
3932
3932
|
type: r.getButtonType(l),
|
|
3933
3933
|
onClick: (h) => r.buttonClickHandler(l, n.field, h),
|
|
3934
3934
|
textContent: $(l.label)
|
|
3935
|
-
}, null, 10,
|
|
3935
|
+
}, null, 10, Zu))), 128))
|
|
3936
3936
|
])) : R("", !0)
|
|
3937
3937
|
]),
|
|
3938
3938
|
n.field.hint && n.field.type !== "input" ? (u(), g("div", {
|
|
3939
3939
|
key: 1,
|
|
3940
3940
|
class: "hint",
|
|
3941
3941
|
innerHTML: r.fieldHint(n.field)
|
|
3942
|
-
}, null, 8,
|
|
3943
|
-
r.fieldErrors(n.field).length > 0 ? (u(), g("div",
|
|
3942
|
+
}, null, 8, Ju)) : R("", !0),
|
|
3943
|
+
r.fieldErrors(n.field).length > 0 ? (u(), g("div", Qu, [
|
|
3944
3944
|
(u(!0), g(K, null, J(r.fieldErrors(n.field), (l, d) => (u(), g("span", {
|
|
3945
3945
|
key: d,
|
|
3946
3946
|
innerHTML: l
|
|
3947
|
-
}, null, 8,
|
|
3947
|
+
}, null, 8, Xu))), 128))
|
|
3948
3948
|
])) : R("", !0)
|
|
3949
3949
|
], 2);
|
|
3950
3950
|
}
|
|
3951
|
-
const
|
|
3952
|
-
var
|
|
3953
|
-
const
|
|
3951
|
+
const Ci = /* @__PURE__ */ Y(Bu, [["render", ec], ["__scopeId", "data-v-172f268b"]]), tc = "12px";
|
|
3952
|
+
var mt = /* @__PURE__ */ ((e) => (e.REDIS_CE = "redis-ce", e.REDIS_EE = "redis-ee", e))(mt || {});
|
|
3953
|
+
const nc = (e) => {
|
|
3954
3954
|
var t, n;
|
|
3955
|
-
return e.type ===
|
|
3956
|
-
},
|
|
3957
|
-
[
|
|
3958
|
-
[
|
|
3959
|
-
},
|
|
3955
|
+
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";
|
|
3956
|
+
}, ic = {
|
|
3957
|
+
[mt.REDIS_CE]: "open source",
|
|
3958
|
+
[mt.REDIS_EE]: "enterprise"
|
|
3959
|
+
}, In = (e) => ic[e] ?? "", ac = { class: "partial-config-card" }, rc = { class: "config-card-row-label" }, oc = { class: "label-text" }, sc = ["data-testid"], lc = ["data-testid"], dc = { key: 1 }, uc = ["data-testid"], cc = ["data-testid"], mc = /* @__PURE__ */ re({
|
|
3960
3960
|
__name: "RedisConfigCard",
|
|
3961
3961
|
props: {
|
|
3962
3962
|
configFields: {
|
|
@@ -3991,7 +3991,7 @@ const tc = (e) => {
|
|
|
3991
3991
|
formatter: n,
|
|
3992
3992
|
order: 3
|
|
3993
3993
|
}
|
|
3994
|
-
}, a = e, r = (m) => m != null, s = (m, p) => r(p) && ["password", "sentinel_password"].includes(m) ? "password" : "text", { convertKeyToTitle: o } =
|
|
3994
|
+
}, a = e, r = (m) => m != null, s = (m, p) => r(p) && ["password", "sentinel_password"].includes(m) ? "password" : "text", { convertKeyToTitle: o } = Pi(), l = L(() => Object.entries(a.configFields).map(([m, p]) => {
|
|
3995
3995
|
var E, N, c, M;
|
|
3996
3996
|
return {
|
|
3997
3997
|
key: m,
|
|
@@ -4004,19 +4004,19 @@ const tc = (e) => {
|
|
|
4004
4004
|
}).sort((m, p) => m.order - p.order).filter((m) => m.type !== "hidden")), d = ye.useRedisNonStandardFields(a.configFields, a.pluginRedisFields), h = L(() => l.value.concat(d));
|
|
4005
4005
|
return (m, p) => {
|
|
4006
4006
|
const E = F("KCopy");
|
|
4007
|
-
return u(), g("div",
|
|
4007
|
+
return u(), g("div", ac, [
|
|
4008
4008
|
(u(!0), g(K, null, J(h.value, ({ key: N, label: c, value: M, type: T }) => (u(), g("div", {
|
|
4009
4009
|
key: N,
|
|
4010
4010
|
class: "partial-config-card-row"
|
|
4011
4011
|
}, [
|
|
4012
|
-
f("div",
|
|
4013
|
-
f("div",
|
|
4012
|
+
f("div", rc, [
|
|
4013
|
+
f("div", oc, $(c), 1)
|
|
4014
4014
|
]),
|
|
4015
4015
|
f("div", {
|
|
4016
4016
|
class: "config-card-row-value",
|
|
4017
4017
|
"data-testid": `${N}-property-value`
|
|
4018
4018
|
}, [
|
|
4019
|
-
r(M) ? (u(), g("div",
|
|
4019
|
+
r(M) ? (u(), g("div", dc, [
|
|
4020
4020
|
T === "password" ? (u(), g("div", {
|
|
4021
4021
|
key: 0,
|
|
4022
4022
|
"data-testid": `${N}-copy-password`
|
|
@@ -4025,33 +4025,33 @@ const tc = (e) => {
|
|
|
4025
4025
|
format: "redacted",
|
|
4026
4026
|
text: String(M)
|
|
4027
4027
|
}, null, 8, ["text"])
|
|
4028
|
-
], 8,
|
|
4028
|
+
], 8, uc)) : (u(), g("div", {
|
|
4029
4029
|
key: 1,
|
|
4030
4030
|
"data-testid": `${N}-plain-text`
|
|
4031
|
-
}, $(M), 9,
|
|
4031
|
+
}, $(M), 9, cc))
|
|
4032
4032
|
])) : (u(), g("div", {
|
|
4033
4033
|
key: 0,
|
|
4034
4034
|
"data-testid": `${N}-no-value`
|
|
4035
|
-
}, " – ", 8,
|
|
4036
|
-
], 8,
|
|
4035
|
+
}, " – ", 8, lc))
|
|
4036
|
+
], 8, sc)
|
|
4037
4037
|
]))), 128))
|
|
4038
4038
|
]);
|
|
4039
4039
|
};
|
|
4040
4040
|
}
|
|
4041
|
-
}),
|
|
4041
|
+
}), fc = /* @__PURE__ */ Y(mc, [["__scopeId", "data-v-c1eb723f"]]), hc = {
|
|
4042
4042
|
class: "redis-config-select",
|
|
4043
4043
|
"data-testid": "redis-config-select"
|
|
4044
|
-
},
|
|
4044
|
+
}, pc = { class: "selected-redis-config" }, gc = ["data-testid"], vc = {
|
|
4045
4045
|
class: "select-item-name",
|
|
4046
4046
|
"data-testid": "selected-redis-config"
|
|
4047
|
-
},
|
|
4047
|
+
}, bc = {
|
|
4048
4048
|
class: "empty-redis-config",
|
|
4049
4049
|
"data-testid": "empty-redis-config"
|
|
4050
|
-
},
|
|
4050
|
+
}, yc = {
|
|
4051
4051
|
key: 1,
|
|
4052
4052
|
class: "redis-shared-config-error-message",
|
|
4053
4053
|
"data-testid": "redis-config-fetch-error"
|
|
4054
|
-
},
|
|
4054
|
+
}, _c = /* @__PURE__ */ re({
|
|
4055
4055
|
__name: "RedisConfigSelect",
|
|
4056
4056
|
props: {
|
|
4057
4057
|
defaultRedisConfigItem: {
|
|
@@ -4078,7 +4078,7 @@ const tc = (e) => {
|
|
|
4078
4078
|
},
|
|
4079
4079
|
emits: ["showNewPartialModal"],
|
|
4080
4080
|
setup(e) {
|
|
4081
|
-
const { t } = ge("en-us", ve), n =
|
|
4081
|
+
const { t } = ge("en-us", ve), n = ot(Zr), i = {
|
|
4082
4082
|
konnect: {
|
|
4083
4083
|
getOne: "/v2/control-planes/{controlPlaneId}/core-entities/partials/{id}",
|
|
4084
4084
|
getAll: "/v2/control-planes/{controlPlaneId}/core-entities/partials"
|
|
@@ -4087,13 +4087,13 @@ const tc = (e) => {
|
|
|
4087
4087
|
getOne: "/{workspace}/partials/{id}",
|
|
4088
4088
|
getAll: "/{workspace}/partials"
|
|
4089
4089
|
}
|
|
4090
|
-
}, a = e, r = ue(null), { getMessageFromError: s } =
|
|
4090
|
+
}, a = e, r = ue(null), { getMessageFromError: s } = Ni(), o = ot(Wr), {
|
|
4091
4091
|
debouncedQueryChange: l,
|
|
4092
4092
|
loading: d,
|
|
4093
4093
|
error: h,
|
|
4094
4094
|
loadItems: m,
|
|
4095
4095
|
results: p
|
|
4096
|
-
} =
|
|
4096
|
+
} = Li(o, i[o.app].getAll, void 0, {
|
|
4097
4097
|
fetchedItemsKey: "data",
|
|
4098
4098
|
searchKeys: ["id", "name"]
|
|
4099
4099
|
}), E = L(() => h.value ? s(h.value) : ""), N = (U) => {
|
|
@@ -4101,38 +4101,38 @@ const tc = (e) => {
|
|
|
4101
4101
|
return o.app === "konnect" ? b = b.replace(/{controlPlaneId}/gi, (o == null ? void 0 : o.controlPlaneId) || "") : o.app === "kongManager" && (b = b.replace(/\/{workspace}/gi, o != null && o.workspace ? `/${o.workspace}` : "")), b = b.replace(/{id}/gi, String(U)), b;
|
|
4102
4102
|
}, c = L(() => {
|
|
4103
4103
|
var b;
|
|
4104
|
-
const U = ((b = p.value) == null ? void 0 : b.map((
|
|
4105
|
-
return a.redisType !== "all" ? U.filter((
|
|
4106
|
-
}), { axiosInstance: M } =
|
|
4104
|
+
const U = ((b = p.value) == null ? void 0 : b.map((O) => ({ label: O.id, name: O.name, value: O.id, type: O.type, tag: nc(O) }))) || [];
|
|
4105
|
+
return a.redisType !== "all" ? U.filter((O) => O.type === a.redisType) : U;
|
|
4106
|
+
}), { axiosInstance: M } = qi(o == null ? void 0 : o.axiosRequestConfig), T = async (U) => {
|
|
4107
4107
|
if (U) {
|
|
4108
4108
|
a.updateRedisModel(U);
|
|
4109
4109
|
try {
|
|
4110
4110
|
const b = await M.get(N(U));
|
|
4111
4111
|
if (b.data.config) {
|
|
4112
|
-
const
|
|
4113
|
-
delete
|
|
4112
|
+
const O = Object.assign(b.data, b.data.config);
|
|
4113
|
+
delete O.config, r.value = O;
|
|
4114
4114
|
}
|
|
4115
4115
|
} catch (b) {
|
|
4116
4116
|
console.error(b);
|
|
4117
4117
|
}
|
|
4118
4118
|
}
|
|
4119
4119
|
};
|
|
4120
|
-
return
|
|
4120
|
+
return $t(() => n == null ? void 0 : n.value, async (U) => {
|
|
4121
4121
|
U && await m();
|
|
4122
|
-
}),
|
|
4122
|
+
}), Ut(() => {
|
|
4123
4123
|
m(), a.defaultRedisConfigItem && T(a.defaultRedisConfigItem);
|
|
4124
4124
|
}), (U, b) => {
|
|
4125
|
-
const
|
|
4125
|
+
const O = F("KLabel"), k = F("KBadge"), _ = F("KSelect");
|
|
4126
4126
|
return u(), g(K, null, [
|
|
4127
|
-
f("div",
|
|
4128
|
-
C(
|
|
4129
|
-
info: e.isCustomPlugin ? w(t)("redis.custom_plugin.tooltip") : w(t)("redis.shared_configuration.tooltip", { type: w(
|
|
4127
|
+
f("div", hc, [
|
|
4128
|
+
C(O, {
|
|
4129
|
+
info: e.isCustomPlugin ? w(t)("redis.custom_plugin.tooltip") : w(t)("redis.shared_configuration.tooltip", { type: w(In)(e.redisType) }),
|
|
4130
4130
|
"tooltip-attributes": {
|
|
4131
4131
|
maxWidth: "300",
|
|
4132
4132
|
placement: "top"
|
|
4133
4133
|
}
|
|
4134
4134
|
}, {
|
|
4135
|
-
default:
|
|
4135
|
+
default: I(() => [
|
|
4136
4136
|
te($(w(t)("redis.shared_configuration.title")), 1)
|
|
4137
4137
|
]),
|
|
4138
4138
|
_: 1
|
|
@@ -4150,61 +4150,61 @@ const tc = (e) => {
|
|
|
4150
4150
|
onChange: b[1] || (b[1] = (v) => T(v == null ? void 0 : v.value)),
|
|
4151
4151
|
onQueryChange: w(l)
|
|
4152
4152
|
}, {
|
|
4153
|
-
"selected-item-template":
|
|
4154
|
-
f("div",
|
|
4153
|
+
"selected-item-template": I(({ item: v }) => [
|
|
4154
|
+
f("div", pc, $(v.name), 1)
|
|
4155
4155
|
]),
|
|
4156
|
-
"item-template":
|
|
4156
|
+
"item-template": I(({ item: v }) => [
|
|
4157
4157
|
f("div", {
|
|
4158
4158
|
class: "plugin-form-redis-configuration-dropdown-item",
|
|
4159
4159
|
"data-testid": `redis-configuration-dropdown-item-${v.name}`
|
|
4160
4160
|
}, [
|
|
4161
|
-
f("span",
|
|
4161
|
+
f("span", vc, $(v.name), 1),
|
|
4162
4162
|
C(k, {
|
|
4163
4163
|
appearance: "info",
|
|
4164
4164
|
class: "select-item-label"
|
|
4165
4165
|
}, {
|
|
4166
|
-
default:
|
|
4166
|
+
default: I(() => [
|
|
4167
4167
|
te($(v.tag), 1)
|
|
4168
4168
|
]),
|
|
4169
4169
|
_: 2
|
|
4170
4170
|
}, 1024)
|
|
4171
|
-
], 8,
|
|
4171
|
+
], 8, gc)
|
|
4172
4172
|
]),
|
|
4173
|
-
empty:
|
|
4174
|
-
f("div",
|
|
4173
|
+
empty: I(() => [
|
|
4174
|
+
f("div", bc, $(w(t)("redis.shared_configuration.empty_state")), 1)
|
|
4175
4175
|
]),
|
|
4176
|
-
"dropdown-footer-text":
|
|
4176
|
+
"dropdown-footer-text": I(() => [
|
|
4177
4177
|
f("div", {
|
|
4178
4178
|
class: "new-redis-config-area",
|
|
4179
4179
|
"data-testid": "new-redis-config-area",
|
|
4180
4180
|
onClick: b[0] || (b[0] = (v) => U.$emit("showNewPartialModal"))
|
|
4181
4181
|
}, [
|
|
4182
|
-
C(w(
|
|
4183
|
-
f("span", null, $(w(t)("redis.shared_configuration.create_new_configuration", { type: w(
|
|
4182
|
+
C(w(Vt), { size: w(tc) }, null, 8, ["size"]),
|
|
4183
|
+
f("span", null, $(w(t)("redis.shared_configuration.create_new_configuration", { type: w(In)(e.redisType) })), 1)
|
|
4184
4184
|
])
|
|
4185
4185
|
]),
|
|
4186
4186
|
_: 1
|
|
4187
4187
|
}, 8, ["items", "loading", "model-value", "placeholder", "onQueryChange"])
|
|
4188
4188
|
]),
|
|
4189
|
-
r.value ? (u(), A(
|
|
4189
|
+
r.value ? (u(), A(fc, {
|
|
4190
4190
|
key: 0,
|
|
4191
4191
|
"config-fields": r.value,
|
|
4192
4192
|
"plugin-redis-fields": e.pluginRedisFields
|
|
4193
4193
|
}, null, 8, ["config-fields", "plugin-redis-fields"])) : R("", !0),
|
|
4194
|
-
E.value ? (u(), g("p",
|
|
4194
|
+
E.value ? (u(), g("p", yc, $(E.value || w(t)("redis.shared_configuration.error")), 1)) : R("", !0)
|
|
4195
4195
|
], 64);
|
|
4196
4196
|
};
|
|
4197
4197
|
}
|
|
4198
|
-
}), On = /* @__PURE__ */ Y(
|
|
4198
|
+
}), On = /* @__PURE__ */ Y(_c, [["__scopeId", "data-v-ec7085df"]]), wc = { key: 0 }, Mc = {
|
|
4199
4199
|
class: "redis-config-radio-group",
|
|
4200
4200
|
"data-testid": "redis-config-radio-group"
|
|
4201
|
-
},
|
|
4201
|
+
}, Sc = {
|
|
4202
4202
|
key: 0,
|
|
4203
4203
|
class: "shared-redis-config"
|
|
4204
|
-
},
|
|
4204
|
+
}, Tc = {
|
|
4205
4205
|
key: 1,
|
|
4206
4206
|
class: "dedicated-redis-config"
|
|
4207
|
-
},
|
|
4207
|
+
}, Cc = { class: "dedicated-redis-config-title" }, Ic = /* @__PURE__ */ re({
|
|
4208
4208
|
__name: "FormRedis",
|
|
4209
4209
|
props: {
|
|
4210
4210
|
tag: {
|
|
@@ -4261,18 +4261,18 @@ const tc = (e) => {
|
|
|
4261
4261
|
}, N = (c, M, T) => {
|
|
4262
4262
|
i("validated", c, M, T);
|
|
4263
4263
|
};
|
|
4264
|
-
return
|
|
4264
|
+
return $t(() => s.value, (c) => {
|
|
4265
4265
|
c ? d.value && i("partialToggled", "redis", { partials: d.value }) : i("partialToggled", "partials", l.value);
|
|
4266
|
-
}),
|
|
4266
|
+
}), Ut(() => {
|
|
4267
4267
|
var c, M, T;
|
|
4268
4268
|
if (n.model && (l.value = n.field.fields.reduce((U, b) => (Object.keys(n.model).includes(b.model) && (U[b.model] = n.model[b.model]), U), {})), (T = (M = (c = n == null ? void 0 : n.model) == null ? void 0 : c.partials) == null ? void 0 : M[0]) != null && T.id) {
|
|
4269
4269
|
const U = n.model.partials[0].id;
|
|
4270
4270
|
s.value = !0, o.value = U;
|
|
4271
4271
|
}
|
|
4272
4272
|
}), (c, M) => {
|
|
4273
|
-
const T = F("KAlert"), U = F("KBadge"), b = F("KRadio"),
|
|
4273
|
+
const T = F("KAlert"), U = F("KBadge"), b = F("KRadio"), O = F("KCard");
|
|
4274
4274
|
return u(), g("div", null, [
|
|
4275
|
-
r.value ? (u(), g("div",
|
|
4275
|
+
r.value ? (u(), g("div", wc, [
|
|
4276
4276
|
C(T, {
|
|
4277
4277
|
"data-testid": "custom-plugin-redis-config-note",
|
|
4278
4278
|
message: w(a)("redis.custom_plugin.alert")
|
|
@@ -4284,14 +4284,14 @@ const tc = (e) => {
|
|
|
4284
4284
|
"update-redis-model": m,
|
|
4285
4285
|
onShowNewPartialModal: M[0] || (M[0] = (k) => c.$emit("showNewPartialModal"))
|
|
4286
4286
|
}, null, 8, ["default-redis-config-item", "plugin-redis-fields"])
|
|
4287
|
-
])) : (u(), A(
|
|
4287
|
+
])) : (u(), A(O, {
|
|
4288
4288
|
key: 1,
|
|
4289
4289
|
class: "redis-config-card",
|
|
4290
4290
|
"data-testid": "redis-config-card",
|
|
4291
4291
|
title: w(a)("redis.title")
|
|
4292
4292
|
}, {
|
|
4293
|
-
default:
|
|
4294
|
-
f("div",
|
|
4293
|
+
default: I(() => [
|
|
4294
|
+
f("div", Mc, [
|
|
4295
4295
|
C(b, {
|
|
4296
4296
|
modelValue: s.value,
|
|
4297
4297
|
"onUpdate:modelValue": M[1] || (M[1] = (k) => s.value = k),
|
|
@@ -4302,9 +4302,9 @@ const tc = (e) => {
|
|
|
4302
4302
|
label: w(a)("redis.shared_configuration.label"),
|
|
4303
4303
|
"selected-value": !0
|
|
4304
4304
|
}, {
|
|
4305
|
-
default:
|
|
4305
|
+
default: I(() => [
|
|
4306
4306
|
C(U, { appearance: "success" }, {
|
|
4307
|
-
default:
|
|
4307
|
+
default: I(() => [
|
|
4308
4308
|
te($(w(a)("redis.shared_configuration.badge")), 1)
|
|
4309
4309
|
]),
|
|
4310
4310
|
_: 1
|
|
@@ -4323,7 +4323,7 @@ const tc = (e) => {
|
|
|
4323
4323
|
"selected-value": !1
|
|
4324
4324
|
}, null, 8, ["modelValue", "description", "label"])
|
|
4325
4325
|
]),
|
|
4326
|
-
s.value ? (u(), g("div",
|
|
4326
|
+
s.value ? (u(), g("div", Sc, [
|
|
4327
4327
|
C(On, {
|
|
4328
4328
|
"default-redis-config-item": o.value,
|
|
4329
4329
|
"plugin-redis-fields": e.field.fields,
|
|
@@ -4331,14 +4331,14 @@ const tc = (e) => {
|
|
|
4331
4331
|
"update-redis-model": m,
|
|
4332
4332
|
onShowNewPartialModal: M[3] || (M[3] = (k) => c.$emit("showNewPartialModal"))
|
|
4333
4333
|
}, null, 8, ["default-redis-config-item", "plugin-redis-fields", "redis-type"])
|
|
4334
|
-
])) : (u(), g("div",
|
|
4335
|
-
f("div",
|
|
4334
|
+
])) : (u(), g("div", Tc, [
|
|
4335
|
+
f("div", Cc, $(w(a)("redis.dedicated_configuration.title")), 1),
|
|
4336
4336
|
(u(), A(ie(e.tag), null, {
|
|
4337
|
-
default:
|
|
4337
|
+
default: I(() => [
|
|
4338
4338
|
(u(!0), g(K, null, J(e.field.fields, (k) => (u(), g(K, {
|
|
4339
4339
|
key: k.model
|
|
4340
4340
|
}, [
|
|
4341
|
-
h(k) ? (u(), A(
|
|
4341
|
+
h(k) ? (u(), A(Ci, {
|
|
4342
4342
|
key: 0,
|
|
4343
4343
|
ref_for: !0,
|
|
4344
4344
|
ref: "children",
|
|
@@ -4362,10 +4362,10 @@ const tc = (e) => {
|
|
|
4362
4362
|
]);
|
|
4363
4363
|
};
|
|
4364
4364
|
}
|
|
4365
|
-
}), Oc = /* @__PURE__ */ Y(
|
|
4365
|
+
}), Oc = /* @__PURE__ */ Y(Ic, [["__scopeId", "data-v-b9a17494"]]), Ac = {
|
|
4366
4366
|
name: "VueFormGenerator",
|
|
4367
|
-
components: { formGroup:
|
|
4368
|
-
mixins: [
|
|
4367
|
+
components: { formGroup: Ci, formRedis: Oc },
|
|
4368
|
+
mixins: [ai],
|
|
4369
4369
|
inject: {
|
|
4370
4370
|
// Inject AUTOFILL_SLOT for provide()
|
|
4371
4371
|
autofillSlot: {
|
|
@@ -4499,7 +4499,7 @@ const tc = (e) => {
|
|
|
4499
4499
|
},
|
|
4500
4500
|
// Validating the model properties
|
|
4501
4501
|
validate(e = null) {
|
|
4502
|
-
e === null && (e =
|
|
4502
|
+
e === null && (e = B(this.options, "validateAsync", !1)), this.clearValidationErrors();
|
|
4503
4503
|
const t = [], n = [];
|
|
4504
4504
|
le(this.$refs.children, (a) => {
|
|
4505
4505
|
z(a.validate) && (t.push(a.$refs.child), n.push(a.$refs.child.validate(!0)));
|
|
@@ -4526,15 +4526,15 @@ const tc = (e) => {
|
|
|
4526
4526
|
});
|
|
4527
4527
|
}
|
|
4528
4528
|
}
|
|
4529
|
-
},
|
|
4529
|
+
}, Ec = {
|
|
4530
4530
|
key: 0,
|
|
4531
4531
|
class: "vue-form-generator"
|
|
4532
|
-
},
|
|
4533
|
-
function
|
|
4532
|
+
}, Fc = { key: 0 };
|
|
4533
|
+
function kc(e, t, n, i, a, r) {
|
|
4534
4534
|
const s = F("form-redis"), o = F("form-group"), l = F("KCollapse");
|
|
4535
|
-
return n.schema != null ? (u(), g("div",
|
|
4535
|
+
return n.schema != null ? (u(), g("div", Ec, [
|
|
4536
4536
|
n.schema.fields ? (u(), A(ie(n.tag), { key: 0 }, {
|
|
4537
|
-
default:
|
|
4537
|
+
default: I(() => [
|
|
4538
4538
|
(u(!0), g(K, null, J(r.fields, (d) => (u(), g(K, {
|
|
4539
4539
|
key: d.model
|
|
4540
4540
|
}, [
|
|
@@ -4576,16 +4576,16 @@ function Fc(e, t, n, i, a, r) {
|
|
|
4576
4576
|
class: "root-level-collapse",
|
|
4577
4577
|
"model-value": !1,
|
|
4578
4578
|
title: d.collapsible.title
|
|
4579
|
-
},
|
|
4580
|
-
default:
|
|
4579
|
+
}, $n({
|
|
4580
|
+
default: I(() => {
|
|
4581
4581
|
var m, p, E, N;
|
|
4582
4582
|
return [
|
|
4583
|
-
(m = d.slots) != null && m.beforeContent ?
|
|
4584
|
-
d.fields.length === 0 && ((E = d.slots) != null && E.emptyState) ?
|
|
4583
|
+
(m = d.slots) != null && m.beforeContent ? Oe(e.$slots, (p = d.slots) == null ? void 0 : p.beforeContent, { key: 0 }) : R("", !0),
|
|
4584
|
+
d.fields.length === 0 && ((E = d.slots) != null && E.emptyState) ? Oe(e.$slots, (N = d.slots) == null ? void 0 : N.emptyState, { key: 1 }) : (u(), A(ie(n.tag), {
|
|
4585
4585
|
key: 2,
|
|
4586
4586
|
class: W(e.getFieldRowClasses(d))
|
|
4587
4587
|
}, {
|
|
4588
|
-
default:
|
|
4588
|
+
default: I(() => [
|
|
4589
4589
|
(u(!0), g(K, null, J(d.fields, (c) => (u(), g(K, {
|
|
4590
4590
|
key: c.model
|
|
4591
4591
|
}, [
|
|
@@ -4614,11 +4614,11 @@ function Fc(e, t, n, i, a, r) {
|
|
|
4614
4614
|
"trigger-label": a.collapseStates[`group-${h}-nested`] ?? !0 ? d.collapsible.nestedCollapsible.triggerLabel.expand : d.collapsible.nestedCollapsible.triggerLabel.collapse,
|
|
4615
4615
|
"onUpdate:modelValue": (c) => a.collapseStates[`group-${h}-nested`] = c
|
|
4616
4616
|
}, {
|
|
4617
|
-
default:
|
|
4617
|
+
default: I(() => [
|
|
4618
4618
|
(u(), A(ie(n.tag), {
|
|
4619
4619
|
class: W(e.getFieldRowClasses(d))
|
|
4620
4620
|
}, {
|
|
4621
|
-
default:
|
|
4621
|
+
default: I(() => [
|
|
4622
4622
|
(u(!0), g(K, null, J(d.collapsible.nestedCollapsible.fields, (c) => (u(), g(K, {
|
|
4623
4623
|
key: c.model
|
|
4624
4624
|
}, [
|
|
@@ -4661,7 +4661,7 @@ function Fc(e, t, n, i, a, r) {
|
|
|
4661
4661
|
}, [
|
|
4662
4662
|
d.collapsible.description ? {
|
|
4663
4663
|
name: "visible-content",
|
|
4664
|
-
fn:
|
|
4664
|
+
fn: I(() => [
|
|
4665
4665
|
te($(d.collapsible.description), 1)
|
|
4666
4666
|
]),
|
|
4667
4667
|
key: "0"
|
|
@@ -4670,8 +4670,8 @@ function Fc(e, t, n, i, a, r) {
|
|
|
4670
4670
|
key: 1,
|
|
4671
4671
|
class: W(e.getFieldRowClasses(d))
|
|
4672
4672
|
}, {
|
|
4673
|
-
default:
|
|
4674
|
-
d.legend ? (u(), g("legend",
|
|
4673
|
+
default: I(() => [
|
|
4674
|
+
d.legend ? (u(), g("legend", Fc, $(d.legend), 1)) : R("", !0),
|
|
4675
4675
|
(u(!0), g(K, null, J(d.fields, (m) => (u(), g(K, {
|
|
4676
4676
|
key: m.model
|
|
4677
4677
|
}, [
|
|
@@ -4695,11 +4695,16 @@ function Fc(e, t, n, i, a, r) {
|
|
|
4695
4695
|
], 64))), 128))
|
|
4696
4696
|
])) : R("", !0);
|
|
4697
4697
|
}
|
|
4698
|
-
const ee = /* @__PURE__ */ Y(
|
|
4698
|
+
const ee = /* @__PURE__ */ Y(Ac, [["render", kc]]), rt = {
|
|
4699
|
+
openIdConnectJWKDocs: "https://developer.konghq.com/plugins/openid-connect/reference/#schema--config-client-jwk",
|
|
4700
|
+
openIdConnectClusterNodesDocs: "https://developer.konghq.com/plugins/openid-connect/reference/#schema--config-redis-cluster-nodes",
|
|
4701
|
+
openIdConfigurationDocs: "https://developer.konghq.com/plugins/openid-connect/reference/",
|
|
4702
|
+
openIdAuthorizationDocs: "https://developer.konghq.com/plugins/openid-connect/#authorization"
|
|
4703
|
+
}, An = /* @__PURE__ */ new Set([
|
|
4699
4704
|
"config-client_id",
|
|
4700
4705
|
"config-client_secret",
|
|
4701
4706
|
"config-issuer"
|
|
4702
|
-
]),
|
|
4707
|
+
]), En = /* @__PURE__ */ new Set([
|
|
4703
4708
|
"config-scopes_claim",
|
|
4704
4709
|
"config-scopes_required",
|
|
4705
4710
|
"config-audience_claim",
|
|
@@ -4709,7 +4714,7 @@ const ee = /* @__PURE__ */ Y(Ic, [["render", Fc]]), In = /* @__PURE__ */ new Set
|
|
|
4709
4714
|
"config-groups_claim",
|
|
4710
4715
|
"config-groups_required",
|
|
4711
4716
|
"config-authenticated_groups_claim"
|
|
4712
|
-
]),
|
|
4717
|
+
]), Uc = {
|
|
4713
4718
|
name: "OIDCForm",
|
|
4714
4719
|
components: { VueFormGenerator: ee },
|
|
4715
4720
|
provide() {
|
|
@@ -4762,6 +4767,10 @@ const ee = /* @__PURE__ */ Y(Ic, [["render", Fc]]), In = /* @__PURE__ */ new Set
|
|
|
4762
4767
|
globalFields: null,
|
|
4763
4768
|
commonFieldsSchema: null,
|
|
4764
4769
|
authFieldsSchema: null,
|
|
4770
|
+
openIdConnectJWKLink: rt.openIdConnectJWKDocs,
|
|
4771
|
+
openIdConnectClusterNodesLink: rt.openIdConnectClusterNodesDocs,
|
|
4772
|
+
openIdConfigurationDocs: rt.openIdConfigurationDocs,
|
|
4773
|
+
openIdAuthorizationDocs: rt.openIdAuthorizationDocs,
|
|
4765
4774
|
advancedFieldsSchema: {
|
|
4766
4775
|
fields: []
|
|
4767
4776
|
},
|
|
@@ -4806,14 +4815,14 @@ const ee = /* @__PURE__ */ Y(Ic, [["render", Fc]]), In = /* @__PURE__ */ new Set
|
|
|
4806
4815
|
};
|
|
4807
4816
|
const t = this.formSchema.fields.reduce((a, r) => (a[r.model] = r, a), {});
|
|
4808
4817
|
this.commonFieldsSchema = {
|
|
4809
|
-
fields: Array.from(In).reduce((a, r) => (t[r] && a.push(t[r]), a), [])
|
|
4810
|
-
}, this.authFieldsSchema = {
|
|
4811
4818
|
fields: Array.from(An).reduce((a, r) => (t[r] && a.push(t[r]), a), [])
|
|
4819
|
+
}, this.authFieldsSchema = {
|
|
4820
|
+
fields: Array.from(En).reduce((a, r) => (t[r] && a.push(t[r]), a), [])
|
|
4812
4821
|
};
|
|
4813
4822
|
const { redis: n, redisModels: i } = ye.useRedisPartial(this.formSchema);
|
|
4814
4823
|
this.advancedFieldsSchema = {
|
|
4815
4824
|
fields: this.formSchema.fields.filter(
|
|
4816
|
-
(a) => a.model.startsWith("config") && a.model !== "config-auth_methods" && !
|
|
4825
|
+
(a) => a.model.startsWith("config") && a.model !== "config-auth_methods" && !An.has(a.model) && !En.has(a.model) && (!this.enableRedisPartial || !i.includes(a.model)) || a.model === "tags"
|
|
4817
4826
|
).reduce((a, r) => {
|
|
4818
4827
|
var s, o, l, d;
|
|
4819
4828
|
switch (r.model) {
|
|
@@ -4823,7 +4832,7 @@ const ee = /* @__PURE__ */ Y(Ic, [["render", Fc]]), In = /* @__PURE__ */ new Set
|
|
|
4823
4832
|
h.label = h.model;
|
|
4824
4833
|
a.push({
|
|
4825
4834
|
...r,
|
|
4826
|
-
link:
|
|
4835
|
+
link: this.openIdConnectJWKLink,
|
|
4827
4836
|
newElementButtonLabel: "+ Add Client JWK",
|
|
4828
4837
|
...Array.isArray((d = (l = r.items) == null ? void 0 : l.schema) == null ? void 0 : d.fields) && r.items.schema.fields.map((h) => ({ ...h, label: h.model }))
|
|
4829
4838
|
});
|
|
@@ -4832,7 +4841,7 @@ const ee = /* @__PURE__ */ Y(Ic, [["render", Fc]]), In = /* @__PURE__ */ new Set
|
|
|
4832
4841
|
case "config-session_redis_cluster_nodes": {
|
|
4833
4842
|
a.push({
|
|
4834
4843
|
...r,
|
|
4835
|
-
link:
|
|
4844
|
+
link: this.openIdConnectClusterNodesLink,
|
|
4836
4845
|
newElementButtonLabel: "+ Add Cluster Node"
|
|
4837
4846
|
});
|
|
4838
4847
|
break;
|
|
@@ -4909,8 +4918,8 @@ const ee = /* @__PURE__ */ Y(Ic, [["render", Fc]]), In = /* @__PURE__ */ new Set
|
|
|
4909
4918
|
this.formModel["config-auth_methods"] = this.getAuthMethodsValue(t, e), this.onModelUpdated();
|
|
4910
4919
|
}
|
|
4911
4920
|
}
|
|
4912
|
-
},
|
|
4913
|
-
function
|
|
4921
|
+
}, $c = { class: "general-settings" }, Vc = { class: "link-wrapper" }, jc = { class: "auth-method-container" }, Rc = { class: "general-settings" }, Pc = { class: "link-wrapper" }, Nc = { class: "general-settings" }, Lc = { class: "link-wrapper" };
|
|
4922
|
+
function qc(e, t, n, i, a, r) {
|
|
4914
4923
|
const s = F("VueFormGenerator"), o = F("KExternalLink"), l = F("KLabel"), d = F("KCheckbox"), h = F("KInputSwitch"), m = F("KTabs");
|
|
4915
4924
|
return u(), g("div", null, [
|
|
4916
4925
|
n.formModel.id && n.isEditing || !n.isEditing ? (u(), A(s, {
|
|
@@ -4922,15 +4931,15 @@ function Lc(e, t, n, i, a, r) {
|
|
|
4922
4931
|
onModelUpdated: n.onModelUpdated
|
|
4923
4932
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : R("", !0),
|
|
4924
4933
|
C(m, { tabs: a.tabs }, {
|
|
4925
|
-
common:
|
|
4926
|
-
f("div",
|
|
4927
|
-
f("div",
|
|
4928
|
-
C(o, { href:
|
|
4929
|
-
default:
|
|
4934
|
+
common: I(() => [
|
|
4935
|
+
f("div", $c, [
|
|
4936
|
+
f("div", Vc, [
|
|
4937
|
+
C(o, { href: a.openIdConfigurationDocs }, {
|
|
4938
|
+
default: I(() => t[2] || (t[2] = [
|
|
4930
4939
|
f("span", { class: "section-header" }, "Common Configuration Settings", -1)
|
|
4931
4940
|
])),
|
|
4932
4941
|
_: 1
|
|
4933
|
-
})
|
|
4942
|
+
}, 8, ["href"])
|
|
4934
4943
|
]),
|
|
4935
4944
|
t[4] || (t[4] = f("div", { class: "description" }, " Parameters for enabling the OpenID Connect plugin. Set these parameters before adding authorization, authentication, or other advanced configuration details. ", -1)),
|
|
4936
4945
|
r.displayForm ? (u(), A(s, {
|
|
@@ -4941,12 +4950,12 @@ function Lc(e, t, n, i, a, r) {
|
|
|
4941
4950
|
onModelUpdated: n.onModelUpdated
|
|
4942
4951
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : R("", !0),
|
|
4943
4952
|
C(l, null, {
|
|
4944
|
-
default:
|
|
4953
|
+
default: I(() => t[3] || (t[3] = [
|
|
4945
4954
|
te("Auth Methods")
|
|
4946
4955
|
])),
|
|
4947
4956
|
_: 1
|
|
4948
4957
|
}),
|
|
4949
|
-
f("div",
|
|
4958
|
+
f("div", jc, [
|
|
4950
4959
|
(u(!0), g(K, null, J(a.authMethods, (p) => (u(), g("div", {
|
|
4951
4960
|
key: p.value,
|
|
4952
4961
|
class: "auth-method"
|
|
@@ -4956,7 +4965,7 @@ function Lc(e, t, n, i, a, r) {
|
|
|
4956
4965
|
"onUpdate:modelValue": (E) => p.prop = E,
|
|
4957
4966
|
onChange: (E) => r.handleUpdate(E, p.value)
|
|
4958
4967
|
}, {
|
|
4959
|
-
default:
|
|
4968
|
+
default: I(() => [
|
|
4960
4969
|
te($(p.label), 1)
|
|
4961
4970
|
]),
|
|
4962
4971
|
_: 2
|
|
@@ -4971,15 +4980,15 @@ function Lc(e, t, n, i, a, r) {
|
|
|
4971
4980
|
}, null, 8, ["modelValue", "onChange"])
|
|
4972
4981
|
])
|
|
4973
4982
|
]),
|
|
4974
|
-
authorization:
|
|
4975
|
-
f("div",
|
|
4976
|
-
f("div",
|
|
4977
|
-
C(o, { href:
|
|
4978
|
-
default:
|
|
4983
|
+
authorization: I(() => [
|
|
4984
|
+
f("div", Rc, [
|
|
4985
|
+
f("div", Pc, [
|
|
4986
|
+
C(o, { href: a.openIdAuthorizationDocs }, {
|
|
4987
|
+
default: I(() => t[5] || (t[5] = [
|
|
4979
4988
|
f("span", { class: "section-header" }, "Authorization Configuration Settings", -1)
|
|
4980
4989
|
])),
|
|
4981
4990
|
_: 1
|
|
4982
|
-
})
|
|
4991
|
+
}, 8, ["href"])
|
|
4983
4992
|
]),
|
|
4984
4993
|
t[6] || (t[6] = f("div", { class: "description" }, " Parameters for setting up claims-based authorization. ", -1)),
|
|
4985
4994
|
r.displayForm ? (u(), A(s, {
|
|
@@ -4989,22 +4998,22 @@ function Lc(e, t, n, i, a, r) {
|
|
|
4989
4998
|
schema: a.authFieldsSchema,
|
|
4990
4999
|
onModelUpdated: n.onModelUpdated
|
|
4991
5000
|
}, {
|
|
4992
|
-
"autofill-provider":
|
|
4993
|
-
|
|
5001
|
+
"autofill-provider": I((p) => [
|
|
5002
|
+
Oe(e.$slots, "autofill-provider", Vi(ji(p)), void 0, !0)
|
|
4994
5003
|
]),
|
|
4995
5004
|
_: 3
|
|
4996
5005
|
}, 8, ["model", "options", "schema", "onModelUpdated"])) : R("", !0)
|
|
4997
5006
|
])
|
|
4998
5007
|
]),
|
|
4999
|
-
advanced:
|
|
5000
|
-
f("div",
|
|
5001
|
-
f("div",
|
|
5002
|
-
C(o, { href:
|
|
5003
|
-
default:
|
|
5008
|
+
advanced: I(() => [
|
|
5009
|
+
f("div", Nc, [
|
|
5010
|
+
f("div", Lc, [
|
|
5011
|
+
C(o, { href: e.openIdConnectLink }, {
|
|
5012
|
+
default: I(() => t[7] || (t[7] = [
|
|
5004
5013
|
f("span", { class: "section-header" }, "Advanced Configuration Settings", -1)
|
|
5005
5014
|
])),
|
|
5006
5015
|
_: 1
|
|
5007
|
-
})
|
|
5016
|
+
}, 8, ["href"])
|
|
5008
5017
|
]),
|
|
5009
5018
|
t[8] || (t[8] = f("div", { class: "description" }, " Advanced parameters for manually configuring the OpenID Connect plugin. ", -1)),
|
|
5010
5019
|
r.displayForm ? (u(), A(s, {
|
|
@@ -5024,7 +5033,7 @@ function Lc(e, t, n, i, a, r) {
|
|
|
5024
5033
|
}, 8, ["tabs"])
|
|
5025
5034
|
]);
|
|
5026
5035
|
}
|
|
5027
|
-
const
|
|
5036
|
+
const Kc = /* @__PURE__ */ Y(Uc, [["render", qc], ["__scopeId", "data-v-9575ff1b"]]), Dc = /* @__PURE__ */ re({
|
|
5028
5037
|
__name: "PostFunction",
|
|
5029
5038
|
props: {
|
|
5030
5039
|
formModel: {
|
|
@@ -5051,7 +5060,7 @@ const qc = /* @__PURE__ */ Y(kc, [["render", Lc], ["__scopeId", "data-v-44df963d
|
|
|
5051
5060
|
},
|
|
5052
5061
|
setup(e) {
|
|
5053
5062
|
var s;
|
|
5054
|
-
it(he, (s =
|
|
5063
|
+
it(he, (s = ft()) == null ? void 0 : s[xe]);
|
|
5055
5064
|
const { t, te: n } = ge("en-us", ve), i = e, a = L(() => i.formModel.id && i.isEditing || !i.isEditing), r = L(() => {
|
|
5056
5065
|
const o = i.formSchema;
|
|
5057
5066
|
return o.fields.map((l) => {
|
|
@@ -5067,7 +5076,7 @@ const qc = /* @__PURE__ */ Y(kc, [["render", Lc], ["__scopeId", "data-v-44df963d
|
|
|
5067
5076
|
onModelUpdated: e.onModelUpdated
|
|
5068
5077
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : R("", !0);
|
|
5069
5078
|
}
|
|
5070
|
-
}), Bc = /* @__PURE__ */ Y(
|
|
5079
|
+
}), Bc = /* @__PURE__ */ Y(Dc, [["__scopeId", "data-v-f54f37ae"]]), zc = /* @__PURE__ */ re({
|
|
5071
5080
|
__name: "ExitTransformer",
|
|
5072
5081
|
props: {
|
|
5073
5082
|
formModel: {
|
|
@@ -5094,7 +5103,7 @@ const qc = /* @__PURE__ */ Y(kc, [["render", Lc], ["__scopeId", "data-v-44df963d
|
|
|
5094
5103
|
},
|
|
5095
5104
|
setup(e) {
|
|
5096
5105
|
var s;
|
|
5097
|
-
it(he, (s =
|
|
5106
|
+
it(he, (s = ft()) == null ? void 0 : s[xe]);
|
|
5098
5107
|
const { t, te: n } = ge("en-us", ve), i = e, a = L(() => i.formModel.id && i.isEditing || !i.isEditing), r = L(() => {
|
|
5099
5108
|
const o = i.formSchema;
|
|
5100
5109
|
return o.fields.map((l) => {
|
|
@@ -5110,7 +5119,7 @@ const qc = /* @__PURE__ */ Y(kc, [["render", Lc], ["__scopeId", "data-v-44df963d
|
|
|
5110
5119
|
onModelUpdated: e.onModelUpdated
|
|
5111
5120
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : R("", !0);
|
|
5112
5121
|
}
|
|
5113
|
-
}),
|
|
5122
|
+
}), Yc = /* @__PURE__ */ Y(zc, [["__scopeId", "data-v-0d5c541f"]]), Hc = {
|
|
5114
5123
|
fields: [
|
|
5115
5124
|
{
|
|
5116
5125
|
inputType: "text",
|
|
@@ -5145,7 +5154,7 @@ const qc = /* @__PURE__ */ Y(kc, [["render", Lc], ["__scopeId", "data-v-44df963d
|
|
|
5145
5154
|
disabled: !1
|
|
5146
5155
|
}
|
|
5147
5156
|
]
|
|
5148
|
-
},
|
|
5157
|
+
}, xc = {
|
|
5149
5158
|
fields: [
|
|
5150
5159
|
{
|
|
5151
5160
|
type: "input",
|
|
@@ -5167,7 +5176,7 @@ const qc = /* @__PURE__ */ Y(kc, [["render", Lc], ["__scopeId", "data-v-44df963d
|
|
|
5167
5176
|
disabled: !1
|
|
5168
5177
|
}
|
|
5169
5178
|
]
|
|
5170
|
-
},
|
|
5179
|
+
}, Gc = {
|
|
5171
5180
|
fields: [
|
|
5172
5181
|
{
|
|
5173
5182
|
type: "input",
|
|
@@ -5198,7 +5207,7 @@ const qc = /* @__PURE__ */ Y(kc, [["render", Lc], ["__scopeId", "data-v-44df963d
|
|
|
5198
5207
|
disabled: !1
|
|
5199
5208
|
}
|
|
5200
5209
|
]
|
|
5201
|
-
},
|
|
5210
|
+
}, Wc = { class: "general-settings" }, Zc = { class: "sub-form" }, Jc = { class: "general-settings" }, Qc = { class: "sub-form" }, Xc = { class: "general-settings" }, em = /* @__PURE__ */ re({
|
|
5202
5211
|
__name: "ACMEForm",
|
|
5203
5212
|
props: {
|
|
5204
5213
|
formModel: {
|
|
@@ -5225,7 +5234,7 @@ const qc = /* @__PURE__ */ Y(kc, [["render", Lc], ["__scopeId", "data-v-44df963d
|
|
|
5225
5234
|
},
|
|
5226
5235
|
setup(e) {
|
|
5227
5236
|
var k;
|
|
5228
|
-
it(he, (k =
|
|
5237
|
+
it(he, (k = ft()) == null ? void 0 : k[xe]);
|
|
5229
5238
|
const t = e, n = ue("zeroSsl"), i = ue("shm"), a = L(() => {
|
|
5230
5239
|
var v;
|
|
5231
5240
|
const _ = {};
|
|
@@ -5235,7 +5244,7 @@ const qc = /* @__PURE__ */ Y(kc, [["render", Lc], ["__scopeId", "data-v-44df963d
|
|
|
5235
5244
|
return _;
|
|
5236
5245
|
}), r = L(() => {
|
|
5237
5246
|
var v;
|
|
5238
|
-
const _ = we(
|
|
5247
|
+
const _ = we(Hc);
|
|
5239
5248
|
for (const j of _.fields) {
|
|
5240
5249
|
const x = (v = a.value[j.model]) == null ? void 0 : v.help;
|
|
5241
5250
|
j.help === void 0 && typeof x == "string" && (j.help = x);
|
|
@@ -5243,7 +5252,7 @@ const qc = /* @__PURE__ */ Y(kc, [["render", Lc], ["__scopeId", "data-v-44df963d
|
|
|
5243
5252
|
return _;
|
|
5244
5253
|
}), s = L(() => {
|
|
5245
5254
|
var v;
|
|
5246
|
-
const _ = we(
|
|
5255
|
+
const _ = we(xc);
|
|
5247
5256
|
for (const j of _.fields) {
|
|
5248
5257
|
const x = (v = a.value[j.model]) == null ? void 0 : v.help;
|
|
5249
5258
|
j.help === void 0 && typeof x == "string" && (j.help = x);
|
|
@@ -5251,7 +5260,7 @@ const qc = /* @__PURE__ */ Y(kc, [["render", Lc], ["__scopeId", "data-v-44df963d
|
|
|
5251
5260
|
return _;
|
|
5252
5261
|
}), o = L(() => {
|
|
5253
5262
|
var v;
|
|
5254
|
-
const _ = we(
|
|
5263
|
+
const _ = we(Gc);
|
|
5255
5264
|
for (const j of _.fields) {
|
|
5256
5265
|
const x = (v = a.value[j.model]) == null ? void 0 : v.help;
|
|
5257
5266
|
j.help === void 0 && typeof x == "string" && (j.help = x);
|
|
@@ -5303,12 +5312,12 @@ const qc = /* @__PURE__ */ Y(kc, [["render", Lc], ["__scopeId", "data-v-44df963d
|
|
|
5303
5312
|
value: "other"
|
|
5304
5313
|
}
|
|
5305
5314
|
];
|
|
5306
|
-
|
|
5315
|
+
Fn(() => {
|
|
5307
5316
|
n.value === "zeroSsl" && (t.formModel["config-api_uri"] = "https://acme.zerossl.com/v2/DV90");
|
|
5308
5317
|
});
|
|
5309
5318
|
const b = (_) => {
|
|
5310
5319
|
n.value = _.value, (_.value === "zeroSsl" || _.value === "other") && (_.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), _.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();
|
|
5311
|
-
},
|
|
5320
|
+
}, O = (_, v) => {
|
|
5312
5321
|
v === "config-storage" && (i.value = _), t.onModelUpdated();
|
|
5313
5322
|
};
|
|
5314
5323
|
return (_, v) => {
|
|
@@ -5323,8 +5332,8 @@ const qc = /* @__PURE__ */ Y(kc, [["render", Lc], ["__scopeId", "data-v-44df963d
|
|
|
5323
5332
|
onModelUpdated: e.onModelUpdated
|
|
5324
5333
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : R("", !0),
|
|
5325
5334
|
C(x, { tabs: T }, {
|
|
5326
|
-
general:
|
|
5327
|
-
f("div",
|
|
5335
|
+
general: I(() => [
|
|
5336
|
+
f("div", Wc, [
|
|
5328
5337
|
v[0] || (v[0] = f("div", { class: "header-wrapper" }, [
|
|
5329
5338
|
f("span", { class: "section-header" }, "General Configuration Settings")
|
|
5330
5339
|
], -1)),
|
|
@@ -5343,7 +5352,7 @@ const qc = /* @__PURE__ */ Y(kc, [["render", Lc], ["__scopeId", "data-v-44df963d
|
|
|
5343
5352
|
label: "Issuer",
|
|
5344
5353
|
onChange: b
|
|
5345
5354
|
}),
|
|
5346
|
-
f("div",
|
|
5355
|
+
f("div", Zc, [
|
|
5347
5356
|
n.value === "letsEncrypt" ? (u(), A(ee, {
|
|
5348
5357
|
key: 0,
|
|
5349
5358
|
model: e.formModel,
|
|
@@ -5361,8 +5370,8 @@ const qc = /* @__PURE__ */ Y(kc, [["render", Lc], ["__scopeId", "data-v-44df963d
|
|
|
5361
5370
|
])
|
|
5362
5371
|
])
|
|
5363
5372
|
]),
|
|
5364
|
-
storage:
|
|
5365
|
-
f("div",
|
|
5373
|
+
storage: I(() => [
|
|
5374
|
+
f("div", Jc, [
|
|
5366
5375
|
v[3] || (v[3] = f("div", { class: "header-wrapper" }, [
|
|
5367
5376
|
f("span", { class: "section-header" }, "Storage Configuration Settings")
|
|
5368
5377
|
], -1)),
|
|
@@ -5372,9 +5381,9 @@ const qc = /* @__PURE__ */ Y(kc, [["render", Lc], ["__scopeId", "data-v-44df963d
|
|
|
5372
5381
|
model: e.formModel,
|
|
5373
5382
|
options: e.formOptions,
|
|
5374
5383
|
schema: h.value,
|
|
5375
|
-
onModelUpdated:
|
|
5384
|
+
onModelUpdated: O
|
|
5376
5385
|
}, null, 8, ["model", "options", "schema"])) : R("", !0),
|
|
5377
|
-
f("div",
|
|
5386
|
+
f("div", Qc, [
|
|
5378
5387
|
i.value === "consul" ? (u(), A(ee, {
|
|
5379
5388
|
key: 0,
|
|
5380
5389
|
model: e.formModel,
|
|
@@ -5406,8 +5415,8 @@ const qc = /* @__PURE__ */ Y(kc, [["render", Lc], ["__scopeId", "data-v-44df963d
|
|
|
5406
5415
|
])
|
|
5407
5416
|
])
|
|
5408
5417
|
]),
|
|
5409
|
-
advanced:
|
|
5410
|
-
f("div",
|
|
5418
|
+
advanced: I(() => [
|
|
5419
|
+
f("div", Xc, [
|
|
5411
5420
|
v[5] || (v[5] = f("div", { class: "header-wrapper" }, [
|
|
5412
5421
|
f("span", { class: "section-header" }, "Advanced Configuration Settings")
|
|
5413
5422
|
], -1)),
|
|
@@ -5426,13 +5435,13 @@ const qc = /* @__PURE__ */ Y(kc, [["render", Lc], ["__scopeId", "data-v-44df963d
|
|
|
5426
5435
|
]);
|
|
5427
5436
|
};
|
|
5428
5437
|
}
|
|
5429
|
-
}),
|
|
5438
|
+
}), tm = /* @__PURE__ */ Y(em, [["__scopeId", "data-v-07cecf5b"]]), nm = { class: "rla-form-basic-fields" }, im = { class: "rla-form-request-limits-subtitle" }, am = { class: "rla-form-request-limits-content" }, rm = { class: "rla-form-window-type" }, om = ["innerHTML"], sm = { class: "rla-form-window-type-radios" }, lm = { class: "rla-form-request-limits-items" }, dm = { class: "rla-form-request-limits-row" }, um = ["id"], cm = { class: "rla-form-request-limits-actions" }, mm = {
|
|
5430
5439
|
key: 0,
|
|
5431
5440
|
class: "rla-form-request-limits-examples"
|
|
5432
|
-
},
|
|
5441
|
+
}, fm = { class: "rla-form-request-limits-examples-badges" }, hm = ["innerHTML"], pm = {
|
|
5433
5442
|
id: "rla-form-error-legend",
|
|
5434
5443
|
class: "rla-form-error-inputs"
|
|
5435
|
-
},
|
|
5444
|
+
}, gm = /* @__PURE__ */ re({
|
|
5436
5445
|
__name: "RLAForm",
|
|
5437
5446
|
props: {
|
|
5438
5447
|
formSchema: {},
|
|
@@ -5446,7 +5455,7 @@ const qc = /* @__PURE__ */ Y(kc, [["render", Lc], ["__scopeId", "data-v-44df963d
|
|
|
5446
5455
|
},
|
|
5447
5456
|
setup(e) {
|
|
5448
5457
|
var x;
|
|
5449
|
-
it(he, (x =
|
|
5458
|
+
it(he, (x = ft()) == null ? void 0 : x[xe]);
|
|
5450
5459
|
const t = {
|
|
5451
5460
|
fixed: [
|
|
5452
5461
|
{
|
|
@@ -5508,21 +5517,21 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5508
5517
|
"enabled",
|
|
5509
5518
|
...["identifier", "limit", "window_size", "error_code", "error_message"].map((y) => `config-${y}`)
|
|
5510
5519
|
]), i = (y) => y === void 0 ? !1 : n.has(y), { t: a } = ge("en-us", ve), r = e, s = L(() => {
|
|
5511
|
-
var V, P,
|
|
5520
|
+
var V, P, D;
|
|
5512
5521
|
const y = (P = (V = r.formSchema) == null ? void 0 : V.fields) == null ? void 0 : P.find((se) => se.type === "selectionGroup" && se.model === "selectionGroup");
|
|
5513
|
-
return { fields: [(
|
|
5522
|
+
return { fields: [(D = r.formSchema) == null ? void 0 : D.fields.find((se) => se.model === "enabled"), y].filter(Boolean) };
|
|
5514
5523
|
}), o = L(() => {
|
|
5515
5524
|
var se, Ue;
|
|
5516
5525
|
const y = ((Ue = (se = r.formSchema) == null ? void 0 : se.fields) == null ? void 0 : Ue.filter((ae) => !i(ae.model))) ?? [], S = [], V = [], P = [];
|
|
5517
|
-
let
|
|
5526
|
+
let D = !1;
|
|
5518
5527
|
for (const ae of y) {
|
|
5519
|
-
const
|
|
5520
|
-
if (
|
|
5521
|
-
if (
|
|
5528
|
+
const De = ae.model;
|
|
5529
|
+
if (De !== void 0) {
|
|
5530
|
+
if (De.startsWith("config-redis-")) {
|
|
5522
5531
|
(ae.model === "config-redis-cluster_addresses" || ae.model === "config-redis-sentinel_addresses") && (ae.inputAttributes.help = a("rla.redis.address_example")), V.push(ae);
|
|
5523
5532
|
continue;
|
|
5524
5533
|
}
|
|
5525
|
-
|
|
5534
|
+
D ? P.push(ae) : S.push(ae), ae.model === "config-strategy" && (D = !0);
|
|
5526
5535
|
}
|
|
5527
5536
|
}
|
|
5528
5537
|
return {
|
|
@@ -5550,45 +5559,45 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5550
5559
|
return r.formModel["config-window_type"] ?? ((V = (S = (y = r.formSchema) == null ? void 0 : y.fields) == null ? void 0 : S.find((P) => P.model === "config-window_type")) == null ? void 0 : V.default);
|
|
5551
5560
|
}
|
|
5552
5561
|
), N = L(() => {
|
|
5553
|
-
var S, V, P,
|
|
5562
|
+
var S, V, P, D, se, Ue;
|
|
5554
5563
|
const y = (P = (V = (S = r.formSchema) == null ? void 0 : S.fields) == null ? void 0 : V.find((ae) => ae.model === "config-window_type")) == null ? void 0 : P.default;
|
|
5555
|
-
return (((Ue = (se = (
|
|
5564
|
+
return (((Ue = (se = (D = r.formSchema) == null ? void 0 : D.fields) == null ? void 0 : se.find((ae) => ae.model === "config-window_type")) == null ? void 0 : Ue.values) ?? []).sort((ae, De) => ae === y ? -1 : De === y ? 1 : 0);
|
|
5556
5565
|
}), c = L(() => {
|
|
5557
5566
|
var S;
|
|
5558
5567
|
const y = (S = r.formModel["config-limit"]) == null ? void 0 : S.map((V, P) => {
|
|
5559
|
-
var
|
|
5568
|
+
var D, se;
|
|
5560
5569
|
return {
|
|
5561
5570
|
limit: V,
|
|
5562
|
-
windowSize: (se = (
|
|
5571
|
+
windowSize: (se = (D = r.formModel) == null ? void 0 : D["config-window_size"]) == null ? void 0 : se[P]
|
|
5563
5572
|
};
|
|
5564
5573
|
});
|
|
5565
5574
|
return !Array.isArray(y) || y.length === 0 ? [{ limit: void 0, windowSize: void 0 }] : y;
|
|
5566
5575
|
}), M = L(
|
|
5567
5576
|
() => {
|
|
5568
5577
|
var y, S, V, P;
|
|
5569
|
-
return ((y = r.formModel) == null ? void 0 : y["config-identifier"]) ?? ((P = (V = (S = r.formSchema) == null ? void 0 : S.fields) == null ? void 0 : V.find((
|
|
5578
|
+
return ((y = r.formModel) == null ? void 0 : y["config-identifier"]) ?? ((P = (V = (S = r.formSchema) == null ? void 0 : S.fields) == null ? void 0 : V.find((D) => D.model === "config-identifier")) == null ? void 0 : P.default);
|
|
5570
5579
|
}
|
|
5571
5580
|
), T = L(
|
|
5572
5581
|
() => {
|
|
5573
5582
|
var y, S, V, P;
|
|
5574
|
-
return ((y = r.formModel) == null ? void 0 : y["config-error_code"]) ?? ((P = (V = (S = r.formSchema) == null ? void 0 : S.fields) == null ? void 0 : V.find((
|
|
5583
|
+
return ((y = r.formModel) == null ? void 0 : y["config-error_code"]) ?? ((P = (V = (S = r.formSchema) == null ? void 0 : S.fields) == null ? void 0 : V.find((D) => D.model === "config-error_code")) == null ? void 0 : P.default);
|
|
5575
5584
|
}
|
|
5576
5585
|
), U = L(
|
|
5577
5586
|
() => {
|
|
5578
5587
|
var y, S, V, P;
|
|
5579
|
-
return ((y = r.formModel) == null ? void 0 : y["config-error_message"]) ?? ((P = (V = (S = r.formSchema) == null ? void 0 : S.fields) == null ? void 0 : V.find((
|
|
5588
|
+
return ((y = r.formModel) == null ? void 0 : y["config-error_message"]) ?? ((P = (V = (S = r.formSchema) == null ? void 0 : S.fields) == null ? void 0 : V.find((D) => D.model === "config-error_message")) == null ? void 0 : P.default);
|
|
5580
5589
|
}
|
|
5581
5590
|
), b = (y, S) => {
|
|
5582
5591
|
if (S === m.value) {
|
|
5583
|
-
r.onModelUpdated([], "config-limit"), r.onModelUpdated([], "config-window_size"),
|
|
5592
|
+
r.onModelUpdated([], "config-limit"), r.onModelUpdated([], "config-window_size"), Dt(() => {
|
|
5584
5593
|
m.value = void 0;
|
|
5585
5594
|
});
|
|
5586
5595
|
return;
|
|
5587
5596
|
}
|
|
5588
|
-
r.onModelUpdated([y.config.limit], "config-limit"), r.onModelUpdated([y.config.window_size], "config-window_size"),
|
|
5597
|
+
r.onModelUpdated([y.config.limit], "config-limit"), r.onModelUpdated([y.config.window_size], "config-window_size"), Dt(() => {
|
|
5589
5598
|
m.value = S;
|
|
5590
5599
|
});
|
|
5591
|
-
},
|
|
5600
|
+
}, O = (y) => {
|
|
5592
5601
|
m.value !== void 0 && (m.value = void 0), y !== null && r.onModelUpdated(y.toString(), "config-window_type");
|
|
5593
5602
|
}, k = (y, S) => {
|
|
5594
5603
|
var P;
|
|
@@ -5601,47 +5610,47 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5601
5610
|
const V = we(((P = r.formModel) == null ? void 0 : P["config-window_size"]) ?? []);
|
|
5602
5611
|
V[y] = S, r.onModelUpdated(V, "config-window_size");
|
|
5603
5612
|
}, v = (y) => {
|
|
5604
|
-
var P,
|
|
5613
|
+
var P, D;
|
|
5605
5614
|
m.value !== void 0 && (m.value = void 0);
|
|
5606
|
-
const S = we(((P = r.formModel) == null ? void 0 : P["config-limit"]) ?? []), V = we(((
|
|
5615
|
+
const S = we(((P = r.formModel) == null ? void 0 : P["config-limit"]) ?? []), V = we(((D = r.formModel) == null ? void 0 : D["config-window_size"]) ?? []);
|
|
5607
5616
|
S.length === 0 && S.push(void 0), V.length === 0 && V.push(void 0), S.splice(y + 1, 0, void 0), V.splice(y + 1, 0, void 0), r.onModelUpdated(S, "config-limit"), r.onModelUpdated(V, "config-window_size");
|
|
5608
5617
|
}, j = (y) => {
|
|
5609
5618
|
var S, V;
|
|
5610
5619
|
if (c.value.length > 1) {
|
|
5611
5620
|
m.value !== void 0 && (m.value = void 0);
|
|
5612
|
-
const P = we(((S = r.formModel) == null ? void 0 : S["config-limit"]) ?? []),
|
|
5613
|
-
P.length === 0 && P.push(void 0),
|
|
5621
|
+
const P = we(((S = r.formModel) == null ? void 0 : S["config-limit"]) ?? []), D = we(((V = r.formModel) == null ? void 0 : V["config-window_size"]) ?? []);
|
|
5622
|
+
P.length === 0 && P.push(void 0), D.length === 0 && D.push(void 0), P.splice(y, 1), D.splice(y, 1), r.onModelUpdated(P, "config-limit"), r.onModelUpdated(D, "config-window_size");
|
|
5614
5623
|
}
|
|
5615
5624
|
};
|
|
5616
|
-
return
|
|
5625
|
+
return $t(() => r.formModel["config-strategy"], (y) => {
|
|
5617
5626
|
y !== "redis" && r.formModel.partials && r.onModelUpdated(void 0, "partials");
|
|
5618
5627
|
}), (y, S) => {
|
|
5619
|
-
const V = F("KLabel"), P = F("KRadio"),
|
|
5628
|
+
const V = F("KLabel"), P = F("KRadio"), D = F("KInput"), se = F("KButton"), Ue = F("KBadge"), ae = F("KTooltip"), De = F("KCard"), Ii = F("KSelect"), Oi = F("KCollapse");
|
|
5620
5629
|
return u(), g(K, null, [
|
|
5621
|
-
f("div",
|
|
5630
|
+
f("div", nm, [
|
|
5622
5631
|
C(ee, {
|
|
5623
5632
|
model: y.formModel,
|
|
5624
5633
|
options: y.formOptions,
|
|
5625
5634
|
schema: s.value,
|
|
5626
5635
|
onModelUpdated: S[0] || (S[0] = (q, ne) => y.onModelUpdated(q, ne))
|
|
5627
5636
|
}, null, 8, ["model", "options", "schema"]),
|
|
5628
|
-
C(
|
|
5629
|
-
title:
|
|
5637
|
+
C(De, { class: "rla-form-request-limits" }, {
|
|
5638
|
+
title: I(() => [
|
|
5630
5639
|
C(V, {
|
|
5631
5640
|
class: "rla-form-request-limits-title",
|
|
5632
5641
|
for: "rla-form-request-limits-legend",
|
|
5633
5642
|
required: ""
|
|
5634
5643
|
}, {
|
|
5635
|
-
default:
|
|
5644
|
+
default: I(() => [
|
|
5636
5645
|
te($(w(a)("rla.request_limits.title")), 1)
|
|
5637
5646
|
]),
|
|
5638
5647
|
_: 1
|
|
5639
5648
|
}),
|
|
5640
|
-
f("div",
|
|
5649
|
+
f("div", im, $(w(a)("rla.request_limits.subtitle")), 1)
|
|
5641
5650
|
]),
|
|
5642
|
-
default:
|
|
5643
|
-
f("div",
|
|
5644
|
-
f("div",
|
|
5651
|
+
default: I(() => [
|
|
5652
|
+
f("div", am, [
|
|
5653
|
+
f("div", rm, [
|
|
5645
5654
|
C(V, {
|
|
5646
5655
|
class: "rla-form-window-type-label",
|
|
5647
5656
|
"tooltip-attributes": {
|
|
@@ -5649,71 +5658,71 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5649
5658
|
placement: "top"
|
|
5650
5659
|
}
|
|
5651
5660
|
}, {
|
|
5652
|
-
tooltip:
|
|
5661
|
+
tooltip: I(() => [
|
|
5653
5662
|
f("div", {
|
|
5654
5663
|
innerHTML: w(a)("rla.window_type.help")
|
|
5655
|
-
}, null, 8,
|
|
5664
|
+
}, null, 8, om)
|
|
5656
5665
|
]),
|
|
5657
|
-
default:
|
|
5666
|
+
default: I(() => [
|
|
5658
5667
|
te($(w(a)("rla.window_type.label")) + " ", 1)
|
|
5659
5668
|
]),
|
|
5660
5669
|
_: 1
|
|
5661
5670
|
}),
|
|
5662
|
-
f("div",
|
|
5671
|
+
f("div", sm, [
|
|
5663
5672
|
(u(!0), g(K, null, J(N.value, (q) => (u(), A(P, {
|
|
5664
5673
|
key: `window-type-${q}`,
|
|
5665
5674
|
"model-value": E.value,
|
|
5666
5675
|
name: q,
|
|
5667
5676
|
"selected-value": q,
|
|
5668
|
-
"onUpdate:modelValue":
|
|
5677
|
+
"onUpdate:modelValue": O
|
|
5669
5678
|
}, {
|
|
5670
|
-
default:
|
|
5679
|
+
default: I(() => [
|
|
5671
5680
|
te($(w(a)(`rla.window_type.options.${q}`)), 1)
|
|
5672
5681
|
]),
|
|
5673
5682
|
_: 2
|
|
5674
5683
|
}, 1032, ["model-value", "name", "selected-value"]))), 128))
|
|
5675
5684
|
])
|
|
5676
5685
|
]),
|
|
5677
|
-
f("div",
|
|
5686
|
+
f("div", lm, [
|
|
5678
5687
|
(u(!0), g(K, null, J(c.value, (q, ne) => (u(), g("div", {
|
|
5679
5688
|
key: ne.toString()
|
|
5680
5689
|
}, [
|
|
5681
5690
|
C(V, {
|
|
5682
5691
|
for: `rla-form-request-limits-item-${ne}-legend`
|
|
5683
5692
|
}, {
|
|
5684
|
-
default:
|
|
5693
|
+
default: I(() => [
|
|
5685
5694
|
te($(w(a)("rla.request_limits.label_index", { index: ne + 1 })), 1)
|
|
5686
5695
|
]),
|
|
5687
5696
|
_: 2
|
|
5688
5697
|
}, 1032, ["for"]),
|
|
5689
|
-
f("div",
|
|
5698
|
+
f("div", dm, [
|
|
5690
5699
|
f("legend", {
|
|
5691
5700
|
id: `rla-form-request-limits-item-${ne}-legend`,
|
|
5692
5701
|
class: "rla-form-request-limits-inputs"
|
|
5693
5702
|
}, [
|
|
5694
|
-
C(
|
|
5703
|
+
C(D, {
|
|
5695
5704
|
"model-value": q.limit && q.limit.toString(),
|
|
5696
5705
|
placeholder: w(a)("rla.request_limits.request_number"),
|
|
5697
5706
|
type: "number",
|
|
5698
|
-
"onUpdate:modelValue": (
|
|
5707
|
+
"onUpdate:modelValue": (Mt) => k(ne, Number.parseInt(Mt))
|
|
5699
5708
|
}, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"]),
|
|
5700
5709
|
f("div", null, $(w(a)("rla.request_limits.interval_determiner")), 1),
|
|
5701
|
-
C(
|
|
5710
|
+
C(D, {
|
|
5702
5711
|
"model-value": q.windowSize && q.windowSize.toString(),
|
|
5703
5712
|
placeholder: w(a)("rla.request_limits.time_interval"),
|
|
5704
5713
|
type: "number",
|
|
5705
|
-
"onUpdate:modelValue": (
|
|
5714
|
+
"onUpdate:modelValue": (Mt) => _(ne, Number.parseInt(Mt))
|
|
5706
5715
|
}, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"]),
|
|
5707
5716
|
f("div", null, $(w(a)("rla.request_limits.seconds")), 1)
|
|
5708
|
-
], 8,
|
|
5709
|
-
f("div",
|
|
5717
|
+
], 8, um),
|
|
5718
|
+
f("div", cm, [
|
|
5710
5719
|
C(se, {
|
|
5711
5720
|
appearance: "tertiary",
|
|
5712
5721
|
disabled: c.value.length <= 1,
|
|
5713
5722
|
onClick: () => j(ne)
|
|
5714
5723
|
}, {
|
|
5715
|
-
default:
|
|
5716
|
-
C(w(
|
|
5724
|
+
default: I(() => [
|
|
5725
|
+
C(w(Ri))
|
|
5717
5726
|
]),
|
|
5718
5727
|
_: 2
|
|
5719
5728
|
}, 1032, ["disabled", "onClick"]),
|
|
@@ -5721,8 +5730,8 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5721
5730
|
appearance: "tertiary",
|
|
5722
5731
|
onClick: () => v(ne)
|
|
5723
5732
|
}, {
|
|
5724
|
-
default:
|
|
5725
|
-
C(w(
|
|
5733
|
+
default: I(() => [
|
|
5734
|
+
C(w(Vt))
|
|
5726
5735
|
]),
|
|
5727
5736
|
_: 2
|
|
5728
5737
|
}, 1032, ["onClick"])
|
|
@@ -5730,26 +5739,26 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5730
5739
|
])
|
|
5731
5740
|
]))), 128))
|
|
5732
5741
|
]),
|
|
5733
|
-
l.value.length > 0 ? (u(), g("div",
|
|
5742
|
+
l.value.length > 0 ? (u(), g("div", mm, [
|
|
5734
5743
|
f("div", null, $(w(a)("rla.start_with_a_use_case")), 1),
|
|
5735
|
-
f("div",
|
|
5744
|
+
f("div", fm, [
|
|
5736
5745
|
(u(!0), g(K, null, J(l.value, (q, ne) => (u(), A(ae, {
|
|
5737
5746
|
key: `use-case-${ne}`,
|
|
5738
5747
|
"max-width": "300"
|
|
5739
5748
|
}, {
|
|
5740
|
-
content:
|
|
5749
|
+
content: I(() => [
|
|
5741
5750
|
f("div", null, $(q.description), 1),
|
|
5742
5751
|
S[10] || (S[10] = f("br", null, null, -1)),
|
|
5743
5752
|
f("div", null, $(w(a)("rla.request_limits.label")) + ": " + $(q.config.limit), 1),
|
|
5744
5753
|
f("div", null, $(w(a)("rla.request_limits.time_interval")) + ": " + $(q.config.window_size), 1)
|
|
5745
5754
|
]),
|
|
5746
|
-
default:
|
|
5755
|
+
default: I(() => [
|
|
5747
5756
|
C(Ue, {
|
|
5748
5757
|
appearance: m.value === `${E.value}-${ne}` ? "info" : "decorative",
|
|
5749
5758
|
class: "rla-form-request-limits-examples-badge",
|
|
5750
5759
|
onClick: () => b(q, `${E.value}-${ne}`)
|
|
5751
5760
|
}, {
|
|
5752
|
-
default:
|
|
5761
|
+
default: I(() => [
|
|
5753
5762
|
te($(q.label), 1)
|
|
5754
5763
|
]),
|
|
5755
5764
|
_: 2
|
|
@@ -5763,7 +5772,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5763
5772
|
]),
|
|
5764
5773
|
_: 1
|
|
5765
5774
|
}),
|
|
5766
|
-
C(
|
|
5775
|
+
C(Ii, {
|
|
5767
5776
|
modelValue: M.value,
|
|
5768
5777
|
"onUpdate:modelValue": S[1] || (S[1] = (q) => M.value = q),
|
|
5769
5778
|
class: "rla-form-identifiers",
|
|
@@ -5778,10 +5787,10 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5778
5787
|
required: "",
|
|
5779
5788
|
onSelected: S[2] || (S[2] = (q) => r.onModelUpdated(q.value, "config-identifier"))
|
|
5780
5789
|
}, {
|
|
5781
|
-
"label-tooltip":
|
|
5790
|
+
"label-tooltip": I(() => [
|
|
5782
5791
|
f("div", {
|
|
5783
5792
|
innerHTML: d.value && d.value.help
|
|
5784
|
-
}, null, 8,
|
|
5793
|
+
}, null, 8, hm)
|
|
5785
5794
|
]),
|
|
5786
5795
|
_: 1
|
|
5787
5796
|
}, 8, ["modelValue", "items", "label"]),
|
|
@@ -5795,13 +5804,13 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5795
5804
|
placement: "top"
|
|
5796
5805
|
}
|
|
5797
5806
|
}, {
|
|
5798
|
-
default:
|
|
5807
|
+
default: I(() => [
|
|
5799
5808
|
te($(w(a)("rla.error_message.label")), 1)
|
|
5800
5809
|
]),
|
|
5801
5810
|
_: 1
|
|
5802
5811
|
}, 8, ["info"]),
|
|
5803
|
-
f("legend",
|
|
5804
|
-
C(
|
|
5812
|
+
f("legend", pm, [
|
|
5813
|
+
C(D, {
|
|
5805
5814
|
class: "input-error-code",
|
|
5806
5815
|
"model-value": T.value && T.value.toString(),
|
|
5807
5816
|
placeholder: w(a)("rla.error_message.code_placeholder"),
|
|
@@ -5809,7 +5818,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5809
5818
|
"onUpdate:modelValue": S[3] || (S[3] = (q) => y.onModelUpdated(Number.parseInt(q), "config-error_code"))
|
|
5810
5819
|
}, null, 8, ["model-value", "placeholder"]),
|
|
5811
5820
|
S[11] || (S[11] = f("div", null, ":", -1)),
|
|
5812
|
-
C(
|
|
5821
|
+
C(D, {
|
|
5813
5822
|
"model-value": U.value,
|
|
5814
5823
|
placeholder: w(a)("rla.error_message.message_placeholder"),
|
|
5815
5824
|
"onUpdate:modelValue": S[4] || (S[4] = (q) => y.onModelUpdated(q, "config-error_message"))
|
|
@@ -5822,7 +5831,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5822
5831
|
"onUpdate:modelValue": S[9] || (S[9] = (q) => p.value = q),
|
|
5823
5832
|
"trigger-label": w(a)("rla.view_advanced_fields")
|
|
5824
5833
|
}, {
|
|
5825
|
-
default:
|
|
5834
|
+
default: I(() => [
|
|
5826
5835
|
C(ee, {
|
|
5827
5836
|
model: y.formModel,
|
|
5828
5837
|
options: y.formOptions,
|
|
@@ -5834,7 +5843,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5834
5843
|
class: "rla-form-redis-card",
|
|
5835
5844
|
title: w(a)("rla.redis.title")
|
|
5836
5845
|
}, {
|
|
5837
|
-
default:
|
|
5846
|
+
default: I(() => [
|
|
5838
5847
|
C(ee, {
|
|
5839
5848
|
"enable-redis-partial": y.enableRedisPartial,
|
|
5840
5849
|
"is-editing": y.isEditing,
|
|
@@ -5861,20 +5870,20 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5861
5870
|
], 64);
|
|
5862
5871
|
};
|
|
5863
5872
|
}
|
|
5864
|
-
}),
|
|
5873
|
+
}), vm = /* @__PURE__ */ Y(gm, [["__scopeId", "data-v-f6dcb65c"]]), Tm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5865
5874
|
__proto__: null,
|
|
5866
|
-
ACMEForm:
|
|
5867
|
-
ExitTransformer:
|
|
5868
|
-
OIDCForm:
|
|
5875
|
+
ACMEForm: tm,
|
|
5876
|
+
ExitTransformer: Yc,
|
|
5877
|
+
OIDCForm: Kc,
|
|
5869
5878
|
PostFunction: Bc,
|
|
5870
|
-
RLAForm:
|
|
5871
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5879
|
+
RLAForm: vm
|
|
5880
|
+
}, Symbol.toStringTag, { value: "Module" })), Cm = [
|
|
5872
5881
|
"array",
|
|
5873
5882
|
"metric",
|
|
5874
5883
|
"advanced",
|
|
5875
5884
|
"selectionGroup",
|
|
5876
5885
|
"object-advanced"
|
|
5877
|
-
],
|
|
5886
|
+
], Im = (e) => ({
|
|
5878
5887
|
"openid-connect": "OIDCForm",
|
|
5879
5888
|
"post-function": "PostFunction",
|
|
5880
5889
|
// Pre and Post function plugins are using same component
|
|
@@ -5886,14 +5895,14 @@ export {
|
|
|
5886
5895
|
he as AUTOFILL_SLOT,
|
|
5887
5896
|
xe as AUTOFILL_SLOT_NAME,
|
|
5888
5897
|
$e as FORMS_API_KEY,
|
|
5889
|
-
|
|
5890
|
-
|
|
5891
|
-
|
|
5892
|
-
|
|
5898
|
+
Wr as FORMS_CONFIG,
|
|
5899
|
+
mt as PartialType,
|
|
5900
|
+
Zr as REDIS_PARTIAL_FETCHER_KEY,
|
|
5901
|
+
Mm as REDIS_PARTIAL_INFO,
|
|
5893
5902
|
ee as VueFormGenerator,
|
|
5894
|
-
|
|
5903
|
+
Sm as abstractField,
|
|
5895
5904
|
ye as composables,
|
|
5896
|
-
|
|
5897
|
-
|
|
5898
|
-
|
|
5905
|
+
Cm as customFields,
|
|
5906
|
+
Im as getSharedFormName,
|
|
5907
|
+
Tm as sharedForms
|
|
5899
5908
|
};
|