@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 +0,0 @@
1
- {"version":3,"file":"StandardPage.d.ts","sourceRoot":"","sources":["../../src/components/StandardPage.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAChE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAE9C,KAAK,KAAK,GAAG,SAAS,GAAG,EAAE,CAAA;AA8B3B,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAaxD,CAAA;AAED,eAAe,gBAAgB,CAAA"}
@@ -1,132 +0,0 @@
1
- function _define_property(obj, key, value) {
2
- if (key in obj) {
3
- Object.defineProperty(obj, key, {
4
- value: value,
5
- enumerable: true,
6
- configurable: true,
7
- writable: true
8
- });
9
- } else {
10
- obj[key] = value;
11
- }
12
- return obj;
13
- }
14
- function _object_spread(target) {
15
- for(var i = 1; i < arguments.length; i++){
16
- var source = arguments[i] != null ? arguments[i] : {};
17
- var ownKeys = Object.keys(source);
18
- if (typeof Object.getOwnPropertySymbols === "function") {
19
- ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
20
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
21
- }));
22
- }
23
- ownKeys.forEach(function(key) {
24
- _define_property(target, key, source[key]);
25
- });
26
- }
27
- return target;
28
- }
29
- function ownKeys(object, enumerableOnly) {
30
- var keys = Object.keys(object);
31
- if (Object.getOwnPropertySymbols) {
32
- var symbols = Object.getOwnPropertySymbols(object);
33
- if (enumerableOnly) {
34
- symbols = symbols.filter(function(sym) {
35
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
36
- });
37
- }
38
- keys.push.apply(keys, symbols);
39
- }
40
- return keys;
41
- }
42
- function _object_spread_props(target, source) {
43
- source = source != null ? source : {};
44
- if (Object.getOwnPropertyDescriptors) {
45
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
46
- } else {
47
- ownKeys(Object(source)).forEach(function(key) {
48
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
49
- });
50
- }
51
- return target;
52
- }
53
- function _object_without_properties(source, excluded) {
54
- if (source == null) return {};
55
- var target = {}, sourceKeys, key, i;
56
- if (typeof Reflect !== "undefined" && Reflect.ownKeys) {
57
- sourceKeys = Reflect.ownKeys(Object(source));
58
- for(i = 0; i < sourceKeys.length; i++){
59
- key = sourceKeys[i];
60
- if (excluded.indexOf(key) >= 0) continue;
61
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
62
- target[key] = source[key];
63
- }
64
- return target;
65
- }
66
- target = _object_without_properties_loose(source, excluded);
67
- if (Object.getOwnPropertySymbols) {
68
- sourceKeys = Object.getOwnPropertySymbols(source);
69
- for(i = 0; i < sourceKeys.length; i++){
70
- key = sourceKeys[i];
71
- if (excluded.indexOf(key) >= 0) continue;
72
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
73
- target[key] = source[key];
74
- }
75
- }
76
- return target;
77
- }
78
- function _object_without_properties_loose(source, excluded) {
79
- if (source == null) return {};
80
- var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
81
- for(i = 0; i < sourceKeys.length; i++){
82
- key = sourceKeys[i];
83
- if (excluded.indexOf(key) >= 0) continue;
84
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
85
- target[key] = source[key];
86
- }
87
- return target;
88
- }
89
- import { jsx as _jsx } from "react/jsx-runtime";
90
- import { Font, Page } from '@react-pdf/renderer';
91
- Font.register({
92
- family: 'Figtree',
93
- fonts: [
94
- {
95
- src: 'https://fonts.gstatic.com/s/figtree/v8/_Xmz-HUzqDCFdgfMsYiV_F7wfS-Bs_d_QF5e.ttf',
96
- fontWeight: 'normal'
97
- },
98
- {
99
- src: 'https://fonts.gstatic.com/s/figtree/v8/_Xmz-HUzqDCFdgfMsYiV_F7wfS-Bs_eYR15e.ttf',
100
- fontWeight: 'bold'
101
- },
102
- {
103
- src: 'https://fonts.gstatic.com/s/figtree/v8/_Xm9-HUzqDCFdgfMm4GnA4aZFrUvtOK3A7YdyEU.ttf',
104
- fontWeight: 'normal',
105
- fontStyle: 'italic'
106
- },
107
- {
108
- src: 'https://fonts.gstatic.com/s/figtree/v8/_Xm9-HUzqDCFdgfMm4GnA4aZFrUvtOK3A1EayEU.ttf',
109
- fontWeight: 'bold',
110
- fontStyle: 'italic'
111
- }
112
- ]
113
- });
114
- Font.register({
115
- family: 'Allura',
116
- src: 'https://fonts.gstatic.com/s/allura/v21/9oRPNYsQpS4zjuAPjAIXPtrrGA.ttf'
117
- });
118
- var StandardDocument = function StandardDocument(_0) {
119
- var children = _0.children, style = _0.style, props = _object_without_properties(_0, [
120
- "children",
121
- "style"
122
- ]);
123
- return /*#__PURE__*/ _jsx(Page, _object_spread_props(_object_spread({
124
- style: _object_spread({
125
- fontFamily: 'Figtree',
126
- fontStyle: 'normal'
127
- }, style)
128
- }, props), {
129
- children: children
130
- }));
131
- };
132
- export default StandardDocument;
@@ -1 +0,0 @@
1
- {"version":3,"file":"StandardPage.js","sourceRoot":"","sources":["../../src/components/StandardPage.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,IAAI,EAAkB,MAAM,qBAAqB,CAAA;AAMhE,IAAI,CAAC,QAAQ,CAAC;IACb,MAAM,EAAE,SAAS;IACjB,KAAK,EAAE;QACN;YACC,GAAG,EAAE,iFAAiF;YACtF,UAAU,EAAE,QAAQ;SACpB;QACD;YACC,GAAG,EAAE,iFAAiF;YACtF,UAAU,EAAE,MAAM;SAClB;QACD;YACC,GAAG,EAAE,oFAAoF;YACzF,UAAU,EAAE,QAAQ;YACpB,SAAS,EAAE,QAAQ;SACnB;QACD;YACC,GAAG,EAAE,oFAAoF;YACzF,UAAU,EAAE,MAAM;YAClB,SAAS,EAAE,QAAQ;SACnB;KACD;CACD,CAAC,CAAA;AACF,IAAI,CAAC,QAAQ,CAAC;IACb,MAAM,EAAE,QAAQ;IAChB,GAAG,EAAE,uEAAuE;CAC5E,CAAC,CAAA;AAEF,MAAM,gBAAgB,GAAuC,CAAC,EAC7D,QAAQ,EACR,KAAK,EACL,GAAG,KAAK,EACR,EAAE,EAAE;IACJ,OAAO,CACN,KAAC,IAAI,IACJ,KAAK,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,KAC3D,KAAK,YAER,QAAQ,GACH,CACP,CAAA;AACF,CAAC,CAAA;AAED,eAAe,gBAAgB,CAAA"}
package/dist/index.d.ts DELETED
@@ -1,4 +0,0 @@
1
- export * from './templates/index.js';
2
- export * from './types.js';
3
- export * from './utils.js';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA;AACpC,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA"}
package/dist/index.js DELETED
@@ -1,3 +0,0 @@
1
- export * from './templates/index.js';
2
- export * from './types.js';
3
- export * from './utils.js';
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA;AACpC,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA"}
@@ -1,10 +0,0 @@
1
- import type { FC } from 'react';
2
- import type { QuotationWithCoupon } from './index.js';
3
- import type { QuotationPdfTranslation } from './translations.js';
4
- type Props = {
5
- quotation: QuotationWithCoupon;
6
- t: QuotationPdfTranslation;
7
- };
8
- declare const CustomerSubscriptionSection: FC<Props>;
9
- export default CustomerSubscriptionSection;
10
- //# sourceMappingURL=CustomerSubscriptionSection.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CustomerSubscriptionSection.d.ts","sourceRoot":"","sources":["../../../src/templates/QuotationPdf/CustomerSubscriptionSection.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAE/B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAErD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAA;AAOhE,KAAK,KAAK,GAAG;IACZ,SAAS,EAAE,mBAAmB,CAAA;IAC9B,CAAC,EAAE,uBAAuB,CAAA;CAC1B,CAAA;AAED,QAAA,MAAM,2BAA2B,EAAE,EAAE,CAAC,KAAK,CA4I1C,CAAA;AAED,eAAe,2BAA2B,CAAA"}
@@ -1,165 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { Text, View } from '@react-pdf/renderer';
3
- import { colors } from '../../theme/colors.js';
4
- import SectionBoxNew from './SectionBoxNew.js';
5
- import { formatAddress, getFullMileagePackageTranslation, getSimplifiedPlanTranslation } from './utils.js';
6
- var CustomerSubscriptionSection = function CustomerSubscriptionSection(param) {
7
- var quotation = param.quotation, t = param.t;
8
- var displayContent = function displayContent(label, value) {
9
- var labelColor = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : colors.black, valueColor = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : colors.primary3;
10
- return /*#__PURE__*/ _jsxs(View, {
11
- style: {
12
- gap: 4
13
- },
14
- children: [
15
- /*#__PURE__*/ _jsx(Text, {
16
- style: {
17
- color: labelColor,
18
- letterSpacing: 1
19
- },
20
- children: label
21
- }),
22
- /*#__PURE__*/ _jsx(Text, {
23
- style: {
24
- color: valueColor,
25
- letterSpacing: 1
26
- },
27
- children: value
28
- })
29
- ]
30
- });
31
- };
32
- return /*#__PURE__*/ _jsx(View, {
33
- children: /*#__PURE__*/ _jsx(SectionBoxNew, {
34
- topContent: /*#__PURE__*/ _jsxs(_Fragment, {
35
- children: [
36
- /*#__PURE__*/ _jsx(Text, {
37
- style: {
38
- textTransform: 'uppercase',
39
- fontSize: 12,
40
- fontWeight: 'bold'
41
- },
42
- children: t.customer.title
43
- }),
44
- /*#__PURE__*/ _jsxs(View, {
45
- style: {
46
- flexDirection: 'row',
47
- justifyContent: 'space-between'
48
- },
49
- children: [
50
- displayContent(t.customer.name, quotation.customerName),
51
- quotation.customer.email && displayContent(t.customer.email, quotation.customer.email)
52
- ]
53
- }),
54
- quotation.customer.address && displayContent(t.customer.address, formatAddress(quotation.customer.address))
55
- ]
56
- }),
57
- bottomContent: /*#__PURE__*/ _jsxs(_Fragment, {
58
- children: [
59
- /*#__PURE__*/ _jsx(Text, {
60
- style: {
61
- textTransform: 'uppercase',
62
- fontSize: 12,
63
- fontWeight: 'bold'
64
- },
65
- children: t.subscription.title
66
- }),
67
- /*#__PURE__*/ _jsxs(View, {
68
- style: {
69
- flexDirection: 'row',
70
- justifyContent: 'space-between',
71
- gap: 4
72
- },
73
- children: [
74
- displayContent(t.subscription.vehicleName, quotation.vehicleName),
75
- /*#__PURE__*/ _jsxs(View, {
76
- style: {
77
- justifyContent: 'space-between',
78
- flexDirection: 'row',
79
- gap: 16
80
- },
81
- children: [
82
- displayContent(t.subscription.plan, getSimplifiedPlanTranslation(quotation.plan)),
83
- displayContent(t.subscription.mileagePackage, getFullMileagePackageTranslation(quotation.mileagePackage))
84
- ]
85
- })
86
- ]
87
- }),
88
- /*#__PURE__*/ _jsxs(View, {
89
- style: {
90
- rowGap: 8
91
- },
92
- children: [
93
- /*#__PURE__*/ _jsx(Text, {
94
- style: {
95
- color: colors.primary3,
96
- fontWeight: 'bold',
97
- letterSpacing: 1
98
- },
99
- children: t.subIncludes.title
100
- }),
101
- t.subIncludes.content.map(function(line, i) {
102
- return /*#__PURE__*/ _jsxs(View, {
103
- style: {
104
- flexDirection: 'row',
105
- alignItems: 'flex-start',
106
- rowGap: 8
107
- },
108
- children: [
109
- /*#__PURE__*/ _jsx(Text, {
110
- style: {
111
- marginRight: 4
112
- },
113
- children: "•"
114
- }),
115
- /*#__PURE__*/ _jsx(Text, {
116
- style: {
117
- color: colors.primary3,
118
- letterSpacing: 1
119
- },
120
- children: line
121
- })
122
- ]
123
- }, i);
124
- })
125
- ]
126
- })
127
- ]
128
- }),
129
- children: quotation.mileagePackage !== 'unlimited' && /*#__PURE__*/ _jsxs(_Fragment, {
130
- children: [
131
- /*#__PURE__*/ _jsx(View, {
132
- style: {
133
- borderBottom: "1px solid ".concat(colors.primary2)
134
- }
135
- }),
136
- /*#__PURE__*/ _jsxs(View, {
137
- style: {
138
- padding: 16,
139
- rowGap: 16
140
- },
141
- children: [
142
- /*#__PURE__*/ _jsx(Text, {
143
- style: {
144
- color: colors.primary3,
145
- fontWeight: 'bold',
146
- letterSpacing: 1
147
- },
148
- children: t.subIncludes.excessMileage.title
149
- }),
150
- /*#__PURE__*/ _jsx(Text, {
151
- style: {
152
- fontSize: '9px',
153
- color: colors.primary3,
154
- letterSpacing: 1
155
- },
156
- children: t.subIncludes.excessMileage.description(quotation.fees.excessMileageFee || 0)
157
- })
158
- ]
159
- })
160
- ]
161
- })
162
- })
163
- });
164
- };
165
- export default CustomerSubscriptionSection;
@@ -1 +0,0 @@
1
- {"version":3,"file":"CustomerSubscriptionSection.js","sourceRoot":"","sources":["../../../src/templates/QuotationPdf/CustomerSubscriptionSection.tsx"],"names":[],"mappings":"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"}
@@ -1,10 +0,0 @@
1
- import type { FC } from 'react';
2
- import type { QuotationWithCoupon } from './index.js';
3
- import type { QuotationPdfTranslation } from './translations';
4
- type Props = {
5
- quotation: QuotationWithCoupon;
6
- t?: QuotationPdfTranslation['pricing'];
7
- };
8
- declare const GFV: FC<Props>;
9
- export default GFV;
10
- //# sourceMappingURL=GFV.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GFV.d.ts","sourceRoot":"","sources":["../../../src/templates/QuotationPdf/GFV.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAE/B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AACrD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAA;AAE7D,KAAK,KAAK,GAAG;IACZ,SAAS,EAAE,mBAAmB,CAAA;IAC9B,CAAC,CAAC,EAAE,uBAAuB,CAAC,SAAS,CAAC,CAAA;CACtC,CAAA;AAED,QAAA,MAAM,GAAG,EAAE,EAAE,CAAC,KAAK,CAwClB,CAAA;AAED,eAAe,GAAG,CAAA"}
@@ -1,61 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { formatMoney } from '@driveflux/format-money';
3
- import { Text, View } from '@react-pdf/renderer';
4
- import { colors } from '../../theme/colors.js';
5
- var GFV = function GFV(param) {
6
- var quotation = param.quotation, t = param.t;
7
- if (!quotation.fees.gfv) return;
8
- return /*#__PURE__*/ _jsxs(View, {
9
- style: {
10
- border: "1px solid ".concat(colors.primary2),
11
- padding: 16,
12
- rowGap: 16
13
- },
14
- children: [
15
- /*#__PURE__*/ _jsx(Text, {
16
- style: {
17
- color: colors.black,
18
- fontWeight: 'bold',
19
- letterSpacing: 1,
20
- textTransform: 'uppercase',
21
- flexWrap: 'nowrap'
22
- },
23
- children: t === null || t === void 0 ? void 0 : t.fees.gfv.title
24
- }),
25
- /*#__PURE__*/ _jsxs(View, {
26
- style: {
27
- display: 'flex',
28
- flexDirection: 'row',
29
- flexWrap: 'wrap'
30
- },
31
- children: [
32
- /*#__PURE__*/ _jsxs(Text, {
33
- style: {
34
- color: colors.primary3,
35
- letterSpacing: 1
36
- },
37
- children: [
38
- "You have the option to purchase this vehicle with GFV amount of",
39
- ' '
40
- ]
41
- }),
42
- /*#__PURE__*/ _jsx(Text, {
43
- style: {
44
- fontWeight: 'bold',
45
- color: colors.primary3
46
- },
47
- children: formatMoney(quotation.fees.gfv)
48
- }),
49
- /*#__PURE__*/ _jsx(Text, {
50
- style: {
51
- color: colors.primary3,
52
- letterSpacing: 1
53
- },
54
- children: "at the end of your subscription."
55
- })
56
- ]
57
- })
58
- ]
59
- });
60
- };
61
- export default GFV;
@@ -1 +0,0 @@
1
- {"version":3,"file":"GFV.js","sourceRoot":"","sources":["../../../src/templates/QuotationPdf/GFV.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AACrD,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;AAEhD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AAS9C,MAAM,GAAG,GAAc,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,EAAE,EAAE;IAC3C,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG;QAAE,OAAM;IAE/B,OAAO,CACN,MAAC,IAAI,IACJ,KAAK,EAAE;YACN,MAAM,EAAE,aAAa,MAAM,CAAC,QAAQ,EAAE;YACtC,OAAO,EAAE,EAAE;YACX,MAAM,EAAE,EAAE;SACV,aAED,KAAC,IAAI,IACJ,KAAK,EAAE;oBACN,KAAK,EAAE,MAAM,CAAC,KAAK;oBACnB,UAAU,EAAE,MAAM;oBAClB,aAAa,EAAE,CAAC;oBAChB,aAAa,EAAE,WAAW;oBAC1B,QAAQ,EAAE,QAAQ;iBAClB,YAEA,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,KAAK,GACZ,EACP,MAAC,IAAI,IAAC,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,aACvE,MAAC,IAAI,IACJ,KAAK,EAAE;4BACN,KAAK,EAAE,MAAM,CAAC,QAAQ;4BACtB,aAAa,EAAE,CAAC;yBAChB,gFAE+D,GAAG,IAC7D,EACP,KAAC,IAAI,IAAC,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,QAAQ,EAAE,YACzD,WAAW,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,GAC1B,EACP,KAAC,IAAI,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,QAAQ,EAAE,aAAa,EAAE,CAAC,EAAE,iDAElD,IACD,IACD,CACP,CAAA;AACF,CAAC,CAAA;AAED,eAAe,GAAG,CAAA"}
@@ -1,9 +0,0 @@
1
- import type { FC } from 'react';
2
- type Props = {
3
- tTitle: string;
4
- quotationId: string;
5
- quotationDate: string;
6
- };
7
- declare const Header: FC<Props>;
8
- export default Header;
9
- //# sourceMappingURL=Header.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../src/templates/QuotationPdf/Header.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAI/B,KAAK,KAAK,GAAG;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,EAAE,MAAM,CAAA;CACrB,CAAA;AACD,QAAA,MAAM,MAAM,EAAE,EAAE,CAAC,KAAK,CA8BrB,CAAA;AAED,eAAe,MAAM,CAAA"}
@@ -1,71 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Link, Text, View } from '@react-pdf/renderer';
3
- import FluxLogo from '../../components/FluxLogo.js';
4
- import { colors } from '../../theme/colors.js';
5
- var Header = function Header(param) {
6
- var tTitle = param.tTitle, quotationId = param.quotationId, quotationDate = param.quotationDate;
7
- return /*#__PURE__*/ _jsxs(View, {
8
- style: {
9
- gap: 24
10
- },
11
- children: [
12
- /*#__PURE__*/ _jsx(Link, {
13
- src: "https://driveflux.com",
14
- children: /*#__PURE__*/ _jsx(FluxLogo, {})
15
- }),
16
- /*#__PURE__*/ _jsxs(View, {
17
- style: {
18
- gap: 4
19
- },
20
- children: [
21
- /*#__PURE__*/ _jsx(Text, {
22
- style: {
23
- fontWeight: 'bold',
24
- textTransform: 'uppercase',
25
- fontSize: 18
26
- },
27
- children: tTitle
28
- }),
29
- /*#__PURE__*/ _jsxs(View, {
30
- style: {
31
- justifyContent: 'space-between',
32
- flexDirection: 'row'
33
- },
34
- children: [
35
- /*#__PURE__*/ _jsx(Text, {
36
- style: {
37
- color: colors.primary3,
38
- fontSize: 10
39
- },
40
- children: quotationId
41
- }),
42
- /*#__PURE__*/ _jsxs(View, {
43
- style: {
44
- gap: 8,
45
- flexDirection: 'row'
46
- },
47
- children: [
48
- /*#__PURE__*/ _jsx(Text, {
49
- style: {
50
- fontSize: 10,
51
- color: colors.black
52
- },
53
- children: "Date"
54
- }),
55
- /*#__PURE__*/ _jsx(Text, {
56
- style: {
57
- color: colors.primary3,
58
- fontSize: 10
59
- },
60
- children: quotationDate
61
- })
62
- ]
63
- })
64
- ]
65
- })
66
- ]
67
- })
68
- ]
69
- });
70
- };
71
- export default Header;
@@ -1 +0,0 @@
1
- {"version":3,"file":"Header.js","sourceRoot":"","sources":["../../../src/templates/QuotationPdf/Header.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;AAEtD,OAAO,QAAQ,MAAM,8BAA8B,CAAA;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AAO9C,MAAM,MAAM,GAAc,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,EAAE,EAAE;IACpE,OAAO,CACN,MAAC,IAAI,IAAC,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,aACvB,KAAC,IAAI,IAAC,GAAG,EAAC,uBAAuB,YAChC,KAAC,QAAQ,KAAG,GACN,EACP,MAAC,IAAI,IAAC,KAAK,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,aACtB,KAAC,IAAI,IACJ,KAAK,EAAE;4BACN,UAAU,EAAE,MAAM;4BAClB,aAAa,EAAE,WAAW;4BAC1B,QAAQ,EAAE,EAAE;yBACZ,YAEA,MAAM,GACD,EACP,MAAC,IAAI,IAAC,KAAK,EAAE,EAAE,cAAc,EAAE,eAAe,EAAE,aAAa,EAAE,KAAK,EAAE,aACrE,KAAC,IAAI,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAE,YACnD,WAAW,GACN,EACP,MAAC,IAAI,IAAC,KAAK,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,aAAa,EAAE,KAAK,EAAE,aAC5C,KAAC,IAAI,IAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,qBAAa,EAC/D,KAAC,IAAI,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAE,YACnD,aAAa,GACR,IACD,IACD,IACD,IACD,CACP,CAAA;AACF,CAAC,CAAA;AAED,eAAe,MAAM,CAAA"}
@@ -1,10 +0,0 @@
1
- import type { FC } from 'react';
2
- import type { QuotationWithCoupon } from './index.js';
3
- import type { QuotationPdfTranslation } from './translations.js';
4
- type Props = {
5
- quotation: QuotationWithCoupon;
6
- t?: QuotationPdfTranslation['pricing'];
7
- };
8
- declare const Pricing: FC<Props>;
9
- export default Pricing;
10
- //# sourceMappingURL=Pricing.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Pricing.d.ts","sourceRoot":"","sources":["../../../src/templates/QuotationPdf/Pricing.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAE/B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAErD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAA;AAEhE,KAAK,KAAK,GAAG;IACZ,SAAS,EAAE,mBAAmB,CAAA;IAC9B,CAAC,CAAC,EAAE,uBAAuB,CAAC,SAAS,CAAC,CAAA;CACtC,CAAA;AAED,QAAA,MAAM,OAAO,EAAE,EAAE,CAAC,KAAK,CA6tBtB,CAAA;AAED,eAAe,OAAO,CAAA"}