@getcredify/credify-insurance-widget 1.47.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.
- package/dist/{address-BEVwov8q-CFogwodr.js → address-BEVwov8q-CazC1JIl.js} +1 -1
- package/dist/{api-EzrQ6TjH.js → api-Bepbbwlb.js} +15 -15
- package/dist/{car-CxlVKO91.js → car-B21VP4YN.js} +1 -1
- package/dist/{check-BAikbl_K.js → check-CwRR4vvM.js} +1 -1
- package/dist/{copy-applicant-offer-UApiJBeU-BesLtSKE.js → copy-applicant-offer-B-BuqAOO-a4y-KPDr.js} +11 -11
- package/dist/{copy-from-record-DL503itm-Cr4NH27U.js → copy-from-record-DL503itm-2slKSwa4.js} +4 -4
- package/dist/{coverageDerivation-CV2ORogj-C2Nwlsa1.js → coverageDerivation-CV2ORogj-BoLiDnjR.js} +1 -1
- package/dist/{fixtures-ijbZ16Zg-B9zEGweJ.js → fixtures-ijbZ16Zg-CwFDJNFI.js} +1 -1
- package/dist/{household-prefill-BwSS00qI-Cngp1yri.js → household-prefill-CdB4ZxsR-D4_lkTx8.js} +26 -26
- package/dist/{householdPrefill-DLm3pxFH-CSdgf8cD.js → householdPrefill-DLm3pxFH-dPJrX2ul.js} +1 -1
- package/dist/iframe/assets/{address-BEVwov8q-CQFQYwN_.js → address-BEVwov8q-EtrExGBv.js} +1 -1
- package/dist/iframe/assets/{car-dMyHgJCm.js → car-lKtbZzIv.js} +1 -1
- package/dist/iframe/assets/{check-vA4Wm8iT.js → check-DafU7JDn.js} +1 -1
- package/dist/iframe/assets/{copy-applicant-offer-UApiJBeU-DoOvd5Iq.js → copy-applicant-offer-B-BuqAOO-CtFqk8YK.js} +1 -1
- package/dist/iframe/assets/{copy-from-record-DL503itm-Db_VVvOI.js → copy-from-record-DL503itm-BXJJYs1Y.js} +1 -1
- package/dist/iframe/assets/{coverageDerivation-CV2ORogj-gpaPp3-I.js → coverageDerivation-CV2ORogj-Dne34PDQ.js} +1 -1
- package/dist/iframe/assets/{dob-calendar-RIJ5S6YU-Tg0d9tov.js → dob-calendar-RIJ5S6YU-BfbUKPI9.js} +1 -1
- package/dist/iframe/assets/{fixtures-ijbZ16Zg-Cbt1vB2m.js → fixtures-ijbZ16Zg-D-3ehYX7.js} +1 -1
- package/dist/iframe/assets/{household-prefill-BwSS00qI-C8MTGR1p.js → household-prefill-CdB4ZxsR-BPthWPX-.js} +1 -1
- package/dist/iframe/assets/{householdPrefill-DLm3pxFH-BMN6WUsw.js → householdPrefill-DLm3pxFH-jl-HbpRV.js} +1 -1
- package/dist/iframe/assets/iframe-ZamrsKm7.js +107 -0
- package/dist/iframe/assets/{index-CeDETFEQ.js → index-BeV6waqv.js} +1 -1
- package/dist/iframe/assets/intake-review-panel-BJRYQaBx-CIkJtRek.js +1 -0
- package/dist/iframe/assets/{mockJump-DCZoGtRl-DqT1rb7l.js → mockJump-CKjCOGxR-tRN3Jwzq.js} +1 -1
- package/dist/iframe/assets/{payload-DurIYSZk-Bq3ZDZQk.js → payload-BMtl8VDy-DSIXtfb-.js} +1 -1
- package/dist/iframe/assets/{question-list-CjN64tfw-D8aGV13x.js → question-list-BK2EN74l-8nbZZnvU.js} +3 -3
- package/dist/iframe/assets/{rates-panel-B1xVYtTQ-CInEw7cd.js → rates-panel-BOaKRZ_Y-DspzIEmi.js} +3 -3
- package/dist/iframe/assets/{review-panel-DuzWoTKP-Rwdzp6eC.js → review-panel-BQmrPgdC-Dh84GHcf.js} +2 -2
- package/dist/iframe/assets/{stage-CnucLiNn-DuURgPad.js → stage-zClSIgVN-CQ0m7lYx.js} +1 -1
- package/dist/iframe/assets/{validation-Db4WCn17-_NNdawKQ.js → validation-D9L1J71d-D-I9M7xX.js} +2 -2
- package/dist/iframe/assets/{vehicleCoverage-CDBtkdww-Bo-t8CRG.js → vehicleCoverage-CgeEazR0-DlDAnkau.js} +1 -1
- package/dist/iframe/assets/{visibility-iwttXt0y-DNGCSVig.js → visibility-xQNTF1no-_O_ggMOv.js} +1 -1
- package/dist/iframe/assets/{waves-DRA5QD6r.js → waves-CGWFF4s2.js} +1 -1
- package/dist/iframe/iframe.html +1 -1
- package/dist/{index-DBc8hvqD.js → index-DbadJytg.js} +1 -1
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +103 -103
- package/dist/intake-review-panel-BJRYQaBx-Bb4VAszN.js +224 -0
- package/dist/{mockJump-DCZoGtRl-DBhd5ad0.js → mockJump-CKjCOGxR-Boxby2dZ.js} +1 -1
- package/dist/{payload-DurIYSZk-CKtSbWzb.js → payload-BMtl8VDy-maqSOQIZ.js} +20 -20
- package/dist/{question-list-CjN64tfw-BpPrkylH.js → question-list-BK2EN74l-Cn9ka_Tm.js} +13 -13
- package/dist/{rates-panel-B1xVYtTQ-BUF3Ofoi.js → rates-panel-BOaKRZ_Y-ciWr81fl.js} +47 -47
- package/dist/{review-panel-DuzWoTKP-BfwFC6Jz.js → review-panel-BQmrPgdC-CXP39hws.js} +98 -98
- package/dist/{stage-CnucLiNn-CjHsEHOW.js → stage-zClSIgVN-CC_teHAO.js} +26 -26
- package/dist/utils/support/cobrowse.d.ts +1 -1
- package/dist/utils/support/index.d.ts +2 -0
- package/dist/{validation-Db4WCn17-DiPhPmjM.js → validation-D9L1J71d-BF62B66y.js} +22 -17
- package/dist/{vehicleCoverage-CDBtkdww-Bm9pGAq7.js → vehicleCoverage-CgeEazR0-C3ugp85r.js} +8 -8
- package/dist/{visibility-iwttXt0y-DtOOYFcv.js → visibility-xQNTF1no-t9wamJ9M.js} +7 -7
- package/dist/{waves-oZRnENZl.js → waves-BpyYhsaC.js} +1 -1
- package/dist/{widget-CpC6N1oq.js → widget-fDShn8w9.js} +2887 -2844
- package/package.json +2 -2
- package/dist/iframe/assets/iframe-BqFwviRo.js +0 -107
- package/dist/iframe/assets/intake-review-panel-CjiYTJXh-CxJXC0fl.js +0 -1
- package/dist/intake-review-panel-CjiYTJXh-Cy_2auOe.js +0 -186
|
@@ -31,7 +31,7 @@ declare global {
|
|
|
31
31
|
* with the agent. Returns null if the SDK is unavailable or codes are disabled.
|
|
32
32
|
*/
|
|
33
33
|
export declare function startCobrowse(license: string): Promise<string | null>;
|
|
34
|
-
/** End any active session and reset (used on widget destroy). */
|
|
34
|
+
/** End any active session and reset (used on widget destroy and "Stop sharing"). */
|
|
35
35
|
export declare function stopCobrowse(): void;
|
|
36
36
|
export {};
|
|
37
37
|
//# sourceMappingURL=cobrowse.d.ts.map
|
|
@@ -18,6 +18,8 @@ export declare function initSupport(options?: WidgetSupportOptions): void;
|
|
|
18
18
|
export declare function openChat(): Promise<boolean>;
|
|
19
19
|
/** Start screen sharing; resolves to a 6-digit code for the agent, or null. */
|
|
20
20
|
export declare function startScreenShare(): Promise<string | null>;
|
|
21
|
+
/** End the shopper's screen share, if one is running. */
|
|
22
|
+
export declare function stopScreenShare(): void;
|
|
21
23
|
export declare function isChatEnabled(): boolean;
|
|
22
24
|
export declare function isScreenShareEnabled(): boolean;
|
|
23
25
|
/** Remove listeners and shut down SDKs. Safe to call when never initialised. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { al as _t } from "./widget-
|
|
2
|
-
import { _ as gt } from "./visibility-
|
|
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
|
|
1800
|
-
|
|
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
|
|
1803
|
-
|
|
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
|
-
},
|
|
2072
|
+
}, O = /* @__PURE__ */ u("ZodError", So, {
|
|
2073
2073
|
Parent: Error
|
|
2074
|
-
}), Oo = /* @__PURE__ */ fe(
|
|
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
|
-
},
|
|
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 =
|
|
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 =
|
|
2704
|
-
if (t != null) return t < (
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 {
|
|
2
|
-
import { _ as f } from "./visibility-
|
|
3
|
-
import { k as p } from "./validation-
|
|
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
|
-
],
|
|
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 :
|
|
98
|
-
vehicle_coll_deductible: e ? c :
|
|
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,
|
|
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,
|
|
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 {
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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 :
|
|
147
|
-
},
|
|
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 =
|
|
153
|
+
let i = N(e), o = $(i), l = [], u = (c) => {
|
|
154
154
|
c.forEach((s) => {
|
|
155
|
-
if (
|
|
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;
|