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