@hievilmath/browser-formidavim 1.4.32 → 1.4.34
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/index.js +89 -89
- package/index.mjs +293 -298
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ var I6 = Object.defineProperty;
|
|
|
2
2
|
var _6 = (e, r, i) => r in e ? I6(e, r, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[r] = i;
|
|
3
3
|
var y0 = (e, r, i) => _6(e, typeof r != "symbol" ? r + "" : r, i);
|
|
4
4
|
import * as Re from "react";
|
|
5
|
-
import Qs, { useState as
|
|
5
|
+
import Qs, { useState as Zt, useEffect as Tn, useRef as Hu, useCallback as br, forwardRef as F6, useContext as V6, useMemo as j6 } from "react";
|
|
6
6
|
import { Link as XC } from "react-router-dom";
|
|
7
7
|
import _e, { css as Bt, ThemeProvider as U6 } from "styled-components";
|
|
8
8
|
import { useDispatch as B6, useSelector as pp, Provider as z6 } from "react-redux";
|
|
@@ -626,13 +626,13 @@ React keys must be passed directly to JSX without using spread:
|
|
|
626
626
|
return ae === s ? Ot(lr) : Et(lr), lr;
|
|
627
627
|
}
|
|
628
628
|
}
|
|
629
|
-
function
|
|
629
|
+
function xn(ae, We, ot) {
|
|
630
630
|
return zt(ae, We, ot, !0);
|
|
631
631
|
}
|
|
632
632
|
function hn(ae, We, ot) {
|
|
633
633
|
return zt(ae, We, ot, !1);
|
|
634
634
|
}
|
|
635
|
-
var Zn = hn, ln =
|
|
635
|
+
var Zn = hn, ln = xn;
|
|
636
636
|
Gm.Fragment = s, Gm.jsx = Zn, Gm.jsxs = ln;
|
|
637
637
|
}()), Gm;
|
|
638
638
|
}
|
|
@@ -4672,10 +4672,10 @@ const w5 = {
|
|
|
4672
4672
|
margin-bottom: 4px;
|
|
4673
4673
|
`, RO = ({ formComponent: e }) => {
|
|
4674
4674
|
var j;
|
|
4675
|
-
const { getFlowValue: r, setFlowAndPatientValue: i, getFlowError: s } = Lr(), [c, p] =
|
|
4675
|
+
const { getFlowValue: r, setFlowAndPatientValue: i, getFlowError: s } = Lr(), [c, p] = Zt({}), d = e.props, v = (d == null ? void 0 : d.options) || [], b = [], S = r(d.propertyId), T = s(d.propertyId), w = !!T && T !== "Required";
|
|
4676
4676
|
d.propertyId || b.push("Error");
|
|
4677
4677
|
const R = (d == null ? void 0 : d.required) === "true";
|
|
4678
|
-
|
|
4678
|
+
Tn(() => {
|
|
4679
4679
|
}, [S]);
|
|
4680
4680
|
const A = (G) => {
|
|
4681
4681
|
const { value: Y } = G.target;
|
|
@@ -5010,12 +5010,12 @@ const Z5 = _e.div`
|
|
|
5010
5010
|
return (s < 0 || s === 0 && r.getDate() < e.getDate()) && i--, i;
|
|
5011
5011
|
}, oL = ({ formComponent: e }) => {
|
|
5012
5012
|
const r = e.props, { propertyId: i, label: s = "Label", minDate: c, maxDate: p, minAge: d } = r || {}, { getFlowValue: v, setFlowAndPatientValue: b, getFlowError: S, setFlowError: T } = Lr(), w = v(r.propertyId), R = S(r.propertyId), A = !!R && R !== "Required";
|
|
5013
|
-
|
|
5013
|
+
Tn(() => {
|
|
5014
5014
|
if (d && w) {
|
|
5015
5015
|
const G = new Date(w);
|
|
5016
5016
|
S0(G) && (oC(G) < d ? T(i, `Must be over ${d}`) : T(i, ""));
|
|
5017
5017
|
}
|
|
5018
|
-
}, [d, w, i, T]),
|
|
5018
|
+
}, [d, w, i, T]), Tn(() => {
|
|
5019
5019
|
if (d && w) {
|
|
5020
5020
|
const G = new Date(w);
|
|
5021
5021
|
S0(G) && (oC(G) < d ? T(i, `Must be over ${d}`) : T(i, ""));
|
|
@@ -5060,7 +5060,7 @@ const Z5 = _e.div`
|
|
|
5060
5060
|
}
|
|
5061
5061
|
) });
|
|
5062
5062
|
}, aL = ({ formComponent: e }) => {
|
|
5063
|
-
const r = e.props, { propertyId: i, label: s = "Text Area Input" } = r || {}, { getFlowValue: c, setFlowAndPatientValue: p, getFlowError: d } = Lr(), v = c(r.propertyId), b = d(i), S = !!b && b !== "Required", T = (r == null ? void 0 : r.options) || [], [w, R] =
|
|
5063
|
+
const r = e.props, { propertyId: i, label: s = "Text Area Input" } = r || {}, { getFlowValue: c, setFlowAndPatientValue: p, getFlowError: d } = Lr(), v = c(r.propertyId), b = d(i), S = !!b && b !== "Required", T = (r == null ? void 0 : r.options) || [], [w, R] = Zt(!1), A = () => {
|
|
5064
5064
|
w || R(!0);
|
|
5065
5065
|
}, L = (P) => {
|
|
5066
5066
|
const { value: j } = P.target;
|
|
@@ -5118,7 +5118,7 @@ const Z5 = _e.div`
|
|
|
5118
5118
|
] }) : null
|
|
5119
5119
|
] });
|
|
5120
5120
|
}, lL = ({ formComponent: e }) => {
|
|
5121
|
-
const r = e.props, { propertyId: i, label: s = "Input Label" } = r || {}, { getFlowValue: c, setFlowAndPatientValue: p, getPatientValue: d, getFlowError: v } = Lr(), b = c(i), S = v(i), T = !!S && S !== "Required", w = d("dosing"), [R, A] =
|
|
5121
|
+
const r = e.props, { propertyId: i, label: s = "Input Label" } = r || {}, { getFlowValue: c, setFlowAndPatientValue: p, getPatientValue: d, getFlowError: v } = Lr(), b = c(i), S = v(i), T = !!S && S !== "Required", w = d("dosing"), [R, A] = Zt(!1);
|
|
5122
5122
|
if (!w)
|
|
5123
5123
|
return /* @__PURE__ */ I.jsx("p", { children: "Titration options not available for preview" });
|
|
5124
5124
|
const L = Object.values(w)[0], P = typeof L == "object" && L !== null && "titrations" in L ? L.titrations : [], j = () => {
|
|
@@ -10216,7 +10216,7 @@ const hv = (e) => {
|
|
|
10216
10216
|
apiUrl: r.api
|
|
10217
10217
|
});
|
|
10218
10218
|
}, vL = ({ formComponent: e, formidavimHost: r }) => {
|
|
10219
|
-
const i = e.props, { required: s, maxLength: c, propertyId: p, label: d = "Email", inlineCopy: v } = i || {}, { getFlowValue: b, setFlowAndPatientValue: S, getFlowError: T, setFlowError: w, setDisableSubmitValue: R, setFlowValue: A } = Lr(), L = Rp(b(p)), [P, j] =
|
|
10219
|
+
const i = e.props, { required: s, maxLength: c, propertyId: p, label: d = "Email", inlineCopy: v } = i || {}, { getFlowValue: b, setFlowAndPatientValue: S, getFlowError: T, setFlowError: w, setDisableSubmitValue: R, setFlowValue: A } = Lr(), L = Rp(b(p)), [P, j] = Zt(""), [G, Y] = Zt(!1), [k, V] = Zt(null), N = Hu(!1), z = hv(r), Z = br(async (he) => {
|
|
10220
10220
|
if (!he || !hp(he).valid || N.current) {
|
|
10221
10221
|
V(null);
|
|
10222
10222
|
return;
|
|
@@ -10231,11 +10231,11 @@ const hv = (e) => {
|
|
|
10231
10231
|
Y(!1), N.current = !1;
|
|
10232
10232
|
}
|
|
10233
10233
|
}, [z, R]);
|
|
10234
|
-
|
|
10234
|
+
Tn(() => {
|
|
10235
10235
|
j(L);
|
|
10236
|
-
}, [L]),
|
|
10236
|
+
}, [L]), Tn(() => {
|
|
10237
10237
|
s && (!L || L === "") ? (w(p, "Required"), R(!0)) : L && !hp(L).valid ? (w(p, "Please enter a valid email address"), R(!0)) : L && hp(L).valid && (w(p, null), G && R(!0));
|
|
10238
|
-
}, [L, s, p, w, R, G]),
|
|
10238
|
+
}, [L, s, p, w, R, G]), Tn(() => {
|
|
10239
10239
|
const he = setTimeout(() => {
|
|
10240
10240
|
L && hp(L).valid ? Z(L) : (V(null), R(!1));
|
|
10241
10241
|
}, 500);
|
|
@@ -10289,16 +10289,16 @@ const hv = (e) => {
|
|
|
10289
10289
|
setFlowError: R,
|
|
10290
10290
|
setDisableSubmitValue: A,
|
|
10291
10291
|
setFlowValue: L
|
|
10292
|
-
} = Lr(), P = Rp(S(c)), j = b ? Rp(S(b)) : "", G = w(c), Y = b ? w(b) : null, k = !!G && G !== "Required", V = !!Y && Y !== "Required", [N, z] =
|
|
10292
|
+
} = Lr(), P = Rp(S(c)), j = b ? Rp(S(b)) : "", G = w(c), Y = b ? w(b) : null, k = !!G && G !== "Required", V = !!Y && Y !== "Required", [N, z] = Zt(!1), [Z, ie] = Zt(!1), [ge, M] = Zt(""), [se, Ee] = Zt(""), he = (Te) => {
|
|
10293
10293
|
if (Te.length < v) return !1;
|
|
10294
10294
|
const B = /[a-z]/.test(Te), W = /[A-Z]/.test(Te), Oe = /\d/.test(Te), Ue = /[^A-Za-z0-9]/.test(Te);
|
|
10295
10295
|
return B && W && Oe && Ue;
|
|
10296
10296
|
}, Ce = (Te, B) => Te === B;
|
|
10297
|
-
|
|
10297
|
+
Tn(() => {
|
|
10298
10298
|
M(P);
|
|
10299
|
-
}, [P]),
|
|
10299
|
+
}, [P]), Tn(() => {
|
|
10300
10300
|
b && Ee(j);
|
|
10301
|
-
}, [j, b]),
|
|
10301
|
+
}, [j, b]), Tn(() => {
|
|
10302
10302
|
const Te = he(ge), B = b ? Ce(ge, se) : !0;
|
|
10303
10303
|
i && (!ge || ge === "") ? (R(c, "Required"), A(!0)) : ge && !Te ? (R(c, `Password must be at least ${v} characters with lowercase, uppercase, number, and special character`), A(!0)) : b && ge && se && !B ? (R(b, "Passwords do not match"), A(!0)) : ge && Te && (!b || B) && (R(c, null), b && R(b, null), A(!1));
|
|
10304
10304
|
}, [ge, se, i, c, b, R, A, v]);
|
|
@@ -10460,7 +10460,7 @@ const hv = (e) => {
|
|
|
10460
10460
|
] })
|
|
10461
10461
|
] });
|
|
10462
10462
|
}, gL = ({ formComponent: e, formidavimHost: r }) => {
|
|
10463
|
-
const i = e.props, { required: s, maxLength: c, propertyId: p, label: d = "Phone Number" } = i || {}, { getFlowValue: v, setFlowAndPatientValue: b, getFlowError: S, setFlowError: T, setDisableSubmitValue: w, setFlowValue: R } = Lr(), A = Rp(v(p)), [L, P] =
|
|
10463
|
+
const i = e.props, { required: s, maxLength: c, propertyId: p, label: d = "Phone Number" } = i || {}, { getFlowValue: v, setFlowAndPatientValue: b, getFlowError: S, setFlowError: T, setDisableSubmitValue: w, setFlowValue: R } = Lr(), A = Rp(v(p)), [L, P] = Zt(A), [j, G] = Zt(!1), [Y, k] = Zt(null), V = Hu(!1), N = hv(r), z = br(async (Ce) => {
|
|
10464
10464
|
if (!Ce || !ie(Ce) || V.current) {
|
|
10465
10465
|
k(null);
|
|
10466
10466
|
return;
|
|
@@ -10489,11 +10489,11 @@ const hv = (e) => {
|
|
|
10489
10489
|
const ve = fe === "", pe = ie(fe);
|
|
10490
10490
|
!ve && !pe ? (T(p, "Please enter a valid phone number"), R(p, null)) : pe ? (T(p, null), b(p, fe)) : (T(p, null), R(p, null));
|
|
10491
10491
|
};
|
|
10492
|
-
|
|
10492
|
+
Tn(() => {
|
|
10493
10493
|
P(A);
|
|
10494
|
-
}, [A]),
|
|
10494
|
+
}, [A]), Tn(() => {
|
|
10495
10495
|
s && (!A || A === "") ? (T(p, "Required"), w(!0)) : A && A.length > 0 && !ie(A) ? (T(p, "Please enter a valid phone number"), w(!0)) : A && ie(A) && (T(p, null), j && w(!0));
|
|
10496
|
-
}, [A, s, p, T, w, j]),
|
|
10496
|
+
}, [A, s, p, T, w, j]), Tn(() => {
|
|
10497
10497
|
const Ce = setTimeout(() => {
|
|
10498
10498
|
A && ie(A) ? z(A) : (k(null), w(!1));
|
|
10499
10499
|
}, 500);
|
|
@@ -16813,7 +16813,7 @@ function q4() {
|
|
|
16813
16813
|
} catch {
|
|
16814
16814
|
fn = !1;
|
|
16815
16815
|
}
|
|
16816
|
-
function
|
|
16816
|
+
function xn(o, a, f, m, x, E, _, re, de) {
|
|
16817
16817
|
var Me = Array.prototype.slice.call(arguments, 3);
|
|
16818
16818
|
try {
|
|
16819
16819
|
a.apply(f, Me);
|
|
@@ -16825,7 +16825,7 @@ function q4() {
|
|
|
16825
16825
|
hn = !0, Zn = o;
|
|
16826
16826
|
} };
|
|
16827
16827
|
function ot(o, a, f, m, x, E, _, re, de) {
|
|
16828
|
-
hn = !1, Zn = null,
|
|
16828
|
+
hn = !1, Zn = null, xn.apply(We, arguments);
|
|
16829
16829
|
}
|
|
16830
16830
|
function It(o, a, f, m, x, E, _, re, de) {
|
|
16831
16831
|
if (ot.apply(this, arguments), hn) {
|
|
@@ -18014,15 +18014,15 @@ function q4() {
|
|
|
18014
18014
|
function mr(o) {
|
|
18015
18015
|
return o[uc] || null;
|
|
18016
18016
|
}
|
|
18017
|
-
var
|
|
18017
|
+
var Sn = [], Ma = -1;
|
|
18018
18018
|
function La(o) {
|
|
18019
18019
|
return { current: o };
|
|
18020
18020
|
}
|
|
18021
18021
|
function nr(o) {
|
|
18022
|
-
0 > Ma || (o.current =
|
|
18022
|
+
0 > Ma || (o.current = Sn[Ma], Sn[Ma] = null, Ma--);
|
|
18023
18023
|
}
|
|
18024
18024
|
function _t(o, a) {
|
|
18025
|
-
Ma++,
|
|
18025
|
+
Ma++, Sn[Ma] = o.current, o.current = a;
|
|
18026
18026
|
}
|
|
18027
18027
|
var Ao = {}, wr = La(Ao), qr = La(!1), na = Ao;
|
|
18028
18028
|
function ra(o, a) {
|
|
@@ -18461,7 +18461,7 @@ function q4() {
|
|
|
18461
18461
|
function kl(o, a, f) {
|
|
18462
18462
|
var m = o.updateQueue;
|
|
18463
18463
|
if (m === null) return null;
|
|
18464
|
-
if (m = m.shared, (
|
|
18464
|
+
if (m = m.shared, (Cn & 2) !== 0) {
|
|
18465
18465
|
var x = m.pending;
|
|
18466
18466
|
return x === null ? a.next = a : (a.next = x.next, x.next = a), m.pending = a, Ca(o, f);
|
|
18467
18467
|
}
|
|
@@ -20323,16 +20323,16 @@ Error generating stack: ` + E.message + `
|
|
|
20323
20323
|
Rt = a.return;
|
|
20324
20324
|
}
|
|
20325
20325
|
}
|
|
20326
|
-
var Zb = Math.ceil, Ml = V.ReactCurrentDispatcher, ks = V.ReactCurrentOwner, go = V.ReactCurrentBatchConfig,
|
|
20326
|
+
var Zb = Math.ceil, Ml = V.ReactCurrentDispatcher, ks = V.ReactCurrentOwner, go = V.ReactCurrentBatchConfig, Cn = 0, Xr = null, Br = null, bo = 0, Ea = 0, gu = La(0), Nr = 0, _c = null, Oi = 0, bu = 0, Rf = 0, Fc = null, ca = null, Mh = 0, xu = 1 / 0, Ta = null, Su = !1, Ps = null, Ll = null, Of = !1, el = null, Vc = 0, Il = 0, Cu = null, jc = -1, No = 0;
|
|
20327
20327
|
function zr() {
|
|
20328
|
-
return (
|
|
20328
|
+
return (Cn & 6) !== 0 ? Xt() : jc !== -1 ? jc : jc = Xt();
|
|
20329
20329
|
}
|
|
20330
20330
|
function $i(o) {
|
|
20331
|
-
return (o.mode & 1) === 0 ? 1 : (
|
|
20331
|
+
return (o.mode & 1) === 0 ? 1 : (Cn & 2) !== 0 && bo !== 0 ? bo & -bo : Qb.transition !== null ? (No === 0 && (No = Zo()), No) : (o = jn, o !== 0 || (o = window.event, o = o === void 0 ? 16 : wd(o.type)), o);
|
|
20332
20332
|
}
|
|
20333
20333
|
function Fo(o, a, f, m) {
|
|
20334
20334
|
if (50 < Il) throw Il = 0, Cu = null, Error(i(185));
|
|
20335
|
-
Jo(o, f, m), ((
|
|
20335
|
+
Jo(o, f, m), ((Cn & 2) === 0 || o !== Xr) && (o === Xr && ((Cn & 2) === 0 && (bu |= f), Nr === 4 && oi(o, bo)), da(o, m), f === 1 && Cn === 0 && (a.mode & 1) === 0 && (xu = Xt() + 500, fu && xi()));
|
|
20336
20336
|
}
|
|
20337
20337
|
function da(o, a) {
|
|
20338
20338
|
var f = o.callbackNode;
|
|
@@ -20341,7 +20341,7 @@ Error generating stack: ` + E.message + `
|
|
|
20341
20341
|
if (m === 0) f !== null && eo(f), o.callbackNode = null, o.callbackPriority = 0;
|
|
20342
20342
|
else if (a = m & -m, o.callbackPriority !== a) {
|
|
20343
20343
|
if (f != null && eo(f), a === 1) o.tag === 0 ? Tl(Lh.bind(null, o)) : Wd(Lh.bind(null, o)), su(function() {
|
|
20344
|
-
(
|
|
20344
|
+
(Cn & 6) === 0 && xi();
|
|
20345
20345
|
}), f = null;
|
|
20346
20346
|
else {
|
|
20347
20347
|
switch (Dp(m)) {
|
|
@@ -20366,7 +20366,7 @@ Error generating stack: ` + E.message + `
|
|
|
20366
20366
|
}
|
|
20367
20367
|
}
|
|
20368
20368
|
function $f(o, a) {
|
|
20369
|
-
if (jc = -1, No = 0, (
|
|
20369
|
+
if (jc = -1, No = 0, (Cn & 6) !== 0) throw Error(i(327));
|
|
20370
20370
|
var f = o.callbackNode;
|
|
20371
20371
|
if (wu() && o.callbackNode !== f) return null;
|
|
20372
20372
|
var m = mi(o, o === Xr ? bo : 0);
|
|
@@ -20374,8 +20374,8 @@ Error generating stack: ` + E.message + `
|
|
|
20374
20374
|
if ((m & 30) !== 0 || (m & o.expiredLanes) !== 0 || a) a = Af(o, m);
|
|
20375
20375
|
else {
|
|
20376
20376
|
a = m;
|
|
20377
|
-
var x =
|
|
20378
|
-
|
|
20377
|
+
var x = Cn;
|
|
20378
|
+
Cn |= 2;
|
|
20379
20379
|
var E = Ry();
|
|
20380
20380
|
(Xr !== o || bo !== a) && (Ta = null, xu = Xt() + 500, tl(o, a));
|
|
20381
20381
|
do
|
|
@@ -20386,7 +20386,7 @@ Error generating stack: ` + E.message + `
|
|
|
20386
20386
|
Ty(o, re);
|
|
20387
20387
|
}
|
|
20388
20388
|
while (!0);
|
|
20389
|
-
dh(), Ml.current = E,
|
|
20389
|
+
dh(), Ml.current = E, Cn = x, Br !== null ? a = 0 : (Xr = null, bo = 0, a = Nr);
|
|
20390
20390
|
}
|
|
20391
20391
|
if (a !== 0) {
|
|
20392
20392
|
if (a === 2 && (x = Ui(o), x !== 0 && (m = x, a = Uc(o, x))), a === 1) throw f = _c, tl(o, 0), oi(o, m), da(o, Xt()), f;
|
|
@@ -20474,7 +20474,7 @@ Error generating stack: ` + E.message + `
|
|
|
20474
20474
|
}
|
|
20475
20475
|
}
|
|
20476
20476
|
function Lh(o) {
|
|
20477
|
-
if ((
|
|
20477
|
+
if ((Cn & 6) !== 0) throw Error(i(327));
|
|
20478
20478
|
wu();
|
|
20479
20479
|
var a = mi(o, 0);
|
|
20480
20480
|
if ((a & 1) === 0) return da(o, Xt()), null;
|
|
@@ -20488,23 +20488,23 @@ Error generating stack: ` + E.message + `
|
|
|
20488
20488
|
return o.finishedWork = o.current.alternate, o.finishedLanes = a, Ms(o, ca, Ta), da(o, Xt()), null;
|
|
20489
20489
|
}
|
|
20490
20490
|
function Ih(o, a) {
|
|
20491
|
-
var f =
|
|
20492
|
-
|
|
20491
|
+
var f = Cn;
|
|
20492
|
+
Cn |= 1;
|
|
20493
20493
|
try {
|
|
20494
20494
|
return o(a);
|
|
20495
20495
|
} finally {
|
|
20496
|
-
|
|
20496
|
+
Cn = f, Cn === 0 && (xu = Xt() + 500, fu && xi());
|
|
20497
20497
|
}
|
|
20498
20498
|
}
|
|
20499
20499
|
function Ds(o) {
|
|
20500
|
-
el !== null && el.tag === 0 && (
|
|
20501
|
-
var a =
|
|
20502
|
-
|
|
20500
|
+
el !== null && el.tag === 0 && (Cn & 6) === 0 && wu();
|
|
20501
|
+
var a = Cn;
|
|
20502
|
+
Cn |= 1;
|
|
20503
20503
|
var f = go.transition, m = jn;
|
|
20504
20504
|
try {
|
|
20505
20505
|
if (go.transition = null, jn = 1, o) return o();
|
|
20506
20506
|
} finally {
|
|
20507
|
-
jn = m, go.transition = f,
|
|
20507
|
+
jn = m, go.transition = f, Cn = a, (Cn & 6) === 0 && xi();
|
|
20508
20508
|
}
|
|
20509
20509
|
}
|
|
20510
20510
|
function _h() {
|
|
@@ -20640,8 +20640,8 @@ Error generating stack: ` + E.message + `
|
|
|
20640
20640
|
(Nr === 0 || Nr === 3 || Nr === 2) && (Nr = 4), Xr === null || (Oi & 268435455) === 0 && (bu & 268435455) === 0 || oi(Xr, bo);
|
|
20641
20641
|
}
|
|
20642
20642
|
function Af(o, a) {
|
|
20643
|
-
var f =
|
|
20644
|
-
|
|
20643
|
+
var f = Cn;
|
|
20644
|
+
Cn |= 2;
|
|
20645
20645
|
var m = Ry();
|
|
20646
20646
|
(Xr !== o || bo !== a) && (Ta = null, tl(o, a));
|
|
20647
20647
|
do
|
|
@@ -20652,7 +20652,7 @@ Error generating stack: ` + E.message + `
|
|
|
20652
20652
|
Ty(o, x);
|
|
20653
20653
|
}
|
|
20654
20654
|
while (!0);
|
|
20655
|
-
if (dh(),
|
|
20655
|
+
if (dh(), Cn = f, Ml.current = m, Br !== null) throw Error(i(261));
|
|
20656
20656
|
return Xr = null, bo = 0, Nr;
|
|
20657
20657
|
}
|
|
20658
20658
|
function e1() {
|
|
@@ -20706,7 +20706,7 @@ Error generating stack: ` + E.message + `
|
|
|
20706
20706
|
do
|
|
20707
20707
|
wu();
|
|
20708
20708
|
while (el !== null);
|
|
20709
|
-
if ((
|
|
20709
|
+
if ((Cn & 6) !== 0) throw Error(i(327));
|
|
20710
20710
|
f = o.finishedWork;
|
|
20711
20711
|
var x = o.finishedLanes;
|
|
20712
20712
|
if (f === null) return null;
|
|
@@ -20719,8 +20719,8 @@ Error generating stack: ` + E.message + `
|
|
|
20719
20719
|
E = go.transition, go.transition = null;
|
|
20720
20720
|
var _ = jn;
|
|
20721
20721
|
jn = 1;
|
|
20722
|
-
var re =
|
|
20723
|
-
|
|
20722
|
+
var re = Cn;
|
|
20723
|
+
Cn |= 4, ks.current = null, Sy(o, f), Ph(f, o), ou(hs), ls = !!sc, hs = sc = null, o.current = f, Kb(f), tr(), Cn = re, jn = _, go.transition = E;
|
|
20724
20724
|
} else o.current = f;
|
|
20725
20725
|
if (Of && (Of = !1, el = o, Vc = x), E = o.pendingLanes, E === 0 && (Ll = null), fo(f.stateNode), da(o, Xt()), a !== null) for (m = o.onRecoverableError, f = 0; f < a.length; f++) x = a[f], m(x.value, { componentStack: x.stack, digest: x.digest });
|
|
20726
20726
|
if (Su) throw Su = !1, o = Ps, Ps = null, o;
|
|
@@ -20732,9 +20732,9 @@ Error generating stack: ` + E.message + `
|
|
|
20732
20732
|
try {
|
|
20733
20733
|
if (go.transition = null, jn = 16 > o ? 16 : o, el === null) var m = !1;
|
|
20734
20734
|
else {
|
|
20735
|
-
if (o = el, el = null, Vc = 0, (
|
|
20736
|
-
var x =
|
|
20737
|
-
for (
|
|
20735
|
+
if (o = el, el = null, Vc = 0, (Cn & 6) !== 0) throw Error(i(331));
|
|
20736
|
+
var x = Cn;
|
|
20737
|
+
for (Cn |= 4, Rt = o.current; Rt !== null; ) {
|
|
20738
20738
|
var E = Rt, _ = E.child;
|
|
20739
20739
|
if ((Rt.flags & 16) !== 0) {
|
|
20740
20740
|
var re = E.deletions;
|
|
@@ -20824,7 +20824,7 @@ Error generating stack: ` + E.message + `
|
|
|
20824
20824
|
Rt = re.return;
|
|
20825
20825
|
}
|
|
20826
20826
|
}
|
|
20827
|
-
if (
|
|
20827
|
+
if (Cn = x, xi(), gn && typeof gn.onPostCommitFiberRoot == "function") try {
|
|
20828
20828
|
gn.onPostCommitFiberRoot(Sr, o);
|
|
20829
20829
|
} catch {
|
|
20830
20830
|
}
|
|
@@ -21260,7 +21260,7 @@ Error generating stack: ` + E.message + `
|
|
|
21260
21260
|
var a = o.stateNode;
|
|
21261
21261
|
if (a.current.memoizedState.isDehydrated) {
|
|
21262
21262
|
var f = $r(a.pendingLanes);
|
|
21263
|
-
f !== 0 && (xd(a, f | 1), da(a, Xt()), (
|
|
21263
|
+
f !== 0 && (xd(a, f | 1), da(a, Xt()), (Cn & 6) === 0 && (xu = Xt() + 500, xi()));
|
|
21264
21264
|
}
|
|
21265
21265
|
break;
|
|
21266
21266
|
case 13:
|
|
@@ -21957,7 +21957,7 @@ function Q4() {
|
|
|
21957
21957
|
}
|
|
21958
21958
|
}
|
|
21959
21959
|
}
|
|
21960
|
-
var fn = Symbol.for("react.element"), zt = Symbol.for("react.portal"),
|
|
21960
|
+
var fn = Symbol.for("react.element"), zt = Symbol.for("react.portal"), xn = Symbol.for("react.fragment"), hn = Symbol.for("react.strict_mode"), Zn = Symbol.for("react.profiler"), ln = Symbol.for("react.provider"), ae = Symbol.for("react.context"), We = Symbol.for("react.forward_ref"), ot = Symbol.for("react.suspense"), It = Symbol.for("react.suspense_list"), $t = Symbol.for("react.memo"), Wt = Symbol.for("react.lazy"), en = Symbol.for("react.scope"), tn = Symbol.for("react.debug_trace_mode"), Rr = Symbol.for("react.offscreen"), er = Symbol.for("react.legacy_hidden"), lr = Symbol.for("react.cache"), eo = Symbol.for("react.tracing_marker"), Yt = Symbol.iterator, tr = "@@iterator";
|
|
21961
21961
|
function Xt(t) {
|
|
21962
21962
|
if (t === null || typeof t != "object")
|
|
21963
21963
|
return null;
|
|
@@ -22208,7 +22208,7 @@ Error generating stack: ` + u.message + `
|
|
|
22208
22208
|
if (typeof t == "string")
|
|
22209
22209
|
return t;
|
|
22210
22210
|
switch (t) {
|
|
22211
|
-
case
|
|
22211
|
+
case xn:
|
|
22212
22212
|
return "Fragment";
|
|
22213
22213
|
case zt:
|
|
22214
22214
|
return "Portal";
|
|
@@ -23711,16 +23711,16 @@ Check the render method of \`` + t + "`." : "";
|
|
|
23711
23711
|
function jt() {
|
|
23712
23712
|
xe = !0, Ve(), l.apply(u, bt), ye = !1;
|
|
23713
23713
|
}
|
|
23714
|
-
var Lt,
|
|
23714
|
+
var Lt, En = !1, bn = !1;
|
|
23715
23715
|
function Ae(ke) {
|
|
23716
|
-
if (Lt = ke.error,
|
|
23716
|
+
if (Lt = ke.error, En = !0, Lt === null && ke.colno === 0 && ke.lineno === 0 && (bn = !0), ke.defaultPrevented && Lt != null && typeof Lt == "object")
|
|
23717
23717
|
try {
|
|
23718
23718
|
Lt._suppressLogging = !0;
|
|
23719
23719
|
} catch {
|
|
23720
23720
|
}
|
|
23721
23721
|
}
|
|
23722
23722
|
var je = "react-" + (n || "invokeguardedcallback");
|
|
23723
|
-
if (window.addEventListener("error", Ae), ih.addEventListener(je, jt, !1), Q.initEvent(je, !1, !1), ih.dispatchEvent(Q), Ie && Object.defineProperty(window, "event", Ie), xe && ye && (
|
|
23723
|
+
if (window.addEventListener("error", Ae), ih.addEventListener(je, jt, !1), Q.initEvent(je, !1, !1), ih.dispatchEvent(Q), Ie && Object.defineProperty(window, "event", Ie), xe && ye && (En ? bn && (Lt = new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")) : Lt = new Error(`An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the "Pause on exceptions" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue.`), this.onError(Lt)), window.removeEventListener("error", Ae), !xe)
|
|
23724
23724
|
return Ve(), Bd.apply(this, arguments);
|
|
23725
23725
|
};
|
|
23726
23726
|
}
|
|
@@ -23772,7 +23772,7 @@ Check the render method of \`` + t + "`." : "";
|
|
|
23772
23772
|
), mr = (
|
|
23773
23773
|
/* */
|
|
23774
23774
|
2
|
|
23775
|
-
),
|
|
23775
|
+
), Sn = (
|
|
23776
23776
|
/* */
|
|
23777
23777
|
4
|
|
23778
23778
|
), Ma = (
|
|
@@ -23841,8 +23841,8 @@ Check the render method of \`` + t + "`." : "";
|
|
|
23841
23841
|
), Rl = (
|
|
23842
23842
|
// TODO: Remove Update flag from before mutation phase by re-landing Visibility
|
|
23843
23843
|
// flag logic (see #20043)
|
|
23844
|
-
|
|
23845
|
-
), Ol = mr |
|
|
23844
|
+
Sn | qr | 0
|
|
23845
|
+
), Ol = mr | Sn | Ma | La | wr | ra | _r, $l = Sn | nr | wr | _r, Qi = na | Ma, Fr = qi | Wd | fu, Ia = i.ReactCurrentOwner;
|
|
23846
23846
|
function xa(t) {
|
|
23847
23847
|
var n = t, l = t;
|
|
23848
23848
|
if (t.alternate)
|
|
@@ -24874,12 +24874,12 @@ Check the render method of \`` + t + "`." : "";
|
|
|
24874
24874
|
Nh(C), C.blockedOn === null && _o.shift();
|
|
24875
24875
|
}
|
|
24876
24876
|
}
|
|
24877
|
-
var go = i.ReactCurrentBatchConfig,
|
|
24877
|
+
var go = i.ReactCurrentBatchConfig, Cn = !0;
|
|
24878
24878
|
function Xr(t) {
|
|
24879
|
-
|
|
24879
|
+
Cn = !!t;
|
|
24880
24880
|
}
|
|
24881
24881
|
function Br() {
|
|
24882
|
-
return
|
|
24882
|
+
return Cn;
|
|
24883
24883
|
}
|
|
24884
24884
|
function bo(t, n, l) {
|
|
24885
24885
|
var u = Rf(n), h;
|
|
@@ -24916,7 +24916,7 @@ Check the render method of \`` + t + "`." : "";
|
|
|
24916
24916
|
}
|
|
24917
24917
|
}
|
|
24918
24918
|
function Nr(t, n, l, u) {
|
|
24919
|
-
|
|
24919
|
+
Cn && _c(t, n, l, u);
|
|
24920
24920
|
}
|
|
24921
24921
|
function _c(t, n, l, u) {
|
|
24922
24922
|
var h = bu(t, n, l, u);
|
|
@@ -25626,13 +25626,13 @@ Check the render method of \`` + t + "`." : "";
|
|
|
25626
25626
|
} else
|
|
25627
25627
|
ye = null, De = l;
|
|
25628
25628
|
if (ye !== De) {
|
|
25629
|
-
var bt = Lh, jt = "onMouseLeave", Lt = "onMouseEnter",
|
|
25630
|
-
(n === "pointerout" || n === "pointerover") && (bt = Ny, jt = "onPointerLeave", Lt = "onPointerEnter",
|
|
25631
|
-
var bn = ye == null ? Q : Bf(ye), Ae = De == null ? Q : Bf(De), je = new bt(jt,
|
|
25629
|
+
var bt = Lh, jt = "onMouseLeave", Lt = "onMouseEnter", En = "mouse";
|
|
25630
|
+
(n === "pointerout" || n === "pointerover") && (bt = Ny, jt = "onPointerLeave", Lt = "onPointerEnter", En = "pointer");
|
|
25631
|
+
var bn = ye == null ? Q : Bf(ye), Ae = De == null ? Q : Bf(De), je = new bt(jt, En + "leave", ye, u, h);
|
|
25632
25632
|
je.target = bn, je.relatedTarget = Ae;
|
|
25633
25633
|
var ke = null, et = Yc(h);
|
|
25634
25634
|
if (et === l) {
|
|
25635
|
-
var Tt = new bt(Lt,
|
|
25635
|
+
var Tt = new bt(Lt, En + "enter", De, u, h);
|
|
25636
25636
|
Tt.target = Ae, Tt.relatedTarget = bn, ke = Tt;
|
|
25637
25637
|
}
|
|
25638
25638
|
hk(t, je, ke, ye, De);
|
|
@@ -26510,9 +26510,9 @@ Check the render method of \`` + t + "`." : "";
|
|
|
26510
26510
|
// TODO: Only ignore them on controlled tags.
|
|
26511
26511
|
Ie === "value" || Ie === "checked" || Ie === "selected")) {
|
|
26512
26512
|
if (Ie === Qh) {
|
|
26513
|
-
var Lt = t.innerHTML,
|
|
26514
|
-
if (
|
|
26515
|
-
var bn = Gw(t,
|
|
26513
|
+
var Lt = t.innerHTML, En = Ve ? Ve[Wy] : void 0;
|
|
26514
|
+
if (En != null) {
|
|
26515
|
+
var bn = Gw(t, En);
|
|
26516
26516
|
bn !== Lt && Xh(Ie, Lt, bn);
|
|
26517
26517
|
}
|
|
26518
26518
|
} else if (Ie === Wc) {
|
|
@@ -27397,8 +27397,8 @@ Check the render method of \`` + t + "`." : "";
|
|
|
27397
27397
|
var H = g - g % 5, Q = (1 << H) - 1, xe = (C & Q).toString(32), ye = C >> H, De = g - H, Ie = fg(n) + De, Ve = O << De, bt = Ve | ye, jt = xe + h;
|
|
27398
27398
|
Vs = 1 << Ie | bt, js = jt;
|
|
27399
27399
|
} else {
|
|
27400
|
-
var Lt = O << g,
|
|
27401
|
-
Vs = 1 << D |
|
|
27400
|
+
var Lt = O << g, En = Lt | C, bn = h;
|
|
27401
|
+
Vs = 1 << D | En, js = bn;
|
|
27402
27402
|
}
|
|
27403
27403
|
}
|
|
27404
27404
|
function _1(t) {
|
|
@@ -27966,7 +27966,7 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
|
|
|
27966
27966
|
}
|
|
27967
27967
|
function D(Ae, je, ke, et) {
|
|
27968
27968
|
var Tt = ke.type;
|
|
27969
|
-
if (Tt ===
|
|
27969
|
+
if (Tt === xn)
|
|
27970
27970
|
return Q(Ae, je, ke.props.children, et, ke.key);
|
|
27971
27971
|
if (je !== null && (je.elementType === Tt || // Keep this check inline so it only runs on the false path:
|
|
27972
27972
|
RR(je, ke) || // Lazy types should reconcile their resolved type.
|
|
@@ -28217,7 +28217,7 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
|
|
|
28217
28217
|
for (var Tt = ke.key, St = je; St !== null; ) {
|
|
28218
28218
|
if (St.key === Tt) {
|
|
28219
28219
|
var Qt = ke.type;
|
|
28220
|
-
if (Qt ===
|
|
28220
|
+
if (Qt === xn) {
|
|
28221
28221
|
if (St.tag === P) {
|
|
28222
28222
|
l(Ae, St.sibling);
|
|
28223
28223
|
var nn = h(St, ke.props.children);
|
|
@@ -28239,7 +28239,7 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
|
|
|
28239
28239
|
n(Ae, St);
|
|
28240
28240
|
St = St.sibling;
|
|
28241
28241
|
}
|
|
28242
|
-
if (ke.type ===
|
|
28242
|
+
if (ke.type === xn) {
|
|
28243
28243
|
var Dn = Uu(ke.props.children, Ae.mode, et, ke.key);
|
|
28244
28244
|
return Dn.return = Ae, Dn;
|
|
28245
28245
|
} else {
|
|
@@ -28247,7 +28247,7 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
|
|
|
28247
28247
|
return Kr.ref = dm(Ae, je, ke), Kr.return = Ae, Kr;
|
|
28248
28248
|
}
|
|
28249
28249
|
}
|
|
28250
|
-
function
|
|
28250
|
+
function En(Ae, je, ke, et) {
|
|
28251
28251
|
for (var Tt = ke.key, St = je; St !== null; ) {
|
|
28252
28252
|
if (St.key === Tt)
|
|
28253
28253
|
if (St.tag === R && St.stateNode.containerInfo === ke.containerInfo && St.stateNode.implementation === ke.implementation) {
|
|
@@ -28266,13 +28266,13 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
|
|
|
28266
28266
|
return nn.return = Ae, nn;
|
|
28267
28267
|
}
|
|
28268
28268
|
function bn(Ae, je, ke, et) {
|
|
28269
|
-
var Tt = typeof ke == "object" && ke !== null && ke.type ===
|
|
28269
|
+
var Tt = typeof ke == "object" && ke !== null && ke.type === xn && ke.key === null;
|
|
28270
28270
|
if (Tt && (ke = ke.props.children), typeof ke == "object" && ke !== null) {
|
|
28271
28271
|
switch (ke.$$typeof) {
|
|
28272
28272
|
case fn:
|
|
28273
28273
|
return C(Lt(Ae, je, ke, et));
|
|
28274
28274
|
case zt:
|
|
28275
|
-
return C(
|
|
28275
|
+
return C(En(Ae, je, ke, et));
|
|
28276
28276
|
case Wt:
|
|
28277
28277
|
var St = ke._payload, Qt = ke._init;
|
|
28278
28278
|
return bn(Ae, je, Qt(St), et);
|
|
@@ -28628,8 +28628,8 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
|
|
|
28628
28628
|
if (g !== null) {
|
|
28629
28629
|
var De = h.baseState, Ie = Qe, Ve = null, bt = null, jt = null, Lt = g;
|
|
28630
28630
|
do {
|
|
28631
|
-
var
|
|
28632
|
-
if (As(u,
|
|
28631
|
+
var En = Lt.lane, bn = Lt.eventTime;
|
|
28632
|
+
if (As(u, En)) {
|
|
28633
28633
|
if (jt !== null) {
|
|
28634
28634
|
var je = {
|
|
28635
28635
|
eventTime: bn,
|
|
@@ -28656,13 +28656,13 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
|
|
|
28656
28656
|
} else {
|
|
28657
28657
|
var Ae = {
|
|
28658
28658
|
eventTime: bn,
|
|
28659
|
-
lane:
|
|
28659
|
+
lane: En,
|
|
28660
28660
|
tag: Lt.tag,
|
|
28661
28661
|
payload: Lt.payload,
|
|
28662
28662
|
callback: Lt.callback,
|
|
28663
28663
|
next: null
|
|
28664
28664
|
};
|
|
28665
|
-
jt === null ? (bt = jt = Ae, Ve = De) : jt = jt.next = Ae, Ie = an(Ie,
|
|
28665
|
+
jt === null ? (bt = jt = Ae, Ve = De) : jt = jt.next = Ae, Ie = an(Ie, En);
|
|
28666
28666
|
}
|
|
28667
28667
|
if (Lt = Lt.next, Lt === null) {
|
|
28668
28668
|
if (O = h.shared.pending, O === null)
|
|
@@ -29002,8 +29002,8 @@ Incoming: %s`, He, "[" + n.join(", ") + "]", "[" + t.join(", ") + "]");
|
|
|
29002
29002
|
if (Ve.hasEagerState)
|
|
29003
29003
|
xe = Ve.eagerState;
|
|
29004
29004
|
else {
|
|
29005
|
-
var
|
|
29006
|
-
xe = t(xe,
|
|
29005
|
+
var En = Ve.action;
|
|
29006
|
+
xe = t(xe, En);
|
|
29007
29007
|
}
|
|
29008
29008
|
} else {
|
|
29009
29009
|
var jt = {
|
|
@@ -29210,17 +29210,17 @@ Incoming: %s`, He, "[" + n.join(", ") + "]", "[" + t.join(", ") + "]");
|
|
|
29210
29210
|
return Mg(na, Uo, t, n);
|
|
29211
29211
|
}
|
|
29212
29212
|
function wx(t, n) {
|
|
29213
|
-
return bm(
|
|
29213
|
+
return bm(Sn, zl, t, n);
|
|
29214
29214
|
}
|
|
29215
29215
|
function Ig(t, n) {
|
|
29216
|
-
return Mg(
|
|
29216
|
+
return Mg(Sn, zl, t, n);
|
|
29217
29217
|
}
|
|
29218
29218
|
function Ex(t, n) {
|
|
29219
|
-
var l =
|
|
29219
|
+
var l = Sn;
|
|
29220
29220
|
return l |= qi, (Wn.mode & Pn) !== Vt && (l |= Tl), bm(l, So, t, n);
|
|
29221
29221
|
}
|
|
29222
29222
|
function _g(t, n) {
|
|
29223
|
-
return Mg(
|
|
29223
|
+
return Mg(Sn, So, t, n);
|
|
29224
29224
|
}
|
|
29225
29225
|
function HE(t, n) {
|
|
29226
29226
|
if (typeof n == "function") {
|
|
@@ -29239,13 +29239,13 @@ Incoming: %s`, He, "[" + n.join(", ") + "]", "[" + t.join(", ") + "]");
|
|
|
29239
29239
|
}
|
|
29240
29240
|
function Tx(t, n, l) {
|
|
29241
29241
|
typeof n != "function" && d("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.", n !== null ? typeof n : "null");
|
|
29242
|
-
var u = l != null ? l.concat([t]) : null, h =
|
|
29242
|
+
var u = l != null ? l.concat([t]) : null, h = Sn;
|
|
29243
29243
|
return h |= qi, (Wn.mode & Pn) !== Vt && (h |= Tl), bm(h, So, HE.bind(null, n, t), u);
|
|
29244
29244
|
}
|
|
29245
29245
|
function Fg(t, n, l) {
|
|
29246
29246
|
typeof n != "function" && d("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.", n !== null ? typeof n : "null");
|
|
29247
29247
|
var u = l != null ? l.concat([t]) : null;
|
|
29248
|
-
return Mg(
|
|
29248
|
+
return Mg(Sn, So, HE.bind(null, n, t), u);
|
|
29249
29249
|
}
|
|
29250
29250
|
function ON(t, n) {
|
|
29251
29251
|
}
|
|
@@ -29453,7 +29453,7 @@ Incoming: %s`, He, "[" + n.join(", ") + "]", "[" + t.join(", ") + "]");
|
|
|
29453
29453
|
{
|
|
29454
29454
|
var Px = function() {
|
|
29455
29455
|
d("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");
|
|
29456
|
-
},
|
|
29456
|
+
}, Jt = function() {
|
|
29457
29457
|
d("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks");
|
|
29458
29458
|
};
|
|
29459
29459
|
tT = {
|
|
@@ -29757,25 +29757,25 @@ Incoming: %s`, He, "[" + n.join(", ") + "]", "[" + t.join(", ") + "]");
|
|
|
29757
29757
|
return Px(), io(t);
|
|
29758
29758
|
},
|
|
29759
29759
|
useCallback: function(t, n) {
|
|
29760
|
-
return He = "useCallback",
|
|
29760
|
+
return He = "useCallback", Jt(), Vn(), Rx(t, n);
|
|
29761
29761
|
},
|
|
29762
29762
|
useContext: function(t) {
|
|
29763
|
-
return He = "useContext",
|
|
29763
|
+
return He = "useContext", Jt(), Vn(), io(t);
|
|
29764
29764
|
},
|
|
29765
29765
|
useEffect: function(t, n) {
|
|
29766
|
-
return He = "useEffect",
|
|
29766
|
+
return He = "useEffect", Jt(), Vn(), Lg(t, n);
|
|
29767
29767
|
},
|
|
29768
29768
|
useImperativeHandle: function(t, n, l) {
|
|
29769
|
-
return He = "useImperativeHandle",
|
|
29769
|
+
return He = "useImperativeHandle", Jt(), Vn(), Tx(t, n, l);
|
|
29770
29770
|
},
|
|
29771
29771
|
useInsertionEffect: function(t, n) {
|
|
29772
|
-
return He = "useInsertionEffect",
|
|
29772
|
+
return He = "useInsertionEffect", Jt(), Vn(), wx(t, n);
|
|
29773
29773
|
},
|
|
29774
29774
|
useLayoutEffect: function(t, n) {
|
|
29775
|
-
return He = "useLayoutEffect",
|
|
29775
|
+
return He = "useLayoutEffect", Jt(), Vn(), Ex(t, n);
|
|
29776
29776
|
},
|
|
29777
29777
|
useMemo: function(t, n) {
|
|
29778
|
-
He = "useMemo",
|
|
29778
|
+
He = "useMemo", Jt(), Vn();
|
|
29779
29779
|
var l = wt.current;
|
|
29780
29780
|
wt.current = Gl;
|
|
29781
29781
|
try {
|
|
@@ -29785,7 +29785,7 @@ Incoming: %s`, He, "[" + n.join(", ") + "]", "[" + t.join(", ") + "]");
|
|
|
29785
29785
|
}
|
|
29786
29786
|
},
|
|
29787
29787
|
useReducer: function(t, n, l) {
|
|
29788
|
-
He = "useReducer",
|
|
29788
|
+
He = "useReducer", Jt(), Vn();
|
|
29789
29789
|
var u = wt.current;
|
|
29790
29790
|
wt.current = Gl;
|
|
29791
29791
|
try {
|
|
@@ -29795,10 +29795,10 @@ Incoming: %s`, He, "[" + n.join(", ") + "]", "[" + t.join(", ") + "]");
|
|
|
29795
29795
|
}
|
|
29796
29796
|
},
|
|
29797
29797
|
useRef: function(t) {
|
|
29798
|
-
return He = "useRef",
|
|
29798
|
+
return He = "useRef", Jt(), Vn(), Cx(t);
|
|
29799
29799
|
},
|
|
29800
29800
|
useState: function(t) {
|
|
29801
|
-
He = "useState",
|
|
29801
|
+
He = "useState", Jt(), Vn();
|
|
29802
29802
|
var n = wt.current;
|
|
29803
29803
|
wt.current = Gl;
|
|
29804
29804
|
try {
|
|
@@ -29808,22 +29808,22 @@ Incoming: %s`, He, "[" + n.join(", ") + "]", "[" + t.join(", ") + "]");
|
|
|
29808
29808
|
}
|
|
29809
29809
|
},
|
|
29810
29810
|
useDebugValue: function(t, n) {
|
|
29811
|
-
return He = "useDebugValue",
|
|
29811
|
+
return He = "useDebugValue", Jt(), Vn(), void 0;
|
|
29812
29812
|
},
|
|
29813
29813
|
useDeferredValue: function(t) {
|
|
29814
|
-
return He = "useDeferredValue",
|
|
29814
|
+
return He = "useDeferredValue", Jt(), Vn(), $x(t);
|
|
29815
29815
|
},
|
|
29816
29816
|
useTransition: function() {
|
|
29817
|
-
return He = "useTransition",
|
|
29817
|
+
return He = "useTransition", Jt(), Vn(), Ax();
|
|
29818
29818
|
},
|
|
29819
29819
|
useMutableSource: function(t, n, l) {
|
|
29820
|
-
return He = "useMutableSource",
|
|
29820
|
+
return He = "useMutableSource", Jt(), Vn(), void 0;
|
|
29821
29821
|
},
|
|
29822
29822
|
useSyncExternalStore: function(t, n, l) {
|
|
29823
|
-
return He = "useSyncExternalStore",
|
|
29823
|
+
return He = "useSyncExternalStore", Jt(), Vn(), bx(t, n, l);
|
|
29824
29824
|
},
|
|
29825
29825
|
useId: function() {
|
|
29826
|
-
return He = "useId",
|
|
29826
|
+
return He = "useId", Jt(), Vn(), kx();
|
|
29827
29827
|
},
|
|
29828
29828
|
unstable_isNewReconciler: pe
|
|
29829
29829
|
}, ll = {
|
|
@@ -29831,25 +29831,25 @@ Incoming: %s`, He, "[" + n.join(", ") + "]", "[" + t.join(", ") + "]");
|
|
|
29831
29831
|
return Px(), io(t);
|
|
29832
29832
|
},
|
|
29833
29833
|
useCallback: function(t, n) {
|
|
29834
|
-
return He = "useCallback",
|
|
29834
|
+
return He = "useCallback", Jt(), yt(), jg(t, n);
|
|
29835
29835
|
},
|
|
29836
29836
|
useContext: function(t) {
|
|
29837
|
-
return He = "useContext",
|
|
29837
|
+
return He = "useContext", Jt(), yt(), io(t);
|
|
29838
29838
|
},
|
|
29839
29839
|
useEffect: function(t, n) {
|
|
29840
|
-
return He = "useEffect",
|
|
29840
|
+
return He = "useEffect", Jt(), yt(), xm(t, n);
|
|
29841
29841
|
},
|
|
29842
29842
|
useImperativeHandle: function(t, n, l) {
|
|
29843
|
-
return He = "useImperativeHandle",
|
|
29843
|
+
return He = "useImperativeHandle", Jt(), yt(), Fg(t, n, l);
|
|
29844
29844
|
},
|
|
29845
29845
|
useInsertionEffect: function(t, n) {
|
|
29846
|
-
return He = "useInsertionEffect",
|
|
29846
|
+
return He = "useInsertionEffect", Jt(), yt(), Ig(t, n);
|
|
29847
29847
|
},
|
|
29848
29848
|
useLayoutEffect: function(t, n) {
|
|
29849
|
-
return He = "useLayoutEffect",
|
|
29849
|
+
return He = "useLayoutEffect", Jt(), yt(), _g(t, n);
|
|
29850
29850
|
},
|
|
29851
29851
|
useMemo: function(t, n) {
|
|
29852
|
-
He = "useMemo",
|
|
29852
|
+
He = "useMemo", Jt(), yt();
|
|
29853
29853
|
var l = wt.current;
|
|
29854
29854
|
wt.current = ll;
|
|
29855
29855
|
try {
|
|
@@ -29859,7 +29859,7 @@ Incoming: %s`, He, "[" + n.join(", ") + "]", "[" + t.join(", ") + "]");
|
|
|
29859
29859
|
}
|
|
29860
29860
|
},
|
|
29861
29861
|
useReducer: function(t, n, l) {
|
|
29862
|
-
He = "useReducer",
|
|
29862
|
+
He = "useReducer", Jt(), yt();
|
|
29863
29863
|
var u = wt.current;
|
|
29864
29864
|
wt.current = ll;
|
|
29865
29865
|
try {
|
|
@@ -29869,10 +29869,10 @@ Incoming: %s`, He, "[" + n.join(", ") + "]", "[" + t.join(", ") + "]");
|
|
|
29869
29869
|
}
|
|
29870
29870
|
},
|
|
29871
29871
|
useRef: function(t) {
|
|
29872
|
-
return He = "useRef",
|
|
29872
|
+
return He = "useRef", Jt(), yt(), Dg();
|
|
29873
29873
|
},
|
|
29874
29874
|
useState: function(t) {
|
|
29875
|
-
He = "useState",
|
|
29875
|
+
He = "useState", Jt(), yt();
|
|
29876
29876
|
var n = wt.current;
|
|
29877
29877
|
wt.current = ll;
|
|
29878
29878
|
try {
|
|
@@ -29882,22 +29882,22 @@ Incoming: %s`, He, "[" + n.join(", ") + "]", "[" + t.join(", ") + "]");
|
|
|
29882
29882
|
}
|
|
29883
29883
|
},
|
|
29884
29884
|
useDebugValue: function(t, n) {
|
|
29885
|
-
return He = "useDebugValue",
|
|
29885
|
+
return He = "useDebugValue", Jt(), yt(), Vg();
|
|
29886
29886
|
},
|
|
29887
29887
|
useDeferredValue: function(t) {
|
|
29888
|
-
return He = "useDeferredValue",
|
|
29888
|
+
return He = "useDeferredValue", Jt(), yt(), GE(t);
|
|
29889
29889
|
},
|
|
29890
29890
|
useTransition: function() {
|
|
29891
|
-
return He = "useTransition",
|
|
29891
|
+
return He = "useTransition", Jt(), yt(), qE();
|
|
29892
29892
|
},
|
|
29893
29893
|
useMutableSource: function(t, n, l) {
|
|
29894
|
-
return He = "useMutableSource",
|
|
29894
|
+
return He = "useMutableSource", Jt(), yt(), void 0;
|
|
29895
29895
|
},
|
|
29896
29896
|
useSyncExternalStore: function(t, n, l) {
|
|
29897
|
-
return He = "useSyncExternalStore",
|
|
29897
|
+
return He = "useSyncExternalStore", Jt(), yt(), Pg(t, n);
|
|
29898
29898
|
},
|
|
29899
29899
|
useId: function() {
|
|
29900
|
-
return He = "useId",
|
|
29900
|
+
return He = "useId", Jt(), yt(), Bg();
|
|
29901
29901
|
},
|
|
29902
29902
|
unstable_isNewReconciler: pe
|
|
29903
29903
|
}, Hg = {
|
|
@@ -29905,25 +29905,25 @@ Incoming: %s`, He, "[" + n.join(", ") + "]", "[" + t.join(", ") + "]");
|
|
|
29905
29905
|
return Px(), io(t);
|
|
29906
29906
|
},
|
|
29907
29907
|
useCallback: function(t, n) {
|
|
29908
|
-
return He = "useCallback",
|
|
29908
|
+
return He = "useCallback", Jt(), yt(), jg(t, n);
|
|
29909
29909
|
},
|
|
29910
29910
|
useContext: function(t) {
|
|
29911
|
-
return He = "useContext",
|
|
29911
|
+
return He = "useContext", Jt(), yt(), io(t);
|
|
29912
29912
|
},
|
|
29913
29913
|
useEffect: function(t, n) {
|
|
29914
|
-
return He = "useEffect",
|
|
29914
|
+
return He = "useEffect", Jt(), yt(), xm(t, n);
|
|
29915
29915
|
},
|
|
29916
29916
|
useImperativeHandle: function(t, n, l) {
|
|
29917
|
-
return He = "useImperativeHandle",
|
|
29917
|
+
return He = "useImperativeHandle", Jt(), yt(), Fg(t, n, l);
|
|
29918
29918
|
},
|
|
29919
29919
|
useInsertionEffect: function(t, n) {
|
|
29920
|
-
return He = "useInsertionEffect",
|
|
29920
|
+
return He = "useInsertionEffect", Jt(), yt(), Ig(t, n);
|
|
29921
29921
|
},
|
|
29922
29922
|
useLayoutEffect: function(t, n) {
|
|
29923
|
-
return He = "useLayoutEffect",
|
|
29923
|
+
return He = "useLayoutEffect", Jt(), yt(), _g(t, n);
|
|
29924
29924
|
},
|
|
29925
29925
|
useMemo: function(t, n) {
|
|
29926
|
-
He = "useMemo",
|
|
29926
|
+
He = "useMemo", Jt(), yt();
|
|
29927
29927
|
var l = wt.current;
|
|
29928
29928
|
wt.current = ll;
|
|
29929
29929
|
try {
|
|
@@ -29933,7 +29933,7 @@ Incoming: %s`, He, "[" + n.join(", ") + "]", "[" + t.join(", ") + "]");
|
|
|
29933
29933
|
}
|
|
29934
29934
|
},
|
|
29935
29935
|
useReducer: function(t, n, l) {
|
|
29936
|
-
He = "useReducer",
|
|
29936
|
+
He = "useReducer", Jt(), yt();
|
|
29937
29937
|
var u = wt.current;
|
|
29938
29938
|
wt.current = ll;
|
|
29939
29939
|
try {
|
|
@@ -29943,10 +29943,10 @@ Incoming: %s`, He, "[" + n.join(", ") + "]", "[" + t.join(", ") + "]");
|
|
|
29943
29943
|
}
|
|
29944
29944
|
},
|
|
29945
29945
|
useRef: function(t) {
|
|
29946
|
-
return He = "useRef",
|
|
29946
|
+
return He = "useRef", Jt(), yt(), Dg();
|
|
29947
29947
|
},
|
|
29948
29948
|
useState: function(t) {
|
|
29949
|
-
He = "useState",
|
|
29949
|
+
He = "useState", Jt(), yt();
|
|
29950
29950
|
var n = wt.current;
|
|
29951
29951
|
wt.current = ll;
|
|
29952
29952
|
try {
|
|
@@ -29956,22 +29956,22 @@ Incoming: %s`, He, "[" + n.join(", ") + "]", "[" + t.join(", ") + "]");
|
|
|
29956
29956
|
}
|
|
29957
29957
|
},
|
|
29958
29958
|
useDebugValue: function(t, n) {
|
|
29959
|
-
return He = "useDebugValue",
|
|
29959
|
+
return He = "useDebugValue", Jt(), yt(), Vg();
|
|
29960
29960
|
},
|
|
29961
29961
|
useDeferredValue: function(t) {
|
|
29962
|
-
return He = "useDeferredValue",
|
|
29962
|
+
return He = "useDeferredValue", Jt(), yt(), WE(t);
|
|
29963
29963
|
},
|
|
29964
29964
|
useTransition: function() {
|
|
29965
|
-
return He = "useTransition",
|
|
29965
|
+
return He = "useTransition", Jt(), yt(), QE();
|
|
29966
29966
|
},
|
|
29967
29967
|
useMutableSource: function(t, n, l) {
|
|
29968
|
-
return He = "useMutableSource",
|
|
29968
|
+
return He = "useMutableSource", Jt(), yt(), void 0;
|
|
29969
29969
|
},
|
|
29970
29970
|
useSyncExternalStore: function(t, n, l) {
|
|
29971
|
-
return He = "useSyncExternalStore",
|
|
29971
|
+
return He = "useSyncExternalStore", Jt(), yt(), Pg(t, n);
|
|
29972
29972
|
},
|
|
29973
29973
|
useId: function() {
|
|
29974
|
-
return He = "useId",
|
|
29974
|
+
return He = "useId", Jt(), yt(), Bg();
|
|
29975
29975
|
},
|
|
29976
29976
|
unstable_isNewReconciler: pe
|
|
29977
29977
|
};
|
|
@@ -30255,7 +30255,7 @@ https://reactjs.org/link/unsafe-component-lifecycles`, bt, jt, De !== null ? `
|
|
|
30255
30255
|
h.state = t.memoizedState;
|
|
30256
30256
|
var D = n.getDerivedStateFromProps;
|
|
30257
30257
|
if (typeof D == "function" && (Wx(t, n, D, l), h.state = t.memoizedState), typeof n.getDerivedStateFromProps != "function" && typeof h.getSnapshotBeforeUpdate != "function" && (typeof h.UNSAFE_componentWillMount == "function" || typeof h.componentWillMount == "function") && (IN(t, h), Tg(t, l, h, u), h.state = t.memoizedState), typeof h.componentDidMount == "function") {
|
|
30258
|
-
var H =
|
|
30258
|
+
var H = Sn;
|
|
30259
30259
|
H |= qi, (t.mode & Pn) !== Vt && (H |= Tl), t.flags |= H;
|
|
30260
30260
|
}
|
|
30261
30261
|
}
|
|
@@ -30274,7 +30274,7 @@ https://reactjs.org/link/unsafe-component-lifecycles`, bt, jt, De !== null ? `
|
|
|
30274
30274
|
var ye = t.memoizedState, De = h.state = ye;
|
|
30275
30275
|
if (Tg(t, l, h, u), De = t.memoizedState, g === l && ye === De && !ig() && !Rg()) {
|
|
30276
30276
|
if (typeof h.componentDidMount == "function") {
|
|
30277
|
-
var Ie =
|
|
30277
|
+
var Ie = Sn;
|
|
30278
30278
|
Ie |= qi, (t.mode & Pn) !== Vt && (Ie |= Tl), t.flags |= Ie;
|
|
30279
30279
|
}
|
|
30280
30280
|
return !1;
|
|
@@ -30283,12 +30283,12 @@ https://reactjs.org/link/unsafe-component-lifecycles`, bt, jt, De !== null ? `
|
|
|
30283
30283
|
var Ve = Rg() || fT(t, n, g, l, ye, De, D);
|
|
30284
30284
|
if (Ve) {
|
|
30285
30285
|
if (!xe && (typeof h.UNSAFE_componentWillMount == "function" || typeof h.componentWillMount == "function") && (typeof h.componentWillMount == "function" && h.componentWillMount(), typeof h.UNSAFE_componentWillMount == "function" && h.UNSAFE_componentWillMount()), typeof h.componentDidMount == "function") {
|
|
30286
|
-
var bt =
|
|
30286
|
+
var bt = Sn;
|
|
30287
30287
|
bt |= qi, (t.mode & Pn) !== Vt && (bt |= Tl), t.flags |= bt;
|
|
30288
30288
|
}
|
|
30289
30289
|
} else {
|
|
30290
30290
|
if (typeof h.componentDidMount == "function") {
|
|
30291
|
-
var jt =
|
|
30291
|
+
var jt = Sn;
|
|
30292
30292
|
jt |= qi, (t.mode & Pn) !== Vt && (jt |= Tl), t.flags |= jt;
|
|
30293
30293
|
}
|
|
30294
30294
|
t.memoizedProps = l, t.memoizedState = De;
|
|
@@ -30311,14 +30311,14 @@ https://reactjs.org/link/unsafe-component-lifecycles`, bt, jt, De !== null ? `
|
|
|
30311
30311
|
!Ie && (typeof g.UNSAFE_componentWillReceiveProps == "function" || typeof g.componentWillReceiveProps == "function") && (C !== D || H !== xe) && mT(n, g, u, xe), kE();
|
|
30312
30312
|
var Ve = n.memoizedState, bt = g.state = Ve;
|
|
30313
30313
|
if (Tg(n, u, g, h), bt = n.memoizedState, C === D && Ve === bt && !ig() && !Rg() && !ne)
|
|
30314
|
-
return typeof g.componentDidUpdate == "function" && (C !== t.memoizedProps || Ve !== t.memoizedState) && (n.flags |=
|
|
30314
|
+
return typeof g.componentDidUpdate == "function" && (C !== t.memoizedProps || Ve !== t.memoizedState) && (n.flags |= Sn), typeof g.getSnapshotBeforeUpdate == "function" && (C !== t.memoizedProps || Ve !== t.memoizedState) && (n.flags |= qr), !1;
|
|
30315
30315
|
typeof De == "function" && (Wx(n, l, De, u), bt = n.memoizedState);
|
|
30316
30316
|
var jt = Rg() || fT(n, l, O, u, Ve, bt, xe) || // TODO: In some cases, we'll end up checking if context has changed twice,
|
|
30317
30317
|
// both before and after `shouldComponentUpdate` has been called. Not ideal,
|
|
30318
30318
|
// but I'm loath to refactor this function. This only happens for memoized
|
|
30319
30319
|
// components so it's not that common.
|
|
30320
30320
|
ne;
|
|
30321
|
-
return jt ? (!Ie && (typeof g.UNSAFE_componentWillUpdate == "function" || typeof g.componentWillUpdate == "function") && (typeof g.componentWillUpdate == "function" && g.componentWillUpdate(u, bt, xe), typeof g.UNSAFE_componentWillUpdate == "function" && g.UNSAFE_componentWillUpdate(u, bt, xe)), typeof g.componentDidUpdate == "function" && (n.flags |=
|
|
30321
|
+
return jt ? (!Ie && (typeof g.UNSAFE_componentWillUpdate == "function" || typeof g.componentWillUpdate == "function") && (typeof g.componentWillUpdate == "function" && g.componentWillUpdate(u, bt, xe), typeof g.UNSAFE_componentWillUpdate == "function" && g.UNSAFE_componentWillUpdate(u, bt, xe)), typeof g.componentDidUpdate == "function" && (n.flags |= Sn), typeof g.getSnapshotBeforeUpdate == "function" && (n.flags |= qr)) : (typeof g.componentDidUpdate == "function" && (C !== t.memoizedProps || Ve !== t.memoizedState) && (n.flags |= Sn), typeof g.getSnapshotBeforeUpdate == "function" && (C !== t.memoizedProps || Ve !== t.memoizedState) && (n.flags |= qr), n.memoizedProps = u, n.memoizedState = bt), g.props = u, g.state = bt, g.context = xe, jt;
|
|
30322
30322
|
}
|
|
30323
30323
|
function nd(t, n) {
|
|
30324
30324
|
return {
|
|
@@ -30666,7 +30666,7 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
|
|
|
30666
30666
|
}
|
|
30667
30667
|
function qN(t, n, l) {
|
|
30668
30668
|
{
|
|
30669
|
-
n.flags |=
|
|
30669
|
+
n.flags |= Sn;
|
|
30670
30670
|
{
|
|
30671
30671
|
var u = n.stateNode;
|
|
30672
30672
|
u.effectDuration = 0, u.passiveEffectDuration = 0;
|
|
@@ -30994,8 +30994,8 @@ Check the render method of \`` + u + "`.");
|
|
|
30994
30994
|
return u2(t, n, C, u, Ie, De, l);
|
|
30995
30995
|
}
|
|
30996
30996
|
if (g) {
|
|
30997
|
-
var Ve = u.fallback, bt = u.children, jt = i2(t, n, bt, Ve, l), Lt = n.child,
|
|
30998
|
-
return Lt.memoizedState =
|
|
30997
|
+
var Ve = u.fallback, bt = u.children, jt = i2(t, n, bt, Ve, l), Lt = n.child, En = t.child.memoizedState;
|
|
30998
|
+
return Lt.memoizedState = En === null ? lS(l) : t2(En, l), Lt.childLanes = r2(t, l), n.memoizedState = iS, jt;
|
|
30999
30999
|
} else {
|
|
31000
31000
|
var bn = u.children, Ae = a2(t, n, bn, l);
|
|
31001
31001
|
return n.memoizedState = null, Ae;
|
|
@@ -31125,7 +31125,7 @@ Check the render method of \`` + u + "`.");
|
|
|
31125
31125
|
return hP(h, Lt), null;
|
|
31126
31126
|
} else {
|
|
31127
31127
|
JP(n, h, g.treeContext);
|
|
31128
|
-
var
|
|
31128
|
+
var En = u.children, bn = sS(n, En);
|
|
31129
31129
|
return bn.flags |= ra, bn;
|
|
31130
31130
|
}
|
|
31131
31131
|
}
|
|
@@ -31387,7 +31387,7 @@ Check the render method of \`` + u + "`.");
|
|
|
31387
31387
|
case V:
|
|
31388
31388
|
{
|
|
31389
31389
|
var C = sa(l, n.childLanes);
|
|
31390
|
-
C && (n.flags |=
|
|
31390
|
+
C && (n.flags |= Sn);
|
|
31391
31391
|
{
|
|
31392
31392
|
var O = n.stateNode;
|
|
31393
31393
|
O.effectDuration = 0, O.passiveEffectDuration = 0;
|
|
@@ -31487,7 +31487,7 @@ Check the render method of \`` + u + "`.");
|
|
|
31487
31487
|
case G:
|
|
31488
31488
|
return y2(t, n, l);
|
|
31489
31489
|
case z: {
|
|
31490
|
-
var Lt = n.type,
|
|
31490
|
+
var Lt = n.type, En = n.pendingProps, bn = sl(Lt, En);
|
|
31491
31491
|
if (n.type !== n.elementType) {
|
|
31492
31492
|
var Ae = Lt.propTypes;
|
|
31493
31493
|
Ae && rl(
|
|
@@ -31516,7 +31516,7 @@ Check the render method of \`` + u + "`.");
|
|
|
31516
31516
|
throw new Error("Unknown unit of work tag (" + n.tag + "). This error is likely caused by a bug in React. Please file an issue.");
|
|
31517
31517
|
}
|
|
31518
31518
|
function op(t) {
|
|
31519
|
-
t.flags |=
|
|
31519
|
+
t.flags |= Sn;
|
|
31520
31520
|
}
|
|
31521
31521
|
function IT(t) {
|
|
31522
31522
|
t.flags |= wr, t.flags |= fu;
|
|
@@ -31608,7 +31608,7 @@ Check the render method of \`` + u + "`.");
|
|
|
31608
31608
|
}
|
|
31609
31609
|
return !1;
|
|
31610
31610
|
} else {
|
|
31611
|
-
if (Yf(), (n.flags & _t) === Ft && (n.memoizedState = null), n.flags |=
|
|
31611
|
+
if (Yf(), (n.flags & _t) === Ft && (n.memoizedState = null), n.flags |= Sn, Bo(n), (n.mode & kn) !== Vt) {
|
|
31612
31612
|
var C = l !== null;
|
|
31613
31613
|
if (C) {
|
|
31614
31614
|
var O = n.child;
|
|
@@ -31692,8 +31692,8 @@ Check the render method of \`` + u + "`.");
|
|
|
31692
31692
|
Jf(n);
|
|
31693
31693
|
var Lt = n.memoizedState;
|
|
31694
31694
|
if (t === null || t.memoizedState !== null && t.memoizedState.dehydrated !== null) {
|
|
31695
|
-
var
|
|
31696
|
-
if (!
|
|
31695
|
+
var En = x2(t, n, Lt);
|
|
31696
|
+
if (!En)
|
|
31697
31697
|
return n.flags & no ? n : null;
|
|
31698
31698
|
}
|
|
31699
31699
|
if ((n.flags & _t) !== Ft)
|
|
@@ -31707,7 +31707,7 @@ Check the render method of \`` + u + "`.");
|
|
|
31707
31707
|
}
|
|
31708
31708
|
}
|
|
31709
31709
|
var et = n.updateQueue;
|
|
31710
|
-
if (et !== null && (n.flags |=
|
|
31710
|
+
if (et !== null && (n.flags |= Sn), Bo(n), (n.mode & kn) !== Vt && bn) {
|
|
31711
31711
|
var Tt = n.child;
|
|
31712
31712
|
Tt !== null && (n.treeBaseDuration -= Tt.treeBaseDuration);
|
|
31713
31713
|
}
|
|
@@ -31739,7 +31739,7 @@ Check the render method of \`` + u + "`.");
|
|
|
31739
31739
|
if (Hr !== null) {
|
|
31740
31740
|
Yn = !0, n.flags |= _t, Om(nn, !1);
|
|
31741
31741
|
var ma = Hr.updateQueue;
|
|
31742
|
-
return ma !== null && (n.updateQueue = ma, n.flags |=
|
|
31742
|
+
return ma !== null && (n.updateQueue = ma, n.flags |= Sn), n.subtreeFlags = Ft, dN(n, l), Du(n, ux(il.current, hm)), n.child;
|
|
31743
31743
|
}
|
|
31744
31744
|
Mn = Mn.sibling;
|
|
31745
31745
|
}
|
|
@@ -31751,7 +31751,7 @@ Check the render method of \`` + u + "`.");
|
|
|
31751
31751
|
if (Yo !== null) {
|
|
31752
31752
|
n.flags |= _t, Yn = !0;
|
|
31753
31753
|
var li = Yo.updateQueue;
|
|
31754
|
-
if (li !== null && (n.updateQueue = li, n.flags |=
|
|
31754
|
+
if (li !== null && (n.updateQueue = li, n.flags |= Sn), Om(nn, !0), nn.tail === null && nn.tailMode === "hidden" && !Dn.alternate && !jo())
|
|
31755
31755
|
return Bo(n), null;
|
|
31756
31756
|
} else // The time it took to render last row is greater than the remaining
|
|
31757
31757
|
// time we have to render. So rendering one more row would likely
|
|
@@ -31784,7 +31784,7 @@ Check the render method of \`` + u + "`.");
|
|
|
31784
31784
|
Xl !== fp && // LegacyHidden doesn't do any hiding — it only pre-renders.
|
|
31785
31785
|
!ee && (n.flags |= _r);
|
|
31786
31786
|
}
|
|
31787
|
-
return !fp || (n.mode & mn) === Vt ? Bo(n) : sa(Ql, la) && (Bo(n), n.subtreeFlags & (mr |
|
|
31787
|
+
return !fp || (n.mode & mn) === Vt ? Bo(n) : sa(Ql, la) && (Bo(n), n.subtreeFlags & (mr | Sn) && (n.flags |= _r)), null;
|
|
31788
31788
|
}
|
|
31789
31789
|
case ce:
|
|
31790
31790
|
return null;
|
|
@@ -32062,7 +32062,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
32062
32062
|
}
|
|
32063
32063
|
}
|
|
32064
32064
|
function k2(t, n) {
|
|
32065
|
-
if ((n.flags &
|
|
32065
|
+
if ((n.flags & Sn) !== Ft)
|
|
32066
32066
|
switch (n.tag) {
|
|
32067
32067
|
case V: {
|
|
32068
32068
|
var l = n.stateNode.passiveEffectDuration, u = n.memoizedProps, h = u.id, g = u.onPostCommit, C = lT(), O = n.alternate === null ? "mount" : "update";
|
|
@@ -32104,7 +32104,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
32104
32104
|
}
|
|
32105
32105
|
case S: {
|
|
32106
32106
|
var h = l.stateNode;
|
|
32107
|
-
if (l.flags &
|
|
32107
|
+
if (l.flags & Sn && !zo)
|
|
32108
32108
|
if (n === null)
|
|
32109
32109
|
if (l.type === l.elementType && !rd && (h.props !== l.memoizedProps && d("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.", on(l) || "instance"), h.state !== l.memoizedState && d("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.", on(l) || "instance")), l.mode & kn)
|
|
32110
32110
|
try {
|
|
@@ -32148,7 +32148,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
32148
32148
|
}
|
|
32149
32149
|
case A: {
|
|
32150
32150
|
var Q = l.stateNode;
|
|
32151
|
-
if (n === null && l.flags &
|
|
32151
|
+
if (n === null && l.flags & Sn) {
|
|
32152
32152
|
var xe = l.type, ye = l.memoizedProps;
|
|
32153
32153
|
Qk(Q, xe, ye);
|
|
32154
32154
|
}
|
|
@@ -32164,19 +32164,19 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
32164
32164
|
iT() && (Lt = "nested-update"), typeof Ve == "function" && Ve(l.memoizedProps.id, Lt, l.actualDuration, l.treeBaseDuration, l.actualStartTime, jt);
|
|
32165
32165
|
{
|
|
32166
32166
|
typeof Ie == "function" && Ie(l.memoizedProps.id, Lt, bt, jt), $D(l);
|
|
32167
|
-
var
|
|
32168
|
-
e: for (;
|
|
32169
|
-
switch (
|
|
32167
|
+
var En = l.return;
|
|
32168
|
+
e: for (; En !== null; ) {
|
|
32169
|
+
switch (En.tag) {
|
|
32170
32170
|
case w:
|
|
32171
|
-
var bn =
|
|
32171
|
+
var bn = En.stateNode;
|
|
32172
32172
|
bn.effectDuration += bt;
|
|
32173
32173
|
break e;
|
|
32174
32174
|
case V:
|
|
32175
|
-
var Ae =
|
|
32175
|
+
var Ae = En.stateNode;
|
|
32176
32176
|
Ae.effectDuration += bt;
|
|
32177
32177
|
break e;
|
|
32178
32178
|
}
|
|
32179
|
-
|
|
32179
|
+
En = En.return;
|
|
32180
32180
|
}
|
|
32181
32181
|
}
|
|
32182
32182
|
}
|
|
@@ -32543,7 +32543,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
32543
32543
|
case k:
|
|
32544
32544
|
case z:
|
|
32545
32545
|
case Z: {
|
|
32546
|
-
if (fl(n, t), ql(t), h &
|
|
32546
|
+
if (fl(n, t), ql(t), h & Sn) {
|
|
32547
32547
|
try {
|
|
32548
32548
|
cl(zl | xo, t, t.return), Iu(zl | xo, t);
|
|
32549
32549
|
} catch (Qt) {
|
|
@@ -32580,7 +32580,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
32580
32580
|
ur(t, t.return, Qt);
|
|
32581
32581
|
}
|
|
32582
32582
|
}
|
|
32583
|
-
if (h &
|
|
32583
|
+
if (h & Sn) {
|
|
32584
32584
|
var C = t.stateNode;
|
|
32585
32585
|
if (C != null) {
|
|
32586
32586
|
var O = t.memoizedProps, D = u !== null ? u.memoizedProps : O, H = t.type, Q = t.updateQueue;
|
|
@@ -32596,7 +32596,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
32596
32596
|
return;
|
|
32597
32597
|
}
|
|
32598
32598
|
case L: {
|
|
32599
|
-
if (fl(n, t), ql(t), h &
|
|
32599
|
+
if (fl(n, t), ql(t), h & Sn) {
|
|
32600
32600
|
if (t.stateNode === null)
|
|
32601
32601
|
throw new Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");
|
|
32602
32602
|
var xe = t.stateNode, ye = t.memoizedProps, De = u !== null ? u.memoizedProps : ye;
|
|
@@ -32609,7 +32609,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
32609
32609
|
return;
|
|
32610
32610
|
}
|
|
32611
32611
|
case w: {
|
|
32612
|
-
if (fl(n, t), ql(t), h &
|
|
32612
|
+
if (fl(n, t), ql(t), h & Sn && u !== null) {
|
|
32613
32613
|
var Ie = u.memoizedState;
|
|
32614
32614
|
if (Ie.isDehydrated)
|
|
32615
32615
|
try {
|
|
@@ -32630,11 +32630,11 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
32630
32630
|
if (Ve.flags & _r) {
|
|
32631
32631
|
var bt = Ve.stateNode, jt = Ve.memoizedState, Lt = jt !== null;
|
|
32632
32632
|
if (bt.isHidden = Lt, Lt) {
|
|
32633
|
-
var
|
|
32634
|
-
|
|
32633
|
+
var En = Ve.alternate !== null && Ve.alternate.memoizedState !== null;
|
|
32634
|
+
En || xD();
|
|
32635
32635
|
}
|
|
32636
32636
|
}
|
|
32637
|
-
if (h &
|
|
32637
|
+
if (h & Sn) {
|
|
32638
32638
|
try {
|
|
32639
32639
|
F2(t);
|
|
32640
32640
|
} catch (Qt) {
|
|
@@ -32666,7 +32666,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
32666
32666
|
return;
|
|
32667
32667
|
}
|
|
32668
32668
|
case se: {
|
|
32669
|
-
fl(n, t), ql(t), h &
|
|
32669
|
+
fl(n, t), ql(t), h & Sn && KT(t);
|
|
32670
32670
|
return;
|
|
32671
32671
|
}
|
|
32672
32672
|
case Ee:
|
|
@@ -33077,7 +33077,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
33077
33077
|
), Mi = (
|
|
33078
33078
|
/* */
|
|
33079
33079
|
4
|
|
33080
|
-
), zs = 0, Am = 1, od = 2, t0 = 3, km = 4, oR = 5, bS = 6,
|
|
33080
|
+
), zs = 0, Am = 1, od = 2, t0 = 3, km = 4, oR = 5, bS = 6, wn = Eo, Oa = null, Mr = null, To = Qe, Ql = Qe, xS = Ou(Qe), Ro = zs, Pm = null, n0 = Qe, Nm = Qe, r0 = Qe, Dm = null, Wa = null, SS = 0, aR = 500, iR = 1 / 0, cD = 500, Hs = null;
|
|
33081
33081
|
function Mm() {
|
|
33082
33082
|
iR = Qr() + cD;
|
|
33083
33083
|
}
|
|
@@ -33089,13 +33089,13 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
33089
33089
|
return Oa;
|
|
33090
33090
|
}
|
|
33091
33091
|
function $a() {
|
|
33092
|
-
return (
|
|
33092
|
+
return (wn & (Wo | Mi)) !== Eo ? Qr() : (_m !== Jn || (_m = Qr()), _m);
|
|
33093
33093
|
}
|
|
33094
33094
|
function Vu(t) {
|
|
33095
33095
|
var n = t.mode;
|
|
33096
33096
|
if ((n & mn) === Vt)
|
|
33097
33097
|
return qt;
|
|
33098
|
-
if ((
|
|
33098
|
+
if ((wn & Wo) !== Eo && To !== Qe)
|
|
33099
33099
|
return Rc(To);
|
|
33100
33100
|
var l = lN() !== iN;
|
|
33101
33101
|
if (l) {
|
|
@@ -33116,7 +33116,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
33116
33116
|
return (n & mn) === Vt ? qt : fy();
|
|
33117
33117
|
}
|
|
33118
33118
|
function Oo(t, n, l, u) {
|
|
33119
|
-
_D(), sR && d("useInsertionEffect must not schedule updates."), RS && (a0 = !0), vu(t, l, u), (
|
|
33119
|
+
_D(), sR && d("useInsertionEffect must not schedule updates."), RS && (a0 = !0), vu(t, l, u), (wn & Wo) !== Qe && t === Oa ? jD(n) : (ia && Ac(t, n, l), UD(n), t === Oa && ((wn & Wo) === Eo && (Nm = an(Nm, l)), Ro === km && ju(t, To)), Ya(t, u), l === qt && wn === Eo && (n.mode & mn) === Vt && // Treat `act` as if it's inside `batchedUpdates`, even in legacy mode.
|
|
33120
33120
|
!pl.isBatchingLegacy && (Mm(), sE()));
|
|
33121
33121
|
}
|
|
33122
33122
|
function hD(t, n, l) {
|
|
@@ -33127,7 +33127,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
33127
33127
|
return (
|
|
33128
33128
|
// TODO: Remove outdated deferRenderPhaseUpdateToNextBatch experiment. We
|
|
33129
33129
|
// decided not to enable it.
|
|
33130
|
-
(
|
|
33130
|
+
(wn & Wo) !== Eo
|
|
33131
33131
|
);
|
|
33132
33132
|
}
|
|
33133
33133
|
function Ya(t, n) {
|
|
@@ -33150,7 +33150,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
33150
33150
|
var C;
|
|
33151
33151
|
if (h === qt)
|
|
33152
33152
|
t.tag === $u ? (pl.isBatchingLegacy !== null && (pl.didScheduleLegacyUpdate = !0), zP(dR.bind(null, t))) : lE(dR.bind(null, t)), pl.current !== null ? pl.current.push(Au) : Yk(function() {
|
|
33153
|
-
(
|
|
33153
|
+
(wn & (Wo | Mi)) === Eo && Au();
|
|
33154
33154
|
}), C = null;
|
|
33155
33155
|
else {
|
|
33156
33156
|
var O;
|
|
@@ -33176,7 +33176,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
33176
33176
|
t.callbackPriority = h, t.callbackNode = C;
|
|
33177
33177
|
}
|
|
33178
33178
|
function uR(t, n) {
|
|
33179
|
-
if (DN(), _m = Jn, l0 = Qe, (
|
|
33179
|
+
if (DN(), _m = Jn, l0 = Qe, (wn & (Wo | Mi)) !== Eo)
|
|
33180
33180
|
throw new Error("Should not already be working.");
|
|
33181
33181
|
var l = t.callbackNode, u = Ws();
|
|
33182
33182
|
if (u && t.callbackNode !== l)
|
|
@@ -33320,7 +33320,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
33320
33320
|
n = Oc(n, r0), n = Oc(n, Nm), my(t, n);
|
|
33321
33321
|
}
|
|
33322
33322
|
function dR(t) {
|
|
33323
|
-
if (MN(), (
|
|
33323
|
+
if (MN(), (wn & (Wo | Mi)) !== Eo)
|
|
33324
33324
|
throw new Error("Should not already be working.");
|
|
33325
33325
|
Ws();
|
|
33326
33326
|
var n = yf(t, Qe);
|
|
@@ -33341,15 +33341,15 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
33341
33341
|
return t.finishedWork = g, t.finishedLanes = n, ld(t, Wa, Hs), Ya(t, Qr()), null;
|
|
33342
33342
|
}
|
|
33343
33343
|
function gD(t, n) {
|
|
33344
|
-
n !== Qe && (Cf(t, an(n, qt)), Ya(t, Qr()), (
|
|
33344
|
+
n !== Qe && (Cf(t, an(n, qt)), Ya(t, Qr()), (wn & (Wo | Mi)) === Eo && (Mm(), Au()));
|
|
33345
33345
|
}
|
|
33346
33346
|
function $S(t, n) {
|
|
33347
|
-
var l =
|
|
33348
|
-
|
|
33347
|
+
var l = wn;
|
|
33348
|
+
wn |= rR;
|
|
33349
33349
|
try {
|
|
33350
33350
|
return t(n);
|
|
33351
33351
|
} finally {
|
|
33352
|
-
|
|
33352
|
+
wn = l, wn === Eo && // Treat `act` as if it's inside `batchedUpdates`, even in legacy mode.
|
|
33353
33353
|
!pl.isBatchingLegacy && (Mm(), sE());
|
|
33354
33354
|
}
|
|
33355
33355
|
}
|
|
@@ -33358,22 +33358,22 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
33358
33358
|
try {
|
|
33359
33359
|
return Go.transition = null, Ur(Lo), t(n, l, u, h);
|
|
33360
33360
|
} finally {
|
|
33361
|
-
Ur(g), Go.transition = C,
|
|
33361
|
+
Ur(g), Go.transition = C, wn === Eo && Mm();
|
|
33362
33362
|
}
|
|
33363
33363
|
}
|
|
33364
33364
|
function Gs(t) {
|
|
33365
|
-
Fu !== null && Fu.tag === $u && (
|
|
33366
|
-
var n =
|
|
33367
|
-
|
|
33365
|
+
Fu !== null && Fu.tag === $u && (wn & (Wo | Mi)) === Eo && Ws();
|
|
33366
|
+
var n = wn;
|
|
33367
|
+
wn |= rR;
|
|
33368
33368
|
var l = Go.transition, u = Ua();
|
|
33369
33369
|
try {
|
|
33370
33370
|
return Go.transition = null, Ur(Lo), t ? t() : void 0;
|
|
33371
33371
|
} finally {
|
|
33372
|
-
Ur(u), Go.transition = l,
|
|
33372
|
+
Ur(u), Go.transition = l, wn = n, (wn & (Wo | Mi)) === Eo && Au();
|
|
33373
33373
|
}
|
|
33374
33374
|
}
|
|
33375
33375
|
function fR() {
|
|
33376
|
-
return (
|
|
33376
|
+
return (wn & (Wo | Mi)) !== Eo;
|
|
33377
33377
|
}
|
|
33378
33378
|
function u0(t, n) {
|
|
33379
33379
|
pa(xS, Ql, t), Ql = an(Ql, n);
|
|
@@ -33441,8 +33441,8 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
33441
33441
|
return Ro === zs;
|
|
33442
33442
|
}
|
|
33443
33443
|
function c0(t, n) {
|
|
33444
|
-
var l =
|
|
33445
|
-
|
|
33444
|
+
var l = wn;
|
|
33445
|
+
wn |= Wo;
|
|
33446
33446
|
var u = hR();
|
|
33447
33447
|
if (Oa !== t || To !== n) {
|
|
33448
33448
|
if (ia) {
|
|
@@ -33460,7 +33460,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
33460
33460
|
pR(t, g);
|
|
33461
33461
|
}
|
|
33462
33462
|
while (!0);
|
|
33463
|
-
if (bg(),
|
|
33463
|
+
if (bg(), wn = l, mR(u), Mr !== null)
|
|
33464
33464
|
throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");
|
|
33465
33465
|
return Zd(), Oa = null, To = Qe, Ro;
|
|
33466
33466
|
}
|
|
@@ -33469,8 +33469,8 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
33469
33469
|
vR(Mr);
|
|
33470
33470
|
}
|
|
33471
33471
|
function TD(t, n) {
|
|
33472
|
-
var l =
|
|
33473
|
-
|
|
33472
|
+
var l = wn;
|
|
33473
|
+
wn |= Wo;
|
|
33474
33474
|
var u = hR();
|
|
33475
33475
|
if (Oa !== t || To !== n) {
|
|
33476
33476
|
if (ia) {
|
|
@@ -33488,7 +33488,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
33488
33488
|
pR(t, g);
|
|
33489
33489
|
}
|
|
33490
33490
|
while (!0);
|
|
33491
|
-
return bg(), mR(u),
|
|
33491
|
+
return bg(), mR(u), wn = l, Mr !== null ? (ly(), zs) : (Zd(), Oa = null, To = Qe, Ro);
|
|
33492
33492
|
}
|
|
33493
33493
|
function RD() {
|
|
33494
33494
|
for (; Mr !== null && !sh(); )
|
|
@@ -33552,7 +33552,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
33552
33552
|
do
|
|
33553
33553
|
Ws();
|
|
33554
33554
|
while (Fu !== null);
|
|
33555
|
-
if (FD(), (
|
|
33555
|
+
if (FD(), (wn & (Wo | Mi)) !== Eo)
|
|
33556
33556
|
throw new Error("Should not already be working.");
|
|
33557
33557
|
var h = t.finishedWork, g = t.finishedLanes;
|
|
33558
33558
|
if (hh(g), h === null)
|
|
@@ -33570,8 +33570,8 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
33570
33570
|
Go.transition = null;
|
|
33571
33571
|
var Q = Ua();
|
|
33572
33572
|
Ur(Lo);
|
|
33573
|
-
var xe =
|
|
33574
|
-
|
|
33573
|
+
var xe = wn;
|
|
33574
|
+
wn |= Mi, gS.current = null, R2(t, h), sT(), j2(t, h, g), Vk(t.containerInfo), t.current = h, mc(g), U2(h, t, g), vc(), uh(), wn = xe, Ur(Q), Go.transition = H;
|
|
33575
33575
|
} else
|
|
33576
33576
|
t.current = h, sT();
|
|
33577
33577
|
var ye = ad;
|
|
@@ -33612,11 +33612,11 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
33612
33612
|
var t = ES;
|
|
33613
33613
|
ES = null;
|
|
33614
33614
|
var n = Fu, l = Lm;
|
|
33615
|
-
if (Fu = null, Lm = Qe, (
|
|
33615
|
+
if (Fu = null, Lm = Qe, (wn & (Wo | Mi)) !== Eo)
|
|
33616
33616
|
throw new Error("Cannot flush passive effects while already rendering.");
|
|
33617
33617
|
RS = !0, a0 = !1, xs(l);
|
|
33618
|
-
var u =
|
|
33619
|
-
|
|
33618
|
+
var u = wn;
|
|
33619
|
+
wn |= Mi, q2(n.current), H2(n, n.current, l, t);
|
|
33620
33620
|
{
|
|
33621
33621
|
var h = wS;
|
|
33622
33622
|
wS = [];
|
|
@@ -33625,7 +33625,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
33625
33625
|
k2(n, C);
|
|
33626
33626
|
}
|
|
33627
33627
|
}
|
|
33628
|
-
gh(), SR(n.current, !0),
|
|
33628
|
+
gh(), SR(n.current, !0), wn = u, Au(), a0 ? n === i0 ? up++ : (up = 0, i0 = n) : up = 0, RS = !1, a0 = !1, fh(n);
|
|
33629
33629
|
{
|
|
33630
33630
|
var O = n.current.stateNode;
|
|
33631
33631
|
O.effectDuration = 0, O.passiveEffectDuration = 0;
|
|
@@ -33726,7 +33726,7 @@ Error message:
|
|
|
33726
33726
|
var f0 = null;
|
|
33727
33727
|
function CR(t) {
|
|
33728
33728
|
{
|
|
33729
|
-
if ((
|
|
33729
|
+
if ((wn & Wo) !== Eo || !(t.mode & mn))
|
|
33730
33730
|
return;
|
|
33731
33731
|
var n = t.tag;
|
|
33732
33732
|
if (n !== T && n !== w && n !== S && n !== b && n !== k && n !== z && n !== Z)
|
|
@@ -33813,7 +33813,7 @@ Error message:
|
|
|
33813
33813
|
if (t.mode & mn) {
|
|
33814
33814
|
if (!nR())
|
|
33815
33815
|
return;
|
|
33816
|
-
} else if (!sD() ||
|
|
33816
|
+
} else if (!sD() || wn !== Eo || t.tag !== b && t.tag !== k && t.tag !== Z)
|
|
33817
33817
|
return;
|
|
33818
33818
|
if (pl.current === null) {
|
|
33819
33819
|
var n = Mo;
|
|
@@ -34120,7 +34120,7 @@ This ensures that you're testing the behavior the user would see in the browser.
|
|
|
34120
34120
|
C = A;
|
|
34121
34121
|
else
|
|
34122
34122
|
e: switch (t) {
|
|
34123
|
-
case
|
|
34123
|
+
case xn:
|
|
34124
34124
|
return Uu(l.children, h, g, n);
|
|
34125
34125
|
case hn:
|
|
34126
34126
|
C = j, h |= Gn, (h & mn) !== Vt && (h |= Pn);
|
|
@@ -42624,9 +42624,9 @@ const tj = sn(Rb)(({ theme: e }) => ({
|
|
|
42624
42624
|
justifyContent: "center",
|
|
42625
42625
|
flexWrap: "wrap"
|
|
42626
42626
|
})), ij = ({ formComponent: e, formidavimHost: r }) => {
|
|
42627
|
-
const i = (e == null ? void 0 : e.props) || {}, s = i.propertyId, c = i.label ?? "Enter verification code", p = typeof i.length == "number" ? i.length : 6, d = typeof i.required == "string" ? i.required.toLowerCase() === "true" : !!i.required, v = i.currentValue, { getFlowValue: b, setFlowAndPatientValue: S, setFlowError: T, setDisableSubmitValue: w } = Lr(), R = s ? b(s) : void 0, A = v && v.length === p ? v : typeof R == "string" && R.length === p ? R : "", [L, P] =
|
|
42627
|
+
const i = (e == null ? void 0 : e.props) || {}, s = i.propertyId, c = i.label ?? "Enter verification code", p = typeof i.length == "number" ? i.length : 6, d = typeof i.required == "string" ? i.required.toLowerCase() === "true" : !!i.required, v = i.currentValue, { getFlowValue: b, setFlowAndPatientValue: S, setFlowError: T, setDisableSubmitValue: w } = Lr(), R = s ? b(s) : void 0, A = v && v.length === p ? v : typeof R == "string" && R.length === p ? R : "", [L, P] = Zt(
|
|
42628
42628
|
A ? A.split("") : new Array(p).fill("")
|
|
42629
|
-
), [j, G] =
|
|
42629
|
+
), [j, G] = Zt(!!(A && A.length === p)), [Y, k] = Zt(!1), [V, N] = Zt(null), [z, Z] = Zt(null), [ie, ge] = Zt(!1), [M, se] = Zt(0), [Ee, he] = Zt(0), [Ce, ce] = Zt(0), [fe, ve] = Zt(!1), pe = Hu([]), ne = b("_phone"), ee = b("email"), Te = hv(r), B = (X) => {
|
|
42630
42630
|
const oe = X.replace(/\D/g, "");
|
|
42631
42631
|
return oe.length === 10 ? `+1${oe}` : X;
|
|
42632
42632
|
}, W = br(async (X, oe) => {
|
|
@@ -42695,22 +42695,22 @@ const tj = sn(Rb)(({ theme: e }) => ({
|
|
|
42695
42695
|
})), (we = pe.current[p - 1]) == null || we.focus();
|
|
42696
42696
|
}
|
|
42697
42697
|
};
|
|
42698
|
-
return
|
|
42698
|
+
return Tn(() => {
|
|
42699
42699
|
if (M > 0) {
|
|
42700
42700
|
const X = setTimeout(() => se((oe) => oe - 1), 1e3);
|
|
42701
42701
|
return () => clearTimeout(X);
|
|
42702
42702
|
}
|
|
42703
|
-
}, [M]),
|
|
42703
|
+
}, [M]), Tn(() => {
|
|
42704
42704
|
if (Ee > 0) {
|
|
42705
42705
|
const X = setTimeout(() => he((oe) => oe - 1), 1e3);
|
|
42706
42706
|
return () => clearTimeout(X);
|
|
42707
42707
|
}
|
|
42708
|
-
}, [Ee]),
|
|
42708
|
+
}, [Ee]), Tn(() => {
|
|
42709
42709
|
if (Ce > 0) {
|
|
42710
42710
|
const X = setTimeout(() => ce((oe) => oe - 1), 1e3);
|
|
42711
42711
|
return () => clearTimeout(X);
|
|
42712
42712
|
}
|
|
42713
|
-
}, [Ce]),
|
|
42713
|
+
}, [Ce]), Tn(() => {
|
|
42714
42714
|
const X = !!(v && v.length === p || typeof R == "string" && R.length === p), oe = ne || ee, K = !!(ee && !ne), we = K ? "email" : "sms";
|
|
42715
42715
|
oe && !ie && !j && !X && (async () => {
|
|
42716
42716
|
if (!(K && Ce > 0) && !(!K && M > 0))
|
|
@@ -42721,12 +42721,12 @@ const tj = sn(Rb)(({ theme: e }) => ({
|
|
|
42721
42721
|
N("Failed to send OTP. Please try again.");
|
|
42722
42722
|
}
|
|
42723
42723
|
})();
|
|
42724
|
-
}, [ne, ee, ie, j, M, Ce, v, p, R]),
|
|
42724
|
+
}, [ne, ee, ie, j, M, Ce, v, p, R]), Tn(() => {
|
|
42725
42725
|
w(d ? !j : !1);
|
|
42726
|
-
}, [j, d, w]),
|
|
42726
|
+
}, [j, d, w]), Tn(() => {
|
|
42727
42727
|
const X = v && v.length === p ? v : typeof R == "string" && R.length === p ? R : "";
|
|
42728
42728
|
X && X.length === p && (P(X.split("")), G(!0));
|
|
42729
|
-
}, [v, p, R]),
|
|
42729
|
+
}, [v, p, R]), Tn(() => {
|
|
42730
42730
|
pe.current[0] && !j && pe.current[0].focus();
|
|
42731
42731
|
}, [j]), L.join("").length, /* @__PURE__ */ I.jsxs(tj, { children: [
|
|
42732
42732
|
/* @__PURE__ */ I.jsx(Cw, { variant: "h6", gutterBottom: !0, children: c }),
|
|
@@ -43018,14 +43018,14 @@ const sj = _e.div`
|
|
|
43018
43018
|
}
|
|
43019
43019
|
}
|
|
43020
43020
|
`, hj = ({ formComponent: e }) => {
|
|
43021
|
-
const r = e.props, { required: i, propertyId: s, label: c = "Address", inlineCopy: p } = r || {}, { getFlowValue: d, setFlowAndPatientValue: v, getFlowValue: b, getFlowError: S, setFlowError: T } = Lr(), w = b(s) || {}, [R, A] =
|
|
43021
|
+
const r = e.props, { required: i, propertyId: s, label: c = "Address", inlineCopy: p } = r || {}, { getFlowValue: d, setFlowAndPatientValue: v, getFlowValue: b, getFlowError: S, setFlowError: T } = Lr(), w = b(s) || {}, [R, A] = Zt({
|
|
43022
43022
|
address1: w.address1 || "",
|
|
43023
43023
|
address2: w.address2 || "",
|
|
43024
43024
|
city: w.city || "",
|
|
43025
43025
|
state: w.state || "",
|
|
43026
43026
|
postcode: w.postcode || "",
|
|
43027
43027
|
coordinates: w.coordinates
|
|
43028
|
-
}), [L, P] =
|
|
43028
|
+
}), [L, P] = Zt([]), [j, G] = Zt(!1), [Y, k] = Zt(!1), [V, N] = Zt(!1), [z, Z] = Zt("prompt"), ie = Hu(), ge = "pk.eyJ1IjoiYW50aG9ueS1pdmltIiwiYSI6ImNsdXY4M245OTAwcmoya3BiY3RwOHU2aGoifQ.WKeVR5UV446JNt1PxJgccg", M = (ve, pe) => {
|
|
43029
43029
|
const ne = { ...R, [ve]: pe };
|
|
43030
43030
|
A(ne), v(s, ne), ve === "address1" && pe.length > 1 && se(pe);
|
|
43031
43031
|
}, se = async (ve) => {
|
|
@@ -43099,19 +43099,19 @@ const sj = _e.div`
|
|
|
43099
43099
|
};
|
|
43100
43100
|
console.log("Parsed address:", X), A(X), v(s, X), G(!1), P([]);
|
|
43101
43101
|
}, he = () => !!(R.address1 && R.city && R.state && R.postcode);
|
|
43102
|
-
|
|
43102
|
+
Tn(() => {
|
|
43103
43103
|
const ve = (pe) => {
|
|
43104
43104
|
pe.target.closest(".address-autofill-container") || G(!1);
|
|
43105
43105
|
};
|
|
43106
43106
|
return document.addEventListener("click", ve), () => document.removeEventListener("click", ve);
|
|
43107
|
-
}, []),
|
|
43107
|
+
}, []), Tn(() => {
|
|
43108
43108
|
console.log("Suggestions state changed:", {
|
|
43109
43109
|
showSuggestions: j,
|
|
43110
43110
|
suggestionsCount: L.length,
|
|
43111
43111
|
isAddress1Focused: V,
|
|
43112
43112
|
isLoading: Y
|
|
43113
43113
|
});
|
|
43114
|
-
}, [j, L.length, V, Y]),
|
|
43114
|
+
}, [j, L.length, V, Y]), Tn(() => {
|
|
43115
43115
|
i && !he() ? T(s, "Required") : T(s, null);
|
|
43116
43116
|
}, [R.address1, R.city, R.state, R.postcode, i, s, T]), d(s);
|
|
43117
43117
|
const Ce = S(s), ce = !!Ce && Ce !== "Required", fe = he();
|
|
@@ -43230,43 +43230,38 @@ const sj = _e.div`
|
|
|
43230
43230
|
] }) : null
|
|
43231
43231
|
] });
|
|
43232
43232
|
}, mj = ({ formComponent: e, formidavimHost: r }) => {
|
|
43233
|
-
const i = e.props, { propertyId: s,
|
|
43234
|
-
|
|
43235
|
-
|
|
43236
|
-
|
|
43237
|
-
|
|
43238
|
-
|
|
43239
|
-
|
|
43240
|
-
|
|
43241
|
-
|
|
43242
|
-
|
|
43243
|
-
|
|
43244
|
-
|
|
43245
|
-
|
|
43246
|
-
|
|
43247
|
-
|
|
43248
|
-
|
|
43249
|
-
|
|
43250
|
-
|
|
43251
|
-
|
|
43252
|
-
|
|
43253
|
-
|
|
43254
|
-
|
|
43255
|
-
|
|
43256
|
-
|
|
43257
|
-
|
|
43258
|
-
|
|
43259
|
-
|
|
43260
|
-
|
|
43261
|
-
|
|
43262
|
-
tabIndex: -1
|
|
43263
|
-
}
|
|
43264
|
-
),
|
|
43265
|
-
/* @__PURE__ */ I.jsx("label", { htmlFor: s, style: { display: "none" }, children: c })
|
|
43266
|
-
] });
|
|
43233
|
+
const i = e.props, { propertyId: s, jsonataExpression: c } = i || {}, { getFlowValue: p, setFlowAndPatientValue: d } = Lr(), v = Rp(p(s)), [b, S] = Zt(""), [T, w] = Zt(!1);
|
|
43234
|
+
return Tn(() => {
|
|
43235
|
+
if (!T) {
|
|
43236
|
+
const R = c != null ? String(c) : v || "";
|
|
43237
|
+
d(s, R), S(R), w(!0), c != null && console.log("Hidden component - stored evaluated value:", c);
|
|
43238
|
+
}
|
|
43239
|
+
}, [T, s, c, v, d]), Tn(() => {
|
|
43240
|
+
T && S(v);
|
|
43241
|
+
}, [v, T]), /* @__PURE__ */ I.jsx(si, { $visible: !1, children: /* @__PURE__ */ I.jsx(
|
|
43242
|
+
"input",
|
|
43243
|
+
{
|
|
43244
|
+
id: s,
|
|
43245
|
+
name: s,
|
|
43246
|
+
type: "text",
|
|
43247
|
+
value: b,
|
|
43248
|
+
readOnly: !0,
|
|
43249
|
+
style: {
|
|
43250
|
+
position: "absolute",
|
|
43251
|
+
left: "-9999px",
|
|
43252
|
+
opacity: 0,
|
|
43253
|
+
pointerEvents: "none",
|
|
43254
|
+
width: "1px",
|
|
43255
|
+
height: "1px",
|
|
43256
|
+
overflow: "hidden"
|
|
43257
|
+
},
|
|
43258
|
+
"aria-hidden": "true",
|
|
43259
|
+
tabIndex: -1
|
|
43260
|
+
}
|
|
43261
|
+
) });
|
|
43267
43262
|
}, vj = ({ formComponent: e }) => {
|
|
43268
43263
|
const r = e.props, { propertyId: i, label: s = "Input Label", required: c, lastPrescribedDose: p, concentration: d } = r || {}, { getFlowValue: v, setFlowAndPatientValue: b, getFlowError: S, setFlowError: T } = Lr(), w = Hu(null), R = Hu(!1), L = ((N) => N ? typeof N == "number" ? N : parseFloat(String(N).replace(" mg", "")) || 0 : 0)(v(i)), P = parseFloat((d == null ? void 0 : d.split(" ")[0]) || "0"), j = 100;
|
|
43269
|
-
|
|
43264
|
+
Tn(() => {
|
|
43270
43265
|
!R.current && p && (!L && p && b(i, p + " mg"), R.current = !0);
|
|
43271
43266
|
}, [p]);
|
|
43272
43267
|
const G = (N) => P === 0 ? 0 : Math.round(N / P * 100), Y = (N) => P === 0 ? 0 : N / 100 * P, k = G(L), V = (N) => {
|
|
@@ -43314,8 +43309,8 @@ const sj = _e.div`
|
|
|
43314
43309
|
inlineCopy: S
|
|
43315
43310
|
} = r || {}, T = typeof v == "string" ? parseInt(v, 10) : v;
|
|
43316
43311
|
console.log("maxWidthRaw:", v, "maxWidth:", T);
|
|
43317
|
-
const w = typeof p == "string" ? p.split(",").map((ie) => ie.trim()) : Array.isArray(p) ? p : ["pdf", "jpg", "jpeg", "png"], { getFlowValue: R, setFlowAndPatientValue: A, getFlowError: L, setFlowError: P, setDisableSubmitValue: j } = Lr(), G = R(s), Y = L(s), k = !!Y && Y !== "Required", [V, N] =
|
|
43318
|
-
|
|
43312
|
+
const w = typeof p == "string" ? p.split(",").map((ie) => ie.trim()) : Array.isArray(p) ? p : ["pdf", "jpg", "jpeg", "png"], { getFlowValue: R, setFlowAndPatientValue: A, getFlowError: L, setFlowError: P, setDisableSubmitValue: j } = Lr(), G = R(s), Y = L(s), k = !!Y && Y !== "Required", [V, N] = Zt(""), z = i === "true";
|
|
43313
|
+
Tn(() => {
|
|
43319
43314
|
G ? b && Array.isArray(G) ? N(`${G.length} file(s) selected`) : !b && G && N("File selected") : N("");
|
|
43320
43315
|
}, [G, b]);
|
|
43321
43316
|
const Z = (ie) => {
|
|
@@ -43693,10 +43688,10 @@ const Hj = _e.div`
|
|
|
43693
43688
|
}
|
|
43694
43689
|
);
|
|
43695
43690
|
}, qj = ({ formComponent: e }) => {
|
|
43696
|
-
const r = e.props, { getFlowValue: i, setFlowAndPatientValue: s, getFlowError: c } = Lr(), [p, d] =
|
|
43697
|
-
|
|
43691
|
+
const r = e.props, { getFlowValue: i, setFlowAndPatientValue: s, getFlowError: c } = Lr(), [p, d] = Zt(!1), [v, b] = Zt(!1), [S, T] = Zt(!1), [w, R] = Zt(!1), A = Hu(null), L = i(r.propertyId), P = c(r.propertyId), j = !!P && P !== "Required";
|
|
43692
|
+
Tn(() => {
|
|
43698
43693
|
T(!!L);
|
|
43699
|
-
}, [L]),
|
|
43694
|
+
}, [L]), Tn(() => {
|
|
43700
43695
|
const ge = A.current;
|
|
43701
43696
|
if (!ge) return;
|
|
43702
43697
|
const M = () => {
|
|
@@ -45042,14 +45037,14 @@ function rU() {
|
|
|
45042
45037
|
if (typeof zt < "u") {
|
|
45043
45038
|
for (; typeof zt < "u" && (typeof me > "u" || Ot < me); ) {
|
|
45044
45039
|
tt += $.substring(Et, zt.start);
|
|
45045
|
-
var
|
|
45046
|
-
if (P(
|
|
45047
|
-
tt +=
|
|
45040
|
+
var xn = Le.apply(ue, [zt]);
|
|
45041
|
+
if (P(xn) && (xn = await xn), typeof xn == "string")
|
|
45042
|
+
tt += xn;
|
|
45048
45043
|
else
|
|
45049
45044
|
throw {
|
|
45050
45045
|
code: "D3012",
|
|
45051
45046
|
stack: new Error().stack,
|
|
45052
|
-
value:
|
|
45047
|
+
value: xn
|
|
45053
45048
|
};
|
|
45054
45049
|
Et = zt.start + zt.match.length, Ot++, zt = await ve(zt.next);
|
|
45055
45050
|
}
|
|
@@ -45225,7 +45220,7 @@ function rU() {
|
|
|
45225
45220
|
fractionalPart: ji,
|
|
45226
45221
|
subpicture: Ht
|
|
45227
45222
|
};
|
|
45228
|
-
},
|
|
45223
|
+
}, xn = function(Ht) {
|
|
45229
45224
|
var Hn, Sr, gn = Ht.subpicture, fo = gn.indexOf(ue["decimal-separator"]);
|
|
45230
45225
|
fo !== gn.lastIndexOf(ue["decimal-separator"]) && (Hn = "D3081"), gn.indexOf(ue.percent) !== gn.lastIndexOf(ue.percent) && (Hn = "D3082"), gn.indexOf(ue["per-mille"]) !== gn.lastIndexOf(ue["per-mille"]) && (Hn = "D3083"), gn.indexOf(ue.percent) !== -1 && gn.indexOf(ue["per-mille"]) !== -1 && (Hn = "D3084");
|
|
45231
45226
|
var Or = !1;
|
|
@@ -45298,7 +45293,7 @@ function rU() {
|
|
|
45298
45293
|
picture: Ht.subpicture
|
|
45299
45294
|
};
|
|
45300
45295
|
}, Zn = fn.map(zt);
|
|
45301
|
-
Zn.forEach(
|
|
45296
|
+
Zn.forEach(xn);
|
|
45302
45297
|
var ln = Zn.map(hn), ae = ue["minus-sign"], We = ue["zero-digit"], ot = ue["decimal-separator"], It = ue["grouping-separator"];
|
|
45303
45298
|
ln.length === 1 && (ln.push(JSON.parse(JSON.stringify(ln[0]))), ln[1].prefix = ae + ln[1].prefix);
|
|
45304
45299
|
var $t;
|
|
@@ -45637,8 +45632,8 @@ function rU() {
|
|
|
45637
45632
|
} else
|
|
45638
45633
|
q = F;
|
|
45639
45634
|
var me = async function(tt, Et) {
|
|
45640
|
-
var Ot = async function(zt,
|
|
45641
|
-
|
|
45635
|
+
var Ot = async function(zt, xn, hn) {
|
|
45636
|
+
xn.length === 0 ? Array.prototype.push.apply(zt, hn) : hn.length === 0 ? Array.prototype.push.apply(zt, xn) : await q(xn[0], hn[0]) ? (zt.push(hn[0]), await Ot(zt, xn, hn.slice(1))) : (zt.push(xn[0]), await Ot(zt, xn.slice(1), hn));
|
|
45642
45637
|
}, fn = [];
|
|
45643
45638
|
return await Ot(fn, tt, Et), fn;
|
|
45644
45639
|
}, ue = async function(tt) {
|
|
@@ -46182,8 +46177,8 @@ function rU() {
|
|
|
46182
46177
|
return le.isParallelCall = Zn > 0, [hn, await Z(U.lhs[ln.exprIndex][1], ae, We)];
|
|
46183
46178
|
}));
|
|
46184
46179
|
for (let hn of zt) {
|
|
46185
|
-
var [Ot,
|
|
46186
|
-
typeof
|
|
46180
|
+
var [Ot, xn] = await hn;
|
|
46181
|
+
typeof xn < "u" && ($[Ot] = xn);
|
|
46187
46182
|
}
|
|
46188
46183
|
return $;
|
|
46189
46184
|
}
|
|
@@ -46277,11 +46272,11 @@ function rU() {
|
|
|
46277
46272
|
async function Mt(U, J, le) {
|
|
46278
46273
|
var $, F = J, q = !!J.tupleStream, me = async function(Le, tt) {
|
|
46279
46274
|
for (var Et = 0, Ot = 0; Et === 0 && Ot < U.terms.length; Ot++) {
|
|
46280
|
-
var fn = U.terms[Ot], zt = Le,
|
|
46281
|
-
q && (zt = Le["@"],
|
|
46282
|
-
var hn = await Z(fn.expression, zt,
|
|
46283
|
-
zt = tt,
|
|
46284
|
-
var Zn = await Z(fn.expression, zt,
|
|
46275
|
+
var fn = U.terms[Ot], zt = Le, xn = le;
|
|
46276
|
+
q && (zt = Le["@"], xn = ge(le, Le));
|
|
46277
|
+
var hn = await Z(fn.expression, zt, xn);
|
|
46278
|
+
zt = tt, xn = le, q && (zt = tt["@"], xn = ge(le, tt));
|
|
46279
|
+
var Zn = await Z(fn.expression, zt, xn), ln = typeof hn, ae = typeof Zn;
|
|
46285
46280
|
if (ln === "undefined") {
|
|
46286
46281
|
Et = ae === "undefined" ? 0 : 1;
|
|
46287
46282
|
continue;
|
|
@@ -46350,13 +46345,13 @@ function rU() {
|
|
|
46350
46345
|
if (typeof U.delete < "u") {
|
|
46351
46346
|
var zt = await Z(U.delete, tt, le);
|
|
46352
46347
|
if (typeof zt < "u") {
|
|
46353
|
-
var
|
|
46348
|
+
var xn = zt;
|
|
46354
46349
|
if (Array.isArray(zt) || (zt = [zt]), !R(zt))
|
|
46355
46350
|
throw {
|
|
46356
46351
|
code: "T2012",
|
|
46357
46352
|
stack: new Error().stack,
|
|
46358
46353
|
position: U.delete.position,
|
|
46359
|
-
value:
|
|
46354
|
+
value: xn
|
|
46360
46355
|
};
|
|
46361
46356
|
for (var hn = 0; hn < zt.length; hn++)
|
|
46362
46357
|
typeof tt == "object" && tt !== null && delete tt[zt[hn]];
|
|
@@ -47874,7 +47869,7 @@ const WA = /* @__PURE__ */ KC(oU), aU = async (e, r, i) => {
|
|
|
47874
47869
|
const s = r(i);
|
|
47875
47870
|
return !(s == null || typeof s == "string" && s.trim() === "" || Array.isArray(s) && s.length === 0);
|
|
47876
47871
|
}, uU = ({ flow: e, isPreview: r, $bgColor: i, onSubmit: s, onNextStep: c, onPrevStep: p, shouldRedirect: d = !0, formidavimHost: v }) => {
|
|
47877
|
-
const [b, S] =
|
|
47872
|
+
const [b, S] = Zt(0), [T, w] = Zt([]), [R, A] = Zt(!0), { evaluateCondition: L } = iU(), { getFlowValue: P, getAllFlowData: j, setDisableSubmitValue: G, getDisableSubmitValue: Y, getFlowError: k, setCurrentFormValue: V } = Lr(), N = Lr().getAllFlowData(), z = async (ce) => {
|
|
47878
47873
|
if (!ce) return [];
|
|
47879
47874
|
const fe = [];
|
|
47880
47875
|
for (const ve of ce) {
|
|
@@ -47888,9 +47883,9 @@ const WA = /* @__PURE__ */ KC(oU), aU = async (e, r, i) => {
|
|
|
47888
47883
|
}
|
|
47889
47884
|
return fe;
|
|
47890
47885
|
};
|
|
47891
|
-
|
|
47886
|
+
Tn(() => {
|
|
47892
47887
|
S(0);
|
|
47893
|
-
}, [e.slug]),
|
|
47888
|
+
}, [e.slug]), Tn(() => {
|
|
47894
47889
|
const ce = async () => {
|
|
47895
47890
|
var ve;
|
|
47896
47891
|
if (!e.flowForms) {
|
|
@@ -47909,14 +47904,14 @@ const WA = /* @__PURE__ */ KC(oU), aU = async (e, r, i) => {
|
|
|
47909
47904
|
w(fe), A(!1);
|
|
47910
47905
|
};
|
|
47911
47906
|
A(!0), ce();
|
|
47912
|
-
}, [e.flowForms, L]),
|
|
47907
|
+
}, [e.flowForms, L]), Tn(() => {
|
|
47913
47908
|
if (!R && T.length > 0 && b < T.length) {
|
|
47914
47909
|
const ce = T[b], fe = (ce == null ? void 0 : ce.evaluatedFormComponents) || [], ve = K$(fe, P, k);
|
|
47915
47910
|
G(!ve);
|
|
47916
47911
|
}
|
|
47917
47912
|
}, [T, b, R, N, P, G]);
|
|
47918
47913
|
const Z = T.length, ie = T[b], ge = Y();
|
|
47919
|
-
if (
|
|
47914
|
+
if (Tn(() => {
|
|
47920
47915
|
ie && V(ie);
|
|
47921
47916
|
}, [ie, V]), R)
|
|
47922
47917
|
return /* @__PURE__ */ I.jsx("div", { children: "Loading..." });
|
|
@@ -48036,7 +48031,7 @@ const WA = /* @__PURE__ */ KC(oU), aU = async (e, r, i) => {
|
|
|
48036
48031
|
return console.error("Error processing flow config templates:", s), e;
|
|
48037
48032
|
}
|
|
48038
48033
|
}, qA = ({ data: e, config: r, isPreview: i, onSubmit: s, onNextStep: c, onPrevStep: p, onFlowInit: d, shouldRedirect: v, formidavimHost: b }) => {
|
|
48039
|
-
const { setFlowValues: S, resetAndSetFlowValues: T, generateFormDataFromFlow: w, setPatientValues: R, getFullPatient: A, setCurrentFlowValue: L } = Lr(), [P, j] =
|
|
48034
|
+
const { setFlowValues: S, resetAndSetFlowValues: T, generateFormDataFromFlow: w, setPatientValues: R, getFullPatient: A, setCurrentFlowValue: L } = Lr(), [P, j] = Zt(null), [G, Y] = Zt(!0), [k, V] = Zt(!1), N = async (Z, ie = !1, ge = !1) => {
|
|
48040
48035
|
try {
|
|
48041
48036
|
const M = await dU(r, Z);
|
|
48042
48037
|
if (j(M), L(M), ge && d && (r != null && r.id) && (r != null && r.slug) && d(r), ie) {
|
|
@@ -48050,13 +48045,13 @@ const WA = /* @__PURE__ */ KC(oU), aU = async (e, r, i) => {
|
|
|
48050
48045
|
}
|
|
48051
48046
|
}
|
|
48052
48047
|
};
|
|
48053
|
-
|
|
48048
|
+
Tn(() => {
|
|
48054
48049
|
(async () => {
|
|
48055
48050
|
Y(!0), e && R(e), await N(e, !0, !0), V(!0), Y(!1);
|
|
48056
48051
|
})();
|
|
48057
48052
|
}, [e, r]);
|
|
48058
48053
|
const z = A();
|
|
48059
|
-
return
|
|
48054
|
+
return Tn(() => {
|
|
48060
48055
|
k && z && N(z, !1, !1);
|
|
48061
48056
|
}, [z, k]), G || !P ? /* @__PURE__ */ I.jsx("div", { children: "Processing form..." }) : /* @__PURE__ */ I.jsx(
|
|
48062
48057
|
uU,
|
|
@@ -48231,8 +48226,8 @@ const xU = ({ formComponent: e, isPreview: r, boundary: i, isVisible: s = !0, fo
|
|
|
48231
48226
|
padding: 20px 0px 20px;
|
|
48232
48227
|
`, wU = ({ children: e, $bgColor: r }) => /* @__PURE__ */ I.jsx(Ep, { $overflow: "visible", $position: "static", $xSmall: !0, id: "MainFlowContainer", $bgColor: r || "white", $bRad: "0px", $marginBottom: "80px", $marginBottomMd: "0px", children: /* @__PURE__ */ I.jsx(CU, { onSubmit: (i) => i.preventDefault(), children: e }) }), EU = ({ dataFetcher: e = () => {
|
|
48233
48228
|
}, children: r, configFetcher: i, isPreview: s = !1, onSubmit: c = () => Promise.resolve(), formidavimHost: p, version: d, flowName: v = "", onNextStep: b, onPrevStep: S, onFlowInit: T, onConfigFetchError: w, shouldRedirect: R, onFormidavimFallback: A }) => {
|
|
48234
|
-
const L = hv(p), [P, j] =
|
|
48235
|
-
if (
|
|
48229
|
+
const L = hv(p), [P, j] = Zt({ config: null, data: null }), [G, Y] = Zt(!0);
|
|
48230
|
+
if (Tn(() => {
|
|
48236
48231
|
Y(!0), (i ? i() : L.flowControllerGetBySlug(v, d).then(({ data: N }) => N)).then(async (N) => {
|
|
48237
48232
|
const z = e ? await e("flow") : null;
|
|
48238
48233
|
j({ config: N, data: z }), Y(!1);
|
|
@@ -48265,8 +48260,8 @@ const xU = ({ formComponent: e, isPreview: r, boundary: i, isVisible: s = !0, fo
|
|
|
48265
48260
|
}
|
|
48266
48261
|
) });
|
|
48267
48262
|
}, MU = ({ dataFetcher: e = () => Promise.resolve(null), children: r, configFetcher: i, pipelineFetcher: s, isPreview: c = !1, onSubmit: p = () => Promise.resolve(), formidavimHost: d, version: v, flowName: b = "", onNextStep: S, onPrevStep: T, onFlowInit: w, onPipelineInit: R, onNoFlowsAvailable: A, onConfigFetchError: L, onFormidavimFallback: P }) => {
|
|
48268
|
-
const j = hv(d), [G, Y] =
|
|
48269
|
-
|
|
48263
|
+
const j = hv(d), [G, Y] = Zt({ config: null, data: null }), [k, V] = Zt([]), [N, z] = Zt({}), [Z, ie] = Zt(!0), [ge, M] = Zt(!1), se = Hu(/* @__PURE__ */ new Set());
|
|
48264
|
+
Tn(() => {
|
|
48270
48265
|
ie(!0), (s ? s() : j.pipelineControllerGetBySlug(b, v).then(({ data: fe }) => fe)).then(async (fe) => {
|
|
48271
48266
|
const ve = e ? await e("pipeline") : null;
|
|
48272
48267
|
if (Y({ config: fe, data: ve }), fe != null && fe.pipelineFlows && (await Ee(fe.pipelineFlows, ve.data)).length === 0) {
|
|
@@ -48277,7 +48272,7 @@ const xU = ({ formComponent: e, isPreview: r, boundary: i, isVisible: s = !0, fo
|
|
|
48277
48272
|
}).catch((fe) => {
|
|
48278
48273
|
console.warn("configFetcher failed", fe), L && L(fe), ie(!1);
|
|
48279
48274
|
});
|
|
48280
|
-
}, [b, v]),
|
|
48275
|
+
}, [b, v]), Tn(() => {
|
|
48281
48276
|
var fe;
|
|
48282
48277
|
const ce = ((fe = k == null ? void 0 : k[0]) == null ? void 0 : fe.flow) || {};
|
|
48283
48278
|
z((ve) => {
|