@opendoor/partner-sdk-client-react 1.3.3-beta.112.1 → 1.3.3-beta.114.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/DtcContext.d.ts +6 -0
- package/dist/client-react/src/components/DtcOnboardingFlow/DtcContext.d.ts.map +1 -1
- package/dist/client-react/src/components/DtcOnboardingFlow/DtcLayout.d.ts.map +1 -1
- package/dist/client-react/src/components/DtcOnboardingFlow/DtcPage.d.ts.map +1 -1
- package/dist/client-react/src/components/DtcOnboardingFlow/DtcProvider.d.ts +3 -0
- package/dist/client-react/src/components/DtcOnboardingFlow/DtcProvider.d.ts.map +1 -1
- package/dist/client-react/src/components/DtcOnboardingFlow/index.d.ts +25 -0
- package/dist/client-react/src/components/DtcOnboardingFlow/index.d.ts.map +1 -1
- package/dist/index.js +1176 -1157
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import wt, { createContext as Ye, useState as E, useEffect as
|
|
1
|
+
import wt, { createContext as Ye, useState as E, useEffect as ce, useContext as De, useRef as U, useMemo as Ie, useCallback as Ee, useLayoutEffect as Ut } from "react";
|
|
2
2
|
import { createPortal as Yt } from "react-dom";
|
|
3
3
|
var Ge = { exports: {} }, Ne = {};
|
|
4
4
|
/*
|
|
@@ -25,31 +25,31 @@ function kt() {
|
|
|
25
25
|
return !1;
|
|
26
26
|
for (var m = {}, f = 0; f < 10; f++)
|
|
27
27
|
m["_" + String.fromCharCode(f)] = f;
|
|
28
|
-
var
|
|
29
|
-
return m[
|
|
28
|
+
var u = Object.getOwnPropertyNames(m).map(function(c) {
|
|
29
|
+
return m[c];
|
|
30
30
|
});
|
|
31
|
-
if (
|
|
31
|
+
if (u.join("") !== "0123456789")
|
|
32
32
|
return !1;
|
|
33
|
-
var
|
|
34
|
-
return "abcdefghijklmnopqrst".split("").forEach(function(
|
|
35
|
-
|
|
36
|
-
}), Object.keys(Object.assign({},
|
|
33
|
+
var l = {};
|
|
34
|
+
return "abcdefghijklmnopqrst".split("").forEach(function(c) {
|
|
35
|
+
l[c] = c;
|
|
36
|
+
}), Object.keys(Object.assign({}, l)).join("") === "abcdefghijklmnopqrst";
|
|
37
37
|
} catch {
|
|
38
38
|
return !1;
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
return $e = o() ? Object.assign : function(i, m) {
|
|
42
|
-
for (var f,
|
|
43
|
-
f = Object(arguments[
|
|
42
|
+
for (var f, u = s(i), l, c = 1; c < arguments.length; c++) {
|
|
43
|
+
f = Object(arguments[c]);
|
|
44
44
|
for (var p in f)
|
|
45
|
-
r.call(f, p) && (
|
|
45
|
+
r.call(f, p) && (u[p] = f[p]);
|
|
46
46
|
if (e) {
|
|
47
|
-
|
|
48
|
-
for (var _ = 0; _ <
|
|
49
|
-
a.call(f,
|
|
47
|
+
l = e(f);
|
|
48
|
+
for (var _ = 0; _ < l.length; _++)
|
|
49
|
+
a.call(f, l[_]) && (u[l[_]] = f[l[_]]);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
return
|
|
52
|
+
return u;
|
|
53
53
|
}, $e;
|
|
54
54
|
}
|
|
55
55
|
/** @license React v17.0.2
|
|
@@ -70,12 +70,12 @@ function Zt() {
|
|
|
70
70
|
r = a("react.element"), Ne.Fragment = a("react.fragment");
|
|
71
71
|
}
|
|
72
72
|
var s = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = Object.prototype.hasOwnProperty, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
73
|
-
function m(f,
|
|
74
|
-
var
|
|
75
|
-
|
|
76
|
-
for (
|
|
77
|
-
if (f && f.defaultProps) for (
|
|
78
|
-
return { $$typeof: r, type: f, key: _, ref:
|
|
73
|
+
function m(f, u, l) {
|
|
74
|
+
var c, p = {}, _ = null, x = null;
|
|
75
|
+
l !== void 0 && (_ = "" + l), u.key !== void 0 && (_ = "" + u.key), u.ref !== void 0 && (x = u.ref);
|
|
76
|
+
for (c in u) o.call(u, c) && !i.hasOwnProperty(c) && (p[c] = u[c]);
|
|
77
|
+
if (f && f.defaultProps) for (c in u = f.defaultProps, u) p[c] === void 0 && (p[c] = u[c]);
|
|
78
|
+
return { $$typeof: r, type: f, key: _, ref: x, props: p, _owner: s.current };
|
|
79
79
|
}
|
|
80
80
|
return Ne.jsx = m, Ne.jsxs = m, Ne;
|
|
81
81
|
}
|
|
@@ -94,51 +94,51 @@ function Kt() {
|
|
|
94
94
|
process.env.NODE_ENV !== "production" && function() {
|
|
95
95
|
var r = wt, a = kt(), s = 60103, o = 60106;
|
|
96
96
|
e.Fragment = 60107;
|
|
97
|
-
var i = 60108, m = 60114, f = 60109,
|
|
97
|
+
var i = 60108, m = 60114, f = 60109, u = 60110, l = 60112, c = 60113, p = 60120, _ = 60115, x = 60116, I = 60121, D = 60122, B = 60117, P = 60129, S = 60131;
|
|
98
98
|
if (typeof Symbol == "function" && Symbol.for) {
|
|
99
99
|
var j = Symbol.for;
|
|
100
|
-
s = j("react.element"), o = j("react.portal"), e.Fragment = j("react.fragment"), i = j("react.strict_mode"), m = j("react.profiler"), f = j("react.provider"),
|
|
100
|
+
s = j("react.element"), o = j("react.portal"), e.Fragment = j("react.fragment"), i = j("react.strict_mode"), m = j("react.profiler"), f = j("react.provider"), u = j("react.context"), l = j("react.forward_ref"), c = j("react.suspense"), p = j("react.suspense_list"), _ = j("react.memo"), x = j("react.lazy"), I = j("react.block"), D = j("react.server.block"), B = j("react.fundamental"), j("react.scope"), j("react.opaque.id"), P = j("react.debug_trace_mode"), j("react.offscreen"), S = j("react.legacy_hidden");
|
|
101
101
|
}
|
|
102
|
-
var
|
|
103
|
-
function
|
|
102
|
+
var ee = typeof Symbol == "function" && Symbol.iterator, V = "@@iterator";
|
|
103
|
+
function ae(n) {
|
|
104
104
|
if (n === null || typeof n != "object")
|
|
105
105
|
return null;
|
|
106
|
-
var
|
|
107
|
-
return typeof
|
|
106
|
+
var h = ee && n[ee] || n[V];
|
|
107
|
+
return typeof h == "function" ? h : null;
|
|
108
108
|
}
|
|
109
|
-
var
|
|
110
|
-
function
|
|
109
|
+
var Z = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
110
|
+
function L(n) {
|
|
111
111
|
{
|
|
112
|
-
for (var
|
|
113
|
-
b[
|
|
114
|
-
|
|
112
|
+
for (var h = arguments.length, b = new Array(h > 1 ? h - 1 : 0), N = 1; N < h; N++)
|
|
113
|
+
b[N - 1] = arguments[N];
|
|
114
|
+
se("error", n, b);
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function se(n, h, b) {
|
|
118
118
|
{
|
|
119
|
-
var
|
|
120
|
-
|
|
121
|
-
var W = b.map(function(
|
|
122
|
-
return "" +
|
|
119
|
+
var N = Z.ReactDebugCurrentFrame, H = N.getStackAddendum();
|
|
120
|
+
H !== "" && (h += "%s", b = b.concat([H]));
|
|
121
|
+
var W = b.map(function(O) {
|
|
122
|
+
return "" + O;
|
|
123
123
|
});
|
|
124
|
-
W.unshift("Warning: " +
|
|
124
|
+
W.unshift("Warning: " + h), Function.prototype.apply.call(console[n], console, W);
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
|
-
var
|
|
128
|
-
function
|
|
129
|
-
return !!(typeof n == "string" || typeof n == "function" || n === e.Fragment || n === m || n === P || n === i || n ===
|
|
127
|
+
var K = !1;
|
|
128
|
+
function ie(n) {
|
|
129
|
+
return !!(typeof n == "string" || typeof n == "function" || n === e.Fragment || n === m || n === P || n === i || n === c || n === p || n === S || K || typeof n == "object" && n !== null && (n.$$typeof === x || n.$$typeof === _ || n.$$typeof === f || n.$$typeof === u || n.$$typeof === l || n.$$typeof === B || n.$$typeof === I || n[0] === D));
|
|
130
130
|
}
|
|
131
|
-
function
|
|
132
|
-
var
|
|
133
|
-
return n.displayName || (
|
|
131
|
+
function Y(n, h, b) {
|
|
132
|
+
var N = h.displayName || h.name || "";
|
|
133
|
+
return n.displayName || (N !== "" ? b + "(" + N + ")" : b);
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function z(n) {
|
|
136
136
|
return n.displayName || "Context";
|
|
137
137
|
}
|
|
138
138
|
function q(n) {
|
|
139
139
|
if (n == null)
|
|
140
140
|
return null;
|
|
141
|
-
if (typeof n.tag == "number" &&
|
|
141
|
+
if (typeof n.tag == "number" && L("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."), typeof n == "function")
|
|
142
142
|
return n.displayName || n.name || null;
|
|
143
143
|
if (typeof n == "string")
|
|
144
144
|
return n;
|
|
@@ -151,29 +151,29 @@ function Kt() {
|
|
|
151
151
|
return "Profiler";
|
|
152
152
|
case i:
|
|
153
153
|
return "StrictMode";
|
|
154
|
-
case
|
|
154
|
+
case c:
|
|
155
155
|
return "Suspense";
|
|
156
156
|
case p:
|
|
157
157
|
return "SuspenseList";
|
|
158
158
|
}
|
|
159
159
|
if (typeof n == "object")
|
|
160
160
|
switch (n.$$typeof) {
|
|
161
|
-
case
|
|
162
|
-
var
|
|
163
|
-
return
|
|
161
|
+
case u:
|
|
162
|
+
var h = n;
|
|
163
|
+
return z(h) + ".Consumer";
|
|
164
164
|
case f:
|
|
165
165
|
var b = n;
|
|
166
|
-
return
|
|
167
|
-
case
|
|
168
|
-
return
|
|
166
|
+
return z(b._context) + ".Provider";
|
|
167
|
+
case l:
|
|
168
|
+
return Y(n, n.render, "ForwardRef");
|
|
169
169
|
case _:
|
|
170
170
|
return q(n.type);
|
|
171
|
-
case
|
|
171
|
+
case I:
|
|
172
172
|
return q(n._render);
|
|
173
|
-
case
|
|
174
|
-
var
|
|
173
|
+
case x: {
|
|
174
|
+
var N = n, H = N._payload, W = N._init;
|
|
175
175
|
try {
|
|
176
|
-
return q(W(
|
|
176
|
+
return q(W(H));
|
|
177
177
|
} catch {
|
|
178
178
|
return null;
|
|
179
179
|
}
|
|
@@ -181,18 +181,18 @@ function Kt() {
|
|
|
181
181
|
}
|
|
182
182
|
return null;
|
|
183
183
|
}
|
|
184
|
-
var
|
|
185
|
-
function
|
|
184
|
+
var J = 0, ue, y, k, C, fe, G, oe;
|
|
185
|
+
function M() {
|
|
186
186
|
}
|
|
187
|
-
|
|
188
|
-
function
|
|
187
|
+
M.__reactDisabledLog = !0;
|
|
188
|
+
function le() {
|
|
189
189
|
{
|
|
190
|
-
if (
|
|
191
|
-
ue = console.log,
|
|
190
|
+
if (J === 0) {
|
|
191
|
+
ue = console.log, y = console.info, k = console.warn, C = console.error, fe = console.group, G = console.groupCollapsed, oe = console.groupEnd;
|
|
192
192
|
var n = {
|
|
193
193
|
configurable: !0,
|
|
194
194
|
enumerable: !0,
|
|
195
|
-
value:
|
|
195
|
+
value: M,
|
|
196
196
|
writable: !0
|
|
197
197
|
};
|
|
198
198
|
Object.defineProperties(console, {
|
|
@@ -205,12 +205,12 @@ function Kt() {
|
|
|
205
205
|
groupEnd: n
|
|
206
206
|
});
|
|
207
207
|
}
|
|
208
|
-
|
|
208
|
+
J++;
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function ge() {
|
|
212
212
|
{
|
|
213
|
-
if (
|
|
213
|
+
if (J--, J === 0) {
|
|
214
214
|
var n = {
|
|
215
215
|
configurable: !0,
|
|
216
216
|
enumerable: !0,
|
|
@@ -221,184 +221,184 @@ function Kt() {
|
|
|
221
221
|
value: ue
|
|
222
222
|
}),
|
|
223
223
|
info: a({}, n, {
|
|
224
|
-
value:
|
|
224
|
+
value: y
|
|
225
225
|
}),
|
|
226
226
|
warn: a({}, n, {
|
|
227
|
-
value:
|
|
227
|
+
value: k
|
|
228
228
|
}),
|
|
229
229
|
error: a({}, n, {
|
|
230
|
-
value:
|
|
230
|
+
value: C
|
|
231
231
|
}),
|
|
232
232
|
group: a({}, n, {
|
|
233
|
-
value:
|
|
233
|
+
value: fe
|
|
234
234
|
}),
|
|
235
235
|
groupCollapsed: a({}, n, {
|
|
236
|
-
value:
|
|
236
|
+
value: G
|
|
237
237
|
}),
|
|
238
238
|
groupEnd: a({}, n, {
|
|
239
|
-
value:
|
|
239
|
+
value: oe
|
|
240
240
|
})
|
|
241
241
|
});
|
|
242
242
|
}
|
|
243
|
-
|
|
243
|
+
J < 0 && L("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
|
-
var
|
|
247
|
-
function
|
|
246
|
+
var w = Z.ReactCurrentDispatcher, T;
|
|
247
|
+
function F(n, h, b) {
|
|
248
248
|
{
|
|
249
|
-
if (
|
|
249
|
+
if (T === void 0)
|
|
250
250
|
try {
|
|
251
251
|
throw Error();
|
|
252
|
-
} catch (
|
|
253
|
-
var
|
|
254
|
-
|
|
252
|
+
} catch (H) {
|
|
253
|
+
var N = H.stack.trim().match(/\n( *(at )?)/);
|
|
254
|
+
T = N && N[1] || "";
|
|
255
255
|
}
|
|
256
256
|
return `
|
|
257
|
-
` +
|
|
257
|
+
` + T + n;
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
|
-
var
|
|
260
|
+
var $ = !1, de;
|
|
261
261
|
{
|
|
262
262
|
var xe = typeof WeakMap == "function" ? WeakMap : Map;
|
|
263
|
-
|
|
263
|
+
de = new xe();
|
|
264
264
|
}
|
|
265
|
-
function
|
|
266
|
-
if (!n ||
|
|
265
|
+
function _e(n, h) {
|
|
266
|
+
if (!n || $)
|
|
267
267
|
return "";
|
|
268
268
|
{
|
|
269
|
-
var b =
|
|
269
|
+
var b = de.get(n);
|
|
270
270
|
if (b !== void 0)
|
|
271
271
|
return b;
|
|
272
272
|
}
|
|
273
|
-
var
|
|
274
|
-
|
|
275
|
-
var
|
|
273
|
+
var N;
|
|
274
|
+
$ = !0;
|
|
275
|
+
var H = Error.prepareStackTrace;
|
|
276
276
|
Error.prepareStackTrace = void 0;
|
|
277
277
|
var W;
|
|
278
|
-
W =
|
|
278
|
+
W = w.current, w.current = null, le();
|
|
279
279
|
try {
|
|
280
|
-
if (
|
|
281
|
-
var
|
|
280
|
+
if (h) {
|
|
281
|
+
var O = function() {
|
|
282
282
|
throw Error();
|
|
283
283
|
};
|
|
284
|
-
if (Object.defineProperty(
|
|
284
|
+
if (Object.defineProperty(O.prototype, "props", {
|
|
285
285
|
set: function() {
|
|
286
286
|
throw Error();
|
|
287
287
|
}
|
|
288
288
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
289
289
|
try {
|
|
290
|
-
Reflect.construct(
|
|
291
|
-
} catch (
|
|
292
|
-
|
|
290
|
+
Reflect.construct(O, []);
|
|
291
|
+
} catch (ye) {
|
|
292
|
+
N = ye;
|
|
293
293
|
}
|
|
294
|
-
Reflect.construct(n, [],
|
|
294
|
+
Reflect.construct(n, [], O);
|
|
295
295
|
} else {
|
|
296
296
|
try {
|
|
297
|
-
|
|
298
|
-
} catch (
|
|
299
|
-
|
|
297
|
+
O.call();
|
|
298
|
+
} catch (ye) {
|
|
299
|
+
N = ye;
|
|
300
300
|
}
|
|
301
|
-
n.call(
|
|
301
|
+
n.call(O.prototype);
|
|
302
302
|
}
|
|
303
303
|
} else {
|
|
304
304
|
try {
|
|
305
305
|
throw Error();
|
|
306
|
-
} catch (
|
|
307
|
-
|
|
306
|
+
} catch (ye) {
|
|
307
|
+
N = ye;
|
|
308
308
|
}
|
|
309
309
|
n();
|
|
310
310
|
}
|
|
311
|
-
} catch (
|
|
312
|
-
if (
|
|
313
|
-
for (var
|
|
314
|
-
`),
|
|
315
|
-
`), Q =
|
|
316
|
-
|
|
317
|
-
for (; Q >= 1 &&
|
|
318
|
-
if (
|
|
319
|
-
if (Q !== 1 ||
|
|
311
|
+
} catch (ye) {
|
|
312
|
+
if (ye && N && typeof ye.stack == "string") {
|
|
313
|
+
for (var A = ye.stack.split(`
|
|
314
|
+
`), he = N.stack.split(`
|
|
315
|
+
`), Q = A.length - 1, re = he.length - 1; Q >= 1 && re >= 0 && A[Q] !== he[re]; )
|
|
316
|
+
re--;
|
|
317
|
+
for (; Q >= 1 && re >= 0; Q--, re--)
|
|
318
|
+
if (A[Q] !== he[re]) {
|
|
319
|
+
if (Q !== 1 || re !== 1)
|
|
320
320
|
do
|
|
321
|
-
if (Q--,
|
|
322
|
-
var
|
|
323
|
-
` +
|
|
324
|
-
return typeof n == "function" &&
|
|
321
|
+
if (Q--, re--, re < 0 || A[Q] !== he[re]) {
|
|
322
|
+
var be = `
|
|
323
|
+
` + A[Q].replace(" at new ", " at ");
|
|
324
|
+
return typeof n == "function" && de.set(n, be), be;
|
|
325
325
|
}
|
|
326
|
-
while (Q >= 1 &&
|
|
326
|
+
while (Q >= 1 && re >= 0);
|
|
327
327
|
break;
|
|
328
328
|
}
|
|
329
329
|
}
|
|
330
330
|
} finally {
|
|
331
|
-
|
|
331
|
+
$ = !1, w.current = W, ge(), Error.prepareStackTrace = H;
|
|
332
332
|
}
|
|
333
|
-
var je = n ? n.displayName || n.name : "", ot = je ?
|
|
334
|
-
return typeof n == "function" &&
|
|
333
|
+
var je = n ? n.displayName || n.name : "", ot = je ? F(je) : "";
|
|
334
|
+
return typeof n == "function" && de.set(n, ot), ot;
|
|
335
335
|
}
|
|
336
|
-
function Le(n,
|
|
337
|
-
return
|
|
336
|
+
function Le(n, h, b) {
|
|
337
|
+
return _e(n, !1);
|
|
338
338
|
}
|
|
339
339
|
function ve(n) {
|
|
340
|
-
var
|
|
341
|
-
return !!(
|
|
340
|
+
var h = n.prototype;
|
|
341
|
+
return !!(h && h.isReactComponent);
|
|
342
342
|
}
|
|
343
|
-
function
|
|
343
|
+
function v(n, h, b) {
|
|
344
344
|
if (n == null)
|
|
345
345
|
return "";
|
|
346
346
|
if (typeof n == "function")
|
|
347
|
-
return
|
|
347
|
+
return _e(n, ve(n));
|
|
348
348
|
if (typeof n == "string")
|
|
349
|
-
return
|
|
349
|
+
return F(n);
|
|
350
350
|
switch (n) {
|
|
351
|
-
case
|
|
352
|
-
return
|
|
351
|
+
case c:
|
|
352
|
+
return F("Suspense");
|
|
353
353
|
case p:
|
|
354
|
-
return
|
|
354
|
+
return F("SuspenseList");
|
|
355
355
|
}
|
|
356
356
|
if (typeof n == "object")
|
|
357
357
|
switch (n.$$typeof) {
|
|
358
|
-
case
|
|
358
|
+
case l:
|
|
359
359
|
return Le(n.render);
|
|
360
360
|
case _:
|
|
361
|
-
return
|
|
362
|
-
case
|
|
361
|
+
return v(n.type, h, b);
|
|
362
|
+
case I:
|
|
363
363
|
return Le(n._render);
|
|
364
|
-
case
|
|
365
|
-
var
|
|
364
|
+
case x: {
|
|
365
|
+
var N = n, H = N._payload, W = N._init;
|
|
366
366
|
try {
|
|
367
|
-
return
|
|
367
|
+
return v(W(H), h, b);
|
|
368
368
|
} catch {
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
372
|
return "";
|
|
373
373
|
}
|
|
374
|
-
var X = {},
|
|
374
|
+
var X = {}, te = Z.ReactDebugCurrentFrame;
|
|
375
375
|
function Ce(n) {
|
|
376
376
|
if (n) {
|
|
377
|
-
var
|
|
378
|
-
|
|
377
|
+
var h = n._owner, b = v(n.type, n._source, h ? h.type : null);
|
|
378
|
+
te.setExtraStackFrame(b);
|
|
379
379
|
} else
|
|
380
|
-
|
|
380
|
+
te.setExtraStackFrame(null);
|
|
381
381
|
}
|
|
382
|
-
function we(n,
|
|
382
|
+
function we(n, h, b, N, H) {
|
|
383
383
|
{
|
|
384
384
|
var W = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
385
|
-
for (var
|
|
386
|
-
if (W(n,
|
|
387
|
-
var
|
|
385
|
+
for (var O in n)
|
|
386
|
+
if (W(n, O)) {
|
|
387
|
+
var A = void 0;
|
|
388
388
|
try {
|
|
389
|
-
if (typeof n[
|
|
390
|
-
var
|
|
391
|
-
throw
|
|
389
|
+
if (typeof n[O] != "function") {
|
|
390
|
+
var he = Error((N || "React class") + ": " + b + " type `" + O + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[O] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
391
|
+
throw he.name = "Invariant Violation", he;
|
|
392
392
|
}
|
|
393
|
-
|
|
393
|
+
A = n[O](h, O, N, b, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
394
394
|
} catch (Q) {
|
|
395
|
-
|
|
395
|
+
A = Q;
|
|
396
396
|
}
|
|
397
|
-
|
|
397
|
+
A && !(A instanceof Error) && (Ce(H), L("%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).", N || "React class", b, O, typeof A), Ce(null)), A instanceof Error && !(A.message in X) && (X[A.message] = !0, Ce(H), L("Failed %s type: %s", b, A.message), Ce(null));
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
400
|
}
|
|
401
|
-
var
|
|
401
|
+
var Se = Z.ReactCurrentOwner, Re = Object.prototype.hasOwnProperty, Pt = {
|
|
402
402
|
key: !0,
|
|
403
403
|
ref: !0,
|
|
404
404
|
__self: !0,
|
|
@@ -406,27 +406,27 @@ function Kt() {
|
|
|
406
406
|
}, Xe, Qe;
|
|
407
407
|
function Lt(n) {
|
|
408
408
|
if (Re.call(n, "ref")) {
|
|
409
|
-
var
|
|
410
|
-
if (
|
|
409
|
+
var h = Object.getOwnPropertyDescriptor(n, "ref").get;
|
|
410
|
+
if (h && h.isReactWarning)
|
|
411
411
|
return !1;
|
|
412
412
|
}
|
|
413
413
|
return n.ref !== void 0;
|
|
414
414
|
}
|
|
415
415
|
function Tt(n) {
|
|
416
416
|
if (Re.call(n, "key")) {
|
|
417
|
-
var
|
|
418
|
-
if (
|
|
417
|
+
var h = Object.getOwnPropertyDescriptor(n, "key").get;
|
|
418
|
+
if (h && h.isReactWarning)
|
|
419
419
|
return !1;
|
|
420
420
|
}
|
|
421
421
|
return n.key !== void 0;
|
|
422
422
|
}
|
|
423
|
-
function At(n,
|
|
424
|
-
typeof n.ref == "string" &&
|
|
423
|
+
function At(n, h) {
|
|
424
|
+
typeof n.ref == "string" && Se.current;
|
|
425
425
|
}
|
|
426
|
-
function Dt(n,
|
|
426
|
+
function Dt(n, h) {
|
|
427
427
|
{
|
|
428
428
|
var b = function() {
|
|
429
|
-
Xe || (Xe = !0,
|
|
429
|
+
Xe || (Xe = !0, L("%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)", h));
|
|
430
430
|
};
|
|
431
431
|
b.isReactWarning = !0, Object.defineProperty(n, "key", {
|
|
432
432
|
get: b,
|
|
@@ -434,10 +434,10 @@ function Kt() {
|
|
|
434
434
|
});
|
|
435
435
|
}
|
|
436
436
|
}
|
|
437
|
-
function Ot(n,
|
|
437
|
+
function Ot(n, h) {
|
|
438
438
|
{
|
|
439
439
|
var b = function() {
|
|
440
|
-
Qe || (Qe = !0,
|
|
440
|
+
Qe || (Qe = !0, L("%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)", h));
|
|
441
441
|
};
|
|
442
442
|
b.isReactWarning = !0, Object.defineProperty(n, "ref", {
|
|
443
443
|
get: b,
|
|
@@ -445,57 +445,57 @@ function Kt() {
|
|
|
445
445
|
});
|
|
446
446
|
}
|
|
447
447
|
}
|
|
448
|
-
var Rt = function(n,
|
|
449
|
-
var
|
|
448
|
+
var Rt = function(n, h, b, N, H, W, O) {
|
|
449
|
+
var A = {
|
|
450
450
|
// This tag allows us to uniquely identify this as a React Element
|
|
451
451
|
$$typeof: s,
|
|
452
452
|
// Built-in properties that belong on the element
|
|
453
453
|
type: n,
|
|
454
|
-
key:
|
|
454
|
+
key: h,
|
|
455
455
|
ref: b,
|
|
456
|
-
props:
|
|
456
|
+
props: O,
|
|
457
457
|
// Record the component responsible for creating this element.
|
|
458
458
|
_owner: W
|
|
459
459
|
};
|
|
460
|
-
return
|
|
460
|
+
return A._store = {}, Object.defineProperty(A._store, "validated", {
|
|
461
461
|
configurable: !1,
|
|
462
462
|
enumerable: !1,
|
|
463
463
|
writable: !0,
|
|
464
464
|
value: !1
|
|
465
|
-
}), Object.defineProperty(
|
|
465
|
+
}), Object.defineProperty(A, "_self", {
|
|
466
466
|
configurable: !1,
|
|
467
467
|
enumerable: !1,
|
|
468
468
|
writable: !1,
|
|
469
|
-
value:
|
|
470
|
-
}), Object.defineProperty(
|
|
469
|
+
value: N
|
|
470
|
+
}), Object.defineProperty(A, "_source", {
|
|
471
471
|
configurable: !1,
|
|
472
472
|
enumerable: !1,
|
|
473
473
|
writable: !1,
|
|
474
|
-
value:
|
|
475
|
-
}), Object.freeze && (Object.freeze(
|
|
474
|
+
value: H
|
|
475
|
+
}), Object.freeze && (Object.freeze(A.props), Object.freeze(A)), A;
|
|
476
476
|
};
|
|
477
|
-
function Bt(n,
|
|
477
|
+
function Bt(n, h, b, N, H) {
|
|
478
478
|
{
|
|
479
|
-
var W,
|
|
480
|
-
b !== void 0 && (
|
|
481
|
-
for (W in
|
|
482
|
-
Re.call(
|
|
479
|
+
var W, O = {}, A = null, he = null;
|
|
480
|
+
b !== void 0 && (A = "" + b), Tt(h) && (A = "" + h.key), Lt(h) && (he = h.ref, At(h, H));
|
|
481
|
+
for (W in h)
|
|
482
|
+
Re.call(h, W) && !Pt.hasOwnProperty(W) && (O[W] = h[W]);
|
|
483
483
|
if (n && n.defaultProps) {
|
|
484
484
|
var Q = n.defaultProps;
|
|
485
485
|
for (W in Q)
|
|
486
|
-
|
|
486
|
+
O[W] === void 0 && (O[W] = Q[W]);
|
|
487
487
|
}
|
|
488
|
-
if (
|
|
489
|
-
var
|
|
490
|
-
|
|
488
|
+
if (A || he) {
|
|
489
|
+
var re = typeof n == "function" ? n.displayName || n.name || "Unknown" : n;
|
|
490
|
+
A && Dt(O, re), he && Ot(O, re);
|
|
491
491
|
}
|
|
492
|
-
return Rt(n,
|
|
492
|
+
return Rt(n, A, he, H, N, Se.current, O);
|
|
493
493
|
}
|
|
494
494
|
}
|
|
495
|
-
var Be =
|
|
495
|
+
var Be = Z.ReactCurrentOwner, et = Z.ReactDebugCurrentFrame;
|
|
496
496
|
function ke(n) {
|
|
497
497
|
if (n) {
|
|
498
|
-
var
|
|
498
|
+
var h = n._owner, b = v(n.type, n._source, h ? h.type : null);
|
|
499
499
|
et.setExtraStackFrame(b);
|
|
500
500
|
} else
|
|
501
501
|
et.setExtraStackFrame(null);
|
|
@@ -523,120 +523,120 @@ Check the render method of \`` + n + "`.";
|
|
|
523
523
|
var rt = {};
|
|
524
524
|
function Ft(n) {
|
|
525
525
|
{
|
|
526
|
-
var
|
|
527
|
-
if (!
|
|
526
|
+
var h = tt();
|
|
527
|
+
if (!h) {
|
|
528
528
|
var b = typeof n == "string" ? n : n.displayName || n.name;
|
|
529
|
-
b && (
|
|
529
|
+
b && (h = `
|
|
530
530
|
|
|
531
531
|
Check the top-level render call using <` + b + ">.");
|
|
532
532
|
}
|
|
533
|
-
return
|
|
533
|
+
return h;
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
|
-
function nt(n,
|
|
536
|
+
function nt(n, h) {
|
|
537
537
|
{
|
|
538
538
|
if (!n._store || n._store.validated || n.key != null)
|
|
539
539
|
return;
|
|
540
540
|
n._store.validated = !0;
|
|
541
|
-
var b = Ft(
|
|
541
|
+
var b = Ft(h);
|
|
542
542
|
if (rt[b])
|
|
543
543
|
return;
|
|
544
544
|
rt[b] = !0;
|
|
545
|
-
var
|
|
546
|
-
n && n._owner && n._owner !== Be.current && (
|
|
545
|
+
var N = "";
|
|
546
|
+
n && n._owner && n._owner !== Be.current && (N = " It was passed a child from " + q(n._owner.type) + "."), ke(n), L('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', b, N), ke(null);
|
|
547
547
|
}
|
|
548
548
|
}
|
|
549
|
-
function at(n,
|
|
549
|
+
function at(n, h) {
|
|
550
550
|
{
|
|
551
551
|
if (typeof n != "object")
|
|
552
552
|
return;
|
|
553
553
|
if (Array.isArray(n))
|
|
554
554
|
for (var b = 0; b < n.length; b++) {
|
|
555
|
-
var
|
|
556
|
-
Fe(
|
|
555
|
+
var N = n[b];
|
|
556
|
+
Fe(N) && nt(N, h);
|
|
557
557
|
}
|
|
558
558
|
else if (Fe(n))
|
|
559
559
|
n._store && (n._store.validated = !0);
|
|
560
560
|
else if (n) {
|
|
561
|
-
var
|
|
562
|
-
if (typeof
|
|
563
|
-
for (var W =
|
|
564
|
-
Fe(
|
|
561
|
+
var H = ae(n);
|
|
562
|
+
if (typeof H == "function" && H !== n.entries)
|
|
563
|
+
for (var W = H.call(n), O; !(O = W.next()).done; )
|
|
564
|
+
Fe(O.value) && nt(O.value, h);
|
|
565
565
|
}
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
568
|
function $t(n) {
|
|
569
569
|
{
|
|
570
|
-
var
|
|
571
|
-
if (
|
|
570
|
+
var h = n.type;
|
|
571
|
+
if (h == null || typeof h == "string")
|
|
572
572
|
return;
|
|
573
573
|
var b;
|
|
574
|
-
if (typeof
|
|
575
|
-
b =
|
|
576
|
-
else if (typeof
|
|
574
|
+
if (typeof h == "function")
|
|
575
|
+
b = h.propTypes;
|
|
576
|
+
else if (typeof h == "object" && (h.$$typeof === l || // Note: Memo only checks outer props here.
|
|
577
577
|
// Inner props are checked in the reconciler.
|
|
578
|
-
|
|
579
|
-
b =
|
|
578
|
+
h.$$typeof === _))
|
|
579
|
+
b = h.propTypes;
|
|
580
580
|
else
|
|
581
581
|
return;
|
|
582
582
|
if (b) {
|
|
583
|
-
var
|
|
584
|
-
we(b, n.props, "prop",
|
|
585
|
-
} else if (
|
|
583
|
+
var N = q(h);
|
|
584
|
+
we(b, n.props, "prop", N, n);
|
|
585
|
+
} else if (h.PropTypes !== void 0 && !Me) {
|
|
586
586
|
Me = !0;
|
|
587
|
-
var
|
|
588
|
-
|
|
587
|
+
var H = q(h);
|
|
588
|
+
L("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", H || "Unknown");
|
|
589
589
|
}
|
|
590
|
-
typeof
|
|
590
|
+
typeof h.getDefaultProps == "function" && !h.getDefaultProps.isReactClassApproved && L("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
591
591
|
}
|
|
592
592
|
}
|
|
593
593
|
function Wt(n) {
|
|
594
594
|
{
|
|
595
|
-
for (var
|
|
596
|
-
var
|
|
597
|
-
if (
|
|
598
|
-
ke(n),
|
|
595
|
+
for (var h = Object.keys(n.props), b = 0; b < h.length; b++) {
|
|
596
|
+
var N = h[b];
|
|
597
|
+
if (N !== "children" && N !== "key") {
|
|
598
|
+
ke(n), L("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", N), ke(null);
|
|
599
599
|
break;
|
|
600
600
|
}
|
|
601
601
|
}
|
|
602
|
-
n.ref !== null && (ke(n),
|
|
602
|
+
n.ref !== null && (ke(n), L("Invalid attribute `ref` supplied to `React.Fragment`."), ke(null));
|
|
603
603
|
}
|
|
604
604
|
}
|
|
605
|
-
function st(n,
|
|
605
|
+
function st(n, h, b, N, H, W) {
|
|
606
606
|
{
|
|
607
|
-
var
|
|
608
|
-
if (!
|
|
609
|
-
var
|
|
610
|
-
(n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (
|
|
611
|
-
var
|
|
612
|
-
|
|
607
|
+
var O = ie(n);
|
|
608
|
+
if (!O) {
|
|
609
|
+
var A = "";
|
|
610
|
+
(n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (A += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
611
|
+
var he = Mt();
|
|
612
|
+
he ? A += he : A += tt();
|
|
613
613
|
var Q;
|
|
614
|
-
n === null ? Q = "null" : Array.isArray(n) ? Q = "array" : n !== void 0 && n.$$typeof === s ? (Q = "<" + (q(n.type) || "Unknown") + " />",
|
|
614
|
+
n === null ? Q = "null" : Array.isArray(n) ? Q = "array" : n !== void 0 && n.$$typeof === s ? (Q = "<" + (q(n.type) || "Unknown") + " />", A = " Did you accidentally export a JSX literal instead of a component?") : Q = typeof n, L("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Q, A);
|
|
615
615
|
}
|
|
616
|
-
var
|
|
617
|
-
if (
|
|
618
|
-
return
|
|
619
|
-
if (
|
|
620
|
-
var
|
|
621
|
-
if (
|
|
622
|
-
if (
|
|
623
|
-
if (Array.isArray(
|
|
624
|
-
for (var je = 0; je <
|
|
625
|
-
at(
|
|
626
|
-
Object.freeze && Object.freeze(
|
|
616
|
+
var re = Bt(n, h, b, H, W);
|
|
617
|
+
if (re == null)
|
|
618
|
+
return re;
|
|
619
|
+
if (O) {
|
|
620
|
+
var be = h.children;
|
|
621
|
+
if (be !== void 0)
|
|
622
|
+
if (N)
|
|
623
|
+
if (Array.isArray(be)) {
|
|
624
|
+
for (var je = 0; je < be.length; je++)
|
|
625
|
+
at(be[je], n);
|
|
626
|
+
Object.freeze && Object.freeze(be);
|
|
627
627
|
} else
|
|
628
|
-
|
|
628
|
+
L("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
629
629
|
else
|
|
630
|
-
at(
|
|
630
|
+
at(be, n);
|
|
631
631
|
}
|
|
632
|
-
return n === e.Fragment ? Wt(
|
|
632
|
+
return n === e.Fragment ? Wt(re) : $t(re), re;
|
|
633
633
|
}
|
|
634
634
|
}
|
|
635
|
-
function Ht(n,
|
|
636
|
-
return st(n,
|
|
635
|
+
function Ht(n, h, b) {
|
|
636
|
+
return st(n, h, b, !0);
|
|
637
637
|
}
|
|
638
|
-
function Vt(n,
|
|
639
|
-
return st(n,
|
|
638
|
+
function Vt(n, h, b) {
|
|
639
|
+
return st(n, h, b, !1);
|
|
640
640
|
}
|
|
641
641
|
var qt = Vt, Gt = Ht;
|
|
642
642
|
e.jsx = qt, e.jsxs = Gt;
|
|
@@ -760,12 +760,12 @@ const Ze = {
|
|
|
760
760
|
},
|
|
761
761
|
destroy() {
|
|
762
762
|
}
|
|
763
|
-
}, Ke = Ye(null), jt = Ye(Ze),
|
|
763
|
+
}, Ke = Ye(null), jt = Ye(Ze), Ao = ({
|
|
764
764
|
client: e,
|
|
765
765
|
children: r
|
|
766
766
|
}) => {
|
|
767
767
|
const [a, s] = E(Ze);
|
|
768
|
-
return
|
|
768
|
+
return ce(() => {
|
|
769
769
|
const o = new lr(e.environment);
|
|
770
770
|
return s(o), () => {
|
|
771
771
|
o.destroy();
|
|
@@ -779,16 +779,16 @@ const Ze = {
|
|
|
779
779
|
);
|
|
780
780
|
return e;
|
|
781
781
|
}, ze = () => De(jt);
|
|
782
|
-
function
|
|
783
|
-
const a = ze(), s =
|
|
782
|
+
function St(e, r = {}) {
|
|
783
|
+
const a = ze(), s = U(a);
|
|
784
784
|
s.current = a;
|
|
785
|
-
const o =
|
|
786
|
-
return
|
|
785
|
+
const o = U(null), i = U(!1);
|
|
786
|
+
return ce(() => {
|
|
787
787
|
const m = o.current;
|
|
788
788
|
if (!m || !e || i.current) return;
|
|
789
789
|
const f = new IntersectionObserver(
|
|
790
|
-
([
|
|
791
|
-
if (
|
|
790
|
+
([u]) => {
|
|
791
|
+
if (u.isIntersecting && !i.current) {
|
|
792
792
|
if (s.current === Ze) return;
|
|
793
793
|
i.current = !0, s.current.trackPlatform({
|
|
794
794
|
inputViewEvent: { targetName: e }
|
|
@@ -885,10 +885,9 @@ function ur(e) {
|
|
|
885
885
|
const r = cr[(e == null ? void 0 : e.theme) ?? "default"];
|
|
886
886
|
return e != null && e.variables ? { ...r, ...e.variables } : r;
|
|
887
887
|
}
|
|
888
|
-
const
|
|
888
|
+
const Do = [
|
|
889
889
|
"confirm-home-details",
|
|
890
890
|
"ownership",
|
|
891
|
-
"ownership-other",
|
|
892
891
|
"sale-timeline",
|
|
893
892
|
"kitchen-condition",
|
|
894
893
|
"bathroom-condition",
|
|
@@ -941,7 +940,7 @@ function mr() {
|
|
|
941
940
|
/* @__PURE__ */ t.jsx(fr, {})
|
|
942
941
|
] });
|
|
943
942
|
}
|
|
944
|
-
const pr = "_container_tu90h_8", gr = "_inputSection_tu90h_16", _r = "_inputWrapper_tu90h_22", br = "_input_tu90h_16", yr = "_inputIcon_tu90h_63", vr = "_button_tu90h_80", xr = "_spinner_tu90h_121", Cr = "_suggestions_tu90h_136", wr = "_errorState_tu90h_150", kr = "_suggestion_tu90h_136", jr = "_error_tu90h_150", Nr = "_errorIcon_tu90h_199",
|
|
943
|
+
const pr = "_container_tu90h_8", gr = "_inputSection_tu90h_16", _r = "_inputWrapper_tu90h_22", br = "_input_tu90h_16", yr = "_inputIcon_tu90h_63", vr = "_button_tu90h_80", xr = "_spinner_tu90h_121", Cr = "_suggestions_tu90h_136", wr = "_errorState_tu90h_150", kr = "_suggestion_tu90h_136", jr = "_error_tu90h_150", Nr = "_errorIcon_tu90h_199", Sr = "_errorBorder_tu90h_213", Ir = "_manualLink_tu90h_223", Er = "_manualForm_tu90h_245", Pr = "_manualFormField_tu90h_260", Lr = "_manualFormLabel_tu90h_264", Tr = "_manualFormInput_tu90h_273", Ar = "_formRow_tu90h_294", Dr = "_submitButton_tu90h_302", R = {
|
|
945
944
|
container: pr,
|
|
946
945
|
inputSection: gr,
|
|
947
946
|
inputWrapper: _r,
|
|
@@ -954,8 +953,8 @@ const pr = "_container_tu90h_8", gr = "_inputSection_tu90h_16", _r = "_inputWrap
|
|
|
954
953
|
suggestion: kr,
|
|
955
954
|
error: jr,
|
|
956
955
|
errorIcon: Nr,
|
|
957
|
-
errorBorder:
|
|
958
|
-
manualLink:
|
|
956
|
+
errorBorder: Sr,
|
|
957
|
+
manualLink: Ir,
|
|
959
958
|
manualForm: Er,
|
|
960
959
|
manualFormField: Pr,
|
|
961
960
|
manualFormLabel: Lr,
|
|
@@ -1007,7 +1006,7 @@ function mt(e) {
|
|
|
1007
1006
|
const r = [e.street1];
|
|
1008
1007
|
return e.street2 && (r[0] += ` ${e.street2}`), r.push(`${e.city}, ${e.state} ${e.postalCode}`), r.join(", ");
|
|
1009
1008
|
}
|
|
1010
|
-
function
|
|
1009
|
+
function Oo({
|
|
1011
1010
|
onAddressSelect: e,
|
|
1012
1011
|
enableAddressSuggestions: r = !0,
|
|
1013
1012
|
debounceMs: a = 300,
|
|
@@ -1016,203 +1015,203 @@ function Ro({
|
|
|
1016
1015
|
placeholderText: i = "Enter your home address",
|
|
1017
1016
|
buttonText: m = "Get cash offer",
|
|
1018
1017
|
showButton: f = !0,
|
|
1019
|
-
buttonIcon:
|
|
1020
|
-
inputIcon:
|
|
1021
|
-
manualEntryText:
|
|
1018
|
+
buttonIcon: u,
|
|
1019
|
+
inputIcon: l,
|
|
1020
|
+
manualEntryText: c = "Enter address manually instead",
|
|
1022
1021
|
appearance: p,
|
|
1023
1022
|
onReady: _,
|
|
1024
|
-
onChange:
|
|
1025
|
-
onValidationError:
|
|
1026
|
-
onAddressSuggestionsStart:
|
|
1027
|
-
onAddressSuggestionsComplete:
|
|
1023
|
+
onChange: x,
|
|
1024
|
+
onValidationError: I,
|
|
1025
|
+
onAddressSuggestionsStart: D,
|
|
1026
|
+
onAddressSuggestionsComplete: B,
|
|
1028
1027
|
onError: P
|
|
1029
1028
|
}) {
|
|
1030
|
-
const
|
|
1029
|
+
const S = Nt(), j = ze(), ee = Pe(p), [V, ae] = E(""), [Z, L] = E([]), [se, K] = E(!1), [ie, Y] = E(!1), [z, q] = E(null), [J, ue] = E(!1), [y, k] = E(!1), [C, fe] = E({
|
|
1031
1030
|
street1: "",
|
|
1032
1031
|
street2: "",
|
|
1033
1032
|
city: "",
|
|
1034
1033
|
state: "",
|
|
1035
1034
|
postalCode: ""
|
|
1036
|
-
}),
|
|
1035
|
+
}), G = U(null), oe = St("partner-sdk-address-input", {
|
|
1037
1036
|
immediate: !0
|
|
1038
|
-
}),
|
|
1039
|
-
|
|
1040
|
-
const
|
|
1041
|
-
|
|
1042
|
-
const
|
|
1043
|
-
|
|
1044
|
-
const
|
|
1045
|
-
|
|
1037
|
+
}), M = U(P);
|
|
1038
|
+
M.current = P;
|
|
1039
|
+
const le = U(D);
|
|
1040
|
+
le.current = D;
|
|
1041
|
+
const ge = U(B);
|
|
1042
|
+
ge.current = B;
|
|
1043
|
+
const w = U(null), T = se && !ie && V.trim().length >= 3 && Z.length === 0 && !y;
|
|
1044
|
+
ce(() => {
|
|
1046
1045
|
_ == null || _();
|
|
1047
|
-
}, []),
|
|
1048
|
-
if (!r ||
|
|
1049
|
-
|
|
1046
|
+
}, []), ce(() => {
|
|
1047
|
+
if (!r || V.trim().length < 3 || J) {
|
|
1048
|
+
V.trim().length === 0 && (L([]), K(!1), q(null));
|
|
1050
1049
|
return;
|
|
1051
1050
|
}
|
|
1052
|
-
|
|
1053
|
-
const
|
|
1054
|
-
var X,
|
|
1055
|
-
(X =
|
|
1051
|
+
Y(!0), q(null);
|
|
1052
|
+
const v = setTimeout(async () => {
|
|
1053
|
+
var X, te, Ce;
|
|
1054
|
+
(X = le.current) == null || X.call(le, V);
|
|
1056
1055
|
try {
|
|
1057
|
-
const we = await
|
|
1058
|
-
|
|
1056
|
+
const we = await S.getAddressSuggestions(V);
|
|
1057
|
+
L(we.addresses), K(!0), (te = ge.current) == null || te.call(ge, we.addresses);
|
|
1059
1058
|
} catch (we) {
|
|
1060
|
-
const
|
|
1061
|
-
q(
|
|
1059
|
+
const Se = we instanceof Error ? we : new Error("Failed to fetch address suggestions");
|
|
1060
|
+
q(Se.message), L([]), K(!0), (Ce = M.current) == null || Ce.call(M, Se);
|
|
1062
1061
|
} finally {
|
|
1063
|
-
|
|
1062
|
+
Y(!1);
|
|
1064
1063
|
}
|
|
1065
1064
|
}, a);
|
|
1066
|
-
return () => clearTimeout(
|
|
1067
|
-
}, [
|
|
1068
|
-
const
|
|
1069
|
-
|
|
1065
|
+
return () => clearTimeout(v);
|
|
1066
|
+
}, [V, J, r, a, S]), ce(() => {
|
|
1067
|
+
const v = (X) => {
|
|
1068
|
+
w.current && !w.current.contains(X.target) && G.current && !G.current.contains(X.target) && K(!1);
|
|
1070
1069
|
};
|
|
1071
|
-
return document.addEventListener("mousedown",
|
|
1070
|
+
return document.addEventListener("mousedown", v), () => document.removeEventListener("mousedown", v);
|
|
1072
1071
|
}, []);
|
|
1073
|
-
const
|
|
1074
|
-
const X =
|
|
1075
|
-
|
|
1076
|
-
},
|
|
1077
|
-
ue(!0),
|
|
1072
|
+
const F = (v) => {
|
|
1073
|
+
const X = v.target.value;
|
|
1074
|
+
ae(X), ue(!1), x == null || x({ street1: X });
|
|
1075
|
+
}, $ = async (v) => {
|
|
1076
|
+
ue(!0), ae(mt(v)), L([]), K(!1), q(null), x == null || x(v), j.trackSell({
|
|
1078
1077
|
addressEntryV2: {
|
|
1079
|
-
street1:
|
|
1080
|
-
city:
|
|
1081
|
-
state:
|
|
1082
|
-
postalCode:
|
|
1083
|
-
unit:
|
|
1078
|
+
street1: v.street1,
|
|
1079
|
+
city: v.city,
|
|
1080
|
+
state: v.state,
|
|
1081
|
+
postalCode: v.postalCode,
|
|
1082
|
+
unit: v.street2,
|
|
1084
1083
|
sourcePage: "partner-sdk"
|
|
1085
1084
|
}
|
|
1086
1085
|
});
|
|
1087
1086
|
try {
|
|
1088
|
-
await e(
|
|
1087
|
+
await e(v);
|
|
1089
1088
|
} catch (X) {
|
|
1090
|
-
const
|
|
1091
|
-
q(
|
|
1089
|
+
const te = X instanceof Error ? X : new Error("Failed to process address");
|
|
1090
|
+
q(te.message), P == null || P(te), ae(""), ue(!1);
|
|
1092
1091
|
}
|
|
1093
|
-
},
|
|
1092
|
+
}, de = () => {
|
|
1094
1093
|
j.trackPlatform({
|
|
1095
1094
|
inputFocusEvent: { targetName: "partner-sdk-address-input" }
|
|
1096
|
-
}),
|
|
1095
|
+
}), Z.length > 0 && V.length > 0 && K(!0);
|
|
1097
1096
|
}, xe = () => {
|
|
1098
1097
|
j.trackPlatform({
|
|
1099
1098
|
linkClickEvent: { targetName: "partner-sdk-manual-entry" }
|
|
1100
|
-
}),
|
|
1101
|
-
},
|
|
1102
|
-
const
|
|
1103
|
-
|
|
1104
|
-
street1:
|
|
1105
|
-
...
|
|
1106
|
-
city:
|
|
1107
|
-
state:
|
|
1108
|
-
postalCode:
|
|
1099
|
+
}), k(!0), K(!1);
|
|
1100
|
+
}, _e = (v, X) => {
|
|
1101
|
+
const te = { ...C, [v]: X };
|
|
1102
|
+
fe(te), x == null || x({
|
|
1103
|
+
street1: te.street1,
|
|
1104
|
+
...te.street2 ? { street2: te.street2 } : {},
|
|
1105
|
+
city: te.city,
|
|
1106
|
+
state: te.state,
|
|
1107
|
+
postalCode: te.postalCode
|
|
1109
1108
|
});
|
|
1110
1109
|
}, Le = async () => {
|
|
1111
|
-
if (!
|
|
1112
|
-
const
|
|
1113
|
-
q(
|
|
1110
|
+
if (!C.street1 || !C.city || !C.state || !C.postalCode) {
|
|
1111
|
+
const v = "Please fill in all required fields";
|
|
1112
|
+
q(v), I == null || I(v);
|
|
1114
1113
|
return;
|
|
1115
1114
|
}
|
|
1116
|
-
|
|
1115
|
+
Y(!0), q(null);
|
|
1117
1116
|
try {
|
|
1118
|
-
const
|
|
1119
|
-
street1:
|
|
1120
|
-
...
|
|
1121
|
-
city:
|
|
1122
|
-
state:
|
|
1123
|
-
postalCode:
|
|
1117
|
+
const v = {
|
|
1118
|
+
street1: C.street1,
|
|
1119
|
+
...C.street2 ? { street2: C.street2 } : {},
|
|
1120
|
+
city: C.city,
|
|
1121
|
+
state: C.state,
|
|
1122
|
+
postalCode: C.postalCode
|
|
1124
1123
|
};
|
|
1125
1124
|
j.trackSell({
|
|
1126
1125
|
addressEntryV2: {
|
|
1127
|
-
street1:
|
|
1128
|
-
city:
|
|
1129
|
-
state:
|
|
1130
|
-
postalCode:
|
|
1131
|
-
unit:
|
|
1126
|
+
street1: v.street1,
|
|
1127
|
+
city: v.city,
|
|
1128
|
+
state: v.state,
|
|
1129
|
+
postalCode: v.postalCode,
|
|
1130
|
+
unit: v.street2,
|
|
1132
1131
|
sourcePage: "partner-sdk"
|
|
1133
1132
|
}
|
|
1134
|
-
}), await e(
|
|
1135
|
-
} catch (
|
|
1136
|
-
const X =
|
|
1133
|
+
}), await e(v);
|
|
1134
|
+
} catch (v) {
|
|
1135
|
+
const X = v instanceof Error ? v : new Error("Failed to submit address");
|
|
1137
1136
|
q(X.message), P == null || P(X);
|
|
1138
1137
|
} finally {
|
|
1139
|
-
|
|
1138
|
+
Y(!1);
|
|
1140
1139
|
}
|
|
1141
|
-
}, ve = !!
|
|
1142
|
-
return /* @__PURE__ */ t.jsxs("div", { ref:
|
|
1143
|
-
|
|
1144
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
1145
|
-
/* @__PURE__ */ t.jsx("label", { className:
|
|
1140
|
+
}, ve = !!z;
|
|
1141
|
+
return /* @__PURE__ */ t.jsxs("div", { ref: oe, className: R.container, style: ee, children: [
|
|
1142
|
+
y ? /* @__PURE__ */ t.jsxs("div", { className: R.manualForm, children: [
|
|
1143
|
+
/* @__PURE__ */ t.jsxs("div", { className: R.manualFormField, children: [
|
|
1144
|
+
/* @__PURE__ */ t.jsx("label", { className: R.manualFormLabel, htmlFor: "ae-street1", children: "Street Address *" }),
|
|
1146
1145
|
/* @__PURE__ */ t.jsx(
|
|
1147
1146
|
"input",
|
|
1148
1147
|
{
|
|
1149
1148
|
id: "ae-street1",
|
|
1150
1149
|
type: "text",
|
|
1151
|
-
className:
|
|
1152
|
-
value:
|
|
1153
|
-
onChange: (
|
|
1150
|
+
className: R.manualFormInput,
|
|
1151
|
+
value: C.street1,
|
|
1152
|
+
onChange: (v) => _e("street1", v.target.value),
|
|
1154
1153
|
disabled: o,
|
|
1155
1154
|
placeholder: "123 Main St"
|
|
1156
1155
|
}
|
|
1157
1156
|
)
|
|
1158
1157
|
] }),
|
|
1159
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
1160
|
-
/* @__PURE__ */ t.jsx("label", { className:
|
|
1158
|
+
/* @__PURE__ */ t.jsxs("div", { className: R.manualFormField, children: [
|
|
1159
|
+
/* @__PURE__ */ t.jsx("label", { className: R.manualFormLabel, htmlFor: "ae-street2", children: "Unit / Apt (optional)" }),
|
|
1161
1160
|
/* @__PURE__ */ t.jsx(
|
|
1162
1161
|
"input",
|
|
1163
1162
|
{
|
|
1164
1163
|
id: "ae-street2",
|
|
1165
1164
|
type: "text",
|
|
1166
|
-
className:
|
|
1167
|
-
value:
|
|
1168
|
-
onChange: (
|
|
1165
|
+
className: R.manualFormInput,
|
|
1166
|
+
value: C.street2,
|
|
1167
|
+
onChange: (v) => _e("street2", v.target.value),
|
|
1169
1168
|
disabled: o,
|
|
1170
1169
|
placeholder: "Apt 4B"
|
|
1171
1170
|
}
|
|
1172
1171
|
)
|
|
1173
1172
|
] }),
|
|
1174
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
1175
|
-
/* @__PURE__ */ t.jsx("label", { className:
|
|
1173
|
+
/* @__PURE__ */ t.jsxs("div", { className: R.manualFormField, children: [
|
|
1174
|
+
/* @__PURE__ */ t.jsx("label", { className: R.manualFormLabel, htmlFor: "ae-city", children: "City *" }),
|
|
1176
1175
|
/* @__PURE__ */ t.jsx(
|
|
1177
1176
|
"input",
|
|
1178
1177
|
{
|
|
1179
1178
|
id: "ae-city",
|
|
1180
1179
|
type: "text",
|
|
1181
|
-
className:
|
|
1182
|
-
value:
|
|
1183
|
-
onChange: (
|
|
1180
|
+
className: R.manualFormInput,
|
|
1181
|
+
value: C.city,
|
|
1182
|
+
onChange: (v) => _e("city", v.target.value),
|
|
1184
1183
|
disabled: o,
|
|
1185
1184
|
placeholder: "Austin"
|
|
1186
1185
|
}
|
|
1187
1186
|
)
|
|
1188
1187
|
] }),
|
|
1189
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
1190
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
1191
|
-
/* @__PURE__ */ t.jsx("label", { className:
|
|
1188
|
+
/* @__PURE__ */ t.jsxs("div", { className: R.formRow, children: [
|
|
1189
|
+
/* @__PURE__ */ t.jsxs("div", { className: R.manualFormField, children: [
|
|
1190
|
+
/* @__PURE__ */ t.jsx("label", { className: R.manualFormLabel, htmlFor: "ae-state", children: "State *" }),
|
|
1192
1191
|
/* @__PURE__ */ t.jsx(
|
|
1193
1192
|
"input",
|
|
1194
1193
|
{
|
|
1195
1194
|
id: "ae-state",
|
|
1196
1195
|
type: "text",
|
|
1197
|
-
className:
|
|
1198
|
-
value:
|
|
1199
|
-
onChange: (
|
|
1196
|
+
className: R.manualFormInput,
|
|
1197
|
+
value: C.state,
|
|
1198
|
+
onChange: (v) => _e("state", v.target.value),
|
|
1200
1199
|
disabled: o,
|
|
1201
1200
|
placeholder: "TX",
|
|
1202
1201
|
maxLength: 2
|
|
1203
1202
|
}
|
|
1204
1203
|
)
|
|
1205
1204
|
] }),
|
|
1206
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
1207
|
-
/* @__PURE__ */ t.jsx("label", { className:
|
|
1205
|
+
/* @__PURE__ */ t.jsxs("div", { className: R.manualFormField, children: [
|
|
1206
|
+
/* @__PURE__ */ t.jsx("label", { className: R.manualFormLabel, htmlFor: "ae-postalCode", children: "ZIP Code *" }),
|
|
1208
1207
|
/* @__PURE__ */ t.jsx(
|
|
1209
1208
|
"input",
|
|
1210
1209
|
{
|
|
1211
1210
|
id: "ae-postalCode",
|
|
1212
1211
|
type: "text",
|
|
1213
|
-
className:
|
|
1214
|
-
value:
|
|
1215
|
-
onChange: (
|
|
1212
|
+
className: R.manualFormInput,
|
|
1213
|
+
value: C.postalCode,
|
|
1214
|
+
onChange: (v) => _e("postalCode", v.target.value),
|
|
1216
1215
|
disabled: o,
|
|
1217
1216
|
placeholder: "78701",
|
|
1218
1217
|
maxLength: 5
|
|
@@ -1220,57 +1219,57 @@ function Ro({
|
|
|
1220
1219
|
)
|
|
1221
1220
|
] })
|
|
1222
1221
|
] }),
|
|
1223
|
-
|
|
1222
|
+
z && /* @__PURE__ */ t.jsx("div", { className: R.error, children: z }),
|
|
1224
1223
|
/* @__PURE__ */ t.jsxs(
|
|
1225
1224
|
"button",
|
|
1226
1225
|
{
|
|
1227
1226
|
type: "button",
|
|
1228
|
-
className:
|
|
1227
|
+
className: R.submitButton,
|
|
1229
1228
|
onClick: Le,
|
|
1230
1229
|
disabled: o,
|
|
1231
1230
|
children: [
|
|
1232
1231
|
/* @__PURE__ */ t.jsx("span", { children: m }),
|
|
1233
|
-
|
|
1232
|
+
u || /* @__PURE__ */ t.jsx(ft, {})
|
|
1234
1233
|
]
|
|
1235
1234
|
}
|
|
1236
1235
|
)
|
|
1237
|
-
] }) : /* @__PURE__ */ t.jsxs("div", { className:
|
|
1236
|
+
] }) : /* @__PURE__ */ t.jsxs("div", { className: R.inputSection, children: [
|
|
1238
1237
|
/* @__PURE__ */ t.jsxs(
|
|
1239
1238
|
"div",
|
|
1240
1239
|
{
|
|
1241
|
-
className: `${
|
|
1240
|
+
className: `${R.inputWrapper} ${ve ? R.errorBorder : ""}`,
|
|
1242
1241
|
children: [
|
|
1243
1242
|
/* @__PURE__ */ t.jsx(
|
|
1244
1243
|
"input",
|
|
1245
1244
|
{
|
|
1246
|
-
ref:
|
|
1245
|
+
ref: G,
|
|
1247
1246
|
type: "text",
|
|
1248
|
-
value:
|
|
1249
|
-
onChange:
|
|
1250
|
-
onFocus:
|
|
1247
|
+
value: V,
|
|
1248
|
+
onChange: F,
|
|
1249
|
+
onFocus: de,
|
|
1251
1250
|
placeholder: i,
|
|
1252
|
-
className:
|
|
1251
|
+
className: R.input,
|
|
1253
1252
|
disabled: o,
|
|
1254
1253
|
"aria-label": "Address input",
|
|
1255
1254
|
"aria-autocomplete": "list",
|
|
1256
1255
|
"aria-controls": "address-suggestions",
|
|
1257
|
-
"aria-expanded":
|
|
1256
|
+
"aria-expanded": se
|
|
1258
1257
|
}
|
|
1259
1258
|
),
|
|
1260
|
-
|
|
1259
|
+
l && /* @__PURE__ */ t.jsx("div", { className: R.inputIcon, children: l }),
|
|
1261
1260
|
f && /* @__PURE__ */ t.jsx(
|
|
1262
1261
|
"button",
|
|
1263
1262
|
{
|
|
1264
|
-
className:
|
|
1263
|
+
className: R.button,
|
|
1265
1264
|
type: "button",
|
|
1266
1265
|
disabled: o,
|
|
1267
1266
|
"aria-label": m,
|
|
1268
|
-
children:
|
|
1267
|
+
children: ie ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
1269
1268
|
/* @__PURE__ */ t.jsx("span", { children: m }),
|
|
1270
1269
|
/* @__PURE__ */ t.jsxs(
|
|
1271
1270
|
"svg",
|
|
1272
1271
|
{
|
|
1273
|
-
className:
|
|
1272
|
+
className: R.spinner,
|
|
1274
1273
|
width: "20",
|
|
1275
1274
|
height: "20",
|
|
1276
1275
|
viewBox: "0 0 24 24",
|
|
@@ -1302,45 +1301,45 @@ function Ro({
|
|
|
1302
1301
|
)
|
|
1303
1302
|
] }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
1304
1303
|
/* @__PURE__ */ t.jsx("span", { children: m }),
|
|
1305
|
-
|
|
1304
|
+
u || /* @__PURE__ */ t.jsx(ft, {})
|
|
1306
1305
|
] })
|
|
1307
1306
|
}
|
|
1308
1307
|
)
|
|
1309
1308
|
]
|
|
1310
1309
|
}
|
|
1311
1310
|
),
|
|
1312
|
-
(
|
|
1311
|
+
(se || ve) && /* @__PURE__ */ t.jsx(
|
|
1313
1312
|
"div",
|
|
1314
1313
|
{
|
|
1315
|
-
ref:
|
|
1316
|
-
className: `${
|
|
1314
|
+
ref: w,
|
|
1315
|
+
className: `${R.suggestions} ${ve ? R.errorState : ""}`,
|
|
1317
1316
|
id: "address-suggestions",
|
|
1318
|
-
role: ve &&
|
|
1319
|
-
"aria-live": ve &&
|
|
1320
|
-
children: ve ? /* @__PURE__ */ t.jsxs("div", { className:
|
|
1321
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
1322
|
-
/* @__PURE__ */ t.jsx("div", { children:
|
|
1323
|
-
] }) :
|
|
1317
|
+
role: ve && !se ? "alert" : "listbox",
|
|
1318
|
+
"aria-live": ve && !se ? "polite" : void 0,
|
|
1319
|
+
children: ve ? /* @__PURE__ */ t.jsxs("div", { className: R.error, children: [
|
|
1320
|
+
/* @__PURE__ */ t.jsx("div", { className: R.errorIcon, children: /* @__PURE__ */ t.jsx(Or, {}) }),
|
|
1321
|
+
/* @__PURE__ */ t.jsx("div", { children: z })
|
|
1322
|
+
] }) : Z.length > 0 ? Z.map((v, X) => /* @__PURE__ */ t.jsx(
|
|
1324
1323
|
"div",
|
|
1325
1324
|
{
|
|
1326
|
-
className:
|
|
1327
|
-
onClick: () =>
|
|
1325
|
+
className: R.suggestion,
|
|
1326
|
+
onClick: () => $(v),
|
|
1328
1327
|
role: "option",
|
|
1329
1328
|
"aria-selected": !1,
|
|
1330
1329
|
tabIndex: 0,
|
|
1331
|
-
onKeyDown: (
|
|
1332
|
-
(
|
|
1330
|
+
onKeyDown: (te) => {
|
|
1331
|
+
(te.key === "Enter" || te.key === " ") && (te.preventDefault(), $(v));
|
|
1333
1332
|
},
|
|
1334
|
-
children: mt(
|
|
1333
|
+
children: mt(v)
|
|
1335
1334
|
},
|
|
1336
|
-
`${
|
|
1337
|
-
)) :
|
|
1335
|
+
`${v.street1}-${v.city}-${v.postalCode}-${X}`
|
|
1336
|
+
)) : T && /* @__PURE__ */ t.jsx(
|
|
1338
1337
|
"button",
|
|
1339
1338
|
{
|
|
1340
1339
|
type: "button",
|
|
1341
|
-
className:
|
|
1340
|
+
className: R.manualLink,
|
|
1342
1341
|
onClick: xe,
|
|
1343
|
-
children:
|
|
1342
|
+
children: c
|
|
1344
1343
|
}
|
|
1345
1344
|
)
|
|
1346
1345
|
}
|
|
@@ -1349,7 +1348,7 @@ function Ro({
|
|
|
1349
1348
|
s && /* @__PURE__ */ t.jsx(mr, {})
|
|
1350
1349
|
] });
|
|
1351
1350
|
}
|
|
1352
|
-
const Rr = "_container_rg8mk_3", Br = "_title_rg8mk_7", Mr = "_addressCard_rg8mk_16", Fr = "_addressText_rg8mk_26", $r = "_editLink_rg8mk_34", Wr = "_fieldGroup_rg8mk_47", Hr = "_fieldLabel_rg8mk_51", Vr = "_input_rg8mk_60", qr = "_checkboxRow_rg8mk_84", Gr = "_checkbox_rg8mk_84", Ur = "_checkboxLabel_rg8mk_101", Yr = "_error_rg8mk_108", Zr = "_actions_rg8mk_115", Kr = "_confirmButton_rg8mk_120",
|
|
1351
|
+
const Rr = "_container_rg8mk_3", Br = "_title_rg8mk_7", Mr = "_addressCard_rg8mk_16", Fr = "_addressText_rg8mk_26", $r = "_editLink_rg8mk_34", Wr = "_fieldGroup_rg8mk_47", Hr = "_fieldLabel_rg8mk_51", Vr = "_input_rg8mk_60", qr = "_checkboxRow_rg8mk_84", Gr = "_checkbox_rg8mk_84", Ur = "_checkboxLabel_rg8mk_101", Yr = "_error_rg8mk_108", Zr = "_actions_rg8mk_115", Kr = "_confirmButton_rg8mk_120", me = {
|
|
1353
1352
|
container: Rr,
|
|
1354
1353
|
title: Br,
|
|
1355
1354
|
addressCard: Mr,
|
|
@@ -1368,75 +1367,75 @@ const Rr = "_container_rg8mk_3", Br = "_title_rg8mk_7", Mr = "_addressCard_rg8mk
|
|
|
1368
1367
|
function zr(e) {
|
|
1369
1368
|
return `${e.street1 + (e.street2 ? ` ${e.street2}` : "")}, ${e.city}, ${e.state} ${e.postalCode}`;
|
|
1370
1369
|
}
|
|
1371
|
-
function
|
|
1370
|
+
function Ro({
|
|
1372
1371
|
address: e,
|
|
1373
1372
|
appearance: r,
|
|
1374
1373
|
onConfirm: a,
|
|
1375
1374
|
onEdit: s
|
|
1376
1375
|
}) {
|
|
1377
|
-
const o = ze(), m = Pe(r), f =
|
|
1378
|
-
if (!
|
|
1379
|
-
|
|
1376
|
+
const o = ze(), m = Pe(r), f = St("partner-sdk-unit-input"), [u, l] = E(""), [c, p] = E(!1), [_, x] = E(null), I = () => {
|
|
1377
|
+
if (!c && !u.trim()) {
|
|
1378
|
+
x("Please enter a unit number or select 'No unit number'");
|
|
1380
1379
|
return;
|
|
1381
1380
|
}
|
|
1382
|
-
|
|
1381
|
+
x(null), o.trackPlatform({
|
|
1383
1382
|
buttonClickEvent: { targetName: "partner-sdk-confirm-unit" }
|
|
1384
|
-
}), a(
|
|
1385
|
-
},
|
|
1383
|
+
}), a(c ? { ...e } : { ...e, street2: u.trim() });
|
|
1384
|
+
}, D = () => {
|
|
1386
1385
|
o.trackPlatform({
|
|
1387
1386
|
checkboxClickEvent: {
|
|
1388
1387
|
targetName: "partner-sdk-no-unit",
|
|
1389
|
-
optionName: String(!
|
|
1388
|
+
optionName: String(!c)
|
|
1390
1389
|
}
|
|
1391
|
-
}), p(!
|
|
1392
|
-
},
|
|
1393
|
-
|
|
1390
|
+
}), p(!c), c || (l(""), x(null));
|
|
1391
|
+
}, B = (S) => {
|
|
1392
|
+
l(S.target.value), _ && x(null);
|
|
1394
1393
|
}, P = () => {
|
|
1395
1394
|
o.trackPlatform({
|
|
1396
1395
|
inputFocusEvent: { targetName: "partner-sdk-unit-input" }
|
|
1397
1396
|
});
|
|
1398
1397
|
};
|
|
1399
|
-
return /* @__PURE__ */ t.jsxs("div", { ref: f, style: m, className:
|
|
1400
|
-
/* @__PURE__ */ t.jsx("h2", { className:
|
|
1401
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
1402
|
-
/* @__PURE__ */ t.jsx("span", { className:
|
|
1403
|
-
s && /* @__PURE__ */ t.jsx("button", { type: "button", className:
|
|
1398
|
+
return /* @__PURE__ */ t.jsxs("div", { ref: f, style: m, className: me.container, children: [
|
|
1399
|
+
/* @__PURE__ */ t.jsx("h2", { className: me.title, children: "Confirm your home address" }),
|
|
1400
|
+
/* @__PURE__ */ t.jsxs("div", { className: me.addressCard, children: [
|
|
1401
|
+
/* @__PURE__ */ t.jsx("span", { className: me.addressText, children: zr(e) }),
|
|
1402
|
+
s && /* @__PURE__ */ t.jsx("button", { type: "button", className: me.editLink, onClick: s, children: "Edit" })
|
|
1404
1403
|
] }),
|
|
1405
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
1406
|
-
/* @__PURE__ */ t.jsx("label", { className:
|
|
1404
|
+
/* @__PURE__ */ t.jsxs("div", { className: me.fieldGroup, children: [
|
|
1405
|
+
/* @__PURE__ */ t.jsx("label", { className: me.fieldLabel, htmlFor: "od-unit-number", children: "Unit number, apt, or floor*" }),
|
|
1407
1406
|
/* @__PURE__ */ t.jsx(
|
|
1408
1407
|
"input",
|
|
1409
1408
|
{
|
|
1410
1409
|
id: "od-unit-number",
|
|
1411
1410
|
type: "text",
|
|
1412
|
-
className:
|
|
1411
|
+
className: me.input,
|
|
1413
1412
|
placeholder: "#1234",
|
|
1414
|
-
value:
|
|
1415
|
-
onChange:
|
|
1413
|
+
value: u,
|
|
1414
|
+
onChange: B,
|
|
1416
1415
|
onFocus: P,
|
|
1417
|
-
disabled:
|
|
1416
|
+
disabled: c
|
|
1418
1417
|
}
|
|
1419
1418
|
)
|
|
1420
1419
|
] }),
|
|
1421
|
-
/* @__PURE__ */ t.jsxs("label", { className:
|
|
1420
|
+
/* @__PURE__ */ t.jsxs("label", { className: me.checkboxRow, children: [
|
|
1422
1421
|
/* @__PURE__ */ t.jsx(
|
|
1423
1422
|
"input",
|
|
1424
1423
|
{
|
|
1425
1424
|
type: "checkbox",
|
|
1426
|
-
className:
|
|
1427
|
-
checked:
|
|
1428
|
-
onChange:
|
|
1425
|
+
className: me.checkbox,
|
|
1426
|
+
checked: c,
|
|
1427
|
+
onChange: D
|
|
1429
1428
|
}
|
|
1430
1429
|
),
|
|
1431
|
-
/* @__PURE__ */ t.jsx("span", { className:
|
|
1430
|
+
/* @__PURE__ */ t.jsx("span", { className: me.checkboxLabel, children: "No unit number" })
|
|
1432
1431
|
] }),
|
|
1433
|
-
_ && /* @__PURE__ */ t.jsx("p", { className:
|
|
1434
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
1432
|
+
_ && /* @__PURE__ */ t.jsx("p", { className: me.error, children: _ }),
|
|
1433
|
+
/* @__PURE__ */ t.jsx("div", { className: me.actions, children: /* @__PURE__ */ t.jsx(
|
|
1435
1434
|
"button",
|
|
1436
1435
|
{
|
|
1437
1436
|
type: "button",
|
|
1438
|
-
className:
|
|
1439
|
-
onClick:
|
|
1437
|
+
className: me.confirmButton,
|
|
1438
|
+
onClick: I,
|
|
1440
1439
|
children: "Confirm address"
|
|
1441
1440
|
}
|
|
1442
1441
|
) })
|
|
@@ -1447,9 +1446,9 @@ function an(e, r, a) {
|
|
|
1447
1446
|
return e.startsWith("http://") || e.startsWith("https://") ? `url-${encodeURIComponent(e)}(${r},${a})` : `${e}(${r},${a})`;
|
|
1448
1447
|
}
|
|
1449
1448
|
function sn(e, r) {
|
|
1450
|
-
const a = (r == null ? void 0 : r.mapboxAccessToken) ?? Qr, s = (r == null ? void 0 : r.mapPinMarker) ?? en, o = (r == null ? void 0 : r.width) ?? tn, i = (r == null ? void 0 : r.height) ?? rn, m = (r == null ? void 0 : r.zoom) ?? nn, [f,
|
|
1451
|
-
return
|
|
1452
|
-
|
|
1449
|
+
const a = (r == null ? void 0 : r.mapboxAccessToken) ?? Qr, s = (r == null ? void 0 : r.mapPinMarker) ?? en, o = (r == null ? void 0 : r.width) ?? tn, i = (r == null ? void 0 : r.height) ?? rn, m = (r == null ? void 0 : r.zoom) ?? nn, [f, u] = E(void 0), [l, c] = E("loading");
|
|
1450
|
+
return ce(() => {
|
|
1451
|
+
c("loading");
|
|
1453
1452
|
const p = [
|
|
1454
1453
|
e.street1,
|
|
1455
1454
|
e.city,
|
|
@@ -1457,26 +1456,26 @@ function sn(e, r) {
|
|
|
1457
1456
|
e.postalCode
|
|
1458
1457
|
].join(" ");
|
|
1459
1458
|
let _ = !1;
|
|
1460
|
-
async function
|
|
1461
|
-
var
|
|
1459
|
+
async function x() {
|
|
1460
|
+
var I, D;
|
|
1462
1461
|
try {
|
|
1463
|
-
const
|
|
1462
|
+
const B = `${Jr}/${encodeURIComponent(p)}.json?access_token=${a}&limit=1`, P = await fetch(B);
|
|
1464
1463
|
if (!P.ok || _) {
|
|
1465
|
-
_ ||
|
|
1464
|
+
_ || c("error");
|
|
1466
1465
|
return;
|
|
1467
1466
|
}
|
|
1468
|
-
const j = (
|
|
1467
|
+
const j = (D = (I = (await P.json()).features) == null ? void 0 : I[0]) == null ? void 0 : D.center;
|
|
1469
1468
|
if (!j || _) {
|
|
1470
|
-
_ ||
|
|
1469
|
+
_ || c("error");
|
|
1471
1470
|
return;
|
|
1472
1471
|
}
|
|
1473
|
-
const [
|
|
1474
|
-
_ ||
|
|
1472
|
+
const [ee, V] = j, ae = an(s, ee, V), Z = `${Xr}/${ae}/${ee},${V},${m}/${o}x${i}@2x?access_token=${a}&attribution=false&logo=false`;
|
|
1473
|
+
_ || u(Z);
|
|
1475
1474
|
} catch {
|
|
1476
|
-
_ ||
|
|
1475
|
+
_ || c("error");
|
|
1477
1476
|
}
|
|
1478
1477
|
}
|
|
1479
|
-
return
|
|
1478
|
+
return x(), () => {
|
|
1480
1479
|
_ = !0;
|
|
1481
1480
|
};
|
|
1482
1481
|
}, [
|
|
@@ -1489,14 +1488,14 @@ function sn(e, r) {
|
|
|
1489
1488
|
o,
|
|
1490
1489
|
i,
|
|
1491
1490
|
m
|
|
1492
|
-
]), { url: f, status:
|
|
1491
|
+
]), { url: f, status: l };
|
|
1493
1492
|
}
|
|
1494
1493
|
const on = "_container_1vap7_3", ln = "_mapImage_1vap7_13", cn = "_mapImageLoaded_1vap7_22", Ve = {
|
|
1495
1494
|
container: on,
|
|
1496
1495
|
mapImage: ln,
|
|
1497
1496
|
mapImageLoaded: cn
|
|
1498
1497
|
};
|
|
1499
|
-
function
|
|
1498
|
+
function Bo({
|
|
1500
1499
|
address: e,
|
|
1501
1500
|
appearance: r,
|
|
1502
1501
|
mapboxAccessToken: a,
|
|
@@ -1505,35 +1504,35 @@ function Mo({
|
|
|
1505
1504
|
height: i,
|
|
1506
1505
|
zoom: m,
|
|
1507
1506
|
borderRadius: f,
|
|
1508
|
-
onLoad:
|
|
1509
|
-
onError:
|
|
1507
|
+
onLoad: u,
|
|
1508
|
+
onError: l
|
|
1510
1509
|
}) {
|
|
1511
|
-
const
|
|
1510
|
+
const c = Pe(r), { url: p, status: _ } = sn(e, {
|
|
1512
1511
|
mapboxAccessToken: a,
|
|
1513
1512
|
mapPinMarker: s,
|
|
1514
1513
|
width: o,
|
|
1515
1514
|
height: i,
|
|
1516
1515
|
zoom: m
|
|
1517
|
-
}), [
|
|
1518
|
-
|
|
1519
|
-
const
|
|
1520
|
-
|
|
1516
|
+
}), [x, I] = E(!1), D = U(u);
|
|
1517
|
+
D.current = u;
|
|
1518
|
+
const B = U(l);
|
|
1519
|
+
B.current = l, ce(() => {
|
|
1521
1520
|
var j;
|
|
1522
|
-
_ === "error" && ((j =
|
|
1521
|
+
_ === "error" && ((j = B.current) == null || j.call(B, new Error("Failed to load map for address")));
|
|
1523
1522
|
}, [_]);
|
|
1524
1523
|
const P = () => {
|
|
1525
1524
|
var j;
|
|
1526
|
-
|
|
1527
|
-
},
|
|
1528
|
-
...
|
|
1525
|
+
I(!0), (j = D.current) == null || j.call(D);
|
|
1526
|
+
}, S = {
|
|
1527
|
+
...c,
|
|
1529
1528
|
...f ? { borderRadius: f } : {}
|
|
1530
1529
|
};
|
|
1531
|
-
return /* @__PURE__ */ t.jsx("div", { className: Ve.container, style:
|
|
1530
|
+
return /* @__PURE__ */ t.jsx("div", { className: Ve.container, style: S, children: p && /* @__PURE__ */ t.jsx(
|
|
1532
1531
|
"img",
|
|
1533
1532
|
{
|
|
1534
1533
|
src: p,
|
|
1535
1534
|
alt: "Map",
|
|
1536
|
-
className: `${Ve.mapImage} ${
|
|
1535
|
+
className: `${Ve.mapImage} ${x ? Ve.mapImageLoaded : ""}`.trim(),
|
|
1537
1536
|
onLoad: P
|
|
1538
1537
|
}
|
|
1539
1538
|
) });
|
|
@@ -1793,16 +1792,16 @@ class mn {
|
|
|
1793
1792
|
pruneAnswersForHiddenQuestions() {
|
|
1794
1793
|
const r = pt(this._allPages, this.getAnswer), a = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set();
|
|
1795
1794
|
for (const m of this._allPages) {
|
|
1796
|
-
for (const
|
|
1797
|
-
a.add(
|
|
1795
|
+
for (const l of m.questions)
|
|
1796
|
+
a.add(l.key);
|
|
1798
1797
|
if (this._skipPages.has(m.id)) {
|
|
1799
|
-
for (const
|
|
1800
|
-
s.add(
|
|
1798
|
+
for (const l of m.questions)
|
|
1799
|
+
s.add(l.key);
|
|
1801
1800
|
continue;
|
|
1802
1801
|
}
|
|
1803
|
-
if (r.some((
|
|
1804
|
-
for (const
|
|
1805
|
-
s.add(
|
|
1802
|
+
if (r.some((l) => l.id === m.id))
|
|
1803
|
+
for (const l of Ue(m, this.getAnswer))
|
|
1804
|
+
s.add(l.key);
|
|
1806
1805
|
}
|
|
1807
1806
|
let o = !1;
|
|
1808
1807
|
const i = {};
|
|
@@ -1830,7 +1829,7 @@ class mn {
|
|
|
1830
1829
|
}
|
|
1831
1830
|
}
|
|
1832
1831
|
const pn = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
|
1833
|
-
function
|
|
1832
|
+
function It(e) {
|
|
1834
1833
|
if (typeof e == "string" && !pn.test(e))
|
|
1835
1834
|
return "Please enter a valid email address";
|
|
1836
1835
|
}
|
|
@@ -2035,7 +2034,6 @@ const _n = {
|
|
|
2035
2034
|
}, bn = {
|
|
2036
2035
|
id: "ownership",
|
|
2037
2036
|
title: "Are you the owner of this home?",
|
|
2038
|
-
subtitle: "We have additional questions if you're an agent.",
|
|
2039
2037
|
questions: [
|
|
2040
2038
|
{
|
|
2041
2039
|
key: "seller.relation_to_owner",
|
|
@@ -2043,7 +2041,6 @@ const _n = {
|
|
|
2043
2041
|
type: "string",
|
|
2044
2042
|
style: "radio-card",
|
|
2045
2043
|
required: !0,
|
|
2046
|
-
autoAdvance: !0,
|
|
2047
2044
|
options: [
|
|
2048
2045
|
{ label: "Yes, I own this home", value: "self" },
|
|
2049
2046
|
{ label: "No, I'm an agent", value: "agent" },
|
|
@@ -2053,27 +2050,26 @@ const _n = {
|
|
|
2053
2050
|
},
|
|
2054
2051
|
{ label: "Other", value: "other" }
|
|
2055
2052
|
]
|
|
2056
|
-
}
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
showWhen: {
|
|
2062
|
-
field: "seller.relation_to_owner",
|
|
2063
|
-
op: "eq",
|
|
2064
|
-
value: "other"
|
|
2065
|
-
},
|
|
2066
|
-
questions: [
|
|
2053
|
+
},
|
|
2054
|
+
// Reception-fe shows a free-text follow-up inline when the seller picks
|
|
2055
|
+
// "Other"; mirror that here as a second question on the same page rather
|
|
2056
|
+
// than a separate conditional page. autoAdvance is dropped from the radio
|
|
2057
|
+
// above because it would fire before the seller could type the follow-up.
|
|
2067
2058
|
{
|
|
2068
2059
|
key: "seller.relation_to_owner.other",
|
|
2069
|
-
label: "
|
|
2060
|
+
label: "Describe your relationship to this home",
|
|
2070
2061
|
type: "string",
|
|
2071
2062
|
style: "input",
|
|
2072
2063
|
required: !0,
|
|
2073
|
-
placeholder: "e.g., executor of the estate"
|
|
2064
|
+
placeholder: "e.g., executor of the estate",
|
|
2065
|
+
showWhen: {
|
|
2066
|
+
field: "seller.relation_to_owner",
|
|
2067
|
+
op: "eq",
|
|
2068
|
+
value: "other"
|
|
2069
|
+
}
|
|
2074
2070
|
}
|
|
2075
2071
|
]
|
|
2076
|
-
},
|
|
2072
|
+
}, yn = {
|
|
2077
2073
|
id: "sale-timeline",
|
|
2078
2074
|
title: "When do you need to sell your home?",
|
|
2079
2075
|
subtitle: "This won't affect your offer. We're here to help with any timeline.",
|
|
@@ -2094,13 +2090,13 @@ const _n = {
|
|
|
2094
2090
|
]
|
|
2095
2091
|
}
|
|
2096
2092
|
]
|
|
2097
|
-
},
|
|
2093
|
+
}, vn = [
|
|
2098
2094
|
"fixer_upper",
|
|
2099
2095
|
"dated",
|
|
2100
2096
|
"standard",
|
|
2101
2097
|
"high_end",
|
|
2102
2098
|
"luxury"
|
|
2103
|
-
],
|
|
2099
|
+
], xn = {
|
|
2104
2100
|
kitchen: {
|
|
2105
2101
|
fixer_upper: "Kitchen needs significant repairs",
|
|
2106
2102
|
dated: "Kitchen hasn't been updated recently",
|
|
@@ -2129,7 +2125,7 @@ const _n = {
|
|
|
2129
2125
|
high_end: "Exterior has high-quality upgrades",
|
|
2130
2126
|
luxury: "Exterior has elegant, top-tier finishes"
|
|
2131
2127
|
}
|
|
2132
|
-
},
|
|
2128
|
+
}, Cn = {
|
|
2133
2129
|
fixer_upper: "Fixer upper",
|
|
2134
2130
|
dated: "Dated",
|
|
2135
2131
|
standard: "Standard",
|
|
@@ -2149,17 +2145,17 @@ function Oe(e, r, a) {
|
|
|
2149
2145
|
style: "image-card",
|
|
2150
2146
|
required: !0,
|
|
2151
2147
|
autoAdvance: !0,
|
|
2152
|
-
options:
|
|
2153
|
-
label:
|
|
2148
|
+
options: vn.map((s) => ({
|
|
2149
|
+
label: Cn[s],
|
|
2154
2150
|
value: s,
|
|
2155
|
-
description:
|
|
2151
|
+
description: xn[e][s],
|
|
2156
2152
|
imageId: `${e}-${s}`
|
|
2157
2153
|
}))
|
|
2158
2154
|
}
|
|
2159
2155
|
]
|
|
2160
2156
|
};
|
|
2161
2157
|
}
|
|
2162
|
-
const
|
|
2158
|
+
const wn = Oe("kitchen", "home.kitchen_seller_score", "How would you describe your kitchen?"), kn = Oe("bathroom", "home.bathroom_seller_score", "How would you describe your main bathroom?"), jn = Oe("living-room", "home.living_room_seller_score", "How would you describe your living room?"), Nn = Oe("exterior", "home.exterior_seller_score", "How would you describe your home's exterior?"), Sn = {
|
|
2163
2159
|
id: "hoa",
|
|
2164
2160
|
title: "Is your home part of a homeowners association?",
|
|
2165
2161
|
subtitle: "This is often called an HOA. It's a group that helps maintain your community for a fee.",
|
|
@@ -2177,7 +2173,7 @@ const kn = Oe("kitchen", "home.kitchen_seller_score", "How would you describe yo
|
|
|
2177
2173
|
]
|
|
2178
2174
|
}
|
|
2179
2175
|
]
|
|
2180
|
-
},
|
|
2176
|
+
}, In = {
|
|
2181
2177
|
id: "hoa-type",
|
|
2182
2178
|
title: "Does your home belong to any of these types of communities?",
|
|
2183
2179
|
showWhen: { field: "home.hoa", op: "eq", value: "yes" },
|
|
@@ -2198,7 +2194,7 @@ const kn = Oe("kitchen", "home.kitchen_seller_score", "How would you describe yo
|
|
|
2198
2194
|
]
|
|
2199
2195
|
}
|
|
2200
2196
|
]
|
|
2201
|
-
},
|
|
2197
|
+
}, En = {
|
|
2202
2198
|
id: "hoa-guard",
|
|
2203
2199
|
title: "Is there a guard at the entrance?",
|
|
2204
2200
|
showWhen: {
|
|
@@ -2221,7 +2217,7 @@ const kn = Oe("kitchen", "home.kitchen_seller_score", "How would you describe yo
|
|
|
2221
2217
|
]
|
|
2222
2218
|
}
|
|
2223
2219
|
]
|
|
2224
|
-
},
|
|
2220
|
+
}, Pn = {
|
|
2225
2221
|
id: "hoa-fees",
|
|
2226
2222
|
title: "What are your monthly HOA fees?",
|
|
2227
2223
|
subtitle: "(Optional) This helps us better understand your property's monthly expenses.",
|
|
@@ -2236,7 +2232,7 @@ const kn = Oe("kitchen", "home.kitchen_seller_score", "How would you describe yo
|
|
|
2236
2232
|
min: 0
|
|
2237
2233
|
}
|
|
2238
2234
|
]
|
|
2239
|
-
},
|
|
2235
|
+
}, Ln = {
|
|
2240
2236
|
id: "eligibility-criteria",
|
|
2241
2237
|
title: "Do any of these apply to your home?",
|
|
2242
2238
|
subtitle: "Select all that apply. We keep an eye out for these things when making an offer.",
|
|
@@ -2291,7 +2287,7 @@ const kn = Oe("kitchen", "home.kitchen_seller_score", "How would you describe yo
|
|
|
2291
2287
|
]
|
|
2292
2288
|
}
|
|
2293
2289
|
]
|
|
2294
|
-
},
|
|
2290
|
+
}, Tn = {
|
|
2295
2291
|
id: "upgrades",
|
|
2296
2292
|
title: "Has your home had any upgrades?",
|
|
2297
2293
|
subtitle: "This includes renovations, remodels, or major improvements.",
|
|
@@ -2309,7 +2305,7 @@ const kn = Oe("kitchen", "home.kitchen_seller_score", "How would you describe yo
|
|
|
2309
2305
|
]
|
|
2310
2306
|
}
|
|
2311
2307
|
]
|
|
2312
|
-
},
|
|
2308
|
+
}, An = {
|
|
2313
2309
|
id: "homebuilder",
|
|
2314
2310
|
title: "Are you working with a homebuilder?",
|
|
2315
2311
|
subtitle: "We can work with them to line up your close dates.",
|
|
@@ -2327,7 +2323,7 @@ const kn = Oe("kitchen", "home.kitchen_seller_score", "How would you describe yo
|
|
|
2327
2323
|
]
|
|
2328
2324
|
}
|
|
2329
2325
|
]
|
|
2330
|
-
},
|
|
2326
|
+
}, Dn = {
|
|
2331
2327
|
id: "homebuilder-name",
|
|
2332
2328
|
title: "Which homebuilder are you working with?",
|
|
2333
2329
|
showWhen: {
|
|
@@ -2346,7 +2342,7 @@ const kn = Oe("kitchen", "home.kitchen_seller_score", "How would you describe yo
|
|
|
2346
2342
|
placeholder: "Select or search..."
|
|
2347
2343
|
}
|
|
2348
2344
|
]
|
|
2349
|
-
},
|
|
2345
|
+
}, On = {
|
|
2350
2346
|
id: "homebuilder-details",
|
|
2351
2347
|
title: "Please tell us more about your homebuilder",
|
|
2352
2348
|
showWhen: {
|
|
@@ -2362,7 +2358,7 @@ const kn = Oe("kitchen", "home.kitchen_seller_score", "How would you describe yo
|
|
|
2362
2358
|
style: "email",
|
|
2363
2359
|
required: !1,
|
|
2364
2360
|
placeholder: "you@example.com",
|
|
2365
|
-
validate:
|
|
2361
|
+
validate: It
|
|
2366
2362
|
},
|
|
2367
2363
|
{
|
|
2368
2364
|
key: "seller.home_builder_community",
|
|
@@ -2373,7 +2369,7 @@ const kn = Oe("kitchen", "home.kitchen_seller_score", "How would you describe yo
|
|
|
2373
2369
|
placeholder: "Community name"
|
|
2374
2370
|
}
|
|
2375
2371
|
]
|
|
2376
|
-
},
|
|
2372
|
+
}, Rn = {
|
|
2377
2373
|
id: "contact-info",
|
|
2378
2374
|
title: "You're one step from your offer.",
|
|
2379
2375
|
subtitle: "Create a free account to see your offer. No commitment to sell — just your number, email, and name.",
|
|
@@ -2394,7 +2390,7 @@ const kn = Oe("kitchen", "home.kitchen_seller_score", "How would you describe yo
|
|
|
2394
2390
|
style: "email",
|
|
2395
2391
|
required: !0,
|
|
2396
2392
|
placeholder: "you@example.com",
|
|
2397
|
-
validate:
|
|
2393
|
+
validate: It
|
|
2398
2394
|
},
|
|
2399
2395
|
{
|
|
2400
2396
|
key: "seller.phone_number",
|
|
@@ -2413,16 +2409,16 @@ const kn = Oe("kitchen", "home.kitchen_seller_score", "How would you describe yo
|
|
|
2413
2409
|
required: !1
|
|
2414
2410
|
}
|
|
2415
2411
|
]
|
|
2416
|
-
},
|
|
2412
|
+
}, Bn = [
|
|
2417
2413
|
_n,
|
|
2418
2414
|
bn,
|
|
2419
2415
|
yn,
|
|
2420
|
-
|
|
2416
|
+
wn,
|
|
2421
2417
|
kn,
|
|
2422
2418
|
jn,
|
|
2423
2419
|
Nn,
|
|
2424
|
-
In,
|
|
2425
2420
|
Sn,
|
|
2421
|
+
In,
|
|
2426
2422
|
En,
|
|
2427
2423
|
Pn,
|
|
2428
2424
|
Ln,
|
|
@@ -2430,14 +2426,13 @@ const kn = Oe("kitchen", "home.kitchen_seller_score", "How would you describe yo
|
|
|
2430
2426
|
An,
|
|
2431
2427
|
Dn,
|
|
2432
2428
|
On,
|
|
2433
|
-
Rn
|
|
2434
|
-
Bn
|
|
2429
|
+
Rn
|
|
2435
2430
|
];
|
|
2436
2431
|
function _t(e) {
|
|
2437
|
-
return new mn(
|
|
2432
|
+
return new mn(Bn, e);
|
|
2438
2433
|
}
|
|
2439
2434
|
const Et = Ye(null);
|
|
2440
|
-
function
|
|
2435
|
+
function pe() {
|
|
2441
2436
|
const e = De(Et);
|
|
2442
2437
|
if (!e)
|
|
2443
2438
|
throw new Error(
|
|
@@ -2445,192 +2440,201 @@ function fe() {
|
|
|
2445
2440
|
);
|
|
2446
2441
|
return e;
|
|
2447
2442
|
}
|
|
2448
|
-
const
|
|
2443
|
+
const Mn = ({
|
|
2449
2444
|
initialAnswers: e,
|
|
2450
2445
|
skipPages: r,
|
|
2451
2446
|
smsConsentText: a,
|
|
2452
2447
|
contactConsentText: s,
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2448
|
+
submitLabel: o,
|
|
2449
|
+
contactPageTitle: i,
|
|
2450
|
+
contactPageSubtitle: m,
|
|
2451
|
+
onSubmit: f,
|
|
2452
|
+
onPageChange: u,
|
|
2453
|
+
onAnswerChange: l,
|
|
2454
|
+
onReady: c,
|
|
2455
|
+
onError: p,
|
|
2456
|
+
children: _
|
|
2459
2457
|
}) => {
|
|
2460
|
-
var
|
|
2461
|
-
const
|
|
2462
|
-
|
|
2463
|
-
const
|
|
2464
|
-
|
|
2465
|
-
const
|
|
2466
|
-
|
|
2467
|
-
const
|
|
2468
|
-
|
|
2469
|
-
const
|
|
2470
|
-
|
|
2471
|
-
const [
|
|
2458
|
+
var fe;
|
|
2459
|
+
const x = U(f);
|
|
2460
|
+
x.current = f;
|
|
2461
|
+
const I = U(u);
|
|
2462
|
+
I.current = u;
|
|
2463
|
+
const D = U(l);
|
|
2464
|
+
D.current = l;
|
|
2465
|
+
const B = U(c);
|
|
2466
|
+
B.current = c;
|
|
2467
|
+
const P = U(p);
|
|
2468
|
+
P.current = p;
|
|
2469
|
+
const [S, j] = E(
|
|
2472
2470
|
() => _t({ initialAnswers: e, skipPages: r })
|
|
2473
|
-
),
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
}, [
|
|
2477
|
-
const [
|
|
2478
|
-
|
|
2479
|
-
), [
|
|
2480
|
-
((
|
|
2481
|
-
), [
|
|
2482
|
-
|
|
2471
|
+
), ee = (r ?? []).join("|"), V = U(ee);
|
|
2472
|
+
ce(() => {
|
|
2473
|
+
ee !== V.current && (V.current = ee, j(_t({ initialAnswers: e, skipPages: r })));
|
|
2474
|
+
}, [ee]);
|
|
2475
|
+
const [ae, Z] = E(
|
|
2476
|
+
S.answers
|
|
2477
|
+
), [L, se] = E(
|
|
2478
|
+
((fe = S.currentPage) == null ? void 0 : fe.id) ?? ""
|
|
2479
|
+
), [K, ie] = E({}), [Y, z] = E(
|
|
2480
|
+
S.visiblePages
|
|
2483
2481
|
);
|
|
2484
|
-
|
|
2485
|
-
var
|
|
2486
|
-
const
|
|
2487
|
-
|
|
2488
|
-
var
|
|
2489
|
-
|
|
2482
|
+
ce(() => {
|
|
2483
|
+
var oe;
|
|
2484
|
+
const G = [
|
|
2485
|
+
S.on("answerChange", (M) => {
|
|
2486
|
+
var le;
|
|
2487
|
+
Z(S.answers), z([...S.visiblePages]), M.type === "answerChange" && ((le = D.current) == null || le.call(D, M.key, M.value));
|
|
2490
2488
|
}),
|
|
2491
|
-
|
|
2492
|
-
var
|
|
2493
|
-
|
|
2489
|
+
S.on("pageChange", (M) => {
|
|
2490
|
+
var le;
|
|
2491
|
+
M.type === "pageChange" && (se(M.pageId), z([...S.visiblePages]), ie({}), (le = I.current) == null || le.call(I, M.pageIndex, M.pageId));
|
|
2494
2492
|
}),
|
|
2495
|
-
|
|
2496
|
-
|
|
2493
|
+
S.on("validationError", (M) => {
|
|
2494
|
+
M.type === "validationError" && ie(M.errors);
|
|
2497
2495
|
}),
|
|
2498
|
-
|
|
2499
|
-
|
|
2496
|
+
S.on("submit", (M) => {
|
|
2497
|
+
M.type === "submit" && x.current(M.answers);
|
|
2500
2498
|
})
|
|
2501
2499
|
];
|
|
2502
|
-
return (
|
|
2503
|
-
|
|
2500
|
+
return (oe = B.current) == null || oe.call(B), () => {
|
|
2501
|
+
G.forEach((M) => M()), S.destroy();
|
|
2504
2502
|
};
|
|
2505
|
-
}, [
|
|
2506
|
-
const
|
|
2507
|
-
|
|
2508
|
-
e && e !==
|
|
2509
|
-
}, [e,
|
|
2510
|
-
const
|
|
2511
|
-
const
|
|
2512
|
-
return
|
|
2513
|
-
}, [
|
|
2503
|
+
}, [S]);
|
|
2504
|
+
const q = U(e);
|
|
2505
|
+
ce(() => {
|
|
2506
|
+
e && e !== q.current && (q.current = e, S.setAnswers(e));
|
|
2507
|
+
}, [e, S]);
|
|
2508
|
+
const J = Ie(() => {
|
|
2509
|
+
const G = Y.findIndex((oe) => oe.id === L);
|
|
2510
|
+
return G >= 0 ? G : 0;
|
|
2511
|
+
}, [Y, L]), ue = Y[J], y = Ie(() => L ? S.getVisibleQuestionsForCurrentPage() : [], [S, L, ae]), k = Ie(() => Y.length <= 1 ? 0 : Math.min(
|
|
2514
2512
|
1,
|
|
2515
|
-
Math.max(0,
|
|
2516
|
-
), [
|
|
2513
|
+
Math.max(0, J / (Y.length - 1))
|
|
2514
|
+
), [J, Y.length]), C = Ie(
|
|
2517
2515
|
() => ({
|
|
2518
|
-
engine:
|
|
2519
|
-
currentPage:
|
|
2520
|
-
currentPageIndex:
|
|
2521
|
-
visiblePages:
|
|
2522
|
-
visibleQuestions:
|
|
2523
|
-
answers:
|
|
2524
|
-
validationErrors:
|
|
2525
|
-
progress:
|
|
2526
|
-
isFirstPage:
|
|
2516
|
+
engine: S,
|
|
2517
|
+
currentPage: ue,
|
|
2518
|
+
currentPageIndex: J,
|
|
2519
|
+
visiblePages: Y,
|
|
2520
|
+
visibleQuestions: y,
|
|
2521
|
+
answers: ae,
|
|
2522
|
+
validationErrors: K,
|
|
2523
|
+
progress: k,
|
|
2524
|
+
isFirstPage: J === 0,
|
|
2527
2525
|
contactConsentText: s,
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2526
|
+
submitLabel: o,
|
|
2527
|
+
contactPageTitle: i,
|
|
2528
|
+
contactPageSubtitle: m,
|
|
2529
|
+
isLastPage: Y.length > 0 && J === Y.length - 1,
|
|
2530
|
+
setAnswer: (G, oe) => S.setAnswer(G, oe),
|
|
2531
|
+
getAnswer: S.getAnswer,
|
|
2531
2532
|
goToNext: () => {
|
|
2532
|
-
var
|
|
2533
|
-
const
|
|
2534
|
-
if (!
|
|
2533
|
+
var oe;
|
|
2534
|
+
const G = S.goToNext();
|
|
2535
|
+
if (!G.valid)
|
|
2535
2536
|
try {
|
|
2536
|
-
(
|
|
2537
|
-
|
|
2537
|
+
(oe = P.current) == null || oe.call(
|
|
2538
|
+
P,
|
|
2538
2539
|
new Error(
|
|
2539
|
-
`Validation failed: ${Object.values(
|
|
2540
|
+
`Validation failed: ${Object.values(G.errors).join(", ")}`
|
|
2540
2541
|
)
|
|
2541
2542
|
);
|
|
2542
|
-
} catch (
|
|
2543
|
-
console.error("[DtcOnboardingFlow] onError callback threw:",
|
|
2543
|
+
} catch (M) {
|
|
2544
|
+
console.error("[DtcOnboardingFlow] onError callback threw:", M);
|
|
2544
2545
|
}
|
|
2545
2546
|
},
|
|
2546
|
-
goToPrev: () =>
|
|
2547
|
+
goToPrev: () => S.goToPrev(),
|
|
2547
2548
|
smsConsentText: a
|
|
2548
2549
|
}),
|
|
2549
2550
|
[
|
|
2550
|
-
|
|
2551
|
+
S,
|
|
2552
|
+
ue,
|
|
2553
|
+
J,
|
|
2554
|
+
Y,
|
|
2555
|
+
y,
|
|
2556
|
+
ae,
|
|
2551
2557
|
K,
|
|
2552
|
-
|
|
2553
|
-
$,
|
|
2554
|
-
q,
|
|
2555
|
-
j,
|
|
2556
|
-
U,
|
|
2557
|
-
ie,
|
|
2558
|
+
k,
|
|
2558
2559
|
a,
|
|
2559
|
-
s
|
|
2560
|
+
s,
|
|
2561
|
+
o,
|
|
2562
|
+
i,
|
|
2563
|
+
m
|
|
2560
2564
|
]
|
|
2561
2565
|
);
|
|
2562
|
-
return /* @__PURE__ */ t.jsx(Et.Provider, { value:
|
|
2563
|
-
},
|
|
2564
|
-
container:
|
|
2565
|
-
header:
|
|
2566
|
-
headerLogos:
|
|
2567
|
-
headerPartnerLogo:
|
|
2568
|
-
headerOpendoorLogo:
|
|
2569
|
-
headerCloseButton:
|
|
2570
|
-
layout:
|
|
2571
|
-
layoutScrollable:
|
|
2572
|
-
addressBar:
|
|
2573
|
-
addressIcon:
|
|
2574
|
-
addressText:
|
|
2575
|
-
contentSplit:
|
|
2576
|
-
contentLeft:
|
|
2577
|
-
contentRight:
|
|
2578
|
-
pageTitle:
|
|
2579
|
-
pageSubtitle:
|
|
2580
|
-
pageContent:
|
|
2581
|
-
navigation:
|
|
2582
|
-
navigationButtons:
|
|
2583
|
-
backButton:
|
|
2584
|
-
nextButton:
|
|
2585
|
-
progressBar:
|
|
2586
|
-
progressBarFill:
|
|
2587
|
-
radioCardGroup:
|
|
2588
|
-
radioCard:
|
|
2589
|
-
radioCardSelected:
|
|
2590
|
-
radioCardLabel:
|
|
2591
|
-
radioCardDescription:
|
|
2592
|
-
imageCardGroup:
|
|
2593
|
-
imageCard:
|
|
2594
|
-
imageCardSelected:
|
|
2595
|
-
imageCardPhoto:
|
|
2596
|
-
imageCardLabel:
|
|
2597
|
-
imageCardDescription:
|
|
2598
|
-
fieldGroup:
|
|
2599
|
-
fieldLabel:
|
|
2600
|
-
fieldDescription:
|
|
2601
|
-
fieldSelect:
|
|
2602
|
-
fieldSelectError:
|
|
2603
|
-
fieldInputWrapper:
|
|
2604
|
-
fieldInput:
|
|
2605
|
-
fieldInputError:
|
|
2566
|
+
return /* @__PURE__ */ t.jsx(Et.Provider, { value: C, children: _ });
|
|
2567
|
+
}, Fn = "_container_uharh_7", $n = "_header_uharh_20", Wn = "_headerLogos_uharh_30", Hn = "_headerPartnerLogo_uharh_36", Vn = "_headerOpendoorLogo_uharh_42", qn = "_headerCloseButton_uharh_46", Gn = "_layout_uharh_71", Un = "_layoutScrollable_uharh_78", Yn = "_addressBar_uharh_94", Zn = "_addressIcon_uharh_102", Kn = "_addressText_uharh_106", zn = "_contentSplit_uharh_112", Jn = "_contentLeft_uharh_126", Xn = "_contentRight_uharh_132", Qn = "_pageTitle_uharh_148", ea = "_pageSubtitle_uharh_156", ta = "_pageContent_uharh_165", ra = "_navigation_uharh_173", na = "_navigationButtons_uharh_187", aa = "_backButton_uharh_193", sa = "_nextButton_uharh_216", oa = "_progressBar_uharh_242", ia = "_progressBarFill_uharh_249", la = "_radioCardGroup_uharh_257", ca = "_radioCard_uharh_257", ua = "_radioCardSelected_uharh_289", da = "_radioCardLabel_uharh_294", ha = "_radioCardDescription_uharh_300", fa = "_imageCardGroup_uharh_307", ma = "_imageCard_uharh_307", pa = "_imageCardSelected_uharh_339", ga = "_imageCardPhoto_uharh_344", _a = "_imageCardLabel_uharh_351", ba = "_imageCardDescription_uharh_358", ya = "_fieldGroup_uharh_367", va = "_fieldLabel_uharh_373", xa = "_fieldDescription_uharh_380", Ca = "_fieldSelect_uharh_387", wa = "_fieldSelectError_uharh_413", ka = "_fieldInputWrapper_uharh_417", ja = "_fieldInput_uharh_417", Na = "_fieldInputError_uharh_455", Sa = "_fieldSuffix_uharh_459", Ia = "_fieldError_uharh_470", Ea = "_checkboxCardGroup_uharh_479", Pa = "_checkboxCard_uharh_479", La = "_checkboxCardSelected_uharh_511", Ta = "_checkboxCardContent_uharh_516", Aa = "_checkboxCardLabel_uharh_523", Da = "_checkboxCardHelper_uharh_529", Oa = "_checkboxIndicator_uharh_534", Ra = "_checkboxIndicatorChecked_uharh_546", Ba = "_currencyWrapper_uharh_554", Ma = "_currencyPrefix_uharh_560", Fa = "_currencyInput_uharh_569", $a = "_consentText_uharh_589", Wa = "_consentLink_uharh_597", Ha = "_ctaButton_uharh_602", Va = "_toggleGroup_uharh_634", qa = "_toggleLabel_uharh_638", Ga = "_toggleCheckbox_uharh_646", Ua = "_toggleText_uharh_655", Ya = "_searchableDropdown_uharh_663", Za = "_searchableDropdownToggle_uharh_673", Ka = "_searchableDropdownList_uharh_686", za = "_searchableDropdownOption_uharh_695", Ja = "_searchableDropdownOptionSelected_uharh_713", Xa = "_searchableDropdownOptionHighlighted_uharh_718", Qa = "_searchableDropdownEmpty_uharh_722", d = {
|
|
2568
|
+
container: Fn,
|
|
2569
|
+
header: $n,
|
|
2570
|
+
headerLogos: Wn,
|
|
2571
|
+
headerPartnerLogo: Hn,
|
|
2572
|
+
headerOpendoorLogo: Vn,
|
|
2573
|
+
headerCloseButton: qn,
|
|
2574
|
+
layout: Gn,
|
|
2575
|
+
layoutScrollable: Un,
|
|
2576
|
+
addressBar: Yn,
|
|
2577
|
+
addressIcon: Zn,
|
|
2578
|
+
addressText: Kn,
|
|
2579
|
+
contentSplit: zn,
|
|
2580
|
+
contentLeft: Jn,
|
|
2581
|
+
contentRight: Xn,
|
|
2582
|
+
pageTitle: Qn,
|
|
2583
|
+
pageSubtitle: ea,
|
|
2584
|
+
pageContent: ta,
|
|
2585
|
+
navigation: ra,
|
|
2586
|
+
navigationButtons: na,
|
|
2587
|
+
backButton: aa,
|
|
2588
|
+
nextButton: sa,
|
|
2589
|
+
progressBar: oa,
|
|
2590
|
+
progressBarFill: ia,
|
|
2591
|
+
radioCardGroup: la,
|
|
2592
|
+
radioCard: ca,
|
|
2593
|
+
radioCardSelected: ua,
|
|
2594
|
+
radioCardLabel: da,
|
|
2595
|
+
radioCardDescription: ha,
|
|
2596
|
+
imageCardGroup: fa,
|
|
2597
|
+
imageCard: ma,
|
|
2598
|
+
imageCardSelected: pa,
|
|
2599
|
+
imageCardPhoto: ga,
|
|
2600
|
+
imageCardLabel: _a,
|
|
2601
|
+
imageCardDescription: ba,
|
|
2602
|
+
fieldGroup: ya,
|
|
2603
|
+
fieldLabel: va,
|
|
2604
|
+
fieldDescription: xa,
|
|
2605
|
+
fieldSelect: Ca,
|
|
2606
|
+
fieldSelectError: wa,
|
|
2607
|
+
fieldInputWrapper: ka,
|
|
2608
|
+
fieldInput: ja,
|
|
2609
|
+
fieldInputError: Na,
|
|
2606
2610
|
fieldSuffix: Sa,
|
|
2607
|
-
fieldError:
|
|
2608
|
-
checkboxCardGroup:
|
|
2609
|
-
checkboxCard:
|
|
2610
|
-
checkboxCardSelected:
|
|
2611
|
-
checkboxCardContent:
|
|
2612
|
-
checkboxCardLabel:
|
|
2613
|
-
checkboxCardHelper:
|
|
2614
|
-
checkboxIndicator:
|
|
2615
|
-
checkboxIndicatorChecked:
|
|
2616
|
-
currencyWrapper:
|
|
2617
|
-
currencyPrefix:
|
|
2618
|
-
currencyInput:
|
|
2619
|
-
consentText:
|
|
2620
|
-
consentLink:
|
|
2621
|
-
ctaButton:
|
|
2622
|
-
toggleGroup:
|
|
2623
|
-
toggleLabel:
|
|
2624
|
-
toggleCheckbox:
|
|
2625
|
-
toggleText:
|
|
2626
|
-
searchableDropdown:
|
|
2627
|
-
searchableDropdownToggle:
|
|
2628
|
-
searchableDropdownList:
|
|
2629
|
-
searchableDropdownOption:
|
|
2630
|
-
searchableDropdownOptionSelected:
|
|
2631
|
-
searchableDropdownOptionHighlighted:
|
|
2632
|
-
searchableDropdownEmpty:
|
|
2633
|
-
},
|
|
2611
|
+
fieldError: Ia,
|
|
2612
|
+
checkboxCardGroup: Ea,
|
|
2613
|
+
checkboxCard: Pa,
|
|
2614
|
+
checkboxCardSelected: La,
|
|
2615
|
+
checkboxCardContent: Ta,
|
|
2616
|
+
checkboxCardLabel: Aa,
|
|
2617
|
+
checkboxCardHelper: Da,
|
|
2618
|
+
checkboxIndicator: Oa,
|
|
2619
|
+
checkboxIndicatorChecked: Ra,
|
|
2620
|
+
currencyWrapper: Ba,
|
|
2621
|
+
currencyPrefix: Ma,
|
|
2622
|
+
currencyInput: Fa,
|
|
2623
|
+
consentText: $a,
|
|
2624
|
+
consentLink: Wa,
|
|
2625
|
+
ctaButton: Ha,
|
|
2626
|
+
toggleGroup: Va,
|
|
2627
|
+
toggleLabel: qa,
|
|
2628
|
+
toggleCheckbox: Ga,
|
|
2629
|
+
toggleText: Ua,
|
|
2630
|
+
searchableDropdown: Ya,
|
|
2631
|
+
searchableDropdownToggle: Za,
|
|
2632
|
+
searchableDropdownList: Ka,
|
|
2633
|
+
searchableDropdownOption: za,
|
|
2634
|
+
searchableDropdownOptionSelected: Ja,
|
|
2635
|
+
searchableDropdownOptionHighlighted: Xa,
|
|
2636
|
+
searchableDropdownEmpty: Qa
|
|
2637
|
+
}, es = () => /* @__PURE__ */ t.jsx(
|
|
2634
2638
|
"svg",
|
|
2635
2639
|
{
|
|
2636
2640
|
width: "90",
|
|
@@ -2640,7 +2644,7 @@ const Fn = ({
|
|
|
2640
2644
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2641
2645
|
"aria-label": "Opendoor",
|
|
2642
2646
|
role: "img",
|
|
2643
|
-
className:
|
|
2647
|
+
className: d.headerOpendoorLogo,
|
|
2644
2648
|
children: /* @__PURE__ */ t.jsx(
|
|
2645
2649
|
"path",
|
|
2646
2650
|
{
|
|
@@ -2649,26 +2653,26 @@ const Fn = ({
|
|
|
2649
2653
|
}
|
|
2650
2654
|
)
|
|
2651
2655
|
}
|
|
2652
|
-
),
|
|
2656
|
+
), ts = ({
|
|
2653
2657
|
partnerLogoUrl: e,
|
|
2654
2658
|
onClose: r
|
|
2655
|
-
}) => /* @__PURE__ */ t.jsxs("header", { className:
|
|
2656
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
2659
|
+
}) => /* @__PURE__ */ t.jsxs("header", { className: d.header, children: [
|
|
2660
|
+
/* @__PURE__ */ t.jsxs("div", { className: d.headerLogos, children: [
|
|
2657
2661
|
e && /* @__PURE__ */ t.jsx(
|
|
2658
2662
|
"img",
|
|
2659
2663
|
{
|
|
2660
2664
|
src: e,
|
|
2661
2665
|
alt: "Partner",
|
|
2662
|
-
className:
|
|
2666
|
+
className: d.headerPartnerLogo
|
|
2663
2667
|
}
|
|
2664
2668
|
),
|
|
2665
|
-
/* @__PURE__ */ t.jsx(
|
|
2669
|
+
/* @__PURE__ */ t.jsx(es, {})
|
|
2666
2670
|
] }),
|
|
2667
2671
|
r && /* @__PURE__ */ t.jsx(
|
|
2668
2672
|
"button",
|
|
2669
2673
|
{
|
|
2670
2674
|
type: "button",
|
|
2671
|
-
className:
|
|
2675
|
+
className: d.headerCloseButton,
|
|
2672
2676
|
onClick: r,
|
|
2673
2677
|
"aria-label": "Close",
|
|
2674
2678
|
children: /* @__PURE__ */ t.jsxs(
|
|
@@ -2690,12 +2694,12 @@ const Fn = ({
|
|
|
2690
2694
|
)
|
|
2691
2695
|
}
|
|
2692
2696
|
)
|
|
2693
|
-
] }),
|
|
2697
|
+
] }), rs = ({ progress: e }) => {
|
|
2694
2698
|
const r = Math.min(100, Math.max(0, e * 100));
|
|
2695
2699
|
return /* @__PURE__ */ t.jsx(
|
|
2696
2700
|
"div",
|
|
2697
2701
|
{
|
|
2698
|
-
className:
|
|
2702
|
+
className: d.progressBar,
|
|
2699
2703
|
role: "progressbar",
|
|
2700
2704
|
"aria-valuenow": r,
|
|
2701
2705
|
"aria-valuemin": 0,
|
|
@@ -2703,24 +2707,24 @@ const Fn = ({
|
|
|
2703
2707
|
children: /* @__PURE__ */ t.jsx(
|
|
2704
2708
|
"div",
|
|
2705
2709
|
{
|
|
2706
|
-
className:
|
|
2710
|
+
className: d.progressBarFill,
|
|
2707
2711
|
style: { width: `${r}%` }
|
|
2708
2712
|
}
|
|
2709
2713
|
)
|
|
2710
2714
|
}
|
|
2711
2715
|
);
|
|
2712
|
-
},
|
|
2713
|
-
const { isFirstPage: e, currentPage: r, progress: a, goToNext: s, goToPrev: o } =
|
|
2716
|
+
}, ns = () => {
|
|
2717
|
+
const { isFirstPage: e, currentPage: r, progress: a, goToNext: s, goToPrev: o } = pe();
|
|
2714
2718
|
if ((r == null ? void 0 : r.id) === "contact-info") return null;
|
|
2715
2719
|
const i = (r == null ? void 0 : r.submitLabel) ?? "Next";
|
|
2716
|
-
return /* @__PURE__ */ t.jsxs("nav", { className:
|
|
2717
|
-
/* @__PURE__ */ t.jsx(
|
|
2718
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
2720
|
+
return /* @__PURE__ */ t.jsxs("nav", { className: d.navigation, "aria-label": "Page navigation", children: [
|
|
2721
|
+
/* @__PURE__ */ t.jsx(rs, { progress: a }),
|
|
2722
|
+
/* @__PURE__ */ t.jsxs("div", { className: d.navigationButtons, children: [
|
|
2719
2723
|
e ? /* @__PURE__ */ t.jsx("div", {}) : /* @__PURE__ */ t.jsx(
|
|
2720
2724
|
"button",
|
|
2721
2725
|
{
|
|
2722
2726
|
type: "button",
|
|
2723
|
-
className:
|
|
2727
|
+
className: d.backButton,
|
|
2724
2728
|
onClick: o,
|
|
2725
2729
|
"aria-label": "Go back",
|
|
2726
2730
|
children: /* @__PURE__ */ t.jsx(
|
|
@@ -2739,193 +2743,193 @@ const Fn = ({
|
|
|
2739
2743
|
)
|
|
2740
2744
|
}
|
|
2741
2745
|
),
|
|
2742
|
-
/* @__PURE__ */ t.jsx("button", { type: "button", className:
|
|
2746
|
+
/* @__PURE__ */ t.jsx("button", { type: "button", className: d.nextButton, onClick: s, children: i })
|
|
2743
2747
|
] })
|
|
2744
2748
|
] });
|
|
2745
|
-
},
|
|
2746
|
-
var
|
|
2747
|
-
const { getAnswer: r, setAnswer: a, goToNext: s, validationErrors: o } =
|
|
2748
|
-
|
|
2749
|
+
}, as = ({ question: e }) => {
|
|
2750
|
+
var c;
|
|
2751
|
+
const { getAnswer: r, setAnswer: a, goToNext: s, validationErrors: o } = pe(), i = r(e.key), m = o[e.key], f = U(null);
|
|
2752
|
+
ce(() => () => {
|
|
2749
2753
|
f.current && clearTimeout(f.current);
|
|
2750
2754
|
}, []);
|
|
2751
|
-
const
|
|
2755
|
+
const u = Ee(
|
|
2752
2756
|
(p) => {
|
|
2753
2757
|
a(e.key, p), e.autoAdvance && (f.current && clearTimeout(f.current), f.current = setTimeout(() => s(), 150));
|
|
2754
2758
|
},
|
|
2755
2759
|
[e.key, e.autoAdvance, a, s]
|
|
2756
|
-
),
|
|
2760
|
+
), l = Ee(
|
|
2757
2761
|
(p, _) => {
|
|
2758
|
-
var
|
|
2759
|
-
const
|
|
2760
|
-
if (!
|
|
2761
|
-
let
|
|
2762
|
-
if (p.key === "ArrowDown" || p.key === "ArrowRight" ? (p.preventDefault(),
|
|
2763
|
-
const P = (
|
|
2764
|
-
(
|
|
2762
|
+
var D, B;
|
|
2763
|
+
const x = e.options;
|
|
2764
|
+
if (!x) return;
|
|
2765
|
+
let I = null;
|
|
2766
|
+
if (p.key === "ArrowDown" || p.key === "ArrowRight" ? (p.preventDefault(), I = (_ + 1) % x.length) : (p.key === "ArrowUp" || p.key === "ArrowLeft") && (p.preventDefault(), I = (_ - 1 + x.length) % x.length), I !== null) {
|
|
2767
|
+
const P = (D = p.currentTarget.closest('[role="radiogroup"]')) == null ? void 0 : D.querySelectorAll('[role="radio"]');
|
|
2768
|
+
(B = P == null ? void 0 : P[I]) == null || B.focus(), u(x[I].value);
|
|
2765
2769
|
}
|
|
2766
2770
|
},
|
|
2767
|
-
[e.options,
|
|
2771
|
+
[e.options, u]
|
|
2768
2772
|
);
|
|
2769
2773
|
return /* @__PURE__ */ t.jsxs(
|
|
2770
2774
|
"div",
|
|
2771
2775
|
{
|
|
2772
|
-
className:
|
|
2776
|
+
className: d.radioCardGroup,
|
|
2773
2777
|
role: "radiogroup",
|
|
2774
2778
|
"aria-label": e.label,
|
|
2775
2779
|
children: [
|
|
2776
|
-
(
|
|
2777
|
-
const
|
|
2780
|
+
(c = e.options) == null ? void 0 : c.map((p, _) => {
|
|
2781
|
+
const x = i === p.value;
|
|
2778
2782
|
return /* @__PURE__ */ t.jsxs(
|
|
2779
2783
|
"button",
|
|
2780
2784
|
{
|
|
2781
2785
|
type: "button",
|
|
2782
2786
|
role: "radio",
|
|
2783
|
-
"aria-checked":
|
|
2784
|
-
tabIndex:
|
|
2785
|
-
className: `${
|
|
2786
|
-
onClick: () =>
|
|
2787
|
-
onKeyDown: (
|
|
2787
|
+
"aria-checked": x,
|
|
2788
|
+
tabIndex: x || _ === 0 && !i ? 0 : -1,
|
|
2789
|
+
className: `${d.radioCard} ${x ? d.radioCardSelected : ""}`,
|
|
2790
|
+
onClick: () => u(p.value),
|
|
2791
|
+
onKeyDown: (I) => l(I, _),
|
|
2788
2792
|
children: [
|
|
2789
|
-
/* @__PURE__ */ t.jsx("span", { className:
|
|
2790
|
-
p.description && /* @__PURE__ */ t.jsx("span", { className:
|
|
2793
|
+
/* @__PURE__ */ t.jsx("span", { className: d.radioCardLabel, children: p.label }),
|
|
2794
|
+
p.description && /* @__PURE__ */ t.jsx("span", { className: d.radioCardDescription, children: p.description })
|
|
2791
2795
|
]
|
|
2792
2796
|
},
|
|
2793
2797
|
String(p.value)
|
|
2794
2798
|
);
|
|
2795
2799
|
}),
|
|
2796
|
-
m && /* @__PURE__ */ t.jsx("p", { className:
|
|
2800
|
+
m && /* @__PURE__ */ t.jsx("p", { className: d.fieldError, children: m })
|
|
2797
2801
|
]
|
|
2798
2802
|
}
|
|
2799
2803
|
);
|
|
2800
|
-
},
|
|
2801
|
-
function
|
|
2802
|
-
return `${
|
|
2804
|
+
}, ss = "https://images.opendoor.com/source/s3/imgdrop-production", os = "service=reception-fe&dpr=2&fit=scale-down";
|
|
2805
|
+
function ne(e, r = "3:2-sm") {
|
|
2806
|
+
return `${ss}/${e}?${os}&preset=${r}`;
|
|
2803
2807
|
}
|
|
2804
|
-
const
|
|
2808
|
+
const is = {
|
|
2805
2809
|
// Kitchen
|
|
2806
|
-
"kitchen-fixer_upper":
|
|
2807
|
-
"kitchen-dated":
|
|
2808
|
-
"kitchen-standard":
|
|
2809
|
-
"kitchen-high_end":
|
|
2810
|
-
"kitchen-luxury":
|
|
2810
|
+
"kitchen-fixer_upper": ne("2023-04-1681772974083-61414.png"),
|
|
2811
|
+
"kitchen-dated": ne("2023-04-1681772974089-39460.png"),
|
|
2812
|
+
"kitchen-standard": ne("2023-04-1681772974093-51260.png"),
|
|
2813
|
+
"kitchen-high_end": ne("2023-04-1682444345875-57331.jpeg", "3:2-xl"),
|
|
2814
|
+
"kitchen-luxury": ne("2023-04-1682444629335-69661.jpeg", "3:2-xl"),
|
|
2811
2815
|
// Bathroom
|
|
2812
|
-
"bathroom-fixer_upper":
|
|
2813
|
-
"bathroom-dated":
|
|
2814
|
-
"bathroom-standard":
|
|
2815
|
-
"bathroom-high_end":
|
|
2816
|
-
"bathroom-luxury":
|
|
2816
|
+
"bathroom-fixer_upper": ne("2023-04-1682103091299-33543.jpeg"),
|
|
2817
|
+
"bathroom-dated": ne("2023-04-1681773104207-98555.png"),
|
|
2818
|
+
"bathroom-standard": ne("2023-04-1682103088251-79730.jpeg", "3:2-xl"),
|
|
2819
|
+
"bathroom-high_end": ne("2023-04-1681773104214-77488.png"),
|
|
2820
|
+
"bathroom-luxury": ne("2023-04-1681773104217-27390.png"),
|
|
2817
2821
|
// Living Room
|
|
2818
|
-
"living-room-fixer_upper":
|
|
2819
|
-
"living-room-dated":
|
|
2820
|
-
"living-room-standard":
|
|
2821
|
-
"living-room-high_end":
|
|
2822
|
-
"living-room-luxury":
|
|
2822
|
+
"living-room-fixer_upper": ne("2023-04-1681773170815-60328.png"),
|
|
2823
|
+
"living-room-dated": ne("2023-04-1681773170823-03451.png"),
|
|
2824
|
+
"living-room-standard": ne("2023-04-1681773170826-47471.png"),
|
|
2825
|
+
"living-room-high_end": ne("2023-04-1681773170828-76415.png"),
|
|
2826
|
+
"living-room-luxury": ne("2023-04-1681773170832-20699.png"),
|
|
2823
2827
|
// Exterior
|
|
2824
|
-
"exterior-fixer_upper":
|
|
2825
|
-
"exterior-dated":
|
|
2826
|
-
"exterior-standard":
|
|
2827
|
-
"exterior-high_end":
|
|
2828
|
-
"exterior-luxury":
|
|
2829
|
-
},
|
|
2830
|
-
var
|
|
2831
|
-
const { getAnswer: r, setAnswer: a, goToNext: s, validationErrors: o } =
|
|
2832
|
-
|
|
2828
|
+
"exterior-fixer_upper": ne("2023-04-1681773220493-46489.png"),
|
|
2829
|
+
"exterior-dated": ne("2023-04-1681773220495-22229.png"),
|
|
2830
|
+
"exterior-standard": ne("2023-04-1681773220498-64940.png"),
|
|
2831
|
+
"exterior-high_end": ne("2023-04-1682103085417-24272.jpeg", "3:2-md"),
|
|
2832
|
+
"exterior-luxury": ne("2023-04-1681773220487-59852.png")
|
|
2833
|
+
}, ls = ({ question: e }) => {
|
|
2834
|
+
var l;
|
|
2835
|
+
const { getAnswer: r, setAnswer: a, goToNext: s, validationErrors: o } = pe(), i = r(e.key), m = o[e.key], f = U(null);
|
|
2836
|
+
ce(() => () => {
|
|
2833
2837
|
f.current && clearTimeout(f.current);
|
|
2834
2838
|
}, []);
|
|
2835
|
-
const
|
|
2836
|
-
(
|
|
2837
|
-
a(e.key,
|
|
2839
|
+
const u = Ee(
|
|
2840
|
+
(c) => {
|
|
2841
|
+
a(e.key, c), e.autoAdvance && (f.current && clearTimeout(f.current), f.current = setTimeout(() => s(), 300));
|
|
2838
2842
|
},
|
|
2839
2843
|
[e.key, e.autoAdvance, a, s]
|
|
2840
2844
|
);
|
|
2841
2845
|
return /* @__PURE__ */ t.jsxs(
|
|
2842
2846
|
"div",
|
|
2843
2847
|
{
|
|
2844
|
-
className:
|
|
2848
|
+
className: d.imageCardGroup,
|
|
2845
2849
|
role: "radiogroup",
|
|
2846
2850
|
"aria-label": e.label,
|
|
2847
2851
|
children: [
|
|
2848
|
-
(
|
|
2849
|
-
const p = i ===
|
|
2852
|
+
(l = e.options) == null ? void 0 : l.map((c) => {
|
|
2853
|
+
const p = i === c.value, _ = c.imageId ? is[c.imageId] : void 0;
|
|
2850
2854
|
return /* @__PURE__ */ t.jsxs(
|
|
2851
2855
|
"button",
|
|
2852
2856
|
{
|
|
2853
2857
|
type: "button",
|
|
2854
2858
|
role: "radio",
|
|
2855
2859
|
"aria-checked": p,
|
|
2856
|
-
className: `${
|
|
2857
|
-
onClick: () =>
|
|
2860
|
+
className: `${d.imageCard} ${p ? d.imageCardSelected : ""}`,
|
|
2861
|
+
onClick: () => u(c.value),
|
|
2858
2862
|
children: [
|
|
2859
2863
|
_ && /* @__PURE__ */ t.jsx(
|
|
2860
2864
|
"img",
|
|
2861
2865
|
{
|
|
2862
2866
|
src: _,
|
|
2863
|
-
alt:
|
|
2864
|
-
className:
|
|
2867
|
+
alt: c.label,
|
|
2868
|
+
className: d.imageCardPhoto,
|
|
2865
2869
|
loading: "lazy"
|
|
2866
2870
|
}
|
|
2867
2871
|
),
|
|
2868
|
-
/* @__PURE__ */ t.jsx("span", { className:
|
|
2869
|
-
|
|
2872
|
+
/* @__PURE__ */ t.jsx("span", { className: d.imageCardLabel, children: c.label }),
|
|
2873
|
+
c.description && /* @__PURE__ */ t.jsx("span", { className: d.imageCardDescription, children: c.description })
|
|
2870
2874
|
]
|
|
2871
2875
|
},
|
|
2872
|
-
String(
|
|
2876
|
+
String(c.value)
|
|
2873
2877
|
);
|
|
2874
2878
|
}),
|
|
2875
|
-
m && /* @__PURE__ */ t.jsx("p", { className:
|
|
2879
|
+
m && /* @__PURE__ */ t.jsx("p", { className: d.fieldError, children: m })
|
|
2876
2880
|
]
|
|
2877
2881
|
}
|
|
2878
2882
|
);
|
|
2879
|
-
},
|
|
2883
|
+
}, cs = ({
|
|
2880
2884
|
question: e
|
|
2881
2885
|
}) => {
|
|
2882
2886
|
var f;
|
|
2883
|
-
const { getAnswer: r, setAnswer: a, validationErrors: s } =
|
|
2887
|
+
const { getAnswer: r, setAnswer: a, validationErrors: s } = pe(), o = r(e.key) ?? [], i = s[e.key], m = (u) => {
|
|
2884
2888
|
var p;
|
|
2885
|
-
const
|
|
2886
|
-
if (
|
|
2887
|
-
a(e.key, [
|
|
2889
|
+
const l = (p = e.options) == null ? void 0 : p.find((_) => _.value === u);
|
|
2890
|
+
if (l != null && l.exclusive) {
|
|
2891
|
+
a(e.key, [u]);
|
|
2888
2892
|
return;
|
|
2889
2893
|
}
|
|
2890
|
-
const
|
|
2894
|
+
const c = o.filter(
|
|
2891
2895
|
(_) => {
|
|
2892
|
-
var
|
|
2893
|
-
return !((
|
|
2896
|
+
var x, I;
|
|
2897
|
+
return !((I = (x = e.options) == null ? void 0 : x.find((D) => D.value === _)) != null && I.exclusive);
|
|
2894
2898
|
}
|
|
2895
2899
|
);
|
|
2896
|
-
if (
|
|
2897
|
-
const _ =
|
|
2900
|
+
if (c.includes(u)) {
|
|
2901
|
+
const _ = c.filter((x) => x !== u);
|
|
2898
2902
|
a(e.key, _.length > 0 ? _ : void 0);
|
|
2899
2903
|
} else
|
|
2900
|
-
a(e.key, [...
|
|
2904
|
+
a(e.key, [...c, u]);
|
|
2901
2905
|
};
|
|
2902
2906
|
return /* @__PURE__ */ t.jsxs(
|
|
2903
2907
|
"div",
|
|
2904
2908
|
{
|
|
2905
|
-
className:
|
|
2909
|
+
className: d.checkboxCardGroup,
|
|
2906
2910
|
role: "group",
|
|
2907
2911
|
"aria-label": e.label,
|
|
2908
2912
|
children: [
|
|
2909
|
-
(f = e.options) == null ? void 0 : f.map((
|
|
2910
|
-
const
|
|
2913
|
+
(f = e.options) == null ? void 0 : f.map((u) => {
|
|
2914
|
+
const l = o.includes(String(u.value));
|
|
2911
2915
|
return /* @__PURE__ */ t.jsxs(
|
|
2912
2916
|
"button",
|
|
2913
2917
|
{
|
|
2914
2918
|
type: "button",
|
|
2915
2919
|
role: "checkbox",
|
|
2916
|
-
"aria-checked":
|
|
2917
|
-
className: `${
|
|
2918
|
-
onClick: () => m(String(
|
|
2920
|
+
"aria-checked": l,
|
|
2921
|
+
className: `${d.checkboxCard} ${l ? d.checkboxCardSelected : ""}`,
|
|
2922
|
+
onClick: () => m(String(u.value)),
|
|
2919
2923
|
children: [
|
|
2920
|
-
/* @__PURE__ */ t.jsxs("span", { className:
|
|
2921
|
-
/* @__PURE__ */ t.jsx("span", { className:
|
|
2922
|
-
|
|
2924
|
+
/* @__PURE__ */ t.jsxs("span", { className: d.checkboxCardContent, children: [
|
|
2925
|
+
/* @__PURE__ */ t.jsx("span", { className: d.checkboxCardLabel, children: u.label }),
|
|
2926
|
+
u.helperText && /* @__PURE__ */ t.jsx("span", { className: d.checkboxCardHelper, children: u.helperText })
|
|
2923
2927
|
] }),
|
|
2924
2928
|
/* @__PURE__ */ t.jsx(
|
|
2925
2929
|
"span",
|
|
2926
2930
|
{
|
|
2927
|
-
className: `${
|
|
2928
|
-
children:
|
|
2931
|
+
className: `${d.checkboxIndicator} ${l ? d.checkboxIndicatorChecked : ""}`,
|
|
2932
|
+
children: l && /* @__PURE__ */ t.jsx("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", children: /* @__PURE__ */ t.jsx(
|
|
2929
2933
|
"path",
|
|
2930
2934
|
{
|
|
2931
2935
|
d: "M2 6l3 3 5-5",
|
|
@@ -2939,132 +2943,132 @@ const ls = {
|
|
|
2939
2943
|
)
|
|
2940
2944
|
]
|
|
2941
2945
|
},
|
|
2942
|
-
String(
|
|
2946
|
+
String(u.value)
|
|
2943
2947
|
);
|
|
2944
2948
|
}),
|
|
2945
|
-
i && /* @__PURE__ */ t.jsx("p", { className:
|
|
2949
|
+
i && /* @__PURE__ */ t.jsx("p", { className: d.fieldError, children: i })
|
|
2946
2950
|
]
|
|
2947
2951
|
}
|
|
2948
2952
|
);
|
|
2949
|
-
},
|
|
2953
|
+
}, us = ({ question: e }) => {
|
|
2950
2954
|
var f;
|
|
2951
|
-
const { getAnswer: r, setAnswer: a, validationErrors: s } =
|
|
2952
|
-
const
|
|
2953
|
-
e.type === "number" &&
|
|
2955
|
+
const { getAnswer: r, setAnswer: a, validationErrors: s } = pe(), o = r(e.key), i = s[e.key], m = (u) => {
|
|
2956
|
+
const l = u.target.value;
|
|
2957
|
+
e.type === "number" && l !== "" ? a(e.key, Number(l)) : a(e.key, l || void 0);
|
|
2954
2958
|
};
|
|
2955
|
-
return /* @__PURE__ */ t.jsxs("div", { className:
|
|
2956
|
-
/* @__PURE__ */ t.jsx("label", { className:
|
|
2957
|
-
e.description && /* @__PURE__ */ t.jsx("p", { className:
|
|
2959
|
+
return /* @__PURE__ */ t.jsxs("div", { className: d.fieldGroup, children: [
|
|
2960
|
+
/* @__PURE__ */ t.jsx("label", { className: d.fieldLabel, htmlFor: e.key, children: e.label }),
|
|
2961
|
+
e.description && /* @__PURE__ */ t.jsx("p", { className: d.fieldDescription, children: e.description }),
|
|
2958
2962
|
/* @__PURE__ */ t.jsxs(
|
|
2959
2963
|
"select",
|
|
2960
2964
|
{
|
|
2961
2965
|
id: e.key,
|
|
2962
|
-
className: `${
|
|
2966
|
+
className: `${d.fieldSelect} ${i ? d.fieldSelectError : ""}`,
|
|
2963
2967
|
value: o !== void 0 ? String(o) : "",
|
|
2964
2968
|
onChange: m,
|
|
2965
2969
|
children: [
|
|
2966
2970
|
/* @__PURE__ */ t.jsx("option", { value: "", children: e.placeholder || "Select..." }),
|
|
2967
|
-
(f = e.options) == null ? void 0 : f.map((
|
|
2971
|
+
(f = e.options) == null ? void 0 : f.map((u) => /* @__PURE__ */ t.jsx("option", { value: String(u.value), children: u.label }, String(u.value)))
|
|
2968
2972
|
]
|
|
2969
2973
|
}
|
|
2970
2974
|
),
|
|
2971
|
-
i && /* @__PURE__ */ t.jsx("p", { className:
|
|
2975
|
+
i && /* @__PURE__ */ t.jsx("p", { className: d.fieldError, children: i })
|
|
2972
2976
|
] });
|
|
2973
|
-
},
|
|
2974
|
-
const { getAnswer: r, setAnswer: a, validationErrors: s } =
|
|
2975
|
-
const
|
|
2977
|
+
}, ds = ({ question: e }) => {
|
|
2978
|
+
const { getAnswer: r, setAnswer: a, validationErrors: s } = pe(), o = r(e.key), i = s[e.key], m = (u) => {
|
|
2979
|
+
const l = u.target.value;
|
|
2976
2980
|
if (e.type === "number") {
|
|
2977
|
-
const
|
|
2981
|
+
const c = l.replace(/[^0-9.]/g, ""), p = c === "" ? void 0 : Number(c), _ = p !== void 0 && isNaN(p) ? void 0 : p;
|
|
2978
2982
|
a(e.key, _);
|
|
2979
2983
|
} else
|
|
2980
|
-
a(e.key,
|
|
2984
|
+
a(e.key, l || void 0);
|
|
2981
2985
|
}, f = o != null ? String(o) : "";
|
|
2982
|
-
return /* @__PURE__ */ t.jsxs("div", { className:
|
|
2983
|
-
/* @__PURE__ */ t.jsx("label", { className:
|
|
2984
|
-
e.description && /* @__PURE__ */ t.jsx("p", { className:
|
|
2985
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
2986
|
+
return /* @__PURE__ */ t.jsxs("div", { className: d.fieldGroup, children: [
|
|
2987
|
+
/* @__PURE__ */ t.jsx("label", { className: d.fieldLabel, htmlFor: e.key, children: e.label }),
|
|
2988
|
+
e.description && /* @__PURE__ */ t.jsx("p", { className: d.fieldDescription, children: e.description }),
|
|
2989
|
+
/* @__PURE__ */ t.jsxs("div", { className: d.fieldInputWrapper, children: [
|
|
2986
2990
|
/* @__PURE__ */ t.jsx(
|
|
2987
2991
|
"input",
|
|
2988
2992
|
{
|
|
2989
2993
|
id: e.key,
|
|
2990
2994
|
type: e.type === "number" ? "text" : e.style === "email" ? "email" : "text",
|
|
2991
2995
|
inputMode: e.type === "number" ? "numeric" : void 0,
|
|
2992
|
-
className: `${
|
|
2996
|
+
className: `${d.fieldInput} ${i ? d.fieldInputError : ""}`,
|
|
2993
2997
|
value: f,
|
|
2994
2998
|
onChange: m,
|
|
2995
2999
|
placeholder: e.placeholder
|
|
2996
3000
|
}
|
|
2997
3001
|
),
|
|
2998
|
-
e.suffix && /* @__PURE__ */ t.jsx("span", { className:
|
|
3002
|
+
e.suffix && /* @__PURE__ */ t.jsx("span", { className: d.fieldSuffix, children: e.suffix })
|
|
2999
3003
|
] }),
|
|
3000
|
-
i && /* @__PURE__ */ t.jsx("p", { className:
|
|
3004
|
+
i && /* @__PURE__ */ t.jsx("p", { className: d.fieldError, children: i })
|
|
3001
3005
|
] });
|
|
3002
|
-
},
|
|
3003
|
-
const { getAnswer: r, setAnswer: a, validationErrors: s } =
|
|
3004
|
-
const
|
|
3005
|
-
a(e.key,
|
|
3006
|
+
}, hs = ({ question: e }) => {
|
|
3007
|
+
const { getAnswer: r, setAnswer: a, validationErrors: s } = pe(), o = r(e.key), i = s[e.key], m = (u) => {
|
|
3008
|
+
const l = u.target.value.replace(/[^0-9]/g, ""), c = l === "" ? void 0 : Number(l);
|
|
3009
|
+
a(e.key, c !== void 0 && isNaN(c) ? void 0 : c);
|
|
3006
3010
|
}, f = o != null ? String(o) : "";
|
|
3007
|
-
return /* @__PURE__ */ t.jsxs("div", { className:
|
|
3008
|
-
/* @__PURE__ */ t.jsx("label", { className:
|
|
3009
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
3010
|
-
/* @__PURE__ */ t.jsx("span", { className:
|
|
3011
|
+
return /* @__PURE__ */ t.jsxs("div", { className: d.fieldGroup, children: [
|
|
3012
|
+
/* @__PURE__ */ t.jsx("label", { className: d.fieldLabel, htmlFor: e.key, children: e.label }),
|
|
3013
|
+
/* @__PURE__ */ t.jsxs("div", { className: d.currencyWrapper, children: [
|
|
3014
|
+
/* @__PURE__ */ t.jsx("span", { className: d.currencyPrefix, children: "$" }),
|
|
3011
3015
|
/* @__PURE__ */ t.jsx(
|
|
3012
3016
|
"input",
|
|
3013
3017
|
{
|
|
3014
3018
|
id: e.key,
|
|
3015
3019
|
type: "text",
|
|
3016
3020
|
inputMode: "numeric",
|
|
3017
|
-
className: `${
|
|
3021
|
+
className: `${d.currencyInput} ${i ? d.fieldInputError : ""}`,
|
|
3018
3022
|
value: f,
|
|
3019
3023
|
onChange: m,
|
|
3020
3024
|
placeholder: e.placeholder
|
|
3021
3025
|
}
|
|
3022
3026
|
)
|
|
3023
3027
|
] }),
|
|
3024
|
-
i && /* @__PURE__ */ t.jsx("p", { className:
|
|
3028
|
+
i && /* @__PURE__ */ t.jsx("p", { className: d.fieldError, children: i })
|
|
3025
3029
|
] });
|
|
3026
3030
|
};
|
|
3027
|
-
function
|
|
3031
|
+
function fs(e) {
|
|
3028
3032
|
const r = e.replace(/\D/g, "").slice(0, 10);
|
|
3029
3033
|
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)}`;
|
|
3030
3034
|
}
|
|
3031
|
-
const
|
|
3032
|
-
const { getAnswer: r, setAnswer: a, validationErrors: s } =
|
|
3033
|
-
const
|
|
3034
|
-
a(e.key,
|
|
3035
|
+
const ms = ({ question: e }) => {
|
|
3036
|
+
const { getAnswer: r, setAnswer: a, validationErrors: s } = pe(), o = r(e.key) ?? "", i = s[e.key], m = (f) => {
|
|
3037
|
+
const l = f.target.value.replace(/\D/g, "").slice(0, 10);
|
|
3038
|
+
a(e.key, l || void 0);
|
|
3035
3039
|
};
|
|
3036
|
-
return /* @__PURE__ */ t.jsxs("div", { className:
|
|
3037
|
-
/* @__PURE__ */ t.jsx("label", { className:
|
|
3040
|
+
return /* @__PURE__ */ t.jsxs("div", { className: d.fieldGroup, children: [
|
|
3041
|
+
/* @__PURE__ */ t.jsx("label", { className: d.fieldLabel, htmlFor: e.key, children: e.label }),
|
|
3038
3042
|
/* @__PURE__ */ t.jsx(
|
|
3039
3043
|
"input",
|
|
3040
3044
|
{
|
|
3041
3045
|
id: e.key,
|
|
3042
3046
|
type: "tel",
|
|
3043
|
-
className: `${
|
|
3044
|
-
value:
|
|
3047
|
+
className: `${d.fieldInput} ${i ? d.fieldInputError : ""}`,
|
|
3048
|
+
value: fs(o),
|
|
3045
3049
|
onChange: m,
|
|
3046
3050
|
placeholder: e.placeholder || "(555) 555-5555"
|
|
3047
3051
|
}
|
|
3048
3052
|
),
|
|
3049
|
-
i && /* @__PURE__ */ t.jsx("p", { className:
|
|
3053
|
+
i && /* @__PURE__ */ t.jsx("p", { className: d.fieldError, children: i })
|
|
3050
3054
|
] });
|
|
3051
|
-
},
|
|
3052
|
-
const { getAnswer: r, setAnswer: a, smsConsentText: s } =
|
|
3055
|
+
}, ps = ({ question: e }) => {
|
|
3056
|
+
const { getAnswer: r, setAnswer: a, smsConsentText: s } = pe(), o = r(e.key);
|
|
3053
3057
|
let i = e.label;
|
|
3054
|
-
return e.key === "seller.sms_opt_in" && s && (i = s), /* @__PURE__ */ t.jsx("div", { className:
|
|
3058
|
+
return e.key === "seller.sms_opt_in" && s && (i = s), /* @__PURE__ */ t.jsx("div", { className: d.toggleGroup, children: /* @__PURE__ */ t.jsxs("label", { className: d.toggleLabel, children: [
|
|
3055
3059
|
/* @__PURE__ */ t.jsx(
|
|
3056
3060
|
"input",
|
|
3057
3061
|
{
|
|
3058
3062
|
type: "checkbox",
|
|
3059
|
-
className:
|
|
3063
|
+
className: d.toggleCheckbox,
|
|
3060
3064
|
checked: o === !0,
|
|
3061
3065
|
onChange: (m) => a(e.key, m.target.checked)
|
|
3062
3066
|
}
|
|
3063
3067
|
),
|
|
3064
|
-
/* @__PURE__ */ t.jsx("span", { className:
|
|
3068
|
+
/* @__PURE__ */ t.jsx("span", { className: d.toggleText, children: i })
|
|
3065
3069
|
] }) });
|
|
3066
|
-
}, bt = 4, Te = 8,
|
|
3067
|
-
function
|
|
3070
|
+
}, bt = 4, Te = 8, gs = 240, _s = 80;
|
|
3071
|
+
function bs(e) {
|
|
3068
3072
|
const r = {};
|
|
3069
3073
|
for (let a = e; a; a = a.parentElement) {
|
|
3070
3074
|
const s = a.style;
|
|
@@ -3075,166 +3079,166 @@ function ys(e) {
|
|
|
3075
3079
|
}
|
|
3076
3080
|
return r;
|
|
3077
3081
|
}
|
|
3078
|
-
const
|
|
3082
|
+
const ys = ({ question: e }) => {
|
|
3079
3083
|
var ue;
|
|
3080
|
-
const { getAnswer: r, setAnswer: a, validationErrors: s } =
|
|
3081
|
-
|
|
3082
|
-
let
|
|
3083
|
-
return e.dataSource === "homebuilders" &&
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
label:
|
|
3087
|
-
value:
|
|
3084
|
+
const { getAnswer: r, setAnswer: a, validationErrors: s } = pe(), o = r(e.key), i = s[e.key], m = `${e.key}-combobox`, [f, u] = E(""), [l, c] = E(!1), [p, _] = E([]), [x, I] = E(!1), D = U(null), B = U(null), P = U(null), [S, j] = E(null), [ee, V] = E({}), ae = De(Ke);
|
|
3085
|
+
ce(() => {
|
|
3086
|
+
let y = !1;
|
|
3087
|
+
return e.dataSource === "homebuilders" && ae ? (I(!0), ae.getHomebuilders().then((k) => {
|
|
3088
|
+
y || _(
|
|
3089
|
+
k.homebuilders.map((C) => ({
|
|
3090
|
+
label: C.displayName,
|
|
3091
|
+
value: C.identifier
|
|
3088
3092
|
}))
|
|
3089
3093
|
);
|
|
3090
3094
|
}).catch(() => {
|
|
3091
|
-
|
|
3092
|
-
e.options.map((
|
|
3093
|
-
label:
|
|
3094
|
-
value: String(
|
|
3095
|
+
y || (e.options ? _(
|
|
3096
|
+
e.options.map((k) => ({
|
|
3097
|
+
label: k.label,
|
|
3098
|
+
value: String(k.value)
|
|
3095
3099
|
}))
|
|
3096
3100
|
) : _([]));
|
|
3097
3101
|
}).finally(() => {
|
|
3098
|
-
|
|
3102
|
+
y || I(!1);
|
|
3099
3103
|
})) : e.options ? _(
|
|
3100
|
-
e.options.map((
|
|
3101
|
-
label:
|
|
3102
|
-
value: String(
|
|
3104
|
+
e.options.map((k) => ({
|
|
3105
|
+
label: k.label,
|
|
3106
|
+
value: String(k.value)
|
|
3103
3107
|
}))
|
|
3104
3108
|
) : _([]), () => {
|
|
3105
|
-
|
|
3109
|
+
y = !0;
|
|
3106
3110
|
};
|
|
3107
|
-
}, [e.dataSource, e.options,
|
|
3108
|
-
const
|
|
3109
|
-
const
|
|
3110
|
-
if (!
|
|
3111
|
-
const
|
|
3112
|
-
|
|
3113
|
-
Math.min(
|
|
3114
|
-
),
|
|
3111
|
+
}, [e.dataSource, e.options, ae]);
|
|
3112
|
+
const Z = Ee(() => {
|
|
3113
|
+
const y = B.current;
|
|
3114
|
+
if (!y) return;
|
|
3115
|
+
const k = y.getBoundingClientRect(), C = window.visualViewport, fe = (C == null ? void 0 : C.height) ?? window.innerHeight, G = (C == null ? void 0 : C.width) ?? window.innerWidth, oe = (C == null ? void 0 : C.offsetTop) ?? 0, M = (C == null ? void 0 : C.offsetLeft) ?? 0, ge = oe + fe - k.bottom - bt - Te, w = Math.max(
|
|
3116
|
+
_s,
|
|
3117
|
+
Math.min(gs, ge)
|
|
3118
|
+
), T = Math.min(k.width, G - Te * 2), F = M + Te, $ = M + G - T - Te, de = Math.max(F, Math.min(k.left, $));
|
|
3115
3119
|
j({
|
|
3116
|
-
top:
|
|
3117
|
-
left:
|
|
3118
|
-
width:
|
|
3119
|
-
maxHeight:
|
|
3120
|
+
top: k.bottom + window.scrollY + bt,
|
|
3121
|
+
left: de + window.scrollX,
|
|
3122
|
+
width: T,
|
|
3123
|
+
maxHeight: w
|
|
3120
3124
|
});
|
|
3121
3125
|
}, []);
|
|
3122
3126
|
Ut(() => {
|
|
3123
|
-
if (!
|
|
3127
|
+
if (!l) {
|
|
3124
3128
|
j(null);
|
|
3125
3129
|
return;
|
|
3126
3130
|
}
|
|
3127
|
-
|
|
3128
|
-
const
|
|
3129
|
-
window.addEventListener("scroll",
|
|
3130
|
-
const
|
|
3131
|
-
|
|
3132
|
-
const
|
|
3131
|
+
B.current && V(bs(B.current)), Z();
|
|
3132
|
+
const y = () => Z();
|
|
3133
|
+
window.addEventListener("scroll", y, !0), window.addEventListener("resize", y);
|
|
3134
|
+
const k = window.visualViewport;
|
|
3135
|
+
k == null || k.addEventListener("resize", y), k == null || k.addEventListener("scroll", y);
|
|
3136
|
+
const C = window.setTimeout(y, 300);
|
|
3133
3137
|
return () => {
|
|
3134
|
-
window.removeEventListener("scroll",
|
|
3138
|
+
window.removeEventListener("scroll", y, !0), window.removeEventListener("resize", y), k == null || k.removeEventListener("resize", y), k == null || k.removeEventListener("scroll", y), window.clearTimeout(C);
|
|
3135
3139
|
};
|
|
3136
|
-
}, [
|
|
3137
|
-
const
|
|
3138
|
-
var
|
|
3139
|
-
const
|
|
3140
|
-
(
|
|
3140
|
+
}, [l, Z]), ce(() => {
|
|
3141
|
+
const y = (k) => {
|
|
3142
|
+
var fe, G;
|
|
3143
|
+
const C = k.target;
|
|
3144
|
+
(fe = D.current) != null && fe.contains(C) || (G = P.current) != null && G.contains(C) || c(!1);
|
|
3141
3145
|
};
|
|
3142
|
-
return document.addEventListener("mousedown",
|
|
3146
|
+
return document.addEventListener("mousedown", y), () => document.removeEventListener("mousedown", y);
|
|
3143
3147
|
}, []);
|
|
3144
|
-
const
|
|
3145
|
-
(
|
|
3146
|
-
) : p,
|
|
3147
|
-
(
|
|
3148
|
-
a(e.key,
|
|
3148
|
+
const L = f ? p.filter(
|
|
3149
|
+
(y) => y.label.toLowerCase().includes(f.toLowerCase())
|
|
3150
|
+
) : p, se = (ue = p.find((y) => y.value === o)) == null ? void 0 : ue.label, [K, ie] = E(-1), Y = `${e.key}-listbox`, z = Ee(
|
|
3151
|
+
(y) => {
|
|
3152
|
+
a(e.key, y), c(!1), u(""), ie(-1);
|
|
3149
3153
|
},
|
|
3150
3154
|
[e.key, a]
|
|
3151
|
-
), q = (
|
|
3152
|
-
if (!
|
|
3153
|
-
(
|
|
3155
|
+
), q = (y) => {
|
|
3156
|
+
if (!l) {
|
|
3157
|
+
(y.key === "ArrowDown" || y.key === "Enter") && (y.preventDefault(), c(!0));
|
|
3154
3158
|
return;
|
|
3155
3159
|
}
|
|
3156
|
-
switch (
|
|
3160
|
+
switch (y.key) {
|
|
3157
3161
|
case "ArrowDown":
|
|
3158
|
-
|
|
3159
|
-
(
|
|
3162
|
+
y.preventDefault(), L.length > 0 && ie(
|
|
3163
|
+
(k) => k < L.length - 1 ? k + 1 : 0
|
|
3160
3164
|
);
|
|
3161
3165
|
break;
|
|
3162
3166
|
case "ArrowUp":
|
|
3163
|
-
|
|
3164
|
-
(
|
|
3167
|
+
y.preventDefault(), L.length > 0 && ie(
|
|
3168
|
+
(k) => k > 0 ? k - 1 : L.length - 1
|
|
3165
3169
|
);
|
|
3166
3170
|
break;
|
|
3167
3171
|
case "Enter":
|
|
3168
|
-
|
|
3172
|
+
y.preventDefault(), K >= 0 && K < L.length && z(L[K].value);
|
|
3169
3173
|
break;
|
|
3170
3174
|
case "Escape":
|
|
3171
|
-
|
|
3175
|
+
y.preventDefault(), c(!1), ie(-1);
|
|
3172
3176
|
break;
|
|
3173
3177
|
}
|
|
3174
|
-
},
|
|
3178
|
+
}, J = l && S && typeof document < "u" ? Yt(
|
|
3175
3179
|
/* @__PURE__ */ t.jsx(
|
|
3176
3180
|
"div",
|
|
3177
3181
|
{
|
|
3178
3182
|
ref: P,
|
|
3179
|
-
className:
|
|
3183
|
+
className: d.searchableDropdownList,
|
|
3180
3184
|
role: "listbox",
|
|
3181
|
-
id:
|
|
3185
|
+
id: Y,
|
|
3182
3186
|
style: {
|
|
3183
3187
|
position: "absolute",
|
|
3184
|
-
top:
|
|
3185
|
-
left:
|
|
3188
|
+
top: S.top,
|
|
3189
|
+
left: S.left,
|
|
3186
3190
|
right: "auto",
|
|
3187
|
-
width:
|
|
3188
|
-
maxHeight:
|
|
3189
|
-
...
|
|
3191
|
+
width: S.width,
|
|
3192
|
+
maxHeight: S.maxHeight,
|
|
3193
|
+
...ee
|
|
3190
3194
|
},
|
|
3191
|
-
children:
|
|
3195
|
+
children: x ? /* @__PURE__ */ t.jsx("div", { className: d.searchableDropdownEmpty, children: "Loading..." }) : L.length === 0 ? /* @__PURE__ */ t.jsx("div", { className: d.searchableDropdownEmpty, children: "No results found" }) : L.map((y, k) => /* @__PURE__ */ t.jsx(
|
|
3192
3196
|
"button",
|
|
3193
3197
|
{
|
|
3194
|
-
id: `${
|
|
3198
|
+
id: `${Y}-option-${k}`,
|
|
3195
3199
|
type: "button",
|
|
3196
3200
|
role: "option",
|
|
3197
|
-
"aria-selected":
|
|
3198
|
-
className: `${
|
|
3199
|
-
onMouseDown: (
|
|
3200
|
-
onClick: () =>
|
|
3201
|
-
children:
|
|
3201
|
+
"aria-selected": y.value === o,
|
|
3202
|
+
className: `${d.searchableDropdownOption} ${y.value === o ? d.searchableDropdownOptionSelected : ""} ${k === K ? d.searchableDropdownOptionHighlighted : ""}`,
|
|
3203
|
+
onMouseDown: (C) => C.preventDefault(),
|
|
3204
|
+
onClick: () => z(y.value),
|
|
3205
|
+
children: y.label
|
|
3202
3206
|
},
|
|
3203
|
-
|
|
3207
|
+
y.value
|
|
3204
3208
|
))
|
|
3205
3209
|
}
|
|
3206
3210
|
),
|
|
3207
3211
|
document.body
|
|
3208
3212
|
) : null;
|
|
3209
|
-
return /* @__PURE__ */ t.jsxs("div", { ref:
|
|
3210
|
-
/* @__PURE__ */ t.jsxs("div", { ref:
|
|
3213
|
+
return /* @__PURE__ */ t.jsxs("div", { ref: D, className: d.fieldGroup, children: [
|
|
3214
|
+
/* @__PURE__ */ t.jsxs("div", { ref: B, className: d.searchableDropdown, children: [
|
|
3211
3215
|
/* @__PURE__ */ t.jsx(
|
|
3212
3216
|
"input",
|
|
3213
3217
|
{
|
|
3214
3218
|
id: m,
|
|
3215
3219
|
type: "text",
|
|
3216
|
-
className:
|
|
3217
|
-
value:
|
|
3218
|
-
onChange: (
|
|
3219
|
-
|
|
3220
|
+
className: d.fieldInput,
|
|
3221
|
+
value: l ? f : se ?? "",
|
|
3222
|
+
onChange: (y) => {
|
|
3223
|
+
u(y.target.value), ie(-1), l || c(!0);
|
|
3220
3224
|
},
|
|
3221
|
-
onFocus: () =>
|
|
3225
|
+
onFocus: () => c(!0),
|
|
3222
3226
|
onKeyDown: q,
|
|
3223
3227
|
placeholder: e.placeholder || "Select or search...",
|
|
3224
3228
|
"aria-label": e.label,
|
|
3225
|
-
"aria-expanded":
|
|
3229
|
+
"aria-expanded": l,
|
|
3226
3230
|
role: "combobox",
|
|
3227
3231
|
"aria-haspopup": "listbox",
|
|
3228
|
-
"aria-controls":
|
|
3229
|
-
"aria-activedescendant":
|
|
3232
|
+
"aria-controls": l ? Y : void 0,
|
|
3233
|
+
"aria-activedescendant": l && K >= 0 ? `${Y}-option-${K}` : void 0
|
|
3230
3234
|
}
|
|
3231
3235
|
),
|
|
3232
3236
|
/* @__PURE__ */ t.jsx(
|
|
3233
3237
|
"button",
|
|
3234
3238
|
{
|
|
3235
3239
|
type: "button",
|
|
3236
|
-
className:
|
|
3237
|
-
onClick: () =>
|
|
3240
|
+
className: d.searchableDropdownToggle,
|
|
3241
|
+
onClick: () => c(!l),
|
|
3238
3242
|
"aria-label": "Toggle dropdown",
|
|
3239
3243
|
tabIndex: -1,
|
|
3240
3244
|
children: /* @__PURE__ */ t.jsx("svg", { width: "12", height: "8", viewBox: "0 0 12 8", fill: "none", children: /* @__PURE__ */ t.jsx(
|
|
@@ -3250,55 +3254,64 @@ const vs = ({ question: e }) => {
|
|
|
3250
3254
|
}
|
|
3251
3255
|
)
|
|
3252
3256
|
] }),
|
|
3253
|
-
i && /* @__PURE__ */ t.jsx("p", { className:
|
|
3254
|
-
|
|
3257
|
+
i && /* @__PURE__ */ t.jsx("p", { className: d.fieldError, children: i }),
|
|
3258
|
+
J
|
|
3255
3259
|
] });
|
|
3256
3260
|
};
|
|
3257
|
-
function
|
|
3261
|
+
function vs(e) {
|
|
3258
3262
|
switch (e.style) {
|
|
3259
3263
|
case "radio-card":
|
|
3260
|
-
return /* @__PURE__ */ t.jsx(
|
|
3264
|
+
return /* @__PURE__ */ t.jsx(as, { question: e }, e.key);
|
|
3261
3265
|
case "image-card":
|
|
3262
|
-
return /* @__PURE__ */ t.jsx(
|
|
3266
|
+
return /* @__PURE__ */ t.jsx(ls, { question: e }, e.key);
|
|
3263
3267
|
case "checkbox-card":
|
|
3264
|
-
return /* @__PURE__ */ t.jsx(
|
|
3268
|
+
return /* @__PURE__ */ t.jsx(cs, { question: e }, e.key);
|
|
3265
3269
|
case "dropdown":
|
|
3266
|
-
return /* @__PURE__ */ t.jsx(
|
|
3270
|
+
return /* @__PURE__ */ t.jsx(us, { question: e }, e.key);
|
|
3267
3271
|
case "input":
|
|
3268
3272
|
case "email":
|
|
3269
|
-
return /* @__PURE__ */ t.jsx(
|
|
3273
|
+
return /* @__PURE__ */ t.jsx(ds, { question: e }, e.key);
|
|
3270
3274
|
case "currency":
|
|
3271
|
-
return /* @__PURE__ */ t.jsx(
|
|
3275
|
+
return /* @__PURE__ */ t.jsx(hs, { question: e }, e.key);
|
|
3272
3276
|
case "phone":
|
|
3273
|
-
return /* @__PURE__ */ t.jsx(
|
|
3277
|
+
return /* @__PURE__ */ t.jsx(ms, { question: e }, e.key);
|
|
3274
3278
|
case "toggle":
|
|
3275
|
-
return /* @__PURE__ */ t.jsx(
|
|
3279
|
+
return /* @__PURE__ */ t.jsx(ps, { question: e }, e.key);
|
|
3276
3280
|
case "searchable-dropdown":
|
|
3277
|
-
return /* @__PURE__ */ t.jsx(
|
|
3281
|
+
return /* @__PURE__ */ t.jsx(ys, { question: e }, e.key);
|
|
3278
3282
|
default:
|
|
3279
3283
|
return null;
|
|
3280
3284
|
}
|
|
3281
3285
|
}
|
|
3282
|
-
const
|
|
3283
|
-
const {
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3286
|
+
const xs = () => {
|
|
3287
|
+
const {
|
|
3288
|
+
currentPage: e,
|
|
3289
|
+
visibleQuestions: r,
|
|
3290
|
+
goToNext: a,
|
|
3291
|
+
contactConsentText: s,
|
|
3292
|
+
submitLabel: o,
|
|
3293
|
+
contactPageTitle: i
|
|
3294
|
+
} = pe(), m = U(null);
|
|
3295
|
+
if (ce(() => {
|
|
3296
|
+
var c, p, _;
|
|
3297
|
+
(p = (c = m.current) == null ? void 0 : c.scrollTo) == null || p.call(c, { top: 0, behavior: "smooth" }), (_ = m.current) == null || _.focus();
|
|
3298
|
+
}, [e == null ? void 0 : e.id]), !e) return null;
|
|
3299
|
+
const f = e.id === "contact-info", u = (f ? o : void 0) ?? e.submitLabel ?? "Next", l = f && i !== void 0 ? i : e.title;
|
|
3300
|
+
return /* @__PURE__ */ t.jsxs(
|
|
3288
3301
|
"div",
|
|
3289
3302
|
{
|
|
3290
|
-
ref:
|
|
3291
|
-
className:
|
|
3303
|
+
ref: m,
|
|
3304
|
+
className: d.pageContent,
|
|
3292
3305
|
tabIndex: -1,
|
|
3293
3306
|
role: "region",
|
|
3294
|
-
"aria-label":
|
|
3307
|
+
"aria-label": l,
|
|
3295
3308
|
children: [
|
|
3296
|
-
r.map(
|
|
3297
|
-
|
|
3298
|
-
/* @__PURE__ */ t.jsx("button", { type: "button", className:
|
|
3299
|
-
s ?? /* @__PURE__ */ t.jsxs("p", { className:
|
|
3309
|
+
r.map(vs),
|
|
3310
|
+
f && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
3311
|
+
/* @__PURE__ */ t.jsx("button", { type: "button", className: d.ctaButton, onClick: a, children: u }),
|
|
3312
|
+
s ?? /* @__PURE__ */ t.jsxs("p", { className: d.consentText, children: [
|
|
3300
3313
|
"By pressing “",
|
|
3301
|
-
|
|
3314
|
+
u,
|
|
3302
3315
|
",” I agree to Opendoor’s",
|
|
3303
3316
|
" ",
|
|
3304
3317
|
/* @__PURE__ */ t.jsx(
|
|
@@ -3307,7 +3320,7 @@ const Cs = () => {
|
|
|
3307
3320
|
href: "https://www.opendoor.com/terms",
|
|
3308
3321
|
target: "_blank",
|
|
3309
3322
|
rel: "noopener noreferrer",
|
|
3310
|
-
className:
|
|
3323
|
+
className: d.consentLink,
|
|
3311
3324
|
children: "Terms of Service"
|
|
3312
3325
|
}
|
|
3313
3326
|
),
|
|
@@ -3320,7 +3333,7 @@ const Cs = () => {
|
|
|
3320
3333
|
href: "https://www.opendoor.com/privacy",
|
|
3321
3334
|
target: "_blank",
|
|
3322
3335
|
rel: "noopener noreferrer",
|
|
3323
|
-
className:
|
|
3336
|
+
className: d.consentLink,
|
|
3324
3337
|
children: "Privacy Policy"
|
|
3325
3338
|
}
|
|
3326
3339
|
),
|
|
@@ -3329,20 +3342,20 @@ const Cs = () => {
|
|
|
3329
3342
|
] })
|
|
3330
3343
|
]
|
|
3331
3344
|
}
|
|
3332
|
-
)
|
|
3333
|
-
},
|
|
3334
|
-
const { currentPage: r } =
|
|
3345
|
+
);
|
|
3346
|
+
}, Cs = ({ address: e }) => {
|
|
3347
|
+
const { currentPage: r, contactPageTitle: a, contactPageSubtitle: s } = pe();
|
|
3335
3348
|
if (!r) return null;
|
|
3336
|
-
const a = [
|
|
3349
|
+
const o = r.id === "contact-info", i = o && a !== void 0 ? a : r.title, m = o && s !== void 0 ? s : r.subtitle, f = [
|
|
3337
3350
|
e.street1,
|
|
3338
3351
|
e.street2,
|
|
3339
3352
|
e.city,
|
|
3340
3353
|
e.state,
|
|
3341
3354
|
e.postalCode
|
|
3342
3355
|
].filter(Boolean).join(", ");
|
|
3343
|
-
return /* @__PURE__ */ t.jsxs("div", { className:
|
|
3344
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
3345
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
3356
|
+
return /* @__PURE__ */ t.jsxs("div", { className: d.layout, children: [
|
|
3357
|
+
/* @__PURE__ */ t.jsxs("div", { className: d.layoutScrollable, children: [
|
|
3358
|
+
/* @__PURE__ */ t.jsxs("div", { className: d.addressBar, children: [
|
|
3346
3359
|
/* @__PURE__ */ t.jsxs(
|
|
3347
3360
|
"svg",
|
|
3348
3361
|
{
|
|
@@ -3352,26 +3365,26 @@ const Cs = () => {
|
|
|
3352
3365
|
fill: "none",
|
|
3353
3366
|
stroke: "currentColor",
|
|
3354
3367
|
strokeWidth: "2",
|
|
3355
|
-
className:
|
|
3368
|
+
className: d.addressIcon,
|
|
3356
3369
|
children: [
|
|
3357
3370
|
/* @__PURE__ */ t.jsx("circle", { cx: "12", cy: "10", r: "3" }),
|
|
3358
3371
|
/* @__PURE__ */ t.jsx("path", { d: "M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7z" })
|
|
3359
3372
|
]
|
|
3360
3373
|
}
|
|
3361
3374
|
),
|
|
3362
|
-
/* @__PURE__ */ t.jsx("span", { className:
|
|
3375
|
+
/* @__PURE__ */ t.jsx("span", { className: d.addressText, children: f })
|
|
3363
3376
|
] }),
|
|
3364
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
3365
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
3366
|
-
/* @__PURE__ */ t.jsx("h1", { className:
|
|
3367
|
-
|
|
3377
|
+
/* @__PURE__ */ t.jsxs("div", { className: d.contentSplit, children: [
|
|
3378
|
+
/* @__PURE__ */ t.jsxs("div", { className: d.contentLeft, children: [
|
|
3379
|
+
/* @__PURE__ */ t.jsx("h1", { className: d.pageTitle, children: i }),
|
|
3380
|
+
m && /* @__PURE__ */ t.jsx("p", { className: d.pageSubtitle, children: m })
|
|
3368
3381
|
] }),
|
|
3369
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
3382
|
+
/* @__PURE__ */ t.jsx("div", { className: d.contentRight, children: /* @__PURE__ */ t.jsx(xs, {}) })
|
|
3370
3383
|
] })
|
|
3371
3384
|
] }),
|
|
3372
|
-
/* @__PURE__ */ t.jsx(
|
|
3385
|
+
/* @__PURE__ */ t.jsx(ns, {})
|
|
3373
3386
|
] });
|
|
3374
|
-
},
|
|
3387
|
+
}, Mo = ({
|
|
3375
3388
|
address: e,
|
|
3376
3389
|
onSubmit: r,
|
|
3377
3390
|
partnerLogoUrl: a,
|
|
@@ -3379,88 +3392,94 @@ const Cs = () => {
|
|
|
3379
3392
|
initialAnswers: o,
|
|
3380
3393
|
skipPages: i,
|
|
3381
3394
|
smsConsentText: m,
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3395
|
+
submitLabel: f,
|
|
3396
|
+
contactPageTitle: u,
|
|
3397
|
+
contactPageSubtitle: l,
|
|
3398
|
+
onPageChange: c,
|
|
3399
|
+
onAnswerChange: p,
|
|
3400
|
+
onClose: _,
|
|
3401
|
+
onReady: x,
|
|
3402
|
+
onError: I,
|
|
3403
|
+
contactConsentText: D
|
|
3388
3404
|
}) => {
|
|
3389
|
-
const
|
|
3390
|
-
return /* @__PURE__ */ t.jsx("div", { className:
|
|
3391
|
-
|
|
3405
|
+
const B = Pe(s);
|
|
3406
|
+
return /* @__PURE__ */ t.jsx("div", { className: d.container, style: B, children: /* @__PURE__ */ t.jsxs(
|
|
3407
|
+
Mn,
|
|
3392
3408
|
{
|
|
3393
3409
|
initialAnswers: o,
|
|
3394
3410
|
skipPages: i,
|
|
3395
3411
|
smsConsentText: m,
|
|
3396
|
-
contactConsentText:
|
|
3412
|
+
contactConsentText: D,
|
|
3413
|
+
submitLabel: f,
|
|
3414
|
+
contactPageTitle: u,
|
|
3415
|
+
contactPageSubtitle: l,
|
|
3397
3416
|
onSubmit: r,
|
|
3398
|
-
onPageChange:
|
|
3399
|
-
onAnswerChange:
|
|
3400
|
-
onReady:
|
|
3401
|
-
onError:
|
|
3417
|
+
onPageChange: c,
|
|
3418
|
+
onAnswerChange: p,
|
|
3419
|
+
onReady: x,
|
|
3420
|
+
onError: I,
|
|
3402
3421
|
children: [
|
|
3403
|
-
/* @__PURE__ */ t.jsx(
|
|
3404
|
-
/* @__PURE__ */ t.jsx(
|
|
3422
|
+
/* @__PURE__ */ t.jsx(ts, { partnerLogoUrl: a, onClose: _ }),
|
|
3423
|
+
/* @__PURE__ */ t.jsx(Cs, { address: e })
|
|
3405
3424
|
]
|
|
3406
3425
|
}
|
|
3407
3426
|
) });
|
|
3408
|
-
},
|
|
3409
|
-
root:
|
|
3410
|
-
card:
|
|
3411
|
-
titleLarge:
|
|
3412
|
-
featuresList:
|
|
3427
|
+
}, ws = "_root_1iq32_7", ks = "_card_1iq32_18", js = "_titleLarge_1iq32_36", Ns = "_featuresList_1iq32_40", Ss = "_stepLayout_1iq32_55", Is = "_leftColumn_1iq32_47", Es = "_introHeader_1iq32_68", Ps = "_schedule_1iq32_74", Ls = "_subtitleLeft_1iq32_124", Ts = "_feature_1iq32_40", As = "_featureTitle_1iq32_143", Ds = "_featureDescription_1iq32_150", Os = "_title_1iq32_36", Rs = "_subtitle_1iq32_124", Bs = "_calendarHeader_1iq32_175", Ms = "_calendarMonthLabel_1iq32_182", Fs = "_calendarNavButton_1iq32_188", $s = "_calendarGrid_1iq32_208", Ws = "_calendarDayHeader_1iq32_214", Hs = "_calendarDayAvailable_1iq32_223", Vs = "_calendarDayDisabled_1iq32_224", qs = "_calendarDaySelected_1iq32_225", Gs = "_timesHeader_1iq32_256", Us = "_timeRow_1iq32_263", Ys = "_timeButton_1iq32_270", Zs = "_timeButtonSelected_1iq32_271", Ks = "_field_1iq32_294", zs = "_fieldLabel_1iq32_300", Js = "_input_1iq32_306", Xs = "_fieldset_1iq32_327", Qs = "_radioRow_1iq32_336", eo = "_radioOption_1iq32_341", to = "_faqBelowActions_1iq32_362", ro = "_faq_1iq32_362", no = "_faqHeader_1iq32_373", ao = "_faqItem_1iq32_381", so = "_faqQuestion_1iq32_390", oo = "_faqAnswer_1iq32_406", io = "_faqChevron_1iq32_413", lo = "_errorText_1iq32_423", co = "_actionsRow_1iq32_429", uo = "_linkButton_1iq32_437", ho = "_primaryButton_1iq32_454", fo = "_successCheckCircle_1iq32_488", mo = "_summaryCard_1iq32_500", po = "_summaryRow_1iq32_510", go = "_summaryIcon_1iq32_518", g = {
|
|
3428
|
+
root: ws,
|
|
3429
|
+
card: ks,
|
|
3430
|
+
titleLarge: js,
|
|
3431
|
+
featuresList: Ns,
|
|
3413
3432
|
stepLayout: Ss,
|
|
3414
|
-
leftColumn:
|
|
3415
|
-
introHeader:
|
|
3416
|
-
schedule:
|
|
3417
|
-
subtitleLeft:
|
|
3418
|
-
feature:
|
|
3419
|
-
featureTitle:
|
|
3420
|
-
featureDescription:
|
|
3421
|
-
title:
|
|
3422
|
-
subtitle:
|
|
3423
|
-
calendarHeader:
|
|
3424
|
-
calendarMonthLabel:
|
|
3425
|
-
calendarNavButton:
|
|
3426
|
-
calendarGrid:
|
|
3427
|
-
calendarDayHeader:
|
|
3428
|
-
calendarDayAvailable:
|
|
3429
|
-
calendarDayDisabled:
|
|
3430
|
-
calendarDaySelected:
|
|
3431
|
-
timesHeader:
|
|
3432
|
-
timeRow:
|
|
3433
|
-
timeButton:
|
|
3434
|
-
timeButtonSelected:
|
|
3435
|
-
field:
|
|
3436
|
-
fieldLabel:
|
|
3437
|
-
input:
|
|
3438
|
-
fieldset:
|
|
3439
|
-
radioRow:
|
|
3440
|
-
radioOption:
|
|
3441
|
-
faqBelowActions:
|
|
3442
|
-
faq:
|
|
3443
|
-
faqHeader:
|
|
3444
|
-
faqItem:
|
|
3445
|
-
faqQuestion:
|
|
3446
|
-
faqAnswer:
|
|
3447
|
-
faqChevron:
|
|
3448
|
-
errorText:
|
|
3449
|
-
actionsRow:
|
|
3450
|
-
linkButton:
|
|
3451
|
-
primaryButton:
|
|
3452
|
-
successCheckCircle:
|
|
3453
|
-
summaryCard:
|
|
3454
|
-
summaryRow:
|
|
3455
|
-
summaryIcon:
|
|
3456
|
-
},
|
|
3433
|
+
leftColumn: Is,
|
|
3434
|
+
introHeader: Es,
|
|
3435
|
+
schedule: Ps,
|
|
3436
|
+
subtitleLeft: Ls,
|
|
3437
|
+
feature: Ts,
|
|
3438
|
+
featureTitle: As,
|
|
3439
|
+
featureDescription: Ds,
|
|
3440
|
+
title: Os,
|
|
3441
|
+
subtitle: Rs,
|
|
3442
|
+
calendarHeader: Bs,
|
|
3443
|
+
calendarMonthLabel: Ms,
|
|
3444
|
+
calendarNavButton: Fs,
|
|
3445
|
+
calendarGrid: $s,
|
|
3446
|
+
calendarDayHeader: Ws,
|
|
3447
|
+
calendarDayAvailable: Hs,
|
|
3448
|
+
calendarDayDisabled: Vs,
|
|
3449
|
+
calendarDaySelected: qs,
|
|
3450
|
+
timesHeader: Gs,
|
|
3451
|
+
timeRow: Us,
|
|
3452
|
+
timeButton: Ys,
|
|
3453
|
+
timeButtonSelected: Zs,
|
|
3454
|
+
field: Ks,
|
|
3455
|
+
fieldLabel: zs,
|
|
3456
|
+
input: Js,
|
|
3457
|
+
fieldset: Xs,
|
|
3458
|
+
radioRow: Qs,
|
|
3459
|
+
radioOption: eo,
|
|
3460
|
+
faqBelowActions: to,
|
|
3461
|
+
faq: ro,
|
|
3462
|
+
faqHeader: no,
|
|
3463
|
+
faqItem: ao,
|
|
3464
|
+
faqQuestion: so,
|
|
3465
|
+
faqAnswer: oo,
|
|
3466
|
+
faqChevron: io,
|
|
3467
|
+
errorText: lo,
|
|
3468
|
+
actionsRow: co,
|
|
3469
|
+
linkButton: uo,
|
|
3470
|
+
primaryButton: ho,
|
|
3471
|
+
successCheckCircle: fo,
|
|
3472
|
+
summaryCard: mo,
|
|
3473
|
+
summaryRow: po,
|
|
3474
|
+
summaryIcon: go
|
|
3475
|
+
}, _o = {
|
|
3457
3476
|
loading: !0,
|
|
3458
3477
|
error: null,
|
|
3459
3478
|
availableSlots: [],
|
|
3460
3479
|
isSlotBased: !1,
|
|
3461
3480
|
timezone: "UTC"
|
|
3462
3481
|
};
|
|
3463
|
-
function
|
|
3482
|
+
function Fo({
|
|
3464
3483
|
offerId: e,
|
|
3465
3484
|
customerName: r,
|
|
3466
3485
|
customerPhone: a,
|
|
@@ -3469,79 +3488,79 @@ function $o({
|
|
|
3469
3488
|
onScheduled: i,
|
|
3470
3489
|
onDone: m,
|
|
3471
3490
|
onReady: f,
|
|
3472
|
-
onError:
|
|
3491
|
+
onError: u
|
|
3473
3492
|
}) {
|
|
3474
|
-
const
|
|
3475
|
-
|
|
3476
|
-
const
|
|
3477
|
-
|
|
3478
|
-
if (
|
|
3493
|
+
const l = Nt(), c = Pe(o), [p, _] = E(_o), [x, I] = E("select"), [D, B] = E(null), [P, S] = E(null), [j, ee] = E(null), [V, ae] = E(r ?? ""), [Z, L] = E(qe(a ?? "")), [se, K] = E(null), [ie, Y] = E(""), [z, q] = E(!1), [J, ue] = E(null), y = U(r);
|
|
3494
|
+
y.current = r;
|
|
3495
|
+
const k = U(a);
|
|
3496
|
+
k.current = a, ce(() => {
|
|
3497
|
+
if (y.current && k.current)
|
|
3479
3498
|
return;
|
|
3480
|
-
let
|
|
3499
|
+
let w = !1;
|
|
3481
3500
|
return (async () => {
|
|
3482
3501
|
try {
|
|
3483
|
-
const
|
|
3502
|
+
const T = await l.getCustomerContact({
|
|
3484
3503
|
opendoorOfferRequestId: e
|
|
3485
3504
|
});
|
|
3486
|
-
if (
|
|
3487
|
-
|
|
3488
|
-
(
|
|
3489
|
-
),
|
|
3490
|
-
(
|
|
3505
|
+
if (w) return;
|
|
3506
|
+
ae(
|
|
3507
|
+
(F) => !y.current && !F && T.fullName ? T.fullName : F
|
|
3508
|
+
), L(
|
|
3509
|
+
(F) => !k.current && !F && T.phoneNumber ? qe(T.phoneNumber) : F
|
|
3491
3510
|
);
|
|
3492
3511
|
} catch {
|
|
3493
3512
|
}
|
|
3494
3513
|
})(), () => {
|
|
3495
|
-
|
|
3514
|
+
w = !0;
|
|
3496
3515
|
};
|
|
3497
|
-
}, [
|
|
3498
|
-
let
|
|
3516
|
+
}, [l, e]), ce(() => {
|
|
3517
|
+
let w = !1;
|
|
3499
3518
|
return (async () => {
|
|
3500
3519
|
try {
|
|
3501
|
-
const
|
|
3502
|
-
if (
|
|
3520
|
+
const T = await l.getAssessmentSlots({ offerId: e });
|
|
3521
|
+
if (w) return;
|
|
3503
3522
|
if (_({
|
|
3504
3523
|
loading: !1,
|
|
3505
3524
|
error: null,
|
|
3506
|
-
availableSlots:
|
|
3507
|
-
isSlotBased:
|
|
3508
|
-
timezone:
|
|
3509
|
-
}),
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
yt(
|
|
3525
|
+
availableSlots: T.availableSlots,
|
|
3526
|
+
isSlotBased: T.isSlotBased,
|
|
3527
|
+
timezone: T.timezone
|
|
3528
|
+
}), T.availableSlots.length > 0)
|
|
3529
|
+
ee(
|
|
3530
|
+
yo(
|
|
3531
|
+
yt(T.availableSlots[0], T.timezone)
|
|
3513
3532
|
)
|
|
3514
3533
|
);
|
|
3515
3534
|
else {
|
|
3516
|
-
const
|
|
3517
|
-
|
|
3535
|
+
const F = /* @__PURE__ */ new Date();
|
|
3536
|
+
ee({ year: F.getFullYear(), month: F.getMonth() });
|
|
3518
3537
|
}
|
|
3519
3538
|
f == null || f();
|
|
3520
|
-
} catch (
|
|
3521
|
-
const
|
|
3522
|
-
if (
|
|
3523
|
-
_((
|
|
3524
|
-
const
|
|
3525
|
-
|
|
3539
|
+
} catch (T) {
|
|
3540
|
+
const F = T instanceof Error ? T : new Error(String(T));
|
|
3541
|
+
if (w) return;
|
|
3542
|
+
_((de) => ({ ...de, loading: !1, error: F }));
|
|
3543
|
+
const $ = /* @__PURE__ */ new Date();
|
|
3544
|
+
ee({ year: $.getFullYear(), month: $.getMonth() }), u == null || u(F);
|
|
3526
3545
|
}
|
|
3527
3546
|
})(), () => {
|
|
3528
|
-
|
|
3547
|
+
w = !0;
|
|
3529
3548
|
};
|
|
3530
|
-
}, [
|
|
3531
|
-
const
|
|
3532
|
-
const
|
|
3533
|
-
for (const
|
|
3534
|
-
const
|
|
3535
|
-
|
|
3549
|
+
}, [l, e]);
|
|
3550
|
+
const C = Ie(() => {
|
|
3551
|
+
const w = /* @__PURE__ */ new Map();
|
|
3552
|
+
for (const T of p.availableSlots) {
|
|
3553
|
+
const F = yt(T, p.timezone), $ = w.get(F) ?? [];
|
|
3554
|
+
$.push(T), w.set(F, $);
|
|
3536
3555
|
}
|
|
3537
|
-
return
|
|
3556
|
+
return w;
|
|
3538
3557
|
}, [p.availableSlots, p.timezone]);
|
|
3539
3558
|
if (p.loading || !j)
|
|
3540
3559
|
return /* @__PURE__ */ t.jsx(
|
|
3541
3560
|
"div",
|
|
3542
3561
|
{
|
|
3543
3562
|
className: g.root,
|
|
3544
|
-
style:
|
|
3563
|
+
style: c,
|
|
3545
3564
|
"data-testid": "schedule-assessment-loading",
|
|
3546
3565
|
children: /* @__PURE__ */ t.jsx("div", { className: g.card, children: /* @__PURE__ */ t.jsx("p", { className: g.subtitle, children: "Loading available times…" }) })
|
|
3547
3566
|
}
|
|
@@ -3551,18 +3570,18 @@ function $o({
|
|
|
3551
3570
|
"div",
|
|
3552
3571
|
{
|
|
3553
3572
|
className: g.root,
|
|
3554
|
-
style:
|
|
3573
|
+
style: c,
|
|
3555
3574
|
"data-testid": "schedule-assessment-error",
|
|
3556
3575
|
children: /* @__PURE__ */ t.jsx("div", { className: g.card, children: /* @__PURE__ */ t.jsx("p", { className: g.subtitle, children: "We couldn't load available times. Please try again in a few minutes." }) })
|
|
3557
3576
|
}
|
|
3558
3577
|
);
|
|
3559
|
-
if (
|
|
3560
|
-
const
|
|
3578
|
+
if (x === "success") {
|
|
3579
|
+
const w = P ? new Date(P) : null;
|
|
3561
3580
|
return /* @__PURE__ */ t.jsx(
|
|
3562
3581
|
"div",
|
|
3563
3582
|
{
|
|
3564
3583
|
className: g.root,
|
|
3565
|
-
style:
|
|
3584
|
+
style: c,
|
|
3566
3585
|
"data-testid": "schedule-assessment-success",
|
|
3567
3586
|
children: /* @__PURE__ */ t.jsxs("div", { className: g.card, children: [
|
|
3568
3587
|
/* @__PURE__ */ t.jsx("div", { className: g.successCheckCircle, "aria-hidden": "true", children: /* @__PURE__ */ t.jsx("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ t.jsx(
|
|
@@ -3575,21 +3594,21 @@ function $o({
|
|
|
3575
3594
|
strokeLinejoin: "round"
|
|
3576
3595
|
}
|
|
3577
3596
|
) }) }),
|
|
3578
|
-
/* @__PURE__ */ t.jsx("h2", { className: g.title, children:
|
|
3597
|
+
/* @__PURE__ */ t.jsx("h2", { className: g.title, children: V ? `${bo(V)}, your assessment is scheduled!` : "Your assessment is scheduled!" }),
|
|
3579
3598
|
/* @__PURE__ */ t.jsx("p", { className: g.subtitle, children: "A calendar invite has been sent to your email address." }),
|
|
3580
3599
|
/* @__PURE__ */ t.jsxs("div", { className: g.summaryCard, children: [
|
|
3581
|
-
|
|
3600
|
+
w && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
3582
3601
|
/* @__PURE__ */ t.jsxs("div", { className: g.summaryRow, children: [
|
|
3583
|
-
/* @__PURE__ */ t.jsx(
|
|
3584
|
-
/* @__PURE__ */ t.jsx("span", { children: vt(
|
|
3602
|
+
/* @__PURE__ */ t.jsx(ko, {}),
|
|
3603
|
+
/* @__PURE__ */ t.jsx("span", { children: vt(w, p.timezone) })
|
|
3585
3604
|
] }),
|
|
3586
3605
|
/* @__PURE__ */ t.jsxs("div", { className: g.summaryRow, children: [
|
|
3587
|
-
/* @__PURE__ */ t.jsx(
|
|
3588
|
-
/* @__PURE__ */ t.jsx("span", { children: xt(
|
|
3606
|
+
/* @__PURE__ */ t.jsx(jo, {}),
|
|
3607
|
+
/* @__PURE__ */ t.jsx("span", { children: xt(w, p.timezone) })
|
|
3589
3608
|
] })
|
|
3590
3609
|
] }),
|
|
3591
3610
|
s && /* @__PURE__ */ t.jsxs("div", { className: g.summaryRow, children: [
|
|
3592
|
-
/* @__PURE__ */ t.jsx(
|
|
3611
|
+
/* @__PURE__ */ t.jsx(No, {}),
|
|
3593
3612
|
/* @__PURE__ */ t.jsx("span", { children: s })
|
|
3594
3613
|
] })
|
|
3595
3614
|
] }),
|
|
@@ -3606,27 +3625,27 @@ function $o({
|
|
|
3606
3625
|
}
|
|
3607
3626
|
);
|
|
3608
3627
|
}
|
|
3609
|
-
if (
|
|
3610
|
-
const
|
|
3611
|
-
if (!(!
|
|
3628
|
+
if (x === "confirm") {
|
|
3629
|
+
const w = Z.replace(/\D/g, ""), T = !z && V.trim().length > 0 && w.length >= 10 && se !== null && (!se || ie.trim().length > 0), F = async () => {
|
|
3630
|
+
if (!(!T || !P)) {
|
|
3612
3631
|
q(!0), ue(null);
|
|
3613
3632
|
try {
|
|
3614
|
-
const
|
|
3633
|
+
const $ = se ? `Customer: ${V.trim()}. Access instructions: ${ie.trim()}` : `Customer: ${V.trim()}. No gate code or entry restrictions.`, de = await l.scheduleAssessment({
|
|
3615
3634
|
offerId: e,
|
|
3616
3635
|
selectedInspectionTime: P,
|
|
3617
|
-
reminderPhone:
|
|
3618
|
-
notes:
|
|
3636
|
+
reminderPhone: Z.replace(/\D/g, ""),
|
|
3637
|
+
notes: $
|
|
3619
3638
|
});
|
|
3620
|
-
|
|
3639
|
+
I("success");
|
|
3621
3640
|
try {
|
|
3622
|
-
await (i == null ? void 0 : i(
|
|
3641
|
+
await (i == null ? void 0 : i(de.visitId));
|
|
3623
3642
|
} catch (xe) {
|
|
3624
|
-
const
|
|
3625
|
-
|
|
3643
|
+
const _e = xe instanceof Error ? xe : new Error(String(xe));
|
|
3644
|
+
u == null || u(_e);
|
|
3626
3645
|
}
|
|
3627
|
-
} catch (
|
|
3628
|
-
const
|
|
3629
|
-
ue(
|
|
3646
|
+
} catch ($) {
|
|
3647
|
+
const de = $ instanceof Error ? $ : new Error(String($));
|
|
3648
|
+
ue(de.message), u == null || u(de);
|
|
3630
3649
|
} finally {
|
|
3631
3650
|
q(!1);
|
|
3632
3651
|
}
|
|
@@ -3636,7 +3655,7 @@ function $o({
|
|
|
3636
3655
|
"div",
|
|
3637
3656
|
{
|
|
3638
3657
|
className: g.root,
|
|
3639
|
-
style:
|
|
3658
|
+
style: c,
|
|
3640
3659
|
"data-testid": "schedule-assessment-confirm",
|
|
3641
3660
|
children: /* @__PURE__ */ t.jsxs("div", { className: g.card, children: [
|
|
3642
3661
|
/* @__PURE__ */ t.jsx("h2", { className: g.title, children: "Confirm your details" }),
|
|
@@ -3647,9 +3666,9 @@ function $o({
|
|
|
3647
3666
|
{
|
|
3648
3667
|
className: g.input,
|
|
3649
3668
|
type: "text",
|
|
3650
|
-
value:
|
|
3651
|
-
onChange: (
|
|
3652
|
-
disabled:
|
|
3669
|
+
value: V,
|
|
3670
|
+
onChange: ($) => ae($.target.value),
|
|
3671
|
+
disabled: z
|
|
3653
3672
|
}
|
|
3654
3673
|
)
|
|
3655
3674
|
] }),
|
|
@@ -3663,9 +3682,9 @@ function $o({
|
|
|
3663
3682
|
inputMode: "tel",
|
|
3664
3683
|
autoComplete: "tel",
|
|
3665
3684
|
placeholder: "(555) 555-5555",
|
|
3666
|
-
value:
|
|
3667
|
-
onChange: (
|
|
3668
|
-
disabled:
|
|
3685
|
+
value: Z,
|
|
3686
|
+
onChange: ($) => L(qe($.target.value)),
|
|
3687
|
+
disabled: z
|
|
3669
3688
|
}
|
|
3670
3689
|
)
|
|
3671
3690
|
] }),
|
|
@@ -3678,9 +3697,9 @@ function $o({
|
|
|
3678
3697
|
{
|
|
3679
3698
|
type: "radio",
|
|
3680
3699
|
name: "gate-code",
|
|
3681
|
-
checked:
|
|
3682
|
-
onChange: () =>
|
|
3683
|
-
disabled:
|
|
3700
|
+
checked: se === !0,
|
|
3701
|
+
onChange: () => K(!0),
|
|
3702
|
+
disabled: z
|
|
3684
3703
|
}
|
|
3685
3704
|
),
|
|
3686
3705
|
/* @__PURE__ */ t.jsx("span", { children: "Yes" })
|
|
@@ -3691,16 +3710,16 @@ function $o({
|
|
|
3691
3710
|
{
|
|
3692
3711
|
type: "radio",
|
|
3693
3712
|
name: "gate-code",
|
|
3694
|
-
checked:
|
|
3695
|
-
onChange: () =>
|
|
3696
|
-
disabled:
|
|
3713
|
+
checked: se === !1,
|
|
3714
|
+
onChange: () => K(!1),
|
|
3715
|
+
disabled: z
|
|
3697
3716
|
}
|
|
3698
3717
|
),
|
|
3699
3718
|
/* @__PURE__ */ t.jsx("span", { children: "No" })
|
|
3700
3719
|
] })
|
|
3701
3720
|
] })
|
|
3702
3721
|
] }),
|
|
3703
|
-
|
|
3722
|
+
se && /* @__PURE__ */ t.jsxs("label", { className: g.field, children: [
|
|
3704
3723
|
/* @__PURE__ */ t.jsx("span", { className: g.fieldLabel, children: "Please provide access instructions for your home." }),
|
|
3705
3724
|
/* @__PURE__ */ t.jsx(
|
|
3706
3725
|
"input",
|
|
@@ -3708,21 +3727,21 @@ function $o({
|
|
|
3708
3727
|
className: g.input,
|
|
3709
3728
|
type: "text",
|
|
3710
3729
|
placeholder: "Gate code, directions, etc.",
|
|
3711
|
-
value:
|
|
3712
|
-
onChange: (
|
|
3713
|
-
disabled:
|
|
3730
|
+
value: ie,
|
|
3731
|
+
onChange: ($) => Y($.target.value),
|
|
3732
|
+
disabled: z
|
|
3714
3733
|
}
|
|
3715
3734
|
)
|
|
3716
3735
|
] }),
|
|
3717
|
-
|
|
3736
|
+
J && /* @__PURE__ */ t.jsx("p", { className: g.errorText, children: J }),
|
|
3718
3737
|
/* @__PURE__ */ t.jsxs("div", { className: g.actionsRow, children: [
|
|
3719
3738
|
/* @__PURE__ */ t.jsx(
|
|
3720
3739
|
"button",
|
|
3721
3740
|
{
|
|
3722
3741
|
type: "button",
|
|
3723
3742
|
className: g.linkButton,
|
|
3724
|
-
onClick: () =>
|
|
3725
|
-
disabled:
|
|
3743
|
+
onClick: () => I("select"),
|
|
3744
|
+
disabled: z,
|
|
3726
3745
|
children: "← Back"
|
|
3727
3746
|
}
|
|
3728
3747
|
),
|
|
@@ -3731,23 +3750,23 @@ function $o({
|
|
|
3731
3750
|
{
|
|
3732
3751
|
type: "button",
|
|
3733
3752
|
className: g.primaryButton,
|
|
3734
|
-
onClick: () => void
|
|
3735
|
-
disabled: !
|
|
3736
|
-
children:
|
|
3753
|
+
onClick: () => void F(),
|
|
3754
|
+
disabled: !T,
|
|
3755
|
+
children: z ? "Scheduling…" : "Schedule"
|
|
3737
3756
|
}
|
|
3738
3757
|
)
|
|
3739
3758
|
] }),
|
|
3740
|
-
/* @__PURE__ */ t.jsx("div", { className: g.faqBelowActions, children: /* @__PURE__ */ t.jsx(
|
|
3759
|
+
/* @__PURE__ */ t.jsx("div", { className: g.faqBelowActions, children: /* @__PURE__ */ t.jsx(Po, { items: Io }) })
|
|
3741
3760
|
] })
|
|
3742
3761
|
}
|
|
3743
3762
|
);
|
|
3744
3763
|
}
|
|
3745
|
-
const
|
|
3764
|
+
const fe = vo(j), G = xo(j), oe = Co(j, C), M = wo(j, C), le = D ? C.get(D) ?? [] : [], ge = le[0] ? vt(new Date(le[0]), p.timezone) : null;
|
|
3746
3765
|
return /* @__PURE__ */ t.jsx(
|
|
3747
3766
|
"div",
|
|
3748
3767
|
{
|
|
3749
3768
|
className: g.root,
|
|
3750
|
-
style:
|
|
3769
|
+
style: c,
|
|
3751
3770
|
"data-testid": "schedule-assessment-flow",
|
|
3752
3771
|
children: /* @__PURE__ */ t.jsx("div", { className: g.card, children: /* @__PURE__ */ t.jsxs("div", { className: g.stepLayout, children: [
|
|
3753
3772
|
/* @__PURE__ */ t.jsxs("div", { className: g.leftColumn, children: [
|
|
@@ -3755,10 +3774,10 @@ function $o({
|
|
|
3755
3774
|
/* @__PURE__ */ t.jsx("h2", { className: g.titleLarge, children: "Schedule your assessment" }),
|
|
3756
3775
|
/* @__PURE__ */ t.jsx("p", { className: g.subtitleLeft, children: "Pick a time that works for you." })
|
|
3757
3776
|
] }),
|
|
3758
|
-
/* @__PURE__ */ t.jsx("div", { className: g.featuresList, children: So.map((
|
|
3759
|
-
/* @__PURE__ */ t.jsx("p", { className: g.featureTitle, children:
|
|
3760
|
-
/* @__PURE__ */ t.jsx("p", { className: g.featureDescription, children:
|
|
3761
|
-
] },
|
|
3777
|
+
/* @__PURE__ */ t.jsx("div", { className: g.featuresList, children: So.map((w) => /* @__PURE__ */ t.jsxs("div", { className: g.feature, children: [
|
|
3778
|
+
/* @__PURE__ */ t.jsx("p", { className: g.featureTitle, children: w.title }),
|
|
3779
|
+
/* @__PURE__ */ t.jsx("p", { className: g.featureDescription, children: w.description })
|
|
3780
|
+
] }, w.title)) })
|
|
3762
3781
|
] }),
|
|
3763
3782
|
/* @__PURE__ */ t.jsxs("div", { className: g.schedule, children: [
|
|
3764
3783
|
/* @__PURE__ */ t.jsxs("div", { className: g.calendarHeader, children: [
|
|
@@ -3767,61 +3786,61 @@ function $o({
|
|
|
3767
3786
|
{
|
|
3768
3787
|
type: "button",
|
|
3769
3788
|
className: g.calendarNavButton,
|
|
3770
|
-
onClick: () =>
|
|
3771
|
-
disabled: !
|
|
3789
|
+
onClick: () => ee(Ct(j, -1)),
|
|
3790
|
+
disabled: !oe,
|
|
3772
3791
|
"aria-label": "Previous month",
|
|
3773
3792
|
children: "‹"
|
|
3774
3793
|
}
|
|
3775
3794
|
),
|
|
3776
|
-
/* @__PURE__ */ t.jsx("span", { className: g.calendarMonthLabel, children:
|
|
3795
|
+
/* @__PURE__ */ t.jsx("span", { className: g.calendarMonthLabel, children: G }),
|
|
3777
3796
|
/* @__PURE__ */ t.jsx(
|
|
3778
3797
|
"button",
|
|
3779
3798
|
{
|
|
3780
3799
|
type: "button",
|
|
3781
3800
|
className: g.calendarNavButton,
|
|
3782
|
-
onClick: () =>
|
|
3783
|
-
disabled: !
|
|
3801
|
+
onClick: () => ee(Ct(j, 1)),
|
|
3802
|
+
disabled: !M,
|
|
3784
3803
|
"aria-label": "Next month",
|
|
3785
3804
|
children: "›"
|
|
3786
3805
|
}
|
|
3787
3806
|
)
|
|
3788
3807
|
] }),
|
|
3789
3808
|
/* @__PURE__ */ t.jsxs("div", { className: g.calendarGrid, children: [
|
|
3790
|
-
["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"].map((
|
|
3791
|
-
|
|
3792
|
-
const
|
|
3809
|
+
["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"].map((w) => /* @__PURE__ */ t.jsx("div", { className: g.calendarDayHeader, children: w }, w)),
|
|
3810
|
+
fe.map((w, T) => {
|
|
3811
|
+
const F = w ? C.has(w.key) : !1, $ = !!w && w.key === D;
|
|
3793
3812
|
return /* @__PURE__ */ t.jsx(
|
|
3794
3813
|
"button",
|
|
3795
3814
|
{
|
|
3796
3815
|
type: "button",
|
|
3797
|
-
className:
|
|
3816
|
+
className: $ ? g.calendarDaySelected : F ? g.calendarDayAvailable : g.calendarDayDisabled,
|
|
3798
3817
|
onClick: () => {
|
|
3799
|
-
|
|
3818
|
+
w && F && (B(w.key), S(null));
|
|
3800
3819
|
},
|
|
3801
|
-
disabled: !
|
|
3802
|
-
"aria-pressed":
|
|
3803
|
-
children:
|
|
3820
|
+
disabled: !F,
|
|
3821
|
+
"aria-pressed": !!$,
|
|
3822
|
+
children: w ? w.day : ""
|
|
3804
3823
|
},
|
|
3805
|
-
|
|
3824
|
+
w ? w.key : `empty-${G}-${T}`
|
|
3806
3825
|
);
|
|
3807
3826
|
})
|
|
3808
3827
|
] }),
|
|
3809
|
-
|
|
3828
|
+
ge && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
3810
3829
|
/* @__PURE__ */ t.jsxs("p", { className: g.timesHeader, children: [
|
|
3811
3830
|
"Available times for ",
|
|
3812
|
-
|
|
3831
|
+
ge
|
|
3813
3832
|
] }),
|
|
3814
|
-
/* @__PURE__ */ t.jsx("div", { className: g.timeRow, children:
|
|
3815
|
-
const
|
|
3833
|
+
/* @__PURE__ */ t.jsx("div", { className: g.timeRow, children: le.map((w) => {
|
|
3834
|
+
const T = w === P;
|
|
3816
3835
|
return /* @__PURE__ */ t.jsx(
|
|
3817
3836
|
"button",
|
|
3818
3837
|
{
|
|
3819
3838
|
type: "button",
|
|
3820
|
-
className:
|
|
3821
|
-
onClick: () =>
|
|
3822
|
-
children: xt(new Date(
|
|
3839
|
+
className: T ? g.timeButtonSelected : g.timeButton,
|
|
3840
|
+
onClick: () => S(w),
|
|
3841
|
+
children: xt(new Date(w), p.timezone)
|
|
3823
3842
|
},
|
|
3824
|
-
|
|
3843
|
+
w
|
|
3825
3844
|
);
|
|
3826
3845
|
}) })
|
|
3827
3846
|
] }),
|
|
@@ -3830,7 +3849,7 @@ function $o({
|
|
|
3830
3849
|
{
|
|
3831
3850
|
type: "button",
|
|
3832
3851
|
className: g.primaryButton,
|
|
3833
|
-
onClick: () =>
|
|
3852
|
+
onClick: () => I("confirm"),
|
|
3834
3853
|
disabled: !P,
|
|
3835
3854
|
children: "Continue"
|
|
3836
3855
|
}
|
|
@@ -3840,7 +3859,7 @@ function $o({
|
|
|
3840
3859
|
}
|
|
3841
3860
|
);
|
|
3842
3861
|
}
|
|
3843
|
-
function
|
|
3862
|
+
function bo(e) {
|
|
3844
3863
|
return e.trim().split(/\s+/)[0] ?? "";
|
|
3845
3864
|
}
|
|
3846
3865
|
function qe(e) {
|
|
@@ -3856,7 +3875,7 @@ function yt(e, r) {
|
|
|
3856
3875
|
day: "2-digit"
|
|
3857
3876
|
}).format(a);
|
|
3858
3877
|
}
|
|
3859
|
-
function
|
|
3878
|
+
function yo(e) {
|
|
3860
3879
|
const [r, a] = e.split("-").map((s) => parseInt(s, 10));
|
|
3861
3880
|
return { year: r, month: a - 1 };
|
|
3862
3881
|
}
|
|
@@ -3880,25 +3899,25 @@ function Ct(e, r) {
|
|
|
3880
3899
|
const a = e.year * 12 + e.month + r, s = Math.floor(a / 12), o = a - s * 12;
|
|
3881
3900
|
return { year: s, month: o };
|
|
3882
3901
|
}
|
|
3883
|
-
function
|
|
3902
|
+
function vo({ year: e, month: r }) {
|
|
3884
3903
|
const a = new Date(Date.UTC(e, r, 1)).getUTCDay(), s = new Date(Date.UTC(e, r + 1, 0)).getUTCDate(), o = Math.ceil((a + s) / 7) * 7, i = [], m = String(e).padStart(4, "0"), f = String(r + 1).padStart(2, "0");
|
|
3885
|
-
for (let
|
|
3886
|
-
const
|
|
3887
|
-
|
|
3888
|
-
key: `${m}-${f}-${String(
|
|
3889
|
-
day:
|
|
3904
|
+
for (let u = 0; u < o; u++) {
|
|
3905
|
+
const l = u - a + 1;
|
|
3906
|
+
l < 1 || l > s ? i.push(null) : i.push({
|
|
3907
|
+
key: `${m}-${f}-${String(l).padStart(2, "0")}`,
|
|
3908
|
+
day: l
|
|
3890
3909
|
});
|
|
3891
3910
|
}
|
|
3892
3911
|
return i;
|
|
3893
3912
|
}
|
|
3894
|
-
function
|
|
3913
|
+
function xo({ year: e, month: r }) {
|
|
3895
3914
|
return new Date(Date.UTC(e, r, 1)).toLocaleString(void 0, {
|
|
3896
3915
|
timeZone: "UTC",
|
|
3897
3916
|
month: "long",
|
|
3898
3917
|
year: "numeric"
|
|
3899
3918
|
});
|
|
3900
3919
|
}
|
|
3901
|
-
function
|
|
3920
|
+
function Co(e, r) {
|
|
3902
3921
|
for (const a of r.keys()) {
|
|
3903
3922
|
const [s, o] = a.split("-").map((i) => parseInt(i, 10));
|
|
3904
3923
|
if (s < e.year || s === e.year && o - 1 < e.month)
|
|
@@ -3906,7 +3925,7 @@ function wo(e, r) {
|
|
|
3906
3925
|
}
|
|
3907
3926
|
return !1;
|
|
3908
3927
|
}
|
|
3909
|
-
function
|
|
3928
|
+
function wo(e, r) {
|
|
3910
3929
|
for (const a of r.keys()) {
|
|
3911
3930
|
const [s, o] = a.split("-").map((i) => parseInt(i, 10));
|
|
3912
3931
|
if (s > e.year || s === e.year && o - 1 > e.month)
|
|
@@ -3928,19 +3947,19 @@ function Je() {
|
|
|
3928
3947
|
className: g.summaryIcon
|
|
3929
3948
|
};
|
|
3930
3949
|
}
|
|
3931
|
-
function
|
|
3950
|
+
function ko() {
|
|
3932
3951
|
return /* @__PURE__ */ t.jsxs("svg", { ...Je(), children: [
|
|
3933
3952
|
/* @__PURE__ */ t.jsx("rect", { x: "2", y: "3.5", width: "12", height: "11", rx: "1.5" }),
|
|
3934
3953
|
/* @__PURE__ */ t.jsx("path", { d: "M2 6.5h12M5.5 2v3M10.5 2v3" })
|
|
3935
3954
|
] });
|
|
3936
3955
|
}
|
|
3937
|
-
function
|
|
3956
|
+
function jo() {
|
|
3938
3957
|
return /* @__PURE__ */ t.jsxs("svg", { ...Je(), children: [
|
|
3939
3958
|
/* @__PURE__ */ t.jsx("circle", { cx: "8", cy: "8", r: "6" }),
|
|
3940
3959
|
/* @__PURE__ */ t.jsx("path", { d: "M8 4.5V8l2.5 1.5" })
|
|
3941
3960
|
] });
|
|
3942
3961
|
}
|
|
3943
|
-
function
|
|
3962
|
+
function No() {
|
|
3944
3963
|
return /* @__PURE__ */ t.jsxs("svg", { ...Je(), children: [
|
|
3945
3964
|
/* @__PURE__ */ t.jsx("path", { d: "M8 14s-4.5-4-4.5-7.5a4.5 4.5 0 1 1 9 0C12.5 10 8 14 8 14z" }),
|
|
3946
3965
|
/* @__PURE__ */ t.jsx("circle", { cx: "8", cy: "6.5", r: "1.5" })
|
|
@@ -3959,7 +3978,7 @@ const So = [
|
|
|
3959
3978
|
title: "30 minutes or less",
|
|
3960
3979
|
description: "Examine the home's exterior and take a quick look inside."
|
|
3961
3980
|
}
|
|
3962
|
-
],
|
|
3981
|
+
], Io = [
|
|
3963
3982
|
{
|
|
3964
3983
|
title: "What are you looking for during the assessment?",
|
|
3965
3984
|
body: "We will verify the property's condition matches your contract. We'll check the home's exterior and interior, including major systems, structure, and overall condition. This helps us confirm all details are accurate before closing."
|
|
@@ -3973,7 +3992,7 @@ const So = [
|
|
|
3973
3992
|
body: "Once we're done with the home assessment, it typically takes a few days to email your final offer. You'll be able to see your final offer price along with the service charge, any repair cost, and your estimated closing costs."
|
|
3974
3993
|
}
|
|
3975
3994
|
];
|
|
3976
|
-
function
|
|
3995
|
+
function Eo() {
|
|
3977
3996
|
return /* @__PURE__ */ t.jsx(
|
|
3978
3997
|
"svg",
|
|
3979
3998
|
{
|
|
@@ -3991,7 +4010,7 @@ function Po() {
|
|
|
3991
4010
|
}
|
|
3992
4011
|
);
|
|
3993
4012
|
}
|
|
3994
|
-
function
|
|
4013
|
+
function Po({
|
|
3995
4014
|
items: e
|
|
3996
4015
|
}) {
|
|
3997
4016
|
return /* @__PURE__ */ t.jsxs("div", { className: g.faq, children: [
|
|
@@ -3999,20 +4018,20 @@ function Lo({
|
|
|
3999
4018
|
e.map((r) => /* @__PURE__ */ t.jsxs("details", { className: g.faqItem, children: [
|
|
4000
4019
|
/* @__PURE__ */ t.jsxs("summary", { className: g.faqQuestion, children: [
|
|
4001
4020
|
/* @__PURE__ */ t.jsx("span", { children: r.title }),
|
|
4002
|
-
/* @__PURE__ */ t.jsx(
|
|
4021
|
+
/* @__PURE__ */ t.jsx(Eo, {})
|
|
4003
4022
|
] }),
|
|
4004
4023
|
/* @__PURE__ */ t.jsx("p", { className: g.faqAnswer, children: r.body })
|
|
4005
4024
|
] }, r.title))
|
|
4006
4025
|
] });
|
|
4007
4026
|
}
|
|
4008
4027
|
export {
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
4028
|
+
Oo as AddressEntry,
|
|
4029
|
+
Bo as AddressMap,
|
|
4030
|
+
Ro as AddressUnitConfirmation,
|
|
4031
|
+
Do as DTC_ONBOARDING_PAGE_IDS,
|
|
4032
|
+
Mo as DtcOnboardingFlow,
|
|
4033
|
+
Ao as OpendoorProvider,
|
|
4034
|
+
Fo as ScheduleAssessmentFlow,
|
|
4016
4035
|
cr as THEMES,
|
|
4017
4036
|
ur as resolveAppearance,
|
|
4018
4037
|
Nt as useOpendoorClient
|