@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 +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
package/dist/index.d.ts.map
DELETED
|
@@ -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
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":";AACA,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;AAEhD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AAE9C,OAAO,aAAa,MAAM,oBAAoB,CAAA;AAE9C,OAAO,EACN,aAAa,EACb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EAAE,CAAC,EAAE,uBAAU,EACzC,KAAC,IAAI,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,QAAQ,EAAE,aAAa,EAAE,CAAC,EAAE,YACvD,IAAI,GACC,KAVF,CAAC,CAWA,CACP,CAAC,IACI,IACL,YAGH,SAAS,CAAC,cAAc,KAAK,WAAW,IAAI,CAC5C,8BACC,KAAC,IAAI,IAAC,KAAK,EAAE,EAAE,YAAY,EAAE,aAAa,MAAM,CAAC,QAAQ,EAAE,EAAE,GAAI,EACjE,MAAC,IAAI,IAAC,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,aACvC,KAAC,IAAI,IACJ,KAAK,EAAE;oCACN,KAAK,EAAE,MAAM,CAAC,QAAQ;oCACtB,UAAU,EAAE,MAAM;oCAClB,aAAa,EAAE,CAAC;iCAChB,YAEA,CAAC,CAAC,WAAW,CAAC,aAAa,CAAC,KAAK,GAC5B,EACP,KAAC,IAAI,IACJ,KAAK,EAAE;oCACN,QAAQ,EAAE,KAAK;oCACf,KAAK,EAAE,MAAM,CAAC,QAAQ;oCACtB,aAAa,EAAE,CAAC;iCAChB,YAEA,CAAC,CAAC,WAAW,CAAC,aAAa,CAAC,WAAW,CACvC,SAAS,CAAC,IAAI,CAAC,gBAAgB,IAAI,CAAC,CACpC,GACK,IACD,IACL,CACH,GACc,GACV,CACP,CAAA;AACF,CAAC,CAAA;AAED,eAAe,2BAA2B,CAAA"}
|
|
@@ -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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A;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"}
|