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