@opendoor/partner-sdk-client-react 1.0.1 → 1.0.2-beta.48.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/client-react/src/OpendoorContext.d.ts +4 -0
- package/dist/client-react/src/OpendoorContext.d.ts.map +1 -0
- package/dist/client-react/src/TrackingContext.d.ts +4 -0
- package/dist/client-react/src/TrackingContext.d.ts.map +1 -0
- package/dist/{components → client-react/src/components}/AddressEntry/index.d.ts +1 -1
- package/dist/client-react/src/components/AddressEntry/index.d.ts.map +1 -0
- package/dist/{components → client-react/src/components}/AddressMap/AddressMap.d.ts +1 -1
- package/dist/client-react/src/components/AddressMap/AddressMap.d.ts.map +1 -0
- package/dist/client-react/src/components/AddressMap/index.d.ts.map +1 -0
- package/dist/{components → client-react/src/components}/AddressMap/useMapImage.d.ts +1 -1
- package/dist/client-react/src/components/AddressMap/useMapImage.d.ts.map +1 -0
- package/dist/{components → client-react/src/components}/AddressUnitConfirmation/AddressUnitConfirmation.d.ts +1 -1
- package/dist/client-react/src/components/AddressUnitConfirmation/AddressUnitConfirmation.d.ts.map +1 -0
- package/dist/client-react/src/components/AddressUnitConfirmation/index.d.ts.map +1 -0
- package/dist/client-react/src/components/QualificationQuestions/QQContext.d.ts.map +1 -0
- package/dist/{components → client-react/src/components}/QualificationQuestions/QQLayout.d.ts +1 -1
- package/dist/client-react/src/components/QualificationQuestions/QQLayout.d.ts.map +1 -0
- package/dist/client-react/src/components/QualificationQuestions/QQNavigation.d.ts.map +1 -0
- package/dist/client-react/src/components/QualificationQuestions/QQPage.d.ts.map +1 -0
- package/dist/client-react/src/components/QualificationQuestions/QQProvider.d.ts.map +1 -0
- package/dist/{components → client-react/src/components}/QualificationQuestions/QQReviewCard.d.ts +1 -1
- package/dist/client-react/src/components/QualificationQuestions/QQReviewCard.d.ts.map +1 -0
- package/dist/client-react/src/components/QualificationQuestions/QQSidebar.d.ts.map +1 -0
- package/dist/{components → client-react/src/components}/QualificationQuestions/QualificationQuestions.d.ts +1 -1
- package/dist/client-react/src/components/QualificationQuestions/QualificationQuestions.d.ts.map +1 -0
- package/dist/client-react/src/components/QualificationQuestions/fields/CardSelectField.d.ts.map +1 -0
- package/dist/client-react/src/components/QualificationQuestions/fields/CheckboxField.d.ts.map +1 -0
- package/dist/client-react/src/components/QualificationQuestions/fields/CurrencyField.d.ts.map +1 -0
- package/dist/client-react/src/components/QualificationQuestions/fields/DropdownField.d.ts.map +1 -0
- package/dist/client-react/src/components/QualificationQuestions/fields/FieldRenderer.d.ts.map +1 -0
- package/dist/client-react/src/components/QualificationQuestions/fields/FieldWrapper.d.ts.map +1 -0
- package/dist/client-react/src/components/QualificationQuestions/fields/InputField.d.ts.map +1 -0
- package/dist/client-react/src/components/QualificationQuestions/fields/PhoneField.d.ts.map +1 -0
- package/dist/client-react/src/components/QualificationQuestions/fields/RadioField.d.ts.map +1 -0
- package/dist/client-react/src/components/QualificationQuestions/fields/ToggleField.d.ts.map +1 -0
- package/dist/client-react/src/components/QualificationQuestions/fields/index.d.ts.map +1 -0
- package/dist/client-react/src/components/QualificationQuestions/fields/types.d.ts.map +1 -0
- package/dist/client-react/src/components/QualificationQuestions/icons.d.ts.map +1 -0
- package/dist/client-react/src/components/QualificationQuestions/index.d.ts.map +1 -0
- package/dist/client-react/src/components/QualificationQuestions/pages/additionalDetailsPage.d.ts.map +1 -0
- package/dist/client-react/src/components/QualificationQuestions/pages/conditionPage.d.ts.map +1 -0
- package/dist/client-react/src/components/QualificationQuestions/pages/contactInfoPage.d.ts.map +1 -0
- package/dist/client-react/src/components/QualificationQuestions/pages/featuresPage.d.ts.map +1 -0
- package/dist/client-react/src/components/QualificationQuestions/pages/homeDetailsPage.d.ts.map +1 -0
- package/dist/client-react/src/components/QualificationQuestions/pages/index.d.ts.map +1 -0
- package/dist/client-react/src/components/questionnaire/formLogic.d.ts.map +1 -0
- package/dist/client-react/src/components/questionnaire/formatters.d.ts.map +1 -0
- package/dist/client-react/src/components/questionnaire/types.d.ts.map +1 -0
- package/dist/client-react/src/components/questionnaire/utils.d.ts.map +1 -0
- package/dist/client-react/src/components/shared/PoweredByOpendoor.d.ts.map +1 -0
- package/dist/client-react/src/index.d.ts +14 -0
- package/dist/client-react/src/index.d.ts.map +1 -0
- package/dist/{provider.d.ts → client-react/src/provider.d.ts} +1 -1
- package/dist/client-react/src/provider.d.ts.map +1 -0
- package/dist/client-react/src/services/partnerApi.d.ts.map +1 -0
- package/dist/client-react/src/store/config.d.ts.map +1 -0
- package/dist/client-react/src/store/index.d.ts.map +1 -0
- package/dist/client-react/src/types/index.d.ts.map +1 -0
- package/dist/client-react/src/types/questionnaire.d.ts.map +1 -0
- package/dist/client-react/src/useOpendoorClient.d.ts +4 -0
- package/dist/client-react/src/useOpendoorClient.d.ts.map +1 -0
- package/dist/client-react/src/useTracking.d.ts +4 -0
- package/dist/client-react/src/useTracking.d.ts.map +1 -0
- package/dist/{utils → client-react/src/utils}/applyAppearance.d.ts +1 -1
- package/dist/client-react/src/utils/applyAppearance.d.ts.map +1 -0
- package/dist/index.d.ts +1 -14
- package/dist/index.js +467 -457
- package/package.json +1 -1
- package/dist/OpendoorContext.d.ts +0 -4
- package/dist/OpendoorContext.d.ts.map +0 -1
- package/dist/TrackingContext.d.ts +0 -4
- package/dist/TrackingContext.d.ts.map +0 -1
- package/dist/components/AddressEntry/index.d.ts.map +0 -1
- package/dist/components/AddressMap/AddressMap.d.ts.map +0 -1
- package/dist/components/AddressMap/index.d.ts.map +0 -1
- package/dist/components/AddressMap/useMapImage.d.ts.map +0 -1
- package/dist/components/AddressUnitConfirmation/AddressUnitConfirmation.d.ts.map +0 -1
- package/dist/components/AddressUnitConfirmation/index.d.ts.map +0 -1
- package/dist/components/QualificationQuestions/QQContext.d.ts.map +0 -1
- package/dist/components/QualificationQuestions/QQLayout.d.ts.map +0 -1
- package/dist/components/QualificationQuestions/QQNavigation.d.ts.map +0 -1
- package/dist/components/QualificationQuestions/QQPage.d.ts.map +0 -1
- package/dist/components/QualificationQuestions/QQProvider.d.ts.map +0 -1
- package/dist/components/QualificationQuestions/QQReviewCard.d.ts.map +0 -1
- package/dist/components/QualificationQuestions/QQSidebar.d.ts.map +0 -1
- package/dist/components/QualificationQuestions/QualificationQuestions.d.ts.map +0 -1
- package/dist/components/QualificationQuestions/fields/CardSelectField.d.ts.map +0 -1
- package/dist/components/QualificationQuestions/fields/CheckboxField.d.ts.map +0 -1
- package/dist/components/QualificationQuestions/fields/CurrencyField.d.ts.map +0 -1
- package/dist/components/QualificationQuestions/fields/DropdownField.d.ts.map +0 -1
- package/dist/components/QualificationQuestions/fields/FieldRenderer.d.ts.map +0 -1
- package/dist/components/QualificationQuestions/fields/FieldWrapper.d.ts.map +0 -1
- package/dist/components/QualificationQuestions/fields/InputField.d.ts.map +0 -1
- package/dist/components/QualificationQuestions/fields/PhoneField.d.ts.map +0 -1
- package/dist/components/QualificationQuestions/fields/RadioField.d.ts.map +0 -1
- package/dist/components/QualificationQuestions/fields/ToggleField.d.ts.map +0 -1
- package/dist/components/QualificationQuestions/fields/index.d.ts.map +0 -1
- package/dist/components/QualificationQuestions/fields/types.d.ts.map +0 -1
- package/dist/components/QualificationQuestions/icons.d.ts.map +0 -1
- package/dist/components/QualificationQuestions/index.d.ts.map +0 -1
- package/dist/components/QualificationQuestions/pages/additionalDetailsPage.d.ts.map +0 -1
- package/dist/components/QualificationQuestions/pages/conditionPage.d.ts.map +0 -1
- package/dist/components/QualificationQuestions/pages/contactInfoPage.d.ts.map +0 -1
- package/dist/components/QualificationQuestions/pages/featuresPage.d.ts.map +0 -1
- package/dist/components/QualificationQuestions/pages/homeDetailsPage.d.ts.map +0 -1
- package/dist/components/QualificationQuestions/pages/index.d.ts.map +0 -1
- package/dist/components/questionnaire/formLogic.d.ts.map +0 -1
- package/dist/components/questionnaire/formatters.d.ts.map +0 -1
- package/dist/components/questionnaire/types.d.ts.map +0 -1
- package/dist/components/questionnaire/utils.d.ts.map +0 -1
- package/dist/components/shared/PoweredByOpendoor.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/provider.d.ts.map +0 -1
- package/dist/services/partnerApi.d.ts.map +0 -1
- package/dist/store/config.d.ts.map +0 -1
- package/dist/store/index.d.ts.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/questionnaire.d.ts.map +0 -1
- package/dist/useOpendoorClient.d.ts +0 -4
- package/dist/useOpendoorClient.d.ts.map +0 -1
- package/dist/useTracking.d.ts +0 -4
- package/dist/useTracking.d.ts.map +0 -1
- package/dist/utils/applyAppearance.d.ts.map +0 -1
- /package/dist/{components → client-react/src/components}/AddressMap/index.d.ts +0 -0
- /package/dist/{components → client-react/src/components}/AddressUnitConfirmation/index.d.ts +0 -0
- /package/dist/{components → client-react/src/components}/QualificationQuestions/QQContext.d.ts +0 -0
- /package/dist/{components → client-react/src/components}/QualificationQuestions/QQNavigation.d.ts +0 -0
- /package/dist/{components → client-react/src/components}/QualificationQuestions/QQPage.d.ts +0 -0
- /package/dist/{components → client-react/src/components}/QualificationQuestions/QQProvider.d.ts +0 -0
- /package/dist/{components → client-react/src/components}/QualificationQuestions/QQSidebar.d.ts +0 -0
- /package/dist/{components → client-react/src/components}/QualificationQuestions/fields/CardSelectField.d.ts +0 -0
- /package/dist/{components → client-react/src/components}/QualificationQuestions/fields/CheckboxField.d.ts +0 -0
- /package/dist/{components → client-react/src/components}/QualificationQuestions/fields/CurrencyField.d.ts +0 -0
- /package/dist/{components → client-react/src/components}/QualificationQuestions/fields/DropdownField.d.ts +0 -0
- /package/dist/{components → client-react/src/components}/QualificationQuestions/fields/FieldRenderer.d.ts +0 -0
- /package/dist/{components → client-react/src/components}/QualificationQuestions/fields/FieldWrapper.d.ts +0 -0
- /package/dist/{components → client-react/src/components}/QualificationQuestions/fields/InputField.d.ts +0 -0
- /package/dist/{components → client-react/src/components}/QualificationQuestions/fields/PhoneField.d.ts +0 -0
- /package/dist/{components → client-react/src/components}/QualificationQuestions/fields/RadioField.d.ts +0 -0
- /package/dist/{components → client-react/src/components}/QualificationQuestions/fields/ToggleField.d.ts +0 -0
- /package/dist/{components → client-react/src/components}/QualificationQuestions/fields/index.d.ts +0 -0
- /package/dist/{components → client-react/src/components}/QualificationQuestions/fields/types.d.ts +0 -0
- /package/dist/{components → client-react/src/components}/QualificationQuestions/icons.d.ts +0 -0
- /package/dist/{components → client-react/src/components}/QualificationQuestions/index.d.ts +0 -0
- /package/dist/{components → client-react/src/components}/QualificationQuestions/pages/additionalDetailsPage.d.ts +0 -0
- /package/dist/{components → client-react/src/components}/QualificationQuestions/pages/conditionPage.d.ts +0 -0
- /package/dist/{components → client-react/src/components}/QualificationQuestions/pages/contactInfoPage.d.ts +0 -0
- /package/dist/{components → client-react/src/components}/QualificationQuestions/pages/featuresPage.d.ts +0 -0
- /package/dist/{components → client-react/src/components}/QualificationQuestions/pages/homeDetailsPage.d.ts +0 -0
- /package/dist/{components → client-react/src/components}/QualificationQuestions/pages/index.d.ts +0 -0
- /package/dist/{components → client-react/src/components}/questionnaire/formLogic.d.ts +0 -0
- /package/dist/{components → client-react/src/components}/questionnaire/formatters.d.ts +0 -0
- /package/dist/{components → client-react/src/components}/questionnaire/types.d.ts +0 -0
- /package/dist/{components → client-react/src/components}/questionnaire/utils.d.ts +0 -0
- /package/dist/{components → client-react/src/components}/shared/PoweredByOpendoor.d.ts +0 -0
- /package/dist/{services → client-react/src/services}/partnerApi.d.ts +0 -0
- /package/dist/{store → client-react/src/store}/config.d.ts +0 -0
- /package/dist/{store → client-react/src/store}/index.d.ts +0 -0
- /package/dist/{types → client-react/src/types}/index.d.ts +0 -0
- /package/dist/{types → client-react/src/types}/questionnaire.d.ts +0 -0
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import kA, { createContext as
|
|
2
|
-
var
|
|
1
|
+
import kA, { createContext as Qe, useMemo as ze, useEffect as _, useContext as Ce, useState as N, useRef as E, useCallback as ae, forwardRef as KA, createElement as Te } from "react";
|
|
2
|
+
var Ee = { exports: {} }, ge = {};
|
|
3
3
|
/*
|
|
4
4
|
object-assign
|
|
5
5
|
(c) Sindre Sorhus
|
|
6
6
|
@license MIT
|
|
7
7
|
*/
|
|
8
|
-
var
|
|
8
|
+
var Je, cA;
|
|
9
9
|
function pA() {
|
|
10
|
-
if (cA) return
|
|
10
|
+
if (cA) return Je;
|
|
11
11
|
cA = 1;
|
|
12
12
|
var e = Object.getOwnPropertySymbols, r = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable;
|
|
13
13
|
function a(s) {
|
|
@@ -37,7 +37,7 @@ function pA() {
|
|
|
37
37
|
return !1;
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
return
|
|
40
|
+
return Je = u() ? Object.assign : function(s, f) {
|
|
41
41
|
for (var d, P = a(s), c, o = 1; o < arguments.length; o++) {
|
|
42
42
|
d = Object(arguments[o]);
|
|
43
43
|
for (var v in d)
|
|
@@ -49,7 +49,7 @@ function pA() {
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
return P;
|
|
52
|
-
},
|
|
52
|
+
}, Je;
|
|
53
53
|
}
|
|
54
54
|
/** @license React v17.0.2
|
|
55
55
|
* react-jsx-runtime.production.min.js
|
|
@@ -61,12 +61,12 @@ function pA() {
|
|
|
61
61
|
*/
|
|
62
62
|
var aA;
|
|
63
63
|
function LA() {
|
|
64
|
-
if (aA) return
|
|
64
|
+
if (aA) return ge;
|
|
65
65
|
aA = 1, pA();
|
|
66
66
|
var e = kA, r = 60103;
|
|
67
|
-
if (
|
|
67
|
+
if (ge.Fragment = 60107, typeof Symbol == "function" && Symbol.for) {
|
|
68
68
|
var n = Symbol.for;
|
|
69
|
-
r = n("react.element"),
|
|
69
|
+
r = n("react.element"), ge.Fragment = n("react.fragment");
|
|
70
70
|
}
|
|
71
71
|
var a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = Object.prototype.hasOwnProperty, s = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
72
72
|
function f(d, P, c) {
|
|
@@ -76,9 +76,9 @@ function LA() {
|
|
|
76
76
|
if (d && d.defaultProps) for (o in P = d.defaultProps, P) v[o] === void 0 && (v[o] = P[o]);
|
|
77
77
|
return { $$typeof: r, type: d, key: i, ref: O, props: v, _owner: a.current };
|
|
78
78
|
}
|
|
79
|
-
return
|
|
79
|
+
return ge.jsx = f, ge.jsxs = f, ge;
|
|
80
80
|
}
|
|
81
|
-
var
|
|
81
|
+
var he = {};
|
|
82
82
|
/** @license React v17.0.2
|
|
83
83
|
* react-jsx-runtime.development.js
|
|
84
84
|
*
|
|
@@ -93,51 +93,51 @@ function EA() {
|
|
|
93
93
|
process.env.NODE_ENV !== "production" && function() {
|
|
94
94
|
var r = kA, n = pA(), a = 60103, u = 60106;
|
|
95
95
|
e.Fragment = 60107;
|
|
96
|
-
var s = 60108, f = 60114, d = 60109, P = 60110, c = 60112, o = 60113, v = 60120, i = 60115, O = 60116, R = 60121, B = 60122,
|
|
96
|
+
var s = 60108, f = 60114, d = 60109, P = 60110, c = 60112, o = 60113, v = 60120, i = 60115, O = 60116, R = 60121, B = 60122, T = 60117, G = 60129, K = 60131;
|
|
97
97
|
if (typeof Symbol == "function" && Symbol.for) {
|
|
98
|
-
var
|
|
99
|
-
a =
|
|
98
|
+
var y = Symbol.for;
|
|
99
|
+
a = y("react.element"), u = y("react.portal"), e.Fragment = y("react.fragment"), s = y("react.strict_mode"), f = y("react.profiler"), d = y("react.provider"), P = y("react.context"), c = y("react.forward_ref"), o = y("react.suspense"), v = y("react.suspense_list"), i = y("react.memo"), O = y("react.lazy"), R = y("react.block"), B = y("react.server.block"), T = y("react.fundamental"), y("react.scope"), y("react.opaque.id"), G = y("react.debug_trace_mode"), y("react.offscreen"), K = y("react.legacy_hidden");
|
|
100
100
|
}
|
|
101
|
-
var q = typeof Symbol == "function" && Symbol.iterator,
|
|
102
|
-
function
|
|
101
|
+
var q = typeof Symbol == "function" && Symbol.iterator, I = "@@iterator";
|
|
102
|
+
function C(t) {
|
|
103
103
|
if (t === null || typeof t != "object")
|
|
104
104
|
return null;
|
|
105
|
-
var j = q && t[q] || t[
|
|
105
|
+
var j = q && t[q] || t[I];
|
|
106
106
|
return typeof j == "function" ? j : null;
|
|
107
107
|
}
|
|
108
108
|
var X = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
109
|
-
function
|
|
109
|
+
function J(t) {
|
|
110
110
|
{
|
|
111
111
|
for (var j = arguments.length, H = new Array(j > 1 ? j - 1 : 0), p = 1; p < j; p++)
|
|
112
112
|
H[p - 1] = arguments[p];
|
|
113
|
-
|
|
113
|
+
ee("error", t, H);
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function ee(t, j, H) {
|
|
117
117
|
{
|
|
118
118
|
var p = X.ReactDebugCurrentFrame, W = p.getStackAddendum();
|
|
119
119
|
W !== "" && (j += "%s", H = H.concat([W]));
|
|
120
|
-
var D = H.map(function(
|
|
121
|
-
return "" +
|
|
120
|
+
var D = H.map(function(z) {
|
|
121
|
+
return "" + z;
|
|
122
122
|
});
|
|
123
123
|
D.unshift("Warning: " + j), Function.prototype.apply.call(console[t], console, D);
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
var Ae = !1;
|
|
127
|
-
function
|
|
128
|
-
return !!(typeof t == "string" || typeof t == "function" || t === e.Fragment || t === f || t === G || t === s || t === o || t === v || t === K || Ae || typeof t == "object" && t !== null && (t.$$typeof === O || t.$$typeof === i || t.$$typeof === d || t.$$typeof === P || t.$$typeof === c || t.$$typeof ===
|
|
127
|
+
function le(t) {
|
|
128
|
+
return !!(typeof t == "string" || typeof t == "function" || t === e.Fragment || t === f || t === G || t === s || t === o || t === v || t === K || Ae || typeof t == "object" && t !== null && (t.$$typeof === O || t.$$typeof === i || t.$$typeof === d || t.$$typeof === P || t.$$typeof === c || t.$$typeof === T || t.$$typeof === R || t[0] === B));
|
|
129
129
|
}
|
|
130
|
-
function
|
|
130
|
+
function Pe(t, j, H) {
|
|
131
131
|
var p = j.displayName || j.name || "";
|
|
132
132
|
return t.displayName || (p !== "" ? H + "(" + p + ")" : H);
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function b(t) {
|
|
135
135
|
return t.displayName || "Context";
|
|
136
136
|
}
|
|
137
137
|
function k(t) {
|
|
138
138
|
if (t == null)
|
|
139
139
|
return null;
|
|
140
|
-
if (typeof t.tag == "number" &&
|
|
140
|
+
if (typeof t.tag == "number" && J("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."), typeof t == "function")
|
|
141
141
|
return t.displayName || t.name || null;
|
|
142
142
|
if (typeof t == "string")
|
|
143
143
|
return t;
|
|
@@ -159,12 +159,12 @@ function EA() {
|
|
|
159
159
|
switch (t.$$typeof) {
|
|
160
160
|
case P:
|
|
161
161
|
var j = t;
|
|
162
|
-
return
|
|
162
|
+
return b(j) + ".Consumer";
|
|
163
163
|
case d:
|
|
164
164
|
var H = t;
|
|
165
|
-
return
|
|
165
|
+
return b(H._context) + ".Provider";
|
|
166
166
|
case c:
|
|
167
|
-
return
|
|
167
|
+
return Pe(t, t.render, "ForwardRef");
|
|
168
168
|
case i:
|
|
169
169
|
return k(t.type);
|
|
170
170
|
case R:
|
|
@@ -180,18 +180,18 @@ function EA() {
|
|
|
180
180
|
}
|
|
181
181
|
return null;
|
|
182
182
|
}
|
|
183
|
-
var
|
|
184
|
-
function le() {
|
|
185
|
-
}
|
|
186
|
-
le.__reactDisabledLog = !0;
|
|
183
|
+
var g = 0, Q, te, L, V, re, ne, Ve;
|
|
187
184
|
function pe() {
|
|
185
|
+
}
|
|
186
|
+
pe.__reactDisabledLog = !0;
|
|
187
|
+
function ye() {
|
|
188
188
|
{
|
|
189
|
-
if (
|
|
190
|
-
|
|
189
|
+
if (g === 0) {
|
|
190
|
+
Q = console.log, te = console.info, L = console.warn, V = console.error, re = console.group, ne = console.groupCollapsed, Ve = console.groupEnd;
|
|
191
191
|
var t = {
|
|
192
192
|
configurable: !0,
|
|
193
193
|
enumerable: !0,
|
|
194
|
-
value:
|
|
194
|
+
value: pe,
|
|
195
195
|
writable: !0
|
|
196
196
|
};
|
|
197
197
|
Object.defineProperties(console, {
|
|
@@ -204,12 +204,12 @@ function EA() {
|
|
|
204
204
|
groupEnd: t
|
|
205
205
|
});
|
|
206
206
|
}
|
|
207
|
-
|
|
207
|
+
g++;
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function be() {
|
|
211
211
|
{
|
|
212
|
-
if (
|
|
212
|
+
if (g--, g === 0) {
|
|
213
213
|
var t = {
|
|
214
214
|
configurable: !0,
|
|
215
215
|
enumerable: !0,
|
|
@@ -217,7 +217,7 @@ function EA() {
|
|
|
217
217
|
};
|
|
218
218
|
Object.defineProperties(console, {
|
|
219
219
|
log: n({}, t, {
|
|
220
|
-
value:
|
|
220
|
+
value: Q
|
|
221
221
|
}),
|
|
222
222
|
info: n({}, t, {
|
|
223
223
|
value: te
|
|
@@ -235,176 +235,176 @@ function EA() {
|
|
|
235
235
|
value: ne
|
|
236
236
|
}),
|
|
237
237
|
groupEnd: n({}, t, {
|
|
238
|
-
value:
|
|
238
|
+
value: Ve
|
|
239
239
|
})
|
|
240
240
|
});
|
|
241
241
|
}
|
|
242
|
-
|
|
242
|
+
g < 0 && J("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
243
243
|
}
|
|
244
244
|
}
|
|
245
|
-
var
|
|
246
|
-
function
|
|
245
|
+
var fe = X.ReactCurrentDispatcher, ie;
|
|
246
|
+
function we(t, j, H) {
|
|
247
247
|
{
|
|
248
|
-
if (
|
|
248
|
+
if (ie === void 0)
|
|
249
249
|
try {
|
|
250
250
|
throw Error();
|
|
251
251
|
} catch (W) {
|
|
252
252
|
var p = W.stack.trim().match(/\n( *(at )?)/);
|
|
253
|
-
|
|
253
|
+
ie = p && p[1] || "";
|
|
254
254
|
}
|
|
255
255
|
return `
|
|
256
|
-
` +
|
|
256
|
+
` + ie + t;
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
|
-
var
|
|
259
|
+
var Be = !1, xe;
|
|
260
260
|
{
|
|
261
|
-
var
|
|
262
|
-
|
|
261
|
+
var qe = typeof WeakMap == "function" ? WeakMap : Map;
|
|
262
|
+
xe = new qe();
|
|
263
263
|
}
|
|
264
264
|
function Ge(t, j) {
|
|
265
|
-
if (!t ||
|
|
265
|
+
if (!t || Be)
|
|
266
266
|
return "";
|
|
267
267
|
{
|
|
268
|
-
var H =
|
|
268
|
+
var H = xe.get(t);
|
|
269
269
|
if (H !== void 0)
|
|
270
270
|
return H;
|
|
271
271
|
}
|
|
272
272
|
var p;
|
|
273
|
-
|
|
273
|
+
Be = !0;
|
|
274
274
|
var W = Error.prepareStackTrace;
|
|
275
275
|
Error.prepareStackTrace = void 0;
|
|
276
276
|
var D;
|
|
277
|
-
D =
|
|
277
|
+
D = fe.current, fe.current = null, ye();
|
|
278
278
|
try {
|
|
279
279
|
if (j) {
|
|
280
|
-
var
|
|
280
|
+
var z = function() {
|
|
281
281
|
throw Error();
|
|
282
282
|
};
|
|
283
|
-
if (Object.defineProperty(
|
|
283
|
+
if (Object.defineProperty(z.prototype, "props", {
|
|
284
284
|
set: function() {
|
|
285
285
|
throw Error();
|
|
286
286
|
}
|
|
287
287
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
288
288
|
try {
|
|
289
|
-
Reflect.construct(
|
|
290
|
-
} catch (
|
|
291
|
-
p =
|
|
289
|
+
Reflect.construct(z, []);
|
|
290
|
+
} catch (je) {
|
|
291
|
+
p = je;
|
|
292
292
|
}
|
|
293
|
-
Reflect.construct(t, [],
|
|
293
|
+
Reflect.construct(t, [], z);
|
|
294
294
|
} else {
|
|
295
295
|
try {
|
|
296
|
-
|
|
297
|
-
} catch (
|
|
298
|
-
p =
|
|
296
|
+
z.call();
|
|
297
|
+
} catch (je) {
|
|
298
|
+
p = je;
|
|
299
299
|
}
|
|
300
|
-
t.call(
|
|
300
|
+
t.call(z.prototype);
|
|
301
301
|
}
|
|
302
302
|
} else {
|
|
303
303
|
try {
|
|
304
304
|
throw Error();
|
|
305
|
-
} catch (
|
|
306
|
-
p =
|
|
305
|
+
} catch (je) {
|
|
306
|
+
p = je;
|
|
307
307
|
}
|
|
308
308
|
t();
|
|
309
309
|
}
|
|
310
|
-
} catch (
|
|
311
|
-
if (
|
|
312
|
-
for (var S =
|
|
313
|
-
`),
|
|
314
|
-
`),
|
|
310
|
+
} catch (je) {
|
|
311
|
+
if (je && p && typeof je.stack == "string") {
|
|
312
|
+
for (var S = je.stack.split(`
|
|
313
|
+
`), U = p.stack.split(`
|
|
314
|
+
`), h = S.length - 1, Y = U.length - 1; h >= 1 && Y >= 0 && S[h] !== U[Y]; )
|
|
315
315
|
Y--;
|
|
316
|
-
for (;
|
|
317
|
-
if (S[
|
|
318
|
-
if (
|
|
316
|
+
for (; h >= 1 && Y >= 0; h--, Y--)
|
|
317
|
+
if (S[h] !== U[Y]) {
|
|
318
|
+
if (h !== 1 || Y !== 1)
|
|
319
319
|
do
|
|
320
|
-
if (
|
|
321
|
-
var
|
|
322
|
-
` + S[
|
|
323
|
-
return typeof t == "function" &&
|
|
320
|
+
if (h--, Y--, Y < 0 || S[h] !== U[Y]) {
|
|
321
|
+
var ue = `
|
|
322
|
+
` + S[h].replace(" at new ", " at ");
|
|
323
|
+
return typeof t == "function" && xe.set(t, ue), ue;
|
|
324
324
|
}
|
|
325
|
-
while (
|
|
325
|
+
while (h >= 1 && Y >= 0);
|
|
326
326
|
break;
|
|
327
327
|
}
|
|
328
328
|
}
|
|
329
329
|
} finally {
|
|
330
|
-
|
|
330
|
+
Be = !1, fe.current = D, be(), Error.prepareStackTrace = W;
|
|
331
331
|
}
|
|
332
|
-
var
|
|
333
|
-
return typeof t == "function" &&
|
|
332
|
+
var Se = t ? t.displayName || t.name : "", nA = Se ? we(Se) : "";
|
|
333
|
+
return typeof t == "function" && xe.set(t, nA), nA;
|
|
334
334
|
}
|
|
335
|
-
function
|
|
335
|
+
function oe(t, j, H) {
|
|
336
336
|
return Ge(t, !1);
|
|
337
337
|
}
|
|
338
|
-
function
|
|
338
|
+
function We(t) {
|
|
339
339
|
var j = t.prototype;
|
|
340
340
|
return !!(j && j.isReactComponent);
|
|
341
341
|
}
|
|
342
|
-
function
|
|
342
|
+
function ce(t, j, H) {
|
|
343
343
|
if (t == null)
|
|
344
344
|
return "";
|
|
345
345
|
if (typeof t == "function")
|
|
346
|
-
return Ge(t,
|
|
346
|
+
return Ge(t, We(t));
|
|
347
347
|
if (typeof t == "string")
|
|
348
|
-
return
|
|
348
|
+
return we(t);
|
|
349
349
|
switch (t) {
|
|
350
350
|
case o:
|
|
351
|
-
return
|
|
351
|
+
return we("Suspense");
|
|
352
352
|
case v:
|
|
353
|
-
return
|
|
353
|
+
return we("SuspenseList");
|
|
354
354
|
}
|
|
355
355
|
if (typeof t == "object")
|
|
356
356
|
switch (t.$$typeof) {
|
|
357
357
|
case c:
|
|
358
|
-
return
|
|
358
|
+
return oe(t.render);
|
|
359
359
|
case i:
|
|
360
|
-
return
|
|
360
|
+
return ce(t.type, j, H);
|
|
361
361
|
case R:
|
|
362
|
-
return
|
|
362
|
+
return oe(t._render);
|
|
363
363
|
case O: {
|
|
364
364
|
var p = t, W = p._payload, D = p._init;
|
|
365
365
|
try {
|
|
366
|
-
return
|
|
366
|
+
return ce(D(W), j, H);
|
|
367
367
|
} catch {
|
|
368
368
|
}
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
371
|
return "";
|
|
372
372
|
}
|
|
373
|
-
var
|
|
374
|
-
function
|
|
373
|
+
var x = {}, M = X.ReactDebugCurrentFrame;
|
|
374
|
+
function Z(t) {
|
|
375
375
|
if (t) {
|
|
376
|
-
var j = t._owner, H =
|
|
377
|
-
|
|
376
|
+
var j = t._owner, H = ce(t.type, t._source, j ? j.type : null);
|
|
377
|
+
M.setExtraStackFrame(H);
|
|
378
378
|
} else
|
|
379
|
-
|
|
379
|
+
M.setExtraStackFrame(null);
|
|
380
380
|
}
|
|
381
381
|
function De(t, j, H, p, W) {
|
|
382
382
|
{
|
|
383
383
|
var D = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
384
|
-
for (var
|
|
385
|
-
if (D(t,
|
|
384
|
+
for (var z in t)
|
|
385
|
+
if (D(t, z)) {
|
|
386
386
|
var S = void 0;
|
|
387
387
|
try {
|
|
388
|
-
if (typeof t[
|
|
389
|
-
var
|
|
390
|
-
throw
|
|
388
|
+
if (typeof t[z] != "function") {
|
|
389
|
+
var U = Error((p || "React class") + ": " + H + " type `" + z + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[z] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
390
|
+
throw U.name = "Invariant Violation", U;
|
|
391
391
|
}
|
|
392
|
-
S = t[
|
|
393
|
-
} catch (
|
|
394
|
-
S =
|
|
392
|
+
S = t[z](j, z, p, H, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
393
|
+
} catch (h) {
|
|
394
|
+
S = h;
|
|
395
395
|
}
|
|
396
|
-
S && !(S instanceof Error) && (
|
|
396
|
+
S && !(S instanceof Error) && (Z(W), J("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", p || "React class", H, z, typeof S), Z(null)), S instanceof Error && !(S.message in x) && (x[S.message] = !0, Z(W), J("Failed %s type: %s", H, S.message), Z(null));
|
|
397
397
|
}
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
|
-
var
|
|
400
|
+
var de = X.ReactCurrentOwner, ve = Object.prototype.hasOwnProperty, VA = {
|
|
401
401
|
key: !0,
|
|
402
402
|
ref: !0,
|
|
403
403
|
__self: !0,
|
|
404
404
|
__source: !0
|
|
405
405
|
}, Ue, Fe;
|
|
406
406
|
function BA(t) {
|
|
407
|
-
if (
|
|
407
|
+
if (ve.call(t, "ref")) {
|
|
408
408
|
var j = Object.getOwnPropertyDescriptor(t, "ref").get;
|
|
409
409
|
if (j && j.isReactWarning)
|
|
410
410
|
return !1;
|
|
@@ -412,7 +412,7 @@ function EA() {
|
|
|
412
412
|
return t.ref !== void 0;
|
|
413
413
|
}
|
|
414
414
|
function XA(t) {
|
|
415
|
-
if (
|
|
415
|
+
if (ve.call(t, "key")) {
|
|
416
416
|
var j = Object.getOwnPropertyDescriptor(t, "key").get;
|
|
417
417
|
if (j && j.isReactWarning)
|
|
418
418
|
return !1;
|
|
@@ -420,12 +420,12 @@ function EA() {
|
|
|
420
420
|
return t.key !== void 0;
|
|
421
421
|
}
|
|
422
422
|
function GA(t, j) {
|
|
423
|
-
typeof t.ref == "string" &&
|
|
423
|
+
typeof t.ref == "string" && de.current;
|
|
424
424
|
}
|
|
425
425
|
function DA(t, j) {
|
|
426
426
|
{
|
|
427
427
|
var H = function() {
|
|
428
|
-
Ue || (Ue = !0,
|
|
428
|
+
Ue || (Ue = !0, J("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", j));
|
|
429
429
|
};
|
|
430
430
|
H.isReactWarning = !0, Object.defineProperty(t, "key", {
|
|
431
431
|
get: H,
|
|
@@ -436,7 +436,7 @@ function EA() {
|
|
|
436
436
|
function RA(t, j) {
|
|
437
437
|
{
|
|
438
438
|
var H = function() {
|
|
439
|
-
Fe || (Fe = !0,
|
|
439
|
+
Fe || (Fe = !0, J("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", j));
|
|
440
440
|
};
|
|
441
441
|
H.isReactWarning = !0, Object.defineProperty(t, "ref", {
|
|
442
442
|
get: H,
|
|
@@ -444,7 +444,7 @@ function EA() {
|
|
|
444
444
|
});
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
|
-
var qA = function(t, j, H, p, W, D,
|
|
447
|
+
var qA = function(t, j, H, p, W, D, z) {
|
|
448
448
|
var S = {
|
|
449
449
|
// This tag allows us to uniquely identify this as a React Element
|
|
450
450
|
$$typeof: a,
|
|
@@ -452,7 +452,7 @@ function EA() {
|
|
|
452
452
|
type: t,
|
|
453
453
|
key: j,
|
|
454
454
|
ref: H,
|
|
455
|
-
props:
|
|
455
|
+
props: z,
|
|
456
456
|
// Record the component responsible for creating this element.
|
|
457
457
|
_owner: D
|
|
458
458
|
};
|
|
@@ -475,39 +475,39 @@ function EA() {
|
|
|
475
475
|
};
|
|
476
476
|
function WA(t, j, H, p, W) {
|
|
477
477
|
{
|
|
478
|
-
var D,
|
|
479
|
-
H !== void 0 && (S = "" + H), XA(j) && (S = "" + j.key), BA(j) && (
|
|
478
|
+
var D, z = {}, S = null, U = null;
|
|
479
|
+
H !== void 0 && (S = "" + H), XA(j) && (S = "" + j.key), BA(j) && (U = j.ref, GA(j, W));
|
|
480
480
|
for (D in j)
|
|
481
|
-
|
|
481
|
+
ve.call(j, D) && !VA.hasOwnProperty(D) && (z[D] = j[D]);
|
|
482
482
|
if (t && t.defaultProps) {
|
|
483
|
-
var
|
|
484
|
-
for (D in
|
|
485
|
-
|
|
483
|
+
var h = t.defaultProps;
|
|
484
|
+
for (D in h)
|
|
485
|
+
z[D] === void 0 && (z[D] = h[D]);
|
|
486
486
|
}
|
|
487
|
-
if (S ||
|
|
487
|
+
if (S || U) {
|
|
488
488
|
var Y = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
|
|
489
|
-
S && DA(
|
|
489
|
+
S && DA(z, Y), U && RA(z, Y);
|
|
490
490
|
}
|
|
491
|
-
return qA(t, S,
|
|
491
|
+
return qA(t, S, U, W, p, de.current, z);
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
|
-
var
|
|
495
|
-
function
|
|
494
|
+
var Me = X.ReactCurrentOwner, _e = X.ReactDebugCurrentFrame;
|
|
495
|
+
function Oe(t) {
|
|
496
496
|
if (t) {
|
|
497
|
-
var j = t._owner, H =
|
|
497
|
+
var j = t._owner, H = ce(t.type, t._source, j ? j.type : null);
|
|
498
498
|
_e.setExtraStackFrame(H);
|
|
499
499
|
} else
|
|
500
500
|
_e.setExtraStackFrame(null);
|
|
501
501
|
}
|
|
502
|
-
var
|
|
503
|
-
|
|
504
|
-
function
|
|
502
|
+
var Ie;
|
|
503
|
+
Ie = !1;
|
|
504
|
+
function Ze(t) {
|
|
505
505
|
return typeof t == "object" && t !== null && t.$$typeof === a;
|
|
506
506
|
}
|
|
507
507
|
function $e() {
|
|
508
508
|
{
|
|
509
|
-
if (
|
|
510
|
-
var t = k(
|
|
509
|
+
if (Me.current) {
|
|
510
|
+
var t = k(Me.current.type);
|
|
511
511
|
if (t)
|
|
512
512
|
return `
|
|
513
513
|
|
|
@@ -542,7 +542,7 @@ Check the top-level render call using <` + H + ">.");
|
|
|
542
542
|
return;
|
|
543
543
|
eA[H] = !0;
|
|
544
544
|
var p = "";
|
|
545
|
-
t && t._owner && t._owner !==
|
|
545
|
+
t && t._owner && t._owner !== Me.current && (p = " It was passed a child from " + k(t._owner.type) + "."), Oe(t), J('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', H, p), Oe(null);
|
|
546
546
|
}
|
|
547
547
|
}
|
|
548
548
|
function tA(t, j) {
|
|
@@ -552,15 +552,15 @@ Check the top-level render call using <` + H + ">.");
|
|
|
552
552
|
if (Array.isArray(t))
|
|
553
553
|
for (var H = 0; H < t.length; H++) {
|
|
554
554
|
var p = t[H];
|
|
555
|
-
|
|
555
|
+
Ze(p) && AA(p, j);
|
|
556
556
|
}
|
|
557
|
-
else if (
|
|
557
|
+
else if (Ze(t))
|
|
558
558
|
t._store && (t._store.validated = !0);
|
|
559
559
|
else if (t) {
|
|
560
|
-
var W =
|
|
560
|
+
var W = C(t);
|
|
561
561
|
if (typeof W == "function" && W !== t.entries)
|
|
562
|
-
for (var D = W.call(t),
|
|
563
|
-
|
|
562
|
+
for (var D = W.call(t), z; !(z = D.next()).done; )
|
|
563
|
+
Ze(z.value) && AA(z.value, j);
|
|
564
564
|
}
|
|
565
565
|
}
|
|
566
566
|
}
|
|
@@ -581,12 +581,12 @@ Check the top-level render call using <` + H + ">.");
|
|
|
581
581
|
if (H) {
|
|
582
582
|
var p = k(j);
|
|
583
583
|
De(H, t.props, "prop", p, t);
|
|
584
|
-
} else if (j.PropTypes !== void 0 && !
|
|
585
|
-
|
|
584
|
+
} else if (j.PropTypes !== void 0 && !Ie) {
|
|
585
|
+
Ie = !0;
|
|
586
586
|
var W = k(j);
|
|
587
|
-
|
|
587
|
+
J("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", W || "Unknown");
|
|
588
588
|
}
|
|
589
|
-
typeof j.getDefaultProps == "function" && !j.getDefaultProps.isReactClassApproved &&
|
|
589
|
+
typeof j.getDefaultProps == "function" && !j.getDefaultProps.isReactClassApproved && J("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
590
590
|
}
|
|
591
591
|
}
|
|
592
592
|
function TA(t) {
|
|
@@ -594,39 +594,39 @@ Check the top-level render call using <` + H + ">.");
|
|
|
594
594
|
for (var j = Object.keys(t.props), H = 0; H < j.length; H++) {
|
|
595
595
|
var p = j[H];
|
|
596
596
|
if (p !== "children" && p !== "key") {
|
|
597
|
-
|
|
597
|
+
Oe(t), J("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", p), Oe(null);
|
|
598
598
|
break;
|
|
599
599
|
}
|
|
600
600
|
}
|
|
601
|
-
t.ref !== null && (
|
|
601
|
+
t.ref !== null && (Oe(t), J("Invalid attribute `ref` supplied to `React.Fragment`."), Oe(null));
|
|
602
602
|
}
|
|
603
603
|
}
|
|
604
604
|
function rA(t, j, H, p, W, D) {
|
|
605
605
|
{
|
|
606
|
-
var
|
|
607
|
-
if (!
|
|
606
|
+
var z = le(t);
|
|
607
|
+
if (!z) {
|
|
608
608
|
var S = "";
|
|
609
609
|
(t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (S += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
610
|
-
var
|
|
611
|
-
|
|
612
|
-
var
|
|
613
|
-
t === null ?
|
|
610
|
+
var U = MA();
|
|
611
|
+
U ? S += U : S += $e();
|
|
612
|
+
var h;
|
|
613
|
+
t === null ? h = "null" : Array.isArray(t) ? h = "array" : t !== void 0 && t.$$typeof === a ? (h = "<" + (k(t.type) || "Unknown") + " />", S = " Did you accidentally export a JSX literal instead of a component?") : h = typeof t, J("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", h, S);
|
|
614
614
|
}
|
|
615
615
|
var Y = WA(t, j, H, W, D);
|
|
616
616
|
if (Y == null)
|
|
617
617
|
return Y;
|
|
618
|
-
if (
|
|
619
|
-
var
|
|
620
|
-
if (
|
|
618
|
+
if (z) {
|
|
619
|
+
var ue = j.children;
|
|
620
|
+
if (ue !== void 0)
|
|
621
621
|
if (p)
|
|
622
|
-
if (Array.isArray(
|
|
623
|
-
for (var
|
|
624
|
-
tA(
|
|
625
|
-
Object.freeze && Object.freeze(
|
|
622
|
+
if (Array.isArray(ue)) {
|
|
623
|
+
for (var Se = 0; Se < ue.length; Se++)
|
|
624
|
+
tA(ue[Se], t);
|
|
625
|
+
Object.freeze && Object.freeze(ue);
|
|
626
626
|
} else
|
|
627
|
-
|
|
627
|
+
J("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
628
628
|
else
|
|
629
|
-
tA(
|
|
629
|
+
tA(ue, t);
|
|
630
630
|
}
|
|
631
631
|
return t === e.Fragment ? TA(Y) : ZA(Y), Y;
|
|
632
632
|
}
|
|
@@ -640,10 +640,10 @@ Check the top-level render call using <` + H + ">.");
|
|
|
640
640
|
var NA = hA, YA = JA;
|
|
641
641
|
e.jsx = NA, e.jsxs = YA;
|
|
642
642
|
}();
|
|
643
|
-
}(
|
|
643
|
+
}(he)), he;
|
|
644
644
|
}
|
|
645
|
-
process.env.NODE_ENV === "production" ?
|
|
646
|
-
var A =
|
|
645
|
+
process.env.NODE_ENV === "production" ? Ee.exports = LA() : Ee.exports = EA();
|
|
646
|
+
var A = Ee.exports;
|
|
647
647
|
const QA = {
|
|
648
648
|
production: "https://journey.apps.opendoor.com/_journey/api/v1/events",
|
|
649
649
|
staging: "https://journey.apps-staging.opendoor.com/_journey/api/v1/events"
|
|
@@ -759,25 +759,25 @@ const st = {
|
|
|
759
759
|
},
|
|
760
760
|
destroy() {
|
|
761
761
|
}
|
|
762
|
-
}, yA =
|
|
762
|
+
}, yA = Qe(null), bA = Qe(null), wa = ({
|
|
763
763
|
client: e,
|
|
764
764
|
children: r
|
|
765
765
|
}) => {
|
|
766
|
-
const n =
|
|
766
|
+
const n = ze(
|
|
767
767
|
() => new at(e.environment),
|
|
768
768
|
[e]
|
|
769
769
|
);
|
|
770
|
-
return
|
|
770
|
+
return _(() => () => {
|
|
771
771
|
n.destroy();
|
|
772
772
|
}, [n]), /* @__PURE__ */ A.jsx(yA.Provider, { value: e, children: /* @__PURE__ */ A.jsx(bA.Provider, { value: n, children: r }) });
|
|
773
773
|
}, ut = () => {
|
|
774
|
-
const e =
|
|
774
|
+
const e = Ce(yA);
|
|
775
775
|
if (!e)
|
|
776
776
|
throw new Error(
|
|
777
777
|
"useOpendoorClient must be used within an <OpendoorProvider>. Wrap your component tree with <OpendoorProvider client={client}>."
|
|
778
778
|
);
|
|
779
779
|
return e;
|
|
780
|
-
},
|
|
780
|
+
}, se = () => Ce(bA) ?? st, Ne = {
|
|
781
781
|
// Colors
|
|
782
782
|
colorPrimary: "#235ca3",
|
|
783
783
|
colorPrimaryHover: "#1a4a82",
|
|
@@ -818,10 +818,10 @@ const st = {
|
|
|
818
818
|
colorTextTertiary: "#786e64"
|
|
819
819
|
}, jt = {
|
|
820
820
|
/** Default theme — pill-shaped inputs, bold borders, Opendoor blue */
|
|
821
|
-
default:
|
|
821
|
+
default: Ne,
|
|
822
822
|
/** Minimal theme — subtle borders, square corners, lighter shadows */
|
|
823
823
|
minimal: {
|
|
824
|
-
...
|
|
824
|
+
...Ne,
|
|
825
825
|
colorBorder: "#d1d5db",
|
|
826
826
|
colorBorderFocus: "#235ca3",
|
|
827
827
|
colorFocusRing: "rgba(35, 92, 163, 0.15)",
|
|
@@ -841,7 +841,7 @@ const st = {
|
|
|
841
841
|
},
|
|
842
842
|
/** Rounded theme — large radii, soft shadows, spacious */
|
|
843
843
|
rounded: {
|
|
844
|
-
...
|
|
844
|
+
...Ne,
|
|
845
845
|
colorBorder: "#e0e0e0",
|
|
846
846
|
colorBorderFocus: "#235ca3",
|
|
847
847
|
borderRadius: "16px",
|
|
@@ -892,7 +892,7 @@ function wA() {
|
|
|
892
892
|
/* @__PURE__ */ A.jsx(dt, {})
|
|
893
893
|
] });
|
|
894
894
|
}
|
|
895
|
-
const Ht = "_container_tu90h_8", lt = "_inputSection_tu90h_16", it = "_inputWrapper_tu90h_22", xt = "_input_tu90h_16", kt = "_inputIcon_tu90h_63", pt = "_button_tu90h_80", yt = "_spinner_tu90h_121", bt = "_suggestions_tu90h_136", wt = "_errorState_tu90h_150", vt = "_suggestion_tu90h_136", Ot = "_error_tu90h_150", St = "_errorIcon_tu90h_199",
|
|
895
|
+
const Ht = "_container_tu90h_8", lt = "_inputSection_tu90h_16", it = "_inputWrapper_tu90h_22", xt = "_input_tu90h_16", kt = "_inputIcon_tu90h_63", pt = "_button_tu90h_80", yt = "_spinner_tu90h_121", bt = "_suggestions_tu90h_136", wt = "_errorState_tu90h_150", vt = "_suggestion_tu90h_136", Ot = "_error_tu90h_150", St = "_errorIcon_tu90h_199", gt = "_errorBorder_tu90h_213", zt = "_manualLink_tu90h_223", mt = "_manualForm_tu90h_245", Vt = "_manualFormField_tu90h_260", Bt = "_manualFormLabel_tu90h_264", Xt = "_manualFormInput_tu90h_273", Gt = "_formRow_tu90h_294", Dt = "_submitButton_tu90h_302", m = {
|
|
896
896
|
container: Ht,
|
|
897
897
|
inputSection: lt,
|
|
898
898
|
inputWrapper: it,
|
|
@@ -905,8 +905,8 @@ const Ht = "_container_tu90h_8", lt = "_inputSection_tu90h_16", it = "_inputWrap
|
|
|
905
905
|
suggestion: vt,
|
|
906
906
|
error: Ot,
|
|
907
907
|
errorIcon: St,
|
|
908
|
-
errorBorder:
|
|
909
|
-
manualLink:
|
|
908
|
+
errorBorder: gt,
|
|
909
|
+
manualLink: zt,
|
|
910
910
|
manualForm: mt,
|
|
911
911
|
manualFormField: Vt,
|
|
912
912
|
manualFormLabel: Bt,
|
|
@@ -975,55 +975,67 @@ function va({
|
|
|
975
975
|
onChange: O,
|
|
976
976
|
onValidationError: R,
|
|
977
977
|
onAddressSuggestionsStart: B,
|
|
978
|
-
onAddressSuggestionsComplete:
|
|
978
|
+
onAddressSuggestionsComplete: T,
|
|
979
979
|
onError: G
|
|
980
980
|
}) {
|
|
981
|
-
const K = ut(),
|
|
981
|
+
const K = ut(), y = se(), q = Re(v), [I, C] = N(""), [X, J] = N([]), [ee, Ae] = N(!1), [le, Pe] = N(!1), [b, k] = N(null), [g, Q] = N(!1), [te, L] = N(!1), [V, re] = N({
|
|
982
982
|
street1: "",
|
|
983
983
|
street2: "",
|
|
984
984
|
city: "",
|
|
985
985
|
state: "",
|
|
986
986
|
postalCode: ""
|
|
987
|
-
}), ne =
|
|
988
|
-
|
|
989
|
-
const
|
|
990
|
-
|
|
991
|
-
const
|
|
992
|
-
|
|
993
|
-
const
|
|
994
|
-
|
|
987
|
+
}), ne = E(null), Ve = E(null), pe = E(!1), ye = E(G);
|
|
988
|
+
ye.current = G;
|
|
989
|
+
const be = E(B);
|
|
990
|
+
be.current = B;
|
|
991
|
+
const fe = E(T);
|
|
992
|
+
fe.current = T;
|
|
993
|
+
const ie = E(null), we = ee && !le && I.trim().length >= 3 && X.length === 0 && !te;
|
|
994
|
+
_(() => {
|
|
995
995
|
i == null || i();
|
|
996
|
-
}, []),
|
|
997
|
-
|
|
998
|
-
|
|
996
|
+
}, []), _(() => {
|
|
997
|
+
const x = Ve.current;
|
|
998
|
+
if (!x || pe.current) return;
|
|
999
|
+
const M = new IntersectionObserver(
|
|
1000
|
+
([Z]) => {
|
|
1001
|
+
Z.isIntersecting && !pe.current && (pe.current = !0, y.trackPlatform({
|
|
1002
|
+
inputViewEvent: { targetName: "partner-sdk-address-input" }
|
|
1003
|
+
}), y.flush(), M.disconnect());
|
|
1004
|
+
},
|
|
1005
|
+
{ threshold: 0.5 }
|
|
1006
|
+
);
|
|
1007
|
+
return M.observe(x), () => M.disconnect();
|
|
1008
|
+
}, [y]), _(() => {
|
|
1009
|
+
if (!r || I.trim().length < 3 || g) {
|
|
1010
|
+
I.trim().length === 0 && (J([]), Ae(!1), k(null));
|
|
999
1011
|
return;
|
|
1000
1012
|
}
|
|
1001
|
-
|
|
1013
|
+
Pe(!0), k(null);
|
|
1002
1014
|
const x = setTimeout(async () => {
|
|
1003
|
-
var
|
|
1004
|
-
(
|
|
1015
|
+
var M, Z, De;
|
|
1016
|
+
(M = be.current) == null || M.call(be, I);
|
|
1005
1017
|
try {
|
|
1006
|
-
const
|
|
1007
|
-
|
|
1008
|
-
} catch (
|
|
1009
|
-
const
|
|
1010
|
-
k(
|
|
1018
|
+
const de = await K.getAddressSuggestions(I);
|
|
1019
|
+
J(de.addresses), Ae(!0), (Z = fe.current) == null || Z.call(fe, de.addresses);
|
|
1020
|
+
} catch (de) {
|
|
1021
|
+
const ve = de instanceof Error ? de : new Error("Failed to fetch address suggestions");
|
|
1022
|
+
k(ve.message), J([]), Ae(!0), (De = ye.current) == null || De.call(ye, ve);
|
|
1011
1023
|
} finally {
|
|
1012
|
-
|
|
1024
|
+
Pe(!1);
|
|
1013
1025
|
}
|
|
1014
1026
|
}, n);
|
|
1015
1027
|
return () => clearTimeout(x);
|
|
1016
|
-
}, [
|
|
1017
|
-
const x = (
|
|
1018
|
-
|
|
1028
|
+
}, [I, g, r, n, K]), _(() => {
|
|
1029
|
+
const x = (M) => {
|
|
1030
|
+
ie.current && !ie.current.contains(M.target) && ne.current && !ne.current.contains(M.target) && Ae(!1);
|
|
1019
1031
|
};
|
|
1020
1032
|
return document.addEventListener("mousedown", x), () => document.removeEventListener("mousedown", x);
|
|
1021
1033
|
}, []);
|
|
1022
|
-
const
|
|
1023
|
-
const
|
|
1024
|
-
|
|
1025
|
-
},
|
|
1026
|
-
|
|
1034
|
+
const Be = (x) => {
|
|
1035
|
+
const M = x.target.value;
|
|
1036
|
+
C(M), Q(!1), O == null || O({ street1: M });
|
|
1037
|
+
}, xe = async (x) => {
|
|
1038
|
+
Q(!0), C(oA(x)), J([]), Ae(!1), k(null), O == null || O(x), y.trackSell({
|
|
1027
1039
|
addressEntryV2: {
|
|
1028
1040
|
street1: x.street1,
|
|
1029
1041
|
city: x.city,
|
|
@@ -1035,34 +1047,32 @@ function va({
|
|
|
1035
1047
|
});
|
|
1036
1048
|
try {
|
|
1037
1049
|
await e(x);
|
|
1038
|
-
} catch (
|
|
1039
|
-
const
|
|
1040
|
-
k(
|
|
1050
|
+
} catch (M) {
|
|
1051
|
+
const Z = M instanceof Error ? M : new Error("Failed to process address");
|
|
1052
|
+
k(Z.message), G == null || G(Z), C(""), Q(!1);
|
|
1041
1053
|
}
|
|
1042
|
-
},
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
}, ye = () => {
|
|
1047
|
-
w.trackPlatform({
|
|
1054
|
+
}, qe = () => {
|
|
1055
|
+
X.length > 0 && I.length > 0 && Ae(!0);
|
|
1056
|
+
}, Ge = () => {
|
|
1057
|
+
y.trackPlatform({
|
|
1048
1058
|
linkClickEvent: { targetName: "partner-sdk-manual-entry" }
|
|
1049
1059
|
}), L(!0), Ae(!1);
|
|
1050
|
-
},
|
|
1051
|
-
const
|
|
1052
|
-
re(
|
|
1053
|
-
street1:
|
|
1054
|
-
...
|
|
1055
|
-
city:
|
|
1056
|
-
state:
|
|
1057
|
-
postalCode:
|
|
1060
|
+
}, oe = (x, M) => {
|
|
1061
|
+
const Z = { ...V, [x]: M };
|
|
1062
|
+
re(Z), O == null || O({
|
|
1063
|
+
street1: Z.street1,
|
|
1064
|
+
...Z.street2 ? { street2: Z.street2 } : {},
|
|
1065
|
+
city: Z.city,
|
|
1066
|
+
state: Z.state,
|
|
1067
|
+
postalCode: Z.postalCode
|
|
1058
1068
|
});
|
|
1059
|
-
},
|
|
1069
|
+
}, We = async () => {
|
|
1060
1070
|
if (!V.street1 || !V.city || !V.state || !V.postalCode) {
|
|
1061
1071
|
const x = "Please fill in all required fields";
|
|
1062
1072
|
k(x), R == null || R(x);
|
|
1063
1073
|
return;
|
|
1064
1074
|
}
|
|
1065
|
-
|
|
1075
|
+
Pe(!0), k(null);
|
|
1066
1076
|
try {
|
|
1067
1077
|
const x = {
|
|
1068
1078
|
street1: V.street1,
|
|
@@ -1071,7 +1081,7 @@ function va({
|
|
|
1071
1081
|
state: V.state,
|
|
1072
1082
|
postalCode: V.postalCode
|
|
1073
1083
|
};
|
|
1074
|
-
|
|
1084
|
+
y.trackSell({
|
|
1075
1085
|
addressEntryV2: {
|
|
1076
1086
|
street1: x.street1,
|
|
1077
1087
|
city: x.city,
|
|
@@ -1082,13 +1092,13 @@ function va({
|
|
|
1082
1092
|
}
|
|
1083
1093
|
}), await e(x);
|
|
1084
1094
|
} catch (x) {
|
|
1085
|
-
const
|
|
1086
|
-
k(
|
|
1095
|
+
const M = x instanceof Error ? x : new Error("Failed to submit address");
|
|
1096
|
+
k(M.message), G == null || G(M);
|
|
1087
1097
|
} finally {
|
|
1088
|
-
|
|
1098
|
+
Pe(!1);
|
|
1089
1099
|
}
|
|
1090
|
-
},
|
|
1091
|
-
return /* @__PURE__ */ A.jsxs("div", { className: m.container, style: q, children: [
|
|
1100
|
+
}, ce = !!b;
|
|
1101
|
+
return /* @__PURE__ */ A.jsxs("div", { ref: Ve, className: m.container, style: q, children: [
|
|
1092
1102
|
te ? /* @__PURE__ */ A.jsxs("div", { className: m.manualForm, children: [
|
|
1093
1103
|
/* @__PURE__ */ A.jsxs("div", { className: m.manualFormField, children: [
|
|
1094
1104
|
/* @__PURE__ */ A.jsx("label", { className: m.manualFormLabel, htmlFor: "ae-street1", children: "Street Address *" }),
|
|
@@ -1099,7 +1109,7 @@ function va({
|
|
|
1099
1109
|
type: "text",
|
|
1100
1110
|
className: m.manualFormInput,
|
|
1101
1111
|
value: V.street1,
|
|
1102
|
-
onChange: (x) =>
|
|
1112
|
+
onChange: (x) => oe("street1", x.target.value),
|
|
1103
1113
|
disabled: u,
|
|
1104
1114
|
placeholder: "123 Main St"
|
|
1105
1115
|
}
|
|
@@ -1114,7 +1124,7 @@ function va({
|
|
|
1114
1124
|
type: "text",
|
|
1115
1125
|
className: m.manualFormInput,
|
|
1116
1126
|
value: V.street2,
|
|
1117
|
-
onChange: (x) =>
|
|
1127
|
+
onChange: (x) => oe("street2", x.target.value),
|
|
1118
1128
|
disabled: u,
|
|
1119
1129
|
placeholder: "Apt 4B"
|
|
1120
1130
|
}
|
|
@@ -1129,7 +1139,7 @@ function va({
|
|
|
1129
1139
|
type: "text",
|
|
1130
1140
|
className: m.manualFormInput,
|
|
1131
1141
|
value: V.city,
|
|
1132
|
-
onChange: (x) =>
|
|
1142
|
+
onChange: (x) => oe("city", x.target.value),
|
|
1133
1143
|
disabled: u,
|
|
1134
1144
|
placeholder: "Austin"
|
|
1135
1145
|
}
|
|
@@ -1145,7 +1155,7 @@ function va({
|
|
|
1145
1155
|
type: "text",
|
|
1146
1156
|
className: m.manualFormInput,
|
|
1147
1157
|
value: V.state,
|
|
1148
|
-
onChange: (x) =>
|
|
1158
|
+
onChange: (x) => oe("state", x.target.value),
|
|
1149
1159
|
disabled: u,
|
|
1150
1160
|
placeholder: "TX",
|
|
1151
1161
|
maxLength: 2
|
|
@@ -1161,7 +1171,7 @@ function va({
|
|
|
1161
1171
|
type: "text",
|
|
1162
1172
|
className: m.manualFormInput,
|
|
1163
1173
|
value: V.postalCode,
|
|
1164
|
-
onChange: (x) =>
|
|
1174
|
+
onChange: (x) => oe("postalCode", x.target.value),
|
|
1165
1175
|
disabled: u,
|
|
1166
1176
|
placeholder: "78701",
|
|
1167
1177
|
maxLength: 5
|
|
@@ -1169,13 +1179,13 @@ function va({
|
|
|
1169
1179
|
)
|
|
1170
1180
|
] })
|
|
1171
1181
|
] }),
|
|
1172
|
-
|
|
1182
|
+
b && /* @__PURE__ */ A.jsx("div", { className: m.error, children: b }),
|
|
1173
1183
|
/* @__PURE__ */ A.jsxs(
|
|
1174
1184
|
"button",
|
|
1175
1185
|
{
|
|
1176
1186
|
type: "button",
|
|
1177
1187
|
className: m.submitButton,
|
|
1178
|
-
onClick:
|
|
1188
|
+
onClick: We,
|
|
1179
1189
|
disabled: u,
|
|
1180
1190
|
children: [
|
|
1181
1191
|
/* @__PURE__ */ A.jsx("span", { children: f }),
|
|
@@ -1187,23 +1197,23 @@ function va({
|
|
|
1187
1197
|
/* @__PURE__ */ A.jsxs(
|
|
1188
1198
|
"div",
|
|
1189
1199
|
{
|
|
1190
|
-
className: `${m.inputWrapper} ${
|
|
1200
|
+
className: `${m.inputWrapper} ${ce ? m.errorBorder : ""}`,
|
|
1191
1201
|
children: [
|
|
1192
1202
|
/* @__PURE__ */ A.jsx(
|
|
1193
1203
|
"input",
|
|
1194
1204
|
{
|
|
1195
1205
|
ref: ne,
|
|
1196
1206
|
type: "text",
|
|
1197
|
-
value:
|
|
1198
|
-
onChange:
|
|
1199
|
-
onFocus:
|
|
1207
|
+
value: I,
|
|
1208
|
+
onChange: Be,
|
|
1209
|
+
onFocus: qe,
|
|
1200
1210
|
placeholder: s,
|
|
1201
1211
|
className: m.input,
|
|
1202
1212
|
disabled: u,
|
|
1203
1213
|
"aria-label": "Address input",
|
|
1204
1214
|
"aria-autocomplete": "list",
|
|
1205
1215
|
"aria-controls": "address-suggestions",
|
|
1206
|
-
"aria-expanded":
|
|
1216
|
+
"aria-expanded": ee
|
|
1207
1217
|
}
|
|
1208
1218
|
),
|
|
1209
1219
|
c && /* @__PURE__ */ A.jsx("div", { className: m.inputIcon, children: c }),
|
|
@@ -1214,7 +1224,7 @@ function va({
|
|
|
1214
1224
|
type: "button",
|
|
1215
1225
|
disabled: u,
|
|
1216
1226
|
"aria-label": f,
|
|
1217
|
-
children:
|
|
1227
|
+
children: le ? /* @__PURE__ */ A.jsxs(A.Fragment, { children: [
|
|
1218
1228
|
/* @__PURE__ */ A.jsx("span", { children: f }),
|
|
1219
1229
|
/* @__PURE__ */ A.jsxs(
|
|
1220
1230
|
"svg",
|
|
@@ -1258,37 +1268,37 @@ function va({
|
|
|
1258
1268
|
]
|
|
1259
1269
|
}
|
|
1260
1270
|
),
|
|
1261
|
-
(
|
|
1271
|
+
(ee || ce) && /* @__PURE__ */ A.jsx(
|
|
1262
1272
|
"div",
|
|
1263
1273
|
{
|
|
1264
|
-
ref:
|
|
1265
|
-
className: `${m.suggestions} ${
|
|
1274
|
+
ref: ie,
|
|
1275
|
+
className: `${m.suggestions} ${ce ? m.errorState : ""}`,
|
|
1266
1276
|
id: "address-suggestions",
|
|
1267
|
-
role:
|
|
1268
|
-
"aria-live":
|
|
1269
|
-
children:
|
|
1277
|
+
role: ce && !ee ? "alert" : "listbox",
|
|
1278
|
+
"aria-live": ce && !ee ? "polite" : void 0,
|
|
1279
|
+
children: ce ? /* @__PURE__ */ A.jsxs("div", { className: m.error, children: [
|
|
1270
1280
|
/* @__PURE__ */ A.jsx("div", { className: m.errorIcon, children: /* @__PURE__ */ A.jsx(Rt, {}) }),
|
|
1271
|
-
/* @__PURE__ */ A.jsx("div", { children:
|
|
1272
|
-
] }) : X.length > 0 ? X.map((x,
|
|
1281
|
+
/* @__PURE__ */ A.jsx("div", { children: b })
|
|
1282
|
+
] }) : X.length > 0 ? X.map((x, M) => /* @__PURE__ */ A.jsx(
|
|
1273
1283
|
"div",
|
|
1274
1284
|
{
|
|
1275
1285
|
className: m.suggestion,
|
|
1276
|
-
onClick: () =>
|
|
1286
|
+
onClick: () => xe(x),
|
|
1277
1287
|
role: "option",
|
|
1278
1288
|
"aria-selected": !1,
|
|
1279
1289
|
tabIndex: 0,
|
|
1280
|
-
onKeyDown: (
|
|
1281
|
-
(
|
|
1290
|
+
onKeyDown: (Z) => {
|
|
1291
|
+
(Z.key === "Enter" || Z.key === " ") && (Z.preventDefault(), xe(x));
|
|
1282
1292
|
},
|
|
1283
1293
|
children: oA(x)
|
|
1284
1294
|
},
|
|
1285
|
-
`${x.street1}-${x.city}-${x.postalCode}-${
|
|
1286
|
-
)) :
|
|
1295
|
+
`${x.street1}-${x.city}-${x.postalCode}-${M}`
|
|
1296
|
+
)) : we && /* @__PURE__ */ A.jsx(
|
|
1287
1297
|
"button",
|
|
1288
1298
|
{
|
|
1289
1299
|
type: "button",
|
|
1290
1300
|
className: m.manualLink,
|
|
1291
|
-
onClick:
|
|
1301
|
+
onClick: Ge,
|
|
1292
1302
|
children: o
|
|
1293
1303
|
}
|
|
1294
1304
|
)
|
|
@@ -1298,9 +1308,9 @@ function va({
|
|
|
1298
1308
|
a && /* @__PURE__ */ A.jsx(wA, {})
|
|
1299
1309
|
] });
|
|
1300
1310
|
}
|
|
1301
|
-
const vA =
|
|
1302
|
-
function
|
|
1303
|
-
const e =
|
|
1311
|
+
const vA = Qe(null);
|
|
1312
|
+
function $() {
|
|
1313
|
+
const e = Ce(vA);
|
|
1304
1314
|
if (!e)
|
|
1305
1315
|
throw new Error("useQQ must be used within a QQProvider");
|
|
1306
1316
|
return e;
|
|
@@ -1329,11 +1339,11 @@ function It(e) {
|
|
|
1329
1339
|
function Zt(e) {
|
|
1330
1340
|
return "someTrue" in e;
|
|
1331
1341
|
}
|
|
1332
|
-
function
|
|
1342
|
+
function He(e, r) {
|
|
1333
1343
|
if (Mt(e))
|
|
1334
|
-
return e.and.every((n) =>
|
|
1344
|
+
return e.and.every((n) => He(n, r));
|
|
1335
1345
|
if (It(e))
|
|
1336
|
-
return e.or.some((n) =>
|
|
1346
|
+
return e.or.some((n) => He(n, r));
|
|
1337
1347
|
if (Zt(e))
|
|
1338
1348
|
return e.someTrue.some((n) => {
|
|
1339
1349
|
const a = r(n);
|
|
@@ -1365,10 +1375,10 @@ function oe(e, r) {
|
|
|
1365
1375
|
function OA(e, r) {
|
|
1366
1376
|
const n = [];
|
|
1367
1377
|
for (const a of e.sections) {
|
|
1368
|
-
if (a.showWhen && !
|
|
1378
|
+
if (a.showWhen && !He(a.showWhen, r))
|
|
1369
1379
|
continue;
|
|
1370
1380
|
const u = a.questions.filter(
|
|
1371
|
-
(s) => !s.showWhen ||
|
|
1381
|
+
(s) => !s.showWhen || He(s.showWhen, r)
|
|
1372
1382
|
);
|
|
1373
1383
|
(u.length > 0 || a.icon) && n.push({ ...a, questions: u });
|
|
1374
1384
|
}
|
|
@@ -1378,26 +1388,26 @@ function Tt(e, r) {
|
|
|
1378
1388
|
if (!e.effects) return {};
|
|
1379
1389
|
const n = {};
|
|
1380
1390
|
for (const a of e.effects)
|
|
1381
|
-
|
|
1391
|
+
He(a.when, r) ? Object.assign(n, a.set) : a.unset && Object.assign(n, a.unset);
|
|
1382
1392
|
return n;
|
|
1383
1393
|
}
|
|
1384
1394
|
function Jt(e, r) {
|
|
1385
1395
|
const n = {};
|
|
1386
1396
|
for (const a of e)
|
|
1387
|
-
n[a.key] =
|
|
1397
|
+
n[a.key] = He(a.condition, r) ? a.trueValue ?? !0 : a.falseValue ?? !1;
|
|
1388
1398
|
return n;
|
|
1389
1399
|
}
|
|
1390
1400
|
function dA(e, r) {
|
|
1391
1401
|
const n = /* @__PURE__ */ new Set();
|
|
1392
1402
|
for (const a of e)
|
|
1393
1403
|
for (const u of a.sections) {
|
|
1394
|
-
const s = u.showWhen && !
|
|
1404
|
+
const s = u.showWhen && !He(u.showWhen, r);
|
|
1395
1405
|
for (const f of u.questions) {
|
|
1396
1406
|
if (s) {
|
|
1397
1407
|
n.add(f.key);
|
|
1398
1408
|
continue;
|
|
1399
1409
|
}
|
|
1400
|
-
f.showWhen && !
|
|
1410
|
+
f.showWhen && !He(f.showWhen, r) && n.add(f.key);
|
|
1401
1411
|
}
|
|
1402
1412
|
}
|
|
1403
1413
|
return n;
|
|
@@ -1418,68 +1428,68 @@ const Nt = ({
|
|
|
1418
1428
|
onError: f,
|
|
1419
1429
|
children: d
|
|
1420
1430
|
}) => {
|
|
1421
|
-
const [P, c] =
|
|
1431
|
+
const [P, c] = N(0), [o, v] = N({}), [i, O] = N(
|
|
1422
1432
|
() => r ?? {}
|
|
1423
|
-
), R =
|
|
1433
|
+
), R = E(n);
|
|
1424
1434
|
R.current = n;
|
|
1425
|
-
const B =
|
|
1435
|
+
const B = E(a);
|
|
1426
1436
|
B.current = a;
|
|
1427
|
-
const
|
|
1428
|
-
|
|
1429
|
-
const G =
|
|
1437
|
+
const T = E(u);
|
|
1438
|
+
T.current = u;
|
|
1439
|
+
const G = E(s);
|
|
1430
1440
|
G.current = s;
|
|
1431
|
-
const K =
|
|
1432
|
-
K.current = f,
|
|
1433
|
-
var
|
|
1434
|
-
(
|
|
1435
|
-
}, []),
|
|
1436
|
-
r && Object.keys(r).length > 0 && O((
|
|
1441
|
+
const K = E(f);
|
|
1442
|
+
K.current = f, _(() => {
|
|
1443
|
+
var b;
|
|
1444
|
+
(b = G.current) == null || b.call(G);
|
|
1445
|
+
}, []), _(() => {
|
|
1446
|
+
r && Object.keys(r).length > 0 && O((b) => ({ ...b, ...r }));
|
|
1437
1447
|
}, [r]);
|
|
1438
|
-
const
|
|
1439
|
-
|
|
1440
|
-
const q =
|
|
1441
|
-
(
|
|
1448
|
+
const y = E(i);
|
|
1449
|
+
y.current = i;
|
|
1450
|
+
const q = ae(
|
|
1451
|
+
(b) => i[b],
|
|
1442
1452
|
[i]
|
|
1443
|
-
),
|
|
1444
|
-
O((
|
|
1445
|
-
}, []),
|
|
1446
|
-
(
|
|
1453
|
+
), I = ae((b, k) => {
|
|
1454
|
+
O((g) => ({ ...g, [b]: k }));
|
|
1455
|
+
}, []), C = ae(
|
|
1456
|
+
(b, k) => {
|
|
1447
1457
|
var te;
|
|
1448
|
-
|
|
1449
|
-
const
|
|
1450
|
-
if (
|
|
1451
|
-
const V = Tt(
|
|
1458
|
+
I(b, k);
|
|
1459
|
+
const g = ht(e, b);
|
|
1460
|
+
if (g != null && g.effects) {
|
|
1461
|
+
const V = Tt(g, (re) => re === b ? k : y.current[re]);
|
|
1452
1462
|
for (const [re, ne] of Object.entries(V))
|
|
1453
|
-
|
|
1463
|
+
I(re, ne);
|
|
1454
1464
|
}
|
|
1455
|
-
const
|
|
1456
|
-
(te =
|
|
1457
|
-
if (!L[
|
|
1465
|
+
const Q = { ...y.current, [b]: k };
|
|
1466
|
+
(te = T.current) == null || te.call(T, b, k, Q), v((L) => {
|
|
1467
|
+
if (!L[b]) return L;
|
|
1458
1468
|
const V = { ...L };
|
|
1459
|
-
return delete V[
|
|
1469
|
+
return delete V[b], V;
|
|
1460
1470
|
});
|
|
1461
1471
|
},
|
|
1462
|
-
[e,
|
|
1472
|
+
[e, I]
|
|
1463
1473
|
), X = e[P];
|
|
1464
|
-
|
|
1465
|
-
for (const
|
|
1466
|
-
if (!
|
|
1467
|
-
const k = Jt(
|
|
1468
|
-
for (const [
|
|
1469
|
-
q(
|
|
1474
|
+
_(() => {
|
|
1475
|
+
for (const b of e) {
|
|
1476
|
+
if (!b.derived) continue;
|
|
1477
|
+
const k = Jt(b.derived, q);
|
|
1478
|
+
for (const [g, Q] of Object.entries(k))
|
|
1479
|
+
q(g) !== Q && I(g, Q);
|
|
1470
1480
|
}
|
|
1471
|
-
}, [i, e, q,
|
|
1472
|
-
const
|
|
1473
|
-
for (const k of
|
|
1474
|
-
q(k) !== void 0 &&
|
|
1475
|
-
}, [i, e, q,
|
|
1476
|
-
const
|
|
1477
|
-
var
|
|
1481
|
+
}, [i, e, q, I]), _(() => {
|
|
1482
|
+
const b = dA(e, q);
|
|
1483
|
+
for (const k of b)
|
|
1484
|
+
q(k) !== void 0 && I(k, void 0);
|
|
1485
|
+
}, [i, e, q, I]);
|
|
1486
|
+
const J = ae(() => {
|
|
1487
|
+
var g, Q, te;
|
|
1478
1488
|
if (!X) return;
|
|
1479
|
-
const
|
|
1489
|
+
const b = dA(e, q), k = {};
|
|
1480
1490
|
for (const L of X.sections)
|
|
1481
1491
|
for (const V of L.questions) {
|
|
1482
|
-
if (
|
|
1492
|
+
if (b.has(V.key)) continue;
|
|
1483
1493
|
const re = i[V.key], ne = qt(V, re);
|
|
1484
1494
|
ne && (k[V.key] = ne);
|
|
1485
1495
|
}
|
|
@@ -1490,7 +1500,7 @@ const Nt = ({
|
|
|
1490
1500
|
k[V.fieldId] = V.message;
|
|
1491
1501
|
}
|
|
1492
1502
|
if (Object.keys(k).length > 0) {
|
|
1493
|
-
v(k), (
|
|
1503
|
+
v(k), (g = K.current) == null || g.call(
|
|
1494
1504
|
K,
|
|
1495
1505
|
new Error(`Validation failed on page ${X.id}`)
|
|
1496
1506
|
);
|
|
@@ -1498,59 +1508,59 @@ const Nt = ({
|
|
|
1498
1508
|
}
|
|
1499
1509
|
if (v({}), P < e.length - 1) {
|
|
1500
1510
|
const L = P + 1;
|
|
1501
|
-
c(L), (
|
|
1511
|
+
c(L), (Q = B.current) == null || Q.call(B, L, e[L].id);
|
|
1502
1512
|
} else
|
|
1503
1513
|
(te = R.current) == null || te.call(R, i);
|
|
1504
|
-
}, [X, P, e, i, q]),
|
|
1505
|
-
v({}), c((
|
|
1506
|
-
const k = Math.max(0,
|
|
1507
|
-
return k !==
|
|
1508
|
-
var
|
|
1509
|
-
return (
|
|
1514
|
+
}, [X, P, e, i, q]), ee = ae(() => {
|
|
1515
|
+
v({}), c((b) => {
|
|
1516
|
+
const k = Math.max(0, b - 1);
|
|
1517
|
+
return k !== b && queueMicrotask(() => {
|
|
1518
|
+
var g;
|
|
1519
|
+
return (g = B.current) == null ? void 0 : g.call(B, k, e[k].id);
|
|
1510
1520
|
}), k;
|
|
1511
1521
|
});
|
|
1512
|
-
}, [e]), Ae =
|
|
1513
|
-
(
|
|
1522
|
+
}, [e]), Ae = ae(
|
|
1523
|
+
(b) => {
|
|
1514
1524
|
var k;
|
|
1515
|
-
|
|
1525
|
+
b >= 0 && b < e.length && (v({}), c(b), (k = B.current) == null || k.call(B, b, e[b].id));
|
|
1516
1526
|
},
|
|
1517
1527
|
[e]
|
|
1518
|
-
),
|
|
1519
|
-
const
|
|
1520
|
-
for (const
|
|
1521
|
-
|
|
1528
|
+
), le = ze(() => {
|
|
1529
|
+
const b = /* @__PURE__ */ new Map();
|
|
1530
|
+
for (const g of e)
|
|
1531
|
+
g.stepper && b.set(g.stepper.position, g.stepper);
|
|
1522
1532
|
const k = X == null ? void 0 : X.stepper;
|
|
1523
|
-
return Array.from(
|
|
1524
|
-
...
|
|
1525
|
-
active: (k == null ? void 0 : k.position) ===
|
|
1526
|
-
completed: k ?
|
|
1533
|
+
return Array.from(b.values()).sort((g, Q) => g.position - Q.position).map((g) => ({
|
|
1534
|
+
...g,
|
|
1535
|
+
active: (k == null ? void 0 : k.position) === g.position,
|
|
1536
|
+
completed: k ? g.position < k.position : !1
|
|
1527
1537
|
}));
|
|
1528
|
-
}, [e, X]),
|
|
1538
|
+
}, [e, X]), Pe = ze(
|
|
1529
1539
|
() => ({
|
|
1530
1540
|
pages: e,
|
|
1531
1541
|
currentPageIndex: P,
|
|
1532
1542
|
getAnswer: q,
|
|
1533
|
-
setAnswer:
|
|
1534
|
-
goToNext:
|
|
1535
|
-
goToPrev:
|
|
1543
|
+
setAnswer: C,
|
|
1544
|
+
goToNext: J,
|
|
1545
|
+
goToPrev: ee,
|
|
1536
1546
|
goToPage: Ae,
|
|
1537
1547
|
validationErrors: o,
|
|
1538
|
-
stepperSteps:
|
|
1548
|
+
stepperSteps: le
|
|
1539
1549
|
}),
|
|
1540
1550
|
[
|
|
1541
1551
|
e,
|
|
1542
1552
|
P,
|
|
1543
1553
|
q,
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1554
|
+
C,
|
|
1555
|
+
J,
|
|
1556
|
+
ee,
|
|
1547
1557
|
Ae,
|
|
1548
1558
|
o,
|
|
1549
|
-
|
|
1559
|
+
le
|
|
1550
1560
|
]
|
|
1551
1561
|
);
|
|
1552
|
-
return /* @__PURE__ */ A.jsx(vA.Provider, { value:
|
|
1553
|
-
}, Yt = "_layoutContainer_1g5ms_8", Kt = "_sidebarContainer_1g5ms_18", Lt = "_mainContent_1g5ms_23", Et = "_reviewCardContainer_1g5ms_28", Qt = "_pageContainer_1g5ms_57", Ct = "_pageTitle_1g5ms_62", Ut = "_pageSubtitle_1g5ms_71", Ft = "_section_1g5ms_79", _t = "_sectionHeader_1g5ms_88", $t = "_sectionIcon_1g5ms_95", er = "_sectionTitle_1g5ms_101", Ar = "_subsectionTitle_1g5ms_109", tr = "_sectionGroup_1g5ms_117", rr = "_sectionSub_1g5ms_121", nr = "_sectionFields_1g5ms_131", cr = "_legalText_1g5ms_137", ar = "_navigationContainer_1g5ms_152", sr = "_buttonPrimary_1g5ms_158", ur = "_buttonSecondary_1g5ms_178", jr = "_arrowIcon_1g5ms_200", Pr = "_sidebar_1g5ms_18", fr = "_stepList_1g5ms_217", or = "_stepItem_1g5ms_226", dr = "_stepButton_1g5ms_230", Hr = "_stepActive_1g5ms_252", lr = "_stepCompleted_1g5ms_259", ir = "_stepIndicator_1g5ms_268", xr = "_sidebarAttribution_1g5ms_278", kr = "_reviewCard_1g5ms_28", pr = "_reviewMapArea_1g5ms_306", yr = "_reviewMapImage_1g5ms_315", br = "_reviewMapDynamic_1g5ms_322", wr = "_reviewMapLoaded_1g5ms_330", vr = "_reviewBody_1g5ms_338", Or = "_reviewAddressSection_1g5ms_342", Sr = "_reviewAddressText_1g5ms_349",
|
|
1562
|
+
return /* @__PURE__ */ A.jsx(vA.Provider, { value: Pe, children: d });
|
|
1563
|
+
}, Yt = "_layoutContainer_1g5ms_8", Kt = "_sidebarContainer_1g5ms_18", Lt = "_mainContent_1g5ms_23", Et = "_reviewCardContainer_1g5ms_28", Qt = "_pageContainer_1g5ms_57", Ct = "_pageTitle_1g5ms_62", Ut = "_pageSubtitle_1g5ms_71", Ft = "_section_1g5ms_79", _t = "_sectionHeader_1g5ms_88", $t = "_sectionIcon_1g5ms_95", er = "_sectionTitle_1g5ms_101", Ar = "_subsectionTitle_1g5ms_109", tr = "_sectionGroup_1g5ms_117", rr = "_sectionSub_1g5ms_121", nr = "_sectionFields_1g5ms_131", cr = "_legalText_1g5ms_137", ar = "_navigationContainer_1g5ms_152", sr = "_buttonPrimary_1g5ms_158", ur = "_buttonSecondary_1g5ms_178", jr = "_arrowIcon_1g5ms_200", Pr = "_sidebar_1g5ms_18", fr = "_stepList_1g5ms_217", or = "_stepItem_1g5ms_226", dr = "_stepButton_1g5ms_230", Hr = "_stepActive_1g5ms_252", lr = "_stepCompleted_1g5ms_259", ir = "_stepIndicator_1g5ms_268", xr = "_sidebarAttribution_1g5ms_278", kr = "_reviewCard_1g5ms_28", pr = "_reviewMapArea_1g5ms_306", yr = "_reviewMapImage_1g5ms_315", br = "_reviewMapDynamic_1g5ms_322", wr = "_reviewMapLoaded_1g5ms_330", vr = "_reviewBody_1g5ms_338", Or = "_reviewAddressSection_1g5ms_342", Sr = "_reviewAddressText_1g5ms_349", gr = "_reviewAddressStreet_1g5ms_355", zr = "_reviewAddressCityState_1g5ms_362", mr = "_reviewEditLink_1g5ms_368", Vr = "_reviewStatsGrid_1g5ms_379", Br = "_reviewStatsGridWithDivider_1g5ms_385", Xr = "_reviewStatItem_1g5ms_391", Gr = "_reviewStatIcon_1g5ms_400", Dr = "_reviewSection_1g5ms_406", Rr = "_reviewSectionHeader_1g5ms_410", qr = "_reviewSectionTitle_1g5ms_417", Wr = "_reviewCheckList_1g5ms_424", Mr = "_reviewCheckItem_1g5ms_433", Ir = "_reviewCheckIcon_1g5ms_443", Zr = "_reviewMoreLink_1g5ms_451", l = {
|
|
1554
1564
|
layoutContainer: Yt,
|
|
1555
1565
|
sidebarContainer: Kt,
|
|
1556
1566
|
mainContent: Lt,
|
|
@@ -1587,8 +1597,8 @@ const Nt = ({
|
|
|
1587
1597
|
reviewBody: vr,
|
|
1588
1598
|
reviewAddressSection: Or,
|
|
1589
1599
|
reviewAddressText: Sr,
|
|
1590
|
-
reviewAddressStreet:
|
|
1591
|
-
reviewAddressCityState:
|
|
1600
|
+
reviewAddressStreet: gr,
|
|
1601
|
+
reviewAddressCityState: zr,
|
|
1592
1602
|
reviewEditLink: mr,
|
|
1593
1603
|
reviewStatsGrid: Vr,
|
|
1594
1604
|
reviewStatsGridWithDivider: Br,
|
|
@@ -1626,7 +1636,7 @@ const Nt = ({
|
|
|
1626
1636
|
), Jr = ({
|
|
1627
1637
|
showAttribution: e = !0
|
|
1628
1638
|
}) => {
|
|
1629
|
-
const { stepperSteps: r, goToPage: n } =
|
|
1639
|
+
const { stepperSteps: r, goToPage: n } = $(), a = se(), u = [
|
|
1630
1640
|
...r,
|
|
1631
1641
|
{
|
|
1632
1642
|
label: "Your offer",
|
|
@@ -1658,7 +1668,7 @@ const Nt = ({
|
|
|
1658
1668
|
) }, s.position)) }),
|
|
1659
1669
|
e && /* @__PURE__ */ A.jsx("div", { className: l.sidebarAttribution, children: /* @__PURE__ */ A.jsx(wA, {}) })
|
|
1660
1670
|
] });
|
|
1661
|
-
}, hr = "_fieldWrapper_cfpjd_2", Nr = "_fieldLabel_cfpjd_8", Yr = "_fieldDescription_cfpjd_20", Kr = "_fieldError_cfpjd_27", Lr = "_inputWrapper_cfpjd_35", Er = "_dropdown_cfpjd_42", Qr = "_input_cfpjd_35", Cr = "_inputSuffix_cfpjd_96", Ur = "_currencyPrefix_cfpjd_106", Fr = "_currencyInput_cfpjd_116", _r = "_checkboxGroup_cfpjd_135", $r = "_checkboxOption_cfpjd_141", en = "_checkboxOptionSelected_cfpjd_157", An = "_checkboxInput_cfpjd_162", tn = "_checkboxLabelGroup_cfpjd_195", rn = "_checkboxLabel_cfpjd_195", nn = "_checkboxDescription_cfpjd_208", cn = "_toggleWrapper_cfpjd_215", an = "_toggleBare_cfpjd_221", sn = "_toggleCheckbox_cfpjd_229", un = "_toggleLabelGroup_cfpjd_261", jn = "_toggleBareLabel_cfpjd_267", Pn = "_toggleBareDescription_cfpjd_273", fn = "_radioGroup_cfpjd_280", on = "_radioGroupInline_cfpjd_287", dn = "_radioButtonPill_cfpjd_292", Hn = "_radioButtonPillSelected_cfpjd_312", ln = "_radioOption_cfpjd_318", xn = "_radioOptionSelected_cfpjd_334", kn = "_radioInput_cfpjd_339", pn = "_radioLabel_cfpjd_346", yn = "_cardGroup_cfpjd_354", bn = "_card_cfpjd_354", wn = "_cardGroupWithImages_cfpjd_379", vn = "_cardWithImage_cfpjd_385", On = "_cardImage_cfpjd_403", Sn = "_cardSelected_cfpjd_410",
|
|
1671
|
+
}, hr = "_fieldWrapper_cfpjd_2", Nr = "_fieldLabel_cfpjd_8", Yr = "_fieldDescription_cfpjd_20", Kr = "_fieldError_cfpjd_27", Lr = "_inputWrapper_cfpjd_35", Er = "_dropdown_cfpjd_42", Qr = "_input_cfpjd_35", Cr = "_inputSuffix_cfpjd_96", Ur = "_currencyPrefix_cfpjd_106", Fr = "_currencyInput_cfpjd_116", _r = "_checkboxGroup_cfpjd_135", $r = "_checkboxOption_cfpjd_141", en = "_checkboxOptionSelected_cfpjd_157", An = "_checkboxInput_cfpjd_162", tn = "_checkboxLabelGroup_cfpjd_195", rn = "_checkboxLabel_cfpjd_195", nn = "_checkboxDescription_cfpjd_208", cn = "_toggleWrapper_cfpjd_215", an = "_toggleBare_cfpjd_221", sn = "_toggleCheckbox_cfpjd_229", un = "_toggleLabelGroup_cfpjd_261", jn = "_toggleBareLabel_cfpjd_267", Pn = "_toggleBareDescription_cfpjd_273", fn = "_radioGroup_cfpjd_280", on = "_radioGroupInline_cfpjd_287", dn = "_radioButtonPill_cfpjd_292", Hn = "_radioButtonPillSelected_cfpjd_312", ln = "_radioOption_cfpjd_318", xn = "_radioOptionSelected_cfpjd_334", kn = "_radioInput_cfpjd_339", pn = "_radioLabel_cfpjd_346", yn = "_cardGroup_cfpjd_354", bn = "_card_cfpjd_354", wn = "_cardGroupWithImages_cfpjd_379", vn = "_cardWithImage_cfpjd_385", On = "_cardImage_cfpjd_403", Sn = "_cardSelected_cfpjd_410", gn = "_cardLabel_cfpjd_417", zn = "_cardDescription_cfpjd_425", w = {
|
|
1662
1672
|
fieldWrapper: hr,
|
|
1663
1673
|
fieldLabel: Nr,
|
|
1664
1674
|
fieldDescription: Yr,
|
|
@@ -1696,29 +1706,29 @@ const Nt = ({
|
|
|
1696
1706
|
cardWithImage: vn,
|
|
1697
1707
|
cardImage: On,
|
|
1698
1708
|
cardSelected: Sn,
|
|
1699
|
-
cardLabel:
|
|
1700
|
-
cardDescription:
|
|
1709
|
+
cardLabel: gn,
|
|
1710
|
+
cardDescription: zn
|
|
1701
1711
|
}, ke = ({
|
|
1702
1712
|
question: e,
|
|
1703
1713
|
children: r
|
|
1704
1714
|
}) => {
|
|
1705
|
-
const { validationErrors: n } =
|
|
1706
|
-
return /* @__PURE__ */ A.jsxs("div", { className:
|
|
1707
|
-
/* @__PURE__ */ A.jsx("label", { className:
|
|
1708
|
-
e.description && /* @__PURE__ */ A.jsx("p", { className:
|
|
1715
|
+
const { validationErrors: n } = $(), a = n[e.key];
|
|
1716
|
+
return /* @__PURE__ */ A.jsxs("div", { className: w.fieldWrapper, children: [
|
|
1717
|
+
/* @__PURE__ */ A.jsx("label", { className: w.fieldLabel, children: e.question }),
|
|
1718
|
+
e.description && /* @__PURE__ */ A.jsx("p", { className: w.fieldDescription, children: e.description }),
|
|
1709
1719
|
r,
|
|
1710
|
-
a && /* @__PURE__ */ A.jsx("p", { className:
|
|
1720
|
+
a && /* @__PURE__ */ A.jsx("p", { className: w.fieldError, children: a })
|
|
1711
1721
|
] });
|
|
1712
1722
|
}, mn = ({ question: e }) => {
|
|
1713
1723
|
var s;
|
|
1714
|
-
const { getAnswer: r, setAnswer: n } =
|
|
1724
|
+
const { getAnswer: r, setAnswer: n } = $(), a = r(e.key) ?? "", u = (f) => {
|
|
1715
1725
|
const d = f.target.value;
|
|
1716
1726
|
e.type === "number" ? n(e.key, d === "" ? void 0 : Number(d)) : n(e.key, d === "" ? void 0 : d);
|
|
1717
1727
|
};
|
|
1718
1728
|
return /* @__PURE__ */ A.jsx(ke, { question: e, children: /* @__PURE__ */ A.jsxs(
|
|
1719
1729
|
"select",
|
|
1720
1730
|
{
|
|
1721
|
-
className:
|
|
1731
|
+
className: w.dropdown,
|
|
1722
1732
|
value: String(a),
|
|
1723
1733
|
onChange: u,
|
|
1724
1734
|
children: [
|
|
@@ -1728,15 +1738,15 @@ const Nt = ({
|
|
|
1728
1738
|
}
|
|
1729
1739
|
) });
|
|
1730
1740
|
}, Vn = ({ question: e }) => {
|
|
1731
|
-
const { getAnswer: r, setAnswer: n } =
|
|
1741
|
+
const { getAnswer: r, setAnswer: n } = $(), a = r(e.key), u = (s) => {
|
|
1732
1742
|
const f = s.target.value;
|
|
1733
1743
|
e.type === "number" ? n(e.key, f === "" ? void 0 : Number(f)) : n(e.key, f);
|
|
1734
1744
|
};
|
|
1735
|
-
return /* @__PURE__ */ A.jsx(ke, { question: e, children: /* @__PURE__ */ A.jsxs("div", { className:
|
|
1745
|
+
return /* @__PURE__ */ A.jsx(ke, { question: e, children: /* @__PURE__ */ A.jsxs("div", { className: w.inputWrapper, children: [
|
|
1736
1746
|
/* @__PURE__ */ A.jsx(
|
|
1737
1747
|
"input",
|
|
1738
1748
|
{
|
|
1739
|
-
className:
|
|
1749
|
+
className: w.input,
|
|
1740
1750
|
type: e.type === "number" ? "number" : "text",
|
|
1741
1751
|
value: a === void 0 ? "" : String(a),
|
|
1742
1752
|
onChange: u,
|
|
@@ -1745,7 +1755,7 @@ const Nt = ({
|
|
|
1745
1755
|
max: e.max
|
|
1746
1756
|
}
|
|
1747
1757
|
),
|
|
1748
|
-
e.suffix && /* @__PURE__ */ A.jsx("span", { className:
|
|
1758
|
+
e.suffix && /* @__PURE__ */ A.jsx("span", { className: w.inputSuffix, children: e.suffix })
|
|
1749
1759
|
] }) });
|
|
1750
1760
|
};
|
|
1751
1761
|
function HA(e) {
|
|
@@ -1762,23 +1772,23 @@ function Xn(e, r) {
|
|
|
1762
1772
|
return a > 0 ? `${n + a * 0.5}` : `${n}`;
|
|
1763
1773
|
}
|
|
1764
1774
|
const Gn = ({ question: e }) => {
|
|
1765
|
-
const { getAnswer: r, setAnswer: n } =
|
|
1775
|
+
const { getAnswer: r, setAnswer: n } = $(), a = r(e.key), [u, s] = N(
|
|
1766
1776
|
HA(a)
|
|
1767
|
-
), f =
|
|
1777
|
+
), f = ae(
|
|
1768
1778
|
(P) => {
|
|
1769
1779
|
const c = P.target.value, o = Bn(c);
|
|
1770
1780
|
s(c.replace(/[^0-9,]/g, "")), n(e.key, o);
|
|
1771
1781
|
},
|
|
1772
1782
|
[e.key, n]
|
|
1773
|
-
), d =
|
|
1783
|
+
), d = ae(() => {
|
|
1774
1784
|
s(HA(a));
|
|
1775
1785
|
}, [a]);
|
|
1776
|
-
return /* @__PURE__ */ A.jsx(ke, { question: e, children: /* @__PURE__ */ A.jsxs("div", { className:
|
|
1777
|
-
/* @__PURE__ */ A.jsx("span", { className:
|
|
1786
|
+
return /* @__PURE__ */ A.jsx(ke, { question: e, children: /* @__PURE__ */ A.jsxs("div", { className: w.inputWrapper, children: [
|
|
1787
|
+
/* @__PURE__ */ A.jsx("span", { className: w.currencyPrefix, children: "$" }),
|
|
1778
1788
|
/* @__PURE__ */ A.jsx(
|
|
1779
1789
|
"input",
|
|
1780
1790
|
{
|
|
1781
|
-
className:
|
|
1791
|
+
className: w.currencyInput,
|
|
1782
1792
|
type: "text",
|
|
1783
1793
|
inputMode: "numeric",
|
|
1784
1794
|
value: u,
|
|
@@ -1790,7 +1800,7 @@ const Gn = ({ question: e }) => {
|
|
|
1790
1800
|
] }) });
|
|
1791
1801
|
}, Dn = ({ question: e }) => {
|
|
1792
1802
|
var d, P;
|
|
1793
|
-
const { getAnswer: r, setAnswer: n } =
|
|
1803
|
+
const { getAnswer: r, setAnswer: n } = $(), a = se(), u = r(e.key) ?? [], s = new Set(
|
|
1794
1804
|
(d = e.options) == null ? void 0 : d.filter((c) => c.exclusive).map((c) => String(c.value))
|
|
1795
1805
|
), f = (c) => {
|
|
1796
1806
|
const o = String(c);
|
|
@@ -1813,25 +1823,25 @@ const Gn = ({ question: e }) => {
|
|
|
1813
1823
|
const i = [...u.filter((O) => !s.has(O)), o];
|
|
1814
1824
|
n(e.key, i);
|
|
1815
1825
|
};
|
|
1816
|
-
return /* @__PURE__ */ A.jsx(ke, { question: e, children: /* @__PURE__ */ A.jsx("div", { className:
|
|
1826
|
+
return /* @__PURE__ */ A.jsx(ke, { question: e, children: /* @__PURE__ */ A.jsx("div", { className: w.checkboxGroup, children: (P = e.options) == null ? void 0 : P.map((c) => {
|
|
1817
1827
|
const o = u.includes(String(c.value));
|
|
1818
1828
|
return /* @__PURE__ */ A.jsxs(
|
|
1819
1829
|
"label",
|
|
1820
1830
|
{
|
|
1821
|
-
className: `${
|
|
1831
|
+
className: `${w.checkboxOption} ${o ? w.checkboxOptionSelected : ""}`.trim(),
|
|
1822
1832
|
children: [
|
|
1823
1833
|
/* @__PURE__ */ A.jsx(
|
|
1824
1834
|
"input",
|
|
1825
1835
|
{
|
|
1826
1836
|
type: "checkbox",
|
|
1827
|
-
className:
|
|
1837
|
+
className: w.checkboxInput,
|
|
1828
1838
|
checked: o,
|
|
1829
1839
|
onChange: () => f(c.value)
|
|
1830
1840
|
}
|
|
1831
1841
|
),
|
|
1832
|
-
/* @__PURE__ */ A.jsxs("span", { className:
|
|
1833
|
-
/* @__PURE__ */ A.jsx("span", { className:
|
|
1834
|
-
c.description && /* @__PURE__ */ A.jsx("span", { className:
|
|
1842
|
+
/* @__PURE__ */ A.jsxs("span", { className: w.checkboxLabelGroup, children: [
|
|
1843
|
+
/* @__PURE__ */ A.jsx("span", { className: w.checkboxLabel, children: c.label }),
|
|
1844
|
+
c.description && /* @__PURE__ */ A.jsx("span", { className: w.checkboxDescription, children: c.description })
|
|
1835
1845
|
] })
|
|
1836
1846
|
]
|
|
1837
1847
|
},
|
|
@@ -1840,7 +1850,7 @@ const Gn = ({ question: e }) => {
|
|
|
1840
1850
|
}) }) });
|
|
1841
1851
|
}, Rn = ({ question: e }) => {
|
|
1842
1852
|
var d, P;
|
|
1843
|
-
const { getAnswer: r, setAnswer: n } =
|
|
1853
|
+
const { getAnswer: r, setAnswer: n } = $(), a = se(), u = r(e.key), s = (c) => {
|
|
1844
1854
|
a.trackPlatform({
|
|
1845
1855
|
radioClickEvent: {
|
|
1846
1856
|
targetName: `partner-sdk-${e.key}`,
|
|
@@ -1848,13 +1858,13 @@ const Gn = ({ question: e }) => {
|
|
|
1848
1858
|
}
|
|
1849
1859
|
}), e.type === "number" ? n(e.key, Number(c)) : n(e.key, String(c));
|
|
1850
1860
|
}, f = ((d = e.options) == null ? void 0 : d.length) === 2;
|
|
1851
|
-
return /* @__PURE__ */ A.jsx(ke, { question: e, children: /* @__PURE__ */ A.jsx("div", { className: f ?
|
|
1861
|
+
return /* @__PURE__ */ A.jsx(ke, { question: e, children: /* @__PURE__ */ A.jsx("div", { className: f ? w.radioGroupInline : w.radioGroup, children: (P = e.options) == null ? void 0 : P.map((c) => {
|
|
1852
1862
|
const o = String(u) === String(c.value);
|
|
1853
1863
|
return f ? /* @__PURE__ */ A.jsx(
|
|
1854
1864
|
"button",
|
|
1855
1865
|
{
|
|
1856
1866
|
type: "button",
|
|
1857
|
-
className: `${
|
|
1867
|
+
className: `${w.radioButtonPill} ${o ? w.radioButtonPillSelected : ""}`.trim(),
|
|
1858
1868
|
onClick: () => s(c.value),
|
|
1859
1869
|
children: c.label
|
|
1860
1870
|
},
|
|
@@ -1862,19 +1872,19 @@ const Gn = ({ question: e }) => {
|
|
|
1862
1872
|
) : /* @__PURE__ */ A.jsxs(
|
|
1863
1873
|
"label",
|
|
1864
1874
|
{
|
|
1865
|
-
className: `${
|
|
1875
|
+
className: `${w.radioOption} ${o ? w.radioOptionSelected : ""}`.trim(),
|
|
1866
1876
|
children: [
|
|
1867
1877
|
/* @__PURE__ */ A.jsx(
|
|
1868
1878
|
"input",
|
|
1869
1879
|
{
|
|
1870
1880
|
type: "radio",
|
|
1871
|
-
className:
|
|
1881
|
+
className: w.radioInput,
|
|
1872
1882
|
name: e.key,
|
|
1873
1883
|
checked: o,
|
|
1874
1884
|
onChange: () => s(c.value)
|
|
1875
1885
|
}
|
|
1876
1886
|
),
|
|
1877
|
-
/* @__PURE__ */ A.jsx("span", { className:
|
|
1887
|
+
/* @__PURE__ */ A.jsx("span", { className: w.radioLabel, children: c.label })
|
|
1878
1888
|
]
|
|
1879
1889
|
},
|
|
1880
1890
|
String(c.value)
|
|
@@ -1882,7 +1892,7 @@ const Gn = ({ question: e }) => {
|
|
|
1882
1892
|
}) }) });
|
|
1883
1893
|
}, qn = ({ question: e }) => {
|
|
1884
1894
|
var d, P;
|
|
1885
|
-
const { getAnswer: r, setAnswer: n } =
|
|
1895
|
+
const { getAnswer: r, setAnswer: n } = $(), a = se(), u = r(e.key), s = (c) => {
|
|
1886
1896
|
a.trackPlatform({
|
|
1887
1897
|
buttonClickEvent: { targetName: `partner-sdk-${e.key}` }
|
|
1888
1898
|
}), e.type === "number" ? n(e.key, Number(c)) : n(e.key, String(c));
|
|
@@ -1890,14 +1900,14 @@ const Gn = ({ question: e }) => {
|
|
|
1890
1900
|
return /* @__PURE__ */ A.jsx(ke, { question: e, children: /* @__PURE__ */ A.jsx(
|
|
1891
1901
|
"div",
|
|
1892
1902
|
{
|
|
1893
|
-
className: f ?
|
|
1903
|
+
className: f ? w.cardGroupWithImages : w.cardGroup,
|
|
1894
1904
|
children: (P = e.options) == null ? void 0 : P.map((c) => {
|
|
1895
1905
|
const o = String(u) === String(c.value);
|
|
1896
1906
|
return /* @__PURE__ */ A.jsxs(
|
|
1897
1907
|
"button",
|
|
1898
1908
|
{
|
|
1899
1909
|
type: "button",
|
|
1900
|
-
className: `${f ?
|
|
1910
|
+
className: `${f ? w.cardWithImage : w.card} ${o ? w.cardSelected : ""}`.trim(),
|
|
1901
1911
|
onClick: () => s(c.value),
|
|
1902
1912
|
children: [
|
|
1903
1913
|
c.image && /* @__PURE__ */ A.jsx(
|
|
@@ -1905,11 +1915,11 @@ const Gn = ({ question: e }) => {
|
|
|
1905
1915
|
{
|
|
1906
1916
|
src: c.image,
|
|
1907
1917
|
alt: c.label,
|
|
1908
|
-
className:
|
|
1918
|
+
className: w.cardImage
|
|
1909
1919
|
}
|
|
1910
1920
|
),
|
|
1911
|
-
/* @__PURE__ */ A.jsx("span", { className:
|
|
1912
|
-
c.description && /* @__PURE__ */ A.jsx("span", { className:
|
|
1921
|
+
/* @__PURE__ */ A.jsx("span", { className: w.cardLabel, children: c.label }),
|
|
1922
|
+
c.description && /* @__PURE__ */ A.jsx("span", { className: w.cardDescription, children: c.description })
|
|
1913
1923
|
]
|
|
1914
1924
|
},
|
|
1915
1925
|
String(c.value)
|
|
@@ -1918,14 +1928,14 @@ const Gn = ({ question: e }) => {
|
|
|
1918
1928
|
}
|
|
1919
1929
|
) });
|
|
1920
1930
|
}, Wn = ({ question: e }) => {
|
|
1921
|
-
const { getAnswer: r, setAnswer: n, validationErrors: a } =
|
|
1922
|
-
return /* @__PURE__ */ A.jsxs("div", { className:
|
|
1923
|
-
/* @__PURE__ */ A.jsxs("label", { className:
|
|
1931
|
+
const { getAnswer: r, setAnswer: n, validationErrors: a } = $(), u = se(), s = r(e.key) === !0, f = a[e.key];
|
|
1932
|
+
return /* @__PURE__ */ A.jsxs("div", { className: w.toggleWrapper, children: [
|
|
1933
|
+
/* @__PURE__ */ A.jsxs("label", { className: w.toggleBare, children: [
|
|
1924
1934
|
/* @__PURE__ */ A.jsx(
|
|
1925
1935
|
"input",
|
|
1926
1936
|
{
|
|
1927
1937
|
type: "checkbox",
|
|
1928
|
-
className:
|
|
1938
|
+
className: w.toggleCheckbox,
|
|
1929
1939
|
checked: s,
|
|
1930
1940
|
onChange: () => {
|
|
1931
1941
|
u.trackPlatform({
|
|
@@ -1937,37 +1947,37 @@ const Gn = ({ question: e }) => {
|
|
|
1937
1947
|
}
|
|
1938
1948
|
}
|
|
1939
1949
|
),
|
|
1940
|
-
/* @__PURE__ */ A.jsxs("span", { className:
|
|
1941
|
-
/* @__PURE__ */ A.jsx("span", { className:
|
|
1942
|
-
e.description && /* @__PURE__ */ A.jsx("span", { className:
|
|
1950
|
+
/* @__PURE__ */ A.jsxs("span", { className: w.toggleLabelGroup, children: [
|
|
1951
|
+
/* @__PURE__ */ A.jsx("span", { className: w.toggleBareLabel, children: e.question }),
|
|
1952
|
+
e.description && /* @__PURE__ */ A.jsx("span", { className: w.toggleBareDescription, children: e.description })
|
|
1943
1953
|
] })
|
|
1944
1954
|
] }),
|
|
1945
|
-
f && /* @__PURE__ */ A.jsx("p", { className:
|
|
1955
|
+
f && /* @__PURE__ */ A.jsx("p", { className: w.fieldError, children: f })
|
|
1946
1956
|
] });
|
|
1947
1957
|
};
|
|
1948
|
-
function
|
|
1958
|
+
function Ye(e) {
|
|
1949
1959
|
return e.length === 0 ? "" : e.length <= 3 ? `(${e}` : e.length <= 6 ? `(${e.slice(0, 3)}) ${e.slice(3)}` : `(${e.slice(0, 3)}) ${e.slice(3, 6)}-${e.slice(6, 10)}`;
|
|
1950
1960
|
}
|
|
1951
|
-
function
|
|
1961
|
+
function Ke(e) {
|
|
1952
1962
|
return e.replace(/\D/g, "").slice(0, 10);
|
|
1953
1963
|
}
|
|
1954
1964
|
const Mn = ({ question: e }) => {
|
|
1955
|
-
const { getAnswer: r, setAnswer: n } =
|
|
1956
|
-
() =>
|
|
1957
|
-
), f =
|
|
1965
|
+
const { getAnswer: r, setAnswer: n } = $(), a = r(e.key) ?? "", [u, s] = N(
|
|
1966
|
+
() => Ye(Ke(a))
|
|
1967
|
+
), f = ae(
|
|
1958
1968
|
(P) => {
|
|
1959
|
-
const c =
|
|
1960
|
-
s(
|
|
1969
|
+
const c = Ke(P.target.value);
|
|
1970
|
+
s(Ye(c)), n(e.key, c);
|
|
1961
1971
|
},
|
|
1962
1972
|
[e.key, n]
|
|
1963
|
-
), d =
|
|
1964
|
-
const P =
|
|
1965
|
-
s(
|
|
1973
|
+
), d = ae(() => {
|
|
1974
|
+
const P = Ke(a);
|
|
1975
|
+
s(Ye(P));
|
|
1966
1976
|
}, [a]);
|
|
1967
1977
|
return /* @__PURE__ */ A.jsx(ke, { question: e, children: /* @__PURE__ */ A.jsx(
|
|
1968
1978
|
"input",
|
|
1969
1979
|
{
|
|
1970
|
-
className:
|
|
1980
|
+
className: w.input,
|
|
1971
1981
|
type: "tel",
|
|
1972
1982
|
inputMode: "numeric",
|
|
1973
1983
|
value: u,
|
|
@@ -1977,11 +1987,11 @@ const Mn = ({ question: e }) => {
|
|
|
1977
1987
|
}
|
|
1978
1988
|
) });
|
|
1979
1989
|
}, lA = /* @__PURE__ */ new Set(["input", "dropdown", "currency", "phone"]), In = ({ question: e }) => {
|
|
1980
|
-
const { getAnswer: r, setAnswer: n } =
|
|
1981
|
-
|
|
1990
|
+
const { getAnswer: r, setAnswer: n } = $(), a = se();
|
|
1991
|
+
_(() => {
|
|
1982
1992
|
r(e.key) === void 0 && (e.defaultValue !== void 0 ? n(e.key, e.defaultValue) : e.style === "toggle" && e.required && n(e.key, !1));
|
|
1983
1993
|
}, []);
|
|
1984
|
-
const u =
|
|
1994
|
+
const u = ae(() => {
|
|
1985
1995
|
lA.has(e.style) && a.trackPlatform({
|
|
1986
1996
|
inputViewEvent: { targetName: `partner-sdk-${e.key}` }
|
|
1987
1997
|
});
|
|
@@ -2037,7 +2047,7 @@ const Mn = ({ question: e }) => {
|
|
|
2037
2047
|
}
|
|
2038
2048
|
), Tn = () => {
|
|
2039
2049
|
var o;
|
|
2040
|
-
const { pages: e, currentPageIndex: r, goToNext: n, goToPrev: a } =
|
|
2050
|
+
const { pages: e, currentPageIndex: r, goToNext: n, goToPrev: a } = $(), u = se(), s = r === 0, f = r === e.length - 1, d = (o = e[r]) == null ? void 0 : o.id, P = () => {
|
|
2041
2051
|
u.trackPlatform({
|
|
2042
2052
|
buttonClickEvent: {
|
|
2043
2053
|
targetName: f ? "partner-sdk-submit" : `partner-sdk-continue-${d}`
|
|
@@ -2074,10 +2084,10 @@ const Mn = ({ question: e }) => {
|
|
|
2074
2084
|
)
|
|
2075
2085
|
] });
|
|
2076
2086
|
}, Jn = () => {
|
|
2077
|
-
const { pages: e, currentPageIndex: r, getAnswer: n } =
|
|
2078
|
-
|
|
2087
|
+
const { pages: e, currentPageIndex: r, getAnswer: n } = $(), a = se(), u = e[r], s = E(null), f = E(!0);
|
|
2088
|
+
_(() => {
|
|
2079
2089
|
a.trackPlatform({ pageViewEvent: {} });
|
|
2080
|
-
}, [r]),
|
|
2090
|
+
}, [r]), _(() => {
|
|
2081
2091
|
if (f.current) {
|
|
2082
2092
|
f.current = !1;
|
|
2083
2093
|
return;
|
|
@@ -2094,7 +2104,7 @@ const Mn = ({ question: e }) => {
|
|
|
2094
2104
|
}
|
|
2095
2105
|
P.scrollTop = 0;
|
|
2096
2106
|
}, [r]);
|
|
2097
|
-
const d =
|
|
2107
|
+
const d = ze(
|
|
2098
2108
|
() => u ? OA(u, n) : null,
|
|
2099
2109
|
[u, n]
|
|
2100
2110
|
);
|
|
@@ -2168,8 +2178,8 @@ function Un(e, r, n) {
|
|
|
2168
2178
|
return e.startsWith("http://") || e.startsWith("https://") ? `url-${encodeURIComponent(e)}(${r},${n})` : `${e}(${r},${n})`;
|
|
2169
2179
|
}
|
|
2170
2180
|
function SA(e, r) {
|
|
2171
|
-
const n = (r == null ? void 0 : r.mapboxAccessToken) ?? Kn, a = (r == null ? void 0 : r.mapPinMarker) ?? Ln, u = (r == null ? void 0 : r.width) ?? En, s = (r == null ? void 0 : r.height) ?? Qn, f = (r == null ? void 0 : r.zoom) ?? Cn, [d, P] =
|
|
2172
|
-
return
|
|
2181
|
+
const n = (r == null ? void 0 : r.mapboxAccessToken) ?? Kn, a = (r == null ? void 0 : r.mapPinMarker) ?? Ln, u = (r == null ? void 0 : r.width) ?? En, s = (r == null ? void 0 : r.height) ?? Qn, f = (r == null ? void 0 : r.zoom) ?? Cn, [d, P] = N(void 0), [c, o] = N("loading");
|
|
2182
|
+
return _(() => {
|
|
2173
2183
|
o("loading");
|
|
2174
2184
|
const v = [
|
|
2175
2185
|
e.street1,
|
|
@@ -2181,17 +2191,17 @@ function SA(e, r) {
|
|
|
2181
2191
|
async function O() {
|
|
2182
2192
|
var R, B;
|
|
2183
2193
|
try {
|
|
2184
|
-
const
|
|
2194
|
+
const T = `${Nn}/${encodeURIComponent(v)}.json?access_token=${n}&limit=1`, G = await fetch(T);
|
|
2185
2195
|
if (!G.ok || i) {
|
|
2186
2196
|
i || o("error");
|
|
2187
2197
|
return;
|
|
2188
2198
|
}
|
|
2189
|
-
const
|
|
2190
|
-
if (!
|
|
2199
|
+
const y = (B = (R = (await G.json()).features) == null ? void 0 : R[0]) == null ? void 0 : B.center;
|
|
2200
|
+
if (!y || i) {
|
|
2191
2201
|
i || o("error");
|
|
2192
2202
|
return;
|
|
2193
2203
|
}
|
|
2194
|
-
const [q,
|
|
2204
|
+
const [q, I] = y, C = Un(a, q, I), X = `${Yn}/${C}/${q},${I},${f}/${u}x${s}@2x?access_token=${n}&attribution=false&logo=false`;
|
|
2195
2205
|
i || P(X);
|
|
2196
2206
|
} catch {
|
|
2197
2207
|
i || o("error");
|
|
@@ -2332,17 +2342,17 @@ const rc = ({
|
|
|
2332
2342
|
const { url: s } = SA(e, {
|
|
2333
2343
|
mapboxAccessToken: n,
|
|
2334
2344
|
mapPinMarker: a
|
|
2335
|
-
}), [f, d] =
|
|
2336
|
-
var
|
|
2345
|
+
}), [f, d] = N(!1), { pages: P, currentPageIndex: c, getAnswer: o, goToPage: v } = $(), i = se(), O = o("home.bedrooms"), R = o("home.bathrooms.full"), B = o("home.bathrooms.half"), T = Xn(R, B), G = o("home.above_grade_sq_ft"), K = o("home.year_built"), y = ze(() => {
|
|
2346
|
+
var I;
|
|
2337
2347
|
const q = [];
|
|
2338
|
-
for (let
|
|
2339
|
-
const X = P[
|
|
2348
|
+
for (let C = 1; C < c; C++) {
|
|
2349
|
+
const X = P[C];
|
|
2340
2350
|
if (!X) continue;
|
|
2341
|
-
const
|
|
2342
|
-
|
|
2343
|
-
pageIndex:
|
|
2344
|
-
title: ((
|
|
2345
|
-
labels:
|
|
2351
|
+
const J = OA(X, o), ee = tc(J, o);
|
|
2352
|
+
ee.length > 0 && q.push({
|
|
2353
|
+
pageIndex: C,
|
|
2354
|
+
title: ((I = X.stepper) == null ? void 0 : I.label) || X.title,
|
|
2355
|
+
labels: ee
|
|
2346
2356
|
});
|
|
2347
2357
|
}
|
|
2348
2358
|
return q;
|
|
@@ -2396,15 +2406,15 @@ const rc = ({
|
|
|
2396
2406
|
/* @__PURE__ */ A.jsxs(
|
|
2397
2407
|
"div",
|
|
2398
2408
|
{
|
|
2399
|
-
className: `${l.reviewStatsGrid} ${
|
|
2409
|
+
className: `${l.reviewStatsGrid} ${y.length > 0 ? l.reviewStatsGridWithDivider : ""}`.trim(),
|
|
2400
2410
|
children: [
|
|
2401
2411
|
O !== void 0 && /* @__PURE__ */ A.jsxs("span", { className: l.reviewStatItem, children: [
|
|
2402
2412
|
/* @__PURE__ */ A.jsx("span", { className: l.reviewStatIcon, children: /* @__PURE__ */ A.jsx(Fn, {}) }),
|
|
2403
2413
|
O
|
|
2404
2414
|
] }),
|
|
2405
|
-
|
|
2415
|
+
T !== void 0 && /* @__PURE__ */ A.jsxs("span", { className: l.reviewStatItem, children: [
|
|
2406
2416
|
/* @__PURE__ */ A.jsx("span", { className: l.reviewStatIcon, children: /* @__PURE__ */ A.jsx(_n, {}) }),
|
|
2407
|
-
|
|
2417
|
+
T
|
|
2408
2418
|
] }),
|
|
2409
2419
|
G !== void 0 && /* @__PURE__ */ A.jsxs("span", { className: l.reviewStatItem, children: [
|
|
2410
2420
|
/* @__PURE__ */ A.jsx("span", { className: l.reviewStatIcon, children: /* @__PURE__ */ A.jsx($n, {}) }),
|
|
@@ -2418,7 +2428,7 @@ const rc = ({
|
|
|
2418
2428
|
]
|
|
2419
2429
|
}
|
|
2420
2430
|
),
|
|
2421
|
-
|
|
2431
|
+
y.map((q) => /* @__PURE__ */ A.jsx(
|
|
2422
2432
|
nc,
|
|
2423
2433
|
{
|
|
2424
2434
|
title: q.title,
|
|
@@ -2435,7 +2445,7 @@ function nc({
|
|
|
2435
2445
|
labels: r,
|
|
2436
2446
|
onEdit: n
|
|
2437
2447
|
}) {
|
|
2438
|
-
const [a, u] =
|
|
2448
|
+
const [a, u] = N(!1), s = a ? r : r.slice(0, iA), f = r.length - iA;
|
|
2439
2449
|
return /* @__PURE__ */ A.jsxs("div", { className: l.reviewSection, children: [
|
|
2440
2450
|
/* @__PURE__ */ A.jsxs("div", { className: l.reviewSectionHeader, children: [
|
|
2441
2451
|
/* @__PURE__ */ A.jsx("span", { className: l.reviewSectionTitle, children: e }),
|
|
@@ -2649,7 +2659,7 @@ var dc = {
|
|
|
2649
2659
|
*/
|
|
2650
2660
|
const Xe = (e, r, n, a) => {
|
|
2651
2661
|
const u = KA(
|
|
2652
|
-
({ color: s = "currentColor", size: f = 24, stroke: d = 2, title: P, className: c, children: o, ...v }, i) =>
|
|
2662
|
+
({ color: s = "currentColor", size: f = 24, stroke: d = 2, title: P, className: c, children: o, ...v }, i) => Te(
|
|
2653
2663
|
"svg",
|
|
2654
2664
|
{
|
|
2655
2665
|
ref: i,
|
|
@@ -2662,8 +2672,8 @@ const Xe = (e, r, n, a) => {
|
|
|
2662
2672
|
...v
|
|
2663
2673
|
},
|
|
2664
2674
|
[
|
|
2665
|
-
P &&
|
|
2666
|
-
...a.map(([O, R]) =>
|
|
2675
|
+
P && Te("title", { key: "svg-title" }, P),
|
|
2676
|
+
...a.map(([O, R]) => Te(O, R)),
|
|
2667
2677
|
...Array.isArray(o) ? o : [o]
|
|
2668
2678
|
]
|
|
2669
2679
|
)
|
|
@@ -2676,7 +2686,7 @@ const Xe = (e, r, n, a) => {
|
|
|
2676
2686
|
* This source code is licensed under the MIT license.
|
|
2677
2687
|
* See the LICENSE file in the root directory of this source tree.
|
|
2678
2688
|
*/
|
|
2679
|
-
const Hc = [["path", { d: "M5 9a2 2 0 1 0 4 0a2 2 0 1 0 -4 0", key: "svg-0" }], ["path", { d: "M22 17v-3h-20", key: "svg-1" }], ["path", { d: "M2 8v9", key: "svg-2" }], ["path", { d: "M12 14h10v-2a3 3 0 0 0 -3 -3h-7v5", key: "svg-3" }]],
|
|
2689
|
+
const Hc = [["path", { d: "M5 9a2 2 0 1 0 4 0a2 2 0 1 0 -4 0", key: "svg-0" }], ["path", { d: "M22 17v-3h-20", key: "svg-1" }], ["path", { d: "M2 8v9", key: "svg-2" }], ["path", { d: "M12 14h10v-2a3 3 0 0 0 -3 -3h-7v5", key: "svg-3" }]], gA = Xe("outline", "bed", "Bed", Hc);
|
|
2680
2690
|
/**
|
|
2681
2691
|
* @license @tabler/icons-react v3.36.1 - MIT
|
|
2682
2692
|
*
|
|
@@ -2704,7 +2714,7 @@ const pc = [["path", { d: "M12 17.75l-6.172 3.245l1.179 -6.873l-5 -4.867l6.9 -1l
|
|
|
2704
2714
|
* This source code is licensed under the MIT license.
|
|
2705
2715
|
* See the LICENSE file in the root directory of this source tree.
|
|
2706
2716
|
*/
|
|
2707
|
-
const bc = [["path", { d: "M19 3v12h-5c-.023 -3.681 .184 -7.406 5 -12m0 12v6h-1v-3m-10 -14v17m-3 -17v3a3 3 0 1 0 6 0v-3", key: "svg-0" }]], wc = Xe("outline", "tools-kitchen-2", "ToolsKitchen2", bc),
|
|
2717
|
+
const bc = [["path", { d: "M19 3v12h-5c-.023 -3.681 .184 -7.406 5 -12m0 12v6h-1v-3m-10 -14v17m-3 -17v3a3 3 0 1 0 6 0v-3", key: "svg-0" }]], wc = Xe("outline", "tools-kitchen-2", "ToolsKitchen2", bc), me = { size: 20, stroke: 1.5 }, vc = () => /* @__PURE__ */ A.jsx(wc, { ...me }), Oc = () => /* @__PURE__ */ A.jsx(gA, { ...me }), zA = () => /* @__PURE__ */ A.jsx(ic, { ...me }), mA = () => /* @__PURE__ */ A.jsx(kc, { ...me }), Sc = () => /* @__PURE__ */ A.jsx(gA, { ...me }), gc = () => /* @__PURE__ */ A.jsx(yc, { ...me }), zc = {
|
|
2708
2718
|
id: "features",
|
|
2709
2719
|
title: "Tell us about your home's features",
|
|
2710
2720
|
subtitle: "Check all that apply. This helps us price your home accurately.",
|
|
@@ -2979,7 +2989,7 @@ const bc = [["path", { d: "M19 3v12h-5c-.023 -3.681 .184 -7.406 5 -12m0 12v6h-1v
|
|
|
2979
2989
|
// ── Exterior (group header) ───────────────────────────────────────────
|
|
2980
2990
|
{
|
|
2981
2991
|
id: "exterior",
|
|
2982
|
-
icon: /* @__PURE__ */ A.jsx(
|
|
2992
|
+
icon: /* @__PURE__ */ A.jsx(zA, {}),
|
|
2983
2993
|
title: "Exterior",
|
|
2984
2994
|
questions: []
|
|
2985
2995
|
},
|
|
@@ -3536,7 +3546,7 @@ const bc = [["path", { d: "M19 3v12h-5c-.023 -3.681 .184 -7.406 5 -12m0 12v6h-1v
|
|
|
3536
3546
|
{
|
|
3537
3547
|
id: "exterior",
|
|
3538
3548
|
title: "Exterior",
|
|
3539
|
-
icon: /* @__PURE__ */ A.jsx(
|
|
3549
|
+
icon: /* @__PURE__ */ A.jsx(zA, {}),
|
|
3540
3550
|
questions: [
|
|
3541
3551
|
{
|
|
3542
3552
|
key: "home.condition.exterior.roof_siding",
|
|
@@ -3742,7 +3752,7 @@ const bc = [["path", { d: "M19 3v12h-5c-.023 -3.681 .184 -7.406 5 -12m0 12v6h-1v
|
|
|
3742
3752
|
{
|
|
3743
3753
|
id: "overall",
|
|
3744
3754
|
title: "Overall Assessment",
|
|
3745
|
-
icon: /* @__PURE__ */ A.jsx(
|
|
3755
|
+
icon: /* @__PURE__ */ A.jsx(gc, {}),
|
|
3746
3756
|
questions: [
|
|
3747
3757
|
{
|
|
3748
3758
|
key: "home.kitchen_seller_score",
|
|
@@ -3951,10 +3961,10 @@ function Oa({
|
|
|
3951
3961
|
onError: R,
|
|
3952
3962
|
onEditAddress: B
|
|
3953
3963
|
}) {
|
|
3954
|
-
const G = Re(s ?? { theme: "minimal" }), K =
|
|
3964
|
+
const G = Re(s ?? { theme: "minimal" }), K = ze(
|
|
3955
3965
|
() => [
|
|
3956
3966
|
oc,
|
|
3957
|
-
|
|
3967
|
+
zc,
|
|
3958
3968
|
_c,
|
|
3959
3969
|
Aa,
|
|
3960
3970
|
ta
|
|
@@ -4010,7 +4020,7 @@ function Sa({
|
|
|
4010
4020
|
onConfirm: n,
|
|
4011
4021
|
onEdit: a
|
|
4012
4022
|
}) {
|
|
4013
|
-
const u =
|
|
4023
|
+
const u = se(), f = Re(r), [d, P] = N(""), [c, o] = N(!1), [v, i] = N(null), O = () => {
|
|
4014
4024
|
if (!c && !d.trim()) {
|
|
4015
4025
|
i("Please enter a unit number or select 'No unit number'");
|
|
4016
4026
|
return;
|
|
@@ -4027,7 +4037,7 @@ function Sa({
|
|
|
4027
4037
|
}), o(!c), c || (P(""), i(null));
|
|
4028
4038
|
}, B = (G) => {
|
|
4029
4039
|
P(G.target.value), v && i(null);
|
|
4030
|
-
},
|
|
4040
|
+
}, T = () => {
|
|
4031
4041
|
u.trackPlatform({
|
|
4032
4042
|
inputViewEvent: { targetName: "partner-sdk-unit-input" }
|
|
4033
4043
|
});
|
|
@@ -4049,7 +4059,7 @@ function Sa({
|
|
|
4049
4059
|
placeholder: "#1234",
|
|
4050
4060
|
value: d,
|
|
4051
4061
|
onChange: B,
|
|
4052
|
-
onFocus:
|
|
4062
|
+
onFocus: T,
|
|
4053
4063
|
disabled: c
|
|
4054
4064
|
}
|
|
4055
4065
|
)
|
|
@@ -4078,12 +4088,12 @@ function Sa({
|
|
|
4078
4088
|
) })
|
|
4079
4089
|
] });
|
|
4080
4090
|
}
|
|
4081
|
-
const ka = "_container_1vap7_3", pa = "_mapImage_1vap7_13", ya = "_mapImageLoaded_1vap7_22",
|
|
4091
|
+
const ka = "_container_1vap7_3", pa = "_mapImage_1vap7_13", ya = "_mapImageLoaded_1vap7_22", Le = {
|
|
4082
4092
|
container: ka,
|
|
4083
4093
|
mapImage: pa,
|
|
4084
4094
|
mapImageLoaded: ya
|
|
4085
4095
|
};
|
|
4086
|
-
function
|
|
4096
|
+
function ga({
|
|
4087
4097
|
address: e,
|
|
4088
4098
|
appearance: r,
|
|
4089
4099
|
mapboxAccessToken: n,
|
|
@@ -4101,33 +4111,33 @@ function za({
|
|
|
4101
4111
|
width: u,
|
|
4102
4112
|
height: s,
|
|
4103
4113
|
zoom: f
|
|
4104
|
-
}), [O, R] =
|
|
4114
|
+
}), [O, R] = N(!1), B = E(P);
|
|
4105
4115
|
B.current = P;
|
|
4106
|
-
const
|
|
4107
|
-
|
|
4108
|
-
var
|
|
4109
|
-
i === "error" && ((
|
|
4116
|
+
const T = E(c);
|
|
4117
|
+
T.current = c, _(() => {
|
|
4118
|
+
var y;
|
|
4119
|
+
i === "error" && ((y = T.current) == null || y.call(T, new Error("Failed to load map for address")));
|
|
4110
4120
|
}, [i]);
|
|
4111
4121
|
const G = () => {
|
|
4112
|
-
var
|
|
4113
|
-
R(!0), (
|
|
4122
|
+
var y;
|
|
4123
|
+
R(!0), (y = B.current) == null || y.call(B);
|
|
4114
4124
|
}, K = {
|
|
4115
4125
|
...o,
|
|
4116
4126
|
...d ? { borderRadius: d } : {}
|
|
4117
4127
|
};
|
|
4118
|
-
return /* @__PURE__ */ A.jsx("div", { className:
|
|
4128
|
+
return /* @__PURE__ */ A.jsx("div", { className: Le.container, style: K, children: v && /* @__PURE__ */ A.jsx(
|
|
4119
4129
|
"img",
|
|
4120
4130
|
{
|
|
4121
4131
|
src: v,
|
|
4122
4132
|
alt: "Map",
|
|
4123
|
-
className: `${
|
|
4133
|
+
className: `${Le.mapImage} ${O ? Le.mapImageLoaded : ""}`.trim(),
|
|
4124
4134
|
onLoad: G
|
|
4125
4135
|
}
|
|
4126
4136
|
) });
|
|
4127
4137
|
}
|
|
4128
4138
|
export {
|
|
4129
4139
|
va as AddressEntry,
|
|
4130
|
-
|
|
4140
|
+
ga as AddressMap,
|
|
4131
4141
|
Sa as AddressUnitConfirmation,
|
|
4132
4142
|
wa as OpendoorProvider,
|
|
4133
4143
|
Oa as QualificationQuestions,
|