@kong-ui-public/forms 4.17.6-pr.2490.bcfd445cb.0 → 4.17.6-pr.2490.fb976ae39.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 +867 -869
- package/dist/forms.umd.js +3 -3
- package/dist/style.css +1 -1
- package/package.json +1 -1
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 O, defineComponent as he, provide as zt, resolveComponent as D, withCtx as M, renderSlot as Oe, unref as I, createTextVNode as ce, createBlock as U, resolveDynamicComponent as me, Fragment as Y, renderList as oe, mergeModels as
|
|
1
|
+
import { createElementBlock as _, openBlock as c, createElementVNode as m, toDisplayString as L, normalizeClass as ee, createVNode as O, defineComponent as he, provide as zt, resolveComponent as D, withCtx as M, renderSlot as Oe, unref as I, createTextVNode as ce, createBlock as U, resolveDynamicComponent as me, Fragment as Y, renderList as oe, mergeModels as Oi, useModel as Po, createSlots as cn, ref as ae, onMounted as Xn, watch as mn, computed as z, toRefs as ut, inject as an, onBeforeMount as Jn, mergeProps as et, Transition as Do, createCommentVNode as B, resolveDirective as Aa, withDirectives as Ee, vModelText as $t, vModelCheckbox as $o, vModelSelect as Vo, vModelDynamic as Ia, isRef as Et, toRef as jo, vModelRadio as qo, vShow as Ko, normalizeProps as Bo, guardReactiveProps as zo, useSlots as fn, nextTick as Fi } from "vue";
|
|
2
2
|
import { createI18n as ke } from "@kong-ui-public/i18n";
|
|
3
|
-
import { TrashIcon as xt, SearchIcon as
|
|
4
|
-
import { isAxiosError as
|
|
5
|
-
import { useStringHelpers as
|
|
6
|
-
function
|
|
3
|
+
import { TrashIcon as xt, SearchIcon as xo, AddIcon as Qn, RemoveIcon as Ho } from "@kong/icons";
|
|
4
|
+
import { isAxiosError as Yo } from "axios";
|
|
5
|
+
import { useStringHelpers as Go, useErrors as Wo, useDebouncedFilter as Zo, useAxios as Xo } from "@kong-ui-public/entities-shared";
|
|
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 Jo(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,123 +18,123 @@ function er(e) {
|
|
|
18
18
|
return t;
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
var
|
|
22
|
-
function
|
|
21
|
+
var Qo = Jo();
|
|
22
|
+
function er(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
|
|
28
|
-
function
|
|
29
|
-
var t =
|
|
27
|
+
var Oa = typeof global == "object" && global && global.Object === Object && global, tr = typeof self == "object" && self && self.Object === Object && self, Pe = Oa || tr || Function("return this")(), tt = Pe.Symbol, Fa = Object.prototype, nr = Fa.hasOwnProperty, ir = Fa.toString, kt = tt ? tt.toStringTag : void 0;
|
|
28
|
+
function ar(e) {
|
|
29
|
+
var t = nr.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 = ir.call(e);
|
|
36
36
|
return i && (t ? e[kt] = n : delete e[kt]), a;
|
|
37
37
|
}
|
|
38
|
-
var
|
|
39
|
-
function
|
|
40
|
-
return
|
|
38
|
+
var or = Object.prototype, rr = or.toString;
|
|
39
|
+
function sr(e) {
|
|
40
|
+
return rr.call(e);
|
|
41
41
|
}
|
|
42
|
-
var
|
|
42
|
+
var lr = "[object Null]", dr = "[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 ? dr : lr : ki && ki in Object(e) ? ar(e) : sr(e);
|
|
45
45
|
}
|
|
46
46
|
function it(e) {
|
|
47
47
|
return e != null && typeof e == "object";
|
|
48
48
|
}
|
|
49
|
-
var
|
|
50
|
-
function
|
|
51
|
-
return it(e) && nt(e) ==
|
|
49
|
+
var ur = "[object Arguments]";
|
|
50
|
+
function Ri(e) {
|
|
51
|
+
return it(e) && nt(e) == ur;
|
|
52
52
|
}
|
|
53
|
-
var
|
|
53
|
+
var ka = Object.prototype, cr = ka.hasOwnProperty, mr = ka.propertyIsEnumerable, fr = Ri(/* @__PURE__ */ function() {
|
|
54
54
|
return arguments;
|
|
55
|
-
}()) ?
|
|
56
|
-
return it(e) &&
|
|
55
|
+
}()) ? Ri : function(e) {
|
|
56
|
+
return it(e) && cr.call(e, "callee") && !mr.call(e, "callee");
|
|
57
57
|
}, at = Array.isArray;
|
|
58
|
-
function
|
|
58
|
+
function hr() {
|
|
59
59
|
return !1;
|
|
60
60
|
}
|
|
61
|
-
var
|
|
62
|
-
function
|
|
61
|
+
var Ra = typeof exports == "object" && exports && !exports.nodeType && exports, Ui = Ra && typeof module == "object" && module && !module.nodeType && module, pr = Ui && Ui.exports === Ra, Li = pr ? Pe.Buffer : void 0, gr = Li ? Li.isBuffer : void 0, Ua = gr || hr, yr = 9007199254740991, vr = /^(?:0|[1-9]\d*)$/;
|
|
62
|
+
function La(e, t) {
|
|
63
63
|
var n = typeof e;
|
|
64
|
-
return t = t ??
|
|
64
|
+
return t = t ?? yr, !!t && (n == "number" || n != "symbol" && vr.test(e)) && e > -1 && e % 1 == 0 && e < t;
|
|
65
65
|
}
|
|
66
|
-
var
|
|
67
|
-
function
|
|
68
|
-
return typeof e == "number" && e > -1 && e % 1 == 0 && e <=
|
|
66
|
+
var br = 9007199254740991;
|
|
67
|
+
function Na(e) {
|
|
68
|
+
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= br;
|
|
69
69
|
}
|
|
70
|
-
var
|
|
71
|
-
Q[
|
|
72
|
-
Q[
|
|
73
|
-
function
|
|
74
|
-
return it(e) &&
|
|
70
|
+
var _r = "[object Arguments]", Tr = "[object Array]", Sr = "[object Boolean]", wr = "[object Date]", Er = "[object Error]", Mr = "[object Function]", Ar = "[object Map]", Ir = "[object Number]", Cr = "[object Object]", Or = "[object RegExp]", Fr = "[object Set]", kr = "[object String]", Rr = "[object WeakMap]", Ur = "[object ArrayBuffer]", Lr = "[object DataView]", Nr = "[object Float32Array]", Pr = "[object Float64Array]", Dr = "[object Int8Array]", $r = "[object Int16Array]", Vr = "[object Int32Array]", jr = "[object Uint8Array]", qr = "[object Uint8ClampedArray]", Kr = "[object Uint16Array]", Br = "[object Uint32Array]", Q = {};
|
|
71
|
+
Q[Nr] = Q[Pr] = Q[Dr] = Q[$r] = Q[Vr] = Q[jr] = Q[qr] = Q[Kr] = Q[Br] = !0;
|
|
72
|
+
Q[_r] = Q[Tr] = Q[Ur] = Q[Sr] = Q[Lr] = Q[wr] = Q[Er] = Q[Mr] = Q[Ar] = Q[Ir] = Q[Cr] = Q[Or] = Q[Fr] = Q[kr] = Q[Rr] = !1;
|
|
73
|
+
function zr(e) {
|
|
74
|
+
return it(e) && Na(e.length) && !!Q[nt(e)];
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function ei(e) {
|
|
77
77
|
return function(t) {
|
|
78
78
|
return e(t);
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
|
-
var
|
|
81
|
+
var Pa = typeof exports == "object" && exports && !exports.nodeType && exports, Vt = Pa && typeof module == "object" && module && !module.nodeType && module, xr = Vt && Vt.exports === Pa, Ln = xr && Oa.process, St = function() {
|
|
82
82
|
try {
|
|
83
83
|
var e = Vt && Vt.require && Vt.require("util").types;
|
|
84
84
|
return e || Ln && Ln.binding && Ln.binding("util");
|
|
85
85
|
} catch {
|
|
86
86
|
}
|
|
87
|
-
}(),
|
|
88
|
-
function
|
|
89
|
-
var n = at(e), i = !n &&
|
|
87
|
+
}(), Ni = St && St.isTypedArray, Hr = Ni ? ei(Ni) : zr, Yr = Object.prototype, Gr = Yr.hasOwnProperty;
|
|
88
|
+
function Da(e, t) {
|
|
89
|
+
var n = at(e), i = !n && fr(e), a = !n && !i && Ua(e), o = !n && !i && !a && Hr(e), s = n || i || a || o, r = s ? er(e.length, String) : [], d = r.length;
|
|
90
90
|
for (var u in e)
|
|
91
|
-
(t ||
|
|
91
|
+
(t || Gr.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 Wr = Object.prototype;
|
|
99
|
+
function ti(e) {
|
|
100
|
+
var t = e && e.constructor, n = typeof t == "function" && t.prototype || Wr;
|
|
101
101
|
return e === n;
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function $a(e, t) {
|
|
104
104
|
return function(n) {
|
|
105
105
|
return e(t(n));
|
|
106
106
|
};
|
|
107
107
|
}
|
|
108
|
-
var
|
|
109
|
-
function
|
|
110
|
-
if (!
|
|
111
|
-
return
|
|
108
|
+
var Zr = $a(Object.keys, Object), Xr = Object.prototype, Jr = Xr.hasOwnProperty;
|
|
109
|
+
function Qr(e) {
|
|
110
|
+
if (!ti(e))
|
|
111
|
+
return Zr(e);
|
|
112
112
|
var t = [];
|
|
113
113
|
for (var n in Object(e))
|
|
114
|
-
|
|
114
|
+
Jr.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 es = "[object AsyncFunction]", ts = "[object Function]", ns = "[object GeneratorFunction]", is = "[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 == ts || t == ns || t == es || t == is;
|
|
127
127
|
}
|
|
128
128
|
function hn(e) {
|
|
129
|
-
return e != null &&
|
|
129
|
+
return e != null && Na(e.length) && !X(e);
|
|
130
130
|
}
|
|
131
131
|
function pn(e) {
|
|
132
|
-
return hn(e) ?
|
|
132
|
+
return hn(e) ? Da(e) : Qr(e);
|
|
133
133
|
}
|
|
134
|
-
function
|
|
135
|
-
return e &&
|
|
134
|
+
function as(e, t) {
|
|
135
|
+
return e && Qo(e, t, pn);
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function os(e, t) {
|
|
138
138
|
return function(n, i) {
|
|
139
139
|
if (n == null)
|
|
140
140
|
return n;
|
|
@@ -145,40 +145,40 @@ function ss(e, t) {
|
|
|
145
145
|
return n;
|
|
146
146
|
};
|
|
147
147
|
}
|
|
148
|
-
var
|
|
149
|
-
function
|
|
148
|
+
var rs = os(as);
|
|
149
|
+
function ni(e) {
|
|
150
150
|
return e;
|
|
151
151
|
}
|
|
152
|
-
function
|
|
153
|
-
return typeof e == "function" ? e :
|
|
152
|
+
function ss(e) {
|
|
153
|
+
return typeof e == "function" ? e : ni;
|
|
154
154
|
}
|
|
155
155
|
function we(e, t) {
|
|
156
|
-
var n = at(e) ?
|
|
157
|
-
return n(e,
|
|
156
|
+
var n = at(e) ? Ca : rs;
|
|
157
|
+
return n(e, ss(t));
|
|
158
158
|
}
|
|
159
|
-
var
|
|
159
|
+
var ls = "[object Symbol]";
|
|
160
160
|
function gn(e) {
|
|
161
|
-
return typeof e == "symbol" || it(e) && nt(e) ==
|
|
161
|
+
return typeof e == "symbol" || it(e) && nt(e) == ls;
|
|
162
162
|
}
|
|
163
|
-
var
|
|
164
|
-
function
|
|
163
|
+
var ds = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, us = /^\w*$/;
|
|
164
|
+
function cs(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 || gn(e) ? !0 :
|
|
168
|
+
return n == "number" || n == "symbol" || n == "boolean" || e == null || gn(e) ? !0 : us.test(e) || !ds.test(e) || t != null && e in Object(t);
|
|
169
169
|
}
|
|
170
|
-
var Nn = Pe["__core-js_shared__"],
|
|
170
|
+
var Nn = Pe["__core-js_shared__"], Pi = function() {
|
|
171
171
|
var e = /[^.]+$/.exec(Nn && Nn.keys && Nn.keys.IE_PROTO || "");
|
|
172
172
|
return e ? "Symbol(src)_1." + e : "";
|
|
173
173
|
}();
|
|
174
|
-
function
|
|
175
|
-
return !!
|
|
174
|
+
function ms(e) {
|
|
175
|
+
return !!Pi && Pi in e;
|
|
176
176
|
}
|
|
177
|
-
var
|
|
177
|
+
var fs = Function.prototype, hs = fs.toString;
|
|
178
178
|
function ct(e) {
|
|
179
179
|
if (e != null) {
|
|
180
180
|
try {
|
|
181
|
-
return
|
|
181
|
+
return hs.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 ps = /[\\^$.*+?()[\]{}|]/g, gs = /^\[object .+?Constructor\]$/, ys = Function.prototype, vs = Object.prototype, bs = ys.toString, _s = vs.hasOwnProperty, Ts = RegExp(
|
|
192
|
+
"^" + bs.call(_s).replace(ps, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
193
193
|
);
|
|
194
|
-
function
|
|
195
|
-
if (!Fe(e) ||
|
|
194
|
+
function Ss(e) {
|
|
195
|
+
if (!Fe(e) || ms(e))
|
|
196
196
|
return !1;
|
|
197
|
-
var t = X(e) ?
|
|
197
|
+
var t = X(e) ? Ts : gs;
|
|
198
198
|
return t.test(ct(e));
|
|
199
199
|
}
|
|
200
|
-
function
|
|
200
|
+
function ws(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 = ws(e, t);
|
|
205
|
+
return Ss(n) ? n : void 0;
|
|
206
206
|
}
|
|
207
207
|
var Kt = mt(Object, "create");
|
|
208
|
-
function
|
|
208
|
+
function Es() {
|
|
209
209
|
this.__data__ = Kt ? Kt(null) : {}, this.size = 0;
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function Ms(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 As = "__lodash_hash_undefined__", Is = Object.prototype, Cs = Is.hasOwnProperty;
|
|
216
|
+
function Os(e) {
|
|
217
217
|
var t = this.__data__;
|
|
218
218
|
if (Kt) {
|
|
219
219
|
var n = t[e];
|
|
220
|
-
return n ===
|
|
220
|
+
return n === As ? void 0 : n;
|
|
221
221
|
}
|
|
222
|
-
return
|
|
222
|
+
return Cs.call(t, e) ? t[e] : void 0;
|
|
223
223
|
}
|
|
224
|
-
var
|
|
225
|
-
function
|
|
224
|
+
var Fs = Object.prototype, ks = Fs.hasOwnProperty;
|
|
225
|
+
function Rs(e) {
|
|
226
226
|
var t = this.__data__;
|
|
227
|
-
return Kt ? t[e] !== void 0 :
|
|
227
|
+
return Kt ? t[e] !== void 0 : ks.call(t, e);
|
|
228
228
|
}
|
|
229
|
-
var
|
|
230
|
-
function
|
|
229
|
+
var Us = "__lodash_hash_undefined__";
|
|
230
|
+
function Ls(e, t) {
|
|
231
231
|
var n = this.__data__;
|
|
232
|
-
return this.size += this.has(e) ? 0 : 1, n[e] = Kt && t === void 0 ?
|
|
232
|
+
return this.size += this.has(e) ? 0 : 1, n[e] = Kt && t === void 0 ? Us : t, this;
|
|
233
233
|
}
|
|
234
234
|
function rt(e) {
|
|
235
235
|
var t = -1, n = e == null ? 0 : e.length;
|
|
@@ -238,12 +238,12 @@ 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 = Es;
|
|
242
|
+
rt.prototype.delete = Ms;
|
|
243
|
+
rt.prototype.get = Os;
|
|
244
|
+
rt.prototype.has = Rs;
|
|
245
|
+
rt.prototype.set = Ls;
|
|
246
|
+
function Ns() {
|
|
247
247
|
this.__data__ = [], this.size = 0;
|
|
248
248
|
}
|
|
249
249
|
function yn(e, t) {
|
|
@@ -255,22 +255,22 @@ function vn(e, t) {
|
|
|
255
255
|
return n;
|
|
256
256
|
return -1;
|
|
257
257
|
}
|
|
258
|
-
var
|
|
259
|
-
function
|
|
258
|
+
var Ps = Array.prototype, Ds = Ps.splice;
|
|
259
|
+
function $s(e) {
|
|
260
260
|
var t = this.__data__, n = vn(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() : Ds.call(t, n, 1), --this.size, !0;
|
|
265
265
|
}
|
|
266
|
-
function
|
|
266
|
+
function Vs(e) {
|
|
267
267
|
var t = this.__data__, n = vn(t, e);
|
|
268
268
|
return n < 0 ? void 0 : t[n][1];
|
|
269
269
|
}
|
|
270
|
-
function
|
|
270
|
+
function js(e) {
|
|
271
271
|
return vn(this.__data__, e) > -1;
|
|
272
272
|
}
|
|
273
|
-
function
|
|
273
|
+
function qs(e, t) {
|
|
274
274
|
var n = this.__data__, i = vn(n, e);
|
|
275
275
|
return i < 0 ? (++this.size, n.push([e, t])) : n[i][1] = t, this;
|
|
276
276
|
}
|
|
@@ -281,38 +281,38 @@ 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 = Ns;
|
|
285
|
+
Ze.prototype.delete = $s;
|
|
286
|
+
Ze.prototype.get = Vs;
|
|
287
|
+
Ze.prototype.has = js;
|
|
288
|
+
Ze.prototype.set = qs;
|
|
289
289
|
var Bt = mt(Pe, "Map");
|
|
290
|
-
function
|
|
290
|
+
function Ks() {
|
|
291
291
|
this.size = 0, this.__data__ = {
|
|
292
292
|
hash: new rt(),
|
|
293
293
|
map: new (Bt || 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
301
|
function bn(e, t) {
|
|
302
302
|
var n = e.__data__;
|
|
303
|
-
return
|
|
303
|
+
return Bs(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
|
|
304
304
|
}
|
|
305
|
-
function
|
|
305
|
+
function zs(e) {
|
|
306
306
|
var t = bn(this, e).delete(e);
|
|
307
307
|
return this.size -= t ? 1 : 0, t;
|
|
308
308
|
}
|
|
309
|
-
function
|
|
309
|
+
function xs(e) {
|
|
310
310
|
return bn(this, e).get(e);
|
|
311
311
|
}
|
|
312
|
-
function
|
|
312
|
+
function Hs(e) {
|
|
313
313
|
return bn(this, e).has(e);
|
|
314
314
|
}
|
|
315
|
-
function
|
|
315
|
+
function Ys(e, t) {
|
|
316
316
|
var n = bn(this, e), i = n.size;
|
|
317
317
|
return n.set(e, t), this.size += n.size == i ? 0 : 1, this;
|
|
318
318
|
}
|
|
@@ -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 = xs;
|
|
329
|
+
Xe.prototype.has = Hs;
|
|
330
|
+
Xe.prototype.set = Ys;
|
|
331
|
+
var Gs = "Expected a function";
|
|
332
|
+
function ii(e, t) {
|
|
333
333
|
if (typeof e != "function" || t != null && typeof t != "function")
|
|
334
|
-
throw new TypeError(
|
|
334
|
+
throw new TypeError(Gs);
|
|
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,64 +339,64 @@ function ai(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 (ii.Cache || Xe)(), n;
|
|
343
343
|
}
|
|
344
|
-
|
|
345
|
-
var
|
|
346
|
-
function
|
|
347
|
-
var t =
|
|
348
|
-
return n.size ===
|
|
344
|
+
ii.Cache = Xe;
|
|
345
|
+
var Ws = 500;
|
|
346
|
+
function Zs(e) {
|
|
347
|
+
var t = ii(e, function(i) {
|
|
348
|
+
return n.size === Ws && n.clear(), i;
|
|
349
349
|
}), n = t.cache;
|
|
350
350
|
return t;
|
|
351
351
|
}
|
|
352
|
-
var
|
|
352
|
+
var Xs = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Js = /\\(\\)?/g, Qs = Zs(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(Xs, function(n, i, a, o) {
|
|
355
|
+
t.push(a ? o.replace(Js, "$1") : i || n);
|
|
356
356
|
}), t;
|
|
357
357
|
});
|
|
358
|
-
function
|
|
358
|
+
function el(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;
|
|
362
362
|
}
|
|
363
|
-
var
|
|
364
|
-
function
|
|
363
|
+
var Di = tt ? tt.prototype : void 0, $i = Di ? Di.toString : void 0;
|
|
364
|
+
function Va(e) {
|
|
365
365
|
if (typeof e == "string")
|
|
366
366
|
return e;
|
|
367
367
|
if (at(e))
|
|
368
|
-
return
|
|
368
|
+
return el(e, Va) + "";
|
|
369
369
|
if (gn(e))
|
|
370
|
-
return
|
|
370
|
+
return $i ? $i.call(e) : "";
|
|
371
371
|
var t = e + "";
|
|
372
372
|
return t == "0" && 1 / e == -1 / 0 ? "-0" : t;
|
|
373
373
|
}
|
|
374
|
-
function
|
|
375
|
-
return e == null ? "" :
|
|
374
|
+
function ja(e) {
|
|
375
|
+
return e == null ? "" : Va(e);
|
|
376
376
|
}
|
|
377
|
-
function
|
|
378
|
-
return at(e) ? e :
|
|
377
|
+
function tl(e, t) {
|
|
378
|
+
return at(e) ? e : cs(e, t) ? [e] : Qs(ja(e));
|
|
379
379
|
}
|
|
380
|
-
function
|
|
380
|
+
function nl(e) {
|
|
381
381
|
if (typeof e == "string" || gn(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 il(e, t) {
|
|
387
|
+
t = tl(t, e);
|
|
388
388
|
for (var n = 0, i = t.length; e != null && n < i; )
|
|
389
|
-
e = e[
|
|
389
|
+
e = e[nl(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 : il(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 Se = "kong-ui-forms-api",
|
|
399
|
+
const Se = "kong-ui-forms-api", al = "kong-ui-forms-config", ol = "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",
|
|
@@ -404,19 +404,19 @@ const Se = "kong-ui-forms-api", rl = "kong-ui-forms-config", sl = "redis-partial
|
|
|
404
404
|
};
|
|
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
|
-
entries:
|
|
408
|
-
setPrototypeOf:
|
|
409
|
-
isFrozen:
|
|
410
|
-
getPrototypeOf:
|
|
411
|
-
getOwnPropertyDescriptor:
|
|
407
|
+
entries: qa,
|
|
408
|
+
setPrototypeOf: Vi,
|
|
409
|
+
isFrozen: rl,
|
|
410
|
+
getPrototypeOf: sl,
|
|
411
|
+
getOwnPropertyDescriptor: ll
|
|
412
412
|
} = Object;
|
|
413
413
|
let {
|
|
414
414
|
freeze: Me,
|
|
415
415
|
seal: Ne,
|
|
416
|
-
create:
|
|
416
|
+
create: Ka
|
|
417
417
|
} = Object, {
|
|
418
|
-
apply:
|
|
419
|
-
construct:
|
|
418
|
+
apply: zn,
|
|
419
|
+
construct: xn
|
|
420
420
|
} = typeof Reflect < "u" && Reflect;
|
|
421
421
|
Me || (Me = function(t) {
|
|
422
422
|
return t;
|
|
@@ -424,88 +424,88 @@ Me || (Me = function(t) {
|
|
|
424
424
|
Ne || (Ne = function(t) {
|
|
425
425
|
return t;
|
|
426
426
|
});
|
|
427
|
-
|
|
427
|
+
zn || (zn = function(t, n, i) {
|
|
428
428
|
return t.apply(n, i);
|
|
429
429
|
});
|
|
430
|
-
|
|
430
|
+
xn || (xn = function(t, n) {
|
|
431
431
|
return new t(...n);
|
|
432
432
|
});
|
|
433
|
-
const en = Ae(Array.prototype.forEach),
|
|
433
|
+
const en = Ae(Array.prototype.forEach), dl = Ae(Array.prototype.lastIndexOf), ji = Ae(Array.prototype.pop), Rt = Ae(Array.prototype.push), ul = Ae(Array.prototype.splice), nn = Ae(String.prototype.toLowerCase), Pn = Ae(String.prototype.toString), qi = Ae(String.prototype.match), Ut = Ae(String.prototype.replace), cl = Ae(String.prototype.indexOf), ml = Ae(String.prototype.trim), De = Ae(Object.prototype.hasOwnProperty), Te = Ae(RegExp.prototype.test), Lt = fl(TypeError);
|
|
434
434
|
function Ae(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 zn(e, t, i);
|
|
440
440
|
};
|
|
441
441
|
}
|
|
442
|
-
function
|
|
442
|
+
function fl(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 xn(e, n);
|
|
447
447
|
};
|
|
448
448
|
}
|
|
449
449
|
function x(e, t) {
|
|
450
450
|
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : nn;
|
|
451
|
-
|
|
451
|
+
Vi && Vi(e, null);
|
|
452
452
|
let i = t.length;
|
|
453
453
|
for (; i--; ) {
|
|
454
454
|
let a = t[i];
|
|
455
455
|
if (typeof a == "string") {
|
|
456
456
|
const o = n(a);
|
|
457
|
-
o !== a && (
|
|
457
|
+
o !== a && (rl(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 hl(e) {
|
|
464
464
|
for (let t = 0; t < e.length; t++)
|
|
465
465
|
De(e, t) || (e[t] = null);
|
|
466
466
|
return e;
|
|
467
467
|
}
|
|
468
468
|
function Ye(e) {
|
|
469
|
-
const t =
|
|
470
|
-
for (const [n, i] of
|
|
471
|
-
De(e, n) && (Array.isArray(i) ? t[n] =
|
|
469
|
+
const t = Ka(null);
|
|
470
|
+
for (const [n, i] of qa(e))
|
|
471
|
+
De(e, n) && (Array.isArray(i) ? t[n] = hl(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 = ll(e, t);
|
|
477
477
|
if (i) {
|
|
478
478
|
if (i.get)
|
|
479
479
|
return Ae(i.get);
|
|
480
480
|
if (typeof i.value == "function")
|
|
481
481
|
return Ae(i.value);
|
|
482
482
|
}
|
|
483
|
-
e =
|
|
483
|
+
e = sl(e);
|
|
484
484
|
}
|
|
485
485
|
function n() {
|
|
486
486
|
return null;
|
|
487
487
|
}
|
|
488
488
|
return n;
|
|
489
489
|
}
|
|
490
|
-
const
|
|
490
|
+
const Ki = Me(["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"]), Dn = Me(["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"]), $n = Me(["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"]), pl = Me(["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"]), Vn = Me(["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"]), gl = Me(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Bi = Me(["#text"]), zi = Me(["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"]), jn = Me(["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"]), xi = Me(["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 = Me(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), yl = Ne(/\{\{[\w\W]*|[\w\W]*\}\}/gm), vl = Ne(/<%[\w\W]*|[\w\W]*%>/gm), bl = Ne(/\$\{[\w\W]*/gm), _l = Ne(/^data-[\-\w.\u00B7-\uFFFF]+$/), Tl = Ne(/^aria-[\-\w]+$/), Ba = 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
|
+
), Sl = Ne(/^(?:\w+script|data):/i), wl = Ne(
|
|
494
494
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
495
495
|
// eslint-disable-line no-control-regex
|
|
496
|
-
),
|
|
497
|
-
var
|
|
496
|
+
), za = Ne(/^html$/i), El = Ne(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
497
|
+
var Hi = /* @__PURE__ */ Object.freeze({
|
|
498
498
|
__proto__: null,
|
|
499
|
-
ARIA_ATTR:
|
|
500
|
-
ATTR_WHITESPACE:
|
|
501
|
-
CUSTOM_ELEMENT:
|
|
502
|
-
DATA_ATTR:
|
|
503
|
-
DOCTYPE_NAME:
|
|
504
|
-
ERB_EXPR:
|
|
505
|
-
IS_ALLOWED_URI:
|
|
506
|
-
IS_SCRIPT_OR_DATA:
|
|
507
|
-
MUSTACHE_EXPR:
|
|
508
|
-
TMPLIT_EXPR:
|
|
499
|
+
ARIA_ATTR: Tl,
|
|
500
|
+
ATTR_WHITESPACE: wl,
|
|
501
|
+
CUSTOM_ELEMENT: El,
|
|
502
|
+
DATA_ATTR: _l,
|
|
503
|
+
DOCTYPE_NAME: za,
|
|
504
|
+
ERB_EXPR: vl,
|
|
505
|
+
IS_ALLOWED_URI: Ba,
|
|
506
|
+
IS_SCRIPT_OR_DATA: Sl,
|
|
507
|
+
MUSTACHE_EXPR: yl,
|
|
508
|
+
TMPLIT_EXPR: bl
|
|
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
|
+
}, Ml = function() {
|
|
518
518
|
return typeof window > "u" ? null : window;
|
|
519
|
-
},
|
|
519
|
+
}, Al = function(t, n) {
|
|
520
520
|
if (typeof t != "object" || typeof t.createPolicy != "function")
|
|
521
521
|
return null;
|
|
522
522
|
let i = null;
|
|
@@ -535,7 +535,7 @@ const Pt = {
|
|
|
535
535
|
} catch {
|
|
536
536
|
return console.warn("TrustedTypes policy " + o + " could not be created."), null;
|
|
537
537
|
}
|
|
538
|
-
},
|
|
538
|
+
}, Yi = function() {
|
|
539
539
|
return {
|
|
540
540
|
afterSanitizeAttributes: [],
|
|
541
541
|
afterSanitizeElements: [],
|
|
@@ -548,9 +548,9 @@ const Pt = {
|
|
|
548
548
|
uponSanitizeShadowNode: []
|
|
549
549
|
};
|
|
550
550
|
};
|
|
551
|
-
function
|
|
552
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
553
|
-
const t = (P) =>
|
|
551
|
+
function xa() {
|
|
552
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ml();
|
|
553
|
+
const t = (P) => xa(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;
|
|
556
556
|
let {
|
|
@@ -580,8 +580,8 @@ function Ya() {
|
|
|
580
580
|
} = n, {
|
|
581
581
|
importNode: E
|
|
582
582
|
} = i;
|
|
583
|
-
let w =
|
|
584
|
-
t.isSupported = typeof
|
|
583
|
+
let w = Yi();
|
|
584
|
+
t.isSupported = typeof qa == "function" && typeof T == "function" && v && v.createHTMLDocument !== void 0;
|
|
585
585
|
const {
|
|
586
586
|
MUSTACHE_EXPR: j,
|
|
587
587
|
ERB_EXPR: K,
|
|
@@ -591,14 +591,14 @@ function Ya() {
|
|
|
591
591
|
IS_SCRIPT_OR_DATA: fe,
|
|
592
592
|
ATTR_WHITESPACE: Be,
|
|
593
593
|
CUSTOM_ELEMENT: Sn
|
|
594
|
-
} =
|
|
594
|
+
} = Hi;
|
|
595
595
|
let {
|
|
596
596
|
IS_ALLOWED_URI: Ht
|
|
597
|
-
} =
|
|
598
|
-
const ne = x({}, [...
|
|
597
|
+
} = Hi, $ = null;
|
|
598
|
+
const ne = x({}, [...Ki, ...Dn, ...$n, ...Vn, ...Bi]);
|
|
599
599
|
let re = null;
|
|
600
|
-
const
|
|
601
|
-
let se = Object.seal(
|
|
600
|
+
const si = x({}, [...zi, ...jn, ...xi, ...tn]);
|
|
601
|
+
let se = Object.seal(Ka(null, {
|
|
602
602
|
tagNameCheck: {
|
|
603
603
|
writable: !0,
|
|
604
604
|
configurable: !1,
|
|
@@ -617,45 +617,45 @@ function Ya() {
|
|
|
617
617
|
enumerable: !0,
|
|
618
618
|
value: !1
|
|
619
619
|
}
|
|
620
|
-
})), It = null, wn = null,
|
|
621
|
-
const
|
|
620
|
+
})), It = null, wn = null, li = !0, En = !0, di = !1, ui = !0, ft = !1, Yt = !0, ot = !1, Mn = !1, An = !1, ht = !1, Gt = !1, Wt = !1, ci = !0, mi = !1;
|
|
621
|
+
const Co = "user-content-";
|
|
622
622
|
let In = !0, Ct = !1, pt = {}, gt = null;
|
|
623
|
-
const
|
|
624
|
-
let
|
|
625
|
-
const
|
|
623
|
+
const fi = x({}, ["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
|
+
let hi = null;
|
|
625
|
+
const pi = x({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
626
626
|
let Cn = null;
|
|
627
|
-
const
|
|
627
|
+
const gi = x({}, ["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", ze = "http://www.w3.org/1999/xhtml";
|
|
628
628
|
let yt = ze, On = !1, Fn = null;
|
|
629
|
-
const
|
|
629
|
+
const Oo = x({}, [Zt, Xt, ze], Pn);
|
|
630
630
|
let Jt = x({}, ["mi", "mo", "mn", "ms", "mtext"]), Qt = x({}, ["annotation-xml"]);
|
|
631
|
-
const
|
|
631
|
+
const Fo = x({}, ["title", "style", "font", "a", "script"]);
|
|
632
632
|
let Ot = null;
|
|
633
|
-
const
|
|
633
|
+
const ko = ["application/xhtml+xml", "text/html"], Ro = "text/html";
|
|
634
634
|
let ye = null, vt = null;
|
|
635
|
-
const
|
|
635
|
+
const Uo = n.createElement("form"), yi = function(l) {
|
|
636
636
|
return l instanceof RegExp || l instanceof Function;
|
|
637
637
|
}, kn = 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
|
+
ko.indexOf(l.PARSER_MEDIA_TYPE) === -1 ? Ro : l.PARSER_MEDIA_TYPE, ye = Ot === "application/xhtml+xml" ? Pn : nn, $ = De(l, "ALLOWED_TAGS") ? x({}, l.ALLOWED_TAGS, ye) : ne, re = De(l, "ALLOWED_ATTR") ? x({}, l.ALLOWED_ATTR, ye) : si, Fn = De(l, "ALLOWED_NAMESPACES") ? x({}, l.ALLOWED_NAMESPACES, Pn) : Oo, Cn = De(l, "ADD_URI_SAFE_ATTR") ? x(Ye(gi), l.ADD_URI_SAFE_ATTR, ye) : gi, hi = De(l, "ADD_DATA_URI_TAGS") ? x(Ye(pi), l.ADD_DATA_URI_TAGS, ye) : pi, gt = De(l, "FORBID_CONTENTS") ? x({}, l.FORBID_CONTENTS, ye) : fi, It = De(l, "FORBID_TAGS") ? x({}, l.FORBID_TAGS, ye) : Ye({}), wn = De(l, "FORBID_ATTR") ? x({}, l.FORBID_ATTR, ye) : Ye({}), pt = De(l, "USE_PROFILES") ? l.USE_PROFILES : !1, li = l.ALLOW_ARIA_ATTR !== !1, En = 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, An = l.FORCE_BODY || !1, ci = l.SANITIZE_DOM !== !1, mi = l.SANITIZE_NAMED_PROPS || !1, In = l.KEEP_CONTENT !== !1, Ct = l.IN_PLACE || !1, Ht = l.ALLOWED_URI_REGEXP || Ba, yt = l.NAMESPACE || ze, 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 && (En = !1), Gt && (ht = !0), pt && ($ = x({}, Bi), re = [], pt.html === !0 && (x($, Ki), x(re, zi)), pt.svg === !0 && (x($, Dn), x(re, jn), x(re, tn)), pt.svgFilters === !0 && (x($, $n), x(re, jn), x(re, tn)), pt.mathMl === !0 && (x($, Vn), x(re, xi), x(re, tn))), l.ADD_TAGS && ($ === ne && ($ = Ye($)), x($, l.ADD_TAGS, ye)), l.ADD_ATTR && (re === si && (re = Ye(re)), x(re, l.ADD_ATTR, ye)), l.ADD_URI_SAFE_ATTR && x(Cn, l.ADD_URI_SAFE_ATTR, ye), l.FORBID_CONTENTS && (gt === fi && (gt = Ye(gt)), x(gt, l.FORBID_CONTENTS, ye)), In && ($["#text"] = !0), ot && x($, ["html", "head", "body"]), $.table && (x($, ["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
|
F = l.TRUSTED_TYPES_POLICY, y = F.createHTML("");
|
|
647
647
|
} else
|
|
648
|
-
F === void 0 && (F =
|
|
648
|
+
F === void 0 && (F = Al(k, a)), F !== null && typeof y == "string" && (y = F.createHTML(""));
|
|
649
649
|
Me && Me(l), vt = l;
|
|
650
650
|
}
|
|
651
|
-
},
|
|
651
|
+
}, vi = x({}, [...Dn, ...$n, ...pl]), bi = x({}, [...Vn, ...gl]), Lo = 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 Fn[l.namespaceURI] ? l.namespaceURI === Xt ? S.namespaceURI === ze ? R === "svg" : S.namespaceURI === Zt ? R === "svg" && (te === "annotation-xml" || Jt[te]) : !!
|
|
658
|
+
return Fn[l.namespaceURI] ? l.namespaceURI === Xt ? S.namespaceURI === ze ? R === "svg" : S.namespaceURI === Zt ? R === "svg" && (te === "annotation-xml" || Jt[te]) : !!vi[R] : l.namespaceURI === Zt ? S.namespaceURI === ze ? R === "math" : S.namespaceURI === Xt ? R === "math" && Qt[te] : !!bi[R] : l.namespaceURI === ze ? S.namespaceURI === Xt && !Qt[te] || S.namespaceURI === Zt && !Jt[te] ? !1 : !bi[R] && (Fo[R] || !vi[R]) : !!(Ot === "application/xhtml+xml" && Fn[l.namespaceURI]) : !1;
|
|
659
659
|
}, Ve = function(l) {
|
|
660
660
|
Rt(t.removed, {
|
|
661
661
|
element: l
|
|
@@ -688,12 +688,12 @@ function Ya() {
|
|
|
688
688
|
S.setAttribute(l, "");
|
|
689
689
|
} catch {
|
|
690
690
|
}
|
|
691
|
-
},
|
|
691
|
+
}, _i = function(l) {
|
|
692
692
|
let S = null, R = null;
|
|
693
693
|
if (An)
|
|
694
694
|
l = "<remove></remove>" + l;
|
|
695
695
|
else {
|
|
696
|
-
const pe =
|
|
696
|
+
const pe = qi(l, /^[\r\n\t ]+/);
|
|
697
697
|
R = pe && pe[0];
|
|
698
698
|
}
|
|
699
699
|
Ot === "application/xhtml+xml" && yt === ze && (l = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + l + "</body></html>");
|
|
@@ -712,7 +712,7 @@ function Ya() {
|
|
|
712
712
|
}
|
|
713
713
|
const be = S.body || S.documentElement;
|
|
714
714
|
return l && R && be.insertBefore(n.createTextNode(R), be.childNodes[0] || null), yt === ze ? Z.call(S, ot ? "html" : "body")[0] : ot ? S.documentElement : be;
|
|
715
|
-
},
|
|
715
|
+
}, Ti = function(l) {
|
|
716
716
|
return g.call(
|
|
717
717
|
l.ownerDocument || l,
|
|
718
718
|
l,
|
|
@@ -722,7 +722,7 @@ function Ya() {
|
|
|
722
722
|
);
|
|
723
723
|
}, Rn = function(l) {
|
|
724
724
|
return l instanceof f && (typeof l.nodeName != "string" || typeof l.textContent != "string" || typeof l.removeChild != "function" || !(l.attributes instanceof p) || 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
|
};
|
|
728
728
|
function xe(P, l, S) {
|
|
@@ -730,7 +730,7 @@ function Ya() {
|
|
|
730
730
|
R.call(t, l, S, vt);
|
|
731
731
|
});
|
|
732
732
|
}
|
|
733
|
-
const
|
|
733
|
+
const wi = function(l) {
|
|
734
734
|
let S = null;
|
|
735
735
|
if (xe(w.beforeSanitizeElements, l, null), Rn(l))
|
|
736
736
|
return Ve(l), !0;
|
|
@@ -738,10 +738,10 @@ function Ya() {
|
|
|
738
738
|
if (xe(w.uponSanitizeElement, l, {
|
|
739
739
|
tagName: R,
|
|
740
740
|
allowedTags: $
|
|
741
|
-
}), Yt && l.hasChildNodes() && !
|
|
741
|
+
}), Yt && l.hasChildNodes() && !Si(l.firstElementChild) && Te(/<[/\w!]/g, l.innerHTML) && Te(/<[/\w!]/g, l.textContent) || l.nodeType === Pt.progressingInstruction || Yt && l.nodeType === Pt.comment && Te(/<[/\w]/g, l.data))
|
|
742
742
|
return Ve(l), !0;
|
|
743
743
|
if (!$[R] || It[R]) {
|
|
744
|
-
if (!It[R] &&
|
|
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
746
|
if (In && !gt[R]) {
|
|
747
747
|
const te = T(l) || l.parentNode, be = N(l) || l.childNodes;
|
|
@@ -755,29 +755,29 @@ function Ya() {
|
|
|
755
755
|
}
|
|
756
756
|
return Ve(l), !0;
|
|
757
757
|
}
|
|
758
|
-
return l instanceof d && !
|
|
758
|
+
return l instanceof d && !Lo(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, K, 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)), xe(w.afterSanitizeElements, l, null), !1);
|
|
763
|
-
},
|
|
764
|
-
if (
|
|
763
|
+
}, Ei = function(l, S, R) {
|
|
764
|
+
if (ci && (S === "id" || S === "name") && (R in n || R in Uo))
|
|
765
765
|
return !1;
|
|
766
766
|
if (!(En && !wn[S] && Te(ge, S))) {
|
|
767
|
-
if (!(
|
|
767
|
+
if (!(li && Te(Ke, S))) {
|
|
768
768
|
if (!re[S] || wn[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
|
|
772
772
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
773
|
-
!(
|
|
773
|
+
!(Mi(l) && (se.tagNameCheck instanceof RegExp && Te(se.tagNameCheck, l) || se.tagNameCheck instanceof Function && se.tagNameCheck(l)) && (se.attributeNameCheck instanceof RegExp && Te(se.attributeNameCheck, S) || se.attributeNameCheck instanceof Function && se.attributeNameCheck(S)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
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
777
|
} else if (!Cn[S]) {
|
|
778
778
|
if (!Te(Ht, Ut(R, Be, ""))) {
|
|
779
|
-
if (!((S === "src" || S === "xlink:href" || S === "href") && l !== "script" &&
|
|
780
|
-
if (!(
|
|
779
|
+
if (!((S === "src" || S === "xlink:href" || S === "href") && l !== "script" && cl(R, "data:") === 0 && hi[l])) {
|
|
780
|
+
if (!(di && !Te(fe, Ut(R, Be, "")))) {
|
|
781
781
|
if (R)
|
|
782
782
|
return !1;
|
|
783
783
|
}
|
|
@@ -787,9 +787,9 @@ function Ya() {
|
|
|
787
787
|
}
|
|
788
788
|
}
|
|
789
789
|
return !0;
|
|
790
|
+
}, Mi = function(l) {
|
|
791
|
+
return l !== "annotation-xml" && qi(l, Sn);
|
|
790
792
|
}, Ai = function(l) {
|
|
791
|
-
return l !== "annotation-xml" && Ki(l, Sn);
|
|
792
|
-
}, Ii = function(l) {
|
|
793
793
|
xe(w.beforeSanitizeAttributes, l, null);
|
|
794
794
|
const {
|
|
795
795
|
attributes: S
|
|
@@ -810,8 +810,8 @@ function Ya() {
|
|
|
810
810
|
namespaceURI: Ie,
|
|
811
811
|
value: He
|
|
812
812
|
} = be, Ft = ye(pe), Un = He;
|
|
813
|
-
let _e = pe === "value" ? Un :
|
|
814
|
-
if (R.attrName = Ft, R.attrValue = _e, R.keepAttr = !0, R.forceKeepAttr = void 0, xe(w.uponSanitizeAttribute, l, R), _e = R.attrValue,
|
|
813
|
+
let _e = pe === "value" ? Un : ml(Un);
|
|
814
|
+
if (R.attrName = Ft, R.attrValue = _e, R.keepAttr = !0, R.forceKeepAttr = void 0, xe(w.uponSanitizeAttribute, l, R), _e = R.attrValue, mi && (Ft === "id" || Ft === "name") && (bt(pe, l), _e = Co + _e), Yt && Te(/((--!?|])>)|<\/(style|title)/i, _e)) {
|
|
815
815
|
bt(pe, l);
|
|
816
816
|
continue;
|
|
817
817
|
}
|
|
@@ -821,20 +821,20 @@ function Ya() {
|
|
|
821
821
|
bt(pe, l);
|
|
822
822
|
continue;
|
|
823
823
|
}
|
|
824
|
-
if (!
|
|
824
|
+
if (!ui && Te(/\/>/i, _e)) {
|
|
825
825
|
bt(pe, l);
|
|
826
826
|
continue;
|
|
827
827
|
}
|
|
828
|
-
ft && en([j, K, H], (
|
|
829
|
-
_e = Ut(_e,
|
|
828
|
+
ft && en([j, K, H], (Ci) => {
|
|
829
|
+
_e = Ut(_e, Ci, " ");
|
|
830
830
|
});
|
|
831
|
-
const
|
|
832
|
-
if (!
|
|
831
|
+
const Ii = ye(l.nodeName);
|
|
832
|
+
if (!Ei(Ii, Ft, _e)) {
|
|
833
833
|
bt(pe, l);
|
|
834
834
|
continue;
|
|
835
835
|
}
|
|
836
836
|
if (F && typeof k == "object" && typeof k.getAttributeType == "function" && !Ie)
|
|
837
|
-
switch (k.getAttributeType(
|
|
837
|
+
switch (k.getAttributeType(Ii, Ft)) {
|
|
838
838
|
case "TrustedHTML": {
|
|
839
839
|
_e = F.createHTML(_e);
|
|
840
840
|
break;
|
|
@@ -846,22 +846,22 @@ function Ya() {
|
|
|
846
846
|
}
|
|
847
847
|
if (_e !== Un)
|
|
848
848
|
try {
|
|
849
|
-
Ie ? l.setAttributeNS(Ie, pe, _e) : l.setAttribute(pe, _e), Rn(l) ? Ve(l) :
|
|
849
|
+
Ie ? l.setAttributeNS(Ie, pe, _e) : l.setAttribute(pe, _e), Rn(l) ? Ve(l) : ji(t.removed);
|
|
850
850
|
} catch {
|
|
851
851
|
bt(pe, l);
|
|
852
852
|
}
|
|
853
853
|
}
|
|
854
854
|
xe(w.afterSanitizeAttributes, l, null);
|
|
855
|
-
},
|
|
855
|
+
}, No = function P(l) {
|
|
856
856
|
let S = null;
|
|
857
|
-
const R =
|
|
857
|
+
const R = Ti(l);
|
|
858
858
|
for (xe(w.beforeSanitizeShadowDOM, l, null); S = R.nextNode(); )
|
|
859
|
-
xe(w.uponSanitizeShadowNode, S, null),
|
|
859
|
+
xe(w.uponSanitizeShadowNode, S, null), wi(S), Ai(S), S.content instanceof o && P(S.content);
|
|
860
860
|
xe(w.afterSanitizeShadowDOM, l, null);
|
|
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 (On = !P, On && (P = "<!-->"), typeof P != "string" && !
|
|
864
|
+
if (On = !P, On && (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");
|
|
@@ -876,18 +876,18 @@ function Ya() {
|
|
|
876
876
|
throw Lt("root node is forbidden and cannot be sanitized in-place");
|
|
877
877
|
}
|
|
878
878
|
} else if (P instanceof r)
|
|
879
|
-
S =
|
|
879
|
+
S = _i("<!---->"), R = S.ownerDocument.importNode(P, !0), R.nodeType === Pt.element && R.nodeName === "BODY" || R.nodeName === "HTML" ? S = R : S.appendChild(R);
|
|
880
880
|
else {
|
|
881
881
|
if (!ht && !ft && !ot && // eslint-disable-next-line unicorn/prefer-includes
|
|
882
882
|
P.indexOf("<") === -1)
|
|
883
883
|
return F && Wt ? F.createHTML(P) : P;
|
|
884
|
-
if (S =
|
|
884
|
+
if (S = _i(P), !S)
|
|
885
885
|
return ht ? null : Wt ? y : "";
|
|
886
886
|
}
|
|
887
887
|
S && An && Ve(S.firstChild);
|
|
888
|
-
const pe =
|
|
888
|
+
const pe = Ti(Ct ? P : S);
|
|
889
889
|
for (; te = pe.nextNode(); )
|
|
890
|
-
|
|
890
|
+
wi(te), Ai(te), te.content instanceof o && No(te.content);
|
|
891
891
|
if (Ct)
|
|
892
892
|
return P;
|
|
893
893
|
if (ht) {
|
|
@@ -899,7 +899,7 @@ function Ya() {
|
|
|
899
899
|
return (re.shadowroot || re.shadowrootmode) && (be = E.call(i, be, !0)), be;
|
|
900
900
|
}
|
|
901
901
|
let Ie = ot ? S.outerHTML : S.innerHTML;
|
|
902
|
-
return ot && $["!doctype"] && S.ownerDocument && S.ownerDocument.doctype && S.ownerDocument.doctype.name && Te(
|
|
902
|
+
return ot && $["!doctype"] && S.ownerDocument && S.ownerDocument.doctype && S.ownerDocument.doctype.name && Te(za, S.ownerDocument.doctype.name) && (Ie = "<!DOCTYPE " + S.ownerDocument.doctype.name + `>
|
|
903
903
|
` + Ie), ft && en([j, K, H], (He) => {
|
|
904
904
|
Ie = Ut(Ie, He, " ");
|
|
905
905
|
}), F && Wt ? F.createHTML(Ie) : Ie;
|
|
@@ -911,41 +911,41 @@ function Ya() {
|
|
|
911
911
|
}, t.isValidAttribute = function(P, l, S) {
|
|
912
912
|
vt || kn({});
|
|
913
913
|
const R = ye(P), te = ye(l);
|
|
914
|
-
return
|
|
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 = dl(w[P], l);
|
|
920
|
+
return S === -1 ? void 0 : ul(w[P], S, 1)[0];
|
|
921
921
|
}
|
|
922
|
-
return
|
|
922
|
+
return ji(w[P]);
|
|
923
923
|
}, t.removeHooks = function(P) {
|
|
924
924
|
w[P] = [];
|
|
925
925
|
}, t.removeAllHooks = function() {
|
|
926
|
-
w =
|
|
926
|
+
w = Yi();
|
|
927
927
|
}, t;
|
|
928
928
|
}
|
|
929
|
-
var
|
|
930
|
-
function
|
|
929
|
+
var Il = xa();
|
|
930
|
+
function Cl() {
|
|
931
931
|
this.__data__ = new Ze(), this.size = 0;
|
|
932
932
|
}
|
|
933
|
-
function
|
|
933
|
+
function Ol(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 Fl(e) {
|
|
938
938
|
return this.__data__.get(e);
|
|
939
939
|
}
|
|
940
|
-
function
|
|
940
|
+
function kl(e) {
|
|
941
941
|
return this.__data__.has(e);
|
|
942
942
|
}
|
|
943
|
-
var
|
|
944
|
-
function
|
|
943
|
+
var Rl = 200;
|
|
944
|
+
function Ul(e, t) {
|
|
945
945
|
var n = this.__data__;
|
|
946
946
|
if (n instanceof Ze) {
|
|
947
947
|
var i = n.__data__;
|
|
948
|
-
if (!Bt || i.length <
|
|
948
|
+
if (!Bt || i.length < Rl - 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 = Cl;
|
|
959
|
+
At.prototype.delete = Ol;
|
|
960
|
+
At.prototype.get = Fl;
|
|
961
|
+
At.prototype.has = kl;
|
|
962
|
+
At.prototype.set = Ul;
|
|
963
963
|
var on = function() {
|
|
964
964
|
try {
|
|
965
965
|
var e = mt(Object, "defineProperty");
|
|
@@ -967,7 +967,7 @@ var on = function() {
|
|
|
967
967
|
} catch {
|
|
968
968
|
}
|
|
969
969
|
}();
|
|
970
|
-
function
|
|
970
|
+
function Ha(e, t, n) {
|
|
971
971
|
t == "__proto__" && on ? on(e, t, {
|
|
972
972
|
configurable: !0,
|
|
973
973
|
enumerable: !0,
|
|
@@ -975,155 +975,157 @@ function Ga(e, t, n) {
|
|
|
975
975
|
writable: !0
|
|
976
976
|
}) : e[t] = n;
|
|
977
977
|
}
|
|
978
|
-
var
|
|
979
|
-
function
|
|
978
|
+
var Ll = Object.prototype, Nl = Ll.hasOwnProperty;
|
|
979
|
+
function Ya(e, t, n) {
|
|
980
980
|
var i = e[t];
|
|
981
|
-
(!(
|
|
981
|
+
(!(Nl.call(e, t) && yn(i, n)) || n === void 0 && !(t in e)) && Ha(e, t, n);
|
|
982
982
|
}
|
|
983
983
|
function _n(e, t, n, i) {
|
|
984
984
|
var a = !n;
|
|
985
985
|
n || (n = {});
|
|
986
986
|
for (var o = -1, s = t.length; ++o < s; ) {
|
|
987
987
|
var r = t[o], d = void 0;
|
|
988
|
-
d === void 0 && (d = e[r]), a ?
|
|
988
|
+
d === void 0 && (d = e[r]), a ? Ha(n, r, d) : Ya(n, r, d);
|
|
989
989
|
}
|
|
990
990
|
return n;
|
|
991
991
|
}
|
|
992
|
-
function
|
|
992
|
+
function Pl(e, t) {
|
|
993
993
|
return e && _n(t, pn(t), e);
|
|
994
994
|
}
|
|
995
|
-
function
|
|
995
|
+
function Dl(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 $l = Object.prototype, Vl = $l.hasOwnProperty;
|
|
1003
|
+
function jl(e) {
|
|
1004
1004
|
if (!Fe(e))
|
|
1005
|
-
return
|
|
1006
|
-
var t =
|
|
1005
|
+
return Dl(e);
|
|
1006
|
+
var t = ti(e), n = [];
|
|
1007
1007
|
for (var i in e)
|
|
1008
|
-
i == "constructor" && (t || !
|
|
1008
|
+
i == "constructor" && (t || !Vl.call(e, i)) || n.push(i);
|
|
1009
1009
|
return n;
|
|
1010
1010
|
}
|
|
1011
1011
|
function Tn(e) {
|
|
1012
|
-
return hn(e) ?
|
|
1012
|
+
return hn(e) ? Da(e, !0) : jl(e);
|
|
1013
1013
|
}
|
|
1014
|
-
function
|
|
1014
|
+
function ql(e, t) {
|
|
1015
1015
|
return e && _n(t, Tn(t), e);
|
|
1016
1016
|
}
|
|
1017
|
-
var
|
|
1018
|
-
function
|
|
1017
|
+
var Ga = typeof exports == "object" && exports && !exports.nodeType && exports, Gi = Ga && typeof module == "object" && module && !module.nodeType && module, Kl = Gi && Gi.exports === Ga, Wi = Kl ? Pe.Buffer : void 0, Zi = Wi ? Wi.allocUnsafe : void 0;
|
|
1018
|
+
function Bl(e, t) {
|
|
1019
1019
|
if (t)
|
|
1020
1020
|
return e.slice();
|
|
1021
|
-
var n = e.length, i =
|
|
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 zl(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 xl(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);
|
|
1034
1034
|
}
|
|
1035
1035
|
return o;
|
|
1036
1036
|
}
|
|
1037
|
-
function
|
|
1037
|
+
function Wa() {
|
|
1038
1038
|
return [];
|
|
1039
1039
|
}
|
|
1040
|
-
var
|
|
1041
|
-
return e == null ? [] : (e = Object(e),
|
|
1042
|
-
return
|
|
1040
|
+
var Hl = Object.prototype, Yl = Hl.propertyIsEnumerable, Xi = Object.getOwnPropertySymbols, ai = Xi ? function(e) {
|
|
1041
|
+
return e == null ? [] : (e = Object(e), xl(Xi(e), function(t) {
|
|
1042
|
+
return Yl.call(e, t);
|
|
1043
1043
|
}));
|
|
1044
|
-
} :
|
|
1045
|
-
function
|
|
1046
|
-
return _n(e,
|
|
1044
|
+
} : Wa;
|
|
1045
|
+
function Gl(e, t) {
|
|
1046
|
+
return _n(e, ai(e), t);
|
|
1047
1047
|
}
|
|
1048
|
-
function
|
|
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
|
|
1053
|
+
var Xa = $a(Object.getPrototypeOf, Object), Wl = Object.getOwnPropertySymbols, Ja = Wl ? function(e) {
|
|
1054
1054
|
for (var t = []; e; )
|
|
1055
|
-
|
|
1055
|
+
Za(t, ai(e)), e = Xa(e);
|
|
1056
1056
|
return t;
|
|
1057
|
-
} :
|
|
1058
|
-
function
|
|
1059
|
-
return _n(e,
|
|
1057
|
+
} : Wa;
|
|
1058
|
+
function Zl(e, t) {
|
|
1059
|
+
return _n(e, Ja(e), t);
|
|
1060
1060
|
}
|
|
1061
|
-
function
|
|
1061
|
+
function Qa(e, t, n) {
|
|
1062
1062
|
var i = t(e);
|
|
1063
|
-
return at(e) ? i :
|
|
1063
|
+
return at(e) ? i : Za(i, n(e));
|
|
1064
1064
|
}
|
|
1065
|
-
function
|
|
1066
|
-
return
|
|
1065
|
+
function Xl(e) {
|
|
1066
|
+
return Qa(e, pn, ai);
|
|
1067
1067
|
}
|
|
1068
|
-
function
|
|
1069
|
-
return
|
|
1068
|
+
function Jl(e) {
|
|
1069
|
+
return Qa(e, Tn, Ja);
|
|
1070
1070
|
}
|
|
1071
|
-
var
|
|
1072
|
-
(
|
|
1073
|
-
var t = nt(e), n = t ==
|
|
1071
|
+
var Hn = mt(Pe, "DataView"), Yn = mt(Pe, "Promise"), Tt = mt(Pe, "Set"), Gn = mt(Pe, "WeakMap"), Ji = "[object Map]", Ql = "[object Object]", Qi = "[object Promise]", ea = "[object Set]", ta = "[object WeakMap]", na = "[object DataView]", ed = ct(Hn), td = ct(Bt), nd = ct(Yn), id = ct(Tt), ad = ct(Gn), Ge = nt;
|
|
1072
|
+
(Hn && Ge(new Hn(new ArrayBuffer(1))) != na || Bt && Ge(new Bt()) != Ji || Yn && Ge(Yn.resolve()) != Qi || Tt && Ge(new Tt()) != ea || Gn && Ge(new Gn()) != ta) && (Ge = function(e) {
|
|
1073
|
+
var t = nt(e), n = t == Ql ? e.constructor : void 0, i = n ? ct(n) : "";
|
|
1074
1074
|
if (i)
|
|
1075
1075
|
switch (i) {
|
|
1076
|
+
case ed:
|
|
1077
|
+
return na;
|
|
1078
|
+
case td:
|
|
1079
|
+
return Ji;
|
|
1076
1080
|
case nd:
|
|
1077
|
-
return ia;
|
|
1078
|
-
case id:
|
|
1079
1081
|
return Qi;
|
|
1080
|
-
case
|
|
1082
|
+
case id:
|
|
1081
1083
|
return ea;
|
|
1082
|
-
case
|
|
1084
|
+
case ad:
|
|
1083
1085
|
return ta;
|
|
1084
|
-
case rd:
|
|
1085
|
-
return na;
|
|
1086
1086
|
}
|
|
1087
1087
|
return t;
|
|
1088
1088
|
});
|
|
1089
|
-
var
|
|
1090
|
-
function
|
|
1089
|
+
var od = Object.prototype, rd = od.hasOwnProperty;
|
|
1090
|
+
function sd(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" && rd.call(e, "index") && (n.index = e.index, n.input = e.input), n;
|
|
1093
1093
|
}
|
|
1094
|
-
var
|
|
1095
|
-
function
|
|
1094
|
+
var ia = Pe.Uint8Array;
|
|
1095
|
+
function oi(e) {
|
|
1096
1096
|
var t = new e.constructor(e.byteLength);
|
|
1097
|
-
return new
|
|
1097
|
+
return new ia(t).set(new ia(e)), t;
|
|
1098
1098
|
}
|
|
1099
|
-
function
|
|
1100
|
-
var n = t ?
|
|
1099
|
+
function ld(e, t) {
|
|
1100
|
+
var n = t ? oi(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 dd = /\w*$/;
|
|
1104
|
+
function ud(e) {
|
|
1105
|
+
var t = new e.constructor(e.source, dd.exec(e));
|
|
1106
1106
|
return t.lastIndex = e.lastIndex, t;
|
|
1107
1107
|
}
|
|
1108
|
-
var
|
|
1109
|
-
function
|
|
1110
|
-
return
|
|
1108
|
+
var aa = tt ? tt.prototype : void 0, oa = aa ? aa.valueOf : void 0;
|
|
1109
|
+
function cd(e) {
|
|
1110
|
+
return oa ? Object(oa.call(e)) : {};
|
|
1111
1111
|
}
|
|
1112
|
-
function
|
|
1113
|
-
var n = t ?
|
|
1112
|
+
function md(e, t) {
|
|
1113
|
+
var n = t ? oi(e.buffer) : e.buffer;
|
|
1114
1114
|
return new e.constructor(n, e.byteOffset, e.length);
|
|
1115
1115
|
}
|
|
1116
|
-
var
|
|
1117
|
-
function
|
|
1116
|
+
var fd = "[object Boolean]", hd = "[object Date]", pd = "[object Map]", gd = "[object Number]", yd = "[object RegExp]", vd = "[object Set]", bd = "[object String]", _d = "[object Symbol]", Td = "[object ArrayBuffer]", Sd = "[object DataView]", wd = "[object Float32Array]", Ed = "[object Float64Array]", Md = "[object Int8Array]", Ad = "[object Int16Array]", Id = "[object Int32Array]", Cd = "[object Uint8Array]", Od = "[object Uint8ClampedArray]", Fd = "[object Uint16Array]", kd = "[object Uint32Array]";
|
|
1117
|
+
function Rd(e, t, n) {
|
|
1118
1118
|
var i = e.constructor;
|
|
1119
1119
|
switch (t) {
|
|
1120
|
-
case
|
|
1121
|
-
return
|
|
1122
|
-
case
|
|
1123
|
-
case
|
|
1120
|
+
case Td:
|
|
1121
|
+
return oi(e);
|
|
1122
|
+
case fd:
|
|
1123
|
+
case hd:
|
|
1124
1124
|
return new i(+e);
|
|
1125
|
+
case Sd:
|
|
1126
|
+
return ld(e, n);
|
|
1127
|
+
case wd:
|
|
1125
1128
|
case Ed:
|
|
1126
|
-
return ud(e, n);
|
|
1127
1129
|
case Md:
|
|
1128
1130
|
case Ad:
|
|
1129
1131
|
case Id:
|
|
@@ -1131,96 +1133,94 @@ function Ld(e, t, n) {
|
|
|
1131
1133
|
case Od:
|
|
1132
1134
|
case Fd:
|
|
1133
1135
|
case kd:
|
|
1134
|
-
|
|
1135
|
-
case
|
|
1136
|
-
return hd(e, n);
|
|
1137
|
-
case yd:
|
|
1136
|
+
return md(e, n);
|
|
1137
|
+
case pd:
|
|
1138
1138
|
return new i();
|
|
1139
|
-
case
|
|
1140
|
-
case Td:
|
|
1141
|
-
return new i(e);
|
|
1139
|
+
case gd:
|
|
1142
1140
|
case bd:
|
|
1143
|
-
return
|
|
1144
|
-
case
|
|
1141
|
+
return new i(e);
|
|
1142
|
+
case yd:
|
|
1143
|
+
return ud(e);
|
|
1144
|
+
case vd:
|
|
1145
1145
|
return new i();
|
|
1146
|
-
case
|
|
1147
|
-
return
|
|
1146
|
+
case _d:
|
|
1147
|
+
return cd(e);
|
|
1148
1148
|
}
|
|
1149
1149
|
}
|
|
1150
|
-
var
|
|
1150
|
+
var ra = Object.create, Ud = /* @__PURE__ */ function() {
|
|
1151
1151
|
function e() {
|
|
1152
1152
|
}
|
|
1153
1153
|
return function(t) {
|
|
1154
1154
|
if (!Fe(t))
|
|
1155
1155
|
return {};
|
|
1156
|
-
if (
|
|
1157
|
-
return
|
|
1156
|
+
if (ra)
|
|
1157
|
+
return ra(t);
|
|
1158
1158
|
e.prototype = t;
|
|
1159
1159
|
var n = new e();
|
|
1160
1160
|
return e.prototype = void 0, n;
|
|
1161
1161
|
};
|
|
1162
1162
|
}();
|
|
1163
|
-
function
|
|
1164
|
-
return typeof e.constructor == "function" && !
|
|
1163
|
+
function Ld(e) {
|
|
1164
|
+
return typeof e.constructor == "function" && !ti(e) ? Ud(Xa(e)) : {};
|
|
1165
1165
|
}
|
|
1166
|
-
var
|
|
1167
|
-
function
|
|
1168
|
-
return it(e) && Ge(e) ==
|
|
1166
|
+
var Nd = "[object Map]";
|
|
1167
|
+
function Pd(e) {
|
|
1168
|
+
return it(e) && Ge(e) == Nd;
|
|
1169
1169
|
}
|
|
1170
|
-
var
|
|
1171
|
-
function
|
|
1172
|
-
return it(e) && Ge(e) ==
|
|
1170
|
+
var sa = St && St.isMap, Dd = sa ? ei(sa) : Pd, $d = "[object Set]";
|
|
1171
|
+
function Vd(e) {
|
|
1172
|
+
return it(e) && Ge(e) == $d;
|
|
1173
1173
|
}
|
|
1174
|
-
var
|
|
1175
|
-
J[
|
|
1176
|
-
J[
|
|
1174
|
+
var la = St && St.isSet, jd = la ? ei(la) : Vd, qd = 1, Kd = 2, Bd = 4, eo = "[object Arguments]", zd = "[object Array]", xd = "[object Boolean]", Hd = "[object Date]", Yd = "[object Error]", to = "[object Function]", Gd = "[object GeneratorFunction]", Wd = "[object Map]", Zd = "[object Number]", no = "[object Object]", Xd = "[object RegExp]", Jd = "[object Set]", Qd = "[object String]", eu = "[object Symbol]", tu = "[object WeakMap]", nu = "[object ArrayBuffer]", iu = "[object DataView]", au = "[object Float32Array]", ou = "[object Float64Array]", ru = "[object Int8Array]", su = "[object Int16Array]", lu = "[object Int32Array]", du = "[object Uint8Array]", uu = "[object Uint8ClampedArray]", cu = "[object Uint16Array]", mu = "[object Uint32Array]", J = {};
|
|
1175
|
+
J[eo] = J[zd] = J[nu] = J[iu] = J[xd] = J[Hd] = J[au] = J[ou] = J[ru] = J[su] = J[lu] = J[Wd] = J[Zd] = J[no] = J[Xd] = J[Jd] = J[Qd] = J[eu] = J[du] = J[uu] = J[cu] = J[mu] = !0;
|
|
1176
|
+
J[Yd] = J[to] = J[tu] = !1;
|
|
1177
1177
|
function jt(e, t, n, i, a, o) {
|
|
1178
|
-
var s, r = t &
|
|
1178
|
+
var s, r = t & qd, d = t & Kd, u = t & Bd;
|
|
1179
1179
|
if (s !== void 0)
|
|
1180
1180
|
return s;
|
|
1181
1181
|
if (!Fe(e))
|
|
1182
1182
|
return e;
|
|
1183
1183
|
var p = at(e);
|
|
1184
1184
|
if (p) {
|
|
1185
|
-
if (s =
|
|
1186
|
-
return
|
|
1185
|
+
if (s = sd(e), !r)
|
|
1186
|
+
return zl(e, s);
|
|
1187
1187
|
} else {
|
|
1188
|
-
var f = Ge(e), b = f ==
|
|
1189
|
-
if (
|
|
1190
|
-
return
|
|
1191
|
-
if (f ==
|
|
1192
|
-
if (s = d || b ? {} :
|
|
1193
|
-
return d ?
|
|
1188
|
+
var f = Ge(e), b = f == to || f == Gd;
|
|
1189
|
+
if (Ua(e))
|
|
1190
|
+
return Bl(e, r);
|
|
1191
|
+
if (f == no || f == eo || b && !a) {
|
|
1192
|
+
if (s = d || b ? {} : Ld(e), !r)
|
|
1193
|
+
return d ? Zl(e, ql(s, e)) : Gl(e, Pl(s, e));
|
|
1194
1194
|
} else {
|
|
1195
1195
|
if (!J[f])
|
|
1196
1196
|
return a ? e : {};
|
|
1197
|
-
s =
|
|
1197
|
+
s = Rd(e, f, r);
|
|
1198
1198
|
}
|
|
1199
1199
|
}
|
|
1200
1200
|
o || (o = new At());
|
|
1201
1201
|
var k = o.get(e);
|
|
1202
1202
|
if (k)
|
|
1203
1203
|
return k;
|
|
1204
|
-
o.set(e, s),
|
|
1204
|
+
o.set(e, s), jd(e) ? e.forEach(function(A) {
|
|
1205
1205
|
s.add(jt(A, t, n, A, e, o));
|
|
1206
|
-
}) :
|
|
1206
|
+
}) : Dd(e) && e.forEach(function(A, C) {
|
|
1207
1207
|
s.set(C, jt(A, t, n, C, e, o));
|
|
1208
1208
|
});
|
|
1209
|
-
var q = u ? d ?
|
|
1210
|
-
return
|
|
1211
|
-
h && (C = A, A = e[C]),
|
|
1209
|
+
var q = u ? d ? Jl : Xl : d ? Tn : pn, h = p ? void 0 : q(e);
|
|
1210
|
+
return Ca(h || e, function(A, C) {
|
|
1211
|
+
h && (C = A, A = e[C]), Ya(s, C, jt(A, t, n, C, e, o));
|
|
1212
1212
|
}), s;
|
|
1213
1213
|
}
|
|
1214
|
-
var
|
|
1214
|
+
var fu = 1, hu = 4;
|
|
1215
1215
|
function We(e) {
|
|
1216
|
-
return jt(e,
|
|
1216
|
+
return jt(e, fu | hu);
|
|
1217
1217
|
}
|
|
1218
|
-
const
|
|
1219
|
-
var
|
|
1218
|
+
const ri = (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 pu = "[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) == pu;
|
|
1222
1222
|
}
|
|
1223
|
-
const
|
|
1223
|
+
const io = {
|
|
1224
1224
|
methods: {
|
|
1225
1225
|
// Get style classes of field
|
|
1226
1226
|
getFieldRowClasses(e) {
|
|
@@ -1257,38 +1257,38 @@ const oo = {
|
|
|
1257
1257
|
};
|
|
1258
1258
|
var qn = function() {
|
|
1259
1259
|
return Pe.Date.now();
|
|
1260
|
-
},
|
|
1261
|
-
function
|
|
1262
|
-
for (var t = e.length; t-- &&
|
|
1260
|
+
}, gu = /\s/;
|
|
1261
|
+
function yu(e) {
|
|
1262
|
+
for (var t = e.length; t-- && gu.test(e.charAt(t)); )
|
|
1263
1263
|
;
|
|
1264
1264
|
return t;
|
|
1265
1265
|
}
|
|
1266
|
-
var
|
|
1267
|
-
function
|
|
1268
|
-
return e && e.slice(0,
|
|
1266
|
+
var vu = /^\s+/;
|
|
1267
|
+
function bu(e) {
|
|
1268
|
+
return e && e.slice(0, yu(e) + 1).replace(vu, "");
|
|
1269
1269
|
}
|
|
1270
|
-
var
|
|
1271
|
-
function
|
|
1270
|
+
var ua = NaN, _u = /^[-+]0x[0-9a-f]+$/i, Tu = /^0b[01]+$/i, Su = /^0o[0-7]+$/i, wu = parseInt;
|
|
1271
|
+
function Wn(e) {
|
|
1272
1272
|
if (typeof e == "number")
|
|
1273
1273
|
return e;
|
|
1274
1274
|
if (gn(e))
|
|
1275
|
-
return
|
|
1275
|
+
return ua;
|
|
1276
1276
|
if (Fe(e)) {
|
|
1277
1277
|
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
1278
1278
|
e = Fe(t) ? t + "" : t;
|
|
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 = bu(e);
|
|
1283
|
+
var n = Tu.test(e);
|
|
1284
|
+
return n || Su.test(e) ? wu(e.slice(2), n ? 2 : 8) : _u.test(e) ? ua : +e;
|
|
1285
1285
|
}
|
|
1286
|
-
var
|
|
1286
|
+
var Eu = "Expected a function", Mu = Math.max, Au = Math.min;
|
|
1287
1287
|
function wt(e, t, n) {
|
|
1288
1288
|
var i, a, o, s, r, d, u = 0, p = !1, f = !1, b = !0;
|
|
1289
1289
|
if (typeof e != "function")
|
|
1290
|
-
throw new TypeError(
|
|
1291
|
-
t =
|
|
1290
|
+
throw new TypeError(Eu);
|
|
1291
|
+
t = Wn(t) || 0, Fe(n) && (p = !!n.leading, f = "maxWait" in n, o = f ? Mu(Wn(n.maxWait) || 0, t) : o, b = "trailing" in n ? !!n.trailing : b);
|
|
1292
1292
|
function k(v) {
|
|
1293
1293
|
var g = i, V = a;
|
|
1294
1294
|
return i = a = void 0, u = v, s = e.apply(V, g), s;
|
|
@@ -1298,7 +1298,7 @@ function wt(e, t, n) {
|
|
|
1298
1298
|
}
|
|
1299
1299
|
function h(v) {
|
|
1300
1300
|
var g = v - d, V = v - u, Z = t - g;
|
|
1301
|
-
return f ?
|
|
1301
|
+
return f ? Au(Z, o - V) : Z;
|
|
1302
1302
|
}
|
|
1303
1303
|
function A(v) {
|
|
1304
1304
|
var g = v - d, V = v - u;
|
|
@@ -1331,11 +1331,11 @@ function wt(e, t, n) {
|
|
|
1331
1331
|
}
|
|
1332
1332
|
return y.cancel = T, y.flush = F, y;
|
|
1333
1333
|
}
|
|
1334
|
-
var
|
|
1335
|
-
function
|
|
1336
|
-
return this.__data__.set(e,
|
|
1334
|
+
var Iu = "__lodash_hash_undefined__";
|
|
1335
|
+
function Cu(e) {
|
|
1336
|
+
return this.__data__.set(e, Iu), this;
|
|
1337
1337
|
}
|
|
1338
|
-
function
|
|
1338
|
+
function Ou(e) {
|
|
1339
1339
|
return this.__data__.has(e);
|
|
1340
1340
|
}
|
|
1341
1341
|
function rn(e) {
|
|
@@ -1343,51 +1343,51 @@ 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 = Cu;
|
|
1347
|
+
rn.prototype.has = Ou;
|
|
1348
|
+
function Fu(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 ku(e) {
|
|
1355
1355
|
return e !== e;
|
|
1356
1356
|
}
|
|
1357
|
-
function
|
|
1357
|
+
function Ru(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 Uu(e, t, n) {
|
|
1364
|
+
return t === t ? Ru(e, t, n) : Fu(e, ku, n);
|
|
1365
1365
|
}
|
|
1366
|
-
function
|
|
1366
|
+
function Lu(e, t) {
|
|
1367
1367
|
var n = e == null ? 0 : e.length;
|
|
1368
|
-
return !!n &&
|
|
1368
|
+
return !!n && Uu(e, t, 0) > -1;
|
|
1369
1369
|
}
|
|
1370
|
-
function
|
|
1370
|
+
function Nu(e, t) {
|
|
1371
1371
|
return e.has(t);
|
|
1372
1372
|
}
|
|
1373
|
-
function
|
|
1373
|
+
function Pu() {
|
|
1374
1374
|
}
|
|
1375
|
-
function
|
|
1375
|
+
function ao(e) {
|
|
1376
1376
|
var t = -1, n = Array(e.size);
|
|
1377
1377
|
return e.forEach(function(i) {
|
|
1378
1378
|
n[++t] = i;
|
|
1379
1379
|
}), n;
|
|
1380
1380
|
}
|
|
1381
|
-
var
|
|
1381
|
+
var Du = 1 / 0, $u = Tt && 1 / ao(new Tt([, -0]))[1] == Du ? function(e) {
|
|
1382
1382
|
return new Tt(e);
|
|
1383
|
-
} :
|
|
1384
|
-
function
|
|
1385
|
-
var i = -1, a =
|
|
1386
|
-
if (o >=
|
|
1387
|
-
var u =
|
|
1383
|
+
} : Pu, Vu = 200;
|
|
1384
|
+
function ju(e, t, n) {
|
|
1385
|
+
var i = -1, a = Lu, o = e.length, s = !0, r = [], d = r;
|
|
1386
|
+
if (o >= Vu) {
|
|
1387
|
+
var u = $u(e);
|
|
1388
1388
|
if (u)
|
|
1389
|
-
return
|
|
1390
|
-
s = !1, a =
|
|
1389
|
+
return ao(u);
|
|
1390
|
+
s = !1, a = Nu, d = new rn();
|
|
1391
1391
|
} else
|
|
1392
1392
|
d = r;
|
|
1393
1393
|
e:
|
|
@@ -1402,21 +1402,21 @@ function Ku(e, t, n) {
|
|
|
1402
1402
|
}
|
|
1403
1403
|
return r;
|
|
1404
1404
|
}
|
|
1405
|
-
function
|
|
1406
|
-
return e && e.length ?
|
|
1405
|
+
function oo(e) {
|
|
1406
|
+
return e && e.length ? ju(e) : [];
|
|
1407
1407
|
}
|
|
1408
|
-
var
|
|
1409
|
-
function
|
|
1410
|
-
var t = ++
|
|
1411
|
-
return
|
|
1408
|
+
var qu = 0;
|
|
1409
|
+
function ro(e) {
|
|
1410
|
+
var t = ++qu;
|
|
1411
|
+
return ja(e) + t;
|
|
1412
1412
|
}
|
|
1413
|
-
var
|
|
1414
|
-
function
|
|
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", Ku = "\\d{3}", Bu = "\\d{4}", qt = "[^\\s]+", lo = /\[([^]*?)\]/gm;
|
|
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));
|
|
1417
1417
|
return n;
|
|
1418
1418
|
}
|
|
1419
|
-
var
|
|
1419
|
+
var ca = function(e) {
|
|
1420
1420
|
return function(t, n) {
|
|
1421
1421
|
var i = n[e].map(function(o) {
|
|
1422
1422
|
return o.toLowerCase();
|
|
@@ -1434,7 +1434,7 @@ function lt(e) {
|
|
|
1434
1434
|
}
|
|
1435
1435
|
return e;
|
|
1436
1436
|
}
|
|
1437
|
-
var
|
|
1437
|
+
var co = [
|
|
1438
1438
|
"Sunday",
|
|
1439
1439
|
"Monday",
|
|
1440
1440
|
"Tuesday",
|
|
@@ -1442,7 +1442,7 @@ var fo = [
|
|
|
1442
1442
|
"Thursday",
|
|
1443
1443
|
"Friday",
|
|
1444
1444
|
"Saturday"
|
|
1445
|
-
],
|
|
1445
|
+
], mo = [
|
|
1446
1446
|
"January",
|
|
1447
1447
|
"February",
|
|
1448
1448
|
"March",
|
|
@@ -1455,24 +1455,24 @@ var fo = [
|
|
|
1455
1455
|
"October",
|
|
1456
1456
|
"November",
|
|
1457
1457
|
"December"
|
|
1458
|
-
],
|
|
1459
|
-
dayNamesShort:
|
|
1460
|
-
dayNames:
|
|
1461
|
-
monthNamesShort:
|
|
1462
|
-
monthNames:
|
|
1458
|
+
], zu = uo(mo, 3), xu = uo(co, 3), fo = {
|
|
1459
|
+
dayNamesShort: xu,
|
|
1460
|
+
dayNames: co,
|
|
1461
|
+
monthNamesShort: zu,
|
|
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({},
|
|
1467
|
+
}, sn = lt({}, fo), Hu = function(e) {
|
|
1468
1468
|
return sn = lt(sn, e);
|
|
1469
|
-
},
|
|
1469
|
+
}, ma = function(e) {
|
|
1470
1470
|
return e.replace(/[|\\{()[^$+*?.-]/g, "\\$&");
|
|
1471
1471
|
}, Ce = function(e, t) {
|
|
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
|
+
}, Yu = {
|
|
1476
1476
|
D: function(e) {
|
|
1477
1477
|
return String(e.getDate());
|
|
1478
1478
|
},
|
|
@@ -1559,16 +1559,16 @@ var fo = [
|
|
|
1559
1559
|
var t = e.getTimezoneOffset();
|
|
1560
1560
|
return (t > 0 ? "-" : "+") + Ce(Math.floor(Math.abs(t) / 60), 2) + ":" + Ce(Math.abs(t) % 60, 2);
|
|
1561
1561
|
}
|
|
1562
|
-
},
|
|
1562
|
+
}, fa = function(e) {
|
|
1563
1563
|
return +e - 1;
|
|
1564
|
-
},
|
|
1564
|
+
}, ha = [null, Qe], pa = [null, qt], ga = [
|
|
1565
1565
|
"isPm",
|
|
1566
1566
|
qt,
|
|
1567
1567
|
function(e, t) {
|
|
1568
1568
|
var n = e.toLowerCase();
|
|
1569
1569
|
return n === t.amPm[0] ? 0 : n === t.amPm[1] ? 1 : null;
|
|
1570
1570
|
}
|
|
1571
|
-
],
|
|
1571
|
+
], ya = [
|
|
1572
1572
|
"timezoneOffset",
|
|
1573
1573
|
"[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",
|
|
1574
1574
|
function(e) {
|
|
@@ -1579,14 +1579,14 @@ var fo = [
|
|
|
1579
1579
|
}
|
|
1580
1580
|
return 0;
|
|
1581
1581
|
}
|
|
1582
|
-
],
|
|
1582
|
+
], Gu = {
|
|
1583
1583
|
D: ["day", Qe],
|
|
1584
1584
|
DD: ["day", Je],
|
|
1585
1585
|
Do: ["day", Qe + qt, function(e) {
|
|
1586
1586
|
return parseInt(e, 10);
|
|
1587
1587
|
}],
|
|
1588
|
-
M: ["month", Qe,
|
|
1589
|
-
MM: ["month", Je,
|
|
1588
|
+
M: ["month", Qe, fa],
|
|
1589
|
+
MM: ["month", Je, fa],
|
|
1590
1590
|
YY: [
|
|
1591
1591
|
"year",
|
|
1592
1592
|
Je,
|
|
@@ -1603,24 +1603,24 @@ var fo = [
|
|
|
1603
1603
|
mm: ["minute", Je],
|
|
1604
1604
|
s: ["second", Qe],
|
|
1605
1605
|
ss: ["second", Je],
|
|
1606
|
-
YYYY: ["year",
|
|
1606
|
+
YYYY: ["year", Bu],
|
|
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",
|
|
1614
|
-
d:
|
|
1615
|
-
dd:
|
|
1616
|
-
ddd:
|
|
1617
|
-
dddd:
|
|
1618
|
-
MMM: ["month", qt,
|
|
1619
|
-
MMMM: ["month", qt,
|
|
1620
|
-
a:
|
|
1621
|
-
A:
|
|
1622
|
-
ZZ:
|
|
1623
|
-
Z:
|
|
1613
|
+
SSS: ["millisecond", Ku],
|
|
1614
|
+
d: ha,
|
|
1615
|
+
dd: ha,
|
|
1616
|
+
ddd: pa,
|
|
1617
|
+
dddd: pa,
|
|
1618
|
+
MMM: ["month", qt, ca("monthNamesShort")],
|
|
1619
|
+
MMMM: ["month", qt, ca("monthNames")],
|
|
1620
|
+
a: ga,
|
|
1621
|
+
A: ga,
|
|
1622
|
+
ZZ: ya,
|
|
1623
|
+
Z: ya
|
|
1624
1624
|
}, ln = {
|
|
1625
1625
|
default: "ddd MMM DD YYYY HH:mm:ss",
|
|
1626
1626
|
shortDate: "M/D/YY",
|
|
@@ -1632,24 +1632,24 @@ var fo = [
|
|
|
1632
1632
|
shortTime: "HH:mm",
|
|
1633
1633
|
mediumTime: "HH:mm:ss",
|
|
1634
1634
|
longTime: "HH:mm:ss.SSS"
|
|
1635
|
-
},
|
|
1635
|
+
}, Wu = function(e) {
|
|
1636
1636
|
return lt(ln, e);
|
|
1637
|
-
},
|
|
1637
|
+
}, Zu = 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;
|
|
1641
1641
|
var i = [];
|
|
1642
|
-
t = t.replace(
|
|
1642
|
+
t = t.replace(lo, function(o, s) {
|
|
1643
1643
|
return i.push(s), "@@@";
|
|
1644
1644
|
});
|
|
1645
1645
|
var a = lt(lt({}, sn), n);
|
|
1646
|
-
return t = t.replace(
|
|
1647
|
-
return
|
|
1646
|
+
return t = t.replace(so, function(o) {
|
|
1647
|
+
return Yu[o](e, a);
|
|
1648
1648
|
}), t.replace(/@@@/g, function() {
|
|
1649
1649
|
return i.shift();
|
|
1650
1650
|
});
|
|
1651
1651
|
};
|
|
1652
|
-
function
|
|
1652
|
+
function Xu(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)
|
|
@@ -1664,11 +1664,11 @@ function Qu(e, t, n) {
|
|
|
1664
1664
|
millisecond: 0,
|
|
1665
1665
|
isPm: null,
|
|
1666
1666
|
timezoneOffset: null
|
|
1667
|
-
}, o = [], s = [], r = t.replace(
|
|
1668
|
-
return s.push(
|
|
1667
|
+
}, o = [], s = [], r = t.replace(lo, function(F, y) {
|
|
1668
|
+
return s.push(ma(y)), "@@@";
|
|
1669
1669
|
}), d = {}, u = {};
|
|
1670
|
-
r =
|
|
1671
|
-
var y =
|
|
1670
|
+
r = ma(r).replace(so, function(F) {
|
|
1671
|
+
var y = Gu[F], v = y[0], g = y[1], V = y[3];
|
|
1672
1672
|
if (d[v])
|
|
1673
1673
|
throw new Error("Invalid format. " + v + " specified twice in format");
|
|
1674
1674
|
return d[v] = !0, V && (u[V] = !0), o.push(y), "(" + g + ")";
|
|
@@ -1705,13 +1705,13 @@ function Qu(e, t, n) {
|
|
|
1705
1705
|
return C;
|
|
1706
1706
|
}
|
|
1707
1707
|
var _t = {
|
|
1708
|
-
format:
|
|
1709
|
-
parse:
|
|
1710
|
-
defaultI18n:
|
|
1711
|
-
setGlobalDateI18n:
|
|
1712
|
-
setGlobalDateMasks:
|
|
1708
|
+
format: Zu,
|
|
1709
|
+
parse: Xu,
|
|
1710
|
+
defaultI18n: fo,
|
|
1711
|
+
setGlobalDateI18n: Hu,
|
|
1712
|
+
setGlobalDateMasks: Wu
|
|
1713
1713
|
};
|
|
1714
|
-
function
|
|
1714
|
+
function Ju(e, t, n) {
|
|
1715
1715
|
switch (n.length) {
|
|
1716
1716
|
case 0:
|
|
1717
1717
|
return e.call(t);
|
|
@@ -1724,91 +1724,91 @@ function ec(e, t, n) {
|
|
|
1724
1724
|
}
|
|
1725
1725
|
return e.apply(t, n);
|
|
1726
1726
|
}
|
|
1727
|
-
var
|
|
1728
|
-
function
|
|
1729
|
-
return t =
|
|
1730
|
-
for (var i = arguments, a = -1, o =
|
|
1727
|
+
var va = Math.max;
|
|
1728
|
+
function Qu(e, t, n) {
|
|
1729
|
+
return t = va(t === void 0 ? e.length - 1 : t, 0), function() {
|
|
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), Ju(e, this, r);
|
|
1736
1736
|
};
|
|
1737
1737
|
}
|
|
1738
|
-
function
|
|
1738
|
+
function ec(e) {
|
|
1739
1739
|
return function() {
|
|
1740
1740
|
return e;
|
|
1741
1741
|
};
|
|
1742
1742
|
}
|
|
1743
|
-
var
|
|
1743
|
+
var tc = on ? function(e, t) {
|
|
1744
1744
|
return on(e, "toString", {
|
|
1745
1745
|
configurable: !0,
|
|
1746
1746
|
enumerable: !1,
|
|
1747
|
-
value:
|
|
1747
|
+
value: ec(t),
|
|
1748
1748
|
writable: !0
|
|
1749
1749
|
});
|
|
1750
|
-
} :
|
|
1751
|
-
function
|
|
1750
|
+
} : ni, nc = 800, ic = 16, ac = Date.now;
|
|
1751
|
+
function oc(e) {
|
|
1752
1752
|
var t = 0, n = 0;
|
|
1753
1753
|
return function() {
|
|
1754
|
-
var i =
|
|
1754
|
+
var i = ac(), a = ic - (i - n);
|
|
1755
1755
|
if (n = i, a > 0) {
|
|
1756
|
-
if (++t >=
|
|
1756
|
+
if (++t >= nc)
|
|
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 rc = oc(tc);
|
|
1764
|
+
function sc(e, t) {
|
|
1765
|
+
return rc(Qu(e, t, ni), e + "");
|
|
1766
1766
|
}
|
|
1767
|
-
function
|
|
1767
|
+
function lc(e, t, n) {
|
|
1768
1768
|
if (!Fe(n))
|
|
1769
1769
|
return !1;
|
|
1770
1770
|
var i = typeof t;
|
|
1771
|
-
return (i == "number" ? hn(n) &&
|
|
1771
|
+
return (i == "number" ? hn(n) && La(t, n.length) : i == "string" && t in n) ? yn(n[t], e) : !1;
|
|
1772
1772
|
}
|
|
1773
|
-
var
|
|
1773
|
+
var ho = Object.prototype, dc = ho.hasOwnProperty, uc = sc(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 &&
|
|
1776
|
+
for (a && lc(t[0], t[1], a) && (i = 1); ++n < i; )
|
|
1777
1777
|
for (var o = t[n], s = Tn(o), r = -1, d = s.length; ++r < d; ) {
|
|
1778
1778
|
var u = s[r], p = e[u];
|
|
1779
|
-
(p === void 0 || yn(p,
|
|
1779
|
+
(p === void 0 || yn(p, ho[u]) && !dc.call(e, u)) && (e[u] = o[u]);
|
|
1780
1780
|
}
|
|
1781
1781
|
return e;
|
|
1782
|
-
}),
|
|
1783
|
-
function
|
|
1784
|
-
return typeof e == "number" &&
|
|
1782
|
+
}), cc = Pe.isFinite;
|
|
1783
|
+
function mc(e) {
|
|
1784
|
+
return typeof e == "number" && cc(e);
|
|
1785
1785
|
}
|
|
1786
|
-
var
|
|
1787
|
-
function
|
|
1786
|
+
var ba = 1 / 0, fc = 17976931348623157e292;
|
|
1787
|
+
function hc(e) {
|
|
1788
1788
|
if (!e)
|
|
1789
1789
|
return e === 0 ? e : 0;
|
|
1790
|
-
if (e =
|
|
1790
|
+
if (e = Wn(e), e === ba || e === -ba) {
|
|
1791
1791
|
var t = e < 0 ? -1 : 1;
|
|
1792
|
-
return t *
|
|
1792
|
+
return t * fc;
|
|
1793
1793
|
}
|
|
1794
1794
|
return e === e ? e : 0;
|
|
1795
1795
|
}
|
|
1796
|
-
function
|
|
1797
|
-
var t =
|
|
1796
|
+
function pc(e) {
|
|
1797
|
+
var t = hc(e), n = t % 1;
|
|
1798
1798
|
return t === t ? n ? t - n : t : 0;
|
|
1799
1799
|
}
|
|
1800
|
-
function
|
|
1801
|
-
return typeof e == "number" && e ==
|
|
1800
|
+
function gc(e) {
|
|
1801
|
+
return typeof e == "number" && e == pc(e);
|
|
1802
1802
|
}
|
|
1803
|
-
var
|
|
1803
|
+
var yc = "[object Number]";
|
|
1804
1804
|
function dn(e) {
|
|
1805
|
-
return typeof e == "number" || it(e) && nt(e) ==
|
|
1805
|
+
return typeof e == "number" || it(e) && nt(e) == yc;
|
|
1806
1806
|
}
|
|
1807
|
-
const
|
|
1807
|
+
const vc = {
|
|
1808
1808
|
packageName: "forms",
|
|
1809
1809
|
disable_global_radio: "The plugin is set to 'Scoped' by default when configured under a {scope}. To configure a global plugin, navigate to the global plugin list page.",
|
|
1810
1810
|
disable_source_scope_change: "Changing the {scope} is not allowed when configuring a plugin under it."
|
|
1811
|
-
},
|
|
1811
|
+
}, bc = {
|
|
1812
1812
|
view_advanced: "View advanced parameters",
|
|
1813
1813
|
window_type: {
|
|
1814
1814
|
label: "Rate Limit Window Type",
|
|
@@ -1852,7 +1852,7 @@ const _c = {
|
|
|
1852
1852
|
title: "Configure your Redis",
|
|
1853
1853
|
address_example: "e.g. localhost:6379"
|
|
1854
1854
|
}
|
|
1855
|
-
},
|
|
1855
|
+
}, _c = {
|
|
1856
1856
|
field_is_required: "This field is required",
|
|
1857
1857
|
invalid_format: "Invalid format",
|
|
1858
1858
|
number_too_small: "The number is too small. Minimum: {0}",
|
|
@@ -1874,7 +1874,7 @@ const _c = {
|
|
|
1874
1874
|
invalid_card_number: "Invalid card number",
|
|
1875
1875
|
invalid_text_contain_number: "Invalid text - cannot contains numbers or special characters",
|
|
1876
1876
|
invalid_tex_contain_spec: "Invalid text - cannot contains special characters"
|
|
1877
|
-
},
|
|
1877
|
+
}, Tc = {
|
|
1878
1878
|
title: "Redis Configuration",
|
|
1879
1879
|
shared_configuration: {
|
|
1880
1880
|
label: "Use shared configuration",
|
|
@@ -1909,7 +1909,7 @@ const _c = {
|
|
|
1909
1909
|
alert: "Note: For custom plugins, we cannot determine the correct Redis configuration type. Please ensure you select the appropriate option manually.",
|
|
1910
1910
|
tooltip: "To apply a shared redis configuration, the redis fields must defined as Kong plugins in plugin schema."
|
|
1911
1911
|
}
|
|
1912
|
-
},
|
|
1912
|
+
}, Sc = {
|
|
1913
1913
|
auto_suggest: {
|
|
1914
1914
|
error: {
|
|
1915
1915
|
load_entity: "There was an error loading {entity}"
|
|
@@ -1919,13 +1919,13 @@ const _c = {
|
|
|
1919
1919
|
no_results: "No results",
|
|
1920
1920
|
loading: "Loading..."
|
|
1921
1921
|
}
|
|
1922
|
-
},
|
|
1922
|
+
}, wc = {
|
|
1923
1923
|
labels: {
|
|
1924
1924
|
on: "On",
|
|
1925
1925
|
off: "Off"
|
|
1926
1926
|
}
|
|
1927
1927
|
}, Re = {
|
|
1928
|
-
general:
|
|
1928
|
+
general: vc,
|
|
1929
1929
|
"post-function": {
|
|
1930
1930
|
tags: {
|
|
1931
1931
|
hint: "e.g. tag1, tag2, tag3",
|
|
@@ -1986,11 +1986,11 @@ const _c = {
|
|
|
1986
1986
|
newElementButtonLabel: "+ Add"
|
|
1987
1987
|
}
|
|
1988
1988
|
},
|
|
1989
|
-
rla:
|
|
1990
|
-
validators:
|
|
1991
|
-
redis:
|
|
1992
|
-
fields:
|
|
1993
|
-
vfg:
|
|
1989
|
+
rla: bc,
|
|
1990
|
+
validators: _c,
|
|
1991
|
+
redis: Tc,
|
|
1992
|
+
fields: Sc,
|
|
1993
|
+
vfg: wc
|
|
1994
1994
|
}, { t: le } = ke("en-us", Re), ve = {
|
|
1995
1995
|
fieldIsRequired: le("validators.field_is_required"),
|
|
1996
1996
|
invalidFormat: le("validators.invalid_format"),
|
|
@@ -2022,11 +2022,11 @@ const _c = {
|
|
|
2022
2022
|
required: (e, t, n, i = ve) => Ue(e, t.required, i) || [],
|
|
2023
2023
|
number: (e, t, n, i = ve) => {
|
|
2024
2024
|
let a = Ue(e, t.required, i);
|
|
2025
|
-
return a != null || (a = [],
|
|
2025
|
+
return a != null || (a = [], mc(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;
|
|
2026
2026
|
},
|
|
2027
2027
|
integer: (e, t, n, i = ve) => {
|
|
2028
2028
|
let a = Ue(e, t.required, i);
|
|
2029
|
-
return a != null || (a = [], a.concat(dt.number(e, t, n, i)),
|
|
2029
|
+
return a != null || (a = [], a.concat(dt.number(e, t, n, i)), gc(e) || a.push(ie(i.invalidInteger))), a;
|
|
2030
2030
|
},
|
|
2031
2031
|
double: (e, t, n, i = ve) => {
|
|
2032
2032
|
const a = Ue(e, t.required, i);
|
|
@@ -2102,9 +2102,9 @@ const _c = {
|
|
|
2102
2102
|
};
|
|
2103
2103
|
Object.keys(dt).forEach((e) => {
|
|
2104
2104
|
const t = dt[e];
|
|
2105
|
-
X(t) && (t.locale = (n) => (i, a, o) => t(i, a, o,
|
|
2105
|
+
X(t) && (t.locale = (n) => (i, a, o) => t(i, a, o, uc(n, ve)));
|
|
2106
2106
|
});
|
|
2107
|
-
function
|
|
2107
|
+
function _a(e) {
|
|
2108
2108
|
return st(e) ? dt[e] != null ? dt[e] : (console.warn(`'${e}' is not a validator function!`), null) : e;
|
|
2109
2109
|
}
|
|
2110
2110
|
function Kn(e, t, n) {
|
|
@@ -2153,8 +2153,8 @@ const $e = {
|
|
|
2153
2153
|
if (this.schema.validator && this.schema.readonly !== !0 && this.disabled !== !0) {
|
|
2154
2154
|
const a = [];
|
|
2155
2155
|
Array.isArray(this.schema.validator) ? we(this.schema.validator, (o) => {
|
|
2156
|
-
a.push(
|
|
2157
|
-
}) : a.push(
|
|
2156
|
+
a.push(_a(o).bind(this));
|
|
2157
|
+
}) : a.push(_a(this.schema.validator).bind(this)), we(a, (o) => {
|
|
2158
2158
|
if (t)
|
|
2159
2159
|
n.push(o(this.value, this.schema, this.model));
|
|
2160
2160
|
else {
|
|
@@ -2169,7 +2169,7 @@ const $e = {
|
|
|
2169
2169
|
}
|
|
2170
2170
|
const i = (a) => {
|
|
2171
2171
|
let o = [];
|
|
2172
|
-
we(
|
|
2172
|
+
we(oo(a), (r) => {
|
|
2173
2173
|
Array.isArray(r) && r.length > 0 ? o = o.concat(r) : st(r) && o.push(r);
|
|
2174
2174
|
}), X(this.schema.onValidated) && this.schema.onValidated.call(this, this.model, o, this.schema);
|
|
2175
2175
|
const s = o.length === 0;
|
|
@@ -2210,7 +2210,7 @@ const $e = {
|
|
|
2210
2210
|
},
|
|
2211
2211
|
getFieldID(e, t = !1) {
|
|
2212
2212
|
const n = G(this.formOptions, "fieldIdPrefix", "");
|
|
2213
|
-
return
|
|
2213
|
+
return ri(e, n) + (t ? "-" + ro() : "");
|
|
2214
2214
|
},
|
|
2215
2215
|
getLabelId(e) {
|
|
2216
2216
|
return `${this.getFieldID(e)}-label`;
|
|
@@ -2225,7 +2225,7 @@ const $e = {
|
|
|
2225
2225
|
return e;
|
|
2226
2226
|
}
|
|
2227
2227
|
}
|
|
2228
|
-
},
|
|
2228
|
+
}, bp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2229
2229
|
__proto__: null,
|
|
2230
2230
|
default: $e
|
|
2231
2231
|
}, Symbol.toStringTag, { value: "Module" })), W = (e, t) => {
|
|
@@ -2233,10 +2233,10 @@ const $e = {
|
|
|
2233
2233
|
for (const [i, a] of t)
|
|
2234
2234
|
n[i] = a;
|
|
2235
2235
|
return n;
|
|
2236
|
-
},
|
|
2236
|
+
}, Ec = {
|
|
2237
2237
|
class: "advanced-field-dropdown-wrapper",
|
|
2238
2238
|
"data-testid": "advanced-field-dropdown-wrapper"
|
|
2239
|
-
},
|
|
2239
|
+
}, Mc = { class: "material-icons" }, Ac = {
|
|
2240
2240
|
mixins: [$e],
|
|
2241
2241
|
expose: ["validate", "clearValidationErrors", "schema"],
|
|
2242
2242
|
emits: ["model-updated"],
|
|
@@ -2264,16 +2264,16 @@ const $e = {
|
|
|
2264
2264
|
this.$emit("model-updated", e, t);
|
|
2265
2265
|
}
|
|
2266
2266
|
}
|
|
2267
|
-
},
|
|
2267
|
+
}, Ic = /* @__PURE__ */ Object.assign(Ac, {
|
|
2268
2268
|
__name: "FieldAdvanced",
|
|
2269
2269
|
setup(e) {
|
|
2270
|
-
return (t, n) => (c(), _("div",
|
|
2270
|
+
return (t, n) => (c(), _("div", Ec, [
|
|
2271
2271
|
m("button", {
|
|
2272
2272
|
class: "advanced-field-title",
|
|
2273
2273
|
type: "button",
|
|
2274
2274
|
onClick: n[0] || (n[0] = (...i) => t.handleOpen && t.handleOpen(...i))
|
|
2275
2275
|
}, [
|
|
2276
|
-
m("i",
|
|
2276
|
+
m("i", Mc, L(t.isOpen ? "keyboard_arrow_up" : "keyboard_arrow_right"), 1),
|
|
2277
2277
|
m("span", null, L(t.titleText), 1)
|
|
2278
2278
|
]),
|
|
2279
2279
|
m("div", {
|
|
@@ -2288,7 +2288,7 @@ const $e = {
|
|
|
2288
2288
|
], 2)
|
|
2289
2289
|
]));
|
|
2290
2290
|
}
|
|
2291
|
-
}),
|
|
2291
|
+
}), Cc = /* @__PURE__ */ W(Ic, [["__scopeId", "data-v-9bb032dd"]]), Oc = { class: "array-card-container" }, Fc = /* @__PURE__ */ he({
|
|
2292
2292
|
__name: "FieldArrayCardContainer",
|
|
2293
2293
|
props: {
|
|
2294
2294
|
model: {
|
|
@@ -2308,7 +2308,7 @@ const $e = {
|
|
|
2308
2308
|
setup(e) {
|
|
2309
2309
|
return zt("vfg-array-item-index", e.index), (n, i) => {
|
|
2310
2310
|
const a = D("KCard"), o = D("KButton");
|
|
2311
|
-
return c(), _("div",
|
|
2311
|
+
return c(), _("div", Oc, [
|
|
2312
2312
|
O(a, { class: "card" }, {
|
|
2313
2313
|
default: M(() => [
|
|
2314
2314
|
Oe(n.$slots, "default", {}, void 0, !0)
|
|
@@ -2328,7 +2328,7 @@ const $e = {
|
|
|
2328
2328
|
]);
|
|
2329
2329
|
};
|
|
2330
2330
|
}
|
|
2331
|
-
}),
|
|
2331
|
+
}), po = /* @__PURE__ */ W(Fc, [["__scopeId", "data-v-97302224"]]), kc = { class: "array-item-wrapper" }, Rc = { class: "array-item" }, Uc = { class: "array-item-after" }, Lc = /* @__PURE__ */ he({
|
|
2332
2332
|
__name: "FieldArrayItem",
|
|
2333
2333
|
props: {
|
|
2334
2334
|
model: {
|
|
@@ -2340,8 +2340,8 @@ const $e = {
|
|
|
2340
2340
|
setup(e) {
|
|
2341
2341
|
return (t, n) => {
|
|
2342
2342
|
const i = D("KButton");
|
|
2343
|
-
return c(), _("div",
|
|
2344
|
-
m("div",
|
|
2343
|
+
return c(), _("div", kc, [
|
|
2344
|
+
m("div", Rc, [
|
|
2345
2345
|
Oe(t.$slots, "default", {}, void 0, !0),
|
|
2346
2346
|
O(i, {
|
|
2347
2347
|
appearance: "tertiary",
|
|
@@ -2354,19 +2354,19 @@ const $e = {
|
|
|
2354
2354
|
_: 1
|
|
2355
2355
|
})
|
|
2356
2356
|
]),
|
|
2357
|
-
m("div",
|
|
2357
|
+
m("div", Uc, [
|
|
2358
2358
|
Oe(t.$slots, "after", {}, void 0, !0)
|
|
2359
2359
|
])
|
|
2360
2360
|
]);
|
|
2361
2361
|
};
|
|
2362
2362
|
}
|
|
2363
|
-
}),
|
|
2363
|
+
}), go = /* @__PURE__ */ W(Lc, [["__scopeId", "data-v-51d79db2"]]), Nc = { class: "multi-item-wrapper" }, Pc = /* @__PURE__ */ he({
|
|
2364
2364
|
__name: "FieldArrayMultiItem",
|
|
2365
2365
|
emits: ["remove-item"],
|
|
2366
2366
|
setup(e) {
|
|
2367
2367
|
return (t, n) => {
|
|
2368
2368
|
const i = D("KButton");
|
|
2369
|
-
return c(), _("div",
|
|
2369
|
+
return c(), _("div", Nc, [
|
|
2370
2370
|
Oe(t.$slots, "default", {}, void 0, !0),
|
|
2371
2371
|
O(i, {
|
|
2372
2372
|
appearance: "danger",
|
|
@@ -2383,15 +2383,15 @@ const $e = {
|
|
|
2383
2383
|
]);
|
|
2384
2384
|
};
|
|
2385
2385
|
}
|
|
2386
|
-
}),
|
|
2386
|
+
}), yo = /* @__PURE__ */ W(Pc, [["__scopeId", "data-v-b4fcf731"]]), Dc = "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}", Zn = (e) => e ? e.length === 36 && new RegExp(`^${Dc}$`).test(e) : !1, $c = (e) => ({
|
|
2387
2387
|
...e,
|
|
2388
2388
|
label: e.name,
|
|
2389
2389
|
value: e.id
|
|
2390
2390
|
});
|
|
2391
|
-
function
|
|
2391
|
+
function vo(e, t, n) {
|
|
2392
2392
|
return n ? je.SET_REFERRAL_VALUE : e && !t || !e && t ? je.UPDATE_ENTITY : e && t ? je.CREATE_FROM_ENTITY : je.CREATE_NOT_FROM_ENTITY;
|
|
2393
2393
|
}
|
|
2394
|
-
const Bn = 50,
|
|
2394
|
+
const Bn = 50, Vc = {
|
|
2395
2395
|
mixins: [$e],
|
|
2396
2396
|
inject: [Se],
|
|
2397
2397
|
emits: ["model-updated"],
|
|
@@ -2413,7 +2413,7 @@ const Bn = 50, qc = {
|
|
|
2413
2413
|
},
|
|
2414
2414
|
computed: {
|
|
2415
2415
|
fieldState() {
|
|
2416
|
-
return
|
|
2416
|
+
return vo(this.model[this.schema.model], this.associatedEntity || this.entityId, this.bypassSearch);
|
|
2417
2417
|
},
|
|
2418
2418
|
associatedEntity() {
|
|
2419
2419
|
return this.$route && this.$route.params[this.entity];
|
|
@@ -2463,7 +2463,7 @@ const Bn = 50, qc = {
|
|
|
2463
2463
|
return;
|
|
2464
2464
|
this.loading = !0;
|
|
2465
2465
|
const t = [], n = [], i = this.getInputFields(), a = /* @__PURE__ */ new Set();
|
|
2466
|
-
|
|
2466
|
+
Zn(e) && i.includes("id") ? n.push((async () => {
|
|
2467
2467
|
const o = await this.fetchExact(e);
|
|
2468
2468
|
t.push({ ...o, label: this.getSuggestionLabel(o), value: o.id });
|
|
2469
2469
|
})()) : n.push(...i.filter((o) => o !== "id").map(async (o) => {
|
|
@@ -2516,8 +2516,8 @@ const Bn = 50, qc = {
|
|
|
2516
2516
|
return t ? e[t] : e.id;
|
|
2517
2517
|
}
|
|
2518
2518
|
}
|
|
2519
|
-
},
|
|
2520
|
-
function
|
|
2519
|
+
}, jc = ["data-testid", "data-testlabel"], qc = ["data-testid"], Kc = { class: "autosuggest__results_message" };
|
|
2520
|
+
function Bc(e, t, n, i, a, o) {
|
|
2521
2521
|
const s = D("KSelect");
|
|
2522
2522
|
return c(), U(me(e.schema.disabled ? "k-tooltip" : "div"), {
|
|
2523
2523
|
class: "field-wrap autosuggest",
|
|
@@ -2546,15 +2546,15 @@ function xc(e, t, n, i, a, o) {
|
|
|
2546
2546
|
class: "first-part",
|
|
2547
2547
|
"data-testid": r.id && `${r.id}-0`,
|
|
2548
2548
|
"data-testlabel": r.label
|
|
2549
|
-
}, L(o.getSuggestionLabel(r).split(" - ")[0]), 9,
|
|
2549
|
+
}, L(o.getSuggestionLabel(r).split(" - ")[0]), 9, jc),
|
|
2550
2550
|
(c(!0), _(Y, null, oe(o.getSuggestionLabel(r).split(" - ").slice(1), (d, u) => (c(), _("span", {
|
|
2551
2551
|
key: u,
|
|
2552
2552
|
class: "field-span",
|
|
2553
2553
|
"data-testid": r.id && `${r.id}-${u + 1}` || u + 1
|
|
2554
|
-
}, L(d), 9,
|
|
2554
|
+
}, L(d), 9, qc))), 128))
|
|
2555
2555
|
]),
|
|
2556
2556
|
empty: M(() => [
|
|
2557
|
-
m("div",
|
|
2557
|
+
m("div", Kc, [
|
|
2558
2558
|
m("span", null, L(a.message), 1)
|
|
2559
2559
|
])
|
|
2560
2560
|
]),
|
|
@@ -2564,14 +2564,14 @@ function xc(e, t, n, i, a, o) {
|
|
|
2564
2564
|
_: 1
|
|
2565
2565
|
}, 8, ["text"]);
|
|
2566
2566
|
}
|
|
2567
|
-
const
|
|
2568
|
-
var
|
|
2569
|
-
function
|
|
2570
|
-
return jt(e,
|
|
2567
|
+
const bo = /* @__PURE__ */ W(Vc, [["render", Bc], ["__scopeId", "data-v-9b7636bc"]]), zc = "#6c7489", xc = "12px", Hc = "20px";
|
|
2568
|
+
var Yc = 4;
|
|
2569
|
+
function Ta(e) {
|
|
2570
|
+
return jt(e, Yc);
|
|
2571
2571
|
}
|
|
2572
|
-
const
|
|
2572
|
+
const Gc = ["data-testid", "data-testlabel"], Wc = { class: "item-label" }, Zc = { class: "autosuggest__results_message" }, Xc = /* @__PURE__ */ he({
|
|
2573
2573
|
__name: "AutoSuggest",
|
|
2574
|
-
props: /* @__PURE__ */
|
|
2574
|
+
props: /* @__PURE__ */ Oi({
|
|
2575
2575
|
placeholder: { default: "" },
|
|
2576
2576
|
suggestions: {},
|
|
2577
2577
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -2582,9 +2582,9 @@ const Zc = ["data-testid", "data-testlabel"], Xc = { class: "item-label" }, Jc =
|
|
|
2582
2582
|
id: { required: !0 },
|
|
2583
2583
|
idModifiers: {}
|
|
2584
2584
|
}),
|
|
2585
|
-
emits: /* @__PURE__ */
|
|
2585
|
+
emits: /* @__PURE__ */ Oi(["change", "query-change"], ["update:id"]),
|
|
2586
2586
|
setup(e) {
|
|
2587
|
-
const { t } = ke("en-us", Re), n =
|
|
2587
|
+
const { t } = ke("en-us", Re), n = Po(e, "id");
|
|
2588
2588
|
return (i, a) => {
|
|
2589
2589
|
const o = D("KSelect");
|
|
2590
2590
|
return c(), U(o, {
|
|
@@ -2609,16 +2609,16 @@ const Zc = ["data-testid", "data-testlabel"], Xc = { class: "item-label" }, Jc =
|
|
|
2609
2609
|
class: "item-label",
|
|
2610
2610
|
"data-testid": s.id && `${s.id}-0`,
|
|
2611
2611
|
"data-testlabel": s.label
|
|
2612
|
-
}, L(s.label), 9,
|
|
2612
|
+
}, L(s.label), 9, Gc)
|
|
2613
2613
|
], !0)
|
|
2614
2614
|
]),
|
|
2615
2615
|
"selected-item-template": M(({ item: s }) => [
|
|
2616
2616
|
Oe(i.$slots, "selected-item", { item: s }, () => [
|
|
2617
|
-
m("span",
|
|
2617
|
+
m("span", Wc, L(s.label), 1)
|
|
2618
2618
|
], !0)
|
|
2619
2619
|
]),
|
|
2620
2620
|
empty: M(() => [
|
|
2621
|
-
m("div",
|
|
2621
|
+
m("div", Zc, [
|
|
2622
2622
|
m("span", null, L(i.emptyMessage || I(t)("fields.auto_suggest.no_results")), 1)
|
|
2623
2623
|
])
|
|
2624
2624
|
]),
|
|
@@ -2634,10 +2634,10 @@ const Zc = ["data-testid", "data-testlabel"], Xc = { class: "item-label" }, Jc =
|
|
|
2634
2634
|
]), 1032, ["id", "modelValue", "disabled", "items", "loading", "placeholder"]);
|
|
2635
2635
|
};
|
|
2636
2636
|
}
|
|
2637
|
-
}),
|
|
2637
|
+
}), Jc = /* @__PURE__ */ W(Xc, [["__scopeId", "data-v-baeb3bb0"]]), Qc = 500, em = 50, tm = /* @__PURE__ */ he({
|
|
2638
2638
|
__name: "FieldScopedEntitySelect",
|
|
2639
2639
|
props: {
|
|
2640
|
-
transformItem: { type: Function, default:
|
|
2640
|
+
transformItem: { type: Function, default: $c },
|
|
2641
2641
|
allowUuidSearch: { type: Boolean, default: !1 },
|
|
2642
2642
|
placeholder: {},
|
|
2643
2643
|
fields: { default: () => [] },
|
|
@@ -2668,7 +2668,7 @@ const Zc = ["data-testid", "data-testlabel"], Xc = { class: "item-label" }, Jc =
|
|
|
2668
2668
|
} catch (g) {
|
|
2669
2669
|
if (v != null && v.aborted)
|
|
2670
2670
|
return;
|
|
2671
|
-
if (o.value = [],
|
|
2671
|
+
if (o.value = [], Yo(g) && g.status === 404) {
|
|
2672
2672
|
console.warn("unable to search with UUID", a.value, "for entity type", e.entity);
|
|
2673
2673
|
return;
|
|
2674
2674
|
}
|
|
@@ -2689,29 +2689,29 @@ const Zc = ["data-testid", "data-testlabel"], Xc = { class: "item-label" }, Jc =
|
|
|
2689
2689
|
return;
|
|
2690
2690
|
}
|
|
2691
2691
|
A(y, v);
|
|
2692
|
-
},
|
|
2693
|
-
const { data: { data: y, next: v, offset: g } } = await e.getPartial(
|
|
2692
|
+
}, Qc, { leading: !0 }), k = async (y, v) => await e.getAll(y, v), q = async () => {
|
|
2693
|
+
const { data: { data: y, next: v, offset: g } } = await e.getPartial(em);
|
|
2694
2694
|
return (!v || !g) && (i.value = !0), s.value = y, r.value = y.map((V) => ({
|
|
2695
2695
|
...e.transformItem(V),
|
|
2696
2696
|
group: d("fields.auto_suggest.recently_created", { entity: e.entity })
|
|
2697
2697
|
})), y;
|
|
2698
2698
|
}, h = async (y) => [await e.getOne(y)], A = (y, v) => {
|
|
2699
|
-
|
|
2699
|
+
Zn(y) && e.allowUuidSearch ? f(async () => await h(y)) : f(async () => await k(y, v.signal), v.signal);
|
|
2700
2700
|
}, C = (y) => {
|
|
2701
2701
|
let v = [];
|
|
2702
2702
|
v = N(r.value), y != null && y.trim() ? o.value = v.filter((g) => e.fields.some((V) => (g[V] || "").includes(y))) : o.value = v;
|
|
2703
2703
|
}, N = (y) => e.selectedItem ? y.some((v) => v.value === e.selectedItem.value) ? y : [e.selectedItem, ...y] : y, T = (y) => {
|
|
2704
2704
|
o.value = r.value.filter((v) => v.id === y);
|
|
2705
2705
|
}, F = (y) => {
|
|
2706
|
-
|
|
2706
|
+
Zn(y) && e.allowUuidSearch ? T(y) : C(y);
|
|
2707
2707
|
};
|
|
2708
|
-
return
|
|
2708
|
+
return Xn(async () => {
|
|
2709
2709
|
await f(q);
|
|
2710
2710
|
const y = mn(() => e.selectedItem, (v) => {
|
|
2711
2711
|
v && (o.value = N(r.value)), y();
|
|
2712
2712
|
});
|
|
2713
2713
|
o.value = N(r.value);
|
|
2714
|
-
}), (y, v) => (c(), U(
|
|
2714
|
+
}), (y, v) => (c(), U(Jc, {
|
|
2715
2715
|
id: y.id,
|
|
2716
2716
|
disabled: y.fieldDisabled,
|
|
2717
2717
|
"dom-id": y.domId,
|
|
@@ -2740,10 +2740,10 @@ const Zc = ["data-testid", "data-testlabel"], Xc = { class: "item-label" }, Jc =
|
|
|
2740
2740
|
} : void 0
|
|
2741
2741
|
]), 1032, ["id", "disabled", "dom-id", "empty-message", "loading", "placeholder", "readonly", "suggestions", "onQueryChange"]));
|
|
2742
2742
|
}
|
|
2743
|
-
}),
|
|
2743
|
+
}), nm = 1e3, im = "-", am = {
|
|
2744
2744
|
components: {
|
|
2745
|
-
FieldScopedEntitySelect:
|
|
2746
|
-
SearchIcon:
|
|
2745
|
+
FieldScopedEntitySelect: tm,
|
|
2746
|
+
SearchIcon: xo
|
|
2747
2747
|
},
|
|
2748
2748
|
mixins: [$e],
|
|
2749
2749
|
inject: [Se],
|
|
@@ -2752,9 +2752,9 @@ const Zc = ["data-testid", "data-testlabel"], Xc = { class: "item-label" }, Jc =
|
|
|
2752
2752
|
const { t: e } = ke("en-us", Re);
|
|
2753
2753
|
return {
|
|
2754
2754
|
t: e,
|
|
2755
|
-
KUI_ICON_SIZE_40:
|
|
2756
|
-
KUI_COLOR_TEXT_NEUTRAL:
|
|
2757
|
-
LABEL_PLACEHOLDER:
|
|
2755
|
+
KUI_ICON_SIZE_40: Hc,
|
|
2756
|
+
KUI_COLOR_TEXT_NEUTRAL: zc,
|
|
2757
|
+
LABEL_PLACEHOLDER: im
|
|
2758
2758
|
};
|
|
2759
2759
|
},
|
|
2760
2760
|
data() {
|
|
@@ -2771,7 +2771,7 @@ const Zc = ["data-testid", "data-testlabel"], Xc = { class: "item-label" }, Jc =
|
|
|
2771
2771
|
},
|
|
2772
2772
|
computed: {
|
|
2773
2773
|
fieldState() {
|
|
2774
|
-
return
|
|
2774
|
+
return vo(this.model[this.schema.model], this.associatedEntity || this.entityId, this.bypassSearch);
|
|
2775
2775
|
},
|
|
2776
2776
|
associatedEntity() {
|
|
2777
2777
|
return this.$route && this.$route.params[this.entity];
|
|
@@ -2834,13 +2834,11 @@ const Zc = ["data-testid", "data-testlabel"], Xc = { class: "item-label" }, Jc =
|
|
|
2834
2834
|
return this[Se] ? (await this[Se].getOne(this.entity, e)).data : (console.warn("[@kong-ui-public/forms] No API service provided"), {});
|
|
2835
2835
|
},
|
|
2836
2836
|
transformItem(e) {
|
|
2837
|
-
const t = this.getSuggestionLabel(e);
|
|
2838
2837
|
return {
|
|
2839
2838
|
...e,
|
|
2840
2839
|
// This field is for select dropdown item first column.
|
|
2841
|
-
label:
|
|
2842
|
-
value: e.id
|
|
2843
|
-
...t === zn ? { __no_name: !0 } : {}
|
|
2840
|
+
label: this.getSuggestionLabel(e),
|
|
2841
|
+
value: e.id
|
|
2844
2842
|
};
|
|
2845
2843
|
},
|
|
2846
2844
|
getItem(e) {
|
|
@@ -2850,7 +2848,7 @@ const Zc = ["data-testid", "data-testlabel"], Xc = { class: "item-label" }, Jc =
|
|
|
2850
2848
|
if (!this[Se])
|
|
2851
2849
|
return console.warn("[@kong-ui-public/forms] No API service provided"), [];
|
|
2852
2850
|
const n = this[Se].getAllV2, { data: i } = await n(this.entity, {
|
|
2853
|
-
size:
|
|
2851
|
+
size: nm,
|
|
2854
2852
|
...e
|
|
2855
2853
|
}, t);
|
|
2856
2854
|
return i.data;
|
|
@@ -2861,7 +2859,7 @@ const Zc = ["data-testid", "data-testlabel"], Xc = { class: "item-label" }, Jc =
|
|
|
2861
2859
|
getSuggestionLabel(e) {
|
|
2862
2860
|
var n;
|
|
2863
2861
|
const t = ((n = this.schema) == null ? void 0 : n.labelField) || "id";
|
|
2864
|
-
return
|
|
2862
|
+
return t && e ? e[t] : "";
|
|
2865
2863
|
},
|
|
2866
2864
|
updateModel(e) {
|
|
2867
2865
|
this.$emit("model-updated", e != null && e.length ? e : null, this.schema.model);
|
|
@@ -2875,8 +2873,8 @@ const Zc = ["data-testid", "data-testlabel"], Xc = { class: "item-label" }, Jc =
|
|
|
2875
2873
|
return t ? e[t] : e.id;
|
|
2876
2874
|
}
|
|
2877
2875
|
}
|
|
2878
|
-
},
|
|
2879
|
-
function
|
|
2876
|
+
}, om = { class: "entity-suggestion-item" }, rm = { class: "entity-label" }, sm = { class: "entity-id" }, lm = { class: "selected-entity-item" }, dm = { class: "selected-entity-label" };
|
|
2877
|
+
function um(e, t, n, i, a, o) {
|
|
2880
2878
|
const s = D("SearchIcon"), r = D("FieldScopedEntitySelect");
|
|
2881
2879
|
return c(), U(me(e.schema.disabled ? "k-tooltip" : "div"), {
|
|
2882
2880
|
class: "field-wrap autosuggest",
|
|
@@ -2909,14 +2907,14 @@ function cm(e, t, n, i, a, o) {
|
|
|
2909
2907
|
}, null, 8, ["color", "size"])
|
|
2910
2908
|
]),
|
|
2911
2909
|
item: M(({ item: d }) => [
|
|
2912
|
-
m("div",
|
|
2913
|
-
m("span",
|
|
2914
|
-
m("span",
|
|
2910
|
+
m("div", om, [
|
|
2911
|
+
m("span", rm, L(d.label ?? i.LABEL_PLACEHOLDER), 1),
|
|
2912
|
+
m("span", sm, L(d.id), 1)
|
|
2915
2913
|
])
|
|
2916
2914
|
]),
|
|
2917
2915
|
"selected-item": M(({ item: d }) => [
|
|
2918
|
-
m("span",
|
|
2919
|
-
m("span",
|
|
2916
|
+
m("span", lm, [
|
|
2917
|
+
m("span", dm, L(d.label ?? d.id), 1)
|
|
2920
2918
|
])
|
|
2921
2919
|
]),
|
|
2922
2920
|
_: 1
|
|
@@ -2925,8 +2923,8 @@ function cm(e, t, n, i, a, o) {
|
|
|
2925
2923
|
_: 1
|
|
2926
2924
|
}, 8, ["text"]);
|
|
2927
2925
|
}
|
|
2928
|
-
const
|
|
2929
|
-
function
|
|
2926
|
+
const _o = /* @__PURE__ */ W(am, [["render", um], ["__scopeId", "data-v-8afacce0"]]);
|
|
2927
|
+
function cm(e) {
|
|
2930
2928
|
const t = ae([]), n = ae(null), i = (h) => st(h) ? dt[h] != null ? dt[h] : (console.warn(`'${h}' is not a validator function!`), null) : h, a = z({
|
|
2931
2929
|
get() {
|
|
2932
2930
|
var A, C;
|
|
@@ -2963,7 +2961,7 @@ function mm(e) {
|
|
|
2963
2961
|
const N = (F) => {
|
|
2964
2962
|
var v, g;
|
|
2965
2963
|
let y = [];
|
|
2966
|
-
if (we(
|
|
2964
|
+
if (we(oo(F), (V) => {
|
|
2967
2965
|
Array.isArray(V) && V.length > 0 ? y = y.concat(V) : st(V) && y.push(V);
|
|
2968
2966
|
}), X((v = e.schema) == null ? void 0 : v.onValidated) && e.schema.onValidated((g = e.model) == null ? void 0 : g.value, y, e.schema), !h) {
|
|
2969
2967
|
const V = y.length === 0;
|
|
@@ -3001,7 +2999,7 @@ function mm(e) {
|
|
|
3001
2999
|
}
|
|
3002
3000
|
}, p = (h, A = !1) => {
|
|
3003
3001
|
const C = G(e.formOptions, "fieldIdPrefix", "");
|
|
3004
|
-
return
|
|
3002
|
+
return ri(h, C) + (A ? "-" + ro() : "");
|
|
3005
3003
|
}, f = (h) => `${p(h)}-label`, b = () => G(e.schema, "fieldClasses", []), k = (h) => e.formatValueToField && typeof e.formatValueToField == "function" ? e.formatValueToField(h) : h, q = (h) => e.formatValueToModel && typeof e.formatValueToModel == "function" ? e.formatValueToModel(h) : h;
|
|
3006
3004
|
return {
|
|
3007
3005
|
value: a,
|
|
@@ -3012,7 +3010,7 @@ function mm(e) {
|
|
|
3012
3010
|
updateModelValue: r
|
|
3013
3011
|
};
|
|
3014
3012
|
}
|
|
3015
|
-
function
|
|
3013
|
+
function mm(e) {
|
|
3016
3014
|
const t = [], n = (i) => {
|
|
3017
3015
|
const a = ["cluster-cache", "cluster_cache"];
|
|
3018
3016
|
for (const o of a)
|
|
@@ -3033,7 +3031,7 @@ function fm(e) {
|
|
|
3033
3031
|
redisModels: t.map((i) => i.model)
|
|
3034
3032
|
};
|
|
3035
3033
|
}
|
|
3036
|
-
function
|
|
3034
|
+
function fm(e, t) {
|
|
3037
3035
|
const n = new RegExp("(?<=config-redis-).*"), i = /Config\.Redis.*/;
|
|
3038
3036
|
return t.filter((o) => {
|
|
3039
3037
|
const s = o.model.match(n);
|
|
@@ -3049,10 +3047,10 @@ function hm(e, t) {
|
|
|
3049
3047
|
});
|
|
3050
3048
|
}
|
|
3051
3049
|
const qe = {
|
|
3052
|
-
useAbstractFields:
|
|
3053
|
-
useRedisPartial:
|
|
3054
|
-
useRedisNonStandardFields:
|
|
3055
|
-
},
|
|
3050
|
+
useAbstractFields: cm,
|
|
3051
|
+
useRedisPartial: mm,
|
|
3052
|
+
useRedisNonStandardFields: fm
|
|
3053
|
+
}, hm = { class: "form-field-wrapper" }, pm = /* @__PURE__ */ he({
|
|
3056
3054
|
__name: "FieldInput",
|
|
3057
3055
|
props: {
|
|
3058
3056
|
disabled: {
|
|
@@ -3140,7 +3138,7 @@ const qe = {
|
|
|
3140
3138
|
var T;
|
|
3141
3139
|
X(C.value) && ((T = C.value) == null || T.flush());
|
|
3142
3140
|
};
|
|
3143
|
-
return
|
|
3141
|
+
return Xn(() => {
|
|
3144
3142
|
switch (f.value) {
|
|
3145
3143
|
case "number":
|
|
3146
3144
|
case "range":
|
|
@@ -3170,11 +3168,11 @@ const qe = {
|
|
|
3170
3168
|
);
|
|
3171
3169
|
break;
|
|
3172
3170
|
}
|
|
3173
|
-
}),
|
|
3171
|
+
}), Jn(() => {
|
|
3174
3172
|
f.value === "checkbox" ? console.warn("The use of 'checkbox' inputType with 'input' type fields is deprecated. Use 'checkbox' type instead.") : f.value === "radio" ? console.warn("The use of 'radio' inputType with 'input' type fields is deprecated. Use 'radio' type instead.") : f.value === "file" && console.warn("The 'file' type in input field is deprecated. Use 'file' field instead.");
|
|
3175
3173
|
}), (T, F) => {
|
|
3176
3174
|
const y = D("KInput");
|
|
3177
|
-
return c(), _("div",
|
|
3175
|
+
return c(), _("div", hm, [
|
|
3178
3176
|
O(y, et(T.$attrs, {
|
|
3179
3177
|
id: I(d)(e.schema),
|
|
3180
3178
|
autocomplete: e.schema.autocomplete,
|
|
@@ -3205,9 +3203,9 @@ const qe = {
|
|
|
3205
3203
|
]);
|
|
3206
3204
|
};
|
|
3207
3205
|
}
|
|
3208
|
-
}),
|
|
3206
|
+
}), To = /* @__PURE__ */ W(pm, [["__scopeId", "data-v-fe1132bb"]]), gm = {
|
|
3209
3207
|
name: "FieldMetric",
|
|
3210
|
-
components: { AddIcon:
|
|
3208
|
+
components: { AddIcon: Qn, TrashIcon: xt },
|
|
3211
3209
|
mixins: [$e],
|
|
3212
3210
|
emits: ["remove-item"],
|
|
3213
3211
|
data() {
|
|
@@ -3215,11 +3213,11 @@ const qe = {
|
|
|
3215
3213
|
contentVisible: !1
|
|
3216
3214
|
};
|
|
3217
3215
|
}
|
|
3218
|
-
},
|
|
3216
|
+
}, ym = {
|
|
3219
3217
|
key: 0,
|
|
3220
3218
|
class: "content"
|
|
3221
3219
|
};
|
|
3222
|
-
function
|
|
3220
|
+
function vm(e, t, n, i, a, o) {
|
|
3223
3221
|
const s = D("AddIcon"), r = D("TrashIcon"), d = D("KButton");
|
|
3224
3222
|
return c(), _("div", {
|
|
3225
3223
|
class: ee(["field-dropdown", { active: a.contentVisible }])
|
|
@@ -3231,9 +3229,9 @@ function bm(e, t, n, i, a, o) {
|
|
|
3231
3229
|
ce(L(e.model.name ? e.model.name : "New Item") + " ", 1),
|
|
3232
3230
|
O(s, { class: "metric-add-icon" })
|
|
3233
3231
|
]),
|
|
3234
|
-
O(
|
|
3232
|
+
O(Do, { name: "slide-fade" }, {
|
|
3235
3233
|
default: M(() => [
|
|
3236
|
-
a.contentVisible ? (c(), _("div",
|
|
3234
|
+
a.contentVisible ? (c(), _("div", ym, [
|
|
3237
3235
|
Oe(e.$slots, "default"),
|
|
3238
3236
|
O(d, {
|
|
3239
3237
|
appearance: "tertiary",
|
|
@@ -3251,7 +3249,7 @@ function bm(e, t, n, i, a, o) {
|
|
|
3251
3249
|
})
|
|
3252
3250
|
], 2);
|
|
3253
3251
|
}
|
|
3254
|
-
const
|
|
3252
|
+
const So = /* @__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 = {
|
|
3255
3253
|
mixins: [$e],
|
|
3256
3254
|
expose: ["validate", "clearValidationErrors", "schema"],
|
|
3257
3255
|
emits: ["modelUpdated"],
|
|
@@ -3289,46 +3287,46 @@ const Eo = /* @__PURE__ */ W(ym, [["render", bm]]), _m = { class: "field-object-
|
|
|
3289
3287
|
this.$emit("modelUpdated", e, t);
|
|
3290
3288
|
}
|
|
3291
3289
|
}
|
|
3292
|
-
},
|
|
3290
|
+
}, Fm = /* @__PURE__ */ Object.assign(Om, {
|
|
3293
3291
|
__name: "FieldObject",
|
|
3294
3292
|
setup(e) {
|
|
3295
3293
|
return (t, n) => {
|
|
3296
|
-
const i =
|
|
3297
|
-
return Ee((c(), _("div",
|
|
3294
|
+
const i = Aa("attributes");
|
|
3295
|
+
return Ee((c(), _("div", bm, [
|
|
3298
3296
|
t.schema.schema ? (c(), U(ue, {
|
|
3299
3297
|
key: 0,
|
|
3300
3298
|
model: t.value,
|
|
3301
3299
|
options: t.formOptions,
|
|
3302
3300
|
schema: t.schema.schema,
|
|
3303
3301
|
onModelUpdated: t.updateModel
|
|
3304
|
-
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : (c(), _("div",
|
|
3302
|
+
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : (c(), _("div", _m, [
|
|
3305
3303
|
m("table", {
|
|
3306
3304
|
id: t.getFieldID(t.schema),
|
|
3307
3305
|
class: ee(t.schema.fieldClasses)
|
|
3308
3306
|
}, [
|
|
3309
3307
|
(c(!0), _(Y, null, oe(t.value, (a, o) => (c(), _("tr", { key: o }, [
|
|
3310
3308
|
m("td", null, L(o), 1),
|
|
3311
|
-
t.keyTypes[o] === "string" ? (c(), _("td",
|
|
3309
|
+
t.keyTypes[o] === "string" ? (c(), _("td", Sm, [
|
|
3312
3310
|
Ee(m("input", {
|
|
3313
3311
|
"onUpdate:modelValue": (s) => t.value[o] = s,
|
|
3314
3312
|
type: "text"
|
|
3315
|
-
}, null, 8,
|
|
3313
|
+
}, null, 8, wm), [
|
|
3316
3314
|
[$t, t.value[o]]
|
|
3317
3315
|
])
|
|
3318
3316
|
])) : B("", !0),
|
|
3319
|
-
t.keyTypes[o] === "boolean" ? (c(), _("td",
|
|
3317
|
+
t.keyTypes[o] === "boolean" ? (c(), _("td", Em, [
|
|
3320
3318
|
Ee(m("input", {
|
|
3321
3319
|
"onUpdate:modelValue": (s) => t.value[o] = s,
|
|
3322
3320
|
type: "checkbox"
|
|
3323
|
-
}, null, 8,
|
|
3324
|
-
[
|
|
3321
|
+
}, null, 8, Mm), [
|
|
3322
|
+
[$o, t.value[o]]
|
|
3325
3323
|
])
|
|
3326
3324
|
])) : B("", !0),
|
|
3327
|
-
t.keyTypes[o] === "number" ? (c(), _("td",
|
|
3325
|
+
t.keyTypes[o] === "number" ? (c(), _("td", Am, [
|
|
3328
3326
|
Ee(m("input", {
|
|
3329
3327
|
"onUpdate:modelValue": (s) => t.value[o] = s,
|
|
3330
3328
|
type: "number"
|
|
3331
|
-
}, null, 8,
|
|
3329
|
+
}, null, 8, Im), [
|
|
3332
3330
|
[$t, t.value[o]]
|
|
3333
3331
|
])
|
|
3334
3332
|
])) : B("", !0),
|
|
@@ -3337,10 +3335,10 @@ const Eo = /* @__PURE__ */ W(ym, [["render", bm]]), _m = { class: "field-object-
|
|
|
3337
3335
|
type: "button",
|
|
3338
3336
|
value: "x",
|
|
3339
3337
|
onClick: (s) => t.removeElement(o)
|
|
3340
|
-
}, null, 8,
|
|
3338
|
+
}, null, 8, Cm)
|
|
3341
3339
|
])
|
|
3342
3340
|
]))), 128))
|
|
3343
|
-
], 10,
|
|
3341
|
+
], 10, Tm),
|
|
3344
3342
|
Ee(m("select", {
|
|
3345
3343
|
"onUpdate:modelValue": n[0] || (n[0] = (a) => t.newKeyType = a)
|
|
3346
3344
|
}, n[3] || (n[3] = [
|
|
@@ -3348,7 +3346,7 @@ const Eo = /* @__PURE__ */ W(ym, [["render", bm]]), _m = { class: "field-object-
|
|
|
3348
3346
|
m("option", { value: "number" }, " Number ", -1),
|
|
3349
3347
|
m("option", { value: "boolean" }, " Boolean ", -1)
|
|
3350
3348
|
]), 512), [
|
|
3351
|
-
[
|
|
3349
|
+
[Vo, t.newKeyType]
|
|
3352
3350
|
]),
|
|
3353
3351
|
Ee(m("input", {
|
|
3354
3352
|
"onUpdate:modelValue": n[1] || (n[1] = (a) => t.newKeyName = a),
|
|
@@ -3367,13 +3365,13 @@ const Eo = /* @__PURE__ */ W(ym, [["render", bm]]), _m = { class: "field-object-
|
|
|
3367
3365
|
]);
|
|
3368
3366
|
};
|
|
3369
3367
|
}
|
|
3370
|
-
}),
|
|
3368
|
+
}), wo = /* @__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 = {
|
|
3371
3369
|
key: 0,
|
|
3372
3370
|
class: "hint"
|
|
3373
|
-
},
|
|
3371
|
+
}, Vm = { class: "input-item" }, jm = ["placeholder"], qm = {
|
|
3374
3372
|
key: 0,
|
|
3375
3373
|
class: "hint"
|
|
3376
|
-
},
|
|
3374
|
+
}, Km = {
|
|
3377
3375
|
mixins: [$e],
|
|
3378
3376
|
expose: ["validate", "clearValidationErrors", "schema"],
|
|
3379
3377
|
inject: {
|
|
@@ -3472,7 +3470,7 @@ const Eo = /* @__PURE__ */ W(ym, [["render", bm]]), _m = { class: "field-object-
|
|
|
3472
3470
|
this.$emit("model-updated", this.model[this.schema.model], t);
|
|
3473
3471
|
}
|
|
3474
3472
|
}
|
|
3475
|
-
},
|
|
3473
|
+
}, Bm = /* @__PURE__ */ Object.assign(Km, {
|
|
3476
3474
|
__name: "FieldObjectAdvanced",
|
|
3477
3475
|
setup(e) {
|
|
3478
3476
|
return (t, n) => {
|
|
@@ -3486,8 +3484,8 @@ const Eo = /* @__PURE__ */ W(ym, [["render", bm]]), _m = { class: "field-object-
|
|
|
3486
3484
|
"data-testid": `field-object-key-${o}`
|
|
3487
3485
|
}, [
|
|
3488
3486
|
m("div", null, [
|
|
3489
|
-
m("div",
|
|
3490
|
-
m("div",
|
|
3487
|
+
m("div", Um, [
|
|
3488
|
+
m("div", Lm, [
|
|
3491
3489
|
m("strong", null, L(o), 1),
|
|
3492
3490
|
m("div", null, [
|
|
3493
3491
|
O(i, {
|
|
@@ -3505,24 +3503,24 @@ const Eo = /* @__PURE__ */ W(ym, [["render", bm]]), _m = { class: "field-object-
|
|
|
3505
3503
|
])
|
|
3506
3504
|
]),
|
|
3507
3505
|
n[1] || (n[1] = m("hr", { class: "divider" }, null, -1)),
|
|
3508
|
-
t.subSchema ? (c(), _("div",
|
|
3506
|
+
t.subSchema ? (c(), _("div", Nm, [
|
|
3509
3507
|
O(ue, {
|
|
3510
3508
|
model: t.transformedModel[o],
|
|
3511
3509
|
options: { helpAsHtml: !0 },
|
|
3512
3510
|
schema: t.subSchema,
|
|
3513
3511
|
onModelUpdated: t.updateModel
|
|
3514
3512
|
}, null, 8, ["model", "schema", "onModelUpdated"])
|
|
3515
|
-
])) : (c(), _("div",
|
|
3513
|
+
])) : (c(), _("div", Pm, [
|
|
3516
3514
|
Ee(m("input", {
|
|
3517
3515
|
"onUpdate:modelValue": (s) => t.value[o] = s,
|
|
3518
3516
|
class: "form-control",
|
|
3519
3517
|
placeholder: t.schema.fields && t.schema.fields[0].schema.placeholder,
|
|
3520
3518
|
type: t.valueInputType,
|
|
3521
3519
|
onInput: (s) => t.updateModel(t.value[o], t.model[t.schema.model])
|
|
3522
|
-
}, null, 40,
|
|
3523
|
-
[
|
|
3520
|
+
}, null, 40, Dm), [
|
|
3521
|
+
[Ia, t.value[o]]
|
|
3524
3522
|
]),
|
|
3525
|
-
t.schema.fields && t.schema.fields[0].schema.hint ? (c(), _("p",
|
|
3523
|
+
t.schema.fields && t.schema.fields[0].schema.hint ? (c(), _("p", $m, L(t.schema.fields[0].schema.hint), 1)) : B("", !0),
|
|
3526
3524
|
(c(), U(me(t.autofillSlot), {
|
|
3527
3525
|
schema: t.schema.fields && t.schema.fields[0].schema || t.schema.values,
|
|
3528
3526
|
update: (s) => t.value[o] = s,
|
|
@@ -3532,18 +3530,18 @@ const Eo = /* @__PURE__ */ W(ym, [["render", bm]]), _m = { class: "field-object-
|
|
|
3532
3530
|
n[2] || (n[2] = m("hr", { class: "wide-divider" }, null, -1))
|
|
3533
3531
|
])
|
|
3534
3532
|
])
|
|
3535
|
-
], 8,
|
|
3533
|
+
], 8, Rm))), 128)),
|
|
3536
3534
|
m("div", {
|
|
3537
3535
|
class: ee(["input-wrapper", { indent: t.hasObjectKeys }])
|
|
3538
3536
|
}, [
|
|
3539
|
-
m("div",
|
|
3537
|
+
m("div", Vm, [
|
|
3540
3538
|
Ee(m("input", {
|
|
3541
3539
|
"onUpdate:modelValue": n[0] || (n[0] = (a) => t.newKeyName = a),
|
|
3542
3540
|
class: "form-control",
|
|
3543
3541
|
"data-testid": "keyname-input",
|
|
3544
3542
|
placeholder: t.schema.placeholder,
|
|
3545
3543
|
type: "text"
|
|
3546
|
-
}, null, 8,
|
|
3544
|
+
}, null, 8, jm), [
|
|
3547
3545
|
[$t, t.newKeyName]
|
|
3548
3546
|
]),
|
|
3549
3547
|
O(i, {
|
|
@@ -3558,12 +3556,12 @@ const Eo = /* @__PURE__ */ W(ym, [["render", bm]]), _m = { class: "field-object-
|
|
|
3558
3556
|
_: 1
|
|
3559
3557
|
}, 8, ["disabled", "onClick"])
|
|
3560
3558
|
]),
|
|
3561
|
-
t.schema.hintText ? (c(), _("p",
|
|
3559
|
+
t.schema.hintText ? (c(), _("p", qm, L(t.schema.hintText), 1)) : B("", !0)
|
|
3562
3560
|
], 2)
|
|
3563
|
-
], 10,
|
|
3561
|
+
], 10, km);
|
|
3564
3562
|
};
|
|
3565
3563
|
}
|
|
3566
|
-
}),
|
|
3564
|
+
}), Eo = /* @__PURE__ */ W(Bm, [["__scopeId", "data-v-41b00aff"]]), zm = { class: "radio-selection-group" }, xm = /* @__PURE__ */ he({
|
|
3567
3565
|
__name: "FieldRadio",
|
|
3568
3566
|
props: {
|
|
3569
3567
|
disabled: {
|
|
@@ -3620,7 +3618,7 @@ const Eo = /* @__PURE__ */ W(ym, [["render", bm]]), _m = { class: "field-object-
|
|
|
3620
3618
|
};
|
|
3621
3619
|
return (p, f) => {
|
|
3622
3620
|
const b = D("KRadio");
|
|
3623
|
-
return c(), _("div",
|
|
3621
|
+
return c(), _("div", zm, [
|
|
3624
3622
|
(c(!0), _(Y, null, oe(e.schema.values, (k, q) => (c(), U(b, {
|
|
3625
3623
|
id: e.schema.name + "-" + q,
|
|
3626
3624
|
key: k.value,
|
|
@@ -3636,7 +3634,7 @@ const Eo = /* @__PURE__ */ W(ym, [["render", bm]]), _m = { class: "field-object-
|
|
|
3636
3634
|
]);
|
|
3637
3635
|
};
|
|
3638
3636
|
}
|
|
3639
|
-
}),
|
|
3637
|
+
}), Mo = /* @__PURE__ */ W(xm, [["__scopeId", "data-v-42b9c6ac"]]), Ao = /* @__PURE__ */ he({
|
|
3640
3638
|
__name: "FieldSelect",
|
|
3641
3639
|
props: {
|
|
3642
3640
|
disabled: {
|
|
@@ -3739,20 +3737,20 @@ const Eo = /* @__PURE__ */ W(ym, [["render", bm]]), _m = { class: "field-object-
|
|
|
3739
3737
|
}, null, 8, ["id", "modelValue", "class", "clearable", "disabled", "items", "kpop-attributes", "label-attributes", "name", "placeholder", "required"]);
|
|
3740
3738
|
};
|
|
3741
3739
|
}
|
|
3742
|
-
}),
|
|
3740
|
+
}), Hm = {
|
|
3743
3741
|
name: "FieldArray",
|
|
3744
3742
|
components: {
|
|
3745
|
-
FieldArrayItem:
|
|
3746
|
-
FieldArrayMultiItem:
|
|
3747
|
-
FieldSelect:
|
|
3748
|
-
FieldMetric:
|
|
3749
|
-
FieldObject:
|
|
3750
|
-
FieldObjectAdvanced:
|
|
3751
|
-
FieldAutoSuggest:
|
|
3752
|
-
FieldAutoSuggestV2:
|
|
3753
|
-
FieldRadio:
|
|
3754
|
-
FieldArrayCardContainer:
|
|
3755
|
-
FieldInput:
|
|
3743
|
+
FieldArrayItem: go,
|
|
3744
|
+
FieldArrayMultiItem: yo,
|
|
3745
|
+
FieldSelect: Ao,
|
|
3746
|
+
FieldMetric: So,
|
|
3747
|
+
FieldObject: wo,
|
|
3748
|
+
FieldObjectAdvanced: Eo,
|
|
3749
|
+
FieldAutoSuggest: bo,
|
|
3750
|
+
FieldAutoSuggestV2: _o,
|
|
3751
|
+
FieldRadio: Mo,
|
|
3752
|
+
FieldArrayCardContainer: po,
|
|
3753
|
+
FieldInput: To
|
|
3756
3754
|
},
|
|
3757
3755
|
mixins: [$e],
|
|
3758
3756
|
inject: {
|
|
@@ -3805,8 +3803,8 @@ const Eo = /* @__PURE__ */ W(ym, [["render", bm]]), _m = { class: "field-object-
|
|
|
3805
3803
|
((a = (i = this.schema) == null ? void 0 : i.inputAttributes) == null ? void 0 : a.type) === "number" && dn(parseFloat(e)) && (n = parseFloat(e)), this.value = this.value.map((o, s) => s === t ? n : o);
|
|
3806
3804
|
}
|
|
3807
3805
|
}
|
|
3808
|
-
},
|
|
3809
|
-
function
|
|
3806
|
+
}, Ym = ["id"], Gm = { key: 1 }, Wm = ["onUpdate:modelValue", "aria-labelledby", "type"], Zm = ["onUpdate:modelValue", "aria-labelledby"];
|
|
3807
|
+
function Xm(e, t, n, i, a, o) {
|
|
3810
3808
|
const s = D("KTextArea"), r = D("KInput"), d = D("KButton");
|
|
3811
3809
|
return e.schema ? (c(), _("div", {
|
|
3812
3810
|
key: 0,
|
|
@@ -3833,7 +3831,7 @@ function Jm(e, t, n, i, a, o) {
|
|
|
3833
3831
|
}, null, 40, ["form-options", "model", "schema", "onModelUpdated"]))
|
|
3834
3832
|
]),
|
|
3835
3833
|
_: 2
|
|
3836
|
-
}, 1064, ["index", "model", "schema", "onRemoveItem"])) : e.schema.items ? (c(), _("span",
|
|
3834
|
+
}, 1064, ["index", "model", "schema", "onRemoveItem"])) : e.schema.items ? (c(), _("span", Gm, [
|
|
3837
3835
|
(c(), U(me(o.getFieldComponent(e.schema.items)), {
|
|
3838
3836
|
"form-options": e.formOptions,
|
|
3839
3837
|
model: u,
|
|
@@ -3891,8 +3889,8 @@ function Jm(e, t, n, i, a, o) {
|
|
|
3891
3889
|
"aria-labelledby": e.getLabelId(e.schema)
|
|
3892
3890
|
}, { ref_for: !0 }, e.schema.inputAttributes, {
|
|
3893
3891
|
type: ((f = e.schema.inputAttributes) == null ? void 0 : f.type) || "text"
|
|
3894
|
-
}), null, 16,
|
|
3895
|
-
[
|
|
3892
|
+
}), null, 16, Wm)), [
|
|
3893
|
+
[Ia, e.value[p]]
|
|
3896
3894
|
])
|
|
3897
3895
|
];
|
|
3898
3896
|
}),
|
|
@@ -3902,7 +3900,7 @@ function Jm(e, t, n, i, a, o) {
|
|
|
3902
3900
|
"onUpdate:modelValue": (f) => e.value[p] = f,
|
|
3903
3901
|
"aria-labelledby": e.getLabelId(e.schema),
|
|
3904
3902
|
type: "text"
|
|
3905
|
-
}), null, 16,
|
|
3903
|
+
}), null, 16, Zm), [
|
|
3906
3904
|
[$t, e.value[p]]
|
|
3907
3905
|
]),
|
|
3908
3906
|
(c(), U(me(o.autofillSlot), {
|
|
@@ -3924,9 +3922,9 @@ function Jm(e, t, n, i, a, o) {
|
|
|
3924
3922
|
]),
|
|
3925
3923
|
_: 1
|
|
3926
3924
|
}, 8, ["class", "data-testid", "onClick"])
|
|
3927
|
-
], 10,
|
|
3925
|
+
], 10, Ym)) : B("", !0);
|
|
3928
3926
|
}
|
|
3929
|
-
const
|
|
3927
|
+
const Jm = /* @__PURE__ */ W(Hm, [["render", Xm], ["__scopeId", "data-v-ae802bb2"]]), Qm = { class: "form-field-wrapper field-checkbox" }, ef = /* @__PURE__ */ he({
|
|
3930
3928
|
__name: "FieldCheckbox",
|
|
3931
3929
|
props: {
|
|
3932
3930
|
disabled: {
|
|
@@ -3978,7 +3976,7 @@ const Qm = /* @__PURE__ */ W(Ym, [["render", Jm], ["__scopeId", "data-v-ae802bb2
|
|
|
3978
3976
|
clearValidationErrors: d
|
|
3979
3977
|
}), (u, p) => {
|
|
3980
3978
|
const f = D("KCheckbox");
|
|
3981
|
-
return c(), _("div",
|
|
3979
|
+
return c(), _("div", Qm, [
|
|
3982
3980
|
O(f, et(u.$attrs, {
|
|
3983
3981
|
id: I(s)(e.schema),
|
|
3984
3982
|
modelValue: I(r),
|
|
@@ -3995,10 +3993,10 @@ const Qm = /* @__PURE__ */ W(Ym, [["render", Jm], ["__scopeId", "data-v-ae802bb2
|
|
|
3995
3993
|
]);
|
|
3996
3994
|
};
|
|
3997
3995
|
}
|
|
3998
|
-
}),
|
|
3999
|
-
function
|
|
4000
|
-
const s =
|
|
4001
|
-
return Ee((c(), _("div",
|
|
3996
|
+
}), tf = /* @__PURE__ */ W(ef, [["__scopeId", "data-v-6b4ee1cd"]]), nf = { class: "wrapper" }, af = ["disabled"], of = ["id", "checked", "disabled", "onChange", "name"], rf = ["disabled"], sf = { class: "info" }, lf = { class: "dropList" }, df = ["id", "checked", "disabled", "onChange", "name"];
|
|
3997
|
+
function uf(e, t, n, i, a, o) {
|
|
3998
|
+
const s = Aa("attributes");
|
|
3999
|
+
return Ee((c(), _("div", nf, [
|
|
4002
4000
|
e.schema.listBox ? (c(), _("div", {
|
|
4003
4001
|
key: 0,
|
|
4004
4002
|
class: "listbox form-control",
|
|
@@ -4015,13 +4013,13 @@ function cf(e, t, n, i, a, o) {
|
|
|
4015
4013
|
disabled: e.disabled || null,
|
|
4016
4014
|
onChange: (d) => o.onChanged(d, r),
|
|
4017
4015
|
name: o.getInputName(r)
|
|
4018
|
-
}, null, 40,
|
|
4016
|
+
}, null, 40, of), [
|
|
4019
4017
|
[s, "input"]
|
|
4020
4018
|
]),
|
|
4021
4019
|
ce(L(o.getItemName(r)), 1)
|
|
4022
4020
|
])
|
|
4023
4021
|
], 2))), 256))
|
|
4024
|
-
], 8,
|
|
4022
|
+
], 8, af)) : B("", !0),
|
|
4025
4023
|
e.schema.listBox ? B("", !0) : (c(), _("div", {
|
|
4026
4024
|
key: 1,
|
|
4027
4025
|
class: "combobox form-control",
|
|
@@ -4031,10 +4029,10 @@ function cf(e, t, n, i, a, o) {
|
|
|
4031
4029
|
class: ee(["mainRow", { expanded: a.comboExpanded }]),
|
|
4032
4030
|
onClick: t[0] || (t[0] = (...r) => o.onExpandCombo && o.onExpandCombo(...r))
|
|
4033
4031
|
}, [
|
|
4034
|
-
m("div",
|
|
4032
|
+
m("div", sf, L(o.selectedCount) + " selected", 1),
|
|
4035
4033
|
t[1] || (t[1] = m("div", { class: "arrow" }, null, -1))
|
|
4036
4034
|
], 2),
|
|
4037
|
-
m("div",
|
|
4035
|
+
m("div", lf, [
|
|
4038
4036
|
a.comboExpanded ? (c(!0), _(Y, { key: 0 }, oe(o.items, (r) => (c(), _("div", {
|
|
4039
4037
|
class: ee(["list-row", { "is-checked": o.isItemChecked(r) }])
|
|
4040
4038
|
}, [
|
|
@@ -4046,19 +4044,19 @@ function cf(e, t, n, i, a, o) {
|
|
|
4046
4044
|
disabled: e.disabled || null,
|
|
4047
4045
|
onChange: (d) => o.onChanged(d, r),
|
|
4048
4046
|
name: o.getInputName(r)
|
|
4049
|
-
}, null, 40,
|
|
4047
|
+
}, null, 40, df), [
|
|
4050
4048
|
[s, "input"]
|
|
4051
4049
|
]),
|
|
4052
4050
|
ce(L(o.getItemName(r)), 1)
|
|
4053
4051
|
])
|
|
4054
4052
|
], 2))), 256)) : B("", !0)
|
|
4055
4053
|
])
|
|
4056
|
-
], 8,
|
|
4054
|
+
], 8, rf))
|
|
4057
4055
|
])), [
|
|
4058
4056
|
[s, "wrapper"]
|
|
4059
4057
|
]);
|
|
4060
4058
|
}
|
|
4061
|
-
const
|
|
4059
|
+
const cf = {
|
|
4062
4060
|
mixins: [$e],
|
|
4063
4061
|
data() {
|
|
4064
4062
|
return {
|
|
@@ -4076,7 +4074,7 @@ const mf = {
|
|
|
4076
4074
|
},
|
|
4077
4075
|
methods: {
|
|
4078
4076
|
getInputName(e) {
|
|
4079
|
-
return this.schema && this.schema.inputName && this.schema.inputName.length > 0 ?
|
|
4077
|
+
return this.schema && this.schema.inputName && this.schema.inputName.length > 0 ? da(this.schema.inputName + "_" + this.getItemValue(e)) : da(this.getItemValue(e));
|
|
4080
4078
|
},
|
|
4081
4079
|
getItemValue(e) {
|
|
4082
4080
|
if (Fe(e)) {
|
|
@@ -4103,10 +4101,10 @@ const mf = {
|
|
|
4103
4101
|
},
|
|
4104
4102
|
onChanged(e, t) {
|
|
4105
4103
|
if ((de(this.value) || !Array.isArray(this.value)) && (this.value = []), e.target.checked) {
|
|
4106
|
-
const n =
|
|
4104
|
+
const n = Ta(this.value);
|
|
4107
4105
|
n.push(this.getItemValue(t)), this.value = n;
|
|
4108
4106
|
} else {
|
|
4109
|
-
const n =
|
|
4107
|
+
const n = Ta(this.value);
|
|
4110
4108
|
n.splice(this.value.indexOf(this.getItemValue(t)), 1), this.value = n;
|
|
4111
4109
|
}
|
|
4112
4110
|
},
|
|
@@ -4114,7 +4112,7 @@ const mf = {
|
|
|
4114
4112
|
this.comboExpanded = !this.comboExpanded;
|
|
4115
4113
|
}
|
|
4116
4114
|
}
|
|
4117
|
-
},
|
|
4115
|
+
}, mf = /* @__PURE__ */ W(cf, [["render", uf]]), ff = {
|
|
4118
4116
|
name: "FieldKeyValuePairs",
|
|
4119
4117
|
components: { TrashIcon: xt },
|
|
4120
4118
|
mixins: [$e],
|
|
@@ -4168,15 +4166,15 @@ const mf = {
|
|
|
4168
4166
|
this.pairs.splice(e, 1);
|
|
4169
4167
|
}
|
|
4170
4168
|
}
|
|
4171
|
-
},
|
|
4172
|
-
function
|
|
4169
|
+
}, hf = { class: "key-value-pairs-editor" }, pf = { class: "pair-item-cell" }, gf = ["data-testid", "placeholder", "value", "onInput"], yf = { class: "pair-item-cell" }, vf = ["data-testid", "placeholder", "value", "onInput"];
|
|
4170
|
+
function bf(e, t, n, i, a, o) {
|
|
4173
4171
|
const s = D("TrashIcon"), r = D("KButton");
|
|
4174
|
-
return c(), _("div",
|
|
4172
|
+
return c(), _("div", hf, [
|
|
4175
4173
|
(c(!0), _(Y, null, oe(a.pairs, (d, u) => (c(), _("div", {
|
|
4176
4174
|
key: u,
|
|
4177
4175
|
class: "pair-item"
|
|
4178
4176
|
}, [
|
|
4179
|
-
m("div",
|
|
4177
|
+
m("div", pf, [
|
|
4180
4178
|
m("input", {
|
|
4181
4179
|
class: "form-control",
|
|
4182
4180
|
"data-testid": `${e.getFieldID(e.schema)}-pair-key-${u}`,
|
|
@@ -4186,14 +4184,14 @@ function _f(e, t, n, i, a, o) {
|
|
|
4186
4184
|
onInput: (p) => {
|
|
4187
4185
|
o.onInput(p, u, "key");
|
|
4188
4186
|
}
|
|
4189
|
-
}, null, 40,
|
|
4187
|
+
}, null, 40, gf),
|
|
4190
4188
|
(c(), U(me(o.autofillSlot), {
|
|
4191
4189
|
schema: e.schema,
|
|
4192
4190
|
update: (p) => o.onInput({ target: { value: p } }, u, "key"),
|
|
4193
4191
|
value: d.key
|
|
4194
4192
|
}, null, 8, ["schema", "update", "value"]))
|
|
4195
4193
|
]),
|
|
4196
|
-
m("div",
|
|
4194
|
+
m("div", yf, [
|
|
4197
4195
|
m("input", {
|
|
4198
4196
|
class: "form-control",
|
|
4199
4197
|
"data-testid": `${e.getFieldID(e.schema)}-pair-value-${u}`,
|
|
@@ -4203,7 +4201,7 @@ function _f(e, t, n, i, a, o) {
|
|
|
4203
4201
|
onInput: (p) => {
|
|
4204
4202
|
o.onInput(p, u, "value");
|
|
4205
4203
|
}
|
|
4206
|
-
}, null, 40,
|
|
4204
|
+
}, null, 40, vf),
|
|
4207
4205
|
(c(), U(me(o.autofillSlot), {
|
|
4208
4206
|
schema: e.schema,
|
|
4209
4207
|
update: (p) => o.onInput({ target: { value: p } }, u, "value"),
|
|
@@ -4237,7 +4235,7 @@ function _f(e, t, n, i, a, o) {
|
|
|
4237
4235
|
}, 8, ["class", "data-testid", "onClick"])
|
|
4238
4236
|
]);
|
|
4239
4237
|
}
|
|
4240
|
-
const
|
|
4238
|
+
const _f = /* @__PURE__ */ W(ff, [["render", bf], ["__scopeId", "data-v-9a9650ac"]]), Tf = /* @__PURE__ */ he({
|
|
4241
4239
|
__name: "FieldLabel",
|
|
4242
4240
|
props: {
|
|
4243
4241
|
disabled: {
|
|
@@ -4285,7 +4283,7 @@ const Tf = /* @__PURE__ */ W(hf, [["render", _f], ["__scopeId", "data-v-9a9650ac
|
|
|
4285
4283
|
], 2);
|
|
4286
4284
|
};
|
|
4287
4285
|
}
|
|
4288
|
-
}),
|
|
4286
|
+
}), Sf = /* @__PURE__ */ W(Tf, [["__scopeId", "data-v-d046a15a"]]), wf = /* @__PURE__ */ he({
|
|
4289
4287
|
__name: "FieldMultiselect",
|
|
4290
4288
|
props: {
|
|
4291
4289
|
disabled: {
|
|
@@ -4325,7 +4323,7 @@ const Tf = /* @__PURE__ */ W(hf, [["render", _f], ["__scopeId", "data-v-9a9650ac
|
|
|
4325
4323
|
},
|
|
4326
4324
|
emits: ["modelUpdated"],
|
|
4327
4325
|
setup(e, { expose: t, emit: n }) {
|
|
4328
|
-
const i = e, a = n, o =
|
|
4326
|
+
const i = e, a = n, o = jo(i, "model"), { getLabelId: s, getFieldID: r, clearValidationErrors: d, value: u } = qe.useAbstractFields({
|
|
4329
4327
|
model: o,
|
|
4330
4328
|
schema: i.schema,
|
|
4331
4329
|
formOptions: i.formOptions,
|
|
@@ -4360,10 +4358,10 @@ const Tf = /* @__PURE__ */ W(hf, [["render", _f], ["__scopeId", "data-v-9a9650ac
|
|
|
4360
4358
|
}, null, 8, ["id", "modelValue", "aria-labelledby", "class", "disabled", "items", "kpop-attributes", "label-attributes", "name", "placeholder", "required"]);
|
|
4361
4359
|
};
|
|
4362
4360
|
}
|
|
4363
|
-
}),
|
|
4361
|
+
}), Ef = { class: "selection-group" }, Mf = { class: "form-group horizontal-radios" }, Af = { class: "radio-group" }, If = ["disabled", "value"], Cf = { class: "control-help" }, Of = {
|
|
4364
4362
|
key: 0,
|
|
4365
4363
|
class: "option-field"
|
|
4366
|
-
},
|
|
4364
|
+
}, Ff = { class: "option-field-container" }, kf = {
|
|
4367
4365
|
mixins: [$e],
|
|
4368
4366
|
expose: ["validate", "clearValidationErrors", "schema"],
|
|
4369
4367
|
emits: ["model-updated"],
|
|
@@ -4408,18 +4406,18 @@ const Tf = /* @__PURE__ */ W(hf, [["render", _f], ["__scopeId", "data-v-9a9650ac
|
|
|
4408
4406
|
this.$emit("model-updated", e, t);
|
|
4409
4407
|
}
|
|
4410
4408
|
}
|
|
4411
|
-
},
|
|
4409
|
+
}, Rf = /* @__PURE__ */ Object.assign(kf, {
|
|
4412
4410
|
__name: "FieldSelectionGroup",
|
|
4413
4411
|
setup(e) {
|
|
4414
4412
|
const { t } = ke("en-us", Re);
|
|
4415
|
-
return (n, i) => (c(), _("div",
|
|
4413
|
+
return (n, i) => (c(), _("div", Ef, [
|
|
4416
4414
|
(c(), U(me(n.$props.disabled ? "k-tooltip" : "div"), {
|
|
4417
4415
|
"max-width": "300",
|
|
4418
4416
|
text: I(t)("general.disable_global_radio", { scope: n.scope })
|
|
4419
4417
|
}, {
|
|
4420
4418
|
default: M(() => [
|
|
4421
|
-
m("div",
|
|
4422
|
-
m("div",
|
|
4419
|
+
m("div", Mf, [
|
|
4420
|
+
m("div", Af, [
|
|
4423
4421
|
(c(!0), _(Y, null, oe(n.schema.fields, (a, o) => (c(), _("div", {
|
|
4424
4422
|
key: o,
|
|
4425
4423
|
class: ee(["option-group", { "radio-disabled": n.$props.disabled }])
|
|
@@ -4433,11 +4431,11 @@ const Tf = /* @__PURE__ */ W(hf, [["render", _f], ["__scopeId", "data-v-9a9650ac
|
|
|
4433
4431
|
disabled: n.$props.disabled,
|
|
4434
4432
|
type: "radio",
|
|
4435
4433
|
value: o
|
|
4436
|
-
}, null, 8,
|
|
4437
|
-
[
|
|
4434
|
+
}, null, 8, If), [
|
|
4435
|
+
[qo, n.checkedGroup]
|
|
4438
4436
|
]),
|
|
4439
4437
|
ce(" " + L(a.label) + " ", 1),
|
|
4440
|
-
m("div",
|
|
4438
|
+
m("div", Cf, L(a.description), 1)
|
|
4441
4439
|
], 2)
|
|
4442
4440
|
], 2))), 128))
|
|
4443
4441
|
])
|
|
@@ -4449,8 +4447,8 @@ const Tf = /* @__PURE__ */ W(hf, [["render", _f], ["__scopeId", "data-v-9a9650ac
|
|
|
4449
4447
|
key: o,
|
|
4450
4448
|
class: "option-group"
|
|
4451
4449
|
}, [
|
|
4452
|
-
n.renderedTrack[o] ? Ee((c(), _("div",
|
|
4453
|
-
m("div",
|
|
4450
|
+
n.renderedTrack[o] ? Ee((c(), _("div", Of, [
|
|
4451
|
+
m("div", Ff, [
|
|
4454
4452
|
O(ue, {
|
|
4455
4453
|
model: n.model,
|
|
4456
4454
|
options: { helpAsHtml: !0 },
|
|
@@ -4459,12 +4457,12 @@ const Tf = /* @__PURE__ */ W(hf, [["render", _f], ["__scopeId", "data-v-9a9650ac
|
|
|
4459
4457
|
}, null, 8, ["model", "schema", "onModelUpdated"])
|
|
4460
4458
|
])
|
|
4461
4459
|
], 512)), [
|
|
4462
|
-
[
|
|
4460
|
+
[Ko, a.fields && n.checkedGroup === o]
|
|
4463
4461
|
]) : B("", !0)
|
|
4464
4462
|
]))), 128))
|
|
4465
4463
|
]));
|
|
4466
4464
|
}
|
|
4467
|
-
}),
|
|
4465
|
+
}), Uf = /* @__PURE__ */ W(Rf, [["__scopeId", "data-v-65b91ac7"]]), Lf = { class: "form-field-wrapper" }, Nf = /* @__PURE__ */ he({
|
|
4468
4466
|
__name: "FieldSwitch",
|
|
4469
4467
|
props: {
|
|
4470
4468
|
disabled: {
|
|
@@ -4518,7 +4516,7 @@ const Tf = /* @__PURE__ */ W(hf, [["render", _f], ["__scopeId", "data-v-9a9650ac
|
|
|
4518
4516
|
clearValidationErrors: f
|
|
4519
4517
|
}), (b, k) => {
|
|
4520
4518
|
const q = D("KInputSwitch");
|
|
4521
|
-
return c(), _("div",
|
|
4519
|
+
return c(), _("div", Lf, [
|
|
4522
4520
|
O(q, {
|
|
4523
4521
|
id: I(u)(e.schema),
|
|
4524
4522
|
modelValue: I(p),
|
|
@@ -4534,7 +4532,7 @@ const Tf = /* @__PURE__ */ W(hf, [["render", _f], ["__scopeId", "data-v-9a9650ac
|
|
|
4534
4532
|
]);
|
|
4535
4533
|
};
|
|
4536
4534
|
}
|
|
4537
|
-
}),
|
|
4535
|
+
}), Pf = { class: "field-textarea" }, Df = /* @__PURE__ */ he({
|
|
4538
4536
|
__name: "FieldTextArea",
|
|
4539
4537
|
props: {
|
|
4540
4538
|
disabled: {
|
|
@@ -4590,7 +4588,7 @@ const Tf = /* @__PURE__ */ W(hf, [["render", _f], ["__scopeId", "data-v-9a9650ac
|
|
|
4590
4588
|
};
|
|
4591
4589
|
return (b, k) => {
|
|
4592
4590
|
const q = D("KTextArea");
|
|
4593
|
-
return c(), _("div",
|
|
4591
|
+
return c(), _("div", Pf, [
|
|
4594
4592
|
O(q, et(b.$attrs, {
|
|
4595
4593
|
id: I(d)(e.schema),
|
|
4596
4594
|
modelValue: I(p),
|
|
@@ -4616,33 +4614,33 @@ const Tf = /* @__PURE__ */ W(hf, [["render", _f], ["__scopeId", "data-v-9a9650ac
|
|
|
4616
4614
|
]);
|
|
4617
4615
|
};
|
|
4618
4616
|
}
|
|
4619
|
-
}),
|
|
4617
|
+
}), $f = /* @__PURE__ */ W(Df, [["__scopeId", "data-v-0e146fba"]]), Vf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4620
4618
|
__proto__: null,
|
|
4621
|
-
FieldAdvanced:
|
|
4622
|
-
FieldArray:
|
|
4623
|
-
FieldArrayCardContainer:
|
|
4624
|
-
FieldArrayItem:
|
|
4625
|
-
FieldArrayMultiItem:
|
|
4626
|
-
FieldAutoSuggest:
|
|
4627
|
-
FieldAutoSuggestV2:
|
|
4628
|
-
FieldCheckbox:
|
|
4629
|
-
FieldChecklist:
|
|
4630
|
-
FieldInput:
|
|
4631
|
-
FieldKeyValuePairs:
|
|
4632
|
-
FieldLabel:
|
|
4633
|
-
FieldMetric:
|
|
4634
|
-
FieldMultiselect:
|
|
4635
|
-
FieldObject:
|
|
4636
|
-
FieldObjectAdvanced:
|
|
4637
|
-
FieldRadio:
|
|
4638
|
-
FieldSelect:
|
|
4639
|
-
FieldSelectionGroup:
|
|
4640
|
-
FieldSwitch:
|
|
4641
|
-
FieldTextArea:
|
|
4642
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
4619
|
+
FieldAdvanced: Cc,
|
|
4620
|
+
FieldArray: Jm,
|
|
4621
|
+
FieldArrayCardContainer: po,
|
|
4622
|
+
FieldArrayItem: go,
|
|
4623
|
+
FieldArrayMultiItem: yo,
|
|
4624
|
+
FieldAutoSuggest: bo,
|
|
4625
|
+
FieldAutoSuggestV2: _o,
|
|
4626
|
+
FieldCheckbox: tf,
|
|
4627
|
+
FieldChecklist: mf,
|
|
4628
|
+
FieldInput: To,
|
|
4629
|
+
FieldKeyValuePairs: _f,
|
|
4630
|
+
FieldLabel: Sf,
|
|
4631
|
+
FieldMetric: So,
|
|
4632
|
+
FieldMultiselect: wf,
|
|
4633
|
+
FieldObject: wo,
|
|
4634
|
+
FieldObjectAdvanced: Eo,
|
|
4635
|
+
FieldRadio: Mo,
|
|
4636
|
+
FieldSelect: Ao,
|
|
4637
|
+
FieldSelectionGroup: Uf,
|
|
4638
|
+
FieldSwitch: Nf,
|
|
4639
|
+
FieldTextArea: $f
|
|
4640
|
+
}, Symbol.toStringTag, { value: "Module" })), jf = {
|
|
4643
4641
|
name: "FormGroup",
|
|
4644
|
-
components:
|
|
4645
|
-
mixins: [
|
|
4642
|
+
components: Vf,
|
|
4643
|
+
mixins: [io],
|
|
4646
4644
|
inject: {
|
|
4647
4645
|
"vfg-array-item-index": {
|
|
4648
4646
|
default: void 0
|
|
@@ -4700,7 +4698,7 @@ const Tf = /* @__PURE__ */ W(hf, [["render", _f], ["__scopeId", "data-v-9a9650ac
|
|
|
4700
4698
|
},
|
|
4701
4699
|
methods: {
|
|
4702
4700
|
sanitize(e) {
|
|
4703
|
-
return
|
|
4701
|
+
return Il.sanitize(e);
|
|
4704
4702
|
},
|
|
4705
4703
|
// Should field type have a label?
|
|
4706
4704
|
fieldTypeHasLabel(e) {
|
|
@@ -4717,7 +4715,7 @@ const Tf = /* @__PURE__ */ W(hf, [["render", _f], ["__scopeId", "data-v-9a9650ac
|
|
|
4717
4715
|
},
|
|
4718
4716
|
getFieldID(e) {
|
|
4719
4717
|
const t = G(this.options, "fieldIdPrefix", "");
|
|
4720
|
-
return
|
|
4718
|
+
return ri(e, t);
|
|
4721
4719
|
},
|
|
4722
4720
|
getTooltipId(e) {
|
|
4723
4721
|
return `${this.getFieldID(e)}-tooltip`;
|
|
@@ -4766,20 +4764,20 @@ const Tf = /* @__PURE__ */ W(hf, [["render", _f], ["__scopeId", "data-v-9a9650ac
|
|
|
4766
4764
|
return e ? e.replace(/^[cC]onfig\./, "") : "";
|
|
4767
4765
|
}
|
|
4768
4766
|
}
|
|
4769
|
-
},
|
|
4767
|
+
}, qf = ["innerHTML"], Kf = { class: "icon-wrapper" }, Bf = {
|
|
4770
4768
|
key: 0,
|
|
4771
4769
|
class: "link-wrapper"
|
|
4772
|
-
},
|
|
4770
|
+
}, zf = { class: "field-wrap" }, xf = {
|
|
4773
4771
|
key: 0,
|
|
4774
4772
|
class: "buttons"
|
|
4775
|
-
},
|
|
4773
|
+
}, Hf = ["type", "onClick", "textContent"], Yf = {
|
|
4776
4774
|
key: 1,
|
|
4777
4775
|
class: "hint"
|
|
4778
|
-
},
|
|
4776
|
+
}, Gf = {
|
|
4779
4777
|
key: 2,
|
|
4780
4778
|
class: "errors help-block"
|
|
4781
4779
|
};
|
|
4782
|
-
function
|
|
4780
|
+
function Wf(e, t, n, i, a, o) {
|
|
4783
4781
|
const s = D("KExternalLink"), r = D("KLabel");
|
|
4784
4782
|
return c(), _("div", {
|
|
4785
4783
|
class: ee(["form-group", e.getFieldRowClasses(n.field)])
|
|
@@ -4797,10 +4795,10 @@ function Zf(e, t, n, i, a, o) {
|
|
|
4797
4795
|
} : void 0
|
|
4798
4796
|
}, cn({
|
|
4799
4797
|
default: M(() => [
|
|
4800
|
-
m("div",
|
|
4798
|
+
m("div", Kf, [
|
|
4801
4799
|
m("span", null, L(o.formattedLabel(n.field.label)), 1)
|
|
4802
4800
|
]),
|
|
4803
|
-
n.field.link ? (c(), _("div",
|
|
4801
|
+
n.field.link ? (c(), _("div", Bf, [
|
|
4804
4802
|
O(s, {
|
|
4805
4803
|
href: n.field.link
|
|
4806
4804
|
}, {
|
|
@@ -4819,12 +4817,12 @@ function Zf(e, t, n, i, a, o) {
|
|
|
4819
4817
|
fn: M(() => [
|
|
4820
4818
|
m("div", {
|
|
4821
4819
|
innerHTML: o.sanitize(n.field.help)
|
|
4822
|
-
}, null, 8,
|
|
4820
|
+
}, null, 8, qf)
|
|
4823
4821
|
]),
|
|
4824
4822
|
key: "0"
|
|
4825
4823
|
} : void 0
|
|
4826
4824
|
]), 1032, ["aria-describedby", "class", "for", "info", "tooltip-attributes"])) : B("", !0),
|
|
4827
|
-
m("div",
|
|
4825
|
+
m("div", zf, [
|
|
4828
4826
|
(c(), U(me(o.getFieldComponent(n.field)), et(e.$attrs, {
|
|
4829
4827
|
ref: "child",
|
|
4830
4828
|
disabled: e.fieldDisabled(n.field) || null,
|
|
@@ -4837,31 +4835,31 @@ function Zf(e, t, n, i, a, o) {
|
|
|
4837
4835
|
onRefreshModel: o.onRefreshModel,
|
|
4838
4836
|
onValidated: o.onFieldValidated
|
|
4839
4837
|
}), null, 16, ["disabled", "form-options", "hint", "model", "schema", "vfg", "onModelUpdated", "onRefreshModel", "onValidated"])),
|
|
4840
|
-
o.buttonVisibility(n.field) ? (c(), _("div",
|
|
4838
|
+
o.buttonVisibility(n.field) ? (c(), _("div", xf, [
|
|
4841
4839
|
(c(!0), _(Y, null, oe(n.field.buttons, (d, u) => (c(), _("button", {
|
|
4842
4840
|
key: u,
|
|
4843
4841
|
class: ee(d.classes),
|
|
4844
4842
|
type: o.getButtonType(d),
|
|
4845
4843
|
onClick: (p) => o.buttonClickHandler(d, n.field, p),
|
|
4846
4844
|
textContent: L(d.label)
|
|
4847
|
-
}, null, 10,
|
|
4845
|
+
}, null, 10, Hf))), 128))
|
|
4848
4846
|
])) : B("", !0)
|
|
4849
4847
|
]),
|
|
4850
|
-
n.field.hint && n.field.type !== "input" ? (c(), _("div",
|
|
4851
|
-
o.fieldErrors(n.field).length > 0 ? (c(), _("div",
|
|
4848
|
+
n.field.hint && n.field.type !== "input" ? (c(), _("div", Yf, L(o.fieldHint(n.field)), 1)) : B("", !0),
|
|
4849
|
+
o.fieldErrors(n.field).length > 0 ? (c(), _("div", Gf, [
|
|
4852
4850
|
(c(!0), _(Y, null, oe(o.fieldErrors(n.field), (d, u) => (c(), _("span", { key: u }, L(d), 1))), 128))
|
|
4853
4851
|
])) : B("", !0)
|
|
4854
4852
|
], 2);
|
|
4855
4853
|
}
|
|
4856
|
-
const
|
|
4854
|
+
const Io = /* @__PURE__ */ W(jf, [["render", Wf], ["__scopeId", "data-v-fe02085f"]]);
|
|
4857
4855
|
var un = /* @__PURE__ */ ((e) => (e.REDIS_CE = "redis-ce", e.REDIS_EE = "redis-ee", e))(un || {});
|
|
4858
|
-
const
|
|
4856
|
+
const Zf = (e) => {
|
|
4859
4857
|
var t, n;
|
|
4860
4858
|
return e.type === un.REDIS_CE ? "Host/Port" : (t = e.config.sentinel_nodes) != null && t.length ? "Sentinel" : (n = e.config.cluster_nodes) != null && n.length ? "Cluster" : "Host/Port";
|
|
4861
|
-
},
|
|
4859
|
+
}, Xf = {
|
|
4862
4860
|
[un.REDIS_CE]: "open source",
|
|
4863
4861
|
[un.REDIS_EE]: "enterprise"
|
|
4864
|
-
},
|
|
4862
|
+
}, 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({
|
|
4865
4863
|
__name: "RedisConfigCard",
|
|
4866
4864
|
props: {
|
|
4867
4865
|
configFields: {
|
|
@@ -4896,7 +4894,7 @@ const Xf = (e) => {
|
|
|
4896
4894
|
formatter: n,
|
|
4897
4895
|
order: 3
|
|
4898
4896
|
}
|
|
4899
|
-
}, a = e, o = (f) => f != null, s = (f, b) => o(b) && ["password", "sentinel_password"].includes(f) ? "password" : "text", { convertKeyToTitle: r } =
|
|
4897
|
+
}, a = e, o = (f) => f != null, s = (f, b) => o(b) && ["password", "sentinel_password"].includes(f) ? "password" : "text", { convertKeyToTitle: r } = Go(), d = z(() => Object.entries(a.configFields).map(([f, b]) => {
|
|
4900
4898
|
var k, q, h, A;
|
|
4901
4899
|
return {
|
|
4902
4900
|
key: f,
|
|
@@ -4909,19 +4907,19 @@ const Xf = (e) => {
|
|
|
4909
4907
|
}).sort((f, b) => f.order - b.order).filter((f) => f.type !== "hidden")), u = qe.useRedisNonStandardFields(a.configFields, a.pluginRedisFields), p = z(() => d.value.concat(u));
|
|
4910
4908
|
return (f, b) => {
|
|
4911
4909
|
const k = D("KCopy");
|
|
4912
|
-
return c(), _("div",
|
|
4910
|
+
return c(), _("div", Jf, [
|
|
4913
4911
|
(c(!0), _(Y, null, oe(p.value, ({ key: q, label: h, value: A, type: C }) => (c(), _("div", {
|
|
4914
4912
|
key: q,
|
|
4915
4913
|
class: "partial-config-card-row"
|
|
4916
4914
|
}, [
|
|
4917
|
-
m("div",
|
|
4918
|
-
m("div",
|
|
4915
|
+
m("div", Qf, [
|
|
4916
|
+
m("div", eh, L(h), 1)
|
|
4919
4917
|
]),
|
|
4920
4918
|
m("div", {
|
|
4921
4919
|
class: "config-card-row-value",
|
|
4922
4920
|
"data-testid": `${q}-property-value`
|
|
4923
4921
|
}, [
|
|
4924
|
-
o(A) ? (c(), _("div",
|
|
4922
|
+
o(A) ? (c(), _("div", ih, [
|
|
4925
4923
|
C === "password" ? (c(), _("div", {
|
|
4926
4924
|
key: 0,
|
|
4927
4925
|
"data-testid": `${q}-copy-password`
|
|
@@ -4930,33 +4928,33 @@ const Xf = (e) => {
|
|
|
4930
4928
|
format: "redacted",
|
|
4931
4929
|
text: String(A)
|
|
4932
4930
|
}, null, 8, ["text"])
|
|
4933
|
-
], 8,
|
|
4931
|
+
], 8, ah)) : (c(), _("div", {
|
|
4934
4932
|
key: 1,
|
|
4935
4933
|
"data-testid": `${q}-plain-text`
|
|
4936
|
-
}, L(A), 9,
|
|
4934
|
+
}, L(A), 9, oh))
|
|
4937
4935
|
])) : (c(), _("div", {
|
|
4938
4936
|
key: 0,
|
|
4939
4937
|
"data-testid": `${q}-no-value`
|
|
4940
|
-
}, " – ", 8,
|
|
4941
|
-
], 8,
|
|
4938
|
+
}, " – ", 8, nh))
|
|
4939
|
+
], 8, th)
|
|
4942
4940
|
]))), 128))
|
|
4943
4941
|
]);
|
|
4944
4942
|
};
|
|
4945
4943
|
}
|
|
4946
|
-
}),
|
|
4944
|
+
}), sh = /* @__PURE__ */ W(rh, [["__scopeId", "data-v-40b3d7b5"]]), lh = {
|
|
4947
4945
|
class: "redis-config-select",
|
|
4948
4946
|
"data-testid": "redis-config-select"
|
|
4949
|
-
},
|
|
4947
|
+
}, dh = { class: "selected-redis-config" }, uh = ["data-testid"], ch = {
|
|
4950
4948
|
class: "select-item-name",
|
|
4951
4949
|
"data-testid": "selected-redis-config"
|
|
4952
|
-
},
|
|
4950
|
+
}, mh = {
|
|
4953
4951
|
class: "empty-redis-config",
|
|
4954
4952
|
"data-testid": "empty-redis-config"
|
|
4955
|
-
},
|
|
4953
|
+
}, fh = {
|
|
4956
4954
|
key: 1,
|
|
4957
4955
|
class: "redis-shared-config-error-message",
|
|
4958
4956
|
"data-testid": "redis-config-fetch-error"
|
|
4959
|
-
},
|
|
4957
|
+
}, hh = "1000", ph = /* @__PURE__ */ he({
|
|
4960
4958
|
__name: "RedisConfigSelect",
|
|
4961
4959
|
props: {
|
|
4962
4960
|
defaultRedisConfigItem: {
|
|
@@ -4983,7 +4981,7 @@ const Xf = (e) => {
|
|
|
4983
4981
|
},
|
|
4984
4982
|
emits: ["showNewPartialModal"],
|
|
4985
4983
|
setup(e) {
|
|
4986
|
-
const { t } = ke("en-us", Re), n = an(
|
|
4984
|
+
const { t } = ke("en-us", Re), n = an(ol), i = {
|
|
4987
4985
|
konnect: {
|
|
4988
4986
|
getOne: "/v2/control-planes/{controlPlaneId}/core-entities/partials/{id}",
|
|
4989
4987
|
getAll: "/v2/control-planes/{controlPlaneId}/core-entities/partials"
|
|
@@ -4992,22 +4990,22 @@ const Xf = (e) => {
|
|
|
4992
4990
|
getOne: "/{workspace}/partials/{id}",
|
|
4993
4991
|
getAll: "/{workspace}/partials"
|
|
4994
4992
|
}
|
|
4995
|
-
}, a = e, o = ae(null), { getMessageFromError: s } =
|
|
4993
|
+
}, a = e, o = ae(null), { getMessageFromError: s } = Wo(), r = an(al), {
|
|
4996
4994
|
debouncedQueryChange: d,
|
|
4997
4995
|
loading: u,
|
|
4998
4996
|
error: p,
|
|
4999
4997
|
loadItems: f,
|
|
5000
4998
|
results: b
|
|
5001
|
-
} =
|
|
4999
|
+
} = Zo(r, i[r.app].getAll, hh, {
|
|
5002
5000
|
fetchedItemsKey: "data",
|
|
5003
5001
|
searchKeys: ["id", "name"]
|
|
5004
5002
|
}), k = z(() => p.value ? s(p.value) : ""), q = (N) => {
|
|
5005
5003
|
let T = `${r.apiBaseUrl}${i[r.app].getOne}`;
|
|
5006
5004
|
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;
|
|
5007
5005
|
}, h = z(() => {
|
|
5008
|
-
const N = (b.value || []).map((T) => ({ label: T.id, name: T.name, value: T.id, type: T.type, tag:
|
|
5006
|
+
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");
|
|
5009
5007
|
return a.redisType !== "all" ? N.filter((T) => T.type === a.redisType) : N;
|
|
5010
|
-
}), { axiosInstance: A } =
|
|
5008
|
+
}), { axiosInstance: A } = Xo(r == null ? void 0 : r.axiosRequestConfig), C = async (N) => {
|
|
5011
5009
|
if (N) {
|
|
5012
5010
|
a.updateRedisModel(N);
|
|
5013
5011
|
try {
|
|
@@ -5023,14 +5021,14 @@ const Xf = (e) => {
|
|
|
5023
5021
|
};
|
|
5024
5022
|
return mn(() => n == null ? void 0 : n.value, async (N) => {
|
|
5025
5023
|
N && await f();
|
|
5026
|
-
}),
|
|
5024
|
+
}), Jn(() => {
|
|
5027
5025
|
f(), a.defaultRedisConfigItem && C(a.defaultRedisConfigItem);
|
|
5028
5026
|
}), (N, T) => {
|
|
5029
5027
|
const F = D("KLabel"), y = D("KBadge"), v = D("KSelect");
|
|
5030
5028
|
return c(), _(Y, null, [
|
|
5031
|
-
m("div",
|
|
5029
|
+
m("div", lh, [
|
|
5032
5030
|
O(F, {
|
|
5033
|
-
info: e.isCustomPlugin ? I(t)("redis.custom_plugin.tooltip") : I(t)("redis.shared_configuration.tooltip", { type: I(
|
|
5031
|
+
info: e.isCustomPlugin ? I(t)("redis.custom_plugin.tooltip") : I(t)("redis.shared_configuration.tooltip", { type: I(Sa)(e.redisType) }),
|
|
5034
5032
|
"tooltip-attributes": {
|
|
5035
5033
|
maxWidth: "300",
|
|
5036
5034
|
placement: "top"
|
|
@@ -5055,14 +5053,14 @@ const Xf = (e) => {
|
|
|
5055
5053
|
onQueryChange: I(d)
|
|
5056
5054
|
}, {
|
|
5057
5055
|
"selected-item-template": M(({ item: g }) => [
|
|
5058
|
-
m("div",
|
|
5056
|
+
m("div", dh, L(g.name), 1)
|
|
5059
5057
|
]),
|
|
5060
5058
|
"item-template": M(({ item: g }) => [
|
|
5061
5059
|
m("div", {
|
|
5062
5060
|
class: "plugin-form-redis-configuration-dropdown-item",
|
|
5063
5061
|
"data-testid": `redis-configuration-dropdown-item-${g.name}`
|
|
5064
5062
|
}, [
|
|
5065
|
-
m("span",
|
|
5063
|
+
m("span", ch, L(g.name), 1),
|
|
5066
5064
|
O(y, {
|
|
5067
5065
|
appearance: "info",
|
|
5068
5066
|
class: "select-item-label"
|
|
@@ -5072,10 +5070,10 @@ const Xf = (e) => {
|
|
|
5072
5070
|
]),
|
|
5073
5071
|
_: 2
|
|
5074
5072
|
}, 1024)
|
|
5075
|
-
], 8,
|
|
5073
|
+
], 8, uh)
|
|
5076
5074
|
]),
|
|
5077
5075
|
empty: M(() => [
|
|
5078
|
-
m("div",
|
|
5076
|
+
m("div", mh, L(I(t)("redis.shared_configuration.empty_state")), 1)
|
|
5079
5077
|
]),
|
|
5080
5078
|
"dropdown-footer-text": M(() => [
|
|
5081
5079
|
m("div", {
|
|
@@ -5083,32 +5081,32 @@ const Xf = (e) => {
|
|
|
5083
5081
|
"data-testid": "new-redis-config-area",
|
|
5084
5082
|
onClick: T[0] || (T[0] = (g) => N.$emit("showNewPartialModal"))
|
|
5085
5083
|
}, [
|
|
5086
|
-
O(I(
|
|
5087
|
-
m("span", null, L(I(t)("redis.shared_configuration.create_new_configuration", { type: I(
|
|
5084
|
+
O(I(Qn), { size: I(xc) }, null, 8, ["size"]),
|
|
5085
|
+
m("span", null, L(I(t)("redis.shared_configuration.create_new_configuration", { type: I(Sa)(e.redisType) })), 1)
|
|
5088
5086
|
])
|
|
5089
5087
|
]),
|
|
5090
5088
|
_: 1
|
|
5091
5089
|
}, 8, ["items", "loading", "model-value", "placeholder", "onQueryChange"])
|
|
5092
5090
|
]),
|
|
5093
|
-
o.value ? (c(), U(
|
|
5091
|
+
o.value ? (c(), U(sh, {
|
|
5094
5092
|
key: 0,
|
|
5095
5093
|
"config-fields": o.value,
|
|
5096
5094
|
"plugin-redis-fields": e.pluginRedisFields
|
|
5097
5095
|
}, null, 8, ["config-fields", "plugin-redis-fields"])) : B("", !0),
|
|
5098
|
-
k.value ? (c(), _("p",
|
|
5096
|
+
k.value ? (c(), _("p", fh, L(k.value || I(t)("redis.shared_configuration.error")), 1)) : B("", !0)
|
|
5099
5097
|
], 64);
|
|
5100
5098
|
};
|
|
5101
5099
|
}
|
|
5102
|
-
}),
|
|
5100
|
+
}), wa = /* @__PURE__ */ W(ph, [["__scopeId", "data-v-cfbe2781"]]), gh = { key: 0 }, yh = {
|
|
5103
5101
|
class: "redis-config-radio-group",
|
|
5104
5102
|
"data-testid": "redis-config-radio-group"
|
|
5105
|
-
},
|
|
5103
|
+
}, vh = {
|
|
5106
5104
|
key: 0,
|
|
5107
5105
|
class: "shared-redis-config"
|
|
5108
|
-
},
|
|
5106
|
+
}, bh = {
|
|
5109
5107
|
key: 1,
|
|
5110
5108
|
class: "dedicated-redis-config"
|
|
5111
|
-
},
|
|
5109
|
+
}, _h = { class: "dedicated-redis-config-title" }, Th = /* @__PURE__ */ he({
|
|
5112
5110
|
__name: "FormRedis",
|
|
5113
5111
|
props: {
|
|
5114
5112
|
tag: {
|
|
@@ -5167,7 +5165,7 @@ const Xf = (e) => {
|
|
|
5167
5165
|
};
|
|
5168
5166
|
return mn(() => s.value, (h) => {
|
|
5169
5167
|
h ? u.value && i("partialToggled", "redis", { partials: u.value }) : i("partialToggled", "partials", d.value);
|
|
5170
|
-
}),
|
|
5168
|
+
}), Jn(() => {
|
|
5171
5169
|
var h, A, C;
|
|
5172
5170
|
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), {})), (C = (A = (h = n == null ? void 0 : n.model) == null ? void 0 : h.partials) == null ? void 0 : A[0]) != null && C.id) {
|
|
5173
5171
|
const N = n.model.partials[0].id;
|
|
@@ -5176,12 +5174,12 @@ const Xf = (e) => {
|
|
|
5176
5174
|
}), (h, A) => {
|
|
5177
5175
|
const C = D("KAlert"), N = D("KBadge"), T = D("KRadio"), F = D("KCard");
|
|
5178
5176
|
return c(), _("div", null, [
|
|
5179
|
-
o.value ? (c(), _("div",
|
|
5177
|
+
o.value ? (c(), _("div", gh, [
|
|
5180
5178
|
O(C, {
|
|
5181
5179
|
"data-testid": "custom-plugin-redis-config-note",
|
|
5182
5180
|
message: I(a)("redis.custom_plugin.alert")
|
|
5183
5181
|
}, null, 8, ["message"]),
|
|
5184
|
-
O(
|
|
5182
|
+
O(wa, {
|
|
5185
5183
|
"default-redis-config-item": r.value,
|
|
5186
5184
|
"is-custom-plugin": "",
|
|
5187
5185
|
"plugin-redis-fields": e.field.fields,
|
|
@@ -5195,7 +5193,7 @@ const Xf = (e) => {
|
|
|
5195
5193
|
title: I(a)("redis.title")
|
|
5196
5194
|
}, {
|
|
5197
5195
|
default: M(() => [
|
|
5198
|
-
m("div",
|
|
5196
|
+
m("div", yh, [
|
|
5199
5197
|
O(T, {
|
|
5200
5198
|
modelValue: s.value,
|
|
5201
5199
|
"onUpdate:modelValue": A[1] || (A[1] = (y) => s.value = y),
|
|
@@ -5227,22 +5225,22 @@ const Xf = (e) => {
|
|
|
5227
5225
|
"selected-value": !1
|
|
5228
5226
|
}, null, 8, ["modelValue", "description", "label"])
|
|
5229
5227
|
]),
|
|
5230
|
-
s.value ? (c(), _("div",
|
|
5231
|
-
O(
|
|
5228
|
+
s.value ? (c(), _("div", vh, [
|
|
5229
|
+
O(wa, {
|
|
5232
5230
|
"default-redis-config-item": r.value,
|
|
5233
5231
|
"plugin-redis-fields": e.field.fields,
|
|
5234
5232
|
"redis-type": e.field.redisType,
|
|
5235
5233
|
"update-redis-model": f,
|
|
5236
5234
|
onShowNewPartialModal: A[3] || (A[3] = (y) => h.$emit("showNewPartialModal"))
|
|
5237
5235
|
}, null, 8, ["default-redis-config-item", "plugin-redis-fields", "redis-type"])
|
|
5238
|
-
])) : (c(), _("div",
|
|
5239
|
-
m("div",
|
|
5236
|
+
])) : (c(), _("div", bh, [
|
|
5237
|
+
m("div", _h, L(I(a)("redis.dedicated_configuration.title")), 1),
|
|
5240
5238
|
(c(), U(me(e.tag), null, {
|
|
5241
5239
|
default: M(() => [
|
|
5242
5240
|
(c(!0), _(Y, null, oe(e.field.fields, (y) => (c(), _(Y, {
|
|
5243
5241
|
key: y.model
|
|
5244
5242
|
}, [
|
|
5245
|
-
p(y) ? (c(), U(
|
|
5243
|
+
p(y) ? (c(), U(Io, {
|
|
5246
5244
|
key: 0,
|
|
5247
5245
|
ref_for: !0,
|
|
5248
5246
|
ref: "children",
|
|
@@ -5266,10 +5264,10 @@ const Xf = (e) => {
|
|
|
5266
5264
|
]);
|
|
5267
5265
|
};
|
|
5268
5266
|
}
|
|
5269
|
-
}),
|
|
5267
|
+
}), Sh = /* @__PURE__ */ W(Th, [["__scopeId", "data-v-addd6536"]]), wh = {
|
|
5270
5268
|
name: "VueFormGenerator",
|
|
5271
|
-
components: { formGroup:
|
|
5272
|
-
mixins: [
|
|
5269
|
+
components: { formGroup: Io, formRedis: Sh },
|
|
5270
|
+
mixins: [io],
|
|
5273
5271
|
inject: {
|
|
5274
5272
|
// Inject AUTOFILL_SLOT for provide()
|
|
5275
5273
|
autofillSlot: {
|
|
@@ -5430,13 +5428,13 @@ const Xf = (e) => {
|
|
|
5430
5428
|
});
|
|
5431
5429
|
}
|
|
5432
5430
|
}
|
|
5433
|
-
},
|
|
5431
|
+
}, Eh = {
|
|
5434
5432
|
key: 0,
|
|
5435
5433
|
class: "vue-form-generator"
|
|
5436
|
-
},
|
|
5437
|
-
function
|
|
5434
|
+
}, Mh = { key: 0 };
|
|
5435
|
+
function Ah(e, t, n, i, a, o) {
|
|
5438
5436
|
const s = D("form-redis"), r = D("form-group"), d = D("KCollapse");
|
|
5439
|
-
return n.schema != null ? (c(), _("div",
|
|
5437
|
+
return n.schema != null ? (c(), _("div", Eh, [
|
|
5440
5438
|
n.schema.fields ? (c(), U(me(n.tag), { key: 0 }, {
|
|
5441
5439
|
default: M(() => [
|
|
5442
5440
|
(c(!0), _(Y, null, oe(o.fields, (u) => (c(), _(Y, {
|
|
@@ -5575,7 +5573,7 @@ function Ih(e, t, n, i, a, o) {
|
|
|
5575
5573
|
class: ee(e.getFieldRowClasses(u))
|
|
5576
5574
|
}, {
|
|
5577
5575
|
default: M(() => [
|
|
5578
|
-
u.legend ? (c(), _("legend",
|
|
5576
|
+
u.legend ? (c(), _("legend", Mh, L(u.legend), 1)) : B("", !0),
|
|
5579
5577
|
(c(!0), _(Y, null, oe(u.fields, (f) => (c(), _(Y, {
|
|
5580
5578
|
key: f.model
|
|
5581
5579
|
}, [
|
|
@@ -5599,17 +5597,17 @@ function Ih(e, t, n, i, a, o) {
|
|
|
5599
5597
|
], 64))), 128))
|
|
5600
5598
|
])) : B("", !0);
|
|
5601
5599
|
}
|
|
5602
|
-
const ue = /* @__PURE__ */ W(
|
|
5600
|
+
const ue = /* @__PURE__ */ W(wh, [["render", Ah]]), Dt = {
|
|
5603
5601
|
openIdConnectDocs: "https://developer.konghq.com/plugins/openid-connect/",
|
|
5604
5602
|
openIdConnectJWKDocs: "https://developer.konghq.com/plugins/openid-connect/reference/#schema--config-client-jwk",
|
|
5605
5603
|
openIdConnectClusterNodesDocs: "https://developer.konghq.com/plugins/openid-connect/reference/#schema--config-redis-cluster-nodes",
|
|
5606
5604
|
openIdConfigurationDocs: "https://developer.konghq.com/plugins/openid-connect/reference/",
|
|
5607
5605
|
openIdAuthorizationDocs: "https://developer.konghq.com/plugins/openid-connect/#authorization"
|
|
5608
|
-
},
|
|
5606
|
+
}, Ea = /* @__PURE__ */ new Set([
|
|
5609
5607
|
"config-client_id",
|
|
5610
5608
|
"config-client_secret",
|
|
5611
5609
|
"config-issuer"
|
|
5612
|
-
]),
|
|
5610
|
+
]), Ma = /* @__PURE__ */ new Set([
|
|
5613
5611
|
"config-scopes_claim",
|
|
5614
5612
|
"config-scopes_required",
|
|
5615
5613
|
"config-audience_claim",
|
|
@@ -5619,7 +5617,7 @@ const ue = /* @__PURE__ */ W(Eh, [["render", Ih]]), Dt = {
|
|
|
5619
5617
|
"config-groups_claim",
|
|
5620
5618
|
"config-groups_required",
|
|
5621
5619
|
"config-authenticated_groups_claim"
|
|
5622
|
-
]),
|
|
5620
|
+
]), Ih = {
|
|
5623
5621
|
name: "OIDCForm",
|
|
5624
5622
|
components: { VueFormGenerator: ue },
|
|
5625
5623
|
provide() {
|
|
@@ -5721,14 +5719,14 @@ const ue = /* @__PURE__ */ W(Eh, [["render", Ih]]), Dt = {
|
|
|
5721
5719
|
};
|
|
5722
5720
|
const t = this.formSchema.fields.reduce((a, o) => (a[o.model] = o, a), {});
|
|
5723
5721
|
this.commonFieldsSchema = {
|
|
5724
|
-
fields: Array.from(
|
|
5722
|
+
fields: Array.from(Ea).reduce((a, o) => (t[o] && a.push(t[o]), a), [])
|
|
5725
5723
|
}, this.authFieldsSchema = {
|
|
5726
|
-
fields: Array.from(
|
|
5724
|
+
fields: Array.from(Ma).reduce((a, o) => (t[o] && a.push(t[o]), a), [])
|
|
5727
5725
|
};
|
|
5728
5726
|
const { redis: n, redisModels: i } = qe.useRedisPartial(this.formSchema);
|
|
5729
5727
|
this.advancedFieldsSchema = {
|
|
5730
5728
|
fields: this.formSchema.fields.filter(
|
|
5731
|
-
(a) => a.model.startsWith("config") && a.model !== "config-auth_methods" && !
|
|
5729
|
+
(a) => a.model.startsWith("config") && a.model !== "config-auth_methods" && !Ea.has(a.model) && !Ma.has(a.model) && (!this.enableRedisPartial || !i.includes(a.model)) || a.model === "tags"
|
|
5732
5730
|
).reduce((a, o) => {
|
|
5733
5731
|
var s, r, d, u;
|
|
5734
5732
|
switch (o.model) {
|
|
@@ -5824,8 +5822,8 @@ const ue = /* @__PURE__ */ W(Eh, [["render", Ih]]), Dt = {
|
|
|
5824
5822
|
this.formModel["config-auth_methods"] = this.getAuthMethodsValue(t, e), this.onModelUpdated();
|
|
5825
5823
|
}
|
|
5826
5824
|
}
|
|
5827
|
-
},
|
|
5828
|
-
function
|
|
5825
|
+
}, 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" };
|
|
5826
|
+
function Nh(e, t, n, i, a, o) {
|
|
5829
5827
|
const s = D("VueFormGenerator"), r = D("KExternalLink"), d = D("KLabel"), u = D("KCheckbox"), p = D("KInputSwitch"), f = D("KTabs");
|
|
5830
5828
|
return c(), _("div", null, [
|
|
5831
5829
|
n.formModel.id && n.isEditing || !n.isEditing ? (c(), U(s, {
|
|
@@ -5838,8 +5836,8 @@ function Ph(e, t, n, i, a, o) {
|
|
|
5838
5836
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : B("", !0),
|
|
5839
5837
|
O(f, { tabs: a.tabs }, {
|
|
5840
5838
|
common: M(() => [
|
|
5841
|
-
m("div",
|
|
5842
|
-
m("div",
|
|
5839
|
+
m("div", Ch, [
|
|
5840
|
+
m("div", Oh, [
|
|
5843
5841
|
O(r, { href: a.openIdConfigurationDocs }, {
|
|
5844
5842
|
default: M(() => t[2] || (t[2] = [
|
|
5845
5843
|
m("span", { class: "section-header" }, "Common Configuration Settings", -1)
|
|
@@ -5863,7 +5861,7 @@ function Ph(e, t, n, i, a, o) {
|
|
|
5863
5861
|
_: 1,
|
|
5864
5862
|
__: [3]
|
|
5865
5863
|
}),
|
|
5866
|
-
m("div",
|
|
5864
|
+
m("div", Fh, [
|
|
5867
5865
|
(c(!0), _(Y, null, oe(a.authMethods, (b) => (c(), _("div", {
|
|
5868
5866
|
key: b.value,
|
|
5869
5867
|
class: "auth-method"
|
|
@@ -5889,8 +5887,8 @@ function Ph(e, t, n, i, a, o) {
|
|
|
5889
5887
|
])
|
|
5890
5888
|
]),
|
|
5891
5889
|
authorization: M(() => [
|
|
5892
|
-
m("div",
|
|
5893
|
-
m("div",
|
|
5890
|
+
m("div", kh, [
|
|
5891
|
+
m("div", Rh, [
|
|
5894
5892
|
O(r, { href: a.openIdAuthorizationDocs }, {
|
|
5895
5893
|
default: M(() => t[5] || (t[5] = [
|
|
5896
5894
|
m("span", { class: "section-header" }, "Authorization Configuration Settings", -1)
|
|
@@ -5908,15 +5906,15 @@ function Ph(e, t, n, i, a, o) {
|
|
|
5908
5906
|
onModelUpdated: n.onModelUpdated
|
|
5909
5907
|
}, {
|
|
5910
5908
|
"autofill-provider": M((b) => [
|
|
5911
|
-
Oe(e.$slots, "autofill-provider",
|
|
5909
|
+
Oe(e.$slots, "autofill-provider", Bo(zo(b)), void 0, !0)
|
|
5912
5910
|
]),
|
|
5913
5911
|
_: 3
|
|
5914
5912
|
}, 8, ["model", "options", "schema", "onModelUpdated"])) : B("", !0)
|
|
5915
5913
|
])
|
|
5916
5914
|
]),
|
|
5917
5915
|
advanced: M(() => [
|
|
5918
|
-
m("div",
|
|
5919
|
-
m("div",
|
|
5916
|
+
m("div", Uh, [
|
|
5917
|
+
m("div", Lh, [
|
|
5920
5918
|
O(r, { href: a.openIdConnectLink }, {
|
|
5921
5919
|
default: M(() => t[7] || (t[7] = [
|
|
5922
5920
|
m("span", { class: "section-header" }, "Advanced Configuration Settings", -1)
|
|
@@ -5943,7 +5941,7 @@ function Ph(e, t, n, i, a, o) {
|
|
|
5943
5941
|
}, 8, ["tabs"])
|
|
5944
5942
|
]);
|
|
5945
5943
|
}
|
|
5946
|
-
const
|
|
5944
|
+
const Ph = /* @__PURE__ */ W(Ih, [["render", Nh], ["__scopeId", "data-v-741bf3cb"]]), Dh = /* @__PURE__ */ he({
|
|
5947
5945
|
__name: "PostFunction",
|
|
5948
5946
|
props: {
|
|
5949
5947
|
formModel: {
|
|
@@ -5986,7 +5984,7 @@ const Dh = /* @__PURE__ */ W(Ch, [["render", Ph], ["__scopeId", "data-v-741bf3cb
|
|
|
5986
5984
|
onModelUpdated: e.onModelUpdated
|
|
5987
5985
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : B("", !0);
|
|
5988
5986
|
}
|
|
5989
|
-
}),
|
|
5987
|
+
}), $h = /* @__PURE__ */ W(Dh, [["__scopeId", "data-v-f54f37ae"]]), Vh = /* @__PURE__ */ he({
|
|
5990
5988
|
__name: "ExitTransformer",
|
|
5991
5989
|
props: {
|
|
5992
5990
|
formModel: {
|
|
@@ -6029,7 +6027,7 @@ const Dh = /* @__PURE__ */ W(Ch, [["render", Ph], ["__scopeId", "data-v-741bf3cb
|
|
|
6029
6027
|
onModelUpdated: e.onModelUpdated
|
|
6030
6028
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : B("", !0);
|
|
6031
6029
|
}
|
|
6032
|
-
}),
|
|
6030
|
+
}), jh = /* @__PURE__ */ W(Vh, [["__scopeId", "data-v-0d5c541f"]]), qh = {
|
|
6033
6031
|
fields: [
|
|
6034
6032
|
{
|
|
6035
6033
|
inputType: "text",
|
|
@@ -6064,7 +6062,7 @@ const Dh = /* @__PURE__ */ W(Ch, [["render", Ph], ["__scopeId", "data-v-741bf3cb
|
|
|
6064
6062
|
disabled: !1
|
|
6065
6063
|
}
|
|
6066
6064
|
]
|
|
6067
|
-
},
|
|
6065
|
+
}, Kh = {
|
|
6068
6066
|
fields: [
|
|
6069
6067
|
{
|
|
6070
6068
|
type: "input",
|
|
@@ -6086,7 +6084,7 @@ const Dh = /* @__PURE__ */ W(Ch, [["render", Ph], ["__scopeId", "data-v-741bf3cb
|
|
|
6086
6084
|
disabled: !1
|
|
6087
6085
|
}
|
|
6088
6086
|
]
|
|
6089
|
-
},
|
|
6087
|
+
}, Bh = {
|
|
6090
6088
|
fields: [
|
|
6091
6089
|
{
|
|
6092
6090
|
type: "input",
|
|
@@ -6117,7 +6115,7 @@ const Dh = /* @__PURE__ */ W(Ch, [["render", Ph], ["__scopeId", "data-v-741bf3cb
|
|
|
6117
6115
|
disabled: !1
|
|
6118
6116
|
}
|
|
6119
6117
|
]
|
|
6120
|
-
},
|
|
6118
|
+
}, zh = { class: "general-settings" }, xh = { class: "sub-form" }, Hh = { class: "general-settings" }, Yh = { class: "sub-form" }, Gh = { class: "general-settings" }, Wh = /* @__PURE__ */ he({
|
|
6121
6119
|
__name: "ACMEForm",
|
|
6122
6120
|
props: {
|
|
6123
6121
|
formModel: {
|
|
@@ -6154,7 +6152,7 @@ const Dh = /* @__PURE__ */ W(Ch, [["render", Ph], ["__scopeId", "data-v-741bf3cb
|
|
|
6154
6152
|
return v;
|
|
6155
6153
|
}), o = z(() => {
|
|
6156
6154
|
var g;
|
|
6157
|
-
const v = We(
|
|
6155
|
+
const v = We(qh);
|
|
6158
6156
|
for (const V of v.fields) {
|
|
6159
6157
|
const Z = (g = a.value[V.model]) == null ? void 0 : g.help;
|
|
6160
6158
|
V.help === void 0 && typeof Z == "string" && (V.help = Z);
|
|
@@ -6162,7 +6160,7 @@ const Dh = /* @__PURE__ */ W(Ch, [["render", Ph], ["__scopeId", "data-v-741bf3cb
|
|
|
6162
6160
|
return v;
|
|
6163
6161
|
}), s = z(() => {
|
|
6164
6162
|
var g;
|
|
6165
|
-
const v = We(
|
|
6163
|
+
const v = We(Kh);
|
|
6166
6164
|
for (const V of v.fields) {
|
|
6167
6165
|
const Z = (g = a.value[V.model]) == null ? void 0 : g.help;
|
|
6168
6166
|
V.help === void 0 && typeof Z == "string" && (V.help = Z);
|
|
@@ -6170,7 +6168,7 @@ const Dh = /* @__PURE__ */ W(Ch, [["render", Ph], ["__scopeId", "data-v-741bf3cb
|
|
|
6170
6168
|
return v;
|
|
6171
6169
|
}), r = z(() => {
|
|
6172
6170
|
var g;
|
|
6173
|
-
const v = We(
|
|
6171
|
+
const v = We(Bh);
|
|
6174
6172
|
for (const V of v.fields) {
|
|
6175
6173
|
const Z = (g = a.value[V.model]) == null ? void 0 : g.help;
|
|
6176
6174
|
V.help === void 0 && typeof Z == "string" && (V.help = Z);
|
|
@@ -6222,7 +6220,7 @@ const Dh = /* @__PURE__ */ W(Ch, [["render", Ph], ["__scopeId", "data-v-741bf3cb
|
|
|
6222
6220
|
value: "other"
|
|
6223
6221
|
}
|
|
6224
6222
|
];
|
|
6225
|
-
|
|
6223
|
+
Xn(() => {
|
|
6226
6224
|
n.value === "zeroSsl" && (t.formModel["config-api_uri"] = "https://acme.zerossl.com/v2/DV90");
|
|
6227
6225
|
});
|
|
6228
6226
|
const T = (v) => {
|
|
@@ -6243,7 +6241,7 @@ const Dh = /* @__PURE__ */ W(Ch, [["render", Ph], ["__scopeId", "data-v-741bf3cb
|
|
|
6243
6241
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : B("", !0),
|
|
6244
6242
|
O(Z, { tabs: C }, {
|
|
6245
6243
|
general: M(() => [
|
|
6246
|
-
m("div",
|
|
6244
|
+
m("div", zh, [
|
|
6247
6245
|
g[0] || (g[0] = m("div", { class: "header-wrapper" }, [
|
|
6248
6246
|
m("span", { class: "section-header" }, "General Configuration Settings")
|
|
6249
6247
|
], -1)),
|
|
@@ -6262,7 +6260,7 @@ const Dh = /* @__PURE__ */ W(Ch, [["render", Ph], ["__scopeId", "data-v-741bf3cb
|
|
|
6262
6260
|
label: "Issuer",
|
|
6263
6261
|
onChange: T
|
|
6264
6262
|
}),
|
|
6265
|
-
m("div",
|
|
6263
|
+
m("div", xh, [
|
|
6266
6264
|
n.value === "letsEncrypt" ? (c(), U(ue, {
|
|
6267
6265
|
key: 0,
|
|
6268
6266
|
model: e.formModel,
|
|
@@ -6281,7 +6279,7 @@ const Dh = /* @__PURE__ */ W(Ch, [["render", Ph], ["__scopeId", "data-v-741bf3cb
|
|
|
6281
6279
|
])
|
|
6282
6280
|
]),
|
|
6283
6281
|
storage: M(() => [
|
|
6284
|
-
m("div",
|
|
6282
|
+
m("div", Hh, [
|
|
6285
6283
|
g[3] || (g[3] = m("div", { class: "header-wrapper" }, [
|
|
6286
6284
|
m("span", { class: "section-header" }, "Storage Configuration Settings")
|
|
6287
6285
|
], -1)),
|
|
@@ -6293,7 +6291,7 @@ const Dh = /* @__PURE__ */ W(Ch, [["render", Ph], ["__scopeId", "data-v-741bf3cb
|
|
|
6293
6291
|
schema: p.value,
|
|
6294
6292
|
onModelUpdated: F
|
|
6295
6293
|
}, null, 8, ["model", "options", "schema"])) : B("", !0),
|
|
6296
|
-
m("div",
|
|
6294
|
+
m("div", Yh, [
|
|
6297
6295
|
i.value === "consul" ? (c(), U(ue, {
|
|
6298
6296
|
key: 0,
|
|
6299
6297
|
model: e.formModel,
|
|
@@ -6326,7 +6324,7 @@ const Dh = /* @__PURE__ */ W(Ch, [["render", Ph], ["__scopeId", "data-v-741bf3cb
|
|
|
6326
6324
|
])
|
|
6327
6325
|
]),
|
|
6328
6326
|
advanced: M(() => [
|
|
6329
|
-
m("div",
|
|
6327
|
+
m("div", Gh, [
|
|
6330
6328
|
g[5] || (g[5] = m("div", { class: "header-wrapper" }, [
|
|
6331
6329
|
m("span", { class: "section-header" }, "Advanced Configuration Settings")
|
|
6332
6330
|
], -1)),
|
|
@@ -6345,13 +6343,13 @@ const Dh = /* @__PURE__ */ W(Ch, [["render", Ph], ["__scopeId", "data-v-741bf3cb
|
|
|
6345
6343
|
]);
|
|
6346
6344
|
};
|
|
6347
6345
|
}
|
|
6348
|
-
}),
|
|
6346
|
+
}), Zh = /* @__PURE__ */ W(Wh, [["__scopeId", "data-v-07cecf5b"]]), Xh = { class: "rla-form-basic-fields" }, Jh = { class: "rla-form-request-limits-subtitle" }, Qh = { class: "rla-form-request-limits-content" }, ep = { class: "rla-form-window-type" }, tp = ["innerHTML"], np = { class: "rla-form-window-type-radios" }, ip = { class: "rla-form-request-limits-items" }, ap = { class: "rla-form-request-limits-row" }, op = ["id"], rp = { class: "rla-form-request-limits-actions" }, sp = {
|
|
6349
6347
|
key: 0,
|
|
6350
6348
|
class: "rla-form-request-limits-examples"
|
|
6351
|
-
},
|
|
6349
|
+
}, lp = { class: "rla-form-request-limits-examples-badges" }, dp = ["innerHTML"], up = {
|
|
6352
6350
|
id: "rla-form-error-legend",
|
|
6353
6351
|
class: "rla-form-error-inputs"
|
|
6354
|
-
},
|
|
6352
|
+
}, cp = /* @__PURE__ */ he({
|
|
6355
6353
|
__name: "RLAForm",
|
|
6356
6354
|
props: {
|
|
6357
6355
|
formSchema: {},
|
|
@@ -6499,12 +6497,12 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6499
6497
|
}
|
|
6500
6498
|
), T = (E, w) => {
|
|
6501
6499
|
if (w === f.value) {
|
|
6502
|
-
o.onModelUpdated([], "config-limit"), o.onModelUpdated([], "config-window_size"),
|
|
6500
|
+
o.onModelUpdated([], "config-limit"), o.onModelUpdated([], "config-window_size"), Fi(() => {
|
|
6503
6501
|
f.value = void 0;
|
|
6504
6502
|
});
|
|
6505
6503
|
return;
|
|
6506
6504
|
}
|
|
6507
|
-
o.onModelUpdated([E.config.limit], "config-limit"), o.onModelUpdated([E.config.window_size], "config-window_size"),
|
|
6505
|
+
o.onModelUpdated([E.config.limit], "config-limit"), o.onModelUpdated([E.config.window_size], "config-window_size"), Fi(() => {
|
|
6508
6506
|
f.value = w;
|
|
6509
6507
|
});
|
|
6510
6508
|
}, F = (E) => {
|
|
@@ -6537,7 +6535,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6537
6535
|
}), (E, w) => {
|
|
6538
6536
|
const j = D("KLabel"), K = D("KRadio"), H = D("KInput"), ge = D("KButton"), Ke = D("KBadge"), fe = D("KTooltip"), Be = D("KCard"), Sn = D("KSelect"), Ht = D("KCollapse");
|
|
6539
6537
|
return c(), _(Y, null, [
|
|
6540
|
-
m("div",
|
|
6538
|
+
m("div", Xh, [
|
|
6541
6539
|
O(ue, {
|
|
6542
6540
|
model: E.formModel,
|
|
6543
6541
|
options: E.formOptions,
|
|
@@ -6556,11 +6554,11 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6556
6554
|
]),
|
|
6557
6555
|
_: 1
|
|
6558
6556
|
}),
|
|
6559
|
-
m("div",
|
|
6557
|
+
m("div", Jh, L(I(a)("rla.request_limits.subtitle")), 1)
|
|
6560
6558
|
]),
|
|
6561
6559
|
default: M(() => [
|
|
6562
|
-
m("div",
|
|
6563
|
-
m("div",
|
|
6560
|
+
m("div", Qh, [
|
|
6561
|
+
m("div", ep, [
|
|
6564
6562
|
O(j, {
|
|
6565
6563
|
class: "rla-form-window-type-label",
|
|
6566
6564
|
"tooltip-attributes": {
|
|
@@ -6571,14 +6569,14 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6571
6569
|
tooltip: M(() => [
|
|
6572
6570
|
m("div", {
|
|
6573
6571
|
innerHTML: I(a)("rla.window_type.help")
|
|
6574
|
-
}, null, 8,
|
|
6572
|
+
}, null, 8, tp)
|
|
6575
6573
|
]),
|
|
6576
6574
|
default: M(() => [
|
|
6577
6575
|
ce(L(I(a)("rla.window_type.label")) + " ", 1)
|
|
6578
6576
|
]),
|
|
6579
6577
|
_: 1
|
|
6580
6578
|
}),
|
|
6581
|
-
m("div",
|
|
6579
|
+
m("div", np, [
|
|
6582
6580
|
(c(!0), _(Y, null, oe(q.value, ($) => (c(), U(K, {
|
|
6583
6581
|
key: `window-type-${$}`,
|
|
6584
6582
|
"model-value": k.value,
|
|
@@ -6593,7 +6591,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6593
6591
|
}, 1032, ["model-value", "name", "selected-value"]))), 128))
|
|
6594
6592
|
])
|
|
6595
6593
|
]),
|
|
6596
|
-
m("div",
|
|
6594
|
+
m("div", ip, [
|
|
6597
6595
|
(c(!0), _(Y, null, oe(h.value, ($, ne) => (c(), _("div", {
|
|
6598
6596
|
key: ne.toString()
|
|
6599
6597
|
}, [
|
|
@@ -6605,7 +6603,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6605
6603
|
]),
|
|
6606
6604
|
_: 2
|
|
6607
6605
|
}, 1032, ["for"]),
|
|
6608
|
-
m("div",
|
|
6606
|
+
m("div", ap, [
|
|
6609
6607
|
m("legend", {
|
|
6610
6608
|
id: `rla-form-request-limits-item-${ne}-legend`,
|
|
6611
6609
|
class: "rla-form-request-limits-inputs"
|
|
@@ -6624,15 +6622,15 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6624
6622
|
"onUpdate:modelValue": (re) => v(ne, Number.parseInt(re))
|
|
6625
6623
|
}, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"]),
|
|
6626
6624
|
m("div", null, L(I(a)("rla.request_limits.seconds")), 1)
|
|
6627
|
-
], 8,
|
|
6628
|
-
m("div",
|
|
6625
|
+
], 8, op),
|
|
6626
|
+
m("div", rp, [
|
|
6629
6627
|
O(ge, {
|
|
6630
6628
|
appearance: "tertiary",
|
|
6631
6629
|
disabled: h.value.length <= 1,
|
|
6632
6630
|
onClick: () => V(ne)
|
|
6633
6631
|
}, {
|
|
6634
6632
|
default: M(() => [
|
|
6635
|
-
O(I(
|
|
6633
|
+
O(I(Ho))
|
|
6636
6634
|
]),
|
|
6637
6635
|
_: 2
|
|
6638
6636
|
}, 1032, ["disabled", "onClick"]),
|
|
@@ -6641,7 +6639,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6641
6639
|
onClick: () => g(ne)
|
|
6642
6640
|
}, {
|
|
6643
6641
|
default: M(() => [
|
|
6644
|
-
O(I(
|
|
6642
|
+
O(I(Qn))
|
|
6645
6643
|
]),
|
|
6646
6644
|
_: 2
|
|
6647
6645
|
}, 1032, ["onClick"])
|
|
@@ -6649,9 +6647,9 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6649
6647
|
])
|
|
6650
6648
|
]))), 128))
|
|
6651
6649
|
]),
|
|
6652
|
-
d.value.length > 0 ? (c(), _("div",
|
|
6650
|
+
d.value.length > 0 ? (c(), _("div", sp, [
|
|
6653
6651
|
m("div", null, L(I(a)("rla.start_with_a_use_case")), 1),
|
|
6654
|
-
m("div",
|
|
6652
|
+
m("div", lp, [
|
|
6655
6653
|
(c(!0), _(Y, null, oe(d.value, ($, ne) => (c(), U(fe, {
|
|
6656
6654
|
key: `use-case-${ne}`,
|
|
6657
6655
|
"max-width": "300"
|
|
@@ -6700,7 +6698,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6700
6698
|
"label-tooltip": M(() => [
|
|
6701
6699
|
m("div", {
|
|
6702
6700
|
innerHTML: u.value && u.value.help
|
|
6703
|
-
}, null, 8,
|
|
6701
|
+
}, null, 8, dp)
|
|
6704
6702
|
]),
|
|
6705
6703
|
_: 1
|
|
6706
6704
|
}, 8, ["modelValue", "items", "label"]),
|
|
@@ -6719,7 +6717,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6719
6717
|
]),
|
|
6720
6718
|
_: 1
|
|
6721
6719
|
}, 8, ["info"]),
|
|
6722
|
-
m("legend",
|
|
6720
|
+
m("legend", up, [
|
|
6723
6721
|
O(H, {
|
|
6724
6722
|
class: "input-error-code",
|
|
6725
6723
|
"model-value": C.value && C.value.toString(),
|
|
@@ -6781,20 +6779,20 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6781
6779
|
], 64);
|
|
6782
6780
|
};
|
|
6783
6781
|
}
|
|
6784
|
-
}),
|
|
6782
|
+
}), mp = /* @__PURE__ */ W(cp, [["__scopeId", "data-v-dc7ac5da"]]), _p = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6785
6783
|
__proto__: null,
|
|
6786
|
-
ACMEForm:
|
|
6787
|
-
ExitTransformer:
|
|
6788
|
-
OIDCForm:
|
|
6789
|
-
PostFunction:
|
|
6790
|
-
RLAForm:
|
|
6791
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
6784
|
+
ACMEForm: Zh,
|
|
6785
|
+
ExitTransformer: jh,
|
|
6786
|
+
OIDCForm: Ph,
|
|
6787
|
+
PostFunction: $h,
|
|
6788
|
+
RLAForm: mp
|
|
6789
|
+
}, Symbol.toStringTag, { value: "Module" })), Tp = [
|
|
6792
6790
|
"array",
|
|
6793
6791
|
"metric",
|
|
6794
6792
|
"advanced",
|
|
6795
6793
|
"selectionGroup",
|
|
6796
6794
|
"object-advanced"
|
|
6797
|
-
],
|
|
6795
|
+
], Sp = (e) => ({
|
|
6798
6796
|
"openid-connect": "OIDCForm",
|
|
6799
6797
|
"post-function": "PostFunction",
|
|
6800
6798
|
// Pre and Post function plugins are using same component
|
|
@@ -6807,14 +6805,14 @@ export {
|
|
|
6807
6805
|
Mt as AUTOFILL_SLOT_NAME,
|
|
6808
6806
|
je as FIELD_STATES,
|
|
6809
6807
|
Se as FORMS_API_KEY,
|
|
6810
|
-
|
|
6808
|
+
al as FORMS_CONFIG,
|
|
6811
6809
|
un as PartialType,
|
|
6812
|
-
|
|
6813
|
-
|
|
6810
|
+
ol as REDIS_PARTIAL_FETCHER_KEY,
|
|
6811
|
+
vp as REDIS_PARTIAL_INFO,
|
|
6814
6812
|
ue as VueFormGenerator,
|
|
6815
|
-
|
|
6813
|
+
bp as abstractField,
|
|
6816
6814
|
qe as composables,
|
|
6817
|
-
|
|
6818
|
-
|
|
6819
|
-
|
|
6815
|
+
Tp as customFields,
|
|
6816
|
+
Sp as getSharedFormName,
|
|
6817
|
+
_p as sharedForms
|
|
6820
6818
|
};
|