@getcredify/credify-insurance-widget 1.44.0 → 1.45.0
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/README.md +5 -5
- package/dist/{address-BEVwov8q-CuX4iOBo.js → address-BEVwov8q-BHA-1zzm.js} +1 -1
- package/dist/api-BLmgLEy-.js +51 -0
- package/dist/{car-CR69ZjJ2.js → car-B8Sfr377.js} +1 -1
- package/dist/{check-Bo3wjuln.js → check-B8qTJ1zD.js} +1 -1
- package/dist/{copy-applicant-offer-CqzfNhkJ-C01V9k7v.js → copy-applicant-offer-BPo842pD-COcsLcbo.js} +3 -3
- package/dist/{copy-from-record-BNP6CFFR-B0wsM313.js → copy-from-record-DL503itm-B05F775l.js} +10 -10
- package/dist/{coverageDerivation-CV2ORogj-CEEm5ZWr.js → coverageDerivation-CV2ORogj-D4IAkVAP.js} +1 -1
- package/dist/{fixtures-ijbZ16Zg-C9Egb9wf.js → fixtures-ijbZ16Zg-CB6WPBEx.js} +1 -1
- package/dist/{household-prefill-CmtB9R3R-D86kYzTo.js → household-prefill-DJ-Y0NcP-TwmnYrqf.js} +30 -30
- package/dist/{householdPrefill-DLm3pxFH-BWVN4BLJ.js → householdPrefill-DLm3pxFH-Gudko0w4.js} +1 -1
- package/dist/iframe/assets/{address-BEVwov8q-BckjuR7s.js → address-BEVwov8q-RcBegFnh.js} +1 -1
- package/dist/iframe/assets/{car-DKll0kXc.js → car-DQIQf4LA.js} +1 -1
- package/dist/iframe/assets/{check-B9ojZKSs.js → check-BiNh2j82.js} +1 -1
- package/dist/iframe/assets/{copy-applicant-offer-CqzfNhkJ-DJkKq7un.js → copy-applicant-offer-BPo842pD-Cj352DzN.js} +1 -1
- package/dist/iframe/assets/{copy-from-record-BNP6CFFR-Dk7QPvpr.js → copy-from-record-DL503itm-B7hBbUhh.js} +2 -2
- package/dist/iframe/assets/{coverageDerivation-CV2ORogj-BaQlJ22H.js → coverageDerivation-CV2ORogj-D3oRqD1U.js} +1 -1
- package/dist/iframe/assets/{dob-calendar-RIJ5S6YU-C3ZYmy3v.js → dob-calendar-RIJ5S6YU-vOGgSHSK.js} +1 -1
- package/dist/iframe/assets/{fixtures-ijbZ16Zg-B0KKADMf.js → fixtures-ijbZ16Zg-BmEw6uDw.js} +1 -1
- package/dist/iframe/assets/household-prefill-DJ-Y0NcP-z6AnkJcR.js +1 -0
- package/dist/iframe/assets/{householdPrefill-DLm3pxFH-DNBBTd54.js → householdPrefill-DLm3pxFH-BZXueCa7.js} +1 -1
- package/dist/iframe/assets/iframe-ku_diR98.js +107 -0
- package/dist/iframe/assets/{index-D81Toecg.js → index-IiQzPjFm.js} +2 -2
- package/dist/iframe/assets/intake-review-panel-CWz2efw4-CP-sEc-j.js +1 -0
- package/dist/iframe/assets/{mockJump-hNzgzUmO-B4HifTQZ.js → mockJump-H1NFTDah-yzeq4yea.js} +1 -1
- package/dist/iframe/assets/payload-CQc06PZC-BxklUdmW.js +1 -0
- package/dist/iframe/assets/{question-list-DFjWa8ZA-5HX-Q_DR.js → question-list-CcoyuyQD-DCzTkzeE.js} +11 -11
- package/dist/iframe/assets/rates-panel-MXCbnqpL-TFkvW-DN.js +17 -0
- package/dist/iframe/assets/{review-panel-C_WxX33U-BnudlA3G.js → review-panel-CFVxGU7F-CqUUCDLK.js} +2 -2
- package/dist/iframe/assets/stage-BSRsu--X-BAWfI2cm.js +1 -0
- package/dist/iframe/assets/validation-ELW00AsL-ytOMlsxG.js +3 -0
- package/dist/iframe/assets/{vehicleCoverage-CBWORI1l-Bs6c4Xhh.js → vehicleCoverage-DI2dKrnI-DVXwPfxd.js} +1 -1
- package/dist/iframe/assets/{visibility-CKRGC3Il-DVTBboJH.js → visibility-CyRoLvg5-CxslMJYX.js} +1 -1
- package/dist/iframe/assets/waves-vdL6w3zC.js +16 -0
- package/dist/iframe/iframe.html +1 -1
- package/dist/{index-7nmHdjZ4.js → index-IZRzz1Mi.js} +1 -1
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +103 -103
- package/dist/{intake-review-panel-D27t8CZO-CKLXjEb0.js → intake-review-panel-CWz2efw4-BQ-Nog4K.js} +27 -27
- package/dist/{mockJump-hNzgzUmO-De8oea8T.js → mockJump-H1NFTDah-CkqZVQxf.js} +1 -1
- package/dist/{payload-DrGFAxms-CivFCNuj.js → payload-CQc06PZC-KA6cBCno.js} +26 -26
- package/dist/{question-list-DFjWa8ZA-sWgoo34K.js → question-list-CcoyuyQD-_c4J4n0G.js} +51 -51
- package/dist/rates-panel-MXCbnqpL-DGYBAFto.js +1323 -0
- package/dist/{review-panel-C_WxX33U-qkUKI77r.js → review-panel-CFVxGU7F-CtO3WmnD.js} +51 -51
- package/dist/stage-BSRsu--X-DJs8ps3K.js +197 -0
- package/dist/utils/branding.d.ts +1 -1
- package/dist/utils/prefill.d.ts +2 -4
- package/dist/{validation-D42QXxck-DFkyiEd-.js → validation-ELW00AsL-C4xgPdbr.js} +341 -343
- package/dist/{vehicleCoverage-CBWORI1l-Br309K1G.js → vehicleCoverage-DI2dKrnI-Lq9BCjQm.js} +3 -3
- package/dist/{visibility-CKRGC3Il-SsuTwW3e.js → visibility-CyRoLvg5-DNRgF2sH.js} +6 -6
- package/dist/waves-DM8Lgssk.js +71 -0
- package/dist/{widget-Bc0CD2Yh.js → widget-3S1xkGig.js} +2972 -2827
- package/package.json +2 -2
- package/dist/api-DYP3b3gY.js +0 -51
- package/dist/core-CrEw_I-E-D_5b2Ij3.js +0 -417
- package/dist/iframe/assets/core-CrEw_I-E-Cgrp_zkJ.js +0 -16
- package/dist/iframe/assets/household-prefill-CmtB9R3R-DtfByJ8T.js +0 -1
- package/dist/iframe/assets/iframe-Chy4dD4i.js +0 -107
- package/dist/iframe/assets/intake-review-panel-D27t8CZO-CyXFTi_6.js +0 -1
- package/dist/iframe/assets/payload-DrGFAxms-CKeiScMv.js +0 -1
- package/dist/iframe/assets/rates-panel-BSFiWEZX-CUbwWzwJ.js +0 -17
- package/dist/iframe/assets/stage-knShj71W-BrRsgDlE.js +0 -1
- package/dist/iframe/assets/validation-D42QXxck-DJUS31-5.js +0 -3
- package/dist/rates-panel-BSFiWEZX-D2Z8IzSh.js +0 -1001
- package/dist/stage-knShj71W-Cndh8rxW.js +0 -197
package/dist/{intake-review-panel-D27t8CZO-CKLXjEb0.js → intake-review-panel-CWz2efw4-BQ-Nog4K.js}
RENAMED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import { t as
|
|
3
|
-
import { S as
|
|
4
|
-
import { o as _, n as A, r as
|
|
5
|
-
import { useState as k, useMemo as g, useCallback as
|
|
6
|
-
import { jsxs as t, jsx as s, Fragment as
|
|
7
|
-
import { C as
|
|
1
|
+
import { t as j, I as L, K as w, L as h, G as q, U as R, W as S } from "./widget-3S1xkGig.js";
|
|
2
|
+
import { t as $ } from "./question-list-CcoyuyQD-_c4J4n0G.js";
|
|
3
|
+
import { S as z, w as M, D as U, x as N, P as W } from "./review-panel-CFVxGU7F-CtO3WmnD.js";
|
|
4
|
+
import { o as _, n as A, r as D } from "./stage-BSRsu--X-DJs8ps3K.js";
|
|
5
|
+
import { useState as k, useMemo as g, useCallback as G } from "react";
|
|
6
|
+
import { jsxs as t, jsx as s, Fragment as H } from "react/jsx-runtime";
|
|
7
|
+
import { C as O } from "./check-B8qTJ1zD.js";
|
|
8
8
|
(function() {
|
|
9
9
|
if (typeof a > "u")
|
|
10
10
|
var a = { env: {} };
|
|
11
11
|
})();
|
|
12
|
-
var de = /* @__PURE__ */
|
|
12
|
+
var de = /* @__PURE__ */ j({ IntakeReviewPanel: () => Q }), C = (a) => `${a} ${a === 1 ? "answer needs" : "answers need"} your attention`, J = ({ label: a, open: r, onClick: i }) => /* @__PURE__ */ t("button", {
|
|
13
13
|
type: "button",
|
|
14
14
|
onClick: i,
|
|
15
15
|
"aria-expanded": r,
|
|
16
16
|
"aria-label": r ? `Done editing ${a}` : `Edit ${a}`,
|
|
17
17
|
className: h("cds-inline-flex cds-items-center cds-gap-1 cds-rounded cds-px-2 cds-py-1 cds-text-xs cds-font-semibold cds-text-fg hover:cds-bg-highlight", q),
|
|
18
|
-
children: [s(r ?
|
|
18
|
+
children: [s(r ? O : W, {
|
|
19
19
|
"aria-hidden": "true",
|
|
20
20
|
className: "cds-h-3.5 cds-w-3.5"
|
|
21
21
|
}), r ? "Done" : "Edit"]
|
|
22
|
-
}),
|
|
23
|
-
let [
|
|
22
|
+
}), Q = ({ stages: a, questionsByStage: r, values: i, quoteId: K, loading: f, busy: o, error: I, suppressedKeys: c, onPatch: P, onConfirm: B }) => {
|
|
23
|
+
let [E, p] = k(null), [b, F] = k(!1), y = g(() => a.filter((e) => !L.has(e)), [a]), l = g(() => y.map((e) => {
|
|
24
24
|
let d = r[e] ?? [];
|
|
25
25
|
return {
|
|
26
26
|
stage: e,
|
|
27
27
|
questions: d,
|
|
28
|
-
rows:
|
|
28
|
+
rows: D({
|
|
29
29
|
questions: d,
|
|
30
30
|
values: i,
|
|
31
31
|
stageKey: e,
|
|
@@ -48,14 +48,14 @@ var de = /* @__PURE__ */ V({ IntakeReviewPanel: () => O }), C = (a) => `${a} ${a
|
|
|
48
48
|
r,
|
|
49
49
|
i,
|
|
50
50
|
c
|
|
51
|
-
]), x = g(() => l.filter((e) => !e.validation.isValid), [l]), m = x.reduce((e, d) => e + d.validation.issues.length, 0),
|
|
51
|
+
]), x = g(() => l.filter((e) => !e.validation.isValid), [l]), m = x.reduce((e, d) => e + d.validation.issues.length, 0), T = G((e) => {
|
|
52
52
|
p(e), requestAnimationFrame(() => {
|
|
53
53
|
document.getElementById(`intake-review-${e}`)?.scrollIntoView?.({
|
|
54
54
|
behavior: "smooth",
|
|
55
55
|
block: "start"
|
|
56
56
|
});
|
|
57
57
|
});
|
|
58
|
-
}, []),
|
|
58
|
+
}, []), V = !f && !o && m === 0 && b;
|
|
59
59
|
return f ? /* @__PURE__ */ t("div", {
|
|
60
60
|
className: "cds-py-12 cds-text-center",
|
|
61
61
|
"aria-live": "polite",
|
|
@@ -87,7 +87,7 @@ var de = /* @__PURE__ */ V({ IntakeReviewPanel: () => O }), C = (a) => `${a} ${a
|
|
|
87
87
|
children: x.map((e) => /* @__PURE__ */ t("li", { children: [
|
|
88
88
|
/* @__PURE__ */ s("button", {
|
|
89
89
|
type: "button",
|
|
90
|
-
onClick: () =>
|
|
90
|
+
onClick: () => T(e.stage),
|
|
91
91
|
className: h("cds-font-semibold cds-text-fg cds-underline", q),
|
|
92
92
|
children: w(e.stage).short
|
|
93
93
|
}),
|
|
@@ -98,21 +98,21 @@ var de = /* @__PURE__ */ V({ IntakeReviewPanel: () => O }), C = (a) => `${a} ${a
|
|
|
98
98
|
})]
|
|
99
99
|
}) : null,
|
|
100
100
|
l.map((e) => {
|
|
101
|
-
let d = w(e.stage).short, n =
|
|
101
|
+
let d = w(e.stage).short, n = E === e.stage, u = !e.validation.isValid;
|
|
102
102
|
return !n && !e.rows.length && !e.groups.length && !u ? null : /* @__PURE__ */ t("section", {
|
|
103
103
|
id: `intake-review-${e.stage}`,
|
|
104
104
|
className: h(N, u && "cds-border-warning"),
|
|
105
105
|
children: [/* @__PURE__ */ t("div", {
|
|
106
106
|
className: "cds-mb-2 cds-flex cds-items-center cds-justify-between",
|
|
107
107
|
children: [/* @__PURE__ */ s("h3", {
|
|
108
|
-
className:
|
|
108
|
+
className: z,
|
|
109
109
|
children: d
|
|
110
110
|
}), /* @__PURE__ */ s(J, {
|
|
111
111
|
label: d,
|
|
112
112
|
open: n,
|
|
113
113
|
onClick: () => p(n ? null : e.stage)
|
|
114
114
|
})]
|
|
115
|
-
}), n ? /* @__PURE__ */ s(
|
|
115
|
+
}), n ? /* @__PURE__ */ s($, {
|
|
116
116
|
questions: e.questions,
|
|
117
117
|
values: i,
|
|
118
118
|
errors: e.validation.errorsByKey,
|
|
@@ -120,14 +120,14 @@ var de = /* @__PURE__ */ V({ IntakeReviewPanel: () => O }), C = (a) => `${a} ${a
|
|
|
120
120
|
stageKey: e.stage,
|
|
121
121
|
quoteId: K,
|
|
122
122
|
suppressedKeys: c,
|
|
123
|
-
onPatch:
|
|
124
|
-
}) : /* @__PURE__ */ t(
|
|
123
|
+
onPatch: P
|
|
124
|
+
}) : /* @__PURE__ */ t(H, { children: [
|
|
125
125
|
u ? /* @__PURE__ */ s("p", {
|
|
126
126
|
className: "cds-mb-2 cds-text-sm cds-font-semibold cds-text-warning-foreground",
|
|
127
127
|
children: C(e.validation.issues.length)
|
|
128
128
|
}) : null,
|
|
129
|
-
e.rows.length ? /* @__PURE__ */ s(
|
|
130
|
-
e.groups.map((v) => /* @__PURE__ */ s(
|
|
129
|
+
e.rows.length ? /* @__PURE__ */ s(M, { rows: e.rows }) : null,
|
|
130
|
+
e.groups.map((v) => /* @__PURE__ */ s(U, { group: v }, v.groupKey))
|
|
131
131
|
] })]
|
|
132
132
|
}, e.stage);
|
|
133
133
|
}),
|
|
@@ -167,10 +167,10 @@ var de = /* @__PURE__ */ V({ IntakeReviewPanel: () => O }), C = (a) => `${a} ${a
|
|
|
167
167
|
]
|
|
168
168
|
})]
|
|
169
169
|
}),
|
|
170
|
-
/* @__PURE__ */ s(
|
|
171
|
-
/* @__PURE__ */ s(
|
|
172
|
-
disabled: !
|
|
173
|
-
onClick:
|
|
170
|
+
/* @__PURE__ */ s(R, { message: I }),
|
|
171
|
+
/* @__PURE__ */ s(S, {
|
|
172
|
+
disabled: !V,
|
|
173
|
+
onClick: B,
|
|
174
174
|
children: o ? "Submitting…" : "Confirm & see my quotes"
|
|
175
175
|
}),
|
|
176
176
|
/* @__PURE__ */ s("p", {
|
|
@@ -182,5 +182,5 @@ var de = /* @__PURE__ */ V({ IntakeReviewPanel: () => O }), C = (a) => `${a} ${a
|
|
|
182
182
|
};
|
|
183
183
|
export {
|
|
184
184
|
de as n,
|
|
185
|
-
|
|
185
|
+
Q as t
|
|
186
186
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { t as w,
|
|
1
|
+
import { t as w, s as d, F as E } from "./widget-3S1xkGig.js";
|
|
2
2
|
import { n as c, t as f } from "./types-LUGvo5ic-CiVRcsV9.js";
|
|
3
|
-
import { t as M, n as N } from "./address-BEVwov8q-
|
|
3
|
+
import { t as M, n as N } from "./address-BEVwov8q-BHA-1zzm.js";
|
|
4
4
|
(function() {
|
|
5
5
|
if (typeof t > "u")
|
|
6
6
|
var t = { env: {} };
|
|
7
7
|
})();
|
|
8
|
-
var
|
|
8
|
+
var k = /* @__PURE__ */ w({
|
|
9
9
|
REPEATABLE_GROUP_KEYS: () => h,
|
|
10
|
-
fromQuoteRecord: () =>
|
|
10
|
+
fromQuoteRecord: () => O,
|
|
11
11
|
normalizeEducationLevelValue: () => v,
|
|
12
12
|
normalizeIndustryValue: () => b,
|
|
13
13
|
normalizeOccupationValue: () => A,
|
|
@@ -25,30 +25,30 @@ var z = /* @__PURE__ */ w({
|
|
|
25
25
|
return e < 1 ? t : Math.min(e, p) * 100;
|
|
26
26
|
}, m = (t, e) => {
|
|
27
27
|
if (typeof t != "string" || !e) return t;
|
|
28
|
-
let
|
|
29
|
-
if (!
|
|
30
|
-
let n =
|
|
28
|
+
let a = t.trim();
|
|
29
|
+
if (!a || e[a]) return t;
|
|
30
|
+
let n = a.toLowerCase();
|
|
31
31
|
return Object.keys(e).find((i) => i.toLowerCase() === n || e[i]?.toLowerCase() === n) ?? t;
|
|
32
32
|
}, b = (t) => m(t, d.industry), v = (t) => m(t, d.education_level), A = (t) => m(t, E), j = (t) => {
|
|
33
|
-
let e = {},
|
|
33
|
+
let e = {}, a = Object.keys(t).filter((r) => !r.includes(f)), n = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set();
|
|
34
34
|
for (let [r, o] of Object.entries(t)) if (r.endsWith("__items") && Array.isArray(o)) {
|
|
35
35
|
let u = r.slice(0, -f.length);
|
|
36
|
-
i.add(u),
|
|
37
|
-
_ && typeof _ == "object" && Object.keys(_).forEach((
|
|
36
|
+
i.add(u), a.includes(u) && o.forEach((_) => {
|
|
37
|
+
_ && typeof _ == "object" && Object.keys(_).forEach((g) => n.add(g));
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
40
|
for (let [r, o] of Object.entries(t)) {
|
|
41
41
|
if (r.endsWith("__items")) {
|
|
42
42
|
let u = r.slice(0, -f.length);
|
|
43
|
-
if (!
|
|
43
|
+
if (!a.includes(u)) continue;
|
|
44
44
|
e[u] = Array.isArray(o) ? o.map((_) => j(_)) : o;
|
|
45
45
|
continue;
|
|
46
46
|
}
|
|
47
47
|
i.has(r) || n.has(r) || r.startsWith("__") || (e[r] = y.has(r) ? x(o) : L(o));
|
|
48
48
|
}
|
|
49
|
-
let
|
|
50
|
-
if (typeof
|
|
51
|
-
let r =
|
|
49
|
+
let s = e.auto_prior_carrier_name;
|
|
50
|
+
if (typeof s == "string" && s.trim() !== "") {
|
|
51
|
+
let r = s === "NoPriorInsurance";
|
|
52
52
|
if (e.auto_has_prior_insurance = !r, r) for (let o of [
|
|
53
53
|
"auto_prior_years",
|
|
54
54
|
"auto_prior_months",
|
|
@@ -83,13 +83,13 @@ var z = /* @__PURE__ */ w({
|
|
|
83
83
|
amount_paid_cents: _ * 100
|
|
84
84
|
};
|
|
85
85
|
})), e;
|
|
86
|
-
},
|
|
86
|
+
}, O = (t) => {
|
|
87
87
|
let e = {};
|
|
88
88
|
for (let [n, i] of Object.entries(t)) if (i != null) {
|
|
89
89
|
if (Array.isArray(i)) {
|
|
90
90
|
if (h.includes(n)) {
|
|
91
|
-
let
|
|
92
|
-
e[c(n)] =
|
|
91
|
+
let s = i.map((l) => l && typeof l == "object" ? O(l) : l);
|
|
92
|
+
e[c(n)] = s, e[n] = s.length ? "Yes" : "No";
|
|
93
93
|
}
|
|
94
94
|
continue;
|
|
95
95
|
}
|
|
@@ -101,27 +101,27 @@ var z = /* @__PURE__ */ w({
|
|
|
101
101
|
e[n] = P(i);
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
-
let
|
|
105
|
-
Array.isArray(
|
|
106
|
-
let i = n,
|
|
107
|
-
return typeof
|
|
104
|
+
let a = e[c("home_losses")];
|
|
105
|
+
Array.isArray(a) && (e[c("home_losses")] = a.map((n) => {
|
|
106
|
+
let i = n, s = i?.amount_paid_cents;
|
|
107
|
+
return typeof s == "number" ? {
|
|
108
108
|
...i,
|
|
109
|
-
amount_paid_cents: Math.round(
|
|
109
|
+
amount_paid_cents: Math.round(s / 100)
|
|
110
110
|
} : i;
|
|
111
111
|
}));
|
|
112
112
|
for (let [n, i] of Object.entries(e)) typeof i == "string" && /^\d{4}-\d{2}-\d{2}T/.test(i) && (e[n] = i.slice(0, 10));
|
|
113
113
|
for (let [n, i] of Object.entries(M)) {
|
|
114
114
|
if (e[n]) continue;
|
|
115
|
-
let
|
|
116
|
-
|
|
115
|
+
let s = N(t, i);
|
|
116
|
+
s && (e[n] = s);
|
|
117
117
|
}
|
|
118
118
|
return e;
|
|
119
119
|
};
|
|
120
120
|
export {
|
|
121
121
|
A as a,
|
|
122
122
|
b as i,
|
|
123
|
-
|
|
124
|
-
|
|
123
|
+
O as n,
|
|
124
|
+
k as o,
|
|
125
125
|
v as r,
|
|
126
126
|
j as s,
|
|
127
127
|
h as t
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { a4 as A, ag as ge, ah as ca, t as la,
|
|
2
|
-
import { o as ba, r as xa, s as ka, t as Un, W as Kn, H as Tt, S as wa } from "./core-CrEw_I-E-D_5b2Ij3.js";
|
|
1
|
+
import { a4 as A, ag as ge, ah as ca, t as la, ab as F, ak as da, al as ua, am as gn, G as z, an as ha, L as et, a5 as fa, ao as pa, ap as ma, aq as va, ar as ya, as as ga, at as Un, D as ba, O as xa, au as ka } from "./widget-3S1xkGig.js";
|
|
3
2
|
import { n as Ue } from "./types-LUGvo5ic-CiVRcsV9.js";
|
|
4
|
-
import { s as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { k as
|
|
7
|
-
import {
|
|
8
|
-
import { i as
|
|
9
|
-
import { t as
|
|
10
|
-
import { s as
|
|
11
|
-
import { c as
|
|
3
|
+
import { s as wa, a as _a } from "./address-BEVwov8q-BHA-1zzm.js";
|
|
4
|
+
import { _ as Ma, U as Ca, g as Sa, s as Ea } from "./householdPrefill-DLm3pxFH-Gudko0w4.js";
|
|
5
|
+
import { k as Na, n as Pa, u as Aa, c as $a, d as Ra, j as Oa, A as Ta } from "./visibility-CyRoLvg5-DNRgF2sH.js";
|
|
6
|
+
import { E as Da, w as La, p as Kr } from "./validation-ELW00AsL-C4xgPdbr.js";
|
|
7
|
+
import { i as Ia, a as Fa, t as Yr, u as Va, f as Ba, n as Ha, r as za, s as ja, p as Wa } from "./vehicleCoverage-DI2dKrnI-Lq9BCjQm.js";
|
|
8
|
+
import { t as qa, d as Ua, l as Ka, u as Ya } from "./stage-BSRsu--X-DJs8ps3K.js";
|
|
9
|
+
import { s as Ga, u as Gr, l as Xa, c as Qa, U as Za } from "./copy-from-record-DL503itm-B05F775l.js";
|
|
10
|
+
import { c as Ja, d as ei, s as ti } from "./coverageDerivation-CV2ORogj-D4IAkVAP.js";
|
|
12
11
|
import * as x from "react";
|
|
13
|
-
import { useState as ee, useLayoutEffect as
|
|
12
|
+
import { useState as ee, useLayoutEffect as ni, useMemo as Y, useCallback as me, useId as bn, useRef as fe, useEffect as Ie } from "react";
|
|
14
13
|
import { jsx as o, jsxs as k, Fragment as N } from "react/jsx-runtime";
|
|
15
|
-
import { e as Xe, P as le, b as J, f as
|
|
14
|
+
import { e as Xe, P as le, b as J, f as ri, c as xn, d as kn, u as Xr, a as oi, C as Qr } from "./index-IZRzz1Mi.js";
|
|
16
15
|
import * as Zr from "react-dom";
|
|
17
|
-
import { C as Jr } from "./check-
|
|
18
|
-
import {
|
|
16
|
+
import { C as Jr } from "./check-B8qTJ1zD.js";
|
|
17
|
+
import { W as Kn, H as Tt, S as ai } from "./waves-DM8Lgssk.js";
|
|
18
|
+
import { C as Yn } from "./car-B8Sfr377.js";
|
|
19
19
|
(function() {
|
|
20
20
|
if (typeof e > "u")
|
|
21
21
|
var e = { env: {} };
|
|
@@ -1080,7 +1080,7 @@ function ln() {
|
|
|
1080
1080
|
H(ln, "dispatchUpdate");
|
|
1081
1081
|
function _n(e, t, n, { discrete: r }) {
|
|
1082
1082
|
const a = n.originalEvent.target, i = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
|
|
1083
|
-
t && a.addEventListener(e, t, { once: !0 }), r ?
|
|
1083
|
+
t && a.addEventListener(e, t, { once: !0 }), r ? ri(a, i) : a.dispatchEvent(i);
|
|
1084
1084
|
}
|
|
1085
1085
|
H(_n, "handleAndDispatchCustomEvent");
|
|
1086
1086
|
var Ls = Object.defineProperty, W = (e, t) => Ls(e, "name", { value: t, configurable: !0 }), Wt = "focusScope.autoFocusOnMount", qt = "focusScope.autoFocusOnUnmount", ur = { bubbles: !1, cancelable: !0 }, Is = /* @__PURE__ */ x.forwardRef(
|
|
@@ -2871,7 +2871,7 @@ const vl = qc, yl = Uc, gl = zc, bl = Yc, xl = jc, Sr = Hc, kl = Kc, wl = (e, t,
|
|
|
2871
2871
|
});
|
|
2872
2872
|
};
|
|
2873
2873
|
var _l = typeof document < "u", Ml = function() {
|
|
2874
|
-
}, gt = _l ?
|
|
2874
|
+
}, gt = _l ? ni : Ml;
|
|
2875
2875
|
function _t(e, t) {
|
|
2876
2876
|
if (e === t)
|
|
2877
2877
|
return !0;
|
|
@@ -3534,7 +3534,7 @@ var ed = Object.defineProperty, xe = (e, t) => ed(e, "name", { value: t, configu
|
|
|
3534
3534
|
td,
|
|
3535
3535
|
{
|
|
3536
3536
|
scope: t,
|
|
3537
|
-
contentId:
|
|
3537
|
+
contentId: oi(),
|
|
3538
3538
|
triggerRef: l,
|
|
3539
3539
|
open: d,
|
|
3540
3540
|
onOpenChange: h,
|
|
@@ -3706,7 +3706,7 @@ var hd = nd, fd = od, pd = sd, Wo = cd, qo = x.forwardRef(({ className: e, ...t
|
|
|
3706
3706
|
}));
|
|
3707
3707
|
qo.displayName = Vo.displayName;
|
|
3708
3708
|
var Vn = hd, Bn = fd, Rt = x.forwardRef(({ className: e, align: t = "center", sideOffset: n = 4, ...r }, a) => {
|
|
3709
|
-
let i =
|
|
3709
|
+
let i = ka();
|
|
3710
3710
|
return /* @__PURE__ */ o(pd, {
|
|
3711
3711
|
container: i ?? void 0,
|
|
3712
3712
|
children: /* @__PURE__ */ o(Wo, {
|
|
@@ -3896,7 +3896,7 @@ var md = x.lazy(() => import("./dob-calendar-RIJ5S6YU-CPTnehH2.js")), bt = (e) =
|
|
|
3896
3896
|
let a = `__${e.key}`, i = String(t[e.key] ?? ""), s = `${a}_line_1` in t;
|
|
3897
3897
|
x.useEffect(() => {
|
|
3898
3898
|
if (s || !i) return;
|
|
3899
|
-
let u =
|
|
3899
|
+
let u = wa(i);
|
|
3900
3900
|
r({
|
|
3901
3901
|
[`${a}_line_1`]: u.line_1,
|
|
3902
3902
|
[`${a}_line_2`]: "",
|
|
@@ -3907,7 +3907,7 @@ var md = x.lazy(() => import("./dob-calendar-RIJ5S6YU-CPTnehH2.js")), bt = (e) =
|
|
|
3907
3907
|
}, [s, i]);
|
|
3908
3908
|
let c = String(t[`${a}_line_1`] ?? ""), l = String(t[`${a}_line_2`] ?? ""), f = String(t[`${a}_city`] ?? t.city ?? ""), v = String(t[`${a}_state`] ?? t.state ?? ""), d = String(t[`${a}_postal_code`] ?? t.postal_code ?? "");
|
|
3909
3909
|
x.useEffect(() => {
|
|
3910
|
-
let u =
|
|
3910
|
+
let u = _a({
|
|
3911
3911
|
line_1: c,
|
|
3912
3912
|
line_2: l,
|
|
3913
3913
|
city: f,
|
|
@@ -4695,7 +4695,7 @@ var md = x.lazy(() => import("./dob-calendar-RIJ5S6YU-CPTnehH2.js")), bt = (e) =
|
|
|
4695
4695
|
Spouse: Li,
|
|
4696
4696
|
Parent: zt,
|
|
4697
4697
|
Child: li,
|
|
4698
|
-
"Domestic Partner":
|
|
4698
|
+
"Domestic Partner": Ca,
|
|
4699
4699
|
Relative: zt,
|
|
4700
4700
|
Employee: Qn,
|
|
4701
4701
|
Other: st
|
|
@@ -4704,7 +4704,7 @@ var md = x.lazy(() => import("./dob-calendar-RIJ5S6YU-CPTnehH2.js")), bt = (e) =
|
|
|
4704
4704
|
},
|
|
4705
4705
|
license_status: {
|
|
4706
4706
|
byToken: {
|
|
4707
|
-
Valid:
|
|
4707
|
+
Valid: ai,
|
|
4708
4708
|
Suspended: Ft,
|
|
4709
4709
|
Permit: Lt,
|
|
4710
4710
|
Unlicensed: eo
|
|
@@ -5793,10 +5793,10 @@ var md = x.lazy(() => import("./dob-calendar-RIJ5S6YU-CPTnehH2.js")), bt = (e) =
|
|
|
5793
5793
|
inputMode: "numeric",
|
|
5794
5794
|
autoComplete: "off",
|
|
5795
5795
|
maxLength: 11,
|
|
5796
|
-
value:
|
|
5796
|
+
value: va(y),
|
|
5797
5797
|
"aria-invalid": !!n || void 0,
|
|
5798
5798
|
"aria-describedby": u,
|
|
5799
|
-
onChange: (E) => a(
|
|
5799
|
+
onChange: (E) => a(ya(ga(y, E.target.value))),
|
|
5800
5800
|
placeholder: "XXX-XX-XXXX",
|
|
5801
5801
|
className: `${F} ${n ? "cds-border-destructive" : ""}`
|
|
5802
5802
|
});
|
|
@@ -5901,12 +5901,12 @@ var md = x.lazy(() => import("./dob-calendar-RIJ5S6YU-CPTnehH2.js")), bt = (e) =
|
|
|
5901
5901
|
className: `${F} ${n ? "cds-border-destructive" : ""}`
|
|
5902
5902
|
});
|
|
5903
5903
|
case "number": {
|
|
5904
|
-
let E =
|
|
5904
|
+
let E = Ua(e.key);
|
|
5905
5905
|
return /* @__PURE__ */ o("input", {
|
|
5906
5906
|
id: C,
|
|
5907
5907
|
type: "text",
|
|
5908
5908
|
inputMode: "numeric",
|
|
5909
|
-
value: E ?
|
|
5909
|
+
value: E ? Ka(t, Ya(e.key)) : y,
|
|
5910
5910
|
"aria-invalid": !!n || void 0,
|
|
5911
5911
|
"aria-describedby": u,
|
|
5912
5912
|
onChange: ($) => {
|
|
@@ -5974,7 +5974,7 @@ var md = x.lazy(() => import("./dob-calendar-RIJ5S6YU-CPTnehH2.js")), bt = (e) =
|
|
|
5974
5974
|
className: `${F} ${n ? "cds-border-destructive" : ""}`
|
|
5975
5975
|
});
|
|
5976
5976
|
}
|
|
5977
|
-
}, w =
|
|
5977
|
+
}, w = ti(e.key), _ = sn[e.key] ?? e.hint, M = e.key === "social_security_number" && La(r) ? [`${String(r.ssn_display).trim()}. Re-enter to update.`, _].filter(Boolean).join(" ") : w === null ? _ : [_, `Typically ${w}% of your rebuild cost. Change it if needed.`].filter(Boolean).join(" ");
|
|
5978
5978
|
return /* @__PURE__ */ o(gn, {
|
|
5979
5979
|
label: m,
|
|
5980
5980
|
hint: M,
|
|
@@ -6047,7 +6047,7 @@ var md = x.lazy(() => import("./dob-calendar-RIJ5S6YU-CPTnehH2.js")), bt = (e) =
|
|
|
6047
6047
|
{
|
|
6048
6048
|
heading: "Select your coverages for each vehicle",
|
|
6049
6049
|
caption: "Deductibles and extras, per vehicle.",
|
|
6050
|
-
keys: /* @__PURE__ */ new Set([
|
|
6050
|
+
keys: /* @__PURE__ */ new Set([Ia])
|
|
6051
6051
|
}
|
|
6052
6052
|
], bh = ({ heading: e, caption: t }) => /* @__PURE__ */ k("div", {
|
|
6053
6053
|
className: "cds-mb-3 cds-mt-6 cds-border-t cds-border-border cds-pt-4 first:cds-mt-0 first:cds-border-t-0 first:cds-pt-0",
|
|
@@ -6066,7 +6066,7 @@ var md = x.lazy(() => import("./dob-calendar-RIJ5S6YU-CPTnehH2.js")), bt = (e) =
|
|
|
6066
6066
|
!g || !t || s.current.has(g) || (s.current.add(g), i((_) => ({
|
|
6067
6067
|
..._,
|
|
6068
6068
|
[g]: !0
|
|
6069
|
-
})), c.current = c.current.then(() =>
|
|
6069
|
+
})), c.current = c.current.then(() => ba(b, t)).then((_) => {
|
|
6070
6070
|
r((M) => ({
|
|
6071
6071
|
...M,
|
|
6072
6072
|
[g]: xh(w(_))
|
|
@@ -6125,7 +6125,7 @@ var md = x.lazy(() => import("./dob-calendar-RIJ5S6YU-CPTnehH2.js")), bt = (e) =
|
|
|
6125
6125
|
let [n, r] = ee(!1), [a, i] = ee(void 0);
|
|
6126
6126
|
return {
|
|
6127
6127
|
run: me((s) => {
|
|
6128
|
-
!e || n || !Kr(s) || (r(!0), i(void 0),
|
|
6128
|
+
!e || n || !Kr(s) || (r(!0), i(void 0), xa(s.trim().toUpperCase(), e).then((c) => {
|
|
6129
6129
|
if (c.error) {
|
|
6130
6130
|
i(c.error);
|
|
6131
6131
|
return;
|
|
@@ -6146,7 +6146,7 @@ var md = x.lazy(() => import("./dob-calendar-RIJ5S6YU-CPTnehH2.js")), bt = (e) =
|
|
|
6146
6146
|
error: a
|
|
6147
6147
|
};
|
|
6148
6148
|
}, _h = (e, t, n, r) => {
|
|
6149
|
-
let a =
|
|
6149
|
+
let a = Oa(t, "drivers"), i = me((s) => Gr({
|
|
6150
6150
|
kind: e,
|
|
6151
6151
|
source: a[s] ?? {},
|
|
6152
6152
|
targetQuestions: n
|
|
@@ -6156,7 +6156,7 @@ var md = x.lazy(() => import("./dob-calendar-RIJ5S6YU-CPTnehH2.js")), bt = (e) =
|
|
|
6156
6156
|
n
|
|
6157
6157
|
]);
|
|
6158
6158
|
return {
|
|
6159
|
-
candidates: Y(() =>
|
|
6159
|
+
candidates: Y(() => Xa(t, { exclude: r }).filter((s) => Object.keys(i(s.index)).length > 0), [
|
|
6160
6160
|
t,
|
|
6161
6161
|
i,
|
|
6162
6162
|
r
|
|
@@ -6164,8 +6164,8 @@ var md = x.lazy(() => import("./dob-calendar-RIJ5S6YU-CPTnehH2.js")), bt = (e) =
|
|
|
6164
6164
|
patchFor: i
|
|
6165
6165
|
};
|
|
6166
6166
|
}, Mh = ({ values: e, targetQuestions: t, onPatch: n }) => {
|
|
6167
|
-
let r =
|
|
6168
|
-
return a.length ? /* @__PURE__ */ o(
|
|
6167
|
+
let r = Ma(e), { candidates: a, patchFor: i } = _h("coApplicant", e, t, me((s, c) => c === r, [r]));
|
|
6168
|
+
return a.length ? /* @__PURE__ */ o(Ga, {
|
|
6169
6169
|
heading: "Is the co-applicant one of your drivers?",
|
|
6170
6170
|
body: "We'll reuse their name, date of birth and details from the driver you entered.",
|
|
6171
6171
|
applyLabel: "Use these details",
|
|
@@ -6180,12 +6180,12 @@ var md = x.lazy(() => import("./dob-calendar-RIJ5S6YU-CPTnehH2.js")), bt = (e) =
|
|
|
6180
6180
|
kind: "driverFromApplicant",
|
|
6181
6181
|
source: t,
|
|
6182
6182
|
targetQuestions: n
|
|
6183
|
-
}), [t, n]), i =
|
|
6184
|
-
return
|
|
6183
|
+
}), [t, n]), i = Qa(t);
|
|
6184
|
+
return Sa(t) || !Ea(e) || !Object.keys(a).length ? null : /* @__PURE__ */ k("button", {
|
|
6185
6185
|
type: "button",
|
|
6186
6186
|
onClick: () => r(a),
|
|
6187
6187
|
className: `cds-inline-flex cds-items-center cds-gap-1 cds-rounded cds-px-2 cds-py-1 cds-text-xs cds-font-semibold cds-text-fg hover:cds-bg-highlight ${z}`,
|
|
6188
|
-
children: [/* @__PURE__ */ o(
|
|
6188
|
+
children: [/* @__PURE__ */ o(Za, {
|
|
6189
6189
|
"aria-hidden": "true",
|
|
6190
6190
|
className: "cds-h-3.5 cds-w-3.5"
|
|
6191
6191
|
}), i ? `This is me (${i})` : "This is me"]
|
|
@@ -6236,7 +6236,7 @@ var md = x.lazy(() => import("./dob-calendar-RIJ5S6YU-CPTnehH2.js")), bt = (e) =
|
|
|
6236
6236
|
]
|
|
6237
6237
|
});
|
|
6238
6238
|
}, Eh = ({ index: e, singular: t, groupKey: n, item: r, itemQuestions: a, rootValues: i, stageKey: s, quoteId: c, errors: l, canRemove: f, onPatch: v, onRemove: d }) => {
|
|
6239
|
-
let h = n === "vehicles", u = kh(h ? r : {}, c), p = wh(c, v), m = Y(() =>
|
|
6239
|
+
let h = n === "vehicles", u = kh(h ? r : {}, c), p = wh(c, v), m = Y(() => Ta(a, r, i, s, e), [
|
|
6240
6240
|
a,
|
|
6241
6241
|
r,
|
|
6242
6242
|
i,
|
|
@@ -6287,7 +6287,7 @@ var md = x.lazy(() => import("./dob-calendar-RIJ5S6YU-CPTnehH2.js")), bt = (e) =
|
|
|
6287
6287
|
})]
|
|
6288
6288
|
});
|
|
6289
6289
|
}, Nh = ({ vehicles: e, drivers: t, assignments: n, state: r, itemErrors: a, onChange: i, onAssign: s }) => {
|
|
6290
|
-
let c = Y(() =>
|
|
6290
|
+
let c = Y(() => Va(r), [r]), l = t.length > 1;
|
|
6291
6291
|
if (!e.length) return /* @__PURE__ */ o("p", {
|
|
6292
6292
|
className: "cds-mb-4 cds-text-sm cds-text-fg-muted",
|
|
6293
6293
|
children: "Add a vehicle first to choose its coverage."
|
|
@@ -6301,7 +6301,7 @@ var md = x.lazy(() => import("./dob-calendar-RIJ5S6YU-CPTnehH2.js")), bt = (e) =
|
|
|
6301
6301
|
return /* @__PURE__ */ o("div", {
|
|
6302
6302
|
className: "cds-mb-4",
|
|
6303
6303
|
children: e.map((v, d) => {
|
|
6304
|
-
let h =
|
|
6304
|
+
let h = Ba(v, d), u = a.find((m) => m.index === d)?.errorsByKey ?? {}, p = u[Yr];
|
|
6305
6305
|
return /* @__PURE__ */ k("fieldset", {
|
|
6306
6306
|
className: `cds-mb-4 cds-rounded-lg cds-border cds-bg-surface-elevated cds-p-4 last:cds-mb-0 ${p ? "cds-border-destructive" : "cds-border-border"}`,
|
|
6307
6307
|
children: [
|
|
@@ -6309,9 +6309,9 @@ var md = x.lazy(() => import("./dob-calendar-RIJ5S6YU-CPTnehH2.js")), bt = (e) =
|
|
|
6309
6309
|
className: "cds-px-1 cds-text-sm cds-font-bold cds-text-fg",
|
|
6310
6310
|
children: h
|
|
6311
6311
|
}),
|
|
6312
|
-
|
|
6312
|
+
Ha.map((m) => /* @__PURE__ */ o(Qo, {
|
|
6313
6313
|
question: {
|
|
6314
|
-
question:
|
|
6314
|
+
question: za[m],
|
|
6315
6315
|
key: m,
|
|
6316
6316
|
required: !0,
|
|
6317
6317
|
inputType: "select",
|
|
@@ -6336,7 +6336,7 @@ var md = x.lazy(() => import("./dob-calendar-RIJ5S6YU-CPTnehH2.js")), bt = (e) =
|
|
|
6336
6336
|
/* @__PURE__ */ o("div", {
|
|
6337
6337
|
className: "cds-flex cds-flex-wrap cds-gap-3",
|
|
6338
6338
|
children: t.map((m, y) => {
|
|
6339
|
-
let g = [m.first_name, m.last_name].filter(Boolean).join(" ") || `Driver ${y + 1}`, b = `usage-v${d}-d${y}`, w =
|
|
6339
|
+
let g = [m.first_name, m.last_name].filter(Boolean).join(" ") || `Driver ${y + 1}`, b = `usage-v${d}-d${y}`, w = ja(n, d, y);
|
|
6340
6340
|
return /* @__PURE__ */ k("div", {
|
|
6341
6341
|
className: "cds-w-32",
|
|
6342
6342
|
children: [/* @__PURE__ */ o("label", {
|
|
@@ -6353,7 +6353,7 @@ var md = x.lazy(() => import("./dob-calendar-RIJ5S6YU-CPTnehH2.js")), bt = (e) =
|
|
|
6353
6353
|
"aria-invalid": !!p || void 0,
|
|
6354
6354
|
onChange: (_) => {
|
|
6355
6355
|
let M = _.target.value.replace(/\D/g, "");
|
|
6356
|
-
s(
|
|
6356
|
+
s(Wa(n, d, y, M === "" ? 0 : Math.min(100, Number(M))));
|
|
6357
6357
|
},
|
|
6358
6358
|
className: `${F} ${p ? "cds-border-destructive" : ""}`
|
|
6359
6359
|
}), /* @__PURE__ */ o("span", {
|
|
@@ -6377,7 +6377,7 @@ var md = x.lazy(() => import("./dob-calendar-RIJ5S6YU-CPTnehH2.js")), bt = (e) =
|
|
|
6377
6377
|
})
|
|
6378
6378
|
});
|
|
6379
6379
|
}, Zo = ({ questions: e, values: t, rootValues: n, visibleKeys: r, rootVisible: a = [], errors: i, itemErrors: s, stageKey: c, quoteId: l, cascade: f, vinDecode: v, onPatch: d }) => {
|
|
6380
|
-
let h = Y(() =>
|
|
6380
|
+
let h = Y(() => Pa(e), [e]), u = t === n, p = Y(() => {
|
|
6381
6381
|
if (!u) return /* @__PURE__ */ new Map();
|
|
6382
6382
|
let y = /* @__PURE__ */ new Map();
|
|
6383
6383
|
for (let g of gh) {
|
|
@@ -6390,7 +6390,7 @@ var md = x.lazy(() => import("./dob-calendar-RIJ5S6YU-CPTnehH2.js")), bt = (e) =
|
|
|
6390
6390
|
r,
|
|
6391
6391
|
u
|
|
6392
6392
|
]), m = (y) => y.flatMap((g) => {
|
|
6393
|
-
let b = g.key, w =
|
|
6393
|
+
let b = g.key, w = Aa(g), _ = $a(g);
|
|
6394
6394
|
if (!_ && !r.has(b)) return [];
|
|
6395
6395
|
let M = [];
|
|
6396
6396
|
b === "co_applicant_first_name" && u && M.push(/* @__PURE__ */ o(Mh, {
|
|
@@ -6407,7 +6407,7 @@ var md = x.lazy(() => import("./dob-calendar-RIJ5S6YU-CPTnehH2.js")), bt = (e) =
|
|
|
6407
6407
|
return M.push(/* @__PURE__ */ o(Nh, {
|
|
6408
6408
|
vehicles: S(n[Ue("vehicles")]),
|
|
6409
6409
|
drivers: S(n[Ue("drivers")]),
|
|
6410
|
-
assignments:
|
|
6410
|
+
assignments: Fa(n),
|
|
6411
6411
|
state: n.state,
|
|
6412
6412
|
itemErrors: s.filter((E) => E.groupKey === "vehicles"),
|
|
6413
6413
|
onChange: (E) => d({ [Ue("vehicles")]: E }),
|
|
@@ -6426,7 +6426,7 @@ var md = x.lazy(() => import("./dob-calendar-RIJ5S6YU-CPTnehH2.js")), bt = (e) =
|
|
|
6426
6426
|
value: t[b],
|
|
6427
6427
|
error: i[b],
|
|
6428
6428
|
values: t,
|
|
6429
|
-
required:
|
|
6429
|
+
required: Da(g, t === n ? t : qa(n, t)),
|
|
6430
6430
|
asyncSelect: S && f ? {
|
|
6431
6431
|
options: f.options[S],
|
|
6432
6432
|
loading: f.loading[S],
|
|
@@ -6442,7 +6442,7 @@ var md = x.lazy(() => import("./dob-calendar-RIJ5S6YU-CPTnehH2.js")), bt = (e) =
|
|
|
6442
6442
|
}), b === "make" && Object.assign($, {
|
|
6443
6443
|
model: "",
|
|
6444
6444
|
body_style: ""
|
|
6445
|
-
}), b === "model" && Object.assign($, { body_style: "" }), (b === "industry" || b === "employment_industry") && ($.occupation = ""), b === "dwelling_replacement_cost" && Object.assign($,
|
|
6445
|
+
}), b === "model" && Object.assign($, { body_style: "" }), (b === "industry" || b === "employment_industry") && ($.occupation = ""), b === "dwelling_replacement_cost" && Object.assign($, Ja(t, E)), Object.assign($, ei(t, b, E)), d($);
|
|
6446
6446
|
}
|
|
6447
6447
|
}, b));
|
|
6448
6448
|
}
|
|
@@ -6459,7 +6459,7 @@ var md = x.lazy(() => import("./dob-calendar-RIJ5S6YU-CPTnehH2.js")), bt = (e) =
|
|
|
6459
6459
|
onChange: ($) => d({ [Ue(b)]: $ })
|
|
6460
6460
|
}, `${b}-group`));
|
|
6461
6461
|
}
|
|
6462
|
-
return
|
|
6462
|
+
return Ra(g, t).forEach((S) => {
|
|
6463
6463
|
if (S.conditionalQuestionsAllowMultiple) return;
|
|
6464
6464
|
let E = S.conditionalQuestions ?? [];
|
|
6465
6465
|
E.length && M.push(/* @__PURE__ */ o("div", {
|
|
@@ -6470,7 +6470,7 @@ var md = x.lazy(() => import("./dob-calendar-RIJ5S6YU-CPTnehH2.js")), bt = (e) =
|
|
|
6470
6470
|
});
|
|
6471
6471
|
return /* @__PURE__ */ o(N, { children: m(h) });
|
|
6472
6472
|
}, Ph = ({ questions: e, values: t, errors: n, itemErrors: r, stageKey: a, quoteId: i, suppressedKeys: s, onPatch: c }) => {
|
|
6473
|
-
let l = Y(() =>
|
|
6473
|
+
let l = Y(() => Na(e, t, a), [
|
|
6474
6474
|
e,
|
|
6475
6475
|
t,
|
|
6476
6476
|
a
|