@opendoor/partner-sdk-client-react 1.3.4-beta.118.1 → 1.3.4-beta.119.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/ScheduleAssessmentFlow/ScheduleAssessmentFlow.d.ts +13 -1
- package/dist/client-react/src/components/ScheduleAssessmentFlow/ScheduleAssessmentFlow.d.ts.map +1 -1
- package/dist/client-react/src/components/shared/OpendoorHeader.d.ts +9 -0
- package/dist/client-react/src/components/shared/OpendoorHeader.d.ts.map +1 -0
- package/dist/index.js +1519 -1540
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/client-react/src/components/DtcOnboardingFlow/DtcHeader.d.ts +0 -9
- package/dist/client-react/src/components/DtcOnboardingFlow/DtcHeader.d.ts.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { createPortal as
|
|
3
|
-
var
|
|
1
|
+
import jt, { createContext as qe, useState as E, useEffect as ie, useContext as Re, useRef as Z, useMemo as Pe, useCallback as Te, useLayoutEffect as Kt } from "react";
|
|
2
|
+
import { createPortal as qt } from "react-dom";
|
|
3
|
+
var Ze = { exports: {} }, Se = {};
|
|
4
4
|
/*
|
|
5
5
|
object-assign
|
|
6
6
|
(c) Sindre Sorhus
|
|
7
7
|
@license MIT
|
|
8
8
|
*/
|
|
9
|
-
var
|
|
10
|
-
function
|
|
11
|
-
if (
|
|
12
|
-
|
|
9
|
+
var He, ct;
|
|
10
|
+
function Nt() {
|
|
11
|
+
if (ct) return He;
|
|
12
|
+
ct = 1;
|
|
13
13
|
var e = Object.getOwnPropertySymbols, r = Object.prototype.hasOwnProperty, a = Object.prototype.propertyIsEnumerable;
|
|
14
14
|
function s(i) {
|
|
15
15
|
if (i == null)
|
|
@@ -23,34 +23,34 @@ function kt() {
|
|
|
23
23
|
var i = new String("abc");
|
|
24
24
|
if (i[5] = "de", Object.getOwnPropertyNames(i)[0] === "5")
|
|
25
25
|
return !1;
|
|
26
|
-
for (var
|
|
27
|
-
|
|
28
|
-
var
|
|
29
|
-
return
|
|
26
|
+
for (var f = {}, m = 0; m < 10; m++)
|
|
27
|
+
f["_" + String.fromCharCode(m)] = m;
|
|
28
|
+
var h = Object.getOwnPropertyNames(f).map(function(l) {
|
|
29
|
+
return f[l];
|
|
30
30
|
});
|
|
31
|
-
if (
|
|
31
|
+
if (h.join("") !== "0123456789")
|
|
32
32
|
return !1;
|
|
33
|
-
var
|
|
34
|
-
return "abcdefghijklmnopqrst".split("").forEach(function(
|
|
35
|
-
l
|
|
36
|
-
}), Object.keys(Object.assign({},
|
|
33
|
+
var c = {};
|
|
34
|
+
return "abcdefghijklmnopqrst".split("").forEach(function(l) {
|
|
35
|
+
c[l] = l;
|
|
36
|
+
}), Object.keys(Object.assign({}, c)).join("") === "abcdefghijklmnopqrst";
|
|
37
37
|
} catch {
|
|
38
38
|
return !1;
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
return
|
|
42
|
-
for (var
|
|
43
|
-
|
|
44
|
-
for (var
|
|
45
|
-
r.call(
|
|
41
|
+
return He = o() ? Object.assign : function(i, f) {
|
|
42
|
+
for (var m, h = s(i), c, l = 1; l < arguments.length; l++) {
|
|
43
|
+
m = Object(arguments[l]);
|
|
44
|
+
for (var _ in m)
|
|
45
|
+
r.call(m, _) && (h[_] = m[_]);
|
|
46
46
|
if (e) {
|
|
47
|
-
|
|
48
|
-
for (var
|
|
49
|
-
a.call(
|
|
47
|
+
c = e(m);
|
|
48
|
+
for (var g = 0; g < c.length; g++)
|
|
49
|
+
a.call(m, c[g]) && (h[c[g]] = m[c[g]]);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
return
|
|
53
|
-
},
|
|
52
|
+
return h;
|
|
53
|
+
}, He;
|
|
54
54
|
}
|
|
55
55
|
/** @license React v17.0.2
|
|
56
56
|
* react-jsx-runtime.production.min.js
|
|
@@ -60,26 +60,26 @@ function kt() {
|
|
|
60
60
|
* This source code is licensed under the MIT license found in the
|
|
61
61
|
* LICENSE file in the root directory of this source tree.
|
|
62
62
|
*/
|
|
63
|
-
var
|
|
64
|
-
function
|
|
65
|
-
if (
|
|
66
|
-
|
|
67
|
-
var e =
|
|
68
|
-
if (
|
|
63
|
+
var dt;
|
|
64
|
+
function zt() {
|
|
65
|
+
if (dt) return Se;
|
|
66
|
+
dt = 1, Nt();
|
|
67
|
+
var e = jt, r = 60103;
|
|
68
|
+
if (Se.Fragment = 60107, typeof Symbol == "function" && Symbol.for) {
|
|
69
69
|
var a = Symbol.for;
|
|
70
|
-
r = a("react.element"),
|
|
70
|
+
r = a("react.element"), Se.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
|
|
74
|
-
var
|
|
75
|
-
|
|
76
|
-
for (
|
|
77
|
-
if (
|
|
78
|
-
return { $$typeof: r, type:
|
|
73
|
+
function f(m, h, c) {
|
|
74
|
+
var l, _ = {}, g = null, b = null;
|
|
75
|
+
c !== void 0 && (g = "" + c), h.key !== void 0 && (g = "" + h.key), h.ref !== void 0 && (b = h.ref);
|
|
76
|
+
for (l in h) o.call(h, l) && !i.hasOwnProperty(l) && (_[l] = h[l]);
|
|
77
|
+
if (m && m.defaultProps) for (l in h = m.defaultProps, h) _[l] === void 0 && (_[l] = h[l]);
|
|
78
|
+
return { $$typeof: r, type: m, key: g, ref: b, props: _, _owner: s.current };
|
|
79
79
|
}
|
|
80
|
-
return
|
|
80
|
+
return Se.jsx = f, Se.jsxs = f, Se;
|
|
81
81
|
}
|
|
82
|
-
var
|
|
82
|
+
var Ve = {};
|
|
83
83
|
/** @license React v17.0.2
|
|
84
84
|
* react-jsx-runtime.development.js
|
|
85
85
|
*
|
|
@@ -88,57 +88,57 @@ var We = {};
|
|
|
88
88
|
* This source code is licensed under the MIT license found in the
|
|
89
89
|
* LICENSE file in the root directory of this source tree.
|
|
90
90
|
*/
|
|
91
|
-
var
|
|
92
|
-
function
|
|
93
|
-
return
|
|
91
|
+
var ut;
|
|
92
|
+
function Jt() {
|
|
93
|
+
return ut || (ut = 1, function(e) {
|
|
94
94
|
process.env.NODE_ENV !== "production" && function() {
|
|
95
|
-
var r =
|
|
95
|
+
var r = jt, a = Nt(), s = 60103, o = 60106;
|
|
96
96
|
e.Fragment = 60107;
|
|
97
|
-
var i = 60108,
|
|
97
|
+
var i = 60108, f = 60114, m = 60109, h = 60110, c = 60112, l = 60113, _ = 60120, g = 60115, b = 60116, I = 60121, D = 60122, O = 60117, A = 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"),
|
|
100
|
+
s = j("react.element"), o = j("react.portal"), e.Fragment = j("react.fragment"), i = j("react.strict_mode"), f = j("react.profiler"), m = j("react.provider"), h = j("react.context"), c = j("react.forward_ref"), l = j("react.suspense"), _ = j("react.suspense_list"), g = j("react.memo"), b = j("react.lazy"), I = j("react.block"), D = j("react.server.block"), O = j("react.fundamental"), j("react.scope"), j("react.opaque.id"), A = j("react.debug_trace_mode"), j("react.offscreen"), S = j("react.legacy_hidden");
|
|
101
101
|
}
|
|
102
|
-
var
|
|
103
|
-
function
|
|
102
|
+
var se = typeof Symbol == "function" && Symbol.iterator, V = "@@iterator";
|
|
103
|
+
function J(n) {
|
|
104
104
|
if (n === null || typeof n != "object")
|
|
105
105
|
return null;
|
|
106
|
-
var
|
|
107
|
-
return typeof
|
|
106
|
+
var d = se && n[se] || n[V];
|
|
107
|
+
return typeof d == "function" ? d : null;
|
|
108
108
|
}
|
|
109
|
-
var
|
|
110
|
-
function
|
|
109
|
+
var G = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
110
|
+
function P(n) {
|
|
111
111
|
{
|
|
112
|
-
for (var
|
|
113
|
-
|
|
114
|
-
|
|
112
|
+
for (var d = arguments.length, y = new Array(d > 1 ? d - 1 : 0), N = 1; N < d; N++)
|
|
113
|
+
y[N - 1] = arguments[N];
|
|
114
|
+
ce("error", n, y);
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function ce(n, d, y) {
|
|
118
118
|
{
|
|
119
|
-
var N =
|
|
120
|
-
|
|
121
|
-
var
|
|
122
|
-
return "" +
|
|
119
|
+
var N = G.ReactDebugCurrentFrame, U = N.getStackAddendum();
|
|
120
|
+
U !== "" && (d += "%s", y = y.concat([U]));
|
|
121
|
+
var H = y.map(function(R) {
|
|
122
|
+
return "" + R;
|
|
123
123
|
});
|
|
124
|
-
|
|
124
|
+
H.unshift("Warning: " + d), Function.prototype.apply.call(console[n], console, H);
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
|
-
var
|
|
128
|
-
function
|
|
129
|
-
return !!(typeof n == "string" || typeof n == "function" || n === e.Fragment || n ===
|
|
127
|
+
var z = !1;
|
|
128
|
+
function ee(n) {
|
|
129
|
+
return !!(typeof n == "string" || typeof n == "function" || n === e.Fragment || n === f || n === A || n === i || n === l || n === _ || n === S || z || typeof n == "object" && n !== null && (n.$$typeof === b || n.$$typeof === g || n.$$typeof === m || n.$$typeof === h || n.$$typeof === c || n.$$typeof === O || n.$$typeof === I || n[0] === D));
|
|
130
130
|
}
|
|
131
|
-
function Y(n,
|
|
132
|
-
var N =
|
|
133
|
-
return n.displayName || (N !== "" ?
|
|
131
|
+
function Y(n, d, y) {
|
|
132
|
+
var N = d.displayName || d.name || "";
|
|
133
|
+
return n.displayName || (N !== "" ? y + "(" + N + ")" : y);
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function oe(n) {
|
|
136
136
|
return n.displayName || "Context";
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function K(n) {
|
|
139
139
|
if (n == null)
|
|
140
140
|
return null;
|
|
141
|
-
if (typeof n.tag == "number" &&
|
|
141
|
+
if (typeof n.tag == "number" && P("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;
|
|
@@ -147,33 +147,33 @@ function Kt() {
|
|
|
147
147
|
return "Fragment";
|
|
148
148
|
case o:
|
|
149
149
|
return "Portal";
|
|
150
|
-
case
|
|
150
|
+
case f:
|
|
151
151
|
return "Profiler";
|
|
152
152
|
case i:
|
|
153
153
|
return "StrictMode";
|
|
154
|
-
case
|
|
154
|
+
case l:
|
|
155
155
|
return "Suspense";
|
|
156
|
-
case
|
|
156
|
+
case _:
|
|
157
157
|
return "SuspenseList";
|
|
158
158
|
}
|
|
159
159
|
if (typeof n == "object")
|
|
160
160
|
switch (n.$$typeof) {
|
|
161
|
-
case
|
|
162
|
-
var
|
|
163
|
-
return
|
|
164
|
-
case
|
|
165
|
-
var
|
|
166
|
-
return
|
|
167
|
-
case
|
|
161
|
+
case h:
|
|
162
|
+
var d = n;
|
|
163
|
+
return oe(d) + ".Consumer";
|
|
164
|
+
case m:
|
|
165
|
+
var y = n;
|
|
166
|
+
return oe(y._context) + ".Provider";
|
|
167
|
+
case c:
|
|
168
168
|
return Y(n, n.render, "ForwardRef");
|
|
169
|
-
case
|
|
170
|
-
return
|
|
169
|
+
case g:
|
|
170
|
+
return K(n.type);
|
|
171
171
|
case I:
|
|
172
|
-
return
|
|
173
|
-
case
|
|
174
|
-
var N = n,
|
|
172
|
+
return K(n._render);
|
|
173
|
+
case b: {
|
|
174
|
+
var N = n, U = N._payload, H = N._init;
|
|
175
175
|
try {
|
|
176
|
-
return
|
|
176
|
+
return K(H(U));
|
|
177
177
|
} catch {
|
|
178
178
|
return null;
|
|
179
179
|
}
|
|
@@ -181,14 +181,14 @@ function Kt() {
|
|
|
181
181
|
}
|
|
182
182
|
return null;
|
|
183
183
|
}
|
|
184
|
-
var
|
|
184
|
+
var F = 0, de, v, k, C, le, W, ae;
|
|
185
185
|
function M() {
|
|
186
186
|
}
|
|
187
187
|
M.__reactDisabledLog = !0;
|
|
188
|
-
function
|
|
188
|
+
function ue() {
|
|
189
189
|
{
|
|
190
|
-
if (
|
|
191
|
-
|
|
190
|
+
if (F === 0) {
|
|
191
|
+
de = console.log, v = console.info, k = console.warn, C = console.error, le = console.group, W = console.groupCollapsed, ae = console.groupEnd;
|
|
192
192
|
var n = {
|
|
193
193
|
configurable: !0,
|
|
194
194
|
enumerable: !0,
|
|
@@ -205,12 +205,12 @@ function Kt() {
|
|
|
205
205
|
groupEnd: n
|
|
206
206
|
});
|
|
207
207
|
}
|
|
208
|
-
|
|
208
|
+
F++;
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function ye() {
|
|
212
212
|
{
|
|
213
|
-
if (
|
|
213
|
+
if (F--, F === 0) {
|
|
214
214
|
var n = {
|
|
215
215
|
configurable: !0,
|
|
216
216
|
enumerable: !0,
|
|
@@ -218,10 +218,10 @@ function Kt() {
|
|
|
218
218
|
};
|
|
219
219
|
Object.defineProperties(console, {
|
|
220
220
|
log: a({}, n, {
|
|
221
|
-
value:
|
|
221
|
+
value: de
|
|
222
222
|
}),
|
|
223
223
|
info: a({}, n, {
|
|
224
|
-
value:
|
|
224
|
+
value: v
|
|
225
225
|
}),
|
|
226
226
|
warn: a({}, n, {
|
|
227
227
|
value: k
|
|
@@ -230,285 +230,285 @@ function Kt() {
|
|
|
230
230
|
value: C
|
|
231
231
|
}),
|
|
232
232
|
group: a({}, n, {
|
|
233
|
-
value:
|
|
233
|
+
value: le
|
|
234
234
|
}),
|
|
235
235
|
groupCollapsed: a({}, n, {
|
|
236
|
-
value:
|
|
236
|
+
value: W
|
|
237
237
|
}),
|
|
238
238
|
groupEnd: a({}, n, {
|
|
239
|
-
value:
|
|
239
|
+
value: ae
|
|
240
240
|
})
|
|
241
241
|
});
|
|
242
242
|
}
|
|
243
|
-
|
|
243
|
+
F < 0 && P("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
|
-
var
|
|
247
|
-
function
|
|
246
|
+
var pe = G.ReactCurrentDispatcher, _e;
|
|
247
|
+
function w(n, d, y) {
|
|
248
248
|
{
|
|
249
|
-
if (
|
|
249
|
+
if (_e === void 0)
|
|
250
250
|
try {
|
|
251
251
|
throw Error();
|
|
252
|
-
} catch (
|
|
253
|
-
var N =
|
|
254
|
-
|
|
252
|
+
} catch (U) {
|
|
253
|
+
var N = U.stack.trim().match(/\n( *(at )?)/);
|
|
254
|
+
_e = N && N[1] || "";
|
|
255
255
|
}
|
|
256
256
|
return `
|
|
257
|
-
` +
|
|
257
|
+
` + _e + n;
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
|
-
var
|
|
260
|
+
var L = !1, $;
|
|
261
261
|
{
|
|
262
|
-
var
|
|
263
|
-
|
|
262
|
+
var q = typeof WeakMap == "function" ? WeakMap : Map;
|
|
263
|
+
$ = new q();
|
|
264
264
|
}
|
|
265
|
-
function
|
|
266
|
-
if (!n ||
|
|
265
|
+
function he(n, d) {
|
|
266
|
+
if (!n || L)
|
|
267
267
|
return "";
|
|
268
268
|
{
|
|
269
|
-
var
|
|
270
|
-
if (
|
|
271
|
-
return
|
|
269
|
+
var y = $.get(n);
|
|
270
|
+
if (y !== void 0)
|
|
271
|
+
return y;
|
|
272
272
|
}
|
|
273
273
|
var N;
|
|
274
|
-
|
|
275
|
-
var
|
|
274
|
+
L = !0;
|
|
275
|
+
var U = Error.prepareStackTrace;
|
|
276
276
|
Error.prepareStackTrace = void 0;
|
|
277
|
-
var
|
|
278
|
-
|
|
277
|
+
var H;
|
|
278
|
+
H = pe.current, pe.current = null, ue();
|
|
279
279
|
try {
|
|
280
|
-
if (
|
|
281
|
-
var
|
|
280
|
+
if (d) {
|
|
281
|
+
var R = function() {
|
|
282
282
|
throw Error();
|
|
283
283
|
};
|
|
284
|
-
if (Object.defineProperty(
|
|
284
|
+
if (Object.defineProperty(R.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
|
-
N =
|
|
290
|
+
Reflect.construct(R, []);
|
|
291
|
+
} catch (xe) {
|
|
292
|
+
N = xe;
|
|
293
293
|
}
|
|
294
|
-
Reflect.construct(n, [],
|
|
294
|
+
Reflect.construct(n, [], R);
|
|
295
295
|
} else {
|
|
296
296
|
try {
|
|
297
|
-
|
|
298
|
-
} catch (
|
|
299
|
-
N =
|
|
297
|
+
R.call();
|
|
298
|
+
} catch (xe) {
|
|
299
|
+
N = xe;
|
|
300
300
|
}
|
|
301
|
-
n.call(
|
|
301
|
+
n.call(R.prototype);
|
|
302
302
|
}
|
|
303
303
|
} else {
|
|
304
304
|
try {
|
|
305
305
|
throw Error();
|
|
306
|
-
} catch (
|
|
307
|
-
N =
|
|
306
|
+
} catch (xe) {
|
|
307
|
+
N = xe;
|
|
308
308
|
}
|
|
309
309
|
n();
|
|
310
310
|
}
|
|
311
|
-
} catch (
|
|
312
|
-
if (
|
|
313
|
-
for (var
|
|
314
|
-
`),
|
|
315
|
-
`), Q =
|
|
311
|
+
} catch (xe) {
|
|
312
|
+
if (xe && N && typeof xe.stack == "string") {
|
|
313
|
+
for (var T = xe.stack.split(`
|
|
314
|
+
`), me = N.stack.split(`
|
|
315
|
+
`), Q = T.length - 1, re = me.length - 1; Q >= 1 && re >= 0 && T[Q] !== me[re]; )
|
|
316
316
|
re--;
|
|
317
317
|
for (; Q >= 1 && re >= 0; Q--, re--)
|
|
318
|
-
if (
|
|
318
|
+
if (T[Q] !== me[re]) {
|
|
319
319
|
if (Q !== 1 || re !== 1)
|
|
320
320
|
do
|
|
321
|
-
if (Q--, re--, re < 0 ||
|
|
322
|
-
var
|
|
323
|
-
` +
|
|
324
|
-
return typeof n == "function" &&
|
|
321
|
+
if (Q--, re--, re < 0 || T[Q] !== me[re]) {
|
|
322
|
+
var ve = `
|
|
323
|
+
` + T[Q].replace(" at new ", " at ");
|
|
324
|
+
return typeof n == "function" && $.set(n, ve), ve;
|
|
325
325
|
}
|
|
326
326
|
while (Q >= 1 && re >= 0);
|
|
327
327
|
break;
|
|
328
328
|
}
|
|
329
329
|
}
|
|
330
330
|
} finally {
|
|
331
|
-
|
|
331
|
+
L = !1, pe.current = H, ye(), Error.prepareStackTrace = U;
|
|
332
332
|
}
|
|
333
|
-
var
|
|
334
|
-
return typeof n == "function" &&
|
|
333
|
+
var Ne = n ? n.displayName || n.name : "", lt = Ne ? w(Ne) : "";
|
|
334
|
+
return typeof n == "function" && $.set(n, lt), lt;
|
|
335
335
|
}
|
|
336
|
-
function
|
|
337
|
-
return
|
|
336
|
+
function Ce(n, d, y) {
|
|
337
|
+
return he(n, !1);
|
|
338
338
|
}
|
|
339
|
-
function
|
|
340
|
-
var
|
|
341
|
-
return !!(
|
|
339
|
+
function be(n) {
|
|
340
|
+
var d = n.prototype;
|
|
341
|
+
return !!(d && d.isReactComponent);
|
|
342
342
|
}
|
|
343
|
-
function
|
|
343
|
+
function x(n, d, y) {
|
|
344
344
|
if (n == null)
|
|
345
345
|
return "";
|
|
346
346
|
if (typeof n == "function")
|
|
347
|
-
return
|
|
347
|
+
return he(n, be(n));
|
|
348
348
|
if (typeof n == "string")
|
|
349
|
-
return
|
|
349
|
+
return w(n);
|
|
350
350
|
switch (n) {
|
|
351
|
-
case
|
|
352
|
-
return
|
|
353
|
-
case
|
|
354
|
-
return
|
|
351
|
+
case l:
|
|
352
|
+
return w("Suspense");
|
|
353
|
+
case _:
|
|
354
|
+
return w("SuspenseList");
|
|
355
355
|
}
|
|
356
356
|
if (typeof n == "object")
|
|
357
357
|
switch (n.$$typeof) {
|
|
358
|
-
case
|
|
359
|
-
return
|
|
360
|
-
case
|
|
361
|
-
return
|
|
358
|
+
case c:
|
|
359
|
+
return Ce(n.render);
|
|
360
|
+
case g:
|
|
361
|
+
return x(n.type, d, y);
|
|
362
362
|
case I:
|
|
363
|
-
return
|
|
364
|
-
case
|
|
365
|
-
var N = n,
|
|
363
|
+
return Ce(n._render);
|
|
364
|
+
case b: {
|
|
365
|
+
var N = n, U = N._payload, H = N._init;
|
|
366
366
|
try {
|
|
367
|
-
return
|
|
367
|
+
return x(H(U), d, y);
|
|
368
368
|
} catch {
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
372
|
return "";
|
|
373
373
|
}
|
|
374
|
-
var X = {}, te =
|
|
375
|
-
function
|
|
374
|
+
var X = {}, te = G.ReactDebugCurrentFrame;
|
|
375
|
+
function we(n) {
|
|
376
376
|
if (n) {
|
|
377
|
-
var
|
|
378
|
-
te.setExtraStackFrame(
|
|
377
|
+
var d = n._owner, y = x(n.type, n._source, d ? d.type : null);
|
|
378
|
+
te.setExtraStackFrame(y);
|
|
379
379
|
} else
|
|
380
380
|
te.setExtraStackFrame(null);
|
|
381
381
|
}
|
|
382
|
-
function
|
|
382
|
+
function ke(n, d, y, N, U) {
|
|
383
383
|
{
|
|
384
|
-
var
|
|
385
|
-
for (var
|
|
386
|
-
if (
|
|
387
|
-
var
|
|
384
|
+
var H = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
385
|
+
for (var R in n)
|
|
386
|
+
if (H(n, R)) {
|
|
387
|
+
var T = void 0;
|
|
388
388
|
try {
|
|
389
|
-
if (typeof n[
|
|
390
|
-
var
|
|
391
|
-
throw
|
|
389
|
+
if (typeof n[R] != "function") {
|
|
390
|
+
var me = Error((N || "React class") + ": " + y + " type `" + R + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[R] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
391
|
+
throw me.name = "Invariant Violation", me;
|
|
392
392
|
}
|
|
393
|
-
|
|
393
|
+
T = n[R](d, R, N, y, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
394
394
|
} catch (Q) {
|
|
395
|
-
|
|
395
|
+
T = Q;
|
|
396
396
|
}
|
|
397
|
-
|
|
397
|
+
T && !(T instanceof Error) && (we(U), P("%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", y, R, typeof T), we(null)), T instanceof Error && !(T.message in X) && (X[T.message] = !0, we(U), P("Failed %s type: %s", y, T.message), we(null));
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
400
|
}
|
|
401
|
-
var
|
|
401
|
+
var Ee = G.ReactCurrentOwner, Me = Object.prototype.hasOwnProperty, Tt = {
|
|
402
402
|
key: !0,
|
|
403
403
|
ref: !0,
|
|
404
404
|
__self: !0,
|
|
405
405
|
__source: !0
|
|
406
|
-
},
|
|
407
|
-
function
|
|
408
|
-
if (
|
|
409
|
-
var
|
|
410
|
-
if (
|
|
406
|
+
}, et, tt;
|
|
407
|
+
function At(n) {
|
|
408
|
+
if (Me.call(n, "ref")) {
|
|
409
|
+
var d = Object.getOwnPropertyDescriptor(n, "ref").get;
|
|
410
|
+
if (d && d.isReactWarning)
|
|
411
411
|
return !1;
|
|
412
412
|
}
|
|
413
413
|
return n.ref !== void 0;
|
|
414
414
|
}
|
|
415
|
-
function
|
|
416
|
-
if (
|
|
417
|
-
var
|
|
418
|
-
if (
|
|
415
|
+
function Dt(n) {
|
|
416
|
+
if (Me.call(n, "key")) {
|
|
417
|
+
var d = Object.getOwnPropertyDescriptor(n, "key").get;
|
|
418
|
+
if (d && d.isReactWarning)
|
|
419
419
|
return !1;
|
|
420
420
|
}
|
|
421
421
|
return n.key !== void 0;
|
|
422
422
|
}
|
|
423
|
-
function
|
|
424
|
-
typeof n.ref == "string" &&
|
|
423
|
+
function Ot(n, d) {
|
|
424
|
+
typeof n.ref == "string" && Ee.current;
|
|
425
425
|
}
|
|
426
|
-
function
|
|
426
|
+
function Rt(n, d) {
|
|
427
427
|
{
|
|
428
|
-
var
|
|
429
|
-
|
|
428
|
+
var y = function() {
|
|
429
|
+
et || (et = !0, P("%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)", d));
|
|
430
430
|
};
|
|
431
|
-
|
|
432
|
-
get:
|
|
431
|
+
y.isReactWarning = !0, Object.defineProperty(n, "key", {
|
|
432
|
+
get: y,
|
|
433
433
|
configurable: !0
|
|
434
434
|
});
|
|
435
435
|
}
|
|
436
436
|
}
|
|
437
|
-
function
|
|
437
|
+
function Bt(n, d) {
|
|
438
438
|
{
|
|
439
|
-
var
|
|
440
|
-
|
|
439
|
+
var y = function() {
|
|
440
|
+
tt || (tt = !0, P("%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)", d));
|
|
441
441
|
};
|
|
442
|
-
|
|
443
|
-
get:
|
|
442
|
+
y.isReactWarning = !0, Object.defineProperty(n, "ref", {
|
|
443
|
+
get: y,
|
|
444
444
|
configurable: !0
|
|
445
445
|
});
|
|
446
446
|
}
|
|
447
447
|
}
|
|
448
|
-
var
|
|
449
|
-
var
|
|
448
|
+
var Mt = function(n, d, y, N, U, H, R) {
|
|
449
|
+
var T = {
|
|
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:
|
|
455
|
-
ref:
|
|
456
|
-
props:
|
|
454
|
+
key: d,
|
|
455
|
+
ref: y,
|
|
456
|
+
props: R,
|
|
457
457
|
// Record the component responsible for creating this element.
|
|
458
|
-
_owner:
|
|
458
|
+
_owner: H
|
|
459
459
|
};
|
|
460
|
-
return
|
|
460
|
+
return T._store = {}, Object.defineProperty(T._store, "validated", {
|
|
461
461
|
configurable: !1,
|
|
462
462
|
enumerable: !1,
|
|
463
463
|
writable: !0,
|
|
464
464
|
value: !1
|
|
465
|
-
}), Object.defineProperty(
|
|
465
|
+
}), Object.defineProperty(T, "_self", {
|
|
466
466
|
configurable: !1,
|
|
467
467
|
enumerable: !1,
|
|
468
468
|
writable: !1,
|
|
469
469
|
value: N
|
|
470
|
-
}), Object.defineProperty(
|
|
470
|
+
}), Object.defineProperty(T, "_source", {
|
|
471
471
|
configurable: !1,
|
|
472
472
|
enumerable: !1,
|
|
473
473
|
writable: !1,
|
|
474
|
-
value:
|
|
475
|
-
}), Object.freeze && (Object.freeze(
|
|
474
|
+
value: U
|
|
475
|
+
}), Object.freeze && (Object.freeze(T.props), Object.freeze(T)), T;
|
|
476
476
|
};
|
|
477
|
-
function
|
|
477
|
+
function $t(n, d, y, N, U) {
|
|
478
478
|
{
|
|
479
|
-
var
|
|
480
|
-
|
|
481
|
-
for (
|
|
482
|
-
|
|
479
|
+
var H, R = {}, T = null, me = null;
|
|
480
|
+
y !== void 0 && (T = "" + y), Dt(d) && (T = "" + d.key), At(d) && (me = d.ref, Ot(d, U));
|
|
481
|
+
for (H in d)
|
|
482
|
+
Me.call(d, H) && !Tt.hasOwnProperty(H) && (R[H] = d[H]);
|
|
483
483
|
if (n && n.defaultProps) {
|
|
484
484
|
var Q = n.defaultProps;
|
|
485
|
-
for (
|
|
486
|
-
|
|
485
|
+
for (H in Q)
|
|
486
|
+
R[H] === void 0 && (R[H] = Q[H]);
|
|
487
487
|
}
|
|
488
|
-
if (
|
|
488
|
+
if (T || me) {
|
|
489
489
|
var re = typeof n == "function" ? n.displayName || n.name || "Unknown" : n;
|
|
490
|
-
|
|
490
|
+
T && Rt(R, re), me && Bt(R, re);
|
|
491
491
|
}
|
|
492
|
-
return
|
|
492
|
+
return Mt(n, T, me, U, N, Ee.current, R);
|
|
493
493
|
}
|
|
494
494
|
}
|
|
495
|
-
var
|
|
496
|
-
function
|
|
495
|
+
var $e = G.ReactCurrentOwner, rt = G.ReactDebugCurrentFrame;
|
|
496
|
+
function je(n) {
|
|
497
497
|
if (n) {
|
|
498
|
-
var
|
|
499
|
-
|
|
498
|
+
var d = n._owner, y = x(n.type, n._source, d ? d.type : null);
|
|
499
|
+
rt.setExtraStackFrame(y);
|
|
500
500
|
} else
|
|
501
|
-
|
|
501
|
+
rt.setExtraStackFrame(null);
|
|
502
502
|
}
|
|
503
|
-
var
|
|
504
|
-
|
|
505
|
-
function
|
|
503
|
+
var Fe;
|
|
504
|
+
Fe = !1;
|
|
505
|
+
function We(n) {
|
|
506
506
|
return typeof n == "object" && n !== null && n.$$typeof === s;
|
|
507
507
|
}
|
|
508
|
-
function
|
|
508
|
+
function nt() {
|
|
509
509
|
{
|
|
510
|
-
if (
|
|
511
|
-
var n =
|
|
510
|
+
if ($e.current) {
|
|
511
|
+
var n = K($e.current.type);
|
|
512
512
|
if (n)
|
|
513
513
|
return `
|
|
514
514
|
|
|
@@ -517,150 +517,150 @@ Check the render method of \`` + n + "`.";
|
|
|
517
517
|
return "";
|
|
518
518
|
}
|
|
519
519
|
}
|
|
520
|
-
function
|
|
520
|
+
function Ft(n) {
|
|
521
521
|
return "";
|
|
522
522
|
}
|
|
523
|
-
var
|
|
524
|
-
function
|
|
523
|
+
var at = {};
|
|
524
|
+
function Wt(n) {
|
|
525
525
|
{
|
|
526
|
-
var
|
|
527
|
-
if (!
|
|
528
|
-
var
|
|
529
|
-
|
|
526
|
+
var d = nt();
|
|
527
|
+
if (!d) {
|
|
528
|
+
var y = typeof n == "string" ? n : n.displayName || n.name;
|
|
529
|
+
y && (d = `
|
|
530
530
|
|
|
531
|
-
Check the top-level render call using <` +
|
|
531
|
+
Check the top-level render call using <` + y + ">.");
|
|
532
532
|
}
|
|
533
|
-
return
|
|
533
|
+
return d;
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
|
-
function
|
|
536
|
+
function st(n, d) {
|
|
537
537
|
{
|
|
538
538
|
if (!n._store || n._store.validated || n.key != null)
|
|
539
539
|
return;
|
|
540
540
|
n._store.validated = !0;
|
|
541
|
-
var
|
|
542
|
-
if (
|
|
541
|
+
var y = Wt(d);
|
|
542
|
+
if (at[y])
|
|
543
543
|
return;
|
|
544
|
-
|
|
544
|
+
at[y] = !0;
|
|
545
545
|
var N = "";
|
|
546
|
-
n && n._owner && n._owner !==
|
|
546
|
+
n && n._owner && n._owner !== $e.current && (N = " It was passed a child from " + K(n._owner.type) + "."), je(n), P('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', y, N), je(null);
|
|
547
547
|
}
|
|
548
548
|
}
|
|
549
|
-
function
|
|
549
|
+
function ot(n, d) {
|
|
550
550
|
{
|
|
551
551
|
if (typeof n != "object")
|
|
552
552
|
return;
|
|
553
553
|
if (Array.isArray(n))
|
|
554
|
-
for (var
|
|
555
|
-
var N = n[
|
|
556
|
-
|
|
554
|
+
for (var y = 0; y < n.length; y++) {
|
|
555
|
+
var N = n[y];
|
|
556
|
+
We(N) && st(N, d);
|
|
557
557
|
}
|
|
558
|
-
else if (
|
|
558
|
+
else if (We(n))
|
|
559
559
|
n._store && (n._store.validated = !0);
|
|
560
560
|
else if (n) {
|
|
561
|
-
var
|
|
562
|
-
if (typeof
|
|
563
|
-
for (var
|
|
564
|
-
|
|
561
|
+
var U = J(n);
|
|
562
|
+
if (typeof U == "function" && U !== n.entries)
|
|
563
|
+
for (var H = U.call(n), R; !(R = H.next()).done; )
|
|
564
|
+
We(R.value) && st(R.value, d);
|
|
565
565
|
}
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
|
-
function
|
|
568
|
+
function Ht(n) {
|
|
569
569
|
{
|
|
570
|
-
var
|
|
571
|
-
if (
|
|
570
|
+
var d = n.type;
|
|
571
|
+
if (d == null || typeof d == "string")
|
|
572
572
|
return;
|
|
573
|
-
var
|
|
574
|
-
if (typeof
|
|
575
|
-
|
|
576
|
-
else if (typeof
|
|
573
|
+
var y;
|
|
574
|
+
if (typeof d == "function")
|
|
575
|
+
y = d.propTypes;
|
|
576
|
+
else if (typeof d == "object" && (d.$$typeof === c || // Note: Memo only checks outer props here.
|
|
577
577
|
// Inner props are checked in the reconciler.
|
|
578
|
-
|
|
579
|
-
|
|
578
|
+
d.$$typeof === g))
|
|
579
|
+
y = d.propTypes;
|
|
580
580
|
else
|
|
581
581
|
return;
|
|
582
|
-
if (
|
|
583
|
-
var N =
|
|
584
|
-
|
|
585
|
-
} else if (
|
|
586
|
-
|
|
587
|
-
var
|
|
588
|
-
|
|
582
|
+
if (y) {
|
|
583
|
+
var N = K(d);
|
|
584
|
+
ke(y, n.props, "prop", N, n);
|
|
585
|
+
} else if (d.PropTypes !== void 0 && !Fe) {
|
|
586
|
+
Fe = !0;
|
|
587
|
+
var U = K(d);
|
|
588
|
+
P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", U || "Unknown");
|
|
589
589
|
}
|
|
590
|
-
typeof
|
|
590
|
+
typeof d.getDefaultProps == "function" && !d.getDefaultProps.isReactClassApproved && P("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
591
591
|
}
|
|
592
592
|
}
|
|
593
|
-
function
|
|
593
|
+
function Vt(n) {
|
|
594
594
|
{
|
|
595
|
-
for (var
|
|
596
|
-
var N =
|
|
595
|
+
for (var d = Object.keys(n.props), y = 0; y < d.length; y++) {
|
|
596
|
+
var N = d[y];
|
|
597
597
|
if (N !== "children" && N !== "key") {
|
|
598
|
-
|
|
598
|
+
je(n), P("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", N), je(null);
|
|
599
599
|
break;
|
|
600
600
|
}
|
|
601
601
|
}
|
|
602
|
-
n.ref !== null && (
|
|
602
|
+
n.ref !== null && (je(n), P("Invalid attribute `ref` supplied to `React.Fragment`."), je(null));
|
|
603
603
|
}
|
|
604
604
|
}
|
|
605
|
-
function
|
|
605
|
+
function it(n, d, y, N, U, H) {
|
|
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 R = ee(n);
|
|
608
|
+
if (!R) {
|
|
609
|
+
var T = "";
|
|
610
|
+
(n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (T += " 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 me = Ft();
|
|
612
|
+
me ? T += me : T += nt();
|
|
613
613
|
var Q;
|
|
614
|
-
n === null ? Q = "null" : Array.isArray(n) ? Q = "array" : n !== void 0 && n.$$typeof === s ? (Q = "<" + (
|
|
614
|
+
n === null ? Q = "null" : Array.isArray(n) ? Q = "array" : n !== void 0 && n.$$typeof === s ? (Q = "<" + (K(n.type) || "Unknown") + " />", T = " Did you accidentally export a JSX literal instead of a component?") : Q = typeof n, P("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Q, T);
|
|
615
615
|
}
|
|
616
|
-
var re =
|
|
616
|
+
var re = $t(n, d, y, U, H);
|
|
617
617
|
if (re == null)
|
|
618
618
|
return re;
|
|
619
|
-
if (
|
|
620
|
-
var
|
|
621
|
-
if (
|
|
619
|
+
if (R) {
|
|
620
|
+
var ve = d.children;
|
|
621
|
+
if (ve !== void 0)
|
|
622
622
|
if (N)
|
|
623
|
-
if (Array.isArray(
|
|
624
|
-
for (var
|
|
625
|
-
|
|
626
|
-
Object.freeze && Object.freeze(
|
|
623
|
+
if (Array.isArray(ve)) {
|
|
624
|
+
for (var Ne = 0; Ne < ve.length; Ne++)
|
|
625
|
+
ot(ve[Ne], n);
|
|
626
|
+
Object.freeze && Object.freeze(ve);
|
|
627
627
|
} else
|
|
628
|
-
|
|
628
|
+
P("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
|
-
|
|
630
|
+
ot(ve, n);
|
|
631
631
|
}
|
|
632
|
-
return n === e.Fragment ?
|
|
632
|
+
return n === e.Fragment ? Vt(re) : Ht(re), re;
|
|
633
633
|
}
|
|
634
634
|
}
|
|
635
|
-
function
|
|
636
|
-
return
|
|
635
|
+
function Gt(n, d, y) {
|
|
636
|
+
return it(n, d, y, !0);
|
|
637
637
|
}
|
|
638
|
-
function
|
|
639
|
-
return
|
|
638
|
+
function Ut(n, d, y) {
|
|
639
|
+
return it(n, d, y, !1);
|
|
640
640
|
}
|
|
641
|
-
var
|
|
642
|
-
e.jsx =
|
|
641
|
+
var Yt = Ut, Zt = Gt;
|
|
642
|
+
e.jsx = Yt, e.jsxs = Zt;
|
|
643
643
|
}();
|
|
644
|
-
}(
|
|
644
|
+
}(Ve)), Ve;
|
|
645
645
|
}
|
|
646
|
-
process.env.NODE_ENV === "production" ?
|
|
647
|
-
var t =
|
|
648
|
-
const
|
|
646
|
+
process.env.NODE_ENV === "production" ? Ze.exports = zt() : Ze.exports = Jt();
|
|
647
|
+
var t = Ze.exports;
|
|
648
|
+
const Xt = {
|
|
649
649
|
production: "https://journey.apps.opendoor.com/_journey/api/v1/events",
|
|
650
650
|
staging: "https://journey.apps-staging.opendoor.com/_journey/api/v1/events"
|
|
651
|
-
},
|
|
652
|
-
function
|
|
651
|
+
}, Qt = "partner-sdk", er = "1.0", tr = 5e3, rr = 20, nr = 512, ar = 5, ht = 500, mt = "od_sdk_aid";
|
|
652
|
+
function sr() {
|
|
653
653
|
try {
|
|
654
|
-
const e = localStorage.getItem(
|
|
654
|
+
const e = localStorage.getItem(mt);
|
|
655
655
|
if (e)
|
|
656
656
|
return e;
|
|
657
657
|
const r = crypto.randomUUID();
|
|
658
|
-
return localStorage.setItem(
|
|
658
|
+
return localStorage.setItem(mt, r), r;
|
|
659
659
|
} catch {
|
|
660
660
|
return;
|
|
661
661
|
}
|
|
662
662
|
}
|
|
663
|
-
function
|
|
663
|
+
function or() {
|
|
664
664
|
return typeof window > "u" ? { url: "", eventOrigin: "CLIENT" } : {
|
|
665
665
|
url: window.location.href,
|
|
666
666
|
userAgent: navigator.userAgent,
|
|
@@ -676,40 +676,40 @@ function ar() {
|
|
|
676
676
|
language: Array.from(navigator.languages ?? [])
|
|
677
677
|
};
|
|
678
678
|
}
|
|
679
|
-
function
|
|
679
|
+
function ir(e) {
|
|
680
680
|
let r = 0;
|
|
681
681
|
for (const a of e)
|
|
682
682
|
r += a.length;
|
|
683
683
|
return r / 1024;
|
|
684
684
|
}
|
|
685
|
-
function
|
|
686
|
-
return
|
|
685
|
+
function lr(e) {
|
|
686
|
+
return ir(e) >= nr - 50;
|
|
687
687
|
}
|
|
688
|
-
async function
|
|
689
|
-
let a =
|
|
688
|
+
async function cr(e, r) {
|
|
689
|
+
let a = ar;
|
|
690
690
|
for (; a > 0; )
|
|
691
691
|
try {
|
|
692
692
|
const s = await fetch(e, r);
|
|
693
693
|
if (s.status === 202)
|
|
694
694
|
return;
|
|
695
695
|
if (s.status >= 500 && a >= 1)
|
|
696
|
-
await new Promise((o) => setTimeout(o,
|
|
696
|
+
await new Promise((o) => setTimeout(o, ht)), a--;
|
|
697
697
|
else
|
|
698
698
|
break;
|
|
699
699
|
} catch {
|
|
700
700
|
if (a >= 1)
|
|
701
|
-
await new Promise((s) => setTimeout(s,
|
|
701
|
+
await new Promise((s) => setTimeout(s, ht)), a--;
|
|
702
702
|
else
|
|
703
703
|
break;
|
|
704
704
|
}
|
|
705
705
|
}
|
|
706
|
-
class
|
|
706
|
+
class dr {
|
|
707
707
|
constructor(r) {
|
|
708
708
|
this.buffer = [], this.destroyed = !1, this.onVisibilityChange = () => {
|
|
709
709
|
document.visibilityState === "hidden" && this.flush(!0);
|
|
710
710
|
}, this.onBeforeUnload = () => {
|
|
711
711
|
this.flush(!0);
|
|
712
|
-
}, this.endpoint =
|
|
712
|
+
}, this.endpoint = Xt[r], this.anonymousId = sr(), this.timer = setInterval(() => this.flush(), tr), typeof document < "u" && document.addEventListener("visibilitychange", this.onVisibilityChange), typeof window < "u" && window.addEventListener("beforeunload", this.onBeforeUnload);
|
|
713
713
|
}
|
|
714
714
|
trackPlatform(r) {
|
|
715
715
|
this.enqueue({ platform: r });
|
|
@@ -724,14 +724,14 @@ class lr {
|
|
|
724
724
|
if (this.buffer.length === 0)
|
|
725
725
|
return;
|
|
726
726
|
const a = `{"eventWrappers":[${this.buffer.join(",")}]}`;
|
|
727
|
-
this.buffer = [],
|
|
727
|
+
this.buffer = [], cr(this.endpoint, {
|
|
728
728
|
method: "POST",
|
|
729
729
|
credentials: "omit",
|
|
730
730
|
keepalive: r,
|
|
731
731
|
headers: {
|
|
732
732
|
"Content-Type": "application/json",
|
|
733
|
-
"X-Journey-Client-Name":
|
|
734
|
-
"X-Journey-Client-Version":
|
|
733
|
+
"X-Journey-Client-Name": Qt,
|
|
734
|
+
"X-Journey-Client-Version": er
|
|
735
735
|
},
|
|
736
736
|
body: a
|
|
737
737
|
});
|
|
@@ -744,14 +744,14 @@ class lr {
|
|
|
744
744
|
return;
|
|
745
745
|
const a = {
|
|
746
746
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
747
|
-
websiteSource:
|
|
747
|
+
websiteSource: or(),
|
|
748
748
|
anonymousId: this.anonymousId,
|
|
749
749
|
...r
|
|
750
750
|
};
|
|
751
|
-
this.buffer.push(JSON.stringify(a)), (this.buffer.length >=
|
|
751
|
+
this.buffer.push(JSON.stringify(a)), (this.buffer.length >= rr || lr(this.buffer)) && this.flush();
|
|
752
752
|
}
|
|
753
753
|
}
|
|
754
|
-
const
|
|
754
|
+
const ze = {
|
|
755
755
|
trackPlatform() {
|
|
756
756
|
},
|
|
757
757
|
trackSell() {
|
|
@@ -760,47 +760,47 @@ const Ze = {
|
|
|
760
760
|
},
|
|
761
761
|
destroy() {
|
|
762
762
|
}
|
|
763
|
-
},
|
|
763
|
+
}, Je = qe(null), St = qe(ze), Oo = ({
|
|
764
764
|
client: e,
|
|
765
765
|
children: r
|
|
766
766
|
}) => {
|
|
767
|
-
const [a, s] = E(
|
|
768
|
-
return
|
|
769
|
-
const o = new
|
|
767
|
+
const [a, s] = E(ze);
|
|
768
|
+
return ie(() => {
|
|
769
|
+
const o = new dr(e.environment);
|
|
770
770
|
return s(o), () => {
|
|
771
771
|
o.destroy();
|
|
772
772
|
};
|
|
773
|
-
}, [e]), /* @__PURE__ */ t.jsx(
|
|
774
|
-
},
|
|
775
|
-
const e =
|
|
773
|
+
}, [e]), /* @__PURE__ */ t.jsx(Je.Provider, { value: e, children: /* @__PURE__ */ t.jsx(St.Provider, { value: a, children: r }) });
|
|
774
|
+
}, It = () => {
|
|
775
|
+
const e = Re(Je);
|
|
776
776
|
if (!e)
|
|
777
777
|
throw new Error(
|
|
778
778
|
"useOpendoorClient must be used within an <OpendoorProvider>. Wrap your component tree with <OpendoorProvider client={client}>."
|
|
779
779
|
);
|
|
780
780
|
return e;
|
|
781
|
-
},
|
|
782
|
-
function
|
|
783
|
-
const a =
|
|
781
|
+
}, Xe = () => Re(St);
|
|
782
|
+
function Et(e, r = {}) {
|
|
783
|
+
const a = Xe(), s = Z(a);
|
|
784
784
|
s.current = a;
|
|
785
|
-
const o =
|
|
786
|
-
return
|
|
787
|
-
const
|
|
788
|
-
if (!
|
|
789
|
-
const
|
|
790
|
-
([
|
|
791
|
-
if (
|
|
792
|
-
if (s.current ===
|
|
785
|
+
const o = Z(null), i = Z(!1);
|
|
786
|
+
return ie(() => {
|
|
787
|
+
const f = o.current;
|
|
788
|
+
if (!f || !e || i.current) return;
|
|
789
|
+
const m = new IntersectionObserver(
|
|
790
|
+
([h]) => {
|
|
791
|
+
if (h.isIntersecting && !i.current) {
|
|
792
|
+
if (s.current === ze) return;
|
|
793
793
|
i.current = !0, s.current.trackPlatform({
|
|
794
794
|
inputViewEvent: { targetName: e }
|
|
795
|
-
}), r.immediate && s.current.flush(),
|
|
795
|
+
}), r.immediate && s.current.flush(), m.disconnect();
|
|
796
796
|
}
|
|
797
797
|
},
|
|
798
798
|
{ threshold: 0.5 }
|
|
799
799
|
);
|
|
800
|
-
return
|
|
800
|
+
return m.observe(f), () => m.disconnect();
|
|
801
801
|
}, [e, r.immediate]), o;
|
|
802
802
|
}
|
|
803
|
-
const
|
|
803
|
+
const Ge = {
|
|
804
804
|
// Colors
|
|
805
805
|
colorPrimary: "#235ca3",
|
|
806
806
|
colorPrimaryHover: "#1a4a82",
|
|
@@ -845,12 +845,12 @@ const He = {
|
|
|
845
845
|
colorCardBorder: "#e5e7eb",
|
|
846
846
|
colorCardBorderSelected: "#235ca3",
|
|
847
847
|
colorCardBackgroundSelected: "#f0f5ff"
|
|
848
|
-
},
|
|
848
|
+
}, ur = {
|
|
849
849
|
/** Default theme — pill-shaped inputs, bold borders, Opendoor blue */
|
|
850
|
-
default:
|
|
850
|
+
default: Ge,
|
|
851
851
|
/** Minimal theme — subtle borders, square corners, lighter shadows */
|
|
852
852
|
minimal: {
|
|
853
|
-
...
|
|
853
|
+
...Ge,
|
|
854
854
|
colorBorder: "#d1d5db",
|
|
855
855
|
colorBorderFocus: "#235ca3",
|
|
856
856
|
colorFocusRing: "rgba(35, 92, 163, 0.15)",
|
|
@@ -870,7 +870,7 @@ const He = {
|
|
|
870
870
|
},
|
|
871
871
|
/** Rounded theme — large radii, soft shadows, spacious */
|
|
872
872
|
rounded: {
|
|
873
|
-
...
|
|
873
|
+
...Ge,
|
|
874
874
|
colorBorder: "#e0e0e0",
|
|
875
875
|
colorBorderFocus: "#235ca3",
|
|
876
876
|
borderRadius: "16px",
|
|
@@ -881,11 +881,11 @@ const He = {
|
|
|
881
881
|
buttonPaddingX: "32px"
|
|
882
882
|
}
|
|
883
883
|
};
|
|
884
|
-
function
|
|
885
|
-
const r =
|
|
884
|
+
function hr(e) {
|
|
885
|
+
const r = ur[(e == null ? void 0 : e.theme) ?? "default"];
|
|
886
886
|
return e != null && e.variables ? { ...r, ...e.variables } : r;
|
|
887
887
|
}
|
|
888
|
-
const
|
|
888
|
+
const Ro = [
|
|
889
889
|
"confirm-home-details",
|
|
890
890
|
"ownership",
|
|
891
891
|
"sale-timeline",
|
|
@@ -904,18 +904,18 @@ const Do = [
|
|
|
904
904
|
"homebuilder-details",
|
|
905
905
|
"contact-info"
|
|
906
906
|
];
|
|
907
|
-
function
|
|
908
|
-
const r =
|
|
907
|
+
function Ae(e) {
|
|
908
|
+
const r = hr(e), a = {};
|
|
909
909
|
for (const [s, o] of Object.entries(r)) {
|
|
910
910
|
const i = s.replace(/([A-Z])/g, "-$1").toLowerCase();
|
|
911
911
|
a[`--od-${i}`] = o;
|
|
912
912
|
}
|
|
913
913
|
return a;
|
|
914
914
|
}
|
|
915
|
-
const
|
|
916
|
-
attribution:
|
|
917
|
-
text:
|
|
918
|
-
},
|
|
915
|
+
const mr = "_attribution_11y4r_7", fr = "_text_11y4r_16", ft = {
|
|
916
|
+
attribution: mr,
|
|
917
|
+
text: fr
|
|
918
|
+
}, pr = () => /* @__PURE__ */ t.jsx(
|
|
919
919
|
"svg",
|
|
920
920
|
{
|
|
921
921
|
width: "75",
|
|
@@ -934,34 +934,34 @@ const dr = "_attribution_11y4r_7", hr = "_text_11y4r_16", ht = {
|
|
|
934
934
|
)
|
|
935
935
|
}
|
|
936
936
|
);
|
|
937
|
-
function
|
|
938
|
-
return /* @__PURE__ */ t.jsxs("div", { className:
|
|
939
|
-
/* @__PURE__ */ t.jsx("span", { className:
|
|
940
|
-
/* @__PURE__ */ t.jsx(
|
|
937
|
+
function gr() {
|
|
938
|
+
return /* @__PURE__ */ t.jsxs("div", { className: ft.attribution, "data-testid": "od-attribution", children: [
|
|
939
|
+
/* @__PURE__ */ t.jsx("span", { className: ft.text, children: "Powered by" }),
|
|
940
|
+
/* @__PURE__ */ t.jsx(pr, {})
|
|
941
941
|
] });
|
|
942
942
|
}
|
|
943
|
-
const
|
|
944
|
-
container:
|
|
945
|
-
inputSection:
|
|
946
|
-
inputWrapper:
|
|
947
|
-
input:
|
|
948
|
-
inputIcon:
|
|
949
|
-
button:
|
|
950
|
-
spinner:
|
|
951
|
-
suggestions:
|
|
952
|
-
errorState:
|
|
953
|
-
suggestion:
|
|
954
|
-
error:
|
|
955
|
-
errorIcon:
|
|
956
|
-
errorBorder:
|
|
957
|
-
manualLink:
|
|
958
|
-
manualForm:
|
|
959
|
-
manualFormField:
|
|
960
|
-
manualFormLabel:
|
|
961
|
-
manualFormInput:
|
|
962
|
-
formRow:
|
|
963
|
-
submitButton:
|
|
964
|
-
},
|
|
943
|
+
const _r = "_container_tu90h_8", yr = "_inputSection_tu90h_16", br = "_inputWrapper_tu90h_22", vr = "_input_tu90h_16", xr = "_inputIcon_tu90h_63", Cr = "_button_tu90h_80", wr = "_spinner_tu90h_121", kr = "_suggestions_tu90h_136", jr = "_errorState_tu90h_150", Nr = "_suggestion_tu90h_136", Sr = "_error_tu90h_150", Ir = "_errorIcon_tu90h_199", Er = "_errorBorder_tu90h_213", Pr = "_manualLink_tu90h_223", Lr = "_manualForm_tu90h_245", Tr = "_manualFormField_tu90h_260", Ar = "_manualFormLabel_tu90h_264", Dr = "_manualFormInput_tu90h_273", Or = "_formRow_tu90h_294", Rr = "_submitButton_tu90h_302", B = {
|
|
944
|
+
container: _r,
|
|
945
|
+
inputSection: yr,
|
|
946
|
+
inputWrapper: br,
|
|
947
|
+
input: vr,
|
|
948
|
+
inputIcon: xr,
|
|
949
|
+
button: Cr,
|
|
950
|
+
spinner: wr,
|
|
951
|
+
suggestions: kr,
|
|
952
|
+
errorState: jr,
|
|
953
|
+
suggestion: Nr,
|
|
954
|
+
error: Sr,
|
|
955
|
+
errorIcon: Ir,
|
|
956
|
+
errorBorder: Er,
|
|
957
|
+
manualLink: Pr,
|
|
958
|
+
manualForm: Lr,
|
|
959
|
+
manualFormField: Tr,
|
|
960
|
+
manualFormLabel: Ar,
|
|
961
|
+
manualFormInput: Dr,
|
|
962
|
+
formRow: Or,
|
|
963
|
+
submitButton: Rr
|
|
964
|
+
}, pt = () => /* @__PURE__ */ t.jsx(
|
|
965
965
|
"svg",
|
|
966
966
|
{
|
|
967
967
|
width: "20",
|
|
@@ -980,7 +980,7 @@ const pr = "_container_tu90h_8", gr = "_inputSection_tu90h_16", _r = "_inputWrap
|
|
|
980
980
|
}
|
|
981
981
|
)
|
|
982
982
|
}
|
|
983
|
-
),
|
|
983
|
+
), Br = () => /* @__PURE__ */ t.jsxs(
|
|
984
984
|
"svg",
|
|
985
985
|
{
|
|
986
986
|
width: "20",
|
|
@@ -1002,119 +1002,119 @@ const pr = "_container_tu90h_8", gr = "_inputSection_tu90h_16", _r = "_inputWrap
|
|
|
1002
1002
|
]
|
|
1003
1003
|
}
|
|
1004
1004
|
);
|
|
1005
|
-
function
|
|
1005
|
+
function gt(e) {
|
|
1006
1006
|
const r = [e.street1];
|
|
1007
1007
|
return e.street2 && (r[0] += ` ${e.street2}`), r.push(`${e.city}, ${e.state} ${e.postalCode}`), r.join(", ");
|
|
1008
1008
|
}
|
|
1009
|
-
function
|
|
1009
|
+
function Bo({
|
|
1010
1010
|
onAddressSelect: e,
|
|
1011
1011
|
enableAddressSuggestions: r = !0,
|
|
1012
1012
|
debounceMs: a = 300,
|
|
1013
1013
|
showAttribution: s = !1,
|
|
1014
1014
|
disabled: o = !1,
|
|
1015
1015
|
placeholderText: i = "Enter your home address",
|
|
1016
|
-
buttonText:
|
|
1017
|
-
showButton:
|
|
1018
|
-
buttonIcon:
|
|
1019
|
-
inputIcon:
|
|
1020
|
-
manualEntryText:
|
|
1021
|
-
appearance:
|
|
1022
|
-
onReady:
|
|
1023
|
-
onChange:
|
|
1016
|
+
buttonText: f = "Get cash offer",
|
|
1017
|
+
showButton: m = !0,
|
|
1018
|
+
buttonIcon: h,
|
|
1019
|
+
inputIcon: c,
|
|
1020
|
+
manualEntryText: l = "Enter address manually instead",
|
|
1021
|
+
appearance: _,
|
|
1022
|
+
onReady: g,
|
|
1023
|
+
onChange: b,
|
|
1024
1024
|
onValidationError: I,
|
|
1025
1025
|
onAddressSuggestionsStart: D,
|
|
1026
|
-
onAddressSuggestionsComplete:
|
|
1027
|
-
onError:
|
|
1026
|
+
onAddressSuggestionsComplete: O,
|
|
1027
|
+
onError: A
|
|
1028
1028
|
}) {
|
|
1029
|
-
const S =
|
|
1029
|
+
const S = It(), j = Xe(), se = Ae(_), [V, J] = E(""), [G, P] = E([]), [ce, z] = E(!1), [ee, Y] = E(!1), [oe, K] = E(null), [F, de] = E(!1), [v, k] = E(!1), [C, le] = E({
|
|
1030
1030
|
street1: "",
|
|
1031
1031
|
street2: "",
|
|
1032
1032
|
city: "",
|
|
1033
1033
|
state: "",
|
|
1034
1034
|
postalCode: ""
|
|
1035
|
-
}),
|
|
1035
|
+
}), W = Z(null), ae = Et("partner-sdk-address-input", {
|
|
1036
1036
|
immediate: !0
|
|
1037
|
-
}), M =
|
|
1038
|
-
M.current =
|
|
1039
|
-
const
|
|
1040
|
-
|
|
1041
|
-
const
|
|
1042
|
-
|
|
1043
|
-
const
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
}, []),
|
|
1047
|
-
if (!r || V.trim().length < 3 ||
|
|
1048
|
-
V.trim().length === 0 && (
|
|
1037
|
+
}), M = Z(A);
|
|
1038
|
+
M.current = A;
|
|
1039
|
+
const ue = Z(D);
|
|
1040
|
+
ue.current = D;
|
|
1041
|
+
const ye = Z(O);
|
|
1042
|
+
ye.current = O;
|
|
1043
|
+
const pe = Z(null), _e = ce && !ee && V.trim().length >= 3 && G.length === 0 && !v;
|
|
1044
|
+
ie(() => {
|
|
1045
|
+
g == null || g();
|
|
1046
|
+
}, []), ie(() => {
|
|
1047
|
+
if (!r || V.trim().length < 3 || F) {
|
|
1048
|
+
V.trim().length === 0 && (P([]), z(!1), K(null));
|
|
1049
1049
|
return;
|
|
1050
1050
|
}
|
|
1051
|
-
Y(!0),
|
|
1052
|
-
const
|
|
1053
|
-
var X, te,
|
|
1054
|
-
(X =
|
|
1051
|
+
Y(!0), K(null);
|
|
1052
|
+
const x = setTimeout(async () => {
|
|
1053
|
+
var X, te, we;
|
|
1054
|
+
(X = ue.current) == null || X.call(ue, V);
|
|
1055
1055
|
try {
|
|
1056
|
-
const
|
|
1057
|
-
|
|
1058
|
-
} catch (
|
|
1059
|
-
const
|
|
1060
|
-
|
|
1056
|
+
const ke = await S.getAddressSuggestions(V);
|
|
1057
|
+
P(ke.addresses), z(!0), (te = ye.current) == null || te.call(ye, ke.addresses);
|
|
1058
|
+
} catch (ke) {
|
|
1059
|
+
const Ee = ke instanceof Error ? ke : new Error("Failed to fetch address suggestions");
|
|
1060
|
+
K(Ee.message), P([]), z(!0), (we = M.current) == null || we.call(M, Ee);
|
|
1061
1061
|
} finally {
|
|
1062
1062
|
Y(!1);
|
|
1063
1063
|
}
|
|
1064
1064
|
}, a);
|
|
1065
|
-
return () => clearTimeout(
|
|
1066
|
-
}, [V,
|
|
1067
|
-
const
|
|
1068
|
-
|
|
1065
|
+
return () => clearTimeout(x);
|
|
1066
|
+
}, [V, F, r, a, S]), ie(() => {
|
|
1067
|
+
const x = (X) => {
|
|
1068
|
+
pe.current && !pe.current.contains(X.target) && W.current && !W.current.contains(X.target) && z(!1);
|
|
1069
1069
|
};
|
|
1070
|
-
return document.addEventListener("mousedown",
|
|
1070
|
+
return document.addEventListener("mousedown", x), () => document.removeEventListener("mousedown", x);
|
|
1071
1071
|
}, []);
|
|
1072
|
-
const
|
|
1073
|
-
const X =
|
|
1074
|
-
|
|
1075
|
-
},
|
|
1076
|
-
|
|
1072
|
+
const w = (x) => {
|
|
1073
|
+
const X = x.target.value;
|
|
1074
|
+
J(X), de(!1), b == null || b({ street1: X });
|
|
1075
|
+
}, L = async (x) => {
|
|
1076
|
+
de(!0), J(gt(x)), P([]), z(!1), K(null), b == null || b(x), j.trackSell({
|
|
1077
1077
|
addressEntryV2: {
|
|
1078
|
-
street1:
|
|
1079
|
-
city:
|
|
1080
|
-
state:
|
|
1081
|
-
postalCode:
|
|
1082
|
-
unit:
|
|
1078
|
+
street1: x.street1,
|
|
1079
|
+
city: x.city,
|
|
1080
|
+
state: x.state,
|
|
1081
|
+
postalCode: x.postalCode,
|
|
1082
|
+
unit: x.street2,
|
|
1083
1083
|
sourcePage: "partner-sdk"
|
|
1084
1084
|
}
|
|
1085
1085
|
});
|
|
1086
1086
|
try {
|
|
1087
|
-
await e(
|
|
1087
|
+
await e(x);
|
|
1088
1088
|
} catch (X) {
|
|
1089
1089
|
const te = X instanceof Error ? X : new Error("Failed to process address");
|
|
1090
|
-
|
|
1090
|
+
K(te.message), A == null || A(te), J(""), de(!1);
|
|
1091
1091
|
}
|
|
1092
|
-
},
|
|
1092
|
+
}, $ = () => {
|
|
1093
1093
|
j.trackPlatform({
|
|
1094
1094
|
inputFocusEvent: { targetName: "partner-sdk-address-input" }
|
|
1095
|
-
}),
|
|
1096
|
-
},
|
|
1095
|
+
}), G.length > 0 && V.length > 0 && z(!0);
|
|
1096
|
+
}, q = () => {
|
|
1097
1097
|
j.trackPlatform({
|
|
1098
1098
|
linkClickEvent: { targetName: "partner-sdk-manual-entry" }
|
|
1099
|
-
}), k(!0),
|
|
1100
|
-
},
|
|
1101
|
-
const te = { ...C, [
|
|
1102
|
-
|
|
1099
|
+
}), k(!0), z(!1);
|
|
1100
|
+
}, he = (x, X) => {
|
|
1101
|
+
const te = { ...C, [x]: X };
|
|
1102
|
+
le(te), b == null || b({
|
|
1103
1103
|
street1: te.street1,
|
|
1104
1104
|
...te.street2 ? { street2: te.street2 } : {},
|
|
1105
1105
|
city: te.city,
|
|
1106
1106
|
state: te.state,
|
|
1107
1107
|
postalCode: te.postalCode
|
|
1108
1108
|
});
|
|
1109
|
-
},
|
|
1109
|
+
}, Ce = async () => {
|
|
1110
1110
|
if (!C.street1 || !C.city || !C.state || !C.postalCode) {
|
|
1111
|
-
const
|
|
1112
|
-
|
|
1111
|
+
const x = "Please fill in all required fields";
|
|
1112
|
+
K(x), I == null || I(x);
|
|
1113
1113
|
return;
|
|
1114
1114
|
}
|
|
1115
|
-
Y(!0),
|
|
1115
|
+
Y(!0), K(null);
|
|
1116
1116
|
try {
|
|
1117
|
-
const
|
|
1117
|
+
const x = {
|
|
1118
1118
|
street1: C.street1,
|
|
1119
1119
|
...C.street2 ? { street2: C.street2 } : {},
|
|
1120
1120
|
city: C.city,
|
|
@@ -1123,95 +1123,95 @@ function Oo({
|
|
|
1123
1123
|
};
|
|
1124
1124
|
j.trackSell({
|
|
1125
1125
|
addressEntryV2: {
|
|
1126
|
-
street1:
|
|
1127
|
-
city:
|
|
1128
|
-
state:
|
|
1129
|
-
postalCode:
|
|
1130
|
-
unit:
|
|
1126
|
+
street1: x.street1,
|
|
1127
|
+
city: x.city,
|
|
1128
|
+
state: x.state,
|
|
1129
|
+
postalCode: x.postalCode,
|
|
1130
|
+
unit: x.street2,
|
|
1131
1131
|
sourcePage: "partner-sdk"
|
|
1132
1132
|
}
|
|
1133
|
-
}), await e(
|
|
1134
|
-
} catch (
|
|
1135
|
-
const X =
|
|
1136
|
-
|
|
1133
|
+
}), await e(x);
|
|
1134
|
+
} catch (x) {
|
|
1135
|
+
const X = x instanceof Error ? x : new Error("Failed to submit address");
|
|
1136
|
+
K(X.message), A == null || A(X);
|
|
1137
1137
|
} finally {
|
|
1138
1138
|
Y(!1);
|
|
1139
1139
|
}
|
|
1140
|
-
},
|
|
1141
|
-
return /* @__PURE__ */ t.jsxs("div", { ref:
|
|
1142
|
-
|
|
1143
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
1144
|
-
/* @__PURE__ */ t.jsx("label", { className:
|
|
1140
|
+
}, be = !!oe;
|
|
1141
|
+
return /* @__PURE__ */ t.jsxs("div", { ref: ae, className: B.container, style: se, children: [
|
|
1142
|
+
v ? /* @__PURE__ */ t.jsxs("div", { className: B.manualForm, children: [
|
|
1143
|
+
/* @__PURE__ */ t.jsxs("div", { className: B.manualFormField, children: [
|
|
1144
|
+
/* @__PURE__ */ t.jsx("label", { className: B.manualFormLabel, htmlFor: "ae-street1", children: "Street Address *" }),
|
|
1145
1145
|
/* @__PURE__ */ t.jsx(
|
|
1146
1146
|
"input",
|
|
1147
1147
|
{
|
|
1148
1148
|
id: "ae-street1",
|
|
1149
1149
|
type: "text",
|
|
1150
|
-
className:
|
|
1150
|
+
className: B.manualFormInput,
|
|
1151
1151
|
value: C.street1,
|
|
1152
|
-
onChange: (
|
|
1152
|
+
onChange: (x) => he("street1", x.target.value),
|
|
1153
1153
|
disabled: o,
|
|
1154
1154
|
placeholder: "123 Main St"
|
|
1155
1155
|
}
|
|
1156
1156
|
)
|
|
1157
1157
|
] }),
|
|
1158
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
1159
|
-
/* @__PURE__ */ t.jsx("label", { className:
|
|
1158
|
+
/* @__PURE__ */ t.jsxs("div", { className: B.manualFormField, children: [
|
|
1159
|
+
/* @__PURE__ */ t.jsx("label", { className: B.manualFormLabel, htmlFor: "ae-street2", children: "Unit / Apt (optional)" }),
|
|
1160
1160
|
/* @__PURE__ */ t.jsx(
|
|
1161
1161
|
"input",
|
|
1162
1162
|
{
|
|
1163
1163
|
id: "ae-street2",
|
|
1164
1164
|
type: "text",
|
|
1165
|
-
className:
|
|
1165
|
+
className: B.manualFormInput,
|
|
1166
1166
|
value: C.street2,
|
|
1167
|
-
onChange: (
|
|
1167
|
+
onChange: (x) => he("street2", x.target.value),
|
|
1168
1168
|
disabled: o,
|
|
1169
1169
|
placeholder: "Apt 4B"
|
|
1170
1170
|
}
|
|
1171
1171
|
)
|
|
1172
1172
|
] }),
|
|
1173
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
1174
|
-
/* @__PURE__ */ t.jsx("label", { className:
|
|
1173
|
+
/* @__PURE__ */ t.jsxs("div", { className: B.manualFormField, children: [
|
|
1174
|
+
/* @__PURE__ */ t.jsx("label", { className: B.manualFormLabel, htmlFor: "ae-city", children: "City *" }),
|
|
1175
1175
|
/* @__PURE__ */ t.jsx(
|
|
1176
1176
|
"input",
|
|
1177
1177
|
{
|
|
1178
1178
|
id: "ae-city",
|
|
1179
1179
|
type: "text",
|
|
1180
|
-
className:
|
|
1180
|
+
className: B.manualFormInput,
|
|
1181
1181
|
value: C.city,
|
|
1182
|
-
onChange: (
|
|
1182
|
+
onChange: (x) => he("city", x.target.value),
|
|
1183
1183
|
disabled: o,
|
|
1184
1184
|
placeholder: "Austin"
|
|
1185
1185
|
}
|
|
1186
1186
|
)
|
|
1187
1187
|
] }),
|
|
1188
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
1189
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
1190
|
-
/* @__PURE__ */ t.jsx("label", { className:
|
|
1188
|
+
/* @__PURE__ */ t.jsxs("div", { className: B.formRow, children: [
|
|
1189
|
+
/* @__PURE__ */ t.jsxs("div", { className: B.manualFormField, children: [
|
|
1190
|
+
/* @__PURE__ */ t.jsx("label", { className: B.manualFormLabel, htmlFor: "ae-state", children: "State *" }),
|
|
1191
1191
|
/* @__PURE__ */ t.jsx(
|
|
1192
1192
|
"input",
|
|
1193
1193
|
{
|
|
1194
1194
|
id: "ae-state",
|
|
1195
1195
|
type: "text",
|
|
1196
|
-
className:
|
|
1196
|
+
className: B.manualFormInput,
|
|
1197
1197
|
value: C.state,
|
|
1198
|
-
onChange: (
|
|
1198
|
+
onChange: (x) => he("state", x.target.value),
|
|
1199
1199
|
disabled: o,
|
|
1200
1200
|
placeholder: "TX",
|
|
1201
1201
|
maxLength: 2
|
|
1202
1202
|
}
|
|
1203
1203
|
)
|
|
1204
1204
|
] }),
|
|
1205
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
1206
|
-
/* @__PURE__ */ t.jsx("label", { className:
|
|
1205
|
+
/* @__PURE__ */ t.jsxs("div", { className: B.manualFormField, children: [
|
|
1206
|
+
/* @__PURE__ */ t.jsx("label", { className: B.manualFormLabel, htmlFor: "ae-postalCode", children: "ZIP Code *" }),
|
|
1207
1207
|
/* @__PURE__ */ t.jsx(
|
|
1208
1208
|
"input",
|
|
1209
1209
|
{
|
|
1210
1210
|
id: "ae-postalCode",
|
|
1211
1211
|
type: "text",
|
|
1212
|
-
className:
|
|
1212
|
+
className: B.manualFormInput,
|
|
1213
1213
|
value: C.postalCode,
|
|
1214
|
-
onChange: (
|
|
1214
|
+
onChange: (x) => he("postalCode", x.target.value),
|
|
1215
1215
|
disabled: o,
|
|
1216
1216
|
placeholder: "78701",
|
|
1217
1217
|
maxLength: 5
|
|
@@ -1219,57 +1219,57 @@ function Oo({
|
|
|
1219
1219
|
)
|
|
1220
1220
|
] })
|
|
1221
1221
|
] }),
|
|
1222
|
-
|
|
1222
|
+
oe && /* @__PURE__ */ t.jsx("div", { className: B.error, children: oe }),
|
|
1223
1223
|
/* @__PURE__ */ t.jsxs(
|
|
1224
1224
|
"button",
|
|
1225
1225
|
{
|
|
1226
1226
|
type: "button",
|
|
1227
|
-
className:
|
|
1228
|
-
onClick:
|
|
1227
|
+
className: B.submitButton,
|
|
1228
|
+
onClick: Ce,
|
|
1229
1229
|
disabled: o,
|
|
1230
1230
|
children: [
|
|
1231
|
-
/* @__PURE__ */ t.jsx("span", { children:
|
|
1232
|
-
|
|
1231
|
+
/* @__PURE__ */ t.jsx("span", { children: f }),
|
|
1232
|
+
h || /* @__PURE__ */ t.jsx(pt, {})
|
|
1233
1233
|
]
|
|
1234
1234
|
}
|
|
1235
1235
|
)
|
|
1236
|
-
] }) : /* @__PURE__ */ t.jsxs("div", { className:
|
|
1236
|
+
] }) : /* @__PURE__ */ t.jsxs("div", { className: B.inputSection, children: [
|
|
1237
1237
|
/* @__PURE__ */ t.jsxs(
|
|
1238
1238
|
"div",
|
|
1239
1239
|
{
|
|
1240
|
-
className: `${
|
|
1240
|
+
className: `${B.inputWrapper} ${be ? B.errorBorder : ""}`,
|
|
1241
1241
|
children: [
|
|
1242
1242
|
/* @__PURE__ */ t.jsx(
|
|
1243
1243
|
"input",
|
|
1244
1244
|
{
|
|
1245
|
-
ref:
|
|
1245
|
+
ref: W,
|
|
1246
1246
|
type: "text",
|
|
1247
1247
|
value: V,
|
|
1248
|
-
onChange:
|
|
1249
|
-
onFocus:
|
|
1248
|
+
onChange: w,
|
|
1249
|
+
onFocus: $,
|
|
1250
1250
|
placeholder: i,
|
|
1251
|
-
className:
|
|
1251
|
+
className: B.input,
|
|
1252
1252
|
disabled: o,
|
|
1253
1253
|
"aria-label": "Address input",
|
|
1254
1254
|
"aria-autocomplete": "list",
|
|
1255
1255
|
"aria-controls": "address-suggestions",
|
|
1256
|
-
"aria-expanded":
|
|
1256
|
+
"aria-expanded": ce
|
|
1257
1257
|
}
|
|
1258
1258
|
),
|
|
1259
|
-
|
|
1260
|
-
|
|
1259
|
+
c && /* @__PURE__ */ t.jsx("div", { className: B.inputIcon, children: c }),
|
|
1260
|
+
m && /* @__PURE__ */ t.jsx(
|
|
1261
1261
|
"button",
|
|
1262
1262
|
{
|
|
1263
|
-
className:
|
|
1263
|
+
className: B.button,
|
|
1264
1264
|
type: "button",
|
|
1265
1265
|
disabled: o,
|
|
1266
|
-
"aria-label":
|
|
1267
|
-
children:
|
|
1268
|
-
/* @__PURE__ */ t.jsx("span", { children:
|
|
1266
|
+
"aria-label": f,
|
|
1267
|
+
children: ee ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
1268
|
+
/* @__PURE__ */ t.jsx("span", { children: f }),
|
|
1269
1269
|
/* @__PURE__ */ t.jsxs(
|
|
1270
1270
|
"svg",
|
|
1271
1271
|
{
|
|
1272
|
-
className:
|
|
1272
|
+
className: B.spinner,
|
|
1273
1273
|
width: "20",
|
|
1274
1274
|
height: "20",
|
|
1275
1275
|
viewBox: "0 0 24 24",
|
|
@@ -1300,183 +1300,183 @@ function Oo({
|
|
|
1300
1300
|
}
|
|
1301
1301
|
)
|
|
1302
1302
|
] }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
1303
|
-
/* @__PURE__ */ t.jsx("span", { children:
|
|
1304
|
-
|
|
1303
|
+
/* @__PURE__ */ t.jsx("span", { children: f }),
|
|
1304
|
+
h || /* @__PURE__ */ t.jsx(pt, {})
|
|
1305
1305
|
] })
|
|
1306
1306
|
}
|
|
1307
1307
|
)
|
|
1308
1308
|
]
|
|
1309
1309
|
}
|
|
1310
1310
|
),
|
|
1311
|
-
(
|
|
1311
|
+
(ce || be) && /* @__PURE__ */ t.jsx(
|
|
1312
1312
|
"div",
|
|
1313
1313
|
{
|
|
1314
|
-
ref:
|
|
1315
|
-
className: `${
|
|
1314
|
+
ref: pe,
|
|
1315
|
+
className: `${B.suggestions} ${be ? B.errorState : ""}`,
|
|
1316
1316
|
id: "address-suggestions",
|
|
1317
|
-
role:
|
|
1318
|
-
"aria-live":
|
|
1319
|
-
children:
|
|
1320
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
1321
|
-
/* @__PURE__ */ t.jsx("div", { children:
|
|
1322
|
-
] }) :
|
|
1317
|
+
role: be && !ce ? "alert" : "listbox",
|
|
1318
|
+
"aria-live": be && !ce ? "polite" : void 0,
|
|
1319
|
+
children: be ? /* @__PURE__ */ t.jsxs("div", { className: B.error, children: [
|
|
1320
|
+
/* @__PURE__ */ t.jsx("div", { className: B.errorIcon, children: /* @__PURE__ */ t.jsx(Br, {}) }),
|
|
1321
|
+
/* @__PURE__ */ t.jsx("div", { children: oe })
|
|
1322
|
+
] }) : G.length > 0 ? G.map((x, X) => /* @__PURE__ */ t.jsx(
|
|
1323
1323
|
"div",
|
|
1324
1324
|
{
|
|
1325
|
-
className:
|
|
1326
|
-
onClick: () =>
|
|
1325
|
+
className: B.suggestion,
|
|
1326
|
+
onClick: () => L(x),
|
|
1327
1327
|
role: "option",
|
|
1328
1328
|
"aria-selected": !1,
|
|
1329
1329
|
tabIndex: 0,
|
|
1330
1330
|
onKeyDown: (te) => {
|
|
1331
|
-
(te.key === "Enter" || te.key === " ") && (te.preventDefault(),
|
|
1331
|
+
(te.key === "Enter" || te.key === " ") && (te.preventDefault(), L(x));
|
|
1332
1332
|
},
|
|
1333
|
-
children:
|
|
1333
|
+
children: gt(x)
|
|
1334
1334
|
},
|
|
1335
|
-
`${
|
|
1336
|
-
)) :
|
|
1335
|
+
`${x.street1}-${x.city}-${x.postalCode}-${X}`
|
|
1336
|
+
)) : _e && /* @__PURE__ */ t.jsx(
|
|
1337
1337
|
"button",
|
|
1338
1338
|
{
|
|
1339
1339
|
type: "button",
|
|
1340
|
-
className:
|
|
1341
|
-
onClick:
|
|
1342
|
-
children:
|
|
1340
|
+
className: B.manualLink,
|
|
1341
|
+
onClick: q,
|
|
1342
|
+
children: l
|
|
1343
1343
|
}
|
|
1344
1344
|
)
|
|
1345
1345
|
}
|
|
1346
1346
|
)
|
|
1347
1347
|
] }),
|
|
1348
|
-
s && /* @__PURE__ */ t.jsx(
|
|
1348
|
+
s && /* @__PURE__ */ t.jsx(gr, {})
|
|
1349
1349
|
] });
|
|
1350
1350
|
}
|
|
1351
|
-
const
|
|
1352
|
-
container:
|
|
1353
|
-
title:
|
|
1354
|
-
addressCard:
|
|
1355
|
-
addressText:
|
|
1356
|
-
editLink:
|
|
1357
|
-
fieldGroup:
|
|
1358
|
-
fieldLabel:
|
|
1359
|
-
input:
|
|
1360
|
-
checkboxRow:
|
|
1361
|
-
checkbox:
|
|
1362
|
-
checkboxLabel:
|
|
1363
|
-
error:
|
|
1364
|
-
actions:
|
|
1365
|
-
confirmButton:
|
|
1351
|
+
const Mr = "_container_rg8mk_3", $r = "_title_rg8mk_7", Fr = "_addressCard_rg8mk_16", Wr = "_addressText_rg8mk_26", Hr = "_editLink_rg8mk_34", Vr = "_fieldGroup_rg8mk_47", Gr = "_fieldLabel_rg8mk_51", Ur = "_input_rg8mk_60", Yr = "_checkboxRow_rg8mk_84", Zr = "_checkbox_rg8mk_84", Kr = "_checkboxLabel_rg8mk_101", qr = "_error_rg8mk_108", zr = "_actions_rg8mk_115", Jr = "_confirmButton_rg8mk_120", fe = {
|
|
1352
|
+
container: Mr,
|
|
1353
|
+
title: $r,
|
|
1354
|
+
addressCard: Fr,
|
|
1355
|
+
addressText: Wr,
|
|
1356
|
+
editLink: Hr,
|
|
1357
|
+
fieldGroup: Vr,
|
|
1358
|
+
fieldLabel: Gr,
|
|
1359
|
+
input: Ur,
|
|
1360
|
+
checkboxRow: Yr,
|
|
1361
|
+
checkbox: Zr,
|
|
1362
|
+
checkboxLabel: Kr,
|
|
1363
|
+
error: qr,
|
|
1364
|
+
actions: zr,
|
|
1365
|
+
confirmButton: Jr
|
|
1366
1366
|
};
|
|
1367
|
-
function
|
|
1367
|
+
function Xr(e) {
|
|
1368
1368
|
return `${e.street1 + (e.street2 ? ` ${e.street2}` : "")}, ${e.city}, ${e.state} ${e.postalCode}`;
|
|
1369
1369
|
}
|
|
1370
|
-
function
|
|
1370
|
+
function Mo({
|
|
1371
1371
|
address: e,
|
|
1372
1372
|
appearance: r,
|
|
1373
1373
|
onConfirm: a,
|
|
1374
1374
|
onEdit: s
|
|
1375
1375
|
}) {
|
|
1376
|
-
const o =
|
|
1377
|
-
if (!
|
|
1378
|
-
|
|
1376
|
+
const o = Xe(), f = Ae(r), m = Et("partner-sdk-unit-input"), [h, c] = E(""), [l, _] = E(!1), [g, b] = E(null), I = () => {
|
|
1377
|
+
if (!l && !h.trim()) {
|
|
1378
|
+
b("Please enter a unit number or select 'No unit number'");
|
|
1379
1379
|
return;
|
|
1380
1380
|
}
|
|
1381
|
-
|
|
1381
|
+
b(null), o.trackPlatform({
|
|
1382
1382
|
buttonClickEvent: { targetName: "partner-sdk-confirm-unit" }
|
|
1383
|
-
}), a(
|
|
1383
|
+
}), a(l ? { ...e } : { ...e, street2: h.trim() });
|
|
1384
1384
|
}, D = () => {
|
|
1385
1385
|
o.trackPlatform({
|
|
1386
1386
|
checkboxClickEvent: {
|
|
1387
1387
|
targetName: "partner-sdk-no-unit",
|
|
1388
|
-
optionName: String(!
|
|
1388
|
+
optionName: String(!l)
|
|
1389
1389
|
}
|
|
1390
|
-
}),
|
|
1391
|
-
},
|
|
1392
|
-
|
|
1393
|
-
},
|
|
1390
|
+
}), _(!l), l || (c(""), b(null));
|
|
1391
|
+
}, O = (S) => {
|
|
1392
|
+
c(S.target.value), g && b(null);
|
|
1393
|
+
}, A = () => {
|
|
1394
1394
|
o.trackPlatform({
|
|
1395
1395
|
inputFocusEvent: { targetName: "partner-sdk-unit-input" }
|
|
1396
1396
|
});
|
|
1397
1397
|
};
|
|
1398
|
-
return /* @__PURE__ */ t.jsxs("div", { ref:
|
|
1399
|
-
/* @__PURE__ */ t.jsx("h2", { className:
|
|
1400
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
1401
|
-
/* @__PURE__ */ t.jsx("span", { className:
|
|
1402
|
-
s && /* @__PURE__ */ t.jsx("button", { type: "button", className:
|
|
1398
|
+
return /* @__PURE__ */ t.jsxs("div", { ref: m, style: f, className: fe.container, children: [
|
|
1399
|
+
/* @__PURE__ */ t.jsx("h2", { className: fe.title, children: "Confirm your home address" }),
|
|
1400
|
+
/* @__PURE__ */ t.jsxs("div", { className: fe.addressCard, children: [
|
|
1401
|
+
/* @__PURE__ */ t.jsx("span", { className: fe.addressText, children: Xr(e) }),
|
|
1402
|
+
s && /* @__PURE__ */ t.jsx("button", { type: "button", className: fe.editLink, onClick: s, children: "Edit" })
|
|
1403
1403
|
] }),
|
|
1404
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
1405
|
-
/* @__PURE__ */ t.jsx("label", { className:
|
|
1404
|
+
/* @__PURE__ */ t.jsxs("div", { className: fe.fieldGroup, children: [
|
|
1405
|
+
/* @__PURE__ */ t.jsx("label", { className: fe.fieldLabel, htmlFor: "od-unit-number", children: "Unit number, apt, or floor*" }),
|
|
1406
1406
|
/* @__PURE__ */ t.jsx(
|
|
1407
1407
|
"input",
|
|
1408
1408
|
{
|
|
1409
1409
|
id: "od-unit-number",
|
|
1410
1410
|
type: "text",
|
|
1411
|
-
className:
|
|
1411
|
+
className: fe.input,
|
|
1412
1412
|
placeholder: "#1234",
|
|
1413
|
-
value:
|
|
1414
|
-
onChange:
|
|
1415
|
-
onFocus:
|
|
1416
|
-
disabled:
|
|
1413
|
+
value: h,
|
|
1414
|
+
onChange: O,
|
|
1415
|
+
onFocus: A,
|
|
1416
|
+
disabled: l
|
|
1417
1417
|
}
|
|
1418
1418
|
)
|
|
1419
1419
|
] }),
|
|
1420
|
-
/* @__PURE__ */ t.jsxs("label", { className:
|
|
1420
|
+
/* @__PURE__ */ t.jsxs("label", { className: fe.checkboxRow, children: [
|
|
1421
1421
|
/* @__PURE__ */ t.jsx(
|
|
1422
1422
|
"input",
|
|
1423
1423
|
{
|
|
1424
1424
|
type: "checkbox",
|
|
1425
|
-
className:
|
|
1426
|
-
checked:
|
|
1425
|
+
className: fe.checkbox,
|
|
1426
|
+
checked: l,
|
|
1427
1427
|
onChange: D
|
|
1428
1428
|
}
|
|
1429
1429
|
),
|
|
1430
|
-
/* @__PURE__ */ t.jsx("span", { className:
|
|
1430
|
+
/* @__PURE__ */ t.jsx("span", { className: fe.checkboxLabel, children: "No unit number" })
|
|
1431
1431
|
] }),
|
|
1432
|
-
|
|
1433
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
1432
|
+
g && /* @__PURE__ */ t.jsx("p", { className: fe.error, children: g }),
|
|
1433
|
+
/* @__PURE__ */ t.jsx("div", { className: fe.actions, children: /* @__PURE__ */ t.jsx(
|
|
1434
1434
|
"button",
|
|
1435
1435
|
{
|
|
1436
1436
|
type: "button",
|
|
1437
|
-
className:
|
|
1437
|
+
className: fe.confirmButton,
|
|
1438
1438
|
onClick: I,
|
|
1439
1439
|
children: "Confirm address"
|
|
1440
1440
|
}
|
|
1441
1441
|
) })
|
|
1442
1442
|
] });
|
|
1443
1443
|
}
|
|
1444
|
-
const
|
|
1445
|
-
function
|
|
1444
|
+
const Qr = "https://api.mapbox.com/geocoding/v5/mapbox.places", en = "https://api.mapbox.com/styles/v1/mapbox/light-v11/static", tn = "pk.eyJ1Ijoib3BlbmRvb3IiLCJhIjoiWXJ2bTJiRSJ9.lsnjT9yTNyyVzKRIzqxnqg", rn = "https://images.opendoor.com/source/s3/imgdrop-production/2026-02-1771546296495-06570.png?service=partner-sdk", nn = 640, an = 320, sn = 14;
|
|
1445
|
+
function on(e, r, a) {
|
|
1446
1446
|
return e.startsWith("http://") || e.startsWith("https://") ? `url-${encodeURIComponent(e)}(${r},${a})` : `${e}(${r},${a})`;
|
|
1447
1447
|
}
|
|
1448
|
-
function
|
|
1449
|
-
const a = (r == null ? void 0 : r.mapboxAccessToken) ??
|
|
1450
|
-
return
|
|
1451
|
-
|
|
1452
|
-
const
|
|
1448
|
+
function ln(e, r) {
|
|
1449
|
+
const a = (r == null ? void 0 : r.mapboxAccessToken) ?? tn, s = (r == null ? void 0 : r.mapPinMarker) ?? rn, o = (r == null ? void 0 : r.width) ?? nn, i = (r == null ? void 0 : r.height) ?? an, f = (r == null ? void 0 : r.zoom) ?? sn, [m, h] = E(void 0), [c, l] = E("loading");
|
|
1450
|
+
return ie(() => {
|
|
1451
|
+
l("loading");
|
|
1452
|
+
const _ = [
|
|
1453
1453
|
e.street1,
|
|
1454
1454
|
e.city,
|
|
1455
1455
|
e.state,
|
|
1456
1456
|
e.postalCode
|
|
1457
1457
|
].join(" ");
|
|
1458
|
-
let
|
|
1459
|
-
async function
|
|
1458
|
+
let g = !1;
|
|
1459
|
+
async function b() {
|
|
1460
1460
|
var I, D;
|
|
1461
1461
|
try {
|
|
1462
|
-
const
|
|
1463
|
-
if (!
|
|
1464
|
-
|
|
1462
|
+
const O = `${Qr}/${encodeURIComponent(_)}.json?access_token=${a}&limit=1`, A = await fetch(O);
|
|
1463
|
+
if (!A.ok || g) {
|
|
1464
|
+
g || l("error");
|
|
1465
1465
|
return;
|
|
1466
1466
|
}
|
|
1467
|
-
const j = (D = (I = (await
|
|
1468
|
-
if (!j ||
|
|
1469
|
-
|
|
1467
|
+
const j = (D = (I = (await A.json()).features) == null ? void 0 : I[0]) == null ? void 0 : D.center;
|
|
1468
|
+
if (!j || g) {
|
|
1469
|
+
g || l("error");
|
|
1470
1470
|
return;
|
|
1471
1471
|
}
|
|
1472
|
-
const [
|
|
1473
|
-
|
|
1472
|
+
const [se, V] = j, J = on(s, se, V), G = `${en}/${J}/${se},${V},${f}/${o}x${i}@2x?access_token=${a}&attribution=false&logo=false`;
|
|
1473
|
+
g || h(G);
|
|
1474
1474
|
} catch {
|
|
1475
|
-
|
|
1475
|
+
g || l("error");
|
|
1476
1476
|
}
|
|
1477
1477
|
}
|
|
1478
|
-
return
|
|
1479
|
-
|
|
1478
|
+
return b(), () => {
|
|
1479
|
+
g = !0;
|
|
1480
1480
|
};
|
|
1481
1481
|
}, [
|
|
1482
1482
|
e.street1,
|
|
@@ -1487,71 +1487,71 @@ function sn(e, r) {
|
|
|
1487
1487
|
s,
|
|
1488
1488
|
o,
|
|
1489
1489
|
i,
|
|
1490
|
-
|
|
1491
|
-
]), { url:
|
|
1490
|
+
f
|
|
1491
|
+
]), { url: m, status: c };
|
|
1492
1492
|
}
|
|
1493
|
-
const
|
|
1494
|
-
container:
|
|
1495
|
-
mapImage:
|
|
1496
|
-
mapImageLoaded:
|
|
1493
|
+
const cn = "_container_1vap7_3", dn = "_mapImage_1vap7_13", un = "_mapImageLoaded_1vap7_22", Ue = {
|
|
1494
|
+
container: cn,
|
|
1495
|
+
mapImage: dn,
|
|
1496
|
+
mapImageLoaded: un
|
|
1497
1497
|
};
|
|
1498
|
-
function
|
|
1498
|
+
function $o({
|
|
1499
1499
|
address: e,
|
|
1500
1500
|
appearance: r,
|
|
1501
1501
|
mapboxAccessToken: a,
|
|
1502
1502
|
mapPinMarker: s,
|
|
1503
1503
|
width: o,
|
|
1504
1504
|
height: i,
|
|
1505
|
-
zoom:
|
|
1506
|
-
borderRadius:
|
|
1507
|
-
onLoad:
|
|
1508
|
-
onError:
|
|
1505
|
+
zoom: f,
|
|
1506
|
+
borderRadius: m,
|
|
1507
|
+
onLoad: h,
|
|
1508
|
+
onError: c
|
|
1509
1509
|
}) {
|
|
1510
|
-
const
|
|
1510
|
+
const l = Ae(r), { url: _, status: g } = ln(e, {
|
|
1511
1511
|
mapboxAccessToken: a,
|
|
1512
1512
|
mapPinMarker: s,
|
|
1513
1513
|
width: o,
|
|
1514
1514
|
height: i,
|
|
1515
|
-
zoom:
|
|
1516
|
-
}), [
|
|
1517
|
-
D.current =
|
|
1518
|
-
const
|
|
1519
|
-
|
|
1515
|
+
zoom: f
|
|
1516
|
+
}), [b, I] = E(!1), D = Z(h);
|
|
1517
|
+
D.current = h;
|
|
1518
|
+
const O = Z(c);
|
|
1519
|
+
O.current = c, ie(() => {
|
|
1520
1520
|
var j;
|
|
1521
|
-
|
|
1522
|
-
}, [
|
|
1523
|
-
const
|
|
1521
|
+
g === "error" && ((j = O.current) == null || j.call(O, new Error("Failed to load map for address")));
|
|
1522
|
+
}, [g]);
|
|
1523
|
+
const A = () => {
|
|
1524
1524
|
var j;
|
|
1525
1525
|
I(!0), (j = D.current) == null || j.call(D);
|
|
1526
1526
|
}, S = {
|
|
1527
|
-
...
|
|
1528
|
-
...
|
|
1527
|
+
...l,
|
|
1528
|
+
...m ? { borderRadius: m } : {}
|
|
1529
1529
|
};
|
|
1530
|
-
return /* @__PURE__ */ t.jsx("div", { className:
|
|
1530
|
+
return /* @__PURE__ */ t.jsx("div", { className: Ue.container, style: S, children: _ && /* @__PURE__ */ t.jsx(
|
|
1531
1531
|
"img",
|
|
1532
1532
|
{
|
|
1533
|
-
src:
|
|
1533
|
+
src: _,
|
|
1534
1534
|
alt: "Map",
|
|
1535
|
-
className: `${
|
|
1536
|
-
onLoad:
|
|
1535
|
+
className: `${Ue.mapImage} ${b ? Ue.mapImageLoaded : ""}`.trim(),
|
|
1536
|
+
onLoad: A
|
|
1537
1537
|
}
|
|
1538
1538
|
) });
|
|
1539
1539
|
}
|
|
1540
|
-
function
|
|
1540
|
+
function hn(e) {
|
|
1541
1541
|
return "field" in e;
|
|
1542
1542
|
}
|
|
1543
|
-
function
|
|
1543
|
+
function mn(e) {
|
|
1544
1544
|
return "and" in e;
|
|
1545
1545
|
}
|
|
1546
|
-
function
|
|
1546
|
+
function fn(e) {
|
|
1547
1547
|
return "or" in e;
|
|
1548
1548
|
}
|
|
1549
|
-
function
|
|
1550
|
-
if (
|
|
1551
|
-
return e.and.every((a) =>
|
|
1552
|
-
if (
|
|
1553
|
-
return e.or.some((a) =>
|
|
1554
|
-
if (
|
|
1549
|
+
function Oe(e, r) {
|
|
1550
|
+
if (mn(e))
|
|
1551
|
+
return e.and.every((a) => Oe(a, r));
|
|
1552
|
+
if (fn(e))
|
|
1553
|
+
return e.or.some((a) => Oe(a, r));
|
|
1554
|
+
if (hn(e)) {
|
|
1555
1555
|
const a = r(e.field);
|
|
1556
1556
|
switch (e.op) {
|
|
1557
1557
|
case "eq":
|
|
@@ -1574,13 +1574,13 @@ function Ae(e, r) {
|
|
|
1574
1574
|
}
|
|
1575
1575
|
return !1;
|
|
1576
1576
|
}
|
|
1577
|
-
function
|
|
1578
|
-
return e.questions.filter((a) => !a.showWhen ||
|
|
1577
|
+
function Ke(e, r) {
|
|
1578
|
+
return e.questions.filter((a) => !a.showWhen || Oe(a.showWhen, r));
|
|
1579
1579
|
}
|
|
1580
|
-
function
|
|
1581
|
-
return e.filter((a) => !a.showWhen ||
|
|
1580
|
+
function _t(e, r) {
|
|
1581
|
+
return e.filter((a) => !a.showWhen || Oe(a.showWhen, r));
|
|
1582
1582
|
}
|
|
1583
|
-
function
|
|
1583
|
+
function pn(e, r) {
|
|
1584
1584
|
const a = typeof r == "string" && r.trim() === "";
|
|
1585
1585
|
if (e.required) {
|
|
1586
1586
|
if (r == null || r === "" || a)
|
|
@@ -1599,18 +1599,18 @@ function fn(e, r) {
|
|
|
1599
1599
|
return e.validate(r);
|
|
1600
1600
|
}
|
|
1601
1601
|
}
|
|
1602
|
-
function
|
|
1603
|
-
const a = {}, s =
|
|
1602
|
+
function yt(e, r) {
|
|
1603
|
+
const a = {}, s = Ke(e, r);
|
|
1604
1604
|
for (const o of s) {
|
|
1605
|
-
const i = r(o.key),
|
|
1606
|
-
|
|
1605
|
+
const i = r(o.key), f = pn(o, i);
|
|
1606
|
+
f && (a[o.key] = f);
|
|
1607
1607
|
}
|
|
1608
1608
|
return {
|
|
1609
1609
|
valid: Object.keys(a).length === 0,
|
|
1610
1610
|
errors: a
|
|
1611
1611
|
};
|
|
1612
1612
|
}
|
|
1613
|
-
class
|
|
1613
|
+
class gn {
|
|
1614
1614
|
constructor(r, a) {
|
|
1615
1615
|
this._validationErrors = {}, this._submitted = !1, this._listeners = /* @__PURE__ */ new Map(), this.getAnswer = (o) => this._answers[o], this._allPages = r, this._answers = a != null && a.initialAnswers ? { ...a.initialAnswers } : {}, this._skipPages = new Set((a == null ? void 0 : a.skipPages) ?? []);
|
|
1616
1616
|
const s = this.visiblePages;
|
|
@@ -1622,7 +1622,7 @@ class mn {
|
|
|
1622
1622
|
* conditions and the partner-supplied `skipPages` allowlist.
|
|
1623
1623
|
*/
|
|
1624
1624
|
get visiblePages() {
|
|
1625
|
-
const r =
|
|
1625
|
+
const r = _t(this._allPages, this.getAnswer);
|
|
1626
1626
|
return this._skipPages.size === 0 ? r : r.filter((a) => !this._skipPages.has(a.id));
|
|
1627
1627
|
}
|
|
1628
1628
|
/** The current page, or undefined if no pages are visible. */
|
|
@@ -1706,7 +1706,7 @@ class mn {
|
|
|
1706
1706
|
const r = this.currentPage;
|
|
1707
1707
|
if (!r)
|
|
1708
1708
|
return { valid: !1, errors: { _page: "No current page" } };
|
|
1709
|
-
const a =
|
|
1709
|
+
const a = yt(r, this.getAnswer);
|
|
1710
1710
|
if (!a.valid)
|
|
1711
1711
|
return this._validationErrors = a.errors, this.emit({ type: "validationError", errors: a.errors }), a;
|
|
1712
1712
|
if (this._validationErrors = {}, this.isLastPage)
|
|
@@ -1745,14 +1745,14 @@ class mn {
|
|
|
1745
1745
|
*/
|
|
1746
1746
|
validate() {
|
|
1747
1747
|
const r = this.currentPage;
|
|
1748
|
-
return r ?
|
|
1748
|
+
return r ? yt(r, this.getAnswer) : { valid: !1, errors: { _page: "No current page" } };
|
|
1749
1749
|
}
|
|
1750
1750
|
/**
|
|
1751
1751
|
* Get visible questions on the current page (filtered by showWhen).
|
|
1752
1752
|
*/
|
|
1753
1753
|
getVisibleQuestionsForCurrentPage() {
|
|
1754
1754
|
const r = this.currentPage;
|
|
1755
|
-
return r ?
|
|
1755
|
+
return r ? Ke(r, this.getAnswer) : [];
|
|
1756
1756
|
}
|
|
1757
1757
|
// ── Events ────────────────────────────────────────────────────────────────
|
|
1758
1758
|
/**
|
|
@@ -1790,23 +1790,23 @@ class mn {
|
|
|
1790
1790
|
* must not delete those.
|
|
1791
1791
|
*/
|
|
1792
1792
|
pruneAnswersForHiddenQuestions() {
|
|
1793
|
-
const r =
|
|
1794
|
-
for (const
|
|
1795
|
-
for (const
|
|
1796
|
-
a.add(
|
|
1797
|
-
if (this._skipPages.has(
|
|
1798
|
-
for (const
|
|
1799
|
-
s.add(
|
|
1793
|
+
const r = _t(this._allPages, this.getAnswer), a = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set();
|
|
1794
|
+
for (const f of this._allPages) {
|
|
1795
|
+
for (const c of f.questions)
|
|
1796
|
+
a.add(c.key);
|
|
1797
|
+
if (this._skipPages.has(f.id)) {
|
|
1798
|
+
for (const c of f.questions)
|
|
1799
|
+
s.add(c.key);
|
|
1800
1800
|
continue;
|
|
1801
1801
|
}
|
|
1802
|
-
if (r.some((
|
|
1803
|
-
for (const
|
|
1804
|
-
s.add(
|
|
1802
|
+
if (r.some((c) => c.id === f.id))
|
|
1803
|
+
for (const c of Ke(f, this.getAnswer))
|
|
1804
|
+
s.add(c.key);
|
|
1805
1805
|
}
|
|
1806
1806
|
let o = !1;
|
|
1807
1807
|
const i = {};
|
|
1808
|
-
for (const [
|
|
1809
|
-
!a.has(
|
|
1808
|
+
for (const [f, m] of Object.entries(this._answers))
|
|
1809
|
+
!a.has(f) || s.has(f) ? i[f] = m : o = !0;
|
|
1810
1810
|
o && (this._answers = i);
|
|
1811
1811
|
}
|
|
1812
1812
|
/**
|
|
@@ -1820,7 +1820,7 @@ class mn {
|
|
|
1820
1820
|
const a = this._allPages.findIndex((o) => o.id === this._currentPageId);
|
|
1821
1821
|
let s = r[0];
|
|
1822
1822
|
for (const o of r)
|
|
1823
|
-
this._allPages.findIndex((
|
|
1823
|
+
this._allPages.findIndex((f) => f.id === o.id) <= a && (s = o);
|
|
1824
1824
|
this._currentPageId = s.id, this.emit({
|
|
1825
1825
|
type: "pageChange",
|
|
1826
1826
|
pageIndex: this.currentPageIndex,
|
|
@@ -1828,18 +1828,18 @@ class mn {
|
|
|
1828
1828
|
});
|
|
1829
1829
|
}
|
|
1830
1830
|
}
|
|
1831
|
-
const
|
|
1832
|
-
function
|
|
1833
|
-
if (typeof e == "string" && !
|
|
1831
|
+
const _n = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
|
1832
|
+
function Pt(e) {
|
|
1833
|
+
if (typeof e == "string" && !_n.test(e))
|
|
1834
1834
|
return "Please enter a valid email address";
|
|
1835
1835
|
}
|
|
1836
|
-
function
|
|
1836
|
+
function yn(e) {
|
|
1837
1837
|
if (typeof e != "string")
|
|
1838
1838
|
return;
|
|
1839
1839
|
if (e.replace(/\D/g, "").length < 10)
|
|
1840
1840
|
return "Please enter a valid 10-digit phone number";
|
|
1841
1841
|
}
|
|
1842
|
-
const
|
|
1842
|
+
const bn = {
|
|
1843
1843
|
id: "confirm-home-details",
|
|
1844
1844
|
title: "Confirm your home details",
|
|
1845
1845
|
subtitle: "This info is available to the public. You can edit these details if you've made any updates to your home.",
|
|
@@ -2031,7 +2031,7 @@ const _n = {
|
|
|
2031
2031
|
}
|
|
2032
2032
|
}
|
|
2033
2033
|
]
|
|
2034
|
-
},
|
|
2034
|
+
}, vn = {
|
|
2035
2035
|
id: "ownership",
|
|
2036
2036
|
title: "Are you the owner of this home?",
|
|
2037
2037
|
questions: [
|
|
@@ -2069,7 +2069,7 @@ const _n = {
|
|
|
2069
2069
|
}
|
|
2070
2070
|
}
|
|
2071
2071
|
]
|
|
2072
|
-
},
|
|
2072
|
+
}, xn = {
|
|
2073
2073
|
id: "sale-timeline",
|
|
2074
2074
|
title: "When do you need to sell your home?",
|
|
2075
2075
|
subtitle: "This won't affect your offer. We're here to help with any timeline.",
|
|
@@ -2090,13 +2090,13 @@ const _n = {
|
|
|
2090
2090
|
]
|
|
2091
2091
|
}
|
|
2092
2092
|
]
|
|
2093
|
-
},
|
|
2093
|
+
}, Cn = [
|
|
2094
2094
|
"fixer_upper",
|
|
2095
2095
|
"dated",
|
|
2096
2096
|
"standard",
|
|
2097
2097
|
"high_end",
|
|
2098
2098
|
"luxury"
|
|
2099
|
-
],
|
|
2099
|
+
], wn = {
|
|
2100
2100
|
kitchen: {
|
|
2101
2101
|
fixer_upper: "Kitchen needs significant repairs",
|
|
2102
2102
|
dated: "Kitchen hasn't been updated recently",
|
|
@@ -2125,14 +2125,14 @@ const _n = {
|
|
|
2125
2125
|
high_end: "Exterior has high-quality upgrades",
|
|
2126
2126
|
luxury: "Exterior has elegant, top-tier finishes"
|
|
2127
2127
|
}
|
|
2128
|
-
},
|
|
2128
|
+
}, kn = {
|
|
2129
2129
|
fixer_upper: "Fixer upper",
|
|
2130
2130
|
dated: "Dated",
|
|
2131
2131
|
standard: "Standard",
|
|
2132
2132
|
high_end: "High-end",
|
|
2133
2133
|
luxury: "Luxury"
|
|
2134
2134
|
};
|
|
2135
|
-
function
|
|
2135
|
+
function Be(e, r, a) {
|
|
2136
2136
|
return {
|
|
2137
2137
|
id: `${e}-condition`,
|
|
2138
2138
|
title: a,
|
|
@@ -2145,17 +2145,17 @@ function Oe(e, r, a) {
|
|
|
2145
2145
|
style: "image-card",
|
|
2146
2146
|
required: !0,
|
|
2147
2147
|
autoAdvance: !0,
|
|
2148
|
-
options:
|
|
2149
|
-
label:
|
|
2148
|
+
options: Cn.map((s) => ({
|
|
2149
|
+
label: kn[s],
|
|
2150
2150
|
value: s,
|
|
2151
|
-
description:
|
|
2151
|
+
description: wn[e][s],
|
|
2152
2152
|
imageId: `${e}-${s}`
|
|
2153
2153
|
}))
|
|
2154
2154
|
}
|
|
2155
2155
|
]
|
|
2156
2156
|
};
|
|
2157
2157
|
}
|
|
2158
|
-
const
|
|
2158
|
+
const jn = Be("kitchen", "home.kitchen_seller_score", "How would you describe your kitchen?"), Nn = Be("bathroom", "home.bathroom_seller_score", "How would you describe your main bathroom?"), Sn = Be("living-room", "home.living_room_seller_score", "How would you describe your living room?"), In = Be("exterior", "home.exterior_seller_score", "How would you describe your home's exterior?"), En = {
|
|
2159
2159
|
id: "hoa",
|
|
2160
2160
|
title: "Is your home part of a homeowners association?",
|
|
2161
2161
|
subtitle: "This is often called an HOA. It's a group that helps maintain your community for a fee.",
|
|
@@ -2173,7 +2173,7 @@ const wn = Oe("kitchen", "home.kitchen_seller_score", "How would you describe yo
|
|
|
2173
2173
|
]
|
|
2174
2174
|
}
|
|
2175
2175
|
]
|
|
2176
|
-
},
|
|
2176
|
+
}, Pn = {
|
|
2177
2177
|
id: "hoa-type",
|
|
2178
2178
|
title: "Does your home belong to any of these types of communities?",
|
|
2179
2179
|
showWhen: { field: "home.hoa", op: "eq", value: "yes" },
|
|
@@ -2194,7 +2194,7 @@ const wn = Oe("kitchen", "home.kitchen_seller_score", "How would you describe yo
|
|
|
2194
2194
|
]
|
|
2195
2195
|
}
|
|
2196
2196
|
]
|
|
2197
|
-
},
|
|
2197
|
+
}, Ln = {
|
|
2198
2198
|
id: "hoa-guard",
|
|
2199
2199
|
title: "Is there a guard at the entrance?",
|
|
2200
2200
|
showWhen: {
|
|
@@ -2217,7 +2217,7 @@ const wn = Oe("kitchen", "home.kitchen_seller_score", "How would you describe yo
|
|
|
2217
2217
|
]
|
|
2218
2218
|
}
|
|
2219
2219
|
]
|
|
2220
|
-
},
|
|
2220
|
+
}, Tn = {
|
|
2221
2221
|
id: "hoa-fees",
|
|
2222
2222
|
title: "What are your monthly HOA fees?",
|
|
2223
2223
|
subtitle: "(Optional) This helps us better understand your property's monthly expenses.",
|
|
@@ -2232,7 +2232,7 @@ const wn = Oe("kitchen", "home.kitchen_seller_score", "How would you describe yo
|
|
|
2232
2232
|
min: 0
|
|
2233
2233
|
}
|
|
2234
2234
|
]
|
|
2235
|
-
},
|
|
2235
|
+
}, An = {
|
|
2236
2236
|
id: "eligibility-criteria",
|
|
2237
2237
|
title: "Do any of these apply to your home?",
|
|
2238
2238
|
subtitle: "Select all that apply. We keep an eye out for these things when making an offer.",
|
|
@@ -2287,7 +2287,7 @@ const wn = Oe("kitchen", "home.kitchen_seller_score", "How would you describe yo
|
|
|
2287
2287
|
]
|
|
2288
2288
|
}
|
|
2289
2289
|
]
|
|
2290
|
-
},
|
|
2290
|
+
}, Dn = {
|
|
2291
2291
|
id: "upgrades",
|
|
2292
2292
|
title: "Has your home had any upgrades?",
|
|
2293
2293
|
subtitle: "This includes renovations, remodels, or major improvements.",
|
|
@@ -2305,7 +2305,7 @@ const wn = Oe("kitchen", "home.kitchen_seller_score", "How would you describe yo
|
|
|
2305
2305
|
]
|
|
2306
2306
|
}
|
|
2307
2307
|
]
|
|
2308
|
-
},
|
|
2308
|
+
}, On = {
|
|
2309
2309
|
id: "homebuilder",
|
|
2310
2310
|
title: "Are you working with a homebuilder?",
|
|
2311
2311
|
subtitle: "We can work with them to line up your close dates.",
|
|
@@ -2323,7 +2323,7 @@ const wn = Oe("kitchen", "home.kitchen_seller_score", "How would you describe yo
|
|
|
2323
2323
|
]
|
|
2324
2324
|
}
|
|
2325
2325
|
]
|
|
2326
|
-
},
|
|
2326
|
+
}, Rn = {
|
|
2327
2327
|
id: "homebuilder-name",
|
|
2328
2328
|
title: "Which homebuilder are you working with?",
|
|
2329
2329
|
showWhen: {
|
|
@@ -2342,7 +2342,7 @@ const wn = Oe("kitchen", "home.kitchen_seller_score", "How would you describe yo
|
|
|
2342
2342
|
placeholder: "Select or search..."
|
|
2343
2343
|
}
|
|
2344
2344
|
]
|
|
2345
|
-
},
|
|
2345
|
+
}, Bn = {
|
|
2346
2346
|
id: "homebuilder-details",
|
|
2347
2347
|
title: "Please tell us more about your homebuilder",
|
|
2348
2348
|
showWhen: {
|
|
@@ -2358,7 +2358,7 @@ const wn = Oe("kitchen", "home.kitchen_seller_score", "How would you describe yo
|
|
|
2358
2358
|
style: "email",
|
|
2359
2359
|
required: !1,
|
|
2360
2360
|
placeholder: "you@example.com",
|
|
2361
|
-
validate:
|
|
2361
|
+
validate: Pt
|
|
2362
2362
|
},
|
|
2363
2363
|
{
|
|
2364
2364
|
key: "seller.home_builder_community",
|
|
@@ -2369,7 +2369,7 @@ const wn = Oe("kitchen", "home.kitchen_seller_score", "How would you describe yo
|
|
|
2369
2369
|
placeholder: "Community name"
|
|
2370
2370
|
}
|
|
2371
2371
|
]
|
|
2372
|
-
},
|
|
2372
|
+
}, Mn = {
|
|
2373
2373
|
id: "contact-info",
|
|
2374
2374
|
title: "You're one step from your offer.",
|
|
2375
2375
|
subtitle: "Create a free account to see your offer. No commitment to sell — just your number, email, and name.",
|
|
@@ -2390,7 +2390,7 @@ const wn = Oe("kitchen", "home.kitchen_seller_score", "How would you describe yo
|
|
|
2390
2390
|
style: "email",
|
|
2391
2391
|
required: !0,
|
|
2392
2392
|
placeholder: "you@example.com",
|
|
2393
|
-
validate:
|
|
2393
|
+
validate: Pt
|
|
2394
2394
|
},
|
|
2395
2395
|
{
|
|
2396
2396
|
key: "seller.phone_number",
|
|
@@ -2399,7 +2399,7 @@ const wn = Oe("kitchen", "home.kitchen_seller_score", "How would you describe yo
|
|
|
2399
2399
|
style: "phone",
|
|
2400
2400
|
required: !0,
|
|
2401
2401
|
placeholder: "(555) 555-5555",
|
|
2402
|
-
validate:
|
|
2402
|
+
validate: yn
|
|
2403
2403
|
},
|
|
2404
2404
|
{
|
|
2405
2405
|
key: "seller.sms_opt_in",
|
|
@@ -2409,12 +2409,10 @@ const wn = Oe("kitchen", "home.kitchen_seller_score", "How would you describe yo
|
|
|
2409
2409
|
required: !1
|
|
2410
2410
|
}
|
|
2411
2411
|
]
|
|
2412
|
-
},
|
|
2413
|
-
_n,
|
|
2412
|
+
}, $n = [
|
|
2414
2413
|
bn,
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
kn,
|
|
2414
|
+
vn,
|
|
2415
|
+
xn,
|
|
2418
2416
|
jn,
|
|
2419
2417
|
Nn,
|
|
2420
2418
|
Sn,
|
|
@@ -2426,118 +2424,120 @@ const wn = Oe("kitchen", "home.kitchen_seller_score", "How would you describe yo
|
|
|
2426
2424
|
An,
|
|
2427
2425
|
Dn,
|
|
2428
2426
|
On,
|
|
2429
|
-
Rn
|
|
2427
|
+
Rn,
|
|
2428
|
+
Bn,
|
|
2429
|
+
Mn
|
|
2430
2430
|
];
|
|
2431
|
-
function
|
|
2432
|
-
return new
|
|
2431
|
+
function bt(e) {
|
|
2432
|
+
return new gn($n, e);
|
|
2433
2433
|
}
|
|
2434
|
-
const
|
|
2435
|
-
function
|
|
2436
|
-
const e =
|
|
2434
|
+
const Lt = qe(null);
|
|
2435
|
+
function ge() {
|
|
2436
|
+
const e = Re(Lt);
|
|
2437
2437
|
if (!e)
|
|
2438
2438
|
throw new Error(
|
|
2439
2439
|
"useDtc must be used within a <DtcOnboardingFlow> component"
|
|
2440
2440
|
);
|
|
2441
2441
|
return e;
|
|
2442
2442
|
}
|
|
2443
|
-
const
|
|
2443
|
+
const Fn = ({
|
|
2444
2444
|
initialAnswers: e,
|
|
2445
2445
|
skipPages: r,
|
|
2446
2446
|
smsConsentText: a,
|
|
2447
2447
|
contactConsentText: s,
|
|
2448
2448
|
submitLabel: o,
|
|
2449
2449
|
contactPageTitle: i,
|
|
2450
|
-
contactPageSubtitle:
|
|
2451
|
-
onSubmit:
|
|
2452
|
-
onPageChange:
|
|
2453
|
-
onAnswerChange:
|
|
2454
|
-
onReady:
|
|
2455
|
-
onError:
|
|
2456
|
-
children:
|
|
2450
|
+
contactPageSubtitle: f,
|
|
2451
|
+
onSubmit: m,
|
|
2452
|
+
onPageChange: h,
|
|
2453
|
+
onAnswerChange: c,
|
|
2454
|
+
onReady: l,
|
|
2455
|
+
onError: _,
|
|
2456
|
+
children: g
|
|
2457
2457
|
}) => {
|
|
2458
|
-
var
|
|
2459
|
-
const
|
|
2460
|
-
|
|
2461
|
-
const I =
|
|
2462
|
-
I.current =
|
|
2463
|
-
const D =
|
|
2464
|
-
D.current =
|
|
2465
|
-
const
|
|
2466
|
-
|
|
2467
|
-
const
|
|
2468
|
-
|
|
2458
|
+
var le;
|
|
2459
|
+
const b = Z(m);
|
|
2460
|
+
b.current = m;
|
|
2461
|
+
const I = Z(h);
|
|
2462
|
+
I.current = h;
|
|
2463
|
+
const D = Z(c);
|
|
2464
|
+
D.current = c;
|
|
2465
|
+
const O = Z(l);
|
|
2466
|
+
O.current = l;
|
|
2467
|
+
const A = Z(_);
|
|
2468
|
+
A.current = _;
|
|
2469
2469
|
const [S, j] = E(
|
|
2470
|
-
() =>
|
|
2471
|
-
),
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
}, [
|
|
2475
|
-
const [
|
|
2470
|
+
() => bt({ initialAnswers: e, skipPages: r })
|
|
2471
|
+
), se = (r ?? []).join("|"), V = Z(se);
|
|
2472
|
+
ie(() => {
|
|
2473
|
+
se !== V.current && (V.current = se, j(bt({ initialAnswers: e, skipPages: r })));
|
|
2474
|
+
}, [se]);
|
|
2475
|
+
const [J, G] = E(
|
|
2476
2476
|
S.answers
|
|
2477
|
-
), [
|
|
2478
|
-
((
|
|
2479
|
-
), [
|
|
2477
|
+
), [P, ce] = E(
|
|
2478
|
+
((le = S.currentPage) == null ? void 0 : le.id) ?? ""
|
|
2479
|
+
), [z, ee] = E({}), [Y, oe] = E(
|
|
2480
2480
|
S.visiblePages
|
|
2481
2481
|
);
|
|
2482
|
-
|
|
2483
|
-
var
|
|
2484
|
-
const
|
|
2482
|
+
ie(() => {
|
|
2483
|
+
var ae;
|
|
2484
|
+
const W = [
|
|
2485
2485
|
S.on("answerChange", (M) => {
|
|
2486
|
-
var
|
|
2487
|
-
|
|
2486
|
+
var ue;
|
|
2487
|
+
G(S.answers), oe([...S.visiblePages]), M.type === "answerChange" && ((ue = D.current) == null || ue.call(D, M.key, M.value));
|
|
2488
2488
|
}),
|
|
2489
2489
|
S.on("pageChange", (M) => {
|
|
2490
|
-
var
|
|
2491
|
-
M.type === "pageChange" && (
|
|
2490
|
+
var ue;
|
|
2491
|
+
M.type === "pageChange" && (ce(M.pageId), oe([...S.visiblePages]), ee({}), (ue = I.current) == null || ue.call(I, M.pageIndex, M.pageId));
|
|
2492
2492
|
}),
|
|
2493
2493
|
S.on("validationError", (M) => {
|
|
2494
|
-
M.type === "validationError" &&
|
|
2494
|
+
M.type === "validationError" && ee(M.errors);
|
|
2495
2495
|
}),
|
|
2496
2496
|
S.on("submit", (M) => {
|
|
2497
|
-
M.type === "submit" &&
|
|
2497
|
+
M.type === "submit" && b.current(M.answers);
|
|
2498
2498
|
})
|
|
2499
2499
|
];
|
|
2500
|
-
return (
|
|
2501
|
-
|
|
2500
|
+
return (ae = O.current) == null || ae.call(O), () => {
|
|
2501
|
+
W.forEach((M) => M()), S.destroy();
|
|
2502
2502
|
};
|
|
2503
2503
|
}, [S]);
|
|
2504
|
-
const
|
|
2505
|
-
|
|
2506
|
-
e && e !==
|
|
2504
|
+
const K = Z(e);
|
|
2505
|
+
ie(() => {
|
|
2506
|
+
e && e !== K.current && (K.current = e, S.setAnswers(e));
|
|
2507
2507
|
}, [e, S]);
|
|
2508
|
-
const
|
|
2509
|
-
const
|
|
2510
|
-
return
|
|
2511
|
-
}, [Y,
|
|
2508
|
+
const F = Pe(() => {
|
|
2509
|
+
const W = Y.findIndex((ae) => ae.id === P);
|
|
2510
|
+
return W >= 0 ? W : 0;
|
|
2511
|
+
}, [Y, P]), de = Y[F], v = Pe(() => P ? S.getVisibleQuestionsForCurrentPage() : [], [S, P, J]), k = Pe(() => Y.length <= 1 ? 0 : Math.min(
|
|
2512
2512
|
1,
|
|
2513
|
-
Math.max(0,
|
|
2514
|
-
), [
|
|
2513
|
+
Math.max(0, F / (Y.length - 1))
|
|
2514
|
+
), [F, Y.length]), C = Pe(
|
|
2515
2515
|
() => ({
|
|
2516
2516
|
engine: S,
|
|
2517
|
-
currentPage:
|
|
2518
|
-
currentPageIndex:
|
|
2517
|
+
currentPage: de,
|
|
2518
|
+
currentPageIndex: F,
|
|
2519
2519
|
visiblePages: Y,
|
|
2520
|
-
visibleQuestions:
|
|
2521
|
-
answers:
|
|
2522
|
-
validationErrors:
|
|
2520
|
+
visibleQuestions: v,
|
|
2521
|
+
answers: J,
|
|
2522
|
+
validationErrors: z,
|
|
2523
2523
|
progress: k,
|
|
2524
|
-
isFirstPage:
|
|
2524
|
+
isFirstPage: F === 0,
|
|
2525
2525
|
contactConsentText: s,
|
|
2526
2526
|
submitLabel: o,
|
|
2527
2527
|
contactPageTitle: i,
|
|
2528
|
-
contactPageSubtitle:
|
|
2529
|
-
isLastPage: Y.length > 0 &&
|
|
2530
|
-
setAnswer: (
|
|
2528
|
+
contactPageSubtitle: f,
|
|
2529
|
+
isLastPage: Y.length > 0 && F === Y.length - 1,
|
|
2530
|
+
setAnswer: (W, ae) => S.setAnswer(W, ae),
|
|
2531
2531
|
getAnswer: S.getAnswer,
|
|
2532
2532
|
goToNext: () => {
|
|
2533
|
-
var
|
|
2534
|
-
const
|
|
2535
|
-
if (!
|
|
2533
|
+
var ae;
|
|
2534
|
+
const W = S.goToNext();
|
|
2535
|
+
if (!W.valid)
|
|
2536
2536
|
try {
|
|
2537
|
-
(
|
|
2538
|
-
|
|
2537
|
+
(ae = A.current) == null || ae.call(
|
|
2538
|
+
A,
|
|
2539
2539
|
new Error(
|
|
2540
|
-
`Validation failed: ${Object.values(
|
|
2540
|
+
`Validation failed: ${Object.values(W.errors).join(", ")}`
|
|
2541
2541
|
)
|
|
2542
2542
|
);
|
|
2543
2543
|
} catch (M) {
|
|
@@ -2549,92 +2549,28 @@ const Mn = ({
|
|
|
2549
2549
|
}),
|
|
2550
2550
|
[
|
|
2551
2551
|
S,
|
|
2552
|
-
|
|
2553
|
-
|
|
2552
|
+
de,
|
|
2553
|
+
F,
|
|
2554
2554
|
Y,
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2555
|
+
v,
|
|
2556
|
+
J,
|
|
2557
|
+
z,
|
|
2558
2558
|
k,
|
|
2559
2559
|
a,
|
|
2560
2560
|
s,
|
|
2561
2561
|
o,
|
|
2562
2562
|
i,
|
|
2563
|
-
|
|
2563
|
+
f
|
|
2564
2564
|
]
|
|
2565
2565
|
);
|
|
2566
|
-
return /* @__PURE__ */ t.jsx(
|
|
2567
|
-
},
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
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,
|
|
2610
|
-
fieldSuffix: Sa,
|
|
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(
|
|
2566
|
+
return /* @__PURE__ */ t.jsx(Lt.Provider, { value: C, children: g });
|
|
2567
|
+
}, Wn = "_header_1o9p2_5", Hn = "_headerLogos_1o9p2_15", Vn = "_partnerLogo_1o9p2_21", Gn = "_opendoorLogo_1o9p2_27", Un = "_closeButton_1o9p2_31", Le = {
|
|
2568
|
+
header: Wn,
|
|
2569
|
+
headerLogos: Hn,
|
|
2570
|
+
partnerLogo: Vn,
|
|
2571
|
+
opendoorLogo: Gn,
|
|
2572
|
+
closeButton: Un
|
|
2573
|
+
}, Yn = () => /* @__PURE__ */ t.jsx(
|
|
2638
2574
|
"svg",
|
|
2639
2575
|
{
|
|
2640
2576
|
width: "90",
|
|
@@ -2644,7 +2580,7 @@ const Mn = ({
|
|
|
2644
2580
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2645
2581
|
"aria-label": "Opendoor",
|
|
2646
2582
|
role: "img",
|
|
2647
|
-
className:
|
|
2583
|
+
className: Le.opendoorLogo,
|
|
2648
2584
|
children: /* @__PURE__ */ t.jsx(
|
|
2649
2585
|
"path",
|
|
2650
2586
|
{
|
|
@@ -2653,26 +2589,26 @@ const Mn = ({
|
|
|
2653
2589
|
}
|
|
2654
2590
|
)
|
|
2655
2591
|
}
|
|
2656
|
-
),
|
|
2592
|
+
), Ie = ({
|
|
2657
2593
|
partnerLogoUrl: e,
|
|
2658
2594
|
onClose: r
|
|
2659
|
-
}) => /* @__PURE__ */ t.jsxs("header", { className:
|
|
2660
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
2595
|
+
}) => /* @__PURE__ */ t.jsxs("header", { className: Le.header, children: [
|
|
2596
|
+
/* @__PURE__ */ t.jsxs("div", { className: Le.headerLogos, children: [
|
|
2661
2597
|
e && /* @__PURE__ */ t.jsx(
|
|
2662
2598
|
"img",
|
|
2663
2599
|
{
|
|
2664
2600
|
src: e,
|
|
2665
2601
|
alt: "Partner",
|
|
2666
|
-
className:
|
|
2602
|
+
className: Le.partnerLogo
|
|
2667
2603
|
}
|
|
2668
2604
|
),
|
|
2669
|
-
/* @__PURE__ */ t.jsx(
|
|
2605
|
+
/* @__PURE__ */ t.jsx(Yn, {})
|
|
2670
2606
|
] }),
|
|
2671
2607
|
r && /* @__PURE__ */ t.jsx(
|
|
2672
2608
|
"button",
|
|
2673
2609
|
{
|
|
2674
2610
|
type: "button",
|
|
2675
|
-
className:
|
|
2611
|
+
className: Le.closeButton,
|
|
2676
2612
|
onClick: r,
|
|
2677
2613
|
"aria-label": "Close",
|
|
2678
2614
|
children: /* @__PURE__ */ t.jsxs(
|
|
@@ -2694,12 +2630,77 @@ const Mn = ({
|
|
|
2694
2630
|
)
|
|
2695
2631
|
}
|
|
2696
2632
|
)
|
|
2697
|
-
] }),
|
|
2633
|
+
] }), Zn = "_container_150ym_7", Kn = "_layout_150ym_20", qn = "_layoutScrollable_150ym_27", zn = "_addressBar_150ym_43", Jn = "_addressIcon_150ym_51", Xn = "_addressText_150ym_55", Qn = "_contentSplit_150ym_61", ea = "_contentLeft_150ym_75", ta = "_contentRight_150ym_81", ra = "_pageTitle_150ym_97", na = "_pageSubtitle_150ym_105", aa = "_pageContent_150ym_114", sa = "_navigation_150ym_122", oa = "_navigationButtons_150ym_136", ia = "_backButton_150ym_142", la = "_nextButton_150ym_165", ca = "_progressBar_150ym_191", da = "_progressBarFill_150ym_198", ua = "_radioCardGroup_150ym_206", ha = "_radioCard_150ym_206", ma = "_radioCardSelected_150ym_238", fa = "_radioCardLabel_150ym_243", pa = "_radioCardDescription_150ym_249", ga = "_imageCardGroup_150ym_256", _a = "_imageCard_150ym_256", ya = "_imageCardSelected_150ym_288", ba = "_imageCardPhoto_150ym_293", va = "_imageCardLabel_150ym_300", xa = "_imageCardDescription_150ym_307", Ca = "_fieldGroup_150ym_316", wa = "_fieldLabel_150ym_322", ka = "_fieldDescription_150ym_329", ja = "_fieldSelect_150ym_336", Na = "_fieldSelectError_150ym_362", Sa = "_fieldInputWrapper_150ym_366", Ia = "_fieldInput_150ym_366", Ea = "_fieldInputError_150ym_404", Pa = "_fieldSuffix_150ym_408", La = "_fieldError_150ym_419", Ta = "_checkboxCardGroup_150ym_428", Aa = "_checkboxCard_150ym_428", Da = "_checkboxCardSelected_150ym_460", Oa = "_checkboxCardContent_150ym_465", Ra = "_checkboxCardLabel_150ym_472", Ba = "_checkboxCardHelper_150ym_478", Ma = "_checkboxIndicator_150ym_483", $a = "_checkboxIndicatorChecked_150ym_495", Fa = "_currencyWrapper_150ym_503", Wa = "_currencyPrefix_150ym_509", Ha = "_currencyInput_150ym_518", Va = "_consentText_150ym_538", Ga = "_consentLink_150ym_546", Ua = "_ctaButton_150ym_551", Ya = "_toggleGroup_150ym_583", Za = "_toggleLabel_150ym_587", Ka = "_toggleCheckbox_150ym_595", qa = "_toggleText_150ym_604", za = "_searchableDropdown_150ym_612", Ja = "_searchableDropdownToggle_150ym_622", Xa = "_searchableDropdownList_150ym_635", Qa = "_searchableDropdownOption_150ym_644", es = "_searchableDropdownOptionSelected_150ym_662", ts = "_searchableDropdownOptionHighlighted_150ym_667", rs = "_searchableDropdownEmpty_150ym_671", u = {
|
|
2634
|
+
container: Zn,
|
|
2635
|
+
layout: Kn,
|
|
2636
|
+
layoutScrollable: qn,
|
|
2637
|
+
addressBar: zn,
|
|
2638
|
+
addressIcon: Jn,
|
|
2639
|
+
addressText: Xn,
|
|
2640
|
+
contentSplit: Qn,
|
|
2641
|
+
contentLeft: ea,
|
|
2642
|
+
contentRight: ta,
|
|
2643
|
+
pageTitle: ra,
|
|
2644
|
+
pageSubtitle: na,
|
|
2645
|
+
pageContent: aa,
|
|
2646
|
+
navigation: sa,
|
|
2647
|
+
navigationButtons: oa,
|
|
2648
|
+
backButton: ia,
|
|
2649
|
+
nextButton: la,
|
|
2650
|
+
progressBar: ca,
|
|
2651
|
+
progressBarFill: da,
|
|
2652
|
+
radioCardGroup: ua,
|
|
2653
|
+
radioCard: ha,
|
|
2654
|
+
radioCardSelected: ma,
|
|
2655
|
+
radioCardLabel: fa,
|
|
2656
|
+
radioCardDescription: pa,
|
|
2657
|
+
imageCardGroup: ga,
|
|
2658
|
+
imageCard: _a,
|
|
2659
|
+
imageCardSelected: ya,
|
|
2660
|
+
imageCardPhoto: ba,
|
|
2661
|
+
imageCardLabel: va,
|
|
2662
|
+
imageCardDescription: xa,
|
|
2663
|
+
fieldGroup: Ca,
|
|
2664
|
+
fieldLabel: wa,
|
|
2665
|
+
fieldDescription: ka,
|
|
2666
|
+
fieldSelect: ja,
|
|
2667
|
+
fieldSelectError: Na,
|
|
2668
|
+
fieldInputWrapper: Sa,
|
|
2669
|
+
fieldInput: Ia,
|
|
2670
|
+
fieldInputError: Ea,
|
|
2671
|
+
fieldSuffix: Pa,
|
|
2672
|
+
fieldError: La,
|
|
2673
|
+
checkboxCardGroup: Ta,
|
|
2674
|
+
checkboxCard: Aa,
|
|
2675
|
+
checkboxCardSelected: Da,
|
|
2676
|
+
checkboxCardContent: Oa,
|
|
2677
|
+
checkboxCardLabel: Ra,
|
|
2678
|
+
checkboxCardHelper: Ba,
|
|
2679
|
+
checkboxIndicator: Ma,
|
|
2680
|
+
checkboxIndicatorChecked: $a,
|
|
2681
|
+
currencyWrapper: Fa,
|
|
2682
|
+
currencyPrefix: Wa,
|
|
2683
|
+
currencyInput: Ha,
|
|
2684
|
+
consentText: Va,
|
|
2685
|
+
consentLink: Ga,
|
|
2686
|
+
ctaButton: Ua,
|
|
2687
|
+
toggleGroup: Ya,
|
|
2688
|
+
toggleLabel: Za,
|
|
2689
|
+
toggleCheckbox: Ka,
|
|
2690
|
+
toggleText: qa,
|
|
2691
|
+
searchableDropdown: za,
|
|
2692
|
+
searchableDropdownToggle: Ja,
|
|
2693
|
+
searchableDropdownList: Xa,
|
|
2694
|
+
searchableDropdownOption: Qa,
|
|
2695
|
+
searchableDropdownOptionSelected: es,
|
|
2696
|
+
searchableDropdownOptionHighlighted: ts,
|
|
2697
|
+
searchableDropdownEmpty: rs
|
|
2698
|
+
}, ns = ({ progress: e }) => {
|
|
2698
2699
|
const r = Math.min(100, Math.max(0, e * 100));
|
|
2699
2700
|
return /* @__PURE__ */ t.jsx(
|
|
2700
2701
|
"div",
|
|
2701
2702
|
{
|
|
2702
|
-
className:
|
|
2703
|
+
className: u.progressBar,
|
|
2703
2704
|
role: "progressbar",
|
|
2704
2705
|
"aria-valuenow": r,
|
|
2705
2706
|
"aria-valuemin": 0,
|
|
@@ -2707,24 +2708,24 @@ const Mn = ({
|
|
|
2707
2708
|
children: /* @__PURE__ */ t.jsx(
|
|
2708
2709
|
"div",
|
|
2709
2710
|
{
|
|
2710
|
-
className:
|
|
2711
|
+
className: u.progressBarFill,
|
|
2711
2712
|
style: { width: `${r}%` }
|
|
2712
2713
|
}
|
|
2713
2714
|
)
|
|
2714
2715
|
}
|
|
2715
2716
|
);
|
|
2716
|
-
},
|
|
2717
|
-
const { isFirstPage: e, currentPage: r, progress: a, goToNext: s, goToPrev: o } =
|
|
2717
|
+
}, as = () => {
|
|
2718
|
+
const { isFirstPage: e, currentPage: r, progress: a, goToNext: s, goToPrev: o } = ge();
|
|
2718
2719
|
if ((r == null ? void 0 : r.id) === "contact-info") return null;
|
|
2719
2720
|
const i = (r == null ? void 0 : r.submitLabel) ?? "Next";
|
|
2720
|
-
return /* @__PURE__ */ t.jsxs("nav", { className:
|
|
2721
|
-
/* @__PURE__ */ t.jsx(
|
|
2722
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
2721
|
+
return /* @__PURE__ */ t.jsxs("nav", { className: u.navigation, "aria-label": "Page navigation", children: [
|
|
2722
|
+
/* @__PURE__ */ t.jsx(ns, { progress: a }),
|
|
2723
|
+
/* @__PURE__ */ t.jsxs("div", { className: u.navigationButtons, children: [
|
|
2723
2724
|
e ? /* @__PURE__ */ t.jsx("div", {}) : /* @__PURE__ */ t.jsx(
|
|
2724
2725
|
"button",
|
|
2725
2726
|
{
|
|
2726
2727
|
type: "button",
|
|
2727
|
-
className:
|
|
2728
|
+
className: u.backButton,
|
|
2728
2729
|
onClick: o,
|
|
2729
2730
|
"aria-label": "Go back",
|
|
2730
2731
|
children: /* @__PURE__ */ t.jsx(
|
|
@@ -2743,69 +2744,69 @@ const Mn = ({
|
|
|
2743
2744
|
)
|
|
2744
2745
|
}
|
|
2745
2746
|
),
|
|
2746
|
-
/* @__PURE__ */ t.jsx("button", { type: "button", className:
|
|
2747
|
+
/* @__PURE__ */ t.jsx("button", { type: "button", className: u.nextButton, onClick: s, children: i })
|
|
2747
2748
|
] })
|
|
2748
2749
|
] });
|
|
2749
|
-
},
|
|
2750
|
-
var
|
|
2751
|
-
const { getAnswer: r, setAnswer: a, goToNext: s, validationErrors: o } =
|
|
2752
|
-
|
|
2753
|
-
|
|
2750
|
+
}, ss = ({ question: e }) => {
|
|
2751
|
+
var l;
|
|
2752
|
+
const { getAnswer: r, setAnswer: a, goToNext: s, validationErrors: o } = ge(), i = r(e.key), f = o[e.key], m = Z(null);
|
|
2753
|
+
ie(() => () => {
|
|
2754
|
+
m.current && clearTimeout(m.current);
|
|
2754
2755
|
}, []);
|
|
2755
|
-
const
|
|
2756
|
-
(
|
|
2757
|
-
a(e.key,
|
|
2756
|
+
const h = Te(
|
|
2757
|
+
(_) => {
|
|
2758
|
+
a(e.key, _), e.autoAdvance && (m.current && clearTimeout(m.current), m.current = setTimeout(() => s(), 150));
|
|
2758
2759
|
},
|
|
2759
2760
|
[e.key, e.autoAdvance, a, s]
|
|
2760
|
-
),
|
|
2761
|
-
(
|
|
2762
|
-
var D,
|
|
2763
|
-
const
|
|
2764
|
-
if (!
|
|
2761
|
+
), c = Te(
|
|
2762
|
+
(_, g) => {
|
|
2763
|
+
var D, O;
|
|
2764
|
+
const b = e.options;
|
|
2765
|
+
if (!b) return;
|
|
2765
2766
|
let I = null;
|
|
2766
|
-
if (
|
|
2767
|
-
const
|
|
2768
|
-
(
|
|
2767
|
+
if (_.key === "ArrowDown" || _.key === "ArrowRight" ? (_.preventDefault(), I = (g + 1) % b.length) : (_.key === "ArrowUp" || _.key === "ArrowLeft") && (_.preventDefault(), I = (g - 1 + b.length) % b.length), I !== null) {
|
|
2768
|
+
const A = (D = _.currentTarget.closest('[role="radiogroup"]')) == null ? void 0 : D.querySelectorAll('[role="radio"]');
|
|
2769
|
+
(O = A == null ? void 0 : A[I]) == null || O.focus(), h(b[I].value);
|
|
2769
2770
|
}
|
|
2770
2771
|
},
|
|
2771
|
-
[e.options,
|
|
2772
|
+
[e.options, h]
|
|
2772
2773
|
);
|
|
2773
2774
|
return /* @__PURE__ */ t.jsxs(
|
|
2774
2775
|
"div",
|
|
2775
2776
|
{
|
|
2776
|
-
className:
|
|
2777
|
+
className: u.radioCardGroup,
|
|
2777
2778
|
role: "radiogroup",
|
|
2778
2779
|
"aria-label": e.label,
|
|
2779
2780
|
children: [
|
|
2780
|
-
(
|
|
2781
|
-
const
|
|
2781
|
+
(l = e.options) == null ? void 0 : l.map((_, g) => {
|
|
2782
|
+
const b = i === _.value;
|
|
2782
2783
|
return /* @__PURE__ */ t.jsxs(
|
|
2783
2784
|
"button",
|
|
2784
2785
|
{
|
|
2785
2786
|
type: "button",
|
|
2786
2787
|
role: "radio",
|
|
2787
|
-
"aria-checked":
|
|
2788
|
-
tabIndex:
|
|
2789
|
-
className: `${
|
|
2790
|
-
onClick: () =>
|
|
2791
|
-
onKeyDown: (I) =>
|
|
2788
|
+
"aria-checked": b,
|
|
2789
|
+
tabIndex: b || g === 0 && !i ? 0 : -1,
|
|
2790
|
+
className: `${u.radioCard} ${b ? u.radioCardSelected : ""}`,
|
|
2791
|
+
onClick: () => h(_.value),
|
|
2792
|
+
onKeyDown: (I) => c(I, g),
|
|
2792
2793
|
children: [
|
|
2793
|
-
/* @__PURE__ */ t.jsx("span", { className:
|
|
2794
|
-
|
|
2794
|
+
/* @__PURE__ */ t.jsx("span", { className: u.radioCardLabel, children: _.label }),
|
|
2795
|
+
_.description && /* @__PURE__ */ t.jsx("span", { className: u.radioCardDescription, children: _.description })
|
|
2795
2796
|
]
|
|
2796
2797
|
},
|
|
2797
|
-
String(
|
|
2798
|
+
String(_.value)
|
|
2798
2799
|
);
|
|
2799
2800
|
}),
|
|
2800
|
-
|
|
2801
|
+
f && /* @__PURE__ */ t.jsx("p", { className: u.fieldError, children: f })
|
|
2801
2802
|
]
|
|
2802
2803
|
}
|
|
2803
2804
|
);
|
|
2804
|
-
},
|
|
2805
|
+
}, os = "https://images.opendoor.com/source/s3/imgdrop-production", is = "service=reception-fe&dpr=2&fit=scale-down";
|
|
2805
2806
|
function ne(e, r = "3:2-sm") {
|
|
2806
|
-
return `${
|
|
2807
|
+
return `${os}/${e}?${is}&preset=${r}`;
|
|
2807
2808
|
}
|
|
2808
|
-
const
|
|
2809
|
+
const ls = {
|
|
2809
2810
|
// Kitchen
|
|
2810
2811
|
"kitchen-fixer_upper": ne("2023-04-1681772974083-61414.png"),
|
|
2811
2812
|
"kitchen-dated": ne("2023-04-1681772974089-39460.png"),
|
|
@@ -2830,106 +2831,106 @@ const is = {
|
|
|
2830
2831
|
"exterior-standard": ne("2023-04-1681773220498-64940.png"),
|
|
2831
2832
|
"exterior-high_end": ne("2023-04-1682103085417-24272.jpeg", "3:2-md"),
|
|
2832
2833
|
"exterior-luxury": ne("2023-04-1681773220487-59852.png")
|
|
2833
|
-
},
|
|
2834
|
-
var
|
|
2835
|
-
const { getAnswer: r, setAnswer: a, goToNext: s, validationErrors: o } =
|
|
2836
|
-
|
|
2837
|
-
|
|
2834
|
+
}, cs = ({ question: e }) => {
|
|
2835
|
+
var c;
|
|
2836
|
+
const { getAnswer: r, setAnswer: a, goToNext: s, validationErrors: o } = ge(), i = r(e.key), f = o[e.key], m = Z(null);
|
|
2837
|
+
ie(() => () => {
|
|
2838
|
+
m.current && clearTimeout(m.current);
|
|
2838
2839
|
}, []);
|
|
2839
|
-
const
|
|
2840
|
-
(
|
|
2841
|
-
a(e.key,
|
|
2840
|
+
const h = Te(
|
|
2841
|
+
(l) => {
|
|
2842
|
+
a(e.key, l), e.autoAdvance && (m.current && clearTimeout(m.current), m.current = setTimeout(() => s(), 300));
|
|
2842
2843
|
},
|
|
2843
2844
|
[e.key, e.autoAdvance, a, s]
|
|
2844
2845
|
);
|
|
2845
2846
|
return /* @__PURE__ */ t.jsxs(
|
|
2846
2847
|
"div",
|
|
2847
2848
|
{
|
|
2848
|
-
className:
|
|
2849
|
+
className: u.imageCardGroup,
|
|
2849
2850
|
role: "radiogroup",
|
|
2850
2851
|
"aria-label": e.label,
|
|
2851
2852
|
children: [
|
|
2852
|
-
(
|
|
2853
|
-
const
|
|
2853
|
+
(c = e.options) == null ? void 0 : c.map((l) => {
|
|
2854
|
+
const _ = i === l.value, g = l.imageId ? ls[l.imageId] : void 0;
|
|
2854
2855
|
return /* @__PURE__ */ t.jsxs(
|
|
2855
2856
|
"button",
|
|
2856
2857
|
{
|
|
2857
2858
|
type: "button",
|
|
2858
2859
|
role: "radio",
|
|
2859
|
-
"aria-checked":
|
|
2860
|
-
className: `${
|
|
2861
|
-
onClick: () =>
|
|
2860
|
+
"aria-checked": _,
|
|
2861
|
+
className: `${u.imageCard} ${_ ? u.imageCardSelected : ""}`,
|
|
2862
|
+
onClick: () => h(l.value),
|
|
2862
2863
|
children: [
|
|
2863
|
-
|
|
2864
|
+
g && /* @__PURE__ */ t.jsx(
|
|
2864
2865
|
"img",
|
|
2865
2866
|
{
|
|
2866
|
-
src:
|
|
2867
|
-
alt:
|
|
2868
|
-
className:
|
|
2867
|
+
src: g,
|
|
2868
|
+
alt: l.label,
|
|
2869
|
+
className: u.imageCardPhoto,
|
|
2869
2870
|
loading: "lazy"
|
|
2870
2871
|
}
|
|
2871
2872
|
),
|
|
2872
|
-
/* @__PURE__ */ t.jsx("span", { className:
|
|
2873
|
-
|
|
2873
|
+
/* @__PURE__ */ t.jsx("span", { className: u.imageCardLabel, children: l.label }),
|
|
2874
|
+
l.description && /* @__PURE__ */ t.jsx("span", { className: u.imageCardDescription, children: l.description })
|
|
2874
2875
|
]
|
|
2875
2876
|
},
|
|
2876
|
-
String(
|
|
2877
|
+
String(l.value)
|
|
2877
2878
|
);
|
|
2878
2879
|
}),
|
|
2879
|
-
|
|
2880
|
+
f && /* @__PURE__ */ t.jsx("p", { className: u.fieldError, children: f })
|
|
2880
2881
|
]
|
|
2881
2882
|
}
|
|
2882
2883
|
);
|
|
2883
|
-
},
|
|
2884
|
+
}, ds = ({
|
|
2884
2885
|
question: e
|
|
2885
2886
|
}) => {
|
|
2886
|
-
var
|
|
2887
|
-
const { getAnswer: r, setAnswer: a, validationErrors: s } =
|
|
2888
|
-
var
|
|
2889
|
-
const
|
|
2890
|
-
if (
|
|
2891
|
-
a(e.key, [
|
|
2887
|
+
var m;
|
|
2888
|
+
const { getAnswer: r, setAnswer: a, validationErrors: s } = ge(), o = r(e.key) ?? [], i = s[e.key], f = (h) => {
|
|
2889
|
+
var _;
|
|
2890
|
+
const c = (_ = e.options) == null ? void 0 : _.find((g) => g.value === h);
|
|
2891
|
+
if (c != null && c.exclusive) {
|
|
2892
|
+
a(e.key, [h]);
|
|
2892
2893
|
return;
|
|
2893
2894
|
}
|
|
2894
|
-
const
|
|
2895
|
-
(
|
|
2896
|
-
var
|
|
2897
|
-
return !((I = (
|
|
2895
|
+
const l = o.filter(
|
|
2896
|
+
(g) => {
|
|
2897
|
+
var b, I;
|
|
2898
|
+
return !((I = (b = e.options) == null ? void 0 : b.find((D) => D.value === g)) != null && I.exclusive);
|
|
2898
2899
|
}
|
|
2899
2900
|
);
|
|
2900
|
-
if (
|
|
2901
|
-
const
|
|
2902
|
-
a(e.key,
|
|
2901
|
+
if (l.includes(h)) {
|
|
2902
|
+
const g = l.filter((b) => b !== h);
|
|
2903
|
+
a(e.key, g.length > 0 ? g : void 0);
|
|
2903
2904
|
} else
|
|
2904
|
-
a(e.key, [...
|
|
2905
|
+
a(e.key, [...l, h]);
|
|
2905
2906
|
};
|
|
2906
2907
|
return /* @__PURE__ */ t.jsxs(
|
|
2907
2908
|
"div",
|
|
2908
2909
|
{
|
|
2909
|
-
className:
|
|
2910
|
+
className: u.checkboxCardGroup,
|
|
2910
2911
|
role: "group",
|
|
2911
2912
|
"aria-label": e.label,
|
|
2912
2913
|
children: [
|
|
2913
|
-
(
|
|
2914
|
-
const
|
|
2914
|
+
(m = e.options) == null ? void 0 : m.map((h) => {
|
|
2915
|
+
const c = o.includes(String(h.value));
|
|
2915
2916
|
return /* @__PURE__ */ t.jsxs(
|
|
2916
2917
|
"button",
|
|
2917
2918
|
{
|
|
2918
2919
|
type: "button",
|
|
2919
2920
|
role: "checkbox",
|
|
2920
|
-
"aria-checked":
|
|
2921
|
-
className: `${
|
|
2922
|
-
onClick: () =>
|
|
2921
|
+
"aria-checked": c,
|
|
2922
|
+
className: `${u.checkboxCard} ${c ? u.checkboxCardSelected : ""}`,
|
|
2923
|
+
onClick: () => f(String(h.value)),
|
|
2923
2924
|
children: [
|
|
2924
|
-
/* @__PURE__ */ t.jsxs("span", { className:
|
|
2925
|
-
/* @__PURE__ */ t.jsx("span", { className:
|
|
2926
|
-
|
|
2925
|
+
/* @__PURE__ */ t.jsxs("span", { className: u.checkboxCardContent, children: [
|
|
2926
|
+
/* @__PURE__ */ t.jsx("span", { className: u.checkboxCardLabel, children: h.label }),
|
|
2927
|
+
h.helperText && /* @__PURE__ */ t.jsx("span", { className: u.checkboxCardHelper, children: h.helperText })
|
|
2927
2928
|
] }),
|
|
2928
2929
|
/* @__PURE__ */ t.jsx(
|
|
2929
2930
|
"span",
|
|
2930
2931
|
{
|
|
2931
|
-
className: `${
|
|
2932
|
-
children:
|
|
2932
|
+
className: `${u.checkboxIndicator} ${c ? u.checkboxIndicatorChecked : ""}`,
|
|
2933
|
+
children: c && /* @__PURE__ */ t.jsx("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", children: /* @__PURE__ */ t.jsx(
|
|
2933
2934
|
"path",
|
|
2934
2935
|
{
|
|
2935
2936
|
d: "M2 6l3 3 5-5",
|
|
@@ -2943,131 +2944,131 @@ const is = {
|
|
|
2943
2944
|
)
|
|
2944
2945
|
]
|
|
2945
2946
|
},
|
|
2946
|
-
String(
|
|
2947
|
+
String(h.value)
|
|
2947
2948
|
);
|
|
2948
2949
|
}),
|
|
2949
|
-
i && /* @__PURE__ */ t.jsx("p", { className:
|
|
2950
|
+
i && /* @__PURE__ */ t.jsx("p", { className: u.fieldError, children: i })
|
|
2950
2951
|
]
|
|
2951
2952
|
}
|
|
2952
2953
|
);
|
|
2953
2954
|
}, us = ({ question: e }) => {
|
|
2954
|
-
var
|
|
2955
|
-
const { getAnswer: r, setAnswer: a, validationErrors: s } =
|
|
2956
|
-
const
|
|
2957
|
-
e.type === "number" &&
|
|
2955
|
+
var m;
|
|
2956
|
+
const { getAnswer: r, setAnswer: a, validationErrors: s } = ge(), o = r(e.key), i = s[e.key], f = (h) => {
|
|
2957
|
+
const c = h.target.value;
|
|
2958
|
+
e.type === "number" && c !== "" ? a(e.key, Number(c)) : a(e.key, c || void 0);
|
|
2958
2959
|
};
|
|
2959
|
-
return /* @__PURE__ */ t.jsxs("div", { className:
|
|
2960
|
-
/* @__PURE__ */ t.jsx("label", { className:
|
|
2961
|
-
e.description && /* @__PURE__ */ t.jsx("p", { className:
|
|
2960
|
+
return /* @__PURE__ */ t.jsxs("div", { className: u.fieldGroup, children: [
|
|
2961
|
+
/* @__PURE__ */ t.jsx("label", { className: u.fieldLabel, htmlFor: e.key, children: e.label }),
|
|
2962
|
+
e.description && /* @__PURE__ */ t.jsx("p", { className: u.fieldDescription, children: e.description }),
|
|
2962
2963
|
/* @__PURE__ */ t.jsxs(
|
|
2963
2964
|
"select",
|
|
2964
2965
|
{
|
|
2965
2966
|
id: e.key,
|
|
2966
|
-
className: `${
|
|
2967
|
+
className: `${u.fieldSelect} ${i ? u.fieldSelectError : ""}`,
|
|
2967
2968
|
value: o !== void 0 ? String(o) : "",
|
|
2968
|
-
onChange:
|
|
2969
|
+
onChange: f,
|
|
2969
2970
|
children: [
|
|
2970
2971
|
/* @__PURE__ */ t.jsx("option", { value: "", children: e.placeholder || "Select..." }),
|
|
2971
|
-
(
|
|
2972
|
+
(m = e.options) == null ? void 0 : m.map((h) => /* @__PURE__ */ t.jsx("option", { value: String(h.value), children: h.label }, String(h.value)))
|
|
2972
2973
|
]
|
|
2973
2974
|
}
|
|
2974
2975
|
),
|
|
2975
|
-
i && /* @__PURE__ */ t.jsx("p", { className:
|
|
2976
|
+
i && /* @__PURE__ */ t.jsx("p", { className: u.fieldError, children: i })
|
|
2976
2977
|
] });
|
|
2977
|
-
},
|
|
2978
|
-
const { getAnswer: r, setAnswer: a, validationErrors: s } =
|
|
2979
|
-
const
|
|
2978
|
+
}, hs = ({ question: e }) => {
|
|
2979
|
+
const { getAnswer: r, setAnswer: a, validationErrors: s } = ge(), o = r(e.key), i = s[e.key], f = (h) => {
|
|
2980
|
+
const c = h.target.value;
|
|
2980
2981
|
if (e.type === "number") {
|
|
2981
|
-
const
|
|
2982
|
-
a(e.key,
|
|
2982
|
+
const l = c.replace(/[^0-9.]/g, ""), _ = l === "" ? void 0 : Number(l), g = _ !== void 0 && isNaN(_) ? void 0 : _;
|
|
2983
|
+
a(e.key, g);
|
|
2983
2984
|
} else
|
|
2984
|
-
a(e.key,
|
|
2985
|
-
},
|
|
2986
|
-
return /* @__PURE__ */ t.jsxs("div", { className:
|
|
2987
|
-
/* @__PURE__ */ t.jsx("label", { className:
|
|
2988
|
-
e.description && /* @__PURE__ */ t.jsx("p", { className:
|
|
2989
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
2985
|
+
a(e.key, c || void 0);
|
|
2986
|
+
}, m = o != null ? String(o) : "";
|
|
2987
|
+
return /* @__PURE__ */ t.jsxs("div", { className: u.fieldGroup, children: [
|
|
2988
|
+
/* @__PURE__ */ t.jsx("label", { className: u.fieldLabel, htmlFor: e.key, children: e.label }),
|
|
2989
|
+
e.description && /* @__PURE__ */ t.jsx("p", { className: u.fieldDescription, children: e.description }),
|
|
2990
|
+
/* @__PURE__ */ t.jsxs("div", { className: u.fieldInputWrapper, children: [
|
|
2990
2991
|
/* @__PURE__ */ t.jsx(
|
|
2991
2992
|
"input",
|
|
2992
2993
|
{
|
|
2993
2994
|
id: e.key,
|
|
2994
2995
|
type: e.type === "number" ? "text" : e.style === "email" ? "email" : "text",
|
|
2995
2996
|
inputMode: e.type === "number" ? "numeric" : void 0,
|
|
2996
|
-
className: `${
|
|
2997
|
-
value:
|
|
2998
|
-
onChange:
|
|
2997
|
+
className: `${u.fieldInput} ${i ? u.fieldInputError : ""}`,
|
|
2998
|
+
value: m,
|
|
2999
|
+
onChange: f,
|
|
2999
3000
|
placeholder: e.placeholder
|
|
3000
3001
|
}
|
|
3001
3002
|
),
|
|
3002
|
-
e.suffix && /* @__PURE__ */ t.jsx("span", { className:
|
|
3003
|
+
e.suffix && /* @__PURE__ */ t.jsx("span", { className: u.fieldSuffix, children: e.suffix })
|
|
3003
3004
|
] }),
|
|
3004
|
-
i && /* @__PURE__ */ t.jsx("p", { className:
|
|
3005
|
+
i && /* @__PURE__ */ t.jsx("p", { className: u.fieldError, children: i })
|
|
3005
3006
|
] });
|
|
3006
|
-
},
|
|
3007
|
-
const { getAnswer: r, setAnswer: a, validationErrors: s } =
|
|
3008
|
-
const
|
|
3009
|
-
a(e.key,
|
|
3010
|
-
},
|
|
3011
|
-
return /* @__PURE__ */ t.jsxs("div", { className:
|
|
3012
|
-
/* @__PURE__ */ t.jsx("label", { className:
|
|
3013
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
3014
|
-
/* @__PURE__ */ t.jsx("span", { className:
|
|
3007
|
+
}, ms = ({ question: e }) => {
|
|
3008
|
+
const { getAnswer: r, setAnswer: a, validationErrors: s } = ge(), o = r(e.key), i = s[e.key], f = (h) => {
|
|
3009
|
+
const c = h.target.value.replace(/[^0-9]/g, ""), l = c === "" ? void 0 : Number(c);
|
|
3010
|
+
a(e.key, l !== void 0 && isNaN(l) ? void 0 : l);
|
|
3011
|
+
}, m = o != null ? String(o) : "";
|
|
3012
|
+
return /* @__PURE__ */ t.jsxs("div", { className: u.fieldGroup, children: [
|
|
3013
|
+
/* @__PURE__ */ t.jsx("label", { className: u.fieldLabel, htmlFor: e.key, children: e.label }),
|
|
3014
|
+
/* @__PURE__ */ t.jsxs("div", { className: u.currencyWrapper, children: [
|
|
3015
|
+
/* @__PURE__ */ t.jsx("span", { className: u.currencyPrefix, children: "$" }),
|
|
3015
3016
|
/* @__PURE__ */ t.jsx(
|
|
3016
3017
|
"input",
|
|
3017
3018
|
{
|
|
3018
3019
|
id: e.key,
|
|
3019
3020
|
type: "text",
|
|
3020
3021
|
inputMode: "numeric",
|
|
3021
|
-
className: `${
|
|
3022
|
-
value:
|
|
3023
|
-
onChange:
|
|
3022
|
+
className: `${u.currencyInput} ${i ? u.fieldInputError : ""}`,
|
|
3023
|
+
value: m,
|
|
3024
|
+
onChange: f,
|
|
3024
3025
|
placeholder: e.placeholder
|
|
3025
3026
|
}
|
|
3026
3027
|
)
|
|
3027
3028
|
] }),
|
|
3028
|
-
i && /* @__PURE__ */ t.jsx("p", { className:
|
|
3029
|
+
i && /* @__PURE__ */ t.jsx("p", { className: u.fieldError, children: i })
|
|
3029
3030
|
] });
|
|
3030
3031
|
};
|
|
3031
3032
|
function fs(e) {
|
|
3032
3033
|
const r = e.replace(/\D/g, "").slice(0, 10);
|
|
3033
3034
|
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)}`;
|
|
3034
3035
|
}
|
|
3035
|
-
const
|
|
3036
|
-
const { getAnswer: r, setAnswer: a, validationErrors: s } =
|
|
3037
|
-
const
|
|
3038
|
-
a(e.key,
|
|
3036
|
+
const ps = ({ question: e }) => {
|
|
3037
|
+
const { getAnswer: r, setAnswer: a, validationErrors: s } = ge(), o = r(e.key) ?? "", i = s[e.key], f = (m) => {
|
|
3038
|
+
const c = m.target.value.replace(/\D/g, "").slice(0, 10);
|
|
3039
|
+
a(e.key, c || void 0);
|
|
3039
3040
|
};
|
|
3040
|
-
return /* @__PURE__ */ t.jsxs("div", { className:
|
|
3041
|
-
/* @__PURE__ */ t.jsx("label", { className:
|
|
3041
|
+
return /* @__PURE__ */ t.jsxs("div", { className: u.fieldGroup, children: [
|
|
3042
|
+
/* @__PURE__ */ t.jsx("label", { className: u.fieldLabel, htmlFor: e.key, children: e.label }),
|
|
3042
3043
|
/* @__PURE__ */ t.jsx(
|
|
3043
3044
|
"input",
|
|
3044
3045
|
{
|
|
3045
3046
|
id: e.key,
|
|
3046
3047
|
type: "tel",
|
|
3047
|
-
className: `${
|
|
3048
|
+
className: `${u.fieldInput} ${i ? u.fieldInputError : ""}`,
|
|
3048
3049
|
value: fs(o),
|
|
3049
|
-
onChange:
|
|
3050
|
+
onChange: f,
|
|
3050
3051
|
placeholder: e.placeholder || "(555) 555-5555"
|
|
3051
3052
|
}
|
|
3052
3053
|
),
|
|
3053
|
-
i && /* @__PURE__ */ t.jsx("p", { className:
|
|
3054
|
+
i && /* @__PURE__ */ t.jsx("p", { className: u.fieldError, children: i })
|
|
3054
3055
|
] });
|
|
3055
|
-
},
|
|
3056
|
-
const { getAnswer: r, setAnswer: a, smsConsentText: s } =
|
|
3056
|
+
}, gs = ({ question: e }) => {
|
|
3057
|
+
const { getAnswer: r, setAnswer: a, smsConsentText: s } = ge(), o = r(e.key);
|
|
3057
3058
|
let i = e.label;
|
|
3058
|
-
return e.key === "seller.sms_opt_in" && s && (i = s), /* @__PURE__ */ t.jsx("div", { className:
|
|
3059
|
+
return e.key === "seller.sms_opt_in" && s && (i = s), /* @__PURE__ */ t.jsx("div", { className: u.toggleGroup, children: /* @__PURE__ */ t.jsxs("label", { className: u.toggleLabel, children: [
|
|
3059
3060
|
/* @__PURE__ */ t.jsx(
|
|
3060
3061
|
"input",
|
|
3061
3062
|
{
|
|
3062
3063
|
type: "checkbox",
|
|
3063
|
-
className:
|
|
3064
|
+
className: u.toggleCheckbox,
|
|
3064
3065
|
checked: o === !0,
|
|
3065
|
-
onChange: (
|
|
3066
|
+
onChange: (f) => a(e.key, f.target.checked)
|
|
3066
3067
|
}
|
|
3067
3068
|
),
|
|
3068
|
-
/* @__PURE__ */ t.jsx("span", { className:
|
|
3069
|
+
/* @__PURE__ */ t.jsx("span", { className: u.toggleText, children: i })
|
|
3069
3070
|
] }) });
|
|
3070
|
-
},
|
|
3071
|
+
}, vt = 4, De = 8, _s = 240, ys = 80;
|
|
3071
3072
|
function bs(e) {
|
|
3072
3073
|
const r = {};
|
|
3073
3074
|
for (let a = e; a; a = a.parentElement) {
|
|
@@ -3079,108 +3080,108 @@ function bs(e) {
|
|
|
3079
3080
|
}
|
|
3080
3081
|
return r;
|
|
3081
3082
|
}
|
|
3082
|
-
const
|
|
3083
|
-
var
|
|
3084
|
-
const { getAnswer: r, setAnswer: a, validationErrors: s } =
|
|
3085
|
-
|
|
3086
|
-
let
|
|
3087
|
-
return e.dataSource === "homebuilders" &&
|
|
3088
|
-
|
|
3083
|
+
const vs = ({ question: e }) => {
|
|
3084
|
+
var de;
|
|
3085
|
+
const { getAnswer: r, setAnswer: a, validationErrors: s } = ge(), o = r(e.key), i = s[e.key], f = `${e.key}-combobox`, [m, h] = E(""), [c, l] = E(!1), [_, g] = E([]), [b, I] = E(!1), D = Z(null), O = Z(null), A = Z(null), [S, j] = E(null), [se, V] = E({}), J = Re(Je);
|
|
3086
|
+
ie(() => {
|
|
3087
|
+
let v = !1;
|
|
3088
|
+
return e.dataSource === "homebuilders" && J ? (I(!0), J.getHomebuilders().then((k) => {
|
|
3089
|
+
v || g(
|
|
3089
3090
|
k.homebuilders.map((C) => ({
|
|
3090
3091
|
label: C.displayName,
|
|
3091
3092
|
value: C.identifier
|
|
3092
3093
|
}))
|
|
3093
3094
|
);
|
|
3094
3095
|
}).catch(() => {
|
|
3095
|
-
|
|
3096
|
+
v || (e.options ? g(
|
|
3096
3097
|
e.options.map((k) => ({
|
|
3097
3098
|
label: k.label,
|
|
3098
3099
|
value: String(k.value)
|
|
3099
3100
|
}))
|
|
3100
|
-
) :
|
|
3101
|
+
) : g([]));
|
|
3101
3102
|
}).finally(() => {
|
|
3102
|
-
|
|
3103
|
-
})) : e.options ?
|
|
3103
|
+
v || I(!1);
|
|
3104
|
+
})) : e.options ? g(
|
|
3104
3105
|
e.options.map((k) => ({
|
|
3105
3106
|
label: k.label,
|
|
3106
3107
|
value: String(k.value)
|
|
3107
3108
|
}))
|
|
3108
|
-
) :
|
|
3109
|
-
|
|
3109
|
+
) : g([]), () => {
|
|
3110
|
+
v = !0;
|
|
3110
3111
|
};
|
|
3111
|
-
}, [e.dataSource, e.options,
|
|
3112
|
-
const
|
|
3113
|
-
const
|
|
3114
|
-
if (!
|
|
3115
|
-
const k =
|
|
3116
|
-
|
|
3117
|
-
Math.min(
|
|
3118
|
-
),
|
|
3112
|
+
}, [e.dataSource, e.options, J]);
|
|
3113
|
+
const G = Te(() => {
|
|
3114
|
+
const v = O.current;
|
|
3115
|
+
if (!v) return;
|
|
3116
|
+
const k = v.getBoundingClientRect(), C = window.visualViewport, le = (C == null ? void 0 : C.height) ?? window.innerHeight, W = (C == null ? void 0 : C.width) ?? window.innerWidth, ae = (C == null ? void 0 : C.offsetTop) ?? 0, M = (C == null ? void 0 : C.offsetLeft) ?? 0, ye = ae + le - k.bottom - vt - De, pe = Math.max(
|
|
3117
|
+
ys,
|
|
3118
|
+
Math.min(_s, ye)
|
|
3119
|
+
), _e = Math.min(k.width, W - De * 2), w = M + De, L = M + W - _e - De, $ = Math.max(w, Math.min(k.left, L));
|
|
3119
3120
|
j({
|
|
3120
|
-
top: k.bottom + window.scrollY +
|
|
3121
|
-
left:
|
|
3122
|
-
width:
|
|
3123
|
-
maxHeight:
|
|
3121
|
+
top: k.bottom + window.scrollY + vt,
|
|
3122
|
+
left: $ + window.scrollX,
|
|
3123
|
+
width: _e,
|
|
3124
|
+
maxHeight: pe
|
|
3124
3125
|
});
|
|
3125
3126
|
}, []);
|
|
3126
|
-
|
|
3127
|
-
if (!
|
|
3127
|
+
Kt(() => {
|
|
3128
|
+
if (!c) {
|
|
3128
3129
|
j(null);
|
|
3129
3130
|
return;
|
|
3130
3131
|
}
|
|
3131
|
-
|
|
3132
|
-
const
|
|
3133
|
-
window.addEventListener("scroll",
|
|
3132
|
+
O.current && V(bs(O.current)), G();
|
|
3133
|
+
const v = () => G();
|
|
3134
|
+
window.addEventListener("scroll", v, !0), window.addEventListener("resize", v);
|
|
3134
3135
|
const k = window.visualViewport;
|
|
3135
|
-
k == null || k.addEventListener("resize",
|
|
3136
|
-
const C = window.setTimeout(
|
|
3136
|
+
k == null || k.addEventListener("resize", v), k == null || k.addEventListener("scroll", v);
|
|
3137
|
+
const C = window.setTimeout(v, 300);
|
|
3137
3138
|
return () => {
|
|
3138
|
-
window.removeEventListener("scroll",
|
|
3139
|
+
window.removeEventListener("scroll", v, !0), window.removeEventListener("resize", v), k == null || k.removeEventListener("resize", v), k == null || k.removeEventListener("scroll", v), window.clearTimeout(C);
|
|
3139
3140
|
};
|
|
3140
|
-
}, [
|
|
3141
|
-
const
|
|
3142
|
-
var
|
|
3141
|
+
}, [c, G]), ie(() => {
|
|
3142
|
+
const v = (k) => {
|
|
3143
|
+
var le, W;
|
|
3143
3144
|
const C = k.target;
|
|
3144
|
-
(
|
|
3145
|
+
(le = D.current) != null && le.contains(C) || (W = A.current) != null && W.contains(C) || l(!1);
|
|
3145
3146
|
};
|
|
3146
|
-
return document.addEventListener("mousedown",
|
|
3147
|
+
return document.addEventListener("mousedown", v), () => document.removeEventListener("mousedown", v);
|
|
3147
3148
|
}, []);
|
|
3148
|
-
const
|
|
3149
|
-
(
|
|
3150
|
-
) :
|
|
3151
|
-
(
|
|
3152
|
-
a(e.key,
|
|
3149
|
+
const P = m ? _.filter(
|
|
3150
|
+
(v) => v.label.toLowerCase().includes(m.toLowerCase())
|
|
3151
|
+
) : _, ce = (de = _.find((v) => v.value === o)) == null ? void 0 : de.label, [z, ee] = E(-1), Y = `${e.key}-listbox`, oe = Te(
|
|
3152
|
+
(v) => {
|
|
3153
|
+
a(e.key, v), l(!1), h(""), ee(-1);
|
|
3153
3154
|
},
|
|
3154
3155
|
[e.key, a]
|
|
3155
|
-
),
|
|
3156
|
-
if (!
|
|
3157
|
-
(
|
|
3156
|
+
), K = (v) => {
|
|
3157
|
+
if (!c) {
|
|
3158
|
+
(v.key === "ArrowDown" || v.key === "Enter") && (v.preventDefault(), l(!0));
|
|
3158
3159
|
return;
|
|
3159
3160
|
}
|
|
3160
|
-
switch (
|
|
3161
|
+
switch (v.key) {
|
|
3161
3162
|
case "ArrowDown":
|
|
3162
|
-
|
|
3163
|
-
(k) => k <
|
|
3163
|
+
v.preventDefault(), P.length > 0 && ee(
|
|
3164
|
+
(k) => k < P.length - 1 ? k + 1 : 0
|
|
3164
3165
|
);
|
|
3165
3166
|
break;
|
|
3166
3167
|
case "ArrowUp":
|
|
3167
|
-
|
|
3168
|
-
(k) => k > 0 ? k - 1 :
|
|
3168
|
+
v.preventDefault(), P.length > 0 && ee(
|
|
3169
|
+
(k) => k > 0 ? k - 1 : P.length - 1
|
|
3169
3170
|
);
|
|
3170
3171
|
break;
|
|
3171
3172
|
case "Enter":
|
|
3172
|
-
|
|
3173
|
+
v.preventDefault(), z >= 0 && z < P.length && oe(P[z].value);
|
|
3173
3174
|
break;
|
|
3174
3175
|
case "Escape":
|
|
3175
|
-
|
|
3176
|
+
v.preventDefault(), l(!1), ee(-1);
|
|
3176
3177
|
break;
|
|
3177
3178
|
}
|
|
3178
|
-
},
|
|
3179
|
+
}, F = c && S && typeof document < "u" ? qt(
|
|
3179
3180
|
/* @__PURE__ */ t.jsx(
|
|
3180
3181
|
"div",
|
|
3181
3182
|
{
|
|
3182
|
-
ref:
|
|
3183
|
-
className:
|
|
3183
|
+
ref: A,
|
|
3184
|
+
className: u.searchableDropdownList,
|
|
3184
3185
|
role: "listbox",
|
|
3185
3186
|
id: Y,
|
|
3186
3187
|
style: {
|
|
@@ -3190,55 +3191,55 @@ const ys = ({ question: e }) => {
|
|
|
3190
3191
|
right: "auto",
|
|
3191
3192
|
width: S.width,
|
|
3192
3193
|
maxHeight: S.maxHeight,
|
|
3193
|
-
...
|
|
3194
|
+
...se
|
|
3194
3195
|
},
|
|
3195
|
-
children:
|
|
3196
|
+
children: b ? /* @__PURE__ */ t.jsx("div", { className: u.searchableDropdownEmpty, children: "Loading..." }) : P.length === 0 ? /* @__PURE__ */ t.jsx("div", { className: u.searchableDropdownEmpty, children: "No results found" }) : P.map((v, k) => /* @__PURE__ */ t.jsx(
|
|
3196
3197
|
"button",
|
|
3197
3198
|
{
|
|
3198
3199
|
id: `${Y}-option-${k}`,
|
|
3199
3200
|
type: "button",
|
|
3200
3201
|
role: "option",
|
|
3201
|
-
"aria-selected":
|
|
3202
|
-
className: `${
|
|
3202
|
+
"aria-selected": v.value === o,
|
|
3203
|
+
className: `${u.searchableDropdownOption} ${v.value === o ? u.searchableDropdownOptionSelected : ""} ${k === z ? u.searchableDropdownOptionHighlighted : ""}`,
|
|
3203
3204
|
onMouseDown: (C) => C.preventDefault(),
|
|
3204
|
-
onClick: () =>
|
|
3205
|
-
children:
|
|
3205
|
+
onClick: () => oe(v.value),
|
|
3206
|
+
children: v.label
|
|
3206
3207
|
},
|
|
3207
|
-
|
|
3208
|
+
v.value
|
|
3208
3209
|
))
|
|
3209
3210
|
}
|
|
3210
3211
|
),
|
|
3211
3212
|
document.body
|
|
3212
3213
|
) : null;
|
|
3213
|
-
return /* @__PURE__ */ t.jsxs("div", { ref: D, className:
|
|
3214
|
-
/* @__PURE__ */ t.jsxs("div", { ref:
|
|
3214
|
+
return /* @__PURE__ */ t.jsxs("div", { ref: D, className: u.fieldGroup, children: [
|
|
3215
|
+
/* @__PURE__ */ t.jsxs("div", { ref: O, className: u.searchableDropdown, children: [
|
|
3215
3216
|
/* @__PURE__ */ t.jsx(
|
|
3216
3217
|
"input",
|
|
3217
3218
|
{
|
|
3218
|
-
id:
|
|
3219
|
+
id: f,
|
|
3219
3220
|
type: "text",
|
|
3220
|
-
className:
|
|
3221
|
-
value:
|
|
3222
|
-
onChange: (
|
|
3223
|
-
|
|
3221
|
+
className: u.fieldInput,
|
|
3222
|
+
value: c ? m : ce ?? "",
|
|
3223
|
+
onChange: (v) => {
|
|
3224
|
+
h(v.target.value), ee(-1), c || l(!0);
|
|
3224
3225
|
},
|
|
3225
|
-
onFocus: () =>
|
|
3226
|
-
onKeyDown:
|
|
3226
|
+
onFocus: () => l(!0),
|
|
3227
|
+
onKeyDown: K,
|
|
3227
3228
|
placeholder: e.placeholder || "Select or search...",
|
|
3228
3229
|
"aria-label": e.label,
|
|
3229
|
-
"aria-expanded":
|
|
3230
|
+
"aria-expanded": c,
|
|
3230
3231
|
role: "combobox",
|
|
3231
3232
|
"aria-haspopup": "listbox",
|
|
3232
|
-
"aria-controls":
|
|
3233
|
-
"aria-activedescendant":
|
|
3233
|
+
"aria-controls": c ? Y : void 0,
|
|
3234
|
+
"aria-activedescendant": c && z >= 0 ? `${Y}-option-${z}` : void 0
|
|
3234
3235
|
}
|
|
3235
3236
|
),
|
|
3236
3237
|
/* @__PURE__ */ t.jsx(
|
|
3237
3238
|
"button",
|
|
3238
3239
|
{
|
|
3239
3240
|
type: "button",
|
|
3240
|
-
className:
|
|
3241
|
-
onClick: () =>
|
|
3241
|
+
className: u.searchableDropdownToggle,
|
|
3242
|
+
onClick: () => l(!c),
|
|
3242
3243
|
"aria-label": "Toggle dropdown",
|
|
3243
3244
|
tabIndex: -1,
|
|
3244
3245
|
children: /* @__PURE__ */ t.jsx("svg", { width: "12", height: "8", viewBox: "0 0 12 8", fill: "none", children: /* @__PURE__ */ t.jsx(
|
|
@@ -3254,36 +3255,36 @@ const ys = ({ question: e }) => {
|
|
|
3254
3255
|
}
|
|
3255
3256
|
)
|
|
3256
3257
|
] }),
|
|
3257
|
-
i && /* @__PURE__ */ t.jsx("p", { className:
|
|
3258
|
-
|
|
3258
|
+
i && /* @__PURE__ */ t.jsx("p", { className: u.fieldError, children: i }),
|
|
3259
|
+
F
|
|
3259
3260
|
] });
|
|
3260
3261
|
};
|
|
3261
|
-
function
|
|
3262
|
+
function xs(e) {
|
|
3262
3263
|
switch (e.style) {
|
|
3263
3264
|
case "radio-card":
|
|
3264
|
-
return /* @__PURE__ */ t.jsx(
|
|
3265
|
+
return /* @__PURE__ */ t.jsx(ss, { question: e }, e.key);
|
|
3265
3266
|
case "image-card":
|
|
3266
|
-
return /* @__PURE__ */ t.jsx(ls, { question: e }, e.key);
|
|
3267
|
-
case "checkbox-card":
|
|
3268
3267
|
return /* @__PURE__ */ t.jsx(cs, { question: e }, e.key);
|
|
3268
|
+
case "checkbox-card":
|
|
3269
|
+
return /* @__PURE__ */ t.jsx(ds, { question: e }, e.key);
|
|
3269
3270
|
case "dropdown":
|
|
3270
3271
|
return /* @__PURE__ */ t.jsx(us, { question: e }, e.key);
|
|
3271
3272
|
case "input":
|
|
3272
3273
|
case "email":
|
|
3273
|
-
return /* @__PURE__ */ t.jsx(ds, { question: e }, e.key);
|
|
3274
|
-
case "currency":
|
|
3275
3274
|
return /* @__PURE__ */ t.jsx(hs, { question: e }, e.key);
|
|
3276
|
-
case "
|
|
3275
|
+
case "currency":
|
|
3277
3276
|
return /* @__PURE__ */ t.jsx(ms, { question: e }, e.key);
|
|
3278
|
-
case "
|
|
3277
|
+
case "phone":
|
|
3279
3278
|
return /* @__PURE__ */ t.jsx(ps, { question: e }, e.key);
|
|
3279
|
+
case "toggle":
|
|
3280
|
+
return /* @__PURE__ */ t.jsx(gs, { question: e }, e.key);
|
|
3280
3281
|
case "searchable-dropdown":
|
|
3281
|
-
return /* @__PURE__ */ t.jsx(
|
|
3282
|
+
return /* @__PURE__ */ t.jsx(vs, { question: e }, e.key);
|
|
3282
3283
|
default:
|
|
3283
3284
|
return null;
|
|
3284
3285
|
}
|
|
3285
3286
|
}
|
|
3286
|
-
const
|
|
3287
|
+
const Cs = () => {
|
|
3287
3288
|
const {
|
|
3288
3289
|
currentPage: e,
|
|
3289
3290
|
visibleQuestions: r,
|
|
@@ -3291,27 +3292,27 @@ const xs = () => {
|
|
|
3291
3292
|
contactConsentText: s,
|
|
3292
3293
|
submitLabel: o,
|
|
3293
3294
|
contactPageTitle: i
|
|
3294
|
-
} =
|
|
3295
|
-
if (
|
|
3296
|
-
var
|
|
3297
|
-
(
|
|
3295
|
+
} = ge(), f = Z(null);
|
|
3296
|
+
if (ie(() => {
|
|
3297
|
+
var l, _, g;
|
|
3298
|
+
(_ = (l = f.current) == null ? void 0 : l.scrollTo) == null || _.call(l, { top: 0, behavior: "smooth" }), (g = f.current) == null || g.focus();
|
|
3298
3299
|
}, [e == null ? void 0 : e.id]), !e) return null;
|
|
3299
|
-
const
|
|
3300
|
+
const m = e.id === "contact-info", h = (m ? o : void 0) ?? e.submitLabel ?? "Next", c = m && i !== void 0 ? i : e.title;
|
|
3300
3301
|
return /* @__PURE__ */ t.jsxs(
|
|
3301
3302
|
"div",
|
|
3302
3303
|
{
|
|
3303
|
-
ref:
|
|
3304
|
-
className:
|
|
3304
|
+
ref: f,
|
|
3305
|
+
className: u.pageContent,
|
|
3305
3306
|
tabIndex: -1,
|
|
3306
3307
|
role: "region",
|
|
3307
|
-
"aria-label":
|
|
3308
|
+
"aria-label": c,
|
|
3308
3309
|
children: [
|
|
3309
|
-
r.map(
|
|
3310
|
-
|
|
3311
|
-
/* @__PURE__ */ t.jsx("button", { type: "button", className:
|
|
3312
|
-
s ?? /* @__PURE__ */ t.jsxs("p", { className:
|
|
3310
|
+
r.map(xs),
|
|
3311
|
+
m && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
3312
|
+
/* @__PURE__ */ t.jsx("button", { type: "button", className: u.ctaButton, onClick: a, children: h }),
|
|
3313
|
+
s ?? /* @__PURE__ */ t.jsxs("p", { className: u.consentText, children: [
|
|
3313
3314
|
"By pressing “",
|
|
3314
|
-
|
|
3315
|
+
h,
|
|
3315
3316
|
",” I agree to Opendoor’s",
|
|
3316
3317
|
" ",
|
|
3317
3318
|
/* @__PURE__ */ t.jsx(
|
|
@@ -3320,7 +3321,7 @@ const xs = () => {
|
|
|
3320
3321
|
href: "https://www.opendoor.com/terms",
|
|
3321
3322
|
target: "_blank",
|
|
3322
3323
|
rel: "noopener noreferrer",
|
|
3323
|
-
className:
|
|
3324
|
+
className: u.consentLink,
|
|
3324
3325
|
children: "Terms of Service"
|
|
3325
3326
|
}
|
|
3326
3327
|
),
|
|
@@ -3333,7 +3334,7 @@ const xs = () => {
|
|
|
3333
3334
|
href: "https://www.opendoor.com/privacy",
|
|
3334
3335
|
target: "_blank",
|
|
3335
3336
|
rel: "noopener noreferrer",
|
|
3336
|
-
className:
|
|
3337
|
+
className: u.consentLink,
|
|
3337
3338
|
children: "Privacy Policy"
|
|
3338
3339
|
}
|
|
3339
3340
|
),
|
|
@@ -3343,19 +3344,19 @@ const xs = () => {
|
|
|
3343
3344
|
]
|
|
3344
3345
|
}
|
|
3345
3346
|
);
|
|
3346
|
-
},
|
|
3347
|
-
const { currentPage: r, contactPageTitle: a, contactPageSubtitle: s } =
|
|
3347
|
+
}, ws = ({ address: e }) => {
|
|
3348
|
+
const { currentPage: r, contactPageTitle: a, contactPageSubtitle: s } = ge();
|
|
3348
3349
|
if (!r) return null;
|
|
3349
|
-
const o = r.id === "contact-info", i = o && a !== void 0 ? a : r.title,
|
|
3350
|
+
const o = r.id === "contact-info", i = o && a !== void 0 ? a : r.title, f = o && s !== void 0 ? s : r.subtitle, m = [
|
|
3350
3351
|
e.street1,
|
|
3351
3352
|
e.street2,
|
|
3352
3353
|
e.city,
|
|
3353
3354
|
e.state,
|
|
3354
3355
|
e.postalCode
|
|
3355
3356
|
].filter(Boolean).join(", ");
|
|
3356
|
-
return /* @__PURE__ */ t.jsxs("div", { className:
|
|
3357
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
3358
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
3357
|
+
return /* @__PURE__ */ t.jsxs("div", { className: u.layout, children: [
|
|
3358
|
+
/* @__PURE__ */ t.jsxs("div", { className: u.layoutScrollable, children: [
|
|
3359
|
+
/* @__PURE__ */ t.jsxs("div", { className: u.addressBar, children: [
|
|
3359
3360
|
/* @__PURE__ */ t.jsxs(
|
|
3360
3361
|
"svg",
|
|
3361
3362
|
{
|
|
@@ -3365,508 +3366,486 @@ const xs = () => {
|
|
|
3365
3366
|
fill: "none",
|
|
3366
3367
|
stroke: "currentColor",
|
|
3367
3368
|
strokeWidth: "2",
|
|
3368
|
-
className:
|
|
3369
|
+
className: u.addressIcon,
|
|
3369
3370
|
children: [
|
|
3370
3371
|
/* @__PURE__ */ t.jsx("circle", { cx: "12", cy: "10", r: "3" }),
|
|
3371
3372
|
/* @__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" })
|
|
3372
3373
|
]
|
|
3373
3374
|
}
|
|
3374
3375
|
),
|
|
3375
|
-
/* @__PURE__ */ t.jsx("span", { className:
|
|
3376
|
+
/* @__PURE__ */ t.jsx("span", { className: u.addressText, children: m })
|
|
3376
3377
|
] }),
|
|
3377
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
3378
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
3379
|
-
/* @__PURE__ */ t.jsx("h1", { className:
|
|
3380
|
-
|
|
3378
|
+
/* @__PURE__ */ t.jsxs("div", { className: u.contentSplit, children: [
|
|
3379
|
+
/* @__PURE__ */ t.jsxs("div", { className: u.contentLeft, children: [
|
|
3380
|
+
/* @__PURE__ */ t.jsx("h1", { className: u.pageTitle, children: i }),
|
|
3381
|
+
f && /* @__PURE__ */ t.jsx("p", { className: u.pageSubtitle, children: f })
|
|
3381
3382
|
] }),
|
|
3382
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
3383
|
+
/* @__PURE__ */ t.jsx("div", { className: u.contentRight, children: /* @__PURE__ */ t.jsx(Cs, {}) })
|
|
3383
3384
|
] })
|
|
3384
3385
|
] }),
|
|
3385
|
-
/* @__PURE__ */ t.jsx(
|
|
3386
|
+
/* @__PURE__ */ t.jsx(as, {})
|
|
3386
3387
|
] });
|
|
3387
|
-
},
|
|
3388
|
+
}, Fo = ({
|
|
3388
3389
|
address: e,
|
|
3389
3390
|
onSubmit: r,
|
|
3390
3391
|
partnerLogoUrl: a,
|
|
3391
3392
|
appearance: s = { theme: "minimal" },
|
|
3392
3393
|
initialAnswers: o,
|
|
3393
3394
|
skipPages: i,
|
|
3394
|
-
smsConsentText:
|
|
3395
|
-
submitLabel:
|
|
3396
|
-
contactPageTitle:
|
|
3397
|
-
contactPageSubtitle:
|
|
3398
|
-
onPageChange:
|
|
3399
|
-
onAnswerChange:
|
|
3400
|
-
onClose:
|
|
3401
|
-
onReady:
|
|
3395
|
+
smsConsentText: f,
|
|
3396
|
+
submitLabel: m,
|
|
3397
|
+
contactPageTitle: h,
|
|
3398
|
+
contactPageSubtitle: c,
|
|
3399
|
+
onPageChange: l,
|
|
3400
|
+
onAnswerChange: _,
|
|
3401
|
+
onClose: g,
|
|
3402
|
+
onReady: b,
|
|
3402
3403
|
onError: I,
|
|
3403
3404
|
contactConsentText: D
|
|
3404
3405
|
}) => {
|
|
3405
|
-
const
|
|
3406
|
-
return /* @__PURE__ */ t.jsx("div", { className:
|
|
3407
|
-
|
|
3406
|
+
const O = Ae(s);
|
|
3407
|
+
return /* @__PURE__ */ t.jsx("div", { className: u.container, style: O, children: /* @__PURE__ */ t.jsxs(
|
|
3408
|
+
Fn,
|
|
3408
3409
|
{
|
|
3409
3410
|
initialAnswers: o,
|
|
3410
3411
|
skipPages: i,
|
|
3411
|
-
smsConsentText:
|
|
3412
|
+
smsConsentText: f,
|
|
3412
3413
|
contactConsentText: D,
|
|
3413
|
-
submitLabel:
|
|
3414
|
-
contactPageTitle:
|
|
3415
|
-
contactPageSubtitle:
|
|
3414
|
+
submitLabel: m,
|
|
3415
|
+
contactPageTitle: h,
|
|
3416
|
+
contactPageSubtitle: c,
|
|
3416
3417
|
onSubmit: r,
|
|
3417
|
-
onPageChange:
|
|
3418
|
-
onAnswerChange:
|
|
3419
|
-
onReady:
|
|
3418
|
+
onPageChange: l,
|
|
3419
|
+
onAnswerChange: _,
|
|
3420
|
+
onReady: b,
|
|
3420
3421
|
onError: I,
|
|
3421
3422
|
children: [
|
|
3422
|
-
/* @__PURE__ */ t.jsx(
|
|
3423
|
-
/* @__PURE__ */ t.jsx(
|
|
3423
|
+
/* @__PURE__ */ t.jsx(Ie, { partnerLogoUrl: a, onClose: g }),
|
|
3424
|
+
/* @__PURE__ */ t.jsx(ws, { address: e })
|
|
3424
3425
|
]
|
|
3425
3426
|
}
|
|
3426
3427
|
) });
|
|
3427
|
-
},
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3428
|
+
}, ks = "_container_ge49i_7", js = "_root_ge49i_16", Ns = "_card_ge49i_31", Ss = "_titleLarge_ge49i_49", Is = "_featuresList_ge49i_53", Es = "_stepLayout_ge49i_68", Ps = "_leftColumn_ge49i_60", Ls = "_introHeader_ge49i_81", Ts = "_schedule_ge49i_87", As = "_subtitleLeft_ge49i_137", Ds = "_feature_ge49i_53", Os = "_featureTitle_ge49i_156", Rs = "_featureDescription_ge49i_163", Bs = "_title_ge49i_49", Ms = "_subtitle_ge49i_137", $s = "_calendarHeader_ge49i_188", Fs = "_calendarMonthLabel_ge49i_195", Ws = "_calendarNavButton_ge49i_201", Hs = "_calendarGrid_ge49i_221", Vs = "_calendarDayHeader_ge49i_227", Gs = "_calendarDayAvailable_ge49i_236", Us = "_calendarDayDisabled_ge49i_237", Ys = "_calendarDaySelected_ge49i_238", Zs = "_timesHeader_ge49i_269", Ks = "_timeRow_ge49i_276", qs = "_timeButton_ge49i_283", zs = "_timeButtonSelected_ge49i_284", Js = "_field_ge49i_307", Xs = "_fieldLabel_ge49i_313", Qs = "_input_ge49i_319", eo = "_fieldset_ge49i_340", to = "_radioRow_ge49i_349", ro = "_radioOption_ge49i_354", no = "_faqBelowActions_ge49i_375", ao = "_faq_ge49i_375", so = "_faqHeader_ge49i_386", oo = "_faqItem_ge49i_394", io = "_faqQuestion_ge49i_403", lo = "_faqAnswer_ge49i_419", co = "_faqChevron_ge49i_426", uo = "_errorText_ge49i_436", ho = "_actionsRow_ge49i_442", mo = "_linkButton_ge49i_450", fo = "_primaryButton_ge49i_467", po = "_successCheckCircle_ge49i_501", go = "_summaryCard_ge49i_513", _o = "_summaryRow_ge49i_523", yo = "_summaryIcon_ge49i_531", p = {
|
|
3429
|
+
container: ks,
|
|
3430
|
+
root: js,
|
|
3431
|
+
card: Ns,
|
|
3432
|
+
titleLarge: Ss,
|
|
3433
|
+
featuresList: Is,
|
|
3434
|
+
stepLayout: Es,
|
|
3435
|
+
leftColumn: Ps,
|
|
3436
|
+
introHeader: Ls,
|
|
3437
|
+
schedule: Ts,
|
|
3438
|
+
subtitleLeft: As,
|
|
3439
|
+
feature: Ds,
|
|
3440
|
+
featureTitle: Os,
|
|
3441
|
+
featureDescription: Rs,
|
|
3442
|
+
title: Bs,
|
|
3443
|
+
subtitle: Ms,
|
|
3444
|
+
calendarHeader: $s,
|
|
3445
|
+
calendarMonthLabel: Fs,
|
|
3446
|
+
calendarNavButton: Ws,
|
|
3447
|
+
calendarGrid: Hs,
|
|
3448
|
+
calendarDayHeader: Vs,
|
|
3449
|
+
calendarDayAvailable: Gs,
|
|
3450
|
+
calendarDayDisabled: Us,
|
|
3451
|
+
calendarDaySelected: Ys,
|
|
3452
|
+
timesHeader: Zs,
|
|
3453
|
+
timeRow: Ks,
|
|
3454
|
+
timeButton: qs,
|
|
3455
|
+
timeButtonSelected: zs,
|
|
3456
|
+
field: Js,
|
|
3457
|
+
fieldLabel: Xs,
|
|
3458
|
+
input: Qs,
|
|
3459
|
+
fieldset: eo,
|
|
3460
|
+
radioRow: to,
|
|
3461
|
+
radioOption: ro,
|
|
3462
|
+
faqBelowActions: no,
|
|
3463
|
+
faq: ao,
|
|
3464
|
+
faqHeader: so,
|
|
3465
|
+
faqItem: oo,
|
|
3466
|
+
faqQuestion: io,
|
|
3467
|
+
faqAnswer: lo,
|
|
3468
|
+
faqChevron: co,
|
|
3469
|
+
errorText: uo,
|
|
3470
|
+
actionsRow: ho,
|
|
3471
|
+
linkButton: mo,
|
|
3472
|
+
primaryButton: fo,
|
|
3473
|
+
successCheckCircle: po,
|
|
3474
|
+
summaryCard: go,
|
|
3475
|
+
summaryRow: _o,
|
|
3476
|
+
summaryIcon: yo
|
|
3477
|
+
}, bo = {
|
|
3476
3478
|
loading: !0,
|
|
3477
3479
|
error: null,
|
|
3478
3480
|
availableSlots: [],
|
|
3479
3481
|
isSlotBased: !1,
|
|
3480
3482
|
timezone: "UTC"
|
|
3481
3483
|
};
|
|
3482
|
-
function
|
|
3484
|
+
function Wo({
|
|
3483
3485
|
offerId: e,
|
|
3484
3486
|
customerName: r,
|
|
3485
3487
|
customerPhone: a,
|
|
3486
3488
|
address: s,
|
|
3487
3489
|
appearance: o,
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3490
|
+
partnerLogoUrl: i,
|
|
3491
|
+
onClose: f,
|
|
3492
|
+
onScheduled: m,
|
|
3493
|
+
onDone: h,
|
|
3494
|
+
onReady: c,
|
|
3495
|
+
onError: l
|
|
3492
3496
|
}) {
|
|
3493
|
-
const
|
|
3494
|
-
|
|
3495
|
-
const
|
|
3496
|
-
|
|
3497
|
-
if (
|
|
3497
|
+
const _ = It(), g = Ae(o), [b, I] = E(bo), [D, O] = E("select"), [A, S] = E(null), [j, se] = E(null), [V, J] = E(null), [G, P] = E(r ?? ""), [ce, z] = E(Ye(a ?? "")), [ee, Y] = E(null), [oe, K] = E(""), [F, de] = E(!1), [v, k] = E(null), C = Z(r);
|
|
3498
|
+
C.current = r;
|
|
3499
|
+
const le = Z(a);
|
|
3500
|
+
le.current = a, ie(() => {
|
|
3501
|
+
if (C.current && le.current)
|
|
3498
3502
|
return;
|
|
3499
3503
|
let w = !1;
|
|
3500
3504
|
return (async () => {
|
|
3501
3505
|
try {
|
|
3502
|
-
const
|
|
3506
|
+
const L = await _.getCustomerContact({
|
|
3503
3507
|
opendoorOfferRequestId: e
|
|
3504
3508
|
});
|
|
3505
3509
|
if (w) return;
|
|
3506
|
-
|
|
3507
|
-
(
|
|
3508
|
-
),
|
|
3509
|
-
(
|
|
3510
|
+
P(
|
|
3511
|
+
($) => !C.current && !$ && L.fullName ? L.fullName : $
|
|
3512
|
+
), z(
|
|
3513
|
+
($) => !le.current && !$ && L.phoneNumber ? Ye(L.phoneNumber) : $
|
|
3510
3514
|
);
|
|
3511
3515
|
} catch {
|
|
3512
3516
|
}
|
|
3513
3517
|
})(), () => {
|
|
3514
3518
|
w = !0;
|
|
3515
3519
|
};
|
|
3516
|
-
}, [
|
|
3520
|
+
}, [_, e]), ie(() => {
|
|
3517
3521
|
let w = !1;
|
|
3518
3522
|
return (async () => {
|
|
3519
3523
|
try {
|
|
3520
|
-
const
|
|
3524
|
+
const L = await _.getAssessmentSlots({ offerId: e });
|
|
3521
3525
|
if (w) return;
|
|
3522
|
-
if (
|
|
3526
|
+
if (I({
|
|
3523
3527
|
loading: !1,
|
|
3524
3528
|
error: null,
|
|
3525
|
-
availableSlots:
|
|
3526
|
-
isSlotBased:
|
|
3527
|
-
timezone:
|
|
3528
|
-
}),
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3529
|
+
availableSlots: L.availableSlots,
|
|
3530
|
+
isSlotBased: L.isSlotBased,
|
|
3531
|
+
timezone: L.timezone
|
|
3532
|
+
}), L.availableSlots.length > 0)
|
|
3533
|
+
J(
|
|
3534
|
+
xo(
|
|
3535
|
+
xt(L.availableSlots[0], L.timezone)
|
|
3532
3536
|
)
|
|
3533
3537
|
);
|
|
3534
3538
|
else {
|
|
3535
|
-
const
|
|
3536
|
-
|
|
3539
|
+
const $ = /* @__PURE__ */ new Date();
|
|
3540
|
+
J({ year: $.getFullYear(), month: $.getMonth() });
|
|
3537
3541
|
}
|
|
3538
|
-
|
|
3539
|
-
} catch (
|
|
3540
|
-
const
|
|
3542
|
+
c == null || c();
|
|
3543
|
+
} catch (L) {
|
|
3544
|
+
const $ = L instanceof Error ? L : new Error(String(L));
|
|
3541
3545
|
if (w) return;
|
|
3542
|
-
|
|
3543
|
-
const
|
|
3544
|
-
|
|
3546
|
+
I((he) => ({ ...he, loading: !1, error: $ }));
|
|
3547
|
+
const q = /* @__PURE__ */ new Date();
|
|
3548
|
+
J({ year: q.getFullYear(), month: q.getMonth() }), l == null || l($);
|
|
3545
3549
|
}
|
|
3546
3550
|
})(), () => {
|
|
3547
3551
|
w = !0;
|
|
3548
3552
|
};
|
|
3549
|
-
}, [
|
|
3550
|
-
const
|
|
3553
|
+
}, [_, e]);
|
|
3554
|
+
const W = Pe(() => {
|
|
3551
3555
|
const w = /* @__PURE__ */ new Map();
|
|
3552
|
-
for (const
|
|
3553
|
-
const
|
|
3554
|
-
|
|
3556
|
+
for (const L of b.availableSlots) {
|
|
3557
|
+
const $ = xt(L, b.timezone), q = w.get($) ?? [];
|
|
3558
|
+
q.push(L), w.set($, q);
|
|
3555
3559
|
}
|
|
3556
3560
|
return w;
|
|
3557
|
-
}, [
|
|
3558
|
-
if (
|
|
3559
|
-
return /* @__PURE__ */ t.
|
|
3560
|
-
|
|
3561
|
-
{
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
}
|
|
3567
|
-
);
|
|
3568
|
-
if (
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
{
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
className:
|
|
3584
|
-
|
|
3585
|
-
"
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
"path",
|
|
3589
|
-
{
|
|
3590
|
-
d: "M5 10.5l3 3 7-7",
|
|
3591
|
-
stroke: "currentColor",
|
|
3592
|
-
strokeWidth: "2",
|
|
3593
|
-
strokeLinecap: "round",
|
|
3594
|
-
strokeLinejoin: "round"
|
|
3595
|
-
}
|
|
3596
|
-
) }) }),
|
|
3597
|
-
/* @__PURE__ */ t.jsx("h2", { className: g.title, children: V ? `${bo(V)}, your assessment is scheduled!` : "Your assessment is scheduled!" }),
|
|
3598
|
-
/* @__PURE__ */ t.jsx("p", { className: g.subtitle, children: "A calendar invite has been sent to your email address." }),
|
|
3599
|
-
/* @__PURE__ */ t.jsxs("div", { className: g.summaryCard, children: [
|
|
3600
|
-
w && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
3601
|
-
/* @__PURE__ */ t.jsxs("div", { className: g.summaryRow, children: [
|
|
3602
|
-
/* @__PURE__ */ t.jsx(ko, {}),
|
|
3603
|
-
/* @__PURE__ */ t.jsx("span", { children: vt(w, p.timezone) })
|
|
3604
|
-
] }),
|
|
3605
|
-
/* @__PURE__ */ t.jsxs("div", { className: g.summaryRow, children: [
|
|
3606
|
-
/* @__PURE__ */ t.jsx(jo, {}),
|
|
3607
|
-
/* @__PURE__ */ t.jsx("span", { children: xt(w, p.timezone) })
|
|
3608
|
-
] })
|
|
3609
|
-
] }),
|
|
3610
|
-
s && /* @__PURE__ */ t.jsxs("div", { className: g.summaryRow, children: [
|
|
3561
|
+
}, [b.availableSlots, b.timezone]);
|
|
3562
|
+
if (b.loading || !V)
|
|
3563
|
+
return /* @__PURE__ */ t.jsxs("div", { className: p.container, style: g, children: [
|
|
3564
|
+
/* @__PURE__ */ t.jsx(Ie, { partnerLogoUrl: i, onClose: f }),
|
|
3565
|
+
/* @__PURE__ */ t.jsx("div", { className: p.root, "data-testid": "schedule-assessment-loading", children: /* @__PURE__ */ t.jsx("div", { className: p.card, children: /* @__PURE__ */ t.jsx("p", { className: p.subtitle, children: "Loading available times…" }) }) })
|
|
3566
|
+
] });
|
|
3567
|
+
if (b.error)
|
|
3568
|
+
return /* @__PURE__ */ t.jsxs("div", { className: p.container, style: g, children: [
|
|
3569
|
+
/* @__PURE__ */ t.jsx(Ie, { partnerLogoUrl: i, onClose: f }),
|
|
3570
|
+
/* @__PURE__ */ t.jsx("div", { className: p.root, "data-testid": "schedule-assessment-error", children: /* @__PURE__ */ t.jsx("div", { className: p.card, children: /* @__PURE__ */ t.jsx("p", { className: p.subtitle, children: "We couldn't load available times. Please try again in a few minutes." }) }) })
|
|
3571
|
+
] });
|
|
3572
|
+
if (D === "success") {
|
|
3573
|
+
const w = j ? new Date(j) : null;
|
|
3574
|
+
return /* @__PURE__ */ t.jsxs("div", { className: p.container, style: g, children: [
|
|
3575
|
+
/* @__PURE__ */ t.jsx(Ie, { partnerLogoUrl: i, onClose: f }),
|
|
3576
|
+
/* @__PURE__ */ t.jsx("div", { className: p.root, "data-testid": "schedule-assessment-success", children: /* @__PURE__ */ t.jsxs("div", { className: p.card, children: [
|
|
3577
|
+
/* @__PURE__ */ t.jsx("div", { className: p.successCheckCircle, "aria-hidden": "true", children: /* @__PURE__ */ t.jsx("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ t.jsx(
|
|
3578
|
+
"path",
|
|
3579
|
+
{
|
|
3580
|
+
d: "M5 10.5l3 3 7-7",
|
|
3581
|
+
stroke: "currentColor",
|
|
3582
|
+
strokeWidth: "2",
|
|
3583
|
+
strokeLinecap: "round",
|
|
3584
|
+
strokeLinejoin: "round"
|
|
3585
|
+
}
|
|
3586
|
+
) }) }),
|
|
3587
|
+
/* @__PURE__ */ t.jsx("h2", { className: p.title, children: G ? `${vo(G)}, your assessment is scheduled!` : "Your assessment is scheduled!" }),
|
|
3588
|
+
/* @__PURE__ */ t.jsx("p", { className: p.subtitle, children: "A calendar invite has been sent to your email address." }),
|
|
3589
|
+
/* @__PURE__ */ t.jsxs("div", { className: p.summaryCard, children: [
|
|
3590
|
+
w && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
3591
|
+
/* @__PURE__ */ t.jsxs("div", { className: p.summaryRow, children: [
|
|
3611
3592
|
/* @__PURE__ */ t.jsx(No, {}),
|
|
3612
|
-
/* @__PURE__ */ t.jsx("span", { children:
|
|
3593
|
+
/* @__PURE__ */ t.jsx("span", { children: Ct(w, b.timezone) })
|
|
3594
|
+
] }),
|
|
3595
|
+
/* @__PURE__ */ t.jsxs("div", { className: p.summaryRow, children: [
|
|
3596
|
+
/* @__PURE__ */ t.jsx(So, {}),
|
|
3597
|
+
/* @__PURE__ */ t.jsx("span", { children: wt(w, b.timezone) })
|
|
3613
3598
|
] })
|
|
3614
3599
|
] }),
|
|
3615
|
-
/* @__PURE__ */ t.
|
|
3616
|
-
|
|
3617
|
-
{
|
|
3618
|
-
|
|
3619
|
-
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3600
|
+
s && /* @__PURE__ */ t.jsxs("div", { className: p.summaryRow, children: [
|
|
3601
|
+
/* @__PURE__ */ t.jsx(Io, {}),
|
|
3602
|
+
/* @__PURE__ */ t.jsx("span", { children: s })
|
|
3603
|
+
] })
|
|
3604
|
+
] }),
|
|
3605
|
+
/* @__PURE__ */ t.jsx(
|
|
3606
|
+
"button",
|
|
3607
|
+
{
|
|
3608
|
+
type: "button",
|
|
3609
|
+
className: p.primaryButton,
|
|
3610
|
+
onClick: () => h == null ? void 0 : h(),
|
|
3611
|
+
children: "Done"
|
|
3612
|
+
}
|
|
3613
|
+
)
|
|
3614
|
+
] }) })
|
|
3615
|
+
] });
|
|
3627
3616
|
}
|
|
3628
|
-
if (
|
|
3629
|
-
const w =
|
|
3630
|
-
if (!(!
|
|
3631
|
-
|
|
3617
|
+
if (D === "confirm") {
|
|
3618
|
+
const w = ce.replace(/\D/g, ""), L = !F && G.trim().length > 0 && w.length >= 10 && ee !== null && (!ee || oe.trim().length > 0), $ = async () => {
|
|
3619
|
+
if (!(!L || !j)) {
|
|
3620
|
+
de(!0), k(null);
|
|
3632
3621
|
try {
|
|
3633
|
-
const
|
|
3622
|
+
const q = ee ? `Customer: ${G.trim()}. Access instructions: ${oe.trim()}` : `Customer: ${G.trim()}. No gate code or entry restrictions.`, he = await _.scheduleAssessment({
|
|
3634
3623
|
offerId: e,
|
|
3635
|
-
selectedInspectionTime:
|
|
3636
|
-
reminderPhone:
|
|
3637
|
-
notes:
|
|
3624
|
+
selectedInspectionTime: j,
|
|
3625
|
+
reminderPhone: ce.replace(/\D/g, ""),
|
|
3626
|
+
notes: q
|
|
3638
3627
|
});
|
|
3639
|
-
|
|
3628
|
+
O("success");
|
|
3640
3629
|
try {
|
|
3641
|
-
await (
|
|
3642
|
-
} catch (
|
|
3643
|
-
const
|
|
3644
|
-
|
|
3630
|
+
await (m == null ? void 0 : m(he.visitId));
|
|
3631
|
+
} catch (Ce) {
|
|
3632
|
+
const be = Ce instanceof Error ? Ce : new Error(String(Ce));
|
|
3633
|
+
l == null || l(be);
|
|
3645
3634
|
}
|
|
3646
|
-
} catch (
|
|
3647
|
-
const
|
|
3648
|
-
|
|
3635
|
+
} catch (q) {
|
|
3636
|
+
const he = q instanceof Error ? q : new Error(String(q));
|
|
3637
|
+
k(he.message), l == null || l(he);
|
|
3649
3638
|
} finally {
|
|
3650
|
-
|
|
3639
|
+
de(!1);
|
|
3651
3640
|
}
|
|
3652
3641
|
}
|
|
3653
3642
|
};
|
|
3654
|
-
return /* @__PURE__ */ t.
|
|
3655
|
-
|
|
3656
|
-
{
|
|
3657
|
-
className:
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
onChange: ($) => ae($.target.value),
|
|
3671
|
-
disabled: z
|
|
3672
|
-
}
|
|
3673
|
-
)
|
|
3674
|
-
] }),
|
|
3675
|
-
/* @__PURE__ */ t.jsxs("label", { className: g.field, children: [
|
|
3676
|
-
/* @__PURE__ */ t.jsx("span", { className: g.fieldLabel, children: "Phone number" }),
|
|
3677
|
-
/* @__PURE__ */ t.jsx(
|
|
3678
|
-
"input",
|
|
3679
|
-
{
|
|
3680
|
-
className: g.input,
|
|
3681
|
-
type: "tel",
|
|
3682
|
-
inputMode: "tel",
|
|
3683
|
-
autoComplete: "tel",
|
|
3684
|
-
placeholder: "(555) 555-5555",
|
|
3685
|
-
value: Z,
|
|
3686
|
-
onChange: ($) => L(qe($.target.value)),
|
|
3687
|
-
disabled: z
|
|
3688
|
-
}
|
|
3689
|
-
)
|
|
3690
|
-
] }),
|
|
3691
|
-
/* @__PURE__ */ t.jsxs("fieldset", { className: g.fieldset, children: [
|
|
3692
|
-
/* @__PURE__ */ t.jsx("legend", { className: g.fieldLabel, children: "Are there gate codes or entry restrictions?" }),
|
|
3693
|
-
/* @__PURE__ */ t.jsxs("div", { className: g.radioRow, children: [
|
|
3694
|
-
/* @__PURE__ */ t.jsxs("label", { className: g.radioOption, children: [
|
|
3695
|
-
/* @__PURE__ */ t.jsx(
|
|
3696
|
-
"input",
|
|
3697
|
-
{
|
|
3698
|
-
type: "radio",
|
|
3699
|
-
name: "gate-code",
|
|
3700
|
-
checked: se === !0,
|
|
3701
|
-
onChange: () => K(!0),
|
|
3702
|
-
disabled: z
|
|
3703
|
-
}
|
|
3704
|
-
),
|
|
3705
|
-
/* @__PURE__ */ t.jsx("span", { children: "Yes" })
|
|
3706
|
-
] }),
|
|
3707
|
-
/* @__PURE__ */ t.jsxs("label", { className: g.radioOption, children: [
|
|
3708
|
-
/* @__PURE__ */ t.jsx(
|
|
3709
|
-
"input",
|
|
3710
|
-
{
|
|
3711
|
-
type: "radio",
|
|
3712
|
-
name: "gate-code",
|
|
3713
|
-
checked: se === !1,
|
|
3714
|
-
onChange: () => K(!1),
|
|
3715
|
-
disabled: z
|
|
3716
|
-
}
|
|
3717
|
-
),
|
|
3718
|
-
/* @__PURE__ */ t.jsx("span", { children: "No" })
|
|
3719
|
-
] })
|
|
3720
|
-
] })
|
|
3721
|
-
] }),
|
|
3722
|
-
se && /* @__PURE__ */ t.jsxs("label", { className: g.field, children: [
|
|
3723
|
-
/* @__PURE__ */ t.jsx("span", { className: g.fieldLabel, children: "Please provide access instructions for your home." }),
|
|
3724
|
-
/* @__PURE__ */ t.jsx(
|
|
3725
|
-
"input",
|
|
3726
|
-
{
|
|
3727
|
-
className: g.input,
|
|
3728
|
-
type: "text",
|
|
3729
|
-
placeholder: "Gate code, directions, etc.",
|
|
3730
|
-
value: ie,
|
|
3731
|
-
onChange: ($) => Y($.target.value),
|
|
3732
|
-
disabled: z
|
|
3733
|
-
}
|
|
3734
|
-
)
|
|
3735
|
-
] }),
|
|
3736
|
-
J && /* @__PURE__ */ t.jsx("p", { className: g.errorText, children: J }),
|
|
3737
|
-
/* @__PURE__ */ t.jsxs("div", { className: g.actionsRow, children: [
|
|
3738
|
-
/* @__PURE__ */ t.jsx(
|
|
3739
|
-
"button",
|
|
3740
|
-
{
|
|
3741
|
-
type: "button",
|
|
3742
|
-
className: g.linkButton,
|
|
3743
|
-
onClick: () => I("select"),
|
|
3744
|
-
disabled: z,
|
|
3745
|
-
children: "← Back"
|
|
3746
|
-
}
|
|
3747
|
-
),
|
|
3748
|
-
/* @__PURE__ */ t.jsx(
|
|
3749
|
-
"button",
|
|
3750
|
-
{
|
|
3751
|
-
type: "button",
|
|
3752
|
-
className: g.primaryButton,
|
|
3753
|
-
onClick: () => void F(),
|
|
3754
|
-
disabled: !T,
|
|
3755
|
-
children: z ? "Scheduling…" : "Schedule"
|
|
3756
|
-
}
|
|
3757
|
-
)
|
|
3758
|
-
] }),
|
|
3759
|
-
/* @__PURE__ */ t.jsx("div", { className: g.faqBelowActions, children: /* @__PURE__ */ t.jsx(Po, { items: Io }) })
|
|
3760
|
-
] })
|
|
3761
|
-
}
|
|
3762
|
-
);
|
|
3763
|
-
}
|
|
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;
|
|
3765
|
-
return /* @__PURE__ */ t.jsx(
|
|
3766
|
-
"div",
|
|
3767
|
-
{
|
|
3768
|
-
className: g.root,
|
|
3769
|
-
style: c,
|
|
3770
|
-
"data-testid": "schedule-assessment-flow",
|
|
3771
|
-
children: /* @__PURE__ */ t.jsx("div", { className: g.card, children: /* @__PURE__ */ t.jsxs("div", { className: g.stepLayout, children: [
|
|
3772
|
-
/* @__PURE__ */ t.jsxs("div", { className: g.leftColumn, children: [
|
|
3773
|
-
/* @__PURE__ */ t.jsxs("div", { className: g.introHeader, children: [
|
|
3774
|
-
/* @__PURE__ */ t.jsx("h2", { className: g.titleLarge, children: "Schedule your assessment" }),
|
|
3775
|
-
/* @__PURE__ */ t.jsx("p", { className: g.subtitleLeft, children: "Pick a time that works for you." })
|
|
3776
|
-
] }),
|
|
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)) })
|
|
3643
|
+
return /* @__PURE__ */ t.jsxs("div", { className: p.container, style: g, children: [
|
|
3644
|
+
/* @__PURE__ */ t.jsx(Ie, { partnerLogoUrl: i, onClose: f }),
|
|
3645
|
+
/* @__PURE__ */ t.jsx("div", { className: p.root, "data-testid": "schedule-assessment-confirm", children: /* @__PURE__ */ t.jsxs("div", { className: p.card, children: [
|
|
3646
|
+
/* @__PURE__ */ t.jsx("h2", { className: p.title, children: "Confirm your details" }),
|
|
3647
|
+
/* @__PURE__ */ t.jsxs("label", { className: p.field, children: [
|
|
3648
|
+
/* @__PURE__ */ t.jsx("span", { className: p.fieldLabel, children: "Customer name" }),
|
|
3649
|
+
/* @__PURE__ */ t.jsx(
|
|
3650
|
+
"input",
|
|
3651
|
+
{
|
|
3652
|
+
className: p.input,
|
|
3653
|
+
type: "text",
|
|
3654
|
+
value: G,
|
|
3655
|
+
onChange: (q) => P(q.target.value),
|
|
3656
|
+
disabled: F
|
|
3657
|
+
}
|
|
3658
|
+
)
|
|
3781
3659
|
] }),
|
|
3782
|
-
/* @__PURE__ */ t.jsxs("
|
|
3783
|
-
/* @__PURE__ */ t.
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
"
|
|
3804
|
-
children: "›"
|
|
3805
|
-
}
|
|
3806
|
-
)
|
|
3807
|
-
] }),
|
|
3808
|
-
/* @__PURE__ */ t.jsxs("div", { className: g.calendarGrid, children: [
|
|
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;
|
|
3812
|
-
return /* @__PURE__ */ t.jsx(
|
|
3813
|
-
"button",
|
|
3660
|
+
/* @__PURE__ */ t.jsxs("label", { className: p.field, children: [
|
|
3661
|
+
/* @__PURE__ */ t.jsx("span", { className: p.fieldLabel, children: "Phone number" }),
|
|
3662
|
+
/* @__PURE__ */ t.jsx(
|
|
3663
|
+
"input",
|
|
3664
|
+
{
|
|
3665
|
+
className: p.input,
|
|
3666
|
+
type: "tel",
|
|
3667
|
+
inputMode: "tel",
|
|
3668
|
+
autoComplete: "tel",
|
|
3669
|
+
placeholder: "(555) 555-5555",
|
|
3670
|
+
value: ce,
|
|
3671
|
+
onChange: (q) => z(Ye(q.target.value)),
|
|
3672
|
+
disabled: F
|
|
3673
|
+
}
|
|
3674
|
+
)
|
|
3675
|
+
] }),
|
|
3676
|
+
/* @__PURE__ */ t.jsxs("fieldset", { className: p.fieldset, children: [
|
|
3677
|
+
/* @__PURE__ */ t.jsx("legend", { className: p.fieldLabel, children: "Are there gate codes or entry restrictions?" }),
|
|
3678
|
+
/* @__PURE__ */ t.jsxs("div", { className: p.radioRow, children: [
|
|
3679
|
+
/* @__PURE__ */ t.jsxs("label", { className: p.radioOption, children: [
|
|
3680
|
+
/* @__PURE__ */ t.jsx(
|
|
3681
|
+
"input",
|
|
3814
3682
|
{
|
|
3815
|
-
type: "
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
},
|
|
3824
|
-
w ? w.key : `empty-${G}-${T}`
|
|
3825
|
-
);
|
|
3826
|
-
})
|
|
3827
|
-
] }),
|
|
3828
|
-
ge && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
3829
|
-
/* @__PURE__ */ t.jsxs("p", { className: g.timesHeader, children: [
|
|
3830
|
-
"Available times for ",
|
|
3831
|
-
ge
|
|
3683
|
+
type: "radio",
|
|
3684
|
+
name: "gate-code",
|
|
3685
|
+
checked: ee === !0,
|
|
3686
|
+
onChange: () => Y(!0),
|
|
3687
|
+
disabled: F
|
|
3688
|
+
}
|
|
3689
|
+
),
|
|
3690
|
+
/* @__PURE__ */ t.jsx("span", { children: "Yes" })
|
|
3832
3691
|
] }),
|
|
3833
|
-
/* @__PURE__ */ t.
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
"button",
|
|
3692
|
+
/* @__PURE__ */ t.jsxs("label", { className: p.radioOption, children: [
|
|
3693
|
+
/* @__PURE__ */ t.jsx(
|
|
3694
|
+
"input",
|
|
3837
3695
|
{
|
|
3838
|
-
type: "
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
)
|
|
3845
|
-
|
|
3846
|
-
|
|
3696
|
+
type: "radio",
|
|
3697
|
+
name: "gate-code",
|
|
3698
|
+
checked: ee === !1,
|
|
3699
|
+
onChange: () => Y(!1),
|
|
3700
|
+
disabled: F
|
|
3701
|
+
}
|
|
3702
|
+
),
|
|
3703
|
+
/* @__PURE__ */ t.jsx("span", { children: "No" })
|
|
3704
|
+
] })
|
|
3705
|
+
] })
|
|
3706
|
+
] }),
|
|
3707
|
+
ee && /* @__PURE__ */ t.jsxs("label", { className: p.field, children: [
|
|
3708
|
+
/* @__PURE__ */ t.jsx("span", { className: p.fieldLabel, children: "Please provide access instructions for your home." }),
|
|
3709
|
+
/* @__PURE__ */ t.jsx(
|
|
3710
|
+
"input",
|
|
3711
|
+
{
|
|
3712
|
+
className: p.input,
|
|
3713
|
+
type: "text",
|
|
3714
|
+
placeholder: "Gate code, directions, etc.",
|
|
3715
|
+
value: oe,
|
|
3716
|
+
onChange: (q) => K(q.target.value),
|
|
3717
|
+
disabled: F
|
|
3718
|
+
}
|
|
3719
|
+
)
|
|
3720
|
+
] }),
|
|
3721
|
+
v && /* @__PURE__ */ t.jsx("p", { className: p.errorText, children: v }),
|
|
3722
|
+
/* @__PURE__ */ t.jsxs("div", { className: p.actionsRow, children: [
|
|
3847
3723
|
/* @__PURE__ */ t.jsx(
|
|
3848
3724
|
"button",
|
|
3849
3725
|
{
|
|
3850
3726
|
type: "button",
|
|
3851
|
-
className:
|
|
3852
|
-
onClick: () =>
|
|
3853
|
-
disabled:
|
|
3854
|
-
children: "
|
|
3727
|
+
className: p.linkButton,
|
|
3728
|
+
onClick: () => O("select"),
|
|
3729
|
+
disabled: F,
|
|
3730
|
+
children: "← Back"
|
|
3731
|
+
}
|
|
3732
|
+
),
|
|
3733
|
+
/* @__PURE__ */ t.jsx(
|
|
3734
|
+
"button",
|
|
3735
|
+
{
|
|
3736
|
+
type: "button",
|
|
3737
|
+
className: p.primaryButton,
|
|
3738
|
+
onClick: () => void $(),
|
|
3739
|
+
disabled: !L,
|
|
3740
|
+
children: F ? "Scheduling…" : "Schedule"
|
|
3855
3741
|
}
|
|
3856
3742
|
)
|
|
3857
|
-
] })
|
|
3743
|
+
] }),
|
|
3744
|
+
/* @__PURE__ */ t.jsx("div", { className: p.faqBelowActions, children: /* @__PURE__ */ t.jsx(To, { items: Po }) })
|
|
3858
3745
|
] }) })
|
|
3859
|
-
}
|
|
3860
|
-
|
|
3746
|
+
] });
|
|
3747
|
+
}
|
|
3748
|
+
const ae = Co(V), M = wo(V), ue = ko(V, W), ye = jo(V, W), pe = A ? W.get(A) ?? [] : [], _e = pe[0] ? Ct(new Date(pe[0]), b.timezone) : null;
|
|
3749
|
+
return /* @__PURE__ */ t.jsxs("div", { className: p.container, style: g, children: [
|
|
3750
|
+
/* @__PURE__ */ t.jsx(Ie, { partnerLogoUrl: i, onClose: f }),
|
|
3751
|
+
/* @__PURE__ */ t.jsx("div", { className: p.root, "data-testid": "schedule-assessment-flow", children: /* @__PURE__ */ t.jsx("div", { className: p.card, children: /* @__PURE__ */ t.jsxs("div", { className: p.stepLayout, children: [
|
|
3752
|
+
/* @__PURE__ */ t.jsxs("div", { className: p.leftColumn, children: [
|
|
3753
|
+
/* @__PURE__ */ t.jsxs("div", { className: p.introHeader, children: [
|
|
3754
|
+
/* @__PURE__ */ t.jsx("h2", { className: p.titleLarge, children: "Schedule your assessment" }),
|
|
3755
|
+
/* @__PURE__ */ t.jsx("p", { className: p.subtitleLeft, children: "Pick a time that works for you." })
|
|
3756
|
+
] }),
|
|
3757
|
+
/* @__PURE__ */ t.jsx("div", { className: p.featuresList, children: Eo.map((w) => /* @__PURE__ */ t.jsxs("div", { className: p.feature, children: [
|
|
3758
|
+
/* @__PURE__ */ t.jsx("p", { className: p.featureTitle, children: w.title }),
|
|
3759
|
+
/* @__PURE__ */ t.jsx("p", { className: p.featureDescription, children: w.description })
|
|
3760
|
+
] }, w.title)) })
|
|
3761
|
+
] }),
|
|
3762
|
+
/* @__PURE__ */ t.jsxs("div", { className: p.schedule, children: [
|
|
3763
|
+
/* @__PURE__ */ t.jsxs("div", { className: p.calendarHeader, children: [
|
|
3764
|
+
/* @__PURE__ */ t.jsx(
|
|
3765
|
+
"button",
|
|
3766
|
+
{
|
|
3767
|
+
type: "button",
|
|
3768
|
+
className: p.calendarNavButton,
|
|
3769
|
+
onClick: () => J(kt(V, -1)),
|
|
3770
|
+
disabled: !ue,
|
|
3771
|
+
"aria-label": "Previous month",
|
|
3772
|
+
children: "‹"
|
|
3773
|
+
}
|
|
3774
|
+
),
|
|
3775
|
+
/* @__PURE__ */ t.jsx("span", { className: p.calendarMonthLabel, children: M }),
|
|
3776
|
+
/* @__PURE__ */ t.jsx(
|
|
3777
|
+
"button",
|
|
3778
|
+
{
|
|
3779
|
+
type: "button",
|
|
3780
|
+
className: p.calendarNavButton,
|
|
3781
|
+
onClick: () => J(kt(V, 1)),
|
|
3782
|
+
disabled: !ye,
|
|
3783
|
+
"aria-label": "Next month",
|
|
3784
|
+
children: "›"
|
|
3785
|
+
}
|
|
3786
|
+
)
|
|
3787
|
+
] }),
|
|
3788
|
+
/* @__PURE__ */ t.jsxs("div", { className: p.calendarGrid, children: [
|
|
3789
|
+
["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"].map((w) => /* @__PURE__ */ t.jsx("div", { className: p.calendarDayHeader, children: w }, w)),
|
|
3790
|
+
ae.map((w, L) => {
|
|
3791
|
+
const $ = w ? W.has(w.key) : !1, q = !!w && w.key === A;
|
|
3792
|
+
return /* @__PURE__ */ t.jsx(
|
|
3793
|
+
"button",
|
|
3794
|
+
{
|
|
3795
|
+
type: "button",
|
|
3796
|
+
className: q ? p.calendarDaySelected : $ ? p.calendarDayAvailable : p.calendarDayDisabled,
|
|
3797
|
+
onClick: () => {
|
|
3798
|
+
w && $ && (S(w.key), se(null));
|
|
3799
|
+
},
|
|
3800
|
+
disabled: !$,
|
|
3801
|
+
"aria-pressed": !!q,
|
|
3802
|
+
children: w ? w.day : ""
|
|
3803
|
+
},
|
|
3804
|
+
w ? w.key : `empty-${M}-${L}`
|
|
3805
|
+
);
|
|
3806
|
+
})
|
|
3807
|
+
] }),
|
|
3808
|
+
_e && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
3809
|
+
/* @__PURE__ */ t.jsxs("p", { className: p.timesHeader, children: [
|
|
3810
|
+
"Available times for ",
|
|
3811
|
+
_e
|
|
3812
|
+
] }),
|
|
3813
|
+
/* @__PURE__ */ t.jsx("div", { className: p.timeRow, children: pe.map((w) => {
|
|
3814
|
+
const L = w === j;
|
|
3815
|
+
return /* @__PURE__ */ t.jsx(
|
|
3816
|
+
"button",
|
|
3817
|
+
{
|
|
3818
|
+
type: "button",
|
|
3819
|
+
className: L ? p.timeButtonSelected : p.timeButton,
|
|
3820
|
+
onClick: () => se(w),
|
|
3821
|
+
children: wt(new Date(w), b.timezone)
|
|
3822
|
+
},
|
|
3823
|
+
w
|
|
3824
|
+
);
|
|
3825
|
+
}) })
|
|
3826
|
+
] }),
|
|
3827
|
+
/* @__PURE__ */ t.jsx(
|
|
3828
|
+
"button",
|
|
3829
|
+
{
|
|
3830
|
+
type: "button",
|
|
3831
|
+
className: p.primaryButton,
|
|
3832
|
+
onClick: () => O("confirm"),
|
|
3833
|
+
disabled: !j,
|
|
3834
|
+
children: "Continue"
|
|
3835
|
+
}
|
|
3836
|
+
)
|
|
3837
|
+
] })
|
|
3838
|
+
] }) }) })
|
|
3839
|
+
] });
|
|
3861
3840
|
}
|
|
3862
|
-
function
|
|
3841
|
+
function vo(e) {
|
|
3863
3842
|
return e.trim().split(/\s+/)[0] ?? "";
|
|
3864
3843
|
}
|
|
3865
|
-
function
|
|
3844
|
+
function Ye(e) {
|
|
3866
3845
|
const r = e.replace(/\D/g, "").slice(0, 10);
|
|
3867
3846
|
return r.length === 0 ? "" : 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)}`;
|
|
3868
3847
|
}
|
|
3869
|
-
function
|
|
3848
|
+
function xt(e, r) {
|
|
3870
3849
|
const a = new Date(e);
|
|
3871
3850
|
return new Intl.DateTimeFormat("en-CA", {
|
|
3872
3851
|
timeZone: r,
|
|
@@ -3875,11 +3854,11 @@ function yt(e, r) {
|
|
|
3875
3854
|
day: "2-digit"
|
|
3876
3855
|
}).format(a);
|
|
3877
3856
|
}
|
|
3878
|
-
function
|
|
3857
|
+
function xo(e) {
|
|
3879
3858
|
const [r, a] = e.split("-").map((s) => parseInt(s, 10));
|
|
3880
3859
|
return { year: r, month: a - 1 };
|
|
3881
3860
|
}
|
|
3882
|
-
function
|
|
3861
|
+
function Ct(e, r) {
|
|
3883
3862
|
return new Intl.DateTimeFormat(void 0, {
|
|
3884
3863
|
timeZone: r,
|
|
3885
3864
|
weekday: "long",
|
|
@@ -3887,7 +3866,7 @@ function vt(e, r) {
|
|
|
3887
3866
|
day: "numeric"
|
|
3888
3867
|
}).format(e);
|
|
3889
3868
|
}
|
|
3890
|
-
function
|
|
3869
|
+
function wt(e, r) {
|
|
3891
3870
|
return new Intl.DateTimeFormat(void 0, {
|
|
3892
3871
|
timeZone: r,
|
|
3893
3872
|
hour: "numeric",
|
|
@@ -3895,29 +3874,29 @@ function xt(e, r) {
|
|
|
3895
3874
|
hour12: !0
|
|
3896
3875
|
}).format(e);
|
|
3897
3876
|
}
|
|
3898
|
-
function
|
|
3877
|
+
function kt(e, r) {
|
|
3899
3878
|
const a = e.year * 12 + e.month + r, s = Math.floor(a / 12), o = a - s * 12;
|
|
3900
3879
|
return { year: s, month: o };
|
|
3901
3880
|
}
|
|
3902
|
-
function
|
|
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 = [],
|
|
3904
|
-
for (let
|
|
3905
|
-
const
|
|
3906
|
-
|
|
3907
|
-
key: `${
|
|
3908
|
-
day:
|
|
3881
|
+
function Co({ year: e, month: r }) {
|
|
3882
|
+
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 = [], f = String(e).padStart(4, "0"), m = String(r + 1).padStart(2, "0");
|
|
3883
|
+
for (let h = 0; h < o; h++) {
|
|
3884
|
+
const c = h - a + 1;
|
|
3885
|
+
c < 1 || c > s ? i.push(null) : i.push({
|
|
3886
|
+
key: `${f}-${m}-${String(c).padStart(2, "0")}`,
|
|
3887
|
+
day: c
|
|
3909
3888
|
});
|
|
3910
3889
|
}
|
|
3911
3890
|
return i;
|
|
3912
3891
|
}
|
|
3913
|
-
function
|
|
3892
|
+
function wo({ year: e, month: r }) {
|
|
3914
3893
|
return new Date(Date.UTC(e, r, 1)).toLocaleString(void 0, {
|
|
3915
3894
|
timeZone: "UTC",
|
|
3916
3895
|
month: "long",
|
|
3917
3896
|
year: "numeric"
|
|
3918
3897
|
});
|
|
3919
3898
|
}
|
|
3920
|
-
function
|
|
3899
|
+
function ko(e, r) {
|
|
3921
3900
|
for (const a of r.keys()) {
|
|
3922
3901
|
const [s, o] = a.split("-").map((i) => parseInt(i, 10));
|
|
3923
3902
|
if (s < e.year || s === e.year && o - 1 < e.month)
|
|
@@ -3925,7 +3904,7 @@ function Co(e, r) {
|
|
|
3925
3904
|
}
|
|
3926
3905
|
return !1;
|
|
3927
3906
|
}
|
|
3928
|
-
function
|
|
3907
|
+
function jo(e, r) {
|
|
3929
3908
|
for (const a of r.keys()) {
|
|
3930
3909
|
const [s, o] = a.split("-").map((i) => parseInt(i, 10));
|
|
3931
3910
|
if (s > e.year || s === e.year && o - 1 > e.month)
|
|
@@ -3933,7 +3912,7 @@ function wo(e, r) {
|
|
|
3933
3912
|
}
|
|
3934
3913
|
return !1;
|
|
3935
3914
|
}
|
|
3936
|
-
function
|
|
3915
|
+
function Qe() {
|
|
3937
3916
|
return {
|
|
3938
3917
|
width: 16,
|
|
3939
3918
|
height: 16,
|
|
@@ -3944,28 +3923,28 @@ function Je() {
|
|
|
3944
3923
|
strokeLinecap: "round",
|
|
3945
3924
|
strokeLinejoin: "round",
|
|
3946
3925
|
"aria-hidden": !0,
|
|
3947
|
-
className:
|
|
3926
|
+
className: p.summaryIcon
|
|
3948
3927
|
};
|
|
3949
3928
|
}
|
|
3950
|
-
function
|
|
3951
|
-
return /* @__PURE__ */ t.jsxs("svg", { ...
|
|
3929
|
+
function No() {
|
|
3930
|
+
return /* @__PURE__ */ t.jsxs("svg", { ...Qe(), children: [
|
|
3952
3931
|
/* @__PURE__ */ t.jsx("rect", { x: "2", y: "3.5", width: "12", height: "11", rx: "1.5" }),
|
|
3953
3932
|
/* @__PURE__ */ t.jsx("path", { d: "M2 6.5h12M5.5 2v3M10.5 2v3" })
|
|
3954
3933
|
] });
|
|
3955
3934
|
}
|
|
3956
|
-
function
|
|
3957
|
-
return /* @__PURE__ */ t.jsxs("svg", { ...
|
|
3935
|
+
function So() {
|
|
3936
|
+
return /* @__PURE__ */ t.jsxs("svg", { ...Qe(), children: [
|
|
3958
3937
|
/* @__PURE__ */ t.jsx("circle", { cx: "8", cy: "8", r: "6" }),
|
|
3959
3938
|
/* @__PURE__ */ t.jsx("path", { d: "M8 4.5V8l2.5 1.5" })
|
|
3960
3939
|
] });
|
|
3961
3940
|
}
|
|
3962
|
-
function
|
|
3963
|
-
return /* @__PURE__ */ t.jsxs("svg", { ...
|
|
3941
|
+
function Io() {
|
|
3942
|
+
return /* @__PURE__ */ t.jsxs("svg", { ...Qe(), children: [
|
|
3964
3943
|
/* @__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" }),
|
|
3965
3944
|
/* @__PURE__ */ t.jsx("circle", { cx: "8", cy: "6.5", r: "1.5" })
|
|
3966
3945
|
] });
|
|
3967
3946
|
}
|
|
3968
|
-
const
|
|
3947
|
+
const Eo = [
|
|
3969
3948
|
{
|
|
3970
3949
|
title: "No extra preparation needed",
|
|
3971
3950
|
description: "No need to fix, clean, or stage your home."
|
|
@@ -3978,7 +3957,7 @@ const So = [
|
|
|
3978
3957
|
title: "30 minutes or less",
|
|
3979
3958
|
description: "Examine the home's exterior and take a quick look inside."
|
|
3980
3959
|
}
|
|
3981
|
-
],
|
|
3960
|
+
], Po = [
|
|
3982
3961
|
{
|
|
3983
3962
|
title: "What are you looking for during the assessment?",
|
|
3984
3963
|
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."
|
|
@@ -3992,7 +3971,7 @@ const So = [
|
|
|
3992
3971
|
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."
|
|
3993
3972
|
}
|
|
3994
3973
|
];
|
|
3995
|
-
function
|
|
3974
|
+
function Lo() {
|
|
3996
3975
|
return /* @__PURE__ */ t.jsx(
|
|
3997
3976
|
"svg",
|
|
3998
3977
|
{
|
|
@@ -4005,34 +3984,34 @@ function Eo() {
|
|
|
4005
3984
|
strokeLinecap: "round",
|
|
4006
3985
|
strokeLinejoin: "round",
|
|
4007
3986
|
"aria-hidden": "true",
|
|
4008
|
-
className:
|
|
3987
|
+
className: p.faqChevron,
|
|
4009
3988
|
children: /* @__PURE__ */ t.jsx("path", { d: "M4 6l4 4 4-4" })
|
|
4010
3989
|
}
|
|
4011
3990
|
);
|
|
4012
3991
|
}
|
|
4013
|
-
function
|
|
3992
|
+
function To({
|
|
4014
3993
|
items: e
|
|
4015
3994
|
}) {
|
|
4016
|
-
return /* @__PURE__ */ t.jsxs("div", { className:
|
|
4017
|
-
/* @__PURE__ */ t.jsx("h3", { className:
|
|
4018
|
-
e.map((r) => /* @__PURE__ */ t.jsxs("details", { className:
|
|
4019
|
-
/* @__PURE__ */ t.jsxs("summary", { className:
|
|
3995
|
+
return /* @__PURE__ */ t.jsxs("div", { className: p.faq, children: [
|
|
3996
|
+
/* @__PURE__ */ t.jsx("h3", { className: p.faqHeader, children: "Frequently asked questions" }),
|
|
3997
|
+
e.map((r) => /* @__PURE__ */ t.jsxs("details", { className: p.faqItem, children: [
|
|
3998
|
+
/* @__PURE__ */ t.jsxs("summary", { className: p.faqQuestion, children: [
|
|
4020
3999
|
/* @__PURE__ */ t.jsx("span", { children: r.title }),
|
|
4021
|
-
/* @__PURE__ */ t.jsx(
|
|
4000
|
+
/* @__PURE__ */ t.jsx(Lo, {})
|
|
4022
4001
|
] }),
|
|
4023
|
-
/* @__PURE__ */ t.jsx("p", { className:
|
|
4002
|
+
/* @__PURE__ */ t.jsx("p", { className: p.faqAnswer, children: r.body })
|
|
4024
4003
|
] }, r.title))
|
|
4025
4004
|
] });
|
|
4026
4005
|
}
|
|
4027
4006
|
export {
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4007
|
+
Bo as AddressEntry,
|
|
4008
|
+
$o as AddressMap,
|
|
4009
|
+
Mo as AddressUnitConfirmation,
|
|
4010
|
+
Ro as DTC_ONBOARDING_PAGE_IDS,
|
|
4011
|
+
Fo as DtcOnboardingFlow,
|
|
4012
|
+
Oo as OpendoorProvider,
|
|
4013
|
+
Wo as ScheduleAssessmentFlow,
|
|
4014
|
+
ur as THEMES,
|
|
4015
|
+
hr as resolveAppearance,
|
|
4016
|
+
It as useOpendoorClient
|
|
4038
4017
|
};
|