@getcredify/credify-insurance-widget 1.44.1 → 1.46.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 +1 -1
- package/dist/{address-BEVwov8q-DDhbGo15.js → address-BEVwov8q-D41kOVu6.js} +1 -1
- package/dist/api-Cw2AUM88.js +77 -0
- package/dist/{car-B83tx4O2.js → car-CMnEV9_b.js} +3 -3
- package/dist/{check-Bu17NqRV.js → check-BTgVTfcC.js} +1 -1
- package/dist/{copy-applicant-offer-CqzfNhkJ-DLXjbOLT.js → copy-applicant-offer-UApiJBeU-CKq7ImsF.js} +3 -3
- package/dist/{copy-from-record-BNP6CFFR-6SC1msxp.js → copy-from-record-DL503itm-CTS4E7Rf.js} +17 -17
- package/dist/{coverageDerivation-CV2ORogj-De8x_Bpm.js → coverageDerivation-CV2ORogj-jMf2SoK5.js} +1 -1
- package/dist/{fixtures-ijbZ16Zg-9n-90hL2.js → fixtures-ijbZ16Zg-ChdBIfNy.js} +1 -1
- package/dist/{household-prefill-CmtB9R3R-Bw0M1Q50.js → household-prefill-BwSS00qI-BV0ZiWyf.js} +24 -24
- package/dist/{householdPrefill-DLm3pxFH-BQibTi9l.js → householdPrefill-DLm3pxFH-CsBUhGpI.js} +3 -3
- package/dist/iframe/assets/{address-BEVwov8q-BiiIpq2c.js → address-BEVwov8q-WHZXNW9V.js} +1 -1
- package/dist/iframe/assets/api-DAGqvZlL.js +1 -0
- package/dist/iframe/assets/{car-cifgdWXX.js → car-B5QKRfCv.js} +2 -2
- package/dist/iframe/assets/{check-TbHiw7rw.js → check-COpOqcK1.js} +1 -1
- package/dist/iframe/assets/{copy-applicant-offer-CqzfNhkJ-CVahKn8I.js → copy-applicant-offer-UApiJBeU-DzSzRNkI.js} +1 -1
- package/dist/iframe/assets/{copy-from-record-BNP6CFFR-Cn7Nr7XT.js → copy-from-record-DL503itm-uUs1HZ1W.js} +2 -2
- package/dist/iframe/assets/{coverageDerivation-CV2ORogj-B7aNPljp.js → coverageDerivation-CV2ORogj-BRpZ-qnO.js} +1 -1
- package/dist/iframe/assets/{dob-calendar-RIJ5S6YU-CdxMGaLz.js → dob-calendar-RIJ5S6YU-Bc9pcr1S.js} +1 -1
- package/dist/iframe/assets/{fixtures-ijbZ16Zg-NuD06-4v.js → fixtures-ijbZ16Zg-DHtl-XVn.js} +1 -1
- package/dist/iframe/assets/household-prefill-BwSS00qI-DoI-FWTT.js +1 -0
- package/dist/iframe/assets/{householdPrefill-DLm3pxFH-DzyOYQr_.js → householdPrefill-DLm3pxFH-Dh4Zfx2N.js} +1 -1
- package/dist/iframe/assets/iframe-B0t_86Ff.js +107 -0
- package/dist/iframe/assets/{index-BknEWAR5.js → index-Dn7YHcfA.js} +2 -2
- package/dist/iframe/assets/intake-review-panel-CjiYTJXh-RzRGAMUY.js +1 -0
- package/dist/iframe/assets/{mockJump-hNzgzUmO-CQ7eZ354.js → mockJump-DCZoGtRl-COeVYgAv.js} +1 -1
- package/dist/iframe/assets/payload-DurIYSZk-BKyiqX4B.js +1 -0
- package/dist/iframe/assets/{question-list-DFjWa8ZA-DbabOwyP.js → question-list-CjN64tfw-C635WZhw.js} +11 -11
- package/dist/iframe/assets/rates-panel-B1xVYtTQ-7LijnnnG.js +17 -0
- package/dist/iframe/assets/{review-panel-C_WxX33U-CxzpQutt.js → review-panel-DuzWoTKP-ClL_jf1q.js} +2 -2
- package/dist/iframe/assets/stage-CnucLiNn-CeNTIedd.js +1 -0
- package/dist/iframe/assets/validation-Db4WCn17-CWj8NSXn.js +3 -0
- package/dist/iframe/assets/{vehicleCoverage-CBWORI1l-BqOK33e3.js → vehicleCoverage-CDBtkdww-B2U8GTFu.js} +1 -1
- package/dist/iframe/assets/visibility-iwttXt0y-DdU95s24.js +1 -0
- package/dist/iframe/assets/waves-BTFsI5kF.js +16 -0
- package/dist/iframe/iframe.html +1 -1
- package/dist/{index-CY0roJE_.js → index-BWYDsqpp.js} +26 -26
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +103 -103
- package/dist/{intake-review-panel-D27t8CZO-CxiXytFS.js → intake-review-panel-CjiYTJXh-CEbA61Dc.js} +27 -27
- package/dist/{mockJump-hNzgzUmO-CsTzthio.js → mockJump-DCZoGtRl-Bo7POlsv.js} +1 -1
- package/dist/{payload-DrGFAxms-DmfWvvu_.js → payload-DurIYSZk-DIu_QDwm.js} +26 -26
- package/dist/{question-list-DFjWa8ZA-B8f7Jf6J.js → question-list-CjN64tfw-1IKhM3Qt.js} +51 -51
- package/dist/rates-panel-B1xVYtTQ-zlc6y8FP.js +1338 -0
- package/dist/{review-panel-C_WxX33U-CZu6We48.js → review-panel-DuzWoTKP-fVqE5OXc.js} +59 -59
- package/dist/stage-CnucLiNn-cNOWRm4u.js +197 -0
- package/dist/utils/prefill.d.ts +2 -4
- package/dist/{validation-D42QXxck-BPUVtzkv.js → validation-Db4WCn17-MXpuK34u.js} +341 -343
- package/dist/{vehicleCoverage-CBWORI1l-DZmjvVjU.js → vehicleCoverage-CDBtkdww-PMT13g0U.js} +3 -3
- package/dist/{visibility-CKRGC3Il-_72Koc98.js → visibility-iwttXt0y-DPpMfYyV.js} +6 -6
- package/dist/waves-B32--xu4.js +71 -0
- package/dist/{widget-CP6ApixH.js → widget-D6Yu93a3.js} +2977 -2827
- package/package.json +2 -2
- package/dist/api-CWMwIjKu.js +0 -51
- package/dist/core-CrEw_I-E-CsRUhlZy.js +0 -417
- package/dist/iframe/assets/core-CrEw_I-E-DJNj5Zzo.js +0 -16
- package/dist/iframe/assets/household-prefill-CmtB9R3R-0b9HYzDA.js +0 -1
- package/dist/iframe/assets/iframe-Be9NY0jq.js +0 -107
- package/dist/iframe/assets/intake-review-panel-D27t8CZO-QuAzDm1O.js +0 -1
- package/dist/iframe/assets/payload-DrGFAxms-DIGXNw5l.js +0 -1
- package/dist/iframe/assets/rates-panel-BSFiWEZX-GsRBXu7R.js +0 -17
- package/dist/iframe/assets/stage-knShj71W-CEkRTdvw.js +0 -1
- package/dist/iframe/assets/validation-D42QXxck-DrIBn9be.js +0 -3
- package/dist/iframe/assets/visibility-CKRGC3Il-CLpoN3cd.js +0 -1
- package/dist/rates-panel-BSFiWEZX-DdETQZ83.js +0 -1001
- package/dist/stage-knShj71W-XIJ7bUoN.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-D6Yu93a3.js";
|
|
2
|
+
import { _ as f } from "./visibility-iwttXt0y-DPpMfYyV.js";
|
|
3
|
+
import { k as p } from "./validation-Db4WCn17-MXpuK34u.js";
|
|
4
4
|
(function() {
|
|
5
5
|
if (typeof o > "u")
|
|
6
6
|
var o = { env: {} };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { al as w } from "./widget-D6Yu93a3.js";
|
|
1
2
|
import { n as C } from "./types-LUGvo5ic-CiVRcsV9.js";
|
|
2
|
-
import { a3 as w } from "./widget-CP6ApixH.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 { $ as e } from "./widget-D6Yu93a3.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
|
+
};
|