@driveflux/pdf 2.0.3 → 2.0.4

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 (39) hide show
  1. package/dist/__mocks__/quotation.js +11 -10
  2. package/dist/__mocks__/subscription.js +123 -381
  3. package/dist/__mocks__/tou.js +10 -9
  4. package/dist/components/FluxLogo.js +3 -62
  5. package/dist/components/StandardPage.js +8 -97
  6. package/dist/debug.js +26 -205
  7. package/dist/index.js +1 -0
  8. package/dist/templates/QuotationPdf/CustomerSubscriptionSection.js +27 -145
  9. package/dist/templates/QuotationPdf/GFV.js +12 -49
  10. package/dist/templates/QuotationPdf/Header.js +5 -63
  11. package/dist/templates/QuotationPdf/Pricing.js +201 -573
  12. package/dist/templates/QuotationPdf/QuotationPdfPage.js +3 -23
  13. package/dist/templates/QuotationPdf/SectionBoxNew.js +4 -34
  14. package/dist/templates/QuotationPdf/TermsSection.js +5 -42
  15. package/dist/templates/QuotationPdf/VehiclePhotos.js +24 -54
  16. package/dist/templates/QuotationPdf/index.js +10 -189
  17. package/dist/templates/QuotationPdf/translations.js +22 -34
  18. package/dist/templates/QuotationPdf/utils.js +29 -59
  19. package/dist/templates/SubscriptionAgreement/Confirmation.js +10 -65
  20. package/dist/templates/SubscriptionAgreement/CoverPage.js +10 -93
  21. package/dist/templates/SubscriptionAgreement/CoverPageSection.js +5 -16
  22. package/dist/templates/SubscriptionAgreement/Details.js +51 -129
  23. package/dist/templates/SubscriptionAgreement/Footer.js +6 -48
  24. package/dist/templates/SubscriptionAgreement/Header.js +5 -35
  25. package/dist/templates/SubscriptionAgreement/LabelValue.js +3 -25
  26. package/dist/templates/SubscriptionAgreement/SubscriptionAgreementPage.js +3 -26
  27. package/dist/templates/SubscriptionAgreement/TermsOfUse.js +10 -92
  28. package/dist/templates/SubscriptionAgreement/TermsOfUseSubSection.js +9 -97
  29. package/dist/templates/SubscriptionAgreement/index.js +15 -245
  30. package/dist/templates/SubscriptionAgreement/translations.js +194 -195
  31. package/dist/templates/SubscriptionAgreement/types.js +2 -1
  32. package/dist/templates/SubscriptionAgreement/utils.js +5 -3
  33. package/dist/templates/index.js +1 -0
  34. package/dist/theme/colors.js +63 -44
  35. package/dist/theme/index.js +1 -0
  36. package/dist/types.js +2 -1
  37. package/dist/utils.js +16 -159
  38. package/dist/watch.js +4 -3
  39. package/package.json +7 -7
@@ -1,5 +1,5 @@
1
1
  import { generateId } from '@driveflux/db/id';
2
- export var subscription = {
2
+ export const subscription = {
3
3
  invoicing: {
4
4
  payerId: 'U2DCCUKVW',
5
5
  name: 'Zishan Kalim',
@@ -12,8 +12,8 @@ export var subscription = {
12
12
  state: 'Dubai',
13
13
  country: 'AE',
14
14
  postalCode: '00000',
15
- metadata: {}
16
- }
15
+ metadata: {},
16
+ },
17
17
  },
18
18
  leadId: null,
19
19
  primaryPaymentMethod: {
@@ -25,8 +25,8 @@ export var subscription = {
25
25
  expYear: 2028,
26
26
  funding: 'debit',
27
27
  country: 'AE',
28
- cardholderName: 'Zishan Kalim'
29
- }
28
+ cardholderName: 'Zishan Kalim',
29
+ },
30
30
  },
31
31
  onTheRoad: null,
32
32
  fees: {
@@ -42,7 +42,7 @@ export var subscription = {
42
42
  startFee: 2700,
43
43
  noStartFeeReason: null,
44
44
  notes: null,
45
- hostPrepaymentRatio: 0
45
+ hostPrepaymentRatio: 0,
46
46
  },
47
47
  unaccountedMileage: null,
48
48
  signature: null,
@@ -72,9 +72,7 @@ export var subscription = {
72
72
  chargingMethod: 'automatic',
73
73
  currentInvoiceId: 'IQVTSHDC9',
74
74
  currentCycleId: 'CY-S5Y9TWWSK-BR2WRKTU',
75
- discountIds: [
76
- 'discount_5bOaD3WHUAPKuYd1PblpH'
77
- ],
75
+ discountIds: ['discount_5bOaD3WHUAPKuYd1PblpH'],
78
76
  subscriptionRunnerId: null,
79
77
  status: 'active',
80
78
  error: null,
@@ -82,11 +80,7 @@ export var subscription = {
82
80
  createdAt: new Date('2024-03-12T04:38:31.275Z'),
83
81
  updatedAt: new Date('2024-05-16T03:13:57.487Z'),
84
82
  metadata: {},
85
- invoiceIds: [
86
- 'IJJ3GHPCS',
87
- 'I9CC6JYET',
88
- 'IQVTSHDC9'
89
- ],
83
+ invoiceIds: ['IJJ3GHPCS', 'I9CC6JYET', 'IQVTSHDC9'],
90
84
  excludeMileage: false,
91
85
  vehicleId: 'VM98GEJKS',
92
86
  vehicleType: 'car',
@@ -121,14 +115,10 @@ export var subscription = {
121
115
  payoutIds: [],
122
116
  prepared: true,
123
117
  criticalMissions: null,
124
- depositInvoiceIds: [
125
- 'IQVTSHDC9'
126
- ],
118
+ depositInvoiceIds: ['IQVTSHDC9'],
127
119
  totalDepositPaid: null,
128
120
  totalDepositRefunded: null,
129
- startFeeInvoiceIds: [
130
- 'I9CC6JYET'
131
- ],
121
+ startFeeInvoiceIds: ['I9CC6JYET'],
132
122
  totalStartFeePaid: null,
133
123
  startingMileage: 56,
134
124
  preparationInvoiceId: 'I9CC6JYET',
@@ -161,11 +151,9 @@ export var subscription = {
161
151
  department: null,
162
152
  signupParams: {
163
153
  method: 'email',
164
- source: null
154
+ source: null,
165
155
  },
166
- groups: [
167
- 'member'
168
- ],
156
+ groups: ['member'],
169
157
  maritalStatus: null,
170
158
  gender: null,
171
159
  emergencyContactName: null,
@@ -184,47 +172,21 @@ export var subscription = {
184
172
  'utilization.pricePerKm',
185
173
  'utilization.paid',
186
174
  'utilization.allowedMileage',
187
- 'utilization.mileage'
175
+ 'utilization.mileage',
188
176
  ],
189
- conditions: {
190
- subscription: {
191
- userId: 'U2DCCUKVW'
192
- }
193
- }
194
- },
195
- {
196
- action: 'read',
197
- subject: 'Vehicle',
198
- conditions: {
199
- status: 'listed'
200
- }
201
- },
202
- {
203
- action: 'create',
204
- subject: 'Business'
177
+ conditions: { subscription: { userId: 'U2DCCUKVW' } },
205
178
  },
179
+ { action: 'read', subject: 'Vehicle', conditions: { status: 'listed' } },
180
+ { action: 'create', subject: 'Business' },
206
181
  {
207
182
  action: 'read',
208
183
  subject: 'Subscription',
209
- conditions: {
210
- userId: 'U2DCCUKVW'
211
- }
184
+ conditions: { userId: 'U2DCCUKVW' },
212
185
  },
186
+ { action: 'read', subject: 'Coupon' },
187
+ { action: 'manageAdmin', inverted: true, subject: 'User' },
213
188
  {
214
- action: 'read',
215
- subject: 'Coupon'
216
- },
217
- {
218
- action: 'manageAdmin',
219
- inverted: true,
220
- subject: 'User'
221
- },
222
- {
223
- action: [
224
- 'create',
225
- 'update',
226
- 'delete'
227
- ],
189
+ action: ['create', 'update', 'delete'],
228
190
  inverted: true,
229
191
  subject: 'User',
230
192
  conditions: {
@@ -250,54 +212,29 @@ export var subscription = {
250
212
  'designer',
251
213
  'engineer',
252
214
  'productManager',
253
- 'ceo'
254
- ]
255
- }
215
+ 'ceo',
216
+ ],
217
+ },
256
218
  },
257
- reason: 'You are not allowed to update admin users'
219
+ reason: 'You are not allowed to update admin users',
258
220
  },
221
+ { action: 'update', subject: 'User', conditions: { id: 'U2DCCUKVW' } },
259
222
  {
260
- action: 'update',
223
+ action: ['read', 'update'],
261
224
  subject: 'User',
262
- conditions: {
263
- id: 'U2DCCUKVW'
264
- }
225
+ conditions: { id: 'U2DCCUKVW' },
265
226
  },
266
227
  {
267
- action: [
268
- 'read',
269
- 'update'
270
- ],
271
- subject: 'User',
272
- conditions: {
273
- id: 'U2DCCUKVW'
274
- }
275
- },
276
- {
277
- action: [
278
- 'read'
279
- ],
228
+ action: ['read'],
280
229
  subject: 'Invoice',
281
- conditions: {
282
- payerId: 'U2DCCUKVW'
283
- }
230
+ conditions: { payerId: 'U2DCCUKVW' },
284
231
  },
285
232
  {
286
233
  action: 'reserveVehicle',
287
234
  subject: 'User',
288
- conditions: {
289
- banned: false,
290
- consented: true
291
- }
235
+ conditions: { banned: false, consented: true },
292
236
  },
293
- {
294
- action: 'update',
295
- inverted: true,
296
- subject: 'User',
297
- fields: [
298
- 'groups'
299
- ]
300
- }
237
+ { action: 'update', inverted: true, subject: 'User', fields: ['groups'] },
301
238
  ],
302
239
  banned: false,
303
240
  banReason: null,
@@ -325,7 +262,7 @@ export var subscription = {
325
262
  entryDate: null,
326
263
  visaExpiry: null,
327
264
  visaValidityMonths: null,
328
- verified: false
265
+ verified: false,
329
266
  },
330
267
  documents: {
331
268
  passport: {
@@ -337,7 +274,7 @@ export var subscription = {
337
274
  uploaded: true,
338
275
  createdAt: new Date('2024-03-12T04:18:36.116Z'),
339
276
  updatedAt: null,
340
- metadata: null
277
+ metadata: null,
341
278
  },
342
279
  visa: {
343
280
  name: 'Visa',
@@ -348,7 +285,7 @@ export var subscription = {
348
285
  uploaded: true,
349
286
  createdAt: new Date('2024-03-12T04:18:36.116Z'),
350
287
  updatedAt: null,
351
- metadata: null
288
+ metadata: null,
352
289
  },
353
290
  idFront: null,
354
291
  idBack: null,
@@ -361,7 +298,7 @@ export var subscription = {
361
298
  uploaded: true,
362
299
  createdAt: new Date('2024-03-12T04:22:11.640Z'),
363
300
  updatedAt: null,
364
- metadata: null
301
+ metadata: null,
365
302
  },
366
303
  experianReport: null,
367
304
  pdrm: null,
@@ -376,7 +313,7 @@ export var subscription = {
376
313
  uploaded: true,
377
314
  createdAt: new Date('2024-03-12T04:29:23.025Z'),
378
315
  updatedAt: null,
379
- metadata: null
316
+ metadata: null,
380
317
  },
381
318
  bankStatement2: {
382
319
  name: 'Bank Statement 2',
@@ -387,7 +324,7 @@ export var subscription = {
387
324
  uploaded: true,
388
325
  createdAt: new Date('2024-03-12T04:29:23.025Z'),
389
326
  updatedAt: null,
390
- metadata: null
327
+ metadata: null,
391
328
  },
392
329
  bankStatement3: {
393
330
  name: 'Bank Statement 3',
@@ -398,7 +335,7 @@ export var subscription = {
398
335
  uploaded: true,
399
336
  createdAt: new Date('2024-03-12T04:29:23.025Z'),
400
337
  updatedAt: null,
401
- metadata: null
338
+ metadata: null,
402
339
  },
403
340
  epfStatement: null,
404
341
  offerLetter: {
@@ -410,8 +347,8 @@ export var subscription = {
410
347
  uploaded: true,
411
348
  createdAt: new Date('2024-03-12T04:32:27.837Z'),
412
349
  updatedAt: null,
413
- metadata: null
414
- }
350
+ metadata: null,
351
+ },
415
352
  },
416
353
  paymentMethods: [
417
354
  {
@@ -424,7 +361,7 @@ export var subscription = {
424
361
  stripe: {
425
362
  customerId: 'cus_PioidrQGcxLkbQ',
426
363
  paymentMethodId: 'pm_1PGL4QGmjNrRwDjL0HpLF2OS',
427
- setupIntentId: null
364
+ setupIntentId: null,
428
365
  },
429
366
  curlec: null,
430
367
  payex: null,
@@ -435,12 +372,12 @@ export var subscription = {
435
372
  expYear: 2029,
436
373
  funding: 'prepaid',
437
374
  country: 'MY',
438
- cardholderName: 'Zishan Kalim'
375
+ cardholderName: 'Zishan Kalim',
439
376
  },
440
377
  accountType: 'personal',
441
378
  status: 'active',
442
- metadata: {}
443
- }
379
+ metadata: {},
380
+ },
444
381
  ],
445
382
  addresses: {
446
383
  home: {
@@ -452,7 +389,7 @@ export var subscription = {
452
389
  country: 'AE',
453
390
  postalCode: '00000',
454
391
  metadata: {},
455
- coordinates: null
392
+ coordinates: null,
456
393
  },
457
394
  billing: {
458
395
  name: null,
@@ -462,8 +399,8 @@ export var subscription = {
462
399
  state: 'Dubai',
463
400
  country: 'AE',
464
401
  postalCode: '00000',
465
- metadata: {}
466
- }
402
+ metadata: {},
403
+ },
467
404
  },
468
405
  verifications: null,
469
406
  emailPreferences: {
@@ -472,11 +409,11 @@ export var subscription = {
472
409
  signUpOnly: false,
473
410
  signUpPaymentAdded: false,
474
411
  activeSub: true,
475
- expiredSub: false
412
+ expiredSub: false,
476
413
  },
477
414
  companyName: 'FLUX',
478
415
  ethnicity: null,
479
- geoRegion: null
416
+ geoRegion: null,
480
417
  },
481
418
  vehicle: {
482
419
  id: 'VM98GEJKS',
@@ -515,10 +452,7 @@ export var subscription = {
515
452
  mileageTrackingOff: false,
516
453
  featureOnLandingPage: false,
517
454
  lastMileageRecordedAt: new Date('2024-04-23T08:36:08.893Z'),
518
- locationAvailability: [
519
- 'Kuala Lumpur',
520
- 'Johor'
521
- ],
455
+ locationAvailability: ['Kuala Lumpur', 'Johor'],
522
456
  temporary: true,
523
457
  hotDeal: null,
524
458
  activeSubscriptionId: 'S5Y9TWWSK',
@@ -537,7 +471,7 @@ export var subscription = {
537
471
  country: 'MY',
538
472
  postalCode: '50480',
539
473
  metadata: {},
540
- coordinates: null
474
+ coordinates: null,
541
475
  },
542
476
  pickup: {
543
477
  name: 'Main',
@@ -548,8 +482,8 @@ export var subscription = {
548
482
  country: 'MY',
549
483
  postalCode: '50480',
550
484
  metadata: {},
551
- coordinates: null
552
- }
485
+ coordinates: null,
486
+ },
553
487
  },
554
488
  documents: null,
555
489
  pricing: {
@@ -558,267 +492,74 @@ export var subscription = {
558
492
  tmv: 160000,
559
493
  bought: false,
560
494
  gfvNotApplicable: true,
561
- gfv: {
562
- plan60: 0,
563
- plan36: 0,
564
- plan24: 0
565
- },
495
+ gfv: { plan60: 0, plan36: 0, plan24: 0 },
566
496
  fluxPrice: {
567
497
  add: null,
568
498
  coefficient: 10,
569
499
  excessMileage: 1.4,
570
500
  originalExcessMileage: 1.8,
571
501
  matrix: {
572
- plan60: {
573
- lite: 2640,
574
- standard: 2970,
575
- plus: 3300,
576
- unlimited: 4140
577
- },
578
- plan36: {
579
- lite: 3300,
580
- standard: 3630,
581
- plus: 3960,
582
- unlimited: 4800
583
- },
584
- plan24: {
585
- lite: 3630,
586
- standard: 3960,
587
- plus: 4290,
588
- unlimited: 5130
589
- },
590
- plan12: {
591
- lite: 3960,
592
- standard: 4290,
593
- plus: 4620,
594
- unlimited: 5460
595
- },
596
- plan1: {
597
- lite: 7599,
598
- standard: 7599,
599
- plus: 7599,
600
- unlimited: 7599
601
- },
602
- planWeekly: {
603
- lite: 200,
604
- standard: 530,
605
- plus: 860,
606
- unlimited: 1700
607
- }
502
+ plan60: { lite: 2640, standard: 2970, plus: 3300, unlimited: 4140 },
503
+ plan36: { lite: 3300, standard: 3630, plus: 3960, unlimited: 4800 },
504
+ plan24: { lite: 3630, standard: 3960, plus: 4290, unlimited: 5130 },
505
+ plan12: { lite: 3960, standard: 4290, plus: 4620, unlimited: 5460 },
506
+ plan1: { lite: 7599, standard: 7599, plus: 7599, unlimited: 7599 },
507
+ planWeekly: { lite: 200, standard: 530, plus: 860, unlimited: 1700 },
608
508
  },
609
509
  originalMatrix: {
610
- plan60: {
611
- lite: 2640,
612
- standard: 2970,
613
- plus: 3300,
614
- unlimited: 4140
615
- },
616
- plan36: {
617
- lite: 3300,
618
- standard: 3630,
619
- plus: 3960,
620
- unlimited: 4800
621
- },
622
- plan24: {
623
- lite: 3630,
624
- standard: 3960,
625
- plus: 4290,
626
- unlimited: 5130
627
- },
628
- plan12: {
629
- lite: 3960,
630
- standard: 4290,
631
- plus: 4620,
632
- unlimited: 5460
633
- },
634
- plan1: {
635
- lite: 7599,
636
- standard: 7599,
637
- plus: 7599,
638
- unlimited: 7599
639
- },
640
- planWeekly: {
641
- lite: 200,
642
- standard: 530,
643
- plus: 860,
644
- unlimited: 1700
645
- }
510
+ plan60: { lite: 2640, standard: 2970, plus: 3300, unlimited: 4140 },
511
+ plan36: { lite: 3300, standard: 3630, plus: 3960, unlimited: 4800 },
512
+ plan24: { lite: 3630, standard: 3960, plus: 4290, unlimited: 5130 },
513
+ plan12: { lite: 3960, standard: 4290, plus: 4620, unlimited: 5460 },
514
+ plan1: { lite: 7599, standard: 7599, plus: 7599, unlimited: 7599 },
515
+ planWeekly: { lite: 200, standard: 530, plus: 860, unlimited: 1700 },
646
516
  },
647
- matrixComments: null
517
+ matrixComments: null,
648
518
  },
649
519
  hostTake: {
650
520
  excessMileage: 1.1,
651
521
  originalExcessMileage: 1.44,
652
522
  matrix: {
653
- plan60: {
654
- lite: 3000,
655
- standard: 3150,
656
- plus: 3150,
657
- unlimited: 4250
658
- },
659
- plan36: {
660
- lite: 3000,
661
- standard: 3300,
662
- plus: 3600,
663
- unlimited: 4350
664
- },
665
- plan24: {
666
- lite: 3300,
667
- standard: 3600,
668
- plus: 3900,
669
- unlimited: 4650
670
- },
671
- plan12: {
672
- lite: 3600,
673
- standard: 3900,
674
- plus: 4200,
675
- unlimited: 4950
676
- },
677
- plan1: {
678
- lite: 6500,
679
- standard: 6500,
680
- plus: 6500,
681
- unlimited: 6500
682
- },
683
- planWeekly: {
684
- lite: 0,
685
- standard: 0,
686
- plus: 0,
687
- unlimited: 0
688
- }
523
+ plan60: { lite: 3000, standard: 3150, plus: 3150, unlimited: 4250 },
524
+ plan36: { lite: 3000, standard: 3300, plus: 3600, unlimited: 4350 },
525
+ plan24: { lite: 3300, standard: 3600, plus: 3900, unlimited: 4650 },
526
+ plan12: { lite: 3600, standard: 3900, plus: 4200, unlimited: 4950 },
527
+ plan1: { lite: 6500, standard: 6500, plus: 6500, unlimited: 6500 },
528
+ planWeekly: { lite: 0, standard: 0, plus: 0, unlimited: 0 },
689
529
  },
690
530
  originalMatrix: {
691
- plan60: {
692
- lite: 2400,
693
- standard: 2700,
694
- plus: 3000,
695
- unlimited: 3750
696
- },
697
- plan36: {
698
- lite: 3000,
699
- standard: 3300,
700
- plus: 3600,
701
- unlimited: 4350
702
- },
703
- plan24: {
704
- lite: 3300,
705
- standard: 3600,
706
- plus: 3900,
707
- unlimited: 4650
708
- },
709
- plan12: {
710
- lite: 3600,
711
- standard: 3900,
712
- plus: 4200,
713
- unlimited: 4950
714
- },
715
- plan1: {
716
- lite: 6500,
717
- standard: 6500,
718
- plus: 6500,
719
- unlimited: 6500
720
- },
721
- planWeekly: {
722
- lite: 0,
723
- standard: 0,
724
- plus: 0,
725
- unlimited: 0
726
- }
531
+ plan60: { lite: 2400, standard: 2700, plus: 3000, unlimited: 3750 },
532
+ plan36: { lite: 3000, standard: 3300, plus: 3600, unlimited: 4350 },
533
+ plan24: { lite: 3300, standard: 3600, plus: 3900, unlimited: 4650 },
534
+ plan12: { lite: 3600, standard: 3900, plus: 4200, unlimited: 4950 },
535
+ plan1: { lite: 6500, standard: 6500, plus: 6500, unlimited: 6500 },
536
+ planWeekly: { lite: 0, standard: 0, plus: 0, unlimited: 0 },
727
537
  },
728
- matrixComments: null
538
+ matrixComments: null,
729
539
  },
730
540
  startFee: {
731
541
  matrix: {
732
- plan60: {
733
- lite: 1800,
734
- standard: 2040,
735
- plus: 2250,
736
- unlimited: 2820
737
- },
738
- plan36: {
739
- lite: 2250,
740
- standard: 2490,
741
- plus: 2700,
742
- unlimited: 3270
743
- },
744
- plan24: {
745
- lite: 2490,
746
- standard: 2700,
747
- plus: 2940,
748
- unlimited: 3510
749
- },
750
- plan12: {
751
- lite: 2700,
752
- standard: 2940,
753
- plus: 3150,
754
- unlimited: 3720
755
- },
756
- plan1: {
757
- lite: 0,
758
- standard: 0,
759
- plus: 0,
760
- unlimited: 0
761
- },
762
- planWeekly: {
763
- lite: 0,
764
- standard: 0,
765
- plus: 0,
766
- unlimited: 0
767
- }
542
+ plan60: { lite: 1800, standard: 2040, plus: 2250, unlimited: 2820 },
543
+ plan36: { lite: 2250, standard: 2490, plus: 2700, unlimited: 3270 },
544
+ plan24: { lite: 2490, standard: 2700, plus: 2940, unlimited: 3510 },
545
+ plan12: { lite: 2700, standard: 2940, plus: 3150, unlimited: 3720 },
546
+ plan1: { lite: 0, standard: 0, plus: 0, unlimited: 0 },
547
+ planWeekly: { lite: 0, standard: 0, plus: 0, unlimited: 0 },
768
548
  },
769
549
  originalMatrix: {
770
- plan60: {
771
- lite: 1800,
772
- standard: 2040,
773
- plus: 2250,
774
- unlimited: 2820
775
- },
776
- plan36: {
777
- lite: 2250,
778
- standard: 2490,
779
- plus: 2700,
780
- unlimited: 3270
781
- },
782
- plan24: {
783
- lite: 2490,
784
- standard: 2700,
785
- plus: 2940,
786
- unlimited: 3510
787
- },
788
- plan12: {
789
- lite: 2700,
790
- standard: 2940,
791
- plus: 3150,
792
- unlimited: 3720
793
- },
794
- plan1: {
795
- lite: 0,
796
- standard: 0,
797
- plus: 0,
798
- unlimited: 0
799
- },
800
- planWeekly: {
801
- lite: 0,
802
- standard: 0,
803
- plus: 0,
804
- unlimited: 0
805
- }
550
+ plan60: { lite: 1800, standard: 2040, plus: 2250, unlimited: 2820 },
551
+ plan36: { lite: 2250, standard: 2490, plus: 2700, unlimited: 3270 },
552
+ plan24: { lite: 2490, standard: 2700, plus: 2940, unlimited: 3510 },
553
+ plan12: { lite: 2700, standard: 2940, plus: 3150, unlimited: 3720 },
554
+ plan1: { lite: 0, standard: 0, plus: 0, unlimited: 0 },
555
+ planWeekly: { lite: 0, standard: 0, plus: 0, unlimited: 0 },
806
556
  },
807
- matrixComments: null
557
+ matrixComments: null,
808
558
  },
809
559
  ultraTier: 'tier11',
810
- availablePlans: [
811
- 'plan36',
812
- 'plan24',
813
- 'plan12'
814
- ],
815
- availableMileagePackages: [
816
- 'lite',
817
- 'standard',
818
- 'plus',
819
- 'unlimited'
820
- ],
821
- recommendedDeposit: null
560
+ availablePlans: ['plan36', 'plan24', 'plan12'],
561
+ availableMileagePackages: ['lite', 'standard', 'plus', 'unlimited'],
562
+ recommendedDeposit: null,
822
563
  },
823
564
  images: [
824
565
  {
@@ -831,7 +572,7 @@ export var subscription = {
831
572
  description: null,
832
573
  inspection: true,
833
574
  inspectionType: 'exterior',
834
- notActualPhoto: false
575
+ notActualPhoto: false,
835
576
  },
836
577
  {
837
578
  default: 'https://flux-site-files.s3.ap-southeast-1.amazonaws.com/vehicles/VDDVYB78L/images/ae2738e1-0475-4ea1-bf9a-9721e80d9455.jpg',
@@ -843,7 +584,7 @@ export var subscription = {
843
584
  description: null,
844
585
  inspection: false,
845
586
  inspectionType: null,
846
- notActualPhoto: false
587
+ notActualPhoto: false,
847
588
  },
848
589
  {
849
590
  default: 'https://flux-site-files.s3.ap-southeast-1.amazonaws.com/vehicles/VDDVYB78L/images/78481cf6-ccb3-4914-a878-472267db0241.jpg',
@@ -855,7 +596,7 @@ export var subscription = {
855
596
  description: null,
856
597
  inspection: false,
857
598
  inspectionType: null,
858
- notActualPhoto: false
599
+ notActualPhoto: false,
859
600
  },
860
601
  {
861
602
  default: 'https://flux-site-files.s3.ap-southeast-1.amazonaws.com/vehicles/VDDVYB78L/images/8597f00c-8714-45f3-bc5f-07b108729152.jpg',
@@ -867,7 +608,7 @@ export var subscription = {
867
608
  description: null,
868
609
  inspection: false,
869
610
  inspectionType: null,
870
- notActualPhoto: false
611
+ notActualPhoto: false,
871
612
  },
872
613
  {
873
614
  default: 'https://flux-site-files.s3.ap-southeast-1.amazonaws.com/vehicles/VDDVYB78L/images/22e6bba8-23d6-4d64-997a-37bc502aac16.jpg',
@@ -879,7 +620,7 @@ export var subscription = {
879
620
  description: null,
880
621
  inspection: false,
881
622
  inspectionType: null,
882
- notActualPhoto: false
623
+ notActualPhoto: false,
883
624
  },
884
625
  {
885
626
  default: 'https://flux-site-files.s3.ap-southeast-1.amazonaws.com/vehicles/VDDVYB78L/images/IMG_7884.JPG',
@@ -891,7 +632,7 @@ export var subscription = {
891
632
  description: null,
892
633
  inspection: false,
893
634
  inspectionType: null,
894
- notActualPhoto: false
635
+ notActualPhoto: false,
895
636
  },
896
637
  {
897
638
  default: 'https://flux-site-files.s3.ap-southeast-1.amazonaws.com/vehicles/VDDVYB78L/images/IMG_7882.JPG',
@@ -903,7 +644,7 @@ export var subscription = {
903
644
  description: null,
904
645
  inspection: true,
905
646
  inspectionType: 'frame',
906
- notActualPhoto: false
647
+ notActualPhoto: false,
907
648
  },
908
649
  {
909
650
  default: 'https://flux-site-files.s3.ap-southeast-1.amazonaws.com/vehicles/VDDVYB78L/images/IMG_7880.JPG',
@@ -915,7 +656,7 @@ export var subscription = {
915
656
  description: null,
916
657
  inspection: false,
917
658
  inspectionType: null,
918
- notActualPhoto: false
659
+ notActualPhoto: false,
919
660
  },
920
661
  {
921
662
  default: 'https://flux-site-files.s3.ap-southeast-1.amazonaws.com/vehicles/VDDVYB78L/images/IMG_7879.JPG',
@@ -927,7 +668,7 @@ export var subscription = {
927
668
  description: null,
928
669
  inspection: false,
929
670
  inspectionType: null,
930
- notActualPhoto: false
671
+ notActualPhoto: false,
931
672
  },
932
673
  {
933
674
  default: 'https://flux-site-files.s3.ap-southeast-1.amazonaws.com/vehicles/VDDVYB78L/images/IMG_7878.JPG',
@@ -939,7 +680,7 @@ export var subscription = {
939
680
  description: null,
940
681
  inspection: true,
941
682
  inspectionType: 'interior',
942
- notActualPhoto: false
683
+ notActualPhoto: false,
943
684
  },
944
685
  {
945
686
  default: 'https://flux-site-files.s3.ap-southeast-1.amazonaws.com/vehicles/VDDVYB78L/images/IMG_7876.JPG',
@@ -951,7 +692,7 @@ export var subscription = {
951
692
  description: null,
952
693
  inspection: false,
953
694
  inspectionType: null,
954
- notActualPhoto: false
695
+ notActualPhoto: false,
955
696
  },
956
697
  {
957
698
  default: 'https://flux-site-files.s3.ap-southeast-1.amazonaws.com/vehicles/VDDVYB78L/images/IMG_7877.JPG',
@@ -963,7 +704,7 @@ export var subscription = {
963
704
  description: null,
964
705
  inspection: false,
965
706
  inspectionType: null,
966
- notActualPhoto: false
707
+ notActualPhoto: false,
967
708
  },
968
709
  {
969
710
  default: 'https://flux-site-files.s3.ap-southeast-1.amazonaws.com/vehicles/VDDVYB78L/images/IMG_7873.JPG',
@@ -975,7 +716,7 @@ export var subscription = {
975
716
  description: null,
976
717
  inspection: false,
977
718
  inspectionType: null,
978
- notActualPhoto: false
719
+ notActualPhoto: false,
979
720
  },
980
721
  {
981
722
  default: 'https://flux-site-files.s3.ap-southeast-1.amazonaws.com/vehicles/VDDVYB78L/images/IMG_7871.JPG',
@@ -987,7 +728,7 @@ export var subscription = {
987
728
  description: null,
988
729
  inspection: false,
989
730
  inspectionType: null,
990
- notActualPhoto: false
731
+ notActualPhoto: false,
991
732
  },
992
733
  {
993
734
  default: 'https://flux-site-files.s3.ap-southeast-1.amazonaws.com/vehicles/VDDVYB78L/images/IMG_7885.JPG',
@@ -999,8 +740,8 @@ export var subscription = {
999
740
  description: null,
1000
741
  inspection: true,
1001
742
  inspectionType: 'engine',
1002
- notActualPhoto: false
1003
- }
743
+ notActualPhoto: false,
744
+ },
1004
745
  ],
1005
746
  details: {
1006
747
  numberOfSeats: 6,
@@ -1034,9 +775,9 @@ export var subscription = {
1034
775
  'abs',
1035
776
  'parking-sensor',
1036
777
  'braking-assist',
1037
- 'adaptive-headlights'
778
+ 'adaptive-headlights',
1038
779
  ],
1039
- condition: 'used'
780
+ condition: 'used',
1040
781
  },
1041
782
  inspection: {
1042
783
  exterior: 5,
@@ -1046,11 +787,11 @@ export var subscription = {
1046
787
  dashboard: null,
1047
788
  date: new Date('2023-09-18T16:00:00.000Z'),
1048
789
  total: 5,
1049
- comment: 'All new Proton X90, prestigious, high-riding motoring for corporate and family use. Well-detailed cabin and clean exterior.'
790
+ comment: 'All new Proton X90, prestigious, high-riding motoring for corporate and family use. Well-detailed cabin and clean exterior.',
1050
791
  },
1051
792
  appliedCoupon: null,
1052
793
  displayVehicleId: null,
1053
- isHostConfirmed: null
794
+ isHostConfirmed: null,
1054
795
  },
1055
796
  schedule: {
1056
797
  id: 'SC_6FLUKBFH',
@@ -1069,11 +810,11 @@ export var subscription = {
1069
810
  updatedAt: new Date('2024-04-30T09:39:11.564Z'),
1070
811
  metadata: {},
1071
812
  expiryNoticeSent: false,
1072
- phases: []
813
+ phases: [],
1073
814
  },
1074
- subscriptionTag: 'new'
815
+ subscriptionTag: 'new',
1075
816
  };
1076
- export var signature = {
817
+ export const signature = {
1077
818
  id: generateId('SubscriptionSignature'),
1078
819
  subscriptionId: subscription.id,
1079
820
  object: 'subscriptionSignature',
@@ -1094,9 +835,10 @@ export var signature = {
1094
835
  heading: 0,
1095
836
  altitude: 61.10000228881836,
1096
837
  longitude: 101.6787272,
1097
- accuracy: 100
1098
- }
838
+ accuracy: 100,
839
+ },
1099
840
  },
1100
841
  agreedToTerms: true,
1101
- ipAddress: null
842
+ ipAddress: null,
1102
843
  };
844
+ //# sourceMappingURL=subscription.js.map