@hievilmath/browser-formidavim 1.4.30 → 1.4.33
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/README.md +6 -0
- package/index.js +2 -2
- package/index.mjs +209 -207
- 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 Jt, useEffect as
|
|
5
|
+
import Qs, { useState as Jt, 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
|
}
|
|
@@ -4675,7 +4675,7 @@ const w5 = {
|
|
|
4675
4675
|
const { getFlowValue: r, setFlowAndPatientValue: i, getFlowError: s } = Lr(), [c, p] = Jt({}), 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, ""));
|
|
@@ -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);
|
|
@@ -10294,11 +10294,11 @@ const hv = (e) => {
|
|
|
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]);
|
|
@@ -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
|
}
|
|
@@ -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);
|
|
@@ -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 }),
|
|
@@ -43009,7 +43009,7 @@ const sj = _e.div`
|
|
|
43009
43009
|
background-color: ${(e) => e.theme.colors.neutral20};
|
|
43010
43010
|
min-width: 100%;
|
|
43011
43011
|
min-height: 60px;
|
|
43012
|
-
line-height: 75px;
|
|
43012
|
+
line-height: 75px !important;
|
|
43013
43013
|
transition: all 0.2s;
|
|
43014
43014
|
|
|
43015
43015
|
&:hover, &:focus {
|
|
@@ -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();
|
|
@@ -43231,13 +43231,15 @@ const sj = _e.div`
|
|
|
43231
43231
|
] });
|
|
43232
43232
|
}, mj = ({ formComponent: e, formidavimHost: r }) => {
|
|
43233
43233
|
const i = e.props, { propertyId: s, label: c = "Hidden Field", jsonataExpression: p } = i || {}, { getFlowValue: d, setFlowAndPatientValue: v, getFlowError: b, setFlowError: S, setDisableSubmitValue: T, setFlowValue: w } = Lr(), R = Rp(d(s)), [A, L] = Jt("");
|
|
43234
|
-
|
|
43235
|
-
L(R);
|
|
43236
|
-
}, [
|
|
43237
|
-
|
|
43238
|
-
|
|
43239
|
-
|
|
43240
|
-
|
|
43234
|
+
Tn(() => {
|
|
43235
|
+
R ? L(R) : (v(s, ""), L("")), T(!1);
|
|
43236
|
+
}, [s, v, T]), Tn(() => {
|
|
43237
|
+
if (p != null) {
|
|
43238
|
+
const G = String(p);
|
|
43239
|
+
v(s, G), L(G), S(s, null), T(!1), console.log("Hidden component - stored evaluated value:", p);
|
|
43240
|
+
} else
|
|
43241
|
+
console.log("Hidden component - no value, setting default"), v(s, ""), L(""), S(s, null), T(!1);
|
|
43242
|
+
}, [p, s, v, S, T]);
|
|
43241
43243
|
const j = !!b(s);
|
|
43242
43244
|
return /* @__PURE__ */ I.jsxs(si, { $visible: !1, $hasError: j, children: [
|
|
43243
43245
|
/* @__PURE__ */ I.jsx(
|
|
@@ -43266,7 +43268,7 @@ const sj = _e.div`
|
|
|
43266
43268
|
] });
|
|
43267
43269
|
}, vj = ({ formComponent: e }) => {
|
|
43268
43270
|
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
|
-
|
|
43271
|
+
Tn(() => {
|
|
43270
43272
|
!R.current && p && (!L && p && b(i, p + " mg"), R.current = !0);
|
|
43271
43273
|
}, [p]);
|
|
43272
43274
|
const G = (N) => P === 0 ? 0 : Math.round(N / P * 100), Y = (N) => P === 0 ? 0 : N / 100 * P, k = G(L), V = (N) => {
|
|
@@ -43315,7 +43317,7 @@ const sj = _e.div`
|
|
|
43315
43317
|
} = r || {}, T = typeof v == "string" ? parseInt(v, 10) : v;
|
|
43316
43318
|
console.log("maxWidthRaw:", v, "maxWidth:", T);
|
|
43317
43319
|
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] = Jt(""), z = i === "true";
|
|
43318
|
-
|
|
43320
|
+
Tn(() => {
|
|
43319
43321
|
G ? b && Array.isArray(G) ? N(`${G.length} file(s) selected`) : !b && G && N("File selected") : N("");
|
|
43320
43322
|
}, [G, b]);
|
|
43321
43323
|
const Z = (ie) => {
|
|
@@ -43694,9 +43696,9 @@ const Hj = _e.div`
|
|
|
43694
43696
|
);
|
|
43695
43697
|
}, qj = ({ formComponent: e }) => {
|
|
43696
43698
|
const r = e.props, { getFlowValue: i, setFlowAndPatientValue: s, getFlowError: c } = Lr(), [p, d] = Jt(!1), [v, b] = Jt(!1), [S, T] = Jt(!1), [w, R] = Jt(!1), A = Hu(null), L = i(r.propertyId), P = c(r.propertyId), j = !!P && P !== "Required";
|
|
43697
|
-
|
|
43699
|
+
Tn(() => {
|
|
43698
43700
|
T(!!L);
|
|
43699
|
-
}, [L]),
|
|
43701
|
+
}, [L]), Tn(() => {
|
|
43700
43702
|
const ge = A.current;
|
|
43701
43703
|
if (!ge) return;
|
|
43702
43704
|
const M = () => {
|
|
@@ -45042,14 +45044,14 @@ function rU() {
|
|
|
45042
45044
|
if (typeof zt < "u") {
|
|
45043
45045
|
for (; typeof zt < "u" && (typeof me > "u" || Ot < me); ) {
|
|
45044
45046
|
tt += $.substring(Et, zt.start);
|
|
45045
|
-
var
|
|
45046
|
-
if (P(
|
|
45047
|
-
tt +=
|
|
45047
|
+
var xn = Le.apply(ue, [zt]);
|
|
45048
|
+
if (P(xn) && (xn = await xn), typeof xn == "string")
|
|
45049
|
+
tt += xn;
|
|
45048
45050
|
else
|
|
45049
45051
|
throw {
|
|
45050
45052
|
code: "D3012",
|
|
45051
45053
|
stack: new Error().stack,
|
|
45052
|
-
value:
|
|
45054
|
+
value: xn
|
|
45053
45055
|
};
|
|
45054
45056
|
Et = zt.start + zt.match.length, Ot++, zt = await ve(zt.next);
|
|
45055
45057
|
}
|
|
@@ -45225,7 +45227,7 @@ function rU() {
|
|
|
45225
45227
|
fractionalPart: ji,
|
|
45226
45228
|
subpicture: Ht
|
|
45227
45229
|
};
|
|
45228
|
-
},
|
|
45230
|
+
}, xn = function(Ht) {
|
|
45229
45231
|
var Hn, Sr, gn = Ht.subpicture, fo = gn.indexOf(ue["decimal-separator"]);
|
|
45230
45232
|
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
45233
|
var Or = !1;
|
|
@@ -45298,7 +45300,7 @@ function rU() {
|
|
|
45298
45300
|
picture: Ht.subpicture
|
|
45299
45301
|
};
|
|
45300
45302
|
}, Zn = fn.map(zt);
|
|
45301
|
-
Zn.forEach(
|
|
45303
|
+
Zn.forEach(xn);
|
|
45302
45304
|
var ln = Zn.map(hn), ae = ue["minus-sign"], We = ue["zero-digit"], ot = ue["decimal-separator"], It = ue["grouping-separator"];
|
|
45303
45305
|
ln.length === 1 && (ln.push(JSON.parse(JSON.stringify(ln[0]))), ln[1].prefix = ae + ln[1].prefix);
|
|
45304
45306
|
var $t;
|
|
@@ -45637,8 +45639,8 @@ function rU() {
|
|
|
45637
45639
|
} else
|
|
45638
45640
|
q = F;
|
|
45639
45641
|
var me = async function(tt, Et) {
|
|
45640
|
-
var Ot = async function(zt,
|
|
45641
|
-
|
|
45642
|
+
var Ot = async function(zt, xn, hn) {
|
|
45643
|
+
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
45644
|
}, fn = [];
|
|
45643
45645
|
return await Ot(fn, tt, Et), fn;
|
|
45644
45646
|
}, ue = async function(tt) {
|
|
@@ -46182,8 +46184,8 @@ function rU() {
|
|
|
46182
46184
|
return le.isParallelCall = Zn > 0, [hn, await Z(U.lhs[ln.exprIndex][1], ae, We)];
|
|
46183
46185
|
}));
|
|
46184
46186
|
for (let hn of zt) {
|
|
46185
|
-
var [Ot,
|
|
46186
|
-
typeof
|
|
46187
|
+
var [Ot, xn] = await hn;
|
|
46188
|
+
typeof xn < "u" && ($[Ot] = xn);
|
|
46187
46189
|
}
|
|
46188
46190
|
return $;
|
|
46189
46191
|
}
|
|
@@ -46277,11 +46279,11 @@ function rU() {
|
|
|
46277
46279
|
async function Mt(U, J, le) {
|
|
46278
46280
|
var $, F = J, q = !!J.tupleStream, me = async function(Le, tt) {
|
|
46279
46281
|
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,
|
|
46282
|
+
var fn = U.terms[Ot], zt = Le, xn = le;
|
|
46283
|
+
q && (zt = Le["@"], xn = ge(le, Le));
|
|
46284
|
+
var hn = await Z(fn.expression, zt, xn);
|
|
46285
|
+
zt = tt, xn = le, q && (zt = tt["@"], xn = ge(le, tt));
|
|
46286
|
+
var Zn = await Z(fn.expression, zt, xn), ln = typeof hn, ae = typeof Zn;
|
|
46285
46287
|
if (ln === "undefined") {
|
|
46286
46288
|
Et = ae === "undefined" ? 0 : 1;
|
|
46287
46289
|
continue;
|
|
@@ -46350,13 +46352,13 @@ function rU() {
|
|
|
46350
46352
|
if (typeof U.delete < "u") {
|
|
46351
46353
|
var zt = await Z(U.delete, tt, le);
|
|
46352
46354
|
if (typeof zt < "u") {
|
|
46353
|
-
var
|
|
46355
|
+
var xn = zt;
|
|
46354
46356
|
if (Array.isArray(zt) || (zt = [zt]), !R(zt))
|
|
46355
46357
|
throw {
|
|
46356
46358
|
code: "T2012",
|
|
46357
46359
|
stack: new Error().stack,
|
|
46358
46360
|
position: U.delete.position,
|
|
46359
|
-
value:
|
|
46361
|
+
value: xn
|
|
46360
46362
|
};
|
|
46361
46363
|
for (var hn = 0; hn < zt.length; hn++)
|
|
46362
46364
|
typeof tt == "object" && tt !== null && delete tt[zt[hn]];
|
|
@@ -47888,9 +47890,9 @@ const WA = /* @__PURE__ */ KC(oU), aU = async (e, r, i) => {
|
|
|
47888
47890
|
}
|
|
47889
47891
|
return fe;
|
|
47890
47892
|
};
|
|
47891
|
-
|
|
47893
|
+
Tn(() => {
|
|
47892
47894
|
S(0);
|
|
47893
|
-
}, [e.slug]),
|
|
47895
|
+
}, [e.slug]), Tn(() => {
|
|
47894
47896
|
const ce = async () => {
|
|
47895
47897
|
var ve;
|
|
47896
47898
|
if (!e.flowForms) {
|
|
@@ -47909,14 +47911,14 @@ const WA = /* @__PURE__ */ KC(oU), aU = async (e, r, i) => {
|
|
|
47909
47911
|
w(fe), A(!1);
|
|
47910
47912
|
};
|
|
47911
47913
|
A(!0), ce();
|
|
47912
|
-
}, [e.flowForms, L]),
|
|
47914
|
+
}, [e.flowForms, L]), Tn(() => {
|
|
47913
47915
|
if (!R && T.length > 0 && b < T.length) {
|
|
47914
47916
|
const ce = T[b], fe = (ce == null ? void 0 : ce.evaluatedFormComponents) || [], ve = K$(fe, P, k);
|
|
47915
47917
|
G(!ve);
|
|
47916
47918
|
}
|
|
47917
47919
|
}, [T, b, R, N, P, G]);
|
|
47918
47920
|
const Z = T.length, ie = T[b], ge = Y();
|
|
47919
|
-
if (
|
|
47921
|
+
if (Tn(() => {
|
|
47920
47922
|
ie && V(ie);
|
|
47921
47923
|
}, [ie, V]), R)
|
|
47922
47924
|
return /* @__PURE__ */ I.jsx("div", { children: "Loading..." });
|
|
@@ -48050,13 +48052,13 @@ const WA = /* @__PURE__ */ KC(oU), aU = async (e, r, i) => {
|
|
|
48050
48052
|
}
|
|
48051
48053
|
}
|
|
48052
48054
|
};
|
|
48053
|
-
|
|
48055
|
+
Tn(() => {
|
|
48054
48056
|
(async () => {
|
|
48055
48057
|
Y(!0), e && R(e), await N(e, !0, !0), V(!0), Y(!1);
|
|
48056
48058
|
})();
|
|
48057
48059
|
}, [e, r]);
|
|
48058
48060
|
const z = A();
|
|
48059
|
-
return
|
|
48061
|
+
return Tn(() => {
|
|
48060
48062
|
k && z && N(z, !1, !1);
|
|
48061
48063
|
}, [z, k]), G || !P ? /* @__PURE__ */ I.jsx("div", { children: "Processing form..." }) : /* @__PURE__ */ I.jsx(
|
|
48062
48064
|
uU,
|
|
@@ -48232,7 +48234,7 @@ const xU = ({ formComponent: e, isPreview: r, boundary: i, isVisible: s = !0, fo
|
|
|
48232
48234
|
`, 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
48235
|
}, 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
48236
|
const L = hv(p), [P, j] = Jt({ config: null, data: null }), [G, Y] = Jt(!0);
|
|
48235
|
-
if (
|
|
48237
|
+
if (Tn(() => {
|
|
48236
48238
|
Y(!0), (i ? i() : L.flowControllerGetBySlug(v, d).then(({ data: N }) => N)).then(async (N) => {
|
|
48237
48239
|
const z = e ? await e("flow") : null;
|
|
48238
48240
|
j({ config: N, data: z }), Y(!1);
|
|
@@ -48266,7 +48268,7 @@ const xU = ({ formComponent: e, isPreview: r, boundary: i, isVisible: s = !0, fo
|
|
|
48266
48268
|
) });
|
|
48267
48269
|
}, 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
48270
|
const j = hv(d), [G, Y] = Jt({ config: null, data: null }), [k, V] = Jt([]), [N, z] = Jt({}), [Z, ie] = Jt(!0), [ge, M] = Jt(!1), se = Hu(/* @__PURE__ */ new Set());
|
|
48269
|
-
|
|
48271
|
+
Tn(() => {
|
|
48270
48272
|
ie(!0), (s ? s() : j.pipelineControllerGetBySlug(b, v).then(({ data: fe }) => fe)).then(async (fe) => {
|
|
48271
48273
|
const ve = e ? await e("pipeline") : null;
|
|
48272
48274
|
if (Y({ config: fe, data: ve }), fe != null && fe.pipelineFlows && (await Ee(fe.pipelineFlows, ve.data)).length === 0) {
|
|
@@ -48277,7 +48279,7 @@ const xU = ({ formComponent: e, isPreview: r, boundary: i, isVisible: s = !0, fo
|
|
|
48277
48279
|
}).catch((fe) => {
|
|
48278
48280
|
console.warn("configFetcher failed", fe), L && L(fe), ie(!1);
|
|
48279
48281
|
});
|
|
48280
|
-
}, [b, v]),
|
|
48282
|
+
}, [b, v]), Tn(() => {
|
|
48281
48283
|
var fe;
|
|
48282
48284
|
const ce = ((fe = k == null ? void 0 : k[0]) == null ? void 0 : fe.flow) || {};
|
|
48283
48285
|
z((ve) => {
|