@opendoor/partner-sdk-client-react 1.3.3-beta.112.1 → 1.3.3-beta.114.1

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