@kong-ui-public/forms 4.19.2 → 4.19.3-pr.2688.a65d4b47b.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 +770 -768
- package/dist/forms.umd.js +3 -3
- package/dist/style.css +1 -1
- package/dist/types/components/fields/FieldInput.vue.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/forms.es.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { createElementBlock as _, openBlock as c, createElementVNode as m, toDisplayString as L, normalizeClass as ee, createVNode as C, defineComponent as he, provide as Bt, resolveComponent as D, withCtx as E, renderSlot as Oe, unref as A, createTextVNode as ce, mergeModels as Oi, useModel as
|
|
1
|
+
import { createElementBlock as _, openBlock as c, createElementVNode as m, toDisplayString as L, normalizeClass as ee, createVNode as C, defineComponent as he, provide as Bt, resolveComponent as D, withCtx as E, renderSlot as Oe, unref as A, createTextVNode as ce, mergeModels as Oi, useModel as Do, createBlock as U, createSlots as un, ref as ae, onMounted as Zn, watch as cn, resolveDynamicComponent as me, Fragment as Y, renderList as oe, computed as B, toRefs as ut, inject as an, onBeforeMount as Xn, mergeProps as et, Transition as $o, createCommentVNode as K, resolveDirective as Aa, withDirectives as we, vModelText as $t, vModelCheckbox as Vo, vModelSelect as jo, vModelDynamic as Ia, isRef as Et, toRef as xo, vModelRadio as qo, vShow as Ko, normalizeProps as Bo, guardReactiveProps as zo, useSlots as mn, nextTick as Fi } from "vue";
|
|
2
2
|
import { createI18n as ke } from "@kong-ui-public/i18n";
|
|
3
|
-
import { TrashIcon as zt, SearchIcon as
|
|
4
|
-
import { isAxiosError as
|
|
5
|
-
import { useStringHelpers as
|
|
3
|
+
import { TrashIcon as zt, SearchIcon as Ho, AddIcon as Jn, RemoveIcon as Yo } from "@kong/icons";
|
|
4
|
+
import { isAxiosError as Go } from "axios";
|
|
5
|
+
import { useStringHelpers as Wo, useErrors as Zo, useDebouncedFilter as Xo, useAxios as Jo } from "@kong-ui-public/entities-shared";
|
|
6
6
|
function Ca(e, t) {
|
|
7
7
|
for (var n = -1, i = e == null ? 0 : e.length; ++n < i && t(e[n], n, e) !== !1; )
|
|
8
8
|
;
|
|
9
9
|
return e;
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function Qo(e) {
|
|
12
12
|
return function(t, n, i) {
|
|
13
13
|
for (var a = -1, o = Object(t), s = i(t), r = s.length; r--; ) {
|
|
14
14
|
var d = s[++a];
|
|
@@ -18,86 +18,86 @@ function Jo(e) {
|
|
|
18
18
|
return t;
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
var
|
|
22
|
-
function
|
|
21
|
+
var er = Qo();
|
|
22
|
+
function tr(e, t) {
|
|
23
23
|
for (var n = -1, i = Array(e); ++n < e; )
|
|
24
24
|
i[n] = t(n);
|
|
25
25
|
return i;
|
|
26
26
|
}
|
|
27
|
-
var Oa = typeof global == "object" && global && global.Object === Object && global,
|
|
28
|
-
function
|
|
29
|
-
var t =
|
|
27
|
+
var Oa = typeof global == "object" && global && global.Object === Object && global, nr = typeof self == "object" && self && self.Object === Object && self, Pe = Oa || nr || Function("return this")(), tt = Pe.Symbol, Fa = Object.prototype, ir = Fa.hasOwnProperty, ar = Fa.toString, kt = tt ? tt.toStringTag : void 0;
|
|
28
|
+
function or(e) {
|
|
29
|
+
var t = ir.call(e, kt), n = e[kt];
|
|
30
30
|
try {
|
|
31
31
|
e[kt] = void 0;
|
|
32
32
|
var i = !0;
|
|
33
33
|
} catch {
|
|
34
34
|
}
|
|
35
|
-
var a =
|
|
35
|
+
var a = ar.call(e);
|
|
36
36
|
return i && (t ? e[kt] = n : delete e[kt]), a;
|
|
37
37
|
}
|
|
38
|
-
var
|
|
39
|
-
function
|
|
40
|
-
return
|
|
38
|
+
var rr = Object.prototype, sr = rr.toString;
|
|
39
|
+
function lr(e) {
|
|
40
|
+
return sr.call(e);
|
|
41
41
|
}
|
|
42
|
-
var
|
|
42
|
+
var dr = "[object Null]", ur = "[object Undefined]", ki = tt ? tt.toStringTag : void 0;
|
|
43
43
|
function nt(e) {
|
|
44
|
-
return e == null ? e === void 0 ?
|
|
44
|
+
return e == null ? e === void 0 ? ur : dr : ki && ki in Object(e) ? or(e) : lr(e);
|
|
45
45
|
}
|
|
46
46
|
function it(e) {
|
|
47
47
|
return e != null && typeof e == "object";
|
|
48
48
|
}
|
|
49
|
-
var
|
|
49
|
+
var cr = "[object Arguments]";
|
|
50
50
|
function Ri(e) {
|
|
51
|
-
return it(e) && nt(e) ==
|
|
51
|
+
return it(e) && nt(e) == cr;
|
|
52
52
|
}
|
|
53
|
-
var ka = Object.prototype,
|
|
53
|
+
var ka = Object.prototype, mr = ka.hasOwnProperty, fr = ka.propertyIsEnumerable, hr = Ri(/* @__PURE__ */ function() {
|
|
54
54
|
return arguments;
|
|
55
55
|
}()) ? Ri : function(e) {
|
|
56
|
-
return it(e) &&
|
|
56
|
+
return it(e) && mr.call(e, "callee") && !fr.call(e, "callee");
|
|
57
57
|
}, at = Array.isArray;
|
|
58
|
-
function
|
|
58
|
+
function pr() {
|
|
59
59
|
return !1;
|
|
60
60
|
}
|
|
61
|
-
var Ra = typeof exports == "object" && exports && !exports.nodeType && exports, Ui = Ra && typeof module == "object" && module && !module.nodeType && module,
|
|
61
|
+
var Ra = typeof exports == "object" && exports && !exports.nodeType && exports, Ui = Ra && typeof module == "object" && module && !module.nodeType && module, gr = Ui && Ui.exports === Ra, Li = gr ? Pe.Buffer : void 0, yr = Li ? Li.isBuffer : void 0, Ua = yr || pr, vr = 9007199254740991, br = /^(?:0|[1-9]\d*)$/;
|
|
62
62
|
function La(e, t) {
|
|
63
63
|
var n = typeof e;
|
|
64
|
-
return t = t ??
|
|
64
|
+
return t = t ?? vr, !!t && (n == "number" || n != "symbol" && br.test(e)) && e > -1 && e % 1 == 0 && e < t;
|
|
65
65
|
}
|
|
66
|
-
var
|
|
66
|
+
var _r = 9007199254740991;
|
|
67
67
|
function Na(e) {
|
|
68
|
-
return typeof e == "number" && e > -1 && e % 1 == 0 && e <=
|
|
68
|
+
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= _r;
|
|
69
69
|
}
|
|
70
|
-
var
|
|
71
|
-
Q[
|
|
72
|
-
Q[
|
|
73
|
-
function
|
|
70
|
+
var Tr = "[object Arguments]", Sr = "[object Array]", wr = "[object Boolean]", Er = "[object Date]", Mr = "[object Error]", Ar = "[object Function]", Ir = "[object Map]", Cr = "[object Number]", Or = "[object Object]", Fr = "[object RegExp]", kr = "[object Set]", Rr = "[object String]", Ur = "[object WeakMap]", Lr = "[object ArrayBuffer]", Nr = "[object DataView]", Pr = "[object Float32Array]", Dr = "[object Float64Array]", $r = "[object Int8Array]", Vr = "[object Int16Array]", jr = "[object Int32Array]", xr = "[object Uint8Array]", qr = "[object Uint8ClampedArray]", Kr = "[object Uint16Array]", Br = "[object Uint32Array]", Q = {};
|
|
71
|
+
Q[Pr] = Q[Dr] = Q[$r] = Q[Vr] = Q[jr] = Q[xr] = Q[qr] = Q[Kr] = Q[Br] = !0;
|
|
72
|
+
Q[Tr] = Q[Sr] = Q[Lr] = Q[wr] = Q[Nr] = Q[Er] = Q[Mr] = Q[Ar] = Q[Ir] = Q[Cr] = Q[Or] = Q[Fr] = Q[kr] = Q[Rr] = Q[Ur] = !1;
|
|
73
|
+
function zr(e) {
|
|
74
74
|
return it(e) && Na(e.length) && !!Q[nt(e)];
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function Qn(e) {
|
|
77
77
|
return function(t) {
|
|
78
78
|
return e(t);
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
|
-
var Pa = typeof exports == "object" && exports && !exports.nodeType && exports, Vt = Pa && typeof module == "object" && module && !module.nodeType && module,
|
|
81
|
+
var Pa = typeof exports == "object" && exports && !exports.nodeType && exports, Vt = Pa && typeof module == "object" && module && !module.nodeType && module, Hr = Vt && Vt.exports === Pa, Un = Hr && Oa.process, St = function() {
|
|
82
82
|
try {
|
|
83
83
|
var e = Vt && Vt.require && Vt.require("util").types;
|
|
84
|
-
return e ||
|
|
84
|
+
return e || Un && Un.binding && Un.binding("util");
|
|
85
85
|
} catch {
|
|
86
86
|
}
|
|
87
|
-
}(), Ni = St && St.isTypedArray,
|
|
87
|
+
}(), Ni = St && St.isTypedArray, Yr = Ni ? Qn(Ni) : zr, Gr = Object.prototype, Wr = Gr.hasOwnProperty;
|
|
88
88
|
function Da(e, t) {
|
|
89
|
-
var n = at(e), i = !n &&
|
|
89
|
+
var n = at(e), i = !n && hr(e), a = !n && !i && Ua(e), o = !n && !i && !a && Yr(e), s = n || i || a || o, r = s ? tr(e.length, String) : [], d = r.length;
|
|
90
90
|
for (var u in e)
|
|
91
|
-
(t ||
|
|
91
|
+
(t || Wr.call(e, u)) && !(s && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
92
92
|
(u == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
93
93
|
a && (u == "offset" || u == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
94
94
|
o && (u == "buffer" || u == "byteLength" || u == "byteOffset") || // Skip index properties.
|
|
95
95
|
La(u, d))) && r.push(u);
|
|
96
96
|
return r;
|
|
97
97
|
}
|
|
98
|
-
var
|
|
99
|
-
function
|
|
100
|
-
var t = e && e.constructor, n = typeof t == "function" && t.prototype ||
|
|
98
|
+
var Zr = Object.prototype;
|
|
99
|
+
function ei(e) {
|
|
100
|
+
var t = e && e.constructor, n = typeof t == "function" && t.prototype || Zr;
|
|
101
101
|
return e === n;
|
|
102
102
|
}
|
|
103
103
|
function $a(e, t) {
|
|
@@ -105,80 +105,80 @@ function $a(e, t) {
|
|
|
105
105
|
return e(t(n));
|
|
106
106
|
};
|
|
107
107
|
}
|
|
108
|
-
var
|
|
109
|
-
function
|
|
110
|
-
if (!
|
|
111
|
-
return
|
|
108
|
+
var Xr = $a(Object.keys, Object), Jr = Object.prototype, Qr = Jr.hasOwnProperty;
|
|
109
|
+
function es(e) {
|
|
110
|
+
if (!ei(e))
|
|
111
|
+
return Xr(e);
|
|
112
112
|
var t = [];
|
|
113
113
|
for (var n in Object(e))
|
|
114
|
-
|
|
114
|
+
Qr.call(e, n) && n != "constructor" && t.push(n);
|
|
115
115
|
return t;
|
|
116
116
|
}
|
|
117
117
|
function Fe(e) {
|
|
118
118
|
var t = typeof e;
|
|
119
119
|
return e != null && (t == "object" || t == "function");
|
|
120
120
|
}
|
|
121
|
-
var
|
|
121
|
+
var ts = "[object AsyncFunction]", ns = "[object Function]", is = "[object GeneratorFunction]", as = "[object Proxy]";
|
|
122
122
|
function X(e) {
|
|
123
123
|
if (!Fe(e))
|
|
124
124
|
return !1;
|
|
125
125
|
var t = nt(e);
|
|
126
|
-
return t ==
|
|
126
|
+
return t == ns || t == is || t == ts || t == as;
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function fn(e) {
|
|
129
129
|
return e != null && Na(e.length) && !X(e);
|
|
130
130
|
}
|
|
131
|
-
function
|
|
132
|
-
return
|
|
133
|
-
}
|
|
134
|
-
function as(e, t) {
|
|
135
|
-
return e && Qo(e, t, pn);
|
|
131
|
+
function hn(e) {
|
|
132
|
+
return fn(e) ? Da(e) : es(e);
|
|
136
133
|
}
|
|
137
134
|
function os(e, t) {
|
|
135
|
+
return e && er(e, t, hn);
|
|
136
|
+
}
|
|
137
|
+
function rs(e, t) {
|
|
138
138
|
return function(n, i) {
|
|
139
139
|
if (n == null)
|
|
140
140
|
return n;
|
|
141
|
-
if (!
|
|
141
|
+
if (!fn(n))
|
|
142
142
|
return e(n, i);
|
|
143
143
|
for (var a = n.length, o = -1, s = Object(n); ++o < a && i(s[o], o, s) !== !1; )
|
|
144
144
|
;
|
|
145
145
|
return n;
|
|
146
146
|
};
|
|
147
147
|
}
|
|
148
|
-
var
|
|
149
|
-
function
|
|
148
|
+
var ss = rs(os);
|
|
149
|
+
function ti(e) {
|
|
150
150
|
return e;
|
|
151
151
|
}
|
|
152
|
-
function
|
|
153
|
-
return typeof e == "function" ? e :
|
|
152
|
+
function ls(e) {
|
|
153
|
+
return typeof e == "function" ? e : ti;
|
|
154
154
|
}
|
|
155
155
|
function Se(e, t) {
|
|
156
|
-
var n = at(e) ? Ca :
|
|
157
|
-
return n(e,
|
|
156
|
+
var n = at(e) ? Ca : ss;
|
|
157
|
+
return n(e, ls(t));
|
|
158
158
|
}
|
|
159
|
-
var
|
|
160
|
-
function
|
|
161
|
-
return typeof e == "symbol" || it(e) && nt(e) ==
|
|
159
|
+
var ds = "[object Symbol]";
|
|
160
|
+
function pn(e) {
|
|
161
|
+
return typeof e == "symbol" || it(e) && nt(e) == ds;
|
|
162
162
|
}
|
|
163
|
-
var
|
|
164
|
-
function
|
|
163
|
+
var us = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, cs = /^\w*$/;
|
|
164
|
+
function ms(e, t) {
|
|
165
165
|
if (at(e))
|
|
166
166
|
return !1;
|
|
167
167
|
var n = typeof e;
|
|
168
|
-
return n == "number" || n == "symbol" || n == "boolean" || e == null ||
|
|
168
|
+
return n == "number" || n == "symbol" || n == "boolean" || e == null || pn(e) ? !0 : cs.test(e) || !us.test(e) || t != null && e in Object(t);
|
|
169
169
|
}
|
|
170
|
-
var
|
|
171
|
-
var e = /[^.]+$/.exec(
|
|
170
|
+
var Ln = Pe["__core-js_shared__"], Pi = function() {
|
|
171
|
+
var e = /[^.]+$/.exec(Ln && Ln.keys && Ln.keys.IE_PROTO || "");
|
|
172
172
|
return e ? "Symbol(src)_1." + e : "";
|
|
173
173
|
}();
|
|
174
|
-
function
|
|
174
|
+
function fs(e) {
|
|
175
175
|
return !!Pi && Pi in e;
|
|
176
176
|
}
|
|
177
|
-
var
|
|
177
|
+
var hs = Function.prototype, ps = hs.toString;
|
|
178
178
|
function ct(e) {
|
|
179
179
|
if (e != null) {
|
|
180
180
|
try {
|
|
181
|
-
return
|
|
181
|
+
return ps.call(e);
|
|
182
182
|
} catch {
|
|
183
183
|
}
|
|
184
184
|
try {
|
|
@@ -188,48 +188,48 @@ function ct(e) {
|
|
|
188
188
|
}
|
|
189
189
|
return "";
|
|
190
190
|
}
|
|
191
|
-
var
|
|
192
|
-
"^" +
|
|
191
|
+
var gs = /[\\^$.*+?()[\]{}|]/g, ys = /^\[object .+?Constructor\]$/, vs = Function.prototype, bs = Object.prototype, _s = vs.toString, Ts = bs.hasOwnProperty, Ss = RegExp(
|
|
192
|
+
"^" + _s.call(Ts).replace(gs, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
193
193
|
);
|
|
194
|
-
function
|
|
195
|
-
if (!Fe(e) ||
|
|
194
|
+
function ws(e) {
|
|
195
|
+
if (!Fe(e) || fs(e))
|
|
196
196
|
return !1;
|
|
197
|
-
var t = X(e) ?
|
|
197
|
+
var t = X(e) ? Ss : ys;
|
|
198
198
|
return t.test(ct(e));
|
|
199
199
|
}
|
|
200
|
-
function
|
|
200
|
+
function Es(e, t) {
|
|
201
201
|
return e == null ? void 0 : e[t];
|
|
202
202
|
}
|
|
203
203
|
function mt(e, t) {
|
|
204
|
-
var n =
|
|
205
|
-
return
|
|
204
|
+
var n = Es(e, t);
|
|
205
|
+
return ws(n) ? n : void 0;
|
|
206
206
|
}
|
|
207
207
|
var qt = mt(Object, "create");
|
|
208
|
-
function
|
|
208
|
+
function Ms() {
|
|
209
209
|
this.__data__ = qt ? qt(null) : {}, this.size = 0;
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function As(e) {
|
|
212
212
|
var t = this.has(e) && delete this.__data__[e];
|
|
213
213
|
return this.size -= t ? 1 : 0, t;
|
|
214
214
|
}
|
|
215
|
-
var
|
|
216
|
-
function
|
|
215
|
+
var Is = "__lodash_hash_undefined__", Cs = Object.prototype, Os = Cs.hasOwnProperty;
|
|
216
|
+
function Fs(e) {
|
|
217
217
|
var t = this.__data__;
|
|
218
218
|
if (qt) {
|
|
219
219
|
var n = t[e];
|
|
220
|
-
return n ===
|
|
220
|
+
return n === Is ? void 0 : n;
|
|
221
221
|
}
|
|
222
|
-
return
|
|
222
|
+
return Os.call(t, e) ? t[e] : void 0;
|
|
223
223
|
}
|
|
224
|
-
var
|
|
225
|
-
function
|
|
224
|
+
var ks = Object.prototype, Rs = ks.hasOwnProperty;
|
|
225
|
+
function Us(e) {
|
|
226
226
|
var t = this.__data__;
|
|
227
|
-
return qt ? t[e] !== void 0 :
|
|
227
|
+
return qt ? t[e] !== void 0 : Rs.call(t, e);
|
|
228
228
|
}
|
|
229
|
-
var
|
|
230
|
-
function
|
|
229
|
+
var Ls = "__lodash_hash_undefined__";
|
|
230
|
+
function Ns(e, t) {
|
|
231
231
|
var n = this.__data__;
|
|
232
|
-
return this.size += this.has(e) ? 0 : 1, n[e] = qt && t === void 0 ?
|
|
232
|
+
return this.size += this.has(e) ? 0 : 1, n[e] = qt && t === void 0 ? Ls : t, this;
|
|
233
233
|
}
|
|
234
234
|
function rt(e) {
|
|
235
235
|
var t = -1, n = e == null ? 0 : e.length;
|
|
@@ -238,40 +238,40 @@ function rt(e) {
|
|
|
238
238
|
this.set(i[0], i[1]);
|
|
239
239
|
}
|
|
240
240
|
}
|
|
241
|
-
rt.prototype.clear =
|
|
242
|
-
rt.prototype.delete =
|
|
243
|
-
rt.prototype.get =
|
|
244
|
-
rt.prototype.has =
|
|
245
|
-
rt.prototype.set =
|
|
246
|
-
function
|
|
241
|
+
rt.prototype.clear = Ms;
|
|
242
|
+
rt.prototype.delete = As;
|
|
243
|
+
rt.prototype.get = Fs;
|
|
244
|
+
rt.prototype.has = Us;
|
|
245
|
+
rt.prototype.set = Ns;
|
|
246
|
+
function Ps() {
|
|
247
247
|
this.__data__ = [], this.size = 0;
|
|
248
248
|
}
|
|
249
|
-
function
|
|
249
|
+
function gn(e, t) {
|
|
250
250
|
return e === t || e !== e && t !== t;
|
|
251
251
|
}
|
|
252
|
-
function
|
|
252
|
+
function yn(e, t) {
|
|
253
253
|
for (var n = e.length; n--; )
|
|
254
|
-
if (
|
|
254
|
+
if (gn(e[n][0], t))
|
|
255
255
|
return n;
|
|
256
256
|
return -1;
|
|
257
257
|
}
|
|
258
|
-
var
|
|
259
|
-
function
|
|
260
|
-
var t = this.__data__, n =
|
|
258
|
+
var Ds = Array.prototype, $s = Ds.splice;
|
|
259
|
+
function Vs(e) {
|
|
260
|
+
var t = this.__data__, n = yn(t, e);
|
|
261
261
|
if (n < 0)
|
|
262
262
|
return !1;
|
|
263
263
|
var i = t.length - 1;
|
|
264
|
-
return n == i ? t.pop() :
|
|
264
|
+
return n == i ? t.pop() : $s.call(t, n, 1), --this.size, !0;
|
|
265
265
|
}
|
|
266
|
-
function
|
|
267
|
-
var t = this.__data__, n =
|
|
266
|
+
function js(e) {
|
|
267
|
+
var t = this.__data__, n = yn(t, e);
|
|
268
268
|
return n < 0 ? void 0 : t[n][1];
|
|
269
269
|
}
|
|
270
|
-
function
|
|
271
|
-
return
|
|
270
|
+
function xs(e) {
|
|
271
|
+
return yn(this.__data__, e) > -1;
|
|
272
272
|
}
|
|
273
|
-
function
|
|
274
|
-
var n = this.__data__, i =
|
|
273
|
+
function qs(e, t) {
|
|
274
|
+
var n = this.__data__, i = yn(n, e);
|
|
275
275
|
return i < 0 ? (++this.size, n.push([e, t])) : n[i][1] = t, this;
|
|
276
276
|
}
|
|
277
277
|
function Ze(e) {
|
|
@@ -281,39 +281,39 @@ function Ze(e) {
|
|
|
281
281
|
this.set(i[0], i[1]);
|
|
282
282
|
}
|
|
283
283
|
}
|
|
284
|
-
Ze.prototype.clear =
|
|
285
|
-
Ze.prototype.delete =
|
|
286
|
-
Ze.prototype.get =
|
|
287
|
-
Ze.prototype.has =
|
|
288
|
-
Ze.prototype.set =
|
|
284
|
+
Ze.prototype.clear = Ps;
|
|
285
|
+
Ze.prototype.delete = Vs;
|
|
286
|
+
Ze.prototype.get = js;
|
|
287
|
+
Ze.prototype.has = xs;
|
|
288
|
+
Ze.prototype.set = qs;
|
|
289
289
|
var Kt = mt(Pe, "Map");
|
|
290
|
-
function
|
|
290
|
+
function Ks() {
|
|
291
291
|
this.size = 0, this.__data__ = {
|
|
292
292
|
hash: new rt(),
|
|
293
293
|
map: new (Kt || Ze)(),
|
|
294
294
|
string: new rt()
|
|
295
295
|
};
|
|
296
296
|
}
|
|
297
|
-
function
|
|
297
|
+
function Bs(e) {
|
|
298
298
|
var t = typeof e;
|
|
299
299
|
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
|
|
300
300
|
}
|
|
301
|
-
function
|
|
301
|
+
function vn(e, t) {
|
|
302
302
|
var n = e.__data__;
|
|
303
|
-
return
|
|
304
|
-
}
|
|
305
|
-
function Bs(e) {
|
|
306
|
-
var t = bn(this, e).delete(e);
|
|
307
|
-
return this.size -= t ? 1 : 0, t;
|
|
303
|
+
return Bs(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
|
|
308
304
|
}
|
|
309
305
|
function zs(e) {
|
|
310
|
-
|
|
306
|
+
var t = vn(this, e).delete(e);
|
|
307
|
+
return this.size -= t ? 1 : 0, t;
|
|
311
308
|
}
|
|
312
309
|
function Hs(e) {
|
|
313
|
-
return
|
|
310
|
+
return vn(this, e).get(e);
|
|
314
311
|
}
|
|
315
|
-
function Ys(e
|
|
316
|
-
|
|
312
|
+
function Ys(e) {
|
|
313
|
+
return vn(this, e).has(e);
|
|
314
|
+
}
|
|
315
|
+
function Gs(e, t) {
|
|
316
|
+
var n = vn(this, e), i = n.size;
|
|
317
317
|
return n.set(e, t), this.size += n.size == i ? 0 : 1, this;
|
|
318
318
|
}
|
|
319
319
|
function Xe(e) {
|
|
@@ -323,15 +323,15 @@ function Xe(e) {
|
|
|
323
323
|
this.set(i[0], i[1]);
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
|
-
Xe.prototype.clear =
|
|
327
|
-
Xe.prototype.delete =
|
|
328
|
-
Xe.prototype.get =
|
|
329
|
-
Xe.prototype.has =
|
|
330
|
-
Xe.prototype.set =
|
|
331
|
-
var
|
|
332
|
-
function
|
|
326
|
+
Xe.prototype.clear = Ks;
|
|
327
|
+
Xe.prototype.delete = zs;
|
|
328
|
+
Xe.prototype.get = Hs;
|
|
329
|
+
Xe.prototype.has = Ys;
|
|
330
|
+
Xe.prototype.set = Gs;
|
|
331
|
+
var Ws = "Expected a function";
|
|
332
|
+
function ni(e, t) {
|
|
333
333
|
if (typeof e != "function" || t != null && typeof t != "function")
|
|
334
|
-
throw new TypeError(
|
|
334
|
+
throw new TypeError(Ws);
|
|
335
335
|
var n = function() {
|
|
336
336
|
var i = arguments, a = t ? t.apply(this, i) : i[0], o = n.cache;
|
|
337
337
|
if (o.has(a))
|
|
@@ -339,23 +339,23 @@ function ii(e, t) {
|
|
|
339
339
|
var s = e.apply(this, i);
|
|
340
340
|
return n.cache = o.set(a, s) || o, s;
|
|
341
341
|
};
|
|
342
|
-
return n.cache = new (
|
|
342
|
+
return n.cache = new (ni.Cache || Xe)(), n;
|
|
343
343
|
}
|
|
344
|
-
|
|
345
|
-
var
|
|
346
|
-
function
|
|
347
|
-
var t =
|
|
348
|
-
return n.size ===
|
|
344
|
+
ni.Cache = Xe;
|
|
345
|
+
var Zs = 500;
|
|
346
|
+
function Xs(e) {
|
|
347
|
+
var t = ni(e, function(i) {
|
|
348
|
+
return n.size === Zs && n.clear(), i;
|
|
349
349
|
}), n = t.cache;
|
|
350
350
|
return t;
|
|
351
351
|
}
|
|
352
|
-
var
|
|
352
|
+
var Js = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Qs = /\\(\\)?/g, el = Xs(function(e) {
|
|
353
353
|
var t = [];
|
|
354
|
-
return e.charCodeAt(0) === 46 && t.push(""), e.replace(
|
|
355
|
-
t.push(a ? o.replace(
|
|
354
|
+
return e.charCodeAt(0) === 46 && t.push(""), e.replace(Js, function(n, i, a, o) {
|
|
355
|
+
t.push(a ? o.replace(Qs, "$1") : i || n);
|
|
356
356
|
}), t;
|
|
357
357
|
});
|
|
358
|
-
function
|
|
358
|
+
function tl(e, t) {
|
|
359
359
|
for (var n = -1, i = e == null ? 0 : e.length, a = Array(i); ++n < i; )
|
|
360
360
|
a[n] = t(e[n], n, e);
|
|
361
361
|
return a;
|
|
@@ -365,8 +365,8 @@ function Va(e) {
|
|
|
365
365
|
if (typeof e == "string")
|
|
366
366
|
return e;
|
|
367
367
|
if (at(e))
|
|
368
|
-
return
|
|
369
|
-
if (
|
|
368
|
+
return tl(e, Va) + "";
|
|
369
|
+
if (pn(e))
|
|
370
370
|
return $i ? $i.call(e) : "";
|
|
371
371
|
var t = e + "";
|
|
372
372
|
return t == "0" && 1 / e == -1 / 0 ? "-0" : t;
|
|
@@ -374,49 +374,49 @@ function Va(e) {
|
|
|
374
374
|
function ja(e) {
|
|
375
375
|
return e == null ? "" : Va(e);
|
|
376
376
|
}
|
|
377
|
-
function
|
|
378
|
-
return at(e) ? e :
|
|
377
|
+
function nl(e, t) {
|
|
378
|
+
return at(e) ? e : ms(e, t) ? [e] : el(ja(e));
|
|
379
379
|
}
|
|
380
|
-
function
|
|
381
|
-
if (typeof e == "string" ||
|
|
380
|
+
function il(e) {
|
|
381
|
+
if (typeof e == "string" || pn(e))
|
|
382
382
|
return e;
|
|
383
383
|
var t = e + "";
|
|
384
384
|
return t == "0" && 1 / e == -1 / 0 ? "-0" : t;
|
|
385
385
|
}
|
|
386
|
-
function
|
|
387
|
-
t =
|
|
386
|
+
function al(e, t) {
|
|
387
|
+
t = nl(t, e);
|
|
388
388
|
for (var n = 0, i = t.length; e != null && n < i; )
|
|
389
|
-
e = e[
|
|
389
|
+
e = e[il(t[n++])];
|
|
390
390
|
return n && n == i ? e : void 0;
|
|
391
391
|
}
|
|
392
392
|
function G(e, t, n) {
|
|
393
|
-
var i = e == null ? void 0 :
|
|
393
|
+
var i = e == null ? void 0 : al(e, t);
|
|
394
394
|
return i === void 0 ? n : i;
|
|
395
395
|
}
|
|
396
396
|
function de(e) {
|
|
397
397
|
return e == null;
|
|
398
398
|
}
|
|
399
|
-
const Ce = "kong-ui-forms-api",
|
|
399
|
+
const Ce = "kong-ui-forms-api", ol = "kong-ui-forms-config", rl = "redis-partial-list-fetcher-key", vp = "redis-partial-info", Mt = "autofill", Le = "autofillSlot", je = {
|
|
400
400
|
CREATE_NOT_FROM_ENTITY: "CREATE_NOT_FROM_ENTITY",
|
|
401
401
|
CREATE_FROM_ENTITY: "CREATE_FROM_ENTITY",
|
|
402
402
|
UPDATE_ENTITY: "UPDATE_ENTITY",
|
|
403
403
|
SET_REFERRAL_VALUE: "SET_REFERRAL_VALUE"
|
|
404
|
-
},
|
|
404
|
+
}, sl = "—";
|
|
405
405
|
/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */
|
|
406
406
|
const {
|
|
407
407
|
entries: xa,
|
|
408
408
|
setPrototypeOf: Vi,
|
|
409
|
-
isFrozen:
|
|
410
|
-
getPrototypeOf:
|
|
411
|
-
getOwnPropertyDescriptor:
|
|
409
|
+
isFrozen: ll,
|
|
410
|
+
getPrototypeOf: dl,
|
|
411
|
+
getOwnPropertyDescriptor: ul
|
|
412
412
|
} = Object;
|
|
413
413
|
let {
|
|
414
414
|
freeze: Ee,
|
|
415
415
|
seal: Ne,
|
|
416
416
|
create: qa
|
|
417
417
|
} = Object, {
|
|
418
|
-
apply:
|
|
419
|
-
construct:
|
|
418
|
+
apply: Kn,
|
|
419
|
+
construct: Bn
|
|
420
420
|
} = typeof Reflect < "u" && Reflect;
|
|
421
421
|
Ee || (Ee = function(t) {
|
|
422
422
|
return t;
|
|
@@ -424,26 +424,26 @@ Ee || (Ee = function(t) {
|
|
|
424
424
|
Ne || (Ne = function(t) {
|
|
425
425
|
return t;
|
|
426
426
|
});
|
|
427
|
-
|
|
427
|
+
Kn || (Kn = function(t, n, i) {
|
|
428
428
|
return t.apply(n, i);
|
|
429
429
|
});
|
|
430
|
-
|
|
430
|
+
Bn || (Bn = function(t, n) {
|
|
431
431
|
return new t(...n);
|
|
432
432
|
});
|
|
433
|
-
const en = Me(Array.prototype.forEach),
|
|
433
|
+
const en = Me(Array.prototype.forEach), cl = Me(Array.prototype.lastIndexOf), ji = Me(Array.prototype.pop), Rt = Me(Array.prototype.push), ml = Me(Array.prototype.splice), nn = Me(String.prototype.toLowerCase), Nn = Me(String.prototype.toString), xi = Me(String.prototype.match), Ut = Me(String.prototype.replace), fl = Me(String.prototype.indexOf), hl = Me(String.prototype.trim), De = Me(Object.prototype.hasOwnProperty), Te = Me(RegExp.prototype.test), Lt = pl(TypeError);
|
|
434
434
|
function Me(e) {
|
|
435
435
|
return function(t) {
|
|
436
436
|
t instanceof RegExp && (t.lastIndex = 0);
|
|
437
437
|
for (var n = arguments.length, i = new Array(n > 1 ? n - 1 : 0), a = 1; a < n; a++)
|
|
438
438
|
i[a - 1] = arguments[a];
|
|
439
|
-
return
|
|
439
|
+
return Kn(e, t, i);
|
|
440
440
|
};
|
|
441
441
|
}
|
|
442
|
-
function
|
|
442
|
+
function pl(e) {
|
|
443
443
|
return function() {
|
|
444
444
|
for (var t = arguments.length, n = new Array(t), i = 0; i < t; i++)
|
|
445
445
|
n[i] = arguments[i];
|
|
446
|
-
return
|
|
446
|
+
return Bn(e, n);
|
|
447
447
|
};
|
|
448
448
|
}
|
|
449
449
|
function z(e, t) {
|
|
@@ -454,13 +454,13 @@ function z(e, t) {
|
|
|
454
454
|
let a = t[i];
|
|
455
455
|
if (typeof a == "string") {
|
|
456
456
|
const o = n(a);
|
|
457
|
-
o !== a && (
|
|
457
|
+
o !== a && (ll(t) || (t[i] = o), a = o);
|
|
458
458
|
}
|
|
459
459
|
e[a] = !0;
|
|
460
460
|
}
|
|
461
461
|
return e;
|
|
462
462
|
}
|
|
463
|
-
function
|
|
463
|
+
function gl(e) {
|
|
464
464
|
for (let t = 0; t < e.length; t++)
|
|
465
465
|
De(e, t) || (e[t] = null);
|
|
466
466
|
return e;
|
|
@@ -468,44 +468,44 @@ function pl(e) {
|
|
|
468
468
|
function Ye(e) {
|
|
469
469
|
const t = qa(null);
|
|
470
470
|
for (const [n, i] of xa(e))
|
|
471
|
-
De(e, n) && (Array.isArray(i) ? t[n] =
|
|
471
|
+
De(e, n) && (Array.isArray(i) ? t[n] = gl(i) : i && typeof i == "object" && i.constructor === Object ? t[n] = Ye(i) : t[n] = i);
|
|
472
472
|
return t;
|
|
473
473
|
}
|
|
474
474
|
function Nt(e, t) {
|
|
475
475
|
for (; e !== null; ) {
|
|
476
|
-
const i =
|
|
476
|
+
const i = ul(e, t);
|
|
477
477
|
if (i) {
|
|
478
478
|
if (i.get)
|
|
479
479
|
return Me(i.get);
|
|
480
480
|
if (typeof i.value == "function")
|
|
481
481
|
return Me(i.value);
|
|
482
482
|
}
|
|
483
|
-
e =
|
|
483
|
+
e = dl(e);
|
|
484
484
|
}
|
|
485
485
|
function n() {
|
|
486
486
|
return null;
|
|
487
487
|
}
|
|
488
488
|
return n;
|
|
489
489
|
}
|
|
490
|
-
const qi = Ee(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]),
|
|
490
|
+
const qi = Ee(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Pn = Ee(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Dn = Ee(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), yl = Ee(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), $n = Ee(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), vl = Ee(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Ki = Ee(["#text"]), Bi = Ee(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), Vn = Ee(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), zi = Ee(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), tn = Ee(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), bl = Ne(/\{\{[\w\W]*|[\w\W]*\}\}/gm), _l = Ne(/<%[\w\W]*|[\w\W]*%>/gm), Tl = Ne(/\$\{[\w\W]*/gm), Sl = Ne(/^data-[\-\w.\u00B7-\uFFFF]+$/), wl = Ne(/^aria-[\-\w]+$/), Ka = Ne(
|
|
491
491
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
492
492
|
// eslint-disable-line no-useless-escape
|
|
493
|
-
),
|
|
493
|
+
), El = Ne(/^(?:\w+script|data):/i), Ml = Ne(
|
|
494
494
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
495
495
|
// eslint-disable-line no-control-regex
|
|
496
|
-
), Ba = Ne(/^html$/i),
|
|
496
|
+
), Ba = Ne(/^html$/i), Al = Ne(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
497
497
|
var Hi = /* @__PURE__ */ Object.freeze({
|
|
498
498
|
__proto__: null,
|
|
499
|
-
ARIA_ATTR:
|
|
500
|
-
ATTR_WHITESPACE:
|
|
501
|
-
CUSTOM_ELEMENT:
|
|
502
|
-
DATA_ATTR:
|
|
499
|
+
ARIA_ATTR: wl,
|
|
500
|
+
ATTR_WHITESPACE: Ml,
|
|
501
|
+
CUSTOM_ELEMENT: Al,
|
|
502
|
+
DATA_ATTR: Sl,
|
|
503
503
|
DOCTYPE_NAME: Ba,
|
|
504
|
-
ERB_EXPR:
|
|
504
|
+
ERB_EXPR: _l,
|
|
505
505
|
IS_ALLOWED_URI: Ka,
|
|
506
|
-
IS_SCRIPT_OR_DATA:
|
|
507
|
-
MUSTACHE_EXPR:
|
|
508
|
-
TMPLIT_EXPR:
|
|
506
|
+
IS_SCRIPT_OR_DATA: El,
|
|
507
|
+
MUSTACHE_EXPR: bl,
|
|
508
|
+
TMPLIT_EXPR: Tl
|
|
509
509
|
});
|
|
510
510
|
const Pt = {
|
|
511
511
|
element: 1,
|
|
@@ -514,9 +514,9 @@ const Pt = {
|
|
|
514
514
|
progressingInstruction: 7,
|
|
515
515
|
comment: 8,
|
|
516
516
|
document: 9
|
|
517
|
-
},
|
|
517
|
+
}, Il = function() {
|
|
518
518
|
return typeof window > "u" ? null : window;
|
|
519
|
-
},
|
|
519
|
+
}, Cl = function(t, n) {
|
|
520
520
|
if (typeof t != "object" || typeof t.createPolicy != "function")
|
|
521
521
|
return null;
|
|
522
522
|
let i = null;
|
|
@@ -549,7 +549,7 @@ const Pt = {
|
|
|
549
549
|
};
|
|
550
550
|
};
|
|
551
551
|
function za() {
|
|
552
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
552
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Il();
|
|
553
553
|
const t = (P) => za(P);
|
|
554
554
|
if (t.version = "3.2.6", t.removed = [], !e || !e.document || e.document.nodeType !== Pt.document || !e.Element)
|
|
555
555
|
return t.isSupported = !1, t;
|
|
@@ -562,11 +562,11 @@ function za() {
|
|
|
562
562
|
Node: r,
|
|
563
563
|
Element: d,
|
|
564
564
|
NodeFilter: u,
|
|
565
|
-
NamedNodeMap:
|
|
566
|
-
HTMLFormElement:
|
|
565
|
+
NamedNodeMap: h = e.NamedNodeMap || e.MozNamedAttrMap,
|
|
566
|
+
HTMLFormElement: p,
|
|
567
567
|
DOMParser: b,
|
|
568
568
|
trustedTypes: F
|
|
569
|
-
} = e, x = d.prototype,
|
|
569
|
+
} = e, x = d.prototype, f = Nt(x, "cloneNode"), M = Nt(x, "remove"), I = Nt(x, "nextSibling"), N = Nt(x, "childNodes"), T = Nt(x, "parentNode");
|
|
570
570
|
if (typeof s == "function") {
|
|
571
571
|
const P = n.createElement("template");
|
|
572
572
|
P.content && P.content.ownerDocument && (n = P.content.ownerDocument);
|
|
@@ -590,14 +590,14 @@ function za() {
|
|
|
590
590
|
ARIA_ATTR: qe,
|
|
591
591
|
IS_SCRIPT_OR_DATA: fe,
|
|
592
592
|
ATTR_WHITESPACE: Ke,
|
|
593
|
-
CUSTOM_ELEMENT:
|
|
593
|
+
CUSTOM_ELEMENT: Tn
|
|
594
594
|
} = Hi;
|
|
595
595
|
let {
|
|
596
596
|
IS_ALLOWED_URI: Ht
|
|
597
597
|
} = Hi, $ = null;
|
|
598
|
-
const ne = z({}, [...qi, ...Dn, ...$n, ...
|
|
598
|
+
const ne = z({}, [...qi, ...Pn, ...Dn, ...$n, ...Ki]);
|
|
599
599
|
let re = null;
|
|
600
|
-
const si = z({}, [...Bi, ...
|
|
600
|
+
const si = z({}, [...Bi, ...Vn, ...zi, ...tn]);
|
|
601
601
|
let se = Object.seal(qa(null, {
|
|
602
602
|
tagNameCheck: {
|
|
603
603
|
writable: !0,
|
|
@@ -617,45 +617,45 @@ function za() {
|
|
|
617
617
|
enumerable: !0,
|
|
618
618
|
value: !1
|
|
619
619
|
}
|
|
620
|
-
})), It = null,
|
|
621
|
-
const
|
|
622
|
-
let
|
|
620
|
+
})), It = null, Sn = null, li = !0, wn = !0, di = !1, ui = !0, ft = !1, Yt = !0, ot = !1, En = !1, Mn = !1, ht = !1, Gt = !1, Wt = !1, ci = !0, mi = !1;
|
|
621
|
+
const Oo = "user-content-";
|
|
622
|
+
let An = !0, Ct = !1, pt = {}, gt = null;
|
|
623
623
|
const fi = z({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
624
624
|
let hi = null;
|
|
625
625
|
const pi = z({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
626
|
-
let
|
|
626
|
+
let In = null;
|
|
627
627
|
const gi = z({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Zt = "http://www.w3.org/1998/Math/MathML", Xt = "http://www.w3.org/2000/svg", Be = "http://www.w3.org/1999/xhtml";
|
|
628
|
-
let yt = Be,
|
|
629
|
-
const
|
|
628
|
+
let yt = Be, Cn = !1, On = null;
|
|
629
|
+
const Fo = z({}, [Zt, Xt, Be], Nn);
|
|
630
630
|
let Jt = z({}, ["mi", "mo", "mn", "ms", "mtext"]), Qt = z({}, ["annotation-xml"]);
|
|
631
|
-
const
|
|
631
|
+
const ko = z({}, ["title", "style", "font", "a", "script"]);
|
|
632
632
|
let Ot = null;
|
|
633
|
-
const
|
|
633
|
+
const Ro = ["application/xhtml+xml", "text/html"], Uo = "text/html";
|
|
634
634
|
let ye = null, vt = null;
|
|
635
|
-
const
|
|
635
|
+
const Lo = n.createElement("form"), yi = function(l) {
|
|
636
636
|
return l instanceof RegExp || l instanceof Function;
|
|
637
|
-
},
|
|
637
|
+
}, Fn = function() {
|
|
638
638
|
let l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
639
639
|
if (!(vt && vt === l)) {
|
|
640
640
|
if ((!l || typeof l != "object") && (l = {}), l = Ye(l), Ot = // eslint-disable-next-line unicorn/prefer-includes
|
|
641
|
-
|
|
641
|
+
Ro.indexOf(l.PARSER_MEDIA_TYPE) === -1 ? Uo : l.PARSER_MEDIA_TYPE, ye = Ot === "application/xhtml+xml" ? Nn : nn, $ = De(l, "ALLOWED_TAGS") ? z({}, l.ALLOWED_TAGS, ye) : ne, re = De(l, "ALLOWED_ATTR") ? z({}, l.ALLOWED_ATTR, ye) : si, On = De(l, "ALLOWED_NAMESPACES") ? z({}, l.ALLOWED_NAMESPACES, Nn) : Fo, In = De(l, "ADD_URI_SAFE_ATTR") ? z(Ye(gi), l.ADD_URI_SAFE_ATTR, ye) : gi, hi = De(l, "ADD_DATA_URI_TAGS") ? z(Ye(pi), l.ADD_DATA_URI_TAGS, ye) : pi, gt = De(l, "FORBID_CONTENTS") ? z({}, l.FORBID_CONTENTS, ye) : fi, It = De(l, "FORBID_TAGS") ? z({}, l.FORBID_TAGS, ye) : Ye({}), Sn = De(l, "FORBID_ATTR") ? z({}, l.FORBID_ATTR, ye) : Ye({}), pt = De(l, "USE_PROFILES") ? l.USE_PROFILES : !1, li = l.ALLOW_ARIA_ATTR !== !1, wn = l.ALLOW_DATA_ATTR !== !1, di = l.ALLOW_UNKNOWN_PROTOCOLS || !1, ui = l.ALLOW_SELF_CLOSE_IN_ATTR !== !1, ft = l.SAFE_FOR_TEMPLATES || !1, Yt = l.SAFE_FOR_XML !== !1, ot = l.WHOLE_DOCUMENT || !1, ht = l.RETURN_DOM || !1, Gt = l.RETURN_DOM_FRAGMENT || !1, Wt = l.RETURN_TRUSTED_TYPE || !1, Mn = l.FORCE_BODY || !1, ci = l.SANITIZE_DOM !== !1, mi = l.SANITIZE_NAMED_PROPS || !1, An = l.KEEP_CONTENT !== !1, Ct = l.IN_PLACE || !1, Ht = l.ALLOWED_URI_REGEXP || Ka, yt = l.NAMESPACE || Be, Jt = l.MATHML_TEXT_INTEGRATION_POINTS || Jt, Qt = l.HTML_INTEGRATION_POINTS || Qt, se = l.CUSTOM_ELEMENT_HANDLING || {}, l.CUSTOM_ELEMENT_HANDLING && yi(l.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (se.tagNameCheck = l.CUSTOM_ELEMENT_HANDLING.tagNameCheck), l.CUSTOM_ELEMENT_HANDLING && yi(l.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (se.attributeNameCheck = l.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), l.CUSTOM_ELEMENT_HANDLING && typeof l.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (se.allowCustomizedBuiltInElements = l.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), ft && (wn = !1), Gt && (ht = !0), pt && ($ = z({}, Ki), re = [], pt.html === !0 && (z($, qi), z(re, Bi)), pt.svg === !0 && (z($, Pn), z(re, Vn), z(re, tn)), pt.svgFilters === !0 && (z($, Dn), z(re, Vn), z(re, tn)), pt.mathMl === !0 && (z($, $n), z(re, zi), z(re, tn))), l.ADD_TAGS && ($ === ne && ($ = Ye($)), z($, l.ADD_TAGS, ye)), l.ADD_ATTR && (re === si && (re = Ye(re)), z(re, l.ADD_ATTR, ye)), l.ADD_URI_SAFE_ATTR && z(In, l.ADD_URI_SAFE_ATTR, ye), l.FORBID_CONTENTS && (gt === fi && (gt = Ye(gt)), z(gt, l.FORBID_CONTENTS, ye)), An && ($["#text"] = !0), ot && z($, ["html", "head", "body"]), $.table && (z($, ["tbody"]), delete It.tbody), l.TRUSTED_TYPES_POLICY) {
|
|
642
642
|
if (typeof l.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
643
643
|
throw Lt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
644
644
|
if (typeof l.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
645
645
|
throw Lt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
646
646
|
O = l.TRUSTED_TYPES_POLICY, v = O.createHTML("");
|
|
647
647
|
} else
|
|
648
|
-
O === void 0 && (O =
|
|
648
|
+
O === void 0 && (O = Cl(F, a)), O !== null && typeof v == "string" && (v = O.createHTML(""));
|
|
649
649
|
Ee && Ee(l), vt = l;
|
|
650
650
|
}
|
|
651
|
-
}, vi = z({}, [...
|
|
651
|
+
}, vi = z({}, [...Pn, ...Dn, ...yl]), bi = z({}, [...$n, ...vl]), No = function(l) {
|
|
652
652
|
let S = T(l);
|
|
653
653
|
(!S || !S.tagName) && (S = {
|
|
654
654
|
namespaceURI: yt,
|
|
655
655
|
tagName: "template"
|
|
656
656
|
});
|
|
657
657
|
const R = nn(l.tagName), te = nn(S.tagName);
|
|
658
|
-
return
|
|
658
|
+
return On[l.namespaceURI] ? l.namespaceURI === Xt ? S.namespaceURI === Be ? R === "svg" : S.namespaceURI === Zt ? R === "svg" && (te === "annotation-xml" || Jt[te]) : !!vi[R] : l.namespaceURI === Zt ? S.namespaceURI === Be ? R === "math" : S.namespaceURI === Xt ? R === "math" && Qt[te] : !!bi[R] : l.namespaceURI === Be ? S.namespaceURI === Xt && !Qt[te] || S.namespaceURI === Zt && !Jt[te] ? !1 : !bi[R] && (ko[R] || !vi[R]) : !!(Ot === "application/xhtml+xml" && On[l.namespaceURI]) : !1;
|
|
659
659
|
}, Ve = function(l) {
|
|
660
660
|
Rt(t.removed, {
|
|
661
661
|
element: l
|
|
@@ -690,7 +690,7 @@ function za() {
|
|
|
690
690
|
}
|
|
691
691
|
}, _i = function(l) {
|
|
692
692
|
let S = null, R = null;
|
|
693
|
-
if (
|
|
693
|
+
if (Mn)
|
|
694
694
|
l = "<remove></remove>" + l;
|
|
695
695
|
else {
|
|
696
696
|
const pe = xi(l, /^[\r\n\t ]+/);
|
|
@@ -706,7 +706,7 @@ function za() {
|
|
|
706
706
|
if (!S || !S.documentElement) {
|
|
707
707
|
S = y.createDocument(yt, "template", null);
|
|
708
708
|
try {
|
|
709
|
-
S.documentElement.innerHTML =
|
|
709
|
+
S.documentElement.innerHTML = Cn ? v : te;
|
|
710
710
|
} catch {
|
|
711
711
|
}
|
|
712
712
|
}
|
|
@@ -720,8 +720,8 @@ function za() {
|
|
|
720
720
|
u.SHOW_ELEMENT | u.SHOW_COMMENT | u.SHOW_TEXT | u.SHOW_PROCESSING_INSTRUCTION | u.SHOW_CDATA_SECTION,
|
|
721
721
|
null
|
|
722
722
|
);
|
|
723
|
-
},
|
|
724
|
-
return l instanceof
|
|
723
|
+
}, kn = function(l) {
|
|
724
|
+
return l instanceof p && (typeof l.nodeName != "string" || typeof l.textContent != "string" || typeof l.removeChild != "function" || !(l.attributes instanceof h) || typeof l.removeAttribute != "function" || typeof l.setAttribute != "function" || typeof l.namespaceURI != "string" || typeof l.insertBefore != "function" || typeof l.hasChildNodes != "function");
|
|
725
725
|
}, Si = function(l) {
|
|
726
726
|
return typeof r == "function" && l instanceof r;
|
|
727
727
|
};
|
|
@@ -732,7 +732,7 @@ function za() {
|
|
|
732
732
|
}
|
|
733
733
|
const wi = function(l) {
|
|
734
734
|
let S = null;
|
|
735
|
-
if (ze(w.beforeSanitizeElements, l, null),
|
|
735
|
+
if (ze(w.beforeSanitizeElements, l, null), kn(l))
|
|
736
736
|
return Ve(l), !0;
|
|
737
737
|
const R = ye(l.nodeName);
|
|
738
738
|
if (ze(w.uponSanitizeElement, l, {
|
|
@@ -743,29 +743,29 @@ function za() {
|
|
|
743
743
|
if (!$[R] || It[R]) {
|
|
744
744
|
if (!It[R] && Mi(R) && (se.tagNameCheck instanceof RegExp && Te(se.tagNameCheck, R) || se.tagNameCheck instanceof Function && se.tagNameCheck(R)))
|
|
745
745
|
return !1;
|
|
746
|
-
if (
|
|
746
|
+
if (An && !gt[R]) {
|
|
747
747
|
const te = T(l) || l.parentNode, be = N(l) || l.childNodes;
|
|
748
748
|
if (be && te) {
|
|
749
749
|
const pe = be.length;
|
|
750
750
|
for (let Ae = pe - 1; Ae >= 0; --Ae) {
|
|
751
|
-
const He =
|
|
751
|
+
const He = f(be[Ae], !0);
|
|
752
752
|
He.__removalCount = (l.__removalCount || 0) + 1, te.insertBefore(He, I(l));
|
|
753
753
|
}
|
|
754
754
|
}
|
|
755
755
|
}
|
|
756
756
|
return Ve(l), !0;
|
|
757
757
|
}
|
|
758
|
-
return l instanceof d && !
|
|
758
|
+
return l instanceof d && !No(l) || (R === "noscript" || R === "noembed" || R === "noframes") && Te(/<\/no(script|embed|frames)/i, l.innerHTML) ? (Ve(l), !0) : (ft && l.nodeType === Pt.text && (S = l.textContent, en([j, q, H], (te) => {
|
|
759
759
|
S = Ut(S, te, " ");
|
|
760
760
|
}), l.textContent !== S && (Rt(t.removed, {
|
|
761
761
|
element: l.cloneNode()
|
|
762
762
|
}), l.textContent = S)), ze(w.afterSanitizeElements, l, null), !1);
|
|
763
763
|
}, Ei = function(l, S, R) {
|
|
764
|
-
if (ci && (S === "id" || S === "name") && (R in n || R in
|
|
764
|
+
if (ci && (S === "id" || S === "name") && (R in n || R in Lo))
|
|
765
765
|
return !1;
|
|
766
|
-
if (!(
|
|
766
|
+
if (!(wn && !Sn[S] && Te(ge, S))) {
|
|
767
767
|
if (!(li && Te(qe, S))) {
|
|
768
|
-
if (!re[S] ||
|
|
768
|
+
if (!re[S] || Sn[S]) {
|
|
769
769
|
if (
|
|
770
770
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
771
771
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
@@ -774,9 +774,9 @@ function za() {
|
|
|
774
774
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
775
775
|
S === "is" && se.allowCustomizedBuiltInElements && (se.tagNameCheck instanceof RegExp && Te(se.tagNameCheck, R) || se.tagNameCheck instanceof Function && se.tagNameCheck(R)))
|
|
776
776
|
) return !1;
|
|
777
|
-
} else if (!
|
|
777
|
+
} else if (!In[S]) {
|
|
778
778
|
if (!Te(Ht, Ut(R, Ke, ""))) {
|
|
779
|
-
if (!((S === "src" || S === "xlink:href" || S === "href") && l !== "script" &&
|
|
779
|
+
if (!((S === "src" || S === "xlink:href" || S === "href") && l !== "script" && fl(R, "data:") === 0 && hi[l])) {
|
|
780
780
|
if (!(di && !Te(fe, Ut(R, Ke, "")))) {
|
|
781
781
|
if (R)
|
|
782
782
|
return !1;
|
|
@@ -788,13 +788,13 @@ function za() {
|
|
|
788
788
|
}
|
|
789
789
|
return !0;
|
|
790
790
|
}, Mi = function(l) {
|
|
791
|
-
return l !== "annotation-xml" && xi(l,
|
|
791
|
+
return l !== "annotation-xml" && xi(l, Tn);
|
|
792
792
|
}, Ai = function(l) {
|
|
793
793
|
ze(w.beforeSanitizeAttributes, l, null);
|
|
794
794
|
const {
|
|
795
795
|
attributes: S
|
|
796
796
|
} = l;
|
|
797
|
-
if (!S ||
|
|
797
|
+
if (!S || kn(l))
|
|
798
798
|
return;
|
|
799
799
|
const R = {
|
|
800
800
|
attrName: "",
|
|
@@ -809,9 +809,9 @@ function za() {
|
|
|
809
809
|
name: pe,
|
|
810
810
|
namespaceURI: Ae,
|
|
811
811
|
value: He
|
|
812
|
-
} = be, Ft = ye(pe),
|
|
813
|
-
let _e = pe === "value" ?
|
|
814
|
-
if (R.attrName = Ft, R.attrValue = _e, R.keepAttr = !0, R.forceKeepAttr = void 0, ze(w.uponSanitizeAttribute, l, R), _e = R.attrValue, mi && (Ft === "id" || Ft === "name") && (bt(pe, l), _e =
|
|
812
|
+
} = be, Ft = ye(pe), Rn = He;
|
|
813
|
+
let _e = pe === "value" ? Rn : hl(Rn);
|
|
814
|
+
if (R.attrName = Ft, R.attrValue = _e, R.keepAttr = !0, R.forceKeepAttr = void 0, ze(w.uponSanitizeAttribute, l, R), _e = R.attrValue, mi && (Ft === "id" || Ft === "name") && (bt(pe, l), _e = Oo + _e), Yt && Te(/((--!?|])>)|<\/(style|title)/i, _e)) {
|
|
815
815
|
bt(pe, l);
|
|
816
816
|
continue;
|
|
817
817
|
}
|
|
@@ -844,15 +844,15 @@ function za() {
|
|
|
844
844
|
break;
|
|
845
845
|
}
|
|
846
846
|
}
|
|
847
|
-
if (_e !==
|
|
847
|
+
if (_e !== Rn)
|
|
848
848
|
try {
|
|
849
|
-
Ae ? l.setAttributeNS(Ae, pe, _e) : l.setAttribute(pe, _e),
|
|
849
|
+
Ae ? l.setAttributeNS(Ae, pe, _e) : l.setAttribute(pe, _e), kn(l) ? Ve(l) : ji(t.removed);
|
|
850
850
|
} catch {
|
|
851
851
|
bt(pe, l);
|
|
852
852
|
}
|
|
853
853
|
}
|
|
854
854
|
ze(w.afterSanitizeAttributes, l, null);
|
|
855
|
-
},
|
|
855
|
+
}, Po = function P(l) {
|
|
856
856
|
let S = null;
|
|
857
857
|
const R = Ti(l);
|
|
858
858
|
for (ze(w.beforeSanitizeShadowDOM, l, null); S = R.nextNode(); )
|
|
@@ -861,7 +861,7 @@ function za() {
|
|
|
861
861
|
};
|
|
862
862
|
return t.sanitize = function(P) {
|
|
863
863
|
let l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, S = null, R = null, te = null, be = null;
|
|
864
|
-
if (
|
|
864
|
+
if (Cn = !P, Cn && (P = "<!-->"), typeof P != "string" && !Si(P))
|
|
865
865
|
if (typeof P.toString == "function") {
|
|
866
866
|
if (P = P.toString(), typeof P != "string")
|
|
867
867
|
throw Lt("dirty is not a string, aborting");
|
|
@@ -869,7 +869,7 @@ function za() {
|
|
|
869
869
|
throw Lt("toString is not a function");
|
|
870
870
|
if (!t.isSupported)
|
|
871
871
|
return P;
|
|
872
|
-
if (
|
|
872
|
+
if (En || Fn(l), t.removed = [], typeof P == "string" && (Ct = !1), Ct) {
|
|
873
873
|
if (P.nodeName) {
|
|
874
874
|
const He = ye(P.nodeName);
|
|
875
875
|
if (!$[He] || It[He])
|
|
@@ -884,10 +884,10 @@ function za() {
|
|
|
884
884
|
if (S = _i(P), !S)
|
|
885
885
|
return ht ? null : Wt ? v : "";
|
|
886
886
|
}
|
|
887
|
-
S &&
|
|
887
|
+
S && Mn && Ve(S.firstChild);
|
|
888
888
|
const pe = Ti(Ct ? P : S);
|
|
889
889
|
for (; te = pe.nextNode(); )
|
|
890
|
-
wi(te), Ai(te), te.content instanceof o &&
|
|
890
|
+
wi(te), Ai(te), te.content instanceof o && Po(te.content);
|
|
891
891
|
if (Ct)
|
|
892
892
|
return P;
|
|
893
893
|
if (ht) {
|
|
@@ -905,19 +905,19 @@ function za() {
|
|
|
905
905
|
}), O && Wt ? O.createHTML(Ae) : Ae;
|
|
906
906
|
}, t.setConfig = function() {
|
|
907
907
|
let P = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
908
|
-
|
|
908
|
+
Fn(P), En = !0;
|
|
909
909
|
}, t.clearConfig = function() {
|
|
910
|
-
vt = null,
|
|
910
|
+
vt = null, En = !1;
|
|
911
911
|
}, t.isValidAttribute = function(P, l, S) {
|
|
912
|
-
vt ||
|
|
912
|
+
vt || Fn({});
|
|
913
913
|
const R = ye(P), te = ye(l);
|
|
914
914
|
return Ei(R, te, S);
|
|
915
915
|
}, t.addHook = function(P, l) {
|
|
916
916
|
typeof l == "function" && Rt(w[P], l);
|
|
917
917
|
}, t.removeHook = function(P, l) {
|
|
918
918
|
if (l !== void 0) {
|
|
919
|
-
const S =
|
|
920
|
-
return S === -1 ? void 0 :
|
|
919
|
+
const S = cl(w[P], l);
|
|
920
|
+
return S === -1 ? void 0 : ml(w[P], S, 1)[0];
|
|
921
921
|
}
|
|
922
922
|
return ji(w[P]);
|
|
923
923
|
}, t.removeHooks = function(P) {
|
|
@@ -926,26 +926,26 @@ function za() {
|
|
|
926
926
|
w = Yi();
|
|
927
927
|
}, t;
|
|
928
928
|
}
|
|
929
|
-
var
|
|
930
|
-
function
|
|
929
|
+
var Ol = za();
|
|
930
|
+
function Fl() {
|
|
931
931
|
this.__data__ = new Ze(), this.size = 0;
|
|
932
932
|
}
|
|
933
|
-
function
|
|
933
|
+
function kl(e) {
|
|
934
934
|
var t = this.__data__, n = t.delete(e);
|
|
935
935
|
return this.size = t.size, n;
|
|
936
936
|
}
|
|
937
|
-
function
|
|
937
|
+
function Rl(e) {
|
|
938
938
|
return this.__data__.get(e);
|
|
939
939
|
}
|
|
940
|
-
function
|
|
940
|
+
function Ul(e) {
|
|
941
941
|
return this.__data__.has(e);
|
|
942
942
|
}
|
|
943
|
-
var
|
|
944
|
-
function
|
|
943
|
+
var Ll = 200;
|
|
944
|
+
function Nl(e, t) {
|
|
945
945
|
var n = this.__data__;
|
|
946
946
|
if (n instanceof Ze) {
|
|
947
947
|
var i = n.__data__;
|
|
948
|
-
if (!Kt || i.length <
|
|
948
|
+
if (!Kt || i.length < Ll - 1)
|
|
949
949
|
return i.push([e, t]), this.size = ++n.size, this;
|
|
950
950
|
n = this.__data__ = new Xe(i);
|
|
951
951
|
}
|
|
@@ -955,11 +955,11 @@ function At(e) {
|
|
|
955
955
|
var t = this.__data__ = new Ze(e);
|
|
956
956
|
this.size = t.size;
|
|
957
957
|
}
|
|
958
|
-
At.prototype.clear =
|
|
959
|
-
At.prototype.delete =
|
|
960
|
-
At.prototype.get =
|
|
961
|
-
At.prototype.has =
|
|
962
|
-
At.prototype.set =
|
|
958
|
+
At.prototype.clear = Fl;
|
|
959
|
+
At.prototype.delete = kl;
|
|
960
|
+
At.prototype.get = Rl;
|
|
961
|
+
At.prototype.has = Ul;
|
|
962
|
+
At.prototype.set = Nl;
|
|
963
963
|
var on = function() {
|
|
964
964
|
try {
|
|
965
965
|
var e = mt(Object, "defineProperty");
|
|
@@ -975,12 +975,12 @@ function Ha(e, t, n) {
|
|
|
975
975
|
writable: !0
|
|
976
976
|
}) : e[t] = n;
|
|
977
977
|
}
|
|
978
|
-
var
|
|
978
|
+
var Pl = Object.prototype, Dl = Pl.hasOwnProperty;
|
|
979
979
|
function Ya(e, t, n) {
|
|
980
980
|
var i = e[t];
|
|
981
|
-
(!(
|
|
981
|
+
(!(Dl.call(e, t) && gn(i, n)) || n === void 0 && !(t in e)) && Ha(e, t, n);
|
|
982
982
|
}
|
|
983
|
-
function
|
|
983
|
+
function bn(e, t, n, i) {
|
|
984
984
|
var a = !n;
|
|
985
985
|
n || (n = {});
|
|
986
986
|
for (var o = -1, s = t.length; ++o < s; ) {
|
|
@@ -989,45 +989,45 @@ function _n(e, t, n, i) {
|
|
|
989
989
|
}
|
|
990
990
|
return n;
|
|
991
991
|
}
|
|
992
|
-
function
|
|
993
|
-
return e &&
|
|
992
|
+
function $l(e, t) {
|
|
993
|
+
return e && bn(t, hn(t), e);
|
|
994
994
|
}
|
|
995
|
-
function
|
|
995
|
+
function Vl(e) {
|
|
996
996
|
var t = [];
|
|
997
997
|
if (e != null)
|
|
998
998
|
for (var n in Object(e))
|
|
999
999
|
t.push(n);
|
|
1000
1000
|
return t;
|
|
1001
1001
|
}
|
|
1002
|
-
var
|
|
1003
|
-
function
|
|
1002
|
+
var jl = Object.prototype, xl = jl.hasOwnProperty;
|
|
1003
|
+
function ql(e) {
|
|
1004
1004
|
if (!Fe(e))
|
|
1005
|
-
return
|
|
1006
|
-
var t =
|
|
1005
|
+
return Vl(e);
|
|
1006
|
+
var t = ei(e), n = [];
|
|
1007
1007
|
for (var i in e)
|
|
1008
|
-
i == "constructor" && (t || !
|
|
1008
|
+
i == "constructor" && (t || !xl.call(e, i)) || n.push(i);
|
|
1009
1009
|
return n;
|
|
1010
1010
|
}
|
|
1011
|
-
function
|
|
1012
|
-
return
|
|
1011
|
+
function _n(e) {
|
|
1012
|
+
return fn(e) ? Da(e, !0) : ql(e);
|
|
1013
1013
|
}
|
|
1014
|
-
function
|
|
1015
|
-
return e &&
|
|
1014
|
+
function Kl(e, t) {
|
|
1015
|
+
return e && bn(t, _n(t), e);
|
|
1016
1016
|
}
|
|
1017
|
-
var Ga = typeof exports == "object" && exports && !exports.nodeType && exports, Gi = Ga && typeof module == "object" && module && !module.nodeType && module,
|
|
1018
|
-
function
|
|
1017
|
+
var Ga = typeof exports == "object" && exports && !exports.nodeType && exports, Gi = Ga && typeof module == "object" && module && !module.nodeType && module, Bl = Gi && Gi.exports === Ga, Wi = Bl ? Pe.Buffer : void 0, Zi = Wi ? Wi.allocUnsafe : void 0;
|
|
1018
|
+
function zl(e, t) {
|
|
1019
1019
|
if (t)
|
|
1020
1020
|
return e.slice();
|
|
1021
1021
|
var n = e.length, i = Zi ? Zi(n) : new e.constructor(n);
|
|
1022
1022
|
return e.copy(i), i;
|
|
1023
1023
|
}
|
|
1024
|
-
function
|
|
1024
|
+
function Hl(e, t) {
|
|
1025
1025
|
var n = -1, i = e.length;
|
|
1026
1026
|
for (t || (t = Array(i)); ++n < i; )
|
|
1027
1027
|
t[n] = e[n];
|
|
1028
1028
|
return t;
|
|
1029
1029
|
}
|
|
1030
|
-
function
|
|
1030
|
+
function Yl(e, t) {
|
|
1031
1031
|
for (var n = -1, i = e == null ? 0 : e.length, a = 0, o = []; ++n < i; ) {
|
|
1032
1032
|
var s = e[n];
|
|
1033
1033
|
t(s, n, e) && (o[a++] = s);
|
|
@@ -1037,94 +1037,93 @@ function Hl(e, t) {
|
|
|
1037
1037
|
function Wa() {
|
|
1038
1038
|
return [];
|
|
1039
1039
|
}
|
|
1040
|
-
var
|
|
1041
|
-
return e == null ? [] : (e = Object(e),
|
|
1042
|
-
return
|
|
1040
|
+
var Gl = Object.prototype, Wl = Gl.propertyIsEnumerable, Xi = Object.getOwnPropertySymbols, ii = Xi ? function(e) {
|
|
1041
|
+
return e == null ? [] : (e = Object(e), Yl(Xi(e), function(t) {
|
|
1042
|
+
return Wl.call(e, t);
|
|
1043
1043
|
}));
|
|
1044
1044
|
} : Wa;
|
|
1045
|
-
function
|
|
1046
|
-
return
|
|
1045
|
+
function Zl(e, t) {
|
|
1046
|
+
return bn(e, ii(e), t);
|
|
1047
1047
|
}
|
|
1048
1048
|
function Za(e, t) {
|
|
1049
1049
|
for (var n = -1, i = t.length, a = e.length; ++n < i; )
|
|
1050
1050
|
e[a + n] = t[n];
|
|
1051
1051
|
return e;
|
|
1052
1052
|
}
|
|
1053
|
-
var Xa = $a(Object.getPrototypeOf, Object),
|
|
1053
|
+
var Xa = $a(Object.getPrototypeOf, Object), Xl = Object.getOwnPropertySymbols, Ja = Xl ? function(e) {
|
|
1054
1054
|
for (var t = []; e; )
|
|
1055
|
-
Za(t,
|
|
1055
|
+
Za(t, ii(e)), e = Xa(e);
|
|
1056
1056
|
return t;
|
|
1057
1057
|
} : Wa;
|
|
1058
|
-
function
|
|
1059
|
-
return
|
|
1058
|
+
function Jl(e, t) {
|
|
1059
|
+
return bn(e, Ja(e), t);
|
|
1060
1060
|
}
|
|
1061
1061
|
function Qa(e, t, n) {
|
|
1062
1062
|
var i = t(e);
|
|
1063
1063
|
return at(e) ? i : Za(i, n(e));
|
|
1064
1064
|
}
|
|
1065
|
-
function Jl(e) {
|
|
1066
|
-
return Qa(e, pn, ai);
|
|
1067
|
-
}
|
|
1068
1065
|
function Ql(e) {
|
|
1069
|
-
return Qa(e,
|
|
1066
|
+
return Qa(e, hn, ii);
|
|
1067
|
+
}
|
|
1068
|
+
function ed(e) {
|
|
1069
|
+
return Qa(e, _n, Ja);
|
|
1070
1070
|
}
|
|
1071
|
-
var
|
|
1072
|
-
(
|
|
1073
|
-
var t = nt(e), n = t ==
|
|
1071
|
+
var zn = mt(Pe, "DataView"), Hn = mt(Pe, "Promise"), Tt = mt(Pe, "Set"), Yn = mt(Pe, "WeakMap"), Ji = "[object Map]", td = "[object Object]", Qi = "[object Promise]", ea = "[object Set]", ta = "[object WeakMap]", na = "[object DataView]", nd = ct(zn), id = ct(Kt), ad = ct(Hn), od = ct(Tt), rd = ct(Yn), Ge = nt;
|
|
1072
|
+
(zn && Ge(new zn(new ArrayBuffer(1))) != na || Kt && Ge(new Kt()) != Ji || Hn && Ge(Hn.resolve()) != Qi || Tt && Ge(new Tt()) != ea || Yn && Ge(new Yn()) != ta) && (Ge = function(e) {
|
|
1073
|
+
var t = nt(e), n = t == td ? e.constructor : void 0, i = n ? ct(n) : "";
|
|
1074
1074
|
if (i)
|
|
1075
1075
|
switch (i) {
|
|
1076
|
-
case td:
|
|
1077
|
-
return na;
|
|
1078
1076
|
case nd:
|
|
1079
|
-
return
|
|
1077
|
+
return na;
|
|
1080
1078
|
case id:
|
|
1081
|
-
return
|
|
1079
|
+
return Ji;
|
|
1082
1080
|
case ad:
|
|
1083
|
-
return
|
|
1081
|
+
return Qi;
|
|
1084
1082
|
case od:
|
|
1083
|
+
return ea;
|
|
1084
|
+
case rd:
|
|
1085
1085
|
return ta;
|
|
1086
1086
|
}
|
|
1087
1087
|
return t;
|
|
1088
1088
|
});
|
|
1089
|
-
var
|
|
1090
|
-
function
|
|
1089
|
+
var sd = Object.prototype, ld = sd.hasOwnProperty;
|
|
1090
|
+
function dd(e) {
|
|
1091
1091
|
var t = e.length, n = new e.constructor(t);
|
|
1092
|
-
return t && typeof e[0] == "string" &&
|
|
1092
|
+
return t && typeof e[0] == "string" && ld.call(e, "index") && (n.index = e.index, n.input = e.input), n;
|
|
1093
1093
|
}
|
|
1094
1094
|
var ia = Pe.Uint8Array;
|
|
1095
|
-
function
|
|
1095
|
+
function ai(e) {
|
|
1096
1096
|
var t = new e.constructor(e.byteLength);
|
|
1097
1097
|
return new ia(t).set(new ia(e)), t;
|
|
1098
1098
|
}
|
|
1099
|
-
function
|
|
1100
|
-
var n = t ?
|
|
1099
|
+
function ud(e, t) {
|
|
1100
|
+
var n = t ? ai(e.buffer) : e.buffer;
|
|
1101
1101
|
return new e.constructor(n, e.byteOffset, e.byteLength);
|
|
1102
1102
|
}
|
|
1103
|
-
var
|
|
1104
|
-
function
|
|
1105
|
-
var t = new e.constructor(e.source,
|
|
1103
|
+
var cd = /\w*$/;
|
|
1104
|
+
function md(e) {
|
|
1105
|
+
var t = new e.constructor(e.source, cd.exec(e));
|
|
1106
1106
|
return t.lastIndex = e.lastIndex, t;
|
|
1107
1107
|
}
|
|
1108
1108
|
var aa = tt ? tt.prototype : void 0, oa = aa ? aa.valueOf : void 0;
|
|
1109
|
-
function
|
|
1109
|
+
function fd(e) {
|
|
1110
1110
|
return oa ? Object(oa.call(e)) : {};
|
|
1111
1111
|
}
|
|
1112
|
-
function
|
|
1113
|
-
var n = t ?
|
|
1112
|
+
function hd(e, t) {
|
|
1113
|
+
var n = t ? ai(e.buffer) : e.buffer;
|
|
1114
1114
|
return new e.constructor(n, e.byteOffset, e.length);
|
|
1115
1115
|
}
|
|
1116
|
-
var
|
|
1117
|
-
function
|
|
1116
|
+
var pd = "[object Boolean]", gd = "[object Date]", yd = "[object Map]", vd = "[object Number]", bd = "[object RegExp]", _d = "[object Set]", Td = "[object String]", Sd = "[object Symbol]", wd = "[object ArrayBuffer]", Ed = "[object DataView]", Md = "[object Float32Array]", Ad = "[object Float64Array]", Id = "[object Int8Array]", Cd = "[object Int16Array]", Od = "[object Int32Array]", Fd = "[object Uint8Array]", kd = "[object Uint8ClampedArray]", Rd = "[object Uint16Array]", Ud = "[object Uint32Array]";
|
|
1117
|
+
function Ld(e, t, n) {
|
|
1118
1118
|
var i = e.constructor;
|
|
1119
1119
|
switch (t) {
|
|
1120
|
-
case
|
|
1121
|
-
return
|
|
1122
|
-
case hd:
|
|
1120
|
+
case wd:
|
|
1121
|
+
return ai(e);
|
|
1123
1122
|
case pd:
|
|
1123
|
+
case gd:
|
|
1124
1124
|
return new i(+e);
|
|
1125
|
-
case wd:
|
|
1126
|
-
return dd(e, n);
|
|
1127
1125
|
case Ed:
|
|
1126
|
+
return ud(e, n);
|
|
1128
1127
|
case Md:
|
|
1129
1128
|
case Ad:
|
|
1130
1129
|
case Id:
|
|
@@ -1133,21 +1132,22 @@ function Ud(e, t, n) {
|
|
|
1133
1132
|
case Fd:
|
|
1134
1133
|
case kd:
|
|
1135
1134
|
case Rd:
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
return new i();
|
|
1135
|
+
case Ud:
|
|
1136
|
+
return hd(e, n);
|
|
1139
1137
|
case yd:
|
|
1140
|
-
case _d:
|
|
1141
|
-
return new i(e);
|
|
1142
|
-
case vd:
|
|
1143
|
-
return cd(e);
|
|
1144
|
-
case bd:
|
|
1145
1138
|
return new i();
|
|
1139
|
+
case vd:
|
|
1146
1140
|
case Td:
|
|
1141
|
+
return new i(e);
|
|
1142
|
+
case bd:
|
|
1147
1143
|
return md(e);
|
|
1144
|
+
case _d:
|
|
1145
|
+
return new i();
|
|
1146
|
+
case Sd:
|
|
1147
|
+
return fd(e);
|
|
1148
1148
|
}
|
|
1149
1149
|
}
|
|
1150
|
-
var ra = Object.create,
|
|
1150
|
+
var ra = Object.create, Nd = /* @__PURE__ */ function() {
|
|
1151
1151
|
function e() {
|
|
1152
1152
|
}
|
|
1153
1153
|
return function(t) {
|
|
@@ -1160,65 +1160,65 @@ var ra = Object.create, Ld = /* @__PURE__ */ function() {
|
|
|
1160
1160
|
return e.prototype = void 0, n;
|
|
1161
1161
|
};
|
|
1162
1162
|
}();
|
|
1163
|
-
function
|
|
1164
|
-
return typeof e.constructor == "function" && !
|
|
1163
|
+
function Pd(e) {
|
|
1164
|
+
return typeof e.constructor == "function" && !ei(e) ? Nd(Xa(e)) : {};
|
|
1165
1165
|
}
|
|
1166
|
-
var
|
|
1167
|
-
function
|
|
1168
|
-
return it(e) && Ge(e) ==
|
|
1166
|
+
var Dd = "[object Map]";
|
|
1167
|
+
function $d(e) {
|
|
1168
|
+
return it(e) && Ge(e) == Dd;
|
|
1169
1169
|
}
|
|
1170
|
-
var sa = St && St.isMap,
|
|
1171
|
-
function
|
|
1172
|
-
return it(e) && Ge(e) ==
|
|
1170
|
+
var sa = St && St.isMap, Vd = sa ? Qn(sa) : $d, jd = "[object Set]";
|
|
1171
|
+
function xd(e) {
|
|
1172
|
+
return it(e) && Ge(e) == jd;
|
|
1173
1173
|
}
|
|
1174
|
-
var la = St && St.isSet,
|
|
1175
|
-
J[eo] = J[
|
|
1176
|
-
J[
|
|
1174
|
+
var la = St && St.isSet, qd = la ? Qn(la) : xd, Kd = 1, Bd = 2, zd = 4, eo = "[object Arguments]", Hd = "[object Array]", Yd = "[object Boolean]", Gd = "[object Date]", Wd = "[object Error]", to = "[object Function]", Zd = "[object GeneratorFunction]", Xd = "[object Map]", Jd = "[object Number]", no = "[object Object]", Qd = "[object RegExp]", eu = "[object Set]", tu = "[object String]", nu = "[object Symbol]", iu = "[object WeakMap]", au = "[object ArrayBuffer]", ou = "[object DataView]", ru = "[object Float32Array]", su = "[object Float64Array]", lu = "[object Int8Array]", du = "[object Int16Array]", uu = "[object Int32Array]", cu = "[object Uint8Array]", mu = "[object Uint8ClampedArray]", fu = "[object Uint16Array]", hu = "[object Uint32Array]", J = {};
|
|
1175
|
+
J[eo] = J[Hd] = J[au] = J[ou] = J[Yd] = J[Gd] = J[ru] = J[su] = J[lu] = J[du] = J[uu] = J[Xd] = J[Jd] = J[no] = J[Qd] = J[eu] = J[tu] = J[nu] = J[cu] = J[mu] = J[fu] = J[hu] = !0;
|
|
1176
|
+
J[Wd] = J[to] = J[iu] = !1;
|
|
1177
1177
|
function jt(e, t, n, i, a, o) {
|
|
1178
|
-
var s, r = t &
|
|
1178
|
+
var s, r = t & Kd, d = t & Bd, u = t & zd;
|
|
1179
1179
|
if (s !== void 0)
|
|
1180
1180
|
return s;
|
|
1181
1181
|
if (!Fe(e))
|
|
1182
1182
|
return e;
|
|
1183
|
-
var
|
|
1184
|
-
if (
|
|
1185
|
-
if (s =
|
|
1186
|
-
return
|
|
1183
|
+
var h = at(e);
|
|
1184
|
+
if (h) {
|
|
1185
|
+
if (s = dd(e), !r)
|
|
1186
|
+
return Hl(e, s);
|
|
1187
1187
|
} else {
|
|
1188
|
-
var
|
|
1188
|
+
var p = Ge(e), b = p == to || p == Zd;
|
|
1189
1189
|
if (Ua(e))
|
|
1190
|
-
return
|
|
1191
|
-
if (
|
|
1192
|
-
if (s = d || b ? {} :
|
|
1193
|
-
return d ?
|
|
1190
|
+
return zl(e, r);
|
|
1191
|
+
if (p == no || p == eo || b && !a) {
|
|
1192
|
+
if (s = d || b ? {} : Pd(e), !r)
|
|
1193
|
+
return d ? Jl(e, Kl(s, e)) : Zl(e, $l(s, e));
|
|
1194
1194
|
} else {
|
|
1195
|
-
if (!J[
|
|
1195
|
+
if (!J[p])
|
|
1196
1196
|
return a ? e : {};
|
|
1197
|
-
s =
|
|
1197
|
+
s = Ld(e, p, r);
|
|
1198
1198
|
}
|
|
1199
1199
|
}
|
|
1200
1200
|
o || (o = new At());
|
|
1201
1201
|
var F = o.get(e);
|
|
1202
1202
|
if (F)
|
|
1203
1203
|
return F;
|
|
1204
|
-
o.set(e, s),
|
|
1204
|
+
o.set(e, s), qd(e) ? e.forEach(function(M) {
|
|
1205
1205
|
s.add(jt(M, t, n, M, e, o));
|
|
1206
|
-
}) :
|
|
1206
|
+
}) : Vd(e) && e.forEach(function(M, I) {
|
|
1207
1207
|
s.set(I, jt(M, t, n, I, e, o));
|
|
1208
1208
|
});
|
|
1209
|
-
var x = u ? d ?
|
|
1210
|
-
return Ca(
|
|
1211
|
-
|
|
1209
|
+
var x = u ? d ? ed : Ql : d ? _n : hn, f = h ? void 0 : x(e);
|
|
1210
|
+
return Ca(f || e, function(M, I) {
|
|
1211
|
+
f && (I = M, M = e[I]), Ya(s, I, jt(M, t, n, I, e, o));
|
|
1212
1212
|
}), s;
|
|
1213
1213
|
}
|
|
1214
|
-
var
|
|
1214
|
+
var pu = 1, gu = 4;
|
|
1215
1215
|
function We(e) {
|
|
1216
|
-
return jt(e,
|
|
1216
|
+
return jt(e, pu | gu);
|
|
1217
1217
|
}
|
|
1218
|
-
const
|
|
1219
|
-
var
|
|
1218
|
+
const oi = (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, ""), da = (e = "") => e.toString().trim().replace(/ /g, "-").replace(/-{2,}/g, "-").replace(/^-+|-+$/g, "").replace(/([^a-zA-Z0-9-_/./:]+)/g, "");
|
|
1219
|
+
var yu = "[object String]";
|
|
1220
1220
|
function st(e) {
|
|
1221
|
-
return typeof e == "string" || !at(e) && it(e) && nt(e) ==
|
|
1221
|
+
return typeof e == "string" || !at(e) && it(e) && nt(e) == yu;
|
|
1222
1222
|
}
|
|
1223
1223
|
const io = {
|
|
1224
1224
|
methods: {
|
|
@@ -1255,23 +1255,23 @@ const io = {
|
|
|
1255
1255
|
}
|
|
1256
1256
|
}
|
|
1257
1257
|
};
|
|
1258
|
-
var
|
|
1258
|
+
var jn = function() {
|
|
1259
1259
|
return Pe.Date.now();
|
|
1260
|
-
},
|
|
1261
|
-
function
|
|
1262
|
-
for (var t = e.length; t-- &&
|
|
1260
|
+
}, vu = /\s/;
|
|
1261
|
+
function bu(e) {
|
|
1262
|
+
for (var t = e.length; t-- && vu.test(e.charAt(t)); )
|
|
1263
1263
|
;
|
|
1264
1264
|
return t;
|
|
1265
1265
|
}
|
|
1266
|
-
var
|
|
1267
|
-
function
|
|
1268
|
-
return e && e.slice(0,
|
|
1266
|
+
var _u = /^\s+/;
|
|
1267
|
+
function Tu(e) {
|
|
1268
|
+
return e && e.slice(0, bu(e) + 1).replace(_u, "");
|
|
1269
1269
|
}
|
|
1270
|
-
var ua = NaN,
|
|
1271
|
-
function
|
|
1270
|
+
var ua = NaN, Su = /^[-+]0x[0-9a-f]+$/i, wu = /^0b[01]+$/i, Eu = /^0o[0-7]+$/i, Mu = parseInt;
|
|
1271
|
+
function Gn(e) {
|
|
1272
1272
|
if (typeof e == "number")
|
|
1273
1273
|
return e;
|
|
1274
|
-
if (
|
|
1274
|
+
if (pn(e))
|
|
1275
1275
|
return ua;
|
|
1276
1276
|
if (Fe(e)) {
|
|
1277
1277
|
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
@@ -1279,36 +1279,36 @@ function Wn(e) {
|
|
|
1279
1279
|
}
|
|
1280
1280
|
if (typeof e != "string")
|
|
1281
1281
|
return e === 0 ? e : +e;
|
|
1282
|
-
e =
|
|
1283
|
-
var n =
|
|
1284
|
-
return n ||
|
|
1282
|
+
e = Tu(e);
|
|
1283
|
+
var n = wu.test(e);
|
|
1284
|
+
return n || Eu.test(e) ? Mu(e.slice(2), n ? 2 : 8) : Su.test(e) ? ua : +e;
|
|
1285
1285
|
}
|
|
1286
|
-
var
|
|
1286
|
+
var Au = "Expected a function", Iu = Math.max, Cu = Math.min;
|
|
1287
1287
|
function wt(e, t, n) {
|
|
1288
|
-
var i, a, o, s, r, d, u = 0,
|
|
1288
|
+
var i, a, o, s, r, d, u = 0, h = !1, p = !1, b = !0;
|
|
1289
1289
|
if (typeof e != "function")
|
|
1290
|
-
throw new TypeError(
|
|
1291
|
-
t =
|
|
1290
|
+
throw new TypeError(Au);
|
|
1291
|
+
t = Gn(t) || 0, Fe(n) && (h = !!n.leading, p = "maxWait" in n, o = p ? Iu(Gn(n.maxWait) || 0, t) : o, b = "trailing" in n ? !!n.trailing : b);
|
|
1292
1292
|
function F(y) {
|
|
1293
1293
|
var g = i, V = a;
|
|
1294
1294
|
return i = a = void 0, u = y, s = e.apply(V, g), s;
|
|
1295
1295
|
}
|
|
1296
1296
|
function x(y) {
|
|
1297
|
-
return u = y, r = setTimeout(I, t),
|
|
1297
|
+
return u = y, r = setTimeout(I, t), h ? F(y) : s;
|
|
1298
1298
|
}
|
|
1299
|
-
function
|
|
1299
|
+
function f(y) {
|
|
1300
1300
|
var g = y - d, V = y - u, Z = t - g;
|
|
1301
|
-
return
|
|
1301
|
+
return p ? Cu(Z, o - V) : Z;
|
|
1302
1302
|
}
|
|
1303
1303
|
function M(y) {
|
|
1304
1304
|
var g = y - d, V = y - u;
|
|
1305
|
-
return d === void 0 || g >= t || g < 0 ||
|
|
1305
|
+
return d === void 0 || g >= t || g < 0 || p && V >= o;
|
|
1306
1306
|
}
|
|
1307
1307
|
function I() {
|
|
1308
|
-
var y =
|
|
1308
|
+
var y = jn();
|
|
1309
1309
|
if (M(y))
|
|
1310
1310
|
return N(y);
|
|
1311
|
-
r = setTimeout(I,
|
|
1311
|
+
r = setTimeout(I, f(y));
|
|
1312
1312
|
}
|
|
1313
1313
|
function N(y) {
|
|
1314
1314
|
return r = void 0, b && i ? F(y) : (i = a = void 0, s);
|
|
@@ -1317,25 +1317,25 @@ function wt(e, t, n) {
|
|
|
1317
1317
|
r !== void 0 && clearTimeout(r), u = 0, i = d = a = r = void 0;
|
|
1318
1318
|
}
|
|
1319
1319
|
function O() {
|
|
1320
|
-
return r === void 0 ? s : N(
|
|
1320
|
+
return r === void 0 ? s : N(jn());
|
|
1321
1321
|
}
|
|
1322
1322
|
function v() {
|
|
1323
|
-
var y =
|
|
1323
|
+
var y = jn(), g = M(y);
|
|
1324
1324
|
if (i = arguments, a = this, d = y, g) {
|
|
1325
1325
|
if (r === void 0)
|
|
1326
1326
|
return x(d);
|
|
1327
|
-
if (
|
|
1327
|
+
if (p)
|
|
1328
1328
|
return clearTimeout(r), r = setTimeout(I, t), F(d);
|
|
1329
1329
|
}
|
|
1330
1330
|
return r === void 0 && (r = setTimeout(I, t)), s;
|
|
1331
1331
|
}
|
|
1332
1332
|
return v.cancel = T, v.flush = O, v;
|
|
1333
1333
|
}
|
|
1334
|
-
var
|
|
1335
|
-
function Ou(e) {
|
|
1336
|
-
return this.__data__.set(e, Cu), this;
|
|
1337
|
-
}
|
|
1334
|
+
var Ou = "__lodash_hash_undefined__";
|
|
1338
1335
|
function Fu(e) {
|
|
1336
|
+
return this.__data__.set(e, Ou), this;
|
|
1337
|
+
}
|
|
1338
|
+
function ku(e) {
|
|
1339
1339
|
return this.__data__.has(e);
|
|
1340
1340
|
}
|
|
1341
1341
|
function rn(e) {
|
|
@@ -1343,34 +1343,34 @@ function rn(e) {
|
|
|
1343
1343
|
for (this.__data__ = new Xe(); ++t < n; )
|
|
1344
1344
|
this.add(e[t]);
|
|
1345
1345
|
}
|
|
1346
|
-
rn.prototype.add = rn.prototype.push =
|
|
1347
|
-
rn.prototype.has =
|
|
1348
|
-
function
|
|
1346
|
+
rn.prototype.add = rn.prototype.push = Fu;
|
|
1347
|
+
rn.prototype.has = ku;
|
|
1348
|
+
function Ru(e, t, n, i) {
|
|
1349
1349
|
for (var a = e.length, o = n + -1; ++o < a; )
|
|
1350
1350
|
if (t(e[o], o, e))
|
|
1351
1351
|
return o;
|
|
1352
1352
|
return -1;
|
|
1353
1353
|
}
|
|
1354
|
-
function
|
|
1354
|
+
function Uu(e) {
|
|
1355
1355
|
return e !== e;
|
|
1356
1356
|
}
|
|
1357
|
-
function
|
|
1357
|
+
function Lu(e, t, n) {
|
|
1358
1358
|
for (var i = n - 1, a = e.length; ++i < a; )
|
|
1359
1359
|
if (e[i] === t)
|
|
1360
1360
|
return i;
|
|
1361
1361
|
return -1;
|
|
1362
1362
|
}
|
|
1363
|
-
function
|
|
1364
|
-
return t === t ?
|
|
1363
|
+
function Nu(e, t, n) {
|
|
1364
|
+
return t === t ? Lu(e, t, n) : Ru(e, Uu, n);
|
|
1365
1365
|
}
|
|
1366
|
-
function
|
|
1366
|
+
function Pu(e, t) {
|
|
1367
1367
|
var n = e == null ? 0 : e.length;
|
|
1368
|
-
return !!n &&
|
|
1368
|
+
return !!n && Nu(e, t, 0) > -1;
|
|
1369
1369
|
}
|
|
1370
|
-
function
|
|
1370
|
+
function Du(e, t) {
|
|
1371
1371
|
return e.has(t);
|
|
1372
1372
|
}
|
|
1373
|
-
function
|
|
1373
|
+
function $u() {
|
|
1374
1374
|
}
|
|
1375
1375
|
function ao(e) {
|
|
1376
1376
|
var t = -1, n = Array(e.size);
|
|
@@ -1378,39 +1378,39 @@ function ao(e) {
|
|
|
1378
1378
|
n[++t] = i;
|
|
1379
1379
|
}), n;
|
|
1380
1380
|
}
|
|
1381
|
-
var
|
|
1381
|
+
var Vu = 1 / 0, ju = Tt && 1 / ao(new Tt([, -0]))[1] == Vu ? function(e) {
|
|
1382
1382
|
return new Tt(e);
|
|
1383
|
-
} :
|
|
1384
|
-
function
|
|
1385
|
-
var i = -1, a =
|
|
1386
|
-
if (o >=
|
|
1387
|
-
var u =
|
|
1383
|
+
} : $u, xu = 200;
|
|
1384
|
+
function qu(e, t, n) {
|
|
1385
|
+
var i = -1, a = Pu, o = e.length, s = !0, r = [], d = r;
|
|
1386
|
+
if (o >= xu) {
|
|
1387
|
+
var u = ju(e);
|
|
1388
1388
|
if (u)
|
|
1389
1389
|
return ao(u);
|
|
1390
|
-
s = !1, a =
|
|
1390
|
+
s = !1, a = Du, d = new rn();
|
|
1391
1391
|
} else
|
|
1392
1392
|
d = r;
|
|
1393
1393
|
e:
|
|
1394
1394
|
for (; ++i < o; ) {
|
|
1395
|
-
var
|
|
1396
|
-
if (
|
|
1395
|
+
var h = e[i], p = h;
|
|
1396
|
+
if (h = h !== 0 ? h : 0, s && p === p) {
|
|
1397
1397
|
for (var b = d.length; b--; )
|
|
1398
|
-
if (d[b] ===
|
|
1398
|
+
if (d[b] === p)
|
|
1399
1399
|
continue e;
|
|
1400
|
-
r.push(
|
|
1401
|
-
} else a(d,
|
|
1400
|
+
r.push(h);
|
|
1401
|
+
} else a(d, p, n) || (d !== r && d.push(p), r.push(h));
|
|
1402
1402
|
}
|
|
1403
1403
|
return r;
|
|
1404
1404
|
}
|
|
1405
1405
|
function oo(e) {
|
|
1406
|
-
return e && e.length ?
|
|
1406
|
+
return e && e.length ? qu(e) : [];
|
|
1407
1407
|
}
|
|
1408
|
-
var
|
|
1408
|
+
var Ku = 0;
|
|
1409
1409
|
function ro(e) {
|
|
1410
|
-
var t = ++
|
|
1410
|
+
var t = ++Ku;
|
|
1411
1411
|
return ja(e) + t;
|
|
1412
1412
|
}
|
|
1413
|
-
var so = /d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g, Qe = "\\d\\d?", Je = "\\d\\d",
|
|
1413
|
+
var so = /d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g, Qe = "\\d\\d?", Je = "\\d\\d", Bu = "\\d{3}", zu = "\\d{4}", xt = "[^\\s]+", lo = /\[([^]*?)\]/gm;
|
|
1414
1414
|
function uo(e, t) {
|
|
1415
1415
|
for (var n = [], i = 0, a = e.length; i < a; i++)
|
|
1416
1416
|
n.push(e[i].substr(0, t));
|
|
@@ -1455,16 +1455,16 @@ var co = [
|
|
|
1455
1455
|
"October",
|
|
1456
1456
|
"November",
|
|
1457
1457
|
"December"
|
|
1458
|
-
],
|
|
1459
|
-
dayNamesShort:
|
|
1458
|
+
], Hu = uo(mo, 3), Yu = uo(co, 3), fo = {
|
|
1459
|
+
dayNamesShort: Yu,
|
|
1460
1460
|
dayNames: co,
|
|
1461
|
-
monthNamesShort:
|
|
1461
|
+
monthNamesShort: Hu,
|
|
1462
1462
|
monthNames: mo,
|
|
1463
1463
|
amPm: ["am", "pm"],
|
|
1464
1464
|
DoFn: function(e) {
|
|
1465
1465
|
return e + ["th", "st", "nd", "rd"][e % 10 > 3 ? 0 : (e - e % 10 !== 10 ? 1 : 0) * e % 10];
|
|
1466
1466
|
}
|
|
1467
|
-
}, sn = lt({}, fo),
|
|
1467
|
+
}, sn = lt({}, fo), Gu = function(e) {
|
|
1468
1468
|
return sn = lt(sn, e);
|
|
1469
1469
|
}, ma = function(e) {
|
|
1470
1470
|
return e.replace(/[|\\{()[^$+*?.-]/g, "\\$&");
|
|
@@ -1472,7 +1472,7 @@ var co = [
|
|
|
1472
1472
|
for (t === void 0 && (t = 2), e = String(e); e.length < t; )
|
|
1473
1473
|
e = "0" + e;
|
|
1474
1474
|
return e;
|
|
1475
|
-
},
|
|
1475
|
+
}, Wu = {
|
|
1476
1476
|
D: function(e) {
|
|
1477
1477
|
return String(e.getDate());
|
|
1478
1478
|
},
|
|
@@ -1579,7 +1579,7 @@ var co = [
|
|
|
1579
1579
|
}
|
|
1580
1580
|
return 0;
|
|
1581
1581
|
}
|
|
1582
|
-
],
|
|
1582
|
+
], Zu = {
|
|
1583
1583
|
D: ["day", Qe],
|
|
1584
1584
|
DD: ["day", Je],
|
|
1585
1585
|
Do: ["day", Qe + xt, function(e) {
|
|
@@ -1603,14 +1603,14 @@ var co = [
|
|
|
1603
1603
|
mm: ["minute", Je],
|
|
1604
1604
|
s: ["second", Qe],
|
|
1605
1605
|
ss: ["second", Je],
|
|
1606
|
-
YYYY: ["year",
|
|
1606
|
+
YYYY: ["year", zu],
|
|
1607
1607
|
S: ["millisecond", "\\d", function(e) {
|
|
1608
1608
|
return +e * 100;
|
|
1609
1609
|
}],
|
|
1610
1610
|
SS: ["millisecond", Je, function(e) {
|
|
1611
1611
|
return +e * 10;
|
|
1612
1612
|
}],
|
|
1613
|
-
SSS: ["millisecond",
|
|
1613
|
+
SSS: ["millisecond", Bu],
|
|
1614
1614
|
d: ha,
|
|
1615
1615
|
dd: ha,
|
|
1616
1616
|
ddd: pa,
|
|
@@ -1632,9 +1632,9 @@ var co = [
|
|
|
1632
1632
|
shortTime: "HH:mm",
|
|
1633
1633
|
mediumTime: "HH:mm:ss",
|
|
1634
1634
|
longTime: "HH:mm:ss.SSS"
|
|
1635
|
-
},
|
|
1635
|
+
}, Xu = function(e) {
|
|
1636
1636
|
return lt(ln, e);
|
|
1637
|
-
},
|
|
1637
|
+
}, Ju = function(e, t, n) {
|
|
1638
1638
|
if (t === void 0 && (t = ln.default), n === void 0 && (n = {}), typeof e == "number" && (e = new Date(e)), Object.prototype.toString.call(e) !== "[object Date]" || isNaN(e.getTime()))
|
|
1639
1639
|
throw new Error("Invalid Date pass to format");
|
|
1640
1640
|
t = ln[t] || t;
|
|
@@ -1644,12 +1644,12 @@ var co = [
|
|
|
1644
1644
|
});
|
|
1645
1645
|
var a = lt(lt({}, sn), n);
|
|
1646
1646
|
return t = t.replace(so, function(o) {
|
|
1647
|
-
return
|
|
1647
|
+
return Wu[o](e, a);
|
|
1648
1648
|
}), t.replace(/@@@/g, function() {
|
|
1649
1649
|
return i.shift();
|
|
1650
1650
|
});
|
|
1651
1651
|
};
|
|
1652
|
-
function
|
|
1652
|
+
function Qu(e, t, n) {
|
|
1653
1653
|
if (n === void 0 && (n = {}), typeof t != "string")
|
|
1654
1654
|
throw new Error("Invalid format in fecha parse");
|
|
1655
1655
|
if (t = ln[t] || t, e.length > 1e3)
|
|
@@ -1668,7 +1668,7 @@ function Ju(e, t, n) {
|
|
|
1668
1668
|
return s.push(ma(v)), "@@@";
|
|
1669
1669
|
}), d = {}, u = {};
|
|
1670
1670
|
r = ma(r).replace(so, function(O) {
|
|
1671
|
-
var v =
|
|
1671
|
+
var v = Zu[O], y = v[0], g = v[1], V = v[3];
|
|
1672
1672
|
if (d[y])
|
|
1673
1673
|
throw new Error("Invalid format. " + y + " specified twice in format");
|
|
1674
1674
|
return d[y] = !0, V && (u[V] = !0), o.push(v), "(" + g + ")";
|
|
@@ -1678,11 +1678,11 @@ function Ju(e, t, n) {
|
|
|
1678
1678
|
}), r = r.replace(/@@@/g, function() {
|
|
1679
1679
|
return s.shift();
|
|
1680
1680
|
});
|
|
1681
|
-
var
|
|
1682
|
-
if (!
|
|
1681
|
+
var h = e.match(new RegExp(r, "i"));
|
|
1682
|
+
if (!h)
|
|
1683
1683
|
return null;
|
|
1684
|
-
for (var
|
|
1685
|
-
var F = o[b - 1], x = F[0],
|
|
1684
|
+
for (var p = lt(lt({}, sn), n), b = 1; b < h.length; b++) {
|
|
1685
|
+
var F = o[b - 1], x = F[0], f = F[2], M = f ? f(h[b], p) : +h[b];
|
|
1686
1686
|
if (M == null)
|
|
1687
1687
|
return null;
|
|
1688
1688
|
a[x] = M;
|
|
@@ -1705,13 +1705,13 @@ function Ju(e, t, n) {
|
|
|
1705
1705
|
return I;
|
|
1706
1706
|
}
|
|
1707
1707
|
var _t = {
|
|
1708
|
-
format:
|
|
1709
|
-
parse:
|
|
1708
|
+
format: Ju,
|
|
1709
|
+
parse: Qu,
|
|
1710
1710
|
defaultI18n: fo,
|
|
1711
|
-
setGlobalDateI18n:
|
|
1712
|
-
setGlobalDateMasks:
|
|
1711
|
+
setGlobalDateI18n: Gu,
|
|
1712
|
+
setGlobalDateMasks: Xu
|
|
1713
1713
|
};
|
|
1714
|
-
function
|
|
1714
|
+
function ec(e, t, n) {
|
|
1715
1715
|
switch (n.length) {
|
|
1716
1716
|
case 0:
|
|
1717
1717
|
return e.call(t);
|
|
@@ -1725,69 +1725,69 @@ function Qu(e, t, n) {
|
|
|
1725
1725
|
return e.apply(t, n);
|
|
1726
1726
|
}
|
|
1727
1727
|
var va = Math.max;
|
|
1728
|
-
function
|
|
1728
|
+
function tc(e, t, n) {
|
|
1729
1729
|
return t = va(t === void 0 ? e.length - 1 : t, 0), function() {
|
|
1730
1730
|
for (var i = arguments, a = -1, o = va(i.length - t, 0), s = Array(o); ++a < o; )
|
|
1731
1731
|
s[a] = i[t + a];
|
|
1732
1732
|
a = -1;
|
|
1733
1733
|
for (var r = Array(t + 1); ++a < t; )
|
|
1734
1734
|
r[a] = i[a];
|
|
1735
|
-
return r[t] = n(s),
|
|
1735
|
+
return r[t] = n(s), ec(e, this, r);
|
|
1736
1736
|
};
|
|
1737
1737
|
}
|
|
1738
|
-
function
|
|
1738
|
+
function nc(e) {
|
|
1739
1739
|
return function() {
|
|
1740
1740
|
return e;
|
|
1741
1741
|
};
|
|
1742
1742
|
}
|
|
1743
|
-
var
|
|
1743
|
+
var ic = on ? function(e, t) {
|
|
1744
1744
|
return on(e, "toString", {
|
|
1745
1745
|
configurable: !0,
|
|
1746
1746
|
enumerable: !1,
|
|
1747
|
-
value:
|
|
1747
|
+
value: nc(t),
|
|
1748
1748
|
writable: !0
|
|
1749
1749
|
});
|
|
1750
|
-
} :
|
|
1751
|
-
function
|
|
1750
|
+
} : ti, ac = 800, oc = 16, rc = Date.now;
|
|
1751
|
+
function sc(e) {
|
|
1752
1752
|
var t = 0, n = 0;
|
|
1753
1753
|
return function() {
|
|
1754
|
-
var i =
|
|
1754
|
+
var i = rc(), a = oc - (i - n);
|
|
1755
1755
|
if (n = i, a > 0) {
|
|
1756
|
-
if (++t >=
|
|
1756
|
+
if (++t >= ac)
|
|
1757
1757
|
return arguments[0];
|
|
1758
1758
|
} else
|
|
1759
1759
|
t = 0;
|
|
1760
1760
|
return e.apply(void 0, arguments);
|
|
1761
1761
|
};
|
|
1762
1762
|
}
|
|
1763
|
-
var
|
|
1764
|
-
function
|
|
1765
|
-
return
|
|
1763
|
+
var lc = sc(ic);
|
|
1764
|
+
function dc(e, t) {
|
|
1765
|
+
return lc(tc(e, t, ti), e + "");
|
|
1766
1766
|
}
|
|
1767
|
-
function
|
|
1767
|
+
function uc(e, t, n) {
|
|
1768
1768
|
if (!Fe(n))
|
|
1769
1769
|
return !1;
|
|
1770
1770
|
var i = typeof t;
|
|
1771
|
-
return (i == "number" ?
|
|
1771
|
+
return (i == "number" ? fn(n) && La(t, n.length) : i == "string" && t in n) ? gn(n[t], e) : !1;
|
|
1772
1772
|
}
|
|
1773
|
-
var ho = Object.prototype,
|
|
1773
|
+
var ho = Object.prototype, cc = ho.hasOwnProperty, mc = dc(function(e, t) {
|
|
1774
1774
|
e = Object(e);
|
|
1775
1775
|
var n = -1, i = t.length, a = i > 2 ? t[2] : void 0;
|
|
1776
|
-
for (a &&
|
|
1777
|
-
for (var o = t[n], s =
|
|
1778
|
-
var u = s[r],
|
|
1779
|
-
(
|
|
1776
|
+
for (a && uc(t[0], t[1], a) && (i = 1); ++n < i; )
|
|
1777
|
+
for (var o = t[n], s = _n(o), r = -1, d = s.length; ++r < d; ) {
|
|
1778
|
+
var u = s[r], h = e[u];
|
|
1779
|
+
(h === void 0 || gn(h, ho[u]) && !cc.call(e, u)) && (e[u] = o[u]);
|
|
1780
1780
|
}
|
|
1781
1781
|
return e;
|
|
1782
|
-
}),
|
|
1783
|
-
function
|
|
1784
|
-
return typeof e == "number" &&
|
|
1782
|
+
}), fc = Pe.isFinite;
|
|
1783
|
+
function po(e) {
|
|
1784
|
+
return typeof e == "number" && fc(e);
|
|
1785
1785
|
}
|
|
1786
1786
|
var ba = 1 / 0, hc = 17976931348623157e292;
|
|
1787
1787
|
function pc(e) {
|
|
1788
1788
|
if (!e)
|
|
1789
1789
|
return e === 0 ? e : 0;
|
|
1790
|
-
if (e =
|
|
1790
|
+
if (e = Gn(e), e === ba || e === -ba) {
|
|
1791
1791
|
var t = e < 0 ? -1 : 1;
|
|
1792
1792
|
return t * hc;
|
|
1793
1793
|
}
|
|
@@ -1801,7 +1801,7 @@ function yc(e) {
|
|
|
1801
1801
|
return typeof e == "number" && e == gc(e);
|
|
1802
1802
|
}
|
|
1803
1803
|
var vc = "[object Number]";
|
|
1804
|
-
function
|
|
1804
|
+
function ri(e) {
|
|
1805
1805
|
return typeof e == "number" || it(e) && nt(e) == vc;
|
|
1806
1806
|
}
|
|
1807
1807
|
const bc = {
|
|
@@ -2023,7 +2023,7 @@ const bc = {
|
|
|
2023
2023
|
required: (e, t, n, i = ve) => Ue(e, t.required, i) || [],
|
|
2024
2024
|
number: (e, t, n, i = ve) => {
|
|
2025
2025
|
let a = Ue(e, t.required, i);
|
|
2026
|
-
return a != null || (a = [],
|
|
2026
|
+
return a != null || (a = [], po(e) ? (!de(t.min) && e < t.min, (i = ve) && a.push(ie(i.numberTooSmall, t.min)), !de(t.max) && e > t.max, (i = ve) && a.push(ie(i.numberTooBig, t.max))) : a.push(ie(i.invalidNumber))), a;
|
|
2027
2027
|
},
|
|
2028
2028
|
integer: (e, t, n, i = ve) => {
|
|
2029
2029
|
let a = Ue(e, t.required, i);
|
|
@@ -2031,7 +2031,7 @@ const bc = {
|
|
|
2031
2031
|
},
|
|
2032
2032
|
double: (e, t, n, i = ve) => {
|
|
2033
2033
|
const a = Ue(e, t.required, i);
|
|
2034
|
-
return a ?? (!
|
|
2034
|
+
return a ?? (!ri(e) || isNaN(e) ? [ie(i.invalidNumber)] : []);
|
|
2035
2035
|
},
|
|
2036
2036
|
string: (e, t, n, i = ve) => {
|
|
2037
2037
|
let a = Ue(e, t.required, i);
|
|
@@ -2087,9 +2087,9 @@ const bc = {
|
|
|
2087
2087
|
const o = /^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$/, s = e.replace(/[^0-9]+/g, "");
|
|
2088
2088
|
if (!o.test(s))
|
|
2089
2089
|
return [ie(i.invalidCard)];
|
|
2090
|
-
let r = 0, d, u,
|
|
2091
|
-
for (let
|
|
2092
|
-
d = s.substring(
|
|
2090
|
+
let r = 0, d, u, h;
|
|
2091
|
+
for (let p = s.length - 1; p >= 0; p--)
|
|
2092
|
+
d = s.substring(p, p + 1), u = parseInt(d, 10), h ? (u *= 2, u >= 10 ? r += u % 10 + 1 : r += u) : r += u, h = !h;
|
|
2093
2093
|
return r % 10 === 0 && s ? [] : [ie(i.invalidCardNumber)];
|
|
2094
2094
|
},
|
|
2095
2095
|
alpha: (e, t, n, i = ve) => {
|
|
@@ -2103,12 +2103,12 @@ const bc = {
|
|
|
2103
2103
|
};
|
|
2104
2104
|
Object.keys(dt).forEach((e) => {
|
|
2105
2105
|
const t = dt[e];
|
|
2106
|
-
X(t) && (t.locale = (n) => (i, a, o) => t(i, a, o,
|
|
2106
|
+
X(t) && (t.locale = (n) => (i, a, o) => t(i, a, o, mc(n, ve)));
|
|
2107
2107
|
});
|
|
2108
2108
|
function _a(e) {
|
|
2109
2109
|
return st(e) ? dt[e] != null ? dt[e] : (console.warn(`'${e}' is not a validator function!`), null) : e;
|
|
2110
2110
|
}
|
|
2111
|
-
function
|
|
2111
|
+
function xn(e, t, n) {
|
|
2112
2112
|
let i = G(n.context, "schema.attributes", {});
|
|
2113
2113
|
const a = t.value || "input";
|
|
2114
2114
|
st(a) && (i = G(i, a) || i), Se(i, (o, s) => {
|
|
@@ -2128,9 +2128,9 @@ const $e = {
|
|
|
2128
2128
|
},
|
|
2129
2129
|
directives: {
|
|
2130
2130
|
attributes: {
|
|
2131
|
-
beforeMount:
|
|
2132
|
-
updated:
|
|
2133
|
-
componentUpdated:
|
|
2131
|
+
beforeMount: xn,
|
|
2132
|
+
updated: xn,
|
|
2133
|
+
componentUpdated: xn
|
|
2134
2134
|
}
|
|
2135
2135
|
},
|
|
2136
2136
|
computed: {
|
|
@@ -2211,7 +2211,7 @@ const $e = {
|
|
|
2211
2211
|
},
|
|
2212
2212
|
getFieldID(e, t = !1) {
|
|
2213
2213
|
const n = G(this.formOptions, "fieldIdPrefix", "");
|
|
2214
|
-
return
|
|
2214
|
+
return oi(e, n) + (t ? "-" + ro() : "");
|
|
2215
2215
|
},
|
|
2216
2216
|
getLabelId(e) {
|
|
2217
2217
|
return `${this.getFieldID(e)}-label`;
|
|
@@ -2329,7 +2329,7 @@ const $e = {
|
|
|
2329
2329
|
]);
|
|
2330
2330
|
};
|
|
2331
2331
|
}
|
|
2332
|
-
}),
|
|
2332
|
+
}), go = /* @__PURE__ */ W(kc, [["__scopeId", "data-v-97302224"]]), Rc = { class: "array-item-wrapper" }, Uc = { class: "array-item" }, Lc = { class: "array-item-after" }, Nc = /* @__PURE__ */ he({
|
|
2333
2333
|
__name: "FieldArrayItem",
|
|
2334
2334
|
props: {
|
|
2335
2335
|
model: {
|
|
@@ -2361,7 +2361,7 @@ const $e = {
|
|
|
2361
2361
|
]);
|
|
2362
2362
|
};
|
|
2363
2363
|
}
|
|
2364
|
-
}),
|
|
2364
|
+
}), yo = /* @__PURE__ */ W(Nc, [["__scopeId", "data-v-51d79db2"]]), Pc = { class: "multi-item-wrapper" }, Dc = /* @__PURE__ */ he({
|
|
2365
2365
|
__name: "FieldArrayMultiItem",
|
|
2366
2366
|
emits: ["remove-item"],
|
|
2367
2367
|
setup(e) {
|
|
@@ -2383,7 +2383,7 @@ const $e = {
|
|
|
2383
2383
|
]);
|
|
2384
2384
|
};
|
|
2385
2385
|
}
|
|
2386
|
-
}),
|
|
2386
|
+
}), vo = /* @__PURE__ */ W(Dc, [["__scopeId", "data-v-b4fcf731"]]), $c = "#6c7489", Vc = "12px", jc = "20px";
|
|
2387
2387
|
var xc = 4;
|
|
2388
2388
|
function Ta(e) {
|
|
2389
2389
|
return jt(e, xc);
|
|
@@ -2404,7 +2404,7 @@ const qc = ["data-testid", "data-testlabel"], Kc = { class: "item-label" }, Bc =
|
|
|
2404
2404
|
}),
|
|
2405
2405
|
emits: /* @__PURE__ */ Oi(["change", "query-change"], ["update:id"]),
|
|
2406
2406
|
setup(e) {
|
|
2407
|
-
const { t } = ke("en-us", Re), n =
|
|
2407
|
+
const { t } = ke("en-us", Re), n = Do(e, "id");
|
|
2408
2408
|
return (i, a) => {
|
|
2409
2409
|
const o = D("KSelect");
|
|
2410
2410
|
return c(), U(o, {
|
|
@@ -2424,7 +2424,7 @@ const qc = ["data-testid", "data-testlabel"], Kc = { class: "item-label" }, Bc =
|
|
|
2424
2424
|
width: "100%",
|
|
2425
2425
|
onChange: a[1] || (a[1] = (s) => i.$emit("change", s)),
|
|
2426
2426
|
onQueryChange: a[2] || (a[2] = (s) => i.$emit("query-change", s))
|
|
2427
|
-
},
|
|
2427
|
+
}, un({
|
|
2428
2428
|
"item-template": E(({ item: s }) => [
|
|
2429
2429
|
Oe(i.$slots, "item", { item: s }, () => [
|
|
2430
2430
|
m("span", {
|
|
@@ -2456,12 +2456,12 @@ const qc = ["data-testid", "data-testlabel"], Kc = { class: "item-label" }, Bc =
|
|
|
2456
2456
|
]), 1032, ["id", "modelValue", "disabled", "error", "help", "items", "loading", "placeholder"]);
|
|
2457
2457
|
};
|
|
2458
2458
|
}
|
|
2459
|
-
}), Hc = /* @__PURE__ */ W(zc, [["__scopeId", "data-v-9f6760b4"]]), Yc = "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}",
|
|
2459
|
+
}), Hc = /* @__PURE__ */ W(zc, [["__scopeId", "data-v-9f6760b4"]]), Yc = "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}", Wn = (e) => e ? e.length === 36 && new RegExp(`^${Yc}$`).test(e) : !1, Gc = (e) => ({
|
|
2460
2460
|
...e,
|
|
2461
2461
|
label: e.name,
|
|
2462
2462
|
value: e.id
|
|
2463
2463
|
});
|
|
2464
|
-
function
|
|
2464
|
+
function bo(e, t, n) {
|
|
2465
2465
|
return n ? je.SET_REFERRAL_VALUE : e && !t || !e && t ? je.UPDATE_ENTITY : e && t ? je.CREATE_FROM_ENTITY : je.CREATE_NOT_FROM_ENTITY;
|
|
2466
2466
|
}
|
|
2467
2467
|
const Wc = 500, Zc = 50, Xc = /* @__PURE__ */ he({
|
|
@@ -2487,10 +2487,10 @@ const Wc = 500, Zc = 50, Xc = /* @__PURE__ */ he({
|
|
|
2487
2487
|
emits: ["change"],
|
|
2488
2488
|
setup(e) {
|
|
2489
2489
|
const t = ae(""), n = ae(!1), i = ae(!1), a = ae(""), o = ae([]), s = ae([]), r = ae([]), { t: d } = ke("en-us", Re), u = ae(null);
|
|
2490
|
-
let
|
|
2491
|
-
const
|
|
2490
|
+
let h = null;
|
|
2491
|
+
const p = async (v, y) => {
|
|
2492
2492
|
if (!e.fieldDisabled) {
|
|
2493
|
-
clearTimeout(
|
|
2493
|
+
clearTimeout(h), h = setTimeout(() => {
|
|
2494
2494
|
n.value = !0;
|
|
2495
2495
|
}, 1500);
|
|
2496
2496
|
try {
|
|
@@ -2499,13 +2499,13 @@ const Wc = 500, Zc = 50, Xc = /* @__PURE__ */ he({
|
|
|
2499
2499
|
} catch (g) {
|
|
2500
2500
|
if (y != null && y.aborted)
|
|
2501
2501
|
return;
|
|
2502
|
-
if (o.value = [],
|
|
2502
|
+
if (o.value = [], Go(g) && g.status === 404) {
|
|
2503
2503
|
console.warn("unable to search with UUID", a.value, "for entity type", e.entity);
|
|
2504
2504
|
return;
|
|
2505
2505
|
}
|
|
2506
2506
|
t.value = g.message;
|
|
2507
2507
|
} finally {
|
|
2508
|
-
clearTimeout(
|
|
2508
|
+
clearTimeout(h), n.value = !1;
|
|
2509
2509
|
}
|
|
2510
2510
|
}
|
|
2511
2511
|
}, b = wt((v) => {
|
|
@@ -2526,19 +2526,19 @@ const Wc = 500, Zc = 50, Xc = /* @__PURE__ */ he({
|
|
|
2526
2526
|
...e.transformItem(V),
|
|
2527
2527
|
group: d("fields.auto_suggest.recently_created", { entity: e.entity })
|
|
2528
2528
|
})), v;
|
|
2529
|
-
},
|
|
2530
|
-
|
|
2529
|
+
}, f = async (v) => [await e.getOne(v)], M = (v, y) => {
|
|
2530
|
+
Wn(v) && e.allowUuidSearch ? p(async () => await f(v)) : p(async () => await F(v, y.signal), y.signal);
|
|
2531
2531
|
}, I = (v) => {
|
|
2532
2532
|
let y = [];
|
|
2533
2533
|
y = N(r.value), v != null && v.trim() ? o.value = y.filter((g) => e.fields.some((V) => (g[V] || "").includes(v))) : o.value = y;
|
|
2534
2534
|
}, N = (v) => e.selectedItem ? v.some((y) => y.value === e.selectedItem.value) ? v : [e.selectedItem, ...v] : v, T = (v) => {
|
|
2535
2535
|
o.value = r.value.filter((y) => y.id === v);
|
|
2536
2536
|
}, O = (v) => {
|
|
2537
|
-
|
|
2537
|
+
Wn(v) && e.allowUuidSearch ? T(v) : I(v);
|
|
2538
2538
|
};
|
|
2539
|
-
return
|
|
2540
|
-
await
|
|
2541
|
-
const v =
|
|
2539
|
+
return Zn(async () => {
|
|
2540
|
+
await p(x);
|
|
2541
|
+
const v = cn(() => e.selectedItem, (y) => {
|
|
2542
2542
|
y && (o.value = N(r.value)), v();
|
|
2543
2543
|
});
|
|
2544
2544
|
o.value = N(r.value);
|
|
@@ -2554,7 +2554,7 @@ const Wc = 500, Zc = 50, Xc = /* @__PURE__ */ he({
|
|
|
2554
2554
|
suggestions: o.value,
|
|
2555
2555
|
onChange: y[0] || (y[0] = (g) => v.$emit("change", g)),
|
|
2556
2556
|
onQueryChange: A(b)
|
|
2557
|
-
},
|
|
2557
|
+
}, un({
|
|
2558
2558
|
"selected-item": E(({ item: g }) => [
|
|
2559
2559
|
Oe(v.$slots, "selected-item", { item: g })
|
|
2560
2560
|
]),
|
|
@@ -2575,7 +2575,7 @@ const Wc = 500, Zc = 50, Xc = /* @__PURE__ */ he({
|
|
|
2575
2575
|
}), Jc = 1e3, Qc = {
|
|
2576
2576
|
components: {
|
|
2577
2577
|
FieldScopedEntitySelect: Xc,
|
|
2578
|
-
SearchIcon:
|
|
2578
|
+
SearchIcon: Ho
|
|
2579
2579
|
},
|
|
2580
2580
|
mixins: [$e],
|
|
2581
2581
|
inject: [Ce],
|
|
@@ -2586,7 +2586,7 @@ const Wc = 500, Zc = 50, Xc = /* @__PURE__ */ he({
|
|
|
2586
2586
|
t: e,
|
|
2587
2587
|
KUI_ICON_SIZE_40: jc,
|
|
2588
2588
|
KUI_COLOR_TEXT_NEUTRAL: $c,
|
|
2589
|
-
EMPTY_VALUE_PLACEHOLDER:
|
|
2589
|
+
EMPTY_VALUE_PLACEHOLDER: sl
|
|
2590
2590
|
};
|
|
2591
2591
|
},
|
|
2592
2592
|
data() {
|
|
@@ -2604,7 +2604,7 @@ const Wc = 500, Zc = 50, Xc = /* @__PURE__ */ he({
|
|
|
2604
2604
|
},
|
|
2605
2605
|
computed: {
|
|
2606
2606
|
fieldState() {
|
|
2607
|
-
return
|
|
2607
|
+
return bo(this.model[this.schema.model], this.associatedEntity || this.entityId, this.bypassSearch);
|
|
2608
2608
|
},
|
|
2609
2609
|
associatedEntity() {
|
|
2610
2610
|
return this.$route && this.$route.params[this.entity];
|
|
@@ -2768,7 +2768,7 @@ function om(e, t, n, i, a, o) {
|
|
|
2768
2768
|
_: 1
|
|
2769
2769
|
}, 8, ["text"]);
|
|
2770
2770
|
}
|
|
2771
|
-
const
|
|
2771
|
+
const _o = /* @__PURE__ */ W(Qc, [["render", om], ["__scopeId", "data-v-6fe8b574"]]), qn = 50, rm = {
|
|
2772
2772
|
mixins: [$e],
|
|
2773
2773
|
inject: [Ce],
|
|
2774
2774
|
emits: ["model-updated"],
|
|
@@ -2790,7 +2790,7 @@ const bo = /* @__PURE__ */ W(Qc, [["render", om], ["__scopeId", "data-v-6fe8b574
|
|
|
2790
2790
|
},
|
|
2791
2791
|
computed: {
|
|
2792
2792
|
fieldState() {
|
|
2793
|
-
return
|
|
2793
|
+
return bo(this.model[this.schema.model], this.associatedEntity || this.entityId, this.bypassSearch);
|
|
2794
2794
|
},
|
|
2795
2795
|
associatedEntity() {
|
|
2796
2796
|
return this.$route && this.$route.params[this.entity];
|
|
@@ -2840,7 +2840,7 @@ const bo = /* @__PURE__ */ W(Qc, [["render", om], ["__scopeId", "data-v-6fe8b574
|
|
|
2840
2840
|
return;
|
|
2841
2841
|
this.loading = !0;
|
|
2842
2842
|
const t = [], n = [], i = this.getInputFields(), a = /* @__PURE__ */ new Set();
|
|
2843
|
-
|
|
2843
|
+
Wn(e) && i.includes("id") ? n.push((async () => {
|
|
2844
2844
|
const o = await this.fetchExact(e);
|
|
2845
2845
|
t.push({ ...o, label: this.getSuggestionLabel(o), value: o.id });
|
|
2846
2846
|
})()) : n.push(...i.filter((o) => o !== "id").map(async (o) => {
|
|
@@ -2857,15 +2857,15 @@ const bo = /* @__PURE__ */ W(Qc, [["render", om], ["__scopeId", "data-v-6fe8b574
|
|
|
2857
2857
|
let n = null;
|
|
2858
2858
|
if (!this[Ce])
|
|
2859
2859
|
return console.warn("[@kong-ui-public/forms] No API service provided"), [];
|
|
2860
|
-
for (; t.length <
|
|
2860
|
+
for (; t.length < qn; ) {
|
|
2861
2861
|
const i = await this[Ce].getAll(this.entity, {
|
|
2862
|
-
size:
|
|
2862
|
+
size: qn,
|
|
2863
2863
|
offset: n,
|
|
2864
2864
|
...e
|
|
2865
2865
|
});
|
|
2866
2866
|
if (t.push(...i.data.data), n = i.data.offset, !n) break;
|
|
2867
2867
|
}
|
|
2868
|
-
return t.slice(0,
|
|
2868
|
+
return t.slice(0, qn);
|
|
2869
2869
|
},
|
|
2870
2870
|
async fetchSuggestions(e, t) {
|
|
2871
2871
|
return this.fetchUntilLimit({ [t]: e });
|
|
@@ -2941,19 +2941,19 @@ function um(e, t, n, i, a, o) {
|
|
|
2941
2941
|
_: 1
|
|
2942
2942
|
}, 8, ["text"]);
|
|
2943
2943
|
}
|
|
2944
|
-
const
|
|
2944
|
+
const To = /* @__PURE__ */ W(rm, [["render", um], ["__scopeId", "data-v-8cfdc7f6"]]);
|
|
2945
2945
|
function cm(e) {
|
|
2946
|
-
const t = ae([]), n = ae(null), i = (
|
|
2946
|
+
const t = ae([]), n = ae(null), i = (f) => st(f) ? dt[f] != null ? dt[f] : (console.warn(`'${f}' is not a validator function!`), null) : f, a = B({
|
|
2947
2947
|
get() {
|
|
2948
2948
|
var M, I;
|
|
2949
|
-
let
|
|
2950
|
-
return X(G(e.schema, "get")) ?
|
|
2949
|
+
let f;
|
|
2950
|
+
return X(G(e.schema, "get")) ? f = e.schema.get((M = e.model) == null ? void 0 : M.value) : f = G((I = e.model) == null ? void 0 : I.value, e.schema.model), F(f);
|
|
2951
2951
|
},
|
|
2952
|
-
set(
|
|
2952
|
+
set(f) {
|
|
2953
2953
|
const M = a;
|
|
2954
|
-
|
|
2954
|
+
f = x(f), X(f) ? f(f, M) : r(f, M);
|
|
2955
2955
|
}
|
|
2956
|
-
}), o = (
|
|
2956
|
+
}), o = (f) => {
|
|
2957
2957
|
var T;
|
|
2958
2958
|
d();
|
|
2959
2959
|
const M = G(e.formOptions, "validateAsync", !1);
|
|
@@ -2981,7 +2981,7 @@ function cm(e) {
|
|
|
2981
2981
|
let v = [];
|
|
2982
2982
|
if (Se(oo(O), (V) => {
|
|
2983
2983
|
Array.isArray(V) && V.length > 0 ? v = v.concat(V) : st(V) && v.push(V);
|
|
2984
|
-
}), X((y = e.schema) == null ? void 0 : y.onValidated) && e.schema.onValidated((g = e.model) == null ? void 0 : g.value, v, e.schema), !
|
|
2984
|
+
}), X((y = e.schema) == null ? void 0 : y.onValidated) && e.schema.onValidated((g = e.model) == null ? void 0 : g.value, v, e.schema), !f) {
|
|
2985
2985
|
const V = v.length === 0;
|
|
2986
2986
|
e.emitValidated && e.emitValidated({ isValid: V, errors: v, field: e.schema });
|
|
2987
2987
|
}
|
|
@@ -2993,15 +2993,15 @@ function cm(e) {
|
|
|
2993
2993
|
o,
|
|
2994
2994
|
G(e.schema, "validateDebounceTime", G(e.formOptions, "validateDebounceTime", 500))
|
|
2995
2995
|
);
|
|
2996
|
-
}, r = (
|
|
2996
|
+
}, r = (f, M) => {
|
|
2997
2997
|
var N, T, O;
|
|
2998
2998
|
let I = !1;
|
|
2999
|
-
X(e.schema.set) ? (e.schema.set((N = e.model) == null ? void 0 : N.value,
|
|
2999
|
+
X(e.schema.set) ? (e.schema.set((N = e.model) == null ? void 0 : N.value, f), I = !0) : e.schema.model && (u(e.schema.model, f), I = !0), I && (e.emitModelUpdated && ((T = e.model) != null && T.value) && e.emitModelUpdated({ value: f, model: e.schema.model }), X(e.schema.onChanged) && e.schema.onChanged((O = e.model) == null ? void 0 : O.value, f, M, e.schema), G(e.formOptions, "validateAfterChanged", !1) === !0 && (G(e.schema, "validateDebounceTime", G(e.formOptions, "validateDebounceTime", 0)) > 0 ? s() : o()));
|
|
3000
3000
|
}, d = () => {
|
|
3001
3001
|
t.value.splice(0);
|
|
3002
|
-
}, u = (
|
|
3002
|
+
}, u = (f, M) => {
|
|
3003
3003
|
var y;
|
|
3004
|
-
let I =
|
|
3004
|
+
let I = f.replace(/\[(\w+)\]/g, ".$1");
|
|
3005
3005
|
I = I.replace(/^\./, "");
|
|
3006
3006
|
let N = ((y = e.model) == null ? void 0 : y.value) || {}, T = 0;
|
|
3007
3007
|
const O = I.split("."), v = O.length;
|
|
@@ -3015,15 +3015,15 @@ function cm(e) {
|
|
|
3015
3015
|
}
|
|
3016
3016
|
++T;
|
|
3017
3017
|
}
|
|
3018
|
-
},
|
|
3018
|
+
}, h = (f, M = !1) => {
|
|
3019
3019
|
const I = G(e.formOptions, "fieldIdPrefix", "");
|
|
3020
|
-
return
|
|
3021
|
-
},
|
|
3020
|
+
return oi(f, I) + (M ? "-" + ro() : "");
|
|
3021
|
+
}, p = (f) => `${h(f)}-label`, b = () => G(e.schema, "fieldClasses", []), F = (f) => e.formatValueToField && typeof e.formatValueToField == "function" ? e.formatValueToField(f) : f, x = (f) => e.formatValueToModel && typeof e.formatValueToModel == "function" ? e.formatValueToModel(f) : f;
|
|
3022
3022
|
return {
|
|
3023
3023
|
value: a,
|
|
3024
3024
|
clearValidationErrors: d,
|
|
3025
|
-
getFieldID:
|
|
3026
|
-
getLabelId:
|
|
3025
|
+
getFieldID: h,
|
|
3026
|
+
getLabelId: p,
|
|
3027
3027
|
getFieldClasses: b,
|
|
3028
3028
|
updateModelValue: r
|
|
3029
3029
|
};
|
|
@@ -3108,7 +3108,7 @@ const xe = {
|
|
|
3108
3108
|
},
|
|
3109
3109
|
emits: ["modelUpdated"],
|
|
3110
3110
|
setup(e, { expose: t, emit: n }) {
|
|
3111
|
-
const i = e, a = n, o = ut(i), s = an(Le, void 0), { updateModelValue: r, getFieldID: d, clearValidationErrors: u, value:
|
|
3111
|
+
const i = e, a = n, o = ut(i), s = an(Le, void 0), { updateModelValue: r, getFieldID: d, clearValidationErrors: u, value: h } = xe.useAbstractFields({
|
|
3112
3112
|
model: o.model,
|
|
3113
3113
|
schema: i.schema,
|
|
3114
3114
|
formOptions: i.formOptions,
|
|
@@ -3119,9 +3119,11 @@ const xe = {
|
|
|
3119
3119
|
t({
|
|
3120
3120
|
clearValidationErrors: u
|
|
3121
3121
|
});
|
|
3122
|
-
const
|
|
3123
|
-
var O;
|
|
3122
|
+
const p = B(() => {
|
|
3123
|
+
var O, v;
|
|
3124
3124
|
const T = (O = i.schema) == null ? void 0 : O.inputType.toLowerCase();
|
|
3125
|
+
if (T === "number" && ((v = i.schema) == null ? void 0 : v.referenceable) === !0)
|
|
3126
|
+
return "text";
|
|
3125
3127
|
switch (T) {
|
|
3126
3128
|
case "string":
|
|
3127
3129
|
return "text";
|
|
@@ -3137,27 +3139,27 @@ const xe = {
|
|
|
3137
3139
|
}, F = (T, O) => {
|
|
3138
3140
|
var V, Z;
|
|
3139
3141
|
let v = T;
|
|
3140
|
-
const y = b[
|
|
3142
|
+
const y = b[p.value] || "", g = _t.parse(T, y);
|
|
3141
3143
|
g && ((V = i.schema) != null && V.format ? v = _t.format(g, (Z = i.schema) == null ? void 0 : Z.format) : v = g.valueOf()), r(v, O);
|
|
3142
3144
|
}, x = (T, O) => {
|
|
3143
|
-
|
|
3144
|
-
},
|
|
3145
|
+
ri(T) || (T = NaN), r(T, O);
|
|
3146
|
+
}, f = (T) => {
|
|
3145
3147
|
let O = T;
|
|
3146
|
-
switch (
|
|
3148
|
+
switch (i.schema.inputType) {
|
|
3147
3149
|
case "number":
|
|
3148
3150
|
case "range":
|
|
3149
|
-
|
|
3151
|
+
po(parseFloat(T)) && (O = parseFloat(T));
|
|
3150
3152
|
break;
|
|
3151
3153
|
}
|
|
3152
|
-
|
|
3154
|
+
h.value = O, r(O, T);
|
|
3153
3155
|
}, M = (T) => {
|
|
3154
|
-
|
|
3156
|
+
h.value = T, r(T, T);
|
|
3155
3157
|
}, I = ae(null), N = () => {
|
|
3156
3158
|
var T;
|
|
3157
3159
|
X(I.value) && ((T = I.value) == null || T.flush());
|
|
3158
3160
|
};
|
|
3159
|
-
return
|
|
3160
|
-
switch (
|
|
3161
|
+
return Zn(() => {
|
|
3162
|
+
switch (p.value) {
|
|
3161
3163
|
case "number":
|
|
3162
3164
|
case "range":
|
|
3163
3165
|
I.value = wt(
|
|
@@ -3186,8 +3188,8 @@ const xe = {
|
|
|
3186
3188
|
);
|
|
3187
3189
|
break;
|
|
3188
3190
|
}
|
|
3189
|
-
}),
|
|
3190
|
-
|
|
3191
|
+
}), Xn(() => {
|
|
3192
|
+
p.value === "checkbox" ? console.warn("The use of 'checkbox' inputType with 'input' type fields is deprecated. Use 'checkbox' type instead.") : p.value === "radio" ? console.warn("The use of 'radio' inputType with 'input' type fields is deprecated. Use 'radio' type instead.") : p.value === "file" && console.warn("The 'file' type in input field is deprecated. Use 'file' field instead.");
|
|
3191
3193
|
}), (T, O) => {
|
|
3192
3194
|
const v = D("KInput");
|
|
3193
3195
|
return c(), _("div", hm, [
|
|
@@ -3196,34 +3198,34 @@ const xe = {
|
|
|
3196
3198
|
autocomplete: e.schema.autocomplete,
|
|
3197
3199
|
class: e.schema.fieldClasses,
|
|
3198
3200
|
disabled: e.disabled || void 0,
|
|
3199
|
-
help: e.hint ? e.hint :
|
|
3201
|
+
help: e.hint ? e.hint : p.value === "color" || p.value === "range" ? A(h) : void 0,
|
|
3200
3202
|
max: e.schema.max,
|
|
3201
3203
|
maxlength: e.schema.maxlength,
|
|
3202
3204
|
min: e.schema.min,
|
|
3203
3205
|
minlength: e.schema.minlength,
|
|
3204
|
-
"model-value": A(
|
|
3206
|
+
"model-value": A(h),
|
|
3205
3207
|
name: e.schema.inputName,
|
|
3206
3208
|
pattern: e.schema.pattern,
|
|
3207
3209
|
placeholder: e.schema.placeholder,
|
|
3208
3210
|
readonly: e.schema.readonly,
|
|
3209
3211
|
required: e.schema.required,
|
|
3210
|
-
"show-password-mask-toggle":
|
|
3211
|
-
type:
|
|
3212
|
+
"show-password-mask-toggle": p.value === "password",
|
|
3213
|
+
type: p.value,
|
|
3212
3214
|
width: e.schema.width,
|
|
3213
3215
|
onBlur: N,
|
|
3214
|
-
"onUpdate:modelValue":
|
|
3216
|
+
"onUpdate:modelValue": f
|
|
3215
3217
|
}), null, 16, ["id", "autocomplete", "class", "disabled", "help", "max", "maxlength", "min", "minlength", "model-value", "name", "pattern", "placeholder", "readonly", "required", "show-password-mask-toggle", "type", "width"]),
|
|
3216
3218
|
(c(), U(me(A(s)), {
|
|
3217
3219
|
schema: e.schema,
|
|
3218
3220
|
update: M,
|
|
3219
|
-
value: A(
|
|
3221
|
+
value: A(h)
|
|
3220
3222
|
}, null, 8, ["schema", "value"]))
|
|
3221
3223
|
]);
|
|
3222
3224
|
};
|
|
3223
3225
|
}
|
|
3224
|
-
}),
|
|
3226
|
+
}), So = /* @__PURE__ */ W(pm, [["__scopeId", "data-v-71ac4198"]]), gm = {
|
|
3225
3227
|
name: "FieldMetric",
|
|
3226
|
-
components: { AddIcon:
|
|
3228
|
+
components: { AddIcon: Jn, TrashIcon: zt },
|
|
3227
3229
|
mixins: [$e],
|
|
3228
3230
|
emits: ["remove-item"],
|
|
3229
3231
|
data() {
|
|
@@ -3247,7 +3249,7 @@ function vm(e, t, n, i, a, o) {
|
|
|
3247
3249
|
ce(L(e.model.name ? e.model.name : "New Item") + " ", 1),
|
|
3248
3250
|
C(s, { class: "metric-add-icon" })
|
|
3249
3251
|
]),
|
|
3250
|
-
C(
|
|
3252
|
+
C($o, { name: "slide-fade" }, {
|
|
3251
3253
|
default: E(() => [
|
|
3252
3254
|
a.contentVisible ? (c(), _("div", ym, [
|
|
3253
3255
|
Oe(e.$slots, "default"),
|
|
@@ -3267,7 +3269,7 @@ function vm(e, t, n, i, a, o) {
|
|
|
3267
3269
|
})
|
|
3268
3270
|
], 2);
|
|
3269
3271
|
}
|
|
3270
|
-
const
|
|
3272
|
+
const wo = /* @__PURE__ */ W(gm, [["render", vm]]), bm = { class: "field-object-container" }, _m = { key: 1 }, Tm = ["id"], Sm = { key: 0 }, wm = ["onUpdate:modelValue"], Em = { key: 1 }, Mm = ["onUpdate:modelValue"], Am = { key: 2 }, Im = ["onUpdate:modelValue"], Cm = ["onClick"], Om = {
|
|
3271
3273
|
mixins: [$e],
|
|
3272
3274
|
expose: ["validate", "clearValidationErrors", "schema"],
|
|
3273
3275
|
emits: ["modelUpdated"],
|
|
@@ -3337,7 +3339,7 @@ const So = /* @__PURE__ */ W(gm, [["render", vm]]), bm = { class: "field-object-
|
|
|
3337
3339
|
"onUpdate:modelValue": (s) => t.value[o] = s,
|
|
3338
3340
|
type: "checkbox"
|
|
3339
3341
|
}, null, 8, Mm), [
|
|
3340
|
-
[
|
|
3342
|
+
[Vo, t.value[o]]
|
|
3341
3343
|
])
|
|
3342
3344
|
])) : K("", !0),
|
|
3343
3345
|
t.keyTypes[o] === "number" ? (c(), _("td", Am, [
|
|
@@ -3364,7 +3366,7 @@ const So = /* @__PURE__ */ W(gm, [["render", vm]]), bm = { class: "field-object-
|
|
|
3364
3366
|
m("option", { value: "number" }, " Number ", -1),
|
|
3365
3367
|
m("option", { value: "boolean" }, " Boolean ", -1)
|
|
3366
3368
|
])], 512), [
|
|
3367
|
-
[
|
|
3369
|
+
[jo, t.newKeyType]
|
|
3368
3370
|
]),
|
|
3369
3371
|
we(m("input", {
|
|
3370
3372
|
"onUpdate:modelValue": n[1] || (n[1] = (a) => t.newKeyName = a),
|
|
@@ -3383,7 +3385,7 @@ const So = /* @__PURE__ */ W(gm, [["render", vm]]), bm = { class: "field-object-
|
|
|
3383
3385
|
]);
|
|
3384
3386
|
};
|
|
3385
3387
|
}
|
|
3386
|
-
}),
|
|
3388
|
+
}), Eo = /* @__PURE__ */ W(Fm, [["__scopeId", "data-v-4ace4106"]]), km = ["id"], Rm = ["data-testid"], Um = { class: "item-wrapper" }, Lm = { class: "index-wrapper" }, Nm = { key: 0 }, Pm = { key: 1 }, Dm = ["onUpdate:modelValue", "placeholder", "type", "onInput"], $m = {
|
|
3387
3389
|
key: 0,
|
|
3388
3390
|
class: "hint"
|
|
3389
3391
|
}, Vm = { class: "input-item" }, jm = ["placeholder"], xm = {
|
|
@@ -3465,7 +3467,7 @@ const So = /* @__PURE__ */ W(gm, [["render", vm]]), bm = { class: "field-object-
|
|
|
3465
3467
|
const o = a.indexOf(n + "-");
|
|
3466
3468
|
if (o > -1 && Array.isArray(t))
|
|
3467
3469
|
if (t.length > 0) {
|
|
3468
|
-
const r = a.split("-").filter((u) => t.find((
|
|
3470
|
+
const r = a.split("-").filter((u) => t.find((h) => h.model === u)), d = a.split(`-${r}`)[0].split(`${n}-`)[1];
|
|
3469
3471
|
r.length ? i[d] = {
|
|
3470
3472
|
...i[d],
|
|
3471
3473
|
[r]: e[a]
|
|
@@ -3579,7 +3581,7 @@ const So = /* @__PURE__ */ W(gm, [["render", vm]]), bm = { class: "field-object-
|
|
|
3579
3581
|
], 10, km);
|
|
3580
3582
|
};
|
|
3581
3583
|
}
|
|
3582
|
-
}),
|
|
3584
|
+
}), Mo = /* @__PURE__ */ W(Km, [["__scopeId", "data-v-41b00aff"]]), Bm = { class: "radio-selection-group" }, zm = /* @__PURE__ */ he({
|
|
3583
3585
|
__name: "FieldRadio",
|
|
3584
3586
|
props: {
|
|
3585
3587
|
disabled: {
|
|
@@ -3623,25 +3625,25 @@ const So = /* @__PURE__ */ W(gm, [["render", vm]]), bm = { class: "field-object-
|
|
|
3623
3625
|
model: o.model,
|
|
3624
3626
|
schema: i.schema,
|
|
3625
3627
|
formOptions: i.formOptions,
|
|
3626
|
-
emitModelUpdated: (
|
|
3627
|
-
a("modelUpdated",
|
|
3628
|
+
emitModelUpdated: (h) => {
|
|
3629
|
+
a("modelUpdated", h.value, h.model);
|
|
3628
3630
|
}
|
|
3629
3631
|
});
|
|
3630
3632
|
t({
|
|
3631
3633
|
clearValidationErrors: d
|
|
3632
3634
|
});
|
|
3633
|
-
const u = (
|
|
3634
|
-
let
|
|
3635
|
-
typeof
|
|
3635
|
+
const u = (h) => {
|
|
3636
|
+
let p = h;
|
|
3637
|
+
typeof h == "string" && (p = h.split(","), i.schema.array || (p = p.toString())), s(p, h);
|
|
3636
3638
|
};
|
|
3637
|
-
return (
|
|
3639
|
+
return (h, p) => {
|
|
3638
3640
|
const b = D("KRadio");
|
|
3639
3641
|
return c(), _("div", Bm, [
|
|
3640
3642
|
(c(!0), _(Y, null, oe(e.schema.values, (F, x) => (c(), U(b, {
|
|
3641
3643
|
id: e.schema.name + "-" + x,
|
|
3642
3644
|
key: F.value,
|
|
3643
3645
|
modelValue: A(r),
|
|
3644
|
-
"onUpdate:modelValue":
|
|
3646
|
+
"onUpdate:modelValue": p[0] || (p[0] = (f) => Et(r) ? r.value = f : null),
|
|
3645
3647
|
label: F.name,
|
|
3646
3648
|
"label-attributes": { info: e.schema.help },
|
|
3647
3649
|
name: e.schema.name,
|
|
@@ -3652,7 +3654,7 @@ const So = /* @__PURE__ */ W(gm, [["render", vm]]), bm = { class: "field-object-
|
|
|
3652
3654
|
]);
|
|
3653
3655
|
};
|
|
3654
3656
|
}
|
|
3655
|
-
}),
|
|
3657
|
+
}), Ao = /* @__PURE__ */ W(zm, [["__scopeId", "data-v-42b9c6ac"]]), Io = /* @__PURE__ */ he({
|
|
3656
3658
|
__name: "FieldSelect",
|
|
3657
3659
|
props: {
|
|
3658
3660
|
disabled: {
|
|
@@ -3692,24 +3694,24 @@ const So = /* @__PURE__ */ W(gm, [["render", vm]]), bm = { class: "field-object-
|
|
|
3692
3694
|
},
|
|
3693
3695
|
emits: ["modelUpdated"],
|
|
3694
3696
|
setup(e, { expose: t, emit: n }) {
|
|
3695
|
-
const i = e, a = n, o = B(() => i.schema.selectOptions || {}), s = (
|
|
3697
|
+
const i = e, a = n, o = B(() => i.schema.selectOptions || {}), s = (f) => de(f) ? null : f, r = ut(i), { getFieldID: d, clearValidationErrors: u, value: h } = xe.useAbstractFields({
|
|
3696
3698
|
model: r.model,
|
|
3697
3699
|
schema: i.schema,
|
|
3698
3700
|
formOptions: i.formOptions,
|
|
3699
3701
|
formatValueToField: s,
|
|
3700
|
-
emitModelUpdated: (
|
|
3701
|
-
a("modelUpdated",
|
|
3702
|
+
emitModelUpdated: (f) => {
|
|
3703
|
+
a("modelUpdated", f.value, f.model);
|
|
3702
3704
|
}
|
|
3703
3705
|
});
|
|
3704
3706
|
t({
|
|
3705
3707
|
clearValidationErrors: u
|
|
3706
3708
|
});
|
|
3707
|
-
const
|
|
3708
|
-
const
|
|
3709
|
-
return b(typeof
|
|
3710
|
-
}), b = (
|
|
3709
|
+
const p = B(() => {
|
|
3710
|
+
const f = i.schema.values;
|
|
3711
|
+
return b(typeof f == "function" ? f.apply(this, [i.model, i.schema]) : f);
|
|
3712
|
+
}), b = (f) => {
|
|
3711
3713
|
const M = [];
|
|
3712
|
-
return
|
|
3714
|
+
return f.forEach((I) => {
|
|
3713
3715
|
M.push({
|
|
3714
3716
|
label: x(I),
|
|
3715
3717
|
value: F(I),
|
|
@@ -3717,35 +3719,35 @@ const So = /* @__PURE__ */ W(gm, [["render", vm]]), bm = { class: "field-object-
|
|
|
3717
3719
|
group: typeof I == "object" && String(I.group || "").toUpperCase() || void 0
|
|
3718
3720
|
});
|
|
3719
3721
|
}), M;
|
|
3720
|
-
}, F = (
|
|
3721
|
-
if (Fe(
|
|
3722
|
+
}, F = (f) => {
|
|
3723
|
+
if (Fe(f)) {
|
|
3722
3724
|
if (o.value && typeof o.value.value < "u")
|
|
3723
|
-
return
|
|
3724
|
-
if (typeof
|
|
3725
|
-
return String(
|
|
3725
|
+
return f[o.value.value];
|
|
3726
|
+
if (typeof f.id < "u")
|
|
3727
|
+
return String(f.id);
|
|
3726
3728
|
throw new Error("`id` is not defined. If you want to use another key name, add a `value` property under `selectOptions` in the schema. https://icebob.gitbooks.io/vueformgenerator/content/fields/select.html#select-field-with-object-items");
|
|
3727
3729
|
} else
|
|
3728
|
-
return
|
|
3729
|
-
}, x = (
|
|
3730
|
-
if (Fe(
|
|
3730
|
+
return f;
|
|
3731
|
+
}, x = (f) => {
|
|
3732
|
+
if (Fe(f)) {
|
|
3731
3733
|
if (o.value && typeof o.value.name < "u")
|
|
3732
|
-
return
|
|
3733
|
-
if (typeof
|
|
3734
|
-
return String(
|
|
3734
|
+
return f[o.value.name];
|
|
3735
|
+
if (typeof f.name < "u")
|
|
3736
|
+
return String(f.name);
|
|
3735
3737
|
throw new Error("`name` is not defined. If you want to use another key name, add a `name` property under `selectOptions` in the schema. https://icebob.gitbooks.io/vueformgenerator/content/fields/select.html#select-field-with-object-items");
|
|
3736
3738
|
} else
|
|
3737
|
-
return String(
|
|
3739
|
+
return String(f);
|
|
3738
3740
|
};
|
|
3739
|
-
return (
|
|
3741
|
+
return (f, M) => {
|
|
3740
3742
|
const I = D("KSelect");
|
|
3741
3743
|
return c(), U(I, {
|
|
3742
3744
|
id: A(d)(e.schema),
|
|
3743
|
-
modelValue: A(
|
|
3744
|
-
"onUpdate:modelValue": M[0] || (M[0] = (N) => Et(
|
|
3745
|
+
modelValue: A(h),
|
|
3746
|
+
"onUpdate:modelValue": M[0] || (M[0] = (N) => Et(h) ? h.value = N : null),
|
|
3745
3747
|
class: ee(e.schema.fieldClasses),
|
|
3746
3748
|
clearable: !e.schema.required,
|
|
3747
3749
|
disabled: e.disabled || void 0,
|
|
3748
|
-
items:
|
|
3750
|
+
items: p.value,
|
|
3749
3751
|
"kpop-attributes": { "data-testid": `${A(d)(e.schema)}-items` },
|
|
3750
3752
|
"label-attributes": { info: e.schema.help },
|
|
3751
3753
|
name: e.schema.inputName,
|
|
@@ -3758,17 +3760,17 @@ const So = /* @__PURE__ */ W(gm, [["render", vm]]), bm = { class: "field-object-
|
|
|
3758
3760
|
}), Hm = {
|
|
3759
3761
|
name: "FieldArray",
|
|
3760
3762
|
components: {
|
|
3761
|
-
FieldArrayItem:
|
|
3762
|
-
FieldArrayMultiItem:
|
|
3763
|
-
FieldSelect:
|
|
3764
|
-
FieldMetric:
|
|
3765
|
-
FieldObject:
|
|
3766
|
-
FieldObjectAdvanced:
|
|
3767
|
-
FieldAutoSuggest:
|
|
3768
|
-
FieldAutoSuggestLegacy:
|
|
3769
|
-
FieldRadio:
|
|
3770
|
-
FieldArrayCardContainer:
|
|
3771
|
-
FieldInput:
|
|
3763
|
+
FieldArrayItem: yo,
|
|
3764
|
+
FieldArrayMultiItem: vo,
|
|
3765
|
+
FieldSelect: Io,
|
|
3766
|
+
FieldMetric: wo,
|
|
3767
|
+
FieldObject: Eo,
|
|
3768
|
+
FieldObjectAdvanced: Mo,
|
|
3769
|
+
FieldAutoSuggest: _o,
|
|
3770
|
+
FieldAutoSuggestLegacy: To,
|
|
3771
|
+
FieldRadio: Ao,
|
|
3772
|
+
FieldArrayCardContainer: go,
|
|
3773
|
+
FieldInput: So
|
|
3772
3774
|
},
|
|
3773
3775
|
mixins: [$e],
|
|
3774
3776
|
inject: {
|
|
@@ -3818,7 +3820,7 @@ const So = /* @__PURE__ */ W(gm, [["render", vm]]), bm = { class: "field-object-
|
|
|
3818
3820
|
handleInput(e, t) {
|
|
3819
3821
|
var i, a;
|
|
3820
3822
|
let n = e;
|
|
3821
|
-
((a = (i = this.schema) == null ? void 0 : i.inputAttributes) == null ? void 0 : a.type) === "number" &&
|
|
3823
|
+
((a = (i = this.schema) == null ? void 0 : i.inputAttributes) == null ? void 0 : a.type) === "number" && ri(parseFloat(e)) && (n = parseFloat(e)), this.value = this.value.map((o, s) => s === t ? n : o);
|
|
3822
3824
|
}
|
|
3823
3825
|
}
|
|
3824
3826
|
}, Ym = ["id"], Gm = { key: 1 }, Wm = ["onUpdate:modelValue", "aria-labelledby", "type"], Zm = ["onUpdate:modelValue", "aria-labelledby"];
|
|
@@ -3829,22 +3831,22 @@ function Xm(e, t, n, i, a, o) {
|
|
|
3829
3831
|
id: e.getFieldID(e.schema),
|
|
3830
3832
|
class: ee(e.schema.fieldClasses)
|
|
3831
3833
|
}, [
|
|
3832
|
-
(c(!0), _(Y, null, oe(e.value, (u,
|
|
3833
|
-
key:
|
|
3834
|
+
(c(!0), _(Y, null, oe(e.value, (u, h) => (c(), _("div", {
|
|
3835
|
+
key: h,
|
|
3834
3836
|
class: ee(e.schema.fieldItemsClasses)
|
|
3835
3837
|
}, [
|
|
3836
3838
|
e.schema.items && e.schema.itemContainerComponent ? (c(), U(me(e.schema.itemContainerComponent), {
|
|
3837
3839
|
key: 0,
|
|
3838
|
-
index:
|
|
3840
|
+
index: h,
|
|
3839
3841
|
model: u,
|
|
3840
|
-
schema: o.generateSchema(e.value, e.schema.items,
|
|
3841
|
-
onRemoveItem: (
|
|
3842
|
+
schema: o.generateSchema(e.value, e.schema.items, h),
|
|
3843
|
+
onRemoveItem: (p) => o.removeElement(h)
|
|
3842
3844
|
}, {
|
|
3843
3845
|
default: E(() => [
|
|
3844
3846
|
(c(), U(me(o.getFieldComponent(e.schema.items)), {
|
|
3845
3847
|
"form-options": e.formOptions,
|
|
3846
3848
|
model: u,
|
|
3847
|
-
schema: o.generateSchema(e.value, e.schema.items,
|
|
3849
|
+
schema: o.generateSchema(e.value, e.schema.items, h),
|
|
3848
3850
|
onModelUpdated: o.modelUpdated
|
|
3849
3851
|
}, null, 40, ["form-options", "model", "schema", "onModelUpdated"]))
|
|
3850
3852
|
]),
|
|
@@ -3853,33 +3855,33 @@ function Xm(e, t, n, i, a, o) {
|
|
|
3853
3855
|
(c(), U(me(o.getFieldComponent(e.schema.items)), {
|
|
3854
3856
|
"form-options": e.formOptions,
|
|
3855
3857
|
model: u,
|
|
3856
|
-
schema: o.generateSchema(e.value, e.schema.items,
|
|
3858
|
+
schema: o.generateSchema(e.value, e.schema.items, h),
|
|
3857
3859
|
onModelUpdated: o.modelUpdated
|
|
3858
3860
|
}, null, 40, ["form-options", "model", "schema", "onModelUpdated"]))
|
|
3859
3861
|
])) : e.schema.itemContainerComponent ? (c(), U(me(e.schema.itemContainerComponent), {
|
|
3860
3862
|
key: 2,
|
|
3861
|
-
"data-testid": `${e.getFieldID(e.schema)}-item-${
|
|
3863
|
+
"data-testid": `${e.getFieldID(e.schema)}-item-${h}`,
|
|
3862
3864
|
model: u,
|
|
3863
|
-
schema: o.generateSchema(e.value, e.schema.items,
|
|
3864
|
-
onRemoveItem: (
|
|
3865
|
+
schema: o.generateSchema(e.value, e.schema.items, h),
|
|
3866
|
+
onRemoveItem: (p) => o.removeElement(h)
|
|
3865
3867
|
}, {
|
|
3866
3868
|
after: E(() => [
|
|
3867
3869
|
(c(), U(me(o.autofillSlot), {
|
|
3868
3870
|
schema: e.schema,
|
|
3869
|
-
update: (
|
|
3870
|
-
value: e.value[
|
|
3871
|
+
update: (p) => e.value[h] = p,
|
|
3872
|
+
value: e.value[h]
|
|
3871
3873
|
}, null, 8, ["schema", "update", "value"]))
|
|
3872
3874
|
]),
|
|
3873
3875
|
default: E(() => {
|
|
3874
|
-
var
|
|
3876
|
+
var p;
|
|
3875
3877
|
return [
|
|
3876
3878
|
e.schema.inputAttributes && e.schema.inputAttributes.type === "textarea" ? (c(), U(s, et({
|
|
3877
3879
|
key: 0,
|
|
3878
3880
|
ref_for: !0
|
|
3879
3881
|
}, e.schema.inputAttributes, {
|
|
3880
3882
|
id: e.getFieldID(e.schema),
|
|
3881
|
-
modelValue: e.value[
|
|
3882
|
-
"onUpdate:modelValue": (b) => e.value[
|
|
3883
|
+
modelValue: e.value[h],
|
|
3884
|
+
"onUpdate:modelValue": (b) => e.value[h] = b,
|
|
3883
3885
|
"aria-labelledby": e.getLabelId(e.schema),
|
|
3884
3886
|
autosize: "",
|
|
3885
3887
|
"character-limit": e.schema.inputAttributes.max,
|
|
@@ -3896,35 +3898,35 @@ function Xm(e, t, n, i, a, o) {
|
|
|
3896
3898
|
key: 1,
|
|
3897
3899
|
"aria-labelledby": e.getLabelId(e.schema)
|
|
3898
3900
|
}, { ref_for: !0 }, e.schema.inputAttributes, {
|
|
3899
|
-
"model-value": e.value[
|
|
3901
|
+
"model-value": e.value[h],
|
|
3900
3902
|
type: e.schema.inputAttributes && e.schema.inputAttributes.type || "text",
|
|
3901
3903
|
onInput: (b) => {
|
|
3902
|
-
o.handleInput(b,
|
|
3904
|
+
o.handleInput(b, h);
|
|
3903
3905
|
}
|
|
3904
3906
|
}), null, 16, ["aria-labelledby", "model-value", "type", "onInput"])) : we((c(), _("input", et({
|
|
3905
3907
|
key: 2,
|
|
3906
|
-
"onUpdate:modelValue": (b) => e.value[
|
|
3908
|
+
"onUpdate:modelValue": (b) => e.value[h] = b,
|
|
3907
3909
|
"aria-labelledby": e.getLabelId(e.schema)
|
|
3908
3910
|
}, { ref_for: !0 }, e.schema.inputAttributes, {
|
|
3909
|
-
type: ((
|
|
3911
|
+
type: ((p = e.schema.inputAttributes) == null ? void 0 : p.type) || "text"
|
|
3910
3912
|
}), null, 16, Wm)), [
|
|
3911
|
-
[Ia, e.value[
|
|
3913
|
+
[Ia, e.value[h]]
|
|
3912
3914
|
])
|
|
3913
3915
|
];
|
|
3914
3916
|
}),
|
|
3915
3917
|
_: 2
|
|
3916
3918
|
}, 1064, ["data-testid", "model", "schema", "onRemoveItem"])) : (c(), _(Y, { key: 3 }, [
|
|
3917
3919
|
we(m("input", et({ ref_for: !0 }, e.schema.inputAttributes, {
|
|
3918
|
-
"onUpdate:modelValue": (
|
|
3920
|
+
"onUpdate:modelValue": (p) => e.value[h] = p,
|
|
3919
3921
|
"aria-labelledby": e.getLabelId(e.schema),
|
|
3920
3922
|
type: "text"
|
|
3921
3923
|
}), null, 16, Zm), [
|
|
3922
|
-
[$t, e.value[
|
|
3924
|
+
[$t, e.value[h]]
|
|
3923
3925
|
]),
|
|
3924
3926
|
(c(), U(me(o.autofillSlot), {
|
|
3925
3927
|
schema: e.schema,
|
|
3926
|
-
update: (
|
|
3927
|
-
value: e.value[
|
|
3928
|
+
update: (p) => e.value[h] = p,
|
|
3929
|
+
value: e.value[h]
|
|
3928
3930
|
}, null, 8, ["schema", "update", "value"]))
|
|
3929
3931
|
], 64))
|
|
3930
3932
|
], 2))), 128)),
|
|
@@ -3992,13 +3994,13 @@ const Jm = /* @__PURE__ */ W(Hm, [["render", Xm], ["__scopeId", "data-v-d6740b2b
|
|
|
3992
3994
|
});
|
|
3993
3995
|
return t({
|
|
3994
3996
|
clearValidationErrors: d
|
|
3995
|
-
}), (u,
|
|
3996
|
-
const
|
|
3997
|
+
}), (u, h) => {
|
|
3998
|
+
const p = D("KCheckbox");
|
|
3997
3999
|
return c(), _("div", Qm, [
|
|
3998
|
-
C(
|
|
4000
|
+
C(p, et(u.$attrs, {
|
|
3999
4001
|
id: A(s)(e.schema),
|
|
4000
4002
|
modelValue: A(r),
|
|
4001
|
-
"onUpdate:modelValue":
|
|
4003
|
+
"onUpdate:modelValue": h[0] || (h[0] = (b) => Et(r) ? r.value = b : null),
|
|
4002
4004
|
autocomplete: e.schema.autocomplete,
|
|
4003
4005
|
class: e.schema.fieldClasses,
|
|
4004
4006
|
disabled: e.disabled || void 0,
|
|
@@ -4199,13 +4201,13 @@ function bf(e, t, n, i, a, o) {
|
|
|
4199
4201
|
placeholder: e.schema.keyInputPlaceholder ?? "Key",
|
|
4200
4202
|
type: "text",
|
|
4201
4203
|
value: d.key,
|
|
4202
|
-
onInput: (
|
|
4203
|
-
o.onInput(
|
|
4204
|
+
onInput: (h) => {
|
|
4205
|
+
o.onInput(h, u, "key");
|
|
4204
4206
|
}
|
|
4205
4207
|
}, null, 40, gf),
|
|
4206
4208
|
(c(), U(me(o.autofillSlot), {
|
|
4207
4209
|
schema: e.schema,
|
|
4208
|
-
update: (
|
|
4210
|
+
update: (h) => o.onInput({ target: { value: h } }, u, "key"),
|
|
4209
4211
|
value: d.key
|
|
4210
4212
|
}, null, 8, ["schema", "update", "value"]))
|
|
4211
4213
|
]),
|
|
@@ -4216,13 +4218,13 @@ function bf(e, t, n, i, a, o) {
|
|
|
4216
4218
|
placeholder: e.schema.valueInputPlaceholder ?? "Value",
|
|
4217
4219
|
type: "text",
|
|
4218
4220
|
value: d.value,
|
|
4219
|
-
onInput: (
|
|
4220
|
-
o.onInput(
|
|
4221
|
+
onInput: (h) => {
|
|
4222
|
+
o.onInput(h, u, "value");
|
|
4221
4223
|
}
|
|
4222
4224
|
}, null, 40, vf),
|
|
4223
4225
|
(c(), U(me(o.autofillSlot), {
|
|
4224
4226
|
schema: e.schema,
|
|
4225
|
-
update: (
|
|
4227
|
+
update: (h) => o.onInput({ target: { value: h } }, u, "value"),
|
|
4226
4228
|
value: d.value
|
|
4227
4229
|
}, null, 8, ["schema", "update", "value"]))
|
|
4228
4230
|
]),
|
|
@@ -4341,22 +4343,22 @@ const _f = /* @__PURE__ */ W(ff, [["render", bf], ["__scopeId", "data-v-9a9650ac
|
|
|
4341
4343
|
},
|
|
4342
4344
|
emits: ["modelUpdated"],
|
|
4343
4345
|
setup(e, { expose: t, emit: n }) {
|
|
4344
|
-
const i = e, a = n, o =
|
|
4346
|
+
const i = e, a = n, o = xo(i, "model"), { getLabelId: s, getFieldID: r, clearValidationErrors: d, value: u } = xe.useAbstractFields({
|
|
4345
4347
|
model: o,
|
|
4346
4348
|
schema: i.schema,
|
|
4347
4349
|
formOptions: i.formOptions,
|
|
4348
|
-
emitModelUpdated: (
|
|
4349
|
-
a("modelUpdated",
|
|
4350
|
+
emitModelUpdated: (p) => {
|
|
4351
|
+
a("modelUpdated", p.value, p.model);
|
|
4350
4352
|
}
|
|
4351
4353
|
});
|
|
4352
4354
|
t({
|
|
4353
4355
|
clearValidationErrors: d
|
|
4354
4356
|
});
|
|
4355
|
-
const
|
|
4356
|
-
var
|
|
4357
|
-
return i.schema.values ? i.schema.values : (b = (
|
|
4357
|
+
const h = B(() => {
|
|
4358
|
+
var p, b;
|
|
4359
|
+
return i.schema.values ? i.schema.values : (b = (p = i.schema.elements) == null ? void 0 : p.one_of) != null && b.length ? i.schema.elements.one_of.map((F) => ({ label: String(F), value: String(F) })) : [];
|
|
4358
4360
|
});
|
|
4359
|
-
return (
|
|
4361
|
+
return (p, b) => {
|
|
4360
4362
|
const F = D("KMultiselect");
|
|
4361
4363
|
return c(), U(F, {
|
|
4362
4364
|
id: A(r)(e.schema),
|
|
@@ -4366,7 +4368,7 @@ const _f = /* @__PURE__ */ W(ff, [["render", bf], ["__scopeId", "data-v-9a9650ac
|
|
|
4366
4368
|
class: ee(e.schema.fieldClasses),
|
|
4367
4369
|
"data-testid": "field-multiselect",
|
|
4368
4370
|
disabled: e.disabled || void 0,
|
|
4369
|
-
items:
|
|
4371
|
+
items: h.value,
|
|
4370
4372
|
"kpop-attributes": { "data-testid": `${A(r)(e.schema)}-items` },
|
|
4371
4373
|
"label-attributes": { info: e.schema.help },
|
|
4372
4374
|
name: e.schema.inputName,
|
|
@@ -4450,7 +4452,7 @@ const _f = /* @__PURE__ */ W(ff, [["render", bf], ["__scopeId", "data-v-9a9650ac
|
|
|
4450
4452
|
type: "radio",
|
|
4451
4453
|
value: o
|
|
4452
4454
|
}, null, 8, If), [
|
|
4453
|
-
[
|
|
4455
|
+
[qo, n.checkedGroup]
|
|
4454
4456
|
]),
|
|
4455
4457
|
ce(" " + L(a.label) + " ", 1),
|
|
4456
4458
|
m("div", Cf, L(a.description), 1)
|
|
@@ -4475,7 +4477,7 @@ const _f = /* @__PURE__ */ W(ff, [["render", bf], ["__scopeId", "data-v-9a9650ac
|
|
|
4475
4477
|
}, null, 8, ["model", "schema", "onModelUpdated"])
|
|
4476
4478
|
])
|
|
4477
4479
|
], 512)), [
|
|
4478
|
-
[
|
|
4480
|
+
[Ko, a.fields && n.checkedGroup === o]
|
|
4479
4481
|
]) : K("", !0)
|
|
4480
4482
|
]))), 128))
|
|
4481
4483
|
]));
|
|
@@ -4520,7 +4522,7 @@ const _f = /* @__PURE__ */ W(ff, [["render", bf], ["__scopeId", "data-v-9a9650ac
|
|
|
4520
4522
|
},
|
|
4521
4523
|
emits: ["modelUpdated"],
|
|
4522
4524
|
setup(e, { expose: t, emit: n }) {
|
|
4523
|
-
const i = e, a = n, { t: o } = ke("en-us", Re), s = (b) => b != null && i.schema.valueOn ? b === i.schema.valueOn : b, r = (b) => b != null && i.schema.valueOn ? b ? i.schema.valueOn : i.schema.valueOff : b, d = ut(i), { getFieldID: u, value:
|
|
4525
|
+
const i = e, a = n, { t: o } = ke("en-us", Re), s = (b) => b != null && i.schema.valueOn ? b === i.schema.valueOn : b, r = (b) => b != null && i.schema.valueOn ? b ? i.schema.valueOn : i.schema.valueOff : b, d = ut(i), { getFieldID: u, value: h, clearValidationErrors: p } = xe.useAbstractFields({
|
|
4524
4526
|
model: d.model,
|
|
4525
4527
|
schema: i.schema,
|
|
4526
4528
|
formOptions: i.formOptions,
|
|
@@ -4531,18 +4533,18 @@ const _f = /* @__PURE__ */ W(ff, [["render", bf], ["__scopeId", "data-v-9a9650ac
|
|
|
4531
4533
|
}
|
|
4532
4534
|
});
|
|
4533
4535
|
return t({
|
|
4534
|
-
clearValidationErrors:
|
|
4536
|
+
clearValidationErrors: p
|
|
4535
4537
|
}), (b, F) => {
|
|
4536
4538
|
const x = D("KInputSwitch");
|
|
4537
4539
|
return c(), _("div", Lf, [
|
|
4538
4540
|
C(x, {
|
|
4539
4541
|
id: A(u)(e.schema),
|
|
4540
|
-
modelValue: A(
|
|
4541
|
-
"onUpdate:modelValue": F[0] || (F[0] = (
|
|
4542
|
+
modelValue: A(h),
|
|
4543
|
+
"onUpdate:modelValue": F[0] || (F[0] = (f) => Et(h) ? h.value = f : null),
|
|
4542
4544
|
autocomplete: e.schema.autocomplete,
|
|
4543
4545
|
class: ee(e.schema.fieldClasses),
|
|
4544
4546
|
disabled: e.disabled || void 0,
|
|
4545
|
-
label: A(
|
|
4547
|
+
label: A(h) ? e.schema.textOn || A(o)("vfg.labels.on") : e.schema.textOff || A(o)("vfg.labels.off"),
|
|
4546
4548
|
"label-attributes": { info: e.schema.help },
|
|
4547
4549
|
name: e.schema.inputName,
|
|
4548
4550
|
required: e.schema.required || void 0
|
|
@@ -4590,7 +4592,7 @@ const _f = /* @__PURE__ */ W(ff, [["render", bf], ["__scopeId", "data-v-9a9650ac
|
|
|
4590
4592
|
},
|
|
4591
4593
|
emits: ["modelUpdated"],
|
|
4592
4594
|
setup(e, { expose: t, emit: n }) {
|
|
4593
|
-
const i = e, a = n, o = ut(i), s = an(Le, void 0), { updateModelValue: r, getFieldID: d, clearValidationErrors: u, value:
|
|
4595
|
+
const i = e, a = n, o = ut(i), s = an(Le, void 0), { updateModelValue: r, getFieldID: d, clearValidationErrors: u, value: h } = xe.useAbstractFields({
|
|
4594
4596
|
model: o.model,
|
|
4595
4597
|
schema: i.schema,
|
|
4596
4598
|
formOptions: i.formOptions,
|
|
@@ -4601,16 +4603,16 @@ const _f = /* @__PURE__ */ W(ff, [["render", bf], ["__scopeId", "data-v-9a9650ac
|
|
|
4601
4603
|
t({
|
|
4602
4604
|
clearValidationErrors: u
|
|
4603
4605
|
});
|
|
4604
|
-
const
|
|
4605
|
-
|
|
4606
|
+
const p = (b) => {
|
|
4607
|
+
h.value = b, r(b, b);
|
|
4606
4608
|
};
|
|
4607
4609
|
return (b, F) => {
|
|
4608
4610
|
const x = D("KTextArea");
|
|
4609
4611
|
return c(), _("div", Pf, [
|
|
4610
4612
|
C(x, et(b.$attrs, {
|
|
4611
4613
|
id: A(d)(e.schema),
|
|
4612
|
-
modelValue: A(
|
|
4613
|
-
"onUpdate:modelValue": F[0] || (F[0] = (
|
|
4614
|
+
modelValue: A(h),
|
|
4615
|
+
"onUpdate:modelValue": F[0] || (F[0] = (f) => Et(h) ? h.value = f : null),
|
|
4614
4616
|
autosize: "",
|
|
4615
4617
|
"character-limit": e.schema.max ?? !1,
|
|
4616
4618
|
class: e.schema.fieldClasses,
|
|
@@ -4626,8 +4628,8 @@ const _f = /* @__PURE__ */ W(ff, [["render", bf], ["__scopeId", "data-v-9a9650ac
|
|
|
4626
4628
|
}), null, 16, ["id", "modelValue", "character-limit", "class", "disabled", "help", "minlength", "name", "placeholder", "readonly", "required", "rows"]),
|
|
4627
4629
|
(c(), U(me(A(s)), {
|
|
4628
4630
|
schema: e.schema,
|
|
4629
|
-
update:
|
|
4630
|
-
value: A(
|
|
4631
|
+
update: p,
|
|
4632
|
+
value: A(h)
|
|
4631
4633
|
}, null, 8, ["schema", "value"]))
|
|
4632
4634
|
]);
|
|
4633
4635
|
};
|
|
@@ -4636,22 +4638,22 @@ const _f = /* @__PURE__ */ W(ff, [["render", bf], ["__scopeId", "data-v-9a9650ac
|
|
|
4636
4638
|
__proto__: null,
|
|
4637
4639
|
FieldAdvanced: Oc,
|
|
4638
4640
|
FieldArray: Jm,
|
|
4639
|
-
FieldArrayCardContainer:
|
|
4640
|
-
FieldArrayItem:
|
|
4641
|
-
FieldArrayMultiItem:
|
|
4642
|
-
FieldAutoSuggest:
|
|
4643
|
-
FieldAutoSuggestLegacy:
|
|
4641
|
+
FieldArrayCardContainer: go,
|
|
4642
|
+
FieldArrayItem: yo,
|
|
4643
|
+
FieldArrayMultiItem: vo,
|
|
4644
|
+
FieldAutoSuggest: _o,
|
|
4645
|
+
FieldAutoSuggestLegacy: To,
|
|
4644
4646
|
FieldCheckbox: tf,
|
|
4645
4647
|
FieldChecklist: mf,
|
|
4646
|
-
FieldInput:
|
|
4648
|
+
FieldInput: So,
|
|
4647
4649
|
FieldKeyValuePairs: _f,
|
|
4648
4650
|
FieldLabel: Sf,
|
|
4649
|
-
FieldMetric:
|
|
4651
|
+
FieldMetric: wo,
|
|
4650
4652
|
FieldMultiselect: wf,
|
|
4651
|
-
FieldObject:
|
|
4652
|
-
FieldObjectAdvanced:
|
|
4653
|
-
FieldRadio:
|
|
4654
|
-
FieldSelect:
|
|
4653
|
+
FieldObject: Eo,
|
|
4654
|
+
FieldObjectAdvanced: Mo,
|
|
4655
|
+
FieldRadio: Ao,
|
|
4656
|
+
FieldSelect: Io,
|
|
4655
4657
|
FieldSelectionGroup: Uf,
|
|
4656
4658
|
FieldSwitch: Nf,
|
|
4657
4659
|
FieldTextArea: $f
|
|
@@ -4716,7 +4718,7 @@ const _f = /* @__PURE__ */ W(ff, [["render", bf], ["__scopeId", "data-v-9a9650ac
|
|
|
4716
4718
|
},
|
|
4717
4719
|
methods: {
|
|
4718
4720
|
sanitize(e) {
|
|
4719
|
-
return
|
|
4721
|
+
return Ol.sanitize(e);
|
|
4720
4722
|
},
|
|
4721
4723
|
// Should field type have a label?
|
|
4722
4724
|
fieldTypeHasLabel(e) {
|
|
@@ -4733,7 +4735,7 @@ const _f = /* @__PURE__ */ W(ff, [["render", bf], ["__scopeId", "data-v-9a9650ac
|
|
|
4733
4735
|
},
|
|
4734
4736
|
getFieldID(e) {
|
|
4735
4737
|
const t = G(this.options, "fieldIdPrefix", "");
|
|
4736
|
-
return
|
|
4738
|
+
return oi(e, t);
|
|
4737
4739
|
},
|
|
4738
4740
|
getTooltipId(e) {
|
|
4739
4741
|
return `${this.getFieldID(e)}-tooltip`;
|
|
@@ -4811,7 +4813,7 @@ function Wf(e, t, n, i, a, o) {
|
|
|
4811
4813
|
placement: "top",
|
|
4812
4814
|
tooltipId: o.getTooltipId(n.field)
|
|
4813
4815
|
} : void 0
|
|
4814
|
-
},
|
|
4816
|
+
}, un({
|
|
4815
4817
|
default: E(() => [
|
|
4816
4818
|
m("div", qf, [
|
|
4817
4819
|
m("span", null, L(o.formattedLabel(n.field.label)), 1)
|
|
@@ -4857,7 +4859,7 @@ function Wf(e, t, n, i, a, o) {
|
|
|
4857
4859
|
key: u,
|
|
4858
4860
|
class: ee(d.classes),
|
|
4859
4861
|
type: o.getButtonType(d),
|
|
4860
|
-
onClick: (
|
|
4862
|
+
onClick: (h) => o.buttonClickHandler(d, n.field, h),
|
|
4861
4863
|
textContent: L(d.label)
|
|
4862
4864
|
}, null, 10, Hf))), 128))
|
|
4863
4865
|
])) : K("", !0)
|
|
@@ -4868,14 +4870,14 @@ function Wf(e, t, n, i, a, o) {
|
|
|
4868
4870
|
])) : K("", !0)
|
|
4869
4871
|
], 2);
|
|
4870
4872
|
}
|
|
4871
|
-
const
|
|
4872
|
-
var
|
|
4873
|
+
const Co = /* @__PURE__ */ W(jf, [["render", Wf], ["__scopeId", "data-v-fe02085f"]]);
|
|
4874
|
+
var dn = /* @__PURE__ */ ((e) => (e.REDIS_CE = "redis-ce", e.REDIS_EE = "redis-ee", e))(dn || {});
|
|
4873
4875
|
const Zf = (e) => {
|
|
4874
4876
|
var t, n;
|
|
4875
|
-
return e.type ===
|
|
4877
|
+
return e.type === dn.REDIS_CE ? "Host/Port" : (t = e.config.sentinel_nodes) != null && t.length ? "Sentinel" : (n = e.config.cluster_nodes) != null && n.length ? "Cluster" : "Host/Port";
|
|
4876
4878
|
}, Xf = {
|
|
4877
|
-
[
|
|
4878
|
-
[
|
|
4879
|
+
[dn.REDIS_CE]: "open source",
|
|
4880
|
+
[dn.REDIS_EE]: "enterprise"
|
|
4879
4881
|
}, Sa = (e) => Xf[e] ?? "", Jf = { class: "partial-config-card" }, Qf = { class: "config-card-row-label" }, eh = { class: "label-text" }, th = ["data-testid"], nh = ["data-testid"], ih = { key: 1 }, ah = ["data-testid"], oh = ["data-testid"], rh = /* @__PURE__ */ he({
|
|
4880
4882
|
__name: "RedisConfigCard",
|
|
4881
4883
|
props: {
|
|
@@ -4911,26 +4913,26 @@ const Zf = (e) => {
|
|
|
4911
4913
|
formatter: n,
|
|
4912
4914
|
order: 3
|
|
4913
4915
|
}
|
|
4914
|
-
}, a = e, o = (
|
|
4915
|
-
var F, x,
|
|
4916
|
+
}, a = e, o = (p) => p != null, s = (p, b) => o(b) && ["password", "sentinel_password"].includes(p) ? "password" : "text", { convertKeyToTitle: r } = Wo(), d = B(() => Object.entries(a.configFields).map(([p, b]) => {
|
|
4917
|
+
var F, x, f, M;
|
|
4916
4918
|
return {
|
|
4917
|
-
key:
|
|
4918
|
-
label: ((F = i[
|
|
4919
|
-
value: (x = i[
|
|
4920
|
-
type: ((
|
|
4921
|
-
order: ((M = i[
|
|
4919
|
+
key: p,
|
|
4920
|
+
label: ((F = i[p]) == null ? void 0 : F.label) ?? r(p),
|
|
4921
|
+
value: (x = i[p]) != null && x.formatter ? i[p].formatter(b) : b,
|
|
4922
|
+
type: ((f = i[p]) == null ? void 0 : f.type) ?? s(p, b),
|
|
4923
|
+
order: ((M = i[p]) == null ? void 0 : M.order) ?? 100
|
|
4922
4924
|
// attrs: value.attrs,
|
|
4923
4925
|
};
|
|
4924
|
-
}).sort((
|
|
4925
|
-
return (
|
|
4926
|
+
}).sort((p, b) => p.order - b.order).filter((p) => p.type !== "hidden")), u = xe.useRedisNonStandardFields(a.configFields, a.pluginRedisFields), h = B(() => d.value.concat(u));
|
|
4927
|
+
return (p, b) => {
|
|
4926
4928
|
const F = D("KCopy");
|
|
4927
4929
|
return c(), _("div", Jf, [
|
|
4928
|
-
(c(!0), _(Y, null, oe(
|
|
4930
|
+
(c(!0), _(Y, null, oe(h.value, ({ key: x, label: f, value: M, type: I }) => (c(), _("div", {
|
|
4929
4931
|
key: x,
|
|
4930
4932
|
class: "partial-config-card-row"
|
|
4931
4933
|
}, [
|
|
4932
4934
|
m("div", Qf, [
|
|
4933
|
-
m("div", eh, L(
|
|
4935
|
+
m("div", eh, L(f), 1)
|
|
4934
4936
|
]),
|
|
4935
4937
|
m("div", {
|
|
4936
4938
|
class: "config-card-row-value",
|
|
@@ -4998,7 +5000,7 @@ const Zf = (e) => {
|
|
|
4998
5000
|
},
|
|
4999
5001
|
emits: ["showNewPartialModal"],
|
|
5000
5002
|
setup(e) {
|
|
5001
|
-
const { t } = ke("en-us", Re), n = an(
|
|
5003
|
+
const { t } = ke("en-us", Re), n = an(rl), i = {
|
|
5002
5004
|
konnect: {
|
|
5003
5005
|
getOne: "/v2/control-planes/{controlPlaneId}/core-entities/partials/{id}",
|
|
5004
5006
|
getAll: "/v2/control-planes/{controlPlaneId}/core-entities/partials"
|
|
@@ -5007,22 +5009,22 @@ const Zf = (e) => {
|
|
|
5007
5009
|
getOne: "/{workspace}/partials/{id}",
|
|
5008
5010
|
getAll: "/{workspace}/partials"
|
|
5009
5011
|
}
|
|
5010
|
-
}, a = e, o = ae(null), { getMessageFromError: s } =
|
|
5012
|
+
}, a = e, o = ae(null), { getMessageFromError: s } = Zo(), r = an(ol), {
|
|
5011
5013
|
debouncedQueryChange: d,
|
|
5012
5014
|
loading: u,
|
|
5013
|
-
error:
|
|
5014
|
-
loadItems:
|
|
5015
|
+
error: h,
|
|
5016
|
+
loadItems: p,
|
|
5015
5017
|
results: b
|
|
5016
|
-
} =
|
|
5018
|
+
} = Xo(r, i[r.app].getAll, hh, {
|
|
5017
5019
|
fetchedItemsKey: "data",
|
|
5018
5020
|
searchKeys: ["id", "name"]
|
|
5019
|
-
}), F = B(() =>
|
|
5021
|
+
}), F = B(() => h.value ? s(h.value) : ""), x = (N) => {
|
|
5020
5022
|
let T = `${r.apiBaseUrl}${i[r.app].getOne}`;
|
|
5021
5023
|
return r.app === "konnect" ? T = T.replace(/{controlPlaneId}/gi, (r == null ? void 0 : r.controlPlaneId) || "") : r.app === "kongManager" && (T = T.replace(/\/{workspace}/gi, r != null && r.workspace ? `/${r.workspace}` : "")), T = T.replace(/{id}/gi, String(N)), T;
|
|
5022
|
-
},
|
|
5024
|
+
}, f = B(() => {
|
|
5023
5025
|
const N = (b.value || []).map((T) => ({ label: T.id, name: T.name, value: T.id, type: T.type, tag: Zf(T) })).filter((T) => T.type === "redis-ce" || T.type === "redis-ee");
|
|
5024
5026
|
return a.redisType !== "all" ? N.filter((T) => T.type === a.redisType) : N;
|
|
5025
|
-
}), { axiosInstance: M } =
|
|
5027
|
+
}), { axiosInstance: M } = Jo(r == null ? void 0 : r.axiosRequestConfig), I = async (N) => {
|
|
5026
5028
|
if (N) {
|
|
5027
5029
|
a.updateRedisModel(N);
|
|
5028
5030
|
try {
|
|
@@ -5036,10 +5038,10 @@ const Zf = (e) => {
|
|
|
5036
5038
|
}
|
|
5037
5039
|
}
|
|
5038
5040
|
};
|
|
5039
|
-
return
|
|
5040
|
-
N && await
|
|
5041
|
-
}),
|
|
5042
|
-
|
|
5041
|
+
return cn(() => n == null ? void 0 : n.value, async (N) => {
|
|
5042
|
+
N && await p();
|
|
5043
|
+
}), Xn(() => {
|
|
5044
|
+
p(), a.defaultRedisConfigItem && I(a.defaultRedisConfigItem);
|
|
5043
5045
|
}), (N, T) => {
|
|
5044
5046
|
const O = D("KLabel"), v = D("KBadge"), y = D("KSelect");
|
|
5045
5047
|
return c(), _(Y, null, [
|
|
@@ -5062,7 +5064,7 @@ const Zf = (e) => {
|
|
|
5062
5064
|
"data-testid": "redis-config-select-trigger",
|
|
5063
5065
|
"enable-filtering": "",
|
|
5064
5066
|
"filter-function": () => !0,
|
|
5065
|
-
items:
|
|
5067
|
+
items: f.value,
|
|
5066
5068
|
loading: A(u),
|
|
5067
5069
|
"model-value": e.defaultRedisConfigItem,
|
|
5068
5070
|
placeholder: A(t)("redis.shared_configuration.selector.placeholder"),
|
|
@@ -5098,7 +5100,7 @@ const Zf = (e) => {
|
|
|
5098
5100
|
"data-testid": "new-redis-config-area",
|
|
5099
5101
|
onClick: T[0] || (T[0] = (g) => N.$emit("showNewPartialModal"))
|
|
5100
5102
|
}, [
|
|
5101
|
-
C(A(
|
|
5103
|
+
C(A(Jn), { size: A(Vc) }, null, 8, ["size"]),
|
|
5102
5104
|
m("span", null, L(A(t)("redis.shared_configuration.create_new_configuration", { type: A(Sa)(e.redisType) })), 1)
|
|
5103
5105
|
])
|
|
5104
5106
|
]),
|
|
@@ -5171,24 +5173,24 @@ const Zf = (e) => {
|
|
|
5171
5173
|
},
|
|
5172
5174
|
emits: ["modelUpdated", "partialToggled", "showNewPartialModal", "refreshModel", "validated"],
|
|
5173
5175
|
setup(e, { emit: t }) {
|
|
5174
|
-
const n = e, i = t, { t: a } = ke("en-us", Re), o = B(() => n.field.pluginType === "custom"), s = ae(!n.isEditing), r = ae(), d = ae({}), u = ae(),
|
|
5175
|
-
i("modelUpdated", [{ id:
|
|
5176
|
-
}, b = (
|
|
5177
|
-
d.value = { ...d.value, [M]:
|
|
5176
|
+
const n = e, i = t, { t: a } = ke("en-us", Re), o = B(() => n.field.pluginType === "custom"), s = ae(!n.isEditing), r = ae(), d = ae({}), u = ae(), h = (f) => X(f.visible) ? f.visible.call(this, n.model, f, this) : de(f.visible) ? !0 : f.visible, p = async (f) => {
|
|
5177
|
+
i("modelUpdated", [{ id: f, path: n.redisPath }], "partials"), u.value = [{ id: f, path: n.redisPath }], r.value = f;
|
|
5178
|
+
}, b = (f, M) => {
|
|
5179
|
+
d.value = { ...d.value, [M]: f }, i("modelUpdated", f, M);
|
|
5178
5180
|
}, F = () => {
|
|
5179
5181
|
i("refreshModel");
|
|
5180
|
-
}, x = (
|
|
5181
|
-
i("validated",
|
|
5182
|
+
}, x = (f, M, I) => {
|
|
5183
|
+
i("validated", f, M, I);
|
|
5182
5184
|
};
|
|
5183
|
-
return
|
|
5184
|
-
|
|
5185
|
-
}),
|
|
5186
|
-
var
|
|
5187
|
-
if (n.model && (d.value = n.field.fields.reduce((N, T) => (Object.keys(n.model).includes(T.model) && (N[T.model] = n.model[T.model]), N), {})), (I = (M = (
|
|
5185
|
+
return cn(() => s.value, (f) => {
|
|
5186
|
+
f ? u.value && i("partialToggled", "redis", { partials: u.value }) : i("partialToggled", "partials", d.value);
|
|
5187
|
+
}), Xn(() => {
|
|
5188
|
+
var f, M, I;
|
|
5189
|
+
if (n.model && (d.value = n.field.fields.reduce((N, T) => (Object.keys(n.model).includes(T.model) && (N[T.model] = n.model[T.model]), N), {})), (I = (M = (f = n == null ? void 0 : n.model) == null ? void 0 : f.partials) == null ? void 0 : M[0]) != null && I.id) {
|
|
5188
5190
|
const N = n.model.partials[0].id;
|
|
5189
5191
|
s.value = !0, r.value = N;
|
|
5190
5192
|
}
|
|
5191
|
-
}), (
|
|
5193
|
+
}), (f, M) => {
|
|
5192
5194
|
const I = D("KAlert"), N = D("KBadge"), T = D("KRadio"), O = D("KCard");
|
|
5193
5195
|
return c(), _("div", null, [
|
|
5194
5196
|
o.value ? (c(), _("div", gh, [
|
|
@@ -5200,8 +5202,8 @@ const Zf = (e) => {
|
|
|
5200
5202
|
"default-redis-config-item": r.value,
|
|
5201
5203
|
"is-custom-plugin": "",
|
|
5202
5204
|
"plugin-redis-fields": e.field.fields,
|
|
5203
|
-
"update-redis-model":
|
|
5204
|
-
onShowNewPartialModal: M[0] || (M[0] = (v) =>
|
|
5205
|
+
"update-redis-model": p,
|
|
5206
|
+
onShowNewPartialModal: M[0] || (M[0] = (v) => f.$emit("showNewPartialModal"))
|
|
5205
5207
|
}, null, 8, ["default-redis-config-item", "plugin-redis-fields"])
|
|
5206
5208
|
])) : (c(), U(O, {
|
|
5207
5209
|
key: 1,
|
|
@@ -5247,8 +5249,8 @@ const Zf = (e) => {
|
|
|
5247
5249
|
"default-redis-config-item": r.value,
|
|
5248
5250
|
"plugin-redis-fields": e.field.fields,
|
|
5249
5251
|
"redis-type": e.field.redisType,
|
|
5250
|
-
"update-redis-model":
|
|
5251
|
-
onShowNewPartialModal: M[3] || (M[3] = (v) =>
|
|
5252
|
+
"update-redis-model": p,
|
|
5253
|
+
onShowNewPartialModal: M[3] || (M[3] = (v) => f.$emit("showNewPartialModal"))
|
|
5252
5254
|
}, null, 8, ["default-redis-config-item", "plugin-redis-fields", "redis-type"])
|
|
5253
5255
|
])) : (c(), _("div", bh, [
|
|
5254
5256
|
m("div", _h, L(A(a)("redis.dedicated_configuration.title")), 1),
|
|
@@ -5257,7 +5259,7 @@ const Zf = (e) => {
|
|
|
5257
5259
|
(c(!0), _(Y, null, oe(e.field.fields, (v) => (c(), _(Y, {
|
|
5258
5260
|
key: v.model
|
|
5259
5261
|
}, [
|
|
5260
|
-
|
|
5262
|
+
h(v) ? (c(), U(Co, {
|
|
5261
5263
|
key: 0,
|
|
5262
5264
|
ref_for: !0,
|
|
5263
5265
|
ref: "children",
|
|
@@ -5283,7 +5285,7 @@ const Zf = (e) => {
|
|
|
5283
5285
|
}
|
|
5284
5286
|
}), Sh = /* @__PURE__ */ W(Th, [["__scopeId", "data-v-addd6536"]]), wh = {
|
|
5285
5287
|
name: "VueFormGenerator",
|
|
5286
|
-
components: { formGroup:
|
|
5288
|
+
components: { formGroup: Co, formRedis: Sh },
|
|
5287
5289
|
mixins: [io],
|
|
5288
5290
|
inject: {
|
|
5289
5291
|
// Inject AUTOFILL_SLOT for provide()
|
|
@@ -5468,7 +5470,7 @@ function Ah(e, t, n, i, a, o) {
|
|
|
5468
5470
|
vfg: a.vfg,
|
|
5469
5471
|
onModelUpdated: o.onModelUpdated,
|
|
5470
5472
|
onPartialToggled: o.onPartialToggled,
|
|
5471
|
-
onShowNewPartialModal: (
|
|
5473
|
+
onShowNewPartialModal: (h) => e.$emit("showNewPartialModal", u.redisType),
|
|
5472
5474
|
onValidated: o.onFieldValidated
|
|
5473
5475
|
}, null, 8, ["errors", "field", "is-editing", "model", "options", "tag", "vfg", "onModelUpdated", "onPartialToggled", "onShowNewPartialModal", "onValidated"])) : o.fieldVisible(u) ? (c(), U(r, {
|
|
5474
5476
|
key: 1,
|
|
@@ -5487,33 +5489,33 @@ function Ah(e, t, n, i, a, o) {
|
|
|
5487
5489
|
]),
|
|
5488
5490
|
_: 1
|
|
5489
5491
|
})) : K("", !0),
|
|
5490
|
-
(c(!0), _(Y, null, oe(o.groups, (u,
|
|
5491
|
-
key: `group-${
|
|
5492
|
+
(c(!0), _(Y, null, oe(o.groups, (u, h) => (c(), _(Y, {
|
|
5493
|
+
key: `group-${h}`
|
|
5492
5494
|
}, [
|
|
5493
5495
|
u.collapsible !== void 0 && u.collapsible !== !1 ? (c(), U(d, {
|
|
5494
5496
|
key: 0,
|
|
5495
5497
|
class: "root-level-collapse",
|
|
5496
5498
|
"model-value": !1,
|
|
5497
5499
|
title: u.collapsible.title
|
|
5498
|
-
},
|
|
5500
|
+
}, un({
|
|
5499
5501
|
default: E(() => {
|
|
5500
|
-
var
|
|
5502
|
+
var p, b, F, x;
|
|
5501
5503
|
return [
|
|
5502
|
-
(
|
|
5504
|
+
(p = u.slots) != null && p.beforeContent ? Oe(e.$slots, (b = u.slots) == null ? void 0 : b.beforeContent, { key: 0 }) : K("", !0),
|
|
5503
5505
|
u.fields.length === 0 && ((F = u.slots) != null && F.emptyState) ? Oe(e.$slots, (x = u.slots) == null ? void 0 : x.emptyState, { key: 1 }) : (c(), U(me(n.tag), {
|
|
5504
5506
|
key: 2,
|
|
5505
5507
|
class: ee(e.getFieldRowClasses(u))
|
|
5506
5508
|
}, {
|
|
5507
5509
|
default: E(() => [
|
|
5508
|
-
(c(!0), _(Y, null, oe(u.fields, (
|
|
5509
|
-
key:
|
|
5510
|
+
(c(!0), _(Y, null, oe(u.fields, (f) => (c(), _(Y, {
|
|
5511
|
+
key: f.model
|
|
5510
5512
|
}, [
|
|
5511
|
-
o.fieldVisible(
|
|
5513
|
+
o.fieldVisible(f) ? (c(), U(r, {
|
|
5512
5514
|
key: 0,
|
|
5513
5515
|
ref_for: !0,
|
|
5514
5516
|
ref: "children",
|
|
5515
5517
|
errors: a.errors,
|
|
5516
|
-
field:
|
|
5518
|
+
field: f,
|
|
5517
5519
|
model: n.model,
|
|
5518
5520
|
options: n.options,
|
|
5519
5521
|
vfg: a.vfg,
|
|
@@ -5528,23 +5530,23 @@ function Ah(e, t, n, i, a, o) {
|
|
|
5528
5530
|
u.collapsible !== !0 && u.collapsible.nestedCollapsible && u.collapsible.nestedCollapsible.fields.length > 0 ? (c(), U(d, {
|
|
5529
5531
|
key: 3,
|
|
5530
5532
|
class: "nested-collapse",
|
|
5531
|
-
"model-value": a.collapseStates[`group-${
|
|
5533
|
+
"model-value": a.collapseStates[`group-${h}-nested`] ?? !0,
|
|
5532
5534
|
"trigger-alignment": "leading",
|
|
5533
|
-
"trigger-label": a.collapseStates[`group-${
|
|
5534
|
-
"onUpdate:modelValue": (
|
|
5535
|
+
"trigger-label": a.collapseStates[`group-${h}-nested`] ?? !0 ? u.collapsible.nestedCollapsible.triggerLabel.expand : u.collapsible.nestedCollapsible.triggerLabel.collapse,
|
|
5536
|
+
"onUpdate:modelValue": (f) => a.collapseStates[`group-${h}-nested`] = f
|
|
5535
5537
|
}, {
|
|
5536
5538
|
default: E(() => [
|
|
5537
5539
|
(c(), U(me(n.tag), {
|
|
5538
5540
|
class: ee(e.getFieldRowClasses(u))
|
|
5539
5541
|
}, {
|
|
5540
5542
|
default: E(() => [
|
|
5541
|
-
(c(!0), _(Y, null, oe(u.collapsible.nestedCollapsible.fields, (
|
|
5542
|
-
key:
|
|
5543
|
+
(c(!0), _(Y, null, oe(u.collapsible.nestedCollapsible.fields, (f) => (c(), _(Y, {
|
|
5544
|
+
key: f.model
|
|
5543
5545
|
}, [
|
|
5544
|
-
|
|
5546
|
+
f.model === "__redis_partial" && n.enableRedisPartial ? (c(), U(s, {
|
|
5545
5547
|
key: 0,
|
|
5546
5548
|
errors: a.errors,
|
|
5547
|
-
field:
|
|
5549
|
+
field: f,
|
|
5548
5550
|
"is-editing": n.isEditing,
|
|
5549
5551
|
model: n.model,
|
|
5550
5552
|
options: n.options,
|
|
@@ -5552,14 +5554,14 @@ function Ah(e, t, n, i, a, o) {
|
|
|
5552
5554
|
vfg: a.vfg,
|
|
5553
5555
|
onModelUpdated: o.onModelUpdated,
|
|
5554
5556
|
onPartialToggled: o.onPartialToggled,
|
|
5555
|
-
onShowNewPartialModal: (M) => e.$emit("showNewPartialModal",
|
|
5557
|
+
onShowNewPartialModal: (M) => e.$emit("showNewPartialModal", f.redisType),
|
|
5556
5558
|
onValidated: o.onFieldValidated
|
|
5557
|
-
}, null, 8, ["errors", "field", "is-editing", "model", "options", "tag", "vfg", "onModelUpdated", "onPartialToggled", "onShowNewPartialModal", "onValidated"])) : o.fieldVisible(
|
|
5559
|
+
}, null, 8, ["errors", "field", "is-editing", "model", "options", "tag", "vfg", "onModelUpdated", "onPartialToggled", "onShowNewPartialModal", "onValidated"])) : o.fieldVisible(f) ? (c(), U(r, {
|
|
5558
5560
|
key: 1,
|
|
5559
5561
|
ref_for: !0,
|
|
5560
5562
|
ref: "children",
|
|
5561
5563
|
errors: a.errors,
|
|
5562
|
-
field:
|
|
5564
|
+
field: f,
|
|
5563
5565
|
model: n.model,
|
|
5564
5566
|
options: n.options,
|
|
5565
5567
|
vfg: a.vfg,
|
|
@@ -5591,15 +5593,15 @@ function Ah(e, t, n, i, a, o) {
|
|
|
5591
5593
|
}, {
|
|
5592
5594
|
default: E(() => [
|
|
5593
5595
|
u.legend ? (c(), _("legend", Mh, L(u.legend), 1)) : K("", !0),
|
|
5594
|
-
(c(!0), _(Y, null, oe(u.fields, (
|
|
5595
|
-
key:
|
|
5596
|
+
(c(!0), _(Y, null, oe(u.fields, (p) => (c(), _(Y, {
|
|
5597
|
+
key: p.model
|
|
5596
5598
|
}, [
|
|
5597
|
-
o.fieldVisible(
|
|
5599
|
+
o.fieldVisible(p) ? (c(), U(r, {
|
|
5598
5600
|
key: 0,
|
|
5599
5601
|
ref_for: !0,
|
|
5600
5602
|
ref: "children",
|
|
5601
5603
|
errors: a.errors,
|
|
5602
|
-
field:
|
|
5604
|
+
field: p,
|
|
5603
5605
|
model: n.model,
|
|
5604
5606
|
options: n.options,
|
|
5605
5607
|
vfg: a.vfg,
|
|
@@ -5749,13 +5751,13 @@ const ue = /* @__PURE__ */ W(wh, [["render", Ah]]), Dt = {
|
|
|
5749
5751
|
switch (o.model) {
|
|
5750
5752
|
case "config-client_jwk": {
|
|
5751
5753
|
if (Array.isArray((r = (s = o.items) == null ? void 0 : s.schema) == null ? void 0 : r.fields))
|
|
5752
|
-
for (const
|
|
5753
|
-
|
|
5754
|
+
for (const h of o.items.schema.fields)
|
|
5755
|
+
h.label = h.model;
|
|
5754
5756
|
a.push({
|
|
5755
5757
|
...o,
|
|
5756
5758
|
link: this.openIdConnectJWKLink,
|
|
5757
5759
|
newElementButtonLabel: "+ Add Client JWK",
|
|
5758
|
-
...Array.isArray((u = (d = o.items) == null ? void 0 : d.schema) == null ? void 0 : u.fields) && o.items.schema.fields.map((
|
|
5760
|
+
...Array.isArray((u = (d = o.items) == null ? void 0 : d.schema) == null ? void 0 : u.fields) && o.items.schema.fields.map((h) => ({ ...h, label: h.model }))
|
|
5759
5761
|
});
|
|
5760
5762
|
break;
|
|
5761
5763
|
}
|
|
@@ -5841,7 +5843,7 @@ const ue = /* @__PURE__ */ W(wh, [["render", Ah]]), Dt = {
|
|
|
5841
5843
|
}
|
|
5842
5844
|
}, Ch = { class: "general-settings" }, Oh = { class: "link-wrapper" }, Fh = { class: "auth-method-container" }, kh = { class: "general-settings" }, Rh = { class: "link-wrapper" }, Uh = { class: "general-settings" }, Lh = { class: "link-wrapper" };
|
|
5843
5845
|
function Nh(e, t, n, i, a, o) {
|
|
5844
|
-
const s = D("VueFormGenerator"), r = D("KExternalLink"), d = D("KLabel"), u = D("KCheckbox"),
|
|
5846
|
+
const s = D("VueFormGenerator"), r = D("KExternalLink"), d = D("KLabel"), u = D("KCheckbox"), h = D("KInputSwitch"), p = D("KTabs");
|
|
5845
5847
|
return c(), _("div", null, [
|
|
5846
5848
|
n.formModel.id && n.isEditing || !n.isEditing ? (c(), U(s, {
|
|
5847
5849
|
key: 0,
|
|
@@ -5851,7 +5853,7 @@ function Nh(e, t, n, i, a, o) {
|
|
|
5851
5853
|
schema: a.globalFields,
|
|
5852
5854
|
onModelUpdated: n.onModelUpdated
|
|
5853
5855
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : K("", !0),
|
|
5854
|
-
C(
|
|
5856
|
+
C(p, { tabs: a.tabs }, {
|
|
5855
5857
|
common: E(() => [
|
|
5856
5858
|
m("div", Ch, [
|
|
5857
5859
|
m("div", Oh, [
|
|
@@ -5893,7 +5895,7 @@ function Nh(e, t, n, i, a, o) {
|
|
|
5893
5895
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
5894
5896
|
]))), 128))
|
|
5895
5897
|
]),
|
|
5896
|
-
C(
|
|
5898
|
+
C(h, {
|
|
5897
5899
|
modelValue: a.sessionManagement,
|
|
5898
5900
|
"onUpdate:modelValue": t[0] || (t[0] = (b) => a.sessionManagement = b),
|
|
5899
5901
|
label: "Enable Session Management",
|
|
@@ -5920,7 +5922,7 @@ function Nh(e, t, n, i, a, o) {
|
|
|
5920
5922
|
onModelUpdated: n.onModelUpdated
|
|
5921
5923
|
}, {
|
|
5922
5924
|
"autofill-provider": E((b) => [
|
|
5923
|
-
Oe(e.$slots, "autofill-provider",
|
|
5925
|
+
Oe(e.$slots, "autofill-provider", Bo(zo(b)), void 0, !0)
|
|
5924
5926
|
]),
|
|
5925
5927
|
_: 3
|
|
5926
5928
|
}, 8, ["model", "options", "schema", "onModelUpdated"])) : K("", !0)
|
|
@@ -5981,7 +5983,7 @@ const Ph = /* @__PURE__ */ W(Ih, [["render", Nh], ["__scopeId", "data-v-741bf3cb
|
|
|
5981
5983
|
},
|
|
5982
5984
|
setup(e) {
|
|
5983
5985
|
var s;
|
|
5984
|
-
Bt(Le, (s =
|
|
5986
|
+
Bt(Le, (s = mn()) == null ? void 0 : s[Mt]);
|
|
5985
5987
|
const { t, te: n } = ke("en-us", Re), i = e, a = B(() => i.formModel.id && i.isEditing || !i.isEditing), o = B(() => {
|
|
5986
5988
|
const r = i.formSchema;
|
|
5987
5989
|
return r.fields.map((d) => {
|
|
@@ -6024,7 +6026,7 @@ const Ph = /* @__PURE__ */ W(Ih, [["render", Nh], ["__scopeId", "data-v-741bf3cb
|
|
|
6024
6026
|
},
|
|
6025
6027
|
setup(e) {
|
|
6026
6028
|
var s;
|
|
6027
|
-
Bt(Le, (s =
|
|
6029
|
+
Bt(Le, (s = mn()) == null ? void 0 : s[Mt]);
|
|
6028
6030
|
const { t, te: n } = ke("en-us", Re), i = e, a = B(() => i.formModel.id && i.isEditing || !i.isEditing), o = B(() => {
|
|
6029
6031
|
const r = i.formSchema;
|
|
6030
6032
|
return r.fields.map((d) => {
|
|
@@ -6155,7 +6157,7 @@ const Ph = /* @__PURE__ */ W(Ih, [["render", Nh], ["__scopeId", "data-v-741bf3cb
|
|
|
6155
6157
|
},
|
|
6156
6158
|
setup(e) {
|
|
6157
6159
|
var v;
|
|
6158
|
-
Bt(Le, (v =
|
|
6160
|
+
Bt(Le, (v = mn()) == null ? void 0 : v[Mt]);
|
|
6159
6161
|
const t = e, n = ae("zeroSsl"), i = ae("shm"), a = B(() => {
|
|
6160
6162
|
var g;
|
|
6161
6163
|
const y = {};
|
|
@@ -6193,9 +6195,9 @@ const Ph = /* @__PURE__ */ W(Ih, [["render", Nh], ["__scopeId", "data-v-741bf3cb
|
|
|
6193
6195
|
fields: o.value.fields.filter(
|
|
6194
6196
|
(g) => !s.value.fields.some((V) => V.model === g.model) && !r.value.fields.some((V) => V.model === g.model)
|
|
6195
6197
|
)
|
|
6196
|
-
})),
|
|
6198
|
+
})), h = B(() => ({
|
|
6197
6199
|
fields: t.formSchema.fields.filter((g) => g.model.startsWith("config-storage") && !g.model.startsWith("config-storage_config-consul") && !g.model.startsWith("config-storage_config-redis") && !g.model.startsWith("config-storage_config-shm") && !g.model.startsWith("config-storage_config-vault"))
|
|
6198
|
-
})),
|
|
6200
|
+
})), p = B(() => ({
|
|
6199
6201
|
fields: t.formSchema.fields.filter((g) => g.model.startsWith("config-storage_config-consul"))
|
|
6200
6202
|
})), b = B(() => ({
|
|
6201
6203
|
fields: t.formSchema.fields.filter((g) => g.model.startsWith("config-storage_config-redis"))
|
|
@@ -6203,8 +6205,8 @@ const Ph = /* @__PURE__ */ W(Ih, [["render", Nh], ["__scopeId", "data-v-741bf3cb
|
|
|
6203
6205
|
fields: t.formSchema.fields.filter((g) => g.model.startsWith("config-storage_config-shm"))
|
|
6204
6206
|
})), x = B(() => ({
|
|
6205
6207
|
fields: t.formSchema.fields.filter((g) => g.model.startsWith("config-storage_config-vault"))
|
|
6206
|
-
})),
|
|
6207
|
-
fields: t.formSchema.fields.filter((y) => y.model.startsWith("config") && !u.value.fields.filter((g) => g.model === y.model).length && !
|
|
6208
|
+
})), f = B(() => ({
|
|
6209
|
+
fields: t.formSchema.fields.filter((y) => y.model.startsWith("config") && !u.value.fields.filter((g) => g.model === y.model).length && !h.value.fields.filter((g) => g.model === y.model).length || y.model === "tags")
|
|
6208
6210
|
})), M = B(() => t.formModel.id && t.isEditing || !t.isEditing), I = [
|
|
6209
6211
|
{
|
|
6210
6212
|
hash: "#general",
|
|
@@ -6233,7 +6235,7 @@ const Ph = /* @__PURE__ */ W(Ih, [["render", Nh], ["__scopeId", "data-v-741bf3cb
|
|
|
6233
6235
|
value: "other"
|
|
6234
6236
|
}
|
|
6235
6237
|
];
|
|
6236
|
-
|
|
6238
|
+
Zn(() => {
|
|
6237
6239
|
n.value === "zeroSsl" && (t.formModel["config-api_uri"] = "https://acme.zerossl.com/v2/DV90");
|
|
6238
6240
|
});
|
|
6239
6241
|
const T = (y) => {
|
|
@@ -6301,7 +6303,7 @@ const Ph = /* @__PURE__ */ W(Ih, [["render", Nh], ["__scopeId", "data-v-741bf3cb
|
|
|
6301
6303
|
key: 0,
|
|
6302
6304
|
model: e.formModel,
|
|
6303
6305
|
options: e.formOptions,
|
|
6304
|
-
schema:
|
|
6306
|
+
schema: h.value,
|
|
6305
6307
|
onModelUpdated: O
|
|
6306
6308
|
}, null, 8, ["model", "options", "schema"])) : K("", !0),
|
|
6307
6309
|
m("div", Yh, [
|
|
@@ -6309,7 +6311,7 @@ const Ph = /* @__PURE__ */ W(Ih, [["render", Nh], ["__scopeId", "data-v-741bf3cb
|
|
|
6309
6311
|
key: 0,
|
|
6310
6312
|
model: e.formModel,
|
|
6311
6313
|
options: e.formOptions,
|
|
6312
|
-
schema:
|
|
6314
|
+
schema: p.value,
|
|
6313
6315
|
onModelUpdated: e.onModelUpdated
|
|
6314
6316
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : K("", !0),
|
|
6315
6317
|
i.value === "redis" ? (c(), U(ue, {
|
|
@@ -6346,7 +6348,7 @@ const Ph = /* @__PURE__ */ W(Ih, [["render", Nh], ["__scopeId", "data-v-741bf3cb
|
|
|
6346
6348
|
key: 0,
|
|
6347
6349
|
model: e.formModel,
|
|
6348
6350
|
options: e.formOptions,
|
|
6349
|
-
schema:
|
|
6351
|
+
schema: f.value,
|
|
6350
6352
|
onModelUpdated: e.onModelUpdated
|
|
6351
6353
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : K("", !0)
|
|
6352
6354
|
])
|
|
@@ -6376,7 +6378,7 @@ const Ph = /* @__PURE__ */ W(Ih, [["render", Nh], ["__scopeId", "data-v-741bf3cb
|
|
|
6376
6378
|
},
|
|
6377
6379
|
setup(e) {
|
|
6378
6380
|
var Z;
|
|
6379
|
-
Bt(Le, (Z =
|
|
6381
|
+
Bt(Le, (Z = mn()) == null ? void 0 : Z[Mt]);
|
|
6380
6382
|
const t = {
|
|
6381
6383
|
fixed: [
|
|
6382
6384
|
{
|
|
@@ -6466,7 +6468,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6466
6468
|
}), u = B(() => {
|
|
6467
6469
|
var k, w;
|
|
6468
6470
|
return (w = (k = o.formSchema) == null ? void 0 : k.fields) == null ? void 0 : w.find((j) => j.model === "config-identifier");
|
|
6469
|
-
}),
|
|
6471
|
+
}), h = B(
|
|
6470
6472
|
() => {
|
|
6471
6473
|
var k, w, j;
|
|
6472
6474
|
return (((j = (w = (k = o.formSchema) == null ? void 0 : k.fields) == null ? void 0 : w.find((q) => q.model === "config-identifier")) == null ? void 0 : j.values) ?? []).map((q) => ({
|
|
@@ -6474,7 +6476,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6474
6476
|
value: q
|
|
6475
6477
|
}));
|
|
6476
6478
|
}
|
|
6477
|
-
),
|
|
6479
|
+
), p = ae(), b = ae(!0), F = B(
|
|
6478
6480
|
() => {
|
|
6479
6481
|
var k, w, j;
|
|
6480
6482
|
return o.formModel["config-window_type"] ?? ((j = (w = (k = o.formSchema) == null ? void 0 : k.fields) == null ? void 0 : w.find((q) => q.model === "config-window_type")) == null ? void 0 : j.default);
|
|
@@ -6483,7 +6485,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6483
6485
|
var w, j, q, H, ge, qe;
|
|
6484
6486
|
const k = (q = (j = (w = o.formSchema) == null ? void 0 : w.fields) == null ? void 0 : j.find((fe) => fe.model === "config-window_type")) == null ? void 0 : q.default;
|
|
6485
6487
|
return (((qe = (ge = (H = o.formSchema) == null ? void 0 : H.fields) == null ? void 0 : ge.find((fe) => fe.model === "config-window_type")) == null ? void 0 : qe.values) ?? []).sort((fe, Ke) => fe === k ? -1 : Ke === k ? 1 : 0);
|
|
6486
|
-
}),
|
|
6488
|
+
}), f = B(() => {
|
|
6487
6489
|
var w;
|
|
6488
6490
|
const k = (w = o.formModel["config-limit"]) == null ? void 0 : w.map((j, q) => {
|
|
6489
6491
|
var H, ge;
|
|
@@ -6509,44 +6511,44 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6509
6511
|
return ((k = o.formModel) == null ? void 0 : k["config-error_message"]) ?? ((q = (j = (w = o.formSchema) == null ? void 0 : w.fields) == null ? void 0 : j.find((H) => H.model === "config-error_message")) == null ? void 0 : q.default);
|
|
6510
6512
|
}
|
|
6511
6513
|
), T = (k, w) => {
|
|
6512
|
-
if (w ===
|
|
6514
|
+
if (w === p.value) {
|
|
6513
6515
|
o.onModelUpdated([], "config-limit"), o.onModelUpdated([], "config-window_size"), Fi(() => {
|
|
6514
|
-
|
|
6516
|
+
p.value = void 0;
|
|
6515
6517
|
});
|
|
6516
6518
|
return;
|
|
6517
6519
|
}
|
|
6518
6520
|
o.onModelUpdated([k.config.limit], "config-limit"), o.onModelUpdated([k.config.window_size], "config-window_size"), Fi(() => {
|
|
6519
|
-
|
|
6521
|
+
p.value = w;
|
|
6520
6522
|
});
|
|
6521
6523
|
}, O = (k) => {
|
|
6522
|
-
|
|
6524
|
+
p.value !== void 0 && (p.value = void 0), k !== null && o.onModelUpdated(k.toString(), "config-window_type");
|
|
6523
6525
|
}, v = (k, w) => {
|
|
6524
6526
|
var q;
|
|
6525
|
-
|
|
6527
|
+
p.value !== void 0 && (p.value = void 0);
|
|
6526
6528
|
const j = We(((q = o.formModel) == null ? void 0 : q["config-limit"]) ?? []);
|
|
6527
6529
|
j[k] = w, o.onModelUpdated(j, "config-limit");
|
|
6528
6530
|
}, y = (k, w) => {
|
|
6529
6531
|
var q;
|
|
6530
|
-
|
|
6532
|
+
p.value !== void 0 && (p.value = void 0);
|
|
6531
6533
|
const j = We(((q = o.formModel) == null ? void 0 : q["config-window_size"]) ?? []);
|
|
6532
6534
|
j[k] = w, o.onModelUpdated(j, "config-window_size");
|
|
6533
6535
|
}, g = (k) => {
|
|
6534
6536
|
var q, H;
|
|
6535
|
-
|
|
6537
|
+
p.value !== void 0 && (p.value = void 0);
|
|
6536
6538
|
const w = We(((q = o.formModel) == null ? void 0 : q["config-limit"]) ?? []), j = We(((H = o.formModel) == null ? void 0 : H["config-window_size"]) ?? []);
|
|
6537
6539
|
w.length === 0 && w.push(void 0), j.length === 0 && j.push(void 0), w.splice(k + 1, 0, void 0), j.splice(k + 1, 0, void 0), o.onModelUpdated(w, "config-limit"), o.onModelUpdated(j, "config-window_size");
|
|
6538
6540
|
}, V = (k) => {
|
|
6539
6541
|
var w, j;
|
|
6540
|
-
if (
|
|
6541
|
-
|
|
6542
|
+
if (f.value.length > 1) {
|
|
6543
|
+
p.value !== void 0 && (p.value = void 0);
|
|
6542
6544
|
const q = We(((w = o.formModel) == null ? void 0 : w["config-limit"]) ?? []), H = We(((j = o.formModel) == null ? void 0 : j["config-window_size"]) ?? []);
|
|
6543
6545
|
q.length === 0 && q.push(void 0), H.length === 0 && H.push(void 0), q.splice(k, 1), H.splice(k, 1), o.onModelUpdated(q, "config-limit"), o.onModelUpdated(H, "config-window_size");
|
|
6544
6546
|
}
|
|
6545
6547
|
};
|
|
6546
|
-
return
|
|
6548
|
+
return cn(() => o.formModel["config-strategy"], (k) => {
|
|
6547
6549
|
k !== "redis" && o.formModel.partials && o.onModelUpdated(void 0, "partials");
|
|
6548
6550
|
}), (k, w) => {
|
|
6549
|
-
const j = D("KLabel"), q = D("KRadio"), H = D("KInput"), ge = D("KButton"), qe = D("KBadge"), fe = D("KTooltip"), Ke = D("KCard"),
|
|
6551
|
+
const j = D("KLabel"), q = D("KRadio"), H = D("KInput"), ge = D("KButton"), qe = D("KBadge"), fe = D("KTooltip"), Ke = D("KCard"), Tn = D("KSelect"), Ht = D("KCollapse");
|
|
6550
6552
|
return c(), _(Y, null, [
|
|
6551
6553
|
m("div", Xh, [
|
|
6552
6554
|
C(ue, {
|
|
@@ -6605,7 +6607,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6605
6607
|
])
|
|
6606
6608
|
]),
|
|
6607
6609
|
m("div", ip, [
|
|
6608
|
-
(c(!0), _(Y, null, oe(
|
|
6610
|
+
(c(!0), _(Y, null, oe(f.value, ($, ne) => (c(), _("div", {
|
|
6609
6611
|
key: ne.toString()
|
|
6610
6612
|
}, [
|
|
6611
6613
|
C(j, {
|
|
@@ -6639,11 +6641,11 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6639
6641
|
m("div", rp, [
|
|
6640
6642
|
C(ge, {
|
|
6641
6643
|
appearance: "tertiary",
|
|
6642
|
-
disabled:
|
|
6644
|
+
disabled: f.value.length <= 1,
|
|
6643
6645
|
onClick: () => V(ne)
|
|
6644
6646
|
}, {
|
|
6645
6647
|
default: E(() => [
|
|
6646
|
-
C(A(
|
|
6648
|
+
C(A(Yo))
|
|
6647
6649
|
]),
|
|
6648
6650
|
_: 1
|
|
6649
6651
|
}, 8, ["disabled", "onClick"]),
|
|
@@ -6652,7 +6654,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6652
6654
|
onClick: () => g(ne)
|
|
6653
6655
|
}, {
|
|
6654
6656
|
default: E(() => [
|
|
6655
|
-
C(A(
|
|
6657
|
+
C(A(Jn))
|
|
6656
6658
|
]),
|
|
6657
6659
|
_: 1
|
|
6658
6660
|
}, 8, ["onClick"])
|
|
@@ -6675,7 +6677,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6675
6677
|
]),
|
|
6676
6678
|
default: E(() => [
|
|
6677
6679
|
C(qe, {
|
|
6678
|
-
appearance:
|
|
6680
|
+
appearance: p.value === `${F.value}-${ne}` ? "info" : "decorative",
|
|
6679
6681
|
class: "rla-form-request-limits-examples-badge",
|
|
6680
6682
|
onClick: () => T($, `${F.value}-${ne}`)
|
|
6681
6683
|
}, {
|
|
@@ -6693,11 +6695,11 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6693
6695
|
]),
|
|
6694
6696
|
_: 1
|
|
6695
6697
|
}),
|
|
6696
|
-
C(
|
|
6698
|
+
C(Tn, {
|
|
6697
6699
|
modelValue: M.value,
|
|
6698
6700
|
"onUpdate:modelValue": w[1] || (w[1] = ($) => M.value = $),
|
|
6699
6701
|
class: "rla-form-identifiers",
|
|
6700
|
-
items:
|
|
6702
|
+
items: h.value,
|
|
6701
6703
|
label: A(a)("rla.identifiers.label"),
|
|
6702
6704
|
"label-attributes": {
|
|
6703
6705
|
tooltipAttributes: {
|
|
@@ -6816,12 +6818,12 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6816
6818
|
export {
|
|
6817
6819
|
Le as AUTOFILL_SLOT,
|
|
6818
6820
|
Mt as AUTOFILL_SLOT_NAME,
|
|
6819
|
-
|
|
6821
|
+
sl as EMPTY_VALUE_PLACEHOLDER,
|
|
6820
6822
|
je as FIELD_STATES,
|
|
6821
6823
|
Ce as FORMS_API_KEY,
|
|
6822
|
-
|
|
6823
|
-
|
|
6824
|
-
|
|
6824
|
+
ol as FORMS_CONFIG,
|
|
6825
|
+
dn as PartialType,
|
|
6826
|
+
rl as REDIS_PARTIAL_FETCHER_KEY,
|
|
6825
6827
|
vp as REDIS_PARTIAL_INFO,
|
|
6826
6828
|
ue as VueFormGenerator,
|
|
6827
6829
|
bp as abstractField,
|