@opendoor/partner-sdk-client-vue 1.0.7-beta.69.1 → 1.0.7-beta.71.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +490 -473
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as q, computed as C, provide as ne, ref as I, watch as H, onUnmounted as z, renderSlot as X, inject as F, openBlock as u, createElementBlock as y, normalizeClass as r, createElementVNode as l, onMounted as se, normalizeStyle as Q, createCommentVNode as w, Fragment as G, toDisplayString as m, renderList as W, withKeys as re, withModifiers as le, createBlock as R, unref as E, withDirectives as pe, vModelText as ye, createVNode as J, withCtx as ge } from "vue";
|
|
2
2
|
import { NOOP_TRACKING as te, TrackingClient as fe } from "@opendoor/partner-sdk-client-js-core/internal/tracking";
|
|
3
3
|
import { resolveAppearance as he } from "@opendoor/partner-sdk-client-js-core";
|
|
4
|
-
import { OpendoorClient as
|
|
4
|
+
import { OpendoorClient as mo, THEMES as $o, resolveAppearance as Co } from "@opendoor/partner-sdk-client-js-core";
|
|
5
5
|
import { createDtcOnboardingFlow as ie } from "@opendoor/partner-sdk-client-js-core/internal/questionnaire";
|
|
6
|
-
const
|
|
6
|
+
const vo = /* @__PURE__ */ q({
|
|
7
7
|
__name: "OpendoorProvider",
|
|
8
8
|
props: {
|
|
9
9
|
client: {}
|
|
10
10
|
},
|
|
11
11
|
setup(e) {
|
|
12
|
-
const t = e, s =
|
|
12
|
+
const t = e, s = C(() => t.client);
|
|
13
13
|
ne("opendoor-client", s);
|
|
14
14
|
const o = I(te);
|
|
15
15
|
return ne("opendoor-tracking", o), H(
|
|
@@ -20,7 +20,7 @@ const co = /* @__PURE__ */ A({
|
|
|
20
20
|
o.value = a;
|
|
21
21
|
},
|
|
22
22
|
{ immediate: !0 }
|
|
23
|
-
),
|
|
23
|
+
), z(() => {
|
|
24
24
|
o.value !== te && o.value.destroy();
|
|
25
25
|
}), (a, n) => X(a.$slots, "default");
|
|
26
26
|
}
|
|
@@ -41,7 +41,7 @@ function ee(e) {
|
|
|
41
41
|
}
|
|
42
42
|
return s;
|
|
43
43
|
}
|
|
44
|
-
const me = /* @__PURE__ */
|
|
44
|
+
const me = /* @__PURE__ */ q({
|
|
45
45
|
__name: "PoweredByOpendoor",
|
|
46
46
|
setup(e) {
|
|
47
47
|
return (t, s) => (u(), y("div", {
|
|
@@ -67,17 +67,17 @@ const me = /* @__PURE__ */ A({
|
|
|
67
67
|
], -1))
|
|
68
68
|
], 2));
|
|
69
69
|
}
|
|
70
|
-
}), $e = "_attribution_18rgp_8",
|
|
70
|
+
}), $e = "_attribution_18rgp_8", Ce = "_text_18rgp_17", ke = {
|
|
71
71
|
attribution: $e,
|
|
72
|
-
text:
|
|
72
|
+
text: Ce
|
|
73
73
|
}, D = (e, t) => {
|
|
74
74
|
const s = e.__vccOpts || e;
|
|
75
75
|
for (const [o, a] of t)
|
|
76
76
|
s[o] = a;
|
|
77
77
|
return s;
|
|
78
|
-
},
|
|
79
|
-
$style:
|
|
80
|
-
}, we = /* @__PURE__ */ D(me, [["__cssModules",
|
|
78
|
+
}, _e = {
|
|
79
|
+
$style: ke
|
|
80
|
+
}, we = /* @__PURE__ */ D(me, [["__cssModules", _e]]), Ie = ["value", "placeholder", "disabled", "aria-controls", "aria-expanded"], Le = ["disabled", "aria-label"], Ee = ["id", "role", "aria-live"], Me = ["onClick", "onKeydown"], qe = ["for"], Ae = ["id", "value", "disabled"], Se = ["for"], De = ["id", "value", "disabled"], Te = ["for"], Be = ["id", "value", "disabled"], xe = ["for"], Pe = ["id", "value", "disabled"], Fe = ["for"], Ge = ["id", "value", "disabled"], Oe = ["disabled"], je = /* @__PURE__ */ q({
|
|
81
81
|
__name: "AddressEntry",
|
|
82
82
|
props: {
|
|
83
83
|
enableAddressSuggestions: { type: Boolean, default: !0 },
|
|
@@ -93,69 +93,69 @@ const me = /* @__PURE__ */ A({
|
|
|
93
93
|
emits: ["address-select", "ready", "change", "validation-error", "address-suggestions-start", "address-suggestions-complete", "error"],
|
|
94
94
|
setup(e, { emit: t }) {
|
|
95
95
|
let s = 0;
|
|
96
|
-
const o = e, a = t, n = be(), i = `ae-${++s}`,
|
|
96
|
+
const o = e, a = t, n = be(), i = `ae-${++s}`, d = I(""), c = I([]), v = I(!1), g = I(!1), p = I(null), h = I(!1), $ = I(!1), T = I(null), M = I(null), O = I(null), S = I({
|
|
97
97
|
street1: "",
|
|
98
98
|
street2: "",
|
|
99
99
|
city: "",
|
|
100
100
|
state: "",
|
|
101
101
|
postalCode: ""
|
|
102
|
-
}),
|
|
103
|
-
() => v.value && !g.value &&
|
|
102
|
+
}), N = C(() => ee(o.appearance)), Z = C(
|
|
103
|
+
() => v.value && !g.value && d.value.trim().length >= 3 && c.value.length === 0 && !h.value
|
|
104
104
|
);
|
|
105
105
|
let L = null, b = 0;
|
|
106
|
-
H(
|
|
106
|
+
H(d, (f) => {
|
|
107
107
|
if ($.value) return;
|
|
108
108
|
if (a("change", { street1: f }), L && clearTimeout(L), !o.enableAddressSuggestions || f.trim().length < 3) {
|
|
109
|
-
b += 1,
|
|
109
|
+
b += 1, c.value = [], v.value = !1, p.value = null, g.value = !1;
|
|
110
110
|
return;
|
|
111
111
|
}
|
|
112
112
|
g.value = !0, p.value = null;
|
|
113
|
-
const
|
|
113
|
+
const k = f.trim(), _ = ++b;
|
|
114
114
|
L = setTimeout(async () => {
|
|
115
|
-
a("address-suggestions-start",
|
|
115
|
+
a("address-suggestions-start", k);
|
|
116
116
|
try {
|
|
117
|
-
const
|
|
118
|
-
if (
|
|
119
|
-
|
|
120
|
-
} catch (
|
|
121
|
-
if (
|
|
122
|
-
const
|
|
123
|
-
p.value =
|
|
117
|
+
const V = await n.value.getAddressSuggestions(k);
|
|
118
|
+
if (_ !== b) return;
|
|
119
|
+
c.value = V.addresses, v.value = !0, a("address-suggestions-complete", V.addresses);
|
|
120
|
+
} catch (V) {
|
|
121
|
+
if (_ !== b) return;
|
|
122
|
+
const U = V instanceof Error ? V : new Error("Failed to fetch address suggestions");
|
|
123
|
+
p.value = U.message, c.value = [], v.value = !0, a("error", U);
|
|
124
124
|
} finally {
|
|
125
|
-
|
|
125
|
+
_ === b && (g.value = !1);
|
|
126
126
|
}
|
|
127
127
|
}, o.debounceMs);
|
|
128
128
|
});
|
|
129
|
-
function
|
|
130
|
-
const
|
|
131
|
-
return f.street2 && (
|
|
129
|
+
function B(f) {
|
|
130
|
+
const k = [f.street1];
|
|
131
|
+
return f.street2 && (k[0] += ` ${f.street2}`), k.push(`${f.city}, ${f.state} ${f.postalCode}`), k.join(", ");
|
|
132
132
|
}
|
|
133
|
-
async function
|
|
134
|
-
$.value = !0,
|
|
133
|
+
async function x(f) {
|
|
134
|
+
$.value = !0, d.value = B(f), c.value = [], v.value = !1, p.value = null, a("change", f);
|
|
135
135
|
try {
|
|
136
136
|
a("address-select", f);
|
|
137
|
-
} catch (
|
|
138
|
-
const
|
|
139
|
-
p.value =
|
|
137
|
+
} catch (k) {
|
|
138
|
+
const _ = k instanceof Error ? k : new Error("Failed to process address");
|
|
139
|
+
p.value = _.message, a("error", _), d.value = "", $.value = !1;
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function j() {
|
|
143
143
|
h.value = !0, v.value = !1;
|
|
144
144
|
}
|
|
145
|
-
function P(f,
|
|
146
|
-
S.value[f] =
|
|
147
|
-
const
|
|
145
|
+
function P(f, k) {
|
|
146
|
+
S.value[f] = k;
|
|
147
|
+
const _ = S.value;
|
|
148
148
|
a("change", {
|
|
149
|
-
street1:
|
|
150
|
-
...
|
|
151
|
-
city:
|
|
152
|
-
state:
|
|
153
|
-
postalCode:
|
|
149
|
+
street1: _.street1,
|
|
150
|
+
..._.street2 ? { street2: _.street2 } : {},
|
|
151
|
+
city: _.city,
|
|
152
|
+
state: _.state,
|
|
153
|
+
postalCode: _.postalCode
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
156
|
async function Y() {
|
|
157
|
-
const f = S.value.street1.trim(),
|
|
158
|
-
if (!f || !
|
|
157
|
+
const f = S.value.street1.trim(), k = S.value.city.trim(), _ = S.value.state.trim(), V = S.value.postalCode.trim(), U = S.value.street2.trim();
|
|
158
|
+
if (!f || !k || !_ || !V) {
|
|
159
159
|
const K = "Please fill in all required fields";
|
|
160
160
|
p.value = K, a("validation-error", K);
|
|
161
161
|
return;
|
|
@@ -164,10 +164,10 @@ const me = /* @__PURE__ */ A({
|
|
|
164
164
|
try {
|
|
165
165
|
a("address-select", {
|
|
166
166
|
street1: f,
|
|
167
|
-
street2:
|
|
168
|
-
city:
|
|
169
|
-
state:
|
|
170
|
-
postalCode:
|
|
167
|
+
street2: U || void 0,
|
|
168
|
+
city: k,
|
|
169
|
+
state: _,
|
|
170
|
+
postalCode: V
|
|
171
171
|
});
|
|
172
172
|
} catch (K) {
|
|
173
173
|
const ae = K instanceof Error ? K : new Error("Failed to submit address");
|
|
@@ -176,28 +176,28 @@ const me = /* @__PURE__ */ A({
|
|
|
176
176
|
g.value = !1;
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
|
-
function ce() {
|
|
180
|
-
d.value.length > 0 && B(d.value[0]);
|
|
181
|
-
}
|
|
182
179
|
function de() {
|
|
183
|
-
|
|
180
|
+
c.value.length > 0 && x(c.value[0]);
|
|
181
|
+
}
|
|
182
|
+
function ce() {
|
|
183
|
+
c.value.length > 0 && d.value.length > 0 && (v.value = !0);
|
|
184
184
|
}
|
|
185
185
|
function ve(f) {
|
|
186
|
-
const
|
|
187
|
-
|
|
186
|
+
const k = f.target.value;
|
|
187
|
+
d.value = k, $.value = !1;
|
|
188
188
|
}
|
|
189
189
|
function oe(f) {
|
|
190
|
-
|
|
190
|
+
M.value && !M.value.contains(f.target) && O.value && !O.value.contains(f.target) && (v.value = !1);
|
|
191
191
|
}
|
|
192
192
|
return se(() => {
|
|
193
193
|
document.addEventListener("mousedown", oe), a("ready");
|
|
194
|
-
}),
|
|
194
|
+
}), z(() => {
|
|
195
195
|
document.removeEventListener("mousedown", oe), L && clearTimeout(L), b += 1;
|
|
196
|
-
}), (f,
|
|
196
|
+
}), (f, k) => (u(), y("div", {
|
|
197
197
|
ref_key: "containerRef",
|
|
198
198
|
ref: T,
|
|
199
199
|
class: r(f.$style.container),
|
|
200
|
-
style: Q(
|
|
200
|
+
style: Q(N.value)
|
|
201
201
|
}, [
|
|
202
202
|
h.value ? (u(), y("div", {
|
|
203
203
|
key: 1,
|
|
@@ -209,7 +209,7 @@ const me = /* @__PURE__ */ A({
|
|
|
209
209
|
l("label", {
|
|
210
210
|
class: r(f.$style.manualFormLabel),
|
|
211
211
|
for: `${i}-street1`
|
|
212
|
-
}, "Street Address *", 10,
|
|
212
|
+
}, "Street Address *", 10, qe),
|
|
213
213
|
l("input", {
|
|
214
214
|
id: `${i}-street1`,
|
|
215
215
|
class: r(f.$style.manualFormInput),
|
|
@@ -217,8 +217,8 @@ const me = /* @__PURE__ */ A({
|
|
|
217
217
|
value: S.value.street1,
|
|
218
218
|
disabled: e.disabled,
|
|
219
219
|
placeholder: "123 Main St",
|
|
220
|
-
onInput:
|
|
221
|
-
}, null, 42,
|
|
220
|
+
onInput: k[0] || (k[0] = (_) => P("street1", _.target.value))
|
|
221
|
+
}, null, 42, Ae)
|
|
222
222
|
], 2),
|
|
223
223
|
l("div", {
|
|
224
224
|
class: r(f.$style.manualFormField)
|
|
@@ -234,7 +234,7 @@ const me = /* @__PURE__ */ A({
|
|
|
234
234
|
value: S.value.street2,
|
|
235
235
|
disabled: e.disabled,
|
|
236
236
|
placeholder: "Apt 4B",
|
|
237
|
-
onInput:
|
|
237
|
+
onInput: k[1] || (k[1] = (_) => P("street2", _.target.value))
|
|
238
238
|
}, null, 42, De)
|
|
239
239
|
], 2),
|
|
240
240
|
l("div", {
|
|
@@ -251,8 +251,8 @@ const me = /* @__PURE__ */ A({
|
|
|
251
251
|
value: S.value.city,
|
|
252
252
|
disabled: e.disabled,
|
|
253
253
|
placeholder: "Austin",
|
|
254
|
-
onInput:
|
|
255
|
-
}, null, 42,
|
|
254
|
+
onInput: k[2] || (k[2] = (_) => P("city", _.target.value))
|
|
255
|
+
}, null, 42, Be)
|
|
256
256
|
], 2),
|
|
257
257
|
l("div", {
|
|
258
258
|
class: r(f.$style.formRow)
|
|
@@ -263,7 +263,7 @@ const me = /* @__PURE__ */ A({
|
|
|
263
263
|
l("label", {
|
|
264
264
|
class: r(f.$style.manualFormLabel),
|
|
265
265
|
for: `${i}-state`
|
|
266
|
-
}, "State *", 10,
|
|
266
|
+
}, "State *", 10, xe),
|
|
267
267
|
l("input", {
|
|
268
268
|
id: `${i}-state`,
|
|
269
269
|
class: r(f.$style.manualFormInput),
|
|
@@ -272,7 +272,7 @@ const me = /* @__PURE__ */ A({
|
|
|
272
272
|
disabled: e.disabled,
|
|
273
273
|
placeholder: "TX",
|
|
274
274
|
maxlength: "2",
|
|
275
|
-
onInput:
|
|
275
|
+
onInput: k[3] || (k[3] = (_) => P("state", _.target.value))
|
|
276
276
|
}, null, 42, Pe)
|
|
277
277
|
], 2),
|
|
278
278
|
l("div", {
|
|
@@ -290,8 +290,8 @@ const me = /* @__PURE__ */ A({
|
|
|
290
290
|
disabled: e.disabled,
|
|
291
291
|
placeholder: "78701",
|
|
292
292
|
maxlength: "5",
|
|
293
|
-
onInput:
|
|
294
|
-
}, null, 42,
|
|
293
|
+
onInput: k[4] || (k[4] = (_) => P("postalCode", _.target.value))
|
|
294
|
+
}, null, 42, Ge)
|
|
295
295
|
], 2)
|
|
296
296
|
], 2),
|
|
297
297
|
p.value ? (u(), y("div", {
|
|
@@ -307,7 +307,7 @@ const me = /* @__PURE__ */ A({
|
|
|
307
307
|
}, [
|
|
308
308
|
l("span", null, m(e.buttonText), 1),
|
|
309
309
|
X(f.$slots, "button-icon", {}, () => [
|
|
310
|
-
|
|
310
|
+
k[8] || (k[8] = l("svg", {
|
|
311
311
|
width: "20",
|
|
312
312
|
height: "20",
|
|
313
313
|
viewBox: "0 0 24 24",
|
|
@@ -323,7 +323,7 @@ const me = /* @__PURE__ */ A({
|
|
|
323
323
|
})
|
|
324
324
|
], -1))
|
|
325
325
|
])
|
|
326
|
-
], 10,
|
|
326
|
+
], 10, Oe)
|
|
327
327
|
], 2)) : (u(), y("div", {
|
|
328
328
|
key: 0,
|
|
329
329
|
class: r(f.$style.inputSection)
|
|
@@ -333,8 +333,8 @@ const me = /* @__PURE__ */ A({
|
|
|
333
333
|
}, [
|
|
334
334
|
l("input", {
|
|
335
335
|
ref_key: "inputRef",
|
|
336
|
-
ref:
|
|
337
|
-
value:
|
|
336
|
+
ref: O,
|
|
337
|
+
value: d.value,
|
|
338
338
|
class: r(f.$style.input),
|
|
339
339
|
placeholder: e.placeholderText,
|
|
340
340
|
disabled: e.disabled,
|
|
@@ -345,7 +345,7 @@ const me = /* @__PURE__ */ A({
|
|
|
345
345
|
"aria-controls": `${i}-suggestions`,
|
|
346
346
|
"aria-expanded": v.value,
|
|
347
347
|
onInput: ve,
|
|
348
|
-
onFocus:
|
|
348
|
+
onFocus: ce
|
|
349
349
|
}, null, 42, Ie),
|
|
350
350
|
f.$slots["input-icon"] ? (u(), y("div", {
|
|
351
351
|
key: 0,
|
|
@@ -359,9 +359,9 @@ const me = /* @__PURE__ */ A({
|
|
|
359
359
|
disabled: e.disabled,
|
|
360
360
|
"aria-label": e.buttonText,
|
|
361
361
|
type: "button",
|
|
362
|
-
onClick:
|
|
362
|
+
onClick: de
|
|
363
363
|
}, [
|
|
364
|
-
g.value ? (u(), y(
|
|
364
|
+
g.value ? (u(), y(G, { key: 0 }, [
|
|
365
365
|
l("span", null, m(e.buttonText), 1),
|
|
366
366
|
(u(), y("svg", {
|
|
367
367
|
class: r(f.$style.spinner),
|
|
@@ -370,7 +370,7 @@ const me = /* @__PURE__ */ A({
|
|
|
370
370
|
viewBox: "0 0 24 24",
|
|
371
371
|
fill: "none",
|
|
372
372
|
xmlns: "http://www.w3.org/2000/svg"
|
|
373
|
-
}, [...
|
|
373
|
+
}, [...k[5] || (k[5] = [
|
|
374
374
|
l("circle", {
|
|
375
375
|
cx: "12",
|
|
376
376
|
cy: "12",
|
|
@@ -386,10 +386,10 @@ const me = /* @__PURE__ */ A({
|
|
|
386
386
|
"stroke-linecap": "round"
|
|
387
387
|
}, null, -1)
|
|
388
388
|
])], 2))
|
|
389
|
-
], 64)) : (u(), y(
|
|
389
|
+
], 64)) : (u(), y(G, { key: 1 }, [
|
|
390
390
|
l("span", null, m(e.buttonText), 1),
|
|
391
391
|
X(f.$slots, "button-icon", {}, () => [
|
|
392
|
-
|
|
392
|
+
k[6] || (k[6] = l("svg", {
|
|
393
393
|
width: "20",
|
|
394
394
|
height: "20",
|
|
395
395
|
viewBox: "0 0 24 24",
|
|
@@ -411,19 +411,19 @@ const me = /* @__PURE__ */ A({
|
|
|
411
411
|
v.value || p.value ? (u(), y("div", {
|
|
412
412
|
key: 0,
|
|
413
413
|
ref_key: "suggestionsRef",
|
|
414
|
-
ref:
|
|
414
|
+
ref: M,
|
|
415
415
|
class: r([f.$style.suggestions, p.value ? f.$style.errorState : ""]),
|
|
416
416
|
id: `${i}-suggestions`,
|
|
417
417
|
role: p.value ? "alert" : "listbox",
|
|
418
418
|
"aria-live": p.value ? "polite" : void 0
|
|
419
419
|
}, [
|
|
420
|
-
p.value ? (u(), y(
|
|
420
|
+
p.value ? (u(), y(G, { key: 0 }, [
|
|
421
421
|
l("div", {
|
|
422
422
|
class: r(f.$style.error)
|
|
423
423
|
}, [
|
|
424
424
|
l("div", {
|
|
425
425
|
class: r(f.$style.errorIcon)
|
|
426
|
-
}, [...
|
|
426
|
+
}, [...k[7] || (k[7] = [
|
|
427
427
|
l("svg", {
|
|
428
428
|
width: "20",
|
|
429
429
|
height: "20",
|
|
@@ -451,39 +451,39 @@ const me = /* @__PURE__ */ A({
|
|
|
451
451
|
key: 0,
|
|
452
452
|
type: "button",
|
|
453
453
|
class: r(f.$style.manualLink),
|
|
454
|
-
onClick:
|
|
454
|
+
onClick: j
|
|
455
455
|
}, m(e.manualEntryText), 3))
|
|
456
|
-
], 64)) :
|
|
457
|
-
key: `${
|
|
456
|
+
], 64)) : c.value.length > 0 ? (u(!0), y(G, { key: 1 }, W(c.value, (_, V) => (u(), y("div", {
|
|
457
|
+
key: `${_.street1}-${_.city}-${_.postalCode}-${V}`,
|
|
458
458
|
class: r(f.$style.suggestion),
|
|
459
459
|
role: "option",
|
|
460
460
|
"aria-selected": !1,
|
|
461
461
|
tabindex: "0",
|
|
462
|
-
onClick: (
|
|
462
|
+
onClick: (U) => x(_),
|
|
463
463
|
onKeydown: [
|
|
464
|
-
re(le((
|
|
465
|
-
re(le((
|
|
464
|
+
re(le((U) => x(_), ["prevent"]), ["enter"]),
|
|
465
|
+
re(le((U) => x(_), ["prevent"]), ["space"])
|
|
466
466
|
]
|
|
467
|
-
}, m(
|
|
467
|
+
}, m(B(_)), 43, Me))), 128)) : Z.value ? (u(), y("button", {
|
|
468
468
|
key: 2,
|
|
469
469
|
type: "button",
|
|
470
470
|
class: r(f.$style.manualLink),
|
|
471
|
-
onClick:
|
|
471
|
+
onClick: j
|
|
472
472
|
}, m(e.manualEntryText), 3)) : w("", !0)
|
|
473
473
|
], 10, Ee)) : w("", !0)
|
|
474
474
|
], 2)),
|
|
475
|
-
e.showAttribution ? (u(),
|
|
475
|
+
e.showAttribution ? (u(), R(we, { key: 2 })) : w("", !0)
|
|
476
476
|
], 6));
|
|
477
477
|
}
|
|
478
|
-
}),
|
|
479
|
-
container:
|
|
480
|
-
inputSection:
|
|
481
|
-
inputWrapper:
|
|
482
|
-
input:
|
|
478
|
+
}), Ve = "_container_1r0nf_9", Re = "_inputSection_1r0nf_17", Ne = "_inputWrapper_1r0nf_23", Ze = "_input_1r0nf_17", He = "_inputIcon_1r0nf_64", Ue = "_button_1r0nf_81", ze = "_spinner_1r0nf_122", We = "_spin_1r0nf_122", Ke = "_suggestions_1r0nf_137", Je = "_errorState_1r0nf_151", Xe = "_suggestion_1r0nf_137", Qe = "_error_1r0nf_151", Ye = "_errorIcon_1r0nf_200", et = "_errorBorder_1r0nf_214", tt = "_manualLink_1r0nf_224", nt = "_manualForm_1r0nf_246", rt = "_slideIn_1r0nf_1", st = "_manualFormField_1r0nf_261", ot = "_manualFormLabel_1r0nf_265", at = "_manualFormInput_1r0nf_274", lt = "_formRow_1r0nf_295", it = "_submitButton_1r0nf_303", ut = {
|
|
479
|
+
container: Ve,
|
|
480
|
+
inputSection: Re,
|
|
481
|
+
inputWrapper: Ne,
|
|
482
|
+
input: Ze,
|
|
483
483
|
inputIcon: He,
|
|
484
|
-
button:
|
|
485
|
-
spinner:
|
|
486
|
-
spin:
|
|
484
|
+
button: Ue,
|
|
485
|
+
spinner: ze,
|
|
486
|
+
spin: We,
|
|
487
487
|
suggestions: Ke,
|
|
488
488
|
errorState: Je,
|
|
489
489
|
suggestion: Xe,
|
|
@@ -498,14 +498,14 @@ const me = /* @__PURE__ */ A({
|
|
|
498
498
|
manualFormInput: at,
|
|
499
499
|
formRow: lt,
|
|
500
500
|
submitButton: it
|
|
501
|
-
},
|
|
501
|
+
}, dt = {
|
|
502
502
|
$style: ut
|
|
503
|
-
},
|
|
503
|
+
}, po = /* @__PURE__ */ D(je, [["__cssModules", dt]]), ct = "https://api.mapbox.com/geocoding/v5/mapbox.places", vt = "https://api.mapbox.com/styles/v1/mapbox/light-v11/static", pt = "pk.eyJ1Ijoib3BlbmRvb3IiLCJhIjoiWXJ2bTJiRSJ9.lsnjT9yTNyyVzKRIzqxnqg", yt = "https://images.opendoor.com/source/s3/imgdrop-production/2026-02-1771546296495-06570.png?service=partner-sdk";
|
|
504
504
|
function gt(e, t, s) {
|
|
505
505
|
return e.startsWith("http://") || e.startsWith("https://") ? `url-${encodeURIComponent(e)}(${t},${s})` : `${e}(${t},${s})`;
|
|
506
506
|
}
|
|
507
507
|
function ft(e, t) {
|
|
508
|
-
const s = (t == null ? void 0 : t.mapboxAccessToken) ?? pt, o = (t == null ? void 0 : t.mapPinMarker) ?? yt, a = (t == null ? void 0 : t.width) ?? 640, n = (t == null ? void 0 : t.height) ?? 320, i = (t == null ? void 0 : t.zoom) ?? 14,
|
|
508
|
+
const s = (t == null ? void 0 : t.mapboxAccessToken) ?? pt, o = (t == null ? void 0 : t.mapPinMarker) ?? yt, a = (t == null ? void 0 : t.width) ?? 640, n = (t == null ? void 0 : t.height) ?? 320, i = (t == null ? void 0 : t.zoom) ?? 14, d = I(void 0), c = I("loading");
|
|
509
509
|
let v = null;
|
|
510
510
|
return H(
|
|
511
511
|
() => [
|
|
@@ -518,7 +518,7 @@ function ft(e, t) {
|
|
|
518
518
|
var $, T;
|
|
519
519
|
v && v.abort();
|
|
520
520
|
const g = new AbortController();
|
|
521
|
-
v = g,
|
|
521
|
+
v = g, c.value = "loading";
|
|
522
522
|
const p = e.value, h = [
|
|
523
523
|
p.street1,
|
|
524
524
|
p.city,
|
|
@@ -526,31 +526,31 @@ function ft(e, t) {
|
|
|
526
526
|
p.postalCode
|
|
527
527
|
].join(" ");
|
|
528
528
|
try {
|
|
529
|
-
const
|
|
530
|
-
if (!
|
|
531
|
-
g.signal.aborted || (
|
|
529
|
+
const M = `${ct}/${encodeURIComponent(h)}.json?access_token=${s}&limit=1`, O = await fetch(M, { signal: g.signal });
|
|
530
|
+
if (!O.ok) {
|
|
531
|
+
g.signal.aborted || (c.value = "error");
|
|
532
532
|
return;
|
|
533
533
|
}
|
|
534
|
-
const S = await
|
|
534
|
+
const S = await O.json();
|
|
535
535
|
if (g.signal.aborted) return;
|
|
536
|
-
const
|
|
537
|
-
if (!
|
|
538
|
-
|
|
536
|
+
const N = (T = ($ = S.features) == null ? void 0 : $[0]) == null ? void 0 : T.center;
|
|
537
|
+
if (!N) {
|
|
538
|
+
c.value = "error";
|
|
539
539
|
return;
|
|
540
540
|
}
|
|
541
|
-
const [
|
|
542
|
-
|
|
543
|
-
} catch (
|
|
544
|
-
if (
|
|
545
|
-
g.signal.aborted || (
|
|
541
|
+
const [Z, L] = N, b = gt(o, Z, L);
|
|
542
|
+
d.value = `${vt}/${b}/${Z},${L},${i}/${a}x${n}@2x?access_token=${s}&attribution=false&logo=false`, c.value = "loaded";
|
|
543
|
+
} catch (M) {
|
|
544
|
+
if (M instanceof DOMException && M.name === "AbortError") return;
|
|
545
|
+
g.signal.aborted || (c.value = "error");
|
|
546
546
|
}
|
|
547
547
|
},
|
|
548
548
|
{ immediate: !0 }
|
|
549
|
-
),
|
|
549
|
+
), z(() => {
|
|
550
550
|
v && v.abort();
|
|
551
|
-
}), { url:
|
|
551
|
+
}), { url: d, status: c };
|
|
552
552
|
}
|
|
553
|
-
const ht = ["src"], bt = /* @__PURE__ */
|
|
553
|
+
const ht = ["src"], bt = /* @__PURE__ */ q({
|
|
554
554
|
__name: "AddressMap",
|
|
555
555
|
props: {
|
|
556
556
|
address: {},
|
|
@@ -564,11 +564,11 @@ const ht = ["src"], bt = /* @__PURE__ */ A({
|
|
|
564
564
|
},
|
|
565
565
|
emits: ["load", "error"],
|
|
566
566
|
setup(e, { emit: t }) {
|
|
567
|
-
const s = e, o = t, a =
|
|
567
|
+
const s = e, o = t, a = C(() => {
|
|
568
568
|
const v = ee(s.appearance);
|
|
569
569
|
return s.borderRadius && (v["border-radius"] = s.borderRadius), v;
|
|
570
570
|
}), { url: n, status: i } = ft(
|
|
571
|
-
|
|
571
|
+
C(() => s.address),
|
|
572
572
|
{
|
|
573
573
|
mapboxAccessToken: s.mapboxAccessToken,
|
|
574
574
|
mapPinMarker: s.mapPinMarker,
|
|
@@ -576,12 +576,12 @@ const ht = ["src"], bt = /* @__PURE__ */ A({
|
|
|
576
576
|
height: s.height,
|
|
577
577
|
zoom: s.zoom
|
|
578
578
|
}
|
|
579
|
-
),
|
|
579
|
+
), d = I(!1);
|
|
580
580
|
H(i, (v) => {
|
|
581
|
-
v === "loading" && (
|
|
581
|
+
v === "loading" && (d.value = !1), v === "error" && o("error", new Error("Failed to load map for address"));
|
|
582
582
|
});
|
|
583
|
-
function
|
|
584
|
-
|
|
583
|
+
function c() {
|
|
584
|
+
d.value = !0, o("load");
|
|
585
585
|
}
|
|
586
586
|
return (v, g) => (u(), y("div", {
|
|
587
587
|
class: r(v.$style.container),
|
|
@@ -591,18 +591,18 @@ const ht = ["src"], bt = /* @__PURE__ */ A({
|
|
|
591
591
|
key: 0,
|
|
592
592
|
src: E(n),
|
|
593
593
|
alt: "Map",
|
|
594
|
-
class: r([v.$style.mapImage,
|
|
595
|
-
onLoad:
|
|
594
|
+
class: r([v.$style.mapImage, d.value ? v.$style.mapImageLoaded : ""]),
|
|
595
|
+
onLoad: c
|
|
596
596
|
}, null, 42, ht)) : w("", !0)
|
|
597
597
|
], 6));
|
|
598
598
|
}
|
|
599
|
-
}), mt = "_container_iumdj_4", $t = "_mapImage_iumdj_14",
|
|
599
|
+
}), mt = "_container_iumdj_4", $t = "_mapImage_iumdj_14", Ct = "_mapImageLoaded_iumdj_23", kt = {
|
|
600
600
|
container: mt,
|
|
601
601
|
mapImage: $t,
|
|
602
|
-
mapImageLoaded:
|
|
603
|
-
},
|
|
604
|
-
$style:
|
|
605
|
-
},
|
|
602
|
+
mapImageLoaded: Ct
|
|
603
|
+
}, _t = {
|
|
604
|
+
$style: kt
|
|
605
|
+
}, yo = /* @__PURE__ */ D(bt, [["__cssModules", _t]]), wt = ["disabled", "aria-invalid", "aria-describedby"], It = ["checked"], Lt = /* @__PURE__ */ q({
|
|
606
606
|
__name: "AddressUnitConfirmation",
|
|
607
607
|
props: {
|
|
608
608
|
address: {},
|
|
@@ -610,7 +610,7 @@ const ht = ["src"], bt = /* @__PURE__ */ A({
|
|
|
610
610
|
},
|
|
611
611
|
emits: ["confirm", "edit", "ready", "error"],
|
|
612
612
|
setup(e, { emit: t }) {
|
|
613
|
-
const s = e, o = t, a = I(""), n = I(!1), i = I(null),
|
|
613
|
+
const s = e, o = t, a = I(""), n = I(!1), i = I(null), d = C(() => ee(s.appearance)), c = C(() => {
|
|
614
614
|
const h = s.address;
|
|
615
615
|
return `${h.street1 + (h.street2 ? ` ${h.street2}` : "")}, ${h.city}, ${h.state} ${h.postalCode}`;
|
|
616
616
|
});
|
|
@@ -636,7 +636,7 @@ const ht = ["src"], bt = /* @__PURE__ */ A({
|
|
|
636
636
|
o("ready");
|
|
637
637
|
}), (h, $) => (u(), y("div", {
|
|
638
638
|
class: r(h.$style.container),
|
|
639
|
-
style: Q(
|
|
639
|
+
style: Q(d.value)
|
|
640
640
|
}, [
|
|
641
641
|
l("h2", {
|
|
642
642
|
class: r(h.$style.title)
|
|
@@ -646,7 +646,7 @@ const ht = ["src"], bt = /* @__PURE__ */ A({
|
|
|
646
646
|
}, [
|
|
647
647
|
l("span", {
|
|
648
648
|
class: r(h.$style.addressText)
|
|
649
|
-
}, m(
|
|
649
|
+
}, m(c.value), 3),
|
|
650
650
|
l("button", {
|
|
651
651
|
class: r(h.$style.editLink),
|
|
652
652
|
type: "button",
|
|
@@ -705,50 +705,50 @@ const ht = ["src"], bt = /* @__PURE__ */ A({
|
|
|
705
705
|
], 2)
|
|
706
706
|
], 6));
|
|
707
707
|
}
|
|
708
|
-
}), Et = "_container_1hik1_4",
|
|
708
|
+
}), Et = "_container_1hik1_4", Mt = "_title_1hik1_8", qt = "_addressCard_1hik1_17", At = "_addressText_1hik1_27", St = "_editLink_1hik1_35", Dt = "_fieldGroup_1hik1_48", Tt = "_fieldLabel_1hik1_52", Bt = "_input_1hik1_61", xt = "_checkboxRow_1hik1_85", Pt = "_checkbox_1hik1_85", Ft = "_checkboxLabel_1hik1_102", Gt = "_error_1hik1_109", Ot = "_actions_1hik1_116", jt = "_confirmButton_1hik1_121", Vt = {
|
|
709
709
|
container: Et,
|
|
710
|
-
title:
|
|
711
|
-
addressCard:
|
|
712
|
-
addressText:
|
|
710
|
+
title: Mt,
|
|
711
|
+
addressCard: qt,
|
|
712
|
+
addressText: At,
|
|
713
713
|
editLink: St,
|
|
714
714
|
fieldGroup: Dt,
|
|
715
715
|
fieldLabel: Tt,
|
|
716
|
-
input:
|
|
717
|
-
checkboxRow:
|
|
716
|
+
input: Bt,
|
|
717
|
+
checkboxRow: xt,
|
|
718
718
|
checkbox: Pt,
|
|
719
719
|
checkboxLabel: Ft,
|
|
720
|
-
error:
|
|
721
|
-
actions:
|
|
722
|
-
confirmButton:
|
|
723
|
-
},
|
|
724
|
-
$style:
|
|
725
|
-
},
|
|
720
|
+
error: Gt,
|
|
721
|
+
actions: Ot,
|
|
722
|
+
confirmButton: jt
|
|
723
|
+
}, Rt = {
|
|
724
|
+
$style: Vt
|
|
725
|
+
}, go = /* @__PURE__ */ D(Lt, [["__cssModules", Rt]]);
|
|
726
726
|
function ue(e, t, s, o, a, n) {
|
|
727
727
|
const i = [
|
|
728
|
-
e.on("answerChange", (
|
|
729
|
-
var
|
|
730
|
-
t.value = e.answers, a.value = [...e.visiblePages],
|
|
728
|
+
e.on("answerChange", (d) => {
|
|
729
|
+
var c;
|
|
730
|
+
t.value = e.answers, a.value = [...e.visiblePages], d.type === "answerChange" && ((c = n.onAnswerChange) == null || c.call(n, d.key, d.value));
|
|
731
731
|
}),
|
|
732
|
-
e.on("pageChange", (
|
|
733
|
-
var
|
|
734
|
-
|
|
732
|
+
e.on("pageChange", (d) => {
|
|
733
|
+
var c;
|
|
734
|
+
d.type === "pageChange" && (s.value = d.pageId, a.value = [...e.visiblePages], o.value = {}, (c = n.onPageChange) == null || c.call(n, d.pageIndex, d.pageId));
|
|
735
735
|
}),
|
|
736
|
-
e.on("validationError", (
|
|
737
|
-
|
|
736
|
+
e.on("validationError", (d) => {
|
|
737
|
+
d.type === "validationError" && (o.value = d.errors);
|
|
738
738
|
}),
|
|
739
|
-
e.on("submit", (
|
|
740
|
-
|
|
739
|
+
e.on("submit", (d) => {
|
|
740
|
+
d.type === "submit" && n.onSubmit(d.answers);
|
|
741
741
|
})
|
|
742
742
|
];
|
|
743
|
-
return () => i.forEach((
|
|
743
|
+
return () => i.forEach((d) => d());
|
|
744
744
|
}
|
|
745
|
-
function
|
|
746
|
-
var
|
|
745
|
+
function Nt(e) {
|
|
746
|
+
var N, Z;
|
|
747
747
|
let t = ie({
|
|
748
748
|
market: e.getMarket(),
|
|
749
749
|
initialAnswers: e.getInitialAnswers()
|
|
750
750
|
});
|
|
751
|
-
const s = I(t.answers), o = I(((
|
|
751
|
+
const s = I(t.answers), o = I(((N = t.currentPage) == null ? void 0 : N.id) ?? ""), a = I({}), n = I(t.visiblePages);
|
|
752
752
|
let i = ue(
|
|
753
753
|
t,
|
|
754
754
|
s,
|
|
@@ -757,7 +757,7 @@ function Vt(e) {
|
|
|
757
757
|
n,
|
|
758
758
|
e
|
|
759
759
|
);
|
|
760
|
-
(
|
|
760
|
+
(Z = e.onReady) == null || Z.call(e), H(e.getMarket, (L) => {
|
|
761
761
|
var b;
|
|
762
762
|
i(), t.destroy(), t = ie({
|
|
763
763
|
market: L,
|
|
@@ -771,30 +771,30 @@ function Vt(e) {
|
|
|
771
771
|
e
|
|
772
772
|
);
|
|
773
773
|
});
|
|
774
|
-
let
|
|
774
|
+
let d = e.getInitialAnswers();
|
|
775
775
|
H(e.getInitialAnswers, (L) => {
|
|
776
|
-
L && L !==
|
|
776
|
+
L && L !== d && (d = L, t.setAnswers(L));
|
|
777
777
|
});
|
|
778
|
-
const
|
|
778
|
+
const c = C(() => {
|
|
779
779
|
const L = n.value.findIndex(
|
|
780
780
|
(b) => b.id === o.value
|
|
781
781
|
);
|
|
782
782
|
return L >= 0 ? L : 0;
|
|
783
|
-
}), v =
|
|
784
|
-
() => n.value[
|
|
785
|
-
), g =
|
|
783
|
+
}), v = C(
|
|
784
|
+
() => n.value[c.value]
|
|
785
|
+
), g = C(() => o.value ? (s.value, t.getVisibleQuestionsForCurrentPage()) : []), p = C(() => n.value.length <= 1 ? 0 : Math.min(
|
|
786
786
|
1,
|
|
787
|
-
Math.max(0,
|
|
788
|
-
)), h =
|
|
789
|
-
() => n.value.length > 0 &&
|
|
787
|
+
Math.max(0, c.value / (n.value.length - 1))
|
|
788
|
+
)), h = C(() => c.value === 0), $ = C(
|
|
789
|
+
() => n.value.length > 0 && c.value === n.value.length - 1
|
|
790
790
|
);
|
|
791
791
|
function T(L, b) {
|
|
792
792
|
t.setAnswer(L, b);
|
|
793
793
|
}
|
|
794
|
-
function
|
|
794
|
+
function M(L) {
|
|
795
795
|
return s.value[L];
|
|
796
796
|
}
|
|
797
|
-
function
|
|
797
|
+
function O() {
|
|
798
798
|
var b;
|
|
799
799
|
const L = t.goToNext();
|
|
800
800
|
if (!L.valid)
|
|
@@ -805,19 +805,19 @@ function Vt(e) {
|
|
|
805
805
|
`Validation failed: ${Object.values(L.errors).join(", ")}`
|
|
806
806
|
)
|
|
807
807
|
);
|
|
808
|
-
} catch (
|
|
809
|
-
console.error("[DtcOnboardingFlow] onError callback threw:",
|
|
808
|
+
} catch (B) {
|
|
809
|
+
console.error("[DtcOnboardingFlow] onError callback threw:", B);
|
|
810
810
|
}
|
|
811
811
|
}
|
|
812
812
|
function S() {
|
|
813
813
|
t.goToPrev();
|
|
814
814
|
}
|
|
815
|
-
return
|
|
815
|
+
return z(() => {
|
|
816
816
|
i(), t.destroy();
|
|
817
817
|
}), {
|
|
818
818
|
engine: t,
|
|
819
819
|
currentPage: v,
|
|
820
|
-
currentPageIndex:
|
|
820
|
+
currentPageIndex: c,
|
|
821
821
|
visiblePages: n,
|
|
822
822
|
visibleQuestions: g,
|
|
823
823
|
answers: s,
|
|
@@ -826,12 +826,12 @@ function Vt(e) {
|
|
|
826
826
|
isFirstPage: h,
|
|
827
827
|
isLastPage: $,
|
|
828
828
|
setAnswer: T,
|
|
829
|
-
getAnswer:
|
|
830
|
-
goToNext:
|
|
829
|
+
getAnswer: M,
|
|
830
|
+
goToNext: O,
|
|
831
831
|
goToPrev: S
|
|
832
832
|
};
|
|
833
833
|
}
|
|
834
|
-
const
|
|
834
|
+
const Zt = /* @__PURE__ */ q({
|
|
835
835
|
__name: "DtcProvider",
|
|
836
836
|
props: {
|
|
837
837
|
market: {},
|
|
@@ -843,7 +843,7 @@ const Ut = /* @__PURE__ */ A({
|
|
|
843
843
|
onError: { type: Function }
|
|
844
844
|
},
|
|
845
845
|
setup(e) {
|
|
846
|
-
const t = e, s =
|
|
846
|
+
const t = e, s = Nt({
|
|
847
847
|
getMarket: () => t.market,
|
|
848
848
|
getInitialAnswers: () => t.initialAnswers,
|
|
849
849
|
onSubmit: (o) => t.onSubmit(o),
|
|
@@ -866,7 +866,7 @@ const Ut = /* @__PURE__ */ A({
|
|
|
866
866
|
});
|
|
867
867
|
return ne("dtc-onboarding", s), (o, a) => X(o.$slots, "default");
|
|
868
868
|
}
|
|
869
|
-
}), Ht = ["src"],
|
|
869
|
+
}), Ht = ["src"], Ut = /* @__PURE__ */ q({
|
|
870
870
|
__name: "DtcHeader",
|
|
871
871
|
props: {
|
|
872
872
|
partnerLogoUrl: {},
|
|
@@ -887,9 +887,21 @@ const Ut = /* @__PURE__ */ A({
|
|
|
887
887
|
alt: "Partner",
|
|
888
888
|
class: r(o.$style.headerPartnerLogo)
|
|
889
889
|
}, null, 10, Ht)) : w("", !0),
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
890
|
+
(u(), y("svg", {
|
|
891
|
+
width: "90",
|
|
892
|
+
height: "18",
|
|
893
|
+
viewBox: "0 0 112.574 24.0002",
|
|
894
|
+
fill: "none",
|
|
895
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
896
|
+
"aria-label": "Opendoor",
|
|
897
|
+
role: "img",
|
|
898
|
+
class: r(o.$style.headerOpendoorLogo)
|
|
899
|
+
}, [...a[1] || (a[1] = [
|
|
900
|
+
l("path", {
|
|
901
|
+
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",
|
|
902
|
+
fill: "#235ca3"
|
|
903
|
+
}, null, -1)
|
|
904
|
+
])], 2))
|
|
893
905
|
], 2),
|
|
894
906
|
e.showCloseButton ? (u(), y("button", {
|
|
895
907
|
key: 0,
|
|
@@ -897,7 +909,7 @@ const Ut = /* @__PURE__ */ A({
|
|
|
897
909
|
class: r(o.$style.headerCloseButton),
|
|
898
910
|
"aria-label": "Close",
|
|
899
911
|
onClick: a[0] || (a[0] = (n) => s("close"))
|
|
900
|
-
}, [...a[
|
|
912
|
+
}, [...a[2] || (a[2] = [
|
|
901
913
|
l("svg", {
|
|
902
914
|
width: "24",
|
|
903
915
|
height: "24",
|
|
@@ -924,15 +936,15 @@ const Ut = /* @__PURE__ */ A({
|
|
|
924
936
|
])], 2)) : w("", !0)
|
|
925
937
|
], 2));
|
|
926
938
|
}
|
|
927
|
-
}),
|
|
928
|
-
header:
|
|
929
|
-
headerLogos:
|
|
939
|
+
}), zt = "_header_uo1uz_2", Wt = "_headerLogos_uo1uz_12", Kt = "_headerPartnerLogo_uo1uz_18", Jt = "_headerOpendoorLogo_uo1uz_24", Xt = "_headerCloseButton_uo1uz_28", Qt = {
|
|
940
|
+
header: zt,
|
|
941
|
+
headerLogos: Wt,
|
|
930
942
|
headerPartnerLogo: Kt,
|
|
931
|
-
|
|
943
|
+
headerOpendoorLogo: Jt,
|
|
932
944
|
headerCloseButton: Xt
|
|
933
945
|
}, Yt = {
|
|
934
946
|
$style: Qt
|
|
935
|
-
}, en = /* @__PURE__ */ D(
|
|
947
|
+
}, en = /* @__PURE__ */ D(Ut, [["__cssModules", Yt]]), tn = ["aria-label"], nn = ["aria-checked", "tabindex", "onClick", "onKeydown"], rn = /* @__PURE__ */ q({
|
|
936
948
|
__name: "RadioCardInput",
|
|
937
949
|
props: {
|
|
938
950
|
question: {}
|
|
@@ -940,20 +952,20 @@ const Ut = /* @__PURE__ */ A({
|
|
|
940
952
|
setup(e) {
|
|
941
953
|
const t = F("dtc-onboarding");
|
|
942
954
|
let s = null;
|
|
943
|
-
|
|
955
|
+
z(() => {
|
|
944
956
|
s && clearTimeout(s);
|
|
945
957
|
});
|
|
946
958
|
function o(n, i) {
|
|
947
959
|
t.setAnswer(n.key, i), n.autoAdvance && (s && clearTimeout(s), s = setTimeout(() => t.goToNext(), 150));
|
|
948
960
|
}
|
|
949
|
-
function a(n, i,
|
|
961
|
+
function a(n, i, d) {
|
|
950
962
|
var g, p;
|
|
951
|
-
const
|
|
952
|
-
if (!
|
|
963
|
+
const c = d.options;
|
|
964
|
+
if (!c) return;
|
|
953
965
|
let v = null;
|
|
954
|
-
if (n.key === "ArrowDown" || n.key === "ArrowRight" ? (n.preventDefault(), v = (i + 1) %
|
|
966
|
+
if (n.key === "ArrowDown" || n.key === "ArrowRight" ? (n.preventDefault(), v = (i + 1) % c.length) : (n.key === "ArrowUp" || n.key === "ArrowLeft") && (n.preventDefault(), v = (i - 1 + c.length) % c.length), v !== null) {
|
|
955
967
|
const h = (g = n.currentTarget.closest('[role="radiogroup"]')) == null ? void 0 : g.querySelectorAll('[role="radio"]');
|
|
956
|
-
(p = h == null ? void 0 : h[v]) == null || p.focus(), o(
|
|
968
|
+
(p = h == null ? void 0 : h[v]) == null || p.focus(), o(d, c[v].value);
|
|
957
969
|
}
|
|
958
970
|
}
|
|
959
971
|
return (n, i) => (u(), y("div", {
|
|
@@ -961,26 +973,26 @@ const Ut = /* @__PURE__ */ A({
|
|
|
961
973
|
role: "radiogroup",
|
|
962
974
|
"aria-label": e.question.label
|
|
963
975
|
}, [
|
|
964
|
-
(u(!0), y(
|
|
965
|
-
key: String(
|
|
976
|
+
(u(!0), y(G, null, W(e.question.options, (d, c) => (u(), y("button", {
|
|
977
|
+
key: String(d.value),
|
|
966
978
|
type: "button",
|
|
967
979
|
role: "radio",
|
|
968
|
-
"aria-checked": E(t).getAnswer(e.question.key) ===
|
|
969
|
-
tabindex: E(t).getAnswer(e.question.key) ===
|
|
980
|
+
"aria-checked": E(t).getAnswer(e.question.key) === d.value,
|
|
981
|
+
tabindex: E(t).getAnswer(e.question.key) === d.value || c === 0 && E(t).getAnswer(e.question.key) === void 0 ? 0 : -1,
|
|
970
982
|
class: r([
|
|
971
983
|
n.$style.radioCard,
|
|
972
|
-
E(t).getAnswer(e.question.key) ===
|
|
984
|
+
E(t).getAnswer(e.question.key) === d.value ? n.$style.radioCardSelected : ""
|
|
973
985
|
]),
|
|
974
|
-
onClick: (v) => o(e.question,
|
|
975
|
-
onKeydown: (v) => a(v,
|
|
986
|
+
onClick: (v) => o(e.question, d.value),
|
|
987
|
+
onKeydown: (v) => a(v, c, e.question)
|
|
976
988
|
}, [
|
|
977
989
|
l("span", {
|
|
978
990
|
class: r(n.$style.radioCardLabel)
|
|
979
|
-
}, m(
|
|
980
|
-
|
|
991
|
+
}, m(d.label), 3),
|
|
992
|
+
d.description ? (u(), y("span", {
|
|
981
993
|
key: 0,
|
|
982
994
|
class: r(n.$style.radioCardDescription)
|
|
983
|
-
}, m(
|
|
995
|
+
}, m(d.description), 3)) : w("", !0)
|
|
984
996
|
], 42, nn))), 128)),
|
|
985
997
|
E(t).validationErrors.value[e.question.key] ? (u(), y("p", {
|
|
986
998
|
key: 0,
|
|
@@ -989,45 +1001,45 @@ const Ut = /* @__PURE__ */ A({
|
|
|
989
1001
|
}, m(E(t).validationErrors.value[e.question.key]), 3)) : w("", !0)
|
|
990
1002
|
], 10, tn));
|
|
991
1003
|
}
|
|
992
|
-
}), sn = "_radioCardGroup_11rwj_2", on = "_radioCard_11rwj_2", an = "_radioCardSelected_11rwj_34", ln = "_radioCardLabel_11rwj_39", un = "_radioCardDescription_11rwj_45",
|
|
1004
|
+
}), sn = "_radioCardGroup_11rwj_2", on = "_radioCard_11rwj_2", an = "_radioCardSelected_11rwj_34", ln = "_radioCardLabel_11rwj_39", un = "_radioCardDescription_11rwj_45", dn = "_fieldError_11rwj_50", cn = {
|
|
993
1005
|
radioCardGroup: sn,
|
|
994
1006
|
radioCard: on,
|
|
995
1007
|
radioCardSelected: an,
|
|
996
1008
|
radioCardLabel: ln,
|
|
997
1009
|
radioCardDescription: un,
|
|
998
|
-
fieldError:
|
|
1010
|
+
fieldError: dn
|
|
999
1011
|
}, vn = {
|
|
1000
|
-
$style:
|
|
1012
|
+
$style: cn
|
|
1001
1013
|
}, pn = /* @__PURE__ */ D(rn, [["__cssModules", vn]]), yn = "https://images.opendoor.com/source/s3/imgdrop-production", gn = "service=reception-fe&dpr=2&fit=scale-down";
|
|
1002
|
-
function
|
|
1014
|
+
function A(e, t = "3:2-sm") {
|
|
1003
1015
|
return `${yn}/${e}?${gn}&preset=${t}`;
|
|
1004
1016
|
}
|
|
1005
1017
|
const fn = {
|
|
1006
1018
|
// Kitchen
|
|
1007
|
-
"kitchen-fixer_upper":
|
|
1008
|
-
"kitchen-dated":
|
|
1009
|
-
"kitchen-standard":
|
|
1010
|
-
"kitchen-high_end":
|
|
1011
|
-
"kitchen-luxury":
|
|
1019
|
+
"kitchen-fixer_upper": A("2023-04-1681772974083-61414.png"),
|
|
1020
|
+
"kitchen-dated": A("2023-04-1681772974089-39460.png"),
|
|
1021
|
+
"kitchen-standard": A("2023-04-1681772974093-51260.png"),
|
|
1022
|
+
"kitchen-high_end": A("2023-04-1682444345875-57331.jpeg", "3:2-xl"),
|
|
1023
|
+
"kitchen-luxury": A("2023-04-1682444629335-69661.jpeg", "3:2-xl"),
|
|
1012
1024
|
// Bathroom
|
|
1013
|
-
"bathroom-fixer_upper":
|
|
1014
|
-
"bathroom-dated":
|
|
1015
|
-
"bathroom-standard":
|
|
1016
|
-
"bathroom-high_end":
|
|
1017
|
-
"bathroom-luxury":
|
|
1025
|
+
"bathroom-fixer_upper": A("2023-04-1682103091299-33543.jpeg"),
|
|
1026
|
+
"bathroom-dated": A("2023-04-1681773104207-98555.png"),
|
|
1027
|
+
"bathroom-standard": A("2023-04-1682103088251-79730.jpeg", "3:2-xl"),
|
|
1028
|
+
"bathroom-high_end": A("2023-04-1681773104214-77488.png"),
|
|
1029
|
+
"bathroom-luxury": A("2023-04-1681773104217-27390.png"),
|
|
1018
1030
|
// Living Room
|
|
1019
|
-
"living-room-fixer_upper":
|
|
1020
|
-
"living-room-dated":
|
|
1021
|
-
"living-room-standard":
|
|
1022
|
-
"living-room-high_end":
|
|
1023
|
-
"living-room-luxury":
|
|
1031
|
+
"living-room-fixer_upper": A("2023-04-1681773170815-60328.png"),
|
|
1032
|
+
"living-room-dated": A("2023-04-1681773170823-03451.png"),
|
|
1033
|
+
"living-room-standard": A("2023-04-1681773170826-47471.png"),
|
|
1034
|
+
"living-room-high_end": A("2023-04-1681773170828-76415.png"),
|
|
1035
|
+
"living-room-luxury": A("2023-04-1681773170832-20699.png"),
|
|
1024
1036
|
// Exterior
|
|
1025
|
-
"exterior-fixer_upper":
|
|
1026
|
-
"exterior-dated":
|
|
1027
|
-
"exterior-standard":
|
|
1028
|
-
"exterior-high_end":
|
|
1029
|
-
"exterior-luxury":
|
|
1030
|
-
}, hn = ["aria-label"], bn = ["aria-checked", "onClick"], mn = ["src", "alt"], $n = /* @__PURE__ */
|
|
1037
|
+
"exterior-fixer_upper": A("2023-04-1681773220493-46489.png"),
|
|
1038
|
+
"exterior-dated": A("2023-04-1681773220495-22229.png"),
|
|
1039
|
+
"exterior-standard": A("2023-04-1681773220498-64940.png"),
|
|
1040
|
+
"exterior-high_end": A("2023-04-1682103085417-24272.jpeg", "3:2-md"),
|
|
1041
|
+
"exterior-luxury": A("2023-04-1681773220487-59852.png")
|
|
1042
|
+
}, hn = ["aria-label"], bn = ["aria-checked", "onClick"], mn = ["src", "alt"], $n = /* @__PURE__ */ q({
|
|
1031
1043
|
__name: "ImageCardInput",
|
|
1032
1044
|
props: {
|
|
1033
1045
|
question: {}
|
|
@@ -1035,7 +1047,7 @@ const fn = {
|
|
|
1035
1047
|
setup(e) {
|
|
1036
1048
|
const t = F("dtc-onboarding");
|
|
1037
1049
|
let s = null;
|
|
1038
|
-
|
|
1050
|
+
z(() => {
|
|
1039
1051
|
s && clearTimeout(s);
|
|
1040
1052
|
});
|
|
1041
1053
|
function o(n, i) {
|
|
@@ -1049,31 +1061,31 @@ const fn = {
|
|
|
1049
1061
|
role: "radiogroup",
|
|
1050
1062
|
"aria-label": e.question.label
|
|
1051
1063
|
}, [
|
|
1052
|
-
(u(!0), y(
|
|
1053
|
-
key: String(
|
|
1064
|
+
(u(!0), y(G, null, W(e.question.options, (d) => (u(), y("button", {
|
|
1065
|
+
key: String(d.value),
|
|
1054
1066
|
type: "button",
|
|
1055
1067
|
role: "radio",
|
|
1056
|
-
"aria-checked": E(t).getAnswer(e.question.key) ===
|
|
1068
|
+
"aria-checked": E(t).getAnswer(e.question.key) === d.value,
|
|
1057
1069
|
class: r([
|
|
1058
1070
|
n.$style.imageCard,
|
|
1059
|
-
E(t).getAnswer(e.question.key) ===
|
|
1071
|
+
E(t).getAnswer(e.question.key) === d.value ? n.$style.imageCardSelected : ""
|
|
1060
1072
|
]),
|
|
1061
|
-
onClick: (
|
|
1073
|
+
onClick: (c) => o(e.question, d.value)
|
|
1062
1074
|
}, [
|
|
1063
|
-
a(
|
|
1075
|
+
a(d.imageId) ? (u(), y("img", {
|
|
1064
1076
|
key: 0,
|
|
1065
|
-
src: a(
|
|
1066
|
-
alt:
|
|
1077
|
+
src: a(d.imageId),
|
|
1078
|
+
alt: d.label,
|
|
1067
1079
|
class: r(n.$style.imageCardPhoto),
|
|
1068
1080
|
loading: "lazy"
|
|
1069
1081
|
}, null, 10, mn)) : w("", !0),
|
|
1070
1082
|
l("span", {
|
|
1071
1083
|
class: r(n.$style.imageCardLabel)
|
|
1072
|
-
}, m(
|
|
1073
|
-
|
|
1084
|
+
}, m(d.label), 3),
|
|
1085
|
+
d.description ? (u(), y("span", {
|
|
1074
1086
|
key: 1,
|
|
1075
1087
|
class: r(n.$style.imageCardDescription)
|
|
1076
|
-
}, m(
|
|
1088
|
+
}, m(d.description), 3)) : w("", !0)
|
|
1077
1089
|
], 10, bn))), 128)),
|
|
1078
1090
|
E(t).validationErrors.value[e.question.key] ? (u(), y("p", {
|
|
1079
1091
|
key: 0,
|
|
@@ -1082,86 +1094,86 @@ const fn = {
|
|
|
1082
1094
|
}, m(E(t).validationErrors.value[e.question.key]), 3)) : w("", !0)
|
|
1083
1095
|
], 10, hn));
|
|
1084
1096
|
}
|
|
1085
|
-
}),
|
|
1086
|
-
imageCardGroup:
|
|
1087
|
-
imageCard:
|
|
1088
|
-
imageCardSelected:
|
|
1097
|
+
}), Cn = "_imageCardGroup_1vc6c_2", kn = "_imageCard_1vc6c_2", _n = "_imageCardSelected_1vc6c_34", wn = "_imageCardPhoto_1vc6c_39", In = "_imageCardLabel_1vc6c_46", Ln = "_imageCardDescription_1vc6c_53", En = "_fieldError_1vc6c_60", Mn = {
|
|
1098
|
+
imageCardGroup: Cn,
|
|
1099
|
+
imageCard: kn,
|
|
1100
|
+
imageCardSelected: _n,
|
|
1089
1101
|
imageCardPhoto: wn,
|
|
1090
1102
|
imageCardLabel: In,
|
|
1091
1103
|
imageCardDescription: Ln,
|
|
1092
1104
|
fieldError: En
|
|
1093
|
-
},
|
|
1094
|
-
$style:
|
|
1095
|
-
},
|
|
1105
|
+
}, qn = {
|
|
1106
|
+
$style: Mn
|
|
1107
|
+
}, An = /* @__PURE__ */ D($n, [["__cssModules", qn]]), Sn = ["aria-label"], Dn = ["aria-checked", "onClick"], Tn = {
|
|
1096
1108
|
key: 0,
|
|
1097
1109
|
width: "12",
|
|
1098
1110
|
height: "12",
|
|
1099
1111
|
viewBox: "0 0 12 12",
|
|
1100
1112
|
fill: "none"
|
|
1101
|
-
},
|
|
1113
|
+
}, Bn = /* @__PURE__ */ q({
|
|
1102
1114
|
__name: "CheckboxCardInput",
|
|
1103
1115
|
props: {
|
|
1104
1116
|
question: {}
|
|
1105
1117
|
},
|
|
1106
1118
|
setup(e) {
|
|
1107
|
-
const t = e, s = F("dtc-onboarding"), o =
|
|
1119
|
+
const t = e, s = F("dtc-onboarding"), o = C(
|
|
1108
1120
|
() => s.getAnswer(t.question.key) ?? []
|
|
1109
|
-
), a =
|
|
1121
|
+
), a = C(
|
|
1110
1122
|
() => s.validationErrors.value[t.question.key]
|
|
1111
1123
|
);
|
|
1112
1124
|
function n(i) {
|
|
1113
1125
|
var v;
|
|
1114
|
-
const
|
|
1115
|
-
if (
|
|
1126
|
+
const d = (v = t.question.options) == null ? void 0 : v.find((g) => g.value === i);
|
|
1127
|
+
if (d != null && d.exclusive) {
|
|
1116
1128
|
s.setAnswer(t.question.key, [i]);
|
|
1117
1129
|
return;
|
|
1118
1130
|
}
|
|
1119
|
-
const
|
|
1131
|
+
const c = o.value.filter(
|
|
1120
1132
|
(g) => {
|
|
1121
1133
|
var p, h;
|
|
1122
1134
|
return !((h = (p = t.question.options) == null ? void 0 : p.find(($) => $.value === g)) != null && h.exclusive);
|
|
1123
1135
|
}
|
|
1124
1136
|
);
|
|
1125
|
-
if (
|
|
1126
|
-
const g =
|
|
1137
|
+
if (c.includes(i)) {
|
|
1138
|
+
const g = c.filter((p) => p !== i);
|
|
1127
1139
|
s.setAnswer(t.question.key, g.length > 0 ? g : void 0);
|
|
1128
1140
|
} else
|
|
1129
|
-
s.setAnswer(t.question.key, [...
|
|
1141
|
+
s.setAnswer(t.question.key, [...c, i]);
|
|
1130
1142
|
}
|
|
1131
|
-
return (i,
|
|
1143
|
+
return (i, d) => (u(), y("div", {
|
|
1132
1144
|
class: r(i.$style.checkboxCardGroup),
|
|
1133
1145
|
role: "group",
|
|
1134
1146
|
"aria-label": e.question.label
|
|
1135
1147
|
}, [
|
|
1136
|
-
(u(!0), y(
|
|
1137
|
-
key: String(
|
|
1148
|
+
(u(!0), y(G, null, W(e.question.options, (c) => (u(), y("button", {
|
|
1149
|
+
key: String(c.value),
|
|
1138
1150
|
type: "button",
|
|
1139
1151
|
role: "checkbox",
|
|
1140
|
-
"aria-checked": o.value.includes(String(
|
|
1152
|
+
"aria-checked": o.value.includes(String(c.value)),
|
|
1141
1153
|
class: r([
|
|
1142
1154
|
i.$style.checkboxCard,
|
|
1143
|
-
o.value.includes(String(
|
|
1155
|
+
o.value.includes(String(c.value)) ? i.$style.checkboxCardSelected : ""
|
|
1144
1156
|
]),
|
|
1145
|
-
onClick: (v) => n(String(
|
|
1157
|
+
onClick: (v) => n(String(c.value))
|
|
1146
1158
|
}, [
|
|
1147
1159
|
l("span", {
|
|
1148
1160
|
class: r(i.$style.checkboxCardContent)
|
|
1149
1161
|
}, [
|
|
1150
1162
|
l("span", {
|
|
1151
1163
|
class: r(i.$style.checkboxCardLabel)
|
|
1152
|
-
}, m(
|
|
1153
|
-
|
|
1164
|
+
}, m(c.label), 3),
|
|
1165
|
+
c.helperText ? (u(), y("span", {
|
|
1154
1166
|
key: 0,
|
|
1155
1167
|
class: r(i.$style.checkboxCardHelper)
|
|
1156
|
-
}, m(
|
|
1168
|
+
}, m(c.helperText), 3)) : w("", !0)
|
|
1157
1169
|
], 2),
|
|
1158
1170
|
l("span", {
|
|
1159
1171
|
class: r([
|
|
1160
1172
|
i.$style.checkboxIndicator,
|
|
1161
|
-
o.value.includes(String(
|
|
1173
|
+
o.value.includes(String(c.value)) ? i.$style.checkboxIndicatorChecked : ""
|
|
1162
1174
|
])
|
|
1163
1175
|
}, [
|
|
1164
|
-
o.value.includes(String(
|
|
1176
|
+
o.value.includes(String(c.value)) ? (u(), y("svg", Tn, [...d[0] || (d[0] = [
|
|
1165
1177
|
l("path", {
|
|
1166
1178
|
d: "M2 6l3 3 5-5",
|
|
1167
1179
|
stroke: "currentColor",
|
|
@@ -1179,61 +1191,61 @@ const fn = {
|
|
|
1179
1191
|
}, m(a.value), 3)) : w("", !0)
|
|
1180
1192
|
], 10, Sn));
|
|
1181
1193
|
}
|
|
1182
|
-
}),
|
|
1183
|
-
checkboxCardGroup:
|
|
1194
|
+
}), xn = "_checkboxCardGroup_uqwpe_2", Pn = "_checkboxCard_uqwpe_2", Fn = "_checkboxCardSelected_uqwpe_34", Gn = "_checkboxCardContent_uqwpe_39", On = "_checkboxCardLabel_uqwpe_46", jn = "_checkboxCardHelper_uqwpe_52", Vn = "_checkboxIndicator_uqwpe_57", Rn = "_checkboxIndicatorChecked_uqwpe_69", Nn = "_fieldError_uqwpe_75", Zn = {
|
|
1195
|
+
checkboxCardGroup: xn,
|
|
1184
1196
|
checkboxCard: Pn,
|
|
1185
1197
|
checkboxCardSelected: Fn,
|
|
1186
|
-
checkboxCardContent:
|
|
1187
|
-
checkboxCardLabel:
|
|
1188
|
-
checkboxCardHelper:
|
|
1189
|
-
checkboxIndicator:
|
|
1190
|
-
checkboxIndicatorChecked:
|
|
1191
|
-
fieldError:
|
|
1198
|
+
checkboxCardContent: Gn,
|
|
1199
|
+
checkboxCardLabel: On,
|
|
1200
|
+
checkboxCardHelper: jn,
|
|
1201
|
+
checkboxIndicator: Vn,
|
|
1202
|
+
checkboxIndicatorChecked: Rn,
|
|
1203
|
+
fieldError: Nn
|
|
1192
1204
|
}, Hn = {
|
|
1193
|
-
$style:
|
|
1194
|
-
},
|
|
1205
|
+
$style: Zn
|
|
1206
|
+
}, Un = /* @__PURE__ */ D(Bn, [["__cssModules", Hn]]), zn = ["for"], Wn = ["id", "value", "aria-invalid", "aria-describedby"], Kn = { value: "" }, Jn = ["value"], Xn = ["id"], Qn = /* @__PURE__ */ q({
|
|
1195
1207
|
__name: "DropdownInput",
|
|
1196
1208
|
props: {
|
|
1197
1209
|
question: {}
|
|
1198
1210
|
},
|
|
1199
1211
|
setup(e) {
|
|
1200
1212
|
let t = 0;
|
|
1201
|
-
const s = e, o = F("dtc-onboarding"), a = `dd-${++t}`, n =
|
|
1213
|
+
const s = e, o = F("dtc-onboarding"), a = `dd-${++t}`, n = C(() => o.getAnswer(s.question.key)), i = C(
|
|
1202
1214
|
() => o.validationErrors.value[s.question.key]
|
|
1203
1215
|
);
|
|
1204
|
-
function c
|
|
1205
|
-
const v =
|
|
1216
|
+
function d(c) {
|
|
1217
|
+
const v = c.target.value;
|
|
1206
1218
|
s.question.type === "number" && v !== "" ? o.setAnswer(s.question.key, Number(v)) : o.setAnswer(s.question.key, v || void 0);
|
|
1207
1219
|
}
|
|
1208
|
-
return (
|
|
1209
|
-
class: r(
|
|
1220
|
+
return (c, v) => (u(), y("div", {
|
|
1221
|
+
class: r(c.$style.fieldGroup)
|
|
1210
1222
|
}, [
|
|
1211
1223
|
l("label", {
|
|
1212
|
-
class: r(
|
|
1224
|
+
class: r(c.$style.fieldLabel),
|
|
1213
1225
|
for: `${a}-${e.question.key}`
|
|
1214
|
-
}, m(e.question.label), 11,
|
|
1226
|
+
}, m(e.question.label), 11, zn),
|
|
1215
1227
|
e.question.description ? (u(), y("p", {
|
|
1216
1228
|
key: 0,
|
|
1217
|
-
class: r(
|
|
1229
|
+
class: r(c.$style.fieldDescription)
|
|
1218
1230
|
}, m(e.question.description), 3)) : w("", !0),
|
|
1219
1231
|
l("select", {
|
|
1220
1232
|
id: `${a}-${e.question.key}`,
|
|
1221
|
-
class: r([
|
|
1233
|
+
class: r([c.$style.fieldSelect, i.value ? c.$style.fieldSelectError : ""]),
|
|
1222
1234
|
value: n.value !== void 0 ? String(n.value) : "",
|
|
1223
1235
|
"aria-invalid": i.value ? "true" : void 0,
|
|
1224
1236
|
"aria-describedby": i.value ? `${a}-${e.question.key}-error` : void 0,
|
|
1225
|
-
onChange:
|
|
1237
|
+
onChange: d
|
|
1226
1238
|
}, [
|
|
1227
1239
|
l("option", Kn, m(e.question.placeholder || "Select..."), 1),
|
|
1228
|
-
(u(!0), y(
|
|
1240
|
+
(u(!0), y(G, null, W(e.question.options, (g) => (u(), y("option", {
|
|
1229
1241
|
key: String(g.value),
|
|
1230
1242
|
value: String(g.value)
|
|
1231
1243
|
}, m(g.label), 9, Jn))), 128))
|
|
1232
|
-
], 42,
|
|
1244
|
+
], 42, Wn),
|
|
1233
1245
|
i.value ? (u(), y("p", {
|
|
1234
1246
|
key: 1,
|
|
1235
1247
|
id: `${a}-${e.question.key}-error`,
|
|
1236
|
-
class: r(
|
|
1248
|
+
class: r(c.$style.fieldError),
|
|
1237
1249
|
role: "alert"
|
|
1238
1250
|
}, m(i.value), 11, Xn)) : w("", !0)
|
|
1239
1251
|
], 2));
|
|
@@ -1247,25 +1259,25 @@ const fn = {
|
|
|
1247
1259
|
fieldError: sr
|
|
1248
1260
|
}, ar = {
|
|
1249
1261
|
$style: or
|
|
1250
|
-
}, lr = /* @__PURE__ */ D(Qn, [["__cssModules", ar]]), ir = ["for"], ur = ["id", "type", "inputmode", "value", "placeholder", "aria-invalid", "aria-describedby"],
|
|
1262
|
+
}, lr = /* @__PURE__ */ D(Qn, [["__cssModules", ar]]), ir = ["for"], ur = ["id", "type", "inputmode", "value", "placeholder", "aria-invalid", "aria-describedby"], dr = ["id"], cr = /* @__PURE__ */ q({
|
|
1251
1263
|
__name: "TextInput",
|
|
1252
1264
|
props: {
|
|
1253
1265
|
question: {}
|
|
1254
1266
|
},
|
|
1255
1267
|
setup(e) {
|
|
1256
1268
|
let t = 0;
|
|
1257
|
-
const s = e, o = F("dtc-onboarding"), a = `ti-${++t}`, n =
|
|
1269
|
+
const s = e, o = F("dtc-onboarding"), a = `ti-${++t}`, n = C(() => o.getAnswer(s.question.key)), i = C(
|
|
1258
1270
|
() => o.validationErrors.value[s.question.key]
|
|
1259
|
-
),
|
|
1271
|
+
), d = C(
|
|
1260
1272
|
() => n.value !== void 0 && n.value !== null ? String(n.value) : ""
|
|
1261
|
-
),
|
|
1273
|
+
), c = C(() => s.question.type === "number" ? "text" : s.question.style === "email" ? "email" : "text"), v = C(
|
|
1262
1274
|
() => s.question.type === "number" ? "numeric" : void 0
|
|
1263
1275
|
);
|
|
1264
1276
|
function g(p) {
|
|
1265
1277
|
const h = p.target.value;
|
|
1266
1278
|
if (s.question.type === "number") {
|
|
1267
|
-
const $ = h.replace(/[^0-9.]/g, ""), T = $ === "" ? void 0 : Number($),
|
|
1268
|
-
o.setAnswer(s.question.key,
|
|
1279
|
+
const $ = h.replace(/[^0-9.]/g, ""), T = $ === "" ? void 0 : Number($), M = T !== void 0 && isNaN(T) ? void 0 : T;
|
|
1280
|
+
o.setAnswer(s.question.key, M);
|
|
1269
1281
|
} else
|
|
1270
1282
|
o.setAnswer(s.question.key, h || void 0);
|
|
1271
1283
|
}
|
|
@@ -1285,10 +1297,10 @@ const fn = {
|
|
|
1285
1297
|
}, [
|
|
1286
1298
|
l("input", {
|
|
1287
1299
|
id: `${a}-${e.question.key}`,
|
|
1288
|
-
type:
|
|
1300
|
+
type: c.value,
|
|
1289
1301
|
inputmode: v.value,
|
|
1290
1302
|
class: r([p.$style.fieldInput, i.value ? p.$style.fieldInputError : ""]),
|
|
1291
|
-
value:
|
|
1303
|
+
value: d.value,
|
|
1292
1304
|
placeholder: e.question.placeholder,
|
|
1293
1305
|
"aria-invalid": i.value ? "true" : void 0,
|
|
1294
1306
|
"aria-describedby": i.value ? `${a}-${e.question.key}-error` : void 0,
|
|
@@ -1304,7 +1316,7 @@ const fn = {
|
|
|
1304
1316
|
id: `${a}-${e.question.key}-error`,
|
|
1305
1317
|
class: r(p.$style.fieldError),
|
|
1306
1318
|
role: "alert"
|
|
1307
|
-
}, m(i.value), 11,
|
|
1319
|
+
}, m(i.value), 11, dr)) : w("", !0)
|
|
1308
1320
|
], 2));
|
|
1309
1321
|
}
|
|
1310
1322
|
}), vr = "_fieldGroup_1jlim_2", pr = "_fieldLabel_1jlim_8", yr = "_fieldDescription_1jlim_15", gr = "_fieldInputWrapper_1jlim_22", fr = "_fieldInput_1jlim_22", hr = "_fieldInputError_1jlim_60", br = "_fieldSuffix_1jlim_64", mr = "_fieldError_1jlim_73", $r = {
|
|
@@ -1316,21 +1328,21 @@ const fn = {
|
|
|
1316
1328
|
fieldInputError: hr,
|
|
1317
1329
|
fieldSuffix: br,
|
|
1318
1330
|
fieldError: mr
|
|
1319
|
-
},
|
|
1331
|
+
}, Cr = {
|
|
1320
1332
|
$style: $r
|
|
1321
|
-
},
|
|
1333
|
+
}, kr = /* @__PURE__ */ D(cr, [["__cssModules", Cr]]), _r = ["for"], wr = ["id", "value", "placeholder", "aria-invalid", "aria-describedby"], Ir = ["id"], Lr = /* @__PURE__ */ q({
|
|
1322
1334
|
__name: "CurrencyInput",
|
|
1323
1335
|
props: {
|
|
1324
1336
|
question: {}
|
|
1325
1337
|
},
|
|
1326
1338
|
setup(e) {
|
|
1327
1339
|
let t = 0;
|
|
1328
|
-
const s = e, o = F("dtc-onboarding"), a = `ci-${++t}`, n =
|
|
1340
|
+
const s = e, o = F("dtc-onboarding"), a = `ci-${++t}`, n = C(() => o.getAnswer(s.question.key)), i = C(
|
|
1329
1341
|
() => o.validationErrors.value[s.question.key]
|
|
1330
|
-
),
|
|
1342
|
+
), d = C(
|
|
1331
1343
|
() => n.value !== void 0 && n.value !== null ? String(n.value) : ""
|
|
1332
1344
|
);
|
|
1333
|
-
function
|
|
1345
|
+
function c(v) {
|
|
1334
1346
|
const g = v.target.value.replace(/[^0-9]/g, ""), p = g === "" ? void 0 : Number(g);
|
|
1335
1347
|
o.setAnswer(
|
|
1336
1348
|
s.question.key,
|
|
@@ -1343,7 +1355,7 @@ const fn = {
|
|
|
1343
1355
|
l("label", {
|
|
1344
1356
|
class: r(v.$style.fieldLabel),
|
|
1345
1357
|
for: `${a}-${e.question.key}`
|
|
1346
|
-
}, m(e.question.label), 11,
|
|
1358
|
+
}, m(e.question.label), 11, _r),
|
|
1347
1359
|
l("div", {
|
|
1348
1360
|
class: r(v.$style.currencyWrapper)
|
|
1349
1361
|
}, [
|
|
@@ -1355,11 +1367,11 @@ const fn = {
|
|
|
1355
1367
|
type: "text",
|
|
1356
1368
|
inputmode: "numeric",
|
|
1357
1369
|
class: r([v.$style.currencyInput, i.value ? v.$style.fieldInputError : ""]),
|
|
1358
|
-
value:
|
|
1370
|
+
value: d.value,
|
|
1359
1371
|
placeholder: e.question.placeholder,
|
|
1360
1372
|
"aria-invalid": i.value ? "true" : void 0,
|
|
1361
1373
|
"aria-describedby": i.value ? `${a}-${e.question.key}-error` : void 0,
|
|
1362
|
-
onInput:
|
|
1374
|
+
onInput: c
|
|
1363
1375
|
}, null, 42, wr)
|
|
1364
1376
|
], 2),
|
|
1365
1377
|
i.value ? (u(), y("p", {
|
|
@@ -1370,33 +1382,33 @@ const fn = {
|
|
|
1370
1382
|
}, m(i.value), 11, Ir)) : w("", !0)
|
|
1371
1383
|
], 2));
|
|
1372
1384
|
}
|
|
1373
|
-
}), Er = "_fieldGroup_10ms9_2",
|
|
1385
|
+
}), Er = "_fieldGroup_10ms9_2", Mr = "_fieldLabel_10ms9_8", qr = "_currencyWrapper_10ms9_15", Ar = "_currencyPrefix_10ms9_21", Sr = "_currencyInput_10ms9_30", Dr = "_fieldInputError_10ms9_48", Tr = "_fieldError_10ms9_52", Br = {
|
|
1374
1386
|
fieldGroup: Er,
|
|
1375
|
-
fieldLabel:
|
|
1376
|
-
currencyWrapper:
|
|
1377
|
-
currencyPrefix:
|
|
1387
|
+
fieldLabel: Mr,
|
|
1388
|
+
currencyWrapper: qr,
|
|
1389
|
+
currencyPrefix: Ar,
|
|
1378
1390
|
currencyInput: Sr,
|
|
1379
1391
|
fieldInputError: Dr,
|
|
1380
1392
|
fieldError: Tr
|
|
1381
|
-
},
|
|
1382
|
-
$style:
|
|
1383
|
-
}, Pr = /* @__PURE__ */ D(Lr, [["__cssModules",
|
|
1393
|
+
}, xr = {
|
|
1394
|
+
$style: Br
|
|
1395
|
+
}, Pr = /* @__PURE__ */ D(Lr, [["__cssModules", xr]]), Fr = ["for"], Gr = ["id", "value", "placeholder", "aria-invalid", "aria-describedby"], Or = ["id"], jr = /* @__PURE__ */ q({
|
|
1384
1396
|
__name: "PhoneInput",
|
|
1385
1397
|
props: {
|
|
1386
1398
|
question: {}
|
|
1387
1399
|
},
|
|
1388
1400
|
setup(e) {
|
|
1389
1401
|
let t = 0;
|
|
1390
|
-
const s = e, o = F("dtc-onboarding"), a = `pi-${++t}`, n =
|
|
1402
|
+
const s = e, o = F("dtc-onboarding"), a = `pi-${++t}`, n = C(
|
|
1391
1403
|
() => o.getAnswer(s.question.key) ?? ""
|
|
1392
|
-
), i =
|
|
1404
|
+
), i = C(
|
|
1393
1405
|
() => o.validationErrors.value[s.question.key]
|
|
1394
1406
|
);
|
|
1395
|
-
function
|
|
1407
|
+
function d(v) {
|
|
1396
1408
|
const g = v.replace(/\D/g, "").slice(0, 10);
|
|
1397
1409
|
return 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)}`;
|
|
1398
1410
|
}
|
|
1399
|
-
function
|
|
1411
|
+
function c(v) {
|
|
1400
1412
|
const p = v.target.value.replace(/\D/g, "").slice(0, 10);
|
|
1401
1413
|
o.setAnswer(s.question.key, p || void 0);
|
|
1402
1414
|
}
|
|
@@ -1411,35 +1423,35 @@ const fn = {
|
|
|
1411
1423
|
id: `${a}-${e.question.key}`,
|
|
1412
1424
|
type: "tel",
|
|
1413
1425
|
class: r([v.$style.fieldInput, i.value ? v.$style.fieldInputError : ""]),
|
|
1414
|
-
value:
|
|
1426
|
+
value: d(n.value),
|
|
1415
1427
|
placeholder: e.question.placeholder || "(555) 555-5555",
|
|
1416
1428
|
"aria-invalid": i.value ? "true" : void 0,
|
|
1417
1429
|
"aria-describedby": i.value ? `${a}-${e.question.key}-error` : void 0,
|
|
1418
|
-
onInput:
|
|
1419
|
-
}, null, 42,
|
|
1430
|
+
onInput: c
|
|
1431
|
+
}, null, 42, Gr),
|
|
1420
1432
|
i.value ? (u(), y("p", {
|
|
1421
1433
|
key: 0,
|
|
1422
1434
|
id: `${a}-${e.question.key}-error`,
|
|
1423
1435
|
class: r(v.$style.fieldError),
|
|
1424
1436
|
role: "alert"
|
|
1425
|
-
}, m(i.value), 11,
|
|
1437
|
+
}, m(i.value), 11, Or)) : w("", !0)
|
|
1426
1438
|
], 2));
|
|
1427
1439
|
}
|
|
1428
|
-
}),
|
|
1429
|
-
fieldGroup:
|
|
1430
|
-
fieldLabel:
|
|
1431
|
-
fieldInput:
|
|
1432
|
-
fieldInputError:
|
|
1440
|
+
}), Vr = "_fieldGroup_p6z3v_2", Rr = "_fieldLabel_p6z3v_8", Nr = "_fieldInput_p6z3v_15", Zr = "_fieldInputError_p6z3v_37", Hr = "_fieldError_p6z3v_41", Ur = {
|
|
1441
|
+
fieldGroup: Vr,
|
|
1442
|
+
fieldLabel: Rr,
|
|
1443
|
+
fieldInput: Nr,
|
|
1444
|
+
fieldInputError: Zr,
|
|
1433
1445
|
fieldError: Hr
|
|
1434
|
-
},
|
|
1435
|
-
$style:
|
|
1436
|
-
},
|
|
1446
|
+
}, zr = {
|
|
1447
|
+
$style: Ur
|
|
1448
|
+
}, Wr = /* @__PURE__ */ D(jr, [["__cssModules", zr]]), Kr = ["checked"], Jr = /* @__PURE__ */ q({
|
|
1437
1449
|
__name: "ToggleInput",
|
|
1438
1450
|
props: {
|
|
1439
1451
|
question: {}
|
|
1440
1452
|
},
|
|
1441
1453
|
setup(e) {
|
|
1442
|
-
const t = e, s = F("dtc-onboarding"), o =
|
|
1454
|
+
const t = e, s = F("dtc-onboarding"), o = C(
|
|
1443
1455
|
() => s.getAnswer(t.question.key)
|
|
1444
1456
|
);
|
|
1445
1457
|
function a(n) {
|
|
@@ -1473,7 +1485,7 @@ const fn = {
|
|
|
1473
1485
|
toggleText: es
|
|
1474
1486
|
}, ns = {
|
|
1475
1487
|
$style: ts
|
|
1476
|
-
}, rs = /* @__PURE__ */ D(Jr, [["__cssModules", ns]]), ss = ["value", "placeholder", "aria-label", "aria-expanded", "aria-invalid", "aria-describedby", "aria-controls", "aria-activedescendant"], os = ["id", "aria-selected", "onClick"], as = ["id"], ls = /* @__PURE__ */
|
|
1488
|
+
}, rs = /* @__PURE__ */ D(Jr, [["__cssModules", ns]]), ss = ["value", "placeholder", "aria-label", "aria-expanded", "aria-invalid", "aria-describedby", "aria-controls", "aria-activedescendant"], os = ["id", "aria-selected", "onClick"], as = ["id"], ls = /* @__PURE__ */ q({
|
|
1477
1489
|
__name: "SearchableDropdownInput",
|
|
1478
1490
|
props: {
|
|
1479
1491
|
question: {}
|
|
@@ -1483,29 +1495,29 @@ const fn = {
|
|
|
1483
1495
|
const s = e, o = F("dtc-onboarding"), a = F(
|
|
1484
1496
|
"opendoor-client",
|
|
1485
1497
|
void 0
|
|
1486
|
-
), n = `sd-${++t}`, i = `${n}-${s.question.key}-listbox`,
|
|
1498
|
+
), n = `sd-${++t}`, i = `${n}-${s.question.key}-listbox`, d = C(
|
|
1487
1499
|
() => o.getAnswer(s.question.key)
|
|
1488
|
-
),
|
|
1500
|
+
), c = C(
|
|
1489
1501
|
() => o.validationErrors.value[s.question.key]
|
|
1490
1502
|
), v = I(""), g = I(!1), p = I([]), h = I(!1), $ = I(-1), T = I(null);
|
|
1491
1503
|
H(
|
|
1492
1504
|
[() => s.question.dataSource, () => s.question.options, () => a == null ? void 0 : a.value],
|
|
1493
|
-
(b,
|
|
1494
|
-
let
|
|
1495
|
-
|
|
1496
|
-
|
|
1505
|
+
(b, B, x) => {
|
|
1506
|
+
let j = !1;
|
|
1507
|
+
x(() => {
|
|
1508
|
+
j = !0;
|
|
1497
1509
|
}), s.question.dataSource === "homebuilders" && (a != null && a.value) ? (h.value = !0, a.value.getHomebuilders().then((P) => {
|
|
1498
|
-
|
|
1510
|
+
j || (p.value = P.homebuilders.map((Y) => ({
|
|
1499
1511
|
label: Y.displayName,
|
|
1500
1512
|
value: Y.identifier
|
|
1501
1513
|
})));
|
|
1502
1514
|
}).catch(() => {
|
|
1503
|
-
|
|
1515
|
+
j || (s.question.options ? p.value = s.question.options.map((P) => ({
|
|
1504
1516
|
label: P.label,
|
|
1505
1517
|
value: String(P.value)
|
|
1506
1518
|
})) : p.value = []);
|
|
1507
1519
|
}).finally(() => {
|
|
1508
|
-
|
|
1520
|
+
j || (h.value = !1);
|
|
1509
1521
|
})) : s.question.options ? p.value = s.question.options.map((P) => ({
|
|
1510
1522
|
label: P.label,
|
|
1511
1523
|
value: String(P.value)
|
|
@@ -1513,36 +1525,36 @@ const fn = {
|
|
|
1513
1525
|
},
|
|
1514
1526
|
{ immediate: !0 }
|
|
1515
1527
|
);
|
|
1516
|
-
const
|
|
1528
|
+
const M = C(
|
|
1517
1529
|
() => v.value ? p.value.filter(
|
|
1518
1530
|
(b) => b.label.toLowerCase().includes(v.value.toLowerCase())
|
|
1519
1531
|
) : p.value
|
|
1520
|
-
),
|
|
1532
|
+
), O = C(
|
|
1521
1533
|
() => {
|
|
1522
1534
|
var b;
|
|
1523
|
-
return (b = p.value.find((
|
|
1535
|
+
return (b = p.value.find((B) => B.value === d.value)) == null ? void 0 : b.label;
|
|
1524
1536
|
}
|
|
1525
1537
|
);
|
|
1526
1538
|
function S(b) {
|
|
1527
1539
|
o.setAnswer(s.question.key, b), g.value = !1, v.value = "", $.value = -1;
|
|
1528
1540
|
}
|
|
1529
|
-
function
|
|
1541
|
+
function N(b) {
|
|
1530
1542
|
v.value = b.target.value, $.value = -1, g.value || (g.value = !0);
|
|
1531
1543
|
}
|
|
1532
|
-
function
|
|
1544
|
+
function Z(b) {
|
|
1533
1545
|
if (!g.value) {
|
|
1534
1546
|
(b.key === "ArrowDown" || b.key === "Enter") && (b.preventDefault(), g.value = !0);
|
|
1535
1547
|
return;
|
|
1536
1548
|
}
|
|
1537
1549
|
switch (b.key) {
|
|
1538
1550
|
case "ArrowDown":
|
|
1539
|
-
b.preventDefault(),
|
|
1551
|
+
b.preventDefault(), M.value.length > 0 && ($.value = $.value < M.value.length - 1 ? $.value + 1 : 0);
|
|
1540
1552
|
break;
|
|
1541
1553
|
case "ArrowUp":
|
|
1542
|
-
b.preventDefault(),
|
|
1554
|
+
b.preventDefault(), M.value.length > 0 && ($.value = $.value > 0 ? $.value - 1 : M.value.length - 1);
|
|
1543
1555
|
break;
|
|
1544
1556
|
case "Enter":
|
|
1545
|
-
b.preventDefault(), $.value >= 0 && $.value <
|
|
1557
|
+
b.preventDefault(), $.value >= 0 && $.value < M.value.length && S(M.value[$.value].value);
|
|
1546
1558
|
break;
|
|
1547
1559
|
case "Escape":
|
|
1548
1560
|
b.preventDefault(), g.value = !1, $.value = -1;
|
|
@@ -1554,9 +1566,9 @@ const fn = {
|
|
|
1554
1566
|
}
|
|
1555
1567
|
return se(() => {
|
|
1556
1568
|
document.addEventListener("mousedown", L);
|
|
1557
|
-
}),
|
|
1569
|
+
}), z(() => {
|
|
1558
1570
|
document.removeEventListener("mousedown", L);
|
|
1559
|
-
}), (b,
|
|
1571
|
+
}), (b, B) => (u(), y("div", {
|
|
1560
1572
|
ref_key: "containerRef",
|
|
1561
1573
|
ref: T,
|
|
1562
1574
|
class: r(b.$style.fieldGroup)
|
|
@@ -1567,27 +1579,27 @@ const fn = {
|
|
|
1567
1579
|
l("input", {
|
|
1568
1580
|
type: "text",
|
|
1569
1581
|
class: r(b.$style.fieldInput),
|
|
1570
|
-
value: g.value ? v.value :
|
|
1582
|
+
value: g.value ? v.value : O.value ?? "",
|
|
1571
1583
|
placeholder: e.question.placeholder || "Select or search...",
|
|
1572
1584
|
"aria-label": e.question.label,
|
|
1573
1585
|
"aria-expanded": g.value,
|
|
1574
|
-
"aria-invalid":
|
|
1575
|
-
"aria-describedby":
|
|
1586
|
+
"aria-invalid": c.value ? "true" : void 0,
|
|
1587
|
+
"aria-describedby": c.value ? `${n}-${e.question.key}-error` : void 0,
|
|
1576
1588
|
role: "combobox",
|
|
1577
1589
|
"aria-haspopup": "listbox",
|
|
1578
1590
|
"aria-controls": g.value ? i : void 0,
|
|
1579
1591
|
"aria-activedescendant": g.value && $.value >= 0 ? `${i}-option-${$.value}` : void 0,
|
|
1580
|
-
onInput:
|
|
1581
|
-
onFocus:
|
|
1582
|
-
onKeydown:
|
|
1592
|
+
onInput: N,
|
|
1593
|
+
onFocus: B[0] || (B[0] = (x) => g.value = !0),
|
|
1594
|
+
onKeydown: Z
|
|
1583
1595
|
}, null, 42, ss),
|
|
1584
1596
|
l("button", {
|
|
1585
1597
|
type: "button",
|
|
1586
1598
|
class: r(b.$style.searchableDropdownToggle),
|
|
1587
1599
|
"aria-label": "Toggle dropdown",
|
|
1588
1600
|
tabindex: "-1",
|
|
1589
|
-
onClick:
|
|
1590
|
-
}, [...
|
|
1601
|
+
onClick: B[1] || (B[1] = (x) => g.value = !g.value)
|
|
1602
|
+
}, [...B[2] || (B[2] = [
|
|
1591
1603
|
l("svg", {
|
|
1592
1604
|
width: "12",
|
|
1593
1605
|
height: "8",
|
|
@@ -1612,37 +1624,37 @@ const fn = {
|
|
|
1612
1624
|
h.value ? (u(), y("div", {
|
|
1613
1625
|
key: 0,
|
|
1614
1626
|
class: r(b.$style.searchableDropdownEmpty)
|
|
1615
|
-
}, " Loading... ", 2)) :
|
|
1627
|
+
}, " Loading... ", 2)) : M.value.length === 0 ? (u(), y("div", {
|
|
1616
1628
|
key: 1,
|
|
1617
1629
|
class: r(b.$style.searchableDropdownEmpty)
|
|
1618
|
-
}, " No results found ", 2)) : (u(!0), y(
|
|
1619
|
-
key:
|
|
1620
|
-
id: `${i}-option-${
|
|
1630
|
+
}, " No results found ", 2)) : (u(!0), y(G, { key: 2 }, W(M.value, (x, j) => (u(), y("button", {
|
|
1631
|
+
key: x.value,
|
|
1632
|
+
id: `${i}-option-${j}`,
|
|
1621
1633
|
type: "button",
|
|
1622
1634
|
role: "option",
|
|
1623
|
-
"aria-selected":
|
|
1635
|
+
"aria-selected": x.value === d.value,
|
|
1624
1636
|
class: r([
|
|
1625
1637
|
b.$style.searchableDropdownOption,
|
|
1626
|
-
|
|
1627
|
-
|
|
1638
|
+
x.value === d.value ? b.$style.searchableDropdownOptionSelected : "",
|
|
1639
|
+
j === $.value ? b.$style.searchableDropdownOptionHighlighted : ""
|
|
1628
1640
|
]),
|
|
1629
|
-
onClick: (P) => S(
|
|
1630
|
-
}, m(
|
|
1641
|
+
onClick: (P) => S(x.value)
|
|
1642
|
+
}, m(x.label), 11, os))), 128))
|
|
1631
1643
|
], 2)) : w("", !0)
|
|
1632
1644
|
], 2),
|
|
1633
|
-
|
|
1645
|
+
c.value ? (u(), y("p", {
|
|
1634
1646
|
key: 0,
|
|
1635
1647
|
id: `${n}-${e.question.key}-error`,
|
|
1636
1648
|
class: r(b.$style.fieldError),
|
|
1637
1649
|
role: "alert"
|
|
1638
|
-
}, m(
|
|
1650
|
+
}, m(c.value), 11, as)) : w("", !0)
|
|
1639
1651
|
], 2));
|
|
1640
1652
|
}
|
|
1641
|
-
}), is = "_fieldGroup_v7484_2", us = "_searchableDropdown_v7484_8",
|
|
1653
|
+
}), is = "_fieldGroup_v7484_2", us = "_searchableDropdown_v7484_8", ds = "_fieldInput_v7484_14", cs = "_searchableDropdownToggle_v7484_40", vs = "_searchableDropdownList_v7484_53", ps = "_searchableDropdownOption_v7484_68", ys = "_searchableDropdownOptionSelected_v7484_86", gs = "_searchableDropdownOptionHighlighted_v7484_91", fs = "_searchableDropdownEmpty_v7484_95", hs = "_fieldError_v7484_101", bs = {
|
|
1642
1654
|
fieldGroup: is,
|
|
1643
1655
|
searchableDropdown: us,
|
|
1644
|
-
fieldInput:
|
|
1645
|
-
searchableDropdownToggle:
|
|
1656
|
+
fieldInput: ds,
|
|
1657
|
+
searchableDropdownToggle: cs,
|
|
1646
1658
|
searchableDropdownList: vs,
|
|
1647
1659
|
searchableDropdownOption: ps,
|
|
1648
1660
|
searchableDropdownOptionSelected: ys,
|
|
@@ -1651,7 +1663,7 @@ const fn = {
|
|
|
1651
1663
|
fieldError: hs
|
|
1652
1664
|
}, ms = {
|
|
1653
1665
|
$style: bs
|
|
1654
|
-
}, $s = /* @__PURE__ */ D(ls, [["__cssModules", ms]]),
|
|
1666
|
+
}, $s = /* @__PURE__ */ D(ls, [["__cssModules", ms]]), Cs = ["aria-label"], ks = /* @__PURE__ */ q({
|
|
1655
1667
|
__name: "DtcPage",
|
|
1656
1668
|
setup(e) {
|
|
1657
1669
|
const t = F("dtc-onboarding"), s = I(null);
|
|
@@ -1673,51 +1685,51 @@ const fn = {
|
|
|
1673
1685
|
role: "region",
|
|
1674
1686
|
"aria-label": E(t).currentPage.value.title
|
|
1675
1687
|
}, [
|
|
1676
|
-
(u(!0), y(
|
|
1688
|
+
(u(!0), y(G, null, W(E(t).visibleQuestions.value, (n) => (u(), y(G, {
|
|
1677
1689
|
key: n.key
|
|
1678
1690
|
}, [
|
|
1679
|
-
n.style === "radio-card" ? (u(),
|
|
1691
|
+
n.style === "radio-card" ? (u(), R(pn, {
|
|
1680
1692
|
key: 0,
|
|
1681
1693
|
question: n
|
|
1682
|
-
}, null, 8, ["question"])) : n.style === "image-card" ? (u(),
|
|
1694
|
+
}, null, 8, ["question"])) : n.style === "image-card" ? (u(), R(An, {
|
|
1683
1695
|
key: 1,
|
|
1684
1696
|
question: n
|
|
1685
|
-
}, null, 8, ["question"])) : n.style === "checkbox-card" ? (u(),
|
|
1697
|
+
}, null, 8, ["question"])) : n.style === "checkbox-card" ? (u(), R(Un, {
|
|
1686
1698
|
key: 2,
|
|
1687
1699
|
question: n
|
|
1688
|
-
}, null, 8, ["question"])) : n.style === "dropdown" ? (u(),
|
|
1700
|
+
}, null, 8, ["question"])) : n.style === "dropdown" ? (u(), R(lr, {
|
|
1689
1701
|
key: 3,
|
|
1690
1702
|
question: n
|
|
1691
|
-
}, null, 8, ["question"])) : n.style === "input" || n.style === "email" ? (u(),
|
|
1703
|
+
}, null, 8, ["question"])) : n.style === "input" || n.style === "email" ? (u(), R(kr, {
|
|
1692
1704
|
key: 4,
|
|
1693
1705
|
question: n
|
|
1694
|
-
}, null, 8, ["question"])) : n.style === "currency" ? (u(),
|
|
1706
|
+
}, null, 8, ["question"])) : n.style === "currency" ? (u(), R(Pr, {
|
|
1695
1707
|
key: 5,
|
|
1696
1708
|
question: n
|
|
1697
|
-
}, null, 8, ["question"])) : n.style === "phone" ? (u(),
|
|
1709
|
+
}, null, 8, ["question"])) : n.style === "phone" ? (u(), R(Wr, {
|
|
1698
1710
|
key: 6,
|
|
1699
1711
|
question: n
|
|
1700
|
-
}, null, 8, ["question"])) : n.style === "toggle" ? (u(),
|
|
1712
|
+
}, null, 8, ["question"])) : n.style === "toggle" ? (u(), R(rs, {
|
|
1701
1713
|
key: 7,
|
|
1702
1714
|
question: n
|
|
1703
|
-
}, null, 8, ["question"])) : n.style === "searchable-dropdown" ? (u(),
|
|
1715
|
+
}, null, 8, ["question"])) : n.style === "searchable-dropdown" ? (u(), R($s, {
|
|
1704
1716
|
key: 8,
|
|
1705
1717
|
question: n
|
|
1706
1718
|
}, null, 8, ["question"])) : w("", !0)
|
|
1707
1719
|
], 64))), 128))
|
|
1708
|
-
], 10,
|
|
1720
|
+
], 10, Cs)) : w("", !0);
|
|
1709
1721
|
}
|
|
1710
|
-
}),
|
|
1711
|
-
pageContent:
|
|
1722
|
+
}), _s = "_pageContent_1198c_2", ws = {
|
|
1723
|
+
pageContent: _s
|
|
1712
1724
|
}, Is = {
|
|
1713
1725
|
$style: ws
|
|
1714
|
-
}, Ls = /* @__PURE__ */ D(
|
|
1726
|
+
}, Ls = /* @__PURE__ */ D(ks, [["__cssModules", Is]]), Es = ["aria-valuenow"], Ms = /* @__PURE__ */ q({
|
|
1715
1727
|
__name: "DtcProgressBar",
|
|
1716
1728
|
props: {
|
|
1717
1729
|
progress: {}
|
|
1718
1730
|
},
|
|
1719
1731
|
setup(e) {
|
|
1720
|
-
const t = e, s =
|
|
1732
|
+
const t = e, s = C(
|
|
1721
1733
|
() => Math.min(100, Math.max(0, t.progress * 100))
|
|
1722
1734
|
);
|
|
1723
1735
|
return (o, a) => (u(), y("div", {
|
|
@@ -1733,15 +1745,15 @@ const fn = {
|
|
|
1733
1745
|
}, null, 6)
|
|
1734
1746
|
], 10, Es));
|
|
1735
1747
|
}
|
|
1736
|
-
}),
|
|
1737
|
-
progressBar:
|
|
1738
|
-
progressBarFill:
|
|
1748
|
+
}), qs = "_progressBar_y1k9k_2", As = "_progressBarFill_y1k9k_9", Ss = {
|
|
1749
|
+
progressBar: qs,
|
|
1750
|
+
progressBarFill: As
|
|
1739
1751
|
}, Ds = {
|
|
1740
1752
|
$style: Ss
|
|
1741
|
-
}, Ts = /* @__PURE__ */ D(
|
|
1753
|
+
}, Ts = /* @__PURE__ */ D(Ms, [["__cssModules", Ds]]), Bs = { key: 1 }, xs = /* @__PURE__ */ q({
|
|
1742
1754
|
__name: "DtcNavigation",
|
|
1743
1755
|
setup(e) {
|
|
1744
|
-
const t = F("dtc-onboarding"), s =
|
|
1756
|
+
const t = F("dtc-onboarding"), s = C(
|
|
1745
1757
|
() => {
|
|
1746
1758
|
var o;
|
|
1747
1759
|
return ((o = t.currentPage.value) == null ? void 0 : o.submitLabel) ?? "Next";
|
|
@@ -1757,7 +1769,7 @@ const fn = {
|
|
|
1757
1769
|
l("div", {
|
|
1758
1770
|
class: r(o.$style.navigationButtons)
|
|
1759
1771
|
}, [
|
|
1760
|
-
E(t).isFirstPage.value ? (u(), y("div",
|
|
1772
|
+
E(t).isFirstPage.value ? (u(), y("div", Bs)) : (u(), y("button", {
|
|
1761
1773
|
key: 0,
|
|
1762
1774
|
type: "button",
|
|
1763
1775
|
class: r(o.$style.backButton),
|
|
@@ -1785,20 +1797,20 @@ const fn = {
|
|
|
1785
1797
|
], 2)
|
|
1786
1798
|
], 2));
|
|
1787
1799
|
}
|
|
1788
|
-
}), Ps = "
|
|
1800
|
+
}), Ps = "_navigation_1o04j_2", Fs = "_navigationButtons_1o04j_10", Gs = "_backButton_1o04j_16", Os = "_nextButton_1o04j_39", js = {
|
|
1789
1801
|
navigation: Ps,
|
|
1790
1802
|
navigationButtons: Fs,
|
|
1791
|
-
backButton:
|
|
1792
|
-
nextButton:
|
|
1793
|
-
},
|
|
1794
|
-
$style:
|
|
1795
|
-
},
|
|
1803
|
+
backButton: Gs,
|
|
1804
|
+
nextButton: Os
|
|
1805
|
+
}, Vs = {
|
|
1806
|
+
$style: js
|
|
1807
|
+
}, Rs = /* @__PURE__ */ D(xs, [["__cssModules", Vs]]), Ns = /* @__PURE__ */ q({
|
|
1796
1808
|
__name: "DtcLayout",
|
|
1797
1809
|
props: {
|
|
1798
1810
|
address: {}
|
|
1799
1811
|
},
|
|
1800
1812
|
setup(e) {
|
|
1801
|
-
const t = e, s = F("dtc-onboarding"), o =
|
|
1813
|
+
const t = e, s = F("dtc-onboarding"), o = C(
|
|
1802
1814
|
() => [
|
|
1803
1815
|
t.address.street1,
|
|
1804
1816
|
t.address.street2,
|
|
@@ -1812,64 +1824,69 @@ const fn = {
|
|
|
1812
1824
|
class: r(a.$style.layout)
|
|
1813
1825
|
}, [
|
|
1814
1826
|
l("div", {
|
|
1815
|
-
class: r(a.$style.
|
|
1816
|
-
}, [
|
|
1817
|
-
(u(), y("svg", {
|
|
1818
|
-
width: "16",
|
|
1819
|
-
height: "16",
|
|
1820
|
-
viewBox: "0 0 24 24",
|
|
1821
|
-
fill: "none",
|
|
1822
|
-
stroke: "currentColor",
|
|
1823
|
-
"stroke-width": "2",
|
|
1824
|
-
class: r(a.$style.addressIcon)
|
|
1825
|
-
}, [...n[0] || (n[0] = [
|
|
1826
|
-
l("circle", {
|
|
1827
|
-
cx: "12",
|
|
1828
|
-
cy: "10",
|
|
1829
|
-
r: "3"
|
|
1830
|
-
}, null, -1),
|
|
1831
|
-
l("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)
|
|
1832
|
-
])], 2)),
|
|
1833
|
-
l("span", {
|
|
1834
|
-
class: r(a.$style.addressText)
|
|
1835
|
-
}, m(o.value), 3)
|
|
1836
|
-
], 2),
|
|
1837
|
-
l("div", {
|
|
1838
|
-
class: r(a.$style.contentSplit)
|
|
1827
|
+
class: r(a.$style.layoutScrollable)
|
|
1839
1828
|
}, [
|
|
1840
1829
|
l("div", {
|
|
1841
|
-
class: r(a.$style.
|
|
1830
|
+
class: r(a.$style.addressBar)
|
|
1842
1831
|
}, [
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1832
|
+
(u(), y("svg", {
|
|
1833
|
+
width: "16",
|
|
1834
|
+
height: "16",
|
|
1835
|
+
viewBox: "0 0 24 24",
|
|
1836
|
+
fill: "none",
|
|
1837
|
+
stroke: "currentColor",
|
|
1838
|
+
"stroke-width": "2",
|
|
1839
|
+
class: r(a.$style.addressIcon)
|
|
1840
|
+
}, [...n[0] || (n[0] = [
|
|
1841
|
+
l("circle", {
|
|
1842
|
+
cx: "12",
|
|
1843
|
+
cy: "10",
|
|
1844
|
+
r: "3"
|
|
1845
|
+
}, null, -1),
|
|
1846
|
+
l("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)
|
|
1847
|
+
])], 2)),
|
|
1848
|
+
l("span", {
|
|
1849
|
+
class: r(a.$style.addressText)
|
|
1850
|
+
}, m(o.value), 3)
|
|
1850
1851
|
], 2),
|
|
1851
1852
|
l("div", {
|
|
1852
|
-
class: r(a.$style.
|
|
1853
|
+
class: r(a.$style.contentSplit)
|
|
1853
1854
|
}, [
|
|
1854
|
-
|
|
1855
|
+
l("div", {
|
|
1856
|
+
class: r(a.$style.contentLeft)
|
|
1857
|
+
}, [
|
|
1858
|
+
l("h1", {
|
|
1859
|
+
class: r(a.$style.pageTitle)
|
|
1860
|
+
}, m(E(s).currentPage.value.title), 3),
|
|
1861
|
+
E(s).currentPage.value.subtitle ? (u(), y("p", {
|
|
1862
|
+
key: 0,
|
|
1863
|
+
class: r(a.$style.pageSubtitle)
|
|
1864
|
+
}, m(E(s).currentPage.value.subtitle), 3)) : w("", !0)
|
|
1865
|
+
], 2),
|
|
1866
|
+
l("div", {
|
|
1867
|
+
class: r(a.$style.contentRight)
|
|
1868
|
+
}, [
|
|
1869
|
+
J(Ls)
|
|
1870
|
+
], 2)
|
|
1855
1871
|
], 2)
|
|
1856
1872
|
], 2),
|
|
1857
|
-
J(
|
|
1873
|
+
J(Rs)
|
|
1858
1874
|
], 2)) : w("", !0);
|
|
1859
1875
|
}
|
|
1860
|
-
}),
|
|
1861
|
-
layout:
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1876
|
+
}), Zs = "_layout_1yurv_2", Hs = "_layoutScrollable_1yurv_9", Us = "_addressBar_1yurv_18", zs = "_addressIcon_1yurv_26", Ws = "_addressText_1yurv_30", Ks = "_contentSplit_1yurv_36", Js = "_contentLeft_1yurv_50", Xs = "_contentRight_1yurv_56", Qs = "_pageTitle_1yurv_72", Ys = "_pageSubtitle_1yurv_80", eo = {
|
|
1877
|
+
layout: Zs,
|
|
1878
|
+
layoutScrollable: Hs,
|
|
1879
|
+
addressBar: Us,
|
|
1880
|
+
addressIcon: zs,
|
|
1881
|
+
addressText: Ws,
|
|
1882
|
+
contentSplit: Ks,
|
|
1883
|
+
contentLeft: Js,
|
|
1884
|
+
contentRight: Xs,
|
|
1885
|
+
pageTitle: Qs,
|
|
1886
|
+
pageSubtitle: Ys
|
|
1887
|
+
}, to = {
|
|
1888
|
+
$style: eo
|
|
1889
|
+
}, no = /* @__PURE__ */ D(Ns, [["__cssModules", to]]), ro = /* @__PURE__ */ q({
|
|
1873
1890
|
__name: "DtcOnboardingFlow",
|
|
1874
1891
|
props: {
|
|
1875
1892
|
address: {},
|
|
@@ -1881,17 +1898,17 @@ const fn = {
|
|
|
1881
1898
|
},
|
|
1882
1899
|
emits: ["submit", "page-change", "answer-change", "ready", "error"],
|
|
1883
1900
|
setup(e, { emit: t }) {
|
|
1884
|
-
const s = e, o = t, a =
|
|
1901
|
+
const s = e, o = t, a = C(() => ee(s.appearance));
|
|
1885
1902
|
function n(p) {
|
|
1886
1903
|
o("submit", p);
|
|
1887
1904
|
}
|
|
1888
1905
|
function i(p, h) {
|
|
1889
1906
|
o("page-change", p, h);
|
|
1890
1907
|
}
|
|
1891
|
-
function
|
|
1908
|
+
function d(p, h) {
|
|
1892
1909
|
o("answer-change", p, h);
|
|
1893
1910
|
}
|
|
1894
|
-
function
|
|
1911
|
+
function c() {
|
|
1895
1912
|
o("ready");
|
|
1896
1913
|
}
|
|
1897
1914
|
function v(p) {
|
|
@@ -1905,13 +1922,13 @@ const fn = {
|
|
|
1905
1922
|
class: r(p.$style.container),
|
|
1906
1923
|
style: Q(a.value)
|
|
1907
1924
|
}, [
|
|
1908
|
-
J(
|
|
1925
|
+
J(Zt, {
|
|
1909
1926
|
market: e.market,
|
|
1910
1927
|
"initial-answers": e.initialAnswers,
|
|
1911
1928
|
"on-submit": n,
|
|
1912
1929
|
"on-page-change": i,
|
|
1913
|
-
"on-answer-change":
|
|
1914
|
-
"on-ready":
|
|
1930
|
+
"on-answer-change": d,
|
|
1931
|
+
"on-ready": c,
|
|
1915
1932
|
"on-error": v
|
|
1916
1933
|
}, {
|
|
1917
1934
|
default: ge(() => [
|
|
@@ -1920,25 +1937,25 @@ const fn = {
|
|
|
1920
1937
|
"show-close-button": !!e.onClose,
|
|
1921
1938
|
onClose: g
|
|
1922
1939
|
}, null, 8, ["partner-logo-url", "show-close-button"]),
|
|
1923
|
-
J(
|
|
1940
|
+
J(no, { address: e.address }, null, 8, ["address"])
|
|
1924
1941
|
]),
|
|
1925
1942
|
_: 1
|
|
1926
1943
|
}, 8, ["market", "initial-answers"])
|
|
1927
1944
|
], 6));
|
|
1928
1945
|
}
|
|
1929
|
-
}),
|
|
1930
|
-
container:
|
|
1931
|
-
},
|
|
1932
|
-
$style:
|
|
1933
|
-
},
|
|
1946
|
+
}), so = "_container_kjhh7_2", oo = {
|
|
1947
|
+
container: so
|
|
1948
|
+
}, ao = {
|
|
1949
|
+
$style: oo
|
|
1950
|
+
}, fo = /* @__PURE__ */ D(ro, [["__cssModules", ao]]);
|
|
1934
1951
|
export {
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1952
|
+
po as AddressEntry,
|
|
1953
|
+
yo as AddressMap,
|
|
1954
|
+
go as AddressUnitConfirmation,
|
|
1955
|
+
fo as DtcOnboardingFlow,
|
|
1956
|
+
mo as OpendoorClient,
|
|
1957
|
+
vo as OpendoorProvider,
|
|
1958
|
+
$o as THEMES,
|
|
1959
|
+
Co as resolveAppearance,
|
|
1943
1960
|
be as useOpendoorClient
|
|
1944
1961
|
};
|