@opendoor/partner-sdk-client-react 1.3.4-beta.118.1 → 1.3.4

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