@regulaforensics/idv-gui 3.2.284-nightly → 3.2.285-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 +3 -0
- package/dist/main.iife.js +4 -4
- package/dist/main.js +1215 -1204
- package/dist/main.umd.cjs +4 -4
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
var Ts = Object.defineProperty, zs = Object.defineProperties;
|
|
2
2
|
var Os = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var it = Object.getOwnPropertySymbols;
|
|
4
4
|
var vr = Object.prototype.hasOwnProperty, Lr = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var Cr = (e, i, t) => i in e ? Ts(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t,
|
|
5
|
+
var Cr = (e, i, t) => i in e ? Ts(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t, z = (e, i) => {
|
|
6
6
|
for (var t in i || (i = {}))
|
|
7
7
|
vr.call(i, t) && Cr(e, t, i[t]);
|
|
8
|
-
if (
|
|
9
|
-
for (var t of
|
|
8
|
+
if (it)
|
|
9
|
+
for (var t of it(i))
|
|
10
10
|
Lr.call(i, t) && Cr(e, t, i[t]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
12
|
+
}, H = (e, i) => zs(e, Os(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
|
-
if (e != null &&
|
|
18
|
-
for (var r of
|
|
17
|
+
if (e != null && it)
|
|
18
|
+
for (var r of it(e))
|
|
19
19
|
i.indexOf(r) < 0 && Lr.call(e, r) && (t[r] = e[r]);
|
|
20
20
|
return t;
|
|
21
21
|
};
|
|
22
|
-
var
|
|
22
|
+
var je = (e, i, t) => new Promise((r, n) => {
|
|
23
23
|
var o = (D) => {
|
|
24
24
|
try {
|
|
25
|
-
|
|
25
|
+
a(t.next(D));
|
|
26
26
|
} catch (j) {
|
|
27
27
|
n(j);
|
|
28
28
|
}
|
|
29
29
|
}, s = (D) => {
|
|
30
30
|
try {
|
|
31
|
-
|
|
31
|
+
a(t.throw(D));
|
|
32
32
|
} catch (j) {
|
|
33
33
|
n(j);
|
|
34
34
|
}
|
|
35
|
-
},
|
|
36
|
-
|
|
35
|
+
}, a = (D) => D.done ? r(D.value) : Promise.resolve(D.value).then(o, s);
|
|
36
|
+
a((t = t.apply(e, i)).next());
|
|
37
37
|
});
|
|
38
|
-
var
|
|
38
|
+
var Hi, $, An, ji, kr, Tn, zn, On, Lt, Et, ht, xn, Zi = {}, En = [], xs = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Gi = Array.isArray;
|
|
39
39
|
function qe(e, i) {
|
|
40
40
|
for (var t in i) e[t] = i[t];
|
|
41
41
|
return e;
|
|
@@ -46,12 +46,12 @@ function kt(e) {
|
|
|
46
46
|
function ei(e, i, t) {
|
|
47
47
|
var r, n, o, s = {};
|
|
48
48
|
for (o in i) o == "key" ? r = i[o] : o == "ref" ? n = i[o] : s[o] = i[o];
|
|
49
|
-
if (arguments.length > 2 && (s.children = arguments.length > 3 ?
|
|
50
|
-
return
|
|
49
|
+
if (arguments.length > 2 && (s.children = arguments.length > 3 ? Hi.call(arguments, 2) : t), typeof e == "function" && e.defaultProps != null) for (o in e.defaultProps) s[o] === void 0 && (s[o] = e.defaultProps[o]);
|
|
50
|
+
return Pi(e, s, r, n, null);
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function Pi(e, i, t, r, n) {
|
|
53
53
|
var o = { type: e, props: i, key: t, ref: r, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: n == null ? ++An : n, __i: -1, __u: 0 };
|
|
54
|
-
return n == null &&
|
|
54
|
+
return n == null && $.vnode != null && $.vnode(o), o;
|
|
55
55
|
}
|
|
56
56
|
function hn() {
|
|
57
57
|
return { current: null };
|
|
@@ -59,13 +59,13 @@ function hn() {
|
|
|
59
59
|
function be(e) {
|
|
60
60
|
return e.children;
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function He(e, i) {
|
|
63
63
|
this.props = e, this.context = i;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
if (i == null) return e.__ ?
|
|
65
|
+
function Si(e, i) {
|
|
66
|
+
if (i == null) return e.__ ? Si(e.__, e.__i + 1) : null;
|
|
67
67
|
for (var t; i < e.__k.length; i++) if ((t = e.__k[i]) != null && t.__e != null) return t.__e;
|
|
68
|
-
return typeof e.type == "function" ?
|
|
68
|
+
return typeof e.type == "function" ? Si(e) : null;
|
|
69
69
|
}
|
|
70
70
|
function mn(e) {
|
|
71
71
|
var i, t;
|
|
@@ -78,21 +78,21 @@ function mn(e) {
|
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
function mt(e) {
|
|
81
|
-
(!e.__d && (e.__d = !0) && ji.push(e) && !
|
|
81
|
+
(!e.__d && (e.__d = !0) && ji.push(e) && !st.__r++ || kr != $.debounceRendering) && ((kr = $.debounceRendering) || Tn)(st);
|
|
82
82
|
}
|
|
83
|
-
function
|
|
84
|
-
for (var e, i, t, r, n, o, s,
|
|
85
|
-
|
|
83
|
+
function st() {
|
|
84
|
+
for (var e, i, t, r, n, o, s, a = 1; ji.length; ) ji.length > a && ji.sort(zn), e = ji.shift(), a = ji.length, e.__d && (t = void 0, r = void 0, n = (r = (i = e).__v).__e, o = [], s = [], i.__P && ((t = qe({}, r)).__v = r.__v + 1, $.vnode && $.vnode(t), Ut(i.__P, t, r, i.__n, i.__P.namespaceURI, 32 & r.__u ? [n] : null, o, n == null ? Si(r) : n, !!(32 & r.__u), s), t.__v = r.__v, t.__.__k[t.__i] = t, _n(o, t, s), r.__e = r.__ = null, t.__e != n && mn(t)));
|
|
85
|
+
st.__r = 0;
|
|
86
86
|
}
|
|
87
|
-
function wn(e, i, t, r, n, o, s,
|
|
88
|
-
var
|
|
89
|
-
for (D = Es(t, i, _, D,
|
|
87
|
+
function wn(e, i, t, r, n, o, s, a, D, j, A) {
|
|
88
|
+
var g, M, y, N, I, O, w, _ = r && r.__k || En, p = i.length;
|
|
89
|
+
for (D = Es(t, i, _, D, p), g = 0; g < p; g++) (y = t.__k[g]) != null && (M = y.__i == -1 ? Zi : _[y.__i] || Zi, y.__i = g, O = Ut(e, y, M, n, o, s, a, D, j, A), N = y.__e, y.ref && M.ref != y.ref && (M.ref && Qt(M.ref, null, y), A.push(y.ref, y.__c || N, y)), I == null && N != null && (I = N), (w = !!(4 & y.__u)) || M.__k === y.__k ? D = pn(y, D, e, w) : typeof y.type == "function" && O !== void 0 ? D = O : N && (D = N.nextSibling), y.__u &= -7);
|
|
90
90
|
return t.__e = I, D;
|
|
91
91
|
}
|
|
92
92
|
function Es(e, i, t, r, n) {
|
|
93
|
-
var o, s,
|
|
94
|
-
for (e.__k = new Array(n), o = 0; o < n; o++) (s = i[o]) != null && typeof s != "boolean" && typeof s != "function" ? (typeof s == "string" || typeof s == "number" || typeof s == "bigint" || s.constructor == String ? s = e.__k[o] =
|
|
95
|
-
if (
|
|
93
|
+
var o, s, a, D, j, A = t.length, g = A, M = 0;
|
|
94
|
+
for (e.__k = new Array(n), o = 0; o < n; o++) (s = i[o]) != null && typeof s != "boolean" && typeof s != "function" ? (typeof s == "string" || typeof s == "number" || typeof s == "bigint" || s.constructor == String ? s = e.__k[o] = Pi(null, s, null, null, null) : Gi(s) ? s = e.__k[o] = Pi(be, { children: s }, null, null, null) : s.constructor === void 0 && s.__b > 0 ? s = e.__k[o] = Pi(s.type, s.props, s.key, s.ref ? s.ref : null, s.__v) : e.__k[o] = s, D = o + M, s.__ = e, s.__b = e.__b + 1, a = null, (j = s.__i = hs(s, t, D, g)) != -1 && (g--, (a = t[j]) && (a.__u |= 2)), a == null || a.__v == null ? (j == -1 && (n > A ? M-- : n < A && M++), typeof s.type != "function" && (s.__u |= 4)) : j != D && (j == D - 1 ? M-- : j == D + 1 ? M++ : (j > D ? M-- : M++, s.__u |= 4))) : e.__k[o] = null;
|
|
95
|
+
if (g) for (o = 0; o < A; o++) (a = t[o]) != null && (2 & a.__u) == 0 && (a.__e == r && (r = Si(a)), Sn(a, a));
|
|
96
96
|
return r;
|
|
97
97
|
}
|
|
98
98
|
function pn(e, i, t, r) {
|
|
@@ -101,29 +101,29 @@ function pn(e, i, t, r) {
|
|
|
101
101
|
for (n = e.__k, o = 0; n && o < n.length; o++) n[o] && (n[o].__ = e, i = pn(n[o], i, t, r));
|
|
102
102
|
return i;
|
|
103
103
|
}
|
|
104
|
-
e.__e != i && (r && (i && e.type && !i.parentNode && (i =
|
|
104
|
+
e.__e != i && (r && (i && e.type && !i.parentNode && (i = Si(e)), t.insertBefore(e.__e, i || null)), i = e.__e);
|
|
105
105
|
do
|
|
106
106
|
i = i && i.nextSibling;
|
|
107
107
|
while (i != null && i.nodeType == 8);
|
|
108
108
|
return i;
|
|
109
109
|
}
|
|
110
110
|
function oi(e, i) {
|
|
111
|
-
return i = i || [], e == null || typeof e == "boolean" || (
|
|
111
|
+
return i = i || [], e == null || typeof e == "boolean" || (Gi(e) ? e.some(function(t) {
|
|
112
112
|
oi(t, i);
|
|
113
113
|
}) : i.push(e)), i;
|
|
114
114
|
}
|
|
115
115
|
function hs(e, i, t, r) {
|
|
116
|
-
var n, o, s,
|
|
117
|
-
if (j === null &&
|
|
116
|
+
var n, o, s, a = e.key, D = e.type, j = i[t], A = j != null && (2 & j.__u) == 0;
|
|
117
|
+
if (j === null && a == null || A && a == j.key && D == j.type) return t;
|
|
118
118
|
if (r > (A ? 1 : 0)) {
|
|
119
|
-
for (n = t - 1, o = t + 1; n >= 0 || o < i.length; ) if ((j = i[s = n >= 0 ? n-- : o++]) != null && (2 & j.__u) == 0 &&
|
|
119
|
+
for (n = t - 1, o = t + 1; n >= 0 || o < i.length; ) if ((j = i[s = n >= 0 ? n-- : o++]) != null && (2 & j.__u) == 0 && a == j.key && D == j.type) return s;
|
|
120
120
|
}
|
|
121
121
|
return -1;
|
|
122
122
|
}
|
|
123
123
|
function Ur(e, i, t) {
|
|
124
124
|
i[0] == "-" ? e.setProperty(i, t == null ? "" : t) : e[i] = t == null ? "" : typeof t != "number" || xs.test(i) ? t : t + "px";
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function tt(e, i, t, r, n) {
|
|
127
127
|
var o, s;
|
|
128
128
|
e: if (i == "style") if (typeof t == "string") e.style.cssText = t;
|
|
129
129
|
else {
|
|
@@ -136,7 +136,7 @@ function it(e, i, t, r, n) {
|
|
|
136
136
|
else if (i != "width" && i != "height" && i != "href" && i != "list" && i != "form" && i != "tabIndex" && i != "download" && i != "rowSpan" && i != "colSpan" && i != "role" && i != "popover" && i in e) try {
|
|
137
137
|
e[i] = t == null ? "" : t;
|
|
138
138
|
break e;
|
|
139
|
-
} catch (
|
|
139
|
+
} catch (a) {
|
|
140
140
|
}
|
|
141
141
|
typeof t == "function" || (t == null || t === !1 && i[4] != "-" ? e.removeAttribute(i) : e.setAttribute(i, i == "popover" && t == 1 ? "" : t));
|
|
142
142
|
}
|
|
@@ -147,69 +147,69 @@ function Qr(e) {
|
|
|
147
147
|
var t = this.l[i.type + e];
|
|
148
148
|
if (i.t == null) i.t = Lt++;
|
|
149
149
|
else if (i.t < t.u) return;
|
|
150
|
-
return t(
|
|
150
|
+
return t($.event ? $.event(i) : i);
|
|
151
151
|
}
|
|
152
152
|
};
|
|
153
153
|
}
|
|
154
|
-
function Ut(e, i, t, r, n, o, s,
|
|
155
|
-
var A,
|
|
154
|
+
function Ut(e, i, t, r, n, o, s, a, D, j) {
|
|
155
|
+
var A, g, M, y, N, I, O, w, _, p, h, U, ee, ue, W, ne, Q, G = i.type;
|
|
156
156
|
if (i.constructor !== void 0) return null;
|
|
157
|
-
128 & t.__u && (D = !!(32 & t.__u), o = [
|
|
158
|
-
e: if (typeof
|
|
159
|
-
if (w = i.props, _ = "prototype" in
|
|
157
|
+
128 & t.__u && (D = !!(32 & t.__u), o = [a = i.__e = t.__e]), (A = $.__b) && A(i);
|
|
158
|
+
e: if (typeof G == "function") try {
|
|
159
|
+
if (w = i.props, _ = "prototype" in G && G.prototype.render, p = (A = G.contextType) && r[A.__c], h = A ? p ? p.props.value : A.__ : r, t.__c ? O = (g = i.__c = t.__c).__ = g.__E : (_ ? i.__c = g = new G(w, h) : (i.__c = g = new He(w, h), g.constructor = G, g.render = ws), p && p.sub(g), g.state || (g.state = {}), g.__n = r, M = g.__d = !0, g.__h = [], g._sb = []), _ && g.__s == null && (g.__s = g.state), _ && G.getDerivedStateFromProps != null && (g.__s == g.state && (g.__s = qe({}, g.__s)), qe(g.__s, G.getDerivedStateFromProps(w, g.__s))), y = g.props, N = g.state, g.__v = i, M) _ && G.getDerivedStateFromProps == null && g.componentWillMount != null && g.componentWillMount(), _ && g.componentDidMount != null && g.__h.push(g.componentDidMount);
|
|
160
160
|
else {
|
|
161
|
-
if (_ &&
|
|
162
|
-
for (i.__v != t.__v && (
|
|
163
|
-
|
|
164
|
-
}),
|
|
165
|
-
|
|
161
|
+
if (_ && G.getDerivedStateFromProps == null && w !== y && g.componentWillReceiveProps != null && g.componentWillReceiveProps(w, h), i.__v == t.__v || !g.__e && g.shouldComponentUpdate != null && g.shouldComponentUpdate(w, g.__s, h) === !1) {
|
|
162
|
+
for (i.__v != t.__v && (g.props = w, g.state = g.__s, g.__d = !1), i.__e = t.__e, i.__k = t.__k, i.__k.some(function(k) {
|
|
163
|
+
k && (k.__ = i);
|
|
164
|
+
}), U = 0; U < g._sb.length; U++) g.__h.push(g._sb[U]);
|
|
165
|
+
g._sb = [], g.__h.length && s.push(g);
|
|
166
166
|
break e;
|
|
167
167
|
}
|
|
168
|
-
|
|
169
|
-
|
|
168
|
+
g.componentWillUpdate != null && g.componentWillUpdate(w, g.__s, h), _ && g.componentDidUpdate != null && g.__h.push(function() {
|
|
169
|
+
g.componentDidUpdate(y, N, I);
|
|
170
170
|
});
|
|
171
171
|
}
|
|
172
|
-
if (
|
|
173
|
-
for (
|
|
174
|
-
|
|
172
|
+
if (g.context = h, g.props = w, g.__P = e, g.__e = !1, ee = $.__r, ue = 0, _) {
|
|
173
|
+
for (g.state = g.__s, g.__d = !1, ee && ee(i), A = g.render(g.props, g.state, g.context), W = 0; W < g._sb.length; W++) g.__h.push(g._sb[W]);
|
|
174
|
+
g._sb = [];
|
|
175
175
|
} else do
|
|
176
|
-
|
|
177
|
-
while (
|
|
178
|
-
|
|
179
|
-
} catch (
|
|
180
|
-
if (i.__v = null, D || o != null) if (
|
|
181
|
-
for (i.__u |= D ? 160 : 128;
|
|
182
|
-
o[o.indexOf(
|
|
176
|
+
g.__d = !1, ee && ee(i), A = g.render(g.props, g.state, g.context), g.state = g.__s;
|
|
177
|
+
while (g.__d && ++ue < 25);
|
|
178
|
+
g.state = g.__s, g.getChildContext != null && (r = qe(qe({}, r), g.getChildContext())), _ && !M && g.getSnapshotBeforeUpdate != null && (I = g.getSnapshotBeforeUpdate(y, N)), ne = A, A != null && A.type === be && A.key == null && (ne = bn(A.props.children)), a = wn(e, Gi(ne) ? ne : [ne], i, t, r, n, o, s, a, D, j), g.base = i.__e, i.__u &= -161, g.__h.length && s.push(g), O && (g.__E = g.__ = null);
|
|
179
|
+
} catch (k) {
|
|
180
|
+
if (i.__v = null, D || o != null) if (k.then) {
|
|
181
|
+
for (i.__u |= D ? 160 : 128; a && a.nodeType == 8 && a.nextSibling; ) a = a.nextSibling;
|
|
182
|
+
o[o.indexOf(a)] = null, i.__e = a;
|
|
183
183
|
} else {
|
|
184
|
-
for (
|
|
184
|
+
for (Q = o.length; Q--; ) kt(o[Q]);
|
|
185
185
|
wt(i);
|
|
186
186
|
}
|
|
187
|
-
else i.__e = t.__e, i.__k = t.__k,
|
|
188
|
-
|
|
187
|
+
else i.__e = t.__e, i.__k = t.__k, k.then || wt(i);
|
|
188
|
+
$.__e(k, i, t);
|
|
189
189
|
}
|
|
190
|
-
else o == null && i.__v == t.__v ? (i.__k = t.__k, i.__e = t.__e) :
|
|
191
|
-
return (A =
|
|
190
|
+
else o == null && i.__v == t.__v ? (i.__k = t.__k, i.__e = t.__e) : a = i.__e = ms(t.__e, i, t, r, n, o, s, D, j);
|
|
191
|
+
return (A = $.diffed) && A(i), 128 & i.__u ? void 0 : a;
|
|
192
192
|
}
|
|
193
193
|
function wt(e) {
|
|
194
194
|
e && e.__c && (e.__c.__e = !0), e && e.__k && e.__k.forEach(wt);
|
|
195
195
|
}
|
|
196
196
|
function _n(e, i, t) {
|
|
197
197
|
for (var r = 0; r < t.length; r++) Qt(t[r], t[++r], t[++r]);
|
|
198
|
-
|
|
198
|
+
$.__c && $.__c(i, e), e.some(function(n) {
|
|
199
199
|
try {
|
|
200
200
|
e = n.__h, n.__h = [], e.some(function(o) {
|
|
201
201
|
o.call(n);
|
|
202
202
|
});
|
|
203
203
|
} catch (o) {
|
|
204
|
-
|
|
204
|
+
$.__e(o, n.__v);
|
|
205
205
|
}
|
|
206
206
|
});
|
|
207
207
|
}
|
|
208
208
|
function bn(e) {
|
|
209
|
-
return typeof e != "object" || e == null || e.__b && e.__b > 0 ? e :
|
|
209
|
+
return typeof e != "object" || e == null || e.__b && e.__b > 0 ? e : Gi(e) ? e.map(bn) : qe({}, e);
|
|
210
210
|
}
|
|
211
|
-
function ms(e, i, t, r, n, o, s,
|
|
212
|
-
var j, A,
|
|
211
|
+
function ms(e, i, t, r, n, o, s, a, D) {
|
|
212
|
+
var j, A, g, M, y, N, I, O = t.props || Zi, 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;
|
|
@@ -218,22 +218,22 @@ function ms(e, i, t, r, n, o, s, M, D) {
|
|
|
218
218
|
}
|
|
219
219
|
if (e == null) {
|
|
220
220
|
if (_ == null) return document.createTextNode(w);
|
|
221
|
-
e = document.createElementNS(n, _, w.is && w),
|
|
221
|
+
e = document.createElementNS(n, _, w.is && w), a && ($.__m && $.__m(i, o), a = !1), o = null;
|
|
222
222
|
}
|
|
223
|
-
if (_ == null)
|
|
223
|
+
if (_ == null) O === w || a && e.data == w || (e.data = w);
|
|
224
224
|
else {
|
|
225
|
-
if (o = o &&
|
|
226
|
-
for (j in
|
|
227
|
-
if (j == "dangerouslySetInnerHTML")
|
|
225
|
+
if (o = o && Hi.call(e.childNodes), !a && o != null) for (O = {}, j = 0; j < e.attributes.length; j++) O[(y = e.attributes[j]).name] = y.value;
|
|
226
|
+
for (j in O) if (y = O[j], j != "children") {
|
|
227
|
+
if (j == "dangerouslySetInnerHTML") g = y;
|
|
228
228
|
else if (!(j in w)) {
|
|
229
229
|
if (j == "value" && "defaultValue" in w || j == "checked" && "defaultChecked" in w) continue;
|
|
230
|
-
|
|
230
|
+
tt(e, j, null, y, n);
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
|
-
for (j in w) y = w[j], j == "children" ?
|
|
234
|
-
if (A)
|
|
235
|
-
else if (
|
|
236
|
-
|
|
233
|
+
for (j in w) y = w[j], j == "children" ? M = y : j == "dangerouslySetInnerHTML" ? A = y : j == "value" ? N = y : j == "checked" ? I = y : a && typeof y != "function" || O[j] === y || tt(e, j, y, O[j], n);
|
|
234
|
+
if (A) a || g && (A.__html == g.__html || A.__html == e.innerHTML) || (e.innerHTML = A.__html), i.__k = [];
|
|
235
|
+
else if (g && (e.innerHTML = ""), wn(i.type == "template" ? e.content : e, Gi(M) ? M : [M], i, t, r, _ == "foreignObject" ? "http://www.w3.org/1999/xhtml" : n, o, s, o ? o[0] : t.__k && Si(t, 0), a, D), o != null) for (j = o.length; j--; ) kt(o[j]);
|
|
236
|
+
a || (j = "value", _ == "progress" && N == null ? e.removeAttribute("value") : N != null && (N !== e[j] || _ == "progress" && !N || _ == "option" && N != O[j]) && tt(e, j, N, O[j], n), j = "checked", I != null && I != e[j] && tt(e, j, I, O[j], n));
|
|
237
237
|
}
|
|
238
238
|
return e;
|
|
239
239
|
}
|
|
@@ -244,16 +244,16 @@ function Qt(e, i, t) {
|
|
|
244
244
|
r && e.__u(), r && i == null || (e.__u = e(i));
|
|
245
245
|
} else e.current = i;
|
|
246
246
|
} catch (n) {
|
|
247
|
-
|
|
247
|
+
$.__e(n, t);
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
250
|
function Sn(e, i, t) {
|
|
251
251
|
var r, n;
|
|
252
|
-
if (
|
|
252
|
+
if ($.unmount && $.unmount(e), (r = e.ref) && (r.current && r.current != e.__e || Qt(r, null, i)), (r = e.__c) != null) {
|
|
253
253
|
if (r.componentWillUnmount) try {
|
|
254
254
|
r.componentWillUnmount();
|
|
255
255
|
} catch (o) {
|
|
256
|
-
|
|
256
|
+
$.__e(o, i);
|
|
257
257
|
}
|
|
258
258
|
r.base = r.__P = null;
|
|
259
259
|
}
|
|
@@ -265,15 +265,15 @@ function ws(e, i, t) {
|
|
|
265
265
|
}
|
|
266
266
|
function Ai(e, i, t) {
|
|
267
267
|
var r, n, o, s;
|
|
268
|
-
i == document && (i = document.documentElement),
|
|
268
|
+
i == document && (i = document.documentElement), $.__ && $.__(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 || Zi, Zi, i.namespaceURI, !r && t ? [t] : n ? null : i.firstChild ? Hi.call(i.childNodes) : null, o, !r && t ? t : n ? n.__e : i.firstChild, r, s), _n(o, e, s);
|
|
269
269
|
}
|
|
270
270
|
function Cn(e, i) {
|
|
271
271
|
Ai(e, i, Cn);
|
|
272
272
|
}
|
|
273
273
|
function ps(e, i, t) {
|
|
274
|
-
var r, n, o, s,
|
|
275
|
-
for (o in e.type && e.type.defaultProps && (s = e.type.defaultProps), i) o == "key" ? r = i[o] : o == "ref" ? n = i[o] :
|
|
276
|
-
return arguments.length > 2 && (
|
|
274
|
+
var r, n, o, s, a = qe({}, e.props);
|
|
275
|
+
for (o in e.type && e.type.defaultProps && (s = e.type.defaultProps), i) o == "key" ? r = i[o] : o == "ref" ? n = i[o] : a[o] = i[o] === void 0 && s != null ? s[o] : i[o];
|
|
276
|
+
return arguments.length > 2 && (a.children = arguments.length > 3 ? Hi.call(arguments, 2) : t), Pi(e.type, a, r || e.key, n || e.ref, null);
|
|
277
277
|
}
|
|
278
278
|
function Yt(e) {
|
|
279
279
|
function i(t) {
|
|
@@ -298,29 +298,29 @@ function Yt(e) {
|
|
|
298
298
|
return t.children(r);
|
|
299
299
|
}).contextType = i, i;
|
|
300
300
|
}
|
|
301
|
-
|
|
301
|
+
Hi = En.slice, $ = { __e: function(e, i, t, r) {
|
|
302
302
|
for (var n, o, s; i = i.__; ) if ((n = i.__c) && !n.__) try {
|
|
303
303
|
if ((o = n.constructor) && o.getDerivedStateFromError != null && (n.setState(o.getDerivedStateFromError(e)), s = n.__d), n.componentDidCatch != null && (n.componentDidCatch(e, r || {}), s = n.__d), s) return n.__E = n;
|
|
304
|
-
} catch (
|
|
305
|
-
e =
|
|
304
|
+
} catch (a) {
|
|
305
|
+
e = a;
|
|
306
306
|
}
|
|
307
307
|
throw e;
|
|
308
|
-
} }, An = 0,
|
|
308
|
+
} }, An = 0, He.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
|
+
}, He.prototype.forceUpdate = function(e) {
|
|
312
312
|
this.__v && (this.__e = !0, e && this.__h.push(e), mt(this));
|
|
313
|
-
},
|
|
313
|
+
}, He.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
|
+
}, st.__r = 0, On = /(PointerCapture)$|Capture$/i, Lt = 0, Et = Qr(!1), ht = Qr(!0), xn = 0;
|
|
316
316
|
var _s = 0;
|
|
317
317
|
function d(e, i, t, r, n, o) {
|
|
318
318
|
i || (i = {});
|
|
319
|
-
var s,
|
|
320
|
-
if ("ref" in D) for (
|
|
319
|
+
var s, a, D = i;
|
|
320
|
+
if ("ref" in D) for (a in D = {}, i) a == "ref" ? s = i[a] : D[a] = i[a];
|
|
321
321
|
var j = { type: e, props: D, key: t, ref: s, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --_s, __i: -1, __u: 0, __source: n, __self: o };
|
|
322
|
-
if (typeof e == "function" && (s = e.defaultProps)) for (
|
|
323
|
-
return
|
|
322
|
+
if (typeof e == "function" && (s = e.defaultProps)) for (a in s) D[a] === void 0 && (D[a] = s[a]);
|
|
323
|
+
return $.vnode && $.vnode(j), j;
|
|
324
324
|
}
|
|
325
325
|
class yi {
|
|
326
326
|
constructor({
|
|
@@ -330,11 +330,11 @@ class yi {
|
|
|
330
330
|
underlyingError: n,
|
|
331
331
|
underlyingBaseError: o,
|
|
332
332
|
domain: s,
|
|
333
|
-
module:
|
|
333
|
+
module: a,
|
|
334
334
|
errorEnumName: D,
|
|
335
335
|
shortDomainCode: j
|
|
336
336
|
}) {
|
|
337
|
-
this.errorCode = i, this.errorCodeKey = t, this.message = r, this.underlyingError = n, this.underlyingBaseError = o, this.module =
|
|
337
|
+
this.errorCode = i, this.errorCodeKey = t, this.message = r, this.underlyingError = n, this.underlyingBaseError = o, this.module = a, this.domain = s, this.errorEnumName = D, this.shortDomainCode = j;
|
|
338
338
|
}
|
|
339
339
|
static getErrorKey(i, t) {
|
|
340
340
|
const r = Object.keys(t).find((n) => t[n] === i);
|
|
@@ -388,45 +388,45 @@ const Nt = {
|
|
|
388
388
|
FORM: "form",
|
|
389
389
|
DATA: "data"
|
|
390
390
|
};
|
|
391
|
-
var si, de, ft, Yr,
|
|
391
|
+
var si, de, ft, Yr, Ci = 0, vn = [], ye = $, Pr = ye.__b, Rr = ye.__r, Fr = ye.diffed, Vr = ye.__c, Br = ye.unmount, Wr = ye.__;
|
|
392
392
|
function Ti(e, i) {
|
|
393
|
-
ye.__h && ye.__h(de, e,
|
|
393
|
+
ye.__h && ye.__h(de, e, Ci || i), Ci = 0;
|
|
394
394
|
var t = de.__H || (de.__H = { __: [], __h: [] });
|
|
395
395
|
return e >= t.__.length && t.__.push({}), t.__[e];
|
|
396
396
|
}
|
|
397
397
|
function pe(e) {
|
|
398
|
-
return
|
|
398
|
+
return Ci = 1, Dt(Ln, e);
|
|
399
399
|
}
|
|
400
400
|
function Dt(e, i, t) {
|
|
401
401
|
var r = Ti(si++, 2);
|
|
402
|
-
if (r.t = e, !r.__c && (r.__ = [t ? t(i) : Ln(void 0, i), function(
|
|
403
|
-
var D = r.__N ? r.__N[0] : r.__[0], j = r.t(D,
|
|
402
|
+
if (r.t = e, !r.__c && (r.__ = [t ? t(i) : Ln(void 0, i), function(a) {
|
|
403
|
+
var D = r.__N ? r.__N[0] : r.__[0], j = r.t(D, a);
|
|
404
404
|
D !== j && (r.__N = [j, r.__[1]], r.__c.setState({}));
|
|
405
405
|
}], r.__c = de, !de.__f)) {
|
|
406
|
-
var n = function(
|
|
406
|
+
var n = function(a, D, j) {
|
|
407
407
|
if (!r.__c.__H) return !0;
|
|
408
|
-
var A = r.__c.__H.__.filter(function(
|
|
409
|
-
return !!
|
|
408
|
+
var A = r.__c.__H.__.filter(function(M) {
|
|
409
|
+
return !!M.__c;
|
|
410
410
|
});
|
|
411
|
-
if (A.every(function(
|
|
412
|
-
return !
|
|
413
|
-
})) return !o || o.call(this,
|
|
414
|
-
var
|
|
415
|
-
return A.forEach(function(
|
|
416
|
-
if (
|
|
417
|
-
var y =
|
|
418
|
-
|
|
411
|
+
if (A.every(function(M) {
|
|
412
|
+
return !M.__N;
|
|
413
|
+
})) return !o || o.call(this, a, D, j);
|
|
414
|
+
var g = r.__c.props !== a;
|
|
415
|
+
return A.forEach(function(M) {
|
|
416
|
+
if (M.__N) {
|
|
417
|
+
var y = M.__[0];
|
|
418
|
+
M.__ = M.__N, M.__N = void 0, y !== M.__[0] && (g = !0);
|
|
419
419
|
}
|
|
420
|
-
}), o && o.call(this,
|
|
420
|
+
}), o && o.call(this, a, D, j) || g;
|
|
421
421
|
};
|
|
422
422
|
de.__f = !0;
|
|
423
423
|
var o = de.shouldComponentUpdate, s = de.componentWillUpdate;
|
|
424
|
-
de.componentWillUpdate = function(
|
|
424
|
+
de.componentWillUpdate = function(a, D, j) {
|
|
425
425
|
if (this.__e) {
|
|
426
426
|
var A = o;
|
|
427
|
-
o = void 0, n(
|
|
427
|
+
o = void 0, n(a, D, j), o = A;
|
|
428
428
|
}
|
|
429
|
-
s && s.call(this,
|
|
429
|
+
s && s.call(this, a, D, j);
|
|
430
430
|
}, de.shouldComponentUpdate = n;
|
|
431
431
|
}
|
|
432
432
|
return r.__N || r.__;
|
|
@@ -439,13 +439,13 @@ 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
|
|
443
|
-
return
|
|
442
|
+
function Ge(e) {
|
|
443
|
+
return Ci = 5, Ji(function() {
|
|
444
444
|
return { current: e };
|
|
445
445
|
}, []);
|
|
446
446
|
}
|
|
447
447
|
function Pt(e, i, t) {
|
|
448
|
-
|
|
448
|
+
Ci = 6, li(function() {
|
|
449
449
|
if (typeof e == "function") {
|
|
450
450
|
var r = e(i());
|
|
451
451
|
return function() {
|
|
@@ -457,16 +457,16 @@ function Pt(e, i, t) {
|
|
|
457
457
|
};
|
|
458
458
|
}, t == null ? t : t.concat(e));
|
|
459
459
|
}
|
|
460
|
-
function
|
|
460
|
+
function Ji(e, i) {
|
|
461
461
|
var t = Ti(si++, 7);
|
|
462
462
|
return Bt(t.__H, i) && (t.__ = e(), t.__H = i, t.__h = e), t.__;
|
|
463
463
|
}
|
|
464
464
|
function Rt(e, i) {
|
|
465
|
-
return
|
|
465
|
+
return Ci = 8, Ji(function() {
|
|
466
466
|
return e;
|
|
467
467
|
}, i);
|
|
468
468
|
}
|
|
469
|
-
function
|
|
469
|
+
function vi(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
|
}
|
|
@@ -492,7 +492,7 @@ function Vt() {
|
|
|
492
492
|
}
|
|
493
493
|
function vs() {
|
|
494
494
|
for (var e; e = vn.shift(); ) if (e.__P && e.__H) try {
|
|
495
|
-
e.__H.__h.forEach(
|
|
495
|
+
e.__H.__h.forEach(ot), e.__H.__h.forEach(pt), e.__H.__h = [];
|
|
496
496
|
} catch (i) {
|
|
497
497
|
e.__H.__h = [], ye.__e(i, e.__v);
|
|
498
498
|
}
|
|
@@ -506,7 +506,7 @@ ye.__b = function(e) {
|
|
|
506
506
|
var i = (de = e.__c).__H;
|
|
507
507
|
i && (ft === de ? (i.__h = [], de.__h = [], i.__.forEach(function(t) {
|
|
508
508
|
t.__N && (t.__ = t.__N), t.u = t.__N = void 0;
|
|
509
|
-
})) : (i.__h.forEach(
|
|
509
|
+
})) : (i.__h.forEach(ot), i.__h.forEach(pt), i.__h = [], si = 0)), ft = de;
|
|
510
510
|
}, ye.diffed = function(e) {
|
|
511
511
|
Fr && Fr(e);
|
|
512
512
|
var i = e.__c;
|
|
@@ -516,7 +516,7 @@ ye.__b = function(e) {
|
|
|
516
516
|
}, ye.__c = function(e, i) {
|
|
517
517
|
i.some(function(t) {
|
|
518
518
|
try {
|
|
519
|
-
t.__h.forEach(
|
|
519
|
+
t.__h.forEach(ot), t.__h = t.__h.filter(function(r) {
|
|
520
520
|
return !r.__ || pt(r);
|
|
521
521
|
});
|
|
522
522
|
} catch (r) {
|
|
@@ -530,7 +530,7 @@ ye.__b = function(e) {
|
|
|
530
530
|
var i, t = e.__c;
|
|
531
531
|
t && t.__H && (t.__H.__.forEach(function(r) {
|
|
532
532
|
try {
|
|
533
|
-
|
|
533
|
+
ot(r);
|
|
534
534
|
} catch (n) {
|
|
535
535
|
i = n;
|
|
536
536
|
}
|
|
@@ -543,7 +543,7 @@ function Ls(e) {
|
|
|
543
543
|
}, r = setTimeout(t, 35);
|
|
544
544
|
Zr && (i = requestAnimationFrame(t));
|
|
545
545
|
}
|
|
546
|
-
function
|
|
546
|
+
function ot(e) {
|
|
547
547
|
var i = de, t = e.__c;
|
|
548
548
|
typeof t == "function" && (e.__c = void 0, t()), de = i;
|
|
549
549
|
}
|
|
@@ -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 }), ks = () => {
|
|
563
|
-
const e =
|
|
563
|
+
const e = vi(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 = vi(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
|
}, Us = () => {
|
|
573
|
-
const e =
|
|
573
|
+
const e = vi(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
|
+
}, Ke = {
|
|
587
587
|
INFO: "INFO",
|
|
588
588
|
INFO_DETAILS: "INFO_DETAILS",
|
|
589
589
|
STATUS: "STATUS",
|
|
@@ -592,11 +592,11 @@ const It = Yt(void 0), Hr = ({ perform: e, children: i, setIsProcessingCallback:
|
|
|
592
592
|
CAMERA: "CAMERA",
|
|
593
593
|
GALLERY: "GALLERY",
|
|
594
594
|
GEOLOCATION: "GEOLOCATION"
|
|
595
|
-
},
|
|
595
|
+
}, Mt = {
|
|
596
596
|
LEFT: "LEFT",
|
|
597
597
|
CENTER: "CENTER",
|
|
598
598
|
RIGHT: "RIGHT"
|
|
599
|
-
},
|
|
599
|
+
}, rt = {
|
|
600
600
|
ASPECT_FILL: "ASPECT_FILL",
|
|
601
601
|
ASPECT_FIT: "ASPECT_FIT",
|
|
602
602
|
FILL: "FILL"
|
|
@@ -607,20 +607,20 @@ const It = Yt(void 0), Hr = ({ perform: e, children: i, setIsProcessingCallback:
|
|
|
607
607
|
SELECTOR_BUTTONS: "selector_buttons",
|
|
608
608
|
SELECTOR_DROPDOWN: "selector_dropdown",
|
|
609
609
|
MULTI_SELECTOR_DROPDOWN: "multi_selector_dropdown"
|
|
610
|
-
},
|
|
610
|
+
}, nt = {
|
|
611
611
|
FREE_TEXT: "FREE_TEXT",
|
|
612
612
|
EMAIL: "EMAIL",
|
|
613
613
|
NUMBER: "NUMBER",
|
|
614
614
|
SECURE: "SECURE"
|
|
615
615
|
}, Ys = ({ dataUrl: e }) => {
|
|
616
|
-
const i =
|
|
616
|
+
const i = Ge(null), t = 360 / 1e3;
|
|
617
617
|
return Fe(() => {
|
|
618
618
|
if (!i.current) return;
|
|
619
619
|
let r = !0, n = 0, o = performance.now();
|
|
620
|
-
function s(
|
|
620
|
+
function s(a) {
|
|
621
621
|
if (!r) return;
|
|
622
|
-
const D =
|
|
623
|
-
o =
|
|
622
|
+
const D = a - o;
|
|
623
|
+
o = a, n = (n + t * D) % 360, i.current && (i.current.style.transform = `rotate(${n}deg)`), requestAnimationFrame(s);
|
|
624
624
|
}
|
|
625
625
|
return requestAnimationFrame(s), () => {
|
|
626
626
|
r = !1;
|
|
@@ -691,7 +691,7 @@ const It = Yt(void 0), Hr = ({ perform: e, children: i, setIsProcessingCallback:
|
|
|
691
691
|
}, kn = ({ type: e, color: i }) => {
|
|
692
692
|
const t = _t[e] || _t[ce.DEFAULT], r = t == null ? void 0 : t(i);
|
|
693
693
|
return e === ce.SPINNER ? /* @__PURE__ */ d(Ys, { dataUrl: r }) : /* @__PURE__ */ d("img", { src: r, style: { width: "auto", height: "auto", maxWidth: "100%", maxHeight: "100%" } });
|
|
694
|
-
},
|
|
694
|
+
}, $i = "#005fcc", at = "idv-gui", Ri = {
|
|
695
695
|
DECODING_FAILED: "DECODING_FAILED"
|
|
696
696
|
}, At = {
|
|
697
697
|
text: "text",
|
|
@@ -705,7 +705,7 @@ const It = Yt(void 0), Hr = ({ perform: e, children: i, setIsProcessingCallback:
|
|
|
705
705
|
SYSTEM_RESTRICTED: "system_restricted"
|
|
706
706
|
};
|
|
707
707
|
function Un(e) {
|
|
708
|
-
return e ===
|
|
708
|
+
return e === Mt.CENTER ? "center" : e === Mt.RIGHT ? "right" : "left";
|
|
709
709
|
}
|
|
710
710
|
function Wt(e) {
|
|
711
711
|
if (typeof e == "object" && e !== null)
|
|
@@ -720,25 +720,25 @@ function Rs(e) {
|
|
|
720
720
|
})).filter((i) => !!i.value);
|
|
721
721
|
}
|
|
722
722
|
const Fs = (e) => Array.isArray(e) ? e.length === 0 : e === 0 ? !1 : !e;
|
|
723
|
-
function
|
|
723
|
+
function q(e) {
|
|
724
724
|
return e && /^#(?:[0-9a-fA-F]{3}){1,2}$/.test(e) ? e : void 0;
|
|
725
725
|
}
|
|
726
726
|
const Vs = (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
|
-
const
|
|
730
|
-
if (
|
|
731
|
-
return
|
|
729
|
+
const a = i.find((D) => D.name === r.property.id);
|
|
730
|
+
if (a != null && a.string)
|
|
731
|
+
return H(z({}, t), { [r.id]: a.string });
|
|
732
732
|
}
|
|
733
733
|
if (r.answerType === At.selector && (o = r.property) != null && o.id) {
|
|
734
|
-
const
|
|
735
|
-
if (
|
|
736
|
-
return
|
|
734
|
+
const a = i.find((D) => D.name === r.property.id);
|
|
735
|
+
if (a != null && a.string)
|
|
736
|
+
return H(z({}, t), { [r.id]: a.string });
|
|
737
737
|
}
|
|
738
738
|
if (r.answerType === At.multiSelector && (s = r.property) != null && s.id) {
|
|
739
|
-
const
|
|
740
|
-
if (
|
|
741
|
-
return
|
|
739
|
+
const a = i.find((D) => D.name === r.property.id);
|
|
740
|
+
if (a != null && a.array)
|
|
741
|
+
return H(z({}, t), { [r.id]: a.array });
|
|
742
742
|
}
|
|
743
743
|
return t;
|
|
744
744
|
}, {}), Qn = (e) => new Promise((i, t) => {
|
|
@@ -751,7 +751,7 @@ 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
|
-
}), Bs = () =>
|
|
754
|
+
}), Bs = () => je(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) {
|
|
@@ -761,15 +761,15 @@ const Vs = (e, i) => e.reduce((t, r) => {
|
|
|
761
761
|
imageId: e,
|
|
762
762
|
imageURL: i,
|
|
763
763
|
base64: t,
|
|
764
|
-
contentMode: r =
|
|
764
|
+
contentMode: r = rt.ASPECT_FILL,
|
|
765
765
|
cornerRadius: n,
|
|
766
766
|
backgroundColor: o
|
|
767
767
|
}) => {
|
|
768
|
-
const s = (
|
|
769
|
-
if (
|
|
770
|
-
if (
|
|
771
|
-
if (
|
|
772
|
-
}, [
|
|
768
|
+
const s = (g) => {
|
|
769
|
+
if (g === rt.ASPECT_FILL) return "cover";
|
|
770
|
+
if (g === rt.ASPECT_FIT) return "contain";
|
|
771
|
+
if (g === rt.FILL) return "fill";
|
|
772
|
+
}, [a, D] = pe(!0), j = a && i, A = () => {
|
|
773
773
|
D(!1);
|
|
774
774
|
};
|
|
775
775
|
if (t)
|
|
@@ -783,15 +783,15 @@ const Vs = (e, i) => e.reduce((t, r) => {
|
|
|
783
783
|
maxHeight: "100%",
|
|
784
784
|
objectFit: s(r),
|
|
785
785
|
borderRadius: n,
|
|
786
|
-
backgroundColor:
|
|
786
|
+
backgroundColor: q(o) || "transparent",
|
|
787
787
|
display: j ? "none" : "block"
|
|
788
788
|
},
|
|
789
789
|
src: t
|
|
790
790
|
}
|
|
791
791
|
);
|
|
792
792
|
if (e) {
|
|
793
|
-
const
|
|
794
|
-
return /* @__PURE__ */ d(kn, { type:
|
|
793
|
+
const g = e in _t ? e : "default";
|
|
794
|
+
return /* @__PURE__ */ d(kn, { type: g });
|
|
795
795
|
}
|
|
796
796
|
if (i)
|
|
797
797
|
return /* @__PURE__ */ d(be, { children: [
|
|
@@ -837,7 +837,7 @@ const Vs = (e, i) => e.reduce((t, r) => {
|
|
|
837
837
|
height: "100%",
|
|
838
838
|
width: "100%"
|
|
839
839
|
},
|
|
840
|
-
children: /* @__PURE__ */ d("a", { href: "", children: /* @__PURE__ */ d(_e,
|
|
840
|
+
children: /* @__PURE__ */ d("a", { href: "", children: /* @__PURE__ */ d(_e, z({}, e)) })
|
|
841
841
|
}
|
|
842
842
|
), Hs = {
|
|
843
843
|
display: "flex",
|
|
@@ -857,8 +857,8 @@ const Vs = (e, i) => e.reduce((t, r) => {
|
|
|
857
857
|
cornerRadius: o,
|
|
858
858
|
highlightColor: s
|
|
859
859
|
}) => {
|
|
860
|
-
var
|
|
861
|
-
const [
|
|
860
|
+
var M;
|
|
861
|
+
const [a, D] = pe(!1), j = a && s ? s : n, { perform: A } = zi();
|
|
862
862
|
return /* @__PURE__ */ d(
|
|
863
863
|
"button",
|
|
864
864
|
{
|
|
@@ -870,8 +870,8 @@ const Vs = (e, i) => e.reduce((t, r) => {
|
|
|
870
870
|
Wt(y), A(y, Nt.DATA);
|
|
871
871
|
},
|
|
872
872
|
className: "hover-button",
|
|
873
|
-
style:
|
|
874
|
-
backgroundColor: (
|
|
873
|
+
style: H(z(z({}, Hs), o && { borderRadius: o }), {
|
|
874
|
+
backgroundColor: (M = q(j)) != null ? M : "transparent"
|
|
875
875
|
}),
|
|
876
876
|
onMouseEnter: () => D(!0),
|
|
877
877
|
onMouseLeave: () => D(!1),
|
|
@@ -886,10 +886,10 @@ const Vs = (e, i) => e.reduce((t, r) => {
|
|
|
886
886
|
width: "24px",
|
|
887
887
|
height: "24px"
|
|
888
888
|
},
|
|
889
|
-
children: /* @__PURE__ */ d(_e,
|
|
889
|
+
children: /* @__PURE__ */ d(_e, z({}, t))
|
|
890
890
|
}
|
|
891
891
|
),
|
|
892
|
-
r && /* @__PURE__ */ d("div", { style: { padding: "0 5px" }, children: /* @__PURE__ */ d(fe,
|
|
892
|
+
r && /* @__PURE__ */ d("div", { style: { padding: "0 5px" }, children: /* @__PURE__ */ d(fe, z({}, r)) })
|
|
893
893
|
]
|
|
894
894
|
}
|
|
895
895
|
);
|
|
@@ -906,7 +906,7 @@ const Vs = (e, i) => e.reduce((t, r) => {
|
|
|
906
906
|
},
|
|
907
907
|
"data-ui": "gui-header",
|
|
908
908
|
part: "gui-header",
|
|
909
|
-
children: /* @__PURE__ */ d("div", { children: e && /* @__PURE__ */ d(Gs,
|
|
909
|
+
children: /* @__PURE__ */ d("div", { children: e && /* @__PURE__ */ d(Gs, z({ dataTestId: "close-btn" }, e)) })
|
|
910
910
|
}
|
|
911
911
|
);
|
|
912
912
|
function $s(e) {
|
|
@@ -914,11 +914,11 @@ function $s(e) {
|
|
|
914
914
|
const i = /\[([^\]]+)\]\(((https?:\/\/|www\.)?[^\s)]+\.[^\s)]+)\)/g, t = [];
|
|
915
915
|
let r = 0;
|
|
916
916
|
for (const o of e.matchAll(i)) {
|
|
917
|
-
const [s,
|
|
917
|
+
const [s, a, D] = o, j = (n = o.index) != null ? n : 0;
|
|
918
918
|
j > r && t.push(e.slice(r, j));
|
|
919
919
|
const A = D.startsWith("http") ? D : `https://${D}`;
|
|
920
920
|
t.push(
|
|
921
|
-
/* @__PURE__ */ d("a", { href: A, target: "_blank", rel: "noopener noreferrer", children:
|
|
921
|
+
/* @__PURE__ */ d("a", { href: A, target: "_blank", rel: "noopener noreferrer", children: a }, j)
|
|
922
922
|
), r = j + s.length;
|
|
923
923
|
}
|
|
924
924
|
return r < e.length && t.push(e.slice(r)), t;
|
|
@@ -936,20 +936,20 @@ const fe = ({
|
|
|
936
936
|
fontName: i = "",
|
|
937
937
|
fontSize: t = "17px",
|
|
938
938
|
fontColor: r,
|
|
939
|
-
alignment: n =
|
|
939
|
+
alignment: n = Mt.LEFT,
|
|
940
940
|
backgroundColor: o,
|
|
941
941
|
cornerRadius: s = 0,
|
|
942
|
-
htmlFor:
|
|
942
|
+
htmlFor: a
|
|
943
943
|
}) => {
|
|
944
944
|
const D = {
|
|
945
945
|
fontFamily: [i, "-apple-system", "BlinkMacSystemFont", "sans-serif"].filter(Boolean).join(", "),
|
|
946
946
|
fontSize: t,
|
|
947
|
-
color:
|
|
947
|
+
color: q(r) || "#000000",
|
|
948
948
|
textAlign: Un(n),
|
|
949
|
-
backgroundColor:
|
|
949
|
+
backgroundColor: q(o) || "transparent",
|
|
950
950
|
borderRadius: s
|
|
951
951
|
}, j = typeof e == "string" && e.trim() && Yn(e);
|
|
952
|
-
return
|
|
952
|
+
return a ? /* @__PURE__ */ d("label", { "data-ui": "gui-label", part: "gui-label", style: D, htmlFor: a, children: j }) : /* @__PURE__ */ d("div", { "data-ui": "gui-label", part: "gui-label", style: D, children: j });
|
|
953
953
|
}, ut = ({
|
|
954
954
|
title: e,
|
|
955
955
|
image: i,
|
|
@@ -958,17 +958,17 @@ const fe = ({
|
|
|
958
958
|
cornerRadius: n,
|
|
959
959
|
highlightColor: o,
|
|
960
960
|
dataTestId: s,
|
|
961
|
-
borderColor:
|
|
961
|
+
borderColor: a,
|
|
962
962
|
borderWidth: D,
|
|
963
963
|
type: j = "RESPONSE_BODY",
|
|
964
964
|
onClick: A
|
|
965
965
|
}) => {
|
|
966
966
|
var w, _;
|
|
967
|
-
const [
|
|
968
|
-
if (A && A(
|
|
969
|
-
const
|
|
970
|
-
Wt(
|
|
971
|
-
},
|
|
967
|
+
const [g, M] = pe(!1), y = g && q(o) ? o : r, { perform: N } = zi(), I = (p) => {
|
|
968
|
+
if (A && A(p), j !== "RESPONSE_BODY") return;
|
|
969
|
+
const h = JSON.parse(JSON.stringify(t));
|
|
970
|
+
Wt(h), N(h, Nt.DATA);
|
|
971
|
+
}, O = {
|
|
972
972
|
height: "50px",
|
|
973
973
|
width: "100%",
|
|
974
974
|
padding: "10px 16px",
|
|
@@ -982,13 +982,13 @@ const fe = ({
|
|
|
982
982
|
justifyContent: "center",
|
|
983
983
|
gap: 5,
|
|
984
984
|
borderRadius: n || 0,
|
|
985
|
-
borderStyle:
|
|
986
|
-
backgroundColor: (w =
|
|
987
|
-
borderColor: (_ =
|
|
985
|
+
borderStyle: a && D ? "solid" : void 0,
|
|
986
|
+
backgroundColor: (w = q(y)) != null ? w : "transparent",
|
|
987
|
+
borderColor: (_ = q(a)) != null ? _ : "none",
|
|
988
988
|
borderWidth: D != null ? D : 0,
|
|
989
989
|
overflow: "hidden",
|
|
990
990
|
transition: ".3s",
|
|
991
|
-
outlineColor:
|
|
991
|
+
outlineColor: $i
|
|
992
992
|
};
|
|
993
993
|
return /* @__PURE__ */ d(
|
|
994
994
|
"button",
|
|
@@ -998,18 +998,18 @@ const fe = ({
|
|
|
998
998
|
type: j === "FORM" ? "submit" : "button",
|
|
999
999
|
"data-test": s,
|
|
1000
1000
|
onClick: I,
|
|
1001
|
-
style:
|
|
1002
|
-
onMouseEnter: () =>
|
|
1003
|
-
onMouseLeave: () =>
|
|
1001
|
+
style: O,
|
|
1002
|
+
onMouseEnter: () => M(!0),
|
|
1003
|
+
onMouseLeave: () => M(!1),
|
|
1004
1004
|
children: [
|
|
1005
|
-
i && /* @__PURE__ */ d(_e,
|
|
1005
|
+
i && /* @__PURE__ */ d(_e, z({}, i)),
|
|
1006
1006
|
e && /* @__PURE__ */ d(
|
|
1007
1007
|
"div",
|
|
1008
1008
|
{
|
|
1009
1009
|
style: {
|
|
1010
1010
|
flexGrow: i ? 0 : 1
|
|
1011
1011
|
},
|
|
1012
|
-
children: /* @__PURE__ */ d(fe,
|
|
1012
|
+
children: /* @__PURE__ */ d(fe, z({}, e))
|
|
1013
1013
|
}
|
|
1014
1014
|
)
|
|
1015
1015
|
]
|
|
@@ -1017,7 +1017,7 @@ const fe = ({
|
|
|
1017
1017
|
);
|
|
1018
1018
|
}, Xs = (t) => {
|
|
1019
1019
|
var r = t, { items: e } = r, i = Di(r, ["items"]);
|
|
1020
|
-
return /* @__PURE__ */ d("div", { part: "gui-buttons", "data-ui": "gui-buttons", style:
|
|
1020
|
+
return /* @__PURE__ */ d("div", { part: "gui-buttons", "data-ui": "gui-buttons", style: z(z({}, {
|
|
1021
1021
|
display: "flex",
|
|
1022
1022
|
flexDirection: "row",
|
|
1023
1023
|
flexWrap: "wrap",
|
|
@@ -1031,7 +1031,7 @@ const fe = ({
|
|
|
1031
1031
|
paddingTop: "20px"
|
|
1032
1032
|
}), i), children: e.map((o) => {
|
|
1033
1033
|
var s;
|
|
1034
|
-
return /* @__PURE__ */ d(ut,
|
|
1034
|
+
return /* @__PURE__ */ d(ut, z({ dataTestId: "button-" + ((s = o.title) == null ? void 0 : s.text) }, o), Ws());
|
|
1035
1035
|
}) });
|
|
1036
1036
|
}, ci = ({
|
|
1037
1037
|
children: e,
|
|
@@ -1040,7 +1040,7 @@ const fe = ({
|
|
|
1040
1040
|
backgroundColor: r = "white",
|
|
1041
1041
|
buttons: n
|
|
1042
1042
|
}) => {
|
|
1043
|
-
const o = i ? 60 : 10, s = t ? 30 : 10,
|
|
1043
|
+
const o = i ? 60 : 10, s = t ? 30 : 10, a = {
|
|
1044
1044
|
position: "relative",
|
|
1045
1045
|
display: "flex",
|
|
1046
1046
|
flexGrow: 1,
|
|
@@ -1055,7 +1055,7 @@ const fe = ({
|
|
|
1055
1055
|
paddingRight: "20px",
|
|
1056
1056
|
height: "100%",
|
|
1057
1057
|
width: "100%",
|
|
1058
|
-
backgroundColor:
|
|
1058
|
+
backgroundColor: q(r)
|
|
1059
1059
|
};
|
|
1060
1060
|
return /* @__PURE__ */ d(
|
|
1061
1061
|
"div",
|
|
@@ -1063,7 +1063,7 @@ const fe = ({
|
|
|
1063
1063
|
part: "gui-base-container",
|
|
1064
1064
|
"data-ui": "gui-base-container",
|
|
1065
1065
|
id: "base-container",
|
|
1066
|
-
style:
|
|
1066
|
+
style: z({}, a),
|
|
1067
1067
|
children: [
|
|
1068
1068
|
i && /* @__PURE__ */ d(
|
|
1069
1069
|
"div",
|
|
@@ -1090,7 +1090,7 @@ const fe = ({
|
|
|
1090
1090
|
width: "100%",
|
|
1091
1091
|
height: s
|
|
1092
1092
|
},
|
|
1093
|
-
children: /* @__PURE__ */ d(Zs,
|
|
1093
|
+
children: /* @__PURE__ */ d(Zs, z({}, t))
|
|
1094
1094
|
}
|
|
1095
1095
|
)
|
|
1096
1096
|
]
|
|
@@ -1100,7 +1100,7 @@ const fe = ({
|
|
|
1100
1100
|
text: e,
|
|
1101
1101
|
fontName: i = "",
|
|
1102
1102
|
fontColor: t,
|
|
1103
|
-
alignment: r =
|
|
1103
|
+
alignment: r = Mt.LEFT,
|
|
1104
1104
|
fontSize: n = 17,
|
|
1105
1105
|
backgroundColor: o,
|
|
1106
1106
|
cornerRadius: s = 0
|
|
@@ -1113,9 +1113,9 @@ const fe = ({
|
|
|
1113
1113
|
fontFamily: [i, "-apple-system", "BlinkMacSystemFont", "sans-serif"].filter(Boolean).join(", "),
|
|
1114
1114
|
fontSize: n,
|
|
1115
1115
|
textAlign: Un(r),
|
|
1116
|
-
color:
|
|
1116
|
+
color: q(t) || "#000000",
|
|
1117
1117
|
borderRadius: s,
|
|
1118
|
-
backgroundColor:
|
|
1118
|
+
backgroundColor: q(o) || "transparent",
|
|
1119
1119
|
whiteSpace: "pre-line"
|
|
1120
1120
|
},
|
|
1121
1121
|
children: e && Yn(e)
|
|
@@ -1129,9 +1129,9 @@ const fe = ({
|
|
|
1129
1129
|
buttons: o,
|
|
1130
1130
|
backgroundColor: s
|
|
1131
1131
|
}) => {
|
|
1132
|
-
const
|
|
1132
|
+
const a = Ge(null), [D, j] = pe(!1);
|
|
1133
1133
|
return Fe(() => {
|
|
1134
|
-
|
|
1134
|
+
a.current && j(a.current.scrollHeight > a.current.clientHeight + 2);
|
|
1135
1135
|
}, []), /* @__PURE__ */ d(ci, { header: e, buttons: o, footer: i, backgroundColor: s, children: /* @__PURE__ */ d(
|
|
1136
1136
|
"div",
|
|
1137
1137
|
{
|
|
@@ -1146,11 +1146,11 @@ const fe = ({
|
|
|
1146
1146
|
flexDirection: "column"
|
|
1147
1147
|
},
|
|
1148
1148
|
children: [
|
|
1149
|
-
t && /* @__PURE__ */ d("div", { style: Qs, children: /* @__PURE__ */ d(_e,
|
|
1149
|
+
t && /* @__PURE__ */ d("div", { style: Qs, children: /* @__PURE__ */ d(_e, z({}, t)) }),
|
|
1150
1150
|
(r == null ? void 0 : r.text) && /* @__PURE__ */ d(
|
|
1151
1151
|
"div",
|
|
1152
1152
|
{
|
|
1153
|
-
ref:
|
|
1153
|
+
ref: a,
|
|
1154
1154
|
style: {
|
|
1155
1155
|
width: "100%",
|
|
1156
1156
|
overflow: D ? "auto" : "hidden"
|
|
@@ -1171,12 +1171,12 @@ const fe = ({
|
|
|
1171
1171
|
alignItems: "center",
|
|
1172
1172
|
alignContent: "center"
|
|
1173
1173
|
},
|
|
1174
|
-
children: r && /* @__PURE__ */ d(fe,
|
|
1174
|
+
children: r && /* @__PURE__ */ d(fe, z({}, r))
|
|
1175
1175
|
}
|
|
1176
1176
|
)
|
|
1177
1177
|
}
|
|
1178
1178
|
),
|
|
1179
|
-
n && /* @__PURE__ */ d("div", { style: { lineHeight: "28px", fontWeight: "400", marginTop: "16px" }, children: /* @__PURE__ */ d(jt,
|
|
1179
|
+
n && /* @__PURE__ */ d("div", { style: { lineHeight: "28px", fontWeight: "400", marginTop: "16px" }, children: /* @__PURE__ */ d(jt, z({}, n)) })
|
|
1180
1180
|
]
|
|
1181
1181
|
}
|
|
1182
1182
|
) });
|
|
@@ -1210,13 +1210,13 @@ const fe = ({
|
|
|
1210
1210
|
part: "gui-info-screen-container",
|
|
1211
1211
|
"data-ui": "gui-info-screen-container",
|
|
1212
1212
|
id: "info-screen-container",
|
|
1213
|
-
style:
|
|
1213
|
+
style: H(z({}, eM), {
|
|
1214
1214
|
justifyContent: r ? "flex-start" : "center"
|
|
1215
1215
|
}),
|
|
1216
1216
|
children: [
|
|
1217
|
-
r && /* @__PURE__ */ d("div", { style: qs, children: /* @__PURE__ */ d(_e,
|
|
1218
|
-
e && /* @__PURE__ */ d("div", { style: { marginBottom: 20, lineHeight: "39.2px" }, children: /* @__PURE__ */ d(fe,
|
|
1219
|
-
n && /* @__PURE__ */ d("div", { style: { lineHeight: "28px", fontWeight: "400" }, children: /* @__PURE__ */ d(jt,
|
|
1217
|
+
r && /* @__PURE__ */ d("div", { style: qs, children: /* @__PURE__ */ d(_e, z({}, r)) }),
|
|
1218
|
+
e && /* @__PURE__ */ d("div", { style: { marginBottom: 20, lineHeight: "39.2px" }, children: /* @__PURE__ */ d(fe, z({}, e)) }),
|
|
1219
|
+
n && /* @__PURE__ */ d("div", { style: { lineHeight: "28px", fontWeight: "400" }, children: /* @__PURE__ */ d(jt, z({}, n)) })
|
|
1220
1220
|
]
|
|
1221
1221
|
}
|
|
1222
1222
|
) }) }), tM = ({ indicatorColor: e = "#7E57C5" }) => /* @__PURE__ */ d(kn, { type: ce.SPINNER, color: e }), Jr = ({
|
|
@@ -1237,7 +1237,7 @@ const fe = ({
|
|
|
1237
1237
|
height: "100%",
|
|
1238
1238
|
width: "100%"
|
|
1239
1239
|
},
|
|
1240
|
-
children: /* @__PURE__ */ d(tM, { indicatorColor:
|
|
1240
|
+
children: /* @__PURE__ */ d(tM, { indicatorColor: q(e == null ? void 0 : e.indicatorColor) || "#000000" })
|
|
1241
1241
|
}
|
|
1242
1242
|
) }), rM = ({
|
|
1243
1243
|
title: e,
|
|
@@ -1250,7 +1250,7 @@ const fe = ({
|
|
|
1250
1250
|
"div",
|
|
1251
1251
|
{
|
|
1252
1252
|
className: "details-item",
|
|
1253
|
-
style:
|
|
1253
|
+
style: H(z({}, {
|
|
1254
1254
|
display: "flex",
|
|
1255
1255
|
alignItems: "flex-start",
|
|
1256
1256
|
justifyContent: "space-between",
|
|
@@ -1258,7 +1258,7 @@ const fe = ({
|
|
|
1258
1258
|
padding: "16px 0",
|
|
1259
1259
|
gap: 16
|
|
1260
1260
|
}), {
|
|
1261
|
-
backgroundColor:
|
|
1261
|
+
backgroundColor: q(r) || "transparent",
|
|
1262
1262
|
borderRadius: n
|
|
1263
1263
|
}),
|
|
1264
1264
|
children: [
|
|
@@ -1269,12 +1269,12 @@ const fe = ({
|
|
|
1269
1269
|
flex: "0 1 auto"
|
|
1270
1270
|
},
|
|
1271
1271
|
children: [
|
|
1272
|
-
/* @__PURE__ */ d("div", { style: { marginBottom: 5, fontWeight: "bold", lineHeight: "21px" }, children: /* @__PURE__ */ d(fe,
|
|
1273
|
-
/* @__PURE__ */ d("div", { style: { lineHeight: "21px", fontWeight: "400" }, children: /* @__PURE__ */ d(jt,
|
|
1272
|
+
/* @__PURE__ */ d("div", { style: { marginBottom: 5, fontWeight: "bold", lineHeight: "21px" }, children: /* @__PURE__ */ d(fe, z({}, e)) }),
|
|
1273
|
+
/* @__PURE__ */ d("div", { style: { lineHeight: "21px", fontWeight: "400" }, children: /* @__PURE__ */ d(jt, z({}, i)) })
|
|
1274
1274
|
]
|
|
1275
1275
|
}
|
|
1276
1276
|
),
|
|
1277
|
-
/* @__PURE__ */ d("div", { style: { aspectRatio: "1 / 1", width: 120, height: 120, flex: "0 0 120px" }, children: /* @__PURE__ */ d(_e,
|
|
1277
|
+
/* @__PURE__ */ d("div", { style: { aspectRatio: "1 / 1", width: 120, height: 120, flex: "0 0 120px" }, children: /* @__PURE__ */ d(_e, z({}, t)) })
|
|
1278
1278
|
]
|
|
1279
1279
|
}
|
|
1280
1280
|
), nM = {
|
|
@@ -1285,11 +1285,11 @@ const fe = ({
|
|
|
1285
1285
|
"div",
|
|
1286
1286
|
{
|
|
1287
1287
|
className: "details",
|
|
1288
|
-
style:
|
|
1289
|
-
backgroundColor:
|
|
1288
|
+
style: H(z({}, nM), {
|
|
1289
|
+
backgroundColor: q(i) || "white",
|
|
1290
1290
|
borderRadius: t
|
|
1291
1291
|
}),
|
|
1292
|
-
children: e.map((r, n) => /* @__PURE__ */ d(rM,
|
|
1292
|
+
children: e.map((r, n) => /* @__PURE__ */ d(rM, z({ isLastChild: n === e.length - 1 }, r), n))
|
|
1293
1293
|
}
|
|
1294
1294
|
), sM = ({
|
|
1295
1295
|
title: e,
|
|
@@ -1299,7 +1299,7 @@ const fe = ({
|
|
|
1299
1299
|
buttons: n,
|
|
1300
1300
|
backgroundColor: o
|
|
1301
1301
|
}) => {
|
|
1302
|
-
const s =
|
|
1302
|
+
const s = Ge(null), [a, D] = pe(!1);
|
|
1303
1303
|
return Fe(() => {
|
|
1304
1304
|
s.current && D(s.current.scrollHeight > s.current.clientHeight);
|
|
1305
1305
|
}, []), /* @__PURE__ */ d(ci, { header: i, buttons: n, footer: t, backgroundColor: o, children: /* @__PURE__ */ d(
|
|
@@ -1308,15 +1308,15 @@ const fe = ({
|
|
|
1308
1308
|
style: {
|
|
1309
1309
|
display: "flex",
|
|
1310
1310
|
flexDirection: "column",
|
|
1311
|
-
justifyContent:
|
|
1311
|
+
justifyContent: a ? "flex-start" : "center",
|
|
1312
1312
|
height: "100%",
|
|
1313
1313
|
minHeight: "100%",
|
|
1314
1314
|
overflow: "auto"
|
|
1315
1315
|
},
|
|
1316
1316
|
ref: s,
|
|
1317
1317
|
children: [
|
|
1318
|
-
/* @__PURE__ */ d("div", { style: { marginBottom: e ? "16px" : "0", fontWeight: 400, fontSize: "28px" }, children: e && /* @__PURE__ */ d(fe,
|
|
1319
|
-
r && /* @__PURE__ */ d(oM,
|
|
1318
|
+
/* @__PURE__ */ d("div", { style: { marginBottom: e ? "16px" : "0", fontWeight: 400, fontSize: "28px" }, children: e && /* @__PURE__ */ d(fe, z({}, e)) }),
|
|
1319
|
+
r && /* @__PURE__ */ d(oM, z({}, r))
|
|
1320
1320
|
]
|
|
1321
1321
|
}
|
|
1322
1322
|
) });
|
|
@@ -1372,11 +1372,11 @@ function Rn(e, i) {
|
|
|
1372
1372
|
}
|
|
1373
1373
|
return r.displayName = "Memo(" + (e.displayName || e.name) + ")", r.prototype.isReactComponent = !0, r.__f = !0, r.type = e, r;
|
|
1374
1374
|
}
|
|
1375
|
-
(lt.prototype = new
|
|
1375
|
+
(lt.prototype = new He()).isPureReactComponent = !0, lt.prototype.shouldComponentUpdate = function(e, i) {
|
|
1376
1376
|
return bt(this.props, e) || bt(this.state, i);
|
|
1377
1377
|
};
|
|
1378
|
-
var $r =
|
|
1379
|
-
|
|
1378
|
+
var $r = $.__b;
|
|
1379
|
+
$.__b = function(e) {
|
|
1380
1380
|
e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), $r && $r(e);
|
|
1381
1381
|
};
|
|
1382
1382
|
var MM = typeof Symbol != "undefined" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
|
|
@@ -1395,14 +1395,14 @@ var Xr = function(e, i) {
|
|
|
1395
1395
|
var i = oi(e);
|
|
1396
1396
|
if (i.length !== 1) throw "Children.only";
|
|
1397
1397
|
return i[0];
|
|
1398
|
-
}, toArray: oi }, aM =
|
|
1399
|
-
|
|
1398
|
+
}, toArray: oi }, aM = $.__e;
|
|
1399
|
+
$.__e = function(e, i, t, r) {
|
|
1400
1400
|
if (e.then) {
|
|
1401
1401
|
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);
|
|
1402
1402
|
}
|
|
1403
1403
|
aM(e, i, t, r);
|
|
1404
1404
|
};
|
|
1405
|
-
var Kr =
|
|
1405
|
+
var Kr = $.unmount;
|
|
1406
1406
|
function Bn(e, i, t) {
|
|
1407
1407
|
return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(r) {
|
|
1408
1408
|
typeof r.__c == "function" && r.__c();
|
|
@@ -1415,7 +1415,7 @@ function Wn(e, i, t) {
|
|
|
1415
1415
|
return Wn(r, i, t);
|
|
1416
1416
|
}), e.__c && e.__c.__P === i && (e.__e && t.appendChild(e.__e), e.__c.__e = !0, e.__c.__P = t)), e;
|
|
1417
1417
|
}
|
|
1418
|
-
function
|
|
1418
|
+
function Fi() {
|
|
1419
1419
|
this.__u = 0, this.o = null, this.__b = null;
|
|
1420
1420
|
}
|
|
1421
1421
|
function Zn(e) {
|
|
@@ -1425,10 +1425,10 @@ function Zn(e) {
|
|
|
1425
1425
|
function Hn(e) {
|
|
1426
1426
|
var i, t, r, n = null;
|
|
1427
1427
|
function o(s) {
|
|
1428
|
-
if (i || (i = e()).then(function(
|
|
1429
|
-
|
|
1430
|
-
}, function(
|
|
1431
|
-
t =
|
|
1428
|
+
if (i || (i = e()).then(function(a) {
|
|
1429
|
+
a && (n = a.default || a), r = !0;
|
|
1430
|
+
}, function(a) {
|
|
1431
|
+
t = a, r = !0;
|
|
1432
1432
|
}), t) throw t;
|
|
1433
1433
|
if (!r) throw i;
|
|
1434
1434
|
return n ? ei(n, s) : null;
|
|
@@ -1438,17 +1438,17 @@ function Hn(e) {
|
|
|
1438
1438
|
function _i() {
|
|
1439
1439
|
this.i = null, this.l = null;
|
|
1440
1440
|
}
|
|
1441
|
-
|
|
1441
|
+
$.unmount = function(e) {
|
|
1442
1442
|
var i = e.__c;
|
|
1443
1443
|
i && i.__R && i.__R(), i && 32 & e.__u && (e.type = null), Kr && Kr(e);
|
|
1444
|
-
}, (
|
|
1444
|
+
}, (Fi.prototype = new He()).__c = function(e, i) {
|
|
1445
1445
|
var t = i.__c, r = this;
|
|
1446
1446
|
r.o == null && (r.o = []), r.o.push(t);
|
|
1447
1447
|
var n = Zn(r.__v), o = !1, s = function() {
|
|
1448
|
-
o || (o = !0, t.__R = null, n ? n(
|
|
1448
|
+
o || (o = !0, t.__R = null, n ? n(a) : a());
|
|
1449
1449
|
};
|
|
1450
1450
|
t.__R = s;
|
|
1451
|
-
var
|
|
1451
|
+
var a = function() {
|
|
1452
1452
|
if (!--r.__u) {
|
|
1453
1453
|
if (r.state.__a) {
|
|
1454
1454
|
var D = r.state.__a;
|
|
@@ -1459,9 +1459,9 @@ X.unmount = function(e) {
|
|
|
1459
1459
|
}
|
|
1460
1460
|
};
|
|
1461
1461
|
r.__u++ || 32 & i.__u || r.setState({ __a: r.__b = r.__v.__k[0] }), e.then(s, s);
|
|
1462
|
-
},
|
|
1462
|
+
}, Fi.prototype.componentWillUnmount = function() {
|
|
1463
1463
|
this.o = [];
|
|
1464
|
-
},
|
|
1464
|
+
}, Fi.prototype.render = function(e, i) {
|
|
1465
1465
|
if (this.__b) {
|
|
1466
1466
|
if (this.__v.__k) {
|
|
1467
1467
|
var t = document.createElement("div"), r = this.__v.__k[0].__c;
|
|
@@ -1504,7 +1504,7 @@ function Gn(e, i) {
|
|
|
1504
1504
|
var t = ei(lM, { __v: e, h: i });
|
|
1505
1505
|
return t.containerInfo = i, t;
|
|
1506
1506
|
}
|
|
1507
|
-
(_i.prototype = new
|
|
1507
|
+
(_i.prototype = new He()).__a = function(e) {
|
|
1508
1508
|
var i = this, t = Zn(i.__v), r = i.l.get(e);
|
|
1509
1509
|
return r[0]++, function(n) {
|
|
1510
1510
|
var o = function() {
|
|
@@ -1533,14 +1533,14 @@ function $n(e, i, t) {
|
|
|
1533
1533
|
function Xn(e, i, t) {
|
|
1534
1534
|
return Cn(e, i), typeof t == "function" && t(), e ? e.__c : null;
|
|
1535
1535
|
}
|
|
1536
|
-
|
|
1537
|
-
Object.defineProperty(
|
|
1536
|
+
He.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
|
|
1537
|
+
Object.defineProperty(He.prototype, e, { configurable: !0, get: function() {
|
|
1538
1538
|
return this["UNSAFE_" + e];
|
|
1539
1539
|
}, set: function(i) {
|
|
1540
1540
|
Object.defineProperty(this, e, { configurable: !0, writable: !0, value: i });
|
|
1541
1541
|
} });
|
|
1542
1542
|
});
|
|
1543
|
-
var en =
|
|
1543
|
+
var en = $.event;
|
|
1544
1544
|
function IM() {
|
|
1545
1545
|
}
|
|
1546
1546
|
function jM() {
|
|
@@ -1549,20 +1549,20 @@ function jM() {
|
|
|
1549
1549
|
function yM() {
|
|
1550
1550
|
return this.defaultPrevented;
|
|
1551
1551
|
}
|
|
1552
|
-
|
|
1552
|
+
$.event = function(e) {
|
|
1553
1553
|
return en && (e = en(e)), e.persist = IM, e.isPropagationStopped = jM, e.isDefaultPrevented = yM, e.nativeEvent = e;
|
|
1554
1554
|
};
|
|
1555
1555
|
var Xt, fM = { enumerable: !1, configurable: !0, get: function() {
|
|
1556
1556
|
return this.class;
|
|
1557
|
-
} }, tn =
|
|
1558
|
-
|
|
1557
|
+
} }, tn = $.vnode;
|
|
1558
|
+
$.vnode = function(e) {
|
|
1559
1559
|
typeof e.type == "string" && (function(i) {
|
|
1560
1560
|
var t = i.props, r = i.type, n = {}, o = r.indexOf("-") === -1;
|
|
1561
1561
|
for (var s in t) {
|
|
1562
|
-
var
|
|
1563
|
-
if (!(s === "value" && "defaultValue" in t &&
|
|
1562
|
+
var a = t[s];
|
|
1563
|
+
if (!(s === "value" && "defaultValue" in t && a == null || NM && s === "children" && r === "noscript" || s === "class" || s === "className")) {
|
|
1564
1564
|
var D = s.toLowerCase();
|
|
1565
|
-
s === "defaultValue" && "value" in t && t.value == null ? s = "value" : s === "download" &&
|
|
1565
|
+
s === "defaultValue" && "value" in t && t.value == null ? s = "value" : s === "download" && a === !0 ? a = "" : D === "translate" && a === "no" ? a = !1 : D[0] === "o" && D[1] === "n" ? D === "ondoubleclick" ? s = "ondblclick" : D !== "onchange" || r !== "input" && r !== "textarea" || DM(t.type) ? D === "onfocus" ? s = "onfocusin" : D === "onblur" ? s = "onfocusout" : gM.test(s) && (s = D) : D = s = "oninput" : o && cM.test(s) ? s = s.replace(dM, "-$&").toLowerCase() : a === null && (a = void 0), D === "oninput" && n[s = D] && (s = "oninputCapture"), n[s] = a;
|
|
1566
1566
|
}
|
|
1567
1567
|
}
|
|
1568
1568
|
r == "select" && n.multiple && Array.isArray(n.value) && (n.value = oi(t.children).forEach(function(j) {
|
|
@@ -1572,33 +1572,33 @@ X.vnode = function(e) {
|
|
|
1572
1572
|
})), t.class && !t.className ? (n.class = t.class, Object.defineProperty(n, "className", fM)) : (t.className && !t.class || t.class && t.className) && (n.class = n.className = t.className), i.props = n;
|
|
1573
1573
|
})(e), e.$$typeof = Jn, tn && tn(e);
|
|
1574
1574
|
};
|
|
1575
|
-
var rn =
|
|
1576
|
-
|
|
1575
|
+
var rn = $.__r;
|
|
1576
|
+
$.__r = function(e) {
|
|
1577
1577
|
rn && rn(e), Xt = e.__c;
|
|
1578
1578
|
};
|
|
1579
|
-
var nn =
|
|
1580
|
-
|
|
1579
|
+
var nn = $.diffed;
|
|
1580
|
+
$.diffed = function(e) {
|
|
1581
1581
|
nn && nn(e);
|
|
1582
1582
|
var i = e.props, t = e.__e;
|
|
1583
1583
|
t != null && e.type === "textarea" && "value" in i && i.value !== t.value && (t.value = i.value == null ? "" : i.value), Xt = null;
|
|
1584
1584
|
};
|
|
1585
1585
|
var Kn = { ReactCurrentDispatcher: { current: { readContext: function(e) {
|
|
1586
1586
|
return Xt.__n[e.__c].props.value;
|
|
1587
|
-
}, useCallback: Rt, useContext:
|
|
1587
|
+
}, useCallback: Rt, useContext: vi, useDebugValue: Ft, useDeferredValue: Gt, useEffect: Fe, useId: Vt, useImperativeHandle: Pt, useInsertionEffect: $t, useLayoutEffect: li, useMemo: Ji, useReducer: Dt, useRef: Ge, useState: pe, useSyncExternalStore: Zt, useTransition: Jt } } }, AM = "18.3.1";
|
|
1588
1588
|
function qn(e) {
|
|
1589
1589
|
return ei.bind(null, e);
|
|
1590
1590
|
}
|
|
1591
|
-
function
|
|
1591
|
+
function Xi(e) {
|
|
1592
1592
|
return !!e && e.$$typeof === Jn;
|
|
1593
1593
|
}
|
|
1594
1594
|
function eo(e) {
|
|
1595
|
-
return
|
|
1595
|
+
return Xi(e) && e.type === be;
|
|
1596
1596
|
}
|
|
1597
1597
|
function io(e) {
|
|
1598
1598
|
return !!e && !!e.displayName && (typeof e.displayName == "string" || e.displayName instanceof String) && e.displayName.startsWith("Memo(");
|
|
1599
1599
|
}
|
|
1600
1600
|
function to(e) {
|
|
1601
|
-
return
|
|
1601
|
+
return Xi(e) ? ps.apply(null, arguments) : e;
|
|
1602
1602
|
}
|
|
1603
1603
|
function ro(e) {
|
|
1604
1604
|
return !!e.__k && (Ai(null, e), !0);
|
|
@@ -1610,15 +1610,15 @@ var oo = function(e, i) {
|
|
|
1610
1610
|
return e(i);
|
|
1611
1611
|
}, so = function(e, i) {
|
|
1612
1612
|
return e(i);
|
|
1613
|
-
}, Mo = be, ao =
|
|
1613
|
+
}, Mo = be, ao = Xi, re = { useState: pe, useId: Vt, useReducer: Dt, useEffect: Fe, useLayoutEffect: li, useInsertionEffect: $t, useTransition: Jt, useDeferredValue: Gt, useSyncExternalStore: Zt, startTransition: Ht, useRef: Ge, useImperativeHandle: Pt, useMemo: Ji, useCallback: Rt, useContext: vi, useDebugValue: Ft, version: "18.3.1", Children: Vn, render: $n, hydrate: Xn, unmountComponentAtNode: ro, createPortal: Gn, createElement: ei, createContext: Yt, createFactory: qn, cloneElement: to, createRef: hn, Fragment: be, isValidElement: Xi, isElement: ao, isFragment: eo, isMemo: io, findDOMNode: no, Component: He, PureComponent: lt, memo: Rn, forwardRef: Fn, flushSync: so, unstable_batchedUpdates: oo, StrictMode: Mo, Suspense: Fi, SuspenseList: _i, lazy: Hn, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Kn };
|
|
1614
1614
|
const TM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1615
1615
|
__proto__: null,
|
|
1616
1616
|
Children: Vn,
|
|
1617
|
-
Component:
|
|
1617
|
+
Component: He,
|
|
1618
1618
|
Fragment: be,
|
|
1619
1619
|
PureComponent: lt,
|
|
1620
1620
|
StrictMode: Mo,
|
|
1621
|
-
Suspense:
|
|
1621
|
+
Suspense: Fi,
|
|
1622
1622
|
SuspenseList: _i,
|
|
1623
1623
|
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Kn,
|
|
1624
1624
|
cloneElement: to,
|
|
@@ -1635,7 +1635,7 @@ const TM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1635
1635
|
isElement: ao,
|
|
1636
1636
|
isFragment: eo,
|
|
1637
1637
|
isMemo: io,
|
|
1638
|
-
isValidElement:
|
|
1638
|
+
isValidElement: Xi,
|
|
1639
1639
|
lazy: Hn,
|
|
1640
1640
|
memo: Rn,
|
|
1641
1641
|
render: $n,
|
|
@@ -1643,7 +1643,7 @@ const TM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1643
1643
|
unmountComponentAtNode: ro,
|
|
1644
1644
|
unstable_batchedUpdates: oo,
|
|
1645
1645
|
useCallback: Rt,
|
|
1646
|
-
useContext:
|
|
1646
|
+
useContext: vi,
|
|
1647
1647
|
useDebugValue: Ft,
|
|
1648
1648
|
useDeferredValue: Gt,
|
|
1649
1649
|
useEffect: Fe,
|
|
@@ -1652,17 +1652,17 @@ const TM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1652
1652
|
useImperativeHandle: Pt,
|
|
1653
1653
|
useInsertionEffect: $t,
|
|
1654
1654
|
useLayoutEffect: li,
|
|
1655
|
-
useMemo:
|
|
1655
|
+
useMemo: Ji,
|
|
1656
1656
|
useReducer: Dt,
|
|
1657
|
-
useRef:
|
|
1657
|
+
useRef: Ge,
|
|
1658
1658
|
useState: pe,
|
|
1659
1659
|
useSyncExternalStore: Zt,
|
|
1660
1660
|
useTransition: Jt,
|
|
1661
1661
|
version: AM
|
|
1662
1662
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1663
|
-
var
|
|
1663
|
+
var Ki = (e) => e.type === "checkbox", fi = (e) => e instanceof Date, Ce = (e) => e == null;
|
|
1664
1664
|
const uo = (e) => typeof e == "object";
|
|
1665
|
-
var Ee = (e) => !Ce(e) && !Array.isArray(e) && uo(e) && !fi(e), lo = (e) => Ee(e) && e.target ?
|
|
1665
|
+
var Ee = (e) => !Ce(e) && !Array.isArray(e) && uo(e) && !fi(e), lo = (e) => Ee(e) && e.target ? Ki(e.target) ? e.target.checked : e.target.value : e, zM = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, co = (e, i) => e.has(zM(i)), OM = (e) => {
|
|
1666
1666
|
const i = e.constructor && e.constructor.prototype;
|
|
1667
1667
|
return Ee(i) && i.hasOwnProperty("isPrototypeOf");
|
|
1668
1668
|
}, Kt = typeof window != "undefined" && typeof window.HTMLElement != "undefined" && typeof document != "undefined";
|
|
@@ -1686,26 +1686,26 @@ var yt = (e) => /^\w*$/.test(e), Te = (e) => e === void 0, qt = (e) => Array.isA
|
|
|
1686
1686
|
return t;
|
|
1687
1687
|
const r = (yt(i) ? [i] : er(i)).reduce((n, o) => Ce(n) ? n : n[o], e);
|
|
1688
1688
|
return Te(r) || r === e ? Te(e[i]) ? t : e[i] : r;
|
|
1689
|
-
}, Pe = (e) => typeof e == "boolean",
|
|
1689
|
+
}, Pe = (e) => typeof e == "boolean", De = (e, i, t) => {
|
|
1690
1690
|
let r = -1;
|
|
1691
1691
|
const n = yt(i) ? [i] : er(i), o = n.length, s = o - 1;
|
|
1692
1692
|
for (; ++r < o; ) {
|
|
1693
|
-
const
|
|
1693
|
+
const a = n[r];
|
|
1694
1694
|
let D = t;
|
|
1695
1695
|
if (r !== s) {
|
|
1696
|
-
const j = e[
|
|
1696
|
+
const j = e[a];
|
|
1697
1697
|
D = Ee(j) || Array.isArray(j) ? j : isNaN(+n[r + 1]) ? {} : [];
|
|
1698
1698
|
}
|
|
1699
|
-
if (
|
|
1699
|
+
if (a === "__proto__" || a === "constructor" || a === "prototype")
|
|
1700
1700
|
return;
|
|
1701
|
-
e[
|
|
1701
|
+
e[a] = D, e = e[a];
|
|
1702
1702
|
}
|
|
1703
1703
|
};
|
|
1704
1704
|
const ct = {
|
|
1705
1705
|
BLUR: "blur",
|
|
1706
1706
|
FOCUS_OUT: "focusout",
|
|
1707
1707
|
CHANGE: "change"
|
|
1708
|
-
},
|
|
1708
|
+
}, We = {
|
|
1709
1709
|
onBlur: "onBlur",
|
|
1710
1710
|
onChange: "onChange",
|
|
1711
1711
|
onSubmit: "onSubmit",
|
|
@@ -1730,14 +1730,14 @@ var No = (e, i, t, r = !0) => {
|
|
|
1730
1730
|
Object.defineProperty(n, o, {
|
|
1731
1731
|
get: () => {
|
|
1732
1732
|
const s = o;
|
|
1733
|
-
return i._proxyFormState[s] !==
|
|
1733
|
+
return i._proxyFormState[s] !== We.all && (i._proxyFormState[s] = !r || We.all), t && (t[s] = !0), e[s];
|
|
1734
1734
|
}
|
|
1735
1735
|
});
|
|
1736
1736
|
return n;
|
|
1737
1737
|
};
|
|
1738
1738
|
const tr = typeof window != "undefined" ? re.useLayoutEffect : re.useEffect;
|
|
1739
1739
|
function xM(e) {
|
|
1740
|
-
const i = ir(), { control: t = i.control, disabled: r, name: n, exact: o } = e || {}, [s,
|
|
1740
|
+
const i = ir(), { control: t = i.control, disabled: r, name: n, exact: o } = e || {}, [s, a] = re.useState(t._formState), D = re.useRef({
|
|
1741
1741
|
isDirty: !1,
|
|
1742
1742
|
isLoading: !1,
|
|
1743
1743
|
dirtyFields: !1,
|
|
@@ -1752,7 +1752,7 @@ function xM(e) {
|
|
|
1752
1752
|
formState: D.current,
|
|
1753
1753
|
exact: o,
|
|
1754
1754
|
callback: (j) => {
|
|
1755
|
-
!r &&
|
|
1755
|
+
!r && a(z(z({}, t._formState), j));
|
|
1756
1756
|
}
|
|
1757
1757
|
}), [n, r, o]), re.useEffect(() => {
|
|
1758
1758
|
D.current.isValid && t._setValid(!0);
|
|
@@ -1775,17 +1775,17 @@ function ni(e, i, t = /* @__PURE__ */ new WeakSet()) {
|
|
|
1775
1775
|
if (!n.includes(o))
|
|
1776
1776
|
return !1;
|
|
1777
1777
|
if (o !== "ref") {
|
|
1778
|
-
const
|
|
1779
|
-
if (fi(s) && fi(
|
|
1778
|
+
const a = i[o];
|
|
1779
|
+
if (fi(s) && fi(a) || Ee(s) && Ee(a) || Array.isArray(s) && Array.isArray(a) ? !ni(s, a, t) : s !== a)
|
|
1780
1780
|
return !1;
|
|
1781
1781
|
}
|
|
1782
1782
|
}
|
|
1783
1783
|
return !0;
|
|
1784
1784
|
}
|
|
1785
1785
|
function EM(e) {
|
|
1786
|
-
const i = ir(), { control: t = i.control, name: r, defaultValue: n, disabled: o, exact: s, compute:
|
|
1787
|
-
j.current =
|
|
1788
|
-
const
|
|
1786
|
+
const i = ir(), { control: t = i.control, name: r, defaultValue: n, disabled: o, exact: s, compute: a } = e || {}, D = re.useRef(n), j = re.useRef(a), A = re.useRef(void 0);
|
|
1787
|
+
j.current = a;
|
|
1788
|
+
const g = re.useMemo(() => t._getWatch(r, D.current), [t, r]), [M, y] = re.useState(j.current ? j.current(g) : g);
|
|
1789
1789
|
return tr(() => t._subscribe({
|
|
1790
1790
|
name: r,
|
|
1791
1791
|
formState: {
|
|
@@ -1796,16 +1796,16 @@ function EM(e) {
|
|
|
1796
1796
|
if (!o) {
|
|
1797
1797
|
const I = Do(r, t._names, N.values || t._formValues, !1, D.current);
|
|
1798
1798
|
if (j.current) {
|
|
1799
|
-
const
|
|
1800
|
-
ni(
|
|
1799
|
+
const O = j.current(I);
|
|
1800
|
+
ni(O, A.current) || (y(O), A.current = O);
|
|
1801
1801
|
} else
|
|
1802
1802
|
y(I);
|
|
1803
1803
|
}
|
|
1804
1804
|
}
|
|
1805
|
-
}), [t, o, r, s]), re.useEffect(() => t._removeUnmounted()),
|
|
1805
|
+
}), [t, o, r, s]), re.useEffect(() => t._removeUnmounted()), M;
|
|
1806
1806
|
}
|
|
1807
1807
|
function hM(e) {
|
|
1808
|
-
const i = ir(), { name: t, disabled: r, control: n = i.control, shouldUnregister: o, defaultValue: s } = e,
|
|
1808
|
+
const i = ir(), { name: t, disabled: r, control: n = i.control, shouldUnregister: o, defaultValue: s } = e, a = co(n._names.array, t), D = re.useMemo(() => C(n._formValues, t, C(n._defaultValues, t, s)), [n, t, s]), j = EM({
|
|
1809
1809
|
control: n,
|
|
1810
1810
|
name: t,
|
|
1811
1811
|
defaultValue: D,
|
|
@@ -1814,10 +1814,10 @@ function hM(e) {
|
|
|
1814
1814
|
control: n,
|
|
1815
1815
|
name: t,
|
|
1816
1816
|
exact: !0
|
|
1817
|
-
}),
|
|
1817
|
+
}), g = re.useRef(e), M = re.useRef(void 0), y = re.useRef(n.register(t, z(H(z({}, e.rules), {
|
|
1818
1818
|
value: j
|
|
1819
1819
|
}), Pe(e.disabled) ? { disabled: e.disabled } : {})));
|
|
1820
|
-
|
|
1820
|
+
g.current = e;
|
|
1821
1821
|
const N = re.useMemo(() => Object.defineProperties({}, {
|
|
1822
1822
|
invalid: {
|
|
1823
1823
|
enumerable: !0,
|
|
@@ -1839,49 +1839,49 @@ function hM(e) {
|
|
|
1839
1839
|
enumerable: !0,
|
|
1840
1840
|
get: () => C(A.errors, t)
|
|
1841
1841
|
}
|
|
1842
|
-
}), [A, t]), I = re.useCallback((
|
|
1842
|
+
}), [A, t]), I = re.useCallback((p) => y.current.onChange({
|
|
1843
1843
|
target: {
|
|
1844
|
-
value: lo(
|
|
1844
|
+
value: lo(p),
|
|
1845
1845
|
name: t
|
|
1846
1846
|
},
|
|
1847
1847
|
type: ct.CHANGE
|
|
1848
|
-
}), [t]),
|
|
1848
|
+
}), [t]), O = re.useCallback(() => y.current.onBlur({
|
|
1849
1849
|
target: {
|
|
1850
1850
|
value: C(n._formValues, t),
|
|
1851
1851
|
name: t
|
|
1852
1852
|
},
|
|
1853
1853
|
type: ct.BLUR
|
|
1854
|
-
}), [t, n._formValues]), w = re.useCallback((
|
|
1855
|
-
const
|
|
1856
|
-
|
|
1857
|
-
focus: () =>
|
|
1858
|
-
select: () =>
|
|
1859
|
-
setCustomValidity: (
|
|
1860
|
-
reportValidity: () =>
|
|
1854
|
+
}), [t, n._formValues]), w = re.useCallback((p) => {
|
|
1855
|
+
const h = C(n._fields, t);
|
|
1856
|
+
h && p && (h._f.ref = {
|
|
1857
|
+
focus: () => p.focus && p.focus(),
|
|
1858
|
+
select: () => p.select && p.select(),
|
|
1859
|
+
setCustomValidity: (U) => p.setCustomValidity(U),
|
|
1860
|
+
reportValidity: () => p.reportValidity()
|
|
1861
1861
|
});
|
|
1862
|
-
}, [n._fields, t]), _ = re.useMemo(() =>
|
|
1862
|
+
}, [n._fields, t]), _ = re.useMemo(() => H(z({
|
|
1863
1863
|
name: t,
|
|
1864
1864
|
value: j
|
|
1865
1865
|
}, Pe(r) || A.disabled ? { disabled: A.disabled || r } : {}), {
|
|
1866
1866
|
onChange: I,
|
|
1867
|
-
onBlur:
|
|
1867
|
+
onBlur: O,
|
|
1868
1868
|
ref: w
|
|
1869
|
-
}), [t, r, A.disabled, I,
|
|
1869
|
+
}), [t, r, A.disabled, I, O, w, j]);
|
|
1870
1870
|
return re.useEffect(() => {
|
|
1871
|
-
const
|
|
1872
|
-
|
|
1873
|
-
const
|
|
1874
|
-
const
|
|
1875
|
-
|
|
1871
|
+
const p = n._options.shouldUnregister || o, h = M.current;
|
|
1872
|
+
h && h !== t && !a && n.unregister(h), n.register(t, z(z({}, g.current.rules), Pe(g.current.disabled) ? { disabled: g.current.disabled } : {}));
|
|
1873
|
+
const U = (ee, ue) => {
|
|
1874
|
+
const W = C(n._fields, ee);
|
|
1875
|
+
W && W._f && (W._f.mount = ue);
|
|
1876
1876
|
};
|
|
1877
|
-
if (
|
|
1878
|
-
const
|
|
1879
|
-
|
|
1877
|
+
if (U(t, !0), p) {
|
|
1878
|
+
const ee = me(C(n._options.defaultValues, t, g.current.defaultValue));
|
|
1879
|
+
De(n._defaultValues, t, ee), Te(C(n._formValues, t)) && De(n._formValues, t, ee);
|
|
1880
1880
|
}
|
|
1881
|
-
return !
|
|
1882
|
-
(
|
|
1881
|
+
return !a && n.register(t), M.current = t, () => {
|
|
1882
|
+
(a ? p && !n._state.action : p) ? n.unregister(t) : U(t, !1);
|
|
1883
1883
|
};
|
|
1884
|
-
}, [t, n,
|
|
1884
|
+
}, [t, n, a, o]), re.useEffect(() => {
|
|
1885
1885
|
n._setDisabledField({
|
|
1886
1886
|
disabled: r,
|
|
1887
1887
|
name: t
|
|
@@ -1893,11 +1893,11 @@ function hM(e) {
|
|
|
1893
1893
|
}), [_, A, N]);
|
|
1894
1894
|
}
|
|
1895
1895
|
const Io = (e) => e.render(hM(e));
|
|
1896
|
-
var mM = (e, i, t, r, n) => i ?
|
|
1897
|
-
types:
|
|
1896
|
+
var mM = (e, i, t, r, n) => i ? H(z({}, t[e]), {
|
|
1897
|
+
types: H(z({}, t[e] && t[e].types ? t[e].types : {}), {
|
|
1898
1898
|
[r]: n || !0
|
|
1899
1899
|
})
|
|
1900
|
-
}) : {},
|
|
1900
|
+
}) : {}, Vi = (e) => Array.isArray(e) ? e : [e], on = () => {
|
|
1901
1901
|
let e = [];
|
|
1902
1902
|
return {
|
|
1903
1903
|
get observers() {
|
|
@@ -1929,12 +1929,12 @@ function jo(e, i) {
|
|
|
1929
1929
|
}
|
|
1930
1930
|
return t;
|
|
1931
1931
|
}
|
|
1932
|
-
var Ue = (e) => Ee(e) && !Object.keys(e).length, rr = (e) => e.type === "file",
|
|
1932
|
+
var Ue = (e) => Ee(e) && !Object.keys(e).length, rr = (e) => e.type === "file", Ze = (e) => typeof e == "function", gt = (e) => {
|
|
1933
1933
|
if (!Kt)
|
|
1934
1934
|
return !1;
|
|
1935
1935
|
const i = e ? e.ownerDocument : 0;
|
|
1936
1936
|
return e instanceof (i && i.defaultView ? i.defaultView.HTMLElement : HTMLElement);
|
|
1937
|
-
}, yo = (e) => e.type === "select-multiple", nr = (e) => e.type === "radio", wM = (e) => nr(e) ||
|
|
1937
|
+
}, yo = (e) => e.type === "select-multiple", nr = (e) => e.type === "radio", wM = (e) => nr(e) || Ki(e), zt = (e) => gt(e) && e.isConnected;
|
|
1938
1938
|
function pM(e, i) {
|
|
1939
1939
|
const t = i.slice(0, -1).length;
|
|
1940
1940
|
let r = 0;
|
|
@@ -1954,7 +1954,7 @@ function xe(e, i) {
|
|
|
1954
1954
|
}
|
|
1955
1955
|
var bM = (e) => {
|
|
1956
1956
|
for (const i in e)
|
|
1957
|
-
if (
|
|
1957
|
+
if (Ze(e[i]))
|
|
1958
1958
|
return !0;
|
|
1959
1959
|
return !1;
|
|
1960
1960
|
};
|
|
@@ -1999,13 +1999,13 @@ var zo = (e) => Array.isArray(e) ? e.reduce((i, t) => t && t.checked && !t.disab
|
|
|
1999
1999
|
} : i, an) : an;
|
|
2000
2000
|
function un(e) {
|
|
2001
2001
|
const i = e.ref;
|
|
2002
|
-
return rr(i) ? i.files : nr(i) ? zo(e.refs).value : yo(i) ? [...i.selectedOptions].map(({ value: t }) => t) :
|
|
2002
|
+
return rr(i) ? i.files : nr(i) ? zo(e.refs).value : yo(i) ? [...i.selectedOptions].map(({ value: t }) => t) : Ki(i) ? Ao(e.refs).value : To(Te(i.value) ? e.ref.value : i.value, e);
|
|
2003
2003
|
}
|
|
2004
2004
|
var SM = (e, i, t, r) => {
|
|
2005
2005
|
const n = {};
|
|
2006
2006
|
for (const o of e) {
|
|
2007
2007
|
const s = C(i, o);
|
|
2008
|
-
s &&
|
|
2008
|
+
s && De(n, o, s._f);
|
|
2009
2009
|
}
|
|
2010
2010
|
return {
|
|
2011
2011
|
criteriaMode: t,
|
|
@@ -2013,28 +2013,28 @@ var SM = (e, i, t, r) => {
|
|
|
2013
2013
|
fields: n,
|
|
2014
2014
|
shouldUseNativeValidation: r
|
|
2015
2015
|
};
|
|
2016
|
-
}, dt = (e) => e instanceof RegExp,
|
|
2017
|
-
isOnSubmit: !e || e ===
|
|
2018
|
-
isOnBlur: e ===
|
|
2019
|
-
isOnChange: e ===
|
|
2020
|
-
isOnAll: e ===
|
|
2021
|
-
isOnTouch: e ===
|
|
2016
|
+
}, dt = (e) => e instanceof RegExp, Ui = (e) => Te(e) ? e : dt(e) ? e.source : Ee(e) ? dt(e.value) ? e.value.source : e.value : e, ln = (e) => ({
|
|
2017
|
+
isOnSubmit: !e || e === We.onSubmit,
|
|
2018
|
+
isOnBlur: e === We.onBlur,
|
|
2019
|
+
isOnChange: e === We.onChange,
|
|
2020
|
+
isOnAll: e === We.all,
|
|
2021
|
+
isOnTouch: e === We.onTouched
|
|
2022
2022
|
});
|
|
2023
2023
|
const cn = "AsyncFunction";
|
|
2024
|
-
var CM = (e) => !!e && !!e.validate && !!(
|
|
2025
|
-
const
|
|
2024
|
+
var CM = (e) => !!e && !!e.validate && !!(Ze(e.validate) && e.validate.constructor.name === cn || Ee(e.validate) && Object.values(e.validate).find((i) => i.constructor.name === cn)), vM = (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))));
|
|
2025
|
+
const Bi = (e, i, t, r) => {
|
|
2026
2026
|
for (const o of t || Object.keys(e)) {
|
|
2027
2027
|
const s = C(e, o);
|
|
2028
2028
|
if (s) {
|
|
2029
|
-
const n = s, { _f:
|
|
2030
|
-
if (
|
|
2031
|
-
if (
|
|
2029
|
+
const n = s, { _f: a } = n, D = Di(n, ["_f"]);
|
|
2030
|
+
if (a) {
|
|
2031
|
+
if (a.refs && a.refs[0] && i(a.refs[0], o) && !r)
|
|
2032
2032
|
return !0;
|
|
2033
|
-
if (
|
|
2033
|
+
if (a.ref && i(a.ref, a.name) && !r)
|
|
2034
2034
|
return !0;
|
|
2035
|
-
if (
|
|
2035
|
+
if (Bi(D, i))
|
|
2036
2036
|
break;
|
|
2037
|
-
} else if (Ee(D) &&
|
|
2037
|
+
} else if (Ee(D) && Bi(D, i))
|
|
2038
2038
|
break;
|
|
2039
2039
|
}
|
|
2040
2040
|
}
|
|
@@ -2048,18 +2048,18 @@ function dn(e, i, t) {
|
|
|
2048
2048
|
};
|
|
2049
2049
|
const n = t.split(".");
|
|
2050
2050
|
for (; n.length; ) {
|
|
2051
|
-
const o = n.join("."), s = C(i, o),
|
|
2051
|
+
const o = n.join("."), s = C(i, o), a = C(e, o);
|
|
2052
2052
|
if (s && !Array.isArray(s) && t !== o)
|
|
2053
2053
|
return { name: t };
|
|
2054
|
-
if (
|
|
2054
|
+
if (a && a.type)
|
|
2055
2055
|
return {
|
|
2056
2056
|
name: o,
|
|
2057
|
-
error:
|
|
2057
|
+
error: a
|
|
2058
2058
|
};
|
|
2059
|
-
if (
|
|
2059
|
+
if (a && a.root && a.root.type)
|
|
2060
2060
|
return {
|
|
2061
2061
|
name: `${o}.root`,
|
|
2062
|
-
error:
|
|
2062
|
+
error: a.root
|
|
2063
2063
|
};
|
|
2064
2064
|
n.pop();
|
|
2065
2065
|
}
|
|
@@ -2070,10 +2070,10 @@ function dn(e, i, t) {
|
|
|
2070
2070
|
var LM = (e, i, t, r) => {
|
|
2071
2071
|
t(e);
|
|
2072
2072
|
const s = e, { name: n } = s, o = Di(s, ["name"]);
|
|
2073
|
-
return Ue(o) || Object.keys(o).length >= Object.keys(i).length || Object.keys(o).find((
|
|
2074
|
-
}, kM = (e, i, t) => !e || !i || e === i ||
|
|
2075
|
-
const r =
|
|
2076
|
-
return
|
|
2073
|
+
return Ue(o) || Object.keys(o).length >= Object.keys(i).length || Object.keys(o).find((a) => i[a] === (!r || We.all));
|
|
2074
|
+
}, kM = (e, i, t) => !e || !i || e === i || Vi(e).some((r) => r && (t ? r === i : r.startsWith(i) || i.startsWith(r))), UM = (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, QM = (e, i) => !qt(C(e, i)).length && xe(e, i), YM = (e, i, t) => {
|
|
2075
|
+
const r = Vi(C(e, t));
|
|
2076
|
+
return De(r, "root", i[t]), De(e, t, r), e;
|
|
2077
2077
|
};
|
|
2078
2078
|
function Nn(e, i, t = "validate") {
|
|
2079
2079
|
if (Re(e) || Array.isArray(e) && e.every(Re) || Pe(e) && !e)
|
|
@@ -2086,88 +2086,88 @@ function Nn(e, i, t = "validate") {
|
|
|
2086
2086
|
var wi = (e) => Ee(e) && !dt(e) ? e : {
|
|
2087
2087
|
value: e,
|
|
2088
2088
|
message: ""
|
|
2089
|
-
}, Dn = (e, i, t, r, n, o) =>
|
|
2090
|
-
const { ref: s, refs:
|
|
2089
|
+
}, Dn = (e, i, t, r, n, o) => je(null, null, function* () {
|
|
2090
|
+
const { ref: s, refs: a, required: D, maxLength: j, minLength: A, min: g, max: M, pattern: y, validate: N, name: I, valueAsNumber: O, mount: w } = e._f, _ = C(t, I);
|
|
2091
2091
|
if (!w || i.has(I))
|
|
2092
2092
|
return {};
|
|
2093
|
-
const
|
|
2094
|
-
n &&
|
|
2095
|
-
},
|
|
2096
|
-
const Ae =
|
|
2097
|
-
|
|
2098
|
-
type:
|
|
2093
|
+
const p = a ? a[0] : s, h = (k) => {
|
|
2094
|
+
n && p.reportValidity && (p.setCustomValidity(Pe(k) ? "" : k || ""), p.reportValidity());
|
|
2095
|
+
}, U = {}, ee = nr(s), ue = Ki(s), W = ee || ue, ne = (O || rr(s)) && Te(s.value) && Te(_) || gt(s) && s.value === "" || _ === "" || Array.isArray(_) && !_.length, Q = mM.bind(null, I, r, U), G = (k, J, ie, Ie = ti.maxLength, Ne = ti.minLength) => {
|
|
2096
|
+
const Ae = k ? J : ie;
|
|
2097
|
+
U[I] = z({
|
|
2098
|
+
type: k ? Ie : Ne,
|
|
2099
2099
|
message: Ae,
|
|
2100
2100
|
ref: s
|
|
2101
|
-
},
|
|
2101
|
+
}, Q(k ? Ie : Ne, Ae));
|
|
2102
2102
|
};
|
|
2103
|
-
if (o ? !Array.isArray(_) || !_.length : D && (!
|
|
2104
|
-
const { value:
|
|
2105
|
-
if (
|
|
2103
|
+
if (o ? !Array.isArray(_) || !_.length : D && (!W && (ne || Ce(_)) || Pe(_) && !_ || ue && !Ao(a).isValid || ee && !zo(a).isValid)) {
|
|
2104
|
+
const { value: k, message: J } = Re(D) ? { value: !!D, message: D } : wi(D);
|
|
2105
|
+
if (k && (U[I] = z({
|
|
2106
2106
|
type: ti.required,
|
|
2107
|
-
message:
|
|
2108
|
-
ref:
|
|
2109
|
-
},
|
|
2110
|
-
return
|
|
2107
|
+
message: J,
|
|
2108
|
+
ref: p
|
|
2109
|
+
}, Q(ti.required, J)), !r))
|
|
2110
|
+
return h(J), U;
|
|
2111
2111
|
}
|
|
2112
|
-
if (!
|
|
2113
|
-
let
|
|
2114
|
-
const
|
|
2112
|
+
if (!ne && (!Ce(g) || !Ce(M))) {
|
|
2113
|
+
let k, J;
|
|
2114
|
+
const ie = wi(M), Ie = wi(g);
|
|
2115
2115
|
if (!Ce(_) && !isNaN(_)) {
|
|
2116
|
-
const
|
|
2117
|
-
Ce(
|
|
2116
|
+
const Ne = s.valueAsNumber || _ && +_;
|
|
2117
|
+
Ce(ie.value) || (k = Ne > ie.value), Ce(Ie.value) || (J = Ne < Ie.value);
|
|
2118
2118
|
} else {
|
|
2119
|
-
const
|
|
2120
|
-
Re(
|
|
2119
|
+
const Ne = s.valueAsDate || new Date(_), Ae = (Z) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + Z), Qe = s.type == "time", le = s.type == "week";
|
|
2120
|
+
Re(ie.value) && _ && (k = Qe ? Ae(_) > Ae(ie.value) : le ? _ > ie.value : Ne > new Date(ie.value)), Re(Ie.value) && _ && (J = Qe ? Ae(_) < Ae(Ie.value) : le ? _ < Ie.value : Ne < new Date(Ie.value));
|
|
2121
2121
|
}
|
|
2122
|
-
if ((
|
|
2123
|
-
return
|
|
2122
|
+
if ((k || J) && (G(!!k, ie.message, Ie.message, ti.max, ti.min), !r))
|
|
2123
|
+
return h(U[I].message), U;
|
|
2124
2124
|
}
|
|
2125
|
-
if ((j || A) && !
|
|
2126
|
-
const
|
|
2127
|
-
if ((
|
|
2128
|
-
return
|
|
2125
|
+
if ((j || A) && !ne && (Re(_) || o && Array.isArray(_))) {
|
|
2126
|
+
const k = wi(j), J = wi(A), ie = !Ce(k.value) && _.length > +k.value, Ie = !Ce(J.value) && _.length < +J.value;
|
|
2127
|
+
if ((ie || Ie) && (G(ie, k.message, J.message), !r))
|
|
2128
|
+
return h(U[I].message), U;
|
|
2129
2129
|
}
|
|
2130
|
-
if (y && !
|
|
2131
|
-
const { value:
|
|
2132
|
-
if (dt(
|
|
2130
|
+
if (y && !ne && Re(_)) {
|
|
2131
|
+
const { value: k, message: J } = wi(y);
|
|
2132
|
+
if (dt(k) && !_.match(k) && (U[I] = z({
|
|
2133
2133
|
type: ti.pattern,
|
|
2134
|
-
message:
|
|
2134
|
+
message: J,
|
|
2135
2135
|
ref: s
|
|
2136
|
-
},
|
|
2137
|
-
return
|
|
2136
|
+
}, Q(ti.pattern, J)), !r))
|
|
2137
|
+
return h(J), U;
|
|
2138
2138
|
}
|
|
2139
2139
|
if (N) {
|
|
2140
|
-
if (
|
|
2141
|
-
const
|
|
2142
|
-
if (
|
|
2143
|
-
return
|
|
2140
|
+
if (Ze(N)) {
|
|
2141
|
+
const k = yield N(_, t), J = Nn(k, p);
|
|
2142
|
+
if (J && (U[I] = z(z({}, J), Q(ti.validate, J.message)), !r))
|
|
2143
|
+
return h(J.message), U;
|
|
2144
2144
|
} else if (Ee(N)) {
|
|
2145
|
-
let
|
|
2146
|
-
for (const
|
|
2147
|
-
if (!Ue(
|
|
2145
|
+
let k = {};
|
|
2146
|
+
for (const J in N) {
|
|
2147
|
+
if (!Ue(k) && !r)
|
|
2148
2148
|
break;
|
|
2149
|
-
const
|
|
2150
|
-
|
|
2149
|
+
const ie = Nn(yield N[J](_, t), p, J);
|
|
2150
|
+
ie && (k = z(z({}, ie), Q(J, ie.message)), h(ie.message), r && (U[I] = k));
|
|
2151
2151
|
}
|
|
2152
|
-
if (!Ue(
|
|
2153
|
-
ref:
|
|
2154
|
-
},
|
|
2155
|
-
return
|
|
2152
|
+
if (!Ue(k) && (U[I] = z({
|
|
2153
|
+
ref: p
|
|
2154
|
+
}, k), !r))
|
|
2155
|
+
return U;
|
|
2156
2156
|
}
|
|
2157
2157
|
}
|
|
2158
|
-
return
|
|
2158
|
+
return h(!0), U;
|
|
2159
2159
|
});
|
|
2160
2160
|
const PM = {
|
|
2161
|
-
mode:
|
|
2162
|
-
reValidateMode:
|
|
2161
|
+
mode: We.onSubmit,
|
|
2162
|
+
reValidateMode: We.onChange,
|
|
2163
2163
|
shouldFocusError: !0
|
|
2164
2164
|
};
|
|
2165
2165
|
function RM(e = {}) {
|
|
2166
|
-
let i =
|
|
2166
|
+
let i = z(z({}, PM), e), t = {
|
|
2167
2167
|
submitCount: 0,
|
|
2168
2168
|
isDirty: !1,
|
|
2169
2169
|
isReady: !1,
|
|
2170
|
-
isLoading:
|
|
2170
|
+
isLoading: Ze(i.defaultValues),
|
|
2171
2171
|
isValidating: !1,
|
|
2172
2172
|
isSubmitted: !1,
|
|
2173
2173
|
isSubmitting: !1,
|
|
@@ -2182,7 +2182,7 @@ function RM(e = {}) {
|
|
|
2182
2182
|
action: !1,
|
|
2183
2183
|
mount: !1,
|
|
2184
2184
|
watch: !1
|
|
2185
|
-
},
|
|
2185
|
+
}, a = {
|
|
2186
2186
|
mount: /* @__PURE__ */ new Set(),
|
|
2187
2187
|
disabled: /* @__PURE__ */ new Set(),
|
|
2188
2188
|
unMount: /* @__PURE__ */ new Set(),
|
|
@@ -2198,324 +2198,324 @@ function RM(e = {}) {
|
|
|
2198
2198
|
isValid: !1,
|
|
2199
2199
|
errors: !1
|
|
2200
2200
|
};
|
|
2201
|
-
let
|
|
2202
|
-
const
|
|
2201
|
+
let g = z({}, A);
|
|
2202
|
+
const M = {
|
|
2203
2203
|
array: on(),
|
|
2204
2204
|
state: on()
|
|
2205
|
-
}, y = i.criteriaMode ===
|
|
2206
|
-
clearTimeout(j), j = setTimeout(
|
|
2207
|
-
}, I = (
|
|
2208
|
-
if (!i.disabled && (A.isValid ||
|
|
2209
|
-
const T = i.resolver ? Ue((yield
|
|
2210
|
-
T !== t.isValid &&
|
|
2205
|
+
}, y = i.criteriaMode === We.all, N = (c) => (T) => {
|
|
2206
|
+
clearTimeout(j), j = setTimeout(c, T);
|
|
2207
|
+
}, I = (c) => je(null, null, function* () {
|
|
2208
|
+
if (!i.disabled && (A.isValid || g.isValid || c)) {
|
|
2209
|
+
const T = i.resolver ? Ue((yield ue()).errors) : yield ne(r, !0);
|
|
2210
|
+
T !== t.isValid && M.state.next({
|
|
2211
2211
|
isValid: T
|
|
2212
2212
|
});
|
|
2213
2213
|
}
|
|
2214
|
-
}),
|
|
2215
|
-
!i.disabled && (A.isValidating || A.validatingFields ||
|
|
2216
|
-
E && (T ?
|
|
2217
|
-
}),
|
|
2214
|
+
}), O = (c, T) => {
|
|
2215
|
+
!i.disabled && (A.isValidating || A.validatingFields || g.isValidating || g.validatingFields) && ((c || Array.from(a.mount)).forEach((E) => {
|
|
2216
|
+
E && (T ? De(t.validatingFields, E, T) : xe(t.validatingFields, E));
|
|
2217
|
+
}), M.state.next({
|
|
2218
2218
|
validatingFields: t.validatingFields,
|
|
2219
2219
|
isValidating: !Ue(t.validatingFields)
|
|
2220
2220
|
}));
|
|
2221
|
-
}, w = (
|
|
2221
|
+
}, w = (c, T = [], E, v, b = !0, S = !0) => {
|
|
2222
2222
|
if (v && E && !i.disabled) {
|
|
2223
|
-
if (s.action = !0, S && Array.isArray(C(r,
|
|
2224
|
-
const
|
|
2225
|
-
b &&
|
|
2223
|
+
if (s.action = !0, S && Array.isArray(C(r, c))) {
|
|
2224
|
+
const P = E(C(r, c), v.argA, v.argB);
|
|
2225
|
+
b && De(r, c, P);
|
|
2226
2226
|
}
|
|
2227
|
-
if (S && Array.isArray(C(t.errors,
|
|
2228
|
-
const
|
|
2229
|
-
b &&
|
|
2227
|
+
if (S && Array.isArray(C(t.errors, c))) {
|
|
2228
|
+
const P = E(C(t.errors, c), v.argA, v.argB);
|
|
2229
|
+
b && De(t.errors, c, P), QM(t.errors, c);
|
|
2230
2230
|
}
|
|
2231
|
-
if ((A.touchedFields ||
|
|
2232
|
-
const
|
|
2233
|
-
b &&
|
|
2231
|
+
if ((A.touchedFields || g.touchedFields) && S && Array.isArray(C(t.touchedFields, c))) {
|
|
2232
|
+
const P = E(C(t.touchedFields, c), v.argA, v.argB);
|
|
2233
|
+
b && De(t.touchedFields, c, P);
|
|
2234
2234
|
}
|
|
2235
|
-
(A.dirtyFields ||
|
|
2236
|
-
name:
|
|
2237
|
-
isDirty:
|
|
2235
|
+
(A.dirtyFields || g.dirtyFields) && (t.dirtyFields = pi(n, o)), M.state.next({
|
|
2236
|
+
name: c,
|
|
2237
|
+
isDirty: G(c, T),
|
|
2238
2238
|
dirtyFields: t.dirtyFields,
|
|
2239
2239
|
errors: t.errors,
|
|
2240
2240
|
isValid: t.isValid
|
|
2241
2241
|
});
|
|
2242
2242
|
} else
|
|
2243
|
-
|
|
2244
|
-
}, _ = (
|
|
2245
|
-
|
|
2243
|
+
De(o, c, T);
|
|
2244
|
+
}, _ = (c, T) => {
|
|
2245
|
+
De(t.errors, c, T), M.state.next({
|
|
2246
2246
|
errors: t.errors
|
|
2247
2247
|
});
|
|
2248
|
-
},
|
|
2249
|
-
t.errors =
|
|
2248
|
+
}, p = (c) => {
|
|
2249
|
+
t.errors = c, M.state.next({
|
|
2250
2250
|
errors: t.errors,
|
|
2251
2251
|
isValid: !1
|
|
2252
2252
|
});
|
|
2253
|
-
},
|
|
2254
|
-
const b = C(r,
|
|
2253
|
+
}, h = (c, T, E, v) => {
|
|
2254
|
+
const b = C(r, c);
|
|
2255
2255
|
if (b) {
|
|
2256
|
-
const S = C(o,
|
|
2257
|
-
Te(S) || v && v.defaultChecked || T ?
|
|
2256
|
+
const S = C(o, c, Te(E) ? C(n, c) : E);
|
|
2257
|
+
Te(S) || v && v.defaultChecked || T ? De(o, c, T ? S : un(b._f)) : ie(c, S), s.mount && I();
|
|
2258
2258
|
}
|
|
2259
|
-
},
|
|
2260
|
-
let S = !1,
|
|
2261
|
-
const
|
|
2262
|
-
name:
|
|
2259
|
+
}, U = (c, T, E, v, b) => {
|
|
2260
|
+
let S = !1, P = !1;
|
|
2261
|
+
const X = {
|
|
2262
|
+
name: c
|
|
2263
2263
|
};
|
|
2264
2264
|
if (!i.disabled) {
|
|
2265
2265
|
if (!E || v) {
|
|
2266
|
-
(A.isDirty ||
|
|
2267
|
-
const
|
|
2268
|
-
|
|
2266
|
+
(A.isDirty || g.isDirty) && (P = t.isDirty, t.isDirty = X.isDirty = G(), S = P !== X.isDirty);
|
|
2267
|
+
const F = ni(C(n, c), T);
|
|
2268
|
+
P = !!C(t.dirtyFields, c), F ? xe(t.dirtyFields, c) : De(t.dirtyFields, c, !0), X.dirtyFields = t.dirtyFields, S = S || (A.dirtyFields || g.dirtyFields) && P !== !F;
|
|
2269
2269
|
}
|
|
2270
2270
|
if (E) {
|
|
2271
|
-
const
|
|
2272
|
-
|
|
2271
|
+
const F = C(t.touchedFields, c);
|
|
2272
|
+
F || (De(t.touchedFields, c, E), X.touchedFields = t.touchedFields, S = S || (A.touchedFields || g.touchedFields) && F !== E);
|
|
2273
2273
|
}
|
|
2274
|
-
S && b &&
|
|
2274
|
+
S && b && M.state.next(X);
|
|
2275
2275
|
}
|
|
2276
|
-
return S ?
|
|
2277
|
-
},
|
|
2278
|
-
const b = C(t.errors,
|
|
2279
|
-
if (i.delayError && E ? (D = N(() => _(
|
|
2280
|
-
const
|
|
2276
|
+
return S ? X : {};
|
|
2277
|
+
}, ee = (c, T, E, v) => {
|
|
2278
|
+
const b = C(t.errors, c), S = (A.isValid || g.isValid) && Pe(T) && t.isValid !== T;
|
|
2279
|
+
if (i.delayError && E ? (D = N(() => _(c, E)), D(i.delayError)) : (clearTimeout(j), D = null, E ? De(t.errors, c, E) : xe(t.errors, c)), (E ? !ni(b, E) : b) || !Ue(v) || S) {
|
|
2280
|
+
const P = H(z(z({}, v), S && Pe(T) ? { isValid: T } : {}), {
|
|
2281
2281
|
errors: t.errors,
|
|
2282
|
-
name:
|
|
2282
|
+
name: c
|
|
2283
2283
|
});
|
|
2284
|
-
t =
|
|
2284
|
+
t = z(z({}, t), P), M.state.next(P);
|
|
2285
2285
|
}
|
|
2286
|
-
},
|
|
2287
|
-
|
|
2288
|
-
const T = yield i.resolver(o, i.context, SM(
|
|
2289
|
-
return
|
|
2290
|
-
}),
|
|
2291
|
-
const { errors: T } = yield
|
|
2292
|
-
if (
|
|
2293
|
-
for (const E of
|
|
2286
|
+
}, ue = (c) => je(null, null, function* () {
|
|
2287
|
+
O(c, !0);
|
|
2288
|
+
const T = yield i.resolver(o, i.context, SM(c || a.mount, r, i.criteriaMode, i.shouldUseNativeValidation));
|
|
2289
|
+
return O(c), T;
|
|
2290
|
+
}), W = (c) => je(null, null, function* () {
|
|
2291
|
+
const { errors: T } = yield ue(c);
|
|
2292
|
+
if (c)
|
|
2293
|
+
for (const E of c) {
|
|
2294
2294
|
const v = C(T, E);
|
|
2295
|
-
v ?
|
|
2295
|
+
v ? De(t.errors, E, v) : xe(t.errors, E);
|
|
2296
2296
|
}
|
|
2297
2297
|
else
|
|
2298
2298
|
t.errors = T;
|
|
2299
2299
|
return T;
|
|
2300
|
-
}),
|
|
2300
|
+
}), ne = (v, b, ...S) => je(null, [v, b, ...S], function* (c, T, E = {
|
|
2301
2301
|
valid: !0
|
|
2302
2302
|
}) {
|
|
2303
|
-
for (const
|
|
2304
|
-
const
|
|
2305
|
-
if (
|
|
2306
|
-
const
|
|
2307
|
-
if (
|
|
2308
|
-
const
|
|
2309
|
-
|
|
2310
|
-
const
|
|
2311
|
-
if (
|
|
2303
|
+
for (const X in c) {
|
|
2304
|
+
const F = c[X];
|
|
2305
|
+
if (F) {
|
|
2306
|
+
const P = F, { _f: ae } = P, Se = Di(P, ["_f"]);
|
|
2307
|
+
if (ae) {
|
|
2308
|
+
const B = a.array.has(ae.name), K = F._f && CM(F._f);
|
|
2309
|
+
K && A.validatingFields && O([ae.name], !0);
|
|
2310
|
+
const R = yield Dn(F, a.disabled, o, y, i.shouldUseNativeValidation && !T, B);
|
|
2311
|
+
if (K && A.validatingFields && O([ae.name]), R[ae.name] && (E.valid = !1, T))
|
|
2312
2312
|
break;
|
|
2313
|
-
!T && (C(
|
|
2313
|
+
!T && (C(R, ae.name) ? B ? YM(t.errors, R, ae.name) : De(t.errors, ae.name, R[ae.name]) : xe(t.errors, ae.name));
|
|
2314
2314
|
}
|
|
2315
|
-
!Ue(Se) && (yield
|
|
2315
|
+
!Ue(Se) && (yield ne(Se, T, E));
|
|
2316
2316
|
}
|
|
2317
2317
|
}
|
|
2318
2318
|
return E.valid;
|
|
2319
|
-
}),
|
|
2320
|
-
for (const
|
|
2321
|
-
const T = C(r,
|
|
2322
|
-
T && (T._f.refs ? T._f.refs.every((E) => !zt(E)) : !zt(T._f.ref)) && Ve(
|
|
2319
|
+
}), Q = () => {
|
|
2320
|
+
for (const c of a.unMount) {
|
|
2321
|
+
const T = C(r, c);
|
|
2322
|
+
T && (T._f.refs ? T._f.refs.every((E) => !zt(E)) : !zt(T._f.ref)) && Ve(c);
|
|
2323
2323
|
}
|
|
2324
|
-
|
|
2325
|
-
},
|
|
2326
|
-
const v = C(r,
|
|
2324
|
+
a.unMount = /* @__PURE__ */ new Set();
|
|
2325
|
+
}, G = (c, T) => !i.disabled && (c && T && De(o, c, T), !ni(Z(), n)), k = (c, T, E) => Do(c, a, z({}, s.mount ? o : Te(T) ? n : Re(c) ? { [c]: T } : T), E, T), J = (c) => qt(C(s.mount ? o : n, c, i.shouldUnregister ? C(n, c, []) : [])), ie = (c, T, E = {}) => {
|
|
2326
|
+
const v = C(r, c);
|
|
2327
2327
|
let b = T;
|
|
2328
2328
|
if (v) {
|
|
2329
2329
|
const S = v._f;
|
|
2330
|
-
S && (!S.disabled &&
|
|
2331
|
-
(!
|
|
2332
|
-
}) : S.refs.forEach((
|
|
2333
|
-
name:
|
|
2330
|
+
S && (!S.disabled && De(o, c, To(T, S)), b = gt(S.ref) && Ce(T) ? "" : T, yo(S.ref) ? [...S.ref.options].forEach((P) => P.selected = b.includes(P.value)) : S.refs ? Ki(S.ref) ? S.refs.forEach((P) => {
|
|
2331
|
+
(!P.defaultChecked || !P.disabled) && (Array.isArray(b) ? P.checked = !!b.find((X) => X === P.value) : P.checked = b === P.value || !!b);
|
|
2332
|
+
}) : S.refs.forEach((P) => P.checked = P.value === b) : rr(S.ref) ? S.ref.value = "" : (S.ref.value = b, S.ref.type || M.state.next({
|
|
2333
|
+
name: c,
|
|
2334
2334
|
values: me(o)
|
|
2335
2335
|
})));
|
|
2336
2336
|
}
|
|
2337
|
-
(E.shouldDirty || E.shouldTouch) &&
|
|
2338
|
-
}, Ie = (
|
|
2337
|
+
(E.shouldDirty || E.shouldTouch) && U(c, b, E.shouldTouch, E.shouldDirty, !0), E.shouldValidate && le(c);
|
|
2338
|
+
}, Ie = (c, T, E) => {
|
|
2339
2339
|
for (const v in T) {
|
|
2340
2340
|
if (!T.hasOwnProperty(v))
|
|
2341
2341
|
return;
|
|
2342
|
-
const b = T[v], S =
|
|
2343
|
-
(
|
|
2342
|
+
const b = T[v], S = c + "." + v, P = C(r, S);
|
|
2343
|
+
(a.array.has(c) || Ee(b) || P && !P._f) && !fi(b) ? Ie(S, b, E) : ie(S, b, E);
|
|
2344
2344
|
}
|
|
2345
|
-
},
|
|
2346
|
-
const v = C(r,
|
|
2347
|
-
|
|
2348
|
-
name:
|
|
2345
|
+
}, Ne = (c, T, E = {}) => {
|
|
2346
|
+
const v = C(r, c), b = a.array.has(c), S = me(T);
|
|
2347
|
+
De(o, c, S), b ? (M.array.next({
|
|
2348
|
+
name: c,
|
|
2349
2349
|
values: me(o)
|
|
2350
|
-
}), (A.isDirty || A.dirtyFields ||
|
|
2351
|
-
name:
|
|
2350
|
+
}), (A.isDirty || A.dirtyFields || g.isDirty || g.dirtyFields) && E.shouldDirty && M.state.next({
|
|
2351
|
+
name: c,
|
|
2352
2352
|
dirtyFields: pi(n, o),
|
|
2353
|
-
isDirty:
|
|
2354
|
-
})) : v && !v._f && !Ce(S) ? Ie(
|
|
2355
|
-
name: s.mount ?
|
|
2353
|
+
isDirty: G(c, S)
|
|
2354
|
+
})) : v && !v._f && !Ce(S) ? Ie(c, S, E) : ie(c, S, E), gn(c, a) && M.state.next(H(z({}, t), { name: c })), M.state.next({
|
|
2355
|
+
name: s.mount ? c : void 0,
|
|
2356
2356
|
values: me(o)
|
|
2357
2357
|
});
|
|
2358
|
-
}, Ae = (
|
|
2358
|
+
}, Ae = (c) => je(null, null, function* () {
|
|
2359
2359
|
s.mount = !0;
|
|
2360
|
-
const T =
|
|
2360
|
+
const T = c.target;
|
|
2361
2361
|
let E = T.name, v = !0;
|
|
2362
|
-
const b = C(r, E), S = (
|
|
2363
|
-
v = Number.isNaN(
|
|
2364
|
-
},
|
|
2362
|
+
const b = C(r, E), S = (F) => {
|
|
2363
|
+
v = Number.isNaN(F) || fi(F) && isNaN(F.getTime()) || ni(F, C(o, E, F));
|
|
2364
|
+
}, P = ln(i.mode), X = ln(i.reValidateMode);
|
|
2365
2365
|
if (b) {
|
|
2366
|
-
let
|
|
2367
|
-
const Se = T.type ? un(b._f) : lo(
|
|
2368
|
-
|
|
2369
|
-
const Me =
|
|
2370
|
-
if (!
|
|
2366
|
+
let F, ae;
|
|
2367
|
+
const Se = T.type ? un(b._f) : lo(c), B = c.type === ct.BLUR || c.type === ct.FOCUS_OUT, K = !vM(b._f) && !i.resolver && !C(t.errors, E) && !b._f.deps || UM(B, C(t.touchedFields, E), t.isSubmitted, X, P), R = gn(E, a, B);
|
|
2368
|
+
De(o, E, Se), B ? (!T || !T.readOnly) && (b._f.onBlur && b._f.onBlur(c), D && D(0)) : b._f.onChange && b._f.onChange(c);
|
|
2369
|
+
const Me = U(E, Se, B), Le = !Ue(Me) || R;
|
|
2370
|
+
if (!B && M.state.next({
|
|
2371
2371
|
name: E,
|
|
2372
|
-
type:
|
|
2372
|
+
type: c.type,
|
|
2373
2373
|
values: me(o)
|
|
2374
|
-
}),
|
|
2375
|
-
return (A.isValid ||
|
|
2376
|
-
if (!
|
|
2377
|
-
const { errors: we } = yield
|
|
2374
|
+
}), K)
|
|
2375
|
+
return (A.isValid || g.isValid) && (i.mode === "onBlur" ? B && I() : B || I()), Le && M.state.next(z({ name: E }, R ? {} : Me));
|
|
2376
|
+
if (!B && R && M.state.next(z({}, t)), i.resolver) {
|
|
2377
|
+
const { errors: we } = yield ue([E]);
|
|
2378
2378
|
if (S(Se), v) {
|
|
2379
|
-
const
|
|
2380
|
-
|
|
2379
|
+
const se = dn(t.errors, r, E), V = dn(we, r, se.name || E);
|
|
2380
|
+
F = V.error, E = V.name, ae = Ue(we);
|
|
2381
2381
|
}
|
|
2382
2382
|
} else
|
|
2383
|
-
|
|
2384
|
-
v && (b._f.deps && (!Array.isArray(b._f.deps) || b._f.deps.length > 0) && le(b._f.deps),
|
|
2383
|
+
O([E], !0), F = (yield Dn(b, a.disabled, o, y, i.shouldUseNativeValidation))[E], O([E]), S(Se), v && (F ? ae = !1 : (A.isValid || g.isValid) && (ae = yield ne(r, !0)));
|
|
2384
|
+
v && (b._f.deps && (!Array.isArray(b._f.deps) || b._f.deps.length > 0) && le(b._f.deps), ee(E, ae, F, Me));
|
|
2385
2385
|
}
|
|
2386
|
-
}), Qe = (
|
|
2387
|
-
if (C(t.errors, T) &&
|
|
2388
|
-
return
|
|
2389
|
-
}, le = (E, ...v) =>
|
|
2386
|
+
}), Qe = (c, T) => {
|
|
2387
|
+
if (C(t.errors, T) && c.focus)
|
|
2388
|
+
return c.focus(), 1;
|
|
2389
|
+
}, le = (E, ...v) => je(null, [E, ...v], function* (c, T = {}) {
|
|
2390
2390
|
let b, S;
|
|
2391
|
-
const
|
|
2391
|
+
const P = Vi(c);
|
|
2392
2392
|
if (i.resolver) {
|
|
2393
|
-
const
|
|
2394
|
-
b = Ue(
|
|
2395
|
-
} else
|
|
2396
|
-
const
|
|
2397
|
-
return yield
|
|
2398
|
-
})))).every(Boolean), !(!S && !t.isValid) && I()) : S = b = yield
|
|
2399
|
-
return
|
|
2393
|
+
const X = yield W(Te(c) ? c : P);
|
|
2394
|
+
b = Ue(X), S = c ? !P.some((F) => C(X, F)) : b;
|
|
2395
|
+
} else c ? (S = (yield Promise.all(P.map((X) => je(null, null, function* () {
|
|
2396
|
+
const F = C(r, X);
|
|
2397
|
+
return yield ne(F && F._f ? { [X]: F } : F);
|
|
2398
|
+
})))).every(Boolean), !(!S && !t.isValid) && I()) : S = b = yield ne(r);
|
|
2399
|
+
return M.state.next(H(z(z({}, !Re(c) || (A.isValid || g.isValid) && b !== t.isValid ? {} : { name: c }), i.resolver || !c ? { isValid: b } : {}), {
|
|
2400
2400
|
errors: t.errors
|
|
2401
|
-
})), T.shouldFocus && !S &&
|
|
2402
|
-
}),
|
|
2403
|
-
let E =
|
|
2404
|
-
return T && (E = jo(T.dirtyFields ? t.dirtyFields : t.touchedFields, E)), Te(
|
|
2405
|
-
}, ge = (
|
|
2406
|
-
invalid: !!C((T || t).errors,
|
|
2407
|
-
isDirty: !!C((T || t).dirtyFields,
|
|
2408
|
-
error: C((T || t).errors,
|
|
2409
|
-
isValidating: !!C(t.validatingFields,
|
|
2410
|
-
isTouched: !!C((T || t).touchedFields,
|
|
2411
|
-
}), ze = (
|
|
2412
|
-
|
|
2413
|
-
errors:
|
|
2401
|
+
})), T.shouldFocus && !S && Bi(r, Qe, c ? P : a.mount), S;
|
|
2402
|
+
}), Z = (c, T) => {
|
|
2403
|
+
let E = z({}, s.mount ? o : n);
|
|
2404
|
+
return T && (E = jo(T.dirtyFields ? t.dirtyFields : t.touchedFields, E)), Te(c) ? E : Re(c) ? C(E, c) : c.map((v) => C(E, v));
|
|
2405
|
+
}, ge = (c, T) => ({
|
|
2406
|
+
invalid: !!C((T || t).errors, c),
|
|
2407
|
+
isDirty: !!C((T || t).dirtyFields, c),
|
|
2408
|
+
error: C((T || t).errors, c),
|
|
2409
|
+
isValidating: !!C(t.validatingFields, c),
|
|
2410
|
+
isTouched: !!C((T || t).touchedFields, c)
|
|
2411
|
+
}), ze = (c) => {
|
|
2412
|
+
c && Vi(c).forEach((T) => xe(t.errors, T)), M.state.next({
|
|
2413
|
+
errors: c ? t.errors : {}
|
|
2414
2414
|
});
|
|
2415
|
-
}, he = (
|
|
2416
|
-
const v = (C(r,
|
|
2417
|
-
|
|
2415
|
+
}, he = (c, T, E) => {
|
|
2416
|
+
const v = (C(r, c, { _f: {} })._f || {}).ref, ae = C(t.errors, c) || {}, { ref: S, message: P, type: X } = ae, F = Di(ae, ["ref", "message", "type"]);
|
|
2417
|
+
De(t.errors, c, H(z(z({}, F), T), {
|
|
2418
2418
|
ref: v
|
|
2419
|
-
})),
|
|
2420
|
-
name:
|
|
2419
|
+
})), M.state.next({
|
|
2420
|
+
name: c,
|
|
2421
2421
|
errors: t.errors,
|
|
2422
2422
|
isValid: !1
|
|
2423
2423
|
}), E && E.shouldFocus && v && v.focus && v.focus();
|
|
2424
|
-
}, ve = (
|
|
2425
|
-
next: (E) => "values" in E &&
|
|
2426
|
-
}) :
|
|
2424
|
+
}, ve = (c, T) => Ze(c) ? M.state.subscribe({
|
|
2425
|
+
next: (E) => "values" in E && c(k(void 0, T), E)
|
|
2426
|
+
}) : k(c, T, !0), Y = (c) => M.state.subscribe({
|
|
2427
2427
|
next: (T) => {
|
|
2428
|
-
kM(
|
|
2429
|
-
values:
|
|
2428
|
+
kM(c.name, T.name, c.exact) && LM(T, c.formState || A, xi, c.reRenderRoot) && c.callback(H(z(z({
|
|
2429
|
+
values: z({}, o)
|
|
2430
2430
|
}, t), T), {
|
|
2431
2431
|
defaultValues: n
|
|
2432
2432
|
}));
|
|
2433
2433
|
}
|
|
2434
|
-
}).unsubscribe,
|
|
2435
|
-
formState:
|
|
2436
|
-
}))), Ve = (
|
|
2437
|
-
for (const E of
|
|
2438
|
-
|
|
2439
|
-
|
|
2434
|
+
}).unsubscribe, oe = (c) => (s.mount = !0, g = z(z({}, g), c.formState), Y(H(z({}, c), {
|
|
2435
|
+
formState: g
|
|
2436
|
+
}))), Ve = (c, T = {}) => {
|
|
2437
|
+
for (const E of c ? Vi(c) : a.mount)
|
|
2438
|
+
a.mount.delete(E), a.array.delete(E), T.keepValue || (xe(r, E), xe(o, E)), !T.keepError && xe(t.errors, E), !T.keepDirty && xe(t.dirtyFields, E), !T.keepTouched && xe(t.touchedFields, E), !T.keepIsValidating && xe(t.validatingFields, E), !i.shouldUnregister && !T.keepDefaultValue && xe(n, E);
|
|
2439
|
+
M.state.next({
|
|
2440
2440
|
values: me(o)
|
|
2441
|
-
}),
|
|
2442
|
-
},
|
|
2443
|
-
(Pe(
|
|
2444
|
-
}, ii = (
|
|
2445
|
-
let E = C(r,
|
|
2441
|
+
}), M.state.next(z(z({}, t), T.keepDirty ? { isDirty: G() } : {})), !T.keepIsValid && I();
|
|
2442
|
+
}, Je = ({ disabled: c, name: T }) => {
|
|
2443
|
+
(Pe(c) && s.mount || c || a.disabled.has(T)) && (c ? a.disabled.add(T) : a.disabled.delete(T));
|
|
2444
|
+
}, ii = (c, T = {}) => {
|
|
2445
|
+
let E = C(r, c);
|
|
2446
2446
|
const v = Pe(T.disabled) || Pe(i.disabled);
|
|
2447
|
-
return
|
|
2448
|
-
_f:
|
|
2449
|
-
name:
|
|
2447
|
+
return De(r, c, H(z({}, E || {}), {
|
|
2448
|
+
_f: z(H(z({}, E && E._f ? E._f : { ref: { name: c } }), {
|
|
2449
|
+
name: c,
|
|
2450
2450
|
mount: !0
|
|
2451
2451
|
}), T)
|
|
2452
|
-
})),
|
|
2452
|
+
})), a.mount.add(c), E ? Je({
|
|
2453
2453
|
disabled: Pe(T.disabled) ? T.disabled : i.disabled,
|
|
2454
|
-
name:
|
|
2455
|
-
}) :
|
|
2454
|
+
name: c
|
|
2455
|
+
}) : h(c, !0, T.value), H(z(z({}, v ? { disabled: T.disabled || i.disabled } : {}), i.progressive ? {
|
|
2456
2456
|
required: !!T.required,
|
|
2457
|
-
min:
|
|
2458
|
-
max:
|
|
2459
|
-
minLength:
|
|
2460
|
-
maxLength:
|
|
2461
|
-
pattern:
|
|
2457
|
+
min: Ui(T.min),
|
|
2458
|
+
max: Ui(T.max),
|
|
2459
|
+
minLength: Ui(T.minLength),
|
|
2460
|
+
maxLength: Ui(T.maxLength),
|
|
2461
|
+
pattern: Ui(T.pattern)
|
|
2462
2462
|
} : {}), {
|
|
2463
|
-
name:
|
|
2463
|
+
name: c,
|
|
2464
2464
|
onChange: Ae,
|
|
2465
2465
|
onBlur: Ae,
|
|
2466
2466
|
ref: (b) => {
|
|
2467
2467
|
if (b) {
|
|
2468
|
-
ii(
|
|
2469
|
-
const S = Te(b.value) && b.querySelectorAll && b.querySelectorAll("input,select,textarea")[0] || b,
|
|
2470
|
-
if (
|
|
2468
|
+
ii(c, T), E = C(r, c);
|
|
2469
|
+
const S = Te(b.value) && b.querySelectorAll && b.querySelectorAll("input,select,textarea")[0] || b, P = wM(S), X = E._f.refs || [];
|
|
2470
|
+
if (P ? X.find((F) => F === S) : S === E._f.ref)
|
|
2471
2471
|
return;
|
|
2472
|
-
|
|
2473
|
-
_f:
|
|
2472
|
+
De(r, c, {
|
|
2473
|
+
_f: z(z({}, E._f), P ? {
|
|
2474
2474
|
refs: [
|
|
2475
|
-
...
|
|
2475
|
+
...X.filter(zt),
|
|
2476
2476
|
S,
|
|
2477
|
-
...Array.isArray(C(n,
|
|
2477
|
+
...Array.isArray(C(n, c)) ? [{}] : []
|
|
2478
2478
|
],
|
|
2479
|
-
ref: { type: S.type, name:
|
|
2479
|
+
ref: { type: S.type, name: c }
|
|
2480
2480
|
} : { ref: S })
|
|
2481
|
-
}),
|
|
2481
|
+
}), h(c, !1, void 0, S);
|
|
2482
2482
|
} else
|
|
2483
|
-
E = C(r,
|
|
2483
|
+
E = C(r, c, {}), E._f && (E._f.mount = !1), (i.shouldUnregister || T.shouldUnregister) && !(co(a.array, c) && s.action) && a.unMount.add(c);
|
|
2484
2484
|
}
|
|
2485
2485
|
});
|
|
2486
|
-
}, Be = () => i.shouldFocusError &&
|
|
2487
|
-
Pe(
|
|
2486
|
+
}, Be = () => i.shouldFocusError && Bi(r, Qe, a.mount), gi = (c) => {
|
|
2487
|
+
Pe(c) && (M.state.next({ disabled: c }), Bi(r, (T, E) => {
|
|
2488
2488
|
const v = C(r, E);
|
|
2489
|
-
v && (T.disabled = v._f.disabled ||
|
|
2490
|
-
b.disabled = v._f.disabled ||
|
|
2489
|
+
v && (T.disabled = v._f.disabled || c, Array.isArray(v._f.refs) && v._f.refs.forEach((b) => {
|
|
2490
|
+
b.disabled = v._f.disabled || c;
|
|
2491
2491
|
}));
|
|
2492
2492
|
}, 0, !1));
|
|
2493
|
-
}, Mi = (
|
|
2493
|
+
}, Mi = (c, T) => (E) => je(null, null, function* () {
|
|
2494
2494
|
let v;
|
|
2495
2495
|
E && (E.preventDefault && E.preventDefault(), E.persist && E.persist());
|
|
2496
2496
|
let b = me(o);
|
|
2497
|
-
if (
|
|
2497
|
+
if (M.state.next({
|
|
2498
2498
|
isSubmitting: !0
|
|
2499
2499
|
}), i.resolver) {
|
|
2500
|
-
const { errors: S, values:
|
|
2501
|
-
t.errors = S, b = me(
|
|
2500
|
+
const { errors: S, values: P } = yield ue();
|
|
2501
|
+
t.errors = S, b = me(P);
|
|
2502
2502
|
} else
|
|
2503
|
-
yield
|
|
2504
|
-
if (
|
|
2505
|
-
for (const S of
|
|
2503
|
+
yield ne(r);
|
|
2504
|
+
if (a.disabled.size)
|
|
2505
|
+
for (const S of a.disabled)
|
|
2506
2506
|
xe(b, S);
|
|
2507
2507
|
if (xe(t.errors, "root"), Ue(t.errors)) {
|
|
2508
|
-
|
|
2508
|
+
M.state.next({
|
|
2509
2509
|
errors: {}
|
|
2510
2510
|
});
|
|
2511
2511
|
try {
|
|
2512
|
-
yield
|
|
2512
|
+
yield c(b, E);
|
|
2513
2513
|
} catch (S) {
|
|
2514
2514
|
v = S;
|
|
2515
2515
|
}
|
|
2516
2516
|
} else
|
|
2517
|
-
T && (yield T(
|
|
2518
|
-
if (
|
|
2517
|
+
T && (yield T(z({}, t.errors), E)), Be(), setTimeout(Be);
|
|
2518
|
+
if (M.state.next({
|
|
2519
2519
|
isSubmitted: !0,
|
|
2520
2520
|
isSubmitting: !1,
|
|
2521
2521
|
isSubmitSuccessful: Ue(t.errors) && !v,
|
|
@@ -2523,98 +2523,98 @@ function RM(e = {}) {
|
|
|
2523
2523
|
errors: t.errors
|
|
2524
2524
|
}), v)
|
|
2525
2525
|
throw v;
|
|
2526
|
-
}), Oi = (
|
|
2527
|
-
C(r,
|
|
2528
|
-
}, di = (
|
|
2529
|
-
const E =
|
|
2526
|
+
}), Oi = (c, T = {}) => {
|
|
2527
|
+
C(r, c) && (Te(T.defaultValue) ? Ne(c, me(C(n, c))) : (Ne(c, T.defaultValue), De(n, c, me(T.defaultValue))), T.keepTouched || xe(t.touchedFields, c), T.keepDirty || (xe(t.dirtyFields, c), t.isDirty = T.defaultValue ? G(c, me(C(n, c))) : G()), T.keepError || (xe(t.errors, c), A.isValid && I()), M.state.next(z({}, t)));
|
|
2528
|
+
}, di = (c, T = {}) => {
|
|
2529
|
+
const E = c ? me(c) : n, v = me(E), b = Ue(c), S = b ? n : v;
|
|
2530
2530
|
if (T.keepDefaultValues || (n = E), !T.keepValues) {
|
|
2531
2531
|
if (T.keepDirtyValues) {
|
|
2532
|
-
const
|
|
2533
|
-
...
|
|
2532
|
+
const P = /* @__PURE__ */ new Set([
|
|
2533
|
+
...a.mount,
|
|
2534
2534
|
...Object.keys(pi(n, o))
|
|
2535
2535
|
]);
|
|
2536
|
-
for (const
|
|
2537
|
-
C(t.dirtyFields,
|
|
2536
|
+
for (const X of Array.from(P))
|
|
2537
|
+
C(t.dirtyFields, X) ? De(S, X, C(o, X)) : Ne(X, C(S, X));
|
|
2538
2538
|
} else {
|
|
2539
|
-
if (Kt && Te(
|
|
2540
|
-
for (const
|
|
2541
|
-
const
|
|
2542
|
-
if (
|
|
2543
|
-
const
|
|
2544
|
-
if (gt(
|
|
2545
|
-
const
|
|
2546
|
-
if (
|
|
2547
|
-
|
|
2539
|
+
if (Kt && Te(c))
|
|
2540
|
+
for (const P of a.mount) {
|
|
2541
|
+
const X = C(r, P);
|
|
2542
|
+
if (X && X._f) {
|
|
2543
|
+
const F = Array.isArray(X._f.refs) ? X._f.refs[0] : X._f.ref;
|
|
2544
|
+
if (gt(F)) {
|
|
2545
|
+
const ae = F.closest("form");
|
|
2546
|
+
if (ae) {
|
|
2547
|
+
ae.reset();
|
|
2548
2548
|
break;
|
|
2549
2549
|
}
|
|
2550
2550
|
}
|
|
2551
2551
|
}
|
|
2552
2552
|
}
|
|
2553
2553
|
if (T.keepFieldsRef)
|
|
2554
|
-
for (const
|
|
2555
|
-
|
|
2554
|
+
for (const P of a.mount)
|
|
2555
|
+
Ne(P, C(S, P));
|
|
2556
2556
|
else
|
|
2557
2557
|
r = {};
|
|
2558
2558
|
}
|
|
2559
|
-
o = i.shouldUnregister ? T.keepDefaultValues ? me(n) : {} : me(S),
|
|
2560
|
-
values:
|
|
2561
|
-
}),
|
|
2562
|
-
values:
|
|
2559
|
+
o = i.shouldUnregister ? T.keepDefaultValues ? me(n) : {} : me(S), M.array.next({
|
|
2560
|
+
values: z({}, S)
|
|
2561
|
+
}), M.state.next({
|
|
2562
|
+
values: z({}, S)
|
|
2563
2563
|
});
|
|
2564
2564
|
}
|
|
2565
|
-
|
|
2566
|
-
mount: T.keepDirtyValues ?
|
|
2565
|
+
a = {
|
|
2566
|
+
mount: T.keepDirtyValues ? a.mount : /* @__PURE__ */ new Set(),
|
|
2567
2567
|
unMount: /* @__PURE__ */ new Set(),
|
|
2568
2568
|
array: /* @__PURE__ */ new Set(),
|
|
2569
2569
|
disabled: /* @__PURE__ */ new Set(),
|
|
2570
2570
|
watch: /* @__PURE__ */ new Set(),
|
|
2571
2571
|
watchAll: !1,
|
|
2572
2572
|
focus: ""
|
|
2573
|
-
}, s.mount = !A.isValid || !!T.keepIsValid || !!T.keepDirtyValues, s.watch = !!i.shouldUnregister,
|
|
2573
|
+
}, s.mount = !A.isValid || !!T.keepIsValid || !!T.keepDirtyValues, s.watch = !!i.shouldUnregister, M.state.next({
|
|
2574
2574
|
submitCount: T.keepSubmitCount ? t.submitCount : 0,
|
|
2575
|
-
isDirty: b ? !1 : T.keepDirty ? t.isDirty : !!(T.keepDefaultValues && !ni(
|
|
2575
|
+
isDirty: b ? !1 : T.keepDirty ? t.isDirty : !!(T.keepDefaultValues && !ni(c, n)),
|
|
2576
2576
|
isSubmitted: T.keepIsSubmitted ? t.isSubmitted : !1,
|
|
2577
|
-
dirtyFields: b ? {} : T.keepDirtyValues ? T.keepDefaultValues && o ? pi(n, o) : t.dirtyFields : T.keepDefaultValues &&
|
|
2577
|
+
dirtyFields: b ? {} : T.keepDirtyValues ? T.keepDefaultValues && o ? pi(n, o) : t.dirtyFields : T.keepDefaultValues && c ? pi(n, c) : T.keepDirty ? t.dirtyFields : {},
|
|
2578
2578
|
touchedFields: T.keepTouched ? t.touchedFields : {},
|
|
2579
2579
|
errors: T.keepErrors ? t.errors : {},
|
|
2580
2580
|
isSubmitSuccessful: T.keepIsSubmitSuccessful ? t.isSubmitSuccessful : !1,
|
|
2581
2581
|
isSubmitting: !1,
|
|
2582
2582
|
defaultValues: n
|
|
2583
2583
|
});
|
|
2584
|
-
}, ai = (
|
|
2585
|
-
const E = C(r,
|
|
2584
|
+
}, ai = (c, T) => di(Ze(c) ? c(o) : c, T), Ni = (c, T = {}) => {
|
|
2585
|
+
const E = C(r, c), v = E && E._f;
|
|
2586
2586
|
if (v) {
|
|
2587
2587
|
const b = v.refs ? v.refs[0] : v.ref;
|
|
2588
|
-
b.focus && (b.focus(), T.shouldSelect &&
|
|
2588
|
+
b.focus && (b.focus(), T.shouldSelect && Ze(b.select) && b.select());
|
|
2589
2589
|
}
|
|
2590
|
-
}, xi = (
|
|
2591
|
-
t =
|
|
2592
|
-
},
|
|
2590
|
+
}, xi = (c) => {
|
|
2591
|
+
t = z(z({}, t), c);
|
|
2592
|
+
}, $e = {
|
|
2593
2593
|
control: {
|
|
2594
2594
|
register: ii,
|
|
2595
2595
|
unregister: Ve,
|
|
2596
2596
|
getFieldState: ge,
|
|
2597
2597
|
handleSubmit: Mi,
|
|
2598
2598
|
setError: he,
|
|
2599
|
-
_subscribe:
|
|
2600
|
-
_runSchema:
|
|
2599
|
+
_subscribe: Y,
|
|
2600
|
+
_runSchema: ue,
|
|
2601
2601
|
_focusError: Be,
|
|
2602
|
-
_getWatch:
|
|
2603
|
-
_getDirty:
|
|
2602
|
+
_getWatch: k,
|
|
2603
|
+
_getDirty: G,
|
|
2604
2604
|
_setValid: I,
|
|
2605
2605
|
_setFieldArray: w,
|
|
2606
|
-
_setDisabledField:
|
|
2607
|
-
_setErrors:
|
|
2608
|
-
_getFieldArray:
|
|
2606
|
+
_setDisabledField: Je,
|
|
2607
|
+
_setErrors: p,
|
|
2608
|
+
_getFieldArray: J,
|
|
2609
2609
|
_reset: di,
|
|
2610
|
-
_resetDefaultValues: () =>
|
|
2611
|
-
ai(
|
|
2610
|
+
_resetDefaultValues: () => Ze(i.defaultValues) && i.defaultValues().then((c) => {
|
|
2611
|
+
ai(c, i.resetOptions), M.state.next({
|
|
2612
2612
|
isLoading: !1
|
|
2613
2613
|
});
|
|
2614
2614
|
}),
|
|
2615
|
-
_removeUnmounted:
|
|
2615
|
+
_removeUnmounted: Q,
|
|
2616
2616
|
_disableForm: gi,
|
|
2617
|
-
_subjects:
|
|
2617
|
+
_subjects: M,
|
|
2618
2618
|
_proxyFormState: A,
|
|
2619
2619
|
get _fields() {
|
|
2620
2620
|
return r;
|
|
@@ -2625,17 +2625,17 @@ function RM(e = {}) {
|
|
|
2625
2625
|
get _state() {
|
|
2626
2626
|
return s;
|
|
2627
2627
|
},
|
|
2628
|
-
set _state(
|
|
2629
|
-
s =
|
|
2628
|
+
set _state(c) {
|
|
2629
|
+
s = c;
|
|
2630
2630
|
},
|
|
2631
2631
|
get _defaultValues() {
|
|
2632
2632
|
return n;
|
|
2633
2633
|
},
|
|
2634
2634
|
get _names() {
|
|
2635
|
-
return
|
|
2635
|
+
return a;
|
|
2636
2636
|
},
|
|
2637
|
-
set _names(
|
|
2638
|
-
|
|
2637
|
+
set _names(c) {
|
|
2638
|
+
a = c;
|
|
2639
2639
|
},
|
|
2640
2640
|
get _formState() {
|
|
2641
2641
|
return t;
|
|
@@ -2643,17 +2643,17 @@ function RM(e = {}) {
|
|
|
2643
2643
|
get _options() {
|
|
2644
2644
|
return i;
|
|
2645
2645
|
},
|
|
2646
|
-
set _options(
|
|
2647
|
-
i =
|
|
2646
|
+
set _options(c) {
|
|
2647
|
+
i = z(z({}, i), c);
|
|
2648
2648
|
}
|
|
2649
2649
|
},
|
|
2650
|
-
subscribe:
|
|
2650
|
+
subscribe: oe,
|
|
2651
2651
|
trigger: le,
|
|
2652
2652
|
register: ii,
|
|
2653
2653
|
handleSubmit: Mi,
|
|
2654
2654
|
watch: ve,
|
|
2655
|
-
setValue:
|
|
2656
|
-
getValues:
|
|
2655
|
+
setValue: Ne,
|
|
2656
|
+
getValues: Z,
|
|
2657
2657
|
reset: ai,
|
|
2658
2658
|
resetField: Oi,
|
|
2659
2659
|
clearErrors: ze,
|
|
@@ -2662,15 +2662,15 @@ function RM(e = {}) {
|
|
|
2662
2662
|
setFocus: Ni,
|
|
2663
2663
|
getFieldState: ge
|
|
2664
2664
|
};
|
|
2665
|
-
return
|
|
2666
|
-
formControl:
|
|
2665
|
+
return H(z({}, $e), {
|
|
2666
|
+
formControl: $e
|
|
2667
2667
|
});
|
|
2668
2668
|
}
|
|
2669
2669
|
function FM(e = {}) {
|
|
2670
2670
|
const i = re.useRef(void 0), t = re.useRef(void 0), [r, n] = re.useState({
|
|
2671
2671
|
isDirty: !1,
|
|
2672
2672
|
isValidating: !1,
|
|
2673
|
-
isLoading:
|
|
2673
|
+
isLoading: Ze(e.defaultValues),
|
|
2674
2674
|
isSubmitted: !1,
|
|
2675
2675
|
isSubmitting: !1,
|
|
2676
2676
|
isSubmitSuccessful: !1,
|
|
@@ -2682,29 +2682,29 @@ function FM(e = {}) {
|
|
|
2682
2682
|
errors: e.errors || {},
|
|
2683
2683
|
disabled: e.disabled || !1,
|
|
2684
2684
|
isReady: !1,
|
|
2685
|
-
defaultValues:
|
|
2685
|
+
defaultValues: Ze(e.defaultValues) ? void 0 : e.defaultValues
|
|
2686
2686
|
});
|
|
2687
2687
|
if (!i.current)
|
|
2688
2688
|
if (e.formControl)
|
|
2689
|
-
i.current =
|
|
2689
|
+
i.current = H(z({}, e.formControl), {
|
|
2690
2690
|
formState: r
|
|
2691
|
-
}), e.defaultValues && !
|
|
2691
|
+
}), e.defaultValues && !Ze(e.defaultValues) && e.formControl.reset(e.defaultValues, e.resetOptions);
|
|
2692
2692
|
else {
|
|
2693
|
-
const s = RM(e), { formControl:
|
|
2694
|
-
i.current =
|
|
2693
|
+
const s = RM(e), { formControl: a } = s, D = Di(s, ["formControl"]);
|
|
2694
|
+
i.current = H(z({}, D), {
|
|
2695
2695
|
formState: r
|
|
2696
2696
|
});
|
|
2697
2697
|
}
|
|
2698
2698
|
const o = i.current.control;
|
|
2699
2699
|
return o._options = e, tr(() => {
|
|
2700
|
-
const
|
|
2700
|
+
const a = o._subscribe({
|
|
2701
2701
|
formState: o._proxyFormState,
|
|
2702
|
-
callback: () => n(
|
|
2702
|
+
callback: () => n(z({}, o._formState)),
|
|
2703
2703
|
reRenderRoot: !0
|
|
2704
2704
|
});
|
|
2705
|
-
return n((D) =>
|
|
2705
|
+
return n((D) => H(z({}, D), {
|
|
2706
2706
|
isReady: !0
|
|
2707
|
-
})), o._formState.isReady = !0,
|
|
2707
|
+
})), o._formState.isReady = !0, a;
|
|
2708
2708
|
}, [o]), re.useEffect(() => o._disableForm(e.disabled), [o, e.disabled]), re.useEffect(() => {
|
|
2709
2709
|
e.mode && (o._options.mode = e.mode), e.reValidateMode && (o._options.reValidateMode = e.reValidateMode);
|
|
2710
2710
|
}, [o, e.mode, e.reValidateMode]), re.useEffect(() => {
|
|
@@ -2715,20 +2715,20 @@ function FM(e = {}) {
|
|
|
2715
2715
|
});
|
|
2716
2716
|
}, [o, e.shouldUnregister]), re.useEffect(() => {
|
|
2717
2717
|
if (o._proxyFormState.isDirty) {
|
|
2718
|
-
const
|
|
2719
|
-
|
|
2720
|
-
isDirty:
|
|
2718
|
+
const a = o._getDirty();
|
|
2719
|
+
a !== r.isDirty && o._subjects.state.next({
|
|
2720
|
+
isDirty: a
|
|
2721
2721
|
});
|
|
2722
2722
|
}
|
|
2723
2723
|
}, [o, r.isDirty]), re.useEffect(() => {
|
|
2724
|
-
e.values && !ni(e.values, t.current) ? (o._reset(e.values,
|
|
2724
|
+
e.values && !ni(e.values, t.current) ? (o._reset(e.values, z({
|
|
2725
2725
|
keepFieldsRef: !0
|
|
2726
|
-
}, o._options.resetOptions)), t.current = e.values, n((
|
|
2726
|
+
}, o._options.resetOptions)), t.current = e.values, n((a) => z({}, a))) : o._resetDefaultValues();
|
|
2727
2727
|
}, [o, e.values]), re.useEffect(() => {
|
|
2728
|
-
o._state.mount || (o._setValid(), o._state.mount = !0), o._state.watch && (o._state.watch = !1, o._subjects.state.next(
|
|
2728
|
+
o._state.mount || (o._setValid(), o._state.mount = !0), o._state.watch && (o._state.watch = !1, o._subjects.state.next(z({}, o._formState))), o._removeUnmounted();
|
|
2729
2729
|
}), i.current.formState = No(r, o), i.current;
|
|
2730
2730
|
}
|
|
2731
|
-
const
|
|
2731
|
+
const Li = (e, i) => {
|
|
2732
2732
|
const t = {};
|
|
2733
2733
|
return e.forEach((r, n) => {
|
|
2734
2734
|
if (r.type === Gr.NOT_EMPTY && (t.required = (o) => i && Fs(o) ? r.message : !0), r.type === Gr.REGEX) {
|
|
@@ -2751,7 +2751,7 @@ const vi = (e, i) => {
|
|
|
2751
2751
|
transition: ".2s",
|
|
2752
2752
|
flexShrink: 0
|
|
2753
2753
|
},
|
|
2754
|
-
children: i ? /* @__PURE__ */ d(_e,
|
|
2754
|
+
children: i ? /* @__PURE__ */ d(_e, z({}, i)) : /* @__PURE__ */ d(_e, { imageId: "chevronDown" })
|
|
2755
2755
|
}
|
|
2756
2756
|
), BM = ({
|
|
2757
2757
|
isChosen: e,
|
|
@@ -2768,11 +2768,11 @@ const vi = (e, i) => {
|
|
|
2768
2768
|
style: {
|
|
2769
2769
|
padding: "5px 8px",
|
|
2770
2770
|
background: ((D, j) => {
|
|
2771
|
-
var A,
|
|
2772
|
-
if (!D && !j) return (
|
|
2773
|
-
if (!D && j) return (y =
|
|
2774
|
-
if (D && !j) return (I =
|
|
2775
|
-
if (D && j) return (w =
|
|
2771
|
+
var A, g, M, y, N, I, O, w;
|
|
2772
|
+
if (!D && !j) return (g = q((A = i.layout) == null ? void 0 : A.backgroundColor)) != null ? g : "transparent";
|
|
2773
|
+
if (!D && j) return (y = q((M = i.layoutSelected) == null ? void 0 : M.backgroundColor)) != null ? y : "transparent";
|
|
2774
|
+
if (D && !j) return (I = q((N = i.layout) == null ? void 0 : N.highlightColor)) != null ? I : "#F4F4F4";
|
|
2775
|
+
if (D && j) return (w = q((O = i.layoutSelected) == null ? void 0 : O.highlightColor)) != null ? w : "#F4F4F4";
|
|
2776
2776
|
})(r, e),
|
|
2777
2777
|
fontSize: 13,
|
|
2778
2778
|
display: "flex",
|
|
@@ -2787,7 +2787,7 @@ const vi = (e, i) => {
|
|
|
2787
2787
|
onMouseEnter: n,
|
|
2788
2788
|
onMouseLeave: o,
|
|
2789
2789
|
children: [
|
|
2790
|
-
/* @__PURE__ */ d(fe,
|
|
2790
|
+
/* @__PURE__ */ d(fe, H(z({}, i.layout.title), { text: i.label })),
|
|
2791
2791
|
/* @__PURE__ */ d(
|
|
2792
2792
|
"div",
|
|
2793
2793
|
{
|
|
@@ -2795,7 +2795,7 @@ const vi = (e, i) => {
|
|
|
2795
2795
|
display: "flex",
|
|
2796
2796
|
flexShrink: 0
|
|
2797
2797
|
},
|
|
2798
|
-
children: /* @__PURE__ */ d(_e,
|
|
2798
|
+
children: /* @__PURE__ */ d(_e, z({}, s))
|
|
2799
2799
|
}
|
|
2800
2800
|
)
|
|
2801
2801
|
]
|
|
@@ -2810,43 +2810,43 @@ const vi = (e, i) => {
|
|
|
2810
2810
|
value: n,
|
|
2811
2811
|
onChange: o,
|
|
2812
2812
|
placeholder: s,
|
|
2813
|
-
closeMenuOnSelect:
|
|
2813
|
+
closeMenuOnSelect: a = !0,
|
|
2814
2814
|
onBlur: D,
|
|
2815
2815
|
parentElementRef: j,
|
|
2816
2816
|
controlLayout: A,
|
|
2817
|
-
pickerLayout:
|
|
2817
|
+
pickerLayout: g
|
|
2818
2818
|
}) => {
|
|
2819
|
-
var
|
|
2820
|
-
const [
|
|
2819
|
+
var k, J, ie, Ie, Ne, Ae, Qe, le;
|
|
2820
|
+
const [M, y] = pe(!1), [N, I] = pe(n), [O, w] = pe("down"), [_, p] = pe(null), h = Ge(null), U = Ge(null);
|
|
2821
2821
|
li(() => {
|
|
2822
|
-
var ve,
|
|
2823
|
-
if (!
|
|
2824
|
-
const
|
|
2825
|
-
if (!
|
|
2826
|
-
const he =
|
|
2822
|
+
var ve, Y, oe;
|
|
2823
|
+
if (!M) return;
|
|
2824
|
+
const Z = (ve = h.current) == null ? void 0 : ve.getBoundingClientRect(), ge = (Y = U.current) == null ? void 0 : Y.getBoundingClientRect(), ze = (oe = j.current) == null ? void 0 : oe.getBoundingClientRect();
|
|
2825
|
+
if (!Z || !ge || !ze) return;
|
|
2826
|
+
const he = Z.bottom + ge.height < ze.bottom;
|
|
2827
2827
|
w(he ? "down" : "up");
|
|
2828
|
-
}, [
|
|
2828
|
+
}, [M]), Fe(() => {
|
|
2829
2829
|
o(N);
|
|
2830
2830
|
}, [N]);
|
|
2831
|
-
const
|
|
2831
|
+
const ee = (Z) => (ge) => {
|
|
2832
2832
|
var ze;
|
|
2833
|
-
ge.stopPropagation(), (ge.type === "touchend" || ((ze = ge.nativeEvent) == null ? void 0 : ze.pointerType) === "touch") &&
|
|
2834
|
-
},
|
|
2833
|
+
ge.stopPropagation(), (ge.type === "touchend" || ((ze = ge.nativeEvent) == null ? void 0 : ze.pointerType) === "touch") && p(null), a && y(!1), I((he) => t ? he.some((Y) => Y.value === Z.value) ? he.filter((Y) => Y.value !== Z.value) : [...he, Z] : [Z]);
|
|
2834
|
+
}, ue = () => {
|
|
2835
2835
|
D && D(), y(!1);
|
|
2836
|
-
},
|
|
2837
|
-
ge.stopPropagation(), I((ze) => ze.filter((he) => he.value !==
|
|
2838
|
-
},
|
|
2839
|
-
|
|
2840
|
-
},
|
|
2841
|
-
return /* @__PURE__ */ d("div", { "data-ui": "gui-custom-select", ref:
|
|
2836
|
+
}, W = (Z) => (ge) => {
|
|
2837
|
+
ge.stopPropagation(), I((ze) => ze.filter((he) => he.value !== Z.value));
|
|
2838
|
+
}, ne = (Z) => {
|
|
2839
|
+
Z.stopPropagation(), I([]);
|
|
2840
|
+
}, Q = (k = q(A == null ? void 0 : A.borderColor)) != null ? k : "#D9D9D9", G = (J = q(A == null ? void 0 : A.highlightBorderColor)) != null ? J : "#7E57C5";
|
|
2841
|
+
return /* @__PURE__ */ d("div", { "data-ui": "gui-custom-select", ref: h, children: /* @__PURE__ */ d(
|
|
2842
2842
|
"div",
|
|
2843
2843
|
{
|
|
2844
2844
|
"data-ui": "gui-select-name-" + e,
|
|
2845
2845
|
style: {
|
|
2846
|
-
backgroundColor:
|
|
2846
|
+
backgroundColor: q(A == null ? void 0 : A.backgroundColor),
|
|
2847
2847
|
borderStyle: "solid",
|
|
2848
|
-
borderColor:
|
|
2849
|
-
borderWidth: (
|
|
2848
|
+
borderColor: M ? G : Q,
|
|
2849
|
+
borderWidth: (ie = A == null ? void 0 : A.borderWidth) != null ? ie : 1,
|
|
2850
2850
|
borderRadius: (Ie = A == null ? void 0 : A.cornerRadius) != null ? Ie : 8,
|
|
2851
2851
|
minHeight: "41px",
|
|
2852
2852
|
position: "relative",
|
|
@@ -2858,8 +2858,8 @@ const vi = (e, i) => {
|
|
|
2858
2858
|
gap: 10
|
|
2859
2859
|
},
|
|
2860
2860
|
tabIndex: 0,
|
|
2861
|
-
onBlur:
|
|
2862
|
-
onClick: () => y(!
|
|
2861
|
+
onBlur: ue,
|
|
2862
|
+
onClick: () => y(!M),
|
|
2863
2863
|
children: [
|
|
2864
2864
|
/* @__PURE__ */ d(
|
|
2865
2865
|
"div",
|
|
@@ -2884,10 +2884,10 @@ const vi = (e, i) => {
|
|
|
2884
2884
|
children: s
|
|
2885
2885
|
}
|
|
2886
2886
|
),
|
|
2887
|
-
N.map((
|
|
2888
|
-
var ge, ze, he, ve,
|
|
2887
|
+
N.map((Z) => {
|
|
2888
|
+
var ge, ze, he, ve, Y;
|
|
2889
2889
|
if (t) {
|
|
2890
|
-
const
|
|
2890
|
+
const oe = A == null ? void 0 : A.chip;
|
|
2891
2891
|
return /* @__PURE__ */ d(
|
|
2892
2892
|
"div",
|
|
2893
2893
|
{
|
|
@@ -2895,17 +2895,17 @@ const vi = (e, i) => {
|
|
|
2895
2895
|
padding: "0px 5px",
|
|
2896
2896
|
display: "flex",
|
|
2897
2897
|
gap: 8,
|
|
2898
|
-
backgroundColor: (ge =
|
|
2899
|
-
borderRadius: (ze =
|
|
2898
|
+
backgroundColor: (ge = q(oe == null ? void 0 : oe.backgroundColor)) != null ? ge : "#F2F2F2",
|
|
2899
|
+
borderRadius: (ze = oe == null ? void 0 : oe.cornerRadius) != null ? ze : 4,
|
|
2900
2900
|
userSelect: "none",
|
|
2901
2901
|
alignItems: "center"
|
|
2902
2902
|
},
|
|
2903
2903
|
children: [
|
|
2904
2904
|
/* @__PURE__ */ d(
|
|
2905
2905
|
fe,
|
|
2906
|
-
|
|
2907
|
-
fontSize: (ve = (he =
|
|
2908
|
-
text:
|
|
2906
|
+
H(z({}, oe == null ? void 0 : oe.title), {
|
|
2907
|
+
fontSize: (ve = (he = oe == null ? void 0 : oe.title) == null ? void 0 : he.fontSize) != null ? ve : 13,
|
|
2908
|
+
text: Z.label
|
|
2909
2909
|
})
|
|
2910
2910
|
),
|
|
2911
2911
|
/* @__PURE__ */ d(
|
|
@@ -2918,16 +2918,16 @@ const vi = (e, i) => {
|
|
|
2918
2918
|
width: "16px",
|
|
2919
2919
|
height: "16px"
|
|
2920
2920
|
},
|
|
2921
|
-
onClick:
|
|
2922
|
-
children:
|
|
2921
|
+
onClick: W(Z),
|
|
2922
|
+
children: oe != null && oe.removeImage ? /* @__PURE__ */ d(_e, z({}, oe.removeImage)) : /* @__PURE__ */ d(_e, { imageId: "cross" })
|
|
2923
2923
|
}
|
|
2924
2924
|
)
|
|
2925
2925
|
]
|
|
2926
2926
|
},
|
|
2927
|
-
|
|
2927
|
+
Z.value
|
|
2928
2928
|
);
|
|
2929
2929
|
} else {
|
|
2930
|
-
const
|
|
2930
|
+
const oe = A == null ? void 0 : A.title;
|
|
2931
2931
|
return /* @__PURE__ */ d(
|
|
2932
2932
|
"div",
|
|
2933
2933
|
{
|
|
@@ -2935,9 +2935,9 @@ const vi = (e, i) => {
|
|
|
2935
2935
|
display: "flex",
|
|
2936
2936
|
userSelect: "none"
|
|
2937
2937
|
},
|
|
2938
|
-
children: /* @__PURE__ */ d(fe,
|
|
2938
|
+
children: /* @__PURE__ */ d(fe, H(z({}, oe), { fontSize: (Y = oe == null ? void 0 : oe.fontSize) != null ? Y : 13, text: Z.label }))
|
|
2939
2939
|
},
|
|
2940
|
-
|
|
2940
|
+
Z.value
|
|
2941
2941
|
);
|
|
2942
2942
|
}
|
|
2943
2943
|
})
|
|
@@ -2955,8 +2955,8 @@ const vi = (e, i) => {
|
|
|
2955
2955
|
height: "16px",
|
|
2956
2956
|
zIndex: 1
|
|
2957
2957
|
},
|
|
2958
|
-
onClick:
|
|
2959
|
-
children: A != null && A.clearButton ? /* @__PURE__ */ d(_e,
|
|
2958
|
+
onClick: ne,
|
|
2959
|
+
children: A != null && A.clearButton ? /* @__PURE__ */ d(_e, z({}, A.clearButton)) : /* @__PURE__ */ d(_e, { imageId: "cross" })
|
|
2960
2960
|
}
|
|
2961
2961
|
) : null,
|
|
2962
2962
|
r ? /* @__PURE__ */ d(
|
|
@@ -2969,23 +2969,23 @@ const vi = (e, i) => {
|
|
|
2969
2969
|
}
|
|
2970
2970
|
}
|
|
2971
2971
|
) : null,
|
|
2972
|
-
/* @__PURE__ */ d(VM, { isOpen:
|
|
2973
|
-
|
|
2972
|
+
/* @__PURE__ */ d(VM, { isOpen: M, image: A == null ? void 0 : A.expandButton }),
|
|
2973
|
+
M && /* @__PURE__ */ d(
|
|
2974
2974
|
"div",
|
|
2975
2975
|
{
|
|
2976
2976
|
"data-ui": "gui-custom-select-dropdown-menu",
|
|
2977
|
-
ref:
|
|
2978
|
-
style:
|
|
2977
|
+
ref: U,
|
|
2978
|
+
style: H(z({
|
|
2979
2979
|
position: "absolute"
|
|
2980
|
-
},
|
|
2980
|
+
}, O === "down" ? { top: "calc(100% + 1px)" } : { bottom: "calc(100% + 1px)" }), {
|
|
2981
2981
|
left: 0,
|
|
2982
2982
|
border: "1px solid #e8e8e8",
|
|
2983
2983
|
width: "100%",
|
|
2984
|
-
backgroundColor: (
|
|
2985
|
-
borderRadius: (Ae =
|
|
2984
|
+
backgroundColor: (Ne = q(g == null ? void 0 : g.backgroundColor)) != null ? Ne : "#ffffff",
|
|
2985
|
+
borderRadius: (Ae = g == null ? void 0 : g.cornerRadius) != null ? Ae : 8,
|
|
2986
2986
|
borderStyle: "solid",
|
|
2987
|
-
borderColor: (Qe =
|
|
2988
|
-
borderWidth: (le =
|
|
2987
|
+
borderColor: (Qe = q(g == null ? void 0 : g.borderColor)) != null ? Qe : "#D9D9D9",
|
|
2988
|
+
borderWidth: (le = g == null ? void 0 : g.borderWidth) != null ? le : 1,
|
|
2989
2989
|
maxHeight: "500px",
|
|
2990
2990
|
overflow: "auto",
|
|
2991
2991
|
zIndex: 2,
|
|
@@ -2996,20 +2996,20 @@ const vi = (e, i) => {
|
|
|
2996
2996
|
gap: "2px",
|
|
2997
2997
|
cursor: "default"
|
|
2998
2998
|
}),
|
|
2999
|
-
onClick: (
|
|
3000
|
-
children: i.map((
|
|
3001
|
-
const ge = N.some((ze) => ze.value ===
|
|
2999
|
+
onClick: (Z) => Z.stopPropagation(),
|
|
3000
|
+
children: i.map((Z) => {
|
|
3001
|
+
const ge = N.some((ze) => ze.value === Z.value);
|
|
3002
3002
|
return /* @__PURE__ */ d(
|
|
3003
3003
|
BM,
|
|
3004
3004
|
{
|
|
3005
3005
|
isChosen: ge,
|
|
3006
|
-
option:
|
|
3007
|
-
onOptionClickCallback:
|
|
3008
|
-
isHovered: _ ===
|
|
3009
|
-
onHover: () =>
|
|
3010
|
-
onHoverEnd: () =>
|
|
3006
|
+
option: Z,
|
|
3007
|
+
onOptionClickCallback: ee,
|
|
3008
|
+
isHovered: _ === Z.value,
|
|
3009
|
+
onHover: () => p(Z.value),
|
|
3010
|
+
onHoverEnd: () => p(null)
|
|
3011
3011
|
},
|
|
3012
|
-
|
|
3012
|
+
Z.label
|
|
3013
3013
|
);
|
|
3014
3014
|
})
|
|
3015
3015
|
}
|
|
@@ -3039,7 +3039,7 @@ const vi = (e, i) => {
|
|
|
3039
3039
|
boxSizing: "border-box"
|
|
3040
3040
|
},
|
|
3041
3041
|
children: [
|
|
3042
|
-
i.title && /* @__PURE__ */ d(fe,
|
|
3042
|
+
i.title && /* @__PURE__ */ d(fe, H(z({}, i.title), { text: t.text, htmlFor: o })),
|
|
3043
3043
|
/* @__PURE__ */ d(
|
|
3044
3044
|
Io,
|
|
3045
3045
|
{
|
|
@@ -3047,10 +3047,10 @@ const vi = (e, i) => {
|
|
|
3047
3047
|
control: e,
|
|
3048
3048
|
rules: {
|
|
3049
3049
|
required: !!t.required,
|
|
3050
|
-
validate:
|
|
3050
|
+
validate: Li(t.validators, !!t.required)
|
|
3051
3051
|
},
|
|
3052
3052
|
render: ({ field: s }) => {
|
|
3053
|
-
const
|
|
3053
|
+
const a = n.find((D) => D.value === s.value);
|
|
3054
3054
|
return /* @__PURE__ */ d(
|
|
3055
3055
|
Oo,
|
|
3056
3056
|
{
|
|
@@ -3058,7 +3058,7 @@ const vi = (e, i) => {
|
|
|
3058
3058
|
placeholder: t.placeholder,
|
|
3059
3059
|
closeMenuOnSelect: !0,
|
|
3060
3060
|
name: s.name,
|
|
3061
|
-
value:
|
|
3061
|
+
value: a ? [a] : [],
|
|
3062
3062
|
onChange: (D) => {
|
|
3063
3063
|
const j = D && Array.isArray(D) && D.length ? D[0].value : null;
|
|
3064
3064
|
s.onChange(j);
|
|
@@ -3098,7 +3098,7 @@ const vi = (e, i) => {
|
|
|
3098
3098
|
boxSizing: "border-box"
|
|
3099
3099
|
},
|
|
3100
3100
|
children: [
|
|
3101
|
-
i.title && /* @__PURE__ */ d(fe,
|
|
3101
|
+
i.title && /* @__PURE__ */ d(fe, H(z({}, i.title), { text: t.text, htmlFor: o })),
|
|
3102
3102
|
/* @__PURE__ */ d(
|
|
3103
3103
|
Io,
|
|
3104
3104
|
{
|
|
@@ -3106,10 +3106,10 @@ const vi = (e, i) => {
|
|
|
3106
3106
|
control: e,
|
|
3107
3107
|
rules: {
|
|
3108
3108
|
required: !!t.required,
|
|
3109
|
-
validate:
|
|
3109
|
+
validate: Li(t.validators, !!t.required)
|
|
3110
3110
|
},
|
|
3111
3111
|
render: ({ field: s }) => {
|
|
3112
|
-
const
|
|
3112
|
+
const a = n.filter((D) => {
|
|
3113
3113
|
var j;
|
|
3114
3114
|
return (j = s.value) == null ? void 0 : j.includes(D.value);
|
|
3115
3115
|
});
|
|
@@ -3120,7 +3120,7 @@ const vi = (e, i) => {
|
|
|
3120
3120
|
options: n,
|
|
3121
3121
|
placeholder: t.placeholder,
|
|
3122
3122
|
closeMenuOnSelect: !1,
|
|
3123
|
-
value:
|
|
3123
|
+
value: a,
|
|
3124
3124
|
onChange: (D) => {
|
|
3125
3125
|
const j = D.map((A) => A.value);
|
|
3126
3126
|
s.onChange(j);
|
|
@@ -3153,17 +3153,17 @@ const vi = (e, i) => {
|
|
|
3153
3153
|
register: r,
|
|
3154
3154
|
watch: n
|
|
3155
3155
|
}) => {
|
|
3156
|
-
const [o, s] = pe(!1),
|
|
3157
|
-
backgroundColor:
|
|
3158
|
-
borderRadius:
|
|
3156
|
+
const [o, s] = pe(!1), a = xo(), D = String(t.id), A = n(D) === String(e.id), g = i.option, M = i.optionSelected, y = {
|
|
3157
|
+
backgroundColor: q(M == null ? void 0 : M.backgroundColor),
|
|
3158
|
+
borderRadius: M.cornerRadius
|
|
3159
3159
|
}, N = {
|
|
3160
|
-
backgroundColor:
|
|
3161
|
-
borderRadius:
|
|
3162
|
-
}, I = o &&
|
|
3160
|
+
backgroundColor: q(g == null ? void 0 : g.backgroundColor),
|
|
3161
|
+
borderRadius: g.cornerRadius
|
|
3162
|
+
}, I = o && a ? { filter: `drop-shadow(0 0 1px ${$i})` } : {};
|
|
3163
3163
|
return /* @__PURE__ */ d("div", { children: /* @__PURE__ */ d(
|
|
3164
3164
|
"label",
|
|
3165
3165
|
{
|
|
3166
|
-
style:
|
|
3166
|
+
style: z({
|
|
3167
3167
|
display: "flex",
|
|
3168
3168
|
alignItems: "center",
|
|
3169
3169
|
alignContent: "center",
|
|
@@ -3174,19 +3174,19 @@ const vi = (e, i) => {
|
|
|
3174
3174
|
/* @__PURE__ */ d(
|
|
3175
3175
|
"div",
|
|
3176
3176
|
{
|
|
3177
|
-
style:
|
|
3177
|
+
style: z({
|
|
3178
3178
|
display: "flex",
|
|
3179
3179
|
alignItems: "center",
|
|
3180
3180
|
alignContent: "center",
|
|
3181
3181
|
flexShrink: 0
|
|
3182
3182
|
}, I),
|
|
3183
|
-
children: /* @__PURE__ */ d(_e,
|
|
3183
|
+
children: /* @__PURE__ */ d(_e, z({}, A ? M.image : g.image))
|
|
3184
3184
|
}
|
|
3185
3185
|
),
|
|
3186
|
-
/* @__PURE__ */ d(fe,
|
|
3186
|
+
/* @__PURE__ */ d(fe, H(z({}, A ? M.title : g.title), { text: e.text })),
|
|
3187
3187
|
/* @__PURE__ */ d(
|
|
3188
3188
|
"input",
|
|
3189
|
-
|
|
3189
|
+
H(z({
|
|
3190
3190
|
style: {
|
|
3191
3191
|
width: 1,
|
|
3192
3192
|
height: 1,
|
|
@@ -3196,7 +3196,7 @@ const vi = (e, i) => {
|
|
|
3196
3196
|
}
|
|
3197
3197
|
}, r(D, {
|
|
3198
3198
|
required: !!t.required,
|
|
3199
|
-
validate:
|
|
3199
|
+
validate: Li(
|
|
3200
3200
|
t.validators,
|
|
3201
3201
|
!!t.required
|
|
3202
3202
|
)
|
|
@@ -3235,7 +3235,7 @@ const vi = (e, i) => {
|
|
|
3235
3235
|
padding: 0,
|
|
3236
3236
|
marginBottom: "16px"
|
|
3237
3237
|
},
|
|
3238
|
-
children: /* @__PURE__ */ d(fe,
|
|
3238
|
+
children: /* @__PURE__ */ d(fe, H(z({}, e.title), { text: r.text }))
|
|
3239
3239
|
}
|
|
3240
3240
|
),
|
|
3241
3241
|
r.options.map((n) => /* @__PURE__ */ d(
|
|
@@ -3258,17 +3258,17 @@ const vi = (e, i) => {
|
|
|
3258
3258
|
register: r,
|
|
3259
3259
|
watch: n
|
|
3260
3260
|
}) => {
|
|
3261
|
-
const [o, s] = pe(!1),
|
|
3262
|
-
borderRadius:
|
|
3263
|
-
background:
|
|
3264
|
-
borderColor:
|
|
3265
|
-
borderWidth:
|
|
3261
|
+
const [o, s] = pe(!1), a = xo(), D = String(t.id), A = n(D) === String(e.id), g = i.option, M = i.optionSelected, y = {
|
|
3262
|
+
borderRadius: g == null ? void 0 : g.cornerRadius,
|
|
3263
|
+
background: q(g == null ? void 0 : g.backgroundColor),
|
|
3264
|
+
borderColor: q(g == null ? void 0 : g.borderColor),
|
|
3265
|
+
borderWidth: g == null ? void 0 : g.borderWidth
|
|
3266
3266
|
}, N = {
|
|
3267
|
-
borderRadius:
|
|
3268
|
-
background:
|
|
3269
|
-
borderColor:
|
|
3270
|
-
borderWidth:
|
|
3271
|
-
}, I = o &&
|
|
3267
|
+
borderRadius: M == null ? void 0 : M.cornerRadius,
|
|
3268
|
+
background: q(M == null ? void 0 : M.backgroundColor),
|
|
3269
|
+
borderColor: q(M == null ? void 0 : M.borderColor),
|
|
3270
|
+
borderWidth: M == null ? void 0 : M.borderWidth
|
|
3271
|
+
}, I = o && a ? { outline: `2px solid ${$i}` } : {};
|
|
3272
3272
|
return /* @__PURE__ */ d(
|
|
3273
3273
|
"div",
|
|
3274
3274
|
{
|
|
@@ -3279,7 +3279,7 @@ const vi = (e, i) => {
|
|
|
3279
3279
|
children: /* @__PURE__ */ d(
|
|
3280
3280
|
"label",
|
|
3281
3281
|
{
|
|
3282
|
-
style:
|
|
3282
|
+
style: z(z({
|
|
3283
3283
|
width: "100%",
|
|
3284
3284
|
padding: "8px 16px",
|
|
3285
3285
|
cursor: "pointer",
|
|
@@ -3289,7 +3289,7 @@ const vi = (e, i) => {
|
|
|
3289
3289
|
children: [
|
|
3290
3290
|
/* @__PURE__ */ d(
|
|
3291
3291
|
"input",
|
|
3292
|
-
|
|
3292
|
+
H(z({
|
|
3293
3293
|
style: {
|
|
3294
3294
|
width: 1,
|
|
3295
3295
|
height: 1,
|
|
@@ -3299,7 +3299,7 @@ const vi = (e, i) => {
|
|
|
3299
3299
|
}
|
|
3300
3300
|
}, r(D, {
|
|
3301
3301
|
required: !!t.required,
|
|
3302
|
-
validate:
|
|
3302
|
+
validate: Li(
|
|
3303
3303
|
t.validators,
|
|
3304
3304
|
!!t.required
|
|
3305
3305
|
)
|
|
@@ -3310,7 +3310,7 @@ const vi = (e, i) => {
|
|
|
3310
3310
|
onBlur: () => s(!1)
|
|
3311
3311
|
})
|
|
3312
3312
|
),
|
|
3313
|
-
/* @__PURE__ */ d(fe,
|
|
3313
|
+
/* @__PURE__ */ d(fe, H(z({}, A ? M.title : g.title), { text: e.text }))
|
|
3314
3314
|
]
|
|
3315
3315
|
}
|
|
3316
3316
|
)
|
|
@@ -3339,7 +3339,7 @@ const vi = (e, i) => {
|
|
|
3339
3339
|
padding: 0,
|
|
3340
3340
|
marginBottom: "16px"
|
|
3341
3341
|
},
|
|
3342
|
-
children: /* @__PURE__ */ d(fe,
|
|
3342
|
+
children: /* @__PURE__ */ d(fe, H(z({}, e.title), { text: r.text }))
|
|
3343
3343
|
}
|
|
3344
3344
|
),
|
|
3345
3345
|
/* @__PURE__ */ d("div", { style: { display: "flex", justifyContent: "center", gap: 5 }, children: r.options.map((n) => /* @__PURE__ */ d(
|
|
@@ -3364,27 +3364,27 @@ const vi = (e, i) => {
|
|
|
3364
3364
|
validationBorderColor: o,
|
|
3365
3365
|
validationBorderWidth: s
|
|
3366
3366
|
}) => {
|
|
3367
|
-
const
|
|
3367
|
+
const a = z({
|
|
3368
3368
|
position: "relative",
|
|
3369
3369
|
flexShrink: 0,
|
|
3370
3370
|
width: "100%",
|
|
3371
3371
|
fontWeight: 300,
|
|
3372
3372
|
lineHeight: "140%",
|
|
3373
|
-
backgroundColor:
|
|
3373
|
+
backgroundColor: q(i) || "transparent",
|
|
3374
3374
|
borderRadius: t,
|
|
3375
3375
|
padding: "16px",
|
|
3376
3376
|
boxSizing: "border-box",
|
|
3377
3377
|
height: "auto"
|
|
3378
|
-
}, r &&
|
|
3378
|
+
}, r && z(z({}, q(o) && {
|
|
3379
3379
|
borderColor: o,
|
|
3380
3380
|
borderStyle: "solid"
|
|
3381
3381
|
}), s && { borderWidth: s }));
|
|
3382
|
-
return /* @__PURE__ */ d("div", { style:
|
|
3382
|
+
return /* @__PURE__ */ d("div", { style: a, children: [
|
|
3383
3383
|
n && /* @__PURE__ */ d(
|
|
3384
3384
|
"span",
|
|
3385
3385
|
{
|
|
3386
3386
|
style: {
|
|
3387
|
-
color:
|
|
3387
|
+
color: q(o),
|
|
3388
3388
|
position: "absolute",
|
|
3389
3389
|
left: "6px",
|
|
3390
3390
|
top: "18px"
|
|
@@ -3394,13 +3394,13 @@ const vi = (e, i) => {
|
|
|
3394
3394
|
),
|
|
3395
3395
|
e
|
|
3396
3396
|
] });
|
|
3397
|
-
}, KM = ({ validationErrorsTypes: e, title: i }) => e ? /* @__PURE__ */ d("div", { style: { width: "100%", fontSize: 12 }, children: Object.entries(e).map(([t, r]) => /* @__PURE__ */ d(fe,
|
|
3397
|
+
}, KM = ({ validationErrorsTypes: e, title: i }) => e ? /* @__PURE__ */ d("div", { style: { width: "100%", fontSize: 12 }, children: Object.entries(e).map(([t, r]) => /* @__PURE__ */ d(fe, H(z({}, i), { text: r }), t)) }) : null, qM = ({
|
|
3398
3398
|
layout: e,
|
|
3399
3399
|
dataSourceQuestion: i,
|
|
3400
3400
|
register: t
|
|
3401
3401
|
}) => {
|
|
3402
|
-
var o, s,
|
|
3403
|
-
const r = String(i.id), n = (
|
|
3402
|
+
var o, s, a, D, j, A, g, M, y, N, I, O, w, _, p, h;
|
|
3403
|
+
const r = String(i.id), n = (U) => U ? U === nt.EMAIL ? "email" : U === nt.FREE_TEXT ? "text" : U === nt.NUMBER ? "number" : U === nt.SECURE ? "password" : "text" : "text";
|
|
3404
3404
|
return /* @__PURE__ */ d(
|
|
3405
3405
|
"div",
|
|
3406
3406
|
{
|
|
@@ -3410,30 +3410,30 @@ const vi = (e, i) => {
|
|
|
3410
3410
|
gap: "16px"
|
|
3411
3411
|
},
|
|
3412
3412
|
children: [
|
|
3413
|
-
/* @__PURE__ */ d(fe,
|
|
3413
|
+
/* @__PURE__ */ d(fe, H(z({}, e.title), { text: i.text, htmlFor: r })),
|
|
3414
3414
|
/* @__PURE__ */ d(
|
|
3415
3415
|
"input",
|
|
3416
|
-
|
|
3416
|
+
H(z({}, t(r, {
|
|
3417
3417
|
required: !!i.required,
|
|
3418
|
-
validate:
|
|
3418
|
+
validate: Li(i.validators, !!i.required)
|
|
3419
3419
|
})), {
|
|
3420
3420
|
id: r,
|
|
3421
3421
|
type: n((o = e.textField) == null ? void 0 : o.inputType),
|
|
3422
3422
|
style: {
|
|
3423
|
-
fontFamily: (
|
|
3423
|
+
fontFamily: (a = (s = e == null ? void 0 : e.textField) == null ? void 0 : s.fontName) != null ? a : "sans-serif",
|
|
3424
3424
|
fontSize: (j = (D = e == null ? void 0 : e.textField) == null ? void 0 : D.fontSize) != null ? j : 15,
|
|
3425
|
-
color: (
|
|
3425
|
+
color: (g = q((A = e == null ? void 0 : e.textField) == null ? void 0 : A.fontColor)) != null ? g : "#000000",
|
|
3426
3426
|
height: "42px",
|
|
3427
|
-
borderWidth: (y = (
|
|
3428
|
-
borderColor: (I =
|
|
3427
|
+
borderWidth: (y = (M = e == null ? void 0 : e.textField) == null ? void 0 : M.borderWidth) != null ? y : 1,
|
|
3428
|
+
borderColor: (I = q((N = e == null ? void 0 : e.textField) == null ? void 0 : N.borderColor)) != null ? I : "#d9d9d9",
|
|
3429
3429
|
borderStyle: "solid",
|
|
3430
|
-
borderRadius: (w = (
|
|
3430
|
+
borderRadius: (w = (O = e == null ? void 0 : e.textField) == null ? void 0 : O.cornerRadius) != null ? w : 8,
|
|
3431
3431
|
padding: "11px",
|
|
3432
3432
|
boxSizing: "border-box",
|
|
3433
|
-
backgroundColor: (
|
|
3434
|
-
outlineColor:
|
|
3433
|
+
backgroundColor: (p = q((_ = e == null ? void 0 : e.textField) == null ? void 0 : _.backgroundColor)) != null ? p : "#FFFFFF",
|
|
3434
|
+
outlineColor: $i
|
|
3435
3435
|
},
|
|
3436
|
-
placeholder: (
|
|
3436
|
+
placeholder: (h = i.placeholder) != null ? h : "",
|
|
3437
3437
|
"data-id": r
|
|
3438
3438
|
})
|
|
3439
3439
|
)
|
|
@@ -3445,7 +3445,7 @@ const vi = (e, i) => {
|
|
|
3445
3445
|
dataSourceQuestion: i,
|
|
3446
3446
|
register: t
|
|
3447
3447
|
}) => {
|
|
3448
|
-
var n, o, s,
|
|
3448
|
+
var n, o, s, a, D, j, A, g, M, y, N, I, O;
|
|
3449
3449
|
const r = String(i.id);
|
|
3450
3450
|
return /* @__PURE__ */ d(
|
|
3451
3451
|
"div",
|
|
@@ -3456,12 +3456,12 @@ const vi = (e, i) => {
|
|
|
3456
3456
|
gap: "16px"
|
|
3457
3457
|
},
|
|
3458
3458
|
children: [
|
|
3459
|
-
/* @__PURE__ */ d(fe,
|
|
3459
|
+
/* @__PURE__ */ d(fe, H(z({}, e.title), { text: i.text, htmlFor: r })),
|
|
3460
3460
|
/* @__PURE__ */ d(
|
|
3461
3461
|
"textarea",
|
|
3462
|
-
|
|
3462
|
+
H(z({}, t(r, {
|
|
3463
3463
|
required: !!i.required,
|
|
3464
|
-
validate:
|
|
3464
|
+
validate: Li(i.validators, !!i.required)
|
|
3465
3465
|
})), {
|
|
3466
3466
|
id: r,
|
|
3467
3467
|
placeholder: (n = i.placeholder) != null ? n : "",
|
|
@@ -3472,19 +3472,19 @@ const vi = (e, i) => {
|
|
|
3472
3472
|
style: {
|
|
3473
3473
|
fontFamily: "sans-serif",
|
|
3474
3474
|
fontSize: (s = (o = e == null ? void 0 : e.textField) == null ? void 0 : o.fontSize) != null ? s : 15,
|
|
3475
|
-
color: (D =
|
|
3475
|
+
color: (D = q((a = e == null ? void 0 : e.textField) == null ? void 0 : a.fontColor)) != null ? D : "#000000",
|
|
3476
3476
|
resize: "none",
|
|
3477
3477
|
overflow: "hidden",
|
|
3478
3478
|
height: "42px",
|
|
3479
3479
|
minHeight: "42px",
|
|
3480
3480
|
borderWidth: (A = (j = e == null ? void 0 : e.textField) == null ? void 0 : j.borderWidth) != null ? A : 1,
|
|
3481
|
-
borderColor: (
|
|
3481
|
+
borderColor: (M = q((g = e == null ? void 0 : e.textField) == null ? void 0 : g.borderColor)) != null ? M : "#d9d9d9",
|
|
3482
3482
|
borderStyle: "solid",
|
|
3483
3483
|
borderRadius: (N = (y = e == null ? void 0 : e.textField) == null ? void 0 : y.cornerRadius) != null ? N : 8,
|
|
3484
3484
|
padding: "11px",
|
|
3485
3485
|
boxSizing: "border-box",
|
|
3486
|
-
backgroundColor: (
|
|
3487
|
-
outlineColor:
|
|
3486
|
+
backgroundColor: (O = q((I = e == null ? void 0 : e.textField) == null ? void 0 : I.backgroundColor)) != null ? O : "#FFFFFF",
|
|
3487
|
+
outlineColor: $i
|
|
3488
3488
|
}
|
|
3489
3489
|
})
|
|
3490
3490
|
)
|
|
@@ -3498,7 +3498,7 @@ const vi = (e, i) => {
|
|
|
3498
3498
|
underlyingError: r,
|
|
3499
3499
|
underlyingBaseError: n
|
|
3500
3500
|
}) {
|
|
3501
|
-
const o = yi.getErrorKey(i,
|
|
3501
|
+
const o = yi.getErrorKey(i, Ri);
|
|
3502
3502
|
super({
|
|
3503
3503
|
errorCode: i,
|
|
3504
3504
|
errorCodeKey: o,
|
|
@@ -3512,21 +3512,37 @@ const vi = (e, i) => {
|
|
|
3512
3512
|
});
|
|
3513
3513
|
}
|
|
3514
3514
|
};
|
|
3515
|
-
ri.MODULE =
|
|
3516
|
-
let
|
|
3517
|
-
const ia = ({ header: e, title: i, buttons: t, footer: r, questions: n, dataSource: o, properties: s, backgroundColor:
|
|
3518
|
-
|
|
3519
|
-
|
|
3515
|
+
ri.MODULE = at, ri.ERROR_ENUM_NAME = "GuiModuleError", ri.SHORT_CODE = "GM";
|
|
3516
|
+
let bi = ri;
|
|
3517
|
+
const ia = ({ header: e, title: i, buttons: t, footer: r, questions: n, dataSource: o, properties: s, backgroundColor: a }) => {
|
|
3518
|
+
var p;
|
|
3519
|
+
const D = Nt.FORM, { perform: j } = zi();
|
|
3520
|
+
if (!o || (o == null ? void 0 : o.questions.length) === 0) {
|
|
3521
|
+
const h = new bi({
|
|
3522
|
+
errorCode: Ri.DECODING_FAILED,
|
|
3523
|
+
message: "No dataSource or no data for questions in the dataSource"
|
|
3524
|
+
});
|
|
3525
|
+
return j(h), null;
|
|
3526
|
+
}
|
|
3527
|
+
if (!(n != null && n.itemTypes) || Array.isArray(n == null ? void 0 : n.itemTypes) && ((p = n == null ? void 0 : n.itemTypes) == null ? void 0 : p.length) === 0) {
|
|
3528
|
+
const h = new bi({
|
|
3529
|
+
errorCode: Ri.DECODING_FAILED,
|
|
3530
|
+
message: "No questions in the itemTypes field or itemTypes is not an array"
|
|
3531
|
+
});
|
|
3532
|
+
return j(h), null;
|
|
3533
|
+
}
|
|
3534
|
+
const A = s ? Vs(o.questions, s) : {}, g = Ge(null), {
|
|
3535
|
+
register: M,
|
|
3520
3536
|
handleSubmit: y,
|
|
3521
3537
|
formState: { errors: N },
|
|
3522
3538
|
reset: I,
|
|
3523
|
-
watch:
|
|
3539
|
+
watch: O,
|
|
3524
3540
|
control: w
|
|
3525
3541
|
} = FM({
|
|
3526
3542
|
criteriaMode: "all",
|
|
3527
3543
|
defaultValues: A
|
|
3528
3544
|
});
|
|
3529
|
-
return /* @__PURE__ */ d(ci, { header: e, footer: r, backgroundColor:
|
|
3545
|
+
return /* @__PURE__ */ d(ci, { header: e, footer: r, backgroundColor: a, children: /* @__PURE__ */ d(
|
|
3530
3546
|
"form",
|
|
3531
3547
|
{
|
|
3532
3548
|
onSubmit: y((h) => {
|
|
@@ -3556,12 +3572,12 @@ const ia = ({ header: e, title: i, buttons: t, footer: r, questions: n, dataSour
|
|
|
3556
3572
|
width: "100%",
|
|
3557
3573
|
overflow: "auto",
|
|
3558
3574
|
position: "relative",
|
|
3559
|
-
backgroundColor:
|
|
3575
|
+
backgroundColor: q(n == null ? void 0 : n.backgroundColor) || "transparent"
|
|
3560
3576
|
},
|
|
3561
|
-
ref:
|
|
3577
|
+
ref: g,
|
|
3562
3578
|
children: [
|
|
3563
3579
|
i && /** Screen title */
|
|
3564
|
-
/* @__PURE__ */ d("div", { style: { lineHeight: "39.2px", width: "100%" }, children: /* @__PURE__ */ d(fe,
|
|
3580
|
+
/* @__PURE__ */ d("div", { style: { lineHeight: "39.2px", width: "100%" }, children: /* @__PURE__ */ d(fe, z({}, i)) }),
|
|
3565
3581
|
/* @__PURE__ */ d(
|
|
3566
3582
|
"div",
|
|
3567
3583
|
{
|
|
@@ -3569,94 +3585,94 @@ const ia = ({ header: e, title: i, buttons: t, footer: r, questions: n, dataSour
|
|
|
3569
3585
|
part: "gui-questions",
|
|
3570
3586
|
style: { width: "100%", display: "flex", gap: "10px", flexDirection: "column" },
|
|
3571
3587
|
children: o.questions.map((h) => {
|
|
3572
|
-
var
|
|
3573
|
-
const
|
|
3574
|
-
var
|
|
3575
|
-
if ((
|
|
3576
|
-
return
|
|
3577
|
-
}),
|
|
3578
|
-
if (!
|
|
3579
|
-
const
|
|
3580
|
-
errorCode:
|
|
3588
|
+
var G;
|
|
3589
|
+
const U = o.static, ee = (k, J) => J.find((ie) => {
|
|
3590
|
+
var Ie;
|
|
3591
|
+
if ((Ie = ie.questionIds) != null && Ie.length)
|
|
3592
|
+
return ie.questionIds.find((Ne) => k === Ne);
|
|
3593
|
+
}), ue = (k, J) => J.find((ie) => !ie.questionIds && ie.answerType === k), W = U ? ee(String(h.id), n.itemTypes) || ue(h.answerType, n.itemTypes) : n.itemTypes.find((k) => k.answerType === h.answerType);
|
|
3594
|
+
if (!W) {
|
|
3595
|
+
const k = new bi({
|
|
3596
|
+
errorCode: Ri.DECODING_FAILED,
|
|
3581
3597
|
message: "The question template has not been found"
|
|
3582
3598
|
});
|
|
3583
|
-
j(
|
|
3599
|
+
j(k);
|
|
3584
3600
|
return;
|
|
3585
3601
|
}
|
|
3586
|
-
const
|
|
3602
|
+
const ne = W == null ? void 0 : W.displayType, Q = h.id in N && ((G = N[h.id]) == null ? void 0 : G.types);
|
|
3587
3603
|
return (
|
|
3588
3604
|
/** Question */
|
|
3589
3605
|
/* @__PURE__ */ d(be, { children: [
|
|
3590
3606
|
/* @__PURE__ */ d(
|
|
3591
3607
|
XM,
|
|
3592
3608
|
{
|
|
3593
|
-
backgroundColor:
|
|
3594
|
-
cornerRadius:
|
|
3595
|
-
isError: !!
|
|
3609
|
+
backgroundColor: W == null ? void 0 : W.backgroundColor,
|
|
3610
|
+
cornerRadius: W == null ? void 0 : W.cornerRadius,
|
|
3611
|
+
isError: !!Q,
|
|
3596
3612
|
isRequired: h.required,
|
|
3597
|
-
validationBorderColor:
|
|
3598
|
-
validationBorderWidth:
|
|
3613
|
+
validationBorderColor: W == null ? void 0 : W.validationBorderColor,
|
|
3614
|
+
validationBorderWidth: W == null ? void 0 : W.validationBorderWidth,
|
|
3599
3615
|
children: [
|
|
3600
|
-
|
|
3616
|
+
ne === mi.TEXT_EXPANDABLE && /* @__PURE__ */ d(
|
|
3601
3617
|
ea,
|
|
3602
3618
|
{
|
|
3603
|
-
layout:
|
|
3619
|
+
layout: W,
|
|
3604
3620
|
dataSourceQuestion: h,
|
|
3605
|
-
register:
|
|
3621
|
+
register: M
|
|
3606
3622
|
}
|
|
3607
3623
|
),
|
|
3608
|
-
|
|
3624
|
+
ne === mi.TEXT_SINGLE_LINE && /* @__PURE__ */ d(
|
|
3609
3625
|
qM,
|
|
3610
3626
|
{
|
|
3611
|
-
layout:
|
|
3627
|
+
layout: W,
|
|
3612
3628
|
dataSourceQuestion: h,
|
|
3613
|
-
register:
|
|
3629
|
+
register: M
|
|
3614
3630
|
}
|
|
3615
3631
|
),
|
|
3616
|
-
|
|
3632
|
+
ne === mi.SELECTOR_OPTIONS && /* @__PURE__ */ d(
|
|
3617
3633
|
GM,
|
|
3618
3634
|
{
|
|
3619
|
-
layout:
|
|
3635
|
+
layout: W,
|
|
3620
3636
|
dataSourceQuestion: h,
|
|
3621
|
-
watch:
|
|
3622
|
-
register:
|
|
3637
|
+
watch: O,
|
|
3638
|
+
register: M
|
|
3623
3639
|
}
|
|
3624
3640
|
),
|
|
3625
|
-
|
|
3641
|
+
ne === mi.SELECTOR_BUTTONS && /* @__PURE__ */ d(
|
|
3626
3642
|
$M,
|
|
3627
3643
|
{
|
|
3628
|
-
layout:
|
|
3644
|
+
layout: W,
|
|
3629
3645
|
dataSourceQuestion: h,
|
|
3630
|
-
watch:
|
|
3631
|
-
register:
|
|
3646
|
+
watch: O,
|
|
3647
|
+
register: M
|
|
3632
3648
|
}
|
|
3633
3649
|
),
|
|
3634
|
-
|
|
3650
|
+
ne === mi.SELECTOR_DROPDOWN && /* @__PURE__ */ d(
|
|
3635
3651
|
WM,
|
|
3636
3652
|
{
|
|
3637
3653
|
control: w,
|
|
3638
|
-
layout:
|
|
3654
|
+
layout: W,
|
|
3639
3655
|
dataSourceQuestion: h,
|
|
3640
|
-
parentElementRef:
|
|
3656
|
+
parentElementRef: g
|
|
3641
3657
|
}
|
|
3642
3658
|
),
|
|
3643
|
-
|
|
3659
|
+
ne === mi.MULTI_SELECTOR_DROPDOWN && /* @__PURE__ */ d(
|
|
3644
3660
|
ZM,
|
|
3645
3661
|
{
|
|
3646
3662
|
control: w,
|
|
3647
|
-
layout:
|
|
3663
|
+
layout: W,
|
|
3648
3664
|
dataSourceQuestion: h,
|
|
3649
|
-
parentElementRef:
|
|
3665
|
+
parentElementRef: g
|
|
3650
3666
|
}
|
|
3651
3667
|
)
|
|
3652
3668
|
]
|
|
3653
3669
|
}
|
|
3654
3670
|
),
|
|
3655
|
-
|
|
3671
|
+
Q && /* @__PURE__ */ d(
|
|
3656
3672
|
KM,
|
|
3657
3673
|
{
|
|
3658
|
-
validationErrorsTypes:
|
|
3659
|
-
title:
|
|
3674
|
+
validationErrorsTypes: Q,
|
|
3675
|
+
title: W.validationMessage
|
|
3660
3676
|
}
|
|
3661
3677
|
)
|
|
3662
3678
|
] }, h.id)
|
|
@@ -3682,7 +3698,7 @@ const ia = ({ header: e, title: i, buttons: t, footer: r, questions: n, dataSour
|
|
|
3682
3698
|
alignItems: "flex-end",
|
|
3683
3699
|
padding: "2px"
|
|
3684
3700
|
},
|
|
3685
|
-
children: t.map((h,
|
|
3701
|
+
children: t.map((h, U) => /* @__PURE__ */ d(ut, z({ dataTestId: "question-button" }, h), U))
|
|
3686
3702
|
}
|
|
3687
3703
|
)
|
|
3688
3704
|
]
|
|
@@ -3719,14 +3735,14 @@ const ia = ({ header: e, title: i, buttons: t, footer: r, questions: n, dataSour
|
|
|
3719
3735
|
backgroundColor: r,
|
|
3720
3736
|
selectionLimit: n
|
|
3721
3737
|
}) => {
|
|
3722
|
-
var A,
|
|
3723
|
-
const { perform: o } = zi(), s =
|
|
3738
|
+
var A, g;
|
|
3739
|
+
const { perform: o } = zi(), s = Ge(null), a = typeof n == "number" && (n === 0 || n > 1), D = (M) => je(null, null, function* () {
|
|
3724
3740
|
var N;
|
|
3725
|
-
const y = Array.from((N =
|
|
3741
|
+
const y = Array.from((N = M.currentTarget.files) != null ? N : []);
|
|
3726
3742
|
if (y.length)
|
|
3727
3743
|
try {
|
|
3728
|
-
const
|
|
3729
|
-
y.map((w) =>
|
|
3744
|
+
const O = (yield Promise.allSettled(
|
|
3745
|
+
y.map((w) => je(null, null, function* () {
|
|
3730
3746
|
return {
|
|
3731
3747
|
content: yield Qn(w),
|
|
3732
3748
|
metadata: {
|
|
@@ -3743,34 +3759,34 @@ const ia = ({ header: e, title: i, buttons: t, footer: r, questions: n, dataSour
|
|
|
3743
3759
|
o({
|
|
3744
3760
|
cancel: !1,
|
|
3745
3761
|
permissionDenied: !1,
|
|
3746
|
-
files:
|
|
3762
|
+
files: O
|
|
3747
3763
|
});
|
|
3748
3764
|
} catch (I) {
|
|
3749
3765
|
console.error("Error: ", I);
|
|
3750
3766
|
}
|
|
3751
3767
|
}), j = () => {
|
|
3752
|
-
var
|
|
3753
|
-
(
|
|
3768
|
+
var M;
|
|
3769
|
+
(M = s.current) == null || M.showPicker();
|
|
3754
3770
|
};
|
|
3755
3771
|
return /* @__PURE__ */ d(ci, { header: e, footer: i, backgroundColor: r, children: /* @__PURE__ */ d(be, { children: /* @__PURE__ */ d(
|
|
3756
3772
|
"div",
|
|
3757
3773
|
{
|
|
3758
|
-
style:
|
|
3774
|
+
style: H(z({}, na), {
|
|
3759
3775
|
justifyContent: "center"
|
|
3760
3776
|
}),
|
|
3761
3777
|
children: [
|
|
3762
3778
|
/* @__PURE__ */ d(
|
|
3763
3779
|
"input",
|
|
3764
|
-
|
|
3780
|
+
H(z({
|
|
3765
3781
|
style: ta,
|
|
3766
3782
|
ref: s,
|
|
3767
3783
|
type: "file",
|
|
3768
3784
|
accept: "image/*"
|
|
3769
|
-
},
|
|
3785
|
+
}, a ? { multiple: !0 } : {}), {
|
|
3770
3786
|
onInput: D
|
|
3771
3787
|
})
|
|
3772
3788
|
),
|
|
3773
|
-
/* @__PURE__ */ d("button", { style: ra, onClick: j, children: /* @__PURE__ */ d(_e, { imageId: (
|
|
3789
|
+
/* @__PURE__ */ d("button", { style: ra, onClick: j, children: /* @__PURE__ */ d(_e, { imageId: (g = (A = t == null ? void 0 : t[0]) == null ? void 0 : A.image) == null ? void 0 : g.imageId }) })
|
|
3774
3790
|
]
|
|
3775
3791
|
}
|
|
3776
3792
|
) }) });
|
|
@@ -3801,88 +3817,88 @@ function sa(e) {
|
|
|
3801
3817
|
}
|
|
3802
3818
|
var L = {};
|
|
3803
3819
|
const Ma = /* @__PURE__ */ sa(TM);
|
|
3804
|
-
var
|
|
3820
|
+
var Yi = { exports: {} }, aa = Yi.exports, In;
|
|
3805
3821
|
function ua() {
|
|
3806
3822
|
return In || (In = 1, (function(e, i) {
|
|
3807
3823
|
(function(t, r) {
|
|
3808
|
-
var n = "1.0.41", o = "", s = "?",
|
|
3809
|
-
var
|
|
3810
|
-
for (var Me in
|
|
3811
|
-
|
|
3812
|
-
return
|
|
3813
|
-
}, ui = function(
|
|
3814
|
-
for (var
|
|
3815
|
-
|
|
3816
|
-
return
|
|
3817
|
-
},
|
|
3818
|
-
return typeof
|
|
3819
|
-
},
|
|
3820
|
-
return
|
|
3821
|
-
}, T = function(
|
|
3822
|
-
return typeof
|
|
3823
|
-
}, E = function(
|
|
3824
|
-
if (typeof
|
|
3825
|
-
return
|
|
3826
|
-
}, v = function(
|
|
3827
|
-
for (var
|
|
3828
|
-
var Ei =
|
|
3829
|
-
for (Me = Le = 0; Me < Ei.length && !
|
|
3830
|
-
if (
|
|
3831
|
-
for (we = 0; we <
|
|
3832
|
-
Ye =
|
|
3833
|
-
|
|
3824
|
+
var n = "1.0.41", o = "", s = "?", a = "function", D = "undefined", j = "object", A = "string", g = "major", M = "model", y = "name", N = "type", I = "vendor", O = "version", w = "architecture", _ = "console", p = "mobile", h = "tablet", U = "smarttv", ee = "wearable", ue = "embedded", W = 500, ne = "Amazon", Q = "Apple", G = "ASUS", k = "BlackBerry", J = "Browser", ie = "Chrome", Ie = "Edge", Ne = "Firefox", Ae = "Google", Qe = "Honor", le = "Huawei", Z = "Lenovo", ge = "LG", ze = "Microsoft", he = "Motorola", ve = "Nvidia", Y = "OnePlus", oe = "Opera", Ve = "OPPO", Je = "Samsung", ii = "Sharp", Be = "Sony", gi = "Xiaomi", Mi = "Zebra", Oi = "Facebook", di = "Chromium OS", ai = "Mac OS", Ni = " Browser", xi = function(B, K) {
|
|
3825
|
+
var R = {};
|
|
3826
|
+
for (var Me in B)
|
|
3827
|
+
K[Me] && K[Me].length % 2 === 0 ? R[Me] = K[Me].concat(B[Me]) : R[Me] = B[Me];
|
|
3828
|
+
return R;
|
|
3829
|
+
}, ui = function(B) {
|
|
3830
|
+
for (var K = {}, R = 0; R < B.length; R++)
|
|
3831
|
+
K[B[R].toUpperCase()] = B[R];
|
|
3832
|
+
return K;
|
|
3833
|
+
}, $e = function(B, K) {
|
|
3834
|
+
return typeof B === A ? c(K).indexOf(c(B)) !== -1 : !1;
|
|
3835
|
+
}, c = function(B) {
|
|
3836
|
+
return B.toLowerCase();
|
|
3837
|
+
}, T = function(B) {
|
|
3838
|
+
return typeof B === A ? B.replace(/[^\d\.]/g, o).split(".")[0] : r;
|
|
3839
|
+
}, E = function(B, K) {
|
|
3840
|
+
if (typeof B === A)
|
|
3841
|
+
return B = B.replace(/^\s\s*/, o), typeof K === D ? B : B.substring(0, W);
|
|
3842
|
+
}, v = function(B, K) {
|
|
3843
|
+
for (var R = 0, Me, Le, we, se, V, Ye; R < K.length && !V; ) {
|
|
3844
|
+
var Ei = K[R], ki = K[R + 1];
|
|
3845
|
+
for (Me = Le = 0; Me < Ei.length && !V && Ei[Me]; )
|
|
3846
|
+
if (V = Ei[Me++].exec(B), V)
|
|
3847
|
+
for (we = 0; we < ki.length; we++)
|
|
3848
|
+
Ye = V[++Le], se = ki[we], typeof se === j && se.length > 0 ? se.length === 2 ? typeof se[1] == a ? this[se[0]] = se[1].call(this, Ye) : this[se[0]] = se[1] : se.length === 3 ? typeof se[1] === a && !(se[1].exec && se[1].test) ? this[se[0]] = Ye ? se[1].call(this, Ye, se[2]) : r : this[se[0]] = Ye ? Ye.replace(se[1], se[2]) : r : se.length === 4 && (this[se[0]] = Ye ? se[3].call(this, Ye.replace(se[1], se[2])) : r) : this[se] = Ye || r;
|
|
3849
|
+
R += 2;
|
|
3834
3850
|
}
|
|
3835
|
-
}, b = function(
|
|
3836
|
-
for (var
|
|
3837
|
-
if (typeof
|
|
3838
|
-
for (var Me = 0; Me <
|
|
3839
|
-
if (
|
|
3840
|
-
return
|
|
3841
|
-
} else if (
|
|
3842
|
-
return
|
|
3843
|
-
return
|
|
3844
|
-
}, 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, E], [a, E], [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) {
|
|
3845
|
-
if (typeof
|
|
3846
|
-
return new B
|
|
3847
|
-
var
|
|
3851
|
+
}, b = function(B, K) {
|
|
3852
|
+
for (var R in K)
|
|
3853
|
+
if (typeof K[R] === j && K[R].length > 0) {
|
|
3854
|
+
for (var Me = 0; Me < K[R].length; Me++)
|
|
3855
|
+
if ($e(K[R][Me], B))
|
|
3856
|
+
return R === s ? r : R;
|
|
3857
|
+
} else if ($e(K[R], B))
|
|
3858
|
+
return R === s ? r : R;
|
|
3859
|
+
return K.hasOwnProperty("*") ? K["*"] : B;
|
|
3860
|
+
}, 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", "?": "/" }, P = { 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" }, X = { 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, oe + " Mini"]], [/\bop(?:rg)?x\/([\w\.]+)/i], [O, [y, oe + " GX"]], [/\bopr\/([\w\.]+)/i], [O, [y, oe]], [/\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" + J]], [/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 " + J]], [/(avast|avg)\/([\w\.]+)/i], [[y, /(.+)/, "$1 Secure " + J], O], [/\bfocus\/([\w\.]+)/i], [O, [y, Ne + " Focus"]], [/\bopt\/([\w\.]+)/i], [O, [y, oe + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [O, [y, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [O, [y, "Dolphin"]], [/coast\/([\w\.]+)/i], [O, [y, oe + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [O, [y, "MIUI" + Ni]], [/fxios\/([\w\.-]+)/i], [O, [y, Ne]], [/\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, Je + " 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, ie + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[y, ie + " WebView"], O], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [O, [y, "Android " + J]], [/(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, Ne + " 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, c]], [/ 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, c]]], 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], [M, [I, Je], [N, h]], [/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]((?!sm-[lr])[-\w]+)/i, /sec-(sgh\w+)/i], [M, [I, Je], [N, p]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [M, [I, Q], [N, p]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [M, [I, Q], [N, h]], [/(macintosh);/i], [M, [I, Q]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [M, [I, ii], [N, p]], [/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i], [M, [I, Qe], [N, h]], [/honor([-\w ]+)[;\)]/i], [M, [I, Qe], [N, p]], [/\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], [M, [I, le], [N, h]], [/(?:huawei)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [M, [I, le], [N, p]], [/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i, /\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i], [[M, /_/g, " "], [I, gi], [N, h]], [/\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], [[M, /_/g, " "], [I, gi], [N, p]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [M, [I, Ve], [N, p]], [/\b(opd2(\d{3}a?))(?: bui|\))/i], [M, [I, b, { OnePlus: ["304", "403", "203"], "*": Ve }], [N, h]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [M, [I, "Vivo"], [N, p]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [M, [I, "Realme"], [N, p]], [/\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], [M, [I, he], [N, p]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [M, [I, he], [N, h]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [M, [I, ge], [N, h]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i, /\blg-?([\d\w]+) bui/i], [M, [I, ge], [N, p]], [/(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], [M, [I, Z], [N, h]], [/(nokia) (t[12][01])/i], [I, M, [N, h]], [/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i, /nokia[-_ ]?(([-\w\. ]*))/i], [[M, /_/g, " "], [N, p], [I, "Nokia"]], [/(pixel (c|tablet))\b/i], [M, [I, Ae], [N, h]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [M, [I, Ae], [N, p]], [/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], [M, [I, Be], [N, p]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[M, "Xperia Tablet"], [I, Be], [N, h]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [M, [I, Y], [N, p]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [M, [I, ne], [N, h]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[M, /(.+)/g, "Fire Phone $1"], [I, ne], [N, p]], [/(playbook);[-\w\),; ]+(rim)/i], [M, I, [N, h]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [M, [I, k], [N, p]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [M, [I, G], [N, h]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [M, [I, G], [N, p]], [/(nexus 9)/i], [M, [I, "HTC"], [N, h]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [I, [M, /_/g, " "], [N, p]], [/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], [M, [I, "TCL"], [N, h]], [/(itel) ((\w+))/i], [[I, c], M, [N, b, { tablet: ["p10001l", "w7001"], "*": "mobile" }]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [M, [I, "Acer"], [N, h]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [M, [I, "Meizu"], [N, p]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [M, [I, "Ulefone"], [N, p]], [/; (energy ?\w+)(?: bui|\))/i, /; energizer ([\w ]+)(?: bui|\))/i], [M, [I, "Energizer"], [N, p]], [/; cat (b35);/i, /; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i], [M, [I, "Cat"], [N, p]], [/((?:new )?andromax[\w- ]+)(?: bui|\))/i], [M, [I, "Smartfren"], [N, p]], [/droid.+; (a(?:015|06[35]|142p?))/i], [M, [I, "Nothing"], [N, p]], [/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i, /archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i], [M, [I, "Archos"], [N, h]], [/archos ([\w ]+)( b|\))/i, /; (ac[3-6]\d\w{2,8})( b|\))/i], [M, [I, "Archos"], [N, p]], [/(imo) (tab \w+)/i, /(infinix) (x1101b?)/i], [I, M, [N, h]], [/(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, M, [N, p]], [/(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, M, [N, h]], [/(surface duo)/i], [M, [I, ze], [N, h]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [M, [I, "Fairphone"], [N, p]], [/(u304aa)/i], [M, [I, "AT&T"], [N, p]], [/\bsie-(\w*)/i], [M, [I, "Siemens"], [N, p]], [/\b(rct\w+) b/i], [M, [I, "RCA"], [N, h]], [/\b(venue[\d ]{2,7}) b/i], [M, [I, "Dell"], [N, h]], [/\b(q(?:mv|ta)\w+) b/i], [M, [I, "Verizon"], [N, h]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [M, [I, "Barnes & Noble"], [N, h]], [/\b(tm\d{3}\w+) b/i], [M, [I, "NuVision"], [N, h]], [/\b(k88) b/i], [M, [I, "ZTE"], [N, h]], [/\b(nx\d{3}j) b/i], [M, [I, "ZTE"], [N, p]], [/\b(gen\d{3}) b.+49h/i], [M, [I, "Swiss"], [N, p]], [/\b(zur\d{3}) b/i], [M, [I, "Swiss"], [N, h]], [/\b((zeki)?tb.*\b) b/i], [M, [I, "Zeki"], [N, h]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[I, "Dragon Touch"], M, [N, h]], [/\b(ns-?\w{0,9}) b/i], [M, [I, "Insignia"], [N, h]], [/\b((nxa|next)-?\w{0,9}) b/i], [M, [I, "NextBook"], [N, h]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[I, "Voice"], M, [N, p]], [/\b(lvtel\-)?(v1[12]) b/i], [[I, "LvTel"], M, [N, p]], [/\b(ph-1) /i], [M, [I, "Essential"], [N, p]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [M, [I, "Envizen"], [N, h]], [/\b(trio[-\w\. ]+) b/i], [M, [I, "MachSpeed"], [N, h]], [/\btu_(1491) b/i], [M, [I, "Rotor"], [N, h]], [/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i], [M, [I, ve], [N, h]], [/(sprint) (\w+)/i], [I, M, [N, p]], [/(kin\.[onetw]{3})/i], [[M, /\./g, " "], [I, ze], [N, p]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [M, [I, Mi], [N, h]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [M, [I, Mi], [N, p]], [/smart-tv.+(samsung)/i], [I, [N, U]], [/hbbtv.+maple;(\d+)/i], [[M, /^/, "SmartTV"], [I, Je], [N, U]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[I, ge], [N, U]], [/(apple) ?tv/i], [I, [M, Q + " TV"], [N, U]], [/crkey/i], [[M, ie + "cast"], [I, Ae], [N, U]], [/droid.+aft(\w+)( bui|\))/i], [M, [I, ne], [N, U]], [/(shield \w+ tv)/i], [M, [I, ve], [N, U]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [M, [I, ii], [N, U]], [/(bravia[\w ]+)( bui|\))/i], [M, [I, Be], [N, U]], [/(mi(tv|box)-?\w+) bui/i], [M, [I, gi], [N, U]], [/Hbbtv.*(technisat) (.*);/i], [I, M, [N, U]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[I, E], [M, E], [N, U]], [/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i], [M, [N, U]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[N, U]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [I, M, [N, _]], [/droid.+; (shield)( bui|\))/i], [M, [I, ve], [N, _]], [/(playstation \w+)/i], [M, [I, Be], [N, _]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [M, [I, ze], [N, _]], [/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i], [M, [I, Je], [N, ee]], [/((pebble))app/i, /(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i], [I, M, [N, ee]], [/(ow(?:19|20)?we?[1-3]{1,3})/i], [M, [I, Ve], [N, ee]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [M, [I, Q], [N, ee]], [/(opwwe\d{3})/i], [M, [I, Y], [N, ee]], [/(moto 360)/i], [M, [I, he], [N, ee]], [/(smartwatch 3)/i], [M, [I, Be], [N, ee]], [/(g watch r)/i], [M, [I, ge], [N, ee]], [/droid.+; (wt63?0{2,3})\)/i], [M, [I, Mi], [N, ee]], [/droid.+; (glass) \d/i], [M, [I, Ae], [N, ee]], [/(pico) (4|neo3(?: link|pro)?)/i], [I, M, [N, ee]], [/; (quest( \d| pro)?)/i], [M, [I, Oi], [N, ee]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [I, [N, ue]], [/(aeobc)\b/i], [M, [I, ne], [N, ue]], [/(homepod).+mac os/i], [M, [I, Q], [N, ue]], [/windows iot/i], [[N, ue]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i], [M, [N, p]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [M, [N, h]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[N, h]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[N, p]], [/droid .+?; ([\w\. -]+)( bui|\))/i], [M, [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, P]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[O, b, P], [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, k]], [/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i], [O, [y, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [O, [y, Ne + " 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, ie + "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]] }, F = function(B, K) {
|
|
3861
|
+
if (typeof B === j && (K = B, B = r), !(this instanceof F))
|
|
3862
|
+
return new F(B, K).getResult();
|
|
3863
|
+
var R = typeof t !== D && t.navigator ? t.navigator : r, Me = B || (R && R.userAgent ? R.userAgent : o), Le = R && R.userAgentData ? R.userAgentData : r, we = K ? xi(X, K) : X, se = R && R.userAgent == Me;
|
|
3848
3864
|
return this.getBrowser = function() {
|
|
3849
|
-
var
|
|
3850
|
-
return
|
|
3865
|
+
var V = {};
|
|
3866
|
+
return V[y] = r, V[O] = r, v.call(V, Me, we.browser), V[g] = T(V[O]), se && R && R.brave && typeof R.brave.isBrave == a && (V[y] = "Brave"), V;
|
|
3851
3867
|
}, this.getCPU = function() {
|
|
3852
|
-
var
|
|
3853
|
-
return
|
|
3868
|
+
var V = {};
|
|
3869
|
+
return V[w] = r, v.call(V, Me, we.cpu), V;
|
|
3854
3870
|
}, this.getDevice = function() {
|
|
3855
|
-
var
|
|
3856
|
-
return
|
|
3871
|
+
var V = {};
|
|
3872
|
+
return V[I] = r, V[M] = r, V[N] = r, v.call(V, Me, we.device), se && !V[N] && Le && Le.mobile && (V[N] = p), se && V[M] == "Macintosh" && R && typeof R.standalone !== D && R.maxTouchPoints && R.maxTouchPoints > 2 && (V[M] = "iPad", V[N] = h), V;
|
|
3857
3873
|
}, this.getEngine = function() {
|
|
3858
|
-
var
|
|
3859
|
-
return
|
|
3874
|
+
var V = {};
|
|
3875
|
+
return V[y] = r, V[O] = r, v.call(V, Me, we.engine), V;
|
|
3860
3876
|
}, this.getOS = function() {
|
|
3861
|
-
var
|
|
3862
|
-
return
|
|
3877
|
+
var V = {};
|
|
3878
|
+
return V[y] = r, V[O] = r, v.call(V, Me, we.os), se && !V[y] && Le && Le.platform && Le.platform != "Unknown" && (V[y] = Le.platform.replace(/chrome os/i, di).replace(/macos/i, ai)), V;
|
|
3863
3879
|
}, this.getResult = function() {
|
|
3864
3880
|
return { ua: this.getUA(), browser: this.getBrowser(), engine: this.getEngine(), os: this.getOS(), device: this.getDevice(), cpu: this.getCPU() };
|
|
3865
3881
|
}, this.getUA = function() {
|
|
3866
3882
|
return Me;
|
|
3867
|
-
}, this.setUA = function(
|
|
3868
|
-
return Me = typeof
|
|
3883
|
+
}, this.setUA = function(V) {
|
|
3884
|
+
return Me = typeof V === A && V.length > W ? E(V, W) : V, this;
|
|
3869
3885
|
}, this.setUA(Me), this;
|
|
3870
3886
|
};
|
|
3871
|
-
|
|
3872
|
-
var
|
|
3873
|
-
if (
|
|
3874
|
-
var Se = new
|
|
3875
|
-
|
|
3887
|
+
F.VERSION = n, F.BROWSER = ui([y, O, g]), F.CPU = ui([w]), F.DEVICE = ui([M, I, N, _, p, U, h, ee, ue]), F.ENGINE = F.OS = ui([y, O]), e.exports && (i = e.exports = F), i.UAParser = F;
|
|
3888
|
+
var ae = typeof t !== D && (t.jQuery || t.Zepto);
|
|
3889
|
+
if (ae && !ae.ua) {
|
|
3890
|
+
var Se = new F();
|
|
3891
|
+
ae.ua = Se.getResult(), ae.ua.get = function() {
|
|
3876
3892
|
return Se.getUA();
|
|
3877
|
-
},
|
|
3878
|
-
Se.setUA(
|
|
3879
|
-
var
|
|
3880
|
-
for (var
|
|
3881
|
-
|
|
3893
|
+
}, ae.ua.set = function(B) {
|
|
3894
|
+
Se.setUA(B);
|
|
3895
|
+
var K = Se.getResult();
|
|
3896
|
+
for (var R in K)
|
|
3897
|
+
ae.ua[R] = K[R];
|
|
3882
3898
|
};
|
|
3883
3899
|
}
|
|
3884
3900
|
})(typeof window == "object" ? window : aa);
|
|
3885
|
-
})(
|
|
3901
|
+
})(Yi, Yi.exports)), Yi.exports;
|
|
3886
3902
|
}
|
|
3887
3903
|
var jn;
|
|
3888
3904
|
function la() {
|
|
@@ -3891,9 +3907,9 @@ function la() {
|
|
|
3891
3907
|
function e(f) {
|
|
3892
3908
|
return f && typeof f == "object" && "default" in f ? f.default : f;
|
|
3893
3909
|
}
|
|
3894
|
-
var i = Ma, t = e(i), r = ua(), n = new r(), o = n.getBrowser(), s = n.getCPU(),
|
|
3910
|
+
var i = Ma, t = e(i), r = ua(), n = new r(), o = n.getBrowser(), s = n.getCPU(), a = n.getDevice(), D = n.getEngine(), j = n.getOS(), A = n.getUA(), g = function(u) {
|
|
3895
3911
|
return n.setUA(u);
|
|
3896
|
-
},
|
|
3912
|
+
}, M = function(u) {
|
|
3897
3913
|
if (!u) {
|
|
3898
3914
|
console.error("No userAgent string was provided");
|
|
3899
3915
|
return;
|
|
@@ -3915,12 +3931,12 @@ function la() {
|
|
|
3915
3931
|
ClientUAInstance: n,
|
|
3916
3932
|
browser: o,
|
|
3917
3933
|
cpu: s,
|
|
3918
|
-
device:
|
|
3934
|
+
device: a,
|
|
3919
3935
|
engine: D,
|
|
3920
3936
|
os: j,
|
|
3921
3937
|
ua: A,
|
|
3922
|
-
setUa:
|
|
3923
|
-
parseUserAgent:
|
|
3938
|
+
setUa: g,
|
|
3939
|
+
parseUserAgent: M
|
|
3924
3940
|
});
|
|
3925
3941
|
function N(f, u) {
|
|
3926
3942
|
var l = Object.keys(f);
|
|
@@ -3936,20 +3952,20 @@ function la() {
|
|
|
3936
3952
|
for (var u = 1; u < arguments.length; u++) {
|
|
3937
3953
|
var l = arguments[u] != null ? arguments[u] : {};
|
|
3938
3954
|
u % 2 ? N(Object(l), !0).forEach(function(x) {
|
|
3939
|
-
|
|
3955
|
+
h(f, x, l[x]);
|
|
3940
3956
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(f, Object.getOwnPropertyDescriptors(l)) : N(Object(l)).forEach(function(x) {
|
|
3941
3957
|
Object.defineProperty(f, x, Object.getOwnPropertyDescriptor(l, x));
|
|
3942
3958
|
});
|
|
3943
3959
|
}
|
|
3944
3960
|
return f;
|
|
3945
3961
|
}
|
|
3946
|
-
function
|
|
3962
|
+
function O(f) {
|
|
3947
3963
|
"@babel/helpers - typeof";
|
|
3948
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ?
|
|
3964
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? O = function(u) {
|
|
3949
3965
|
return typeof u;
|
|
3950
|
-
} :
|
|
3966
|
+
} : O = function(u) {
|
|
3951
3967
|
return u && typeof Symbol == "function" && u.constructor === Symbol && u !== Symbol.prototype ? "symbol" : typeof u;
|
|
3952
|
-
},
|
|
3968
|
+
}, O(f);
|
|
3953
3969
|
}
|
|
3954
3970
|
function w(f, u) {
|
|
3955
3971
|
if (!(f instanceof u))
|
|
@@ -3961,10 +3977,10 @@ function la() {
|
|
|
3961
3977
|
x.enumerable = x.enumerable || !1, x.configurable = !0, "value" in x && (x.writable = !0), Object.defineProperty(f, x.key, x);
|
|
3962
3978
|
}
|
|
3963
3979
|
}
|
|
3964
|
-
function
|
|
3980
|
+
function p(f, u, l) {
|
|
3965
3981
|
return u && _(f.prototype, u), f;
|
|
3966
3982
|
}
|
|
3967
|
-
function
|
|
3983
|
+
function h(f, u, l) {
|
|
3968
3984
|
return u in f ? Object.defineProperty(f, u, {
|
|
3969
3985
|
value: l,
|
|
3970
3986
|
enumerable: !0,
|
|
@@ -3972,17 +3988,17 @@ function la() {
|
|
|
3972
3988
|
writable: !0
|
|
3973
3989
|
}) : f[u] = l, f;
|
|
3974
3990
|
}
|
|
3975
|
-
function
|
|
3976
|
-
return
|
|
3991
|
+
function U() {
|
|
3992
|
+
return U = Object.assign || function(f) {
|
|
3977
3993
|
for (var u = 1; u < arguments.length; u++) {
|
|
3978
3994
|
var l = arguments[u];
|
|
3979
3995
|
for (var x in l)
|
|
3980
3996
|
Object.prototype.hasOwnProperty.call(l, x) && (f[x] = l[x]);
|
|
3981
3997
|
}
|
|
3982
3998
|
return f;
|
|
3983
|
-
},
|
|
3999
|
+
}, U.apply(this, arguments);
|
|
3984
4000
|
}
|
|
3985
|
-
function
|
|
4001
|
+
function ee(f, u) {
|
|
3986
4002
|
if (typeof u != "function" && u !== null)
|
|
3987
4003
|
throw new TypeError("Super expression must either be null or a function");
|
|
3988
4004
|
f.prototype = Object.create(u && u.prototype, {
|
|
@@ -3991,28 +4007,28 @@ function la() {
|
|
|
3991
4007
|
writable: !0,
|
|
3992
4008
|
configurable: !0
|
|
3993
4009
|
}
|
|
3994
|
-
}), u &&
|
|
4010
|
+
}), u && W(f, u);
|
|
3995
4011
|
}
|
|
3996
|
-
function
|
|
3997
|
-
return
|
|
4012
|
+
function ue(f) {
|
|
4013
|
+
return ue = Object.setPrototypeOf ? Object.getPrototypeOf : function(l) {
|
|
3998
4014
|
return l.__proto__ || Object.getPrototypeOf(l);
|
|
3999
|
-
},
|
|
4015
|
+
}, ue(f);
|
|
4000
4016
|
}
|
|
4001
|
-
function
|
|
4002
|
-
return
|
|
4017
|
+
function W(f, u) {
|
|
4018
|
+
return W = Object.setPrototypeOf || function(x, m) {
|
|
4003
4019
|
return x.__proto__ = m, x;
|
|
4004
|
-
},
|
|
4020
|
+
}, W(f, u);
|
|
4005
4021
|
}
|
|
4006
|
-
function
|
|
4022
|
+
function ne(f, u) {
|
|
4007
4023
|
if (f == null) return {};
|
|
4008
4024
|
var l = {}, x = Object.keys(f), m, te;
|
|
4009
4025
|
for (te = 0; te < x.length; te++)
|
|
4010
4026
|
m = x[te], !(u.indexOf(m) >= 0) && (l[m] = f[m]);
|
|
4011
4027
|
return l;
|
|
4012
4028
|
}
|
|
4013
|
-
function
|
|
4029
|
+
function Q(f, u) {
|
|
4014
4030
|
if (f == null) return {};
|
|
4015
|
-
var l =
|
|
4031
|
+
var l = ne(f, u), x, m;
|
|
4016
4032
|
if (Object.getOwnPropertySymbols) {
|
|
4017
4033
|
var te = Object.getOwnPropertySymbols(f);
|
|
4018
4034
|
for (m = 0; m < te.length; m++)
|
|
@@ -4020,22 +4036,22 @@ function la() {
|
|
|
4020
4036
|
}
|
|
4021
4037
|
return l;
|
|
4022
4038
|
}
|
|
4023
|
-
function
|
|
4039
|
+
function G(f) {
|
|
4024
4040
|
if (f === void 0)
|
|
4025
4041
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4026
4042
|
return f;
|
|
4027
4043
|
}
|
|
4028
|
-
function
|
|
4044
|
+
function k(f, u) {
|
|
4029
4045
|
if (u && (typeof u == "object" || typeof u == "function"))
|
|
4030
4046
|
return u;
|
|
4031
4047
|
if (u !== void 0)
|
|
4032
4048
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
4033
|
-
return
|
|
4049
|
+
return G(f);
|
|
4034
4050
|
}
|
|
4035
|
-
function
|
|
4036
|
-
return
|
|
4051
|
+
function J(f, u) {
|
|
4052
|
+
return ie(f) || Ie(f, u) || Ne(f, u) || Qe();
|
|
4037
4053
|
}
|
|
4038
|
-
function
|
|
4054
|
+
function ie(f) {
|
|
4039
4055
|
if (Array.isArray(f)) return f;
|
|
4040
4056
|
}
|
|
4041
4057
|
function Ie(f, u) {
|
|
@@ -4045,8 +4061,8 @@ function la() {
|
|
|
4045
4061
|
try {
|
|
4046
4062
|
for (l = l.call(f); !(m = (Oe = l.next()).done) && (x.push(Oe.value), !(u && x.length === u)); m = !0)
|
|
4047
4063
|
;
|
|
4048
|
-
} catch (
|
|
4049
|
-
te = !0, ke =
|
|
4064
|
+
} catch (et) {
|
|
4065
|
+
te = !0, ke = et;
|
|
4050
4066
|
} finally {
|
|
4051
4067
|
try {
|
|
4052
4068
|
!m && l.return != null && l.return();
|
|
@@ -4057,7 +4073,7 @@ function la() {
|
|
|
4057
4073
|
return x;
|
|
4058
4074
|
}
|
|
4059
4075
|
}
|
|
4060
|
-
function
|
|
4076
|
+
function Ne(f, u) {
|
|
4061
4077
|
if (f) {
|
|
4062
4078
|
if (typeof f == "string") return Ae(f, u);
|
|
4063
4079
|
var l = Object.prototype.toString.call(f).slice(8, -1);
|
|
@@ -4082,7 +4098,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4082
4098
|
Wearable: "wearable",
|
|
4083
4099
|
Embedded: "embedded",
|
|
4084
4100
|
Browser: void 0
|
|
4085
|
-
},
|
|
4101
|
+
}, Z = {
|
|
4086
4102
|
Chrome: "Chrome",
|
|
4087
4103
|
Firefox: "Firefox",
|
|
4088
4104
|
Opera: "Opera",
|
|
@@ -4143,78 +4159,78 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4143
4159
|
return ze;
|
|
4144
4160
|
}
|
|
4145
4161
|
}, ve = function(u) {
|
|
4146
|
-
return
|
|
4147
|
-
},
|
|
4162
|
+
return g(u);
|
|
4163
|
+
}, Y = function(u) {
|
|
4148
4164
|
var l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "none";
|
|
4149
4165
|
return u || l;
|
|
4150
|
-
},
|
|
4166
|
+
}, oe = function() {
|
|
4151
4167
|
return typeof window != "undefined" && (window.navigator || navigator) ? window.navigator || navigator : !1;
|
|
4152
4168
|
}, Ve = function(u) {
|
|
4153
|
-
var l =
|
|
4169
|
+
var l = oe();
|
|
4154
4170
|
return l && l.platform && (l.platform.indexOf(u) !== -1 || l.platform === "MacIntel" && l.maxTouchPoints > 1 && !window.MSStream);
|
|
4155
|
-
},
|
|
4171
|
+
}, Je = function(u, l, x, m, te) {
|
|
4156
4172
|
return {
|
|
4157
4173
|
isBrowser: u,
|
|
4158
|
-
browserMajorVersion:
|
|
4159
|
-
browserFullVersion:
|
|
4160
|
-
browserName:
|
|
4161
|
-
engineName:
|
|
4162
|
-
engineVersion:
|
|
4163
|
-
osName:
|
|
4164
|
-
osVersion:
|
|
4165
|
-
userAgent:
|
|
4174
|
+
browserMajorVersion: Y(l.major),
|
|
4175
|
+
browserFullVersion: Y(l.version),
|
|
4176
|
+
browserName: Y(l.name),
|
|
4177
|
+
engineName: Y(x.name),
|
|
4178
|
+
engineVersion: Y(x.version),
|
|
4179
|
+
osName: Y(m.name),
|
|
4180
|
+
osVersion: Y(m.version),
|
|
4181
|
+
userAgent: Y(te)
|
|
4166
4182
|
};
|
|
4167
4183
|
}, ii = function(u, l, x, m) {
|
|
4168
4184
|
return I({}, u, {
|
|
4169
|
-
vendor:
|
|
4170
|
-
model:
|
|
4171
|
-
os:
|
|
4172
|
-
osVersion:
|
|
4173
|
-
ua:
|
|
4185
|
+
vendor: Y(l.vendor),
|
|
4186
|
+
model: Y(l.model),
|
|
4187
|
+
os: Y(x.name),
|
|
4188
|
+
osVersion: Y(x.version),
|
|
4189
|
+
ua: Y(m)
|
|
4174
4190
|
});
|
|
4175
4191
|
}, Be = function(u, l, x, m) {
|
|
4176
4192
|
return {
|
|
4177
4193
|
isSmartTV: u,
|
|
4178
|
-
engineName:
|
|
4179
|
-
engineVersion:
|
|
4180
|
-
osName:
|
|
4181
|
-
osVersion:
|
|
4182
|
-
userAgent:
|
|
4194
|
+
engineName: Y(l.name),
|
|
4195
|
+
engineVersion: Y(l.version),
|
|
4196
|
+
osName: Y(x.name),
|
|
4197
|
+
osVersion: Y(x.version),
|
|
4198
|
+
userAgent: Y(m)
|
|
4183
4199
|
};
|
|
4184
4200
|
}, gi = function(u, l, x, m) {
|
|
4185
4201
|
return {
|
|
4186
4202
|
isConsole: u,
|
|
4187
|
-
engineName:
|
|
4188
|
-
engineVersion:
|
|
4189
|
-
osName:
|
|
4190
|
-
osVersion:
|
|
4191
|
-
userAgent:
|
|
4203
|
+
engineName: Y(l.name),
|
|
4204
|
+
engineVersion: Y(l.version),
|
|
4205
|
+
osName: Y(x.name),
|
|
4206
|
+
osVersion: Y(x.version),
|
|
4207
|
+
userAgent: Y(m)
|
|
4192
4208
|
};
|
|
4193
4209
|
}, Mi = function(u, l, x, m) {
|
|
4194
4210
|
return {
|
|
4195
4211
|
isWearable: u,
|
|
4196
|
-
engineName:
|
|
4197
|
-
engineVersion:
|
|
4198
|
-
osName:
|
|
4199
|
-
osVersion:
|
|
4200
|
-
userAgent:
|
|
4212
|
+
engineName: Y(l.name),
|
|
4213
|
+
engineVersion: Y(l.version),
|
|
4214
|
+
osName: Y(x.name),
|
|
4215
|
+
osVersion: Y(x.version),
|
|
4216
|
+
userAgent: Y(m)
|
|
4201
4217
|
};
|
|
4202
4218
|
}, Oi = function(u, l, x, m, te) {
|
|
4203
4219
|
return {
|
|
4204
4220
|
isEmbedded: u,
|
|
4205
|
-
vendor:
|
|
4206
|
-
model:
|
|
4207
|
-
engineName:
|
|
4208
|
-
engineVersion:
|
|
4209
|
-
osName:
|
|
4210
|
-
osVersion:
|
|
4211
|
-
userAgent:
|
|
4221
|
+
vendor: Y(l.vendor),
|
|
4222
|
+
model: Y(l.model),
|
|
4223
|
+
engineName: Y(x.name),
|
|
4224
|
+
engineVersion: Y(x.version),
|
|
4225
|
+
osName: Y(m.name),
|
|
4226
|
+
osVersion: Y(m.version),
|
|
4227
|
+
userAgent: Y(te)
|
|
4212
4228
|
};
|
|
4213
4229
|
};
|
|
4214
4230
|
function di(f) {
|
|
4215
|
-
var u = f ?
|
|
4216
|
-
if (
|
|
4217
|
-
return
|
|
4231
|
+
var u = f ? M(f) : y, l = u.device, x = u.browser, m = u.engine, te = u.os, Oe = u.ua, ke = he(l.type), et = ke.isBrowser, fs = ke.isMobile, As = ke.isTablet, pr = ke.isSmartTV, _r = ke.isConsole, br = ke.isWearable, Sr = ke.isEmbedded;
|
|
4232
|
+
if (et)
|
|
4233
|
+
return Je(et, x, m, te, Oe);
|
|
4218
4234
|
if (pr)
|
|
4219
4235
|
return Be(pr, m, te, Oe);
|
|
4220
4236
|
if (_r)
|
|
@@ -4238,10 +4254,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4238
4254
|
}, ui = function(u) {
|
|
4239
4255
|
var l = u.type;
|
|
4240
4256
|
return l === le.SmartTv;
|
|
4241
|
-
},
|
|
4257
|
+
}, $e = function(u) {
|
|
4242
4258
|
var l = u.type;
|
|
4243
4259
|
return l === le.Browser;
|
|
4244
|
-
},
|
|
4260
|
+
}, c = function(u) {
|
|
4245
4261
|
var l = u.type;
|
|
4246
4262
|
return l === le.Wearable;
|
|
4247
4263
|
}, T = function(u) {
|
|
@@ -4252,123 +4268,123 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4252
4268
|
return l === le.Embedded;
|
|
4253
4269
|
}, v = function(u) {
|
|
4254
4270
|
var l = u.vendor;
|
|
4255
|
-
return
|
|
4271
|
+
return Y(l);
|
|
4256
4272
|
}, b = function(u) {
|
|
4257
4273
|
var l = u.model;
|
|
4258
|
-
return
|
|
4274
|
+
return Y(l);
|
|
4259
4275
|
}, S = function(u) {
|
|
4260
4276
|
var l = u.type;
|
|
4261
|
-
return
|
|
4262
|
-
},
|
|
4277
|
+
return Y(l, "browser");
|
|
4278
|
+
}, P = function(u) {
|
|
4263
4279
|
var l = u.name;
|
|
4264
4280
|
return l === ge.Android;
|
|
4265
|
-
},
|
|
4281
|
+
}, X = function(u) {
|
|
4266
4282
|
var l = u.name;
|
|
4267
4283
|
return l === ge.Windows;
|
|
4268
|
-
},
|
|
4284
|
+
}, F = function(u) {
|
|
4269
4285
|
var l = u.name;
|
|
4270
4286
|
return l === ge.MAC_OS;
|
|
4271
|
-
},
|
|
4287
|
+
}, ae = function(u) {
|
|
4272
4288
|
var l = u.name;
|
|
4273
4289
|
return l === ge.WindowsPhone;
|
|
4274
4290
|
}, Se = function(u) {
|
|
4275
4291
|
var l = u.name;
|
|
4276
4292
|
return l === ge.IOS;
|
|
4277
|
-
},
|
|
4293
|
+
}, B = function(u) {
|
|
4278
4294
|
var l = u.version;
|
|
4279
|
-
return
|
|
4280
|
-
},
|
|
4295
|
+
return Y(l);
|
|
4296
|
+
}, K = function(u) {
|
|
4281
4297
|
var l = u.name;
|
|
4282
|
-
return
|
|
4283
|
-
},
|
|
4298
|
+
return Y(l);
|
|
4299
|
+
}, R = function(u) {
|
|
4284
4300
|
var l = u.name;
|
|
4285
|
-
return l ===
|
|
4301
|
+
return l === Z.Chrome;
|
|
4286
4302
|
}, Me = function(u) {
|
|
4287
4303
|
var l = u.name;
|
|
4288
|
-
return l ===
|
|
4304
|
+
return l === Z.Firefox;
|
|
4289
4305
|
}, Le = function(u) {
|
|
4290
4306
|
var l = u.name;
|
|
4291
|
-
return l ===
|
|
4307
|
+
return l === Z.Chromium;
|
|
4292
4308
|
}, we = function(u) {
|
|
4293
4309
|
var l = u.name;
|
|
4294
|
-
return l ===
|
|
4295
|
-
},
|
|
4310
|
+
return l === Z.Edge;
|
|
4311
|
+
}, se = function(u) {
|
|
4296
4312
|
var l = u.name;
|
|
4297
|
-
return l ===
|
|
4298
|
-
},
|
|
4313
|
+
return l === Z.Yandex;
|
|
4314
|
+
}, V = function(u) {
|
|
4299
4315
|
var l = u.name;
|
|
4300
|
-
return l ===
|
|
4316
|
+
return l === Z.Safari || l === Z.MobileSafari;
|
|
4301
4317
|
}, Ye = function(u) {
|
|
4302
4318
|
var l = u.name;
|
|
4303
|
-
return l ===
|
|
4319
|
+
return l === Z.MobileSafari;
|
|
4304
4320
|
}, Ei = function(u) {
|
|
4305
4321
|
var l = u.name;
|
|
4306
|
-
return l ===
|
|
4307
|
-
},
|
|
4322
|
+
return l === Z.Opera;
|
|
4323
|
+
}, ki = function(u) {
|
|
4308
4324
|
var l = u.name;
|
|
4309
|
-
return l ===
|
|
4325
|
+
return l === Z.InternetExplorer || l === Z.Ie;
|
|
4310
4326
|
}, or = function(u) {
|
|
4311
4327
|
var l = u.name;
|
|
4312
|
-
return l ===
|
|
4328
|
+
return l === Z.MIUI;
|
|
4313
4329
|
}, sr = function(u) {
|
|
4314
4330
|
var l = u.name;
|
|
4315
|
-
return l ===
|
|
4331
|
+
return l === Z.SamsungBrowser;
|
|
4316
4332
|
}, Mr = function(u) {
|
|
4317
4333
|
var l = u.version;
|
|
4318
|
-
return
|
|
4334
|
+
return Y(l);
|
|
4319
4335
|
}, ar = function(u) {
|
|
4320
4336
|
var l = u.major;
|
|
4321
|
-
return
|
|
4337
|
+
return Y(l);
|
|
4322
4338
|
}, ur = function(u) {
|
|
4323
4339
|
var l = u.name;
|
|
4324
|
-
return
|
|
4340
|
+
return Y(l);
|
|
4325
4341
|
}, lr = function(u) {
|
|
4326
4342
|
var l = u.name;
|
|
4327
|
-
return
|
|
4343
|
+
return Y(l);
|
|
4328
4344
|
}, cr = function(u) {
|
|
4329
4345
|
var l = u.version;
|
|
4330
|
-
return
|
|
4346
|
+
return Y(l);
|
|
4331
4347
|
}, gr = function() {
|
|
4332
|
-
var u =
|
|
4348
|
+
var u = oe(), l = u && u.userAgent && u.userAgent.toLowerCase();
|
|
4333
4349
|
return typeof l == "string" ? /electron/.test(l) : !1;
|
|
4334
4350
|
}, hi = function(u) {
|
|
4335
4351
|
return typeof u == "string" && u.indexOf("Edg/") !== -1;
|
|
4336
4352
|
}, dr = function() {
|
|
4337
|
-
var u =
|
|
4353
|
+
var u = oe();
|
|
4338
4354
|
return u && (/iPad|iPhone|iPod/.test(u.platform) || u.platform === "MacIntel" && u.maxTouchPoints > 1) && !window.MSStream;
|
|
4339
|
-
},
|
|
4355
|
+
}, Xe = function() {
|
|
4340
4356
|
return Ve("iPad");
|
|
4341
4357
|
}, Nr = function() {
|
|
4342
4358
|
return Ve("iPhone");
|
|
4343
4359
|
}, Dr = function() {
|
|
4344
4360
|
return Ve("iPod");
|
|
4345
4361
|
}, Ir = function(u) {
|
|
4346
|
-
return
|
|
4362
|
+
return Y(u);
|
|
4347
4363
|
};
|
|
4348
4364
|
function jr(f) {
|
|
4349
4365
|
var u = f || y, l = u.device, x = u.browser, m = u.os, te = u.engine, Oe = u.ua;
|
|
4350
4366
|
return {
|
|
4351
4367
|
isSmartTV: ui(l),
|
|
4352
4368
|
isConsole: T(l),
|
|
4353
|
-
isWearable:
|
|
4369
|
+
isWearable: c(l),
|
|
4354
4370
|
isEmbedded: E(l),
|
|
4355
|
-
isMobileSafari: Ye(x) ||
|
|
4371
|
+
isMobileSafari: Ye(x) || Xe(),
|
|
4356
4372
|
isChromium: Le(x),
|
|
4357
|
-
isMobile: xi(l) ||
|
|
4373
|
+
isMobile: xi(l) || Xe(),
|
|
4358
4374
|
isMobileOnly: ai(l),
|
|
4359
|
-
isTablet: Ni(l) ||
|
|
4360
|
-
isBrowser:
|
|
4361
|
-
isDesktop:
|
|
4362
|
-
isAndroid:
|
|
4363
|
-
isWinPhone:
|
|
4364
|
-
isIOS: Se(m) ||
|
|
4365
|
-
isChrome:
|
|
4375
|
+
isTablet: Ni(l) || Xe(),
|
|
4376
|
+
isBrowser: $e(l),
|
|
4377
|
+
isDesktop: $e(l),
|
|
4378
|
+
isAndroid: P(m),
|
|
4379
|
+
isWinPhone: ae(m),
|
|
4380
|
+
isIOS: Se(m) || Xe(),
|
|
4381
|
+
isChrome: R(x),
|
|
4366
4382
|
isFirefox: Me(x),
|
|
4367
|
-
isSafari:
|
|
4383
|
+
isSafari: V(x),
|
|
4368
4384
|
isOpera: Ei(x),
|
|
4369
|
-
isIE:
|
|
4370
|
-
osVersion:
|
|
4371
|
-
osName:
|
|
4385
|
+
isIE: ki(x),
|
|
4386
|
+
osVersion: B(m),
|
|
4387
|
+
osName: K(m),
|
|
4372
4388
|
fullBrowserVersion: Mr(x),
|
|
4373
4389
|
browserVersion: ar(x),
|
|
4374
4390
|
browserName: ur(x),
|
|
@@ -4378,27 +4394,27 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4378
4394
|
engineVersion: cr(te),
|
|
4379
4395
|
getUA: Ir(Oe),
|
|
4380
4396
|
isEdge: we(x) || hi(Oe),
|
|
4381
|
-
isYandex:
|
|
4397
|
+
isYandex: se(x),
|
|
4382
4398
|
deviceType: S(l),
|
|
4383
4399
|
isIOS13: dr(),
|
|
4384
|
-
isIPad13:
|
|
4400
|
+
isIPad13: Xe(),
|
|
4385
4401
|
isIPhone13: Nr(),
|
|
4386
4402
|
isIPod13: Dr(),
|
|
4387
4403
|
isElectron: gr(),
|
|
4388
4404
|
isEdgeChromium: hi(Oe),
|
|
4389
4405
|
isLegacyEdge: we(x) && !hi(Oe),
|
|
4390
|
-
isWindows:
|
|
4391
|
-
isMacOs:
|
|
4406
|
+
isWindows: X(m),
|
|
4407
|
+
isMacOs: F(m),
|
|
4392
4408
|
isMIUI: or(x),
|
|
4393
4409
|
isSamsungBrowser: sr(x)
|
|
4394
4410
|
};
|
|
4395
4411
|
}
|
|
4396
|
-
var yr = ui(
|
|
4412
|
+
var yr = ui(a), fr = T(a), Ar = c(a), Eo = E(a), ho = Ye(o) || Xe(), mo = Le(o), qi = xi(a) || Xe(), Tr = ai(a), zr = Ni(a) || Xe(), Or = $e(a), wo = $e(a), xr = P(j), Er = ae(j), hr = Se(j) || Xe(), po = R(o), _o = Me(o), bo = V(o), So = Ei(o), mr = ki(o), Co = B(j), vo = K(j), Lo = Mr(o), ko = ar(o), Uo = ur(o), Qo = v(a), Yo = b(a), Po = lr(D), Ro = cr(D), Fo = Ir(A), Vo = we(o) || hi(A), Bo = se(o), Wo = S(a), Zo = dr(), Ho = Xe(), Go = Nr(), Jo = Dr(), $o = gr(), Xo = hi(A), Ko = we(o) && !hi(A), qo = X(j), es = F(j), is = or(o), ts = sr(o), rs = function(u) {
|
|
4397
4413
|
if (!u || typeof u != "string") {
|
|
4398
4414
|
console.error("No valid user agent string was provided");
|
|
4399
4415
|
return;
|
|
4400
4416
|
}
|
|
4401
|
-
var l =
|
|
4417
|
+
var l = M(u), x = l.device, m = l.browser, te = l.os, Oe = l.engine, ke = l.ua;
|
|
4402
4418
|
return jr({
|
|
4403
4419
|
device: x,
|
|
4404
4420
|
browser: m,
|
|
@@ -4407,57 +4423,57 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4407
4423
|
ua: ke
|
|
4408
4424
|
});
|
|
4409
4425
|
}, ns = function(u) {
|
|
4410
|
-
var l = u.renderWithFragment, x = u.children, m =
|
|
4426
|
+
var l = u.renderWithFragment, x = u.children, m = Q(u, ["renderWithFragment", "children"]);
|
|
4411
4427
|
return xr ? l ? t.createElement(i.Fragment, null, x) : t.createElement("div", m, x) : null;
|
|
4412
4428
|
}, os = function(u) {
|
|
4413
|
-
var l = u.renderWithFragment, x = u.children, m =
|
|
4429
|
+
var l = u.renderWithFragment, x = u.children, m = Q(u, ["renderWithFragment", "children"]);
|
|
4414
4430
|
return Or ? l ? t.createElement(i.Fragment, null, x) : t.createElement("div", m, x) : null;
|
|
4415
4431
|
}, ss = function(u) {
|
|
4416
|
-
var l = u.renderWithFragment, x = u.children, m =
|
|
4432
|
+
var l = u.renderWithFragment, x = u.children, m = Q(u, ["renderWithFragment", "children"]);
|
|
4417
4433
|
return mr ? l ? t.createElement(i.Fragment, null, x) : t.createElement("div", m, x) : null;
|
|
4418
4434
|
}, Ms = function(u) {
|
|
4419
|
-
var l = u.renderWithFragment, x = u.children, m =
|
|
4435
|
+
var l = u.renderWithFragment, x = u.children, m = Q(u, ["renderWithFragment", "children"]);
|
|
4420
4436
|
return hr ? l ? t.createElement(i.Fragment, null, x) : t.createElement("div", m, x) : null;
|
|
4421
4437
|
}, as = function(u) {
|
|
4422
|
-
var l = u.renderWithFragment, x = u.children, m =
|
|
4423
|
-
return
|
|
4438
|
+
var l = u.renderWithFragment, x = u.children, m = Q(u, ["renderWithFragment", "children"]);
|
|
4439
|
+
return qi ? l ? t.createElement(i.Fragment, null, x) : t.createElement("div", m, x) : null;
|
|
4424
4440
|
}, us = function(u) {
|
|
4425
|
-
var l = u.renderWithFragment, x = u.children, m =
|
|
4441
|
+
var l = u.renderWithFragment, x = u.children, m = Q(u, ["renderWithFragment", "children"]);
|
|
4426
4442
|
return zr ? l ? t.createElement(i.Fragment, null, x) : t.createElement("div", m, x) : null;
|
|
4427
4443
|
}, ls = function(u) {
|
|
4428
|
-
var l = u.renderWithFragment, x = u.children, m =
|
|
4444
|
+
var l = u.renderWithFragment, x = u.children, m = Q(u, ["renderWithFragment", "children"]);
|
|
4429
4445
|
return Er ? l ? t.createElement(i.Fragment, null, x) : t.createElement("div", m, x) : null;
|
|
4430
4446
|
}, cs = function(u) {
|
|
4431
4447
|
var l = u.renderWithFragment, x = u.children;
|
|
4432
4448
|
u.viewClassName, u.style;
|
|
4433
|
-
var m =
|
|
4449
|
+
var m = Q(u, ["renderWithFragment", "children", "viewClassName", "style"]);
|
|
4434
4450
|
return Tr ? l ? t.createElement(i.Fragment, null, x) : t.createElement("div", m, x) : null;
|
|
4435
4451
|
}, gs = function(u) {
|
|
4436
|
-
var l = u.renderWithFragment, x = u.children, m =
|
|
4452
|
+
var l = u.renderWithFragment, x = u.children, m = Q(u, ["renderWithFragment", "children"]);
|
|
4437
4453
|
return yr ? l ? t.createElement(i.Fragment, null, x) : t.createElement("div", m, x) : null;
|
|
4438
4454
|
}, ds = function(u) {
|
|
4439
|
-
var l = u.renderWithFragment, x = u.children, m =
|
|
4455
|
+
var l = u.renderWithFragment, x = u.children, m = Q(u, ["renderWithFragment", "children"]);
|
|
4440
4456
|
return fr ? l ? t.createElement(i.Fragment, null, x) : t.createElement("div", m, x) : null;
|
|
4441
4457
|
}, Ns = function(u) {
|
|
4442
|
-
var l = u.renderWithFragment, x = u.children, m =
|
|
4458
|
+
var l = u.renderWithFragment, x = u.children, m = Q(u, ["renderWithFragment", "children"]);
|
|
4443
4459
|
return Ar ? l ? t.createElement(i.Fragment, null, x) : t.createElement("div", m, x) : null;
|
|
4444
4460
|
}, Ds = function(u) {
|
|
4445
4461
|
var l = u.renderWithFragment, x = u.children;
|
|
4446
4462
|
u.viewClassName, u.style;
|
|
4447
|
-
var m = u.condition, te =
|
|
4463
|
+
var m = u.condition, te = Q(u, ["renderWithFragment", "children", "viewClassName", "style", "condition"]);
|
|
4448
4464
|
return m ? l ? t.createElement(i.Fragment, null, x) : t.createElement("div", te, x) : null;
|
|
4449
4465
|
};
|
|
4450
4466
|
function Is(f) {
|
|
4451
4467
|
return /* @__PURE__ */ (function(u) {
|
|
4452
|
-
|
|
4468
|
+
ee(l, u);
|
|
4453
4469
|
function l(x) {
|
|
4454
4470
|
var m;
|
|
4455
|
-
return w(this, l), m =
|
|
4471
|
+
return w(this, l), m = k(this, ue(l).call(this, x)), m.isEventListenerAdded = !1, m.handleOrientationChange = m.handleOrientationChange.bind(G(m)), m.onOrientationChange = m.onOrientationChange.bind(G(m)), m.onPageLoad = m.onPageLoad.bind(G(m)), m.state = {
|
|
4456
4472
|
isLandscape: !1,
|
|
4457
4473
|
isPortrait: !1
|
|
4458
4474
|
}, m;
|
|
4459
4475
|
}
|
|
4460
|
-
return
|
|
4476
|
+
return p(l, [{
|
|
4461
4477
|
key: "handleOrientationChange",
|
|
4462
4478
|
value: function() {
|
|
4463
4479
|
this.isEventListenerAdded || (this.isEventListenerAdded = !0);
|
|
@@ -4480,7 +4496,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4480
4496
|
}, {
|
|
4481
4497
|
key: "componentDidMount",
|
|
4482
4498
|
value: function() {
|
|
4483
|
-
(typeof window == "undefined" ? "undefined" :
|
|
4499
|
+
(typeof window == "undefined" ? "undefined" : O(window)) !== void 0 && qi && (this.isEventListenerAdded ? window.removeEventListener("load", this.onPageLoad, !1) : (this.handleOrientationChange(), window.addEventListener("load", this.onPageLoad, !1)), window.addEventListener("resize", this.onOrientationChange, !1));
|
|
4484
4500
|
}
|
|
4485
4501
|
}, {
|
|
4486
4502
|
key: "componentWillUnmount",
|
|
@@ -4490,7 +4506,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4490
4506
|
}, {
|
|
4491
4507
|
key: "render",
|
|
4492
4508
|
value: function() {
|
|
4493
|
-
return t.createElement(f,
|
|
4509
|
+
return t.createElement(f, U({}, this.props, {
|
|
4494
4510
|
isLandscape: this.state.isLandscape,
|
|
4495
4511
|
isPortrait: this.state.isPortrait
|
|
4496
4512
|
}));
|
|
@@ -4506,7 +4522,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4506
4522
|
isLandscape: te === 90,
|
|
4507
4523
|
orientation: te === 0 ? "portrait" : "landscape"
|
|
4508
4524
|
};
|
|
4509
|
-
}), u =
|
|
4525
|
+
}), u = J(f, 2), l = u[0], x = u[1], m = i.useCallback(function() {
|
|
4510
4526
|
var te = window.innerWidth > window.innerHeight ? 90 : 0, Oe = {
|
|
4511
4527
|
isPortrait: te === 0,
|
|
4512
4528
|
isLandscape: te === 90,
|
|
@@ -4515,20 +4531,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4515
4531
|
l.orientation !== Oe.orientation && x(Oe);
|
|
4516
4532
|
}, [l.orientation]);
|
|
4517
4533
|
return i.useEffect(function() {
|
|
4518
|
-
return (typeof window == "undefined" ? "undefined" :
|
|
4534
|
+
return (typeof window == "undefined" ? "undefined" : O(window)) !== void 0 && qi && (m(), window.addEventListener("load", m, !1), window.addEventListener("resize", m, !1)), function() {
|
|
4519
4535
|
window.removeEventListener("resize", m, !1), window.removeEventListener("load", m, !1);
|
|
4520
4536
|
};
|
|
4521
4537
|
}, [m]), l;
|
|
4522
4538
|
}
|
|
4523
4539
|
function wr(f) {
|
|
4524
4540
|
var u = f || window.navigator.userAgent;
|
|
4525
|
-
return
|
|
4541
|
+
return M(u);
|
|
4526
4542
|
}
|
|
4527
4543
|
function ys(f) {
|
|
4528
4544
|
var u = f || window.navigator.userAgent, l = wr(u), x = jr(l);
|
|
4529
4545
|
return [x, l];
|
|
4530
4546
|
}
|
|
4531
|
-
return L.AndroidView = ns, L.BrowserTypes =
|
|
4547
|
+
return L.AndroidView = ns, L.BrowserTypes = Z, L.BrowserView = os, L.ConsoleView = ds, L.CustomView = Ds, L.IEView = ss, L.IOSView = Ms, L.MobileOnlyView = cs, L.MobileView = as, L.OsTypes = ge, L.SmartTVView = gs, L.TabletView = us, L.WearableView = Ns, L.WinPhoneView = ls, L.browserName = Uo, L.browserVersion = ko, L.deviceDetect = di, L.deviceType = Wo, L.engineName = Po, L.engineVersion = Ro, L.fullBrowserVersion = Lo, L.getSelectorsByUserAgent = rs, L.getUA = Fo, L.isAndroid = xr, L.isBrowser = Or, L.isChrome = po, L.isChromium = mo, L.isConsole = fr, L.isDesktop = wo, L.isEdge = Vo, L.isEdgeChromium = Xo, L.isElectron = $o, L.isEmbedded = Eo, L.isFirefox = _o, L.isIE = mr, L.isIOS = hr, L.isIOS13 = Zo, L.isIPad13 = Ho, L.isIPhone13 = Go, L.isIPod13 = Jo, L.isLegacyEdge = Ko, L.isMIUI = is, L.isMacOs = es, L.isMobile = qi, L.isMobileOnly = Tr, L.isMobileSafari = ho, L.isOpera = So, L.isSafari = bo, L.isSamsungBrowser = ts, L.isSmartTV = yr, L.isTablet = zr, L.isWearable = Ar, L.isWinPhone = Er, L.isWindows = qo, L.isYandex = Bo, L.mobileModel = Yo, L.mobileVendor = Qo, L.osName = vo, L.osVersion = Co, L.parseUserAgent = M, L.setUserAgent = ve, L.useDeviceData = wr, L.useDeviceSelectors = ys, L.useMobileOrientation = js, L.withOrientationChange = Is, L;
|
|
4532
4548
|
}
|
|
4533
4549
|
var Ii = la();
|
|
4534
4550
|
const ca = {
|
|
@@ -4559,14 +4575,14 @@ const ca = {
|
|
|
4559
4575
|
buttons: r,
|
|
4560
4576
|
selectionLimit: n
|
|
4561
4577
|
}) => {
|
|
4562
|
-
var A,
|
|
4563
|
-
const { perform: o } = zi(), s =
|
|
4578
|
+
var A, g;
|
|
4579
|
+
const { perform: o } = zi(), s = Ge(null), a = typeof n == "number" && (n === 0 || n > 1), D = (M) => je(null, null, function* () {
|
|
4564
4580
|
var N;
|
|
4565
|
-
const y = Array.from((N =
|
|
4581
|
+
const y = Array.from((N = M.currentTarget.files) != null ? N : []);
|
|
4566
4582
|
if (y.length)
|
|
4567
4583
|
try {
|
|
4568
|
-
const
|
|
4569
|
-
y.map((w) =>
|
|
4584
|
+
const O = (yield Promise.allSettled(
|
|
4585
|
+
y.map((w) => je(null, null, function* () {
|
|
4570
4586
|
return {
|
|
4571
4587
|
content: yield Qn(w),
|
|
4572
4588
|
metadata: {
|
|
@@ -4583,20 +4599,20 @@ const ca = {
|
|
|
4583
4599
|
o({
|
|
4584
4600
|
cancel: !1,
|
|
4585
4601
|
permissionDenied: !1,
|
|
4586
|
-
files:
|
|
4602
|
+
files: O
|
|
4587
4603
|
});
|
|
4588
4604
|
} catch (I) {
|
|
4589
4605
|
console.error("Error: ", I);
|
|
4590
4606
|
}
|
|
4591
|
-
}), j = () =>
|
|
4592
|
-
var
|
|
4593
|
-
(
|
|
4607
|
+
}), j = () => je(null, null, function* () {
|
|
4608
|
+
var M;
|
|
4609
|
+
(M = s.current) == null || M.showPicker();
|
|
4594
4610
|
});
|
|
4595
4611
|
return Fe(() => {
|
|
4596
|
-
|
|
4612
|
+
je(null, null, function* () {
|
|
4597
4613
|
if (Ii.isDesktop) return;
|
|
4598
|
-
const
|
|
4599
|
-
(
|
|
4614
|
+
const M = yield Bs();
|
|
4615
|
+
(M === "denied" || M === "error") && o({
|
|
4600
4616
|
cancel: !1,
|
|
4601
4617
|
permissionDenied: !0,
|
|
4602
4618
|
files: []
|
|
@@ -4605,27 +4621,27 @@ const ca = {
|
|
|
4605
4621
|
}, []), /* @__PURE__ */ d(ci, { header: e, footer: i, backgroundColor: t, children: /* @__PURE__ */ d(be, { children: /* @__PURE__ */ d(
|
|
4606
4622
|
"div",
|
|
4607
4623
|
{
|
|
4608
|
-
style:
|
|
4624
|
+
style: H(z({}, da), {
|
|
4609
4625
|
justifyContent: "center"
|
|
4610
4626
|
}),
|
|
4611
4627
|
children: [
|
|
4612
4628
|
/* @__PURE__ */ d(
|
|
4613
4629
|
"input",
|
|
4614
|
-
|
|
4630
|
+
H(z({
|
|
4615
4631
|
style: ca,
|
|
4616
4632
|
ref: s,
|
|
4617
4633
|
type: "file",
|
|
4618
4634
|
accept: "image/*",
|
|
4619
4635
|
capture: "user"
|
|
4620
|
-
},
|
|
4636
|
+
}, a ? { multiple: !0 } : {}), {
|
|
4621
4637
|
onInput: D
|
|
4622
4638
|
})
|
|
4623
4639
|
),
|
|
4624
|
-
/* @__PURE__ */ d("button", { style: ga, onClick: j, children: /* @__PURE__ */ d(_e, { imageId: (
|
|
4640
|
+
/* @__PURE__ */ d("button", { style: ga, onClick: j, children: /* @__PURE__ */ d(_e, { imageId: (g = (A = r == null ? void 0 : r[0]) == null ? void 0 : A.image) == null ? void 0 : g.imageId }) })
|
|
4625
4641
|
]
|
|
4626
4642
|
}
|
|
4627
4643
|
) }) });
|
|
4628
|
-
}, Ot = () =>
|
|
4644
|
+
}, Ot = () => je(null, null, function* () {
|
|
4629
4645
|
var e;
|
|
4630
4646
|
try {
|
|
4631
4647
|
const i = yield navigator.permissions.query({ name: "geolocation" });
|
|
@@ -4633,13 +4649,13 @@ const ca = {
|
|
|
4633
4649
|
} catch (i) {
|
|
4634
4650
|
return "unknown";
|
|
4635
4651
|
}
|
|
4636
|
-
}), Da = () =>
|
|
4652
|
+
}), Da = () => je(null, null, function* () {
|
|
4637
4653
|
try {
|
|
4638
4654
|
return yield navigator.permissions.query({ name: "geolocation" });
|
|
4639
4655
|
} catch (e) {
|
|
4640
4656
|
return null;
|
|
4641
4657
|
}
|
|
4642
|
-
}),
|
|
4658
|
+
}), Qi = (e) => je(null, null, function* () {
|
|
4643
4659
|
return new Promise((i) => {
|
|
4644
4660
|
if (!navigator.geolocation)
|
|
4645
4661
|
return i({
|
|
@@ -4760,47 +4776,48 @@ const ca = {
|
|
|
4760
4776
|
description: n,
|
|
4761
4777
|
buttons: o,
|
|
4762
4778
|
backgroundColor: s,
|
|
4763
|
-
popups:
|
|
4764
|
-
askEveryTime: D
|
|
4779
|
+
popups: a,
|
|
4780
|
+
askEveryTime: D,
|
|
4781
|
+
getLocationTimeout: j
|
|
4765
4782
|
}) => {
|
|
4766
|
-
var
|
|
4767
|
-
const
|
|
4768
|
-
var
|
|
4769
|
-
(
|
|
4770
|
-
},
|
|
4771
|
-
var
|
|
4772
|
-
(
|
|
4773
|
-
}, { devSettings:
|
|
4783
|
+
var W, ne;
|
|
4784
|
+
const A = Nt.FORM, { perform: g } = zi(), { setIsProcessingCallback: M } = Us(), [y, N] = pe(!1), I = () => {
|
|
4785
|
+
var Q;
|
|
4786
|
+
(Q = w == null ? void 0 : w.popups) != null && Q.system_restricted || N(!0);
|
|
4787
|
+
}, O = () => {
|
|
4788
|
+
var Q;
|
|
4789
|
+
(Q = w == null ? void 0 : w.popups) != null && Q.system_restricted || N(!1);
|
|
4790
|
+
}, { devSettings: w } = ks(), _ = !!((ne = (W = w == null ? void 0 : w.popups) == null ? void 0 : W.system_restricted) != null && ne.isOpen);
|
|
4774
4791
|
Fe(() => {
|
|
4775
|
-
|
|
4776
|
-
}, [
|
|
4777
|
-
const
|
|
4792
|
+
w && N(_);
|
|
4793
|
+
}, [_, w]);
|
|
4794
|
+
const p = {
|
|
4778
4795
|
enableHighAccuracy: !0,
|
|
4779
|
-
timeout: 15e3,
|
|
4796
|
+
timeout: typeof j == "number" && j > 0 ? j * 1e3 : 15e3,
|
|
4780
4797
|
maximumAge: 6e4
|
|
4781
|
-
}, h =
|
|
4798
|
+
}, h = a == null ? void 0 : a.find((Q) => Q.reason === Ps.SYSTEM_RESTRICTED);
|
|
4782
4799
|
li(() => {
|
|
4783
|
-
Ii.isSafari || D ||
|
|
4800
|
+
Ii.isSafari || D || M == null || M(!0);
|
|
4784
4801
|
}, []), Fe(() => {
|
|
4785
4802
|
if (Ii.isSafari || D) return;
|
|
4786
|
-
let
|
|
4787
|
-
return
|
|
4803
|
+
let Q = !0;
|
|
4804
|
+
return je(null, null, function* () {
|
|
4788
4805
|
if ((yield Ot()) !== "granted") {
|
|
4789
|
-
|
|
4806
|
+
M == null || M(!1);
|
|
4790
4807
|
return;
|
|
4791
4808
|
}
|
|
4792
|
-
const
|
|
4793
|
-
|
|
4809
|
+
const k = yield Qi(p);
|
|
4810
|
+
Q && g(k, A);
|
|
4794
4811
|
}), () => {
|
|
4795
|
-
Ii.isSafari || D || (
|
|
4812
|
+
Ii.isSafari || D || (Q = !1);
|
|
4796
4813
|
};
|
|
4797
4814
|
}, []), Fe(() => {
|
|
4798
4815
|
if (Ii.isSafari) return;
|
|
4799
|
-
let
|
|
4800
|
-
return
|
|
4801
|
-
const
|
|
4802
|
-
|
|
4803
|
-
if (
|
|
4816
|
+
let Q = !0, G = null;
|
|
4817
|
+
return je(null, null, function* () {
|
|
4818
|
+
const k = yield Da();
|
|
4819
|
+
k && (G = k, k.onchange = () => je(null, null, function* () {
|
|
4820
|
+
if (k.state === "denied" && (M == null || M(!0), g(
|
|
4804
4821
|
{
|
|
4805
4822
|
location: {
|
|
4806
4823
|
locationState: "application_location_restricted",
|
|
@@ -4809,46 +4826,46 @@ const ca = {
|
|
|
4809
4826
|
error: "Application location services restricted or unavailable"
|
|
4810
4827
|
}
|
|
4811
4828
|
},
|
|
4812
|
-
|
|
4813
|
-
)),
|
|
4814
|
-
|
|
4815
|
-
const
|
|
4816
|
-
if (!
|
|
4817
|
-
|
|
4829
|
+
A
|
|
4830
|
+
)), k.state === "granted") {
|
|
4831
|
+
M == null || M(!0);
|
|
4832
|
+
const J = yield Qi(p);
|
|
4833
|
+
if (!Q) return;
|
|
4834
|
+
g(J, A);
|
|
4818
4835
|
}
|
|
4819
4836
|
}));
|
|
4820
4837
|
}), () => {
|
|
4821
|
-
Ii.isSafari || (
|
|
4838
|
+
Ii.isSafari || (Q = !1, G && (G.onchange = null));
|
|
4822
4839
|
};
|
|
4823
4840
|
}, []);
|
|
4824
|
-
const
|
|
4825
|
-
|
|
4826
|
-
const
|
|
4827
|
-
if (
|
|
4828
|
-
|
|
4841
|
+
const U = (Q) => je(null, null, function* () {
|
|
4842
|
+
Q.preventDefault();
|
|
4843
|
+
const G = yield Ot();
|
|
4844
|
+
if (G === "denied") {
|
|
4845
|
+
I();
|
|
4829
4846
|
return;
|
|
4830
4847
|
}
|
|
4831
|
-
if (
|
|
4832
|
-
const
|
|
4833
|
-
|
|
4848
|
+
if (G === "prompt" && (yield Qi()), G === "granted") {
|
|
4849
|
+
const k = yield Qi(p);
|
|
4850
|
+
g(k, A);
|
|
4834
4851
|
}
|
|
4835
|
-
}),
|
|
4836
|
-
if (
|
|
4837
|
-
|
|
4852
|
+
}), ee = (Q) => je(null, null, function* () {
|
|
4853
|
+
if (Q.preventDefault(), (yield Ot()) === "denied") {
|
|
4854
|
+
I();
|
|
4838
4855
|
return;
|
|
4839
4856
|
}
|
|
4840
|
-
|
|
4841
|
-
const
|
|
4842
|
-
|
|
4843
|
-
}),
|
|
4844
|
-
|
|
4857
|
+
M == null || M(!0);
|
|
4858
|
+
const k = yield Qi(p);
|
|
4859
|
+
g(k, A);
|
|
4860
|
+
}), ue = (Q) => {
|
|
4861
|
+
Q.preventDefault(), O();
|
|
4845
4862
|
};
|
|
4846
4863
|
return /* @__PURE__ */ d(ci, { header: i, footer: t, backgroundColor: s, children: [
|
|
4847
4864
|
/* @__PURE__ */ d("div", { style: Ia, children: [
|
|
4848
4865
|
/* @__PURE__ */ d("div", { style: ja, children: [
|
|
4849
|
-
r && /* @__PURE__ */ d("div", { style: fa, children: /* @__PURE__ */ d(_e,
|
|
4850
|
-
e && /* @__PURE__ */ d("div", { style: Aa, children: /* @__PURE__ */ d(fe,
|
|
4851
|
-
n && /* @__PURE__ */ d("div", { style: Ta, children: /* @__PURE__ */ d(jt,
|
|
4866
|
+
r && /* @__PURE__ */ d("div", { style: fa, children: /* @__PURE__ */ d(_e, z({}, r)) }),
|
|
4867
|
+
e && /* @__PURE__ */ d("div", { style: Aa, children: /* @__PURE__ */ d(fe, z({}, e)) }),
|
|
4868
|
+
n && /* @__PURE__ */ d("div", { style: Ta, children: /* @__PURE__ */ d(jt, z({}, n)) })
|
|
4852
4869
|
] }),
|
|
4853
4870
|
!!(o != null && o.length) && /* @__PURE__ */ d(
|
|
4854
4871
|
"div",
|
|
@@ -4857,39 +4874,39 @@ const ca = {
|
|
|
4857
4874
|
display: "flex",
|
|
4858
4875
|
flexDirection: "column"
|
|
4859
4876
|
},
|
|
4860
|
-
children: o.map((
|
|
4877
|
+
children: o.map((Q, G) => /* @__PURE__ */ d("div", { style: { padding: "5px" }, children: /* @__PURE__ */ d(
|
|
4861
4878
|
ut,
|
|
4862
|
-
|
|
4879
|
+
z(z({
|
|
4863
4880
|
dataTestId: "question-button"
|
|
4864
|
-
},
|
|
4865
|
-
onClick: Ii.isSafari ?
|
|
4881
|
+
}, Q), Q.type === "FORM" ? {
|
|
4882
|
+
onClick: Ii.isSafari ? ee : U
|
|
4866
4883
|
} : {})
|
|
4867
|
-
) },
|
|
4884
|
+
) }, G))
|
|
4868
4885
|
}
|
|
4869
4886
|
)
|
|
4870
4887
|
] }),
|
|
4871
|
-
h &&
|
|
4888
|
+
h && y && /* @__PURE__ */ d(
|
|
4872
4889
|
"div",
|
|
4873
4890
|
{
|
|
4874
4891
|
style: ya,
|
|
4875
|
-
onPointerDown: (
|
|
4876
|
-
|
|
4892
|
+
onPointerDown: (Q) => {
|
|
4893
|
+
Q.preventDefault(), Q.stopPropagation(), O();
|
|
4877
4894
|
},
|
|
4878
4895
|
children: /* @__PURE__ */ d(
|
|
4879
4896
|
"div",
|
|
4880
4897
|
{
|
|
4881
|
-
style:
|
|
4898
|
+
style: H(z({}, za), {
|
|
4882
4899
|
borderRadius: (h == null ? void 0 : h.cornerRadius) || "27px",
|
|
4883
4900
|
backgroundColor: (h == null ? void 0 : h.backgroundColor) || "#ffffff"
|
|
4884
4901
|
}),
|
|
4885
4902
|
children: [
|
|
4886
|
-
/* @__PURE__ */ d("div", { style: Oa, children: /* @__PURE__ */ d(fe,
|
|
4887
|
-
/* @__PURE__ */ d("div", { style: xa, children: /* @__PURE__ */ d("div", { style: Ea, children: /* @__PURE__ */ d(fe,
|
|
4903
|
+
/* @__PURE__ */ d("div", { style: Oa, children: /* @__PURE__ */ d(fe, z({}, z({ fontSize: "24px" }, h.title))) }),
|
|
4904
|
+
/* @__PURE__ */ d("div", { style: xa, children: /* @__PURE__ */ d("div", { style: Ea, children: /* @__PURE__ */ d(fe, z({}, z({ fontSize: "17px" }, h.message))) }) }),
|
|
4888
4905
|
h.actionButton1 && /* @__PURE__ */ d("div", { style: ha, children: /* @__PURE__ */ d(
|
|
4889
4906
|
ut,
|
|
4890
|
-
|
|
4907
|
+
z(z({
|
|
4891
4908
|
dataTestId: "question-button"
|
|
4892
|
-
}, h.actionButton1), h.actionButton1.type === "FORM" ? { onClick:
|
|
4909
|
+
}, h.actionButton1), h.actionButton1.type === "FORM" ? { onClick: ue } : {})
|
|
4893
4910
|
) })
|
|
4894
4911
|
]
|
|
4895
4912
|
}
|
|
@@ -4898,10 +4915,10 @@ const ca = {
|
|
|
4898
4915
|
)
|
|
4899
4916
|
] });
|
|
4900
4917
|
}, yn = (e) => {
|
|
4901
|
-
const { templateId: i, templateLayout: t, dataSource: r, properties: n } = e, { perform:
|
|
4918
|
+
const { templateId: i, templateLayout: t, dataSource: r, properties: n, getLocationTimeout: o } = e, { perform: s } = zi();
|
|
4902
4919
|
if (!i || !t) return /* @__PURE__ */ d(Jr, {});
|
|
4903
|
-
const
|
|
4904
|
-
if (i ===
|
|
4920
|
+
const a = n != null && n.length ? JSON.stringify(n) : "default-key";
|
|
4921
|
+
if (i === Ke.STATUS)
|
|
4905
4922
|
return /* @__PURE__ */ d(
|
|
4906
4923
|
Ks,
|
|
4907
4924
|
{
|
|
@@ -4914,7 +4931,7 @@ const ca = {
|
|
|
4914
4931
|
backgroundColor: t == null ? void 0 : t.backgroundColor
|
|
4915
4932
|
}
|
|
4916
4933
|
);
|
|
4917
|
-
if (i ===
|
|
4934
|
+
if (i === Ke.INFO)
|
|
4918
4935
|
return /* @__PURE__ */ d(
|
|
4919
4936
|
iM,
|
|
4920
4937
|
{
|
|
@@ -4927,7 +4944,7 @@ const ca = {
|
|
|
4927
4944
|
backgroundColor: t == null ? void 0 : t.backgroundColor
|
|
4928
4945
|
}
|
|
4929
4946
|
);
|
|
4930
|
-
if (i ===
|
|
4947
|
+
if (i === Ke.GEOLOCATION)
|
|
4931
4948
|
return /* @__PURE__ */ d(
|
|
4932
4949
|
ma,
|
|
4933
4950
|
{
|
|
@@ -4939,10 +4956,11 @@ const ca = {
|
|
|
4939
4956
|
buttons: t.buttons,
|
|
4940
4957
|
backgroundColor: t == null ? void 0 : t.backgroundColor,
|
|
4941
4958
|
popups: t.popups,
|
|
4942
|
-
askEveryTime: t.askEveryTime
|
|
4959
|
+
askEveryTime: t.askEveryTime,
|
|
4960
|
+
getLocationTimeout: o
|
|
4943
4961
|
}
|
|
4944
4962
|
);
|
|
4945
|
-
if (i ===
|
|
4963
|
+
if (i === Ke.PROGRESS)
|
|
4946
4964
|
return /* @__PURE__ */ d(
|
|
4947
4965
|
Jr,
|
|
4948
4966
|
{
|
|
@@ -4952,7 +4970,7 @@ const ca = {
|
|
|
4952
4970
|
backgroundColor: t == null ? void 0 : t.backgroundColor
|
|
4953
4971
|
}
|
|
4954
4972
|
);
|
|
4955
|
-
if (i ===
|
|
4973
|
+
if (i === Ke.INFO_DETAILS)
|
|
4956
4974
|
return /* @__PURE__ */ d(
|
|
4957
4975
|
sM,
|
|
4958
4976
|
{
|
|
@@ -4964,7 +4982,7 @@ const ca = {
|
|
|
4964
4982
|
backgroundColor: t == null ? void 0 : t.backgroundColor
|
|
4965
4983
|
}
|
|
4966
4984
|
);
|
|
4967
|
-
if (i ===
|
|
4985
|
+
if (i === Ke.CAMERA)
|
|
4968
4986
|
return /* @__PURE__ */ d(
|
|
4969
4987
|
Na,
|
|
4970
4988
|
{
|
|
@@ -4975,7 +4993,7 @@ const ca = {
|
|
|
4975
4993
|
selectionLimit: e == null ? void 0 : e.selectionLimit
|
|
4976
4994
|
}
|
|
4977
4995
|
);
|
|
4978
|
-
if (i ===
|
|
4996
|
+
if (i === Ke.GALLERY)
|
|
4979
4997
|
return /* @__PURE__ */ d(
|
|
4980
4998
|
oa,
|
|
4981
4999
|
{
|
|
@@ -4986,7 +5004,7 @@ const ca = {
|
|
|
4986
5004
|
selectionLimit: e == null ? void 0 : e.selectionLimit
|
|
4987
5005
|
}
|
|
4988
5006
|
);
|
|
4989
|
-
if (
|
|
5007
|
+
if (i === Ke.QUESTIONS)
|
|
4990
5008
|
return /* @__PURE__ */ d(
|
|
4991
5009
|
ia,
|
|
4992
5010
|
{
|
|
@@ -4999,33 +5017,26 @@ const ca = {
|
|
|
4999
5017
|
buttons: t == null ? void 0 : t.buttons,
|
|
5000
5018
|
backgroundColor: t == null ? void 0 : t.backgroundColor
|
|
5001
5019
|
},
|
|
5002
|
-
|
|
5020
|
+
a
|
|
5003
5021
|
);
|
|
5004
|
-
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
message: "No data for questions"
|
|
5008
|
-
});
|
|
5009
|
-
return o(D), null;
|
|
5010
|
-
}
|
|
5011
|
-
const M = new Wi({
|
|
5012
|
-
errorCode: at.DECODING_FAILED,
|
|
5013
|
-
message: "Unsupported step template"
|
|
5022
|
+
const D = new bi({
|
|
5023
|
+
errorCode: Ri.DECODING_FAILED,
|
|
5024
|
+
message: "Unsupported step template id"
|
|
5014
5025
|
});
|
|
5015
|
-
return
|
|
5026
|
+
return s(D), null;
|
|
5016
5027
|
};
|
|
5017
5028
|
let xt = !1;
|
|
5018
5029
|
const _a = ({ children: e }) => /* @__PURE__ */ d(be, { children: [
|
|
5019
5030
|
/* @__PURE__ */ d("style", { children: "#gui-idv-web-c *, #gui-idv-web-c *::before, #gui-idv-web-c *::after {box-sizing: border-box;}" }),
|
|
5020
5031
|
e
|
|
5021
5032
|
] }), fn = ({ children: e }) => /* @__PURE__ */ d("div", { part: "gui-idv", id: "gui-idv-web-c", style: { backgroundColor: "white", height: "100%", width: "100%" }, children: e }), wa = ({ isProcessing: e, moduleProps: i, perform: t, devSettings: r }) => {
|
|
5022
|
-
const { templateId: n, templateLayout: o, dataSource: s, properties:
|
|
5033
|
+
const { templateId: n, templateLayout: o, dataSource: s, properties: a } = i, D = (j, A) => {
|
|
5023
5034
|
t && t(j, A);
|
|
5024
5035
|
};
|
|
5025
|
-
return n ===
|
|
5036
|
+
return n === Ke.QUESTIONS ? /* @__PURE__ */ d(Hr, { perform: D, children: /* @__PURE__ */ d(fn, { children: /* @__PURE__ */ d(
|
|
5026
5037
|
yn,
|
|
5027
5038
|
{
|
|
5028
|
-
properties:
|
|
5039
|
+
properties: a,
|
|
5029
5040
|
dataSource: s,
|
|
5030
5041
|
templateId: n,
|
|
5031
5042
|
templateLayout: o
|
|
@@ -5038,14 +5049,14 @@ const _a = ({ children: e }) => /* @__PURE__ */ d(be, { children: [
|
|
|
5038
5049
|
devSettings: r,
|
|
5039
5050
|
children: /* @__PURE__ */ d(fn, { children: /* @__PURE__ */ d(
|
|
5040
5051
|
yn,
|
|
5041
|
-
|
|
5052
|
+
z(z(z({
|
|
5042
5053
|
templateId: n,
|
|
5043
5054
|
templateLayout: o
|
|
5044
|
-
}, i.backgroundColor ? { backgroundColor: i.backgroundColor } : {}), typeof i.selectionLimit == "number" ? { selectionLimit: i.selectionLimit } : {})
|
|
5055
|
+
}, i.backgroundColor ? { backgroundColor: i.backgroundColor } : {}), typeof i.selectionLimit == "number" ? { selectionLimit: i.selectionLimit } : {}), typeof i.getLocationTimeout == "number" ? { getLocationTimeout: i.getLocationTimeout } : {})
|
|
5045
5056
|
) })
|
|
5046
5057
|
}
|
|
5047
5058
|
);
|
|
5048
|
-
},
|
|
5059
|
+
}, Wi = class Wi extends bs {
|
|
5049
5060
|
constructor() {
|
|
5050
5061
|
super(), this._mounted = !1, this._shadowRoot = this.attachShadow({ mode: "open" }), this.props = null;
|
|
5051
5062
|
}
|
|
@@ -5115,15 +5126,15 @@ const _a = ({ children: e }) => /* @__PURE__ */ d(be, { children: [
|
|
|
5115
5126
|
xt = !1;
|
|
5116
5127
|
}
|
|
5117
5128
|
};
|
|
5118
|
-
|
|
5119
|
-
let vt =
|
|
5120
|
-
Ss(
|
|
5129
|
+
Wi.displayName = at, Wi.getSupportedTemplates = () => Object.values(Ke), Wi.getIdentifier = () => at;
|
|
5130
|
+
let vt = Wi;
|
|
5131
|
+
Ss(at, vt);
|
|
5121
5132
|
export {
|
|
5122
5133
|
vt as GuiIdv,
|
|
5123
5134
|
wa as GuiIdvReactComponent,
|
|
5124
|
-
|
|
5135
|
+
Ke as GuiIdvSteps,
|
|
5125
5136
|
_a as GuiIdvStyleInjectionWrapper,
|
|
5126
|
-
|
|
5137
|
+
Ri as GuiModuleError,
|
|
5127
5138
|
ce as IDV_UI_ICONS,
|
|
5128
5139
|
Ps as PopupReason,
|
|
5129
5140
|
_t as idvIconDataUrlMap
|