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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,57 +1,57 @@
1
- import { defineComponent as F, computed as w, provide as de, ref as I, watch as ee, onUnmounted as le, renderSlot as ce, inject as x, openBlock as c, createElementBlock as p, normalizeClass as e, createElementVNode as t, onMounted as ve, normalizeStyle as X, createCommentVNode as E, Fragment as j, toDisplayString as _, renderList as Q, withKeys as Se, withModifiers as De, createBlock as K, unref as B, withDirectives as Ee, vModelText as qe, resolveDynamicComponent as Pe, createTextVNode as be, Teleport as Ge, createVNode as ue, useSlots as Oe, withCtx as He } from "vue";
2
- import { NOOP_TRACKING as Ie, TrackingClient as je } from "@opendoor/partner-sdk-client-js-core/internal/tracking";
3
- import { resolveAppearance as Ve } from "@opendoor/partner-sdk-client-js-core";
4
- import { DTC_ONBOARDING_PAGE_IDS as ar, OpendoorClient as or, THEMES as lr, resolveAppearance as rr } from "@opendoor/partner-sdk-client-js-core";
1
+ import { defineComponent as x, computed as w, provide as de, ref as I, watch as ee, onUnmounted as ae, renderSlot as ce, inject as V, openBlock as c, createElementBlock as p, normalizeClass as e, createElementVNode as n, onMounted as ve, normalizeStyle as le, createCommentVNode as E, Fragment as N, toDisplayString as _, renderList as Y, withKeys as Ie, withModifiers as Se, createBlock as K, unref as P, withDirectives as qe, vModelText as Ee, resolveDynamicComponent as Be, createTextVNode as $e, Teleport as Ge, createVNode as oe, useSlots as He, withCtx as Oe } from "vue";
2
+ import { NOOP_TRACKING as Le, TrackingClient as Ve } from "@opendoor/partner-sdk-client-js-core/internal/tracking";
3
+ import { resolveAppearance as Ue } from "@opendoor/partner-sdk-client-js-core";
4
+ import { DTC_ONBOARDING_PAGE_IDS as lr, OpendoorClient as rr, THEMES as ir, resolveAppearance as ur } from "@opendoor/partner-sdk-client-js-core";
5
5
  import { createDtcOnboardingFlow as Me } from "@opendoor/partner-sdk-client-js-core/internal/questionnaire";
6
- const Ql = /* @__PURE__ */ F({
6
+ const Xl = /* @__PURE__ */ x({
7
7
  __name: "OpendoorProvider",
8
8
  props: {
9
9
  client: {}
10
10
  },
11
- setup(n) {
12
- const s = n, l = w(() => s.client);
13
- de("opendoor-client", l);
14
- const o = I(Ie);
15
- return de("opendoor-tracking", o), ee(
16
- () => s.client,
11
+ setup(t) {
12
+ const o = t, a = w(() => o.client);
13
+ de("opendoor-client", a);
14
+ const l = I(Le);
15
+ return de("opendoor-tracking", l), ee(
16
+ () => o.client,
17
17
  () => {
18
- o.value !== Ie && o.value.destroy();
19
- const u = new je(s.client.environment);
20
- o.value = u;
18
+ l.value !== Le && l.value.destroy();
19
+ const u = new Ve(o.client.environment);
20
+ l.value = u;
21
21
  },
22
22
  { immediate: !0 }
23
- ), le(() => {
24
- o.value !== Ie && o.value.destroy();
23
+ ), ae(() => {
24
+ l.value !== Le && l.value.destroy();
25
25
  }), (u, r) => ce(u.$slots, "default");
26
26
  }
27
27
  });
28
- function Be() {
29
- const n = x("opendoor-client");
30
- if (!n)
28
+ function Pe() {
29
+ const t = V("opendoor-client");
30
+ if (!t)
31
31
  throw new Error(
32
32
  "useOpendoorClient must be used within an <OpendoorProvider>"
33
33
  );
34
- return n;
34
+ return t;
35
35
  }
36
- function ye(n) {
37
- const s = Ve(n), l = {};
38
- for (const [o, u] of Object.entries(s)) {
39
- const r = o.replace(/([A-Z])/g, "-$1").toLowerCase();
40
- l[`--od-${r}`] = u;
36
+ function ye(t) {
37
+ const o = Ue(t), a = {};
38
+ for (const [l, u] of Object.entries(o)) {
39
+ const r = l.replace(/([A-Z])/g, "-$1").toLowerCase();
40
+ a[`--od-${r}`] = u;
41
41
  }
42
- return l;
42
+ return a;
43
43
  }
44
- const xe = /* @__PURE__ */ F({
44
+ const Ze = /* @__PURE__ */ x({
45
45
  __name: "PoweredByOpendoor",
46
- setup(n) {
47
- return (s, l) => (c(), p("div", {
48
- class: e(s.$style.attribution),
46
+ setup(t) {
47
+ return (o, a) => (c(), p("div", {
48
+ class: e(o.$style.attribution),
49
49
  "data-testid": "od-attribution"
50
50
  }, [
51
- t("span", {
52
- class: e(s.$style.text)
51
+ n("span", {
52
+ class: e(o.$style.text)
53
53
  }, "Powered by", 2),
54
- l[0] || (l[0] = t("svg", {
54
+ a[0] || (a[0] = n("svg", {
55
55
  width: "75",
56
56
  height: "16",
57
57
  viewBox: "0 0 112.574 24.0002",
@@ -60,24 +60,24 @@ const xe = /* @__PURE__ */ F({
60
60
  "aria-label": "Opendoor",
61
61
  role: "img"
62
62
  }, [
63
- t("path", {
63
+ n("path", {
64
64
  d: "M21.8975 5.53219C22.0296 5.51725 22.144 5.62372 22.1396 5.7568L22.0928 7.21773H22.2148C23.2408 6.33834 24.6088 5.53316 26.3184 5.53316C28.6383 5.53337 31.1045 7.07197 31.1045 11.542C31.1044 16.6229 28.1252 18.8456 24.0469 18.8457C23.5341 18.8457 22.7277 18.748 22.1904 18.6015C22.1904 18.6015 22.2148 19.2369 22.2148 20.0918V23.4072C22.2148 23.5083 22.1393 23.593 22.0391 23.6045L18.5527 23.999C18.4349 24.0122 18.332 23.9191 18.332 23.8007V6.11324C18.332 6.01204 18.4082 5.92743 18.5088 5.91597L21.8975 5.53219ZM8.35254 1.33101C12.5528 1.33111 16.5088 3.8474 16.5088 9.90523C16.5088 16.3784 12.0884 18.8457 8.15625 18.8457C3.95617 18.8455 0 16.1584 0 10.2959C9.43202e-05 3.87138 4.42045 1.33101 8.35254 1.33101ZM38.9141 5.53219C42.245 5.53219 44.3351 7.17875 44.4541 11.4853C44.4565 11.5689 44.3887 11.6395 44.3047 11.6396H36.5518C36.4679 11.6398 36.4004 11.7102 36.4023 11.7939C36.5116 15.6741 38.0191 16.7451 40.502 16.7451C41.7135 16.745 42.6903 16.4632 43.5078 16.1005C43.5679 16.0738 43.6377 16.0896 43.6807 16.1396L44.0059 16.5214C44.0548 16.579 44.0546 16.6649 44.0029 16.7197C43.1121 17.6594 41.298 18.8457 38.9141 18.8457C34.6647 18.8457 32.54 16.3051 32.54 12.1523C32.5401 7.90199 35.6904 5.53219 38.9141 5.53219ZM71.8682 0.000935719C72.0069 -0.0114562 72.1257 0.100879 72.1191 0.240194C72.0964 0.716622 72.0527 1.87639 72.0527 3.13863V18.2412C72.0527 18.3558 71.9689 18.4538 71.8555 18.4697L68.5049 18.8437C68.3628 18.8638 68.2375 18.75 68.2432 18.6064L68.292 17.2578H68.1943C67.1441 18.1614 65.7768 18.8456 64.0674 18.8457C61.6496 18.8457 59.2804 17.087 59.2803 12.6416C59.2803 7.56051 62.5533 5.53219 66.3633 5.53219C67.0224 5.5322 67.706 5.65511 68.2188 5.80172C68.2188 5.80172 68.1699 4.89765 68.1699 4.01851V0.598592C68.1699 0.495514 68.2491 0.40955 68.3516 0.40035L71.8682 0.000935719ZM80.29 5.53219C83.831 5.53235 86.9325 7.65789 86.9326 12.1035C86.9326 16.7934 83.66 18.8455 80.29 18.8457C76.7489 18.8457 73.6719 16.6956 73.6719 12.2255C73.672 7.53545 76.993 5.53219 80.29 5.53219ZM94.8555 5.53219C98.3966 5.53219 101.498 7.65772 101.498 12.1035C101.498 16.7936 98.2258 18.8457 94.8555 18.8457C91.3146 18.8456 88.2373 16.6956 88.2373 12.2255C88.2375 7.53549 91.5587 5.53222 94.8555 5.53219ZM49.54 5.52828C49.6571 5.51515 49.7585 5.60852 49.7549 5.72652L49.707 7.26656H49.8047C51.0989 6.33849 52.7115 5.53219 54.4941 5.53219C56.5697 5.53235 57.6932 6.6075 57.6934 8.80562V18.3593C57.6931 18.4662 57.6057 18.5527 57.499 18.5527H53.9795C53.8728 18.5527 53.7854 18.4662 53.7852 18.3593V9.75875C53.7852 8.26873 53.2482 7.80466 52.1006 7.80465C51.2456 7.80465 50.3663 7.9998 49.8291 8.12203V18.3593C49.8289 18.4661 49.7423 18.5526 49.6357 18.5527H46.1396C46.033 18.5527 45.9465 18.4662 45.9463 18.3593V6.11324C45.9463 6.01204 46.0226 5.92724 46.123 5.91597L49.54 5.52828ZM110.574 5.53219C111.746 5.53219 112.574 6.1674 112.574 7.36422C112.574 8.53675 111.722 9.29195 110.77 9.29195C109.721 9.29192 109.354 8.85463 108.89 8.09762C108.743 7.82894 108.596 7.78023 108.376 7.78023C107.937 7.78032 107.375 8.09738 107.033 8.415V18.3222C107.033 18.4491 106.93 18.5527 106.803 18.5527H103.38C103.253 18.5527 103.15 18.4491 103.15 18.3222V6.11324C103.15 6.01203 103.226 5.92743 103.326 5.91597L106.703 5.53707C106.842 5.52148 106.963 5.63273 106.959 5.77242L106.911 7.41305H107.009C107.766 6.60703 109.158 5.53219 110.574 5.53219ZM80.2158 6.48531C78.6774 6.48551 77.7744 7.60933 77.7744 11.8105C77.7744 16.818 78.5799 17.8924 80.3623 17.8925C81.8279 17.8925 82.8291 17.0378 82.8291 12.3476C82.8291 7.41346 81.8766 6.48531 80.2158 6.48531ZM94.7822 6.48531C93.2437 6.48537 92.3399 7.60905 92.3398 11.8105C92.3398 16.8181 93.1462 17.8924 94.9287 17.8925C96.3942 17.8925 97.3955 17.0378 97.3955 12.3476C97.3955 7.41346 96.443 6.48531 94.7822 6.48531ZM24.1934 7.65816C23.2165 7.65816 22.6057 7.95117 22.2148 8.09762V16.9892C22.6546 17.5022 23.3141 17.8691 24.1445 17.8691C26.0737 17.8691 27.0996 16.8424 27.0996 12.372C27.0996 8.8791 26.0493 7.65823 24.1934 7.65816ZM8.20605 2.35738C5.83698 2.35738 4.63965 4.01812 4.63965 9.78316C4.63965 15.4746 5.56842 17.8203 8.30371 17.8203C10.7211 17.8201 11.8691 16.1825 11.8691 10.4423C11.8691 4.72668 10.8919 2.35759 8.20605 2.35738ZM66.2656 6.50972C64.5074 6.50972 63.2861 7.80421 63.2861 11.8349C63.2861 15.67 64.2631 16.916 66.1191 16.916C67.1198 16.9159 67.7791 16.5256 68.1699 16.3789V7.53512C67.7548 7.02239 67.1689 6.50989 66.2656 6.50972ZM38.7188 6.4609C37.4732 6.46096 36.4961 7.63335 36.3984 10.7109L40.5752 10.4912C40.5752 7.53568 40.1842 6.4609 38.7188 6.4609Z",
65
65
  fill: "currentColor"
66
66
  })
67
67
  ], -1))
68
68
  ], 2));
69
69
  }
70
- }), Ue = "_attribution_18rgp_8", Ze = "_text_18rgp_17", ze = {
71
- attribution: Ue,
72
- text: Ze
73
- }, V = (n, s) => {
74
- const l = n.__vccOpts || n;
75
- for (const [o, u] of s)
76
- l[o] = u;
77
- return l;
78
- }, We = {
79
- $style: ze
80
- }, Ke = /* @__PURE__ */ V(xe, [["__cssModules", We]]), Qe = ["value", "placeholder", "disabled", "aria-controls", "aria-expanded"], Ye = ["disabled", "aria-label"], Xe = ["id", "role", "aria-live"], Je = ["onClick", "onKeydown"], et = ["for"], tt = ["id", "value", "disabled"], nt = ["for"], st = ["id", "value", "disabled"], at = ["for"], ot = ["id", "value", "disabled"], lt = ["for"], rt = ["id", "value", "disabled"], it = ["for"], ut = ["id", "value", "disabled"], ct = ["disabled"], dt = /* @__PURE__ */ F({
70
+ }), We = "_attribution_18rgp_8", ze = "_text_18rgp_17", Ke = {
71
+ attribution: We,
72
+ text: ze
73
+ }, G = (t, o) => {
74
+ const a = t.__vccOpts || t;
75
+ for (const [l, u] of o)
76
+ a[l] = u;
77
+ return a;
78
+ }, Qe = {
79
+ $style: Ke
80
+ }, Ye = /* @__PURE__ */ G(Ze, [["__cssModules", Qe]]), Xe = ["value", "placeholder", "disabled", "aria-controls", "aria-expanded"], Je = ["disabled", "aria-label"], et = ["id", "role", "aria-live"], tt = ["onClick", "onKeydown"], nt = ["for"], st = ["id", "value", "disabled"], ot = ["for"], at = ["id", "value", "disabled"], lt = ["for"], rt = ["id", "value", "disabled"], it = ["for"], ut = ["id", "value", "disabled"], ct = ["for"], dt = ["id", "value", "disabled"], vt = ["disabled"], yt = /* @__PURE__ */ x({
81
81
  __name: "AddressEntry",
82
82
  props: {
83
83
  enableAddressSuggestions: { type: Boolean, default: !0 },
@@ -91,230 +91,230 @@ const xe = /* @__PURE__ */ F({
91
91
  appearance: {}
92
92
  },
93
93
  emits: ["address-select", "ready", "change", "validation-error", "address-suggestions-start", "address-suggestions-complete", "error"],
94
- setup(n, { emit: s }) {
95
- let l = 0;
96
- const o = n, u = s, r = Be(), d = `ae-${++l}`, v = I(""), i = I([]), f = I(!1), h = I(!1), m = I(null), b = I(!1), L = I(!1), M = I(null), q = I(null), O = I(null), T = I({
94
+ setup(t, { emit: o }) {
95
+ let a = 0;
96
+ const l = t, u = o, r = Pe(), v = `ae-${++a}`, d = I(""), i = I([]), f = I(!1), m = I(!1), b = I(null), g = I(!1), L = I(!1), M = I(null), D = I(null), H = I(null), A = I({
97
97
  street1: "",
98
98
  street2: "",
99
99
  city: "",
100
100
  state: "",
101
101
  postalCode: ""
102
- }), R = w(() => ye(o.appearance)), Z = w(
103
- () => f.value && !h.value && v.value.trim().length >= 3 && i.value.length === 0 && !b.value
102
+ }), Z = w(() => ye(l.appearance)), j = w(
103
+ () => f.value && !m.value && d.value.trim().length >= 3 && i.value.length === 0 && !g.value
104
104
  );
105
- let N = null, D = 0;
106
- ee(v, ($) => {
105
+ let O = null, S = 0;
106
+ ee(d, ($) => {
107
107
  if (L.value) return;
108
- if (u("change", { street1: $ }), N && clearTimeout(N), !o.enableAddressSuggestions || $.trim().length < 3) {
109
- D += 1, i.value = [], f.value = !1, m.value = null, h.value = !1;
108
+ if (u("change", { street1: $ }), O && clearTimeout(O), !l.enableAddressSuggestions || $.trim().length < 3) {
109
+ S += 1, i.value = [], f.value = !1, b.value = null, m.value = !1;
110
110
  return;
111
111
  }
112
- h.value = !0, m.value = null;
113
- const y = $.trim(), k = ++D;
114
- N = setTimeout(async () => {
112
+ m.value = !0, b.value = null;
113
+ const y = $.trim(), C = ++S;
114
+ O = setTimeout(async () => {
115
115
  u("address-suggestions-start", y);
116
116
  try {
117
- const S = await r.value.getAddressSuggestions(y);
118
- if (k !== D) return;
119
- i.value = S.addresses, f.value = !0, u("address-suggestions-complete", S.addresses);
120
- } catch (S) {
121
- if (k !== D) return;
122
- const A = S instanceof Error ? S : new Error("Failed to fetch address suggestions");
123
- m.value = A.message, i.value = [], f.value = !0, u("error", A);
117
+ const q = await r.value.getAddressSuggestions(y);
118
+ if (C !== S) return;
119
+ i.value = q.addresses, f.value = !0, u("address-suggestions-complete", q.addresses);
120
+ } catch (q) {
121
+ if (C !== S) return;
122
+ const T = q instanceof Error ? q : new Error("Failed to fetch address suggestions");
123
+ b.value = T.message, i.value = [], f.value = !0, u("error", T);
124
124
  } finally {
125
- k === D && (h.value = !1);
125
+ C === S && (m.value = !1);
126
126
  }
127
- }, o.debounceMs);
127
+ }, l.debounceMs);
128
128
  });
129
129
  function U($) {
130
130
  const y = [$.street1];
131
131
  return $.street2 && (y[0] += ` ${$.street2}`), y.push(`${$.city}, ${$.state} ${$.postalCode}`), y.join(", ");
132
132
  }
133
- async function Y($) {
134
- L.value = !0, v.value = U($), i.value = [], f.value = !1, m.value = null, u("change", $);
133
+ async function Q($) {
134
+ L.value = !0, d.value = U($), i.value = [], f.value = !1, b.value = null, u("change", $);
135
135
  try {
136
136
  u("address-select", $);
137
137
  } catch (y) {
138
- const k = y instanceof Error ? y : new Error("Failed to process address");
139
- m.value = k.message, u("error", k), v.value = "", L.value = !1;
138
+ const C = y instanceof Error ? y : new Error("Failed to process address");
139
+ b.value = C.message, u("error", C), d.value = "", L.value = !1;
140
140
  }
141
141
  }
142
142
  function re() {
143
- b.value = !0, f.value = !1;
143
+ g.value = !0, f.value = !1;
144
144
  }
145
145
  function J($, y) {
146
- T.value[$] = y;
147
- const k = T.value;
146
+ A.value[$] = y;
147
+ const C = A.value;
148
148
  u("change", {
149
- street1: k.street1,
150
- ...k.street2 ? { street2: k.street2 } : {},
151
- city: k.city,
152
- state: k.state,
153
- postalCode: k.postalCode
149
+ street1: C.street1,
150
+ ...C.street2 ? { street2: C.street2 } : {},
151
+ city: C.city,
152
+ state: C.state,
153
+ postalCode: C.postalCode
154
154
  });
155
155
  }
156
- async function z() {
157
- const $ = T.value.street1.trim(), y = T.value.city.trim(), k = T.value.state.trim(), S = T.value.postalCode.trim(), A = T.value.street2.trim();
158
- if (!$ || !y || !k || !S) {
159
- const P = "Please fill in all required fields";
160
- m.value = P, u("validation-error", P);
156
+ async function W() {
157
+ const $ = A.value.street1.trim(), y = A.value.city.trim(), C = A.value.state.trim(), q = A.value.postalCode.trim(), T = A.value.street2.trim();
158
+ if (!$ || !y || !C || !q) {
159
+ const B = "Please fill in all required fields";
160
+ b.value = B, u("validation-error", B);
161
161
  return;
162
162
  }
163
- h.value = !0, m.value = null;
163
+ m.value = !0, b.value = null;
164
164
  try {
165
165
  u("address-select", {
166
166
  street1: $,
167
- street2: A || void 0,
167
+ street2: T || void 0,
168
168
  city: y,
169
- state: k,
170
- postalCode: S
169
+ state: C,
170
+ postalCode: q
171
171
  });
172
- } catch (P) {
173
- const W = P instanceof Error ? P : new Error("Failed to submit address");
174
- m.value = W.message, u("error", W);
172
+ } catch (B) {
173
+ const z = B instanceof Error ? B : new Error("Failed to submit address");
174
+ b.value = z.message, u("error", z);
175
175
  } finally {
176
- h.value = !1;
176
+ m.value = !1;
177
177
  }
178
178
  }
179
- function ae() {
180
- i.value.length > 0 && Y(i.value[0]);
179
+ function ie() {
180
+ i.value.length > 0 && Q(i.value[0]);
181
181
  }
182
- function te() {
183
- i.value.length > 0 && v.value.length > 0 && (f.value = !0);
182
+ function X() {
183
+ i.value.length > 0 && d.value.length > 0 && (f.value = !0);
184
184
  }
185
- function ie($) {
185
+ function ue($) {
186
186
  const y = $.target.value;
187
- v.value = y, L.value = !1;
187
+ d.value = y, L.value = !1;
188
188
  }
189
- function ne($) {
190
- q.value && !q.value.contains($.target) && O.value && !O.value.contains($.target) && (f.value = !1);
189
+ function te($) {
190
+ D.value && !D.value.contains($.target) && H.value && !H.value.contains($.target) && (f.value = !1);
191
191
  }
192
192
  return ve(() => {
193
- document.addEventListener("mousedown", ne), u("ready");
194
- }), le(() => {
195
- document.removeEventListener("mousedown", ne), N && clearTimeout(N), D += 1;
193
+ document.addEventListener("mousedown", te), u("ready");
194
+ }), ae(() => {
195
+ document.removeEventListener("mousedown", te), O && clearTimeout(O), S += 1;
196
196
  }), ($, y) => (c(), p("div", {
197
197
  ref_key: "containerRef",
198
198
  ref: M,
199
199
  class: e($.$style.container),
200
- style: X(R.value)
200
+ style: le(Z.value)
201
201
  }, [
202
- b.value ? (c(), p("div", {
202
+ g.value ? (c(), p("div", {
203
203
  key: 1,
204
204
  class: e($.$style.manualForm)
205
205
  }, [
206
- t("div", {
206
+ n("div", {
207
207
  class: e($.$style.manualFormField)
208
208
  }, [
209
- t("label", {
209
+ n("label", {
210
210
  class: e($.$style.manualFormLabel),
211
- for: `${d}-street1`
212
- }, "Street Address *", 10, et),
213
- t("input", {
214
- id: `${d}-street1`,
211
+ for: `${v}-street1`
212
+ }, "Street Address *", 10, nt),
213
+ n("input", {
214
+ id: `${v}-street1`,
215
215
  class: e($.$style.manualFormInput),
216
216
  type: "text",
217
- value: T.value.street1,
218
- disabled: n.disabled,
217
+ value: A.value.street1,
218
+ disabled: t.disabled,
219
219
  placeholder: "123 Main St",
220
- onInput: y[0] || (y[0] = (k) => J("street1", k.target.value))
221
- }, null, 42, tt)
220
+ onInput: y[0] || (y[0] = (C) => J("street1", C.target.value))
221
+ }, null, 42, st)
222
222
  ], 2),
223
- t("div", {
223
+ n("div", {
224
224
  class: e($.$style.manualFormField)
225
225
  }, [
226
- t("label", {
226
+ n("label", {
227
227
  class: e($.$style.manualFormLabel),
228
- for: `${d}-street2`
229
- }, "Unit / Apt (optional)", 10, nt),
230
- t("input", {
231
- id: `${d}-street2`,
228
+ for: `${v}-street2`
229
+ }, "Unit / Apt (optional)", 10, ot),
230
+ n("input", {
231
+ id: `${v}-street2`,
232
232
  class: e($.$style.manualFormInput),
233
233
  type: "text",
234
- value: T.value.street2,
235
- disabled: n.disabled,
234
+ value: A.value.street2,
235
+ disabled: t.disabled,
236
236
  placeholder: "Apt 4B",
237
- onInput: y[1] || (y[1] = (k) => J("street2", k.target.value))
238
- }, null, 42, st)
237
+ onInput: y[1] || (y[1] = (C) => J("street2", C.target.value))
238
+ }, null, 42, at)
239
239
  ], 2),
240
- t("div", {
240
+ n("div", {
241
241
  class: e($.$style.manualFormField)
242
242
  }, [
243
- t("label", {
243
+ n("label", {
244
244
  class: e($.$style.manualFormLabel),
245
- for: `${d}-city`
246
- }, "City *", 10, at),
247
- t("input", {
248
- id: `${d}-city`,
245
+ for: `${v}-city`
246
+ }, "City *", 10, lt),
247
+ n("input", {
248
+ id: `${v}-city`,
249
249
  class: e($.$style.manualFormInput),
250
250
  type: "text",
251
- value: T.value.city,
252
- disabled: n.disabled,
251
+ value: A.value.city,
252
+ disabled: t.disabled,
253
253
  placeholder: "Austin",
254
- onInput: y[2] || (y[2] = (k) => J("city", k.target.value))
255
- }, null, 42, ot)
254
+ onInput: y[2] || (y[2] = (C) => J("city", C.target.value))
255
+ }, null, 42, rt)
256
256
  ], 2),
257
- t("div", {
257
+ n("div", {
258
258
  class: e($.$style.formRow)
259
259
  }, [
260
- t("div", {
260
+ n("div", {
261
261
  class: e($.$style.manualFormField)
262
262
  }, [
263
- t("label", {
263
+ n("label", {
264
264
  class: e($.$style.manualFormLabel),
265
- for: `${d}-state`
266
- }, "State *", 10, lt),
267
- t("input", {
268
- id: `${d}-state`,
265
+ for: `${v}-state`
266
+ }, "State *", 10, it),
267
+ n("input", {
268
+ id: `${v}-state`,
269
269
  class: e($.$style.manualFormInput),
270
270
  type: "text",
271
- value: T.value.state,
272
- disabled: n.disabled,
271
+ value: A.value.state,
272
+ disabled: t.disabled,
273
273
  placeholder: "TX",
274
274
  maxlength: "2",
275
- onInput: y[3] || (y[3] = (k) => J("state", k.target.value))
276
- }, null, 42, rt)
275
+ onInput: y[3] || (y[3] = (C) => J("state", C.target.value))
276
+ }, null, 42, ut)
277
277
  ], 2),
278
- t("div", {
278
+ n("div", {
279
279
  class: e($.$style.manualFormField)
280
280
  }, [
281
- t("label", {
281
+ n("label", {
282
282
  class: e($.$style.manualFormLabel),
283
- for: `${d}-postalCode`
284
- }, "ZIP Code *", 10, it),
285
- t("input", {
286
- id: `${d}-postalCode`,
283
+ for: `${v}-postalCode`
284
+ }, "ZIP Code *", 10, ct),
285
+ n("input", {
286
+ id: `${v}-postalCode`,
287
287
  class: e($.$style.manualFormInput),
288
288
  type: "text",
289
- value: T.value.postalCode,
290
- disabled: n.disabled,
289
+ value: A.value.postalCode,
290
+ disabled: t.disabled,
291
291
  placeholder: "78701",
292
292
  maxlength: "5",
293
- onInput: y[4] || (y[4] = (k) => J("postalCode", k.target.value))
294
- }, null, 42, ut)
293
+ onInput: y[4] || (y[4] = (C) => J("postalCode", C.target.value))
294
+ }, null, 42, dt)
295
295
  ], 2)
296
296
  ], 2),
297
- m.value ? (c(), p("div", {
297
+ b.value ? (c(), p("div", {
298
298
  key: 0,
299
299
  class: e($.$style.error),
300
300
  role: "alert"
301
- }, _(m.value), 3)) : E("", !0),
302
- t("button", {
301
+ }, _(b.value), 3)) : E("", !0),
302
+ n("button", {
303
303
  class: e($.$style.submitButton),
304
304
  type: "button",
305
- disabled: n.disabled,
306
- onClick: z
305
+ disabled: t.disabled,
306
+ onClick: W
307
307
  }, [
308
- t("span", null, _(n.buttonText), 1),
308
+ n("span", null, _(t.buttonText), 1),
309
309
  ce($.$slots, "button-icon", {}, () => [
310
- y[8] || (y[8] = t("svg", {
310
+ y[8] || (y[8] = n("svg", {
311
311
  width: "20",
312
312
  height: "20",
313
313
  viewBox: "0 0 24 24",
314
314
  fill: "none",
315
315
  xmlns: "http://www.w3.org/2000/svg"
316
316
  }, [
317
- t("path", {
317
+ n("path", {
318
318
  d: "M5 12h14m-7-7l7 7-7 7",
319
319
  stroke: "currentColor",
320
320
  "stroke-width": "2",
@@ -323,46 +323,46 @@ const xe = /* @__PURE__ */ F({
323
323
  })
324
324
  ], -1))
325
325
  ])
326
- ], 10, ct)
326
+ ], 10, vt)
327
327
  ], 2)) : (c(), p("div", {
328
328
  key: 0,
329
329
  class: e($.$style.inputSection)
330
330
  }, [
331
- t("div", {
332
- class: e([$.$style.inputWrapper, m.value ? $.$style.errorBorder : ""])
331
+ n("div", {
332
+ class: e([$.$style.inputWrapper, b.value ? $.$style.errorBorder : ""])
333
333
  }, [
334
- t("input", {
334
+ n("input", {
335
335
  ref_key: "inputRef",
336
- ref: O,
337
- value: v.value,
336
+ ref: H,
337
+ value: d.value,
338
338
  class: e($.$style.input),
339
- placeholder: n.placeholderText,
340
- disabled: n.disabled,
339
+ placeholder: t.placeholderText,
340
+ disabled: t.disabled,
341
341
  type: "text",
342
342
  autocomplete: "off",
343
343
  "aria-label": "Address input",
344
344
  "aria-autocomplete": "list",
345
- "aria-controls": `${d}-suggestions`,
345
+ "aria-controls": `${v}-suggestions`,
346
346
  "aria-expanded": f.value,
347
- onInput: ie,
348
- onFocus: te
349
- }, null, 42, Qe),
347
+ onInput: ue,
348
+ onFocus: X
349
+ }, null, 42, Xe),
350
350
  $.$slots["input-icon"] ? (c(), p("div", {
351
351
  key: 0,
352
352
  class: e($.$style.inputIcon)
353
353
  }, [
354
354
  ce($.$slots, "input-icon")
355
355
  ], 2)) : E("", !0),
356
- n.showButton ? (c(), p("button", {
356
+ t.showButton ? (c(), p("button", {
357
357
  key: 1,
358
358
  class: e($.$style.button),
359
- disabled: n.disabled,
360
- "aria-label": n.buttonText,
359
+ disabled: t.disabled,
360
+ "aria-label": t.buttonText,
361
361
  type: "button",
362
- onClick: ae
362
+ onClick: ie
363
363
  }, [
364
- h.value ? (c(), p(j, { key: 0 }, [
365
- t("span", null, _(n.buttonText), 1),
364
+ m.value ? (c(), p(N, { key: 0 }, [
365
+ n("span", null, _(t.buttonText), 1),
366
366
  (c(), p("svg", {
367
367
  class: e($.$style.spinner),
368
368
  width: "20",
@@ -371,7 +371,7 @@ const xe = /* @__PURE__ */ F({
371
371
  fill: "none",
372
372
  xmlns: "http://www.w3.org/2000/svg"
373
373
  }, [...y[5] || (y[5] = [
374
- t("circle", {
374
+ n("circle", {
375
375
  cx: "12",
376
376
  cy: "12",
377
377
  r: "10",
@@ -379,24 +379,24 @@ const xe = /* @__PURE__ */ F({
379
379
  "stroke-width": "4",
380
380
  "stroke-opacity": "0.25"
381
381
  }, null, -1),
382
- t("path", {
382
+ n("path", {
383
383
  d: "M12 2a10 10 0 0 1 10 10",
384
384
  stroke: "currentColor",
385
385
  "stroke-width": "4",
386
386
  "stroke-linecap": "round"
387
387
  }, null, -1)
388
388
  ])], 2))
389
- ], 64)) : (c(), p(j, { key: 1 }, [
390
- t("span", null, _(n.buttonText), 1),
389
+ ], 64)) : (c(), p(N, { key: 1 }, [
390
+ n("span", null, _(t.buttonText), 1),
391
391
  ce($.$slots, "button-icon", {}, () => [
392
- y[6] || (y[6] = t("svg", {
392
+ y[6] || (y[6] = n("svg", {
393
393
  width: "20",
394
394
  height: "20",
395
395
  viewBox: "0 0 24 24",
396
396
  fill: "none",
397
397
  xmlns: "http://www.w3.org/2000/svg"
398
398
  }, [
399
- t("path", {
399
+ n("path", {
400
400
  d: "M5 12h14m-7-7l7 7-7 7",
401
401
  stroke: "currentColor",
402
402
  "stroke-width": "2",
@@ -406,38 +406,38 @@ const xe = /* @__PURE__ */ F({
406
406
  ], -1))
407
407
  ])
408
408
  ], 64))
409
- ], 10, Ye)) : E("", !0)
409
+ ], 10, Je)) : E("", !0)
410
410
  ], 2),
411
- f.value || m.value ? (c(), p("div", {
411
+ f.value || b.value ? (c(), p("div", {
412
412
  key: 0,
413
413
  ref_key: "suggestionsRef",
414
- ref: q,
415
- class: e([$.$style.suggestions, m.value ? $.$style.errorState : ""]),
416
- id: `${d}-suggestions`,
417
- role: m.value ? "alert" : "listbox",
418
- "aria-live": m.value ? "polite" : void 0
414
+ ref: D,
415
+ class: e([$.$style.suggestions, b.value ? $.$style.errorState : ""]),
416
+ id: `${v}-suggestions`,
417
+ role: b.value ? "alert" : "listbox",
418
+ "aria-live": b.value ? "polite" : void 0
419
419
  }, [
420
- m.value ? (c(), p(j, { key: 0 }, [
421
- t("div", {
420
+ b.value ? (c(), p(N, { key: 0 }, [
421
+ n("div", {
422
422
  class: e($.$style.error)
423
423
  }, [
424
- t("div", {
424
+ n("div", {
425
425
  class: e($.$style.errorIcon)
426
426
  }, [...y[7] || (y[7] = [
427
- t("svg", {
427
+ n("svg", {
428
428
  width: "20",
429
429
  height: "20",
430
430
  viewBox: "0 0 24 24",
431
431
  fill: "none"
432
432
  }, [
433
- t("circle", {
433
+ n("circle", {
434
434
  cx: "12",
435
435
  cy: "12",
436
436
  r: "10",
437
437
  stroke: "currentColor",
438
438
  "stroke-width": "2"
439
439
  }),
440
- t("path", {
440
+ n("path", {
441
441
  d: "M12 8v4M12 16h.01",
442
442
  stroke: "currentColor",
443
443
  "stroke-width": "2",
@@ -445,112 +445,112 @@ const xe = /* @__PURE__ */ F({
445
445
  })
446
446
  ], -1)
447
447
  ])], 2),
448
- t("div", null, _(m.value), 1)
448
+ n("div", null, _(b.value), 1)
449
449
  ], 2),
450
- b.value ? E("", !0) : (c(), p("button", {
450
+ g.value ? E("", !0) : (c(), p("button", {
451
451
  key: 0,
452
452
  type: "button",
453
453
  class: e($.$style.manualLink),
454
454
  onClick: re
455
- }, _(n.manualEntryText), 3))
456
- ], 64)) : i.value.length > 0 ? (c(!0), p(j, { key: 1 }, Q(i.value, (k, S) => (c(), p("div", {
457
- key: `${k.street1}-${k.city}-${k.postalCode}-${S}`,
455
+ }, _(t.manualEntryText), 3))
456
+ ], 64)) : i.value.length > 0 ? (c(!0), p(N, { key: 1 }, Y(i.value, (C, q) => (c(), p("div", {
457
+ key: `${C.street1}-${C.city}-${C.postalCode}-${q}`,
458
458
  class: e($.$style.suggestion),
459
459
  role: "option",
460
460
  "aria-selected": !1,
461
461
  tabindex: "0",
462
- onClick: (A) => Y(k),
462
+ onClick: (T) => Q(C),
463
463
  onKeydown: [
464
- Se(De((A) => Y(k), ["prevent"]), ["enter"]),
465
- Se(De((A) => Y(k), ["prevent"]), ["space"])
464
+ Ie(Se((T) => Q(C), ["prevent"]), ["enter"]),
465
+ Ie(Se((T) => Q(C), ["prevent"]), ["space"])
466
466
  ]
467
- }, _(U(k)), 43, Je))), 128)) : Z.value ? (c(), p("button", {
467
+ }, _(U(C)), 43, tt))), 128)) : j.value ? (c(), p("button", {
468
468
  key: 2,
469
469
  type: "button",
470
470
  class: e($.$style.manualLink),
471
471
  onClick: re
472
- }, _(n.manualEntryText), 3)) : E("", !0)
473
- ], 10, Xe)) : E("", !0)
472
+ }, _(t.manualEntryText), 3)) : E("", !0)
473
+ ], 10, et)) : E("", !0)
474
474
  ], 2)),
475
- n.showAttribution ? (c(), K(Ke, { key: 2 })) : E("", !0)
475
+ t.showAttribution ? (c(), K(Ye, { key: 2 })) : E("", !0)
476
476
  ], 6));
477
477
  }
478
- }), vt = "_container_1r0nf_9", yt = "_inputSection_1r0nf_17", ft = "_inputWrapper_1r0nf_23", pt = "_input_1r0nf_17", ht = "_inputIcon_1r0nf_64", mt = "_button_1r0nf_81", gt = "_spinner_1r0nf_122", bt = "_spin_1r0nf_122", $t = "_suggestions_1r0nf_137", Ct = "_errorState_1r0nf_151", kt = "_suggestion_1r0nf_137", _t = "_error_1r0nf_151", wt = "_errorIcon_1r0nf_200", Lt = "_errorBorder_1r0nf_214", It = "_manualLink_1r0nf_224", St = "_manualForm_1r0nf_246", Dt = "_slideIn_1r0nf_1", Et = "_manualFormField_1r0nf_261", qt = "_manualFormLabel_1r0nf_265", Mt = "_manualFormInput_1r0nf_274", At = "_formRow_1r0nf_295", Tt = "_submitButton_1r0nf_303", Pt = {
479
- container: vt,
480
- inputSection: yt,
481
- inputWrapper: ft,
482
- input: pt,
478
+ }), pt = "_container_1r0nf_9", ft = "_inputSection_1r0nf_17", mt = "_inputWrapper_1r0nf_23", gt = "_input_1r0nf_17", ht = "_inputIcon_1r0nf_64", bt = "_button_1r0nf_81", $t = "_spinner_1r0nf_122", kt = "_spin_1r0nf_122", Ct = "_suggestions_1r0nf_137", _t = "_errorState_1r0nf_151", wt = "_suggestion_1r0nf_137", Lt = "_error_1r0nf_151", It = "_errorIcon_1r0nf_200", St = "_errorBorder_1r0nf_214", qt = "_manualLink_1r0nf_224", Et = "_manualForm_1r0nf_246", Dt = "_slideIn_1r0nf_1", Mt = "_manualFormField_1r0nf_261", At = "_manualFormLabel_1r0nf_265", Tt = "_manualFormInput_1r0nf_274", Bt = "_formRow_1r0nf_295", Pt = "_submitButton_1r0nf_303", jt = {
479
+ container: pt,
480
+ inputSection: ft,
481
+ inputWrapper: mt,
482
+ input: gt,
483
483
  inputIcon: ht,
484
- button: mt,
485
- spinner: gt,
486
- spin: bt,
487
- suggestions: $t,
488
- errorState: Ct,
489
- suggestion: kt,
490
- error: _t,
491
- errorIcon: wt,
492
- errorBorder: Lt,
493
- manualLink: It,
494
- manualForm: St,
484
+ button: bt,
485
+ spinner: $t,
486
+ spin: kt,
487
+ suggestions: Ct,
488
+ errorState: _t,
489
+ suggestion: wt,
490
+ error: Lt,
491
+ errorIcon: It,
492
+ errorBorder: St,
493
+ manualLink: qt,
494
+ manualForm: Et,
495
495
  slideIn: Dt,
496
- manualFormField: Et,
497
- manualFormLabel: qt,
498
- manualFormInput: Mt,
499
- formRow: At,
500
- submitButton: Tt
501
- }, Bt = {
502
- $style: Pt
503
- }, Yl = /* @__PURE__ */ V(dt, [["__cssModules", Bt]]), Ft = "https://api.mapbox.com/geocoding/v5/mapbox.places", Rt = "https://api.mapbox.com/styles/v1/mapbox/light-v11/static", Nt = "pk.eyJ1Ijoib3BlbmRvb3IiLCJhIjoiWXJ2bTJiRSJ9.lsnjT9yTNyyVzKRIzqxnqg", Gt = "https://images.opendoor.com/source/s3/imgdrop-production/2026-02-1771546296495-06570.png?service=partner-sdk";
504
- function Ot(n, s, l) {
505
- return n.startsWith("http://") || n.startsWith("https://") ? `url-${encodeURIComponent(n)}(${s},${l})` : `${n}(${s},${l})`;
496
+ manualFormField: Mt,
497
+ manualFormLabel: At,
498
+ manualFormInput: Tt,
499
+ formRow: Bt,
500
+ submitButton: Pt
501
+ }, xt = {
502
+ $style: jt
503
+ }, Jl = /* @__PURE__ */ G(yt, [["__cssModules", xt]]), Ft = "https://api.mapbox.com/geocoding/v5/mapbox.places", Rt = "https://api.mapbox.com/styles/v1/mapbox/light-v11/static", Nt = "pk.eyJ1Ijoib3BlbmRvb3IiLCJhIjoiWXJ2bTJiRSJ9.lsnjT9yTNyyVzKRIzqxnqg", Gt = "https://images.opendoor.com/source/s3/imgdrop-production/2026-02-1771546296495-06570.png?service=partner-sdk";
504
+ function Ht(t, o, a) {
505
+ return t.startsWith("http://") || t.startsWith("https://") ? `url-${encodeURIComponent(t)}(${o},${a})` : `${t}(${o},${a})`;
506
506
  }
507
- function Ht(n, s) {
508
- const l = (s == null ? void 0 : s.mapboxAccessToken) ?? Nt, o = (s == null ? void 0 : s.mapPinMarker) ?? Gt, u = (s == null ? void 0 : s.width) ?? 640, r = (s == null ? void 0 : s.height) ?? 320, d = (s == null ? void 0 : s.zoom) ?? 14, v = I(void 0), i = I("loading");
507
+ function Ot(t, o) {
508
+ const a = (o == null ? void 0 : o.mapboxAccessToken) ?? Nt, l = (o == null ? void 0 : o.mapPinMarker) ?? Gt, u = (o == null ? void 0 : o.width) ?? 640, r = (o == null ? void 0 : o.height) ?? 320, v = (o == null ? void 0 : o.zoom) ?? 14, d = I(void 0), i = I("loading");
509
509
  let f = null;
510
510
  return ee(
511
511
  () => [
512
- n.value.street1,
513
- n.value.city,
514
- n.value.state,
515
- n.value.postalCode
512
+ t.value.street1,
513
+ t.value.city,
514
+ t.value.state,
515
+ t.value.postalCode
516
516
  ],
517
517
  async () => {
518
518
  var L, M;
519
519
  f && f.abort();
520
- const h = new AbortController();
521
- f = h, i.value = "loading";
522
- const m = n.value, b = [
523
- m.street1,
524
- m.city,
525
- m.state,
526
- m.postalCode
520
+ const m = new AbortController();
521
+ f = m, i.value = "loading";
522
+ const b = t.value, g = [
523
+ b.street1,
524
+ b.city,
525
+ b.state,
526
+ b.postalCode
527
527
  ].join(" ");
528
528
  try {
529
- const q = `${Ft}/${encodeURIComponent(b)}.json?access_token=${l}&limit=1`, O = await fetch(q, { signal: h.signal });
530
- if (!O.ok) {
531
- h.signal.aborted || (i.value = "error");
529
+ const D = `${Ft}/${encodeURIComponent(g)}.json?access_token=${a}&limit=1`, H = await fetch(D, { signal: m.signal });
530
+ if (!H.ok) {
531
+ m.signal.aborted || (i.value = "error");
532
532
  return;
533
533
  }
534
- const T = await O.json();
535
- if (h.signal.aborted) return;
536
- const R = (M = (L = T.features) == null ? void 0 : L[0]) == null ? void 0 : M.center;
537
- if (!R) {
534
+ const A = await H.json();
535
+ if (m.signal.aborted) return;
536
+ const Z = (M = (L = A.features) == null ? void 0 : L[0]) == null ? void 0 : M.center;
537
+ if (!Z) {
538
538
  i.value = "error";
539
539
  return;
540
540
  }
541
- const [Z, N] = R, D = Ot(o, Z, N);
542
- v.value = `${Rt}/${D}/${Z},${N},${d}/${u}x${r}@2x?access_token=${l}&attribution=false&logo=false`, i.value = "loaded";
543
- } catch (q) {
544
- if (q instanceof DOMException && q.name === "AbortError") return;
545
- h.signal.aborted || (i.value = "error");
541
+ const [j, O] = Z, S = Ht(l, j, O);
542
+ d.value = `${Rt}/${S}/${j},${O},${v}/${u}x${r}@2x?access_token=${a}&attribution=false&logo=false`, i.value = "loaded";
543
+ } catch (D) {
544
+ if (D instanceof DOMException && D.name === "AbortError") return;
545
+ m.signal.aborted || (i.value = "error");
546
546
  }
547
547
  },
548
548
  { immediate: !0 }
549
- ), le(() => {
549
+ ), ae(() => {
550
550
  f && f.abort();
551
- }), { url: v, status: i };
551
+ }), { url: d, status: i };
552
552
  }
553
- const jt = ["src"], Vt = /* @__PURE__ */ F({
553
+ const Vt = ["src"], Ut = /* @__PURE__ */ x({
554
554
  __name: "AddressMap",
555
555
  props: {
556
556
  address: {},
@@ -563,281 +563,281 @@ const jt = ["src"], Vt = /* @__PURE__ */ F({
563
563
  borderRadius: {}
564
564
  },
565
565
  emits: ["load", "error"],
566
- setup(n, { emit: s }) {
567
- const l = n, o = s, u = w(() => {
568
- const f = ye(l.appearance);
569
- return l.borderRadius && (f["border-radius"] = l.borderRadius), f;
570
- }), { url: r, status: d } = Ht(
571
- w(() => l.address),
566
+ setup(t, { emit: o }) {
567
+ const a = t, l = o, u = w(() => {
568
+ const f = ye(a.appearance);
569
+ return a.borderRadius && (f["border-radius"] = a.borderRadius), f;
570
+ }), { url: r, status: v } = Ot(
571
+ w(() => a.address),
572
572
  {
573
- mapboxAccessToken: l.mapboxAccessToken,
574
- mapPinMarker: l.mapPinMarker,
575
- width: l.width,
576
- height: l.height,
577
- zoom: l.zoom
573
+ mapboxAccessToken: a.mapboxAccessToken,
574
+ mapPinMarker: a.mapPinMarker,
575
+ width: a.width,
576
+ height: a.height,
577
+ zoom: a.zoom
578
578
  }
579
- ), v = I(!1);
580
- ee(d, (f) => {
581
- f === "loading" && (v.value = !1), f === "error" && o("error", new Error("Failed to load map for address"));
579
+ ), d = I(!1);
580
+ ee(v, (f) => {
581
+ f === "loading" && (d.value = !1), f === "error" && l("error", new Error("Failed to load map for address"));
582
582
  });
583
583
  function i() {
584
- v.value = !0, o("load");
584
+ d.value = !0, l("load");
585
585
  }
586
- return (f, h) => (c(), p("div", {
586
+ return (f, m) => (c(), p("div", {
587
587
  class: e(f.$style.container),
588
- style: X(u.value)
588
+ style: le(u.value)
589
589
  }, [
590
- B(r) ? (c(), p("img", {
590
+ P(r) ? (c(), p("img", {
591
591
  key: 0,
592
- src: B(r),
592
+ src: P(r),
593
593
  alt: "Map",
594
- class: e([f.$style.mapImage, v.value ? f.$style.mapImageLoaded : ""]),
594
+ class: e([f.$style.mapImage, d.value ? f.$style.mapImageLoaded : ""]),
595
595
  onLoad: i
596
- }, null, 42, jt)) : E("", !0)
596
+ }, null, 42, Vt)) : E("", !0)
597
597
  ], 6));
598
598
  }
599
- }), xt = "_container_iumdj_4", Ut = "_mapImage_iumdj_14", Zt = "_mapImageLoaded_iumdj_23", zt = {
600
- container: xt,
601
- mapImage: Ut,
602
- mapImageLoaded: Zt
603
- }, Wt = {
604
- $style: zt
605
- }, Xl = /* @__PURE__ */ V(Vt, [["__cssModules", Wt]]), Kt = ["disabled", "aria-invalid", "aria-describedby"], Qt = ["checked"], Yt = /* @__PURE__ */ F({
599
+ }), Zt = "_container_iumdj_4", Wt = "_mapImage_iumdj_14", zt = "_mapImageLoaded_iumdj_23", Kt = {
600
+ container: Zt,
601
+ mapImage: Wt,
602
+ mapImageLoaded: zt
603
+ }, Qt = {
604
+ $style: Kt
605
+ }, er = /* @__PURE__ */ G(Ut, [["__cssModules", Qt]]), Yt = ["disabled", "aria-invalid", "aria-describedby"], Xt = ["checked"], Jt = /* @__PURE__ */ x({
606
606
  __name: "AddressUnitConfirmation",
607
607
  props: {
608
608
  address: {},
609
609
  appearance: {}
610
610
  },
611
611
  emits: ["confirm", "edit", "ready", "error"],
612
- setup(n, { emit: s }) {
613
- const l = n, o = s, u = I(""), r = I(!1), d = I(null), v = w(() => ye(l.appearance)), i = w(() => {
614
- const b = l.address;
615
- return `${b.street1 + (b.street2 ? ` ${b.street2}` : "")}, ${b.city}, ${b.state} ${b.postalCode}`;
612
+ setup(t, { emit: o }) {
613
+ const a = t, l = o, u = I(""), r = I(!1), v = I(null), d = w(() => ye(a.appearance)), i = w(() => {
614
+ const g = a.address;
615
+ return `${g.street1 + (g.street2 ? ` ${g.street2}` : "")}, ${g.city}, ${g.state} ${g.postalCode}`;
616
616
  });
617
617
  function f() {
618
618
  if (!r.value && !u.value.trim()) {
619
- const b = "Please enter a unit number or select 'No unit number'";
620
- d.value = b, o("error", new Error(b));
619
+ const g = "Please enter a unit number or select 'No unit number'";
620
+ v.value = g, l("error", new Error(g));
621
621
  return;
622
622
  }
623
- if (d.value = null, r.value) {
624
- const { street2: b, ...L } = l.address;
625
- o("confirm", L);
623
+ if (v.value = null, r.value) {
624
+ const { street2: g, ...L } = a.address;
625
+ l("confirm", L);
626
626
  } else
627
- o("confirm", { ...l.address, street2: u.value.trim() });
628
- }
629
- function h() {
630
- r.value = !r.value, r.value && (u.value = "", d.value = null);
627
+ l("confirm", { ...a.address, street2: u.value.trim() });
631
628
  }
632
629
  function m() {
633
- d.value && (d.value = null);
630
+ r.value = !r.value, r.value && (u.value = "", v.value = null);
631
+ }
632
+ function b() {
633
+ v.value && (v.value = null);
634
634
  }
635
635
  return ve(() => {
636
- o("ready");
637
- }), (b, L) => (c(), p("div", {
638
- class: e(b.$style.container),
639
- style: X(v.value)
636
+ l("ready");
637
+ }), (g, L) => (c(), p("div", {
638
+ class: e(g.$style.container),
639
+ style: le(d.value)
640
640
  }, [
641
- t("h2", {
642
- class: e(b.$style.title)
641
+ n("h2", {
642
+ class: e(g.$style.title)
643
643
  }, "Confirm your home address", 2),
644
- t("div", {
645
- class: e(b.$style.addressCard)
644
+ n("div", {
645
+ class: e(g.$style.addressCard)
646
646
  }, [
647
- t("span", {
648
- class: e(b.$style.addressText)
647
+ n("span", {
648
+ class: e(g.$style.addressText)
649
649
  }, _(i.value), 3),
650
- t("button", {
651
- class: e(b.$style.editLink),
650
+ n("button", {
651
+ class: e(g.$style.editLink),
652
652
  type: "button",
653
- onClick: L[0] || (L[0] = (M) => o("edit"))
653
+ onClick: L[0] || (L[0] = (M) => l("edit"))
654
654
  }, " Edit ", 2)
655
655
  ], 2),
656
- t("div", {
657
- class: e(b.$style.fieldGroup)
656
+ n("div", {
657
+ class: e(g.$style.fieldGroup)
658
658
  }, [
659
- t("label", {
660
- class: e(b.$style.fieldLabel),
659
+ n("label", {
660
+ class: e(g.$style.fieldLabel),
661
661
  for: "od-unit-number"
662
662
  }, " Unit number, apt, or floor* ", 2),
663
- Ee(t("input", {
663
+ qe(n("input", {
664
664
  id: "od-unit-number",
665
665
  "onUpdate:modelValue": L[1] || (L[1] = (M) => u.value = M),
666
- class: e(b.$style.input),
666
+ class: e(g.$style.input),
667
667
  type: "text",
668
668
  placeholder: "#1234",
669
669
  disabled: r.value,
670
- "aria-invalid": d.value ? !0 : void 0,
671
- "aria-describedby": d.value ? "od-unit-error" : void 0,
672
- onInput: m,
673
- onKeydown: Se(f, ["enter"])
674
- }, null, 42, Kt), [
675
- [qe, u.value]
670
+ "aria-invalid": v.value ? !0 : void 0,
671
+ "aria-describedby": v.value ? "od-unit-error" : void 0,
672
+ onInput: b,
673
+ onKeydown: Ie(f, ["enter"])
674
+ }, null, 42, Yt), [
675
+ [Ee, u.value]
676
676
  ])
677
677
  ], 2),
678
- t("label", {
679
- class: e(b.$style.checkboxRow)
678
+ n("label", {
679
+ class: e(g.$style.checkboxRow)
680
680
  }, [
681
- t("input", {
681
+ n("input", {
682
682
  type: "checkbox",
683
- class: e(b.$style.checkbox),
683
+ class: e(g.$style.checkbox),
684
684
  checked: r.value,
685
- onChange: h
686
- }, null, 42, Qt),
687
- t("span", {
688
- class: e(b.$style.checkboxLabel)
685
+ onChange: m
686
+ }, null, 42, Xt),
687
+ n("span", {
688
+ class: e(g.$style.checkboxLabel)
689
689
  }, "No unit number", 2)
690
690
  ], 2),
691
- d.value ? (c(), p("p", {
691
+ v.value ? (c(), p("p", {
692
692
  key: 0,
693
693
  id: "od-unit-error",
694
- class: e(b.$style.error),
694
+ class: e(g.$style.error),
695
695
  role: "alert"
696
- }, _(d.value), 3)) : E("", !0),
697
- t("div", {
698
- class: e(b.$style.actions)
696
+ }, _(v.value), 3)) : E("", !0),
697
+ n("div", {
698
+ class: e(g.$style.actions)
699
699
  }, [
700
- t("button", {
701
- class: e(b.$style.confirmButton),
700
+ n("button", {
701
+ class: e(g.$style.confirmButton),
702
702
  type: "button",
703
703
  onClick: f
704
704
  }, " Confirm address ", 2)
705
705
  ], 2)
706
706
  ], 6));
707
707
  }
708
- }), Xt = "_container_1hik1_4", Jt = "_title_1hik1_8", en = "_addressCard_1hik1_17", tn = "_addressText_1hik1_27", nn = "_editLink_1hik1_35", sn = "_fieldGroup_1hik1_48", an = "_fieldLabel_1hik1_52", on = "_input_1hik1_61", ln = "_checkboxRow_1hik1_85", rn = "_checkbox_1hik1_85", un = "_checkboxLabel_1hik1_102", cn = "_error_1hik1_109", dn = "_actions_1hik1_116", vn = "_confirmButton_1hik1_121", yn = {
709
- container: Xt,
710
- title: Jt,
711
- addressCard: en,
712
- addressText: tn,
713
- editLink: nn,
714
- fieldGroup: sn,
715
- fieldLabel: an,
716
- input: on,
717
- checkboxRow: ln,
718
- checkbox: rn,
719
- checkboxLabel: un,
720
- error: cn,
721
- actions: dn,
722
- confirmButton: vn
723
- }, fn = {
724
- $style: yn
725
- }, Jl = /* @__PURE__ */ V(Yt, [["__cssModules", fn]]);
726
- function Ae(n, s, l, o, u, r) {
727
- const d = [
728
- n.on("answerChange", (v) => {
708
+ }), en = "_container_1hik1_4", tn = "_title_1hik1_8", nn = "_addressCard_1hik1_17", sn = "_addressText_1hik1_27", on = "_editLink_1hik1_35", an = "_fieldGroup_1hik1_48", ln = "_fieldLabel_1hik1_52", rn = "_input_1hik1_61", un = "_checkboxRow_1hik1_85", cn = "_checkbox_1hik1_85", dn = "_checkboxLabel_1hik1_102", vn = "_error_1hik1_109", yn = "_actions_1hik1_116", pn = "_confirmButton_1hik1_121", fn = {
709
+ container: en,
710
+ title: tn,
711
+ addressCard: nn,
712
+ addressText: sn,
713
+ editLink: on,
714
+ fieldGroup: an,
715
+ fieldLabel: ln,
716
+ input: rn,
717
+ checkboxRow: un,
718
+ checkbox: cn,
719
+ checkboxLabel: dn,
720
+ error: vn,
721
+ actions: yn,
722
+ confirmButton: pn
723
+ }, mn = {
724
+ $style: fn
725
+ }, tr = /* @__PURE__ */ G(Jt, [["__cssModules", mn]]);
726
+ function Ae(t, o, a, l, u, r) {
727
+ const v = [
728
+ t.on("answerChange", (d) => {
729
729
  var i;
730
- s.value = n.answers, u.value = [...n.visiblePages], v.type === "answerChange" && ((i = r.onAnswerChange) == null || i.call(r, v.key, v.value));
730
+ o.value = t.answers, u.value = [...t.visiblePages], d.type === "answerChange" && ((i = r.onAnswerChange) == null || i.call(r, d.key, d.value));
731
731
  }),
732
- n.on("pageChange", (v) => {
732
+ t.on("pageChange", (d) => {
733
733
  var i;
734
- v.type === "pageChange" && (l.value = v.pageId, u.value = [...n.visiblePages], o.value = {}, (i = r.onPageChange) == null || i.call(r, v.pageIndex, v.pageId));
734
+ d.type === "pageChange" && (a.value = d.pageId, u.value = [...t.visiblePages], l.value = {}, (i = r.onPageChange) == null || i.call(r, d.pageIndex, d.pageId));
735
735
  }),
736
- n.on("validationError", (v) => {
737
- v.type === "validationError" && (o.value = v.errors);
736
+ t.on("validationError", (d) => {
737
+ d.type === "validationError" && (l.value = d.errors);
738
738
  }),
739
- n.on("submit", (v) => {
740
- v.type === "submit" && r.onSubmit(v.answers);
739
+ t.on("submit", (d) => {
740
+ d.type === "submit" && r.onSubmit(d.answers);
741
741
  })
742
742
  ];
743
- return () => d.forEach((v) => v());
743
+ return () => v.forEach((d) => d());
744
744
  }
745
- function pn(n) {
746
- var R, Z, N;
747
- let s = Me({
748
- initialAnswers: n.getInitialAnswers(),
749
- skipPages: (R = n.getSkipPages) == null ? void 0 : R.call(n)
745
+ function gn(t) {
746
+ var Z, j, O;
747
+ let o = Me({
748
+ initialAnswers: t.getInitialAnswers(),
749
+ skipPages: (Z = t.getSkipPages) == null ? void 0 : Z.call(t)
750
750
  });
751
- const l = I(s.answers), o = I(((Z = s.currentPage) == null ? void 0 : Z.id) ?? ""), u = I({}), r = I(s.visiblePages);
752
- let d = Ae(
753
- s,
754
- l,
751
+ const a = I(o.answers), l = I(((j = o.currentPage) == null ? void 0 : j.id) ?? ""), u = I({}), r = I(o.visiblePages);
752
+ let v = Ae(
755
753
  o,
754
+ a,
755
+ l,
756
756
  u,
757
757
  r,
758
- n
758
+ t
759
759
  );
760
- (N = n.onReady) == null || N.call(n), ee(
760
+ (O = t.onReady) == null || O.call(t), ee(
761
761
  () => {
762
- var D;
763
- return (((D = n.getSkipPages) == null ? void 0 : D.call(n)) ?? []).join("|");
762
+ var S;
763
+ return (((S = t.getSkipPages) == null ? void 0 : S.call(t)) ?? []).join("|");
764
764
  },
765
765
  () => {
766
- var D, U;
767
- d(), s.destroy(), s = Me({
768
- initialAnswers: n.getInitialAnswers(),
769
- skipPages: (D = n.getSkipPages) == null ? void 0 : D.call(n)
770
- }), l.value = s.answers, o.value = ((U = s.currentPage) == null ? void 0 : U.id) ?? "", u.value = {}, r.value = s.visiblePages, d = Ae(
771
- s,
772
- l,
766
+ var S, U;
767
+ v(), o.destroy(), o = Me({
768
+ initialAnswers: t.getInitialAnswers(),
769
+ skipPages: (S = t.getSkipPages) == null ? void 0 : S.call(t)
770
+ }), a.value = o.answers, l.value = ((U = o.currentPage) == null ? void 0 : U.id) ?? "", u.value = {}, r.value = o.visiblePages, v = Ae(
773
771
  o,
772
+ a,
773
+ l,
774
774
  u,
775
775
  r,
776
- n
776
+ t
777
777
  );
778
778
  }
779
779
  );
780
- let v = n.getInitialAnswers();
781
- ee(n.getInitialAnswers, (D) => {
782
- D && D !== v && (v = D, s.setAnswers(D));
780
+ let d = t.getInitialAnswers();
781
+ ee(t.getInitialAnswers, (S) => {
782
+ S && S !== d && (d = S, o.setAnswers(S));
783
783
  });
784
784
  const i = w(() => {
785
- const D = r.value.findIndex(
786
- (U) => U.id === o.value
785
+ const S = r.value.findIndex(
786
+ (U) => U.id === l.value
787
787
  );
788
- return D >= 0 ? D : 0;
788
+ return S >= 0 ? S : 0;
789
789
  }), f = w(
790
790
  () => r.value[i.value]
791
- ), h = w(() => o.value ? (l.value, s.getVisibleQuestionsForCurrentPage()) : []), m = w(() => r.value.length <= 1 ? 0 : Math.min(
791
+ ), m = w(() => l.value ? (a.value, o.getVisibleQuestionsForCurrentPage()) : []), b = w(() => r.value.length <= 1 ? 0 : Math.min(
792
792
  1,
793
793
  Math.max(0, i.value / (r.value.length - 1))
794
- )), b = w(() => i.value === 0), L = w(
794
+ )), g = w(() => i.value === 0), L = w(
795
795
  () => r.value.length > 0 && i.value === r.value.length - 1
796
796
  );
797
- function M(D, U) {
798
- s.setAnswer(D, U);
797
+ function M(S, U) {
798
+ o.setAnswer(S, U);
799
799
  }
800
- function q(D) {
801
- return l.value[D];
800
+ function D(S) {
801
+ return a.value[S];
802
802
  }
803
- function O() {
803
+ function H() {
804
804
  var U;
805
- const D = s.goToNext();
806
- if (!D.valid)
805
+ const S = o.goToNext();
806
+ if (!S.valid)
807
807
  try {
808
- (U = n.onError) == null || U.call(
809
- n,
808
+ (U = t.onError) == null || U.call(
809
+ t,
810
810
  new Error(
811
- `Validation failed: ${Object.values(D.errors).join(", ")}`
811
+ `Validation failed: ${Object.values(S.errors).join(", ")}`
812
812
  )
813
813
  );
814
- } catch (Y) {
815
- console.error("[DtcOnboardingFlow] onError callback threw:", Y);
814
+ } catch (Q) {
815
+ console.error("[DtcOnboardingFlow] onError callback threw:", Q);
816
816
  }
817
817
  }
818
- function T() {
819
- s.goToPrev();
818
+ function A() {
819
+ o.goToPrev();
820
820
  }
821
- return le(() => {
822
- d(), s.destroy();
821
+ return ae(() => {
822
+ v(), o.destroy();
823
823
  }), {
824
- engine: s,
824
+ engine: o,
825
825
  currentPage: f,
826
826
  currentPageIndex: i,
827
827
  visiblePages: r,
828
- visibleQuestions: h,
829
- answers: l,
828
+ visibleQuestions: m,
829
+ answers: a,
830
830
  validationErrors: u,
831
- progress: m,
832
- isFirstPage: b,
831
+ progress: b,
832
+ isFirstPage: g,
833
833
  isLastPage: L,
834
834
  setAnswer: M,
835
- getAnswer: q,
836
- goToNext: O,
837
- goToPrev: T
835
+ getAnswer: D,
836
+ goToNext: H,
837
+ goToPrev: A
838
838
  };
839
839
  }
840
- const hn = /* @__PURE__ */ F({
840
+ const hn = /* @__PURE__ */ x({
841
841
  __name: "DtcProvider",
842
842
  props: {
843
843
  initialAnswers: {},
@@ -848,51 +848,51 @@ const hn = /* @__PURE__ */ F({
848
848
  onReady: { type: Function },
849
849
  onError: { type: Function }
850
850
  },
851
- setup(n) {
852
- const s = n, l = pn({
853
- getInitialAnswers: () => s.initialAnswers,
854
- getSkipPages: () => s.skipPages,
855
- onSubmit: (o) => s.onSubmit(o),
856
- onPageChange: (o, u) => {
851
+ setup(t) {
852
+ const o = t, a = gn({
853
+ getInitialAnswers: () => o.initialAnswers,
854
+ getSkipPages: () => o.skipPages,
855
+ onSubmit: (l) => o.onSubmit(l),
856
+ onPageChange: (l, u) => {
857
857
  var r;
858
- return (r = s.onPageChange) == null ? void 0 : r.call(s, o, u);
858
+ return (r = o.onPageChange) == null ? void 0 : r.call(o, l, u);
859
859
  },
860
- onAnswerChange: (o, u) => {
860
+ onAnswerChange: (l, u) => {
861
861
  var r;
862
- return (r = s.onAnswerChange) == null ? void 0 : r.call(s, o, u);
862
+ return (r = o.onAnswerChange) == null ? void 0 : r.call(o, l, u);
863
863
  },
864
864
  onReady: () => {
865
- var o;
866
- return (o = s.onReady) == null ? void 0 : o.call(s);
865
+ var l;
866
+ return (l = o.onReady) == null ? void 0 : l.call(o);
867
867
  },
868
- onError: (o) => {
868
+ onError: (l) => {
869
869
  var u;
870
- return (u = s.onError) == null ? void 0 : u.call(s, o);
870
+ return (u = o.onError) == null ? void 0 : u.call(o, l);
871
871
  }
872
872
  });
873
- return de("dtc-onboarding", l), (o, u) => ce(o.$slots, "default");
873
+ return de("dtc-onboarding", a), (l, u) => ce(l.$slots, "default");
874
874
  }
875
- }), mn = ["src"], gn = /* @__PURE__ */ F({
876
- __name: "DtcHeader",
875
+ }), bn = ["src"], $n = /* @__PURE__ */ x({
876
+ __name: "OpendoorHeader",
877
877
  props: {
878
878
  partnerLogoUrl: {},
879
879
  showCloseButton: { type: Boolean }
880
880
  },
881
881
  emits: ["close"],
882
- setup(n, { emit: s }) {
883
- const l = s;
884
- return (o, u) => (c(), p("header", {
885
- class: e(o.$style.header)
882
+ setup(t, { emit: o }) {
883
+ const a = o;
884
+ return (l, u) => (c(), p("header", {
885
+ class: e(l.$style.header)
886
886
  }, [
887
- t("div", {
888
- class: e(o.$style.headerLogos)
887
+ n("div", {
888
+ class: e(l.$style.headerLogos)
889
889
  }, [
890
- n.partnerLogoUrl ? (c(), p("img", {
890
+ t.partnerLogoUrl ? (c(), p("img", {
891
891
  key: 0,
892
- src: n.partnerLogoUrl,
892
+ src: t.partnerLogoUrl,
893
893
  alt: "Partner",
894
- class: e(o.$style.headerPartnerLogo)
895
- }, null, 10, mn)) : E("", !0),
894
+ class: e(l.$style.partnerLogo)
895
+ }, null, 10, bn)) : E("", !0),
896
896
  (c(), p("svg", {
897
897
  width: "90",
898
898
  height: "18",
@@ -901,22 +901,22 @@ const hn = /* @__PURE__ */ F({
901
901
  xmlns: "http://www.w3.org/2000/svg",
902
902
  "aria-label": "Opendoor",
903
903
  role: "img",
904
- class: e(o.$style.headerOpendoorLogo)
904
+ class: e(l.$style.opendoorLogo)
905
905
  }, [...u[1] || (u[1] = [
906
- t("path", {
906
+ n("path", {
907
907
  d: "M21.8975 5.53219C22.0296 5.51725 22.144 5.62372 22.1396 5.7568L22.0928 7.21773H22.2148C23.2408 6.33834 24.6088 5.53316 26.3184 5.53316C28.6383 5.53337 31.1045 7.07197 31.1045 11.542C31.1044 16.6229 28.1252 18.8456 24.0469 18.8457C23.5341 18.8457 22.7277 18.748 22.1904 18.6015C22.1904 18.6015 22.2148 19.2369 22.2148 20.0918V23.4072C22.2148 23.5083 22.1393 23.593 22.0391 23.6045L18.5527 23.999C18.4349 24.0122 18.332 23.9191 18.332 23.8007V6.11324C18.332 6.01204 18.4082 5.92743 18.5088 5.91597L21.8975 5.53219ZM8.35254 1.33101C12.5528 1.33111 16.5088 3.8474 16.5088 9.90523C16.5088 16.3784 12.0884 18.8457 8.15625 18.8457C3.95617 18.8455 0 16.1584 0 10.2959C9.43202e-05 3.87138 4.42045 1.33101 8.35254 1.33101ZM38.9141 5.53219C42.245 5.53219 44.3351 7.17875 44.4541 11.4853C44.4565 11.5689 44.3887 11.6395 44.3047 11.6396H36.5518C36.4679 11.6398 36.4004 11.7102 36.4023 11.7939C36.5116 15.6741 38.0191 16.7451 40.502 16.7451C41.7135 16.745 42.6903 16.4632 43.5078 16.1005C43.5679 16.0738 43.6377 16.0896 43.6807 16.1396L44.0059 16.5214C44.0548 16.579 44.0546 16.6649 44.0029 16.7197C43.1121 17.6594 41.298 18.8457 38.9141 18.8457C34.6647 18.8457 32.54 16.3051 32.54 12.1523C32.5401 7.90199 35.6904 5.53219 38.9141 5.53219ZM71.8682 0.000935719C72.0069 -0.0114562 72.1257 0.100879 72.1191 0.240194C72.0964 0.716622 72.0527 1.87639 72.0527 3.13863V18.2412C72.0527 18.3558 71.9689 18.4538 71.8555 18.4697L68.5049 18.8437C68.3628 18.8638 68.2375 18.75 68.2432 18.6064L68.292 17.2578H68.1943C67.1441 18.1614 65.7768 18.8456 64.0674 18.8457C61.6496 18.8457 59.2804 17.087 59.2803 12.6416C59.2803 7.56051 62.5533 5.53219 66.3633 5.53219C67.0224 5.5322 67.706 5.65511 68.2188 5.80172C68.2188 5.80172 68.1699 4.89765 68.1699 4.01851V0.598592C68.1699 0.495514 68.2491 0.40955 68.3516 0.40035L71.8682 0.000935719ZM80.29 5.53219C83.831 5.53235 86.9325 7.65789 86.9326 12.1035C86.9326 16.7934 83.66 18.8455 80.29 18.8457C76.7489 18.8457 73.6719 16.6956 73.6719 12.2255C73.672 7.53545 76.993 5.53219 80.29 5.53219ZM94.8555 5.53219C98.3966 5.53219 101.498 7.65772 101.498 12.1035C101.498 16.7936 98.2258 18.8457 94.8555 18.8457C91.3146 18.8456 88.2373 16.6956 88.2373 12.2255C88.2375 7.53549 91.5587 5.53222 94.8555 5.53219ZM49.54 5.52828C49.6571 5.51515 49.7585 5.60852 49.7549 5.72652L49.707 7.26656H49.8047C51.0989 6.33849 52.7115 5.53219 54.4941 5.53219C56.5697 5.53235 57.6932 6.6075 57.6934 8.80562V18.3593C57.6931 18.4662 57.6057 18.5527 57.499 18.5527H53.9795C53.8728 18.5527 53.7854 18.4662 53.7852 18.3593V9.75875C53.7852 8.26873 53.2482 7.80466 52.1006 7.80465C51.2456 7.80465 50.3663 7.9998 49.8291 8.12203V18.3593C49.8289 18.4661 49.7423 18.5526 49.6357 18.5527H46.1396C46.033 18.5527 45.9465 18.4662 45.9463 18.3593V6.11324C45.9463 6.01204 46.0226 5.92724 46.123 5.91597L49.54 5.52828ZM110.574 5.53219C111.746 5.53219 112.574 6.1674 112.574 7.36422C112.574 8.53675 111.722 9.29195 110.77 9.29195C109.721 9.29192 109.354 8.85463 108.89 8.09762C108.743 7.82894 108.596 7.78023 108.376 7.78023C107.937 7.78032 107.375 8.09738 107.033 8.415V18.3222C107.033 18.4491 106.93 18.5527 106.803 18.5527H103.38C103.253 18.5527 103.15 18.4491 103.15 18.3222V6.11324C103.15 6.01203 103.226 5.92743 103.326 5.91597L106.703 5.53707C106.842 5.52148 106.963 5.63273 106.959 5.77242L106.911 7.41305H107.009C107.766 6.60703 109.158 5.53219 110.574 5.53219ZM80.2158 6.48531C78.6774 6.48551 77.7744 7.60933 77.7744 11.8105C77.7744 16.818 78.5799 17.8924 80.3623 17.8925C81.8279 17.8925 82.8291 17.0378 82.8291 12.3476C82.8291 7.41346 81.8766 6.48531 80.2158 6.48531ZM94.7822 6.48531C93.2437 6.48537 92.3399 7.60905 92.3398 11.8105C92.3398 16.8181 93.1462 17.8924 94.9287 17.8925C96.3942 17.8925 97.3955 17.0378 97.3955 12.3476C97.3955 7.41346 96.443 6.48531 94.7822 6.48531ZM24.1934 7.65816C23.2165 7.65816 22.6057 7.95117 22.2148 8.09762V16.9892C22.6546 17.5022 23.3141 17.8691 24.1445 17.8691C26.0737 17.8691 27.0996 16.8424 27.0996 12.372C27.0996 8.8791 26.0493 7.65823 24.1934 7.65816ZM8.20605 2.35738C5.83698 2.35738 4.63965 4.01812 4.63965 9.78316C4.63965 15.4746 5.56842 17.8203 8.30371 17.8203C10.7211 17.8201 11.8691 16.1825 11.8691 10.4423C11.8691 4.72668 10.8919 2.35759 8.20605 2.35738ZM66.2656 6.50972C64.5074 6.50972 63.2861 7.80421 63.2861 11.8349C63.2861 15.67 64.2631 16.916 66.1191 16.916C67.1198 16.9159 67.7791 16.5256 68.1699 16.3789V7.53512C67.7548 7.02239 67.1689 6.50989 66.2656 6.50972ZM38.7188 6.4609C37.4732 6.46096 36.4961 7.63335 36.3984 10.7109L40.5752 10.4912C40.5752 7.53568 40.1842 6.4609 38.7188 6.4609Z",
908
908
  fill: "#235ca3"
909
909
  }, null, -1)
910
910
  ])], 2))
911
911
  ], 2),
912
- n.showCloseButton ? (c(), p("button", {
912
+ t.showCloseButton ? (c(), p("button", {
913
913
  key: 0,
914
914
  type: "button",
915
- class: e(o.$style.headerCloseButton),
915
+ class: e(l.$style.closeButton),
916
916
  "aria-label": "Close",
917
- onClick: u[0] || (u[0] = (r) => l("close"))
917
+ onClick: u[0] || (u[0] = (r) => a("close"))
918
918
  }, [...u[2] || (u[2] = [
919
- t("svg", {
919
+ n("svg", {
920
920
  width: "24",
921
921
  height: "24",
922
922
  viewBox: "0 0 24 24",
@@ -926,13 +926,13 @@ const hn = /* @__PURE__ */ F({
926
926
  "stroke-linecap": "round",
927
927
  "stroke-linejoin": "round"
928
928
  }, [
929
- t("line", {
929
+ n("line", {
930
930
  x1: "18",
931
931
  y1: "6",
932
932
  x2: "6",
933
933
  y2: "18"
934
934
  }),
935
- t("line", {
935
+ n("line", {
936
936
  x1: "6",
937
937
  y1: "6",
938
938
  x2: "18",
@@ -942,245 +942,245 @@ const hn = /* @__PURE__ */ F({
942
942
  ])], 2)) : E("", !0)
943
943
  ], 2));
944
944
  }
945
- }), bn = "_header_uo1uz_2", $n = "_headerLogos_uo1uz_12", Cn = "_headerPartnerLogo_uo1uz_18", kn = "_headerOpendoorLogo_uo1uz_24", _n = "_headerCloseButton_uo1uz_28", wn = {
946
- header: bn,
947
- headerLogos: $n,
948
- headerPartnerLogo: Cn,
949
- headerOpendoorLogo: kn,
950
- headerCloseButton: _n
951
- }, Ln = {
952
- $style: wn
953
- }, In = /* @__PURE__ */ V(gn, [["__cssModules", Ln]]), Sn = ["aria-label"], Dn = ["aria-checked", "tabindex", "onClick", "onKeydown"], En = /* @__PURE__ */ F({
945
+ }), kn = "_header_1yqce_2", Cn = "_headerLogos_1yqce_12", _n = "_partnerLogo_1yqce_18", wn = "_opendoorLogo_1yqce_24", Ln = "_closeButton_1yqce_28", In = {
946
+ header: kn,
947
+ headerLogos: Cn,
948
+ partnerLogo: _n,
949
+ opendoorLogo: wn,
950
+ closeButton: Ln
951
+ }, Sn = {
952
+ $style: In
953
+ }, je = /* @__PURE__ */ G($n, [["__cssModules", Sn]]), qn = ["aria-label"], En = ["aria-checked", "tabindex", "onClick", "onKeydown"], Dn = /* @__PURE__ */ x({
954
954
  __name: "RadioCardInput",
955
955
  props: {
956
956
  question: {}
957
957
  },
958
- setup(n) {
959
- const s = x("dtc-onboarding");
960
- let l = null;
961
- le(() => {
962
- l && clearTimeout(l);
958
+ setup(t) {
959
+ const o = V("dtc-onboarding");
960
+ let a = null;
961
+ ae(() => {
962
+ a && clearTimeout(a);
963
963
  });
964
- function o(r, d) {
965
- s.setAnswer(r.key, d), r.autoAdvance && (l && clearTimeout(l), l = setTimeout(() => s.goToNext(), 150));
964
+ function l(r, v) {
965
+ o.setAnswer(r.key, v), r.autoAdvance && (a && clearTimeout(a), a = setTimeout(() => o.goToNext(), 150));
966
966
  }
967
- function u(r, d, v) {
968
- var h, m;
969
- const i = v.options;
967
+ function u(r, v, d) {
968
+ var m, b;
969
+ const i = d.options;
970
970
  if (!i) return;
971
971
  let f = null;
972
- if (r.key === "ArrowDown" || r.key === "ArrowRight" ? (r.preventDefault(), f = (d + 1) % i.length) : (r.key === "ArrowUp" || r.key === "ArrowLeft") && (r.preventDefault(), f = (d - 1 + i.length) % i.length), f !== null) {
973
- const b = (h = r.currentTarget.closest('[role="radiogroup"]')) == null ? void 0 : h.querySelectorAll('[role="radio"]');
974
- (m = b == null ? void 0 : b[f]) == null || m.focus(), o(v, i[f].value);
972
+ if (r.key === "ArrowDown" || r.key === "ArrowRight" ? (r.preventDefault(), f = (v + 1) % i.length) : (r.key === "ArrowUp" || r.key === "ArrowLeft") && (r.preventDefault(), f = (v - 1 + i.length) % i.length), f !== null) {
973
+ const g = (m = r.currentTarget.closest('[role="radiogroup"]')) == null ? void 0 : m.querySelectorAll('[role="radio"]');
974
+ (b = g == null ? void 0 : g[f]) == null || b.focus(), l(d, i[f].value);
975
975
  }
976
976
  }
977
- return (r, d) => (c(), p("div", {
977
+ return (r, v) => (c(), p("div", {
978
978
  class: e(r.$style.radioCardGroup),
979
979
  role: "radiogroup",
980
- "aria-label": n.question.label
980
+ "aria-label": t.question.label
981
981
  }, [
982
- (c(!0), p(j, null, Q(n.question.options, (v, i) => (c(), p("button", {
983
- key: String(v.value),
982
+ (c(!0), p(N, null, Y(t.question.options, (d, i) => (c(), p("button", {
983
+ key: String(d.value),
984
984
  type: "button",
985
985
  role: "radio",
986
- "aria-checked": B(s).getAnswer(n.question.key) === v.value,
987
- tabindex: B(s).getAnswer(n.question.key) === v.value || i === 0 && B(s).getAnswer(n.question.key) === void 0 ? 0 : -1,
986
+ "aria-checked": P(o).getAnswer(t.question.key) === d.value,
987
+ tabindex: P(o).getAnswer(t.question.key) === d.value || i === 0 && P(o).getAnswer(t.question.key) === void 0 ? 0 : -1,
988
988
  class: e([
989
989
  r.$style.radioCard,
990
- B(s).getAnswer(n.question.key) === v.value ? r.$style.radioCardSelected : ""
990
+ P(o).getAnswer(t.question.key) === d.value ? r.$style.radioCardSelected : ""
991
991
  ]),
992
- onClick: (f) => o(n.question, v.value),
993
- onKeydown: (f) => u(f, i, n.question)
992
+ onClick: (f) => l(t.question, d.value),
993
+ onKeydown: (f) => u(f, i, t.question)
994
994
  }, [
995
- t("span", {
995
+ n("span", {
996
996
  class: e(r.$style.radioCardLabel)
997
- }, _(v.label), 3),
998
- v.description ? (c(), p("span", {
997
+ }, _(d.label), 3),
998
+ d.description ? (c(), p("span", {
999
999
  key: 0,
1000
1000
  class: e(r.$style.radioCardDescription)
1001
- }, _(v.description), 3)) : E("", !0)
1002
- ], 42, Dn))), 128)),
1003
- B(s).validationErrors.value[n.question.key] ? (c(), p("p", {
1001
+ }, _(d.description), 3)) : E("", !0)
1002
+ ], 42, En))), 128)),
1003
+ P(o).validationErrors.value[t.question.key] ? (c(), p("p", {
1004
1004
  key: 0,
1005
1005
  class: e(r.$style.fieldError),
1006
1006
  role: "alert"
1007
- }, _(B(s).validationErrors.value[n.question.key]), 3)) : E("", !0)
1008
- ], 10, Sn));
1007
+ }, _(P(o).validationErrors.value[t.question.key]), 3)) : E("", !0)
1008
+ ], 10, qn));
1009
1009
  }
1010
- }), qn = "_radioCardGroup_11rwj_2", Mn = "_radioCard_11rwj_2", An = "_radioCardSelected_11rwj_34", Tn = "_radioCardLabel_11rwj_39", Pn = "_radioCardDescription_11rwj_45", Bn = "_fieldError_11rwj_50", Fn = {
1011
- radioCardGroup: qn,
1012
- radioCard: Mn,
1013
- radioCardSelected: An,
1014
- radioCardLabel: Tn,
1010
+ }), Mn = "_radioCardGroup_11rwj_2", An = "_radioCard_11rwj_2", Tn = "_radioCardSelected_11rwj_34", Bn = "_radioCardLabel_11rwj_39", Pn = "_radioCardDescription_11rwj_45", jn = "_fieldError_11rwj_50", xn = {
1011
+ radioCardGroup: Mn,
1012
+ radioCard: An,
1013
+ radioCardSelected: Tn,
1014
+ radioCardLabel: Bn,
1015
1015
  radioCardDescription: Pn,
1016
- fieldError: Bn
1017
- }, Rn = {
1018
- $style: Fn
1019
- }, Nn = /* @__PURE__ */ V(En, [["__cssModules", Rn]]), Gn = "https://images.opendoor.com/source/s3/imgdrop-production", On = "service=reception-fe&dpr=2&fit=scale-down";
1020
- function H(n, s = "3:2-sm") {
1021
- return `${Gn}/${n}?${On}&preset=${s}`;
1016
+ fieldError: jn
1017
+ }, Fn = {
1018
+ $style: xn
1019
+ }, Rn = /* @__PURE__ */ G(Dn, [["__cssModules", Fn]]), Nn = "https://images.opendoor.com/source/s3/imgdrop-production", Gn = "service=reception-fe&dpr=2&fit=scale-down";
1020
+ function R(t, o = "3:2-sm") {
1021
+ return `${Nn}/${t}?${Gn}&preset=${o}`;
1022
1022
  }
1023
1023
  const Hn = {
1024
1024
  // Kitchen
1025
- "kitchen-fixer_upper": H("2023-04-1681772974083-61414.png"),
1026
- "kitchen-dated": H("2023-04-1681772974089-39460.png"),
1027
- "kitchen-standard": H("2023-04-1681772974093-51260.png"),
1028
- "kitchen-high_end": H("2023-04-1682444345875-57331.jpeg", "3:2-xl"),
1029
- "kitchen-luxury": H("2023-04-1682444629335-69661.jpeg", "3:2-xl"),
1025
+ "kitchen-fixer_upper": R("2023-04-1681772974083-61414.png"),
1026
+ "kitchen-dated": R("2023-04-1681772974089-39460.png"),
1027
+ "kitchen-standard": R("2023-04-1681772974093-51260.png"),
1028
+ "kitchen-high_end": R("2023-04-1682444345875-57331.jpeg", "3:2-xl"),
1029
+ "kitchen-luxury": R("2023-04-1682444629335-69661.jpeg", "3:2-xl"),
1030
1030
  // Bathroom
1031
- "bathroom-fixer_upper": H("2023-04-1682103091299-33543.jpeg"),
1032
- "bathroom-dated": H("2023-04-1681773104207-98555.png"),
1033
- "bathroom-standard": H("2023-04-1682103088251-79730.jpeg", "3:2-xl"),
1034
- "bathroom-high_end": H("2023-04-1681773104214-77488.png"),
1035
- "bathroom-luxury": H("2023-04-1681773104217-27390.png"),
1031
+ "bathroom-fixer_upper": R("2023-04-1682103091299-33543.jpeg"),
1032
+ "bathroom-dated": R("2023-04-1681773104207-98555.png"),
1033
+ "bathroom-standard": R("2023-04-1682103088251-79730.jpeg", "3:2-xl"),
1034
+ "bathroom-high_end": R("2023-04-1681773104214-77488.png"),
1035
+ "bathroom-luxury": R("2023-04-1681773104217-27390.png"),
1036
1036
  // Living Room
1037
- "living-room-fixer_upper": H("2023-04-1681773170815-60328.png"),
1038
- "living-room-dated": H("2023-04-1681773170823-03451.png"),
1039
- "living-room-standard": H("2023-04-1681773170826-47471.png"),
1040
- "living-room-high_end": H("2023-04-1681773170828-76415.png"),
1041
- "living-room-luxury": H("2023-04-1681773170832-20699.png"),
1037
+ "living-room-fixer_upper": R("2023-04-1681773170815-60328.png"),
1038
+ "living-room-dated": R("2023-04-1681773170823-03451.png"),
1039
+ "living-room-standard": R("2023-04-1681773170826-47471.png"),
1040
+ "living-room-high_end": R("2023-04-1681773170828-76415.png"),
1041
+ "living-room-luxury": R("2023-04-1681773170832-20699.png"),
1042
1042
  // Exterior
1043
- "exterior-fixer_upper": H("2023-04-1681773220493-46489.png"),
1044
- "exterior-dated": H("2023-04-1681773220495-22229.png"),
1045
- "exterior-standard": H("2023-04-1681773220498-64940.png"),
1046
- "exterior-high_end": H("2023-04-1682103085417-24272.jpeg", "3:2-md"),
1047
- "exterior-luxury": H("2023-04-1681773220487-59852.png")
1048
- }, jn = ["aria-label"], Vn = ["aria-checked", "onClick"], xn = ["src", "alt"], Un = /* @__PURE__ */ F({
1043
+ "exterior-fixer_upper": R("2023-04-1681773220493-46489.png"),
1044
+ "exterior-dated": R("2023-04-1681773220495-22229.png"),
1045
+ "exterior-standard": R("2023-04-1681773220498-64940.png"),
1046
+ "exterior-high_end": R("2023-04-1682103085417-24272.jpeg", "3:2-md"),
1047
+ "exterior-luxury": R("2023-04-1681773220487-59852.png")
1048
+ }, On = ["aria-label"], Vn = ["aria-checked", "onClick"], Un = ["src", "alt"], Zn = /* @__PURE__ */ x({
1049
1049
  __name: "ImageCardInput",
1050
1050
  props: {
1051
1051
  question: {}
1052
1052
  },
1053
- setup(n) {
1054
- const s = x("dtc-onboarding");
1055
- let l = null;
1056
- le(() => {
1057
- l && clearTimeout(l);
1053
+ setup(t) {
1054
+ const o = V("dtc-onboarding");
1055
+ let a = null;
1056
+ ae(() => {
1057
+ a && clearTimeout(a);
1058
1058
  });
1059
- function o(r, d) {
1060
- s.setAnswer(r.key, d), r.autoAdvance && (l && clearTimeout(l), l = setTimeout(() => s.goToNext(), 300));
1059
+ function l(r, v) {
1060
+ o.setAnswer(r.key, v), r.autoAdvance && (a && clearTimeout(a), a = setTimeout(() => o.goToNext(), 300));
1061
1061
  }
1062
1062
  function u(r) {
1063
1063
  return r ? Hn[r] : void 0;
1064
1064
  }
1065
- return (r, d) => (c(), p("div", {
1065
+ return (r, v) => (c(), p("div", {
1066
1066
  class: e(r.$style.imageCardGroup),
1067
1067
  role: "radiogroup",
1068
- "aria-label": n.question.label
1068
+ "aria-label": t.question.label
1069
1069
  }, [
1070
- (c(!0), p(j, null, Q(n.question.options, (v) => (c(), p("button", {
1071
- key: String(v.value),
1070
+ (c(!0), p(N, null, Y(t.question.options, (d) => (c(), p("button", {
1071
+ key: String(d.value),
1072
1072
  type: "button",
1073
1073
  role: "radio",
1074
- "aria-checked": B(s).getAnswer(n.question.key) === v.value,
1074
+ "aria-checked": P(o).getAnswer(t.question.key) === d.value,
1075
1075
  class: e([
1076
1076
  r.$style.imageCard,
1077
- B(s).getAnswer(n.question.key) === v.value ? r.$style.imageCardSelected : ""
1077
+ P(o).getAnswer(t.question.key) === d.value ? r.$style.imageCardSelected : ""
1078
1078
  ]),
1079
- onClick: (i) => o(n.question, v.value)
1079
+ onClick: (i) => l(t.question, d.value)
1080
1080
  }, [
1081
- u(v.imageId) ? (c(), p("img", {
1081
+ u(d.imageId) ? (c(), p("img", {
1082
1082
  key: 0,
1083
- src: u(v.imageId),
1084
- alt: v.label,
1083
+ src: u(d.imageId),
1084
+ alt: d.label,
1085
1085
  class: e(r.$style.imageCardPhoto),
1086
1086
  loading: "lazy"
1087
- }, null, 10, xn)) : E("", !0),
1088
- t("span", {
1087
+ }, null, 10, Un)) : E("", !0),
1088
+ n("span", {
1089
1089
  class: e(r.$style.imageCardLabel)
1090
- }, _(v.label), 3),
1091
- v.description ? (c(), p("span", {
1090
+ }, _(d.label), 3),
1091
+ d.description ? (c(), p("span", {
1092
1092
  key: 1,
1093
1093
  class: e(r.$style.imageCardDescription)
1094
- }, _(v.description), 3)) : E("", !0)
1094
+ }, _(d.description), 3)) : E("", !0)
1095
1095
  ], 10, Vn))), 128)),
1096
- B(s).validationErrors.value[n.question.key] ? (c(), p("p", {
1096
+ P(o).validationErrors.value[t.question.key] ? (c(), p("p", {
1097
1097
  key: 0,
1098
1098
  class: e(r.$style.fieldError),
1099
1099
  role: "alert"
1100
- }, _(B(s).validationErrors.value[n.question.key]), 3)) : E("", !0)
1101
- ], 10, jn));
1100
+ }, _(P(o).validationErrors.value[t.question.key]), 3)) : E("", !0)
1101
+ ], 10, On));
1102
1102
  }
1103
- }), Zn = "_imageCardGroup_1vc6c_2", zn = "_imageCard_1vc6c_2", Wn = "_imageCardSelected_1vc6c_34", Kn = "_imageCardPhoto_1vc6c_39", Qn = "_imageCardLabel_1vc6c_46", Yn = "_imageCardDescription_1vc6c_53", Xn = "_fieldError_1vc6c_60", Jn = {
1104
- imageCardGroup: Zn,
1103
+ }), Wn = "_imageCardGroup_1vc6c_2", zn = "_imageCard_1vc6c_2", Kn = "_imageCardSelected_1vc6c_34", Qn = "_imageCardPhoto_1vc6c_39", Yn = "_imageCardLabel_1vc6c_46", Xn = "_imageCardDescription_1vc6c_53", Jn = "_fieldError_1vc6c_60", es = {
1104
+ imageCardGroup: Wn,
1105
1105
  imageCard: zn,
1106
- imageCardSelected: Wn,
1107
- imageCardPhoto: Kn,
1108
- imageCardLabel: Qn,
1109
- imageCardDescription: Yn,
1110
- fieldError: Xn
1111
- }, es = {
1112
- $style: Jn
1113
- }, ts = /* @__PURE__ */ V(Un, [["__cssModules", es]]), ns = ["aria-label"], ss = ["aria-checked", "onClick"], as = {
1106
+ imageCardSelected: Kn,
1107
+ imageCardPhoto: Qn,
1108
+ imageCardLabel: Yn,
1109
+ imageCardDescription: Xn,
1110
+ fieldError: Jn
1111
+ }, ts = {
1112
+ $style: es
1113
+ }, ns = /* @__PURE__ */ G(Zn, [["__cssModules", ts]]), ss = ["aria-label"], os = ["aria-checked", "onClick"], as = {
1114
1114
  key: 0,
1115
1115
  width: "12",
1116
1116
  height: "12",
1117
1117
  viewBox: "0 0 12 12",
1118
1118
  fill: "none"
1119
- }, os = /* @__PURE__ */ F({
1119
+ }, ls = /* @__PURE__ */ x({
1120
1120
  __name: "CheckboxCardInput",
1121
1121
  props: {
1122
1122
  question: {}
1123
1123
  },
1124
- setup(n) {
1125
- const s = n, l = x("dtc-onboarding"), o = w(
1126
- () => l.getAnswer(s.question.key) ?? []
1124
+ setup(t) {
1125
+ const o = t, a = V("dtc-onboarding"), l = w(
1126
+ () => a.getAnswer(o.question.key) ?? []
1127
1127
  ), u = w(
1128
- () => l.validationErrors.value[s.question.key]
1128
+ () => a.validationErrors.value[o.question.key]
1129
1129
  );
1130
- function r(d) {
1130
+ function r(v) {
1131
1131
  var f;
1132
- const v = (f = s.question.options) == null ? void 0 : f.find((h) => h.value === d);
1133
- if (v != null && v.exclusive) {
1134
- l.setAnswer(s.question.key, [d]);
1132
+ const d = (f = o.question.options) == null ? void 0 : f.find((m) => m.value === v);
1133
+ if (d != null && d.exclusive) {
1134
+ a.setAnswer(o.question.key, [v]);
1135
1135
  return;
1136
1136
  }
1137
- const i = o.value.filter(
1138
- (h) => {
1139
- var m, b;
1140
- return !((b = (m = s.question.options) == null ? void 0 : m.find((L) => L.value === h)) != null && b.exclusive);
1137
+ const i = l.value.filter(
1138
+ (m) => {
1139
+ var b, g;
1140
+ return !((g = (b = o.question.options) == null ? void 0 : b.find((L) => L.value === m)) != null && g.exclusive);
1141
1141
  }
1142
1142
  );
1143
- if (i.includes(d)) {
1144
- const h = i.filter((m) => m !== d);
1145
- l.setAnswer(s.question.key, h.length > 0 ? h : void 0);
1143
+ if (i.includes(v)) {
1144
+ const m = i.filter((b) => b !== v);
1145
+ a.setAnswer(o.question.key, m.length > 0 ? m : void 0);
1146
1146
  } else
1147
- l.setAnswer(s.question.key, [...i, d]);
1147
+ a.setAnswer(o.question.key, [...i, v]);
1148
1148
  }
1149
- return (d, v) => (c(), p("div", {
1150
- class: e(d.$style.checkboxCardGroup),
1149
+ return (v, d) => (c(), p("div", {
1150
+ class: e(v.$style.checkboxCardGroup),
1151
1151
  role: "group",
1152
- "aria-label": n.question.label
1152
+ "aria-label": t.question.label
1153
1153
  }, [
1154
- (c(!0), p(j, null, Q(n.question.options, (i) => (c(), p("button", {
1154
+ (c(!0), p(N, null, Y(t.question.options, (i) => (c(), p("button", {
1155
1155
  key: String(i.value),
1156
1156
  type: "button",
1157
1157
  role: "checkbox",
1158
- "aria-checked": o.value.includes(String(i.value)),
1158
+ "aria-checked": l.value.includes(String(i.value)),
1159
1159
  class: e([
1160
- d.$style.checkboxCard,
1161
- o.value.includes(String(i.value)) ? d.$style.checkboxCardSelected : ""
1160
+ v.$style.checkboxCard,
1161
+ l.value.includes(String(i.value)) ? v.$style.checkboxCardSelected : ""
1162
1162
  ]),
1163
1163
  onClick: (f) => r(String(i.value))
1164
1164
  }, [
1165
- t("span", {
1166
- class: e(d.$style.checkboxCardContent)
1165
+ n("span", {
1166
+ class: e(v.$style.checkboxCardContent)
1167
1167
  }, [
1168
- t("span", {
1169
- class: e(d.$style.checkboxCardLabel)
1168
+ n("span", {
1169
+ class: e(v.$style.checkboxCardLabel)
1170
1170
  }, _(i.label), 3),
1171
1171
  i.helperText ? (c(), p("span", {
1172
1172
  key: 0,
1173
- class: e(d.$style.checkboxCardHelper)
1173
+ class: e(v.$style.checkboxCardHelper)
1174
1174
  }, _(i.helperText), 3)) : E("", !0)
1175
1175
  ], 2),
1176
- t("span", {
1176
+ n("span", {
1177
1177
  class: e([
1178
- d.$style.checkboxIndicator,
1179
- o.value.includes(String(i.value)) ? d.$style.checkboxIndicatorChecked : ""
1178
+ v.$style.checkboxIndicator,
1179
+ l.value.includes(String(i.value)) ? v.$style.checkboxIndicatorChecked : ""
1180
1180
  ])
1181
1181
  }, [
1182
- o.value.includes(String(i.value)) ? (c(), p("svg", as, [...v[0] || (v[0] = [
1183
- t("path", {
1182
+ l.value.includes(String(i.value)) ? (c(), p("svg", as, [...d[0] || (d[0] = [
1183
+ n("path", {
1184
1184
  d: "M2 6l3 3 5-5",
1185
1185
  stroke: "currentColor",
1186
1186
  "stroke-width": "2",
@@ -1189,420 +1189,420 @@ const Hn = {
1189
1189
  }, null, -1)
1190
1190
  ])])) : E("", !0)
1191
1191
  ], 2)
1192
- ], 10, ss))), 128)),
1192
+ ], 10, os))), 128)),
1193
1193
  u.value ? (c(), p("p", {
1194
1194
  key: 0,
1195
- class: e(d.$style.fieldError),
1195
+ class: e(v.$style.fieldError),
1196
1196
  role: "alert"
1197
1197
  }, _(u.value), 3)) : E("", !0)
1198
- ], 10, ns));
1198
+ ], 10, ss));
1199
1199
  }
1200
- }), ls = "_checkboxCardGroup_uqwpe_2", rs = "_checkboxCard_uqwpe_2", is = "_checkboxCardSelected_uqwpe_34", us = "_checkboxCardContent_uqwpe_39", cs = "_checkboxCardLabel_uqwpe_46", ds = "_checkboxCardHelper_uqwpe_52", vs = "_checkboxIndicator_uqwpe_57", ys = "_checkboxIndicatorChecked_uqwpe_69", fs = "_fieldError_uqwpe_75", ps = {
1201
- checkboxCardGroup: ls,
1202
- checkboxCard: rs,
1203
- checkboxCardSelected: is,
1204
- checkboxCardContent: us,
1205
- checkboxCardLabel: cs,
1206
- checkboxCardHelper: ds,
1207
- checkboxIndicator: vs,
1208
- checkboxIndicatorChecked: ys,
1200
+ }), rs = "_checkboxCardGroup_uqwpe_2", is = "_checkboxCard_uqwpe_2", us = "_checkboxCardSelected_uqwpe_34", cs = "_checkboxCardContent_uqwpe_39", ds = "_checkboxCardLabel_uqwpe_46", vs = "_checkboxCardHelper_uqwpe_52", ys = "_checkboxIndicator_uqwpe_57", ps = "_checkboxIndicatorChecked_uqwpe_69", fs = "_fieldError_uqwpe_75", ms = {
1201
+ checkboxCardGroup: rs,
1202
+ checkboxCard: is,
1203
+ checkboxCardSelected: us,
1204
+ checkboxCardContent: cs,
1205
+ checkboxCardLabel: ds,
1206
+ checkboxCardHelper: vs,
1207
+ checkboxIndicator: ys,
1208
+ checkboxIndicatorChecked: ps,
1209
1209
  fieldError: fs
1210
- }, hs = {
1211
- $style: ps
1212
- }, ms = /* @__PURE__ */ V(os, [["__cssModules", hs]]), gs = ["for"], bs = ["id", "value", "aria-invalid", "aria-describedby"], $s = { value: "" }, Cs = ["value"], ks = ["id"], _s = /* @__PURE__ */ F({
1210
+ }, gs = {
1211
+ $style: ms
1212
+ }, hs = /* @__PURE__ */ G(ls, [["__cssModules", gs]]), bs = ["for"], $s = ["id", "value", "aria-invalid", "aria-describedby"], ks = { value: "" }, Cs = ["value"], _s = ["id"], ws = /* @__PURE__ */ x({
1213
1213
  __name: "DropdownInput",
1214
1214
  props: {
1215
1215
  question: {}
1216
1216
  },
1217
- setup(n) {
1218
- let s = 0;
1219
- const l = n, o = x("dtc-onboarding"), u = `dd-${++s}`, r = w(() => o.getAnswer(l.question.key)), d = w(
1220
- () => o.validationErrors.value[l.question.key]
1217
+ setup(t) {
1218
+ let o = 0;
1219
+ const a = t, l = V("dtc-onboarding"), u = `dd-${++o}`, r = w(() => l.getAnswer(a.question.key)), v = w(
1220
+ () => l.validationErrors.value[a.question.key]
1221
1221
  );
1222
- function v(i) {
1222
+ function d(i) {
1223
1223
  const f = i.target.value;
1224
- l.question.type === "number" && f !== "" ? o.setAnswer(l.question.key, Number(f)) : o.setAnswer(l.question.key, f || void 0);
1224
+ a.question.type === "number" && f !== "" ? l.setAnswer(a.question.key, Number(f)) : l.setAnswer(a.question.key, f || void 0);
1225
1225
  }
1226
1226
  return (i, f) => (c(), p("div", {
1227
1227
  class: e(i.$style.fieldGroup)
1228
1228
  }, [
1229
- t("label", {
1229
+ n("label", {
1230
1230
  class: e(i.$style.fieldLabel),
1231
- for: `${u}-${n.question.key}`
1232
- }, _(n.question.label), 11, gs),
1233
- n.question.description ? (c(), p("p", {
1231
+ for: `${u}-${t.question.key}`
1232
+ }, _(t.question.label), 11, bs),
1233
+ t.question.description ? (c(), p("p", {
1234
1234
  key: 0,
1235
1235
  class: e(i.$style.fieldDescription)
1236
- }, _(n.question.description), 3)) : E("", !0),
1237
- t("select", {
1238
- id: `${u}-${n.question.key}`,
1239
- class: e([i.$style.fieldSelect, d.value ? i.$style.fieldSelectError : ""]),
1236
+ }, _(t.question.description), 3)) : E("", !0),
1237
+ n("select", {
1238
+ id: `${u}-${t.question.key}`,
1239
+ class: e([i.$style.fieldSelect, v.value ? i.$style.fieldSelectError : ""]),
1240
1240
  value: r.value !== void 0 ? String(r.value) : "",
1241
- "aria-invalid": d.value ? "true" : void 0,
1242
- "aria-describedby": d.value ? `${u}-${n.question.key}-error` : void 0,
1243
- onChange: v
1241
+ "aria-invalid": v.value ? "true" : void 0,
1242
+ "aria-describedby": v.value ? `${u}-${t.question.key}-error` : void 0,
1243
+ onChange: d
1244
1244
  }, [
1245
- t("option", $s, _(n.question.placeholder || "Select..."), 1),
1246
- (c(!0), p(j, null, Q(n.question.options, (h) => (c(), p("option", {
1247
- key: String(h.value),
1248
- value: String(h.value)
1249
- }, _(h.label), 9, Cs))), 128))
1250
- ], 42, bs),
1251
- d.value ? (c(), p("p", {
1245
+ n("option", ks, _(t.question.placeholder || "Select..."), 1),
1246
+ (c(!0), p(N, null, Y(t.question.options, (m) => (c(), p("option", {
1247
+ key: String(m.value),
1248
+ value: String(m.value)
1249
+ }, _(m.label), 9, Cs))), 128))
1250
+ ], 42, $s),
1251
+ v.value ? (c(), p("p", {
1252
1252
  key: 1,
1253
- id: `${u}-${n.question.key}-error`,
1253
+ id: `${u}-${t.question.key}-error`,
1254
1254
  class: e(i.$style.fieldError),
1255
1255
  role: "alert"
1256
- }, _(d.value), 11, ks)) : E("", !0)
1256
+ }, _(v.value), 11, _s)) : E("", !0)
1257
1257
  ], 2));
1258
1258
  }
1259
- }), ws = "_fieldGroup_qcbne_2", Ls = "_fieldLabel_qcbne_8", Is = "_fieldDescription_qcbne_15", Ss = "_fieldSelect_qcbne_22", Ds = "_fieldSelectError_qcbne_47", Es = "_fieldError_qcbne_51", qs = {
1260
- fieldGroup: ws,
1261
- fieldLabel: Ls,
1262
- fieldDescription: Is,
1263
- fieldSelect: Ss,
1264
- fieldSelectError: Ds,
1265
- fieldError: Es
1266
- }, Ms = {
1267
- $style: qs
1268
- }, As = /* @__PURE__ */ V(_s, [["__cssModules", Ms]]), Ts = ["for"], Ps = ["id", "type", "inputmode", "value", "placeholder", "aria-invalid", "aria-describedby"], Bs = ["id"], Fs = /* @__PURE__ */ F({
1259
+ }), Ls = "_fieldGroup_qcbne_2", Is = "_fieldLabel_qcbne_8", Ss = "_fieldDescription_qcbne_15", qs = "_fieldSelect_qcbne_22", Es = "_fieldSelectError_qcbne_47", Ds = "_fieldError_qcbne_51", Ms = {
1260
+ fieldGroup: Ls,
1261
+ fieldLabel: Is,
1262
+ fieldDescription: Ss,
1263
+ fieldSelect: qs,
1264
+ fieldSelectError: Es,
1265
+ fieldError: Ds
1266
+ }, As = {
1267
+ $style: Ms
1268
+ }, Ts = /* @__PURE__ */ G(ws, [["__cssModules", As]]), Bs = ["for"], Ps = ["id", "type", "inputmode", "value", "placeholder", "aria-invalid", "aria-describedby"], js = ["id"], xs = /* @__PURE__ */ x({
1269
1269
  __name: "TextInput",
1270
1270
  props: {
1271
1271
  question: {}
1272
1272
  },
1273
- setup(n) {
1274
- let s = 0;
1275
- const l = n, o = x("dtc-onboarding"), u = `ti-${++s}`, r = w(() => o.getAnswer(l.question.key)), d = w(
1276
- () => o.validationErrors.value[l.question.key]
1277
- ), v = w(
1273
+ setup(t) {
1274
+ let o = 0;
1275
+ const a = t, l = V("dtc-onboarding"), u = `ti-${++o}`, r = w(() => l.getAnswer(a.question.key)), v = w(
1276
+ () => l.validationErrors.value[a.question.key]
1277
+ ), d = w(
1278
1278
  () => r.value !== void 0 && r.value !== null ? String(r.value) : ""
1279
- ), i = w(() => l.question.type === "number" ? "text" : l.question.style === "email" ? "email" : "text"), f = w(
1280
- () => l.question.type === "number" ? "numeric" : void 0
1279
+ ), i = w(() => a.question.type === "number" ? "text" : a.question.style === "email" ? "email" : "text"), f = w(
1280
+ () => a.question.type === "number" ? "numeric" : void 0
1281
1281
  );
1282
- function h(m) {
1283
- const b = m.target.value;
1284
- if (l.question.type === "number") {
1285
- const L = b.replace(/[^0-9.]/g, ""), M = L === "" ? void 0 : Number(L), q = M !== void 0 && isNaN(M) ? void 0 : M;
1286
- o.setAnswer(l.question.key, q);
1282
+ function m(b) {
1283
+ const g = b.target.value;
1284
+ if (a.question.type === "number") {
1285
+ const L = g.replace(/[^0-9.]/g, ""), M = L === "" ? void 0 : Number(L), D = M !== void 0 && isNaN(M) ? void 0 : M;
1286
+ l.setAnswer(a.question.key, D);
1287
1287
  } else
1288
- o.setAnswer(l.question.key, b || void 0);
1288
+ l.setAnswer(a.question.key, g || void 0);
1289
1289
  }
1290
- return (m, b) => (c(), p("div", {
1291
- class: e(m.$style.fieldGroup)
1290
+ return (b, g) => (c(), p("div", {
1291
+ class: e(b.$style.fieldGroup)
1292
1292
  }, [
1293
- t("label", {
1294
- class: e(m.$style.fieldLabel),
1295
- for: `${u}-${n.question.key}`
1296
- }, _(n.question.label), 11, Ts),
1297
- n.question.description ? (c(), p("p", {
1293
+ n("label", {
1294
+ class: e(b.$style.fieldLabel),
1295
+ for: `${u}-${t.question.key}`
1296
+ }, _(t.question.label), 11, Bs),
1297
+ t.question.description ? (c(), p("p", {
1298
1298
  key: 0,
1299
- class: e(m.$style.fieldDescription)
1300
- }, _(n.question.description), 3)) : E("", !0),
1301
- t("div", {
1302
- class: e(m.$style.fieldInputWrapper)
1299
+ class: e(b.$style.fieldDescription)
1300
+ }, _(t.question.description), 3)) : E("", !0),
1301
+ n("div", {
1302
+ class: e(b.$style.fieldInputWrapper)
1303
1303
  }, [
1304
- t("input", {
1305
- id: `${u}-${n.question.key}`,
1304
+ n("input", {
1305
+ id: `${u}-${t.question.key}`,
1306
1306
  type: i.value,
1307
1307
  inputmode: f.value,
1308
- class: e([m.$style.fieldInput, d.value ? m.$style.fieldInputError : ""]),
1309
- value: v.value,
1310
- placeholder: n.question.placeholder,
1311
- "aria-invalid": d.value ? "true" : void 0,
1312
- "aria-describedby": d.value ? `${u}-${n.question.key}-error` : void 0,
1313
- onInput: h
1308
+ class: e([b.$style.fieldInput, v.value ? b.$style.fieldInputError : ""]),
1309
+ value: d.value,
1310
+ placeholder: t.question.placeholder,
1311
+ "aria-invalid": v.value ? "true" : void 0,
1312
+ "aria-describedby": v.value ? `${u}-${t.question.key}-error` : void 0,
1313
+ onInput: m
1314
1314
  }, null, 42, Ps),
1315
- n.question.suffix ? (c(), p("span", {
1315
+ t.question.suffix ? (c(), p("span", {
1316
1316
  key: 0,
1317
- class: e(m.$style.fieldSuffix)
1318
- }, _(n.question.suffix), 3)) : E("", !0)
1317
+ class: e(b.$style.fieldSuffix)
1318
+ }, _(t.question.suffix), 3)) : E("", !0)
1319
1319
  ], 2),
1320
- d.value ? (c(), p("p", {
1320
+ v.value ? (c(), p("p", {
1321
1321
  key: 1,
1322
- id: `${u}-${n.question.key}-error`,
1323
- class: e(m.$style.fieldError),
1322
+ id: `${u}-${t.question.key}-error`,
1323
+ class: e(b.$style.fieldError),
1324
1324
  role: "alert"
1325
- }, _(d.value), 11, Bs)) : E("", !0)
1325
+ }, _(v.value), 11, js)) : E("", !0)
1326
1326
  ], 2));
1327
1327
  }
1328
- }), Rs = "_fieldGroup_1jlim_2", Ns = "_fieldLabel_1jlim_8", Gs = "_fieldDescription_1jlim_15", Os = "_fieldInputWrapper_1jlim_22", Hs = "_fieldInput_1jlim_22", js = "_fieldInputError_1jlim_60", Vs = "_fieldSuffix_1jlim_64", xs = "_fieldError_1jlim_73", Us = {
1329
- fieldGroup: Rs,
1330
- fieldLabel: Ns,
1331
- fieldDescription: Gs,
1332
- fieldInputWrapper: Os,
1328
+ }), Fs = "_fieldGroup_1jlim_2", Rs = "_fieldLabel_1jlim_8", Ns = "_fieldDescription_1jlim_15", Gs = "_fieldInputWrapper_1jlim_22", Hs = "_fieldInput_1jlim_22", Os = "_fieldInputError_1jlim_60", Vs = "_fieldSuffix_1jlim_64", Us = "_fieldError_1jlim_73", Zs = {
1329
+ fieldGroup: Fs,
1330
+ fieldLabel: Rs,
1331
+ fieldDescription: Ns,
1332
+ fieldInputWrapper: Gs,
1333
1333
  fieldInput: Hs,
1334
- fieldInputError: js,
1334
+ fieldInputError: Os,
1335
1335
  fieldSuffix: Vs,
1336
- fieldError: xs
1337
- }, Zs = {
1338
- $style: Us
1339
- }, zs = /* @__PURE__ */ V(Fs, [["__cssModules", Zs]]), Ws = ["for"], Ks = ["id", "value", "placeholder", "aria-invalid", "aria-describedby"], Qs = ["id"], Ys = /* @__PURE__ */ F({
1336
+ fieldError: Us
1337
+ }, Ws = {
1338
+ $style: Zs
1339
+ }, zs = /* @__PURE__ */ G(xs, [["__cssModules", Ws]]), Ks = ["for"], Qs = ["id", "value", "placeholder", "aria-invalid", "aria-describedby"], Ys = ["id"], Xs = /* @__PURE__ */ x({
1340
1340
  __name: "CurrencyInput",
1341
1341
  props: {
1342
1342
  question: {}
1343
1343
  },
1344
- setup(n) {
1345
- let s = 0;
1346
- const l = n, o = x("dtc-onboarding"), u = `ci-${++s}`, r = w(() => o.getAnswer(l.question.key)), d = w(
1347
- () => o.validationErrors.value[l.question.key]
1348
- ), v = w(
1344
+ setup(t) {
1345
+ let o = 0;
1346
+ const a = t, l = V("dtc-onboarding"), u = `ci-${++o}`, r = w(() => l.getAnswer(a.question.key)), v = w(
1347
+ () => l.validationErrors.value[a.question.key]
1348
+ ), d = w(
1349
1349
  () => r.value !== void 0 && r.value !== null ? String(r.value) : ""
1350
1350
  );
1351
1351
  function i(f) {
1352
- const h = f.target.value.replace(/[^0-9]/g, ""), m = h === "" ? void 0 : Number(h);
1353
- o.setAnswer(
1354
- l.question.key,
1355
- m !== void 0 && isNaN(m) ? void 0 : m
1352
+ const m = f.target.value.replace(/[^0-9]/g, ""), b = m === "" ? void 0 : Number(m);
1353
+ l.setAnswer(
1354
+ a.question.key,
1355
+ b !== void 0 && isNaN(b) ? void 0 : b
1356
1356
  );
1357
1357
  }
1358
- return (f, h) => (c(), p("div", {
1358
+ return (f, m) => (c(), p("div", {
1359
1359
  class: e(f.$style.fieldGroup)
1360
1360
  }, [
1361
- t("label", {
1361
+ n("label", {
1362
1362
  class: e(f.$style.fieldLabel),
1363
- for: `${u}-${n.question.key}`
1364
- }, _(n.question.label), 11, Ws),
1365
- t("div", {
1363
+ for: `${u}-${t.question.key}`
1364
+ }, _(t.question.label), 11, Ks),
1365
+ n("div", {
1366
1366
  class: e(f.$style.currencyWrapper)
1367
1367
  }, [
1368
- t("span", {
1368
+ n("span", {
1369
1369
  class: e(f.$style.currencyPrefix)
1370
1370
  }, "$", 2),
1371
- t("input", {
1372
- id: `${u}-${n.question.key}`,
1371
+ n("input", {
1372
+ id: `${u}-${t.question.key}`,
1373
1373
  type: "text",
1374
1374
  inputmode: "numeric",
1375
- class: e([f.$style.currencyInput, d.value ? f.$style.fieldInputError : ""]),
1376
- value: v.value,
1377
- placeholder: n.question.placeholder,
1378
- "aria-invalid": d.value ? "true" : void 0,
1379
- "aria-describedby": d.value ? `${u}-${n.question.key}-error` : void 0,
1375
+ class: e([f.$style.currencyInput, v.value ? f.$style.fieldInputError : ""]),
1376
+ value: d.value,
1377
+ placeholder: t.question.placeholder,
1378
+ "aria-invalid": v.value ? "true" : void 0,
1379
+ "aria-describedby": v.value ? `${u}-${t.question.key}-error` : void 0,
1380
1380
  onInput: i
1381
- }, null, 42, Ks)
1381
+ }, null, 42, Qs)
1382
1382
  ], 2),
1383
- d.value ? (c(), p("p", {
1383
+ v.value ? (c(), p("p", {
1384
1384
  key: 0,
1385
- id: `${u}-${n.question.key}-error`,
1385
+ id: `${u}-${t.question.key}-error`,
1386
1386
  class: e(f.$style.fieldError),
1387
1387
  role: "alert"
1388
- }, _(d.value), 11, Qs)) : E("", !0)
1388
+ }, _(v.value), 11, Ys)) : E("", !0)
1389
1389
  ], 2));
1390
1390
  }
1391
- }), Xs = "_fieldGroup_10ms9_2", Js = "_fieldLabel_10ms9_8", ea = "_currencyWrapper_10ms9_15", ta = "_currencyPrefix_10ms9_21", na = "_currencyInput_10ms9_30", sa = "_fieldInputError_10ms9_48", aa = "_fieldError_10ms9_52", oa = {
1392
- fieldGroup: Xs,
1393
- fieldLabel: Js,
1394
- currencyWrapper: ea,
1395
- currencyPrefix: ta,
1396
- currencyInput: na,
1397
- fieldInputError: sa,
1398
- fieldError: aa
1399
- }, la = {
1400
- $style: oa
1401
- }, ra = /* @__PURE__ */ V(Ys, [["__cssModules", la]]), ia = ["for"], ua = ["id", "value", "placeholder", "aria-invalid", "aria-describedby"], ca = ["id"], da = /* @__PURE__ */ F({
1391
+ }), Js = "_fieldGroup_10ms9_2", eo = "_fieldLabel_10ms9_8", to = "_currencyWrapper_10ms9_15", no = "_currencyPrefix_10ms9_21", so = "_currencyInput_10ms9_30", oo = "_fieldInputError_10ms9_48", ao = "_fieldError_10ms9_52", lo = {
1392
+ fieldGroup: Js,
1393
+ fieldLabel: eo,
1394
+ currencyWrapper: to,
1395
+ currencyPrefix: no,
1396
+ currencyInput: so,
1397
+ fieldInputError: oo,
1398
+ fieldError: ao
1399
+ }, ro = {
1400
+ $style: lo
1401
+ }, io = /* @__PURE__ */ G(Xs, [["__cssModules", ro]]), uo = ["for"], co = ["id", "value", "placeholder", "aria-invalid", "aria-describedby"], vo = ["id"], yo = /* @__PURE__ */ x({
1402
1402
  __name: "PhoneInput",
1403
1403
  props: {
1404
1404
  question: {}
1405
1405
  },
1406
- setup(n) {
1407
- let s = 0;
1408
- const l = n, o = x("dtc-onboarding"), u = `pi-${++s}`, r = w(
1409
- () => o.getAnswer(l.question.key) ?? ""
1410
- ), d = w(
1411
- () => o.validationErrors.value[l.question.key]
1406
+ setup(t) {
1407
+ let o = 0;
1408
+ const a = t, l = V("dtc-onboarding"), u = `pi-${++o}`, r = w(
1409
+ () => l.getAnswer(a.question.key) ?? ""
1410
+ ), v = w(
1411
+ () => l.validationErrors.value[a.question.key]
1412
1412
  );
1413
- function v(f) {
1414
- const h = f.replace(/\D/g, "").slice(0, 10);
1415
- return h.length <= 3 ? h : h.length <= 6 ? `(${h.slice(0, 3)}) ${h.slice(3)}` : `(${h.slice(0, 3)}) ${h.slice(3, 6)}-${h.slice(6)}`;
1413
+ function d(f) {
1414
+ const m = f.replace(/\D/g, "").slice(0, 10);
1415
+ return m.length <= 3 ? m : m.length <= 6 ? `(${m.slice(0, 3)}) ${m.slice(3)}` : `(${m.slice(0, 3)}) ${m.slice(3, 6)}-${m.slice(6)}`;
1416
1416
  }
1417
1417
  function i(f) {
1418
- const m = f.target.value.replace(/\D/g, "").slice(0, 10);
1419
- o.setAnswer(l.question.key, m || void 0);
1418
+ const b = f.target.value.replace(/\D/g, "").slice(0, 10);
1419
+ l.setAnswer(a.question.key, b || void 0);
1420
1420
  }
1421
- return (f, h) => (c(), p("div", {
1421
+ return (f, m) => (c(), p("div", {
1422
1422
  class: e(f.$style.fieldGroup)
1423
1423
  }, [
1424
- t("label", {
1424
+ n("label", {
1425
1425
  class: e(f.$style.fieldLabel),
1426
- for: `${u}-${n.question.key}`
1427
- }, _(n.question.label), 11, ia),
1428
- t("input", {
1429
- id: `${u}-${n.question.key}`,
1426
+ for: `${u}-${t.question.key}`
1427
+ }, _(t.question.label), 11, uo),
1428
+ n("input", {
1429
+ id: `${u}-${t.question.key}`,
1430
1430
  type: "tel",
1431
- class: e([f.$style.fieldInput, d.value ? f.$style.fieldInputError : ""]),
1432
- value: v(r.value),
1433
- placeholder: n.question.placeholder || "(555) 555-5555",
1434
- "aria-invalid": d.value ? "true" : void 0,
1435
- "aria-describedby": d.value ? `${u}-${n.question.key}-error` : void 0,
1431
+ class: e([f.$style.fieldInput, v.value ? f.$style.fieldInputError : ""]),
1432
+ value: d(r.value),
1433
+ placeholder: t.question.placeholder || "(555) 555-5555",
1434
+ "aria-invalid": v.value ? "true" : void 0,
1435
+ "aria-describedby": v.value ? `${u}-${t.question.key}-error` : void 0,
1436
1436
  onInput: i
1437
- }, null, 42, ua),
1438
- d.value ? (c(), p("p", {
1437
+ }, null, 42, co),
1438
+ v.value ? (c(), p("p", {
1439
1439
  key: 0,
1440
- id: `${u}-${n.question.key}-error`,
1440
+ id: `${u}-${t.question.key}-error`,
1441
1441
  class: e(f.$style.fieldError),
1442
1442
  role: "alert"
1443
- }, _(d.value), 11, ca)) : E("", !0)
1443
+ }, _(v.value), 11, vo)) : E("", !0)
1444
1444
  ], 2));
1445
1445
  }
1446
- }), va = "_fieldGroup_p6z3v_2", ya = "_fieldLabel_p6z3v_8", fa = "_fieldInput_p6z3v_15", pa = "_fieldInputError_p6z3v_37", ha = "_fieldError_p6z3v_41", ma = {
1447
- fieldGroup: va,
1448
- fieldLabel: ya,
1449
- fieldInput: fa,
1450
- fieldInputError: pa,
1451
- fieldError: ha
1452
- }, ga = {
1453
- $style: ma
1454
- }, ba = /* @__PURE__ */ V(da, [["__cssModules", ga]]), $a = ["checked"], Ca = /* @__PURE__ */ F({
1446
+ }), po = "_fieldGroup_p6z3v_2", fo = "_fieldLabel_p6z3v_8", mo = "_fieldInput_p6z3v_15", go = "_fieldInputError_p6z3v_37", ho = "_fieldError_p6z3v_41", bo = {
1447
+ fieldGroup: po,
1448
+ fieldLabel: fo,
1449
+ fieldInput: mo,
1450
+ fieldInputError: go,
1451
+ fieldError: ho
1452
+ }, $o = {
1453
+ $style: bo
1454
+ }, ko = /* @__PURE__ */ G(yo, [["__cssModules", $o]]), Co = ["checked"], _o = /* @__PURE__ */ x({
1455
1455
  __name: "ToggleInput",
1456
1456
  props: {
1457
1457
  question: {}
1458
1458
  },
1459
- setup(n) {
1460
- const s = n, l = x("dtc-onboarding"), o = x("dtc-consent-slots", {}), u = w(
1461
- () => l.getAnswer(s.question.key)
1462
- ), r = w(() => s.question.label), d = w(
1463
- () => s.question.key === "seller.sms_opt_in" && !!o["sms-consent-text"]
1459
+ setup(t) {
1460
+ const o = t, a = V("dtc-onboarding"), l = V("dtc-consent-slots", {}), u = w(
1461
+ () => a.getAnswer(o.question.key)
1462
+ ), r = w(() => o.question.label), v = w(
1463
+ () => o.question.key === "seller.sms_opt_in" && !!l["sms-consent-text"]
1464
1464
  );
1465
- function v(i) {
1466
- l.setAnswer(
1467
- s.question.key,
1465
+ function d(i) {
1466
+ a.setAnswer(
1467
+ o.question.key,
1468
1468
  i.target.checked
1469
1469
  );
1470
1470
  }
1471
1471
  return (i, f) => (c(), p("div", {
1472
1472
  class: e(i.$style.toggleGroup)
1473
1473
  }, [
1474
- t("label", {
1474
+ n("label", {
1475
1475
  class: e(i.$style.toggleLabel)
1476
1476
  }, [
1477
- t("input", {
1477
+ n("input", {
1478
1478
  type: "checkbox",
1479
1479
  class: e(i.$style.toggleCheckbox),
1480
1480
  checked: u.value === !0,
1481
- onChange: v
1482
- }, null, 42, $a),
1483
- t("span", {
1481
+ onChange: d
1482
+ }, null, 42, Co),
1483
+ n("span", {
1484
1484
  class: e(i.$style.toggleText)
1485
1485
  }, [
1486
- d.value ? (c(), K(Pe(() => {
1487
- var h, m;
1488
- return (m = (h = B(o))["sms-consent-text"]) == null ? void 0 : m.call(h);
1489
- }), { key: 0 })) : (c(), p(j, { key: 1 }, [
1490
- be(_(r.value), 1)
1486
+ v.value ? (c(), K(Be(() => {
1487
+ var m, b;
1488
+ return (b = (m = P(l))["sms-consent-text"]) == null ? void 0 : b.call(m);
1489
+ }), { key: 0 })) : (c(), p(N, { key: 1 }, [
1490
+ $e(_(r.value), 1)
1491
1491
  ], 64))
1492
1492
  ], 2)
1493
1493
  ], 2)
1494
1494
  ], 2));
1495
1495
  }
1496
- }), ka = "_toggleGroup_1wi5o_2", _a = "_toggleLabel_1wi5o_6", wa = "_toggleCheckbox_1wi5o_14", La = "_toggleText_1wi5o_23", Ia = {
1497
- toggleGroup: ka,
1498
- toggleLabel: _a,
1499
- toggleCheckbox: wa,
1500
- toggleText: La
1501
- }, Sa = {
1502
- $style: Ia
1503
- }, Da = /* @__PURE__ */ V(Ca, [["__cssModules", Sa]]), Ea = ["value", "placeholder", "aria-label", "aria-expanded", "aria-invalid", "aria-describedby", "aria-controls", "aria-activedescendant"], qa = ["id", "aria-selected", "onClick"], Ma = ["id"], Te = 4, ge = 8, Aa = 240, Ta = 80, Pa = /* @__PURE__ */ F({
1496
+ }), wo = "_toggleGroup_1wi5o_2", Lo = "_toggleLabel_1wi5o_6", Io = "_toggleCheckbox_1wi5o_14", So = "_toggleText_1wi5o_23", qo = {
1497
+ toggleGroup: wo,
1498
+ toggleLabel: Lo,
1499
+ toggleCheckbox: Io,
1500
+ toggleText: So
1501
+ }, Eo = {
1502
+ $style: qo
1503
+ }, Do = /* @__PURE__ */ G(_o, [["__cssModules", Eo]]), Mo = ["value", "placeholder", "aria-label", "aria-expanded", "aria-invalid", "aria-describedby", "aria-controls", "aria-activedescendant"], Ao = ["id", "aria-selected", "onClick"], To = ["id"], Te = 4, be = 8, Bo = 240, Po = 80, jo = /* @__PURE__ */ x({
1504
1504
  __name: "SearchableDropdownInput",
1505
1505
  props: {
1506
1506
  question: {}
1507
1507
  },
1508
- setup(n) {
1509
- let s = 0;
1510
- function l(y) {
1511
- const k = {};
1512
- for (let S = y; S; S = S.parentElement) {
1513
- const A = S.style;
1514
- for (let P = 0; P < A.length; P++) {
1515
- const W = A[P];
1516
- W.startsWith("--od-") && !(W in k) && (k[W] = A.getPropertyValue(W));
1508
+ setup(t) {
1509
+ let o = 0;
1510
+ function a(y) {
1511
+ const C = {};
1512
+ for (let q = y; q; q = q.parentElement) {
1513
+ const T = q.style;
1514
+ for (let B = 0; B < T.length; B++) {
1515
+ const z = T[B];
1516
+ z.startsWith("--od-") && !(z in C) && (C[z] = T.getPropertyValue(z));
1517
1517
  }
1518
1518
  }
1519
- return k;
1519
+ return C;
1520
1520
  }
1521
- const o = n, u = x("dtc-onboarding"), r = x(
1521
+ const l = t, u = V("dtc-onboarding"), r = V(
1522
1522
  "opendoor-client",
1523
1523
  void 0
1524
- ), d = `sd-${++s}`, v = `${d}-${o.question.key}-listbox`, i = `${d}-${o.question.key}-combobox`, f = w(
1525
- () => u.getAnswer(o.question.key)
1526
- ), h = w(
1527
- () => u.validationErrors.value[o.question.key]
1528
- ), m = I(""), b = I(!1), L = I([]), M = I(!1), q = I(-1), O = I(null), T = I(null), R = I(null), Z = I(null), N = I({});
1524
+ ), v = `sd-${++o}`, d = `${v}-${l.question.key}-listbox`, i = `${v}-${l.question.key}-combobox`, f = w(
1525
+ () => u.getAnswer(l.question.key)
1526
+ ), m = w(
1527
+ () => u.validationErrors.value[l.question.key]
1528
+ ), b = I(""), g = I(!1), L = I([]), M = I(!1), D = I(-1), H = I(null), A = I(null), Z = I(null), j = I(null), O = I({});
1529
1529
  ee(
1530
- [() => o.question.dataSource, () => o.question.options, () => r == null ? void 0 : r.value],
1531
- (y, k, S) => {
1532
- let A = !1;
1533
- S(() => {
1534
- A = !0;
1535
- }), o.question.dataSource === "homebuilders" && (r != null && r.value) ? (M.value = !0, r.value.getHomebuilders().then((P) => {
1536
- A || (L.value = P.homebuilders.map((W) => ({
1537
- label: W.displayName,
1538
- value: W.identifier
1530
+ [() => l.question.dataSource, () => l.question.options, () => r == null ? void 0 : r.value],
1531
+ (y, C, q) => {
1532
+ let T = !1;
1533
+ q(() => {
1534
+ T = !0;
1535
+ }), l.question.dataSource === "homebuilders" && (r != null && r.value) ? (M.value = !0, r.value.getHomebuilders().then((B) => {
1536
+ T || (L.value = B.homebuilders.map((z) => ({
1537
+ label: z.displayName,
1538
+ value: z.identifier
1539
1539
  })));
1540
1540
  }).catch(() => {
1541
- A || (o.question.options ? L.value = o.question.options.map((P) => ({
1542
- label: P.label,
1543
- value: String(P.value)
1541
+ T || (l.question.options ? L.value = l.question.options.map((B) => ({
1542
+ label: B.label,
1543
+ value: String(B.value)
1544
1544
  })) : L.value = []);
1545
1545
  }).finally(() => {
1546
- A || (M.value = !1);
1547
- })) : o.question.options ? L.value = o.question.options.map((P) => ({
1548
- label: P.label,
1549
- value: String(P.value)
1546
+ T || (M.value = !1);
1547
+ })) : l.question.options ? L.value = l.question.options.map((B) => ({
1548
+ label: B.label,
1549
+ value: String(B.value)
1550
1550
  })) : L.value = [];
1551
1551
  },
1552
1552
  { immediate: !0 }
1553
1553
  );
1554
- const D = w(
1555
- () => m.value ? L.value.filter(
1556
- (y) => y.label.toLowerCase().includes(m.value.toLowerCase())
1554
+ const S = w(
1555
+ () => b.value ? L.value.filter(
1556
+ (y) => y.label.toLowerCase().includes(b.value.toLowerCase())
1557
1557
  ) : L.value
1558
1558
  ), U = w(
1559
1559
  () => {
1560
1560
  var y;
1561
- return (y = L.value.find((k) => k.value === f.value)) == null ? void 0 : y.label;
1561
+ return (y = L.value.find((C) => C.value === f.value)) == null ? void 0 : y.label;
1562
1562
  }
1563
1563
  );
1564
- function Y(y) {
1565
- u.setAnswer(o.question.key, y), b.value = !1, m.value = "", q.value = -1;
1564
+ function Q(y) {
1565
+ u.setAnswer(l.question.key, y), g.value = !1, b.value = "", D.value = -1;
1566
1566
  }
1567
1567
  function re(y) {
1568
- m.value = y.target.value, q.value = -1, b.value || (b.value = !0);
1568
+ b.value = y.target.value, D.value = -1, g.value || (g.value = !0);
1569
1569
  }
1570
1570
  function J(y) {
1571
- if (!b.value) {
1572
- (y.key === "ArrowDown" || y.key === "Enter") && (y.preventDefault(), b.value = !0);
1571
+ if (!g.value) {
1572
+ (y.key === "ArrowDown" || y.key === "Enter") && (y.preventDefault(), g.value = !0);
1573
1573
  return;
1574
1574
  }
1575
1575
  switch (y.key) {
1576
1576
  case "ArrowDown":
1577
- y.preventDefault(), D.value.length > 0 && (q.value = q.value < D.value.length - 1 ? q.value + 1 : 0);
1577
+ y.preventDefault(), S.value.length > 0 && (D.value = D.value < S.value.length - 1 ? D.value + 1 : 0);
1578
1578
  break;
1579
1579
  case "ArrowUp":
1580
- y.preventDefault(), D.value.length > 0 && (q.value = q.value > 0 ? q.value - 1 : D.value.length - 1);
1580
+ y.preventDefault(), S.value.length > 0 && (D.value = D.value > 0 ? D.value - 1 : S.value.length - 1);
1581
1581
  break;
1582
1582
  case "Enter":
1583
- y.preventDefault(), q.value >= 0 && q.value < D.value.length && Y(D.value[q.value].value);
1583
+ y.preventDefault(), D.value >= 0 && D.value < S.value.length && Q(S.value[D.value].value);
1584
1584
  break;
1585
1585
  case "Escape":
1586
- y.preventDefault(), b.value = !1, q.value = -1;
1586
+ y.preventDefault(), g.value = !1, D.value = -1;
1587
1587
  break;
1588
1588
  }
1589
1589
  }
1590
- function z() {
1591
- const y = T.value;
1590
+ function W() {
1591
+ const y = A.value;
1592
1592
  if (!y) return;
1593
- const k = y.getBoundingClientRect(), S = window.visualViewport, A = (S == null ? void 0 : S.height) ?? window.innerHeight, P = (S == null ? void 0 : S.width) ?? window.innerWidth, W = (S == null ? void 0 : S.offsetTop) ?? 0, fe = (S == null ? void 0 : S.offsetLeft) ?? 0, pe = W + A - k.bottom - Te - ge, Ce = Math.max(
1594
- Ta,
1595
- Math.min(Aa, pe)
1596
- ), he = Math.min(k.width, P - ge * 2), ke = fe + ge, _e = fe + P - he - ge, we = Math.max(ke, Math.min(k.left, _e));
1597
- Z.value = {
1598
- top: k.bottom + window.scrollY + Te,
1599
- left: we + window.scrollX,
1600
- width: he,
1601
- maxHeight: Ce
1593
+ const C = y.getBoundingClientRect(), q = window.visualViewport, T = (q == null ? void 0 : q.height) ?? window.innerHeight, B = (q == null ? void 0 : q.width) ?? window.innerWidth, z = (q == null ? void 0 : q.offsetTop) ?? 0, pe = (q == null ? void 0 : q.offsetLeft) ?? 0, fe = z + T - C.bottom - Te - be, me = Math.max(
1594
+ Po,
1595
+ Math.min(Bo, fe)
1596
+ ), ge = Math.min(C.width, B - be * 2), ke = pe + be, Ce = pe + B - ge - be, _e = Math.max(ke, Math.min(C.left, Ce));
1597
+ j.value = {
1598
+ top: C.bottom + window.scrollY + Te,
1599
+ left: _e + window.scrollX,
1600
+ width: ge,
1601
+ maxHeight: me
1602
1602
  };
1603
1603
  }
1604
- const ae = w(() => {
1605
- const y = Z.value;
1604
+ const ie = w(() => {
1605
+ const y = j.value;
1606
1606
  return y ? {
1607
1607
  position: "absolute",
1608
1608
  top: `${y.top}px`,
@@ -1610,72 +1610,72 @@ const Hn = {
1610
1610
  right: "auto",
1611
1611
  width: `${y.width}px`,
1612
1612
  maxHeight: `${y.maxHeight}px`,
1613
- ...N.value
1613
+ ...O.value
1614
1614
  } : { display: "none" };
1615
1615
  });
1616
- let te = null;
1617
- function ie() {
1616
+ let X = null;
1617
+ function ue() {
1618
1618
  const y = window.visualViewport;
1619
- window.addEventListener("scroll", z, !0), window.addEventListener("resize", z), y == null || y.addEventListener("resize", z), y == null || y.addEventListener("scroll", z);
1619
+ window.addEventListener("scroll", W, !0), window.addEventListener("resize", W), y == null || y.addEventListener("resize", W), y == null || y.addEventListener("scroll", W);
1620
1620
  }
1621
- function ne() {
1621
+ function te() {
1622
1622
  const y = window.visualViewport;
1623
- window.removeEventListener("scroll", z, !0), window.removeEventListener("resize", z), y == null || y.removeEventListener("resize", z), y == null || y.removeEventListener("scroll", z), te !== null && (window.clearTimeout(te), te = null);
1623
+ window.removeEventListener("scroll", W, !0), window.removeEventListener("resize", W), y == null || y.removeEventListener("resize", W), y == null || y.removeEventListener("scroll", W), X !== null && (window.clearTimeout(X), X = null);
1624
1624
  }
1625
- ee(b, (y) => {
1626
- y ? (T.value && (N.value = l(T.value)), z(), ie(), te = window.setTimeout(z, 300)) : (Z.value = null, ne());
1625
+ ee(g, (y) => {
1626
+ y ? (A.value && (O.value = a(A.value)), W(), ue(), X = window.setTimeout(W, 300)) : (j.value = null, te());
1627
1627
  });
1628
1628
  function $(y) {
1629
- var S, A;
1630
- const k = y.target;
1631
- (S = O.value) != null && S.contains(k) || (A = R.value) != null && A.contains(k) || (b.value = !1);
1629
+ var q, T;
1630
+ const C = y.target;
1631
+ (q = H.value) != null && q.contains(C) || (T = Z.value) != null && T.contains(C) || (g.value = !1);
1632
1632
  }
1633
1633
  return ve(() => {
1634
1634
  document.addEventListener("mousedown", $);
1635
- }), le(() => {
1636
- document.removeEventListener("mousedown", $), ne();
1637
- }), (y, k) => (c(), p("div", {
1635
+ }), ae(() => {
1636
+ document.removeEventListener("mousedown", $), te();
1637
+ }), (y, C) => (c(), p("div", {
1638
1638
  ref_key: "containerRef",
1639
- ref: O,
1639
+ ref: H,
1640
1640
  class: e(y.$style.fieldGroup)
1641
1641
  }, [
1642
- t("div", {
1642
+ n("div", {
1643
1643
  ref_key: "anchorRef",
1644
- ref: T,
1644
+ ref: A,
1645
1645
  class: e(y.$style.searchableDropdown)
1646
1646
  }, [
1647
- t("input", {
1647
+ n("input", {
1648
1648
  id: i,
1649
1649
  type: "text",
1650
1650
  class: e(y.$style.fieldInput),
1651
- value: b.value ? m.value : U.value ?? "",
1652
- placeholder: n.question.placeholder || "Select or search...",
1653
- "aria-label": n.question.label,
1654
- "aria-expanded": b.value,
1655
- "aria-invalid": h.value ? "true" : void 0,
1656
- "aria-describedby": h.value ? `${d}-${n.question.key}-error` : void 0,
1651
+ value: g.value ? b.value : U.value ?? "",
1652
+ placeholder: t.question.placeholder || "Select or search...",
1653
+ "aria-label": t.question.label,
1654
+ "aria-expanded": g.value,
1655
+ "aria-invalid": m.value ? "true" : void 0,
1656
+ "aria-describedby": m.value ? `${v}-${t.question.key}-error` : void 0,
1657
1657
  role: "combobox",
1658
1658
  "aria-haspopup": "listbox",
1659
- "aria-controls": b.value ? v : void 0,
1660
- "aria-activedescendant": b.value && q.value >= 0 ? `${v}-option-${q.value}` : void 0,
1659
+ "aria-controls": g.value ? d : void 0,
1660
+ "aria-activedescendant": g.value && D.value >= 0 ? `${d}-option-${D.value}` : void 0,
1661
1661
  onInput: re,
1662
- onFocus: k[0] || (k[0] = (S) => b.value = !0),
1662
+ onFocus: C[0] || (C[0] = (q) => g.value = !0),
1663
1663
  onKeydown: J
1664
- }, null, 42, Ea),
1665
- t("button", {
1664
+ }, null, 42, Mo),
1665
+ n("button", {
1666
1666
  type: "button",
1667
1667
  class: e(y.$style.searchableDropdownToggle),
1668
1668
  "aria-label": "Toggle dropdown",
1669
1669
  tabindex: "-1",
1670
- onClick: k[1] || (k[1] = (S) => b.value = !b.value)
1671
- }, [...k[3] || (k[3] = [
1672
- t("svg", {
1670
+ onClick: C[1] || (C[1] = (q) => g.value = !g.value)
1671
+ }, [...C[3] || (C[3] = [
1672
+ n("svg", {
1673
1673
  width: "12",
1674
1674
  height: "8",
1675
1675
  viewBox: "0 0 12 8",
1676
1676
  fill: "none"
1677
1677
  }, [
1678
- t("path", {
1678
+ n("path", {
1679
1679
  d: "M1 1l5 5 5-5",
1680
1680
  stroke: "currentColor",
1681
1681
  "stroke-width": "1.5",
@@ -1685,224 +1685,224 @@ const Hn = {
1685
1685
  ], -1)
1686
1686
  ])], 2)
1687
1687
  ], 2),
1688
- b.value ? (c(), K(Ge, {
1688
+ g.value ? (c(), K(Ge, {
1689
1689
  key: 0,
1690
1690
  to: "body"
1691
1691
  }, [
1692
- t("div", {
1692
+ n("div", {
1693
1693
  ref_key: "portalRef",
1694
- ref: R,
1694
+ ref: Z,
1695
1695
  class: e(y.$style.searchableDropdownList),
1696
1696
  role: "listbox",
1697
- id: v,
1698
- style: X(ae.value)
1697
+ id: d,
1698
+ style: le(ie.value)
1699
1699
  }, [
1700
1700
  M.value ? (c(), p("div", {
1701
1701
  key: 0,
1702
1702
  class: e(y.$style.searchableDropdownEmpty)
1703
- }, " Loading... ", 2)) : D.value.length === 0 ? (c(), p("div", {
1703
+ }, " Loading... ", 2)) : S.value.length === 0 ? (c(), p("div", {
1704
1704
  key: 1,
1705
1705
  class: e(y.$style.searchableDropdownEmpty)
1706
- }, " No results found ", 2)) : (c(!0), p(j, { key: 2 }, Q(D.value, (S, A) => (c(), p("button", {
1707
- key: S.value,
1708
- id: `${v}-option-${A}`,
1706
+ }, " No results found ", 2)) : (c(!0), p(N, { key: 2 }, Y(S.value, (q, T) => (c(), p("button", {
1707
+ key: q.value,
1708
+ id: `${d}-option-${T}`,
1709
1709
  type: "button",
1710
1710
  role: "option",
1711
- "aria-selected": S.value === f.value,
1711
+ "aria-selected": q.value === f.value,
1712
1712
  class: e([
1713
1713
  y.$style.searchableDropdownOption,
1714
- S.value === f.value ? y.$style.searchableDropdownOptionSelected : "",
1715
- A === q.value ? y.$style.searchableDropdownOptionHighlighted : ""
1714
+ q.value === f.value ? y.$style.searchableDropdownOptionSelected : "",
1715
+ T === D.value ? y.$style.searchableDropdownOptionHighlighted : ""
1716
1716
  ]),
1717
- onMousedown: k[2] || (k[2] = De(() => {
1717
+ onMousedown: C[2] || (C[2] = Se(() => {
1718
1718
  }, ["prevent"])),
1719
- onClick: (P) => Y(S.value)
1720
- }, _(S.label), 43, qa))), 128))
1719
+ onClick: (B) => Q(q.value)
1720
+ }, _(q.label), 43, Ao))), 128))
1721
1721
  ], 6)
1722
1722
  ])) : E("", !0),
1723
- h.value ? (c(), p("p", {
1723
+ m.value ? (c(), p("p", {
1724
1724
  key: 1,
1725
- id: `${d}-${n.question.key}-error`,
1725
+ id: `${v}-${t.question.key}-error`,
1726
1726
  class: e(y.$style.fieldError),
1727
1727
  role: "alert"
1728
- }, _(h.value), 11, Ma)) : E("", !0)
1728
+ }, _(m.value), 11, To)) : E("", !0)
1729
1729
  ], 2));
1730
1730
  }
1731
- }), Ba = "_fieldGroup_1adip_2", Fa = "_searchableDropdown_1adip_8", Ra = "_fieldInput_1adip_14", Na = "_searchableDropdownToggle_1adip_40", Ga = "_searchableDropdownList_1adip_53", Oa = "_searchableDropdownOption_1adip_62", Ha = "_searchableDropdownOptionSelected_1adip_80", ja = "_searchableDropdownOptionHighlighted_1adip_85", Va = "_searchableDropdownEmpty_1adip_89", xa = "_fieldError_1adip_95", Ua = {
1732
- fieldGroup: Ba,
1733
- searchableDropdown: Fa,
1734
- fieldInput: Ra,
1735
- searchableDropdownToggle: Na,
1736
- searchableDropdownList: Ga,
1737
- searchableDropdownOption: Oa,
1738
- searchableDropdownOptionSelected: Ha,
1739
- searchableDropdownOptionHighlighted: ja,
1740
- searchableDropdownEmpty: Va,
1741
- fieldError: xa
1742
- }, Za = {
1743
- $style: Ua
1744
- }, za = /* @__PURE__ */ V(Pa, [["__cssModules", Za]]), Wa = ["aria-label"], Ka = /* @__PURE__ */ F({
1731
+ }), xo = "_fieldGroup_1adip_2", Fo = "_searchableDropdown_1adip_8", Ro = "_fieldInput_1adip_14", No = "_searchableDropdownToggle_1adip_40", Go = "_searchableDropdownList_1adip_53", Ho = "_searchableDropdownOption_1adip_62", Oo = "_searchableDropdownOptionSelected_1adip_80", Vo = "_searchableDropdownOptionHighlighted_1adip_85", Uo = "_searchableDropdownEmpty_1adip_89", Zo = "_fieldError_1adip_95", Wo = {
1732
+ fieldGroup: xo,
1733
+ searchableDropdown: Fo,
1734
+ fieldInput: Ro,
1735
+ searchableDropdownToggle: No,
1736
+ searchableDropdownList: Go,
1737
+ searchableDropdownOption: Ho,
1738
+ searchableDropdownOptionSelected: Oo,
1739
+ searchableDropdownOptionHighlighted: Vo,
1740
+ searchableDropdownEmpty: Uo,
1741
+ fieldError: Zo
1742
+ }, zo = {
1743
+ $style: Wo
1744
+ }, Ko = /* @__PURE__ */ G(jo, [["__cssModules", zo]]), Qo = ["aria-label"], Yo = /* @__PURE__ */ x({
1745
1745
  __name: "DtcPage",
1746
- setup(n) {
1747
- const s = x("dtc-onboarding"), l = x("dtc-consent-slots", {}), o = x("dtc-overrides"), u = w(() => {
1748
- var f, h;
1749
- return (((f = s.currentPage.value) == null ? void 0 : f.id) === "contact-info" ? o == null ? void 0 : o.value.submitLabel : void 0) ?? ((h = s.currentPage.value) == null ? void 0 : h.submitLabel) ?? "Next";
1746
+ setup(t) {
1747
+ const o = V("dtc-onboarding"), a = V("dtc-consent-slots", {}), l = V("dtc-overrides"), u = w(() => {
1748
+ var f, m;
1749
+ return (((f = o.currentPage.value) == null ? void 0 : f.id) === "contact-info" ? l == null ? void 0 : l.value.submitLabel : void 0) ?? ((m = o.currentPage.value) == null ? void 0 : m.submitLabel) ?? "Next";
1750
1750
  }), r = w(() => {
1751
1751
  var i, f;
1752
- return ((i = s.currentPage.value) == null ? void 0 : i.id) === "contact-info" && (o == null ? void 0 : o.value.contactPageTitle) !== void 0 ? o.value.contactPageTitle : (f = s.currentPage.value) == null ? void 0 : f.title;
1753
- }), d = I(null);
1752
+ return ((i = o.currentPage.value) == null ? void 0 : i.id) === "contact-info" && (l == null ? void 0 : l.value.contactPageTitle) !== void 0 ? l.value.contactPageTitle : (f = o.currentPage.value) == null ? void 0 : f.title;
1753
+ }), v = I(null);
1754
1754
  return ee(
1755
1755
  () => {
1756
- var v;
1757
- return (v = s.currentPage.value) == null ? void 0 : v.id;
1756
+ var d;
1757
+ return (d = o.currentPage.value) == null ? void 0 : d.id;
1758
1758
  },
1759
1759
  () => {
1760
- var v, i, f;
1761
- (i = (v = d.value) == null ? void 0 : v.scrollTo) == null || i.call(v, { top: 0, behavior: "smooth" }), (f = d.value) == null || f.focus();
1760
+ var d, i, f;
1761
+ (i = (d = v.value) == null ? void 0 : d.scrollTo) == null || i.call(d, { top: 0, behavior: "smooth" }), (f = v.value) == null || f.focus();
1762
1762
  }
1763
- ), (v, i) => {
1763
+ ), (d, i) => {
1764
1764
  var f;
1765
- return B(s).currentPage.value ? (c(), p("div", {
1765
+ return P(o).currentPage.value ? (c(), p("div", {
1766
1766
  key: 0,
1767
1767
  ref_key: "containerRef",
1768
- ref: d,
1769
- class: e(v.$style.pageContent),
1768
+ ref: v,
1769
+ class: e(d.$style.pageContent),
1770
1770
  tabindex: "-1",
1771
1771
  role: "region",
1772
1772
  "aria-label": r.value
1773
1773
  }, [
1774
- (c(!0), p(j, null, Q(B(s).visibleQuestions.value, (h) => (c(), p(j, {
1775
- key: h.key
1774
+ (c(!0), p(N, null, Y(P(o).visibleQuestions.value, (m) => (c(), p(N, {
1775
+ key: m.key
1776
1776
  }, [
1777
- h.style === "radio-card" ? (c(), K(Nn, {
1777
+ m.style === "radio-card" ? (c(), K(Rn, {
1778
1778
  key: 0,
1779
- question: h
1780
- }, null, 8, ["question"])) : h.style === "image-card" ? (c(), K(ts, {
1779
+ question: m
1780
+ }, null, 8, ["question"])) : m.style === "image-card" ? (c(), K(ns, {
1781
1781
  key: 1,
1782
- question: h
1783
- }, null, 8, ["question"])) : h.style === "checkbox-card" ? (c(), K(ms, {
1782
+ question: m
1783
+ }, null, 8, ["question"])) : m.style === "checkbox-card" ? (c(), K(hs, {
1784
1784
  key: 2,
1785
- question: h
1786
- }, null, 8, ["question"])) : h.style === "dropdown" ? (c(), K(As, {
1785
+ question: m
1786
+ }, null, 8, ["question"])) : m.style === "dropdown" ? (c(), K(Ts, {
1787
1787
  key: 3,
1788
- question: h
1789
- }, null, 8, ["question"])) : h.style === "input" || h.style === "email" ? (c(), K(zs, {
1788
+ question: m
1789
+ }, null, 8, ["question"])) : m.style === "input" || m.style === "email" ? (c(), K(zs, {
1790
1790
  key: 4,
1791
- question: h
1792
- }, null, 8, ["question"])) : h.style === "currency" ? (c(), K(ra, {
1791
+ question: m
1792
+ }, null, 8, ["question"])) : m.style === "currency" ? (c(), K(io, {
1793
1793
  key: 5,
1794
- question: h
1795
- }, null, 8, ["question"])) : h.style === "phone" ? (c(), K(ba, {
1794
+ question: m
1795
+ }, null, 8, ["question"])) : m.style === "phone" ? (c(), K(ko, {
1796
1796
  key: 6,
1797
- question: h
1798
- }, null, 8, ["question"])) : h.style === "toggle" ? (c(), K(Da, {
1797
+ question: m
1798
+ }, null, 8, ["question"])) : m.style === "toggle" ? (c(), K(Do, {
1799
1799
  key: 7,
1800
- question: h
1801
- }, null, 8, ["question"])) : h.style === "searchable-dropdown" ? (c(), K(za, {
1800
+ question: m
1801
+ }, null, 8, ["question"])) : m.style === "searchable-dropdown" ? (c(), K(Ko, {
1802
1802
  key: 8,
1803
- question: h
1803
+ question: m
1804
1804
  }, null, 8, ["question"])) : E("", !0)
1805
1805
  ], 64))), 128)),
1806
- ((f = B(s).currentPage.value) == null ? void 0 : f.id) === "contact-info" ? (c(), p(j, { key: 0 }, [
1807
- t("button", {
1806
+ ((f = P(o).currentPage.value) == null ? void 0 : f.id) === "contact-info" ? (c(), p(N, { key: 0 }, [
1807
+ n("button", {
1808
1808
  type: "button",
1809
- class: e(v.$style.ctaButton),
1810
- onClick: i[0] || (i[0] = (h) => B(s).goToNext())
1809
+ class: e(d.$style.ctaButton),
1810
+ onClick: i[0] || (i[0] = (m) => P(o).goToNext())
1811
1811
  }, _(u.value), 3),
1812
- B(l)["contact-consent-text"] ? (c(), K(Pe(() => {
1813
- var h, m;
1814
- return (m = (h = B(l))["contact-consent-text"]) == null ? void 0 : m.call(h);
1812
+ P(a)["contact-consent-text"] ? (c(), K(Be(() => {
1813
+ var m, b;
1814
+ return (b = (m = P(a))["contact-consent-text"]) == null ? void 0 : b.call(m);
1815
1815
  }), { key: 0 })) : (c(), p("p", {
1816
1816
  key: 1,
1817
- class: e(v.$style.consentText)
1817
+ class: e(d.$style.consentText)
1818
1818
  }, [
1819
- be(" By pressing “" + _(u.value) + ",” I agree to Opendoor’s ", 1),
1820
- t("a", {
1819
+ $e(" By pressing “" + _(u.value) + ",” I agree to Opendoor’s ", 1),
1820
+ n("a", {
1821
1821
  href: "https://www.opendoor.com/terms",
1822
1822
  target: "_blank",
1823
1823
  rel: "noopener noreferrer",
1824
- class: e(v.$style.consentLink)
1824
+ class: e(d.$style.consentLink)
1825
1825
  }, "Terms of Service", 2),
1826
- i[1] || (i[1] = be(" and ", -1)),
1827
- t("a", {
1826
+ i[1] || (i[1] = $e(" and ", -1)),
1827
+ n("a", {
1828
1828
  href: "https://www.opendoor.com/privacy",
1829
1829
  target: "_blank",
1830
1830
  rel: "noopener noreferrer",
1831
- class: e(v.$style.consentLink)
1831
+ class: e(d.$style.consentLink)
1832
1832
  }, "Privacy Policy", 2),
1833
- i[2] || (i[2] = be(". ", -1))
1833
+ i[2] || (i[2] = $e(". ", -1))
1834
1834
  ], 2))
1835
1835
  ], 64)) : E("", !0)
1836
- ], 10, Wa)) : E("", !0);
1836
+ ], 10, Qo)) : E("", !0);
1837
1837
  };
1838
1838
  }
1839
- }), Qa = "_pageContent_1jpin_2", Ya = "_consentText_1jpin_13", Xa = "_consentLink_1jpin_21", Ja = "_ctaButton_1jpin_26", eo = {
1840
- pageContent: Qa,
1841
- consentText: Ya,
1842
- consentLink: Xa,
1843
- ctaButton: Ja
1844
- }, to = {
1845
- $style: eo
1846
- }, no = /* @__PURE__ */ V(Ka, [["__cssModules", to]]), so = ["aria-valuenow"], ao = /* @__PURE__ */ F({
1839
+ }), Xo = "_pageContent_1jpin_2", Jo = "_consentText_1jpin_13", ea = "_consentLink_1jpin_21", ta = "_ctaButton_1jpin_26", na = {
1840
+ pageContent: Xo,
1841
+ consentText: Jo,
1842
+ consentLink: ea,
1843
+ ctaButton: ta
1844
+ }, sa = {
1845
+ $style: na
1846
+ }, oa = /* @__PURE__ */ G(Yo, [["__cssModules", sa]]), aa = ["aria-valuenow"], la = /* @__PURE__ */ x({
1847
1847
  __name: "DtcProgressBar",
1848
1848
  props: {
1849
1849
  progress: {}
1850
1850
  },
1851
- setup(n) {
1852
- const s = n, l = w(
1853
- () => Math.min(100, Math.max(0, s.progress * 100))
1851
+ setup(t) {
1852
+ const o = t, a = w(
1853
+ () => Math.min(100, Math.max(0, o.progress * 100))
1854
1854
  );
1855
- return (o, u) => (c(), p("div", {
1856
- class: e(o.$style.progressBar),
1855
+ return (l, u) => (c(), p("div", {
1856
+ class: e(l.$style.progressBar),
1857
1857
  role: "progressbar",
1858
- "aria-valuenow": l.value,
1858
+ "aria-valuenow": a.value,
1859
1859
  "aria-valuemin": 0,
1860
1860
  "aria-valuemax": 100
1861
1861
  }, [
1862
- t("div", {
1863
- class: e(o.$style.progressBarFill),
1864
- style: X({ width: `${l.value}%` })
1862
+ n("div", {
1863
+ class: e(l.$style.progressBarFill),
1864
+ style: le({ width: `${a.value}%` })
1865
1865
  }, null, 6)
1866
- ], 10, so));
1866
+ ], 10, aa));
1867
1867
  }
1868
- }), oo = "_progressBar_y1k9k_2", lo = "_progressBarFill_y1k9k_9", ro = {
1869
- progressBar: oo,
1870
- progressBarFill: lo
1871
- }, io = {
1872
- $style: ro
1873
- }, uo = /* @__PURE__ */ V(ao, [["__cssModules", io]]), co = { key: 1 }, vo = /* @__PURE__ */ F({
1868
+ }), ra = "_progressBar_y1k9k_2", ia = "_progressBarFill_y1k9k_9", ua = {
1869
+ progressBar: ra,
1870
+ progressBarFill: ia
1871
+ }, ca = {
1872
+ $style: ua
1873
+ }, da = /* @__PURE__ */ G(la, [["__cssModules", ca]]), va = { key: 1 }, ya = /* @__PURE__ */ x({
1874
1874
  __name: "DtcNavigation",
1875
- setup(n) {
1876
- const s = x("dtc-onboarding"), l = w(
1875
+ setup(t) {
1876
+ const o = V("dtc-onboarding"), a = w(
1877
1877
  () => {
1878
1878
  var u;
1879
- return ((u = s.currentPage.value) == null ? void 0 : u.submitLabel) ?? "Next";
1879
+ return ((u = o.currentPage.value) == null ? void 0 : u.submitLabel) ?? "Next";
1880
1880
  }
1881
- ), o = w(
1881
+ ), l = w(
1882
1882
  () => {
1883
1883
  var u;
1884
- return ((u = s.currentPage.value) == null ? void 0 : u.id) === "contact-info";
1884
+ return ((u = o.currentPage.value) == null ? void 0 : u.id) === "contact-info";
1885
1885
  }
1886
1886
  );
1887
- return (u, r) => o.value ? E("", !0) : (c(), p("nav", {
1887
+ return (u, r) => l.value ? E("", !0) : (c(), p("nav", {
1888
1888
  key: 0,
1889
1889
  class: e(u.$style.navigation),
1890
1890
  "aria-label": "Page navigation"
1891
1891
  }, [
1892
- ue(uo, {
1893
- progress: B(s).progress.value
1892
+ oe(da, {
1893
+ progress: P(o).progress.value
1894
1894
  }, null, 8, ["progress"]),
1895
- t("div", {
1895
+ n("div", {
1896
1896
  class: e(u.$style.navigationButtons)
1897
1897
  }, [
1898
- B(s).isFirstPage.value ? (c(), p("div", co)) : (c(), p("button", {
1898
+ P(o).isFirstPage.value ? (c(), p("div", va)) : (c(), p("button", {
1899
1899
  key: 0,
1900
1900
  type: "button",
1901
1901
  class: e(u.$style.backButton),
1902
1902
  "aria-label": "Go back",
1903
- onClick: r[0] || (r[0] = (d) => B(s).goToPrev())
1903
+ onClick: r[0] || (r[0] = (v) => P(o).goToPrev())
1904
1904
  }, [...r[2] || (r[2] = [
1905
- t("svg", {
1905
+ n("svg", {
1906
1906
  width: "24",
1907
1907
  height: "24",
1908
1908
  viewBox: "0 0 24 24",
@@ -1912,58 +1912,58 @@ const Hn = {
1912
1912
  "stroke-linecap": "round",
1913
1913
  "stroke-linejoin": "round"
1914
1914
  }, [
1915
- t("polyline", { points: "15 18 9 12 15 6" })
1915
+ n("polyline", { points: "15 18 9 12 15 6" })
1916
1916
  ], -1)
1917
1917
  ])], 2)),
1918
- t("button", {
1918
+ n("button", {
1919
1919
  type: "button",
1920
1920
  class: e(u.$style.nextButton),
1921
- onClick: r[1] || (r[1] = (d) => B(s).goToNext())
1922
- }, _(l.value), 3)
1921
+ onClick: r[1] || (r[1] = (v) => P(o).goToNext())
1922
+ }, _(a.value), 3)
1923
1923
  ], 2)
1924
1924
  ], 2));
1925
1925
  }
1926
- }), yo = "_navigation_14jpi_2", fo = "_navigationButtons_14jpi_16", po = "_backButton_14jpi_22", ho = "_nextButton_14jpi_45", mo = {
1927
- navigation: yo,
1928
- navigationButtons: fo,
1929
- backButton: po,
1930
- nextButton: ho
1931
- }, go = {
1932
- $style: mo
1933
- }, bo = /* @__PURE__ */ V(vo, [["__cssModules", go]]), $o = /* @__PURE__ */ F({
1926
+ }), pa = "_navigation_14jpi_2", fa = "_navigationButtons_14jpi_16", ma = "_backButton_14jpi_22", ga = "_nextButton_14jpi_45", ha = {
1927
+ navigation: pa,
1928
+ navigationButtons: fa,
1929
+ backButton: ma,
1930
+ nextButton: ga
1931
+ }, ba = {
1932
+ $style: ha
1933
+ }, $a = /* @__PURE__ */ G(ya, [["__cssModules", ba]]), ka = /* @__PURE__ */ x({
1934
1934
  __name: "DtcLayout",
1935
1935
  props: {
1936
1936
  address: {}
1937
1937
  },
1938
- setup(n) {
1939
- const s = n, l = x("dtc-onboarding"), o = x("dtc-overrides"), u = w(
1938
+ setup(t) {
1939
+ const o = t, a = V("dtc-onboarding"), l = V("dtc-overrides"), u = w(
1940
1940
  () => {
1941
1941
  var i;
1942
- return ((i = l.currentPage.value) == null ? void 0 : i.id) === "contact-info";
1942
+ return ((i = a.currentPage.value) == null ? void 0 : i.id) === "contact-info";
1943
1943
  }
1944
1944
  ), r = w(() => {
1945
1945
  var i;
1946
- return u.value && (o == null ? void 0 : o.value.contactPageTitle) !== void 0 ? o.value.contactPageTitle : (i = l.currentPage.value) == null ? void 0 : i.title;
1947
- }), d = w(() => {
1946
+ return u.value && (l == null ? void 0 : l.value.contactPageTitle) !== void 0 ? l.value.contactPageTitle : (i = a.currentPage.value) == null ? void 0 : i.title;
1947
+ }), v = w(() => {
1948
1948
  var i;
1949
- return u.value && (o == null ? void 0 : o.value.contactPageSubtitle) !== void 0 ? o.value.contactPageSubtitle : (i = l.currentPage.value) == null ? void 0 : i.subtitle;
1950
- }), v = w(
1949
+ return u.value && (l == null ? void 0 : l.value.contactPageSubtitle) !== void 0 ? l.value.contactPageSubtitle : (i = a.currentPage.value) == null ? void 0 : i.subtitle;
1950
+ }), d = w(
1951
1951
  () => [
1952
- s.address.street1,
1953
- s.address.street2,
1954
- s.address.city,
1955
- s.address.state,
1956
- s.address.postalCode
1952
+ o.address.street1,
1953
+ o.address.street2,
1954
+ o.address.city,
1955
+ o.address.state,
1956
+ o.address.postalCode
1957
1957
  ].filter(Boolean).join(", ")
1958
1958
  );
1959
- return (i, f) => B(l).currentPage.value ? (c(), p("div", {
1959
+ return (i, f) => P(a).currentPage.value ? (c(), p("div", {
1960
1960
  key: 0,
1961
1961
  class: e(i.$style.layout)
1962
1962
  }, [
1963
- t("div", {
1963
+ n("div", {
1964
1964
  class: e(i.$style.layoutScrollable)
1965
1965
  }, [
1966
- t("div", {
1966
+ n("div", {
1967
1967
  class: e(i.$style.addressBar)
1968
1968
  }, [
1969
1969
  (c(), p("svg", {
@@ -1975,55 +1975,55 @@ const Hn = {
1975
1975
  "stroke-width": "2",
1976
1976
  class: e(i.$style.addressIcon)
1977
1977
  }, [...f[0] || (f[0] = [
1978
- t("circle", {
1978
+ n("circle", {
1979
1979
  cx: "12",
1980
1980
  cy: "10",
1981
1981
  r: "3"
1982
1982
  }, null, -1),
1983
- t("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" }, null, -1)
1983
+ n("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" }, null, -1)
1984
1984
  ])], 2)),
1985
- t("span", {
1985
+ n("span", {
1986
1986
  class: e(i.$style.addressText)
1987
- }, _(v.value), 3)
1987
+ }, _(d.value), 3)
1988
1988
  ], 2),
1989
- t("div", {
1989
+ n("div", {
1990
1990
  class: e(i.$style.contentSplit)
1991
1991
  }, [
1992
- t("div", {
1992
+ n("div", {
1993
1993
  class: e(i.$style.contentLeft)
1994
1994
  }, [
1995
- t("h1", {
1995
+ n("h1", {
1996
1996
  class: e(i.$style.pageTitle)
1997
1997
  }, _(r.value), 3),
1998
- d.value ? (c(), p("p", {
1998
+ v.value ? (c(), p("p", {
1999
1999
  key: 0,
2000
2000
  class: e(i.$style.pageSubtitle)
2001
- }, _(d.value), 3)) : E("", !0)
2001
+ }, _(v.value), 3)) : E("", !0)
2002
2002
  ], 2),
2003
- t("div", {
2003
+ n("div", {
2004
2004
  class: e(i.$style.contentRight)
2005
2005
  }, [
2006
- ue(no)
2006
+ oe(oa)
2007
2007
  ], 2)
2008
2008
  ], 2)
2009
2009
  ], 2),
2010
- ue(bo)
2010
+ oe($a)
2011
2011
  ], 2)) : E("", !0);
2012
2012
  }
2013
- }), Co = "_layout_1as8w_2", ko = "_layoutScrollable_1as8w_9", _o = "_addressBar_1as8w_25", wo = "_addressIcon_1as8w_33", Lo = "_addressText_1as8w_37", Io = "_contentSplit_1as8w_43", So = "_contentLeft_1as8w_57", Do = "_contentRight_1as8w_63", Eo = "_pageTitle_1as8w_79", qo = "_pageSubtitle_1as8w_87", Mo = {
2014
- layout: Co,
2015
- layoutScrollable: ko,
2016
- addressBar: _o,
2017
- addressIcon: wo,
2018
- addressText: Lo,
2019
- contentSplit: Io,
2020
- contentLeft: So,
2021
- contentRight: Do,
2022
- pageTitle: Eo,
2023
- pageSubtitle: qo
2024
- }, Ao = {
2025
- $style: Mo
2026
- }, To = /* @__PURE__ */ V($o, [["__cssModules", Ao]]), Po = /* @__PURE__ */ F({
2013
+ }), Ca = "_layout_1as8w_2", _a = "_layoutScrollable_1as8w_9", wa = "_addressBar_1as8w_25", La = "_addressIcon_1as8w_33", Ia = "_addressText_1as8w_37", Sa = "_contentSplit_1as8w_43", qa = "_contentLeft_1as8w_57", Ea = "_contentRight_1as8w_63", Da = "_pageTitle_1as8w_79", Ma = "_pageSubtitle_1as8w_87", Aa = {
2014
+ layout: Ca,
2015
+ layoutScrollable: _a,
2016
+ addressBar: wa,
2017
+ addressIcon: La,
2018
+ addressText: Ia,
2019
+ contentSplit: Sa,
2020
+ contentLeft: qa,
2021
+ contentRight: Ea,
2022
+ pageTitle: Da,
2023
+ pageSubtitle: Ma
2024
+ }, Ta = {
2025
+ $style: Aa
2026
+ }, Ba = /* @__PURE__ */ G(ka, [["__cssModules", Ta]]), Pa = /* @__PURE__ */ x({
2027
2027
  __name: "DtcOnboardingFlow",
2028
2028
  props: {
2029
2029
  address: {},
@@ -2037,17 +2037,17 @@ const Hn = {
2037
2037
  onClose: {}
2038
2038
  },
2039
2039
  emits: ["submit", "page-change", "answer-change", "ready", "error"],
2040
- setup(n, { emit: s }) {
2041
- const l = n, o = Oe();
2042
- de("dtc-consent-slots", o);
2040
+ setup(t, { emit: o }) {
2041
+ const a = t, l = He();
2042
+ de("dtc-consent-slots", l);
2043
2043
  const u = w(() => ({
2044
- submitLabel: l.submitLabel,
2045
- contactPageTitle: l.contactPageTitle,
2046
- contactPageSubtitle: l.contactPageSubtitle
2044
+ submitLabel: a.submitLabel,
2045
+ contactPageTitle: a.contactPageTitle,
2046
+ contactPageSubtitle: a.contactPageSubtitle
2047
2047
  }));
2048
2048
  de("dtc-overrides", u);
2049
- const r = s, d = w(() => ye(l.appearance));
2050
- function v(L) {
2049
+ const r = o, v = w(() => ye(a.appearance));
2050
+ function d(L) {
2051
2051
  r("submit", L);
2052
2052
  }
2053
2053
  function i(L, M) {
@@ -2056,221 +2056,228 @@ const Hn = {
2056
2056
  function f(L, M) {
2057
2057
  r("answer-change", L, M);
2058
2058
  }
2059
- function h() {
2059
+ function m() {
2060
2060
  r("ready");
2061
2061
  }
2062
- function m(L) {
2062
+ function b(L) {
2063
2063
  r("error", L);
2064
2064
  }
2065
- function b() {
2065
+ function g() {
2066
2066
  var L;
2067
- (L = l.onClose) == null || L.call(l);
2067
+ (L = a.onClose) == null || L.call(a);
2068
2068
  }
2069
2069
  return (L, M) => (c(), p("div", {
2070
2070
  class: e(L.$style.container),
2071
- style: X(d.value)
2071
+ style: le(v.value)
2072
2072
  }, [
2073
- ue(hn, {
2074
- "initial-answers": n.initialAnswers,
2075
- "skip-pages": n.skipPages,
2076
- "on-submit": v,
2073
+ oe(hn, {
2074
+ "initial-answers": t.initialAnswers,
2075
+ "skip-pages": t.skipPages,
2076
+ "on-submit": d,
2077
2077
  "on-page-change": i,
2078
2078
  "on-answer-change": f,
2079
- "on-ready": h,
2080
- "on-error": m
2079
+ "on-ready": m,
2080
+ "on-error": b
2081
2081
  }, {
2082
- default: He(() => [
2083
- ue(In, {
2084
- "partner-logo-url": n.partnerLogoUrl,
2085
- "show-close-button": !!n.onClose,
2086
- onClose: b
2082
+ default: Oe(() => [
2083
+ oe(je, {
2084
+ "partner-logo-url": t.partnerLogoUrl,
2085
+ "show-close-button": !!t.onClose,
2086
+ onClose: g
2087
2087
  }, null, 8, ["partner-logo-url", "show-close-button"]),
2088
- ue(To, { address: n.address }, null, 8, ["address"])
2088
+ oe(Ba, { address: t.address }, null, 8, ["address"])
2089
2089
  ]),
2090
2090
  _: 1
2091
2091
  }, 8, ["initial-answers", "skip-pages"])
2092
2092
  ], 6));
2093
2093
  }
2094
- }), Bo = "_container_kjhh7_2", Fo = {
2095
- container: Bo
2096
- }, Ro = {
2097
- $style: Fo
2098
- }, er = /* @__PURE__ */ V(Po, [["__cssModules", Ro]]), No = ["disabled"], Go = ["value", "disabled"], Oo = ["checked", "disabled"], Ho = ["checked", "disabled"], jo = ["disabled"], Vo = ["disabled"], xo = ["disabled"], Uo = ["disabled"], Zo = ["disabled"], zo = ["disabled", "aria-pressed", "onClick"], Wo = ["onClick"], Ko = ["disabled"], Qo = /* @__PURE__ */ F({
2094
+ }), ja = "_container_kjhh7_2", xa = {
2095
+ container: ja
2096
+ }, Fa = {
2097
+ $style: xa
2098
+ }, nr = /* @__PURE__ */ G(Pa, [["__cssModules", Fa]]), Ra = ["disabled"], Na = ["value", "disabled"], Ga = ["checked", "disabled"], Ha = ["checked", "disabled"], Oa = ["disabled"], Va = ["disabled"], Ua = ["disabled"], Za = ["disabled"], Wa = ["disabled"], za = ["disabled", "aria-pressed", "onClick"], Ka = ["onClick"], Qa = ["disabled"], Ya = /* @__PURE__ */ x({
2099
2099
  __name: "ScheduleAssessmentFlow",
2100
2100
  props: {
2101
2101
  offerId: {},
2102
2102
  customerName: {},
2103
2103
  customerPhone: {},
2104
2104
  address: {},
2105
- appearance: {}
2105
+ appearance: {},
2106
+ partnerLogoUrl: {},
2107
+ onClose: { type: Function }
2106
2108
  },
2107
2109
  emits: ["scheduled", "done", "ready", "error"],
2108
- setup(n, { emit: s }) {
2109
- const l = n, o = s, u = Be(), r = w(() => ye(l.appearance)), d = I("select"), v = I(!0), i = I(null), f = I([]), h = I("UTC"), m = I(null), b = I(null), L = I(null), M = I(l.customerName ?? ""), q = I(S(l.customerPhone ?? "")), O = I(null), T = I(""), R = I(!1), Z = I(null);
2110
+ setup(t, { emit: o }) {
2111
+ const a = t;
2112
+ function l() {
2113
+ var s;
2114
+ (s = a.onClose) == null || s.call(a);
2115
+ }
2116
+ const u = o, r = Pe(), v = w(() => ye(a.appearance)), d = I("select"), i = I(!0), f = I(null), m = I([]), b = I("UTC"), g = I(null), L = I(null), M = I(null), D = I(a.customerName ?? ""), H = I(T(a.customerPhone ?? "")), A = I(null), Z = I(""), j = I(!1), O = I(null);
2110
2117
  ve(async () => {
2111
- if (!(l.customerName && l.customerPhone))
2118
+ if (!(a.customerName && a.customerPhone))
2112
2119
  try {
2113
- const a = await u.value.getCustomerContact({
2114
- opendoorOfferRequestId: l.offerId
2120
+ const s = await r.value.getCustomerContact({
2121
+ opendoorOfferRequestId: a.offerId
2115
2122
  });
2116
- !l.customerName && !M.value && a.fullName && (M.value = a.fullName), !l.customerPhone && !q.value && a.phoneNumber && (q.value = S(a.phoneNumber));
2123
+ !a.customerName && !D.value && s.fullName && (D.value = s.fullName), !a.customerPhone && !H.value && s.phoneNumber && (H.value = T(s.phoneNumber));
2117
2124
  } catch {
2118
2125
  }
2119
2126
  }), ve(async () => {
2120
2127
  try {
2121
- const a = await u.value.getAssessmentSlots({
2122
- offerId: l.offerId
2128
+ const s = await r.value.getAssessmentSlots({
2129
+ offerId: a.offerId
2123
2130
  });
2124
- if (f.value = a.availableSlots, h.value = a.timezone, a.availableSlots.length > 0)
2125
- m.value = P(
2126
- A(a.availableSlots[0], a.timezone)
2131
+ if (m.value = s.availableSlots, b.value = s.timezone, s.availableSlots.length > 0)
2132
+ g.value = z(
2133
+ B(s.availableSlots[0], s.timezone)
2127
2134
  );
2128
2135
  else {
2129
- const g = /* @__PURE__ */ new Date();
2130
- m.value = { year: g.getFullYear(), month: g.getMonth() };
2136
+ const h = /* @__PURE__ */ new Date();
2137
+ g.value = { year: h.getFullYear(), month: h.getMonth() };
2131
2138
  }
2132
- v.value = !1, o("ready");
2133
- } catch (a) {
2134
- const g = a instanceof Error ? a : new Error(String(a));
2135
- i.value = g;
2136
- const C = /* @__PURE__ */ new Date();
2137
- m.value = { year: C.getFullYear(), month: C.getMonth() }, v.value = !1, o("error", g);
2139
+ i.value = !1, u("ready");
2140
+ } catch (s) {
2141
+ const h = s instanceof Error ? s : new Error(String(s));
2142
+ f.value = h;
2143
+ const k = /* @__PURE__ */ new Date();
2144
+ g.value = { year: k.getFullYear(), month: k.getMonth() }, i.value = !1, u("error", h);
2138
2145
  }
2139
2146
  });
2140
- const N = w(() => {
2141
- const a = /* @__PURE__ */ new Map();
2142
- for (const g of f.value) {
2143
- const C = A(g, h.value), G = a.get(C) ?? [];
2144
- G.push(g), a.set(C, G);
2147
+ const S = w(() => {
2148
+ const s = /* @__PURE__ */ new Map();
2149
+ for (const h of m.value) {
2150
+ const k = B(h, b.value), F = s.get(k) ?? [];
2151
+ F.push(h), s.set(k, F);
2145
2152
  }
2146
- return a;
2147
- }), D = w(() => m.value ? Ce(m.value) : []), U = w(
2148
- () => m.value ? fe(m.value) : ""
2149
- ), Y = w(
2150
- () => m.value ? he(m.value, N.value) : !1
2153
+ return s;
2154
+ }), U = w(() => g.value ? ge(g.value) : []), Q = w(
2155
+ () => g.value ? De(g.value) : ""
2151
2156
  ), re = w(
2152
- () => m.value ? ke(m.value, N.value) : !1
2157
+ () => g.value ? ke(g.value, S.value) : !1
2153
2158
  ), J = w(
2154
- () => b.value ? N.value.get(b.value) ?? [] : []
2155
- ), z = w(() => {
2156
- const a = J.value[0];
2157
- return a ? $e(new Date(a), h.value) : null;
2158
- }), ae = w(
2159
- () => L.value ? new Date(L.value) : null
2159
+ () => g.value ? Ce(g.value, S.value) : !1
2160
+ ), W = w(
2161
+ () => L.value ? S.value.get(L.value) ?? [] : []
2162
+ ), ie = w(() => {
2163
+ const s = W.value[0];
2164
+ return s ? fe(new Date(s), b.value) : null;
2165
+ }), X = w(
2166
+ () => M.value ? new Date(M.value) : null
2160
2167
  );
2161
- function te(a) {
2162
- a && N.value.has(a.key) && (b.value = a.key, L.value = null);
2168
+ function ue(s) {
2169
+ s && S.value.has(s.key) && (L.value = s.key, M.value = null);
2163
2170
  }
2164
- function ie(a) {
2165
- m.value && (m.value = W(m.value, a));
2171
+ function te(s) {
2172
+ g.value && (g.value = pe(g.value, s));
2166
2173
  }
2167
- const ne = w(() => {
2168
- const a = q.value.replace(/\D/g, "");
2169
- return !R.value && M.value.trim().length > 0 && a.length >= 10 && O.value !== null && (!O.value || T.value.trim().length > 0);
2174
+ const $ = w(() => {
2175
+ const s = H.value.replace(/\D/g, "");
2176
+ return !j.value && D.value.trim().length > 0 && s.length >= 10 && A.value !== null && (!A.value || Z.value.trim().length > 0);
2170
2177
  });
2171
- function $(a) {
2172
- const g = a.target;
2173
- q.value = S(g.value), g.value = q.value;
2178
+ function y(s) {
2179
+ const h = s.target;
2180
+ H.value = T(h.value), h.value = H.value;
2174
2181
  }
2175
- async function y() {
2176
- if (!(!ne.value || !L.value)) {
2177
- R.value = !0, Z.value = null;
2182
+ async function C() {
2183
+ if (!(!$.value || !M.value)) {
2184
+ j.value = !0, O.value = null;
2178
2185
  try {
2179
- const a = O.value ? `Customer: ${M.value.trim()}. Access instructions: ${T.value.trim()}` : `Customer: ${M.value.trim()}. No gate code or entry restrictions.`, g = await u.value.scheduleAssessment({
2180
- offerId: l.offerId,
2181
- selectedInspectionTime: L.value,
2182
- reminderPhone: q.value.replace(/\D/g, ""),
2183
- notes: a
2186
+ const s = A.value ? `Customer: ${D.value.trim()}. Access instructions: ${Z.value.trim()}` : `Customer: ${D.value.trim()}. No gate code or entry restrictions.`, h = await r.value.scheduleAssessment({
2187
+ offerId: a.offerId,
2188
+ selectedInspectionTime: M.value,
2189
+ reminderPhone: H.value.replace(/\D/g, ""),
2190
+ notes: s
2184
2191
  });
2185
2192
  d.value = "success";
2186
2193
  try {
2187
- o("scheduled", g.visitId);
2188
- } catch (C) {
2189
- const G = C instanceof Error ? C : new Error(String(C));
2190
- o("error", G);
2194
+ u("scheduled", h.visitId);
2195
+ } catch (k) {
2196
+ const F = k instanceof Error ? k : new Error(String(k));
2197
+ u("error", F);
2191
2198
  }
2192
- } catch (a) {
2193
- const g = a instanceof Error ? a : new Error(String(a));
2194
- Z.value = g.message, o("error", g);
2199
+ } catch (s) {
2200
+ const h = s instanceof Error ? s : new Error(String(s));
2201
+ O.value = h.message, u("error", h);
2195
2202
  } finally {
2196
- R.value = !1;
2203
+ j.value = !1;
2197
2204
  }
2198
2205
  }
2199
2206
  }
2200
- function k(a) {
2201
- return a.trim().split(/\s+/)[0] ?? "";
2207
+ function q(s) {
2208
+ return s.trim().split(/\s+/)[0] ?? "";
2202
2209
  }
2203
- function S(a) {
2204
- const g = a.replace(/\D/g, "").slice(0, 10);
2205
- return g.length === 0 ? "" : g.length <= 3 ? `(${g}` : g.length <= 6 ? `(${g.slice(0, 3)}) ${g.slice(3)}` : `(${g.slice(0, 3)}) ${g.slice(3, 6)}-${g.slice(6)}`;
2210
+ function T(s) {
2211
+ const h = s.replace(/\D/g, "").slice(0, 10);
2212
+ return h.length === 0 ? "" : h.length <= 3 ? `(${h}` : h.length <= 6 ? `(${h.slice(0, 3)}) ${h.slice(3)}` : `(${h.slice(0, 3)}) ${h.slice(3, 6)}-${h.slice(6)}`;
2206
2213
  }
2207
- function A(a, g) {
2214
+ function B(s, h) {
2208
2215
  return new Intl.DateTimeFormat("en-CA", {
2209
- timeZone: g,
2216
+ timeZone: h,
2210
2217
  year: "numeric",
2211
2218
  month: "2-digit",
2212
2219
  day: "2-digit"
2213
- }).format(new Date(a));
2220
+ }).format(new Date(s));
2214
2221
  }
2215
- function P(a) {
2216
- const [g, C] = a.split("-").map((G) => parseInt(G, 10));
2217
- return { year: g, month: C - 1 };
2222
+ function z(s) {
2223
+ const [h, k] = s.split("-").map((F) => parseInt(F, 10));
2224
+ return { year: h, month: k - 1 };
2218
2225
  }
2219
- function W(a, g) {
2220
- const C = a.year * 12 + a.month + g, G = Math.floor(C / 12), se = C - G * 12;
2221
- return { year: G, month: se };
2226
+ function pe(s, h) {
2227
+ const k = s.year * 12 + s.month + h, F = Math.floor(k / 12), ne = k - F * 12;
2228
+ return { year: F, month: ne };
2222
2229
  }
2223
- function fe({ year: a, month: g }) {
2224
- return new Date(Date.UTC(a, g, 1)).toLocaleString(void 0, {
2230
+ function De({ year: s, month: h }) {
2231
+ return new Date(Date.UTC(s, h, 1)).toLocaleString(void 0, {
2225
2232
  timeZone: "UTC",
2226
2233
  month: "long",
2227
2234
  year: "numeric"
2228
2235
  });
2229
2236
  }
2230
- function $e(a, g) {
2237
+ function fe(s, h) {
2231
2238
  return new Intl.DateTimeFormat(void 0, {
2232
- timeZone: g,
2239
+ timeZone: h,
2233
2240
  weekday: "long",
2234
2241
  month: "long",
2235
2242
  day: "numeric"
2236
- }).format(a);
2243
+ }).format(s);
2237
2244
  }
2238
- function pe(a, g) {
2245
+ function me(s, h) {
2239
2246
  return new Intl.DateTimeFormat(void 0, {
2240
- timeZone: g,
2247
+ timeZone: h,
2241
2248
  hour: "numeric",
2242
2249
  minute: "2-digit",
2243
2250
  hour12: !0
2244
- }).format(a);
2251
+ }).format(s);
2245
2252
  }
2246
- function Ce({ year: a, month: g }) {
2247
- const C = new Date(Date.UTC(a, g, 1)).getUTCDay(), G = new Date(Date.UTC(a, g + 1, 0)).getUTCDate(), se = Math.ceil((C + G) / 7) * 7, oe = [], Re = String(a).padStart(4, "0"), Ne = String(g + 1).padStart(2, "0");
2248
- for (let Le = 0; Le < se; Le++) {
2249
- const me = Le - C + 1;
2250
- me < 1 || me > G ? oe.push(null) : oe.push({
2251
- key: `${Re}-${Ne}-${String(me).padStart(2, "0")}`,
2252
- day: me
2253
+ function ge({ year: s, month: h }) {
2254
+ const k = new Date(Date.UTC(s, h, 1)).getUTCDay(), F = new Date(Date.UTC(s, h + 1, 0)).getUTCDate(), ne = Math.ceil((k + F) / 7) * 7, se = [], Re = String(s).padStart(4, "0"), Ne = String(h + 1).padStart(2, "0");
2255
+ for (let we = 0; we < ne; we++) {
2256
+ const he = we - k + 1;
2257
+ he < 1 || he > F ? se.push(null) : se.push({
2258
+ key: `${Re}-${Ne}-${String(he).padStart(2, "0")}`,
2259
+ day: he
2253
2260
  });
2254
2261
  }
2255
- return oe;
2262
+ return se;
2256
2263
  }
2257
- function he(a, g) {
2258
- for (const C of g.keys()) {
2259
- const [G, se] = C.split("-").map((oe) => parseInt(oe, 10));
2260
- if (G < a.year || G === a.year && se - 1 < a.month)
2264
+ function ke(s, h) {
2265
+ for (const k of h.keys()) {
2266
+ const [F, ne] = k.split("-").map((se) => parseInt(se, 10));
2267
+ if (F < s.year || F === s.year && ne - 1 < s.month)
2261
2268
  return !0;
2262
2269
  }
2263
2270
  return !1;
2264
2271
  }
2265
- function ke(a, g) {
2266
- for (const C of g.keys()) {
2267
- const [G, se] = C.split("-").map((oe) => parseInt(oe, 10));
2268
- if (G > a.year || G === a.year && se - 1 > a.month)
2272
+ function Ce(s, h) {
2273
+ for (const k of h.keys()) {
2274
+ const [F, ne] = k.split("-").map((se) => parseInt(se, 10));
2275
+ if (F > s.year || F === s.year && ne - 1 > s.month)
2269
2276
  return !0;
2270
2277
  }
2271
2278
  return !1;
2272
2279
  }
2273
- const _e = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"], we = [
2280
+ const _e = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"], xe = [
2274
2281
  {
2275
2282
  title: "No extra preparation needed",
2276
2283
  description: "No need to fix, clean, or stage your home."
@@ -2297,101 +2304,133 @@ const Hn = {
2297
2304
  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."
2298
2305
  }
2299
2306
  ];
2300
- return (a, g) => v.value ? (c(), p("div", {
2301
- key: 0,
2302
- class: e(a.$style.root),
2303
- style: X(r.value),
2304
- "data-testid": "schedule-assessment-loading"
2307
+ return (s, h) => (c(), p("div", {
2308
+ class: e(s.$style.container),
2309
+ style: le(v.value)
2305
2310
  }, [
2306
- t("div", {
2307
- class: e(a.$style.card)
2311
+ oe(je, {
2312
+ "partner-logo-url": t.partnerLogoUrl,
2313
+ "show-close-button": !!t.onClose,
2314
+ onClose: l
2315
+ }, null, 8, ["partner-logo-url", "show-close-button"]),
2316
+ i.value ? (c(), p("div", {
2317
+ key: 0,
2318
+ class: e(s.$style.root),
2319
+ "data-testid": "schedule-assessment-loading"
2308
2320
  }, [
2309
- t("p", {
2310
- class: e(a.$style.subtitle)
2311
- }, "Loading available times…", 2)
2312
- ], 2)
2313
- ], 6)) : i.value ? (c(), p("div", {
2314
- key: 1,
2315
- class: e(a.$style.root),
2316
- style: X(r.value),
2317
- "data-testid": "schedule-assessment-error"
2318
- }, [
2319
- t("div", {
2320
- class: e(a.$style.card)
2321
+ n("div", {
2322
+ class: e(s.$style.card)
2323
+ }, [
2324
+ n("p", {
2325
+ class: e(s.$style.subtitle)
2326
+ }, "Loading available times…", 2)
2327
+ ], 2)
2328
+ ], 2)) : f.value ? (c(), p("div", {
2329
+ key: 1,
2330
+ class: e(s.$style.root),
2331
+ "data-testid": "schedule-assessment-error"
2321
2332
  }, [
2322
- t("p", {
2323
- class: e(a.$style.subtitle)
2324
- }, " We couldn't load available times. Please try again in a few minutes. ", 2)
2325
- ], 2)
2326
- ], 6)) : d.value === "success" ? (c(), p("div", {
2327
- key: 2,
2328
- class: e(a.$style.root),
2329
- style: X(r.value),
2330
- "data-testid": "schedule-assessment-success"
2331
- }, [
2332
- t("div", {
2333
- class: e(a.$style.card)
2333
+ n("div", {
2334
+ class: e(s.$style.card)
2335
+ }, [
2336
+ n("p", {
2337
+ class: e(s.$style.subtitle)
2338
+ }, " We couldn't load available times. Please try again in a few minutes. ", 2)
2339
+ ], 2)
2340
+ ], 2)) : d.value === "success" ? (c(), p("div", {
2341
+ key: 2,
2342
+ class: e(s.$style.root),
2343
+ "data-testid": "schedule-assessment-success"
2334
2344
  }, [
2335
- t("div", {
2336
- class: e(a.$style.successCheckCircle),
2337
- "aria-hidden": "true"
2338
- }, [...g[9] || (g[9] = [
2339
- t("svg", {
2340
- width: "20",
2341
- height: "20",
2342
- viewBox: "0 0 20 20",
2343
- fill: "none"
2344
- }, [
2345
- t("path", {
2346
- d: "M5 10.5l3 3 7-7",
2347
- stroke: "currentColor",
2348
- "stroke-width": "2",
2349
- "stroke-linecap": "round",
2350
- "stroke-linejoin": "round"
2351
- })
2352
- ], -1)
2353
- ])], 2),
2354
- t("h2", {
2355
- class: e(a.$style.title)
2356
- }, _(M.value ? `${k(M.value)}, your assessment is scheduled!` : "Your assessment is scheduled!"), 3),
2357
- t("p", {
2358
- class: e(a.$style.subtitle)
2359
- }, " A calendar invite has been sent to your email address. ", 2),
2360
- t("div", {
2361
- class: e(a.$style.summaryCard)
2345
+ n("div", {
2346
+ class: e(s.$style.card)
2362
2347
  }, [
2363
- ae.value ? (c(), p(j, { key: 0 }, [
2364
- t("div", {
2365
- class: e(a.$style.summaryRow)
2348
+ n("div", {
2349
+ class: e(s.$style.successCheckCircle),
2350
+ "aria-hidden": "true"
2351
+ }, [...h[9] || (h[9] = [
2352
+ n("svg", {
2353
+ width: "20",
2354
+ height: "20",
2355
+ viewBox: "0 0 20 20",
2356
+ fill: "none"
2366
2357
  }, [
2367
- (c(), p("svg", {
2368
- class: e(a.$style.summaryIcon),
2369
- width: "16",
2370
- height: "16",
2371
- viewBox: "0 0 16 16",
2372
- fill: "none",
2358
+ n("path", {
2359
+ d: "M5 10.5l3 3 7-7",
2373
2360
  stroke: "currentColor",
2374
- "stroke-width": "1.5",
2361
+ "stroke-width": "2",
2375
2362
  "stroke-linecap": "round",
2376
- "stroke-linejoin": "round",
2377
- "aria-hidden": "true"
2378
- }, [...g[10] || (g[10] = [
2379
- t("rect", {
2380
- x: "2",
2381
- y: "3.5",
2382
- width: "12",
2383
- height: "11",
2384
- rx: "1.5"
2385
- }, null, -1),
2386
- t("path", { d: "M2 6.5h12M5.5 2v3M10.5 2v3" }, null, -1)
2387
- ])], 2)),
2388
- t("span", null, _($e(ae.value, h.value)), 1)
2389
- ], 2),
2390
- t("div", {
2391
- class: e(a.$style.summaryRow)
2363
+ "stroke-linejoin": "round"
2364
+ })
2365
+ ], -1)
2366
+ ])], 2),
2367
+ n("h2", {
2368
+ class: e(s.$style.title)
2369
+ }, _(D.value ? `${q(D.value)}, your assessment is scheduled!` : "Your assessment is scheduled!"), 3),
2370
+ n("p", {
2371
+ class: e(s.$style.subtitle)
2372
+ }, " A calendar invite has been sent to your email address. ", 2),
2373
+ n("div", {
2374
+ class: e(s.$style.summaryCard)
2375
+ }, [
2376
+ X.value ? (c(), p(N, { key: 0 }, [
2377
+ n("div", {
2378
+ class: e(s.$style.summaryRow)
2379
+ }, [
2380
+ (c(), p("svg", {
2381
+ class: e(s.$style.summaryIcon),
2382
+ width: "16",
2383
+ height: "16",
2384
+ viewBox: "0 0 16 16",
2385
+ fill: "none",
2386
+ stroke: "currentColor",
2387
+ "stroke-width": "1.5",
2388
+ "stroke-linecap": "round",
2389
+ "stroke-linejoin": "round",
2390
+ "aria-hidden": "true"
2391
+ }, [...h[10] || (h[10] = [
2392
+ n("rect", {
2393
+ x: "2",
2394
+ y: "3.5",
2395
+ width: "12",
2396
+ height: "11",
2397
+ rx: "1.5"
2398
+ }, null, -1),
2399
+ n("path", { d: "M2 6.5h12M5.5 2v3M10.5 2v3" }, null, -1)
2400
+ ])], 2)),
2401
+ n("span", null, _(fe(X.value, b.value)), 1)
2402
+ ], 2),
2403
+ n("div", {
2404
+ class: e(s.$style.summaryRow)
2405
+ }, [
2406
+ (c(), p("svg", {
2407
+ class: e(s.$style.summaryIcon),
2408
+ width: "16",
2409
+ height: "16",
2410
+ viewBox: "0 0 16 16",
2411
+ fill: "none",
2412
+ stroke: "currentColor",
2413
+ "stroke-width": "1.5",
2414
+ "stroke-linecap": "round",
2415
+ "stroke-linejoin": "round",
2416
+ "aria-hidden": "true"
2417
+ }, [...h[11] || (h[11] = [
2418
+ n("circle", {
2419
+ cx: "8",
2420
+ cy: "8",
2421
+ r: "6"
2422
+ }, null, -1),
2423
+ n("path", { d: "M8 4.5V8l2.5 1.5" }, null, -1)
2424
+ ])], 2)),
2425
+ n("span", null, _(me(X.value, b.value)), 1)
2426
+ ], 2)
2427
+ ], 64)) : E("", !0),
2428
+ t.address ? (c(), p("div", {
2429
+ key: 1,
2430
+ class: e(s.$style.summaryRow)
2392
2431
  }, [
2393
2432
  (c(), p("svg", {
2394
- class: e(a.$style.summaryIcon),
2433
+ class: e(s.$style.summaryIcon),
2395
2434
  width: "16",
2396
2435
  height: "16",
2397
2436
  viewBox: "0 0 16 16",
@@ -2401,376 +2440,350 @@ const Hn = {
2401
2440
  "stroke-linecap": "round",
2402
2441
  "stroke-linejoin": "round",
2403
2442
  "aria-hidden": "true"
2404
- }, [...g[11] || (g[11] = [
2405
- t("circle", {
2443
+ }, [...h[12] || (h[12] = [
2444
+ n("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" }, null, -1),
2445
+ n("circle", {
2406
2446
  cx: "8",
2407
- cy: "8",
2408
- r: "6"
2409
- }, null, -1),
2410
- t("path", { d: "M8 4.5V8l2.5 1.5" }, null, -1)
2447
+ cy: "6.5",
2448
+ r: "1.5"
2449
+ }, null, -1)
2411
2450
  ])], 2)),
2412
- t("span", null, _(pe(ae.value, h.value)), 1)
2413
- ], 2)
2414
- ], 64)) : E("", !0),
2415
- n.address ? (c(), p("div", {
2416
- key: 1,
2417
- class: e(a.$style.summaryRow)
2418
- }, [
2419
- (c(), p("svg", {
2420
- class: e(a.$style.summaryIcon),
2421
- width: "16",
2422
- height: "16",
2423
- viewBox: "0 0 16 16",
2424
- fill: "none",
2425
- stroke: "currentColor",
2426
- "stroke-width": "1.5",
2427
- "stroke-linecap": "round",
2428
- "stroke-linejoin": "round",
2429
- "aria-hidden": "true"
2430
- }, [...g[12] || (g[12] = [
2431
- t("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" }, null, -1),
2432
- t("circle", {
2433
- cx: "8",
2434
- cy: "6.5",
2435
- r: "1.5"
2436
- }, null, -1)
2437
- ])], 2)),
2438
- t("span", null, _(n.address), 1)
2439
- ], 2)) : E("", !0)
2440
- ], 2),
2441
- t("button", {
2442
- type: "button",
2443
- class: e(a.$style.primaryButton),
2444
- onClick: g[0] || (g[0] = (C) => o("done"))
2445
- }, " Done ", 2)
2446
- ], 2)
2447
- ], 6)) : d.value === "confirm" ? (c(), p("div", {
2448
- key: 3,
2449
- class: e(a.$style.root),
2450
- style: X(r.value),
2451
- "data-testid": "schedule-assessment-confirm"
2452
- }, [
2453
- t("div", {
2454
- class: e(a.$style.card)
2451
+ n("span", null, _(t.address), 1)
2452
+ ], 2)) : E("", !0)
2453
+ ], 2),
2454
+ n("button", {
2455
+ type: "button",
2456
+ class: e(s.$style.primaryButton),
2457
+ onClick: h[0] || (h[0] = (k) => u("done"))
2458
+ }, " Done ", 2)
2459
+ ], 2)
2460
+ ], 2)) : d.value === "confirm" ? (c(), p("div", {
2461
+ key: 3,
2462
+ class: e(s.$style.root),
2463
+ "data-testid": "schedule-assessment-confirm"
2455
2464
  }, [
2456
- t("h2", {
2457
- class: e(a.$style.title)
2458
- }, "Confirm your details", 2),
2459
- t("label", {
2460
- class: e(a.$style.field)
2461
- }, [
2462
- t("span", {
2463
- class: e(a.$style.fieldLabel)
2464
- }, "Customer name", 2),
2465
- Ee(t("input", {
2466
- class: e(a.$style.input),
2467
- type: "text",
2468
- "onUpdate:modelValue": g[1] || (g[1] = (C) => M.value = C),
2469
- disabled: R.value
2470
- }, null, 10, No), [
2471
- [qe, M.value]
2472
- ])
2473
- ], 2),
2474
- t("label", {
2475
- class: e(a.$style.field)
2476
- }, [
2477
- t("span", {
2478
- class: e(a.$style.fieldLabel)
2479
- }, "Phone number", 2),
2480
- t("input", {
2481
- class: e(a.$style.input),
2482
- type: "tel",
2483
- inputmode: "tel",
2484
- autocomplete: "tel",
2485
- placeholder: "(555) 555-5555",
2486
- value: q.value,
2487
- disabled: R.value,
2488
- onInput: $
2489
- }, null, 42, Go)
2490
- ], 2),
2491
- t("fieldset", {
2492
- class: e(a.$style.fieldset)
2465
+ n("div", {
2466
+ class: e(s.$style.card)
2493
2467
  }, [
2494
- t("legend", {
2495
- class: e(a.$style.fieldLabel)
2496
- }, " Are there gate codes or entry restrictions? ", 2),
2497
- t("div", {
2498
- class: e(a.$style.radioRow)
2468
+ n("h2", {
2469
+ class: e(s.$style.title)
2470
+ }, "Confirm your details", 2),
2471
+ n("label", {
2472
+ class: e(s.$style.field)
2499
2473
  }, [
2500
- t("label", {
2501
- class: e(a.$style.radioOption)
2502
- }, [
2503
- t("input", {
2504
- type: "radio",
2505
- name: "gate-code",
2506
- checked: O.value === !0,
2507
- disabled: R.value,
2508
- onChange: g[2] || (g[2] = (C) => O.value = !0)
2509
- }, null, 40, Oo),
2510
- g[13] || (g[13] = t("span", null, "Yes", -1))
2511
- ], 2),
2512
- t("label", {
2513
- class: e(a.$style.radioOption)
2474
+ n("span", {
2475
+ class: e(s.$style.fieldLabel)
2476
+ }, "Customer name", 2),
2477
+ qe(n("input", {
2478
+ class: e(s.$style.input),
2479
+ type: "text",
2480
+ "onUpdate:modelValue": h[1] || (h[1] = (k) => D.value = k),
2481
+ disabled: j.value
2482
+ }, null, 10, Ra), [
2483
+ [Ee, D.value]
2484
+ ])
2485
+ ], 2),
2486
+ n("label", {
2487
+ class: e(s.$style.field)
2488
+ }, [
2489
+ n("span", {
2490
+ class: e(s.$style.fieldLabel)
2491
+ }, "Phone number", 2),
2492
+ n("input", {
2493
+ class: e(s.$style.input),
2494
+ type: "tel",
2495
+ inputmode: "tel",
2496
+ autocomplete: "tel",
2497
+ placeholder: "(555) 555-5555",
2498
+ value: H.value,
2499
+ disabled: j.value,
2500
+ onInput: y
2501
+ }, null, 42, Na)
2502
+ ], 2),
2503
+ n("fieldset", {
2504
+ class: e(s.$style.fieldset)
2505
+ }, [
2506
+ n("legend", {
2507
+ class: e(s.$style.fieldLabel)
2508
+ }, " Are there gate codes or entry restrictions? ", 2),
2509
+ n("div", {
2510
+ class: e(s.$style.radioRow)
2514
2511
  }, [
2515
- t("input", {
2516
- type: "radio",
2517
- name: "gate-code",
2518
- checked: O.value === !1,
2519
- disabled: R.value,
2520
- onChange: g[3] || (g[3] = (C) => O.value = !1)
2521
- }, null, 40, Ho),
2522
- g[14] || (g[14] = t("span", null, "No", -1))
2512
+ n("label", {
2513
+ class: e(s.$style.radioOption)
2514
+ }, [
2515
+ n("input", {
2516
+ type: "radio",
2517
+ name: "gate-code",
2518
+ checked: A.value === !0,
2519
+ disabled: j.value,
2520
+ onChange: h[2] || (h[2] = (k) => A.value = !0)
2521
+ }, null, 40, Ga),
2522
+ h[13] || (h[13] = n("span", null, "Yes", -1))
2523
+ ], 2),
2524
+ n("label", {
2525
+ class: e(s.$style.radioOption)
2526
+ }, [
2527
+ n("input", {
2528
+ type: "radio",
2529
+ name: "gate-code",
2530
+ checked: A.value === !1,
2531
+ disabled: j.value,
2532
+ onChange: h[3] || (h[3] = (k) => A.value = !1)
2533
+ }, null, 40, Ha),
2534
+ h[14] || (h[14] = n("span", null, "No", -1))
2535
+ ], 2)
2523
2536
  ], 2)
2524
- ], 2)
2525
- ], 2),
2526
- O.value ? (c(), p("label", {
2527
- key: 0,
2528
- class: e(a.$style.field)
2529
- }, [
2530
- t("span", {
2531
- class: e(a.$style.fieldLabel)
2532
- }, " Please provide access instructions for your home. ", 2),
2533
- Ee(t("input", {
2534
- class: e(a.$style.input),
2535
- type: "text",
2536
- placeholder: "Gate code, directions, etc.",
2537
- "onUpdate:modelValue": g[4] || (g[4] = (C) => T.value = C),
2538
- disabled: R.value
2539
- }, null, 10, jo), [
2540
- [qe, T.value]
2541
- ])
2542
- ], 2)) : E("", !0),
2543
- Z.value ? (c(), p("p", {
2544
- key: 1,
2545
- class: e(a.$style.errorText)
2546
- }, _(Z.value), 3)) : E("", !0),
2547
- t("div", {
2548
- class: e(a.$style.actionsRow)
2549
- }, [
2550
- t("button", {
2551
- type: "button",
2552
- class: e(a.$style.linkButton),
2553
- disabled: R.value,
2554
- onClick: g[5] || (g[5] = (C) => d.value = "select")
2555
- }, " ← Back ", 10, Vo),
2556
- t("button", {
2557
- type: "button",
2558
- class: e(a.$style.primaryButton),
2559
- disabled: !ne.value,
2560
- onClick: y
2561
- }, _(R.value ? "Scheduling…" : "Schedule"), 11, xo)
2562
- ], 2),
2563
- t("div", {
2564
- class: e(a.$style.faqBelowActions)
2565
- }, [
2566
- t("div", {
2567
- class: e(a.$style.faq)
2537
+ ], 2),
2538
+ A.value ? (c(), p("label", {
2539
+ key: 0,
2540
+ class: e(s.$style.field)
2541
+ }, [
2542
+ n("span", {
2543
+ class: e(s.$style.fieldLabel)
2544
+ }, " Please provide access instructions for your home. ", 2),
2545
+ qe(n("input", {
2546
+ class: e(s.$style.input),
2547
+ type: "text",
2548
+ placeholder: "Gate code, directions, etc.",
2549
+ "onUpdate:modelValue": h[4] || (h[4] = (k) => Z.value = k),
2550
+ disabled: j.value
2551
+ }, null, 10, Oa), [
2552
+ [Ee, Z.value]
2553
+ ])
2554
+ ], 2)) : E("", !0),
2555
+ O.value ? (c(), p("p", {
2556
+ key: 1,
2557
+ class: e(s.$style.errorText)
2558
+ }, _(O.value), 3)) : E("", !0),
2559
+ n("div", {
2560
+ class: e(s.$style.actionsRow)
2568
2561
  }, [
2569
- t("h3", {
2570
- class: e(a.$style.faqHeader)
2571
- }, "Frequently asked questions", 2),
2572
- (c(), p(j, null, Q(Fe, (C) => t("details", {
2573
- key: C.title,
2574
- class: e(a.$style.faqItem)
2562
+ n("button", {
2563
+ type: "button",
2564
+ class: e(s.$style.linkButton),
2565
+ disabled: j.value,
2566
+ onClick: h[5] || (h[5] = (k) => d.value = "select")
2567
+ }, " ← Back ", 10, Va),
2568
+ n("button", {
2569
+ type: "button",
2570
+ class: e(s.$style.primaryButton),
2571
+ disabled: !$.value,
2572
+ onClick: C
2573
+ }, _(j.value ? "Scheduling…" : "Schedule"), 11, Ua)
2574
+ ], 2),
2575
+ n("div", {
2576
+ class: e(s.$style.faqBelowActions)
2577
+ }, [
2578
+ n("div", {
2579
+ class: e(s.$style.faq)
2575
2580
  }, [
2576
- t("summary", {
2577
- class: e(a.$style.faqQuestion)
2581
+ n("h3", {
2582
+ class: e(s.$style.faqHeader)
2583
+ }, "Frequently asked questions", 2),
2584
+ (c(), p(N, null, Y(Fe, (k) => n("details", {
2585
+ key: k.title,
2586
+ class: e(s.$style.faqItem)
2578
2587
  }, [
2579
- t("span", null, _(C.title), 1),
2580
- (c(), p("svg", {
2581
- class: e(a.$style.faqChevron),
2582
- width: "16",
2583
- height: "16",
2584
- viewBox: "0 0 16 16",
2585
- fill: "none",
2586
- stroke: "currentColor",
2587
- "stroke-width": "1.5",
2588
- "stroke-linecap": "round",
2589
- "stroke-linejoin": "round",
2590
- "aria-hidden": "true"
2591
- }, [...g[15] || (g[15] = [
2592
- t("path", { d: "M4 6l4 4 4-4" }, null, -1)
2593
- ])], 2))
2594
- ], 2),
2595
- t("p", {
2596
- class: e(a.$style.faqAnswer)
2597
- }, _(C.body), 3)
2598
- ], 2)), 64))
2588
+ n("summary", {
2589
+ class: e(s.$style.faqQuestion)
2590
+ }, [
2591
+ n("span", null, _(k.title), 1),
2592
+ (c(), p("svg", {
2593
+ class: e(s.$style.faqChevron),
2594
+ width: "16",
2595
+ height: "16",
2596
+ viewBox: "0 0 16 16",
2597
+ fill: "none",
2598
+ stroke: "currentColor",
2599
+ "stroke-width": "1.5",
2600
+ "stroke-linecap": "round",
2601
+ "stroke-linejoin": "round",
2602
+ "aria-hidden": "true"
2603
+ }, [...h[15] || (h[15] = [
2604
+ n("path", { d: "M4 6l4 4 4-4" }, null, -1)
2605
+ ])], 2))
2606
+ ], 2),
2607
+ n("p", {
2608
+ class: e(s.$style.faqAnswer)
2609
+ }, _(k.body), 3)
2610
+ ], 2)), 64))
2611
+ ], 2)
2599
2612
  ], 2)
2600
2613
  ], 2)
2601
- ], 2)
2602
- ], 6)) : (c(), p("div", {
2603
- key: 4,
2604
- class: e(a.$style.root),
2605
- style: X(r.value),
2606
- "data-testid": "schedule-assessment-flow"
2607
- }, [
2608
- t("div", {
2609
- class: e(a.$style.card)
2614
+ ], 2)) : (c(), p("div", {
2615
+ key: 4,
2616
+ class: e(s.$style.root),
2617
+ "data-testid": "schedule-assessment-flow"
2610
2618
  }, [
2611
- t("div", {
2612
- class: e(a.$style.stepLayout)
2619
+ n("div", {
2620
+ class: e(s.$style.card)
2613
2621
  }, [
2614
- t("div", {
2615
- class: e(a.$style.leftColumn)
2622
+ n("div", {
2623
+ class: e(s.$style.stepLayout)
2616
2624
  }, [
2617
- t("div", {
2618
- class: e(a.$style.introHeader)
2619
- }, [
2620
- t("h2", {
2621
- class: e(a.$style.titleLarge)
2622
- }, "Schedule your assessment", 2),
2623
- t("p", {
2624
- class: e(a.$style.subtitleLeft)
2625
- }, "Pick a time that works for you.", 2)
2626
- ], 2),
2627
- t("div", {
2628
- class: e(a.$style.featuresList)
2625
+ n("div", {
2626
+ class: e(s.$style.leftColumn)
2629
2627
  }, [
2630
- (c(), p(j, null, Q(we, (C) => t("div", {
2631
- key: C.title,
2632
- class: e(a.$style.feature)
2628
+ n("div", {
2629
+ class: e(s.$style.introHeader)
2633
2630
  }, [
2634
- t("p", {
2635
- class: e(a.$style.featureTitle)
2636
- }, _(C.title), 3),
2637
- t("p", {
2638
- class: e(a.$style.featureDescription)
2639
- }, _(C.description), 3)
2640
- ], 2)), 64))
2641
- ], 2)
2642
- ], 2),
2643
- t("div", {
2644
- class: e(a.$style.schedule)
2645
- }, [
2646
- t("div", {
2647
- class: e(a.$style.calendarHeader)
2648
- }, [
2649
- t("button", {
2650
- type: "button",
2651
- class: e(a.$style.calendarNavButton),
2652
- disabled: !Y.value,
2653
- "aria-label": "Previous month",
2654
- onClick: g[6] || (g[6] = (C) => ie(-1))
2655
- }, " ‹ ", 10, Uo),
2656
- t("span", {
2657
- class: e(a.$style.calendarMonthLabel)
2658
- }, _(U.value), 3),
2659
- t("button", {
2660
- type: "button",
2661
- class: e(a.$style.calendarNavButton),
2662
- disabled: !re.value,
2663
- "aria-label": "Next month",
2664
- onClick: g[7] || (g[7] = (C) => ie(1))
2665
- }, " › ", 10, Zo)
2631
+ n("h2", {
2632
+ class: e(s.$style.titleLarge)
2633
+ }, "Schedule your assessment", 2),
2634
+ n("p", {
2635
+ class: e(s.$style.subtitleLeft)
2636
+ }, "Pick a time that works for you.", 2)
2637
+ ], 2),
2638
+ n("div", {
2639
+ class: e(s.$style.featuresList)
2640
+ }, [
2641
+ (c(), p(N, null, Y(xe, (k) => n("div", {
2642
+ key: k.title,
2643
+ class: e(s.$style.feature)
2644
+ }, [
2645
+ n("p", {
2646
+ class: e(s.$style.featureTitle)
2647
+ }, _(k.title), 3),
2648
+ n("p", {
2649
+ class: e(s.$style.featureDescription)
2650
+ }, _(k.description), 3)
2651
+ ], 2)), 64))
2652
+ ], 2)
2666
2653
  ], 2),
2667
- t("div", {
2668
- class: e(a.$style.calendarGrid)
2654
+ n("div", {
2655
+ class: e(s.$style.schedule)
2669
2656
  }, [
2670
- (c(), p(j, null, Q(_e, (C) => t("div", {
2671
- key: C,
2672
- class: e(a.$style.calendarDayHeader)
2673
- }, _(C), 3)), 64)),
2674
- (c(!0), p(j, null, Q(D.value, (C, G) => (c(), p("button", {
2675
- key: C ? C.key : `empty-${U.value}-${G}`,
2676
- type: "button",
2677
- class: e(
2678
- C && b.value === C.key ? a.$style.calendarDaySelected : C && N.value.has(C.key) ? a.$style.calendarDayAvailable : a.$style.calendarDayDisabled
2679
- ),
2680
- disabled: !C || !N.value.has(C.key),
2681
- "aria-pressed": !!(C && b.value === C.key),
2682
- onClick: (se) => te(C)
2683
- }, _(C ? C.day : ""), 11, zo))), 128))
2684
- ], 2),
2685
- z.value ? (c(), p(j, { key: 0 }, [
2686
- t("p", {
2687
- class: e(a.$style.timesHeader)
2688
- }, " Available times for " + _(z.value), 3),
2689
- t("div", {
2690
- class: e(a.$style.timeRow)
2657
+ n("div", {
2658
+ class: e(s.$style.calendarHeader)
2691
2659
  }, [
2692
- (c(!0), p(j, null, Q(J.value, (C) => (c(), p("button", {
2693
- key: C,
2660
+ n("button", {
2661
+ type: "button",
2662
+ class: e(s.$style.calendarNavButton),
2663
+ disabled: !re.value,
2664
+ "aria-label": "Previous month",
2665
+ onClick: h[6] || (h[6] = (k) => te(-1))
2666
+ }, " ‹ ", 10, Za),
2667
+ n("span", {
2668
+ class: e(s.$style.calendarMonthLabel)
2669
+ }, _(Q.value), 3),
2670
+ n("button", {
2671
+ type: "button",
2672
+ class: e(s.$style.calendarNavButton),
2673
+ disabled: !J.value,
2674
+ "aria-label": "Next month",
2675
+ onClick: h[7] || (h[7] = (k) => te(1))
2676
+ }, " › ", 10, Wa)
2677
+ ], 2),
2678
+ n("div", {
2679
+ class: e(s.$style.calendarGrid)
2680
+ }, [
2681
+ (c(), p(N, null, Y(_e, (k) => n("div", {
2682
+ key: k,
2683
+ class: e(s.$style.calendarDayHeader)
2684
+ }, _(k), 3)), 64)),
2685
+ (c(!0), p(N, null, Y(U.value, (k, F) => (c(), p("button", {
2686
+ key: k ? k.key : `empty-${Q.value}-${F}`,
2694
2687
  type: "button",
2695
2688
  class: e(
2696
- C === L.value ? a.$style.timeButtonSelected : a.$style.timeButton
2689
+ k && L.value === k.key ? s.$style.calendarDaySelected : k && S.value.has(k.key) ? s.$style.calendarDayAvailable : s.$style.calendarDayDisabled
2697
2690
  ),
2698
- onClick: (G) => L.value = C
2699
- }, _(pe(new Date(C), h.value)), 11, Wo))), 128))
2700
- ], 2)
2701
- ], 64)) : E("", !0),
2702
- t("button", {
2703
- type: "button",
2704
- class: e(a.$style.primaryButton),
2705
- disabled: !L.value,
2706
- onClick: g[8] || (g[8] = (C) => d.value = "confirm")
2707
- }, " Continue ", 10, Ko)
2691
+ disabled: !k || !S.value.has(k.key),
2692
+ "aria-pressed": !!(k && L.value === k.key),
2693
+ onClick: (ne) => ue(k)
2694
+ }, _(k ? k.day : ""), 11, za))), 128))
2695
+ ], 2),
2696
+ ie.value ? (c(), p(N, { key: 0 }, [
2697
+ n("p", {
2698
+ class: e(s.$style.timesHeader)
2699
+ }, " Available times for " + _(ie.value), 3),
2700
+ n("div", {
2701
+ class: e(s.$style.timeRow)
2702
+ }, [
2703
+ (c(!0), p(N, null, Y(W.value, (k) => (c(), p("button", {
2704
+ key: k,
2705
+ type: "button",
2706
+ class: e(
2707
+ k === M.value ? s.$style.timeButtonSelected : s.$style.timeButton
2708
+ ),
2709
+ onClick: (F) => M.value = k
2710
+ }, _(me(new Date(k), b.value)), 11, Ka))), 128))
2711
+ ], 2)
2712
+ ], 64)) : E("", !0),
2713
+ n("button", {
2714
+ type: "button",
2715
+ class: e(s.$style.primaryButton),
2716
+ disabled: !M.value,
2717
+ onClick: h[8] || (h[8] = (k) => d.value = "confirm")
2718
+ }, " Continue ", 10, Qa)
2719
+ ], 2)
2708
2720
  ], 2)
2709
2721
  ], 2)
2710
- ], 2)
2722
+ ], 2))
2711
2723
  ], 6));
2712
2724
  }
2713
- }), Yo = "_root_1lu6h_2", Xo = "_card_1lu6h_13", Jo = "_titleLarge_1lu6h_30", el = "_featuresList_1lu6h_34", tl = "_stepLayout_1lu6h_45", nl = "_leftColumn_1lu6h_52", sl = "_introHeader_1lu6h_58", al = "_schedule_1lu6h_64", ol = "_subtitleLeft_1lu6h_109", ll = "_feature_1lu6h_34", rl = "_featureTitle_1lu6h_128", il = "_featureDescription_1lu6h_135", ul = "_title_1lu6h_30", cl = "_subtitle_1lu6h_109", dl = "_calendarHeader_1lu6h_160", vl = "_calendarMonthLabel_1lu6h_167", yl = "_calendarNavButton_1lu6h_173", fl = "_calendarGrid_1lu6h_193", pl = "_calendarDayHeader_1lu6h_199", hl = "_calendarDayAvailable_1lu6h_208", ml = "_calendarDayDisabled_1lu6h_209", gl = "_calendarDaySelected_1lu6h_210", bl = "_timesHeader_1lu6h_241", $l = "_timeRow_1lu6h_248", Cl = "_timeButton_1lu6h_255", kl = "_timeButtonSelected_1lu6h_256", _l = "_field_1lu6h_279", wl = "_fieldLabel_1lu6h_285", Ll = "_input_1lu6h_291", Il = "_fieldset_1lu6h_312", Sl = "_radioRow_1lu6h_321", Dl = "_radioOption_1lu6h_326", El = "_faqBelowActions_1lu6h_346", ql = "_faq_1lu6h_346", Ml = "_faqHeader_1lu6h_357", Al = "_faqItem_1lu6h_365", Tl = "_faqQuestion_1lu6h_374", Pl = "_faqAnswer_1lu6h_390", Bl = "_faqChevron_1lu6h_397", Fl = "_errorText_1lu6h_407", Rl = "_actionsRow_1lu6h_413", Nl = "_linkButton_1lu6h_421", Gl = "_primaryButton_1lu6h_438", Ol = "_successCheckCircle_1lu6h_471", Hl = "_summaryCard_1lu6h_483", jl = "_summaryRow_1lu6h_493", Vl = "_summaryIcon_1lu6h_501", xl = {
2714
- root: Yo,
2715
- card: Xo,
2716
- titleLarge: Jo,
2717
- featuresList: el,
2718
- stepLayout: tl,
2719
- leftColumn: nl,
2720
- introHeader: sl,
2721
- schedule: al,
2722
- subtitleLeft: ol,
2723
- feature: ll,
2724
- featureTitle: rl,
2725
- featureDescription: il,
2726
- title: ul,
2727
- subtitle: cl,
2728
- calendarHeader: dl,
2729
- calendarMonthLabel: vl,
2730
- calendarNavButton: yl,
2731
- calendarGrid: fl,
2732
- calendarDayHeader: pl,
2725
+ }), Xa = "_container_jxkpo_2", Ja = "_root_jxkpo_11", el = "_card_jxkpo_26", tl = "_titleLarge_jxkpo_43", nl = "_featuresList_jxkpo_47", sl = "_stepLayout_jxkpo_58", ol = "_leftColumn_jxkpo_65", al = "_introHeader_jxkpo_71", ll = "_schedule_jxkpo_77", rl = "_subtitleLeft_jxkpo_122", il = "_feature_jxkpo_47", ul = "_featureTitle_jxkpo_141", cl = "_featureDescription_jxkpo_148", dl = "_title_jxkpo_43", vl = "_subtitle_jxkpo_122", yl = "_calendarHeader_jxkpo_173", pl = "_calendarMonthLabel_jxkpo_180", fl = "_calendarNavButton_jxkpo_186", ml = "_calendarGrid_jxkpo_206", gl = "_calendarDayHeader_jxkpo_212", hl = "_calendarDayAvailable_jxkpo_221", bl = "_calendarDayDisabled_jxkpo_222", $l = "_calendarDaySelected_jxkpo_223", kl = "_timesHeader_jxkpo_254", Cl = "_timeRow_jxkpo_261", _l = "_timeButton_jxkpo_268", wl = "_timeButtonSelected_jxkpo_269", Ll = "_field_jxkpo_292", Il = "_fieldLabel_jxkpo_298", Sl = "_input_jxkpo_304", ql = "_fieldset_jxkpo_325", El = "_radioRow_jxkpo_334", Dl = "_radioOption_jxkpo_339", Ml = "_faqBelowActions_jxkpo_359", Al = "_faq_jxkpo_359", Tl = "_faqHeader_jxkpo_370", Bl = "_faqItem_jxkpo_378", Pl = "_faqQuestion_jxkpo_387", jl = "_faqAnswer_jxkpo_403", xl = "_faqChevron_jxkpo_410", Fl = "_errorText_jxkpo_420", Rl = "_actionsRow_jxkpo_426", Nl = "_linkButton_jxkpo_434", Gl = "_primaryButton_jxkpo_451", Hl = "_successCheckCircle_jxkpo_484", Ol = "_summaryCard_jxkpo_496", Vl = "_summaryRow_jxkpo_506", Ul = "_summaryIcon_jxkpo_514", Zl = {
2726
+ container: Xa,
2727
+ root: Ja,
2728
+ card: el,
2729
+ titleLarge: tl,
2730
+ featuresList: nl,
2731
+ stepLayout: sl,
2732
+ leftColumn: ol,
2733
+ introHeader: al,
2734
+ schedule: ll,
2735
+ subtitleLeft: rl,
2736
+ feature: il,
2737
+ featureTitle: ul,
2738
+ featureDescription: cl,
2739
+ title: dl,
2740
+ subtitle: vl,
2741
+ calendarHeader: yl,
2742
+ calendarMonthLabel: pl,
2743
+ calendarNavButton: fl,
2744
+ calendarGrid: ml,
2745
+ calendarDayHeader: gl,
2733
2746
  calendarDayAvailable: hl,
2734
- calendarDayDisabled: ml,
2735
- calendarDaySelected: gl,
2736
- timesHeader: bl,
2737
- timeRow: $l,
2738
- timeButton: Cl,
2739
- timeButtonSelected: kl,
2740
- field: _l,
2741
- fieldLabel: wl,
2742
- input: Ll,
2743
- fieldset: Il,
2744
- radioRow: Sl,
2747
+ calendarDayDisabled: bl,
2748
+ calendarDaySelected: $l,
2749
+ timesHeader: kl,
2750
+ timeRow: Cl,
2751
+ timeButton: _l,
2752
+ timeButtonSelected: wl,
2753
+ field: Ll,
2754
+ fieldLabel: Il,
2755
+ input: Sl,
2756
+ fieldset: ql,
2757
+ radioRow: El,
2745
2758
  radioOption: Dl,
2746
- faqBelowActions: El,
2747
- faq: ql,
2748
- faqHeader: Ml,
2749
- faqItem: Al,
2750
- faqQuestion: Tl,
2751
- faqAnswer: Pl,
2752
- faqChevron: Bl,
2759
+ faqBelowActions: Ml,
2760
+ faq: Al,
2761
+ faqHeader: Tl,
2762
+ faqItem: Bl,
2763
+ faqQuestion: Pl,
2764
+ faqAnswer: jl,
2765
+ faqChevron: xl,
2753
2766
  errorText: Fl,
2754
2767
  actionsRow: Rl,
2755
2768
  linkButton: Nl,
2756
2769
  primaryButton: Gl,
2757
- successCheckCircle: Ol,
2758
- summaryCard: Hl,
2759
- summaryRow: jl,
2760
- summaryIcon: Vl
2761
- }, Ul = {
2762
- $style: xl
2763
- }, tr = /* @__PURE__ */ V(Qo, [["__cssModules", Ul]]);
2770
+ successCheckCircle: Hl,
2771
+ summaryCard: Ol,
2772
+ summaryRow: Vl,
2773
+ summaryIcon: Ul
2774
+ }, Wl = {
2775
+ $style: Zl
2776
+ }, sr = /* @__PURE__ */ G(Ya, [["__cssModules", Wl]]);
2764
2777
  export {
2765
- Yl as AddressEntry,
2766
- Xl as AddressMap,
2767
- Jl as AddressUnitConfirmation,
2768
- ar as DTC_ONBOARDING_PAGE_IDS,
2769
- er as DtcOnboardingFlow,
2770
- or as OpendoorClient,
2771
- Ql as OpendoorProvider,
2772
- tr as ScheduleAssessmentFlow,
2773
- lr as THEMES,
2774
- rr as resolveAppearance,
2775
- Be as useOpendoorClient
2778
+ Jl as AddressEntry,
2779
+ er as AddressMap,
2780
+ tr as AddressUnitConfirmation,
2781
+ lr as DTC_ONBOARDING_PAGE_IDS,
2782
+ nr as DtcOnboardingFlow,
2783
+ rr as OpendoorClient,
2784
+ Xl as OpendoorProvider,
2785
+ sr as ScheduleAssessmentFlow,
2786
+ ir as THEMES,
2787
+ ur as resolveAppearance,
2788
+ Pe as useOpendoorClient
2776
2789
  };