@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.
Files changed (55) hide show
  1. package/dist/{address-BEVwov8q-CFogwodr.js → address-BEVwov8q-CazC1JIl.js} +1 -1
  2. package/dist/{api-EzrQ6TjH.js → api-Bepbbwlb.js} +15 -15
  3. package/dist/{car-CxlVKO91.js → car-B21VP4YN.js} +1 -1
  4. package/dist/{check-BAikbl_K.js → check-CwRR4vvM.js} +1 -1
  5. package/dist/{copy-applicant-offer-UApiJBeU-BesLtSKE.js → copy-applicant-offer-B-BuqAOO-a4y-KPDr.js} +11 -11
  6. package/dist/{copy-from-record-DL503itm-Cr4NH27U.js → copy-from-record-DL503itm-2slKSwa4.js} +4 -4
  7. package/dist/{coverageDerivation-CV2ORogj-C2Nwlsa1.js → coverageDerivation-CV2ORogj-BoLiDnjR.js} +1 -1
  8. package/dist/{fixtures-ijbZ16Zg-B9zEGweJ.js → fixtures-ijbZ16Zg-CwFDJNFI.js} +1 -1
  9. package/dist/{household-prefill-BwSS00qI-Cngp1yri.js → household-prefill-CdB4ZxsR-D4_lkTx8.js} +26 -26
  10. package/dist/{householdPrefill-DLm3pxFH-CSdgf8cD.js → householdPrefill-DLm3pxFH-dPJrX2ul.js} +1 -1
  11. package/dist/iframe/assets/{address-BEVwov8q-CQFQYwN_.js → address-BEVwov8q-EtrExGBv.js} +1 -1
  12. package/dist/iframe/assets/{car-dMyHgJCm.js → car-lKtbZzIv.js} +1 -1
  13. package/dist/iframe/assets/{check-vA4Wm8iT.js → check-DafU7JDn.js} +1 -1
  14. package/dist/iframe/assets/{copy-applicant-offer-UApiJBeU-DoOvd5Iq.js → copy-applicant-offer-B-BuqAOO-CtFqk8YK.js} +1 -1
  15. package/dist/iframe/assets/{copy-from-record-DL503itm-Db_VVvOI.js → copy-from-record-DL503itm-BXJJYs1Y.js} +1 -1
  16. package/dist/iframe/assets/{coverageDerivation-CV2ORogj-gpaPp3-I.js → coverageDerivation-CV2ORogj-Dne34PDQ.js} +1 -1
  17. package/dist/iframe/assets/{dob-calendar-RIJ5S6YU-Tg0d9tov.js → dob-calendar-RIJ5S6YU-BfbUKPI9.js} +1 -1
  18. package/dist/iframe/assets/{fixtures-ijbZ16Zg-Cbt1vB2m.js → fixtures-ijbZ16Zg-D-3ehYX7.js} +1 -1
  19. package/dist/iframe/assets/{household-prefill-BwSS00qI-C8MTGR1p.js → household-prefill-CdB4ZxsR-BPthWPX-.js} +1 -1
  20. package/dist/iframe/assets/{householdPrefill-DLm3pxFH-BMN6WUsw.js → householdPrefill-DLm3pxFH-jl-HbpRV.js} +1 -1
  21. package/dist/iframe/assets/iframe-ZamrsKm7.js +107 -0
  22. package/dist/iframe/assets/{index-CeDETFEQ.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-DqT1rb7l.js → mockJump-CKjCOGxR-tRN3Jwzq.js} +1 -1
  25. package/dist/iframe/assets/{payload-DurIYSZk-Bq3ZDZQk.js → payload-BMtl8VDy-DSIXtfb-.js} +1 -1
  26. package/dist/iframe/assets/{question-list-CjN64tfw-D8aGV13x.js → question-list-BK2EN74l-8nbZZnvU.js} +3 -3
  27. package/dist/iframe/assets/{rates-panel-B1xVYtTQ-CInEw7cd.js → rates-panel-BOaKRZ_Y-DspzIEmi.js} +3 -3
  28. package/dist/iframe/assets/{review-panel-DuzWoTKP-Rwdzp6eC.js → review-panel-BQmrPgdC-Dh84GHcf.js} +2 -2
  29. package/dist/iframe/assets/{stage-CnucLiNn-DuURgPad.js → stage-zClSIgVN-CQ0m7lYx.js} +1 -1
  30. package/dist/iframe/assets/{validation-Db4WCn17-_NNdawKQ.js → validation-D9L1J71d-D-I9M7xX.js} +2 -2
  31. package/dist/iframe/assets/{vehicleCoverage-CDBtkdww-Bo-t8CRG.js → vehicleCoverage-CgeEazR0-DlDAnkau.js} +1 -1
  32. package/dist/iframe/assets/{visibility-iwttXt0y-DNGCSVig.js → visibility-xQNTF1no-_O_ggMOv.js} +1 -1
  33. package/dist/iframe/assets/{waves-DRA5QD6r.js → waves-CGWFF4s2.js} +1 -1
  34. package/dist/iframe/iframe.html +1 -1
  35. package/dist/{index-DBc8hvqD.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-DBhd5ad0.js → mockJump-CKjCOGxR-Boxby2dZ.js} +1 -1
  40. package/dist/{payload-DurIYSZk-CKtSbWzb.js → payload-BMtl8VDy-maqSOQIZ.js} +20 -20
  41. package/dist/{question-list-CjN64tfw-BpPrkylH.js → question-list-BK2EN74l-Cn9ka_Tm.js} +13 -13
  42. package/dist/{rates-panel-B1xVYtTQ-BUF3Ofoi.js → rates-panel-BOaKRZ_Y-ciWr81fl.js} +47 -47
  43. package/dist/{review-panel-DuzWoTKP-BfwFC6Jz.js → review-panel-BQmrPgdC-CXP39hws.js} +98 -98
  44. package/dist/{stage-CnucLiNn-CjHsEHOW.js → stage-zClSIgVN-CC_teHAO.js} +26 -26
  45. package/dist/utils/support/cobrowse.d.ts +1 -1
  46. package/dist/utils/support/index.d.ts +2 -0
  47. package/dist/{validation-Db4WCn17-DiPhPmjM.js → validation-D9L1J71d-BF62B66y.js} +22 -17
  48. package/dist/{vehicleCoverage-CDBtkdww-Bm9pGAq7.js → vehicleCoverage-CgeEazR0-C3ugp85r.js} +8 -8
  49. package/dist/{visibility-iwttXt0y-DtOOYFcv.js → visibility-xQNTF1no-t9wamJ9M.js} +7 -7
  50. package/dist/{waves-oZRnENZl.js → waves-BpyYhsaC.js} +1 -1
  51. package/dist/{widget-CpC6N1oq.js → widget-fDShn8w9.js} +2887 -2844
  52. package/package.json +2 -2
  53. package/dist/iframe/assets/iframe-BqFwviRo.js +0 -107
  54. package/dist/iframe/assets/intake-review-panel-CjiYTJXh-CxJXC0fl.js +0 -1
  55. package/dist/intake-review-panel-CjiYTJXh-Cy_2auOe.js +0 -186
@@ -1 +0,0 @@
1
- import{t as F,r as i,b as M,a as e,c as v,d as x,f as N,e as R,g as S}from"./iframe-BqFwviRo.js";import{t as T}from"./question-list-CjN64tfw-D8aGV13x.js";import{S as V,w as $,D as z,x as j,P as L}from"./review-panel-DuzWoTKP-Rwdzp6eC.js";import{o as _,n as A,r as D}from"./stage-CnucLiNn-DuURgPad.js";import{C as H}from"./check-vA4Wm8iT.js";import"./types-LUGvo5ic-CB-wcgK3.js";import"./address-BEVwov8q-CQFQYwN_.js";import"./householdPrefill-DLm3pxFH-BMN6WUsw.js";import"./visibility-iwttXt0y-DNGCSVig.js";import"./validation-Db4WCn17-_NNdawKQ.js";import"./vehicleCoverage-CDBtkdww-Bo-t8CRG.js";import"./copy-from-record-DL503itm-Db_VVvOI.js";import"./coverageDerivation-CV2ORogj-gpaPp3-I.js";import"./index-CeDETFEQ.js";import"./waves-DRA5QD6r.js";import"./car-dMyHgJCm.js";var os=F({IntakeReviewPanel:()=>U}),w=a=>`${a} ${a===1?"answer needs":"answers need"} your attention`,O=({label:a,open:r,onClick:d})=>e.jsxs("button",{type:"button",onClick:d,"aria-expanded":r,"aria-label":r?`Done editing ${a}`:`Edit ${a}`,className:x("cds-inline-flex cds-items-center cds-gap-1 cds-rounded cds-px-2 cds-py-1 cds-text-xs cds-font-semibold cds-text-fg hover:cds-bg-highlight",N),children:[e.jsx(r?H:L,{"aria-hidden":"true",className:"cds-h-3.5 cds-w-3.5"}),r?"Done":"Edit"]}),U=({stages:a,questionsByStage:r,values:d,quoteId:k,loading:g,busy:o,error:C,suppressedKeys:c,onPatch:q,onConfirm:K})=>{let[P,h]=i.useState(null),[p,I]=i.useState(!1),f=i.useMemo(()=>a.filter(s=>!M.has(s)),[a]),l=i.useMemo(()=>f.map(s=>{let t=r[s]??[];return{stage:s,questions:t,rows:D({questions:t,values:d,stageKey:s,suppressedKeys:c}),groups:A({questions:t,values:d,stageKey:s,suppressedKeys:c}),validation:_({questions:t,values:d,stageKey:s})}}),[f,r,d,c]),b=i.useMemo(()=>l.filter(s=>!s.validation.isValid),[l]),m=b.reduce((s,t)=>s+t.validation.issues.length,0),E=i.useCallback(s=>{h(s),requestAnimationFrame(()=>{document.getElementById(`intake-review-${s}`)?.scrollIntoView?.({behavior:"smooth",block:"start"})})},[]),B=!g&&!o&&m===0&&p;return g?e.jsxs("div",{className:"cds-py-12 cds-text-center","aria-live":"polite",children:[e.jsx("div",{className:"cds-mx-auto cds-mb-4 cds-h-8 cds-w-8 cds-animate-spin cds-rounded-full cds-border-4 cds-border-accent cds-border-t-transparent","aria-hidden":"true"}),e.jsx("p",{className:"cds-text-fg-muted",children:"Loading your details…"})]}):e.jsxs("div",{className:"cds-py-2",children:[e.jsx("h2",{className:"cds-mb-1 cds-text-2xl cds-font-bold cds-text-fg",children:"Review your information"}),e.jsx("p",{className:"cds-mb-5 cds-text-sm cds-text-fg-muted",children:"Here's what we took down during your call. Check each section, fix anything we got wrong, and fill in anything missing — then confirm below to see your quotes."}),m?e.jsxs("div",{className:"cds-mb-5 cds-rounded-xl cds-border cds-border-warning cds-bg-warning-surface cds-p-4",children:[e.jsx("h3",{className:"cds-mb-2 cds-text-sm cds-font-bold cds-text-fg",children:w(m)}),e.jsx("ul",{className:"cds-space-y-1 cds-text-sm cds-text-fg-muted",children:b.map(s=>e.jsxs("li",{children:[e.jsx("button",{type:"button",onClick:()=>E(s.stage),className:x("cds-font-semibold cds-text-fg cds-underline",N),children:v(s.stage).short}),": ",s.validation.issues[0],s.validation.issues.length>1?` (+${s.validation.issues.length-1} more)`:""]},s.stage))})]}):null,l.map(s=>{let t=v(s.stage).short,n=P===s.stage,u=!s.validation.isValid;return!n&&!s.rows.length&&!s.groups.length&&!u?null:e.jsxs("section",{id:`intake-review-${s.stage}`,className:x(j,u&&"cds-border-warning"),children:[e.jsxs("div",{className:"cds-mb-2 cds-flex cds-items-center cds-justify-between",children:[e.jsx("h3",{className:V,children:t}),e.jsx(O,{label:t,open:n,onClick:()=>h(n?null:s.stage)})]}),n?e.jsx(T,{questions:s.questions,values:d,errors:s.validation.errorsByKey,itemErrors:s.validation.itemErrors,stageKey:s.stage,quoteId:k,suppressedKeys:c,onPatch:q}):e.jsxs(e.Fragment,{children:[u?e.jsx("p",{className:"cds-mb-2 cds-text-sm cds-font-semibold cds-text-warning-foreground",children:w(s.validation.issues.length)}):null,s.rows.length?e.jsx($,{rows:s.rows}):null,s.groups.map(y=>e.jsx(z,{group:y},y.groupKey))]})]},s.stage)}),e.jsxs("section",{className:j,children:[e.jsxs("label",{className:"cds-flex cds-cursor-pointer cds-items-start cds-gap-2 cds-text-sm cds-text-fg-muted",children:[e.jsx("input",{type:"checkbox",checked:p,disabled:o,onChange:s=>I(s.target.checked),className:"cds-mt-1 cds-h-4 cds-w-4 cds-shrink-0 cds-accent-brand-accent"}),e.jsx("span",{children:"I have reviewed my information and confirm it is accurate, and I agree to the Terms of Service and Privacy Policy."})]}),e.jsxs("p",{className:"cds-mt-3 cds-text-xs cds-leading-relaxed cds-text-fg-muted",children:["Credify Corporation – Texas #3309669."," ",e.jsx("a",{href:"/privacy-policy",target:"_blank",rel:"noreferrer",className:"cds-font-semibold cds-text-fg cds-underline",children:"Privacy Policy"})," ","|"," ",e.jsx("a",{href:"/terms-of-service",target:"_blank",rel:"noreferrer",className:"cds-font-semibold cds-text-fg cds-underline",children:"Terms of Service"})]})]}),e.jsx(R,{message:C}),e.jsx(S,{disabled:!B,onClick:K,children:o?"Submitting…":"Confirm & see my quotes"}),e.jsx("p",{className:"cds-mt-3 cds-text-xs cds-text-fg-muted",children:"Submitting runs a soft credit inquiry with the carriers you authorized. It does not affect your credit score."})]})};export{os as n,U as t};
@@ -1,186 +0,0 @@
1
- import { t as $, L as j, U as w, W as h, K as q, $ as L, a0 as R } from "./widget-CpC6N1oq.js";
2
- import { t as S } from "./question-list-CjN64tfw-BpPrkylH.js";
3
- import { S as z, w as M, D as U, x as N, P as W } from "./review-panel-DuzWoTKP-BfwFC6Jz.js";
4
- import { o as _, n as A, r as D } from "./stage-CnucLiNn-CjHsEHOW.js";
5
- import { useState as k, useMemo as g, useCallback as H } from "react";
6
- import { jsxs as t, jsx as s, Fragment as O } from "react/jsx-runtime";
7
- import { C as G } from "./check-BAikbl_K.js";
8
- (function() {
9
- if (typeof a > "u")
10
- var a = { env: {} };
11
- })();
12
- var de = /* @__PURE__ */ $({ IntakeReviewPanel: () => Q }), C = (a) => `${a} ${a === 1 ? "answer needs" : "answers need"} your attention`, J = ({ label: a, open: r, onClick: i }) => /* @__PURE__ */ t("button", {
13
- type: "button",
14
- onClick: i,
15
- "aria-expanded": r,
16
- "aria-label": r ? `Done editing ${a}` : `Edit ${a}`,
17
- className: h("cds-inline-flex cds-items-center cds-gap-1 cds-rounded cds-px-2 cds-py-1 cds-text-xs cds-font-semibold cds-text-fg hover:cds-bg-highlight", q),
18
- children: [s(r ? G : W, {
19
- "aria-hidden": "true",
20
- className: "cds-h-3.5 cds-w-3.5"
21
- }), r ? "Done" : "Edit"]
22
- }), Q = ({ stages: a, questionsByStage: r, values: i, quoteId: K, loading: f, busy: o, error: P, suppressedKeys: c, onPatch: I, onConfirm: B }) => {
23
- let [E, p] = k(null), [b, F] = k(!1), y = g(() => a.filter((e) => !j.has(e)), [a]), l = g(() => y.map((e) => {
24
- let d = r[e] ?? [];
25
- return {
26
- stage: e,
27
- questions: d,
28
- rows: D({
29
- questions: d,
30
- values: i,
31
- stageKey: e,
32
- suppressedKeys: c
33
- }),
34
- groups: A({
35
- questions: d,
36
- values: i,
37
- stageKey: e,
38
- suppressedKeys: c
39
- }),
40
- validation: _({
41
- questions: d,
42
- values: i,
43
- stageKey: e
44
- })
45
- };
46
- }), [
47
- y,
48
- r,
49
- i,
50
- c
51
- ]), x = g(() => l.filter((e) => !e.validation.isValid), [l]), m = x.reduce((e, d) => e + d.validation.issues.length, 0), T = H((e) => {
52
- p(e), requestAnimationFrame(() => {
53
- document.getElementById(`intake-review-${e}`)?.scrollIntoView?.({
54
- behavior: "smooth",
55
- block: "start"
56
- });
57
- });
58
- }, []), V = !f && !o && m === 0 && b;
59
- return f ? /* @__PURE__ */ t("div", {
60
- className: "cds-py-12 cds-text-center",
61
- "aria-live": "polite",
62
- children: [/* @__PURE__ */ s("div", {
63
- className: "cds-mx-auto cds-mb-4 cds-h-8 cds-w-8 cds-animate-spin cds-rounded-full cds-border-4 cds-border-accent cds-border-t-transparent",
64
- "aria-hidden": "true"
65
- }), /* @__PURE__ */ s("p", {
66
- className: "cds-text-fg-muted",
67
- children: "Loading your details…"
68
- })]
69
- }) : /* @__PURE__ */ t("div", {
70
- className: "cds-py-2",
71
- children: [
72
- /* @__PURE__ */ s("h2", {
73
- className: "cds-mb-1 cds-text-2xl cds-font-bold cds-text-fg",
74
- children: "Review your information"
75
- }),
76
- /* @__PURE__ */ s("p", {
77
- className: "cds-mb-5 cds-text-sm cds-text-fg-muted",
78
- children: "Here's what we took down during your call. Check each section, fix anything we got wrong, and fill in anything missing — then confirm below to see your quotes."
79
- }),
80
- m ? /* @__PURE__ */ t("div", {
81
- className: "cds-mb-5 cds-rounded-xl cds-border cds-border-warning cds-bg-warning-surface cds-p-4",
82
- children: [/* @__PURE__ */ s("h3", {
83
- className: "cds-mb-2 cds-text-sm cds-font-bold cds-text-fg",
84
- children: C(m)
85
- }), /* @__PURE__ */ s("ul", {
86
- className: "cds-space-y-1 cds-text-sm cds-text-fg-muted",
87
- children: x.map((e) => /* @__PURE__ */ t("li", { children: [
88
- /* @__PURE__ */ s("button", {
89
- type: "button",
90
- onClick: () => T(e.stage),
91
- className: h("cds-font-semibold cds-text-fg cds-underline", q),
92
- children: w(e.stage).short
93
- }),
94
- ": ",
95
- e.validation.issues[0],
96
- e.validation.issues.length > 1 ? ` (+${e.validation.issues.length - 1} more)` : ""
97
- ] }, e.stage))
98
- })]
99
- }) : null,
100
- l.map((e) => {
101
- let d = w(e.stage).short, n = E === e.stage, u = !e.validation.isValid;
102
- return !n && !e.rows.length && !e.groups.length && !u ? null : /* @__PURE__ */ t("section", {
103
- id: `intake-review-${e.stage}`,
104
- className: h(N, u && "cds-border-warning"),
105
- children: [/* @__PURE__ */ t("div", {
106
- className: "cds-mb-2 cds-flex cds-items-center cds-justify-between",
107
- children: [/* @__PURE__ */ s("h3", {
108
- className: z,
109
- children: d
110
- }), /* @__PURE__ */ s(J, {
111
- label: d,
112
- open: n,
113
- onClick: () => p(n ? null : e.stage)
114
- })]
115
- }), n ? /* @__PURE__ */ s(S, {
116
- questions: e.questions,
117
- values: i,
118
- errors: e.validation.errorsByKey,
119
- itemErrors: e.validation.itemErrors,
120
- stageKey: e.stage,
121
- quoteId: K,
122
- suppressedKeys: c,
123
- onPatch: I
124
- }) : /* @__PURE__ */ t(O, { children: [
125
- u ? /* @__PURE__ */ s("p", {
126
- className: "cds-mb-2 cds-text-sm cds-font-semibold cds-text-warning-foreground",
127
- children: C(e.validation.issues.length)
128
- }) : null,
129
- e.rows.length ? /* @__PURE__ */ s(M, { rows: e.rows }) : null,
130
- e.groups.map((v) => /* @__PURE__ */ s(U, { group: v }, v.groupKey))
131
- ] })]
132
- }, e.stage);
133
- }),
134
- /* @__PURE__ */ t("section", {
135
- className: N,
136
- children: [/* @__PURE__ */ t("label", {
137
- className: "cds-flex cds-cursor-pointer cds-items-start cds-gap-2 cds-text-sm cds-text-fg-muted",
138
- children: [/* @__PURE__ */ s("input", {
139
- type: "checkbox",
140
- checked: b,
141
- disabled: o,
142
- onChange: (e) => F(e.target.checked),
143
- className: "cds-mt-1 cds-h-4 cds-w-4 cds-shrink-0 cds-accent-brand-accent"
144
- }), /* @__PURE__ */ s("span", { children: "I have reviewed my information and confirm it is accurate, and I agree to the Terms of Service and Privacy Policy." })]
145
- }), /* @__PURE__ */ t("p", {
146
- className: "cds-mt-3 cds-text-xs cds-leading-relaxed cds-text-fg-muted",
147
- children: [
148
- "Credify Corporation – Texas #3309669.",
149
- " ",
150
- /* @__PURE__ */ s("a", {
151
- href: "/privacy-policy",
152
- target: "_blank",
153
- rel: "noreferrer",
154
- className: "cds-font-semibold cds-text-fg cds-underline",
155
- children: "Privacy Policy"
156
- }),
157
- " ",
158
- "|",
159
- " ",
160
- /* @__PURE__ */ s("a", {
161
- href: "/terms-of-service",
162
- target: "_blank",
163
- rel: "noreferrer",
164
- className: "cds-font-semibold cds-text-fg cds-underline",
165
- children: "Terms of Service"
166
- })
167
- ]
168
- })]
169
- }),
170
- /* @__PURE__ */ s(L, { message: P }),
171
- /* @__PURE__ */ s(R, {
172
- disabled: !V,
173
- onClick: B,
174
- children: o ? "Submitting…" : "Confirm & see my quotes"
175
- }),
176
- /* @__PURE__ */ s("p", {
177
- className: "cds-mt-3 cds-text-xs cds-text-fg-muted",
178
- children: "Submitting runs a soft credit inquiry with the carriers you authorized. It does not affect your credit score."
179
- })
180
- ]
181
- });
182
- };
183
- export {
184
- de as n,
185
- Q as t
186
- };