@getcredify/credify-insurance-widget 1.44.1 → 1.45.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 (64) hide show
  1. package/README.md +1 -1
  2. package/dist/{address-BEVwov8q-DDhbGo15.js → address-BEVwov8q-BHA-1zzm.js} +1 -1
  3. package/dist/api-BLmgLEy-.js +51 -0
  4. package/dist/{car-B83tx4O2.js → car-B8Sfr377.js} +1 -1
  5. package/dist/{check-Bu17NqRV.js → check-B8qTJ1zD.js} +1 -1
  6. package/dist/{copy-applicant-offer-CqzfNhkJ-DLXjbOLT.js → copy-applicant-offer-BPo842pD-COcsLcbo.js} +3 -3
  7. package/dist/{copy-from-record-BNP6CFFR-6SC1msxp.js → copy-from-record-DL503itm-B05F775l.js} +10 -10
  8. package/dist/{coverageDerivation-CV2ORogj-De8x_Bpm.js → coverageDerivation-CV2ORogj-D4IAkVAP.js} +1 -1
  9. package/dist/{fixtures-ijbZ16Zg-9n-90hL2.js → fixtures-ijbZ16Zg-CB6WPBEx.js} +1 -1
  10. package/dist/{household-prefill-CmtB9R3R-Bw0M1Q50.js → household-prefill-DJ-Y0NcP-TwmnYrqf.js} +30 -30
  11. package/dist/{householdPrefill-DLm3pxFH-BQibTi9l.js → householdPrefill-DLm3pxFH-Gudko0w4.js} +1 -1
  12. package/dist/iframe/assets/{address-BEVwov8q-BiiIpq2c.js → address-BEVwov8q-RcBegFnh.js} +1 -1
  13. package/dist/iframe/assets/{car-cifgdWXX.js → car-DQIQf4LA.js} +1 -1
  14. package/dist/iframe/assets/{check-TbHiw7rw.js → check-BiNh2j82.js} +1 -1
  15. package/dist/iframe/assets/{copy-applicant-offer-CqzfNhkJ-CVahKn8I.js → copy-applicant-offer-BPo842pD-Cj352DzN.js} +1 -1
  16. package/dist/iframe/assets/{copy-from-record-BNP6CFFR-Cn7Nr7XT.js → copy-from-record-DL503itm-B7hBbUhh.js} +2 -2
  17. package/dist/iframe/assets/{coverageDerivation-CV2ORogj-B7aNPljp.js → coverageDerivation-CV2ORogj-D3oRqD1U.js} +1 -1
  18. package/dist/iframe/assets/{dob-calendar-RIJ5S6YU-CdxMGaLz.js → dob-calendar-RIJ5S6YU-vOGgSHSK.js} +1 -1
  19. package/dist/iframe/assets/{fixtures-ijbZ16Zg-NuD06-4v.js → fixtures-ijbZ16Zg-BmEw6uDw.js} +1 -1
  20. package/dist/iframe/assets/household-prefill-DJ-Y0NcP-z6AnkJcR.js +1 -0
  21. package/dist/iframe/assets/{householdPrefill-DLm3pxFH-DzyOYQr_.js → householdPrefill-DLm3pxFH-BZXueCa7.js} +1 -1
  22. package/dist/iframe/assets/iframe-ku_diR98.js +107 -0
  23. package/dist/iframe/assets/{index-BknEWAR5.js → index-IiQzPjFm.js} +2 -2
  24. package/dist/iframe/assets/intake-review-panel-CWz2efw4-CP-sEc-j.js +1 -0
  25. package/dist/iframe/assets/{mockJump-hNzgzUmO-CQ7eZ354.js → mockJump-H1NFTDah-yzeq4yea.js} +1 -1
  26. package/dist/iframe/assets/payload-CQc06PZC-BxklUdmW.js +1 -0
  27. package/dist/iframe/assets/{question-list-DFjWa8ZA-DbabOwyP.js → question-list-CcoyuyQD-DCzTkzeE.js} +11 -11
  28. package/dist/iframe/assets/rates-panel-MXCbnqpL-TFkvW-DN.js +17 -0
  29. package/dist/iframe/assets/{review-panel-C_WxX33U-CxzpQutt.js → review-panel-CFVxGU7F-CqUUCDLK.js} +2 -2
  30. package/dist/iframe/assets/stage-BSRsu--X-BAWfI2cm.js +1 -0
  31. package/dist/iframe/assets/validation-ELW00AsL-ytOMlsxG.js +3 -0
  32. package/dist/iframe/assets/{vehicleCoverage-CBWORI1l-BqOK33e3.js → vehicleCoverage-DI2dKrnI-DVXwPfxd.js} +1 -1
  33. package/dist/iframe/assets/{visibility-CKRGC3Il-CLpoN3cd.js → visibility-CyRoLvg5-CxslMJYX.js} +1 -1
  34. package/dist/iframe/assets/waves-vdL6w3zC.js +16 -0
  35. package/dist/iframe/iframe.html +1 -1
  36. package/dist/{index-CY0roJE_.js → index-IZRzz1Mi.js} +1 -1
  37. package/dist/index.es.js +1 -1
  38. package/dist/index.umd.js +103 -103
  39. package/dist/{intake-review-panel-D27t8CZO-CxiXytFS.js → intake-review-panel-CWz2efw4-BQ-Nog4K.js} +27 -27
  40. package/dist/{mockJump-hNzgzUmO-CsTzthio.js → mockJump-H1NFTDah-CkqZVQxf.js} +1 -1
  41. package/dist/{payload-DrGFAxms-DmfWvvu_.js → payload-CQc06PZC-KA6cBCno.js} +26 -26
  42. package/dist/{question-list-DFjWa8ZA-B8f7Jf6J.js → question-list-CcoyuyQD-_c4J4n0G.js} +51 -51
  43. package/dist/rates-panel-MXCbnqpL-DGYBAFto.js +1323 -0
  44. package/dist/{review-panel-C_WxX33U-CZu6We48.js → review-panel-CFVxGU7F-CtO3WmnD.js} +51 -51
  45. package/dist/stage-BSRsu--X-DJs8ps3K.js +197 -0
  46. package/dist/utils/prefill.d.ts +2 -4
  47. package/dist/{validation-D42QXxck-BPUVtzkv.js → validation-ELW00AsL-C4xgPdbr.js} +341 -343
  48. package/dist/{vehicleCoverage-CBWORI1l-DZmjvVjU.js → vehicleCoverage-DI2dKrnI-Lq9BCjQm.js} +3 -3
  49. package/dist/{visibility-CKRGC3Il-_72Koc98.js → visibility-CyRoLvg5-DNRgF2sH.js} +6 -6
  50. package/dist/waves-DM8Lgssk.js +71 -0
  51. package/dist/{widget-CP6ApixH.js → widget-3S1xkGig.js} +2972 -2827
  52. package/package.json +2 -2
  53. package/dist/api-CWMwIjKu.js +0 -51
  54. package/dist/core-CrEw_I-E-CsRUhlZy.js +0 -417
  55. package/dist/iframe/assets/core-CrEw_I-E-DJNj5Zzo.js +0 -16
  56. package/dist/iframe/assets/household-prefill-CmtB9R3R-0b9HYzDA.js +0 -1
  57. package/dist/iframe/assets/iframe-Be9NY0jq.js +0 -107
  58. package/dist/iframe/assets/intake-review-panel-D27t8CZO-QuAzDm1O.js +0 -1
  59. package/dist/iframe/assets/payload-DrGFAxms-DIGXNw5l.js +0 -1
  60. package/dist/iframe/assets/rates-panel-BSFiWEZX-GsRBXu7R.js +0 -17
  61. package/dist/iframe/assets/stage-knShj71W-CEkRTdvw.js +0 -1
  62. package/dist/iframe/assets/validation-D42QXxck-DrIBn9be.js +0 -3
  63. package/dist/rates-panel-BSFiWEZX-DdETQZ83.js +0 -1001
  64. package/dist/stage-knShj71W-XIJ7bUoN.js +0 -197
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getcredify/credify-insurance-widget",
3
- "version": "1.44.1",
3
+ "version": "1.45.0",
4
4
  "description": "Credify Insurance Widget - Embeddable React widget for insurance quotes",
5
5
  "type": "module",
6
6
  "main": "./dist/index.es.js",
@@ -61,7 +61,7 @@
61
61
  }
62
62
  },
63
63
  "dependencies": {
64
- "@getcredify/credify-insurance-ui-kit": "^1.3.0",
64
+ "@getcredify/credify-insurance-ui-kit": "^1.5.0",
65
65
  "@internationalized/date": "^3.12.2",
66
66
  "@sentry/react": "^8.40.0",
67
67
  "react-aria-components": "^1.19.0",
@@ -1,51 +0,0 @@
1
- import { Z as i, e as o, X as t, A as r, D as l, c as u, H as n, z as d, K as f, F as p, q as g, W as c, V as m, d as S, T, j as h, O as y, k, E as A, J as E, C as Q, p as v, _ as P, S as R, w as C, B as _, a as O, m as V, Y as b, v as D, N as I, b as F, s as K, x as U, I as B, y as L, f as M, g as Y, L as Z, P as q, M as x, h as G, i as H, l as N } from "./widget-CP6ApixH.js";
2
- (function() {
3
- if (typeof e > "u")
4
- var e = { env: {} };
5
- })();
6
- export {
7
- i as AUTH_TOKEN_STORAGE_KEY,
8
- o as CredifyApiError,
9
- t as QUOTE_ID_STORAGE_KEY,
10
- r as applyDriverPrefill,
11
- l as applyVehiclePrefill,
12
- u as bodyWithQuoteId,
13
- n as buildResumeUrl,
14
- d as captureResumeTokenFromUrl,
15
- f as cityFromZip,
16
- p as clearQuoteSession,
17
- g as configureApi,
18
- c as configureZipCityLookup,
19
- m as consumeResumeToken,
20
- S as createQuote,
21
- T as decodeVin,
22
- h as dismissDriverPrefill,
23
- y as dismissVehiclePrefill,
24
- k as fetchDriverPrefillSuggestions,
25
- A as fetchVehiclePrefillSuggestions,
26
- E as getApiConfig,
27
- Q as getQuestionsByStage,
28
- v as getQuote,
29
- P as getRates,
30
- R as getStagesForQuote,
31
- C as getVehicleOptions,
32
- _ as hasResumeToken,
33
- O as isMockEnabled,
34
- V as isSupportedState,
35
- b as isTestModeEnabled,
36
- D as issueResumeLink,
37
- I as loadAuthToken,
38
- F as loadQuoteId,
39
- K as post,
40
- U as prefillProperty,
41
- B as prefillSuggestions,
42
- L as redeemResumeToken,
43
- M as requestBind,
44
- Y as resetApiConfig,
45
- Z as resetPrefillSuggestions,
46
- q as saveAuthToken,
47
- x as saveQuoteId,
48
- G as sendSmsCode,
49
- H as updateQuote,
50
- N as verifySmsCode
51
- };
@@ -1,417 +0,0 @@
1
- import { a4 as y, af as b } from "./widget-CP6ApixH.js";
2
- (function() {
3
- if (typeof e > "u")
4
- var e = { 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 P = [
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
- ], U = y("house", P);
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 I = [
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
- ], T = y("shield-check", I);
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 F = [
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
- ], x = y("waves", F);
67
- var z = (e) => {
68
- let a = e.replace(/\D/g, "").replace(/^1/, "").slice(0, 10);
69
- return a.length <= 3 ? a : a.length <= 6 ? `(${a.slice(0, 3)}) ${a.slice(3)}` : `(${a.slice(0, 3)}) ${a.slice(3, 6)}-${a.slice(6)}`;
70
- }, f = (e) => e.length <= 3 ? e : e.length <= 5 ? `${e.slice(0, 3)}-${e.slice(3)}` : `${e.slice(0, 3)}-${e.slice(3, 5)}-${e.slice(5)}`, L = (e) => f(e.replace(/\D/g, "").slice(0, 9)), k = 5, q = (e) => {
71
- let a = e.replace(/\D/g, "").slice(0, 9), r = Math.min(a.length, k);
72
- return f("•".repeat(r) + a.slice(r));
73
- }, Y = (e, a) => {
74
- let r = e.replace(/\D/g, ""), o = a.split("•").length - 1;
75
- return (r.slice(0, o) + a.replace(/\D/g, "")).slice(0, 9);
76
- }, w = {
77
- SafecoPersonal: "Safeco",
78
- SafecoPersoanl: "Safeco",
79
- AssuranceAmerica: "Assurance America",
80
- CommonWealthCasualty: "Commonwealth Casualty",
81
- Alinsco: "Alinsco",
82
- ACORDBOLTPersonalAuto: "Bolt Auto",
83
- ACORDBOLTPersonalHome: "Bolt Home",
84
- TwentyFirstCentury: "21st Century",
85
- ACentral: "A-Central",
86
- AAA: "AAA",
87
- AARP: "AARP",
88
- Acadia: "Acadia",
89
- Ace: "ACE",
90
- Acuity: "Acuity",
91
- AdirondackInsExchange: "Adirondack",
92
- Aegis: "Aegis",
93
- AIC: "AIC",
94
- AIG: "AIG",
95
- AlfaAlliance: "Alfa Alliance",
96
- AllianzOfAmerica: "Allianz",
97
- AllianzOfAmericaJefferson: "Allianz Jefferson",
98
- Allied: "Allied",
99
- Allmerica: "Allmerica",
100
- Allstate: "Allstate",
101
- AmericaFirst: "America First",
102
- AmericanCommerce: "American Commerce",
103
- AmericanFamily: "American Family",
104
- Amica: "Amica",
105
- Ameriprise: "Ameriprise",
106
- ASILloyds: "ASI Lloyds",
107
- Assurant: "Assurant",
108
- AtlasGeneralAgency: "Atlas General",
109
- AustinMutual: "Austin Mutual",
110
- Autoone: "AutoOne",
111
- AutoOwners: "Auto-Owners",
112
- BadgerMutual: "Badger Mutual",
113
- Balboa: "Balboa",
114
- Bamboo: "Bamboo",
115
- Bankers: "Bankers",
116
- BeaconNational: "Beacon National",
117
- BrethernMutual: "Brethren Mutual",
118
- BristolWest: "Bristol West",
119
- BunkerHill: "Bunker Hill",
120
- CapitalInsuranceGroup: "Capital Insurance",
121
- Celina: "Celina",
122
- CentralMutualOfOH: "Central Mutual",
123
- Chubb: "Chubb",
124
- ChubbInsurance: "Chubb",
125
- Cincinnati: "Cincinnati",
126
- Citizens: "Citizens",
127
- Clearcover: "Clearcover",
128
- CNA: "CNA",
129
- ColonialPenn: "Colonial Penn",
130
- ColoradoCasualty: "Colorado Casualty",
131
- Columbia: "Columbia",
132
- CommerceWest: "Commerce West",
133
- CommonwealthCasualty: "Commonwealth Casualty",
134
- ConstitutionalCasualty: "Constitutional Casualty",
135
- Cornerstone: "Cornerstone",
136
- Countrywide: "Countrywide",
137
- CSE: "CSE",
138
- Cumberland: "Cumberland",
139
- Cypress: "Cypress",
140
- Dairyland: "Dairyland",
141
- Deerbrook: "Deerbrook",
142
- Direct: "Direct",
143
- Donegal: "Donegal",
144
- Drive: "Drive",
145
- Electric: "Electric",
146
- EMC: "EMC",
147
- Encompass: "Encompass",
148
- Erie: "Erie",
149
- Esurance: "Esurance",
150
- ExcelsiorInsuranceCompany: "Excelsior",
151
- Explorer: "Explorer",
152
- FairPlan: "FAIR Plan",
153
- FarmBureau: "Farm Bureau",
154
- Farmers: "Farmers",
155
- Fidelity: "Fidelity",
156
- FirstAmerican: "First American",
157
- Foremost: "Foremost",
158
- ForemostInsuranceCompany: "Foremost",
159
- Geico: "GEICO",
160
- GeneralCasualty: "General Casualty",
161
- GermantownMutual: "Germantown Mutual",
162
- GMAC: "GMAC",
163
- Grange: "Grange",
164
- GreatAmerican: "Great American",
165
- Grinnell: "Grinnell Mutual",
166
- GuideOne: "GuideOne",
167
- Hanover: "Hanover",
168
- Harbor: "Harbor",
169
- Harleysville: "Harleysville",
170
- Hartford: "The Hartford",
171
- HartfordOMNI: "Hartford OMNI",
172
- HastingsMutual: "Hastings Mutual",
173
- HawkeyeSecurity: "Hawkeye Security",
174
- HDI: "HDI",
175
- HippoInsuranceCompany: "Hippo",
176
- HomeownersOfAmerica: "Homeowners of America",
177
- Homesite: "Homesite",
178
- HoraceMann: "Horace Mann",
179
- HoustonGeneral: "Houston General",
180
- IFA: "IFA",
181
- ImperialCasualty: "Imperial Casualty",
182
- Indiana: "Indiana Insurance",
183
- IndianaFarmers: "Indiana Farmers",
184
- Infinity: "Infinity",
185
- Insurequest: "Insurequest",
186
- Integon: "Integon",
187
- Integrity: "Integrity",
188
- Kemper: "Kemper",
189
- LibertyMutual: "Liberty Mutual",
190
- LibertyNorthwest: "Liberty Northwest",
191
- MainStreetAmerica: "Main Street America",
192
- Mapfre: "MAPFRE",
193
- MarkelInsuranceCompany: "Markel",
194
- Mendota: "Mendota",
195
- MerchantsGroup: "Merchants Group",
196
- Mercury: "Mercury",
197
- Metlife: "MetLife",
198
- Metropolitan: "Metropolitan",
199
- MidContinent: "Mid-Continent",
200
- MidwesternIndemnity: "Midwestern Indemnity",
201
- Montgomery: "Montgomery",
202
- MSA: "MSA",
203
- MtWashington: "Mt. Washington",
204
- MutualBenefit: "Mutual Benefit",
205
- NatGenPremier: "NatGen Premier",
206
- NationalGeneral: "National General",
207
- Nationwide: "Nationwide",
208
- NationwideScottsdale: "Nationwide Scottsdale",
209
- NewYorkCentralMutual: "NY Central Mutual",
210
- NJManufacturers: "NJM Insurance",
211
- NJSkylands: "NJ Skylands",
212
- Northstar: "Northstar",
213
- Occidental: "Occidental",
214
- OhioCasualty: "Ohio Casualty",
215
- OmahaPC: "Omaha P&C",
216
- OneBeacon: "OneBeacon",
217
- OregonMutual: "Oregon Mutual",
218
- Palisades: "Palisades",
219
- PeerlessMontgomery: "Peerless Montgomery",
220
- Pekin: "Pekin",
221
- Pemco: "PEMCO",
222
- PennNational: "Penn National",
223
- PlymouthRock: "Plymouth Rock",
224
- PreferredMutual: "Preferred Mutual",
225
- Proformance: "Proformance",
226
- Progressive: "Progressive",
227
- Prudential: "Prudential",
228
- PureHighValue: "PURE",
229
- Republic: "Republic",
230
- RockfordMutual: "Rockford Mutual",
231
- RoyalAndSunAlliance: "Royal & SunAlliance",
232
- Safeco: "Safeco",
233
- SECURA: "SECURA",
234
- Selective: "Selective",
235
- SouthernCounty: "Southern County",
236
- SouthernMutual: "Southern Mutual",
237
- SouthernTrust: "Southern Trust",
238
- StPaulTravelers: "St. Paul Travelers",
239
- StandardMutual: "Standard Mutual",
240
- StarCasualty: "Star Casualty",
241
- StateAuto: "State Auto",
242
- StateFarm: "State Farm",
243
- StateFarmFloridaInsuranceCompany: "State Farm Florida",
244
- SunshineStateInsuranceCompany: "Sunshine State",
245
- Travelers: "Travelers",
246
- Tower: "Tower",
247
- TWFG: "TWFG",
248
- Unigard: "Unigard",
249
- UnitedFireAndCasualty: "United Fire & Casualty",
250
- Unitrin: "Unitrin",
251
- Universal: "Universal",
252
- USAA: "USAA",
253
- UticaNational: "Utica National",
254
- Victoria: "Victoria",
255
- Wellington: "Wellington",
256
- WestBend: "West Bend",
257
- WesternNational: "Western National",
258
- WesternReserveGroup: "Western Reserve",
259
- Westfield: "Westfield",
260
- WhiteMountains: "White Mountains",
261
- WilsonMutual: "Wilson Mutual",
262
- Windsor: "Windsor",
263
- Zurich: "Zurich"
264
- }, H = (e) => e.replace(/([a-z])([A-Z])/g, "$1 $2").replace(/_/g, " ").trim(), C = (e) => e && (w[e] ?? H(e)), S = {
265
- PersonalHome: "Homeowners",
266
- PersonalAuto: "Personal Auto",
267
- Flood: "Flood",
268
- ExcessFlood: "Excess Flood",
269
- _other: "Other"
270
- }, p = [
271
- "PersonalHome",
272
- "PersonalAuto",
273
- "Flood",
274
- "ExcessFlood"
275
- ], j = (e) => e ? S[e] ?? e : null, g = (e) => {
276
- if (e.monthly_premium_cents != null) return e.monthly_premium_cents;
277
- let a = Number.isFinite(e.term_months) && e.term_months > 0 ? e.term_months : 1;
278
- return Math.round((e.premium_cents || 0) / a);
279
- }, N = (e) => e.admitted_status === "non_admitted" || e.admitted_status === "not_quoted" ? e.admitted_status : "admitted", J = (e) => {
280
- let a = {
281
- admitted: [],
282
- non_admitted: [],
283
- not_quoted: []
284
- };
285
- for (let r of e) a[N(r)].push(r);
286
- return a;
287
- }, O = (e, a) => g(e) - g(a), G = (e, a) => C(e.carrier_name).localeCompare(C(a.carrier_name)), V = (e, { sortBy: a = "premium" } = {}) => {
288
- if (!e.length) return [];
289
- let r = a === "carrier" ? G : O;
290
- if (!e.some((n) => n.lob)) return [{
291
- lob: null,
292
- title: "Rates",
293
- rates: [...e].sort(r)
294
- }];
295
- let o = /* @__PURE__ */ new Map();
296
- for (let n of e) {
297
- let i = n.lob || "_other", t = o.get(i);
298
- t ? t.push(n) : o.set(i, [n]);
299
- }
300
- let l = (n) => {
301
- let i = p.indexOf(n);
302
- return i === -1 ? p.length : i;
303
- };
304
- return [...o.entries()].sort(([n], [i]) => l(n) - l(i)).map(([n, i]) => ({
305
- lob: n,
306
- title: S[n] ?? n,
307
- rates: [...i].sort(r)
308
- }));
309
- }, Z = (e) => (e.coverages ?? []).filter((a) => !!a && typeof a.label == "string" && a.label.trim() !== "" && typeof a.value == "string" && a.value.trim() !== ""), B = [
310
- {
311
- match: /uninsured.*motorist.*(?:cannot|can not|can't) be (?:greater|higher|more) than.*bodily injury/i,
312
- render: () => "Uninsured motorist coverage can't be higher than your bodily injury limit. Lower it, or raise bodily injury to match."
313
- },
314
- {
315
- match: /(?:cannot|can not|can't) be (?:greater|higher|more) than/i,
316
- render: (e) => e ? `${e} is set higher than this carrier allows.` : "One limit is set higher than this carrier allows."
317
- },
318
- {
319
- match: /please complete all required fields|is required|(?:cannot|can not|can't) be (?:empty|blank)|must be (?:provided|entered)/i,
320
- render: () => "These need an answer before the carrier can price your quote:",
321
- shared: !0
322
- }
323
- ], _ = {
324
- vehicle: "Your vehicles",
325
- driver: "Your drivers",
326
- coverage: "Your coverage choices",
327
- home: "Your home",
328
- applicant: "Your details",
329
- history: "Your insurance history",
330
- general: "A few other answers"
331
- }, E = [
332
- "vehicle",
333
- "driver",
334
- "home",
335
- "coverage",
336
- "history",
337
- "applicant",
338
- "general"
339
- ], m = (e) => typeof e == "string" ? e.trim() : typeof e == "number" ? String(e) : "", W = (e) => [
340
- m(e.year),
341
- m(e.make),
342
- m(e.model)
343
- ].filter(Boolean).join(" "), $ = (e) => [m(e.first_name), m(e.last_name)].filter(Boolean).join(" "), D = (e, a) => {
344
- let r = a.vehicles?.length === 1 ? a.vehicles[0] : void 0;
345
- if (e === "vehicle" && r) {
346
- let l = W(r);
347
- if (l) return `Your ${l}`;
348
- }
349
- let o = a.drivers?.length === 1 ? a.drivers[0] : void 0;
350
- if (e === "driver" && o) {
351
- let l = $(o);
352
- if (l) return l;
353
- }
354
- return _[e];
355
- }, M = (e) => e && (e[0] ?? "").toUpperCase() + e.slice(1), K = (e) => e.length <= 1 ? e[0] ?? "" : e.length === 2 ? `${e[0]} and ${e[1]}` : `${e.slice(0, -1).join(", ")}, and ${e[e.length - 1]}`, Q = (e, a = {}) => {
356
- let r = /* @__PURE__ */ new Map(), o = [], l = 0;
357
- for (let i of e ?? []) {
358
- let t = b(i.field ?? ""), s = (t.key ? a.describeField?.(t.key) : void 0)?.label ?? (t.isOpaque ? void 0 : t.label);
359
- t.key && o.push(t.key);
360
- let c = (i.message ?? "").trim(), u = B.find((v) => v.match.test(c)), h = u ? u.render(s) : c;
361
- if (!h || !s && !c) {
362
- l += 1;
363
- continue;
364
- }
365
- if (!s && u?.shared) {
366
- l += 1;
367
- continue;
368
- }
369
- let d = r.get(t.entity) ?? {
370
- issues: [],
371
- seen: /* @__PURE__ */ new Set()
372
- }, A = `${s ?? ""}|${h}`;
373
- d.seen.has(A) || (d.seen.add(A), d.issues.push({
374
- label: s,
375
- message: h,
376
- key: t.key
377
- }), r.set(t.entity, d));
378
- }
379
- let n = [];
380
- for (let i of E) {
381
- let t = r.get(i);
382
- if (!t?.issues.length) continue;
383
- let s = t.issues[0]?.message ?? "", c = t.issues.every((u) => u.message === s && u.label);
384
- n.push({
385
- id: i,
386
- heading: D(i, a),
387
- sharedMessage: c ? s : void 0,
388
- labels: c ? t.issues.map((u) => u.label) : [],
389
- issues: t.issues
390
- });
391
- }
392
- return {
393
- groups: n,
394
- otherCount: l,
395
- isOpaque: n.length === 0,
396
- keys: [...new Set(o)]
397
- };
398
- }, X = (e) => e.label ? `${e.label}: ${M(e.message)}` : M(e.message);
399
- export {
400
- Q as A,
401
- U as H,
402
- T as S,
403
- x as W,
404
- Z as b,
405
- J as g,
406
- N as h,
407
- X as j,
408
- K as k,
409
- g as m,
410
- q as o,
411
- j as p,
412
- L as r,
413
- Y as s,
414
- z as t,
415
- C as u,
416
- V as y
417
- };
@@ -1,16 +0,0 @@
1
- import{l as A,J as v}from"./iframe-Be9NY0jq.js";/**
2
- * @license lucide-react v0.562.0 - ISC
3
- *
4
- * This source code is licensed under the ISC license.
5
- * See the LICENSE file in the root directory of this source tree.
6
- */const P=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{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",key:"r6nss1"}]],U=A("house",P);/**
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
- */const I=[["path",{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",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],T=A("shield-check",I);/**
12
- * @license lucide-react v0.562.0 - ISC
13
- *
14
- * This source code is licensed under the ISC license.
15
- * See the LICENSE file in the root directory of this source tree.
16
- */const F=[["path",{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",key:"knzxuh"}],["path",{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",key:"2jd2cc"}],["path",{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",key:"rd2r6e"}]],x=A("waves",F);var z=e=>{let a=e.replace(/\D/g,"").replace(/^1/,"").slice(0,10);return a.length<=3?a:a.length<=6?`(${a.slice(0,3)}) ${a.slice(3)}`:`(${a.slice(0,3)}) ${a.slice(3,6)}-${a.slice(6)}`},f=e=>e.length<=3?e:e.length<=5?`${e.slice(0,3)}-${e.slice(3)}`:`${e.slice(0,3)}-${e.slice(3,5)}-${e.slice(5)}`,L=e=>f(e.replace(/\D/g,"").slice(0,9)),k=5,q=e=>{let a=e.replace(/\D/g,"").slice(0,9),r=Math.min(a.length,k);return f("•".repeat(r)+a.slice(r))},Y=(e,a)=>{let r=e.replace(/\D/g,""),o=a.split("•").length-1;return(r.slice(0,o)+a.replace(/\D/g,"")).slice(0,9)},w={SafecoPersonal:"Safeco",SafecoPersoanl:"Safeco",AssuranceAmerica:"Assurance America",CommonWealthCasualty:"Commonwealth Casualty",Alinsco:"Alinsco",ACORDBOLTPersonalAuto:"Bolt Auto",ACORDBOLTPersonalHome:"Bolt Home",TwentyFirstCentury:"21st Century",ACentral:"A-Central",AAA:"AAA",AARP:"AARP",Acadia:"Acadia",Ace:"ACE",Acuity:"Acuity",AdirondackInsExchange:"Adirondack",Aegis:"Aegis",AIC:"AIC",AIG:"AIG",AlfaAlliance:"Alfa Alliance",AllianzOfAmerica:"Allianz",AllianzOfAmericaJefferson:"Allianz Jefferson",Allied:"Allied",Allmerica:"Allmerica",Allstate:"Allstate",AmericaFirst:"America First",AmericanCommerce:"American Commerce",AmericanFamily:"American Family",Amica:"Amica",Ameriprise:"Ameriprise",ASILloyds:"ASI Lloyds",Assurant:"Assurant",AtlasGeneralAgency:"Atlas General",AustinMutual:"Austin Mutual",Autoone:"AutoOne",AutoOwners:"Auto-Owners",BadgerMutual:"Badger Mutual",Balboa:"Balboa",Bamboo:"Bamboo",Bankers:"Bankers",BeaconNational:"Beacon National",BrethernMutual:"Brethren Mutual",BristolWest:"Bristol West",BunkerHill:"Bunker Hill",CapitalInsuranceGroup:"Capital Insurance",Celina:"Celina",CentralMutualOfOH:"Central Mutual",Chubb:"Chubb",ChubbInsurance:"Chubb",Cincinnati:"Cincinnati",Citizens:"Citizens",Clearcover:"Clearcover",CNA:"CNA",ColonialPenn:"Colonial Penn",ColoradoCasualty:"Colorado Casualty",Columbia:"Columbia",CommerceWest:"Commerce West",CommonwealthCasualty:"Commonwealth Casualty",ConstitutionalCasualty:"Constitutional Casualty",Cornerstone:"Cornerstone",Countrywide:"Countrywide",CSE:"CSE",Cumberland:"Cumberland",Cypress:"Cypress",Dairyland:"Dairyland",Deerbrook:"Deerbrook",Direct:"Direct",Donegal:"Donegal",Drive:"Drive",Electric:"Electric",EMC:"EMC",Encompass:"Encompass",Erie:"Erie",Esurance:"Esurance",ExcelsiorInsuranceCompany:"Excelsior",Explorer:"Explorer",FairPlan:"FAIR Plan",FarmBureau:"Farm Bureau",Farmers:"Farmers",Fidelity:"Fidelity",FirstAmerican:"First American",Foremost:"Foremost",ForemostInsuranceCompany:"Foremost",Geico:"GEICO",GeneralCasualty:"General Casualty",GermantownMutual:"Germantown Mutual",GMAC:"GMAC",Grange:"Grange",GreatAmerican:"Great American",Grinnell:"Grinnell Mutual",GuideOne:"GuideOne",Hanover:"Hanover",Harbor:"Harbor",Harleysville:"Harleysville",Hartford:"The Hartford",HartfordOMNI:"Hartford OMNI",HastingsMutual:"Hastings Mutual",HawkeyeSecurity:"Hawkeye Security",HDI:"HDI",HippoInsuranceCompany:"Hippo",HomeownersOfAmerica:"Homeowners of America",Homesite:"Homesite",HoraceMann:"Horace Mann",HoustonGeneral:"Houston General",IFA:"IFA",ImperialCasualty:"Imperial Casualty",Indiana:"Indiana Insurance",IndianaFarmers:"Indiana Farmers",Infinity:"Infinity",Insurequest:"Insurequest",Integon:"Integon",Integrity:"Integrity",Kemper:"Kemper",LibertyMutual:"Liberty Mutual",LibertyNorthwest:"Liberty Northwest",MainStreetAmerica:"Main Street America",Mapfre:"MAPFRE",MarkelInsuranceCompany:"Markel",Mendota:"Mendota",MerchantsGroup:"Merchants Group",Mercury:"Mercury",Metlife:"MetLife",Metropolitan:"Metropolitan",MidContinent:"Mid-Continent",MidwesternIndemnity:"Midwestern Indemnity",Montgomery:"Montgomery",MSA:"MSA",MtWashington:"Mt. Washington",MutualBenefit:"Mutual Benefit",NatGenPremier:"NatGen Premier",NationalGeneral:"National General",Nationwide:"Nationwide",NationwideScottsdale:"Nationwide Scottsdale",NewYorkCentralMutual:"NY Central Mutual",NJManufacturers:"NJM Insurance",NJSkylands:"NJ Skylands",Northstar:"Northstar",Occidental:"Occidental",OhioCasualty:"Ohio Casualty",OmahaPC:"Omaha P&C",OneBeacon:"OneBeacon",OregonMutual:"Oregon Mutual",Palisades:"Palisades",PeerlessMontgomery:"Peerless Montgomery",Pekin:"Pekin",Pemco:"PEMCO",PennNational:"Penn National",PlymouthRock:"Plymouth Rock",PreferredMutual:"Preferred Mutual",Proformance:"Proformance",Progressive:"Progressive",Prudential:"Prudential",PureHighValue:"PURE",Republic:"Republic",RockfordMutual:"Rockford Mutual",RoyalAndSunAlliance:"Royal & SunAlliance",Safeco:"Safeco",SECURA:"SECURA",Selective:"Selective",SouthernCounty:"Southern County",SouthernMutual:"Southern Mutual",SouthernTrust:"Southern Trust",StPaulTravelers:"St. Paul Travelers",StandardMutual:"Standard Mutual",StarCasualty:"Star Casualty",StateAuto:"State Auto",StateFarm:"State Farm",StateFarmFloridaInsuranceCompany:"State Farm Florida",SunshineStateInsuranceCompany:"Sunshine State",Travelers:"Travelers",Tower:"Tower",TWFG:"TWFG",Unigard:"Unigard",UnitedFireAndCasualty:"United Fire & Casualty",Unitrin:"Unitrin",Universal:"Universal",USAA:"USAA",UticaNational:"Utica National",Victoria:"Victoria",Wellington:"Wellington",WestBend:"West Bend",WesternNational:"Western National",WesternReserveGroup:"Western Reserve",Westfield:"Westfield",WhiteMountains:"White Mountains",WilsonMutual:"Wilson Mutual",Windsor:"Windsor",Zurich:"Zurich"},H=e=>e.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/_/g," ").trim(),C=e=>e&&(w[e]??H(e)),S={PersonalHome:"Homeowners",PersonalAuto:"Personal Auto",Flood:"Flood",ExcessFlood:"Excess Flood",_other:"Other"},p=["PersonalHome","PersonalAuto","Flood","ExcessFlood"],j=e=>e?S[e]??e:null,g=e=>{if(e.monthly_premium_cents!=null)return e.monthly_premium_cents;let a=Number.isFinite(e.term_months)&&e.term_months>0?e.term_months:1;return Math.round((e.premium_cents||0)/a)},N=e=>e.admitted_status==="non_admitted"||e.admitted_status==="not_quoted"?e.admitted_status:"admitted",J=e=>{let a={admitted:[],non_admitted:[],not_quoted:[]};for(let r of e)a[N(r)].push(r);return a},O=(e,a)=>g(e)-g(a),G=(e,a)=>C(e.carrier_name).localeCompare(C(a.carrier_name)),V=(e,{sortBy:a="premium"}={})=>{if(!e.length)return[];let r=a==="carrier"?G:O;if(!e.some(n=>n.lob))return[{lob:null,title:"Rates",rates:[...e].sort(r)}];let o=new Map;for(let n of e){let i=n.lob||"_other",t=o.get(i);t?t.push(n):o.set(i,[n])}let l=n=>{let i=p.indexOf(n);return i===-1?p.length:i};return[...o.entries()].sort(([n],[i])=>l(n)-l(i)).map(([n,i])=>({lob:n,title:S[n]??n,rates:[...i].sort(r)}))},Z=e=>(e.coverages??[]).filter(a=>!!a&&typeof a.label=="string"&&a.label.trim()!==""&&typeof a.value=="string"&&a.value.trim()!==""),B=[{match:/uninsured.*motorist.*(?:cannot|can not|can't) be (?:greater|higher|more) than.*bodily injury/i,render:()=>"Uninsured motorist coverage can't be higher than your bodily injury limit. Lower it, or raise bodily injury to match."},{match:/(?:cannot|can not|can't) be (?:greater|higher|more) than/i,render:e=>e?`${e} is set higher than this carrier allows.`:"One limit is set higher than this carrier allows."},{match:/please complete all required fields|is required|(?:cannot|can not|can't) be (?:empty|blank)|must be (?:provided|entered)/i,render:()=>"These need an answer before the carrier can price your quote:",shared:!0}],_={vehicle:"Your vehicles",driver:"Your drivers",coverage:"Your coverage choices",home:"Your home",applicant:"Your details",history:"Your insurance history",general:"A few other answers"},E=["vehicle","driver","home","coverage","history","applicant","general"],m=e=>typeof e=="string"?e.trim():typeof e=="number"?String(e):"",W=e=>[m(e.year),m(e.make),m(e.model)].filter(Boolean).join(" "),$=e=>[m(e.first_name),m(e.last_name)].filter(Boolean).join(" "),D=(e,a)=>{let r=a.vehicles?.length===1?a.vehicles[0]:void 0;if(e==="vehicle"&&r){let l=W(r);if(l)return`Your ${l}`}let o=a.drivers?.length===1?a.drivers[0]:void 0;if(e==="driver"&&o){let l=$(o);if(l)return l}return _[e]},M=e=>e&&(e[0]??"").toUpperCase()+e.slice(1),K=e=>e.length<=1?e[0]??"":e.length===2?`${e[0]} and ${e[1]}`:`${e.slice(0,-1).join(", ")}, and ${e[e.length-1]}`,Q=(e,a={})=>{let r=new Map,o=[],l=0;for(let i of e??[]){let t=v(i.field??""),s=(t.key?a.describeField?.(t.key):void 0)?.label??(t.isOpaque?void 0:t.label);t.key&&o.push(t.key);let c=(i.message??"").trim(),u=B.find(b=>b.match.test(c)),h=u?u.render(s):c;if(!h||!s&&!c){l+=1;continue}if(!s&&u?.shared){l+=1;continue}let d=r.get(t.entity)??{issues:[],seen:new Set},y=`${s??""}|${h}`;d.seen.has(y)||(d.seen.add(y),d.issues.push({label:s,message:h,key:t.key}),r.set(t.entity,d))}let n=[];for(let i of E){let t=r.get(i);if(!t?.issues.length)continue;let s=t.issues[0]?.message??"",c=t.issues.every(u=>u.message===s&&u.label);n.push({id:i,heading:D(i,a),sharedMessage:c?s:void 0,labels:c?t.issues.map(u=>u.label):[],issues:t.issues})}return{groups:n,otherCount:l,isOpaque:n.length===0,keys:[...new Set(o)]}},X=e=>e.label?`${e.label}: ${M(e.message)}`:M(e.message);export{Q as A,U as H,T as S,x as W,Z as b,J as g,N as h,X as j,K as k,g as m,q as o,j as p,L as r,Y as s,z as t,C as u,V as y};
@@ -1 +0,0 @@
1
- import{t as E,r as a,j as P,A as W,I as u,O,D as R,a as s,f as N}from"./iframe-Be9NY0jq.js";import{U,y as z,h as D,m as L,d as q,u as H,l as T}from"./householdPrefill-DLm3pxFH-DzyOYQr_.js";import{j as B}from"./visibility-CKRGC3Il-CLpoN3cd.js";import{C as F}from"./car-cifgdWXX.js";import"./types-LUGvo5ic-CB-wcgK3.js";var Y=E({HouseholdPrefill:()=>J}),G={vehicle:{fetch:u.vehicle.fetch,peek:u.vehicle.peek,apply:R,dismiss:O,mergeInto:L,skip:()=>!1,alreadyPresent:()=>!1,icon:F,heading:t=>t===1?"We found a vehicle at your address":`We found ${t} vehicles at your address`,body:"Pick the ones you want covered and we'll fill in the details.",decline:"I'll add them myself",searching:"Looking for vehicles registered at your address…"},driver:{fetch:u.driver.fetch,peek:u.driver.peek,apply:W,dismiss:P,mergeInto:D,skip:z,alreadyPresent:(t,c)=>B(t,"drivers").some(i=>q(T(i),H(c.label))),icon:U,heading:t=>t===1?"We found another driver in your household":`We found ${t} drivers in your household`,body:"Add anyone who drives these vehicles. We already have you.",decline:"I'll add them myself",searching:"Looking for other drivers in your household…"}},J=({kind:t,quoteId:c,values:i,onApply:k})=>{let d=G[t],[p]=a.useState(()=>d.skip(i)),g=!!c&&!p,n=g&&c?d.peek(c):void 0,[y,r]=a.useState(n?n.length?"offering":"done":"idle"),[w,S]=a.useState(n??[]),[o,b]=a.useState(()=>new Set((n??[]).filter(e=>e.alreadyOnApplication).map(e=>e.id))),v=a.useRef(!1),j=a.useRef(i);a.useEffect(()=>{j.current=i}),a.useEffect(()=>{!c||v.current||p||(v.current=!0,d.fetch(c).then(e=>{S(e),b(new Set(e.filter(l=>l.alreadyOnApplication).map(l=>l.id))),r(e.length?"offering":"done")}).catch(()=>{r("done")}))},[c,d,p]);let C=d.icon,h=y==="idle"&&g?"searching":y;if(h==="searching")return s.jsx("div",{className:"cds-mb-5 cds-rounded-xl cds-border cds-border-accent/40 cds-bg-highlight cds-p-4","aria-live":"polite",children:s.jsxs("div",{className:"cds-flex cds-items-center cds-gap-3",children:[s.jsx("div",{className:"cds-h-5 cds-w-5 cds-shrink-0 cds-animate-spin cds-rounded-full cds-border-2 cds-border-accent cds-border-t-transparent","aria-hidden":"true"}),s.jsxs("div",{className:"cds-min-w-0 cds-flex-1",children:[s.jsx("p",{className:"cds-text-sm cds-font-bold cds-text-fg",children:d.searching}),s.jsx("p",{className:"cds-mt-0.5 cds-text-sm cds-text-fg-muted",children:"No need to wait — you can fill this in yourself below."})]})]})});if(h!=="offering"&&h!=="applying")return null;let x=w.filter(e=>!d.alreadyPresent(i,e));if(!x.length)return null;let I=e=>{b(l=>{let f=new Set(l);return f.has(e)?f.delete(e):f.add(e),f})},A=async()=>{if(!c||!o.size)return;r("applying");let e=await d.apply([...o],c);e.length&&k(d.mergeInto(j.current,e)),r("done")},$=()=>{r("done"),c&&d.dismiss(c)},m=h==="applying";return s.jsx("div",{className:"cds-mb-5 cds-rounded-xl cds-border cds-border-accent/40 cds-bg-highlight cds-p-4",children:s.jsxs("div",{className:"cds-flex cds-items-start cds-gap-3",children:[s.jsx(C,{"aria-hidden":"true",className:"cds-mt-0.5 cds-h-5 cds-w-5 cds-shrink-0 cds-text-accent"}),s.jsxs("div",{className:"cds-min-w-0 cds-flex-1",children:[s.jsx("h3",{className:"cds-text-sm cds-font-bold cds-text-fg",children:d.heading(x.length)}),s.jsx("p",{className:"cds-mt-0.5 cds-text-sm cds-text-fg-muted",children:d.body}),s.jsx("ul",{className:"cds-mt-3 cds-space-y-2",children:x.map(e=>s.jsx("li",{children:s.jsxs("label",{className:"cds-flex cds-cursor-pointer cds-items-start cds-gap-2 cds-text-sm cds-text-fg",children:[s.jsx("input",{type:"checkbox",className:"cds-mt-0.5",checked:o.has(e.id),disabled:m,onChange:()=>I(e.id)}),s.jsx("span",{"data-credify-redact":!0,className:"cds-font-semibold",children:e.label})]})},e.id))}),s.jsxs("div",{className:"cds-mt-4 cds-flex cds-flex-wrap cds-items-center cds-gap-3",children:[s.jsx("button",{type:"button",disabled:m||!o.size,onClick:()=>void A(),className:`cds-rounded-lg cds-bg-accent cds-px-4 cds-py-2 cds-text-sm cds-font-bold cds-text-primary-foreground hover:cds-bg-accent disabled:cds-cursor-not-allowed disabled:cds-opacity-50 ${N}`,children:m?"Adding…":"Use these"}),s.jsx("button",{type:"button",disabled:m,onClick:$,className:`cds-text-sm cds-font-semibold cds-text-fg cds-underline disabled:cds-opacity-50 ${N}`,children:d.decline})]})]})]})})};export{Y as n,J as t};