@opendoor/partner-sdk-client-react 1.0.5 → 1.0.6
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/client-react/src/TrackingContext.d.ts +1 -1
- package/dist/client-react/src/TrackingContext.d.ts.map +1 -1
- package/dist/client-react/src/components/QualificationQuestions/QQPage.d.ts.map +1 -1
- package/dist/client-react/src/components/QualificationQuestions/fields/FieldRenderer.d.ts.map +1 -1
- package/dist/client-react/src/provider.d.ts.map +1 -1
- package/dist/client-react/src/useInputViewTracking.d.ts.map +1 -1
- package/dist/client-react/src/useTracking.d.ts.map +1 -1
- package/dist/index.js +653 -646
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
import
|
|
1
|
+
import yA, { createContext as Ce, useState as T, useEffect as _, useContext as Ue, useRef as L, useCallback as ae, useMemo as Be, forwardRef as EA, createElement as Te } from "react";
|
|
2
2
|
var Qe = { exports: {} }, ge = {};
|
|
3
3
|
/*
|
|
4
4
|
object-assign
|
|
5
5
|
(c) Sindre Sorhus
|
|
6
6
|
@license MIT
|
|
7
7
|
*/
|
|
8
|
-
var Je,
|
|
9
|
-
function
|
|
10
|
-
if (
|
|
11
|
-
|
|
8
|
+
var Je, uA;
|
|
9
|
+
function bA() {
|
|
10
|
+
if (uA) return Je;
|
|
11
|
+
uA = 1;
|
|
12
12
|
var e = Object.getOwnPropertySymbols, r = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable;
|
|
13
|
-
function
|
|
14
|
-
if (
|
|
13
|
+
function c(j) {
|
|
14
|
+
if (j == null)
|
|
15
15
|
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
16
|
-
return Object(
|
|
16
|
+
return Object(j);
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function u() {
|
|
19
19
|
try {
|
|
20
20
|
if (!Object.assign)
|
|
21
21
|
return !1;
|
|
22
|
-
var
|
|
23
|
-
if (
|
|
22
|
+
var j = new String("abc");
|
|
23
|
+
if (j[5] = "de", Object.getOwnPropertyNames(j)[0] === "5")
|
|
24
24
|
return !1;
|
|
25
|
-
for (var
|
|
26
|
-
|
|
27
|
-
var
|
|
28
|
-
return
|
|
25
|
+
for (var P = {}, d = 0; d < 10; d++)
|
|
26
|
+
P["_" + String.fromCharCode(d)] = d;
|
|
27
|
+
var s = Object.getOwnPropertyNames(P).map(function(o) {
|
|
28
|
+
return P[o];
|
|
29
29
|
});
|
|
30
|
-
if (
|
|
30
|
+
if (s.join("") !== "0123456789")
|
|
31
31
|
return !1;
|
|
32
|
-
var
|
|
33
|
-
return "abcdefghijklmnopqrst".split("").forEach(function(
|
|
34
|
-
|
|
35
|
-
}), Object.keys(Object.assign({},
|
|
32
|
+
var a = {};
|
|
33
|
+
return "abcdefghijklmnopqrst".split("").forEach(function(o) {
|
|
34
|
+
a[o] = o;
|
|
35
|
+
}), Object.keys(Object.assign({}, a)).join("") === "abcdefghijklmnopqrst";
|
|
36
36
|
} catch {
|
|
37
37
|
return !1;
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
return Je =
|
|
41
|
-
for (var
|
|
42
|
-
|
|
43
|
-
for (var O in
|
|
44
|
-
r.call(
|
|
40
|
+
return Je = u() ? Object.assign : function(j, P) {
|
|
41
|
+
for (var d, s = c(j), a, o = 1; o < arguments.length; o++) {
|
|
42
|
+
d = Object(arguments[o]);
|
|
43
|
+
for (var O in d)
|
|
44
|
+
r.call(d, O) && (s[O] = d[O]);
|
|
45
45
|
if (e) {
|
|
46
|
-
|
|
47
|
-
for (var i = 0; i <
|
|
48
|
-
n.call(
|
|
46
|
+
a = e(d);
|
|
47
|
+
for (var i = 0; i < a.length; i++)
|
|
48
|
+
n.call(d, a[i]) && (s[a[i]] = d[a[i]]);
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
return
|
|
51
|
+
return s;
|
|
52
52
|
}, Je;
|
|
53
53
|
}
|
|
54
54
|
/** @license React v17.0.2
|
|
@@ -59,24 +59,24 @@ function yA() {
|
|
|
59
59
|
* This source code is licensed under the MIT license found in the
|
|
60
60
|
* LICENSE file in the root directory of this source tree.
|
|
61
61
|
*/
|
|
62
|
-
var
|
|
63
|
-
function
|
|
64
|
-
if (
|
|
65
|
-
|
|
66
|
-
var e =
|
|
62
|
+
var jA;
|
|
63
|
+
function QA() {
|
|
64
|
+
if (jA) return ge;
|
|
65
|
+
jA = 1, bA();
|
|
66
|
+
var e = yA, r = 60103;
|
|
67
67
|
if (ge.Fragment = 60107, typeof Symbol == "function" && Symbol.for) {
|
|
68
68
|
var n = Symbol.for;
|
|
69
69
|
r = n("react.element"), ge.Fragment = n("react.fragment");
|
|
70
70
|
}
|
|
71
|
-
var
|
|
72
|
-
function
|
|
73
|
-
var
|
|
74
|
-
|
|
75
|
-
for (
|
|
76
|
-
if (
|
|
77
|
-
return { $$typeof: r, type:
|
|
71
|
+
var c = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = Object.prototype.hasOwnProperty, j = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
72
|
+
function P(d, s, a) {
|
|
73
|
+
var o, O = {}, i = null, v = null;
|
|
74
|
+
a !== void 0 && (i = "" + a), s.key !== void 0 && (i = "" + s.key), s.ref !== void 0 && (v = s.ref);
|
|
75
|
+
for (o in s) u.call(s, o) && !j.hasOwnProperty(o) && (O[o] = s[o]);
|
|
76
|
+
if (d && d.defaultProps) for (o in s = d.defaultProps, s) O[o] === void 0 && (O[o] = s[o]);
|
|
77
|
+
return { $$typeof: r, type: d, key: i, ref: v, props: O, _owner: c.current };
|
|
78
78
|
}
|
|
79
|
-
return ge.jsx =
|
|
79
|
+
return ge.jsx = P, ge.jsxs = P, ge;
|
|
80
80
|
}
|
|
81
81
|
var he = {};
|
|
82
82
|
/** @license React v17.0.2
|
|
@@ -87,48 +87,48 @@ var he = {};
|
|
|
87
87
|
* This source code is licensed under the MIT license found in the
|
|
88
88
|
* LICENSE file in the root directory of this source tree.
|
|
89
89
|
*/
|
|
90
|
-
var
|
|
91
|
-
function
|
|
92
|
-
return
|
|
90
|
+
var PA;
|
|
91
|
+
function CA() {
|
|
92
|
+
return PA || (PA = 1, function(e) {
|
|
93
93
|
process.env.NODE_ENV !== "production" && function() {
|
|
94
|
-
var r =
|
|
94
|
+
var r = yA, n = bA(), c = 60103, u = 60106;
|
|
95
95
|
e.Fragment = 60107;
|
|
96
|
-
var
|
|
96
|
+
var j = 60108, P = 60114, d = 60109, s = 60110, a = 60112, o = 60113, O = 60120, i = 60115, v = 60116, R = 60121, B = 60122, I = 60117, G = 60129, N = 60131;
|
|
97
97
|
if (typeof Symbol == "function" && Symbol.for) {
|
|
98
98
|
var w = Symbol.for;
|
|
99
|
-
|
|
99
|
+
c = w("react.element"), u = w("react.portal"), e.Fragment = w("react.fragment"), j = w("react.strict_mode"), P = w("react.profiler"), d = w("react.provider"), s = w("react.context"), a = w("react.forward_ref"), o = w("react.suspense"), O = w("react.suspense_list"), i = w("react.memo"), v = w("react.lazy"), R = w("react.block"), B = w("react.server.block"), I = w("react.fundamental"), w("react.scope"), w("react.opaque.id"), G = w("react.debug_trace_mode"), w("react.offscreen"), N = w("react.legacy_hidden");
|
|
100
100
|
}
|
|
101
101
|
var q = typeof Symbol == "function" && Symbol.iterator, M = "@@iterator";
|
|
102
102
|
function C(t) {
|
|
103
103
|
if (t === null || typeof t != "object")
|
|
104
104
|
return null;
|
|
105
|
-
var
|
|
106
|
-
return typeof
|
|
105
|
+
var f = q && t[q] || t[M];
|
|
106
|
+
return typeof f == "function" ? f : null;
|
|
107
107
|
}
|
|
108
108
|
var X = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
109
109
|
function Z(t) {
|
|
110
110
|
{
|
|
111
|
-
for (var
|
|
111
|
+
for (var f = arguments.length, H = new Array(f > 1 ? f - 1 : 0), p = 1; p < f; p++)
|
|
112
112
|
H[p - 1] = arguments[p];
|
|
113
113
|
ee("error", t, H);
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
|
-
function ee(t,
|
|
116
|
+
function ee(t, f, H) {
|
|
117
117
|
{
|
|
118
118
|
var p = X.ReactDebugCurrentFrame, W = p.getStackAddendum();
|
|
119
|
-
W !== "" && (
|
|
119
|
+
W !== "" && (f += "%s", H = H.concat([W]));
|
|
120
120
|
var D = H.map(function(z) {
|
|
121
121
|
return "" + z;
|
|
122
122
|
});
|
|
123
|
-
D.unshift("Warning: " +
|
|
123
|
+
D.unshift("Warning: " + f), Function.prototype.apply.call(console[t], console, D);
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
var Ae = !1;
|
|
127
127
|
function de(t) {
|
|
128
|
-
return !!(typeof t == "string" || typeof t == "function" || t === e.Fragment || t ===
|
|
128
|
+
return !!(typeof t == "string" || typeof t == "function" || t === e.Fragment || t === P || t === G || t === j || t === o || t === O || t === N || Ae || typeof t == "object" && t !== null && (t.$$typeof === v || t.$$typeof === i || t.$$typeof === d || t.$$typeof === s || t.$$typeof === a || t.$$typeof === I || t.$$typeof === R || t[0] === B));
|
|
129
129
|
}
|
|
130
|
-
function je(t,
|
|
131
|
-
var p =
|
|
130
|
+
function je(t, f, H) {
|
|
131
|
+
var p = f.displayName || f.name || "";
|
|
132
132
|
return t.displayName || (p !== "" ? H + "(" + p + ")" : H);
|
|
133
133
|
}
|
|
134
134
|
function y(t) {
|
|
@@ -144,26 +144,26 @@ function QA() {
|
|
|
144
144
|
switch (t) {
|
|
145
145
|
case e.Fragment:
|
|
146
146
|
return "Fragment";
|
|
147
|
-
case
|
|
147
|
+
case u:
|
|
148
148
|
return "Portal";
|
|
149
|
-
case
|
|
149
|
+
case P:
|
|
150
150
|
return "Profiler";
|
|
151
|
-
case
|
|
151
|
+
case j:
|
|
152
152
|
return "StrictMode";
|
|
153
|
-
case
|
|
153
|
+
case o:
|
|
154
154
|
return "Suspense";
|
|
155
155
|
case O:
|
|
156
156
|
return "SuspenseList";
|
|
157
157
|
}
|
|
158
158
|
if (typeof t == "object")
|
|
159
159
|
switch (t.$$typeof) {
|
|
160
|
-
case
|
|
161
|
-
var
|
|
162
|
-
return y(
|
|
163
|
-
case
|
|
160
|
+
case s:
|
|
161
|
+
var f = t;
|
|
162
|
+
return y(f) + ".Consumer";
|
|
163
|
+
case d:
|
|
164
164
|
var H = t;
|
|
165
165
|
return y(H._context) + ".Provider";
|
|
166
|
-
case
|
|
166
|
+
case a:
|
|
167
167
|
return je(t, t.render, "ForwardRef");
|
|
168
168
|
case i:
|
|
169
169
|
return k(t.type);
|
|
@@ -180,14 +180,14 @@ function QA() {
|
|
|
180
180
|
}
|
|
181
181
|
return null;
|
|
182
182
|
}
|
|
183
|
-
var g = 0, Q, re,
|
|
183
|
+
var g = 0, Q, re, E, m, ne, ce, Ge;
|
|
184
184
|
function He() {
|
|
185
185
|
}
|
|
186
186
|
He.__reactDisabledLog = !0;
|
|
187
187
|
function pe() {
|
|
188
188
|
{
|
|
189
189
|
if (g === 0) {
|
|
190
|
-
Q = console.log, re = console.info,
|
|
190
|
+
Q = console.log, re = console.info, E = console.warn, m = console.error, ne = console.group, ce = console.groupCollapsed, Ge = console.groupEnd;
|
|
191
191
|
var t = {
|
|
192
192
|
configurable: !0,
|
|
193
193
|
enumerable: !0,
|
|
@@ -223,7 +223,7 @@ function QA() {
|
|
|
223
223
|
value: re
|
|
224
224
|
}),
|
|
225
225
|
warn: n({}, t, {
|
|
226
|
-
value:
|
|
226
|
+
value: E
|
|
227
227
|
}),
|
|
228
228
|
error: n({}, t, {
|
|
229
229
|
value: m
|
|
@@ -242,18 +242,18 @@ function QA() {
|
|
|
242
242
|
g < 0 && Z("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
243
243
|
}
|
|
244
244
|
}
|
|
245
|
-
var le = X.ReactCurrentDispatcher,
|
|
246
|
-
function be(t,
|
|
245
|
+
var le = X.ReactCurrentDispatcher, Ve;
|
|
246
|
+
function be(t, f, H) {
|
|
247
247
|
{
|
|
248
|
-
if (
|
|
248
|
+
if (Ve === void 0)
|
|
249
249
|
try {
|
|
250
250
|
throw Error();
|
|
251
251
|
} catch (W) {
|
|
252
252
|
var p = W.stack.trim().match(/\n( *(at )?)/);
|
|
253
|
-
|
|
253
|
+
Ve = p && p[1] || "";
|
|
254
254
|
}
|
|
255
255
|
return `
|
|
256
|
-
` +
|
|
256
|
+
` + Ve + t;
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
259
|
var we = !1, ve;
|
|
@@ -261,7 +261,7 @@ function QA() {
|
|
|
261
261
|
var qe = typeof WeakMap == "function" ? WeakMap : Map;
|
|
262
262
|
ve = new qe();
|
|
263
263
|
}
|
|
264
|
-
function Pe(t,
|
|
264
|
+
function Pe(t, f) {
|
|
265
265
|
if (!t || we)
|
|
266
266
|
return "";
|
|
267
267
|
{
|
|
@@ -276,7 +276,7 @@ function QA() {
|
|
|
276
276
|
var D;
|
|
277
277
|
D = le.current, le.current = null, pe();
|
|
278
278
|
try {
|
|
279
|
-
if (
|
|
279
|
+
if (f) {
|
|
280
280
|
var z = function() {
|
|
281
281
|
throw Error();
|
|
282
282
|
};
|
|
@@ -311,35 +311,35 @@ function QA() {
|
|
|
311
311
|
if (ue && p && typeof ue.stack == "string") {
|
|
312
312
|
for (var S = ue.stack.split(`
|
|
313
313
|
`), U = p.stack.split(`
|
|
314
|
-
`),
|
|
314
|
+
`), h = S.length - 1, K = U.length - 1; h >= 1 && K >= 0 && S[h] !== U[K]; )
|
|
315
315
|
K--;
|
|
316
|
-
for (;
|
|
317
|
-
if (S[
|
|
318
|
-
if (
|
|
316
|
+
for (; h >= 1 && K >= 0; h--, K--)
|
|
317
|
+
if (S[h] !== U[K]) {
|
|
318
|
+
if (h !== 1 || K !== 1)
|
|
319
319
|
do
|
|
320
|
-
if (
|
|
320
|
+
if (h--, K--, K < 0 || S[h] !== U[K]) {
|
|
321
321
|
var se = `
|
|
322
|
-
` + S[
|
|
322
|
+
` + S[h].replace(" at new ", " at ");
|
|
323
323
|
return typeof t == "function" && ve.set(t, se), se;
|
|
324
324
|
}
|
|
325
|
-
while (
|
|
325
|
+
while (h >= 1 && K >= 0);
|
|
326
326
|
break;
|
|
327
327
|
}
|
|
328
328
|
}
|
|
329
329
|
} finally {
|
|
330
330
|
we = !1, le.current = D, ye(), Error.prepareStackTrace = W;
|
|
331
331
|
}
|
|
332
|
-
var Se = t ? t.displayName || t.name : "",
|
|
333
|
-
return typeof t == "function" && ve.set(t,
|
|
332
|
+
var Se = t ? t.displayName || t.name : "", sA = Se ? be(Se) : "";
|
|
333
|
+
return typeof t == "function" && ve.set(t, sA), sA;
|
|
334
334
|
}
|
|
335
|
-
function De(t,
|
|
335
|
+
function De(t, f, H) {
|
|
336
336
|
return Pe(t, !1);
|
|
337
337
|
}
|
|
338
338
|
function fe(t) {
|
|
339
|
-
var
|
|
340
|
-
return !!(
|
|
339
|
+
var f = t.prototype;
|
|
340
|
+
return !!(f && f.isReactComponent);
|
|
341
341
|
}
|
|
342
|
-
function x(t,
|
|
342
|
+
function x(t, f, H) {
|
|
343
343
|
if (t == null)
|
|
344
344
|
return "";
|
|
345
345
|
if (typeof t == "function")
|
|
@@ -347,38 +347,38 @@ function QA() {
|
|
|
347
347
|
if (typeof t == "string")
|
|
348
348
|
return be(t);
|
|
349
349
|
switch (t) {
|
|
350
|
-
case
|
|
350
|
+
case o:
|
|
351
351
|
return be("Suspense");
|
|
352
352
|
case O:
|
|
353
353
|
return be("SuspenseList");
|
|
354
354
|
}
|
|
355
355
|
if (typeof t == "object")
|
|
356
356
|
switch (t.$$typeof) {
|
|
357
|
-
case
|
|
357
|
+
case a:
|
|
358
358
|
return De(t.render);
|
|
359
359
|
case i:
|
|
360
|
-
return x(t.type,
|
|
360
|
+
return x(t.type, f, H);
|
|
361
361
|
case R:
|
|
362
362
|
return De(t._render);
|
|
363
363
|
case v: {
|
|
364
364
|
var p = t, W = p._payload, D = p._init;
|
|
365
365
|
try {
|
|
366
|
-
return x(D(W),
|
|
366
|
+
return x(D(W), f, H);
|
|
367
367
|
} catch {
|
|
368
368
|
}
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
371
|
return "";
|
|
372
372
|
}
|
|
373
|
-
var
|
|
373
|
+
var J = {}, Y = X.ReactDebugCurrentFrame;
|
|
374
374
|
function ie(t) {
|
|
375
375
|
if (t) {
|
|
376
|
-
var
|
|
376
|
+
var f = t._owner, H = x(t.type, t._source, f ? f.type : null);
|
|
377
377
|
Y.setExtraStackFrame(H);
|
|
378
378
|
} else
|
|
379
379
|
Y.setExtraStackFrame(null);
|
|
380
380
|
}
|
|
381
|
-
function xe(t,
|
|
381
|
+
function xe(t, f, H, p, W) {
|
|
382
382
|
{
|
|
383
383
|
var D = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
384
384
|
for (var z in t)
|
|
@@ -389,43 +389,43 @@ function QA() {
|
|
|
389
389
|
var U = Error((p || "React class") + ": " + H + " type `" + z + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[z] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
390
390
|
throw U.name = "Invariant Violation", U;
|
|
391
391
|
}
|
|
392
|
-
S = t[z](
|
|
393
|
-
} catch (
|
|
394
|
-
S =
|
|
392
|
+
S = t[z](f, z, p, H, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
393
|
+
} catch (h) {
|
|
394
|
+
S = h;
|
|
395
395
|
}
|
|
396
|
-
S && !(S instanceof Error) && (ie(W), Z("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", p || "React class", H, z, typeof S), ie(null)), S instanceof Error && !(S.message in
|
|
396
|
+
S && !(S instanceof Error) && (ie(W), Z("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", p || "React class", H, z, typeof S), ie(null)), S instanceof Error && !(S.message in J) && (J[S.message] = !0, ie(W), Z("Failed %s type: %s", H, S.message), ie(null));
|
|
397
397
|
}
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
|
-
var
|
|
400
|
+
var me = X.ReactCurrentOwner, We = Object.prototype.hasOwnProperty, XA = {
|
|
401
401
|
key: !0,
|
|
402
402
|
ref: !0,
|
|
403
403
|
__self: !0,
|
|
404
404
|
__source: !0
|
|
405
|
-
},
|
|
406
|
-
function
|
|
405
|
+
}, $e, eA;
|
|
406
|
+
function GA(t) {
|
|
407
407
|
if (We.call(t, "ref")) {
|
|
408
|
-
var
|
|
409
|
-
if (
|
|
408
|
+
var f = Object.getOwnPropertyDescriptor(t, "ref").get;
|
|
409
|
+
if (f && f.isReactWarning)
|
|
410
410
|
return !1;
|
|
411
411
|
}
|
|
412
412
|
return t.ref !== void 0;
|
|
413
413
|
}
|
|
414
|
-
function
|
|
414
|
+
function DA(t) {
|
|
415
415
|
if (We.call(t, "key")) {
|
|
416
|
-
var
|
|
417
|
-
if (
|
|
416
|
+
var f = Object.getOwnPropertyDescriptor(t, "key").get;
|
|
417
|
+
if (f && f.isReactWarning)
|
|
418
418
|
return !1;
|
|
419
419
|
}
|
|
420
420
|
return t.key !== void 0;
|
|
421
421
|
}
|
|
422
|
-
function
|
|
423
|
-
typeof t.ref == "string" &&
|
|
422
|
+
function RA(t, f) {
|
|
423
|
+
typeof t.ref == "string" && me.current;
|
|
424
424
|
}
|
|
425
|
-
function
|
|
425
|
+
function qA(t, f) {
|
|
426
426
|
{
|
|
427
427
|
var H = function() {
|
|
428
|
-
|
|
428
|
+
$e || ($e = !0, Z("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", f));
|
|
429
429
|
};
|
|
430
430
|
H.isReactWarning = !0, Object.defineProperty(t, "key", {
|
|
431
431
|
get: H,
|
|
@@ -433,10 +433,10 @@ function QA() {
|
|
|
433
433
|
});
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
|
-
function
|
|
436
|
+
function WA(t, f) {
|
|
437
437
|
{
|
|
438
438
|
var H = function() {
|
|
439
|
-
|
|
439
|
+
eA || (eA = !0, Z("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", f));
|
|
440
440
|
};
|
|
441
441
|
H.isReactWarning = !0, Object.defineProperty(t, "ref", {
|
|
442
442
|
get: H,
|
|
@@ -444,13 +444,13 @@ function QA() {
|
|
|
444
444
|
});
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
|
-
var
|
|
447
|
+
var MA = function(t, f, H, p, W, D, z) {
|
|
448
448
|
var S = {
|
|
449
449
|
// This tag allows us to uniquely identify this as a React Element
|
|
450
|
-
$$typeof:
|
|
450
|
+
$$typeof: c,
|
|
451
451
|
// Built-in properties that belong on the element
|
|
452
452
|
type: t,
|
|
453
|
-
key:
|
|
453
|
+
key: f,
|
|
454
454
|
ref: H,
|
|
455
455
|
props: z,
|
|
456
456
|
// Record the component responsible for creating this element.
|
|
@@ -473,38 +473,38 @@ function QA() {
|
|
|
473
473
|
value: W
|
|
474
474
|
}), Object.freeze && (Object.freeze(S.props), Object.freeze(S)), S;
|
|
475
475
|
};
|
|
476
|
-
function
|
|
476
|
+
function IA(t, f, H, p, W) {
|
|
477
477
|
{
|
|
478
478
|
var D, z = {}, S = null, U = null;
|
|
479
|
-
H !== void 0 && (S = "" + H),
|
|
480
|
-
for (D in
|
|
481
|
-
We.call(
|
|
479
|
+
H !== void 0 && (S = "" + H), DA(f) && (S = "" + f.key), GA(f) && (U = f.ref, RA(f, W));
|
|
480
|
+
for (D in f)
|
|
481
|
+
We.call(f, D) && !XA.hasOwnProperty(D) && (z[D] = f[D]);
|
|
482
482
|
if (t && t.defaultProps) {
|
|
483
|
-
var
|
|
484
|
-
for (D in
|
|
485
|
-
z[D] === void 0 && (z[D] =
|
|
483
|
+
var h = t.defaultProps;
|
|
484
|
+
for (D in h)
|
|
485
|
+
z[D] === void 0 && (z[D] = h[D]);
|
|
486
486
|
}
|
|
487
487
|
if (S || U) {
|
|
488
488
|
var K = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
|
|
489
|
-
S &&
|
|
489
|
+
S && qA(z, K), U && WA(z, K);
|
|
490
490
|
}
|
|
491
|
-
return
|
|
491
|
+
return MA(t, S, U, W, p, me.current, z);
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
|
-
var Me = X.ReactCurrentOwner,
|
|
494
|
+
var Me = X.ReactCurrentOwner, AA = X.ReactDebugCurrentFrame;
|
|
495
495
|
function Oe(t) {
|
|
496
496
|
if (t) {
|
|
497
|
-
var
|
|
498
|
-
|
|
497
|
+
var f = t._owner, H = x(t.type, t._source, f ? f.type : null);
|
|
498
|
+
AA.setExtraStackFrame(H);
|
|
499
499
|
} else
|
|
500
|
-
|
|
500
|
+
AA.setExtraStackFrame(null);
|
|
501
501
|
}
|
|
502
502
|
var Ie;
|
|
503
503
|
Ie = !1;
|
|
504
504
|
function Ze(t) {
|
|
505
|
-
return typeof t == "object" && t !== null && t.$$typeof ===
|
|
505
|
+
return typeof t == "object" && t !== null && t.$$typeof === c;
|
|
506
506
|
}
|
|
507
|
-
function
|
|
507
|
+
function tA() {
|
|
508
508
|
{
|
|
509
509
|
if (Me.current) {
|
|
510
510
|
var t = k(Me.current.type);
|
|
@@ -516,43 +516,43 @@ Check the render method of \`` + t + "`.";
|
|
|
516
516
|
return "";
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
|
-
function
|
|
519
|
+
function ZA(t) {
|
|
520
520
|
return "";
|
|
521
521
|
}
|
|
522
|
-
var
|
|
523
|
-
function
|
|
522
|
+
var rA = {};
|
|
523
|
+
function TA(t) {
|
|
524
524
|
{
|
|
525
|
-
var
|
|
526
|
-
if (!
|
|
525
|
+
var f = tA();
|
|
526
|
+
if (!f) {
|
|
527
527
|
var H = typeof t == "string" ? t : t.displayName || t.name;
|
|
528
|
-
H && (
|
|
528
|
+
H && (f = `
|
|
529
529
|
|
|
530
530
|
Check the top-level render call using <` + H + ">.");
|
|
531
531
|
}
|
|
532
|
-
return
|
|
532
|
+
return f;
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
|
-
function
|
|
535
|
+
function nA(t, f) {
|
|
536
536
|
{
|
|
537
537
|
if (!t._store || t._store.validated || t.key != null)
|
|
538
538
|
return;
|
|
539
539
|
t._store.validated = !0;
|
|
540
|
-
var H =
|
|
541
|
-
if (
|
|
540
|
+
var H = TA(f);
|
|
541
|
+
if (rA[H])
|
|
542
542
|
return;
|
|
543
|
-
|
|
543
|
+
rA[H] = !0;
|
|
544
544
|
var p = "";
|
|
545
545
|
t && t._owner && t._owner !== Me.current && (p = " It was passed a child from " + k(t._owner.type) + "."), Oe(t), Z('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', H, p), Oe(null);
|
|
546
546
|
}
|
|
547
547
|
}
|
|
548
|
-
function
|
|
548
|
+
function cA(t, f) {
|
|
549
549
|
{
|
|
550
550
|
if (typeof t != "object")
|
|
551
551
|
return;
|
|
552
552
|
if (Array.isArray(t))
|
|
553
553
|
for (var H = 0; H < t.length; H++) {
|
|
554
554
|
var p = t[H];
|
|
555
|
-
Ze(p) &&
|
|
555
|
+
Ze(p) && nA(p, f);
|
|
556
556
|
}
|
|
557
557
|
else if (Ze(t))
|
|
558
558
|
t._store && (t._store.validated = !0);
|
|
@@ -560,39 +560,39 @@ Check the top-level render call using <` + H + ">.");
|
|
|
560
560
|
var W = C(t);
|
|
561
561
|
if (typeof W == "function" && W !== t.entries)
|
|
562
562
|
for (var D = W.call(t), z; !(z = D.next()).done; )
|
|
563
|
-
Ze(z.value) &&
|
|
563
|
+
Ze(z.value) && nA(z.value, f);
|
|
564
564
|
}
|
|
565
565
|
}
|
|
566
566
|
}
|
|
567
|
-
function
|
|
567
|
+
function JA(t) {
|
|
568
568
|
{
|
|
569
|
-
var
|
|
570
|
-
if (
|
|
569
|
+
var f = t.type;
|
|
570
|
+
if (f == null || typeof f == "string")
|
|
571
571
|
return;
|
|
572
572
|
var H;
|
|
573
|
-
if (typeof
|
|
574
|
-
H =
|
|
575
|
-
else if (typeof
|
|
573
|
+
if (typeof f == "function")
|
|
574
|
+
H = f.propTypes;
|
|
575
|
+
else if (typeof f == "object" && (f.$$typeof === a || // Note: Memo only checks outer props here.
|
|
576
576
|
// Inner props are checked in the reconciler.
|
|
577
|
-
|
|
578
|
-
H =
|
|
577
|
+
f.$$typeof === i))
|
|
578
|
+
H = f.propTypes;
|
|
579
579
|
else
|
|
580
580
|
return;
|
|
581
581
|
if (H) {
|
|
582
|
-
var p = k(
|
|
582
|
+
var p = k(f);
|
|
583
583
|
xe(H, t.props, "prop", p, t);
|
|
584
|
-
} else if (
|
|
584
|
+
} else if (f.PropTypes !== void 0 && !Ie) {
|
|
585
585
|
Ie = !0;
|
|
586
|
-
var W = k(
|
|
586
|
+
var W = k(f);
|
|
587
587
|
Z("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", W || "Unknown");
|
|
588
588
|
}
|
|
589
|
-
typeof
|
|
589
|
+
typeof f.getDefaultProps == "function" && !f.getDefaultProps.isReactClassApproved && Z("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
590
590
|
}
|
|
591
591
|
}
|
|
592
|
-
function
|
|
592
|
+
function hA(t) {
|
|
593
593
|
{
|
|
594
|
-
for (var
|
|
595
|
-
var p =
|
|
594
|
+
for (var f = Object.keys(t.props), H = 0; H < f.length; H++) {
|
|
595
|
+
var p = f[H];
|
|
596
596
|
if (p !== "children" && p !== "key") {
|
|
597
597
|
Oe(t), Z("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", p), Oe(null);
|
|
598
598
|
break;
|
|
@@ -601,65 +601,65 @@ Check the top-level render call using <` + H + ">.");
|
|
|
601
601
|
t.ref !== null && (Oe(t), Z("Invalid attribute `ref` supplied to `React.Fragment`."), Oe(null));
|
|
602
602
|
}
|
|
603
603
|
}
|
|
604
|
-
function
|
|
604
|
+
function aA(t, f, H, p, W, D) {
|
|
605
605
|
{
|
|
606
606
|
var z = de(t);
|
|
607
607
|
if (!z) {
|
|
608
608
|
var S = "";
|
|
609
609
|
(t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (S += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
610
|
-
var U =
|
|
611
|
-
U ? S += U : S +=
|
|
612
|
-
var
|
|
613
|
-
t === null ?
|
|
610
|
+
var U = ZA();
|
|
611
|
+
U ? S += U : S += tA();
|
|
612
|
+
var h;
|
|
613
|
+
t === null ? h = "null" : Array.isArray(t) ? h = "array" : t !== void 0 && t.$$typeof === c ? (h = "<" + (k(t.type) || "Unknown") + " />", S = " Did you accidentally export a JSX literal instead of a component?") : h = typeof t, Z("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", h, S);
|
|
614
614
|
}
|
|
615
|
-
var K =
|
|
615
|
+
var K = IA(t, f, H, W, D);
|
|
616
616
|
if (K == null)
|
|
617
617
|
return K;
|
|
618
618
|
if (z) {
|
|
619
|
-
var se =
|
|
619
|
+
var se = f.children;
|
|
620
620
|
if (se !== void 0)
|
|
621
621
|
if (p)
|
|
622
622
|
if (Array.isArray(se)) {
|
|
623
623
|
for (var Se = 0; Se < se.length; Se++)
|
|
624
|
-
|
|
624
|
+
cA(se[Se], t);
|
|
625
625
|
Object.freeze && Object.freeze(se);
|
|
626
626
|
} else
|
|
627
627
|
Z("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
628
628
|
else
|
|
629
|
-
|
|
629
|
+
cA(se, t);
|
|
630
630
|
}
|
|
631
|
-
return t === e.Fragment ?
|
|
631
|
+
return t === e.Fragment ? hA(K) : JA(K), K;
|
|
632
632
|
}
|
|
633
633
|
}
|
|
634
|
-
function
|
|
635
|
-
return
|
|
634
|
+
function NA(t, f, H) {
|
|
635
|
+
return aA(t, f, H, !0);
|
|
636
636
|
}
|
|
637
|
-
function
|
|
638
|
-
return
|
|
637
|
+
function YA(t, f, H) {
|
|
638
|
+
return aA(t, f, H, !1);
|
|
639
639
|
}
|
|
640
|
-
var
|
|
641
|
-
e.jsx =
|
|
640
|
+
var KA = YA, LA = NA;
|
|
641
|
+
e.jsx = KA, e.jsxs = LA;
|
|
642
642
|
}();
|
|
643
643
|
}(he)), he;
|
|
644
644
|
}
|
|
645
|
-
process.env.NODE_ENV === "production" ? Qe.exports =
|
|
645
|
+
process.env.NODE_ENV === "production" ? Qe.exports = QA() : Qe.exports = CA();
|
|
646
646
|
var A = Qe.exports;
|
|
647
|
-
const
|
|
647
|
+
const UA = {
|
|
648
648
|
production: "https://journey.apps.opendoor.com/_journey/api/v1/events",
|
|
649
649
|
staging: "https://journey.apps-staging.opendoor.com/_journey/api/v1/events"
|
|
650
|
-
},
|
|
651
|
-
function
|
|
650
|
+
}, FA = "partner-sdk", _A = "1.0", $A = 5e3, et = 20, At = 512, tt = 5, fA = 500, oA = "od_sdk_aid";
|
|
651
|
+
function rt() {
|
|
652
652
|
try {
|
|
653
|
-
const e = localStorage.getItem(
|
|
653
|
+
const e = localStorage.getItem(oA);
|
|
654
654
|
if (e)
|
|
655
655
|
return e;
|
|
656
656
|
const r = crypto.randomUUID();
|
|
657
|
-
return localStorage.setItem(
|
|
657
|
+
return localStorage.setItem(oA, r), r;
|
|
658
658
|
} catch {
|
|
659
659
|
return;
|
|
660
660
|
}
|
|
661
661
|
}
|
|
662
|
-
function
|
|
662
|
+
function nt() {
|
|
663
663
|
return typeof window > "u" ? { url: "", eventOrigin: "CLIENT" } : {
|
|
664
664
|
url: window.location.href,
|
|
665
665
|
userAgent: navigator.userAgent,
|
|
@@ -675,40 +675,40 @@ function rt() {
|
|
|
675
675
|
language: Array.from(navigator.languages ?? [])
|
|
676
676
|
};
|
|
677
677
|
}
|
|
678
|
-
function
|
|
678
|
+
function ct(e) {
|
|
679
679
|
let r = 0;
|
|
680
680
|
for (const n of e)
|
|
681
681
|
r += n.length;
|
|
682
682
|
return r / 1024;
|
|
683
683
|
}
|
|
684
|
-
function
|
|
685
|
-
return
|
|
684
|
+
function at(e) {
|
|
685
|
+
return ct(e) >= At - 50;
|
|
686
686
|
}
|
|
687
|
-
async function
|
|
688
|
-
let n =
|
|
687
|
+
async function st(e, r) {
|
|
688
|
+
let n = tt;
|
|
689
689
|
for (; n > 0; )
|
|
690
690
|
try {
|
|
691
|
-
const
|
|
692
|
-
if (
|
|
691
|
+
const c = await fetch(e, r);
|
|
692
|
+
if (c.status === 202)
|
|
693
693
|
return;
|
|
694
|
-
if (
|
|
695
|
-
await new Promise((
|
|
694
|
+
if (c.status >= 500 && n >= 1)
|
|
695
|
+
await new Promise((u) => setTimeout(u, fA)), n--;
|
|
696
696
|
else
|
|
697
697
|
break;
|
|
698
698
|
} catch {
|
|
699
699
|
if (n >= 1)
|
|
700
|
-
await new Promise((
|
|
700
|
+
await new Promise((c) => setTimeout(c, fA)), n--;
|
|
701
701
|
else
|
|
702
702
|
break;
|
|
703
703
|
}
|
|
704
704
|
}
|
|
705
|
-
class
|
|
705
|
+
class ut {
|
|
706
706
|
constructor(r) {
|
|
707
707
|
this.buffer = [], this.destroyed = !1, this.onVisibilityChange = () => {
|
|
708
708
|
document.visibilityState === "hidden" && this.flush(!0);
|
|
709
709
|
}, this.onBeforeUnload = () => {
|
|
710
710
|
this.flush(!0);
|
|
711
|
-
}, this.endpoint =
|
|
711
|
+
}, this.endpoint = UA[r], this.anonymousId = rt(), this.timer = setInterval(() => this.flush(), $A), typeof document < "u" && document.addEventListener("visibilitychange", this.onVisibilityChange), typeof window < "u" && window.addEventListener("beforeunload", this.onBeforeUnload);
|
|
712
712
|
}
|
|
713
713
|
trackPlatform(r) {
|
|
714
714
|
this.enqueue({ platform: r });
|
|
@@ -723,14 +723,14 @@ class st {
|
|
|
723
723
|
if (this.buffer.length === 0)
|
|
724
724
|
return;
|
|
725
725
|
const n = `{"eventWrappers":[${this.buffer.join(",")}]}`;
|
|
726
|
-
this.buffer = [],
|
|
726
|
+
this.buffer = [], st(this.endpoint, {
|
|
727
727
|
method: "POST",
|
|
728
728
|
credentials: "omit",
|
|
729
729
|
keepalive: r,
|
|
730
730
|
headers: {
|
|
731
731
|
"Content-Type": "application/json",
|
|
732
|
-
"X-Journey-Client-Name":
|
|
733
|
-
"X-Journey-Client-Version":
|
|
732
|
+
"X-Journey-Client-Name": FA,
|
|
733
|
+
"X-Journey-Client-Version": _A
|
|
734
734
|
},
|
|
735
735
|
body: n
|
|
736
736
|
});
|
|
@@ -743,14 +743,14 @@ class st {
|
|
|
743
743
|
return;
|
|
744
744
|
const n = {
|
|
745
745
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
746
|
-
websiteSource:
|
|
746
|
+
websiteSource: nt(),
|
|
747
747
|
anonymousId: this.anonymousId,
|
|
748
748
|
...r
|
|
749
749
|
};
|
|
750
|
-
this.buffer.push(JSON.stringify(n)), (this.buffer.length >=
|
|
750
|
+
this.buffer.push(JSON.stringify(n)), (this.buffer.length >= et || at(this.buffer)) && this.flush();
|
|
751
751
|
}
|
|
752
752
|
}
|
|
753
|
-
const
|
|
753
|
+
const Fe = {
|
|
754
754
|
trackPlatform() {
|
|
755
755
|
},
|
|
756
756
|
trackSell() {
|
|
@@ -759,40 +759,45 @@ const ut = {
|
|
|
759
759
|
},
|
|
760
760
|
destroy() {
|
|
761
761
|
}
|
|
762
|
-
},
|
|
762
|
+
}, wA = Ce(null), vA = Ce(Fe), va = ({
|
|
763
763
|
client: e,
|
|
764
764
|
children: r
|
|
765
765
|
}) => {
|
|
766
|
-
const n =
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
}, [
|
|
766
|
+
const [n, c] = T(Fe);
|
|
767
|
+
return _(() => {
|
|
768
|
+
const u = new ut(e.environment);
|
|
769
|
+
return c(u), () => {
|
|
770
|
+
u.destroy();
|
|
771
|
+
};
|
|
772
|
+
}, [e]), /* @__PURE__ */ A.jsx(wA.Provider, { value: e, children: /* @__PURE__ */ A.jsx(vA.Provider, { value: n, children: r }) });
|
|
773
773
|
}, jt = () => {
|
|
774
|
-
const e = Ue(
|
|
774
|
+
const e = Ue(wA);
|
|
775
775
|
if (!e)
|
|
776
776
|
throw new Error(
|
|
777
777
|
"useOpendoorClient must be used within an <OpendoorProvider>. Wrap your component tree with <OpendoorProvider client={client}>."
|
|
778
778
|
);
|
|
779
779
|
return e;
|
|
780
|
-
}, te = () => Ue(
|
|
781
|
-
function
|
|
782
|
-
const n = te(),
|
|
780
|
+
}, te = () => Ue(vA);
|
|
781
|
+
function _e(e, r = {}) {
|
|
782
|
+
const n = te(), c = L(n);
|
|
783
|
+
c.current = n;
|
|
784
|
+
const u = L(null), j = L(!1);
|
|
783
785
|
return _(() => {
|
|
784
|
-
const
|
|
785
|
-
if (!
|
|
786
|
-
const
|
|
787
|
-
([
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
786
|
+
const P = u.current;
|
|
787
|
+
if (!P || !e || j.current) return;
|
|
788
|
+
const d = new IntersectionObserver(
|
|
789
|
+
([s]) => {
|
|
790
|
+
if (s.isIntersecting && !j.current) {
|
|
791
|
+
if (c.current === Fe) return;
|
|
792
|
+
j.current = !0, c.current.trackPlatform({
|
|
793
|
+
inputViewEvent: { targetName: e }
|
|
794
|
+
}), r.immediate && c.current.flush(), d.disconnect();
|
|
795
|
+
}
|
|
791
796
|
},
|
|
792
797
|
{ threshold: 0.5 }
|
|
793
798
|
);
|
|
794
|
-
return
|
|
795
|
-
}, [
|
|
799
|
+
return d.observe(P), () => d.disconnect();
|
|
800
|
+
}, [e, r.immediate]), u;
|
|
796
801
|
}
|
|
797
802
|
const Ne = {
|
|
798
803
|
// Colors
|
|
@@ -875,13 +880,13 @@ function ft(e) {
|
|
|
875
880
|
}
|
|
876
881
|
function Re(e) {
|
|
877
882
|
const r = ft(e), n = {};
|
|
878
|
-
for (const [
|
|
879
|
-
const
|
|
880
|
-
n[`--od-${
|
|
883
|
+
for (const [c, u] of Object.entries(r)) {
|
|
884
|
+
const j = c.replace(/([A-Z])/g, "-$1").toLowerCase();
|
|
885
|
+
n[`--od-${j}`] = u;
|
|
881
886
|
}
|
|
882
887
|
return n;
|
|
883
888
|
}
|
|
884
|
-
const ot = "_attribution_11y4r_7", dt = "_text_11y4r_16",
|
|
889
|
+
const ot = "_attribution_11y4r_7", dt = "_text_11y4r_16", dA = {
|
|
885
890
|
attribution: ot,
|
|
886
891
|
text: dt
|
|
887
892
|
}, Ht = () => /* @__PURE__ */ A.jsx(
|
|
@@ -903,9 +908,9 @@ const ot = "_attribution_11y4r_7", dt = "_text_11y4r_16", oA = {
|
|
|
903
908
|
)
|
|
904
909
|
}
|
|
905
910
|
);
|
|
906
|
-
function
|
|
907
|
-
return /* @__PURE__ */ A.jsxs("div", { className:
|
|
908
|
-
/* @__PURE__ */ A.jsx("span", { className:
|
|
911
|
+
function OA() {
|
|
912
|
+
return /* @__PURE__ */ A.jsxs("div", { className: dA.attribution, "data-testid": "od-attribution", children: [
|
|
913
|
+
/* @__PURE__ */ A.jsx("span", { className: dA.text, children: "Powered by" }),
|
|
909
914
|
/* @__PURE__ */ A.jsx(Ht, {})
|
|
910
915
|
] });
|
|
911
916
|
}
|
|
@@ -930,7 +935,7 @@ const lt = "_container_tu90h_8", it = "_inputSection_tu90h_16", xt = "_inputWrap
|
|
|
930
935
|
manualFormInput: Gt,
|
|
931
936
|
formRow: Dt,
|
|
932
937
|
submitButton: Rt
|
|
933
|
-
},
|
|
938
|
+
}, HA = () => /* @__PURE__ */ A.jsx(
|
|
934
939
|
"svg",
|
|
935
940
|
{
|
|
936
941
|
width: "20",
|
|
@@ -971,7 +976,7 @@ const lt = "_container_tu90h_8", it = "_inputSection_tu90h_16", xt = "_inputWrap
|
|
|
971
976
|
]
|
|
972
977
|
}
|
|
973
978
|
);
|
|
974
|
-
function
|
|
979
|
+
function lA(e) {
|
|
975
980
|
const r = [e.street1];
|
|
976
981
|
return e.street2 && (r[0] += ` ${e.street2}`), r.push(`${e.city}, ${e.state} ${e.postalCode}`), r.join(", ");
|
|
977
982
|
}
|
|
@@ -979,14 +984,14 @@ function Oa({
|
|
|
979
984
|
onAddressSelect: e,
|
|
980
985
|
enableAddressSuggestions: r = !0,
|
|
981
986
|
debounceMs: n = 300,
|
|
982
|
-
showAttribution:
|
|
983
|
-
disabled:
|
|
984
|
-
placeholderText:
|
|
985
|
-
buttonText:
|
|
986
|
-
showButton:
|
|
987
|
-
buttonIcon:
|
|
988
|
-
inputIcon:
|
|
989
|
-
manualEntryText:
|
|
987
|
+
showAttribution: c = !1,
|
|
988
|
+
disabled: u = !1,
|
|
989
|
+
placeholderText: j = "Enter your home address",
|
|
990
|
+
buttonText: P = "Get cash offer",
|
|
991
|
+
showButton: d = !0,
|
|
992
|
+
buttonIcon: s,
|
|
993
|
+
inputIcon: a,
|
|
994
|
+
manualEntryText: o = "Enter address manually instead",
|
|
990
995
|
appearance: O,
|
|
991
996
|
onReady: i,
|
|
992
997
|
onChange: v,
|
|
@@ -995,21 +1000,21 @@ function Oa({
|
|
|
995
1000
|
onAddressSuggestionsComplete: I,
|
|
996
1001
|
onError: G
|
|
997
1002
|
}) {
|
|
998
|
-
const N = jt(), w = te(), q = Re(O), [M, C] =
|
|
1003
|
+
const N = jt(), w = te(), q = Re(O), [M, C] = T(""), [X, Z] = T([]), [ee, Ae] = T(!1), [de, je] = T(!1), [y, k] = T(null), [g, Q] = T(!1), [re, E] = T(!1), [m, ne] = T({
|
|
999
1004
|
street1: "",
|
|
1000
1005
|
street2: "",
|
|
1001
1006
|
city: "",
|
|
1002
1007
|
state: "",
|
|
1003
1008
|
postalCode: ""
|
|
1004
|
-
}), ce =
|
|
1009
|
+
}), ce = L(null), Ge = _e("partner-sdk-address-input", {
|
|
1005
1010
|
immediate: !0
|
|
1006
|
-
}), He =
|
|
1011
|
+
}), He = L(G);
|
|
1007
1012
|
He.current = G;
|
|
1008
|
-
const pe =
|
|
1013
|
+
const pe = L(B);
|
|
1009
1014
|
pe.current = B;
|
|
1010
|
-
const ye =
|
|
1015
|
+
const ye = L(I);
|
|
1011
1016
|
ye.current = I;
|
|
1012
|
-
const le =
|
|
1017
|
+
const le = L(null), Ve = ee && !de && M.trim().length >= 3 && X.length === 0 && !re;
|
|
1013
1018
|
_(() => {
|
|
1014
1019
|
i == null || i();
|
|
1015
1020
|
}, []), _(() => {
|
|
@@ -1019,30 +1024,30 @@ function Oa({
|
|
|
1019
1024
|
}
|
|
1020
1025
|
je(!0), k(null);
|
|
1021
1026
|
const x = setTimeout(async () => {
|
|
1022
|
-
var
|
|
1023
|
-
(
|
|
1027
|
+
var J, Y, ie;
|
|
1028
|
+
(J = pe.current) == null || J.call(pe, M);
|
|
1024
1029
|
try {
|
|
1025
1030
|
const xe = await N.getAddressSuggestions(M);
|
|
1026
1031
|
Z(xe.addresses), Ae(!0), (Y = ye.current) == null || Y.call(ye, xe.addresses);
|
|
1027
1032
|
} catch (xe) {
|
|
1028
|
-
const
|
|
1029
|
-
k(
|
|
1033
|
+
const me = xe instanceof Error ? xe : new Error("Failed to fetch address suggestions");
|
|
1034
|
+
k(me.message), Z([]), Ae(!0), (ie = He.current) == null || ie.call(He, me);
|
|
1030
1035
|
} finally {
|
|
1031
1036
|
je(!1);
|
|
1032
1037
|
}
|
|
1033
1038
|
}, n);
|
|
1034
1039
|
return () => clearTimeout(x);
|
|
1035
1040
|
}, [M, g, r, n, N]), _(() => {
|
|
1036
|
-
const x = (
|
|
1037
|
-
le.current && !le.current.contains(
|
|
1041
|
+
const x = (J) => {
|
|
1042
|
+
le.current && !le.current.contains(J.target) && ce.current && !ce.current.contains(J.target) && Ae(!1);
|
|
1038
1043
|
};
|
|
1039
1044
|
return document.addEventListener("mousedown", x), () => document.removeEventListener("mousedown", x);
|
|
1040
1045
|
}, []);
|
|
1041
1046
|
const be = (x) => {
|
|
1042
|
-
const
|
|
1043
|
-
C(
|
|
1047
|
+
const J = x.target.value;
|
|
1048
|
+
C(J), Q(!1), v == null || v({ street1: J });
|
|
1044
1049
|
}, we = async (x) => {
|
|
1045
|
-
Q(!0), C(
|
|
1050
|
+
Q(!0), C(lA(x)), Z([]), Ae(!1), k(null), v == null || v(x), w.trackSell({
|
|
1046
1051
|
addressEntryV2: {
|
|
1047
1052
|
street1: x.street1,
|
|
1048
1053
|
city: x.city,
|
|
@@ -1054,8 +1059,8 @@ function Oa({
|
|
|
1054
1059
|
});
|
|
1055
1060
|
try {
|
|
1056
1061
|
await e(x);
|
|
1057
|
-
} catch (
|
|
1058
|
-
const Y =
|
|
1062
|
+
} catch (J) {
|
|
1063
|
+
const Y = J instanceof Error ? J : new Error("Failed to process address");
|
|
1059
1064
|
k(Y.message), G == null || G(Y), C(""), Q(!1);
|
|
1060
1065
|
}
|
|
1061
1066
|
}, ve = () => {
|
|
@@ -1065,9 +1070,9 @@ function Oa({
|
|
|
1065
1070
|
}, qe = () => {
|
|
1066
1071
|
w.trackPlatform({
|
|
1067
1072
|
linkClickEvent: { targetName: "partner-sdk-manual-entry" }
|
|
1068
|
-
}),
|
|
1069
|
-
}, Pe = (x,
|
|
1070
|
-
const Y = { ...m, [x]:
|
|
1073
|
+
}), E(!0), Ae(!1);
|
|
1074
|
+
}, Pe = (x, J) => {
|
|
1075
|
+
const Y = { ...m, [x]: J };
|
|
1071
1076
|
ne(Y), v == null || v({
|
|
1072
1077
|
street1: Y.street1,
|
|
1073
1078
|
...Y.street2 ? { street2: Y.street2 } : {},
|
|
@@ -1101,8 +1106,8 @@ function Oa({
|
|
|
1101
1106
|
}
|
|
1102
1107
|
}), await e(x);
|
|
1103
1108
|
} catch (x) {
|
|
1104
|
-
const
|
|
1105
|
-
k(
|
|
1109
|
+
const J = x instanceof Error ? x : new Error("Failed to submit address");
|
|
1110
|
+
k(J.message), G == null || G(J);
|
|
1106
1111
|
} finally {
|
|
1107
1112
|
je(!1);
|
|
1108
1113
|
}
|
|
@@ -1119,7 +1124,7 @@ function Oa({
|
|
|
1119
1124
|
className: V.manualFormInput,
|
|
1120
1125
|
value: m.street1,
|
|
1121
1126
|
onChange: (x) => Pe("street1", x.target.value),
|
|
1122
|
-
disabled:
|
|
1127
|
+
disabled: u,
|
|
1123
1128
|
placeholder: "123 Main St"
|
|
1124
1129
|
}
|
|
1125
1130
|
)
|
|
@@ -1134,7 +1139,7 @@ function Oa({
|
|
|
1134
1139
|
className: V.manualFormInput,
|
|
1135
1140
|
value: m.street2,
|
|
1136
1141
|
onChange: (x) => Pe("street2", x.target.value),
|
|
1137
|
-
disabled:
|
|
1142
|
+
disabled: u,
|
|
1138
1143
|
placeholder: "Apt 4B"
|
|
1139
1144
|
}
|
|
1140
1145
|
)
|
|
@@ -1149,7 +1154,7 @@ function Oa({
|
|
|
1149
1154
|
className: V.manualFormInput,
|
|
1150
1155
|
value: m.city,
|
|
1151
1156
|
onChange: (x) => Pe("city", x.target.value),
|
|
1152
|
-
disabled:
|
|
1157
|
+
disabled: u,
|
|
1153
1158
|
placeholder: "Austin"
|
|
1154
1159
|
}
|
|
1155
1160
|
)
|
|
@@ -1165,7 +1170,7 @@ function Oa({
|
|
|
1165
1170
|
className: V.manualFormInput,
|
|
1166
1171
|
value: m.state,
|
|
1167
1172
|
onChange: (x) => Pe("state", x.target.value),
|
|
1168
|
-
disabled:
|
|
1173
|
+
disabled: u,
|
|
1169
1174
|
placeholder: "TX",
|
|
1170
1175
|
maxLength: 2
|
|
1171
1176
|
}
|
|
@@ -1181,7 +1186,7 @@ function Oa({
|
|
|
1181
1186
|
className: V.manualFormInput,
|
|
1182
1187
|
value: m.postalCode,
|
|
1183
1188
|
onChange: (x) => Pe("postalCode", x.target.value),
|
|
1184
|
-
disabled:
|
|
1189
|
+
disabled: u,
|
|
1185
1190
|
placeholder: "78701",
|
|
1186
1191
|
maxLength: 5
|
|
1187
1192
|
}
|
|
@@ -1195,10 +1200,10 @@ function Oa({
|
|
|
1195
1200
|
type: "button",
|
|
1196
1201
|
className: V.submitButton,
|
|
1197
1202
|
onClick: De,
|
|
1198
|
-
disabled:
|
|
1203
|
+
disabled: u,
|
|
1199
1204
|
children: [
|
|
1200
|
-
/* @__PURE__ */ A.jsx("span", { children:
|
|
1201
|
-
|
|
1205
|
+
/* @__PURE__ */ A.jsx("span", { children: P }),
|
|
1206
|
+
s || /* @__PURE__ */ A.jsx(HA, {})
|
|
1202
1207
|
]
|
|
1203
1208
|
}
|
|
1204
1209
|
)
|
|
@@ -1216,25 +1221,25 @@ function Oa({
|
|
|
1216
1221
|
value: M,
|
|
1217
1222
|
onChange: be,
|
|
1218
1223
|
onFocus: ve,
|
|
1219
|
-
placeholder:
|
|
1224
|
+
placeholder: j,
|
|
1220
1225
|
className: V.input,
|
|
1221
|
-
disabled:
|
|
1226
|
+
disabled: u,
|
|
1222
1227
|
"aria-label": "Address input",
|
|
1223
1228
|
"aria-autocomplete": "list",
|
|
1224
1229
|
"aria-controls": "address-suggestions",
|
|
1225
1230
|
"aria-expanded": ee
|
|
1226
1231
|
}
|
|
1227
1232
|
),
|
|
1228
|
-
|
|
1229
|
-
|
|
1233
|
+
a && /* @__PURE__ */ A.jsx("div", { className: V.inputIcon, children: a }),
|
|
1234
|
+
d && /* @__PURE__ */ A.jsx(
|
|
1230
1235
|
"button",
|
|
1231
1236
|
{
|
|
1232
1237
|
className: V.button,
|
|
1233
1238
|
type: "button",
|
|
1234
|
-
disabled:
|
|
1235
|
-
"aria-label":
|
|
1239
|
+
disabled: u,
|
|
1240
|
+
"aria-label": P,
|
|
1236
1241
|
children: de ? /* @__PURE__ */ A.jsxs(A.Fragment, { children: [
|
|
1237
|
-
/* @__PURE__ */ A.jsx("span", { children:
|
|
1242
|
+
/* @__PURE__ */ A.jsx("span", { children: P }),
|
|
1238
1243
|
/* @__PURE__ */ A.jsxs(
|
|
1239
1244
|
"svg",
|
|
1240
1245
|
{
|
|
@@ -1269,8 +1274,8 @@ function Oa({
|
|
|
1269
1274
|
}
|
|
1270
1275
|
)
|
|
1271
1276
|
] }) : /* @__PURE__ */ A.jsxs(A.Fragment, { children: [
|
|
1272
|
-
/* @__PURE__ */ A.jsx("span", { children:
|
|
1273
|
-
|
|
1277
|
+
/* @__PURE__ */ A.jsx("span", { children: P }),
|
|
1278
|
+
s || /* @__PURE__ */ A.jsx(HA, {})
|
|
1274
1279
|
] })
|
|
1275
1280
|
}
|
|
1276
1281
|
)
|
|
@@ -1288,7 +1293,7 @@ function Oa({
|
|
|
1288
1293
|
children: fe ? /* @__PURE__ */ A.jsxs("div", { className: V.error, children: [
|
|
1289
1294
|
/* @__PURE__ */ A.jsx("div", { className: V.errorIcon, children: /* @__PURE__ */ A.jsx(qt, {}) }),
|
|
1290
1295
|
/* @__PURE__ */ A.jsx("div", { children: y })
|
|
1291
|
-
] }) : X.length > 0 ? X.map((x,
|
|
1296
|
+
] }) : X.length > 0 ? X.map((x, J) => /* @__PURE__ */ A.jsx(
|
|
1292
1297
|
"div",
|
|
1293
1298
|
{
|
|
1294
1299
|
className: V.suggestion,
|
|
@@ -1299,27 +1304,27 @@ function Oa({
|
|
|
1299
1304
|
onKeyDown: (Y) => {
|
|
1300
1305
|
(Y.key === "Enter" || Y.key === " ") && (Y.preventDefault(), we(x));
|
|
1301
1306
|
},
|
|
1302
|
-
children:
|
|
1307
|
+
children: lA(x)
|
|
1303
1308
|
},
|
|
1304
|
-
`${x.street1}-${x.city}-${x.postalCode}-${
|
|
1305
|
-
)) :
|
|
1309
|
+
`${x.street1}-${x.city}-${x.postalCode}-${J}`
|
|
1310
|
+
)) : Ve && /* @__PURE__ */ A.jsx(
|
|
1306
1311
|
"button",
|
|
1307
1312
|
{
|
|
1308
1313
|
type: "button",
|
|
1309
1314
|
className: V.manualLink,
|
|
1310
1315
|
onClick: qe,
|
|
1311
|
-
children:
|
|
1316
|
+
children: o
|
|
1312
1317
|
}
|
|
1313
1318
|
)
|
|
1314
1319
|
}
|
|
1315
1320
|
)
|
|
1316
1321
|
] }),
|
|
1317
|
-
|
|
1322
|
+
c && /* @__PURE__ */ A.jsx(OA, {})
|
|
1318
1323
|
] });
|
|
1319
1324
|
}
|
|
1320
|
-
const
|
|
1325
|
+
const SA = Ce(null);
|
|
1321
1326
|
function $() {
|
|
1322
|
-
const e = Ue(
|
|
1327
|
+
const e = Ue(SA);
|
|
1323
1328
|
if (!e)
|
|
1324
1329
|
throw new Error("useQQ must be used within a QQProvider");
|
|
1325
1330
|
return e;
|
|
@@ -1355,8 +1360,8 @@ function oe(e, r) {
|
|
|
1355
1360
|
return e.or.some((n) => oe(n, r));
|
|
1356
1361
|
if (Tt(e))
|
|
1357
1362
|
return e.someTrue.some((n) => {
|
|
1358
|
-
const
|
|
1359
|
-
return
|
|
1363
|
+
const c = r(n);
|
|
1364
|
+
return c !== void 0 && c !== !1 && c !== "" && c !== 0;
|
|
1360
1365
|
});
|
|
1361
1366
|
if (Mt(e)) {
|
|
1362
1367
|
const n = r(e.field);
|
|
@@ -1381,80 +1386,80 @@ function oe(e, r) {
|
|
|
1381
1386
|
}
|
|
1382
1387
|
return !1;
|
|
1383
1388
|
}
|
|
1384
|
-
function
|
|
1389
|
+
function gA(e, r) {
|
|
1385
1390
|
const n = [];
|
|
1386
|
-
for (const
|
|
1387
|
-
if (
|
|
1391
|
+
for (const c of e.sections) {
|
|
1392
|
+
if (c.showWhen && !oe(c.showWhen, r))
|
|
1388
1393
|
continue;
|
|
1389
|
-
const
|
|
1390
|
-
(
|
|
1394
|
+
const u = c.questions.filter(
|
|
1395
|
+
(j) => !j.showWhen || oe(j.showWhen, r)
|
|
1391
1396
|
);
|
|
1392
|
-
(
|
|
1397
|
+
(u.length > 0 || c.icon) && n.push({ ...c, questions: u });
|
|
1393
1398
|
}
|
|
1394
1399
|
return { ...e, sections: n };
|
|
1395
1400
|
}
|
|
1396
1401
|
function Jt(e, r) {
|
|
1397
1402
|
if (!e.effects) return {};
|
|
1398
1403
|
const n = {};
|
|
1399
|
-
for (const
|
|
1400
|
-
oe(
|
|
1404
|
+
for (const c of e.effects)
|
|
1405
|
+
oe(c.when, r) ? Object.assign(n, c.set) : c.unset && Object.assign(n, c.unset);
|
|
1401
1406
|
return n;
|
|
1402
1407
|
}
|
|
1403
1408
|
function ht(e, r) {
|
|
1404
1409
|
const n = {};
|
|
1405
|
-
for (const
|
|
1406
|
-
n[
|
|
1410
|
+
for (const c of e)
|
|
1411
|
+
n[c.key] = oe(c.condition, r) ? c.trueValue ?? !0 : c.falseValue ?? !1;
|
|
1407
1412
|
return n;
|
|
1408
1413
|
}
|
|
1409
|
-
function
|
|
1414
|
+
function iA(e, r) {
|
|
1410
1415
|
const n = /* @__PURE__ */ new Set();
|
|
1411
|
-
for (const
|
|
1412
|
-
for (const
|
|
1413
|
-
const
|
|
1414
|
-
for (const
|
|
1415
|
-
if (
|
|
1416
|
-
n.add(
|
|
1416
|
+
for (const c of e)
|
|
1417
|
+
for (const u of c.sections) {
|
|
1418
|
+
const j = u.showWhen && !oe(u.showWhen, r);
|
|
1419
|
+
for (const P of u.questions) {
|
|
1420
|
+
if (j) {
|
|
1421
|
+
n.add(P.key);
|
|
1417
1422
|
continue;
|
|
1418
1423
|
}
|
|
1419
|
-
|
|
1424
|
+
P.showWhen && !oe(P.showWhen, r) && n.add(P.key);
|
|
1420
1425
|
}
|
|
1421
1426
|
}
|
|
1422
1427
|
return n;
|
|
1423
1428
|
}
|
|
1424
1429
|
function Nt(e, r) {
|
|
1425
1430
|
for (const n of e)
|
|
1426
|
-
for (const
|
|
1427
|
-
for (const
|
|
1428
|
-
if (
|
|
1431
|
+
for (const c of n.sections)
|
|
1432
|
+
for (const u of c.questions)
|
|
1433
|
+
if (u.key === r) return u;
|
|
1429
1434
|
}
|
|
1430
1435
|
const Yt = ({
|
|
1431
1436
|
pages: e,
|
|
1432
1437
|
initialAnswers: r,
|
|
1433
1438
|
onSubmit: n,
|
|
1434
|
-
onPageChange:
|
|
1435
|
-
onAnswerChange:
|
|
1436
|
-
onReady:
|
|
1437
|
-
onError:
|
|
1438
|
-
children:
|
|
1439
|
+
onPageChange: c,
|
|
1440
|
+
onAnswerChange: u,
|
|
1441
|
+
onReady: j,
|
|
1442
|
+
onError: P,
|
|
1443
|
+
children: d
|
|
1439
1444
|
}) => {
|
|
1440
|
-
const [
|
|
1445
|
+
const [s, a] = T(0), [o, O] = T({}), [i, v] = T(
|
|
1441
1446
|
() => r ?? {}
|
|
1442
|
-
), R =
|
|
1447
|
+
), R = L(n);
|
|
1443
1448
|
R.current = n;
|
|
1444
|
-
const B =
|
|
1445
|
-
B.current =
|
|
1446
|
-
const I =
|
|
1447
|
-
I.current =
|
|
1448
|
-
const G =
|
|
1449
|
-
G.current =
|
|
1450
|
-
const N =
|
|
1451
|
-
N.current =
|
|
1449
|
+
const B = L(c);
|
|
1450
|
+
B.current = c;
|
|
1451
|
+
const I = L(u);
|
|
1452
|
+
I.current = u;
|
|
1453
|
+
const G = L(j);
|
|
1454
|
+
G.current = j;
|
|
1455
|
+
const N = L(P);
|
|
1456
|
+
N.current = P, _(() => {
|
|
1452
1457
|
var y;
|
|
1453
1458
|
(y = G.current) == null || y.call(G);
|
|
1454
1459
|
}, []), _(() => {
|
|
1455
1460
|
r && Object.keys(r).length > 0 && v((y) => ({ ...y, ...r }));
|
|
1456
1461
|
}, [r]);
|
|
1457
|
-
const w =
|
|
1462
|
+
const w = L(i);
|
|
1458
1463
|
w.current = i;
|
|
1459
1464
|
const q = ae(
|
|
1460
1465
|
(y) => i[y],
|
|
@@ -1472,14 +1477,14 @@ const Yt = ({
|
|
|
1472
1477
|
M(ne, ce);
|
|
1473
1478
|
}
|
|
1474
1479
|
const Q = { ...w.current, [y]: k };
|
|
1475
|
-
(re = I.current) == null || re.call(I, y, k, Q), O((
|
|
1476
|
-
if (!
|
|
1477
|
-
const m = { ...
|
|
1480
|
+
(re = I.current) == null || re.call(I, y, k, Q), O((E) => {
|
|
1481
|
+
if (!E[y]) return E;
|
|
1482
|
+
const m = { ...E };
|
|
1478
1483
|
return delete m[y], m;
|
|
1479
1484
|
});
|
|
1480
1485
|
},
|
|
1481
1486
|
[e, M]
|
|
1482
|
-
), X = e[
|
|
1487
|
+
), X = e[s];
|
|
1483
1488
|
_(() => {
|
|
1484
1489
|
for (const y of e) {
|
|
1485
1490
|
if (!y.derived) continue;
|
|
@@ -1488,24 +1493,24 @@ const Yt = ({
|
|
|
1488
1493
|
q(g) !== Q && M(g, Q);
|
|
1489
1494
|
}
|
|
1490
1495
|
}, [i, e, q, M]), _(() => {
|
|
1491
|
-
const y =
|
|
1496
|
+
const y = iA(e, q);
|
|
1492
1497
|
for (const k of y)
|
|
1493
1498
|
q(k) !== void 0 && M(k, void 0);
|
|
1494
1499
|
}, [i, e, q, M]);
|
|
1495
1500
|
const Z = ae(() => {
|
|
1496
1501
|
var g, Q, re;
|
|
1497
1502
|
if (!X) return;
|
|
1498
|
-
const y =
|
|
1499
|
-
for (const
|
|
1500
|
-
for (const m of
|
|
1503
|
+
const y = iA(e, q), k = {};
|
|
1504
|
+
for (const E of X.sections)
|
|
1505
|
+
for (const m of E.questions) {
|
|
1501
1506
|
if (y.has(m.key)) continue;
|
|
1502
1507
|
const ne = i[m.key], ce = Wt(m, ne);
|
|
1503
1508
|
ce && (k[m.key] = ce);
|
|
1504
1509
|
}
|
|
1505
1510
|
if (X.validate) {
|
|
1506
|
-
const
|
|
1507
|
-
if (!
|
|
1508
|
-
for (const m of
|
|
1511
|
+
const E = X.validate(i);
|
|
1512
|
+
if (!E.valid)
|
|
1513
|
+
for (const m of E.errors)
|
|
1509
1514
|
k[m.fieldId] = m.message;
|
|
1510
1515
|
}
|
|
1511
1516
|
if (Object.keys(k).length > 0) {
|
|
@@ -1515,13 +1520,13 @@ const Yt = ({
|
|
|
1515
1520
|
);
|
|
1516
1521
|
return;
|
|
1517
1522
|
}
|
|
1518
|
-
if (O({}),
|
|
1519
|
-
const
|
|
1520
|
-
|
|
1523
|
+
if (O({}), s < e.length - 1) {
|
|
1524
|
+
const E = s + 1;
|
|
1525
|
+
a(E), (Q = B.current) == null || Q.call(B, E, e[E].id);
|
|
1521
1526
|
} else
|
|
1522
1527
|
(re = R.current) == null || re.call(R, i);
|
|
1523
|
-
}, [X,
|
|
1524
|
-
O({}),
|
|
1528
|
+
}, [X, s, e, i, q]), ee = ae(() => {
|
|
1529
|
+
O({}), a((y) => {
|
|
1525
1530
|
const k = Math.max(0, y - 1);
|
|
1526
1531
|
return k !== y && queueMicrotask(() => {
|
|
1527
1532
|
var g;
|
|
@@ -1531,10 +1536,10 @@ const Yt = ({
|
|
|
1531
1536
|
}, [e]), Ae = ae(
|
|
1532
1537
|
(y) => {
|
|
1533
1538
|
var k;
|
|
1534
|
-
y >= 0 && y < e.length && (O({}),
|
|
1539
|
+
y >= 0 && y < e.length && (O({}), a(y), (k = B.current) == null || k.call(B, y, e[y].id));
|
|
1535
1540
|
},
|
|
1536
1541
|
[e]
|
|
1537
|
-
), de =
|
|
1542
|
+
), de = Be(() => {
|
|
1538
1543
|
const y = /* @__PURE__ */ new Map();
|
|
1539
1544
|
for (const g of e)
|
|
1540
1545
|
g.stepper && y.set(g.stepper.position, g.stepper);
|
|
@@ -1544,31 +1549,31 @@ const Yt = ({
|
|
|
1544
1549
|
active: (k == null ? void 0 : k.position) === g.position,
|
|
1545
1550
|
completed: k ? g.position < k.position : !1
|
|
1546
1551
|
}));
|
|
1547
|
-
}, [e, X]), je =
|
|
1552
|
+
}, [e, X]), je = Be(
|
|
1548
1553
|
() => ({
|
|
1549
1554
|
pages: e,
|
|
1550
|
-
currentPageIndex:
|
|
1555
|
+
currentPageIndex: s,
|
|
1551
1556
|
getAnswer: q,
|
|
1552
1557
|
setAnswer: C,
|
|
1553
1558
|
goToNext: Z,
|
|
1554
1559
|
goToPrev: ee,
|
|
1555
1560
|
goToPage: Ae,
|
|
1556
|
-
validationErrors:
|
|
1561
|
+
validationErrors: o,
|
|
1557
1562
|
stepperSteps: de
|
|
1558
1563
|
}),
|
|
1559
1564
|
[
|
|
1560
1565
|
e,
|
|
1561
|
-
|
|
1566
|
+
s,
|
|
1562
1567
|
q,
|
|
1563
1568
|
C,
|
|
1564
1569
|
Z,
|
|
1565
1570
|
ee,
|
|
1566
1571
|
Ae,
|
|
1567
|
-
|
|
1572
|
+
o,
|
|
1568
1573
|
de
|
|
1569
1574
|
]
|
|
1570
1575
|
);
|
|
1571
|
-
return /* @__PURE__ */ A.jsx(
|
|
1576
|
+
return /* @__PURE__ */ A.jsx(SA.Provider, { value: je, children: d });
|
|
1572
1577
|
}, Kt = "_layoutContainer_1g5ms_8", Lt = "_sidebarContainer_1g5ms_18", Et = "_mainContent_1g5ms_23", Qt = "_reviewCardContainer_1g5ms_28", Ct = "_pageContainer_1g5ms_57", Ut = "_pageTitle_1g5ms_62", Ft = "_pageSubtitle_1g5ms_71", _t = "_section_1g5ms_79", $t = "_sectionHeader_1g5ms_88", er = "_sectionIcon_1g5ms_95", Ar = "_sectionTitle_1g5ms_101", tr = "_subsectionTitle_1g5ms_109", rr = "_sectionGroup_1g5ms_117", nr = "_sectionSub_1g5ms_121", cr = "_sectionFields_1g5ms_131", ar = "_legalText_1g5ms_137", sr = "_navigationContainer_1g5ms_152", ur = "_buttonPrimary_1g5ms_158", jr = "_buttonSecondary_1g5ms_178", Pr = "_arrowIcon_1g5ms_200", fr = "_sidebar_1g5ms_18", or = "_stepList_1g5ms_217", dr = "_stepItem_1g5ms_226", Hr = "_stepButton_1g5ms_230", lr = "_stepActive_1g5ms_252", ir = "_stepCompleted_1g5ms_259", xr = "_stepIndicator_1g5ms_268", kr = "_sidebarAttribution_1g5ms_278", pr = "_reviewCard_1g5ms_28", yr = "_reviewMapArea_1g5ms_306", br = "_reviewMapImage_1g5ms_315", wr = "_reviewMapDynamic_1g5ms_322", vr = "_reviewMapLoaded_1g5ms_330", Or = "_reviewBody_1g5ms_338", Sr = "_reviewAddressSection_1g5ms_342", gr = "_reviewAddressText_1g5ms_349", zr = "_reviewAddressStreet_1g5ms_355", Vr = "_reviewAddressCityState_1g5ms_362", mr = "_reviewEditLink_1g5ms_368", Br = "_reviewStatsGrid_1g5ms_379", Xr = "_reviewStatsGridWithDivider_1g5ms_385", Gr = "_reviewStatItem_1g5ms_391", Dr = "_reviewStatIcon_1g5ms_400", Rr = "_reviewSection_1g5ms_406", qr = "_reviewSectionHeader_1g5ms_410", Wr = "_reviewSectionTitle_1g5ms_417", Mr = "_reviewCheckList_1g5ms_424", Ir = "_reviewCheckItem_1g5ms_433", Zr = "_reviewCheckIcon_1g5ms_443", Tr = "_reviewMoreLink_1g5ms_451", l = {
|
|
1573
1578
|
layoutContainer: Kt,
|
|
1574
1579
|
sidebarContainer: Lt,
|
|
@@ -1645,7 +1650,7 @@ const Yt = ({
|
|
|
1645
1650
|
), hr = ({
|
|
1646
1651
|
showAttribution: e = !0
|
|
1647
1652
|
}) => {
|
|
1648
|
-
const { stepperSteps: r, goToPage: n } = $(),
|
|
1653
|
+
const { stepperSteps: r, goToPage: n } = $(), c = te(), u = [
|
|
1649
1654
|
...r,
|
|
1650
1655
|
{
|
|
1651
1656
|
label: "Your offer",
|
|
@@ -1655,27 +1660,27 @@ const Yt = ({
|
|
|
1655
1660
|
}
|
|
1656
1661
|
];
|
|
1657
1662
|
return /* @__PURE__ */ A.jsxs("nav", { className: l.sidebar, "aria-label": "Qualification progress", children: [
|
|
1658
|
-
/* @__PURE__ */ A.jsx("ul", { className: l.stepList, children:
|
|
1663
|
+
/* @__PURE__ */ A.jsx("ul", { className: l.stepList, children: u.map((j) => /* @__PURE__ */ A.jsx("li", { className: l.stepItem, children: /* @__PURE__ */ A.jsxs(
|
|
1659
1664
|
"button",
|
|
1660
1665
|
{
|
|
1661
1666
|
type: "button",
|
|
1662
|
-
className: `${l.stepButton} ${
|
|
1667
|
+
className: `${l.stepButton} ${j.active ? l.stepActive : ""} ${j.completed ? l.stepCompleted : ""}`.trim(),
|
|
1663
1668
|
onClick: () => {
|
|
1664
|
-
|
|
1669
|
+
j.completed && (c.trackPlatform({
|
|
1665
1670
|
linkClickEvent: {
|
|
1666
|
-
targetName: `partner-sdk-sidebar-${
|
|
1671
|
+
targetName: `partner-sdk-sidebar-${j.label.toLowerCase().replace(/\s+/g, "-")}`
|
|
1667
1672
|
}
|
|
1668
|
-
}), n(
|
|
1673
|
+
}), n(j.position - 1));
|
|
1669
1674
|
},
|
|
1670
|
-
disabled: !
|
|
1671
|
-
"aria-current":
|
|
1675
|
+
disabled: !j.completed && !j.active,
|
|
1676
|
+
"aria-current": j.active ? "step" : void 0,
|
|
1672
1677
|
children: [
|
|
1673
|
-
/* @__PURE__ */ A.jsx("span", { children:
|
|
1674
|
-
|
|
1678
|
+
/* @__PURE__ */ A.jsx("span", { children: j.label }),
|
|
1679
|
+
j.completed && /* @__PURE__ */ A.jsx("span", { className: l.stepIndicator, children: /* @__PURE__ */ A.jsx(Jr, {}) })
|
|
1675
1680
|
]
|
|
1676
1681
|
}
|
|
1677
|
-
) },
|
|
1678
|
-
e && /* @__PURE__ */ A.jsx("div", { className: l.sidebarAttribution, children: /* @__PURE__ */ A.jsx(
|
|
1682
|
+
) }, j.position)) }),
|
|
1683
|
+
e && /* @__PURE__ */ A.jsx("div", { className: l.sidebarAttribution, children: /* @__PURE__ */ A.jsx(OA, {}) })
|
|
1679
1684
|
] });
|
|
1680
1685
|
}, Nr = "_fieldWrapper_cfpjd_2", Yr = "_fieldLabel_cfpjd_8", Kr = "_fieldDescription_cfpjd_20", Lr = "_fieldError_cfpjd_27", Er = "_inputWrapper_cfpjd_35", Qr = "_dropdown_cfpjd_42", Cr = "_input_cfpjd_35", Ur = "_inputSuffix_cfpjd_96", Fr = "_currencyPrefix_cfpjd_106", _r = "_currencyInput_cfpjd_116", $r = "_checkboxGroup_cfpjd_135", en = "_checkboxOption_cfpjd_141", An = "_checkboxOptionSelected_cfpjd_157", tn = "_checkboxInput_cfpjd_162", rn = "_checkboxLabelGroup_cfpjd_195", nn = "_checkboxLabel_cfpjd_195", cn = "_checkboxDescription_cfpjd_208", an = "_toggleWrapper_cfpjd_215", sn = "_toggleBare_cfpjd_221", un = "_toggleCheckbox_cfpjd_229", jn = "_toggleLabelGroup_cfpjd_261", Pn = "_toggleBareLabel_cfpjd_267", fn = "_toggleBareDescription_cfpjd_273", on = "_radioGroup_cfpjd_280", dn = "_radioGroupInline_cfpjd_287", Hn = "_radioButtonPill_cfpjd_292", ln = "_radioButtonPillSelected_cfpjd_312", xn = "_radioOption_cfpjd_318", kn = "_radioOptionSelected_cfpjd_334", pn = "_radioInput_cfpjd_339", yn = "_radioLabel_cfpjd_346", bn = "_cardGroup_cfpjd_354", wn = "_card_cfpjd_354", vn = "_cardGroupWithImages_cfpjd_379", On = "_cardWithImage_cfpjd_385", Sn = "_cardImage_cfpjd_403", gn = "_cardSelected_cfpjd_410", zn = "_cardLabel_cfpjd_417", Vn = "_cardDescription_cfpjd_425", b = {
|
|
1681
1686
|
fieldWrapper: Nr,
|
|
@@ -1721,35 +1726,35 @@ const Yt = ({
|
|
|
1721
1726
|
question: e,
|
|
1722
1727
|
children: r
|
|
1723
1728
|
}) => {
|
|
1724
|
-
const { validationErrors: n } = $(),
|
|
1729
|
+
const { validationErrors: n } = $(), c = n[e.key];
|
|
1725
1730
|
return /* @__PURE__ */ A.jsxs("div", { className: b.fieldWrapper, children: [
|
|
1726
1731
|
/* @__PURE__ */ A.jsx("label", { className: b.fieldLabel, children: e.question }),
|
|
1727
1732
|
e.description && /* @__PURE__ */ A.jsx("p", { className: b.fieldDescription, children: e.description }),
|
|
1728
1733
|
r,
|
|
1729
|
-
|
|
1734
|
+
c && /* @__PURE__ */ A.jsx("p", { className: b.fieldError, children: c })
|
|
1730
1735
|
] });
|
|
1731
1736
|
}, mn = ({ question: e }) => {
|
|
1732
|
-
var
|
|
1733
|
-
const { getAnswer: r, setAnswer: n } = $(),
|
|
1734
|
-
const
|
|
1735
|
-
e.type === "number" ? n(e.key,
|
|
1737
|
+
var j;
|
|
1738
|
+
const { getAnswer: r, setAnswer: n } = $(), c = r(e.key) ?? "", u = (P) => {
|
|
1739
|
+
const d = P.target.value;
|
|
1740
|
+
e.type === "number" ? n(e.key, d === "" ? void 0 : Number(d)) : n(e.key, d === "" ? void 0 : d);
|
|
1736
1741
|
};
|
|
1737
1742
|
return /* @__PURE__ */ A.jsx(ke, { question: e, children: /* @__PURE__ */ A.jsxs(
|
|
1738
1743
|
"select",
|
|
1739
1744
|
{
|
|
1740
1745
|
className: b.dropdown,
|
|
1741
|
-
value: String(
|
|
1742
|
-
onChange:
|
|
1746
|
+
value: String(c),
|
|
1747
|
+
onChange: u,
|
|
1743
1748
|
children: [
|
|
1744
1749
|
/* @__PURE__ */ A.jsx("option", { value: "", children: e.placeholder || "Select..." }),
|
|
1745
|
-
(
|
|
1750
|
+
(j = e.options) == null ? void 0 : j.map((P) => /* @__PURE__ */ A.jsx("option", { value: String(P.value), children: P.label }, String(P.value)))
|
|
1746
1751
|
]
|
|
1747
1752
|
}
|
|
1748
1753
|
) });
|
|
1749
1754
|
}, Bn = ({ question: e }) => {
|
|
1750
|
-
const { getAnswer: r, setAnswer: n } = $(),
|
|
1751
|
-
const
|
|
1752
|
-
e.type === "number" ? n(e.key,
|
|
1755
|
+
const { getAnswer: r, setAnswer: n } = $(), c = r(e.key), u = (j) => {
|
|
1756
|
+
const P = j.target.value;
|
|
1757
|
+
e.type === "number" ? n(e.key, P === "" ? void 0 : Number(P)) : n(e.key, P);
|
|
1753
1758
|
};
|
|
1754
1759
|
return /* @__PURE__ */ A.jsx(ke, { question: e, children: /* @__PURE__ */ A.jsxs("div", { className: b.inputWrapper, children: [
|
|
1755
1760
|
/* @__PURE__ */ A.jsx(
|
|
@@ -1757,8 +1762,8 @@ const Yt = ({
|
|
|
1757
1762
|
{
|
|
1758
1763
|
className: b.input,
|
|
1759
1764
|
type: e.type === "number" ? "number" : "text",
|
|
1760
|
-
value:
|
|
1761
|
-
onChange:
|
|
1765
|
+
value: c === void 0 ? "" : String(c),
|
|
1766
|
+
onChange: u,
|
|
1762
1767
|
placeholder: e.placeholder,
|
|
1763
1768
|
min: e.min,
|
|
1764
1769
|
max: e.max
|
|
@@ -1767,7 +1772,7 @@ const Yt = ({
|
|
|
1767
1772
|
e.suffix && /* @__PURE__ */ A.jsx("span", { className: b.inputSuffix, children: e.suffix })
|
|
1768
1773
|
] }) });
|
|
1769
1774
|
};
|
|
1770
|
-
function
|
|
1775
|
+
function xA(e) {
|
|
1771
1776
|
return e === void 0 || isNaN(e) ? "" : e.toLocaleString("en-US");
|
|
1772
1777
|
}
|
|
1773
1778
|
function Xn(e) {
|
|
@@ -1777,21 +1782,21 @@ function Xn(e) {
|
|
|
1777
1782
|
}
|
|
1778
1783
|
function Gn(e, r) {
|
|
1779
1784
|
if (e === void 0 && r === void 0) return;
|
|
1780
|
-
const n = e ?? 0,
|
|
1781
|
-
return
|
|
1785
|
+
const n = e ?? 0, c = r ?? 0;
|
|
1786
|
+
return c > 0 ? `${n + c * 0.5}` : `${n}`;
|
|
1782
1787
|
}
|
|
1783
1788
|
const Dn = ({ question: e }) => {
|
|
1784
|
-
const { getAnswer: r, setAnswer: n } = $(),
|
|
1785
|
-
|
|
1786
|
-
),
|
|
1787
|
-
(
|
|
1788
|
-
const
|
|
1789
|
-
|
|
1789
|
+
const { getAnswer: r, setAnswer: n } = $(), c = r(e.key), [u, j] = T(
|
|
1790
|
+
xA(c)
|
|
1791
|
+
), P = ae(
|
|
1792
|
+
(s) => {
|
|
1793
|
+
const a = s.target.value, o = Xn(a);
|
|
1794
|
+
j(a.replace(/[^0-9,]/g, "")), n(e.key, o);
|
|
1790
1795
|
},
|
|
1791
1796
|
[e.key, n]
|
|
1792
|
-
),
|
|
1793
|
-
|
|
1794
|
-
}, [
|
|
1797
|
+
), d = ae(() => {
|
|
1798
|
+
j(xA(c));
|
|
1799
|
+
}, [c]);
|
|
1795
1800
|
return /* @__PURE__ */ A.jsx(ke, { question: e, children: /* @__PURE__ */ A.jsxs("div", { className: b.inputWrapper, children: [
|
|
1796
1801
|
/* @__PURE__ */ A.jsx("span", { className: b.currencyPrefix, children: "$" }),
|
|
1797
1802
|
/* @__PURE__ */ A.jsx(
|
|
@@ -1800,88 +1805,88 @@ const Dn = ({ question: e }) => {
|
|
|
1800
1805
|
className: b.currencyInput,
|
|
1801
1806
|
type: "text",
|
|
1802
1807
|
inputMode: "numeric",
|
|
1803
|
-
value:
|
|
1804
|
-
onChange:
|
|
1805
|
-
onBlur:
|
|
1808
|
+
value: u,
|
|
1809
|
+
onChange: P,
|
|
1810
|
+
onBlur: d,
|
|
1806
1811
|
placeholder: e.placeholder || "0"
|
|
1807
1812
|
}
|
|
1808
1813
|
)
|
|
1809
1814
|
] }) });
|
|
1810
1815
|
}, Rn = ({ question: e }) => {
|
|
1811
|
-
var
|
|
1812
|
-
const { getAnswer: r, setAnswer: n } = $(),
|
|
1813
|
-
(
|
|
1814
|
-
),
|
|
1815
|
-
const
|
|
1816
|
-
if (
|
|
1816
|
+
var d, s;
|
|
1817
|
+
const { getAnswer: r, setAnswer: n } = $(), c = te(), u = r(e.key) ?? [], j = new Set(
|
|
1818
|
+
(d = e.options) == null ? void 0 : d.filter((a) => a.exclusive).map((a) => String(a.value))
|
|
1819
|
+
), P = (a) => {
|
|
1820
|
+
const o = String(a);
|
|
1821
|
+
if (c.trackPlatform({
|
|
1817
1822
|
checkboxClickEvent: {
|
|
1818
1823
|
targetName: `partner-sdk-${e.key}`,
|
|
1819
|
-
optionName:
|
|
1824
|
+
optionName: o
|
|
1820
1825
|
}
|
|
1821
|
-
}),
|
|
1826
|
+
}), u.includes(o)) {
|
|
1822
1827
|
n(
|
|
1823
1828
|
e.key,
|
|
1824
|
-
|
|
1829
|
+
u.filter((v) => v !== o)
|
|
1825
1830
|
);
|
|
1826
1831
|
return;
|
|
1827
1832
|
}
|
|
1828
|
-
if (
|
|
1829
|
-
n(e.key, [
|
|
1833
|
+
if (j.has(o)) {
|
|
1834
|
+
n(e.key, [o]);
|
|
1830
1835
|
return;
|
|
1831
1836
|
}
|
|
1832
|
-
const i = [...
|
|
1837
|
+
const i = [...u.filter((v) => !j.has(v)), o];
|
|
1833
1838
|
n(e.key, i);
|
|
1834
1839
|
};
|
|
1835
|
-
return /* @__PURE__ */ A.jsx(ke, { question: e, children: /* @__PURE__ */ A.jsx("div", { className: b.checkboxGroup, children: (
|
|
1836
|
-
const
|
|
1840
|
+
return /* @__PURE__ */ A.jsx(ke, { question: e, children: /* @__PURE__ */ A.jsx("div", { className: b.checkboxGroup, children: (s = e.options) == null ? void 0 : s.map((a) => {
|
|
1841
|
+
const o = u.includes(String(a.value));
|
|
1837
1842
|
return /* @__PURE__ */ A.jsxs(
|
|
1838
1843
|
"label",
|
|
1839
1844
|
{
|
|
1840
|
-
className: `${b.checkboxOption} ${
|
|
1845
|
+
className: `${b.checkboxOption} ${o ? b.checkboxOptionSelected : ""}`.trim(),
|
|
1841
1846
|
children: [
|
|
1842
1847
|
/* @__PURE__ */ A.jsx(
|
|
1843
1848
|
"input",
|
|
1844
1849
|
{
|
|
1845
1850
|
type: "checkbox",
|
|
1846
1851
|
className: b.checkboxInput,
|
|
1847
|
-
checked:
|
|
1848
|
-
onChange: () =>
|
|
1852
|
+
checked: o,
|
|
1853
|
+
onChange: () => P(a.value)
|
|
1849
1854
|
}
|
|
1850
1855
|
),
|
|
1851
1856
|
/* @__PURE__ */ A.jsxs("span", { className: b.checkboxLabelGroup, children: [
|
|
1852
|
-
/* @__PURE__ */ A.jsx("span", { className: b.checkboxLabel, children:
|
|
1853
|
-
|
|
1857
|
+
/* @__PURE__ */ A.jsx("span", { className: b.checkboxLabel, children: a.label }),
|
|
1858
|
+
a.description && /* @__PURE__ */ A.jsx("span", { className: b.checkboxDescription, children: a.description })
|
|
1854
1859
|
] })
|
|
1855
1860
|
]
|
|
1856
1861
|
},
|
|
1857
|
-
String(
|
|
1862
|
+
String(a.value)
|
|
1858
1863
|
);
|
|
1859
1864
|
}) }) });
|
|
1860
1865
|
}, qn = ({ question: e }) => {
|
|
1861
|
-
var
|
|
1862
|
-
const { getAnswer: r, setAnswer: n } = $(),
|
|
1863
|
-
|
|
1866
|
+
var d, s;
|
|
1867
|
+
const { getAnswer: r, setAnswer: n } = $(), c = te(), u = r(e.key), j = (a) => {
|
|
1868
|
+
c.trackPlatform({
|
|
1864
1869
|
radioClickEvent: {
|
|
1865
1870
|
targetName: `partner-sdk-${e.key}`,
|
|
1866
|
-
optionName: String(
|
|
1871
|
+
optionName: String(a)
|
|
1867
1872
|
}
|
|
1868
|
-
}), e.type === "number" ? n(e.key, Number(
|
|
1869
|
-
},
|
|
1870
|
-
return /* @__PURE__ */ A.jsx(ke, { question: e, children: /* @__PURE__ */ A.jsx("div", { className:
|
|
1871
|
-
const
|
|
1872
|
-
return
|
|
1873
|
+
}), e.type === "number" ? n(e.key, Number(a)) : n(e.key, String(a));
|
|
1874
|
+
}, P = ((d = e.options) == null ? void 0 : d.length) === 2;
|
|
1875
|
+
return /* @__PURE__ */ A.jsx(ke, { question: e, children: /* @__PURE__ */ A.jsx("div", { className: P ? b.radioGroupInline : b.radioGroup, children: (s = e.options) == null ? void 0 : s.map((a) => {
|
|
1876
|
+
const o = String(u) === String(a.value);
|
|
1877
|
+
return P ? /* @__PURE__ */ A.jsx(
|
|
1873
1878
|
"button",
|
|
1874
1879
|
{
|
|
1875
1880
|
type: "button",
|
|
1876
|
-
className: `${b.radioButtonPill} ${
|
|
1877
|
-
onClick: () =>
|
|
1878
|
-
children:
|
|
1881
|
+
className: `${b.radioButtonPill} ${o ? b.radioButtonPillSelected : ""}`.trim(),
|
|
1882
|
+
onClick: () => j(a.value),
|
|
1883
|
+
children: a.label
|
|
1879
1884
|
},
|
|
1880
|
-
String(
|
|
1885
|
+
String(a.value)
|
|
1881
1886
|
) : /* @__PURE__ */ A.jsxs(
|
|
1882
1887
|
"label",
|
|
1883
1888
|
{
|
|
1884
|
-
className: `${b.radioOption} ${
|
|
1889
|
+
className: `${b.radioOption} ${o ? b.radioOptionSelected : ""}`.trim(),
|
|
1885
1890
|
children: [
|
|
1886
1891
|
/* @__PURE__ */ A.jsx(
|
|
1887
1892
|
"input",
|
|
@@ -1889,55 +1894,55 @@ const Dn = ({ question: e }) => {
|
|
|
1889
1894
|
type: "radio",
|
|
1890
1895
|
className: b.radioInput,
|
|
1891
1896
|
name: e.key,
|
|
1892
|
-
checked:
|
|
1893
|
-
onChange: () =>
|
|
1897
|
+
checked: o,
|
|
1898
|
+
onChange: () => j(a.value)
|
|
1894
1899
|
}
|
|
1895
1900
|
),
|
|
1896
|
-
/* @__PURE__ */ A.jsx("span", { className: b.radioLabel, children:
|
|
1901
|
+
/* @__PURE__ */ A.jsx("span", { className: b.radioLabel, children: a.label })
|
|
1897
1902
|
]
|
|
1898
1903
|
},
|
|
1899
|
-
String(
|
|
1904
|
+
String(a.value)
|
|
1900
1905
|
);
|
|
1901
1906
|
}) }) });
|
|
1902
1907
|
}, Wn = ({ question: e }) => {
|
|
1903
|
-
var
|
|
1904
|
-
const { getAnswer: r, setAnswer: n } = $(),
|
|
1905
|
-
|
|
1908
|
+
var d, s;
|
|
1909
|
+
const { getAnswer: r, setAnswer: n } = $(), c = te(), u = r(e.key), j = (a) => {
|
|
1910
|
+
c.trackPlatform({
|
|
1906
1911
|
buttonClickEvent: { targetName: `partner-sdk-${e.key}` }
|
|
1907
|
-
}), e.type === "number" ? n(e.key, Number(
|
|
1908
|
-
},
|
|
1912
|
+
}), e.type === "number" ? n(e.key, Number(a)) : n(e.key, String(a));
|
|
1913
|
+
}, P = (d = e.options) == null ? void 0 : d.some((a) => a.image);
|
|
1909
1914
|
return /* @__PURE__ */ A.jsx(ke, { question: e, children: /* @__PURE__ */ A.jsx(
|
|
1910
1915
|
"div",
|
|
1911
1916
|
{
|
|
1912
|
-
className:
|
|
1913
|
-
children: (
|
|
1914
|
-
const
|
|
1917
|
+
className: P ? b.cardGroupWithImages : b.cardGroup,
|
|
1918
|
+
children: (s = e.options) == null ? void 0 : s.map((a) => {
|
|
1919
|
+
const o = String(u) === String(a.value);
|
|
1915
1920
|
return /* @__PURE__ */ A.jsxs(
|
|
1916
1921
|
"button",
|
|
1917
1922
|
{
|
|
1918
1923
|
type: "button",
|
|
1919
|
-
className: `${
|
|
1920
|
-
onClick: () =>
|
|
1924
|
+
className: `${P ? b.cardWithImage : b.card} ${o ? b.cardSelected : ""}`.trim(),
|
|
1925
|
+
onClick: () => j(a.value),
|
|
1921
1926
|
children: [
|
|
1922
|
-
|
|
1927
|
+
a.image && /* @__PURE__ */ A.jsx(
|
|
1923
1928
|
"img",
|
|
1924
1929
|
{
|
|
1925
|
-
src:
|
|
1926
|
-
alt:
|
|
1930
|
+
src: a.image,
|
|
1931
|
+
alt: a.label,
|
|
1927
1932
|
className: b.cardImage
|
|
1928
1933
|
}
|
|
1929
1934
|
),
|
|
1930
|
-
/* @__PURE__ */ A.jsx("span", { className: b.cardLabel, children:
|
|
1931
|
-
|
|
1935
|
+
/* @__PURE__ */ A.jsx("span", { className: b.cardLabel, children: a.label }),
|
|
1936
|
+
a.description && /* @__PURE__ */ A.jsx("span", { className: b.cardDescription, children: a.description })
|
|
1932
1937
|
]
|
|
1933
1938
|
},
|
|
1934
|
-
String(
|
|
1939
|
+
String(a.value)
|
|
1935
1940
|
);
|
|
1936
1941
|
})
|
|
1937
1942
|
}
|
|
1938
1943
|
) });
|
|
1939
1944
|
}, Mn = ({ question: e }) => {
|
|
1940
|
-
const { getAnswer: r, setAnswer: n, validationErrors:
|
|
1945
|
+
const { getAnswer: r, setAnswer: n, validationErrors: c } = $(), u = te(), j = r(e.key) === !0, P = c[e.key];
|
|
1941
1946
|
return /* @__PURE__ */ A.jsxs("div", { className: b.toggleWrapper, children: [
|
|
1942
1947
|
/* @__PURE__ */ A.jsxs("label", { className: b.toggleBare, children: [
|
|
1943
1948
|
/* @__PURE__ */ A.jsx(
|
|
@@ -1945,14 +1950,14 @@ const Dn = ({ question: e }) => {
|
|
|
1945
1950
|
{
|
|
1946
1951
|
type: "checkbox",
|
|
1947
1952
|
className: b.toggleCheckbox,
|
|
1948
|
-
checked:
|
|
1953
|
+
checked: j,
|
|
1949
1954
|
onChange: () => {
|
|
1950
|
-
|
|
1955
|
+
u.trackPlatform({
|
|
1951
1956
|
checkboxClickEvent: {
|
|
1952
1957
|
targetName: `partner-sdk-${e.key}`,
|
|
1953
|
-
optionName: String(!
|
|
1958
|
+
optionName: String(!j)
|
|
1954
1959
|
}
|
|
1955
|
-
}), n(e.key, !
|
|
1960
|
+
}), n(e.key, !j);
|
|
1956
1961
|
}
|
|
1957
1962
|
}
|
|
1958
1963
|
),
|
|
@@ -1961,7 +1966,7 @@ const Dn = ({ question: e }) => {
|
|
|
1961
1966
|
e.description && /* @__PURE__ */ A.jsx("span", { className: b.toggleBareDescription, children: e.description })
|
|
1962
1967
|
] })
|
|
1963
1968
|
] }),
|
|
1964
|
-
|
|
1969
|
+
P && /* @__PURE__ */ A.jsx("p", { className: b.fieldError, children: P })
|
|
1965
1970
|
] });
|
|
1966
1971
|
};
|
|
1967
1972
|
function Ye(e) {
|
|
@@ -1971,72 +1976,74 @@ function Ke(e) {
|
|
|
1971
1976
|
return e.replace(/\D/g, "").slice(0, 10);
|
|
1972
1977
|
}
|
|
1973
1978
|
const In = ({ question: e }) => {
|
|
1974
|
-
const { getAnswer: r, setAnswer: n } = $(),
|
|
1975
|
-
() => Ye(Ke(
|
|
1976
|
-
),
|
|
1977
|
-
(
|
|
1978
|
-
const
|
|
1979
|
-
|
|
1979
|
+
const { getAnswer: r, setAnswer: n } = $(), c = r(e.key) ?? "", [u, j] = T(
|
|
1980
|
+
() => Ye(Ke(c))
|
|
1981
|
+
), P = ae(
|
|
1982
|
+
(s) => {
|
|
1983
|
+
const a = Ke(s.target.value);
|
|
1984
|
+
j(Ye(a)), n(e.key, a);
|
|
1980
1985
|
},
|
|
1981
1986
|
[e.key, n]
|
|
1982
|
-
),
|
|
1983
|
-
const
|
|
1984
|
-
|
|
1985
|
-
}, [
|
|
1987
|
+
), d = ae(() => {
|
|
1988
|
+
const s = Ke(c);
|
|
1989
|
+
j(Ye(s));
|
|
1990
|
+
}, [c]);
|
|
1986
1991
|
return /* @__PURE__ */ A.jsx(ke, { question: e, children: /* @__PURE__ */ A.jsx(
|
|
1987
1992
|
"input",
|
|
1988
1993
|
{
|
|
1989
1994
|
className: b.input,
|
|
1990
1995
|
type: "tel",
|
|
1991
1996
|
inputMode: "numeric",
|
|
1992
|
-
value:
|
|
1993
|
-
onChange:
|
|
1994
|
-
onBlur:
|
|
1997
|
+
value: u,
|
|
1998
|
+
onChange: P,
|
|
1999
|
+
onBlur: d,
|
|
1995
2000
|
placeholder: e.placeholder || "(000) 000-0000"
|
|
1996
2001
|
}
|
|
1997
2002
|
) });
|
|
1998
2003
|
}, Le = /* @__PURE__ */ new Set(["input", "dropdown", "currency", "phone"]), Zn = ({ question: e }) => {
|
|
1999
|
-
const { getAnswer: r, setAnswer: n } = $(),
|
|
2000
|
-
|
|
2004
|
+
const { getAnswer: r, setAnswer: n } = $(), c = te(), u = L(c);
|
|
2005
|
+
u.current = c;
|
|
2006
|
+
const j = Le.has(e.style), P = _e(
|
|
2007
|
+
j ? `partner-sdk-${e.key}` : ""
|
|
2001
2008
|
);
|
|
2002
2009
|
_(() => {
|
|
2003
2010
|
r(e.key) === void 0 && (e.defaultValue !== void 0 ? n(e.key, e.defaultValue) : e.style === "toggle" && e.required && n(e.key, !1));
|
|
2004
2011
|
}, []);
|
|
2005
|
-
const
|
|
2006
|
-
Le.has(e.style) &&
|
|
2012
|
+
const d = ae(() => {
|
|
2013
|
+
Le.has(e.style) && u.current.trackPlatform({
|
|
2007
2014
|
inputFocusEvent: { targetName: `partner-sdk-${e.key}` }
|
|
2008
2015
|
});
|
|
2009
2016
|
}, [e.style, e.key]);
|
|
2010
|
-
let
|
|
2017
|
+
let s;
|
|
2011
2018
|
switch (e.style) {
|
|
2012
2019
|
case "dropdown":
|
|
2013
|
-
|
|
2020
|
+
s = /* @__PURE__ */ A.jsx(mn, { question: e });
|
|
2014
2021
|
break;
|
|
2015
2022
|
case "input":
|
|
2016
|
-
|
|
2023
|
+
s = /* @__PURE__ */ A.jsx(Bn, { question: e });
|
|
2017
2024
|
break;
|
|
2018
2025
|
case "currency":
|
|
2019
|
-
|
|
2026
|
+
s = /* @__PURE__ */ A.jsx(Dn, { question: e });
|
|
2020
2027
|
break;
|
|
2021
2028
|
case "checkbox":
|
|
2022
|
-
|
|
2029
|
+
s = /* @__PURE__ */ A.jsx(Rn, { question: e });
|
|
2023
2030
|
break;
|
|
2024
2031
|
case "radio":
|
|
2025
|
-
|
|
2032
|
+
s = /* @__PURE__ */ A.jsx(qn, { question: e });
|
|
2026
2033
|
break;
|
|
2027
2034
|
case "card-select":
|
|
2028
|
-
|
|
2035
|
+
s = /* @__PURE__ */ A.jsx(Wn, { question: e });
|
|
2029
2036
|
break;
|
|
2030
2037
|
case "phone":
|
|
2031
|
-
|
|
2038
|
+
s = /* @__PURE__ */ A.jsx(In, { question: e });
|
|
2032
2039
|
break;
|
|
2033
2040
|
case "toggle":
|
|
2034
|
-
|
|
2041
|
+
s = /* @__PURE__ */ A.jsx(Mn, { question: e });
|
|
2035
2042
|
break;
|
|
2036
2043
|
default:
|
|
2037
2044
|
return null;
|
|
2038
2045
|
}
|
|
2039
|
-
return Le.has(e.style) ? /* @__PURE__ */ A.jsx("div", { ref:
|
|
2046
|
+
return Le.has(e.style) ? /* @__PURE__ */ A.jsx("div", { ref: P, onFocus: d, children: s }) : /* @__PURE__ */ A.jsx(A.Fragment, { children: s });
|
|
2040
2047
|
}, Tn = () => /* @__PURE__ */ A.jsx(
|
|
2041
2048
|
"svg",
|
|
2042
2049
|
{
|
|
@@ -2057,27 +2064,27 @@ const In = ({ question: e }) => {
|
|
|
2057
2064
|
)
|
|
2058
2065
|
}
|
|
2059
2066
|
), Jn = () => {
|
|
2060
|
-
var
|
|
2061
|
-
const { pages: e, currentPageIndex: r, goToNext: n, goToPrev:
|
|
2062
|
-
|
|
2067
|
+
var o;
|
|
2068
|
+
const { pages: e, currentPageIndex: r, goToNext: n, goToPrev: c } = $(), u = te(), j = r === 0, P = r === e.length - 1, d = (o = e[r]) == null ? void 0 : o.id, s = () => {
|
|
2069
|
+
u.trackPlatform({
|
|
2063
2070
|
buttonClickEvent: {
|
|
2064
|
-
targetName:
|
|
2071
|
+
targetName: P ? "partner-sdk-submit" : `partner-sdk-continue-${d}`
|
|
2065
2072
|
}
|
|
2066
2073
|
}), n();
|
|
2067
|
-
},
|
|
2068
|
-
|
|
2074
|
+
}, a = () => {
|
|
2075
|
+
u.trackPlatform({
|
|
2069
2076
|
buttonClickEvent: {
|
|
2070
|
-
targetName: `partner-sdk-back-${
|
|
2077
|
+
targetName: `partner-sdk-back-${d}`
|
|
2071
2078
|
}
|
|
2072
|
-
}),
|
|
2079
|
+
}), c();
|
|
2073
2080
|
};
|
|
2074
2081
|
return /* @__PURE__ */ A.jsxs("div", { className: l.navigationContainer, children: [
|
|
2075
|
-
!
|
|
2082
|
+
!j && /* @__PURE__ */ A.jsx(
|
|
2076
2083
|
"button",
|
|
2077
2084
|
{
|
|
2078
2085
|
type: "button",
|
|
2079
2086
|
className: l.buttonSecondary,
|
|
2080
|
-
onClick:
|
|
2087
|
+
onClick: a,
|
|
2081
2088
|
children: "Back"
|
|
2082
2089
|
}
|
|
2083
2090
|
),
|
|
@@ -2086,7 +2093,7 @@ const In = ({ question: e }) => {
|
|
|
2086
2093
|
{
|
|
2087
2094
|
type: "button",
|
|
2088
2095
|
className: l.buttonPrimary,
|
|
2089
|
-
onClick:
|
|
2096
|
+
onClick: s,
|
|
2090
2097
|
children: [
|
|
2091
2098
|
/* @__PURE__ */ A.jsx("span", { children: "Continue" }),
|
|
2092
2099
|
/* @__PURE__ */ A.jsx("span", { className: l.arrowIcon, children: /* @__PURE__ */ A.jsx(Tn, {}) })
|
|
@@ -2095,57 +2102,57 @@ const In = ({ question: e }) => {
|
|
|
2095
2102
|
)
|
|
2096
2103
|
] });
|
|
2097
2104
|
}, hn = () => {
|
|
2098
|
-
const { pages: e, currentPageIndex: r, getAnswer: n } = $(),
|
|
2105
|
+
const { pages: e, currentPageIndex: r, getAnswer: n } = $(), c = te(), u = e[r], j = L(null), P = L(!0);
|
|
2099
2106
|
_(() => {
|
|
2100
|
-
|
|
2101
|
-
}, [r]), _(() => {
|
|
2102
|
-
if (
|
|
2103
|
-
|
|
2107
|
+
c.trackPlatform({ pageViewEvent: {} });
|
|
2108
|
+
}, [r, c]), _(() => {
|
|
2109
|
+
if (P.current) {
|
|
2110
|
+
P.current = !1;
|
|
2104
2111
|
return;
|
|
2105
2112
|
}
|
|
2106
|
-
const
|
|
2107
|
-
if (!
|
|
2108
|
-
let
|
|
2109
|
-
for (;
|
|
2110
|
-
if (
|
|
2111
|
-
|
|
2113
|
+
const s = j.current;
|
|
2114
|
+
if (!s) return;
|
|
2115
|
+
let a = s.parentElement;
|
|
2116
|
+
for (; a; ) {
|
|
2117
|
+
if (a.scrollHeight > a.clientHeight) {
|
|
2118
|
+
a.scrollTo({ top: 0, behavior: "smooth" });
|
|
2112
2119
|
return;
|
|
2113
2120
|
}
|
|
2114
|
-
|
|
2121
|
+
a = a.parentElement;
|
|
2115
2122
|
}
|
|
2116
|
-
|
|
2123
|
+
s.scrollTop = 0;
|
|
2117
2124
|
}, [r]);
|
|
2118
|
-
const
|
|
2119
|
-
() =>
|
|
2120
|
-
[
|
|
2125
|
+
const d = Be(
|
|
2126
|
+
() => u ? gA(u, n) : null,
|
|
2127
|
+
[u, n]
|
|
2121
2128
|
);
|
|
2122
|
-
return !
|
|
2123
|
-
/* @__PURE__ */ A.jsx("h2", { className: l.pageTitle, children:
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
const
|
|
2129
|
+
return !u || !d ? null : /* @__PURE__ */ A.jsxs("div", { ref: j, className: l.pageContainer, children: [
|
|
2130
|
+
/* @__PURE__ */ A.jsx("h2", { className: l.pageTitle, children: u.title }),
|
|
2131
|
+
u.subtitle && /* @__PURE__ */ A.jsx("p", { className: l.pageSubtitle, children: u.subtitle }),
|
|
2132
|
+
d.sections.map((s) => {
|
|
2133
|
+
const a = !!s.icon;
|
|
2127
2134
|
return /* @__PURE__ */ A.jsxs(
|
|
2128
2135
|
"div",
|
|
2129
2136
|
{
|
|
2130
|
-
className: `${l.section} ${
|
|
2137
|
+
className: `${l.section} ${a ? l.sectionGroup : ""} ${!a && s.title ? l.sectionSub : ""}`.trim(),
|
|
2131
2138
|
children: [
|
|
2132
|
-
|
|
2133
|
-
|
|
2139
|
+
s.title && /* @__PURE__ */ A.jsxs("div", { className: l.sectionHeader, children: [
|
|
2140
|
+
s.icon && /* @__PURE__ */ A.jsx("span", { className: l.sectionIcon, children: s.icon }),
|
|
2134
2141
|
/* @__PURE__ */ A.jsx(
|
|
2135
2142
|
"h3",
|
|
2136
2143
|
{
|
|
2137
|
-
className:
|
|
2138
|
-
children:
|
|
2144
|
+
className: a ? l.sectionTitle : l.subsectionTitle,
|
|
2145
|
+
children: s.title
|
|
2139
2146
|
}
|
|
2140
2147
|
)
|
|
2141
2148
|
] }),
|
|
2142
|
-
|
|
2149
|
+
s.questions.length > 0 && /* @__PURE__ */ A.jsx("div", { className: l.sectionFields, children: s.questions.map((o) => /* @__PURE__ */ A.jsx(Zn, { question: o }, o.key)) })
|
|
2143
2150
|
]
|
|
2144
2151
|
},
|
|
2145
|
-
|
|
2152
|
+
s.id
|
|
2146
2153
|
);
|
|
2147
2154
|
}),
|
|
2148
|
-
|
|
2155
|
+
u.id === "contact-info" && /* @__PURE__ */ A.jsxs("p", { className: l.legalText, children: [
|
|
2149
2156
|
"By submitting your details, you consent to receive a no-obligation offer from",
|
|
2150
2157
|
" ",
|
|
2151
2158
|
/* @__PURE__ */ A.jsx(
|
|
@@ -2188,10 +2195,10 @@ const In = ({ question: e }) => {
|
|
|
2188
2195
|
function Fn(e, r, n) {
|
|
2189
2196
|
return e.startsWith("http://") || e.startsWith("https://") ? `url-${encodeURIComponent(e)}(${r},${n})` : `${e}(${r},${n})`;
|
|
2190
2197
|
}
|
|
2191
|
-
function
|
|
2192
|
-
const n = (r == null ? void 0 : r.mapboxAccessToken) ?? Ln,
|
|
2198
|
+
function zA(e, r) {
|
|
2199
|
+
const n = (r == null ? void 0 : r.mapboxAccessToken) ?? Ln, c = (r == null ? void 0 : r.mapPinMarker) ?? En, u = (r == null ? void 0 : r.width) ?? Qn, j = (r == null ? void 0 : r.height) ?? Cn, P = (r == null ? void 0 : r.zoom) ?? Un, [d, s] = T(void 0), [a, o] = T("loading");
|
|
2193
2200
|
return _(() => {
|
|
2194
|
-
|
|
2201
|
+
o("loading");
|
|
2195
2202
|
const O = [
|
|
2196
2203
|
e.street1,
|
|
2197
2204
|
e.city,
|
|
@@ -2204,18 +2211,18 @@ function gA(e, r) {
|
|
|
2204
2211
|
try {
|
|
2205
2212
|
const I = `${Yn}/${encodeURIComponent(O)}.json?access_token=${n}&limit=1`, G = await fetch(I);
|
|
2206
2213
|
if (!G.ok || i) {
|
|
2207
|
-
i ||
|
|
2214
|
+
i || o("error");
|
|
2208
2215
|
return;
|
|
2209
2216
|
}
|
|
2210
2217
|
const w = (B = (R = (await G.json()).features) == null ? void 0 : R[0]) == null ? void 0 : B.center;
|
|
2211
2218
|
if (!w || i) {
|
|
2212
|
-
i ||
|
|
2219
|
+
i || o("error");
|
|
2213
2220
|
return;
|
|
2214
2221
|
}
|
|
2215
|
-
const [q, M] = w, C = Fn(
|
|
2216
|
-
i ||
|
|
2222
|
+
const [q, M] = w, C = Fn(c, q, M), X = `${Kn}/${C}/${q},${M},${P}/${u}x${j}@2x?access_token=${n}&attribution=false&logo=false`;
|
|
2223
|
+
i || s(X);
|
|
2217
2224
|
} catch {
|
|
2218
|
-
i ||
|
|
2225
|
+
i || o("error");
|
|
2219
2226
|
}
|
|
2220
2227
|
}
|
|
2221
2228
|
return v(), () => {
|
|
@@ -2227,11 +2234,11 @@ function gA(e, r) {
|
|
|
2227
2234
|
e.state,
|
|
2228
2235
|
e.postalCode,
|
|
2229
2236
|
n,
|
|
2230
|
-
|
|
2231
|
-
s,
|
|
2237
|
+
c,
|
|
2232
2238
|
u,
|
|
2233
|
-
j
|
|
2234
|
-
|
|
2239
|
+
j,
|
|
2240
|
+
P
|
|
2241
|
+
]), { url: d, status: a };
|
|
2235
2242
|
}
|
|
2236
2243
|
const _n = () => /* @__PURE__ */ A.jsxs(
|
|
2237
2244
|
"svg",
|
|
@@ -2314,29 +2321,29 @@ const _n = () => /* @__PURE__ */ A.jsxs(
|
|
|
2314
2321
|
strokeLinejoin: "round",
|
|
2315
2322
|
children: /* @__PURE__ */ A.jsx("path", { d: "M20 6L9 17l-5-5" })
|
|
2316
2323
|
}
|
|
2317
|
-
),
|
|
2324
|
+
), kA = 4;
|
|
2318
2325
|
function rc(e, r) {
|
|
2319
|
-
var
|
|
2326
|
+
var c, u;
|
|
2320
2327
|
const n = [];
|
|
2321
|
-
for (const
|
|
2322
|
-
for (const
|
|
2323
|
-
const
|
|
2324
|
-
if (!(
|
|
2325
|
-
if (
|
|
2326
|
-
n.push(
|
|
2327
|
-
else if (
|
|
2328
|
-
for (const
|
|
2329
|
-
if (
|
|
2330
|
-
const
|
|
2331
|
-
|
|
2328
|
+
for (const j of e.sections)
|
|
2329
|
+
for (const P of j.questions) {
|
|
2330
|
+
const d = r(P.key);
|
|
2331
|
+
if (!(d === void 0 || d === "" || d === !1)) {
|
|
2332
|
+
if (P.style === "toggle" && d === !0)
|
|
2333
|
+
n.push(P.shortLabel || P.question);
|
|
2334
|
+
else if (P.style === "checkbox" && Array.isArray(d) && d.length > 0)
|
|
2335
|
+
for (const s of d) {
|
|
2336
|
+
if (s === "none") continue;
|
|
2337
|
+
const a = (c = P.options) == null ? void 0 : c.find((o) => String(o.value) === s);
|
|
2338
|
+
a && n.push(a.shortLabel || a.label);
|
|
2332
2339
|
}
|
|
2333
|
-
else if (
|
|
2334
|
-
const
|
|
2335
|
-
(
|
|
2340
|
+
else if (P.style === "card-select" || P.style === "radio" || P.style === "dropdown") {
|
|
2341
|
+
const s = (u = P.options) == null ? void 0 : u.find(
|
|
2342
|
+
(a) => String(a.value) === String(d)
|
|
2336
2343
|
);
|
|
2337
|
-
if (
|
|
2338
|
-
const
|
|
2339
|
-
n.push(`${
|
|
2344
|
+
if (s) {
|
|
2345
|
+
const a = P.shortLabel ? `${P.shortLabel}: ` : "";
|
|
2346
|
+
n.push(`${a}${s.shortLabel || s.label}`);
|
|
2340
2347
|
}
|
|
2341
2348
|
}
|
|
2342
2349
|
}
|
|
@@ -2347,19 +2354,19 @@ const nc = ({
|
|
|
2347
2354
|
address: e,
|
|
2348
2355
|
mapImageUrl: r,
|
|
2349
2356
|
mapboxAccessToken: n,
|
|
2350
|
-
mapPinMarker:
|
|
2351
|
-
onEditAddress:
|
|
2357
|
+
mapPinMarker: c,
|
|
2358
|
+
onEditAddress: u
|
|
2352
2359
|
}) => {
|
|
2353
|
-
const { url:
|
|
2360
|
+
const { url: j } = zA(e, {
|
|
2354
2361
|
mapboxAccessToken: n,
|
|
2355
|
-
mapPinMarker:
|
|
2356
|
-
}), [
|
|
2362
|
+
mapPinMarker: c
|
|
2363
|
+
}), [P, d] = T(!1), { pages: s, currentPageIndex: a, getAnswer: o, goToPage: O } = $(), i = te(), v = o("home.bedrooms"), R = o("home.bathrooms.full"), B = o("home.bathrooms.half"), I = Gn(R, B), G = o("home.above_grade_sq_ft"), N = o("home.year_built"), w = Be(() => {
|
|
2357
2364
|
var M;
|
|
2358
2365
|
const q = [];
|
|
2359
|
-
for (let C = 1; C <
|
|
2360
|
-
const X =
|
|
2366
|
+
for (let C = 1; C < a; C++) {
|
|
2367
|
+
const X = s[C];
|
|
2361
2368
|
if (!X) continue;
|
|
2362
|
-
const Z =
|
|
2369
|
+
const Z = gA(X, o), ee = rc(Z, o);
|
|
2363
2370
|
ee.length > 0 && q.push({
|
|
2364
2371
|
pageIndex: C,
|
|
2365
2372
|
title: ((M = X.stepper) == null ? void 0 : M.label) || X.title,
|
|
@@ -2367,15 +2374,15 @@ const nc = ({
|
|
|
2367
2374
|
});
|
|
2368
2375
|
}
|
|
2369
2376
|
return q;
|
|
2370
|
-
}, [
|
|
2377
|
+
}, [s, a, o]);
|
|
2371
2378
|
return /* @__PURE__ */ A.jsxs("div", { className: l.reviewCard, children: [
|
|
2372
|
-
/* @__PURE__ */ A.jsx("div", { className: l.reviewMapArea, children: r ? /* @__PURE__ */ A.jsx("img", { src: r, alt: "Map", className: l.reviewMapImage }) :
|
|
2379
|
+
/* @__PURE__ */ A.jsx("div", { className: l.reviewMapArea, children: r ? /* @__PURE__ */ A.jsx("img", { src: r, alt: "Map", className: l.reviewMapImage }) : j ? /* @__PURE__ */ A.jsx(
|
|
2373
2380
|
"img",
|
|
2374
2381
|
{
|
|
2375
|
-
src:
|
|
2382
|
+
src: j,
|
|
2376
2383
|
alt: "Map",
|
|
2377
|
-
className: `${l.reviewMapImage} ${l.reviewMapDynamic} ${
|
|
2378
|
-
onLoad: () =>
|
|
2384
|
+
className: `${l.reviewMapImage} ${l.reviewMapDynamic} ${P ? l.reviewMapLoaded : ""}`.trim(),
|
|
2385
|
+
onLoad: () => d(!0)
|
|
2379
2386
|
}
|
|
2380
2387
|
) : /* @__PURE__ */ A.jsx(
|
|
2381
2388
|
"img",
|
|
@@ -2400,7 +2407,7 @@ const nc = ({
|
|
|
2400
2407
|
e.postalCode
|
|
2401
2408
|
] })
|
|
2402
2409
|
] }),
|
|
2403
|
-
|
|
2410
|
+
u && /* @__PURE__ */ A.jsx(
|
|
2404
2411
|
"button",
|
|
2405
2412
|
{
|
|
2406
2413
|
type: "button",
|
|
@@ -2408,7 +2415,7 @@ const nc = ({
|
|
|
2408
2415
|
onClick: () => {
|
|
2409
2416
|
i.trackPlatform({
|
|
2410
2417
|
linkClickEvent: { targetName: "partner-sdk-edit-address" }
|
|
2411
|
-
}),
|
|
2418
|
+
}), u();
|
|
2412
2419
|
},
|
|
2413
2420
|
children: "Edit"
|
|
2414
2421
|
}
|
|
@@ -2456,7 +2463,7 @@ function cc({
|
|
|
2456
2463
|
labels: r,
|
|
2457
2464
|
onEdit: n
|
|
2458
2465
|
}) {
|
|
2459
|
-
const [
|
|
2466
|
+
const [c, u] = T(!1), j = c ? r : r.slice(0, kA), P = r.length - kA;
|
|
2460
2467
|
return /* @__PURE__ */ A.jsxs("div", { className: l.reviewSection, children: [
|
|
2461
2468
|
/* @__PURE__ */ A.jsxs("div", { className: l.reviewSectionHeader, children: [
|
|
2462
2469
|
/* @__PURE__ */ A.jsx("span", { className: l.reviewSectionTitle, children: e }),
|
|
@@ -2470,19 +2477,19 @@ function cc({
|
|
|
2470
2477
|
}
|
|
2471
2478
|
)
|
|
2472
2479
|
] }),
|
|
2473
|
-
/* @__PURE__ */ A.jsx("ul", { className: l.reviewCheckList, children:
|
|
2480
|
+
/* @__PURE__ */ A.jsx("ul", { className: l.reviewCheckList, children: j.map((d, s) => /* @__PURE__ */ A.jsxs("li", { className: l.reviewCheckItem, children: [
|
|
2474
2481
|
/* @__PURE__ */ A.jsx("span", { className: l.reviewCheckIcon, children: /* @__PURE__ */ A.jsx(tc, {}) }),
|
|
2475
|
-
|
|
2476
|
-
] },
|
|
2477
|
-
!
|
|
2482
|
+
d
|
|
2483
|
+
] }, s)) }),
|
|
2484
|
+
!c && P > 0 && /* @__PURE__ */ A.jsxs(
|
|
2478
2485
|
"button",
|
|
2479
2486
|
{
|
|
2480
2487
|
type: "button",
|
|
2481
2488
|
className: l.reviewMoreLink,
|
|
2482
|
-
onClick: () =>
|
|
2489
|
+
onClick: () => u(!0),
|
|
2483
2490
|
children: [
|
|
2484
2491
|
"& ",
|
|
2485
|
-
|
|
2492
|
+
P,
|
|
2486
2493
|
" more"
|
|
2487
2494
|
]
|
|
2488
2495
|
}
|
|
@@ -2493,11 +2500,11 @@ const ac = ({
|
|
|
2493
2500
|
address: e,
|
|
2494
2501
|
mapImageUrl: r,
|
|
2495
2502
|
mapboxAccessToken: n,
|
|
2496
|
-
mapPinMarker:
|
|
2497
|
-
showAttribution:
|
|
2498
|
-
onEditAddress:
|
|
2503
|
+
mapPinMarker: c,
|
|
2504
|
+
showAttribution: u = !0,
|
|
2505
|
+
onEditAddress: j
|
|
2499
2506
|
}) => /* @__PURE__ */ A.jsxs("div", { className: l.layoutContainer, children: [
|
|
2500
|
-
/* @__PURE__ */ A.jsx("div", { className: l.sidebarContainer, children: /* @__PURE__ */ A.jsx(hr, { showAttribution:
|
|
2507
|
+
/* @__PURE__ */ A.jsx("div", { className: l.sidebarContainer, children: /* @__PURE__ */ A.jsx(hr, { showAttribution: u }) }),
|
|
2501
2508
|
/* @__PURE__ */ A.jsx("div", { className: l.mainContent, children: /* @__PURE__ */ A.jsx(hn, {}) }),
|
|
2502
2509
|
/* @__PURE__ */ A.jsx("div", { className: l.reviewCardContainer, children: /* @__PURE__ */ A.jsx(
|
|
2503
2510
|
nc,
|
|
@@ -2505,8 +2512,8 @@ const ac = ({
|
|
|
2505
2512
|
address: e,
|
|
2506
2513
|
mapImageUrl: r,
|
|
2507
2514
|
mapboxAccessToken: n,
|
|
2508
|
-
mapPinMarker:
|
|
2509
|
-
onEditAddress:
|
|
2515
|
+
mapPinMarker: c,
|
|
2516
|
+
onEditAddress: j
|
|
2510
2517
|
}
|
|
2511
2518
|
) })
|
|
2512
2519
|
] }), sc = Array.from({ length: 10 }, (e, r) => ({
|
|
@@ -2518,10 +2525,10 @@ const ac = ({
|
|
|
2518
2525
|
})), jc = Array.from({ length: 10 }, (e, r) => ({
|
|
2519
2526
|
label: String(r),
|
|
2520
2527
|
value: r
|
|
2521
|
-
})),
|
|
2522
|
-
{ length:
|
|
2528
|
+
})), pA = (/* @__PURE__ */ new Date()).getFullYear(), Pc = Array.from(
|
|
2529
|
+
{ length: pA - 1800 + 1 },
|
|
2523
2530
|
(e, r) => {
|
|
2524
|
-
const n =
|
|
2531
|
+
const n = pA - r;
|
|
2525
2532
|
return { label: String(n), value: n };
|
|
2526
2533
|
}
|
|
2527
2534
|
), fc = [
|
|
@@ -2665,28 +2672,28 @@ var Hc = {
|
|
|
2665
2672
|
* This source code is licensed under the MIT license.
|
|
2666
2673
|
* See the LICENSE file in the root directory of this source tree.
|
|
2667
2674
|
*/
|
|
2668
|
-
const Xe = (e, r, n,
|
|
2669
|
-
const
|
|
2670
|
-
({ color:
|
|
2675
|
+
const Xe = (e, r, n, c) => {
|
|
2676
|
+
const u = EA(
|
|
2677
|
+
({ color: j = "currentColor", size: P = 24, stroke: d = 2, title: s, className: a, children: o, ...O }, i) => Te(
|
|
2671
2678
|
"svg",
|
|
2672
2679
|
{
|
|
2673
2680
|
ref: i,
|
|
2674
2681
|
...Hc[e],
|
|
2675
|
-
width:
|
|
2676
|
-
height:
|
|
2677
|
-
className: ["tabler-icon", `tabler-icon-${r}`,
|
|
2678
|
-
strokeWidth:
|
|
2679
|
-
stroke:
|
|
2682
|
+
width: P,
|
|
2683
|
+
height: P,
|
|
2684
|
+
className: ["tabler-icon", `tabler-icon-${r}`, a].join(" "),
|
|
2685
|
+
strokeWidth: d,
|
|
2686
|
+
stroke: j,
|
|
2680
2687
|
...O
|
|
2681
2688
|
},
|
|
2682
2689
|
[
|
|
2683
|
-
|
|
2684
|
-
...
|
|
2685
|
-
...Array.isArray(
|
|
2690
|
+
s && Te("title", { key: "svg-title" }, s),
|
|
2691
|
+
...c.map(([v, R]) => Te(v, R)),
|
|
2692
|
+
...Array.isArray(o) ? o : [o]
|
|
2686
2693
|
]
|
|
2687
2694
|
)
|
|
2688
2695
|
);
|
|
2689
|
-
return
|
|
2696
|
+
return u.displayName = `${n}`, u;
|
|
2690
2697
|
};
|
|
2691
2698
|
/**
|
|
2692
2699
|
* @license @tabler/icons-react v3.36.1 - MIT
|
|
@@ -2694,7 +2701,7 @@ const Xe = (e, r, n, a) => {
|
|
|
2694
2701
|
* This source code is licensed under the MIT license.
|
|
2695
2702
|
* See the LICENSE file in the root directory of this source tree.
|
|
2696
2703
|
*/
|
|
2697
|
-
const lc = [["path", { d: "M5 9a2 2 0 1 0 4 0a2 2 0 1 0 -4 0", key: "svg-0" }], ["path", { d: "M22 17v-3h-20", key: "svg-1" }], ["path", { d: "M2 8v9", key: "svg-2" }], ["path", { d: "M12 14h10v-2a3 3 0 0 0 -3 -3h-7v5", key: "svg-3" }]],
|
|
2704
|
+
const lc = [["path", { d: "M5 9a2 2 0 1 0 4 0a2 2 0 1 0 -4 0", key: "svg-0" }], ["path", { d: "M22 17v-3h-20", key: "svg-1" }], ["path", { d: "M2 8v9", key: "svg-2" }], ["path", { d: "M12 14h10v-2a3 3 0 0 0 -3 -3h-7v5", key: "svg-3" }]], VA = Xe("outline", "bed", "Bed", lc);
|
|
2698
2705
|
/**
|
|
2699
2706
|
* @license @tabler/icons-react v3.36.1 - MIT
|
|
2700
2707
|
*
|
|
@@ -2722,7 +2729,7 @@ const yc = [["path", { d: "M12 17.75l-6.172 3.245l1.179 -6.873l-5 -4.867l6.9 -1l
|
|
|
2722
2729
|
* This source code is licensed under the MIT license.
|
|
2723
2730
|
* See the LICENSE file in the root directory of this source tree.
|
|
2724
2731
|
*/
|
|
2725
|
-
const wc = [["path", { d: "M19 3v12h-5c-.023 -3.681 .184 -7.406 5 -12m0 12v6h-1v-3m-10 -14v17m-3 -17v3a3 3 0 1 0 6 0v-3", key: "svg-0" }]], vc = Xe("outline", "tools-kitchen-2", "ToolsKitchen2", wc),
|
|
2732
|
+
const wc = [["path", { d: "M19 3v12h-5c-.023 -3.681 .184 -7.406 5 -12m0 12v6h-1v-3m-10 -14v17m-3 -17v3a3 3 0 1 0 6 0v-3", key: "svg-0" }]], vc = Xe("outline", "tools-kitchen-2", "ToolsKitchen2", wc), ze = { size: 20, stroke: 1.5 }, Oc = () => /* @__PURE__ */ A.jsx(vc, { ...ze }), Sc = () => /* @__PURE__ */ A.jsx(VA, { ...ze }), mA = () => /* @__PURE__ */ A.jsx(xc, { ...ze }), BA = () => /* @__PURE__ */ A.jsx(pc, { ...ze }), gc = () => /* @__PURE__ */ A.jsx(VA, { ...ze }), zc = () => /* @__PURE__ */ A.jsx(bc, { ...ze }), Vc = {
|
|
2726
2733
|
id: "features",
|
|
2727
2734
|
title: "Tell us about your home's features",
|
|
2728
2735
|
subtitle: "Check all that apply. This helps us price your home accurately.",
|
|
@@ -2997,7 +3004,7 @@ const wc = [["path", { d: "M19 3v12h-5c-.023 -3.681 .184 -7.406 5 -12m0 12v6h-1v
|
|
|
2997
3004
|
// ── Exterior (group header) ───────────────────────────────────────────
|
|
2998
3005
|
{
|
|
2999
3006
|
id: "exterior",
|
|
3000
|
-
icon: /* @__PURE__ */ A.jsx(
|
|
3007
|
+
icon: /* @__PURE__ */ A.jsx(mA, {}),
|
|
3001
3008
|
title: "Exterior",
|
|
3002
3009
|
questions: []
|
|
3003
3010
|
},
|
|
@@ -3136,7 +3143,7 @@ const wc = [["path", { d: "M19 3v12h-5c-.023 -3.681 .184 -7.406 5 -12m0 12v6h-1v
|
|
|
3136
3143
|
// ── Major Systems & Upgrades (group header) ──────────────────────────
|
|
3137
3144
|
{
|
|
3138
3145
|
id: "major-systems-upgrades",
|
|
3139
|
-
icon: /* @__PURE__ */ A.jsx(
|
|
3146
|
+
icon: /* @__PURE__ */ A.jsx(BA, {}),
|
|
3140
3147
|
title: "Major Systems & Upgrades",
|
|
3141
3148
|
questions: []
|
|
3142
3149
|
},
|
|
@@ -3554,7 +3561,7 @@ const wc = [["path", { d: "M19 3v12h-5c-.023 -3.681 .184 -7.406 5 -12m0 12v6h-1v
|
|
|
3554
3561
|
{
|
|
3555
3562
|
id: "exterior",
|
|
3556
3563
|
title: "Exterior",
|
|
3557
|
-
icon: /* @__PURE__ */ A.jsx(
|
|
3564
|
+
icon: /* @__PURE__ */ A.jsx(mA, {}),
|
|
3558
3565
|
questions: [
|
|
3559
3566
|
{
|
|
3560
3567
|
key: "home.condition.exterior.roof_siding",
|
|
@@ -3644,7 +3651,7 @@ const wc = [["path", { d: "M19 3v12h-5c-.023 -3.681 .184 -7.406 5 -12m0 12v6h-1v
|
|
|
3644
3651
|
{
|
|
3645
3652
|
id: "systems",
|
|
3646
3653
|
title: "Major Systems",
|
|
3647
|
-
icon: /* @__PURE__ */ A.jsx(
|
|
3654
|
+
icon: /* @__PURE__ */ A.jsx(BA, {}),
|
|
3648
3655
|
questions: [
|
|
3649
3656
|
{
|
|
3650
3657
|
key: "home.condition.systems.hvac",
|
|
@@ -3955,21 +3962,21 @@ function Sa({
|
|
|
3955
3962
|
offerId: e,
|
|
3956
3963
|
address: r,
|
|
3957
3964
|
salesAssociateName: n,
|
|
3958
|
-
salesAssociateEmail:
|
|
3959
|
-
initialAnswers:
|
|
3960
|
-
appearance:
|
|
3961
|
-
showAttribution:
|
|
3962
|
-
mapImageUrl:
|
|
3963
|
-
mapboxAccessToken:
|
|
3964
|
-
mapPinMarker:
|
|
3965
|
-
onReady:
|
|
3965
|
+
salesAssociateEmail: c,
|
|
3966
|
+
initialAnswers: u,
|
|
3967
|
+
appearance: j,
|
|
3968
|
+
showAttribution: P = !0,
|
|
3969
|
+
mapImageUrl: d,
|
|
3970
|
+
mapboxAccessToken: s,
|
|
3971
|
+
mapPinMarker: a,
|
|
3972
|
+
onReady: o,
|
|
3966
3973
|
onPageChange: O,
|
|
3967
3974
|
onAnswerChange: i,
|
|
3968
3975
|
onSubmit: v,
|
|
3969
3976
|
onError: R,
|
|
3970
3977
|
onEditAddress: B
|
|
3971
3978
|
}) {
|
|
3972
|
-
const G = Re(
|
|
3979
|
+
const G = Re(j ?? { theme: "minimal" }), N = Be(
|
|
3973
3980
|
() => [
|
|
3974
3981
|
dc,
|
|
3975
3982
|
Vc,
|
|
@@ -3983,8 +3990,8 @@ function Sa({
|
|
|
3983
3990
|
Yt,
|
|
3984
3991
|
{
|
|
3985
3992
|
pages: N,
|
|
3986
|
-
initialAnswers:
|
|
3987
|
-
onReady:
|
|
3993
|
+
initialAnswers: u,
|
|
3994
|
+
onReady: o,
|
|
3988
3995
|
onPageChange: O,
|
|
3989
3996
|
onAnswerChange: i,
|
|
3990
3997
|
onSubmit: v,
|
|
@@ -3993,10 +4000,10 @@ function Sa({
|
|
|
3993
4000
|
ac,
|
|
3994
4001
|
{
|
|
3995
4002
|
address: r,
|
|
3996
|
-
mapImageUrl:
|
|
3997
|
-
mapboxAccessToken:
|
|
3998
|
-
mapPinMarker:
|
|
3999
|
-
showAttribution:
|
|
4003
|
+
mapImageUrl: d,
|
|
4004
|
+
mapboxAccessToken: s,
|
|
4005
|
+
mapPinMarker: a,
|
|
4006
|
+
showAttribution: P,
|
|
4000
4007
|
onEditAddress: B
|
|
4001
4008
|
}
|
|
4002
4009
|
)
|
|
@@ -4026,35 +4033,35 @@ function ga({
|
|
|
4026
4033
|
address: e,
|
|
4027
4034
|
appearance: r,
|
|
4028
4035
|
onConfirm: n,
|
|
4029
|
-
onEdit:
|
|
4036
|
+
onEdit: c
|
|
4030
4037
|
}) {
|
|
4031
|
-
const
|
|
4032
|
-
if (!
|
|
4038
|
+
const u = te(), P = Re(r), d = _e("partner-sdk-unit-input"), [s, a] = T(""), [o, O] = T(!1), [i, v] = T(null), R = () => {
|
|
4039
|
+
if (!o && !s.trim()) {
|
|
4033
4040
|
v("Please enter a unit number or select 'No unit number'");
|
|
4034
4041
|
return;
|
|
4035
4042
|
}
|
|
4036
|
-
v(null),
|
|
4043
|
+
v(null), u.trackPlatform({
|
|
4037
4044
|
buttonClickEvent: { targetName: "partner-sdk-confirm-unit" }
|
|
4038
|
-
}), n(
|
|
4045
|
+
}), n(o ? { ...e } : { ...e, street2: s.trim() });
|
|
4039
4046
|
}, B = () => {
|
|
4040
|
-
|
|
4047
|
+
u.trackPlatform({
|
|
4041
4048
|
checkboxClickEvent: {
|
|
4042
4049
|
targetName: "partner-sdk-no-unit",
|
|
4043
|
-
optionName: String(!
|
|
4050
|
+
optionName: String(!o)
|
|
4044
4051
|
}
|
|
4045
|
-
}), O(!
|
|
4052
|
+
}), O(!o), o || (a(""), v(null));
|
|
4046
4053
|
}, I = (N) => {
|
|
4047
|
-
|
|
4054
|
+
a(N.target.value), i && v(null);
|
|
4048
4055
|
}, G = () => {
|
|
4049
|
-
|
|
4056
|
+
u.trackPlatform({
|
|
4050
4057
|
inputFocusEvent: { targetName: "partner-sdk-unit-input" }
|
|
4051
4058
|
});
|
|
4052
4059
|
};
|
|
4053
|
-
return /* @__PURE__ */ A.jsxs("div", { ref:
|
|
4060
|
+
return /* @__PURE__ */ A.jsxs("div", { ref: d, style: P, className: F.container, children: [
|
|
4054
4061
|
/* @__PURE__ */ A.jsx("h2", { className: F.title, children: "Confirm your home address" }),
|
|
4055
4062
|
/* @__PURE__ */ A.jsxs("div", { className: F.addressCard, children: [
|
|
4056
4063
|
/* @__PURE__ */ A.jsx("span", { className: F.addressText, children: ka(e) }),
|
|
4057
|
-
|
|
4064
|
+
c && /* @__PURE__ */ A.jsx("button", { type: "button", className: F.editLink, onClick: c, children: "Edit" })
|
|
4058
4065
|
] }),
|
|
4059
4066
|
/* @__PURE__ */ A.jsxs("div", { className: F.fieldGroup, children: [
|
|
4060
4067
|
/* @__PURE__ */ A.jsx("label", { className: F.fieldLabel, htmlFor: "od-unit-number", children: "Unit number, apt, or floor*" }),
|
|
@@ -4065,10 +4072,10 @@ function ga({
|
|
|
4065
4072
|
type: "text",
|
|
4066
4073
|
className: F.input,
|
|
4067
4074
|
placeholder: "#1234",
|
|
4068
|
-
value:
|
|
4075
|
+
value: s,
|
|
4069
4076
|
onChange: I,
|
|
4070
4077
|
onFocus: G,
|
|
4071
|
-
disabled:
|
|
4078
|
+
disabled: o
|
|
4072
4079
|
}
|
|
4073
4080
|
)
|
|
4074
4081
|
] }),
|
|
@@ -4078,7 +4085,7 @@ function ga({
|
|
|
4078
4085
|
{
|
|
4079
4086
|
type: "checkbox",
|
|
4080
4087
|
className: F.checkbox,
|
|
4081
|
-
checked:
|
|
4088
|
+
checked: o,
|
|
4082
4089
|
onChange: B
|
|
4083
4090
|
}
|
|
4084
4091
|
),
|
|
@@ -4105,24 +4112,24 @@ function za({
|
|
|
4105
4112
|
address: e,
|
|
4106
4113
|
appearance: r,
|
|
4107
4114
|
mapboxAccessToken: n,
|
|
4108
|
-
mapPinMarker:
|
|
4109
|
-
width:
|
|
4110
|
-
height:
|
|
4111
|
-
zoom:
|
|
4112
|
-
borderRadius:
|
|
4113
|
-
onLoad:
|
|
4114
|
-
onError:
|
|
4115
|
+
mapPinMarker: c,
|
|
4116
|
+
width: u,
|
|
4117
|
+
height: j,
|
|
4118
|
+
zoom: P,
|
|
4119
|
+
borderRadius: d,
|
|
4120
|
+
onLoad: s,
|
|
4121
|
+
onError: a
|
|
4115
4122
|
}) {
|
|
4116
|
-
const
|
|
4123
|
+
const o = Re(r), { url: O, status: i } = zA(e, {
|
|
4117
4124
|
mapboxAccessToken: n,
|
|
4118
|
-
mapPinMarker:
|
|
4119
|
-
width:
|
|
4120
|
-
height:
|
|
4121
|
-
zoom:
|
|
4122
|
-
}), [v, R] =
|
|
4123
|
-
B.current =
|
|
4124
|
-
const I =
|
|
4125
|
-
I.current =
|
|
4125
|
+
mapPinMarker: c,
|
|
4126
|
+
width: u,
|
|
4127
|
+
height: j,
|
|
4128
|
+
zoom: P
|
|
4129
|
+
}), [v, R] = T(!1), B = L(s);
|
|
4130
|
+
B.current = s;
|
|
4131
|
+
const I = L(a);
|
|
4132
|
+
I.current = a, _(() => {
|
|
4126
4133
|
var w;
|
|
4127
4134
|
i === "error" && ((w = I.current) == null || w.call(I, new Error("Failed to load map for address")));
|
|
4128
4135
|
}, [i]);
|
|
@@ -4130,8 +4137,8 @@ function za({
|
|
|
4130
4137
|
var w;
|
|
4131
4138
|
R(!0), (w = B.current) == null || w.call(B);
|
|
4132
4139
|
}, N = {
|
|
4133
|
-
...
|
|
4134
|
-
...
|
|
4140
|
+
...o,
|
|
4141
|
+
...d ? { borderRadius: d } : {}
|
|
4135
4142
|
};
|
|
4136
4143
|
return /* @__PURE__ */ A.jsx("div", { className: Ee.container, style: N, children: O && /* @__PURE__ */ A.jsx(
|
|
4137
4144
|
"img",
|