@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 jt, { createContext as qe, useState as E, useEffect as ie, useContext as Re, useRef as Z, useMemo as Pe, useCallback as Te, useLayoutEffect as Kt } from "react";
2
- import { createPortal as qt } from "react-dom";
3
- var Ze = { exports: {} }, Se = {};
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 Nt() {
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 = {}, m = 0; m < 10; m++)
27
- f["_" + String.fromCharCode(m)] = m;
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 m, h = s(i), c, l = 1; l < arguments.length; l++) {
43
- m = Object(arguments[l]);
44
- for (var _ in m)
45
- r.call(m, _) && (h[_] = m[_]);
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(m);
47
+ c = e(p);
48
48
  for (var g = 0; g < c.length; g++)
49
- a.call(m, c[g]) && (h[c[g]] = m[c[g]]);
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 zt() {
64
+ function Jt() {
65
65
  if (dt) return Se;
66
- dt = 1, Nt();
67
- var e = jt, r = 60103;
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(m, h, c) {
74
- var l, _ = {}, g = null, b = null;
75
- c !== void 0 && (g = "" + c), h.key !== void 0 && (g = "" + h.key), h.ref !== void 0 && (b = h.ref);
76
- for (l in h) o.call(h, l) && !i.hasOwnProperty(l) && (_[l] = h[l]);
77
- if (m && m.defaultProps) for (l in h = m.defaultProps, h) _[l] === void 0 && (_[l] = h[l]);
78
- return { $$typeof: r, type: m, key: g, ref: b, props: _, _owner: s.current };
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 Jt() {
92
+ function Xt() {
93
93
  return ut || (ut = 1, function(e) {
94
94
  process.env.NODE_ENV !== "production" && function() {
95
- var r = jt, a = Nt(), s = 60103, o = 60106;
95
+ var r = Nt, a = It(), s = 60103, o = 60106;
96
96
  e.Fragment = 60107;
97
- var i = 60108, f = 60114, m = 60109, h = 60110, c = 60112, l = 60113, _ = 60120, g = 60115, b = 60116, I = 60121, D = 60122, O = 60117, A = 60129, S = 60131;
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 j = Symbol.for;
100
- s = j("react.element"), o = j("react.portal"), e.Fragment = j("react.fragment"), i = j("react.strict_mode"), f = j("react.profiler"), m = j("react.provider"), h = j("react.context"), c = j("react.forward_ref"), l = j("react.suspense"), _ = j("react.suspense_list"), g = j("react.memo"), b = j("react.lazy"), I = j("react.block"), D = j("react.server.block"), O = j("react.fundamental"), j("react.scope"), j("react.opaque.id"), A = j("react.debug_trace_mode"), j("react.offscreen"), S = j("react.legacy_hidden");
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 se = typeof Symbol == "function" && Symbol.iterator, V = "@@iterator";
103
- function J(n) {
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 = se && n[se] || n[V];
106
+ var d = le && n[le] || n[q];
107
107
  return typeof d == "function" ? d : null;
108
108
  }
109
- var G = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
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, y = new Array(d > 1 ? d - 1 : 0), N = 1; N < d; N++)
113
- y[N - 1] = arguments[N];
114
- ce("error", n, y);
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 ce(n, d, y) {
117
+ function se(n, d, _) {
118
118
  {
119
- var N = G.ReactDebugCurrentFrame, U = N.getStackAddendum();
120
- U !== "" && (d += "%s", y = y.concat([U]));
121
- var H = y.map(function(R) {
122
- return "" + R;
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
- H.unshift("Warning: " + d), Function.prototype.apply.call(console[n], console, H);
124
+ W.unshift("Warning: " + d), Function.prototype.apply.call(console[n], console, W);
125
125
  }
126
126
  }
127
127
  var z = !1;
128
- function ee(n) {
129
- return !!(typeof n == "string" || typeof n == "function" || n === e.Fragment || n === f || n === A || n === i || n === l || n === _ || n === S || z || typeof n == "object" && n !== null && (n.$$typeof === b || n.$$typeof === g || n.$$typeof === m || n.$$typeof === h || n.$$typeof === c || n.$$typeof === O || n.$$typeof === I || n[0] === D));
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 Y(n, d, y) {
132
- var N = d.displayName || d.name || "";
133
- return n.displayName || (N !== "" ? y + "(" + N + ")" : y);
131
+ function G(n, d, _) {
132
+ var j = d.displayName || d.name || "";
133
+ return n.displayName || (j !== "" ? _ + "(" + j + ")" : _);
134
134
  }
135
- function oe(n) {
135
+ function Q(n) {
136
136
  return n.displayName || "Context";
137
137
  }
138
- function K(n) {
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 oe(d) + ".Consumer";
164
- case m:
165
- var y = n;
166
- return oe(y._context) + ".Provider";
163
+ return Q(d) + ".Consumer";
164
+ case p:
165
+ var _ = n;
166
+ return Q(_._context) + ".Provider";
167
167
  case c:
168
- return Y(n, n.render, "ForwardRef");
168
+ return G(n, n.render, "ForwardRef");
169
169
  case g:
170
- return K(n.type);
171
- case I:
172
- return K(n._render);
173
- case b: {
174
- var N = n, U = N._payload, H = N._init;
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 K(H(U));
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 F = 0, de, v, k, C, le, W, ae;
185
- function M() {
184
+ var J = 0, me, b, C, k, ce, H, ee;
185
+ function A() {
186
186
  }
187
- M.__reactDisabledLog = !0;
188
- function ue() {
187
+ A.__reactDisabledLog = !0;
188
+ function de() {
189
189
  {
190
- if (F === 0) {
191
- de = console.log, v = console.info, k = console.warn, C = console.error, le = console.group, W = console.groupCollapsed, ae = console.groupEnd;
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: M,
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
- F++;
208
+ J++;
209
209
  }
210
210
  }
211
- function ye() {
211
+ function _e() {
212
212
  {
213
- if (F--, F === 0) {
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: de
221
+ value: me
222
222
  }),
223
223
  info: a({}, n, {
224
- value: v
224
+ value: b
225
225
  }),
226
226
  warn: a({}, n, {
227
- value: k
227
+ value: C
228
228
  }),
229
229
  error: a({}, n, {
230
- value: C
230
+ value: k
231
231
  }),
232
232
  group: a({}, n, {
233
- value: le
233
+ value: ce
234
234
  }),
235
235
  groupCollapsed: a({}, n, {
236
- value: W
236
+ value: H
237
237
  }),
238
238
  groupEnd: a({}, n, {
239
- value: ae
239
+ value: ee
240
240
  })
241
241
  });
242
242
  }
243
- F < 0 && P("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
243
+ J < 0 && P("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
244
244
  }
245
245
  }
246
- var pe = G.ReactCurrentDispatcher, _e;
247
- function w(n, d, y) {
246
+ var ye = $.ReactCurrentDispatcher, ve;
247
+ function pe(n, d, _) {
248
248
  {
249
- if (_e === void 0)
249
+ if (ve === void 0)
250
250
  try {
251
251
  throw Error();
252
- } catch (U) {
253
- var N = U.stack.trim().match(/\n( *(at )?)/);
254
- _e = N && N[1] || "";
252
+ } catch (V) {
253
+ var j = V.stack.trim().match(/\n( *(at )?)/);
254
+ ve = j && j[1] || "";
255
255
  }
256
256
  return `
257
- ` + _e + n;
257
+ ` + ve + n;
258
258
  }
259
259
  }
260
- var L = !1, $;
260
+ var be = !1, w;
261
261
  {
262
- var q = typeof WeakMap == "function" ? WeakMap : Map;
263
- $ = new q();
262
+ var M = typeof WeakMap == "function" ? WeakMap : Map;
263
+ w = new M();
264
264
  }
265
- function he(n, d) {
266
- if (!n || L)
265
+ function F(n, d) {
266
+ if (!n || be)
267
267
  return "";
268
268
  {
269
- var y = $.get(n);
270
- if (y !== void 0)
271
- return y;
269
+ var _ = w.get(n);
270
+ if (_ !== void 0)
271
+ return _;
272
272
  }
273
- var N;
274
- L = !0;
275
- var U = Error.prepareStackTrace;
273
+ var j;
274
+ be = !0;
275
+ var V = Error.prepareStackTrace;
276
276
  Error.prepareStackTrace = void 0;
277
- var H;
278
- H = pe.current, pe.current = null, ue();
277
+ var W;
278
+ W = ye.current, ye.current = null, de();
279
279
  try {
280
280
  if (d) {
281
- var R = function() {
281
+ var O = function() {
282
282
  throw Error();
283
283
  };
284
- if (Object.defineProperty(R.prototype, "props", {
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(R, []);
291
- } catch (xe) {
292
- N = xe;
290
+ Reflect.construct(O, []);
291
+ } catch (we) {
292
+ j = we;
293
293
  }
294
- Reflect.construct(n, [], R);
294
+ Reflect.construct(n, [], O);
295
295
  } else {
296
296
  try {
297
- R.call();
298
- } catch (xe) {
299
- N = xe;
297
+ O.call();
298
+ } catch (we) {
299
+ j = we;
300
300
  }
301
- n.call(R.prototype);
301
+ n.call(O.prototype);
302
302
  }
303
303
  } else {
304
304
  try {
305
305
  throw Error();
306
- } catch (xe) {
307
- N = xe;
306
+ } catch (we) {
307
+ j = we;
308
308
  }
309
309
  n();
310
310
  }
311
- } catch (xe) {
312
- if (xe && N && typeof xe.stack == "string") {
313
- for (var T = xe.stack.split(`
314
- `), me = N.stack.split(`
315
- `), Q = T.length - 1, re = me.length - 1; Q >= 1 && re >= 0 && T[Q] !== me[re]; )
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 (; Q >= 1 && re >= 0; Q--, re--)
318
- if (T[Q] !== me[re]) {
319
- if (Q !== 1 || re !== 1)
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 (Q--, re--, re < 0 || T[Q] !== me[re]) {
322
- var ve = `
323
- ` + T[Q].replace(" at new ", " at ");
324
- return typeof n == "function" && $.set(n, ve), ve;
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 (Q >= 1 && re >= 0);
326
+ while (X >= 1 && re >= 0);
327
327
  break;
328
328
  }
329
329
  }
330
330
  } finally {
331
- L = !1, pe.current = H, ye(), Error.prepareStackTrace = U;
331
+ be = !1, ye.current = W, _e(), Error.prepareStackTrace = V;
332
332
  }
333
- var Ne = n ? n.displayName || n.name : "", lt = Ne ? w(Ne) : "";
334
- return typeof n == "function" && $.set(n, lt), lt;
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 Ce(n, d, y) {
337
- return he(n, !1);
336
+ function Y(n, d, _) {
337
+ return F(n, !1);
338
338
  }
339
- function be(n) {
339
+ function ue(n) {
340
340
  var d = n.prototype;
341
341
  return !!(d && d.isReactComponent);
342
342
  }
343
- function x(n, d, y) {
343
+ function v(n, d, _) {
344
344
  if (n == null)
345
345
  return "";
346
346
  if (typeof n == "function")
347
- return he(n, be(n));
347
+ return F(n, ue(n));
348
348
  if (typeof n == "string")
349
- return w(n);
349
+ return pe(n);
350
350
  switch (n) {
351
351
  case l:
352
- return w("Suspense");
353
- case _:
354
- return w("SuspenseList");
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 Ce(n.render);
359
+ return Y(n.render);
360
360
  case g:
361
- return x(n.type, d, y);
362
- case I:
363
- return Ce(n._render);
364
- case b: {
365
- var N = n, U = N._payload, H = N._init;
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 x(H(U), d, y);
367
+ return v(W(V), d, _);
368
368
  } catch {
369
369
  }
370
370
  }
371
371
  }
372
372
  return "";
373
373
  }
374
- var X = {}, te = G.ReactDebugCurrentFrame;
375
- function we(n) {
374
+ var K = {}, te = $.ReactDebugCurrentFrame;
375
+ function Ce(n) {
376
376
  if (n) {
377
- var d = n._owner, y = x(n.type, n._source, d ? d.type : null);
378
- te.setExtraStackFrame(y);
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, y, N, U) {
382
+ function ke(n, d, _, j, V) {
383
383
  {
384
- var H = Function.call.bind(Object.prototype.hasOwnProperty);
385
- for (var R in n)
386
- if (H(n, R)) {
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[R] != "function") {
390
- var me = Error((N || "React class") + ": " + y + " type `" + R + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[R] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
391
- throw me.name = "Invariant Violation", me;
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[R](d, R, N, y, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
394
- } catch (Q) {
395
- T = Q;
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) && (we(U), P("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", N || "React class", y, R, typeof T), we(null)), T instanceof Error && !(T.message in X) && (X[T.message] = !0, we(U), P("Failed %s type: %s", y, T.message), we(null));
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 = G.ReactCurrentOwner, Me = Object.prototype.hasOwnProperty, Tt = {
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 At(n) {
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 Dt(n) {
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 Ot(n, d) {
423
+ function Rt(n, d) {
424
424
  typeof n.ref == "string" && Ee.current;
425
425
  }
426
- function Rt(n, d) {
426
+ function Bt(n, d) {
427
427
  {
428
- var y = function() {
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
- y.isReactWarning = !0, Object.defineProperty(n, "key", {
432
- get: y,
431
+ _.isReactWarning = !0, Object.defineProperty(n, "key", {
432
+ get: _,
433
433
  configurable: !0
434
434
  });
435
435
  }
436
436
  }
437
- function Bt(n, d) {
437
+ function Mt(n, d) {
438
438
  {
439
- var y = function() {
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
- y.isReactWarning = !0, Object.defineProperty(n, "ref", {
443
- get: y,
442
+ _.isReactWarning = !0, Object.defineProperty(n, "ref", {
443
+ get: _,
444
444
  configurable: !0
445
445
  });
446
446
  }
447
447
  }
448
- var Mt = function(n, d, y, N, U, H, R) {
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: y,
456
- props: R,
455
+ ref: _,
456
+ props: O,
457
457
  // Record the component responsible for creating this element.
458
- _owner: H
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: N
469
+ value: j
470
470
  }), Object.defineProperty(T, "_source", {
471
471
  configurable: !1,
472
472
  enumerable: !1,
473
473
  writable: !1,
474
- value: U
474
+ value: V
475
475
  }), Object.freeze && (Object.freeze(T.props), Object.freeze(T)), T;
476
476
  };
477
- function $t(n, d, y, N, U) {
477
+ function $t(n, d, _, j, V) {
478
478
  {
479
- var H, R = {}, T = null, me = null;
480
- y !== void 0 && (T = "" + y), Dt(d) && (T = "" + d.key), At(d) && (me = d.ref, Ot(d, U));
481
- for (H in d)
482
- Me.call(d, H) && !Tt.hasOwnProperty(H) && (R[H] = d[H]);
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 Q = n.defaultProps;
485
- for (H in Q)
486
- R[H] === void 0 && (R[H] = Q[H]);
484
+ var X = n.defaultProps;
485
+ for (W in X)
486
+ O[W] === void 0 && (O[W] = X[W]);
487
487
  }
488
- if (T || me) {
488
+ if (T || he) {
489
489
  var re = typeof n == "function" ? n.displayName || n.name || "Unknown" : n;
490
- T && Rt(R, re), me && Bt(R, re);
490
+ T && Bt(O, re), he && Mt(O, re);
491
491
  }
492
- return Mt(n, T, me, U, N, Ee.current, R);
492
+ return Ft(n, T, he, V, j, Ee.current, O);
493
493
  }
494
494
  }
495
- var $e = G.ReactCurrentOwner, rt = G.ReactDebugCurrentFrame;
496
- function je(n) {
495
+ var Fe = $.ReactCurrentOwner, rt = $.ReactDebugCurrentFrame;
496
+ function Ne(n) {
497
497
  if (n) {
498
- var d = n._owner, y = x(n.type, n._source, d ? d.type : null);
499
- rt.setExtraStackFrame(y);
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 Fe;
504
- Fe = !1;
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 ($e.current) {
511
- var n = K($e.current.type);
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 Ft(n) {
520
+ function Wt(n) {
521
521
  return "";
522
522
  }
523
523
  var at = {};
524
- function Wt(n) {
524
+ function Ht(n) {
525
525
  {
526
526
  var d = nt();
527
527
  if (!d) {
528
- var y = typeof n == "string" ? n : n.displayName || n.name;
529
- y && (d = `
528
+ var _ = typeof n == "string" ? n : n.displayName || n.name;
529
+ _ && (d = `
530
530
 
531
- Check the top-level render call using <` + y + ">.");
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 y = Wt(d);
542
- if (at[y])
541
+ var _ = Ht(d);
542
+ if (at[_])
543
543
  return;
544
- at[y] = !0;
545
- var N = "";
546
- n && n._owner && n._owner !== $e.current && (N = " It was passed a child from " + K(n._owner.type) + "."), je(n), P('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', y, N), je(null);
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 y = 0; y < n.length; y++) {
555
- var N = n[y];
556
- We(N) && st(N, d);
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 U = J(n);
562
- if (typeof U == "function" && U !== n.entries)
563
- for (var H = U.call(n), R; !(R = H.next()).done; )
564
- We(R.value) && st(R.value, d);
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 Ht(n) {
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 y;
573
+ var _;
574
574
  if (typeof d == "function")
575
- y = d.propTypes;
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
- y = d.propTypes;
579
+ _ = d.propTypes;
580
580
  else
581
581
  return;
582
- if (y) {
583
- var N = K(d);
584
- ke(y, n.props, "prop", N, n);
585
- } else if (d.PropTypes !== void 0 && !Fe) {
586
- Fe = !0;
587
- var U = K(d);
588
- P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", U || "Unknown");
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 Vt(n) {
593
+ function qt(n) {
594
594
  {
595
- for (var d = Object.keys(n.props), y = 0; y < d.length; y++) {
596
- var N = d[y];
597
- if (N !== "children" && N !== "key") {
598
- je(n), P("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", N), je(null);
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 && (je(n), P("Invalid attribute `ref` supplied to `React.Fragment`."), je(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, y, N, U, H) {
605
+ function it(n, d, _, j, V, W) {
606
606
  {
607
- var R = ee(n);
608
- if (!R) {
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 me = Ft();
612
- me ? T += me : T += nt();
613
- var Q;
614
- n === null ? Q = "null" : Array.isArray(n) ? Q = "array" : n !== void 0 && n.$$typeof === s ? (Q = "<" + (K(n.type) || "Unknown") + " />", T = " Did you accidentally export a JSX literal instead of a component?") : Q = typeof n, P("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Q, T);
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, y, U, H);
616
+ var re = $t(n, d, _, V, W);
617
617
  if (re == null)
618
618
  return re;
619
- if (R) {
620
- var ve = d.children;
621
- if (ve !== void 0)
622
- if (N)
623
- if (Array.isArray(ve)) {
624
- for (var Ne = 0; Ne < ve.length; Ne++)
625
- ot(ve[Ne], n);
626
- Object.freeze && Object.freeze(ve);
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(ve, n);
630
+ ot(xe, n);
631
631
  }
632
- return n === e.Fragment ? Vt(re) : Ht(re), re;
632
+ return n === e.Fragment ? qt(re) : Vt(re), re;
633
633
  }
634
634
  }
635
- function Gt(n, d, y) {
636
- return it(n, d, y, !0);
635
+ function Gt(n, d, _) {
636
+ return it(n, d, _, !0);
637
637
  }
638
- function Ut(n, d, y) {
639
- return it(n, d, y, !1);
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" ? Ze.exports = zt() : Ze.exports = Jt();
647
- var t = Ze.exports;
648
- const Xt = {
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
- }, Qt = "partner-sdk", er = "1.0", tr = 5e3, rr = 20, nr = 512, ar = 5, ht = 500, mt = "od_sdk_aid";
652
- function sr() {
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 or() {
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 ir(e) {
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 lr(e) {
686
- return ir(e) >= nr - 50;
685
+ function cr(e) {
686
+ return lr(e) >= ar - 50;
687
687
  }
688
- async function cr(e, r) {
689
- let a = ar;
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 dr {
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 = Xt[r], this.anonymousId = sr(), this.timer = setInterval(() => this.flush(), tr), typeof document < "u" && document.addEventListener("visibilitychange", this.onVisibilityChange), typeof window < "u" && window.addEventListener("beforeunload", this.onBeforeUnload);
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 = [], cr(this.endpoint, {
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": Qt,
734
- "X-Journey-Client-Version": er
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: or(),
747
+ websiteSource: ir(),
748
748
  anonymousId: this.anonymousId,
749
749
  ...r
750
750
  };
751
- this.buffer.push(JSON.stringify(a)), (this.buffer.length >= rr || lr(this.buffer)) && this.flush();
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 = qe(null), St = qe(ze), Oo = ({
763
+ }, Je = Ke(null), St = Ke(ze), Mo = ({
764
764
  client: e,
765
765
  children: r
766
766
  }) => {
767
- const [a, s] = E(ze);
767
+ const [a, s] = L(ze);
768
768
  return ie(() => {
769
- const o = new dr(e.environment);
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
- }, It = () => {
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 Et(e, r = {}) {
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 m = new IntersectionObserver(
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(), m.disconnect();
795
+ }), r.immediate && s.current.flush(), p.disconnect();
796
796
  }
797
797
  },
798
798
  { threshold: 0.5 }
799
799
  );
800
- return m.observe(f), () => m.disconnect();
800
+ return p.observe(f), () => p.disconnect();
801
801
  }, [e, r.immediate]), o;
802
802
  }
803
- const Ge = {
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
- }, ur = {
848
+ }, hr = {
849
849
  /** Default theme — pill-shaped inputs, bold borders, Opendoor blue */
850
- default: Ge,
850
+ default: qe,
851
851
  /** Minimal theme — subtle borders, square corners, lighter shadows */
852
852
  minimal: {
853
- ...Ge,
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
- ...Ge,
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 hr(e) {
885
- const r = ur[(e == null ? void 0 : e.theme) ?? "default"];
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 Ro = [
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 = hr(e), a = {};
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 mr = "_attribution_11y4r_7", fr = "_text_11y4r_16", ft = {
916
- attribution: mr,
917
- text: fr
918
- }, pr = () => /* @__PURE__ */ t.jsx(
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 gr() {
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(pr, {})
940
+ /* @__PURE__ */ t.jsx(gr, {})
941
941
  ] });
942
942
  }
943
- const _r = "_container_tu90h_8", yr = "_inputSection_tu90h_16", br = "_inputWrapper_tu90h_22", vr = "_input_tu90h_16", xr = "_inputIcon_tu90h_63", Cr = "_button_tu90h_80", wr = "_spinner_tu90h_121", kr = "_suggestions_tu90h_136", jr = "_errorState_tu90h_150", Nr = "_suggestion_tu90h_136", Sr = "_error_tu90h_150", Ir = "_errorIcon_tu90h_199", Er = "_errorBorder_tu90h_213", Pr = "_manualLink_tu90h_223", Lr = "_manualForm_tu90h_245", Tr = "_manualFormField_tu90h_260", Ar = "_manualFormLabel_tu90h_264", Dr = "_manualFormInput_tu90h_273", Or = "_formRow_tu90h_294", Rr = "_submitButton_tu90h_302", B = {
944
- container: _r,
945
- inputSection: yr,
946
- inputWrapper: br,
947
- input: vr,
948
- inputIcon: xr,
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: wr,
951
- suggestions: kr,
952
- errorState: jr,
953
- suggestion: Nr,
950
+ spinner: kr,
951
+ suggestions: jr,
952
+ errorState: Nr,
953
+ suggestion: Ir,
954
954
  error: Sr,
955
- errorIcon: Ir,
956
- errorBorder: Er,
957
- manualLink: Pr,
958
- manualForm: Lr,
959
- manualFormField: Tr,
960
- manualFormLabel: Ar,
961
- manualFormInput: Dr,
962
- formRow: Or,
963
- submitButton: Rr
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
- ), Br = () => /* @__PURE__ */ t.jsxs(
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 Bo({
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: m = !0,
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: b,
1024
- onValidationError: I,
1025
- onAddressSuggestionsStart: D,
1026
- onAddressSuggestionsComplete: O,
1027
- onError: A
1023
+ onChange: x,
1024
+ onValidationError: E,
1025
+ onAddressSuggestionsStart: S,
1026
+ onAddressSuggestionsComplete: B,
1027
+ onError: D
1028
1028
  }) {
1029
- const S = It(), j = Xe(), se = Ae(_), [V, J] = E(""), [G, P] = E([]), [ce, z] = E(!1), [ee, Y] = E(!1), [oe, K] = E(null), [F, de] = E(!1), [v, k] = E(!1), [C, le] = E({
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
- }), W = Z(null), ae = Et("partner-sdk-address-input", {
1035
+ }), H = Z(null), ee = Pt("partner-sdk-address-input", {
1036
1036
  immediate: !0
1037
- }), M = Z(A);
1038
- M.current = A;
1039
- const ue = Z(D);
1040
- ue.current = D;
1041
- const ye = Z(O);
1042
- ye.current = O;
1043
- const pe = Z(null), _e = ce && !ee && V.trim().length >= 3 && G.length === 0 && !v;
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 || V.trim().length < 3 || F) {
1048
- V.trim().length === 0 && (P([]), z(!1), K(null));
1047
+ if (!r || q.trim().length < 3 || J) {
1048
+ q.trim().length === 0 && (P([]), z(!1), U(null));
1049
1049
  return;
1050
1050
  }
1051
- Y(!0), K(null);
1052
- const x = setTimeout(async () => {
1053
- var X, te, we;
1054
- (X = ue.current) == null || X.call(ue, V);
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 S.getAddressSuggestions(V);
1057
- P(ke.addresses), z(!0), (te = ye.current) == null || te.call(ye, ke.addresses);
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
- K(Ee.message), P([]), z(!0), (we = M.current) == null || we.call(M, Ee);
1060
+ U(Ee.message), P([]), z(!0), (Ce = A.current) == null || Ce.call(A, Ee);
1061
1061
  } finally {
1062
- Y(!1);
1062
+ G(!1);
1063
1063
  }
1064
1064
  }, a);
1065
- return () => clearTimeout(x);
1066
- }, [V, F, r, a, S]), ie(() => {
1067
- const x = (X) => {
1068
- pe.current && !pe.current.contains(X.target) && W.current && !W.current.contains(X.target) && z(!1);
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", x), () => document.removeEventListener("mousedown", x);
1070
+ return document.addEventListener("mousedown", v), () => document.removeEventListener("mousedown", v);
1071
1071
  }, []);
1072
- const w = (x) => {
1073
- const X = x.target.value;
1074
- J(X), de(!1), b == null || b({ street1: X });
1075
- }, L = async (x) => {
1076
- de(!0), J(gt(x)), P([]), z(!1), K(null), b == null || b(x), j.trackSell({
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: x.street1,
1079
- city: x.city,
1080
- state: x.state,
1081
- postalCode: x.postalCode,
1082
- unit: x.street2,
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(x);
1088
- } catch (X) {
1089
- const te = X instanceof Error ? X : new Error("Failed to process address");
1090
- K(te.message), A == null || A(te), J(""), de(!1);
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
- j.trackPlatform({
1092
+ }, w = () => {
1093
+ I.trackPlatform({
1094
1094
  inputFocusEvent: { targetName: "partner-sdk-address-input" }
1095
- }), G.length > 0 && V.length > 0 && z(!0);
1096
- }, q = () => {
1097
- j.trackPlatform({
1095
+ }), $.length > 0 && q.length > 0 && z(!0);
1096
+ }, M = () => {
1097
+ I.trackPlatform({
1098
1098
  linkClickEvent: { targetName: "partner-sdk-manual-entry" }
1099
- }), k(!0), z(!1);
1100
- }, he = (x, X) => {
1101
- const te = { ...C, [x]: X };
1102
- le(te), b == null || b({
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
- }, Ce = async () => {
1110
- if (!C.street1 || !C.city || !C.state || !C.postalCode) {
1111
- const x = "Please fill in all required fields";
1112
- K(x), I == null || I(x);
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
- Y(!0), K(null);
1115
+ G(!0), U(null);
1116
1116
  try {
1117
- const x = {
1118
- street1: C.street1,
1119
- ...C.street2 ? { street2: C.street2 } : {},
1120
- city: C.city,
1121
- state: C.state,
1122
- postalCode: C.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
- j.trackSell({
1124
+ I.trackSell({
1125
1125
  addressEntryV2: {
1126
- street1: x.street1,
1127
- city: x.city,
1128
- state: x.state,
1129
- postalCode: x.postalCode,
1130
- unit: x.street2,
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(x);
1134
- } catch (x) {
1135
- const X = x instanceof Error ? x : new Error("Failed to submit address");
1136
- K(X.message), A == null || A(X);
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
- Y(!1);
1138
+ G(!1);
1139
1139
  }
1140
- }, be = !!oe;
1141
- return /* @__PURE__ */ t.jsxs("div", { ref: ae, className: B.container, style: se, children: [
1142
- v ? /* @__PURE__ */ t.jsxs("div", { className: B.manualForm, children: [
1143
- /* @__PURE__ */ t.jsxs("div", { className: B.manualFormField, children: [
1144
- /* @__PURE__ */ t.jsx("label", { className: B.manualFormLabel, htmlFor: "ae-street1", children: "Street Address *" }),
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: B.manualFormInput,
1151
- value: C.street1,
1152
- onChange: (x) => he("street1", x.target.value),
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: B.manualFormField, children: [
1159
- /* @__PURE__ */ t.jsx("label", { className: B.manualFormLabel, htmlFor: "ae-street2", children: "Unit / Apt (optional)" }),
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: B.manualFormInput,
1166
- value: C.street2,
1167
- onChange: (x) => he("street2", x.target.value),
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: B.manualFormField, children: [
1174
- /* @__PURE__ */ t.jsx("label", { className: B.manualFormLabel, htmlFor: "ae-city", children: "City *" }),
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: B.manualFormInput,
1181
- value: C.city,
1182
- onChange: (x) => he("city", x.target.value),
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: B.formRow, children: [
1189
- /* @__PURE__ */ t.jsxs("div", { className: B.manualFormField, children: [
1190
- /* @__PURE__ */ t.jsx("label", { className: B.manualFormLabel, htmlFor: "ae-state", children: "State *" }),
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: B.manualFormInput,
1197
- value: C.state,
1198
- onChange: (x) => he("state", x.target.value),
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: B.manualFormField, children: [
1206
- /* @__PURE__ */ t.jsx("label", { className: B.manualFormLabel, htmlFor: "ae-postalCode", children: "ZIP Code *" }),
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: B.manualFormInput,
1213
- value: C.postalCode,
1214
- onChange: (x) => he("postalCode", x.target.value),
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
- oe && /* @__PURE__ */ t.jsx("div", { className: B.error, children: oe }),
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: B.submitButton,
1228
- onClick: Ce,
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: B.inputSection, children: [
1236
+ ] }) : /* @__PURE__ */ t.jsxs("div", { className: R.inputSection, children: [
1237
1237
  /* @__PURE__ */ t.jsxs(
1238
1238
  "div",
1239
1239
  {
1240
- className: `${B.inputWrapper} ${be ? B.errorBorder : ""}`,
1240
+ className: `${R.inputWrapper} ${ue ? R.errorBorder : ""}`,
1241
1241
  children: [
1242
1242
  /* @__PURE__ */ t.jsx(
1243
1243
  "input",
1244
1244
  {
1245
- ref: W,
1245
+ ref: H,
1246
1246
  type: "text",
1247
- value: V,
1248
- onChange: w,
1249
- onFocus: $,
1247
+ value: q,
1248
+ onChange: pe,
1249
+ onFocus: w,
1250
1250
  placeholder: i,
1251
- className: B.input,
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": ce
1256
+ "aria-expanded": se
1257
1257
  }
1258
1258
  ),
1259
- c && /* @__PURE__ */ t.jsx("div", { className: B.inputIcon, children: c }),
1260
- m && /* @__PURE__ */ t.jsx(
1259
+ c && /* @__PURE__ */ t.jsx("div", { className: R.inputIcon, children: c }),
1260
+ p && /* @__PURE__ */ t.jsx(
1261
1261
  "button",
1262
1262
  {
1263
- className: B.button,
1263
+ className: R.button,
1264
1264
  type: "button",
1265
1265
  disabled: o,
1266
1266
  "aria-label": f,
1267
- children: ee ? /* @__PURE__ */ t.jsxs(t.Fragment, { 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: B.spinner,
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
- (ce || be) && /* @__PURE__ */ t.jsx(
1311
+ (se || ue) && /* @__PURE__ */ t.jsx(
1312
1312
  "div",
1313
1313
  {
1314
- ref: pe,
1315
- className: `${B.suggestions} ${be ? B.errorState : ""}`,
1314
+ ref: ye,
1315
+ className: `${R.suggestions} ${ue ? R.errorState : ""}`,
1316
1316
  id: "address-suggestions",
1317
- role: be && !ce ? "alert" : "listbox",
1318
- "aria-live": be && !ce ? "polite" : void 0,
1319
- children: be ? /* @__PURE__ */ t.jsxs("div", { className: B.error, children: [
1320
- /* @__PURE__ */ t.jsx("div", { className: B.errorIcon, children: /* @__PURE__ */ t.jsx(Br, {}) }),
1321
- /* @__PURE__ */ t.jsx("div", { children: oe })
1322
- ] }) : G.length > 0 ? G.map((x, X) => /* @__PURE__ */ t.jsx(
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: B.suggestion,
1326
- onClick: () => L(x),
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(), L(x));
1331
+ (te.key === "Enter" || te.key === " ") && (te.preventDefault(), be(v));
1332
1332
  },
1333
- children: gt(x)
1333
+ children: gt(v)
1334
1334
  },
1335
- `${x.street1}-${x.city}-${x.postalCode}-${X}`
1336
- )) : _e && /* @__PURE__ */ t.jsx(
1335
+ `${v.street1}-${v.city}-${v.postalCode}-${K}`
1336
+ )) : ve && /* @__PURE__ */ t.jsx(
1337
1337
  "button",
1338
1338
  {
1339
1339
  type: "button",
1340
- className: B.manualLink,
1341
- onClick: q,
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(gr, {})
1348
+ s && /* @__PURE__ */ t.jsx(_r, {})
1349
1349
  ] });
1350
1350
  }
1351
- const Mr = "_container_rg8mk_3", $r = "_title_rg8mk_7", Fr = "_addressCard_rg8mk_16", Wr = "_addressText_rg8mk_26", Hr = "_editLink_rg8mk_34", Vr = "_fieldGroup_rg8mk_47", Gr = "_fieldLabel_rg8mk_51", Ur = "_input_rg8mk_60", Yr = "_checkboxRow_rg8mk_84", Zr = "_checkbox_rg8mk_84", Kr = "_checkboxLabel_rg8mk_101", qr = "_error_rg8mk_108", zr = "_actions_rg8mk_115", Jr = "_confirmButton_rg8mk_120", fe = {
1352
- container: Mr,
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: Fr,
1355
- addressText: Wr,
1356
- editLink: Hr,
1357
- fieldGroup: Vr,
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: qr,
1364
- actions: zr,
1365
- confirmButton: Jr
1363
+ error: zr,
1364
+ actions: Jr,
1365
+ confirmButton: Xr
1366
1366
  };
1367
- function Xr(e) {
1367
+ function Qr(e) {
1368
1368
  return `${e.street1 + (e.street2 ? ` ${e.street2}` : "")}, ${e.city}, ${e.state} ${e.postalCode}`;
1369
1369
  }
1370
- function Mo({
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), m = Et("partner-sdk-unit-input"), [h, c] = E(""), [l, _] = E(!1), [g, b] = E(null), I = () => {
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
- b("Please enter a unit number or select 'No unit number'");
1378
+ x("Please enter a unit number or select 'No unit number'");
1379
1379
  return;
1380
1380
  }
1381
- b(null), o.trackPlatform({
1381
+ x(null), o.trackPlatform({
1382
1382
  buttonClickEvent: { targetName: "partner-sdk-confirm-unit" }
1383
1383
  }), a(l ? { ...e } : { ...e, street2: h.trim() });
1384
- }, D = () => {
1384
+ }, S = () => {
1385
1385
  o.trackPlatform({
1386
1386
  checkboxClickEvent: {
1387
1387
  targetName: "partner-sdk-no-unit",
1388
1388
  optionName: String(!l)
1389
1389
  }
1390
- }), _(!l), l || (c(""), b(null));
1391
- }, O = (S) => {
1392
- c(S.target.value), g && b(null);
1393
- }, A = () => {
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: m, style: f, className: fe.container, children: [
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: Xr(e) }),
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: O,
1415
- onFocus: A,
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: D
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: I,
1438
+ onClick: E,
1439
1439
  children: "Confirm address"
1440
1440
  }
1441
1441
  ) })
1442
1442
  ] });
1443
1443
  }
1444
- const Qr = "https://api.mapbox.com/geocoding/v5/mapbox.places", en = "https://api.mapbox.com/styles/v1/mapbox/light-v11/static", tn = "pk.eyJ1Ijoib3BlbmRvb3IiLCJhIjoiWXJ2bTJiRSJ9.lsnjT9yTNyyVzKRIzqxnqg", rn = "https://images.opendoor.com/source/s3/imgdrop-production/2026-02-1771546296495-06570.png?service=partner-sdk", nn = 640, an = 320, sn = 14;
1445
- function on(e, r, a) {
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 ln(e, r) {
1449
- const a = (r == null ? void 0 : r.mapboxAccessToken) ?? tn, s = (r == null ? void 0 : r.mapPinMarker) ?? rn, o = (r == null ? void 0 : r.width) ?? nn, i = (r == null ? void 0 : r.height) ?? an, f = (r == null ? void 0 : r.zoom) ?? sn, [m, h] = E(void 0), [c, l] = E("loading");
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 b() {
1460
- var I, D;
1459
+ async function x() {
1460
+ var E, S;
1461
1461
  try {
1462
- const O = `${Qr}/${encodeURIComponent(_)}.json?access_token=${a}&limit=1`, A = await fetch(O);
1463
- if (!A.ok || g) {
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 j = (D = (I = (await A.json()).features) == null ? void 0 : I[0]) == null ? void 0 : D.center;
1468
- if (!j || g) {
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 [se, V] = j, J = on(s, se, V), G = `${en}/${J}/${se},${V},${f}/${o}x${i}@2x?access_token=${a}&attribution=false&logo=false`;
1473
- g || h(G);
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 b(), () => {
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: m, status: c };
1491
+ ]), { url: p, status: c };
1492
1492
  }
1493
- const cn = "_container_1vap7_3", dn = "_mapImage_1vap7_13", un = "_mapImageLoaded_1vap7_22", Ue = {
1494
- container: cn,
1495
- mapImage: dn,
1496
- mapImageLoaded: un
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 $o({
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: m,
1506
+ borderRadius: p,
1507
1507
  onLoad: h,
1508
1508
  onError: c
1509
1509
  }) {
1510
- const l = Ae(r), { url: _, status: g } = ln(e, {
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
- }), [b, I] = E(!1), D = Z(h);
1517
- D.current = h;
1518
- const O = Z(c);
1519
- O.current = c, ie(() => {
1520
- var j;
1521
- g === "error" && ((j = O.current) == null || j.call(O, new Error("Failed to load map for address")));
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 A = () => {
1524
- var j;
1525
- I(!0), (j = D.current) == null || j.call(D);
1526
- }, S = {
1523
+ const D = () => {
1524
+ var I;
1525
+ E(!0), (I = S.current) == null || I.call(S);
1526
+ }, N = {
1527
1527
  ...l,
1528
- ...m ? { borderRadius: m } : {}
1528
+ ...p ? { borderRadius: p } : {}
1529
1529
  };
1530
- return /* @__PURE__ */ t.jsx("div", { className: Ue.container, style: S, children: _ && /* @__PURE__ */ t.jsx(
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: `${Ue.mapImage} ${b ? Ue.mapImageLoaded : ""}`.trim(),
1536
- onLoad: A
1535
+ className: `${Ge.mapImage} ${x ? Ge.mapImageLoaded : ""}`.trim(),
1536
+ onLoad: D
1537
1537
  }
1538
1538
  ) });
1539
1539
  }
1540
- function hn(e) {
1540
+ function mn(e) {
1541
1541
  return "field" in e;
1542
1542
  }
1543
- function mn(e) {
1543
+ function fn(e) {
1544
1544
  return "and" in e;
1545
1545
  }
1546
- function fn(e) {
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 (hn(e)) {
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 Ke(e, r) {
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 pn(e, r) {
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 = Ke(e, r);
1603
+ const a = {}, s = Ze(e, r);
1604
1604
  for (const o of s) {
1605
- const i = r(o.key), f = pn(o, i);
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 gn {
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 ? Ke(r, this.getAnswer) : [];
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 Ke(f, this.getAnswer))
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, m] of Object.entries(this._answers))
1809
- !a.has(f) || s.has(f) ? i[f] = m : o = !0;
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 _n = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
1832
- function Pt(e) {
1833
- if (typeof e == "string" && !_n.test(e))
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 yn(e) {
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 bn = {
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
- }, vn = {
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
- }, xn = {
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
- ], wn = {
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
- }, kn = {
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: kn[s],
2149
+ label: jn[s],
2150
2150
  value: s,
2151
- description: wn[e][s],
2151
+ description: kn[e][s],
2152
2152
  imageId: `${e}-${s}`
2153
2153
  }))
2154
2154
  }
2155
2155
  ]
2156
2156
  };
2157
2157
  }
2158
- const jn = Be("kitchen", "home.kitchen_seller_score", "How would you describe your kitchen?"), Nn = Be("bathroom", "home.bathroom_seller_score", "How would you describe your main bathroom?"), Sn = Be("living-room", "home.living_room_seller_score", "How would you describe your living room?"), In = Be("exterior", "home.exterior_seller_score", "How would you describe your home's exterior?"), En = {
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
- }, Pn = {
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
- }, Ln = {
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
- }, Tn = {
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
- }, An = {
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
- }, Dn = {
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
- }, On = {
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
- }, Rn = {
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
- }, Bn = {
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: Pt
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
- }, Mn = {
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: Pt
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: yn
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
- jn,
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 gn($n, e);
2432
+ return new _n($n, e);
2433
2433
  }
2434
- const Lt = qe(null);
2434
+ const Tt = Ke(null);
2435
2435
  function ge() {
2436
- const e = Re(Lt);
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 Fn = ({
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: m,
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 le;
2459
- const b = Z(m);
2460
- b.current = m;
2461
- const I = Z(h);
2462
- I.current = h;
2463
- const D = Z(c);
2464
- D.current = c;
2465
- const O = Z(l);
2466
- O.current = l;
2467
- const A = Z(_);
2468
- A.current = _;
2469
- const [S, j] = E(
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
- ), se = (r ?? []).join("|"), V = Z(se);
2471
+ ), le = (r ?? []).join("|"), q = Z(le);
2472
2472
  ie(() => {
2473
- se !== V.current && (V.current = se, j(bt({ initialAnswers: e, skipPages: r })));
2474
- }, [se]);
2475
- const [J, G] = E(
2476
- S.answers
2477
- ), [P, ce] = E(
2478
- ((le = S.currentPage) == null ? void 0 : le.id) ?? ""
2479
- ), [z, ee] = E({}), [Y, oe] = E(
2480
- S.visiblePages
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 ae;
2484
- const W = [
2485
- S.on("answerChange", (M) => {
2486
- var ue;
2487
- G(S.answers), oe([...S.visiblePages]), M.type === "answerChange" && ((ue = D.current) == null || ue.call(D, M.key, M.value));
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
- S.on("pageChange", (M) => {
2490
- var ue;
2491
- M.type === "pageChange" && (ce(M.pageId), oe([...S.visiblePages]), ee({}), (ue = I.current) == null || ue.call(I, M.pageIndex, M.pageId));
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
- S.on("validationError", (M) => {
2494
- M.type === "validationError" && ee(M.errors);
2493
+ N.on("validationError", (A) => {
2494
+ A.type === "validationError" && oe(A.errors);
2495
2495
  }),
2496
- S.on("submit", (M) => {
2497
- M.type === "submit" && b.current(M.answers);
2496
+ N.on("submit", (A) => {
2497
+ A.type === "submit" && x.current(A.answers);
2498
2498
  })
2499
2499
  ];
2500
- return (ae = O.current) == null || ae.call(O), () => {
2501
- W.forEach((M) => M()), S.destroy();
2500
+ return (ee = B.current) == null || ee.call(B), () => {
2501
+ H.forEach((A) => A()), N.destroy();
2502
2502
  };
2503
- }, [S]);
2504
- const K = Z(e);
2503
+ }, [N]);
2504
+ const U = Z(e);
2505
2505
  ie(() => {
2506
- e && e !== K.current && (K.current = e, S.setAnswers(e));
2507
- }, [e, S]);
2508
- const F = Pe(() => {
2509
- const W = Y.findIndex((ae) => ae.id === P);
2510
- return W >= 0 ? W : 0;
2511
- }, [Y, P]), de = Y[F], v = Pe(() => P ? S.getVisibleQuestionsForCurrentPage() : [], [S, P, J]), k = Pe(() => Y.length <= 1 ? 0 : Math.min(
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, F / (Y.length - 1))
2514
- ), [F, Y.length]), C = Pe(
2513
+ Math.max(0, J / (G.length - 1))
2514
+ ), [J, G.length]), k = Pe(
2515
2515
  () => ({
2516
- engine: S,
2517
- currentPage: de,
2518
- currentPageIndex: F,
2519
- visiblePages: Y,
2520
- visibleQuestions: v,
2521
- answers: J,
2516
+ engine: N,
2517
+ currentPage: me,
2518
+ currentPageIndex: J,
2519
+ visiblePages: G,
2520
+ visibleQuestions: b,
2521
+ answers: ae,
2522
2522
  validationErrors: z,
2523
- progress: k,
2524
- isFirstPage: F === 0,
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: Y.length > 0 && F === Y.length - 1,
2530
- setAnswer: (W, ae) => S.setAnswer(W, ae),
2531
- getAnswer: S.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 ae;
2534
- const W = S.goToNext();
2535
- if (!W.valid)
2533
+ var ee;
2534
+ const H = N.goToNext();
2535
+ if (!H.valid)
2536
2536
  try {
2537
- (ae = A.current) == null || ae.call(
2538
- A,
2537
+ (ee = D.current) == null || ee.call(
2538
+ D,
2539
2539
  new Error(
2540
- `Validation failed: ${Object.values(W.errors).join(", ")}`
2540
+ `Validation failed: ${Object.values(H.errors).join(", ")}`
2541
2541
  )
2542
2542
  );
2543
- } catch (M) {
2544
- console.error("[DtcOnboardingFlow] onError callback threw:", M);
2543
+ } catch (A) {
2544
+ console.error("[DtcOnboardingFlow] onError callback threw:", A);
2545
2545
  }
2546
2546
  },
2547
- goToPrev: () => S.goToPrev(),
2547
+ goToPrev: () => N.goToPrev(),
2548
2548
  smsConsentText: a
2549
2549
  }),
2550
2550
  [
2551
- S,
2552
- de,
2553
- F,
2554
- Y,
2555
- v,
2551
+ N,
2552
+ me,
2556
2553
  J,
2554
+ G,
2555
+ b,
2556
+ ae,
2557
2557
  z,
2558
- k,
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(Lt.Provider, { value: C, children: g });
2567
- }, Wn = "_header_1o9p2_5", Hn = "_headerLogos_1o9p2_15", Vn = "_partnerLogo_1o9p2_21", Gn = "_opendoorLogo_1o9p2_27", Un = "_closeButton_1o9p2_31", Le = {
2568
- header: Wn,
2569
- headerLogos: Hn,
2570
- partnerLogo: Vn,
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
- ), Ie = ({
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", qn = "_layoutScrollable_150ym_27", zn = "_addressBar_150ym_43", Jn = "_addressIcon_150ym_51", Xn = "_addressText_150ym_55", Qn = "_contentSplit_150ym_61", ea = "_contentLeft_150ym_75", ta = "_contentRight_150ym_81", ra = "_pageTitle_150ym_97", na = "_pageSubtitle_150ym_105", aa = "_pageContent_150ym_114", sa = "_navigation_150ym_122", oa = "_navigationButtons_150ym_136", ia = "_backButton_150ym_142", la = "_nextButton_150ym_165", ca = "_progressBar_150ym_191", da = "_progressBarFill_150ym_198", ua = "_radioCardGroup_150ym_206", ha = "_radioCard_150ym_206", ma = "_radioCardSelected_150ym_238", fa = "_radioCardLabel_150ym_243", pa = "_radioCardDescription_150ym_249", ga = "_imageCardGroup_150ym_256", _a = "_imageCard_150ym_256", ya = "_imageCardSelected_150ym_288", ba = "_imageCardPhoto_150ym_293", va = "_imageCardLabel_150ym_300", xa = "_imageCardDescription_150ym_307", Ca = "_fieldGroup_150ym_316", wa = "_fieldLabel_150ym_322", ka = "_fieldDescription_150ym_329", ja = "_fieldSelect_150ym_336", Na = "_fieldSelectError_150ym_362", Sa = "_fieldInputWrapper_150ym_366", Ia = "_fieldInput_150ym_366", Ea = "_fieldInputError_150ym_404", Pa = "_fieldSuffix_150ym_408", La = "_fieldError_150ym_419", Ta = "_checkboxCardGroup_150ym_428", Aa = "_checkboxCard_150ym_428", Da = "_checkboxCardSelected_150ym_460", Oa = "_checkboxCardContent_150ym_465", Ra = "_checkboxCardLabel_150ym_472", Ba = "_checkboxCardHelper_150ym_478", Ma = "_checkboxIndicator_150ym_483", $a = "_checkboxIndicatorChecked_150ym_495", Fa = "_currencyWrapper_150ym_503", Wa = "_currencyPrefix_150ym_509", Ha = "_currencyInput_150ym_518", Va = "_consentText_150ym_538", Ga = "_consentLink_150ym_546", Ua = "_ctaButton_150ym_551", Ya = "_toggleGroup_150ym_583", Za = "_toggleLabel_150ym_587", Ka = "_toggleCheckbox_150ym_595", qa = "_toggleText_150ym_604", za = "_searchableDropdown_150ym_612", Ja = "_searchableDropdownToggle_150ym_622", Xa = "_searchableDropdownList_150ym_635", Qa = "_searchableDropdownOption_150ym_644", es = "_searchableDropdownOptionSelected_150ym_662", ts = "_searchableDropdownOptionHighlighted_150ym_667", rs = "_searchableDropdownEmpty_150ym_671", u = {
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: qn,
2637
- addressBar: zn,
2638
- addressIcon: Jn,
2639
- addressText: Xn,
2640
- contentSplit: Qn,
2641
- contentLeft: ea,
2642
- contentRight: ta,
2643
- pageTitle: ra,
2644
- pageSubtitle: na,
2645
- pageContent: aa,
2646
- navigation: sa,
2647
- navigationButtons: oa,
2648
- backButton: ia,
2649
- nextButton: la,
2650
- progressBar: ca,
2651
- progressBarFill: da,
2652
- radioCardGroup: ua,
2653
- radioCard: ha,
2654
- radioCardSelected: ma,
2655
- radioCardLabel: fa,
2656
- radioCardDescription: pa,
2657
- imageCardGroup: ga,
2658
- imageCard: _a,
2659
- imageCardSelected: ya,
2660
- imageCardPhoto: ba,
2661
- imageCardLabel: va,
2662
- imageCardDescription: xa,
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: wa,
2665
- fieldDescription: ka,
2666
- fieldSelect: ja,
2667
- fieldSelectError: Na,
2664
+ fieldLabel: ka,
2665
+ fieldDescription: ja,
2666
+ fieldSelect: Na,
2667
+ fieldSelectError: Ia,
2668
2668
  fieldInputWrapper: Sa,
2669
- fieldInput: Ia,
2670
- fieldInputError: Ea,
2671
- fieldSuffix: Pa,
2672
- fieldError: La,
2673
- checkboxCardGroup: Ta,
2674
- checkboxCard: Aa,
2675
- checkboxCardSelected: Da,
2676
- checkboxCardContent: Oa,
2677
- checkboxCardLabel: Ra,
2678
- checkboxCardHelper: Ba,
2679
- checkboxIndicator: Ma,
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: Fa,
2682
- currencyPrefix: Wa,
2683
- currencyInput: Ha,
2684
- consentText: Va,
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: qa,
2691
- searchableDropdown: za,
2692
- searchableDropdownToggle: Ja,
2693
- searchableDropdownList: Xa,
2694
- searchableDropdownOption: Qa,
2695
- searchableDropdownOptionSelected: es,
2696
- searchableDropdownOptionHighlighted: ts,
2697
- searchableDropdownEmpty: rs
2698
- }, ns = ({ progress: e }) => {
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
- }, as = () => {
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(ns, { progress: a }),
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
- }, ss = ({ question: e }) => {
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], m = Z(null);
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
- m.current && clearTimeout(m.current);
2754
+ p.current && clearTimeout(p.current);
2755
2755
  }, []);
2756
2756
  const h = Te(
2757
- (_) => {
2758
- a(e.key, _), e.autoAdvance && (m.current && clearTimeout(m.current), m.current = setTimeout(() => s(), 150));
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
- (_, g) => {
2763
- var D, O;
2764
- const b = e.options;
2765
- if (!b) return;
2766
- let I = null;
2767
- if (_.key === "ArrowDown" || _.key === "ArrowRight" ? (_.preventDefault(), I = (g + 1) % b.length) : (_.key === "ArrowUp" || _.key === "ArrowLeft") && (_.preventDefault(), I = (g - 1 + b.length) % b.length), I !== null) {
2768
- const A = (D = _.currentTarget.closest('[role="radiogroup"]')) == null ? void 0 : D.querySelectorAll('[role="radio"]');
2769
- (O = A == null ? void 0 : A[I]) == null || O.focus(), h(b[I].value);
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((_, g) => {
2782
- const b = i === _.value;
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": b,
2789
- tabIndex: b || g === 0 && !i ? 0 : -1,
2790
- className: `${u.radioCard} ${b ? u.radioCardSelected : ""}`,
2791
- onClick: () => h(_.value),
2792
- onKeyDown: (I) => c(I, g),
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: _.label }),
2795
- _.description && /* @__PURE__ */ t.jsx("span", { className: u.radioCardDescription, children: _.description })
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(_.value)
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
- }, os = "https://images.opendoor.com/source/s3/imgdrop-production", is = "service=reception-fe&dpr=2&fit=scale-down";
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 `${os}/${e}?${is}&preset=${r}`;
2807
+ return `${is}/${e}?${ls}&preset=${r}`;
2808
2808
  }
2809
- const ls = {
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
- }, cs = ({ question: e }) => {
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], m = Z(null);
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
- m.current && clearTimeout(m.current);
2838
+ p.current && clearTimeout(p.current);
2839
2839
  }, []);
2840
2840
  const h = Te(
2841
2841
  (l) => {
2842
- a(e.key, l), e.autoAdvance && (m.current && clearTimeout(m.current), m.current = setTimeout(() => s(), 300));
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 _ = i === l.value, g = l.imageId ? ls[l.imageId] : void 0;
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} ${_ ? u.imageCardSelected : ""}`,
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
- }, ds = ({
2884
+ }, us = ({
2885
2885
  question: e
2886
2886
  }) => {
2887
- var m;
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 = (_ = e.options) == null ? void 0 : _.find((g) => g.value === h);
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 b, I;
2898
- return !((I = (b = e.options) == null ? void 0 : b.find((D) => D.value === g)) != null && I.exclusive);
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((b) => b !== h);
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
- (m = e.options) == null ? void 0 : m.map((h) => {
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
- }, us = ({ question: e }) => {
2955
- var m;
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
- (m = e.options) == null ? void 0 : m.map((h) => /* @__PURE__ */ t.jsx("option", { value: String(h.value), children: h.label }, String(h.value)))
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
- }, hs = ({ question: e }) => {
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, ""), _ = l === "" ? void 0 : Number(l), g = _ !== void 0 && isNaN(_) ? void 0 : _;
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
- }, m = o != null ? String(o) : "";
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: m,
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
- }, ms = ({ question: e }) => {
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
- }, m = o != null ? String(o) : "";
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: m,
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 fs(e) {
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 ps = ({ question: e }) => {
3037
- const { getAnswer: r, setAnswer: a, validationErrors: s } = ge(), o = r(e.key) ?? "", i = s[e.key], f = (m) => {
3038
- const c = m.target.value.replace(/\D/g, "").slice(0, 10);
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: fs(o),
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
- }, gs = ({ question: e }) => {
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, _s = 240, ys = 80;
3072
- function bs(e) {
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 vs = ({ question: e }) => {
3084
- var de;
3085
- const { getAnswer: r, setAnswer: a, validationErrors: s } = ge(), o = r(e.key), i = s[e.key], f = `${e.key}-combobox`, [m, h] = E(""), [c, l] = E(!1), [_, g] = E([]), [b, I] = E(!1), D = Z(null), O = Z(null), A = Z(null), [S, j] = E(null), [se, V] = E({}), J = Re(Je);
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 v = !1;
3088
- return e.dataSource === "homebuilders" && J ? (I(!0), J.getHomebuilders().then((k) => {
3089
- v || g(
3090
- k.homebuilders.map((C) => ({
3091
- label: C.displayName,
3092
- value: C.identifier
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
- v || (e.options ? g(
3097
- e.options.map((k) => ({
3098
- label: k.label,
3099
- value: String(k.value)
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
- v || I(!1);
3103
+ b || E(!1);
3104
3104
  })) : e.options ? g(
3105
- e.options.map((k) => ({
3106
- label: k.label,
3107
- value: String(k.value)
3105
+ e.options.map((C) => ({
3106
+ label: C.label,
3107
+ value: String(C.value)
3108
3108
  }))
3109
3109
  ) : g([]), () => {
3110
- v = !0;
3110
+ b = !0;
3111
3111
  };
3112
- }, [e.dataSource, e.options, J]);
3113
- const G = Te(() => {
3114
- const v = O.current;
3115
- if (!v) return;
3116
- const k = v.getBoundingClientRect(), C = window.visualViewport, le = (C == null ? void 0 : C.height) ?? window.innerHeight, W = (C == null ? void 0 : C.width) ?? window.innerWidth, ae = (C == null ? void 0 : C.offsetTop) ?? 0, M = (C == null ? void 0 : C.offsetLeft) ?? 0, ye = ae + le - k.bottom - vt - De, pe = Math.max(
3117
- ys,
3118
- Math.min(_s, ye)
3119
- ), _e = Math.min(k.width, W - De * 2), w = M + De, L = M + W - _e - De, $ = Math.max(w, Math.min(k.left, L));
3120
- j({
3121
- top: k.bottom + window.scrollY + vt,
3122
- left: $ + window.scrollX,
3123
- width: _e,
3124
- maxHeight: pe
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
- j(null);
3129
+ I(null);
3130
3130
  return;
3131
3131
  }
3132
- O.current && V(bs(O.current)), G();
3133
- const v = () => G();
3134
- window.addEventListener("scroll", v, !0), window.addEventListener("resize", v);
3135
- const k = window.visualViewport;
3136
- k == null || k.addEventListener("resize", v), k == null || k.addEventListener("scroll", v);
3137
- const C = window.setTimeout(v, 300);
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", v, !0), window.removeEventListener("resize", v), k == null || k.removeEventListener("resize", v), k == null || k.removeEventListener("scroll", v), window.clearTimeout(C);
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, G]), ie(() => {
3142
- const v = (k) => {
3143
- var le, W;
3144
- const C = k.target;
3145
- (le = D.current) != null && le.contains(C) || (W = A.current) != null && W.contains(C) || l(!1);
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", v), () => document.removeEventListener("mousedown", v);
3147
+ return document.addEventListener("mousedown", b), () => document.removeEventListener("mousedown", b);
3148
3148
  }, []);
3149
- const P = m ? _.filter(
3150
- (v) => v.label.toLowerCase().includes(m.toLowerCase())
3151
- ) : _, ce = (de = _.find((v) => v.value === o)) == null ? void 0 : de.label, [z, ee] = E(-1), Y = `${e.key}-listbox`, oe = Te(
3152
- (v) => {
3153
- a(e.key, v), l(!1), h(""), ee(-1);
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
- ), K = (v) => {
3156
+ ), U = (b) => {
3157
3157
  if (!c) {
3158
- (v.key === "ArrowDown" || v.key === "Enter") && (v.preventDefault(), l(!0));
3158
+ (b.key === "ArrowDown" || b.key === "Enter") && (b.preventDefault(), l(!0));
3159
3159
  return;
3160
3160
  }
3161
- switch (v.key) {
3161
+ switch (b.key) {
3162
3162
  case "ArrowDown":
3163
- v.preventDefault(), P.length > 0 && ee(
3164
- (k) => k < P.length - 1 ? k + 1 : 0
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
- v.preventDefault(), P.length > 0 && ee(
3169
- (k) => k > 0 ? k - 1 : P.length - 1
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
- v.preventDefault(), z >= 0 && z < P.length && oe(P[z].value);
3173
+ b.preventDefault(), z >= 0 && z < P.length && Q(P[z].value);
3174
3174
  break;
3175
3175
  case "Escape":
3176
- v.preventDefault(), l(!1), ee(-1);
3176
+ b.preventDefault(), l(!1), oe(-1);
3177
3177
  break;
3178
3178
  }
3179
- }, F = c && S && typeof document < "u" ? qt(
3179
+ }, J = c && N && typeof document < "u" ? zt(
3180
3180
  /* @__PURE__ */ t.jsx(
3181
3181
  "div",
3182
3182
  {
3183
- ref: A,
3183
+ ref: D,
3184
3184
  className: u.searchableDropdownList,
3185
3185
  role: "listbox",
3186
- id: Y,
3186
+ id: G,
3187
3187
  style: {
3188
3188
  position: "absolute",
3189
- top: S.top,
3190
- left: S.left,
3189
+ top: N.top,
3190
+ left: N.left,
3191
3191
  right: "auto",
3192
- width: S.width,
3193
- maxHeight: S.maxHeight,
3194
- ...se
3192
+ width: N.width,
3193
+ maxHeight: N.maxHeight,
3194
+ ...le
3195
3195
  },
3196
- children: b ? /* @__PURE__ */ t.jsx("div", { className: u.searchableDropdownEmpty, children: "Loading..." }) : P.length === 0 ? /* @__PURE__ */ t.jsx("div", { className: u.searchableDropdownEmpty, children: "No results found" }) : P.map((v, k) => /* @__PURE__ */ t.jsx(
3196
+ 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: `${Y}-option-${k}`,
3199
+ id: `${G}-option-${C}`,
3200
3200
  type: "button",
3201
3201
  role: "option",
3202
- "aria-selected": v.value === o,
3203
- className: `${u.searchableDropdownOption} ${v.value === o ? u.searchableDropdownOptionSelected : ""} ${k === z ? u.searchableDropdownOptionHighlighted : ""}`,
3204
- onMouseDown: (C) => C.preventDefault(),
3205
- onClick: () => oe(v.value),
3206
- children: v.label
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
- v.value
3208
+ b.value
3209
3209
  ))
3210
3210
  }
3211
3211
  ),
3212
3212
  document.body
3213
3213
  ) : null;
3214
- return /* @__PURE__ */ t.jsxs("div", { ref: D, className: u.fieldGroup, children: [
3215
- /* @__PURE__ */ t.jsxs("div", { ref: O, className: u.searchableDropdown, children: [
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 ? m : ce ?? "",
3223
- onChange: (v) => {
3224
- h(v.target.value), ee(-1), c || l(!0);
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: K,
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 ? Y : void 0,
3234
- "aria-activedescendant": c && z >= 0 ? `${Y}-option-${z}` : void 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
- F
3259
+ J
3260
3260
  ] });
3261
3261
  };
3262
- function xs(e) {
3262
+ function ws(e) {
3263
3263
  switch (e.style) {
3264
3264
  case "radio-card":
3265
- return /* @__PURE__ */ t.jsx(ss, { question: e }, e.key);
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 "dropdown":
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(vs, { question: e }, e.key);
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, _, g;
3298
- (_ = (l = f.current) == null ? void 0 : l.scrollTo) == null || _.call(l, { top: 0, behavior: "smooth" }), (g = f.current) == null || g.focus();
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 m = e.id === "contact-info", h = (m ? o : void 0) ?? e.submitLabel ?? "Next", c = m && i !== void 0 ? i : e.title;
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(xs),
3311
- m && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
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
- }, ws = ({ address: e }) => {
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, m = [
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: m })
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(as, {})
3386
+ /* @__PURE__ */ t.jsx(ss, {})
3387
3387
  ] });
3388
- }, Fo = ({
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: m,
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: b,
3403
- onError: I,
3404
- contactConsentText: D
3402
+ onReady: x,
3403
+ onError: E,
3404
+ contactConsentText: S
3405
3405
  }) => {
3406
- const O = Ae(s);
3407
- return /* @__PURE__ */ t.jsx("div", { className: u.container, style: O, children: /* @__PURE__ */ t.jsxs(
3408
- Fn,
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: D,
3414
- submitLabel: m,
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: b,
3421
- onError: I,
3419
+ onAnswerChange: y,
3420
+ onReady: x,
3421
+ onError: E,
3422
3422
  children: [
3423
- /* @__PURE__ */ t.jsx(Ie, { partnerLogoUrl: a, onClose: g }),
3424
- /* @__PURE__ */ t.jsx(ws, { address: e })
3423
+ /* @__PURE__ */ t.jsx(je, { partnerLogoUrl: a, onClose: g }),
3424
+ /* @__PURE__ */ t.jsx(ks, { address: e })
3425
3425
  ]
3426
3426
  }
3427
3427
  ) });
3428
- }, ks = "_container_ge49i_7", js = "_root_ge49i_16", Ns = "_card_ge49i_31", Ss = "_titleLarge_ge49i_49", Is = "_featuresList_ge49i_53", Es = "_stepLayout_ge49i_68", Ps = "_leftColumn_ge49i_60", Ls = "_introHeader_ge49i_81", Ts = "_schedule_ge49i_87", As = "_subtitleLeft_ge49i_137", Ds = "_feature_ge49i_53", Os = "_featureTitle_ge49i_156", Rs = "_featureDescription_ge49i_163", Bs = "_title_ge49i_49", Ms = "_subtitle_ge49i_137", $s = "_calendarHeader_ge49i_188", Fs = "_calendarMonthLabel_ge49i_195", Ws = "_calendarNavButton_ge49i_201", Hs = "_calendarGrid_ge49i_221", Vs = "_calendarDayHeader_ge49i_227", Gs = "_calendarDayAvailable_ge49i_236", Us = "_calendarDayDisabled_ge49i_237", Ys = "_calendarDaySelected_ge49i_238", Zs = "_timesHeader_ge49i_269", Ks = "_timeRow_ge49i_276", qs = "_timeButton_ge49i_283", zs = "_timeButtonSelected_ge49i_284", Js = "_field_ge49i_307", Xs = "_fieldLabel_ge49i_313", Qs = "_input_ge49i_319", eo = "_fieldset_ge49i_340", to = "_radioRow_ge49i_349", ro = "_radioOption_ge49i_354", no = "_faqBelowActions_ge49i_375", ao = "_faq_ge49i_375", so = "_faqHeader_ge49i_386", oo = "_faqItem_ge49i_394", io = "_faqQuestion_ge49i_403", lo = "_faqAnswer_ge49i_419", co = "_faqChevron_ge49i_426", uo = "_errorText_ge49i_436", ho = "_actionsRow_ge49i_442", mo = "_linkButton_ge49i_450", fo = "_primaryButton_ge49i_467", po = "_successCheckCircle_ge49i_501", go = "_summaryCard_ge49i_513", _o = "_summaryRow_ge49i_523", yo = "_summaryIcon_ge49i_531", p = {
3429
- container: ks,
3430
- root: js,
3431
- card: Ns,
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: Is,
3434
- stepLayout: Es,
3435
- leftColumn: Ps,
3436
- introHeader: Ls,
3437
- schedule: Ts,
3438
- subtitleLeft: As,
3439
- feature: Ds,
3440
- featureTitle: Os,
3441
- featureDescription: Rs,
3442
- title: Bs,
3443
- subtitle: Ms,
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: Fs,
3446
- calendarNavButton: Ws,
3447
- calendarGrid: Hs,
3448
- calendarDayHeader: Vs,
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: qs,
3455
- timeButtonSelected: zs,
3456
- field: Js,
3457
- fieldLabel: Xs,
3458
- input: Qs,
3459
- fieldset: eo,
3460
- radioRow: to,
3461
- radioOption: ro,
3462
- faqBelowActions: no,
3463
- faq: ao,
3464
- faqHeader: so,
3465
- faqItem: oo,
3466
- faqQuestion: io,
3467
- faqAnswer: lo,
3468
- faqChevron: co,
3469
- errorText: uo,
3470
- actionsRow: ho,
3471
- linkButton: mo,
3472
- primaryButton: fo,
3473
- successCheckCircle: po,
3474
- summaryCard: go,
3475
- summaryRow: _o,
3476
- summaryIcon: yo
3477
- }, bo = {
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 Wo({
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: m,
3493
+ onScheduled: p,
3493
3494
  onDone: h,
3494
3495
  onReady: c,
3495
- onError: l
3496
+ onError: l,
3497
+ supportPhone: y
3496
3498
  }) {
3497
- const _ = It(), g = Ae(o), [b, I] = E(bo), [D, O] = E("select"), [A, S] = E(null), [j, se] = E(null), [V, J] = E(null), [G, P] = E(r ?? ""), [ce, z] = E(Ye(a ?? "")), [ee, Y] = E(null), [oe, K] = E(""), [F, de] = E(!1), [v, k] = E(null), C = Z(r);
3498
- C.current = r;
3499
- const le = Z(a);
3500
- le.current = a, ie(() => {
3501
- if (C.current && le.current)
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 L = await _.getCustomerContact({
3508
+ const M = await g.getCustomerContact({
3507
3509
  opendoorOfferRequestId: e
3508
3510
  });
3509
3511
  if (w) return;
3510
- P(
3511
- ($) => !C.current && !$ && L.fullName ? L.fullName : $
3512
- ), z(
3513
- ($) => !le.current && !$ && L.phoneNumber ? Ye(L.phoneNumber) : $
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
- }, [_, e]), ie(() => {
3522
+ }, [g, e]), ie(() => {
3521
3523
  let w = !1;
3522
3524
  return (async () => {
3523
3525
  try {
3524
- const L = await _.getAssessmentSlots({ offerId: e });
3526
+ const M = await g.getAssessmentSlots({ offerId: e });
3525
3527
  if (w) return;
3526
- if (I({
3528
+ if (B({
3527
3529
  loading: !1,
3528
3530
  error: null,
3529
- availableSlots: L.availableSlots,
3530
- isSlotBased: L.isSlotBased,
3531
- timezone: L.timezone
3532
- }), L.availableSlots.length > 0)
3533
- J(
3534
- xo(
3535
- xt(L.availableSlots[0], L.timezone)
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 $ = /* @__PURE__ */ new Date();
3540
- J({ year: $.getFullYear(), month: $.getMonth() });
3541
+ const F = /* @__PURE__ */ new Date();
3542
+ P({ year: F.getFullYear(), month: F.getMonth() });
3541
3543
  }
3542
3544
  c == null || c();
3543
- } catch (L) {
3544
- const $ = L instanceof Error ? L : new Error(String(L));
3545
+ } catch (M) {
3546
+ const F = M instanceof Error ? M : new Error(String(M));
3545
3547
  if (w) return;
3546
- I((he) => ({ ...he, loading: !1, error: $ }));
3547
- const q = /* @__PURE__ */ new Date();
3548
- J({ year: q.getFullYear(), month: q.getMonth() }), l == null || l($);
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
- }, [_, e]);
3554
- const W = Pe(() => {
3555
+ }, [g, e]);
3556
+ const A = Pe(() => {
3555
3557
  const w = /* @__PURE__ */ new Map();
3556
- for (const L of b.availableSlots) {
3557
- const $ = xt(L, b.timezone), q = w.get($) ?? [];
3558
- q.push(L), w.set($, q);
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
- }, [b.availableSlots, b.timezone]);
3562
- if (b.loading || !V)
3563
- return /* @__PURE__ */ t.jsxs("div", { className: p.container, style: g, children: [
3564
- /* @__PURE__ */ t.jsx(Ie, { partnerLogoUrl: i, onClose: f }),
3565
- /* @__PURE__ */ t.jsx("div", { className: p.root, "data-testid": "schedule-assessment-loading", children: /* @__PURE__ */ t.jsx("div", { className: p.card, children: /* @__PURE__ */ t.jsx("p", { className: p.subtitle, children: "Loading available times…" }) }) })
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 (b.error)
3568
- return /* @__PURE__ */ t.jsxs("div", { className: p.container, style: g, children: [
3569
- /* @__PURE__ */ t.jsx(Ie, { partnerLogoUrl: i, onClose: f }),
3570
- /* @__PURE__ */ t.jsx("div", { className: p.root, "data-testid": "schedule-assessment-error", children: /* @__PURE__ */ t.jsx("div", { className: p.card, children: /* @__PURE__ */ t.jsx("p", { className: p.subtitle, children: "We couldn't load available times. Please try again in a few minutes." }) }) })
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 = j ? new Date(j) : null;
3574
- return /* @__PURE__ */ t.jsxs("div", { className: p.container, style: g, children: [
3575
- /* @__PURE__ */ t.jsx(Ie, { partnerLogoUrl: i, onClose: f }),
3576
- /* @__PURE__ */ t.jsx("div", { className: p.root, "data-testid": "schedule-assessment-success", children: /* @__PURE__ */ t.jsxs("div", { className: p.card, children: [
3577
- /* @__PURE__ */ t.jsx("div", { className: p.successCheckCircle, "aria-hidden": "true", children: /* @__PURE__ */ t.jsx("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ t.jsx(
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: p.title, children: G ? `${vo(G)}, your assessment is scheduled!` : "Your assessment is scheduled!" }),
3588
- /* @__PURE__ */ t.jsx("p", { className: p.subtitle, children: "A calendar invite has been sent to your email address." }),
3589
- /* @__PURE__ */ t.jsxs("div", { className: p.summaryCard, children: [
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: p.summaryRow, children: [
3592
- /* @__PURE__ */ t.jsx(No, {}),
3593
- /* @__PURE__ */ t.jsx("span", { children: Ct(w, b.timezone) })
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: p.summaryRow, children: [
3596
- /* @__PURE__ */ t.jsx(So, {}),
3597
- /* @__PURE__ */ t.jsx("span", { children: wt(w, b.timezone) })
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: p.summaryRow, children: [
3601
- /* @__PURE__ */ t.jsx(Io, {}),
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: p.primaryButton,
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 = ce.replace(/\D/g, ""), L = !F && G.trim().length > 0 && w.length >= 10 && ee !== null && (!ee || oe.trim().length > 0), $ = async () => {
3619
- if (!(!L || !j)) {
3620
- de(!0), k(null);
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 q = ee ? `Customer: ${G.trim()}. Access instructions: ${oe.trim()}` : `Customer: ${G.trim()}. No gate code or entry restrictions.`, he = await _.scheduleAssessment({
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: j,
3625
- reminderPhone: ce.replace(/\D/g, ""),
3626
- notes: q
3639
+ selectedInspectionTime: q,
3640
+ reminderPhone: oe.replace(/\D/g, ""),
3641
+ notes: Y
3627
3642
  });
3628
- O("success");
3643
+ N("success");
3629
3644
  try {
3630
- await (m == null ? void 0 : m(he.visitId));
3631
- } catch (Ce) {
3632
- const be = Ce instanceof Error ? Ce : new Error(String(Ce));
3633
- l == null || l(be);
3645
+ 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 (q) {
3636
- const he = q instanceof Error ? q : new Error(String(q));
3637
- k(he.message), l == null || l(he);
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
- de(!1);
3654
+ C(!1);
3640
3655
  }
3641
3656
  }
3642
3657
  };
3643
- return /* @__PURE__ */ t.jsxs("div", { className: p.container, style: g, children: [
3644
- /* @__PURE__ */ t.jsx(Ie, { partnerLogoUrl: i, onClose: f }),
3645
- /* @__PURE__ */ t.jsx("div", { className: p.root, "data-testid": "schedule-assessment-confirm", children: /* @__PURE__ */ t.jsxs("div", { className: p.card, children: [
3646
- /* @__PURE__ */ t.jsx("h2", { className: p.title, children: "Confirm your details" }),
3647
- /* @__PURE__ */ t.jsxs("label", { className: p.field, children: [
3648
- /* @__PURE__ */ t.jsx("span", { className: p.fieldLabel, children: "Customer name" }),
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: p.input,
3667
+ className: m.input,
3653
3668
  type: "text",
3654
- value: G,
3655
- onChange: (q) => P(q.target.value),
3656
- disabled: F
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: p.field, children: [
3661
- /* @__PURE__ */ t.jsx("span", { className: p.fieldLabel, children: "Phone number" }),
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: p.input,
3680
+ className: m.input,
3666
3681
  type: "tel",
3667
3682
  inputMode: "tel",
3668
3683
  autoComplete: "tel",
3669
3684
  placeholder: "(555) 555-5555",
3670
- value: ce,
3671
- onChange: (q) => z(Ye(q.target.value)),
3672
- disabled: F
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: p.fieldset, children: [
3677
- /* @__PURE__ */ t.jsx("legend", { className: p.fieldLabel, children: "Are there gate codes or entry restrictions?" }),
3678
- /* @__PURE__ */ t.jsxs("div", { className: p.radioRow, children: [
3679
- /* @__PURE__ */ t.jsxs("label", { className: p.radioOption, children: [
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: ee === !0,
3686
- onChange: () => Y(!0),
3687
- disabled: F
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: p.radioOption, children: [
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: ee === !1,
3699
- onChange: () => Y(!1),
3700
- disabled: F
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
- ee && /* @__PURE__ */ t.jsxs("label", { className: p.field, children: [
3708
- /* @__PURE__ */ t.jsx("span", { className: p.fieldLabel, children: "Please provide access instructions for your home." }),
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: p.input,
3727
+ className: m.input,
3713
3728
  type: "text",
3714
3729
  placeholder: "Gate code, directions, etc.",
3715
- value: oe,
3716
- onChange: (q) => K(q.target.value),
3717
- disabled: F
3730
+ value: J,
3731
+ onChange: (Y) => me(Y.target.value),
3732
+ disabled: b
3718
3733
  }
3719
3734
  )
3720
3735
  ] }),
3721
- v && /* @__PURE__ */ t.jsx("p", { className: p.errorText, children: v }),
3722
- /* @__PURE__ */ t.jsxs("div", { className: p.actionsRow, children: [
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: p.linkButton,
3728
- onClick: () => O("select"),
3729
- disabled: F,
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: p.primaryButton,
3738
- onClick: () => void $(),
3739
- disabled: !L,
3740
- children: F ? "Scheduling…" : "Schedule"
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: p.faqBelowActions, children: /* @__PURE__ */ t.jsx(To, { items: Po }) })
3759
+ /* @__PURE__ */ t.jsx("div", { className: m.faqBelowActions, children: /* @__PURE__ */ t.jsx(Oo, { items: Ao }) })
3745
3760
  ] }) })
3746
3761
  ] });
3747
3762
  }
3748
- const ae = Co(V), M = wo(V), ue = ko(V, W), ye = jo(V, W), pe = A ? W.get(A) ?? [] : [], _e = pe[0] ? Ct(new Date(pe[0]), b.timezone) : null;
3749
- return /* @__PURE__ */ t.jsxs("div", { className: p.container, style: g, children: [
3750
- /* @__PURE__ */ t.jsx(Ie, { partnerLogoUrl: i, onClose: f }),
3751
- /* @__PURE__ */ t.jsx("div", { className: p.root, "data-testid": "schedule-assessment-flow", children: /* @__PURE__ */ t.jsx("div", { className: p.card, children: /* @__PURE__ */ t.jsxs("div", { className: p.stepLayout, children: [
3752
- /* @__PURE__ */ t.jsxs("div", { className: p.leftColumn, children: [
3753
- /* @__PURE__ */ t.jsxs("div", { className: p.introHeader, children: [
3754
- /* @__PURE__ */ t.jsx("h2", { className: p.titleLarge, children: "Schedule your assessment" }),
3755
- /* @__PURE__ */ t.jsx("p", { className: p.subtitleLeft, children: "Pick a time that works for you." })
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: p.featuresList, children: Eo.map((w) => /* @__PURE__ */ t.jsxs("div", { className: p.feature, children: [
3758
- /* @__PURE__ */ t.jsx("p", { className: p.featureTitle, children: w.title }),
3759
- /* @__PURE__ */ t.jsx("p", { className: p.featureDescription, children: w.description })
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: p.schedule, children: [
3763
- /* @__PURE__ */ t.jsxs("div", { className: p.calendarHeader, children: [
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: p.calendarNavButton,
3769
- onClick: () => J(kt(V, -1)),
3770
- disabled: !ue,
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: p.calendarMonthLabel, children: M }),
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: p.calendarNavButton,
3781
- onClick: () => J(kt(V, 1)),
3782
- disabled: !ye,
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: p.calendarGrid, children: [
3789
- ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"].map((w) => /* @__PURE__ */ t.jsx("div", { className: p.calendarDayHeader, children: w }, w)),
3790
- ae.map((w, L) => {
3791
- const $ = w ? W.has(w.key) : !1, q = !!w && w.key === A;
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: q ? p.calendarDaySelected : $ ? p.calendarDayAvailable : p.calendarDayDisabled,
3811
+ className: Y ? m.calendarDaySelected : F ? m.calendarDayAvailable : m.calendarDayDisabled,
3797
3812
  onClick: () => {
3798
- w && $ && (S(w.key), se(null));
3813
+ w && F && (le(w.key), ae(null));
3799
3814
  },
3800
- disabled: !$,
3801
- "aria-pressed": !!q,
3815
+ disabled: !F,
3816
+ "aria-pressed": !!Y,
3802
3817
  children: w ? w.day : ""
3803
3818
  },
3804
- w ? w.key : `empty-${M}-${L}`
3819
+ w ? w.key : `empty-${_e}-${M}`
3805
3820
  );
3806
3821
  })
3807
3822
  ] }),
3808
- _e && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
3809
- /* @__PURE__ */ t.jsxs("p", { className: p.timesHeader, children: [
3823
+ be && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
3824
+ /* @__PURE__ */ t.jsxs("p", { className: m.timesHeader, children: [
3810
3825
  "Available times for ",
3811
- _e
3826
+ be
3812
3827
  ] }),
3813
- /* @__PURE__ */ t.jsx("div", { className: p.timeRow, children: pe.map((w) => {
3814
- const L = w === j;
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: L ? p.timeButtonSelected : p.timeButton,
3820
- onClick: () => se(w),
3821
- children: wt(new Date(w), b.timezone)
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: p.primaryButton,
3832
- onClick: () => O("confirm"),
3833
- disabled: !j,
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 vo(e) {
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 Ye(e) {
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 xt(e, r) {
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 xo(e) {
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 wt(e, r) {
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 kt(e, r) {
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 Co({ year: e, month: r }) {
3882
- const a = new Date(Date.UTC(e, r, 1)).getUTCDay(), s = new Date(Date.UTC(e, r + 1, 0)).getUTCDate(), o = Math.ceil((a + s) / 7) * 7, i = [], f = String(e).padStart(4, "0"), m = String(r + 1).padStart(2, "0");
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}-${m}-${String(c).padStart(2, "0")}`,
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 wo({ year: e, month: r }) {
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 ko(e, r) {
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 jo(e, r) {
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: p.summaryIcon
3951
+ className: m.summaryIcon
3927
3952
  };
3928
3953
  }
3929
- function No() {
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 So() {
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 Io() {
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 Eo = [
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
- ], Po = [
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 Lo() {
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: p.faqChevron,
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 To({
4017
+ function Oo({
3993
4018
  items: e
3994
4019
  }) {
3995
- return /* @__PURE__ */ t.jsxs("div", { className: p.faq, children: [
3996
- /* @__PURE__ */ t.jsx("h3", { className: p.faqHeader, children: "Frequently asked questions" }),
3997
- e.map((r) => /* @__PURE__ */ t.jsxs("details", { className: p.faqItem, children: [
3998
- /* @__PURE__ */ t.jsxs("summary", { className: p.faqQuestion, children: [
4020
+ 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(Lo, {})
4025
+ /* @__PURE__ */ t.jsx(Do, {})
4001
4026
  ] }),
4002
- /* @__PURE__ */ t.jsx("p", { className: p.faqAnswer, children: r.body })
4027
+ /* @__PURE__ */ t.jsx("p", { className: m.faqAnswer, children: r.body })
4003
4028
  ] }, r.title))
4004
4029
  ] });
4005
4030
  }
4006
4031
  export {
4007
- Bo as AddressEntry,
4008
- $o as AddressMap,
4009
- Mo as AddressUnitConfirmation,
4010
- Ro as DTC_ONBOARDING_PAGE_IDS,
4011
- Fo as DtcOnboardingFlow,
4012
- Oo as OpendoorProvider,
4013
- Wo as ScheduleAssessmentFlow,
4014
- ur as THEMES,
4015
- hr as resolveAppearance,
4016
- It as useOpendoorClient
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
  };