@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
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as h } from "./widget-
|
|
2
|
-
import { _ as f } from "./visibility-
|
|
3
|
-
import {
|
|
1
|
+
import { t as h } from "./widget-3S1xkGig.js";
|
|
2
|
+
import { _ as f } from "./visibility-CyRoLvg5-DNRgF2sH.js";
|
|
3
|
+
import { k as p } from "./validation-ELW00AsL-C4xgPdbr.js";
|
|
4
4
|
(function() {
|
|
5
5
|
if (typeof o > "u")
|
|
6
6
|
var o = { env: {} };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { a3 as w } from "./widget-3S1xkGig.js";
|
|
1
2
|
import { n as C } from "./types-LUGvo5ic-CiVRcsV9.js";
|
|
2
|
-
import { a3 as w } from "./widget-Bc0CD2Yh.js";
|
|
3
3
|
(function() {
|
|
4
4
|
if (typeof e > "u")
|
|
5
5
|
var e = { env: {} };
|
|
@@ -118,7 +118,7 @@ var N = (e) => {
|
|
|
118
118
|
if (!r.effectiveDateKey || !r.expirationDateKey) return !1;
|
|
119
119
|
let n = v(e[r.expirationDateKey]), i = v(e[r.effectiveDateKey]);
|
|
120
120
|
return n == null || i == null ? !1 : n < i;
|
|
121
|
-
},
|
|
121
|
+
}, H = (e) => {
|
|
122
122
|
let r = null, n = null, i = null, o = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Set(), u = (s) => {
|
|
123
123
|
let t = s.key ?? "", a = String(s.question ?? "").trim().toLowerCase();
|
|
124
124
|
!r && (t === "auto_prior_carrier_name" || t === "home_prior_carrier_name" || a.includes("current auto insurance company")) && (r = t), !n && (t === "effective_date" || a.includes("when do you need your insurance to begin")) && (n = t), !i && (t === "auto_prior_expiration_date" || t === "home_prior_expiration_date" || a.includes("when does the current policy expire")) && (i = t), (t === "auto_reason_for_no_insurance" || a.includes("reason you are not currently insured") || a.includes("reason for lapse in coverage")) && o.add(t), (t === "auto_prior_years" || t === "auto_prior_months" || t === "auto_continuous_coverage_years" || t === "auto_prior_expiration_date" || t === "auto_current_annual_premium_cents" || t === "auto_prior_liability_limit") && l.add(t);
|
|
@@ -139,20 +139,20 @@ var N = (e) => {
|
|
|
139
139
|
noInsuranceReasonKeys: o,
|
|
140
140
|
hideWhenNoPriorInsuranceKeys: l
|
|
141
141
|
};
|
|
142
|
-
},
|
|
142
|
+
}, W = (e, r) => r.currentCarrierKey === "home_prior_carrier_name" && e.home_prior_carrier_name === "NoPriorInsurance" && e.auto_prior_carrier_name !== "NoPriorInsurance" ? !1 : (r.currentCarrierKey ? e[r.currentCarrierKey] : void 0) === "NoPriorInsurance" ? !0 : !r.effectiveDateKey || !r.expirationDateKey || r.expirationDateKey === "home_prior_expiration_date" && p(e, r) ? !1 : p(e, r), $ = (e, r, n) => {
|
|
143
143
|
let i = e.key ?? "";
|
|
144
144
|
if (n.noInsuranceReasonKeys.has(i) && n.currentCarrierKey === "home_prior_carrier_name" && r.home_prior_carrier_name === "NoPriorInsurance" && r.auto_prior_carrier_name !== "NoPriorInsurance") return !1;
|
|
145
145
|
let o = (n.currentCarrierKey ? r[n.currentCarrierKey] : void 0) === "NoPriorInsurance";
|
|
146
|
-
return o && n.hideWhenNoPriorInsuranceKeys.has(i) ? !1 : !n.noInsuranceReasonKeys.has(i) || o ? !0 :
|
|
146
|
+
return o && n.hideWhenNoPriorInsuranceKeys.has(i) ? !1 : !n.noInsuranceReasonKeys.has(i) || o ? !0 : W(r, n);
|
|
147
147
|
}, j = /* @__PURE__ */ new Set(["HomePolicy", "BundlePolicy"]), q = (e, r, n) => (e.key ?? "") !== "lapse_in_coverage" || !n || !j.has(n) || r.home_prior_carrier_name !== "NoPriorInsurance", M = (e, r) => {
|
|
148
148
|
let n = e.key ?? "";
|
|
149
149
|
if (n === "co_applicant_occupation" || n !== "occupation") return !0;
|
|
150
150
|
let i = String(r.industry ?? r.employment_industry ?? "").trim();
|
|
151
151
|
return !w.has(i);
|
|
152
152
|
}, F = (e, r, n) => {
|
|
153
|
-
let i = N(e), o =
|
|
153
|
+
let i = N(e), o = H(i), l = [], u = (c) => {
|
|
154
154
|
c.forEach((s) => {
|
|
155
|
-
if (
|
|
155
|
+
if (!$(s, r, o) || !M(s, r) || !q(s, r, n)) return;
|
|
156
156
|
let t = s.key ?? "";
|
|
157
157
|
if (S(t, n, r)) {
|
|
158
158
|
let a = o.currentCarrierKey ? r[o.currentCarrierKey] : void 0;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { a4 as e } from "./widget-3S1xkGig.js";
|
|
2
|
+
(function() {
|
|
3
|
+
if (typeof a > "u")
|
|
4
|
+
var a = { env: {} };
|
|
5
|
+
})();
|
|
6
|
+
/**
|
|
7
|
+
* @license lucide-react v0.562.0 - ISC
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the ISC license.
|
|
10
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/
|
|
12
|
+
const c = [
|
|
13
|
+
["path", { d: "M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8", key: "5wwlr5" }],
|
|
14
|
+
[
|
|
15
|
+
"path",
|
|
16
|
+
{
|
|
17
|
+
d: "M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",
|
|
18
|
+
key: "r6nss1"
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
], n = e("house", c);
|
|
22
|
+
/**
|
|
23
|
+
* @license lucide-react v0.562.0 - ISC
|
|
24
|
+
*
|
|
25
|
+
* This source code is licensed under the ISC license.
|
|
26
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
27
|
+
*/
|
|
28
|
+
const o = [
|
|
29
|
+
[
|
|
30
|
+
"path",
|
|
31
|
+
{
|
|
32
|
+
d: "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",
|
|
33
|
+
key: "oel41y"
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
|
|
37
|
+
], s = e("shield-check", o);
|
|
38
|
+
/**
|
|
39
|
+
* @license lucide-react v0.562.0 - ISC
|
|
40
|
+
*
|
|
41
|
+
* This source code is licensed under the ISC license.
|
|
42
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
43
|
+
*/
|
|
44
|
+
const d = [
|
|
45
|
+
[
|
|
46
|
+
"path",
|
|
47
|
+
{
|
|
48
|
+
d: "M2 6c.6.5 1.2 1 2.5 1C7 7 7 5 9.5 5c2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",
|
|
49
|
+
key: "knzxuh"
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
[
|
|
53
|
+
"path",
|
|
54
|
+
{
|
|
55
|
+
d: "M2 12c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",
|
|
56
|
+
key: "2jd2cc"
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
[
|
|
60
|
+
"path",
|
|
61
|
+
{
|
|
62
|
+
d: "M2 18c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",
|
|
63
|
+
key: "rd2r6e"
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
], h = e("waves", d);
|
|
67
|
+
export {
|
|
68
|
+
n as H,
|
|
69
|
+
s as S,
|
|
70
|
+
h as W
|
|
71
|
+
};
|