@opendoor/partner-sdk-client-react 1.0.7-beta.60.1 → 1.0.7-beta.65.1
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/components/DtcOnboardingFlow/assets/imageManifest.d.ts +3 -2
- package/dist/client-react/src/components/DtcOnboardingFlow/assets/imageManifest.d.ts.map +1 -1
- package/dist/client-react/src/components/DtcOnboardingFlow/inputs/CheckboxCardInput.d.ts.map +1 -1
- package/dist/index.js +291 -288
- package/dist/style.css +1 -1
- package/package.json +1 -2
package/dist/index.js
CHANGED
|
@@ -93,10 +93,10 @@ function ar() {
|
|
|
93
93
|
process.env.NODE_ENV !== "production" && function() {
|
|
94
94
|
var r = zt, n = Bt(), a = 60103, c = 60106;
|
|
95
95
|
e.Fragment = 60107;
|
|
96
|
-
var l = 60108, i = 60114, d = 60109, o = 60110, s = 60112, u = 60113, x = 60120, H = 60115, P = 60116, S = 60121, z = 60122,
|
|
96
|
+
var l = 60108, i = 60114, d = 60109, o = 60110, s = 60112, u = 60113, x = 60120, H = 60115, P = 60116, S = 60121, z = 60122, h = 60117, X = 60129, I = 60131;
|
|
97
97
|
if (typeof Symbol == "function" && Symbol.for) {
|
|
98
98
|
var v = Symbol.for;
|
|
99
|
-
a = v("react.element"), c = v("react.portal"), e.Fragment = v("react.fragment"), l = v("react.strict_mode"), i = v("react.profiler"), d = v("react.provider"), o = v("react.context"), s = v("react.forward_ref"), u = v("react.suspense"), x = v("react.suspense_list"), H = v("react.memo"), P = v("react.lazy"), S = v("react.block"), z = v("react.server.block"),
|
|
99
|
+
a = v("react.element"), c = v("react.portal"), e.Fragment = v("react.fragment"), l = v("react.strict_mode"), i = v("react.profiler"), d = v("react.provider"), o = v("react.context"), s = v("react.forward_ref"), u = v("react.suspense"), x = v("react.suspense_list"), H = v("react.memo"), P = v("react.lazy"), S = v("react.block"), z = v("react.server.block"), h = v("react.fundamental"), v("react.scope"), v("react.opaque.id"), X = v("react.debug_trace_mode"), v("react.offscreen"), I = v("react.legacy_hidden");
|
|
100
100
|
}
|
|
101
101
|
var R = typeof Symbol == "function" && Symbol.iterator, Z = "@@iterator";
|
|
102
102
|
function Y(A) {
|
|
@@ -108,16 +108,16 @@ function ar() {
|
|
|
108
108
|
var D = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
109
109
|
function y(A) {
|
|
110
110
|
{
|
|
111
|
-
for (var f = arguments.length,
|
|
112
|
-
|
|
113
|
-
V("error", A,
|
|
111
|
+
for (var f = arguments.length, k = new Array(f > 1 ? f - 1 : 0), g = 1; g < f; g++)
|
|
112
|
+
k[g - 1] = arguments[g];
|
|
113
|
+
V("error", A, k);
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
|
-
function V(A, f,
|
|
116
|
+
function V(A, f, k) {
|
|
117
117
|
{
|
|
118
118
|
var g = D.ReactDebugCurrentFrame, E = g.getStackAddendum();
|
|
119
|
-
E !== "" && (f += "%s",
|
|
120
|
-
var K =
|
|
119
|
+
E !== "" && (f += "%s", k = k.concat([E]));
|
|
120
|
+
var K = k.map(function(W) {
|
|
121
121
|
return "" + W;
|
|
122
122
|
});
|
|
123
123
|
K.unshift("Warning: " + f), Function.prototype.apply.call(console[A], console, K);
|
|
@@ -125,11 +125,11 @@ function ar() {
|
|
|
125
125
|
}
|
|
126
126
|
var te = !1;
|
|
127
127
|
function ie(A) {
|
|
128
|
-
return !!(typeof A == "string" || typeof A == "function" || A === e.Fragment || A === i || A ===
|
|
128
|
+
return !!(typeof A == "string" || typeof A == "function" || A === e.Fragment || A === i || A === X || A === l || A === u || A === x || A === I || te || typeof A == "object" && A !== null && (A.$$typeof === P || A.$$typeof === H || A.$$typeof === d || A.$$typeof === o || A.$$typeof === s || A.$$typeof === h || A.$$typeof === S || A[0] === z));
|
|
129
129
|
}
|
|
130
|
-
function oe(A, f,
|
|
130
|
+
function oe(A, f, k) {
|
|
131
131
|
var g = f.displayName || f.name || "";
|
|
132
|
-
return A.displayName || (g !== "" ?
|
|
132
|
+
return A.displayName || (g !== "" ? k + "(" + g + ")" : k);
|
|
133
133
|
}
|
|
134
134
|
function m(A) {
|
|
135
135
|
return A.displayName || "Context";
|
|
@@ -161,8 +161,8 @@ function ar() {
|
|
|
161
161
|
var f = A;
|
|
162
162
|
return m(f) + ".Consumer";
|
|
163
163
|
case d:
|
|
164
|
-
var
|
|
165
|
-
return m(
|
|
164
|
+
var k = A;
|
|
165
|
+
return m(k._context) + ".Provider";
|
|
166
166
|
case s:
|
|
167
167
|
return oe(A, A.render, "ForwardRef");
|
|
168
168
|
case H:
|
|
@@ -181,9 +181,9 @@ function ar() {
|
|
|
181
181
|
return null;
|
|
182
182
|
}
|
|
183
183
|
var O = 0, L, J, Q, M, le, ue, qe;
|
|
184
|
-
function
|
|
184
|
+
function ke() {
|
|
185
185
|
}
|
|
186
|
-
|
|
186
|
+
ke.__reactDisabledLog = !0;
|
|
187
187
|
function ve() {
|
|
188
188
|
{
|
|
189
189
|
if (O === 0) {
|
|
@@ -191,7 +191,7 @@ function ar() {
|
|
|
191
191
|
var A = {
|
|
192
192
|
configurable: !0,
|
|
193
193
|
enumerable: !0,
|
|
194
|
-
value:
|
|
194
|
+
value: ke,
|
|
195
195
|
writable: !0
|
|
196
196
|
};
|
|
197
197
|
Object.defineProperties(console, {
|
|
@@ -242,18 +242,18 @@ function ar() {
|
|
|
242
242
|
O < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
243
243
|
}
|
|
244
244
|
}
|
|
245
|
-
var
|
|
246
|
-
function me(A, f,
|
|
245
|
+
var pe = D.ReactCurrentDispatcher, Xe;
|
|
246
|
+
function me(A, f, k) {
|
|
247
247
|
{
|
|
248
|
-
if (
|
|
248
|
+
if (Xe === void 0)
|
|
249
249
|
try {
|
|
250
250
|
throw Error();
|
|
251
251
|
} catch (E) {
|
|
252
252
|
var g = E.stack.trim().match(/\n( *(at )?)/);
|
|
253
|
-
|
|
253
|
+
Xe = g && g[1] || "";
|
|
254
254
|
}
|
|
255
255
|
return `
|
|
256
|
-
` +
|
|
256
|
+
` + Xe + A;
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
259
|
var Oe = !1, Se;
|
|
@@ -265,16 +265,16 @@ function ar() {
|
|
|
265
265
|
if (!A || Oe)
|
|
266
266
|
return "";
|
|
267
267
|
{
|
|
268
|
-
var
|
|
269
|
-
if (
|
|
270
|
-
return
|
|
268
|
+
var k = Se.get(A);
|
|
269
|
+
if (k !== void 0)
|
|
270
|
+
return k;
|
|
271
271
|
}
|
|
272
272
|
var g;
|
|
273
273
|
Oe = !0;
|
|
274
274
|
var E = Error.prepareStackTrace;
|
|
275
275
|
Error.prepareStackTrace = void 0;
|
|
276
276
|
var K;
|
|
277
|
-
K =
|
|
277
|
+
K = pe.current, pe.current = null, ve();
|
|
278
278
|
try {
|
|
279
279
|
if (f) {
|
|
280
280
|
var W = function() {
|
|
@@ -327,19 +327,19 @@ function ar() {
|
|
|
327
327
|
}
|
|
328
328
|
}
|
|
329
329
|
} finally {
|
|
330
|
-
Oe = !1,
|
|
330
|
+
Oe = !1, pe.current = K, ge(), Error.prepareStackTrace = E;
|
|
331
331
|
}
|
|
332
332
|
var Be = A ? A.displayName || A.name : "", ft = Be ? me(Be) : "";
|
|
333
333
|
return typeof A == "function" && Se.set(A, ft), ft;
|
|
334
334
|
}
|
|
335
|
-
function Ie(A, f,
|
|
335
|
+
function Ie(A, f, k) {
|
|
336
336
|
return Pe(A, !1);
|
|
337
337
|
}
|
|
338
338
|
function He(A) {
|
|
339
339
|
var f = A.prototype;
|
|
340
340
|
return !!(f && f.isReactComponent);
|
|
341
341
|
}
|
|
342
|
-
function b(A, f,
|
|
342
|
+
function b(A, f, k) {
|
|
343
343
|
if (A == null)
|
|
344
344
|
return "";
|
|
345
345
|
if (typeof A == "function")
|
|
@@ -357,13 +357,13 @@ function ar() {
|
|
|
357
357
|
case s:
|
|
358
358
|
return Ie(A.render);
|
|
359
359
|
case H:
|
|
360
|
-
return b(A.type, f,
|
|
360
|
+
return b(A.type, f, k);
|
|
361
361
|
case S:
|
|
362
362
|
return Ie(A._render);
|
|
363
363
|
case P: {
|
|
364
364
|
var g = A, E = g._payload, K = g._init;
|
|
365
365
|
try {
|
|
366
|
-
return b(K(E), f,
|
|
366
|
+
return b(K(E), f, k);
|
|
367
367
|
} catch {
|
|
368
368
|
}
|
|
369
369
|
}
|
|
@@ -373,12 +373,12 @@ function ar() {
|
|
|
373
373
|
var U = {}, _ = D.ReactDebugCurrentFrame;
|
|
374
374
|
function ye(A) {
|
|
375
375
|
if (A) {
|
|
376
|
-
var f = A._owner,
|
|
377
|
-
_.setExtraStackFrame(
|
|
376
|
+
var f = A._owner, k = b(A.type, A._source, f ? f.type : null);
|
|
377
|
+
_.setExtraStackFrame(k);
|
|
378
378
|
} else
|
|
379
379
|
_.setExtraStackFrame(null);
|
|
380
380
|
}
|
|
381
|
-
function be(A, f,
|
|
381
|
+
function be(A, f, k, g, E) {
|
|
382
382
|
{
|
|
383
383
|
var K = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
384
384
|
for (var W in A)
|
|
@@ -386,14 +386,14 @@ function ar() {
|
|
|
386
386
|
var G = void 0;
|
|
387
387
|
try {
|
|
388
388
|
if (typeof A[W] != "function") {
|
|
389
|
-
var re = Error((g || "React class") + ": " +
|
|
389
|
+
var re = Error((g || "React class") + ": " + k + " type `" + W + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof A[W] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
390
390
|
throw re.name = "Invariant Violation", re;
|
|
391
391
|
}
|
|
392
|
-
G = A[W](f, W, g,
|
|
392
|
+
G = A[W](f, W, g, k, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
393
393
|
} catch (F) {
|
|
394
394
|
G = F;
|
|
395
395
|
}
|
|
396
|
-
G && !(G instanceof Error) && (ye(E), y("%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).", g || "React class",
|
|
396
|
+
G && !(G instanceof Error) && (ye(E), y("%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).", g || "React class", k, W, typeof G), ye(null)), G instanceof Error && !(G.message in U) && (U[G.message] = !0, ye(E), y("Failed %s type: %s", k, G.message), ye(null));
|
|
397
397
|
}
|
|
398
398
|
}
|
|
399
399
|
}
|
|
@@ -424,34 +424,34 @@ function ar() {
|
|
|
424
424
|
}
|
|
425
425
|
function Kt(A, f) {
|
|
426
426
|
{
|
|
427
|
-
var
|
|
427
|
+
var k = function() {
|
|
428
428
|
at || (at = !0, y("%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
|
-
|
|
431
|
-
get:
|
|
430
|
+
k.isReactWarning = !0, Object.defineProperty(A, "key", {
|
|
431
|
+
get: k,
|
|
432
432
|
configurable: !0
|
|
433
433
|
});
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
436
|
function Lt(A, f) {
|
|
437
437
|
{
|
|
438
|
-
var
|
|
438
|
+
var k = function() {
|
|
439
439
|
ct || (ct = !0, y("%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
|
-
|
|
442
|
-
get:
|
|
441
|
+
k.isReactWarning = !0, Object.defineProperty(A, "ref", {
|
|
442
|
+
get: k,
|
|
443
443
|
configurable: !0
|
|
444
444
|
});
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
|
-
var Et = function(A, f,
|
|
447
|
+
var Et = function(A, f, k, g, E, K, W) {
|
|
448
448
|
var G = {
|
|
449
449
|
// This tag allows us to uniquely identify this as a React Element
|
|
450
450
|
$$typeof: a,
|
|
451
451
|
// Built-in properties that belong on the element
|
|
452
452
|
type: A,
|
|
453
453
|
key: f,
|
|
454
|
-
ref:
|
|
454
|
+
ref: k,
|
|
455
455
|
props: W,
|
|
456
456
|
// Record the component responsible for creating this element.
|
|
457
457
|
_owner: K
|
|
@@ -473,10 +473,10 @@ function ar() {
|
|
|
473
473
|
value: E
|
|
474
474
|
}), Object.freeze && (Object.freeze(G.props), Object.freeze(G)), G;
|
|
475
475
|
};
|
|
476
|
-
function Qt(A, f,
|
|
476
|
+
function Qt(A, f, k, g, E) {
|
|
477
477
|
{
|
|
478
478
|
var K, W = {}, G = null, re = null;
|
|
479
|
-
|
|
479
|
+
k !== void 0 && (G = "" + k), Nt(f) && (G = "" + f.key), Jt(f) && (re = f.ref, Yt(f, E));
|
|
480
480
|
for (K in f)
|
|
481
481
|
Ne.call(f, K) && !Zt.hasOwnProperty(K) && (W[K] = f[K]);
|
|
482
482
|
if (A && A.defaultProps) {
|
|
@@ -494,8 +494,8 @@ function ar() {
|
|
|
494
494
|
var Ye = D.ReactCurrentOwner, st = D.ReactDebugCurrentFrame;
|
|
495
495
|
function ze(A) {
|
|
496
496
|
if (A) {
|
|
497
|
-
var f = A._owner,
|
|
498
|
-
st.setExtraStackFrame(
|
|
497
|
+
var f = A._owner, k = b(A.type, A._source, f ? f.type : null);
|
|
498
|
+
st.setExtraStackFrame(k);
|
|
499
499
|
} else
|
|
500
500
|
st.setExtraStackFrame(null);
|
|
501
501
|
}
|
|
@@ -524,10 +524,10 @@ Check the render method of \`` + A + "`.";
|
|
|
524
524
|
{
|
|
525
525
|
var f = ot();
|
|
526
526
|
if (!f) {
|
|
527
|
-
var
|
|
528
|
-
|
|
527
|
+
var k = typeof A == "string" ? A : A.displayName || A.name;
|
|
528
|
+
k && (f = `
|
|
529
529
|
|
|
530
|
-
Check the top-level render call using <` +
|
|
530
|
+
Check the top-level render call using <` + k + ">.");
|
|
531
531
|
}
|
|
532
532
|
return f;
|
|
533
533
|
}
|
|
@@ -537,12 +537,12 @@ Check the top-level render call using <` + p + ">.");
|
|
|
537
537
|
if (!A._store || A._store.validated || A.key != null)
|
|
538
538
|
return;
|
|
539
539
|
A._store.validated = !0;
|
|
540
|
-
var
|
|
541
|
-
if (lt[
|
|
540
|
+
var k = Ut(f);
|
|
541
|
+
if (lt[k])
|
|
542
542
|
return;
|
|
543
|
-
lt[
|
|
543
|
+
lt[k] = !0;
|
|
544
544
|
var g = "";
|
|
545
|
-
A && A._owner && A._owner !== Ye.current && (g = " It was passed a child from " + w(A._owner.type) + "."), ze(A), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',
|
|
545
|
+
A && A._owner && A._owner !== Ye.current && (g = " It was passed a child from " + w(A._owner.type) + "."), ze(A), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', k, g), ze(null);
|
|
546
546
|
}
|
|
547
547
|
}
|
|
548
548
|
function it(A, f) {
|
|
@@ -550,8 +550,8 @@ Check the top-level render call using <` + p + ">.");
|
|
|
550
550
|
if (typeof A != "object")
|
|
551
551
|
return;
|
|
552
552
|
if (Array.isArray(A))
|
|
553
|
-
for (var
|
|
554
|
-
var g = A[
|
|
553
|
+
for (var k = 0; k < A.length; k++) {
|
|
554
|
+
var g = A[k];
|
|
555
555
|
Le(g) && ut(g, f);
|
|
556
556
|
}
|
|
557
557
|
else if (Le(A))
|
|
@@ -569,18 +569,18 @@ Check the top-level render call using <` + p + ">.");
|
|
|
569
569
|
var f = A.type;
|
|
570
570
|
if (f == null || typeof f == "string")
|
|
571
571
|
return;
|
|
572
|
-
var
|
|
572
|
+
var k;
|
|
573
573
|
if (typeof f == "function")
|
|
574
|
-
|
|
574
|
+
k = f.propTypes;
|
|
575
575
|
else if (typeof f == "object" && (f.$$typeof === s || // Note: Memo only checks outer props here.
|
|
576
576
|
// Inner props are checked in the reconciler.
|
|
577
577
|
f.$$typeof === H))
|
|
578
|
-
|
|
578
|
+
k = f.propTypes;
|
|
579
579
|
else
|
|
580
580
|
return;
|
|
581
|
-
if (
|
|
581
|
+
if (k) {
|
|
582
582
|
var g = w(f);
|
|
583
|
-
be(
|
|
583
|
+
be(k, A.props, "prop", g, A);
|
|
584
584
|
} else if (f.PropTypes !== void 0 && !Ke) {
|
|
585
585
|
Ke = !0;
|
|
586
586
|
var E = w(f);
|
|
@@ -591,8 +591,8 @@ Check the top-level render call using <` + p + ">.");
|
|
|
591
591
|
}
|
|
592
592
|
function _t(A) {
|
|
593
593
|
{
|
|
594
|
-
for (var f = Object.keys(A.props),
|
|
595
|
-
var g = f[
|
|
594
|
+
for (var f = Object.keys(A.props), k = 0; k < f.length; k++) {
|
|
595
|
+
var g = f[k];
|
|
596
596
|
if (g !== "children" && g !== "key") {
|
|
597
597
|
ze(A), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", g), ze(null);
|
|
598
598
|
break;
|
|
@@ -601,7 +601,7 @@ Check the top-level render call using <` + p + ">.");
|
|
|
601
601
|
A.ref !== null && (ze(A), y("Invalid attribute `ref` supplied to `React.Fragment`."), ze(null));
|
|
602
602
|
}
|
|
603
603
|
}
|
|
604
|
-
function dt(A, f,
|
|
604
|
+
function dt(A, f, k, g, E, K) {
|
|
605
605
|
{
|
|
606
606
|
var W = ie(A);
|
|
607
607
|
if (!W) {
|
|
@@ -612,7 +612,7 @@ Check the top-level render call using <` + p + ">.");
|
|
|
612
612
|
var F;
|
|
613
613
|
A === null ? F = "null" : Array.isArray(A) ? F = "array" : A !== void 0 && A.$$typeof === a ? (F = "<" + (w(A.type) || "Unknown") + " />", G = " Did you accidentally export a JSX literal instead of a component?") : F = typeof A, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", F, G);
|
|
614
614
|
}
|
|
615
|
-
var $ = Qt(A, f,
|
|
615
|
+
var $ = Qt(A, f, k, E, K);
|
|
616
616
|
if ($ == null)
|
|
617
617
|
return $;
|
|
618
618
|
if (W) {
|
|
@@ -631,11 +631,11 @@ Check the top-level render call using <` + p + ">.");
|
|
|
631
631
|
return A === e.Fragment ? _t($) : Ft($), $;
|
|
632
632
|
}
|
|
633
633
|
}
|
|
634
|
-
function $t(A, f,
|
|
635
|
-
return dt(A, f,
|
|
634
|
+
function $t(A, f, k) {
|
|
635
|
+
return dt(A, f, k, !0);
|
|
636
636
|
}
|
|
637
|
-
function er(A, f,
|
|
638
|
-
return dt(A, f,
|
|
637
|
+
function er(A, f, k) {
|
|
638
|
+
return dt(A, f, k, !1);
|
|
639
639
|
}
|
|
640
640
|
var tr = er, rr = $t;
|
|
641
641
|
e.jsx = tr, e.jsxs = rr;
|
|
@@ -647,14 +647,14 @@ var t = tt.exports;
|
|
|
647
647
|
const cr = {
|
|
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
|
-
}, sr = "partner-sdk", or = "1.0", lr = 5e3, ur = 20, ir = 512, dr = 5, xt = 500,
|
|
650
|
+
}, sr = "partner-sdk", or = "1.0", lr = 5e3, ur = 20, ir = 512, dr = 5, xt = 500, kt = "od_sdk_aid";
|
|
651
651
|
function fr() {
|
|
652
652
|
try {
|
|
653
|
-
const e = localStorage.getItem(
|
|
653
|
+
const e = localStorage.getItem(kt);
|
|
654
654
|
if (e)
|
|
655
655
|
return e;
|
|
656
656
|
const r = crypto.randomUUID();
|
|
657
|
-
return localStorage.setItem(
|
|
657
|
+
return localStorage.setItem(kt, r), r;
|
|
658
658
|
} catch {
|
|
659
659
|
return;
|
|
660
660
|
}
|
|
@@ -702,7 +702,7 @@ async function xr(e, r) {
|
|
|
702
702
|
break;
|
|
703
703
|
}
|
|
704
704
|
}
|
|
705
|
-
class
|
|
705
|
+
class kr {
|
|
706
706
|
constructor(r) {
|
|
707
707
|
this.buffer = [], this.destroyed = !1, this.onVisibilityChange = () => {
|
|
708
708
|
document.visibilityState === "hidden" && this.flush(!0);
|
|
@@ -759,18 +759,18 @@ const rt = {
|
|
|
759
759
|
},
|
|
760
760
|
destroy() {
|
|
761
761
|
}
|
|
762
|
-
}, nt = Te(null), Vt = Te(rt),
|
|
762
|
+
}, nt = Te(null), Vt = Te(rt), To = ({
|
|
763
763
|
client: e,
|
|
764
764
|
children: r
|
|
765
765
|
}) => {
|
|
766
766
|
const [n, a] = T(rt);
|
|
767
767
|
return C(() => {
|
|
768
|
-
const c = new
|
|
768
|
+
const c = new kr(e.environment);
|
|
769
769
|
return a(c), () => {
|
|
770
770
|
c.destroy();
|
|
771
771
|
};
|
|
772
772
|
}, [e]), /* @__PURE__ */ t.jsx(nt.Provider, { value: e, children: /* @__PURE__ */ t.jsx(Vt.Provider, { value: n, children: r }) });
|
|
773
|
-
},
|
|
773
|
+
}, pr = () => {
|
|
774
774
|
const e = Ge(nt);
|
|
775
775
|
if (!e)
|
|
776
776
|
throw new Error(
|
|
@@ -891,7 +891,7 @@ function Re(e) {
|
|
|
891
891
|
}
|
|
892
892
|
return n;
|
|
893
893
|
}
|
|
894
|
-
const wr = "_attribution_11y4r_7", vr = "_text_11y4r_16",
|
|
894
|
+
const wr = "_attribution_11y4r_7", vr = "_text_11y4r_16", pt = {
|
|
895
895
|
attribution: wr,
|
|
896
896
|
text: vr
|
|
897
897
|
}, gr = () => /* @__PURE__ */ t.jsx(
|
|
@@ -913,21 +913,21 @@ const wr = "_attribution_11y4r_7", vr = "_text_11y4r_16", kt = {
|
|
|
913
913
|
)
|
|
914
914
|
}
|
|
915
915
|
);
|
|
916
|
-
function
|
|
917
|
-
return /* @__PURE__ */ t.jsxs("div", { className:
|
|
918
|
-
/* @__PURE__ */ t.jsx("span", { className:
|
|
916
|
+
function ht() {
|
|
917
|
+
return /* @__PURE__ */ t.jsxs("div", { className: pt.attribution, "data-testid": "od-attribution", children: [
|
|
918
|
+
/* @__PURE__ */ t.jsx("span", { className: pt.text, children: "Powered by" }),
|
|
919
919
|
/* @__PURE__ */ t.jsx(gr, {})
|
|
920
920
|
] });
|
|
921
921
|
}
|
|
922
|
-
const mr = "_container_tu90h_8", Or = "_inputSection_tu90h_16", Sr = "_inputWrapper_tu90h_22", zr = "_input_tu90h_16", Br = "_inputIcon_tu90h_63", Vr = "_button_tu90h_80",
|
|
922
|
+
const mr = "_container_tu90h_8", Or = "_inputSection_tu90h_16", Sr = "_inputWrapper_tu90h_22", zr = "_input_tu90h_16", Br = "_inputIcon_tu90h_63", Vr = "_button_tu90h_80", hr = "_spinner_tu90h_121", Xr = "_suggestions_tu90h_136", Dr = "_errorState_tu90h_150", Gr = "_suggestion_tu90h_136", Rr = "_error_tu90h_150", Wr = "_errorIcon_tu90h_199", qr = "_errorBorder_tu90h_213", Ir = "_manualLink_tu90h_223", Mr = "_manualForm_tu90h_245", Tr = "_manualFormField_tu90h_260", Zr = "_manualFormLabel_tu90h_264", Jr = "_manualFormInput_tu90h_273", Nr = "_formRow_tu90h_294", Yr = "_submitButton_tu90h_302", q = {
|
|
923
923
|
container: mr,
|
|
924
924
|
inputSection: Or,
|
|
925
925
|
inputWrapper: Sr,
|
|
926
926
|
input: zr,
|
|
927
927
|
inputIcon: Br,
|
|
928
928
|
button: Vr,
|
|
929
|
-
spinner:
|
|
930
|
-
suggestions:
|
|
929
|
+
spinner: hr,
|
|
930
|
+
suggestions: Xr,
|
|
931
931
|
errorState: Dr,
|
|
932
932
|
suggestion: Gr,
|
|
933
933
|
error: Rr,
|
|
@@ -985,7 +985,7 @@ function bt(e) {
|
|
|
985
985
|
const r = [e.street1];
|
|
986
986
|
return e.street2 && (r[0] += ` ${e.street2}`), r.push(`${e.city}, ${e.state} ${e.postalCode}`), r.join(", ");
|
|
987
987
|
}
|
|
988
|
-
function
|
|
988
|
+
function Zo({
|
|
989
989
|
onAddressSelect: e,
|
|
990
990
|
enableAddressSuggestions: r = !0,
|
|
991
991
|
debounceMs: n = 300,
|
|
@@ -1002,10 +1002,10 @@ function To({
|
|
|
1002
1002
|
onChange: P,
|
|
1003
1003
|
onValidationError: S,
|
|
1004
1004
|
onAddressSuggestionsStart: z,
|
|
1005
|
-
onAddressSuggestionsComplete:
|
|
1006
|
-
onError:
|
|
1005
|
+
onAddressSuggestionsComplete: h,
|
|
1006
|
+
onError: X
|
|
1007
1007
|
}) {
|
|
1008
|
-
const I =
|
|
1008
|
+
const I = pr(), v = ce(), R = Re(x), [Z, Y] = T(""), [D, y] = T([]), [V, te] = T(!1), [ie, oe] = T(!1), [m, w] = T(null), [O, L] = T(!1), [J, Q] = T(!1), [M, le] = T({
|
|
1009
1009
|
street1: "",
|
|
1010
1010
|
street2: "",
|
|
1011
1011
|
city: "",
|
|
@@ -1013,13 +1013,13 @@ function To({
|
|
|
1013
1013
|
postalCode: ""
|
|
1014
1014
|
}), ue = N(null), qe = At("partner-sdk-address-input", {
|
|
1015
1015
|
immediate: !0
|
|
1016
|
-
}),
|
|
1017
|
-
|
|
1016
|
+
}), ke = N(X);
|
|
1017
|
+
ke.current = X;
|
|
1018
1018
|
const ve = N(z);
|
|
1019
1019
|
ve.current = z;
|
|
1020
|
-
const ge = N(
|
|
1021
|
-
ge.current =
|
|
1022
|
-
const
|
|
1020
|
+
const ge = N(h);
|
|
1021
|
+
ge.current = h;
|
|
1022
|
+
const pe = N(null), Xe = V && !ie && Z.trim().length >= 3 && D.length === 0 && !J;
|
|
1023
1023
|
C(() => {
|
|
1024
1024
|
H == null || H();
|
|
1025
1025
|
}, []), C(() => {
|
|
@@ -1036,7 +1036,7 @@ function To({
|
|
|
1036
1036
|
y(be.addresses), te(!0), (_ = ge.current) == null || _.call(ge, be.addresses);
|
|
1037
1037
|
} catch (be) {
|
|
1038
1038
|
const De = be instanceof Error ? be : new Error("Failed to fetch address suggestions");
|
|
1039
|
-
w(De.message), y([]), te(!0), (ye =
|
|
1039
|
+
w(De.message), y([]), te(!0), (ye = ke.current) == null || ye.call(ke, De);
|
|
1040
1040
|
} finally {
|
|
1041
1041
|
oe(!1);
|
|
1042
1042
|
}
|
|
@@ -1044,7 +1044,7 @@ function To({
|
|
|
1044
1044
|
return () => clearTimeout(b);
|
|
1045
1045
|
}, [Z, O, r, n, I]), C(() => {
|
|
1046
1046
|
const b = (U) => {
|
|
1047
|
-
|
|
1047
|
+
pe.current && !pe.current.contains(U.target) && ue.current && !ue.current.contains(U.target) && te(!1);
|
|
1048
1048
|
};
|
|
1049
1049
|
return document.addEventListener("mousedown", b), () => document.removeEventListener("mousedown", b);
|
|
1050
1050
|
}, []);
|
|
@@ -1066,7 +1066,7 @@ function To({
|
|
|
1066
1066
|
await e(b);
|
|
1067
1067
|
} catch (U) {
|
|
1068
1068
|
const _ = U instanceof Error ? U : new Error("Failed to process address");
|
|
1069
|
-
w(_.message),
|
|
1069
|
+
w(_.message), X == null || X(_), Y(""), L(!1);
|
|
1070
1070
|
}
|
|
1071
1071
|
}, Se = () => {
|
|
1072
1072
|
v.trackPlatform({
|
|
@@ -1112,7 +1112,7 @@ function To({
|
|
|
1112
1112
|
}), await e(b);
|
|
1113
1113
|
} catch (b) {
|
|
1114
1114
|
const U = b instanceof Error ? b : new Error("Failed to submit address");
|
|
1115
|
-
w(U.message),
|
|
1115
|
+
w(U.message), X == null || X(U);
|
|
1116
1116
|
} finally {
|
|
1117
1117
|
oe(!1);
|
|
1118
1118
|
}
|
|
@@ -1290,7 +1290,7 @@ function To({
|
|
|
1290
1290
|
(V || He) && /* @__PURE__ */ t.jsx(
|
|
1291
1291
|
"div",
|
|
1292
1292
|
{
|
|
1293
|
-
ref:
|
|
1293
|
+
ref: pe,
|
|
1294
1294
|
className: `${q.suggestions} ${He ? q.errorState : ""}`,
|
|
1295
1295
|
id: "address-suggestions",
|
|
1296
1296
|
role: He && !V ? "alert" : "listbox",
|
|
@@ -1312,7 +1312,7 @@ function To({
|
|
|
1312
1312
|
children: bt(b)
|
|
1313
1313
|
},
|
|
1314
1314
|
`${b.street1}-${b.city}-${b.postalCode}-${U}`
|
|
1315
|
-
)) :
|
|
1315
|
+
)) : Xe && /* @__PURE__ */ t.jsx(
|
|
1316
1316
|
"button",
|
|
1317
1317
|
{
|
|
1318
1318
|
type: "button",
|
|
@@ -1324,12 +1324,12 @@ function To({
|
|
|
1324
1324
|
}
|
|
1325
1325
|
)
|
|
1326
1326
|
] }),
|
|
1327
|
-
a && /* @__PURE__ */ t.jsx(
|
|
1327
|
+
a && /* @__PURE__ */ t.jsx(ht, {})
|
|
1328
1328
|
] });
|
|
1329
1329
|
}
|
|
1330
|
-
const
|
|
1330
|
+
const Xt = Te(null);
|
|
1331
1331
|
function ae() {
|
|
1332
|
-
const e = Ge(
|
|
1332
|
+
const e = Ge(Xt);
|
|
1333
1333
|
if (!e)
|
|
1334
1334
|
throw new Error("useQQ must be used within a QQProvider");
|
|
1335
1335
|
return e;
|
|
@@ -1453,14 +1453,14 @@ const en = ({
|
|
|
1453
1453
|
S.current = n;
|
|
1454
1454
|
const z = N(a);
|
|
1455
1455
|
z.current = a;
|
|
1456
|
-
const
|
|
1457
|
-
|
|
1458
|
-
const
|
|
1459
|
-
|
|
1456
|
+
const h = N(c);
|
|
1457
|
+
h.current = c;
|
|
1458
|
+
const X = N(l);
|
|
1459
|
+
X.current = l;
|
|
1460
1460
|
const I = N(i);
|
|
1461
1461
|
I.current = i, C(() => {
|
|
1462
1462
|
var m;
|
|
1463
|
-
(m =
|
|
1463
|
+
(m = X.current) == null || m.call(X);
|
|
1464
1464
|
}, []), C(() => {
|
|
1465
1465
|
r && Object.keys(r).length > 0 && P((m) => ({ ...m, ...r }));
|
|
1466
1466
|
}, [r]);
|
|
@@ -1482,7 +1482,7 @@ const en = ({
|
|
|
1482
1482
|
Z(le, ue);
|
|
1483
1483
|
}
|
|
1484
1484
|
const L = { ...v.current, [m]: w };
|
|
1485
|
-
(J =
|
|
1485
|
+
(J = h.current) == null || J.call(h, m, w, L), x((Q) => {
|
|
1486
1486
|
if (!Q[m]) return Q;
|
|
1487
1487
|
const M = { ...Q };
|
|
1488
1488
|
return delete M[m], M;
|
|
@@ -1578,8 +1578,8 @@ const en = ({
|
|
|
1578
1578
|
ie
|
|
1579
1579
|
]
|
|
1580
1580
|
);
|
|
1581
|
-
return /* @__PURE__ */ t.jsx(
|
|
1582
|
-
}, tn = "_layoutContainer_1g5ms_8", rn = "_sidebarContainer_1g5ms_18", nn = "_mainContent_1g5ms_23", An = "_reviewCardContainer_1g5ms_28", an = "_pageContainer_1g5ms_57", cn = "_pageTitle_1g5ms_62", sn = "_pageSubtitle_1g5ms_71", on = "_section_1g5ms_79", ln = "_sectionHeader_1g5ms_88", un = "_sectionIcon_1g5ms_95", dn = "_sectionTitle_1g5ms_101", fn = "_subsectionTitle_1g5ms_109", jn = "_sectionGroup_1g5ms_117", Pn = "_sectionSub_1g5ms_121", Hn = "_sectionFields_1g5ms_131", xn = "_legalText_1g5ms_137",
|
|
1581
|
+
return /* @__PURE__ */ t.jsx(Xt.Provider, { value: oe, children: d });
|
|
1582
|
+
}, tn = "_layoutContainer_1g5ms_8", rn = "_sidebarContainer_1g5ms_18", nn = "_mainContent_1g5ms_23", An = "_reviewCardContainer_1g5ms_28", an = "_pageContainer_1g5ms_57", cn = "_pageTitle_1g5ms_62", sn = "_pageSubtitle_1g5ms_71", on = "_section_1g5ms_79", ln = "_sectionHeader_1g5ms_88", un = "_sectionIcon_1g5ms_95", dn = "_sectionTitle_1g5ms_101", fn = "_subsectionTitle_1g5ms_109", jn = "_sectionGroup_1g5ms_117", Pn = "_sectionSub_1g5ms_121", Hn = "_sectionFields_1g5ms_131", xn = "_legalText_1g5ms_137", kn = "_navigationContainer_1g5ms_152", pn = "_buttonPrimary_1g5ms_158", yn = "_buttonSecondary_1g5ms_178", bn = "_arrowIcon_1g5ms_200", wn = "_sidebar_1g5ms_18", vn = "_stepList_1g5ms_217", gn = "_stepItem_1g5ms_226", mn = "_stepButton_1g5ms_230", On = "_stepActive_1g5ms_252", Sn = "_stepCompleted_1g5ms_259", zn = "_stepIndicator_1g5ms_268", Bn = "_sidebarAttribution_1g5ms_278", Vn = "_reviewCard_1g5ms_28", hn = "_reviewMapArea_1g5ms_306", Xn = "_reviewMapImage_1g5ms_315", Dn = "_reviewMapDynamic_1g5ms_322", Gn = "_reviewMapLoaded_1g5ms_330", Rn = "_reviewBody_1g5ms_338", Wn = "_reviewAddressSection_1g5ms_342", qn = "_reviewAddressText_1g5ms_349", In = "_reviewAddressStreet_1g5ms_355", Mn = "_reviewAddressCityState_1g5ms_362", Tn = "_reviewEditLink_1g5ms_368", Zn = "_reviewStatsGrid_1g5ms_379", Jn = "_reviewStatsGridWithDivider_1g5ms_385", Nn = "_reviewStatItem_1g5ms_391", Yn = "_reviewStatIcon_1g5ms_400", Kn = "_reviewSection_1g5ms_406", Ln = "_reviewSectionHeader_1g5ms_410", En = "_reviewSectionTitle_1g5ms_417", Qn = "_reviewCheckList_1g5ms_424", Cn = "_reviewCheckItem_1g5ms_433", Un = "_reviewCheckIcon_1g5ms_443", Fn = "_reviewMoreLink_1g5ms_451", p = {
|
|
1583
1583
|
layoutContainer: tn,
|
|
1584
1584
|
sidebarContainer: rn,
|
|
1585
1585
|
mainContent: nn,
|
|
@@ -1596,8 +1596,8 @@ const en = ({
|
|
|
1596
1596
|
sectionSub: Pn,
|
|
1597
1597
|
sectionFields: Hn,
|
|
1598
1598
|
legalText: xn,
|
|
1599
|
-
navigationContainer:
|
|
1600
|
-
buttonPrimary:
|
|
1599
|
+
navigationContainer: kn,
|
|
1600
|
+
buttonPrimary: pn,
|
|
1601
1601
|
buttonSecondary: yn,
|
|
1602
1602
|
arrowIcon: bn,
|
|
1603
1603
|
sidebar: wn,
|
|
@@ -1609,8 +1609,8 @@ const en = ({
|
|
|
1609
1609
|
stepIndicator: zn,
|
|
1610
1610
|
sidebarAttribution: Bn,
|
|
1611
1611
|
reviewCard: Vn,
|
|
1612
|
-
reviewMapArea:
|
|
1613
|
-
reviewMapImage:
|
|
1612
|
+
reviewMapArea: hn,
|
|
1613
|
+
reviewMapImage: Xn,
|
|
1614
1614
|
reviewMapDynamic: Dn,
|
|
1615
1615
|
reviewMapLoaded: Gn,
|
|
1616
1616
|
reviewBody: Rn,
|
|
@@ -1664,12 +1664,12 @@ const en = ({
|
|
|
1664
1664
|
active: !1
|
|
1665
1665
|
}
|
|
1666
1666
|
];
|
|
1667
|
-
return /* @__PURE__ */ t.jsxs("nav", { className:
|
|
1668
|
-
/* @__PURE__ */ t.jsx("ul", { className:
|
|
1667
|
+
return /* @__PURE__ */ t.jsxs("nav", { className: p.sidebar, "aria-label": "Qualification progress", children: [
|
|
1668
|
+
/* @__PURE__ */ t.jsx("ul", { className: p.stepList, children: c.map((l) => /* @__PURE__ */ t.jsx("li", { className: p.stepItem, children: /* @__PURE__ */ t.jsxs(
|
|
1669
1669
|
"button",
|
|
1670
1670
|
{
|
|
1671
1671
|
type: "button",
|
|
1672
|
-
className: `${
|
|
1672
|
+
className: `${p.stepButton} ${l.active ? p.stepActive : ""} ${l.completed ? p.stepCompleted : ""}`.trim(),
|
|
1673
1673
|
onClick: () => {
|
|
1674
1674
|
l.completed && (a.trackPlatform({
|
|
1675
1675
|
linkClickEvent: {
|
|
@@ -1681,13 +1681,13 @@ const en = ({
|
|
|
1681
1681
|
"aria-current": l.active ? "step" : void 0,
|
|
1682
1682
|
children: [
|
|
1683
1683
|
/* @__PURE__ */ t.jsx("span", { children: l.label }),
|
|
1684
|
-
l.completed && /* @__PURE__ */ t.jsx("span", { className:
|
|
1684
|
+
l.completed && /* @__PURE__ */ t.jsx("span", { className: p.stepIndicator, children: /* @__PURE__ */ t.jsx(_n, {}) })
|
|
1685
1685
|
]
|
|
1686
1686
|
}
|
|
1687
1687
|
) }, l.position)) }),
|
|
1688
|
-
e && /* @__PURE__ */ t.jsx("div", { className:
|
|
1688
|
+
e && /* @__PURE__ */ t.jsx("div", { className: p.sidebarAttribution, children: /* @__PURE__ */ t.jsx(ht, {}) })
|
|
1689
1689
|
] });
|
|
1690
|
-
}, eA = "_fieldWrapper_cfpjd_2", tA = "_fieldLabel_cfpjd_8", rA = "_fieldDescription_cfpjd_20", nA = "_fieldError_cfpjd_27", AA = "_inputWrapper_cfpjd_35", aA = "_dropdown_cfpjd_42", cA = "_input_cfpjd_35", sA = "_inputSuffix_cfpjd_96", oA = "_currencyPrefix_cfpjd_106", lA = "_currencyInput_cfpjd_116", uA = "_checkboxGroup_cfpjd_135", iA = "_checkboxOption_cfpjd_141", dA = "_checkboxOptionSelected_cfpjd_157", fA = "_checkboxInput_cfpjd_162", jA = "_checkboxLabelGroup_cfpjd_195", PA = "_checkboxLabel_cfpjd_195", HA = "_checkboxDescription_cfpjd_208", xA = "_toggleWrapper_cfpjd_215",
|
|
1690
|
+
}, eA = "_fieldWrapper_cfpjd_2", tA = "_fieldLabel_cfpjd_8", rA = "_fieldDescription_cfpjd_20", nA = "_fieldError_cfpjd_27", AA = "_inputWrapper_cfpjd_35", aA = "_dropdown_cfpjd_42", cA = "_input_cfpjd_35", sA = "_inputSuffix_cfpjd_96", oA = "_currencyPrefix_cfpjd_106", lA = "_currencyInput_cfpjd_116", uA = "_checkboxGroup_cfpjd_135", iA = "_checkboxOption_cfpjd_141", dA = "_checkboxOptionSelected_cfpjd_157", fA = "_checkboxInput_cfpjd_162", jA = "_checkboxLabelGroup_cfpjd_195", PA = "_checkboxLabel_cfpjd_195", HA = "_checkboxDescription_cfpjd_208", xA = "_toggleWrapper_cfpjd_215", kA = "_toggleBare_cfpjd_221", pA = "_toggleCheckbox_cfpjd_229", yA = "_toggleLabelGroup_cfpjd_261", bA = "_toggleBareLabel_cfpjd_267", wA = "_toggleBareDescription_cfpjd_273", vA = "_radioGroup_cfpjd_280", gA = "_radioGroupInline_cfpjd_287", mA = "_radioButtonPill_cfpjd_292", OA = "_radioButtonPillSelected_cfpjd_312", SA = "_radioOption_cfpjd_318", zA = "_radioOptionSelected_cfpjd_334", BA = "_radioInput_cfpjd_339", VA = "_radioLabel_cfpjd_346", hA = "_cardGroup_cfpjd_354", XA = "_card_cfpjd_354", DA = "_cardGroupWithImages_cfpjd_379", GA = "_cardWithImage_cfpjd_385", RA = "_cardImage_cfpjd_403", WA = "_cardSelected_cfpjd_410", qA = "_cardLabel_cfpjd_417", IA = "_cardDescription_cfpjd_425", B = {
|
|
1691
1691
|
fieldWrapper: eA,
|
|
1692
1692
|
fieldLabel: tA,
|
|
1693
1693
|
fieldDescription: rA,
|
|
@@ -1706,8 +1706,8 @@ const en = ({
|
|
|
1706
1706
|
checkboxLabel: PA,
|
|
1707
1707
|
checkboxDescription: HA,
|
|
1708
1708
|
toggleWrapper: xA,
|
|
1709
|
-
toggleBare:
|
|
1710
|
-
toggleCheckbox:
|
|
1709
|
+
toggleBare: kA,
|
|
1710
|
+
toggleCheckbox: pA,
|
|
1711
1711
|
toggleLabelGroup: yA,
|
|
1712
1712
|
toggleBareLabel: bA,
|
|
1713
1713
|
toggleBareDescription: wA,
|
|
@@ -1719,8 +1719,8 @@ const en = ({
|
|
|
1719
1719
|
radioOptionSelected: zA,
|
|
1720
1720
|
radioInput: BA,
|
|
1721
1721
|
radioLabel: VA,
|
|
1722
|
-
cardGroup:
|
|
1723
|
-
card:
|
|
1722
|
+
cardGroup: hA,
|
|
1723
|
+
card: XA,
|
|
1724
1724
|
cardGroupWithImages: DA,
|
|
1725
1725
|
cardWithImage: GA,
|
|
1726
1726
|
cardImage: RA,
|
|
@@ -2083,12 +2083,12 @@ const QA = ({ question: e }) => {
|
|
|
2083
2083
|
}
|
|
2084
2084
|
}), a();
|
|
2085
2085
|
};
|
|
2086
|
-
return /* @__PURE__ */ t.jsxs("div", { className:
|
|
2086
|
+
return /* @__PURE__ */ t.jsxs("div", { className: p.navigationContainer, children: [
|
|
2087
2087
|
!l && /* @__PURE__ */ t.jsx(
|
|
2088
2088
|
"button",
|
|
2089
2089
|
{
|
|
2090
2090
|
type: "button",
|
|
2091
|
-
className:
|
|
2091
|
+
className: p.buttonSecondary,
|
|
2092
2092
|
onClick: s,
|
|
2093
2093
|
children: "Back"
|
|
2094
2094
|
}
|
|
@@ -2097,11 +2097,11 @@ const QA = ({ question: e }) => {
|
|
|
2097
2097
|
"button",
|
|
2098
2098
|
{
|
|
2099
2099
|
type: "button",
|
|
2100
|
-
className:
|
|
2100
|
+
className: p.buttonPrimary,
|
|
2101
2101
|
onClick: o,
|
|
2102
2102
|
children: [
|
|
2103
2103
|
/* @__PURE__ */ t.jsx("span", { children: "Continue" }),
|
|
2104
|
-
/* @__PURE__ */ t.jsx("span", { className:
|
|
2104
|
+
/* @__PURE__ */ t.jsx("span", { className: p.arrowIcon, children: /* @__PURE__ */ t.jsx(UA, {}) })
|
|
2105
2105
|
]
|
|
2106
2106
|
}
|
|
2107
2107
|
)
|
|
@@ -2131,33 +2131,33 @@ const QA = ({ question: e }) => {
|
|
|
2131
2131
|
() => c ? Dt(c, n) : null,
|
|
2132
2132
|
[c, n]
|
|
2133
2133
|
);
|
|
2134
|
-
return !c || !d ? null : /* @__PURE__ */ t.jsxs("div", { ref: l, className:
|
|
2135
|
-
/* @__PURE__ */ t.jsx("h2", { className:
|
|
2136
|
-
c.subtitle && /* @__PURE__ */ t.jsx("p", { className:
|
|
2134
|
+
return !c || !d ? null : /* @__PURE__ */ t.jsxs("div", { ref: l, className: p.pageContainer, children: [
|
|
2135
|
+
/* @__PURE__ */ t.jsx("h2", { className: p.pageTitle, children: c.title }),
|
|
2136
|
+
c.subtitle && /* @__PURE__ */ t.jsx("p", { className: p.pageSubtitle, children: c.subtitle }),
|
|
2137
2137
|
d.sections.map((o) => {
|
|
2138
2138
|
const s = !!o.icon;
|
|
2139
2139
|
return /* @__PURE__ */ t.jsxs(
|
|
2140
2140
|
"div",
|
|
2141
2141
|
{
|
|
2142
|
-
className: `${
|
|
2142
|
+
className: `${p.section} ${s ? p.sectionGroup : ""} ${!s && o.title ? p.sectionSub : ""}`.trim(),
|
|
2143
2143
|
children: [
|
|
2144
|
-
o.title && /* @__PURE__ */ t.jsxs("div", { className:
|
|
2145
|
-
o.icon && /* @__PURE__ */ t.jsx("span", { className:
|
|
2144
|
+
o.title && /* @__PURE__ */ t.jsxs("div", { className: p.sectionHeader, children: [
|
|
2145
|
+
o.icon && /* @__PURE__ */ t.jsx("span", { className: p.sectionIcon, children: o.icon }),
|
|
2146
2146
|
/* @__PURE__ */ t.jsx(
|
|
2147
2147
|
"h3",
|
|
2148
2148
|
{
|
|
2149
|
-
className: s ?
|
|
2149
|
+
className: s ? p.sectionTitle : p.subsectionTitle,
|
|
2150
2150
|
children: o.title
|
|
2151
2151
|
}
|
|
2152
2152
|
)
|
|
2153
2153
|
] }),
|
|
2154
|
-
o.questions.length > 0 && /* @__PURE__ */ t.jsx("div", { className:
|
|
2154
|
+
o.questions.length > 0 && /* @__PURE__ */ t.jsx("div", { className: p.sectionFields, children: o.questions.map((u) => /* @__PURE__ */ t.jsx(CA, { question: u }, u.key)) })
|
|
2155
2155
|
]
|
|
2156
2156
|
},
|
|
2157
2157
|
o.id
|
|
2158
2158
|
);
|
|
2159
2159
|
}),
|
|
2160
|
-
c.id === "contact-info" && /* @__PURE__ */ t.jsxs("p", { className:
|
|
2160
|
+
c.id === "contact-info" && /* @__PURE__ */ t.jsxs("p", { className: p.legalText, children: [
|
|
2161
2161
|
"By submitting your details, you consent to receive a no-obligation offer from",
|
|
2162
2162
|
" ",
|
|
2163
2163
|
/* @__PURE__ */ t.jsx(
|
|
@@ -2214,12 +2214,12 @@ function Gt(e, r) {
|
|
|
2214
2214
|
async function P() {
|
|
2215
2215
|
var S, z;
|
|
2216
2216
|
try {
|
|
2217
|
-
const
|
|
2218
|
-
if (!
|
|
2217
|
+
const h = `${ea}/${encodeURIComponent(x)}.json?access_token=${n}&limit=1`, X = await fetch(h);
|
|
2218
|
+
if (!X.ok || H) {
|
|
2219
2219
|
H || u("error");
|
|
2220
2220
|
return;
|
|
2221
2221
|
}
|
|
2222
|
-
const v = (z = (S = (await
|
|
2222
|
+
const v = (z = (S = (await X.json()).features) == null ? void 0 : S[0]) == null ? void 0 : z.center;
|
|
2223
2223
|
if (!v || H) {
|
|
2224
2224
|
H || u("error");
|
|
2225
2225
|
return;
|
|
@@ -2365,7 +2365,7 @@ const ja = ({
|
|
|
2365
2365
|
const { url: l } = Gt(e, {
|
|
2366
2366
|
mapboxAccessToken: n,
|
|
2367
2367
|
mapPinMarker: a
|
|
2368
|
-
}), [i, d] = T(!1), { pages: o, currentPageIndex: s, getAnswer: u, goToPage: x } = ae(), H = ce(), P = u("home.bedrooms"), S = u("home.bathrooms.full"), z = u("home.bathrooms.half"),
|
|
2368
|
+
}), [i, d] = T(!1), { pages: o, currentPageIndex: s, getAnswer: u, goToPage: x } = ae(), H = ce(), P = u("home.bedrooms"), S = u("home.bathrooms.full"), z = u("home.bathrooms.half"), h = JA(S, z), X = u("home.above_grade_sq_ft"), I = u("home.year_built"), v = je(() => {
|
|
2369
2369
|
var Z;
|
|
2370
2370
|
const R = [];
|
|
2371
2371
|
for (let Y = 1; Y < s; Y++) {
|
|
@@ -2380,13 +2380,13 @@ const ja = ({
|
|
|
2380
2380
|
}
|
|
2381
2381
|
return R;
|
|
2382
2382
|
}, [o, s, u]);
|
|
2383
|
-
return /* @__PURE__ */ t.jsxs("div", { className:
|
|
2384
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
2383
|
+
return /* @__PURE__ */ t.jsxs("div", { className: p.reviewCard, children: [
|
|
2384
|
+
/* @__PURE__ */ t.jsx("div", { className: p.reviewMapArea, children: r ? /* @__PURE__ */ t.jsx("img", { src: r, alt: "Map", className: p.reviewMapImage }) : l ? /* @__PURE__ */ t.jsx(
|
|
2385
2385
|
"img",
|
|
2386
2386
|
{
|
|
2387
2387
|
src: l,
|
|
2388
2388
|
alt: "Map",
|
|
2389
|
-
className: `${
|
|
2389
|
+
className: `${p.reviewMapImage} ${p.reviewMapDynamic} ${i ? p.reviewMapLoaded : ""}`.trim(),
|
|
2390
2390
|
onLoad: () => d(!0)
|
|
2391
2391
|
}
|
|
2392
2392
|
) : /* @__PURE__ */ t.jsx(
|
|
@@ -2394,17 +2394,17 @@ const ja = ({
|
|
|
2394
2394
|
{
|
|
2395
2395
|
src: $A,
|
|
2396
2396
|
alt: "Map",
|
|
2397
|
-
className:
|
|
2397
|
+
className: p.reviewMapImage
|
|
2398
2398
|
}
|
|
2399
2399
|
) }),
|
|
2400
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
2401
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
2402
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
2403
|
-
/* @__PURE__ */ t.jsxs("span", { className:
|
|
2400
|
+
/* @__PURE__ */ t.jsxs("div", { className: p.reviewBody, children: [
|
|
2401
|
+
/* @__PURE__ */ t.jsxs("div", { className: p.reviewAddressSection, children: [
|
|
2402
|
+
/* @__PURE__ */ t.jsxs("div", { className: p.reviewAddressText, children: [
|
|
2403
|
+
/* @__PURE__ */ t.jsxs("span", { className: p.reviewAddressStreet, children: [
|
|
2404
2404
|
e.street1,
|
|
2405
2405
|
e.street2 ? ` ${e.street2}` : ""
|
|
2406
2406
|
] }),
|
|
2407
|
-
/* @__PURE__ */ t.jsxs("span", { className:
|
|
2407
|
+
/* @__PURE__ */ t.jsxs("span", { className: p.reviewAddressCityState, children: [
|
|
2408
2408
|
e.city,
|
|
2409
2409
|
", ",
|
|
2410
2410
|
e.state,
|
|
@@ -2416,7 +2416,7 @@ const ja = ({
|
|
|
2416
2416
|
"button",
|
|
2417
2417
|
{
|
|
2418
2418
|
type: "button",
|
|
2419
|
-
className:
|
|
2419
|
+
className: p.reviewEditLink,
|
|
2420
2420
|
onClick: () => {
|
|
2421
2421
|
H.trackPlatform({
|
|
2422
2422
|
linkClickEvent: { targetName: "partner-sdk-edit-address" }
|
|
@@ -2429,23 +2429,23 @@ const ja = ({
|
|
|
2429
2429
|
/* @__PURE__ */ t.jsxs(
|
|
2430
2430
|
"div",
|
|
2431
2431
|
{
|
|
2432
|
-
className: `${
|
|
2432
|
+
className: `${p.reviewStatsGrid} ${v.length > 0 ? p.reviewStatsGridWithDivider : ""}`.trim(),
|
|
2433
2433
|
children: [
|
|
2434
|
-
P !== void 0 && /* @__PURE__ */ t.jsxs("span", { className:
|
|
2435
|
-
/* @__PURE__ */ t.jsx("span", { className:
|
|
2434
|
+
P !== void 0 && /* @__PURE__ */ t.jsxs("span", { className: p.reviewStatItem, children: [
|
|
2435
|
+
/* @__PURE__ */ t.jsx("span", { className: p.reviewStatIcon, children: /* @__PURE__ */ t.jsx(oa, {}) }),
|
|
2436
2436
|
P
|
|
2437
2437
|
] }),
|
|
2438
|
-
|
|
2439
|
-
/* @__PURE__ */ t.jsx("span", { className:
|
|
2440
|
-
|
|
2438
|
+
h !== void 0 && /* @__PURE__ */ t.jsxs("span", { className: p.reviewStatItem, children: [
|
|
2439
|
+
/* @__PURE__ */ t.jsx("span", { className: p.reviewStatIcon, children: /* @__PURE__ */ t.jsx(la, {}) }),
|
|
2440
|
+
h
|
|
2441
2441
|
] }),
|
|
2442
|
-
|
|
2443
|
-
/* @__PURE__ */ t.jsx("span", { className:
|
|
2444
|
-
|
|
2442
|
+
X !== void 0 && /* @__PURE__ */ t.jsxs("span", { className: p.reviewStatItem, children: [
|
|
2443
|
+
/* @__PURE__ */ t.jsx("span", { className: p.reviewStatIcon, children: /* @__PURE__ */ t.jsx(ua, {}) }),
|
|
2444
|
+
X.toLocaleString("en-US"),
|
|
2445
2445
|
" sq ft"
|
|
2446
2446
|
] }),
|
|
2447
|
-
I !== void 0 && /* @__PURE__ */ t.jsxs("span", { className:
|
|
2448
|
-
/* @__PURE__ */ t.jsx("span", { className:
|
|
2447
|
+
I !== void 0 && /* @__PURE__ */ t.jsxs("span", { className: p.reviewStatItem, children: [
|
|
2448
|
+
/* @__PURE__ */ t.jsx("span", { className: p.reviewStatIcon, children: /* @__PURE__ */ t.jsx(ia, {}) }),
|
|
2449
2449
|
I
|
|
2450
2450
|
] })
|
|
2451
2451
|
]
|
|
@@ -2469,28 +2469,28 @@ function Pa({
|
|
|
2469
2469
|
onEdit: n
|
|
2470
2470
|
}) {
|
|
2471
2471
|
const [a, c] = T(!1), l = a ? r : r.slice(0, gt), i = r.length - gt;
|
|
2472
|
-
return /* @__PURE__ */ t.jsxs("div", { className:
|
|
2473
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
2474
|
-
/* @__PURE__ */ t.jsx("span", { className:
|
|
2472
|
+
return /* @__PURE__ */ t.jsxs("div", { className: p.reviewSection, children: [
|
|
2473
|
+
/* @__PURE__ */ t.jsxs("div", { className: p.reviewSectionHeader, children: [
|
|
2474
|
+
/* @__PURE__ */ t.jsx("span", { className: p.reviewSectionTitle, children: e }),
|
|
2475
2475
|
/* @__PURE__ */ t.jsx(
|
|
2476
2476
|
"button",
|
|
2477
2477
|
{
|
|
2478
2478
|
type: "button",
|
|
2479
|
-
className:
|
|
2479
|
+
className: p.reviewEditLink,
|
|
2480
2480
|
onClick: n,
|
|
2481
2481
|
children: "Edit"
|
|
2482
2482
|
}
|
|
2483
2483
|
)
|
|
2484
2484
|
] }),
|
|
2485
|
-
/* @__PURE__ */ t.jsx("ul", { className:
|
|
2486
|
-
/* @__PURE__ */ t.jsx("span", { className:
|
|
2485
|
+
/* @__PURE__ */ t.jsx("ul", { className: p.reviewCheckList, children: l.map((d, o) => /* @__PURE__ */ t.jsxs("li", { className: p.reviewCheckItem, children: [
|
|
2486
|
+
/* @__PURE__ */ t.jsx("span", { className: p.reviewCheckIcon, children: /* @__PURE__ */ t.jsx(da, {}) }),
|
|
2487
2487
|
d
|
|
2488
2488
|
] }, o)) }),
|
|
2489
2489
|
!a && i > 0 && /* @__PURE__ */ t.jsxs(
|
|
2490
2490
|
"button",
|
|
2491
2491
|
{
|
|
2492
2492
|
type: "button",
|
|
2493
|
-
className:
|
|
2493
|
+
className: p.reviewMoreLink,
|
|
2494
2494
|
onClick: () => c(!0),
|
|
2495
2495
|
children: [
|
|
2496
2496
|
"& ",
|
|
@@ -2508,10 +2508,10 @@ const Ha = ({
|
|
|
2508
2508
|
mapPinMarker: a,
|
|
2509
2509
|
showAttribution: c = !0,
|
|
2510
2510
|
onEditAddress: l
|
|
2511
|
-
}) => /* @__PURE__ */ t.jsxs("div", { className:
|
|
2512
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
2513
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
2514
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
2511
|
+
}) => /* @__PURE__ */ t.jsxs("div", { className: p.layoutContainer, children: [
|
|
2512
|
+
/* @__PURE__ */ t.jsx("div", { className: p.sidebarContainer, children: /* @__PURE__ */ t.jsx($n, { showAttribution: c }) }),
|
|
2513
|
+
/* @__PURE__ */ t.jsx("div", { className: p.mainContent, children: /* @__PURE__ */ t.jsx(_A, {}) }),
|
|
2514
|
+
/* @__PURE__ */ t.jsx("div", { className: p.reviewCardContainer, children: /* @__PURE__ */ t.jsx(
|
|
2515
2515
|
ja,
|
|
2516
2516
|
{
|
|
2517
2517
|
address: e,
|
|
@@ -2524,10 +2524,10 @@ const Ha = ({
|
|
|
2524
2524
|
] }), xa = Array.from({ length: 10 }, (e, r) => ({
|
|
2525
2525
|
label: String(r + 1),
|
|
2526
2526
|
value: r + 1
|
|
2527
|
-
})),
|
|
2527
|
+
})), ka = Array.from({ length: 10 }, (e, r) => ({
|
|
2528
2528
|
label: String(r + 1),
|
|
2529
2529
|
value: r + 1
|
|
2530
|
-
})),
|
|
2530
|
+
})), pa = Array.from({ length: 10 }, (e, r) => ({
|
|
2531
2531
|
label: String(r),
|
|
2532
2532
|
value: r
|
|
2533
2533
|
})), mt = (/* @__PURE__ */ new Date()).getFullYear(), ya = Array.from(
|
|
@@ -2569,7 +2569,7 @@ const Ha = ({
|
|
|
2569
2569
|
question: "Bathrooms",
|
|
2570
2570
|
description: "Includes shower or tub",
|
|
2571
2571
|
required: !0,
|
|
2572
|
-
options:
|
|
2572
|
+
options: ka
|
|
2573
2573
|
},
|
|
2574
2574
|
{
|
|
2575
2575
|
key: "home.bathrooms.half",
|
|
@@ -2578,7 +2578,7 @@ const Ha = ({
|
|
|
2578
2578
|
question: "Partial bathrooms",
|
|
2579
2579
|
description: "No shower or tub",
|
|
2580
2580
|
required: !0,
|
|
2581
|
-
options:
|
|
2581
|
+
options: pa
|
|
2582
2582
|
},
|
|
2583
2583
|
{
|
|
2584
2584
|
key: "home.above_grade_sq_ft",
|
|
@@ -2727,14 +2727,14 @@ const za = [["path", { d: "M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1
|
|
|
2727
2727
|
* This source code is licensed under the MIT license.
|
|
2728
2728
|
* See the LICENSE file in the root directory of this source tree.
|
|
2729
2729
|
*/
|
|
2730
|
-
const Va = [["path", { d: "M12 17.75l-6.172 3.245l1.179 -6.873l-5 -4.867l6.9 -1l3.086 -6.253l3.086 6.253l6.9 1l-5 4.867l1.179 6.873l-6.158 -3.245", key: "svg-0" }]],
|
|
2730
|
+
const Va = [["path", { d: "M12 17.75l-6.172 3.245l1.179 -6.873l-5 -4.867l6.9 -1l3.086 -6.253l3.086 6.253l6.9 1l-5 4.867l1.179 6.873l-6.158 -3.245", key: "svg-0" }]], ha = We("outline", "star", "Star", Va);
|
|
2731
2731
|
/**
|
|
2732
2732
|
* @license @tabler/icons-react v3.36.1 - MIT
|
|
2733
2733
|
*
|
|
2734
2734
|
* This source code is licensed under the MIT license.
|
|
2735
2735
|
* See the LICENSE file in the root directory of this source tree.
|
|
2736
2736
|
*/
|
|
2737
|
-
const
|
|
2737
|
+
const Xa = [["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" }]], Da = We("outline", "tools-kitchen-2", "ToolsKitchen2", Xa), he = { size: 20, stroke: 1.5 }, Ga = () => /* @__PURE__ */ t.jsx(Da, { ...he }), Ra = () => /* @__PURE__ */ t.jsx(Rt, { ...he }), Wt = () => /* @__PURE__ */ t.jsx(Sa, { ...he }), qt = () => /* @__PURE__ */ t.jsx(Ba, { ...he }), Wa = () => /* @__PURE__ */ t.jsx(Rt, { ...he }), qa = () => /* @__PURE__ */ t.jsx(ha, { ...he }), Ia = {
|
|
2738
2738
|
id: "features",
|
|
2739
2739
|
title: "Tell us about your home's features",
|
|
2740
2740
|
subtitle: "Check all that apply. This helps us price your home accurately.",
|
|
@@ -3963,7 +3963,7 @@ const ha = [["path", { d: "M19 3v12h-5c-.023 -3.681 .184 -7.406 5 -12m0 12v6h-1v
|
|
|
3963
3963
|
}
|
|
3964
3964
|
]
|
|
3965
3965
|
};
|
|
3966
|
-
function
|
|
3966
|
+
function Jo({
|
|
3967
3967
|
offerId: e,
|
|
3968
3968
|
address: r,
|
|
3969
3969
|
salesAssociateName: n,
|
|
@@ -3981,7 +3981,7 @@ function Zo({
|
|
|
3981
3981
|
onError: S,
|
|
3982
3982
|
onEditAddress: z
|
|
3983
3983
|
}) {
|
|
3984
|
-
const
|
|
3984
|
+
const X = Re(l ?? { theme: "minimal" }), I = je(
|
|
3985
3985
|
() => [
|
|
3986
3986
|
va,
|
|
3987
3987
|
Ia,
|
|
@@ -3991,7 +3991,7 @@ function Zo({
|
|
|
3991
3991
|
],
|
|
3992
3992
|
[]
|
|
3993
3993
|
);
|
|
3994
|
-
return /* @__PURE__ */ t.jsx("div", { style:
|
|
3994
|
+
return /* @__PURE__ */ t.jsx("div", { style: X, children: /* @__PURE__ */ t.jsx(
|
|
3995
3995
|
en,
|
|
3996
3996
|
{
|
|
3997
3997
|
pages: I,
|
|
@@ -4015,13 +4015,13 @@ function Zo({
|
|
|
4015
4015
|
}
|
|
4016
4016
|
) });
|
|
4017
4017
|
}
|
|
4018
|
-
const jc = "_container_rg8mk_3", Pc = "_title_rg8mk_7", Hc = "_addressCard_rg8mk_16", xc = "_addressText_rg8mk_26",
|
|
4018
|
+
const jc = "_container_rg8mk_3", Pc = "_title_rg8mk_7", Hc = "_addressCard_rg8mk_16", xc = "_addressText_rg8mk_26", kc = "_editLink_rg8mk_34", pc = "_fieldGroup_rg8mk_47", yc = "_fieldLabel_rg8mk_51", bc = "_input_rg8mk_60", wc = "_checkboxRow_rg8mk_84", vc = "_checkbox_rg8mk_84", gc = "_checkboxLabel_rg8mk_101", mc = "_error_rg8mk_108", Oc = "_actions_rg8mk_115", Sc = "_confirmButton_rg8mk_120", Ae = {
|
|
4019
4019
|
container: jc,
|
|
4020
4020
|
title: Pc,
|
|
4021
4021
|
addressCard: Hc,
|
|
4022
4022
|
addressText: xc,
|
|
4023
|
-
editLink:
|
|
4024
|
-
fieldGroup:
|
|
4023
|
+
editLink: kc,
|
|
4024
|
+
fieldGroup: pc,
|
|
4025
4025
|
fieldLabel: yc,
|
|
4026
4026
|
input: bc,
|
|
4027
4027
|
checkboxRow: wc,
|
|
@@ -4034,7 +4034,7 @@ const jc = "_container_rg8mk_3", Pc = "_title_rg8mk_7", Hc = "_addressCard_rg8mk
|
|
|
4034
4034
|
function zc(e) {
|
|
4035
4035
|
return `${e.street1 + (e.street2 ? ` ${e.street2}` : "")}, ${e.city}, ${e.state} ${e.postalCode}`;
|
|
4036
4036
|
}
|
|
4037
|
-
function
|
|
4037
|
+
function No({
|
|
4038
4038
|
address: e,
|
|
4039
4039
|
appearance: r,
|
|
4040
4040
|
onConfirm: n,
|
|
@@ -4055,9 +4055,9 @@ function Jo({
|
|
|
4055
4055
|
optionName: String(!u)
|
|
4056
4056
|
}
|
|
4057
4057
|
}), x(!u), u || (s(""), P(null));
|
|
4058
|
-
},
|
|
4058
|
+
}, h = (I) => {
|
|
4059
4059
|
s(I.target.value), H && P(null);
|
|
4060
|
-
},
|
|
4060
|
+
}, X = () => {
|
|
4061
4061
|
c.trackPlatform({
|
|
4062
4062
|
inputFocusEvent: { targetName: "partner-sdk-unit-input" }
|
|
4063
4063
|
});
|
|
@@ -4078,8 +4078,8 @@ function Jo({
|
|
|
4078
4078
|
className: Ae.input,
|
|
4079
4079
|
placeholder: "#1234",
|
|
4080
4080
|
value: o,
|
|
4081
|
-
onChange:
|
|
4082
|
-
onFocus:
|
|
4081
|
+
onChange: h,
|
|
4082
|
+
onFocus: X,
|
|
4083
4083
|
disabled: u
|
|
4084
4084
|
}
|
|
4085
4085
|
)
|
|
@@ -4108,12 +4108,12 @@ function Jo({
|
|
|
4108
4108
|
) })
|
|
4109
4109
|
] });
|
|
4110
4110
|
}
|
|
4111
|
-
const Bc = "_container_1vap7_3", Vc = "_mapImage_1vap7_13",
|
|
4111
|
+
const Bc = "_container_1vap7_3", Vc = "_mapImage_1vap7_13", hc = "_mapImageLoaded_1vap7_22", et = {
|
|
4112
4112
|
container: Bc,
|
|
4113
4113
|
mapImage: Vc,
|
|
4114
|
-
mapImageLoaded:
|
|
4114
|
+
mapImageLoaded: hc
|
|
4115
4115
|
};
|
|
4116
|
-
function
|
|
4116
|
+
function Yo({
|
|
4117
4117
|
address: e,
|
|
4118
4118
|
appearance: r,
|
|
4119
4119
|
mapboxAccessToken: n,
|
|
@@ -4133,12 +4133,12 @@ function No({
|
|
|
4133
4133
|
zoom: i
|
|
4134
4134
|
}), [P, S] = T(!1), z = N(o);
|
|
4135
4135
|
z.current = o;
|
|
4136
|
-
const
|
|
4137
|
-
|
|
4136
|
+
const h = N(s);
|
|
4137
|
+
h.current = s, C(() => {
|
|
4138
4138
|
var v;
|
|
4139
|
-
H === "error" && ((v =
|
|
4139
|
+
H === "error" && ((v = h.current) == null || v.call(h, new Error("Failed to load map for address")));
|
|
4140
4140
|
}, [H]);
|
|
4141
|
-
const
|
|
4141
|
+
const X = () => {
|
|
4142
4142
|
var v;
|
|
4143
4143
|
S(!0), (v = z.current) == null || v.call(z);
|
|
4144
4144
|
}, I = {
|
|
@@ -4151,11 +4151,11 @@ function No({
|
|
|
4151
4151
|
src: x,
|
|
4152
4152
|
alt: "Map",
|
|
4153
4153
|
className: `${et.mapImage} ${P ? et.mapImageLoaded : ""}`.trim(),
|
|
4154
|
-
onLoad:
|
|
4154
|
+
onLoad: X
|
|
4155
4155
|
}
|
|
4156
4156
|
) });
|
|
4157
4157
|
}
|
|
4158
|
-
function
|
|
4158
|
+
function Xc(e) {
|
|
4159
4159
|
return "field" in e;
|
|
4160
4160
|
}
|
|
4161
4161
|
function Dc(e) {
|
|
@@ -4169,7 +4169,7 @@ function Me(e, r) {
|
|
|
4169
4169
|
return e.and.every((n) => Me(n, r));
|
|
4170
4170
|
if (Gc(e))
|
|
4171
4171
|
return e.or.some((n) => Me(n, r));
|
|
4172
|
-
if (
|
|
4172
|
+
if (Xc(e)) {
|
|
4173
4173
|
const n = r(e.field);
|
|
4174
4174
|
switch (e.op) {
|
|
4175
4175
|
case "eq":
|
|
@@ -5045,7 +5045,7 @@ const ss = ({
|
|
|
5045
5045
|
C(() => {
|
|
5046
5046
|
e !== z.current && (z.current = e, S(St({ market: e, initialAnswers: r })));
|
|
5047
5047
|
}, [e]);
|
|
5048
|
-
const [
|
|
5048
|
+
const [h, X] = T(
|
|
5049
5049
|
P.answers
|
|
5050
5050
|
), [I, v] = T(
|
|
5051
5051
|
((w = P.currentPage) == null ? void 0 : w.id) ?? ""
|
|
@@ -5057,7 +5057,7 @@ const ss = ({
|
|
|
5057
5057
|
const O = [
|
|
5058
5058
|
P.on("answerChange", (J) => {
|
|
5059
5059
|
var Q;
|
|
5060
|
-
|
|
5060
|
+
X(P.answers), D([...P.visiblePages]), J.type === "answerChange" && ((Q = u.current) == null || Q.call(u, J.key, J.value));
|
|
5061
5061
|
}),
|
|
5062
5062
|
P.on("pageChange", (J) => {
|
|
5063
5063
|
var Q;
|
|
@@ -5081,7 +5081,7 @@ const ss = ({
|
|
|
5081
5081
|
const V = je(() => {
|
|
5082
5082
|
const O = Y.findIndex((L) => L.id === I);
|
|
5083
5083
|
return O >= 0 ? O : 0;
|
|
5084
|
-
}, [Y, I]), te = Y[V], ie = je(() => I ? P.getVisibleQuestionsForCurrentPage() : [], [P, I,
|
|
5084
|
+
}, [Y, I]), te = Y[V], ie = je(() => I ? P.getVisibleQuestionsForCurrentPage() : [], [P, I, h]), oe = je(() => Y.length <= 1 ? 0 : Math.min(
|
|
5085
5085
|
1,
|
|
5086
5086
|
Math.max(0, V / (Y.length - 1))
|
|
5087
5087
|
), [V, Y.length]), m = je(
|
|
@@ -5091,7 +5091,7 @@ const ss = ({
|
|
|
5091
5091
|
currentPageIndex: V,
|
|
5092
5092
|
visiblePages: Y,
|
|
5093
5093
|
visibleQuestions: ie,
|
|
5094
|
-
answers:
|
|
5094
|
+
answers: h,
|
|
5095
5095
|
validationErrors: R,
|
|
5096
5096
|
progress: oe,
|
|
5097
5097
|
isFirstPage: V === 0,
|
|
@@ -5121,13 +5121,13 @@ const ss = ({
|
|
|
5121
5121
|
V,
|
|
5122
5122
|
Y,
|
|
5123
5123
|
ie,
|
|
5124
|
-
|
|
5124
|
+
h,
|
|
5125
5125
|
R,
|
|
5126
5126
|
oe
|
|
5127
5127
|
]
|
|
5128
5128
|
);
|
|
5129
5129
|
return /* @__PURE__ */ t.jsx(Tt.Provider, { value: m, children: d });
|
|
5130
|
-
}, os = "
|
|
5130
|
+
}, os = "_container_1inrk_7", ls = "_header_1inrk_19", us = "_headerLogos_1inrk_29", is = "_headerPartnerLogo_1inrk_35", ds = "_headerOpendoorText_1inrk_41", fs = "_headerCloseButton_1inrk_47", js = "_layout_1inrk_72", Ps = "_addressBar_1inrk_80", Hs = "_addressIcon_1inrk_88", xs = "_addressText_1inrk_92", ks = "_contentSplit_1inrk_98", ps = "_contentLeft_1inrk_112", ys = "_contentRight_1inrk_118", bs = "_pageTitle_1inrk_134", ws = "_pageSubtitle_1inrk_142", vs = "_pageContent_1inrk_151", gs = "_navigation_1inrk_159", ms = "_navigationButtons_1inrk_167", Os = "_backButton_1inrk_173", Ss = "_nextButton_1inrk_196", zs = "_progressBar_1inrk_221", Bs = "_progressBarFill_1inrk_228", Vs = "_radioCardGroup_1inrk_236", hs = "_radioCard_1inrk_236", Xs = "_radioCardSelected_1inrk_268", Ds = "_radioCardLabel_1inrk_273", Gs = "_radioCardDescription_1inrk_279", Rs = "_imageCardGroup_1inrk_286", Ws = "_imageCard_1inrk_286", qs = "_imageCardSelected_1inrk_318", Is = "_imageCardPhoto_1inrk_323", Ms = "_imageCardLabel_1inrk_330", Ts = "_imageCardDescription_1inrk_337", Zs = "_fieldGroup_1inrk_346", Js = "_fieldLabel_1inrk_352", Ns = "_fieldDescription_1inrk_359", Ys = "_fieldSelect_1inrk_366", Ks = "_fieldSelectError_1inrk_392", Ls = "_fieldInputWrapper_1inrk_396", Es = "_fieldInput_1inrk_396", Qs = "_fieldInputError_1inrk_434", Cs = "_fieldSuffix_1inrk_438", Us = "_fieldError_1inrk_449", Fs = "_checkboxCardGroup_1inrk_458", _s = "_checkboxCard_1inrk_458", $s = "_checkboxCardSelected_1inrk_490", eo = "_checkboxCardContent_1inrk_495", to = "_checkboxCardLabel_1inrk_502", ro = "_checkboxCardHelper_1inrk_508", no = "_checkboxIndicator_1inrk_513", Ao = "_checkboxIndicatorChecked_1inrk_525", ao = "_currencyWrapper_1inrk_533", co = "_currencyPrefix_1inrk_539", so = "_currencyInput_1inrk_548", oo = "_toggleGroup_1inrk_568", lo = "_toggleLabel_1inrk_572", uo = "_toggleCheckbox_1inrk_580", io = "_toggleText_1inrk_589", fo = "_searchableDropdown_1inrk_597", jo = "_searchableDropdownToggle_1inrk_607", Po = "_searchableDropdownList_1inrk_620", Ho = "_searchableDropdownOption_1inrk_635", xo = "_searchableDropdownOptionSelected_1inrk_653", ko = "_searchableDropdownOptionHighlighted_1inrk_658", po = "_searchableDropdownEmpty_1inrk_662", j = {
|
|
5131
5131
|
container: os,
|
|
5132
5132
|
header: ls,
|
|
5133
5133
|
headerLogos: us,
|
|
@@ -5138,8 +5138,8 @@ const ss = ({
|
|
|
5138
5138
|
addressBar: Ps,
|
|
5139
5139
|
addressIcon: Hs,
|
|
5140
5140
|
addressText: xs,
|
|
5141
|
-
contentSplit:
|
|
5142
|
-
contentLeft:
|
|
5141
|
+
contentSplit: ks,
|
|
5142
|
+
contentLeft: ps,
|
|
5143
5143
|
contentRight: ys,
|
|
5144
5144
|
pageTitle: bs,
|
|
5145
5145
|
pageSubtitle: ws,
|
|
@@ -5151,8 +5151,8 @@ const ss = ({
|
|
|
5151
5151
|
progressBar: zs,
|
|
5152
5152
|
progressBarFill: Bs,
|
|
5153
5153
|
radioCardGroup: Vs,
|
|
5154
|
-
radioCard:
|
|
5155
|
-
radioCardSelected:
|
|
5154
|
+
radioCard: hs,
|
|
5155
|
+
radioCardSelected: Xs,
|
|
5156
5156
|
radioCardLabel: Ds,
|
|
5157
5157
|
radioCardDescription: Gs,
|
|
5158
5158
|
imageCardGroup: Rs,
|
|
@@ -5174,25 +5174,26 @@ const ss = ({
|
|
|
5174
5174
|
checkboxCardGroup: Fs,
|
|
5175
5175
|
checkboxCard: _s,
|
|
5176
5176
|
checkboxCardSelected: $s,
|
|
5177
|
-
|
|
5178
|
-
|
|
5179
|
-
|
|
5180
|
-
|
|
5181
|
-
|
|
5182
|
-
|
|
5183
|
-
|
|
5184
|
-
|
|
5185
|
-
|
|
5186
|
-
|
|
5187
|
-
|
|
5188
|
-
|
|
5189
|
-
|
|
5190
|
-
|
|
5191
|
-
|
|
5192
|
-
|
|
5193
|
-
|
|
5177
|
+
checkboxCardContent: eo,
|
|
5178
|
+
checkboxCardLabel: to,
|
|
5179
|
+
checkboxCardHelper: ro,
|
|
5180
|
+
checkboxIndicator: no,
|
|
5181
|
+
checkboxIndicatorChecked: Ao,
|
|
5182
|
+
currencyWrapper: ao,
|
|
5183
|
+
currencyPrefix: co,
|
|
5184
|
+
currencyInput: so,
|
|
5185
|
+
toggleGroup: oo,
|
|
5186
|
+
toggleLabel: lo,
|
|
5187
|
+
toggleCheckbox: uo,
|
|
5188
|
+
toggleText: io,
|
|
5189
|
+
searchableDropdown: fo,
|
|
5190
|
+
searchableDropdownToggle: jo,
|
|
5191
|
+
searchableDropdownList: Po,
|
|
5192
|
+
searchableDropdownOption: Ho,
|
|
5193
|
+
searchableDropdownOptionSelected: xo,
|
|
5194
|
+
searchableDropdownOptionHighlighted: ko,
|
|
5194
5195
|
searchableDropdownEmpty: po
|
|
5195
|
-
},
|
|
5196
|
+
}, yo = ({
|
|
5196
5197
|
partnerLogoUrl: e,
|
|
5197
5198
|
onClose: r
|
|
5198
5199
|
}) => /* @__PURE__ */ t.jsxs("header", { className: j.header, children: [
|
|
@@ -5233,7 +5234,7 @@ const ss = ({
|
|
|
5233
5234
|
)
|
|
5234
5235
|
}
|
|
5235
5236
|
)
|
|
5236
|
-
] }),
|
|
5237
|
+
] }), bo = ({ progress: e }) => {
|
|
5237
5238
|
const r = Math.min(100, Math.max(0, e * 100));
|
|
5238
5239
|
return /* @__PURE__ */ t.jsx(
|
|
5239
5240
|
"div",
|
|
@@ -5252,10 +5253,10 @@ const ss = ({
|
|
|
5252
5253
|
)
|
|
5253
5254
|
}
|
|
5254
5255
|
);
|
|
5255
|
-
},
|
|
5256
|
+
}, wo = () => {
|
|
5256
5257
|
const { isFirstPage: e, currentPage: r, progress: n, goToNext: a, goToPrev: c } = se(), l = (r == null ? void 0 : r.submitLabel) ?? "Next";
|
|
5257
5258
|
return /* @__PURE__ */ t.jsxs("nav", { className: j.navigation, "aria-label": "Page navigation", children: [
|
|
5258
|
-
/* @__PURE__ */ t.jsx(
|
|
5259
|
+
/* @__PURE__ */ t.jsx(bo, { progress: n }),
|
|
5259
5260
|
/* @__PURE__ */ t.jsxs("div", { className: j.navigationButtons, children: [
|
|
5260
5261
|
e ? /* @__PURE__ */ t.jsx("div", {}) : /* @__PURE__ */ t.jsx(
|
|
5261
5262
|
"button",
|
|
@@ -5283,7 +5284,7 @@ const ss = ({
|
|
|
5283
5284
|
/* @__PURE__ */ t.jsx("button", { type: "button", className: j.nextButton, onClick: a, children: l })
|
|
5284
5285
|
] })
|
|
5285
5286
|
] });
|
|
5286
|
-
},
|
|
5287
|
+
}, vo = ({ question: e }) => {
|
|
5287
5288
|
var u;
|
|
5288
5289
|
const { getAnswer: r, setAnswer: n, goToNext: a, validationErrors: c } = se(), l = r(e.key), i = c[e.key], d = N(null);
|
|
5289
5290
|
C(() => () => {
|
|
@@ -5296,13 +5297,13 @@ const ss = ({
|
|
|
5296
5297
|
[e.key, e.autoAdvance, n, a]
|
|
5297
5298
|
), s = ne(
|
|
5298
5299
|
(x, H) => {
|
|
5299
|
-
var z,
|
|
5300
|
+
var z, h;
|
|
5300
5301
|
const P = e.options;
|
|
5301
5302
|
if (!P) return;
|
|
5302
5303
|
let S = null;
|
|
5303
5304
|
if (x.key === "ArrowDown" || x.key === "ArrowRight" ? (x.preventDefault(), S = (H + 1) % P.length) : (x.key === "ArrowUp" || x.key === "ArrowLeft") && (x.preventDefault(), S = (H - 1 + P.length) % P.length), S !== null) {
|
|
5304
|
-
const
|
|
5305
|
-
(
|
|
5305
|
+
const X = (z = x.currentTarget.closest('[role="radiogroup"]')) == null ? void 0 : z.querySelectorAll('[role="radio"]');
|
|
5306
|
+
(h = X == null ? void 0 : X[S]) == null || h.focus(), o(P[S].value);
|
|
5306
5307
|
}
|
|
5307
5308
|
},
|
|
5308
5309
|
[e.options, o]
|
|
@@ -5338,21 +5339,21 @@ const ss = ({
|
|
|
5338
5339
|
]
|
|
5339
5340
|
}
|
|
5340
5341
|
);
|
|
5341
|
-
},
|
|
5342
|
-
function ee(e) {
|
|
5343
|
-
return `${
|
|
5342
|
+
}, go = "https://images.opendoor.com/source/s3/imgdrop-production", mo = "service=reception-fe&dpr=2&fit=scale-down";
|
|
5343
|
+
function ee(e, r = "3:2-sm") {
|
|
5344
|
+
return `${go}/${e}?${mo}&preset=${r}`;
|
|
5344
5345
|
}
|
|
5345
|
-
const
|
|
5346
|
+
const Oo = {
|
|
5346
5347
|
// Kitchen
|
|
5347
5348
|
"kitchen-fixer_upper": ee("2023-04-1681772974083-61414.png"),
|
|
5348
5349
|
"kitchen-dated": ee("2023-04-1681772974089-39460.png"),
|
|
5349
5350
|
"kitchen-standard": ee("2023-04-1681772974093-51260.png"),
|
|
5350
|
-
"kitchen-high_end": ee("2023-04-1682444345875-57331.jpeg"),
|
|
5351
|
-
"kitchen-luxury": ee("2023-04-1682444629335-69661.jpeg"),
|
|
5351
|
+
"kitchen-high_end": ee("2023-04-1682444345875-57331.jpeg", "3:2-xl"),
|
|
5352
|
+
"kitchen-luxury": ee("2023-04-1682444629335-69661.jpeg", "3:2-xl"),
|
|
5352
5353
|
// Bathroom
|
|
5353
5354
|
"bathroom-fixer_upper": ee("2023-04-1682103091299-33543.jpeg"),
|
|
5354
5355
|
"bathroom-dated": ee("2023-04-1681773104207-98555.png"),
|
|
5355
|
-
"bathroom-standard": ee("2023-04-1682103088251-79730.jpeg"),
|
|
5356
|
+
"bathroom-standard": ee("2023-04-1682103088251-79730.jpeg", "3:2-xl"),
|
|
5356
5357
|
"bathroom-high_end": ee("2023-04-1681773104214-77488.png"),
|
|
5357
5358
|
"bathroom-luxury": ee("2023-04-1681773104217-27390.png"),
|
|
5358
5359
|
// Living Room
|
|
@@ -5365,9 +5366,9 @@ const mo = {
|
|
|
5365
5366
|
"exterior-fixer_upper": ee("2023-04-1681773220493-46489.png"),
|
|
5366
5367
|
"exterior-dated": ee("2023-04-1681773220495-22229.png"),
|
|
5367
5368
|
"exterior-standard": ee("2023-04-1681773220498-64940.png"),
|
|
5368
|
-
"exterior-high_end": ee("2023-04-1682103085417-24272.jpeg"),
|
|
5369
|
+
"exterior-high_end": ee("2023-04-1682103085417-24272.jpeg", "3:2-md"),
|
|
5369
5370
|
"exterior-luxury": ee("2023-04-1681773220487-59852.png")
|
|
5370
|
-
},
|
|
5371
|
+
}, So = ({ question: e }) => {
|
|
5371
5372
|
var s;
|
|
5372
5373
|
const { getAnswer: r, setAnswer: n, goToNext: a, validationErrors: c } = se(), l = r(e.key), i = c[e.key], d = N(null);
|
|
5373
5374
|
C(() => () => {
|
|
@@ -5387,7 +5388,7 @@ const mo = {
|
|
|
5387
5388
|
"aria-label": e.label,
|
|
5388
5389
|
children: [
|
|
5389
5390
|
(s = e.options) == null ? void 0 : s.map((u) => {
|
|
5390
|
-
const x = l === u.value, H = u.imageId ?
|
|
5391
|
+
const x = l === u.value, H = u.imageId ? Oo[u.imageId] : void 0;
|
|
5391
5392
|
return /* @__PURE__ */ t.jsxs(
|
|
5392
5393
|
"button",
|
|
5393
5394
|
{
|
|
@@ -5417,7 +5418,7 @@ const mo = {
|
|
|
5417
5418
|
]
|
|
5418
5419
|
}
|
|
5419
5420
|
);
|
|
5420
|
-
},
|
|
5421
|
+
}, zo = ({
|
|
5421
5422
|
question: e
|
|
5422
5423
|
}) => {
|
|
5423
5424
|
var d;
|
|
@@ -5458,8 +5459,10 @@ const mo = {
|
|
|
5458
5459
|
className: `${j.checkboxCard} ${s ? j.checkboxCardSelected : ""}`,
|
|
5459
5460
|
onClick: () => i(String(o.value)),
|
|
5460
5461
|
children: [
|
|
5461
|
-
/* @__PURE__ */ t.
|
|
5462
|
-
|
|
5462
|
+
/* @__PURE__ */ t.jsxs("span", { className: j.checkboxCardContent, children: [
|
|
5463
|
+
/* @__PURE__ */ t.jsx("span", { className: j.checkboxCardLabel, children: o.label }),
|
|
5464
|
+
o.helperText && /* @__PURE__ */ t.jsx("span", { className: j.checkboxCardHelper, children: o.helperText })
|
|
5465
|
+
] }),
|
|
5463
5466
|
/* @__PURE__ */ t.jsx(
|
|
5464
5467
|
"span",
|
|
5465
5468
|
{
|
|
@@ -5485,7 +5488,7 @@ const mo = {
|
|
|
5485
5488
|
]
|
|
5486
5489
|
}
|
|
5487
5490
|
);
|
|
5488
|
-
},
|
|
5491
|
+
}, Bo = ({ question: e }) => {
|
|
5489
5492
|
var d;
|
|
5490
5493
|
const { getAnswer: r, setAnswer: n, validationErrors: a } = se(), c = r(e.key), l = a[e.key], i = (o) => {
|
|
5491
5494
|
const s = o.target.value;
|
|
@@ -5509,7 +5512,7 @@ const mo = {
|
|
|
5509
5512
|
),
|
|
5510
5513
|
l && /* @__PURE__ */ t.jsx("p", { className: j.fieldError, children: l })
|
|
5511
5514
|
] });
|
|
5512
|
-
},
|
|
5515
|
+
}, Vo = ({ question: e }) => {
|
|
5513
5516
|
const { getAnswer: r, setAnswer: n, validationErrors: a } = se(), c = r(e.key), l = a[e.key], i = (o) => {
|
|
5514
5517
|
const s = o.target.value;
|
|
5515
5518
|
if (e.type === "number") {
|
|
@@ -5538,7 +5541,7 @@ const mo = {
|
|
|
5538
5541
|
] }),
|
|
5539
5542
|
l && /* @__PURE__ */ t.jsx("p", { className: j.fieldError, children: l })
|
|
5540
5543
|
] });
|
|
5541
|
-
},
|
|
5544
|
+
}, ho = ({ question: e }) => {
|
|
5542
5545
|
const { getAnswer: r, setAnswer: n, validationErrors: a } = se(), c = r(e.key), l = a[e.key], i = (o) => {
|
|
5543
5546
|
const s = o.target.value.replace(/[^0-9]/g, ""), u = s === "" ? void 0 : Number(s);
|
|
5544
5547
|
n(e.key, u !== void 0 && isNaN(u) ? void 0 : u);
|
|
@@ -5567,7 +5570,7 @@ function Xo(e) {
|
|
|
5567
5570
|
const r = e.replace(/\D/g, "").slice(0, 10);
|
|
5568
5571
|
return r.length <= 3 ? r : r.length <= 6 ? `(${r.slice(0, 3)}) ${r.slice(3)}` : `(${r.slice(0, 3)}) ${r.slice(3, 6)}-${r.slice(6)}`;
|
|
5569
5572
|
}
|
|
5570
|
-
const
|
|
5573
|
+
const Do = ({ question: e }) => {
|
|
5571
5574
|
const { getAnswer: r, setAnswer: n, validationErrors: a } = se(), c = r(e.key) ?? "", l = a[e.key], i = (d) => {
|
|
5572
5575
|
const s = d.target.value.replace(/\D/g, "").slice(0, 10);
|
|
5573
5576
|
n(e.key, s || void 0);
|
|
@@ -5587,7 +5590,7 @@ const ho = ({ question: e }) => {
|
|
|
5587
5590
|
),
|
|
5588
5591
|
l && /* @__PURE__ */ t.jsx("p", { className: j.fieldError, children: l })
|
|
5589
5592
|
] });
|
|
5590
|
-
},
|
|
5593
|
+
}, Go = ({ question: e }) => {
|
|
5591
5594
|
const { getAnswer: r, setAnswer: n } = se(), a = r(e.key);
|
|
5592
5595
|
return /* @__PURE__ */ t.jsx("div", { className: j.toggleGroup, children: /* @__PURE__ */ t.jsxs("label", { className: j.toggleLabel, children: [
|
|
5593
5596
|
/* @__PURE__ */ t.jsx(
|
|
@@ -5601,7 +5604,7 @@ const ho = ({ question: e }) => {
|
|
|
5601
5604
|
),
|
|
5602
5605
|
/* @__PURE__ */ t.jsx("span", { className: j.toggleText, children: e.label })
|
|
5603
5606
|
] }) });
|
|
5604
|
-
},
|
|
5607
|
+
}, Ro = ({ question: e }) => {
|
|
5605
5608
|
var D;
|
|
5606
5609
|
const { getAnswer: r, setAnswer: n, validationErrors: a } = se(), c = r(e.key), l = a[e.key], [i, d] = T(""), [o, s] = T(!1), [u, x] = T([]), [H, P] = T(!1), S = N(null), z = Ge(nt);
|
|
5607
5610
|
C(() => {
|
|
@@ -5636,9 +5639,9 @@ const ho = ({ question: e }) => {
|
|
|
5636
5639
|
};
|
|
5637
5640
|
return document.addEventListener("mousedown", y), () => document.removeEventListener("mousedown", y);
|
|
5638
5641
|
}, []);
|
|
5639
|
-
const
|
|
5642
|
+
const h = i ? u.filter(
|
|
5640
5643
|
(y) => y.label.toLowerCase().includes(i.toLowerCase())
|
|
5641
|
-
) : u,
|
|
5644
|
+
) : u, X = (D = u.find((y) => y.value === c)) == null ? void 0 : D.label, [I, v] = T(-1), R = `${e.key}-listbox`, Z = ne(
|
|
5642
5645
|
(y) => {
|
|
5643
5646
|
n(e.key, y), s(!1), d(""), v(-1);
|
|
5644
5647
|
},
|
|
@@ -5650,17 +5653,17 @@ const ho = ({ question: e }) => {
|
|
|
5650
5653
|
}
|
|
5651
5654
|
switch (y.key) {
|
|
5652
5655
|
case "ArrowDown":
|
|
5653
|
-
y.preventDefault(),
|
|
5654
|
-
(V) => V <
|
|
5656
|
+
y.preventDefault(), h.length > 0 && v(
|
|
5657
|
+
(V) => V < h.length - 1 ? V + 1 : 0
|
|
5655
5658
|
);
|
|
5656
5659
|
break;
|
|
5657
5660
|
case "ArrowUp":
|
|
5658
|
-
y.preventDefault(),
|
|
5659
|
-
(V) => V > 0 ? V - 1 :
|
|
5661
|
+
y.preventDefault(), h.length > 0 && v(
|
|
5662
|
+
(V) => V > 0 ? V - 1 : h.length - 1
|
|
5660
5663
|
);
|
|
5661
5664
|
break;
|
|
5662
5665
|
case "Enter":
|
|
5663
|
-
y.preventDefault(), I >= 0 && I <
|
|
5666
|
+
y.preventDefault(), I >= 0 && I < h.length && Z(h[I].value);
|
|
5664
5667
|
break;
|
|
5665
5668
|
case "Escape":
|
|
5666
5669
|
y.preventDefault(), s(!1), v(-1);
|
|
@@ -5674,7 +5677,7 @@ const ho = ({ question: e }) => {
|
|
|
5674
5677
|
{
|
|
5675
5678
|
type: "text",
|
|
5676
5679
|
className: j.fieldInput,
|
|
5677
|
-
value: o ? i :
|
|
5680
|
+
value: o ? i : X ?? "",
|
|
5678
5681
|
onChange: (y) => {
|
|
5679
5682
|
d(y.target.value), v(-1), o || s(!0);
|
|
5680
5683
|
},
|
|
@@ -5715,7 +5718,7 @@ const ho = ({ question: e }) => {
|
|
|
5715
5718
|
className: j.searchableDropdownList,
|
|
5716
5719
|
role: "listbox",
|
|
5717
5720
|
id: R,
|
|
5718
|
-
children: H ? /* @__PURE__ */ t.jsx("div", { className: j.searchableDropdownEmpty, children: "Loading..." }) :
|
|
5721
|
+
children: H ? /* @__PURE__ */ t.jsx("div", { className: j.searchableDropdownEmpty, children: "Loading..." }) : h.length === 0 ? /* @__PURE__ */ t.jsx("div", { className: j.searchableDropdownEmpty, children: "No results found" }) : h.map((y, V) => /* @__PURE__ */ t.jsx(
|
|
5719
5722
|
"button",
|
|
5720
5723
|
{
|
|
5721
5724
|
id: `${R}-option-${V}`,
|
|
@@ -5734,32 +5737,32 @@ const ho = ({ question: e }) => {
|
|
|
5734
5737
|
l && /* @__PURE__ */ t.jsx("p", { className: j.fieldError, children: l })
|
|
5735
5738
|
] });
|
|
5736
5739
|
};
|
|
5737
|
-
function
|
|
5740
|
+
function Wo(e) {
|
|
5738
5741
|
switch (e.style) {
|
|
5739
5742
|
case "radio-card":
|
|
5740
|
-
return /* @__PURE__ */ t.jsx(
|
|
5743
|
+
return /* @__PURE__ */ t.jsx(vo, { question: e }, e.key);
|
|
5741
5744
|
case "image-card":
|
|
5742
|
-
return /* @__PURE__ */ t.jsx(Oo, { question: e }, e.key);
|
|
5743
|
-
case "checkbox-card":
|
|
5744
5745
|
return /* @__PURE__ */ t.jsx(So, { question: e }, e.key);
|
|
5745
|
-
case "
|
|
5746
|
+
case "checkbox-card":
|
|
5746
5747
|
return /* @__PURE__ */ t.jsx(zo, { question: e }, e.key);
|
|
5748
|
+
case "dropdown":
|
|
5749
|
+
return /* @__PURE__ */ t.jsx(Bo, { question: e }, e.key);
|
|
5747
5750
|
case "input":
|
|
5748
5751
|
case "email":
|
|
5749
|
-
return /* @__PURE__ */ t.jsx(Bo, { question: e }, e.key);
|
|
5750
|
-
case "currency":
|
|
5751
5752
|
return /* @__PURE__ */ t.jsx(Vo, { question: e }, e.key);
|
|
5752
|
-
case "
|
|
5753
|
+
case "currency":
|
|
5753
5754
|
return /* @__PURE__ */ t.jsx(ho, { question: e }, e.key);
|
|
5754
|
-
case "
|
|
5755
|
+
case "phone":
|
|
5755
5756
|
return /* @__PURE__ */ t.jsx(Do, { question: e }, e.key);
|
|
5756
|
-
case "
|
|
5757
|
+
case "toggle":
|
|
5757
5758
|
return /* @__PURE__ */ t.jsx(Go, { question: e }, e.key);
|
|
5759
|
+
case "searchable-dropdown":
|
|
5760
|
+
return /* @__PURE__ */ t.jsx(Ro, { question: e }, e.key);
|
|
5758
5761
|
default:
|
|
5759
5762
|
return null;
|
|
5760
5763
|
}
|
|
5761
5764
|
}
|
|
5762
|
-
const
|
|
5765
|
+
const qo = () => {
|
|
5763
5766
|
const { currentPage: e, visibleQuestions: r } = se(), n = N(null);
|
|
5764
5767
|
return C(() => {
|
|
5765
5768
|
var a, c, l;
|
|
@@ -5772,10 +5775,10 @@ const Wo = () => {
|
|
|
5772
5775
|
tabIndex: -1,
|
|
5773
5776
|
role: "region",
|
|
5774
5777
|
"aria-label": e.title,
|
|
5775
|
-
children: r.map(
|
|
5778
|
+
children: r.map(Wo)
|
|
5776
5779
|
}
|
|
5777
5780
|
) : null;
|
|
5778
|
-
},
|
|
5781
|
+
}, Io = ({ address: e }) => {
|
|
5779
5782
|
const { currentPage: r } = se();
|
|
5780
5783
|
if (!r) return null;
|
|
5781
5784
|
const n = [
|
|
@@ -5810,11 +5813,11 @@ const Wo = () => {
|
|
|
5810
5813
|
/* @__PURE__ */ t.jsx("h1", { className: j.pageTitle, children: r.title }),
|
|
5811
5814
|
r.subtitle && /* @__PURE__ */ t.jsx("p", { className: j.pageSubtitle, children: r.subtitle })
|
|
5812
5815
|
] }),
|
|
5813
|
-
/* @__PURE__ */ t.jsx("div", { className: j.contentRight, children: /* @__PURE__ */ t.jsx(
|
|
5816
|
+
/* @__PURE__ */ t.jsx("div", { className: j.contentRight, children: /* @__PURE__ */ t.jsx(qo, {}) })
|
|
5814
5817
|
] }),
|
|
5815
|
-
/* @__PURE__ */ t.jsx(
|
|
5818
|
+
/* @__PURE__ */ t.jsx(wo, {})
|
|
5816
5819
|
] });
|
|
5817
|
-
},
|
|
5820
|
+
}, Ko = ({
|
|
5818
5821
|
address: e,
|
|
5819
5822
|
onSubmit: r,
|
|
5820
5823
|
partnerLogoUrl: n,
|
|
@@ -5839,20 +5842,20 @@ const Wo = () => {
|
|
|
5839
5842
|
onReady: o,
|
|
5840
5843
|
onError: s,
|
|
5841
5844
|
children: [
|
|
5842
|
-
/* @__PURE__ */ t.jsx(
|
|
5843
|
-
/* @__PURE__ */ t.jsx(
|
|
5845
|
+
/* @__PURE__ */ t.jsx(yo, { partnerLogoUrl: n, onClose: d }),
|
|
5846
|
+
/* @__PURE__ */ t.jsx(Io, { address: e })
|
|
5844
5847
|
]
|
|
5845
5848
|
}
|
|
5846
5849
|
) });
|
|
5847
5850
|
};
|
|
5848
5851
|
export {
|
|
5849
|
-
|
|
5850
|
-
|
|
5851
|
-
|
|
5852
|
-
|
|
5853
|
-
|
|
5854
|
-
|
|
5852
|
+
Zo as AddressEntry,
|
|
5853
|
+
Yo as AddressMap,
|
|
5854
|
+
No as AddressUnitConfirmation,
|
|
5855
|
+
Ko as DtcOnboardingFlow,
|
|
5856
|
+
To as OpendoorProvider,
|
|
5857
|
+
Jo as QualificationQuestions,
|
|
5855
5858
|
yr as THEMES,
|
|
5856
5859
|
br as resolveAppearance,
|
|
5857
|
-
|
|
5860
|
+
pr as useOpendoorClient
|
|
5858
5861
|
};
|