@getcredify/credify-insurance-widget 1.42.0 → 1.44.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 +18 -0
- package/dist/{address-BEVwov8q-C8G87tij.js → address-BEVwov8q-CuX4iOBo.js} +1 -1
- package/dist/{api-C7f0dnt7.js → api-DYP3b3gY.js} +15 -15
- package/dist/{car-B0hJrE0Z.js → car-CR69ZjJ2.js} +1 -1
- package/dist/{check-Dfh9u4c0.js → check-Bo3wjuln.js} +1 -1
- package/dist/{copy-applicant-offer-B-BIN2o5-BX-QE7Ao.js → copy-applicant-offer-CqzfNhkJ-C01V9k7v.js} +3 -3
- package/dist/{copy-from-record-BNP6CFFR-Bcb9EW-a.js → copy-from-record-BNP6CFFR-B0wsM313.js} +8 -8
- package/dist/{core-Po4qPIof-fZL0sXdW.js → core-CrEw_I-E-D_5b2Ij3.js} +1 -1
- package/dist/{coverageDerivation-CV2ORogj-CAthw76f.js → coverageDerivation-CV2ORogj-CEEm5ZWr.js} +1 -1
- package/dist/{fixtures-ijbZ16Zg-Csnryzo8.js → fixtures-ijbZ16Zg-C9Egb9wf.js} +1 -1
- package/dist/{household-prefill-DVLBBva1-GGgzEdDL.js → household-prefill-CmtB9R3R-D86kYzTo.js} +8 -8
- package/dist/{householdPrefill-DLm3pxFH-B34UGBGP.js → householdPrefill-DLm3pxFH-BWVN4BLJ.js} +1 -1
- package/dist/iframe/assets/{address-BEVwov8q-BpbNiia-.js → address-BEVwov8q-BckjuR7s.js} +1 -1
- package/dist/iframe/assets/{car-DkfXVYz0.js → car-DKll0kXc.js} +1 -1
- package/dist/iframe/assets/{check-l6TGSrXO.js → check-B9ojZKSs.js} +1 -1
- package/dist/iframe/assets/{copy-applicant-offer-B-BIN2o5-cs-SCWuH.js → copy-applicant-offer-CqzfNhkJ-DJkKq7un.js} +1 -1
- package/dist/iframe/assets/{copy-from-record-BNP6CFFR-BtCRUQRw.js → copy-from-record-BNP6CFFR-Dk7QPvpr.js} +1 -1
- package/dist/iframe/assets/{core-Po4qPIof-jDmdAxP7.js → core-CrEw_I-E-Cgrp_zkJ.js} +1 -1
- package/dist/iframe/assets/{coverageDerivation-CV2ORogj-DhQFAhwv.js → coverageDerivation-CV2ORogj-BaQlJ22H.js} +1 -1
- package/dist/iframe/assets/{dob-calendar-RIJ5S6YU-DO_r0-z3.js → dob-calendar-RIJ5S6YU-C3ZYmy3v.js} +1 -1
- package/dist/iframe/assets/{fixtures-ijbZ16Zg-CUQxYANz.js → fixtures-ijbZ16Zg-B0KKADMf.js} +1 -1
- package/dist/iframe/assets/{household-prefill-DVLBBva1-DTK1EHT0.js → household-prefill-CmtB9R3R-DtfByJ8T.js} +1 -1
- package/dist/iframe/assets/{householdPrefill-DLm3pxFH-BM54Rqyd.js → householdPrefill-DLm3pxFH-DNBBTd54.js} +1 -1
- package/dist/iframe/assets/iframe-Chy4dD4i.js +107 -0
- package/dist/iframe/assets/{index-CNb9AhPB.js → index-D81Toecg.js} +2 -2
- package/dist/iframe/assets/{intake-review-panel-B7rXvRvm-wNGntinn.js → intake-review-panel-D27t8CZO-CyXFTi_6.js} +1 -1
- package/dist/iframe/assets/{mockJump-DpXrnQUq-DKyp2H5R.js → mockJump-hNzgzUmO-B4HifTQZ.js} +1 -1
- package/dist/iframe/assets/payload-DrGFAxms-CKeiScMv.js +1 -0
- package/dist/iframe/assets/{question-list-ChcBzofd-D5ZVofFR.js → question-list-DFjWa8ZA-5HX-Q_DR.js} +3 -3
- package/dist/iframe/assets/{rates-panel-BaIzEqX6-GSsykLkc.js → rates-panel-BSFiWEZX-CUbwWzwJ.js} +3 -3
- package/dist/iframe/assets/{review-panel-DYCuhwdo-CyBebe6T.js → review-panel-C_WxX33U-BnudlA3G.js} +2 -2
- package/dist/iframe/assets/{stage-Bpq1A5xB-CwZgWOhp.js → stage-knShj71W-BrRsgDlE.js} +1 -1
- package/dist/iframe/assets/{validation-DRqHT-u7-pY2KjHw4.js → validation-D42QXxck-DJUS31-5.js} +1 -1
- package/dist/iframe/assets/{vehicleCoverage-BPJaWQyg-DBJ_jL3e.js → vehicleCoverage-CBWORI1l-Bs6c4Xhh.js} +1 -1
- package/dist/iframe/assets/{visibility-hEdBjgi7-_AUGO8E2.js → visibility-CKRGC3Il-DVTBboJH.js} +1 -1
- package/dist/iframe/iframe.html +1 -1
- package/dist/{index-CQXR1Un8.js → index-7nmHdjZ4.js} +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +103 -103
- package/dist/{intake-review-panel-B7rXvRvm-CDyR-rVg.js → intake-review-panel-D27t8CZO-CKLXjEb0.js} +11 -11
- package/dist/{mockJump-DpXrnQUq-BaitU9aZ.js → mockJump-hNzgzUmO-De8oea8T.js} +1 -1
- package/dist/{payload-JXpCaeS6-pjITtvlm.js → payload-DrGFAxms-CivFCNuj.js} +4 -4
- package/dist/{question-list-ChcBzofd-fVRN9fTl.js → question-list-DFjWa8ZA-sWgoo34K.js} +13 -13
- package/dist/{rates-panel-BaIzEqX6-BULjKxqz.js → rates-panel-BSFiWEZX-D2Z8IzSh.js} +36 -36
- package/dist/{review-panel-DYCuhwdo-BImR4S06.js → review-panel-C_WxX33U-qkUKI77r.js} +16 -16
- package/dist/{stage-Bpq1A5xB-Cphc07aC.js → stage-knShj71W-Cndh8rxW.js} +15 -15
- package/dist/utils/placesAuthFailure.d.ts +10 -0
- package/dist/utils/prefill.d.ts +18 -0
- package/dist/{validation-DRqHT-u7-CL2m7f4k.js → validation-D42QXxck-DFkyiEd-.js} +1 -1
- package/dist/{vehicleCoverage-BPJaWQyg-g7bBFmro.js → vehicleCoverage-CBWORI1l-Br309K1G.js} +3 -3
- package/dist/{visibility-hEdBjgi7-WW4BVjmf.js → visibility-CKRGC3Il-SsuTwW3e.js} +1 -1
- package/dist/{widget-BUAzkBEK.js → widget-Bc0CD2Yh.js} +2834 -2767
- package/package.json +2 -2
- package/dist/iframe/assets/iframe-BImWklE9.js +0 -107
- package/dist/iframe/assets/payload-JXpCaeS6-CcfrGvLo.js +0 -1
package/dist/{intake-review-panel-B7rXvRvm-CDyR-rVg.js → intake-review-panel-D27t8CZO-CKLXjEb0.js}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { t as V,
|
|
2
|
-
import { t as z } from "./question-list-
|
|
3
|
-
import { S as D, w as L, D as M, x as N, P as U } from "./review-panel-
|
|
4
|
-
import { o as _, n as A, r as G } from "./stage-
|
|
1
|
+
import { t as V, u as j, G as w, Q as h, r as q, R as S, U as $ } from "./widget-Bc0CD2Yh.js";
|
|
2
|
+
import { t as z } from "./question-list-DFjWa8ZA-sWgoo34K.js";
|
|
3
|
+
import { S as D, w as L, D as M, x as N, P as U } from "./review-panel-C_WxX33U-qkUKI77r.js";
|
|
4
|
+
import { o as _, n as A, r as G } from "./stage-knShj71W-Cndh8rxW.js";
|
|
5
5
|
import { useState as k, useMemo as g, useCallback as H } from "react";
|
|
6
|
-
import { jsxs as t, jsx as s, Fragment as
|
|
7
|
-
import { C as W } from "./check-
|
|
6
|
+
import { jsxs as t, jsx as s, Fragment as Q } from "react/jsx-runtime";
|
|
7
|
+
import { C as W } from "./check-Bo3wjuln.js";
|
|
8
8
|
(function() {
|
|
9
9
|
if (typeof a > "u")
|
|
10
10
|
var a = { env: {} };
|
|
11
11
|
})();
|
|
12
|
-
var de = /* @__PURE__ */ V({ IntakeReviewPanel: () =>
|
|
12
|
+
var de = /* @__PURE__ */ V({ IntakeReviewPanel: () => O }), 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,
|
|
@@ -19,7 +19,7 @@ var de = /* @__PURE__ */ V({ IntakeReviewPanel: () => Z }), C = (a) => `${a} ${a
|
|
|
19
19
|
"aria-hidden": "true",
|
|
20
20
|
className: "cds-h-3.5 cds-w-3.5"
|
|
21
21
|
}), r ? "Done" : "Edit"]
|
|
22
|
-
}),
|
|
22
|
+
}), O = ({ stages: a, questionsByStage: r, values: i, quoteId: K, loading: f, busy: o, error: P, suppressedKeys: c, onPatch: I, onConfirm: E }) => {
|
|
23
23
|
let [B, p] = k(null), [b, F] = k(!1), y = g(() => a.filter((e) => !j.has(e)), [a]), l = g(() => y.map((e) => {
|
|
24
24
|
let d = r[e] ?? [];
|
|
25
25
|
return {
|
|
@@ -107,7 +107,7 @@ var de = /* @__PURE__ */ V({ IntakeReviewPanel: () => Z }), C = (a) => `${a} ${a
|
|
|
107
107
|
children: [/* @__PURE__ */ s("h3", {
|
|
108
108
|
className: D,
|
|
109
109
|
children: d
|
|
110
|
-
}), /* @__PURE__ */ s(
|
|
110
|
+
}), /* @__PURE__ */ s(J, {
|
|
111
111
|
label: d,
|
|
112
112
|
open: n,
|
|
113
113
|
onClick: () => p(n ? null : e.stage)
|
|
@@ -121,7 +121,7 @@ var de = /* @__PURE__ */ V({ IntakeReviewPanel: () => Z }), C = (a) => `${a} ${a
|
|
|
121
121
|
quoteId: K,
|
|
122
122
|
suppressedKeys: c,
|
|
123
123
|
onPatch: I
|
|
124
|
-
}) : /* @__PURE__ */ t(
|
|
124
|
+
}) : /* @__PURE__ */ t(Q, { 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)
|
|
@@ -182,5 +182,5 @@ var de = /* @__PURE__ */ V({ IntakeReviewPanel: () => Z }), C = (a) => `${a} ${a
|
|
|
182
182
|
};
|
|
183
183
|
export {
|
|
184
184
|
de as n,
|
|
185
|
-
|
|
185
|
+
O as t
|
|
186
186
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { t as
|
|
1
|
+
import { t as w, n as d, o as E } from "./widget-Bc0CD2Yh.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-CuX4iOBo.js";
|
|
4
4
|
(function() {
|
|
5
5
|
if (typeof t > "u")
|
|
6
6
|
var t = { env: {} };
|
|
7
7
|
})();
|
|
8
|
-
var z = /* @__PURE__ */
|
|
8
|
+
var z = /* @__PURE__ */ w({
|
|
9
9
|
REPEATABLE_GROUP_KEYS: () => h,
|
|
10
10
|
fromQuoteRecord: () => g,
|
|
11
11
|
normalizeEducationLevelValue: () => v,
|
|
@@ -29,7 +29,7 @@ var z = /* @__PURE__ */ E({
|
|
|
29
29
|
if (!s || e[s]) return t;
|
|
30
30
|
let n = s.toLowerCase();
|
|
31
31
|
return Object.keys(e).find((i) => i.toLowerCase() === n || e[i]?.toLowerCase() === n) ?? t;
|
|
32
|
-
}, b = (t) => m(t, d.industry), v = (t) => m(t, d.education_level), A = (t) => m(t,
|
|
32
|
+
}, b = (t) => m(t, d.industry), v = (t) => m(t, d.education_level), A = (t) => m(t, E), j = (t) => {
|
|
33
33
|
let e = {}, s = 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);
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { a4 as A, ag as ge, ah as ca, t as la, aa as F, aj as da, ak as ua, al as gn,
|
|
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-
|
|
1
|
+
import { a4 as A, ag as ge, ah as ca, t as la, aa as F, aj as da, ak as ua, al as gn, r as z, am as ha, Q as et, a5 as fa, an as pa, ao as ma, w as va, T as ya, ap as ga } from "./widget-Bc0CD2Yh.js";
|
|
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";
|
|
3
3
|
import { n as Ue } from "./types-LUGvo5ic-CiVRcsV9.js";
|
|
4
|
-
import { s as _a, a as Ma } from "./address-BEVwov8q-
|
|
5
|
-
import { _ as Ca, U as Sa, g as Ea, s as Na } from "./householdPrefill-DLm3pxFH-
|
|
6
|
-
import { k as Pa, n as Aa, u as $a, c as Ra, d as Oa, j as Ta, A as Da } from "./visibility-
|
|
7
|
-
import { T as La, C as Ia, f as Kr } from "./validation-
|
|
8
|
-
import { i as Fa, a as Va, t as Yr, u as Ba, f as Ha, n as za, r as ja, s as Wa, p as qa } from "./vehicleCoverage-
|
|
9
|
-
import { t as Ua, d as Ka, l as Ya, u as Ga } from "./stage-
|
|
10
|
-
import { s as Xa, u as Gr, l as Qa, c as Za, U as Ja } from "./copy-from-record-BNP6CFFR-
|
|
11
|
-
import { c as ei, d as ti, s as ni } from "./coverageDerivation-CV2ORogj-
|
|
4
|
+
import { s as _a, a as Ma } from "./address-BEVwov8q-CuX4iOBo.js";
|
|
5
|
+
import { _ as Ca, U as Sa, g as Ea, s as Na } from "./householdPrefill-DLm3pxFH-BWVN4BLJ.js";
|
|
6
|
+
import { k as Pa, n as Aa, u as $a, c as Ra, d as Oa, j as Ta, A as Da } from "./visibility-CKRGC3Il-SsuTwW3e.js";
|
|
7
|
+
import { T as La, C as Ia, f as Kr } from "./validation-D42QXxck-DFkyiEd-.js";
|
|
8
|
+
import { i as Fa, a as Va, t as Yr, u as Ba, f as Ha, n as za, r as ja, s as Wa, p as qa } from "./vehicleCoverage-CBWORI1l-Br309K1G.js";
|
|
9
|
+
import { t as Ua, d as Ka, l as Ya, u as Ga } from "./stage-knShj71W-Cndh8rxW.js";
|
|
10
|
+
import { s as Xa, u as Gr, l as Qa, c as Za, U as Ja } from "./copy-from-record-BNP6CFFR-B0wsM313.js";
|
|
11
|
+
import { c as ei, d as ti, s as ni } from "./coverageDerivation-CV2ORogj-CEEm5ZWr.js";
|
|
12
12
|
import * as x from "react";
|
|
13
13
|
import { useState as ee, useLayoutEffect as ri, useMemo as Y, useCallback as me, useId as bn, useRef as fe, useEffect as Ie } from "react";
|
|
14
14
|
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 oi, c as xn, d as kn, u as Xr, a as ai, C as Qr } from "./index-
|
|
15
|
+
import { e as Xe, P as le, b as J, f as oi, c as xn, d as kn, u as Xr, a as ai, C as Qr } from "./index-7nmHdjZ4.js";
|
|
16
16
|
import * as Zr from "react-dom";
|
|
17
|
-
import { C as Jr } from "./check-
|
|
18
|
-
import { C as Yn } from "./car-
|
|
17
|
+
import { C as Jr } from "./check-Bo3wjuln.js";
|
|
18
|
+
import { C as Yn } from "./car-CR69ZjJ2.js";
|
|
19
19
|
(function() {
|
|
20
20
|
if (typeof e > "u")
|
|
21
21
|
var e = { env: {} };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a4 as de, t as Oe, a6 as ze,
|
|
2
|
-
import { g as Xe, A as Ze, k as es, j as ss, S as ee, u as x, p as v, y as ts, m as _e, W as ye, H as ds, h as cs, b as as } from "./core-
|
|
1
|
+
import { a4 as de, t as Oe, a6 as ze, U as F, a7 as $, a8 as Z, a9 as H, aa as Me, R as ge, r as y, p as We, _ as Be, ab as be, ac as Ve, ad as Ye, l as Ue, e as xe, h as Ge, F as Ke, f as Qe, ae as Je } from "./widget-Bc0CD2Yh.js";
|
|
2
|
+
import { g as Xe, A as Ze, k as es, j as ss, S as ee, u as x, p as v, y as ts, m as _e, W as ye, H as ds, h as cs, b as as } from "./core-CrEw_I-E-D_5b2Ij3.js";
|
|
3
3
|
import { useState as u, useRef as se, useCallback as ve, useEffect as O, useMemo as Ne } from "react";
|
|
4
4
|
import { jsxs as d, jsx as e, Fragment as rs } from "react/jsx-runtime";
|
|
5
|
-
import { C as ls } from "./car-
|
|
6
|
-
import { C as ns } from "./check-
|
|
5
|
+
import { C as ls } from "./car-CR69ZjJ2.js";
|
|
6
|
+
import { C as ns } from "./check-Bo3wjuln.js";
|
|
7
7
|
(function() {
|
|
8
8
|
if (typeof t > "u")
|
|
9
9
|
var t = { env: {} };
|
|
@@ -53,7 +53,7 @@ var fs = 2500, ps = (t) => {
|
|
|
53
53
|
O(() => {
|
|
54
54
|
n.current || (n.current = !0, (async () => {
|
|
55
55
|
try {
|
|
56
|
-
let [{ issueResumeLink: m }, { buildResumeUrl: p }] = await Promise.all([import("./api-
|
|
56
|
+
let [{ issueResumeLink: m }, { buildResumeUrl: p }] = await Promise.all([import("./api-DYP3b3gY.js"), import("./widget-Bc0CD2Yh.js").then((q) => q.ar).then((q) => q.u)]), { resumeToken: T, expiresAt: z } = await m(t ?? void 0);
|
|
57
57
|
o({
|
|
58
58
|
kind: "ready",
|
|
59
59
|
url: p(T),
|
|
@@ -143,7 +143,7 @@ var fs = 2500, ps = (t) => {
|
|
|
143
143
|
market: "not_quoted",
|
|
144
144
|
label: "Not quoted"
|
|
145
145
|
}
|
|
146
|
-
],
|
|
146
|
+
], D = (t) => ({
|
|
147
147
|
tab: `rates-tab-${t}`,
|
|
148
148
|
panel: `rates-panel-${t}`
|
|
149
149
|
}), qe = ({ rate: t, size: a }) => {
|
|
@@ -316,7 +316,7 @@ var fs = 2500, ps = (t) => {
|
|
|
316
316
|
children: a
|
|
317
317
|
}),
|
|
318
318
|
/* @__PURE__ */ d("a", {
|
|
319
|
-
href:
|
|
319
|
+
href: H,
|
|
320
320
|
onClick: () => Z("phone_call_click", {
|
|
321
321
|
placement: "quote_rates_fallback",
|
|
322
322
|
phone: $
|
|
@@ -352,7 +352,7 @@ var fs = 2500, ps = (t) => {
|
|
|
352
352
|
]
|
|
353
353
|
}) : null;
|
|
354
354
|
}, $s = ({ product: t, quoteId: a, describeField: o, onFixAnswers: l, onRetry: h, onBound: C }) => {
|
|
355
|
-
let [n, f] = u({ kind: "polling" }), [w, m] = u(null), [p, T] = u(), [z, q] = u({}), [N, $e] = u([]), [Ce, Ae] = u(!1), [M, ce] = u(""), [Ie,
|
|
355
|
+
let [n, f] = u({ kind: "polling" }), [w, m] = u(null), [p, T] = u(), [z, q] = u({}), [N, $e] = u([]), [Ce, Ae] = u(!1), [M, ce] = u(""), [Ie, S] = u(), [W, ae] = u(!1), [P, B] = u(0), [re, le] = u(!1), [V, ne] = u(!1), [Te, ie] = u(), A = se(0), Y = ve(() => {
|
|
356
356
|
A.current += 1;
|
|
357
357
|
let s = A.current, c = Date.now(), r = async () => {
|
|
358
358
|
if (s === A.current) {
|
|
@@ -420,11 +420,11 @@ var fs = 2500, ps = (t) => {
|
|
|
420
420
|
O(() => (Y(), () => {
|
|
421
421
|
A.current += 1;
|
|
422
422
|
}), [Y]), O(() => {
|
|
423
|
-
if (
|
|
423
|
+
if (P <= 0) return;
|
|
424
424
|
let s = setTimeout(() => B((c) => c - 1), 1e3);
|
|
425
425
|
return () => clearTimeout(s);
|
|
426
|
-
}, [
|
|
427
|
-
let g = Ne(() => Xe(n.kind === "ready" ? n.rates : []), [n]), oe = (s) => Array.isArray(s) ? s.filter((c) => c && typeof c == "object") : [],
|
|
426
|
+
}, [P]);
|
|
427
|
+
let g = Ne(() => Xe(n.kind === "ready" ? n.rates : []), [n]), oe = (s) => Array.isArray(s) ? s.filter((c) => c && typeof c == "object") : [], Se = Ne(() => n.kind === "validation_failed" ? Ze(n.errors, {
|
|
428
428
|
describeField: o,
|
|
429
429
|
vehicles: oe(p?.vehicles),
|
|
430
430
|
drivers: oe(p?.drivers)
|
|
@@ -438,20 +438,20 @@ var fs = 2500, ps = (t) => {
|
|
|
438
438
|
kind: "verify",
|
|
439
439
|
rate: s,
|
|
440
440
|
rates: c
|
|
441
|
-
}),
|
|
441
|
+
}), S(void 0), ce("");
|
|
442
442
|
let r = String(p?.phone ?? "");
|
|
443
443
|
try {
|
|
444
444
|
await Ge(a, r), B(60);
|
|
445
445
|
} catch (i) {
|
|
446
|
-
i instanceof xe && i.statusCode === 429 ? B(i.retryAfterSeconds ?? 60) :
|
|
446
|
+
i instanceof xe && i.statusCode === 429 ? B(i.retryAfterSeconds ?? 60) : S("We could not text your code. Try again in a moment.");
|
|
447
447
|
}
|
|
448
|
-
},
|
|
448
|
+
}, Pe = async (s, c) => {
|
|
449
449
|
if (!(!a || W)) {
|
|
450
|
-
ae(!0),
|
|
450
|
+
ae(!0), S(void 0);
|
|
451
451
|
try {
|
|
452
452
|
let { isVerified: r } = await Ue(a, M);
|
|
453
453
|
if (!r) {
|
|
454
|
-
|
|
454
|
+
S("That code did not match. Check it and try again.");
|
|
455
455
|
return;
|
|
456
456
|
}
|
|
457
457
|
f({
|
|
@@ -462,7 +462,7 @@ var fs = 2500, ps = (t) => {
|
|
|
462
462
|
[J(s)]: s.quote_rate_id
|
|
463
463
|
}));
|
|
464
464
|
} catch (r) {
|
|
465
|
-
|
|
465
|
+
S(r instanceof xe && r.statusCode === 429 ? "Too many attempts. Request a new code." : "We could not verify that code. Please try again.");
|
|
466
466
|
} finally {
|
|
467
467
|
ae(!1);
|
|
468
468
|
}
|
|
@@ -517,7 +517,7 @@ var fs = 2500, ps = (t) => {
|
|
|
517
517
|
]
|
|
518
518
|
});
|
|
519
519
|
if (n.kind === "validation_failed") {
|
|
520
|
-
let s =
|
|
520
|
+
let s = Se;
|
|
521
521
|
return !s || s.isOpaque ? /* @__PURE__ */ e(Q, {
|
|
522
522
|
heading: "Let's finish this one together",
|
|
523
523
|
body: "The carrier needs a couple of details we can't collect online. An agent can sort it out with you in a few minutes.",
|
|
@@ -574,7 +574,7 @@ var fs = 2500, ps = (t) => {
|
|
|
574
574
|
}) : null
|
|
575
575
|
]
|
|
576
576
|
}),
|
|
577
|
-
/* @__PURE__ */ e(
|
|
577
|
+
/* @__PURE__ */ e(F, {
|
|
578
578
|
onClick: () => l(n.errors),
|
|
579
579
|
children: "Fix my answers"
|
|
580
580
|
}),
|
|
@@ -584,7 +584,7 @@ var fs = 2500, ps = (t) => {
|
|
|
584
584
|
"Or call",
|
|
585
585
|
" ",
|
|
586
586
|
/* @__PURE__ */ e("a", {
|
|
587
|
-
href:
|
|
587
|
+
href: H,
|
|
588
588
|
onClick: () => Z("phone_call_click", {
|
|
589
589
|
placement: "quote_rates_validation",
|
|
590
590
|
phone: $
|
|
@@ -616,7 +616,7 @@ var fs = 2500, ps = (t) => {
|
|
|
616
616
|
className: "cds-mb-6 cds-text-fg-muted",
|
|
617
617
|
children: n.message ?? "Our carrier connection hiccuped. One more try usually does it."
|
|
618
618
|
}),
|
|
619
|
-
/* @__PURE__ */ e(
|
|
619
|
+
/* @__PURE__ */ e(F, {
|
|
620
620
|
onClick: () => {
|
|
621
621
|
f({ kind: "polling" }), h().then((s) => {
|
|
622
622
|
s && Y();
|
|
@@ -630,7 +630,7 @@ var fs = 2500, ps = (t) => {
|
|
|
630
630
|
"Or call",
|
|
631
631
|
" ",
|
|
632
632
|
/* @__PURE__ */ e("a", {
|
|
633
|
-
href:
|
|
633
|
+
href: H,
|
|
634
634
|
className: "cds-font-semibold cds-text-fg cds-underline",
|
|
635
635
|
children: $
|
|
636
636
|
}),
|
|
@@ -684,17 +684,17 @@ var fs = 2500, ps = (t) => {
|
|
|
684
684
|
className: `${Me} cds-tracking-[0.4em]`
|
|
685
685
|
}),
|
|
686
686
|
/* @__PURE__ */ e(ge, { message: Ie }),
|
|
687
|
-
/* @__PURE__ */ e(
|
|
687
|
+
/* @__PURE__ */ e(F, {
|
|
688
688
|
disabled: M.length !== 6 || W,
|
|
689
|
-
onClick: () => void
|
|
689
|
+
onClick: () => void Pe(s, c),
|
|
690
690
|
children: W ? "Verifying…" : "Verify and continue"
|
|
691
691
|
}),
|
|
692
692
|
/* @__PURE__ */ e("button", {
|
|
693
693
|
type: "button",
|
|
694
|
-
disabled:
|
|
694
|
+
disabled: P > 0,
|
|
695
695
|
onClick: () => void me(s, c),
|
|
696
696
|
className: `cds-mt-3 cds-w-full cds-rounded-lg cds-px-4 cds-py-2 cds-text-sm cds-font-semibold cds-text-fg cds-underline disabled:cds-no-underline disabled:cds-opacity-60 ${y}`,
|
|
697
|
-
children:
|
|
697
|
+
children: P > 0 ? `Resend code in ${P}s` : "Resend code"
|
|
698
698
|
})
|
|
699
699
|
]
|
|
700
700
|
});
|
|
@@ -747,7 +747,7 @@ var fs = 2500, ps = (t) => {
|
|
|
747
747
|
]
|
|
748
748
|
});
|
|
749
749
|
}
|
|
750
|
-
let U = new Set(N.map((s) => s.quote_rate_id)), je = new Set(N.map((s) => s.lob)), he = (s) => z[J(s)] === s.quote_rate_id, k = n.rates.filter((s) => he(s) && !U.has(s.quote_rate_id)), Le = Ce, G = X(n.rates, N),
|
|
750
|
+
let U = new Set(N.map((s) => s.quote_rate_id)), je = new Set(N.map((s) => s.lob)), he = (s) => z[J(s)] === s.quote_rate_id, k = n.rates.filter((s) => he(s) && !U.has(s.quote_rate_id)), Le = Ce, G = X(n.rates, N), Fe = X(n.rates, []).length > 1, fe = G.filter((s) => !k.some((c) => c.lob === s)), _ = Ns.filter((s) => s.market !== "not_quoted" || g.not_quoted.length > 0), De = g.admitted.length + g.non_admitted.length, He = ts(b === "not_quoted" ? g.not_quoted : g[b], { sortBy: b === "not_quoted" ? "carrier" : "premium" }), pe = t === "Bundle" ? [{
|
|
751
751
|
lob: "PersonalAuto",
|
|
752
752
|
label: ke.PersonalAuto
|
|
753
753
|
}, {
|
|
@@ -755,7 +755,7 @@ var fs = 2500, ps = (t) => {
|
|
|
755
755
|
label: ke.PersonalHome
|
|
756
756
|
}].filter(({ lob: s }) => !n.rates.some((c) => c.lob === s)) : [], Ee = (s) => {
|
|
757
757
|
let c = s.key === "ArrowRight" ? 1 : s.key === "ArrowLeft" ? -1 : 0, r = s.key === "Home" ? _[0] : s.key === "End" ? _[_.length - 1] : c ? _[(_.findIndex((i) => i.market === b) + c + _.length) % _.length] : void 0;
|
|
758
|
-
r && (s.preventDefault(), m(r.market), setTimeout(() => document.getElementById(
|
|
758
|
+
r && (s.preventDefault(), m(r.market), setTimeout(() => document.getElementById(D(r.market).tab)?.focus(), 0));
|
|
759
759
|
};
|
|
760
760
|
return /* @__PURE__ */ d("div", {
|
|
761
761
|
className: "cds-py-2",
|
|
@@ -819,7 +819,7 @@ var fs = 2500, ps = (t) => {
|
|
|
819
819
|
role: "tablist",
|
|
820
820
|
"aria-label": "Rate market type",
|
|
821
821
|
children: _.map((s) => {
|
|
822
|
-
let c = s.market === b, r =
|
|
822
|
+
let c = s.market === b, r = D(s.market);
|
|
823
823
|
return /* @__PURE__ */ d("button", {
|
|
824
824
|
id: r.tab,
|
|
825
825
|
type: "button",
|
|
@@ -841,9 +841,9 @@ var fs = 2500, ps = (t) => {
|
|
|
841
841
|
})
|
|
842
842
|
}),
|
|
843
843
|
/* @__PURE__ */ d("div", {
|
|
844
|
-
id:
|
|
844
|
+
id: D(b).panel,
|
|
845
845
|
role: "tabpanel",
|
|
846
|
-
"aria-labelledby":
|
|
846
|
+
"aria-labelledby": D(b).tab,
|
|
847
847
|
tabIndex: 0,
|
|
848
848
|
className: `cds-mb-6 cds-outline-none ${y}`,
|
|
849
849
|
children: [
|
|
@@ -859,7 +859,7 @@ var fs = 2500, ps = (t) => {
|
|
|
859
859
|
className: "cds-mb-3 cds-text-sm cds-text-fg-muted",
|
|
860
860
|
children: "These carriers looked at your details and passed. Their reasons are below."
|
|
861
861
|
}) : null,
|
|
862
|
-
|
|
862
|
+
He.map((s, c) => /* @__PURE__ */ d("div", {
|
|
863
863
|
className: "cds-mb-5 last:cds-mb-0",
|
|
864
864
|
children: [
|
|
865
865
|
c ? /* @__PURE__ */ e("div", {
|
|
@@ -888,7 +888,7 @@ var fs = 2500, ps = (t) => {
|
|
|
888
888
|
}, s.lob ?? "all"))
|
|
889
889
|
]
|
|
890
890
|
}),
|
|
891
|
-
|
|
891
|
+
De ? null : /* @__PURE__ */ d("div", {
|
|
892
892
|
className: "cds-mb-6 cds-rounded-xl cds-border cds-border-border cds-bg-surface-muted cds-p-4 cds-text-center",
|
|
893
893
|
children: [
|
|
894
894
|
/* @__PURE__ */ e("p", {
|
|
@@ -896,7 +896,7 @@ var fs = 2500, ps = (t) => {
|
|
|
896
896
|
children: "No carrier priced this one online. An agent has access to carriers that don't quote on the web."
|
|
897
897
|
}),
|
|
898
898
|
/* @__PURE__ */ d("a", {
|
|
899
|
-
href:
|
|
899
|
+
href: H,
|
|
900
900
|
onClick: () => Z("phone_call_click", {
|
|
901
901
|
placement: "quote_rates_all_declined",
|
|
902
902
|
phone: $
|
|
@@ -921,7 +921,7 @@ var fs = 2500, ps = (t) => {
|
|
|
921
921
|
className: "cds-mb-2 cds-text-sm cds-font-bold cds-text-fg",
|
|
922
922
|
children: ["Finish with ", I(k.map((s) => x(s.carrier_name)))]
|
|
923
923
|
}),
|
|
924
|
-
|
|
924
|
+
Fe ? /* @__PURE__ */ e("ul", {
|
|
925
925
|
className: "cds-mb-3 cds-space-y-1",
|
|
926
926
|
children: k.map((s) => /* @__PURE__ */ d("li", {
|
|
927
927
|
className: "cds-flex cds-justify-between cds-gap-2 cds-text-xs",
|
|
@@ -979,7 +979,7 @@ var fs = 2500, ps = (t) => {
|
|
|
979
979
|
]
|
|
980
980
|
}) : null,
|
|
981
981
|
/* @__PURE__ */ e(ge, { message: Te }),
|
|
982
|
-
/* @__PURE__ */ e(
|
|
982
|
+
/* @__PURE__ */ e(F, {
|
|
983
983
|
disabled: !re || V,
|
|
984
984
|
onClick: () => void Re(k),
|
|
985
985
|
children: V ? "Submitting…" : k.length > 1 ? "Request these policies" : "Request this policy"
|
|
@@ -2,12 +2,12 @@ var Ce = (n) => {
|
|
|
2
2
|
throw TypeError(n);
|
|
3
3
|
};
|
|
4
4
|
var be = (n, o, e) => o.has(n) || Ce("Cannot " + e);
|
|
5
|
-
var w = (n, o, e) => (be(n, o, "read from private field"), e ? e.call(n) : o.get(n)), xe = (n, o, e) => o.has(n) ? Ce("Cannot add the same private member more than once") : o instanceof WeakSet ? o.add(n) : o.set(n, e),
|
|
6
|
-
import { a4 as He, ag as $, ah as K, t as Be,
|
|
7
|
-
import { o as Ue, n as We, r as
|
|
5
|
+
var w = (n, o, e) => (be(n, o, "read from private field"), e ? e.call(n) : o.get(n)), xe = (n, o, e) => o.has(n) ? Ce("Cannot add the same private member more than once") : o instanceof WeakSet ? o.add(n) : o.set(n, e), Y = (n, o, e, t) => (be(n, o, "write to private field"), t ? t.call(n, e) : o.set(n, e), e);
|
|
6
|
+
import { a4 as He, ag as $, ah as K, t as Be, G as ye, r as Re, R as Ge, ai as Fe, Q as te } from "./widget-Bc0CD2Yh.js";
|
|
7
|
+
import { o as Ue, n as We, r as Qe } from "./stage-knShj71W-Cndh8rxW.js";
|
|
8
8
|
import * as l from "react";
|
|
9
9
|
import { jsx as i, jsxs as M, Fragment as Xe } from "react/jsx-runtime";
|
|
10
|
-
import { c as q, u as oe, a as we, P as z, b as Ne, d as
|
|
10
|
+
import { c as q, u as oe, a as we, P as z, b as Ne, d as Ye, e as Je, C as Ze } from "./index-7nmHdjZ4.js";
|
|
11
11
|
(function() {
|
|
12
12
|
if (typeof n > "u")
|
|
13
13
|
var n = { env: {} };
|
|
@@ -71,11 +71,11 @@ function _e(n) {
|
|
|
71
71
|
];
|
|
72
72
|
}
|
|
73
73
|
y(_e, "createCollection");
|
|
74
|
-
var Ie = /* @__PURE__ */ new WeakMap(), x, S,
|
|
74
|
+
var Ie = /* @__PURE__ */ new WeakMap(), x, S, J = (S = class extends Map {
|
|
75
75
|
constructor(e) {
|
|
76
76
|
super(e);
|
|
77
77
|
xe(this, x);
|
|
78
|
-
|
|
78
|
+
Y(this, x, [...super.keys()]), Ie.set(this, !0);
|
|
79
79
|
}
|
|
80
80
|
set(e, t) {
|
|
81
81
|
return Ie.get(this) && (this.has(e) ? w(this, x)[w(this, x).indexOf(e)] = e : w(this, x).push(e)), super.set(e, t), this;
|
|
@@ -136,7 +136,7 @@ var Ie = /* @__PURE__ */ new WeakMap(), x, S, Q = (S = class extends Map {
|
|
|
136
136
|
return this.entryAt(-1);
|
|
137
137
|
}
|
|
138
138
|
clear() {
|
|
139
|
-
return
|
|
139
|
+
return Y(this, x, []), super.clear();
|
|
140
140
|
}
|
|
141
141
|
delete(e) {
|
|
142
142
|
const t = super.delete(e);
|
|
@@ -294,7 +294,7 @@ function nt(n) {
|
|
|
294
294
|
collectionElement: null,
|
|
295
295
|
collectionRef: { current: null },
|
|
296
296
|
collectionRefObject: { current: null },
|
|
297
|
-
itemMap: new
|
|
297
|
+
itemMap: new J(),
|
|
298
298
|
setItemMap: /* @__PURE__ */ y(() => {
|
|
299
299
|
}, "setItemMap")
|
|
300
300
|
}
|
|
@@ -308,7 +308,7 @@ function nt(n) {
|
|
|
308
308
|
const f = /* @__PURE__ */ y((u) => {
|
|
309
309
|
const { scope: m, children: E, state: _ } = u, P = l.useRef(null), [k, R] = l.useState(
|
|
310
310
|
null
|
|
311
|
-
), U = $(P, R), [W,
|
|
311
|
+
), U = $(P, R), [W, Q] = _;
|
|
312
312
|
return l.useEffect(() => {
|
|
313
313
|
if (!k) return;
|
|
314
314
|
const L = Ee(() => {
|
|
@@ -324,7 +324,7 @@ function nt(n) {
|
|
|
324
324
|
{
|
|
325
325
|
scope: m,
|
|
326
326
|
itemMap: W,
|
|
327
|
-
setItemMap:
|
|
327
|
+
setItemMap: Q,
|
|
328
328
|
collectionRef: U,
|
|
329
329
|
collectionRefObject: P,
|
|
330
330
|
collectionElement: k,
|
|
@@ -342,20 +342,20 @@ function nt(n) {
|
|
|
342
342
|
h.displayName = p;
|
|
343
343
|
const g = n + "CollectionItemSlot", N = "data-radix-collection-item", C = K(g), b = l.forwardRef(
|
|
344
344
|
(u, m) => {
|
|
345
|
-
const { scope: E, children: _, ...P } = u, k = l.useRef(null), [R, U] = l.useState(null), W = $(m, k, U),
|
|
345
|
+
const { scope: E, children: _, ...P } = u, k = l.useRef(null), [R, U] = l.useState(null), W = $(m, k, U), Q = r(g, E), { setItemMap: L } = Q, X = l.useRef(P);
|
|
346
346
|
Se(X.current, P) || (X.current = P);
|
|
347
347
|
const ge = X.current;
|
|
348
348
|
return l.useEffect(() => {
|
|
349
349
|
const ve = ge;
|
|
350
350
|
return L((T) => R ? T.has(R) ? T.set(R, { ...ve, element: R }).toSorted(Z) : (T.set(R, { ...ve, element: R }), T.toSorted(Z)) : T), () => {
|
|
351
|
-
L((T) => !R || !T.has(R) ? T : (T.delete(R), new
|
|
351
|
+
L((T) => !R || !T.has(R) ? T : (T.delete(R), new J(T)));
|
|
352
352
|
};
|
|
353
353
|
}, [R, ge, L]), /* @__PURE__ */ i(C, { [N]: "", ref: W, children: _ });
|
|
354
354
|
}
|
|
355
355
|
);
|
|
356
356
|
b.displayName = g;
|
|
357
357
|
function v() {
|
|
358
|
-
return l.useState(new
|
|
358
|
+
return l.useState(new J());
|
|
359
359
|
}
|
|
360
360
|
y(v, "useInitCollection");
|
|
361
361
|
function I(u) {
|
|
@@ -464,14 +464,14 @@ var it = Object.defineProperty, j = (n, o) => it(n, "name", { value: o, configur
|
|
|
464
464
|
// blank line to reduce diff noise
|
|
465
465
|
/* @__PURE__ */ j(function(o, e) {
|
|
466
466
|
const { forceMount: t, ...s } = o, r = se(Te, o.__scopeCollapsible);
|
|
467
|
-
return /* @__PURE__ */ i(
|
|
467
|
+
return /* @__PURE__ */ i(Ye, { present: t || r.open, children: ({ present: c }) => /* @__PURE__ */ i(ht, { ...s, ref: e, present: c }) });
|
|
468
468
|
}, "CollapsibleContent")
|
|
469
469
|
), ht = /* @__PURE__ */ l.forwardRef(/* @__PURE__ */ j(function(o, e) {
|
|
470
470
|
const { __scopeCollapsible: t, present: s, children: r, ...c } = o, d = se(Te, t), [f, p] = l.useState(s), a = l.useRef(null), h = $(e, a), g = l.useRef(0), N = g.current, C = l.useRef(0), b = C.current, v = d.open || f, I = l.useRef(v), A = l.useRef(void 0);
|
|
471
471
|
return l.useEffect(() => {
|
|
472
472
|
const u = requestAnimationFrame(() => I.current = !1);
|
|
473
473
|
return () => cancelAnimationFrame(u);
|
|
474
|
-
}, []),
|
|
474
|
+
}, []), Je(() => {
|
|
475
475
|
const u = a.current;
|
|
476
476
|
if (u) {
|
|
477
477
|
A.current = A.current || {
|
|
@@ -774,7 +774,7 @@ var zt = /* @__PURE__ */ Be({
|
|
|
774
774
|
let h = o[a] ?? [];
|
|
775
775
|
return {
|
|
776
776
|
stage: a,
|
|
777
|
-
rows:
|
|
777
|
+
rows: Qe({
|
|
778
778
|
questions: h,
|
|
779
779
|
values: e,
|
|
780
780
|
stageKey: a,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as O, $ as V, a0 as x, a1 as D, a2 as F } from "./widget-
|
|
1
|
+
import { t as O, $ as V, a0 as x, a1 as D, a2 as F } from "./widget-Bc0CD2Yh.js";
|
|
2
2
|
import { t as q, n as g } from "./types-LUGvo5ic-CiVRcsV9.js";
|
|
3
|
-
import { k as h, j as f, n as L, u as P, c as R, d as U, A as j } from "./visibility-
|
|
4
|
-
import { k as A } from "./validation-
|
|
5
|
-
import { t as $, l as Y, a as Q, o as
|
|
3
|
+
import { k as h, j as f, n as L, u as P, c as R, d as U, A as j } from "./visibility-CKRGC3Il-SsuTwW3e.js";
|
|
4
|
+
import { k as A } from "./validation-D42QXxck-DFkyiEd-.js";
|
|
5
|
+
import { t as $, l as Y, a as Q, o as M, i as K, f as B, n as W, r as I } from "./vehicleCoverage-CBWORI1l-Br309K1G.js";
|
|
6
6
|
(function() {
|
|
7
7
|
if (typeof s > "u")
|
|
8
8
|
var s = { env: {} };
|
|
@@ -20,12 +20,12 @@ var C = /* @__PURE__ */ new Set([
|
|
|
20
20
|
"personal_injury_amount_paid_cents",
|
|
21
21
|
"auto_current_annual_premium_cents",
|
|
22
22
|
"amount_paid_cents"
|
|
23
|
-
]),
|
|
23
|
+
]), G = /* @__PURE__ */ new Set([
|
|
24
24
|
"total_area_sq_ft",
|
|
25
25
|
"annual_mileage",
|
|
26
26
|
"miles_to_work",
|
|
27
27
|
"distance_to_coast_miles"
|
|
28
|
-
]),
|
|
28
|
+
]), H = (s) => C.has(s), Z = (s) => C.has(s) || G.has(s), z = (s, e) => {
|
|
29
29
|
let r = String(s ?? "").replace(/\D/g, "");
|
|
30
30
|
if (!r) return "";
|
|
31
31
|
let t = Number(r);
|
|
@@ -103,7 +103,7 @@ var C = /* @__PURE__ */ new Set([
|
|
|
103
103
|
for (let y of Y(a)) u.set(y.index, { ...y.errorsByKey }), i.push(`Vehicle ${y.index + 1} — coverage selections are incomplete.`);
|
|
104
104
|
let n = Q(e), c = f(e, "drivers").length;
|
|
105
105
|
a.forEach((y, p) => {
|
|
106
|
-
let _ =
|
|
106
|
+
let _ = M(n, p, c);
|
|
107
107
|
_ && (u.set(p, {
|
|
108
108
|
...u.get(p) ?? {},
|
|
109
109
|
[$]: _
|
|
@@ -132,7 +132,7 @@ var C = /* @__PURE__ */ new Set([
|
|
|
132
132
|
});
|
|
133
133
|
let o = g("vehicles");
|
|
134
134
|
return h(s, e, r).some((l) => l.key === "vehicle_policy_selections") && o in e && !(o in t) && (t[o] = f(e, "vehicles").filter((l) => !E(l)), t.vehicles = e.vehicles ?? "Yes", "driver_vehicle_assignments" in e && (t[$] = e[$])), t;
|
|
135
|
-
}, re = (s, e) => [s.first_name, s.last_name].map((r) => String(r ?? "").trim()).filter(Boolean).join(" ") || `Driver ${e + 1}`, ie = (s, e, r) => s === "vehicles" ?
|
|
135
|
+
}, re = (s, e) => [s.first_name, s.last_name].map((r) => String(r ?? "").trim()).filter(Boolean).join(" ") || `Driver ${e + 1}`, ie = (s, e, r) => s === "vehicles" ? B(e, r) : s === "drivers" ? re(e, r) : `${d(s)} ${r + 1}`, le = ({ questions: s, values: e, stageKey: r, suppressedKeys: t }) => {
|
|
136
136
|
let o = [];
|
|
137
137
|
return b(s, e, r, (l, i, a) => {
|
|
138
138
|
if (!a) return;
|
|
@@ -161,9 +161,9 @@ var C = /* @__PURE__ */ new Set([
|
|
|
161
161
|
let t = T(e) ?? T(r.ssn_display);
|
|
162
162
|
return t ? `•••–••–${t}` : "—";
|
|
163
163
|
}
|
|
164
|
-
return e == null || e === "" ? "—" : e === !0 ? "Yes" : e === !1 ? "No" : Array.isArray(e) ? `${e.length} added` : s.inputType === "select" || s.inputType === "radio" ? V(s.key, String(e)) : s.inputType === "number" && Z(s.key) && z(e,
|
|
164
|
+
return e == null || e === "" ? "—" : e === !0 ? "Yes" : e === !1 ? "No" : Array.isArray(e) ? `${e.length} added` : s.inputType === "select" || s.inputType === "radio" ? V(s.key, String(e)) : s.inputType === "number" && Z(s.key) && z(e, H(s.key)) || String(e);
|
|
165
165
|
}, ae = (s) => ({
|
|
166
|
-
question:
|
|
166
|
+
question: I[s],
|
|
167
167
|
key: s,
|
|
168
168
|
required: !0,
|
|
169
169
|
inputType: "select"
|
|
@@ -174,17 +174,17 @@ var C = /* @__PURE__ */ new Set([
|
|
|
174
174
|
value: S(i, e[i.key], e)
|
|
175
175
|
}));
|
|
176
176
|
return o.some((i) => i.key === "vehicle_policy_selections") && f(e, "vehicles").forEach((i, a) => {
|
|
177
|
-
let u =
|
|
178
|
-
for (let n of
|
|
177
|
+
let u = B(i, a);
|
|
178
|
+
for (let n of W) l.push({
|
|
179
179
|
key: `${K}__${a}__${n}`,
|
|
180
|
-
label: `${u} — ${
|
|
180
|
+
label: `${u} — ${I[n]}`,
|
|
181
181
|
value: S(ae(n), i[n], e)
|
|
182
182
|
});
|
|
183
183
|
}), l;
|
|
184
184
|
};
|
|
185
185
|
export {
|
|
186
186
|
pe as a,
|
|
187
|
-
|
|
187
|
+
G as c,
|
|
188
188
|
Z as d,
|
|
189
189
|
te as i,
|
|
190
190
|
z as l,
|
|
@@ -193,5 +193,5 @@ export {
|
|
|
193
193
|
oe as r,
|
|
194
194
|
C as s,
|
|
195
195
|
w as t,
|
|
196
|
-
|
|
196
|
+
H as u
|
|
197
197
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
interface Window {
|
|
3
|
+
/** Called by the Maps script when it rejects the key. */
|
|
4
|
+
gm_authFailure?: () => void;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
export declare const reportPlacesAuthFailures: () => void;
|
|
8
|
+
/** Test seam — lets a suite install the handler again. */
|
|
9
|
+
export declare const resetPlacesAuthFailureReporting: () => void;
|
|
10
|
+
//# sourceMappingURL=placesAuthFailure.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Contact details the host page already collected, passed to `init()`. Module
|
|
3
|
+
* state, like the partner attribution: the flow reads it as it mounts.
|
|
4
|
+
*/
|
|
5
|
+
import type { QuotePrefill } from '@getcredify/credify-insurance-ui-kit/ui';
|
|
6
|
+
export type WidgetPrefill = {
|
|
7
|
+
/** 5-digit ZIP. Anything else is dropped. */
|
|
8
|
+
zip?: string;
|
|
9
|
+
email?: string;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Validates the host's `prefill` option. Every rejection path drops the value and
|
|
13
|
+
* carries on — a bad one costs a skipped question, never the quote — and nothing
|
|
14
|
+
* here throws, including on an option whose own getters do.
|
|
15
|
+
*/
|
|
16
|
+
export declare function capturePrefill(option: unknown): void;
|
|
17
|
+
export declare function getPrefill(): QuotePrefill | undefined;
|
|
18
|
+
//# sourceMappingURL=prefill.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as h } from "./widget-
|
|
2
|
-
import { _ as f } from "./visibility-
|
|
3
|
-
import { O as p } from "./validation-
|
|
1
|
+
import { t as h } from "./widget-Bc0CD2Yh.js";
|
|
2
|
+
import { _ as f } from "./visibility-CKRGC3Il-SsuTwW3e.js";
|
|
3
|
+
import { O as p } from "./validation-D42QXxck-DFkyiEd-.js";
|
|
4
4
|
(function() {
|
|
5
5
|
if (typeof o > "u")
|
|
6
6
|
var o = { env: {} };
|