@kong-ui-public/forms 4.20.14 → 4.20.15
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 +352 -352
- package/dist/forms.umd.js +3 -3
- package/package.json +7 -7
package/dist/forms.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { createElementBlock as _, openBlock as c, createElementVNode as m, toDisplayString as L, normalizeClass as ee, createVNode as C, defineComponent as pe, provide as zt, resolveComponent as D, withCtx as E, renderSlot as Oe, unref as M, createTextVNode as ce, mergeModels as Ri, useModel as $o, createBlock as U, createSlots as cn, ref as ae, onMounted as
|
|
1
|
+
import { createElementBlock as _, openBlock as c, createElementVNode as m, toDisplayString as L, normalizeClass as ee, createVNode as C, defineComponent as pe, provide as zt, resolveComponent as D, withCtx as E, renderSlot as Oe, unref as M, createTextVNode as ce, mergeModels as Ri, useModel as $o, createBlock as U, createSlots as cn, ref as ae, onMounted as ei, watch as mn, resolveDynamicComponent as me, Fragment as Y, renderList as oe, computed as z, toRefs as mt, inject as on, onBeforeMount as ti, mergeProps as tt, Transition as Vo, createCommentVNode as K, resolveDirective as Ca, withDirectives as we, vModelText as Vt, vModelCheckbox as jo, vModelSelect as xo, vModelDynamic as Oa, isRef as Mt, toRef as qo, vModelRadio as Ko, vShow as Bo, normalizeProps as zo, guardReactiveProps as Ho, useSlots as fn, nextTick as Ui } from "vue";
|
|
2
2
|
import { createI18n as ke } from "@kong-ui-public/i18n";
|
|
3
|
-
import { TrashIcon as Ht, SearchIcon as Yo, AddIcon as
|
|
3
|
+
import { TrashIcon as Ht, SearchIcon as Yo, AddIcon as ni, RemoveIcon as Go } from "@kong/icons";
|
|
4
4
|
import { isAxiosError as Wo } from "axios";
|
|
5
5
|
import { useStringHelpers as Zo, useErrors as Xo, useDebouncedFilter as Jo, useAxios as Qo } from "@kong-ui-public/entities-shared";
|
|
6
6
|
function Fa(e, t) {
|
|
@@ -24,7 +24,7 @@ function nr(e, t) {
|
|
|
24
24
|
i[n] = t(n);
|
|
25
25
|
return i;
|
|
26
26
|
}
|
|
27
|
-
var ka = typeof global == "object" && global && global.Object === Object && global, ir = typeof self == "object" && self && self.Object === Object && self, Pe = ka || ir || Function("return this")(),
|
|
27
|
+
var ka = typeof global == "object" && global && global.Object === Object && global, ir = typeof self == "object" && self && self.Object === Object && self, Pe = ka || ir || Function("return this")(), nt = Pe.Symbol, Ra = Object.prototype, ar = Ra.hasOwnProperty, or = Ra.toString, Rt = nt ? nt.toStringTag : void 0;
|
|
28
28
|
function rr(e) {
|
|
29
29
|
var t = ar.call(e, Rt), n = e[Rt];
|
|
30
30
|
try {
|
|
@@ -39,22 +39,22 @@ var sr = Object.prototype, lr = sr.toString;
|
|
|
39
39
|
function dr(e) {
|
|
40
40
|
return lr.call(e);
|
|
41
41
|
}
|
|
42
|
-
var ur = "[object Null]", cr = "[object Undefined]", Li =
|
|
43
|
-
function
|
|
42
|
+
var ur = "[object Null]", cr = "[object Undefined]", Li = nt ? nt.toStringTag : void 0;
|
|
43
|
+
function it(e) {
|
|
44
44
|
return e == null ? e === void 0 ? cr : ur : Li && Li in Object(e) ? rr(e) : dr(e);
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function at(e) {
|
|
47
47
|
return e != null && typeof e == "object";
|
|
48
48
|
}
|
|
49
49
|
var mr = "[object Arguments]";
|
|
50
50
|
function Ni(e) {
|
|
51
|
-
return
|
|
51
|
+
return at(e) && it(e) == mr;
|
|
52
52
|
}
|
|
53
53
|
var Ua = Object.prototype, fr = Ua.hasOwnProperty, hr = Ua.propertyIsEnumerable, pr = Ni(/* @__PURE__ */ function() {
|
|
54
54
|
return arguments;
|
|
55
55
|
}()) ? Ni : function(e) {
|
|
56
|
-
return
|
|
57
|
-
},
|
|
56
|
+
return at(e) && fr.call(e, "callee") && !hr.call(e, "callee");
|
|
57
|
+
}, ot = Array.isArray;
|
|
58
58
|
function gr() {
|
|
59
59
|
return !1;
|
|
60
60
|
}
|
|
@@ -71,22 +71,22 @@ var Sr = "[object Arguments]", wr = "[object Array]", Er = "[object Boolean]", A
|
|
|
71
71
|
Q[Dr] = Q[$r] = Q[Vr] = Q[jr] = Q[xr] = Q[qr] = Q[Kr] = Q[Br] = Q[zr] = !0;
|
|
72
72
|
Q[Sr] = Q[wr] = Q[Nr] = Q[Er] = Q[Pr] = Q[Ar] = Q[Mr] = Q[Ir] = Q[Cr] = Q[Or] = Q[Fr] = Q[kr] = Q[Rr] = Q[Ur] = Q[Lr] = !1;
|
|
73
73
|
function Hr(e) {
|
|
74
|
-
return
|
|
74
|
+
return at(e) && Da(e.length) && !!Q[it(e)];
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function ii(e) {
|
|
77
77
|
return function(t) {
|
|
78
78
|
return e(t);
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
|
-
var $a = typeof exports == "object" && exports && !exports.nodeType && exports, jt = $a && typeof module == "object" && module && !module.nodeType && module, Yr = jt && jt.exports === $a,
|
|
81
|
+
var $a = typeof exports == "object" && exports && !exports.nodeType && exports, jt = $a && typeof module == "object" && module && !module.nodeType && module, Yr = jt && jt.exports === $a, Nn = Yr && ka.process, Et = function() {
|
|
82
82
|
try {
|
|
83
83
|
var e = jt && jt.require && jt.require("util").types;
|
|
84
|
-
return e ||
|
|
84
|
+
return e || Nn && Nn.binding && Nn.binding("util");
|
|
85
85
|
} catch {
|
|
86
86
|
}
|
|
87
|
-
}(), $i = Et && Et.isTypedArray, Gr = $i ?
|
|
87
|
+
}(), $i = Et && Et.isTypedArray, Gr = $i ? ii($i) : Hr, Wr = Object.prototype, Zr = Wr.hasOwnProperty;
|
|
88
88
|
function Va(e, t) {
|
|
89
|
-
var n =
|
|
89
|
+
var n = ot(e), i = !n && pr(e), a = !n && !i && Na(e), o = !n && !i && !a && Gr(e), s = n || i || a || o, r = s ? nr(e.length, String) : [], d = r.length;
|
|
90
90
|
for (var u in e)
|
|
91
91
|
(t || Zr.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.
|
|
@@ -96,7 +96,7 @@ function Va(e, t) {
|
|
|
96
96
|
return r;
|
|
97
97
|
}
|
|
98
98
|
var Xr = Object.prototype;
|
|
99
|
-
function
|
|
99
|
+
function ai(e) {
|
|
100
100
|
var t = e && e.constructor, n = typeof t == "function" && t.prototype || Xr;
|
|
101
101
|
return e === n;
|
|
102
102
|
}
|
|
@@ -107,7 +107,7 @@ function ja(e, t) {
|
|
|
107
107
|
}
|
|
108
108
|
var Jr = ja(Object.keys, Object), Qr = Object.prototype, es = Qr.hasOwnProperty;
|
|
109
109
|
function ts(e) {
|
|
110
|
-
if (!
|
|
110
|
+
if (!ai(e))
|
|
111
111
|
return Jr(e);
|
|
112
112
|
var t = [];
|
|
113
113
|
for (var n in Object(e))
|
|
@@ -122,7 +122,7 @@ var ns = "[object AsyncFunction]", is = "[object Function]", as = "[object Gener
|
|
|
122
122
|
function X(e) {
|
|
123
123
|
if (!Fe(e))
|
|
124
124
|
return !1;
|
|
125
|
-
var t =
|
|
125
|
+
var t = it(e);
|
|
126
126
|
return t == is || t == as || t == ns || t == os;
|
|
127
127
|
}
|
|
128
128
|
function hn(e) {
|
|
@@ -146,36 +146,36 @@ function ss(e, t) {
|
|
|
146
146
|
};
|
|
147
147
|
}
|
|
148
148
|
var ls = ss(rs);
|
|
149
|
-
function
|
|
149
|
+
function oi(e) {
|
|
150
150
|
return e;
|
|
151
151
|
}
|
|
152
152
|
function ds(e) {
|
|
153
|
-
return typeof e == "function" ? e :
|
|
153
|
+
return typeof e == "function" ? e : oi;
|
|
154
154
|
}
|
|
155
155
|
function Se(e, t) {
|
|
156
|
-
var n =
|
|
156
|
+
var n = ot(e) ? Fa : ls;
|
|
157
157
|
return n(e, ds(t));
|
|
158
158
|
}
|
|
159
159
|
var us = "[object Symbol]";
|
|
160
160
|
function gn(e) {
|
|
161
|
-
return typeof e == "symbol" ||
|
|
161
|
+
return typeof e == "symbol" || at(e) && it(e) == us;
|
|
162
162
|
}
|
|
163
163
|
var cs = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, ms = /^\w*$/;
|
|
164
164
|
function fs(e, t) {
|
|
165
|
-
if (
|
|
165
|
+
if (ot(e))
|
|
166
166
|
return !1;
|
|
167
167
|
var n = typeof e;
|
|
168
168
|
return n == "number" || n == "symbol" || n == "boolean" || e == null || gn(e) ? !0 : ms.test(e) || !cs.test(e) || t != null && e in Object(t);
|
|
169
169
|
}
|
|
170
|
-
var
|
|
171
|
-
var e = /[^.]+$/.exec(
|
|
170
|
+
var Pn = Pe["__core-js_shared__"], Vi = function() {
|
|
171
|
+
var e = /[^.]+$/.exec(Pn && Pn.keys && Pn.keys.IE_PROTO || "");
|
|
172
172
|
return e ? "Symbol(src)_1." + e : "";
|
|
173
173
|
}();
|
|
174
174
|
function hs(e) {
|
|
175
175
|
return !!Vi && Vi in e;
|
|
176
176
|
}
|
|
177
177
|
var ps = Function.prototype, gs = ps.toString;
|
|
178
|
-
function
|
|
178
|
+
function ft(e) {
|
|
179
179
|
if (e != null) {
|
|
180
180
|
try {
|
|
181
181
|
return gs.call(e);
|
|
@@ -195,16 +195,16 @@ function Es(e) {
|
|
|
195
195
|
if (!Fe(e) || hs(e))
|
|
196
196
|
return !1;
|
|
197
197
|
var t = X(e) ? ws : vs;
|
|
198
|
-
return t.test(
|
|
198
|
+
return t.test(ft(e));
|
|
199
199
|
}
|
|
200
200
|
function As(e, t) {
|
|
201
201
|
return e == null ? void 0 : e[t];
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function ht(e, t) {
|
|
204
204
|
var n = As(e, t);
|
|
205
205
|
return Es(n) ? n : void 0;
|
|
206
206
|
}
|
|
207
|
-
var Kt =
|
|
207
|
+
var Kt = ht(Object, "create");
|
|
208
208
|
function Ms() {
|
|
209
209
|
this.__data__ = Kt ? Kt(null) : {}, this.size = 0;
|
|
210
210
|
}
|
|
@@ -231,18 +231,18 @@ function Ps(e, t) {
|
|
|
231
231
|
var n = this.__data__;
|
|
232
232
|
return this.size += this.has(e) ? 0 : 1, n[e] = Kt && t === void 0 ? Ns : t, this;
|
|
233
233
|
}
|
|
234
|
-
function
|
|
234
|
+
function lt(e) {
|
|
235
235
|
var t = -1, n = e == null ? 0 : e.length;
|
|
236
236
|
for (this.clear(); ++t < n; ) {
|
|
237
237
|
var i = e[t];
|
|
238
238
|
this.set(i[0], i[1]);
|
|
239
239
|
}
|
|
240
240
|
}
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
241
|
+
lt.prototype.clear = Ms;
|
|
242
|
+
lt.prototype.delete = Is;
|
|
243
|
+
lt.prototype.get = ks;
|
|
244
|
+
lt.prototype.has = Ls;
|
|
245
|
+
lt.prototype.set = Ps;
|
|
246
246
|
function Ds() {
|
|
247
247
|
this.__data__ = [], this.size = 0;
|
|
248
248
|
}
|
|
@@ -274,24 +274,24 @@ function Ks(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
|
}
|
|
277
|
-
function
|
|
277
|
+
function Xe(e) {
|
|
278
278
|
var t = -1, n = e == null ? 0 : e.length;
|
|
279
279
|
for (this.clear(); ++t < n; ) {
|
|
280
280
|
var i = e[t];
|
|
281
281
|
this.set(i[0], i[1]);
|
|
282
282
|
}
|
|
283
283
|
}
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
var Bt =
|
|
284
|
+
Xe.prototype.clear = Ds;
|
|
285
|
+
Xe.prototype.delete = js;
|
|
286
|
+
Xe.prototype.get = xs;
|
|
287
|
+
Xe.prototype.has = qs;
|
|
288
|
+
Xe.prototype.set = Ks;
|
|
289
|
+
var Bt = ht(Pe, "Map");
|
|
290
290
|
function Bs() {
|
|
291
291
|
this.size = 0, this.__data__ = {
|
|
292
|
-
hash: new
|
|
293
|
-
map: new (Bt ||
|
|
294
|
-
string: new
|
|
292
|
+
hash: new lt(),
|
|
293
|
+
map: new (Bt || Xe)(),
|
|
294
|
+
string: new lt()
|
|
295
295
|
};
|
|
296
296
|
}
|
|
297
297
|
function zs(e) {
|
|
@@ -316,20 +316,20 @@ function Ws(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
|
}
|
|
319
|
-
function
|
|
319
|
+
function Je(e) {
|
|
320
320
|
var t = -1, n = e == null ? 0 : e.length;
|
|
321
321
|
for (this.clear(); ++t < n; ) {
|
|
322
322
|
var i = e[t];
|
|
323
323
|
this.set(i[0], i[1]);
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
326
|
+
Je.prototype.clear = Bs;
|
|
327
|
+
Je.prototype.delete = Hs;
|
|
328
|
+
Je.prototype.get = Ys;
|
|
329
|
+
Je.prototype.has = Gs;
|
|
330
|
+
Je.prototype.set = Ws;
|
|
331
331
|
var Zs = "Expected a function";
|
|
332
|
-
function
|
|
332
|
+
function ri(e, t) {
|
|
333
333
|
if (typeof e != "function" || t != null && typeof t != "function")
|
|
334
334
|
throw new TypeError(Zs);
|
|
335
335
|
var n = function() {
|
|
@@ -339,12 +339,12 @@ function oi(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 (ri.Cache || Je)(), n;
|
|
343
343
|
}
|
|
344
|
-
|
|
344
|
+
ri.Cache = Je;
|
|
345
345
|
var Xs = 500;
|
|
346
346
|
function Js(e) {
|
|
347
|
-
var t =
|
|
347
|
+
var t = ri(e, function(i) {
|
|
348
348
|
return n.size === Xs && n.clear(), i;
|
|
349
349
|
}), n = t.cache;
|
|
350
350
|
return t;
|
|
@@ -360,11 +360,11 @@ function nl(e, t) {
|
|
|
360
360
|
a[n] = t(e[n], n, e);
|
|
361
361
|
return a;
|
|
362
362
|
}
|
|
363
|
-
var ji =
|
|
363
|
+
var ji = nt ? nt.prototype : void 0, xi = ji ? ji.toString : void 0;
|
|
364
364
|
function xa(e) {
|
|
365
365
|
if (typeof e == "string")
|
|
366
366
|
return e;
|
|
367
|
-
if (
|
|
367
|
+
if (ot(e))
|
|
368
368
|
return nl(e, xa) + "";
|
|
369
369
|
if (gn(e))
|
|
370
370
|
return xi ? xi.call(e) : "";
|
|
@@ -375,7 +375,7 @@ function qa(e) {
|
|
|
375
375
|
return e == null ? "" : xa(e);
|
|
376
376
|
}
|
|
377
377
|
function il(e, t) {
|
|
378
|
-
return
|
|
378
|
+
return ot(e) ? e : fs(e, t) ? [e] : tl(qa(e));
|
|
379
379
|
}
|
|
380
380
|
function al(e) {
|
|
381
381
|
if (typeof e == "string" || gn(e))
|
|
@@ -396,13 +396,13 @@ function G(e, t, n) {
|
|
|
396
396
|
function de(e) {
|
|
397
397
|
return e == null;
|
|
398
398
|
}
|
|
399
|
-
const Ce = "kong-ui-forms-api", rl = "kong-ui-forms-config", sl = "redis-partial-list-fetcher-key", bp = "redis-partial-info", It = "autofill", Le = "autofillSlot",
|
|
399
|
+
const Ce = "kong-ui-forms-api", rl = "kong-ui-forms-config", sl = "redis-partial-list-fetcher-key", bp = "redis-partial-info", It = "autofill", Le = "autofillSlot", qe = {
|
|
400
400
|
CREATE_NOT_FROM_ENTITY: "CREATE_NOT_FROM_ENTITY",
|
|
401
401
|
CREATE_FROM_ENTITY: "CREATE_FROM_ENTITY",
|
|
402
402
|
UPDATE_ENTITY: "UPDATE_ENTITY",
|
|
403
403
|
SET_REFERRAL_VALUE: "SET_REFERRAL_VALUE"
|
|
404
404
|
}, ll = "—";
|
|
405
|
-
/*! @license DOMPurify 3.3.
|
|
405
|
+
/*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */
|
|
406
406
|
const {
|
|
407
407
|
entries: Ka,
|
|
408
408
|
setPrototypeOf: qi,
|
|
@@ -413,10 +413,10 @@ const {
|
|
|
413
413
|
let {
|
|
414
414
|
freeze: Ee,
|
|
415
415
|
seal: Ne,
|
|
416
|
-
create:
|
|
416
|
+
create: Hn
|
|
417
417
|
} = Object, {
|
|
418
|
-
apply:
|
|
419
|
-
construct:
|
|
418
|
+
apply: Yn,
|
|
419
|
+
construct: Gn
|
|
420
420
|
} = typeof Reflect < "u" && Reflect;
|
|
421
421
|
Ee || (Ee = function(t) {
|
|
422
422
|
return t;
|
|
@@ -424,33 +424,33 @@ Ee || (Ee = function(t) {
|
|
|
424
424
|
Ne || (Ne = function(t) {
|
|
425
425
|
return t;
|
|
426
426
|
});
|
|
427
|
-
|
|
427
|
+
Yn || (Yn = function(t, n) {
|
|
428
428
|
for (var i = arguments.length, a = new Array(i > 2 ? i - 2 : 0), o = 2; o < i; o++)
|
|
429
429
|
a[o - 2] = arguments[o];
|
|
430
430
|
return t.apply(n, a);
|
|
431
431
|
});
|
|
432
|
-
|
|
432
|
+
Gn || (Gn = function(t) {
|
|
433
433
|
for (var n = arguments.length, i = new Array(n > 1 ? n - 1 : 0), a = 1; a < n; a++)
|
|
434
434
|
i[a - 1] = arguments[a];
|
|
435
435
|
return new t(...i);
|
|
436
436
|
});
|
|
437
|
-
const tn = Ae(Array.prototype.forEach), ml = Ae(Array.prototype.lastIndexOf), Ki = Ae(Array.prototype.pop), Ut = Ae(Array.prototype.push), fl = Ae(Array.prototype.splice), an = Ae(String.prototype.toLowerCase),
|
|
437
|
+
const tn = Ae(Array.prototype.forEach), ml = Ae(Array.prototype.lastIndexOf), Ki = Ae(Array.prototype.pop), Ut = Ae(Array.prototype.push), fl = Ae(Array.prototype.splice), an = Ae(String.prototype.toLowerCase), Dn = Ae(String.prototype.toString), $n = Ae(String.prototype.match), Lt = Ae(String.prototype.replace), hl = Ae(String.prototype.indexOf), pl = Ae(String.prototype.trim), De = Ae(Object.prototype.hasOwnProperty), Te = Ae(RegExp.prototype.test), Nt = gl(TypeError);
|
|
438
438
|
function Ae(e) {
|
|
439
439
|
return function(t) {
|
|
440
440
|
t instanceof RegExp && (t.lastIndex = 0);
|
|
441
441
|
for (var n = arguments.length, i = new Array(n > 1 ? n - 1 : 0), a = 1; a < n; a++)
|
|
442
442
|
i[a - 1] = arguments[a];
|
|
443
|
-
return
|
|
443
|
+
return Yn(e, t, i);
|
|
444
444
|
};
|
|
445
445
|
}
|
|
446
446
|
function gl(e) {
|
|
447
447
|
return function() {
|
|
448
448
|
for (var t = arguments.length, n = new Array(t), i = 0; i < t; i++)
|
|
449
449
|
n[i] = arguments[i];
|
|
450
|
-
return
|
|
450
|
+
return Gn(e, n);
|
|
451
451
|
};
|
|
452
452
|
}
|
|
453
|
-
function
|
|
453
|
+
function B(e, t) {
|
|
454
454
|
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : an;
|
|
455
455
|
qi && qi(e, null);
|
|
456
456
|
let i = t.length;
|
|
@@ -469,10 +469,10 @@ function yl(e) {
|
|
|
469
469
|
De(e, t) || (e[t] = null);
|
|
470
470
|
return e;
|
|
471
471
|
}
|
|
472
|
-
function
|
|
473
|
-
const t =
|
|
472
|
+
function xe(e) {
|
|
473
|
+
const t = Hn(null);
|
|
474
474
|
for (const [n, i] of Ka(e))
|
|
475
|
-
De(e, n) && (Array.isArray(i) ? t[n] = yl(i) : i && typeof i == "object" && i.constructor === Object ? t[n] =
|
|
475
|
+
De(e, n) && (Array.isArray(i) ? t[n] = yl(i) : i && typeof i == "object" && i.constructor === Object ? t[n] = xe(i) : t[n] = i);
|
|
476
476
|
return t;
|
|
477
477
|
}
|
|
478
478
|
function Pt(e, t) {
|
|
@@ -491,7 +491,7 @@ function Pt(e, t) {
|
|
|
491
491
|
}
|
|
492
492
|
return n;
|
|
493
493
|
}
|
|
494
|
-
const Bi = Ee(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "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"]),
|
|
494
|
+
const Bi = Ee(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "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"]), Vn = Ee(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), jn = Ee(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), vl = Ee(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), xn = Ee(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), bl = Ee(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), zi = Ee(["#text"]), Hi = Ee(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "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", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), qn = Ee(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "mask-type", "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"]), Yi = Ee(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), nn = Ee(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), _l = Ne(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Tl = Ne(/<%[\w\W]*|[\w\W]*%>/gm), Sl = Ne(/\$\{[\w\W]*/gm), wl = Ne(/^data-[\-\w.\u00B7-\uFFFF]+$/), El = Ne(/^aria-[\-\w]+$/), Ba = Ne(
|
|
495
495
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
496
496
|
// eslint-disable-line no-useless-escape
|
|
497
497
|
), Al = Ne(/^(?:\w+script|data):/i), Ml = Ne(
|
|
@@ -555,7 +555,7 @@ const Dt = {
|
|
|
555
555
|
function Ha() {
|
|
556
556
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Cl();
|
|
557
557
|
const t = (P) => Ha(P);
|
|
558
|
-
if (t.version = "3.3.
|
|
558
|
+
if (t.version = "3.3.1", t.removed = [], !e || !e.document || e.document.nodeType !== Dt.document || !e.Element)
|
|
559
559
|
return t.isSupported = !1, t;
|
|
560
560
|
let {
|
|
561
561
|
document: n
|
|
@@ -590,19 +590,19 @@ function Ha() {
|
|
|
590
590
|
MUSTACHE_EXPR: j,
|
|
591
591
|
ERB_EXPR: q,
|
|
592
592
|
TMPLIT_EXPR: H,
|
|
593
|
-
DATA_ATTR:
|
|
594
|
-
ARIA_ATTR:
|
|
593
|
+
DATA_ATTR: ye,
|
|
594
|
+
ARIA_ATTR: Be,
|
|
595
595
|
IS_SCRIPT_OR_DATA: fe,
|
|
596
|
-
ATTR_WHITESPACE:
|
|
596
|
+
ATTR_WHITESPACE: ze,
|
|
597
597
|
CUSTOM_ELEMENT: Sn
|
|
598
598
|
} = Gi;
|
|
599
599
|
let {
|
|
600
600
|
IS_ALLOWED_URI: Yt
|
|
601
601
|
} = Gi, $ = null;
|
|
602
|
-
const ne =
|
|
602
|
+
const ne = B({}, [...Bi, ...Vn, ...jn, ...xn, ...zi]);
|
|
603
603
|
let re = null;
|
|
604
|
-
const
|
|
605
|
-
let se = Object.seal(
|
|
604
|
+
const ci = B({}, [...Hi, ...qn, ...Yi, ...nn]);
|
|
605
|
+
let se = Object.seal(Hn(null, {
|
|
606
606
|
tagNameCheck: {
|
|
607
607
|
writable: !0,
|
|
608
608
|
configurable: !1,
|
|
@@ -622,7 +622,7 @@ function Ha() {
|
|
|
622
622
|
value: !1
|
|
623
623
|
}
|
|
624
624
|
})), Ot = null, wn = null;
|
|
625
|
-
const
|
|
625
|
+
const pt = Object.seal(Hn(null, {
|
|
626
626
|
tagCheck: {
|
|
627
627
|
writable: !0,
|
|
628
628
|
configurable: !1,
|
|
@@ -636,28 +636,28 @@ function Ha() {
|
|
|
636
636
|
value: null
|
|
637
637
|
}
|
|
638
638
|
}));
|
|
639
|
-
let
|
|
639
|
+
let mi = !0, En = !0, fi = !1, hi = !0, gt = !1, Gt = !0, rt = !1, An = !1, Mn = !1, yt = !1, Wt = !1, Zt = !1, pi = !0, gi = !1;
|
|
640
640
|
const Fo = "user-content-";
|
|
641
|
-
let In = !0, Ft = !1,
|
|
642
|
-
const
|
|
641
|
+
let In = !0, Ft = !1, vt = {}, Ve = null;
|
|
642
|
+
const Cn = B({}, ["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"]);
|
|
643
643
|
let yi = null;
|
|
644
|
-
const vi =
|
|
645
|
-
let
|
|
646
|
-
const bi =
|
|
647
|
-
let bt =
|
|
648
|
-
const ko =
|
|
649
|
-
let Qt =
|
|
650
|
-
const Ro =
|
|
644
|
+
const vi = B({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
645
|
+
let On = null;
|
|
646
|
+
const bi = B({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Xt = "http://www.w3.org/1998/Math/MathML", Jt = "http://www.w3.org/2000/svg", He = "http://www.w3.org/1999/xhtml";
|
|
647
|
+
let bt = He, Fn = !1, kn = null;
|
|
648
|
+
const ko = B({}, [Xt, Jt, He], Dn);
|
|
649
|
+
let Qt = B({}, ["mi", "mo", "mn", "ms", "mtext"]), en = B({}, ["annotation-xml"]);
|
|
650
|
+
const Ro = B({}, ["title", "style", "font", "a", "script"]);
|
|
651
651
|
let kt = null;
|
|
652
652
|
const Uo = ["application/xhtml+xml", "text/html"], Lo = "text/html";
|
|
653
|
-
let
|
|
653
|
+
let ge = null, _t = null;
|
|
654
654
|
const No = n.createElement("form"), _i = function(l) {
|
|
655
655
|
return l instanceof RegExp || l instanceof Function;
|
|
656
|
-
},
|
|
656
|
+
}, Rn = function() {
|
|
657
657
|
let l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
658
658
|
if (!(_t && _t === l)) {
|
|
659
|
-
if ((!l || typeof l != "object") && (l = {}), l =
|
|
660
|
-
Uo.indexOf(l.PARSER_MEDIA_TYPE) === -1 ? Lo : l.PARSER_MEDIA_TYPE,
|
|
659
|
+
if ((!l || typeof l != "object") && (l = {}), l = xe(l), kt = // eslint-disable-next-line unicorn/prefer-includes
|
|
660
|
+
Uo.indexOf(l.PARSER_MEDIA_TYPE) === -1 ? Lo : l.PARSER_MEDIA_TYPE, ge = kt === "application/xhtml+xml" ? Dn : an, $ = De(l, "ALLOWED_TAGS") ? B({}, l.ALLOWED_TAGS, ge) : ne, re = De(l, "ALLOWED_ATTR") ? B({}, l.ALLOWED_ATTR, ge) : ci, kn = De(l, "ALLOWED_NAMESPACES") ? B({}, l.ALLOWED_NAMESPACES, Dn) : ko, On = De(l, "ADD_URI_SAFE_ATTR") ? B(xe(bi), l.ADD_URI_SAFE_ATTR, ge) : bi, yi = De(l, "ADD_DATA_URI_TAGS") ? B(xe(vi), l.ADD_DATA_URI_TAGS, ge) : vi, Ve = De(l, "FORBID_CONTENTS") ? B({}, l.FORBID_CONTENTS, ge) : Cn, Ot = De(l, "FORBID_TAGS") ? B({}, l.FORBID_TAGS, ge) : xe({}), wn = De(l, "FORBID_ATTR") ? B({}, l.FORBID_ATTR, ge) : xe({}), vt = De(l, "USE_PROFILES") ? l.USE_PROFILES : !1, mi = l.ALLOW_ARIA_ATTR !== !1, En = l.ALLOW_DATA_ATTR !== !1, fi = l.ALLOW_UNKNOWN_PROTOCOLS || !1, hi = l.ALLOW_SELF_CLOSE_IN_ATTR !== !1, gt = l.SAFE_FOR_TEMPLATES || !1, Gt = l.SAFE_FOR_XML !== !1, rt = l.WHOLE_DOCUMENT || !1, yt = l.RETURN_DOM || !1, Wt = l.RETURN_DOM_FRAGMENT || !1, Zt = l.RETURN_TRUSTED_TYPE || !1, Mn = l.FORCE_BODY || !1, pi = l.SANITIZE_DOM !== !1, gi = l.SANITIZE_NAMED_PROPS || !1, In = l.KEEP_CONTENT !== !1, Ft = l.IN_PLACE || !1, Yt = l.ALLOWED_URI_REGEXP || Ba, bt = l.NAMESPACE || He, Qt = l.MATHML_TEXT_INTEGRATION_POINTS || Qt, en = l.HTML_INTEGRATION_POINTS || en, se = l.CUSTOM_ELEMENT_HANDLING || {}, l.CUSTOM_ELEMENT_HANDLING && _i(l.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (se.tagNameCheck = l.CUSTOM_ELEMENT_HANDLING.tagNameCheck), l.CUSTOM_ELEMENT_HANDLING && _i(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), gt && (En = !1), Wt && (yt = !0), vt && ($ = B({}, zi), re = [], vt.html === !0 && (B($, Bi), B(re, Hi)), vt.svg === !0 && (B($, Vn), B(re, qn), B(re, nn)), vt.svgFilters === !0 && (B($, jn), B(re, qn), B(re, nn)), vt.mathMl === !0 && (B($, xn), B(re, Yi), B(re, nn))), l.ADD_TAGS && (typeof l.ADD_TAGS == "function" ? pt.tagCheck = l.ADD_TAGS : ($ === ne && ($ = xe($)), B($, l.ADD_TAGS, ge))), l.ADD_ATTR && (typeof l.ADD_ATTR == "function" ? pt.attributeCheck = l.ADD_ATTR : (re === ci && (re = xe(re)), B(re, l.ADD_ATTR, ge))), l.ADD_URI_SAFE_ATTR && B(On, l.ADD_URI_SAFE_ATTR, ge), l.FORBID_CONTENTS && (Ve === Cn && (Ve = xe(Ve)), B(Ve, l.FORBID_CONTENTS, ge)), l.ADD_FORBID_CONTENTS && (Ve === Cn && (Ve = xe(Ve)), B(Ve, l.ADD_FORBID_CONTENTS, ge)), In && ($["#text"] = !0), rt && B($, ["html", "head", "body"]), $.table && (B($, ["tbody"]), delete Ot.tbody), l.TRUSTED_TYPES_POLICY) {
|
|
661
661
|
if (typeof l.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
662
662
|
throw Nt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
663
663
|
if (typeof l.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -667,15 +667,15 @@ function Ha() {
|
|
|
667
667
|
O === void 0 && (O = Ol(k, a)), O !== null && typeof v == "string" && (v = O.createHTML(""));
|
|
668
668
|
Ee && Ee(l), _t = l;
|
|
669
669
|
}
|
|
670
|
-
}, Ti =
|
|
670
|
+
}, Ti = B({}, [...Vn, ...jn, ...vl]), Si = B({}, [...xn, ...bl]), Po = function(l) {
|
|
671
671
|
let S = T(l);
|
|
672
672
|
(!S || !S.tagName) && (S = {
|
|
673
673
|
namespaceURI: bt,
|
|
674
674
|
tagName: "template"
|
|
675
675
|
});
|
|
676
676
|
const F = an(l.tagName), te = an(S.tagName);
|
|
677
|
-
return
|
|
678
|
-
},
|
|
677
|
+
return kn[l.namespaceURI] ? l.namespaceURI === Jt ? S.namespaceURI === He ? F === "svg" : S.namespaceURI === Xt ? F === "svg" && (te === "annotation-xml" || Qt[te]) : !!Ti[F] : l.namespaceURI === Xt ? S.namespaceURI === He ? F === "math" : S.namespaceURI === Jt ? F === "math" && en[te] : !!Si[F] : l.namespaceURI === He ? S.namespaceURI === Jt && !en[te] || S.namespaceURI === Xt && !Qt[te] ? !1 : !Si[F] && (Ro[F] || !Ti[F]) : !!(kt === "application/xhtml+xml" && kn[l.namespaceURI]) : !1;
|
|
678
|
+
}, je = function(l) {
|
|
679
679
|
Ut(t.removed, {
|
|
680
680
|
element: l
|
|
681
681
|
});
|
|
@@ -684,7 +684,7 @@ function Ha() {
|
|
|
684
684
|
} catch {
|
|
685
685
|
A(l);
|
|
686
686
|
}
|
|
687
|
-
},
|
|
687
|
+
}, st = function(l, S) {
|
|
688
688
|
try {
|
|
689
689
|
Ut(t.removed, {
|
|
690
690
|
attribute: S.getAttributeNode(l),
|
|
@@ -697,9 +697,9 @@ function Ha() {
|
|
|
697
697
|
});
|
|
698
698
|
}
|
|
699
699
|
if (S.removeAttribute(l), l === "is")
|
|
700
|
-
if (
|
|
700
|
+
if (yt || Wt)
|
|
701
701
|
try {
|
|
702
|
-
|
|
702
|
+
je(S);
|
|
703
703
|
} catch {
|
|
704
704
|
}
|
|
705
705
|
else
|
|
@@ -712,12 +712,12 @@ function Ha() {
|
|
|
712
712
|
if (Mn)
|
|
713
713
|
l = "<remove></remove>" + l;
|
|
714
714
|
else {
|
|
715
|
-
const he =
|
|
715
|
+
const he = $n(l, /^[\r\n\t ]+/);
|
|
716
716
|
F = he && he[0];
|
|
717
717
|
}
|
|
718
|
-
kt === "application/xhtml+xml" && bt ===
|
|
718
|
+
kt === "application/xhtml+xml" && bt === He && (l = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + l + "</body></html>");
|
|
719
719
|
const te = O ? O.createHTML(l) : l;
|
|
720
|
-
if (bt ===
|
|
720
|
+
if (bt === He)
|
|
721
721
|
try {
|
|
722
722
|
S = new b().parseFromString(te, kt);
|
|
723
723
|
} catch {
|
|
@@ -725,12 +725,12 @@ function Ha() {
|
|
|
725
725
|
if (!S || !S.documentElement) {
|
|
726
726
|
S = y.createDocument(bt, "template", null);
|
|
727
727
|
try {
|
|
728
|
-
S.documentElement.innerHTML =
|
|
728
|
+
S.documentElement.innerHTML = Fn ? v : te;
|
|
729
729
|
} catch {
|
|
730
730
|
}
|
|
731
731
|
}
|
|
732
732
|
const _e = S.body || S.documentElement;
|
|
733
|
-
return l && F && _e.insertBefore(n.createTextNode(F), _e.childNodes[0] || null), bt ===
|
|
733
|
+
return l && F && _e.insertBefore(n.createTextNode(F), _e.childNodes[0] || null), bt === He ? Z.call(S, rt ? "html" : "body")[0] : rt ? S.documentElement : _e;
|
|
734
734
|
}, Ei = function(l) {
|
|
735
735
|
return g.call(
|
|
736
736
|
l.ownerDocument || l,
|
|
@@ -739,52 +739,52 @@ function Ha() {
|
|
|
739
739
|
u.SHOW_ELEMENT | u.SHOW_COMMENT | u.SHOW_TEXT | u.SHOW_PROCESSING_INSTRUCTION | u.SHOW_CDATA_SECTION,
|
|
740
740
|
null
|
|
741
741
|
);
|
|
742
|
-
},
|
|
742
|
+
}, Un = function(l) {
|
|
743
743
|
return l instanceof p && (typeof l.nodeName != "string" || typeof l.textContent != "string" || typeof l.removeChild != "function" || !(l.attributes instanceof h) || typeof l.removeAttribute != "function" || typeof l.setAttribute != "function" || typeof l.namespaceURI != "string" || typeof l.insertBefore != "function" || typeof l.hasChildNodes != "function");
|
|
744
744
|
}, Ai = function(l) {
|
|
745
745
|
return typeof r == "function" && l instanceof r;
|
|
746
746
|
};
|
|
747
|
-
function
|
|
747
|
+
function Ye(P, l, S) {
|
|
748
748
|
tn(P, (F) => {
|
|
749
749
|
F.call(t, l, S, _t);
|
|
750
750
|
});
|
|
751
751
|
}
|
|
752
752
|
const Mi = function(l) {
|
|
753
753
|
let S = null;
|
|
754
|
-
if (
|
|
755
|
-
return
|
|
756
|
-
const F =
|
|
757
|
-
if (
|
|
754
|
+
if (Ye(w.beforeSanitizeElements, l, null), Un(l))
|
|
755
|
+
return je(l), !0;
|
|
756
|
+
const F = ge(l.nodeName);
|
|
757
|
+
if (Ye(w.uponSanitizeElement, l, {
|
|
758
758
|
tagName: F,
|
|
759
759
|
allowedTags: $
|
|
760
760
|
}), Gt && l.hasChildNodes() && !Ai(l.firstElementChild) && Te(/<[/\w!]/g, l.innerHTML) && Te(/<[/\w!]/g, l.textContent) || l.nodeType === Dt.progressingInstruction || Gt && l.nodeType === Dt.comment && Te(/<[/\w]/g, l.data))
|
|
761
|
-
return
|
|
762
|
-
if (!(
|
|
761
|
+
return je(l), !0;
|
|
762
|
+
if (!(pt.tagCheck instanceof Function && pt.tagCheck(F)) && (!$[F] || Ot[F])) {
|
|
763
763
|
if (!Ot[F] && Ci(F) && (se.tagNameCheck instanceof RegExp && Te(se.tagNameCheck, F) || se.tagNameCheck instanceof Function && se.tagNameCheck(F)))
|
|
764
764
|
return !1;
|
|
765
|
-
if (In && !
|
|
765
|
+
if (In && !Ve[F]) {
|
|
766
766
|
const te = T(l) || l.parentNode, _e = N(l) || l.childNodes;
|
|
767
767
|
if (_e && te) {
|
|
768
768
|
const he = _e.length;
|
|
769
769
|
for (let Me = he - 1; Me >= 0; --Me) {
|
|
770
|
-
const
|
|
771
|
-
|
|
770
|
+
const Ge = f(_e[Me], !0);
|
|
771
|
+
Ge.__removalCount = (l.__removalCount || 0) + 1, te.insertBefore(Ge, I(l));
|
|
772
772
|
}
|
|
773
773
|
}
|
|
774
774
|
}
|
|
775
|
-
return
|
|
775
|
+
return je(l), !0;
|
|
776
776
|
}
|
|
777
|
-
return l instanceof d && !Po(l) || (F === "noscript" || F === "noembed" || F === "noframes") && Te(/<\/no(script|embed|frames)/i, l.innerHTML) ? (
|
|
777
|
+
return l instanceof d && !Po(l) || (F === "noscript" || F === "noembed" || F === "noframes") && Te(/<\/no(script|embed|frames)/i, l.innerHTML) ? (je(l), !0) : (gt && l.nodeType === Dt.text && (S = l.textContent, tn([j, q, H], (te) => {
|
|
778
778
|
S = Lt(S, te, " ");
|
|
779
779
|
}), l.textContent !== S && (Ut(t.removed, {
|
|
780
780
|
element: l.cloneNode()
|
|
781
|
-
}), l.textContent = S)),
|
|
781
|
+
}), l.textContent = S)), Ye(w.afterSanitizeElements, l, null), !1);
|
|
782
782
|
}, Ii = function(l, S, F) {
|
|
783
|
-
if (
|
|
783
|
+
if (pi && (S === "id" || S === "name") && (F in n || F in No))
|
|
784
784
|
return !1;
|
|
785
|
-
if (!(En && !wn[S] && Te(
|
|
786
|
-
if (!(
|
|
787
|
-
if (!(
|
|
785
|
+
if (!(En && !wn[S] && Te(ye, S))) {
|
|
786
|
+
if (!(mi && Te(Be, S))) {
|
|
787
|
+
if (!(pt.attributeCheck instanceof Function && pt.attributeCheck(S, l))) {
|
|
788
788
|
if (!re[S] || wn[S]) {
|
|
789
789
|
if (
|
|
790
790
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
@@ -794,10 +794,10 @@ function Ha() {
|
|
|
794
794
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
795
795
|
S === "is" && se.allowCustomizedBuiltInElements && (se.tagNameCheck instanceof RegExp && Te(se.tagNameCheck, F) || se.tagNameCheck instanceof Function && se.tagNameCheck(F)))
|
|
796
796
|
) return !1;
|
|
797
|
-
} else if (!
|
|
798
|
-
if (!Te(Yt, Lt(F,
|
|
797
|
+
} else if (!On[S]) {
|
|
798
|
+
if (!Te(Yt, Lt(F, ze, ""))) {
|
|
799
799
|
if (!((S === "src" || S === "xlink:href" || S === "href") && l !== "script" && hl(F, "data:") === 0 && yi[l])) {
|
|
800
|
-
if (!(
|
|
800
|
+
if (!(fi && !Te(fe, Lt(F, ze, "")))) {
|
|
801
801
|
if (F)
|
|
802
802
|
return !1;
|
|
803
803
|
}
|
|
@@ -809,13 +809,13 @@ function Ha() {
|
|
|
809
809
|
}
|
|
810
810
|
return !0;
|
|
811
811
|
}, Ci = function(l) {
|
|
812
|
-
return l !== "annotation-xml" &&
|
|
812
|
+
return l !== "annotation-xml" && $n(l, Sn);
|
|
813
813
|
}, Oi = function(l) {
|
|
814
|
-
|
|
814
|
+
Ye(w.beforeSanitizeAttributes, l, null);
|
|
815
815
|
const {
|
|
816
816
|
attributes: S
|
|
817
817
|
} = l;
|
|
818
|
-
if (!S ||
|
|
818
|
+
if (!S || Un(l))
|
|
819
819
|
return;
|
|
820
820
|
const F = {
|
|
821
821
|
attrName: "",
|
|
@@ -829,33 +829,33 @@ function Ha() {
|
|
|
829
829
|
const _e = S[te], {
|
|
830
830
|
name: he,
|
|
831
831
|
namespaceURI: Me,
|
|
832
|
-
value:
|
|
833
|
-
} = _e, Tt =
|
|
834
|
-
let ve = he === "value" ?
|
|
835
|
-
if (F.attrName = Tt, F.attrValue = ve, F.keepAttr = !0, F.forceKeepAttr = void 0,
|
|
836
|
-
|
|
832
|
+
value: Ge
|
|
833
|
+
} = _e, Tt = ge(he), Ln = Ge;
|
|
834
|
+
let ve = he === "value" ? Ln : pl(Ln);
|
|
835
|
+
if (F.attrName = Tt, F.attrValue = ve, F.keepAttr = !0, F.forceKeepAttr = void 0, Ye(w.uponSanitizeAttribute, l, F), ve = F.attrValue, gi && (Tt === "id" || Tt === "name") && (st(he, l), ve = Fo + ve), Gt && Te(/((--!?|])>)|<\/(style|title|textarea)/i, ve)) {
|
|
836
|
+
st(he, l);
|
|
837
837
|
continue;
|
|
838
838
|
}
|
|
839
|
-
if (Tt === "attributename" &&
|
|
840
|
-
|
|
839
|
+
if (Tt === "attributename" && $n(ve, "href")) {
|
|
840
|
+
st(he, l);
|
|
841
841
|
continue;
|
|
842
842
|
}
|
|
843
843
|
if (F.forceKeepAttr)
|
|
844
844
|
continue;
|
|
845
845
|
if (!F.keepAttr) {
|
|
846
|
-
|
|
846
|
+
st(he, l);
|
|
847
847
|
continue;
|
|
848
848
|
}
|
|
849
|
-
if (!
|
|
850
|
-
|
|
849
|
+
if (!hi && Te(/\/>/i, ve)) {
|
|
850
|
+
st(he, l);
|
|
851
851
|
continue;
|
|
852
852
|
}
|
|
853
|
-
|
|
853
|
+
gt && tn([j, q, H], (ki) => {
|
|
854
854
|
ve = Lt(ve, ki, " ");
|
|
855
855
|
});
|
|
856
|
-
const Fi =
|
|
856
|
+
const Fi = ge(l.nodeName);
|
|
857
857
|
if (!Ii(Fi, Tt, ve)) {
|
|
858
|
-
|
|
858
|
+
st(he, l);
|
|
859
859
|
continue;
|
|
860
860
|
}
|
|
861
861
|
if (O && typeof k == "object" && typeof k.getAttributeType == "function" && !Me)
|
|
@@ -869,24 +869,24 @@ function Ha() {
|
|
|
869
869
|
break;
|
|
870
870
|
}
|
|
871
871
|
}
|
|
872
|
-
if (ve !==
|
|
872
|
+
if (ve !== Ln)
|
|
873
873
|
try {
|
|
874
|
-
Me ? l.setAttributeNS(Me, he, ve) : l.setAttribute(he, ve),
|
|
874
|
+
Me ? l.setAttributeNS(Me, he, ve) : l.setAttribute(he, ve), Un(l) ? je(l) : Ki(t.removed);
|
|
875
875
|
} catch {
|
|
876
|
-
|
|
876
|
+
st(he, l);
|
|
877
877
|
}
|
|
878
878
|
}
|
|
879
|
-
|
|
879
|
+
Ye(w.afterSanitizeAttributes, l, null);
|
|
880
880
|
}, Do = function P(l) {
|
|
881
881
|
let S = null;
|
|
882
882
|
const F = Ei(l);
|
|
883
|
-
for (
|
|
884
|
-
|
|
885
|
-
|
|
883
|
+
for (Ye(w.beforeSanitizeShadowDOM, l, null); S = F.nextNode(); )
|
|
884
|
+
Ye(w.uponSanitizeShadowNode, S, null), Mi(S), Oi(S), S.content instanceof o && P(S.content);
|
|
885
|
+
Ye(w.afterSanitizeShadowDOM, l, null);
|
|
886
886
|
};
|
|
887
887
|
return t.sanitize = function(P) {
|
|
888
888
|
let l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, S = null, F = null, te = null, _e = null;
|
|
889
|
-
if (
|
|
889
|
+
if (Fn = !P, Fn && (P = "<!-->"), typeof P != "string" && !Ai(P))
|
|
890
890
|
if (typeof P.toString == "function") {
|
|
891
891
|
if (P = P.toString(), typeof P != "string")
|
|
892
892
|
throw Nt("dirty is not a string, aborting");
|
|
@@ -894,28 +894,28 @@ function Ha() {
|
|
|
894
894
|
throw Nt("toString is not a function");
|
|
895
895
|
if (!t.isSupported)
|
|
896
896
|
return P;
|
|
897
|
-
if (An ||
|
|
897
|
+
if (An || Rn(l), t.removed = [], typeof P == "string" && (Ft = !1), Ft) {
|
|
898
898
|
if (P.nodeName) {
|
|
899
|
-
const
|
|
900
|
-
if (!$[
|
|
899
|
+
const Ge = ge(P.nodeName);
|
|
900
|
+
if (!$[Ge] || Ot[Ge])
|
|
901
901
|
throw Nt("root node is forbidden and cannot be sanitized in-place");
|
|
902
902
|
}
|
|
903
903
|
} else if (P instanceof r)
|
|
904
904
|
S = wi("<!---->"), F = S.ownerDocument.importNode(P, !0), F.nodeType === Dt.element && F.nodeName === "BODY" || F.nodeName === "HTML" ? S = F : S.appendChild(F);
|
|
905
905
|
else {
|
|
906
|
-
if (!
|
|
906
|
+
if (!yt && !gt && !rt && // eslint-disable-next-line unicorn/prefer-includes
|
|
907
907
|
P.indexOf("<") === -1)
|
|
908
908
|
return O && Zt ? O.createHTML(P) : P;
|
|
909
909
|
if (S = wi(P), !S)
|
|
910
|
-
return
|
|
910
|
+
return yt ? null : Zt ? v : "";
|
|
911
911
|
}
|
|
912
|
-
S && Mn &&
|
|
912
|
+
S && Mn && je(S.firstChild);
|
|
913
913
|
const he = Ei(Ft ? P : S);
|
|
914
914
|
for (; te = he.nextNode(); )
|
|
915
915
|
Mi(te), Oi(te), te.content instanceof o && Do(te.content);
|
|
916
916
|
if (Ft)
|
|
917
917
|
return P;
|
|
918
|
-
if (
|
|
918
|
+
if (yt) {
|
|
919
919
|
if (Wt)
|
|
920
920
|
for (_e = V.call(S.ownerDocument); S.firstChild; )
|
|
921
921
|
_e.appendChild(S.firstChild);
|
|
@@ -923,19 +923,19 @@ function Ha() {
|
|
|
923
923
|
_e = S;
|
|
924
924
|
return (re.shadowroot || re.shadowrootmode) && (_e = R.call(i, _e, !0)), _e;
|
|
925
925
|
}
|
|
926
|
-
let Me =
|
|
927
|
-
return
|
|
928
|
-
` + Me),
|
|
929
|
-
Me = Lt(Me,
|
|
926
|
+
let Me = rt ? S.outerHTML : S.innerHTML;
|
|
927
|
+
return rt && $["!doctype"] && S.ownerDocument && S.ownerDocument.doctype && S.ownerDocument.doctype.name && Te(za, S.ownerDocument.doctype.name) && (Me = "<!DOCTYPE " + S.ownerDocument.doctype.name + `>
|
|
928
|
+
` + Me), gt && tn([j, q, H], (Ge) => {
|
|
929
|
+
Me = Lt(Me, Ge, " ");
|
|
930
930
|
}), O && Zt ? O.createHTML(Me) : Me;
|
|
931
931
|
}, t.setConfig = function() {
|
|
932
932
|
let P = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
933
|
-
|
|
933
|
+
Rn(P), An = !0;
|
|
934
934
|
}, t.clearConfig = function() {
|
|
935
935
|
_t = null, An = !1;
|
|
936
936
|
}, t.isValidAttribute = function(P, l, S) {
|
|
937
|
-
_t ||
|
|
938
|
-
const F =
|
|
937
|
+
_t || Rn({});
|
|
938
|
+
const F = ge(P), te = ge(l);
|
|
939
939
|
return Ii(F, te, S);
|
|
940
940
|
}, t.addHook = function(P, l) {
|
|
941
941
|
typeof l == "function" && Ut(w[P], l);
|
|
@@ -953,7 +953,7 @@ function Ha() {
|
|
|
953
953
|
}
|
|
954
954
|
var Fl = Ha();
|
|
955
955
|
function kl() {
|
|
956
|
-
this.__data__ = new
|
|
956
|
+
this.__data__ = new Xe(), this.size = 0;
|
|
957
957
|
}
|
|
958
958
|
function Rl(e) {
|
|
959
959
|
var t = this.__data__, n = t.delete(e);
|
|
@@ -968,16 +968,16 @@ function Ll(e) {
|
|
|
968
968
|
var Nl = 200;
|
|
969
969
|
function Pl(e, t) {
|
|
970
970
|
var n = this.__data__;
|
|
971
|
-
if (n instanceof
|
|
971
|
+
if (n instanceof Xe) {
|
|
972
972
|
var i = n.__data__;
|
|
973
973
|
if (!Bt || i.length < Nl - 1)
|
|
974
974
|
return i.push([e, t]), this.size = ++n.size, this;
|
|
975
|
-
n = this.__data__ = new
|
|
975
|
+
n = this.__data__ = new Je(i);
|
|
976
976
|
}
|
|
977
977
|
return n.set(e, t), this.size = n.size, this;
|
|
978
978
|
}
|
|
979
979
|
function Ct(e) {
|
|
980
|
-
var t = this.__data__ = new
|
|
980
|
+
var t = this.__data__ = new Xe(e);
|
|
981
981
|
this.size = t.size;
|
|
982
982
|
}
|
|
983
983
|
Ct.prototype.clear = kl;
|
|
@@ -987,7 +987,7 @@ Ct.prototype.has = Ll;
|
|
|
987
987
|
Ct.prototype.set = Pl;
|
|
988
988
|
var rn = function() {
|
|
989
989
|
try {
|
|
990
|
-
var e =
|
|
990
|
+
var e = ht(Object, "defineProperty");
|
|
991
991
|
return e({}, "", {}), e;
|
|
992
992
|
} catch {
|
|
993
993
|
}
|
|
@@ -1028,7 +1028,7 @@ var xl = Object.prototype, ql = xl.hasOwnProperty;
|
|
|
1028
1028
|
function Kl(e) {
|
|
1029
1029
|
if (!Fe(e))
|
|
1030
1030
|
return jl(e);
|
|
1031
|
-
var t =
|
|
1031
|
+
var t = ai(e), n = [];
|
|
1032
1032
|
for (var i in e)
|
|
1033
1033
|
i == "constructor" && (t || !ql.call(e, i)) || n.push(i);
|
|
1034
1034
|
return n;
|
|
@@ -1062,13 +1062,13 @@ function Gl(e, t) {
|
|
|
1062
1062
|
function Za() {
|
|
1063
1063
|
return [];
|
|
1064
1064
|
}
|
|
1065
|
-
var Wl = Object.prototype, Zl = Wl.propertyIsEnumerable, Qi = Object.getOwnPropertySymbols,
|
|
1065
|
+
var Wl = Object.prototype, Zl = Wl.propertyIsEnumerable, Qi = Object.getOwnPropertySymbols, si = Qi ? function(e) {
|
|
1066
1066
|
return e == null ? [] : (e = Object(e), Gl(Qi(e), function(t) {
|
|
1067
1067
|
return Zl.call(e, t);
|
|
1068
1068
|
}));
|
|
1069
1069
|
} : Za;
|
|
1070
1070
|
function Xl(e, t) {
|
|
1071
|
-
return _n(e,
|
|
1071
|
+
return _n(e, si(e), t);
|
|
1072
1072
|
}
|
|
1073
1073
|
function Xa(e, t) {
|
|
1074
1074
|
for (var n = -1, i = t.length, a = e.length; ++n < i; )
|
|
@@ -1077,7 +1077,7 @@ function Xa(e, t) {
|
|
|
1077
1077
|
}
|
|
1078
1078
|
var Ja = ja(Object.getPrototypeOf, Object), Jl = Object.getOwnPropertySymbols, Qa = Jl ? function(e) {
|
|
1079
1079
|
for (var t = []; e; )
|
|
1080
|
-
Xa(t,
|
|
1080
|
+
Xa(t, si(e)), e = Ja(e);
|
|
1081
1081
|
return t;
|
|
1082
1082
|
} : Za;
|
|
1083
1083
|
function Ql(e, t) {
|
|
@@ -1085,17 +1085,17 @@ function Ql(e, t) {
|
|
|
1085
1085
|
}
|
|
1086
1086
|
function eo(e, t, n) {
|
|
1087
1087
|
var i = t(e);
|
|
1088
|
-
return
|
|
1088
|
+
return ot(e) ? i : Xa(i, n(e));
|
|
1089
1089
|
}
|
|
1090
1090
|
function ed(e) {
|
|
1091
|
-
return eo(e, pn,
|
|
1091
|
+
return eo(e, pn, si);
|
|
1092
1092
|
}
|
|
1093
1093
|
function td(e) {
|
|
1094
1094
|
return eo(e, Tn, Qa);
|
|
1095
1095
|
}
|
|
1096
|
-
var
|
|
1097
|
-
(
|
|
1098
|
-
var t =
|
|
1096
|
+
var Wn = ht(Pe, "DataView"), Zn = ht(Pe, "Promise"), wt = ht(Pe, "Set"), Xn = ht(Pe, "WeakMap"), ea = "[object Map]", nd = "[object Object]", ta = "[object Promise]", na = "[object Set]", ia = "[object WeakMap]", aa = "[object DataView]", id = ft(Wn), ad = ft(Bt), od = ft(Zn), rd = ft(wt), sd = ft(Xn), We = it;
|
|
1097
|
+
(Wn && We(new Wn(new ArrayBuffer(1))) != aa || Bt && We(new Bt()) != ea || Zn && We(Zn.resolve()) != ta || wt && We(new wt()) != na || Xn && We(new Xn()) != ia) && (We = function(e) {
|
|
1098
|
+
var t = it(e), n = t == nd ? e.constructor : void 0, i = n ? ft(n) : "";
|
|
1099
1099
|
if (i)
|
|
1100
1100
|
switch (i) {
|
|
1101
1101
|
case id:
|
|
@@ -1117,12 +1117,12 @@ function ud(e) {
|
|
|
1117
1117
|
return t && typeof e[0] == "string" && dd.call(e, "index") && (n.index = e.index, n.input = e.input), n;
|
|
1118
1118
|
}
|
|
1119
1119
|
var oa = Pe.Uint8Array;
|
|
1120
|
-
function
|
|
1120
|
+
function li(e) {
|
|
1121
1121
|
var t = new e.constructor(e.byteLength);
|
|
1122
1122
|
return new oa(t).set(new oa(e)), t;
|
|
1123
1123
|
}
|
|
1124
1124
|
function cd(e, t) {
|
|
1125
|
-
var n = t ?
|
|
1125
|
+
var n = t ? li(e.buffer) : e.buffer;
|
|
1126
1126
|
return new e.constructor(n, e.byteOffset, e.byteLength);
|
|
1127
1127
|
}
|
|
1128
1128
|
var md = /\w*$/;
|
|
@@ -1130,12 +1130,12 @@ function fd(e) {
|
|
|
1130
1130
|
var t = new e.constructor(e.source, md.exec(e));
|
|
1131
1131
|
return t.lastIndex = e.lastIndex, t;
|
|
1132
1132
|
}
|
|
1133
|
-
var ra =
|
|
1133
|
+
var ra = nt ? nt.prototype : void 0, sa = ra ? ra.valueOf : void 0;
|
|
1134
1134
|
function hd(e) {
|
|
1135
1135
|
return sa ? Object(sa.call(e)) : {};
|
|
1136
1136
|
}
|
|
1137
1137
|
function pd(e, t) {
|
|
1138
|
-
var n = t ?
|
|
1138
|
+
var n = t ? li(e.buffer) : e.buffer;
|
|
1139
1139
|
return new e.constructor(n, e.byteOffset, e.length);
|
|
1140
1140
|
}
|
|
1141
1141
|
var gd = "[object Boolean]", yd = "[object Date]", vd = "[object Map]", bd = "[object Number]", _d = "[object RegExp]", Td = "[object Set]", Sd = "[object String]", wd = "[object Symbol]", Ed = "[object ArrayBuffer]", Ad = "[object DataView]", Md = "[object Float32Array]", Id = "[object Float64Array]", Cd = "[object Int8Array]", Od = "[object Int16Array]", Fd = "[object Int32Array]", kd = "[object Uint8Array]", Rd = "[object Uint8ClampedArray]", Ud = "[object Uint16Array]", Ld = "[object Uint32Array]";
|
|
@@ -1143,7 +1143,7 @@ function Nd(e, t, n) {
|
|
|
1143
1143
|
var i = e.constructor;
|
|
1144
1144
|
switch (t) {
|
|
1145
1145
|
case Ed:
|
|
1146
|
-
return
|
|
1146
|
+
return li(e);
|
|
1147
1147
|
case gd:
|
|
1148
1148
|
case yd:
|
|
1149
1149
|
return new i(+e);
|
|
@@ -1186,17 +1186,17 @@ var la = Object.create, Pd = /* @__PURE__ */ function() {
|
|
|
1186
1186
|
};
|
|
1187
1187
|
}();
|
|
1188
1188
|
function Dd(e) {
|
|
1189
|
-
return typeof e.constructor == "function" && !
|
|
1189
|
+
return typeof e.constructor == "function" && !ai(e) ? Pd(Ja(e)) : {};
|
|
1190
1190
|
}
|
|
1191
1191
|
var $d = "[object Map]";
|
|
1192
1192
|
function Vd(e) {
|
|
1193
|
-
return
|
|
1193
|
+
return at(e) && We(e) == $d;
|
|
1194
1194
|
}
|
|
1195
|
-
var da = Et && Et.isMap, jd = da ?
|
|
1195
|
+
var da = Et && Et.isMap, jd = da ? ii(da) : Vd, xd = "[object Set]";
|
|
1196
1196
|
function qd(e) {
|
|
1197
|
-
return
|
|
1197
|
+
return at(e) && We(e) == xd;
|
|
1198
1198
|
}
|
|
1199
|
-
var ua = Et && Et.isSet, Kd = ua ?
|
|
1199
|
+
var ua = Et && Et.isSet, Kd = ua ? ii(ua) : qd, Bd = 1, zd = 2, Hd = 4, to = "[object Arguments]", Yd = "[object Array]", Gd = "[object Boolean]", Wd = "[object Date]", Zd = "[object Error]", no = "[object Function]", Xd = "[object GeneratorFunction]", Jd = "[object Map]", Qd = "[object Number]", io = "[object Object]", eu = "[object RegExp]", tu = "[object Set]", nu = "[object String]", iu = "[object Symbol]", au = "[object WeakMap]", ou = "[object ArrayBuffer]", ru = "[object DataView]", su = "[object Float32Array]", lu = "[object Float64Array]", du = "[object Int8Array]", uu = "[object Int16Array]", cu = "[object Int32Array]", mu = "[object Uint8Array]", fu = "[object Uint8ClampedArray]", hu = "[object Uint16Array]", pu = "[object Uint32Array]", J = {};
|
|
1200
1200
|
J[to] = J[Yd] = J[ou] = J[ru] = J[Gd] = J[Wd] = J[su] = J[lu] = J[du] = J[uu] = J[cu] = J[Jd] = J[Qd] = J[io] = J[eu] = J[tu] = J[nu] = J[iu] = J[mu] = J[fu] = J[hu] = J[pu] = !0;
|
|
1201
1201
|
J[Zd] = J[no] = J[au] = !1;
|
|
1202
1202
|
function xt(e, t, n, i, a, o) {
|
|
@@ -1205,12 +1205,12 @@ function xt(e, t, n, i, a, o) {
|
|
|
1205
1205
|
return s;
|
|
1206
1206
|
if (!Fe(e))
|
|
1207
1207
|
return e;
|
|
1208
|
-
var h =
|
|
1208
|
+
var h = ot(e);
|
|
1209
1209
|
if (h) {
|
|
1210
1210
|
if (s = ud(e), !r)
|
|
1211
1211
|
return Yl(e, s);
|
|
1212
1212
|
} else {
|
|
1213
|
-
var p =
|
|
1213
|
+
var p = We(e), b = p == no || p == Xd;
|
|
1214
1214
|
if (Na(e))
|
|
1215
1215
|
return Hl(e, r);
|
|
1216
1216
|
if (p == io || p == to || b && !a) {
|
|
@@ -1237,13 +1237,13 @@ function xt(e, t, n, i, a, o) {
|
|
|
1237
1237
|
}), s;
|
|
1238
1238
|
}
|
|
1239
1239
|
var gu = 1, yu = 4;
|
|
1240
|
-
function
|
|
1240
|
+
function Ze(e) {
|
|
1241
1241
|
return xt(e, gu | yu);
|
|
1242
1242
|
}
|
|
1243
|
-
const
|
|
1243
|
+
const di = (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, ""), ca = (e = "") => e.toString().trim().replace(/ /g, "-").replace(/-{2,}/g, "-").replace(/^-+|-+$/g, "").replace(/([^a-zA-Z0-9-_/./:]+)/g, "");
|
|
1244
1244
|
var vu = "[object String]";
|
|
1245
|
-
function
|
|
1246
|
-
return typeof e == "string" || !
|
|
1245
|
+
function dt(e) {
|
|
1246
|
+
return typeof e == "string" || !ot(e) && at(e) && it(e) == vu;
|
|
1247
1247
|
}
|
|
1248
1248
|
const ao = {
|
|
1249
1249
|
methods: {
|
|
@@ -1257,7 +1257,7 @@ const ao = {
|
|
|
1257
1257
|
featured: this.fieldFeatured(e),
|
|
1258
1258
|
required: this.fieldRequired(e)
|
|
1259
1259
|
};
|
|
1260
|
-
return Array.isArray(e.styleClasses) ? Se(e.styleClasses, (i) => n[i] = !0) :
|
|
1260
|
+
return Array.isArray(e.styleClasses) ? Se(e.styleClasses, (i) => n[i] = !0) : dt(e.styleClasses) && (n[e.styleClasses] = !0), de(e.type) || (n["field-" + e.type] = !0), n;
|
|
1261
1261
|
},
|
|
1262
1262
|
fieldErrors(e) {
|
|
1263
1263
|
return this.errors.filter((n) => n.field.fieldName === e.fieldName).map((n) => n.error);
|
|
@@ -1280,7 +1280,7 @@ const ao = {
|
|
|
1280
1280
|
}
|
|
1281
1281
|
}
|
|
1282
1282
|
};
|
|
1283
|
-
var
|
|
1283
|
+
var Kn = function() {
|
|
1284
1284
|
return Pe.Date.now();
|
|
1285
1285
|
}, bu = /\s/;
|
|
1286
1286
|
function _u(e) {
|
|
@@ -1293,7 +1293,7 @@ function Su(e) {
|
|
|
1293
1293
|
return e && e.slice(0, _u(e) + 1).replace(Tu, "");
|
|
1294
1294
|
}
|
|
1295
1295
|
var ma = NaN, wu = /^[-+]0x[0-9a-f]+$/i, Eu = /^0b[01]+$/i, Au = /^0o[0-7]+$/i, Mu = parseInt;
|
|
1296
|
-
function
|
|
1296
|
+
function Jn(e) {
|
|
1297
1297
|
if (typeof e == "number")
|
|
1298
1298
|
return e;
|
|
1299
1299
|
if (gn(e))
|
|
@@ -1313,7 +1313,7 @@ function At(e, t, n) {
|
|
|
1313
1313
|
var i, a, o, s, r, d, u = 0, h = !1, p = !1, b = !0;
|
|
1314
1314
|
if (typeof e != "function")
|
|
1315
1315
|
throw new TypeError(Iu);
|
|
1316
|
-
t =
|
|
1316
|
+
t = Jn(t) || 0, Fe(n) && (h = !!n.leading, p = "maxWait" in n, o = p ? Cu(Jn(n.maxWait) || 0, t) : o, b = "trailing" in n ? !!n.trailing : b);
|
|
1317
1317
|
function k(y) {
|
|
1318
1318
|
var g = i, V = a;
|
|
1319
1319
|
return i = a = void 0, u = y, s = e.apply(V, g), s;
|
|
@@ -1330,7 +1330,7 @@ function At(e, t, n) {
|
|
|
1330
1330
|
return d === void 0 || g >= t || g < 0 || p && V >= o;
|
|
1331
1331
|
}
|
|
1332
1332
|
function I() {
|
|
1333
|
-
var y =
|
|
1333
|
+
var y = Kn();
|
|
1334
1334
|
if (A(y))
|
|
1335
1335
|
return N(y);
|
|
1336
1336
|
r = setTimeout(I, f(y));
|
|
@@ -1342,10 +1342,10 @@ function At(e, t, n) {
|
|
|
1342
1342
|
r !== void 0 && clearTimeout(r), u = 0, i = d = a = r = void 0;
|
|
1343
1343
|
}
|
|
1344
1344
|
function O() {
|
|
1345
|
-
return r === void 0 ? s : N(
|
|
1345
|
+
return r === void 0 ? s : N(Kn());
|
|
1346
1346
|
}
|
|
1347
1347
|
function v() {
|
|
1348
|
-
var y =
|
|
1348
|
+
var y = Kn(), g = A(y);
|
|
1349
1349
|
if (i = arguments, a = this, d = y, g) {
|
|
1350
1350
|
if (r === void 0)
|
|
1351
1351
|
return x(d);
|
|
@@ -1365,7 +1365,7 @@ function Ru(e) {
|
|
|
1365
1365
|
}
|
|
1366
1366
|
function sn(e) {
|
|
1367
1367
|
var t = -1, n = e == null ? 0 : e.length;
|
|
1368
|
-
for (this.__data__ = new
|
|
1368
|
+
for (this.__data__ = new Je(); ++t < n; )
|
|
1369
1369
|
this.add(e[t]);
|
|
1370
1370
|
}
|
|
1371
1371
|
sn.prototype.add = sn.prototype.push = ku;
|
|
@@ -1435,7 +1435,7 @@ function so(e) {
|
|
|
1435
1435
|
var t = ++Bu;
|
|
1436
1436
|
return qa(e) + t;
|
|
1437
1437
|
}
|
|
1438
|
-
var lo = /d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,
|
|
1438
|
+
var lo = /d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g, et = "\\d\\d?", Qe = "\\d\\d", zu = "\\d{3}", Hu = "\\d{4}", qt = "[^\\s]+", uo = /\[([^]*?)\]/gm;
|
|
1439
1439
|
function co(e, t) {
|
|
1440
1440
|
for (var n = [], i = 0, a = e.length; i < a; i++)
|
|
1441
1441
|
n.push(e[i].substr(0, t));
|
|
@@ -1449,7 +1449,7 @@ var fa = function(e) {
|
|
|
1449
1449
|
return a > -1 ? a : null;
|
|
1450
1450
|
};
|
|
1451
1451
|
};
|
|
1452
|
-
function
|
|
1452
|
+
function ut(e) {
|
|
1453
1453
|
for (var t = [], n = 1; n < arguments.length; n++)
|
|
1454
1454
|
t[n - 1] = arguments[n];
|
|
1455
1455
|
for (var i = 0, a = t; i < a.length; i++) {
|
|
@@ -1489,8 +1489,8 @@ var mo = [
|
|
|
1489
1489
|
DoFn: function(e) {
|
|
1490
1490
|
return e + ["th", "st", "nd", "rd"][e % 10 > 3 ? 0 : (e - e % 10 !== 10 ? 1 : 0) * e % 10];
|
|
1491
1491
|
}
|
|
1492
|
-
}, ln =
|
|
1493
|
-
return ln =
|
|
1492
|
+
}, ln = ut({}, ho), Wu = function(e) {
|
|
1493
|
+
return ln = ut(ln, e);
|
|
1494
1494
|
}, ha = function(e) {
|
|
1495
1495
|
return e.replace(/[|\\{()[^$+*?.-]/g, "\\$&");
|
|
1496
1496
|
}, Ie = function(e, t) {
|
|
@@ -1586,7 +1586,7 @@ var mo = [
|
|
|
1586
1586
|
}
|
|
1587
1587
|
}, pa = function(e) {
|
|
1588
1588
|
return +e - 1;
|
|
1589
|
-
}, ga = [null,
|
|
1589
|
+
}, ga = [null, et], ya = [null, qt], va = [
|
|
1590
1590
|
"isPm",
|
|
1591
1591
|
qt,
|
|
1592
1592
|
function(e, t) {
|
|
@@ -1605,34 +1605,34 @@ var mo = [
|
|
|
1605
1605
|
return 0;
|
|
1606
1606
|
}
|
|
1607
1607
|
], Xu = {
|
|
1608
|
-
D: ["day",
|
|
1609
|
-
DD: ["day",
|
|
1610
|
-
Do: ["day",
|
|
1608
|
+
D: ["day", et],
|
|
1609
|
+
DD: ["day", Qe],
|
|
1610
|
+
Do: ["day", et + qt, function(e) {
|
|
1611
1611
|
return parseInt(e, 10);
|
|
1612
1612
|
}],
|
|
1613
|
-
M: ["month",
|
|
1614
|
-
MM: ["month",
|
|
1613
|
+
M: ["month", et, pa],
|
|
1614
|
+
MM: ["month", Qe, pa],
|
|
1615
1615
|
YY: [
|
|
1616
1616
|
"year",
|
|
1617
|
-
|
|
1617
|
+
Qe,
|
|
1618
1618
|
function(e) {
|
|
1619
1619
|
var t = /* @__PURE__ */ new Date(), n = +("" + t.getFullYear()).substr(0, 2);
|
|
1620
1620
|
return +("" + (+e > 68 ? n - 1 : n) + e);
|
|
1621
1621
|
}
|
|
1622
1622
|
],
|
|
1623
|
-
h: ["hour",
|
|
1624
|
-
hh: ["hour",
|
|
1625
|
-
H: ["hour",
|
|
1626
|
-
HH: ["hour",
|
|
1627
|
-
m: ["minute",
|
|
1628
|
-
mm: ["minute",
|
|
1629
|
-
s: ["second",
|
|
1630
|
-
ss: ["second",
|
|
1623
|
+
h: ["hour", et, void 0, "isPm"],
|
|
1624
|
+
hh: ["hour", Qe, void 0, "isPm"],
|
|
1625
|
+
H: ["hour", et],
|
|
1626
|
+
HH: ["hour", Qe],
|
|
1627
|
+
m: ["minute", et],
|
|
1628
|
+
mm: ["minute", Qe],
|
|
1629
|
+
s: ["second", et],
|
|
1630
|
+
ss: ["second", Qe],
|
|
1631
1631
|
YYYY: ["year", Hu],
|
|
1632
1632
|
S: ["millisecond", "\\d", function(e) {
|
|
1633
1633
|
return +e * 100;
|
|
1634
1634
|
}],
|
|
1635
|
-
SS: ["millisecond",
|
|
1635
|
+
SS: ["millisecond", Qe, function(e) {
|
|
1636
1636
|
return +e * 10;
|
|
1637
1637
|
}],
|
|
1638
1638
|
SSS: ["millisecond", zu],
|
|
@@ -1658,7 +1658,7 @@ var mo = [
|
|
|
1658
1658
|
mediumTime: "HH:mm:ss",
|
|
1659
1659
|
longTime: "HH:mm:ss.SSS"
|
|
1660
1660
|
}, Ju = function(e) {
|
|
1661
|
-
return
|
|
1661
|
+
return ut(dn, e);
|
|
1662
1662
|
}, Qu = function(e, t, n) {
|
|
1663
1663
|
if (t === void 0 && (t = dn.default), n === void 0 && (n = {}), typeof e == "number" && (e = new Date(e)), Object.prototype.toString.call(e) !== "[object Date]" || isNaN(e.getTime()))
|
|
1664
1664
|
throw new Error("Invalid Date pass to format");
|
|
@@ -1667,7 +1667,7 @@ var mo = [
|
|
|
1667
1667
|
t = t.replace(uo, function(o, s) {
|
|
1668
1668
|
return i.push(s), "@@@";
|
|
1669
1669
|
});
|
|
1670
|
-
var a =
|
|
1670
|
+
var a = ut(ut({}, ln), n);
|
|
1671
1671
|
return t = t.replace(lo, function(o) {
|
|
1672
1672
|
return Zu[o](e, a);
|
|
1673
1673
|
}), t.replace(/@@@/g, function() {
|
|
@@ -1706,7 +1706,7 @@ function ec(e, t, n) {
|
|
|
1706
1706
|
var h = e.match(new RegExp(r, "i"));
|
|
1707
1707
|
if (!h)
|
|
1708
1708
|
return null;
|
|
1709
|
-
for (var p =
|
|
1709
|
+
for (var p = ut(ut({}, ln), n), b = 1; b < h.length; b++) {
|
|
1710
1710
|
var k = o[b - 1], x = k[0], f = k[2], A = f ? f(h[b], p) : +h[b];
|
|
1711
1711
|
if (A == null)
|
|
1712
1712
|
return null;
|
|
@@ -1772,7 +1772,7 @@ var ac = rn ? function(e, t) {
|
|
|
1772
1772
|
value: ic(t),
|
|
1773
1773
|
writable: !0
|
|
1774
1774
|
});
|
|
1775
|
-
} :
|
|
1775
|
+
} : oi, oc = 800, rc = 16, sc = Date.now;
|
|
1776
1776
|
function lc(e) {
|
|
1777
1777
|
var t = 0, n = 0;
|
|
1778
1778
|
return function() {
|
|
@@ -1787,7 +1787,7 @@ function lc(e) {
|
|
|
1787
1787
|
}
|
|
1788
1788
|
var dc = lc(ac);
|
|
1789
1789
|
function uc(e, t) {
|
|
1790
|
-
return dc(nc(e, t,
|
|
1790
|
+
return dc(nc(e, t, oi), e + "");
|
|
1791
1791
|
}
|
|
1792
1792
|
function cc(e, t, n) {
|
|
1793
1793
|
if (!Fe(n))
|
|
@@ -1812,7 +1812,7 @@ var Ta = 1 / 0, pc = 17976931348623157e292;
|
|
|
1812
1812
|
function gc(e) {
|
|
1813
1813
|
if (!e)
|
|
1814
1814
|
return e === 0 ? e : 0;
|
|
1815
|
-
if (e =
|
|
1815
|
+
if (e = Jn(e), e === Ta || e === -Ta) {
|
|
1816
1816
|
var t = e < 0 ? -1 : 1;
|
|
1817
1817
|
return t * pc;
|
|
1818
1818
|
}
|
|
@@ -1826,8 +1826,8 @@ function vc(e) {
|
|
|
1826
1826
|
return typeof e == "number" && e == yc(e);
|
|
1827
1827
|
}
|
|
1828
1828
|
var bc = "[object Number]";
|
|
1829
|
-
function
|
|
1830
|
-
return typeof e == "number" ||
|
|
1829
|
+
function ui(e) {
|
|
1830
|
+
return typeof e == "number" || at(e) && it(e) == bc;
|
|
1831
1831
|
}
|
|
1832
1832
|
const _c = {
|
|
1833
1833
|
packageName: "forms",
|
|
@@ -2044,7 +2044,7 @@ const _c = {
|
|
|
2044
2044
|
for (let n = 0; n < t.length; n++)
|
|
2045
2045
|
e = e.replace("{" + (n - 1) + "}", String(t[n] || ""));
|
|
2046
2046
|
return e;
|
|
2047
|
-
}, Ue = (e, t, n = be) => de(e) || e === "" ? t ? [ie(n.fieldIsRequired)] : [] : null,
|
|
2047
|
+
}, Ue = (e, t, n = be) => de(e) || e === "" ? t ? [ie(n.fieldIsRequired)] : [] : null, ct = {
|
|
2048
2048
|
required: (e, t, n, i = be) => Ue(e, t.required, i) || [],
|
|
2049
2049
|
number: (e, t, n, i = be) => {
|
|
2050
2050
|
let a = Ue(e, t.required, i);
|
|
@@ -2052,15 +2052,15 @@ const _c = {
|
|
|
2052
2052
|
},
|
|
2053
2053
|
integer: (e, t, n, i = be) => {
|
|
2054
2054
|
let a = Ue(e, t.required, i);
|
|
2055
|
-
return a != null || (a = [], a.concat(
|
|
2055
|
+
return a != null || (a = [], a.concat(ct.number(e, t, n, i)), vc(e) || a.push(ie(i.invalidInteger))), a;
|
|
2056
2056
|
},
|
|
2057
2057
|
double: (e, t, n, i = be) => {
|
|
2058
2058
|
const a = Ue(e, t.required, i);
|
|
2059
|
-
return a ?? (!
|
|
2059
|
+
return a ?? (!ui(e) || isNaN(e) ? [ie(i.invalidNumber)] : []);
|
|
2060
2060
|
},
|
|
2061
2061
|
string: (e, t, n, i = be) => {
|
|
2062
2062
|
let a = Ue(e, t.required, i);
|
|
2063
|
-
return a != null || (a = [],
|
|
2063
|
+
return a != null || (a = [], dt(e) ? (!de(t.min) && e.length < t.min && a.push(ie(i.textTooSmall, e.length, t.min)), !de(t.max) && e.length > t.max && a.push(ie(i.textTooBig, e.length, t.max))) : a.push(ie(i.thisNotText))), a;
|
|
2064
2064
|
},
|
|
2065
2065
|
array: (e, t, n, i = be) => {
|
|
2066
2066
|
if (t.required) {
|
|
@@ -2126,17 +2126,17 @@ const _c = {
|
|
|
2126
2126
|
return a ?? (/^[a-zA-Z0-9]*$/.test(e) ? [] : [ie(i.invalidTextContainSpec)]);
|
|
2127
2127
|
}
|
|
2128
2128
|
};
|
|
2129
|
-
Object.keys(
|
|
2130
|
-
const t =
|
|
2129
|
+
Object.keys(ct).forEach((e) => {
|
|
2130
|
+
const t = ct[e];
|
|
2131
2131
|
X(t) && (t.locale = (n) => (i, a, o) => t(i, a, o, fc(n, be)));
|
|
2132
2132
|
});
|
|
2133
2133
|
function Sa(e) {
|
|
2134
|
-
return
|
|
2134
|
+
return dt(e) ? ct[e] != null ? ct[e] : (console.warn(`'${e}' is not a validator function!`), null) : e;
|
|
2135
2135
|
}
|
|
2136
|
-
function
|
|
2136
|
+
function Bn(e, t, n) {
|
|
2137
2137
|
let i = G(n.context, "schema.attributes", {});
|
|
2138
2138
|
const a = t.value || "input";
|
|
2139
|
-
|
|
2139
|
+
dt(a) && (i = G(i, a) || i), Se(i, (o, s) => {
|
|
2140
2140
|
e.setAttribute(s, o);
|
|
2141
2141
|
});
|
|
2142
2142
|
}
|
|
@@ -2153,9 +2153,9 @@ const $e = {
|
|
|
2153
2153
|
},
|
|
2154
2154
|
directives: {
|
|
2155
2155
|
attributes: {
|
|
2156
|
-
beforeMount:
|
|
2157
|
-
updated:
|
|
2158
|
-
componentUpdated:
|
|
2156
|
+
beforeMount: Bn,
|
|
2157
|
+
updated: Bn,
|
|
2158
|
+
componentUpdated: Bn
|
|
2159
2159
|
}
|
|
2160
2160
|
},
|
|
2161
2161
|
computed: {
|
|
@@ -2196,7 +2196,7 @@ const $e = {
|
|
|
2196
2196
|
const i = (a) => {
|
|
2197
2197
|
let o = [];
|
|
2198
2198
|
Se(ro(a), (r) => {
|
|
2199
|
-
Array.isArray(r) && r.length > 0 ? o = o.concat(r) :
|
|
2199
|
+
Array.isArray(r) && r.length > 0 ? o = o.concat(r) : dt(r) && o.push(r);
|
|
2200
2200
|
}), X(this.schema.onValidated) && this.schema.onValidated.call(this, this.model, o, this.schema);
|
|
2201
2201
|
const s = o.length === 0;
|
|
2202
2202
|
return e || this.$emit("validated", s, o, this), this.errors = o, o;
|
|
@@ -2236,7 +2236,7 @@ const $e = {
|
|
|
2236
2236
|
},
|
|
2237
2237
|
getFieldID(e, t = !1) {
|
|
2238
2238
|
const n = G(this.formOptions, "fieldIdPrefix", "");
|
|
2239
|
-
return
|
|
2239
|
+
return di(e, n) + (t ? "-" + so() : "");
|
|
2240
2240
|
},
|
|
2241
2241
|
getLabelId(e) {
|
|
2242
2242
|
return `${this.getFieldID(e)}-label`;
|
|
@@ -2481,13 +2481,13 @@ const Kc = ["data-testid", "data-testlabel"], Bc = { class: "item-label" }, zc =
|
|
|
2481
2481
|
]), 1032, ["id", "modelValue", "disabled", "error", "help", "items", "loading", "placeholder"]);
|
|
2482
2482
|
};
|
|
2483
2483
|
}
|
|
2484
|
-
}), Yc = /* @__PURE__ */ W(Hc, [["__scopeId", "data-v-9f6760b4"]]), Gc = "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}",
|
|
2484
|
+
}), Yc = /* @__PURE__ */ W(Hc, [["__scopeId", "data-v-9f6760b4"]]), Gc = "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}", Qn = (e) => e ? e.length === 36 && new RegExp(`^${Gc}$`).test(e) : !1, Wc = (e) => ({
|
|
2485
2485
|
...e,
|
|
2486
2486
|
label: e.name,
|
|
2487
2487
|
value: e.id
|
|
2488
2488
|
});
|
|
2489
2489
|
function _o(e, t, n) {
|
|
2490
|
-
return n ?
|
|
2490
|
+
return n ? qe.SET_REFERRAL_VALUE : e && !t || !e && t ? qe.UPDATE_ENTITY : e && t ? qe.CREATE_FROM_ENTITY : qe.CREATE_NOT_FROM_ENTITY;
|
|
2491
2491
|
}
|
|
2492
2492
|
const Zc = 500, Xc = 50, Jc = /* @__PURE__ */ pe({
|
|
2493
2493
|
__name: "FieldScopedEntitySelect",
|
|
@@ -2552,16 +2552,16 @@ const Zc = 500, Xc = 50, Jc = /* @__PURE__ */ pe({
|
|
|
2552
2552
|
group: d("fields.auto_suggest.recently_created", { entity: e.entity })
|
|
2553
2553
|
})), v;
|
|
2554
2554
|
}, f = async (v) => [await e.getOne(v)], A = (v, y) => {
|
|
2555
|
-
|
|
2555
|
+
Qn(v) && e.allowUuidSearch ? p(async () => await f(v)) : p(async () => await k(v, y.signal), y.signal);
|
|
2556
2556
|
}, I = (v) => {
|
|
2557
2557
|
let y = [];
|
|
2558
2558
|
y = N(r.value), v != null && v.trim() ? o.value = y.filter((g) => e.fields.some((V) => (g[V] || "").includes(v))) : o.value = y;
|
|
2559
2559
|
}, N = (v) => e.selectedItem ? v.some((y) => y.value === e.selectedItem.value) ? v : [e.selectedItem, ...v] : v, T = (v) => {
|
|
2560
2560
|
o.value = r.value.filter((y) => y.id === v);
|
|
2561
2561
|
}, O = (v) => {
|
|
2562
|
-
|
|
2562
|
+
Qn(v) && e.allowUuidSearch ? T(v) : I(v);
|
|
2563
2563
|
};
|
|
2564
|
-
return
|
|
2564
|
+
return ei(async () => {
|
|
2565
2565
|
await p(x);
|
|
2566
2566
|
const v = mn(() => e.selectedItem, (y) => {
|
|
2567
2567
|
y && (o.value = N(r.value)), v();
|
|
@@ -2664,17 +2664,17 @@ const Zc = 500, Xc = 50, Jc = /* @__PURE__ */ pe({
|
|
|
2664
2664
|
this.error = null;
|
|
2665
2665
|
try {
|
|
2666
2666
|
switch (this.fieldState) {
|
|
2667
|
-
case
|
|
2667
|
+
case qe.UPDATE_ENTITY:
|
|
2668
2668
|
if (!this[Ce]) {
|
|
2669
2669
|
console.warn("[@kong-ui-public/forms] No API service provided");
|
|
2670
2670
|
break;
|
|
2671
2671
|
}
|
|
2672
2672
|
this.loading = !0, t = await this.getOne(this.model[this.schema.model]), e = this.getItem(this.schema.entityDataKey ? t[this.schema.entityDataKey] : t), this.idValue = e.id;
|
|
2673
2673
|
break;
|
|
2674
|
-
case
|
|
2674
|
+
case qe.CREATE_FROM_ENTITY:
|
|
2675
2675
|
this.idValue = this.associatedEntity.id;
|
|
2676
2676
|
break;
|
|
2677
|
-
case
|
|
2677
|
+
case qe.SET_REFERRAL_VALUE:
|
|
2678
2678
|
this.idValue = this.value;
|
|
2679
2679
|
}
|
|
2680
2680
|
e && (this.initialItem = this.transformItem(e), this.selectedItem = this.initialItem);
|
|
@@ -2793,7 +2793,7 @@ function rm(e, t, n, i, a, o) {
|
|
|
2793
2793
|
_: 1
|
|
2794
2794
|
}, 8, ["text"]);
|
|
2795
2795
|
}
|
|
2796
|
-
const To = /* @__PURE__ */ W(em, [["render", rm], ["__scopeId", "data-v-6fe8b574"]]),
|
|
2796
|
+
const To = /* @__PURE__ */ W(em, [["render", rm], ["__scopeId", "data-v-6fe8b574"]]), zn = 50, sm = {
|
|
2797
2797
|
mixins: [$e],
|
|
2798
2798
|
inject: [Ce],
|
|
2799
2799
|
emits: ["model-updated"],
|
|
@@ -2834,17 +2834,17 @@ const To = /* @__PURE__ */ W(em, [["render", rm], ["__scopeId", "data-v-6fe8b574
|
|
|
2834
2834
|
await this.$nextTick();
|
|
2835
2835
|
let e, t;
|
|
2836
2836
|
switch (this.fieldState) {
|
|
2837
|
-
case
|
|
2837
|
+
case qe.UPDATE_ENTITY:
|
|
2838
2838
|
if (!this[Ce]) {
|
|
2839
2839
|
console.warn("[@kong-ui-public/forms] No API service provided");
|
|
2840
2840
|
break;
|
|
2841
2841
|
}
|
|
2842
2842
|
t = (await this[Ce].getOne(this.entity, this.model[this.schema.model])).data, e = this.getItem(this.schema.entityDataKey ? t[this.schema.entityDataKey] : t), this.idValue = e.id;
|
|
2843
2843
|
break;
|
|
2844
|
-
case
|
|
2844
|
+
case qe.CREATE_FROM_ENTITY:
|
|
2845
2845
|
this.idValue = this.associatedEntity.id;
|
|
2846
2846
|
break;
|
|
2847
|
-
case
|
|
2847
|
+
case qe.SET_REFERRAL_VALUE:
|
|
2848
2848
|
this.idValue = this.value;
|
|
2849
2849
|
}
|
|
2850
2850
|
try {
|
|
@@ -2865,7 +2865,7 @@ const To = /* @__PURE__ */ W(em, [["render", rm], ["__scopeId", "data-v-6fe8b574
|
|
|
2865
2865
|
return;
|
|
2866
2866
|
this.loading = !0;
|
|
2867
2867
|
const t = [], n = [], i = this.getInputFields(), a = /* @__PURE__ */ new Set();
|
|
2868
|
-
|
|
2868
|
+
Qn(e) && i.includes("id") ? n.push((async () => {
|
|
2869
2869
|
const o = await this.fetchExact(e);
|
|
2870
2870
|
t.push({ ...o, label: this.getSuggestionLabel(o), value: o.id });
|
|
2871
2871
|
})()) : n.push(...i.filter((o) => o !== "id").map(async (o) => {
|
|
@@ -2882,15 +2882,15 @@ const To = /* @__PURE__ */ W(em, [["render", rm], ["__scopeId", "data-v-6fe8b574
|
|
|
2882
2882
|
let n = null;
|
|
2883
2883
|
if (!this[Ce])
|
|
2884
2884
|
return console.warn("[@kong-ui-public/forms] No API service provided"), [];
|
|
2885
|
-
for (; t.length <
|
|
2885
|
+
for (; t.length < zn; ) {
|
|
2886
2886
|
const i = await this[Ce].getAll(this.entity, {
|
|
2887
|
-
size:
|
|
2887
|
+
size: zn,
|
|
2888
2888
|
offset: n,
|
|
2889
2889
|
...e
|
|
2890
2890
|
});
|
|
2891
2891
|
if (t.push(...i.data.data), n = i.data.offset, !n) break;
|
|
2892
2892
|
}
|
|
2893
|
-
return t.slice(0,
|
|
2893
|
+
return t.slice(0, zn);
|
|
2894
2894
|
},
|
|
2895
2895
|
async fetchSuggestions(e, t) {
|
|
2896
2896
|
return this.fetchUntilLimit({ [t]: e });
|
|
@@ -2968,7 +2968,7 @@ function cm(e, t, n, i, a, o) {
|
|
|
2968
2968
|
}
|
|
2969
2969
|
const So = /* @__PURE__ */ W(sm, [["render", cm], ["__scopeId", "data-v-8cfdc7f6"]]);
|
|
2970
2970
|
function mm(e) {
|
|
2971
|
-
const t = ae([]), n = ae(null), i = (f) =>
|
|
2971
|
+
const t = ae([]), n = ae(null), i = (f) => dt(f) ? ct[f] != null ? ct[f] : (console.warn(`'${f}' is not a validator function!`), null) : f, a = z({
|
|
2972
2972
|
get() {
|
|
2973
2973
|
var A, I;
|
|
2974
2974
|
let f;
|
|
@@ -3005,7 +3005,7 @@ function mm(e) {
|
|
|
3005
3005
|
var y, g;
|
|
3006
3006
|
let v = [];
|
|
3007
3007
|
if (Se(ro(O), (V) => {
|
|
3008
|
-
Array.isArray(V) && V.length > 0 ? v = v.concat(V) :
|
|
3008
|
+
Array.isArray(V) && V.length > 0 ? v = v.concat(V) : dt(V) && v.push(V);
|
|
3009
3009
|
}), X((y = e.schema) == null ? void 0 : y.onValidated) && e.schema.onValidated((g = e.model) == null ? void 0 : g.value, v, e.schema), !f) {
|
|
3010
3010
|
const V = v.length === 0;
|
|
3011
3011
|
e.emitValidated && e.emitValidated({ isValid: V, errors: v, field: e.schema });
|
|
@@ -3042,7 +3042,7 @@ function mm(e) {
|
|
|
3042
3042
|
}
|
|
3043
3043
|
}, h = (f, A = !1) => {
|
|
3044
3044
|
const I = G(e.formOptions, "fieldIdPrefix", "");
|
|
3045
|
-
return
|
|
3045
|
+
return di(f, I) + (A ? "-" + so() : "");
|
|
3046
3046
|
}, p = (f) => `${h(f)}-label`, b = () => G(e.schema, "fieldClasses", []), k = (f) => e.formatValueToField && typeof e.formatValueToField == "function" ? e.formatValueToField(f) : f, x = (f) => e.formatValueToModel && typeof e.formatValueToModel == "function" ? e.formatValueToModel(f) : f;
|
|
3047
3047
|
return {
|
|
3048
3048
|
value: a,
|
|
@@ -3089,7 +3089,7 @@ function hm(e, t) {
|
|
|
3089
3089
|
};
|
|
3090
3090
|
});
|
|
3091
3091
|
}
|
|
3092
|
-
const
|
|
3092
|
+
const Ke = {
|
|
3093
3093
|
useAbstractFields: mm,
|
|
3094
3094
|
useRedisPartial: fm,
|
|
3095
3095
|
useRedisNonStandardFields: hm
|
|
@@ -3133,7 +3133,7 @@ const xe = {
|
|
|
3133
3133
|
},
|
|
3134
3134
|
emits: ["modelUpdated"],
|
|
3135
3135
|
setup(e, { expose: t, emit: n }) {
|
|
3136
|
-
const i = e, a = n, o =
|
|
3136
|
+
const i = e, a = n, o = mt(i), s = on(Le, void 0), { updateModelValue: r, getFieldID: d, clearValidationErrors: u, value: h } = Ke.useAbstractFields({
|
|
3137
3137
|
model: o.model,
|
|
3138
3138
|
schema: i.schema,
|
|
3139
3139
|
formOptions: i.formOptions,
|
|
@@ -3144,7 +3144,7 @@ const xe = {
|
|
|
3144
3144
|
t({
|
|
3145
3145
|
clearValidationErrors: u
|
|
3146
3146
|
});
|
|
3147
|
-
const p =
|
|
3147
|
+
const p = z(() => {
|
|
3148
3148
|
var O, v;
|
|
3149
3149
|
const T = (O = i.schema) == null ? void 0 : O.inputType.toLowerCase();
|
|
3150
3150
|
if (T === "number" && ((v = i.schema) == null ? void 0 : v.referenceable) === !0)
|
|
@@ -3167,7 +3167,7 @@ const xe = {
|
|
|
3167
3167
|
const y = b[p.value] || "", g = St.parse(T, y);
|
|
3168
3168
|
g && ((V = i.schema) != null && V.format ? v = St.format(g, (Z = i.schema) == null ? void 0 : Z.format) : v = g.valueOf()), r(v, O);
|
|
3169
3169
|
}, x = (T, O) => {
|
|
3170
|
-
|
|
3170
|
+
ui(T) || (T = NaN), r(T, O);
|
|
3171
3171
|
}, f = (T) => {
|
|
3172
3172
|
let O = T;
|
|
3173
3173
|
switch (i.schema.inputType) {
|
|
@@ -3183,7 +3183,7 @@ const xe = {
|
|
|
3183
3183
|
var T;
|
|
3184
3184
|
X(I.value) && ((T = I.value) == null || T.flush());
|
|
3185
3185
|
};
|
|
3186
|
-
return
|
|
3186
|
+
return ei(() => {
|
|
3187
3187
|
switch (p.value) {
|
|
3188
3188
|
case "number":
|
|
3189
3189
|
case "range":
|
|
@@ -3213,12 +3213,12 @@ const xe = {
|
|
|
3213
3213
|
);
|
|
3214
3214
|
break;
|
|
3215
3215
|
}
|
|
3216
|
-
}),
|
|
3216
|
+
}), ti(() => {
|
|
3217
3217
|
p.value === "checkbox" ? console.warn("The use of 'checkbox' inputType with 'input' type fields is deprecated. Use 'checkbox' type instead.") : p.value === "radio" ? console.warn("The use of 'radio' inputType with 'input' type fields is deprecated. Use 'radio' type instead.") : p.value === "file" && console.warn("The 'file' type in input field is deprecated. Use 'file' field instead.");
|
|
3218
3218
|
}), (T, O) => {
|
|
3219
3219
|
const v = D("KInput");
|
|
3220
3220
|
return c(), _("div", pm, [
|
|
3221
|
-
C(v,
|
|
3221
|
+
C(v, tt(T.$attrs, {
|
|
3222
3222
|
id: M(d)(e.schema),
|
|
3223
3223
|
autocomplete: e.schema.autocomplete,
|
|
3224
3224
|
class: e.schema.fieldClasses,
|
|
@@ -3250,7 +3250,7 @@ const xe = {
|
|
|
3250
3250
|
}
|
|
3251
3251
|
}), wo = /* @__PURE__ */ W(gm, [["__scopeId", "data-v-899b626c"]]), ym = {
|
|
3252
3252
|
name: "FieldMetric",
|
|
3253
|
-
components: { AddIcon:
|
|
3253
|
+
components: { AddIcon: ni, TrashIcon: Ht },
|
|
3254
3254
|
mixins: [$e],
|
|
3255
3255
|
emits: ["remove-item"],
|
|
3256
3256
|
data() {
|
|
@@ -3646,7 +3646,7 @@ const Eo = /* @__PURE__ */ W(ym, [["render", bm]]), _m = { class: "field-object-
|
|
|
3646
3646
|
},
|
|
3647
3647
|
emits: ["modelUpdated"],
|
|
3648
3648
|
setup(e, { expose: t, emit: n }) {
|
|
3649
|
-
const i = e, a = n, o =
|
|
3649
|
+
const i = e, a = n, o = mt(i), { updateModelValue: s, value: r, clearValidationErrors: d } = Ke.useAbstractFields({
|
|
3650
3650
|
model: o.model,
|
|
3651
3651
|
schema: i.schema,
|
|
3652
3652
|
formOptions: i.formOptions,
|
|
@@ -3719,7 +3719,7 @@ const Eo = /* @__PURE__ */ W(ym, [["render", bm]]), _m = { class: "field-object-
|
|
|
3719
3719
|
},
|
|
3720
3720
|
emits: ["modelUpdated"],
|
|
3721
3721
|
setup(e, { expose: t, emit: n }) {
|
|
3722
|
-
const i = e, a = n, o =
|
|
3722
|
+
const i = e, a = n, o = z(() => i.schema.selectOptions || {}), s = (f) => de(f) ? null : f, r = mt(i), { getFieldID: d, clearValidationErrors: u, value: h } = Ke.useAbstractFields({
|
|
3723
3723
|
model: r.model,
|
|
3724
3724
|
schema: i.schema,
|
|
3725
3725
|
formOptions: i.formOptions,
|
|
@@ -3731,7 +3731,7 @@ const Eo = /* @__PURE__ */ W(ym, [["render", bm]]), _m = { class: "field-object-
|
|
|
3731
3731
|
t({
|
|
3732
3732
|
clearValidationErrors: u
|
|
3733
3733
|
});
|
|
3734
|
-
const p =
|
|
3734
|
+
const p = z(() => {
|
|
3735
3735
|
const f = i.schema.values;
|
|
3736
3736
|
return b(typeof f == "function" ? f.apply(this, [i.model, i.schema]) : f);
|
|
3737
3737
|
}), b = (f) => {
|
|
@@ -3845,7 +3845,7 @@ const Eo = /* @__PURE__ */ W(ym, [["render", bm]]), _m = { class: "field-object-
|
|
|
3845
3845
|
handleInput(e, t) {
|
|
3846
3846
|
var i, a;
|
|
3847
3847
|
let n = e;
|
|
3848
|
-
((a = (i = this.schema) == null ? void 0 : i.inputAttributes) == null ? void 0 : a.type) === "number" &&
|
|
3848
|
+
((a = (i = this.schema) == null ? void 0 : i.inputAttributes) == null ? void 0 : a.type) === "number" && ui(parseFloat(e)) && (n = parseFloat(e)), this.value = this.value.map((o, s) => s === t ? n : o);
|
|
3849
3849
|
}
|
|
3850
3850
|
}
|
|
3851
3851
|
}, Gm = ["id"], Wm = { key: 1 }, Zm = ["onUpdate:modelValue", "aria-labelledby", "type"], Xm = ["onUpdate:modelValue", "aria-labelledby"];
|
|
@@ -3900,7 +3900,7 @@ function Jm(e, t, n, i, a, o) {
|
|
|
3900
3900
|
default: E(() => {
|
|
3901
3901
|
var p;
|
|
3902
3902
|
return [
|
|
3903
|
-
e.schema.inputAttributes && e.schema.inputAttributes.type === "textarea" ? (c(), U(s,
|
|
3903
|
+
e.schema.inputAttributes && e.schema.inputAttributes.type === "textarea" ? (c(), U(s, tt({
|
|
3904
3904
|
key: 0,
|
|
3905
3905
|
ref_for: !0
|
|
3906
3906
|
}, e.schema.inputAttributes, {
|
|
@@ -3919,7 +3919,7 @@ function Jm(e, t, n, i, a, o) {
|
|
|
3919
3919
|
required: e.schema.required,
|
|
3920
3920
|
resizable: "",
|
|
3921
3921
|
rows: e.schema.rows || 3
|
|
3922
|
-
}), null, 16, ["id", "modelValue", "onUpdate:modelValue", "aria-labelledby", "character-limit", "class", "maxlength", "minlength", "name", "placeholder", "readonly", "required", "rows"])) : !e.schema.inputAttributes || !e.schema.inputAttributes.type || e.schema.inputAttributes.type === "text" || e.schema.inputAttributes.type === "number" ? (c(), U(r,
|
|
3922
|
+
}), null, 16, ["id", "modelValue", "onUpdate:modelValue", "aria-labelledby", "character-limit", "class", "maxlength", "minlength", "name", "placeholder", "readonly", "required", "rows"])) : !e.schema.inputAttributes || !e.schema.inputAttributes.type || e.schema.inputAttributes.type === "text" || e.schema.inputAttributes.type === "number" ? (c(), U(r, tt({
|
|
3923
3923
|
key: 1,
|
|
3924
3924
|
"aria-labelledby": e.getLabelId(e.schema)
|
|
3925
3925
|
}, { ref_for: !0 }, e.schema.inputAttributes, {
|
|
@@ -3928,7 +3928,7 @@ function Jm(e, t, n, i, a, o) {
|
|
|
3928
3928
|
onInput: (b) => {
|
|
3929
3929
|
o.handleInput(b, h);
|
|
3930
3930
|
}
|
|
3931
|
-
}), null, 16, ["aria-labelledby", "model-value", "type", "onInput"])) : we((c(), _("input",
|
|
3931
|
+
}), null, 16, ["aria-labelledby", "model-value", "type", "onInput"])) : we((c(), _("input", tt({
|
|
3932
3932
|
key: 2,
|
|
3933
3933
|
"onUpdate:modelValue": (b) => e.value[h] = b,
|
|
3934
3934
|
"aria-labelledby": e.getLabelId(e.schema)
|
|
@@ -3941,7 +3941,7 @@ function Jm(e, t, n, i, a, o) {
|
|
|
3941
3941
|
}),
|
|
3942
3942
|
_: 2
|
|
3943
3943
|
}, 1064, ["data-testid", "model", "schema", "onRemoveItem"])) : (c(), _(Y, { key: 3 }, [
|
|
3944
|
-
we(m("input",
|
|
3944
|
+
we(m("input", tt({ ref_for: !0 }, e.schema.inputAttributes, {
|
|
3945
3945
|
"onUpdate:modelValue": (p) => e.value[h] = p,
|
|
3946
3946
|
"aria-labelledby": e.getLabelId(e.schema),
|
|
3947
3947
|
type: "text"
|
|
@@ -4009,7 +4009,7 @@ const Qm = /* @__PURE__ */ W(Ym, [["render", Jm], ["__scopeId", "data-v-d6740b2b
|
|
|
4009
4009
|
},
|
|
4010
4010
|
emits: ["modelUpdated"],
|
|
4011
4011
|
setup(e, { expose: t, emit: n }) {
|
|
4012
|
-
const i = e, a = n, o =
|
|
4012
|
+
const i = e, a = n, o = mt(i), { getFieldID: s, value: r, clearValidationErrors: d } = Ke.useAbstractFields({
|
|
4013
4013
|
model: o.model,
|
|
4014
4014
|
schema: i.schema,
|
|
4015
4015
|
formOptions: i.formOptions,
|
|
@@ -4022,7 +4022,7 @@ const Qm = /* @__PURE__ */ W(Ym, [["render", Jm], ["__scopeId", "data-v-d6740b2b
|
|
|
4022
4022
|
}), (u, h) => {
|
|
4023
4023
|
const p = D("KCheckbox");
|
|
4024
4024
|
return c(), _("div", ef, [
|
|
4025
|
-
C(p,
|
|
4025
|
+
C(p, tt(u.$attrs, {
|
|
4026
4026
|
id: M(s)(e.schema),
|
|
4027
4027
|
modelValue: M(r),
|
|
4028
4028
|
"onUpdate:modelValue": h[0] || (h[0] = (b) => Mt(r) ? r.value = b : null),
|
|
@@ -4307,7 +4307,7 @@ const Tf = /* @__PURE__ */ W(hf, [["render", _f], ["__scopeId", "data-v-9a9650ac
|
|
|
4307
4307
|
}
|
|
4308
4308
|
},
|
|
4309
4309
|
setup(e) {
|
|
4310
|
-
const t = e, n =
|
|
4310
|
+
const t = e, n = mt(t), { getFieldID: i, value: a } = Ke.useAbstractFields({
|
|
4311
4311
|
model: n.model,
|
|
4312
4312
|
schema: t.schema,
|
|
4313
4313
|
formOptions: t.formOptions
|
|
@@ -4368,7 +4368,7 @@ const Tf = /* @__PURE__ */ W(hf, [["render", _f], ["__scopeId", "data-v-9a9650ac
|
|
|
4368
4368
|
},
|
|
4369
4369
|
emits: ["modelUpdated"],
|
|
4370
4370
|
setup(e, { expose: t, emit: n }) {
|
|
4371
|
-
const i = e, a = n, o = qo(i, "model"), { getLabelId: s, getFieldID: r, clearValidationErrors: d, value: u } =
|
|
4371
|
+
const i = e, a = n, o = qo(i, "model"), { getLabelId: s, getFieldID: r, clearValidationErrors: d, value: u } = Ke.useAbstractFields({
|
|
4372
4372
|
model: o,
|
|
4373
4373
|
schema: i.schema,
|
|
4374
4374
|
formOptions: i.formOptions,
|
|
@@ -4379,7 +4379,7 @@ const Tf = /* @__PURE__ */ W(hf, [["render", _f], ["__scopeId", "data-v-9a9650ac
|
|
|
4379
4379
|
t({
|
|
4380
4380
|
clearValidationErrors: d
|
|
4381
4381
|
});
|
|
4382
|
-
const h =
|
|
4382
|
+
const h = z(() => {
|
|
4383
4383
|
var p, b;
|
|
4384
4384
|
return i.schema.values ? i.schema.values : (b = (p = i.schema.elements) == null ? void 0 : p.one_of) != null && b.length ? i.schema.elements.one_of.map((k) => ({ label: String(k), value: String(k) })) : [];
|
|
4385
4385
|
});
|
|
@@ -4547,7 +4547,7 @@ const Tf = /* @__PURE__ */ W(hf, [["render", _f], ["__scopeId", "data-v-9a9650ac
|
|
|
4547
4547
|
},
|
|
4548
4548
|
emits: ["modelUpdated"],
|
|
4549
4549
|
setup(e, { expose: t, emit: n }) {
|
|
4550
|
-
const i = e, a = n, { t: o } = ke("en-us", Re), s = (b) => b != null && i.schema.valueOn ? b === i.schema.valueOn : b, r = (b) => b != null && i.schema.valueOn ? b ? i.schema.valueOn : i.schema.valueOff : b, d =
|
|
4550
|
+
const i = e, a = n, { t: o } = ke("en-us", Re), s = (b) => b != null && i.schema.valueOn ? b === i.schema.valueOn : b, r = (b) => b != null && i.schema.valueOn ? b ? i.schema.valueOn : i.schema.valueOff : b, d = mt(i), { getFieldID: u, value: h, clearValidationErrors: p } = Ke.useAbstractFields({
|
|
4551
4551
|
model: d.model,
|
|
4552
4552
|
schema: i.schema,
|
|
4553
4553
|
formOptions: i.formOptions,
|
|
@@ -4617,7 +4617,7 @@ const Tf = /* @__PURE__ */ W(hf, [["render", _f], ["__scopeId", "data-v-9a9650ac
|
|
|
4617
4617
|
},
|
|
4618
4618
|
emits: ["modelUpdated"],
|
|
4619
4619
|
setup(e, { expose: t, emit: n }) {
|
|
4620
|
-
const i = e, a = n, o =
|
|
4620
|
+
const i = e, a = n, o = mt(i), s = on(Le, void 0), { updateModelValue: r, getFieldID: d, clearValidationErrors: u, value: h } = Ke.useAbstractFields({
|
|
4621
4621
|
model: o.model,
|
|
4622
4622
|
schema: i.schema,
|
|
4623
4623
|
formOptions: i.formOptions,
|
|
@@ -4634,7 +4634,7 @@ const Tf = /* @__PURE__ */ W(hf, [["render", _f], ["__scopeId", "data-v-9a9650ac
|
|
|
4634
4634
|
return (b, k) => {
|
|
4635
4635
|
const x = D("KTextArea");
|
|
4636
4636
|
return c(), _("div", Df, [
|
|
4637
|
-
C(x,
|
|
4637
|
+
C(x, tt(b.$attrs, {
|
|
4638
4638
|
id: M(d)(e.schema),
|
|
4639
4639
|
modelValue: M(h),
|
|
4640
4640
|
"onUpdate:modelValue": k[0] || (k[0] = (f) => Mt(h) ? h.value = f : null),
|
|
@@ -4760,7 +4760,7 @@ const Tf = /* @__PURE__ */ W(hf, [["render", _f], ["__scopeId", "data-v-9a9650ac
|
|
|
4760
4760
|
},
|
|
4761
4761
|
getFieldID(e) {
|
|
4762
4762
|
const t = G(this.options, "fieldIdPrefix", "");
|
|
4763
|
-
return
|
|
4763
|
+
return di(e, t);
|
|
4764
4764
|
},
|
|
4765
4765
|
getTooltipId(e) {
|
|
4766
4766
|
return `${this.getFieldID(e)}-tooltip`;
|
|
@@ -4867,7 +4867,7 @@ function Zf(e, t, n, i, a, o) {
|
|
|
4867
4867
|
} : void 0
|
|
4868
4868
|
]), 1032, ["aria-describedby", "class", "for", "info", "tooltip-attributes"])) : K("", !0),
|
|
4869
4869
|
m("div", zf, [
|
|
4870
|
-
(c(), U(me(o.getFieldComponent(n.field)),
|
|
4870
|
+
(c(), U(me(o.getFieldComponent(n.field)), tt(e.$attrs, {
|
|
4871
4871
|
ref: "child",
|
|
4872
4872
|
disabled: e.fieldDisabled(n.field) || null,
|
|
4873
4873
|
"form-options": n.options,
|
|
@@ -4938,7 +4938,7 @@ const Xf = (e) => {
|
|
|
4938
4938
|
formatter: n,
|
|
4939
4939
|
order: 3
|
|
4940
4940
|
}
|
|
4941
|
-
}, a = e, o = (p) => p != null, s = (p, b) => o(b) && ["password", "sentinel_password"].includes(p) ? "password" : "text", { convertKeyToTitle: r } = Zo(), d =
|
|
4941
|
+
}, a = e, o = (p) => p != null, s = (p, b) => o(b) && ["password", "sentinel_password"].includes(p) ? "password" : "text", { convertKeyToTitle: r } = Zo(), d = z(() => Object.entries(a.configFields).map(([p, b]) => {
|
|
4942
4942
|
var k, x, f, A;
|
|
4943
4943
|
return {
|
|
4944
4944
|
key: p,
|
|
@@ -4948,7 +4948,7 @@ const Xf = (e) => {
|
|
|
4948
4948
|
order: ((A = i[p]) == null ? void 0 : A.order) ?? 100
|
|
4949
4949
|
// attrs: value.attrs,
|
|
4950
4950
|
};
|
|
4951
|
-
}).sort((p, b) => p.order - b.order).filter((p) => p.type !== "hidden")), u =
|
|
4951
|
+
}).sort((p, b) => p.order - b.order).filter((p) => p.type !== "hidden")), u = Ke.useRedisNonStandardFields(a.configFields, a.pluginRedisFields), h = z(() => d.value.concat(u));
|
|
4952
4952
|
return (p, b) => {
|
|
4953
4953
|
const k = D("KCopy");
|
|
4954
4954
|
return c(), _("div", Qf, [
|
|
@@ -5043,10 +5043,10 @@ const Xf = (e) => {
|
|
|
5043
5043
|
} = Jo(r, i[r.app].getAll, ph, {
|
|
5044
5044
|
fetchedItemsKey: "data",
|
|
5045
5045
|
searchKeys: ["id", "name"]
|
|
5046
|
-
}), k =
|
|
5046
|
+
}), k = z(() => h.value ? s(h.value) : ""), x = (N) => {
|
|
5047
5047
|
let T = `${r.apiBaseUrl}${i[r.app].getOne}`;
|
|
5048
5048
|
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;
|
|
5049
|
-
}, f =
|
|
5049
|
+
}, f = z(() => {
|
|
5050
5050
|
const N = (b.value || []).map((T) => ({ label: T.id, name: T.name, value: T.id, type: T.type, tag: Xf(T) })).filter((T) => T.type === "redis-ce" || T.type === "redis-ee");
|
|
5051
5051
|
return a.redisType !== "all" ? N.filter((T) => T.type === a.redisType) : N;
|
|
5052
5052
|
}), { axiosInstance: A } = Qo(r == null ? void 0 : r.axiosRequestConfig), I = async (N) => {
|
|
@@ -5065,7 +5065,7 @@ const Xf = (e) => {
|
|
|
5065
5065
|
};
|
|
5066
5066
|
return mn(() => n == null ? void 0 : n.value, async (N) => {
|
|
5067
5067
|
N && await p();
|
|
5068
|
-
}),
|
|
5068
|
+
}), ti(() => {
|
|
5069
5069
|
p(), a.defaultRedisConfigItem && I(a.defaultRedisConfigItem);
|
|
5070
5070
|
}), (N, T) => {
|
|
5071
5071
|
const O = D("KLabel"), v = D("KBadge"), y = D("KSelect");
|
|
@@ -5125,7 +5125,7 @@ const Xf = (e) => {
|
|
|
5125
5125
|
"data-testid": "new-redis-config-area",
|
|
5126
5126
|
onClick: T[0] || (T[0] = (g) => N.$emit("showNewPartialModal"))
|
|
5127
5127
|
}, [
|
|
5128
|
-
C(M(
|
|
5128
|
+
C(M(ni), { size: M(jc) }, null, 8, ["size"]),
|
|
5129
5129
|
m("span", null, L(M(t)("redis.shared_configuration.create_new_configuration", { type: M(Ea)(e.redisType) })), 1)
|
|
5130
5130
|
])
|
|
5131
5131
|
]),
|
|
@@ -5198,7 +5198,7 @@ const Xf = (e) => {
|
|
|
5198
5198
|
},
|
|
5199
5199
|
emits: ["modelUpdated", "partialToggled", "showNewPartialModal", "refreshModel", "validated"],
|
|
5200
5200
|
setup(e, { emit: t }) {
|
|
5201
|
-
const n = e, i = t, { t: a } = ke("en-us", Re), o =
|
|
5201
|
+
const n = e, i = t, { t: a } = ke("en-us", Re), o = z(() => n.field.pluginType === "custom"), s = ae(!n.isEditing), r = ae(), d = ae({}), u = ae(), h = (f) => X(f.visible) ? f.visible.call(this, n.model, f, this) : de(f.visible) ? !0 : f.visible, p = async (f) => {
|
|
5202
5202
|
i("modelUpdated", [{ id: f, path: n.redisPath }], "partials"), u.value = [{ id: f, path: n.redisPath }], r.value = f;
|
|
5203
5203
|
}, b = (f, A) => {
|
|
5204
5204
|
d.value = { ...d.value, [A]: f }, i("modelUpdated", f, A);
|
|
@@ -5209,7 +5209,7 @@ const Xf = (e) => {
|
|
|
5209
5209
|
};
|
|
5210
5210
|
return mn(() => s.value, (f) => {
|
|
5211
5211
|
f ? u.value && i("partialToggled", "redis", { partials: u.value }) : i("partialToggled", "partials", d.value);
|
|
5212
|
-
}),
|
|
5212
|
+
}), ti(() => {
|
|
5213
5213
|
var f, A, I;
|
|
5214
5214
|
if (n.model && (d.value = n.field.fields.reduce((N, T) => (Object.keys(n.model).includes(T.model) && (N[T.model] = n.model[T.model]), N), {})), (I = (A = (f = n == null ? void 0 : n.model) == null ? void 0 : f.partials) == null ? void 0 : A[0]) != null && I.id) {
|
|
5215
5215
|
const N = n.model.partials[0].id;
|
|
@@ -5767,7 +5767,7 @@ const ue = /* @__PURE__ */ W(Eh, [["render", Ih]]), $t = {
|
|
|
5767
5767
|
}, this.authFieldsSchema = {
|
|
5768
5768
|
fields: Array.from(Ia).reduce((a, o) => (t[o] && a.push(t[o]), a), [])
|
|
5769
5769
|
};
|
|
5770
|
-
const { redis: n, redisModels: i } =
|
|
5770
|
+
const { redis: n, redisModels: i } = Ke.useRedisPartial(this.formSchema);
|
|
5771
5771
|
this.advancedFieldsSchema = {
|
|
5772
5772
|
fields: this.formSchema.fields.filter(
|
|
5773
5773
|
(a) => a.model.startsWith("config") && a.model !== "config-auth_methods" && !Ma.has(a.model) && !Ia.has(a.model) && (!this.enableRedisPartial || !i.includes(a.model)) || a.model === "tags"
|
|
@@ -6009,7 +6009,7 @@ const Dh = /* @__PURE__ */ W(Ch, [["render", Ph], ["__scopeId", "data-v-741bf3cb
|
|
|
6009
6009
|
setup(e) {
|
|
6010
6010
|
var s;
|
|
6011
6011
|
zt(Le, (s = fn()) == null ? void 0 : s[It]);
|
|
6012
|
-
const { t, te: n } = ke("en-us", Re), i = e, a =
|
|
6012
|
+
const { t, te: n } = ke("en-us", Re), i = e, a = z(() => i.formModel.id && i.isEditing || !i.isEditing), o = z(() => {
|
|
6013
6013
|
const r = i.formSchema;
|
|
6014
6014
|
return r.fields.map((d) => {
|
|
6015
6015
|
const u = `post-function.${d.model}`;
|
|
@@ -6052,7 +6052,7 @@ const Dh = /* @__PURE__ */ W(Ch, [["render", Ph], ["__scopeId", "data-v-741bf3cb
|
|
|
6052
6052
|
setup(e) {
|
|
6053
6053
|
var s;
|
|
6054
6054
|
zt(Le, (s = fn()) == null ? void 0 : s[It]);
|
|
6055
|
-
const { t, te: n } = ke("en-us", Re), i = e, a =
|
|
6055
|
+
const { t, te: n } = ke("en-us", Re), i = e, a = z(() => i.formModel.id && i.isEditing || !i.isEditing), o = z(() => {
|
|
6056
6056
|
const r = i.formSchema;
|
|
6057
6057
|
return r.fields.map((d) => {
|
|
6058
6058
|
const u = `exit-transformer.${d.model}`;
|
|
@@ -6183,56 +6183,56 @@ const Dh = /* @__PURE__ */ W(Ch, [["render", Ph], ["__scopeId", "data-v-741bf3cb
|
|
|
6183
6183
|
setup(e) {
|
|
6184
6184
|
var v;
|
|
6185
6185
|
zt(Le, (v = fn()) == null ? void 0 : v[It]);
|
|
6186
|
-
const t = e, n = ae("zeroSsl"), i = ae("shm"), a =
|
|
6186
|
+
const t = e, n = ae("zeroSsl"), i = ae("shm"), a = z(() => {
|
|
6187
6187
|
var g;
|
|
6188
6188
|
const y = {};
|
|
6189
6189
|
if ((g = t.formSchema) != null && g.fields)
|
|
6190
6190
|
for (const V of t.formSchema.fields)
|
|
6191
6191
|
y[V.model] = V;
|
|
6192
6192
|
return y;
|
|
6193
|
-
}), o =
|
|
6193
|
+
}), o = z(() => {
|
|
6194
6194
|
var g;
|
|
6195
|
-
const y =
|
|
6195
|
+
const y = Ze(qh);
|
|
6196
6196
|
for (const V of y.fields) {
|
|
6197
6197
|
const Z = (g = a.value[V.model]) == null ? void 0 : g.help;
|
|
6198
6198
|
V.help === void 0 && typeof Z == "string" && (V.help = Z);
|
|
6199
6199
|
}
|
|
6200
6200
|
return y;
|
|
6201
|
-
}), s =
|
|
6201
|
+
}), s = z(() => {
|
|
6202
6202
|
var g;
|
|
6203
|
-
const y =
|
|
6203
|
+
const y = Ze(Kh);
|
|
6204
6204
|
for (const V of y.fields) {
|
|
6205
6205
|
const Z = (g = a.value[V.model]) == null ? void 0 : g.help;
|
|
6206
6206
|
V.help === void 0 && typeof Z == "string" && (V.help = Z);
|
|
6207
6207
|
}
|
|
6208
6208
|
return y;
|
|
6209
|
-
}), r =
|
|
6209
|
+
}), r = z(() => {
|
|
6210
6210
|
var g;
|
|
6211
|
-
const y =
|
|
6211
|
+
const y = Ze(Bh);
|
|
6212
6212
|
for (const V of y.fields) {
|
|
6213
6213
|
const Z = (g = a.value[V.model]) == null ? void 0 : g.help;
|
|
6214
6214
|
V.help === void 0 && typeof Z == "string" && (V.help = Z);
|
|
6215
6215
|
}
|
|
6216
6216
|
return y;
|
|
6217
|
-
}), d =
|
|
6217
|
+
}), d = z(() => ({
|
|
6218
6218
|
fields: t.formSchema.fields.filter((y) => !y.model.startsWith("config") && y.model !== "tags")
|
|
6219
|
-
})), u =
|
|
6219
|
+
})), u = z(() => ({
|
|
6220
6220
|
fields: o.value.fields.filter(
|
|
6221
6221
|
(g) => !s.value.fields.some((V) => V.model === g.model) && !r.value.fields.some((V) => V.model === g.model)
|
|
6222
6222
|
)
|
|
6223
|
-
})), h =
|
|
6223
|
+
})), h = z(() => ({
|
|
6224
6224
|
fields: t.formSchema.fields.filter((g) => g.model.startsWith("config-storage") && !g.model.startsWith("config-storage_config-consul") && !g.model.startsWith("config-storage_config-redis") && !g.model.startsWith("config-storage_config-shm") && !g.model.startsWith("config-storage_config-vault"))
|
|
6225
|
-
})), p =
|
|
6225
|
+
})), p = z(() => ({
|
|
6226
6226
|
fields: t.formSchema.fields.filter((g) => g.model.startsWith("config-storage_config-consul"))
|
|
6227
|
-
})), b =
|
|
6227
|
+
})), b = z(() => ({
|
|
6228
6228
|
fields: t.formSchema.fields.filter((g) => g.model.startsWith("config-storage_config-redis"))
|
|
6229
|
-
})), k =
|
|
6229
|
+
})), k = z(() => ({
|
|
6230
6230
|
fields: t.formSchema.fields.filter((g) => g.model.startsWith("config-storage_config-shm"))
|
|
6231
|
-
})), x =
|
|
6231
|
+
})), x = z(() => ({
|
|
6232
6232
|
fields: t.formSchema.fields.filter((g) => g.model.startsWith("config-storage_config-vault"))
|
|
6233
|
-
})), f =
|
|
6233
|
+
})), f = z(() => ({
|
|
6234
6234
|
fields: t.formSchema.fields.filter((y) => y.model.startsWith("config") && !u.value.fields.filter((g) => g.model === y.model).length && !h.value.fields.filter((g) => g.model === y.model).length || y.model === "tags")
|
|
6235
|
-
})), A =
|
|
6235
|
+
})), A = z(() => t.formModel.id && t.isEditing || !t.isEditing), I = [
|
|
6236
6236
|
{
|
|
6237
6237
|
hash: "#general",
|
|
6238
6238
|
title: "General"
|
|
@@ -6260,7 +6260,7 @@ const Dh = /* @__PURE__ */ W(Ch, [["render", Ph], ["__scopeId", "data-v-741bf3cb
|
|
|
6260
6260
|
value: "other"
|
|
6261
6261
|
}
|
|
6262
6262
|
];
|
|
6263
|
-
|
|
6263
|
+
ei(() => {
|
|
6264
6264
|
n.value === "zeroSsl" && (t.formModel["config-api_uri"] = "https://acme.zerossl.com/v2/DV90");
|
|
6265
6265
|
});
|
|
6266
6266
|
const T = (y) => {
|
|
@@ -6464,18 +6464,18 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6464
6464
|
"selectionGroup",
|
|
6465
6465
|
"enabled",
|
|
6466
6466
|
...["identifier", "limit", "window_size", "error_code", "error_message"].map((R) => `config-${R}`)
|
|
6467
|
-
]), i = (R) => R === void 0 ? !1 : n.has(R), { t: a } = ke("en-us", Re), o = e, s =
|
|
6467
|
+
]), i = (R) => R === void 0 ? !1 : n.has(R), { t: a } = ke("en-us", Re), o = e, s = z(() => {
|
|
6468
6468
|
var j, q, H;
|
|
6469
|
-
const R = (q = (j = o.formSchema) == null ? void 0 : j.fields) == null ? void 0 : q.find((
|
|
6470
|
-
return { fields: [(H = o.formSchema) == null ? void 0 : H.fields.find((
|
|
6471
|
-
}), r =
|
|
6472
|
-
var
|
|
6473
|
-
const R = ((
|
|
6469
|
+
const R = (q = (j = o.formSchema) == null ? void 0 : j.fields) == null ? void 0 : q.find((ye) => ye.type === "selectionGroup" && ye.model === "selectionGroup");
|
|
6470
|
+
return { fields: [(H = o.formSchema) == null ? void 0 : H.fields.find((ye) => ye.model === "enabled"), R].filter(Boolean) };
|
|
6471
|
+
}), r = z(() => {
|
|
6472
|
+
var ye, Be;
|
|
6473
|
+
const R = ((Be = (ye = o.formSchema) == null ? void 0 : ye.fields) == null ? void 0 : Be.filter((fe) => !i(fe.model))) ?? [], w = [], j = [], q = [];
|
|
6474
6474
|
let H = !1;
|
|
6475
6475
|
for (const fe of R) {
|
|
6476
|
-
const
|
|
6477
|
-
if (
|
|
6478
|
-
if (
|
|
6476
|
+
const ze = fe.model;
|
|
6477
|
+
if (ze !== void 0) {
|
|
6478
|
+
if (ze.startsWith("config-redis-")) {
|
|
6479
6479
|
(fe.model === "config-redis-cluster_addresses" || fe.model === "config-redis-sentinel_addresses") && (fe.inputAttributes.help = a("rla.redis.address_example")), j.push(fe);
|
|
6480
6480
|
continue;
|
|
6481
6481
|
}
|
|
@@ -6487,13 +6487,13 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6487
6487
|
redis: o.enableRedisPartial ? { fields: [{ fields: j, id: "_redis", model: "__redis_partial", redisType: o.formSchema._supported_redis_partial_type }] } : { fields: j },
|
|
6488
6488
|
afterStrategy: { fields: q }
|
|
6489
6489
|
};
|
|
6490
|
-
}), d =
|
|
6490
|
+
}), d = z(() => {
|
|
6491
6491
|
const R = o.formModel["config-window_type"];
|
|
6492
6492
|
return Object.prototype.hasOwnProperty.call(t, R) ? t[R] : [];
|
|
6493
|
-
}), u =
|
|
6493
|
+
}), u = z(() => {
|
|
6494
6494
|
var R, w;
|
|
6495
6495
|
return (w = (R = o.formSchema) == null ? void 0 : R.fields) == null ? void 0 : w.find((j) => j.model === "config-identifier");
|
|
6496
|
-
}), h =
|
|
6496
|
+
}), h = z(
|
|
6497
6497
|
() => {
|
|
6498
6498
|
var R, w, j;
|
|
6499
6499
|
return (((j = (w = (R = o.formSchema) == null ? void 0 : R.fields) == null ? void 0 : w.find((q) => q.model === "config-identifier")) == null ? void 0 : j.values) ?? []).map((q) => ({
|
|
@@ -6501,36 +6501,36 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6501
6501
|
value: q
|
|
6502
6502
|
}));
|
|
6503
6503
|
}
|
|
6504
|
-
), p = ae(), b = ae(!0), k =
|
|
6504
|
+
), p = ae(), b = ae(!0), k = z(
|
|
6505
6505
|
() => {
|
|
6506
6506
|
var R, w, j;
|
|
6507
6507
|
return o.formModel["config-window_type"] ?? ((j = (w = (R = o.formSchema) == null ? void 0 : R.fields) == null ? void 0 : w.find((q) => q.model === "config-window_type")) == null ? void 0 : j.default);
|
|
6508
6508
|
}
|
|
6509
|
-
), x =
|
|
6510
|
-
var w, j, q, H,
|
|
6509
|
+
), x = z(() => {
|
|
6510
|
+
var w, j, q, H, ye, Be;
|
|
6511
6511
|
const R = (q = (j = (w = o.formSchema) == null ? void 0 : w.fields) == null ? void 0 : j.find((fe) => fe.model === "config-window_type")) == null ? void 0 : q.default;
|
|
6512
|
-
return (((
|
|
6513
|
-
}), f =
|
|
6512
|
+
return (((Be = (ye = (H = o.formSchema) == null ? void 0 : H.fields) == null ? void 0 : ye.find((fe) => fe.model === "config-window_type")) == null ? void 0 : Be.values) ?? []).sort((fe, ze) => fe === R ? -1 : ze === R ? 1 : 0);
|
|
6513
|
+
}), f = z(() => {
|
|
6514
6514
|
var w;
|
|
6515
6515
|
const R = (w = o.formModel["config-limit"]) == null ? void 0 : w.map((j, q) => {
|
|
6516
|
-
var H,
|
|
6516
|
+
var H, ye;
|
|
6517
6517
|
return {
|
|
6518
6518
|
limit: j,
|
|
6519
|
-
windowSize: (
|
|
6519
|
+
windowSize: (ye = (H = o.formModel) == null ? void 0 : H["config-window_size"]) == null ? void 0 : ye[q]
|
|
6520
6520
|
};
|
|
6521
6521
|
});
|
|
6522
6522
|
return !Array.isArray(R) || R.length === 0 ? [{ limit: void 0, windowSize: void 0 }] : R;
|
|
6523
|
-
}), A =
|
|
6523
|
+
}), A = z(
|
|
6524
6524
|
() => {
|
|
6525
6525
|
var R, w, j, q;
|
|
6526
6526
|
return ((R = o.formModel) == null ? void 0 : R["config-identifier"]) ?? ((q = (j = (w = o.formSchema) == null ? void 0 : w.fields) == null ? void 0 : j.find((H) => H.model === "config-identifier")) == null ? void 0 : q.default);
|
|
6527
6527
|
}
|
|
6528
|
-
), I =
|
|
6528
|
+
), I = z(
|
|
6529
6529
|
() => {
|
|
6530
6530
|
var R, w, j, q;
|
|
6531
6531
|
return ((R = o.formModel) == null ? void 0 : R["config-error_code"]) ?? ((q = (j = (w = o.formSchema) == null ? void 0 : w.fields) == null ? void 0 : j.find((H) => H.model === "config-error_code")) == null ? void 0 : q.default);
|
|
6532
6532
|
}
|
|
6533
|
-
), N =
|
|
6533
|
+
), N = z(
|
|
6534
6534
|
() => {
|
|
6535
6535
|
var R, w, j, q;
|
|
6536
6536
|
return ((R = o.formModel) == null ? void 0 : R["config-error_message"]) ?? ((q = (j = (w = o.formSchema) == null ? void 0 : w.fields) == null ? void 0 : j.find((H) => H.model === "config-error_message")) == null ? void 0 : q.default);
|
|
@@ -6550,30 +6550,30 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6550
6550
|
}, v = (R, w) => {
|
|
6551
6551
|
var q;
|
|
6552
6552
|
p.value !== void 0 && (p.value = void 0);
|
|
6553
|
-
const j =
|
|
6553
|
+
const j = Ze(((q = o.formModel) == null ? void 0 : q["config-limit"]) ?? []);
|
|
6554
6554
|
j[R] = w, o.onModelUpdated(j, "config-limit");
|
|
6555
6555
|
}, y = (R, w) => {
|
|
6556
6556
|
var q;
|
|
6557
6557
|
p.value !== void 0 && (p.value = void 0);
|
|
6558
|
-
const j =
|
|
6558
|
+
const j = Ze(((q = o.formModel) == null ? void 0 : q["config-window_size"]) ?? []);
|
|
6559
6559
|
j[R] = w, o.onModelUpdated(j, "config-window_size");
|
|
6560
6560
|
}, g = (R) => {
|
|
6561
6561
|
var q, H;
|
|
6562
6562
|
p.value !== void 0 && (p.value = void 0);
|
|
6563
|
-
const w =
|
|
6563
|
+
const w = Ze(((q = o.formModel) == null ? void 0 : q["config-limit"]) ?? []), j = Ze(((H = o.formModel) == null ? void 0 : H["config-window_size"]) ?? []);
|
|
6564
6564
|
w.length === 0 && w.push(void 0), j.length === 0 && j.push(void 0), w.splice(R + 1, 0, void 0), j.splice(R + 1, 0, void 0), o.onModelUpdated(w, "config-limit"), o.onModelUpdated(j, "config-window_size");
|
|
6565
6565
|
}, V = (R) => {
|
|
6566
6566
|
var w, j;
|
|
6567
6567
|
if (f.value.length > 1) {
|
|
6568
6568
|
p.value !== void 0 && (p.value = void 0);
|
|
6569
|
-
const q =
|
|
6569
|
+
const q = Ze(((w = o.formModel) == null ? void 0 : w["config-limit"]) ?? []), H = Ze(((j = o.formModel) == null ? void 0 : j["config-window_size"]) ?? []);
|
|
6570
6570
|
q.length === 0 && q.push(void 0), H.length === 0 && H.push(void 0), q.splice(R, 1), H.splice(R, 1), o.onModelUpdated(q, "config-limit"), o.onModelUpdated(H, "config-window_size");
|
|
6571
6571
|
}
|
|
6572
6572
|
};
|
|
6573
6573
|
return mn(() => o.formModel["config-strategy"], (R) => {
|
|
6574
6574
|
R !== "redis" && o.formModel.partials && o.onModelUpdated(void 0, "partials");
|
|
6575
6575
|
}), (R, w) => {
|
|
6576
|
-
const j = D("KLabel"), q = D("KRadio"), H = D("KInput"),
|
|
6576
|
+
const j = D("KLabel"), q = D("KRadio"), H = D("KInput"), ye = D("KButton"), Be = D("KBadge"), fe = D("KTooltip"), ze = D("KCard"), Sn = D("KSelect"), Yt = D("KCollapse");
|
|
6577
6577
|
return c(), _(Y, null, [
|
|
6578
6578
|
m("div", Jh, [
|
|
6579
6579
|
C(ue, {
|
|
@@ -6582,7 +6582,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6582
6582
|
schema: s.value,
|
|
6583
6583
|
onModelUpdated: w[0] || (w[0] = ($, ne) => e.onModelUpdated($, ne))
|
|
6584
6584
|
}, null, 8, ["model", "options", "schema"]),
|
|
6585
|
-
C(
|
|
6585
|
+
C(ze, { class: "rla-form-request-limits" }, {
|
|
6586
6586
|
title: E(() => [
|
|
6587
6587
|
C(j, {
|
|
6588
6588
|
class: "rla-form-request-limits-title",
|
|
@@ -6664,7 +6664,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6664
6664
|
m("div", null, L(M(a)("rla.request_limits.seconds")), 1)
|
|
6665
6665
|
], 8, rp),
|
|
6666
6666
|
m("div", sp, [
|
|
6667
|
-
C(
|
|
6667
|
+
C(ye, {
|
|
6668
6668
|
appearance: "tertiary",
|
|
6669
6669
|
disabled: f.value.length <= 1,
|
|
6670
6670
|
onClick: () => V(ne)
|
|
@@ -6674,12 +6674,12 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6674
6674
|
]),
|
|
6675
6675
|
_: 1
|
|
6676
6676
|
}, 8, ["disabled", "onClick"]),
|
|
6677
|
-
C(
|
|
6677
|
+
C(ye, {
|
|
6678
6678
|
appearance: "tertiary",
|
|
6679
6679
|
onClick: () => g(ne)
|
|
6680
6680
|
}, {
|
|
6681
6681
|
default: E(() => [
|
|
6682
|
-
C(M(
|
|
6682
|
+
C(M(ni))
|
|
6683
6683
|
]),
|
|
6684
6684
|
_: 1
|
|
6685
6685
|
}, 8, ["onClick"])
|
|
@@ -6701,7 +6701,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6701
6701
|
m("div", null, L(M(a)("rla.request_limits.time_interval")) + ": " + L($.config.window_size), 1)
|
|
6702
6702
|
]),
|
|
6703
6703
|
default: E(() => [
|
|
6704
|
-
C(
|
|
6704
|
+
C(Be, {
|
|
6705
6705
|
appearance: p.value === `${k.value}-${ne}` ? "info" : "decorative",
|
|
6706
6706
|
class: "rla-form-request-limits-examples-badge",
|
|
6707
6707
|
onClick: () => T($, `${k.value}-${ne}`)
|
|
@@ -6844,7 +6844,7 @@ export {
|
|
|
6844
6844
|
Le as AUTOFILL_SLOT,
|
|
6845
6845
|
It as AUTOFILL_SLOT_NAME,
|
|
6846
6846
|
ll as EMPTY_VALUE_PLACEHOLDER,
|
|
6847
|
-
|
|
6847
|
+
qe as FIELD_STATES,
|
|
6848
6848
|
Ce as FORMS_API_KEY,
|
|
6849
6849
|
rl as FORMS_CONFIG,
|
|
6850
6850
|
un as PartialType,
|
|
@@ -6852,7 +6852,7 @@ export {
|
|
|
6852
6852
|
bp as REDIS_PARTIAL_INFO,
|
|
6853
6853
|
ue as VueFormGenerator,
|
|
6854
6854
|
_p as abstractField,
|
|
6855
|
-
|
|
6855
|
+
Ke as composables,
|
|
6856
6856
|
Sp as customFields,
|
|
6857
6857
|
wp as getSharedFormName,
|
|
6858
6858
|
Tp as sharedForms
|