@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.
- package/.env +0 -0
- package/.env.development +4 -0
- package/.turbo/turbo-build.log +14 -0
- package/CHANGELOG.md +15 -0
- package/build.ts +45 -0
- package/bun-env.d.ts +34 -0
- package/bunfig.toml +8 -0
- package/catalog-version-stamp.json +8 -0
- package/dist/main.js +4 -0
- package/dist/main.js.map +11 -0
- package/dist/src/config.d.ts +20 -0
- package/dist/src/create-logger.d.ts +1 -0
- package/dist/src/errors.d.ts +43 -0
- package/dist/src/main.d.ts +1 -0
- package/dist/src/preview/api.d.ts +264 -0
- package/dist/src/preview/client/app.d.ts +2 -0
- package/dist/src/preview/client/invoice/invoice-display.d.ts +5 -0
- package/dist/src/preview/client/invoice/invoice-setup.d.ts +8 -0
- package/dist/src/preview/client/preview-targets.d.ts +12 -0
- package/dist/src/preview/client/preview.d.ts +6 -0
- package/dist/src/preview/client/sidebar.d.ts +7 -0
- package/dist/src/preview/client/treaty.d.ts +200 -0
- package/dist/src/preview/client/use-target.d.ts +1 -0
- package/dist/src/preview/fonts/register-fonts.d.ts +1 -0
- package/dist/src/preview/frontend.d.ts +1 -0
- package/dist/src/preview/server.d.ts +1 -0
- package/dist/src/repository.d.ts +171 -0
- package/dist/src/templates/invoice/colors.d.ts +6 -0
- package/dist/src/templates/invoice/company-details.d.ts +10 -0
- package/dist/src/templates/invoice/flux-invoice.d.ts +6 -0
- package/dist/src/templates/invoice/footer.d.ts +2 -0
- package/dist/src/templates/invoice/host-invoice.d.ts +9 -0
- package/dist/src/templates/invoice/invoice-details.d.ts +13 -0
- package/dist/src/templates/invoice/invoice-notes.d.ts +1 -0
- package/dist/src/templates/invoice/invoice-summary.d.ts +7 -0
- package/dist/src/templates/invoice/letter-head.d.ts +10 -0
- package/dist/src/templates/invoice/li.d.ts +10 -0
- package/dist/src/templates/invoice/platform-and-host-details.d.ts +11 -0
- package/dist/src/templates/invoice/spacer.d.ts +3 -0
- package/dist/src/templates/invoice/split-container-items.d.ts +10 -0
- package/dist/src/templates/invoice/split-container.d.ts +7 -0
- package/dist/src/templates/invoice/standard-page.d.ts +7 -0
- package/dist/src/templates/invoice/types.d.ts +3 -0
- package/dist/src/templates/invoice/ul.d.ts +8 -0
- package/dist/src/templates/invoice/utils.d.ts +2 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +34 -40
- package/src/config.ts +42 -0
- package/src/create-logger.ts +4 -0
- package/src/errors.ts +35 -0
- package/src/main.ts +7 -0
- package/src/preview/api.ts +33 -0
- package/src/preview/client/app.tsx +30 -0
- package/src/preview/client/invoice/invoice-display.tsx +27 -0
- package/src/preview/client/invoice/invoice-setup.tsx +95 -0
- package/src/preview/client/preview-targets.ts +30 -0
- package/src/preview/client/preview.tsx +37 -0
- package/src/preview/client/sidebar.tsx +39 -0
- package/src/preview/client/treaty.ts +8 -0
- package/src/preview/client/use-target.ts +11 -0
- package/src/preview/fonts/GOTHAM-BLACK.TTF +0 -0
- package/src/preview/fonts/GOTHAM-BLACKITALIC.TTF +0 -0
- package/src/preview/fonts/GOTHAM-BOLD.TTF +0 -0
- package/src/preview/fonts/GOTHAM-BOLDITALIC.TTF +0 -0
- package/src/preview/fonts/GOTHAM-LIGHT.TTF +0 -0
- package/src/preview/fonts/GOTHAM-LIGHTITALIC.TTF +0 -0
- package/src/preview/fonts/GOTHAM-MEDIUM.TTF +0 -0
- package/src/preview/fonts/GOTHAM-MEDIUMITALIC.TTF +0 -0
- package/src/preview/fonts/GOTHAM-THIN.TTF +0 -0
- package/src/preview/fonts/GOTHAM-THINITALIC.TTF +0 -0
- package/src/preview/fonts/GOTHAM-ULTRA.TTF +0 -0
- package/src/preview/fonts/GOTHAM-ULTRAITALIC.TTF +0 -0
- package/src/preview/fonts/GOTHAM-XLIGHT.TTF +0 -0
- package/src/preview/fonts/GOTHAM-XLIGHTITALIC.TTF +0 -0
- package/src/preview/fonts/Gotham Book Italic.otf +0 -0
- package/src/preview/fonts/Gotham-BoldItalic.otf +0 -0
- package/src/preview/fonts/Gotham-Book.otf +0 -0
- package/src/preview/fonts/Gotham-BookItalic.otf +0 -0
- package/src/preview/fonts/Gotham-ExtraLight.otf +0 -0
- package/src/preview/fonts/Gotham-ExtraLightItalic.otf +0 -0
- package/src/preview/fonts/Gotham-Light.otf +0 -0
- package/src/preview/fonts/Gotham-LightItalic.otf +0 -0
- package/src/preview/fonts/Gotham-Medium.otf +0 -0
- package/src/preview/fonts/Gotham-MediumItalic.otf +0 -0
- package/src/preview/fonts/Gotham-Thin.otf +0 -0
- package/src/preview/fonts/Gotham-ThinItalic.otf +0 -0
- package/src/preview/fonts/Gotham-Ultra.otf +0 -0
- package/src/preview/fonts/Gotham-UltraItalic.otf +0 -0
- package/src/preview/fonts/GothamNarrow-Black.otf +0 -0
- package/src/preview/fonts/GothamNarrow-BlackItalic.otf +0 -0
- package/src/preview/fonts/GothamNarrow-Book.otf +0 -0
- package/src/preview/fonts/GothamNarrow-BookItalic.otf +0 -0
- package/src/preview/fonts/GothamNarrow-Light.otf +0 -0
- package/src/preview/fonts/GothamNarrow-LightItalic.otf +0 -0
- package/src/preview/fonts/GothamNarrow-Medium.otf +0 -0
- package/src/preview/fonts/GothamNarrow-MediumItalic.otf +0 -0
- package/src/preview/fonts/GothamNarrow-Thin.otf +0 -0
- package/src/preview/fonts/GothamNarrow-ThinItalic.otf +0 -0
- package/src/preview/fonts/GothamNarrow-Ultra.otf +0 -0
- package/src/preview/fonts/GothamNarrow-UltraItalic.otf +0 -0
- package/src/preview/fonts/GothamNarrow-XLight.otf +0 -0
- package/src/preview/fonts/GothamNarrow-XLightItalic.otf +0 -0
- package/src/preview/fonts/gotham-extra-narrow-bold-italic.otf +0 -0
- package/src/preview/fonts/gotham-extra-narrow-bold.otf +0 -0
- package/src/preview/fonts/gotham-extra-narrow-book-italic.otf +0 -0
- package/src/preview/fonts/gotham-extra-narrow-book.otf +0 -0
- package/src/preview/fonts/gotham-extra-narrow-light-italic.otf +0 -0
- package/src/preview/fonts/gotham-extra-narrow-light.otf +0 -0
- package/src/preview/fonts/gotham-extra-narrow-medium-italic.otf +0 -0
- package/src/preview/fonts/gotham-extra-narrow-medium.otf +0 -0
- package/src/preview/fonts/gotham-rounded-bold-italic.otf +0 -0
- package/src/preview/fonts/gotham-rounded-bold.otf +0 -0
- package/src/preview/fonts/gotham-rounded-book-italic.otf +0 -0
- package/src/preview/fonts/gotham-rounded-book.otf +0 -0
- package/src/preview/fonts/gotham-rounded-light-italic.otf +0 -0
- package/src/preview/fonts/gotham-rounded-light.otf +0 -0
- package/src/preview/fonts/gotham-rounded-medium-italic.otf +0 -0
- package/src/preview/fonts/gotham-rounded-medium.otf +0 -0
- package/src/preview/fonts/register-fonts.ts +395 -0
- package/src/preview/frontend.tsx +23 -0
- package/src/preview/global.css +39 -0
- package/src/preview/preview.html +12 -0
- package/src/preview/server.ts +28 -0
- package/src/repository.ts +39 -0
- package/src/templates/invoice/E Invoice Format.pdf +0 -0
- package/src/templates/invoice/colors.ts +6 -0
- package/src/templates/invoice/company-details.tsx +124 -0
- package/src/templates/invoice/flux-invoice.tsx +134 -0
- package/src/templates/invoice/footer.tsx +46 -0
- package/src/templates/invoice/host-invoice.tsx +134 -0
- package/src/templates/invoice/images/logo.png +0 -0
- package/src/templates/invoice/images/logo.svg +41 -0
- package/src/templates/invoice/invoice-details.tsx +231 -0
- package/src/templates/invoice/invoice-notes.tsx +74 -0
- package/src/templates/invoice/invoice-summary.tsx +135 -0
- package/src/templates/invoice/letter-head.tsx +132 -0
- package/src/templates/invoice/li.tsx +48 -0
- package/src/templates/invoice/platform-and-host-details.tsx +56 -0
- package/src/templates/invoice/spacer.tsx +5 -0
- package/src/templates/invoice/split-container-items.tsx +80 -0
- package/src/templates/invoice/split-container.tsx +35 -0
- package/src/templates/invoice/standard-page.tsx +45 -0
- package/src/templates/invoice/types.ts +6 -0
- package/src/templates/invoice/ul.tsx +19 -0
- package/src/templates/invoice/utils.ts +5 -0
- package/tsconfig.json +21 -0
- package/dist/components/FluxLogo.d.ts +0 -3
- package/dist/components/FluxLogo.d.ts.map +0 -1
- package/dist/components/FluxLogo.js +0 -66
- package/dist/components/FluxLogo.js.map +0 -1
- package/dist/components/StandardPage.d.ts +0 -7
- package/dist/components/StandardPage.d.ts.map +0 -1
- package/dist/components/StandardPage.js +0 -132
- package/dist/components/StandardPage.js.map +0 -1
- package/dist/index.d.ts +0 -4
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -3
- package/dist/index.js.map +0 -1
- package/dist/templates/QuotationPdf/CustomerSubscriptionSection.d.ts +0 -10
- package/dist/templates/QuotationPdf/CustomerSubscriptionSection.d.ts.map +0 -1
- package/dist/templates/QuotationPdf/CustomerSubscriptionSection.js +0 -165
- package/dist/templates/QuotationPdf/CustomerSubscriptionSection.js.map +0 -1
- package/dist/templates/QuotationPdf/GFV.d.ts +0 -10
- package/dist/templates/QuotationPdf/GFV.d.ts.map +0 -1
- package/dist/templates/QuotationPdf/GFV.js +0 -61
- package/dist/templates/QuotationPdf/GFV.js.map +0 -1
- package/dist/templates/QuotationPdf/Header.d.ts +0 -9
- package/dist/templates/QuotationPdf/Header.d.ts.map +0 -1
- package/dist/templates/QuotationPdf/Header.js +0 -71
- package/dist/templates/QuotationPdf/Header.js.map +0 -1
- package/dist/templates/QuotationPdf/Pricing.d.ts +0 -10
- package/dist/templates/QuotationPdf/Pricing.d.ts.map +0 -1
- package/dist/templates/QuotationPdf/Pricing.js +0 -723
- package/dist/templates/QuotationPdf/Pricing.js.map +0 -1
- package/dist/templates/QuotationPdf/QuotationPdfPage.d.ts +0 -8
- package/dist/templates/QuotationPdf/QuotationPdfPage.d.ts.map +0 -1
- package/dist/templates/QuotationPdf/QuotationPdfPage.js +0 -30
- package/dist/templates/QuotationPdf/QuotationPdfPage.js.map +0 -1
- package/dist/templates/QuotationPdf/SectionBoxNew.d.ts +0 -9
- package/dist/templates/QuotationPdf/SectionBoxNew.d.ts.map +0 -1
- package/dist/templates/QuotationPdf/SectionBoxNew.js +0 -38
- package/dist/templates/QuotationPdf/SectionBoxNew.js.map +0 -1
- package/dist/templates/QuotationPdf/TermsSection.d.ts +0 -8
- package/dist/templates/QuotationPdf/TermsSection.d.ts.map +0 -1
- package/dist/templates/QuotationPdf/TermsSection.js +0 -50
- package/dist/templates/QuotationPdf/TermsSection.js.map +0 -1
- package/dist/templates/QuotationPdf/VehiclePhotos.d.ts +0 -10
- package/dist/templates/QuotationPdf/VehiclePhotos.d.ts.map +0 -1
- package/dist/templates/QuotationPdf/VehiclePhotos.js +0 -66
- package/dist/templates/QuotationPdf/VehiclePhotos.js.map +0 -1
- package/dist/templates/QuotationPdf/index.d.ts +0 -12
- package/dist/templates/QuotationPdf/index.d.ts.map +0 -1
- package/dist/templates/QuotationPdf/index.js +0 -214
- package/dist/templates/QuotationPdf/index.js.map +0 -1
- package/dist/templates/QuotationPdf/translations.d.ts +0 -68
- package/dist/templates/QuotationPdf/translations.d.ts.map +0 -1
- package/dist/templates/QuotationPdf/translations.js +0 -101
- package/dist/templates/QuotationPdf/translations.js.map +0 -1
- package/dist/templates/QuotationPdf/utils.d.ts +0 -14
- package/dist/templates/QuotationPdf/utils.d.ts.map +0 -1
- package/dist/templates/QuotationPdf/utils.js +0 -152
- package/dist/templates/QuotationPdf/utils.js.map +0 -1
- package/dist/templates/SubscriptionAgreement/Confirmation.d.ts +0 -12
- package/dist/templates/SubscriptionAgreement/Confirmation.d.ts.map +0 -1
- package/dist/templates/SubscriptionAgreement/Confirmation.js +0 -80
- package/dist/templates/SubscriptionAgreement/Confirmation.js.map +0 -1
- package/dist/templates/SubscriptionAgreement/CoverPage.d.ts +0 -14
- package/dist/templates/SubscriptionAgreement/CoverPage.d.ts.map +0 -1
- package/dist/templates/SubscriptionAgreement/CoverPage.js +0 -111
- package/dist/templates/SubscriptionAgreement/CoverPage.js.map +0 -1
- package/dist/templates/SubscriptionAgreement/CoverPageSection.d.ts +0 -7
- package/dist/templates/SubscriptionAgreement/CoverPageSection.d.ts.map +0 -1
- package/dist/templates/SubscriptionAgreement/CoverPageSection.js +0 -25
- package/dist/templates/SubscriptionAgreement/CoverPageSection.js.map +0 -1
- package/dist/templates/SubscriptionAgreement/Details.d.ts +0 -10
- package/dist/templates/SubscriptionAgreement/Details.d.ts.map +0 -1
- package/dist/templates/SubscriptionAgreement/Details.js +0 -223
- package/dist/templates/SubscriptionAgreement/Details.js.map +0 -1
- package/dist/templates/SubscriptionAgreement/Footer.d.ts +0 -10
- package/dist/templates/SubscriptionAgreement/Footer.d.ts.map +0 -1
- package/dist/templates/SubscriptionAgreement/Footer.js +0 -58
- package/dist/templates/SubscriptionAgreement/Footer.js.map +0 -1
- package/dist/templates/SubscriptionAgreement/Header.d.ts +0 -10
- package/dist/templates/SubscriptionAgreement/Header.d.ts.map +0 -1
- package/dist/templates/SubscriptionAgreement/Header.js +0 -46
- package/dist/templates/SubscriptionAgreement/Header.js.map +0 -1
- package/dist/templates/SubscriptionAgreement/LabelValue.d.ts +0 -8
- package/dist/templates/SubscriptionAgreement/LabelValue.d.ts.map +0 -1
- package/dist/templates/SubscriptionAgreement/LabelValue.js +0 -29
- package/dist/templates/SubscriptionAgreement/LabelValue.js.map +0 -1
- package/dist/templates/SubscriptionAgreement/SubscriptionAgreementPage.d.ts +0 -10
- package/dist/templates/SubscriptionAgreement/SubscriptionAgreementPage.d.ts.map +0 -1
- package/dist/templates/SubscriptionAgreement/SubscriptionAgreementPage.js +0 -33
- package/dist/templates/SubscriptionAgreement/SubscriptionAgreementPage.js.map +0 -1
- package/dist/templates/SubscriptionAgreement/TermsOfUse.d.ts +0 -8
- package/dist/templates/SubscriptionAgreement/TermsOfUse.d.ts.map +0 -1
- package/dist/templates/SubscriptionAgreement/TermsOfUse.js +0 -101
- package/dist/templates/SubscriptionAgreement/TermsOfUse.js.map +0 -1
- package/dist/templates/SubscriptionAgreement/TermsOfUseSubSection.d.ts +0 -12
- package/dist/templates/SubscriptionAgreement/TermsOfUseSubSection.d.ts.map +0 -1
- package/dist/templates/SubscriptionAgreement/TermsOfUseSubSection.js +0 -103
- package/dist/templates/SubscriptionAgreement/TermsOfUseSubSection.js.map +0 -1
- package/dist/templates/SubscriptionAgreement/index.d.ts +0 -13
- package/dist/templates/SubscriptionAgreement/index.d.ts.map +0 -1
- package/dist/templates/SubscriptionAgreement/index.js +0 -271
- package/dist/templates/SubscriptionAgreement/index.js.map +0 -1
- package/dist/templates/SubscriptionAgreement/translations.d.ts +0 -78
- package/dist/templates/SubscriptionAgreement/translations.d.ts.map +0 -1
- package/dist/templates/SubscriptionAgreement/translations.js +0 -662
- package/dist/templates/SubscriptionAgreement/translations.js.map +0 -1
- package/dist/templates/SubscriptionAgreement/types.d.ts +0 -7
- package/dist/templates/SubscriptionAgreement/types.d.ts.map +0 -1
- package/dist/templates/SubscriptionAgreement/types.js +0 -1
- package/dist/templates/SubscriptionAgreement/types.js.map +0 -1
- package/dist/templates/SubscriptionAgreement/utils.d.ts +0 -6
- package/dist/templates/SubscriptionAgreement/utils.d.ts.map +0 -1
- package/dist/templates/SubscriptionAgreement/utils.js +0 -37
- package/dist/templates/SubscriptionAgreement/utils.js.map +0 -1
- package/dist/templates/index.d.ts +0 -3
- package/dist/templates/index.d.ts.map +0 -1
- package/dist/templates/index.js +0 -2
- package/dist/templates/index.js.map +0 -1
- package/dist/theme/colors.d.ts +0 -148
- package/dist/theme/colors.d.ts.map +0 -1
- package/dist/theme/colors.js +0 -137
- package/dist/theme/colors.js.map +0 -1
- package/dist/theme/index.d.ts +0 -2
- package/dist/theme/index.d.ts.map +0 -1
- package/dist/theme/index.js +0 -1
- package/dist/theme/index.js.map +0 -1
- package/dist/types.d.ts +0 -2
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -1
- package/dist/types.js.map +0 -1
- package/dist/utils.d.ts +0 -10
- package/dist/utils.d.ts.map +0 -1
- package/dist/utils.js +0 -175
- package/dist/utils.js.map +0 -1
- package/dist/watch.d.ts +0 -2
- package/dist/watch.d.ts.map +0 -1
- package/dist/watch.js +0 -11
- package/dist/watch.js.map +0 -1
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
function _array_like_to_array(arr, len) {
|
|
2
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
3
|
-
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
4
|
-
return arr2;
|
|
5
|
-
}
|
|
6
|
-
function _array_without_holes(arr) {
|
|
7
|
-
if (Array.isArray(arr)) return _array_like_to_array(arr);
|
|
8
|
-
}
|
|
9
|
-
function _iterable_to_array(iter) {
|
|
10
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
11
|
-
}
|
|
12
|
-
function _non_iterable_spread() {
|
|
13
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
14
|
-
}
|
|
15
|
-
function _to_consumable_array(arr) {
|
|
16
|
-
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
|
|
17
|
-
}
|
|
18
|
-
function _unsupported_iterable_to_array(o, minLen) {
|
|
19
|
-
if (!o) return;
|
|
20
|
-
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
21
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
22
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
23
|
-
if (n === "Map" || n === "Set") return Array.from(n);
|
|
24
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
25
|
-
}
|
|
26
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
27
|
-
import { Text, View } from '@react-pdf/renderer';
|
|
28
|
-
import { useMemo } from 'react';
|
|
29
|
-
import { renderMarkdown } from './utils.js';
|
|
30
|
-
var TermsOfUseSubSection = function TermsOfUseSubSection1(param) {
|
|
31
|
-
var indices = param.indices, subSection = param.subSection;
|
|
32
|
-
var _useMemo = useMemo(function() {
|
|
33
|
-
return {
|
|
34
|
-
indicesString: indices.reduce(function(prev, curr, i) {
|
|
35
|
-
return "".concat(prev).concat(curr).concat(i === indices.length - 1 ? '' : '.');
|
|
36
|
-
}, ''),
|
|
37
|
-
paddingLeft: Math.max(indices.length - 2, 0) * 16
|
|
38
|
-
};
|
|
39
|
-
}, [
|
|
40
|
-
indices.length,
|
|
41
|
-
indices.reduce
|
|
42
|
-
]), indicesString = _useMemo.indicesString, paddingLeft = _useMemo.paddingLeft;
|
|
43
|
-
return typeof subSection === 'string' ? /*#__PURE__*/ _jsxs(View, {
|
|
44
|
-
style: {
|
|
45
|
-
flexDirection: 'row',
|
|
46
|
-
paddingLeft: paddingLeft,
|
|
47
|
-
columnGap: 16
|
|
48
|
-
},
|
|
49
|
-
children: [
|
|
50
|
-
/*#__PURE__*/ _jsx(Text, {
|
|
51
|
-
style: {
|
|
52
|
-
fontWeight: 'bold'
|
|
53
|
-
},
|
|
54
|
-
children: indicesString
|
|
55
|
-
}),
|
|
56
|
-
/*#__PURE__*/ _jsx(Text, {
|
|
57
|
-
style: {
|
|
58
|
-
textAlign: 'justify',
|
|
59
|
-
flex: 1
|
|
60
|
-
},
|
|
61
|
-
children: subSection
|
|
62
|
-
})
|
|
63
|
-
]
|
|
64
|
-
}, indicesString) : 'subSections' in subSection ? /*#__PURE__*/ _jsxs(View, {
|
|
65
|
-
style: {
|
|
66
|
-
gap: 16
|
|
67
|
-
},
|
|
68
|
-
children: [
|
|
69
|
-
/*#__PURE__*/ _jsxs(View, {
|
|
70
|
-
style: {
|
|
71
|
-
flexDirection: 'row',
|
|
72
|
-
paddingLeft: paddingLeft,
|
|
73
|
-
columnGap: 16
|
|
74
|
-
},
|
|
75
|
-
children: [
|
|
76
|
-
/*#__PURE__*/ _jsx(Text, {
|
|
77
|
-
style: {
|
|
78
|
-
fontWeight: 'bold'
|
|
79
|
-
},
|
|
80
|
-
children: indicesString
|
|
81
|
-
}),
|
|
82
|
-
/*#__PURE__*/ _jsx(Text, {
|
|
83
|
-
style: {
|
|
84
|
-
textAlign: 'justify',
|
|
85
|
-
flex: 1
|
|
86
|
-
},
|
|
87
|
-
children: typeof subSection === 'string' ? renderMarkdown(subSection) : renderMarkdown(subSection.paragraph)
|
|
88
|
-
})
|
|
89
|
-
]
|
|
90
|
-
}, indicesString),
|
|
91
|
-
subSection.subSections.map(function(subSection, i) {
|
|
92
|
-
return /*#__PURE__*/ _jsx(TermsOfUseSubSection, {
|
|
93
|
-
indices: _to_consumable_array(indices).concat([
|
|
94
|
-
i + 1
|
|
95
|
-
]),
|
|
96
|
-
subSection: subSection
|
|
97
|
-
}, "".// biome-ignore lint/suspicious/noArrayIndexKey: <explanation>
|
|
98
|
-
concat(indices, ".").concat(i));
|
|
99
|
-
})
|
|
100
|
-
]
|
|
101
|
-
}, indicesString) : null;
|
|
102
|
-
};
|
|
103
|
-
export default TermsOfUseSubSection;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TermsOfUseSubSection.js","sourceRoot":"","sources":["../../../src/templates/SubscriptionAgreement/TermsOfUseSubSection.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;AAEhD,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAC/B,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAc3C,MAAM,oBAAoB,GAAc,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,EAAE,EAAE;IACnE,MAAM,EAAE,aAAa,EAAE,WAAW,EAAE,GAAG,OAAO,CAC7C,GAAG,EAAE,CAAC,CAAC;QACN,aAAa,EAAE,OAAO,CAAC,MAAM,CAC5B,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,CACjB,GAAG,IAAI,GAAG,IAAI,GAAG,CAAC,KAAK,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,EAAE,EACvD,EAAE,CACF;QACD,WAAW,EAAE,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE;KACjD,CAAC,EACF,CAAC,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,CAChC,CAAA;IAED,OAAO,OAAO,UAAU,KAAK,QAAQ,CAAC,CAAC,CAAC,CACvC,MAAC,IAAI,IACJ,KAAK,EAAE,EAAE,aAAa,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,EAAE,EAAE,aAG3D,KAAC,IAAI,IAAC,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,YAAG,aAAa,GAAQ,EAC3D,KAAC,IAAI,IAAC,KAAK,EAAE,EAAE,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,YAAG,UAAU,GAAQ,KAH9D,aAAa,CAIZ,CACP,CAAC,CAAC,CAAC,aAAa,IAAI,UAAU,CAAC,CAAC,CAAC,CACjC,MAAC,IAAI,IAAqB,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,aAC3C,MAAC,IAAI,IACJ,KAAK,EAAE,EAAE,aAAa,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,EAAE,EAAE,aAG3D,KAAC,IAAI,IAAC,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,YAAG,aAAa,GAAQ,EAC3D,KAAC,IAAI,IAAC,KAAK,EAAE,EAAE,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,YAC5C,OAAO,UAAU,KAAK,QAAQ;4BAC9B,CAAC,CAAC,cAAc,CAAC,UAAU,CAAC;4BAC5B,CAAC,CAAC,cAAc,CAAC,UAAU,CAAC,SAAS,CAAC,GACjC,KAPF,aAAa,CAQZ,EACN,UAAU,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,CAAC,EAAE,EAAE,CAAC,CAC9C,KAAC,oBAAoB,IAKpB,OAAO,EAAE,CAAC,GAAG,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC,EAC5B,UAAU,EAAE,UAAU,IALjB,GAAG,OAAO,IAAI;YAClB,8DAA8D;YAC9D,CACD,EAAE,CAGD,CACF,CAAC,KArBQ,aAAa,CAsBjB,CACP,CAAC,CAAC,CAAC,IAAI,CAAA;AACT,CAAC,CAAA;AAED,eAAe,oBAAoB,CAAA"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { SubscriptionSignature } from '@driveflux/db';
|
|
2
|
-
import type { TermsOfUseSettings } from '@driveflux/db/types/helpers';
|
|
3
|
-
import type { PdfTemplatesSupportedLocales } from '../../types.js';
|
|
4
|
-
import type { SubscriptionForAgreement } from './types.js';
|
|
5
|
-
type Options = {
|
|
6
|
-
locale?: PdfTemplatesSupportedLocales;
|
|
7
|
-
subscription: SubscriptionForAgreement;
|
|
8
|
-
termsOfUse: TermsOfUseSettings;
|
|
9
|
-
signature: SubscriptionSignature;
|
|
10
|
-
};
|
|
11
|
-
export declare const generateSubscriptionAgreementPdf: ({ locale, subscription, termsOfUse, signature }: Options, fileName?: string) => Promise<Buffer<ArrayBufferLike>>;
|
|
12
|
-
export {};
|
|
13
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/SubscriptionAgreement/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAA;AAC1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAA;AAGrE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gBAAgB,CAAA;AAQlE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAA;AAE1D,KAAK,OAAO,GAAG;IACd,MAAM,CAAC,EAAE,4BAA4B,CAAA;IACrC,YAAY,EAAE,wBAAwB,CAAA;IACtC,UAAU,EAAE,kBAAkB,CAAA;IAC9B,SAAS,EAAE,qBAAqB,CAAA;CAChC,CAAA;AAED,eAAO,MAAM,gCAAgC,GAC5C,iDAAwD,OAAO,EAC/D,WAAW,MAAM,qCAcjB,CAAA"}
|
|
@@ -1,271 +0,0 @@
|
|
|
1
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
2
|
-
try {
|
|
3
|
-
var info = gen[key](arg);
|
|
4
|
-
var value = info.value;
|
|
5
|
-
} catch (error) {
|
|
6
|
-
reject(error);
|
|
7
|
-
return;
|
|
8
|
-
}
|
|
9
|
-
if (info.done) {
|
|
10
|
-
resolve(value);
|
|
11
|
-
} else {
|
|
12
|
-
Promise.resolve(value).then(_next, _throw);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
function _async_to_generator(fn) {
|
|
16
|
-
return function() {
|
|
17
|
-
var self = this, args = arguments;
|
|
18
|
-
return new Promise(function(resolve, reject) {
|
|
19
|
-
var gen = fn.apply(self, args);
|
|
20
|
-
function _next(value) {
|
|
21
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
22
|
-
}
|
|
23
|
-
function _throw(err) {
|
|
24
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
25
|
-
}
|
|
26
|
-
_next(undefined);
|
|
27
|
-
});
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
function _define_property(obj, key, value) {
|
|
31
|
-
if (key in obj) {
|
|
32
|
-
Object.defineProperty(obj, key, {
|
|
33
|
-
value: value,
|
|
34
|
-
enumerable: true,
|
|
35
|
-
configurable: true,
|
|
36
|
-
writable: true
|
|
37
|
-
});
|
|
38
|
-
} else {
|
|
39
|
-
obj[key] = value;
|
|
40
|
-
}
|
|
41
|
-
return obj;
|
|
42
|
-
}
|
|
43
|
-
function _object_spread(target) {
|
|
44
|
-
for(var i = 1; i < arguments.length; i++){
|
|
45
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
46
|
-
var ownKeys = Object.keys(source);
|
|
47
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
48
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
49
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
50
|
-
}));
|
|
51
|
-
}
|
|
52
|
-
ownKeys.forEach(function(key) {
|
|
53
|
-
_define_property(target, key, source[key]);
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
return target;
|
|
57
|
-
}
|
|
58
|
-
function ownKeys(object, enumerableOnly) {
|
|
59
|
-
var keys = Object.keys(object);
|
|
60
|
-
if (Object.getOwnPropertySymbols) {
|
|
61
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
62
|
-
if (enumerableOnly) {
|
|
63
|
-
symbols = symbols.filter(function(sym) {
|
|
64
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
keys.push.apply(keys, symbols);
|
|
68
|
-
}
|
|
69
|
-
return keys;
|
|
70
|
-
}
|
|
71
|
-
function _object_spread_props(target, source) {
|
|
72
|
-
source = source != null ? source : {};
|
|
73
|
-
if (Object.getOwnPropertyDescriptors) {
|
|
74
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
75
|
-
} else {
|
|
76
|
-
ownKeys(Object(source)).forEach(function(key) {
|
|
77
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
return target;
|
|
81
|
-
}
|
|
82
|
-
function _ts_generator(thisArg, body) {
|
|
83
|
-
var f, y, t, _ = {
|
|
84
|
-
label: 0,
|
|
85
|
-
sent: function() {
|
|
86
|
-
if (t[0] & 1) throw t[1];
|
|
87
|
-
return t[1];
|
|
88
|
-
},
|
|
89
|
-
trys: [],
|
|
90
|
-
ops: []
|
|
91
|
-
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
|
|
92
|
-
return d(g, "next", {
|
|
93
|
-
value: verb(0)
|
|
94
|
-
}), d(g, "throw", {
|
|
95
|
-
value: verb(1)
|
|
96
|
-
}), d(g, "return", {
|
|
97
|
-
value: verb(2)
|
|
98
|
-
}), typeof Symbol === "function" && d(g, Symbol.iterator, {
|
|
99
|
-
value: function() {
|
|
100
|
-
return this;
|
|
101
|
-
}
|
|
102
|
-
}), g;
|
|
103
|
-
function verb(n) {
|
|
104
|
-
return function(v) {
|
|
105
|
-
return step([
|
|
106
|
-
n,
|
|
107
|
-
v
|
|
108
|
-
]);
|
|
109
|
-
};
|
|
110
|
-
}
|
|
111
|
-
function step(op) {
|
|
112
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
113
|
-
while(g && (g = 0, op[0] && (_ = 0)), _)try {
|
|
114
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
115
|
-
if (y = 0, t) op = [
|
|
116
|
-
op[0] & 2,
|
|
117
|
-
t.value
|
|
118
|
-
];
|
|
119
|
-
switch(op[0]){
|
|
120
|
-
case 0:
|
|
121
|
-
case 1:
|
|
122
|
-
t = op;
|
|
123
|
-
break;
|
|
124
|
-
case 4:
|
|
125
|
-
_.label++;
|
|
126
|
-
return {
|
|
127
|
-
value: op[1],
|
|
128
|
-
done: false
|
|
129
|
-
};
|
|
130
|
-
case 5:
|
|
131
|
-
_.label++;
|
|
132
|
-
y = op[1];
|
|
133
|
-
op = [
|
|
134
|
-
0
|
|
135
|
-
];
|
|
136
|
-
continue;
|
|
137
|
-
case 7:
|
|
138
|
-
op = _.ops.pop();
|
|
139
|
-
_.trys.pop();
|
|
140
|
-
continue;
|
|
141
|
-
default:
|
|
142
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
143
|
-
_ = 0;
|
|
144
|
-
continue;
|
|
145
|
-
}
|
|
146
|
-
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
147
|
-
_.label = op[1];
|
|
148
|
-
break;
|
|
149
|
-
}
|
|
150
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
151
|
-
_.label = t[1];
|
|
152
|
-
t = op;
|
|
153
|
-
break;
|
|
154
|
-
}
|
|
155
|
-
if (t && _.label < t[2]) {
|
|
156
|
-
_.label = t[2];
|
|
157
|
-
_.ops.push(op);
|
|
158
|
-
break;
|
|
159
|
-
}
|
|
160
|
-
if (t[2]) _.ops.pop();
|
|
161
|
-
_.trys.pop();
|
|
162
|
-
continue;
|
|
163
|
-
}
|
|
164
|
-
op = body.call(thisArg, _);
|
|
165
|
-
} catch (e) {
|
|
166
|
-
op = [
|
|
167
|
-
6,
|
|
168
|
-
e
|
|
169
|
-
];
|
|
170
|
-
y = 0;
|
|
171
|
-
} finally{
|
|
172
|
-
f = t = 0;
|
|
173
|
-
}
|
|
174
|
-
if (op[0] & 5) throw op[1];
|
|
175
|
-
return {
|
|
176
|
-
value: op[0] ? op[1] : void 0,
|
|
177
|
-
done: true
|
|
178
|
-
};
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
182
|
-
import { Document } from '@react-pdf/renderer';
|
|
183
|
-
import { useMemo } from 'react';
|
|
184
|
-
import { toPdf } from '../../utils.js';
|
|
185
|
-
import Confirmation from './Confirmation.js';
|
|
186
|
-
import CoverPage from './CoverPage.js';
|
|
187
|
-
import Details from './Details.js';
|
|
188
|
-
import SubscriptionAgreementPage from './SubscriptionAgreementPage.js';
|
|
189
|
-
import TermsOfUse from './TermsOfUse.js';
|
|
190
|
-
import { useTranslations } from './translations.js';
|
|
191
|
-
export var generateSubscriptionAgreementPdf = function generateSubscriptionAgreementPdf(param, fileName) {
|
|
192
|
-
var _param_locale = param.locale, locale = _param_locale === void 0 ? 'en' : _param_locale, subscription = param.subscription, termsOfUse = param.termsOfUse, signature = param.signature;
|
|
193
|
-
return _async_to_generator(function() {
|
|
194
|
-
return _ts_generator(this, function(_state) {
|
|
195
|
-
switch(_state.label){
|
|
196
|
-
case 0:
|
|
197
|
-
if (!signature) {
|
|
198
|
-
throw new Error('Signature not found');
|
|
199
|
-
}
|
|
200
|
-
return [
|
|
201
|
-
4,
|
|
202
|
-
toPdf(/*#__PURE__*/ _jsx(SubscriptionAgreement, {
|
|
203
|
-
locale: locale,
|
|
204
|
-
signature: signature,
|
|
205
|
-
subscription: subscription,
|
|
206
|
-
termsOfUse: termsOfUse
|
|
207
|
-
}), fileName)
|
|
208
|
-
];
|
|
209
|
-
case 1:
|
|
210
|
-
return [
|
|
211
|
-
2,
|
|
212
|
-
_state.sent()
|
|
213
|
-
];
|
|
214
|
-
}
|
|
215
|
-
});
|
|
216
|
-
})();
|
|
217
|
-
};
|
|
218
|
-
var SubscriptionAgreement = function SubscriptionAgreement(param) {
|
|
219
|
-
var _param_locale = param.locale, locale = _param_locale === void 0 ? 'en' : _param_locale, signature = param.signature, subscription = param.subscription, termsOfUse = param.termsOfUse;
|
|
220
|
-
if (!signature.signedAt) {
|
|
221
|
-
throw new Error("Missing 'signature.signedAt'");
|
|
222
|
-
}
|
|
223
|
-
var useT = useTranslations(locale);
|
|
224
|
-
var pageProps = useMemo(function() {
|
|
225
|
-
return {
|
|
226
|
-
t: useT,
|
|
227
|
-
userId: subscription.userId,
|
|
228
|
-
subscriptionId: subscription.id
|
|
229
|
-
};
|
|
230
|
-
}, [
|
|
231
|
-
subscription.userId,
|
|
232
|
-
subscription.id,
|
|
233
|
-
useT
|
|
234
|
-
]);
|
|
235
|
-
var payerType = subscription.payerType;
|
|
236
|
-
var t = pageProps.t;
|
|
237
|
-
return /*#__PURE__*/ _jsxs(Document, {
|
|
238
|
-
title: t.title,
|
|
239
|
-
language: locale,
|
|
240
|
-
children: [
|
|
241
|
-
/*#__PURE__*/ _jsx(SubscriptionAgreementPage, _object_spread_props(_object_spread({}, pageProps), {
|
|
242
|
-
children: /*#__PURE__*/ _jsx(CoverPage, {
|
|
243
|
-
tTitle: t.title,
|
|
244
|
-
tCover: t.cover,
|
|
245
|
-
signedAt: signature.signedAt,
|
|
246
|
-
user: subscription.user,
|
|
247
|
-
business: subscription.business,
|
|
248
|
-
payerType: payerType
|
|
249
|
-
})
|
|
250
|
-
})),
|
|
251
|
-
/*#__PURE__*/ _jsx(SubscriptionAgreementPage, _object_spread_props(_object_spread({}, pageProps), {
|
|
252
|
-
children: /*#__PURE__*/ _jsx(TermsOfUse, {
|
|
253
|
-
termsOfUse: termsOfUse
|
|
254
|
-
})
|
|
255
|
-
})),
|
|
256
|
-
/*#__PURE__*/ _jsxs(SubscriptionAgreementPage, _object_spread_props(_object_spread({}, pageProps), {
|
|
257
|
-
children: [
|
|
258
|
-
/*#__PURE__*/ _jsx(Details, {
|
|
259
|
-
tDetails: t.details,
|
|
260
|
-
subscription: subscription
|
|
261
|
-
}),
|
|
262
|
-
/*#__PURE__*/ _jsx(Confirmation, {
|
|
263
|
-
tConfirmation: t.confirmation,
|
|
264
|
-
subscription: subscription,
|
|
265
|
-
signature: signature
|
|
266
|
-
})
|
|
267
|
-
]
|
|
268
|
-
}))
|
|
269
|
-
]
|
|
270
|
-
});
|
|
271
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/templates/SubscriptionAgreement/index.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AAC9C,OAAO,EAAW,OAAO,EAAE,MAAM,OAAO,CAAA;AAExC,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AACtC,OAAO,YAAY,MAAM,mBAAmB,CAAA;AAC5C,OAAO,SAAS,MAAM,gBAAgB,CAAA;AACtC,OAAO,OAAO,MAAM,cAAc,CAAA;AAClC,OAAO,yBAAyB,MAAM,gCAAgC,CAAA;AACtE,OAAO,UAAU,MAAM,iBAAiB,CAAA;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAUnD,MAAM,CAAC,MAAM,gCAAgC,GAAG,KAAK,EACpD,EAAE,MAAM,GAAG,IAAI,EAAE,YAAY,EAAE,UAAU,EAAE,SAAS,EAAW,EAC/D,QAAiB,EAChB,EAAE;IACH,IAAI,CAAC,SAAS,EAAE,CAAC;QAChB,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAA;IACvC,CAAC;IACD,OAAO,MAAM,KAAK,CACjB,KAAC,qBAAqB,IACrB,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,SAAS,EACpB,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,UAAU,GACrB,EACF,QAAQ,CACR,CAAA;AACF,CAAC,CAAA;AASD,MAAM,qBAAqB,GAAc,CAAC,EACzC,MAAM,GAAG,IAAI,EACb,SAAS,EACT,YAAY,EACZ,UAAU,GACV,EAAE,EAAE;IACJ,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC;QACzB,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAA;IAChD,CAAC;IACD,MAAM,IAAI,GAAG,eAAe,CAAC,MAAM,CAAC,CAAA;IACpC,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,EAAE;QAC9B,OAAO;YACN,CAAC,EAAE,IAAI;YACP,MAAM,EAAE,YAAY,CAAC,MAAM;YAC3B,cAAc,EAAE,YAAY,CAAC,EAAE;SAC/B,CAAA;IACF,CAAC,EAAE,CAAC,YAAY,CAAC,MAAM,EAAE,YAAY,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC,CAAA;IAChD,MAAM,SAAS,GAAG,YAAY,CAAC,SAAS,CAAA;IAExC,MAAM,EAAE,CAAC,EAAE,GAAG,SAAS,CAAA;IACvB,OAAO,CACN,MAAC,QAAQ,IAAC,KAAK,EAAE,CAAC,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,aACzC,KAAC,yBAAyB,OAAK,SAAS,YACvC,KAAC,SAAS,IACT,MAAM,EAAE,CAAC,CAAC,KAAK,EACf,MAAM,EAAE,CAAC,CAAC,KAAK,EACf,QAAQ,EAAE,SAAS,CAAC,QAAQ,EAC5B,IAAI,EAAE,YAAY,CAAC,IAAI,EACvB,QAAQ,EAAE,YAAY,CAAC,QAAQ,EAC/B,SAAS,EAAE,SAAS,GACnB,GACyB,EAC5B,KAAC,yBAAyB,OAAK,SAAS,YACvC,KAAC,UAAU,IAAC,UAAU,EAAE,UAAU,GAAI,GACX,EAC5B,MAAC,yBAAyB,OAAK,SAAS,aACvC,KAAC,OAAO,IAAC,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,YAAY,EAAE,YAAY,GAAI,EAC5D,KAAC,YAAY,IACZ,aAAa,EAAE,CAAC,CAAC,YAAY,EAC7B,YAAY,EAAE,YAAY,EAC1B,SAAS,EAAE,SAAS,GACnB,IACyB,IAClB,CACX,CAAA;AACF,CAAC,CAAA"}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
declare const enTranslation: {
|
|
2
|
-
title: string;
|
|
3
|
-
computerGenerated: string;
|
|
4
|
-
page: string;
|
|
5
|
-
of: string;
|
|
6
|
-
cover: {
|
|
7
|
-
effectiveDate: string;
|
|
8
|
-
of: string;
|
|
9
|
-
agreementBetween: string;
|
|
10
|
-
and: string;
|
|
11
|
-
name: string;
|
|
12
|
-
idOrPassportNo: string;
|
|
13
|
-
companyName: string;
|
|
14
|
-
companyNo: string;
|
|
15
|
-
};
|
|
16
|
-
termsOfUse: {
|
|
17
|
-
title: string;
|
|
18
|
-
content: ({
|
|
19
|
-
title: string;
|
|
20
|
-
subSections: (string | {
|
|
21
|
-
paragraph: string;
|
|
22
|
-
subSections: (string | {
|
|
23
|
-
paragraph: string;
|
|
24
|
-
subSections: string[];
|
|
25
|
-
})[];
|
|
26
|
-
})[];
|
|
27
|
-
} | {
|
|
28
|
-
title: string;
|
|
29
|
-
subSections: (string | {
|
|
30
|
-
paragraph: string;
|
|
31
|
-
subSections: string[];
|
|
32
|
-
} | {
|
|
33
|
-
paragraph: string;
|
|
34
|
-
subSections: {
|
|
35
|
-
paragraph: string;
|
|
36
|
-
subSections: (string | {
|
|
37
|
-
paragraph: string;
|
|
38
|
-
subSections: string[];
|
|
39
|
-
})[];
|
|
40
|
-
}[];
|
|
41
|
-
})[];
|
|
42
|
-
})[];
|
|
43
|
-
};
|
|
44
|
-
details: {
|
|
45
|
-
agreement: string;
|
|
46
|
-
member: {
|
|
47
|
-
name: string;
|
|
48
|
-
idOrPassportNo: string;
|
|
49
|
-
};
|
|
50
|
-
business: {
|
|
51
|
-
name: string;
|
|
52
|
-
companyNo: string;
|
|
53
|
-
};
|
|
54
|
-
vehicle: {
|
|
55
|
-
make: string;
|
|
56
|
-
model: string;
|
|
57
|
-
year: string;
|
|
58
|
-
plateNo: string;
|
|
59
|
-
};
|
|
60
|
-
subscription: {
|
|
61
|
-
subscriptionPlan: string;
|
|
62
|
-
mileagePackage: string;
|
|
63
|
-
startDate: string;
|
|
64
|
-
endDate: string;
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
confirmation: {
|
|
68
|
-
title: string;
|
|
69
|
-
agreementText: (userType: "member" | "business") => string;
|
|
70
|
-
name: string;
|
|
71
|
-
idOrPassportNo: string;
|
|
72
|
-
date: string;
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
|
-
export type SubscriptionAgreementTranslation = typeof enTranslation;
|
|
76
|
-
export declare const useTranslations: (locale: "en") => SubscriptionAgreementTranslation;
|
|
77
|
-
export {};
|
|
78
|
-
//# sourceMappingURL=translations.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/templates/SubscriptionAgreement/translations.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAwqBS,QAAQ,GAAG,UAAU;;;;;CAMhD,CAAA;AACD,MAAM,MAAM,gCAAgC,GAAG,OAAO,aAAa,CAAA;AAEnE,eAAO,MAAM,eAAe,GAC3B,QAAQ,IAAI,KACV,gCAKF,CAAA"}
|