@regulaforensics/idv-gui 3.2.276-nightly → 3.2.277-nightly
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/index.d.ts +16 -8
- package/dist/main.iife.js +4 -4
- package/dist/main.js +703 -706
- package/dist/main.umd.cjs +4 -4
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
var zs = Object.defineProperty, Os = Object.defineProperties;
|
|
2
2
|
var Es = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var et = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var vr = Object.prototype.hasOwnProperty, Lr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Cr = (e, i, t) => i in e ? zs(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t, O = (e, i) => {
|
|
6
6
|
for (var t in i || (i = {}))
|
|
7
|
-
|
|
7
|
+
vr.call(i, t) && Cr(e, t, i[t]);
|
|
8
8
|
if (et)
|
|
9
9
|
for (var t of et(i))
|
|
10
|
-
Lr.call(i, t) &&
|
|
10
|
+
Lr.call(i, t) && Cr(e, t, i[t]);
|
|
11
11
|
return e;
|
|
12
12
|
}, J = (e, i) => Os(e, Es(i));
|
|
13
13
|
var Di = (e, i) => {
|
|
14
14
|
var t = {};
|
|
15
15
|
for (var r in e)
|
|
16
|
-
|
|
16
|
+
vr.call(e, r) && i.indexOf(r) < 0 && (t[r] = e[r]);
|
|
17
17
|
if (e != null && et)
|
|
18
18
|
for (var r of et(e))
|
|
19
19
|
i.indexOf(r) < 0 && Lr.call(e, r) && (t[r] = e[r]);
|
|
@@ -59,7 +59,7 @@ function hn() {
|
|
|
59
59
|
function be(e) {
|
|
60
60
|
return e.children;
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function Ge(e, i) {
|
|
63
63
|
this.props = e, this.context = i;
|
|
64
64
|
}
|
|
65
65
|
function bi(e, i) {
|
|
@@ -85,8 +85,8 @@ function ot() {
|
|
|
85
85
|
ot.__r = 0;
|
|
86
86
|
}
|
|
87
87
|
function wn(e, i, t, r, n, o, s, M, D, j, A) {
|
|
88
|
-
var c, a, y, N, I,
|
|
89
|
-
for (D = hs(t, i, _, D, h), c = 0; c < h; c++) (y = t.__k[c]) != null && (a = y.__i == -1 ? Bi : _[y.__i] || Bi, y.__i = c,
|
|
88
|
+
var c, a, y, N, I, z, w, _ = r && r.__k || xn, h = i.length;
|
|
89
|
+
for (D = hs(t, i, _, D, h), c = 0; c < h; c++) (y = t.__k[c]) != null && (a = y.__i == -1 ? Bi : _[y.__i] || Bi, y.__i = c, z = Ut(e, y, a, n, o, s, M, D, j, A), N = y.__e, y.ref && a.ref != y.ref && (a.ref && Qt(a.ref, null, y), A.push(y.ref, y.__c || N, y)), I == null && N != null && (I = N), (w = !!(4 & y.__u)) || a.__k === y.__k ? D = pn(y, D, e, w) : typeof y.type == "function" && z !== void 0 ? D = z : N && (D = N.nextSibling), y.__u &= -7);
|
|
90
90
|
return t.__e = I, D;
|
|
91
91
|
}
|
|
92
92
|
function hs(e, i, t, r, n) {
|
|
@@ -152,15 +152,15 @@ function Qr(e) {
|
|
|
152
152
|
};
|
|
153
153
|
}
|
|
154
154
|
function Ut(e, i, t, r, n, o, s, M, D, j) {
|
|
155
|
-
var A, c, a, y, N, I,
|
|
155
|
+
var A, c, a, y, N, I, z, w, _, h, p, k, ie, F, ae, Y, H, V = i.type;
|
|
156
156
|
if (i.constructor != null) return null;
|
|
157
157
|
128 & t.__u && (D = !!(32 & t.__u), o = [M = i.__e = t.__e]), (A = X.__b) && A(i);
|
|
158
|
-
e: if (typeof
|
|
159
|
-
if (w = i.props, _ = "prototype" in
|
|
158
|
+
e: if (typeof V == "function") try {
|
|
159
|
+
if (w = i.props, _ = "prototype" in V && V.prototype.render, h = (A = V.contextType) && r[A.__c], p = A ? h ? h.props.value : A.__ : r, t.__c ? z = (c = i.__c = t.__c).__ = c.__E : (_ ? i.__c = c = new V(w, p) : (i.__c = c = new Ge(w, p), c.constructor = V, c.render = ps), h && h.sub(c), c.props = w, c.state || (c.state = {}), c.context = p, c.__n = r, a = c.__d = !0, c.__h = [], c._sb = []), _ && c.__s == null && (c.__s = c.state), _ && V.getDerivedStateFromProps != null && (c.__s == c.state && (c.__s = qe({}, c.__s)), qe(c.__s, V.getDerivedStateFromProps(w, c.__s))), y = c.props, N = c.state, c.__v = i, a) _ && V.getDerivedStateFromProps == null && c.componentWillMount != null && c.componentWillMount(), _ && c.componentDidMount != null && c.__h.push(c.componentDidMount);
|
|
160
160
|
else {
|
|
161
|
-
if (_ &&
|
|
162
|
-
for (i.__v != t.__v && (c.props = w, c.state = c.__s, c.__d = !1), i.__e = t.__e, i.__k = t.__k, i.__k.some(function(
|
|
163
|
-
|
|
161
|
+
if (_ && V.getDerivedStateFromProps == null && w !== y && c.componentWillReceiveProps != null && c.componentWillReceiveProps(w, p), !c.__e && c.shouldComponentUpdate != null && c.shouldComponentUpdate(w, c.__s, p) === !1 || i.__v == t.__v) {
|
|
162
|
+
for (i.__v != t.__v && (c.props = w, c.state = c.__s, c.__d = !1), i.__e = t.__e, i.__k = t.__k, i.__k.some(function(R) {
|
|
163
|
+
R && (R.__ = i);
|
|
164
164
|
}), k = 0; k < c._sb.length; k++) c.__h.push(c._sb[k]);
|
|
165
165
|
c._sb = [], c.__h.length && s.push(c);
|
|
166
166
|
break e;
|
|
@@ -169,23 +169,23 @@ function Ut(e, i, t, r, n, o, s, M, D, j) {
|
|
|
169
169
|
c.componentDidUpdate(y, N, I);
|
|
170
170
|
});
|
|
171
171
|
}
|
|
172
|
-
if (c.context = p, c.props = w, c.__P = e, c.__e = !1, ie = X.__r,
|
|
172
|
+
if (c.context = p, c.props = w, c.__P = e, c.__e = !1, ie = X.__r, F = 0, _) {
|
|
173
173
|
for (c.state = c.__s, c.__d = !1, ie && ie(i), A = c.render(c.props, c.state, c.context), ae = 0; ae < c._sb.length; ae++) c.__h.push(c._sb[ae]);
|
|
174
174
|
c._sb = [];
|
|
175
175
|
} else do
|
|
176
176
|
c.__d = !1, ie && ie(i), A = c.render(c.props, c.state, c.context), c.state = c.__s;
|
|
177
|
-
while (c.__d && ++
|
|
178
|
-
c.state = c.__s, c.getChildContext != null && (r = qe(qe({}, r), c.getChildContext())), _ && !a && c.getSnapshotBeforeUpdate != null && (I = c.getSnapshotBeforeUpdate(y, N)),
|
|
179
|
-
} catch (
|
|
180
|
-
if (i.__v = null, D || o != null) if (
|
|
177
|
+
while (c.__d && ++F < 25);
|
|
178
|
+
c.state = c.__s, c.getChildContext != null && (r = qe(qe({}, r), c.getChildContext())), _ && !a && c.getSnapshotBeforeUpdate != null && (I = c.getSnapshotBeforeUpdate(y, N)), Y = A, A != null && A.type === be && A.key == null && (Y = bn(A.props.children)), M = wn(e, Hi(Y) ? Y : [Y], i, t, r, n, o, s, M, D, j), c.base = i.__e, i.__u &= -161, c.__h.length && s.push(c), z && (c.__E = c.__ = null);
|
|
179
|
+
} catch (R) {
|
|
180
|
+
if (i.__v = null, D || o != null) if (R.then) {
|
|
181
181
|
for (i.__u |= D ? 160 : 128; M && M.nodeType == 8 && M.nextSibling; ) M = M.nextSibling;
|
|
182
182
|
o[o.indexOf(M)] = null, i.__e = M;
|
|
183
183
|
} else {
|
|
184
184
|
for (H = o.length; H--; ) kt(o[H]);
|
|
185
185
|
wt(i);
|
|
186
186
|
}
|
|
187
|
-
else i.__e = t.__e, i.__k = t.__k,
|
|
188
|
-
X.__e(
|
|
187
|
+
else i.__e = t.__e, i.__k = t.__k, R.then || wt(i);
|
|
188
|
+
X.__e(R, i, t);
|
|
189
189
|
}
|
|
190
190
|
else o == null && i.__v == t.__v ? (i.__k = t.__k, i.__e = t.__e) : M = i.__e = ws(t.__e, i, t, r, n, o, s, D, j);
|
|
191
191
|
return (A = X.diffed) && A(i), 128 & i.__u ? void 0 : M;
|
|
@@ -209,7 +209,7 @@ function bn(e) {
|
|
|
209
209
|
return typeof e != "object" || e == null || e.__b && e.__b > 0 ? e : Hi(e) ? e.map(bn) : qe({}, e);
|
|
210
210
|
}
|
|
211
211
|
function ws(e, i, t, r, n, o, s, M, D) {
|
|
212
|
-
var j, A, c, a, y, N, I,
|
|
212
|
+
var j, A, c, a, y, N, I, z = t.props, w = i.props, _ = i.type;
|
|
213
213
|
if (_ == "svg" ? n = "http://www.w3.org/2000/svg" : _ == "math" ? n = "http://www.w3.org/1998/Math/MathML" : n || (n = "http://www.w3.org/1999/xhtml"), o != null) {
|
|
214
214
|
for (j = 0; j < o.length; j++) if ((y = o[j]) && "setAttribute" in y == !!_ && (_ ? y.localName == _ : y.nodeType == 3)) {
|
|
215
215
|
e = y, o[j] = null;
|
|
@@ -220,20 +220,20 @@ function ws(e, i, t, r, n, o, s, M, D) {
|
|
|
220
220
|
if (_ == null) return document.createTextNode(w);
|
|
221
221
|
e = document.createElementNS(n, _, w.is && w), M && (X.__m && X.__m(i, o), M = !1), o = null;
|
|
222
222
|
}
|
|
223
|
-
if (_ == null)
|
|
223
|
+
if (_ == null) z === w || M && e.data == w || (e.data = w);
|
|
224
224
|
else {
|
|
225
|
-
if (o = o && Zi.call(e.childNodes),
|
|
226
|
-
for (j in
|
|
225
|
+
if (o = o && Zi.call(e.childNodes), z = t.props || Bi, !M && o != null) for (z = {}, j = 0; j < e.attributes.length; j++) z[(y = e.attributes[j]).name] = y.value;
|
|
226
|
+
for (j in z) if (y = z[j], j != "children") {
|
|
227
227
|
if (j == "dangerouslySetInnerHTML") c = y;
|
|
228
228
|
else if (!(j in w)) {
|
|
229
229
|
if (j == "value" && "defaultValue" in w || j == "checked" && "defaultChecked" in w) continue;
|
|
230
230
|
it(e, j, null, y, n);
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
|
-
for (j in w) y = w[j], j == "children" ? a = y : j == "dangerouslySetInnerHTML" ? A = y : j == "value" ? N = y : j == "checked" ? I = y : M && typeof y != "function" ||
|
|
233
|
+
for (j in w) y = w[j], j == "children" ? a = y : j == "dangerouslySetInnerHTML" ? A = y : j == "value" ? N = y : j == "checked" ? I = y : M && typeof y != "function" || z[j] === y || it(e, j, y, z[j], n);
|
|
234
234
|
if (A) M || c && (A.__html == c.__html || A.__html == e.innerHTML) || (e.innerHTML = A.__html), i.__k = [];
|
|
235
235
|
else if (c && (e.innerHTML = ""), wn(i.type == "template" ? e.content : e, Hi(a) ? a : [a], i, t, r, _ == "foreignObject" ? "http://www.w3.org/1999/xhtml" : n, o, s, o ? o[0] : t.__k && bi(t, 0), M, D), o != null) for (j = o.length; j--; ) kt(o[j]);
|
|
236
|
-
M || (j = "value", _ == "progress" && N == null ? e.removeAttribute("value") : N != null && (N !== e[j] || _ == "progress" && !N || _ == "option" && N !=
|
|
236
|
+
M || (j = "value", _ == "progress" && N == null ? e.removeAttribute("value") : N != null && (N !== e[j] || _ == "progress" && !N || _ == "option" && N != z[j]) && it(e, j, N, z[j], n), j = "checked", I != null && I != e[j] && it(e, j, I, z[j], n));
|
|
237
237
|
}
|
|
238
238
|
return e;
|
|
239
239
|
}
|
|
@@ -267,8 +267,8 @@ function Ai(e, i, t) {
|
|
|
267
267
|
var r, n, o, s;
|
|
268
268
|
i == document && (i = document.documentElement), X.__ && X.__(e, i), n = (r = typeof t == "function") ? null : t && t.__k || i.__k, o = [], s = [], Ut(i, e = (!r && t || i).__k = ei(be, null, [e]), n || Bi, Bi, i.namespaceURI, !r && t ? [t] : n ? null : i.firstChild ? Zi.call(i.childNodes) : null, o, !r && t ? t : n ? n.__e : i.firstChild, r, s), _n(o, e, s);
|
|
269
269
|
}
|
|
270
|
-
function
|
|
271
|
-
Ai(e, i,
|
|
270
|
+
function Cn(e, i) {
|
|
271
|
+
Ai(e, i, Cn);
|
|
272
272
|
}
|
|
273
273
|
function _s(e, i, t) {
|
|
274
274
|
var r, n, o, s, M = qe({}, e.props);
|
|
@@ -305,12 +305,12 @@ Zi = xn.slice, X = { __e: function(e, i, t, r) {
|
|
|
305
305
|
e = M;
|
|
306
306
|
}
|
|
307
307
|
throw e;
|
|
308
|
-
} }, An = 0,
|
|
308
|
+
} }, An = 0, Ge.prototype.setState = function(e, i) {
|
|
309
309
|
var t;
|
|
310
310
|
t = this.__s != null && this.__s != this.state ? this.__s : this.__s = qe({}, this.state), typeof e == "function" && (e = e(qe({}, t), this.props)), e && qe(t, e), e != null && this.__v && (i && this._sb.push(i), mt(this));
|
|
311
|
-
},
|
|
311
|
+
}, Ge.prototype.forceUpdate = function(e) {
|
|
312
312
|
this.__v && (this.__e = !0, e && this.__h.push(e), mt(this));
|
|
313
|
-
},
|
|
313
|
+
}, Ge.prototype.render = be, ji = [], Tn = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, zn = function(e, i) {
|
|
314
314
|
return e.__v.__b - i.__v.__b;
|
|
315
315
|
}, ot.__r = 0, On = /(PointerCapture)$|Capture$/i, Lt = 0, xt = Qr(!1), ht = Qr(!0), En = 0;
|
|
316
316
|
var bs = 0;
|
|
@@ -371,7 +371,7 @@ class yi {
|
|
|
371
371
|
}
|
|
372
372
|
class Ss extends HTMLElement {
|
|
373
373
|
}
|
|
374
|
-
function
|
|
374
|
+
function Cs(e, i) {
|
|
375
375
|
if (i.displayName ? console.log(`Register module: ${i.displayName}`) : console.error('Missed "displayName" when register module'), i.getSupportedTemplates && typeof i.getSupportedTemplates == "function") {
|
|
376
376
|
const t = i.getSupportedTemplates();
|
|
377
377
|
console.log(`${i == null ? void 0 : i.displayName} supported templates: ${t.join(", ")}`);
|
|
@@ -388,7 +388,7 @@ const st = {
|
|
|
388
388
|
FORM: "form",
|
|
389
389
|
DATA: "data"
|
|
390
390
|
};
|
|
391
|
-
var si, de, ft, Yr, Si = 0,
|
|
391
|
+
var si, de, ft, Yr, Si = 0, vn = [], ye = X, Pr = ye.__b, Rr = ye.__r, Fr = ye.diffed, Vr = ye.__c, Br = ye.unmount, Wr = ye.__;
|
|
392
392
|
function Ti(e, i) {
|
|
393
393
|
ye.__h && ye.__h(de, e, Si || i), Si = 0;
|
|
394
394
|
var t = de.__H || (de.__H = { __: [], __h: [] });
|
|
@@ -439,7 +439,7 @@ function li(e, i) {
|
|
|
439
439
|
var t = Ti(si++, 4);
|
|
440
440
|
!ye.__s && Bt(t.__H, i) && (t.__ = e, t.u = i, de.__h.push(t));
|
|
441
441
|
}
|
|
442
|
-
function
|
|
442
|
+
function Je(e) {
|
|
443
443
|
return Si = 5, Gi(function() {
|
|
444
444
|
return { current: e };
|
|
445
445
|
}, []);
|
|
@@ -466,14 +466,14 @@ function Rt(e, i) {
|
|
|
466
466
|
return e;
|
|
467
467
|
}, i);
|
|
468
468
|
}
|
|
469
|
-
function
|
|
469
|
+
function Ci(e) {
|
|
470
470
|
var i = de.context[e.__c], t = Ti(si++, 9);
|
|
471
471
|
return t.c = e, i ? (t.__ == null && (t.__ = !0, i.sub(de)), i.props.value) : e.__;
|
|
472
472
|
}
|
|
473
473
|
function Ft(e, i) {
|
|
474
474
|
ye.useDebugValue && ye.useDebugValue(i ? i(e) : e);
|
|
475
475
|
}
|
|
476
|
-
function
|
|
476
|
+
function vs(e) {
|
|
477
477
|
var i = Ti(si++, 10), t = pe();
|
|
478
478
|
return i.__ = e, de.componentDidCatch || (de.componentDidCatch = function(r, n) {
|
|
479
479
|
i.__ && i.__(r, n), t[1](r);
|
|
@@ -491,7 +491,7 @@ function Vt() {
|
|
|
491
491
|
return e.__;
|
|
492
492
|
}
|
|
493
493
|
function Ls() {
|
|
494
|
-
for (var e; e =
|
|
494
|
+
for (var e; e = vn.shift(); ) if (e.__P && e.__H) try {
|
|
495
495
|
e.__H.__h.forEach(nt), e.__H.__h.forEach(pt), e.__H.__h = [];
|
|
496
496
|
} catch (i) {
|
|
497
497
|
e.__H.__h = [], ye.__e(i, e.__v);
|
|
@@ -510,7 +510,7 @@ ye.__b = function(e) {
|
|
|
510
510
|
}, ye.diffed = function(e) {
|
|
511
511
|
Fr && Fr(e);
|
|
512
512
|
var i = e.__c;
|
|
513
|
-
i && i.__H && (i.__H.__h.length && (
|
|
513
|
+
i && i.__H && (i.__H.__h.length && (vn.push(i) !== 1 && Yr === ye.requestAnimationFrame || ((Yr = ye.requestAnimationFrame) || ks)(Ls)), i.__H.__.forEach(function(t) {
|
|
514
514
|
t.u && (t.__H = t.u), t.u = void 0;
|
|
515
515
|
})), ft = de = null;
|
|
516
516
|
}, ye.__c = function(e, i) {
|
|
@@ -560,17 +560,17 @@ function Ln(e, i) {
|
|
|
560
560
|
return typeof i == "function" ? i(e) : i;
|
|
561
561
|
}
|
|
562
562
|
const It = Yt(void 0), Hr = ({ perform: e, children: i, setIsProcessingCallback: t, devSettings: r }) => /* @__PURE__ */ d(It.Provider, { value: { perform: e, setIsProcessingCallback: t, devSettings: r }, children: i }), Us = () => {
|
|
563
|
-
const e =
|
|
563
|
+
const e = Ci(It);
|
|
564
564
|
if (!e)
|
|
565
565
|
throw new Error("useDevSettings must be used within a Context Provider");
|
|
566
566
|
return { devSettings: e == null ? void 0 : e.devSettings };
|
|
567
567
|
}, zi = () => {
|
|
568
|
-
const e =
|
|
568
|
+
const e = Ci(It);
|
|
569
569
|
if (!e)
|
|
570
570
|
throw new Error("usePerform must be used within a PerformProvider");
|
|
571
571
|
return { perform: e.perform };
|
|
572
572
|
}, Qs = () => {
|
|
573
|
-
const e =
|
|
573
|
+
const e = Ci(It);
|
|
574
574
|
if (!e)
|
|
575
575
|
throw new Error("useSetIsProcessingCallback must be used within a Context Provider");
|
|
576
576
|
return { setIsProcessingCallback: e.setIsProcessingCallback };
|
|
@@ -583,7 +583,7 @@ const It = Yt(void 0), Hr = ({ perform: e, children: i, setIsProcessingCallback:
|
|
|
583
583
|
justifyContent: "center",
|
|
584
584
|
alignItems: "center",
|
|
585
585
|
alignContent: "center"
|
|
586
|
-
},
|
|
586
|
+
}, We = {
|
|
587
587
|
INFO: "INFO",
|
|
588
588
|
INFO_DETAILS: "INFO_DETAILS",
|
|
589
589
|
STATUS: "STATUS",
|
|
@@ -613,7 +613,7 @@ const It = Yt(void 0), Hr = ({ perform: e, children: i, setIsProcessingCallback:
|
|
|
613
613
|
NUMBER: "NUMBER",
|
|
614
614
|
SECURE: "SECURE"
|
|
615
615
|
}, Ps = ({ dataUrl: e }) => {
|
|
616
|
-
const i =
|
|
616
|
+
const i = Je(null), t = 360 / 1e3;
|
|
617
617
|
return Fe(() => {
|
|
618
618
|
if (!i.current) return;
|
|
619
619
|
let r = !0, n = 0, o = performance.now();
|
|
@@ -700,7 +700,7 @@ const It = Yt(void 0), Hr = ({ perform: e, children: i, setIsProcessingCallback:
|
|
|
700
700
|
}, Gr = {
|
|
701
701
|
NOT_EMPTY: "notEmpty",
|
|
702
702
|
REGEX: "regex"
|
|
703
|
-
},
|
|
703
|
+
}, Rs = {
|
|
704
704
|
APP_DENIED: "app_denied",
|
|
705
705
|
SYSTEM_RESTRICTED: "system_restricted"
|
|
706
706
|
};
|
|
@@ -713,32 +713,32 @@ function Wt(e) {
|
|
|
713
713
|
typeof e[i] == "object" ? Wt(e[i]) : e[i] === "true" ? e[i] = !0 : e[i] === "false" && (e[i] = !1);
|
|
714
714
|
return e;
|
|
715
715
|
}
|
|
716
|
-
function
|
|
716
|
+
function Fs(e) {
|
|
717
717
|
return Object.entries(e).map(([i, t]) => ({
|
|
718
718
|
id: i,
|
|
719
719
|
value: typeof t == "string" ? t.trim() : t
|
|
720
720
|
})).filter((i) => !!i.value);
|
|
721
721
|
}
|
|
722
|
-
const
|
|
722
|
+
const Vs = (e) => Array.isArray(e) ? e.length === 0 : e === 0 ? !1 : !e;
|
|
723
723
|
function ee(e) {
|
|
724
724
|
return e && /^#(?:[0-9a-fA-F]{3}){1,2}$/.test(e) ? e : void 0;
|
|
725
725
|
}
|
|
726
|
-
const
|
|
726
|
+
const Bs = (e, i) => e.reduce((t, r) => {
|
|
727
727
|
var n, o, s;
|
|
728
728
|
if (r.answerType === At.text && (n = r.property) != null && n.id) {
|
|
729
729
|
const M = i.find((D) => D.name === r.property.id);
|
|
730
730
|
if (M != null && M.string)
|
|
731
|
-
return J(
|
|
731
|
+
return J(O({}, t), { [r.id]: M.string });
|
|
732
732
|
}
|
|
733
733
|
if (r.answerType === At.selector && (o = r.property) != null && o.id) {
|
|
734
734
|
const M = i.find((D) => D.name === r.property.id);
|
|
735
735
|
if (M != null && M.string)
|
|
736
|
-
return J(
|
|
736
|
+
return J(O({}, t), { [r.id]: M.string });
|
|
737
737
|
}
|
|
738
738
|
if (r.answerType === At.multiSelector && (s = r.property) != null && s.id) {
|
|
739
739
|
const M = i.find((D) => D.name === r.property.id);
|
|
740
740
|
if (M != null && M.array)
|
|
741
|
-
return J(
|
|
741
|
+
return J(O({}, t), { [r.id]: M.array });
|
|
742
742
|
}
|
|
743
743
|
return t;
|
|
744
744
|
}, {}), Qn = (e) => new Promise((i, t) => {
|
|
@@ -751,13 +751,13 @@ const Vs = (e, i) => e.reduce((t, r) => {
|
|
|
751
751
|
} else
|
|
752
752
|
t(new Error("Unexpected result type"));
|
|
753
753
|
}, r.onerror = () => t(r.error), r.readAsDataURL(e);
|
|
754
|
-
}),
|
|
754
|
+
}), Ws = () => De(null, null, function* () {
|
|
755
755
|
try {
|
|
756
756
|
return (yield navigator.mediaDevices.getUserMedia({ video: !0 })).getTracks().forEach((i) => i.stop()), "allowed";
|
|
757
757
|
} catch (e) {
|
|
758
758
|
return (e == null ? void 0 : e.name) === "NotAllowedError" ? "denied" : "error";
|
|
759
759
|
}
|
|
760
|
-
}),
|
|
760
|
+
}), Zs = () => String.fromCharCode(Math.floor(Math.random() * 26) + 97) + Number(Math.random()).toString(16).slice(2) + Date.now().toString(16).slice(4), Yn = (e) => (e == null ? void 0 : e.some((t) => t.type === "FORM")) ? st.FORM : st.DATA, _e = ({
|
|
761
761
|
imageId: e,
|
|
762
762
|
imageURL: i,
|
|
763
763
|
base64: t,
|
|
@@ -820,7 +820,7 @@ const Vs = (e, i) => e.reduce((t, r) => {
|
|
|
820
820
|
}
|
|
821
821
|
)
|
|
822
822
|
] });
|
|
823
|
-
},
|
|
823
|
+
}, Hs = ({ signature: e }) => /* @__PURE__ */ d(
|
|
824
824
|
"footer",
|
|
825
825
|
{
|
|
826
826
|
"data-ui": "gui-footer",
|
|
@@ -833,9 +833,9 @@ const Vs = (e, i) => e.reduce((t, r) => {
|
|
|
833
833
|
height: "100%",
|
|
834
834
|
width: "100%"
|
|
835
835
|
},
|
|
836
|
-
children: /* @__PURE__ */ d("a", { href: "", children: /* @__PURE__ */ d(_e,
|
|
836
|
+
children: /* @__PURE__ */ d("a", { href: "", children: /* @__PURE__ */ d(_e, O({}, e)) })
|
|
837
837
|
}
|
|
838
|
-
),
|
|
838
|
+
), Gs = {
|
|
839
839
|
display: "flex",
|
|
840
840
|
justifyContent: "center",
|
|
841
841
|
alignItems: "center",
|
|
@@ -844,7 +844,7 @@ const Vs = (e, i) => e.reduce((t, r) => {
|
|
|
844
844
|
minWidth: "36px",
|
|
845
845
|
border: "none",
|
|
846
846
|
cursor: "pointer"
|
|
847
|
-
},
|
|
847
|
+
}, Js = ({
|
|
848
848
|
dataTestId: e,
|
|
849
849
|
responseBody: i,
|
|
850
850
|
image: t,
|
|
@@ -866,7 +866,7 @@ const Vs = (e, i) => e.reduce((t, r) => {
|
|
|
866
866
|
Wt(y), A(y, st.DATA);
|
|
867
867
|
},
|
|
868
868
|
className: "hover-button",
|
|
869
|
-
style: J(
|
|
869
|
+
style: J(O(O({}, Gs), o && { borderRadius: o }), {
|
|
870
870
|
backgroundColor: (a = ee(j)) != null ? a : "transparent"
|
|
871
871
|
}),
|
|
872
872
|
onMouseEnter: () => D(!0),
|
|
@@ -882,14 +882,14 @@ const Vs = (e, i) => e.reduce((t, r) => {
|
|
|
882
882
|
width: "24px",
|
|
883
883
|
height: "24px"
|
|
884
884
|
},
|
|
885
|
-
children: /* @__PURE__ */ d(_e,
|
|
885
|
+
children: /* @__PURE__ */ d(_e, O({}, t))
|
|
886
886
|
}
|
|
887
887
|
),
|
|
888
|
-
r && /* @__PURE__ */ d("div", { style: { padding: "0 5px" }, children: /* @__PURE__ */ d(fe,
|
|
888
|
+
r && /* @__PURE__ */ d("div", { style: { padding: "0 5px" }, children: /* @__PURE__ */ d(fe, O({}, r)) })
|
|
889
889
|
]
|
|
890
890
|
}
|
|
891
891
|
);
|
|
892
|
-
},
|
|
892
|
+
}, $s = ({ closeButton: e }) => /* @__PURE__ */ d(
|
|
893
893
|
"header",
|
|
894
894
|
{
|
|
895
895
|
style: {
|
|
@@ -902,10 +902,10 @@ const Vs = (e, i) => e.reduce((t, r) => {
|
|
|
902
902
|
},
|
|
903
903
|
"data-ui": "gui-header",
|
|
904
904
|
part: "gui-header",
|
|
905
|
-
children: /* @__PURE__ */ d("div", { children: e && /* @__PURE__ */ d(
|
|
905
|
+
children: /* @__PURE__ */ d("div", { children: e && /* @__PURE__ */ d(Js, O({ dataTestId: "close-btn" }, e)) })
|
|
906
906
|
}
|
|
907
907
|
);
|
|
908
|
-
function
|
|
908
|
+
function Xs(e) {
|
|
909
909
|
var n;
|
|
910
910
|
const i = /\[([^\]]+)\]\(((https?:\/\/|www\.)?[^\s)]+\.[^\s)]+)\)/g, t = [];
|
|
911
911
|
let r = 0;
|
|
@@ -923,7 +923,7 @@ function Pn(e) {
|
|
|
923
923
|
const i = e.split(`
|
|
924
924
|
`);
|
|
925
925
|
return i.flatMap((t, r) => {
|
|
926
|
-
const n =
|
|
926
|
+
const n = Xs(t);
|
|
927
927
|
return r === i.length - 1 ? n : [...n, /* @__PURE__ */ d("br", {}, "br-" + r)];
|
|
928
928
|
});
|
|
929
929
|
}
|
|
@@ -964,7 +964,7 @@ const fe = ({
|
|
|
964
964
|
if (A && A(h), j !== "RESPONSE_BODY") return;
|
|
965
965
|
const p = JSON.parse(JSON.stringify(t));
|
|
966
966
|
Wt(p), N(p, st.DATA);
|
|
967
|
-
},
|
|
967
|
+
}, z = {
|
|
968
968
|
height: "50px",
|
|
969
969
|
width: "100%",
|
|
970
970
|
padding: "10px 16px",
|
|
@@ -994,26 +994,26 @@ const fe = ({
|
|
|
994
994
|
type: j === "FORM" ? "submit" : "button",
|
|
995
995
|
"data-test": s,
|
|
996
996
|
onClick: I,
|
|
997
|
-
style:
|
|
997
|
+
style: z,
|
|
998
998
|
onMouseEnter: () => a(!0),
|
|
999
999
|
onMouseLeave: () => a(!1),
|
|
1000
1000
|
children: [
|
|
1001
|
-
i && /* @__PURE__ */ d(_e,
|
|
1001
|
+
i && /* @__PURE__ */ d(_e, O({}, i)),
|
|
1002
1002
|
e && /* @__PURE__ */ d(
|
|
1003
1003
|
"div",
|
|
1004
1004
|
{
|
|
1005
1005
|
style: {
|
|
1006
1006
|
flexGrow: i ? 0 : 1
|
|
1007
1007
|
},
|
|
1008
|
-
children: /* @__PURE__ */ d(fe,
|
|
1008
|
+
children: /* @__PURE__ */ d(fe, O({}, e))
|
|
1009
1009
|
}
|
|
1010
1010
|
)
|
|
1011
1011
|
]
|
|
1012
1012
|
}
|
|
1013
1013
|
);
|
|
1014
|
-
},
|
|
1014
|
+
}, Ks = (t) => {
|
|
1015
1015
|
var r = t, { items: e } = r, i = Di(r, ["items"]);
|
|
1016
|
-
return /* @__PURE__ */ d("div", { part: "gui-buttons", "data-ui": "gui-buttons", style:
|
|
1016
|
+
return /* @__PURE__ */ d("div", { part: "gui-buttons", "data-ui": "gui-buttons", style: O(O({}, {
|
|
1017
1017
|
display: "flex",
|
|
1018
1018
|
flexDirection: "row",
|
|
1019
1019
|
flexWrap: "wrap",
|
|
@@ -1027,7 +1027,7 @@ const fe = ({
|
|
|
1027
1027
|
paddingTop: "20px"
|
|
1028
1028
|
}), i), children: e.map((o) => {
|
|
1029
1029
|
var s;
|
|
1030
|
-
return /* @__PURE__ */ d(lt,
|
|
1030
|
+
return /* @__PURE__ */ d(lt, O({ dataTestId: "button-" + ((s = o.title) == null ? void 0 : s.text) }, o), Zs());
|
|
1031
1031
|
}) });
|
|
1032
1032
|
}, ci = ({
|
|
1033
1033
|
children: e,
|
|
@@ -1059,7 +1059,7 @@ const fe = ({
|
|
|
1059
1059
|
part: "gui-base-container",
|
|
1060
1060
|
"data-ui": "gui-base-container",
|
|
1061
1061
|
id: "base-container",
|
|
1062
|
-
style:
|
|
1062
|
+
style: O({}, M),
|
|
1063
1063
|
children: [
|
|
1064
1064
|
i && /* @__PURE__ */ d(
|
|
1065
1065
|
"div",
|
|
@@ -1071,11 +1071,11 @@ const fe = ({
|
|
|
1071
1071
|
width: "100%",
|
|
1072
1072
|
height: o
|
|
1073
1073
|
},
|
|
1074
|
-
children: /* @__PURE__ */ d(
|
|
1074
|
+
children: /* @__PURE__ */ d($s, { closeButton: i.closeButton })
|
|
1075
1075
|
}
|
|
1076
1076
|
),
|
|
1077
1077
|
/* @__PURE__ */ d("div", { style: { height: "100%", width: "100%", flex: "1 1 100%", overflow: "hidden" }, children: e }),
|
|
1078
|
-
(n == null ? void 0 : n.length) && /* @__PURE__ */ d(
|
|
1078
|
+
(n == null ? void 0 : n.length) && /* @__PURE__ */ d(Ks, { items: n }),
|
|
1079
1079
|
t && /* @__PURE__ */ d(
|
|
1080
1080
|
"div",
|
|
1081
1081
|
{
|
|
@@ -1086,7 +1086,7 @@ const fe = ({
|
|
|
1086
1086
|
width: "100%",
|
|
1087
1087
|
height: s
|
|
1088
1088
|
},
|
|
1089
|
-
children: /* @__PURE__ */ d(
|
|
1089
|
+
children: /* @__PURE__ */ d(Hs, O({}, t))
|
|
1090
1090
|
}
|
|
1091
1091
|
)
|
|
1092
1092
|
]
|
|
@@ -1116,7 +1116,7 @@ const fe = ({
|
|
|
1116
1116
|
},
|
|
1117
1117
|
children: e && Pn(e)
|
|
1118
1118
|
}
|
|
1119
|
-
),
|
|
1119
|
+
), qs = ({
|
|
1120
1120
|
header: e,
|
|
1121
1121
|
footer: i,
|
|
1122
1122
|
image: t,
|
|
@@ -1125,7 +1125,7 @@ const fe = ({
|
|
|
1125
1125
|
buttons: o,
|
|
1126
1126
|
backgroundColor: s
|
|
1127
1127
|
}) => {
|
|
1128
|
-
const M =
|
|
1128
|
+
const M = Je(null), [D, j] = pe(!1);
|
|
1129
1129
|
return Fe(() => {
|
|
1130
1130
|
M.current && j(M.current.scrollHeight > M.current.clientHeight + 2);
|
|
1131
1131
|
}, []), /* @__PURE__ */ d(ci, { header: e, buttons: o, footer: i, backgroundColor: s, children: /* @__PURE__ */ d(
|
|
@@ -1142,7 +1142,7 @@ const fe = ({
|
|
|
1142
1142
|
flexDirection: "column"
|
|
1143
1143
|
},
|
|
1144
1144
|
children: [
|
|
1145
|
-
t && /* @__PURE__ */ d("div", { style: Ys, children: /* @__PURE__ */ d(_e,
|
|
1145
|
+
t && /* @__PURE__ */ d("div", { style: Ys, children: /* @__PURE__ */ d(_e, O({}, t)) }),
|
|
1146
1146
|
(r == null ? void 0 : r.text) && /* @__PURE__ */ d(
|
|
1147
1147
|
"div",
|
|
1148
1148
|
{
|
|
@@ -1167,21 +1167,21 @@ const fe = ({
|
|
|
1167
1167
|
alignItems: "center",
|
|
1168
1168
|
alignContent: "center"
|
|
1169
1169
|
},
|
|
1170
|
-
children: r && /* @__PURE__ */ d(fe,
|
|
1170
|
+
children: r && /* @__PURE__ */ d(fe, O({}, r))
|
|
1171
1171
|
}
|
|
1172
1172
|
)
|
|
1173
1173
|
}
|
|
1174
1174
|
),
|
|
1175
|
-
n && /* @__PURE__ */ d("div", { style: { lineHeight: "28px", fontWeight: "400", marginTop: "16px" }, children: /* @__PURE__ */ d(jt,
|
|
1175
|
+
n && /* @__PURE__ */ d("div", { style: { lineHeight: "28px", fontWeight: "400", marginTop: "16px" }, children: /* @__PURE__ */ d(jt, O({}, n)) })
|
|
1176
1176
|
]
|
|
1177
1177
|
}
|
|
1178
1178
|
) });
|
|
1179
|
-
},
|
|
1179
|
+
}, eM = {
|
|
1180
1180
|
width: "100%",
|
|
1181
1181
|
height: "auto",
|
|
1182
1182
|
marginBottom: "32px",
|
|
1183
1183
|
aspectRatio: "1.68"
|
|
1184
|
-
},
|
|
1184
|
+
}, iM = {
|
|
1185
1185
|
position: "relative",
|
|
1186
1186
|
display: "flex",
|
|
1187
1187
|
flexDirection: "column",
|
|
@@ -1192,7 +1192,7 @@ const fe = ({
|
|
|
1192
1192
|
width: "100%",
|
|
1193
1193
|
minHeight: "100%",
|
|
1194
1194
|
overflow: "auto"
|
|
1195
|
-
},
|
|
1195
|
+
}, tM = ({
|
|
1196
1196
|
title: e,
|
|
1197
1197
|
header: i,
|
|
1198
1198
|
footer: t,
|
|
@@ -1206,16 +1206,16 @@ const fe = ({
|
|
|
1206
1206
|
part: "gui-info-screen-container",
|
|
1207
1207
|
"data-ui": "gui-info-screen-container",
|
|
1208
1208
|
id: "info-screen-container",
|
|
1209
|
-
style: J(
|
|
1209
|
+
style: J(O({}, iM), {
|
|
1210
1210
|
justifyContent: r ? "flex-start" : "center"
|
|
1211
1211
|
}),
|
|
1212
1212
|
children: [
|
|
1213
|
-
r && /* @__PURE__ */ d("div", { style:
|
|
1214
|
-
e && /* @__PURE__ */ d("div", { style: { marginBottom: 20, lineHeight: "39.2px" }, children: /* @__PURE__ */ d(fe,
|
|
1215
|
-
n && /* @__PURE__ */ d("div", { style: { lineHeight: "28px", fontWeight: "400" }, children: /* @__PURE__ */ d(jt,
|
|
1213
|
+
r && /* @__PURE__ */ d("div", { style: eM, children: /* @__PURE__ */ d(_e, O({}, r)) }),
|
|
1214
|
+
e && /* @__PURE__ */ d("div", { style: { marginBottom: 20, lineHeight: "39.2px" }, children: /* @__PURE__ */ d(fe, O({}, e)) }),
|
|
1215
|
+
n && /* @__PURE__ */ d("div", { style: { lineHeight: "28px", fontWeight: "400" }, children: /* @__PURE__ */ d(jt, O({}, n)) })
|
|
1216
1216
|
]
|
|
1217
1217
|
}
|
|
1218
|
-
) }) }),
|
|
1218
|
+
) }) }), rM = ({ indicatorColor: e = "#7E57C5" }) => /* @__PURE__ */ d(kn, { type: ce.SPINNER, color: e }), Jr = ({
|
|
1219
1219
|
progressView: e,
|
|
1220
1220
|
footer: i,
|
|
1221
1221
|
backgroundColor: t
|
|
@@ -1233,9 +1233,9 @@ const fe = ({
|
|
|
1233
1233
|
height: "100%",
|
|
1234
1234
|
width: "100%"
|
|
1235
1235
|
},
|
|
1236
|
-
children: /* @__PURE__ */ d(
|
|
1236
|
+
children: /* @__PURE__ */ d(rM, { indicatorColor: ee(e == null ? void 0 : e.indicatorColor) || "#000000" })
|
|
1237
1237
|
}
|
|
1238
|
-
) }),
|
|
1238
|
+
) }), nM = ({
|
|
1239
1239
|
title: e,
|
|
1240
1240
|
description: i,
|
|
1241
1241
|
image: t,
|
|
@@ -1246,7 +1246,7 @@ const fe = ({
|
|
|
1246
1246
|
"div",
|
|
1247
1247
|
{
|
|
1248
1248
|
className: "details-item",
|
|
1249
|
-
style: J(
|
|
1249
|
+
style: J(O({}, {
|
|
1250
1250
|
display: "flex",
|
|
1251
1251
|
alignItems: "flex-start",
|
|
1252
1252
|
justifyContent: "space-between",
|
|
@@ -1265,29 +1265,29 @@ const fe = ({
|
|
|
1265
1265
|
flex: "0 1 auto"
|
|
1266
1266
|
},
|
|
1267
1267
|
children: [
|
|
1268
|
-
/* @__PURE__ */ d("div", { style: { marginBottom: 5, fontWeight: "bold", lineHeight: "21px" }, children: /* @__PURE__ */ d(fe,
|
|
1269
|
-
/* @__PURE__ */ d("div", { style: { lineHeight: "21px", fontWeight: "400" }, children: /* @__PURE__ */ d(jt,
|
|
1268
|
+
/* @__PURE__ */ d("div", { style: { marginBottom: 5, fontWeight: "bold", lineHeight: "21px" }, children: /* @__PURE__ */ d(fe, O({}, e)) }),
|
|
1269
|
+
/* @__PURE__ */ d("div", { style: { lineHeight: "21px", fontWeight: "400" }, children: /* @__PURE__ */ d(jt, O({}, i)) })
|
|
1270
1270
|
]
|
|
1271
1271
|
}
|
|
1272
1272
|
),
|
|
1273
|
-
/* @__PURE__ */ d("div", { style: { aspectRatio: "1 / 1", width: 120, height: 120, flex: "0 0 120px" }, children: /* @__PURE__ */ d(_e,
|
|
1273
|
+
/* @__PURE__ */ d("div", { style: { aspectRatio: "1 / 1", width: 120, height: 120, flex: "0 0 120px" }, children: /* @__PURE__ */ d(_e, O({}, t)) })
|
|
1274
1274
|
]
|
|
1275
1275
|
}
|
|
1276
|
-
),
|
|
1276
|
+
), oM = {
|
|
1277
1277
|
display: "flex",
|
|
1278
1278
|
flexDirection: "column",
|
|
1279
1279
|
padding: "0 16px"
|
|
1280
|
-
},
|
|
1280
|
+
}, sM = ({ items: e, backgroundColor: i, cornerRadius: t = 16 }) => /* @__PURE__ */ d(
|
|
1281
1281
|
"div",
|
|
1282
1282
|
{
|
|
1283
1283
|
className: "details",
|
|
1284
|
-
style: J(
|
|
1284
|
+
style: J(O({}, oM), {
|
|
1285
1285
|
backgroundColor: ee(i) || "white",
|
|
1286
1286
|
borderRadius: t
|
|
1287
1287
|
}),
|
|
1288
|
-
children: e.map((r, n) => /* @__PURE__ */ d(
|
|
1288
|
+
children: e.map((r, n) => /* @__PURE__ */ d(nM, O({ isLastChild: n === e.length - 1 }, r), n))
|
|
1289
1289
|
}
|
|
1290
|
-
),
|
|
1290
|
+
), MM = ({
|
|
1291
1291
|
title: e,
|
|
1292
1292
|
header: i,
|
|
1293
1293
|
footer: t,
|
|
@@ -1295,7 +1295,7 @@ const fe = ({
|
|
|
1295
1295
|
buttons: n,
|
|
1296
1296
|
backgroundColor: o
|
|
1297
1297
|
}) => {
|
|
1298
|
-
const s =
|
|
1298
|
+
const s = Je(null), [M, D] = pe(!1);
|
|
1299
1299
|
return Fe(() => {
|
|
1300
1300
|
s.current && D(s.current.scrollHeight > s.current.clientHeight);
|
|
1301
1301
|
}, []), /* @__PURE__ */ d(ci, { header: i, buttons: n, footer: t, backgroundColor: o, children: /* @__PURE__ */ d(
|
|
@@ -1311,8 +1311,8 @@ const fe = ({
|
|
|
1311
1311
|
},
|
|
1312
1312
|
ref: s,
|
|
1313
1313
|
children: [
|
|
1314
|
-
/* @__PURE__ */ d("div", { style: { marginBottom: e ? "16px" : "0", fontWeight: 400, fontSize: "28px" }, children: e && /* @__PURE__ */ d(fe,
|
|
1315
|
-
r && /* @__PURE__ */ d(
|
|
1314
|
+
/* @__PURE__ */ d("div", { style: { marginBottom: e ? "16px" : "0", fontWeight: 400, fontSize: "28px" }, children: e && /* @__PURE__ */ d(fe, O({}, e)) }),
|
|
1315
|
+
r && /* @__PURE__ */ d(sM, O({}, r))
|
|
1316
1316
|
]
|
|
1317
1317
|
}
|
|
1318
1318
|
) });
|
|
@@ -1368,20 +1368,20 @@ function Fn(e, i) {
|
|
|
1368
1368
|
}
|
|
1369
1369
|
return r.displayName = "Memo(" + (e.displayName || e.name) + ")", r.prototype.isReactComponent = !0, r.__f = !0, r.type = e, r;
|
|
1370
1370
|
}
|
|
1371
|
-
(ct.prototype = new
|
|
1371
|
+
(ct.prototype = new Ge()).isPureReactComponent = !0, ct.prototype.shouldComponentUpdate = function(e, i) {
|
|
1372
1372
|
return bt(this.props, e) || bt(this.state, i);
|
|
1373
1373
|
};
|
|
1374
1374
|
var $r = X.__b;
|
|
1375
1375
|
X.__b = function(e) {
|
|
1376
1376
|
e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), $r && $r(e);
|
|
1377
1377
|
};
|
|
1378
|
-
var
|
|
1378
|
+
var aM = typeof Symbol != "undefined" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
|
|
1379
1379
|
function Vn(e) {
|
|
1380
1380
|
function i(t) {
|
|
1381
1381
|
var r = Rn({}, t);
|
|
1382
1382
|
return delete r.ref, e(r, t.ref || null);
|
|
1383
1383
|
}
|
|
1384
|
-
return i.$$typeof =
|
|
1384
|
+
return i.$$typeof = aM, i.render = e, i.prototype.isReactComponent = i.__f = !0, i.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", i;
|
|
1385
1385
|
}
|
|
1386
1386
|
var Xr = function(e, i) {
|
|
1387
1387
|
return e == null ? null : oi(oi(e).map(i));
|
|
@@ -1391,12 +1391,12 @@ var Xr = function(e, i) {
|
|
|
1391
1391
|
var i = oi(e);
|
|
1392
1392
|
if (i.length !== 1) throw "Children.only";
|
|
1393
1393
|
return i[0];
|
|
1394
|
-
}, toArray: oi },
|
|
1394
|
+
}, toArray: oi }, uM = X.__e;
|
|
1395
1395
|
X.__e = function(e, i, t, r) {
|
|
1396
1396
|
if (e.then) {
|
|
1397
1397
|
for (var n, o = i; o = o.__; ) if ((n = o.__c) && n.__c) return i.__e == null && (i.__e = t.__e, i.__k = t.__k), n.__c(e, i);
|
|
1398
1398
|
}
|
|
1399
|
-
|
|
1399
|
+
uM(e, i, t, r);
|
|
1400
1400
|
};
|
|
1401
1401
|
var Kr = X.unmount;
|
|
1402
1402
|
function Wn(e, i, t) {
|
|
@@ -1437,7 +1437,7 @@ function _i() {
|
|
|
1437
1437
|
X.unmount = function(e) {
|
|
1438
1438
|
var i = e.__c;
|
|
1439
1439
|
i && i.__R && i.__R(), i && 32 & e.__u && (e.type = null), Kr && Kr(e);
|
|
1440
|
-
}, (Pi.prototype = new
|
|
1440
|
+
}, (Pi.prototype = new Ge()).__c = function(e, i) {
|
|
1441
1441
|
var t = i.__c, r = this;
|
|
1442
1442
|
r.o == null && (r.o = []), r.o.push(t);
|
|
1443
1443
|
var n = Hn(r.__v), o = !1, s = function() {
|
|
@@ -1475,12 +1475,12 @@ var qr = function(e, i, t) {
|
|
|
1475
1475
|
e.i = t = t[2];
|
|
1476
1476
|
}
|
|
1477
1477
|
};
|
|
1478
|
-
function
|
|
1478
|
+
function lM(e) {
|
|
1479
1479
|
return this.getChildContext = function() {
|
|
1480
1480
|
return e.context;
|
|
1481
1481
|
}, e.children;
|
|
1482
1482
|
}
|
|
1483
|
-
function
|
|
1483
|
+
function cM(e) {
|
|
1484
1484
|
var i = this, t = e.h;
|
|
1485
1485
|
if (i.componentWillUnmount = function() {
|
|
1486
1486
|
Ai(null, i.v), i.v = null, i.h = null;
|
|
@@ -1494,13 +1494,13 @@ function lM(e) {
|
|
|
1494
1494
|
this.childNodes.splice(this.childNodes.indexOf(n) >>> 1, 1), i.h.removeChild(n);
|
|
1495
1495
|
} };
|
|
1496
1496
|
}
|
|
1497
|
-
Ai(ei(
|
|
1497
|
+
Ai(ei(lM, { context: i.context }, e.__v), i.v);
|
|
1498
1498
|
}
|
|
1499
1499
|
function Jn(e, i) {
|
|
1500
|
-
var t = ei(
|
|
1500
|
+
var t = ei(cM, { __v: e, h: i });
|
|
1501
1501
|
return t.containerInfo = i, t;
|
|
1502
1502
|
}
|
|
1503
|
-
(_i.prototype = new
|
|
1503
|
+
(_i.prototype = new Ge()).__a = function(e) {
|
|
1504
1504
|
var i = this, t = Hn(i.__v), r = i.l.get(e);
|
|
1505
1505
|
return r[0]++, function(n) {
|
|
1506
1506
|
var o = function() {
|
|
@@ -1520,35 +1520,35 @@ function Jn(e, i) {
|
|
|
1520
1520
|
qr(e, t, i);
|
|
1521
1521
|
});
|
|
1522
1522
|
};
|
|
1523
|
-
var $n = typeof Symbol != "undefined" && Symbol.for && Symbol.for("react.element") || 60103,
|
|
1523
|
+
var $n = typeof Symbol != "undefined" && Symbol.for && Symbol.for("react.element") || 60103, gM = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, dM = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, NM = /[A-Z0-9]/g, DM = typeof document != "undefined", IM = function(e) {
|
|
1524
1524
|
return (typeof Symbol != "undefined" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
|
|
1525
1525
|
};
|
|
1526
1526
|
function Xn(e, i, t) {
|
|
1527
1527
|
return i.__k == null && (i.textContent = ""), Ai(e, i), typeof t == "function" && t(), e ? e.__c : null;
|
|
1528
1528
|
}
|
|
1529
1529
|
function Kn(e, i, t) {
|
|
1530
|
-
return
|
|
1530
|
+
return Cn(e, i), typeof t == "function" && t(), e ? e.__c : null;
|
|
1531
1531
|
}
|
|
1532
|
-
|
|
1533
|
-
Object.defineProperty(
|
|
1532
|
+
Ge.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
|
|
1533
|
+
Object.defineProperty(Ge.prototype, e, { configurable: !0, get: function() {
|
|
1534
1534
|
return this["UNSAFE_" + e];
|
|
1535
1535
|
}, set: function(i) {
|
|
1536
1536
|
Object.defineProperty(this, e, { configurable: !0, writable: !0, value: i });
|
|
1537
1537
|
} });
|
|
1538
1538
|
});
|
|
1539
1539
|
var en = X.event;
|
|
1540
|
-
function IM() {
|
|
1541
|
-
}
|
|
1542
1540
|
function jM() {
|
|
1543
|
-
return this.cancelBubble;
|
|
1544
1541
|
}
|
|
1545
1542
|
function yM() {
|
|
1543
|
+
return this.cancelBubble;
|
|
1544
|
+
}
|
|
1545
|
+
function fM() {
|
|
1546
1546
|
return this.defaultPrevented;
|
|
1547
1547
|
}
|
|
1548
1548
|
X.event = function(e) {
|
|
1549
|
-
return en && (e = en(e)), e.persist =
|
|
1549
|
+
return en && (e = en(e)), e.persist = jM, e.isPropagationStopped = yM, e.isDefaultPrevented = fM, e.nativeEvent = e;
|
|
1550
1550
|
};
|
|
1551
|
-
var Xt,
|
|
1551
|
+
var Xt, AM = { enumerable: !1, configurable: !0, get: function() {
|
|
1552
1552
|
return this.class;
|
|
1553
1553
|
} }, tn = X.vnode;
|
|
1554
1554
|
X.vnode = function(e) {
|
|
@@ -1556,16 +1556,16 @@ X.vnode = function(e) {
|
|
|
1556
1556
|
var t = i.props, r = i.type, n = {}, o = r.indexOf("-") === -1;
|
|
1557
1557
|
for (var s in t) {
|
|
1558
1558
|
var M = t[s];
|
|
1559
|
-
if (!(s === "value" && "defaultValue" in t && M == null ||
|
|
1559
|
+
if (!(s === "value" && "defaultValue" in t && M == null || DM && s === "children" && r === "noscript" || s === "class" || s === "className")) {
|
|
1560
1560
|
var D = s.toLowerCase();
|
|
1561
|
-
s === "defaultValue" && "value" in t && t.value == null ? s = "value" : s === "download" && M === !0 ? M = "" : D === "translate" && M === "no" ? M = !1 : D[0] === "o" && D[1] === "n" ? D === "ondoubleclick" ? s = "ondblclick" : D !== "onchange" || r !== "input" && r !== "textarea" ||
|
|
1561
|
+
s === "defaultValue" && "value" in t && t.value == null ? s = "value" : s === "download" && M === !0 ? M = "" : D === "translate" && M === "no" ? M = !1 : D[0] === "o" && D[1] === "n" ? D === "ondoubleclick" ? s = "ondblclick" : D !== "onchange" || r !== "input" && r !== "textarea" || IM(t.type) ? D === "onfocus" ? s = "onfocusin" : D === "onblur" ? s = "onfocusout" : dM.test(s) && (s = D) : D = s = "oninput" : o && gM.test(s) ? s = s.replace(NM, "-$&").toLowerCase() : M === null && (M = void 0), D === "oninput" && n[s = D] && (s = "oninputCapture"), n[s] = M;
|
|
1562
1562
|
}
|
|
1563
1563
|
}
|
|
1564
1564
|
r == "select" && n.multiple && Array.isArray(n.value) && (n.value = oi(t.children).forEach(function(j) {
|
|
1565
1565
|
j.props.selected = n.value.indexOf(j.props.value) != -1;
|
|
1566
1566
|
})), r == "select" && n.defaultValue != null && (n.value = oi(t.children).forEach(function(j) {
|
|
1567
1567
|
j.props.selected = n.multiple ? n.defaultValue.indexOf(j.props.value) != -1 : n.defaultValue == j.props.value;
|
|
1568
|
-
})), t.class && !t.className ? (n.class = t.class, Object.defineProperty(n, "className",
|
|
1568
|
+
})), t.class && !t.className ? (n.class = t.class, Object.defineProperty(n, "className", AM)) : (t.className && !t.class || t.class && t.className) && (n.class = n.className = t.className), i.props = n;
|
|
1569
1569
|
})(e), e.$$typeof = $n, tn && tn(e);
|
|
1570
1570
|
};
|
|
1571
1571
|
var rn = X.__r;
|
|
@@ -1580,7 +1580,7 @@ X.diffed = function(e) {
|
|
|
1580
1580
|
};
|
|
1581
1581
|
var qn = { ReactCurrentDispatcher: { current: { readContext: function(e) {
|
|
1582
1582
|
return Xt.__n[e.__c].props.value;
|
|
1583
|
-
}, useCallback: Rt, useContext:
|
|
1583
|
+
}, useCallback: Rt, useContext: Ci, useDebugValue: Ft, useDeferredValue: Gt, useEffect: Fe, useId: Vt, useImperativeHandle: Pt, useInsertionEffect: $t, useLayoutEffect: li, useMemo: Gi, useReducer: Dt, useRef: Je, useState: pe, useSyncExternalStore: Zt, useTransition: Jt } } }, TM = "18.3.1";
|
|
1584
1584
|
function eo(e) {
|
|
1585
1585
|
return ei.bind(null, e);
|
|
1586
1586
|
}
|
|
@@ -1606,11 +1606,11 @@ var so = function(e, i) {
|
|
|
1606
1606
|
return e(i);
|
|
1607
1607
|
}, Mo = function(e, i) {
|
|
1608
1608
|
return e(i);
|
|
1609
|
-
}, ao = be, uo = $i, re = { useState: pe, useId: Vt, useReducer: Dt, useEffect: Fe, useLayoutEffect: li, useInsertionEffect: $t, useTransition: Jt, useDeferredValue: Gt, useSyncExternalStore: Zt, startTransition: Ht, useRef:
|
|
1610
|
-
const
|
|
1609
|
+
}, ao = be, uo = $i, re = { useState: pe, useId: Vt, useReducer: Dt, useEffect: Fe, useLayoutEffect: li, useInsertionEffect: $t, useTransition: Jt, useDeferredValue: Gt, useSyncExternalStore: Zt, startTransition: Ht, useRef: Je, useImperativeHandle: Pt, useMemo: Gi, useCallback: Rt, useContext: Ci, useDebugValue: Ft, version: "18.3.1", Children: Bn, render: Xn, hydrate: Kn, unmountComponentAtNode: no, createPortal: Jn, createElement: ei, createContext: Yt, createFactory: eo, cloneElement: ro, createRef: hn, Fragment: be, isValidElement: $i, isElement: uo, isFragment: io, isMemo: to, findDOMNode: oo, Component: Ge, PureComponent: ct, memo: Fn, forwardRef: Vn, flushSync: Mo, unstable_batchedUpdates: so, StrictMode: ao, Suspense: Pi, SuspenseList: _i, lazy: Gn, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: qn };
|
|
1610
|
+
const zM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1611
1611
|
__proto__: null,
|
|
1612
1612
|
Children: Bn,
|
|
1613
|
-
Component:
|
|
1613
|
+
Component: Ge,
|
|
1614
1614
|
Fragment: be,
|
|
1615
1615
|
PureComponent: ct,
|
|
1616
1616
|
StrictMode: ao,
|
|
@@ -1639,26 +1639,26 @@ const TM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1639
1639
|
unmountComponentAtNode: no,
|
|
1640
1640
|
unstable_batchedUpdates: so,
|
|
1641
1641
|
useCallback: Rt,
|
|
1642
|
-
useContext:
|
|
1642
|
+
useContext: Ci,
|
|
1643
1643
|
useDebugValue: Ft,
|
|
1644
1644
|
useDeferredValue: Gt,
|
|
1645
1645
|
useEffect: Fe,
|
|
1646
|
-
useErrorBoundary:
|
|
1646
|
+
useErrorBoundary: vs,
|
|
1647
1647
|
useId: Vt,
|
|
1648
1648
|
useImperativeHandle: Pt,
|
|
1649
1649
|
useInsertionEffect: $t,
|
|
1650
1650
|
useLayoutEffect: li,
|
|
1651
1651
|
useMemo: Gi,
|
|
1652
1652
|
useReducer: Dt,
|
|
1653
|
-
useRef:
|
|
1653
|
+
useRef: Je,
|
|
1654
1654
|
useState: pe,
|
|
1655
1655
|
useSyncExternalStore: Zt,
|
|
1656
1656
|
useTransition: Jt,
|
|
1657
|
-
version:
|
|
1657
|
+
version: TM
|
|
1658
1658
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1659
|
-
var Xi = (e) => e.type === "checkbox", fi = (e) => e instanceof Date,
|
|
1659
|
+
var Xi = (e) => e.type === "checkbox", fi = (e) => e instanceof Date, Ce = (e) => e == null;
|
|
1660
1660
|
const lo = (e) => typeof e == "object";
|
|
1661
|
-
var xe = (e) => !
|
|
1661
|
+
var xe = (e) => !Ce(e) && !Array.isArray(e) && lo(e) && !fi(e), co = (e) => xe(e) && e.target ? Xi(e.target) ? e.target.checked : e.target.value : e, OM = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, go = (e, i) => e.has(OM(i)), EM = (e) => {
|
|
1662
1662
|
const i = e.constructor && e.constructor.prototype;
|
|
1663
1663
|
return xe(i) && i.hasOwnProperty("isPrototypeOf");
|
|
1664
1664
|
}, Kt = typeof window != "undefined" && typeof window.HTMLElement != "undefined" && typeof document != "undefined";
|
|
@@ -1668,7 +1668,7 @@ function me(e) {
|
|
|
1668
1668
|
if (e instanceof Date)
|
|
1669
1669
|
i = new Date(e);
|
|
1670
1670
|
else if (!(Kt && (e instanceof Blob || r)) && (t || xe(e)))
|
|
1671
|
-
if (i = t ? [] : Object.create(Object.getPrototypeOf(e)), !t && !
|
|
1671
|
+
if (i = t ? [] : Object.create(Object.getPrototypeOf(e)), !t && !EM(e))
|
|
1672
1672
|
i = e;
|
|
1673
1673
|
else
|
|
1674
1674
|
for (const n in e)
|
|
@@ -1677,10 +1677,10 @@ function me(e) {
|
|
|
1677
1677
|
return e;
|
|
1678
1678
|
return i;
|
|
1679
1679
|
}
|
|
1680
|
-
var yt = (e) => /^\w*$/.test(e), Te = (e) => e === void 0, qt = (e) => Array.isArray(e) ? e.filter(Boolean) : [], er = (e) => qt(e.replace(/["|']|\]/g, "").split(/\.|\[/)),
|
|
1680
|
+
var yt = (e) => /^\w*$/.test(e), Te = (e) => e === void 0, qt = (e) => Array.isArray(e) ? e.filter(Boolean) : [], er = (e) => qt(e.replace(/["|']|\]/g, "").split(/\.|\[/)), C = (e, i, t) => {
|
|
1681
1681
|
if (!i || !xe(e))
|
|
1682
1682
|
return t;
|
|
1683
|
-
const r = (yt(i) ? [i] : er(i)).reduce((n, o) =>
|
|
1683
|
+
const r = (yt(i) ? [i] : er(i)).reduce((n, o) => Ce(n) ? n : n[o], e);
|
|
1684
1684
|
return Te(r) || r === e ? Te(e[i]) ? t : e[i] : r;
|
|
1685
1685
|
}, Pe = (e) => typeof e == "boolean", Ne = (e, i, t) => {
|
|
1686
1686
|
let r = -1;
|
|
@@ -1701,7 +1701,7 @@ const gt = {
|
|
|
1701
1701
|
BLUR: "blur",
|
|
1702
1702
|
FOCUS_OUT: "focusout",
|
|
1703
1703
|
CHANGE: "change"
|
|
1704
|
-
},
|
|
1704
|
+
}, Ze = {
|
|
1705
1705
|
onBlur: "onBlur",
|
|
1706
1706
|
onChange: "onChange",
|
|
1707
1707
|
onSubmit: "onSubmit",
|
|
@@ -1726,13 +1726,13 @@ var Do = (e, i, t, r = !0) => {
|
|
|
1726
1726
|
Object.defineProperty(n, o, {
|
|
1727
1727
|
get: () => {
|
|
1728
1728
|
const s = o;
|
|
1729
|
-
return i._proxyFormState[s] !==
|
|
1729
|
+
return i._proxyFormState[s] !== Ze.all && (i._proxyFormState[s] = !r || Ze.all), t && (t[s] = !0), e[s];
|
|
1730
1730
|
}
|
|
1731
1731
|
});
|
|
1732
1732
|
return n;
|
|
1733
1733
|
};
|
|
1734
1734
|
const tr = typeof window != "undefined" ? re.useLayoutEffect : re.useEffect;
|
|
1735
|
-
function
|
|
1735
|
+
function xM(e) {
|
|
1736
1736
|
const i = ir(), { control: t = i.control, disabled: r, name: n, exact: o } = e || {}, [s, M] = re.useState(t._formState), D = re.useRef({
|
|
1737
1737
|
isDirty: !1,
|
|
1738
1738
|
isLoading: !1,
|
|
@@ -1748,13 +1748,13 @@ function EM(e) {
|
|
|
1748
1748
|
formState: D.current,
|
|
1749
1749
|
exact: o,
|
|
1750
1750
|
callback: (j) => {
|
|
1751
|
-
!r && M(
|
|
1751
|
+
!r && M(O(O({}, t._formState), j));
|
|
1752
1752
|
}
|
|
1753
1753
|
}), [n, r, o]), re.useEffect(() => {
|
|
1754
1754
|
D.current.isValid && t._setValid(!0);
|
|
1755
1755
|
}, [t]), re.useMemo(() => Do(s, t, D.current, !1), [s, t]);
|
|
1756
1756
|
}
|
|
1757
|
-
var Re = (e) => typeof e == "string", Io = (e, i, t, r, n) => Re(e) ? (r && i.watch.add(e),
|
|
1757
|
+
var Re = (e) => typeof e == "string", Io = (e, i, t, r, n) => Re(e) ? (r && i.watch.add(e), C(t, e, n)) : Array.isArray(e) ? e.map((o) => (r && i.watch.add(o), C(t, o))) : (r && (i.watchAll = !0), t), St = (e) => Ce(e) || !lo(e);
|
|
1758
1758
|
function ni(e, i, t = /* @__PURE__ */ new WeakSet()) {
|
|
1759
1759
|
if (St(e) || St(i))
|
|
1760
1760
|
return e === i;
|
|
@@ -1778,7 +1778,7 @@ function ni(e, i, t = /* @__PURE__ */ new WeakSet()) {
|
|
|
1778
1778
|
}
|
|
1779
1779
|
return !0;
|
|
1780
1780
|
}
|
|
1781
|
-
function
|
|
1781
|
+
function hM(e) {
|
|
1782
1782
|
const i = ir(), { control: t = i.control, name: r, defaultValue: n, disabled: o, exact: s, compute: M } = e || {}, D = re.useRef(n), j = re.useRef(M), A = re.useRef(void 0);
|
|
1783
1783
|
j.current = M;
|
|
1784
1784
|
const c = re.useMemo(() => t._getWatch(r, D.current), [t, r]), [a, y] = re.useState(j.current ? j.current(c) : c);
|
|
@@ -1792,48 +1792,48 @@ function xM(e) {
|
|
|
1792
1792
|
if (!o) {
|
|
1793
1793
|
const I = Io(r, t._names, N.values || t._formValues, !1, D.current);
|
|
1794
1794
|
if (j.current) {
|
|
1795
|
-
const
|
|
1796
|
-
ni(
|
|
1795
|
+
const z = j.current(I);
|
|
1796
|
+
ni(z, A.current) || (y(z), A.current = z);
|
|
1797
1797
|
} else
|
|
1798
1798
|
y(I);
|
|
1799
1799
|
}
|
|
1800
1800
|
}
|
|
1801
1801
|
}), [t, o, r, s]), re.useEffect(() => t._removeUnmounted()), a;
|
|
1802
1802
|
}
|
|
1803
|
-
function
|
|
1804
|
-
const i = ir(), { name: t, disabled: r, control: n = i.control, shouldUnregister: o, defaultValue: s } = e, M = go(n._names.array, t), D = re.useMemo(() =>
|
|
1803
|
+
function mM(e) {
|
|
1804
|
+
const i = ir(), { name: t, disabled: r, control: n = i.control, shouldUnregister: o, defaultValue: s } = e, M = go(n._names.array, t), D = re.useMemo(() => C(n._formValues, t, C(n._defaultValues, t, s)), [n, t, s]), j = hM({
|
|
1805
1805
|
control: n,
|
|
1806
1806
|
name: t,
|
|
1807
1807
|
defaultValue: D,
|
|
1808
1808
|
exact: !0
|
|
1809
|
-
}), A =
|
|
1809
|
+
}), A = xM({
|
|
1810
1810
|
control: n,
|
|
1811
1811
|
name: t,
|
|
1812
1812
|
exact: !0
|
|
1813
|
-
}), c = re.useRef(e), a = re.useRef(void 0), y = re.useRef(n.register(t,
|
|
1813
|
+
}), c = re.useRef(e), a = re.useRef(void 0), y = re.useRef(n.register(t, O(J(O({}, e.rules), {
|
|
1814
1814
|
value: j
|
|
1815
1815
|
}), Pe(e.disabled) ? { disabled: e.disabled } : {})));
|
|
1816
1816
|
c.current = e;
|
|
1817
1817
|
const N = re.useMemo(() => Object.defineProperties({}, {
|
|
1818
1818
|
invalid: {
|
|
1819
1819
|
enumerable: !0,
|
|
1820
|
-
get: () => !!
|
|
1820
|
+
get: () => !!C(A.errors, t)
|
|
1821
1821
|
},
|
|
1822
1822
|
isDirty: {
|
|
1823
1823
|
enumerable: !0,
|
|
1824
|
-
get: () => !!
|
|
1824
|
+
get: () => !!C(A.dirtyFields, t)
|
|
1825
1825
|
},
|
|
1826
1826
|
isTouched: {
|
|
1827
1827
|
enumerable: !0,
|
|
1828
|
-
get: () => !!
|
|
1828
|
+
get: () => !!C(A.touchedFields, t)
|
|
1829
1829
|
},
|
|
1830
1830
|
isValidating: {
|
|
1831
1831
|
enumerable: !0,
|
|
1832
|
-
get: () => !!
|
|
1832
|
+
get: () => !!C(A.validatingFields, t)
|
|
1833
1833
|
},
|
|
1834
1834
|
error: {
|
|
1835
1835
|
enumerable: !0,
|
|
1836
|
-
get: () =>
|
|
1836
|
+
get: () => C(A.errors, t)
|
|
1837
1837
|
}
|
|
1838
1838
|
}), [A, t]), I = re.useCallback((h) => y.current.onChange({
|
|
1839
1839
|
target: {
|
|
@@ -1841,38 +1841,38 @@ function hM(e) {
|
|
|
1841
1841
|
name: t
|
|
1842
1842
|
},
|
|
1843
1843
|
type: gt.CHANGE
|
|
1844
|
-
}), [t]),
|
|
1844
|
+
}), [t]), z = re.useCallback(() => y.current.onBlur({
|
|
1845
1845
|
target: {
|
|
1846
|
-
value:
|
|
1846
|
+
value: C(n._formValues, t),
|
|
1847
1847
|
name: t
|
|
1848
1848
|
},
|
|
1849
1849
|
type: gt.BLUR
|
|
1850
1850
|
}), [t, n._formValues]), w = re.useCallback((h) => {
|
|
1851
|
-
const p =
|
|
1851
|
+
const p = C(n._fields, t);
|
|
1852
1852
|
p && h && (p._f.ref = {
|
|
1853
1853
|
focus: () => h.focus && h.focus(),
|
|
1854
1854
|
select: () => h.select && h.select(),
|
|
1855
1855
|
setCustomValidity: (k) => h.setCustomValidity(k),
|
|
1856
1856
|
reportValidity: () => h.reportValidity()
|
|
1857
1857
|
});
|
|
1858
|
-
}, [n._fields, t]), _ = re.useMemo(() => J(
|
|
1858
|
+
}, [n._fields, t]), _ = re.useMemo(() => J(O({
|
|
1859
1859
|
name: t,
|
|
1860
1860
|
value: j
|
|
1861
1861
|
}, Pe(r) || A.disabled ? { disabled: A.disabled || r } : {}), {
|
|
1862
1862
|
onChange: I,
|
|
1863
|
-
onBlur:
|
|
1863
|
+
onBlur: z,
|
|
1864
1864
|
ref: w
|
|
1865
|
-
}), [t, r, A.disabled, I,
|
|
1865
|
+
}), [t, r, A.disabled, I, z, w, j]);
|
|
1866
1866
|
return re.useEffect(() => {
|
|
1867
1867
|
const h = n._options.shouldUnregister || o, p = a.current;
|
|
1868
|
-
p && p !== t && !M && n.unregister(p), n.register(t,
|
|
1869
|
-
const k = (ie,
|
|
1870
|
-
const ae =
|
|
1871
|
-
ae && ae._f && (ae._f.mount =
|
|
1868
|
+
p && p !== t && !M && n.unregister(p), n.register(t, O(O({}, c.current.rules), Pe(c.current.disabled) ? { disabled: c.current.disabled } : {}));
|
|
1869
|
+
const k = (ie, F) => {
|
|
1870
|
+
const ae = C(n._fields, ie);
|
|
1871
|
+
ae && ae._f && (ae._f.mount = F);
|
|
1872
1872
|
};
|
|
1873
1873
|
if (k(t, !0), h) {
|
|
1874
|
-
const ie = me(
|
|
1875
|
-
Ne(n._defaultValues, t, ie), Te(
|
|
1874
|
+
const ie = me(C(n._options.defaultValues, t, c.current.defaultValue));
|
|
1875
|
+
Ne(n._defaultValues, t, ie), Te(C(n._formValues, t)) && Ne(n._formValues, t, ie);
|
|
1876
1876
|
}
|
|
1877
1877
|
return !M && n.register(t), a.current = t, () => {
|
|
1878
1878
|
(M ? h && !n._state.action : h) ? n.unregister(t) : k(t, !1);
|
|
@@ -1888,9 +1888,9 @@ function hM(e) {
|
|
|
1888
1888
|
fieldState: N
|
|
1889
1889
|
}), [_, A, N]);
|
|
1890
1890
|
}
|
|
1891
|
-
const jo = (e) => e.render(
|
|
1892
|
-
var
|
|
1893
|
-
types: J(
|
|
1891
|
+
const jo = (e) => e.render(mM(e));
|
|
1892
|
+
var wM = (e, i, t, r, n) => i ? J(O({}, t[e]), {
|
|
1893
|
+
types: J(O({}, t[e] && t[e].types ? t[e].types : {}), {
|
|
1894
1894
|
[r]: n || !0
|
|
1895
1895
|
})
|
|
1896
1896
|
}) : {}, Ri = (e) => Array.isArray(e) ? e : [e], on = () => {
|
|
@@ -1925,47 +1925,47 @@ function yo(e, i) {
|
|
|
1925
1925
|
}
|
|
1926
1926
|
return t;
|
|
1927
1927
|
}
|
|
1928
|
-
var Ue = (e) => xe(e) && !Object.keys(e).length, rr = (e) => e.type === "file",
|
|
1928
|
+
var Ue = (e) => xe(e) && !Object.keys(e).length, rr = (e) => e.type === "file", He = (e) => typeof e == "function", dt = (e) => {
|
|
1929
1929
|
if (!Kt)
|
|
1930
1930
|
return !1;
|
|
1931
1931
|
const i = e ? e.ownerDocument : 0;
|
|
1932
1932
|
return e instanceof (i && i.defaultView ? i.defaultView.HTMLElement : HTMLElement);
|
|
1933
|
-
}, fo = (e) => e.type === "select-multiple", nr = (e) => e.type === "radio",
|
|
1934
|
-
function
|
|
1933
|
+
}, fo = (e) => e.type === "select-multiple", nr = (e) => e.type === "radio", pM = (e) => nr(e) || Xi(e), zt = (e) => dt(e) && e.isConnected;
|
|
1934
|
+
function _M(e, i) {
|
|
1935
1935
|
const t = i.slice(0, -1).length;
|
|
1936
1936
|
let r = 0;
|
|
1937
1937
|
for (; r < t; )
|
|
1938
1938
|
e = Te(e) ? r++ : e[i[r++]];
|
|
1939
1939
|
return e;
|
|
1940
1940
|
}
|
|
1941
|
-
function
|
|
1941
|
+
function bM(e) {
|
|
1942
1942
|
for (const i in e)
|
|
1943
1943
|
if (e.hasOwnProperty(i) && !Te(e[i]))
|
|
1944
1944
|
return !1;
|
|
1945
1945
|
return !0;
|
|
1946
1946
|
}
|
|
1947
1947
|
function Ee(e, i) {
|
|
1948
|
-
const t = Array.isArray(i) ? i : yt(i) ? [i] : er(i), r = t.length === 1 ? e :
|
|
1949
|
-
return r && delete r[o], n !== 0 && (xe(r) && Ue(r) || Array.isArray(r) &&
|
|
1948
|
+
const t = Array.isArray(i) ? i : yt(i) ? [i] : er(i), r = t.length === 1 ? e : _M(e, t), n = t.length - 1, o = t[n];
|
|
1949
|
+
return r && delete r[o], n !== 0 && (xe(r) && Ue(r) || Array.isArray(r) && bM(r)) && Ee(e, t.slice(0, -1)), e;
|
|
1950
1950
|
}
|
|
1951
|
-
var
|
|
1951
|
+
var SM = (e) => {
|
|
1952
1952
|
for (const i in e)
|
|
1953
|
-
if (
|
|
1953
|
+
if (He(e[i]))
|
|
1954
1954
|
return !0;
|
|
1955
1955
|
return !1;
|
|
1956
1956
|
};
|
|
1957
1957
|
function Ao(e) {
|
|
1958
|
-
return Array.isArray(e) || xe(e) && !
|
|
1958
|
+
return Array.isArray(e) || xe(e) && !SM(e);
|
|
1959
1959
|
}
|
|
1960
|
-
function
|
|
1960
|
+
function Ct(e, i = {}) {
|
|
1961
1961
|
for (const t in e)
|
|
1962
|
-
Ao(e[t]) ? (i[t] = Array.isArray(e[t]) ? [] : {},
|
|
1962
|
+
Ao(e[t]) ? (i[t] = Array.isArray(e[t]) ? [] : {}, Ct(e[t], i[t])) : Ce(e[t]) || (i[t] = !0);
|
|
1963
1963
|
return i;
|
|
1964
1964
|
}
|
|
1965
1965
|
function pi(e, i, t) {
|
|
1966
|
-
t || (t =
|
|
1966
|
+
t || (t = Ct(i));
|
|
1967
1967
|
for (const r in e)
|
|
1968
|
-
Ao(e[r]) ? Te(i) || St(t[r]) ? t[r] =
|
|
1968
|
+
Ao(e[r]) ? Te(i) || St(t[r]) ? t[r] = Ct(e[r], Array.isArray(e[r]) ? [] : {}) : pi(e[r], Ce(i) ? {} : i[r], t[r]) : t[r] = !ni(e[r], i[r]);
|
|
1969
1969
|
return t;
|
|
1970
1970
|
}
|
|
1971
1971
|
const sn = {
|
|
@@ -1997,10 +1997,10 @@ function un(e) {
|
|
|
1997
1997
|
const i = e.ref;
|
|
1998
1998
|
return rr(i) ? i.files : nr(i) ? Oo(e.refs).value : fo(i) ? [...i.selectedOptions].map(({ value: t }) => t) : Xi(i) ? To(e.refs).value : zo(Te(i.value) ? e.ref.value : i.value, e);
|
|
1999
1999
|
}
|
|
2000
|
-
var
|
|
2000
|
+
var CM = (e, i, t, r) => {
|
|
2001
2001
|
const n = {};
|
|
2002
2002
|
for (const o of e) {
|
|
2003
|
-
const s =
|
|
2003
|
+
const s = C(i, o);
|
|
2004
2004
|
s && Ne(n, o, s._f);
|
|
2005
2005
|
}
|
|
2006
2006
|
return {
|
|
@@ -2010,17 +2010,17 @@ var SM = (e, i, t, r) => {
|
|
|
2010
2010
|
shouldUseNativeValidation: r
|
|
2011
2011
|
};
|
|
2012
2012
|
}, Nt = (e) => e instanceof RegExp, ki = (e) => Te(e) ? e : Nt(e) ? e.source : xe(e) ? Nt(e.value) ? e.value.source : e.value : e, ln = (e) => ({
|
|
2013
|
-
isOnSubmit: !e || e ===
|
|
2014
|
-
isOnBlur: e ===
|
|
2015
|
-
isOnChange: e ===
|
|
2016
|
-
isOnAll: e ===
|
|
2017
|
-
isOnTouch: e ===
|
|
2013
|
+
isOnSubmit: !e || e === Ze.onSubmit,
|
|
2014
|
+
isOnBlur: e === Ze.onBlur,
|
|
2015
|
+
isOnChange: e === Ze.onChange,
|
|
2016
|
+
isOnAll: e === Ze.all,
|
|
2017
|
+
isOnTouch: e === Ze.onTouched
|
|
2018
2018
|
});
|
|
2019
2019
|
const cn = "AsyncFunction";
|
|
2020
|
-
var vM = (e) => !!e && !!e.validate && !!(
|
|
2020
|
+
var vM = (e) => !!e && !!e.validate && !!(He(e.validate) && e.validate.constructor.name === cn || xe(e.validate) && Object.values(e.validate).find((i) => i.constructor.name === cn)), LM = (e) => e.mount && (e.required || e.min || e.max || e.maxLength || e.minLength || e.pattern || e.validate), gn = (e, i, t) => !t && (i.watchAll || i.watch.has(e) || [...i.watch].some((r) => e.startsWith(r) && /^\.\w+/.test(e.slice(r.length))));
|
|
2021
2021
|
const Fi = (e, i, t, r) => {
|
|
2022
2022
|
for (const o of t || Object.keys(e)) {
|
|
2023
|
-
const s =
|
|
2023
|
+
const s = C(e, o);
|
|
2024
2024
|
if (s) {
|
|
2025
2025
|
const n = s, { _f: M } = n, D = Di(n, ["_f"]);
|
|
2026
2026
|
if (M) {
|
|
@@ -2036,7 +2036,7 @@ const Fi = (e, i, t, r) => {
|
|
|
2036
2036
|
}
|
|
2037
2037
|
};
|
|
2038
2038
|
function dn(e, i, t) {
|
|
2039
|
-
const r =
|
|
2039
|
+
const r = C(e, t);
|
|
2040
2040
|
if (r || yt(t))
|
|
2041
2041
|
return {
|
|
2042
2042
|
error: r,
|
|
@@ -2044,7 +2044,7 @@ function dn(e, i, t) {
|
|
|
2044
2044
|
};
|
|
2045
2045
|
const n = t.split(".");
|
|
2046
2046
|
for (; n.length; ) {
|
|
2047
|
-
const o = n.join("."), s =
|
|
2047
|
+
const o = n.join("."), s = C(i, o), M = C(e, o);
|
|
2048
2048
|
if (s && !Array.isArray(s) && t !== o)
|
|
2049
2049
|
return { name: t };
|
|
2050
2050
|
if (M && M.type)
|
|
@@ -2063,12 +2063,12 @@ function dn(e, i, t) {
|
|
|
2063
2063
|
name: t
|
|
2064
2064
|
};
|
|
2065
2065
|
}
|
|
2066
|
-
var
|
|
2066
|
+
var kM = (e, i, t, r) => {
|
|
2067
2067
|
t(e);
|
|
2068
2068
|
const s = e, { name: n } = s, o = Di(s, ["name"]);
|
|
2069
|
-
return Ue(o) || Object.keys(o).length >= Object.keys(i).length || Object.keys(o).find((M) => i[M] === (!r ||
|
|
2070
|
-
},
|
|
2071
|
-
const r = Ri(
|
|
2069
|
+
return Ue(o) || Object.keys(o).length >= Object.keys(i).length || Object.keys(o).find((M) => i[M] === (!r || Ze.all));
|
|
2070
|
+
}, UM = (e, i, t) => !e || !i || e === i || Ri(e).some((r) => r && (t ? r === i : r.startsWith(i) || i.startsWith(r))), QM = (e, i, t, r, n) => n.isOnAll ? !1 : !t && n.isOnTouch ? !(i || e) : (t ? r.isOnBlur : n.isOnBlur) ? !e : (t ? r.isOnChange : n.isOnChange) ? e : !0, YM = (e, i) => !qt(C(e, i)).length && Ee(e, i), PM = (e, i, t) => {
|
|
2071
|
+
const r = Ri(C(e, t));
|
|
2072
2072
|
return Ne(r, "root", i[t]), Ne(e, t, r), e;
|
|
2073
2073
|
};
|
|
2074
2074
|
function Nn(e, i, t = "validate") {
|
|
@@ -2083,49 +2083,49 @@ var wi = (e) => xe(e) && !Nt(e) ? e : {
|
|
|
2083
2083
|
value: e,
|
|
2084
2084
|
message: ""
|
|
2085
2085
|
}, Dn = (e, i, t, r, n, o) => De(null, null, function* () {
|
|
2086
|
-
const { ref: s, refs: M, required: D, maxLength: j, minLength: A, min: c, max: a, pattern: y, validate: N, name: I, valueAsNumber:
|
|
2086
|
+
const { ref: s, refs: M, required: D, maxLength: j, minLength: A, min: c, max: a, pattern: y, validate: N, name: I, valueAsNumber: z, mount: w } = e._f, _ = C(t, I);
|
|
2087
2087
|
if (!w || i.has(I))
|
|
2088
2088
|
return {};
|
|
2089
|
-
const h = M ? M[0] : s, p = (
|
|
2090
|
-
n && h.reportValidity && (h.setCustomValidity(Pe(
|
|
2091
|
-
}, k = {}, ie = nr(s),
|
|
2092
|
-
const Ae =
|
|
2093
|
-
k[I] =
|
|
2094
|
-
type:
|
|
2089
|
+
const h = M ? M[0] : s, p = (R) => {
|
|
2090
|
+
n && h.reportValidity && (h.setCustomValidity(Pe(R) ? "" : R || ""), h.reportValidity());
|
|
2091
|
+
}, k = {}, ie = nr(s), F = Xi(s), ae = ie || F, Y = (z || rr(s)) && Te(s.value) && Te(_) || dt(s) && s.value === "" || _ === "" || Array.isArray(_) && !_.length, H = wM.bind(null, I, r, k), V = (R, $, se, Ie = ti.maxLength, je = ti.minLength) => {
|
|
2092
|
+
const Ae = R ? $ : se;
|
|
2093
|
+
k[I] = O({
|
|
2094
|
+
type: R ? Ie : je,
|
|
2095
2095
|
message: Ae,
|
|
2096
2096
|
ref: s
|
|
2097
|
-
}, H(
|
|
2097
|
+
}, H(R ? Ie : je, Ae));
|
|
2098
2098
|
};
|
|
2099
|
-
if (o ? !Array.isArray(_) || !_.length : D && (!ae && (
|
|
2100
|
-
const { value:
|
|
2101
|
-
if (
|
|
2099
|
+
if (o ? !Array.isArray(_) || !_.length : D && (!ae && (Y || Ce(_)) || Pe(_) && !_ || F && !To(M).isValid || ie && !Oo(M).isValid)) {
|
|
2100
|
+
const { value: R, message: $ } = Re(D) ? { value: !!D, message: D } : wi(D);
|
|
2101
|
+
if (R && (k[I] = O({
|
|
2102
2102
|
type: ti.required,
|
|
2103
2103
|
message: $,
|
|
2104
2104
|
ref: h
|
|
2105
2105
|
}, H(ti.required, $)), !r))
|
|
2106
2106
|
return p($), k;
|
|
2107
2107
|
}
|
|
2108
|
-
if (!
|
|
2109
|
-
let
|
|
2108
|
+
if (!Y && (!Ce(c) || !Ce(a))) {
|
|
2109
|
+
let R, $;
|
|
2110
2110
|
const se = wi(a), Ie = wi(c);
|
|
2111
|
-
if (!
|
|
2111
|
+
if (!Ce(_) && !isNaN(_)) {
|
|
2112
2112
|
const je = s.valueAsNumber || _ && +_;
|
|
2113
|
-
|
|
2113
|
+
Ce(se.value) || (R = je > se.value), Ce(Ie.value) || ($ = je < Ie.value);
|
|
2114
2114
|
} else {
|
|
2115
2115
|
const je = s.valueAsDate || new Date(_), Ae = (G) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + G), Qe = s.type == "time", le = s.type == "week";
|
|
2116
|
-
Re(se.value) && _ && (
|
|
2116
|
+
Re(se.value) && _ && (R = Qe ? Ae(_) > Ae(se.value) : le ? _ > se.value : je > new Date(se.value)), Re(Ie.value) && _ && ($ = Qe ? Ae(_) < Ae(Ie.value) : le ? _ < Ie.value : je < new Date(Ie.value));
|
|
2117
2117
|
}
|
|
2118
|
-
if ((
|
|
2118
|
+
if ((R || $) && (V(!!R, se.message, Ie.message, ti.max, ti.min), !r))
|
|
2119
2119
|
return p(k[I].message), k;
|
|
2120
2120
|
}
|
|
2121
|
-
if ((j || A) && !
|
|
2122
|
-
const
|
|
2123
|
-
if ((se || Ie) && (
|
|
2121
|
+
if ((j || A) && !Y && (Re(_) || o && Array.isArray(_))) {
|
|
2122
|
+
const R = wi(j), $ = wi(A), se = !Ce(R.value) && _.length > +R.value, Ie = !Ce($.value) && _.length < +$.value;
|
|
2123
|
+
if ((se || Ie) && (V(se, R.message, $.message), !r))
|
|
2124
2124
|
return p(k[I].message), k;
|
|
2125
2125
|
}
|
|
2126
|
-
if (y && !
|
|
2127
|
-
const { value:
|
|
2128
|
-
if (Nt(
|
|
2126
|
+
if (y && !Y && Re(_)) {
|
|
2127
|
+
const { value: R, message: $ } = wi(y);
|
|
2128
|
+
if (Nt(R) && !_.match(R) && (k[I] = O({
|
|
2129
2129
|
type: ti.pattern,
|
|
2130
2130
|
message: $,
|
|
2131
2131
|
ref: s
|
|
@@ -2133,37 +2133,37 @@ var wi = (e) => xe(e) && !Nt(e) ? e : {
|
|
|
2133
2133
|
return p($), k;
|
|
2134
2134
|
}
|
|
2135
2135
|
if (N) {
|
|
2136
|
-
if (
|
|
2137
|
-
const
|
|
2138
|
-
if ($ && (k[I] =
|
|
2136
|
+
if (He(N)) {
|
|
2137
|
+
const R = yield N(_, t), $ = Nn(R, h);
|
|
2138
|
+
if ($ && (k[I] = O(O({}, $), H(ti.validate, $.message)), !r))
|
|
2139
2139
|
return p($.message), k;
|
|
2140
2140
|
} else if (xe(N)) {
|
|
2141
|
-
let
|
|
2141
|
+
let R = {};
|
|
2142
2142
|
for (const $ in N) {
|
|
2143
|
-
if (!Ue(
|
|
2143
|
+
if (!Ue(R) && !r)
|
|
2144
2144
|
break;
|
|
2145
2145
|
const se = Nn(yield N[$](_, t), h, $);
|
|
2146
|
-
se && (
|
|
2146
|
+
se && (R = O(O({}, se), H($, se.message)), p(se.message), r && (k[I] = R));
|
|
2147
2147
|
}
|
|
2148
|
-
if (!Ue(
|
|
2148
|
+
if (!Ue(R) && (k[I] = O({
|
|
2149
2149
|
ref: h
|
|
2150
|
-
},
|
|
2150
|
+
}, R), !r))
|
|
2151
2151
|
return k;
|
|
2152
2152
|
}
|
|
2153
2153
|
}
|
|
2154
2154
|
return p(!0), k;
|
|
2155
2155
|
});
|
|
2156
|
-
const
|
|
2157
|
-
mode:
|
|
2158
|
-
reValidateMode:
|
|
2156
|
+
const RM = {
|
|
2157
|
+
mode: Ze.onSubmit,
|
|
2158
|
+
reValidateMode: Ze.onChange,
|
|
2159
2159
|
shouldFocusError: !0
|
|
2160
2160
|
};
|
|
2161
|
-
function
|
|
2162
|
-
let i =
|
|
2161
|
+
function FM(e = {}) {
|
|
2162
|
+
let i = O(O({}, RM), e), t = {
|
|
2163
2163
|
submitCount: 0,
|
|
2164
2164
|
isDirty: !1,
|
|
2165
2165
|
isReady: !1,
|
|
2166
|
-
isLoading:
|
|
2166
|
+
isLoading: He(i.defaultValues),
|
|
2167
2167
|
isValidating: !1,
|
|
2168
2168
|
isSubmitted: !1,
|
|
2169
2169
|
isSubmitting: !1,
|
|
@@ -2194,43 +2194,43 @@ function RM(e = {}) {
|
|
|
2194
2194
|
isValid: !1,
|
|
2195
2195
|
errors: !1
|
|
2196
2196
|
};
|
|
2197
|
-
let c =
|
|
2197
|
+
let c = O({}, A);
|
|
2198
2198
|
const a = {
|
|
2199
2199
|
array: on(),
|
|
2200
2200
|
state: on()
|
|
2201
|
-
}, y = i.criteriaMode ===
|
|
2201
|
+
}, y = i.criteriaMode === Ze.all, N = (g) => (T) => {
|
|
2202
2202
|
clearTimeout(j), j = setTimeout(g, T);
|
|
2203
2203
|
}, I = (g) => De(null, null, function* () {
|
|
2204
2204
|
if (!i.disabled && (A.isValid || c.isValid || g)) {
|
|
2205
|
-
const T = i.resolver ? Ue((yield
|
|
2205
|
+
const T = i.resolver ? Ue((yield F()).errors) : yield Y(r, !0);
|
|
2206
2206
|
T !== t.isValid && a.state.next({
|
|
2207
2207
|
isValid: T
|
|
2208
2208
|
});
|
|
2209
2209
|
}
|
|
2210
|
-
}),
|
|
2210
|
+
}), z = (g, T) => {
|
|
2211
2211
|
!i.disabled && (A.isValidating || A.validatingFields || c.isValidating || c.validatingFields) && ((g || Array.from(M.mount)).forEach((x) => {
|
|
2212
2212
|
x && (T ? Ne(t.validatingFields, x, T) : Ee(t.validatingFields, x));
|
|
2213
2213
|
}), a.state.next({
|
|
2214
2214
|
validatingFields: t.validatingFields,
|
|
2215
2215
|
isValidating: !Ue(t.validatingFields)
|
|
2216
2216
|
}));
|
|
2217
|
-
}, w = (g, T = [], x,
|
|
2218
|
-
if (
|
|
2219
|
-
if (s.action = !0, S && Array.isArray(
|
|
2220
|
-
const Q = x(
|
|
2217
|
+
}, w = (g, T = [], x, v, b = !0, S = !0) => {
|
|
2218
|
+
if (v && x && !i.disabled) {
|
|
2219
|
+
if (s.action = !0, S && Array.isArray(C(r, g))) {
|
|
2220
|
+
const Q = x(C(r, g), v.argA, v.argB);
|
|
2221
2221
|
b && Ne(r, g, Q);
|
|
2222
2222
|
}
|
|
2223
|
-
if (S && Array.isArray(
|
|
2224
|
-
const Q = x(
|
|
2225
|
-
b && Ne(t.errors, g, Q),
|
|
2223
|
+
if (S && Array.isArray(C(t.errors, g))) {
|
|
2224
|
+
const Q = x(C(t.errors, g), v.argA, v.argB);
|
|
2225
|
+
b && Ne(t.errors, g, Q), YM(t.errors, g);
|
|
2226
2226
|
}
|
|
2227
|
-
if ((A.touchedFields || c.touchedFields) && S && Array.isArray(
|
|
2228
|
-
const Q = x(
|
|
2227
|
+
if ((A.touchedFields || c.touchedFields) && S && Array.isArray(C(t.touchedFields, g))) {
|
|
2228
|
+
const Q = x(C(t.touchedFields, g), v.argA, v.argB);
|
|
2229
2229
|
b && Ne(t.touchedFields, g, Q);
|
|
2230
2230
|
}
|
|
2231
2231
|
(A.dirtyFields || c.dirtyFields) && (t.dirtyFields = pi(n, o)), a.state.next({
|
|
2232
2232
|
name: g,
|
|
2233
|
-
isDirty:
|
|
2233
|
+
isDirty: V(g, T),
|
|
2234
2234
|
dirtyFields: t.dirtyFields,
|
|
2235
2235
|
errors: t.errors,
|
|
2236
2236
|
isValid: t.isValid
|
|
@@ -2246,84 +2246,84 @@ function RM(e = {}) {
|
|
|
2246
2246
|
errors: t.errors,
|
|
2247
2247
|
isValid: !1
|
|
2248
2248
|
});
|
|
2249
|
-
}, p = (g, T, x,
|
|
2250
|
-
const b =
|
|
2249
|
+
}, p = (g, T, x, v) => {
|
|
2250
|
+
const b = C(r, g);
|
|
2251
2251
|
if (b) {
|
|
2252
|
-
const S =
|
|
2253
|
-
Te(S) ||
|
|
2252
|
+
const S = C(o, g, Te(x) ? C(n, g) : x);
|
|
2253
|
+
Te(S) || v && v.defaultChecked || T ? Ne(o, g, T ? S : un(b._f)) : se(g, S), s.mount && I();
|
|
2254
2254
|
}
|
|
2255
|
-
}, k = (g, T, x,
|
|
2255
|
+
}, k = (g, T, x, v, b) => {
|
|
2256
2256
|
let S = !1, Q = !1;
|
|
2257
2257
|
const K = {
|
|
2258
2258
|
name: g
|
|
2259
2259
|
};
|
|
2260
2260
|
if (!i.disabled) {
|
|
2261
|
-
if (!x ||
|
|
2262
|
-
(A.isDirty || c.isDirty) && (Q = t.isDirty, t.isDirty = K.isDirty =
|
|
2263
|
-
const
|
|
2264
|
-
Q = !!
|
|
2261
|
+
if (!x || v) {
|
|
2262
|
+
(A.isDirty || c.isDirty) && (Q = t.isDirty, t.isDirty = K.isDirty = V(), S = Q !== K.isDirty);
|
|
2263
|
+
const B = ni(C(n, g), T);
|
|
2264
|
+
Q = !!C(t.dirtyFields, g), B ? Ee(t.dirtyFields, g) : Ne(t.dirtyFields, g, !0), K.dirtyFields = t.dirtyFields, S = S || (A.dirtyFields || c.dirtyFields) && Q !== !B;
|
|
2265
2265
|
}
|
|
2266
2266
|
if (x) {
|
|
2267
|
-
const
|
|
2268
|
-
|
|
2267
|
+
const B = C(t.touchedFields, g);
|
|
2268
|
+
B || (Ne(t.touchedFields, g, x), K.touchedFields = t.touchedFields, S = S || (A.touchedFields || c.touchedFields) && B !== x);
|
|
2269
2269
|
}
|
|
2270
2270
|
S && b && a.state.next(K);
|
|
2271
2271
|
}
|
|
2272
2272
|
return S ? K : {};
|
|
2273
|
-
}, ie = (g, T, x,
|
|
2274
|
-
const b =
|
|
2275
|
-
if (i.delayError && x ? (D = N(() => _(g, x)), D(i.delayError)) : (clearTimeout(j), D = null, x ? Ne(t.errors, g, x) : Ee(t.errors, g)), (x ? !ni(b, x) : b) || !Ue(
|
|
2276
|
-
const Q = J(
|
|
2273
|
+
}, ie = (g, T, x, v) => {
|
|
2274
|
+
const b = C(t.errors, g), S = (A.isValid || c.isValid) && Pe(T) && t.isValid !== T;
|
|
2275
|
+
if (i.delayError && x ? (D = N(() => _(g, x)), D(i.delayError)) : (clearTimeout(j), D = null, x ? Ne(t.errors, g, x) : Ee(t.errors, g)), (x ? !ni(b, x) : b) || !Ue(v) || S) {
|
|
2276
|
+
const Q = J(O(O({}, v), S && Pe(T) ? { isValid: T } : {}), {
|
|
2277
2277
|
errors: t.errors,
|
|
2278
2278
|
name: g
|
|
2279
2279
|
});
|
|
2280
|
-
t =
|
|
2280
|
+
t = O(O({}, t), Q), a.state.next(Q);
|
|
2281
2281
|
}
|
|
2282
|
-
},
|
|
2283
|
-
|
|
2284
|
-
const T = yield i.resolver(o, i.context,
|
|
2285
|
-
return
|
|
2282
|
+
}, F = (g) => De(null, null, function* () {
|
|
2283
|
+
z(g, !0);
|
|
2284
|
+
const T = yield i.resolver(o, i.context, CM(g || M.mount, r, i.criteriaMode, i.shouldUseNativeValidation));
|
|
2285
|
+
return z(g), T;
|
|
2286
2286
|
}), ae = (g) => De(null, null, function* () {
|
|
2287
|
-
const { errors: T } = yield
|
|
2287
|
+
const { errors: T } = yield F(g);
|
|
2288
2288
|
if (g)
|
|
2289
2289
|
for (const x of g) {
|
|
2290
|
-
const
|
|
2291
|
-
|
|
2290
|
+
const v = C(T, x);
|
|
2291
|
+
v ? Ne(t.errors, x, v) : Ee(t.errors, x);
|
|
2292
2292
|
}
|
|
2293
2293
|
else
|
|
2294
2294
|
t.errors = T;
|
|
2295
2295
|
return T;
|
|
2296
|
-
}),
|
|
2296
|
+
}), Y = (v, b, ...S) => De(null, [v, b, ...S], function* (g, T, x = {
|
|
2297
2297
|
valid: !0
|
|
2298
2298
|
}) {
|
|
2299
2299
|
for (const K in g) {
|
|
2300
|
-
const
|
|
2301
|
-
if (
|
|
2302
|
-
const Q =
|
|
2300
|
+
const B = g[K];
|
|
2301
|
+
if (B) {
|
|
2302
|
+
const Q = B, { _f: ue } = Q, Se = Di(Q, ["_f"]);
|
|
2303
2303
|
if (ue) {
|
|
2304
|
-
const Z = M.array.has(ue.name), q =
|
|
2305
|
-
q && A.validatingFields &&
|
|
2306
|
-
const
|
|
2307
|
-
if (q && A.validatingFields &&
|
|
2304
|
+
const Z = M.array.has(ue.name), q = B._f && vM(B._f);
|
|
2305
|
+
q && A.validatingFields && z([ue.name], !0);
|
|
2306
|
+
const P = yield Dn(B, M.disabled, o, y, i.shouldUseNativeValidation && !T, Z);
|
|
2307
|
+
if (q && A.validatingFields && z([ue.name]), P[ue.name] && (x.valid = !1, T))
|
|
2308
2308
|
break;
|
|
2309
|
-
!T && (
|
|
2309
|
+
!T && (C(P, ue.name) ? Z ? PM(t.errors, P, ue.name) : Ne(t.errors, ue.name, P[ue.name]) : Ee(t.errors, ue.name));
|
|
2310
2310
|
}
|
|
2311
|
-
!Ue(Se) && (yield
|
|
2311
|
+
!Ue(Se) && (yield Y(Se, T, x));
|
|
2312
2312
|
}
|
|
2313
2313
|
}
|
|
2314
2314
|
return x.valid;
|
|
2315
2315
|
}), H = () => {
|
|
2316
2316
|
for (const g of M.unMount) {
|
|
2317
|
-
const T =
|
|
2318
|
-
T && (T._f.refs ? T._f.refs.every((x) => !zt(x)) : !zt(T._f.ref)) &&
|
|
2317
|
+
const T = C(r, g);
|
|
2318
|
+
T && (T._f.refs ? T._f.refs.every((x) => !zt(x)) : !zt(T._f.ref)) && Ve(g);
|
|
2319
2319
|
}
|
|
2320
2320
|
M.unMount = /* @__PURE__ */ new Set();
|
|
2321
|
-
},
|
|
2322
|
-
const
|
|
2321
|
+
}, V = (g, T) => !i.disabled && (g && T && Ne(o, g, T), !ni(G(), n)), R = (g, T, x) => Io(g, M, O({}, s.mount ? o : Te(T) ? n : Re(g) ? { [g]: T } : T), x, T), $ = (g) => qt(C(s.mount ? o : n, g, i.shouldUnregister ? C(n, g, []) : [])), se = (g, T, x = {}) => {
|
|
2322
|
+
const v = C(r, g);
|
|
2323
2323
|
let b = T;
|
|
2324
|
-
if (
|
|
2325
|
-
const S =
|
|
2326
|
-
S && (!S.disabled && Ne(o, g, zo(T, S)), b = dt(S.ref) &&
|
|
2324
|
+
if (v) {
|
|
2325
|
+
const S = v._f;
|
|
2326
|
+
S && (!S.disabled && Ne(o, g, zo(T, S)), b = dt(S.ref) && Ce(T) ? "" : T, fo(S.ref) ? [...S.ref.options].forEach((Q) => Q.selected = b.includes(Q.value)) : S.refs ? Xi(S.ref) ? S.refs.forEach((Q) => {
|
|
2327
2327
|
(!Q.defaultChecked || !Q.disabled) && (Array.isArray(b) ? Q.checked = !!b.find((K) => K === Q.value) : Q.checked = b === Q.value || !!b);
|
|
2328
2328
|
}) : S.refs.forEach((Q) => Q.checked = Q.value === b) : rr(S.ref) ? S.ref.value = "" : (S.ref.value = b, S.ref.type || a.state.next({
|
|
2329
2329
|
name: g,
|
|
@@ -2332,123 +2332,123 @@ function RM(e = {}) {
|
|
|
2332
2332
|
}
|
|
2333
2333
|
(x.shouldDirty || x.shouldTouch) && k(g, b, x.shouldTouch, x.shouldDirty, !0), x.shouldValidate && le(g);
|
|
2334
2334
|
}, Ie = (g, T, x) => {
|
|
2335
|
-
for (const
|
|
2336
|
-
if (!T.hasOwnProperty(
|
|
2335
|
+
for (const v in T) {
|
|
2336
|
+
if (!T.hasOwnProperty(v))
|
|
2337
2337
|
return;
|
|
2338
|
-
const b = T[
|
|
2338
|
+
const b = T[v], S = g + "." + v, Q = C(r, S);
|
|
2339
2339
|
(M.array.has(g) || xe(b) || Q && !Q._f) && !fi(b) ? Ie(S, b, x) : se(S, b, x);
|
|
2340
2340
|
}
|
|
2341
2341
|
}, je = (g, T, x = {}) => {
|
|
2342
|
-
const
|
|
2342
|
+
const v = C(r, g), b = M.array.has(g), S = me(T);
|
|
2343
2343
|
Ne(o, g, S), b ? (a.array.next({
|
|
2344
2344
|
name: g,
|
|
2345
2345
|
values: me(o)
|
|
2346
2346
|
}), (A.isDirty || A.dirtyFields || c.isDirty || c.dirtyFields) && x.shouldDirty && a.state.next({
|
|
2347
2347
|
name: g,
|
|
2348
2348
|
dirtyFields: pi(n, o),
|
|
2349
|
-
isDirty:
|
|
2350
|
-
})) :
|
|
2349
|
+
isDirty: V(g, S)
|
|
2350
|
+
})) : v && !v._f && !Ce(S) ? Ie(g, S, x) : se(g, S, x), gn(g, M) && a.state.next(J(O({}, t), { name: g })), a.state.next({
|
|
2351
2351
|
name: s.mount ? g : void 0,
|
|
2352
2352
|
values: me(o)
|
|
2353
2353
|
});
|
|
2354
2354
|
}, Ae = (g) => De(null, null, function* () {
|
|
2355
2355
|
s.mount = !0;
|
|
2356
2356
|
const T = g.target;
|
|
2357
|
-
let x = T.name,
|
|
2358
|
-
const b =
|
|
2359
|
-
|
|
2357
|
+
let x = T.name, v = !0;
|
|
2358
|
+
const b = C(r, x), S = (B) => {
|
|
2359
|
+
v = Number.isNaN(B) || fi(B) && isNaN(B.getTime()) || ni(B, C(o, x, B));
|
|
2360
2360
|
}, Q = ln(i.mode), K = ln(i.reValidateMode);
|
|
2361
2361
|
if (b) {
|
|
2362
|
-
let
|
|
2363
|
-
const Se = T.type ? un(b._f) : co(g), Z = g.type === gt.BLUR || g.type === gt.FOCUS_OUT, q = !
|
|
2362
|
+
let B, ue;
|
|
2363
|
+
const Se = T.type ? un(b._f) : co(g), Z = g.type === gt.BLUR || g.type === gt.FOCUS_OUT, q = !LM(b._f) && !i.resolver && !C(t.errors, x) && !b._f.deps || QM(Z, C(t.touchedFields, x), t.isSubmitted, K, Q), P = gn(x, M, Z);
|
|
2364
2364
|
Ne(o, x, Se), Z ? (!T || !T.readOnly) && (b._f.onBlur && b._f.onBlur(g), D && D(0)) : b._f.onChange && b._f.onChange(g);
|
|
2365
|
-
const Me = k(x, Se, Z), Le = !Ue(Me) ||
|
|
2365
|
+
const Me = k(x, Se, Z), Le = !Ue(Me) || P;
|
|
2366
2366
|
if (!Z && a.state.next({
|
|
2367
2367
|
name: x,
|
|
2368
2368
|
type: g.type,
|
|
2369
2369
|
values: me(o)
|
|
2370
2370
|
}), q)
|
|
2371
|
-
return (A.isValid || c.isValid) && (i.mode === "onBlur" ? Z && I() : Z || I()), Le && a.state.next(
|
|
2372
|
-
if (!Z &&
|
|
2373
|
-
const { errors: we } = yield
|
|
2374
|
-
if (S(Se),
|
|
2375
|
-
const oe = dn(t.errors, r, x),
|
|
2376
|
-
|
|
2371
|
+
return (A.isValid || c.isValid) && (i.mode === "onBlur" ? Z && I() : Z || I()), Le && a.state.next(O({ name: x }, P ? {} : Me));
|
|
2372
|
+
if (!Z && P && a.state.next(O({}, t)), i.resolver) {
|
|
2373
|
+
const { errors: we } = yield F([x]);
|
|
2374
|
+
if (S(Se), v) {
|
|
2375
|
+
const oe = dn(t.errors, r, x), W = dn(we, r, oe.name || x);
|
|
2376
|
+
B = W.error, x = W.name, ue = Ue(we);
|
|
2377
2377
|
}
|
|
2378
2378
|
} else
|
|
2379
|
-
|
|
2380
|
-
|
|
2379
|
+
z([x], !0), B = (yield Dn(b, M.disabled, o, y, i.shouldUseNativeValidation))[x], z([x]), S(Se), v && (B ? ue = !1 : (A.isValid || c.isValid) && (ue = yield Y(r, !0)));
|
|
2380
|
+
v && (b._f.deps && (!Array.isArray(b._f.deps) || b._f.deps.length > 0) && le(b._f.deps), ie(x, ue, B, Me));
|
|
2381
2381
|
}
|
|
2382
2382
|
}), Qe = (g, T) => {
|
|
2383
|
-
if (
|
|
2383
|
+
if (C(t.errors, T) && g.focus)
|
|
2384
2384
|
return g.focus(), 1;
|
|
2385
|
-
}, le = (x, ...
|
|
2385
|
+
}, le = (x, ...v) => De(null, [x, ...v], function* (g, T = {}) {
|
|
2386
2386
|
let b, S;
|
|
2387
2387
|
const Q = Ri(g);
|
|
2388
2388
|
if (i.resolver) {
|
|
2389
2389
|
const K = yield ae(Te(g) ? g : Q);
|
|
2390
|
-
b = Ue(K), S = g ? !Q.some((
|
|
2390
|
+
b = Ue(K), S = g ? !Q.some((B) => C(K, B)) : b;
|
|
2391
2391
|
} else g ? (S = (yield Promise.all(Q.map((K) => De(null, null, function* () {
|
|
2392
|
-
const
|
|
2393
|
-
return yield
|
|
2394
|
-
})))).every(Boolean), !(!S && !t.isValid) && I()) : S = b = yield
|
|
2395
|
-
return a.state.next(J(
|
|
2392
|
+
const B = C(r, K);
|
|
2393
|
+
return yield Y(B && B._f ? { [K]: B } : B);
|
|
2394
|
+
})))).every(Boolean), !(!S && !t.isValid) && I()) : S = b = yield Y(r);
|
|
2395
|
+
return a.state.next(J(O(O({}, !Re(g) || (A.isValid || c.isValid) && b !== t.isValid ? {} : { name: g }), i.resolver || !g ? { isValid: b } : {}), {
|
|
2396
2396
|
errors: t.errors
|
|
2397
2397
|
})), T.shouldFocus && !S && Fi(r, Qe, g ? Q : M.mount), S;
|
|
2398
2398
|
}), G = (g, T) => {
|
|
2399
|
-
let x =
|
|
2400
|
-
return T && (x = yo(T.dirtyFields ? t.dirtyFields : t.touchedFields, x)), Te(g) ? x : Re(g) ?
|
|
2399
|
+
let x = O({}, s.mount ? o : n);
|
|
2400
|
+
return T && (x = yo(T.dirtyFields ? t.dirtyFields : t.touchedFields, x)), Te(g) ? x : Re(g) ? C(x, g) : g.map((v) => C(x, v));
|
|
2401
2401
|
}, ge = (g, T) => ({
|
|
2402
|
-
invalid: !!
|
|
2403
|
-
isDirty: !!
|
|
2404
|
-
error:
|
|
2405
|
-
isValidating: !!
|
|
2406
|
-
isTouched: !!
|
|
2402
|
+
invalid: !!C((T || t).errors, g),
|
|
2403
|
+
isDirty: !!C((T || t).dirtyFields, g),
|
|
2404
|
+
error: C((T || t).errors, g),
|
|
2405
|
+
isValidating: !!C(t.validatingFields, g),
|
|
2406
|
+
isTouched: !!C((T || t).touchedFields, g)
|
|
2407
2407
|
}), ze = (g) => {
|
|
2408
2408
|
g && Ri(g).forEach((T) => Ee(t.errors, T)), a.state.next({
|
|
2409
2409
|
errors: g ? t.errors : {}
|
|
2410
2410
|
});
|
|
2411
2411
|
}, he = (g, T, x) => {
|
|
2412
|
-
const
|
|
2413
|
-
Ne(t.errors, g, J(
|
|
2414
|
-
ref:
|
|
2412
|
+
const v = (C(r, g, { _f: {} })._f || {}).ref, ue = C(t.errors, g) || {}, { ref: S, message: Q, type: K } = ue, B = Di(ue, ["ref", "message", "type"]);
|
|
2413
|
+
Ne(t.errors, g, J(O(O({}, B), T), {
|
|
2414
|
+
ref: v
|
|
2415
2415
|
})), a.state.next({
|
|
2416
2416
|
name: g,
|
|
2417
2417
|
errors: t.errors,
|
|
2418
2418
|
isValid: !1
|
|
2419
|
-
}), x && x.shouldFocus &&
|
|
2420
|
-
},
|
|
2421
|
-
next: (x) => "values" in x && g(
|
|
2422
|
-
}) :
|
|
2419
|
+
}), x && x.shouldFocus && v && v.focus && v.focus();
|
|
2420
|
+
}, ve = (g, T) => He(g) ? a.state.subscribe({
|
|
2421
|
+
next: (x) => "values" in x && g(R(void 0, T), x)
|
|
2422
|
+
}) : R(g, T, !0), U = (g) => a.state.subscribe({
|
|
2423
2423
|
next: (T) => {
|
|
2424
|
-
|
|
2425
|
-
values:
|
|
2424
|
+
UM(g.name, T.name, g.exact) && kM(T, g.formState || A, Ei, g.reRenderRoot) && g.callback(J(O(O({
|
|
2425
|
+
values: O({}, o)
|
|
2426
2426
|
}, t), T), {
|
|
2427
2427
|
defaultValues: n
|
|
2428
2428
|
}));
|
|
2429
2429
|
}
|
|
2430
|
-
}).unsubscribe, ne = (g) => (s.mount = !0, c =
|
|
2430
|
+
}).unsubscribe, ne = (g) => (s.mount = !0, c = O(O({}, c), g.formState), U(J(O({}, g), {
|
|
2431
2431
|
formState: c
|
|
2432
|
-
}))),
|
|
2432
|
+
}))), Ve = (g, T = {}) => {
|
|
2433
2433
|
for (const x of g ? Ri(g) : M.mount)
|
|
2434
2434
|
M.mount.delete(x), M.array.delete(x), T.keepValue || (Ee(r, x), Ee(o, x)), !T.keepError && Ee(t.errors, x), !T.keepDirty && Ee(t.dirtyFields, x), !T.keepTouched && Ee(t.touchedFields, x), !T.keepIsValidating && Ee(t.validatingFields, x), !i.shouldUnregister && !T.keepDefaultValue && Ee(n, x);
|
|
2435
2435
|
a.state.next({
|
|
2436
2436
|
values: me(o)
|
|
2437
|
-
}), a.state.next(
|
|
2437
|
+
}), a.state.next(O(O({}, t), T.keepDirty ? { isDirty: V() } : {})), !T.keepIsValid && I();
|
|
2438
2438
|
}, $e = ({ disabled: g, name: T }) => {
|
|
2439
2439
|
(Pe(g) && s.mount || g || M.disabled.has(T)) && (g ? M.disabled.add(T) : M.disabled.delete(T));
|
|
2440
2440
|
}, ii = (g, T = {}) => {
|
|
2441
|
-
let x =
|
|
2442
|
-
const
|
|
2443
|
-
return Ne(r, g, J(
|
|
2444
|
-
_f:
|
|
2441
|
+
let x = C(r, g);
|
|
2442
|
+
const v = Pe(T.disabled) || Pe(i.disabled);
|
|
2443
|
+
return Ne(r, g, J(O({}, x || {}), {
|
|
2444
|
+
_f: O(J(O({}, x && x._f ? x._f : { ref: { name: g } }), {
|
|
2445
2445
|
name: g,
|
|
2446
2446
|
mount: !0
|
|
2447
2447
|
}), T)
|
|
2448
2448
|
})), M.mount.add(g), x ? $e({
|
|
2449
2449
|
disabled: Pe(T.disabled) ? T.disabled : i.disabled,
|
|
2450
2450
|
name: g
|
|
2451
|
-
}) : p(g, !0, T.value), J(
|
|
2451
|
+
}) : p(g, !0, T.value), J(O(O({}, v ? { disabled: T.disabled || i.disabled } : {}), i.progressive ? {
|
|
2452
2452
|
required: !!T.required,
|
|
2453
2453
|
min: ki(T.min),
|
|
2454
2454
|
max: ki(T.max),
|
|
@@ -2461,42 +2461,42 @@ function RM(e = {}) {
|
|
|
2461
2461
|
onBlur: Ae,
|
|
2462
2462
|
ref: (b) => {
|
|
2463
2463
|
if (b) {
|
|
2464
|
-
ii(g, T), x =
|
|
2465
|
-
const S = Te(b.value) && b.querySelectorAll && b.querySelectorAll("input,select,textarea")[0] || b, Q =
|
|
2466
|
-
if (Q ? K.find((
|
|
2464
|
+
ii(g, T), x = C(r, g);
|
|
2465
|
+
const S = Te(b.value) && b.querySelectorAll && b.querySelectorAll("input,select,textarea")[0] || b, Q = pM(S), K = x._f.refs || [];
|
|
2466
|
+
if (Q ? K.find((B) => B === S) : S === x._f.ref)
|
|
2467
2467
|
return;
|
|
2468
2468
|
Ne(r, g, {
|
|
2469
|
-
_f:
|
|
2469
|
+
_f: O(O({}, x._f), Q ? {
|
|
2470
2470
|
refs: [
|
|
2471
2471
|
...K.filter(zt),
|
|
2472
2472
|
S,
|
|
2473
|
-
...Array.isArray(
|
|
2473
|
+
...Array.isArray(C(n, g)) ? [{}] : []
|
|
2474
2474
|
],
|
|
2475
2475
|
ref: { type: S.type, name: g }
|
|
2476
2476
|
} : { ref: S })
|
|
2477
2477
|
}), p(g, !1, void 0, S);
|
|
2478
2478
|
} else
|
|
2479
|
-
x =
|
|
2479
|
+
x = C(r, g, {}), x._f && (x._f.mount = !1), (i.shouldUnregister || T.shouldUnregister) && !(go(M.array, g) && s.action) && M.unMount.add(g);
|
|
2480
2480
|
}
|
|
2481
2481
|
});
|
|
2482
|
-
},
|
|
2482
|
+
}, Be = () => i.shouldFocusError && Fi(r, Qe, M.mount), gi = (g) => {
|
|
2483
2483
|
Pe(g) && (a.state.next({ disabled: g }), Fi(r, (T, x) => {
|
|
2484
|
-
const
|
|
2485
|
-
|
|
2486
|
-
b.disabled =
|
|
2484
|
+
const v = C(r, x);
|
|
2485
|
+
v && (T.disabled = v._f.disabled || g, Array.isArray(v._f.refs) && v._f.refs.forEach((b) => {
|
|
2486
|
+
b.disabled = v._f.disabled || g;
|
|
2487
2487
|
}));
|
|
2488
2488
|
}, 0, !1));
|
|
2489
2489
|
}, Mi = (g, T) => (x) => De(null, null, function* () {
|
|
2490
|
-
let
|
|
2490
|
+
let v;
|
|
2491
2491
|
x && (x.preventDefault && x.preventDefault(), x.persist && x.persist());
|
|
2492
2492
|
let b = me(o);
|
|
2493
2493
|
if (a.state.next({
|
|
2494
2494
|
isSubmitting: !0
|
|
2495
2495
|
}), i.resolver) {
|
|
2496
|
-
const { errors: S, values: Q } = yield
|
|
2496
|
+
const { errors: S, values: Q } = yield F();
|
|
2497
2497
|
t.errors = S, b = me(Q);
|
|
2498
2498
|
} else
|
|
2499
|
-
yield
|
|
2499
|
+
yield Y(r);
|
|
2500
2500
|
if (M.disabled.size)
|
|
2501
2501
|
for (const S of M.disabled)
|
|
2502
2502
|
Ee(b, S);
|
|
@@ -2507,22 +2507,22 @@ function RM(e = {}) {
|
|
|
2507
2507
|
try {
|
|
2508
2508
|
yield g(b, x);
|
|
2509
2509
|
} catch (S) {
|
|
2510
|
-
|
|
2510
|
+
v = S;
|
|
2511
2511
|
}
|
|
2512
2512
|
} else
|
|
2513
|
-
T && (yield T(
|
|
2513
|
+
T && (yield T(O({}, t.errors), x)), Be(), setTimeout(Be);
|
|
2514
2514
|
if (a.state.next({
|
|
2515
2515
|
isSubmitted: !0,
|
|
2516
2516
|
isSubmitting: !1,
|
|
2517
|
-
isSubmitSuccessful: Ue(t.errors) && !
|
|
2517
|
+
isSubmitSuccessful: Ue(t.errors) && !v,
|
|
2518
2518
|
submitCount: t.submitCount + 1,
|
|
2519
2519
|
errors: t.errors
|
|
2520
|
-
}),
|
|
2521
|
-
throw
|
|
2520
|
+
}), v)
|
|
2521
|
+
throw v;
|
|
2522
2522
|
}), Oi = (g, T = {}) => {
|
|
2523
|
-
|
|
2523
|
+
C(r, g) && (Te(T.defaultValue) ? je(g, me(C(n, g))) : (je(g, T.defaultValue), Ne(n, g, me(T.defaultValue))), T.keepTouched || Ee(t.touchedFields, g), T.keepDirty || (Ee(t.dirtyFields, g), t.isDirty = T.defaultValue ? V(g, me(C(n, g))) : V()), T.keepError || (Ee(t.errors, g), A.isValid && I()), a.state.next(O({}, t)));
|
|
2524
2524
|
}, di = (g, T = {}) => {
|
|
2525
|
-
const x = g ? me(g) : n,
|
|
2525
|
+
const x = g ? me(g) : n, v = me(x), b = Ue(g), S = b ? n : v;
|
|
2526
2526
|
if (T.keepDefaultValues || (n = x), !T.keepValues) {
|
|
2527
2527
|
if (T.keepDirtyValues) {
|
|
2528
2528
|
const Q = /* @__PURE__ */ new Set([
|
|
@@ -2530,15 +2530,15 @@ function RM(e = {}) {
|
|
|
2530
2530
|
...Object.keys(pi(n, o))
|
|
2531
2531
|
]);
|
|
2532
2532
|
for (const K of Array.from(Q))
|
|
2533
|
-
|
|
2533
|
+
C(t.dirtyFields, K) ? Ne(S, K, C(o, K)) : je(K, C(S, K));
|
|
2534
2534
|
} else {
|
|
2535
2535
|
if (Kt && Te(g))
|
|
2536
2536
|
for (const Q of M.mount) {
|
|
2537
|
-
const K =
|
|
2537
|
+
const K = C(r, Q);
|
|
2538
2538
|
if (K && K._f) {
|
|
2539
|
-
const
|
|
2540
|
-
if (dt(
|
|
2541
|
-
const ue =
|
|
2539
|
+
const B = Array.isArray(K._f.refs) ? K._f.refs[0] : K._f.ref;
|
|
2540
|
+
if (dt(B)) {
|
|
2541
|
+
const ue = B.closest("form");
|
|
2542
2542
|
if (ue) {
|
|
2543
2543
|
ue.reset();
|
|
2544
2544
|
break;
|
|
@@ -2548,14 +2548,14 @@ function RM(e = {}) {
|
|
|
2548
2548
|
}
|
|
2549
2549
|
if (T.keepFieldsRef)
|
|
2550
2550
|
for (const Q of M.mount)
|
|
2551
|
-
je(Q,
|
|
2551
|
+
je(Q, C(S, Q));
|
|
2552
2552
|
else
|
|
2553
2553
|
r = {};
|
|
2554
2554
|
}
|
|
2555
2555
|
o = i.shouldUnregister ? T.keepDefaultValues ? me(n) : {} : me(S), a.array.next({
|
|
2556
|
-
values:
|
|
2556
|
+
values: O({}, S)
|
|
2557
2557
|
}), a.state.next({
|
|
2558
|
-
values:
|
|
2558
|
+
values: O({}, S)
|
|
2559
2559
|
});
|
|
2560
2560
|
}
|
|
2561
2561
|
M = {
|
|
@@ -2577,33 +2577,33 @@ function RM(e = {}) {
|
|
|
2577
2577
|
isSubmitting: !1,
|
|
2578
2578
|
defaultValues: n
|
|
2579
2579
|
});
|
|
2580
|
-
}, ai = (g, T) => di(
|
|
2581
|
-
const x =
|
|
2582
|
-
if (
|
|
2583
|
-
const b =
|
|
2584
|
-
b.focus && (b.focus(), T.shouldSelect &&
|
|
2580
|
+
}, ai = (g, T) => di(He(g) ? g(o) : g, T), Ni = (g, T = {}) => {
|
|
2581
|
+
const x = C(r, g), v = x && x._f;
|
|
2582
|
+
if (v) {
|
|
2583
|
+
const b = v.refs ? v.refs[0] : v.ref;
|
|
2584
|
+
b.focus && (b.focus(), T.shouldSelect && He(b.select) && b.select());
|
|
2585
2585
|
}
|
|
2586
2586
|
}, Ei = (g) => {
|
|
2587
|
-
t =
|
|
2587
|
+
t = O(O({}, t), g);
|
|
2588
2588
|
}, Xe = {
|
|
2589
2589
|
control: {
|
|
2590
2590
|
register: ii,
|
|
2591
|
-
unregister:
|
|
2591
|
+
unregister: Ve,
|
|
2592
2592
|
getFieldState: ge,
|
|
2593
2593
|
handleSubmit: Mi,
|
|
2594
2594
|
setError: he,
|
|
2595
2595
|
_subscribe: U,
|
|
2596
|
-
_runSchema:
|
|
2597
|
-
_focusError:
|
|
2598
|
-
_getWatch:
|
|
2599
|
-
_getDirty:
|
|
2596
|
+
_runSchema: F,
|
|
2597
|
+
_focusError: Be,
|
|
2598
|
+
_getWatch: R,
|
|
2599
|
+
_getDirty: V,
|
|
2600
2600
|
_setValid: I,
|
|
2601
2601
|
_setFieldArray: w,
|
|
2602
2602
|
_setDisabledField: $e,
|
|
2603
2603
|
_setErrors: h,
|
|
2604
2604
|
_getFieldArray: $,
|
|
2605
2605
|
_reset: di,
|
|
2606
|
-
_resetDefaultValues: () =>
|
|
2606
|
+
_resetDefaultValues: () => He(i.defaultValues) && i.defaultValues().then((g) => {
|
|
2607
2607
|
ai(g, i.resetOptions), a.state.next({
|
|
2608
2608
|
isLoading: !1
|
|
2609
2609
|
});
|
|
@@ -2640,33 +2640,33 @@ function RM(e = {}) {
|
|
|
2640
2640
|
return i;
|
|
2641
2641
|
},
|
|
2642
2642
|
set _options(g) {
|
|
2643
|
-
i =
|
|
2643
|
+
i = O(O({}, i), g);
|
|
2644
2644
|
}
|
|
2645
2645
|
},
|
|
2646
2646
|
subscribe: ne,
|
|
2647
2647
|
trigger: le,
|
|
2648
2648
|
register: ii,
|
|
2649
2649
|
handleSubmit: Mi,
|
|
2650
|
-
watch:
|
|
2650
|
+
watch: ve,
|
|
2651
2651
|
setValue: je,
|
|
2652
2652
|
getValues: G,
|
|
2653
2653
|
reset: ai,
|
|
2654
2654
|
resetField: Oi,
|
|
2655
2655
|
clearErrors: ze,
|
|
2656
|
-
unregister:
|
|
2656
|
+
unregister: Ve,
|
|
2657
2657
|
setError: he,
|
|
2658
2658
|
setFocus: Ni,
|
|
2659
2659
|
getFieldState: ge
|
|
2660
2660
|
};
|
|
2661
|
-
return J(
|
|
2661
|
+
return J(O({}, Xe), {
|
|
2662
2662
|
formControl: Xe
|
|
2663
2663
|
});
|
|
2664
2664
|
}
|
|
2665
|
-
function
|
|
2665
|
+
function VM(e = {}) {
|
|
2666
2666
|
const i = re.useRef(void 0), t = re.useRef(void 0), [r, n] = re.useState({
|
|
2667
2667
|
isDirty: !1,
|
|
2668
2668
|
isValidating: !1,
|
|
2669
|
-
isLoading:
|
|
2669
|
+
isLoading: He(e.defaultValues),
|
|
2670
2670
|
isSubmitted: !1,
|
|
2671
2671
|
isSubmitting: !1,
|
|
2672
2672
|
isSubmitSuccessful: !1,
|
|
@@ -2678,16 +2678,16 @@ function FM(e = {}) {
|
|
|
2678
2678
|
errors: e.errors || {},
|
|
2679
2679
|
disabled: e.disabled || !1,
|
|
2680
2680
|
isReady: !1,
|
|
2681
|
-
defaultValues:
|
|
2681
|
+
defaultValues: He(e.defaultValues) ? void 0 : e.defaultValues
|
|
2682
2682
|
});
|
|
2683
2683
|
if (!i.current)
|
|
2684
2684
|
if (e.formControl)
|
|
2685
|
-
i.current = J(
|
|
2685
|
+
i.current = J(O({}, e.formControl), {
|
|
2686
2686
|
formState: r
|
|
2687
|
-
}), e.defaultValues && !
|
|
2687
|
+
}), e.defaultValues && !He(e.defaultValues) && e.formControl.reset(e.defaultValues, e.resetOptions);
|
|
2688
2688
|
else {
|
|
2689
|
-
const s =
|
|
2690
|
-
i.current = J(
|
|
2689
|
+
const s = FM(e), { formControl: M } = s, D = Di(s, ["formControl"]);
|
|
2690
|
+
i.current = J(O({}, D), {
|
|
2691
2691
|
formState: r
|
|
2692
2692
|
});
|
|
2693
2693
|
}
|
|
@@ -2695,10 +2695,10 @@ function FM(e = {}) {
|
|
|
2695
2695
|
return o._options = e, tr(() => {
|
|
2696
2696
|
const M = o._subscribe({
|
|
2697
2697
|
formState: o._proxyFormState,
|
|
2698
|
-
callback: () => n(
|
|
2698
|
+
callback: () => n(O({}, o._formState)),
|
|
2699
2699
|
reRenderRoot: !0
|
|
2700
2700
|
});
|
|
2701
|
-
return n((D) => J(
|
|
2701
|
+
return n((D) => J(O({}, D), {
|
|
2702
2702
|
isReady: !0
|
|
2703
2703
|
})), o._formState.isReady = !0, M;
|
|
2704
2704
|
}, [o]), re.useEffect(() => o._disableForm(e.disabled), [o, e.disabled]), re.useEffect(() => {
|
|
@@ -2717,22 +2717,22 @@ function FM(e = {}) {
|
|
|
2717
2717
|
});
|
|
2718
2718
|
}
|
|
2719
2719
|
}, [o, r.isDirty]), re.useEffect(() => {
|
|
2720
|
-
e.values && !ni(e.values, t.current) ? (o._reset(e.values,
|
|
2720
|
+
e.values && !ni(e.values, t.current) ? (o._reset(e.values, O({
|
|
2721
2721
|
keepFieldsRef: !0
|
|
2722
|
-
}, o._options.resetOptions)), t.current = e.values, n((M) =>
|
|
2722
|
+
}, o._options.resetOptions)), t.current = e.values, n((M) => O({}, M))) : o._resetDefaultValues();
|
|
2723
2723
|
}, [o, e.values]), re.useEffect(() => {
|
|
2724
|
-
o._state.mount || (o._setValid(), o._state.mount = !0), o._state.watch && (o._state.watch = !1, o._subjects.state.next(
|
|
2724
|
+
o._state.mount || (o._setValid(), o._state.mount = !0), o._state.watch && (o._state.watch = !1, o._subjects.state.next(O({}, o._formState))), o._removeUnmounted();
|
|
2725
2725
|
}), i.current.formState = Do(r, o), i.current;
|
|
2726
2726
|
}
|
|
2727
|
-
const
|
|
2727
|
+
const vi = (e, i) => {
|
|
2728
2728
|
const t = {};
|
|
2729
2729
|
return e.forEach((r, n) => {
|
|
2730
|
-
if (r.type === Gr.NOT_EMPTY && (t.required = (o) => i &&
|
|
2730
|
+
if (r.type === Gr.NOT_EMPTY && (t.required = (o) => i && Vs(o) ? r.message : !0), r.type === Gr.REGEX) {
|
|
2731
2731
|
const o = new RegExp(r.regex);
|
|
2732
2732
|
t[`regex_${n}`] = (s) => !i && !s ? !0 : typeof s != "string" ? r.message : o.test(s) || r.message;
|
|
2733
2733
|
}
|
|
2734
2734
|
}), t;
|
|
2735
|
-
},
|
|
2735
|
+
}, BM = ({ isOpen: e, image: i }) => /* @__PURE__ */ d(
|
|
2736
2736
|
"div",
|
|
2737
2737
|
{
|
|
2738
2738
|
"data-ui": "gui-custom-select-chevron",
|
|
@@ -2747,9 +2747,9 @@ const Ci = (e, i) => {
|
|
|
2747
2747
|
transition: ".2s",
|
|
2748
2748
|
flexShrink: 0
|
|
2749
2749
|
},
|
|
2750
|
-
children: i ? /* @__PURE__ */ d(_e,
|
|
2750
|
+
children: i ? /* @__PURE__ */ d(_e, O({}, i)) : /* @__PURE__ */ d(_e, { imageId: "chevronDown" })
|
|
2751
2751
|
}
|
|
2752
|
-
),
|
|
2752
|
+
), WM = ({
|
|
2753
2753
|
isChosen: e,
|
|
2754
2754
|
option: i,
|
|
2755
2755
|
onOptionClickCallback: t,
|
|
@@ -2764,11 +2764,11 @@ const Ci = (e, i) => {
|
|
|
2764
2764
|
style: {
|
|
2765
2765
|
padding: "5px 8px",
|
|
2766
2766
|
background: ((D, j) => {
|
|
2767
|
-
var A, c, a, y, N, I,
|
|
2767
|
+
var A, c, a, y, N, I, z, w;
|
|
2768
2768
|
if (!D && !j) return (c = ee((A = i.layout) == null ? void 0 : A.backgroundColor)) != null ? c : "transparent";
|
|
2769
2769
|
if (!D && j) return (y = ee((a = i.layoutSelected) == null ? void 0 : a.backgroundColor)) != null ? y : "transparent";
|
|
2770
2770
|
if (D && !j) return (I = ee((N = i.layout) == null ? void 0 : N.highlightColor)) != null ? I : "#F4F4F4";
|
|
2771
|
-
if (D && j) return (w = ee((
|
|
2771
|
+
if (D && j) return (w = ee((z = i.layoutSelected) == null ? void 0 : z.highlightColor)) != null ? w : "#F4F4F4";
|
|
2772
2772
|
})(r, e),
|
|
2773
2773
|
fontSize: 13,
|
|
2774
2774
|
display: "flex",
|
|
@@ -2783,7 +2783,7 @@ const Ci = (e, i) => {
|
|
|
2783
2783
|
onMouseEnter: n,
|
|
2784
2784
|
onMouseLeave: o,
|
|
2785
2785
|
children: [
|
|
2786
|
-
/* @__PURE__ */ d(fe, J(
|
|
2786
|
+
/* @__PURE__ */ d(fe, J(O({}, i.layout.title), { text: i.label })),
|
|
2787
2787
|
/* @__PURE__ */ d(
|
|
2788
2788
|
"div",
|
|
2789
2789
|
{
|
|
@@ -2791,7 +2791,7 @@ const Ci = (e, i) => {
|
|
|
2791
2791
|
display: "flex",
|
|
2792
2792
|
flexShrink: 0
|
|
2793
2793
|
},
|
|
2794
|
-
children: /* @__PURE__ */ d(_e,
|
|
2794
|
+
children: /* @__PURE__ */ d(_e, O({}, s))
|
|
2795
2795
|
}
|
|
2796
2796
|
)
|
|
2797
2797
|
]
|
|
@@ -2812,12 +2812,12 @@ const Ci = (e, i) => {
|
|
|
2812
2812
|
controlLayout: A,
|
|
2813
2813
|
pickerLayout: c
|
|
2814
2814
|
}) => {
|
|
2815
|
-
var
|
|
2816
|
-
const [a, y] = pe(!1), [N, I] = pe(n), [
|
|
2815
|
+
var R, $, se, Ie, je, Ae, Qe, le;
|
|
2816
|
+
const [a, y] = pe(!1), [N, I] = pe(n), [z, w] = pe("down"), [_, h] = pe(null), p = Je(null), k = Je(null);
|
|
2817
2817
|
li(() => {
|
|
2818
|
-
var
|
|
2818
|
+
var ve, U, ne;
|
|
2819
2819
|
if (!a) return;
|
|
2820
|
-
const G = (
|
|
2820
|
+
const G = (ve = p.current) == null ? void 0 : ve.getBoundingClientRect(), ge = (U = k.current) == null ? void 0 : U.getBoundingClientRect(), ze = (ne = j.current) == null ? void 0 : ne.getBoundingClientRect();
|
|
2821
2821
|
if (!G || !ge || !ze) return;
|
|
2822
2822
|
const he = G.bottom + ge.height < ze.bottom;
|
|
2823
2823
|
w(he ? "down" : "up");
|
|
@@ -2827,13 +2827,13 @@ const Ci = (e, i) => {
|
|
|
2827
2827
|
const ie = (G) => (ge) => {
|
|
2828
2828
|
var ze;
|
|
2829
2829
|
ge.stopPropagation(), (ge.type === "touchend" || ((ze = ge.nativeEvent) == null ? void 0 : ze.pointerType) === "touch") && h(null), M && y(!1), I((he) => t ? he.some((U) => U.value === G.value) ? he.filter((U) => U.value !== G.value) : [...he, G] : [G]);
|
|
2830
|
-
},
|
|
2830
|
+
}, F = () => {
|
|
2831
2831
|
D && D(), y(!1);
|
|
2832
2832
|
}, ae = (G) => (ge) => {
|
|
2833
2833
|
ge.stopPropagation(), I((ze) => ze.filter((he) => he.value !== G.value));
|
|
2834
|
-
},
|
|
2834
|
+
}, Y = (G) => {
|
|
2835
2835
|
G.stopPropagation(), I([]);
|
|
2836
|
-
}, H = (
|
|
2836
|
+
}, H = (R = ee(A == null ? void 0 : A.borderColor)) != null ? R : "#D9D9D9", V = ($ = ee(A == null ? void 0 : A.highlightBorderColor)) != null ? $ : "#7E57C5";
|
|
2837
2837
|
return /* @__PURE__ */ d("div", { "data-ui": "gui-custom-select", ref: p, children: /* @__PURE__ */ d(
|
|
2838
2838
|
"div",
|
|
2839
2839
|
{
|
|
@@ -2841,7 +2841,7 @@ const Ci = (e, i) => {
|
|
|
2841
2841
|
style: {
|
|
2842
2842
|
backgroundColor: ee(A == null ? void 0 : A.backgroundColor),
|
|
2843
2843
|
borderStyle: "solid",
|
|
2844
|
-
borderColor: a ?
|
|
2844
|
+
borderColor: a ? V : H,
|
|
2845
2845
|
borderWidth: (se = A == null ? void 0 : A.borderWidth) != null ? se : 1,
|
|
2846
2846
|
borderRadius: (Ie = A == null ? void 0 : A.cornerRadius) != null ? Ie : 8,
|
|
2847
2847
|
minHeight: "41px",
|
|
@@ -2854,7 +2854,7 @@ const Ci = (e, i) => {
|
|
|
2854
2854
|
gap: 10
|
|
2855
2855
|
},
|
|
2856
2856
|
tabIndex: 0,
|
|
2857
|
-
onBlur:
|
|
2857
|
+
onBlur: F,
|
|
2858
2858
|
onClick: () => y(!a),
|
|
2859
2859
|
children: [
|
|
2860
2860
|
/* @__PURE__ */ d(
|
|
@@ -2881,7 +2881,7 @@ const Ci = (e, i) => {
|
|
|
2881
2881
|
}
|
|
2882
2882
|
),
|
|
2883
2883
|
N.map((G) => {
|
|
2884
|
-
var ge, ze, he,
|
|
2884
|
+
var ge, ze, he, ve, U;
|
|
2885
2885
|
if (t) {
|
|
2886
2886
|
const ne = A == null ? void 0 : A.chip;
|
|
2887
2887
|
return /* @__PURE__ */ d(
|
|
@@ -2899,8 +2899,8 @@ const Ci = (e, i) => {
|
|
|
2899
2899
|
children: [
|
|
2900
2900
|
/* @__PURE__ */ d(
|
|
2901
2901
|
fe,
|
|
2902
|
-
J(
|
|
2903
|
-
fontSize: (
|
|
2902
|
+
J(O({}, ne == null ? void 0 : ne.title), {
|
|
2903
|
+
fontSize: (ve = (he = ne == null ? void 0 : ne.title) == null ? void 0 : he.fontSize) != null ? ve : 13,
|
|
2904
2904
|
text: G.label
|
|
2905
2905
|
})
|
|
2906
2906
|
),
|
|
@@ -2915,7 +2915,7 @@ const Ci = (e, i) => {
|
|
|
2915
2915
|
height: "16px"
|
|
2916
2916
|
},
|
|
2917
2917
|
onClick: ae(G),
|
|
2918
|
-
children: ne != null && ne.removeImage ? /* @__PURE__ */ d(_e,
|
|
2918
|
+
children: ne != null && ne.removeImage ? /* @__PURE__ */ d(_e, O({}, ne.removeImage)) : /* @__PURE__ */ d(_e, { imageId: "cross" })
|
|
2919
2919
|
}
|
|
2920
2920
|
)
|
|
2921
2921
|
]
|
|
@@ -2931,7 +2931,7 @@ const Ci = (e, i) => {
|
|
|
2931
2931
|
display: "flex",
|
|
2932
2932
|
userSelect: "none"
|
|
2933
2933
|
},
|
|
2934
|
-
children: /* @__PURE__ */ d(fe, J(
|
|
2934
|
+
children: /* @__PURE__ */ d(fe, J(O({}, ne), { fontSize: (U = ne == null ? void 0 : ne.fontSize) != null ? U : 13, text: G.label }))
|
|
2935
2935
|
},
|
|
2936
2936
|
G.value
|
|
2937
2937
|
);
|
|
@@ -2951,8 +2951,8 @@ const Ci = (e, i) => {
|
|
|
2951
2951
|
height: "16px",
|
|
2952
2952
|
zIndex: 1
|
|
2953
2953
|
},
|
|
2954
|
-
onClick:
|
|
2955
|
-
children: A != null && A.clearButton ? /* @__PURE__ */ d(_e,
|
|
2954
|
+
onClick: Y,
|
|
2955
|
+
children: A != null && A.clearButton ? /* @__PURE__ */ d(_e, O({}, A.clearButton)) : /* @__PURE__ */ d(_e, { imageId: "cross" })
|
|
2956
2956
|
}
|
|
2957
2957
|
) : null,
|
|
2958
2958
|
r ? /* @__PURE__ */ d(
|
|
@@ -2965,15 +2965,15 @@ const Ci = (e, i) => {
|
|
|
2965
2965
|
}
|
|
2966
2966
|
}
|
|
2967
2967
|
) : null,
|
|
2968
|
-
/* @__PURE__ */ d(
|
|
2968
|
+
/* @__PURE__ */ d(BM, { isOpen: a, image: A == null ? void 0 : A.expandButton }),
|
|
2969
2969
|
a && /* @__PURE__ */ d(
|
|
2970
2970
|
"div",
|
|
2971
2971
|
{
|
|
2972
2972
|
"data-ui": "gui-custom-select-dropdown-menu",
|
|
2973
2973
|
ref: k,
|
|
2974
|
-
style: J(
|
|
2974
|
+
style: J(O({
|
|
2975
2975
|
position: "absolute"
|
|
2976
|
-
},
|
|
2976
|
+
}, z === "down" ? { top: "calc(100% + 1px)" } : { bottom: "calc(100% + 1px)" }), {
|
|
2977
2977
|
left: 0,
|
|
2978
2978
|
border: "1px solid #e8e8e8",
|
|
2979
2979
|
width: "100%",
|
|
@@ -2996,7 +2996,7 @@ const Ci = (e, i) => {
|
|
|
2996
2996
|
children: i.map((G) => {
|
|
2997
2997
|
const ge = N.some((ze) => ze.value === G.value);
|
|
2998
2998
|
return /* @__PURE__ */ d(
|
|
2999
|
-
|
|
2999
|
+
WM,
|
|
3000
3000
|
{
|
|
3001
3001
|
isChosen: ge,
|
|
3002
3002
|
option: G,
|
|
@@ -3013,7 +3013,7 @@ const Ci = (e, i) => {
|
|
|
3013
3013
|
]
|
|
3014
3014
|
}
|
|
3015
3015
|
) });
|
|
3016
|
-
},
|
|
3016
|
+
}, ZM = ({
|
|
3017
3017
|
control: e,
|
|
3018
3018
|
layout: i,
|
|
3019
3019
|
dataSourceQuestion: t,
|
|
@@ -3035,7 +3035,7 @@ const Ci = (e, i) => {
|
|
|
3035
3035
|
boxSizing: "border-box"
|
|
3036
3036
|
},
|
|
3037
3037
|
children: [
|
|
3038
|
-
i.title && /* @__PURE__ */ d(fe, J(
|
|
3038
|
+
i.title && /* @__PURE__ */ d(fe, J(O({}, i.title), { text: t.text, htmlFor: o })),
|
|
3039
3039
|
/* @__PURE__ */ d(
|
|
3040
3040
|
jo,
|
|
3041
3041
|
{
|
|
@@ -3043,7 +3043,7 @@ const Ci = (e, i) => {
|
|
|
3043
3043
|
control: e,
|
|
3044
3044
|
rules: {
|
|
3045
3045
|
required: !!t.required,
|
|
3046
|
-
validate:
|
|
3046
|
+
validate: vi(t.validators, !!t.required)
|
|
3047
3047
|
},
|
|
3048
3048
|
render: ({ field: s }) => {
|
|
3049
3049
|
const M = n.find((D) => D.value === s.value);
|
|
@@ -3072,7 +3072,7 @@ const Ci = (e, i) => {
|
|
|
3072
3072
|
]
|
|
3073
3073
|
}
|
|
3074
3074
|
);
|
|
3075
|
-
},
|
|
3075
|
+
}, HM = ({
|
|
3076
3076
|
control: e,
|
|
3077
3077
|
layout: i,
|
|
3078
3078
|
dataSourceQuestion: t,
|
|
@@ -3094,7 +3094,7 @@ const Ci = (e, i) => {
|
|
|
3094
3094
|
boxSizing: "border-box"
|
|
3095
3095
|
},
|
|
3096
3096
|
children: [
|
|
3097
|
-
i.title && /* @__PURE__ */ d(fe, J(
|
|
3097
|
+
i.title && /* @__PURE__ */ d(fe, J(O({}, i.title), { text: t.text, htmlFor: o })),
|
|
3098
3098
|
/* @__PURE__ */ d(
|
|
3099
3099
|
jo,
|
|
3100
3100
|
{
|
|
@@ -3102,7 +3102,7 @@ const Ci = (e, i) => {
|
|
|
3102
3102
|
control: e,
|
|
3103
3103
|
rules: {
|
|
3104
3104
|
required: !!t.required,
|
|
3105
|
-
validate:
|
|
3105
|
+
validate: vi(t.validators, !!t.required)
|
|
3106
3106
|
},
|
|
3107
3107
|
render: ({ field: s }) => {
|
|
3108
3108
|
const M = n.filter((D) => {
|
|
@@ -3142,7 +3142,7 @@ const Ci = (e, i) => {
|
|
|
3142
3142
|
window.removeEventListener("keydown", t), window.removeEventListener("mousedown", r);
|
|
3143
3143
|
};
|
|
3144
3144
|
}, []), e;
|
|
3145
|
-
},
|
|
3145
|
+
}, GM = ({
|
|
3146
3146
|
option: e,
|
|
3147
3147
|
layout: i,
|
|
3148
3148
|
dataSourceQuestion: t,
|
|
@@ -3159,7 +3159,7 @@ const Ci = (e, i) => {
|
|
|
3159
3159
|
return /* @__PURE__ */ d("div", { children: /* @__PURE__ */ d(
|
|
3160
3160
|
"label",
|
|
3161
3161
|
{
|
|
3162
|
-
style:
|
|
3162
|
+
style: O({
|
|
3163
3163
|
display: "flex",
|
|
3164
3164
|
alignItems: "center",
|
|
3165
3165
|
alignContent: "center",
|
|
@@ -3170,18 +3170,18 @@ const Ci = (e, i) => {
|
|
|
3170
3170
|
/* @__PURE__ */ d(
|
|
3171
3171
|
"div",
|
|
3172
3172
|
{
|
|
3173
|
-
style:
|
|
3173
|
+
style: O({
|
|
3174
3174
|
display: "flex",
|
|
3175
3175
|
alignItems: "center",
|
|
3176
3176
|
alignContent: "center"
|
|
3177
3177
|
}, I),
|
|
3178
|
-
children: /* @__PURE__ */ d(_e,
|
|
3178
|
+
children: /* @__PURE__ */ d(_e, O({}, A ? a.image : c.image))
|
|
3179
3179
|
}
|
|
3180
3180
|
),
|
|
3181
|
-
/* @__PURE__ */ d(fe, J(
|
|
3181
|
+
/* @__PURE__ */ d(fe, J(O({}, A ? a.title : c.title), { text: e.text })),
|
|
3182
3182
|
/* @__PURE__ */ d(
|
|
3183
3183
|
"input",
|
|
3184
|
-
J(
|
|
3184
|
+
J(O({
|
|
3185
3185
|
style: {
|
|
3186
3186
|
width: 1,
|
|
3187
3187
|
height: 1,
|
|
@@ -3191,7 +3191,7 @@ const Ci = (e, i) => {
|
|
|
3191
3191
|
}
|
|
3192
3192
|
}, r(D, {
|
|
3193
3193
|
required: !!t.required,
|
|
3194
|
-
validate:
|
|
3194
|
+
validate: vi(
|
|
3195
3195
|
t.validators,
|
|
3196
3196
|
!!t.required
|
|
3197
3197
|
)
|
|
@@ -3205,7 +3205,7 @@ const Ci = (e, i) => {
|
|
|
3205
3205
|
]
|
|
3206
3206
|
}
|
|
3207
3207
|
) }, e.id);
|
|
3208
|
-
},
|
|
3208
|
+
}, JM = ({
|
|
3209
3209
|
layout: e,
|
|
3210
3210
|
register: i,
|
|
3211
3211
|
watch: t,
|
|
@@ -3230,11 +3230,11 @@ const Ci = (e, i) => {
|
|
|
3230
3230
|
padding: 0,
|
|
3231
3231
|
marginBottom: "16px"
|
|
3232
3232
|
},
|
|
3233
|
-
children: /* @__PURE__ */ d(fe, J(
|
|
3233
|
+
children: /* @__PURE__ */ d(fe, J(O({}, e.title), { text: r.text }))
|
|
3234
3234
|
}
|
|
3235
3235
|
),
|
|
3236
3236
|
r.options.map((n) => /* @__PURE__ */ d(
|
|
3237
|
-
|
|
3237
|
+
GM,
|
|
3238
3238
|
{
|
|
3239
3239
|
register: i,
|
|
3240
3240
|
watch: t,
|
|
@@ -3246,7 +3246,7 @@ const Ci = (e, i) => {
|
|
|
3246
3246
|
))
|
|
3247
3247
|
]
|
|
3248
3248
|
}
|
|
3249
|
-
) }),
|
|
3249
|
+
) }), $M = ({
|
|
3250
3250
|
option: e,
|
|
3251
3251
|
layout: i,
|
|
3252
3252
|
dataSourceQuestion: t,
|
|
@@ -3274,7 +3274,7 @@ const Ci = (e, i) => {
|
|
|
3274
3274
|
children: /* @__PURE__ */ d(
|
|
3275
3275
|
"label",
|
|
3276
3276
|
{
|
|
3277
|
-
style:
|
|
3277
|
+
style: O(O({
|
|
3278
3278
|
width: "100%",
|
|
3279
3279
|
padding: "8px 16px",
|
|
3280
3280
|
cursor: "pointer",
|
|
@@ -3284,7 +3284,7 @@ const Ci = (e, i) => {
|
|
|
3284
3284
|
children: [
|
|
3285
3285
|
/* @__PURE__ */ d(
|
|
3286
3286
|
"input",
|
|
3287
|
-
J(
|
|
3287
|
+
J(O({
|
|
3288
3288
|
style: {
|
|
3289
3289
|
width: 1,
|
|
3290
3290
|
height: 1,
|
|
@@ -3294,7 +3294,7 @@ const Ci = (e, i) => {
|
|
|
3294
3294
|
}
|
|
3295
3295
|
}, r(D, {
|
|
3296
3296
|
required: !!t.required,
|
|
3297
|
-
validate:
|
|
3297
|
+
validate: vi(
|
|
3298
3298
|
t.validators,
|
|
3299
3299
|
!!t.required
|
|
3300
3300
|
)
|
|
@@ -3305,14 +3305,14 @@ const Ci = (e, i) => {
|
|
|
3305
3305
|
onBlur: () => s(!1)
|
|
3306
3306
|
})
|
|
3307
3307
|
),
|
|
3308
|
-
/* @__PURE__ */ d(fe, J(
|
|
3308
|
+
/* @__PURE__ */ d(fe, J(O({}, A ? a.title : c.title), { text: e.text }))
|
|
3309
3309
|
]
|
|
3310
3310
|
}
|
|
3311
3311
|
)
|
|
3312
3312
|
},
|
|
3313
3313
|
e.id
|
|
3314
3314
|
);
|
|
3315
|
-
},
|
|
3315
|
+
}, XM = ({
|
|
3316
3316
|
layout: e,
|
|
3317
3317
|
watch: i,
|
|
3318
3318
|
register: t,
|
|
@@ -3334,11 +3334,11 @@ const Ci = (e, i) => {
|
|
|
3334
3334
|
padding: 0,
|
|
3335
3335
|
marginBottom: "16px"
|
|
3336
3336
|
},
|
|
3337
|
-
children: /* @__PURE__ */ d(fe, J(
|
|
3337
|
+
children: /* @__PURE__ */ d(fe, J(O({}, e.title), { text: r.text }))
|
|
3338
3338
|
}
|
|
3339
3339
|
),
|
|
3340
3340
|
/* @__PURE__ */ d("div", { style: { display: "flex", justifyContent: "center", gap: 5 }, children: r.options.map((n) => /* @__PURE__ */ d(
|
|
3341
|
-
|
|
3341
|
+
$M,
|
|
3342
3342
|
{
|
|
3343
3343
|
register: t,
|
|
3344
3344
|
watch: i,
|
|
@@ -3350,7 +3350,7 @@ const Ci = (e, i) => {
|
|
|
3350
3350
|
)) })
|
|
3351
3351
|
]
|
|
3352
3352
|
}
|
|
3353
|
-
) }),
|
|
3353
|
+
) }), KM = ({
|
|
3354
3354
|
children: e,
|
|
3355
3355
|
backgroundColor: i,
|
|
3356
3356
|
cornerRadius: t = 0,
|
|
@@ -3359,7 +3359,7 @@ const Ci = (e, i) => {
|
|
|
3359
3359
|
validationBorderColor: o,
|
|
3360
3360
|
validationBorderWidth: s
|
|
3361
3361
|
}) => {
|
|
3362
|
-
const M =
|
|
3362
|
+
const M = O({
|
|
3363
3363
|
position: "relative",
|
|
3364
3364
|
flexShrink: 0,
|
|
3365
3365
|
width: "100%",
|
|
@@ -3370,7 +3370,7 @@ const Ci = (e, i) => {
|
|
|
3370
3370
|
padding: "16px",
|
|
3371
3371
|
boxSizing: "border-box",
|
|
3372
3372
|
height: "auto"
|
|
3373
|
-
}, r &&
|
|
3373
|
+
}, r && O(O({}, ee(o) && {
|
|
3374
3374
|
borderColor: o,
|
|
3375
3375
|
borderStyle: "solid"
|
|
3376
3376
|
}), s && { borderWidth: s }));
|
|
@@ -3389,12 +3389,12 @@ const Ci = (e, i) => {
|
|
|
3389
3389
|
),
|
|
3390
3390
|
e
|
|
3391
3391
|
] });
|
|
3392
|
-
},
|
|
3392
|
+
}, qM = ({ validationErrorsTypes: e, title: i }) => e ? /* @__PURE__ */ d("div", { style: { width: "100%", fontSize: 12 }, children: Object.entries(e).map(([t, r]) => /* @__PURE__ */ d(fe, J(O({}, i), { text: r }), t)) }) : null, ea = ({
|
|
3393
3393
|
layout: e,
|
|
3394
3394
|
dataSourceQuestion: i,
|
|
3395
3395
|
register: t
|
|
3396
3396
|
}) => {
|
|
3397
|
-
var o, s, M, D, j, A, c, a, y, N, I,
|
|
3397
|
+
var o, s, M, D, j, A, c, a, y, N, I, z, w, _, h, p;
|
|
3398
3398
|
const r = String(i.id), n = (k) => k ? k === rt.EMAIL ? "email" : k === rt.FREE_TEXT ? "text" : k === rt.NUMBER ? "number" : k === rt.SECURE ? "password" : "text" : "text";
|
|
3399
3399
|
return /* @__PURE__ */ d(
|
|
3400
3400
|
"div",
|
|
@@ -3405,12 +3405,12 @@ const Ci = (e, i) => {
|
|
|
3405
3405
|
gap: "16px"
|
|
3406
3406
|
},
|
|
3407
3407
|
children: [
|
|
3408
|
-
/* @__PURE__ */ d(fe, J(
|
|
3408
|
+
/* @__PURE__ */ d(fe, J(O({}, e.title), { text: i.text, htmlFor: r })),
|
|
3409
3409
|
/* @__PURE__ */ d(
|
|
3410
3410
|
"input",
|
|
3411
|
-
J(
|
|
3411
|
+
J(O({}, t(r, {
|
|
3412
3412
|
required: !!i.required,
|
|
3413
|
-
validate:
|
|
3413
|
+
validate: vi(i.validators, !!i.required)
|
|
3414
3414
|
})), {
|
|
3415
3415
|
id: r,
|
|
3416
3416
|
type: n((o = e.textField) == null ? void 0 : o.inputType),
|
|
@@ -3422,7 +3422,7 @@ const Ci = (e, i) => {
|
|
|
3422
3422
|
borderWidth: (y = (a = e == null ? void 0 : e.textField) == null ? void 0 : a.borderWidth) != null ? y : 1,
|
|
3423
3423
|
borderColor: (I = ee((N = e == null ? void 0 : e.textField) == null ? void 0 : N.borderColor)) != null ? I : "#d9d9d9",
|
|
3424
3424
|
borderStyle: "solid",
|
|
3425
|
-
borderRadius: (w = (
|
|
3425
|
+
borderRadius: (w = (z = e == null ? void 0 : e.textField) == null ? void 0 : z.cornerRadius) != null ? w : 8,
|
|
3426
3426
|
padding: "11px",
|
|
3427
3427
|
boxSizing: "border-box",
|
|
3428
3428
|
backgroundColor: (h = ee((_ = e == null ? void 0 : e.textField) == null ? void 0 : _.backgroundColor)) != null ? h : "#FFFFFF",
|
|
@@ -3435,12 +3435,12 @@ const Ci = (e, i) => {
|
|
|
3435
3435
|
]
|
|
3436
3436
|
}
|
|
3437
3437
|
);
|
|
3438
|
-
},
|
|
3438
|
+
}, ia = ({
|
|
3439
3439
|
layout: e,
|
|
3440
3440
|
dataSourceQuestion: i,
|
|
3441
3441
|
register: t
|
|
3442
3442
|
}) => {
|
|
3443
|
-
var n, o, s, M, D, j, A, c, a, y, N, I,
|
|
3443
|
+
var n, o, s, M, D, j, A, c, a, y, N, I, z;
|
|
3444
3444
|
const r = String(i.id);
|
|
3445
3445
|
return /* @__PURE__ */ d(
|
|
3446
3446
|
"div",
|
|
@@ -3451,12 +3451,12 @@ const Ci = (e, i) => {
|
|
|
3451
3451
|
gap: "16px"
|
|
3452
3452
|
},
|
|
3453
3453
|
children: [
|
|
3454
|
-
/* @__PURE__ */ d(fe, J(
|
|
3454
|
+
/* @__PURE__ */ d(fe, J(O({}, e.title), { text: i.text, htmlFor: r })),
|
|
3455
3455
|
/* @__PURE__ */ d(
|
|
3456
3456
|
"textarea",
|
|
3457
|
-
J(
|
|
3457
|
+
J(O({}, t(r, {
|
|
3458
3458
|
required: !!i.required,
|
|
3459
|
-
validate:
|
|
3459
|
+
validate: vi(i.validators, !!i.required)
|
|
3460
3460
|
})), {
|
|
3461
3461
|
id: r,
|
|
3462
3462
|
placeholder: (n = i.placeholder) != null ? n : "",
|
|
@@ -3478,7 +3478,7 @@ const Ci = (e, i) => {
|
|
|
3478
3478
|
borderRadius: (N = (y = e == null ? void 0 : e.textField) == null ? void 0 : y.cornerRadius) != null ? N : 8,
|
|
3479
3479
|
padding: "11px",
|
|
3480
3480
|
boxSizing: "border-box",
|
|
3481
|
-
backgroundColor: (
|
|
3481
|
+
backgroundColor: (z = ee((I = e == null ? void 0 : e.textField) == null ? void 0 : I.backgroundColor)) != null ? z : "#FFFFFF",
|
|
3482
3482
|
outlineColor: Ji
|
|
3483
3483
|
}
|
|
3484
3484
|
})
|
|
@@ -3509,15 +3509,15 @@ const Ci = (e, i) => {
|
|
|
3509
3509
|
};
|
|
3510
3510
|
ri.MODULE = at, ri.ERROR_ENUM_NAME = "GuiModuleError", ri.SHORT_CODE = "GM";
|
|
3511
3511
|
let Wi = ri;
|
|
3512
|
-
const
|
|
3513
|
-
const D = Yn(t), { perform: j } = zi(), A = s ?
|
|
3512
|
+
const ta = ({ header: e, title: i, buttons: t, footer: r, questions: n, dataSource: o, properties: s, backgroundColor: M }) => {
|
|
3513
|
+
const D = Yn(t), { perform: j } = zi(), A = s ? Bs(o.questions, s) : {}, c = Je(null), {
|
|
3514
3514
|
register: a,
|
|
3515
3515
|
handleSubmit: y,
|
|
3516
3516
|
formState: { errors: N },
|
|
3517
3517
|
reset: I,
|
|
3518
|
-
watch:
|
|
3518
|
+
watch: z,
|
|
3519
3519
|
control: w
|
|
3520
|
-
} =
|
|
3520
|
+
} = VM({
|
|
3521
3521
|
criteriaMode: "all",
|
|
3522
3522
|
defaultValues: A
|
|
3523
3523
|
});
|
|
@@ -3525,7 +3525,7 @@ const ia = ({ header: e, title: i, buttons: t, footer: r, questions: n, dataSour
|
|
|
3525
3525
|
"form",
|
|
3526
3526
|
{
|
|
3527
3527
|
onSubmit: y((h) => {
|
|
3528
|
-
j(
|
|
3528
|
+
j(Fs(h), D), I();
|
|
3529
3529
|
}),
|
|
3530
3530
|
style: {
|
|
3531
3531
|
height: "100%",
|
|
@@ -3556,7 +3556,7 @@ const ia = ({ header: e, title: i, buttons: t, footer: r, questions: n, dataSour
|
|
|
3556
3556
|
ref: c,
|
|
3557
3557
|
children: [
|
|
3558
3558
|
i && /** Screen title */
|
|
3559
|
-
/* @__PURE__ */ d("div", { style: { lineHeight: "39.2px", width: "100%" }, children: /* @__PURE__ */ d(fe,
|
|
3559
|
+
/* @__PURE__ */ d("div", { style: { lineHeight: "39.2px", width: "100%" }, children: /* @__PURE__ */ d(fe, O({}, i)) }),
|
|
3560
3560
|
/* @__PURE__ */ d(
|
|
3561
3561
|
"div",
|
|
3562
3562
|
{
|
|
@@ -3565,81 +3565,81 @@ const ia = ({ header: e, title: i, buttons: t, footer: r, questions: n, dataSour
|
|
|
3565
3565
|
style: { width: "100%", display: "flex", gap: "10px", flexDirection: "column" },
|
|
3566
3566
|
children: o.questions.map((h) => {
|
|
3567
3567
|
var H;
|
|
3568
|
-
const p = o.static, k = (
|
|
3568
|
+
const p = o.static, k = (V, R) => R.find(($) => {
|
|
3569
3569
|
var se;
|
|
3570
3570
|
if ((se = $.questionIds) != null && se.length)
|
|
3571
|
-
return $.questionIds.find((Ie) =>
|
|
3572
|
-
}), ie = (
|
|
3573
|
-
if (!
|
|
3574
|
-
const
|
|
3571
|
+
return $.questionIds.find((Ie) => V === Ie);
|
|
3572
|
+
}), ie = (V, R) => R.find(($) => !$.questionIds && $.answerType === V), F = p ? k(String(h.id), n.itemTypes) || ie(h.answerType, n.itemTypes) : n.itemTypes.find((V) => V.answerType === h.answerType);
|
|
3573
|
+
if (!F) {
|
|
3574
|
+
const V = new Wi({
|
|
3575
3575
|
errorCode: ut.DECODING_FAILED,
|
|
3576
3576
|
message: "The question template has not been found"
|
|
3577
3577
|
});
|
|
3578
|
-
j(
|
|
3578
|
+
j(V);
|
|
3579
3579
|
return;
|
|
3580
3580
|
}
|
|
3581
|
-
const ae =
|
|
3581
|
+
const ae = F == null ? void 0 : F.displayType, Y = h.id in N && ((H = N[h.id]) == null ? void 0 : H.types);
|
|
3582
3582
|
return (
|
|
3583
3583
|
/** Question */
|
|
3584
3584
|
/* @__PURE__ */ d(be, { children: [
|
|
3585
3585
|
/* @__PURE__ */ d(
|
|
3586
|
-
|
|
3586
|
+
KM,
|
|
3587
3587
|
{
|
|
3588
|
-
backgroundColor:
|
|
3589
|
-
cornerRadius:
|
|
3590
|
-
isError: !!
|
|
3588
|
+
backgroundColor: F == null ? void 0 : F.backgroundColor,
|
|
3589
|
+
cornerRadius: F == null ? void 0 : F.cornerRadius,
|
|
3590
|
+
isError: !!Y,
|
|
3591
3591
|
isRequired: h.required,
|
|
3592
|
-
validationBorderColor:
|
|
3593
|
-
validationBorderWidth:
|
|
3592
|
+
validationBorderColor: F == null ? void 0 : F.validationBorderColor,
|
|
3593
|
+
validationBorderWidth: F == null ? void 0 : F.validationBorderWidth,
|
|
3594
3594
|
children: [
|
|
3595
3595
|
ae === mi.TEXT_EXPANDABLE && /* @__PURE__ */ d(
|
|
3596
|
-
|
|
3596
|
+
ia,
|
|
3597
3597
|
{
|
|
3598
|
-
layout:
|
|
3598
|
+
layout: F,
|
|
3599
3599
|
dataSourceQuestion: h,
|
|
3600
3600
|
register: a
|
|
3601
3601
|
}
|
|
3602
3602
|
),
|
|
3603
3603
|
ae === mi.TEXT_SINGLE_LINE && /* @__PURE__ */ d(
|
|
3604
|
-
|
|
3604
|
+
ea,
|
|
3605
3605
|
{
|
|
3606
|
-
layout:
|
|
3606
|
+
layout: F,
|
|
3607
3607
|
dataSourceQuestion: h,
|
|
3608
3608
|
register: a
|
|
3609
3609
|
}
|
|
3610
3610
|
),
|
|
3611
3611
|
ae === mi.SELECTOR_OPTIONS && /* @__PURE__ */ d(
|
|
3612
|
-
|
|
3612
|
+
JM,
|
|
3613
3613
|
{
|
|
3614
|
-
layout:
|
|
3614
|
+
layout: F,
|
|
3615
3615
|
dataSourceQuestion: h,
|
|
3616
|
-
watch:
|
|
3616
|
+
watch: z,
|
|
3617
3617
|
register: a
|
|
3618
3618
|
}
|
|
3619
3619
|
),
|
|
3620
3620
|
ae === mi.SELECTOR_BUTTONS && /* @__PURE__ */ d(
|
|
3621
|
-
|
|
3621
|
+
XM,
|
|
3622
3622
|
{
|
|
3623
|
-
layout:
|
|
3623
|
+
layout: F,
|
|
3624
3624
|
dataSourceQuestion: h,
|
|
3625
|
-
watch:
|
|
3625
|
+
watch: z,
|
|
3626
3626
|
register: a
|
|
3627
3627
|
}
|
|
3628
3628
|
),
|
|
3629
3629
|
ae === mi.SELECTOR_DROPDOWN && /* @__PURE__ */ d(
|
|
3630
|
-
|
|
3630
|
+
ZM,
|
|
3631
3631
|
{
|
|
3632
3632
|
control: w,
|
|
3633
|
-
layout:
|
|
3633
|
+
layout: F,
|
|
3634
3634
|
dataSourceQuestion: h,
|
|
3635
3635
|
parentElementRef: c
|
|
3636
3636
|
}
|
|
3637
3637
|
),
|
|
3638
3638
|
ae === mi.MULTI_SELECTOR_DROPDOWN && /* @__PURE__ */ d(
|
|
3639
|
-
|
|
3639
|
+
HM,
|
|
3640
3640
|
{
|
|
3641
3641
|
control: w,
|
|
3642
|
-
layout:
|
|
3642
|
+
layout: F,
|
|
3643
3643
|
dataSourceQuestion: h,
|
|
3644
3644
|
parentElementRef: c
|
|
3645
3645
|
}
|
|
@@ -3647,11 +3647,11 @@ const ia = ({ header: e, title: i, buttons: t, footer: r, questions: n, dataSour
|
|
|
3647
3647
|
]
|
|
3648
3648
|
}
|
|
3649
3649
|
),
|
|
3650
|
-
|
|
3651
|
-
|
|
3650
|
+
Y && /* @__PURE__ */ d(
|
|
3651
|
+
qM,
|
|
3652
3652
|
{
|
|
3653
|
-
validationErrorsTypes:
|
|
3654
|
-
title:
|
|
3653
|
+
validationErrorsTypes: Y,
|
|
3654
|
+
title: F.validationMessage
|
|
3655
3655
|
}
|
|
3656
3656
|
)
|
|
3657
3657
|
] }, h.id)
|
|
@@ -3677,15 +3677,15 @@ const ia = ({ header: e, title: i, buttons: t, footer: r, questions: n, dataSour
|
|
|
3677
3677
|
alignItems: "flex-end",
|
|
3678
3678
|
padding: "2px"
|
|
3679
3679
|
},
|
|
3680
|
-
children: t.map((h, p) => /* @__PURE__ */ d(lt,
|
|
3680
|
+
children: t.map((h, p) => /* @__PURE__ */ d(lt, O({ dataTestId: "question-button" }, h), p))
|
|
3681
3681
|
}
|
|
3682
3682
|
)
|
|
3683
3683
|
]
|
|
3684
3684
|
}
|
|
3685
3685
|
) });
|
|
3686
|
-
}, ta = {
|
|
3687
|
-
display: "none"
|
|
3688
3686
|
}, ra = {
|
|
3687
|
+
display: "none"
|
|
3688
|
+
}, na = {
|
|
3689
3689
|
display: "flex",
|
|
3690
3690
|
alignItems: "center",
|
|
3691
3691
|
justifyContent: "center",
|
|
@@ -3695,7 +3695,7 @@ const ia = ({ header: e, title: i, buttons: t, footer: r, questions: n, dataSour
|
|
|
3695
3695
|
borderRadius: "16px",
|
|
3696
3696
|
backgroundColor: "#7e57c5",
|
|
3697
3697
|
cursor: "pointer"
|
|
3698
|
-
},
|
|
3698
|
+
}, oa = {
|
|
3699
3699
|
position: "relative",
|
|
3700
3700
|
display: "flex",
|
|
3701
3701
|
flexGrow: 1,
|
|
@@ -3707,7 +3707,7 @@ const ia = ({ header: e, title: i, buttons: t, footer: r, questions: n, dataSour
|
|
|
3707
3707
|
width: "100%",
|
|
3708
3708
|
minHeight: "100%",
|
|
3709
3709
|
overflow: "auto"
|
|
3710
|
-
},
|
|
3710
|
+
}, sa = ({
|
|
3711
3711
|
header: e,
|
|
3712
3712
|
footer: i,
|
|
3713
3713
|
buttons: t,
|
|
@@ -3715,12 +3715,12 @@ const ia = ({ header: e, title: i, buttons: t, footer: r, questions: n, dataSour
|
|
|
3715
3715
|
selectionLimit: n
|
|
3716
3716
|
}) => {
|
|
3717
3717
|
var A, c;
|
|
3718
|
-
const { perform: o } = zi(), s =
|
|
3718
|
+
const { perform: o } = zi(), s = Je(null), M = typeof n == "number" && (n === 0 || n > 1), D = (a) => De(null, null, function* () {
|
|
3719
3719
|
var N;
|
|
3720
3720
|
const y = Array.from((N = a.currentTarget.files) != null ? N : []);
|
|
3721
3721
|
if (y.length)
|
|
3722
3722
|
try {
|
|
3723
|
-
const
|
|
3723
|
+
const z = (yield Promise.allSettled(
|
|
3724
3724
|
y.map((w) => De(null, null, function* () {
|
|
3725
3725
|
return {
|
|
3726
3726
|
content: yield Qn(w),
|
|
@@ -3738,7 +3738,7 @@ const ia = ({ header: e, title: i, buttons: t, footer: r, questions: n, dataSour
|
|
|
3738
3738
|
o({
|
|
3739
3739
|
cancel: !1,
|
|
3740
3740
|
permissionDenied: !1,
|
|
3741
|
-
files:
|
|
3741
|
+
files: z
|
|
3742
3742
|
});
|
|
3743
3743
|
} catch (I) {
|
|
3744
3744
|
console.error("Error: ", I);
|
|
@@ -3750,14 +3750,14 @@ const ia = ({ header: e, title: i, buttons: t, footer: r, questions: n, dataSour
|
|
|
3750
3750
|
return /* @__PURE__ */ d(ci, { header: e, footer: i, backgroundColor: r, children: /* @__PURE__ */ d(be, { children: /* @__PURE__ */ d(
|
|
3751
3751
|
"div",
|
|
3752
3752
|
{
|
|
3753
|
-
style: J(
|
|
3753
|
+
style: J(O({}, oa), {
|
|
3754
3754
|
justifyContent: "center"
|
|
3755
3755
|
}),
|
|
3756
3756
|
children: [
|
|
3757
3757
|
/* @__PURE__ */ d(
|
|
3758
3758
|
"input",
|
|
3759
|
-
J(
|
|
3760
|
-
style:
|
|
3759
|
+
J(O({
|
|
3760
|
+
style: ra,
|
|
3761
3761
|
ref: s,
|
|
3762
3762
|
type: "file",
|
|
3763
3763
|
accept: "image/*"
|
|
@@ -3765,12 +3765,12 @@ const ia = ({ header: e, title: i, buttons: t, footer: r, questions: n, dataSour
|
|
|
3765
3765
|
onInput: D
|
|
3766
3766
|
})
|
|
3767
3767
|
),
|
|
3768
|
-
/* @__PURE__ */ d("button", { style:
|
|
3768
|
+
/* @__PURE__ */ d("button", { style: na, onClick: j, children: /* @__PURE__ */ d(_e, { imageId: (c = (A = t == null ? void 0 : t[0]) == null ? void 0 : A.image) == null ? void 0 : c.imageId }) })
|
|
3769
3769
|
]
|
|
3770
3770
|
}
|
|
3771
3771
|
) }) });
|
|
3772
3772
|
};
|
|
3773
|
-
function
|
|
3773
|
+
function Ma(e) {
|
|
3774
3774
|
if (Object.prototype.hasOwnProperty.call(e, "__esModule")) return e;
|
|
3775
3775
|
var i = e.default;
|
|
3776
3776
|
if (typeof i == "function") {
|
|
@@ -3795,19 +3795,19 @@ function sa(e) {
|
|
|
3795
3795
|
}), t;
|
|
3796
3796
|
}
|
|
3797
3797
|
var L = {};
|
|
3798
|
-
const
|
|
3799
|
-
var Qi = { exports: {} },
|
|
3800
|
-
function
|
|
3798
|
+
const aa = /* @__PURE__ */ Ma(zM);
|
|
3799
|
+
var Qi = { exports: {} }, ua = Qi.exports, In;
|
|
3800
|
+
function la() {
|
|
3801
3801
|
return In || (In = 1, (function(e, i) {
|
|
3802
3802
|
(function(t, r) {
|
|
3803
|
-
var n = "1.0.41", o = "", s = "?", M = "function", D = "undefined", j = "object", A = "string", c = "major", a = "model", y = "name", N = "type", I = "vendor",
|
|
3804
|
-
var
|
|
3803
|
+
var n = "1.0.41", o = "", s = "?", M = "function", D = "undefined", j = "object", A = "string", c = "major", a = "model", y = "name", N = "type", I = "vendor", z = "version", w = "architecture", _ = "console", h = "mobile", p = "tablet", k = "smarttv", ie = "wearable", F = "embedded", ae = 500, Y = "Amazon", H = "Apple", V = "ASUS", R = "BlackBerry", $ = "Browser", se = "Chrome", Ie = "Edge", je = "Firefox", Ae = "Google", Qe = "Honor", le = "Huawei", G = "Lenovo", ge = "LG", ze = "Microsoft", he = "Motorola", ve = "Nvidia", U = "OnePlus", ne = "Opera", Ve = "OPPO", $e = "Samsung", ii = "Sharp", Be = "Sony", gi = "Xiaomi", Mi = "Zebra", Oi = "Facebook", di = "Chromium OS", ai = "Mac OS", Ni = " Browser", Ei = function(Z, q) {
|
|
3804
|
+
var P = {};
|
|
3805
3805
|
for (var Me in Z)
|
|
3806
|
-
q[Me] && q[Me].length % 2 === 0 ?
|
|
3807
|
-
return
|
|
3806
|
+
q[Me] && q[Me].length % 2 === 0 ? P[Me] = q[Me].concat(Z[Me]) : P[Me] = Z[Me];
|
|
3807
|
+
return P;
|
|
3808
3808
|
}, ui = function(Z) {
|
|
3809
|
-
for (var q = {},
|
|
3810
|
-
q[Z[
|
|
3809
|
+
for (var q = {}, P = 0; P < Z.length; P++)
|
|
3810
|
+
q[Z[P].toUpperCase()] = Z[P];
|
|
3811
3811
|
return q;
|
|
3812
3812
|
}, Xe = function(Z, q) {
|
|
3813
3813
|
return typeof Z === A ? g(q).indexOf(g(Z)) !== -1 : !1;
|
|
@@ -3818,75 +3818,75 @@ function ua() {
|
|
|
3818
3818
|
}, x = function(Z, q) {
|
|
3819
3819
|
if (typeof Z === A)
|
|
3820
3820
|
return Z = Z.replace(/^\s\s*/, o), typeof q === D ? Z : Z.substring(0, ae);
|
|
3821
|
-
},
|
|
3822
|
-
for (var
|
|
3823
|
-
var xi = q[
|
|
3824
|
-
for (Me = Le = 0; Me < xi.length && !
|
|
3825
|
-
if (
|
|
3821
|
+
}, v = function(Z, q) {
|
|
3822
|
+
for (var P = 0, Me, Le, we, oe, W, Ye; P < q.length && !W; ) {
|
|
3823
|
+
var xi = q[P], Li = q[P + 1];
|
|
3824
|
+
for (Me = Le = 0; Me < xi.length && !W && xi[Me]; )
|
|
3825
|
+
if (W = xi[Me++].exec(Z), W)
|
|
3826
3826
|
for (we = 0; we < Li.length; we++)
|
|
3827
|
-
Ye =
|
|
3828
|
-
|
|
3827
|
+
Ye = W[++Le], oe = Li[we], typeof oe === j && oe.length > 0 ? oe.length === 2 ? typeof oe[1] == M ? this[oe[0]] = oe[1].call(this, Ye) : this[oe[0]] = oe[1] : oe.length === 3 ? typeof oe[1] === M && !(oe[1].exec && oe[1].test) ? this[oe[0]] = Ye ? oe[1].call(this, Ye, oe[2]) : r : this[oe[0]] = Ye ? Ye.replace(oe[1], oe[2]) : r : oe.length === 4 && (this[oe[0]] = Ye ? oe[3].call(this, Ye.replace(oe[1], oe[2])) : r) : this[oe] = Ye || r;
|
|
3828
|
+
P += 2;
|
|
3829
3829
|
}
|
|
3830
3830
|
}, b = function(Z, q) {
|
|
3831
|
-
for (var
|
|
3832
|
-
if (typeof q[
|
|
3833
|
-
for (var Me = 0; Me < q[
|
|
3834
|
-
if (Xe(q[
|
|
3835
|
-
return
|
|
3836
|
-
} else if (Xe(q[
|
|
3837
|
-
return
|
|
3831
|
+
for (var P in q)
|
|
3832
|
+
if (typeof q[P] === j && q[P].length > 0) {
|
|
3833
|
+
for (var Me = 0; Me < q[P].length; Me++)
|
|
3834
|
+
if (Xe(q[P][Me], Z))
|
|
3835
|
+
return P === s ? r : P;
|
|
3836
|
+
} else if (Xe(q[P], Z))
|
|
3837
|
+
return P === s ? r : P;
|
|
3838
3838
|
return q.hasOwnProperty("*") ? q["*"] : Z;
|
|
3839
|
-
}, S = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, Q = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" }, K = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [O, [y, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [O, [y, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [y, O], [/opios[\/ ]+([\w\.]+)/i], [O, [y, ne + " Mini"]], [/\bop(?:rg)?x\/([\w\.]+)/i], [O, [y, ne + " GX"]], [/\bopr\/([\w\.]+)/i], [O, [y, ne]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [O, [y, "Baidu"]], [/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i], [O, [y, "Maxthon"]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i, /(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i, /(heytap|ovi|115)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [y, O], [/quark(?:pc)?\/([-\w\.]+)/i], [O, [y, "Quark"]], [/\bddg\/([\w\.]+)/i], [O, [y, "DuckDuckGo"]], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [O, [y, "UC" + $]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [O, [y, "WeChat"]], [/konqueror\/([\w\.]+)/i], [O, [y, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [O, [y, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [O, [y, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [O, [y, "Smart Lenovo " + $]], [/(avast|avg)\/([\w\.]+)/i], [[y, /(.+)/, "$1 Secure " + $], O], [/\bfocus\/([\w\.]+)/i], [O, [y, je + " Focus"]], [/\bopt\/([\w\.]+)/i], [O, [y, ne + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [O, [y, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [O, [y, "Dolphin"]], [/coast\/([\w\.]+)/i], [O, [y, ne + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [O, [y, "MIUI" + Ni]], [/fxios\/([\w\.-]+)/i], [O, [y, je]], [/\bqihoobrowser\/?([\w\.]*)/i], [O, [y, "360"]], [/\b(qq)\/([\w\.]+)/i], [[y, /(.+)/, "$1Browser"], O], [/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i], [[y, /(.+)/, "$1" + Ni], O], [/samsungbrowser\/([\w\.]+)/i], [O, [y, $e + " Internet"]], [/metasr[\/ ]?([\d\.]+)/i], [O, [y, "Sogou Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[y, "Sogou Mobile"], O], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i], [y, O], [/(lbbrowser|rekonq)/i, /\[(linkedin)app\]/i], [y], [/ome\/([\w\.]+) \w* ?(iron) saf/i, /ome\/([\w\.]+).+qihu (360)[es]e/i], [O, y], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[y, Oi], O], [/(Klarna)\/([\w\.]+)/i, /(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /(daum)apps[\/ ]([\w\.]+)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(alipay)client\/([\w\.]+)/i, /(twitter)(?:and| f.+e\/([\w\.]+))/i, /(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i], [y, O], [/\bgsa\/([\w\.]+) .*safari\//i], [O, [y, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [O, [y, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [O, [y, se + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[y, se + " WebView"], O], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [O, [y, "Android " + $]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [y, O], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [O, [y, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [O, y], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [y, [O, b, S]], [/(webkit|khtml)\/([\w\.]+)/i], [y, O], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[y, "Netscape"], O], [/(wolvic|librewolf)\/([\w\.]+)/i], [y, O], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [O, [y, je + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /\b(links) \(([\w\.]+)/i], [y, [O, /_/g, "."]], [/(cobalt)\/([\w\.]+)/i], [y, [O, /master.|lts./, ""]]], cpu: [[/\b((amd|x|x86[-_]?|wow|win)64)\b/i], [[w, "amd64"]], [/(ia32(?=;))/i, /\b((i[346]|x)86)(pc)?\b/i], [[w, "ia32"]], [/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i], [[w, "arm64"]], [/\b(arm(v[67])?ht?n?[fl]p?)\b/i], [[w, "armhf"]], [/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i], [[w, "arm"]], [/((ppc|powerpc)(64)?)( mac|;|\))/i], [[w, /ower/, o, g]], [/ sun4\w[;\)]/i], [[w, "sparc"]], [/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i], [[w, g]]], device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [a, [I, $e], [N, p]], [/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]((?!sm-[lr])[-\w]+)/i, /sec-(sgh\w+)/i], [a, [I, $e], [N, h]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [a, [I, H], [N, h]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [a, [I, H], [N, p]], [/(macintosh);/i], [a, [I, H]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [a, [I, ii], [N, h]], [/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i], [a, [I, Qe], [N, p]], [/honor([-\w ]+)[;\)]/i], [a, [I, Qe], [N, h]], [/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i], [a, [I, le], [N, p]], [/(?:huawei)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [a, [I, le], [N, h]], [/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i, /\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i], [[a, /_/g, " "], [I, gi], [N, p]], [/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i, / ([\w ]+) miui\/v?\d/i], [[a, /_/g, " "], [I, gi], [N, h]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [a, [I, Be], [N, h]], [/\b(opd2(\d{3}a?))(?: bui|\))/i], [a, [I, b, { OnePlus: ["304", "403", "203"], "*": Be }], [N, p]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [a, [I, "Vivo"], [N, h]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [a, [I, "Realme"], [N, h]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [a, [I, he], [N, h]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [a, [I, he], [N, p]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [a, [I, ge], [N, p]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i, /\blg-?([\d\w]+) bui/i], [a, [I, ge], [N, h]], [/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i, /lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i], [a, [I, G], [N, p]], [/(nokia) (t[12][01])/i], [I, a, [N, p]], [/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i, /nokia[-_ ]?(([-\w\. ]*))/i], [[a, /_/g, " "], [N, h], [I, "Nokia"]], [/(pixel (c|tablet))\b/i], [a, [I, Ae], [N, p]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [a, [I, Ae], [N, h]], [/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [a, [I, We], [N, h]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[a, "Xperia Tablet"], [I, We], [N, p]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [a, [I, U], [N, h]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [a, [I, W], [N, p]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[a, /(.+)/g, "Fire Phone $1"], [I, W], [N, h]], [/(playbook);[-\w\),; ]+(rim)/i], [a, I, [N, p]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [a, [I, P], [N, h]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [a, [I, F], [N, p]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [a, [I, F], [N, h]], [/(nexus 9)/i], [a, [I, "HTC"], [N, p]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [I, [a, /_/g, " "], [N, h]], [/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i], [a, [I, "TCL"], [N, p]], [/(itel) ((\w+))/i], [[I, g], a, [N, b, { tablet: ["p10001l", "w7001"], "*": "mobile" }]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [a, [I, "Acer"], [N, p]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [a, [I, "Meizu"], [N, h]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [a, [I, "Ulefone"], [N, h]], [/; (energy ?\w+)(?: bui|\))/i, /; energizer ([\w ]+)(?: bui|\))/i], [a, [I, "Energizer"], [N, h]], [/; cat (b35);/i, /; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i], [a, [I, "Cat"], [N, h]], [/((?:new )?andromax[\w- ]+)(?: bui|\))/i], [a, [I, "Smartfren"], [N, h]], [/droid.+; (a(?:015|06[35]|142p?))/i], [a, [I, "Nothing"], [N, h]], [/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i, /archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i], [a, [I, "Archos"], [N, p]], [/archos ([\w ]+)( b|\))/i, /; (ac[3-6]\d\w{2,8})( b|\))/i], [a, [I, "Archos"], [N, h]], [/(imo) (tab \w+)/i, /(infinix) (x1101b?)/i], [I, a, [N, p]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i, /; (hmd|imo) ([\w ]+?)(?: bui|\))/i, /(hp) ([\w ]+\w)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i, /(oppo) ?([\w ]+) bui/i], [I, a, [N, h]], [/(kobo)\s(ereader|touch)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [I, a, [N, p]], [/(surface duo)/i], [a, [I, ze], [N, p]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [a, [I, "Fairphone"], [N, h]], [/(u304aa)/i], [a, [I, "AT&T"], [N, h]], [/\bsie-(\w*)/i], [a, [I, "Siemens"], [N, h]], [/\b(rct\w+) b/i], [a, [I, "RCA"], [N, p]], [/\b(venue[\d ]{2,7}) b/i], [a, [I, "Dell"], [N, p]], [/\b(q(?:mv|ta)\w+) b/i], [a, [I, "Verizon"], [N, p]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [a, [I, "Barnes & Noble"], [N, p]], [/\b(tm\d{3}\w+) b/i], [a, [I, "NuVision"], [N, p]], [/\b(k88) b/i], [a, [I, "ZTE"], [N, p]], [/\b(nx\d{3}j) b/i], [a, [I, "ZTE"], [N, h]], [/\b(gen\d{3}) b.+49h/i], [a, [I, "Swiss"], [N, h]], [/\b(zur\d{3}) b/i], [a, [I, "Swiss"], [N, p]], [/\b((zeki)?tb.*\b) b/i], [a, [I, "Zeki"], [N, p]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[I, "Dragon Touch"], a, [N, p]], [/\b(ns-?\w{0,9}) b/i], [a, [I, "Insignia"], [N, p]], [/\b((nxa|next)-?\w{0,9}) b/i], [a, [I, "NextBook"], [N, p]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[I, "Voice"], a, [N, h]], [/\b(lvtel\-)?(v1[12]) b/i], [[I, "LvTel"], a, [N, h]], [/\b(ph-1) /i], [a, [I, "Essential"], [N, h]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [a, [I, "Envizen"], [N, p]], [/\b(trio[-\w\. ]+) b/i], [a, [I, "MachSpeed"], [N, p]], [/\btu_(1491) b/i], [a, [I, "Rotor"], [N, p]], [/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i], [a, [I, Ce], [N, p]], [/(sprint) (\w+)/i], [I, a, [N, h]], [/(kin\.[onetw]{3})/i], [[a, /\./g, " "], [I, ze], [N, h]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [a, [I, Mi], [N, p]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [a, [I, Mi], [N, h]], [/smart-tv.+(samsung)/i], [I, [N, k]], [/hbbtv.+maple;(\d+)/i], [[a, /^/, "SmartTV"], [I, $e], [N, k]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[I, ge], [N, k]], [/(apple) ?tv/i], [I, [a, H + " TV"], [N, k]], [/crkey/i], [[a, se + "cast"], [I, Ae], [N, k]], [/droid.+aft(\w+)( bui|\))/i], [a, [I, W], [N, k]], [/(shield \w+ tv)/i], [a, [I, Ce], [N, k]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [a, [I, ii], [N, k]], [/(bravia[\w ]+)( bui|\))/i], [a, [I, We], [N, k]], [/(mi(tv|box)-?\w+) bui/i], [a, [I, gi], [N, k]], [/Hbbtv.*(technisat) (.*);/i], [I, a, [N, k]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[I, x], [a, x], [N, k]], [/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i], [a, [N, k]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[N, k]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [I, a, [N, _]], [/droid.+; (shield)( bui|\))/i], [a, [I, Ce], [N, _]], [/(playstation \w+)/i], [a, [I, We], [N, _]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [a, [I, ze], [N, _]], [/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i], [a, [I, $e], [N, ie]], [/((pebble))app/i, /(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i], [I, a, [N, ie]], [/(ow(?:19|20)?we?[1-3]{1,3})/i], [a, [I, Be], [N, ie]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [a, [I, H], [N, ie]], [/(opwwe\d{3})/i], [a, [I, U], [N, ie]], [/(moto 360)/i], [a, [I, he], [N, ie]], [/(smartwatch 3)/i], [a, [I, We], [N, ie]], [/(g watch r)/i], [a, [I, ge], [N, ie]], [/droid.+; (wt63?0{2,3})\)/i], [a, [I, Mi], [N, ie]], [/droid.+; (glass) \d/i], [a, [I, Ae], [N, ie]], [/(pico) (4|neo3(?: link|pro)?)/i], [I, a, [N, ie]], [/; (quest( \d| pro)?)/i], [a, [I, Oi], [N, ie]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [I, [N, R]], [/(aeobc)\b/i], [a, [I, W], [N, R]], [/(homepod).+mac os/i], [a, [I, H], [N, R]], [/windows iot/i], [[N, R]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i], [a, [N, h]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [a, [N, p]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[N, p]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[N, h]], [/droid .+?; ([\w\. -]+)( bui|\))/i], [a, [I, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [O, [y, Ie + "HTML"]], [/(arkweb)\/([\w\.]+)/i], [y, O], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [O, [y, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [y, O], [/ladybird\//i], [[y, "LibWeb"]], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [O, y]], os: [[/microsoft (windows) (vista|xp)/i], [y, O], [/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i], [y, [O, b, Q]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[O, b, Q], [y, "Windows"]], [/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[O, /_/g, "."], [y, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[y, ai], [O, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [O, y], [/(ubuntu) ([\w\.]+) like android/i], [[y, /(.+)/, "$1 Touch"], O], [/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i], [y, O], [/\(bb(10);/i], [O, [y, P]], [/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i], [O, [y, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [O, [y, je + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [O, [y, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [O, [y, "watchOS"]], [/crkey\/([\d\.]+)/i], [O, [y, se + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[y, di], O], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [y, O], [/(sunos) ?([\w\.\d]*)/i], [[y, "Solaris"], O], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [y, O]] }, V = function(Z, q) {
|
|
3840
|
-
if (typeof Z === j && (q = Z, Z = r), !(this instanceof
|
|
3841
|
-
return new
|
|
3842
|
-
var
|
|
3839
|
+
}, S = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, Q = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" }, K = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [z, [y, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [z, [y, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [y, z], [/opios[\/ ]+([\w\.]+)/i], [z, [y, ne + " Mini"]], [/\bop(?:rg)?x\/([\w\.]+)/i], [z, [y, ne + " GX"]], [/\bopr\/([\w\.]+)/i], [z, [y, ne]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [z, [y, "Baidu"]], [/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i], [z, [y, "Maxthon"]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i, /(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i, /(heytap|ovi|115)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [y, z], [/quark(?:pc)?\/([-\w\.]+)/i], [z, [y, "Quark"]], [/\bddg\/([\w\.]+)/i], [z, [y, "DuckDuckGo"]], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [z, [y, "UC" + $]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [z, [y, "WeChat"]], [/konqueror\/([\w\.]+)/i], [z, [y, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [z, [y, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [z, [y, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [z, [y, "Smart Lenovo " + $]], [/(avast|avg)\/([\w\.]+)/i], [[y, /(.+)/, "$1 Secure " + $], z], [/\bfocus\/([\w\.]+)/i], [z, [y, je + " Focus"]], [/\bopt\/([\w\.]+)/i], [z, [y, ne + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [z, [y, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [z, [y, "Dolphin"]], [/coast\/([\w\.]+)/i], [z, [y, ne + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [z, [y, "MIUI" + Ni]], [/fxios\/([\w\.-]+)/i], [z, [y, je]], [/\bqihoobrowser\/?([\w\.]*)/i], [z, [y, "360"]], [/\b(qq)\/([\w\.]+)/i], [[y, /(.+)/, "$1Browser"], z], [/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i], [[y, /(.+)/, "$1" + Ni], z], [/samsungbrowser\/([\w\.]+)/i], [z, [y, $e + " Internet"]], [/metasr[\/ ]?([\d\.]+)/i], [z, [y, "Sogou Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[y, "Sogou Mobile"], z], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i], [y, z], [/(lbbrowser|rekonq)/i, /\[(linkedin)app\]/i], [y], [/ome\/([\w\.]+) \w* ?(iron) saf/i, /ome\/([\w\.]+).+qihu (360)[es]e/i], [z, y], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[y, Oi], z], [/(Klarna)\/([\w\.]+)/i, /(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /(daum)apps[\/ ]([\w\.]+)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(alipay)client\/([\w\.]+)/i, /(twitter)(?:and| f.+e\/([\w\.]+))/i, /(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i], [y, z], [/\bgsa\/([\w\.]+) .*safari\//i], [z, [y, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [z, [y, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [z, [y, se + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[y, se + " WebView"], z], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [z, [y, "Android " + $]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [y, z], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [z, [y, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [z, y], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [y, [z, b, S]], [/(webkit|khtml)\/([\w\.]+)/i], [y, z], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[y, "Netscape"], z], [/(wolvic|librewolf)\/([\w\.]+)/i], [y, z], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [z, [y, je + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /\b(links) \(([\w\.]+)/i], [y, [z, /_/g, "."]], [/(cobalt)\/([\w\.]+)/i], [y, [z, /master.|lts./, ""]]], cpu: [[/\b((amd|x|x86[-_]?|wow|win)64)\b/i], [[w, "amd64"]], [/(ia32(?=;))/i, /\b((i[346]|x)86)(pc)?\b/i], [[w, "ia32"]], [/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i], [[w, "arm64"]], [/\b(arm(v[67])?ht?n?[fl]p?)\b/i], [[w, "armhf"]], [/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i], [[w, "arm"]], [/((ppc|powerpc)(64)?)( mac|;|\))/i], [[w, /ower/, o, g]], [/ sun4\w[;\)]/i], [[w, "sparc"]], [/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i], [[w, g]]], device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [a, [I, $e], [N, p]], [/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]((?!sm-[lr])[-\w]+)/i, /sec-(sgh\w+)/i], [a, [I, $e], [N, h]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [a, [I, H], [N, h]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [a, [I, H], [N, p]], [/(macintosh);/i], [a, [I, H]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [a, [I, ii], [N, h]], [/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i], [a, [I, Qe], [N, p]], [/honor([-\w ]+)[;\)]/i], [a, [I, Qe], [N, h]], [/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i], [a, [I, le], [N, p]], [/(?:huawei)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [a, [I, le], [N, h]], [/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i, /\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i], [[a, /_/g, " "], [I, gi], [N, p]], [/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i, / ([\w ]+) miui\/v?\d/i], [[a, /_/g, " "], [I, gi], [N, h]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [a, [I, Ve], [N, h]], [/\b(opd2(\d{3}a?))(?: bui|\))/i], [a, [I, b, { OnePlus: ["304", "403", "203"], "*": Ve }], [N, p]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [a, [I, "Vivo"], [N, h]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [a, [I, "Realme"], [N, h]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [a, [I, he], [N, h]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [a, [I, he], [N, p]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [a, [I, ge], [N, p]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i, /\blg-?([\d\w]+) bui/i], [a, [I, ge], [N, h]], [/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i, /lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i], [a, [I, G], [N, p]], [/(nokia) (t[12][01])/i], [I, a, [N, p]], [/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i, /nokia[-_ ]?(([-\w\. ]*))/i], [[a, /_/g, " "], [N, h], [I, "Nokia"]], [/(pixel (c|tablet))\b/i], [a, [I, Ae], [N, p]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [a, [I, Ae], [N, h]], [/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [a, [I, Be], [N, h]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[a, "Xperia Tablet"], [I, Be], [N, p]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [a, [I, U], [N, h]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [a, [I, Y], [N, p]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[a, /(.+)/g, "Fire Phone $1"], [I, Y], [N, h]], [/(playbook);[-\w\),; ]+(rim)/i], [a, I, [N, p]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [a, [I, R], [N, h]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [a, [I, V], [N, p]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [a, [I, V], [N, h]], [/(nexus 9)/i], [a, [I, "HTC"], [N, p]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [I, [a, /_/g, " "], [N, h]], [/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i], [a, [I, "TCL"], [N, p]], [/(itel) ((\w+))/i], [[I, g], a, [N, b, { tablet: ["p10001l", "w7001"], "*": "mobile" }]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [a, [I, "Acer"], [N, p]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [a, [I, "Meizu"], [N, h]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [a, [I, "Ulefone"], [N, h]], [/; (energy ?\w+)(?: bui|\))/i, /; energizer ([\w ]+)(?: bui|\))/i], [a, [I, "Energizer"], [N, h]], [/; cat (b35);/i, /; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i], [a, [I, "Cat"], [N, h]], [/((?:new )?andromax[\w- ]+)(?: bui|\))/i], [a, [I, "Smartfren"], [N, h]], [/droid.+; (a(?:015|06[35]|142p?))/i], [a, [I, "Nothing"], [N, h]], [/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i, /archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i], [a, [I, "Archos"], [N, p]], [/archos ([\w ]+)( b|\))/i, /; (ac[3-6]\d\w{2,8})( b|\))/i], [a, [I, "Archos"], [N, h]], [/(imo) (tab \w+)/i, /(infinix) (x1101b?)/i], [I, a, [N, p]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i, /; (hmd|imo) ([\w ]+?)(?: bui|\))/i, /(hp) ([\w ]+\w)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i, /(oppo) ?([\w ]+) bui/i], [I, a, [N, h]], [/(kobo)\s(ereader|touch)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [I, a, [N, p]], [/(surface duo)/i], [a, [I, ze], [N, p]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [a, [I, "Fairphone"], [N, h]], [/(u304aa)/i], [a, [I, "AT&T"], [N, h]], [/\bsie-(\w*)/i], [a, [I, "Siemens"], [N, h]], [/\b(rct\w+) b/i], [a, [I, "RCA"], [N, p]], [/\b(venue[\d ]{2,7}) b/i], [a, [I, "Dell"], [N, p]], [/\b(q(?:mv|ta)\w+) b/i], [a, [I, "Verizon"], [N, p]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [a, [I, "Barnes & Noble"], [N, p]], [/\b(tm\d{3}\w+) b/i], [a, [I, "NuVision"], [N, p]], [/\b(k88) b/i], [a, [I, "ZTE"], [N, p]], [/\b(nx\d{3}j) b/i], [a, [I, "ZTE"], [N, h]], [/\b(gen\d{3}) b.+49h/i], [a, [I, "Swiss"], [N, h]], [/\b(zur\d{3}) b/i], [a, [I, "Swiss"], [N, p]], [/\b((zeki)?tb.*\b) b/i], [a, [I, "Zeki"], [N, p]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[I, "Dragon Touch"], a, [N, p]], [/\b(ns-?\w{0,9}) b/i], [a, [I, "Insignia"], [N, p]], [/\b((nxa|next)-?\w{0,9}) b/i], [a, [I, "NextBook"], [N, p]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[I, "Voice"], a, [N, h]], [/\b(lvtel\-)?(v1[12]) b/i], [[I, "LvTel"], a, [N, h]], [/\b(ph-1) /i], [a, [I, "Essential"], [N, h]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [a, [I, "Envizen"], [N, p]], [/\b(trio[-\w\. ]+) b/i], [a, [I, "MachSpeed"], [N, p]], [/\btu_(1491) b/i], [a, [I, "Rotor"], [N, p]], [/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i], [a, [I, ve], [N, p]], [/(sprint) (\w+)/i], [I, a, [N, h]], [/(kin\.[onetw]{3})/i], [[a, /\./g, " "], [I, ze], [N, h]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [a, [I, Mi], [N, p]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [a, [I, Mi], [N, h]], [/smart-tv.+(samsung)/i], [I, [N, k]], [/hbbtv.+maple;(\d+)/i], [[a, /^/, "SmartTV"], [I, $e], [N, k]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[I, ge], [N, k]], [/(apple) ?tv/i], [I, [a, H + " TV"], [N, k]], [/crkey/i], [[a, se + "cast"], [I, Ae], [N, k]], [/droid.+aft(\w+)( bui|\))/i], [a, [I, Y], [N, k]], [/(shield \w+ tv)/i], [a, [I, ve], [N, k]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [a, [I, ii], [N, k]], [/(bravia[\w ]+)( bui|\))/i], [a, [I, Be], [N, k]], [/(mi(tv|box)-?\w+) bui/i], [a, [I, gi], [N, k]], [/Hbbtv.*(technisat) (.*);/i], [I, a, [N, k]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[I, x], [a, x], [N, k]], [/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i], [a, [N, k]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[N, k]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [I, a, [N, _]], [/droid.+; (shield)( bui|\))/i], [a, [I, ve], [N, _]], [/(playstation \w+)/i], [a, [I, Be], [N, _]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [a, [I, ze], [N, _]], [/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i], [a, [I, $e], [N, ie]], [/((pebble))app/i, /(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i], [I, a, [N, ie]], [/(ow(?:19|20)?we?[1-3]{1,3})/i], [a, [I, Ve], [N, ie]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [a, [I, H], [N, ie]], [/(opwwe\d{3})/i], [a, [I, U], [N, ie]], [/(moto 360)/i], [a, [I, he], [N, ie]], [/(smartwatch 3)/i], [a, [I, Be], [N, ie]], [/(g watch r)/i], [a, [I, ge], [N, ie]], [/droid.+; (wt63?0{2,3})\)/i], [a, [I, Mi], [N, ie]], [/droid.+; (glass) \d/i], [a, [I, Ae], [N, ie]], [/(pico) (4|neo3(?: link|pro)?)/i], [I, a, [N, ie]], [/; (quest( \d| pro)?)/i], [a, [I, Oi], [N, ie]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [I, [N, F]], [/(aeobc)\b/i], [a, [I, Y], [N, F]], [/(homepod).+mac os/i], [a, [I, H], [N, F]], [/windows iot/i], [[N, F]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i], [a, [N, h]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [a, [N, p]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[N, p]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[N, h]], [/droid .+?; ([\w\. -]+)( bui|\))/i], [a, [I, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [z, [y, Ie + "HTML"]], [/(arkweb)\/([\w\.]+)/i], [y, z], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [z, [y, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [y, z], [/ladybird\//i], [[y, "LibWeb"]], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [z, y]], os: [[/microsoft (windows) (vista|xp)/i], [y, z], [/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i], [y, [z, b, Q]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[z, b, Q], [y, "Windows"]], [/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[z, /_/g, "."], [y, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[y, ai], [z, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [z, y], [/(ubuntu) ([\w\.]+) like android/i], [[y, /(.+)/, "$1 Touch"], z], [/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i], [y, z], [/\(bb(10);/i], [z, [y, R]], [/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i], [z, [y, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [z, [y, je + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [z, [y, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [z, [y, "watchOS"]], [/crkey\/([\d\.]+)/i], [z, [y, se + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[y, di], z], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [y, z], [/(sunos) ?([\w\.\d]*)/i], [[y, "Solaris"], z], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [y, z]] }, B = function(Z, q) {
|
|
3840
|
+
if (typeof Z === j && (q = Z, Z = r), !(this instanceof B))
|
|
3841
|
+
return new B(Z, q).getResult();
|
|
3842
|
+
var P = typeof t !== D && t.navigator ? t.navigator : r, Me = Z || (P && P.userAgent ? P.userAgent : o), Le = P && P.userAgentData ? P.userAgentData : r, we = q ? Ei(K, q) : K, oe = P && P.userAgent == Me;
|
|
3843
3843
|
return this.getBrowser = function() {
|
|
3844
|
-
var
|
|
3845
|
-
return
|
|
3844
|
+
var W = {};
|
|
3845
|
+
return W[y] = r, W[z] = r, v.call(W, Me, we.browser), W[c] = T(W[z]), oe && P && P.brave && typeof P.brave.isBrave == M && (W[y] = "Brave"), W;
|
|
3846
3846
|
}, this.getCPU = function() {
|
|
3847
|
-
var
|
|
3848
|
-
return
|
|
3847
|
+
var W = {};
|
|
3848
|
+
return W[w] = r, v.call(W, Me, we.cpu), W;
|
|
3849
3849
|
}, this.getDevice = function() {
|
|
3850
|
-
var
|
|
3851
|
-
return
|
|
3850
|
+
var W = {};
|
|
3851
|
+
return W[I] = r, W[a] = r, W[N] = r, v.call(W, Me, we.device), oe && !W[N] && Le && Le.mobile && (W[N] = h), oe && W[a] == "Macintosh" && P && typeof P.standalone !== D && P.maxTouchPoints && P.maxTouchPoints > 2 && (W[a] = "iPad", W[N] = p), W;
|
|
3852
3852
|
}, this.getEngine = function() {
|
|
3853
|
-
var
|
|
3854
|
-
return
|
|
3853
|
+
var W = {};
|
|
3854
|
+
return W[y] = r, W[z] = r, v.call(W, Me, we.engine), W;
|
|
3855
3855
|
}, this.getOS = function() {
|
|
3856
|
-
var
|
|
3857
|
-
return
|
|
3856
|
+
var W = {};
|
|
3857
|
+
return W[y] = r, W[z] = r, v.call(W, Me, we.os), oe && !W[y] && Le && Le.platform && Le.platform != "Unknown" && (W[y] = Le.platform.replace(/chrome os/i, di).replace(/macos/i, ai)), W;
|
|
3858
3858
|
}, this.getResult = function() {
|
|
3859
3859
|
return { ua: this.getUA(), browser: this.getBrowser(), engine: this.getEngine(), os: this.getOS(), device: this.getDevice(), cpu: this.getCPU() };
|
|
3860
3860
|
}, this.getUA = function() {
|
|
3861
3861
|
return Me;
|
|
3862
|
-
}, this.setUA = function(
|
|
3863
|
-
return Me = typeof
|
|
3862
|
+
}, this.setUA = function(W) {
|
|
3863
|
+
return Me = typeof W === A && W.length > ae ? x(W, ae) : W, this;
|
|
3864
3864
|
}, this.setUA(Me), this;
|
|
3865
3865
|
};
|
|
3866
|
-
|
|
3866
|
+
B.VERSION = n, B.BROWSER = ui([y, z, c]), B.CPU = ui([w]), B.DEVICE = ui([a, I, N, _, h, k, p, ie, F]), B.ENGINE = B.OS = ui([y, z]), e.exports && (i = e.exports = B), i.UAParser = B;
|
|
3867
3867
|
var ue = typeof t !== D && (t.jQuery || t.Zepto);
|
|
3868
3868
|
if (ue && !ue.ua) {
|
|
3869
|
-
var Se = new
|
|
3869
|
+
var Se = new B();
|
|
3870
3870
|
ue.ua = Se.getResult(), ue.ua.get = function() {
|
|
3871
3871
|
return Se.getUA();
|
|
3872
3872
|
}, ue.ua.set = function(Z) {
|
|
3873
3873
|
Se.setUA(Z);
|
|
3874
3874
|
var q = Se.getResult();
|
|
3875
|
-
for (var
|
|
3876
|
-
ue.ua[
|
|
3875
|
+
for (var P in q)
|
|
3876
|
+
ue.ua[P] = q[P];
|
|
3877
3877
|
};
|
|
3878
3878
|
}
|
|
3879
|
-
})(typeof window == "object" ? window :
|
|
3879
|
+
})(typeof window == "object" ? window : ua);
|
|
3880
3880
|
})(Qi, Qi.exports)), Qi.exports;
|
|
3881
3881
|
}
|
|
3882
3882
|
var jn;
|
|
3883
|
-
function
|
|
3883
|
+
function ca() {
|
|
3884
3884
|
if (jn) return L;
|
|
3885
3885
|
jn = 1, Object.defineProperty(L, "__esModule", { value: !0 });
|
|
3886
3886
|
function e(f) {
|
|
3887
3887
|
return f && typeof f == "object" && "default" in f ? f.default : f;
|
|
3888
3888
|
}
|
|
3889
|
-
var i =
|
|
3889
|
+
var i = aa, t = e(i), r = la(), n = new r(), o = n.getBrowser(), s = n.getCPU(), M = n.getDevice(), D = n.getEngine(), j = n.getOS(), A = n.getUA(), c = function(u) {
|
|
3890
3890
|
return n.setUA(u);
|
|
3891
3891
|
}, a = function(u) {
|
|
3892
3892
|
if (!u) {
|
|
@@ -3938,13 +3938,13 @@ function la() {
|
|
|
3938
3938
|
}
|
|
3939
3939
|
return f;
|
|
3940
3940
|
}
|
|
3941
|
-
function
|
|
3941
|
+
function z(f) {
|
|
3942
3942
|
"@babel/helpers - typeof";
|
|
3943
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ?
|
|
3943
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? z = function(u) {
|
|
3944
3944
|
return typeof u;
|
|
3945
|
-
} :
|
|
3945
|
+
} : z = function(u) {
|
|
3946
3946
|
return u && typeof Symbol == "function" && u.constructor === Symbol && u !== Symbol.prototype ? "symbol" : typeof u;
|
|
3947
|
-
},
|
|
3947
|
+
}, z(f);
|
|
3948
3948
|
}
|
|
3949
3949
|
function w(f, u) {
|
|
3950
3950
|
if (!(f instanceof u))
|
|
@@ -3988,17 +3988,17 @@ function la() {
|
|
|
3988
3988
|
}
|
|
3989
3989
|
}), u && ae(f, u);
|
|
3990
3990
|
}
|
|
3991
|
-
function
|
|
3992
|
-
return
|
|
3991
|
+
function F(f) {
|
|
3992
|
+
return F = Object.setPrototypeOf ? Object.getPrototypeOf : function(l) {
|
|
3993
3993
|
return l.__proto__ || Object.getPrototypeOf(l);
|
|
3994
|
-
},
|
|
3994
|
+
}, F(f);
|
|
3995
3995
|
}
|
|
3996
3996
|
function ae(f, u) {
|
|
3997
3997
|
return ae = Object.setPrototypeOf || function(E, m) {
|
|
3998
3998
|
return E.__proto__ = m, E;
|
|
3999
3999
|
}, ae(f, u);
|
|
4000
4000
|
}
|
|
4001
|
-
function
|
|
4001
|
+
function Y(f, u) {
|
|
4002
4002
|
if (f == null) return {};
|
|
4003
4003
|
var l = {}, E = Object.keys(f), m, te;
|
|
4004
4004
|
for (te = 0; te < E.length; te++)
|
|
@@ -4007,7 +4007,7 @@ function la() {
|
|
|
4007
4007
|
}
|
|
4008
4008
|
function H(f, u) {
|
|
4009
4009
|
if (f == null) return {};
|
|
4010
|
-
var l =
|
|
4010
|
+
var l = Y(f, u), E, m;
|
|
4011
4011
|
if (Object.getOwnPropertySymbols) {
|
|
4012
4012
|
var te = Object.getOwnPropertySymbols(f);
|
|
4013
4013
|
for (m = 0; m < te.length; m++)
|
|
@@ -4015,17 +4015,17 @@ function la() {
|
|
|
4015
4015
|
}
|
|
4016
4016
|
return l;
|
|
4017
4017
|
}
|
|
4018
|
-
function
|
|
4018
|
+
function V(f) {
|
|
4019
4019
|
if (f === void 0)
|
|
4020
4020
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4021
4021
|
return f;
|
|
4022
4022
|
}
|
|
4023
|
-
function
|
|
4023
|
+
function R(f, u) {
|
|
4024
4024
|
if (u && (typeof u == "object" || typeof u == "function"))
|
|
4025
4025
|
return u;
|
|
4026
4026
|
if (u !== void 0)
|
|
4027
4027
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
4028
|
-
return
|
|
4028
|
+
return V(f);
|
|
4029
4029
|
}
|
|
4030
4030
|
function $(f, u) {
|
|
4031
4031
|
return se(f) || Ie(f, u) || je(f, u) || Qe();
|
|
@@ -4137,14 +4137,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4137
4137
|
default:
|
|
4138
4138
|
return ze;
|
|
4139
4139
|
}
|
|
4140
|
-
},
|
|
4140
|
+
}, ve = function(u) {
|
|
4141
4141
|
return c(u);
|
|
4142
4142
|
}, U = function(u) {
|
|
4143
4143
|
var l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "none";
|
|
4144
4144
|
return u || l;
|
|
4145
4145
|
}, ne = function() {
|
|
4146
4146
|
return typeof window != "undefined" && (window.navigator || navigator) ? window.navigator || navigator : !1;
|
|
4147
|
-
},
|
|
4147
|
+
}, Ve = function(u) {
|
|
4148
4148
|
var l = ne();
|
|
4149
4149
|
return l && l.platform && (l.platform.indexOf(u) !== -1 || l.platform === "MacIntel" && l.maxTouchPoints > 1 && !window.MSStream);
|
|
4150
4150
|
}, $e = function(u, l, E, m, te) {
|
|
@@ -4167,7 +4167,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4167
4167
|
osVersion: U(E.version),
|
|
4168
4168
|
ua: U(m)
|
|
4169
4169
|
});
|
|
4170
|
-
},
|
|
4170
|
+
}, Be = function(u, l, E, m) {
|
|
4171
4171
|
return {
|
|
4172
4172
|
isSmartTV: u,
|
|
4173
4173
|
engineName: U(l.name),
|
|
@@ -4211,7 +4211,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4211
4211
|
if (qi)
|
|
4212
4212
|
return $e(qi, E, m, te, Oe);
|
|
4213
4213
|
if (pr)
|
|
4214
|
-
return
|
|
4214
|
+
return Be(pr, m, te, Oe);
|
|
4215
4215
|
if (_r)
|
|
4216
4216
|
return gi(_r, m, te, Oe);
|
|
4217
4217
|
if (As || Ts)
|
|
@@ -4245,7 +4245,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4245
4245
|
}, x = function(u) {
|
|
4246
4246
|
var l = u.type;
|
|
4247
4247
|
return l === le.Embedded;
|
|
4248
|
-
},
|
|
4248
|
+
}, v = function(u) {
|
|
4249
4249
|
var l = u.vendor;
|
|
4250
4250
|
return U(l);
|
|
4251
4251
|
}, b = function(u) {
|
|
@@ -4260,7 +4260,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4260
4260
|
}, K = function(u) {
|
|
4261
4261
|
var l = u.name;
|
|
4262
4262
|
return l === ge.Windows;
|
|
4263
|
-
},
|
|
4263
|
+
}, B = function(u) {
|
|
4264
4264
|
var l = u.name;
|
|
4265
4265
|
return l === ge.MAC_OS;
|
|
4266
4266
|
}, ue = function(u) {
|
|
@@ -4275,7 +4275,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4275
4275
|
}, q = function(u) {
|
|
4276
4276
|
var l = u.name;
|
|
4277
4277
|
return U(l);
|
|
4278
|
-
},
|
|
4278
|
+
}, P = function(u) {
|
|
4279
4279
|
var l = u.name;
|
|
4280
4280
|
return l === G.Chrome;
|
|
4281
4281
|
}, Me = function(u) {
|
|
@@ -4290,7 +4290,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4290
4290
|
}, oe = function(u) {
|
|
4291
4291
|
var l = u.name;
|
|
4292
4292
|
return l === G.Yandex;
|
|
4293
|
-
},
|
|
4293
|
+
}, W = function(u) {
|
|
4294
4294
|
var l = u.name;
|
|
4295
4295
|
return l === G.Safari || l === G.MobileSafari;
|
|
4296
4296
|
}, Ye = function(u) {
|
|
@@ -4332,11 +4332,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4332
4332
|
var u = ne();
|
|
4333
4333
|
return u && (/iPad|iPhone|iPod/.test(u.platform) || u.platform === "MacIntel" && u.maxTouchPoints > 1) && !window.MSStream;
|
|
4334
4334
|
}, Ke = function() {
|
|
4335
|
-
return
|
|
4335
|
+
return Ve("iPad");
|
|
4336
4336
|
}, Nr = function() {
|
|
4337
|
-
return
|
|
4337
|
+
return Ve("iPhone");
|
|
4338
4338
|
}, Dr = function() {
|
|
4339
|
-
return
|
|
4339
|
+
return Ve("iPod");
|
|
4340
4340
|
}, Ir = function(u) {
|
|
4341
4341
|
return U(u);
|
|
4342
4342
|
};
|
|
@@ -4357,9 +4357,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4357
4357
|
isAndroid: Q(m),
|
|
4358
4358
|
isWinPhone: ue(m),
|
|
4359
4359
|
isIOS: Se(m) || Ke(),
|
|
4360
|
-
isChrome:
|
|
4360
|
+
isChrome: P(E),
|
|
4361
4361
|
isFirefox: Me(E),
|
|
4362
|
-
isSafari:
|
|
4362
|
+
isSafari: W(E),
|
|
4363
4363
|
isOpera: xi(E),
|
|
4364
4364
|
isIE: Li(E),
|
|
4365
4365
|
osVersion: Z(m),
|
|
@@ -4367,7 +4367,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4367
4367
|
fullBrowserVersion: Mr(E),
|
|
4368
4368
|
browserVersion: ar(E),
|
|
4369
4369
|
browserName: ur(E),
|
|
4370
|
-
mobileVendor:
|
|
4370
|
+
mobileVendor: v(l),
|
|
4371
4371
|
mobileModel: b(l),
|
|
4372
4372
|
engineName: lr(te),
|
|
4373
4373
|
engineVersion: cr(te),
|
|
@@ -4383,12 +4383,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4383
4383
|
isEdgeChromium: hi(Oe),
|
|
4384
4384
|
isLegacyEdge: we(E) && !hi(Oe),
|
|
4385
4385
|
isWindows: K(m),
|
|
4386
|
-
isMacOs:
|
|
4386
|
+
isMacOs: B(m),
|
|
4387
4387
|
isMIUI: or(E),
|
|
4388
4388
|
isSamsungBrowser: sr(E)
|
|
4389
4389
|
};
|
|
4390
4390
|
}
|
|
4391
|
-
var yr = ui(M), fr = T(M), Ar = g(M), ho = x(M), mo = Ye(o) || Ke(), wo = Le(o), Ki = Ei(M) || Ke(), Tr = ai(M), zr = Ni(M) || Ke(), Or = Xe(M), po = Xe(M), Er = Q(j), xr = ue(j), hr = Se(j) || Ke(), _o =
|
|
4391
|
+
var yr = ui(M), fr = T(M), Ar = g(M), ho = x(M), mo = Ye(o) || Ke(), wo = Le(o), Ki = Ei(M) || Ke(), Tr = ai(M), zr = Ni(M) || Ke(), Or = Xe(M), po = Xe(M), Er = Q(j), xr = ue(j), hr = Se(j) || Ke(), _o = P(o), bo = Me(o), So = W(o), Co = xi(o), mr = Li(o), vo = Z(j), Lo = q(j), ko = Mr(o), Uo = ar(o), Qo = ur(o), Yo = v(M), Po = b(M), Ro = lr(D), Fo = cr(D), Vo = Ir(A), Bo = we(o) || hi(A), Wo = oe(o), Zo = S(M), Ho = dr(), Go = Ke(), Jo = Nr(), $o = Dr(), Xo = gr(), Ko = hi(A), qo = we(o) && !hi(A), es = K(j), is = B(j), ts = or(o), rs = sr(o), ns = function(u) {
|
|
4392
4392
|
if (!u || typeof u != "string") {
|
|
4393
4393
|
console.error("No valid user agent string was provided");
|
|
4394
4394
|
return;
|
|
@@ -4447,7 +4447,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4447
4447
|
ie(l, u);
|
|
4448
4448
|
function l(E) {
|
|
4449
4449
|
var m;
|
|
4450
|
-
return w(this, l), m =
|
|
4450
|
+
return w(this, l), m = R(this, F(l).call(this, E)), m.isEventListenerAdded = !1, m.handleOrientationChange = m.handleOrientationChange.bind(V(m)), m.onOrientationChange = m.onOrientationChange.bind(V(m)), m.onPageLoad = m.onPageLoad.bind(V(m)), m.state = {
|
|
4451
4451
|
isLandscape: !1,
|
|
4452
4452
|
isPortrait: !1
|
|
4453
4453
|
}, m;
|
|
@@ -4475,7 +4475,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4475
4475
|
}, {
|
|
4476
4476
|
key: "componentDidMount",
|
|
4477
4477
|
value: function() {
|
|
4478
|
-
(typeof window == "undefined" ? "undefined" :
|
|
4478
|
+
(typeof window == "undefined" ? "undefined" : z(window)) !== void 0 && Ki && (this.isEventListenerAdded ? window.removeEventListener("load", this.onPageLoad, !1) : (this.handleOrientationChange(), window.addEventListener("load", this.onPageLoad, !1)), window.addEventListener("resize", this.onOrientationChange, !1));
|
|
4479
4479
|
}
|
|
4480
4480
|
}, {
|
|
4481
4481
|
key: "componentWillUnmount",
|
|
@@ -4510,7 +4510,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4510
4510
|
l.orientation !== Oe.orientation && E(Oe);
|
|
4511
4511
|
}, [l.orientation]);
|
|
4512
4512
|
return i.useEffect(function() {
|
|
4513
|
-
return (typeof window == "undefined" ? "undefined" :
|
|
4513
|
+
return (typeof window == "undefined" ? "undefined" : z(window)) !== void 0 && Ki && (m(), window.addEventListener("load", m, !1), window.addEventListener("resize", m, !1)), function() {
|
|
4514
4514
|
window.removeEventListener("resize", m, !1), window.removeEventListener("load", m, !1);
|
|
4515
4515
|
};
|
|
4516
4516
|
}, [m]), l;
|
|
@@ -4523,12 +4523,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4523
4523
|
var u = f || window.navigator.userAgent, l = wr(u), E = jr(l);
|
|
4524
4524
|
return [E, l];
|
|
4525
4525
|
}
|
|
4526
|
-
return L.AndroidView = os, L.BrowserTypes = G, L.BrowserView = ss, L.ConsoleView = Ns, L.CustomView = Is, L.IEView = Ms, L.IOSView = as, L.MobileOnlyView = gs, L.MobileView = us, L.OsTypes = ge, L.SmartTVView = ds, L.TabletView = ls, L.WearableView = Ds, L.WinPhoneView = cs, L.browserName = Qo, L.browserVersion = Uo, L.deviceDetect = di, L.deviceType = Zo, L.engineName = Ro, L.engineVersion = Fo, L.fullBrowserVersion = ko, L.getSelectorsByUserAgent = ns, L.getUA = Vo, L.isAndroid = Er, L.isBrowser = Or, L.isChrome = _o, L.isChromium = wo, L.isConsole = fr, L.isDesktop = po, L.isEdge = Bo, L.isEdgeChromium = Ko, L.isElectron = Xo, L.isEmbedded = ho, L.isFirefox = bo, L.isIE = mr, L.isIOS = hr, L.isIOS13 = Ho, L.isIPad13 = Go, L.isIPhone13 = Jo, L.isIPod13 = $o, L.isLegacyEdge = qo, L.isMIUI = ts, L.isMacOs = is, L.isMobile = Ki, L.isMobileOnly = Tr, L.isMobileSafari = mo, L.isOpera =
|
|
4526
|
+
return L.AndroidView = os, L.BrowserTypes = G, L.BrowserView = ss, L.ConsoleView = Ns, L.CustomView = Is, L.IEView = Ms, L.IOSView = as, L.MobileOnlyView = gs, L.MobileView = us, L.OsTypes = ge, L.SmartTVView = ds, L.TabletView = ls, L.WearableView = Ds, L.WinPhoneView = cs, L.browserName = Qo, L.browserVersion = Uo, L.deviceDetect = di, L.deviceType = Zo, L.engineName = Ro, L.engineVersion = Fo, L.fullBrowserVersion = ko, L.getSelectorsByUserAgent = ns, L.getUA = Vo, L.isAndroid = Er, L.isBrowser = Or, L.isChrome = _o, L.isChromium = wo, L.isConsole = fr, L.isDesktop = po, L.isEdge = Bo, L.isEdgeChromium = Ko, L.isElectron = Xo, L.isEmbedded = ho, L.isFirefox = bo, L.isIE = mr, L.isIOS = hr, L.isIOS13 = Ho, L.isIPad13 = Go, L.isIPhone13 = Jo, L.isIPod13 = $o, L.isLegacyEdge = qo, L.isMIUI = ts, L.isMacOs = is, L.isMobile = Ki, L.isMobileOnly = Tr, L.isMobileSafari = mo, L.isOpera = Co, L.isSafari = So, L.isSamsungBrowser = rs, L.isSmartTV = yr, L.isTablet = zr, L.isWearable = Ar, L.isWinPhone = xr, L.isWindows = es, L.isYandex = Wo, L.mobileModel = Po, L.mobileVendor = Yo, L.osName = Lo, L.osVersion = vo, L.parseUserAgent = a, L.setUserAgent = ve, L.useDeviceData = wr, L.useDeviceSelectors = fs, L.useMobileOrientation = ys, L.withOrientationChange = js, L;
|
|
4527
4527
|
}
|
|
4528
|
-
var Ii =
|
|
4529
|
-
const
|
|
4528
|
+
var Ii = ca();
|
|
4529
|
+
const ga = {
|
|
4530
4530
|
display: "none"
|
|
4531
|
-
},
|
|
4531
|
+
}, da = {
|
|
4532
4532
|
display: "flex",
|
|
4533
4533
|
alignItems: "center",
|
|
4534
4534
|
justifyContent: "center",
|
|
@@ -4538,7 +4538,7 @@ const ca = {
|
|
|
4538
4538
|
borderRadius: "16px",
|
|
4539
4539
|
background: "#7e57c5",
|
|
4540
4540
|
cursor: "pointer"
|
|
4541
|
-
},
|
|
4541
|
+
}, Na = {
|
|
4542
4542
|
position: "relative",
|
|
4543
4543
|
display: "flex",
|
|
4544
4544
|
alignItems: "center",
|
|
@@ -4547,7 +4547,7 @@ const ca = {
|
|
|
4547
4547
|
width: "100%",
|
|
4548
4548
|
minHeight: "100%",
|
|
4549
4549
|
overflow: "auto"
|
|
4550
|
-
},
|
|
4550
|
+
}, Da = ({
|
|
4551
4551
|
header: e,
|
|
4552
4552
|
footer: i,
|
|
4553
4553
|
backgroundColor: t,
|
|
@@ -4555,12 +4555,12 @@ const ca = {
|
|
|
4555
4555
|
selectionLimit: n
|
|
4556
4556
|
}) => {
|
|
4557
4557
|
var A, c;
|
|
4558
|
-
const { perform: o } = zi(), s =
|
|
4558
|
+
const { perform: o } = zi(), s = Je(null), M = typeof n == "number" && (n === 0 || n > 1), D = (a) => De(null, null, function* () {
|
|
4559
4559
|
var N;
|
|
4560
4560
|
const y = Array.from((N = a.currentTarget.files) != null ? N : []);
|
|
4561
4561
|
if (y.length)
|
|
4562
4562
|
try {
|
|
4563
|
-
const
|
|
4563
|
+
const z = (yield Promise.allSettled(
|
|
4564
4564
|
y.map((w) => De(null, null, function* () {
|
|
4565
4565
|
return {
|
|
4566
4566
|
content: yield Qn(w),
|
|
@@ -4578,7 +4578,7 @@ const ca = {
|
|
|
4578
4578
|
o({
|
|
4579
4579
|
cancel: !1,
|
|
4580
4580
|
permissionDenied: !1,
|
|
4581
|
-
files:
|
|
4581
|
+
files: z
|
|
4582
4582
|
});
|
|
4583
4583
|
} catch (I) {
|
|
4584
4584
|
console.error("Error: ", I);
|
|
@@ -4590,7 +4590,7 @@ const ca = {
|
|
|
4590
4590
|
return Fe(() => {
|
|
4591
4591
|
De(null, null, function* () {
|
|
4592
4592
|
if (Ii.isDesktop) return;
|
|
4593
|
-
const a = yield
|
|
4593
|
+
const a = yield Ws();
|
|
4594
4594
|
(a === "denied" || a === "error") && o({
|
|
4595
4595
|
cancel: !1,
|
|
4596
4596
|
permissionDenied: !0,
|
|
@@ -4600,14 +4600,14 @@ const ca = {
|
|
|
4600
4600
|
}, []), /* @__PURE__ */ d(ci, { header: e, footer: i, backgroundColor: t, children: /* @__PURE__ */ d(be, { children: /* @__PURE__ */ d(
|
|
4601
4601
|
"div",
|
|
4602
4602
|
{
|
|
4603
|
-
style: J(
|
|
4603
|
+
style: J(O({}, Na), {
|
|
4604
4604
|
justifyContent: "center"
|
|
4605
4605
|
}),
|
|
4606
4606
|
children: [
|
|
4607
4607
|
/* @__PURE__ */ d(
|
|
4608
4608
|
"input",
|
|
4609
|
-
J(
|
|
4610
|
-
style:
|
|
4609
|
+
J(O({
|
|
4610
|
+
style: ga,
|
|
4611
4611
|
ref: s,
|
|
4612
4612
|
type: "file",
|
|
4613
4613
|
accept: "image/*",
|
|
@@ -4616,22 +4616,11 @@ const ca = {
|
|
|
4616
4616
|
onInput: D
|
|
4617
4617
|
})
|
|
4618
4618
|
),
|
|
4619
|
-
/* @__PURE__ */ d("button", { style:
|
|
4619
|
+
/* @__PURE__ */ d("button", { style: da, onClick: j, children: /* @__PURE__ */ d(_e, { imageId: (c = (A = r == null ? void 0 : r[0]) == null ? void 0 : A.image) == null ? void 0 : c.imageId }) })
|
|
4620
4620
|
]
|
|
4621
4621
|
}
|
|
4622
4622
|
) }) });
|
|
4623
|
-
}
|
|
4624
|
-
function Da() {
|
|
4625
|
-
const e = Ve(null), [i, t] = pe(!1);
|
|
4626
|
-
return { ref: e, isPopoverOpen: i, openPopover: () => {
|
|
4627
|
-
var o;
|
|
4628
|
-
(o = e.current) == null || o.showPopover(), t(!0);
|
|
4629
|
-
}, closePopover: () => {
|
|
4630
|
-
var o;
|
|
4631
|
-
(o = e.current) == null || o.hidePopover(), t(!1);
|
|
4632
|
-
} };
|
|
4633
|
-
}
|
|
4634
|
-
const Ot = () => De(null, null, function* () {
|
|
4623
|
+
}, Ot = () => De(null, null, function* () {
|
|
4635
4624
|
var e;
|
|
4636
4625
|
try {
|
|
4637
4626
|
const i = yield navigator.permissions.query({ name: "geolocation" });
|
|
@@ -4704,7 +4693,13 @@ const Ot = () => De(null, null, function* () {
|
|
|
4704
4693
|
overflow: "auto",
|
|
4705
4694
|
position: "relative"
|
|
4706
4695
|
}, fa = {
|
|
4707
|
-
position: "
|
|
4696
|
+
position: "absolute",
|
|
4697
|
+
// TODO: move popup with styles with overlay styles to common component (BaseContainer?)
|
|
4698
|
+
width: "100%",
|
|
4699
|
+
height: "100%",
|
|
4700
|
+
display: "flex",
|
|
4701
|
+
alignItems: "center",
|
|
4702
|
+
justifyContent: "center",
|
|
4708
4703
|
inset: 0,
|
|
4709
4704
|
backdropFilter: "blur(8px)",
|
|
4710
4705
|
WebkitBackdropFilter: "blur(8px)",
|
|
@@ -4726,10 +4721,10 @@ const Ot = () => De(null, null, function* () {
|
|
|
4726
4721
|
fontWeight: "400",
|
|
4727
4722
|
width: "100%"
|
|
4728
4723
|
}, Oa = {
|
|
4724
|
+
position: "relative",
|
|
4729
4725
|
padding: "32px 24px 0 24px",
|
|
4730
4726
|
border: "1px solid rgba(0, 0, 0, 0.06)",
|
|
4731
|
-
width: "min(400px, calc(100vw - 32px))"
|
|
4732
|
-
gridTemplateRows: "auto 1fr"
|
|
4727
|
+
width: "min(400px, calc(100vw - 32px))"
|
|
4733
4728
|
}, Ea = {
|
|
4734
4729
|
marginBottom: "10px",
|
|
4735
4730
|
fontWeight: 500,
|
|
@@ -4763,38 +4758,44 @@ const Ot = () => De(null, null, function* () {
|
|
|
4763
4758
|
popups: M,
|
|
4764
4759
|
askEveryTime: D
|
|
4765
4760
|
}) => {
|
|
4766
|
-
var
|
|
4767
|
-
const j = Yn(o), { perform: A } = zi(), { setIsProcessingCallback: c } = Qs(),
|
|
4761
|
+
var F, ae;
|
|
4762
|
+
const j = Yn(o), { perform: A } = zi(), { setIsProcessingCallback: c } = Qs(), [a, y] = pe(!1), N = () => {
|
|
4763
|
+
var Y;
|
|
4764
|
+
(Y = z == null ? void 0 : z.popups) != null && Y.system_restricted || y(!0);
|
|
4765
|
+
}, I = () => {
|
|
4766
|
+
var Y;
|
|
4767
|
+
(Y = z == null ? void 0 : z.popups) != null && Y.system_restricted || y(!1);
|
|
4768
|
+
}, { devSettings: z } = Us(), w = !!((ae = (F = z == null ? void 0 : z.popups) == null ? void 0 : F.system_restricted) != null && ae.isOpen);
|
|
4768
4769
|
Fe(() => {
|
|
4769
|
-
|
|
4770
|
-
}, [w]);
|
|
4770
|
+
z && y(w);
|
|
4771
|
+
}, [w, z]);
|
|
4771
4772
|
const _ = {
|
|
4772
4773
|
enableHighAccuracy: !0,
|
|
4773
4774
|
timeout: 15e3,
|
|
4774
4775
|
maximumAge: 6e4
|
|
4775
|
-
}, h = M == null ? void 0 : M.find((
|
|
4776
|
+
}, h = M == null ? void 0 : M.find((Y) => Y.reason === Rs.SYSTEM_RESTRICTED);
|
|
4776
4777
|
li(() => {
|
|
4777
4778
|
Ii.isSafari || D || c == null || c(!0);
|
|
4778
4779
|
}, []), Fe(() => {
|
|
4779
4780
|
if (Ii.isSafari || D) return;
|
|
4780
|
-
let
|
|
4781
|
+
let Y = !0;
|
|
4781
4782
|
return De(null, null, function* () {
|
|
4782
4783
|
if ((yield Ot()) !== "granted") {
|
|
4783
4784
|
c == null || c(!1);
|
|
4784
4785
|
return;
|
|
4785
4786
|
}
|
|
4786
|
-
const
|
|
4787
|
-
|
|
4787
|
+
const V = yield Ui(_);
|
|
4788
|
+
Y && A(V, j);
|
|
4788
4789
|
}), () => {
|
|
4789
|
-
Ii.isSafari || D || (
|
|
4790
|
+
Ii.isSafari || D || (Y = !1);
|
|
4790
4791
|
};
|
|
4791
4792
|
}, []), Fe(() => {
|
|
4792
4793
|
if (Ii.isSafari) return;
|
|
4793
|
-
let
|
|
4794
|
+
let Y = !0, H = null;
|
|
4794
4795
|
return De(null, null, function* () {
|
|
4795
|
-
const
|
|
4796
|
-
|
|
4797
|
-
if (
|
|
4796
|
+
const V = yield Ia();
|
|
4797
|
+
V && (H = V, V.onchange = () => De(null, null, function* () {
|
|
4798
|
+
if (V.state === "denied" && (c == null || c(!0), A(
|
|
4798
4799
|
{
|
|
4799
4800
|
location: {
|
|
4800
4801
|
locationState: "application_location_restricted",
|
|
@@ -4804,45 +4805,45 @@ const Ot = () => De(null, null, function* () {
|
|
|
4804
4805
|
}
|
|
4805
4806
|
},
|
|
4806
4807
|
j
|
|
4807
|
-
)),
|
|
4808
|
+
)), V.state === "granted") {
|
|
4808
4809
|
c == null || c(!0);
|
|
4809
|
-
const
|
|
4810
|
-
if (!
|
|
4811
|
-
A(
|
|
4810
|
+
const R = yield Ui(_);
|
|
4811
|
+
if (!Y) return;
|
|
4812
|
+
A(R, j);
|
|
4812
4813
|
}
|
|
4813
4814
|
}));
|
|
4814
4815
|
}), () => {
|
|
4815
|
-
Ii.isSafari || (
|
|
4816
|
+
Ii.isSafari || (Y = !1, H && (H.onchange = null));
|
|
4816
4817
|
};
|
|
4817
4818
|
}, []);
|
|
4818
|
-
const p = (
|
|
4819
|
-
|
|
4819
|
+
const p = (Y) => De(null, null, function* () {
|
|
4820
|
+
Y.preventDefault();
|
|
4820
4821
|
const H = yield Ot();
|
|
4821
4822
|
if (H === "denied") {
|
|
4822
4823
|
N();
|
|
4823
4824
|
return;
|
|
4824
4825
|
}
|
|
4825
4826
|
if (H === "prompt" && (yield Ui()), H === "granted") {
|
|
4826
|
-
const
|
|
4827
|
-
A(
|
|
4827
|
+
const V = yield Ui(_);
|
|
4828
|
+
A(V, j);
|
|
4828
4829
|
}
|
|
4829
|
-
}), k = (
|
|
4830
|
-
if (
|
|
4830
|
+
}), k = (Y) => De(null, null, function* () {
|
|
4831
|
+
if (Y.preventDefault(), (yield Ot()) === "denied") {
|
|
4831
4832
|
N();
|
|
4832
4833
|
return;
|
|
4833
4834
|
}
|
|
4834
4835
|
c == null || c(!0);
|
|
4835
|
-
const
|
|
4836
|
-
A(
|
|
4837
|
-
}), ie = (
|
|
4838
|
-
|
|
4836
|
+
const V = yield Ui(_);
|
|
4837
|
+
A(V, j);
|
|
4838
|
+
}), ie = (Y) => {
|
|
4839
|
+
Y.preventDefault(), I();
|
|
4839
4840
|
};
|
|
4840
4841
|
return /* @__PURE__ */ d(ci, { header: i, footer: t, backgroundColor: s, children: [
|
|
4841
4842
|
/* @__PURE__ */ d("div", { style: ja, children: [
|
|
4842
4843
|
/* @__PURE__ */ d("div", { style: ya, children: [
|
|
4843
|
-
r && /* @__PURE__ */ d("div", { style: Aa, children: /* @__PURE__ */ d(_e,
|
|
4844
|
-
e && /* @__PURE__ */ d("div", { style: Ta, children: /* @__PURE__ */ d(fe,
|
|
4845
|
-
n && /* @__PURE__ */ d("div", { style: za, children: /* @__PURE__ */ d(jt,
|
|
4844
|
+
r && /* @__PURE__ */ d("div", { style: Aa, children: /* @__PURE__ */ d(_e, O({}, r)) }),
|
|
4845
|
+
e && /* @__PURE__ */ d("div", { style: Ta, children: /* @__PURE__ */ d(fe, O({}, e)) }),
|
|
4846
|
+
n && /* @__PURE__ */ d("div", { style: za, children: /* @__PURE__ */ d(jt, O({}, n)) })
|
|
4846
4847
|
] }),
|
|
4847
4848
|
!!(o != null && o.length) && /* @__PURE__ */ d(
|
|
4848
4849
|
"div",
|
|
@@ -4851,47 +4852,43 @@ const Ot = () => De(null, null, function* () {
|
|
|
4851
4852
|
display: "flex",
|
|
4852
4853
|
flexDirection: "column"
|
|
4853
4854
|
},
|
|
4854
|
-
children: o.map((
|
|
4855
|
+
children: o.map((Y, H) => /* @__PURE__ */ d("div", { style: { padding: "5px" }, children: /* @__PURE__ */ d(
|
|
4855
4856
|
lt,
|
|
4856
|
-
|
|
4857
|
+
O(O({
|
|
4857
4858
|
dataTestId: "question-button"
|
|
4858
|
-
},
|
|
4859
|
+
}, Y), Y.type === "FORM" ? {
|
|
4859
4860
|
onClick: Ii.isSafari ? k : p
|
|
4860
4861
|
} : {})
|
|
4861
4862
|
) }, H))
|
|
4862
4863
|
}
|
|
4863
4864
|
)
|
|
4864
4865
|
] }),
|
|
4865
|
-
h && /* @__PURE__ */ d(
|
|
4866
|
-
"div",
|
|
4867
|
-
{
|
|
4868
|
-
ref: a,
|
|
4869
|
-
popover: "manual",
|
|
4870
|
-
role: "dialog",
|
|
4871
|
-
"aria-modal": "true",
|
|
4872
|
-
style: J(z({}, Oa), {
|
|
4873
|
-
borderRadius: (h == null ? void 0 : h.cornerRadius) || "27px",
|
|
4874
|
-
backgroundColor: (h == null ? void 0 : h.backgroundColor) || "#ffffff"
|
|
4875
|
-
}),
|
|
4876
|
-
children: [
|
|
4877
|
-
/* @__PURE__ */ d("div", { style: Ea, children: /* @__PURE__ */ d(fe, z({}, z({ fontSize: "24px" }, h.title))) }),
|
|
4878
|
-
/* @__PURE__ */ d("div", { style: xa, children: /* @__PURE__ */ d("div", { style: ha, children: /* @__PURE__ */ d(fe, z({}, z({ fontSize: "17px" }, h.message))) }) }),
|
|
4879
|
-
h.actionButton1 && /* @__PURE__ */ d("div", { style: ma, children: /* @__PURE__ */ d(
|
|
4880
|
-
lt,
|
|
4881
|
-
z(z({
|
|
4882
|
-
dataTestId: "question-button"
|
|
4883
|
-
}, h.actionButton1), h.actionButton1.type === "FORM" ? { onClick: ie } : {})
|
|
4884
|
-
) })
|
|
4885
|
-
]
|
|
4886
|
-
}
|
|
4887
|
-
),
|
|
4888
|
-
y && /* @__PURE__ */ d(
|
|
4866
|
+
h && a && /* @__PURE__ */ d(
|
|
4889
4867
|
"div",
|
|
4890
4868
|
{
|
|
4891
4869
|
style: fa,
|
|
4892
|
-
onPointerDown: (
|
|
4893
|
-
|
|
4894
|
-
}
|
|
4870
|
+
onPointerDown: (Y) => {
|
|
4871
|
+
Y.preventDefault(), Y.stopPropagation(), I();
|
|
4872
|
+
},
|
|
4873
|
+
children: /* @__PURE__ */ d(
|
|
4874
|
+
"div",
|
|
4875
|
+
{
|
|
4876
|
+
style: J(O({}, Oa), {
|
|
4877
|
+
borderRadius: (h == null ? void 0 : h.cornerRadius) || "27px",
|
|
4878
|
+
backgroundColor: (h == null ? void 0 : h.backgroundColor) || "#ffffff"
|
|
4879
|
+
}),
|
|
4880
|
+
children: [
|
|
4881
|
+
/* @__PURE__ */ d("div", { style: Ea, children: /* @__PURE__ */ d(fe, O({}, O({ fontSize: "24px" }, h.title))) }),
|
|
4882
|
+
/* @__PURE__ */ d("div", { style: xa, children: /* @__PURE__ */ d("div", { style: ha, children: /* @__PURE__ */ d(fe, O({}, O({ fontSize: "17px" }, h.message))) }) }),
|
|
4883
|
+
h.actionButton1 && /* @__PURE__ */ d("div", { style: ma, children: /* @__PURE__ */ d(
|
|
4884
|
+
lt,
|
|
4885
|
+
O(O({
|
|
4886
|
+
dataTestId: "question-button"
|
|
4887
|
+
}, h.actionButton1), h.actionButton1.type === "FORM" ? { onClick: ie } : {})
|
|
4888
|
+
) })
|
|
4889
|
+
]
|
|
4890
|
+
}
|
|
4891
|
+
)
|
|
4895
4892
|
}
|
|
4896
4893
|
)
|
|
4897
4894
|
] });
|
|
@@ -4899,9 +4896,9 @@ const Ot = () => De(null, null, function* () {
|
|
|
4899
4896
|
const { templateId: i, templateLayout: t, dataSource: r, properties: n } = e, { perform: o } = zi();
|
|
4900
4897
|
if (!i || !t) return /* @__PURE__ */ d(Jr, {});
|
|
4901
4898
|
const s = n != null && n.length ? JSON.stringify(n) : "default-key";
|
|
4902
|
-
if (i ===
|
|
4899
|
+
if (i === We.STATUS)
|
|
4903
4900
|
return /* @__PURE__ */ d(
|
|
4904
|
-
|
|
4901
|
+
qs,
|
|
4905
4902
|
{
|
|
4906
4903
|
header: t == null ? void 0 : t.header,
|
|
4907
4904
|
footer: t == null ? void 0 : t.footer,
|
|
@@ -4912,9 +4909,9 @@ const Ot = () => De(null, null, function* () {
|
|
|
4912
4909
|
backgroundColor: t == null ? void 0 : t.backgroundColor
|
|
4913
4910
|
}
|
|
4914
4911
|
);
|
|
4915
|
-
if (i ===
|
|
4912
|
+
if (i === We.INFO)
|
|
4916
4913
|
return /* @__PURE__ */ d(
|
|
4917
|
-
|
|
4914
|
+
tM,
|
|
4918
4915
|
{
|
|
4919
4916
|
header: t == null ? void 0 : t.header,
|
|
4920
4917
|
footer: t == null ? void 0 : t.footer,
|
|
@@ -4925,7 +4922,7 @@ const Ot = () => De(null, null, function* () {
|
|
|
4925
4922
|
backgroundColor: t == null ? void 0 : t.backgroundColor
|
|
4926
4923
|
}
|
|
4927
4924
|
);
|
|
4928
|
-
if (i ===
|
|
4925
|
+
if (i === We.GEOLOCATION)
|
|
4929
4926
|
return /* @__PURE__ */ d(
|
|
4930
4927
|
wa,
|
|
4931
4928
|
{
|
|
@@ -4940,7 +4937,7 @@ const Ot = () => De(null, null, function* () {
|
|
|
4940
4937
|
askEveryTime: t.askEveryTime
|
|
4941
4938
|
}
|
|
4942
4939
|
);
|
|
4943
|
-
if (i ===
|
|
4940
|
+
if (i === We.PROGRESS)
|
|
4944
4941
|
return /* @__PURE__ */ d(
|
|
4945
4942
|
Jr,
|
|
4946
4943
|
{
|
|
@@ -4950,9 +4947,9 @@ const Ot = () => De(null, null, function* () {
|
|
|
4950
4947
|
backgroundColor: t == null ? void 0 : t.backgroundColor
|
|
4951
4948
|
}
|
|
4952
4949
|
);
|
|
4953
|
-
if (i ===
|
|
4950
|
+
if (i === We.INFO_DETAILS)
|
|
4954
4951
|
return /* @__PURE__ */ d(
|
|
4955
|
-
|
|
4952
|
+
MM,
|
|
4956
4953
|
{
|
|
4957
4954
|
header: t == null ? void 0 : t.header,
|
|
4958
4955
|
title: t == null ? void 0 : t.title,
|
|
@@ -4962,9 +4959,9 @@ const Ot = () => De(null, null, function* () {
|
|
|
4962
4959
|
backgroundColor: t == null ? void 0 : t.backgroundColor
|
|
4963
4960
|
}
|
|
4964
4961
|
);
|
|
4965
|
-
if (i ===
|
|
4962
|
+
if (i === We.CAMERA)
|
|
4966
4963
|
return /* @__PURE__ */ d(
|
|
4967
|
-
|
|
4964
|
+
Da,
|
|
4968
4965
|
{
|
|
4969
4966
|
header: t == null ? void 0 : t.header,
|
|
4970
4967
|
buttons: t == null ? void 0 : t.buttons,
|
|
@@ -4973,9 +4970,9 @@ const Ot = () => De(null, null, function* () {
|
|
|
4973
4970
|
selectionLimit: e == null ? void 0 : e.selectionLimit
|
|
4974
4971
|
}
|
|
4975
4972
|
);
|
|
4976
|
-
if (i ===
|
|
4973
|
+
if (i === We.GALLERY)
|
|
4977
4974
|
return /* @__PURE__ */ d(
|
|
4978
|
-
|
|
4975
|
+
sa,
|
|
4979
4976
|
{
|
|
4980
4977
|
header: t == null ? void 0 : t.header,
|
|
4981
4978
|
buttons: t == null ? void 0 : t.buttons,
|
|
@@ -4984,9 +4981,9 @@ const Ot = () => De(null, null, function* () {
|
|
|
4984
4981
|
selectionLimit: e == null ? void 0 : e.selectionLimit
|
|
4985
4982
|
}
|
|
4986
4983
|
);
|
|
4987
|
-
if (r && (r != null && r.questions.length) && i ===
|
|
4984
|
+
if (r && (r != null && r.questions.length) && i === We.QUESTIONS)
|
|
4988
4985
|
return /* @__PURE__ */ d(
|
|
4989
|
-
|
|
4986
|
+
ta,
|
|
4990
4987
|
{
|
|
4991
4988
|
dataSource: r,
|
|
4992
4989
|
properties: n,
|
|
@@ -4999,7 +4996,7 @@ const Ot = () => De(null, null, function* () {
|
|
|
4999
4996
|
},
|
|
5000
4997
|
s
|
|
5001
4998
|
);
|
|
5002
|
-
if (i ===
|
|
4999
|
+
if (i === We.QUESTIONS && !r) {
|
|
5003
5000
|
const D = new Wi({
|
|
5004
5001
|
errorCode: ut.DECODING_FAILED,
|
|
5005
5002
|
message: "No data for questions"
|
|
@@ -5013,14 +5010,14 @@ const Ot = () => De(null, null, function* () {
|
|
|
5013
5010
|
return o(M), null;
|
|
5014
5011
|
};
|
|
5015
5012
|
let Et = !1;
|
|
5016
|
-
const
|
|
5013
|
+
const ba = ({ children: e }) => /* @__PURE__ */ d(be, { children: [
|
|
5017
5014
|
/* @__PURE__ */ d("style", { children: "#gui-idv-web-c *, #gui-idv-web-c *::before, #gui-idv-web-c *::after {box-sizing: border-box;}" }),
|
|
5018
5015
|
e
|
|
5019
5016
|
] }), fn = ({ children: e }) => /* @__PURE__ */ d("div", { part: "gui-idv", id: "gui-idv-web-c", style: { backgroundColor: "white", height: "100%", width: "100%" }, children: e }), pa = ({ isProcessing: e, moduleProps: i, perform: t, devSettings: r }) => {
|
|
5020
5017
|
const { templateId: n, templateLayout: o, dataSource: s, properties: M } = i, D = (j, A) => {
|
|
5021
5018
|
t && t(j, A);
|
|
5022
5019
|
};
|
|
5023
|
-
return n ===
|
|
5020
|
+
return n === We.QUESTIONS ? /* @__PURE__ */ d(Hr, { perform: D, children: /* @__PURE__ */ d(fn, { children: /* @__PURE__ */ d(
|
|
5024
5021
|
yn,
|
|
5025
5022
|
{
|
|
5026
5023
|
properties: M,
|
|
@@ -5036,7 +5033,7 @@ const Sa = ({ children: e }) => /* @__PURE__ */ d(be, { children: [
|
|
|
5036
5033
|
devSettings: r,
|
|
5037
5034
|
children: /* @__PURE__ */ d(fn, { children: /* @__PURE__ */ d(
|
|
5038
5035
|
yn,
|
|
5039
|
-
|
|
5036
|
+
O(O({
|
|
5040
5037
|
templateId: n,
|
|
5041
5038
|
templateLayout: o
|
|
5042
5039
|
}, i.backgroundColor ? { backgroundColor: i.backgroundColor } : {}), typeof i.selectionLimit == "number" ? { selectionLimit: i.selectionLimit } : {})
|
|
@@ -5113,16 +5110,16 @@ const Sa = ({ children: e }) => /* @__PURE__ */ d(be, { children: [
|
|
|
5113
5110
|
Et = !1;
|
|
5114
5111
|
}
|
|
5115
5112
|
};
|
|
5116
|
-
Vi.displayName = at, Vi.getSupportedTemplates = () => Object.values(
|
|
5117
|
-
let
|
|
5118
|
-
|
|
5113
|
+
Vi.displayName = at, Vi.getSupportedTemplates = () => Object.values(We), Vi.getIdentifier = () => at;
|
|
5114
|
+
let vt = Vi;
|
|
5115
|
+
Cs(at, vt);
|
|
5119
5116
|
export {
|
|
5120
|
-
|
|
5117
|
+
vt as GuiIdv,
|
|
5121
5118
|
pa as GuiIdvReactComponent,
|
|
5122
|
-
|
|
5123
|
-
|
|
5119
|
+
We as GuiIdvSteps,
|
|
5120
|
+
ba as GuiIdvStyleInjectionWrapper,
|
|
5124
5121
|
ut as GuiModuleError,
|
|
5125
5122
|
ce as IDV_UI_ICONS,
|
|
5126
|
-
|
|
5123
|
+
Rs as PopupReason,
|
|
5127
5124
|
_t as idvIconDataUrlMap
|
|
5128
5125
|
};
|