@driveflux/pdf 4.0.77 → 5.0.0-feature-e-invoicing.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 (282) hide show
  1. package/.env +0 -0
  2. package/.env.development +4 -0
  3. package/.turbo/turbo-build.log +14 -0
  4. package/CHANGELOG.md +15 -0
  5. package/build.ts +45 -0
  6. package/bun-env.d.ts +34 -0
  7. package/bunfig.toml +8 -0
  8. package/catalog-version-stamp.json +8 -0
  9. package/dist/main.js +4 -0
  10. package/dist/main.js.map +11 -0
  11. package/dist/src/config.d.ts +20 -0
  12. package/dist/src/create-logger.d.ts +1 -0
  13. package/dist/src/errors.d.ts +43 -0
  14. package/dist/src/main.d.ts +1 -0
  15. package/dist/src/preview/api.d.ts +264 -0
  16. package/dist/src/preview/client/app.d.ts +2 -0
  17. package/dist/src/preview/client/invoice/invoice-display.d.ts +5 -0
  18. package/dist/src/preview/client/invoice/invoice-setup.d.ts +8 -0
  19. package/dist/src/preview/client/preview-targets.d.ts +12 -0
  20. package/dist/src/preview/client/preview.d.ts +6 -0
  21. package/dist/src/preview/client/sidebar.d.ts +7 -0
  22. package/dist/src/preview/client/treaty.d.ts +200 -0
  23. package/dist/src/preview/client/use-target.d.ts +1 -0
  24. package/dist/src/preview/fonts/register-fonts.d.ts +1 -0
  25. package/dist/src/preview/frontend.d.ts +1 -0
  26. package/dist/src/preview/server.d.ts +1 -0
  27. package/dist/src/repository.d.ts +171 -0
  28. package/dist/src/templates/invoice/colors.d.ts +6 -0
  29. package/dist/src/templates/invoice/company-details.d.ts +10 -0
  30. package/dist/src/templates/invoice/flux-invoice.d.ts +6 -0
  31. package/dist/src/templates/invoice/footer.d.ts +2 -0
  32. package/dist/src/templates/invoice/host-invoice.d.ts +9 -0
  33. package/dist/src/templates/invoice/invoice-details.d.ts +13 -0
  34. package/dist/src/templates/invoice/invoice-notes.d.ts +1 -0
  35. package/dist/src/templates/invoice/invoice-summary.d.ts +7 -0
  36. package/dist/src/templates/invoice/letter-head.d.ts +10 -0
  37. package/dist/src/templates/invoice/li.d.ts +10 -0
  38. package/dist/src/templates/invoice/platform-and-host-details.d.ts +11 -0
  39. package/dist/src/templates/invoice/spacer.d.ts +3 -0
  40. package/dist/src/templates/invoice/split-container-items.d.ts +10 -0
  41. package/dist/src/templates/invoice/split-container.d.ts +7 -0
  42. package/dist/src/templates/invoice/standard-page.d.ts +7 -0
  43. package/dist/src/templates/invoice/types.d.ts +3 -0
  44. package/dist/src/templates/invoice/ul.d.ts +8 -0
  45. package/dist/src/templates/invoice/utils.d.ts +2 -0
  46. package/dist/tsconfig.tsbuildinfo +1 -0
  47. package/package.json +34 -40
  48. package/src/config.ts +42 -0
  49. package/src/create-logger.ts +4 -0
  50. package/src/errors.ts +35 -0
  51. package/src/main.ts +7 -0
  52. package/src/preview/api.ts +33 -0
  53. package/src/preview/client/app.tsx +30 -0
  54. package/src/preview/client/invoice/invoice-display.tsx +27 -0
  55. package/src/preview/client/invoice/invoice-setup.tsx +95 -0
  56. package/src/preview/client/preview-targets.ts +30 -0
  57. package/src/preview/client/preview.tsx +37 -0
  58. package/src/preview/client/sidebar.tsx +39 -0
  59. package/src/preview/client/treaty.ts +8 -0
  60. package/src/preview/client/use-target.ts +11 -0
  61. package/src/preview/fonts/GOTHAM-BLACK.TTF +0 -0
  62. package/src/preview/fonts/GOTHAM-BLACKITALIC.TTF +0 -0
  63. package/src/preview/fonts/GOTHAM-BOLD.TTF +0 -0
  64. package/src/preview/fonts/GOTHAM-BOLDITALIC.TTF +0 -0
  65. package/src/preview/fonts/GOTHAM-LIGHT.TTF +0 -0
  66. package/src/preview/fonts/GOTHAM-LIGHTITALIC.TTF +0 -0
  67. package/src/preview/fonts/GOTHAM-MEDIUM.TTF +0 -0
  68. package/src/preview/fonts/GOTHAM-MEDIUMITALIC.TTF +0 -0
  69. package/src/preview/fonts/GOTHAM-THIN.TTF +0 -0
  70. package/src/preview/fonts/GOTHAM-THINITALIC.TTF +0 -0
  71. package/src/preview/fonts/GOTHAM-ULTRA.TTF +0 -0
  72. package/src/preview/fonts/GOTHAM-ULTRAITALIC.TTF +0 -0
  73. package/src/preview/fonts/GOTHAM-XLIGHT.TTF +0 -0
  74. package/src/preview/fonts/GOTHAM-XLIGHTITALIC.TTF +0 -0
  75. package/src/preview/fonts/Gotham Book Italic.otf +0 -0
  76. package/src/preview/fonts/Gotham-BoldItalic.otf +0 -0
  77. package/src/preview/fonts/Gotham-Book.otf +0 -0
  78. package/src/preview/fonts/Gotham-BookItalic.otf +0 -0
  79. package/src/preview/fonts/Gotham-ExtraLight.otf +0 -0
  80. package/src/preview/fonts/Gotham-ExtraLightItalic.otf +0 -0
  81. package/src/preview/fonts/Gotham-Light.otf +0 -0
  82. package/src/preview/fonts/Gotham-LightItalic.otf +0 -0
  83. package/src/preview/fonts/Gotham-Medium.otf +0 -0
  84. package/src/preview/fonts/Gotham-MediumItalic.otf +0 -0
  85. package/src/preview/fonts/Gotham-Thin.otf +0 -0
  86. package/src/preview/fonts/Gotham-ThinItalic.otf +0 -0
  87. package/src/preview/fonts/Gotham-Ultra.otf +0 -0
  88. package/src/preview/fonts/Gotham-UltraItalic.otf +0 -0
  89. package/src/preview/fonts/GothamNarrow-Black.otf +0 -0
  90. package/src/preview/fonts/GothamNarrow-BlackItalic.otf +0 -0
  91. package/src/preview/fonts/GothamNarrow-Book.otf +0 -0
  92. package/src/preview/fonts/GothamNarrow-BookItalic.otf +0 -0
  93. package/src/preview/fonts/GothamNarrow-Light.otf +0 -0
  94. package/src/preview/fonts/GothamNarrow-LightItalic.otf +0 -0
  95. package/src/preview/fonts/GothamNarrow-Medium.otf +0 -0
  96. package/src/preview/fonts/GothamNarrow-MediumItalic.otf +0 -0
  97. package/src/preview/fonts/GothamNarrow-Thin.otf +0 -0
  98. package/src/preview/fonts/GothamNarrow-ThinItalic.otf +0 -0
  99. package/src/preview/fonts/GothamNarrow-Ultra.otf +0 -0
  100. package/src/preview/fonts/GothamNarrow-UltraItalic.otf +0 -0
  101. package/src/preview/fonts/GothamNarrow-XLight.otf +0 -0
  102. package/src/preview/fonts/GothamNarrow-XLightItalic.otf +0 -0
  103. package/src/preview/fonts/gotham-extra-narrow-bold-italic.otf +0 -0
  104. package/src/preview/fonts/gotham-extra-narrow-bold.otf +0 -0
  105. package/src/preview/fonts/gotham-extra-narrow-book-italic.otf +0 -0
  106. package/src/preview/fonts/gotham-extra-narrow-book.otf +0 -0
  107. package/src/preview/fonts/gotham-extra-narrow-light-italic.otf +0 -0
  108. package/src/preview/fonts/gotham-extra-narrow-light.otf +0 -0
  109. package/src/preview/fonts/gotham-extra-narrow-medium-italic.otf +0 -0
  110. package/src/preview/fonts/gotham-extra-narrow-medium.otf +0 -0
  111. package/src/preview/fonts/gotham-rounded-bold-italic.otf +0 -0
  112. package/src/preview/fonts/gotham-rounded-bold.otf +0 -0
  113. package/src/preview/fonts/gotham-rounded-book-italic.otf +0 -0
  114. package/src/preview/fonts/gotham-rounded-book.otf +0 -0
  115. package/src/preview/fonts/gotham-rounded-light-italic.otf +0 -0
  116. package/src/preview/fonts/gotham-rounded-light.otf +0 -0
  117. package/src/preview/fonts/gotham-rounded-medium-italic.otf +0 -0
  118. package/src/preview/fonts/gotham-rounded-medium.otf +0 -0
  119. package/src/preview/fonts/register-fonts.ts +395 -0
  120. package/src/preview/frontend.tsx +23 -0
  121. package/src/preview/global.css +39 -0
  122. package/src/preview/preview.html +12 -0
  123. package/src/preview/server.ts +28 -0
  124. package/src/repository.ts +39 -0
  125. package/src/templates/invoice/E Invoice Format.pdf +0 -0
  126. package/src/templates/invoice/colors.ts +6 -0
  127. package/src/templates/invoice/company-details.tsx +124 -0
  128. package/src/templates/invoice/flux-invoice.tsx +134 -0
  129. package/src/templates/invoice/footer.tsx +46 -0
  130. package/src/templates/invoice/host-invoice.tsx +134 -0
  131. package/src/templates/invoice/images/logo.png +0 -0
  132. package/src/templates/invoice/images/logo.svg +41 -0
  133. package/src/templates/invoice/invoice-details.tsx +231 -0
  134. package/src/templates/invoice/invoice-notes.tsx +74 -0
  135. package/src/templates/invoice/invoice-summary.tsx +135 -0
  136. package/src/templates/invoice/letter-head.tsx +132 -0
  137. package/src/templates/invoice/li.tsx +48 -0
  138. package/src/templates/invoice/platform-and-host-details.tsx +56 -0
  139. package/src/templates/invoice/spacer.tsx +5 -0
  140. package/src/templates/invoice/split-container-items.tsx +80 -0
  141. package/src/templates/invoice/split-container.tsx +35 -0
  142. package/src/templates/invoice/standard-page.tsx +45 -0
  143. package/src/templates/invoice/types.ts +6 -0
  144. package/src/templates/invoice/ul.tsx +19 -0
  145. package/src/templates/invoice/utils.ts +5 -0
  146. package/tsconfig.json +21 -0
  147. package/dist/components/FluxLogo.d.ts +0 -3
  148. package/dist/components/FluxLogo.d.ts.map +0 -1
  149. package/dist/components/FluxLogo.js +0 -66
  150. package/dist/components/FluxLogo.js.map +0 -1
  151. package/dist/components/StandardPage.d.ts +0 -7
  152. package/dist/components/StandardPage.d.ts.map +0 -1
  153. package/dist/components/StandardPage.js +0 -132
  154. package/dist/components/StandardPage.js.map +0 -1
  155. package/dist/index.d.ts +0 -4
  156. package/dist/index.d.ts.map +0 -1
  157. package/dist/index.js +0 -3
  158. package/dist/index.js.map +0 -1
  159. package/dist/templates/QuotationPdf/CustomerSubscriptionSection.d.ts +0 -10
  160. package/dist/templates/QuotationPdf/CustomerSubscriptionSection.d.ts.map +0 -1
  161. package/dist/templates/QuotationPdf/CustomerSubscriptionSection.js +0 -165
  162. package/dist/templates/QuotationPdf/CustomerSubscriptionSection.js.map +0 -1
  163. package/dist/templates/QuotationPdf/GFV.d.ts +0 -10
  164. package/dist/templates/QuotationPdf/GFV.d.ts.map +0 -1
  165. package/dist/templates/QuotationPdf/GFV.js +0 -61
  166. package/dist/templates/QuotationPdf/GFV.js.map +0 -1
  167. package/dist/templates/QuotationPdf/Header.d.ts +0 -9
  168. package/dist/templates/QuotationPdf/Header.d.ts.map +0 -1
  169. package/dist/templates/QuotationPdf/Header.js +0 -71
  170. package/dist/templates/QuotationPdf/Header.js.map +0 -1
  171. package/dist/templates/QuotationPdf/Pricing.d.ts +0 -10
  172. package/dist/templates/QuotationPdf/Pricing.d.ts.map +0 -1
  173. package/dist/templates/QuotationPdf/Pricing.js +0 -723
  174. package/dist/templates/QuotationPdf/Pricing.js.map +0 -1
  175. package/dist/templates/QuotationPdf/QuotationPdfPage.d.ts +0 -8
  176. package/dist/templates/QuotationPdf/QuotationPdfPage.d.ts.map +0 -1
  177. package/dist/templates/QuotationPdf/QuotationPdfPage.js +0 -30
  178. package/dist/templates/QuotationPdf/QuotationPdfPage.js.map +0 -1
  179. package/dist/templates/QuotationPdf/SectionBoxNew.d.ts +0 -9
  180. package/dist/templates/QuotationPdf/SectionBoxNew.d.ts.map +0 -1
  181. package/dist/templates/QuotationPdf/SectionBoxNew.js +0 -38
  182. package/dist/templates/QuotationPdf/SectionBoxNew.js.map +0 -1
  183. package/dist/templates/QuotationPdf/TermsSection.d.ts +0 -8
  184. package/dist/templates/QuotationPdf/TermsSection.d.ts.map +0 -1
  185. package/dist/templates/QuotationPdf/TermsSection.js +0 -50
  186. package/dist/templates/QuotationPdf/TermsSection.js.map +0 -1
  187. package/dist/templates/QuotationPdf/VehiclePhotos.d.ts +0 -10
  188. package/dist/templates/QuotationPdf/VehiclePhotos.d.ts.map +0 -1
  189. package/dist/templates/QuotationPdf/VehiclePhotos.js +0 -66
  190. package/dist/templates/QuotationPdf/VehiclePhotos.js.map +0 -1
  191. package/dist/templates/QuotationPdf/index.d.ts +0 -12
  192. package/dist/templates/QuotationPdf/index.d.ts.map +0 -1
  193. package/dist/templates/QuotationPdf/index.js +0 -214
  194. package/dist/templates/QuotationPdf/index.js.map +0 -1
  195. package/dist/templates/QuotationPdf/translations.d.ts +0 -68
  196. package/dist/templates/QuotationPdf/translations.d.ts.map +0 -1
  197. package/dist/templates/QuotationPdf/translations.js +0 -101
  198. package/dist/templates/QuotationPdf/translations.js.map +0 -1
  199. package/dist/templates/QuotationPdf/utils.d.ts +0 -14
  200. package/dist/templates/QuotationPdf/utils.d.ts.map +0 -1
  201. package/dist/templates/QuotationPdf/utils.js +0 -152
  202. package/dist/templates/QuotationPdf/utils.js.map +0 -1
  203. package/dist/templates/SubscriptionAgreement/Confirmation.d.ts +0 -12
  204. package/dist/templates/SubscriptionAgreement/Confirmation.d.ts.map +0 -1
  205. package/dist/templates/SubscriptionAgreement/Confirmation.js +0 -80
  206. package/dist/templates/SubscriptionAgreement/Confirmation.js.map +0 -1
  207. package/dist/templates/SubscriptionAgreement/CoverPage.d.ts +0 -14
  208. package/dist/templates/SubscriptionAgreement/CoverPage.d.ts.map +0 -1
  209. package/dist/templates/SubscriptionAgreement/CoverPage.js +0 -111
  210. package/dist/templates/SubscriptionAgreement/CoverPage.js.map +0 -1
  211. package/dist/templates/SubscriptionAgreement/CoverPageSection.d.ts +0 -7
  212. package/dist/templates/SubscriptionAgreement/CoverPageSection.d.ts.map +0 -1
  213. package/dist/templates/SubscriptionAgreement/CoverPageSection.js +0 -25
  214. package/dist/templates/SubscriptionAgreement/CoverPageSection.js.map +0 -1
  215. package/dist/templates/SubscriptionAgreement/Details.d.ts +0 -10
  216. package/dist/templates/SubscriptionAgreement/Details.d.ts.map +0 -1
  217. package/dist/templates/SubscriptionAgreement/Details.js +0 -223
  218. package/dist/templates/SubscriptionAgreement/Details.js.map +0 -1
  219. package/dist/templates/SubscriptionAgreement/Footer.d.ts +0 -10
  220. package/dist/templates/SubscriptionAgreement/Footer.d.ts.map +0 -1
  221. package/dist/templates/SubscriptionAgreement/Footer.js +0 -58
  222. package/dist/templates/SubscriptionAgreement/Footer.js.map +0 -1
  223. package/dist/templates/SubscriptionAgreement/Header.d.ts +0 -10
  224. package/dist/templates/SubscriptionAgreement/Header.d.ts.map +0 -1
  225. package/dist/templates/SubscriptionAgreement/Header.js +0 -46
  226. package/dist/templates/SubscriptionAgreement/Header.js.map +0 -1
  227. package/dist/templates/SubscriptionAgreement/LabelValue.d.ts +0 -8
  228. package/dist/templates/SubscriptionAgreement/LabelValue.d.ts.map +0 -1
  229. package/dist/templates/SubscriptionAgreement/LabelValue.js +0 -29
  230. package/dist/templates/SubscriptionAgreement/LabelValue.js.map +0 -1
  231. package/dist/templates/SubscriptionAgreement/SubscriptionAgreementPage.d.ts +0 -10
  232. package/dist/templates/SubscriptionAgreement/SubscriptionAgreementPage.d.ts.map +0 -1
  233. package/dist/templates/SubscriptionAgreement/SubscriptionAgreementPage.js +0 -33
  234. package/dist/templates/SubscriptionAgreement/SubscriptionAgreementPage.js.map +0 -1
  235. package/dist/templates/SubscriptionAgreement/TermsOfUse.d.ts +0 -8
  236. package/dist/templates/SubscriptionAgreement/TermsOfUse.d.ts.map +0 -1
  237. package/dist/templates/SubscriptionAgreement/TermsOfUse.js +0 -101
  238. package/dist/templates/SubscriptionAgreement/TermsOfUse.js.map +0 -1
  239. package/dist/templates/SubscriptionAgreement/TermsOfUseSubSection.d.ts +0 -12
  240. package/dist/templates/SubscriptionAgreement/TermsOfUseSubSection.d.ts.map +0 -1
  241. package/dist/templates/SubscriptionAgreement/TermsOfUseSubSection.js +0 -103
  242. package/dist/templates/SubscriptionAgreement/TermsOfUseSubSection.js.map +0 -1
  243. package/dist/templates/SubscriptionAgreement/index.d.ts +0 -13
  244. package/dist/templates/SubscriptionAgreement/index.d.ts.map +0 -1
  245. package/dist/templates/SubscriptionAgreement/index.js +0 -271
  246. package/dist/templates/SubscriptionAgreement/index.js.map +0 -1
  247. package/dist/templates/SubscriptionAgreement/translations.d.ts +0 -78
  248. package/dist/templates/SubscriptionAgreement/translations.d.ts.map +0 -1
  249. package/dist/templates/SubscriptionAgreement/translations.js +0 -662
  250. package/dist/templates/SubscriptionAgreement/translations.js.map +0 -1
  251. package/dist/templates/SubscriptionAgreement/types.d.ts +0 -7
  252. package/dist/templates/SubscriptionAgreement/types.d.ts.map +0 -1
  253. package/dist/templates/SubscriptionAgreement/types.js +0 -1
  254. package/dist/templates/SubscriptionAgreement/types.js.map +0 -1
  255. package/dist/templates/SubscriptionAgreement/utils.d.ts +0 -6
  256. package/dist/templates/SubscriptionAgreement/utils.d.ts.map +0 -1
  257. package/dist/templates/SubscriptionAgreement/utils.js +0 -37
  258. package/dist/templates/SubscriptionAgreement/utils.js.map +0 -1
  259. package/dist/templates/index.d.ts +0 -3
  260. package/dist/templates/index.d.ts.map +0 -1
  261. package/dist/templates/index.js +0 -2
  262. package/dist/templates/index.js.map +0 -1
  263. package/dist/theme/colors.d.ts +0 -148
  264. package/dist/theme/colors.d.ts.map +0 -1
  265. package/dist/theme/colors.js +0 -137
  266. package/dist/theme/colors.js.map +0 -1
  267. package/dist/theme/index.d.ts +0 -2
  268. package/dist/theme/index.d.ts.map +0 -1
  269. package/dist/theme/index.js +0 -1
  270. package/dist/theme/index.js.map +0 -1
  271. package/dist/types.d.ts +0 -2
  272. package/dist/types.d.ts.map +0 -1
  273. package/dist/types.js +0 -1
  274. package/dist/types.js.map +0 -1
  275. package/dist/utils.d.ts +0 -10
  276. package/dist/utils.d.ts.map +0 -1
  277. package/dist/utils.js +0 -175
  278. package/dist/utils.js.map +0 -1
  279. package/dist/watch.d.ts +0 -2
  280. package/dist/watch.d.ts.map +0 -1
  281. package/dist/watch.js +0 -11
  282. package/dist/watch.js.map +0 -1
@@ -1,101 +0,0 @@
1
- var enTranslation = {
2
- quotation: 'Quotation',
3
- date: 'Date',
4
- customer: {
5
- title: 'Customer',
6
- name: 'Name',
7
- email: 'Email',
8
- address: 'Address'
9
- },
10
- subscription: {
11
- title: 'Subscription',
12
- vehicleName: 'Vehicle',
13
- plan: 'Subscription Plan',
14
- mileagePackage: 'Mileage Package'
15
- },
16
- subIncludes: {
17
- title: "What's Included:",
18
- content: [
19
- 'Comprehensive insurance',
20
- 'Road tax',
21
- 'Regularly scheduled maintenance',
22
- 'Selective wear & tear',
23
- 'Ability to swap vehicles',
24
- 'Doorstep delivery',
25
- '24/7 nationwide roadside assistance',
26
- 'Theft recovery services',
27
- 'Independently rated vehicle inspection',
28
- 'Option to purchase the vehicle at the end of the subscription'
29
- ],
30
- excessMileage: {
31
- title: 'Excess Mileage Fees',
32
- description: function description(excessMileage) {
33
- return "If usage exceeds chosen mileage package, excess mileage fees for this vehicle is RM".concat(excessMileage, " per KM.");
34
- }
35
- }
36
- },
37
- pricing: {
38
- title: 'Pricing',
39
- serviceFee: 'Service Fee',
40
- fees: {
41
- upfront: {
42
- title: 'Upfront Fees',
43
- content: [
44
- {
45
- title: 'Booking Fee',
46
- key: 'reservationFee'
47
- },
48
- {
49
- title: 'Refundable Deposit*',
50
- key: 'deposit'
51
- }
52
- ],
53
- depositDisclaimer: '* The deposit will be refunded to you once the finalization upon your FLUX car is done excluding any service fee, tax, damages, fines, penalties or excess mileage charges that have incurred'
54
- },
55
- monthly: {
56
- title: 'Monthly Fees',
57
- content: [
58
- {
59
- title: 'Subscription Fee',
60
- key: 'subscriptionFee'
61
- }
62
- ]
63
- },
64
- dueToday: {
65
- title: 'Due Today',
66
- description: 'Grand Total is due before your subscription start. Monthly fee is due on the first day of every cycle period.',
67
- subTotal: 'Upfront Fees + Monthly Fee',
68
- grandTotal: 'Grand Total'
69
- },
70
- extraCharge: 'Extra Charge',
71
- promo: 'Promo',
72
- gfv: {
73
- title: 'Guaranteed Future Value (GFV)'
74
- },
75
- totalDiscount: 'Total Discount'
76
- }
77
- },
78
- terms: {
79
- title: 'Terms',
80
- content: [
81
- 'This quotation is valid for 7 days.',
82
- 'All vehicles proposed are unique and are available to our customers on a first come first served basis.',
83
- 'The Mileage Package is the monthly mileage cap for the vehicle. If you exceed this cap for any given month, excess mileage charges will be incurred.',
84
- 'Initial payment to be made within 7 days of the invoice date.',
85
- 'Subscription starts on the date of the car delivery.',
86
- 'The upfront fees are billed one-time per subscription, before the subscription starts.',
87
- 'All monthly recurring fees are billed on the same date as the delivery of the vehicle.',
88
- 'Scheduling delivery will only commence Grand Total is fully paid, 7 - 30+ days after payment and subject to vehicle availability.',
89
- 'Guaranteed Future Value prices are not inclusive of processing fees'
90
- ]
91
- },
92
- vehiclePhotos: {
93
- title: 'Vehicle Photos'
94
- }
95
- };
96
- export var useTranslations = function useTranslations(locale) {
97
- var translation = {
98
- en: enTranslation
99
- };
100
- return translation[locale];
101
- };
@@ -1 +0,0 @@
1
- {"version":3,"file":"translations.js","sourceRoot":"","sources":["../../../src/templates/QuotationPdf/translations.ts"],"names":[],"mappings":"AAAA,MAAM,aAAa,GAAG;IACrB,SAAS,EAAE,WAAW;IACtB,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE;QACT,KAAK,EAAE,UAAU;QACjB,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,OAAO;QACd,OAAO,EAAE,SAAS;KAClB;IACD,YAAY,EAAE;QACb,KAAK,EAAE,cAAc;QACrB,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,mBAAmB;QACzB,cAAc,EAAE,iBAAiB;KACjC;IACD,WAAW,EAAE;QACZ,KAAK,EAAE,kBAAkB;QACzB,OAAO,EAAE;YACR,yBAAyB;YACzB,UAAU;YACV,iCAAiC;YACjC,uBAAuB;YACvB,0BAA0B;YAC1B,mBAAmB;YACnB,qCAAqC;YACrC,yBAAyB;YACzB,wCAAwC;YACxC,+DAA+D;SAC/D;QACD,aAAa,EAAE;YACd,KAAK,EAAE,qBAAqB;YAC5B,WAAW,EAAE,CAAC,aAAqB,EAAE,EAAE,CACtC,sFAAsF,aAAa,UAAU;SAC9G;KACD;IACD,OAAO,EAAE;QACR,KAAK,EAAE,SAAS;QAChB,UAAU,EAAE,aAAa;QACzB,IAAI,EAAE;YACL,OAAO,EAAE;gBACR,KAAK,EAAE,cAAc;gBACrB,OAAO,EAAE;oBACR,EAAE,KAAK,EAAE,aAAa,EAAE,GAAG,EAAE,gBAAgB,EAAE;oBAC/C,EAAE,KAAK,EAAE,qBAAqB,EAAE,GAAG,EAAE,SAAS,EAAE;iBAChD;gBACD,iBAAiB,EAChB,+LAA+L;aAChM;YACD,OAAO,EAAE;gBACR,KAAK,EAAE,cAAc;gBACrB,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,kBAAkB,EAAE,GAAG,EAAE,iBAAiB,EAAE,CAAC;aAChE;YACD,QAAQ,EAAE;gBACT,KAAK,EAAE,WAAW;gBAClB,WAAW,EACV,+GAA+G;gBAChH,QAAQ,EAAE,4BAA4B;gBACtC,UAAU,EAAE,aAAa;aACzB;YACD,WAAW,EAAE,cAAc;YAC3B,KAAK,EAAE,OAAO;YACd,GAAG,EAAE;gBACJ,KAAK,EAAE,+BAA+B;aACtC;YACD,aAAa,EAAE,gBAAgB;SAC/B;KACD;IACD,KAAK,EAAE;QACN,KAAK,EAAE,OAAO;QACd,OAAO,EAAE;YACR,qCAAqC;YACrC,yGAAyG;YACzG,sJAAsJ;YACtJ,+DAA+D;YAC/D,sDAAsD;YACtD,wFAAwF;YACxF,wFAAwF;YACxF,mIAAmI;YACnI,qEAAqE;SACrE;KACD;IACD,aAAa,EAAE;QACd,KAAK,EAAE,gBAAgB;KACvB;CACD,CAAA;AAID,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,MAAY,EAA2B,EAAE;IACxE,MAAM,WAAW,GAAG;QACnB,EAAE,EAAE,aAAa;KACjB,CAAA;IACD,OAAO,WAAW,CAAC,MAAM,CAAC,CAAA;AAC3B,CAAC,CAAA"}
@@ -1,14 +0,0 @@
1
- import type { DiscountType, MileagePackage, PlanType, VehicleType } from '@driveflux/db';
2
- import type { INSPECTION_TYPES } from '@driveflux/db/models/vehicle';
3
- import type { Address } from '@driveflux/db/types/helpers';
4
- export declare const formatAddress: (originalAddress: Address) => string;
5
- export declare const getSimplifiedPlanTranslation: (plan: PlanType) => "60 Months" | "36 Months" | "24 Months" | "12 Months" | "Monthly" | "Weekly" | "Unknown Plan";
6
- export declare const getMileagePackageTranslation: (mileagePackage?: MileagePackage) => "Unknown Mileage Package" | "Lite" | "Standard" | "Plus" | "Unlimited";
7
- export declare const getFullMileagePackageTranslation: (plan?: MileagePackage | null) => "Unknown Mileage Package" | "Unlimited" | "Lite - 1,250KM" | "Standard - 2,000KM" | "Plus - 2,750KM";
8
- export declare const getPromoNotes: (amount: number, discount: {
9
- discountType: DiscountType;
10
- discountValue: number;
11
- maxRedemptions: number;
12
- }) => string;
13
- export declare const getInspectionTypeTranslation: (inspectionType?: (typeof INSPECTION_TYPES)[VehicleType][number]) => "Unknown Inspection Type" | "Exterior" | "Interior" | "Engine" | "Frame" | "Dashboard";
14
- //# sourceMappingURL=utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/templates/QuotationPdf/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,YAAY,EACZ,cAAc,EACd,QAAQ,EACR,WAAW,EACX,MAAM,eAAe,CAAA;AACtB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;AACpE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAA;AAG1D,eAAO,MAAM,aAAa,GAAI,iBAAiB,OAAO,WAMrD,CAAA;AAED,eAAO,MAAM,4BAA4B,GAAI,MAAM,QAAQ,kGAmB1D,CAAA;AAED,eAAO,MAAM,4BAA4B,GACxC,iBAAiB,cAAc,2EAoB/B,CAAA;AAED,eAAO,MAAM,gCAAgC,GAC5C,OAAO,cAAc,GAAG,IAAI,yGAmB5B,CAAA;AACD,eAAO,MAAM,aAAa,GACzB,QAAQ,MAAM,EACd,UAAU;IACT,YAAY,EAAE,YAAY,CAAA;IAC1B,aAAa,EAAE,MAAM,CAAA;IACrB,cAAc,EAAE,MAAM,CAAA;CACtB,WAsBD,CAAA;AAED,eAAO,MAAM,4BAA4B,GACxC,iBAAiB,CAAC,OAAO,gBAAgB,EAAE,WAAW,CAAC,CAAC,MAAM,CAAC,2FAqB/D,CAAA"}
@@ -1,152 +0,0 @@
1
- function _object_without_properties(source, excluded) {
2
- if (source == null) return {};
3
- var target = {}, sourceKeys, key, i;
4
- if (typeof Reflect !== "undefined" && Reflect.ownKeys) {
5
- sourceKeys = Reflect.ownKeys(Object(source));
6
- for(i = 0; i < sourceKeys.length; i++){
7
- key = sourceKeys[i];
8
- if (excluded.indexOf(key) >= 0) continue;
9
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
10
- target[key] = source[key];
11
- }
12
- return target;
13
- }
14
- target = _object_without_properties_loose(source, excluded);
15
- if (Object.getOwnPropertySymbols) {
16
- sourceKeys = Object.getOwnPropertySymbols(source);
17
- for(i = 0; i < sourceKeys.length; i++){
18
- key = sourceKeys[i];
19
- if (excluded.indexOf(key) >= 0) continue;
20
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
21
- target[key] = source[key];
22
- }
23
- }
24
- return target;
25
- }
26
- function _object_without_properties_loose(source, excluded) {
27
- if (source == null) return {};
28
- var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
29
- for(i = 0; i < sourceKeys.length; i++){
30
- key = sourceKeys[i];
31
- if (excluded.indexOf(key) >= 0) continue;
32
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
33
- target[key] = source[key];
34
- }
35
- return target;
36
- }
37
- import { formatMoney } from '@driveflux/format-money';
38
- export var formatAddress = function formatAddress(originalAddress) {
39
- var coordinates = originalAddress.coordinates, address = _object_without_properties(originalAddress, [
40
- "coordinates"
41
- ]);
42
- return Object.keys(address).filter(function(key) {
43
- return key !== 'name' && !!address[key];
44
- }).map(function(a) {
45
- return address[a];
46
- }).join(', ');
47
- };
48
- export var getSimplifiedPlanTranslation = function getSimplifiedPlanTranslation(plan) {
49
- switch(plan){
50
- case 'plan60':
51
- return '60 Months';
52
- case 'plan36':
53
- return '36 Months';
54
- case 'plan24':
55
- return '24 Months';
56
- case 'plan12':
57
- return '12 Months';
58
- case 'plan1':
59
- return 'Monthly';
60
- case 'planWeekly':
61
- return 'Weekly';
62
- default:
63
- {
64
- var _exhaustiveCheck = plan;
65
- return 'Unknown Plan';
66
- }
67
- }
68
- };
69
- export var getMileagePackageTranslation = function getMileagePackageTranslation(mileagePackage) {
70
- if (!mileagePackage) {
71
- return 'Unknown Mileage Package';
72
- }
73
- switch(mileagePackage){
74
- case 'lite':
75
- return 'Lite';
76
- case 'standard':
77
- return 'Standard';
78
- case 'plus':
79
- return 'Plus';
80
- case 'unlimited':
81
- return 'Unlimited';
82
- default:
83
- {
84
- var _exhaustiveCheck = mileagePackage;
85
- return 'Unknown Mileage Package';
86
- }
87
- }
88
- };
89
- export var getFullMileagePackageTranslation = function getFullMileagePackageTranslation(plan) {
90
- if (!plan) {
91
- return 'Unknown Mileage Package';
92
- }
93
- switch(plan){
94
- case 'lite':
95
- return 'Lite - 1,250KM';
96
- case 'standard':
97
- return 'Standard - 2,000KM';
98
- case 'plus':
99
- return 'Plus - 2,750KM';
100
- case 'unlimited':
101
- return 'Unlimited';
102
- default:
103
- {
104
- var _exhaustiveCheck = plan;
105
- return 'Unknown Mileage Package';
106
- }
107
- }
108
- };
109
- export var getPromoNotes = function getPromoNotes(amount, discount) {
110
- var discountType = discount.discountType, discountValue = discount.discountValue, maxRedemptions = discount.maxRedemptions;
111
- switch(discountType){
112
- case 'percentage':
113
- return "Enjoy ".concat(discountValue * 100, "% off for ").concat(maxRedemptions, " month(s) for this vehicle.");
114
- case 'fixed':
115
- {
116
- var money = formatMoney(discountValue);
117
- return amount <= 0 ? "Enjoy free for ".concat(maxRedemptions, " month(s).") : "Enjoy ".concat(money, " off for the first ").concat(maxRedemptions, " month(s), then your subscription will switch to the regular price.");
118
- }
119
- case 'forceAmount':
120
- {
121
- var money1 = formatMoney(Math.min(amount, discountValue));
122
- return "Enjoy only ".concat(money1, " for ").concat(maxRedemptions, " month(s), then your subscription will switch to the regular price.");
123
- }
124
- default:
125
- {
126
- var _exhaustiveCheck = discountType;
127
- return 'Unknown Discount Type';
128
- }
129
- }
130
- };
131
- export var getInspectionTypeTranslation = function getInspectionTypeTranslation(inspectionType) {
132
- if (!inspectionType) {
133
- return 'Unknown Inspection Type';
134
- }
135
- switch(inspectionType){
136
- case 'exterior':
137
- return 'Exterior';
138
- case 'interior':
139
- return 'Interior';
140
- case 'engine':
141
- return 'Engine';
142
- case 'frame':
143
- return 'Frame';
144
- case 'dashboard':
145
- return 'Dashboard';
146
- default:
147
- {
148
- var _exhaustiveCheck = inspectionType;
149
- return inspectionType;
150
- }
151
- }
152
- };
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/templates/QuotationPdf/utils.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAErD,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,eAAwB,EAAE,EAAE;IACzD,MAAM,EAAE,WAAW,EAAE,GAAG,OAAO,EAAE,GAAG,eAAe,CAAA;IACnD,OAAQ,MAAM,CAAC,IAAI,CAAC,OAAO,CAAiC;SAC1D,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,KAAK,MAAM,IAAI,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;SACjD,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;SACtB,IAAI,CAAC,IAAI,CAAC,CAAA;AACb,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,IAAc,EAAE,EAAE;IAC9D,QAAQ,IAAI,EAAE,CAAC;QACd,KAAK,QAAQ;YACZ,OAAO,WAAW,CAAA;QACnB,KAAK,QAAQ;YACZ,OAAO,WAAW,CAAA;QACnB,KAAK,QAAQ;YACZ,OAAO,WAAW,CAAA;QACnB,KAAK,QAAQ;YACZ,OAAO,WAAW,CAAA;QACnB,KAAK,OAAO;YACX,OAAO,SAAS,CAAA;QACjB,KAAK,YAAY;YAChB,OAAO,QAAQ,CAAA;QAChB,OAAO,CAAC,CAAC,CAAC;YACT,MAAM,gBAAgB,GAAU,IAAI,CAAA;Y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a,cAAc,6BAA6B,CAAA;QAC5F,KAAK,OAAO,CAAC,CAAC,CAAC;YACd,MAAM,KAAK,GAAG,WAAW,CAAC,aAAa,CAAC,CAAA;YACxC,OAAO,MAAM,IAAI,CAAC;gBACjB,CAAC,CAAC,kBAAkB,cAAc,YAAY;gBAC9C,CAAC,CAAC,SAAS,KAAK,sBAAsB,cAAc,qEAAqE,CAAA;QAC3H,CAAC;QACD,KAAK,aAAa,CAAC,CAAC,CAAC;YACpB,MAAM,KAAK,GAAG,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,CAAA;YAC1D,OAAO,cAAc,KAAK,QAAQ,cAAc,qEAAqE,CAAA;QACtH,CAAC;QACD,OAAO,CAAC,CAAC,CAAC;YACT,MAAM,gBAAgB,GAAU,YAAY,CAAA;YAC5C,OAAO,uBAAuB,CAAA;QAC/B,CAAC;IACF,CAAC;AACF,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAC3C,cAA+D,EAC9D,EAAE;IACH,IAAI,CAAC,cAAc,EAAE,CAAC;QACrB,OAAO,yBAAyB,CAAA;IACjC,CAAC;IACD,QAAQ,cAAc,EAAE,CAAC;QACxB,KAAK,UAAU;YACd,OAAO,UAAU,CAAA;QAClB,KAAK,UAAU;YACd,OAAO,UAAU,CAAA;QAClB,KAAK,QAAQ;YACZ,OAAO,QAAQ,CAAA;QAChB,KAAK,OAAO;YACX,OAAO,OAAO,CAAA;QACf,KAAK,WAAW;YACf,OAAO,WAAW,CAAA;QACnB,OAAO,CAAC,CAAC,CAAC;YACT,MAAM,gBAAgB,GAAU,cAAc,CAAA;YAC9C,OAAO,cAAc,CAAA;QACtB,CAAC;IACF,CAAC;AACF,CAAC,CAAA"}
@@ -1,12 +0,0 @@
1
- import type { SubscriptionSignature } from '@driveflux/db';
2
- import type { SubscriptionWithUser, SubscriptionWithVehicle } from '@driveflux/db/types';
3
- import type { FC } from 'react';
4
- import type { SubscriptionAgreementTranslation } from './translations.js';
5
- type Props = {
6
- tConfirmation: SubscriptionAgreementTranslation['confirmation'];
7
- subscription: SubscriptionWithUser & SubscriptionWithVehicle;
8
- signature: SubscriptionSignature;
9
- };
10
- declare const Confirmation: FC<Props>;
11
- export default Confirmation;
12
- //# sourceMappingURL=Confirmation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Confirmation.d.ts","sourceRoot":"","sources":["../../../src/templates/SubscriptionAgreement/Confirmation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAA;AAE1D,OAAO,KAAK,EACX,oBAAoB,EACpB,uBAAuB,EACvB,MAAM,qBAAqB,CAAA;AAG5B,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAG/B,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,mBAAmB,CAAA;AAEzE,KAAK,KAAK,GAAG;IACZ,aAAa,EAAE,gCAAgC,CAAC,cAAc,CAAC,CAAA;IAC/D,YAAY,EAAE,oBAAoB,GAAG,uBAAuB,CAAA;IAC5D,SAAS,EAAE,qBAAqB,CAAA;CAChC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,EAAE,CAAC,KAAK,CAgE3B,CAAA;AAED,eAAe,YAAY,CAAA"}
@@ -1,80 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { userName } from '@driveflux/db/models/user';
3
- import { Image, Text, View } from '@react-pdf/renderer';
4
- import { format } from 'date-fns';
5
- import { colors } from '../../theme/index.js';
6
- import LabelValue from './LabelValue.js';
7
- var Confirmation = function Confirmation(param) {
8
- var tConfirmation = param.tConfirmation, subscription = param.subscription, signature = param.signature;
9
- var _subscription_user_identification;
10
- if (!signature.signature) {
11
- throw new Error('Missing signature');
12
- }
13
- var border = "1px solid ".concat(colors.primary2);
14
- return /*#__PURE__*/ _jsxs(View, {
15
- style: {
16
- borderLeft: border,
17
- borderRight: border,
18
- borderBottom: border
19
- },
20
- children: [
21
- /*#__PURE__*/ _jsx(View, {
22
- style: {
23
- backgroundColor: colors.primary1,
24
- borderTop: border,
25
- padding: 8
26
- },
27
- children: /*#__PURE__*/ _jsx(Text, {
28
- style: {
29
- fontWeight: 'bold',
30
- textTransform: 'uppercase',
31
- letterSpacing: 1
32
- },
33
- children: tConfirmation.title
34
- })
35
- }),
36
- /*#__PURE__*/ _jsxs(View, {
37
- style: {
38
- padding: 8,
39
- paddingBottom: 16,
40
- rowGap: 8,
41
- borderTop: border
42
- },
43
- children: [
44
- /*#__PURE__*/ _jsx(Text, {
45
- children: tConfirmation.agreementText(subscription.businessId ? 'business' : 'member')
46
- }),
47
- /*#__PURE__*/ _jsx(View, {
48
- style: {
49
- height: 160,
50
- alignItems: 'flex-start'
51
- },
52
- children: /*#__PURE__*/ _jsx(Image, {
53
- src: signature.signature || ''
54
- })
55
- }),
56
- /*#__PURE__*/ _jsxs(View, {
57
- style: {
58
- rowGap: 8
59
- },
60
- children: [
61
- /*#__PURE__*/ _jsx(LabelValue, {
62
- label: tConfirmation.name,
63
- value: userName(subscription.user)
64
- }),
65
- /*#__PURE__*/ _jsx(LabelValue, {
66
- label: tConfirmation.idOrPassportNo,
67
- value: (_subscription_user_identification = subscription.user.identification) === null || _subscription_user_identification === void 0 ? void 0 : _subscription_user_identification.number
68
- }),
69
- /*#__PURE__*/ _jsx(LabelValue, {
70
- label: tConfirmation.date,
71
- value: signature.signedAt ? format(signature.signedAt, 'dd-MM-yyyy hh:mm a') : undefined
72
- })
73
- ]
74
- })
75
- ]
76
- })
77
- ]
78
- });
79
- };
80
- export default Confirmation;
@@ -1 +0,0 @@
1
- {"version":3,"file":"Confirmation.js","sourceRoot":"","sources":["../../../src/templates/SubscriptionAgreement/Confirmation.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAA;AAKpD,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,IAA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,SAAS,IAAI,EAAE,GAAI,GACnC,EACP,MAAC,IAAI,IAAC,KAAK,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,aACzB,KAAC,UAAU,IACV,KAAK,EAAE,aAAa,CAAC,IAAI,EACzB,KAAK,EAAE,QAAQ,CAAC,YAAY,CAAC,IAAI,CAAC,GACjC,EACF,KAAC,UAAU,IACV,KAAK,EAAE,aAAa,CAAC,cAAc,EACnC,KAAK,EAAE,YAAY,CAAC,IAAI,CAAC,cAAc,EAAE,MAAM,GAC9C,EACF,KAAC,UAAU,IACV,KAAK,EAAE,aAAa,CAAC,IAAI,EACzB,KAAK,EACJ,SAAS,CAAC,QAAQ;oCACjB,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,QAAQ,EAAE,oBAAoB,CAAC;oCAClD,CAAC,CAAC,SAAS,GAEZ,IACI,IACD,IACD,CACP,CAAA;AACF,CAAC,CAAA;AAED,eAAe,YAAY,CAAA"}
@@ -1,14 +0,0 @@
1
- import type { Business, PayerType, User } from '@driveflux/db';
2
- import type { FC } from 'react';
3
- import type { SubscriptionAgreementTranslation } from './translations.js';
4
- type Props = {
5
- tTitle: SubscriptionAgreementTranslation['title'];
6
- tCover: SubscriptionAgreementTranslation['cover'];
7
- signedAt: Date;
8
- user: User;
9
- payerType: PayerType;
10
- business?: Business;
11
- };
12
- declare const CoverPage: FC<Props>;
13
- export default CoverPage;
14
- //# sourceMappingURL=CoverPage.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CoverPage.d.ts","sourceRoot":"","sources":["../../../src/templates/SubscriptionAgreement/CoverPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAI9D,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAI/B,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,mBAAmB,CAAA;AAEzE,KAAK,KAAK,GAAG;IACZ,MAAM,EAAE,gCAAgC,CAAC,OAAO,CAAC,CAAA;IACjD,MAAM,EAAE,gCAAgC,CAAC,OAAO,CAAC,CAAA;IACjD,QAAQ,EAAE,IAAI,CAAA;IACd,IAAI,EAAE,IAAI,CAAA;IACV,SAAS,EAAE,SAAS,CAAA;IACpB,QAAQ,CAAC,EAAE,QAAQ,CAAA;CACnB,CAAA;AAED,QAAA,MAAM,SAAS,EAAE,EAAE,CAAC,KAAK,CA6ExB,CAAA;AAED,eAAe,SAAS,CAAA"}
@@ -1,111 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { userName } from '@driveflux/db/models/user';
3
- import { Text, View } from '@react-pdf/renderer';
4
- import { format } from 'date-fns';
5
- import { colors } from '../../theme/colors.js';
6
- import CoverPageSection from './CoverPageSection.js';
7
- import LabelValue from './LabelValue.js';
8
- var CoverPage = function CoverPage(param) {
9
- var tTitle = param.tTitle, tCover = param.tCover, signedAt = param.signedAt, user = param.user, payerType = param.payerType, business = param.business;
10
- var _user_identification;
11
- return /*#__PURE__*/ _jsxs(View, {
12
- style: {
13
- flex: 1,
14
- paddingVertical: 80,
15
- justifyContent: 'space-between'
16
- },
17
- children: [
18
- /*#__PURE__*/ _jsx(Text, {
19
- style: {
20
- fontWeight: 'bold',
21
- fontSize: 40,
22
- textTransform: 'uppercase',
23
- flex: 1
24
- },
25
- children: tTitle
26
- }),
27
- /*#__PURE__*/ _jsxs(View, {
28
- style: {
29
- padding: 16,
30
- rowGap: 32,
31
- border: "1px solid ".concat(colors.primary2),
32
- fontSize: 10
33
- },
34
- children: [
35
- /*#__PURE__*/ _jsx(CoverPageSection, {
36
- title: tCover.effectiveDate,
37
- children: /*#__PURE__*/ _jsxs(View, {
38
- style: {
39
- flexDirection: 'row',
40
- columnGap: 4
41
- },
42
- children: [
43
- /*#__PURE__*/ _jsx(Text, {
44
- style: {
45
- textDecoration: 'underline'
46
- },
47
- children: format(signedAt, 'do')
48
- }),
49
- /*#__PURE__*/ _jsx(Text, {
50
- children: tCover.of
51
- }),
52
- /*#__PURE__*/ _jsx(Text, {
53
- style: {
54
- textDecoration: 'underline'
55
- },
56
- children: format(signedAt, 'MMM')
57
- }),
58
- /*#__PURE__*/ _jsx(Text, {
59
- children: format(signedAt, 'yyyy')
60
- })
61
- ]
62
- })
63
- }),
64
- /*#__PURE__*/ _jsxs(CoverPageSection, {
65
- title: tCover.agreementBetween,
66
- children: [
67
- payerType === 'business' && /*#__PURE__*/ _jsxs(_Fragment, {
68
- children: [
69
- /*#__PURE__*/ _jsx(LabelValue, {
70
- label: tCover.companyName,
71
- value: business === null || business === void 0 ? void 0 : business.name
72
- }),
73
- /*#__PURE__*/ _jsx(LabelValue, {
74
- label: tCover.companyNo,
75
- value: business === null || business === void 0 ? void 0 : business.registrationNumber
76
- })
77
- ]
78
- }),
79
- payerType === 'user' && /*#__PURE__*/ _jsxs(_Fragment, {
80
- children: [
81
- /*#__PURE__*/ _jsx(LabelValue, {
82
- label: tCover.name,
83
- value: userName(user)
84
- }),
85
- /*#__PURE__*/ _jsx(LabelValue, {
86
- label: tCover.idOrPassportNo,
87
- value: (_user_identification = user.identification) === null || _user_identification === void 0 ? void 0 : _user_identification.number
88
- })
89
- ]
90
- })
91
- ]
92
- }),
93
- /*#__PURE__*/ _jsx(Text, {
94
- style: {
95
- fontSize: 8,
96
- fontWeight: 'bold',
97
- color: colors.primary3,
98
- textTransform: 'uppercase',
99
- letterSpacing: 1
100
- },
101
- children: tCover.and
102
- }),
103
- /*#__PURE__*/ _jsx(Text, {
104
- children: "FLUX Sdn Bhd (1264766-H)"
105
- })
106
- ]
107
- })
108
- ]
109
- });
110
- };
111
- export default CoverPage;
@@ -1 +0,0 @@
1
- {"version":3,"file":"CoverPage.js","sourceRoot":"","sources":["../../../src/templates/SubscriptionAgreement/CoverPage.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAA;AACpD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GAClB,EACP,KAAC,IAAI,cAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,GAAQ,IACjC,GACW,EACnB,MAAC,gBAAgB,IAAC,KAAK,EAAE,MAAM,CAAC,gBAAgB,aAC9C,SAAS,KAAK,UAAU,IAAI,CAC5B,8BACC,KAAC,UAAU,IAAC,KAAK,EAAE,MAAM,CAAC,WAAW,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,GAAI,EAChE,KAAC,UAAU,IACV,KAAK,EAAE,MAAM,CAAC,SAAS,EACvB,KAAK,EAAE,QAAQ,EAAE,kBAAkB,GAClC,IACA,CACH,EACA,SAAS,KAAK,MAAM,IAAI,CACxB,8BACC,KAAC,UAAU,IAAC,KAAK,EAAE,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,QAAQ,CAAC,IAAI,CAAC,GAAI,EACzD,KAAC,UAAU,IACV,KAAK,EAAE,MAAM,CAAC,cAAc,EAC5B,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,MAAM,GACjC,IACA,CACH,IACiB,EACnB,KAAC,IAAI,IACJ,KAAK,EAAE;4BACN,QAAQ,EAAE,CAAC;4BACX,UAAU,EAAE,MAAM;4BAClB,KAAK,EAAE,MAAM,CAAC,QAAQ;4BACtB,aAAa,EAAE,WAAW;4BAC1B,aAAa,EAAE,CAAC;yBAChB,YAEA,MAAM,CAAC,GAAG,GACL,EACP,KAAC,IAAI,2CAAgC,IAC/B,IACD,CACP,CAAA;AACF,CAAC,CAAA;AAED,eAAe,SAAS,CAAA"}
@@ -1,7 +0,0 @@
1
- import type { FC, PropsWithChildren } from 'react';
2
- type Props = {
3
- title: string;
4
- };
5
- declare const CoverPageSection: FC<PropsWithChildren<Props>>;
6
- export default CoverPageSection;
7
- //# sourceMappingURL=CoverPageSection.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CoverPageSection.d.ts","sourceRoot":"","sources":["../../../src/templates/SubscriptionAgreement/CoverPageSection.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAGlD,KAAK,KAAK,GAAG;IACZ,KAAK,EAAE,MAAM,CAAA;CACb,CAAA;AACD,QAAA,MAAM,gBAAgB,EAAE,EAAE,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAkBlD,CAAA;AAED,eAAe,gBAAgB,CAAA"}
@@ -1,25 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Text, View } from '@react-pdf/renderer';
3
- import { colors } from '../../theme/colors.js';
4
- var CoverPageSection = function CoverPageSection(param) {
5
- var title = param.title, children = param.children;
6
- return /*#__PURE__*/ _jsxs(View, {
7
- style: {
8
- rowGap: 16
9
- },
10
- children: [
11
- /*#__PURE__*/ _jsx(Text, {
12
- style: {
13
- fontSize: 8,
14
- fontWeight: 'bold',
15
- color: colors.primary3,
16
- textTransform: 'uppercase',
17
- letterSpacing: 1
18
- },
19
- children: "".concat(title, ":")
20
- }),
21
- children
22
- ]
23
- });
24
- };
25
- export default CoverPageSection;
@@ -1 +0,0 @@
1
- {"version":3,"file":"CoverPageSection.js","sourceRoot":"","sources":["../../../src/templates/SubscriptionAgreement/CoverPageSection.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;AAEhD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AAK9C,MAAM,gBAAgB,GAAiC,CAAC,EACvD,KAAK,EACL,QAAQ,GACR,EAAE,EAAE;IACJ,OAAO,CACN,MAAC,IAAI,IAAC,KAAK,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,aAC1B,KAAC,IAAI,IACJ,KAAK,EAAE;oBACN,QAAQ,EAAE,CAAC;oBACX,UAAU,EAAE,MAAM;oBAClB,KAAK,EAAE,MAAM,CAAC,QAAQ;oBACtB,aAAa,EAAE,WAAW;oBAC1B,aAAa,EAAE,CAAC;iBAChB,YACA,GAAG,KAAK,GAAG,GAAQ,EACpB,QAAQ,IACH,CACP,CAAA;AACF,CAAC,CAAA;AAED,eAAe,gBAAgB,CAAA"}
@@ -1,10 +0,0 @@
1
- import type { FC } from 'react';
2
- import type { SubscriptionAgreementTranslation } from './translations.js';
3
- import type { SubscriptionForAgreement } from './types.js';
4
- type Props = {
5
- tDetails: SubscriptionAgreementTranslation['details'];
6
- subscription: SubscriptionForAgreement;
7
- };
8
- declare const Details: FC<Props>;
9
- export default Details;
10
- //# sourceMappingURL=Details.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Details.d.ts","sourceRoot":"","sources":["../../../src/templates/SubscriptionAgreement/Details.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAG/B,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,mBAAmB,CAAA;AACzE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAA;AAE1D,KAAK,KAAK,GAAG;IACZ,QAAQ,EAAE,gCAAgC,CAAC,SAAS,CAAC,CAAA;IACrD,YAAY,EAAE,wBAAwB,CAAA;CACtC,CAAA;AAED,QAAA,MAAM,OAAO,EAAE,EAAE,CAAC,KAAK,CAuHtB,CAAA;AAED,eAAe,OAAO,CAAA"}