@getcredify/credify-insurance-widget 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/credify-insurance-widget.css +1 -1
- package/dist/iframe/assets/{iframe-DnOh-EgZ.js → iframe-9ThFCPgT.js} +6 -6
- package/dist/iframe/assets/{iframe-DnOh-EgZ.js.map → iframe-9ThFCPgT.js.map} +1 -1
- package/dist/iframe/assets/iframe-CBKvQTJa.css +1 -0
- package/dist/iframe/iframe.html +2 -2
- package/dist/index.es.js +355 -349
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +6 -6
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/iframe/assets/iframe-_NqtWMuT.css +0 -1
package/dist/index.es.js
CHANGED
|
@@ -51,9 +51,9 @@ function v_() {
|
|
|
51
51
|
return O !== 0 ? O : z.id - M.id;
|
|
52
52
|
}
|
|
53
53
|
if (i.unstable_now = void 0, typeof performance == "object" && typeof performance.now == "function") {
|
|
54
|
-
var
|
|
54
|
+
var b = performance;
|
|
55
55
|
i.unstable_now = function() {
|
|
56
|
-
return
|
|
56
|
+
return b.now();
|
|
57
57
|
};
|
|
58
58
|
} else {
|
|
59
59
|
var E = Date, x = E.now();
|
|
@@ -74,20 +74,20 @@ function v_() {
|
|
|
74
74
|
function H(z) {
|
|
75
75
|
if ($ = !1, U(z), !cl)
|
|
76
76
|
if (_(j) !== null)
|
|
77
|
-
cl = !0, C || (C = !0,
|
|
77
|
+
cl = !0, C || (C = !0, Q());
|
|
78
78
|
else {
|
|
79
79
|
var M = _(X);
|
|
80
80
|
M !== null && W(H, M.startTime - z);
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
var C = !1, I = -1, k = 5,
|
|
83
|
+
var C = !1, I = -1, k = 5, G = -1;
|
|
84
84
|
function w() {
|
|
85
|
-
return P ? !0 : !(i.unstable_now() -
|
|
85
|
+
return P ? !0 : !(i.unstable_now() - G < k);
|
|
86
86
|
}
|
|
87
87
|
function Z() {
|
|
88
88
|
if (P = !1, C) {
|
|
89
89
|
var z = i.unstable_now();
|
|
90
|
-
|
|
90
|
+
G = z;
|
|
91
91
|
var M = !0;
|
|
92
92
|
try {
|
|
93
93
|
l: {
|
|
@@ -126,22 +126,22 @@ function v_() {
|
|
|
126
126
|
M = void 0;
|
|
127
127
|
}
|
|
128
128
|
} finally {
|
|
129
|
-
M ?
|
|
129
|
+
M ? Q() : C = !1;
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
|
-
var
|
|
133
|
+
var Q;
|
|
134
134
|
if (typeof q == "function")
|
|
135
|
-
|
|
135
|
+
Q = function() {
|
|
136
136
|
q(Z);
|
|
137
137
|
};
|
|
138
138
|
else if (typeof MessageChannel < "u") {
|
|
139
139
|
var dl = new MessageChannel(), ml = dl.port2;
|
|
140
|
-
dl.port1.onmessage = Z,
|
|
140
|
+
dl.port1.onmessage = Z, Q = function() {
|
|
141
141
|
ml.postMessage(null);
|
|
142
142
|
};
|
|
143
143
|
} else
|
|
144
|
-
|
|
144
|
+
Q = function() {
|
|
145
145
|
Tl(Z, 0);
|
|
146
146
|
};
|
|
147
147
|
function W(z, M) {
|
|
@@ -219,7 +219,7 @@ function v_() {
|
|
|
219
219
|
startTime: O,
|
|
220
220
|
expirationTime: _l,
|
|
221
221
|
sortIndex: -1
|
|
222
|
-
}, O > al ? (z.sortIndex = O, r(X, z), _(j) === null && z === _(X) && ($ ? (B(I), I = -1) : $ = !0, W(H, O - al))) : (z.sortIndex = _l, r(j, z), cl || ol || (cl = !0, C || (C = !0,
|
|
222
|
+
}, O > al ? (z.sortIndex = O, r(X, z), _(j) === null && z === _(X) && ($ ? (B(I), I = -1) : $ = !0, W(H, O - al))) : (z.sortIndex = _l, r(j, z), cl || ol || (cl = !0, C || (C = !0, Q()))), z;
|
|
223
223
|
}, i.unstable_shouldYield = w, i.unstable_wrapCallback = function(z) {
|
|
224
224
|
var M = J;
|
|
225
225
|
return function() {
|
|
@@ -262,7 +262,7 @@ function b_() {
|
|
|
262
262
|
}
|
|
263
263
|
return "Minified React error #" + l + "; visit " + t + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
|
|
264
264
|
}
|
|
265
|
-
function
|
|
265
|
+
function b(l) {
|
|
266
266
|
return !(!l || l.nodeType !== 1 && l.nodeType !== 9 && l.nodeType !== 11);
|
|
267
267
|
}
|
|
268
268
|
function E(l) {
|
|
@@ -354,9 +354,9 @@ function b_() {
|
|
|
354
354
|
}
|
|
355
355
|
return null;
|
|
356
356
|
}
|
|
357
|
-
var D = Object.assign, J = Symbol.for("react.element"), ol = Symbol.for("react.transitional.element"), cl = Symbol.for("react.portal"), $ = Symbol.for("react.fragment"), P = Symbol.for("react.strict_mode"), Tl = Symbol.for("react.profiler"), B = Symbol.for("react.provider"), q = Symbol.for("react.consumer"), U = Symbol.for("react.context"), H = Symbol.for("react.forward_ref"), C = Symbol.for("react.suspense"), I = Symbol.for("react.suspense_list"), k = Symbol.for("react.memo"),
|
|
357
|
+
var D = Object.assign, J = Symbol.for("react.element"), ol = Symbol.for("react.transitional.element"), cl = Symbol.for("react.portal"), $ = Symbol.for("react.fragment"), P = Symbol.for("react.strict_mode"), Tl = Symbol.for("react.profiler"), B = Symbol.for("react.provider"), q = Symbol.for("react.consumer"), U = Symbol.for("react.context"), H = Symbol.for("react.forward_ref"), C = Symbol.for("react.suspense"), I = Symbol.for("react.suspense_list"), k = Symbol.for("react.memo"), G = Symbol.for("react.lazy"), w = Symbol.for("react.activity"), Z = Symbol.for("react.memo_cache_sentinel"), Q = Symbol.iterator;
|
|
358
358
|
function dl(l) {
|
|
359
|
-
return l === null || typeof l != "object" ? null : (l =
|
|
359
|
+
return l === null || typeof l != "object" ? null : (l = Q && l[Q] || l["@@iterator"], typeof l == "function" ? l : null);
|
|
360
360
|
}
|
|
361
361
|
var ml = Symbol.for("react.client.reference");
|
|
362
362
|
function W(l) {
|
|
@@ -391,7 +391,7 @@ function b_() {
|
|
|
391
391
|
return l = l.displayName, l || (l = t.displayName || t.name || "", l = l !== "" ? "ForwardRef(" + l + ")" : "ForwardRef"), l;
|
|
392
392
|
case k:
|
|
393
393
|
return t = l.displayName || null, t !== null ? t : W(l.type) || "Memo";
|
|
394
|
-
case
|
|
394
|
+
case G:
|
|
395
395
|
t = l._payload, l = l._init;
|
|
396
396
|
try {
|
|
397
397
|
return W(l(t));
|
|
@@ -594,8 +594,8 @@ function b_() {
|
|
|
594
594
|
var g = v[A];
|
|
595
595
|
if (g !== null)
|
|
596
596
|
for (v[A] = null, A = 0; A < g.length; A++) {
|
|
597
|
-
var
|
|
598
|
-
|
|
597
|
+
var p = g[A];
|
|
598
|
+
p !== null && (p.lane &= -536870913);
|
|
599
599
|
}
|
|
600
600
|
e &= ~N;
|
|
601
601
|
}
|
|
@@ -803,30 +803,30 @@ function b_() {
|
|
|
803
803
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
804
804
|
try {
|
|
805
805
|
Reflect.construct(N, []);
|
|
806
|
-
} catch (
|
|
807
|
-
var g =
|
|
806
|
+
} catch (p) {
|
|
807
|
+
var g = p;
|
|
808
808
|
}
|
|
809
809
|
Reflect.construct(l, [], N);
|
|
810
810
|
} else {
|
|
811
811
|
try {
|
|
812
812
|
N.call();
|
|
813
|
-
} catch (
|
|
814
|
-
g =
|
|
813
|
+
} catch (p) {
|
|
814
|
+
g = p;
|
|
815
815
|
}
|
|
816
816
|
l.call(N.prototype);
|
|
817
817
|
}
|
|
818
818
|
} else {
|
|
819
819
|
try {
|
|
820
820
|
throw Error();
|
|
821
|
-
} catch (
|
|
822
|
-
g =
|
|
821
|
+
} catch (p) {
|
|
822
|
+
g = p;
|
|
823
823
|
}
|
|
824
824
|
(N = l()) && typeof N.catch == "function" && N.catch(function() {
|
|
825
825
|
});
|
|
826
826
|
}
|
|
827
|
-
} catch (
|
|
828
|
-
if (
|
|
829
|
-
return [
|
|
827
|
+
} catch (p) {
|
|
828
|
+
if (p && g && typeof p.stack == "string")
|
|
829
|
+
return [p.stack, g.stack];
|
|
830
830
|
}
|
|
831
831
|
return [null, null];
|
|
832
832
|
}
|
|
@@ -1852,7 +1852,7 @@ Error generating stack: ` + e.message + `
|
|
|
1852
1852
|
case k:
|
|
1853
1853
|
c = 14;
|
|
1854
1854
|
break l;
|
|
1855
|
-
case
|
|
1855
|
+
case G:
|
|
1856
1856
|
c = 16, a = null;
|
|
1857
1857
|
break l;
|
|
1858
1858
|
}
|
|
@@ -2351,8 +2351,8 @@ Error generating stack: ` + e.message + `
|
|
|
2351
2351
|
var N = n.baseState;
|
|
2352
2352
|
c = 0, A = v = o = null, f = u;
|
|
2353
2353
|
do {
|
|
2354
|
-
var g = f.lane & -536870913,
|
|
2355
|
-
if (
|
|
2354
|
+
var g = f.lane & -536870913, p = g !== f.lane;
|
|
2355
|
+
if (p ? (fl & g) === g : (a & g) === g) {
|
|
2356
2356
|
g !== 0 && g === da && (Pi = !0), A !== null && (A = A.next = {
|
|
2357
2357
|
lane: 0,
|
|
2358
2358
|
tag: f.tag,
|
|
@@ -2382,19 +2382,19 @@ Error generating stack: ` + e.message + `
|
|
|
2382
2382
|
ue = !0;
|
|
2383
2383
|
}
|
|
2384
2384
|
}
|
|
2385
|
-
g = f.callback, g !== null && (l.flags |= 64,
|
|
2385
|
+
g = f.callback, g !== null && (l.flags |= 64, p && (l.flags |= 8192), p = n.callbacks, p === null ? n.callbacks = [g] : p.push(g));
|
|
2386
2386
|
} else
|
|
2387
|
-
|
|
2387
|
+
p = {
|
|
2388
2388
|
lane: g,
|
|
2389
2389
|
tag: f.tag,
|
|
2390
2390
|
payload: f.payload,
|
|
2391
2391
|
callback: f.callback,
|
|
2392
2392
|
next: null
|
|
2393
|
-
}, A === null ? (v = A =
|
|
2393
|
+
}, A === null ? (v = A = p, o = N) : A = A.next = p, c |= g;
|
|
2394
2394
|
if (f = f.next, f === null) {
|
|
2395
2395
|
if (f = n.shared.pending, f === null)
|
|
2396
2396
|
break;
|
|
2397
|
-
|
|
2397
|
+
p = f, f = p.next, p.next = null, n.lastBaseUpdate = p, n.shared.pending = null;
|
|
2398
2398
|
}
|
|
2399
2399
|
} while (!0);
|
|
2400
2400
|
A === null && (o = N), n.baseState = o, n.firstBaseUpdate = v, n.lastBaseUpdate = A, u === null && (n.shared.lanes = 0), he |= c, l.lanes = c, l.memoizedState = N;
|
|
@@ -3463,7 +3463,7 @@ Error generating stack: ` + e.message + `
|
|
|
3463
3463
|
y.props.children,
|
|
3464
3464
|
T,
|
|
3465
3465
|
y.key
|
|
3466
|
-
) : d !== null && (d.elementType === R || typeof R == "object" && R !== null && R.$$typeof ===
|
|
3466
|
+
) : d !== null && (d.elementType === R || typeof R == "object" && R !== null && R.$$typeof === G && jr(R) === d.type) ? (d = n(d, y.props), mn(d, y), d.return = m, d) : (d = uu(
|
|
3467
3467
|
y.type,
|
|
3468
3468
|
y.key,
|
|
3469
3469
|
y.props,
|
|
@@ -3507,7 +3507,7 @@ Error generating stack: ` + e.message + `
|
|
|
3507
3507
|
m.mode,
|
|
3508
3508
|
y
|
|
3509
3509
|
), d.return = m, d;
|
|
3510
|
-
case
|
|
3510
|
+
case G:
|
|
3511
3511
|
var T = d._init;
|
|
3512
3512
|
return d = T(d._payload), N(m, d, y);
|
|
3513
3513
|
}
|
|
@@ -3540,7 +3540,7 @@ Error generating stack: ` + e.message + `
|
|
|
3540
3540
|
return y.key === R ? o(m, d, y, T) : null;
|
|
3541
3541
|
case cl:
|
|
3542
3542
|
return y.key === R ? v(m, d, y, T) : null;
|
|
3543
|
-
case
|
|
3543
|
+
case G:
|
|
3544
3544
|
return R = y._init, y = R(y._payload), g(m, d, y, T);
|
|
3545
3545
|
}
|
|
3546
3546
|
if (z(y) || dl(y))
|
|
@@ -3563,7 +3563,7 @@ Error generating stack: ` + e.message + `
|
|
|
3563
3563
|
}
|
|
3564
3564
|
return null;
|
|
3565
3565
|
}
|
|
3566
|
-
function
|
|
3566
|
+
function p(m, d, y, T, R) {
|
|
3567
3567
|
if (typeof T == "string" && T !== "" || typeof T == "number" || typeof T == "bigint")
|
|
3568
3568
|
return m = m.get(y) || null, f(d, m, "" + T, R);
|
|
3569
3569
|
if (typeof T == "object" && T !== null) {
|
|
@@ -3576,9 +3576,9 @@ Error generating stack: ` + e.message + `
|
|
|
3576
3576
|
return m = m.get(
|
|
3577
3577
|
T.key === null ? y : T.key
|
|
3578
3578
|
) || null, v(d, m, T, R);
|
|
3579
|
-
case
|
|
3579
|
+
case G:
|
|
3580
3580
|
var el = T._init;
|
|
3581
|
-
return T = el(T._payload),
|
|
3581
|
+
return T = el(T._payload), p(
|
|
3582
3582
|
m,
|
|
3583
3583
|
d,
|
|
3584
3584
|
y,
|
|
@@ -3589,7 +3589,7 @@ Error generating stack: ` + e.message + `
|
|
|
3589
3589
|
if (z(T) || dl(T))
|
|
3590
3590
|
return m = m.get(y) || null, A(d, m, T, R, null);
|
|
3591
3591
|
if (typeof T.then == "function")
|
|
3592
|
-
return
|
|
3592
|
+
return p(
|
|
3593
3593
|
m,
|
|
3594
3594
|
d,
|
|
3595
3595
|
y,
|
|
@@ -3597,7 +3597,7 @@ Error generating stack: ` + e.message + `
|
|
|
3597
3597
|
R
|
|
3598
3598
|
);
|
|
3599
3599
|
if (T.$$typeof === U)
|
|
3600
|
-
return
|
|
3600
|
+
return p(
|
|
3601
3601
|
m,
|
|
3602
3602
|
d,
|
|
3603
3603
|
y,
|
|
@@ -3609,70 +3609,70 @@ Error generating stack: ` + e.message + `
|
|
|
3609
3609
|
return null;
|
|
3610
3610
|
}
|
|
3611
3611
|
function L(m, d, y, T) {
|
|
3612
|
-
for (var R = null, el = null,
|
|
3613
|
-
|
|
3612
|
+
for (var R = null, el = null, Y = d, K = d = 0, Cl = null; Y !== null && K < y.length; K++) {
|
|
3613
|
+
Y.index > K ? (Cl = Y, Y = null) : Cl = Y.sibling;
|
|
3614
3614
|
var sl = g(
|
|
3615
3615
|
m,
|
|
3616
|
-
|
|
3616
|
+
Y,
|
|
3617
3617
|
y[K],
|
|
3618
3618
|
T
|
|
3619
3619
|
);
|
|
3620
3620
|
if (sl === null) {
|
|
3621
|
-
|
|
3621
|
+
Y === null && (Y = Cl);
|
|
3622
3622
|
break;
|
|
3623
3623
|
}
|
|
3624
|
-
l &&
|
|
3624
|
+
l && Y && sl.alternate === null && t(m, Y), d = u(sl, d, K), el === null ? R = sl : el.sibling = sl, el = sl, Y = Cl;
|
|
3625
3625
|
}
|
|
3626
3626
|
if (K === y.length)
|
|
3627
|
-
return e(m,
|
|
3628
|
-
if (
|
|
3627
|
+
return e(m, Y), rl && Qe(m, K), R;
|
|
3628
|
+
if (Y === null) {
|
|
3629
3629
|
for (; K < y.length; K++)
|
|
3630
|
-
|
|
3631
|
-
|
|
3630
|
+
Y = N(m, y[K], T), Y !== null && (d = u(
|
|
3631
|
+
Y,
|
|
3632
3632
|
d,
|
|
3633
3633
|
K
|
|
3634
|
-
), el === null ? R =
|
|
3634
|
+
), el === null ? R = Y : el.sibling = Y, el = Y);
|
|
3635
3635
|
return rl && Qe(m, K), R;
|
|
3636
3636
|
}
|
|
3637
|
-
for (
|
|
3638
|
-
Cl =
|
|
3639
|
-
|
|
3637
|
+
for (Y = a(Y); K < y.length; K++)
|
|
3638
|
+
Cl = p(
|
|
3639
|
+
Y,
|
|
3640
3640
|
m,
|
|
3641
3641
|
K,
|
|
3642
3642
|
y[K],
|
|
3643
3643
|
T
|
|
3644
|
-
), Cl !== null && (l && Cl.alternate !== null &&
|
|
3644
|
+
), Cl !== null && (l && Cl.alternate !== null && Y.delete(
|
|
3645
3645
|
Cl.key === null ? K : Cl.key
|
|
3646
3646
|
), d = u(
|
|
3647
3647
|
Cl,
|
|
3648
3648
|
d,
|
|
3649
3649
|
K
|
|
3650
3650
|
), el === null ? R = Cl : el.sibling = Cl, el = Cl);
|
|
3651
|
-
return l &&
|
|
3651
|
+
return l && Y.forEach(function(Te) {
|
|
3652
3652
|
return t(m, Te);
|
|
3653
3653
|
}), rl && Qe(m, K), R;
|
|
3654
3654
|
}
|
|
3655
3655
|
function V(m, d, y, T) {
|
|
3656
3656
|
if (y == null) throw Error(s(151));
|
|
3657
|
-
for (var R = null, el = null,
|
|
3658
|
-
|
|
3659
|
-
var Te = g(m,
|
|
3657
|
+
for (var R = null, el = null, Y = d, K = d = 0, Cl = null, sl = y.next(); Y !== null && !sl.done; K++, sl = y.next()) {
|
|
3658
|
+
Y.index > K ? (Cl = Y, Y = null) : Cl = Y.sibling;
|
|
3659
|
+
var Te = g(m, Y, sl.value, T);
|
|
3660
3660
|
if (Te === null) {
|
|
3661
|
-
|
|
3661
|
+
Y === null && (Y = Cl);
|
|
3662
3662
|
break;
|
|
3663
3663
|
}
|
|
3664
|
-
l &&
|
|
3664
|
+
l && Y && Te.alternate === null && t(m, Y), d = u(Te, d, K), el === null ? R = Te : el.sibling = Te, el = Te, Y = Cl;
|
|
3665
3665
|
}
|
|
3666
3666
|
if (sl.done)
|
|
3667
|
-
return e(m,
|
|
3668
|
-
if (
|
|
3667
|
+
return e(m, Y), rl && Qe(m, K), R;
|
|
3668
|
+
if (Y === null) {
|
|
3669
3669
|
for (; !sl.done; K++, sl = y.next())
|
|
3670
3670
|
sl = N(m, sl.value, T), sl !== null && (d = u(sl, d, K), el === null ? R = sl : el.sibling = sl, el = sl);
|
|
3671
3671
|
return rl && Qe(m, K), R;
|
|
3672
3672
|
}
|
|
3673
|
-
for (
|
|
3674
|
-
sl =
|
|
3675
|
-
return l &&
|
|
3673
|
+
for (Y = a(Y); !sl.done; K++, sl = y.next())
|
|
3674
|
+
sl = p(Y, m, K, sl.value, T), sl !== null && (l && sl.alternate !== null && Y.delete(sl.key === null ? K : sl.key), d = u(sl, d, K), el === null ? R = sl : el.sibling = sl, el = sl);
|
|
3675
|
+
return l && Y.forEach(function(d_) {
|
|
3676
3676
|
return t(m, d_);
|
|
3677
3677
|
}), rl && Qe(m, K), R;
|
|
3678
3678
|
}
|
|
@@ -3694,7 +3694,7 @@ Error generating stack: ` + e.message + `
|
|
|
3694
3694
|
), T.return = m, m = T;
|
|
3695
3695
|
break l;
|
|
3696
3696
|
}
|
|
3697
|
-
} else if (d.elementType === R || typeof R == "object" && R !== null && R.$$typeof ===
|
|
3697
|
+
} else if (d.elementType === R || typeof R == "object" && R !== null && R.$$typeof === G && jr(R) === d.type) {
|
|
3698
3698
|
e(
|
|
3699
3699
|
m,
|
|
3700
3700
|
d.sibling
|
|
@@ -3741,7 +3741,7 @@ Error generating stack: ` + e.message + `
|
|
|
3741
3741
|
T = Xi(y, m.mode, T), T.return = m, m = T;
|
|
3742
3742
|
}
|
|
3743
3743
|
return c(m);
|
|
3744
|
-
case
|
|
3744
|
+
case G:
|
|
3745
3745
|
return R = y._init, y = R(y._payload), bl(
|
|
3746
3746
|
m,
|
|
3747
3747
|
d,
|
|
@@ -3793,9 +3793,9 @@ Error generating stack: ` + e.message + `
|
|
|
3793
3793
|
T
|
|
3794
3794
|
);
|
|
3795
3795
|
return ga = null, R;
|
|
3796
|
-
} catch (
|
|
3797
|
-
if (
|
|
3798
|
-
var el = ut(29,
|
|
3796
|
+
} catch (Y) {
|
|
3797
|
+
if (Y === en || Y === ou) throw Y;
|
|
3798
|
+
var el = ut(29, Y, null, m.mode);
|
|
3799
3799
|
return el.lanes = T, el.return = m, el;
|
|
3800
3800
|
} finally {
|
|
3801
3801
|
}
|
|
@@ -4187,25 +4187,25 @@ Error generating stack: ` + e.message + `
|
|
|
4187
4187
|
a,
|
|
4188
4188
|
o
|
|
4189
4189
|
), ue = !1, g = t.memoizedState, u.state = g, cn(t, a, u, n), un();
|
|
4190
|
-
var
|
|
4191
|
-
c !== N || g !==
|
|
4190
|
+
var p = t.memoizedState;
|
|
4191
|
+
c !== N || g !== p || ue || l !== null && l.dependencies !== null && fu(l.dependencies) ? (typeof f == "function" && (gc(
|
|
4192
4192
|
t,
|
|
4193
4193
|
e,
|
|
4194
4194
|
f,
|
|
4195
4195
|
a
|
|
4196
|
-
),
|
|
4196
|
+
), p = t.memoizedState), (A = ue || Qr(
|
|
4197
4197
|
t,
|
|
4198
4198
|
e,
|
|
4199
4199
|
A,
|
|
4200
4200
|
a,
|
|
4201
4201
|
g,
|
|
4202
|
-
|
|
4202
|
+
p,
|
|
4203
4203
|
o
|
|
4204
|
-
) || l !== null && l.dependencies !== null && fu(l.dependencies)) ? (v || typeof u.UNSAFE_componentWillUpdate != "function" && typeof u.componentWillUpdate != "function" || (typeof u.componentWillUpdate == "function" && u.componentWillUpdate(a,
|
|
4204
|
+
) || l !== null && l.dependencies !== null && fu(l.dependencies)) ? (v || typeof u.UNSAFE_componentWillUpdate != "function" && typeof u.componentWillUpdate != "function" || (typeof u.componentWillUpdate == "function" && u.componentWillUpdate(a, p, o), typeof u.UNSAFE_componentWillUpdate == "function" && u.UNSAFE_componentWillUpdate(
|
|
4205
4205
|
a,
|
|
4206
|
-
|
|
4206
|
+
p,
|
|
4207
4207
|
o
|
|
4208
|
-
)), typeof u.componentDidUpdate == "function" && (t.flags |= 4), typeof u.getSnapshotBeforeUpdate == "function" && (t.flags |= 1024)) : (typeof u.componentDidUpdate != "function" || c === l.memoizedProps && g === l.memoizedState || (t.flags |= 4), typeof u.getSnapshotBeforeUpdate != "function" || c === l.memoizedProps && g === l.memoizedState || (t.flags |= 1024), t.memoizedProps = a, t.memoizedState =
|
|
4208
|
+
)), typeof u.componentDidUpdate == "function" && (t.flags |= 4), typeof u.getSnapshotBeforeUpdate == "function" && (t.flags |= 1024)) : (typeof u.componentDidUpdate != "function" || c === l.memoizedProps && g === l.memoizedState || (t.flags |= 4), typeof u.getSnapshotBeforeUpdate != "function" || c === l.memoizedProps && g === l.memoizedState || (t.flags |= 1024), t.memoizedProps = a, t.memoizedState = p), u.props = a, u.state = p, u.context = o, a = A) : (typeof u.componentDidUpdate != "function" || c === l.memoizedProps && g === l.memoizedState || (t.flags |= 4), typeof u.getSnapshotBeforeUpdate != "function" || c === l.memoizedProps && g === l.memoizedState || (t.flags |= 1024), a = !1);
|
|
4209
4209
|
}
|
|
4210
4210
|
return u = a, Nu(l, t), a = (t.flags & 128) !== 0, u || a ? (u = t.stateNode, e = a && typeof e.getDerivedStateFromError != "function" ? null : u.render(), t.flags |= 1, l !== null && a ? (t.child = ba(
|
|
4211
4211
|
t,
|
|
@@ -5355,14 +5355,14 @@ Error generating stack: ` + e.message + `
|
|
|
5355
5355
|
}
|
|
5356
5356
|
var c = 0, f = -1, o = -1, v = 0, A = 0, N = l, g = null;
|
|
5357
5357
|
t: for (; ; ) {
|
|
5358
|
-
for (var
|
|
5359
|
-
g = N, N =
|
|
5358
|
+
for (var p; N !== e || n !== 0 && N.nodeType !== 3 || (f = c + n), N !== u || a !== 0 && N.nodeType !== 3 || (o = c + a), N.nodeType === 3 && (c += N.nodeValue.length), (p = N.firstChild) !== null; )
|
|
5359
|
+
g = N, N = p;
|
|
5360
5360
|
for (; ; ) {
|
|
5361
5361
|
if (N === l) break t;
|
|
5362
|
-
if (g === e && ++v === n && (f = c), g === u && ++A === a && (o = c), (
|
|
5362
|
+
if (g === e && ++v === n && (f = c), g === u && ++A === a && (o = c), (p = N.nextSibling) !== null) break;
|
|
5363
5363
|
N = g, g = N.parentNode;
|
|
5364
5364
|
}
|
|
5365
|
-
N =
|
|
5365
|
+
N = p;
|
|
5366
5366
|
}
|
|
5367
5367
|
e = f === -1 || o === -1 ? null : { start: f, end: o };
|
|
5368
5368
|
} else e = null;
|
|
@@ -5801,8 +5801,8 @@ Error generating stack: ` + e.message + `
|
|
|
5801
5801
|
n = l.stateNode;
|
|
5802
5802
|
try {
|
|
5803
5803
|
ta(n, "");
|
|
5804
|
-
} catch (
|
|
5805
|
-
pl(l, l.return,
|
|
5804
|
+
} catch (p) {
|
|
5805
|
+
pl(l, l.return, p);
|
|
5806
5806
|
}
|
|
5807
5807
|
}
|
|
5808
5808
|
a & 4 && l.stateNode != null && (n = l.memoizedProps, Dc(
|
|
@@ -5818,8 +5818,8 @@ Error generating stack: ` + e.message + `
|
|
|
5818
5818
|
a = l.memoizedProps, e = l.stateNode;
|
|
5819
5819
|
try {
|
|
5820
5820
|
e.nodeValue = a;
|
|
5821
|
-
} catch (
|
|
5822
|
-
pl(l, l.return,
|
|
5821
|
+
} catch (p) {
|
|
5822
|
+
pl(l, l.return, p);
|
|
5823
5823
|
}
|
|
5824
5824
|
}
|
|
5825
5825
|
break;
|
|
@@ -5827,8 +5827,8 @@ Error generating stack: ` + e.message + `
|
|
|
5827
5827
|
if (Lu = null, n = St, St = Ku(t.containerInfo), it(t, l), St = n, ct(l), a & 4 && e !== null && e.memoizedState.isDehydrated)
|
|
5828
5828
|
try {
|
|
5829
5829
|
Rn(t.containerInfo);
|
|
5830
|
-
} catch (
|
|
5831
|
-
pl(l, l.return,
|
|
5830
|
+
} catch (p) {
|
|
5831
|
+
pl(l, l.return, p);
|
|
5832
5832
|
}
|
|
5833
5833
|
jc && (jc = !1, vo(l));
|
|
5834
5834
|
break;
|
|
@@ -5859,8 +5859,8 @@ Error generating stack: ` + e.message + `
|
|
|
5859
5859
|
var N = o.memoizedProps.style, g = N != null && N.hasOwnProperty("display") ? N.display : null;
|
|
5860
5860
|
f.style.display = g == null || typeof g == "boolean" ? "" : ("" + g).trim();
|
|
5861
5861
|
}
|
|
5862
|
-
} catch (
|
|
5863
|
-
pl(o, o.return,
|
|
5862
|
+
} catch (p) {
|
|
5863
|
+
pl(o, o.return, p);
|
|
5864
5864
|
}
|
|
5865
5865
|
}
|
|
5866
5866
|
} else if (t.tag === 6) {
|
|
@@ -5868,8 +5868,8 @@ Error generating stack: ` + e.message + `
|
|
|
5868
5868
|
o = t;
|
|
5869
5869
|
try {
|
|
5870
5870
|
o.stateNode.nodeValue = n ? "" : o.memoizedProps;
|
|
5871
|
-
} catch (
|
|
5872
|
-
pl(o, o.return,
|
|
5871
|
+
} catch (p) {
|
|
5872
|
+
pl(o, o.return, p);
|
|
5873
5873
|
}
|
|
5874
5874
|
}
|
|
5875
5875
|
} else if ((t.tag !== 22 && t.tag !== 23 || t.memoizedState === null || t === l) && t.child !== null) {
|
|
@@ -6562,7 +6562,7 @@ Error generating stack: ` + e.message + `
|
|
|
6562
6562
|
} while (!0);
|
|
6563
6563
|
Mt(l);
|
|
6564
6564
|
}
|
|
6565
|
-
function Eo(l, t, e, a, n, u, c, f, o, v, A, N, g,
|
|
6565
|
+
function Eo(l, t, e, a, n, u, c, f, o, v, A, N, g, p) {
|
|
6566
6566
|
if (l.timeoutHandle = -1, N = t.subtreeFlags, (N & 8192 || (N & 16785408) === 16785408) && (Mn = { stylesheets: null, count: 0, unsuspend: t_ }, bo(t), N = a_(), N !== null)) {
|
|
6567
6567
|
l.cancelPendingCommit = N(
|
|
6568
6568
|
Ro.bind(
|
|
@@ -6579,7 +6579,7 @@ Error generating stack: ` + e.message + `
|
|
|
6579
6579
|
A,
|
|
6580
6580
|
1,
|
|
6581
6581
|
g,
|
|
6582
|
-
|
|
6582
|
+
p
|
|
6583
6583
|
)
|
|
6584
6584
|
), ge(l, u, c, !v);
|
|
6585
6585
|
return;
|
|
@@ -6956,8 +6956,8 @@ Error generating stack: ` + e.message + `
|
|
|
6956
6956
|
else {
|
|
6957
6957
|
var N = f.ownerDocument || document, g = N && N.defaultView || window;
|
|
6958
6958
|
if (g.getSelection) {
|
|
6959
|
-
var
|
|
6960
|
-
!
|
|
6959
|
+
var p = g.getSelection(), L = f.textContent.length, V = Math.min(o.start, L), bl = o.end === void 0 ? V : Math.min(o.end, L);
|
|
6960
|
+
!p.extend && V > bl && (c = bl, bl = V, V = c);
|
|
6961
6961
|
var m = bs(
|
|
6962
6962
|
f,
|
|
6963
6963
|
V
|
|
@@ -6965,18 +6965,18 @@ Error generating stack: ` + e.message + `
|
|
|
6965
6965
|
f,
|
|
6966
6966
|
bl
|
|
6967
6967
|
);
|
|
6968
|
-
if (m && d && (
|
|
6968
|
+
if (m && d && (p.rangeCount !== 1 || p.anchorNode !== m.node || p.anchorOffset !== m.offset || p.focusNode !== d.node || p.focusOffset !== d.offset)) {
|
|
6969
6969
|
var y = N.createRange();
|
|
6970
|
-
y.setStart(m.node, m.offset),
|
|
6970
|
+
y.setStart(m.node, m.offset), p.removeAllRanges(), V > bl ? (p.addRange(y), p.extend(d.node, d.offset)) : (y.setEnd(d.node, d.offset), p.addRange(y));
|
|
6971
6971
|
}
|
|
6972
6972
|
}
|
|
6973
6973
|
}
|
|
6974
6974
|
}
|
|
6975
|
-
for (N = [],
|
|
6976
|
-
|
|
6977
|
-
element:
|
|
6978
|
-
left:
|
|
6979
|
-
top:
|
|
6975
|
+
for (N = [], p = f; p = p.parentNode; )
|
|
6976
|
+
p.nodeType === 1 && N.push({
|
|
6977
|
+
element: p,
|
|
6978
|
+
left: p.scrollLeft,
|
|
6979
|
+
top: p.scrollTop
|
|
6980
6980
|
});
|
|
6981
6981
|
for (typeof f.focus == "function" && f.focus(), f = 0; f < N.length; f++) {
|
|
6982
6982
|
var T = N[f];
|
|
@@ -7456,23 +7456,23 @@ Error generating stack: ` + e.message + `
|
|
|
7456
7456
|
l: {
|
|
7457
7457
|
var g = Ms.get(l);
|
|
7458
7458
|
if (g !== void 0) {
|
|
7459
|
-
var
|
|
7459
|
+
var p = Pn, L = l;
|
|
7460
7460
|
switch (l) {
|
|
7461
7461
|
case "keypress":
|
|
7462
7462
|
if (Fn(e) === 0) break l;
|
|
7463
7463
|
case "keydown":
|
|
7464
7464
|
case "keyup":
|
|
7465
|
-
|
|
7465
|
+
p = Nm;
|
|
7466
7466
|
break;
|
|
7467
7467
|
case "focusin":
|
|
7468
|
-
L = "focus",
|
|
7468
|
+
L = "focus", p = zi;
|
|
7469
7469
|
break;
|
|
7470
7470
|
case "focusout":
|
|
7471
|
-
L = "blur",
|
|
7471
|
+
L = "blur", p = zi;
|
|
7472
7472
|
break;
|
|
7473
7473
|
case "beforeblur":
|
|
7474
7474
|
case "afterblur":
|
|
7475
|
-
|
|
7475
|
+
p = zi;
|
|
7476
7476
|
break;
|
|
7477
7477
|
case "click":
|
|
7478
7478
|
if (e.button === 2) break l;
|
|
@@ -7484,7 +7484,7 @@ Error generating stack: ` + e.message + `
|
|
|
7484
7484
|
case "mouseout":
|
|
7485
7485
|
case "mouseover":
|
|
7486
7486
|
case "contextmenu":
|
|
7487
|
-
|
|
7487
|
+
p = as;
|
|
7488
7488
|
break;
|
|
7489
7489
|
case "drag":
|
|
7490
7490
|
case "dragend":
|
|
@@ -7494,33 +7494,33 @@ Error generating stack: ` + e.message + `
|
|
|
7494
7494
|
case "dragover":
|
|
7495
7495
|
case "dragstart":
|
|
7496
7496
|
case "drop":
|
|
7497
|
-
|
|
7497
|
+
p = hm;
|
|
7498
7498
|
break;
|
|
7499
7499
|
case "touchcancel":
|
|
7500
7500
|
case "touchend":
|
|
7501
7501
|
case "touchmove":
|
|
7502
7502
|
case "touchstart":
|
|
7503
|
-
|
|
7503
|
+
p = Om;
|
|
7504
7504
|
break;
|
|
7505
7505
|
case Ts:
|
|
7506
7506
|
case zs:
|
|
7507
7507
|
case Es:
|
|
7508
|
-
|
|
7508
|
+
p = gm;
|
|
7509
7509
|
break;
|
|
7510
7510
|
case Ns:
|
|
7511
|
-
|
|
7511
|
+
p = jm;
|
|
7512
7512
|
break;
|
|
7513
7513
|
case "scroll":
|
|
7514
7514
|
case "scrollend":
|
|
7515
|
-
|
|
7515
|
+
p = mm;
|
|
7516
7516
|
break;
|
|
7517
7517
|
case "wheel":
|
|
7518
|
-
|
|
7518
|
+
p = Bm;
|
|
7519
7519
|
break;
|
|
7520
7520
|
case "copy":
|
|
7521
7521
|
case "cut":
|
|
7522
7522
|
case "paste":
|
|
7523
|
-
|
|
7523
|
+
p = pm;
|
|
7524
7524
|
break;
|
|
7525
7525
|
case "gotpointercapture":
|
|
7526
7526
|
case "lostpointercapture":
|
|
@@ -7530,11 +7530,11 @@ Error generating stack: ` + e.message + `
|
|
|
7530
7530
|
case "pointerout":
|
|
7531
7531
|
case "pointerover":
|
|
7532
7532
|
case "pointerup":
|
|
7533
|
-
|
|
7533
|
+
p = us;
|
|
7534
7534
|
break;
|
|
7535
7535
|
case "toggle":
|
|
7536
7536
|
case "beforetoggle":
|
|
7537
|
-
|
|
7537
|
+
p = Qm;
|
|
7538
7538
|
}
|
|
7539
7539
|
var V = (t & 4) !== 0, bl = !V && (l === "scroll" || l === "scrollend"), m = V ? g !== null ? g + "Capture" : null : g;
|
|
7540
7540
|
V = [];
|
|
@@ -7545,7 +7545,7 @@ Error generating stack: ` + e.message + `
|
|
|
7545
7545
|
)), bl) break;
|
|
7546
7546
|
d = d.return;
|
|
7547
7547
|
}
|
|
7548
|
-
0 < V.length && (g = new
|
|
7548
|
+
0 < V.length && (g = new p(
|
|
7549
7549
|
g,
|
|
7550
7550
|
L,
|
|
7551
7551
|
null,
|
|
@@ -7556,13 +7556,13 @@ Error generating stack: ` + e.message + `
|
|
|
7556
7556
|
}
|
|
7557
7557
|
if ((t & 7) === 0) {
|
|
7558
7558
|
l: {
|
|
7559
|
-
if (g = l === "mouseover" || l === "pointerover",
|
|
7559
|
+
if (g = l === "mouseover" || l === "pointerover", p = l === "mouseout" || l === "pointerout", g && e !== gi && (L = e.relatedTarget || e.fromElement) && ($e(L) || L[ke]))
|
|
7560
7560
|
break l;
|
|
7561
|
-
if ((
|
|
7562
|
-
if (V = as, T = "onMouseLeave", m = "onMouseEnter", d = "mouse", (l === "pointerout" || l === "pointerover") && (V = us, T = "onPointerLeave", m = "onPointerEnter", d = "pointer"), bl =
|
|
7561
|
+
if ((p || g) && (g = A.window === A ? A : (g = A.ownerDocument) ? g.defaultView || g.parentWindow : window, p ? (L = e.relatedTarget || e.toElement, p = v, L = L ? $e(L) : null, L !== null && (bl = E(L), V = L.tag, L !== bl || V !== 5 && V !== 27 && V !== 6) && (L = null)) : (p = null, L = v), p !== L)) {
|
|
7562
|
+
if (V = as, T = "onMouseLeave", m = "onMouseEnter", d = "mouse", (l === "pointerout" || l === "pointerover") && (V = us, T = "onPointerLeave", m = "onPointerEnter", d = "pointer"), bl = p == null ? g : Za(p), y = L == null ? g : Za(L), g = new V(
|
|
7563
7563
|
T,
|
|
7564
7564
|
d + "leave",
|
|
7565
|
-
|
|
7565
|
+
p,
|
|
7566
7566
|
e,
|
|
7567
7567
|
A
|
|
7568
7568
|
), g.target = bl, g.relatedTarget = y, T = null, $e(A) === v && (V = new V(
|
|
@@ -7571,9 +7571,9 @@ Error generating stack: ` + e.message + `
|
|
|
7571
7571
|
L,
|
|
7572
7572
|
e,
|
|
7573
7573
|
A
|
|
7574
|
-
), V.target = y, V.relatedTarget = bl, T = V), bl = T,
|
|
7574
|
+
), V.target = y, V.relatedTarget = bl, T = V), bl = T, p && L)
|
|
7575
7575
|
t: {
|
|
7576
|
-
for (V =
|
|
7576
|
+
for (V = p, m = L, d = 0, y = V; y; y = Da(y))
|
|
7577
7577
|
d++;
|
|
7578
7578
|
for (y = 0, T = m; T; T = Da(T))
|
|
7579
7579
|
y++;
|
|
@@ -7589,10 +7589,10 @@ Error generating stack: ` + e.message + `
|
|
|
7589
7589
|
V = null;
|
|
7590
7590
|
}
|
|
7591
7591
|
else V = null;
|
|
7592
|
-
|
|
7592
|
+
p !== null && $o(
|
|
7593
7593
|
N,
|
|
7594
7594
|
g,
|
|
7595
|
-
|
|
7595
|
+
p,
|
|
7596
7596
|
V,
|
|
7597
7597
|
!1
|
|
7598
7598
|
), L !== null && bl !== null && $o(
|
|
@@ -7605,7 +7605,7 @@ Error generating stack: ` + e.message + `
|
|
|
7605
7605
|
}
|
|
7606
7606
|
}
|
|
7607
7607
|
l: {
|
|
7608
|
-
if (g = v ? Za(v) : window,
|
|
7608
|
+
if (g = v ? Za(v) : window, p = g.nodeName && g.nodeName.toLowerCase(), p === "select" || p === "input" && g.type === "file")
|
|
7609
7609
|
var R = ms;
|
|
7610
7610
|
else if (os(g))
|
|
7611
7611
|
if (_s)
|
|
@@ -7615,7 +7615,7 @@ Error generating stack: ` + e.message + `
|
|
|
7615
7615
|
var el = Km;
|
|
7616
7616
|
}
|
|
7617
7617
|
else
|
|
7618
|
-
|
|
7618
|
+
p = g.nodeName, !p || p.toLowerCase() !== "input" || g.type !== "checkbox" && g.type !== "radio" ? v && vi(v.elementType) && (R = ms) : R = Lm;
|
|
7619
7619
|
if (R && (R = R(l, v))) {
|
|
7620
7620
|
ds(
|
|
7621
7621
|
N,
|
|
@@ -7648,7 +7648,7 @@ Error generating stack: ` + e.message + `
|
|
|
7648
7648
|
case "keyup":
|
|
7649
7649
|
As(N, e, A);
|
|
7650
7650
|
}
|
|
7651
|
-
var
|
|
7651
|
+
var Y;
|
|
7652
7652
|
if (Ni)
|
|
7653
7653
|
l: {
|
|
7654
7654
|
switch (l) {
|
|
@@ -7666,13 +7666,13 @@ Error generating stack: ` + e.message + `
|
|
|
7666
7666
|
}
|
|
7667
7667
|
else
|
|
7668
7668
|
na ? ss(l, e) && (K = "onCompositionEnd") : l === "keydown" && e.keyCode === 229 && (K = "onCompositionStart");
|
|
7669
|
-
K && (is && e.locale !== "ko" && (na || K !== "onCompositionStart" ? K === "onCompositionEnd" && na && (
|
|
7669
|
+
K && (is && e.locale !== "ko" && (na || K !== "onCompositionStart" ? K === "onCompositionEnd" && na && (Y = ts()) : (ae = A, Ai = "value" in ae ? ae.value : ae.textContent, na = !0)), el = Zu(v, K), 0 < el.length && (K = new ns(
|
|
7670
7670
|
K,
|
|
7671
7671
|
l,
|
|
7672
7672
|
null,
|
|
7673
7673
|
e,
|
|
7674
7674
|
A
|
|
7675
|
-
), N.push({ event: K, listeners: el }),
|
|
7675
|
+
), N.push({ event: K, listeners: el }), Y ? K.data = Y : (Y = rs(e), Y !== null && (K.data = Y)))), (Y = Gm ? Xm(l, e) : Zm(l, e)) && (K = Zu(v, "onBeforeInput"), 0 < K.length && (el = new ns(
|
|
7676
7676
|
"onBeforeInput",
|
|
7677
7677
|
"beforeinput",
|
|
7678
7678
|
null,
|
|
@@ -7681,7 +7681,7 @@ Error generating stack: ` + e.message + `
|
|
|
7681
7681
|
), N.push({
|
|
7682
7682
|
event: el,
|
|
7683
7683
|
listeners: K
|
|
7684
|
-
}), el.data =
|
|
7684
|
+
}), el.data = Y)), O0(
|
|
7685
7685
|
N,
|
|
7686
7686
|
l,
|
|
7687
7687
|
v,
|
|
@@ -8244,10 +8244,10 @@ Error generating stack: ` + e.message + `
|
|
|
8244
8244
|
break;
|
|
8245
8245
|
case "input":
|
|
8246
8246
|
var n = null, u = null, c = null, f = null, o = null, v = null, A = null;
|
|
8247
|
-
for (
|
|
8248
|
-
var N = e[
|
|
8249
|
-
if (e.hasOwnProperty(
|
|
8250
|
-
switch (
|
|
8247
|
+
for (p in e) {
|
|
8248
|
+
var N = e[p];
|
|
8249
|
+
if (e.hasOwnProperty(p) && N != null)
|
|
8250
|
+
switch (p) {
|
|
8251
8251
|
case "checked":
|
|
8252
8252
|
break;
|
|
8253
8253
|
case "value":
|
|
@@ -8255,42 +8255,42 @@ Error generating stack: ` + e.message + `
|
|
|
8255
8255
|
case "defaultValue":
|
|
8256
8256
|
o = N;
|
|
8257
8257
|
default:
|
|
8258
|
-
a.hasOwnProperty(
|
|
8258
|
+
a.hasOwnProperty(p) || gl(l, t, p, null, a, N);
|
|
8259
8259
|
}
|
|
8260
8260
|
}
|
|
8261
8261
|
for (var g in a) {
|
|
8262
|
-
var
|
|
8263
|
-
if (N = e[g], a.hasOwnProperty(g) && (
|
|
8262
|
+
var p = a[g];
|
|
8263
|
+
if (N = e[g], a.hasOwnProperty(g) && (p != null || N != null))
|
|
8264
8264
|
switch (g) {
|
|
8265
8265
|
case "type":
|
|
8266
|
-
u =
|
|
8266
|
+
u = p;
|
|
8267
8267
|
break;
|
|
8268
8268
|
case "name":
|
|
8269
|
-
n =
|
|
8269
|
+
n = p;
|
|
8270
8270
|
break;
|
|
8271
8271
|
case "checked":
|
|
8272
|
-
v =
|
|
8272
|
+
v = p;
|
|
8273
8273
|
break;
|
|
8274
8274
|
case "defaultChecked":
|
|
8275
|
-
A =
|
|
8275
|
+
A = p;
|
|
8276
8276
|
break;
|
|
8277
8277
|
case "value":
|
|
8278
|
-
c =
|
|
8278
|
+
c = p;
|
|
8279
8279
|
break;
|
|
8280
8280
|
case "defaultValue":
|
|
8281
|
-
f =
|
|
8281
|
+
f = p;
|
|
8282
8282
|
break;
|
|
8283
8283
|
case "children":
|
|
8284
8284
|
case "dangerouslySetInnerHTML":
|
|
8285
|
-
if (
|
|
8285
|
+
if (p != null)
|
|
8286
8286
|
throw Error(s(137, t));
|
|
8287
8287
|
break;
|
|
8288
8288
|
default:
|
|
8289
|
-
|
|
8289
|
+
p !== N && gl(
|
|
8290
8290
|
l,
|
|
8291
8291
|
t,
|
|
8292
8292
|
g,
|
|
8293
|
-
|
|
8293
|
+
p,
|
|
8294
8294
|
a,
|
|
8295
8295
|
N
|
|
8296
8296
|
);
|
|
@@ -8308,14 +8308,14 @@ Error generating stack: ` + e.message + `
|
|
|
8308
8308
|
);
|
|
8309
8309
|
return;
|
|
8310
8310
|
case "select":
|
|
8311
|
-
|
|
8311
|
+
p = c = f = g = null;
|
|
8312
8312
|
for (u in e)
|
|
8313
8313
|
if (o = e[u], e.hasOwnProperty(u) && o != null)
|
|
8314
8314
|
switch (u) {
|
|
8315
8315
|
case "value":
|
|
8316
8316
|
break;
|
|
8317
8317
|
case "multiple":
|
|
8318
|
-
|
|
8318
|
+
p = o;
|
|
8319
8319
|
default:
|
|
8320
8320
|
a.hasOwnProperty(u) || gl(
|
|
8321
8321
|
l,
|
|
@@ -8347,10 +8347,10 @@ Error generating stack: ` + e.message + `
|
|
|
8347
8347
|
o
|
|
8348
8348
|
);
|
|
8349
8349
|
}
|
|
8350
|
-
t = f, e = c, a =
|
|
8350
|
+
t = f, e = c, a = p, g != null ? la(l, !!e, g, !1) : !!a != !!e && (t != null ? la(l, !!e, t, !0) : la(l, !!e, e ? [] : "", !1));
|
|
8351
8351
|
return;
|
|
8352
8352
|
case "textarea":
|
|
8353
|
-
|
|
8353
|
+
p = g = null;
|
|
8354
8354
|
for (f in e)
|
|
8355
8355
|
if (n = e[f], e.hasOwnProperty(f) && n != null && !a.hasOwnProperty(f))
|
|
8356
8356
|
switch (f) {
|
|
@@ -8368,7 +8368,7 @@ Error generating stack: ` + e.message + `
|
|
|
8368
8368
|
g = n;
|
|
8369
8369
|
break;
|
|
8370
8370
|
case "defaultValue":
|
|
8371
|
-
|
|
8371
|
+
p = n;
|
|
8372
8372
|
break;
|
|
8373
8373
|
case "children":
|
|
8374
8374
|
break;
|
|
@@ -8378,7 +8378,7 @@ Error generating stack: ` + e.message + `
|
|
|
8378
8378
|
default:
|
|
8379
8379
|
n !== u && gl(l, t, c, n, a, u);
|
|
8380
8380
|
}
|
|
8381
|
-
$f(l, g,
|
|
8381
|
+
$f(l, g, p);
|
|
8382
8382
|
return;
|
|
8383
8383
|
case "option":
|
|
8384
8384
|
for (var L in e)
|
|
@@ -8398,7 +8398,7 @@ Error generating stack: ` + e.message + `
|
|
|
8398
8398
|
);
|
|
8399
8399
|
}
|
|
8400
8400
|
for (o in a)
|
|
8401
|
-
if (g = a[o],
|
|
8401
|
+
if (g = a[o], p = e[o], a.hasOwnProperty(o) && g !== p && (g != null || p != null))
|
|
8402
8402
|
switch (o) {
|
|
8403
8403
|
case "selected":
|
|
8404
8404
|
l.selected = g && typeof g != "function" && typeof g != "symbol";
|
|
@@ -8410,7 +8410,7 @@ Error generating stack: ` + e.message + `
|
|
|
8410
8410
|
o,
|
|
8411
8411
|
g,
|
|
8412
8412
|
a,
|
|
8413
|
-
|
|
8413
|
+
p
|
|
8414
8414
|
);
|
|
8415
8415
|
}
|
|
8416
8416
|
return;
|
|
@@ -8432,7 +8432,7 @@ Error generating stack: ` + e.message + `
|
|
|
8432
8432
|
for (var V in e)
|
|
8433
8433
|
g = e[V], e.hasOwnProperty(V) && g != null && !a.hasOwnProperty(V) && gl(l, t, V, null, a, g);
|
|
8434
8434
|
for (v in a)
|
|
8435
|
-
if (g = a[v],
|
|
8435
|
+
if (g = a[v], p = e[v], a.hasOwnProperty(v) && g !== p && (g != null || p != null))
|
|
8436
8436
|
switch (v) {
|
|
8437
8437
|
case "children":
|
|
8438
8438
|
case "dangerouslySetInnerHTML":
|
|
@@ -8446,7 +8446,7 @@ Error generating stack: ` + e.message + `
|
|
|
8446
8446
|
v,
|
|
8447
8447
|
g,
|
|
8448
8448
|
a,
|
|
8449
|
-
|
|
8449
|
+
p
|
|
8450
8450
|
);
|
|
8451
8451
|
}
|
|
8452
8452
|
return;
|
|
@@ -8462,13 +8462,13 @@ Error generating stack: ` + e.message + `
|
|
|
8462
8462
|
g
|
|
8463
8463
|
);
|
|
8464
8464
|
for (A in a)
|
|
8465
|
-
g = a[A],
|
|
8465
|
+
g = a[A], p = e[A], !a.hasOwnProperty(A) || g === p || g === void 0 && p === void 0 || tf(
|
|
8466
8466
|
l,
|
|
8467
8467
|
t,
|
|
8468
8468
|
A,
|
|
8469
8469
|
g,
|
|
8470
8470
|
a,
|
|
8471
|
-
|
|
8471
|
+
p
|
|
8472
8472
|
);
|
|
8473
8473
|
return;
|
|
8474
8474
|
}
|
|
@@ -8476,7 +8476,7 @@ Error generating stack: ` + e.message + `
|
|
|
8476
8476
|
for (var m in e)
|
|
8477
8477
|
g = e[m], e.hasOwnProperty(m) && g != null && !a.hasOwnProperty(m) && gl(l, t, m, null, a, g);
|
|
8478
8478
|
for (N in a)
|
|
8479
|
-
g = a[N],
|
|
8479
|
+
g = a[N], p = e[N], !a.hasOwnProperty(N) || g === p || g == null && p == null || gl(l, t, N, g, a, p);
|
|
8480
8480
|
}
|
|
8481
8481
|
var ef = null, af = null;
|
|
8482
8482
|
function Vu(l) {
|
|
@@ -9605,7 +9605,7 @@ Error generating stack: ` + e.message + `
|
|
|
9605
9605
|
}
|
|
9606
9606
|
}
|
|
9607
9607
|
return Bn.createRoot = function(l, t) {
|
|
9608
|
-
if (!
|
|
9608
|
+
if (!b(l)) throw Error(s(299));
|
|
9609
9609
|
var e = !1, a = "", n = Gr, u = Xr, c = Zr, f = null;
|
|
9610
9610
|
return t != null && (t.unstable_strictMode === !0 && (e = !0), t.identifierPrefix !== void 0 && (a = t.identifierPrefix), t.onUncaughtError !== void 0 && (n = t.onUncaughtError), t.onCaughtError !== void 0 && (u = t.onCaughtError), t.onRecoverableError !== void 0 && (c = t.onRecoverableError), t.unstable_transitionCallbacks !== void 0 && (f = t.unstable_transitionCallbacks)), t = md(
|
|
9611
9611
|
l,
|
|
@@ -9622,7 +9622,7 @@ Error generating stack: ` + e.message + `
|
|
|
9622
9622
|
null
|
|
9623
9623
|
), l[ke] = t.current, Pc(l), new gf(t);
|
|
9624
9624
|
}, Bn.hydrateRoot = function(l, t, e) {
|
|
9625
|
-
if (!
|
|
9625
|
+
if (!b(l)) throw Error(s(299));
|
|
9626
9626
|
var a = !1, n = "", u = Gr, c = Xr, f = Zr, o = null, v = null;
|
|
9627
9627
|
return e != null && (e.unstable_strictMode === !0 && (a = !0), e.identifierPrefix !== void 0 && (n = e.identifierPrefix), e.onUncaughtError !== void 0 && (u = e.onUncaughtError), e.onCaughtError !== void 0 && (c = e.onCaughtError), e.onRecoverableError !== void 0 && (f = e.onRecoverableError), e.unstable_transitionCallbacks !== void 0 && (o = e.unstable_transitionCallbacks), e.formState !== void 0 && (v = e.formState)), t = md(
|
|
9628
9628
|
l,
|
|
@@ -9669,19 +9669,19 @@ function A_() {
|
|
|
9669
9669
|
if (Md) return Hn;
|
|
9670
9670
|
Md = 1;
|
|
9671
9671
|
var i = Symbol.for("react.transitional.element"), r = Symbol.for("react.fragment");
|
|
9672
|
-
function _(h, s,
|
|
9672
|
+
function _(h, s, b) {
|
|
9673
9673
|
var E = null;
|
|
9674
|
-
if (
|
|
9675
|
-
|
|
9674
|
+
if (b !== void 0 && (E = "" + b), s.key !== void 0 && (E = "" + s.key), "key" in s) {
|
|
9675
|
+
b = {};
|
|
9676
9676
|
for (var x in s)
|
|
9677
|
-
x !== "key" && (
|
|
9678
|
-
} else
|
|
9679
|
-
return s =
|
|
9677
|
+
x !== "key" && (b[x] = s[x]);
|
|
9678
|
+
} else b = s;
|
|
9679
|
+
return s = b.ref, {
|
|
9680
9680
|
$$typeof: i,
|
|
9681
9681
|
type: h,
|
|
9682
9682
|
key: E,
|
|
9683
9683
|
ref: s !== void 0 ? s : null,
|
|
9684
|
-
props:
|
|
9684
|
+
props: b
|
|
9685
9685
|
};
|
|
9686
9686
|
}
|
|
9687
9687
|
return Hn.Fragment = r, Hn.jsx = _, Hn.jsxs = _, Hn;
|
|
@@ -9691,8 +9691,8 @@ function x_() {
|
|
|
9691
9691
|
return Dd || (Dd = 1, Af.exports = A_()), Af.exports;
|
|
9692
9692
|
}
|
|
9693
9693
|
var S = x_();
|
|
9694
|
-
function Ot({ id: i, label: r, hint: _, error: h, required: s, className:
|
|
9695
|
-
return /* @__PURE__ */ S.jsxs("div", { className:
|
|
9694
|
+
function Ot({ id: i, label: r, hint: _, error: h, required: s, className: b, children: E }) {
|
|
9695
|
+
return /* @__PURE__ */ S.jsxs("div", { className: b, children: [
|
|
9696
9696
|
/* @__PURE__ */ S.jsxs("label", { htmlFor: i, className: "form-label", children: [
|
|
9697
9697
|
r,
|
|
9698
9698
|
" ",
|
|
@@ -9703,8 +9703,8 @@ function Ot({ id: i, label: r, hint: _, error: h, required: s, className: p, chi
|
|
|
9703
9703
|
h && /* @__PURE__ */ S.jsx("p", { id: `${i}-error`, className: "mt-1 text-sm text-red-600", children: h })
|
|
9704
9704
|
] });
|
|
9705
9705
|
}
|
|
9706
|
-
function T_({ id: i, label: r, hint: _, error: h, required: s, className:
|
|
9707
|
-
return /* @__PURE__ */ S.jsx(Ot, { id: i, label: r, hint: _, error: h, required: s, className:
|
|
9706
|
+
function T_({ id: i, label: r, hint: _, error: h, required: s, className: b, ...E }) {
|
|
9707
|
+
return /* @__PURE__ */ S.jsx(Ot, { id: i, label: r, hint: _, error: h, required: s, className: b, children: /* @__PURE__ */ S.jsx(
|
|
9708
9708
|
"input",
|
|
9709
9709
|
{
|
|
9710
9710
|
id: i,
|
|
@@ -9717,8 +9717,8 @@ function T_({ id: i, label: r, hint: _, error: h, required: s, className: p, ...
|
|
|
9717
9717
|
}
|
|
9718
9718
|
) });
|
|
9719
9719
|
}
|
|
9720
|
-
function z_({ id: i, label: r, hint: _, error: h, required: s, className:
|
|
9721
|
-
return /* @__PURE__ */ S.jsx(Ot, { id: i, label: r, hint: _, error: h, required: s, className:
|
|
9720
|
+
function z_({ id: i, label: r, hint: _, error: h, required: s, className: b, ...E }) {
|
|
9721
|
+
return /* @__PURE__ */ S.jsx(Ot, { id: i, label: r, hint: _, error: h, required: s, className: b, children: /* @__PURE__ */ S.jsx(
|
|
9722
9722
|
"input",
|
|
9723
9723
|
{
|
|
9724
9724
|
id: i,
|
|
@@ -9731,8 +9731,8 @@ function z_({ id: i, label: r, hint: _, error: h, required: s, className: p, ...
|
|
|
9731
9731
|
}
|
|
9732
9732
|
) });
|
|
9733
9733
|
}
|
|
9734
|
-
function E_({ id: i, label: r, hint: _, error: h, required: s, className:
|
|
9735
|
-
return /* @__PURE__ */ S.jsx(Ot, { id: i, label: r, hint: _, error: h, required: s, className:
|
|
9734
|
+
function E_({ id: i, label: r, hint: _, error: h, required: s, className: b, ...E }) {
|
|
9735
|
+
return /* @__PURE__ */ S.jsx(Ot, { id: i, label: r, hint: _, error: h, required: s, className: b, children: /* @__PURE__ */ S.jsx(
|
|
9736
9736
|
"input",
|
|
9737
9737
|
{
|
|
9738
9738
|
id: i,
|
|
@@ -9747,8 +9747,8 @@ function E_({ id: i, label: r, hint: _, error: h, required: s, className: p, ...
|
|
|
9747
9747
|
}
|
|
9748
9748
|
) });
|
|
9749
9749
|
}
|
|
9750
|
-
function N_({ id: i, label: r, hint: _, error: h, required: s, className:
|
|
9751
|
-
return /* @__PURE__ */ S.jsx(Ot, { id: i, label: r, hint: _, error: h, required: s, className:
|
|
9750
|
+
function N_({ id: i, label: r, hint: _, error: h, required: s, className: b, ...E }) {
|
|
9751
|
+
return /* @__PURE__ */ S.jsx(Ot, { id: i, label: r, hint: _, error: h, required: s, className: b, children: /* @__PURE__ */ S.jsx(
|
|
9752
9752
|
"input",
|
|
9753
9753
|
{
|
|
9754
9754
|
id: i,
|
|
@@ -9763,8 +9763,8 @@ function N_({ id: i, label: r, hint: _, error: h, required: s, className: p, ...
|
|
|
9763
9763
|
}
|
|
9764
9764
|
) });
|
|
9765
9765
|
}
|
|
9766
|
-
function M_({ id: i, label: r, hint: _, error: h, required: s, className:
|
|
9767
|
-
return /* @__PURE__ */ S.jsx(Ot, { id: i, label: r, hint: _, error: h, required: s, className:
|
|
9766
|
+
function M_({ id: i, label: r, hint: _, error: h, required: s, className: b, ...E }) {
|
|
9767
|
+
return /* @__PURE__ */ S.jsx(Ot, { id: i, label: r, hint: _, error: h, required: s, className: b, children: /* @__PURE__ */ S.jsx(
|
|
9768
9768
|
"input",
|
|
9769
9769
|
{
|
|
9770
9770
|
id: i,
|
|
@@ -9779,8 +9779,8 @@ function M_({ id: i, label: r, hint: _, error: h, required: s, className: p, ...
|
|
|
9779
9779
|
}
|
|
9780
9780
|
) });
|
|
9781
9781
|
}
|
|
9782
|
-
function D_({ id: i, label: r, hint: _, error: h, required: s, className:
|
|
9783
|
-
return /* @__PURE__ */ S.jsx(Ot, { id: i, label: r, hint: _, error: h, required: s, className:
|
|
9782
|
+
function D_({ id: i, label: r, hint: _, error: h, required: s, className: b, ...E }) {
|
|
9783
|
+
return /* @__PURE__ */ S.jsx(Ot, { id: i, label: r, hint: _, error: h, required: s, className: b, children: /* @__PURE__ */ S.jsx(
|
|
9784
9784
|
"input",
|
|
9785
9785
|
{
|
|
9786
9786
|
id: i,
|
|
@@ -9794,8 +9794,8 @@ function D_({ id: i, label: r, hint: _, error: h, required: s, className: p, ...
|
|
|
9794
9794
|
}
|
|
9795
9795
|
) });
|
|
9796
9796
|
}
|
|
9797
|
-
function O_({ id: i, label: r, hint: _, error: h, required: s, className:
|
|
9798
|
-
return /* @__PURE__ */ S.jsx(Ot, { id: i, label: r, hint: _, error: h, required: s, className:
|
|
9797
|
+
function O_({ id: i, label: r, hint: _, error: h, required: s, className: b, rows: E = 4, ...x }) {
|
|
9798
|
+
return /* @__PURE__ */ S.jsx(Ot, { id: i, label: r, hint: _, error: h, required: s, className: b, children: /* @__PURE__ */ S.jsx(
|
|
9799
9799
|
"textarea",
|
|
9800
9800
|
{
|
|
9801
9801
|
id: i,
|
|
@@ -9808,8 +9808,8 @@ function O_({ id: i, label: r, hint: _, error: h, required: s, className: p, row
|
|
|
9808
9808
|
}
|
|
9809
9809
|
) });
|
|
9810
9810
|
}
|
|
9811
|
-
function U_({ id: i, label: r, hint: _, error: h, required: s, className:
|
|
9812
|
-
return /* @__PURE__ */ S.jsx(Ot, { id: i, label: r, hint: _, error: h, required: s, className:
|
|
9811
|
+
function U_({ id: i, label: r, hint: _, error: h, required: s, className: b, ...E }) {
|
|
9812
|
+
return /* @__PURE__ */ S.jsx(Ot, { id: i, label: r, hint: _, error: h, required: s, className: b, children: /* @__PURE__ */ S.jsx(
|
|
9813
9813
|
"input",
|
|
9814
9814
|
{
|
|
9815
9815
|
id: i,
|
|
@@ -9852,9 +9852,9 @@ function R_({
|
|
|
9852
9852
|
/* @__PURE__ */ S.jsx("div", { className: "grid grid-cols-1 gap-4 sm:grid-cols-2", children: r })
|
|
9853
9853
|
] });
|
|
9854
9854
|
}
|
|
9855
|
-
function B_({ id: i, label: r, hint: _, error: h, required: s, className:
|
|
9855
|
+
function B_({ id: i, label: r, hint: _, error: h, required: s, className: b, placeholder: E, options: x, children: j, ...X }) {
|
|
9856
9856
|
const tl = [_ ? `${i}-hint` : null, h ? `${i}-error` : null].filter(Boolean).join(" ") || void 0, D = !!j;
|
|
9857
|
-
return /* @__PURE__ */ S.jsx(Ot, { id: i, label: r, hint: _, error: h, required: s, className:
|
|
9857
|
+
return /* @__PURE__ */ S.jsx(Ot, { id: i, label: r, hint: _, error: h, required: s, className: b, children: /* @__PURE__ */ S.jsxs(
|
|
9858
9858
|
"select",
|
|
9859
9859
|
{
|
|
9860
9860
|
id: i,
|
|
@@ -9895,12 +9895,12 @@ function Y_(i) {
|
|
|
9895
9895
|
h.includes("street_number") && (r.streetNumber = _.long_name), h.includes("route") && (r.streetName = _.long_name), h.includes("locality") && (r.city = _.long_name), h.includes("administrative_area_level_1") && (r.state = _.short_name), h.includes("postal_code") && (r.zipCode = _.long_name), h.includes("country") && (r.country = _.short_name);
|
|
9896
9896
|
}), r;
|
|
9897
9897
|
}
|
|
9898
|
-
function G_({ id: i, label: r, hint: _, error: h, required: s, className:
|
|
9899
|
-
const tl = kt(null), D = kt(null), J = kt(null), ol = kt(null), [cl, $] = Hl(!0), [P, Tl] = Hl(j || ""), [B, q] = Hl([]), [U, H] = Hl(!1), [C, I] = Hl(-1), k = kt([]),
|
|
9898
|
+
function G_({ id: i, label: r, hint: _, error: h, required: s, className: b, onChange: E, onPlaceSelect: x, value: j, ...X }) {
|
|
9899
|
+
const tl = kt(null), D = kt(null), J = kt(null), ol = kt(null), [cl, $] = Hl(!0), [P, Tl] = Hl(j || ""), [B, q] = Hl([]), [U, H] = Hl(!1), [C, I] = Hl(-1), k = kt([]), G = kt(!1), w = kt(-1);
|
|
9900
9900
|
Vl(() => {
|
|
9901
9901
|
k.current = B;
|
|
9902
9902
|
}, [B]), Vl(() => {
|
|
9903
|
-
|
|
9903
|
+
G.current = U;
|
|
9904
9904
|
}, [U]), Vl(() => {
|
|
9905
9905
|
w.current = C;
|
|
9906
9906
|
}, [C]), Vl(() => {
|
|
@@ -9918,7 +9918,7 @@ function G_({ id: i, label: r, hint: _, error: h, required: s, className: p, onC
|
|
|
9918
9918
|
W = !1, Z.current && clearTimeout(Z.current);
|
|
9919
9919
|
};
|
|
9920
9920
|
}, []);
|
|
9921
|
-
const
|
|
9921
|
+
const Q = (W) => {
|
|
9922
9922
|
const z = W.target.value;
|
|
9923
9923
|
if (Tl(z), E?.(z), Z.current && clearTimeout(Z.current), z.length < 3) {
|
|
9924
9924
|
q([]), H(!1);
|
|
@@ -9936,8 +9936,8 @@ function G_({ id: i, label: r, hint: _, error: h, required: s, className: p, onC
|
|
|
9936
9936
|
);
|
|
9937
9937
|
}, 300);
|
|
9938
9938
|
}, dl = (W) => {
|
|
9939
|
-
if (!
|
|
9940
|
-
W.key === "Escape" && (H(!1),
|
|
9939
|
+
if (!G.current || k.current.length === 0) {
|
|
9940
|
+
W.key === "Escape" && (H(!1), G.current = !1);
|
|
9941
9941
|
return;
|
|
9942
9942
|
}
|
|
9943
9943
|
switch (W.key) {
|
|
@@ -9957,13 +9957,13 @@ function G_({ id: i, label: r, hint: _, error: h, required: s, className: p, onC
|
|
|
9957
9957
|
W.preventDefault(), w.current >= 0 && w.current < k.current.length && ml(k.current[w.current]);
|
|
9958
9958
|
break;
|
|
9959
9959
|
case "Escape":
|
|
9960
|
-
W.preventDefault(), H(!1),
|
|
9960
|
+
W.preventDefault(), H(!1), G.current = !1;
|
|
9961
9961
|
break;
|
|
9962
9962
|
}
|
|
9963
9963
|
};
|
|
9964
9964
|
Vl(() => {
|
|
9965
9965
|
const W = (z) => {
|
|
9966
|
-
ol.current && !ol.current.contains(z.target) && tl.current && !tl.current.contains(z.target) && (H(!1),
|
|
9966
|
+
ol.current && !ol.current.contains(z.target) && tl.current && !tl.current.contains(z.target) && (H(!1), G.current = !1);
|
|
9967
9967
|
};
|
|
9968
9968
|
if (U)
|
|
9969
9969
|
return document.addEventListener("mousedown", W), () => {
|
|
@@ -9979,14 +9979,14 @@ function G_({ id: i, label: r, hint: _, error: h, required: s, className: p, onC
|
|
|
9979
9979
|
(z, M) => {
|
|
9980
9980
|
if (M === google.maps.places.PlacesServiceStatus.OK && z) {
|
|
9981
9981
|
const O = z.formatted_address || "";
|
|
9982
|
-
Tl(O), H(!1), q([]),
|
|
9982
|
+
Tl(O), H(!1), q([]), G.current = !1;
|
|
9983
9983
|
const al = Y_(z);
|
|
9984
9984
|
E?.(O, al), x?.(z);
|
|
9985
9985
|
}
|
|
9986
9986
|
}
|
|
9987
9987
|
);
|
|
9988
9988
|
};
|
|
9989
|
-
return /* @__PURE__ */ S.jsx(Ot, { id: i, label: r, hint: _, error: h, required: s, className:
|
|
9989
|
+
return /* @__PURE__ */ S.jsx(Ot, { id: i, label: r, hint: _, error: h, required: s, className: b, children: /* @__PURE__ */ S.jsxs("div", { className: "relative", children: [
|
|
9990
9990
|
/* @__PURE__ */ S.jsx(
|
|
9991
9991
|
"input",
|
|
9992
9992
|
{
|
|
@@ -9995,7 +9995,7 @@ function G_({ id: i, label: r, hint: _, error: h, required: s, className: p, onC
|
|
|
9995
9995
|
type: "text",
|
|
9996
9996
|
className: `form-input ${h ? "input-error" : ""}`,
|
|
9997
9997
|
value: P,
|
|
9998
|
-
onChange:
|
|
9998
|
+
onChange: Q,
|
|
9999
9999
|
onKeyDown: dl,
|
|
10000
10000
|
"aria-invalid": !!h,
|
|
10001
10001
|
"aria-describedby": [_ ? `${i}-hint` : null, h ? `${i}-error` : null].filter(Boolean).join(" ") || void 0,
|
|
@@ -10040,8 +10040,8 @@ function Zd(i, r) {
|
|
|
10040
10040
|
}
|
|
10041
10041
|
function ni(i, r) {
|
|
10042
10042
|
const _ = {}, h = (s) => s == null || typeof s == "string" && s.trim() === "";
|
|
10043
|
-
return i.forEach((s,
|
|
10044
|
-
const E = Zd(s,
|
|
10043
|
+
return i.forEach((s, b) => {
|
|
10044
|
+
const E = Zd(s, b), x = r[E];
|
|
10045
10045
|
if (s.required)
|
|
10046
10046
|
switch (s.inputType) {
|
|
10047
10047
|
case "checkbox":
|
|
@@ -10087,8 +10087,8 @@ function jd(i) {
|
|
|
10087
10087
|
function Rd(i, r) {
|
|
10088
10088
|
const _ = Ud(i), h = Ud(r);
|
|
10089
10089
|
if (_ != null && h != null) return _ - h;
|
|
10090
|
-
const s = jd(i),
|
|
10091
|
-
return s != null &&
|
|
10090
|
+
const s = jd(i), b = jd(r);
|
|
10091
|
+
return s != null && b != null ? s - b : i == null || r == null ? null : String(i).localeCompare(String(r));
|
|
10092
10092
|
}
|
|
10093
10093
|
function Z_(i, r) {
|
|
10094
10094
|
return Array.isArray(i) ? i.some((_) => _ === r) : typeof i == "string" ? r != null && i.includes(String(r)) : !1;
|
|
@@ -10128,7 +10128,7 @@ function Ee(i, r, _) {
|
|
|
10128
10128
|
}
|
|
10129
10129
|
return { ...i, [h]: _ };
|
|
10130
10130
|
}
|
|
10131
|
-
const
|
|
10131
|
+
const b = i?.[h], E = typeof s[0] == "number" ? Array.isArray(b) ? b : [] : b && typeof b == "object" ? b : {}, x = Ee(E, s, _);
|
|
10132
10132
|
if (typeof h == "number") {
|
|
10133
10133
|
const X = (Array.isArray(i) ? i : []).slice();
|
|
10134
10134
|
return X[h] = x, X;
|
|
@@ -10143,8 +10143,8 @@ function C_(i, r, _, h) {
|
|
|
10143
10143
|
}
|
|
10144
10144
|
const V_ = "__items", ti = (i) => `${i}${V_}`;
|
|
10145
10145
|
function K_(i) {
|
|
10146
|
-
const r = (_, h) => _.map((s,
|
|
10147
|
-
const E = h.length ? h.join("__") : "root", x = s.key ?? `${E}__q${
|
|
10146
|
+
const r = (_, h) => _.map((s, b) => {
|
|
10147
|
+
const E = h.length ? h.join("__") : "root", x = s.key ?? `${E}__q${b}_${String(s.question).slice(0, 24).replace(/\W+/g, "-") || "field"}`, X = (s.conditionals ?? []).map((tl, D) => {
|
|
10148
10148
|
const J = tl.conditionalQuestions ? r(tl.conditionalQuestions, [...h, `${x}__c${D}`]) : void 0;
|
|
10149
10149
|
return { ...tl, conditionalQuestions: J };
|
|
10150
10150
|
});
|
|
@@ -10168,7 +10168,7 @@ function J_({
|
|
|
10168
10168
|
onChangeValues: h,
|
|
10169
10169
|
onSubmit: s
|
|
10170
10170
|
}) {
|
|
10171
|
-
const
|
|
10171
|
+
const b = Ra(() => K_(i), [i]), E = Ra(() => {
|
|
10172
10172
|
const B = {};
|
|
10173
10173
|
return r && Object.assign(B, r), B;
|
|
10174
10174
|
}, [r]), [x, j] = Hl(E);
|
|
@@ -10184,14 +10184,14 @@ function J_({
|
|
|
10184
10184
|
}, [_]);
|
|
10185
10185
|
const [J, ol] = Hl({});
|
|
10186
10186
|
function cl(B, q) {
|
|
10187
|
-
const U = B.key, H = B.question, C = Yn(D, q, U), I = J[U], k = (
|
|
10188
|
-
let w = C_(D, q, U,
|
|
10187
|
+
const U = B.key, H = B.question, C = Yn(D, q, U), I = J[U], k = (G) => {
|
|
10188
|
+
let w = C_(D, q, U, G);
|
|
10189
10189
|
if (B.inputType === "radio" && B.conditionals) {
|
|
10190
10190
|
const Z = B.conditionals ?? [];
|
|
10191
|
-
for (const
|
|
10192
|
-
const dl = Yn(D, q, U), ml = Qn(dl,
|
|
10193
|
-
if (ml && !W &&
|
|
10194
|
-
const z =
|
|
10191
|
+
for (const Q of Z) {
|
|
10192
|
+
const dl = Yn(D, q, U), ml = Qn(dl, Q.conditionalType, Q.conditionalValue), W = Qn(G, Q.conditionalType, Q.conditionalValue);
|
|
10193
|
+
if (ml && !W && Q.conditionalQuestionsAllowMultiple) {
|
|
10194
|
+
const z = Q.conditionalQuestions ?? [];
|
|
10195
10195
|
if (z.length > 0) {
|
|
10196
10196
|
const M = ti(U);
|
|
10197
10197
|
w = Ee(w, [...q ?? [], M], []);
|
|
@@ -10222,7 +10222,7 @@ function J_({
|
|
|
10222
10222
|
id: U,
|
|
10223
10223
|
label: H,
|
|
10224
10224
|
value: ze(C),
|
|
10225
|
-
onChange: (
|
|
10225
|
+
onChange: (G) => k(G.currentTarget.value),
|
|
10226
10226
|
"aria-required": B.required || void 0,
|
|
10227
10227
|
error: I
|
|
10228
10228
|
},
|
|
@@ -10235,7 +10235,7 @@ function J_({
|
|
|
10235
10235
|
id: U,
|
|
10236
10236
|
label: H,
|
|
10237
10237
|
value: ze(C),
|
|
10238
|
-
onChange: (
|
|
10238
|
+
onChange: (G) => k(G.currentTarget.value),
|
|
10239
10239
|
"aria-required": B.required || void 0,
|
|
10240
10240
|
error: I
|
|
10241
10241
|
},
|
|
@@ -10248,7 +10248,7 @@ function J_({
|
|
|
10248
10248
|
id: U,
|
|
10249
10249
|
label: H,
|
|
10250
10250
|
value: ze(C),
|
|
10251
|
-
onChange: (
|
|
10251
|
+
onChange: (G) => k(G.currentTarget.value),
|
|
10252
10252
|
"aria-required": B.required || void 0,
|
|
10253
10253
|
error: I
|
|
10254
10254
|
},
|
|
@@ -10262,7 +10262,7 @@ function J_({
|
|
|
10262
10262
|
id: U,
|
|
10263
10263
|
label: H,
|
|
10264
10264
|
value: ze(C),
|
|
10265
|
-
onChange: (
|
|
10265
|
+
onChange: (G) => k(G.currentTarget.value),
|
|
10266
10266
|
"aria-required": B.required || void 0,
|
|
10267
10267
|
error: I
|
|
10268
10268
|
},
|
|
@@ -10290,7 +10290,7 @@ function J_({
|
|
|
10290
10290
|
id: U,
|
|
10291
10291
|
label: H,
|
|
10292
10292
|
value: ze(C),
|
|
10293
|
-
onChange: (
|
|
10293
|
+
onChange: (G) => k(G.currentTarget.value),
|
|
10294
10294
|
"aria-required": B.required || void 0,
|
|
10295
10295
|
error: I
|
|
10296
10296
|
},
|
|
@@ -10303,7 +10303,7 @@ function J_({
|
|
|
10303
10303
|
id: U,
|
|
10304
10304
|
label: H,
|
|
10305
10305
|
value: w_(C),
|
|
10306
|
-
onChange: (
|
|
10306
|
+
onChange: (G) => k(X_(G.currentTarget.value)),
|
|
10307
10307
|
"aria-required": B.required || void 0,
|
|
10308
10308
|
error: I
|
|
10309
10309
|
},
|
|
@@ -10316,7 +10316,7 @@ function J_({
|
|
|
10316
10316
|
id: U,
|
|
10317
10317
|
label: H,
|
|
10318
10318
|
value: ze(C),
|
|
10319
|
-
onChange: (
|
|
10319
|
+
onChange: (G) => k(G.currentTarget.value),
|
|
10320
10320
|
"aria-required": B.required || void 0,
|
|
10321
10321
|
error: I,
|
|
10322
10322
|
rows: 4
|
|
@@ -10330,7 +10330,7 @@ function J_({
|
|
|
10330
10330
|
id: U,
|
|
10331
10331
|
label: H,
|
|
10332
10332
|
value: ze(C),
|
|
10333
|
-
onChange: (
|
|
10333
|
+
onChange: (G) => k(G.currentTarget.value),
|
|
10334
10334
|
"aria-required": B.required || void 0,
|
|
10335
10335
|
error: I
|
|
10336
10336
|
},
|
|
@@ -10338,22 +10338,22 @@ function J_({
|
|
|
10338
10338
|
);
|
|
10339
10339
|
case "checkbox": {
|
|
10340
10340
|
if (B.options) {
|
|
10341
|
-
const
|
|
10341
|
+
const G = Array.isArray(C) ? C : [];
|
|
10342
10342
|
return /* @__PURE__ */ S.jsxs("div", { className: "space-y-2", children: [
|
|
10343
10343
|
/* @__PURE__ */ S.jsxs("div", { className: "form-label", children: [
|
|
10344
10344
|
H,
|
|
10345
10345
|
B.required && /* @__PURE__ */ S.jsx("span", { className: "text-red-600 ml-1", children: "*" })
|
|
10346
10346
|
] }),
|
|
10347
10347
|
/* @__PURE__ */ S.jsx("div", { className: "grid grid-cols-1 gap-3 sm:grid-cols-2", children: B.options.map((w) => {
|
|
10348
|
-
const Z = `${U}-${zf(w)}`,
|
|
10348
|
+
const Z = `${U}-${zf(w)}`, Q = G.includes(w);
|
|
10349
10349
|
return /* @__PURE__ */ S.jsx(
|
|
10350
10350
|
Od,
|
|
10351
10351
|
{
|
|
10352
10352
|
id: Z,
|
|
10353
10353
|
label: w,
|
|
10354
|
-
checked:
|
|
10354
|
+
checked: Q,
|
|
10355
10355
|
onChange: (dl) => {
|
|
10356
|
-
const ml = new Set(
|
|
10356
|
+
const ml = new Set(G);
|
|
10357
10357
|
dl.currentTarget.checked ? ml.add(w) : ml.delete(w), k(Array.from(ml));
|
|
10358
10358
|
},
|
|
10359
10359
|
"aria-required": B.required || void 0
|
|
@@ -10370,19 +10370,19 @@ function J_({
|
|
|
10370
10370
|
id: U,
|
|
10371
10371
|
label: B.required ? `${H} *` : H,
|
|
10372
10372
|
checked: !!C,
|
|
10373
|
-
onChange: (
|
|
10373
|
+
onChange: (G) => k(G.currentTarget.checked),
|
|
10374
10374
|
"aria-required": B.required || void 0
|
|
10375
10375
|
},
|
|
10376
10376
|
U
|
|
10377
10377
|
);
|
|
10378
10378
|
}
|
|
10379
10379
|
case "radio": {
|
|
10380
|
-
const
|
|
10381
|
-
return /* @__PURE__ */ S.jsx(R_, { legend: H, legendClassName: B.required ? "legend-required" : void 0, children:
|
|
10380
|
+
const G = B.options ?? [], w = q && q.length > 0 ? `${U}__${q.join("__")}` : U;
|
|
10381
|
+
return /* @__PURE__ */ S.jsx(R_, { legend: H, legendClassName: B.required ? "legend-required" : void 0, children: G.map((Z) => /* @__PURE__ */ S.jsx(j_, { name: w, value: Z, checked: C === Z, onChange: () => k(Z), children: Z }, `${U}-${zf(Z)}`)) }, U);
|
|
10382
10382
|
}
|
|
10383
10383
|
case "select": {
|
|
10384
|
-
let
|
|
10385
|
-
return U === "quote_vehicle_id" && (
|
|
10384
|
+
let G = B.options ?? [];
|
|
10385
|
+
return U === "quote_vehicle_id" && (G = _?.vehicles__items?.map((w) => w.vin) ?? []), /* @__PURE__ */ S.jsx(
|
|
10386
10386
|
B_,
|
|
10387
10387
|
{
|
|
10388
10388
|
id: U,
|
|
@@ -10392,7 +10392,7 @@ function J_({
|
|
|
10392
10392
|
value: L_(C),
|
|
10393
10393
|
onChange: (w) => k(w.currentTarget.value),
|
|
10394
10394
|
placeholder: "Select an option",
|
|
10395
|
-
options:
|
|
10395
|
+
options: G.map((w) => ({ value: w, label: w }))
|
|
10396
10396
|
},
|
|
10397
10397
|
U
|
|
10398
10398
|
);
|
|
@@ -10404,7 +10404,7 @@ function J_({
|
|
|
10404
10404
|
id: U,
|
|
10405
10405
|
label: H,
|
|
10406
10406
|
value: ze(C),
|
|
10407
|
-
onChange: (
|
|
10407
|
+
onChange: (G) => k(G),
|
|
10408
10408
|
"aria-required": B.required || void 0,
|
|
10409
10409
|
error: I
|
|
10410
10410
|
},
|
|
@@ -10418,13 +10418,13 @@ function J_({
|
|
|
10418
10418
|
return B.map((U, H) => {
|
|
10419
10419
|
const C = String(U.key), I = cl(U, q), k = U.conditionals ?? [];
|
|
10420
10420
|
if (!k.length) return /* @__PURE__ */ S.jsx("div", { children: I }, `wrap-${C}-${H}`);
|
|
10421
|
-
const
|
|
10421
|
+
const G = Yn(D, q, C), w = k.filter((Q) => Qn(G, Q.conditionalType, Q.conditionalValue)), Z = w.length > 1 && !w.some((Q) => Q.conditionalQuestionsAllowMultiple) ? w.slice(0, 1) : w;
|
|
10422
10422
|
return /* @__PURE__ */ S.jsxs("div", { children: [
|
|
10423
10423
|
I,
|
|
10424
|
-
Z.map((
|
|
10425
|
-
const ml =
|
|
10424
|
+
Z.map((Q, dl) => {
|
|
10425
|
+
const ml = Q.conditionalQuestions ?? [];
|
|
10426
10426
|
if (!ml.length) return null;
|
|
10427
|
-
if (!
|
|
10427
|
+
if (!Q.conditionalQuestionsAllowMultiple)
|
|
10428
10428
|
return /* @__PURE__ */ S.jsx("div", { className: "mt-3", children: $(ml, q) }, `branch-${C}-${dl}`);
|
|
10429
10429
|
const W = ti(C), z = Ef(D, [...q ?? [], W]) ?? [], M = Math.max(1, z.length || 1), O = () => {
|
|
10430
10430
|
const zl = Ee(D, [...q ?? [], W, z.length], {});
|
|
@@ -10501,15 +10501,15 @@ function J_({
|
|
|
10501
10501
|
B.push(C);
|
|
10502
10502
|
const I = String(C.key), k = C.conditionals ?? [];
|
|
10503
10503
|
if (!k.length) return;
|
|
10504
|
-
const
|
|
10505
|
-
(w.length > 1 && !w.some((
|
|
10506
|
-
const dl =
|
|
10507
|
-
dl.length && (
|
|
10504
|
+
const G = Yn(D, H, I), w = k.filter((Q) => Qn(G, Q.conditionalType, Q.conditionalValue));
|
|
10505
|
+
(w.length > 1 && !w.some((Q) => Q.conditionalQuestionsAllowMultiple) ? w.slice(0, 1) : w).forEach((Q) => {
|
|
10506
|
+
const dl = Q.conditionalQuestions ?? [];
|
|
10507
|
+
dl.length && (Q.conditionalQuestionsAllowMultiple || q(dl, H));
|
|
10508
10508
|
});
|
|
10509
10509
|
});
|
|
10510
10510
|
};
|
|
10511
|
-
return q(
|
|
10512
|
-
}, [
|
|
10511
|
+
return q(b), B;
|
|
10512
|
+
}, [b, D]);
|
|
10513
10513
|
function Tl(B) {
|
|
10514
10514
|
B.preventDefault();
|
|
10515
10515
|
const q = ni(P, D);
|
|
@@ -10520,7 +10520,7 @@ function J_({
|
|
|
10520
10520
|
}
|
|
10521
10521
|
s(D);
|
|
10522
10522
|
}
|
|
10523
|
-
return /* @__PURE__ */ S.jsx("form", { className: "space-y-6", onSubmit: Tl, noValidate: !0, children: $(
|
|
10523
|
+
return /* @__PURE__ */ S.jsx("form", { className: "space-y-6", onSubmit: Tl, noValidate: !0, children: $(b) });
|
|
10524
10524
|
}
|
|
10525
10525
|
function Bd(i) {
|
|
10526
10526
|
return typeof i == "number" && Number.isFinite(i) ? i : typeof i == "string" && i.trim() !== "" && !Number.isNaN(Number(i)) ? Number(i) : null;
|
|
@@ -10536,8 +10536,8 @@ function Hd(i) {
|
|
|
10536
10536
|
function Qd(i, r) {
|
|
10537
10537
|
const _ = Bd(i), h = Bd(r);
|
|
10538
10538
|
if (_ != null && h != null) return _ - h;
|
|
10539
|
-
const s = Hd(i),
|
|
10540
|
-
return s != null &&
|
|
10539
|
+
const s = Hd(i), b = Hd(r);
|
|
10540
|
+
return s != null && b != null ? s - b : i == null || r == null ? null : String(i).localeCompare(String(r));
|
|
10541
10541
|
}
|
|
10542
10542
|
function q_(i, r) {
|
|
10543
10543
|
return Array.isArray(i) ? i.some((_) => _ === r) : typeof i == "string" ? r != null && i.includes(String(r)) : !1;
|
|
@@ -10567,9 +10567,9 @@ function Cd(i, r, _) {
|
|
|
10567
10567
|
function Yd(i, r) {
|
|
10568
10568
|
const _ = [];
|
|
10569
10569
|
return ((s) => {
|
|
10570
|
-
s.forEach((
|
|
10571
|
-
_.push(
|
|
10572
|
-
const E = String(
|
|
10570
|
+
s.forEach((b) => {
|
|
10571
|
+
_.push(b);
|
|
10572
|
+
const E = String(b.key), x = r[E], j = b.conditionals ?? [];
|
|
10573
10573
|
if (!j.length) return;
|
|
10574
10574
|
const X = j.filter((D) => Cd(x, D.conditionalType, D.conditionalValue));
|
|
10575
10575
|
(X.length > 1 && !X.some((D) => D.conditionalQuestionsAllowMultiple) ? X.slice(0, 1) : X).forEach((D) => {
|
|
@@ -10582,9 +10582,9 @@ function Yd(i, r) {
|
|
|
10582
10582
|
const Vd = "__items", Kd = (i) => `${i}${Vd}`;
|
|
10583
10583
|
function Nf(i, r) {
|
|
10584
10584
|
for (const _ of i) {
|
|
10585
|
-
const h = String(_.key), s = r[h],
|
|
10586
|
-
if (!
|
|
10587
|
-
const E =
|
|
10585
|
+
const h = String(_.key), s = r[h], b = _.conditionals ?? [];
|
|
10586
|
+
if (!b.length) continue;
|
|
10587
|
+
const E = b.filter((j) => Cd(s, j.conditionalType, j.conditionalValue)), x = E.length > 1 && !E.some((j) => j.conditionalQuestionsAllowMultiple) ? E.slice(0, 1) : E;
|
|
10588
10588
|
for (const j of x) {
|
|
10589
10589
|
const X = j.conditionalQuestions ?? [];
|
|
10590
10590
|
if (!X.length) continue;
|
|
@@ -10612,13 +10612,13 @@ function k_({
|
|
|
10612
10612
|
initialValues: h,
|
|
10613
10613
|
initialActive: s
|
|
10614
10614
|
}) {
|
|
10615
|
-
const [
|
|
10615
|
+
const [b, E] = Hl(s ?? 0), [x, j] = Hl(h ?? {}), [X, tl] = Hl({}), [D, J] = Hl(!1), [ol, cl] = Hl(!1), [$, P] = Hl(null), Tl = kt([]), B = Array.isArray(i) && i.length > 0, q = B ? i[Math.min(b, i.length - 1)] : null, U = q?.key ?? null;
|
|
10616
10616
|
Vl(() => {
|
|
10617
10617
|
s !== void 0 && E(s);
|
|
10618
10618
|
}, [s]), Vl(() => {
|
|
10619
|
-
const Z = Tl.current[
|
|
10619
|
+
const Z = Tl.current[b];
|
|
10620
10620
|
Z && Z.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "center" });
|
|
10621
|
-
}, [
|
|
10621
|
+
}, [b]), Vl(() => {
|
|
10622
10622
|
h !== void 0 && j(h);
|
|
10623
10623
|
}, [h]), Vl(() => {
|
|
10624
10624
|
if (!q || !U) {
|
|
@@ -10630,13 +10630,13 @@ function k_({
|
|
|
10630
10630
|
return;
|
|
10631
10631
|
}
|
|
10632
10632
|
let Z = !1;
|
|
10633
|
-
return J(!0), P(null), Promise.resolve(q.loadQuestions()).then((
|
|
10633
|
+
return J(!0), P(null), Promise.resolve(q.loadQuestions()).then((Q) => {
|
|
10634
10634
|
if (!Z) {
|
|
10635
|
-
if (!Array.isArray(
|
|
10636
|
-
tl((dl) => ({ ...dl, [U]:
|
|
10635
|
+
if (!Array.isArray(Q)) throw new Error(`loadQuestions("${U}") did not return an array`);
|
|
10636
|
+
tl((dl) => ({ ...dl, [U]: Q }));
|
|
10637
10637
|
}
|
|
10638
|
-
}).catch((
|
|
10639
|
-
Z || P(`Failed to load stage "${q?.title ?? ""}": ${
|
|
10638
|
+
}).catch((Q) => {
|
|
10639
|
+
Z || P(`Failed to load stage "${q?.title ?? ""}": ${Q?.message ?? "Unknown error"}`);
|
|
10640
10640
|
}).finally(() => {
|
|
10641
10641
|
Z || J(!1);
|
|
10642
10642
|
}), () => {
|
|
@@ -10666,16 +10666,16 @@ function k_({
|
|
|
10666
10666
|
ml.endsWith(Vd) && !(ml in Z) && (Z[ml] = W);
|
|
10667
10667
|
return Z;
|
|
10668
10668
|
}, [H, x]), I = (Z) => {
|
|
10669
|
-
j((
|
|
10669
|
+
j((Q) => ({ ...Q, ...Z }));
|
|
10670
10670
|
}, k = () => {
|
|
10671
10671
|
E((Z) => Z > 0 ? Z - 1 : 0), document.querySelector(".panel-body")?.scrollTo({ top: 0, behavior: "instant" });
|
|
10672
|
-
},
|
|
10672
|
+
}, G = async () => {
|
|
10673
10673
|
if (!H || !q || D || $ || ol) return;
|
|
10674
|
-
const Z = Yd(H, x),
|
|
10674
|
+
const Z = Yd(H, x), Q = ni(Z, x), dl = Object.values(Q).some(Boolean), ml = Gd(H, x);
|
|
10675
10675
|
if (!(dl || ml)) {
|
|
10676
10676
|
cl(!0);
|
|
10677
10677
|
try {
|
|
10678
|
-
const W = Math.min(
|
|
10678
|
+
const W = Math.min(b + 1, i.length - 1), z = b >= i.length - 1, { success: M, error: O } = z ? await _(x, U ?? "") : await r(C, U ?? "");
|
|
10679
10679
|
if (!M) {
|
|
10680
10680
|
P(O ?? "An error occurred");
|
|
10681
10681
|
return;
|
|
@@ -10687,67 +10687,73 @@ function k_({
|
|
|
10687
10687
|
}
|
|
10688
10688
|
}, w = Ra(() => {
|
|
10689
10689
|
if (!H || D || $ || ol) return !0;
|
|
10690
|
-
const Z = Yd(H, x),
|
|
10690
|
+
const Z = Yd(H, x), Q = ni(Z, x), dl = Object.values(Q).some(Boolean), ml = Gd(H, x);
|
|
10691
10691
|
return dl || ml;
|
|
10692
10692
|
}, [H, x, D, $, ol]);
|
|
10693
10693
|
return B ? /* @__PURE__ */ S.jsxs("div", { className: "space-y-6", children: [
|
|
10694
10694
|
/* @__PURE__ */ S.jsxs("div", { className: "flex items-center justify-between gap-4", children: [
|
|
10695
|
-
/* @__PURE__ */ S.jsx(
|
|
10696
|
-
|
|
10697
|
-
|
|
10698
|
-
|
|
10699
|
-
|
|
10700
|
-
|
|
10701
|
-
|
|
10702
|
-
|
|
10703
|
-
|
|
10704
|
-
|
|
10705
|
-
|
|
10706
|
-
|
|
10707
|
-
|
|
10708
|
-
|
|
10709
|
-
|
|
10710
|
-
|
|
10695
|
+
/* @__PURE__ */ S.jsx(
|
|
10696
|
+
"ol",
|
|
10697
|
+
{
|
|
10698
|
+
className: "flex gap-2 text-xs overflow-x-auto flex-1 pb-1 scrollbar-hide items-center",
|
|
10699
|
+
style: { scrollbarWidth: "none", msOverflowStyle: "none" },
|
|
10700
|
+
children: i.flatMap((Z, Q) => [
|
|
10701
|
+
/* @__PURE__ */ S.jsx(
|
|
10702
|
+
"li",
|
|
10703
|
+
{
|
|
10704
|
+
ref: (dl) => {
|
|
10705
|
+
Tl.current[Q] = dl;
|
|
10706
|
+
},
|
|
10707
|
+
className: `px-2.5 py-1 rounded-full border whitespace-nowrap flex-shrink-0 ${Q < b ? "bg-blue-600 text-white border-blue-600" : Q === b ? "border-blue-600 text-blue-600 bg-white" : "border-slate-200 text-slate-600"}`,
|
|
10708
|
+
children: Z.title
|
|
10709
|
+
},
|
|
10710
|
+
Z.key
|
|
10711
|
+
),
|
|
10712
|
+
...Q < i.length - 1 ? [
|
|
10713
|
+
/* @__PURE__ */ S.jsx("li", { className: "text-slate-400 flex-shrink-0", children: "→" }, `arrow-${Q}`)
|
|
10714
|
+
] : []
|
|
10715
|
+
])
|
|
10716
|
+
}
|
|
10717
|
+
),
|
|
10711
10718
|
/* @__PURE__ */ S.jsxs("div", { className: "text-sm text-slate-500 flex-shrink-0", children: [
|
|
10712
|
-
Math.min(
|
|
10719
|
+
Math.min(b + 1, i.length),
|
|
10713
10720
|
" / ",
|
|
10714
10721
|
i.length
|
|
10715
10722
|
] })
|
|
10716
10723
|
] }),
|
|
10717
10724
|
/* @__PURE__ */ S.jsxs("div", { children: [
|
|
10718
10725
|
D && /* @__PURE__ */ S.jsx("div", { className: "text-slate-500", children: "Loading…" }),
|
|
10719
|
-
!D && $ && /* @__PURE__ */ S.jsxs("div", { className: "text-red-600", children: [
|
|
10720
|
-
$,
|
|
10721
|
-
" ",
|
|
10722
|
-
q && /* @__PURE__ */ S.jsx(
|
|
10723
|
-
"button",
|
|
10724
|
-
{
|
|
10725
|
-
type: "button",
|
|
10726
|
-
className: "underline",
|
|
10727
|
-
onClick: () => {
|
|
10728
|
-
tl((Z) => {
|
|
10729
|
-
if (!U) return Z;
|
|
10730
|
-
const G = { ...Z };
|
|
10731
|
-
return delete G[U], G;
|
|
10732
|
-
});
|
|
10733
|
-
},
|
|
10734
|
-
children: "Retry"
|
|
10735
|
-
}
|
|
10736
|
-
)
|
|
10737
|
-
] }),
|
|
10738
10726
|
q && /* @__PURE__ */ S.jsx(
|
|
10739
10727
|
J_,
|
|
10740
10728
|
{
|
|
10741
10729
|
questions: H ?? [],
|
|
10742
10730
|
controlledValues: C,
|
|
10743
10731
|
onChangeValues: I,
|
|
10744
|
-
onSubmit: () =>
|
|
10732
|
+
onSubmit: () => G()
|
|
10745
10733
|
},
|
|
10746
10734
|
q.key
|
|
10747
10735
|
)
|
|
10748
10736
|
] }),
|
|
10749
|
-
/* @__PURE__ */ S.jsxs("div", { className:
|
|
10750
|
-
|
|
10737
|
+
!D && $ && /* @__PURE__ */ S.jsxs("div", { className: "text-red-600 text-sm -mt-4", children: [
|
|
10738
|
+
/* @__PURE__ */ S.jsx("div", { children: $ }),
|
|
10739
|
+
q && /* @__PURE__ */ S.jsx(
|
|
10740
|
+
"button",
|
|
10741
|
+
{
|
|
10742
|
+
type: "button",
|
|
10743
|
+
className: "underline mt-1 font-bold",
|
|
10744
|
+
onClick: () => {
|
|
10745
|
+
tl((Z) => {
|
|
10746
|
+
if (!U) return Z;
|
|
10747
|
+
const Q = { ...Z };
|
|
10748
|
+
return delete Q[U], Q;
|
|
10749
|
+
});
|
|
10750
|
+
},
|
|
10751
|
+
children: "Retry"
|
|
10752
|
+
}
|
|
10753
|
+
)
|
|
10754
|
+
] }),
|
|
10755
|
+
/* @__PURE__ */ S.jsxs("div", { className: b > 0 ? "grid grid-cols-2 gap-3" : "", children: [
|
|
10756
|
+
b > 0 && /* @__PURE__ */ S.jsx(
|
|
10751
10757
|
"button",
|
|
10752
10758
|
{
|
|
10753
10759
|
type: "button",
|
|
@@ -10761,10 +10767,10 @@ function k_({
|
|
|
10761
10767
|
"button",
|
|
10762
10768
|
{
|
|
10763
10769
|
type: "button",
|
|
10764
|
-
onClick:
|
|
10770
|
+
onClick: G,
|
|
10765
10771
|
disabled: w,
|
|
10766
10772
|
className: [
|
|
10767
|
-
|
|
10773
|
+
b > 0 ? "" : "w-full",
|
|
10768
10774
|
"h-12 rounded-full text-white transition",
|
|
10769
10775
|
"disabled:opacity-50 disabled:cursor-not-allowed",
|
|
10770
10776
|
"flex items-center justify-center gap-2",
|
|
@@ -10782,7 +10788,7 @@ function k_({
|
|
|
10782
10788
|
}
|
|
10783
10789
|
)
|
|
10784
10790
|
] }),
|
|
10785
|
-
|
|
10791
|
+
b === i.length - 1 ? "Finish" : "Next"
|
|
10786
10792
|
]
|
|
10787
10793
|
}
|
|
10788
10794
|
)
|
|
@@ -10867,8 +10873,8 @@ async function Wt(i, r) {
|
|
|
10867
10873
|
} catch {
|
|
10868
10874
|
s = h.statusText || s;
|
|
10869
10875
|
}
|
|
10870
|
-
const
|
|
10871
|
-
throw
|
|
10876
|
+
const b = new Error(s);
|
|
10877
|
+
throw b.statusCode = h.status, b;
|
|
10872
10878
|
}
|
|
10873
10879
|
return h;
|
|
10874
10880
|
}
|
|
@@ -10926,13 +10932,13 @@ function sh({ rates: i, onBack: r }) {
|
|
|
10926
10932
|
Mf();
|
|
10927
10933
|
}, []), _ ? /* @__PURE__ */ S.jsxs("section", { className: "mt-8", children: [
|
|
10928
10934
|
/* @__PURE__ */ S.jsx("h3", { className: "text-lg font-semibold text-slate-900", children: "Rates" }),
|
|
10929
|
-
/* @__PURE__ */ S.jsx("div", { className: "mt-4 grid gap-4 sm:grid-cols-2 lg:grid-cols-3", children: i.map((
|
|
10930
|
-
const E =
|
|
10935
|
+
/* @__PURE__ */ S.jsx("div", { className: "mt-4 grid gap-4 sm:grid-cols-2 lg:grid-cols-3", children: i.map((b) => {
|
|
10936
|
+
const E = b.premium_cents / 100, x = fh.format(E), j = b.quote_rate_id, X = h[j] ?? "idle", tl = X === "loading", D = X === "success", J = async () => {
|
|
10931
10937
|
s((ol) => ({ ...ol, [j]: "loading" }));
|
|
10932
10938
|
try {
|
|
10933
10939
|
if (Mf(), !ei())
|
|
10934
10940
|
throw new Error("Authentication required. Please verify your phone number first.");
|
|
10935
|
-
if (!((await ch(
|
|
10941
|
+
if (!((await ch(b.quote_rate_id))?.success !== !1)) throw new Error("Request failed");
|
|
10936
10942
|
P_(), Jd(), s((P) => ({ ...P, [j]: "success" }));
|
|
10937
10943
|
} catch {
|
|
10938
10944
|
s((ol) => ({ ...ol, [j]: "error" }));
|
|
@@ -10940,8 +10946,8 @@ function sh({ rates: i, onBack: r }) {
|
|
|
10940
10946
|
};
|
|
10941
10947
|
return /* @__PURE__ */ S.jsxs("div", { className: "flex flex-col rounded-xl border border-slate-200 bg-white p-6 shadow-sm transition hover:shadow-md", children: [
|
|
10942
10948
|
/* @__PURE__ */ S.jsxs("div", { className: "mb-4 flex items-center gap-3", children: [
|
|
10943
|
-
|
|
10944
|
-
/* @__PURE__ */ S.jsx("div", { className: "flex-1", children: /* @__PURE__ */ S.jsx("h4", { className: "font-semibold text-slate-900", children:
|
|
10949
|
+
b.carrier_logo_base64 ? /* @__PURE__ */ S.jsx("img", { src: `data:image/png;base64,${b.carrier_logo_base64}`, alt: b.carrier_name, className: "h-12 w-auto object-contain" }) : /* @__PURE__ */ S.jsx("div", { className: "flex h-12 w-12 items-center justify-center rounded-md bg-slate-100 text-sm font-semibold text-slate-500", children: b.carrier_name.charAt(0).toUpperCase() }),
|
|
10950
|
+
/* @__PURE__ */ S.jsx("div", { className: "flex-1", children: /* @__PURE__ */ S.jsx("h4", { className: "font-semibold text-slate-900", children: b.carrier_name }) })
|
|
10945
10951
|
] }),
|
|
10946
10952
|
/* @__PURE__ */ S.jsxs("div", { className: "mb-2", children: [
|
|
10947
10953
|
/* @__PURE__ */ S.jsx("p", { className: "text-sm text-slate-500", children: "Premium" }),
|
|
@@ -10950,13 +10956,13 @@ function sh({ rates: i, onBack: r }) {
|
|
|
10950
10956
|
/* @__PURE__ */ S.jsxs("div", { className: "mb-4", children: [
|
|
10951
10957
|
/* @__PURE__ */ S.jsx("p", { className: "text-sm text-slate-500", children: "Term" }),
|
|
10952
10958
|
/* @__PURE__ */ S.jsxs("p", { className: "font-medium text-slate-700", children: [
|
|
10953
|
-
|
|
10959
|
+
b.term_months,
|
|
10954
10960
|
" months"
|
|
10955
10961
|
] })
|
|
10956
10962
|
] }),
|
|
10957
|
-
|
|
10963
|
+
b.carrier_quote_id && /* @__PURE__ */ S.jsx("div", { className: "mb-4", children: /* @__PURE__ */ S.jsxs("p", { className: "text-xs text-slate-400", children: [
|
|
10958
10964
|
"Quote ID: ",
|
|
10959
|
-
|
|
10965
|
+
b.carrier_quote_id
|
|
10960
10966
|
] }) }),
|
|
10961
10967
|
/* @__PURE__ */ S.jsxs("div", { className: "mt-auto pt-4", children: [
|
|
10962
10968
|
/* @__PURE__ */ S.jsx(
|
|
@@ -11001,59 +11007,59 @@ function rh(i) {
|
|
|
11001
11007
|
i.line_1 && _.push(i.line_1), i.line_2 && _.push(i.line_2), i.city && _.push(i.city), i.state && _.push(i.state), i.postal_code && _.push(i.postal_code), _.length > 0 && (r.address = _.join(", ")), i.years_at_address !== null && i.years_at_address !== void 0 && (r.years_at_address = i.years_at_address), i.months_at_address !== null && i.months_at_address !== void 0 && (r.months_at_address = i.months_at_address), i.move_in_date && (r.move_in_date = Dt(i.move_in_date));
|
|
11002
11008
|
const h = [];
|
|
11003
11009
|
return i.prior_line_1 && h.push(i.prior_line_1), i.prior_line_2 && h.push(i.prior_line_2), i.prior_city && h.push(i.prior_city), i.prior_state && h.push(i.prior_state), i.prior_postal_code && h.push(i.prior_postal_code), h.length > 0 && (r.prior_address = h.join(", ")), i.years_at_prior_address !== null && i.years_at_prior_address !== void 0 && (r.years_at_prior_address = i.years_at_prior_address), i.auto_has_prior_insurance !== null && i.auto_has_prior_insurance !== void 0 && (r.auto_has_prior_insurance = Ml(i.auto_has_prior_insurance)), i.auto_prior_expiration_date && (r.auto_prior_expiration_date = Dt(i.auto_prior_expiration_date)), i.auto_prior_carrier_name && (r.auto_prior_carrier_name = i.auto_prior_carrier_name), i.auto_prior_liability_limit && (r.auto_prior_liability_limit = i.auto_prior_liability_limit), i.auto_reason_for_no_insurance && (r.auto_reason_for_no_insurance = i.auto_reason_for_no_insurance), i.auto_prior_years !== null && i.auto_prior_years !== void 0 && (r.auto_prior_years = i.auto_prior_years), i.auto_prior_months !== null && i.auto_prior_months !== void 0 && (r.auto_prior_months = i.auto_prior_months), i.auto_continuous_coverage_years !== null && i.auto_continuous_coverage_years !== void 0 && (r.auto_continuous_coverage_years = i.auto_continuous_coverage_years), i.auto_cancelled_declined_refused_to_renew !== null && i.auto_cancelled_declined_refused_to_renew !== void 0 && (r.auto_cancelled_declined_refused_to_renew = Ml(i.auto_cancelled_declined_refused_to_renew)), i.home_has_prior_insurance !== null && i.home_has_prior_insurance !== void 0 && (r.home_has_prior_insurance = Ml(i.home_has_prior_insurance)), i.home_prior_expiration_date && (r.home_prior_expiration_date = Dt(i.home_prior_expiration_date)), i.home_prior_carrier_name && (r.home_prior_carrier_name = i.home_prior_carrier_name), i.year_built !== null && i.year_built !== void 0 && (r.year_built = i.year_built), i.number_of_units !== null && i.number_of_units !== void 0 && (r.number_of_units = i.number_of_units), i.number_of_stories !== null && i.number_of_stories !== void 0 && (r.number_of_stories = i.number_of_stories), i.number_of_beds !== null && i.number_of_beds !== void 0 && (r.number_of_beds = i.number_of_beds), i.number_of_full_baths !== null && i.number_of_full_baths !== void 0 && (r.number_of_full_baths = i.number_of_full_baths), i.number_of_partial_baths !== null && i.number_of_partial_baths !== void 0 && (r.number_of_partial_baths = i.number_of_partial_baths), i.under_construction !== null && i.under_construction !== void 0 && (r.under_construction = Ml(i.under_construction)), i.distance_from_fire_hydrant_ft && (r.distance_from_fire_hydrant_ft = i.distance_from_fire_hydrant_ft), i.distance_from_fire_station_miles && (r.distance_from_fire_station_miles = i.distance_from_fire_station_miles), i.architectural_style && (r.architectural_style = i.architectural_style), i.dwelling_type && (r.dwelling_type = i.dwelling_type), i.construction_quality && (r.construction_quality = i.construction_quality), i.located_over_water !== null && i.located_over_water !== void 0 && (r.located_over_water = i.located_over_water), i.construction_type && (r.construction_type = i.construction_type), i.exterior_wall_type && (r.exterior_wall_type = i.exterior_wall_type), i.foundation_type && (r.foundation_type = i.foundation_type), i.roof_material_type && (r.roof_material_type = i.roof_material_type), i.year_roof_updated !== null && i.year_roof_updated !== void 0 && (r.year_roof_updated = i.year_roof_updated), i.heating_type && (r.heating_type = i.heating_type), i.heating_fuel_type && (r.heating_fuel_type = i.heating_fuel_type), i.number_of_fireplaces !== null && i.number_of_fireplaces !== void 0 && (r.number_of_fireplaces = i.number_of_fireplaces), i.basement_type && (r.basement_type = i.basement_type), i.parking_type && (r.parking_type = i.parking_type), i.number_of_parking_spaces !== null && i.number_of_parking_spaces !== void 0 && (r.number_of_parking_spaces = i.number_of_parking_spaces), i.plumbing_type && (r.plumbing_type = i.plumbing_type), i.pool_type && (r.pool_type = i.pool_type), i.total_area_sq_ft !== null && i.total_area_sq_ft !== void 0 && (r.total_area_sq_ft = i.total_area_sq_ft), i.parcel_area_sq_ft !== null && i.parcel_area_sq_ft !== void 0 && (r.parcel_area_sq_ft = i.parcel_area_sq_ft), i.residence_type && (r.residence_type = i.residence_type), i.usage_type && (r.usage_type = i.usage_type), i.household_size !== null && i.household_size !== void 0 && (r.household_size = i.household_size), i.number_of_mortgagees !== null && i.number_of_mortgagees !== void 0 && (r.number_of_mortgagees = i.number_of_mortgagees), i.has_dog !== null && i.has_dog !== void 0 && (r.has_dog = Ml(i.has_dog)), i.dog_breed_type && (r.dog_breed_type = i.dog_breed_type), i.number_of_dogs !== null && i.number_of_dogs !== void 0 && (r.number_of_dogs = i.number_of_dogs), i.has_business_on_premises !== null && i.has_business_on_premises !== void 0 && (r.has_business_on_premises = Ml(i.has_business_on_premises)), i.business_class && (r.business_class = i.business_class), i.retiree_discount !== null && i.retiree_discount !== void 0 && (r.retiree_discount = Ml(i.retiree_discount)), i.gated_community_discount !== null && i.gated_community_discount !== void 0 && (r.gated_community_discount = Ml(i.gated_community_discount)), i.multi_policy_discount !== null && i.multi_policy_discount !== void 0 && (r.multi_policy_discount = Ml(i.multi_policy_discount)), i.non_smoker_discount !== null && i.non_smoker_discount !== void 0 && (r.non_smoker_discount = Ml(i.non_smoker_discount)), i.first_time_buyer_discount !== null && i.first_time_buyer_discount !== void 0 && (r.first_time_buyer_discount = Ml(i.first_time_buyer_discount)), i.fire_detection_system !== null && i.fire_detection_system !== void 0 && (r.fire_detection_system = Ml(i.fire_detection_system)), i.burglar_alarm_system !== null && i.burglar_alarm_system !== void 0 && (r.burglar_alarm_system = Ml(i.burglar_alarm_system)), i.burglar_alarm_system_type && (r.burglar_alarm_system_type = i.burglar_alarm_system_type), i.smoke_detectors !== null && i.smoke_detectors !== void 0 && (r.smoke_detectors = Ml(i.smoke_detectors)), i.sprinkler_system !== null && i.sprinkler_system !== void 0 && (r.sprinkler_system = Ml(i.sprinkler_system)), i.sprinkler_system_type && (r.sprinkler_system_type = i.sprinkler_system_type), i.gas_leakage_detector !== null && i.gas_leakage_detector !== void 0 && (r.gas_leakage_detector = Ml(i.gas_leakage_detector)), i.deadbolt_locks !== null && i.deadbolt_locks !== void 0 && (r.deadbolt_locks = Ml(i.deadbolt_locks)), i.fire_extinguisher !== null && i.fire_extinguisher !== void 0 && (r.fire_extinguisher = Ml(i.fire_extinguisher)), i.order_credit_authorized !== null && i.order_credit_authorized !== void 0 && (r.order_credit_authorized = Ml(i.order_credit_authorized)), i.has_health_insurance_auto_accident !== null && i.has_health_insurance_auto_accident !== void 0 && (r.has_health_insurance_auto_accident = Ml(i.has_health_insurance_auto_accident)), i.named_insured_foreclosure_repo_bankruptcy !== null && i.named_insured_foreclosure_repo_bankruptcy !== void 0 && (r.named_insured_foreclosure_repo_bankruptcy = Ml(i.named_insured_foreclosure_repo_bankruptcy)), i.named_insured_convicted_insurance_fraud !== null && i.named_insured_convicted_insurance_fraud !== void 0 && (r.named_insured_convicted_insurance_fraud = Ml(i.named_insured_convicted_insurance_fraud)), i.drivers && i.drivers.length > 0 ? (r.drivers = "Yes", r.drivers__items = i.drivers.map((s) => {
|
|
11004
|
-
const
|
|
11005
|
-
return s.first_name && (
|
|
11010
|
+
const b = {};
|
|
11011
|
+
return s.first_name && (b.first_name = s.first_name), s.last_name && (b.last_name = s.last_name), s.date_of_birth && (b.date_of_birth = Dt(s.date_of_birth)), s.gender && (b.gender = s.gender), s.marital_status && (b.marital_status = s.marital_status), s.relationship_to_insured && (b.relationship_to_insured = s.relationship_to_insured), s.license_state && (b.license_state = s.license_state), s.license_status && (b.license_status = s.license_status), s.license_number && (b.license_number = s.license_number), s.date_first_licensed && (b.date_first_licensed = Dt(s.date_first_licensed)), s.education_level && (b.education_level = s.education_level), s.occupation && (b.occupation = s.occupation), s.industry && (b.industry = s.industry), s.driver_violations && s.driver_violations.length > 0 && (b.driver_violations__items = s.driver_violations.map((E) => {
|
|
11006
11012
|
const x = {};
|
|
11007
11013
|
return E.code && (x.code = E.code), E.occurred_at && (x.occurred_at = Dt(E.occurred_at)), x;
|
|
11008
|
-
})), s.driver_accidents && s.driver_accidents.length > 0 && (
|
|
11014
|
+
})), s.driver_accidents && s.driver_accidents.length > 0 && (b.driver_accidents__items = s.driver_accidents.map((E) => {
|
|
11009
11015
|
const x = {};
|
|
11010
11016
|
return E.occurred_at && (x.occurred_at = Dt(E.occurred_at)), E.description && (x.description = E.description), E.quote_vehicle_id && (x.quote_vehicle_id = E.quote_vehicle_id), E.property_damage_amount_paid_cents !== null && E.property_damage_amount_paid_cents !== void 0 && (x.property_damage_amount_paid_cents = E.property_damage_amount_paid_cents), E.personal_injury_amount_paid_cents !== null && E.personal_injury_amount_paid_cents !== void 0 && (x.personal_injury_amount_paid_cents = E.personal_injury_amount_paid_cents), x;
|
|
11011
|
-
})), s.losses && s.losses.length > 0 && (
|
|
11017
|
+
})), s.losses && s.losses.length > 0 && (b.losses = s.losses.map((E) => {
|
|
11012
11018
|
const x = {};
|
|
11013
11019
|
return E.description && (x.description = E.description), E.date_of_incident && (x.date_of_incident = Dt(E.date_of_incident)), E.amount_paid_cents !== null && E.amount_paid_cents !== void 0 && (x.amount_paid_cents = E.amount_paid_cents), E.quote_vehicle_id && (x.quote_vehicle_id = E.quote_vehicle_id), x;
|
|
11014
|
-
})),
|
|
11020
|
+
})), b;
|
|
11015
11021
|
})) : r.drivers = "No", i.vehicles && i.vehicles.length > 0 ? (r.vehicles = "Yes", r.vehicles__items = i.vehicles.map((s) => {
|
|
11016
|
-
const
|
|
11017
|
-
s.vin && (
|
|
11022
|
+
const b = {};
|
|
11023
|
+
s.vin && (b.vin = s.vin), s.year !== null && s.year !== void 0 && (b.year = s.year), s.make && (b.make = s.make), s.model && (b.model = s.model), s.ownership_type && (b.ownership_type = s.ownership_type), s.usage && (b.usage = s.usage), s.annual_mileage !== null && s.annual_mileage !== void 0 && (b.annual_mileage = s.annual_mileage), s.miles_to_work !== null && s.miles_to_work !== void 0 && (b.miles_to_work = s.miles_to_work), s.percent_to_work !== null && s.percent_to_work !== void 0 && (b.percent_to_work = s.percent_to_work);
|
|
11018
11024
|
const E = [];
|
|
11019
|
-
return s.garaging_address_line_1 && E.push(s.garaging_address_line_1), s.garaging_address_line_2 && E.push(s.garaging_address_line_2), s.garaging_address_city && E.push(s.garaging_address_city), s.garaging_address_state && E.push(s.garaging_address_state), s.garaging_address_postal_code && E.push(s.garaging_address_postal_code), E.length > 0 && (
|
|
11025
|
+
return s.garaging_address_line_1 && E.push(s.garaging_address_line_1), s.garaging_address_line_2 && E.push(s.garaging_address_line_2), s.garaging_address_city && E.push(s.garaging_address_city), s.garaging_address_state && E.push(s.garaging_address_state), s.garaging_address_postal_code && E.push(s.garaging_address_postal_code), E.length > 0 && (b.garaging_address = E.join(", ")), s.anti_theft_type && (b.anti_theft_type = s.anti_theft_type), s.passive_restraint_type && (b.passive_restraint_type = s.passive_restraint_type), s.coverages && s.coverages.length > 0 && (b.coverages__items = s.coverages.map((x) => {
|
|
11020
11026
|
const j = {};
|
|
11021
11027
|
return x.type && (j.type = x.type), x.per_person_limit_cents !== null && x.per_person_limit_cents !== void 0 && (j.per_person_limit_cents = x.per_person_limit_cents), x.per_incident_limit_cents !== null && x.per_incident_limit_cents !== void 0 && (j.per_incident_limit_cents = x.per_incident_limit_cents), x.per_incident_limit_percent !== null && x.per_incident_limit_percent !== void 0 && (j.per_incident_limit_percent = x.per_incident_limit_percent), x.per_day_limit_cents !== null && x.per_day_limit_cents !== void 0 && (j.per_day_limit_cents = x.per_day_limit_cents), x.deductible_cents !== null && x.deductible_cents !== void 0 && (j.deductible_cents = x.deductible_cents), x.is_declined !== null && x.is_declined !== void 0 && (j.is_declined = Ml(x.is_declined)), j;
|
|
11022
|
-
})), s.vehicle_lienholders && s.vehicle_lienholders.length > 0 && (
|
|
11028
|
+
})), s.vehicle_lienholders && s.vehicle_lienholders.length > 0 && (b.vehicle_lienholders__items = s.vehicle_lienholders.map((x) => {
|
|
11023
11029
|
const j = {};
|
|
11024
11030
|
return x.name && (j.name = x.name), x.type && (j.type = x.type), x.line_1 && (j.line_1 = x.line_1), x.line_2 && (j.line_2 = x.line_2), x.city && (j.city = x.city), x.state && (j.state = x.state), x.postal_code && (j.postal_code = x.postal_code), x.phone && (j.phone = x.phone), x.fax && (j.fax = x.fax), j;
|
|
11025
|
-
})),
|
|
11031
|
+
})), b;
|
|
11026
11032
|
})) : r.vehicles = "No", i.losses && i.losses.length > 0 && (r.home_losses__items = i.losses.map((s) => {
|
|
11027
|
-
const
|
|
11028
|
-
return s.description && (
|
|
11033
|
+
const b = {};
|
|
11034
|
+
return s.description && (b.description = s.description), s.date_of_incident && (b.date_of_incident = Dt(s.date_of_incident)), s.amount_paid_cents !== null && s.amount_paid_cents !== void 0 && (b.amount_paid_cents = s.amount_paid_cents), b;
|
|
11029
11035
|
})), r;
|
|
11030
11036
|
}
|
|
11031
11037
|
function Df(i) {
|
|
11032
|
-
const r = {}, _ = (
|
|
11033
|
-
if (typeof
|
|
11034
|
-
if (
|
|
11035
|
-
if (
|
|
11036
|
-
}
|
|
11037
|
-
return
|
|
11038
|
-
}, h = Object.keys(i).filter((
|
|
11039
|
-
for (const [
|
|
11040
|
-
|
|
11038
|
+
const r = {}, _ = (b) => {
|
|
11039
|
+
if (typeof b == "string") {
|
|
11040
|
+
if (b === "Yes") return !0;
|
|
11041
|
+
if (b === "No") return !1;
|
|
11042
|
+
}
|
|
11043
|
+
return b;
|
|
11044
|
+
}, h = Object.keys(i).filter((b) => !b.includes("__items")), s = /* @__PURE__ */ new Set();
|
|
11045
|
+
for (const [b, E] of Object.entries(i))
|
|
11046
|
+
b.endsWith("__items") && Array.isArray(E) && E.forEach((x) => {
|
|
11041
11047
|
typeof x == "object" && x !== null && Object.keys(x).forEach((j) => {
|
|
11042
11048
|
s.add(j);
|
|
11043
11049
|
});
|
|
11044
11050
|
});
|
|
11045
|
-
for (const [
|
|
11046
|
-
if (
|
|
11047
|
-
const x =
|
|
11051
|
+
for (const [b, E] of Object.entries(i))
|
|
11052
|
+
if (b.endsWith("__items")) {
|
|
11053
|
+
const x = b.replace("__items", "");
|
|
11048
11054
|
if (h.includes(x)) {
|
|
11049
11055
|
const X = Array.isArray(E) ? E.map((tl) => Df(tl)) : E;
|
|
11050
11056
|
r[x] = X;
|
|
11051
11057
|
}
|
|
11052
|
-
} else
|
|
11058
|
+
} else b.includes("__items") || s.has(b) || (r[b] = _(E));
|
|
11053
11059
|
return r;
|
|
11054
11060
|
}
|
|
11055
11061
|
function oh({ isOpen: i, onClose: r }) {
|
|
11056
|
-
const [_, h] = Hl([]), [s,
|
|
11062
|
+
const [_, h] = Hl([]), [s, b] = Hl(null), [E, x] = Hl(null), [j, X] = Hl(null), [tl, D] = Hl(void 0);
|
|
11057
11063
|
function J(cl) {
|
|
11058
11064
|
const $ = {
|
|
11059
11065
|
SMSVerification: "Verify",
|
|
@@ -11076,7 +11082,7 @@ function oh({ isOpen: i, onClose: r }) {
|
|
|
11076
11082
|
try {
|
|
11077
11083
|
const $ = W_();
|
|
11078
11084
|
if (Mf(), $) {
|
|
11079
|
-
|
|
11085
|
+
b($);
|
|
11080
11086
|
try {
|
|
11081
11087
|
const P = ei(), Tl = await ih(P ? void 0 : $);
|
|
11082
11088
|
if (!Tl || !Tl.quote)
|
|
@@ -11094,7 +11100,7 @@ function oh({ isOpen: i, onClose: r }) {
|
|
|
11094
11100
|
H >= 0 && D(H);
|
|
11095
11101
|
}
|
|
11096
11102
|
} catch (P) {
|
|
11097
|
-
P.statusCode === 404 ? (wd(),
|
|
11103
|
+
P.statusCode === 404 ? (wd(), b(null)) : Jd();
|
|
11098
11104
|
}
|
|
11099
11105
|
}
|
|
11100
11106
|
} catch {
|
|
@@ -11158,7 +11164,7 @@ function oh({ isOpen: i, onClose: r }) {
|
|
|
11158
11164
|
const k = (await eh(P.phone))?.quoteId;
|
|
11159
11165
|
if (!k || typeof k != "string" || k.trim() === "")
|
|
11160
11166
|
throw new Error(`Failed to create quote - invalid quoteId returned: ${k}`);
|
|
11161
|
-
|
|
11167
|
+
b(k), $_(k), await Gn({ current_stage: C }, !1, k);
|
|
11162
11168
|
}
|
|
11163
11169
|
return { success: !0 };
|
|
11164
11170
|
} catch (P) {
|