@regulaforensics/idv-gui 3.2.289-nightly → 3.2.292-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 +30 -32
- package/dist/main.iife.js +4 -4
- package/dist/main.js +927 -939
- package/dist/main.umd.cjs +4 -4
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var ys = Object.defineProperty, fs = Object.defineProperties;
|
|
2
|
+
var As = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var it = Object.getOwnPropertySymbols;
|
|
4
4
|
var Lr = Object.prototype.hasOwnProperty, kr = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var vr = (e, t, i) => t in e ?
|
|
5
|
+
var vr = (e, t, i) => t in e ? ys(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i, T = (e, t) => {
|
|
6
6
|
for (var i in t || (t = {}))
|
|
7
7
|
Lr.call(t, i) && vr(e, i, t[i]);
|
|
8
8
|
if (it)
|
|
9
9
|
for (var i of it(t))
|
|
10
10
|
kr.call(t, i) && vr(e, i, t[i]);
|
|
11
11
|
return e;
|
|
12
|
-
}, G = (e, t) =>
|
|
12
|
+
}, G = (e, t) => fs(e, As(t));
|
|
13
13
|
var Di = (e, t) => {
|
|
14
14
|
var i = {};
|
|
15
15
|
for (var r in e)
|
|
@@ -22,86 +22,86 @@ var Di = (e, t) => {
|
|
|
22
22
|
var Ie = (e, t, i) => new Promise((r, n) => {
|
|
23
23
|
var o = (I) => {
|
|
24
24
|
try {
|
|
25
|
-
|
|
25
|
+
M(i.next(I));
|
|
26
26
|
} catch (j) {
|
|
27
27
|
n(j);
|
|
28
28
|
}
|
|
29
29
|
}, s = (I) => {
|
|
30
30
|
try {
|
|
31
|
-
|
|
31
|
+
M(i.throw(I));
|
|
32
32
|
} catch (j) {
|
|
33
33
|
n(j);
|
|
34
34
|
}
|
|
35
|
-
},
|
|
36
|
-
|
|
35
|
+
}, M = (I) => I.done ? r(I.value) : Promise.resolve(I.value).then(o, s);
|
|
36
|
+
M((i = i.apply(e, t)).next());
|
|
37
37
|
});
|
|
38
|
-
var Hi, q,
|
|
39
|
-
function
|
|
38
|
+
var Hi, q, yn, ji, Ur, fn, An, Tn, kt, ht, Et, zn, Zi = {}, On = [], Ts = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Gi = Array.isArray;
|
|
39
|
+
function Xe(e, t) {
|
|
40
40
|
for (var i in t) e[i] = t[i];
|
|
41
41
|
return e;
|
|
42
42
|
}
|
|
43
43
|
function Ut(e) {
|
|
44
44
|
e && e.parentNode && e.parentNode.removeChild(e);
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function Ke(e, t, i) {
|
|
47
47
|
var r, n, o, s = {};
|
|
48
48
|
for (o in t) o == "key" ? r = t[o] : o == "ref" ? n = t[o] : s[o] = t[o];
|
|
49
49
|
if (arguments.length > 2 && (s.children = arguments.length > 3 ? Hi.call(arguments, 2) : i), typeof e == "function" && e.defaultProps != null) for (o in e.defaultProps) s[o] === void 0 && (s[o] = e.defaultProps[o]);
|
|
50
|
-
return
|
|
50
|
+
return Ri(e, s, r, n, null);
|
|
51
51
|
}
|
|
52
|
-
function
|
|
53
|
-
var o = { type: e, props: t, key: i, ref: r, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: n == null ? ++
|
|
52
|
+
function Ri(e, t, i, r, n) {
|
|
53
|
+
var o = { type: e, props: t, key: i, ref: r, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: n == null ? ++yn : n, __i: -1, __u: 0 };
|
|
54
54
|
return n == null && q.vnode != null && q.vnode(o), o;
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function xn() {
|
|
57
57
|
return { current: null };
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function Ce(e) {
|
|
60
60
|
return e.children;
|
|
61
61
|
}
|
|
62
62
|
function Ge(e, t) {
|
|
63
63
|
this.props = e, this.context = t;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
if (t == null) return e.__ ?
|
|
65
|
+
function Si(e, t) {
|
|
66
|
+
if (t == null) return e.__ ? Si(e.__, e.__i + 1) : null;
|
|
67
67
|
for (var i; t < e.__k.length; t++) if ((i = e.__k[t]) != null && i.__e != null) return i.__e;
|
|
68
|
-
return typeof e.type == "function" ?
|
|
68
|
+
return typeof e.type == "function" ? Si(e) : null;
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function hn(e) {
|
|
71
71
|
var t, i;
|
|
72
72
|
if ((e = e.__) != null && e.__c != null) {
|
|
73
73
|
for (e.__e = e.__c.base = null, t = 0; t < e.__k.length; t++) if ((i = e.__k[t]) != null && i.__e != null) {
|
|
74
74
|
e.__e = e.__c.base = i.__e;
|
|
75
75
|
break;
|
|
76
76
|
}
|
|
77
|
-
return
|
|
77
|
+
return hn(e);
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
function mt(e) {
|
|
81
|
-
(!e.__d && (e.__d = !0) && ji.push(e) && !st.__r++ || Ur != q.debounceRendering) && ((Ur = q.debounceRendering) ||
|
|
81
|
+
(!e.__d && (e.__d = !0) && ji.push(e) && !st.__r++ || Ur != q.debounceRendering) && ((Ur = q.debounceRendering) || fn)(st);
|
|
82
82
|
}
|
|
83
83
|
function st() {
|
|
84
|
-
for (var e, t, i, r, n, o, s,
|
|
84
|
+
for (var e, t, i, r, n, o, s, M = 1; ji.length; ) ji.length > M && ji.sort(An), e = ji.shift(), M = ji.length, e.__d && (i = void 0, r = void 0, n = (r = (t = e).__v).__e, o = [], s = [], t.__P && ((i = Xe({}, r)).__v = r.__v + 1, q.vnode && q.vnode(i), Qt(t.__P, i, r, t.__n, t.__P.namespaceURI, 32 & r.__u ? [n] : null, o, n == null ? Si(r) : n, !!(32 & r.__u), s), i.__v = r.__v, i.__.__k[i.__i] = i, wn(o, i, s), r.__e = r.__ = null, i.__e != n && hn(i)));
|
|
85
85
|
st.__r = 0;
|
|
86
86
|
}
|
|
87
|
-
function
|
|
88
|
-
var c,
|
|
89
|
-
for (I =
|
|
87
|
+
function En(e, t, i, r, n, o, s, M, I, j, O) {
|
|
88
|
+
var c, a, N, D, y, z, m, _ = r && r.__k || On, p = t.length;
|
|
89
|
+
for (I = zs(i, t, _, I, p), c = 0; c < p; c++) (N = i.__k[c]) != null && (a = N.__i == -1 ? Zi : _[N.__i] || Zi, N.__i = c, z = Qt(e, N, a, n, o, s, M, I, j, O), D = N.__e, N.ref && a.ref != N.ref && (a.ref && Yt(a.ref, null, N), O.push(N.ref, N.__c || D, N)), y == null && D != null && (y = D), (m = !!(4 & N.__u)) || a.__k === N.__k ? I = mn(N, I, e, m) : typeof N.type == "function" && z !== void 0 ? I = z : D && (I = D.nextSibling), N.__u &= -7);
|
|
90
90
|
return i.__e = y, I;
|
|
91
91
|
}
|
|
92
|
-
function
|
|
93
|
-
var o, s,
|
|
94
|
-
for (e.__k = new Array(n), o = 0; o < n; o++) (s = t[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 (c) for (o = 0; o < O; o++) (
|
|
92
|
+
function zs(e, t, i, r, n) {
|
|
93
|
+
var o, s, M, I, j, O = i.length, c = O, a = 0;
|
|
94
|
+
for (e.__k = new Array(n), o = 0; o < n; o++) (s = t[o]) != null && typeof s != "boolean" && typeof s != "function" ? (typeof s == "string" || typeof s == "number" || typeof s == "bigint" || s.constructor == String ? s = e.__k[o] = Ri(null, s, null, null, null) : Gi(s) ? s = e.__k[o] = Ri(Ce, { children: s }, null, null, null) : s.constructor === void 0 && s.__b > 0 ? s = e.__k[o] = Ri(s.type, s.props, s.key, s.ref ? s.ref : null, s.__v) : e.__k[o] = s, I = o + a, s.__ = e, s.__b = e.__b + 1, M = null, (j = s.__i = Os(s, i, I, c)) != -1 && (c--, (M = i[j]) && (M.__u |= 2)), M == null || M.__v == null ? (j == -1 && (n > O ? a-- : n < O && a++), typeof s.type != "function" && (s.__u |= 4)) : j != I && (j == I - 1 ? a-- : j == I + 1 ? a++ : (j > I ? a-- : a++, s.__u |= 4))) : e.__k[o] = null;
|
|
95
|
+
if (c) for (o = 0; o < O; o++) (M = i[o]) != null && (2 & M.__u) == 0 && (M.__e == r && (r = Si(M)), _n(M, M));
|
|
96
96
|
return r;
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function mn(e, t, i, r) {
|
|
99
99
|
var n, o;
|
|
100
100
|
if (typeof e.type == "function") {
|
|
101
|
-
for (n = e.__k, o = 0; n && o < n.length; o++) n[o] && (n[o].__ = e, t =
|
|
101
|
+
for (n = e.__k, o = 0; n && o < n.length; o++) n[o] && (n[o].__ = e, t = mn(n[o], t, i, r));
|
|
102
102
|
return t;
|
|
103
103
|
}
|
|
104
|
-
e.__e != t && (r && (t && e.type && !t.parentNode && (t =
|
|
104
|
+
e.__e != t && (r && (t && e.type && !t.parentNode && (t = Si(e)), i.insertBefore(e.__e, t || null)), t = e.__e);
|
|
105
105
|
do
|
|
106
106
|
t = t && t.nextSibling;
|
|
107
107
|
while (t != null && t.nodeType == 8);
|
|
@@ -112,16 +112,16 @@ function oi(e, t) {
|
|
|
112
112
|
oi(i, t);
|
|
113
113
|
}) : t.push(e)), t;
|
|
114
114
|
}
|
|
115
|
-
function
|
|
116
|
-
var n, o, s,
|
|
117
|
-
if (j === null &&
|
|
115
|
+
function Os(e, t, i, r) {
|
|
116
|
+
var n, o, s, M = e.key, I = e.type, j = t[i], O = j != null && (2 & j.__u) == 0;
|
|
117
|
+
if (j === null && M == null || O && M == j.key && I == j.type) return i;
|
|
118
118
|
if (r > (O ? 1 : 0)) {
|
|
119
|
-
for (n = i - 1, o = i + 1; n >= 0 || o < t.length; ) if ((j = t[s = n >= 0 ? n-- : o++]) != null && (2 & j.__u) == 0 &&
|
|
119
|
+
for (n = i - 1, o = i + 1; n >= 0 || o < t.length; ) if ((j = t[s = n >= 0 ? n-- : o++]) != null && (2 & j.__u) == 0 && M == j.key && I == j.type) return s;
|
|
120
120
|
}
|
|
121
121
|
return -1;
|
|
122
122
|
}
|
|
123
123
|
function Qr(e, t, i) {
|
|
124
|
-
t[0] == "-" ? e.setProperty(t, i == null ? "" : i) : e[t] = i == null ? "" : typeof i != "number" ||
|
|
124
|
+
t[0] == "-" ? e.setProperty(t, i == null ? "" : i) : e[t] = i == null ? "" : typeof i != "number" || Ts.test(t) ? i : i + "px";
|
|
125
125
|
}
|
|
126
126
|
function tt(e, t, i, r, n) {
|
|
127
127
|
var o, s;
|
|
@@ -130,13 +130,13 @@ function tt(e, t, i, r, n) {
|
|
|
130
130
|
if (typeof r == "string" && (e.style.cssText = r = ""), r) for (t in r) i && t in i || Qr(e.style, t, "");
|
|
131
131
|
if (i) for (t in i) r && i[t] == r[t] || Qr(e.style, t, i[t]);
|
|
132
132
|
}
|
|
133
|
-
else if (t[0] == "o" && t[1] == "n") o = t != (t = t.replace(
|
|
133
|
+
else if (t[0] == "o" && t[1] == "n") o = t != (t = t.replace(Tn, "$1")), s = t.toLowerCase(), t = s in e || t == "onFocusOut" || t == "onFocusIn" ? s.slice(2) : t.slice(2), e.l || (e.l = {}), e.l[t + o] = i, i ? r ? i.u = r.u : (i.u = kt, e.addEventListener(t, o ? Et : ht, o)) : e.removeEventListener(t, o ? Et : ht, o);
|
|
134
134
|
else {
|
|
135
135
|
if (n == "http://www.w3.org/2000/svg") t = t.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
|
|
136
136
|
else if (t != "width" && t != "height" && t != "href" && t != "list" && t != "form" && t != "tabIndex" && t != "download" && t != "rowSpan" && t != "colSpan" && t != "role" && t != "popover" && t in e) try {
|
|
137
137
|
e[t] = i == null ? "" : i;
|
|
138
138
|
break e;
|
|
139
|
-
} catch (
|
|
139
|
+
} catch (M) {
|
|
140
140
|
}
|
|
141
141
|
typeof i == "function" || (i == null || i === !1 && t[4] != "-" ? e.removeAttribute(t) : e.setAttribute(t, t == "popover" && i == 1 ? "" : i));
|
|
142
142
|
}
|
|
@@ -151,17 +151,17 @@ function Yr(e) {
|
|
|
151
151
|
}
|
|
152
152
|
};
|
|
153
153
|
}
|
|
154
|
-
function Qt(e, t, i, r, n, o, s,
|
|
155
|
-
var O, c,
|
|
154
|
+
function Qt(e, t, i, r, n, o, s, M, I, j) {
|
|
155
|
+
var O, c, a, N, D, y, z, m, _, p, x, C, K, le, P, se, U, ee = t.type;
|
|
156
156
|
if (t.constructor !== void 0) return null;
|
|
157
|
-
128 & i.__u && (I = !!(32 & i.__u), o = [
|
|
157
|
+
128 & i.__u && (I = !!(32 & i.__u), o = [M = t.__e = i.__e]), (O = q.__b) && O(t);
|
|
158
158
|
e: if (typeof ee == "function") try {
|
|
159
|
-
if (m = t.props, _ = "prototype" in ee && ee.prototype.render, p = (O = ee.contextType) && r[O.__c], x = O ? p ? p.props.value : O.__ : r, i.__c ? z = (c = t.__c = i.__c).__ = c.__E : (_ ? t.__c = c = new ee(m, x) : (t.__c = c = new Ge(m, x), c.constructor = ee, c.render =
|
|
159
|
+
if (m = t.props, _ = "prototype" in ee && ee.prototype.render, p = (O = ee.contextType) && r[O.__c], x = O ? p ? p.props.value : O.__ : r, i.__c ? z = (c = t.__c = i.__c).__ = c.__E : (_ ? t.__c = c = new ee(m, x) : (t.__c = c = new Ge(m, x), c.constructor = ee, c.render = hs), p && p.sub(c), c.state || (c.state = {}), c.__n = r, a = c.__d = !0, c.__h = [], c._sb = []), _ && c.__s == null && (c.__s = c.state), _ && ee.getDerivedStateFromProps != null && (c.__s == c.state && (c.__s = Xe({}, c.__s)), Xe(c.__s, ee.getDerivedStateFromProps(m, c.__s))), N = c.props, D = c.state, c.__v = t, a) _ && ee.getDerivedStateFromProps == null && c.componentWillMount != null && c.componentWillMount(), _ && c.componentDidMount != null && c.__h.push(c.componentDidMount);
|
|
160
160
|
else {
|
|
161
161
|
if (_ && ee.getDerivedStateFromProps == null && m !== N && c.componentWillReceiveProps != null && c.componentWillReceiveProps(m, x), t.__v == i.__v || !c.__e && c.shouldComponentUpdate != null && c.shouldComponentUpdate(m, c.__s, x) === !1) {
|
|
162
162
|
for (t.__v != i.__v && (c.props = m, c.state = c.__s, c.__d = !1), t.__e = i.__e, t.__k = i.__k, t.__k.some(function(L) {
|
|
163
163
|
L && (L.__ = t);
|
|
164
|
-
}),
|
|
164
|
+
}), C = 0; C < c._sb.length; C++) c.__h.push(c._sb[C]);
|
|
165
165
|
c._sb = [], c.__h.length && s.push(c);
|
|
166
166
|
break e;
|
|
167
167
|
}
|
|
@@ -170,16 +170,16 @@ function Qt(e, t, i, r, n, o, s, a, I, j) {
|
|
|
170
170
|
});
|
|
171
171
|
}
|
|
172
172
|
if (c.context = x, c.props = m, c.__P = e, c.__e = !1, K = q.__r, le = 0, _) {
|
|
173
|
-
for (c.state = c.__s, c.__d = !1, K && K(t), O = c.render(c.props, c.state, c.context),
|
|
173
|
+
for (c.state = c.__s, c.__d = !1, K && K(t), O = c.render(c.props, c.state, c.context), P = 0; P < c._sb.length; P++) c.__h.push(c._sb[P]);
|
|
174
174
|
c._sb = [];
|
|
175
175
|
} else do
|
|
176
176
|
c.__d = !1, K && K(t), O = c.render(c.props, c.state, c.context), c.state = c.__s;
|
|
177
177
|
while (c.__d && ++le < 25);
|
|
178
|
-
c.state = c.__s, c.getChildContext != null && (r =
|
|
178
|
+
c.state = c.__s, c.getChildContext != null && (r = Xe(Xe({}, r), c.getChildContext())), _ && !a && c.getSnapshotBeforeUpdate != null && (y = c.getSnapshotBeforeUpdate(N, D)), se = O, O != null && O.type === Ce && O.key == null && (se = pn(O.props.children)), M = En(e, Gi(se) ? se : [se], t, i, r, n, o, s, M, I, j), c.base = t.__e, t.__u &= -161, c.__h.length && s.push(c), z && (c.__E = c.__ = null);
|
|
179
179
|
} catch (L) {
|
|
180
180
|
if (t.__v = null, I || o != null) if (L.then) {
|
|
181
|
-
for (t.__u |= I ? 160 : 128;
|
|
182
|
-
o[o.indexOf(
|
|
181
|
+
for (t.__u |= I ? 160 : 128; M && M.nodeType == 8 && M.nextSibling; ) M = M.nextSibling;
|
|
182
|
+
o[o.indexOf(M)] = null, t.__e = M;
|
|
183
183
|
} else {
|
|
184
184
|
for (U = o.length; U--; ) Ut(o[U]);
|
|
185
185
|
wt(t);
|
|
@@ -187,13 +187,13 @@ function Qt(e, t, i, r, n, o, s, a, I, j) {
|
|
|
187
187
|
else t.__e = i.__e, t.__k = i.__k, L.then || wt(t);
|
|
188
188
|
q.__e(L, t, i);
|
|
189
189
|
}
|
|
190
|
-
else o == null && t.__v == i.__v ? (t.__k = i.__k, t.__e = i.__e) :
|
|
191
|
-
return (O = q.diffed) && O(t), 128 & t.__u ? void 0 :
|
|
190
|
+
else o == null && t.__v == i.__v ? (t.__k = i.__k, t.__e = i.__e) : M = t.__e = xs(i.__e, t, i, r, n, o, s, I, j);
|
|
191
|
+
return (O = q.diffed) && O(t), 128 & t.__u ? void 0 : M;
|
|
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
|
-
function
|
|
196
|
+
function wn(e, t, i) {
|
|
197
197
|
for (var r = 0; r < i.length; r++) Yt(i[r], i[++r], i[++r]);
|
|
198
198
|
q.__c && q.__c(t, e), e.some(function(n) {
|
|
199
199
|
try {
|
|
@@ -205,11 +205,11 @@ function bn(e, t, i) {
|
|
|
205
205
|
}
|
|
206
206
|
});
|
|
207
207
|
}
|
|
208
|
-
function
|
|
209
|
-
return typeof e != "object" || e == null || e.__b && e.__b > 0 ? e : Gi(e) ? e.map(
|
|
208
|
+
function pn(e) {
|
|
209
|
+
return typeof e != "object" || e == null || e.__b && e.__b > 0 ? e : Gi(e) ? e.map(pn) : Xe({}, e);
|
|
210
210
|
}
|
|
211
|
-
function
|
|
212
|
-
var j, O, c,
|
|
211
|
+
function xs(e, t, i, r, n, o, s, M, I) {
|
|
212
|
+
var j, O, c, a, N, D, y, z = i.props || Zi, m = t.props, _ = t.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 ((N = o[j]) && "setAttribute" in N == !!_ && (_ ? N.localName == _ : N.nodeType == 3)) {
|
|
215
215
|
e = N, o[j] = null;
|
|
@@ -218,11 +218,11 @@ function ms(e, t, i, r, n, o, s, a, I) {
|
|
|
218
218
|
}
|
|
219
219
|
if (e == null) {
|
|
220
220
|
if (_ == null) return document.createTextNode(m);
|
|
221
|
-
e = document.createElementNS(n, _, m.is && m),
|
|
221
|
+
e = document.createElementNS(n, _, m.is && m), M && (q.__m && q.__m(t, o), M = !1), o = null;
|
|
222
222
|
}
|
|
223
|
-
if (_ == null) z === m ||
|
|
223
|
+
if (_ == null) z === m || M && e.data == m || (e.data = m);
|
|
224
224
|
else {
|
|
225
|
-
if (o = o && Hi.call(e.childNodes), !
|
|
225
|
+
if (o = o && Hi.call(e.childNodes), !M && o != null) for (z = {}, j = 0; j < e.attributes.length; j++) z[(N = e.attributes[j]).name] = N.value;
|
|
226
226
|
for (j in z) if (N = z[j], j != "children") {
|
|
227
227
|
if (j == "dangerouslySetInnerHTML") c = N;
|
|
228
228
|
else if (!(j in m)) {
|
|
@@ -230,10 +230,10 @@ function ms(e, t, i, r, n, o, s, a, I) {
|
|
|
230
230
|
tt(e, j, null, N, n);
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
|
-
for (j in m) N = m[j], j == "children" ?
|
|
234
|
-
if (O)
|
|
235
|
-
else if (c && (e.innerHTML = ""),
|
|
236
|
-
|
|
233
|
+
for (j in m) N = m[j], j == "children" ? a = N : j == "dangerouslySetInnerHTML" ? O = N : j == "value" ? D = N : j == "checked" ? y = N : M && typeof N != "function" || z[j] === N || tt(e, j, N, z[j], n);
|
|
234
|
+
if (O) M || c && (O.__html == c.__html || O.__html == e.innerHTML) || (e.innerHTML = O.__html), t.__k = [];
|
|
235
|
+
else if (c && (e.innerHTML = ""), En(t.type == "template" ? e.content : e, Gi(a) ? a : [a], t, i, r, _ == "foreignObject" ? "http://www.w3.org/1999/xhtml" : n, o, s, o ? o[0] : i.__k && Si(i, 0), M, I), o != null) for (j = o.length; j--; ) Ut(o[j]);
|
|
236
|
+
M || (j = "value", _ == "progress" && D == null ? e.removeAttribute("value") : D != null && (D !== e[j] || _ == "progress" && !D || _ == "option" && D != z[j]) && tt(e, j, D, z[j], n), j = "checked", y != null && y != e[j] && tt(e, j, y, z[j], n));
|
|
237
237
|
}
|
|
238
238
|
return e;
|
|
239
239
|
}
|
|
@@ -247,7 +247,7 @@ function Yt(e, t, i) {
|
|
|
247
247
|
q.__e(n, i);
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
|
-
function
|
|
250
|
+
function _n(e, t, i) {
|
|
251
251
|
var r, n;
|
|
252
252
|
if (q.unmount && q.unmount(e), (r = e.ref) && (r.current && r.current != e.__e || Yt(r, null, t)), (r = e.__c) != null) {
|
|
253
253
|
if (r.componentWillUnmount) try {
|
|
@@ -257,25 +257,25 @@ function Sn(e, t, i) {
|
|
|
257
257
|
}
|
|
258
258
|
r.base = r.__P = null;
|
|
259
259
|
}
|
|
260
|
-
if (r = e.__k) for (n = 0; n < r.length; n++) r[n] &&
|
|
260
|
+
if (r = e.__k) for (n = 0; n < r.length; n++) r[n] && _n(r[n], t, i || typeof e.type != "function");
|
|
261
261
|
i || Ut(e.__e), e.__c = e.__ = e.__e = void 0;
|
|
262
262
|
}
|
|
263
|
-
function
|
|
263
|
+
function hs(e, t, i) {
|
|
264
264
|
return this.constructor(e, i);
|
|
265
265
|
}
|
|
266
266
|
function Ai(e, t, i) {
|
|
267
267
|
var r, n, o, s;
|
|
268
|
-
t == document && (t = document.documentElement), q.__ && q.__(e, t), n = (r = typeof i == "function") ? null : i && i.__k || t.__k, o = [], s = [], Qt(t, e = (!r && i || t).__k =
|
|
268
|
+
t == document && (t = document.documentElement), q.__ && q.__(e, t), n = (r = typeof i == "function") ? null : i && i.__k || t.__k, o = [], s = [], Qt(t, e = (!r && i || t).__k = Ke(Ce, null, [e]), n || Zi, Zi, t.namespaceURI, !r && i ? [i] : n ? null : t.firstChild ? Hi.call(t.childNodes) : null, o, !r && i ? i : n ? n.__e : t.firstChild, r, s), wn(o, e, s);
|
|
269
269
|
}
|
|
270
|
-
function
|
|
271
|
-
Ai(e, t,
|
|
270
|
+
function bn(e, t) {
|
|
271
|
+
Ai(e, t, bn);
|
|
272
272
|
}
|
|
273
|
-
function
|
|
274
|
-
var r, n, o, s,
|
|
275
|
-
for (o in e.type && e.type.defaultProps && (s = e.type.defaultProps), t) o == "key" ? r = t[o] : o == "ref" ? n = t[o] :
|
|
276
|
-
return arguments.length > 2 && (
|
|
273
|
+
function Es(e, t, i) {
|
|
274
|
+
var r, n, o, s, M = Xe({}, e.props);
|
|
275
|
+
for (o in e.type && e.type.defaultProps && (s = e.type.defaultProps), t) o == "key" ? r = t[o] : o == "ref" ? n = t[o] : M[o] = t[o] === void 0 && s != null ? s[o] : t[o];
|
|
276
|
+
return arguments.length > 2 && (M.children = arguments.length > 3 ? Hi.call(arguments, 2) : i), Ri(e.type, M, r || e.key, n || e.ref, null);
|
|
277
277
|
}
|
|
278
|
-
function
|
|
278
|
+
function Rt(e) {
|
|
279
279
|
function t(i) {
|
|
280
280
|
var r, n;
|
|
281
281
|
return this.getChildContext || (r = /* @__PURE__ */ new Set(), (n = {})[t.__c] = this, this.getChildContext = function() {
|
|
@@ -294,32 +294,32 @@ function Pt(e) {
|
|
|
294
294
|
};
|
|
295
295
|
}), i.children;
|
|
296
296
|
}
|
|
297
|
-
return t.__c = "__cC" +
|
|
297
|
+
return t.__c = "__cC" + zn++, t.__ = e, t.Provider = t.__l = (t.Consumer = function(i, r) {
|
|
298
298
|
return i.children(r);
|
|
299
299
|
}).contextType = t, t;
|
|
300
300
|
}
|
|
301
|
-
Hi =
|
|
301
|
+
Hi = On.slice, q = { __e: function(e, t, i, r) {
|
|
302
302
|
for (var n, o, s; t = t.__; ) if ((n = t.__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 (M) {
|
|
305
|
+
e = M;
|
|
306
306
|
}
|
|
307
307
|
throw e;
|
|
308
|
-
} },
|
|
308
|
+
} }, yn = 0, Ge.prototype.setState = function(e, t) {
|
|
309
309
|
var i;
|
|
310
|
-
i = this.__s != null && this.__s != this.state ? this.__s : this.__s =
|
|
310
|
+
i = this.__s != null && this.__s != this.state ? this.__s : this.__s = Xe({}, this.state), typeof e == "function" && (e = e(Xe({}, i), this.props)), e && Xe(i, e), e != null && this.__v && (t && this._sb.push(t), mt(this));
|
|
311
311
|
}, Ge.prototype.forceUpdate = function(e) {
|
|
312
312
|
this.__v && (this.__e = !0, e && this.__h.push(e), mt(this));
|
|
313
|
-
}, Ge.prototype.render =
|
|
313
|
+
}, Ge.prototype.render = Ce, ji = [], fn = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, An = function(e, t) {
|
|
314
314
|
return e.__v.__b - t.__v.__b;
|
|
315
|
-
}, st.__r = 0,
|
|
316
|
-
var
|
|
315
|
+
}, st.__r = 0, Tn = /(PointerCapture)$|Capture$/i, kt = 0, ht = Yr(!1), Et = Yr(!0), zn = 0;
|
|
316
|
+
var ms = 0;
|
|
317
317
|
function d(e, t, i, r, n, o) {
|
|
318
318
|
t || (t = {});
|
|
319
|
-
var s,
|
|
320
|
-
if ("ref" in I) for (
|
|
321
|
-
var j = { type: e, props: I, key: i, ref: s, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --
|
|
322
|
-
if (typeof e == "function" && (s = e.defaultProps)) for (
|
|
319
|
+
var s, M, I = t;
|
|
320
|
+
if ("ref" in I) for (M in I = {}, t) M == "ref" ? s = t[M] : I[M] = t[M];
|
|
321
|
+
var j = { type: e, props: I, key: i, ref: s, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --ms, __i: -1, __u: 0, __source: n, __self: o };
|
|
322
|
+
if (typeof e == "function" && (s = e.defaultProps)) for (M in s) I[M] === void 0 && (I[M] = s[M]);
|
|
323
323
|
return q.vnode && q.vnode(j), j;
|
|
324
324
|
}
|
|
325
325
|
class yi {
|
|
@@ -330,11 +330,11 @@ class yi {
|
|
|
330
330
|
underlyingError: n,
|
|
331
331
|
underlyingBaseError: o,
|
|
332
332
|
domain: s,
|
|
333
|
-
module:
|
|
333
|
+
module: M,
|
|
334
334
|
errorEnumName: I,
|
|
335
335
|
shortDomainCode: j
|
|
336
336
|
}) {
|
|
337
|
-
this.errorCode = t, this.errorCodeKey = i, this.message = r, this.underlyingError = n, this.underlyingBaseError = o, this.module =
|
|
337
|
+
this.errorCode = t, this.errorCodeKey = i, this.message = r, this.underlyingError = n, this.underlyingBaseError = o, this.module = M, this.domain = s, this.errorEnumName = I, this.shortDomainCode = j;
|
|
338
338
|
}
|
|
339
339
|
static getErrorKey(t, i) {
|
|
340
340
|
const r = Object.keys(i).find((n) => i[n] === t);
|
|
@@ -369,9 +369,9 @@ class yi {
|
|
|
369
369
|
return this.underlyingBaseError instanceof yi && (t += `-${this.underlyingBaseError.fullChain}`), t;
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
|
-
class
|
|
372
|
+
class ws extends HTMLElement {
|
|
373
373
|
}
|
|
374
|
-
function
|
|
374
|
+
function ps(e, t) {
|
|
375
375
|
if (t.displayName ? console.log(`Register module: ${t.displayName}`) : console.error('Missed "displayName" when register module'), t.getSupportedTemplates && typeof t.getSupportedTemplates == "function") {
|
|
376
376
|
const i = t.getSupportedTemplates();
|
|
377
377
|
console.log(`${t == null ? void 0 : t.displayName} supported templates: ${i.join(", ")}`);
|
|
@@ -388,45 +388,45 @@ const Nt = {
|
|
|
388
388
|
FORM: "form",
|
|
389
389
|
DATA: "data"
|
|
390
390
|
};
|
|
391
|
-
var si, de, ft,
|
|
391
|
+
var si, de, ft, Rr, Ci = 0, Sn = [], Ae = q, Pr = Ae.__b, Vr = Ae.__r, Fr = Ae.diffed, Br = Ae.__c, Wr = Ae.unmount, Zr = Ae.__;
|
|
392
392
|
function Ti(e, t) {
|
|
393
|
-
Ae.__h && Ae.__h(de, e,
|
|
393
|
+
Ae.__h && Ae.__h(de, e, Ci || t), Ci = 0;
|
|
394
394
|
var i = de.__H || (de.__H = { __: [], __h: [] });
|
|
395
395
|
return e >= i.__.length && i.__.push({}), i.__[e];
|
|
396
396
|
}
|
|
397
397
|
function we(e) {
|
|
398
|
-
return
|
|
398
|
+
return Ci = 1, Dt(Cn, e);
|
|
399
399
|
}
|
|
400
400
|
function Dt(e, t, i) {
|
|
401
401
|
var r = Ti(si++, 2);
|
|
402
|
-
if (r.t = e, !r.__c && (r.__ = [i ? i(t) :
|
|
403
|
-
var I = r.__N ? r.__N[0] : r.__[0], j = r.t(I,
|
|
402
|
+
if (r.t = e, !r.__c && (r.__ = [i ? i(t) : Cn(void 0, t), function(M) {
|
|
403
|
+
var I = r.__N ? r.__N[0] : r.__[0], j = r.t(I, M);
|
|
404
404
|
I !== j && (r.__N = [j, r.__[1]], r.__c.setState({}));
|
|
405
405
|
}], r.__c = de, !de.__f)) {
|
|
406
|
-
var n = function(
|
|
406
|
+
var n = function(M, I, j) {
|
|
407
407
|
if (!r.__c.__H) return !0;
|
|
408
|
-
var O = r.__c.__H.__.filter(function(
|
|
409
|
-
return !!
|
|
408
|
+
var O = r.__c.__H.__.filter(function(a) {
|
|
409
|
+
return !!a.__c;
|
|
410
410
|
});
|
|
411
|
-
if (O.every(function(
|
|
412
|
-
return !
|
|
413
|
-
})) return !o || o.call(this,
|
|
414
|
-
var c = r.__c.props !==
|
|
415
|
-
return O.forEach(function(
|
|
416
|
-
if (
|
|
417
|
-
var N =
|
|
418
|
-
|
|
411
|
+
if (O.every(function(a) {
|
|
412
|
+
return !a.__N;
|
|
413
|
+
})) return !o || o.call(this, M, I, j);
|
|
414
|
+
var c = r.__c.props !== M;
|
|
415
|
+
return O.forEach(function(a) {
|
|
416
|
+
if (a.__N) {
|
|
417
|
+
var N = a.__[0];
|
|
418
|
+
a.__ = a.__N, a.__N = void 0, N !== a.__[0] && (c = !0);
|
|
419
419
|
}
|
|
420
|
-
}), o && o.call(this,
|
|
420
|
+
}), o && o.call(this, M, I, j) || c;
|
|
421
421
|
};
|
|
422
422
|
de.__f = !0;
|
|
423
423
|
var o = de.shouldComponentUpdate, s = de.componentWillUpdate;
|
|
424
|
-
de.componentWillUpdate = function(
|
|
424
|
+
de.componentWillUpdate = function(M, I, j) {
|
|
425
425
|
if (this.__e) {
|
|
426
426
|
var O = o;
|
|
427
|
-
o = void 0, n(
|
|
427
|
+
o = void 0, n(M, I, j), o = O;
|
|
428
428
|
}
|
|
429
|
-
s && s.call(this,
|
|
429
|
+
s && s.call(this, M, I, j);
|
|
430
430
|
}, de.shouldComponentUpdate = n;
|
|
431
431
|
}
|
|
432
432
|
return r.__N || r.__;
|
|
@@ -440,12 +440,12 @@ function ci(e, t) {
|
|
|
440
440
|
!Ae.__s && Wt(i.__H, t) && (i.__ = e, i.u = t, de.__h.push(i));
|
|
441
441
|
}
|
|
442
442
|
function Je(e) {
|
|
443
|
-
return
|
|
443
|
+
return Ci = 5, Ji(function() {
|
|
444
444
|
return { current: e };
|
|
445
445
|
}, []);
|
|
446
446
|
}
|
|
447
|
-
function
|
|
448
|
-
|
|
447
|
+
function Pt(e, t, i) {
|
|
448
|
+
Ci = 6, ci(function() {
|
|
449
449
|
if (typeof e == "function") {
|
|
450
450
|
var r = e(t());
|
|
451
451
|
return function() {
|
|
@@ -462,7 +462,7 @@ function Ji(e, t) {
|
|
|
462
462
|
return Wt(i.__H, t) && (i.__ = e(), i.__H = t, i.__h = e), i.__;
|
|
463
463
|
}
|
|
464
464
|
function Vt(e, t) {
|
|
465
|
-
return
|
|
465
|
+
return Ci = 8, Ji(function() {
|
|
466
466
|
return e;
|
|
467
467
|
}, t);
|
|
468
468
|
}
|
|
@@ -473,7 +473,7 @@ function vi(e) {
|
|
|
473
473
|
function Ft(e, t) {
|
|
474
474
|
Ae.useDebugValue && Ae.useDebugValue(t ? t(e) : e);
|
|
475
475
|
}
|
|
476
|
-
function
|
|
476
|
+
function _s(e) {
|
|
477
477
|
var t = Ti(si++, 10), i = we();
|
|
478
478
|
return t.__ = e, de.componentDidCatch || (de.componentDidCatch = function(r, n) {
|
|
479
479
|
t.__ && t.__(r, n), i[1](r);
|
|
@@ -490,15 +490,15 @@ function Bt() {
|
|
|
490
490
|
}
|
|
491
491
|
return e.__;
|
|
492
492
|
}
|
|
493
|
-
function
|
|
494
|
-
for (var e; e =
|
|
493
|
+
function bs() {
|
|
494
|
+
for (var e; e = Sn.shift(); ) if (e.__P && e.__H) try {
|
|
495
495
|
e.__H.__h.forEach(ot), e.__H.__h.forEach(pt), e.__H.__h = [];
|
|
496
496
|
} catch (t) {
|
|
497
497
|
e.__H.__h = [], Ae.__e(t, e.__v);
|
|
498
498
|
}
|
|
499
499
|
}
|
|
500
500
|
Ae.__b = function(e) {
|
|
501
|
-
de = null,
|
|
501
|
+
de = null, Pr && Pr(e);
|
|
502
502
|
}, Ae.__ = function(e, t) {
|
|
503
503
|
e && t.__k && t.__k.__m && (e.__m = t.__k.__m), Zr && Zr(e, t);
|
|
504
504
|
}, Ae.__r = function(e) {
|
|
@@ -510,7 +510,7 @@ Ae.__b = function(e) {
|
|
|
510
510
|
}, Ae.diffed = function(e) {
|
|
511
511
|
Fr && Fr(e);
|
|
512
512
|
var t = e.__c;
|
|
513
|
-
t && t.__H && (t.__H.__h.length && (
|
|
513
|
+
t && t.__H && (t.__H.__h.length && (Sn.push(t) !== 1 && Rr === Ae.requestAnimationFrame || ((Rr = Ae.requestAnimationFrame) || Ss)(bs)), t.__H.__.forEach(function(i) {
|
|
514
514
|
i.u && (i.__H = i.u), i.u = void 0;
|
|
515
515
|
})), ft = de = null;
|
|
516
516
|
}, Ae.__c = function(e, t) {
|
|
@@ -537,7 +537,7 @@ Ae.__b = function(e) {
|
|
|
537
537
|
}), i.__H = void 0, t && Ae.__e(t, i.__v));
|
|
538
538
|
};
|
|
539
539
|
var Hr = typeof requestAnimationFrame == "function";
|
|
540
|
-
function
|
|
540
|
+
function Ss(e) {
|
|
541
541
|
var t, i = function() {
|
|
542
542
|
clearTimeout(r), Hr && cancelAnimationFrame(t), setTimeout(e);
|
|
543
543
|
}, r = setTimeout(i, 35);
|
|
@@ -556,10 +556,10 @@ function Wt(e, t) {
|
|
|
556
556
|
return i !== e[r];
|
|
557
557
|
});
|
|
558
558
|
}
|
|
559
|
-
function
|
|
559
|
+
function Cn(e, t) {
|
|
560
560
|
return typeof t == "function" ? t(e) : t;
|
|
561
561
|
}
|
|
562
|
-
const It =
|
|
562
|
+
const It = Rt(void 0), Cs = ({ perform: e, children: t, setIsProcessingCallback: i, devSettings: r }) => /* @__PURE__ */ d(It.Provider, { value: { perform: e, setIsProcessingCallback: i, devSettings: r }, children: t }), vs = () => {
|
|
563
563
|
const e = vi(It);
|
|
564
564
|
if (!e)
|
|
565
565
|
throw new Error("useDevSettings must be used within a Context Provider");
|
|
@@ -569,12 +569,12 @@ const It = Pt(void 0), Gr = ({ perform: e, children: t, setIsProcessingCallback:
|
|
|
569
569
|
if (!e)
|
|
570
570
|
throw new Error("usePerform must be used within a PerformProvider");
|
|
571
571
|
return { perform: e.perform };
|
|
572
|
-
},
|
|
572
|
+
}, Ls = () => {
|
|
573
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 };
|
|
577
|
-
},
|
|
577
|
+
}, ks = {
|
|
578
578
|
width: "86px",
|
|
579
579
|
height: "86px",
|
|
580
580
|
flex: "0 0 86px",
|
|
@@ -583,7 +583,7 @@ const It = Pt(void 0), Gr = ({ perform: e, children: t, setIsProcessingCallback:
|
|
|
583
583
|
justifyContent: "center",
|
|
584
584
|
alignItems: "center",
|
|
585
585
|
alignContent: "center"
|
|
586
|
-
},
|
|
586
|
+
}, ri = {
|
|
587
587
|
INFO: "INFO",
|
|
588
588
|
INFO_DETAILS: "INFO_DETAILS",
|
|
589
589
|
STATUS: "STATUS",
|
|
@@ -592,7 +592,7 @@ const It = Pt(void 0), Gr = ({ perform: e, children: t, 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"
|
|
@@ -612,15 +612,15 @@ const It = Pt(void 0), Gr = ({ perform: e, children: t, setIsProcessingCallback:
|
|
|
612
612
|
EMAIL: "EMAIL",
|
|
613
613
|
NUMBER: "NUMBER",
|
|
614
614
|
SECURE: "SECURE"
|
|
615
|
-
},
|
|
615
|
+
}, Us = ({ dataUrl: e }) => {
|
|
616
616
|
const t = Je(null), i = 360 / 1e3;
|
|
617
617
|
return Ve(() => {
|
|
618
618
|
if (!t.current) return;
|
|
619
619
|
let r = !0, n = 0, o = performance.now();
|
|
620
|
-
function s(
|
|
620
|
+
function s(M) {
|
|
621
621
|
if (!r) return;
|
|
622
|
-
const I =
|
|
623
|
-
o =
|
|
622
|
+
const I = M - o;
|
|
623
|
+
o = M, n = (n + i * I) % 360, t.current && (t.current.style.transform = `rotate(${n}deg)`), requestAnimationFrame(s);
|
|
624
624
|
}
|
|
625
625
|
return requestAnimationFrame(s), () => {
|
|
626
626
|
r = !1;
|
|
@@ -688,24 +688,24 @@ const It = Pt(void 0), Gr = ({ perform: e, children: t, setIsProcessingCallback:
|
|
|
688
688
|
[ue.UNDERAGE]: () => "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgMCA0OSA0OCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8Y2lyY2xlIGN4PSIxNS41MDA0IiBjeT0iMTAuODAwMiIgcj0iMy42IiBzdHJva2U9IiMwRTFGOTciIHN0cm9rZS13aWR0aD0iMyIvPgogIDxjaXJjbGUgY3g9IjM1LjI5OTgiIGN5PSIxOS43OTk4IiByPSIzIiBzdHJva2U9IiMwRTFGOTciIHN0cm9rZS13aWR0aD0iMyIvPgogIDxwYXRoIGQ9Ik0yOC4wMTQ2IDIwLjM5OTlDMjkuMjQ5NiAxOC40OTcyIDMwLjcwNSAxNy45Njk2IDMyLjI5OTQgMTguMjcyOE00Mi41ODQxIDIwLjM5OTlDNDEuMzQ5MSAxOC40OTcyIDM5Ljg5MzggMTcuOTY5NiAzOC4yOTk0IDE4LjI3MjgiIHN0cm9rZT0iIzBFMUY5NyIgc3Ryb2tlLXdpZHRoPSIzIi8+CiAgPHBhdGggZD0iTTEyLjUgNDEuNzAwMlYzMC42MDAySDkuNVYxOS4yMDAySDIxLjVWMzAuNjAwMkgxOC41VjQxLjcwMDIiIHN0cm9rZT0iIzBFMUY5NyIgc3Ryb2tlLXdpZHRoPSIzIi8+CiAgPHBhdGggZD0iTTMyLjI5OTggNDEuNzAwMVYzNy4yMDAxSDI5LjI5OThMMzMuNDk5OCAyNy42MDAxSDM3LjA5OThMNDEuMjk5OCAzNy4yMDAxSDM4LjI5OThWNDEuNzAwMSIgc3Ryb2tlPSIjMEUxRjk3IiBzdHJva2Utd2lkdGg9IjMiLz4KPC9zdmc+Cg==",
|
|
689
689
|
[ue.WARNING]: () => "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODYiIGhlaWdodD0iODYiIHZpZXdCb3g9IjAgMCA4NiA4NiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8ZWxsaXBzZSBjeD0iNDMiIGN5PSI0MyIgcng9IjQwIiByeT0iNDAiIHRyYW5zZm9ybT0icm90YXRlKDkwIDQzIDQzKSIgc3Ryb2tlPSIjRkNCOTM3IiBzdHJva2Utd2lkdGg9IjMiLz4KICA8cGF0aCBkPSJNNDAuODc4OSA0OC41MzUyTDQwLjU4NTkgMjVINDQuOTgwNUw0NC42ODc1IDQ4LjUzNTJINDAuODc4OVpNNDIuNzgzMiA2MC40NzM2QzQyLjAwMiA2MC40NzM2IDQxLjM0MjggNjAuMjA1MSA0MC44MDU3IDU5LjY2OEM0MC4yNjg2IDU5LjEzMDkgNDAgNTguNDcxNyA0MCA1Ny42OTA0QzQwIDU2Ljg5MjkgNDAuMjY4NiA1Ni4yMzM3IDQwLjgwNTcgNTUuNzEyOUM0MS4zNDI4IDU1LjE3NTggNDIuMDAyIDU0LjkwNzIgNDIuNzgzMiA1NC45MDcyQzQzLjU4MDcgNTQuOTA3MiA0NC4yMzk5IDU1LjE3NTggNDQuNzYwNyA1NS43MTI5QzQ1LjI5NzkgNTYuMjMzNyA0NS41NjY0IDU2Ljg5MjkgNDUuNTY2NCA1Ny42OTA0QzQ1LjU2NjQgNTguNDcxNyA0NS4yOTc5IDU5LjEzMDkgNDQuNzYwNyA1OS42NjhDNDQuMjM5OSA2MC4yMDUxIDQzLjU4MDcgNjAuNDczNiA0Mi43ODMyIDYwLjQ3MzZaIiBmaWxsPSIjRkNCOTM3Ii8+Cjwvc3ZnPgo=",
|
|
690
690
|
[ue.DEFAULT]: () => ""
|
|
691
|
-
},
|
|
691
|
+
}, vn = ({ type: e, color: t }) => {
|
|
692
692
|
const i = _t[e] || _t[ue.DEFAULT], r = i == null ? void 0 : i(t);
|
|
693
|
-
return e === ue.SPINNER ? /* @__PURE__ */ d(
|
|
694
|
-
}, $i = "#005fcc",
|
|
693
|
+
return e === ue.SPINNER ? /* @__PURE__ */ d(Us, { dataUrl: r }) : /* @__PURE__ */ d("img", { src: r, style: { width: "auto", height: "auto", maxWidth: "100%", maxHeight: "100%" } });
|
|
694
|
+
}, $i = "#005fcc", at = "idv-gui", Pi = {
|
|
695
695
|
DECODING_FAILED: "DECODING_FAILED"
|
|
696
696
|
}, At = {
|
|
697
697
|
text: "text",
|
|
698
698
|
selector: "selector",
|
|
699
699
|
multiSelector: "multiSelector"
|
|
700
|
-
},
|
|
700
|
+
}, Gr = {
|
|
701
701
|
NOT_EMPTY: "notEmpty",
|
|
702
702
|
REGEX: "regex"
|
|
703
|
-
},
|
|
703
|
+
}, Qs = {
|
|
704
704
|
APP_DENIED: "app_denied",
|
|
705
705
|
SYSTEM_RESTRICTED: "system_restricted"
|
|
706
706
|
};
|
|
707
|
-
function
|
|
708
|
-
return e ===
|
|
707
|
+
function Ln(e) {
|
|
708
|
+
return e === Mt.CENTER ? "center" : e === Mt.RIGHT ? "right" : "left";
|
|
709
709
|
}
|
|
710
710
|
function Zt(e) {
|
|
711
711
|
if (typeof e == "object" && e !== null)
|
|
@@ -713,35 +713,35 @@ function Zt(e) {
|
|
|
713
713
|
typeof e[t] == "object" ? Zt(e[t]) : e[t] === "true" ? e[t] = !0 : e[t] === "false" && (e[t] = !1);
|
|
714
714
|
return e;
|
|
715
715
|
}
|
|
716
|
-
function
|
|
716
|
+
function Ys(e) {
|
|
717
717
|
return Object.entries(e).map(([t, i]) => ({
|
|
718
718
|
id: t,
|
|
719
719
|
value: typeof i == "string" ? i.trim() : i
|
|
720
720
|
})).filter((t) => !!t.value);
|
|
721
721
|
}
|
|
722
|
-
const
|
|
722
|
+
const Rs = (e) => Array.isArray(e) ? e.length === 0 : e === 0 ? !1 : !e;
|
|
723
723
|
function ie(e) {
|
|
724
724
|
return e && /^#(?:[0-9a-fA-F]{3}){1,2}$/.test(e) ? e : void 0;
|
|
725
725
|
}
|
|
726
|
-
const
|
|
726
|
+
const Ps = (e, t) => e.reduce((i, 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 G(T({}, i), { [r.id]:
|
|
729
|
+
const M = t.find((I) => I.name === r.property.id);
|
|
730
|
+
if (M != null && M.string)
|
|
731
|
+
return G(T({}, i), { [r.id]: M.string });
|
|
732
732
|
}
|
|
733
733
|
if (r.answerType === At.selector && (o = r.property) != null && o.id) {
|
|
734
|
-
const
|
|
735
|
-
if (
|
|
736
|
-
return G(T({}, i), { [r.id]:
|
|
734
|
+
const M = t.find((I) => I.name === r.property.id);
|
|
735
|
+
if (M != null && M.string)
|
|
736
|
+
return G(T({}, i), { [r.id]: M.string });
|
|
737
737
|
}
|
|
738
738
|
if (r.answerType === At.multiSelector && (s = r.property) != null && s.id) {
|
|
739
|
-
const
|
|
740
|
-
if (
|
|
741
|
-
return G(T({}, i), { [r.id]:
|
|
739
|
+
const M = t.find((I) => I.name === r.property.id);
|
|
740
|
+
if (M != null && M.array)
|
|
741
|
+
return G(T({}, i), { [r.id]: M.array });
|
|
742
742
|
}
|
|
743
743
|
return i;
|
|
744
|
-
}, {}),
|
|
744
|
+
}, {}), kn = (e) => new Promise((t, i) => {
|
|
745
745
|
const r = new FileReader();
|
|
746
746
|
r.onload = () => {
|
|
747
747
|
const n = r.result;
|
|
@@ -751,13 +751,13 @@ const Fs = (e, t) => e.reduce((i, r) => {
|
|
|
751
751
|
} else
|
|
752
752
|
i(new Error("Unexpected result type"));
|
|
753
753
|
}, r.onerror = () => i(r.error), r.readAsDataURL(e);
|
|
754
|
-
}),
|
|
754
|
+
}), Vs = () => Ie(null, null, function* () {
|
|
755
755
|
try {
|
|
756
756
|
return (yield navigator.mediaDevices.getUserMedia({ video: !0 })).getTracks().forEach((t) => t.stop()), "allowed";
|
|
757
757
|
} catch (e) {
|
|
758
758
|
return (e == null ? void 0 : e.name) === "NotAllowedError" ? "denied" : "error";
|
|
759
759
|
}
|
|
760
|
-
}),
|
|
760
|
+
}), Fs = () => String.fromCharCode(Math.floor(Math.random() * 26) + 97) + Number(Math.random()).toString(16).slice(2) + Date.now().toString(16).slice(4), _e = ({
|
|
761
761
|
imageId: e,
|
|
762
762
|
imageURL: t,
|
|
763
763
|
base64: i,
|
|
@@ -769,7 +769,7 @@ const Fs = (e, t) => e.reduce((i, r) => {
|
|
|
769
769
|
if (c === rt.ASPECT_FILL) return "cover";
|
|
770
770
|
if (c === rt.ASPECT_FIT) return "contain";
|
|
771
771
|
if (c === rt.FILL) return "fill";
|
|
772
|
-
}, [
|
|
772
|
+
}, [M, I] = we(!0), j = M && t, O = () => {
|
|
773
773
|
I(!1);
|
|
774
774
|
};
|
|
775
775
|
if (i)
|
|
@@ -791,10 +791,10 @@ const Fs = (e, t) => e.reduce((i, r) => {
|
|
|
791
791
|
);
|
|
792
792
|
if (e) {
|
|
793
793
|
const c = e in _t ? e : "default";
|
|
794
|
-
return /* @__PURE__ */ d(
|
|
794
|
+
return /* @__PURE__ */ d(vn, { type: c });
|
|
795
795
|
}
|
|
796
796
|
if (t)
|
|
797
|
-
return /* @__PURE__ */ d(
|
|
797
|
+
return /* @__PURE__ */ d(Ce, { children: [
|
|
798
798
|
j && /* @__PURE__ */ d(
|
|
799
799
|
"div",
|
|
800
800
|
{
|
|
@@ -824,7 +824,7 @@ const Fs = (e, t) => e.reduce((i, r) => {
|
|
|
824
824
|
}
|
|
825
825
|
)
|
|
826
826
|
] });
|
|
827
|
-
},
|
|
827
|
+
}, Bs = ({ signature: e }) => /* @__PURE__ */ d(
|
|
828
828
|
"footer",
|
|
829
829
|
{
|
|
830
830
|
"data-ui": "gui-footer",
|
|
@@ -839,7 +839,7 @@ const Fs = (e, t) => e.reduce((i, r) => {
|
|
|
839
839
|
},
|
|
840
840
|
children: /* @__PURE__ */ d("a", { href: "", children: /* @__PURE__ */ d(_e, T({}, e)) })
|
|
841
841
|
}
|
|
842
|
-
),
|
|
842
|
+
), Ws = {
|
|
843
843
|
display: "flex",
|
|
844
844
|
justifyContent: "center",
|
|
845
845
|
alignItems: "center",
|
|
@@ -848,7 +848,7 @@ const Fs = (e, t) => e.reduce((i, r) => {
|
|
|
848
848
|
minWidth: "36px",
|
|
849
849
|
border: "none",
|
|
850
850
|
cursor: "pointer"
|
|
851
|
-
},
|
|
851
|
+
}, Zs = ({
|
|
852
852
|
dataTestId: e,
|
|
853
853
|
responseBody: t,
|
|
854
854
|
image: i,
|
|
@@ -857,8 +857,8 @@ const Fs = (e, t) => e.reduce((i, r) => {
|
|
|
857
857
|
cornerRadius: o,
|
|
858
858
|
highlightColor: s
|
|
859
859
|
}) => {
|
|
860
|
-
var
|
|
861
|
-
const [
|
|
860
|
+
var a;
|
|
861
|
+
const [M, I] = we(!1), j = M && s ? s : n, { perform: O } = zi();
|
|
862
862
|
return /* @__PURE__ */ d(
|
|
863
863
|
"button",
|
|
864
864
|
{
|
|
@@ -870,8 +870,8 @@ const Fs = (e, t) => e.reduce((i, r) => {
|
|
|
870
870
|
Zt(N), O(N, Nt.DATA);
|
|
871
871
|
},
|
|
872
872
|
className: "hover-button",
|
|
873
|
-
style: G(T(T({},
|
|
874
|
-
backgroundColor: (
|
|
873
|
+
style: G(T(T({}, Ws), o && { borderRadius: o }), {
|
|
874
|
+
backgroundColor: (a = ie(j)) != null ? a : "transparent"
|
|
875
875
|
}),
|
|
876
876
|
onMouseEnter: () => I(!0),
|
|
877
877
|
onMouseLeave: () => I(!1),
|
|
@@ -893,7 +893,7 @@ const Fs = (e, t) => e.reduce((i, r) => {
|
|
|
893
893
|
]
|
|
894
894
|
}
|
|
895
895
|
);
|
|
896
|
-
},
|
|
896
|
+
}, Hs = ({ closeButton: e }) => /* @__PURE__ */ d(
|
|
897
897
|
"header",
|
|
898
898
|
{
|
|
899
899
|
style: {
|
|
@@ -906,28 +906,28 @@ const Fs = (e, t) => e.reduce((i, r) => {
|
|
|
906
906
|
},
|
|
907
907
|
"data-ui": "gui-header",
|
|
908
908
|
part: "gui-header",
|
|
909
|
-
children: /* @__PURE__ */ d("div", { children: e && /* @__PURE__ */ d(
|
|
909
|
+
children: /* @__PURE__ */ d("div", { children: e && /* @__PURE__ */ d(Zs, T({ dataTestId: "close-btn" }, e)) })
|
|
910
910
|
}
|
|
911
911
|
);
|
|
912
|
-
function
|
|
912
|
+
function Gs(e) {
|
|
913
913
|
var n;
|
|
914
914
|
const t = /\[([^\]]+)\]\(((https?:\/\/|www\.)?[^\s)]+\.[^\s)]+)\)/g, i = [];
|
|
915
915
|
let r = 0;
|
|
916
916
|
for (const o of e.matchAll(t)) {
|
|
917
|
-
const [s,
|
|
917
|
+
const [s, M, I] = o, j = (n = o.index) != null ? n : 0;
|
|
918
918
|
j > r && i.push(e.slice(r, j));
|
|
919
919
|
const O = I.startsWith("http") ? I : `https://${I}`;
|
|
920
920
|
i.push(
|
|
921
|
-
/* @__PURE__ */ d("a", { href: O, target: "_blank", rel: "noopener noreferrer", children:
|
|
921
|
+
/* @__PURE__ */ d("a", { href: O, target: "_blank", rel: "noopener noreferrer", children: M }, j)
|
|
922
922
|
), r = j + s.length;
|
|
923
923
|
}
|
|
924
924
|
return r < e.length && i.push(e.slice(r)), i;
|
|
925
925
|
}
|
|
926
|
-
function
|
|
926
|
+
function Un(e) {
|
|
927
927
|
const t = e.split(`
|
|
928
928
|
`);
|
|
929
929
|
return t.flatMap((i, r) => {
|
|
930
|
-
const n =
|
|
930
|
+
const n = Gs(i);
|
|
931
931
|
return r === t.length - 1 ? n : [...n, /* @__PURE__ */ d("br", {}, "br-" + r)];
|
|
932
932
|
});
|
|
933
933
|
}
|
|
@@ -936,20 +936,20 @@ const Te = ({
|
|
|
936
936
|
fontName: t = "",
|
|
937
937
|
fontSize: i = "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: M
|
|
943
943
|
}) => {
|
|
944
944
|
const I = {
|
|
945
945
|
fontFamily: [t, "-apple-system", "BlinkMacSystemFont", "sans-serif"].filter(Boolean).join(", "),
|
|
946
946
|
fontSize: i,
|
|
947
947
|
color: ie(r) || "#000000",
|
|
948
|
-
textAlign:
|
|
948
|
+
textAlign: Ln(n),
|
|
949
949
|
backgroundColor: ie(o) || "transparent",
|
|
950
950
|
borderRadius: s
|
|
951
|
-
}, j = typeof e == "string" && e.trim() &&
|
|
952
|
-
return
|
|
951
|
+
}, j = typeof e == "string" && e.trim() && Un(e);
|
|
952
|
+
return M ? /* @__PURE__ */ d("label", { "data-ui": "gui-label", part: "gui-label", style: I, htmlFor: M, children: j }) : /* @__PURE__ */ d("div", { "data-ui": "gui-label", part: "gui-label", style: I, children: j });
|
|
953
953
|
}, ut = ({
|
|
954
954
|
title: e,
|
|
955
955
|
image: t,
|
|
@@ -958,13 +958,13 @@ const Te = ({
|
|
|
958
958
|
cornerRadius: n,
|
|
959
959
|
highlightColor: o,
|
|
960
960
|
dataTestId: s,
|
|
961
|
-
borderColor:
|
|
961
|
+
borderColor: M,
|
|
962
962
|
borderWidth: I,
|
|
963
963
|
type: j = "RESPONSE_BODY",
|
|
964
964
|
onClick: O
|
|
965
965
|
}) => {
|
|
966
966
|
var m, _;
|
|
967
|
-
const [c,
|
|
967
|
+
const [c, a] = we(!1), N = c && ie(o) ? o : r, { perform: D } = zi(), y = (p) => {
|
|
968
968
|
if (O && O(p), j !== "RESPONSE_BODY") return;
|
|
969
969
|
const x = JSON.parse(JSON.stringify(i));
|
|
970
970
|
Zt(x), D(x, Nt.DATA);
|
|
@@ -982,9 +982,9 @@ const Te = ({
|
|
|
982
982
|
justifyContent: "center",
|
|
983
983
|
gap: 5,
|
|
984
984
|
borderRadius: n || 0,
|
|
985
|
-
borderStyle:
|
|
985
|
+
borderStyle: M && I ? "solid" : void 0,
|
|
986
986
|
backgroundColor: (m = ie(N)) != null ? m : "transparent",
|
|
987
|
-
borderColor: (_ = ie(
|
|
987
|
+
borderColor: (_ = ie(M)) != null ? _ : "none",
|
|
988
988
|
borderWidth: I != null ? I : 0,
|
|
989
989
|
overflow: "hidden",
|
|
990
990
|
transition: ".3s",
|
|
@@ -999,8 +999,8 @@ const Te = ({
|
|
|
999
999
|
"data-test": s,
|
|
1000
1000
|
onClick: y,
|
|
1001
1001
|
style: z,
|
|
1002
|
-
onMouseEnter: () =>
|
|
1003
|
-
onMouseLeave: () =>
|
|
1002
|
+
onMouseEnter: () => a(!0),
|
|
1003
|
+
onMouseLeave: () => a(!1),
|
|
1004
1004
|
children: [
|
|
1005
1005
|
t && /* @__PURE__ */ d(_e, T({}, t)),
|
|
1006
1006
|
e && /* @__PURE__ */ d(
|
|
@@ -1015,7 +1015,7 @@ const Te = ({
|
|
|
1015
1015
|
]
|
|
1016
1016
|
}
|
|
1017
1017
|
);
|
|
1018
|
-
},
|
|
1018
|
+
}, Js = (i) => {
|
|
1019
1019
|
var r = i, { items: e } = r, t = Di(r, ["items"]);
|
|
1020
1020
|
return /* @__PURE__ */ d("div", { part: "gui-buttons", "data-ui": "gui-buttons", style: T(T({}, {
|
|
1021
1021
|
display: "flex",
|
|
@@ -1031,7 +1031,7 @@ const Te = ({
|
|
|
1031
1031
|
paddingTop: "20px"
|
|
1032
1032
|
}), t), children: e.map((o) => {
|
|
1033
1033
|
var s;
|
|
1034
|
-
return /* @__PURE__ */ d(ut, T({ dataTestId: "button-" + ((s = o.title) == null ? void 0 : s.text) }, o),
|
|
1034
|
+
return /* @__PURE__ */ d(ut, T({ dataTestId: "button-" + ((s = o.title) == null ? void 0 : s.text) }, o), Fs());
|
|
1035
1035
|
}) });
|
|
1036
1036
|
}, gi = ({
|
|
1037
1037
|
children: e,
|
|
@@ -1040,7 +1040,7 @@ const Te = ({
|
|
|
1040
1040
|
backgroundColor: r = "white",
|
|
1041
1041
|
buttons: n
|
|
1042
1042
|
}) => {
|
|
1043
|
-
const o = t ? 60 : 10, s = i ? 30 : 10,
|
|
1043
|
+
const o = t ? 60 : 10, s = i ? 30 : 10, M = {
|
|
1044
1044
|
position: "relative",
|
|
1045
1045
|
display: "flex",
|
|
1046
1046
|
flexGrow: 1,
|
|
@@ -1063,7 +1063,7 @@ const Te = ({
|
|
|
1063
1063
|
part: "gui-base-container",
|
|
1064
1064
|
"data-ui": "gui-base-container",
|
|
1065
1065
|
id: "base-container",
|
|
1066
|
-
style: T({},
|
|
1066
|
+
style: T({}, M),
|
|
1067
1067
|
children: [
|
|
1068
1068
|
t && /* @__PURE__ */ d(
|
|
1069
1069
|
"div",
|
|
@@ -1075,11 +1075,11 @@ const Te = ({
|
|
|
1075
1075
|
width: "100%",
|
|
1076
1076
|
height: o
|
|
1077
1077
|
},
|
|
1078
|
-
children: /* @__PURE__ */ d(
|
|
1078
|
+
children: /* @__PURE__ */ d(Hs, { closeButton: t.closeButton })
|
|
1079
1079
|
}
|
|
1080
1080
|
),
|
|
1081
1081
|
/* @__PURE__ */ d("div", { style: { height: "100%", width: "100%", flex: "1 1 100%", overflow: "hidden" }, children: e }),
|
|
1082
|
-
(n == null ? void 0 : n.length) && /* @__PURE__ */ d(
|
|
1082
|
+
(n == null ? void 0 : n.length) && /* @__PURE__ */ d(Js, { items: n }),
|
|
1083
1083
|
i && /* @__PURE__ */ d(
|
|
1084
1084
|
"div",
|
|
1085
1085
|
{
|
|
@@ -1090,7 +1090,7 @@ const Te = ({
|
|
|
1090
1090
|
width: "100%",
|
|
1091
1091
|
height: s
|
|
1092
1092
|
},
|
|
1093
|
-
children: /* @__PURE__ */ d(
|
|
1093
|
+
children: /* @__PURE__ */ d(Bs, T({}, i))
|
|
1094
1094
|
}
|
|
1095
1095
|
)
|
|
1096
1096
|
]
|
|
@@ -1100,7 +1100,7 @@ const Te = ({
|
|
|
1100
1100
|
text: e,
|
|
1101
1101
|
fontName: t = "",
|
|
1102
1102
|
fontColor: i,
|
|
1103
|
-
alignment: r =
|
|
1103
|
+
alignment: r = Mt.LEFT,
|
|
1104
1104
|
fontSize: n = 17,
|
|
1105
1105
|
backgroundColor: o,
|
|
1106
1106
|
cornerRadius: s = 0
|
|
@@ -1112,15 +1112,15 @@ const Te = ({
|
|
|
1112
1112
|
style: {
|
|
1113
1113
|
fontFamily: [t, "-apple-system", "BlinkMacSystemFont", "sans-serif"].filter(Boolean).join(", "),
|
|
1114
1114
|
fontSize: n,
|
|
1115
|
-
textAlign:
|
|
1115
|
+
textAlign: Ln(r),
|
|
1116
1116
|
color: ie(i) || "#000000",
|
|
1117
1117
|
borderRadius: s,
|
|
1118
1118
|
backgroundColor: ie(o) || "transparent",
|
|
1119
1119
|
whiteSpace: "pre-line"
|
|
1120
1120
|
},
|
|
1121
|
-
children: e &&
|
|
1121
|
+
children: e && Un(e)
|
|
1122
1122
|
}
|
|
1123
|
-
),
|
|
1123
|
+
), $s = ({
|
|
1124
1124
|
header: e,
|
|
1125
1125
|
footer: t,
|
|
1126
1126
|
image: i,
|
|
@@ -1129,9 +1129,9 @@ const Te = ({
|
|
|
1129
1129
|
buttons: o,
|
|
1130
1130
|
backgroundColor: s
|
|
1131
1131
|
}) => {
|
|
1132
|
-
const
|
|
1132
|
+
const M = Je(null), [I, j] = we(!1);
|
|
1133
1133
|
return Ve(() => {
|
|
1134
|
-
|
|
1134
|
+
M.current && j(M.current.scrollHeight > M.current.clientHeight + 2);
|
|
1135
1135
|
}, []), /* @__PURE__ */ d(gi, { header: e, buttons: o, footer: t, backgroundColor: s, children: /* @__PURE__ */ d(
|
|
1136
1136
|
"div",
|
|
1137
1137
|
{
|
|
@@ -1146,11 +1146,11 @@ const Te = ({
|
|
|
1146
1146
|
flexDirection: "column"
|
|
1147
1147
|
},
|
|
1148
1148
|
children: [
|
|
1149
|
-
i && /* @__PURE__ */ d("div", { style:
|
|
1149
|
+
i && /* @__PURE__ */ d("div", { style: ks, children: /* @__PURE__ */ d(_e, T({}, i)) }),
|
|
1150
1150
|
(r == null ? void 0 : r.text) && /* @__PURE__ */ d(
|
|
1151
1151
|
"div",
|
|
1152
1152
|
{
|
|
1153
|
-
ref:
|
|
1153
|
+
ref: M,
|
|
1154
1154
|
style: {
|
|
1155
1155
|
width: "100%",
|
|
1156
1156
|
overflow: I ? "auto" : "hidden"
|
|
@@ -1180,12 +1180,12 @@ const Te = ({
|
|
|
1180
1180
|
]
|
|
1181
1181
|
}
|
|
1182
1182
|
) });
|
|
1183
|
-
},
|
|
1183
|
+
}, Xs = {
|
|
1184
1184
|
width: "100%",
|
|
1185
1185
|
height: "auto",
|
|
1186
1186
|
marginBottom: "32px",
|
|
1187
1187
|
aspectRatio: "1.68"
|
|
1188
|
-
},
|
|
1188
|
+
}, Ks = {
|
|
1189
1189
|
position: "relative",
|
|
1190
1190
|
display: "flex",
|
|
1191
1191
|
flexDirection: "column",
|
|
@@ -1196,7 +1196,7 @@ const Te = ({
|
|
|
1196
1196
|
width: "100%",
|
|
1197
1197
|
minHeight: "100%",
|
|
1198
1198
|
overflow: "auto"
|
|
1199
|
-
},
|
|
1199
|
+
}, qs = ({
|
|
1200
1200
|
title: e,
|
|
1201
1201
|
header: t,
|
|
1202
1202
|
footer: i,
|
|
@@ -1204,22 +1204,22 @@ const Te = ({
|
|
|
1204
1204
|
description: n,
|
|
1205
1205
|
buttons: o,
|
|
1206
1206
|
backgroundColor: s
|
|
1207
|
-
}) => /* @__PURE__ */ d(gi, { header: t, footer: i, buttons: o, backgroundColor: s, children: /* @__PURE__ */ d(
|
|
1207
|
+
}) => /* @__PURE__ */ d(gi, { header: t, footer: i, buttons: o, backgroundColor: s, children: /* @__PURE__ */ d(Ce, { children: /* @__PURE__ */ d(
|
|
1208
1208
|
"div",
|
|
1209
1209
|
{
|
|
1210
1210
|
part: "gui-info-screen-container",
|
|
1211
1211
|
"data-ui": "gui-info-screen-container",
|
|
1212
1212
|
id: "info-screen-container",
|
|
1213
|
-
style: G(T({},
|
|
1213
|
+
style: G(T({}, Ks), {
|
|
1214
1214
|
justifyContent: r ? "flex-start" : "center"
|
|
1215
1215
|
}),
|
|
1216
1216
|
children: [
|
|
1217
|
-
r && /* @__PURE__ */ d("div", { style:
|
|
1217
|
+
r && /* @__PURE__ */ d("div", { style: Xs, children: /* @__PURE__ */ d(_e, T({}, r)) }),
|
|
1218
1218
|
e && /* @__PURE__ */ d("div", { style: { marginBottom: 20, lineHeight: "39.2px" }, children: /* @__PURE__ */ d(Te, T({}, e)) }),
|
|
1219
1219
|
n && /* @__PURE__ */ d("div", { style: { lineHeight: "28px", fontWeight: "400" }, children: /* @__PURE__ */ d(jt, T({}, n)) })
|
|
1220
1220
|
]
|
|
1221
1221
|
}
|
|
1222
|
-
) }) }),
|
|
1222
|
+
) }) }), eM = ({ indicatorColor: e = "#7E57C5" }) => /* @__PURE__ */ d(vn, { type: ue.SPINNER, color: e }), Jr = ({
|
|
1223
1223
|
progressView: e,
|
|
1224
1224
|
footer: t,
|
|
1225
1225
|
backgroundColor: i
|
|
@@ -1237,9 +1237,9 @@ const Te = ({
|
|
|
1237
1237
|
height: "100%",
|
|
1238
1238
|
width: "100%"
|
|
1239
1239
|
},
|
|
1240
|
-
children: /* @__PURE__ */ d(
|
|
1240
|
+
children: /* @__PURE__ */ d(eM, { indicatorColor: ie(e == null ? void 0 : e.indicatorColor) || "#000000" })
|
|
1241
1241
|
}
|
|
1242
|
-
) }),
|
|
1242
|
+
) }), iM = ({
|
|
1243
1243
|
title: e,
|
|
1244
1244
|
description: t,
|
|
1245
1245
|
image: i,
|
|
@@ -1277,21 +1277,21 @@ const Te = ({
|
|
|
1277
1277
|
/* @__PURE__ */ d("div", { style: { aspectRatio: "1 / 1", width: 120, height: 120, flex: "0 0 120px" }, children: /* @__PURE__ */ d(_e, T({}, i)) })
|
|
1278
1278
|
]
|
|
1279
1279
|
}
|
|
1280
|
-
),
|
|
1280
|
+
), tM = {
|
|
1281
1281
|
display: "flex",
|
|
1282
1282
|
flexDirection: "column",
|
|
1283
1283
|
padding: "0 16px"
|
|
1284
|
-
},
|
|
1284
|
+
}, rM = ({ items: e, backgroundColor: t, cornerRadius: i = 16 }) => /* @__PURE__ */ d(
|
|
1285
1285
|
"div",
|
|
1286
1286
|
{
|
|
1287
1287
|
className: "details",
|
|
1288
|
-
style: G(T({},
|
|
1288
|
+
style: G(T({}, tM), {
|
|
1289
1289
|
backgroundColor: ie(t) || "white",
|
|
1290
1290
|
borderRadius: i
|
|
1291
1291
|
}),
|
|
1292
|
-
children: e.map((r, n) => /* @__PURE__ */ d(
|
|
1292
|
+
children: e.map((r, n) => /* @__PURE__ */ d(iM, T({ isLastChild: n === e.length - 1 }, r), n))
|
|
1293
1293
|
}
|
|
1294
|
-
),
|
|
1294
|
+
), nM = ({
|
|
1295
1295
|
title: e,
|
|
1296
1296
|
header: t,
|
|
1297
1297
|
footer: i,
|
|
@@ -1299,7 +1299,7 @@ const Te = ({
|
|
|
1299
1299
|
buttons: n,
|
|
1300
1300
|
backgroundColor: o
|
|
1301
1301
|
}) => {
|
|
1302
|
-
const s = Je(null), [
|
|
1302
|
+
const s = Je(null), [M, I] = we(!1);
|
|
1303
1303
|
return Ve(() => {
|
|
1304
1304
|
s.current && I(s.current.scrollHeight > s.current.clientHeight);
|
|
1305
1305
|
}, []), /* @__PURE__ */ d(gi, { header: t, buttons: n, footer: i, backgroundColor: o, children: /* @__PURE__ */ d(
|
|
@@ -1308,7 +1308,7 @@ const Te = ({
|
|
|
1308
1308
|
style: {
|
|
1309
1309
|
display: "flex",
|
|
1310
1310
|
flexDirection: "column",
|
|
1311
|
-
justifyContent:
|
|
1311
|
+
justifyContent: M ? "flex-start" : "center",
|
|
1312
1312
|
height: "100%",
|
|
1313
1313
|
minHeight: "100%",
|
|
1314
1314
|
overflow: "auto"
|
|
@@ -1316,12 +1316,12 @@ const Te = ({
|
|
|
1316
1316
|
ref: s,
|
|
1317
1317
|
children: [
|
|
1318
1318
|
/* @__PURE__ */ d("div", { style: { marginBottom: e ? "16px" : "0", fontWeight: 400, fontSize: "28px" }, children: e && /* @__PURE__ */ d(Te, T({}, e)) }),
|
|
1319
|
-
r && /* @__PURE__ */ d(
|
|
1319
|
+
r && /* @__PURE__ */ d(rM, T({}, r))
|
|
1320
1320
|
]
|
|
1321
1321
|
}
|
|
1322
1322
|
) });
|
|
1323
1323
|
};
|
|
1324
|
-
function
|
|
1324
|
+
function Qn(e, t) {
|
|
1325
1325
|
for (var i in t) e[i] = t[i];
|
|
1326
1326
|
return e;
|
|
1327
1327
|
}
|
|
@@ -1362,77 +1362,77 @@ var Xt = ci;
|
|
|
1362
1362
|
function lt(e, t) {
|
|
1363
1363
|
this.props = e, this.context = t;
|
|
1364
1364
|
}
|
|
1365
|
-
function
|
|
1365
|
+
function Yn(e, t) {
|
|
1366
1366
|
function i(n) {
|
|
1367
1367
|
var o = this.props.ref, s = o == n.ref;
|
|
1368
1368
|
return !s && o && (o.call ? o(null) : o.current = null), t ? !t(this.props, n) || !s : bt(this.props, n);
|
|
1369
1369
|
}
|
|
1370
1370
|
function r(n) {
|
|
1371
|
-
return this.shouldComponentUpdate = i,
|
|
1371
|
+
return this.shouldComponentUpdate = i, Ke(e, n);
|
|
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
1375
|
(lt.prototype = new Ge()).isPureReactComponent = !0, lt.prototype.shouldComponentUpdate = function(e, t) {
|
|
1376
1376
|
return bt(this.props, e) || bt(this.state, t);
|
|
1377
1377
|
};
|
|
1378
|
-
var
|
|
1378
|
+
var $r = q.__b;
|
|
1379
1379
|
q.__b = function(e) {
|
|
1380
|
-
e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null),
|
|
1380
|
+
e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), $r && $r(e);
|
|
1381
1381
|
};
|
|
1382
|
-
var
|
|
1383
|
-
function
|
|
1382
|
+
var oM = typeof Symbol != "undefined" && Symbol.for && /* @__PURE__ */ Symbol.for("react.forward_ref") || 3911;
|
|
1383
|
+
function Rn(e) {
|
|
1384
1384
|
function t(i) {
|
|
1385
|
-
var r =
|
|
1385
|
+
var r = Qn({}, i);
|
|
1386
1386
|
return delete r.ref, e(r, i.ref || null);
|
|
1387
1387
|
}
|
|
1388
|
-
return t.$$typeof =
|
|
1388
|
+
return t.$$typeof = oM, t.render = e, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
|
|
1389
1389
|
}
|
|
1390
|
-
var
|
|
1390
|
+
var Xr = function(e, t) {
|
|
1391
1391
|
return e == null ? null : oi(oi(e).map(t));
|
|
1392
|
-
},
|
|
1392
|
+
}, Pn = { map: Xr, forEach: Xr, count: function(e) {
|
|
1393
1393
|
return e ? oi(e).length : 0;
|
|
1394
1394
|
}, only: function(e) {
|
|
1395
1395
|
var t = oi(e);
|
|
1396
1396
|
if (t.length !== 1) throw "Children.only";
|
|
1397
1397
|
return t[0];
|
|
1398
|
-
}, toArray: oi },
|
|
1398
|
+
}, toArray: oi }, sM = q.__e;
|
|
1399
1399
|
q.__e = function(e, t, i, r) {
|
|
1400
1400
|
if (e.then) {
|
|
1401
1401
|
for (var n, o = t; o = o.__; ) if ((n = o.__c) && n.__c) return t.__e == null && (t.__e = i.__e, t.__k = i.__k), n.__c(e, t);
|
|
1402
1402
|
}
|
|
1403
|
-
|
|
1403
|
+
sM(e, t, i, r);
|
|
1404
1404
|
};
|
|
1405
|
-
var
|
|
1406
|
-
function
|
|
1405
|
+
var Kr = q.unmount;
|
|
1406
|
+
function Vn(e, t, i) {
|
|
1407
1407
|
return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(r) {
|
|
1408
1408
|
typeof r.__c == "function" && r.__c();
|
|
1409
|
-
}), e.__c.__H = null), (e =
|
|
1410
|
-
return
|
|
1409
|
+
}), e.__c.__H = null), (e = Qn({}, e)).__c != null && (e.__c.__P === i && (e.__c.__P = t), e.__c.__e = !0, e.__c = null), e.__k = e.__k && e.__k.map(function(r) {
|
|
1410
|
+
return Vn(r, t, i);
|
|
1411
1411
|
})), e;
|
|
1412
1412
|
}
|
|
1413
|
-
function
|
|
1413
|
+
function Fn(e, t, i) {
|
|
1414
1414
|
return e && i && (e.__v = null, e.__k = e.__k && e.__k.map(function(r) {
|
|
1415
|
-
return
|
|
1415
|
+
return Fn(r, t, i);
|
|
1416
1416
|
}), e.__c && e.__c.__P === t && (e.__e && i.appendChild(e.__e), e.__c.__e = !0, e.__c.__P = i)), e;
|
|
1417
1417
|
}
|
|
1418
1418
|
function Vi() {
|
|
1419
1419
|
this.__u = 0, this.o = null, this.__b = null;
|
|
1420
1420
|
}
|
|
1421
|
-
function
|
|
1421
|
+
function Bn(e) {
|
|
1422
1422
|
if (!e.__) return null;
|
|
1423
1423
|
var t = e.__.__c;
|
|
1424
1424
|
return t && t.__a && t.__a(e);
|
|
1425
1425
|
}
|
|
1426
|
-
function
|
|
1426
|
+
function Wn(e) {
|
|
1427
1427
|
var t, i, r, n = null;
|
|
1428
1428
|
function o(s) {
|
|
1429
|
-
if (t || (t = e()).then(function(
|
|
1430
|
-
|
|
1431
|
-
}, function(
|
|
1432
|
-
i =
|
|
1429
|
+
if (t || (t = e()).then(function(M) {
|
|
1430
|
+
M && (n = M.default || M), r = !0;
|
|
1431
|
+
}, function(M) {
|
|
1432
|
+
i = M, r = !0;
|
|
1433
1433
|
}), i) throw i;
|
|
1434
1434
|
if (!r) throw t;
|
|
1435
|
-
return n ?
|
|
1435
|
+
return n ? Ke(n, s) : null;
|
|
1436
1436
|
}
|
|
1437
1437
|
return o.displayName = "Lazy", o.__f = !0, o;
|
|
1438
1438
|
}
|
|
@@ -1441,24 +1441,24 @@ function _i() {
|
|
|
1441
1441
|
}
|
|
1442
1442
|
q.unmount = function(e) {
|
|
1443
1443
|
var t = e.__c;
|
|
1444
|
-
t && (t.__z = !0), t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null),
|
|
1444
|
+
t && (t.__z = !0), t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), Kr && Kr(e);
|
|
1445
1445
|
}, (Vi.prototype = new Ge()).__c = function(e, t) {
|
|
1446
1446
|
var i = t.__c, r = this;
|
|
1447
1447
|
r.o == null && (r.o = []), r.o.push(i);
|
|
1448
|
-
var n =
|
|
1448
|
+
var n = Bn(r.__v), o = !1, s = function() {
|
|
1449
1449
|
o || r.__z || (o = !0, i.__R = null, n ? n(I) : I());
|
|
1450
1450
|
};
|
|
1451
1451
|
i.__R = s;
|
|
1452
|
-
var
|
|
1452
|
+
var M = i.__P;
|
|
1453
1453
|
i.__P = null;
|
|
1454
1454
|
var I = function() {
|
|
1455
1455
|
if (!--r.__u) {
|
|
1456
1456
|
if (r.state.__a) {
|
|
1457
1457
|
var j = r.state.__a;
|
|
1458
|
-
r.__v.__k[0] =
|
|
1458
|
+
r.__v.__k[0] = Fn(j, j.__c.__P, j.__c.__O);
|
|
1459
1459
|
}
|
|
1460
1460
|
var O;
|
|
1461
|
-
for (r.setState({ __a: r.__b = null }); O = r.o.pop(); ) O.__P =
|
|
1461
|
+
for (r.setState({ __a: r.__b = null }); O = r.o.pop(); ) O.__P = M, O.forceUpdate();
|
|
1462
1462
|
}
|
|
1463
1463
|
};
|
|
1464
1464
|
r.__u++ || 32 & t.__u || r.setState({ __a: r.__b = r.__v.__k[0] }), e.then(s, s);
|
|
@@ -1468,26 +1468,26 @@ q.unmount = function(e) {
|
|
|
1468
1468
|
if (this.__b) {
|
|
1469
1469
|
if (this.__v.__k) {
|
|
1470
1470
|
var i = document.createElement("div"), r = this.__v.__k[0].__c;
|
|
1471
|
-
this.__v.__k[0] =
|
|
1471
|
+
this.__v.__k[0] = Vn(this.__b, i, r.__O = r.__P);
|
|
1472
1472
|
}
|
|
1473
1473
|
this.__b = null;
|
|
1474
1474
|
}
|
|
1475
|
-
var n = t.__a &&
|
|
1476
|
-
return n && (n.__u &= -33), [
|
|
1475
|
+
var n = t.__a && Ke(Ce, null, e.fallback);
|
|
1476
|
+
return n && (n.__u &= -33), [Ke(Ce, null, t.__a ? null : e.children), n];
|
|
1477
1477
|
};
|
|
1478
|
-
var
|
|
1478
|
+
var qr = function(e, t, i) {
|
|
1479
1479
|
if (++i[1] === i[0] && e.l.delete(t), e.props.revealOrder && (e.props.revealOrder[0] !== "t" || !e.l.size)) for (i = e.i; i; ) {
|
|
1480
1480
|
for (; i.length > 3; ) i.pop()();
|
|
1481
1481
|
if (i[1] < i[0]) break;
|
|
1482
1482
|
e.i = i = i[2];
|
|
1483
1483
|
}
|
|
1484
1484
|
};
|
|
1485
|
-
function
|
|
1485
|
+
function MM(e) {
|
|
1486
1486
|
return this.getChildContext = function() {
|
|
1487
1487
|
return e.context;
|
|
1488
1488
|
}, e.children;
|
|
1489
1489
|
}
|
|
1490
|
-
function
|
|
1490
|
+
function aM(e) {
|
|
1491
1491
|
var t = this, i = e.h;
|
|
1492
1492
|
if (t.componentWillUnmount = function() {
|
|
1493
1493
|
Ai(null, t.v), t.v = null, t.h = null;
|
|
@@ -1501,17 +1501,17 @@ function la(e) {
|
|
|
1501
1501
|
this.childNodes.splice(this.childNodes.indexOf(n) >>> 1, 1), t.h.removeChild(n);
|
|
1502
1502
|
} };
|
|
1503
1503
|
}
|
|
1504
|
-
Ai(
|
|
1504
|
+
Ai(Ke(MM, { context: t.context }, e.__v), t.v);
|
|
1505
1505
|
}
|
|
1506
|
-
function
|
|
1507
|
-
var i =
|
|
1506
|
+
function Zn(e, t) {
|
|
1507
|
+
var i = Ke(aM, { __v: e, h: t });
|
|
1508
1508
|
return i.containerInfo = t, i;
|
|
1509
1509
|
}
|
|
1510
1510
|
(_i.prototype = new Ge()).__a = function(e) {
|
|
1511
|
-
var t = this, i =
|
|
1511
|
+
var t = this, i = Bn(t.__v), r = t.l.get(e);
|
|
1512
1512
|
return r[0]++, function(n) {
|
|
1513
1513
|
var o = function() {
|
|
1514
|
-
t.props.revealOrder ? (r.push(n),
|
|
1514
|
+
t.props.revealOrder ? (r.push(n), qr(t, e, r)) : n();
|
|
1515
1515
|
};
|
|
1516
1516
|
i ? i(o) : o();
|
|
1517
1517
|
};
|
|
@@ -1524,17 +1524,17 @@ function Jn(e, t) {
|
|
|
1524
1524
|
}, _i.prototype.componentDidUpdate = _i.prototype.componentDidMount = function() {
|
|
1525
1525
|
var e = this;
|
|
1526
1526
|
this.l.forEach(function(t, i) {
|
|
1527
|
-
|
|
1527
|
+
qr(e, i, t);
|
|
1528
1528
|
});
|
|
1529
1529
|
};
|
|
1530
|
-
var
|
|
1530
|
+
var Hn = typeof Symbol != "undefined" && Symbol.for && /* @__PURE__ */ Symbol.for("react.element") || 60103, uM = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, lM = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, cM = /[A-Z0-9]/g, gM = typeof document != "undefined", dM = function(e) {
|
|
1531
1531
|
return (typeof Symbol != "undefined" && typeof /* @__PURE__ */ Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
|
|
1532
1532
|
};
|
|
1533
|
-
function
|
|
1533
|
+
function Gn(e, t, i) {
|
|
1534
1534
|
return t.__k == null && (t.textContent = ""), Ai(e, t), typeof i == "function" && i(), e ? e.__c : null;
|
|
1535
1535
|
}
|
|
1536
|
-
function
|
|
1537
|
-
return
|
|
1536
|
+
function Jn(e, t, i) {
|
|
1537
|
+
return bn(e, t), typeof i == "function" && i(), e ? e.__c : null;
|
|
1538
1538
|
}
|
|
1539
1539
|
Ge.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
|
|
1540
1540
|
Object.defineProperty(Ge.prototype, e, { configurable: !0, get: function() {
|
|
@@ -1543,116 +1543,116 @@ Ge.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceive
|
|
|
1543
1543
|
Object.defineProperty(this, e, { configurable: !0, writable: !0, value: t });
|
|
1544
1544
|
} });
|
|
1545
1545
|
});
|
|
1546
|
-
var
|
|
1547
|
-
function
|
|
1546
|
+
var en = q.event;
|
|
1547
|
+
function NM() {
|
|
1548
1548
|
}
|
|
1549
|
-
function
|
|
1549
|
+
function DM() {
|
|
1550
1550
|
return this.cancelBubble;
|
|
1551
1551
|
}
|
|
1552
|
-
function
|
|
1552
|
+
function IM() {
|
|
1553
1553
|
return this.defaultPrevented;
|
|
1554
1554
|
}
|
|
1555
1555
|
q.event = function(e) {
|
|
1556
|
-
return
|
|
1556
|
+
return en && (e = en(e)), e.persist = NM, e.isPropagationStopped = DM, e.isDefaultPrevented = IM, e.nativeEvent = e;
|
|
1557
1557
|
};
|
|
1558
|
-
var Kt,
|
|
1558
|
+
var Kt, jM = { enumerable: !1, configurable: !0, get: function() {
|
|
1559
1559
|
return this.class;
|
|
1560
|
-
} },
|
|
1560
|
+
} }, tn = q.vnode;
|
|
1561
1561
|
q.vnode = function(e) {
|
|
1562
1562
|
typeof e.type == "string" && (function(t) {
|
|
1563
1563
|
var i = t.props, r = t.type, n = {}, o = r.indexOf("-") === -1;
|
|
1564
1564
|
for (var s in i) {
|
|
1565
|
-
var
|
|
1566
|
-
if (!(s === "value" && "defaultValue" in i &&
|
|
1565
|
+
var M = i[s];
|
|
1566
|
+
if (!(s === "value" && "defaultValue" in i && M == null || gM && s === "children" && r === "noscript" || s === "class" || s === "className")) {
|
|
1567
1567
|
var I = s.toLowerCase();
|
|
1568
|
-
s === "defaultValue" && "value" in i && i.value == null ? s = "value" : s === "download" &&
|
|
1568
|
+
s === "defaultValue" && "value" in i && i.value == null ? s = "value" : s === "download" && M === !0 ? M = "" : I === "translate" && M === "no" ? M = !1 : I[0] === "o" && I[1] === "n" ? I === "ondoubleclick" ? s = "ondblclick" : I !== "onchange" || r !== "input" && r !== "textarea" || dM(i.type) ? I === "onfocus" ? s = "onfocusin" : I === "onblur" ? s = "onfocusout" : lM.test(s) && (s = I) : I = s = "oninput" : o && uM.test(s) ? s = s.replace(cM, "-$&").toLowerCase() : M === null && (M = void 0), I === "oninput" && n[s = I] && (s = "oninputCapture"), n[s] = M;
|
|
1569
1569
|
}
|
|
1570
1570
|
}
|
|
1571
1571
|
r == "select" && n.multiple && Array.isArray(n.value) && (n.value = oi(i.children).forEach(function(j) {
|
|
1572
1572
|
j.props.selected = n.value.indexOf(j.props.value) != -1;
|
|
1573
1573
|
})), r == "select" && n.defaultValue != null && (n.value = oi(i.children).forEach(function(j) {
|
|
1574
1574
|
j.props.selected = n.multiple ? n.defaultValue.indexOf(j.props.value) != -1 : n.defaultValue == j.props.value;
|
|
1575
|
-
})), i.class && !i.className ? (n.class = i.class, Object.defineProperty(n, "className",
|
|
1576
|
-
})(e), e.$$typeof =
|
|
1575
|
+
})), i.class && !i.className ? (n.class = i.class, Object.defineProperty(n, "className", jM)) : (i.className && !i.class || i.class && i.className) && (n.class = n.className = i.className), t.props = n;
|
|
1576
|
+
})(e), e.$$typeof = Hn, tn && tn(e);
|
|
1577
1577
|
};
|
|
1578
|
-
var
|
|
1578
|
+
var rn = q.__r;
|
|
1579
1579
|
q.__r = function(e) {
|
|
1580
|
-
|
|
1580
|
+
rn && rn(e), Kt = e.__c;
|
|
1581
1581
|
};
|
|
1582
|
-
var
|
|
1582
|
+
var nn = q.diffed;
|
|
1583
1583
|
q.diffed = function(e) {
|
|
1584
|
-
|
|
1584
|
+
nn && nn(e);
|
|
1585
1585
|
var t = e.props, i = e.__e;
|
|
1586
1586
|
i != null && e.type === "textarea" && "value" in t && t.value !== i.value && (i.value = t.value == null ? "" : t.value), Kt = null;
|
|
1587
1587
|
};
|
|
1588
|
-
var
|
|
1588
|
+
var $n = { ReactCurrentDispatcher: { current: { readContext: function(e) {
|
|
1589
1589
|
return Kt.__n[e.__c].props.value;
|
|
1590
|
-
}, useCallback: Vt, useContext: vi, useDebugValue: Ft, useDeferredValue: Jt, useEffect: Ve, useId: Bt, useImperativeHandle:
|
|
1591
|
-
function
|
|
1592
|
-
return
|
|
1590
|
+
}, useCallback: Vt, useContext: vi, useDebugValue: Ft, useDeferredValue: Jt, useEffect: Ve, useId: Bt, useImperativeHandle: Pt, useInsertionEffect: Xt, useLayoutEffect: ci, useMemo: Ji, useReducer: Dt, useRef: Je, useState: we, useSyncExternalStore: Ht, useTransition: $t } } }, yM = "18.3.1";
|
|
1591
|
+
function Xn(e) {
|
|
1592
|
+
return Ke.bind(null, e);
|
|
1593
1593
|
}
|
|
1594
1594
|
function Xi(e) {
|
|
1595
|
-
return !!e && e.$$typeof ===
|
|
1595
|
+
return !!e && e.$$typeof === Hn;
|
|
1596
1596
|
}
|
|
1597
|
-
function
|
|
1598
|
-
return Xi(e) && e.type ===
|
|
1597
|
+
function Kn(e) {
|
|
1598
|
+
return Xi(e) && e.type === Ce;
|
|
1599
1599
|
}
|
|
1600
|
-
function
|
|
1600
|
+
function qn(e) {
|
|
1601
1601
|
return !!e && !!e.displayName && (typeof e.displayName == "string" || e.displayName instanceof String) && e.displayName.startsWith("Memo(");
|
|
1602
1602
|
}
|
|
1603
|
-
function
|
|
1604
|
-
return Xi(e) ?
|
|
1603
|
+
function eo(e) {
|
|
1604
|
+
return Xi(e) ? Es.apply(null, arguments) : e;
|
|
1605
1605
|
}
|
|
1606
|
-
function
|
|
1606
|
+
function io(e) {
|
|
1607
1607
|
return !!e.__k && (Ai(null, e), !0);
|
|
1608
1608
|
}
|
|
1609
|
-
function
|
|
1609
|
+
function to(e) {
|
|
1610
1610
|
return e && (e.base || e.nodeType === 1 && e) || null;
|
|
1611
1611
|
}
|
|
1612
|
-
var
|
|
1612
|
+
var ro = function(e, t) {
|
|
1613
1613
|
return e(t);
|
|
1614
|
-
},
|
|
1614
|
+
}, no = function(e, t) {
|
|
1615
1615
|
return e(t);
|
|
1616
|
-
},
|
|
1617
|
-
const
|
|
1616
|
+
}, oo = Ce, so = Xi, X = { useState: we, useId: Bt, useReducer: Dt, useEffect: Ve, useLayoutEffect: ci, useInsertionEffect: Xt, useTransition: $t, useDeferredValue: Jt, useSyncExternalStore: Ht, startTransition: Gt, useRef: Je, useImperativeHandle: Pt, useMemo: Ji, useCallback: Vt, useContext: vi, useDebugValue: Ft, version: "18.3.1", Children: Pn, render: Gn, hydrate: Jn, unmountComponentAtNode: io, createPortal: Zn, createElement: Ke, createContext: Rt, createFactory: Xn, cloneElement: eo, createRef: xn, Fragment: Ce, isValidElement: Xi, isElement: so, isFragment: Kn, isMemo: qn, findDOMNode: to, Component: Ge, PureComponent: lt, memo: Yn, forwardRef: Rn, flushSync: no, unstable_batchedUpdates: ro, StrictMode: oo, Suspense: Vi, SuspenseList: _i, lazy: Wn, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: $n };
|
|
1617
|
+
const fM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1618
1618
|
__proto__: null,
|
|
1619
|
-
Children:
|
|
1619
|
+
Children: Pn,
|
|
1620
1620
|
Component: Ge,
|
|
1621
|
-
Fragment:
|
|
1621
|
+
Fragment: Ce,
|
|
1622
1622
|
PureComponent: lt,
|
|
1623
|
-
StrictMode:
|
|
1623
|
+
StrictMode: oo,
|
|
1624
1624
|
Suspense: Vi,
|
|
1625
1625
|
SuspenseList: _i,
|
|
1626
|
-
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:
|
|
1627
|
-
cloneElement:
|
|
1628
|
-
createContext:
|
|
1629
|
-
createElement:
|
|
1630
|
-
createFactory:
|
|
1631
|
-
createPortal:
|
|
1632
|
-
createRef:
|
|
1626
|
+
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: $n,
|
|
1627
|
+
cloneElement: eo,
|
|
1628
|
+
createContext: Rt,
|
|
1629
|
+
createElement: Ke,
|
|
1630
|
+
createFactory: Xn,
|
|
1631
|
+
createPortal: Zn,
|
|
1632
|
+
createRef: xn,
|
|
1633
1633
|
default: X,
|
|
1634
|
-
findDOMNode:
|
|
1635
|
-
flushSync:
|
|
1636
|
-
forwardRef:
|
|
1637
|
-
hydrate:
|
|
1638
|
-
isElement:
|
|
1639
|
-
isFragment:
|
|
1640
|
-
isMemo:
|
|
1634
|
+
findDOMNode: to,
|
|
1635
|
+
flushSync: no,
|
|
1636
|
+
forwardRef: Rn,
|
|
1637
|
+
hydrate: Jn,
|
|
1638
|
+
isElement: so,
|
|
1639
|
+
isFragment: Kn,
|
|
1640
|
+
isMemo: qn,
|
|
1641
1641
|
isValidElement: Xi,
|
|
1642
|
-
lazy:
|
|
1643
|
-
memo:
|
|
1644
|
-
render:
|
|
1642
|
+
lazy: Wn,
|
|
1643
|
+
memo: Yn,
|
|
1644
|
+
render: Gn,
|
|
1645
1645
|
startTransition: Gt,
|
|
1646
|
-
unmountComponentAtNode:
|
|
1647
|
-
unstable_batchedUpdates:
|
|
1646
|
+
unmountComponentAtNode: io,
|
|
1647
|
+
unstable_batchedUpdates: ro,
|
|
1648
1648
|
useCallback: Vt,
|
|
1649
1649
|
useContext: vi,
|
|
1650
1650
|
useDebugValue: Ft,
|
|
1651
1651
|
useDeferredValue: Jt,
|
|
1652
1652
|
useEffect: Ve,
|
|
1653
|
-
useErrorBoundary:
|
|
1653
|
+
useErrorBoundary: _s,
|
|
1654
1654
|
useId: Bt,
|
|
1655
|
-
useImperativeHandle:
|
|
1655
|
+
useImperativeHandle: Pt,
|
|
1656
1656
|
useInsertionEffect: Xt,
|
|
1657
1657
|
useLayoutEffect: ci,
|
|
1658
1658
|
useMemo: Ji,
|
|
@@ -1661,11 +1661,11 @@ const Ta = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1661
1661
|
useState: we,
|
|
1662
1662
|
useSyncExternalStore: Ht,
|
|
1663
1663
|
useTransition: $t,
|
|
1664
|
-
version:
|
|
1664
|
+
version: yM
|
|
1665
1665
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1666
1666
|
var Ki = (e) => e.type === "checkbox", fi = (e) => e instanceof Date, Qe = (e) => e == null;
|
|
1667
|
-
const
|
|
1668
|
-
var Ee = (e) => !Qe(e) && !Array.isArray(e) &&
|
|
1667
|
+
const Mo = (e) => typeof e == "object";
|
|
1668
|
+
var Ee = (e) => !Qe(e) && !Array.isArray(e) && Mo(e) && !fi(e), ao = (e) => Ee(e) && e.target ? Ki(e.target) ? e.target.checked : e.target.value : e, AM = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, uo = (e, t) => e.has(AM(t)), TM = (e) => {
|
|
1669
1669
|
const t = e.constructor && e.constructor.prototype;
|
|
1670
1670
|
return Ee(t) && t.hasOwnProperty("isPrototypeOf");
|
|
1671
1671
|
}, qt = typeof window != "undefined" && typeof window.HTMLElement != "undefined" && typeof document != "undefined";
|
|
@@ -1676,7 +1676,7 @@ function xe(e) {
|
|
|
1676
1676
|
if (qt && (e instanceof Blob || t))
|
|
1677
1677
|
return e;
|
|
1678
1678
|
const i = Array.isArray(e);
|
|
1679
|
-
if (!i && !(Ee(e) &&
|
|
1679
|
+
if (!i && !(Ee(e) && TM(e)))
|
|
1680
1680
|
return e;
|
|
1681
1681
|
const r = i ? [] : Object.create(Object.getPrototypeOf(e));
|
|
1682
1682
|
for (const n in e)
|
|
@@ -1688,19 +1688,19 @@ var yt = (e) => /^\w*$/.test(e), ye = (e) => e === void 0, er = (e) => Array.isA
|
|
|
1688
1688
|
return i;
|
|
1689
1689
|
const r = (yt(t) ? [t] : ir(t)).reduce((n, o) => Qe(n) ? n : n[o], e);
|
|
1690
1690
|
return ye(r) || r === e ? ye(e[t]) ? i : e[t] : r;
|
|
1691
|
-
},
|
|
1691
|
+
}, Re = (e) => typeof e == "boolean", ke = (e) => typeof e == "function", De = (e, t, i) => {
|
|
1692
1692
|
let r = -1;
|
|
1693
1693
|
const n = yt(t) ? [t] : ir(t), o = n.length, s = o - 1;
|
|
1694
1694
|
for (; ++r < o; ) {
|
|
1695
|
-
const
|
|
1695
|
+
const M = n[r];
|
|
1696
1696
|
let I = i;
|
|
1697
1697
|
if (r !== s) {
|
|
1698
|
-
const j = e[
|
|
1698
|
+
const j = e[M];
|
|
1699
1699
|
I = Ee(j) || Array.isArray(j) ? j : isNaN(+n[r + 1]) ? {} : [];
|
|
1700
1700
|
}
|
|
1701
|
-
if (
|
|
1701
|
+
if (M === "__proto__" || M === "constructor" || M === "prototype")
|
|
1702
1702
|
return;
|
|
1703
|
-
e[
|
|
1703
|
+
e[M] = I, e = e[M];
|
|
1704
1704
|
}
|
|
1705
1705
|
};
|
|
1706
1706
|
const ct = {
|
|
@@ -1713,7 +1713,7 @@ const ct = {
|
|
|
1713
1713
|
onSubmit: "onSubmit",
|
|
1714
1714
|
onTouched: "onTouched",
|
|
1715
1715
|
all: "all"
|
|
1716
|
-
},
|
|
1716
|
+
}, ti = {
|
|
1717
1717
|
max: "max",
|
|
1718
1718
|
min: "min",
|
|
1719
1719
|
maxLength: "maxLength",
|
|
@@ -1721,10 +1721,10 @@ const ct = {
|
|
|
1721
1721
|
pattern: "pattern",
|
|
1722
1722
|
required: "required",
|
|
1723
1723
|
validate: "validate"
|
|
1724
|
-
},
|
|
1725
|
-
|
|
1726
|
-
const tr = () => X.useContext(
|
|
1727
|
-
var
|
|
1724
|
+
}, lo = X.createContext(null);
|
|
1725
|
+
lo.displayName = "HookFormControlContext";
|
|
1726
|
+
const tr = () => X.useContext(lo);
|
|
1727
|
+
var co = (e, t, i, r = !0) => {
|
|
1728
1728
|
const n = {
|
|
1729
1729
|
defaultValues: t._defaultValues
|
|
1730
1730
|
};
|
|
@@ -1738,8 +1738,8 @@ var Do = (e, t, i, r = !0) => {
|
|
|
1738
1738
|
return n;
|
|
1739
1739
|
};
|
|
1740
1740
|
const rr = typeof window != "undefined" ? X.useLayoutEffect : X.useEffect;
|
|
1741
|
-
function
|
|
1742
|
-
const t = tr(), { control: i = t, disabled: r, name: n, exact: o } = e || {}, [s,
|
|
1741
|
+
function zM(e) {
|
|
1742
|
+
const t = tr(), { control: i = t, disabled: r, name: n, exact: o } = e || {}, [s, M] = X.useState(i._formState), I = X.useRef({
|
|
1743
1743
|
isDirty: !1,
|
|
1744
1744
|
isLoading: !1,
|
|
1745
1745
|
dirtyFields: !1,
|
|
@@ -1754,15 +1754,15 @@ function xa(e) {
|
|
|
1754
1754
|
formState: I.current,
|
|
1755
1755
|
exact: o,
|
|
1756
1756
|
callback: (j) => {
|
|
1757
|
-
!r &&
|
|
1757
|
+
!r && M(T(T({}, i._formState), j));
|
|
1758
1758
|
}
|
|
1759
1759
|
}), [n, r, o]), X.useEffect(() => {
|
|
1760
1760
|
I.current.isValid && i._setValid(!0);
|
|
1761
|
-
}, [i]), X.useMemo(() =>
|
|
1761
|
+
}, [i]), X.useMemo(() => co(s, i, I.current, !1), [s, i]);
|
|
1762
1762
|
}
|
|
1763
|
-
var
|
|
1763
|
+
var Pe = (e) => typeof e == "string", St = (e, t, i, r, n) => Pe(e) ? (r && t.watch.add(e), v(i, e, n)) : Array.isArray(e) ? e.map((o) => (r && t.watch.add(o), v(i, o))) : (r && (t.watchAll = !0), i), Ct = (e) => Qe(e) || !Mo(e);
|
|
1764
1764
|
function He(e, t, i = /* @__PURE__ */ new WeakSet()) {
|
|
1765
|
-
if (
|
|
1765
|
+
if (Ct(e) || Ct(t))
|
|
1766
1766
|
return Object.is(e, t);
|
|
1767
1767
|
if (fi(e) && fi(t))
|
|
1768
1768
|
return Object.is(e.getTime(), t.getTime());
|
|
@@ -1777,33 +1777,33 @@ function He(e, t, i = /* @__PURE__ */ new WeakSet()) {
|
|
|
1777
1777
|
if (!n.includes(o))
|
|
1778
1778
|
return !1;
|
|
1779
1779
|
if (o !== "ref") {
|
|
1780
|
-
const
|
|
1781
|
-
if (fi(s) && fi(
|
|
1780
|
+
const M = t[o];
|
|
1781
|
+
if (fi(s) && fi(M) || Ee(s) && Ee(M) || Array.isArray(s) && Array.isArray(M) ? !He(s, M, i) : !Object.is(s, M))
|
|
1782
1782
|
return !1;
|
|
1783
1783
|
}
|
|
1784
1784
|
}
|
|
1785
1785
|
return !0;
|
|
1786
1786
|
}
|
|
1787
|
-
function
|
|
1788
|
-
const t = tr(), { control: i = t, name: r, defaultValue: n, disabled: o, exact: s, compute:
|
|
1789
|
-
j.current =
|
|
1787
|
+
function OM(e) {
|
|
1788
|
+
const t = tr(), { control: i = t, name: r, defaultValue: n, disabled: o, exact: s, compute: M } = e || {}, I = X.useRef(n), j = X.useRef(M), O = X.useRef(void 0), c = X.useRef(i), a = X.useRef(r);
|
|
1789
|
+
j.current = M;
|
|
1790
1790
|
const [N, D] = X.useState(() => {
|
|
1791
1791
|
const x = i._getWatch(r, I.current);
|
|
1792
1792
|
return j.current ? j.current(x) : x;
|
|
1793
1793
|
}), y = X.useCallback((x) => {
|
|
1794
|
-
const
|
|
1795
|
-
return j.current ? j.current(
|
|
1794
|
+
const C = St(r, i._names, x || i._formValues, !1, I.current);
|
|
1795
|
+
return j.current ? j.current(C) : C;
|
|
1796
1796
|
}, [i._formValues, i._names, r]), z = X.useCallback((x) => {
|
|
1797
1797
|
if (!o) {
|
|
1798
|
-
const
|
|
1798
|
+
const C = St(r, i._names, x || i._formValues, !1, I.current);
|
|
1799
1799
|
if (j.current) {
|
|
1800
|
-
const K = j.current(
|
|
1800
|
+
const K = j.current(C);
|
|
1801
1801
|
He(K, O.current) || (D(K), O.current = K);
|
|
1802
1802
|
} else
|
|
1803
|
-
D(
|
|
1803
|
+
D(C);
|
|
1804
1804
|
}
|
|
1805
1805
|
}, [i._formValues, i._names, o, r]);
|
|
1806
|
-
rr(() => ((c.current !== i || !He(
|
|
1806
|
+
rr(() => ((c.current !== i || !He(a.current, r)) && (c.current = i, a.current = r, z()), i._subscribe({
|
|
1807
1807
|
name: r,
|
|
1808
1808
|
formState: {
|
|
1809
1809
|
values: !0
|
|
@@ -1813,7 +1813,7 @@ function ha(e) {
|
|
|
1813
1813
|
z(x.values);
|
|
1814
1814
|
}
|
|
1815
1815
|
})), [i, s, r, z]), X.useEffect(() => i._removeUnmounted());
|
|
1816
|
-
const m = c.current !== i, _ =
|
|
1816
|
+
const m = c.current !== i, _ = a.current, p = X.useMemo(() => {
|
|
1817
1817
|
if (o)
|
|
1818
1818
|
return null;
|
|
1819
1819
|
const x = !m && !He(_, r);
|
|
@@ -1821,20 +1821,20 @@ function ha(e) {
|
|
|
1821
1821
|
}, [o, m, r, _, y]);
|
|
1822
1822
|
return p !== null ? p : N;
|
|
1823
1823
|
}
|
|
1824
|
-
function
|
|
1825
|
-
const t = tr(), { name: i, disabled: r, control: n = t, shouldUnregister: o, defaultValue: s, exact:
|
|
1824
|
+
function xM(e) {
|
|
1825
|
+
const t = tr(), { name: i, disabled: r, control: n = t, shouldUnregister: o, defaultValue: s, exact: M = !0 } = e, I = uo(n._names.array, i), j = X.useMemo(() => v(n._formValues, i, v(n._defaultValues, i, s)), [n, i, s]), O = OM({
|
|
1826
1826
|
control: n,
|
|
1827
1827
|
name: i,
|
|
1828
1828
|
defaultValue: j,
|
|
1829
|
-
exact:
|
|
1830
|
-
}), c =
|
|
1829
|
+
exact: M
|
|
1830
|
+
}), c = zM({
|
|
1831
1831
|
control: n,
|
|
1832
1832
|
name: i,
|
|
1833
|
-
exact:
|
|
1834
|
-
}),
|
|
1833
|
+
exact: M
|
|
1834
|
+
}), a = X.useRef(e), N = X.useRef(void 0), D = X.useRef(n.register(i, T(G(T({}, e.rules), {
|
|
1835
1835
|
value: O
|
|
1836
|
-
}),
|
|
1837
|
-
|
|
1836
|
+
}), Re(e.disabled) ? { disabled: e.disabled } : {})));
|
|
1837
|
+
a.current = e;
|
|
1838
1838
|
const y = X.useMemo(() => Object.defineProperties({}, {
|
|
1839
1839
|
invalid: {
|
|
1840
1840
|
enumerable: !0,
|
|
@@ -1858,7 +1858,7 @@ function Ea(e) {
|
|
|
1858
1858
|
}
|
|
1859
1859
|
}), [c, i]), z = X.useCallback((x) => D.current.onChange({
|
|
1860
1860
|
target: {
|
|
1861
|
-
value:
|
|
1861
|
+
value: ao(x),
|
|
1862
1862
|
name: i
|
|
1863
1863
|
},
|
|
1864
1864
|
type: ct.CHANGE
|
|
@@ -1869,8 +1869,8 @@ function Ea(e) {
|
|
|
1869
1869
|
},
|
|
1870
1870
|
type: ct.BLUR
|
|
1871
1871
|
}), [i, n._formValues]), _ = X.useCallback((x) => {
|
|
1872
|
-
const
|
|
1873
|
-
|
|
1872
|
+
const C = v(n._fields, i);
|
|
1873
|
+
C && C._f && x && (C._f.ref = {
|
|
1874
1874
|
focus: () => ke(x.focus) && x.focus(),
|
|
1875
1875
|
select: () => ke(x.select) && x.select(),
|
|
1876
1876
|
setCustomValidity: (K) => ke(x.setCustomValidity) && x.setCustomValidity(K),
|
|
@@ -1879,20 +1879,20 @@ function Ea(e) {
|
|
|
1879
1879
|
}, [n._fields, i]), p = X.useMemo(() => G(T({
|
|
1880
1880
|
name: i,
|
|
1881
1881
|
value: O
|
|
1882
|
-
},
|
|
1882
|
+
}, Re(r) || c.disabled ? { disabled: c.disabled || r } : {}), {
|
|
1883
1883
|
onChange: z,
|
|
1884
1884
|
onBlur: m,
|
|
1885
1885
|
ref: _
|
|
1886
1886
|
}), [i, r, c.disabled, z, m, _, O]);
|
|
1887
1887
|
return X.useEffect(() => {
|
|
1888
|
-
const x = n._options.shouldUnregister || o,
|
|
1889
|
-
|
|
1890
|
-
const K = (le,
|
|
1888
|
+
const x = n._options.shouldUnregister || o, C = N.current;
|
|
1889
|
+
C && C !== i && !I && n.unregister(C), n.register(i, T(T({}, a.current.rules), Re(a.current.disabled) ? { disabled: a.current.disabled } : {}));
|
|
1890
|
+
const K = (le, P) => {
|
|
1891
1891
|
const se = v(n._fields, le);
|
|
1892
|
-
se && se._f && (se._f.mount =
|
|
1892
|
+
se && se._f && (se._f.mount = P);
|
|
1893
1893
|
};
|
|
1894
1894
|
if (K(i, !0), x) {
|
|
1895
|
-
const le = xe(v(n._options.defaultValues, i,
|
|
1895
|
+
const le = xe(v(n._options.defaultValues, i, a.current.defaultValue));
|
|
1896
1896
|
De(n._defaultValues, i, le), ye(v(n._formValues, i)) && De(n._formValues, i, le);
|
|
1897
1897
|
}
|
|
1898
1898
|
return !I && n.register(i), N.current = i, () => {
|
|
@@ -1909,13 +1909,13 @@ function Ea(e) {
|
|
|
1909
1909
|
fieldState: y
|
|
1910
1910
|
}), [p, c, y]);
|
|
1911
1911
|
}
|
|
1912
|
-
const
|
|
1913
|
-
|
|
1914
|
-
var
|
|
1912
|
+
const go = (e) => e.render(xM(e)), hM = X.createContext(null);
|
|
1913
|
+
hM.displayName = "HookFormContext";
|
|
1914
|
+
var EM = (e, t, i, r, n) => t ? G(T({}, i[e]), {
|
|
1915
1915
|
types: G(T({}, i[e] && i[e].types ? i[e].types : {}), {
|
|
1916
1916
|
[r]: n || !0
|
|
1917
1917
|
})
|
|
1918
|
-
}) : {}, Fi = (e) => Array.isArray(e) ? e : [e],
|
|
1918
|
+
}) : {}, Fi = (e) => Array.isArray(e) ? e : [e], on = () => {
|
|
1919
1919
|
let e = [];
|
|
1920
1920
|
return {
|
|
1921
1921
|
get observers() {
|
|
@@ -1935,13 +1935,13 @@ var wa = (e, t, i, r, n) => t ? G(T({}, i[e]), {
|
|
|
1935
1935
|
}
|
|
1936
1936
|
};
|
|
1937
1937
|
};
|
|
1938
|
-
function
|
|
1938
|
+
function No(e, t) {
|
|
1939
1939
|
const i = {};
|
|
1940
1940
|
for (const r in e)
|
|
1941
1941
|
if (e.hasOwnProperty(r)) {
|
|
1942
1942
|
const n = e[r], o = t[r];
|
|
1943
1943
|
if (n && Ee(n) && o) {
|
|
1944
|
-
const s =
|
|
1944
|
+
const s = No(n, o);
|
|
1945
1945
|
Ee(s) && (i[r] = s);
|
|
1946
1946
|
} else e[r] && (i[r] = o);
|
|
1947
1947
|
}
|
|
@@ -1952,37 +1952,37 @@ var Le = (e) => Ee(e) && !Object.keys(e).length, nr = (e) => e.type === "file",
|
|
|
1952
1952
|
return !1;
|
|
1953
1953
|
const t = e ? e.ownerDocument : 0;
|
|
1954
1954
|
return e instanceof (t && t.defaultView ? t.defaultView.HTMLElement : HTMLElement);
|
|
1955
|
-
},
|
|
1956
|
-
function
|
|
1955
|
+
}, Do = (e) => e.type === "select-multiple", or = (e) => e.type === "radio", mM = (e) => or(e) || Ki(e), zt = (e) => gt(e) && e.isConnected;
|
|
1956
|
+
function wM(e, t) {
|
|
1957
1957
|
const i = t.slice(0, -1).length;
|
|
1958
1958
|
let r = 0;
|
|
1959
1959
|
for (; r < i; )
|
|
1960
1960
|
e = ye(e) ? r++ : e[t[r++]];
|
|
1961
1961
|
return e;
|
|
1962
1962
|
}
|
|
1963
|
-
function
|
|
1963
|
+
function pM(e) {
|
|
1964
1964
|
for (const t in e)
|
|
1965
1965
|
if (e.hasOwnProperty(t) && !ye(e[t]))
|
|
1966
1966
|
return !1;
|
|
1967
1967
|
return !0;
|
|
1968
1968
|
}
|
|
1969
1969
|
function he(e, t) {
|
|
1970
|
-
const i = Array.isArray(t) ? t : yt(t) ? [t] : ir(t), r = i.length === 1 ? e :
|
|
1971
|
-
return r && delete r[o], n !== 0 && (Ee(r) && Le(r) || Array.isArray(r) &&
|
|
1970
|
+
const i = Array.isArray(t) ? t : yt(t) ? [t] : ir(t), r = i.length === 1 ? e : wM(e, i), n = i.length - 1, o = i[n];
|
|
1971
|
+
return r && delete r[o], n !== 0 && (Ee(r) && Le(r) || Array.isArray(r) && pM(r)) && he(e, i.slice(0, -1)), e;
|
|
1972
1972
|
}
|
|
1973
|
-
var
|
|
1973
|
+
var _M = (e) => {
|
|
1974
1974
|
for (const t in e)
|
|
1975
1975
|
if (ke(e[t]))
|
|
1976
1976
|
return !0;
|
|
1977
1977
|
return !1;
|
|
1978
1978
|
};
|
|
1979
|
-
function
|
|
1980
|
-
return Array.isArray(e) || Ee(e) && !
|
|
1979
|
+
function Io(e) {
|
|
1980
|
+
return Array.isArray(e) || Ee(e) && !_M(e);
|
|
1981
1981
|
}
|
|
1982
1982
|
function vt(e, t = {}) {
|
|
1983
1983
|
for (const i in e) {
|
|
1984
1984
|
const r = e[i];
|
|
1985
|
-
|
|
1985
|
+
Io(r) ? (t[i] = Array.isArray(r) ? [] : {}, vt(r, t[i])) : ye(r) || (t[i] = !0);
|
|
1986
1986
|
}
|
|
1987
1987
|
return t;
|
|
1988
1988
|
}
|
|
@@ -1990,8 +1990,8 @@ function pi(e, t, i) {
|
|
|
1990
1990
|
i || (i = vt(t));
|
|
1991
1991
|
for (const r in e) {
|
|
1992
1992
|
const n = e[r];
|
|
1993
|
-
if (
|
|
1994
|
-
ye(t) ||
|
|
1993
|
+
if (Io(n))
|
|
1994
|
+
ye(t) || Ct(i[r]) ? i[r] = vt(n, Array.isArray(n) ? [] : {}) : pi(n, Qe(t) ? {} : t[r], i[r]);
|
|
1995
1995
|
else {
|
|
1996
1996
|
const o = t[r];
|
|
1997
1997
|
i[r] = !He(n, o);
|
|
@@ -1999,11 +1999,11 @@ function pi(e, t, i) {
|
|
|
1999
1999
|
}
|
|
2000
2000
|
return i;
|
|
2001
2001
|
}
|
|
2002
|
-
const
|
|
2002
|
+
const sn = {
|
|
2003
2003
|
value: !1,
|
|
2004
2004
|
isValid: !1
|
|
2005
2005
|
}, Mn = { value: !0, isValid: !0 };
|
|
2006
|
-
var
|
|
2006
|
+
var jo = (e) => {
|
|
2007
2007
|
if (Array.isArray(e)) {
|
|
2008
2008
|
if (e.length > 1) {
|
|
2009
2009
|
const t = e.filter((i) => i && i.checked && !i.disabled).map((i) => i.value);
|
|
@@ -2012,23 +2012,23 @@ var Ao = (e) => {
|
|
|
2012
2012
|
return e[0].checked && !e[0].disabled ? (
|
|
2013
2013
|
// @ts-expect-error expected to work in the browser
|
|
2014
2014
|
e[0].attributes && !ye(e[0].attributes.value) ? ye(e[0].value) || e[0].value === "" ? Mn : { value: e[0].value, isValid: !0 } : Mn
|
|
2015
|
-
) :
|
|
2015
|
+
) : sn;
|
|
2016
2016
|
}
|
|
2017
|
-
return
|
|
2018
|
-
},
|
|
2019
|
-
const
|
|
2017
|
+
return sn;
|
|
2018
|
+
}, yo = (e, { valueAsNumber: t, valueAsDate: i, setValueAs: r }) => ye(e) ? e : t ? e === "" ? NaN : e && +e : i && Pe(e) ? new Date(e) : r ? r(e) : e;
|
|
2019
|
+
const an = {
|
|
2020
2020
|
isValid: !1,
|
|
2021
2021
|
value: null
|
|
2022
2022
|
};
|
|
2023
|
-
var
|
|
2023
|
+
var fo = (e) => Array.isArray(e) ? e.reduce((t, i) => i && i.checked && !i.disabled ? {
|
|
2024
2024
|
isValid: !0,
|
|
2025
2025
|
value: i.value
|
|
2026
|
-
} : t,
|
|
2027
|
-
function
|
|
2026
|
+
} : t, an) : an;
|
|
2027
|
+
function un(e) {
|
|
2028
2028
|
const t = e.ref;
|
|
2029
|
-
return nr(t) ? t.files : or(t) ?
|
|
2029
|
+
return nr(t) ? t.files : or(t) ? fo(e.refs).value : Do(t) ? [...t.selectedOptions].map(({ value: i }) => i) : Ki(t) ? jo(e.refs).value : yo(ye(t.value) ? e.ref.value : t.value, e);
|
|
2030
2030
|
}
|
|
2031
|
-
var
|
|
2031
|
+
var bM = (e, t, i, r) => {
|
|
2032
2032
|
const n = {};
|
|
2033
2033
|
for (const o of e) {
|
|
2034
2034
|
const s = v(t, o);
|
|
@@ -2040,24 +2040,24 @@ var Sa = (e, t, i, r) => {
|
|
|
2040
2040
|
fields: n,
|
|
2041
2041
|
shouldUseNativeValidation: r
|
|
2042
2042
|
};
|
|
2043
|
-
}, dt = (e) => e instanceof RegExp, Ui = (e) => ye(e) ? e : dt(e) ? e.source : Ee(e) ? dt(e.value) ? e.value.source : e.value : e,
|
|
2043
|
+
}, dt = (e) => e instanceof RegExp, Ui = (e) => ye(e) ? e : dt(e) ? e.source : Ee(e) ? dt(e.value) ? e.value.source : e.value : e, ln = (e) => ({
|
|
2044
2044
|
isOnSubmit: !e || e === Ze.onSubmit,
|
|
2045
2045
|
isOnBlur: e === Ze.onBlur,
|
|
2046
2046
|
isOnChange: e === Ze.onChange,
|
|
2047
2047
|
isOnAll: e === Ze.all,
|
|
2048
2048
|
isOnTouch: e === Ze.onTouched
|
|
2049
2049
|
});
|
|
2050
|
-
const
|
|
2051
|
-
var
|
|
2050
|
+
const cn = "AsyncFunction";
|
|
2051
|
+
var SM = (e) => !!e && !!e.validate && !!(ke(e.validate) && e.validate.constructor.name === cn || Ee(e.validate) && Object.values(e.validate).find((t) => t.constructor.name === cn)), CM = (e) => e.mount && (e.required || e.min || e.max || e.maxLength || e.minLength || e.pattern || e.validate), gn = (e, t, i) => !i && (t.watchAll || t.watch.has(e) || [...t.watch].some((r) => e.startsWith(r) && /^\.\w+/.test(e.slice(r.length))));
|
|
2052
2052
|
const Bi = (e, t, i, r) => {
|
|
2053
2053
|
for (const o of i || Object.keys(e)) {
|
|
2054
2054
|
const s = v(e, o);
|
|
2055
2055
|
if (s) {
|
|
2056
|
-
const n = s, { _f:
|
|
2057
|
-
if (
|
|
2058
|
-
if (
|
|
2056
|
+
const n = s, { _f: M } = n, I = Di(n, ["_f"]);
|
|
2057
|
+
if (M) {
|
|
2058
|
+
if (M.refs && M.refs[0] && t(M.refs[0], o) && !r)
|
|
2059
2059
|
return !0;
|
|
2060
|
-
if (
|
|
2060
|
+
if (M.ref && t(M.ref, M.name) && !r)
|
|
2061
2061
|
return !0;
|
|
2062
2062
|
if (Bi(I, t))
|
|
2063
2063
|
break;
|
|
@@ -2066,7 +2066,7 @@ const Bi = (e, t, i, r) => {
|
|
|
2066
2066
|
}
|
|
2067
2067
|
}
|
|
2068
2068
|
};
|
|
2069
|
-
function
|
|
2069
|
+
function dn(e, t, i) {
|
|
2070
2070
|
const r = v(e, i);
|
|
2071
2071
|
if (r || yt(i))
|
|
2072
2072
|
return {
|
|
@@ -2075,18 +2075,18 @@ function Nn(e, t, i) {
|
|
|
2075
2075
|
};
|
|
2076
2076
|
const n = i.split(".");
|
|
2077
2077
|
for (; n.length; ) {
|
|
2078
|
-
const o = n.join("."), s = v(t, o),
|
|
2078
|
+
const o = n.join("."), s = v(t, o), M = v(e, o);
|
|
2079
2079
|
if (s && !Array.isArray(s) && i !== o)
|
|
2080
2080
|
return { name: i };
|
|
2081
|
-
if (
|
|
2081
|
+
if (M && M.type)
|
|
2082
2082
|
return {
|
|
2083
2083
|
name: o,
|
|
2084
|
-
error:
|
|
2084
|
+
error: M
|
|
2085
2085
|
};
|
|
2086
|
-
if (
|
|
2086
|
+
if (M && M.root && M.root.type)
|
|
2087
2087
|
return {
|
|
2088
2088
|
name: `${o}.root`,
|
|
2089
|
-
error:
|
|
2089
|
+
error: M.root
|
|
2090
2090
|
};
|
|
2091
2091
|
n.pop();
|
|
2092
2092
|
}
|
|
@@ -2094,103 +2094,103 @@ function Nn(e, t, i) {
|
|
|
2094
2094
|
name: i
|
|
2095
2095
|
};
|
|
2096
2096
|
}
|
|
2097
|
-
var
|
|
2097
|
+
var vM = (e, t, i, r) => {
|
|
2098
2098
|
i(e);
|
|
2099
2099
|
const s = e, { name: n } = s, o = Di(s, ["name"]);
|
|
2100
|
-
return Le(o) || Object.keys(o).length >= Object.keys(t).length || Object.keys(o).find((
|
|
2101
|
-
},
|
|
2100
|
+
return Le(o) || Object.keys(o).length >= Object.keys(t).length || Object.keys(o).find((M) => t[M] === (!r || Ze.all));
|
|
2101
|
+
}, LM = (e, t, i) => !e || !t || e === t || Fi(e).some((r) => r && (i ? r === t : r.startsWith(t) || t.startsWith(r))), kM = (e, t, i, r, n) => n.isOnAll ? !1 : !i && n.isOnTouch ? !(t || e) : (i ? r.isOnBlur : n.isOnBlur) ? !e : (i ? r.isOnChange : n.isOnChange) ? e : !0, UM = (e, t) => !er(v(e, t)).length && he(e, t), QM = (e, t, i) => {
|
|
2102
2102
|
const r = Fi(v(e, i));
|
|
2103
2103
|
return De(r, "root", t[i]), De(e, i, r), e;
|
|
2104
2104
|
};
|
|
2105
|
-
function
|
|
2106
|
-
if (
|
|
2105
|
+
function Nn(e, t, i = "validate") {
|
|
2106
|
+
if (Pe(e) || Array.isArray(e) && e.every(Pe) || Re(e) && !e)
|
|
2107
2107
|
return {
|
|
2108
2108
|
type: i,
|
|
2109
|
-
message:
|
|
2109
|
+
message: Pe(e) ? e : "",
|
|
2110
2110
|
ref: t
|
|
2111
2111
|
};
|
|
2112
2112
|
}
|
|
2113
2113
|
var wi = (e) => Ee(e) && !dt(e) ? e : {
|
|
2114
2114
|
value: e,
|
|
2115
2115
|
message: ""
|
|
2116
|
-
},
|
|
2117
|
-
const { ref: s, refs:
|
|
2116
|
+
}, Dn = (e, t, i, r, n, o) => Ie(null, null, function* () {
|
|
2117
|
+
const { ref: s, refs: M, required: I, maxLength: j, minLength: O, min: c, max: a, pattern: N, validate: D, name: y, valueAsNumber: z, mount: m } = e._f, _ = v(i, y);
|
|
2118
2118
|
if (!m || t.has(y))
|
|
2119
2119
|
return {};
|
|
2120
|
-
const p =
|
|
2121
|
-
n && p.reportValidity && (p.setCustomValidity(
|
|
2122
|
-
},
|
|
2123
|
-
const je = L ? J :
|
|
2124
|
-
|
|
2120
|
+
const p = M ? M[0] : s, x = (L) => {
|
|
2121
|
+
n && p.reportValidity && (p.setCustomValidity(Re(L) ? "" : L || ""), p.reportValidity());
|
|
2122
|
+
}, C = {}, K = or(s), le = Ki(s), P = K || le, se = (z || nr(s)) && ye(s.value) && ye(_) || gt(s) && s.value === "" || _ === "" || Array.isArray(_) && !_.length, U = EM.bind(null, y, r, C), ee = (L, J, Me, Ne = ti.maxLength, fe = ti.minLength) => {
|
|
2123
|
+
const je = L ? J : Me;
|
|
2124
|
+
C[y] = T({
|
|
2125
2125
|
type: L ? Ne : fe,
|
|
2126
2126
|
message: je,
|
|
2127
2127
|
ref: s
|
|
2128
2128
|
}, U(L ? Ne : fe, je));
|
|
2129
2129
|
};
|
|
2130
|
-
if (o ? !Array.isArray(_) || !_.length : I && (!
|
|
2131
|
-
const { value: L, message: J } =
|
|
2132
|
-
if (L && (
|
|
2133
|
-
type:
|
|
2130
|
+
if (o ? !Array.isArray(_) || !_.length : I && (!P && (se || Qe(_)) || Re(_) && !_ || le && !jo(M).isValid || K && !fo(M).isValid)) {
|
|
2131
|
+
const { value: L, message: J } = Pe(I) ? { value: !!I, message: I } : wi(I);
|
|
2132
|
+
if (L && (C[y] = T({
|
|
2133
|
+
type: ti.required,
|
|
2134
2134
|
message: J,
|
|
2135
2135
|
ref: p
|
|
2136
|
-
}, U(
|
|
2137
|
-
return x(J),
|
|
2136
|
+
}, U(ti.required, J)), !r))
|
|
2137
|
+
return x(J), C;
|
|
2138
2138
|
}
|
|
2139
|
-
if (!se && (!Qe(c) || !Qe(
|
|
2139
|
+
if (!se && (!Qe(c) || !Qe(a))) {
|
|
2140
2140
|
let L, J;
|
|
2141
|
-
const
|
|
2141
|
+
const Me = wi(a), Ne = wi(c);
|
|
2142
2142
|
if (!Qe(_) && !isNaN(_)) {
|
|
2143
2143
|
const fe = s.valueAsNumber || _ && +_;
|
|
2144
|
-
Qe(
|
|
2144
|
+
Qe(Me.value) || (L = fe > Me.value), Qe(Ne.value) || (J = fe < Ne.value);
|
|
2145
2145
|
} else {
|
|
2146
2146
|
const fe = s.valueAsDate || new Date(_), je = (H) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + H), Ye = s.type == "time", ce = s.type == "week";
|
|
2147
|
-
|
|
2147
|
+
Pe(Me.value) && _ && (L = Ye ? je(_) > je(Me.value) : ce ? _ > Me.value : fe > new Date(Me.value)), Pe(Ne.value) && _ && (J = Ye ? je(_) < je(Ne.value) : ce ? _ < Ne.value : fe < new Date(Ne.value));
|
|
2148
2148
|
}
|
|
2149
|
-
if ((L || J) && (ee(!!L,
|
|
2150
|
-
return x(
|
|
2149
|
+
if ((L || J) && (ee(!!L, Me.message, Ne.message, ti.max, ti.min), !r))
|
|
2150
|
+
return x(C[y].message), C;
|
|
2151
2151
|
}
|
|
2152
|
-
if ((j || O) && !se && (
|
|
2153
|
-
const L = wi(j), J = wi(O),
|
|
2154
|
-
if ((
|
|
2155
|
-
return x(
|
|
2152
|
+
if ((j || O) && !se && (Pe(_) || o && Array.isArray(_))) {
|
|
2153
|
+
const L = wi(j), J = wi(O), Me = !Qe(L.value) && _.length > +L.value, Ne = !Qe(J.value) && _.length < +J.value;
|
|
2154
|
+
if ((Me || Ne) && (ee(Me, L.message, J.message), !r))
|
|
2155
|
+
return x(C[y].message), C;
|
|
2156
2156
|
}
|
|
2157
|
-
if (N && !se &&
|
|
2157
|
+
if (N && !se && Pe(_)) {
|
|
2158
2158
|
const { value: L, message: J } = wi(N);
|
|
2159
|
-
if (dt(L) && !_.match(L) && (
|
|
2160
|
-
type:
|
|
2159
|
+
if (dt(L) && !_.match(L) && (C[y] = T({
|
|
2160
|
+
type: ti.pattern,
|
|
2161
2161
|
message: J,
|
|
2162
2162
|
ref: s
|
|
2163
|
-
}, U(
|
|
2164
|
-
return x(J),
|
|
2163
|
+
}, U(ti.pattern, J)), !r))
|
|
2164
|
+
return x(J), C;
|
|
2165
2165
|
}
|
|
2166
2166
|
if (D) {
|
|
2167
2167
|
if (ke(D)) {
|
|
2168
|
-
const L = yield D(_, i), J =
|
|
2169
|
-
if (J && (
|
|
2170
|
-
return x(J.message),
|
|
2168
|
+
const L = yield D(_, i), J = Nn(L, p);
|
|
2169
|
+
if (J && (C[y] = T(T({}, J), U(ti.validate, J.message)), !r))
|
|
2170
|
+
return x(J.message), C;
|
|
2171
2171
|
} else if (Ee(D)) {
|
|
2172
2172
|
let L = {};
|
|
2173
2173
|
for (const J in D) {
|
|
2174
2174
|
if (!Le(L) && !r)
|
|
2175
2175
|
break;
|
|
2176
|
-
const
|
|
2177
|
-
|
|
2176
|
+
const Me = Nn(yield D[J](_, i), p, J);
|
|
2177
|
+
Me && (L = T(T({}, Me), U(J, Me.message)), x(Me.message), r && (C[y] = L));
|
|
2178
2178
|
}
|
|
2179
|
-
if (!Le(L) && (
|
|
2179
|
+
if (!Le(L) && (C[y] = T({
|
|
2180
2180
|
ref: p
|
|
2181
2181
|
}, L), !r))
|
|
2182
|
-
return
|
|
2182
|
+
return C;
|
|
2183
2183
|
}
|
|
2184
2184
|
}
|
|
2185
|
-
return x(!0),
|
|
2185
|
+
return x(!0), C;
|
|
2186
2186
|
});
|
|
2187
|
-
const
|
|
2187
|
+
const YM = {
|
|
2188
2188
|
mode: Ze.onSubmit,
|
|
2189
2189
|
reValidateMode: Ze.onChange,
|
|
2190
2190
|
shouldFocusError: !0
|
|
2191
2191
|
};
|
|
2192
|
-
function
|
|
2193
|
-
let t = T(T({},
|
|
2192
|
+
function RM(e = {}) {
|
|
2193
|
+
let t = T(T({}, YM), e), i = {
|
|
2194
2194
|
submitCount: 0,
|
|
2195
2195
|
isDirty: !1,
|
|
2196
2196
|
isReady: !1,
|
|
@@ -2210,7 +2210,7 @@ function Va(e = {}) {
|
|
|
2210
2210
|
mount: !1,
|
|
2211
2211
|
watch: !1,
|
|
2212
2212
|
keepIsValid: !1
|
|
2213
|
-
},
|
|
2213
|
+
}, M = {
|
|
2214
2214
|
mount: /* @__PURE__ */ new Set(),
|
|
2215
2215
|
disabled: /* @__PURE__ */ new Set(),
|
|
2216
2216
|
unMount: /* @__PURE__ */ new Set(),
|
|
@@ -2226,41 +2226,41 @@ function Va(e = {}) {
|
|
|
2226
2226
|
isValid: !1,
|
|
2227
2227
|
errors: !1
|
|
2228
2228
|
}, c = T({}, O);
|
|
2229
|
-
let
|
|
2229
|
+
let a = T({}, c);
|
|
2230
2230
|
const N = {
|
|
2231
|
-
array:
|
|
2232
|
-
state:
|
|
2231
|
+
array: on(),
|
|
2232
|
+
state: on()
|
|
2233
2233
|
}, D = t.criteriaMode === Ze.all, y = (g) => (A) => {
|
|
2234
2234
|
clearTimeout(j), j = setTimeout(g, A);
|
|
2235
2235
|
}, z = (g) => Ie(null, null, function* () {
|
|
2236
|
-
if (!s.keepIsValid && !t.disabled && (c.isValid ||
|
|
2236
|
+
if (!s.keepIsValid && !t.disabled && (c.isValid || a.isValid || g)) {
|
|
2237
2237
|
let A;
|
|
2238
|
-
t.resolver ? (A = Le((yield
|
|
2238
|
+
t.resolver ? (A = Le((yield P()).errors), m()) : A = yield U(r, !0), A !== i.isValid && N.state.next({
|
|
2239
2239
|
isValid: A
|
|
2240
2240
|
});
|
|
2241
2241
|
}
|
|
2242
2242
|
}), m = (g, A) => {
|
|
2243
|
-
!t.disabled && (c.isValidating || c.validatingFields ||
|
|
2243
|
+
!t.disabled && (c.isValidating || c.validatingFields || a.isValidating || a.validatingFields) && ((g || Array.from(M.mount)).forEach((h) => {
|
|
2244
2244
|
h && (A ? De(i.validatingFields, h, A) : he(i.validatingFields, h));
|
|
2245
2245
|
}), N.state.next({
|
|
2246
2246
|
validatingFields: i.validatingFields,
|
|
2247
2247
|
isValidating: !Le(i.validatingFields)
|
|
2248
2248
|
}));
|
|
2249
|
-
}, _ = (g, A = [], h, k,
|
|
2249
|
+
}, _ = (g, A = [], h, k, S = !0, b = !0) => {
|
|
2250
2250
|
if (k && h && !t.disabled) {
|
|
2251
2251
|
if (s.action = !0, b && Array.isArray(v(r, g))) {
|
|
2252
|
-
const
|
|
2253
|
-
|
|
2252
|
+
const R = h(v(r, g), k.argA, k.argB);
|
|
2253
|
+
S && De(r, g, R);
|
|
2254
2254
|
}
|
|
2255
2255
|
if (b && Array.isArray(v(i.errors, g))) {
|
|
2256
|
-
const
|
|
2257
|
-
|
|
2256
|
+
const R = h(v(i.errors, g), k.argA, k.argB);
|
|
2257
|
+
S && De(i.errors, g, R), UM(i.errors, g);
|
|
2258
2258
|
}
|
|
2259
|
-
if ((c.touchedFields ||
|
|
2260
|
-
const
|
|
2261
|
-
|
|
2259
|
+
if ((c.touchedFields || a.touchedFields) && b && Array.isArray(v(i.touchedFields, g))) {
|
|
2260
|
+
const R = h(v(i.touchedFields, g), k.argA, k.argB);
|
|
2261
|
+
S && De(i.touchedFields, g, R);
|
|
2262
2262
|
}
|
|
2263
|
-
(c.dirtyFields ||
|
|
2263
|
+
(c.dirtyFields || a.dirtyFields) && (i.dirtyFields = pi(n, o)), N.state.next({
|
|
2264
2264
|
name: g,
|
|
2265
2265
|
isDirty: L(g, A),
|
|
2266
2266
|
dirtyFields: i.dirtyFields,
|
|
@@ -2278,43 +2278,43 @@ function Va(e = {}) {
|
|
|
2278
2278
|
errors: i.errors,
|
|
2279
2279
|
isValid: !1
|
|
2280
2280
|
});
|
|
2281
|
-
},
|
|
2282
|
-
const
|
|
2283
|
-
if (
|
|
2281
|
+
}, C = (g, A, h, k) => {
|
|
2282
|
+
const S = v(r, g);
|
|
2283
|
+
if (S) {
|
|
2284
2284
|
const b = v(o, g, ye(h) ? v(n, g) : h);
|
|
2285
|
-
ye(b) || k && k.defaultChecked || A ? De(o, g, A ? b :
|
|
2285
|
+
ye(b) || k && k.defaultChecked || A ? De(o, g, A ? b : un(S._f)) : Ne(g, b), s.mount && !s.action && z();
|
|
2286
2286
|
}
|
|
2287
|
-
}, K = (g, A, h, k,
|
|
2288
|
-
let b = !1,
|
|
2287
|
+
}, K = (g, A, h, k, S) => {
|
|
2288
|
+
let b = !1, R = !1;
|
|
2289
2289
|
const B = {
|
|
2290
2290
|
name: g
|
|
2291
2291
|
};
|
|
2292
2292
|
if (!t.disabled) {
|
|
2293
2293
|
if (!h || k) {
|
|
2294
|
-
(c.isDirty ||
|
|
2294
|
+
(c.isDirty || a.isDirty) && (R = i.isDirty, i.isDirty = B.isDirty = L(), b = R !== B.isDirty);
|
|
2295
2295
|
const W = He(v(n, g), A);
|
|
2296
|
-
|
|
2296
|
+
R = !!v(i.dirtyFields, g), W ? he(i.dirtyFields, g) : De(i.dirtyFields, g, !0), B.dirtyFields = i.dirtyFields, b = b || (c.dirtyFields || a.dirtyFields) && R !== !W;
|
|
2297
2297
|
}
|
|
2298
2298
|
if (h) {
|
|
2299
2299
|
const W = v(i.touchedFields, g);
|
|
2300
|
-
W || (De(i.touchedFields, g, h), B.touchedFields = i.touchedFields, b = b || (c.touchedFields ||
|
|
2300
|
+
W || (De(i.touchedFields, g, h), B.touchedFields = i.touchedFields, b = b || (c.touchedFields || a.touchedFields) && W !== h);
|
|
2301
2301
|
}
|
|
2302
|
-
b &&
|
|
2302
|
+
b && S && N.state.next(B);
|
|
2303
2303
|
}
|
|
2304
2304
|
return b ? B : {};
|
|
2305
2305
|
}, le = (g, A, h, k) => {
|
|
2306
|
-
const
|
|
2307
|
-
if (t.delayError && h ? (I = y(() => p(g, h)), I(t.delayError)) : (clearTimeout(j), I = null, h ? De(i.errors, g, h) : he(i.errors, g)), (h ? !He(
|
|
2308
|
-
const
|
|
2306
|
+
const S = v(i.errors, g), b = (c.isValid || a.isValid) && Re(A) && i.isValid !== A;
|
|
2307
|
+
if (t.delayError && h ? (I = y(() => p(g, h)), I(t.delayError)) : (clearTimeout(j), I = null, h ? De(i.errors, g, h) : he(i.errors, g)), (h ? !He(S, h) : S) || !Le(k) || b) {
|
|
2308
|
+
const R = G(T(T({}, k), b && Re(A) ? { isValid: A } : {}), {
|
|
2309
2309
|
errors: i.errors,
|
|
2310
2310
|
name: g
|
|
2311
2311
|
});
|
|
2312
|
-
i = T(T({}, i),
|
|
2312
|
+
i = T(T({}, i), R), N.state.next(R);
|
|
2313
2313
|
}
|
|
2314
|
-
},
|
|
2315
|
-
return m(g, !0), yield t.resolver(o, t.context,
|
|
2314
|
+
}, P = (g) => Ie(null, null, function* () {
|
|
2315
|
+
return m(g, !0), yield t.resolver(o, t.context, bM(g || M.mount, r, t.criteriaMode, t.shouldUseNativeValidation));
|
|
2316
2316
|
}), se = (g) => Ie(null, null, function* () {
|
|
2317
|
-
const { errors: A } = yield
|
|
2317
|
+
const { errors: A } = yield P(g);
|
|
2318
2318
|
if (m(g), g)
|
|
2319
2319
|
for (const h of g) {
|
|
2320
2320
|
const k = v(A, h);
|
|
@@ -2323,61 +2323,61 @@ function Va(e = {}) {
|
|
|
2323
2323
|
else
|
|
2324
2324
|
i.errors = A;
|
|
2325
2325
|
return A;
|
|
2326
|
-
}), U = (k,
|
|
2326
|
+
}), U = (k, S, ...b) => Ie(null, [k, S, ...b], function* (g, A, h = {
|
|
2327
2327
|
valid: !0
|
|
2328
2328
|
}) {
|
|
2329
2329
|
for (const B in g) {
|
|
2330
2330
|
const W = g[B];
|
|
2331
2331
|
if (W) {
|
|
2332
|
-
const
|
|
2333
|
-
if (
|
|
2334
|
-
const $ =
|
|
2335
|
-
V && c.validatingFields && m([
|
|
2336
|
-
const te = yield
|
|
2337
|
-
if (V && c.validatingFields && m([
|
|
2332
|
+
const R = W, { _f: ae } = R, Z = Di(R, ["_f"]);
|
|
2333
|
+
if (ae) {
|
|
2334
|
+
const $ = M.array.has(ae.name), V = W._f && SM(W._f);
|
|
2335
|
+
V && c.validatingFields && m([ae.name], !0);
|
|
2336
|
+
const te = yield Dn(W, M.disabled, o, D, t.shouldUseNativeValidation && !A, $);
|
|
2337
|
+
if (V && c.validatingFields && m([ae.name]), te[ae.name] && (h.valid = !1, A || e.shouldUseNativeValidation))
|
|
2338
2338
|
break;
|
|
2339
|
-
!A && (v(te,
|
|
2339
|
+
!A && (v(te, ae.name) ? $ ? QM(i.errors, te, ae.name) : De(i.errors, ae.name, te[ae.name]) : he(i.errors, ae.name));
|
|
2340
2340
|
}
|
|
2341
2341
|
!Le(Z) && (yield U(Z, A, h));
|
|
2342
2342
|
}
|
|
2343
2343
|
}
|
|
2344
2344
|
return h.valid;
|
|
2345
2345
|
}), ee = () => {
|
|
2346
|
-
for (const g of
|
|
2346
|
+
for (const g of M.unMount) {
|
|
2347
2347
|
const A = v(r, g);
|
|
2348
2348
|
A && (A._f.refs ? A._f.refs.every((h) => !zt(h)) : !zt(A._f.ref)) && Fe(g);
|
|
2349
2349
|
}
|
|
2350
|
-
|
|
2351
|
-
}, L = (g, A) => !t.disabled && (g && A && De(o, g, A), !He(ge(), n)), J = (g, A, h) =>
|
|
2350
|
+
M.unMount = /* @__PURE__ */ new Set();
|
|
2351
|
+
}, L = (g, A) => !t.disabled && (g && A && De(o, g, A), !He(ge(), n)), J = (g, A, h) => St(g, M, T({}, s.mount ? o : ye(A) ? n : Pe(g) ? { [g]: A } : A), h, A), Me = (g) => er(v(s.mount ? o : n, g, t.shouldUnregister ? v(n, g, []) : [])), Ne = (g, A, h = {}) => {
|
|
2352
2352
|
const k = v(r, g);
|
|
2353
|
-
let
|
|
2353
|
+
let S = A;
|
|
2354
2354
|
if (k) {
|
|
2355
2355
|
const b = k._f;
|
|
2356
|
-
b && (!b.disabled && De(o, g,
|
|
2357
|
-
(!
|
|
2358
|
-
}) : b.refs.forEach((
|
|
2356
|
+
b && (!b.disabled && De(o, g, yo(A, b)), S = gt(b.ref) && Qe(A) ? "" : A, Do(b.ref) ? [...b.ref.options].forEach((R) => R.selected = S.includes(R.value)) : b.refs ? Ki(b.ref) ? b.refs.forEach((R) => {
|
|
2357
|
+
(!R.defaultChecked || !R.disabled) && (Array.isArray(S) ? R.checked = !!S.find((B) => B === R.value) : R.checked = S === R.value || !!S);
|
|
2358
|
+
}) : b.refs.forEach((R) => R.checked = R.value === S) : nr(b.ref) ? b.ref.value = "" : (b.ref.value = S, b.ref.type || N.state.next({
|
|
2359
2359
|
name: g,
|
|
2360
2360
|
values: xe(o)
|
|
2361
2361
|
})));
|
|
2362
2362
|
}
|
|
2363
|
-
(h.shouldDirty || h.shouldTouch) && K(g,
|
|
2363
|
+
(h.shouldDirty || h.shouldTouch) && K(g, S, h.shouldTouch, h.shouldDirty, !0), h.shouldValidate && H(g);
|
|
2364
2364
|
}, fe = (g, A, h) => {
|
|
2365
2365
|
for (const k in A) {
|
|
2366
2366
|
if (!A.hasOwnProperty(k))
|
|
2367
2367
|
return;
|
|
2368
|
-
const
|
|
2369
|
-
(
|
|
2368
|
+
const S = A[k], b = g + "." + k, R = v(r, b);
|
|
2369
|
+
(M.array.has(g) || Ee(S) || R && !R._f) && !fi(S) ? fe(b, S, h) : Ne(b, S, h);
|
|
2370
2370
|
}
|
|
2371
2371
|
}, je = (g, A, h = {}) => {
|
|
2372
|
-
const k = v(r, g),
|
|
2373
|
-
De(o, g, b),
|
|
2372
|
+
const k = v(r, g), S = M.array.has(g), b = xe(A);
|
|
2373
|
+
De(o, g, b), S ? (N.array.next({
|
|
2374
2374
|
name: g,
|
|
2375
2375
|
values: xe(o)
|
|
2376
|
-
}), (c.isDirty || c.dirtyFields ||
|
|
2376
|
+
}), (c.isDirty || c.dirtyFields || a.isDirty || a.dirtyFields) && h.shouldDirty && N.state.next({
|
|
2377
2377
|
name: g,
|
|
2378
2378
|
dirtyFields: pi(n, o),
|
|
2379
2379
|
isDirty: L(g, b)
|
|
2380
|
-
})) : k && !k._f && !Qe(b) ? fe(g, b, h) : Ne(g, b, h),
|
|
2380
|
+
})) : k && !k._f && !Qe(b) ? fe(g, b, h) : Ne(g, b, h), gn(g, M) ? N.state.next(G(T({}, i), {
|
|
2381
2381
|
name: g,
|
|
2382
2382
|
values: xe(o)
|
|
2383
2383
|
})) : N.state.next({
|
|
@@ -2388,49 +2388,49 @@ function Va(e = {}) {
|
|
|
2388
2388
|
s.mount = !0;
|
|
2389
2389
|
const A = g.target;
|
|
2390
2390
|
let h = A.name, k = !0;
|
|
2391
|
-
const
|
|
2391
|
+
const S = v(r, h), b = (W) => {
|
|
2392
2392
|
k = Number.isNaN(W) || fi(W) && isNaN(W.getTime()) || He(W, v(o, h, W));
|
|
2393
|
-
},
|
|
2394
|
-
if (
|
|
2395
|
-
let W,
|
|
2396
|
-
const Z = A.type ?
|
|
2397
|
-
De(o, h, Z), $ ? (!A || !A.readOnly) && (
|
|
2393
|
+
}, R = ln(t.mode), B = ln(t.reValidateMode);
|
|
2394
|
+
if (S) {
|
|
2395
|
+
let W, ae;
|
|
2396
|
+
const Z = A.type ? un(S._f) : ao(g), $ = g.type === ct.BLUR || g.type === ct.FOCUS_OUT, V = !CM(S._f) && !t.resolver && !v(i.errors, h) && !S._f.deps || kM($, v(i.touchedFields, h), i.isSubmitted, B, R), te = gn(h, M, $);
|
|
2397
|
+
De(o, h, Z), $ ? (!A || !A.readOnly) && (S._f.onBlur && S._f.onBlur(g), I && I(0)) : S._f.onChange && S._f.onChange(g);
|
|
2398
2398
|
const be = K(h, Z, $), pe = !Le(be) || te;
|
|
2399
2399
|
if (!$ && N.state.next({
|
|
2400
2400
|
name: h,
|
|
2401
2401
|
type: g.type,
|
|
2402
2402
|
values: xe(o)
|
|
2403
2403
|
}), V)
|
|
2404
|
-
return (c.isValid ||
|
|
2404
|
+
return (c.isValid || a.isValid) && (t.mode === "onBlur" ? $ && z() : $ || z()), pe && N.state.next(T({ name: h }, te ? {} : be));
|
|
2405
2405
|
if (!$ && te && N.state.next(T({}, i)), t.resolver) {
|
|
2406
|
-
const { errors: oe } = yield
|
|
2406
|
+
const { errors: oe } = yield P([h]);
|
|
2407
2407
|
if (m([h]), b(Z), k) {
|
|
2408
|
-
const F =
|
|
2409
|
-
W =
|
|
2408
|
+
const F = dn(i.errors, r, h), Se = dn(oe, r, F.name || h);
|
|
2409
|
+
W = Se.error, h = Se.name, ae = Le(oe);
|
|
2410
2410
|
}
|
|
2411
2411
|
} else
|
|
2412
|
-
m([h], !0), W = (yield
|
|
2413
|
-
k && (
|
|
2412
|
+
m([h], !0), W = (yield Dn(S, M.disabled, o, D, t.shouldUseNativeValidation))[h], m([h]), b(Z), k && (W ? ae = !1 : (c.isValid || a.isValid) && (ae = yield U(r, !0)));
|
|
2413
|
+
k && (S._f.deps && (!Array.isArray(S._f.deps) || S._f.deps.length > 0) && H(S._f.deps), le(h, ae, W, be));
|
|
2414
2414
|
}
|
|
2415
2415
|
}), ce = (g, A) => {
|
|
2416
2416
|
if (v(i.errors, A) && g.focus)
|
|
2417
2417
|
return g.focus(), 1;
|
|
2418
2418
|
}, H = (h, ...k) => Ie(null, [h, ...k], function* (g, A = {}) {
|
|
2419
|
-
let
|
|
2420
|
-
const
|
|
2419
|
+
let S, b;
|
|
2420
|
+
const R = Fi(g);
|
|
2421
2421
|
if (t.resolver) {
|
|
2422
|
-
const B = yield se(ye(g) ? g :
|
|
2423
|
-
|
|
2424
|
-
} else g ? (b = (yield Promise.all(
|
|
2422
|
+
const B = yield se(ye(g) ? g : R);
|
|
2423
|
+
S = Le(B), b = g ? !R.some((W) => v(B, W)) : S;
|
|
2424
|
+
} else g ? (b = (yield Promise.all(R.map((B) => Ie(null, null, function* () {
|
|
2425
2425
|
const W = v(r, B);
|
|
2426
2426
|
return yield U(W && W._f ? { [B]: W } : W);
|
|
2427
|
-
})))).every(Boolean), !(!b && !i.isValid) && z()) : b =
|
|
2428
|
-
return N.state.next(G(T(T({}, !
|
|
2427
|
+
})))).every(Boolean), !(!b && !i.isValid) && z()) : b = S = yield U(r);
|
|
2428
|
+
return N.state.next(G(T(T({}, !Pe(g) || (c.isValid || a.isValid) && S !== i.isValid ? {} : { name: g }), t.resolver || !g ? { isValid: S } : {}), {
|
|
2429
2429
|
errors: i.errors
|
|
2430
|
-
})), A.shouldFocus && !b && Bi(r, ce, g ?
|
|
2430
|
+
})), A.shouldFocus && !b && Bi(r, ce, g ? R : M.mount), b;
|
|
2431
2431
|
}), ge = (g, A) => {
|
|
2432
2432
|
let h = T({}, s.mount ? o : n);
|
|
2433
|
-
return A && (h =
|
|
2433
|
+
return A && (h = No(A.dirtyFields ? i.dirtyFields : i.touchedFields, h)), ye(g) ? h : Pe(g) ? v(h, g) : g.map((k) => v(h, k));
|
|
2434
2434
|
}, ze = (g, A) => ({
|
|
2435
2435
|
invalid: !!v((A || i).errors, g),
|
|
2436
2436
|
isDirty: !!v((A || i).dirtyFields, g),
|
|
@@ -2442,7 +2442,7 @@ function Va(e = {}) {
|
|
|
2442
2442
|
errors: g ? i.errors : {}
|
|
2443
2443
|
});
|
|
2444
2444
|
}, ve = (g, A, h) => {
|
|
2445
|
-
const k = (v(r, g, { _f: {} })._f || {}).ref,
|
|
2445
|
+
const k = (v(r, g, { _f: {} })._f || {}).ref, ae = v(i.errors, g) || {}, { ref: b, message: R, type: B } = ae, W = Di(ae, ["ref", "message", "type"]);
|
|
2446
2446
|
De(i.errors, g, G(T(T({}, W), A), {
|
|
2447
2447
|
ref: k
|
|
2448
2448
|
})), N.state.next({
|
|
@@ -2454,37 +2454,37 @@ function Va(e = {}) {
|
|
|
2454
2454
|
next: (h) => "values" in h && g(J(void 0, A), h)
|
|
2455
2455
|
}) : J(g, A, !0), re = (g) => N.state.subscribe({
|
|
2456
2456
|
next: (A) => {
|
|
2457
|
-
|
|
2457
|
+
LM(g.name, A.name, g.exact) && vM(A, g.formState || c, ii, g.reRenderRoot) && g.callback(G(T(T({
|
|
2458
2458
|
values: T({}, o)
|
|
2459
2459
|
}, i), A), {
|
|
2460
2460
|
defaultValues: n
|
|
2461
2461
|
}));
|
|
2462
2462
|
}
|
|
2463
|
-
}).unsubscribe,
|
|
2463
|
+
}).unsubscribe, qe = (g) => (s.mount = !0, a = T(T({}, a), g.formState), re(G(T({}, g), {
|
|
2464
2464
|
formState: T(T({}, O), g.formState)
|
|
2465
2465
|
}))), Fe = (g, A = {}) => {
|
|
2466
|
-
for (const h of g ? Fi(g) :
|
|
2467
|
-
|
|
2466
|
+
for (const h of g ? Fi(g) : M.mount)
|
|
2467
|
+
M.mount.delete(h), M.array.delete(h), A.keepValue || (he(r, h), he(o, h)), !A.keepError && he(i.errors, h), !A.keepDirty && he(i.dirtyFields, h), !A.keepTouched && he(i.touchedFields, h), !A.keepIsValidating && he(i.validatingFields, h), !t.shouldUnregister && !A.keepDefaultValue && he(n, h);
|
|
2468
2468
|
N.state.next({
|
|
2469
2469
|
values: xe(o)
|
|
2470
2470
|
}), N.state.next(T(T({}, i), A.keepDirty ? { isDirty: L() } : {})), !A.keepIsValid && z();
|
|
2471
|
-
},
|
|
2472
|
-
if (
|
|
2473
|
-
const
|
|
2474
|
-
g ?
|
|
2471
|
+
}, Mi = ({ disabled: g, name: A }) => {
|
|
2472
|
+
if (Re(g) && s.mount || g || M.disabled.has(A)) {
|
|
2473
|
+
const S = M.disabled.has(A) !== !!g;
|
|
2474
|
+
g ? M.disabled.add(A) : M.disabled.delete(A), S && s.mount && !s.action && z();
|
|
2475
2475
|
}
|
|
2476
2476
|
}, Be = (g, A = {}) => {
|
|
2477
2477
|
let h = v(r, g);
|
|
2478
|
-
const k =
|
|
2478
|
+
const k = Re(A.disabled) || Re(t.disabled);
|
|
2479
2479
|
return De(r, g, G(T({}, h || {}), {
|
|
2480
2480
|
_f: T(G(T({}, h && h._f ? h._f : { ref: { name: g } }), {
|
|
2481
2481
|
name: g,
|
|
2482
2482
|
mount: !0
|
|
2483
2483
|
}), A)
|
|
2484
|
-
})),
|
|
2485
|
-
disabled:
|
|
2484
|
+
})), M.mount.add(g), h ? Mi({
|
|
2485
|
+
disabled: Re(A.disabled) ? A.disabled : t.disabled,
|
|
2486
2486
|
name: g
|
|
2487
|
-
}) :
|
|
2487
|
+
}) : C(g, !0, A.value), G(T(T({}, k ? { disabled: A.disabled || t.disabled } : {}), t.progressive ? {
|
|
2488
2488
|
required: !!A.required,
|
|
2489
2489
|
min: Ui(A.min),
|
|
2490
2490
|
max: Ui(A.max),
|
|
@@ -2495,14 +2495,14 @@ function Va(e = {}) {
|
|
|
2495
2495
|
name: g,
|
|
2496
2496
|
onChange: Ye,
|
|
2497
2497
|
onBlur: Ye,
|
|
2498
|
-
ref: (
|
|
2499
|
-
if (
|
|
2498
|
+
ref: (S) => {
|
|
2499
|
+
if (S) {
|
|
2500
2500
|
Be(g, A), h = v(r, g);
|
|
2501
|
-
const b = ye(
|
|
2502
|
-
if (
|
|
2501
|
+
const b = ye(S.value) && S.querySelectorAll && S.querySelectorAll("input,select,textarea")[0] || S, R = mM(b), B = h._f.refs || [];
|
|
2502
|
+
if (R ? B.find((W) => W === b) : b === h._f.ref)
|
|
2503
2503
|
return;
|
|
2504
2504
|
De(r, g, {
|
|
2505
|
-
_f: T(T({}, h._f),
|
|
2505
|
+
_f: T(T({}, h._f), R ? {
|
|
2506
2506
|
refs: [
|
|
2507
2507
|
...B.filter(zt),
|
|
2508
2508
|
b,
|
|
@@ -2510,43 +2510,43 @@ function Va(e = {}) {
|
|
|
2510
2510
|
],
|
|
2511
2511
|
ref: { type: b.type, name: g }
|
|
2512
2512
|
} : { ref: b })
|
|
2513
|
-
}),
|
|
2513
|
+
}), C(g, !1, void 0, b);
|
|
2514
2514
|
} else
|
|
2515
|
-
h = v(r, g, {}), h._f && (h._f.mount = !1), (t.shouldUnregister || A.shouldUnregister) && !(
|
|
2515
|
+
h = v(r, g, {}), h._f && (h._f.mount = !1), (t.shouldUnregister || A.shouldUnregister) && !(uo(M.array, g) && s.action) && M.unMount.add(g);
|
|
2516
2516
|
}
|
|
2517
2517
|
});
|
|
2518
|
-
},
|
|
2519
|
-
|
|
2518
|
+
}, ei = () => t.shouldFocusError && Bi(r, ce, M.mount), di = (g) => {
|
|
2519
|
+
Re(g) && (N.state.next({ disabled: g }), Bi(r, (A, h) => {
|
|
2520
2520
|
const k = v(r, h);
|
|
2521
|
-
k && (A.disabled = k._f.disabled || g, Array.isArray(k._f.refs) && k._f.refs.forEach((
|
|
2522
|
-
|
|
2521
|
+
k && (A.disabled = k._f.disabled || g, Array.isArray(k._f.refs) && k._f.refs.forEach((S) => {
|
|
2522
|
+
S.disabled = k._f.disabled || g;
|
|
2523
2523
|
}));
|
|
2524
2524
|
}, 0, !1));
|
|
2525
2525
|
}, Ni = (g, A) => (h) => Ie(null, null, function* () {
|
|
2526
2526
|
let k;
|
|
2527
2527
|
h && (h.preventDefault && h.preventDefault(), h.persist && h.persist());
|
|
2528
|
-
let
|
|
2528
|
+
let S = xe(o);
|
|
2529
2529
|
if (N.state.next({
|
|
2530
2530
|
isSubmitting: !0
|
|
2531
2531
|
}), t.resolver) {
|
|
2532
|
-
const { errors: b, values:
|
|
2533
|
-
m(), i.errors = b,
|
|
2532
|
+
const { errors: b, values: R } = yield P();
|
|
2533
|
+
m(), i.errors = b, S = xe(R);
|
|
2534
2534
|
} else
|
|
2535
2535
|
yield U(r);
|
|
2536
|
-
if (
|
|
2537
|
-
for (const b of
|
|
2538
|
-
he(
|
|
2536
|
+
if (M.disabled.size)
|
|
2537
|
+
for (const b of M.disabled)
|
|
2538
|
+
he(S, b);
|
|
2539
2539
|
if (he(i.errors, "root"), Le(i.errors)) {
|
|
2540
2540
|
N.state.next({
|
|
2541
2541
|
errors: {}
|
|
2542
2542
|
});
|
|
2543
2543
|
try {
|
|
2544
|
-
yield g(
|
|
2544
|
+
yield g(S, h);
|
|
2545
2545
|
} catch (b) {
|
|
2546
2546
|
k = b;
|
|
2547
2547
|
}
|
|
2548
2548
|
} else
|
|
2549
|
-
A && (yield A(T({}, i.errors), h)),
|
|
2549
|
+
A && (yield A(T({}, i.errors), h)), ei(), setTimeout(ei);
|
|
2550
2550
|
if (N.state.next({
|
|
2551
2551
|
isSubmitted: !0,
|
|
2552
2552
|
isSubmitting: !1,
|
|
@@ -2557,36 +2557,36 @@ function Va(e = {}) {
|
|
|
2557
2557
|
throw k;
|
|
2558
2558
|
}), Oi = (g, A = {}) => {
|
|
2559
2559
|
v(r, g) && (ye(A.defaultValue) ? je(g, xe(v(n, g))) : (je(g, A.defaultValue), De(n, g, xe(A.defaultValue))), A.keepTouched || he(i.touchedFields, g), A.keepDirty || (he(i.dirtyFields, g), i.isDirty = A.defaultValue ? L(g, xe(v(n, g))) : L()), A.keepError || (he(i.errors, g), c.isValid && z()), N.state.next(T({}, i)));
|
|
2560
|
-
},
|
|
2561
|
-
const h = g ? xe(g) : n, k = xe(h),
|
|
2560
|
+
}, ai = (g, A = {}) => {
|
|
2561
|
+
const h = g ? xe(g) : n, k = xe(h), S = Le(g), b = S ? n : k;
|
|
2562
2562
|
if (A.keepDefaultValues || (n = h), !A.keepValues) {
|
|
2563
2563
|
if (A.keepDirtyValues) {
|
|
2564
|
-
const
|
|
2565
|
-
...
|
|
2564
|
+
const R = /* @__PURE__ */ new Set([
|
|
2565
|
+
...M.mount,
|
|
2566
2566
|
...Object.keys(pi(n, o))
|
|
2567
2567
|
]);
|
|
2568
|
-
for (const B of Array.from(
|
|
2569
|
-
const W = v(i.dirtyFields, B),
|
|
2570
|
-
W && !ye(
|
|
2568
|
+
for (const B of Array.from(R)) {
|
|
2569
|
+
const W = v(i.dirtyFields, B), ae = v(o, B), Z = v(b, B);
|
|
2570
|
+
W && !ye(ae) ? De(b, B, ae) : !W && !ye(Z) && je(B, Z);
|
|
2571
2571
|
}
|
|
2572
2572
|
} else {
|
|
2573
2573
|
if (qt && ye(g))
|
|
2574
|
-
for (const
|
|
2575
|
-
const B = v(r,
|
|
2574
|
+
for (const R of M.mount) {
|
|
2575
|
+
const B = v(r, R);
|
|
2576
2576
|
if (B && B._f) {
|
|
2577
2577
|
const W = Array.isArray(B._f.refs) ? B._f.refs[0] : B._f.ref;
|
|
2578
2578
|
if (gt(W)) {
|
|
2579
|
-
const
|
|
2580
|
-
if (
|
|
2581
|
-
|
|
2579
|
+
const ae = W.closest("form");
|
|
2580
|
+
if (ae) {
|
|
2581
|
+
ae.reset();
|
|
2582
2582
|
break;
|
|
2583
2583
|
}
|
|
2584
2584
|
}
|
|
2585
2585
|
}
|
|
2586
2586
|
}
|
|
2587
2587
|
if (A.keepFieldsRef)
|
|
2588
|
-
for (const
|
|
2589
|
-
je(
|
|
2588
|
+
for (const R of M.mount)
|
|
2589
|
+
je(R, v(b, R));
|
|
2590
2590
|
else
|
|
2591
2591
|
r = {};
|
|
2592
2592
|
}
|
|
@@ -2596,8 +2596,8 @@ function Va(e = {}) {
|
|
|
2596
2596
|
values: T({}, b)
|
|
2597
2597
|
});
|
|
2598
2598
|
}
|
|
2599
|
-
|
|
2600
|
-
mount: A.keepDirtyValues ?
|
|
2599
|
+
M = {
|
|
2600
|
+
mount: A.keepDirtyValues ? M.mount : /* @__PURE__ */ new Set(),
|
|
2601
2601
|
unMount: /* @__PURE__ */ new Set(),
|
|
2602
2602
|
array: /* @__PURE__ */ new Set(),
|
|
2603
2603
|
disabled: /* @__PURE__ */ new Set(),
|
|
@@ -2606,24 +2606,24 @@ function Va(e = {}) {
|
|
|
2606
2606
|
focus: ""
|
|
2607
2607
|
}, s.mount = !c.isValid || !!A.keepIsValid || !!A.keepDirtyValues || !t.shouldUnregister && !Le(b), s.watch = !!t.shouldUnregister, s.keepIsValid = !!A.keepIsValid, s.action = !1, A.keepErrors || (i.errors = {}), N.state.next({
|
|
2608
2608
|
submitCount: A.keepSubmitCount ? i.submitCount : 0,
|
|
2609
|
-
isDirty:
|
|
2609
|
+
isDirty: S ? !1 : A.keepDirty ? i.isDirty : !!(A.keepDefaultValues && !He(g, n)),
|
|
2610
2610
|
isSubmitted: A.keepIsSubmitted ? i.isSubmitted : !1,
|
|
2611
|
-
dirtyFields:
|
|
2611
|
+
dirtyFields: S ? {} : A.keepDirtyValues ? A.keepDefaultValues && o ? pi(n, o) : i.dirtyFields : A.keepDefaultValues && g ? pi(n, g) : A.keepDirty ? i.dirtyFields : {},
|
|
2612
2612
|
touchedFields: A.keepTouched ? i.touchedFields : {},
|
|
2613
2613
|
errors: A.keepErrors ? i.errors : {},
|
|
2614
2614
|
isSubmitSuccessful: A.keepIsSubmitSuccessful ? i.isSubmitSuccessful : !1,
|
|
2615
2615
|
isSubmitting: !1,
|
|
2616
2616
|
defaultValues: n
|
|
2617
2617
|
});
|
|
2618
|
-
}, ui = (g, A) =>
|
|
2618
|
+
}, ui = (g, A) => ai(ke(g) ? g(o) : g, T(T({}, t.resetOptions), A)), xi = (g, A = {}) => {
|
|
2619
2619
|
const h = v(r, g), k = h && h._f;
|
|
2620
2620
|
if (k) {
|
|
2621
|
-
const
|
|
2622
|
-
|
|
2623
|
-
|
|
2621
|
+
const S = k.refs ? k.refs[0] : k.ref;
|
|
2622
|
+
S.focus && setTimeout(() => {
|
|
2623
|
+
S.focus(), A.shouldSelect && ke(S.select) && S.select();
|
|
2624
2624
|
});
|
|
2625
2625
|
}
|
|
2626
|
-
},
|
|
2626
|
+
}, ii = (g) => {
|
|
2627
2627
|
i = T(T({}, i), g);
|
|
2628
2628
|
}, We = {
|
|
2629
2629
|
control: {
|
|
@@ -2633,17 +2633,17 @@ function Va(e = {}) {
|
|
|
2633
2633
|
handleSubmit: Ni,
|
|
2634
2634
|
setError: ve,
|
|
2635
2635
|
_subscribe: re,
|
|
2636
|
-
_runSchema:
|
|
2636
|
+
_runSchema: P,
|
|
2637
2637
|
_updateIsValidating: m,
|
|
2638
|
-
_focusError:
|
|
2638
|
+
_focusError: ei,
|
|
2639
2639
|
_getWatch: J,
|
|
2640
2640
|
_getDirty: L,
|
|
2641
2641
|
_setValid: z,
|
|
2642
2642
|
_setFieldArray: _,
|
|
2643
|
-
_setDisabledField:
|
|
2643
|
+
_setDisabledField: Mi,
|
|
2644
2644
|
_setErrors: x,
|
|
2645
|
-
_getFieldArray:
|
|
2646
|
-
_reset:
|
|
2645
|
+
_getFieldArray: Me,
|
|
2646
|
+
_reset: ai,
|
|
2647
2647
|
_resetDefaultValues: () => ke(t.defaultValues) && t.defaultValues().then((g) => {
|
|
2648
2648
|
ui(g, t.resetOptions), N.state.next({
|
|
2649
2649
|
isLoading: !1
|
|
@@ -2669,10 +2669,10 @@ function Va(e = {}) {
|
|
|
2669
2669
|
return n;
|
|
2670
2670
|
},
|
|
2671
2671
|
get _names() {
|
|
2672
|
-
return
|
|
2672
|
+
return M;
|
|
2673
2673
|
},
|
|
2674
2674
|
set _names(g) {
|
|
2675
|
-
|
|
2675
|
+
M = g;
|
|
2676
2676
|
},
|
|
2677
2677
|
get _formState() {
|
|
2678
2678
|
return i;
|
|
@@ -2684,7 +2684,7 @@ function Va(e = {}) {
|
|
|
2684
2684
|
t = T(T({}, t), g);
|
|
2685
2685
|
}
|
|
2686
2686
|
},
|
|
2687
|
-
subscribe:
|
|
2687
|
+
subscribe: qe,
|
|
2688
2688
|
trigger: H,
|
|
2689
2689
|
register: Be,
|
|
2690
2690
|
handleSubmit: Ni,
|
|
@@ -2703,7 +2703,7 @@ function Va(e = {}) {
|
|
|
2703
2703
|
formControl: We
|
|
2704
2704
|
});
|
|
2705
2705
|
}
|
|
2706
|
-
function
|
|
2706
|
+
function PM(e = {}) {
|
|
2707
2707
|
const t = X.useRef(void 0), i = X.useRef(void 0), [r, n] = X.useState({
|
|
2708
2708
|
isDirty: !1,
|
|
2709
2709
|
isValidating: !1,
|
|
@@ -2727,21 +2727,21 @@ function Fa(e = {}) {
|
|
|
2727
2727
|
formState: r
|
|
2728
2728
|
}), e.defaultValues && !ke(e.defaultValues) && e.formControl.reset(e.defaultValues, e.resetOptions);
|
|
2729
2729
|
else {
|
|
2730
|
-
const s =
|
|
2730
|
+
const s = RM(e), { formControl: M } = s, I = Di(s, ["formControl"]);
|
|
2731
2731
|
t.current = G(T({}, I), {
|
|
2732
2732
|
formState: r
|
|
2733
2733
|
});
|
|
2734
2734
|
}
|
|
2735
2735
|
const o = t.current.control;
|
|
2736
2736
|
return o._options = e, rr(() => {
|
|
2737
|
-
const
|
|
2737
|
+
const M = o._subscribe({
|
|
2738
2738
|
formState: o._proxyFormState,
|
|
2739
2739
|
callback: () => n(T({}, o._formState)),
|
|
2740
2740
|
reRenderRoot: !0
|
|
2741
2741
|
});
|
|
2742
2742
|
return n((I) => G(T({}, I), {
|
|
2743
2743
|
isReady: !0
|
|
2744
|
-
})), o._formState.isReady = !0,
|
|
2744
|
+
})), o._formState.isReady = !0, M;
|
|
2745
2745
|
}, [o]), X.useEffect(() => o._disableForm(e.disabled), [o, e.disabled]), X.useEffect(() => {
|
|
2746
2746
|
e.mode && (o._options.mode = e.mode), e.reValidateMode && (o._options.reValidateMode = e.reValidateMode);
|
|
2747
2747
|
}, [o, e.mode, e.reValidateMode]), X.useEffect(() => {
|
|
@@ -2752,29 +2752,29 @@ function Fa(e = {}) {
|
|
|
2752
2752
|
});
|
|
2753
2753
|
}, [o, e.shouldUnregister]), X.useEffect(() => {
|
|
2754
2754
|
if (o._proxyFormState.isDirty) {
|
|
2755
|
-
const
|
|
2756
|
-
|
|
2757
|
-
isDirty:
|
|
2755
|
+
const M = o._getDirty();
|
|
2756
|
+
M !== r.isDirty && o._subjects.state.next({
|
|
2757
|
+
isDirty: M
|
|
2758
2758
|
});
|
|
2759
2759
|
}
|
|
2760
2760
|
}, [o, r.isDirty]), X.useEffect(() => {
|
|
2761
|
-
var
|
|
2761
|
+
var M;
|
|
2762
2762
|
e.values && !He(e.values, i.current) ? (o._reset(e.values, T({
|
|
2763
2763
|
keepFieldsRef: !0
|
|
2764
|
-
}, o._options.resetOptions)), !((
|
|
2764
|
+
}, o._options.resetOptions)), !((M = o._options.resetOptions) === null || M === void 0) && M.keepIsValid || o._setValid(), i.current = e.values, n((I) => T({}, I))) : o._resetDefaultValues();
|
|
2765
2765
|
}, [o, e.values]), X.useEffect(() => {
|
|
2766
2766
|
o._state.mount || (o._setValid(), o._state.mount = !0), o._state.watch && (o._state.watch = !1, o._subjects.state.next(T({}, o._formState))), o._removeUnmounted();
|
|
2767
|
-
}), t.current.formState = X.useMemo(() =>
|
|
2767
|
+
}), t.current.formState = X.useMemo(() => co(r, o), [o, r]), t.current;
|
|
2768
2768
|
}
|
|
2769
2769
|
const Li = (e, t) => {
|
|
2770
2770
|
const i = {};
|
|
2771
2771
|
return e.forEach((r, n) => {
|
|
2772
|
-
if (r.type ===
|
|
2772
|
+
if (r.type === Gr.NOT_EMPTY && (i.required = (o) => t && Rs(o) ? r.message : !0), r.type === Gr.REGEX) {
|
|
2773
2773
|
const o = new RegExp(r.regex);
|
|
2774
2774
|
i[`regex_${n}`] = (s) => !t && !s ? !0 : typeof s != "string" ? r.message : o.test(s) || r.message;
|
|
2775
2775
|
}
|
|
2776
2776
|
}), i;
|
|
2777
|
-
},
|
|
2777
|
+
}, VM = ({ isOpen: e, image: t }) => /* @__PURE__ */ d(
|
|
2778
2778
|
"div",
|
|
2779
2779
|
{
|
|
2780
2780
|
"data-ui": "gui-custom-select-chevron",
|
|
@@ -2791,7 +2791,7 @@ const Li = (e, t) => {
|
|
|
2791
2791
|
},
|
|
2792
2792
|
children: t ? /* @__PURE__ */ d(_e, T({}, t)) : /* @__PURE__ */ d(_e, { imageId: "chevronDown" })
|
|
2793
2793
|
}
|
|
2794
|
-
),
|
|
2794
|
+
), FM = ({
|
|
2795
2795
|
isChosen: e,
|
|
2796
2796
|
option: t,
|
|
2797
2797
|
onOptionClickCallback: i,
|
|
@@ -2806,9 +2806,9 @@ const Li = (e, t) => {
|
|
|
2806
2806
|
style: {
|
|
2807
2807
|
padding: "5px 8px",
|
|
2808
2808
|
background: ((I, j) => {
|
|
2809
|
-
var O, c,
|
|
2809
|
+
var O, c, a, N, D, y, z, m;
|
|
2810
2810
|
if (!I && !j) return (c = ie((O = t.layout) == null ? void 0 : O.backgroundColor)) != null ? c : "transparent";
|
|
2811
|
-
if (!I && j) return (N = ie((
|
|
2811
|
+
if (!I && j) return (N = ie((a = t.layoutSelected) == null ? void 0 : a.backgroundColor)) != null ? N : "transparent";
|
|
2812
2812
|
if (I && !j) return (y = ie((D = t.layout) == null ? void 0 : D.highlightColor)) != null ? y : "#F4F4F4";
|
|
2813
2813
|
if (I && j) return (m = ie((z = t.layoutSelected) == null ? void 0 : z.highlightColor)) != null ? m : "#F4F4F4";
|
|
2814
2814
|
})(r, e),
|
|
@@ -2840,7 +2840,7 @@ const Li = (e, t) => {
|
|
|
2840
2840
|
},
|
|
2841
2841
|
t.value
|
|
2842
2842
|
);
|
|
2843
|
-
},
|
|
2843
|
+
}, Ao = ({
|
|
2844
2844
|
name: e,
|
|
2845
2845
|
options: t,
|
|
2846
2846
|
isMulti: i = !1,
|
|
@@ -2848,30 +2848,30 @@ const Li = (e, t) => {
|
|
|
2848
2848
|
value: n,
|
|
2849
2849
|
onChange: o,
|
|
2850
2850
|
placeholder: s,
|
|
2851
|
-
closeMenuOnSelect:
|
|
2851
|
+
closeMenuOnSelect: M = !0,
|
|
2852
2852
|
onBlur: I,
|
|
2853
2853
|
parentElementRef: j,
|
|
2854
2854
|
controlLayout: O,
|
|
2855
2855
|
pickerLayout: c
|
|
2856
2856
|
}) => {
|
|
2857
|
-
var L, J,
|
|
2858
|
-
const [
|
|
2857
|
+
var L, J, Me, Ne, fe, je, Ye, ce;
|
|
2858
|
+
const [a, N] = we(!1), [D, y] = we(n), [z, m] = we("down"), [_, p] = we(null), x = Je(null), C = Je(null);
|
|
2859
2859
|
ci(() => {
|
|
2860
2860
|
var ve, Y, re;
|
|
2861
|
-
if (!
|
|
2862
|
-
const H = (ve = x.current) == null ? void 0 : ve.getBoundingClientRect(), ge = (Y =
|
|
2861
|
+
if (!a) return;
|
|
2862
|
+
const H = (ve = x.current) == null ? void 0 : ve.getBoundingClientRect(), ge = (Y = C.current) == null ? void 0 : Y.getBoundingClientRect(), ze = (re = j.current) == null ? void 0 : re.getBoundingClientRect();
|
|
2863
2863
|
if (!H || !ge || !ze) return;
|
|
2864
2864
|
const me = H.bottom + ge.height < ze.bottom;
|
|
2865
2865
|
m(me ? "down" : "up");
|
|
2866
|
-
}, [
|
|
2866
|
+
}, [a]), Ve(() => {
|
|
2867
2867
|
o(D);
|
|
2868
2868
|
}, [D]);
|
|
2869
2869
|
const K = (H) => (ge) => {
|
|
2870
2870
|
var ze;
|
|
2871
|
-
ge.stopPropagation(), (ge.type === "touchend" || ((ze = ge.nativeEvent) == null ? void 0 : ze.pointerType) === "touch") && p(null),
|
|
2871
|
+
ge.stopPropagation(), (ge.type === "touchend" || ((ze = ge.nativeEvent) == null ? void 0 : ze.pointerType) === "touch") && p(null), M && N(!1), y((me) => i ? me.some((Y) => Y.value === H.value) ? me.filter((Y) => Y.value !== H.value) : [...me, H] : [H]);
|
|
2872
2872
|
}, le = () => {
|
|
2873
2873
|
I && I(), N(!1);
|
|
2874
|
-
},
|
|
2874
|
+
}, P = (H) => (ge) => {
|
|
2875
2875
|
ge.stopPropagation(), y((ze) => ze.filter((me) => me.value !== H.value));
|
|
2876
2876
|
}, se = (H) => {
|
|
2877
2877
|
H.stopPropagation(), y([]);
|
|
@@ -2883,8 +2883,8 @@ const Li = (e, t) => {
|
|
|
2883
2883
|
style: {
|
|
2884
2884
|
backgroundColor: ie(O == null ? void 0 : O.backgroundColor),
|
|
2885
2885
|
borderStyle: "solid",
|
|
2886
|
-
borderColor:
|
|
2887
|
-
borderWidth: (
|
|
2886
|
+
borderColor: a ? ee : U,
|
|
2887
|
+
borderWidth: (Me = O == null ? void 0 : O.borderWidth) != null ? Me : 1,
|
|
2888
2888
|
borderRadius: (Ne = O == null ? void 0 : O.cornerRadius) != null ? Ne : 8,
|
|
2889
2889
|
minHeight: "41px",
|
|
2890
2890
|
position: "relative",
|
|
@@ -2897,7 +2897,7 @@ const Li = (e, t) => {
|
|
|
2897
2897
|
},
|
|
2898
2898
|
tabIndex: 0,
|
|
2899
2899
|
onBlur: le,
|
|
2900
|
-
onClick: () => N(!
|
|
2900
|
+
onClick: () => N(!a),
|
|
2901
2901
|
children: [
|
|
2902
2902
|
/* @__PURE__ */ d(
|
|
2903
2903
|
"div",
|
|
@@ -2956,7 +2956,7 @@ const Li = (e, t) => {
|
|
|
2956
2956
|
width: "16px",
|
|
2957
2957
|
height: "16px"
|
|
2958
2958
|
},
|
|
2959
|
-
onClick:
|
|
2959
|
+
onClick: P(H),
|
|
2960
2960
|
children: re != null && re.removeImage ? /* @__PURE__ */ d(_e, T({}, re.removeImage)) : /* @__PURE__ */ d(_e, { imageId: "cross" })
|
|
2961
2961
|
}
|
|
2962
2962
|
)
|
|
@@ -3007,12 +3007,12 @@ const Li = (e, t) => {
|
|
|
3007
3007
|
}
|
|
3008
3008
|
}
|
|
3009
3009
|
) : null,
|
|
3010
|
-
/* @__PURE__ */ d(
|
|
3011
|
-
|
|
3010
|
+
/* @__PURE__ */ d(VM, { isOpen: a, image: O == null ? void 0 : O.expandButton }),
|
|
3011
|
+
a && /* @__PURE__ */ d(
|
|
3012
3012
|
"div",
|
|
3013
3013
|
{
|
|
3014
3014
|
"data-ui": "gui-custom-select-dropdown-menu",
|
|
3015
|
-
ref:
|
|
3015
|
+
ref: C,
|
|
3016
3016
|
style: G(T({
|
|
3017
3017
|
position: "absolute"
|
|
3018
3018
|
}, z === "down" ? { top: "calc(100% + 1px)" } : { bottom: "calc(100% + 1px)" }), {
|
|
@@ -3038,7 +3038,7 @@ const Li = (e, t) => {
|
|
|
3038
3038
|
children: t.map((H) => {
|
|
3039
3039
|
const ge = D.some((ze) => ze.value === H.value);
|
|
3040
3040
|
return /* @__PURE__ */ d(
|
|
3041
|
-
|
|
3041
|
+
FM,
|
|
3042
3042
|
{
|
|
3043
3043
|
isChosen: ge,
|
|
3044
3044
|
option: H,
|
|
@@ -3055,7 +3055,7 @@ const Li = (e, t) => {
|
|
|
3055
3055
|
]
|
|
3056
3056
|
}
|
|
3057
3057
|
) });
|
|
3058
|
-
},
|
|
3058
|
+
}, BM = ({
|
|
3059
3059
|
control: e,
|
|
3060
3060
|
layout: t,
|
|
3061
3061
|
dataSourceQuestion: i,
|
|
@@ -3079,7 +3079,7 @@ const Li = (e, t) => {
|
|
|
3079
3079
|
children: [
|
|
3080
3080
|
t.title && /* @__PURE__ */ d(Te, G(T({}, t.title), { text: i.text, htmlFor: o })),
|
|
3081
3081
|
/* @__PURE__ */ d(
|
|
3082
|
-
|
|
3082
|
+
go,
|
|
3083
3083
|
{
|
|
3084
3084
|
name: o,
|
|
3085
3085
|
control: e,
|
|
@@ -3088,15 +3088,15 @@ const Li = (e, t) => {
|
|
|
3088
3088
|
validate: Li(i.validators, !!i.required)
|
|
3089
3089
|
},
|
|
3090
3090
|
render: ({ field: s }) => {
|
|
3091
|
-
const
|
|
3091
|
+
const M = n.find((I) => I.value === s.value);
|
|
3092
3092
|
return /* @__PURE__ */ d(
|
|
3093
|
-
|
|
3093
|
+
Ao,
|
|
3094
3094
|
{
|
|
3095
3095
|
options: n,
|
|
3096
3096
|
placeholder: i.placeholder,
|
|
3097
3097
|
closeMenuOnSelect: !0,
|
|
3098
3098
|
name: s.name,
|
|
3099
|
-
value:
|
|
3099
|
+
value: M ? [M] : [],
|
|
3100
3100
|
onChange: (I) => {
|
|
3101
3101
|
const j = I && Array.isArray(I) && I.length ? I[0].value : null;
|
|
3102
3102
|
s.onChange(j);
|
|
@@ -3114,7 +3114,7 @@ const Li = (e, t) => {
|
|
|
3114
3114
|
]
|
|
3115
3115
|
}
|
|
3116
3116
|
);
|
|
3117
|
-
},
|
|
3117
|
+
}, WM = ({
|
|
3118
3118
|
control: e,
|
|
3119
3119
|
layout: t,
|
|
3120
3120
|
dataSourceQuestion: i,
|
|
@@ -3138,7 +3138,7 @@ const Li = (e, t) => {
|
|
|
3138
3138
|
children: [
|
|
3139
3139
|
t.title && /* @__PURE__ */ d(Te, G(T({}, t.title), { text: i.text, htmlFor: o })),
|
|
3140
3140
|
/* @__PURE__ */ d(
|
|
3141
|
-
|
|
3141
|
+
go,
|
|
3142
3142
|
{
|
|
3143
3143
|
name: o,
|
|
3144
3144
|
control: e,
|
|
@@ -3147,18 +3147,18 @@ const Li = (e, t) => {
|
|
|
3147
3147
|
validate: Li(i.validators, !!i.required)
|
|
3148
3148
|
},
|
|
3149
3149
|
render: ({ field: s }) => {
|
|
3150
|
-
const
|
|
3150
|
+
const M = n.filter((I) => {
|
|
3151
3151
|
var j;
|
|
3152
3152
|
return (j = s.value) == null ? void 0 : j.includes(I.value);
|
|
3153
3153
|
});
|
|
3154
3154
|
return /* @__PURE__ */ d(
|
|
3155
|
-
|
|
3155
|
+
Ao,
|
|
3156
3156
|
{
|
|
3157
3157
|
name: o,
|
|
3158
3158
|
options: n,
|
|
3159
3159
|
placeholder: i.placeholder,
|
|
3160
3160
|
closeMenuOnSelect: !1,
|
|
3161
|
-
value:
|
|
3161
|
+
value: M,
|
|
3162
3162
|
onChange: (I) => {
|
|
3163
3163
|
const j = I.map((O) => O.value);
|
|
3164
3164
|
s.onChange(j);
|
|
@@ -3176,7 +3176,7 @@ const Li = (e, t) => {
|
|
|
3176
3176
|
]
|
|
3177
3177
|
}
|
|
3178
3178
|
);
|
|
3179
|
-
},
|
|
3179
|
+
}, To = () => {
|
|
3180
3180
|
const [e, t] = we(!1);
|
|
3181
3181
|
return Ve(() => {
|
|
3182
3182
|
const i = () => t(!0), r = () => t(!1);
|
|
@@ -3184,20 +3184,20 @@ const Li = (e, t) => {
|
|
|
3184
3184
|
window.removeEventListener("keydown", i), window.removeEventListener("mousedown", r);
|
|
3185
3185
|
};
|
|
3186
3186
|
}, []), e;
|
|
3187
|
-
},
|
|
3187
|
+
}, ZM = ({
|
|
3188
3188
|
option: e,
|
|
3189
3189
|
layout: t,
|
|
3190
3190
|
dataSourceQuestion: i,
|
|
3191
3191
|
register: r,
|
|
3192
3192
|
watch: n
|
|
3193
3193
|
}) => {
|
|
3194
|
-
const [o, s] = we(!1),
|
|
3195
|
-
backgroundColor: ie(
|
|
3196
|
-
borderRadius:
|
|
3194
|
+
const [o, s] = we(!1), M = To(), I = String(i.id), O = n(I) === String(e.id), c = t.option, a = t.optionSelected, N = {
|
|
3195
|
+
backgroundColor: ie(a == null ? void 0 : a.backgroundColor),
|
|
3196
|
+
borderRadius: a.cornerRadius
|
|
3197
3197
|
}, D = {
|
|
3198
3198
|
backgroundColor: ie(c == null ? void 0 : c.backgroundColor),
|
|
3199
3199
|
borderRadius: c.cornerRadius
|
|
3200
|
-
}, y = o &&
|
|
3200
|
+
}, y = o && M ? { filter: `drop-shadow(0 0 1px ${$i})` } : {};
|
|
3201
3201
|
return /* @__PURE__ */ d("div", { children: /* @__PURE__ */ d(
|
|
3202
3202
|
"label",
|
|
3203
3203
|
{
|
|
@@ -3218,10 +3218,10 @@ const Li = (e, t) => {
|
|
|
3218
3218
|
alignContent: "center",
|
|
3219
3219
|
flexShrink: 0
|
|
3220
3220
|
}, y),
|
|
3221
|
-
children: /* @__PURE__ */ d(_e, T({}, O ?
|
|
3221
|
+
children: /* @__PURE__ */ d(_e, T({}, O ? a.image : c.image))
|
|
3222
3222
|
}
|
|
3223
3223
|
),
|
|
3224
|
-
/* @__PURE__ */ d(Te, G(T({}, O ?
|
|
3224
|
+
/* @__PURE__ */ d(Te, G(T({}, O ? a.title : c.title), { text: e.text })),
|
|
3225
3225
|
/* @__PURE__ */ d(
|
|
3226
3226
|
"input",
|
|
3227
3227
|
G(T({
|
|
@@ -3248,7 +3248,7 @@ const Li = (e, t) => {
|
|
|
3248
3248
|
]
|
|
3249
3249
|
}
|
|
3250
3250
|
) }, e.id);
|
|
3251
|
-
},
|
|
3251
|
+
}, HM = ({
|
|
3252
3252
|
layout: e,
|
|
3253
3253
|
register: t,
|
|
3254
3254
|
watch: i,
|
|
@@ -3277,7 +3277,7 @@ const Li = (e, t) => {
|
|
|
3277
3277
|
}
|
|
3278
3278
|
),
|
|
3279
3279
|
r.options.map((n) => /* @__PURE__ */ d(
|
|
3280
|
-
|
|
3280
|
+
ZM,
|
|
3281
3281
|
{
|
|
3282
3282
|
register: t,
|
|
3283
3283
|
watch: i,
|
|
@@ -3289,24 +3289,24 @@ const Li = (e, t) => {
|
|
|
3289
3289
|
))
|
|
3290
3290
|
]
|
|
3291
3291
|
}
|
|
3292
|
-
) }),
|
|
3292
|
+
) }), GM = ({
|
|
3293
3293
|
option: e,
|
|
3294
3294
|
layout: t,
|
|
3295
3295
|
dataSourceQuestion: i,
|
|
3296
3296
|
register: r,
|
|
3297
3297
|
watch: n
|
|
3298
3298
|
}) => {
|
|
3299
|
-
const [o, s] = we(!1),
|
|
3299
|
+
const [o, s] = we(!1), M = To(), I = String(i.id), O = n(I) === String(e.id), c = t.option, a = t.optionSelected, N = {
|
|
3300
3300
|
borderRadius: c == null ? void 0 : c.cornerRadius,
|
|
3301
3301
|
background: ie(c == null ? void 0 : c.backgroundColor),
|
|
3302
3302
|
borderColor: ie(c == null ? void 0 : c.borderColor),
|
|
3303
3303
|
borderWidth: c == null ? void 0 : c.borderWidth
|
|
3304
3304
|
}, D = {
|
|
3305
|
-
borderRadius:
|
|
3306
|
-
background: ie(
|
|
3307
|
-
borderColor: ie(
|
|
3308
|
-
borderWidth:
|
|
3309
|
-
}, y = o &&
|
|
3305
|
+
borderRadius: a == null ? void 0 : a.cornerRadius,
|
|
3306
|
+
background: ie(a == null ? void 0 : a.backgroundColor),
|
|
3307
|
+
borderColor: ie(a == null ? void 0 : a.borderColor),
|
|
3308
|
+
borderWidth: a == null ? void 0 : a.borderWidth
|
|
3309
|
+
}, y = o && M ? { outline: `2px solid ${$i}` } : {};
|
|
3310
3310
|
return /* @__PURE__ */ d(
|
|
3311
3311
|
"div",
|
|
3312
3312
|
{
|
|
@@ -3348,14 +3348,14 @@ const Li = (e, t) => {
|
|
|
3348
3348
|
onBlur: () => s(!1)
|
|
3349
3349
|
})
|
|
3350
3350
|
),
|
|
3351
|
-
/* @__PURE__ */ d(Te, G(T({}, O ?
|
|
3351
|
+
/* @__PURE__ */ d(Te, G(T({}, O ? a.title : c.title), { text: e.text }))
|
|
3352
3352
|
]
|
|
3353
3353
|
}
|
|
3354
3354
|
)
|
|
3355
3355
|
},
|
|
3356
3356
|
e.id
|
|
3357
3357
|
);
|
|
3358
|
-
},
|
|
3358
|
+
}, JM = ({
|
|
3359
3359
|
layout: e,
|
|
3360
3360
|
watch: t,
|
|
3361
3361
|
register: i,
|
|
@@ -3381,7 +3381,7 @@ const Li = (e, t) => {
|
|
|
3381
3381
|
}
|
|
3382
3382
|
),
|
|
3383
3383
|
/* @__PURE__ */ d("div", { style: { display: "flex", justifyContent: "center", gap: 5 }, children: r.options.map((n) => /* @__PURE__ */ d(
|
|
3384
|
-
|
|
3384
|
+
GM,
|
|
3385
3385
|
{
|
|
3386
3386
|
register: i,
|
|
3387
3387
|
watch: t,
|
|
@@ -3393,7 +3393,7 @@ const Li = (e, t) => {
|
|
|
3393
3393
|
)) })
|
|
3394
3394
|
]
|
|
3395
3395
|
}
|
|
3396
|
-
) }),
|
|
3396
|
+
) }), $M = ({
|
|
3397
3397
|
children: e,
|
|
3398
3398
|
backgroundColor: t,
|
|
3399
3399
|
cornerRadius: i = 0,
|
|
@@ -3402,7 +3402,7 @@ const Li = (e, t) => {
|
|
|
3402
3402
|
validationBorderColor: o,
|
|
3403
3403
|
validationBorderWidth: s
|
|
3404
3404
|
}) => {
|
|
3405
|
-
const
|
|
3405
|
+
const M = T({
|
|
3406
3406
|
position: "relative",
|
|
3407
3407
|
flexShrink: 0,
|
|
3408
3408
|
width: "100%",
|
|
@@ -3417,7 +3417,7 @@ const Li = (e, t) => {
|
|
|
3417
3417
|
borderColor: o,
|
|
3418
3418
|
borderStyle: "solid"
|
|
3419
3419
|
}), s && { borderWidth: s }));
|
|
3420
|
-
return /* @__PURE__ */ d("div", { style:
|
|
3420
|
+
return /* @__PURE__ */ d("div", { style: M, children: [
|
|
3421
3421
|
n && /* @__PURE__ */ d(
|
|
3422
3422
|
"span",
|
|
3423
3423
|
{
|
|
@@ -3432,13 +3432,13 @@ const Li = (e, t) => {
|
|
|
3432
3432
|
),
|
|
3433
3433
|
e
|
|
3434
3434
|
] });
|
|
3435
|
-
},
|
|
3435
|
+
}, XM = ({ validationErrorsTypes: e, title: t }) => e ? /* @__PURE__ */ d("div", { style: { width: "100%", fontSize: 12 }, children: Object.entries(e).map(([i, r]) => /* @__PURE__ */ d(Te, G(T({}, t), { text: r }), i)) }) : null, KM = ({
|
|
3436
3436
|
layout: e,
|
|
3437
3437
|
dataSourceQuestion: t,
|
|
3438
3438
|
register: i
|
|
3439
3439
|
}) => {
|
|
3440
|
-
var o, s,
|
|
3441
|
-
const r = String(t.id), n = (
|
|
3440
|
+
var o, s, M, I, j, O, c, a, N, D, y, z, m, _, p, x;
|
|
3441
|
+
const r = String(t.id), n = (C) => C ? C === nt.EMAIL ? "email" : C === nt.FREE_TEXT ? "text" : C === nt.NUMBER ? "number" : C === nt.SECURE ? "password" : "text" : "text";
|
|
3442
3442
|
return /* @__PURE__ */ d(
|
|
3443
3443
|
"div",
|
|
3444
3444
|
{
|
|
@@ -3458,11 +3458,11 @@ const Li = (e, t) => {
|
|
|
3458
3458
|
id: r,
|
|
3459
3459
|
type: n((o = e.textField) == null ? void 0 : o.inputType),
|
|
3460
3460
|
style: {
|
|
3461
|
-
fontFamily: (
|
|
3461
|
+
fontFamily: (M = (s = e == null ? void 0 : e.textField) == null ? void 0 : s.fontName) != null ? M : "sans-serif",
|
|
3462
3462
|
fontSize: (j = (I = e == null ? void 0 : e.textField) == null ? void 0 : I.fontSize) != null ? j : 15,
|
|
3463
3463
|
color: (c = ie((O = e == null ? void 0 : e.textField) == null ? void 0 : O.fontColor)) != null ? c : "#000000",
|
|
3464
3464
|
height: "42px",
|
|
3465
|
-
borderWidth: (N = (
|
|
3465
|
+
borderWidth: (N = (a = e == null ? void 0 : e.textField) == null ? void 0 : a.borderWidth) != null ? N : 1,
|
|
3466
3466
|
borderColor: (y = ie((D = e == null ? void 0 : e.textField) == null ? void 0 : D.borderColor)) != null ? y : "#d9d9d9",
|
|
3467
3467
|
borderStyle: "solid",
|
|
3468
3468
|
borderRadius: (m = (z = e == null ? void 0 : e.textField) == null ? void 0 : z.cornerRadius) != null ? m : 8,
|
|
@@ -3478,12 +3478,12 @@ const Li = (e, t) => {
|
|
|
3478
3478
|
]
|
|
3479
3479
|
}
|
|
3480
3480
|
);
|
|
3481
|
-
},
|
|
3481
|
+
}, qM = ({
|
|
3482
3482
|
layout: e,
|
|
3483
3483
|
dataSourceQuestion: t,
|
|
3484
3484
|
register: i
|
|
3485
3485
|
}) => {
|
|
3486
|
-
var n, o, s,
|
|
3486
|
+
var n, o, s, M, I, j, O, c, a, N, D, y, z;
|
|
3487
3487
|
const r = String(t.id);
|
|
3488
3488
|
return /* @__PURE__ */ d(
|
|
3489
3489
|
"div",
|
|
@@ -3510,13 +3510,13 @@ const Li = (e, t) => {
|
|
|
3510
3510
|
style: {
|
|
3511
3511
|
fontFamily: "sans-serif",
|
|
3512
3512
|
fontSize: (s = (o = e == null ? void 0 : e.textField) == null ? void 0 : o.fontSize) != null ? s : 15,
|
|
3513
|
-
color: (I = ie((
|
|
3513
|
+
color: (I = ie((M = e == null ? void 0 : e.textField) == null ? void 0 : M.fontColor)) != null ? I : "#000000",
|
|
3514
3514
|
resize: "none",
|
|
3515
3515
|
overflow: "hidden",
|
|
3516
3516
|
height: "42px",
|
|
3517
3517
|
minHeight: "42px",
|
|
3518
3518
|
borderWidth: (O = (j = e == null ? void 0 : e.textField) == null ? void 0 : j.borderWidth) != null ? O : 1,
|
|
3519
|
-
borderColor: (
|
|
3519
|
+
borderColor: (a = ie((c = e == null ? void 0 : e.textField) == null ? void 0 : c.borderColor)) != null ? a : "#d9d9d9",
|
|
3520
3520
|
borderStyle: "solid",
|
|
3521
3521
|
borderRadius: (D = (N = e == null ? void 0 : e.textField) == null ? void 0 : N.cornerRadius) != null ? D : 8,
|
|
3522
3522
|
padding: "11px",
|
|
@@ -3536,7 +3536,7 @@ const Li = (e, t) => {
|
|
|
3536
3536
|
underlyingError: r,
|
|
3537
3537
|
underlyingBaseError: n
|
|
3538
3538
|
}) {
|
|
3539
|
-
const o = yi.getErrorKey(t,
|
|
3539
|
+
const o = yi.getErrorKey(t, Pi);
|
|
3540
3540
|
super({
|
|
3541
3541
|
errorCode: t,
|
|
3542
3542
|
errorCodeKey: o,
|
|
@@ -3550,41 +3550,41 @@ const Li = (e, t) => {
|
|
|
3550
3550
|
});
|
|
3551
3551
|
}
|
|
3552
3552
|
};
|
|
3553
|
-
ni.MODULE =
|
|
3553
|
+
ni.MODULE = at, ni.ERROR_ENUM_NAME = "GuiModuleError", ni.SHORT_CODE = "GM";
|
|
3554
3554
|
let bi = ni;
|
|
3555
|
-
const
|
|
3555
|
+
const ea = ({ header: e, title: t, buttons: i, footer: r, questions: n, dataSource: o, properties: s, backgroundColor: M }) => {
|
|
3556
3556
|
var p;
|
|
3557
3557
|
const I = Nt.FORM, { perform: j } = zi();
|
|
3558
3558
|
if (!o || (o == null ? void 0 : o.questions.length) === 0) {
|
|
3559
3559
|
const x = new bi({
|
|
3560
|
-
errorCode:
|
|
3560
|
+
errorCode: Pi.DECODING_FAILED,
|
|
3561
3561
|
message: "No dataSource or no data for questions in the dataSource"
|
|
3562
3562
|
});
|
|
3563
3563
|
return j(x), null;
|
|
3564
3564
|
}
|
|
3565
3565
|
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) {
|
|
3566
3566
|
const x = new bi({
|
|
3567
|
-
errorCode:
|
|
3567
|
+
errorCode: Pi.DECODING_FAILED,
|
|
3568
3568
|
message: "No questions in the itemTypes field or itemTypes is not an array"
|
|
3569
3569
|
});
|
|
3570
3570
|
return j(x), null;
|
|
3571
3571
|
}
|
|
3572
|
-
const O = s ?
|
|
3573
|
-
register:
|
|
3572
|
+
const O = s ? Ps(o.questions, s) : {}, c = Je(null), {
|
|
3573
|
+
register: a,
|
|
3574
3574
|
handleSubmit: N,
|
|
3575
3575
|
formState: { errors: D },
|
|
3576
3576
|
reset: y,
|
|
3577
3577
|
watch: z,
|
|
3578
3578
|
control: m
|
|
3579
|
-
} =
|
|
3579
|
+
} = PM({
|
|
3580
3580
|
criteriaMode: "all",
|
|
3581
3581
|
defaultValues: O
|
|
3582
3582
|
});
|
|
3583
|
-
return /* @__PURE__ */ d(gi, { header: e, footer: r, backgroundColor:
|
|
3583
|
+
return /* @__PURE__ */ d(gi, { header: e, footer: r, backgroundColor: M, children: /* @__PURE__ */ d(
|
|
3584
3584
|
"form",
|
|
3585
3585
|
{
|
|
3586
3586
|
onSubmit: N((x) => {
|
|
3587
|
-
j(
|
|
3587
|
+
j(Ys(x), I), y();
|
|
3588
3588
|
}),
|
|
3589
3589
|
style: {
|
|
3590
3590
|
height: "100%",
|
|
@@ -3624,81 +3624,81 @@ const tM = ({ header: e, title: t, buttons: i, footer: r, questions: n, dataSour
|
|
|
3624
3624
|
style: { width: "100%", display: "flex", gap: "10px", flexDirection: "column" },
|
|
3625
3625
|
children: o.questions.map((x) => {
|
|
3626
3626
|
var ee;
|
|
3627
|
-
const
|
|
3627
|
+
const C = o.static, K = (L, J) => J.find((Me) => {
|
|
3628
3628
|
var Ne;
|
|
3629
|
-
if ((Ne =
|
|
3630
|
-
return
|
|
3631
|
-
}), le = (L, J) => J.find((
|
|
3632
|
-
if (!
|
|
3629
|
+
if ((Ne = Me.questionIds) != null && Ne.length)
|
|
3630
|
+
return Me.questionIds.find((fe) => L === fe);
|
|
3631
|
+
}), le = (L, J) => J.find((Me) => !Me.questionIds && Me.answerType === L), P = C ? K(String(x.id), n.itemTypes) || le(x.answerType, n.itemTypes) : n.itemTypes.find((L) => L.answerType === x.answerType);
|
|
3632
|
+
if (!P) {
|
|
3633
3633
|
const L = new bi({
|
|
3634
|
-
errorCode:
|
|
3634
|
+
errorCode: Pi.DECODING_FAILED,
|
|
3635
3635
|
message: "The question template has not been found"
|
|
3636
3636
|
});
|
|
3637
3637
|
j(L);
|
|
3638
3638
|
return;
|
|
3639
3639
|
}
|
|
3640
|
-
const se =
|
|
3640
|
+
const se = P == null ? void 0 : P.displayType, U = x.id in D && ((ee = D[x.id]) == null ? void 0 : ee.types);
|
|
3641
3641
|
return (
|
|
3642
3642
|
/** Question */
|
|
3643
|
-
/* @__PURE__ */ d(
|
|
3643
|
+
/* @__PURE__ */ d(Ce, { children: [
|
|
3644
3644
|
/* @__PURE__ */ d(
|
|
3645
|
-
|
|
3645
|
+
$M,
|
|
3646
3646
|
{
|
|
3647
|
-
backgroundColor:
|
|
3648
|
-
cornerRadius:
|
|
3647
|
+
backgroundColor: P == null ? void 0 : P.backgroundColor,
|
|
3648
|
+
cornerRadius: P == null ? void 0 : P.cornerRadius,
|
|
3649
3649
|
isError: !!U,
|
|
3650
3650
|
isRequired: x.required,
|
|
3651
|
-
validationBorderColor:
|
|
3652
|
-
validationBorderWidth:
|
|
3651
|
+
validationBorderColor: P == null ? void 0 : P.validationBorderColor,
|
|
3652
|
+
validationBorderWidth: P == null ? void 0 : P.validationBorderWidth,
|
|
3653
3653
|
children: [
|
|
3654
3654
|
se === mi.TEXT_EXPANDABLE && /* @__PURE__ */ d(
|
|
3655
|
-
|
|
3655
|
+
qM,
|
|
3656
3656
|
{
|
|
3657
|
-
layout:
|
|
3657
|
+
layout: P,
|
|
3658
3658
|
dataSourceQuestion: x,
|
|
3659
|
-
register:
|
|
3659
|
+
register: a
|
|
3660
3660
|
}
|
|
3661
3661
|
),
|
|
3662
3662
|
se === mi.TEXT_SINGLE_LINE && /* @__PURE__ */ d(
|
|
3663
|
-
|
|
3663
|
+
KM,
|
|
3664
3664
|
{
|
|
3665
|
-
layout:
|
|
3665
|
+
layout: P,
|
|
3666
3666
|
dataSourceQuestion: x,
|
|
3667
|
-
register:
|
|
3667
|
+
register: a
|
|
3668
3668
|
}
|
|
3669
3669
|
),
|
|
3670
3670
|
se === mi.SELECTOR_OPTIONS && /* @__PURE__ */ d(
|
|
3671
|
-
|
|
3671
|
+
HM,
|
|
3672
3672
|
{
|
|
3673
|
-
layout:
|
|
3673
|
+
layout: P,
|
|
3674
3674
|
dataSourceQuestion: x,
|
|
3675
3675
|
watch: z,
|
|
3676
|
-
register:
|
|
3676
|
+
register: a
|
|
3677
3677
|
}
|
|
3678
3678
|
),
|
|
3679
3679
|
se === mi.SELECTOR_BUTTONS && /* @__PURE__ */ d(
|
|
3680
|
-
|
|
3680
|
+
JM,
|
|
3681
3681
|
{
|
|
3682
|
-
layout:
|
|
3682
|
+
layout: P,
|
|
3683
3683
|
dataSourceQuestion: x,
|
|
3684
3684
|
watch: z,
|
|
3685
|
-
register:
|
|
3685
|
+
register: a
|
|
3686
3686
|
}
|
|
3687
3687
|
),
|
|
3688
3688
|
se === mi.SELECTOR_DROPDOWN && /* @__PURE__ */ d(
|
|
3689
|
-
|
|
3689
|
+
BM,
|
|
3690
3690
|
{
|
|
3691
3691
|
control: m,
|
|
3692
|
-
layout:
|
|
3692
|
+
layout: P,
|
|
3693
3693
|
dataSourceQuestion: x,
|
|
3694
3694
|
parentElementRef: c
|
|
3695
3695
|
}
|
|
3696
3696
|
),
|
|
3697
3697
|
se === mi.MULTI_SELECTOR_DROPDOWN && /* @__PURE__ */ d(
|
|
3698
|
-
|
|
3698
|
+
WM,
|
|
3699
3699
|
{
|
|
3700
3700
|
control: m,
|
|
3701
|
-
layout:
|
|
3701
|
+
layout: P,
|
|
3702
3702
|
dataSourceQuestion: x,
|
|
3703
3703
|
parentElementRef: c
|
|
3704
3704
|
}
|
|
@@ -3707,10 +3707,10 @@ const tM = ({ header: e, title: t, buttons: i, footer: r, questions: n, dataSour
|
|
|
3707
3707
|
}
|
|
3708
3708
|
),
|
|
3709
3709
|
U && /* @__PURE__ */ d(
|
|
3710
|
-
|
|
3710
|
+
XM,
|
|
3711
3711
|
{
|
|
3712
3712
|
validationErrorsTypes: U,
|
|
3713
|
-
title:
|
|
3713
|
+
title: P.validationMessage
|
|
3714
3714
|
}
|
|
3715
3715
|
)
|
|
3716
3716
|
] }, x.id)
|
|
@@ -3736,15 +3736,15 @@ const tM = ({ header: e, title: t, buttons: i, footer: r, questions: n, dataSour
|
|
|
3736
3736
|
alignItems: "flex-end",
|
|
3737
3737
|
padding: "2px"
|
|
3738
3738
|
},
|
|
3739
|
-
children: i.map((x,
|
|
3739
|
+
children: i.map((x, C) => /* @__PURE__ */ d(ut, T({ dataTestId: "question-button" }, x), C))
|
|
3740
3740
|
}
|
|
3741
3741
|
)
|
|
3742
3742
|
]
|
|
3743
3743
|
}
|
|
3744
3744
|
) });
|
|
3745
|
-
},
|
|
3745
|
+
}, ia = {
|
|
3746
3746
|
display: "none"
|
|
3747
|
-
},
|
|
3747
|
+
}, ta = {
|
|
3748
3748
|
display: "flex",
|
|
3749
3749
|
alignItems: "center",
|
|
3750
3750
|
justifyContent: "center",
|
|
@@ -3754,7 +3754,7 @@ const tM = ({ header: e, title: t, buttons: i, footer: r, questions: n, dataSour
|
|
|
3754
3754
|
borderRadius: "16px",
|
|
3755
3755
|
backgroundColor: "#7e57c5",
|
|
3756
3756
|
cursor: "pointer"
|
|
3757
|
-
},
|
|
3757
|
+
}, ra = {
|
|
3758
3758
|
position: "relative",
|
|
3759
3759
|
display: "flex",
|
|
3760
3760
|
flexGrow: 1,
|
|
@@ -3766,7 +3766,7 @@ const tM = ({ header: e, title: t, buttons: i, footer: r, questions: n, dataSour
|
|
|
3766
3766
|
width: "100%",
|
|
3767
3767
|
minHeight: "100%",
|
|
3768
3768
|
overflow: "auto"
|
|
3769
|
-
},
|
|
3769
|
+
}, na = ({
|
|
3770
3770
|
header: e,
|
|
3771
3771
|
footer: t,
|
|
3772
3772
|
buttons: i,
|
|
@@ -3774,15 +3774,15 @@ const tM = ({ header: e, title: t, buttons: i, footer: r, questions: n, dataSour
|
|
|
3774
3774
|
selectionLimit: n
|
|
3775
3775
|
}) => {
|
|
3776
3776
|
var O, c;
|
|
3777
|
-
const { perform: o } = zi(), s = Je(null),
|
|
3777
|
+
const { perform: o } = zi(), s = Je(null), M = typeof n == "number" && (n === 0 || n > 1), I = (a) => Ie(null, null, function* () {
|
|
3778
3778
|
var D;
|
|
3779
|
-
const N = Array.from((D =
|
|
3779
|
+
const N = Array.from((D = a.currentTarget.files) != null ? D : []);
|
|
3780
3780
|
if (N.length)
|
|
3781
3781
|
try {
|
|
3782
3782
|
const z = (yield Promise.allSettled(
|
|
3783
3783
|
N.map((m) => Ie(null, null, function* () {
|
|
3784
3784
|
return {
|
|
3785
|
-
content: yield
|
|
3785
|
+
content: yield kn(m),
|
|
3786
3786
|
metadata: {
|
|
3787
3787
|
name: m.name,
|
|
3788
3788
|
type: m.type,
|
|
@@ -3803,33 +3803,33 @@ const tM = ({ header: e, title: t, buttons: i, footer: r, questions: n, dataSour
|
|
|
3803
3803
|
console.error("Error: ", y);
|
|
3804
3804
|
}
|
|
3805
3805
|
}), j = () => {
|
|
3806
|
-
var
|
|
3807
|
-
(
|
|
3806
|
+
var a;
|
|
3807
|
+
(a = s.current) == null || a.showPicker();
|
|
3808
3808
|
};
|
|
3809
|
-
return /* @__PURE__ */ d(gi, { header: e, footer: t, backgroundColor: r, children: /* @__PURE__ */ d(
|
|
3809
|
+
return /* @__PURE__ */ d(gi, { header: e, footer: t, backgroundColor: r, children: /* @__PURE__ */ d(Ce, { children: /* @__PURE__ */ d(
|
|
3810
3810
|
"div",
|
|
3811
3811
|
{
|
|
3812
|
-
style: G(T({},
|
|
3812
|
+
style: G(T({}, ra), {
|
|
3813
3813
|
justifyContent: "center"
|
|
3814
3814
|
}),
|
|
3815
3815
|
children: [
|
|
3816
3816
|
/* @__PURE__ */ d(
|
|
3817
3817
|
"input",
|
|
3818
3818
|
G(T({
|
|
3819
|
-
style:
|
|
3819
|
+
style: ia,
|
|
3820
3820
|
ref: s,
|
|
3821
3821
|
type: "file",
|
|
3822
3822
|
accept: "image/*"
|
|
3823
|
-
},
|
|
3823
|
+
}, M ? { multiple: !0 } : {}), {
|
|
3824
3824
|
onInput: I
|
|
3825
3825
|
})
|
|
3826
3826
|
),
|
|
3827
|
-
/* @__PURE__ */ d("button", { style:
|
|
3827
|
+
/* @__PURE__ */ d("button", { style: ta, onClick: j, children: /* @__PURE__ */ d(_e, { imageId: (c = (O = i == null ? void 0 : i[0]) == null ? void 0 : O.image) == null ? void 0 : c.imageId }) })
|
|
3828
3828
|
]
|
|
3829
3829
|
}
|
|
3830
3830
|
) }) });
|
|
3831
3831
|
};
|
|
3832
|
-
function
|
|
3832
|
+
function oa(e) {
|
|
3833
3833
|
if (Object.prototype.hasOwnProperty.call(e, "__esModule")) return e;
|
|
3834
3834
|
var t = e.default;
|
|
3835
3835
|
if (typeof t == "function") {
|
|
@@ -3854,17 +3854,17 @@ function aM(e) {
|
|
|
3854
3854
|
}), i;
|
|
3855
3855
|
}
|
|
3856
3856
|
var Q = {};
|
|
3857
|
-
const
|
|
3858
|
-
var Yi = { exports: {} },
|
|
3859
|
-
function
|
|
3860
|
-
return
|
|
3857
|
+
const sa = /* @__PURE__ */ oa(fM);
|
|
3858
|
+
var Yi = { exports: {} }, Ma = Yi.exports, In;
|
|
3859
|
+
function aa() {
|
|
3860
|
+
return In || (In = 1, (function(e, t) {
|
|
3861
3861
|
(function(i, r) {
|
|
3862
|
-
var n = "1.0.41", o = "", s = "?",
|
|
3862
|
+
var n = "1.0.41", o = "", s = "?", M = "function", I = "undefined", j = "object", O = "string", c = "major", a = "model", N = "name", D = "type", y = "vendor", z = "version", m = "architecture", _ = "console", p = "mobile", x = "tablet", C = "smarttv", K = "wearable", le = "embedded", P = 500, se = "Amazon", U = "Apple", ee = "ASUS", L = "BlackBerry", J = "Browser", Me = "Chrome", Ne = "Edge", fe = "Firefox", je = "Google", Ye = "Honor", ce = "Huawei", H = "Lenovo", ge = "LG", ze = "Microsoft", me = "Motorola", ve = "Nvidia", Y = "OnePlus", re = "Opera", qe = "OPPO", Fe = "Samsung", Mi = "Sharp", Be = "Sony", ei = "Xiaomi", di = "Zebra", Ni = "Facebook", Oi = "Chromium OS", ai = "Mac OS", ui = " Browser", xi = function(Z, $) {
|
|
3863
3863
|
var V = {};
|
|
3864
3864
|
for (var te in Z)
|
|
3865
3865
|
$[te] && $[te].length % 2 === 0 ? V[te] = $[te].concat(Z[te]) : V[te] = Z[te];
|
|
3866
3866
|
return V;
|
|
3867
|
-
},
|
|
3867
|
+
}, ii = function(Z) {
|
|
3868
3868
|
for (var $ = {}, V = 0; V < Z.length; V++)
|
|
3869
3869
|
$[Z[V].toUpperCase()] = Z[V];
|
|
3870
3870
|
return $;
|
|
@@ -3876,14 +3876,14 @@ function lM() {
|
|
|
3876
3876
|
return typeof Z === O ? Z.replace(/[^\d\.]/g, o).split(".")[0] : r;
|
|
3877
3877
|
}, A = function(Z, $) {
|
|
3878
3878
|
if (typeof Z === O)
|
|
3879
|
-
return Z = Z.replace(/^\s\s*/, o), typeof $ === I ? Z : Z.substring(0,
|
|
3879
|
+
return Z = Z.replace(/^\s\s*/, o), typeof $ === I ? Z : Z.substring(0, P);
|
|
3880
3880
|
}, h = function(Z, $) {
|
|
3881
|
-
for (var V = 0, te, be, pe, oe, F,
|
|
3881
|
+
for (var V = 0, te, be, pe, oe, F, Se; V < $.length && !F; ) {
|
|
3882
3882
|
var hi = $[V], ki = $[V + 1];
|
|
3883
3883
|
for (te = be = 0; te < hi.length && !F && hi[te]; )
|
|
3884
3884
|
if (F = hi[te++].exec(Z), F)
|
|
3885
3885
|
for (pe = 0; pe < ki.length; pe++)
|
|
3886
|
-
|
|
3886
|
+
Se = F[++be], oe = ki[pe], typeof oe === j && oe.length > 0 ? oe.length === 2 ? typeof oe[1] == M ? this[oe[0]] = oe[1].call(this, Se) : this[oe[0]] = oe[1] : oe.length === 3 ? typeof oe[1] === M && !(oe[1].exec && oe[1].test) ? this[oe[0]] = Se ? oe[1].call(this, Se, oe[2]) : r : this[oe[0]] = Se ? Se.replace(oe[1], oe[2]) : r : oe.length === 4 && (this[oe[0]] = Se ? oe[3].call(this, Se.replace(oe[1], oe[2])) : r) : this[oe] = Se || r;
|
|
3887
3887
|
V += 2;
|
|
3888
3888
|
}
|
|
3889
3889
|
}, k = function(Z, $) {
|
|
@@ -3895,59 +3895,59 @@ function lM() {
|
|
|
3895
3895
|
} else if (li($[V], Z))
|
|
3896
3896
|
return V === s ? r : V;
|
|
3897
3897
|
return $.hasOwnProperty("*") ? $["*"] : Z;
|
|
3898
|
-
}, C = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, b = { 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" }, P = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [z, [N, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [z, [N, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [N, z], [/opios[\/ ]+([\w\.]+)/i], [z, [N, re + " Mini"]], [/\bop(?:rg)?x\/([\w\.]+)/i], [z, [N, re + " GX"]], [/\bopr\/([\w\.]+)/i], [z, [N, re]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [z, [N, "Baidu"]], [/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i], [z, [N, "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], [N, z], [/quark(?:pc)?\/([-\w\.]+)/i], [z, [N, "Quark"]], [/\bddg\/([\w\.]+)/i], [z, [N, "DuckDuckGo"]], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [z, [N, "UC" + J]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [z, [N, "WeChat"]], [/konqueror\/([\w\.]+)/i], [z, [N, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [z, [N, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [z, [N, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [z, [N, "Smart Lenovo " + J]], [/(avast|avg)\/([\w\.]+)/i], [[N, /(.+)/, "$1 Secure " + J], z], [/\bfocus\/([\w\.]+)/i], [z, [N, fe + " Focus"]], [/\bopt\/([\w\.]+)/i], [z, [N, re + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [z, [N, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [z, [N, "Dolphin"]], [/coast\/([\w\.]+)/i], [z, [N, re + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [z, [N, "MIUI" + ui]], [/fxios\/([\w\.-]+)/i], [z, [N, fe]], [/\bqihoobrowser\/?([\w\.]*)/i], [z, [N, "360"]], [/\b(qq)\/([\w\.]+)/i], [[N, /(.+)/, "$1Browser"], z], [/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i], [[N, /(.+)/, "$1" + ui], z], [/samsungbrowser\/([\w\.]+)/i], [z, [N, Fe + " Internet"]], [/metasr[\/ ]?([\d\.]+)/i], [z, [N, "Sogou Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[N, "Sogou Mobile"], z], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i], [N, z], [/(lbbrowser|rekonq)/i, /\[(linkedin)app\]/i], [N], [/ome\/([\w\.]+) \w* ?(iron) saf/i, /ome\/([\w\.]+).+qihu (360)[es]e/i], [z, N], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[N, Ni], 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], [N, z], [/\bgsa\/([\w\.]+) .*safari\//i], [z, [N, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [z, [N, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [z, [N, ae + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[N, ae + " WebView"], z], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [z, [N, "Android " + J]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [N, z], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [z, [N, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [z, N], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [N, [z, k, C]], [/(webkit|khtml)\/([\w\.]+)/i], [N, z], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[N, "Netscape"], z], [/(wolvic|librewolf)\/([\w\.]+)/i], [N, z], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [z, [N, fe + " 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], [N, [z, /_/g, "."]], [/(cobalt)\/([\w\.]+)/i], [N, [z, /master.|lts./, ""]]], cpu: [[/\b((amd|x|x86[-_]?|wow|win)64)\b/i], [[m, "amd64"]], [/(ia32(?=;))/i, /\b((i[346]|x)86)(pc)?\b/i], [[m, "ia32"]], [/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i], [[m, "arm64"]], [/\b(arm(v[67])?ht?n?[fl]p?)\b/i], [[m, "armhf"]], [/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i], [[m, "arm"]], [/((ppc|powerpc)(64)?)( mac|;|\))/i], [[m, /ower/, o, We]], [/ sun4\w[;\)]/i], [[m, "sparc"]], [/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i], [[m, We]]], 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, [y, Fe], [D, x]], [/\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, [y, Fe], [D, p]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [M, [y, U], [D, p]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [M, [y, U], [D, x]], [/(macintosh);/i], [M, [y, U]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [M, [y, ai], [D, p]], [/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i], [M, [y, Ye], [D, x]], [/honor([-\w ]+)[;\)]/i], [M, [y, Ye], [D, 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, [y, ce], [D, x]], [/(?:huawei)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [M, [y, ce], [D, p]], [/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i, /\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i], [[M, /_/g, " "], [y, ii], [D, x]], [/\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, " "], [y, ii], [D, 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, [y, ei], [D, p]], [/\b(opd2(\d{3}a?))(?: bui|\))/i], [M, [y, k, { OnePlus: ["304", "403", "203"], "*": ei }], [D, x]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [M, [y, "Vivo"], [D, p]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [M, [y, "Realme"], [D, 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, [y, me], [D, p]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [M, [y, me], [D, x]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [M, [y, ge], [D, x]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i, /\blg-?([\d\w]+) bui/i], [M, [y, ge], [D, 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, [y, H], [D, x]], [/(nokia) (t[12][01])/i], [y, M, [D, x]], [/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i, /nokia[-_ ]?(([-\w\. ]*))/i], [[M, /_/g, " "], [D, p], [y, "Nokia"]], [/(pixel (c|tablet))\b/i], [M, [y, je], [D, x]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [M, [y, je], [D, 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, [y, Be], [D, p]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[M, "Xperia Tablet"], [y, Be], [D, x]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [M, [y, Y], [D, p]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [M, [y, se], [D, x]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[M, /(.+)/g, "Fire Phone $1"], [y, se], [D, p]], [/(playbook);[-\w\),; ]+(rim)/i], [M, y, [D, x]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [M, [y, L], [D, p]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [M, [y, ee], [D, x]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [M, [y, ee], [D, p]], [/(nexus 9)/i], [M, [y, "HTC"], [D, x]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [y, [M, /_/g, " "], [D, 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, [y, "TCL"], [D, x]], [/(itel) ((\w+))/i], [[y, We], M, [D, k, { tablet: ["p10001l", "w7001"], "*": "mobile" }]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [M, [y, "Acer"], [D, x]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [M, [y, "Meizu"], [D, p]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [M, [y, "Ulefone"], [D, p]], [/; (energy ?\w+)(?: bui|\))/i, /; energizer ([\w ]+)(?: bui|\))/i], [M, [y, "Energizer"], [D, p]], [/; cat (b35);/i, /; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i], [M, [y, "Cat"], [D, p]], [/((?:new )?andromax[\w- ]+)(?: bui|\))/i], [M, [y, "Smartfren"], [D, p]], [/droid.+; (a(?:015|06[35]|142p?))/i], [M, [y, "Nothing"], [D, p]], [/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i, /archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i], [M, [y, "Archos"], [D, x]], [/archos ([\w ]+)( b|\))/i, /; (ac[3-6]\d\w{2,8})( b|\))/i], [M, [y, "Archos"], [D, p]], [/(imo) (tab \w+)/i, /(infinix) (x1101b?)/i], [y, M, [D, x]], [/(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], [y, M, [D, 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], [y, M, [D, x]], [/(surface duo)/i], [M, [y, ze], [D, x]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [M, [y, "Fairphone"], [D, p]], [/(u304aa)/i], [M, [y, "AT&T"], [D, p]], [/\bsie-(\w*)/i], [M, [y, "Siemens"], [D, p]], [/\b(rct\w+) b/i], [M, [y, "RCA"], [D, x]], [/\b(venue[\d ]{2,7}) b/i], [M, [y, "Dell"], [D, x]], [/\b(q(?:mv|ta)\w+) b/i], [M, [y, "Verizon"], [D, x]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [M, [y, "Barnes & Noble"], [D, x]], [/\b(tm\d{3}\w+) b/i], [M, [y, "NuVision"], [D, x]], [/\b(k88) b/i], [M, [y, "ZTE"], [D, x]], [/\b(nx\d{3}j) b/i], [M, [y, "ZTE"], [D, p]], [/\b(gen\d{3}) b.+49h/i], [M, [y, "Swiss"], [D, p]], [/\b(zur\d{3}) b/i], [M, [y, "Swiss"], [D, x]], [/\b((zeki)?tb.*\b) b/i], [M, [y, "Zeki"], [D, x]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[y, "Dragon Touch"], M, [D, x]], [/\b(ns-?\w{0,9}) b/i], [M, [y, "Insignia"], [D, x]], [/\b((nxa|next)-?\w{0,9}) b/i], [M, [y, "NextBook"], [D, x]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[y, "Voice"], M, [D, p]], [/\b(lvtel\-)?(v1[12]) b/i], [[y, "LvTel"], M, [D, p]], [/\b(ph-1) /i], [M, [y, "Essential"], [D, p]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [M, [y, "Envizen"], [D, x]], [/\b(trio[-\w\. ]+) b/i], [M, [y, "MachSpeed"], [D, x]], [/\btu_(1491) b/i], [M, [y, "Rotor"], [D, x]], [/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i], [M, [y, ve], [D, x]], [/(sprint) (\w+)/i], [y, M, [D, p]], [/(kin\.[onetw]{3})/i], [[M, /\./g, " "], [y, ze], [D, p]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [M, [y, di], [D, x]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [M, [y, di], [D, p]], [/smart-tv.+(samsung)/i], [y, [D, S]], [/hbbtv.+maple;(\d+)/i], [[M, /^/, "SmartTV"], [y, Fe], [D, S]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[y, ge], [D, S]], [/(apple) ?tv/i], [y, [M, U + " TV"], [D, S]], [/crkey/i], [[M, ae + "cast"], [y, je], [D, S]], [/droid.+aft(\w+)( bui|\))/i], [M, [y, se], [D, S]], [/(shield \w+ tv)/i], [M, [y, ve], [D, S]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [M, [y, ai], [D, S]], [/(bravia[\w ]+)( bui|\))/i], [M, [y, Be], [D, S]], [/(mi(tv|box)-?\w+) bui/i], [M, [y, ii], [D, S]], [/Hbbtv.*(technisat) (.*);/i], [y, M, [D, S]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[y, A], [M, A], [D, S]], [/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i], [M, [D, S]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[D, S]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [y, M, [D, _]], [/droid.+; (shield)( bui|\))/i], [M, [y, ve], [D, _]], [/(playstation \w+)/i], [M, [y, Be], [D, _]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [M, [y, ze], [D, _]], [/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i], [M, [y, Fe], [D, K]], [/((pebble))app/i, /(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i], [y, M, [D, K]], [/(ow(?:19|20)?we?[1-3]{1,3})/i], [M, [y, ei], [D, K]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [M, [y, U], [D, K]], [/(opwwe\d{3})/i], [M, [y, Y], [D, K]], [/(moto 360)/i], [M, [y, me], [D, K]], [/(smartwatch 3)/i], [M, [y, Be], [D, K]], [/(g watch r)/i], [M, [y, ge], [D, K]], [/droid.+; (wt63?0{2,3})\)/i], [M, [y, di], [D, K]], [/droid.+; (glass) \d/i], [M, [y, je], [D, K]], [/(pico) (4|neo3(?: link|pro)?)/i], [y, M, [D, K]], [/; (quest( \d| pro)?)/i], [M, [y, Ni], [D, K]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [y, [D, le]], [/(aeobc)\b/i], [M, [y, se], [D, le]], [/(homepod).+mac os/i], [M, [y, U], [D, le]], [/windows iot/i], [[D, le]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i], [M, [D, p]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [M, [D, x]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[D, x]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[D, p]], [/droid .+?; ([\w\. -]+)( bui|\))/i], [M, [y, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [z, [N, Ne + "HTML"]], [/(arkweb)\/([\w\.]+)/i], [N, z], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [z, [N, "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], [N, z], [/ladybird\//i], [[N, "LibWeb"]], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [z, N]], os: [[/microsoft (windows) (vista|xp)/i], [N, z], [/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i], [N, [z, k, b]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[z, k, b], [N, "Windows"]], [/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[z, /_/g, "."], [N, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[N, Mi], [z, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [z, N], [/(ubuntu) ([\w\.]+) like android/i], [[N, /(.+)/, "$1 Touch"], z], [/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i], [N, z], [/\(bb(10);/i], [z, [N, L]], [/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i], [z, [N, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [z, [N, fe + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [z, [N, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [z, [N, "watchOS"]], [/crkey\/([\d\.]+)/i], [z, [N, ae + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[N, Oi], 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], [N, z], [/(sunos) ?([\w\.\d]*)/i], [[N, "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], [N, z]] }, B = function(Z, $) {
|
|
3898
|
+
}, 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", "?": "/" }, b = { 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" }, R = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [z, [N, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [z, [N, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [N, z], [/opios[\/ ]+([\w\.]+)/i], [z, [N, re + " Mini"]], [/\bop(?:rg)?x\/([\w\.]+)/i], [z, [N, re + " GX"]], [/\bopr\/([\w\.]+)/i], [z, [N, re]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [z, [N, "Baidu"]], [/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i], [z, [N, "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], [N, z], [/quark(?:pc)?\/([-\w\.]+)/i], [z, [N, "Quark"]], [/\bddg\/([\w\.]+)/i], [z, [N, "DuckDuckGo"]], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [z, [N, "UC" + J]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [z, [N, "WeChat"]], [/konqueror\/([\w\.]+)/i], [z, [N, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [z, [N, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [z, [N, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [z, [N, "Smart Lenovo " + J]], [/(avast|avg)\/([\w\.]+)/i], [[N, /(.+)/, "$1 Secure " + J], z], [/\bfocus\/([\w\.]+)/i], [z, [N, fe + " Focus"]], [/\bopt\/([\w\.]+)/i], [z, [N, re + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [z, [N, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [z, [N, "Dolphin"]], [/coast\/([\w\.]+)/i], [z, [N, re + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [z, [N, "MIUI" + ui]], [/fxios\/([\w\.-]+)/i], [z, [N, fe]], [/\bqihoobrowser\/?([\w\.]*)/i], [z, [N, "360"]], [/\b(qq)\/([\w\.]+)/i], [[N, /(.+)/, "$1Browser"], z], [/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i], [[N, /(.+)/, "$1" + ui], z], [/samsungbrowser\/([\w\.]+)/i], [z, [N, Fe + " Internet"]], [/metasr[\/ ]?([\d\.]+)/i], [z, [N, "Sogou Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[N, "Sogou Mobile"], z], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i], [N, z], [/(lbbrowser|rekonq)/i, /\[(linkedin)app\]/i], [N], [/ome\/([\w\.]+) \w* ?(iron) saf/i, /ome\/([\w\.]+).+qihu (360)[es]e/i], [z, N], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[N, Ni], 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], [N, z], [/\bgsa\/([\w\.]+) .*safari\//i], [z, [N, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [z, [N, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [z, [N, Me + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[N, Me + " WebView"], z], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [z, [N, "Android " + J]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [N, z], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [z, [N, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [z, N], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [N, [z, k, S]], [/(webkit|khtml)\/([\w\.]+)/i], [N, z], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[N, "Netscape"], z], [/(wolvic|librewolf)\/([\w\.]+)/i], [N, z], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [z, [N, fe + " 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], [N, [z, /_/g, "."]], [/(cobalt)\/([\w\.]+)/i], [N, [z, /master.|lts./, ""]]], cpu: [[/\b((amd|x|x86[-_]?|wow|win)64)\b/i], [[m, "amd64"]], [/(ia32(?=;))/i, /\b((i[346]|x)86)(pc)?\b/i], [[m, "ia32"]], [/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i], [[m, "arm64"]], [/\b(arm(v[67])?ht?n?[fl]p?)\b/i], [[m, "armhf"]], [/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i], [[m, "arm"]], [/((ppc|powerpc)(64)?)( mac|;|\))/i], [[m, /ower/, o, We]], [/ sun4\w[;\)]/i], [[m, "sparc"]], [/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i], [[m, We]]], 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, [y, Fe], [D, x]], [/\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, [y, Fe], [D, p]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [a, [y, U], [D, p]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [a, [y, U], [D, x]], [/(macintosh);/i], [a, [y, U]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [a, [y, Mi], [D, p]], [/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i], [a, [y, Ye], [D, x]], [/honor([-\w ]+)[;\)]/i], [a, [y, Ye], [D, 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], [a, [y, ce], [D, x]], [/(?:huawei)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [a, [y, ce], [D, p]], [/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i, /\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i], [[a, /_/g, " "], [y, ei], [D, x]], [/\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, " "], [y, ei], [D, p]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [a, [y, qe], [D, p]], [/\b(opd2(\d{3}a?))(?: bui|\))/i], [a, [y, k, { OnePlus: ["304", "403", "203"], "*": qe }], [D, x]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [a, [y, "Vivo"], [D, p]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [a, [y, "Realme"], [D, 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], [a, [y, me], [D, p]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [a, [y, me], [D, x]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [a, [y, ge], [D, x]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i, /\blg-?([\d\w]+) bui/i], [a, [y, ge], [D, 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], [a, [y, H], [D, x]], [/(nokia) (t[12][01])/i], [y, a, [D, x]], [/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i, /nokia[-_ ]?(([-\w\. ]*))/i], [[a, /_/g, " "], [D, p], [y, "Nokia"]], [/(pixel (c|tablet))\b/i], [a, [y, je], [D, x]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [a, [y, je], [D, 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], [a, [y, Be], [D, p]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[a, "Xperia Tablet"], [y, Be], [D, x]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [a, [y, Y], [D, p]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [a, [y, se], [D, x]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[a, /(.+)/g, "Fire Phone $1"], [y, se], [D, p]], [/(playbook);[-\w\),; ]+(rim)/i], [a, y, [D, x]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [a, [y, L], [D, p]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [a, [y, ee], [D, x]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [a, [y, ee], [D, p]], [/(nexus 9)/i], [a, [y, "HTC"], [D, x]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [y, [a, /_/g, " "], [D, 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], [a, [y, "TCL"], [D, x]], [/(itel) ((\w+))/i], [[y, We], a, [D, k, { tablet: ["p10001l", "w7001"], "*": "mobile" }]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [a, [y, "Acer"], [D, x]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [a, [y, "Meizu"], [D, p]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [a, [y, "Ulefone"], [D, p]], [/; (energy ?\w+)(?: bui|\))/i, /; energizer ([\w ]+)(?: bui|\))/i], [a, [y, "Energizer"], [D, p]], [/; cat (b35);/i, /; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i], [a, [y, "Cat"], [D, p]], [/((?:new )?andromax[\w- ]+)(?: bui|\))/i], [a, [y, "Smartfren"], [D, p]], [/droid.+; (a(?:015|06[35]|142p?))/i], [a, [y, "Nothing"], [D, p]], [/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i, /archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i], [a, [y, "Archos"], [D, x]], [/archos ([\w ]+)( b|\))/i, /; (ac[3-6]\d\w{2,8})( b|\))/i], [a, [y, "Archos"], [D, p]], [/(imo) (tab \w+)/i, /(infinix) (x1101b?)/i], [y, a, [D, x]], [/(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], [y, a, [D, 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], [y, a, [D, x]], [/(surface duo)/i], [a, [y, ze], [D, x]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [a, [y, "Fairphone"], [D, p]], [/(u304aa)/i], [a, [y, "AT&T"], [D, p]], [/\bsie-(\w*)/i], [a, [y, "Siemens"], [D, p]], [/\b(rct\w+) b/i], [a, [y, "RCA"], [D, x]], [/\b(venue[\d ]{2,7}) b/i], [a, [y, "Dell"], [D, x]], [/\b(q(?:mv|ta)\w+) b/i], [a, [y, "Verizon"], [D, x]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [a, [y, "Barnes & Noble"], [D, x]], [/\b(tm\d{3}\w+) b/i], [a, [y, "NuVision"], [D, x]], [/\b(k88) b/i], [a, [y, "ZTE"], [D, x]], [/\b(nx\d{3}j) b/i], [a, [y, "ZTE"], [D, p]], [/\b(gen\d{3}) b.+49h/i], [a, [y, "Swiss"], [D, p]], [/\b(zur\d{3}) b/i], [a, [y, "Swiss"], [D, x]], [/\b((zeki)?tb.*\b) b/i], [a, [y, "Zeki"], [D, x]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[y, "Dragon Touch"], a, [D, x]], [/\b(ns-?\w{0,9}) b/i], [a, [y, "Insignia"], [D, x]], [/\b((nxa|next)-?\w{0,9}) b/i], [a, [y, "NextBook"], [D, x]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[y, "Voice"], a, [D, p]], [/\b(lvtel\-)?(v1[12]) b/i], [[y, "LvTel"], a, [D, p]], [/\b(ph-1) /i], [a, [y, "Essential"], [D, p]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [a, [y, "Envizen"], [D, x]], [/\b(trio[-\w\. ]+) b/i], [a, [y, "MachSpeed"], [D, x]], [/\btu_(1491) b/i], [a, [y, "Rotor"], [D, x]], [/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i], [a, [y, ve], [D, x]], [/(sprint) (\w+)/i], [y, a, [D, p]], [/(kin\.[onetw]{3})/i], [[a, /\./g, " "], [y, ze], [D, p]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [a, [y, di], [D, x]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [a, [y, di], [D, p]], [/smart-tv.+(samsung)/i], [y, [D, C]], [/hbbtv.+maple;(\d+)/i], [[a, /^/, "SmartTV"], [y, Fe], [D, C]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[y, ge], [D, C]], [/(apple) ?tv/i], [y, [a, U + " TV"], [D, C]], [/crkey/i], [[a, Me + "cast"], [y, je], [D, C]], [/droid.+aft(\w+)( bui|\))/i], [a, [y, se], [D, C]], [/(shield \w+ tv)/i], [a, [y, ve], [D, C]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [a, [y, Mi], [D, C]], [/(bravia[\w ]+)( bui|\))/i], [a, [y, Be], [D, C]], [/(mi(tv|box)-?\w+) bui/i], [a, [y, ei], [D, C]], [/Hbbtv.*(technisat) (.*);/i], [y, a, [D, C]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[y, A], [a, A], [D, C]], [/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i], [a, [D, C]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[D, C]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [y, a, [D, _]], [/droid.+; (shield)( bui|\))/i], [a, [y, ve], [D, _]], [/(playstation \w+)/i], [a, [y, Be], [D, _]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [a, [y, ze], [D, _]], [/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i], [a, [y, Fe], [D, K]], [/((pebble))app/i, /(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i], [y, a, [D, K]], [/(ow(?:19|20)?we?[1-3]{1,3})/i], [a, [y, qe], [D, K]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [a, [y, U], [D, K]], [/(opwwe\d{3})/i], [a, [y, Y], [D, K]], [/(moto 360)/i], [a, [y, me], [D, K]], [/(smartwatch 3)/i], [a, [y, Be], [D, K]], [/(g watch r)/i], [a, [y, ge], [D, K]], [/droid.+; (wt63?0{2,3})\)/i], [a, [y, di], [D, K]], [/droid.+; (glass) \d/i], [a, [y, je], [D, K]], [/(pico) (4|neo3(?: link|pro)?)/i], [y, a, [D, K]], [/; (quest( \d| pro)?)/i], [a, [y, Ni], [D, K]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [y, [D, le]], [/(aeobc)\b/i], [a, [y, se], [D, le]], [/(homepod).+mac os/i], [a, [y, U], [D, le]], [/windows iot/i], [[D, le]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i], [a, [D, p]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [a, [D, x]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[D, x]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[D, p]], [/droid .+?; ([\w\. -]+)( bui|\))/i], [a, [y, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [z, [N, Ne + "HTML"]], [/(arkweb)\/([\w\.]+)/i], [N, z], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [z, [N, "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], [N, z], [/ladybird\//i], [[N, "LibWeb"]], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [z, N]], os: [[/microsoft (windows) (vista|xp)/i], [N, z], [/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i], [N, [z, k, b]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[z, k, b], [N, "Windows"]], [/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[z, /_/g, "."], [N, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[N, ai], [z, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [z, N], [/(ubuntu) ([\w\.]+) like android/i], [[N, /(.+)/, "$1 Touch"], z], [/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i], [N, z], [/\(bb(10);/i], [z, [N, L]], [/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i], [z, [N, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [z, [N, fe + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [z, [N, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [z, [N, "watchOS"]], [/crkey\/([\d\.]+)/i], [z, [N, Me + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[N, Oi], 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], [N, z], [/(sunos) ?([\w\.\d]*)/i], [[N, "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], [N, z]] }, B = function(Z, $) {
|
|
3899
3899
|
if (typeof Z === j && ($ = Z, Z = r), !(this instanceof B))
|
|
3900
3900
|
return new B(Z, $).getResult();
|
|
3901
|
-
var V = typeof i !== I && i.navigator ? i.navigator : r, te = Z || (V && V.userAgent ? V.userAgent : o), be = V && V.userAgentData ? V.userAgentData : r, pe = $ ? xi(
|
|
3901
|
+
var V = typeof i !== I && i.navigator ? i.navigator : r, te = Z || (V && V.userAgent ? V.userAgent : o), be = V && V.userAgentData ? V.userAgentData : r, pe = $ ? xi(R, $) : R, oe = V && V.userAgent == te;
|
|
3902
3902
|
return this.getBrowser = function() {
|
|
3903
3903
|
var F = {};
|
|
3904
|
-
return F[N] = r, F[z] = r, h.call(F, te, pe.browser), F[c] = g(F[z]), oe && V && V.brave && typeof V.brave.isBrave ==
|
|
3904
|
+
return F[N] = r, F[z] = r, h.call(F, te, pe.browser), F[c] = g(F[z]), oe && V && V.brave && typeof V.brave.isBrave == M && (F[N] = "Brave"), F;
|
|
3905
3905
|
}, this.getCPU = function() {
|
|
3906
3906
|
var F = {};
|
|
3907
3907
|
return F[m] = r, h.call(F, te, pe.cpu), F;
|
|
3908
3908
|
}, this.getDevice = function() {
|
|
3909
3909
|
var F = {};
|
|
3910
|
-
return F[y] = r, F[
|
|
3910
|
+
return F[y] = r, F[a] = r, F[D] = r, h.call(F, te, pe.device), oe && !F[D] && be && be.mobile && (F[D] = p), oe && F[a] == "Macintosh" && V && typeof V.standalone !== I && V.maxTouchPoints && V.maxTouchPoints > 2 && (F[a] = "iPad", F[D] = x), F;
|
|
3911
3911
|
}, this.getEngine = function() {
|
|
3912
3912
|
var F = {};
|
|
3913
3913
|
return F[N] = r, F[z] = r, h.call(F, te, pe.engine), F;
|
|
3914
3914
|
}, this.getOS = function() {
|
|
3915
3915
|
var F = {};
|
|
3916
|
-
return F[N] = r, F[z] = r, h.call(F, te, pe.os), oe && !F[N] && be && be.platform && be.platform != "Unknown" && (F[N] = be.platform.replace(/chrome os/i, Oi).replace(/macos/i,
|
|
3916
|
+
return F[N] = r, F[z] = r, h.call(F, te, pe.os), oe && !F[N] && be && be.platform && be.platform != "Unknown" && (F[N] = be.platform.replace(/chrome os/i, Oi).replace(/macos/i, ai)), F;
|
|
3917
3917
|
}, this.getResult = function() {
|
|
3918
3918
|
return { ua: this.getUA(), browser: this.getBrowser(), engine: this.getEngine(), os: this.getOS(), device: this.getDevice(), cpu: this.getCPU() };
|
|
3919
3919
|
}, this.getUA = function() {
|
|
3920
3920
|
return te;
|
|
3921
3921
|
}, this.setUA = function(F) {
|
|
3922
|
-
return te = typeof F === O && F.length >
|
|
3922
|
+
return te = typeof F === O && F.length > P ? A(F, P) : F, this;
|
|
3923
3923
|
}, this.setUA(te), this;
|
|
3924
3924
|
};
|
|
3925
|
-
B.VERSION = n, B.BROWSER =
|
|
3925
|
+
B.VERSION = n, B.BROWSER = ii([N, z, c]), B.CPU = ii([m]), B.DEVICE = ii([a, y, D, _, p, C, x, K, le]), B.ENGINE = B.OS = ii([N, z]), e.exports && (t = e.exports = B), t.UAParser = B;
|
|
3926
3926
|
var W = typeof i !== I && (i.jQuery || i.Zepto);
|
|
3927
3927
|
if (W && !W.ua) {
|
|
3928
|
-
var
|
|
3929
|
-
W.ua =
|
|
3930
|
-
return
|
|
3928
|
+
var ae = new B();
|
|
3929
|
+
W.ua = ae.getResult(), W.ua.get = function() {
|
|
3930
|
+
return ae.getUA();
|
|
3931
3931
|
}, W.ua.set = function(Z) {
|
|
3932
|
-
|
|
3933
|
-
var $ =
|
|
3932
|
+
ae.setUA(Z);
|
|
3933
|
+
var $ = ae.getResult();
|
|
3934
3934
|
for (var V in $)
|
|
3935
3935
|
W.ua[V] = $[V];
|
|
3936
3936
|
};
|
|
3937
3937
|
}
|
|
3938
|
-
})(typeof window == "object" ? window :
|
|
3938
|
+
})(typeof window == "object" ? window : Ma);
|
|
3939
3939
|
})(Yi, Yi.exports)), Yi.exports;
|
|
3940
3940
|
}
|
|
3941
|
-
var
|
|
3942
|
-
function
|
|
3943
|
-
if (
|
|
3944
|
-
|
|
3941
|
+
var jn;
|
|
3942
|
+
function ua() {
|
|
3943
|
+
if (jn) return Q;
|
|
3944
|
+
jn = 1, Object.defineProperty(Q, "__esModule", { value: !0 });
|
|
3945
3945
|
function e(f) {
|
|
3946
3946
|
return f && typeof f == "object" && "default" in f ? f.default : f;
|
|
3947
3947
|
}
|
|
3948
|
-
var t =
|
|
3948
|
+
var t = sa, i = e(t), r = aa(), n = new r(), o = n.getBrowser(), s = n.getCPU(), M = n.getDevice(), I = n.getEngine(), j = n.getOS(), O = n.getUA(), c = function(u) {
|
|
3949
3949
|
return n.setUA(u);
|
|
3950
|
-
},
|
|
3950
|
+
}, a = function(u) {
|
|
3951
3951
|
if (!u) {
|
|
3952
3952
|
console.error("No userAgent string was provided");
|
|
3953
3953
|
return;
|
|
@@ -3969,12 +3969,12 @@ function cM() {
|
|
|
3969
3969
|
ClientUAInstance: n,
|
|
3970
3970
|
browser: o,
|
|
3971
3971
|
cpu: s,
|
|
3972
|
-
device:
|
|
3972
|
+
device: M,
|
|
3973
3973
|
engine: I,
|
|
3974
3974
|
os: j,
|
|
3975
3975
|
ua: O,
|
|
3976
3976
|
setUa: c,
|
|
3977
|
-
parseUserAgent:
|
|
3977
|
+
parseUserAgent: a
|
|
3978
3978
|
});
|
|
3979
3979
|
function D(f, u) {
|
|
3980
3980
|
var l = Object.keys(f);
|
|
@@ -4026,15 +4026,15 @@ function cM() {
|
|
|
4026
4026
|
writable: !0
|
|
4027
4027
|
}) : f[u] = l, f;
|
|
4028
4028
|
}
|
|
4029
|
-
function
|
|
4030
|
-
return
|
|
4029
|
+
function C() {
|
|
4030
|
+
return C = Object.assign || function(f) {
|
|
4031
4031
|
for (var u = 1; u < arguments.length; u++) {
|
|
4032
4032
|
var l = arguments[u];
|
|
4033
4033
|
for (var E in l)
|
|
4034
4034
|
Object.prototype.hasOwnProperty.call(l, E) && (f[E] = l[E]);
|
|
4035
4035
|
}
|
|
4036
4036
|
return f;
|
|
4037
|
-
},
|
|
4037
|
+
}, C.apply(this, arguments);
|
|
4038
4038
|
}
|
|
4039
4039
|
function K(f, u) {
|
|
4040
4040
|
if (typeof u != "function" && u !== null)
|
|
@@ -4045,17 +4045,17 @@ function cM() {
|
|
|
4045
4045
|
writable: !0,
|
|
4046
4046
|
configurable: !0
|
|
4047
4047
|
}
|
|
4048
|
-
}), u &&
|
|
4048
|
+
}), u && P(f, u);
|
|
4049
4049
|
}
|
|
4050
4050
|
function le(f) {
|
|
4051
4051
|
return le = Object.setPrototypeOf ? Object.getPrototypeOf : function(l) {
|
|
4052
4052
|
return l.__proto__ || Object.getPrototypeOf(l);
|
|
4053
4053
|
}, le(f);
|
|
4054
4054
|
}
|
|
4055
|
-
function
|
|
4056
|
-
return
|
|
4055
|
+
function P(f, u) {
|
|
4056
|
+
return P = Object.setPrototypeOf || function(E, w) {
|
|
4057
4057
|
return E.__proto__ = w, E;
|
|
4058
|
-
},
|
|
4058
|
+
}, P(f, u);
|
|
4059
4059
|
}
|
|
4060
4060
|
function se(f, u) {
|
|
4061
4061
|
if (f == null) return {};
|
|
@@ -4087,9 +4087,9 @@ function cM() {
|
|
|
4087
4087
|
return ee(f);
|
|
4088
4088
|
}
|
|
4089
4089
|
function J(f, u) {
|
|
4090
|
-
return
|
|
4090
|
+
return Me(f) || Ne(f, u) || fe(f, u) || Ye();
|
|
4091
4091
|
}
|
|
4092
|
-
function
|
|
4092
|
+
function Me(f) {
|
|
4093
4093
|
if (Array.isArray(f)) return f;
|
|
4094
4094
|
}
|
|
4095
4095
|
function Ne(f, u) {
|
|
@@ -4203,7 +4203,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4203
4203
|
return u || l;
|
|
4204
4204
|
}, re = function() {
|
|
4205
4205
|
return typeof window != "undefined" && (window.navigator || navigator) ? window.navigator || navigator : !1;
|
|
4206
|
-
},
|
|
4206
|
+
}, qe = function(u) {
|
|
4207
4207
|
var l = re();
|
|
4208
4208
|
return l && l.platform && (l.platform.indexOf(u) !== -1 || l.platform === "MacIntel" && l.maxTouchPoints > 1 && !window.MSStream);
|
|
4209
4209
|
}, Fe = function(u, l, E, w, ne) {
|
|
@@ -4218,7 +4218,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4218
4218
|
osVersion: Y(w.version),
|
|
4219
4219
|
userAgent: Y(ne)
|
|
4220
4220
|
};
|
|
4221
|
-
},
|
|
4221
|
+
}, Mi = function(u, l, E, w) {
|
|
4222
4222
|
return y({}, u, {
|
|
4223
4223
|
vendor: Y(l.vendor),
|
|
4224
4224
|
model: Y(l.model),
|
|
@@ -4235,7 +4235,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4235
4235
|
osVersion: Y(E.version),
|
|
4236
4236
|
userAgent: Y(w)
|
|
4237
4237
|
};
|
|
4238
|
-
},
|
|
4238
|
+
}, ei = function(u, l, E, w) {
|
|
4239
4239
|
return {
|
|
4240
4240
|
isConsole: u,
|
|
4241
4241
|
engineName: Y(l.name),
|
|
@@ -4266,21 +4266,21 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4266
4266
|
};
|
|
4267
4267
|
};
|
|
4268
4268
|
function Oi(f) {
|
|
4269
|
-
var u = f ?
|
|
4269
|
+
var u = f ? a(f) : N, l = u.device, E = u.browser, w = u.engine, ne = u.os, Oe = u.ua, Ue = me(l.type), et = Ue.isBrowser, Is = Ue.isMobile, js = Ue.isTablet, _r = Ue.isSmartTV, br = Ue.isConsole, Sr = Ue.isWearable, Cr = Ue.isEmbedded;
|
|
4270
4270
|
if (et)
|
|
4271
4271
|
return Fe(et, E, w, ne, Oe);
|
|
4272
4272
|
if (_r)
|
|
4273
4273
|
return Be(_r, w, ne, Oe);
|
|
4274
4274
|
if (br)
|
|
4275
|
-
return
|
|
4276
|
-
if (
|
|
4277
|
-
return
|
|
4278
|
-
if (Cr)
|
|
4279
|
-
return di(Cr, w, ne, Oe);
|
|
4275
|
+
return ei(br, w, ne, Oe);
|
|
4276
|
+
if (Is || js)
|
|
4277
|
+
return Mi(Ue, l, ne, Oe);
|
|
4280
4278
|
if (Sr)
|
|
4281
|
-
return
|
|
4279
|
+
return di(Sr, w, ne, Oe);
|
|
4280
|
+
if (Cr)
|
|
4281
|
+
return Ni(Cr, l, w, ne, Oe);
|
|
4282
4282
|
}
|
|
4283
|
-
var
|
|
4283
|
+
var ai = function(u) {
|
|
4284
4284
|
var l = u.type;
|
|
4285
4285
|
return l === ce.Mobile;
|
|
4286
4286
|
}, ui = function(u) {
|
|
@@ -4289,7 +4289,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4289
4289
|
}, xi = function(u) {
|
|
4290
4290
|
var l = u.type;
|
|
4291
4291
|
return l === ce.Mobile || l === ce.Tablet;
|
|
4292
|
-
},
|
|
4292
|
+
}, ii = function(u) {
|
|
4293
4293
|
var l = u.type;
|
|
4294
4294
|
return l === ce.SmartTv;
|
|
4295
4295
|
}, li = function(u) {
|
|
@@ -4310,13 +4310,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4310
4310
|
}, k = function(u) {
|
|
4311
4311
|
var l = u.model;
|
|
4312
4312
|
return Y(l);
|
|
4313
|
-
},
|
|
4313
|
+
}, S = function(u) {
|
|
4314
4314
|
var l = u.type;
|
|
4315
4315
|
return Y(l, "browser");
|
|
4316
4316
|
}, b = function(u) {
|
|
4317
4317
|
var l = u.name;
|
|
4318
4318
|
return l === ge.Android;
|
|
4319
|
-
},
|
|
4319
|
+
}, R = function(u) {
|
|
4320
4320
|
var l = u.name;
|
|
4321
4321
|
return l === ge.Windows;
|
|
4322
4322
|
}, B = function(u) {
|
|
@@ -4325,7 +4325,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4325
4325
|
}, W = function(u) {
|
|
4326
4326
|
var l = u.name;
|
|
4327
4327
|
return l === ge.WindowsPhone;
|
|
4328
|
-
},
|
|
4328
|
+
}, ae = function(u) {
|
|
4329
4329
|
var l = u.name;
|
|
4330
4330
|
return l === ge.IOS;
|
|
4331
4331
|
}, Z = function(u) {
|
|
@@ -4352,7 +4352,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4352
4352
|
}, F = function(u) {
|
|
4353
4353
|
var l = u.name;
|
|
4354
4354
|
return l === H.Safari || l === H.MobileSafari;
|
|
4355
|
-
},
|
|
4355
|
+
}, Se = function(u) {
|
|
4356
4356
|
var l = u.name;
|
|
4357
4357
|
return l === H.MobileSafari;
|
|
4358
4358
|
}, hi = function(u) {
|
|
@@ -4364,10 +4364,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4364
4364
|
}, sr = function(u) {
|
|
4365
4365
|
var l = u.name;
|
|
4366
4366
|
return l === H.MIUI;
|
|
4367
|
-
},
|
|
4367
|
+
}, Mr = function(u) {
|
|
4368
4368
|
var l = u.name;
|
|
4369
4369
|
return l === H.SamsungBrowser;
|
|
4370
|
-
},
|
|
4370
|
+
}, ar = function(u) {
|
|
4371
4371
|
var l = u.version;
|
|
4372
4372
|
return Y(l);
|
|
4373
4373
|
}, ur = function(u) {
|
|
@@ -4391,31 +4391,31 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4391
4391
|
var u = re();
|
|
4392
4392
|
return u && (/iPad|iPhone|iPod/.test(u.platform) || u.platform === "MacIntel" && u.maxTouchPoints > 1) && !window.MSStream;
|
|
4393
4393
|
}, $e = function() {
|
|
4394
|
-
return
|
|
4394
|
+
return qe("iPad");
|
|
4395
4395
|
}, Dr = function() {
|
|
4396
|
-
return
|
|
4396
|
+
return qe("iPhone");
|
|
4397
4397
|
}, Ir = function() {
|
|
4398
|
-
return
|
|
4398
|
+
return qe("iPod");
|
|
4399
4399
|
}, jr = function(u) {
|
|
4400
4400
|
return Y(u);
|
|
4401
4401
|
};
|
|
4402
4402
|
function yr(f) {
|
|
4403
4403
|
var u = f || N, l = u.device, E = u.browser, w = u.os, ne = u.engine, Oe = u.ua;
|
|
4404
4404
|
return {
|
|
4405
|
-
isSmartTV:
|
|
4405
|
+
isSmartTV: ii(l),
|
|
4406
4406
|
isConsole: g(l),
|
|
4407
4407
|
isWearable: We(l),
|
|
4408
4408
|
isEmbedded: A(l),
|
|
4409
|
-
isMobileSafari:
|
|
4409
|
+
isMobileSafari: Se(E) || $e(),
|
|
4410
4410
|
isChromium: be(E),
|
|
4411
4411
|
isMobile: xi(l) || $e(),
|
|
4412
|
-
isMobileOnly:
|
|
4412
|
+
isMobileOnly: ai(l),
|
|
4413
4413
|
isTablet: ui(l) || $e(),
|
|
4414
4414
|
isBrowser: li(l),
|
|
4415
4415
|
isDesktop: li(l),
|
|
4416
4416
|
isAndroid: b(w),
|
|
4417
4417
|
isWinPhone: W(w),
|
|
4418
|
-
isIOS:
|
|
4418
|
+
isIOS: ae(w) || $e(),
|
|
4419
4419
|
isChrome: V(E),
|
|
4420
4420
|
isFirefox: te(E),
|
|
4421
4421
|
isSafari: F(E),
|
|
@@ -4423,7 +4423,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4423
4423
|
isIE: ki(E),
|
|
4424
4424
|
osVersion: Z(w),
|
|
4425
4425
|
osName: $(w),
|
|
4426
|
-
fullBrowserVersion:
|
|
4426
|
+
fullBrowserVersion: ar(E),
|
|
4427
4427
|
browserVersion: ur(E),
|
|
4428
4428
|
browserName: lr(E),
|
|
4429
4429
|
mobileVendor: h(l),
|
|
@@ -4433,7 +4433,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4433
4433
|
getUA: jr(Oe),
|
|
4434
4434
|
isEdge: pe(E) || Ei(Oe),
|
|
4435
4435
|
isYandex: oe(E),
|
|
4436
|
-
deviceType:
|
|
4436
|
+
deviceType: S(l),
|
|
4437
4437
|
isIOS13: Nr(),
|
|
4438
4438
|
isIPad13: $e(),
|
|
4439
4439
|
isIPhone13: Dr(),
|
|
@@ -4441,18 +4441,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4441
4441
|
isElectron: dr(),
|
|
4442
4442
|
isEdgeChromium: Ei(Oe),
|
|
4443
4443
|
isLegacyEdge: pe(E) && !Ei(Oe),
|
|
4444
|
-
isWindows:
|
|
4444
|
+
isWindows: R(w),
|
|
4445
4445
|
isMacOs: B(w),
|
|
4446
4446
|
isMIUI: sr(E),
|
|
4447
|
-
isSamsungBrowser:
|
|
4447
|
+
isSamsungBrowser: Mr(E)
|
|
4448
4448
|
};
|
|
4449
4449
|
}
|
|
4450
|
-
var fr =
|
|
4450
|
+
var fr = ii(M), Ar = g(M), Tr = We(M), zo = A(M), Oo = Se(o) || $e(), xo = be(o), qi = xi(M) || $e(), zr = ai(M), Or = ui(M) || $e(), xr = li(M), ho = li(M), hr = b(j), Er = W(j), mr = ae(j) || $e(), Eo = V(o), mo = te(o), wo = F(o), po = hi(o), wr = ki(o), _o = Z(j), bo = $(j), So = ar(o), Co = ur(o), vo = lr(o), Lo = h(M), ko = k(M), Uo = cr(I), Qo = gr(I), Yo = jr(O), Ro = pe(o) || Ei(O), Po = oe(o), Vo = S(M), Fo = Nr(), Bo = $e(), Wo = Dr(), Zo = Ir(), Ho = dr(), Go = Ei(O), Jo = pe(o) && !Ei(O), $o = R(j), Xo = B(j), Ko = sr(o), qo = Mr(o), es = function(u) {
|
|
4451
4451
|
if (!u || typeof u != "string") {
|
|
4452
4452
|
console.error("No valid user agent string was provided");
|
|
4453
4453
|
return;
|
|
4454
4454
|
}
|
|
4455
|
-
var l =
|
|
4455
|
+
var l = a(u), E = l.device, w = l.browser, ne = l.os, Oe = l.engine, Ue = l.ua;
|
|
4456
4456
|
return yr({
|
|
4457
4457
|
device: E,
|
|
4458
4458
|
browser: w,
|
|
@@ -4460,48 +4460,48 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4460
4460
|
engine: Oe,
|
|
4461
4461
|
ua: Ue
|
|
4462
4462
|
});
|
|
4463
|
-
},
|
|
4463
|
+
}, is = function(u) {
|
|
4464
4464
|
var l = u.renderWithFragment, E = u.children, w = U(u, ["renderWithFragment", "children"]);
|
|
4465
4465
|
return hr ? l ? i.createElement(t.Fragment, null, E) : i.createElement("div", w, E) : null;
|
|
4466
|
-
},
|
|
4466
|
+
}, ts = function(u) {
|
|
4467
4467
|
var l = u.renderWithFragment, E = u.children, w = U(u, ["renderWithFragment", "children"]);
|
|
4468
4468
|
return xr ? l ? i.createElement(t.Fragment, null, E) : i.createElement("div", w, E) : null;
|
|
4469
|
-
},
|
|
4469
|
+
}, rs = function(u) {
|
|
4470
4470
|
var l = u.renderWithFragment, E = u.children, w = U(u, ["renderWithFragment", "children"]);
|
|
4471
4471
|
return wr ? l ? i.createElement(t.Fragment, null, E) : i.createElement("div", w, E) : null;
|
|
4472
|
-
},
|
|
4472
|
+
}, ns = function(u) {
|
|
4473
4473
|
var l = u.renderWithFragment, E = u.children, w = U(u, ["renderWithFragment", "children"]);
|
|
4474
4474
|
return mr ? l ? i.createElement(t.Fragment, null, E) : i.createElement("div", w, E) : null;
|
|
4475
|
-
},
|
|
4475
|
+
}, os = function(u) {
|
|
4476
4476
|
var l = u.renderWithFragment, E = u.children, w = U(u, ["renderWithFragment", "children"]);
|
|
4477
4477
|
return qi ? l ? i.createElement(t.Fragment, null, E) : i.createElement("div", w, E) : null;
|
|
4478
|
-
},
|
|
4478
|
+
}, ss = function(u) {
|
|
4479
4479
|
var l = u.renderWithFragment, E = u.children, w = U(u, ["renderWithFragment", "children"]);
|
|
4480
4480
|
return Or ? l ? i.createElement(t.Fragment, null, E) : i.createElement("div", w, E) : null;
|
|
4481
|
-
},
|
|
4481
|
+
}, Ms = function(u) {
|
|
4482
4482
|
var l = u.renderWithFragment, E = u.children, w = U(u, ["renderWithFragment", "children"]);
|
|
4483
4483
|
return Er ? l ? i.createElement(t.Fragment, null, E) : i.createElement("div", w, E) : null;
|
|
4484
|
-
},
|
|
4484
|
+
}, as = function(u) {
|
|
4485
4485
|
var l = u.renderWithFragment, E = u.children;
|
|
4486
4486
|
u.viewClassName, u.style;
|
|
4487
4487
|
var w = U(u, ["renderWithFragment", "children", "viewClassName", "style"]);
|
|
4488
4488
|
return zr ? l ? i.createElement(t.Fragment, null, E) : i.createElement("div", w, E) : null;
|
|
4489
|
-
},
|
|
4489
|
+
}, us = function(u) {
|
|
4490
4490
|
var l = u.renderWithFragment, E = u.children, w = U(u, ["renderWithFragment", "children"]);
|
|
4491
4491
|
return fr ? l ? i.createElement(t.Fragment, null, E) : i.createElement("div", w, E) : null;
|
|
4492
|
-
},
|
|
4492
|
+
}, ls = function(u) {
|
|
4493
4493
|
var l = u.renderWithFragment, E = u.children, w = U(u, ["renderWithFragment", "children"]);
|
|
4494
4494
|
return Ar ? l ? i.createElement(t.Fragment, null, E) : i.createElement("div", w, E) : null;
|
|
4495
|
-
},
|
|
4495
|
+
}, cs = function(u) {
|
|
4496
4496
|
var l = u.renderWithFragment, E = u.children, w = U(u, ["renderWithFragment", "children"]);
|
|
4497
4497
|
return Tr ? l ? i.createElement(t.Fragment, null, E) : i.createElement("div", w, E) : null;
|
|
4498
|
-
},
|
|
4498
|
+
}, gs = function(u) {
|
|
4499
4499
|
var l = u.renderWithFragment, E = u.children;
|
|
4500
4500
|
u.viewClassName, u.style;
|
|
4501
4501
|
var w = u.condition, ne = U(u, ["renderWithFragment", "children", "viewClassName", "style", "condition"]);
|
|
4502
4502
|
return w ? l ? i.createElement(t.Fragment, null, E) : i.createElement("div", ne, E) : null;
|
|
4503
4503
|
};
|
|
4504
|
-
function
|
|
4504
|
+
function ds(f) {
|
|
4505
4505
|
return /* @__PURE__ */ (function(u) {
|
|
4506
4506
|
K(l, u);
|
|
4507
4507
|
function l(E) {
|
|
@@ -4544,7 +4544,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4544
4544
|
}, {
|
|
4545
4545
|
key: "render",
|
|
4546
4546
|
value: function() {
|
|
4547
|
-
return i.createElement(f,
|
|
4547
|
+
return i.createElement(f, C({}, this.props, {
|
|
4548
4548
|
isLandscape: this.state.isLandscape,
|
|
4549
4549
|
isPortrait: this.state.isPortrait
|
|
4550
4550
|
}));
|
|
@@ -4552,7 +4552,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4552
4552
|
}]), l;
|
|
4553
4553
|
})(i.Component);
|
|
4554
4554
|
}
|
|
4555
|
-
function
|
|
4555
|
+
function Ns() {
|
|
4556
4556
|
var f = t.useState(function() {
|
|
4557
4557
|
var ne = window.innerWidth > window.innerHeight ? 90 : 0;
|
|
4558
4558
|
return {
|
|
@@ -4576,18 +4576,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4576
4576
|
}
|
|
4577
4577
|
function pr(f) {
|
|
4578
4578
|
var u = f || window.navigator.userAgent;
|
|
4579
|
-
return
|
|
4579
|
+
return a(u);
|
|
4580
4580
|
}
|
|
4581
|
-
function
|
|
4581
|
+
function Ds(f) {
|
|
4582
4582
|
var u = f || window.navigator.userAgent, l = pr(u), E = yr(l);
|
|
4583
4583
|
return [E, l];
|
|
4584
4584
|
}
|
|
4585
|
-
return Q.AndroidView =
|
|
4585
|
+
return Q.AndroidView = is, Q.BrowserTypes = H, Q.BrowserView = ts, Q.ConsoleView = ls, Q.CustomView = gs, Q.IEView = rs, Q.IOSView = ns, Q.MobileOnlyView = as, Q.MobileView = os, Q.OsTypes = ge, Q.SmartTVView = us, Q.TabletView = ss, Q.WearableView = cs, Q.WinPhoneView = Ms, Q.browserName = vo, Q.browserVersion = Co, Q.deviceDetect = Oi, Q.deviceType = Vo, Q.engineName = Uo, Q.engineVersion = Qo, Q.fullBrowserVersion = So, Q.getSelectorsByUserAgent = es, Q.getUA = Yo, Q.isAndroid = hr, Q.isBrowser = xr, Q.isChrome = Eo, Q.isChromium = xo, Q.isConsole = Ar, Q.isDesktop = ho, Q.isEdge = Ro, Q.isEdgeChromium = Go, Q.isElectron = Ho, Q.isEmbedded = zo, Q.isFirefox = mo, Q.isIE = wr, Q.isIOS = mr, Q.isIOS13 = Fo, Q.isIPad13 = Bo, Q.isIPhone13 = Wo, Q.isIPod13 = Zo, Q.isLegacyEdge = Jo, Q.isMIUI = Ko, Q.isMacOs = Xo, Q.isMobile = qi, Q.isMobileOnly = zr, Q.isMobileSafari = Oo, Q.isOpera = po, Q.isSafari = wo, Q.isSamsungBrowser = qo, Q.isSmartTV = fr, Q.isTablet = Or, Q.isWearable = Tr, Q.isWinPhone = Er, Q.isWindows = $o, Q.isYandex = Po, Q.mobileModel = ko, Q.mobileVendor = Lo, Q.osName = bo, Q.osVersion = _o, Q.parseUserAgent = a, Q.setUserAgent = ve, Q.useDeviceData = pr, Q.useDeviceSelectors = Ds, Q.useMobileOrientation = Ns, Q.withOrientationChange = ds, Q;
|
|
4586
4586
|
}
|
|
4587
|
-
var Ii =
|
|
4588
|
-
const
|
|
4587
|
+
var Ii = ua();
|
|
4588
|
+
const la = {
|
|
4589
4589
|
display: "none"
|
|
4590
|
-
},
|
|
4590
|
+
}, ca = {
|
|
4591
4591
|
display: "flex",
|
|
4592
4592
|
alignItems: "center",
|
|
4593
4593
|
justifyContent: "center",
|
|
@@ -4597,7 +4597,7 @@ const gM = {
|
|
|
4597
4597
|
borderRadius: "16px",
|
|
4598
4598
|
background: "#7e57c5",
|
|
4599
4599
|
cursor: "pointer"
|
|
4600
|
-
},
|
|
4600
|
+
}, ga = {
|
|
4601
4601
|
position: "relative",
|
|
4602
4602
|
display: "flex",
|
|
4603
4603
|
alignItems: "center",
|
|
@@ -4606,7 +4606,7 @@ const gM = {
|
|
|
4606
4606
|
width: "100%",
|
|
4607
4607
|
minHeight: "100%",
|
|
4608
4608
|
overflow: "auto"
|
|
4609
|
-
},
|
|
4609
|
+
}, da = ({
|
|
4610
4610
|
header: e,
|
|
4611
4611
|
footer: t,
|
|
4612
4612
|
backgroundColor: i,
|
|
@@ -4614,15 +4614,15 @@ const gM = {
|
|
|
4614
4614
|
selectionLimit: n
|
|
4615
4615
|
}) => {
|
|
4616
4616
|
var O, c;
|
|
4617
|
-
const { perform: o } = zi(), s = Je(null),
|
|
4617
|
+
const { perform: o } = zi(), s = Je(null), M = typeof n == "number" && (n === 0 || n > 1), I = (a) => Ie(null, null, function* () {
|
|
4618
4618
|
var D;
|
|
4619
|
-
const N = Array.from((D =
|
|
4619
|
+
const N = Array.from((D = a.currentTarget.files) != null ? D : []);
|
|
4620
4620
|
if (N.length)
|
|
4621
4621
|
try {
|
|
4622
4622
|
const z = (yield Promise.allSettled(
|
|
4623
4623
|
N.map((m) => Ie(null, null, function* () {
|
|
4624
4624
|
return {
|
|
4625
|
-
content: yield
|
|
4625
|
+
content: yield kn(m),
|
|
4626
4626
|
metadata: {
|
|
4627
4627
|
name: m.name,
|
|
4628
4628
|
type: m.type,
|
|
@@ -4643,39 +4643,39 @@ const gM = {
|
|
|
4643
4643
|
console.error("Error: ", y);
|
|
4644
4644
|
}
|
|
4645
4645
|
}), j = () => Ie(null, null, function* () {
|
|
4646
|
-
var
|
|
4647
|
-
(
|
|
4646
|
+
var a;
|
|
4647
|
+
(a = s.current) == null || a.showPicker();
|
|
4648
4648
|
});
|
|
4649
4649
|
return Ve(() => {
|
|
4650
4650
|
Ie(null, null, function* () {
|
|
4651
4651
|
if (Ii.isDesktop) return;
|
|
4652
|
-
const
|
|
4653
|
-
(
|
|
4652
|
+
const a = yield Vs();
|
|
4653
|
+
(a === "denied" || a === "error") && o({
|
|
4654
4654
|
cancel: !1,
|
|
4655
4655
|
permissionDenied: !0,
|
|
4656
4656
|
files: []
|
|
4657
4657
|
});
|
|
4658
4658
|
});
|
|
4659
|
-
}, []), /* @__PURE__ */ d(gi, { header: e, footer: t, backgroundColor: i, children: /* @__PURE__ */ d(
|
|
4659
|
+
}, []), /* @__PURE__ */ d(gi, { header: e, footer: t, backgroundColor: i, children: /* @__PURE__ */ d(Ce, { children: /* @__PURE__ */ d(
|
|
4660
4660
|
"div",
|
|
4661
4661
|
{
|
|
4662
|
-
style: G(T({},
|
|
4662
|
+
style: G(T({}, ga), {
|
|
4663
4663
|
justifyContent: "center"
|
|
4664
4664
|
}),
|
|
4665
4665
|
children: [
|
|
4666
4666
|
/* @__PURE__ */ d(
|
|
4667
4667
|
"input",
|
|
4668
4668
|
G(T({
|
|
4669
|
-
style:
|
|
4669
|
+
style: la,
|
|
4670
4670
|
ref: s,
|
|
4671
4671
|
type: "file",
|
|
4672
4672
|
accept: "image/*",
|
|
4673
4673
|
capture: "user"
|
|
4674
|
-
},
|
|
4674
|
+
}, M ? { multiple: !0 } : {}), {
|
|
4675
4675
|
onInput: I
|
|
4676
4676
|
})
|
|
4677
4677
|
),
|
|
4678
|
-
/* @__PURE__ */ d("button", { style:
|
|
4678
|
+
/* @__PURE__ */ d("button", { style: ca, onClick: j, children: /* @__PURE__ */ d(_e, { imageId: (c = (O = r == null ? void 0 : r[0]) == null ? void 0 : O.image) == null ? void 0 : c.imageId }) })
|
|
4679
4679
|
]
|
|
4680
4680
|
}
|
|
4681
4681
|
) }) });
|
|
@@ -4687,7 +4687,7 @@ const gM = {
|
|
|
4687
4687
|
} catch (t) {
|
|
4688
4688
|
return "unknown";
|
|
4689
4689
|
}
|
|
4690
|
-
}),
|
|
4690
|
+
}), Na = () => Ie(null, null, function* () {
|
|
4691
4691
|
try {
|
|
4692
4692
|
return yield navigator.permissions.query({ name: "geolocation" });
|
|
4693
4693
|
} catch (e) {
|
|
@@ -4733,13 +4733,13 @@ const gM = {
|
|
|
4733
4733
|
e
|
|
4734
4734
|
);
|
|
4735
4735
|
});
|
|
4736
|
-
}),
|
|
4736
|
+
}), Da = {
|
|
4737
4737
|
height: "100%",
|
|
4738
4738
|
fontFamily: "sans-serif",
|
|
4739
4739
|
display: "flex",
|
|
4740
4740
|
flexDirection: "column",
|
|
4741
4741
|
gap: "15px"
|
|
4742
|
-
},
|
|
4742
|
+
}, Ia = {
|
|
4743
4743
|
flex: "1 1 100%",
|
|
4744
4744
|
display: "flex",
|
|
4745
4745
|
justifyContent: "flex-start",
|
|
@@ -4751,7 +4751,7 @@ const gM = {
|
|
|
4751
4751
|
width: "100%",
|
|
4752
4752
|
overflow: "auto",
|
|
4753
4753
|
position: "relative"
|
|
4754
|
-
},
|
|
4754
|
+
}, ja = {
|
|
4755
4755
|
position: "absolute",
|
|
4756
4756
|
// TODO: move popup with styles with overlay styles to common component (BaseContainer?)
|
|
4757
4757
|
width: "100%",
|
|
@@ -4766,25 +4766,25 @@ const gM = {
|
|
|
4766
4766
|
zIndex: 1e3,
|
|
4767
4767
|
pointerEvents: "auto",
|
|
4768
4768
|
cursor: "default"
|
|
4769
|
-
},
|
|
4769
|
+
}, ya = {
|
|
4770
4770
|
width: "100%",
|
|
4771
4771
|
height: "auto",
|
|
4772
4772
|
marginBottom: "32px",
|
|
4773
4773
|
aspectRatio: 1.61
|
|
4774
|
-
},
|
|
4774
|
+
}, fa = {
|
|
4775
4775
|
marginBottom: 20,
|
|
4776
4776
|
lineHeight: "39.2px",
|
|
4777
4777
|
width: "100%"
|
|
4778
|
-
},
|
|
4778
|
+
}, Aa = {
|
|
4779
4779
|
lineHeight: "28px",
|
|
4780
4780
|
fontWeight: "400",
|
|
4781
4781
|
width: "100%"
|
|
4782
|
-
},
|
|
4782
|
+
}, Ta = {
|
|
4783
4783
|
position: "relative",
|
|
4784
4784
|
padding: "32px 24px 0 24px",
|
|
4785
4785
|
border: "1px solid rgba(0, 0, 0, 0.06)",
|
|
4786
4786
|
width: "min(400px, calc(100vw - 32px))"
|
|
4787
|
-
},
|
|
4787
|
+
}, za = {
|
|
4788
4788
|
marginBottom: "10px",
|
|
4789
4789
|
fontWeight: 500,
|
|
4790
4790
|
display: "-webkit-box",
|
|
@@ -4793,20 +4793,20 @@ const gM = {
|
|
|
4793
4793
|
overflow: "hidden",
|
|
4794
4794
|
textOverflow: "ellipsis",
|
|
4795
4795
|
lineClamp: 2
|
|
4796
|
-
},
|
|
4796
|
+
}, Oa = {
|
|
4797
4797
|
marginBottom: "84px",
|
|
4798
4798
|
fontWeight: 400
|
|
4799
|
-
},
|
|
4799
|
+
}, xa = {
|
|
4800
4800
|
height: "100%",
|
|
4801
4801
|
overflow: "scroll",
|
|
4802
4802
|
maxHeight: "calc(100dvh - 190px)"
|
|
4803
|
-
},
|
|
4803
|
+
}, ha = {
|
|
4804
4804
|
position: "absolute",
|
|
4805
4805
|
bottom: 0,
|
|
4806
4806
|
left: 0,
|
|
4807
4807
|
padding: "24px",
|
|
4808
4808
|
width: "100%"
|
|
4809
|
-
},
|
|
4809
|
+
}, Ea = ({
|
|
4810
4810
|
title: e,
|
|
4811
4811
|
header: t,
|
|
4812
4812
|
footer: i,
|
|
@@ -4814,18 +4814,18 @@ const gM = {
|
|
|
4814
4814
|
description: n,
|
|
4815
4815
|
buttons: o,
|
|
4816
4816
|
backgroundColor: s,
|
|
4817
|
-
popups:
|
|
4817
|
+
popups: M,
|
|
4818
4818
|
askEveryTime: I,
|
|
4819
4819
|
getLocationTimeout: j
|
|
4820
4820
|
}) => {
|
|
4821
|
-
var
|
|
4822
|
-
const O = Nt.FORM, { perform: c } = zi(), { setIsProcessingCallback:
|
|
4821
|
+
var P, se;
|
|
4822
|
+
const O = Nt.FORM, { perform: c } = zi(), { setIsProcessingCallback: a } = Ls(), [N, D] = we(!1), y = () => {
|
|
4823
4823
|
var U;
|
|
4824
4824
|
(U = m == null ? void 0 : m.popups) != null && U.system_restricted || D(!0);
|
|
4825
4825
|
}, z = () => {
|
|
4826
4826
|
var U;
|
|
4827
4827
|
(U = m == null ? void 0 : m.popups) != null && U.system_restricted || D(!1);
|
|
4828
|
-
}, { devSettings: m } =
|
|
4828
|
+
}, { devSettings: m } = vs(), _ = !!((se = (P = m == null ? void 0 : m.popups) == null ? void 0 : P.system_restricted) != null && se.isOpen);
|
|
4829
4829
|
Ve(() => {
|
|
4830
4830
|
m && D(_);
|
|
4831
4831
|
}, [_, m]);
|
|
@@ -4833,15 +4833,15 @@ const gM = {
|
|
|
4833
4833
|
enableHighAccuracy: !0,
|
|
4834
4834
|
timeout: typeof j == "number" && j > 0 ? j * 1e3 : 15e3,
|
|
4835
4835
|
maximumAge: 6e4
|
|
4836
|
-
}, x =
|
|
4836
|
+
}, x = M == null ? void 0 : M.find((U) => U.reason === Qs.SYSTEM_RESTRICTED);
|
|
4837
4837
|
ci(() => {
|
|
4838
|
-
Ii.isSafari || I ||
|
|
4838
|
+
Ii.isSafari || I || a == null || a(!0);
|
|
4839
4839
|
}, []), Ve(() => {
|
|
4840
4840
|
if (Ii.isSafari || I) return;
|
|
4841
4841
|
let U = !0;
|
|
4842
4842
|
return Ie(null, null, function* () {
|
|
4843
4843
|
if ((yield Ot()) !== "granted") {
|
|
4844
|
-
|
|
4844
|
+
a == null || a(!1);
|
|
4845
4845
|
return;
|
|
4846
4846
|
}
|
|
4847
4847
|
const L = yield Qi(p);
|
|
@@ -4853,9 +4853,9 @@ const gM = {
|
|
|
4853
4853
|
if (Ii.isSafari) return;
|
|
4854
4854
|
let U = !0, ee = null;
|
|
4855
4855
|
return Ie(null, null, function* () {
|
|
4856
|
-
const L = yield
|
|
4856
|
+
const L = yield Na();
|
|
4857
4857
|
L && (ee = L, L.onchange = () => Ie(null, null, function* () {
|
|
4858
|
-
if (L.state === "denied" && (
|
|
4858
|
+
if (L.state === "denied" && (a == null || a(!0), c(
|
|
4859
4859
|
{
|
|
4860
4860
|
location: {
|
|
4861
4861
|
locationState: "application_location_restricted",
|
|
@@ -4866,7 +4866,7 @@ const gM = {
|
|
|
4866
4866
|
},
|
|
4867
4867
|
O
|
|
4868
4868
|
)), L.state === "granted") {
|
|
4869
|
-
|
|
4869
|
+
a == null || a(!0);
|
|
4870
4870
|
const J = yield Qi(p);
|
|
4871
4871
|
if (!U) return;
|
|
4872
4872
|
c(J, O);
|
|
@@ -4876,7 +4876,7 @@ const gM = {
|
|
|
4876
4876
|
Ii.isSafari || (U = !1, ee && (ee.onchange = null));
|
|
4877
4877
|
};
|
|
4878
4878
|
}, []);
|
|
4879
|
-
const
|
|
4879
|
+
const C = (U) => Ie(null, null, function* () {
|
|
4880
4880
|
U.preventDefault();
|
|
4881
4881
|
const ee = yield Ot();
|
|
4882
4882
|
if (ee === "denied") {
|
|
@@ -4892,18 +4892,18 @@ const gM = {
|
|
|
4892
4892
|
y();
|
|
4893
4893
|
return;
|
|
4894
4894
|
}
|
|
4895
|
-
|
|
4895
|
+
a == null || a(!0);
|
|
4896
4896
|
const L = yield Qi(p);
|
|
4897
4897
|
c(L, O);
|
|
4898
4898
|
}), le = (U) => {
|
|
4899
4899
|
U.preventDefault(), z();
|
|
4900
4900
|
};
|
|
4901
4901
|
return /* @__PURE__ */ d(gi, { header: t, footer: i, backgroundColor: s, children: [
|
|
4902
|
-
/* @__PURE__ */ d("div", { style:
|
|
4903
|
-
/* @__PURE__ */ d("div", { style:
|
|
4904
|
-
r && /* @__PURE__ */ d("div", { style:
|
|
4905
|
-
e && /* @__PURE__ */ d("div", { style:
|
|
4906
|
-
n && /* @__PURE__ */ d("div", { style:
|
|
4902
|
+
/* @__PURE__ */ d("div", { style: Da, children: [
|
|
4903
|
+
/* @__PURE__ */ d("div", { style: Ia, children: [
|
|
4904
|
+
r && /* @__PURE__ */ d("div", { style: ya, children: /* @__PURE__ */ d(_e, T({}, r)) }),
|
|
4905
|
+
e && /* @__PURE__ */ d("div", { style: fa, children: /* @__PURE__ */ d(Te, T({}, e)) }),
|
|
4906
|
+
n && /* @__PURE__ */ d("div", { style: Aa, children: /* @__PURE__ */ d(jt, T({}, n)) })
|
|
4907
4907
|
] }),
|
|
4908
4908
|
!!(o != null && o.length) && /* @__PURE__ */ d(
|
|
4909
4909
|
"div",
|
|
@@ -4917,7 +4917,7 @@ const gM = {
|
|
|
4917
4917
|
T(T({
|
|
4918
4918
|
dataTestId: "question-button"
|
|
4919
4919
|
}, U), U.type === "FORM" ? {
|
|
4920
|
-
onClick: Ii.isSafari ? K :
|
|
4920
|
+
onClick: Ii.isSafari ? K : C
|
|
4921
4921
|
} : {})
|
|
4922
4922
|
) }, ee))
|
|
4923
4923
|
}
|
|
@@ -4926,21 +4926,21 @@ const gM = {
|
|
|
4926
4926
|
x && N && /* @__PURE__ */ d(
|
|
4927
4927
|
"div",
|
|
4928
4928
|
{
|
|
4929
|
-
style:
|
|
4929
|
+
style: ja,
|
|
4930
4930
|
onPointerDown: (U) => {
|
|
4931
4931
|
U.preventDefault(), U.stopPropagation(), z();
|
|
4932
4932
|
},
|
|
4933
4933
|
children: /* @__PURE__ */ d(
|
|
4934
4934
|
"div",
|
|
4935
4935
|
{
|
|
4936
|
-
style: G(T({},
|
|
4936
|
+
style: G(T({}, Ta), {
|
|
4937
4937
|
borderRadius: (x == null ? void 0 : x.cornerRadius) || "27px",
|
|
4938
4938
|
backgroundColor: (x == null ? void 0 : x.backgroundColor) || "#ffffff"
|
|
4939
4939
|
}),
|
|
4940
4940
|
children: [
|
|
4941
|
-
/* @__PURE__ */ d("div", { style:
|
|
4942
|
-
/* @__PURE__ */ d("div", { style:
|
|
4943
|
-
x.actionButton1 && /* @__PURE__ */ d("div", { style:
|
|
4941
|
+
/* @__PURE__ */ d("div", { style: za, children: /* @__PURE__ */ d(Te, T({}, T({ fontSize: "24px" }, x.title))) }),
|
|
4942
|
+
/* @__PURE__ */ d("div", { style: Oa, children: /* @__PURE__ */ d("div", { style: xa, children: /* @__PURE__ */ d(Te, T({}, T({ fontSize: "17px" }, x.message))) }) }),
|
|
4943
|
+
x.actionButton1 && /* @__PURE__ */ d("div", { style: ha, children: /* @__PURE__ */ d(
|
|
4944
4944
|
ut,
|
|
4945
4945
|
T(T({
|
|
4946
4946
|
dataTestId: "question-button"
|
|
@@ -4952,13 +4952,13 @@ const gM = {
|
|
|
4952
4952
|
}
|
|
4953
4953
|
)
|
|
4954
4954
|
] });
|
|
4955
|
-
},
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
if (t ===
|
|
4955
|
+
}, ma = ({ moduleProps: e }) => {
|
|
4956
|
+
var o;
|
|
4957
|
+
const { templateId: t, templateLayout: i } = e, { perform: r } = zi();
|
|
4958
|
+
if (!t || !i) return /* @__PURE__ */ d(Jr, {});
|
|
4959
|
+
if (t === ri.STATUS)
|
|
4960
4960
|
return /* @__PURE__ */ d(
|
|
4961
|
-
|
|
4961
|
+
$s,
|
|
4962
4962
|
{
|
|
4963
4963
|
header: i == null ? void 0 : i.header,
|
|
4964
4964
|
footer: i == null ? void 0 : i.footer,
|
|
@@ -4969,9 +4969,9 @@ const gM = {
|
|
|
4969
4969
|
backgroundColor: i == null ? void 0 : i.backgroundColor
|
|
4970
4970
|
}
|
|
4971
4971
|
);
|
|
4972
|
-
if (t ===
|
|
4972
|
+
if (t === ri.INFO)
|
|
4973
4973
|
return /* @__PURE__ */ d(
|
|
4974
|
-
|
|
4974
|
+
qs,
|
|
4975
4975
|
{
|
|
4976
4976
|
header: i == null ? void 0 : i.header,
|
|
4977
4977
|
footer: i == null ? void 0 : i.footer,
|
|
@@ -4982,25 +4982,25 @@ const gM = {
|
|
|
4982
4982
|
backgroundColor: i == null ? void 0 : i.backgroundColor
|
|
4983
4983
|
}
|
|
4984
4984
|
);
|
|
4985
|
-
if (t ===
|
|
4985
|
+
if (t === ri.GEOLOCATION)
|
|
4986
4986
|
return /* @__PURE__ */ d(
|
|
4987
|
-
|
|
4987
|
+
Ea,
|
|
4988
4988
|
{
|
|
4989
|
-
header: i.header,
|
|
4990
|
-
footer: i.footer,
|
|
4991
|
-
image: i.image,
|
|
4992
|
-
title: i.title,
|
|
4993
|
-
description: i.description,
|
|
4994
|
-
buttons: i.buttons,
|
|
4989
|
+
header: i == null ? void 0 : i.header,
|
|
4990
|
+
footer: i == null ? void 0 : i.footer,
|
|
4991
|
+
image: i == null ? void 0 : i.image,
|
|
4992
|
+
title: i == null ? void 0 : i.title,
|
|
4993
|
+
description: i == null ? void 0 : i.description,
|
|
4994
|
+
buttons: i == null ? void 0 : i.buttons,
|
|
4995
4995
|
backgroundColor: i == null ? void 0 : i.backgroundColor,
|
|
4996
|
-
popups: i.popups,
|
|
4997
|
-
askEveryTime: i.askEveryTime,
|
|
4998
|
-
getLocationTimeout:
|
|
4996
|
+
popups: i == null ? void 0 : i.popups,
|
|
4997
|
+
askEveryTime: i == null ? void 0 : i.askEveryTime,
|
|
4998
|
+
getLocationTimeout: e.getLocationTimeout
|
|
4999
4999
|
}
|
|
5000
5000
|
);
|
|
5001
|
-
if (t ===
|
|
5001
|
+
if (t === ri.PROGRESS)
|
|
5002
5002
|
return /* @__PURE__ */ d(
|
|
5003
|
-
|
|
5003
|
+
Jr,
|
|
5004
5004
|
{
|
|
5005
5005
|
header: i == null ? void 0 : i.header,
|
|
5006
5006
|
footer: i == null ? void 0 : i.footer,
|
|
@@ -5008,9 +5008,9 @@ const gM = {
|
|
|
5008
5008
|
backgroundColor: i == null ? void 0 : i.backgroundColor
|
|
5009
5009
|
}
|
|
5010
5010
|
);
|
|
5011
|
-
if (t ===
|
|
5011
|
+
if (t === ri.INFO_DETAILS)
|
|
5012
5012
|
return /* @__PURE__ */ d(
|
|
5013
|
-
|
|
5013
|
+
nM,
|
|
5014
5014
|
{
|
|
5015
5015
|
header: i == null ? void 0 : i.header,
|
|
5016
5016
|
title: i == null ? void 0 : i.title,
|
|
@@ -5020,81 +5020,69 @@ const gM = {
|
|
|
5020
5020
|
backgroundColor: i == null ? void 0 : i.backgroundColor
|
|
5021
5021
|
}
|
|
5022
5022
|
);
|
|
5023
|
-
if (t ===
|
|
5023
|
+
if (t === ri.CAMERA)
|
|
5024
5024
|
return /* @__PURE__ */ d(
|
|
5025
|
-
|
|
5025
|
+
da,
|
|
5026
5026
|
{
|
|
5027
5027
|
header: i == null ? void 0 : i.header,
|
|
5028
5028
|
buttons: i == null ? void 0 : i.buttons,
|
|
5029
5029
|
footer: i == null ? void 0 : i.footer,
|
|
5030
|
-
backgroundColor: e
|
|
5031
|
-
selectionLimit: e
|
|
5030
|
+
backgroundColor: e.backgroundColor,
|
|
5031
|
+
selectionLimit: e.selectionLimit
|
|
5032
5032
|
}
|
|
5033
5033
|
);
|
|
5034
|
-
if (t ===
|
|
5034
|
+
if (t === ri.GALLERY)
|
|
5035
5035
|
return /* @__PURE__ */ d(
|
|
5036
|
-
|
|
5036
|
+
na,
|
|
5037
5037
|
{
|
|
5038
5038
|
header: i == null ? void 0 : i.header,
|
|
5039
5039
|
buttons: i == null ? void 0 : i.buttons,
|
|
5040
5040
|
footer: i == null ? void 0 : i.footer,
|
|
5041
|
-
backgroundColor: e
|
|
5042
|
-
selectionLimit: e
|
|
5041
|
+
backgroundColor: e.backgroundColor,
|
|
5042
|
+
selectionLimit: e.selectionLimit
|
|
5043
5043
|
}
|
|
5044
5044
|
);
|
|
5045
|
-
if (t ===
|
|
5045
|
+
if (t === ri.QUESTIONS) {
|
|
5046
|
+
const s = (o = e.properties) != null && o.length ? JSON.stringify(e.properties) : "default-key";
|
|
5046
5047
|
return /* @__PURE__ */ d(
|
|
5047
|
-
|
|
5048
|
+
ea,
|
|
5048
5049
|
{
|
|
5049
|
-
dataSource:
|
|
5050
|
-
properties:
|
|
5051
|
-
questions: i.questions,
|
|
5050
|
+
dataSource: e.dataSource,
|
|
5051
|
+
properties: e.properties,
|
|
5052
|
+
questions: i == null ? void 0 : i.questions,
|
|
5052
5053
|
header: i == null ? void 0 : i.header,
|
|
5053
5054
|
footer: i == null ? void 0 : i.footer,
|
|
5054
5055
|
title: i == null ? void 0 : i.title,
|
|
5055
5056
|
buttons: i == null ? void 0 : i.buttons,
|
|
5056
5057
|
backgroundColor: i == null ? void 0 : i.backgroundColor
|
|
5057
5058
|
},
|
|
5058
|
-
|
|
5059
|
+
s
|
|
5059
5060
|
);
|
|
5060
|
-
|
|
5061
|
-
|
|
5061
|
+
}
|
|
5062
|
+
const n = new bi({
|
|
5063
|
+
errorCode: Pi.DECODING_FAILED,
|
|
5062
5064
|
message: "Unsupported step template id"
|
|
5063
5065
|
});
|
|
5064
|
-
return
|
|
5066
|
+
return r(n), null;
|
|
5065
5067
|
};
|
|
5066
5068
|
let xt = !1;
|
|
5067
|
-
const
|
|
5069
|
+
const ba = ({ children: e }) => /* @__PURE__ */ d(Ce, { children: [
|
|
5068
5070
|
/* @__PURE__ */ d("style", { children: "#gui-idv-web-c *, #gui-idv-web-c *::before, #gui-idv-web-c *::after {box-sizing: border-box;}" }),
|
|
5069
5071
|
e
|
|
5070
|
-
] }),
|
|
5071
|
-
|
|
5072
|
-
|
|
5073
|
-
|
|
5074
|
-
|
|
5075
|
-
|
|
5076
|
-
|
|
5077
|
-
|
|
5078
|
-
|
|
5079
|
-
|
|
5080
|
-
|
|
5081
|
-
}
|
|
5082
|
-
|
|
5083
|
-
|
|
5084
|
-
{
|
|
5085
|
-
perform: I,
|
|
5086
|
-
setIsProcessingCallback: e,
|
|
5087
|
-
devSettings: r,
|
|
5088
|
-
children: /* @__PURE__ */ d(An, { children: /* @__PURE__ */ d(
|
|
5089
|
-
fn,
|
|
5090
|
-
T(T(T({
|
|
5091
|
-
templateId: n,
|
|
5092
|
-
templateLayout: o
|
|
5093
|
-
}, t.backgroundColor ? { backgroundColor: t.backgroundColor } : {}), typeof t.selectionLimit == "number" ? { selectionLimit: t.selectionLimit } : {}), typeof t.getLocationTimeout == "number" ? { getLocationTimeout: t.getLocationTimeout } : {})
|
|
5094
|
-
) })
|
|
5095
|
-
}
|
|
5096
|
-
);
|
|
5097
|
-
}, Wi = class Wi extends bs {
|
|
5072
|
+
] }), wa = ({ children: e }) => /* @__PURE__ */ d("div", { part: "gui-idv", id: "gui-idv-web-c", style: { backgroundColor: "white", height: "100%", width: "100%" }, children: e }), pa = ({
|
|
5073
|
+
isProcessing: e,
|
|
5074
|
+
moduleProps: t,
|
|
5075
|
+
perform: i,
|
|
5076
|
+
devSettings: r
|
|
5077
|
+
}) => /* @__PURE__ */ d(
|
|
5078
|
+
Cs,
|
|
5079
|
+
{
|
|
5080
|
+
perform: (n, o) => i == null ? void 0 : i(n, o),
|
|
5081
|
+
setIsProcessingCallback: e,
|
|
5082
|
+
devSettings: r,
|
|
5083
|
+
children: /* @__PURE__ */ d(wa, { children: /* @__PURE__ */ d(ma, { moduleProps: t }) })
|
|
5084
|
+
}
|
|
5085
|
+
), Wi = class Wi extends ws {
|
|
5098
5086
|
constructor() {
|
|
5099
5087
|
super(), this._mounted = !1, this._shadowRoot = this.attachShadow({ mode: "open" }), this.props = null;
|
|
5100
5088
|
}
|
|
@@ -5136,7 +5124,7 @@ const bM = ({ children: e }) => /* @__PURE__ */ d(Se, { children: [
|
|
|
5136
5124
|
}
|
|
5137
5125
|
Ai(
|
|
5138
5126
|
/* @__PURE__ */ d(
|
|
5139
|
-
|
|
5127
|
+
pa,
|
|
5140
5128
|
{
|
|
5141
5129
|
moduleProps: this.props.moduleProps,
|
|
5142
5130
|
perform: this.props.perform,
|
|
@@ -5164,16 +5152,16 @@ const bM = ({ children: e }) => /* @__PURE__ */ d(Se, { children: [
|
|
|
5164
5152
|
xt = !1;
|
|
5165
5153
|
}
|
|
5166
5154
|
};
|
|
5167
|
-
Wi.displayName =
|
|
5155
|
+
Wi.displayName = at, Wi.getSupportedTemplates = () => Object.values(ri), Wi.getIdentifier = () => at;
|
|
5168
5156
|
let Lt = Wi;
|
|
5169
|
-
|
|
5157
|
+
ps(at, Lt);
|
|
5170
5158
|
export {
|
|
5171
5159
|
Lt as GuiIdv,
|
|
5172
|
-
|
|
5173
|
-
|
|
5174
|
-
|
|
5175
|
-
|
|
5160
|
+
pa as GuiIdvReactComponent,
|
|
5161
|
+
ri as GuiIdvSteps,
|
|
5162
|
+
ba as GuiIdvStyleInjectionWrapper,
|
|
5163
|
+
Pi as GuiModuleError,
|
|
5176
5164
|
ue as IDV_UI_ICONS,
|
|
5177
|
-
|
|
5165
|
+
Qs as PopupReason,
|
|
5178
5166
|
_t as idvIconDataUrlMap
|
|
5179
5167
|
};
|