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