@mychoice/mychoice-sdk-components 1.0.0 → 2.0.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 +2 -2
- package/dist/cjs/components/buttons/interfaces.d.ts +6 -6
- package/dist/cjs/components/headers/interfaces.d.ts +2 -2
- package/dist/cjs/components/icons/IconArrow.d.ts +3 -0
- package/dist/cjs/components/icons/IconClock.d.ts +3 -0
- package/dist/cjs/components/icons/IconDropdownArrow.d.ts +3 -0
- package/dist/cjs/components/icons/IconTabArrow.d.ts +3 -0
- package/dist/cjs/components/icons/index.d.ts +1 -0
- package/dist/cjs/components/inputs/interfaces.d.ts +4 -3
- package/dist/cjs/components/messages/interfaces.d.ts +1 -1
- package/dist/cjs/components/navigations/Step/Step.d.ts +1 -0
- package/dist/cjs/components/navigations/Step/index.d.ts +1 -1
- package/dist/cjs/components/navigations/interfaces.d.ts +5 -2
- package/dist/cjs/components/quotes/BrokerLink/BrokerLink.d.ts +3 -0
- package/dist/cjs/components/quotes/BrokerLink/index.d.ts +1 -0
- package/dist/cjs/components/quotes/interfaces.d.ts +7 -7
- package/dist/cjs/components/selects/interfaces.d.ts +1 -1
- package/dist/cjs/components/titles/interfaces.d.ts +1 -1
- package/dist/cjs/components/tooltips/interfaces.d.ts +4 -2
- package/dist/cjs/constants/api.d.ts +4 -0
- package/dist/cjs/constants/application.d.ts +5 -2
- package/dist/cjs/constants/device.d.ts +2 -1
- package/dist/cjs/constants/insurances/home/pages/address.d.ts +2 -6
- package/dist/cjs/constants/insurances/home/pages/applicant.d.ts +4 -4
- package/dist/cjs/constants/insurances/home/pages/property.d.ts +26 -2
- package/dist/cjs/constants/insurances/index.d.ts +1 -0
- package/dist/cjs/constants/insurances/life/index.d.ts +1 -0
- package/dist/cjs/constants/insurances/life/pages/coverage.d.ts +12 -0
- package/dist/cjs/constants/insurances/life/pages/index.d.ts +1 -0
- package/dist/cjs/constants/insurances/shared/index.d.ts +1 -0
- package/dist/cjs/constants/insurances/shared/options.d.ts +1 -1
- package/dist/cjs/constants/insurances/shared/postal.d.ts +1 -0
- package/dist/cjs/constants/modals.d.ts +1 -0
- package/dist/cjs/helpers/main.d.ts +11 -0
- package/dist/cjs/index.js +302 -97
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/interfaces/general.d.ts +7 -7
- package/dist/cjs/interfaces/inputs.d.ts +6 -3
- package/dist/cjs/utils/InputValueReducer/interfaces.d.ts +1 -5
- package/dist/esm/components/buttons/interfaces.d.ts +6 -6
- package/dist/esm/components/headers/interfaces.d.ts +2 -2
- package/dist/esm/components/icons/IconArrow.d.ts +3 -0
- package/dist/esm/components/icons/IconClock.d.ts +3 -0
- package/dist/esm/components/icons/IconDropdownArrow.d.ts +3 -0
- package/dist/esm/components/icons/IconTabArrow.d.ts +3 -0
- package/dist/esm/components/icons/index.d.ts +1 -0
- package/dist/esm/components/inputs/interfaces.d.ts +4 -3
- package/dist/esm/components/messages/interfaces.d.ts +1 -1
- package/dist/esm/components/navigations/Step/Step.d.ts +1 -0
- package/dist/esm/components/navigations/Step/index.d.ts +1 -1
- package/dist/esm/components/navigations/interfaces.d.ts +5 -2
- package/dist/esm/components/quotes/BrokerLink/BrokerLink.d.ts +3 -0
- package/dist/esm/components/quotes/BrokerLink/index.d.ts +1 -0
- package/dist/esm/components/quotes/interfaces.d.ts +7 -7
- package/dist/esm/components/selects/interfaces.d.ts +1 -1
- package/dist/esm/components/titles/interfaces.d.ts +1 -1
- package/dist/esm/components/tooltips/interfaces.d.ts +4 -2
- package/dist/esm/constants/api.d.ts +4 -0
- package/dist/esm/constants/application.d.ts +5 -2
- package/dist/esm/constants/device.d.ts +2 -1
- package/dist/esm/constants/insurances/home/pages/address.d.ts +2 -6
- package/dist/esm/constants/insurances/home/pages/applicant.d.ts +4 -4
- package/dist/esm/constants/insurances/home/pages/property.d.ts +26 -2
- package/dist/esm/constants/insurances/index.d.ts +1 -0
- package/dist/esm/constants/insurances/life/index.d.ts +1 -0
- package/dist/esm/constants/insurances/life/pages/coverage.d.ts +12 -0
- package/dist/esm/constants/insurances/life/pages/index.d.ts +1 -0
- package/dist/esm/constants/insurances/shared/index.d.ts +1 -0
- package/dist/esm/constants/insurances/shared/options.d.ts +1 -1
- package/dist/esm/constants/insurances/shared/postal.d.ts +1 -0
- package/dist/esm/constants/modals.d.ts +1 -0
- package/dist/esm/helpers/main.d.ts +11 -0
- package/dist/esm/index.js +279 -95
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/interfaces/general.d.ts +7 -7
- package/dist/esm/interfaces/inputs.d.ts +6 -3
- package/dist/esm/utils/InputValueReducer/interfaces.d.ts +1 -5
- package/dist/index.d.ts +167 -105
- package/package.json +2 -2
- package/dist/cjs/components/icons/loaders/IconLoaderVideo.d.ts +0 -5
- package/dist/esm/components/icons/loaders/IconLoaderVideo.d.ts +0 -5
package/dist/cjs/index.js
CHANGED
|
@@ -249,43 +249,41 @@ exports.DriverListTypes = void 0;
|
|
|
249
249
|
|
|
250
250
|
const defaultBrokerPhone = '1-855-843-1570';
|
|
251
251
|
|
|
252
|
-
exports.
|
|
253
|
-
(function (
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
})(exports.
|
|
252
|
+
exports.AppTypes = void 0;
|
|
253
|
+
(function (AppTypes) {
|
|
254
|
+
AppTypes["MyChoice"] = "MyChoice";
|
|
255
|
+
AppTypes["Partner"] = "Partner";
|
|
256
|
+
AppTypes["TheBig"] = "TheBig";
|
|
257
|
+
})(exports.AppTypes || (exports.AppTypes = {}));
|
|
258
|
+
exports.InsuranceTypes = void 0;
|
|
259
|
+
(function (InsuranceTypes) {
|
|
260
|
+
InsuranceTypes["Car"] = "car";
|
|
261
|
+
InsuranceTypes["Home"] = "home";
|
|
262
|
+
InsuranceTypes["Condo"] = "condo";
|
|
263
|
+
InsuranceTypes["Tenant"] = "tenant";
|
|
264
|
+
InsuranceTypes["Life"] = "life";
|
|
265
|
+
})(exports.InsuranceTypes || (exports.InsuranceTypes = {}));
|
|
266
|
+
const defaultLocalIndex = 'insurance';
|
|
267
|
+
const MAX_LOCAL_STORAGE_HOURS = 168;
|
|
268
|
+
const MAX_LOCAL_STORAGE_HOURS_THEBIG = 8;
|
|
269
|
+
|
|
258
270
|
const homeOwnerTypeOptions = [
|
|
259
|
-
{ value:
|
|
260
|
-
{ value: exports.
|
|
261
|
-
{ value: exports.
|
|
262
|
-
{ value: exports.HomeOwnerTypes.Tenant, name: 'Tenant' },
|
|
271
|
+
{ value: exports.InsuranceTypes.Home, name: 'Homeowner' },
|
|
272
|
+
{ value: exports.InsuranceTypes.Condo, name: 'Condo Owner' },
|
|
273
|
+
{ value: exports.InsuranceTypes.Tenant, name: 'Tenant' },
|
|
263
274
|
];
|
|
264
|
-
//
|
|
265
275
|
const comprehensiveCoverages = [
|
|
266
276
|
{ value: true, name: 'Yes' },
|
|
267
277
|
{ value: false, name: 'No' },
|
|
268
278
|
];
|
|
269
|
-
// export const collisionCoverage = [
|
|
270
|
-
// { value: true, name: 'Yes' },
|
|
271
|
-
// { value: false, name: 'No' },
|
|
272
|
-
// ];
|
|
273
|
-
//
|
|
274
|
-
// export enum CoverageTypes {
|
|
275
|
-
// Comprehensive = 'comprehensive',
|
|
276
|
-
// Collision = 'collision',
|
|
277
|
-
// Liability = 'liability',
|
|
278
|
-
// }
|
|
279
279
|
|
|
280
280
|
const residentsOptions = [
|
|
281
|
-
{ value: '', name: '-' },
|
|
282
281
|
{ value: '1', name: 'You and your family' },
|
|
283
282
|
{ value: '2', name: 'Your family and another family' },
|
|
284
283
|
{ value: '3', name: 'Your family and two other families' },
|
|
285
|
-
{ value: '
|
|
284
|
+
{ value: 'none', name: 'It is rented out/Used for commercial purposes' },
|
|
286
285
|
];
|
|
287
286
|
const insuredYearsOptions = [
|
|
288
|
-
{ value: '', name: '-' },
|
|
289
287
|
{ value: '0', name: 'Less than 1 year' },
|
|
290
288
|
{ value: '1', name: '1 year' },
|
|
291
289
|
{ value: '2', name: '2 years' },
|
|
@@ -299,8 +297,12 @@ const insuredYearsOptions = [
|
|
|
299
297
|
{ value: '10', name: '10 years' },
|
|
300
298
|
{ value: '11', name: 'More than 10 years' },
|
|
301
299
|
];
|
|
300
|
+
exports.ApplicantListTypes = void 0;
|
|
301
|
+
(function (ApplicantListTypes) {
|
|
302
|
+
ApplicantListTypes["InsuranceCancellation"] = "insuranceCancellationList";
|
|
303
|
+
ApplicantListTypes["InsuranceClaim"] = "insuranceClaimList";
|
|
304
|
+
})(exports.ApplicantListTypes || (exports.ApplicantListTypes = {}));
|
|
302
305
|
const claimTypeOptions = [
|
|
303
|
-
{ value: '', name: '-' },
|
|
304
306
|
{ value: 'personal', name: 'Personal Property Claim' },
|
|
305
307
|
{ value: 'sewer', name: 'Sewer Backup Claim' },
|
|
306
308
|
{ value: 'liability', name: 'Liability Claim' },
|
|
@@ -309,11 +311,6 @@ const claimTypeOptions = [
|
|
|
309
311
|
{ value: 'waterdamage', name: 'Water Damage Claim' },
|
|
310
312
|
{ value: 'other', name: 'Other Type of Claim' },
|
|
311
313
|
];
|
|
312
|
-
exports.ApplicantListTypes = void 0;
|
|
313
|
-
(function (ApplicantListTypes) {
|
|
314
|
-
ApplicantListTypes["InsuranceCancellation"] = "insuranceCancellationList";
|
|
315
|
-
ApplicantListTypes["InsuranceClaim"] = "InsuranceClaimList";
|
|
316
|
-
})(exports.ApplicantListTypes || (exports.ApplicantListTypes = {}));
|
|
317
314
|
|
|
318
315
|
exports.DwellingInfoTypes = void 0;
|
|
319
316
|
(function (DwellingInfoTypes) {
|
|
@@ -323,77 +320,195 @@ exports.DwellingInfoTypes = void 0;
|
|
|
323
320
|
DwellingInfoTypes["Deadbolt"] = "deadbolt";
|
|
324
321
|
})(exports.DwellingInfoTypes || (exports.DwellingInfoTypes = {}));
|
|
325
322
|
const constructionTypeOptions = [
|
|
326
|
-
{ value: '', name: '
|
|
327
|
-
{ value: '
|
|
328
|
-
{ value: 'mansory', name: 'Mansory' },
|
|
323
|
+
{ value: 'wood', name: 'Wood Frame' },
|
|
324
|
+
{ value: 'masonry', name: 'Masonry' },
|
|
329
325
|
{ value: 'brick', name: 'Brick' },
|
|
330
|
-
{ value: '
|
|
326
|
+
{ value: 'fireresistive', name: 'Fire Resistive' },
|
|
331
327
|
{ value: 'other', name: 'Other' },
|
|
332
328
|
];
|
|
333
329
|
const exteriorFinishOptions = [
|
|
334
|
-
{ value: '', name: '-' },
|
|
335
330
|
{ value: 'brick', name: 'Brick' },
|
|
336
331
|
{ value: 'brickveneer', name: 'Brick Veneer' },
|
|
337
332
|
{ value: 'masonryveneer', name: 'Masonry Veneer' },
|
|
333
|
+
{ value: 'fiberglass', name: 'Fiberglass' },
|
|
338
334
|
{ value: 'concrete', name: 'Concrete' },
|
|
339
335
|
{ value: 'logs', name: 'Logs' },
|
|
340
336
|
{ value: 'stone', name: 'Stone' },
|
|
341
337
|
{ value: 'stoneveneer', name: 'Stone Veneer' },
|
|
342
|
-
{ value: '
|
|
343
|
-
{ value: '
|
|
338
|
+
{ value: 'stucco', name: 'Stucco' },
|
|
339
|
+
{ value: 'vinyl', name: 'Siding' },
|
|
340
|
+
{ value: 'wood', name: 'Wood Siding' },
|
|
344
341
|
];
|
|
345
342
|
const garageTypeOptions = [
|
|
346
|
-
{ value: '', name: '
|
|
347
|
-
{ value: '
|
|
348
|
-
{ value: '
|
|
349
|
-
{ value: 'basement', name: 'Basement' },
|
|
343
|
+
{ value: 'attached', name: 'Attached Garage' },
|
|
344
|
+
{ value: 'builtin', name: 'Built-in Garage' },
|
|
345
|
+
{ value: 'basement', name: 'Basement Garage' },
|
|
350
346
|
{ value: 'carport', name: 'Carport' },
|
|
351
347
|
{ value: 'none', name: 'None' },
|
|
352
348
|
];
|
|
353
|
-
const
|
|
354
|
-
{ value: '', name: '-' },
|
|
349
|
+
const homeBuildingStructureOptions = [
|
|
355
350
|
{ value: 'detached', name: 'Detached' },
|
|
356
|
-
{ value: '
|
|
351
|
+
{ value: 'endrow', name: 'Townhouse - End of Row' },
|
|
352
|
+
{ value: 'inrow', name: 'Townhouse - Middle of Row' },
|
|
353
|
+
{ value: 'semidetached', name: 'Semi Detached' },
|
|
354
|
+
{ value: 'duplex', name: 'Duplex' },
|
|
355
|
+
{ value: 'triplex', name: 'Triplex' },
|
|
356
|
+
];
|
|
357
|
+
const condoBuildingStructureOptions = [
|
|
358
|
+
{ value: 'highrise', name: 'High Rise' },
|
|
359
|
+
{ value: 'lowrise', name: 'Low Rise' },
|
|
360
|
+
{ value: 'townhouse', name: 'Townhouse' },
|
|
361
|
+
];
|
|
362
|
+
const tenantBuildingStructureOptions = [
|
|
357
363
|
{ value: 'highrise', name: 'High Rise' },
|
|
358
364
|
{ value: 'lowrise', name: 'Low Rise' },
|
|
359
|
-
{ value: 'basement', name: 'Basement' },
|
|
360
|
-
{ value: '
|
|
361
|
-
{ value: '
|
|
365
|
+
{ value: 'basement', name: 'Basement Apartment' },
|
|
366
|
+
{ value: 'townhouse', name: 'Townhouse' },
|
|
367
|
+
{ value: 'detached', name: 'Detached' },
|
|
362
368
|
{ value: 'duplex', name: 'Duplex' },
|
|
363
369
|
{ value: 'triplex', name: 'Triplex' },
|
|
364
370
|
];
|
|
365
371
|
const fireHallDistanceOptions = [
|
|
366
|
-
{ value: '', name: '-' },
|
|
367
372
|
{ value: '5', name: 'Within 5km' },
|
|
368
373
|
{ value: '8', name: 'Within 8km' },
|
|
369
374
|
{ value: '13', name: 'Within 13km' },
|
|
370
375
|
{ value: '16', name: 'Over 13km' },
|
|
371
376
|
];
|
|
372
377
|
const fireHydrantDistanceOptions = [
|
|
373
|
-
{ value: '', name: '-' },
|
|
374
378
|
{ value: '150', name: 'Within 150m' },
|
|
375
379
|
{ value: '300', name: 'Within 300m' },
|
|
376
380
|
{ value: '301', name: 'Over 300m' },
|
|
377
381
|
];
|
|
378
|
-
const
|
|
379
|
-
{ value: '', name: '
|
|
380
|
-
{ value: 'naturalgas', name: 'Natural Gas' },
|
|
382
|
+
const primaryHeatingTypeOptions = [
|
|
383
|
+
{ value: 'naturalgas', name: 'Natural Gas Forced Air' },
|
|
381
384
|
{ value: 'electric', name: 'Electric' },
|
|
382
385
|
{ value: 'wood', name: 'Wood' },
|
|
383
386
|
{ value: 'water', name: 'Water' },
|
|
384
387
|
{ value: 'geothermal', name: 'Geothermal' },
|
|
385
388
|
{ value: 'radiant', name: 'Radiant' },
|
|
386
389
|
{ value: 'oil', name: 'Oil' },
|
|
390
|
+
{ value: 'none', name: 'None' },
|
|
391
|
+
{ value: 'unknown', name: 'Unknown' },
|
|
392
|
+
];
|
|
393
|
+
const auxHeatingTypeOptions = [
|
|
394
|
+
{ value: 'electric', name: 'Electric' },
|
|
387
395
|
{ value: 'fireplace', name: 'Fireplace' },
|
|
388
396
|
{ value: 'woodstove', name: 'Wood Stove' },
|
|
389
397
|
{ value: 'woodfurnace', name: 'Wood Furnace' },
|
|
390
398
|
{ value: 'pelletstove', name: 'Pallet Stove' },
|
|
399
|
+
{ value: 'oil', name: 'Oil' },
|
|
391
400
|
{ value: 'none', name: 'None' },
|
|
392
401
|
{ value: 'unknown', name: 'Unknown' },
|
|
393
402
|
];
|
|
403
|
+
const homeCoverageOptions = [
|
|
404
|
+
{ name: '$500', value: '500' },
|
|
405
|
+
{ name: '$1,000', value: '1000' },
|
|
406
|
+
{ name: '$1,500', value: '1500' },
|
|
407
|
+
];
|
|
408
|
+
const homeLiabilityOptions = [
|
|
409
|
+
{ name: '$1,000,000', value: '1000000' },
|
|
410
|
+
{ name: '$2,000,000', value: '2000000' },
|
|
411
|
+
];
|
|
412
|
+
const ppOptions = [
|
|
413
|
+
{ name: '$30,000', value: '30000' },
|
|
414
|
+
{ name: '$40,000', value: '40000' },
|
|
415
|
+
{ name: '$50,000', value: '50000' },
|
|
416
|
+
{ name: '$60,000', value: '60000' },
|
|
417
|
+
{ name: '$70,000', value: '70000' },
|
|
418
|
+
{ name: '$80,000', value: '80000' },
|
|
419
|
+
{ name: '$90,000', value: '90000' },
|
|
420
|
+
{ name: '$100,000', value: '100000' },
|
|
421
|
+
];
|
|
422
|
+
|
|
423
|
+
const lifeProvinceOptions = [
|
|
424
|
+
{ value: '1', name: 'Alberta' },
|
|
425
|
+
{ value: '2', name: 'British Columbia' },
|
|
426
|
+
{ value: '3', name: 'Manitoba' },
|
|
427
|
+
{ value: '4', name: 'New Brunswick' },
|
|
428
|
+
{ value: '5', name: 'Newfoundland and Labrador' },
|
|
429
|
+
{ value: '6', name: 'Nova Scotia' },
|
|
430
|
+
{ value: '7', name: 'Northwest Territories' },
|
|
431
|
+
{ value: '8', name: 'Nunavut' },
|
|
432
|
+
{ value: '9', name: 'Ontario' },
|
|
433
|
+
{ value: '10', name: 'Prince Edward Island' },
|
|
434
|
+
{ value: '11', name: 'Quebec' },
|
|
435
|
+
{ value: '12', name: 'Saskatchewan' },
|
|
436
|
+
{ value: '13', name: 'Yukon' },
|
|
437
|
+
];
|
|
438
|
+
const lifeInsuranceTypeOptions = [
|
|
439
|
+
{ value: '3', name: '10 Year Level Term' },
|
|
440
|
+
{ value: '4', name: '15 Year Level Term' },
|
|
441
|
+
{ value: '5', name: '20 Year Level Term' },
|
|
442
|
+
{ value: '6', name: '25 Year Level Term' },
|
|
443
|
+
{ value: '7', name: '30 Year Level Term' },
|
|
444
|
+
{ value: '9', name: '35 Year Level Term' },
|
|
445
|
+
{ value: '0', name: '40 Year Level Term' },
|
|
446
|
+
{ value: 'A', name: 'Level Term to age 65' },
|
|
447
|
+
{ value: 'B', name: 'Level Term to age 70' },
|
|
448
|
+
{ value: 'C', name: 'Level Term to age 75' },
|
|
449
|
+
{ value: 'W', name: 'Level Term to age 80' },
|
|
450
|
+
{ value: 'F', name: 'Other Term' },
|
|
451
|
+
{ value: 'Z:357:30', name: '10, 20, 30 Year Term' },
|
|
452
|
+
{ value: 'Z:3456790ABCW', name: 'All Level Term Product Categories' },
|
|
453
|
+
{ value: 'G', name: 'Decreasing Term' },
|
|
454
|
+
{ value: 'H', name: 'Whole Life Guaranteed Life Pay' },
|
|
455
|
+
{ value: 'I', name: 'Whole Life Guaranteed Pay to 65' },
|
|
456
|
+
{ value: 'T', name: 'Whole Life Guaranteed 25 Pay' },
|
|
457
|
+
{ value: 'J', name: 'Whole Life Guaranteed 20 Pay' },
|
|
458
|
+
{ value: 'K', name: 'Whole Life Guaranteed 15 Pay' },
|
|
459
|
+
{ value: 'S', name: 'Whole Life Guaranteed 10 Pay' },
|
|
460
|
+
{ value: 'L', name: 'U/L T100 - Minimum Premium' },
|
|
461
|
+
{ value: 'U', name: 'U/L T100 - Minimum Premium - Pay to 65' },
|
|
462
|
+
{ value: 'M', name: 'U/L T100 - Minimum Premium - 20 Pay' },
|
|
463
|
+
{ value: 'N', name: 'U/L T100 - Minimum Premium - 15 Pay' },
|
|
464
|
+
{ value: 'O', name: 'U/L T100 - Minimum Premium - 10 Pay' },
|
|
465
|
+
{ value: 'P', name: 'Term to 100 Guaranteed Life Pay' },
|
|
466
|
+
{ value: 'R', name: 'Term to 100 Guaranteed 20 Pay' },
|
|
467
|
+
];
|
|
468
|
+
const lifeCoverageOptions = [
|
|
469
|
+
{ value: '10000', name: '$10,000' },
|
|
470
|
+
{ value: '25000', name: '$25,000' },
|
|
471
|
+
{ value: '50000', name: '$50,000' },
|
|
472
|
+
{ value: '75000', name: '$75,000' },
|
|
473
|
+
{ value: '100000', name: '$100,000' },
|
|
474
|
+
{ value: '125000', name: '$125,000' },
|
|
475
|
+
{ value: '150000', name: '$150,000' },
|
|
476
|
+
{ value: '175000', name: '$175,000' },
|
|
477
|
+
{ value: '200000', name: '$200,000' },
|
|
478
|
+
{ value: '225000', name: '$225,000' },
|
|
479
|
+
{ value: '250000', name: '$250,000' },
|
|
480
|
+
{ value: '300000', name: '$300,000' },
|
|
481
|
+
{ value: '350000', name: '$350,000' },
|
|
482
|
+
{ value: '400000', name: '$400,000' },
|
|
483
|
+
{ value: '450000', name: '$450,000' },
|
|
484
|
+
{ value: '500000', name: '$500,000' },
|
|
485
|
+
{ value: '550000', name: '$550,000' },
|
|
486
|
+
{ value: '600000', name: '$600,000' },
|
|
487
|
+
{ value: '650000', name: '$650,000' },
|
|
488
|
+
{ value: '700000', name: '$700,000' },
|
|
489
|
+
{ value: '750000', name: '$750,000' },
|
|
490
|
+
{ value: '800000', name: '$800,000' },
|
|
491
|
+
{ value: '900000', name: '$900,000' },
|
|
492
|
+
{ value: '1000000', name: '$1,000,000' },
|
|
493
|
+
{ value: '1100000', name: '$1,100,000' },
|
|
494
|
+
{ value: '1250000', name: '$1,250,000' },
|
|
495
|
+
{ value: '1500000', name: '$1,500,000' },
|
|
496
|
+
{ value: '1750000', name: '$1,750,000' },
|
|
497
|
+
{ value: '2000000', name: '$2,000,000' },
|
|
498
|
+
{ value: '2500000', name: '$2,500,000' },
|
|
499
|
+
{ value: '3000000', name: '$3,000,000' },
|
|
500
|
+
{ value: '5000000', name: '$5,000,000' },
|
|
501
|
+
{ value: '6000000', name: '$6,000,000' },
|
|
502
|
+
{ value: '7000000', name: '$7,000,000' },
|
|
503
|
+
{ value: '8000000', name: '$8,000,000' },
|
|
504
|
+
{ value: '9000000', name: '$9,000,000' },
|
|
505
|
+
{ value: '10000000', name: '$10,000,000' },
|
|
506
|
+
];
|
|
394
507
|
|
|
395
508
|
const yesNoOptions = [{ name: 'Yes', value: true }, { name: 'No', value: false }];
|
|
396
|
-
const
|
|
509
|
+
const smokerOptions = [{ name: 'Non-Smoker', value: false }, { name: 'Smoker', value: true }];
|
|
510
|
+
|
|
511
|
+
const supportedProvinceCodes = ['AB', 'ON', 'NS', 'NF', 'NB'];
|
|
397
512
|
|
|
398
513
|
exports.DateTypes = void 0;
|
|
399
514
|
(function (DateTypes) {
|
|
@@ -484,6 +599,7 @@ exports.DeviceTypes = void 0;
|
|
|
484
599
|
(function (DeviceTypes) {
|
|
485
600
|
DeviceTypes["Desktop"] = "desktop";
|
|
486
601
|
DeviceTypes["Mobile"] = "mobile";
|
|
602
|
+
DeviceTypes["Tablet"] = "tablet";
|
|
487
603
|
})(exports.DeviceTypes || (exports.DeviceTypes = {}));
|
|
488
604
|
const DeviceTypeWidthList = [
|
|
489
605
|
{
|
|
@@ -491,9 +607,13 @@ const DeviceTypeWidthList = [
|
|
|
491
607
|
minWidth: 0,
|
|
492
608
|
},
|
|
493
609
|
{
|
|
494
|
-
type: exports.DeviceTypes.
|
|
610
|
+
type: exports.DeviceTypes.Tablet,
|
|
495
611
|
minWidth: 601,
|
|
496
612
|
},
|
|
613
|
+
{
|
|
614
|
+
type: exports.DeviceTypes.Desktop,
|
|
615
|
+
minWidth: 861,
|
|
616
|
+
},
|
|
497
617
|
];
|
|
498
618
|
exports.ScreenBPTypes = void 0;
|
|
499
619
|
(function (ScreenBPTypes) {
|
|
@@ -531,21 +651,6 @@ const ScreenBPList = [
|
|
|
531
651
|
},
|
|
532
652
|
];
|
|
533
653
|
|
|
534
|
-
exports.AppTypes = void 0;
|
|
535
|
-
(function (AppTypes) {
|
|
536
|
-
AppTypes["MyChoice"] = "MyChoice";
|
|
537
|
-
AppTypes["Partner"] = "Partner";
|
|
538
|
-
AppTypes["TheBig"] = "TheBig";
|
|
539
|
-
})(exports.AppTypes || (exports.AppTypes = {}));
|
|
540
|
-
exports.InsuranceTypes = void 0;
|
|
541
|
-
(function (InsuranceTypes) {
|
|
542
|
-
InsuranceTypes["Car"] = "car";
|
|
543
|
-
InsuranceTypes["Life"] = "life";
|
|
544
|
-
InsuranceTypes["Home"] = "home";
|
|
545
|
-
})(exports.InsuranceTypes || (exports.InsuranceTypes = {}));
|
|
546
|
-
const defaultLocalIndex = 'insurance';
|
|
547
|
-
const MAX_LOCAL_STORAGE_HOURS = 168;
|
|
548
|
-
|
|
549
654
|
const API_ROOT = process.env.REACT_APP_API_BASE_URL ? process.env.REACT_APP_API_BASE_URL.toString() : '';
|
|
550
655
|
const API_AUTH = {
|
|
551
656
|
POST_SIGN_IN: `${API_ROOT}login/`,
|
|
@@ -573,8 +678,12 @@ const API_FORM_CAR = {
|
|
|
573
678
|
};
|
|
574
679
|
const API_FORM_HOME = {
|
|
575
680
|
GET_POSTAL: `${API_ROOT}postal/home/`,
|
|
681
|
+
GET_PLACE: `${API_ROOT}homequote/info/`,
|
|
576
682
|
POST_QUOTE_DATA: `${API_ROOT}homequote/`,
|
|
577
683
|
};
|
|
684
|
+
const API_FORM_LIFE = {
|
|
685
|
+
POST_QUOTE_DATA: `${API_ROOT}lifequote/`,
|
|
686
|
+
};
|
|
578
687
|
exports.HttpRequestHeaderTypes = void 0;
|
|
579
688
|
(function (HttpRequestHeaderTypes) {
|
|
580
689
|
HttpRequestHeaderTypes["Json"] = "JSON";
|
|
@@ -601,6 +710,7 @@ exports.ModalTypes = void 0;
|
|
|
601
710
|
ModalTypes["MessageModal"] = "MessageModal";
|
|
602
711
|
ModalTypes["ConfirmModal"] = "ConfirmModal";
|
|
603
712
|
ModalTypes["PostalModal"] = "PostalModal";
|
|
713
|
+
ModalTypes["AddressModal"] = "AddressModal";
|
|
604
714
|
ModalTypes["FinaleModal"] = "FinaleModal";
|
|
605
715
|
})(exports.ModalTypes || (exports.ModalTypes = {}));
|
|
606
716
|
|
|
@@ -688,23 +798,19 @@ IconDelete.defaultProps = {
|
|
|
688
798
|
|
|
689
799
|
const IconTooltip = (props) => {
|
|
690
800
|
const [isHover, setIsHover] = React.useState(false);
|
|
691
|
-
const { width, height, className, } = props;
|
|
801
|
+
const { width, height, className, color, } = props;
|
|
692
802
|
const handleEvent = (type) => () => {
|
|
693
|
-
// const element = document.getElementById(tooltipId as string);
|
|
694
803
|
if (type === 'mouseOver') {
|
|
695
804
|
if (!isHover) {
|
|
696
805
|
setIsHover(true);
|
|
697
|
-
// element?.classList.add('show');
|
|
698
806
|
}
|
|
699
807
|
}
|
|
700
808
|
if (type === 'mouseLeave') {
|
|
701
809
|
setIsHover(false);
|
|
702
|
-
// element?.classList.remove('show');
|
|
703
810
|
}
|
|
704
811
|
};
|
|
705
|
-
return (jsxRuntime.jsxs("svg", { className: className, onMouseOver: handleEvent('mouseOver'), onMouseLeave: handleEvent('mouseLeave'), version: "1.1", xmlns: "http://www.w3.org/2000/svg", x: "0px", y: "0px", viewBox: "0 0 18 18", style: { width, height }, children: [!isHover
|
|
706
|
-
|
|
707
|
-
&& jsxRuntime.jsx("circle", { fill: "var(--color-secondary)", cx: "9", cy: "9", r: "9" }), jsxRuntime.jsxs("g", { fill: isHover ? '#FFF' : 'var(--color-secondary)', children: [jsxRuntime.jsx("path", { d: "M9.8,13.8c0,0.4-0.3,0.8-0.8,0.8s-0.8-0.3-0.8-0.8S8.6,13,9,13S9.8,13.3,9.8,13.8z" }), jsxRuntime.jsx("path", { d: "M9,11.6c-0.3,0-0.6-0.3-0.6-0.6v-0.8c0-0.7,0.5-1.4,1.1-1.6c0.8-0.3,1.4-1.1,\n 1.5-2 c0-1.1-1-2-2.1-2c-1.1,0-2,0.9-2,2c0,0.3-0.3,0.6-0.6,0.5C6.1,7.2,5.8,7,5.8,\n 6.7c0-1.8,1.4-3.2,3.1-3.2c1.8,0,3.2,1.4,3.2,3.1 c0,0,0,0.1,0,0.1c-0.1,1.4-1,\n 2.6-2.2,3C9.7,9.8,9.6,10,9.6,10.2V11C9.6,11.3,9.3,11.6,9,11.6C9,11.6,9,11.6,9,11.6z" })] }), jsxRuntime.jsx("circle", { fill: "transparent", cx: "9", cy: "9", r: "9" })] }));
|
|
812
|
+
return (jsxRuntime.jsxs("svg", { className: className, onMouseOver: handleEvent('mouseOver'), onMouseLeave: handleEvent('mouseLeave'), version: "1.1", xmlns: "http://www.w3.org/2000/svg", x: "0px", y: "0px", viewBox: "0 0 18 18", style: { width, height }, children: [!isHover ? (jsxRuntime.jsx("path", { fill: color || 'var(--color-secondary)', d: "M9,18c-5,0-9-4-9-9c0-5,4-9,9-9c5,0,9,4,9,\n 9C18,14,14,18,9,18z M9,1C4.6,1,1,4.6,1,9s3.6,8,8,8s8-3.6,8-8 S13.4,1,9,1z" }))
|
|
813
|
+
: jsxRuntime.jsx("circle", { fill: color || 'var(--color-secondary)', cx: "9", cy: "9", r: "9" }), jsxRuntime.jsxs("g", { fill: isHover ? '#FFF' : color || 'var(--color-secondary)', children: [jsxRuntime.jsx("path", { d: "M9.8,13.8c0,0.4-0.3,0.8-0.8,0.8s-0.8-0.3-0.8-0.8S8.6,13,9,13S9.8,13.3,9.8,13.8z" }), jsxRuntime.jsx("path", { d: "M9,11.6c-0.3,0-0.6-0.3-0.6-0.6v-0.8c0-0.7,0.5-1.4,1.1-1.6c0.8-0.3,1.4-1.1,\n 1.5-2 c0-1.1-1-2-2.1-2c-1.1,0-2,0.9-2,2c0,0.3-0.3,0.6-0.6,0.5C6.1,7.2,5.8,7,5.8,\n 6.7c0-1.8,1.4-3.2,3.1-3.2c1.8,0,3.2,1.4,3.2,3.1 c0,0,0,0.1,0,0.1c-0.1,1.4-1,\n 2.6-2.2,3C9.7,9.8,9.6,10,9.6,10.2V11C9.6,11.3,9.3,11.6,9,11.6C9,11.6,9,11.6,9,11.6z" })] }), jsxRuntime.jsx("circle", { fill: "transparent", cx: "9", cy: "9", r: "9" })] }));
|
|
708
814
|
};
|
|
709
815
|
IconTooltip.defaultProps = {
|
|
710
816
|
className: '',
|
|
@@ -728,6 +834,16 @@ IconDecline.defaultProps = {
|
|
|
728
834
|
height: '1.25rem',
|
|
729
835
|
};
|
|
730
836
|
|
|
837
|
+
const IconClock = (props) => {
|
|
838
|
+
const { width, height, className, } = props;
|
|
839
|
+
return (jsxRuntime.jsx("svg", { className: className, version: "1.1", xmlns: "http://www.w3.org/2000/svg", x: "0px", y: "0px", viewBox: "0 0 20 20", style: { width, height }, children: jsxRuntime.jsxs("g", { id: "Group_2002", "data-name": "Group 2002", transform: "translate(-86 -511)", children: [jsxRuntime.jsxs("g", { id: "Ellipse_55", "data-name": "Ellipse 55", transform: "translate(86 511)", fill: "none", stroke: "#9ED4DB", strokeWidth: "1", children: [jsxRuntime.jsx("circle", { cx: "10", cy: "10", r: "10", stroke: "none" }), jsxRuntime.jsx("circle", { cx: "10", cy: "10", r: "9.5", fill: "none" })] }), jsxRuntime.jsx("path", { id: "Path_362", "data-name": "Path 362", d: "M-20448-18259.338v6.816l3.4,2.408", transform: "translate(20544 18774.439)", fill: "none", stroke: "#9ED4DB", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1" })] }) }));
|
|
840
|
+
};
|
|
841
|
+
IconClock.defaultProps = {
|
|
842
|
+
className: '',
|
|
843
|
+
width: '1.25rem',
|
|
844
|
+
height: '1.25rem',
|
|
845
|
+
};
|
|
846
|
+
|
|
731
847
|
const ButtonBase = (props) => {
|
|
732
848
|
const { color, category, className, variant, size, label, type, onClick, children, } = props;
|
|
733
849
|
const buttonVariant = variant === exports.ButtonVariantTypes.Rectangle ? variant : `button-${variant}-${size}`;
|
|
@@ -1068,6 +1184,73 @@ const formatPostalCode = (str = '') => (str && str.replace(/[^a-zA-Z0-9]/g, '').
|
|
|
1068
1184
|
.toUpperCase());
|
|
1069
1185
|
const postalCodeFormat = (postalCode = '') => postalCode && postalCode.replace(/\s/g, '').substr(0, 6);
|
|
1070
1186
|
const numberWithCommas = (value) => value.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
|
|
1187
|
+
const getLicenceTypeOptions = (options, optionValues, disabled) => (options.map((option) => {
|
|
1188
|
+
const newOption = option;
|
|
1189
|
+
if (optionValues.includes(option.value)) {
|
|
1190
|
+
newOption.disabled = disabled;
|
|
1191
|
+
}
|
|
1192
|
+
return newOption;
|
|
1193
|
+
}));
|
|
1194
|
+
const checkDateIsSpecial = (defaultMinDate, specialDate) => compareDates(specialDate, defaultMinDate) >= 0;
|
|
1195
|
+
const getLicenceMinDate = (licenceType, defaultMinDate, config) => {
|
|
1196
|
+
if (defaultMinDate) {
|
|
1197
|
+
if (licenceType === exports.DriverLicenceTypes.G1) {
|
|
1198
|
+
return addMonthsToDate(defaultMinDate, config.minDates.g1.minMonth);
|
|
1199
|
+
}
|
|
1200
|
+
if (licenceType === exports.DriverLicenceTypes.G) {
|
|
1201
|
+
if (checkDateIsSpecial(defaultMinDate, config.minDates.g.specialDate)) {
|
|
1202
|
+
return defaultMinDate;
|
|
1203
|
+
}
|
|
1204
|
+
return addMonthsToDate(defaultMinDate, config.minDates.g.minMonth);
|
|
1205
|
+
}
|
|
1206
|
+
if (licenceType === exports.DriverLicenceTypes.G2) {
|
|
1207
|
+
return addMonthsToDate(defaultMinDate, config.minDates.g2.minMonth);
|
|
1208
|
+
}
|
|
1209
|
+
}
|
|
1210
|
+
return '';
|
|
1211
|
+
};
|
|
1212
|
+
const getLicenceMaxDate = (licenceType, minDate, config) => {
|
|
1213
|
+
let maxDate = '';
|
|
1214
|
+
const { minDates: { g: { specialDate } } } = config;
|
|
1215
|
+
if (licenceType === exports.DriverLicenceTypes.G
|
|
1216
|
+
&& compareDates(specialDate, minDate) >= 0) {
|
|
1217
|
+
maxDate = config.minDates.g.specialDate;
|
|
1218
|
+
}
|
|
1219
|
+
return getFormattedDate(maxDate, 'yyyy-MM-dd');
|
|
1220
|
+
};
|
|
1221
|
+
const getDisabledLicenceTypes = (gBlock, g2Block, g1Block) => {
|
|
1222
|
+
const disabledLicenceTypes = [];
|
|
1223
|
+
if (gBlock) {
|
|
1224
|
+
disabledLicenceTypes.push(exports.DriverLicenceTypes.G);
|
|
1225
|
+
}
|
|
1226
|
+
if (g1Block) {
|
|
1227
|
+
disabledLicenceTypes.push(exports.DriverLicenceTypes.G1);
|
|
1228
|
+
}
|
|
1229
|
+
if (g2Block) {
|
|
1230
|
+
disabledLicenceTypes.push(exports.DriverLicenceTypes.G2);
|
|
1231
|
+
}
|
|
1232
|
+
return disabledLicenceTypes;
|
|
1233
|
+
};
|
|
1234
|
+
const getInsuranceYearsOptions = (maxValue) => (insuredYearsOptions.filter((option) => +option.value <= +maxValue));
|
|
1235
|
+
const getInsuranceType = () => {
|
|
1236
|
+
const pathParts = window.location.pathname.split('/');
|
|
1237
|
+
if (pathParts.includes('car')) {
|
|
1238
|
+
return exports.InsuranceTypes.Car;
|
|
1239
|
+
}
|
|
1240
|
+
if (pathParts.includes('home')) {
|
|
1241
|
+
return exports.InsuranceTypes.Home;
|
|
1242
|
+
}
|
|
1243
|
+
if (pathParts.includes('condo')) {
|
|
1244
|
+
return exports.InsuranceTypes.Condo;
|
|
1245
|
+
}
|
|
1246
|
+
if (pathParts.includes('tenant')) {
|
|
1247
|
+
return exports.InsuranceTypes.Tenant;
|
|
1248
|
+
}
|
|
1249
|
+
if (pathParts.includes('life')) {
|
|
1250
|
+
return exports.InsuranceTypes.Life;
|
|
1251
|
+
}
|
|
1252
|
+
return exports.InsuranceTypes.Car;
|
|
1253
|
+
};
|
|
1071
1254
|
|
|
1072
1255
|
const useEffectOnce = (effect) => {
|
|
1073
1256
|
const destroyFunc = React.useRef();
|
|
@@ -1189,7 +1372,7 @@ TitleForm.defaultProps = {
|
|
|
1189
1372
|
};
|
|
1190
1373
|
|
|
1191
1374
|
const InputForm = React.memo((props) => {
|
|
1192
|
-
const { size, className, name, type, defaultValue, onChange, placeholder, disabled, minValue, maxValue, } = props;
|
|
1375
|
+
const { size, className, name, type, defaultValue, onChange, placeholder, disabled, minValue, maxValue, inputRef, error, } = props;
|
|
1193
1376
|
const [isRender, setIsRender] = React.useState(false);
|
|
1194
1377
|
const [value, setValue,] = React.useReducer(inputValueReducer, defaultValue);
|
|
1195
1378
|
React.useEffect(() => {
|
|
@@ -1213,7 +1396,7 @@ const InputForm = React.memo((props) => {
|
|
|
1213
1396
|
}
|
|
1214
1397
|
}, []);
|
|
1215
1398
|
if (isRender) {
|
|
1216
|
-
return (jsxRuntime.jsx("input", { className:
|
|
1399
|
+
return (jsxRuntime.jsx("input", { className: ` ${className} ${size} ${disabled ? 'disabled' : ''} ${error ? 'error' : ''}`, type: type, name: name, defaultValue: defaultValue, onChange: handleChange, placeholder: placeholder, disabled: disabled, min: minValue, max: maxValue, ref: inputRef }));
|
|
1217
1400
|
}
|
|
1218
1401
|
return jsxRuntime.jsx("div", { className: `${size} ${disabled ? 'disabled' : ''} ${className}` });
|
|
1219
1402
|
}, (prevProps, nextProps) => {
|
|
@@ -1222,7 +1405,8 @@ const InputForm = React.memo((props) => {
|
|
|
1222
1405
|
|| nextProps.defaultValue !== nextProps.maxValue;
|
|
1223
1406
|
const testMinValue = prevProps.minValue === nextProps.minValue;
|
|
1224
1407
|
const testMaxValue = prevProps.maxValue === nextProps.maxValue;
|
|
1225
|
-
|
|
1408
|
+
const errorValue = prevProps.error === nextProps.error;
|
|
1409
|
+
return !(!testDefaultValue || !testMinValue || !testMaxValue || !minMaxValue || !errorValue);
|
|
1226
1410
|
});
|
|
1227
1411
|
InputForm.defaultProps = {
|
|
1228
1412
|
size: exports.SizeTypes.Large,
|
|
@@ -1235,7 +1419,7 @@ InputForm.defaultProps = {
|
|
|
1235
1419
|
};
|
|
1236
1420
|
|
|
1237
1421
|
const InputFormPhone = React__default["default"].memo((props) => {
|
|
1238
|
-
const { size, className, disabled, defaultValue, name, onChange, placeholder, } = props;
|
|
1422
|
+
const { size, className, disabled, defaultValue, name, onChange, placeholder, error, } = props;
|
|
1239
1423
|
const [value, setValue,] = React.useReducer(inputValueReducer, defaultValue);
|
|
1240
1424
|
const handleChange = React.useCallback((phoneNumber) => {
|
|
1241
1425
|
setValue({
|
|
@@ -1250,11 +1434,11 @@ const InputFormPhone = React__default["default"].memo((props) => {
|
|
|
1250
1434
|
}
|
|
1251
1435
|
}, []);
|
|
1252
1436
|
return (jsxRuntime.jsx(ReactPhoneInput__default["default"], { buttonClass: "dropdown-button", inputProps: {
|
|
1253
|
-
className: `input-form-phone ${size} ${disabled ? 'disabled' : ''} ${className}`,
|
|
1437
|
+
className: `input-form-phone ${size} ${disabled ? 'disabled' : ''} ${className} ${error ? 'error' : ''}`,
|
|
1254
1438
|
name,
|
|
1255
1439
|
placeholder: placeholder || '(855) 325-8444',
|
|
1256
1440
|
}, country: "ca", value: value, onlyCountries: ['ca'], disableDropdown: true, disableCountryCode: true, onChange: handleChange, autoFormat: true }));
|
|
1257
|
-
}, (prevProps, nextProps) => prevProps.defaultValue === nextProps.defaultValue);
|
|
1441
|
+
}, (prevProps, nextProps) => (prevProps.defaultValue === nextProps.defaultValue || prevProps.error === nextProps.error));
|
|
1258
1442
|
InputFormPhone.defaultProps = {
|
|
1259
1443
|
size: exports.SizeTypes.Large,
|
|
1260
1444
|
type: exports.InputTypes.Text,
|
|
@@ -1265,16 +1449,11 @@ InputFormPhone.defaultProps = {
|
|
|
1265
1449
|
error: false,
|
|
1266
1450
|
};
|
|
1267
1451
|
|
|
1268
|
-
const
|
|
1452
|
+
const defaultManipulateInput = (value) => value;
|
|
1269
1453
|
const InputFormLicence = React__default["default"].memo((props) => {
|
|
1270
|
-
const { className, maxLength, name, onChange, placeholder, defaultValue, disabled, size, } = props;
|
|
1454
|
+
const { className, maxLength, name, onChange, placeholder, defaultValue, disabled, size, manipulateInput, } = props;
|
|
1455
|
+
const returnValue = (manipulateInput || defaultManipulateInput);
|
|
1271
1456
|
const [inputValue, setInputValue,] = React.useReducer(inputValueReducer, returnValue(defaultValue));
|
|
1272
|
-
// useEffect(() => {
|
|
1273
|
-
// props.onChange({ target: { value: inputValue, name: props.name } }, props.rootName);
|
|
1274
|
-
// }, [inputValue]);
|
|
1275
|
-
// const handleChange = (event) => {
|
|
1276
|
-
// setInputValue(returnValue(event.target.value, props.maxLength));
|
|
1277
|
-
// }
|
|
1278
1457
|
const handleChange = (event) => {
|
|
1279
1458
|
setInputValue({
|
|
1280
1459
|
type: InputValueActionTypes.Set,
|
|
@@ -1358,15 +1537,20 @@ CheckboxForm.defaultProps = {
|
|
|
1358
1537
|
disabled: false,
|
|
1359
1538
|
};
|
|
1360
1539
|
|
|
1361
|
-
const Step = ({ item, index, className, itemsCount, isMobile, }) => (jsxRuntime.jsxs("li", { className: `navigation-step ${className}`, value: index, children: [item?.icon, jsxRuntime.jsxs("div", { className: "step-label", children: [jsxRuntime.jsx("span", { className: "step-name", children: isMobile ?
|
|
1540
|
+
const Step = ({ item, index, className, itemsCount, isMobile, }) => (jsxRuntime.jsxs("li", { className: `navigation-step ${className}`, value: index, children: [item?.icon, jsxRuntime.jsxs("div", { className: "step-label", children: [jsxRuntime.jsx("span", { className: "step-name", children: isMobile ? `Step ${index + 1} / ${itemsCount}` : `Step ${index + 1}` }), jsxRuntime.jsx("span", { className: "step-title", children: item?.title })] }), !isMobile && jsxRuntime.jsx("span", { className: `navigation-dot ${className}` })] }));
|
|
1362
1541
|
Step.defaultProps = {
|
|
1363
1542
|
className: '',
|
|
1364
1543
|
isMobile: false,
|
|
1365
1544
|
};
|
|
1545
|
+
const MychoiceStep = ({ item, index, className, }) => (jsxRuntime.jsxs("li", { className: `navigation-step mychoice ${className}`, value: index, children: [jsxRuntime.jsx("span", { className: `navigation-dot ${className} mychoice` }), jsxRuntime.jsx("span", { className: "step-title", children: item?.mychoiceTitle })] }));
|
|
1546
|
+
MychoiceStep.defaultProps = {
|
|
1547
|
+
className: '',
|
|
1548
|
+
isMobile: false,
|
|
1549
|
+
};
|
|
1366
1550
|
|
|
1367
|
-
const SdkTooltip = ({ description }) => (jsxRuntime.jsx(ReactTooltip__default["default"], { placement: "left", overlay: jsxRuntime.jsx("
|
|
1551
|
+
const SdkTooltip = ({ description, color = '' }) => (jsxRuntime.jsx(ReactTooltip__default["default"], { placement: "left", overlay: jsxRuntime.jsx("div", { className: "tooltip-text", children: description }), overlayClassName: "tooltip-container", defaultVisible: false, destroyTooltipOnHide: true, children: jsxRuntime.jsx("div", { children: jsxRuntime.jsx(IconTooltip, { className: "tooltip-icon", color: color }) }) }));
|
|
1368
1552
|
|
|
1369
|
-
const TooltipForm = ({ id, description }) => (jsxRuntime.jsx(SdkTooltip, { id: id, description: description }));
|
|
1553
|
+
const TooltipForm = ({ id, description, color = '' }) => (jsxRuntime.jsx(SdkTooltip, { id: id, description: description, color: color }));
|
|
1370
1554
|
|
|
1371
1555
|
const HeaderNavGroup = ({ className, navItems, isExternal = false, }) => (jsxRuntime.jsx(jsxRuntime.Fragment, { children: navItems.map((navItem, index) => {
|
|
1372
1556
|
const isLogin = navItem.name?.toUpperCase() === 'LOGIN';
|
|
@@ -1375,7 +1559,7 @@ const HeaderNavGroup = ({ className, navItems, isExternal = false, }) => (jsxRun
|
|
|
1375
1559
|
if (!isExternal) {
|
|
1376
1560
|
return (jsxRuntime.jsx(reactRouterDom.NavLink, { className: `${className} ${isLogin ? 'login' : 'nav-link'} ${isSignup ? 'signup' : ''} ${isLogout ? 'logout' : ''}`, to: isExternal ? { pathname: navItem.link } : navItem.link, rel: "noreferrer", children: navItem.name }, `header-nav-${index}`));
|
|
1377
1561
|
}
|
|
1378
|
-
return (jsxRuntime.jsx("a", { className: `${className} ${isLogin ? 'login' : 'nav-link'} ${isSignup ? 'signup' : ''} ${isLogout ? 'logout' : ''}`, href: navItem.link, rel: "noreferrer", children: navItem.name }, `header-nav-${index}`));
|
|
1562
|
+
return (jsxRuntime.jsx("a", { className: `${className?.toLowerCase() === navItem.name.toLowerCase() ? 'active' : ''} ${isLogin ? 'login' : 'nav-link'} ${isSignup ? 'signup' : ''} ${isLogout ? 'logout' : ''}`, href: navItem.link, rel: "noreferrer", children: navItem.name }, `header-nav-${index}`));
|
|
1379
1563
|
}) }));
|
|
1380
1564
|
HeaderNavGroup.defaultProps = {
|
|
1381
1565
|
className: '',
|
|
@@ -1469,6 +1653,7 @@ exports.API_APP = API_APP;
|
|
|
1469
1653
|
exports.API_AUTH = API_AUTH;
|
|
1470
1654
|
exports.API_FORM_CAR = API_FORM_CAR;
|
|
1471
1655
|
exports.API_FORM_HOME = API_FORM_HOME;
|
|
1656
|
+
exports.API_FORM_LIFE = API_FORM_LIFE;
|
|
1472
1657
|
exports.API_ROOT = API_ROOT;
|
|
1473
1658
|
exports.ButtonArrow = ButtonArrow;
|
|
1474
1659
|
exports.ButtonBase = ButtonBase;
|
|
@@ -1483,6 +1668,7 @@ exports.HeaderDropDown = HeaderDropDown;
|
|
|
1483
1668
|
exports.HeaderNavGroup = HeaderNavGroup;
|
|
1484
1669
|
exports.IconArrow = IconArrow;
|
|
1485
1670
|
exports.IconChecked = IconChecked;
|
|
1671
|
+
exports.IconClock = IconClock;
|
|
1486
1672
|
exports.IconDecline = IconDecline;
|
|
1487
1673
|
exports.IconDelete = IconDelete;
|
|
1488
1674
|
exports.IconDropdownArrow = IconDropdownArrow;
|
|
@@ -1497,6 +1683,8 @@ exports.InputFormEmail = InputFormEmail;
|
|
|
1497
1683
|
exports.InputFormLicence = InputFormLicence;
|
|
1498
1684
|
exports.InputFormPhone = InputFormPhone;
|
|
1499
1685
|
exports.MAX_LOCAL_STORAGE_HOURS = MAX_LOCAL_STORAGE_HOURS;
|
|
1686
|
+
exports.MAX_LOCAL_STORAGE_HOURS_THEBIG = MAX_LOCAL_STORAGE_HOURS_THEBIG;
|
|
1687
|
+
exports.MychoiceStep = MychoiceStep;
|
|
1500
1688
|
exports.NavigationAddress = NavigationAddress;
|
|
1501
1689
|
exports.NavigationBase = NavigationBase;
|
|
1502
1690
|
exports.NavigationCar = NavigationCar;
|
|
@@ -1521,17 +1709,19 @@ exports.addDaysToDate = addDaysToDate;
|
|
|
1521
1709
|
exports.addMonthsToDate = addMonthsToDate;
|
|
1522
1710
|
exports.addYearsToDate = addYearsToDate;
|
|
1523
1711
|
exports.applicantRelationshipOptions = applicantRelationshipOptions;
|
|
1524
|
-
exports.
|
|
1712
|
+
exports.auxHeatingTypeOptions = auxHeatingTypeOptions;
|
|
1525
1713
|
exports.carCondition = carCondition;
|
|
1526
1714
|
exports.carKeepPlace = carKeepPlace;
|
|
1527
1715
|
exports.carStatus = carStatus;
|
|
1528
1716
|
exports.carUsagePurpose = carUsagePurpose;
|
|
1529
1717
|
exports.carWinterTiresCheck = carWinterTiresCheck;
|
|
1718
|
+
exports.checkDateIsSpecial = checkDateIsSpecial;
|
|
1530
1719
|
exports.claimTypeOptions = claimTypeOptions;
|
|
1531
1720
|
exports.collisionCoverage = collisionCoverage;
|
|
1532
1721
|
exports.compareDates = compareDates;
|
|
1533
1722
|
exports.comprehensiveCoverage = comprehensiveCoverage;
|
|
1534
1723
|
exports.comprehensiveCoverages = comprehensiveCoverages;
|
|
1724
|
+
exports.condoBuildingStructureOptions = condoBuildingStructureOptions;
|
|
1535
1725
|
exports.constructionTypeOptions = constructionTypeOptions;
|
|
1536
1726
|
exports.coverageOptions = coverageOptions;
|
|
1537
1727
|
exports.dailyDriveBusinessDistanceList = dailyDriveBusinessDistanceList;
|
|
@@ -1551,9 +1741,15 @@ exports.getDaysOfMonth = getDaysOfMonth;
|
|
|
1551
1741
|
exports.getDifferenceInHours = getDifferenceInHours;
|
|
1552
1742
|
exports.getDifferenceInMonths = getDifferenceInMonths;
|
|
1553
1743
|
exports.getDifferenceInYears = getDifferenceInYears;
|
|
1744
|
+
exports.getDisabledLicenceTypes = getDisabledLicenceTypes;
|
|
1554
1745
|
exports.getEndOfMonth = getEndOfMonth;
|
|
1555
1746
|
exports.getEndOfYear = getEndOfYear;
|
|
1556
1747
|
exports.getFormattedDate = getFormattedDate;
|
|
1748
|
+
exports.getInsuranceType = getInsuranceType;
|
|
1749
|
+
exports.getInsuranceYearsOptions = getInsuranceYearsOptions;
|
|
1750
|
+
exports.getLicenceMaxDate = getLicenceMaxDate;
|
|
1751
|
+
exports.getLicenceMinDate = getLicenceMinDate;
|
|
1752
|
+
exports.getLicenceTypeOptions = getLicenceTypeOptions;
|
|
1557
1753
|
exports.getMinDate = getMinDate;
|
|
1558
1754
|
exports.getMinDateByYears = getMinDateByYears;
|
|
1559
1755
|
exports.getMonthStartEndDates = getMonthStartEndDates;
|
|
@@ -1564,7 +1760,9 @@ exports.getValueIndexInOptions = getValueIndexInOptions;
|
|
|
1564
1760
|
exports.getValuesFromNumbers = getValuesFromNumbers;
|
|
1565
1761
|
exports.getYearIntervalOptions = getYearIntervalOptions;
|
|
1566
1762
|
exports.getYearStartEndDates = getYearStartEndDates;
|
|
1567
|
-
exports.
|
|
1763
|
+
exports.homeBuildingStructureOptions = homeBuildingStructureOptions;
|
|
1764
|
+
exports.homeCoverageOptions = homeCoverageOptions;
|
|
1765
|
+
exports.homeLiabilityOptions = homeLiabilityOptions;
|
|
1568
1766
|
exports.homeOwnerTypeOptions = homeOwnerTypeOptions;
|
|
1569
1767
|
exports.insuranceCancellationReasonOptions = insuranceCancellationReasonOptions;
|
|
1570
1768
|
exports.insuredYearsOptions = insuredYearsOptions;
|
|
@@ -1572,19 +1770,26 @@ exports.isDateValid = isDateValid;
|
|
|
1572
1770
|
exports.isValueInOptions = isValueInOptions;
|
|
1573
1771
|
exports.liabilityOptions = liabilityOptions;
|
|
1574
1772
|
exports.licenceSuspensionsReasonOptions = licenceSuspensionsReasonOptions;
|
|
1773
|
+
exports.lifeCoverageOptions = lifeCoverageOptions;
|
|
1774
|
+
exports.lifeInsuranceTypeOptions = lifeInsuranceTypeOptions;
|
|
1775
|
+
exports.lifeProvinceOptions = lifeProvinceOptions;
|
|
1575
1776
|
exports.maritalStatusOptions = maritalStatusOptions;
|
|
1576
1777
|
exports.numberWithCommas = numberWithCommas;
|
|
1577
1778
|
exports.occupationOptions = occupationOptions;
|
|
1578
1779
|
exports.optionsIsEqual = optionsIsEqual;
|
|
1579
1780
|
exports.postalCodeFormat = postalCodeFormat;
|
|
1781
|
+
exports.ppOptions = ppOptions;
|
|
1782
|
+
exports.primaryHeatingTypeOptions = primaryHeatingTypeOptions;
|
|
1580
1783
|
exports.residentsOptions = residentsOptions;
|
|
1784
|
+
exports.smokerOptions = smokerOptions;
|
|
1581
1785
|
exports.subDaysFromDate = subDaysFromDate;
|
|
1582
1786
|
exports.subMonthsFromDate = subMonthsFromDate;
|
|
1583
1787
|
exports.subYearsFromDate = subYearsFromDate;
|
|
1788
|
+
exports.supportedProvinceCodes = supportedProvinceCodes;
|
|
1789
|
+
exports.tenantBuildingStructureOptions = tenantBuildingStructureOptions;
|
|
1584
1790
|
exports.trafficTicketsGroupOptions = trafficTicketsGroupOptions;
|
|
1585
1791
|
exports.useEffectOnce = useEffectOnce;
|
|
1586
1792
|
exports.yearMessage = yearMessage;
|
|
1587
1793
|
exports.yearlyDriveDistanceList = yearlyDriveDistanceList;
|
|
1588
1794
|
exports.yesNoOptions = yesNoOptions;
|
|
1589
|
-
exports.yesNoOptionsTemporary = yesNoOptionsTemporary;
|
|
1590
1795
|
//# sourceMappingURL=index.js.map
|