@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.d.ts +24 -0
- package/dist/index.js +1633 -1620
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { NOOP_TRACKING as
|
|
3
|
-
import { resolveAppearance as
|
|
4
|
-
import { DTC_ONBOARDING_PAGE_IDS as
|
|
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
|
|
6
|
+
const Xl = /* @__PURE__ */ x({
|
|
7
7
|
__name: "OpendoorProvider",
|
|
8
8
|
props: {
|
|
9
9
|
client: {}
|
|
10
10
|
},
|
|
11
|
-
setup(
|
|
12
|
-
const
|
|
13
|
-
de("opendoor-client",
|
|
14
|
-
const
|
|
15
|
-
return de("opendoor-tracking",
|
|
16
|
-
() =>
|
|
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
|
-
|
|
19
|
-
const u = new
|
|
20
|
-
|
|
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
|
-
),
|
|
24
|
-
|
|
23
|
+
), ae(() => {
|
|
24
|
+
l.value !== Le && l.value.destroy();
|
|
25
25
|
}), (u, r) => ce(u.$slots, "default");
|
|
26
26
|
}
|
|
27
27
|
});
|
|
28
|
-
function
|
|
29
|
-
const
|
|
30
|
-
if (!
|
|
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
|
|
34
|
+
return t;
|
|
35
35
|
}
|
|
36
|
-
function ye(
|
|
37
|
-
const
|
|
38
|
-
for (const [
|
|
39
|
-
const r =
|
|
40
|
-
|
|
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
|
|
42
|
+
return a;
|
|
43
43
|
}
|
|
44
|
-
const
|
|
44
|
+
const Ze = /* @__PURE__ */ x({
|
|
45
45
|
__name: "PoweredByOpendoor",
|
|
46
|
-
setup(
|
|
47
|
-
return (
|
|
48
|
-
class: e(
|
|
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
|
-
|
|
52
|
-
class: e(
|
|
51
|
+
n("span", {
|
|
52
|
+
class: e(o.$style.text)
|
|
53
53
|
}, "Powered by", 2),
|
|
54
|
-
|
|
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
|
-
|
|
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
|
-
}),
|
|
71
|
-
attribution:
|
|
72
|
-
text:
|
|
73
|
-
},
|
|
74
|
-
const
|
|
75
|
-
for (const [
|
|
76
|
-
l
|
|
77
|
-
return
|
|
78
|
-
},
|
|
79
|
-
$style:
|
|
80
|
-
},
|
|
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(
|
|
95
|
-
let
|
|
96
|
-
const
|
|
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
|
-
}),
|
|
103
|
-
() => f.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
|
|
106
|
-
ee(
|
|
105
|
+
let O = null, S = 0;
|
|
106
|
+
ee(d, ($) => {
|
|
107
107
|
if (L.value) return;
|
|
108
|
-
if (u("change", { street1: $ }),
|
|
109
|
-
|
|
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
|
-
|
|
113
|
-
const y = $.trim(),
|
|
114
|
-
|
|
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
|
|
118
|
-
if (
|
|
119
|
-
i.value =
|
|
120
|
-
} catch (
|
|
121
|
-
if (
|
|
122
|
-
const
|
|
123
|
-
|
|
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
|
-
|
|
125
|
+
C === S && (m.value = !1);
|
|
126
126
|
}
|
|
127
|
-
},
|
|
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
|
|
134
|
-
L.value = !0,
|
|
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
|
|
139
|
-
|
|
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
|
-
|
|
143
|
+
g.value = !0, f.value = !1;
|
|
144
144
|
}
|
|
145
145
|
function J($, y) {
|
|
146
|
-
|
|
147
|
-
const
|
|
146
|
+
A.value[$] = y;
|
|
147
|
+
const C = A.value;
|
|
148
148
|
u("change", {
|
|
149
|
-
street1:
|
|
150
|
-
...
|
|
151
|
-
city:
|
|
152
|
-
state:
|
|
153
|
-
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
|
|
157
|
-
const $ =
|
|
158
|
-
if (!$ || !y || !
|
|
159
|
-
const
|
|
160
|
-
|
|
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
|
-
|
|
163
|
+
m.value = !0, b.value = null;
|
|
164
164
|
try {
|
|
165
165
|
u("address-select", {
|
|
166
166
|
street1: $,
|
|
167
|
-
street2:
|
|
167
|
+
street2: T || void 0,
|
|
168
168
|
city: y,
|
|
169
|
-
state:
|
|
170
|
-
postalCode:
|
|
169
|
+
state: C,
|
|
170
|
+
postalCode: q
|
|
171
171
|
});
|
|
172
|
-
} catch (
|
|
173
|
-
const
|
|
174
|
-
|
|
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
|
-
|
|
176
|
+
m.value = !1;
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
|
-
function
|
|
180
|
-
i.value.length > 0 &&
|
|
179
|
+
function ie() {
|
|
180
|
+
i.value.length > 0 && Q(i.value[0]);
|
|
181
181
|
}
|
|
182
|
-
function
|
|
183
|
-
i.value.length > 0 &&
|
|
182
|
+
function X() {
|
|
183
|
+
i.value.length > 0 && d.value.length > 0 && (f.value = !0);
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function ue($) {
|
|
186
186
|
const y = $.target.value;
|
|
187
|
-
|
|
187
|
+
d.value = y, L.value = !1;
|
|
188
188
|
}
|
|
189
|
-
function
|
|
190
|
-
|
|
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",
|
|
194
|
-
}),
|
|
195
|
-
document.removeEventListener("mousedown",
|
|
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:
|
|
200
|
+
style: le(Z.value)
|
|
201
201
|
}, [
|
|
202
|
-
|
|
202
|
+
g.value ? (c(), p("div", {
|
|
203
203
|
key: 1,
|
|
204
204
|
class: e($.$style.manualForm)
|
|
205
205
|
}, [
|
|
206
|
-
|
|
206
|
+
n("div", {
|
|
207
207
|
class: e($.$style.manualFormField)
|
|
208
208
|
}, [
|
|
209
|
-
|
|
209
|
+
n("label", {
|
|
210
210
|
class: e($.$style.manualFormLabel),
|
|
211
|
-
for: `${
|
|
212
|
-
}, "Street Address *", 10,
|
|
213
|
-
|
|
214
|
-
id: `${
|
|
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:
|
|
218
|
-
disabled:
|
|
217
|
+
value: A.value.street1,
|
|
218
|
+
disabled: t.disabled,
|
|
219
219
|
placeholder: "123 Main St",
|
|
220
|
-
onInput: y[0] || (y[0] = (
|
|
221
|
-
}, null, 42,
|
|
220
|
+
onInput: y[0] || (y[0] = (C) => J("street1", C.target.value))
|
|
221
|
+
}, null, 42, st)
|
|
222
222
|
], 2),
|
|
223
|
-
|
|
223
|
+
n("div", {
|
|
224
224
|
class: e($.$style.manualFormField)
|
|
225
225
|
}, [
|
|
226
|
-
|
|
226
|
+
n("label", {
|
|
227
227
|
class: e($.$style.manualFormLabel),
|
|
228
|
-
for: `${
|
|
229
|
-
}, "Unit / Apt (optional)", 10,
|
|
230
|
-
|
|
231
|
-
id: `${
|
|
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:
|
|
235
|
-
disabled:
|
|
234
|
+
value: A.value.street2,
|
|
235
|
+
disabled: t.disabled,
|
|
236
236
|
placeholder: "Apt 4B",
|
|
237
|
-
onInput: y[1] || (y[1] = (
|
|
238
|
-
}, null, 42,
|
|
237
|
+
onInput: y[1] || (y[1] = (C) => J("street2", C.target.value))
|
|
238
|
+
}, null, 42, at)
|
|
239
239
|
], 2),
|
|
240
|
-
|
|
240
|
+
n("div", {
|
|
241
241
|
class: e($.$style.manualFormField)
|
|
242
242
|
}, [
|
|
243
|
-
|
|
243
|
+
n("label", {
|
|
244
244
|
class: e($.$style.manualFormLabel),
|
|
245
|
-
for: `${
|
|
246
|
-
}, "City *", 10,
|
|
247
|
-
|
|
248
|
-
id: `${
|
|
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:
|
|
252
|
-
disabled:
|
|
251
|
+
value: A.value.city,
|
|
252
|
+
disabled: t.disabled,
|
|
253
253
|
placeholder: "Austin",
|
|
254
|
-
onInput: y[2] || (y[2] = (
|
|
255
|
-
}, null, 42,
|
|
254
|
+
onInput: y[2] || (y[2] = (C) => J("city", C.target.value))
|
|
255
|
+
}, null, 42, rt)
|
|
256
256
|
], 2),
|
|
257
|
-
|
|
257
|
+
n("div", {
|
|
258
258
|
class: e($.$style.formRow)
|
|
259
259
|
}, [
|
|
260
|
-
|
|
260
|
+
n("div", {
|
|
261
261
|
class: e($.$style.manualFormField)
|
|
262
262
|
}, [
|
|
263
|
-
|
|
263
|
+
n("label", {
|
|
264
264
|
class: e($.$style.manualFormLabel),
|
|
265
|
-
for: `${
|
|
266
|
-
}, "State *", 10,
|
|
267
|
-
|
|
268
|
-
id: `${
|
|
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:
|
|
272
|
-
disabled:
|
|
271
|
+
value: A.value.state,
|
|
272
|
+
disabled: t.disabled,
|
|
273
273
|
placeholder: "TX",
|
|
274
274
|
maxlength: "2",
|
|
275
|
-
onInput: y[3] || (y[3] = (
|
|
276
|
-
}, null, 42,
|
|
275
|
+
onInput: y[3] || (y[3] = (C) => J("state", C.target.value))
|
|
276
|
+
}, null, 42, ut)
|
|
277
277
|
], 2),
|
|
278
|
-
|
|
278
|
+
n("div", {
|
|
279
279
|
class: e($.$style.manualFormField)
|
|
280
280
|
}, [
|
|
281
|
-
|
|
281
|
+
n("label", {
|
|
282
282
|
class: e($.$style.manualFormLabel),
|
|
283
|
-
for: `${
|
|
284
|
-
}, "ZIP Code *", 10,
|
|
285
|
-
|
|
286
|
-
id: `${
|
|
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:
|
|
290
|
-
disabled:
|
|
289
|
+
value: A.value.postalCode,
|
|
290
|
+
disabled: t.disabled,
|
|
291
291
|
placeholder: "78701",
|
|
292
292
|
maxlength: "5",
|
|
293
|
-
onInput: y[4] || (y[4] = (
|
|
294
|
-
}, null, 42,
|
|
293
|
+
onInput: y[4] || (y[4] = (C) => J("postalCode", C.target.value))
|
|
294
|
+
}, null, 42, dt)
|
|
295
295
|
], 2)
|
|
296
296
|
], 2),
|
|
297
|
-
|
|
297
|
+
b.value ? (c(), p("div", {
|
|
298
298
|
key: 0,
|
|
299
299
|
class: e($.$style.error),
|
|
300
300
|
role: "alert"
|
|
301
|
-
}, _(
|
|
302
|
-
|
|
301
|
+
}, _(b.value), 3)) : E("", !0),
|
|
302
|
+
n("button", {
|
|
303
303
|
class: e($.$style.submitButton),
|
|
304
304
|
type: "button",
|
|
305
|
-
disabled:
|
|
306
|
-
onClick:
|
|
305
|
+
disabled: t.disabled,
|
|
306
|
+
onClick: W
|
|
307
307
|
}, [
|
|
308
|
-
|
|
308
|
+
n("span", null, _(t.buttonText), 1),
|
|
309
309
|
ce($.$slots, "button-icon", {}, () => [
|
|
310
|
-
y[8] || (y[8] =
|
|
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
|
-
|
|
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,
|
|
326
|
+
], 10, vt)
|
|
327
327
|
], 2)) : (c(), p("div", {
|
|
328
328
|
key: 0,
|
|
329
329
|
class: e($.$style.inputSection)
|
|
330
330
|
}, [
|
|
331
|
-
|
|
332
|
-
class: e([$.$style.inputWrapper,
|
|
331
|
+
n("div", {
|
|
332
|
+
class: e([$.$style.inputWrapper, b.value ? $.$style.errorBorder : ""])
|
|
333
333
|
}, [
|
|
334
|
-
|
|
334
|
+
n("input", {
|
|
335
335
|
ref_key: "inputRef",
|
|
336
|
-
ref:
|
|
337
|
-
value:
|
|
336
|
+
ref: H,
|
|
337
|
+
value: d.value,
|
|
338
338
|
class: e($.$style.input),
|
|
339
|
-
placeholder:
|
|
340
|
-
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": `${
|
|
345
|
+
"aria-controls": `${v}-suggestions`,
|
|
346
346
|
"aria-expanded": f.value,
|
|
347
|
-
onInput:
|
|
348
|
-
onFocus:
|
|
349
|
-
}, null, 42,
|
|
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
|
-
|
|
356
|
+
t.showButton ? (c(), p("button", {
|
|
357
357
|
key: 1,
|
|
358
358
|
class: e($.$style.button),
|
|
359
|
-
disabled:
|
|
360
|
-
"aria-label":
|
|
359
|
+
disabled: t.disabled,
|
|
360
|
+
"aria-label": t.buttonText,
|
|
361
361
|
type: "button",
|
|
362
|
-
onClick:
|
|
362
|
+
onClick: ie
|
|
363
363
|
}, [
|
|
364
|
-
|
|
365
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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(
|
|
390
|
-
|
|
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] =
|
|
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
|
-
|
|
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,
|
|
409
|
+
], 10, Je)) : E("", !0)
|
|
410
410
|
], 2),
|
|
411
|
-
f.value ||
|
|
411
|
+
f.value || b.value ? (c(), p("div", {
|
|
412
412
|
key: 0,
|
|
413
413
|
ref_key: "suggestionsRef",
|
|
414
|
-
ref:
|
|
415
|
-
class: e([$.$style.suggestions,
|
|
416
|
-
id: `${
|
|
417
|
-
role:
|
|
418
|
-
"aria-live":
|
|
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
|
-
|
|
421
|
-
|
|
420
|
+
b.value ? (c(), p(N, { key: 0 }, [
|
|
421
|
+
n("div", {
|
|
422
422
|
class: e($.$style.error)
|
|
423
423
|
}, [
|
|
424
|
-
|
|
424
|
+
n("div", {
|
|
425
425
|
class: e($.$style.errorIcon)
|
|
426
426
|
}, [...y[7] || (y[7] = [
|
|
427
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
448
|
+
n("div", null, _(b.value), 1)
|
|
449
449
|
], 2),
|
|
450
|
-
|
|
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
|
-
}, _(
|
|
456
|
-
], 64)) : i.value.length > 0 ? (c(!0), p(
|
|
457
|
-
key: `${
|
|
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: (
|
|
462
|
+
onClick: (T) => Q(C),
|
|
463
463
|
onKeydown: [
|
|
464
|
-
Se(
|
|
465
|
-
Se(
|
|
464
|
+
Ie(Se((T) => Q(C), ["prevent"]), ["enter"]),
|
|
465
|
+
Ie(Se((T) => Q(C), ["prevent"]), ["space"])
|
|
466
466
|
]
|
|
467
|
-
}, _(U(
|
|
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
|
-
}, _(
|
|
473
|
-
], 10,
|
|
472
|
+
}, _(t.manualEntryText), 3)) : E("", !0)
|
|
473
|
+
], 10, et)) : E("", !0)
|
|
474
474
|
], 2)),
|
|
475
|
-
|
|
475
|
+
t.showAttribution ? (c(), K(Ye, { key: 2 })) : E("", !0)
|
|
476
476
|
], 6));
|
|
477
477
|
}
|
|
478
|
-
}),
|
|
479
|
-
container:
|
|
480
|
-
inputSection:
|
|
481
|
-
inputWrapper:
|
|
482
|
-
input:
|
|
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:
|
|
485
|
-
spinner:
|
|
486
|
-
spin:
|
|
487
|
-
suggestions:
|
|
488
|
-
errorState:
|
|
489
|
-
suggestion:
|
|
490
|
-
error:
|
|
491
|
-
errorIcon:
|
|
492
|
-
errorBorder:
|
|
493
|
-
manualLink:
|
|
494
|
-
manualForm:
|
|
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:
|
|
497
|
-
manualFormLabel:
|
|
498
|
-
manualFormInput:
|
|
499
|
-
formRow:
|
|
500
|
-
submitButton:
|
|
501
|
-
},
|
|
502
|
-
$style:
|
|
503
|
-
},
|
|
504
|
-
function
|
|
505
|
-
return
|
|
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
|
|
508
|
-
const
|
|
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
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
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
|
|
521
|
-
f =
|
|
522
|
-
const
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
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
|
|
530
|
-
if (!
|
|
531
|
-
|
|
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
|
|
535
|
-
if (
|
|
536
|
-
const
|
|
537
|
-
if (!
|
|
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 [
|
|
542
|
-
|
|
543
|
-
} catch (
|
|
544
|
-
if (
|
|
545
|
-
|
|
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
|
-
),
|
|
549
|
+
), ae(() => {
|
|
550
550
|
f && f.abort();
|
|
551
|
-
}), { url:
|
|
551
|
+
}), { url: d, status: i };
|
|
552
552
|
}
|
|
553
|
-
const
|
|
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(
|
|
567
|
-
const
|
|
568
|
-
const f = ye(
|
|
569
|
-
return
|
|
570
|
-
}), { url: r, status:
|
|
571
|
-
w(() =>
|
|
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:
|
|
574
|
-
mapPinMarker:
|
|
575
|
-
width:
|
|
576
|
-
height:
|
|
577
|
-
zoom:
|
|
573
|
+
mapboxAccessToken: a.mapboxAccessToken,
|
|
574
|
+
mapPinMarker: a.mapPinMarker,
|
|
575
|
+
width: a.width,
|
|
576
|
+
height: a.height,
|
|
577
|
+
zoom: a.zoom
|
|
578
578
|
}
|
|
579
|
-
),
|
|
580
|
-
ee(
|
|
581
|
-
f === "loading" && (
|
|
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
|
-
|
|
584
|
+
d.value = !0, l("load");
|
|
585
585
|
}
|
|
586
|
-
return (f,
|
|
586
|
+
return (f, m) => (c(), p("div", {
|
|
587
587
|
class: e(f.$style.container),
|
|
588
|
-
style:
|
|
588
|
+
style: le(u.value)
|
|
589
589
|
}, [
|
|
590
|
-
|
|
590
|
+
P(r) ? (c(), p("img", {
|
|
591
591
|
key: 0,
|
|
592
|
-
src:
|
|
592
|
+
src: P(r),
|
|
593
593
|
alt: "Map",
|
|
594
|
-
class: e([f.$style.mapImage,
|
|
594
|
+
class: e([f.$style.mapImage, d.value ? f.$style.mapImageLoaded : ""]),
|
|
595
595
|
onLoad: i
|
|
596
|
-
}, null, 42,
|
|
596
|
+
}, null, 42, Vt)) : E("", !0)
|
|
597
597
|
], 6));
|
|
598
598
|
}
|
|
599
|
-
}),
|
|
600
|
-
container:
|
|
601
|
-
mapImage:
|
|
602
|
-
mapImageLoaded:
|
|
603
|
-
},
|
|
604
|
-
$style:
|
|
605
|
-
},
|
|
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(
|
|
613
|
-
const
|
|
614
|
-
const
|
|
615
|
-
return `${
|
|
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
|
|
620
|
-
|
|
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 (
|
|
624
|
-
const { street2:
|
|
625
|
-
|
|
623
|
+
if (v.value = null, r.value) {
|
|
624
|
+
const { street2: g, ...L } = a.address;
|
|
625
|
+
l("confirm", L);
|
|
626
626
|
} else
|
|
627
|
-
|
|
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
|
-
|
|
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
|
-
|
|
637
|
-
}), (
|
|
638
|
-
class: e(
|
|
639
|
-
style:
|
|
636
|
+
l("ready");
|
|
637
|
+
}), (g, L) => (c(), p("div", {
|
|
638
|
+
class: e(g.$style.container),
|
|
639
|
+
style: le(d.value)
|
|
640
640
|
}, [
|
|
641
|
-
|
|
642
|
-
class: e(
|
|
641
|
+
n("h2", {
|
|
642
|
+
class: e(g.$style.title)
|
|
643
643
|
}, "Confirm your home address", 2),
|
|
644
|
-
|
|
645
|
-
class: e(
|
|
644
|
+
n("div", {
|
|
645
|
+
class: e(g.$style.addressCard)
|
|
646
646
|
}, [
|
|
647
|
-
|
|
648
|
-
class: e(
|
|
647
|
+
n("span", {
|
|
648
|
+
class: e(g.$style.addressText)
|
|
649
649
|
}, _(i.value), 3),
|
|
650
|
-
|
|
651
|
-
class: e(
|
|
650
|
+
n("button", {
|
|
651
|
+
class: e(g.$style.editLink),
|
|
652
652
|
type: "button",
|
|
653
|
-
onClick: L[0] || (L[0] = (M) =>
|
|
653
|
+
onClick: L[0] || (L[0] = (M) => l("edit"))
|
|
654
654
|
}, " Edit ", 2)
|
|
655
655
|
], 2),
|
|
656
|
-
|
|
657
|
-
class: e(
|
|
656
|
+
n("div", {
|
|
657
|
+
class: e(g.$style.fieldGroup)
|
|
658
658
|
}, [
|
|
659
|
-
|
|
660
|
-
class: e(
|
|
659
|
+
n("label", {
|
|
660
|
+
class: e(g.$style.fieldLabel),
|
|
661
661
|
for: "od-unit-number"
|
|
662
662
|
}, " Unit number, apt, or floor* ", 2),
|
|
663
|
-
|
|
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(
|
|
666
|
+
class: e(g.$style.input),
|
|
667
667
|
type: "text",
|
|
668
668
|
placeholder: "#1234",
|
|
669
669
|
disabled: r.value,
|
|
670
|
-
"aria-invalid":
|
|
671
|
-
"aria-describedby":
|
|
672
|
-
onInput:
|
|
673
|
-
onKeydown:
|
|
674
|
-
}, null, 42,
|
|
675
|
-
[
|
|
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
|
-
|
|
679
|
-
class: e(
|
|
678
|
+
n("label", {
|
|
679
|
+
class: e(g.$style.checkboxRow)
|
|
680
680
|
}, [
|
|
681
|
-
|
|
681
|
+
n("input", {
|
|
682
682
|
type: "checkbox",
|
|
683
|
-
class: e(
|
|
683
|
+
class: e(g.$style.checkbox),
|
|
684
684
|
checked: r.value,
|
|
685
|
-
onChange:
|
|
686
|
-
}, null, 42,
|
|
687
|
-
|
|
688
|
-
class: e(
|
|
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
|
-
|
|
691
|
+
v.value ? (c(), p("p", {
|
|
692
692
|
key: 0,
|
|
693
693
|
id: "od-unit-error",
|
|
694
|
-
class: e(
|
|
694
|
+
class: e(g.$style.error),
|
|
695
695
|
role: "alert"
|
|
696
|
-
}, _(
|
|
697
|
-
|
|
698
|
-
class: e(
|
|
696
|
+
}, _(v.value), 3)) : E("", !0),
|
|
697
|
+
n("div", {
|
|
698
|
+
class: e(g.$style.actions)
|
|
699
699
|
}, [
|
|
700
|
-
|
|
701
|
-
class: e(
|
|
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
|
-
}),
|
|
709
|
-
container:
|
|
710
|
-
title:
|
|
711
|
-
addressCard:
|
|
712
|
-
addressText:
|
|
713
|
-
editLink:
|
|
714
|
-
fieldGroup:
|
|
715
|
-
fieldLabel:
|
|
716
|
-
input:
|
|
717
|
-
checkboxRow:
|
|
718
|
-
checkbox:
|
|
719
|
-
checkboxLabel:
|
|
720
|
-
error:
|
|
721
|
-
actions:
|
|
722
|
-
confirmButton:
|
|
723
|
-
},
|
|
724
|
-
$style:
|
|
725
|
-
},
|
|
726
|
-
function Ae(
|
|
727
|
-
const
|
|
728
|
-
|
|
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
|
-
|
|
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
|
-
|
|
732
|
+
t.on("pageChange", (d) => {
|
|
733
733
|
var i;
|
|
734
|
-
|
|
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
|
-
|
|
737
|
-
|
|
736
|
+
t.on("validationError", (d) => {
|
|
737
|
+
d.type === "validationError" && (l.value = d.errors);
|
|
738
738
|
}),
|
|
739
|
-
|
|
740
|
-
|
|
739
|
+
t.on("submit", (d) => {
|
|
740
|
+
d.type === "submit" && r.onSubmit(d.answers);
|
|
741
741
|
})
|
|
742
742
|
];
|
|
743
|
-
return () =>
|
|
743
|
+
return () => v.forEach((d) => d());
|
|
744
744
|
}
|
|
745
|
-
function
|
|
746
|
-
var
|
|
747
|
-
let
|
|
748
|
-
initialAnswers:
|
|
749
|
-
skipPages: (
|
|
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
|
|
752
|
-
let
|
|
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
|
-
|
|
758
|
+
t
|
|
759
759
|
);
|
|
760
|
-
(
|
|
760
|
+
(O = t.onReady) == null || O.call(t), ee(
|
|
761
761
|
() => {
|
|
762
|
-
var
|
|
763
|
-
return (((
|
|
762
|
+
var S;
|
|
763
|
+
return (((S = t.getSkipPages) == null ? void 0 : S.call(t)) ?? []).join("|");
|
|
764
764
|
},
|
|
765
765
|
() => {
|
|
766
|
-
var
|
|
767
|
-
|
|
768
|
-
initialAnswers:
|
|
769
|
-
skipPages: (
|
|
770
|
-
}),
|
|
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
|
-
|
|
776
|
+
t
|
|
777
777
|
);
|
|
778
778
|
}
|
|
779
779
|
);
|
|
780
|
-
let
|
|
781
|
-
ee(
|
|
782
|
-
|
|
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
|
|
786
|
-
(U) => U.id ===
|
|
785
|
+
const S = r.value.findIndex(
|
|
786
|
+
(U) => U.id === l.value
|
|
787
787
|
);
|
|
788
|
-
return
|
|
788
|
+
return S >= 0 ? S : 0;
|
|
789
789
|
}), f = w(
|
|
790
790
|
() => r.value[i.value]
|
|
791
|
-
),
|
|
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
|
-
)),
|
|
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(
|
|
798
|
-
|
|
797
|
+
function M(S, U) {
|
|
798
|
+
o.setAnswer(S, U);
|
|
799
799
|
}
|
|
800
|
-
function
|
|
801
|
-
return
|
|
800
|
+
function D(S) {
|
|
801
|
+
return a.value[S];
|
|
802
802
|
}
|
|
803
|
-
function
|
|
803
|
+
function H() {
|
|
804
804
|
var U;
|
|
805
|
-
const
|
|
806
|
-
if (!
|
|
805
|
+
const S = o.goToNext();
|
|
806
|
+
if (!S.valid)
|
|
807
807
|
try {
|
|
808
|
-
(U =
|
|
809
|
-
|
|
808
|
+
(U = t.onError) == null || U.call(
|
|
809
|
+
t,
|
|
810
810
|
new Error(
|
|
811
|
-
`Validation failed: ${Object.values(
|
|
811
|
+
`Validation failed: ${Object.values(S.errors).join(", ")}`
|
|
812
812
|
)
|
|
813
813
|
);
|
|
814
|
-
} catch (
|
|
815
|
-
console.error("[DtcOnboardingFlow] onError callback threw:",
|
|
814
|
+
} catch (Q) {
|
|
815
|
+
console.error("[DtcOnboardingFlow] onError callback threw:", Q);
|
|
816
816
|
}
|
|
817
817
|
}
|
|
818
|
-
function
|
|
819
|
-
|
|
818
|
+
function A() {
|
|
819
|
+
o.goToPrev();
|
|
820
820
|
}
|
|
821
|
-
return
|
|
822
|
-
|
|
821
|
+
return ae(() => {
|
|
822
|
+
v(), o.destroy();
|
|
823
823
|
}), {
|
|
824
|
-
engine:
|
|
824
|
+
engine: o,
|
|
825
825
|
currentPage: f,
|
|
826
826
|
currentPageIndex: i,
|
|
827
827
|
visiblePages: r,
|
|
828
|
-
visibleQuestions:
|
|
829
|
-
answers:
|
|
828
|
+
visibleQuestions: m,
|
|
829
|
+
answers: a,
|
|
830
830
|
validationErrors: u,
|
|
831
|
-
progress:
|
|
832
|
-
isFirstPage:
|
|
831
|
+
progress: b,
|
|
832
|
+
isFirstPage: g,
|
|
833
833
|
isLastPage: L,
|
|
834
834
|
setAnswer: M,
|
|
835
|
-
getAnswer:
|
|
836
|
-
goToNext:
|
|
837
|
-
goToPrev:
|
|
835
|
+
getAnswer: D,
|
|
836
|
+
goToNext: H,
|
|
837
|
+
goToPrev: A
|
|
838
838
|
};
|
|
839
839
|
}
|
|
840
|
-
const hn = /* @__PURE__ */
|
|
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(
|
|
852
|
-
const
|
|
853
|
-
getInitialAnswers: () =>
|
|
854
|
-
getSkipPages: () =>
|
|
855
|
-
onSubmit: (
|
|
856
|
-
onPageChange: (
|
|
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 =
|
|
858
|
+
return (r = o.onPageChange) == null ? void 0 : r.call(o, l, u);
|
|
859
859
|
},
|
|
860
|
-
onAnswerChange: (
|
|
860
|
+
onAnswerChange: (l, u) => {
|
|
861
861
|
var r;
|
|
862
|
-
return (r =
|
|
862
|
+
return (r = o.onAnswerChange) == null ? void 0 : r.call(o, l, u);
|
|
863
863
|
},
|
|
864
864
|
onReady: () => {
|
|
865
|
-
var
|
|
866
|
-
return (
|
|
865
|
+
var l;
|
|
866
|
+
return (l = o.onReady) == null ? void 0 : l.call(o);
|
|
867
867
|
},
|
|
868
|
-
onError: (
|
|
868
|
+
onError: (l) => {
|
|
869
869
|
var u;
|
|
870
|
-
return (u =
|
|
870
|
+
return (u = o.onError) == null ? void 0 : u.call(o, l);
|
|
871
871
|
}
|
|
872
872
|
});
|
|
873
|
-
return de("dtc-onboarding",
|
|
873
|
+
return de("dtc-onboarding", a), (l, u) => ce(l.$slots, "default");
|
|
874
874
|
}
|
|
875
|
-
}),
|
|
876
|
-
__name: "
|
|
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(
|
|
883
|
-
const
|
|
884
|
-
return (
|
|
885
|
-
class: e(
|
|
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
|
-
|
|
888
|
-
class: e(
|
|
887
|
+
n("div", {
|
|
888
|
+
class: e(l.$style.headerLogos)
|
|
889
889
|
}, [
|
|
890
|
-
|
|
890
|
+
t.partnerLogoUrl ? (c(), p("img", {
|
|
891
891
|
key: 0,
|
|
892
|
-
src:
|
|
892
|
+
src: t.partnerLogoUrl,
|
|
893
893
|
alt: "Partner",
|
|
894
|
-
class: e(
|
|
895
|
-
}, null, 10,
|
|
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(
|
|
904
|
+
class: e(l.$style.opendoorLogo)
|
|
905
905
|
}, [...u[1] || (u[1] = [
|
|
906
|
-
|
|
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
|
-
|
|
912
|
+
t.showCloseButton ? (c(), p("button", {
|
|
913
913
|
key: 0,
|
|
914
914
|
type: "button",
|
|
915
|
-
class: e(
|
|
915
|
+
class: e(l.$style.closeButton),
|
|
916
916
|
"aria-label": "Close",
|
|
917
|
-
onClick: u[0] || (u[0] = (r) =>
|
|
917
|
+
onClick: u[0] || (u[0] = (r) => a("close"))
|
|
918
918
|
}, [...u[2] || (u[2] = [
|
|
919
|
-
|
|
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
|
-
|
|
929
|
+
n("line", {
|
|
930
930
|
x1: "18",
|
|
931
931
|
y1: "6",
|
|
932
932
|
x2: "6",
|
|
933
933
|
y2: "18"
|
|
934
934
|
}),
|
|
935
|
-
|
|
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
|
-
}),
|
|
946
|
-
header:
|
|
947
|
-
headerLogos:
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
},
|
|
952
|
-
$style:
|
|
953
|
-
},
|
|
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(
|
|
959
|
-
const
|
|
960
|
-
let
|
|
961
|
-
|
|
962
|
-
|
|
958
|
+
setup(t) {
|
|
959
|
+
const o = V("dtc-onboarding");
|
|
960
|
+
let a = null;
|
|
961
|
+
ae(() => {
|
|
962
|
+
a && clearTimeout(a);
|
|
963
963
|
});
|
|
964
|
-
function
|
|
965
|
-
|
|
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,
|
|
968
|
-
var
|
|
969
|
-
const i =
|
|
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 = (
|
|
973
|
-
const
|
|
974
|
-
(
|
|
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,
|
|
977
|
+
return (r, v) => (c(), p("div", {
|
|
978
978
|
class: e(r.$style.radioCardGroup),
|
|
979
979
|
role: "radiogroup",
|
|
980
|
-
"aria-label":
|
|
980
|
+
"aria-label": t.question.label
|
|
981
981
|
}, [
|
|
982
|
-
(c(!0), p(
|
|
983
|
-
key: String(
|
|
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":
|
|
987
|
-
tabindex:
|
|
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
|
-
|
|
990
|
+
P(o).getAnswer(t.question.key) === d.value ? r.$style.radioCardSelected : ""
|
|
991
991
|
]),
|
|
992
|
-
onClick: (f) =>
|
|
993
|
-
onKeydown: (f) => u(f, i,
|
|
992
|
+
onClick: (f) => l(t.question, d.value),
|
|
993
|
+
onKeydown: (f) => u(f, i, t.question)
|
|
994
994
|
}, [
|
|
995
|
-
|
|
995
|
+
n("span", {
|
|
996
996
|
class: e(r.$style.radioCardLabel)
|
|
997
|
-
}, _(
|
|
998
|
-
|
|
997
|
+
}, _(d.label), 3),
|
|
998
|
+
d.description ? (c(), p("span", {
|
|
999
999
|
key: 0,
|
|
1000
1000
|
class: e(r.$style.radioCardDescription)
|
|
1001
|
-
}, _(
|
|
1002
|
-
], 42,
|
|
1003
|
-
|
|
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
|
-
}, _(
|
|
1008
|
-
], 10,
|
|
1007
|
+
}, _(P(o).validationErrors.value[t.question.key]), 3)) : E("", !0)
|
|
1008
|
+
], 10, qn));
|
|
1009
1009
|
}
|
|
1010
|
-
}),
|
|
1011
|
-
radioCardGroup:
|
|
1012
|
-
radioCard:
|
|
1013
|
-
radioCardSelected:
|
|
1014
|
-
radioCardLabel:
|
|
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:
|
|
1017
|
-
},
|
|
1018
|
-
$style:
|
|
1019
|
-
},
|
|
1020
|
-
function
|
|
1021
|
-
return `${
|
|
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":
|
|
1026
|
-
"kitchen-dated":
|
|
1027
|
-
"kitchen-standard":
|
|
1028
|
-
"kitchen-high_end":
|
|
1029
|
-
"kitchen-luxury":
|
|
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":
|
|
1032
|
-
"bathroom-dated":
|
|
1033
|
-
"bathroom-standard":
|
|
1034
|
-
"bathroom-high_end":
|
|
1035
|
-
"bathroom-luxury":
|
|
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":
|
|
1038
|
-
"living-room-dated":
|
|
1039
|
-
"living-room-standard":
|
|
1040
|
-
"living-room-high_end":
|
|
1041
|
-
"living-room-luxury":
|
|
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":
|
|
1044
|
-
"exterior-dated":
|
|
1045
|
-
"exterior-standard":
|
|
1046
|
-
"exterior-high_end":
|
|
1047
|
-
"exterior-luxury":
|
|
1048
|
-
},
|
|
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(
|
|
1054
|
-
const
|
|
1055
|
-
let
|
|
1056
|
-
|
|
1057
|
-
|
|
1053
|
+
setup(t) {
|
|
1054
|
+
const o = V("dtc-onboarding");
|
|
1055
|
+
let a = null;
|
|
1056
|
+
ae(() => {
|
|
1057
|
+
a && clearTimeout(a);
|
|
1058
1058
|
});
|
|
1059
|
-
function
|
|
1060
|
-
|
|
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,
|
|
1065
|
+
return (r, v) => (c(), p("div", {
|
|
1066
1066
|
class: e(r.$style.imageCardGroup),
|
|
1067
1067
|
role: "radiogroup",
|
|
1068
|
-
"aria-label":
|
|
1068
|
+
"aria-label": t.question.label
|
|
1069
1069
|
}, [
|
|
1070
|
-
(c(!0), p(
|
|
1071
|
-
key: String(
|
|
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":
|
|
1074
|
+
"aria-checked": P(o).getAnswer(t.question.key) === d.value,
|
|
1075
1075
|
class: e([
|
|
1076
1076
|
r.$style.imageCard,
|
|
1077
|
-
|
|
1077
|
+
P(o).getAnswer(t.question.key) === d.value ? r.$style.imageCardSelected : ""
|
|
1078
1078
|
]),
|
|
1079
|
-
onClick: (i) =>
|
|
1079
|
+
onClick: (i) => l(t.question, d.value)
|
|
1080
1080
|
}, [
|
|
1081
|
-
u(
|
|
1081
|
+
u(d.imageId) ? (c(), p("img", {
|
|
1082
1082
|
key: 0,
|
|
1083
|
-
src: u(
|
|
1084
|
-
alt:
|
|
1083
|
+
src: u(d.imageId),
|
|
1084
|
+
alt: d.label,
|
|
1085
1085
|
class: e(r.$style.imageCardPhoto),
|
|
1086
1086
|
loading: "lazy"
|
|
1087
|
-
}, null, 10,
|
|
1088
|
-
|
|
1087
|
+
}, null, 10, Un)) : E("", !0),
|
|
1088
|
+
n("span", {
|
|
1089
1089
|
class: e(r.$style.imageCardLabel)
|
|
1090
|
-
}, _(
|
|
1091
|
-
|
|
1090
|
+
}, _(d.label), 3),
|
|
1091
|
+
d.description ? (c(), p("span", {
|
|
1092
1092
|
key: 1,
|
|
1093
1093
|
class: e(r.$style.imageCardDescription)
|
|
1094
|
-
}, _(
|
|
1094
|
+
}, _(d.description), 3)) : E("", !0)
|
|
1095
1095
|
], 10, Vn))), 128)),
|
|
1096
|
-
|
|
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
|
-
}, _(
|
|
1101
|
-
], 10,
|
|
1100
|
+
}, _(P(o).validationErrors.value[t.question.key]), 3)) : E("", !0)
|
|
1101
|
+
], 10, On));
|
|
1102
1102
|
}
|
|
1103
|
-
}),
|
|
1104
|
-
imageCardGroup:
|
|
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:
|
|
1107
|
-
imageCardPhoto:
|
|
1108
|
-
imageCardLabel:
|
|
1109
|
-
imageCardDescription:
|
|
1110
|
-
fieldError:
|
|
1111
|
-
},
|
|
1112
|
-
$style:
|
|
1113
|
-
},
|
|
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
|
-
},
|
|
1119
|
+
}, ls = /* @__PURE__ */ x({
|
|
1120
1120
|
__name: "CheckboxCardInput",
|
|
1121
1121
|
props: {
|
|
1122
1122
|
question: {}
|
|
1123
1123
|
},
|
|
1124
|
-
setup(
|
|
1125
|
-
const
|
|
1126
|
-
() =>
|
|
1124
|
+
setup(t) {
|
|
1125
|
+
const o = t, a = V("dtc-onboarding"), l = w(
|
|
1126
|
+
() => a.getAnswer(o.question.key) ?? []
|
|
1127
1127
|
), u = w(
|
|
1128
|
-
() =>
|
|
1128
|
+
() => a.validationErrors.value[o.question.key]
|
|
1129
1129
|
);
|
|
1130
|
-
function r(
|
|
1130
|
+
function r(v) {
|
|
1131
1131
|
var f;
|
|
1132
|
-
const
|
|
1133
|
-
if (
|
|
1134
|
-
|
|
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 =
|
|
1138
|
-
(
|
|
1139
|
-
var
|
|
1140
|
-
return !((
|
|
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(
|
|
1144
|
-
const
|
|
1145
|
-
|
|
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
|
-
|
|
1147
|
+
a.setAnswer(o.question.key, [...i, v]);
|
|
1148
1148
|
}
|
|
1149
|
-
return (
|
|
1150
|
-
class: e(
|
|
1149
|
+
return (v, d) => (c(), p("div", {
|
|
1150
|
+
class: e(v.$style.checkboxCardGroup),
|
|
1151
1151
|
role: "group",
|
|
1152
|
-
"aria-label":
|
|
1152
|
+
"aria-label": t.question.label
|
|
1153
1153
|
}, [
|
|
1154
|
-
(c(!0), p(
|
|
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":
|
|
1158
|
+
"aria-checked": l.value.includes(String(i.value)),
|
|
1159
1159
|
class: e([
|
|
1160
|
-
|
|
1161
|
-
|
|
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
|
-
|
|
1166
|
-
class: e(
|
|
1165
|
+
n("span", {
|
|
1166
|
+
class: e(v.$style.checkboxCardContent)
|
|
1167
1167
|
}, [
|
|
1168
|
-
|
|
1169
|
-
class: e(
|
|
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(
|
|
1173
|
+
class: e(v.$style.checkboxCardHelper)
|
|
1174
1174
|
}, _(i.helperText), 3)) : E("", !0)
|
|
1175
1175
|
], 2),
|
|
1176
|
-
|
|
1176
|
+
n("span", {
|
|
1177
1177
|
class: e([
|
|
1178
|
-
|
|
1179
|
-
|
|
1178
|
+
v.$style.checkboxIndicator,
|
|
1179
|
+
l.value.includes(String(i.value)) ? v.$style.checkboxIndicatorChecked : ""
|
|
1180
1180
|
])
|
|
1181
1181
|
}, [
|
|
1182
|
-
|
|
1183
|
-
|
|
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,
|
|
1192
|
+
], 10, os))), 128)),
|
|
1193
1193
|
u.value ? (c(), p("p", {
|
|
1194
1194
|
key: 0,
|
|
1195
|
-
class: e(
|
|
1195
|
+
class: e(v.$style.fieldError),
|
|
1196
1196
|
role: "alert"
|
|
1197
1197
|
}, _(u.value), 3)) : E("", !0)
|
|
1198
|
-
], 10,
|
|
1198
|
+
], 10, ss));
|
|
1199
1199
|
}
|
|
1200
|
-
}),
|
|
1201
|
-
checkboxCardGroup:
|
|
1202
|
-
checkboxCard:
|
|
1203
|
-
checkboxCardSelected:
|
|
1204
|
-
checkboxCardContent:
|
|
1205
|
-
checkboxCardLabel:
|
|
1206
|
-
checkboxCardHelper:
|
|
1207
|
-
checkboxIndicator:
|
|
1208
|
-
checkboxIndicatorChecked:
|
|
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
|
-
},
|
|
1211
|
-
$style:
|
|
1212
|
-
},
|
|
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(
|
|
1218
|
-
let
|
|
1219
|
-
const
|
|
1220
|
-
() =>
|
|
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
|
|
1222
|
+
function d(i) {
|
|
1223
1223
|
const f = i.target.value;
|
|
1224
|
-
|
|
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
|
-
|
|
1229
|
+
n("label", {
|
|
1230
1230
|
class: e(i.$style.fieldLabel),
|
|
1231
|
-
for: `${u}-${
|
|
1232
|
-
}, _(
|
|
1233
|
-
|
|
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
|
-
}, _(
|
|
1237
|
-
|
|
1238
|
-
id: `${u}-${
|
|
1239
|
-
class: e([i.$style.fieldSelect,
|
|
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":
|
|
1242
|
-
"aria-describedby":
|
|
1243
|
-
onChange:
|
|
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
|
-
|
|
1246
|
-
(c(!0), p(
|
|
1247
|
-
key: String(
|
|
1248
|
-
value: String(
|
|
1249
|
-
}, _(
|
|
1250
|
-
], 42,
|
|
1251
|
-
|
|
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}-${
|
|
1253
|
+
id: `${u}-${t.question.key}-error`,
|
|
1254
1254
|
class: e(i.$style.fieldError),
|
|
1255
1255
|
role: "alert"
|
|
1256
|
-
}, _(
|
|
1256
|
+
}, _(v.value), 11, _s)) : E("", !0)
|
|
1257
1257
|
], 2));
|
|
1258
1258
|
}
|
|
1259
|
-
}),
|
|
1260
|
-
fieldGroup:
|
|
1261
|
-
fieldLabel:
|
|
1262
|
-
fieldDescription:
|
|
1263
|
-
fieldSelect:
|
|
1264
|
-
fieldSelectError:
|
|
1265
|
-
fieldError:
|
|
1266
|
-
},
|
|
1267
|
-
$style:
|
|
1268
|
-
},
|
|
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(
|
|
1274
|
-
let
|
|
1275
|
-
const
|
|
1276
|
-
() =>
|
|
1277
|
-
),
|
|
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(() =>
|
|
1280
|
-
() =>
|
|
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
|
|
1283
|
-
const
|
|
1284
|
-
if (
|
|
1285
|
-
const L =
|
|
1286
|
-
|
|
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
|
-
|
|
1288
|
+
l.setAnswer(a.question.key, g || void 0);
|
|
1289
1289
|
}
|
|
1290
|
-
return (
|
|
1291
|
-
class: e(
|
|
1290
|
+
return (b, g) => (c(), p("div", {
|
|
1291
|
+
class: e(b.$style.fieldGroup)
|
|
1292
1292
|
}, [
|
|
1293
|
-
|
|
1294
|
-
class: e(
|
|
1295
|
-
for: `${u}-${
|
|
1296
|
-
}, _(
|
|
1297
|
-
|
|
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(
|
|
1300
|
-
}, _(
|
|
1301
|
-
|
|
1302
|
-
class: e(
|
|
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
|
-
|
|
1305
|
-
id: `${u}-${
|
|
1304
|
+
n("input", {
|
|
1305
|
+
id: `${u}-${t.question.key}`,
|
|
1306
1306
|
type: i.value,
|
|
1307
1307
|
inputmode: f.value,
|
|
1308
|
-
class: e([
|
|
1309
|
-
value:
|
|
1310
|
-
placeholder:
|
|
1311
|
-
"aria-invalid":
|
|
1312
|
-
"aria-describedby":
|
|
1313
|
-
onInput:
|
|
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
|
-
|
|
1315
|
+
t.question.suffix ? (c(), p("span", {
|
|
1316
1316
|
key: 0,
|
|
1317
|
-
class: e(
|
|
1318
|
-
}, _(
|
|
1317
|
+
class: e(b.$style.fieldSuffix)
|
|
1318
|
+
}, _(t.question.suffix), 3)) : E("", !0)
|
|
1319
1319
|
], 2),
|
|
1320
|
-
|
|
1320
|
+
v.value ? (c(), p("p", {
|
|
1321
1321
|
key: 1,
|
|
1322
|
-
id: `${u}-${
|
|
1323
|
-
class: e(
|
|
1322
|
+
id: `${u}-${t.question.key}-error`,
|
|
1323
|
+
class: e(b.$style.fieldError),
|
|
1324
1324
|
role: "alert"
|
|
1325
|
-
}, _(
|
|
1325
|
+
}, _(v.value), 11, js)) : E("", !0)
|
|
1326
1326
|
], 2));
|
|
1327
1327
|
}
|
|
1328
|
-
}),
|
|
1329
|
-
fieldGroup:
|
|
1330
|
-
fieldLabel:
|
|
1331
|
-
fieldDescription:
|
|
1332
|
-
fieldInputWrapper:
|
|
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:
|
|
1334
|
+
fieldInputError: Os,
|
|
1335
1335
|
fieldSuffix: Vs,
|
|
1336
|
-
fieldError:
|
|
1337
|
-
},
|
|
1338
|
-
$style:
|
|
1339
|
-
}, zs = /* @__PURE__ */
|
|
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(
|
|
1345
|
-
let
|
|
1346
|
-
const
|
|
1347
|
-
() =>
|
|
1348
|
-
),
|
|
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
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
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,
|
|
1358
|
+
return (f, m) => (c(), p("div", {
|
|
1359
1359
|
class: e(f.$style.fieldGroup)
|
|
1360
1360
|
}, [
|
|
1361
|
-
|
|
1361
|
+
n("label", {
|
|
1362
1362
|
class: e(f.$style.fieldLabel),
|
|
1363
|
-
for: `${u}-${
|
|
1364
|
-
}, _(
|
|
1365
|
-
|
|
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
|
-
|
|
1368
|
+
n("span", {
|
|
1369
1369
|
class: e(f.$style.currencyPrefix)
|
|
1370
1370
|
}, "$", 2),
|
|
1371
|
-
|
|
1372
|
-
id: `${u}-${
|
|
1371
|
+
n("input", {
|
|
1372
|
+
id: `${u}-${t.question.key}`,
|
|
1373
1373
|
type: "text",
|
|
1374
1374
|
inputmode: "numeric",
|
|
1375
|
-
class: e([f.$style.currencyInput,
|
|
1376
|
-
value:
|
|
1377
|
-
placeholder:
|
|
1378
|
-
"aria-invalid":
|
|
1379
|
-
"aria-describedby":
|
|
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,
|
|
1381
|
+
}, null, 42, Qs)
|
|
1382
1382
|
], 2),
|
|
1383
|
-
|
|
1383
|
+
v.value ? (c(), p("p", {
|
|
1384
1384
|
key: 0,
|
|
1385
|
-
id: `${u}-${
|
|
1385
|
+
id: `${u}-${t.question.key}-error`,
|
|
1386
1386
|
class: e(f.$style.fieldError),
|
|
1387
1387
|
role: "alert"
|
|
1388
|
-
}, _(
|
|
1388
|
+
}, _(v.value), 11, Ys)) : E("", !0)
|
|
1389
1389
|
], 2));
|
|
1390
1390
|
}
|
|
1391
|
-
}),
|
|
1392
|
-
fieldGroup:
|
|
1393
|
-
fieldLabel:
|
|
1394
|
-
currencyWrapper:
|
|
1395
|
-
currencyPrefix:
|
|
1396
|
-
currencyInput:
|
|
1397
|
-
fieldInputError:
|
|
1398
|
-
fieldError:
|
|
1399
|
-
},
|
|
1400
|
-
$style:
|
|
1401
|
-
},
|
|
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(
|
|
1407
|
-
let
|
|
1408
|
-
const
|
|
1409
|
-
() =>
|
|
1410
|
-
),
|
|
1411
|
-
() =>
|
|
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
|
|
1414
|
-
const
|
|
1415
|
-
return
|
|
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
|
|
1419
|
-
|
|
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,
|
|
1421
|
+
return (f, m) => (c(), p("div", {
|
|
1422
1422
|
class: e(f.$style.fieldGroup)
|
|
1423
1423
|
}, [
|
|
1424
|
-
|
|
1424
|
+
n("label", {
|
|
1425
1425
|
class: e(f.$style.fieldLabel),
|
|
1426
|
-
for: `${u}-${
|
|
1427
|
-
}, _(
|
|
1428
|
-
|
|
1429
|
-
id: `${u}-${
|
|
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,
|
|
1432
|
-
value:
|
|
1433
|
-
placeholder:
|
|
1434
|
-
"aria-invalid":
|
|
1435
|
-
"aria-describedby":
|
|
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,
|
|
1438
|
-
|
|
1437
|
+
}, null, 42, co),
|
|
1438
|
+
v.value ? (c(), p("p", {
|
|
1439
1439
|
key: 0,
|
|
1440
|
-
id: `${u}-${
|
|
1440
|
+
id: `${u}-${t.question.key}-error`,
|
|
1441
1441
|
class: e(f.$style.fieldError),
|
|
1442
1442
|
role: "alert"
|
|
1443
|
-
}, _(
|
|
1443
|
+
}, _(v.value), 11, vo)) : E("", !0)
|
|
1444
1444
|
], 2));
|
|
1445
1445
|
}
|
|
1446
|
-
}),
|
|
1447
|
-
fieldGroup:
|
|
1448
|
-
fieldLabel:
|
|
1449
|
-
fieldInput:
|
|
1450
|
-
fieldInputError:
|
|
1451
|
-
fieldError:
|
|
1452
|
-
},
|
|
1453
|
-
$style:
|
|
1454
|
-
},
|
|
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(
|
|
1460
|
-
const
|
|
1461
|
-
() =>
|
|
1462
|
-
), r = w(() =>
|
|
1463
|
-
() =>
|
|
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
|
|
1466
|
-
|
|
1467
|
-
|
|
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
|
-
|
|
1474
|
+
n("label", {
|
|
1475
1475
|
class: e(i.$style.toggleLabel)
|
|
1476
1476
|
}, [
|
|
1477
|
-
|
|
1477
|
+
n("input", {
|
|
1478
1478
|
type: "checkbox",
|
|
1479
1479
|
class: e(i.$style.toggleCheckbox),
|
|
1480
1480
|
checked: u.value === !0,
|
|
1481
|
-
onChange:
|
|
1482
|
-
}, null, 42,
|
|
1483
|
-
|
|
1481
|
+
onChange: d
|
|
1482
|
+
}, null, 42, Co),
|
|
1483
|
+
n("span", {
|
|
1484
1484
|
class: e(i.$style.toggleText)
|
|
1485
1485
|
}, [
|
|
1486
|
-
|
|
1487
|
-
var
|
|
1488
|
-
return (
|
|
1489
|
-
}), { key: 0 })) : (c(), p(
|
|
1490
|
-
|
|
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
|
-
}),
|
|
1497
|
-
toggleGroup:
|
|
1498
|
-
toggleLabel:
|
|
1499
|
-
toggleCheckbox:
|
|
1500
|
-
toggleText:
|
|
1501
|
-
},
|
|
1502
|
-
$style:
|
|
1503
|
-
},
|
|
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(
|
|
1509
|
-
let
|
|
1510
|
-
function
|
|
1511
|
-
const
|
|
1512
|
-
for (let
|
|
1513
|
-
const
|
|
1514
|
-
for (let
|
|
1515
|
-
const
|
|
1516
|
-
|
|
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
|
|
1519
|
+
return C;
|
|
1520
1520
|
}
|
|
1521
|
-
const
|
|
1521
|
+
const l = t, u = V("dtc-onboarding"), r = V(
|
|
1522
1522
|
"opendoor-client",
|
|
1523
1523
|
void 0
|
|
1524
|
-
),
|
|
1525
|
-
() => u.getAnswer(
|
|
1526
|
-
),
|
|
1527
|
-
() => u.validationErrors.value[
|
|
1528
|
-
),
|
|
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
|
-
[() =>
|
|
1531
|
-
(y,
|
|
1532
|
-
let
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
}),
|
|
1536
|
-
|
|
1537
|
-
label:
|
|
1538
|
-
value:
|
|
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
|
-
|
|
1542
|
-
label:
|
|
1543
|
-
value: String(
|
|
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
|
-
|
|
1547
|
-
})) :
|
|
1548
|
-
label:
|
|
1549
|
-
value: String(
|
|
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
|
|
1555
|
-
() =>
|
|
1556
|
-
(y) => y.label.toLowerCase().includes(
|
|
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((
|
|
1561
|
+
return (y = L.value.find((C) => C.value === f.value)) == null ? void 0 : y.label;
|
|
1562
1562
|
}
|
|
1563
1563
|
);
|
|
1564
|
-
function
|
|
1565
|
-
u.setAnswer(
|
|
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
|
-
|
|
1568
|
+
b.value = y.target.value, D.value = -1, g.value || (g.value = !0);
|
|
1569
1569
|
}
|
|
1570
1570
|
function J(y) {
|
|
1571
|
-
if (!
|
|
1572
|
-
(y.key === "ArrowDown" || y.key === "Enter") && (y.preventDefault(),
|
|
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(),
|
|
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(),
|
|
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(),
|
|
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(),
|
|
1586
|
+
y.preventDefault(), g.value = !1, D.value = -1;
|
|
1587
1587
|
break;
|
|
1588
1588
|
}
|
|
1589
1589
|
}
|
|
1590
|
-
function
|
|
1591
|
-
const y =
|
|
1590
|
+
function W() {
|
|
1591
|
+
const y = A.value;
|
|
1592
1592
|
if (!y) return;
|
|
1593
|
-
const
|
|
1594
|
-
|
|
1595
|
-
Math.min(
|
|
1596
|
-
),
|
|
1597
|
-
|
|
1598
|
-
top:
|
|
1599
|
-
left:
|
|
1600
|
-
width:
|
|
1601
|
-
maxHeight:
|
|
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
|
|
1605
|
-
const y =
|
|
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
|
-
...
|
|
1613
|
+
...O.value
|
|
1614
1614
|
} : { display: "none" };
|
|
1615
1615
|
});
|
|
1616
|
-
let
|
|
1617
|
-
function
|
|
1616
|
+
let X = null;
|
|
1617
|
+
function ue() {
|
|
1618
1618
|
const y = window.visualViewport;
|
|
1619
|
-
window.addEventListener("scroll",
|
|
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
|
|
1621
|
+
function te() {
|
|
1622
1622
|
const y = window.visualViewport;
|
|
1623
|
-
window.removeEventListener("scroll",
|
|
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(
|
|
1626
|
-
y ? (
|
|
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
|
|
1630
|
-
const
|
|
1631
|
-
(
|
|
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
|
-
}),
|
|
1636
|
-
document.removeEventListener("mousedown", $),
|
|
1637
|
-
}), (y,
|
|
1635
|
+
}), ae(() => {
|
|
1636
|
+
document.removeEventListener("mousedown", $), te();
|
|
1637
|
+
}), (y, C) => (c(), p("div", {
|
|
1638
1638
|
ref_key: "containerRef",
|
|
1639
|
-
ref:
|
|
1639
|
+
ref: H,
|
|
1640
1640
|
class: e(y.$style.fieldGroup)
|
|
1641
1641
|
}, [
|
|
1642
|
-
|
|
1642
|
+
n("div", {
|
|
1643
1643
|
ref_key: "anchorRef",
|
|
1644
|
-
ref:
|
|
1644
|
+
ref: A,
|
|
1645
1645
|
class: e(y.$style.searchableDropdown)
|
|
1646
1646
|
}, [
|
|
1647
|
-
|
|
1647
|
+
n("input", {
|
|
1648
1648
|
id: i,
|
|
1649
1649
|
type: "text",
|
|
1650
1650
|
class: e(y.$style.fieldInput),
|
|
1651
|
-
value:
|
|
1652
|
-
placeholder:
|
|
1653
|
-
"aria-label":
|
|
1654
|
-
"aria-expanded":
|
|
1655
|
-
"aria-invalid":
|
|
1656
|
-
"aria-describedby":
|
|
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":
|
|
1660
|
-
"aria-activedescendant":
|
|
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:
|
|
1662
|
+
onFocus: C[0] || (C[0] = (q) => g.value = !0),
|
|
1663
1663
|
onKeydown: J
|
|
1664
|
-
}, null, 42,
|
|
1665
|
-
|
|
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:
|
|
1671
|
-
}, [...
|
|
1672
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1688
|
+
g.value ? (c(), K(Ge, {
|
|
1689
1689
|
key: 0,
|
|
1690
1690
|
to: "body"
|
|
1691
1691
|
}, [
|
|
1692
|
-
|
|
1692
|
+
n("div", {
|
|
1693
1693
|
ref_key: "portalRef",
|
|
1694
|
-
ref:
|
|
1694
|
+
ref: Z,
|
|
1695
1695
|
class: e(y.$style.searchableDropdownList),
|
|
1696
1696
|
role: "listbox",
|
|
1697
|
-
id:
|
|
1698
|
-
style:
|
|
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)) :
|
|
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(
|
|
1707
|
-
key:
|
|
1708
|
-
id: `${
|
|
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":
|
|
1711
|
+
"aria-selected": q.value === f.value,
|
|
1712
1712
|
class: e([
|
|
1713
1713
|
y.$style.searchableDropdownOption,
|
|
1714
|
-
|
|
1715
|
-
|
|
1714
|
+
q.value === f.value ? y.$style.searchableDropdownOptionSelected : "",
|
|
1715
|
+
T === D.value ? y.$style.searchableDropdownOptionHighlighted : ""
|
|
1716
1716
|
]),
|
|
1717
|
-
onMousedown:
|
|
1717
|
+
onMousedown: C[2] || (C[2] = Se(() => {
|
|
1718
1718
|
}, ["prevent"])),
|
|
1719
|
-
onClick: (
|
|
1720
|
-
}, _(
|
|
1719
|
+
onClick: (B) => Q(q.value)
|
|
1720
|
+
}, _(q.label), 43, Ao))), 128))
|
|
1721
1721
|
], 6)
|
|
1722
1722
|
])) : E("", !0),
|
|
1723
|
-
|
|
1723
|
+
m.value ? (c(), p("p", {
|
|
1724
1724
|
key: 1,
|
|
1725
|
-
id: `${
|
|
1725
|
+
id: `${v}-${t.question.key}-error`,
|
|
1726
1726
|
class: e(y.$style.fieldError),
|
|
1727
1727
|
role: "alert"
|
|
1728
|
-
}, _(
|
|
1728
|
+
}, _(m.value), 11, To)) : E("", !0)
|
|
1729
1729
|
], 2));
|
|
1730
1730
|
}
|
|
1731
|
-
}),
|
|
1732
|
-
fieldGroup:
|
|
1733
|
-
searchableDropdown:
|
|
1734
|
-
fieldInput:
|
|
1735
|
-
searchableDropdownToggle:
|
|
1736
|
-
searchableDropdownList:
|
|
1737
|
-
searchableDropdownOption:
|
|
1738
|
-
searchableDropdownOptionSelected:
|
|
1739
|
-
searchableDropdownOptionHighlighted:
|
|
1740
|
-
searchableDropdownEmpty:
|
|
1741
|
-
fieldError:
|
|
1742
|
-
},
|
|
1743
|
-
$style:
|
|
1744
|
-
},
|
|
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(
|
|
1747
|
-
const
|
|
1748
|
-
var f,
|
|
1749
|
-
return (((f =
|
|
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 =
|
|
1753
|
-
}),
|
|
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
|
|
1757
|
-
return (
|
|
1756
|
+
var d;
|
|
1757
|
+
return (d = o.currentPage.value) == null ? void 0 : d.id;
|
|
1758
1758
|
},
|
|
1759
1759
|
() => {
|
|
1760
|
-
var
|
|
1761
|
-
(i = (
|
|
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
|
-
), (
|
|
1763
|
+
), (d, i) => {
|
|
1764
1764
|
var f;
|
|
1765
|
-
return
|
|
1765
|
+
return P(o).currentPage.value ? (c(), p("div", {
|
|
1766
1766
|
key: 0,
|
|
1767
1767
|
ref_key: "containerRef",
|
|
1768
|
-
ref:
|
|
1769
|
-
class: e(
|
|
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(
|
|
1775
|
-
key:
|
|
1774
|
+
(c(!0), p(N, null, Y(P(o).visibleQuestions.value, (m) => (c(), p(N, {
|
|
1775
|
+
key: m.key
|
|
1776
1776
|
}, [
|
|
1777
|
-
|
|
1777
|
+
m.style === "radio-card" ? (c(), K(Rn, {
|
|
1778
1778
|
key: 0,
|
|
1779
|
-
question:
|
|
1780
|
-
}, null, 8, ["question"])) :
|
|
1779
|
+
question: m
|
|
1780
|
+
}, null, 8, ["question"])) : m.style === "image-card" ? (c(), K(ns, {
|
|
1781
1781
|
key: 1,
|
|
1782
|
-
question:
|
|
1783
|
-
}, null, 8, ["question"])) :
|
|
1782
|
+
question: m
|
|
1783
|
+
}, null, 8, ["question"])) : m.style === "checkbox-card" ? (c(), K(hs, {
|
|
1784
1784
|
key: 2,
|
|
1785
|
-
question:
|
|
1786
|
-
}, null, 8, ["question"])) :
|
|
1785
|
+
question: m
|
|
1786
|
+
}, null, 8, ["question"])) : m.style === "dropdown" ? (c(), K(Ts, {
|
|
1787
1787
|
key: 3,
|
|
1788
|
-
question:
|
|
1789
|
-
}, null, 8, ["question"])) :
|
|
1788
|
+
question: m
|
|
1789
|
+
}, null, 8, ["question"])) : m.style === "input" || m.style === "email" ? (c(), K(zs, {
|
|
1790
1790
|
key: 4,
|
|
1791
|
-
question:
|
|
1792
|
-
}, null, 8, ["question"])) :
|
|
1791
|
+
question: m
|
|
1792
|
+
}, null, 8, ["question"])) : m.style === "currency" ? (c(), K(io, {
|
|
1793
1793
|
key: 5,
|
|
1794
|
-
question:
|
|
1795
|
-
}, null, 8, ["question"])) :
|
|
1794
|
+
question: m
|
|
1795
|
+
}, null, 8, ["question"])) : m.style === "phone" ? (c(), K(ko, {
|
|
1796
1796
|
key: 6,
|
|
1797
|
-
question:
|
|
1798
|
-
}, null, 8, ["question"])) :
|
|
1797
|
+
question: m
|
|
1798
|
+
}, null, 8, ["question"])) : m.style === "toggle" ? (c(), K(Do, {
|
|
1799
1799
|
key: 7,
|
|
1800
|
-
question:
|
|
1801
|
-
}, null, 8, ["question"])) :
|
|
1800
|
+
question: m
|
|
1801
|
+
}, null, 8, ["question"])) : m.style === "searchable-dropdown" ? (c(), K(Ko, {
|
|
1802
1802
|
key: 8,
|
|
1803
|
-
question:
|
|
1803
|
+
question: m
|
|
1804
1804
|
}, null, 8, ["question"])) : E("", !0)
|
|
1805
1805
|
], 64))), 128)),
|
|
1806
|
-
((f =
|
|
1807
|
-
|
|
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(
|
|
1810
|
-
onClick: i[0] || (i[0] = (
|
|
1809
|
+
class: e(d.$style.ctaButton),
|
|
1810
|
+
onClick: i[0] || (i[0] = (m) => P(o).goToNext())
|
|
1811
1811
|
}, _(u.value), 3),
|
|
1812
|
-
|
|
1813
|
-
var
|
|
1814
|
-
return (
|
|
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(
|
|
1817
|
+
class: e(d.$style.consentText)
|
|
1818
1818
|
}, [
|
|
1819
|
-
|
|
1820
|
-
|
|
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(
|
|
1824
|
+
class: e(d.$style.consentLink)
|
|
1825
1825
|
}, "Terms of Service", 2),
|
|
1826
|
-
i[1] || (i[1] =
|
|
1827
|
-
|
|
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(
|
|
1831
|
+
class: e(d.$style.consentLink)
|
|
1832
1832
|
}, "Privacy Policy", 2),
|
|
1833
|
-
i[2] || (i[2] =
|
|
1833
|
+
i[2] || (i[2] = $e(". ", -1))
|
|
1834
1834
|
], 2))
|
|
1835
1835
|
], 64)) : E("", !0)
|
|
1836
|
-
], 10,
|
|
1836
|
+
], 10, Qo)) : E("", !0);
|
|
1837
1837
|
};
|
|
1838
1838
|
}
|
|
1839
|
-
}),
|
|
1840
|
-
pageContent:
|
|
1841
|
-
consentText:
|
|
1842
|
-
consentLink:
|
|
1843
|
-
ctaButton:
|
|
1844
|
-
},
|
|
1845
|
-
$style:
|
|
1846
|
-
},
|
|
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(
|
|
1852
|
-
const
|
|
1853
|
-
() => Math.min(100, Math.max(0,
|
|
1851
|
+
setup(t) {
|
|
1852
|
+
const o = t, a = w(
|
|
1853
|
+
() => Math.min(100, Math.max(0, o.progress * 100))
|
|
1854
1854
|
);
|
|
1855
|
-
return (
|
|
1856
|
-
class: e(
|
|
1855
|
+
return (l, u) => (c(), p("div", {
|
|
1856
|
+
class: e(l.$style.progressBar),
|
|
1857
1857
|
role: "progressbar",
|
|
1858
|
-
"aria-valuenow":
|
|
1858
|
+
"aria-valuenow": a.value,
|
|
1859
1859
|
"aria-valuemin": 0,
|
|
1860
1860
|
"aria-valuemax": 100
|
|
1861
1861
|
}, [
|
|
1862
|
-
|
|
1863
|
-
class: e(
|
|
1864
|
-
style:
|
|
1862
|
+
n("div", {
|
|
1863
|
+
class: e(l.$style.progressBarFill),
|
|
1864
|
+
style: le({ width: `${a.value}%` })
|
|
1865
1865
|
}, null, 6)
|
|
1866
|
-
], 10,
|
|
1866
|
+
], 10, aa));
|
|
1867
1867
|
}
|
|
1868
|
-
}),
|
|
1869
|
-
progressBar:
|
|
1870
|
-
progressBarFill:
|
|
1871
|
-
},
|
|
1872
|
-
$style:
|
|
1873
|
-
},
|
|
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(
|
|
1876
|
-
const
|
|
1875
|
+
setup(t) {
|
|
1876
|
+
const o = V("dtc-onboarding"), a = w(
|
|
1877
1877
|
() => {
|
|
1878
1878
|
var u;
|
|
1879
|
-
return ((u =
|
|
1879
|
+
return ((u = o.currentPage.value) == null ? void 0 : u.submitLabel) ?? "Next";
|
|
1880
1880
|
}
|
|
1881
|
-
),
|
|
1881
|
+
), l = w(
|
|
1882
1882
|
() => {
|
|
1883
1883
|
var u;
|
|
1884
|
-
return ((u =
|
|
1884
|
+
return ((u = o.currentPage.value) == null ? void 0 : u.id) === "contact-info";
|
|
1885
1885
|
}
|
|
1886
1886
|
);
|
|
1887
|
-
return (u, r) =>
|
|
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
|
-
|
|
1893
|
-
progress:
|
|
1892
|
+
oe(da, {
|
|
1893
|
+
progress: P(o).progress.value
|
|
1894
1894
|
}, null, 8, ["progress"]),
|
|
1895
|
-
|
|
1895
|
+
n("div", {
|
|
1896
1896
|
class: e(u.$style.navigationButtons)
|
|
1897
1897
|
}, [
|
|
1898
|
-
|
|
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] = (
|
|
1903
|
+
onClick: r[0] || (r[0] = (v) => P(o).goToPrev())
|
|
1904
1904
|
}, [...r[2] || (r[2] = [
|
|
1905
|
-
|
|
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
|
-
|
|
1915
|
+
n("polyline", { points: "15 18 9 12 15 6" })
|
|
1916
1916
|
], -1)
|
|
1917
1917
|
])], 2)),
|
|
1918
|
-
|
|
1918
|
+
n("button", {
|
|
1919
1919
|
type: "button",
|
|
1920
1920
|
class: e(u.$style.nextButton),
|
|
1921
|
-
onClick: r[1] || (r[1] = (
|
|
1922
|
-
}, _(
|
|
1921
|
+
onClick: r[1] || (r[1] = (v) => P(o).goToNext())
|
|
1922
|
+
}, _(a.value), 3)
|
|
1923
1923
|
], 2)
|
|
1924
1924
|
], 2));
|
|
1925
1925
|
}
|
|
1926
|
-
}),
|
|
1927
|
-
navigation:
|
|
1928
|
-
navigationButtons:
|
|
1929
|
-
backButton:
|
|
1930
|
-
nextButton:
|
|
1931
|
-
},
|
|
1932
|
-
$style:
|
|
1933
|
-
},
|
|
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(
|
|
1939
|
-
const
|
|
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 =
|
|
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 && (
|
|
1947
|
-
}),
|
|
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 && (
|
|
1950
|
-
}),
|
|
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
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
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) =>
|
|
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
|
-
|
|
1963
|
+
n("div", {
|
|
1964
1964
|
class: e(i.$style.layoutScrollable)
|
|
1965
1965
|
}, [
|
|
1966
|
-
|
|
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
|
-
|
|
1978
|
+
n("circle", {
|
|
1979
1979
|
cx: "12",
|
|
1980
1980
|
cy: "10",
|
|
1981
1981
|
r: "3"
|
|
1982
1982
|
}, null, -1),
|
|
1983
|
-
|
|
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
|
-
|
|
1985
|
+
n("span", {
|
|
1986
1986
|
class: e(i.$style.addressText)
|
|
1987
|
-
}, _(
|
|
1987
|
+
}, _(d.value), 3)
|
|
1988
1988
|
], 2),
|
|
1989
|
-
|
|
1989
|
+
n("div", {
|
|
1990
1990
|
class: e(i.$style.contentSplit)
|
|
1991
1991
|
}, [
|
|
1992
|
-
|
|
1992
|
+
n("div", {
|
|
1993
1993
|
class: e(i.$style.contentLeft)
|
|
1994
1994
|
}, [
|
|
1995
|
-
|
|
1995
|
+
n("h1", {
|
|
1996
1996
|
class: e(i.$style.pageTitle)
|
|
1997
1997
|
}, _(r.value), 3),
|
|
1998
|
-
|
|
1998
|
+
v.value ? (c(), p("p", {
|
|
1999
1999
|
key: 0,
|
|
2000
2000
|
class: e(i.$style.pageSubtitle)
|
|
2001
|
-
}, _(
|
|
2001
|
+
}, _(v.value), 3)) : E("", !0)
|
|
2002
2002
|
], 2),
|
|
2003
|
-
|
|
2003
|
+
n("div", {
|
|
2004
2004
|
class: e(i.$style.contentRight)
|
|
2005
2005
|
}, [
|
|
2006
|
-
|
|
2006
|
+
oe(oa)
|
|
2007
2007
|
], 2)
|
|
2008
2008
|
], 2)
|
|
2009
2009
|
], 2),
|
|
2010
|
-
|
|
2010
|
+
oe($a)
|
|
2011
2011
|
], 2)) : E("", !0);
|
|
2012
2012
|
}
|
|
2013
|
-
}),
|
|
2014
|
-
layout:
|
|
2015
|
-
layoutScrollable:
|
|
2016
|
-
addressBar:
|
|
2017
|
-
addressIcon:
|
|
2018
|
-
addressText:
|
|
2019
|
-
contentSplit:
|
|
2020
|
-
contentLeft:
|
|
2021
|
-
contentRight:
|
|
2022
|
-
pageTitle:
|
|
2023
|
-
pageSubtitle:
|
|
2024
|
-
},
|
|
2025
|
-
$style:
|
|
2026
|
-
},
|
|
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(
|
|
2041
|
-
const
|
|
2042
|
-
de("dtc-consent-slots",
|
|
2040
|
+
setup(t, { emit: o }) {
|
|
2041
|
+
const a = t, l = He();
|
|
2042
|
+
de("dtc-consent-slots", l);
|
|
2043
2043
|
const u = w(() => ({
|
|
2044
|
-
submitLabel:
|
|
2045
|
-
contactPageTitle:
|
|
2046
|
-
contactPageSubtitle:
|
|
2044
|
+
submitLabel: a.submitLabel,
|
|
2045
|
+
contactPageTitle: a.contactPageTitle,
|
|
2046
|
+
contactPageSubtitle: a.contactPageSubtitle
|
|
2047
2047
|
}));
|
|
2048
2048
|
de("dtc-overrides", u);
|
|
2049
|
-
const r =
|
|
2050
|
-
function
|
|
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
|
|
2059
|
+
function m() {
|
|
2060
2060
|
r("ready");
|
|
2061
2061
|
}
|
|
2062
|
-
function
|
|
2062
|
+
function b(L) {
|
|
2063
2063
|
r("error", L);
|
|
2064
2064
|
}
|
|
2065
|
-
function
|
|
2065
|
+
function g() {
|
|
2066
2066
|
var L;
|
|
2067
|
-
(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:
|
|
2071
|
+
style: le(v.value)
|
|
2072
2072
|
}, [
|
|
2073
|
-
|
|
2074
|
-
"initial-answers":
|
|
2075
|
-
"skip-pages":
|
|
2076
|
-
"on-submit":
|
|
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":
|
|
2080
|
-
"on-error":
|
|
2079
|
+
"on-ready": m,
|
|
2080
|
+
"on-error": b
|
|
2081
2081
|
}, {
|
|
2082
|
-
default:
|
|
2083
|
-
|
|
2084
|
-
"partner-logo-url":
|
|
2085
|
-
"show-close-button": !!
|
|
2086
|
-
onClose:
|
|
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
|
-
|
|
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
|
-
}),
|
|
2095
|
-
container:
|
|
2096
|
-
},
|
|
2097
|
-
$style:
|
|
2098
|
-
},
|
|
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(
|
|
2109
|
-
const
|
|
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 (!(
|
|
2118
|
+
if (!(a.customerName && a.customerPhone))
|
|
2112
2119
|
try {
|
|
2113
|
-
const
|
|
2114
|
-
opendoorOfferRequestId:
|
|
2120
|
+
const s = await r.value.getCustomerContact({
|
|
2121
|
+
opendoorOfferRequestId: a.offerId
|
|
2115
2122
|
});
|
|
2116
|
-
!
|
|
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
|
|
2122
|
-
offerId:
|
|
2128
|
+
const s = await r.value.getAssessmentSlots({
|
|
2129
|
+
offerId: a.offerId
|
|
2123
2130
|
});
|
|
2124
|
-
if (
|
|
2125
|
-
|
|
2126
|
-
|
|
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
|
|
2130
|
-
|
|
2136
|
+
const h = /* @__PURE__ */ new Date();
|
|
2137
|
+
g.value = { year: h.getFullYear(), month: h.getMonth() };
|
|
2131
2138
|
}
|
|
2132
|
-
|
|
2133
|
-
} catch (
|
|
2134
|
-
const
|
|
2135
|
-
|
|
2136
|
-
const
|
|
2137
|
-
|
|
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
|
|
2141
|
-
const
|
|
2142
|
-
for (const
|
|
2143
|
-
const
|
|
2144
|
-
|
|
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
|
|
2147
|
-
}),
|
|
2148
|
-
() =>
|
|
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
|
-
() =>
|
|
2157
|
+
() => g.value ? ke(g.value, S.value) : !1
|
|
2153
2158
|
), J = w(
|
|
2154
|
-
() =>
|
|
2155
|
-
),
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
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
|
|
2162
|
-
|
|
2168
|
+
function ue(s) {
|
|
2169
|
+
s && S.value.has(s.key) && (L.value = s.key, M.value = null);
|
|
2163
2170
|
}
|
|
2164
|
-
function
|
|
2165
|
-
|
|
2171
|
+
function te(s) {
|
|
2172
|
+
g.value && (g.value = pe(g.value, s));
|
|
2166
2173
|
}
|
|
2167
|
-
const
|
|
2168
|
-
const
|
|
2169
|
-
return !
|
|
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
|
|
2172
|
-
const
|
|
2173
|
-
|
|
2178
|
+
function y(s) {
|
|
2179
|
+
const h = s.target;
|
|
2180
|
+
H.value = T(h.value), h.value = H.value;
|
|
2174
2181
|
}
|
|
2175
|
-
async function
|
|
2176
|
-
if (!(
|
|
2177
|
-
|
|
2182
|
+
async function C() {
|
|
2183
|
+
if (!(!$.value || !M.value)) {
|
|
2184
|
+
j.value = !0, O.value = null;
|
|
2178
2185
|
try {
|
|
2179
|
-
const
|
|
2180
|
-
offerId:
|
|
2181
|
-
selectedInspectionTime:
|
|
2182
|
-
reminderPhone:
|
|
2183
|
-
notes:
|
|
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
|
-
|
|
2188
|
-
} catch (
|
|
2189
|
-
const
|
|
2190
|
-
|
|
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 (
|
|
2193
|
-
const
|
|
2194
|
-
|
|
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
|
-
|
|
2203
|
+
j.value = !1;
|
|
2197
2204
|
}
|
|
2198
2205
|
}
|
|
2199
2206
|
}
|
|
2200
|
-
function
|
|
2201
|
-
return
|
|
2207
|
+
function q(s) {
|
|
2208
|
+
return s.trim().split(/\s+/)[0] ?? "";
|
|
2202
2209
|
}
|
|
2203
|
-
function
|
|
2204
|
-
const
|
|
2205
|
-
return
|
|
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
|
|
2214
|
+
function B(s, h) {
|
|
2208
2215
|
return new Intl.DateTimeFormat("en-CA", {
|
|
2209
|
-
timeZone:
|
|
2216
|
+
timeZone: h,
|
|
2210
2217
|
year: "numeric",
|
|
2211
2218
|
month: "2-digit",
|
|
2212
2219
|
day: "2-digit"
|
|
2213
|
-
}).format(new Date(
|
|
2220
|
+
}).format(new Date(s));
|
|
2214
2221
|
}
|
|
2215
|
-
function
|
|
2216
|
-
const [
|
|
2217
|
-
return { year:
|
|
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
|
|
2220
|
-
const
|
|
2221
|
-
return { year:
|
|
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
|
|
2224
|
-
return new Date(Date.UTC(
|
|
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
|
|
2237
|
+
function fe(s, h) {
|
|
2231
2238
|
return new Intl.DateTimeFormat(void 0, {
|
|
2232
|
-
timeZone:
|
|
2239
|
+
timeZone: h,
|
|
2233
2240
|
weekday: "long",
|
|
2234
2241
|
month: "long",
|
|
2235
2242
|
day: "numeric"
|
|
2236
|
-
}).format(
|
|
2243
|
+
}).format(s);
|
|
2237
2244
|
}
|
|
2238
|
-
function
|
|
2245
|
+
function me(s, h) {
|
|
2239
2246
|
return new Intl.DateTimeFormat(void 0, {
|
|
2240
|
-
timeZone:
|
|
2247
|
+
timeZone: h,
|
|
2241
2248
|
hour: "numeric",
|
|
2242
2249
|
minute: "2-digit",
|
|
2243
2250
|
hour12: !0
|
|
2244
|
-
}).format(
|
|
2251
|
+
}).format(s);
|
|
2245
2252
|
}
|
|
2246
|
-
function
|
|
2247
|
-
const
|
|
2248
|
-
for (let
|
|
2249
|
-
const
|
|
2250
|
-
|
|
2251
|
-
key: `${Re}-${Ne}-${String(
|
|
2252
|
-
day:
|
|
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
|
|
2262
|
+
return se;
|
|
2256
2263
|
}
|
|
2257
|
-
function
|
|
2258
|
-
for (const
|
|
2259
|
-
const [
|
|
2260
|
-
if (
|
|
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
|
|
2266
|
-
for (const
|
|
2267
|
-
const [
|
|
2268
|
-
if (
|
|
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"],
|
|
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 (
|
|
2301
|
-
|
|
2302
|
-
|
|
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
|
-
|
|
2307
|
-
|
|
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
|
-
|
|
2310
|
-
class: e(
|
|
2311
|
-
},
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
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
|
-
|
|
2323
|
-
class: e(
|
|
2324
|
-
},
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
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
|
-
|
|
2336
|
-
class: e(
|
|
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
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
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
|
-
(
|
|
2368
|
-
|
|
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": "
|
|
2361
|
+
"stroke-width": "2",
|
|
2375
2362
|
"stroke-linecap": "round",
|
|
2376
|
-
"stroke-linejoin": "round"
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
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(
|
|
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
|
-
}, [...
|
|
2405
|
-
|
|
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: "
|
|
2408
|
-
r: "
|
|
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
|
-
|
|
2413
|
-
], 2)
|
|
2414
|
-
],
|
|
2415
|
-
n
|
|
2416
|
-
|
|
2417
|
-
class: e(
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
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
|
-
|
|
2457
|
-
class: e(
|
|
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
|
-
|
|
2495
|
-
class: e(
|
|
2496
|
-
}, "
|
|
2497
|
-
|
|
2498
|
-
class: e(
|
|
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
|
-
|
|
2501
|
-
class: e(
|
|
2502
|
-
},
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
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
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
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
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
])
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
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
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
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
|
-
|
|
2577
|
-
class: e(
|
|
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
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
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
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
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
|
-
|
|
2612
|
-
class: e(
|
|
2619
|
+
n("div", {
|
|
2620
|
+
class: e(s.$style.card)
|
|
2613
2621
|
}, [
|
|
2614
|
-
|
|
2615
|
-
class: e(
|
|
2622
|
+
n("div", {
|
|
2623
|
+
class: e(s.$style.stepLayout)
|
|
2616
2624
|
}, [
|
|
2617
|
-
|
|
2618
|
-
class: e(
|
|
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
|
-
(
|
|
2631
|
-
|
|
2632
|
-
class: e(a.$style.feature)
|
|
2628
|
+
n("div", {
|
|
2629
|
+
class: e(s.$style.introHeader)
|
|
2633
2630
|
}, [
|
|
2634
|
-
|
|
2635
|
-
class: e(
|
|
2636
|
-
},
|
|
2637
|
-
|
|
2638
|
-
class: e(
|
|
2639
|
-
},
|
|
2640
|
-
], 2)
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
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
|
-
|
|
2668
|
-
class: e(
|
|
2654
|
+
n("div", {
|
|
2655
|
+
class: e(s.$style.schedule)
|
|
2669
2656
|
}, [
|
|
2670
|
-
(
|
|
2671
|
-
|
|
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
|
-
(
|
|
2693
|
-
|
|
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
|
-
|
|
2689
|
+
k && L.value === k.key ? s.$style.calendarDaySelected : k && S.value.has(k.key) ? s.$style.calendarDayAvailable : s.$style.calendarDayDisabled
|
|
2697
2690
|
),
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
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
|
-
}),
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
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:
|
|
2735
|
-
calendarDaySelected:
|
|
2736
|
-
timesHeader:
|
|
2737
|
-
timeRow:
|
|
2738
|
-
timeButton:
|
|
2739
|
-
timeButtonSelected:
|
|
2740
|
-
field:
|
|
2741
|
-
fieldLabel:
|
|
2742
|
-
input:
|
|
2743
|
-
fieldset:
|
|
2744
|
-
radioRow:
|
|
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:
|
|
2747
|
-
faq:
|
|
2748
|
-
faqHeader:
|
|
2749
|
-
faqItem:
|
|
2750
|
-
faqQuestion:
|
|
2751
|
-
faqAnswer:
|
|
2752
|
-
faqChevron:
|
|
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:
|
|
2758
|
-
summaryCard:
|
|
2759
|
-
summaryRow:
|
|
2760
|
-
summaryIcon:
|
|
2761
|
-
},
|
|
2762
|
-
$style:
|
|
2763
|
-
},
|
|
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
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
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
|
};
|