@getcredify/credify-insurance-widget 1.48.0 → 1.49.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.
Files changed (53) hide show
  1. package/dist/{address-BEVwov8q-CtbG3tfj.js → address-BEVwov8q-CazC1JIl.js} +1 -1
  2. package/dist/{api-FFY6fre4.js → api-Bepbbwlb.js} +15 -15
  3. package/dist/{car-C4roRGIN.js → car-B21VP4YN.js} +1 -1
  4. package/dist/{check-5ywqVwF9.js → check-CwRR4vvM.js} +1 -1
  5. package/dist/{copy-applicant-offer-UApiJBeU-6X1OfCXd.js → copy-applicant-offer-B-BuqAOO-a4y-KPDr.js} +11 -11
  6. package/dist/{copy-from-record-DL503itm-B5M9p1aR.js → copy-from-record-DL503itm-2slKSwa4.js} +4 -4
  7. package/dist/{coverageDerivation-CV2ORogj-C4Tevu9q.js → coverageDerivation-CV2ORogj-BoLiDnjR.js} +1 -1
  8. package/dist/{fixtures-ijbZ16Zg-C7CkQCGW.js → fixtures-ijbZ16Zg-CwFDJNFI.js} +1 -1
  9. package/dist/{household-prefill-BwSS00qI-Bxr1Is5P.js → household-prefill-CdB4ZxsR-D4_lkTx8.js} +26 -26
  10. package/dist/{householdPrefill-DLm3pxFH-BcyrqxRq.js → householdPrefill-DLm3pxFH-dPJrX2ul.js} +1 -1
  11. package/dist/iframe/assets/{address-BEVwov8q-Bjv6MIfT.js → address-BEVwov8q-EtrExGBv.js} +1 -1
  12. package/dist/iframe/assets/{car-D1-bpPP6.js → car-lKtbZzIv.js} +1 -1
  13. package/dist/iframe/assets/{check-Dby5nO_M.js → check-DafU7JDn.js} +1 -1
  14. package/dist/iframe/assets/{copy-applicant-offer-UApiJBeU-D2hxv9k7.js → copy-applicant-offer-B-BuqAOO-CtFqk8YK.js} +1 -1
  15. package/dist/iframe/assets/{copy-from-record-DL503itm-KY0q_TtI.js → copy-from-record-DL503itm-BXJJYs1Y.js} +1 -1
  16. package/dist/iframe/assets/{coverageDerivation-CV2ORogj-DnNTue88.js → coverageDerivation-CV2ORogj-Dne34PDQ.js} +1 -1
  17. package/dist/iframe/assets/{dob-calendar-RIJ5S6YU-DDSHfA2t.js → dob-calendar-RIJ5S6YU-BfbUKPI9.js} +1 -1
  18. package/dist/iframe/assets/{fixtures-ijbZ16Zg-kEYhiItG.js → fixtures-ijbZ16Zg-D-3ehYX7.js} +1 -1
  19. package/dist/iframe/assets/{household-prefill-BwSS00qI-fvGXj4Ih.js → household-prefill-CdB4ZxsR-BPthWPX-.js} +1 -1
  20. package/dist/iframe/assets/{householdPrefill-DLm3pxFH-xdUCbCYH.js → householdPrefill-DLm3pxFH-jl-HbpRV.js} +1 -1
  21. package/dist/iframe/assets/iframe-ZamrsKm7.js +107 -0
  22. package/dist/iframe/assets/{index-CqjzcFiq.js → index-BeV6waqv.js} +1 -1
  23. package/dist/iframe/assets/intake-review-panel-BJRYQaBx-CIkJtRek.js +1 -0
  24. package/dist/iframe/assets/{mockJump-DCZoGtRl-36W1hR0W.js → mockJump-CKjCOGxR-tRN3Jwzq.js} +1 -1
  25. package/dist/iframe/assets/{payload-DurIYSZk-COUWlGbP.js → payload-BMtl8VDy-DSIXtfb-.js} +1 -1
  26. package/dist/iframe/assets/{question-list-CjN64tfw-DcMrD36l.js → question-list-BK2EN74l-8nbZZnvU.js} +3 -3
  27. package/dist/iframe/assets/{rates-panel-B1xVYtTQ-CL1y9CqV.js → rates-panel-BOaKRZ_Y-DspzIEmi.js} +3 -3
  28. package/dist/iframe/assets/{review-panel-DuzWoTKP-DSKT5yTF.js → review-panel-BQmrPgdC-Dh84GHcf.js} +2 -2
  29. package/dist/iframe/assets/{stage-CnucLiNn-BR-spl1Z.js → stage-zClSIgVN-CQ0m7lYx.js} +1 -1
  30. package/dist/iframe/assets/{validation-Db4WCn17-C0CXVR_C.js → validation-D9L1J71d-D-I9M7xX.js} +2 -2
  31. package/dist/iframe/assets/{vehicleCoverage-CDBtkdww-DXXIbGVV.js → vehicleCoverage-CgeEazR0-DlDAnkau.js} +1 -1
  32. package/dist/iframe/assets/{visibility-iwttXt0y-DkmB_m7Z.js → visibility-xQNTF1no-_O_ggMOv.js} +1 -1
  33. package/dist/iframe/assets/{waves-DIsSB_DU.js → waves-CGWFF4s2.js} +1 -1
  34. package/dist/iframe/iframe.html +1 -1
  35. package/dist/{index-CK3tklPT.js → index-DbadJytg.js} +1 -1
  36. package/dist/index.es.js +1 -1
  37. package/dist/index.umd.js +103 -103
  38. package/dist/intake-review-panel-BJRYQaBx-Bb4VAszN.js +224 -0
  39. package/dist/{mockJump-DCZoGtRl-BmpMdaSt.js → mockJump-CKjCOGxR-Boxby2dZ.js} +1 -1
  40. package/dist/{payload-DurIYSZk-C0uMF9Tq.js → payload-BMtl8VDy-maqSOQIZ.js} +20 -20
  41. package/dist/{question-list-CjN64tfw-DFqbiQWc.js → question-list-BK2EN74l-Cn9ka_Tm.js} +13 -13
  42. package/dist/{rates-panel-B1xVYtTQ-Cj9JDZXZ.js → rates-panel-BOaKRZ_Y-ciWr81fl.js} +47 -47
  43. package/dist/{review-panel-DuzWoTKP-BLy4wrtf.js → review-panel-BQmrPgdC-CXP39hws.js} +98 -98
  44. package/dist/{stage-CnucLiNn-B6xWk5jk.js → stage-zClSIgVN-CC_teHAO.js} +26 -26
  45. package/dist/{validation-Db4WCn17-TOMPypn_.js → validation-D9L1J71d-BF62B66y.js} +22 -17
  46. package/dist/{vehicleCoverage-CDBtkdww-VeL7TnDy.js → vehicleCoverage-CgeEazR0-C3ugp85r.js} +8 -8
  47. package/dist/{visibility-iwttXt0y-DOQ-bNNl.js → visibility-xQNTF1no-t9wamJ9M.js} +7 -7
  48. package/dist/{waves-Cx-ZZIde.js → waves-BpyYhsaC.js} +1 -1
  49. package/dist/{widget-DcTSEv8D.js → widget-fDShn8w9.js} +2873 -2849
  50. package/package.json +2 -2
  51. package/dist/iframe/assets/iframe-7bSlpZsw.js +0 -107
  52. package/dist/iframe/assets/intake-review-panel-CjiYTJXh-DDHj7c_F.js +0 -1
  53. package/dist/intake-review-panel-CjiYTJXh-7Uej_QY4.js +0 -186
@@ -1,5 +1,5 @@
1
- import { al as _t } from "./widget-DcTSEv8D.js";
2
- import { _ as gt } from "./visibility-iwttXt0y-DOQ-bNNl.js";
1
+ import { al as _t } from "./widget-fDShn8w9.js";
2
+ import { _ as gt } from "./visibility-xQNTF1no-t9wamJ9M.js";
3
3
  (function() {
4
4
  if (typeof e > "u")
5
5
  var e = { env: {} };
@@ -1796,11 +1796,11 @@ function ut(e, t) {
1796
1796
  n(m);
1797
1797
  const h = e.seen.get(m), z = h.schema;
1798
1798
  if (z.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (l.allOf = l.allOf ?? [], l.allOf.push(z)) : Object.assign(l, z), Object.assign(l, f), s._zod.parent === m)
1799
- for (const O in l)
1800
- O === "$ref" || O === "allOf" || O in f || delete l[O];
1799
+ for (const I in l)
1800
+ I === "$ref" || I === "allOf" || I in f || delete l[I];
1801
1801
  if (z.$ref && h.def)
1802
- for (const O in l)
1803
- O === "$ref" || O === "allOf" || O in h.def && JSON.stringify(l[O]) === JSON.stringify(h.def[O]) && delete l[O];
1802
+ for (const I in l)
1803
+ I === "$ref" || I === "allOf" || I in h.def && JSON.stringify(l[I]) === JSON.stringify(h.def[I]) && delete l[I];
1804
1804
  }
1805
1805
  const b = s._zod.parent;
1806
1806
  if (b && b !== m) {
@@ -2069,9 +2069,9 @@ const So = (e, t) => {
2069
2069
  // enumerable: false,
2070
2070
  }
2071
2071
  });
2072
- }, S = /* @__PURE__ */ u("ZodError", So, {
2072
+ }, O = /* @__PURE__ */ u("ZodError", So, {
2073
2073
  Parent: Error
2074
- }), Oo = /* @__PURE__ */ fe(S), Io = /* @__PURE__ */ me(S), No = /* @__PURE__ */ H(S), To = /* @__PURE__ */ Q(S), Po = /* @__PURE__ */ Tt(S), Eo = /* @__PURE__ */ Pt(S), Ao = /* @__PURE__ */ Et(S), Co = /* @__PURE__ */ At(S), Do = /* @__PURE__ */ Ct(S), Uo = /* @__PURE__ */ Dt(S), Ro = /* @__PURE__ */ Ut(S), xo = /* @__PURE__ */ Rt(S), Ee = /* @__PURE__ */ new WeakMap();
2074
+ }), Oo = /* @__PURE__ */ fe(O), Io = /* @__PURE__ */ me(O), No = /* @__PURE__ */ H(O), To = /* @__PURE__ */ Q(O), Po = /* @__PURE__ */ Tt(O), Eo = /* @__PURE__ */ Pt(O), Ao = /* @__PURE__ */ Et(O), Co = /* @__PURE__ */ At(O), Do = /* @__PURE__ */ Ct(O), Uo = /* @__PURE__ */ Dt(O), Ro = /* @__PURE__ */ Ut(O), xo = /* @__PURE__ */ Rt(O), Ee = /* @__PURE__ */ new WeakMap();
2075
2075
  function te(e, t, r) {
2076
2076
  const n = Object.getPrototypeOf(e);
2077
2077
  let o = Ee.get(n);
@@ -2628,7 +2628,7 @@ var pt = (/* @__PURE__ */ new Date()).getUTCFullYear(), W = T().trim().min(1, "R
2628
2628
  if (!e || typeof e != "string") return null;
2629
2629
  let t = Ci(e);
2630
2630
  return Number.isNaN(t.getTime()) ? null : t;
2631
- }, I = (e) => {
2631
+ }, S = (e) => {
2632
2632
  if (e == null || e === "") return null;
2633
2633
  let t = Number(e);
2634
2634
  return Number.isNaN(t) ? null : t;
@@ -2644,7 +2644,7 @@ var pt = (/* @__PURE__ */ new Date()).getUTCFullYear(), W = T().trim().min(1, "R
2644
2644
  targetKey: e,
2645
2645
  dependsOn: [e, "date_of_birth"],
2646
2646
  validate: (r) => {
2647
- let n = I(r[e]), o = N(r.date_of_birth);
2647
+ let n = S(r[e]), o = N(r.date_of_birth);
2648
2648
  if (!(n == null || !o)) return n > se(o, x()) ? t : void 0;
2649
2649
  }
2650
2650
  }), je = (e, t) => ({
@@ -2700,15 +2700,15 @@ var pt = (/* @__PURE__ */ new Date()).getUTCFullYear(), W = T().trim().min(1, "R
2700
2700
  targetKey: "year_roof_updated",
2701
2701
  dependsOn: ["year_roof_updated", "year_built"],
2702
2702
  validate: (e) => {
2703
- let t = I(e.year_roof_updated);
2704
- if (t != null) return t < (I(e.year_built) ?? 1e3) || t > pt ? "Roof renovation/replacement year must be between the home's build year and the current year." : void 0;
2703
+ let t = S(e.year_roof_updated);
2704
+ if (t != null) return t < (S(e.year_built) ?? 1e3) || t > pt ? "Roof renovation/replacement year must be between the home's build year and the current year." : void 0;
2705
2705
  }
2706
2706
  },
2707
2707
  {
2708
2708
  targetKey: "move_in_date",
2709
2709
  dependsOn: ["move_in_date", "year_built"],
2710
2710
  validate: (e) => {
2711
- let t = N(e.move_in_date), r = I(e.year_built);
2711
+ let t = N(e.move_in_date), r = S(e.year_built);
2712
2712
  if (!(!t || r == null)) return t.getUTCFullYear() < r ? "Purchase date cannot be prior to the year the building was originally constructed." : void 0;
2713
2713
  }
2714
2714
  },
@@ -2744,7 +2744,7 @@ var pt = (/* @__PURE__ */ new Date()).getUTCFullYear(), W = T().trim().min(1, "R
2744
2744
  targetKey: "home_prior_years",
2745
2745
  dependsOn: ["home_prior_years", "home_continuous_coverage_years"],
2746
2746
  validate: (e) => {
2747
- let t = I(e.home_prior_years), r = I(e.home_continuous_coverage_years);
2747
+ let t = S(e.home_prior_years), r = S(e.home_continuous_coverage_years);
2748
2748
  if (t != null && r != null) return t > r ? "Years with prior carrier cannot be higher than years with continuous coverage." : void 0;
2749
2749
  }
2750
2750
  },
@@ -2755,7 +2755,7 @@ var pt = (/* @__PURE__ */ new Date()).getUTCFullYear(), W = T().trim().min(1, "R
2755
2755
  targetKey: "purchase_date",
2756
2756
  dependsOn: ["purchase_date", "year"],
2757
2757
  validate: (e) => {
2758
- let t = N(e.purchase_date), r = I(e.year);
2758
+ let t = N(e.purchase_date), r = S(e.year);
2759
2759
  if (!(!t || r == null)) return t.getUTCFullYear() < r ? "The year the vehicle was purchased is not valid with the model year." : void 0;
2760
2760
  }
2761
2761
  },
@@ -2764,10 +2764,15 @@ var pt = (/* @__PURE__ */ new Date()).getUTCFullYear(), W = T().trim().min(1, "R
2764
2764
  targetKey: "auto_prior_years",
2765
2765
  dependsOn: ["auto_prior_years", "auto_continuous_coverage_years"],
2766
2766
  validate: (e) => {
2767
- let t = I(e.auto_prior_years), r = I(e.auto_continuous_coverage_years);
2767
+ let t = S(e.auto_prior_years), r = S(e.auto_continuous_coverage_years);
2768
2768
  if (t != null && r != null) return t > r ? "Years with prior auto carrier cannot be higher than years with continuous coverage." : void 0;
2769
2769
  }
2770
2770
  },
2771
+ {
2772
+ targetKey: "auto_prior_months",
2773
+ dependsOn: ["auto_prior_years", "auto_prior_months"],
2774
+ validate: (e) => S(e.auto_prior_years) === 0 && S(e.auto_prior_months) === 0 ? "Time with prior carrier cannot be 0. Choose 'No prior carrier' for your current auto insurance company." : void 0
2775
+ },
2771
2776
  D("auto_prior_years", "Years with prior auto carrier cannot be greater than the Applicant's age."),
2772
2777
  D("auto_continuous_coverage_years", "Years with continuous auto coverage cannot be greater than the Applicant's age."),
2773
2778
  {
@@ -2808,7 +2813,7 @@ var pt = (/* @__PURE__ */ new Date()).getUTCFullYear(), W = T().trim().min(1, "R
2808
2813
  targetKey: "custom_equipment_value_cents",
2809
2814
  dependsOn: ["custom_equipment_value_cents", "stated_value_amount_cents"],
2810
2815
  validate: (e) => {
2811
- let t = I(e.custom_equipment_value_cents), r = I(e.stated_value_amount_cents);
2816
+ let t = S(e.custom_equipment_value_cents), r = S(e.stated_value_amount_cents);
2812
2817
  if (t != null && r != null) return r > 0 && t > 0 ? "Modifications should be included in the stated value of the vehicle. If a stated value quote is not required, remove the stated value." : void 0;
2813
2818
  }
2814
2819
  }
@@ -1,6 +1,6 @@
1
- import { t as h } from "./widget-DcTSEv8D.js";
2
- import { _ as f } from "./visibility-iwttXt0y-DOQ-bNNl.js";
3
- import { k as p } from "./validation-Db4WCn17-TOMPypn_.js";
1
+ import { s as h } from "./widget-fDShn8w9.js";
2
+ import { _ as f } from "./visibility-xQNTF1no-t9wamJ9M.js";
3
+ import { k as p } from "./validation-D9L1J71d-BF62B66y.js";
4
4
  (function() {
5
5
  if (typeof o > "u")
6
6
  var o = { env: {} };
@@ -28,7 +28,7 @@ var x = /* @__PURE__ */ h({
28
28
  "vehicle_coll_deductible",
29
29
  "vehicle_towing_and_labor",
30
30
  "vehicle_transportation_expense"
31
- ], a = [
31
+ ], v = [
32
32
  "NoCoverage",
33
33
  "Zero",
34
34
  "Fifty",
@@ -94,8 +94,8 @@ var x = /* @__PURE__ */ h({
94
94
  }, w = (o) => {
95
95
  let e = f(o);
96
96
  return {
97
- vehicle_comp_deductible: e ? c : a,
98
- vehicle_coll_deductible: e ? c : a,
97
+ vehicle_comp_deductible: e ? c : v,
98
+ vehicle_coll_deductible: e ? c : v,
99
99
  vehicle_towing_and_labor: e ? m : g,
100
100
  vehicle_transportation_expense: e ? T : E
101
101
  };
@@ -112,9 +112,9 @@ var x = /* @__PURE__ */ h({
112
112
  if (r < 2) return null;
113
113
  let t = o[`v${e}`];
114
114
  if (!t) return null;
115
- let i = Array.from({ length: r }, (n, v) => t[`d${v}`] ?? 0), l = i.filter((n) => n > 0);
115
+ let i = Array.from({ length: r }, (n, a) => t[`d${a}`] ?? 0), l = i.filter((n) => n > 0);
116
116
  if (l.length >= 2 && l.every((n) => n === 50)) return "Two drivers cannot both be at 50%. Give one of them the larger share.";
117
- let d = i.reduce((n, v) => n + v, 0);
117
+ let d = i.reduce((n, a) => n + a, 0);
118
118
  return d > 0 && d !== 100 ? `Driver percentages must add up to 100% (currently ${d}%).` : null;
119
119
  }, $ = (o) => {
120
120
  let e = [];
@@ -1,4 +1,4 @@
1
- import { a5 as w } from "./widget-DcTSEv8D.js";
1
+ import { a6 as w } from "./widget-fDShn8w9.js";
2
2
  import { n as C } from "./types-LUGvo5ic-CiVRcsV9.js";
3
3
  (function() {
4
4
  if (typeof e > "u")
@@ -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
- }, H = (e) => {
121
+ }, $ = (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
- }, 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) => {
142
+ }, j = (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), H = (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 : W(r, n);
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) => {
146
+ return o && n.hideWhenNoPriorInsuranceKeys.has(i) ? !1 : !n.noInsuranceReasonKeys.has(i) || o ? !0 : j(r, n);
147
+ }, W = /* @__PURE__ */ new Set(["HomePolicy", "BundlePolicy"]), q = (e, r, n) => (e.key ?? "") !== "lapse_in_coverage" || !n || !W.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 = H(i), l = [], u = (c) => {
153
+ let i = N(e), o = $(i), l = [], u = (c) => {
154
154
  c.forEach((s) => {
155
- if (!$(s, r, o) || !M(s, r) || !q(s, r, n)) return;
155
+ if (!H(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;
@@ -1,4 +1,4 @@
1
- import { a6 as e } from "./widget-DcTSEv8D.js";
1
+ import { a7 as e } from "./widget-fDShn8w9.js";
2
2
  (function() {
3
3
  if (typeof a > "u")
4
4
  var a = { env: {} };