@silexpert/core 1.0.108 → 1.0.109
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/es/utils/commercialManagement/document.d.ts +3 -3
- package/es/utils/commercialManagement/document.d.ts.map +1 -1
- package/es/utils/commercialManagement/document.js +6 -6
- package/es/utils/commercialManagement/document.js.map +1 -1
- package/es/utils/commercialManagement/templates/common.js +1 -1
- package/es/utils/commercialManagement/templates/common.js.map +1 -1
- package/js/utils/commercialManagement/document.js +13 -11
- package/js/utils/commercialManagement/document.js.map +1 -1
- package/js/utils/commercialManagement/templates/common.js +1 -1
- package/js/utils/commercialManagement/templates/common.js.map +1 -1
- package/package.json +1 -1
- package/ts/utils/commercialManagement/document.ts +8 -9
- package/ts/utils/commercialManagement/templates/common.ts +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReadCommercialDocumentTemplate } from '../../types/Interface/api/commercialManagement/Read';
|
|
2
2
|
import { EstimateInvoiceType } from '../../types/Enum/EstimateInvoice';
|
|
3
3
|
import { CreateInvoiceDocument, CreateMailHeader, CreatePreSaleDocument, ReadCommercialMailTemplate } from '../../types';
|
|
4
|
-
export declare function generateCommercialDocument(idEstimateInvoiceType: EstimateInvoiceType, payload: CreateInvoiceDocument | CreatePreSaleDocument, shouldHideBrandName?: boolean): ReadCommercialDocumentTemplate;
|
|
5
|
-
export declare function generateAdvanceDocument(payload: CreateInvoiceDocument, shouldHideBrandName?: boolean): ReadCommercialDocumentTemplate;
|
|
6
|
-
export declare function generateMailHeader(params: CreateMailHeader, shouldHideBrandName?: boolean): ReadCommercialMailTemplate;
|
|
4
|
+
export declare function generateCommercialDocument(idEstimateInvoiceType: EstimateInvoiceType, payload: CreateInvoiceDocument | CreatePreSaleDocument, shouldHideBrandName?: boolean, nodeEnv?: undefined): ReadCommercialDocumentTemplate;
|
|
5
|
+
export declare function generateAdvanceDocument(payload: CreateInvoiceDocument, shouldHideBrandName?: boolean, nodeEnv?: undefined): ReadCommercialDocumentTemplate;
|
|
6
|
+
export declare function generateMailHeader(params: CreateMailHeader, shouldHideBrandName?: boolean, nodeEnv?: undefined): ReadCommercialMailTemplate;
|
|
7
7
|
//# sourceMappingURL=document.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document.d.ts","sourceRoot":"","sources":["../../../ts/utils/commercialManagement/document.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,8BAA8B,EAAuB,MAAM,qDAAqD,CAAC;AAI1H,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAOvE,OAAO,EACL,qBAAqB,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,0BAA0B,EAC3F,MAAM,aAAa,CAAC;AAgBrB,wBAAgB,0BAA0B,CAAC,qBAAqB,EAAE,mBAAmB,EAAE,OAAO,EAAE,qBAAqB,GAAG,qBAAqB,EAAE,mBAAmB,UAAQ,GAAG,8BAA8B,
|
|
1
|
+
{"version":3,"file":"document.d.ts","sourceRoot":"","sources":["../../../ts/utils/commercialManagement/document.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,8BAA8B,EAAuB,MAAM,qDAAqD,CAAC;AAI1H,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAOvE,OAAO,EACL,qBAAqB,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,0BAA0B,EAC3F,MAAM,aAAa,CAAC;AAgBrB,wBAAgB,0BAA0B,CAAC,qBAAqB,EAAE,mBAAmB,EAAE,OAAO,EAAE,qBAAqB,GAAG,qBAAqB,EAAE,mBAAmB,UAAQ,EAAE,OAAO,YAAY,GAAG,8BAA8B,CAwF/N;AAED,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,UAAQ,EAAE,OAAO,YAAY,GAAG,8BAA8B,CA0FxJ;AAED,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,gBAAgB,EAAE,mBAAmB,UAAQ,EAAE,OAAO,YAAY,GAAG,0BAA0B,CAuBzI"}
|
|
@@ -12,7 +12,7 @@ import { thirdPartyToReadThirdPartyEditing } from './thirdParty';
|
|
|
12
12
|
import { getBrandConfig } from '../brands';
|
|
13
13
|
const ejs = require('ejs');
|
|
14
14
|
require('dayjs/locale/fr');
|
|
15
|
-
export function generateCommercialDocument(idEstimateInvoiceType, payload, shouldHideBrandName = false) {
|
|
15
|
+
export function generateCommercialDocument(idEstimateInvoiceType, payload, shouldHideBrandName = false, nodeEnv = undefined) {
|
|
16
16
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
|
17
17
|
const products = _orderBy(payload.products.map((product) => productToReadProductEditing(product), 'reorder'));
|
|
18
18
|
const vats = _orderBy(Object.values(_groupBy(products, 'vatFormatted')).map((v) => (vatToReadVatEditing(v)), 'value')).filter((v) => v.id !== Vat.MARGE.id);
|
|
@@ -32,7 +32,7 @@ export function generateCommercialDocument(idEstimateInvoiceType, payload, shoul
|
|
|
32
32
|
.filter((p) => p.marginVatFormatted !== null)
|
|
33
33
|
.map((p) => p.marginVatFormatted)), accountingCategoryFormatted: (_t = (_s = AccountingCategoryList.find((a) => a.id === payload.accountingCategory)) === null || _s === void 0 ? void 0 : _s.label) !== null && _t !== void 0 ? _t : null,
|
|
34
34
|
// @ts-ignore
|
|
35
|
-
brandColors: getBrandConfig({ objectWaited: 'colors' }), brandName: `${getBrandConfig({ objectWaited: 'name' })}`, shouldHideBrandName });
|
|
35
|
+
brandColors: getBrandConfig({ objectWaited: 'colors', nodeEnv }), brandName: `${getBrandConfig({ objectWaited: 'name', nodeEnv })}`, shouldHideBrandName });
|
|
36
36
|
const commonTemplate = new CommercialDocumentCommonHTML();
|
|
37
37
|
const documentFreeText = [
|
|
38
38
|
EstimateInvoiceType.DEVIS,
|
|
@@ -54,7 +54,7 @@ export function generateCommercialDocument(idEstimateInvoiceType, payload, shoul
|
|
|
54
54
|
data,
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
|
-
export function generateAdvanceDocument(payload, shouldHideBrandName = false) {
|
|
57
|
+
export function generateAdvanceDocument(payload, shouldHideBrandName = false, nodeEnv = undefined) {
|
|
58
58
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
59
59
|
if (!payload.deposit)
|
|
60
60
|
throw new Error('Aucun acompte défini');
|
|
@@ -77,7 +77,7 @@ export function generateAdvanceDocument(payload, shouldHideBrandName = false) {
|
|
|
77
77
|
// @ts-ignore
|
|
78
78
|
marginVats: _uniq(((_l = payload.assetMarginVatIds) !== null && _l !== void 0 ? _l : []).map((m) => { var _a, _b; return (_b = (_a = VatMarginCategyList.find((c) => c.id === m)) === null || _a === void 0 ? void 0 : _a.label) !== null && _b !== void 0 ? _b : null; })), accountingCategoryFormatted: (_o = (_m = AccountingCategoryList.find((a) => a.id === payload.accountingCategory)) === null || _m === void 0 ? void 0 : _m.label) !== null && _o !== void 0 ? _o : null,
|
|
79
79
|
// @ts-ignore
|
|
80
|
-
brandColors: getBrandConfig({ objectWaited: 'colors' }), brandName: `${getBrandConfig({ objectWaited: 'name' })}`, shouldHideBrandName });
|
|
80
|
+
brandColors: getBrandConfig({ objectWaited: 'colors', nodeEnv }), brandName: `${getBrandConfig({ objectWaited: 'name', nodeEnv })}`, shouldHideBrandName });
|
|
81
81
|
const commonTemplate = new CommercialDocumentCommonHTML();
|
|
82
82
|
return {
|
|
83
83
|
header: ejs === null || ejs === void 0 ? void 0 : ejs.render(commonTemplate.header, data),
|
|
@@ -93,11 +93,11 @@ export function generateAdvanceDocument(payload, shouldHideBrandName = false) {
|
|
|
93
93
|
data,
|
|
94
94
|
};
|
|
95
95
|
}
|
|
96
|
-
export function generateMailHeader(params, shouldHideBrandName = false) {
|
|
96
|
+
export function generateMailHeader(params, shouldHideBrandName = false, nodeEnv = undefined) {
|
|
97
97
|
dayjs.locale('fr');
|
|
98
98
|
const data = Object.assign(Object.assign({}, params.payload), { totalTaxExcludedFormatted: integerToFormattedAmountObject(params.payload.totalTaxExcluded), totalTaxIncludedFormatted: integerToFormattedAmountObject(params.payload.totalTaxIncluded), totalVatFormatted: integerToFormattedAmountObject(params.payload.totalTaxIncluded - params.payload.totalTaxExcluded), dueDateFormatted: params.payload.dueDate ? dayjs(params.payload.dueDate).format('DD MMMM YYYY') : null, hasVat: params.hasVat, hostS3: params.hostS3, logoUrl: params.logoUrl, companyName: params.companyName, fileUrl: params.fileUrl,
|
|
99
99
|
// @ts-ignore
|
|
100
|
-
brandColors: getBrandConfig({ objectWaited: 'colors'
|
|
100
|
+
brandColors: getBrandConfig({ objectWaited: 'colors', nodeEnv }), shouldHideBrandName });
|
|
101
101
|
const mailTemplate = new CommercialDocumentMailHTML();
|
|
102
102
|
return {
|
|
103
103
|
header: ejs.render(mailTemplate.header, data),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document.js","sourceRoot":"","sources":["../../../ts/utils/commercialManagement/document.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,IAAI,QAAQ,EAAE,OAAO,IAAI,QAAQ,EAAE,KAAK,IAAI,MAAM,EAAE,IAAI,IAAI,KAAK,GACzE,MAAM,QAAQ,CAAC;AAChB,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EACL,sBAAsB,EAAE,OAAO,EAAE,QAAQ,EAAE,mBAAmB,GAC/D,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,8BAA8B,EAAE,8BAA8B,EAAE,MAAM,WAAW,CAAC;AAC3F,OAAO,EAAE,4BAA4B,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAC9F,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAA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ayjs';\nimport { ReadCommercialDocumentTemplate, ReadDocumentEditing } from '../../types/Interface/api/commercialManagement/Read';\nimport {\n AccountingCategoryList, FontIds, fontList, VatMarginCategyList,\n} from '../../types/Enum/CommercialManagement';\nimport { EstimateInvoiceType } from '../../types/Enum/EstimateInvoice';\nimport { Vat } from '../../types/Enum/Vat';\nimport { integerToFormattedAmountString, integerToFormattedAmountObject } from '../amount';\nimport { CommercialDocumentCommonHTML, CommercialDocumentMailHTML } from './templates/common';\nimport { bodyTemplate } from './templates/body';\nimport { productToReadProductEditing } from './product';\nimport { vatToReadVatEditing } from './vat';\nimport {\n CreateInvoiceDocument, CreateMailHeader, CreatePreSaleDocument, ReadCommercialMailTemplate,\n} from '../../types';\nimport { thirdPartyToReadThirdPartyEditing } from './thirdParty';\nimport { getBrandConfig } from '../brands';\n\nconst ejs = require('ejs');\nrequire('dayjs/locale/fr');\n\ntype brandColorType = {\n primary: string,\n primary50: string,\n primary100: string,\n primary300: string,\n primary500: string,\n primary700: string\n};\n\nexport function generateCommercialDocument(idEstimateInvoiceType: EstimateInvoiceType, payload: CreateInvoiceDocument | CreatePreSaleDocument, shouldHideBrandName = false): ReadCommercialDocumentTemplate {\n const products = _orderBy(payload.products.map((product) => productToReadProductEditing(product), 'reorder'));\n const vats = _orderBy(Object.values(_groupBy(products, 'vatFormatted')).map((v) => (vatToReadVatEditing(v)), 'value')).filter((v) => v.id !== Vat.MARGE.id);\n const thirdParty = thirdPartyToReadThirdPartyEditing(payload.thirdParty);\n\n const data: ReadDocumentEditing & { brandColors: brandColorType, brandName: string, shouldHideBrandName: boolean } = {\n ...payload,\n thirdParty,\n paymentLink: payload.paymentLink ?? '#',\n idEstimateInvoiceType,\n title: payload.title ?? null,\n penalties: payload.penalties ?? null,\n compensation: payload.compensation ?? null,\n discount: payload.discount ?? null,\n vatMention: payload.vatMention ?? null,\n phoneContact: payload.settings?.phoneContact ?? null,\n products,\n vats,\n totalTaxExcluded: _sumBy(products, 'totalTaxExcluded'),\n totalTaxIncluded: _sumBy(products, 'totalTaxExcluded') + _sumBy(vats, 'amount'),\n totalTaxAndDiscountIncluded: _sumBy(products, 'totalTaxExcluded') + _sumBy(vats, 'amount'),\n generalDiscountFormatted: payload.generalDiscount2 ? integerToFormattedAmountString(payload.generalDiscount2) : null,\n depositFormatted: payload.deposit ? integerToFormattedAmountString(payload.deposit) : null,\n totalTaxExcludedFormatted: integerToFormattedAmountString(_sumBy(products, 'totalTaxExcluded')),\n totalTaxIncludedFormatted: integerToFormattedAmountString(_sumBy(products, 'totalTaxExcluded') + _sumBy(vats, 'amount')),\n totalTaxAndDiscountIncludedFormatted: integerToFormattedAmountString(_sumBy(products, 'totalTaxExcluded') + _sumBy(vats, 'amount') - (payload.generalDiscount2 ?? 0) - (payload.deposit ?? 0)),\n totalVatAmountFormatted: integerToFormattedAmountString(_sumBy(vats, 'amount')),\n font: {\n id: payload.settings?.idFont ?? FontIds.CIRCULAR_STD,\n name: fontList.find((f) => f.id === payload.settings?.idFont)?.name ?? fontList[0].name,\n url: fontList.find((f) => f.id === payload.settings?.idFont)?.link ?? fontList[0].link,\n },\n capitalFormatted: payload.capital\n ? `${payload.capital}`.split('')\n .reduceRight((acc, char, i, { length }) => `${char}${(length - (i + 1)) % 3 === 0 ? ' ' : ''}${acc}`, '')\n .trim()\n : null,\n dueDateFormatted: payload.dueDate ? dayjs(payload.dueDate).format('DD/MM/YYYY') : null,\n expirationDateFormatted: payload.expirationDate ? dayjs(payload.expirationDate).format('DD/MM/YYYY') : null,\n emissionDateFormatted: payload.emissionDate ? dayjs(payload.emissionDate).format('DD/MM/YYYY') : null,\n shouldDisplayDiscountColumn: !!products.find(\n (p) => p.discount2 && p.discount2 > 0,\n ),\n // @ts-ignore\n marginVats: _uniq(\n products\n .filter((p) => p.marginVatFormatted !== null)\n .map((p) => p.marginVatFormatted),\n ),\n accountingCategoryFormatted:\n AccountingCategoryList.find((a) => a.id === payload.accountingCategory)\n ?.label ?? null,\n // @ts-ignore\n brandColors: getBrandConfig({ objectWaited: 'colors' }) as brandColorType,\n brandName: `${getBrandConfig({ objectWaited: 'name' })}`,\n shouldHideBrandName,\n };\n\n const commonTemplate = new CommercialDocumentCommonHTML();\n const documentFreeText = [\n EstimateInvoiceType.DEVIS,\n EstimateInvoiceType.BON,\n ].includes(idEstimateInvoiceType)\n ? payload?.settings?.freeEstimateText\n : payload?.settings?.freeInvoiceText;\n\n return {\n header: ejs.render(commonTemplate.header, data),\n body: ejs.render(bodyTemplate, {\n ...data,\n comment:\n data.comment && typeof data.comment === 'string'\n ? data.comment?.replace(/\\n/g, '<br/>')\n : null,\n products: data.products.map((p) => ({\n ...p,\n comment:\n p.comment && typeof p.comment === 'string'\n ? p.comment?.replace(/\\n/g, '<br/>')\n : null,\n })),\n }),\n footer: ejs.render(commonTemplate.footer, {\n ...data,\n freeText: documentFreeText ?? null,\n }),\n data,\n };\n}\n\nexport function generateAdvanceDocument(payload: CreateInvoiceDocument, shouldHideBrandName = false): ReadCommercialDocumentTemplate {\n if (!payload.deposit) throw new Error('Aucun acompte défini');\n\n const data: ReadDocumentEditing & { brandColors: brandColorType, brandName: string, shouldHideBrandName: boolean } = {\n ...payload,\n title: payload.title ?? null,\n paymentLink: payload.paymentLink ?? '#',\n idEstimateInvoiceType: EstimateInvoiceType.ACOMPTE,\n phoneContact: payload.settings?.phoneContact ?? null,\n products: [],\n vats: [],\n totalTaxExcluded: payload.deposit,\n totalTaxIncluded: payload.deposit,\n totalTaxAndDiscountIncluded: payload.deposit,\n generalDiscountFormatted: null,\n depositFormatted: integerToFormattedAmountString(payload.deposit),\n totalTaxExcludedFormatted: integerToFormattedAmountString(payload.deposit),\n totalTaxIncludedFormatted: integerToFormattedAmountString(payload.deposit),\n totalTaxAndDiscountIncludedFormatted: integerToFormattedAmountString(\n payload.deposit,\n ),\n totalVatAmountFormatted: integerToFormattedAmountString(0),\n font: {\n id: payload.settings?.idFont ?? FontIds.CIRCULAR_STD,\n name:\n fontList.find((f) => f.id === payload.settings?.idFont)?.name\n ?? fontList[0].name,\n url:\n fontList.find((f) => f.id === payload.settings?.idFont)?.link\n ?? fontList[0].link,\n },\n capitalFormatted: payload.capital\n ? `${payload.capital}`\n .split('')\n .reduceRight(\n (acc, char, i, { length }) => `${char}${(length - (i + 1)) % 3 === 0 ? ' ' : ''}${acc}`,\n '',\n )\n .trim()\n : null,\n dueDateFormatted: payload.dueDate\n ? dayjs(payload.dueDate).format('DD/MM/YYYY')\n : null,\n expirationDateFormatted: payload.expirationDate\n ? dayjs(payload.expirationDate).format('DD/MM/YYYY')\n : null,\n emissionDateFormatted: payload.emissionDate\n ? dayjs(payload.emissionDate).format('DD/MM/YYYY')\n : null,\n shouldDisplayDiscountColumn: false,\n disableVat: true,\n // @ts-ignore\n marginVats: _uniq(\n (payload.assetMarginVatIds ?? []).map(\n (m) => VatMarginCategyList.find((c) => c.id === m)?.label ?? null,\n ),\n ),\n accountingCategoryFormatted:\n AccountingCategoryList.find((a) => a.id === payload.accountingCategory)\n ?.label ?? null,\n // @ts-ignore\n brandColors: getBrandConfig({ objectWaited: 'colors' }) as brandColorType,\n brandName: `${getBrandConfig({ objectWaited: 'name' })}`,\n shouldHideBrandName,\n };\n\n const commonTemplate = new CommercialDocumentCommonHTML();\n\n return {\n header: ejs?.render(commonTemplate.header, data),\n body: ejs?.render(bodyTemplate, {\n ...data,\n comment:\n data.comment && typeof data.comment === 'string'\n ? data.comment?.replace(/\\n/g, '<br/>')\n : null,\n products: data.products.map((p) => ({\n ...p,\n comment:\n p.comment && typeof p.comment === 'string'\n ? p.comment?.replace(/\\n/g, '<br/>')\n : null,\n })),\n }),\n footer: ejs?.render(commonTemplate.footer, {\n ...data,\n freeText: payload?.settings?.freeInvoiceText ?? null,\n }),\n data,\n };\n}\n\nexport function generateMailHeader(params: CreateMailHeader, shouldHideBrandName = false): ReadCommercialMailTemplate {\n dayjs.locale('fr');\n const data = {\n ...params.payload,\n totalTaxExcludedFormatted: integerToFormattedAmountObject(params.payload.totalTaxExcluded),\n totalTaxIncludedFormatted: integerToFormattedAmountObject(params.payload.totalTaxIncluded),\n totalVatFormatted: integerToFormattedAmountObject(params.payload.totalTaxIncluded - params.payload.totalTaxExcluded),\n dueDateFormatted: params.payload.dueDate ? dayjs(params.payload.dueDate).format('DD MMMM YYYY') : null,\n hasVat: params.hasVat,\n hostS3: params.hostS3,\n logoUrl: params.logoUrl,\n companyName: params.companyName,\n fileUrl: params.fileUrl,\n // @ts-ignore\n brandColors: getBrandConfig({ objectWaited: 'colors' }) as brandColorType,\n brandName: `${getBrandConfig({ objectWaited: 'name' })}`,\n shouldHideBrandName,\n };\n\n const mailTemplate = new CommercialDocumentMailHTML();\n\n return {\n header: ejs.render(mailTemplate.header, data),\n };\n}"]}
|
|
1
|
+
{"version":3,"file":"document.js","sourceRoot":"","sources":["../../../ts/utils/commercialManagement/document.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,IAAI,QAAQ,EAAE,OAAO,IAAI,QAAQ,EAAE,KAAK,IAAI,MAAM,EAAE,IAAI,IAAI,KAAK,GACzE,MAAM,QAAQ,CAAC;AAChB,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EACL,sBAAsB,EAAE,OAAO,EAAE,QAAQ,EAAE,mBAAmB,GAC/D,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,8BAA8B,EAAE,8BAA8B,EAAE,MAAM,WAAW,CAAC;AAC3F,OAAO,EAAE,4BAA4B,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAC9F,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,2BAA2B,EAAE,MAAM,WAAW,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAI5C,OAAO,EAAE,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AACJ,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,MAAwB,EAAE,mBAAmB,GAAG,KAAK,EAAE,OAAO,GAAG,SAAS;IAC3G,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACnB,MAAM,IAAI,mCACL,MAAM,CAAC,OAAO,KACjB,yBAAyB,EAAE,8BAA8B,CAAC,MAAM,CAAC,OAAO,CAAC,gBAAgB,CAAC,EAC1F,yBAAyB,EAAE,8BAA8B,CAAC,MAAM,CAAC,OAAO,CAAC,gBAAgB,CAAC,EAC1F,iBAAiB,EAAE,8BAA8B,CAAC,MAAM,CAAC,OAAO,CAAC,gBAAgB,GAAG,MAAM,CAAC,OAAO,CAAC,gBAAgB,CAAC,EACpH,gBAAgB,EAAE,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,IAAI,EACtG,MAAM,EAAE,MAAM,CAAC,MAAM,EACrB,MAAM,EAAE,MAAM,CAAC,MAAM,EACrB,OAAO,EAAE,MAAM,CAAC,OAAO,EACvB,WAAW,EAAE,MAAM,CAAC,WAAW,EAC/B,OAAO,EAAE,MAAM,CAAC,OAAO;QACvB,aAAa;QACb,WAAW,EAAE,cAAc,CAAC,EAAE,YAAY,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAmB,EAClF,mBAAmB,GACpB,CAAC;IAEF,MAAM,YAAY,GAAG,IAAI,0BAA0B,EAAE,CAAC;IAEtD,OAAO;QACL,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC;KAC9C,CAAC;AACJ,CAAC","sourcesContent":["import {\n orderBy as _orderBy, groupBy as _groupBy, sumBy as _sumBy, uniq as _uniq,\n} from 'lodash';\nimport * as dayjs from 'dayjs';\nimport { ReadCommercialDocumentTemplate, ReadDocumentEditing } from '../../types/Interface/api/commercialManagement/Read';\nimport {\n AccountingCategoryList, FontIds, fontList, VatMarginCategyList,\n} from '../../types/Enum/CommercialManagement';\nimport { EstimateInvoiceType } from '../../types/Enum/EstimateInvoice';\nimport { Vat } from '../../types/Enum/Vat';\nimport { integerToFormattedAmountString, integerToFormattedAmountObject } from '../amount';\nimport { CommercialDocumentCommonHTML, CommercialDocumentMailHTML } from './templates/common';\nimport { bodyTemplate } from './templates/body';\nimport { productToReadProductEditing } from './product';\nimport { vatToReadVatEditing } from './vat';\nimport {\n CreateInvoiceDocument, CreateMailHeader, CreatePreSaleDocument, ReadCommercialMailTemplate,\n} from '../../types';\nimport { thirdPartyToReadThirdPartyEditing } from './thirdParty';\nimport { getBrandConfig } from '../brands';\n\nconst ejs = require('ejs');\nrequire('dayjs/locale/fr');\n\ntype brandColorType = {\n primary: string,\n primary50: string,\n primary100: string,\n primary300: string,\n primary500: string,\n primary700: string\n};\n\nexport function generateCommercialDocument(idEstimateInvoiceType: EstimateInvoiceType, payload: CreateInvoiceDocument | CreatePreSaleDocument, shouldHideBrandName = false, nodeEnv = undefined): ReadCommercialDocumentTemplate {\n const products = _orderBy(payload.products.map((product) => productToReadProductEditing(product), 'reorder'));\n const vats = _orderBy(Object.values(_groupBy(products, 'vatFormatted')).map((v) => (vatToReadVatEditing(v)), 'value')).filter((v) => v.id !== Vat.MARGE.id);\n const thirdParty = thirdPartyToReadThirdPartyEditing(payload.thirdParty);\n\n const data: ReadDocumentEditing & { brandColors: brandColorType, brandName: string, shouldHideBrandName: boolean } = {\n ...payload,\n thirdParty,\n paymentLink: payload.paymentLink ?? '#',\n idEstimateInvoiceType,\n title: payload.title ?? null,\n penalties: payload.penalties ?? null,\n compensation: payload.compensation ?? null,\n discount: payload.discount ?? null,\n vatMention: payload.vatMention ?? null,\n phoneContact: payload.settings?.phoneContact ?? null,\n products,\n vats,\n totalTaxExcluded: _sumBy(products, 'totalTaxExcluded'),\n totalTaxIncluded: _sumBy(products, 'totalTaxExcluded') + _sumBy(vats, 'amount'),\n totalTaxAndDiscountIncluded: _sumBy(products, 'totalTaxExcluded') + _sumBy(vats, 'amount'),\n generalDiscountFormatted: payload.generalDiscount2 ? integerToFormattedAmountString(payload.generalDiscount2) : null,\n depositFormatted: payload.deposit ? integerToFormattedAmountString(payload.deposit) : null,\n totalTaxExcludedFormatted: integerToFormattedAmountString(_sumBy(products, 'totalTaxExcluded')),\n totalTaxIncludedFormatted: integerToFormattedAmountString(_sumBy(products, 'totalTaxExcluded') + _sumBy(vats, 'amount')),\n totalTaxAndDiscountIncludedFormatted: integerToFormattedAmountString(_sumBy(products, 'totalTaxExcluded') + _sumBy(vats, 'amount') - (payload.generalDiscount2 ?? 0) - (payload.deposit ?? 0)),\n totalVatAmountFormatted: integerToFormattedAmountString(_sumBy(vats, 'amount')),\n font: {\n id: payload.settings?.idFont ?? FontIds.CIRCULAR_STD,\n name: fontList.find((f) => f.id === payload.settings?.idFont)?.name ?? fontList[0].name,\n url: fontList.find((f) => f.id === payload.settings?.idFont)?.link ?? fontList[0].link,\n },\n capitalFormatted: payload.capital\n ? `${payload.capital}`.split('')\n .reduceRight((acc, char, i, { length }) => `${char}${(length - (i + 1)) % 3 === 0 ? ' ' : ''}${acc}`, '')\n .trim()\n : null,\n dueDateFormatted: payload.dueDate ? dayjs(payload.dueDate).format('DD/MM/YYYY') : null,\n expirationDateFormatted: payload.expirationDate ? dayjs(payload.expirationDate).format('DD/MM/YYYY') : null,\n emissionDateFormatted: payload.emissionDate ? dayjs(payload.emissionDate).format('DD/MM/YYYY') : null,\n shouldDisplayDiscountColumn: !!products.find(\n (p) => p.discount2 && p.discount2 > 0,\n ),\n // @ts-ignore\n marginVats: _uniq(\n products\n .filter((p) => p.marginVatFormatted !== null)\n .map((p) => p.marginVatFormatted),\n ),\n accountingCategoryFormatted:\n AccountingCategoryList.find((a) => a.id === payload.accountingCategory)\n ?.label ?? null,\n // @ts-ignore\n brandColors: getBrandConfig({ objectWaited: 'colors', nodeEnv }) as brandColorType,\n brandName: `${getBrandConfig({ objectWaited: 'name', nodeEnv })}`,\n shouldHideBrandName,\n };\n\n const commonTemplate = new CommercialDocumentCommonHTML();\n const documentFreeText = [\n EstimateInvoiceType.DEVIS,\n EstimateInvoiceType.BON,\n ].includes(idEstimateInvoiceType)\n ? payload?.settings?.freeEstimateText\n : payload?.settings?.freeInvoiceText;\n\n return {\n header: ejs.render(commonTemplate.header, data),\n body: ejs.render(bodyTemplate, {\n ...data,\n comment:\n data.comment && typeof data.comment === 'string'\n ? data.comment?.replace(/\\n/g, '<br/>')\n : null,\n products: data.products.map((p) => ({\n ...p,\n comment:\n p.comment && typeof p.comment === 'string'\n ? p.comment?.replace(/\\n/g, '<br/>')\n : null,\n })),\n }),\n footer: ejs.render(commonTemplate.footer, {\n ...data,\n freeText: documentFreeText ?? null,\n }),\n data,\n };\n}\n\nexport function generateAdvanceDocument(payload: CreateInvoiceDocument, shouldHideBrandName = false, nodeEnv = undefined): ReadCommercialDocumentTemplate {\n if (!payload.deposit) throw new Error('Aucun acompte défini');\n\n const data: ReadDocumentEditing & { brandColors: brandColorType, brandName: string, shouldHideBrandName: boolean } = {\n ...payload,\n title: payload.title ?? null,\n paymentLink: payload.paymentLink ?? '#',\n idEstimateInvoiceType: EstimateInvoiceType.ACOMPTE,\n phoneContact: payload.settings?.phoneContact ?? null,\n products: [],\n vats: [],\n totalTaxExcluded: payload.deposit,\n totalTaxIncluded: payload.deposit,\n totalTaxAndDiscountIncluded: payload.deposit,\n generalDiscountFormatted: null,\n depositFormatted: integerToFormattedAmountString(payload.deposit),\n totalTaxExcludedFormatted: integerToFormattedAmountString(payload.deposit),\n totalTaxIncludedFormatted: integerToFormattedAmountString(payload.deposit),\n totalTaxAndDiscountIncludedFormatted: integerToFormattedAmountString(\n payload.deposit,\n ),\n totalVatAmountFormatted: integerToFormattedAmountString(0),\n font: {\n id: payload.settings?.idFont ?? FontIds.CIRCULAR_STD,\n name:\n fontList.find((f) => f.id === payload.settings?.idFont)?.name\n ?? fontList[0].name,\n url:\n fontList.find((f) => f.id === payload.settings?.idFont)?.link\n ?? fontList[0].link,\n },\n capitalFormatted: payload.capital\n ? `${payload.capital}`\n .split('')\n .reduceRight(\n (acc, char, i, { length }) => `${char}${(length - (i + 1)) % 3 === 0 ? ' ' : ''}${acc}`,\n '',\n )\n .trim()\n : null,\n dueDateFormatted: payload.dueDate\n ? dayjs(payload.dueDate).format('DD/MM/YYYY')\n : null,\n expirationDateFormatted: payload.expirationDate\n ? dayjs(payload.expirationDate).format('DD/MM/YYYY')\n : null,\n emissionDateFormatted: payload.emissionDate\n ? dayjs(payload.emissionDate).format('DD/MM/YYYY')\n : null,\n shouldDisplayDiscountColumn: false,\n disableVat: true,\n // @ts-ignore\n marginVats: _uniq(\n (payload.assetMarginVatIds ?? []).map(\n (m) => VatMarginCategyList.find((c) => c.id === m)?.label ?? null,\n ),\n ),\n accountingCategoryFormatted:\n AccountingCategoryList.find((a) => a.id === payload.accountingCategory)\n ?.label ?? null,\n // @ts-ignore\n brandColors: getBrandConfig({ objectWaited: 'colors', nodeEnv }) as brandColorType,\n brandName: `${getBrandConfig({ objectWaited: 'name', nodeEnv })}`,\n shouldHideBrandName,\n };\n\n const commonTemplate = new CommercialDocumentCommonHTML();\n\n return {\n header: ejs?.render(commonTemplate.header, data),\n body: ejs?.render(bodyTemplate, {\n ...data,\n comment:\n data.comment && typeof data.comment === 'string'\n ? data.comment?.replace(/\\n/g, '<br/>')\n : null,\n products: data.products.map((p) => ({\n ...p,\n comment:\n p.comment && typeof p.comment === 'string'\n ? p.comment?.replace(/\\n/g, '<br/>')\n : null,\n })),\n }),\n footer: ejs?.render(commonTemplate.footer, {\n ...data,\n freeText: payload?.settings?.freeInvoiceText ?? null,\n }),\n data,\n };\n}\n\nexport function generateMailHeader(params: CreateMailHeader, shouldHideBrandName = false, nodeEnv = undefined): ReadCommercialMailTemplate {\n dayjs.locale('fr');\n const data = {\n ...params.payload,\n totalTaxExcludedFormatted: integerToFormattedAmountObject(params.payload.totalTaxExcluded),\n totalTaxIncludedFormatted: integerToFormattedAmountObject(params.payload.totalTaxIncluded),\n totalVatFormatted: integerToFormattedAmountObject(params.payload.totalTaxIncluded - params.payload.totalTaxExcluded),\n dueDateFormatted: params.payload.dueDate ? dayjs(params.payload.dueDate).format('DD MMMM YYYY') : null,\n hasVat: params.hasVat,\n hostS3: params.hostS3,\n logoUrl: params.logoUrl,\n companyName: params.companyName,\n fileUrl: params.fileUrl,\n // @ts-ignore\n brandColors: getBrandConfig({ objectWaited: 'colors', nodeEnv }) as brandColorType,\n shouldHideBrandName,\n };\n\n const mailTemplate = new CommercialDocumentMailHTML();\n\n return {\n header: ejs.render(mailTemplate.header, data),\n };\n}"]}
|
|
@@ -377,7 +377,7 @@ export class CommercialDocumentMailHTML {
|
|
|
377
377
|
</div>
|
|
378
378
|
</div>
|
|
379
379
|
<% if (!shouldHideBrandName) { %>
|
|
380
|
-
<div style="margin-top: 16px; width: fit-content; margin-left: auto; margin-right: auto; font-size: 14px;">
|
|
380
|
+
<div style="margin-top: 16px; width: fit-content; white-space: nowrap; margin-left: auto; margin-right: auto; font-size: 14px;">
|
|
381
381
|
<div class="brand-tag" style="display: flex; line-height: 22px; height: 22px;">
|
|
382
382
|
Généré par <% if (hostS3) { %><img src="<%= hostS3 %>config/logo-brand.png" alt="logo" style="max-height: 22px; margin-left: 8px;" /><% } %>
|
|
383
383
|
</div>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../ts/utils/commercialManagement/templates/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC1E,OAAO,EACL,YAAY,EACZ,OAAO,GACR,MAAM,0CAA0C,CAAC;AAElD,MAAM,OAAO,4BAA4B;IAAzC;QACE,WAAM,GAAG;;;;UAID,CAAC;QAET,WAAM,GAAG;;;;;;;;;;;;;;SAcF,CAAC;QAER,SAAI,GA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CAAC,KAAK;;wDAEzB,mBAAmB,CAAC,KAAK;;wDAEzB,mBAAmB,CAAC,GAAG;;wDAEvB,mBAAmB,CAAC,OAAO;;wDAE3B,mBAAmB,CAAC,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsD9E,CAAC;IACJ,CAAC;CAAA","sourcesContent":["import { EstimateInvoiceType } from '../../../types/Enum/EstimateInvoice';\nimport {\n DiscountType,\n FontIds,\n} from '../../../types/Enum/CommercialManagement';\n\nexport class CommercialDocumentCommonHTML {\n header = `<style>html {\n -webkit-print-color-adjust: exact;\n }</style><% if (settings && settings.isEdgingDisplayed) { %>\n <span id=\"header-edging\" style=\"position: absolute; top: 0; left: 0; width: 100vw; font-size: 10px !important; height: 15px; background-color: <%= settings && settings.edgingColor ? settings.edgingColor : '#333333' %>; margin-bottom: 20px;\"></span>\n <% } %>`;\n\n footer = `<div style=\"font-size: 8px !important; color: #838384; text-align: center; padding: 0 40px; display: block; width: 100%;\">\n <% if (freeText) { %><%- freeText %><br/><br/><% } %><% if (accountingCategoryFormatted) {%><%= accountingCategoryFormatted %> | <%}%><% if(marginVats.length > 0) { %>Régime TVA sur marge - <% marginVats.forEach(function(v, index) { %><%= v %> - <% }) %>ART 297-A du CGI ou directive 2006-212 CE | <% } %><% if(penalties || compensation || discount) { %><%= penalties ? 'Pénalités en cas de retard : ' + penalties : ''%><%= penalties && compensation ? ' | ' : ''%><%= compensation ? 'Indemnité forfaitaire en cas de retard : ' + compensation + ' ' : '' %><%= (compensation || penalties) && discount ? ' | ' : '' %><%= discount ? discount + ' ' : '' %><%= shouldPayTaxAfterDebit ? \"| Option pour le paiement de la taxe d'après les débits\" : '' %><% if(name || legalForm || capital || siren || rcs) {%><br/><br/><% } %><% } %><%= name %><%= name && (legalForm || capital || siren || rcs) ? ', ' : ''%><%= legalForm %><%= capital ? ' au capital de ' + capitalFormatted + ' €' : '' %><%= siren ? ' immatriculée sous le SIREN ' + siren : ''%><%= rcs ? '| RCS ' + rcs : ''%><% if (vatCode || nafCode) {%><br/><% } %><%= vatCode ? 'N° TVA '+vatCode : ''%><% if(vatCode && nafCode){%>|<%}%><%= nafCode ? 'APE '+nafCode : '' %>\n <% if ([\"Clementine\", \"Pourcentage\", \"Comptalib\"].includes(brandName) && !shouldHideBrandName) { %>\n <div style=\"display: grid; place-items: center;\"><div style=\"background-color: <%= brandColors.primary50 %>; color: <%= brandColors.primary500 %>; display: flex; gap: 4px; max-width: fit-content; border-radius: 4px; padding: 4px 8px; margin-top: 8px; align-items: center; font-size: 10px; line-height: 140%; font-family: 'circular std', sans serif; font-weight: 450;\">\n Généré par \n <% if (brandName === \"Clementine\") { %>\n <svg width=\"95\" height=\"14\" viewBox=\"0 0 95 14\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M20.4961 8.48563C20.4961 9.59033 21.2049 10.2067 22.037 10.2067C22.8691 10.2067 23.3005 9.65433 23.4238 9.19206L24.8722 9.68278C24.5949 10.6974 23.6395 11.7096 22.037 11.7096C20.2496 11.7096 18.8319 10.3584 18.8319 8.51644C18.8319 6.67448 20.2187 5.32324 21.9754 5.32324C23.6395 5.32324 24.5641 6.33786 24.8106 7.35011L23.393 7.81C23.2389 7.31929 22.8691 6.79539 22.037 6.79539C21.2049 6.79539 20.4961 7.40937 20.4961 8.48563V8.48563Z\" fill=\"#FF7E3C\"/><path d=\"M26.1048 11.5245V2.61816H27.7381V11.5245H26.1048Z\" fill=\"#FF7E3C\"/><path d=\"M34.9183 9.77242C34.6101 10.8155 33.6547 11.676 32.1447 11.676C30.4805 11.676 29.0013 10.4789 29.0013 8.45199C29.0013 6.42513 30.4189 5.25879 31.9906 5.25879C33.8705 5.25879 34.9799 6.45594 34.9799 8.39035C34.9799 8.6369 34.9491 8.88107 34.9491 8.88107H30.6038C30.6346 9.67996 31.3126 10.2631 32.1447 10.2631C32.9151 10.2631 33.3157 9.89569 33.5315 9.34097L34.9183 9.77004V9.77242ZM33.3774 7.80719C33.3466 7.1932 32.9459 6.61003 32.0214 6.61003C31.1585 6.61003 30.6962 7.25484 30.6654 7.80719H33.3774Z\" fill=\"#FF7E3C\"/><path d=\"M36.3058 11.5251V5.47299H37.8775V6.21025C38.2165 5.62708 38.987 5.28809 39.665 5.28809C40.497 5.28809 41.1442 5.65553 41.4524 6.3027C41.9455 5.56545 42.5618 5.28809 43.3631 5.28809C44.4725 5.28809 45.5512 5.96371 45.5512 7.59231V11.5228H43.9486V7.92894C43.9486 7.28413 43.6405 6.79342 42.87 6.79342C42.1612 6.79342 41.7606 7.34577 41.7606 7.99057V11.5228H40.1272V7.92894C40.1272 7.28413 39.7882 6.79342 39.0486 6.79342C38.309 6.79342 37.9083 7.31495 37.9083 7.99057V11.5228H36.3058V11.5251Z\" fill=\"#FF7E3C\"/><path d=\"M52.6697 9.77242C52.3615 10.8155 51.4061 11.676 49.8961 11.676C48.2319 11.676 46.7527 10.4789 46.7527 8.45199C46.7527 6.42513 48.1703 5.25879 49.742 5.25879C51.6219 5.25879 52.7313 6.45594 52.7313 8.39035C52.7313 8.6369 52.7005 8.88107 52.7005 8.88107H48.3552C48.386 9.67996 49.064 10.2631 49.8961 10.2631C50.6665 10.2631 51.0672 9.89569 51.2829 9.34097L52.6697 9.77004V9.77242ZM51.1288 7.80719C51.098 7.1932 50.6973 6.61003 49.7728 6.61003C48.9099 6.61003 48.4476 7.25484 48.4168 7.80719H51.1288Z\" fill=\"#FF7E3C\"/><path d=\"M55.69 11.5251H54.0566V5.47299H55.6592V6.21025C56.029 5.59626 56.7686 5.28809 57.4158 5.28809C58.9259 5.28809 59.6038 6.36197 59.6038 7.68476V11.4943H57.9705V7.99294C57.9705 7.31732 57.6315 6.79579 56.8611 6.79579C56.1523 6.79579 55.7208 7.34814 55.7208 8.05458L55.69 11.5251Z\" fill=\"#FF7E3C\"/><path d=\"M63.271 5.47171H64.5037V6.91541H63.271V9.46381C63.271 9.98534 63.5176 10.1702 63.9798 10.1702C64.1647 10.1702 64.4113 10.1394 64.4729 10.1086V11.4599C64.3188 11.5215 64.0415 11.6139 63.5484 11.6139C62.3773 11.6139 61.6377 10.9075 61.6377 9.74117V6.91541H60.5282V5.47171H60.8364C61.4836 5.47171 61.7609 5.04263 61.7609 4.51873V3.6582H63.2402L63.271 5.46934V5.47171Z\" fill=\"#FF7E3C\"/><path d=\"M66.6923 2.4668C67.2471 2.4668 67.7093 2.92669 67.7093 3.48141C67.7093 4.03614 67.2779 4.46521 66.6923 4.46521C66.1376 4.46521 65.6754 4.00532 65.6754 3.48141C65.6754 2.92906 66.1376 2.4668 66.6923 2.4668V2.4668ZM65.8603 11.5272V5.47509H67.4936V11.5249H65.8603V11.5272Z\" fill=\"#FF7E3C\"/><path d=\"M70.9144 11.5251H69.2811V5.47299H70.8836V6.21025C71.2534 5.59626 71.993 5.28809 72.6402 5.28809C74.1503 5.28809 74.8283 6.36197 74.8283 7.68476V11.4943H73.1949V7.99294C73.1949 7.31732 72.8559 6.79579 72.0855 6.79579C71.3767 6.79579 70.9452 7.34814 70.9452 8.05458L70.9144 11.5251V11.5251Z\" fill=\"#FF7E3C\"/><path d=\"M81.8856 9.77242C81.5774 10.8155 80.622 11.676 79.112 11.676C77.4478 11.676 75.9685 10.4789 75.9685 8.45199C75.9685 6.42513 77.3862 5.25879 78.9579 5.25879C80.8378 5.25879 81.9472 6.45594 81.9472 8.39035C81.9472 8.6369 81.9164 8.88107 81.9164 8.88107H77.6327C77.6635 9.67996 78.3415 10.2631 79.1736 10.2631C79.944 10.2631 80.3447 9.89569 80.5604 9.34097L81.8856 9.77004V9.77242ZM80.3755 7.80719C80.3447 7.1932 79.944 6.61003 79.0195 6.61003C78.1566 6.61003 77.6943 7.25484 77.6635 7.80719H80.3755V7.80719Z\" fill=\"#FF7E3C\"/><path d=\"M0 5.29774C0 5.29774 1.43659 4.14326 2.75938 5.97336C2.75938 5.97336 1.3228 6.87419 0 5.29774Z\" fill=\"#FF7E3C\"/><path d=\"M14.8356 0C8.76921 0.0853417 7.82097 3.23824 7.64792 3.97076C8.21449 3.72659 9.39505 3.371 10.6657 3.60569C14.2619 2.42276 14.8356 0 14.8356 0Z\" fill=\"#FF7E3C\"/><path d=\"M4.71548 8.93009C4.71548 6.14226 7.01497 3.85938 9.80517 3.85938C12.5954 3.85938 14.8664 6.13989 14.8949 8.93009C14.8949 11.7179 12.6238 14.0008 9.80517 14.0008C6.98652 14.0008 4.71548 11.7203 4.71548 8.93009Z\" fill=\"#FF7E3C\"/><path d=\"M5.20377 6.16734C4.68698 6.9283 4.39777 7.91447 4.39777 8.92672C4.39777 10.3349 4.91456 11.6031 5.83435 12.5324C5.37446 12.7576 4.7984 12.9259 4.19627 12.9259C2.26897 12.9259 0.74704 11.3779 0.74704 9.46247C0.74704 7.54703 2.27134 5.99902 4.19627 5.99902C4.54237 5.99902 4.88611 6.08437 5.20377 6.16734V6.16734Z\" fill=\"#FF7E3C\"/><path d=\"M88.7553 4.81456V5.47596H90.1183V6.87462H88.7553V11.5115H87.1101V6.87699H86.1049V5.47833H87.1101V4.79086C87.1101 3.43013 87.9682 2.5459 89.3052 2.5459C89.649 2.5459 89.9809 2.60753 90.116 2.66917V4.04412C90.0306 4.02041 89.8694 3.98248 89.6016 3.98248C89.2341 3.98248 88.7553 4.14131 88.7553 4.81694V4.81456Z\" fill=\"#FF7E3C\"/><path d=\"M94.9076 7.09762C94.7227 7.05969 94.5638 7.04783 94.4169 7.04783C93.5824 7.04783 92.8594 7.45321 92.8594 8.7523V11.514H91.2284V5.47849H92.812V6.37458C93.1794 5.57806 94.0139 5.42871 94.5306 5.42871C94.6658 5.42871 94.789 5.44056 94.9123 5.45242V7.09762H94.9076Z\" fill=\"#FF7E3C\"/><path d=\"M84.173 9.61523C84.7277 9.61523 85.19 10.0751 85.19 10.6299C85.19 11.1846 84.7585 11.6137 84.173 11.6137C83.6183 11.6137 83.156 11.1538 83.156 10.6299C83.156 10.0775 83.6183 9.61523 84.173 9.61523Z\" fill=\"#FF7E3C\"/></svg>\n <% } else if (brandName === \"Comptalib\") {%>\n <svg width=\"106\" height=\"16\" viewBox=\"0 0 106 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M12.8144 15.4609H12.8117C10.6013 15.7839 8.35474 15.7839 6.14437 15.4609H6.14316C5.60537 15.3823 5.10746 15.1351 4.72305 14.7558C4.33863 14.3765 4.0881 13.8852 4.00849 13.3546V13.3522C3.68103 11.1713 3.68103 8.95462 4.00849 6.77368L4.04392 6.53796C4.11349 6.07512 4.33208 5.64663 4.6674 5.31577C5.00272 4.98491 5.43699 4.76923 5.90608 4.70059L6.1474 4.66518C8.35776 4.34207 10.6043 4.34207 12.8147 4.66518V4.66518C13.3525 4.74377 13.8503 4.99098 14.2347 5.37028C14.6192 5.74957 14.8697 6.24082 14.9493 6.77144V6.77353C15.2768 8.95447 15.2768 11.1711 14.9493 13.3521V13.354C14.8698 13.8848 14.6193 14.3762 14.2348 14.7557C13.8503 15.1351 13.3523 15.3823 12.8144 15.4609V15.4609Z\" fill=\"#1656FF\"/><path d=\"M3.5494 6.32932V6.32783C3.62874 5.79726 3.87905 5.30598 4.2633 4.92666C4.64754 4.54734 5.14533 4.30012 5.68301 4.22158L5.68801 4.22083C7.52402 3.95267 9.3864 3.90722 11.2336 4.08549C11.2512 4.08723 11.2689 4.08517 11.2856 4.07943C11.3023 4.0737 11.3175 4.06444 11.3301 4.0523C11.3428 4.04016 11.3526 4.02544 11.3589 4.00916C11.3652 3.99288 11.3678 3.97545 11.3665 3.95807C11.3262 3.4203 11.2656 2.88418 11.1849 2.3497V2.34761C11.1052 1.81698 10.8547 1.32572 10.4703 0.94642C10.0859 0.567123 9.58797 0.319922 9.05019 0.241355V0.241355C6.83982 -0.0817537 4.59327 -0.0817537 2.3829 0.241355H2.37881C1.84087 0.320086 1.34288 0.567513 0.958462 0.947058C0.574041 1.3266 0.323594 1.81812 0.244144 2.34895L0.24263 2.35926C-0.0834782 4.53774 -0.0828661 6.75172 0.244447 8.93002V8.93002C0.324097 9.46063 0.574641 9.95189 0.959051 10.3312C1.34346 10.7105 1.84134 10.9577 2.37912 11.0363H2.38048C2.65753 11.0769 2.93509 11.1123 3.21315 11.1425C3.23077 11.1445 3.24861 11.1426 3.26542 11.137C3.28223 11.1315 3.29759 11.1223 3.31043 11.1103C3.32327 11.0982 3.33326 11.0835 3.33971 11.0672C3.34616 11.0509 3.3489 11.0334 3.34774 11.016C3.24888 9.45108 3.31647 7.8803 3.5494 6.32932V6.32932Z\" fill=\"#29426F\"/><path d=\"M29.2692 4.95421H31.9287C31.847 4.25715 31.6487 3.6388 31.3338 3.09915C31.0188 2.5595 30.6164 2.10978 30.1265 1.75002C29.6483 1.379 29.1 1.09793 28.4818 0.906807C27.8753 0.715681 27.2279 0.620117 26.5397 0.620117C25.5832 0.620117 24.7201 0.783137 23.9502 1.10918C23.1921 1.43522 22.5505 1.88493 22.0256 2.45831C21.5007 3.03169 21.0983 3.70626 20.8184 4.48201C20.5384 5.24652 20.3984 6.07848 20.3984 6.97791C20.3984 7.85484 20.5384 8.67556 20.8184 9.44007C21.0983 10.1933 21.5007 10.851 22.0256 11.4132C22.5505 11.9753 23.1921 12.4194 23.9502 12.7454C24.7201 13.0602 25.5832 13.2176 26.5397 13.2176C27.3096 13.2176 28.0153 13.1052 28.6568 12.8804C29.2983 12.6555 29.8582 12.3295 30.3365 11.9022C30.8147 11.475 31.1996 10.9578 31.4912 10.3507C31.7828 9.74363 31.9636 9.06344 32.0336 8.31017H29.3742C29.2692 9.11965 28.9776 9.77173 28.4993 10.2664C28.0328 10.7611 27.3796 11.0084 26.5397 11.0084C25.9215 11.0084 25.3966 10.896 24.965 10.6712C24.5335 10.4351 24.1835 10.1259 23.9152 9.74363C23.647 9.36137 23.4487 8.93415 23.3204 8.46195C23.2037 7.97851 23.1454 7.48383 23.1454 6.97791C23.1454 6.4495 23.2037 5.93795 23.3204 5.44327C23.4487 4.94859 23.647 4.51012 23.9152 4.12786C24.1835 3.73437 24.5335 3.42519 24.965 3.20033C25.3966 2.96423 25.9215 2.84619 26.5397 2.84619C26.878 2.84619 27.1988 2.9024 27.502 3.01483C27.817 3.11601 28.0969 3.26217 28.3419 3.4533C28.5868 3.64442 28.7909 3.86928 28.9542 4.12786C29.1175 4.3752 29.2225 4.65065 29.2692 4.95421Z\" fill=\"#29426F\"/><path d=\"M35.8516 8.59686C35.8516 8.24834 35.8866 7.90543 35.9565 7.56815C36.0265 7.23087 36.1432 6.93293 36.3065 6.67435C36.4814 6.41577 36.7089 6.20778 36.9888 6.05038C37.2688 5.88173 37.6187 5.79741 38.0386 5.79741C38.4585 5.79741 38.8085 5.88173 39.0884 6.05038C39.38 6.20778 39.6075 6.41577 39.7708 6.67435C39.9458 6.93293 40.0682 7.23087 40.1382 7.56815C40.2082 7.90543 40.2432 8.24834 40.2432 8.59686C40.2432 8.94539 40.2082 9.2883 40.1382 9.62558C40.0682 9.95162 39.9458 10.2496 39.7708 10.5194C39.6075 10.778 39.38 10.986 39.0884 11.1434C38.8085 11.3008 38.4585 11.3795 38.0386 11.3795C37.6187 11.3795 37.2688 11.3008 36.9888 11.1434C36.7089 10.986 36.4814 10.778 36.3065 10.5194C36.1432 10.2496 36.0265 9.95162 35.9565 9.62558C35.8866 9.2883 35.8516 8.94539 35.8516 8.59686ZM33.3671 8.59686C33.3671 9.29392 33.4779 9.92351 33.6995 10.4857C33.9211 11.0478 34.2361 11.5312 34.6443 11.936C35.0526 12.3295 35.5425 12.633 36.114 12.8466C36.6856 13.0602 37.3271 13.1671 38.0386 13.1671C38.7502 13.1671 39.3917 13.0602 39.9632 12.8466C40.5465 12.633 41.0422 12.3295 41.4505 11.936C41.8587 11.5312 42.1736 11.0478 42.3953 10.4857C42.6169 9.92351 42.7277 9.29392 42.7277 8.59686C42.7277 7.89981 42.6169 7.27022 42.3953 6.70808C42.1736 6.1347 41.8587 5.65126 41.4505 5.25776C41.0422 4.85302 40.5465 4.54385 39.9632 4.33023C39.3917 4.10538 38.7502 3.99295 38.0386 3.99295C37.3271 3.99295 36.6856 4.10538 36.114 4.33023C35.5425 4.54385 35.0526 4.85302 34.6443 5.25776C34.2361 5.65126 33.9211 6.1347 33.6995 6.70808C33.4779 7.27022 33.3671 7.89981 33.3671 8.59686Z\" fill=\"#29426F\"/><path d=\"M44.4131 4.22905V12.9478H46.8976V7.88857C46.8976 7.46134 46.9618 7.11844 47.0901 6.85986C47.2184 6.59003 47.37 6.38766 47.545 6.25275C47.7316 6.10659 47.9182 6.01103 48.1049 5.96606C48.3032 5.90984 48.4606 5.88173 48.5773 5.88173C48.9739 5.88173 49.2713 5.94919 49.4696 6.08411C49.6796 6.20778 49.8254 6.37642 49.907 6.59003C50.0003 6.80364 50.0528 7.03974 50.0645 7.29832C50.0762 7.54567 50.082 7.79863 50.082 8.05721V12.9478H52.5665V8.09094C52.5665 7.82111 52.584 7.55691 52.619 7.29832C52.6656 7.0285 52.7473 6.7924 52.8639 6.59003C52.9922 6.37642 53.1614 6.20778 53.3713 6.08411C53.593 5.94919 53.8787 5.88173 54.2287 5.88173C54.5786 5.88173 54.8527 5.93795 55.051 6.05038C55.261 6.1628 55.4184 6.31458 55.5234 6.50571C55.6284 6.69684 55.6925 6.92169 55.7159 7.18028C55.7392 7.43886 55.7509 7.71431 55.7509 8.00662V12.9478H58.2354V7.11282C58.2354 6.55068 58.1537 6.07286 57.9904 5.67936C57.8271 5.27463 57.5997 4.94858 57.308 4.70124C57.0164 4.4539 56.6665 4.27402 56.2583 4.16159C55.85 4.04916 55.4068 3.99295 54.9285 3.99295C54.2986 3.99295 53.7504 4.13911 53.2838 4.43142C52.8289 4.72373 52.4673 5.06101 52.1991 5.44327C51.9541 4.90361 51.5925 4.52698 51.1143 4.31337C50.6477 4.09976 50.1286 3.99295 49.5571 3.99295C48.9622 3.99295 48.4315 4.11662 47.9649 4.36396C47.51 4.6113 47.1192 4.95983 46.7926 5.40954H46.7576V4.22905H44.4131Z\" fill=\"#29426F\"/><path d=\"M64.7659 11.3795C64.3694 11.3795 64.0311 11.3008 63.7511 11.1434C63.4712 10.986 63.2437 10.7836 63.0688 10.5362C62.9055 10.2777 62.783 9.97973 62.7014 9.64244C62.6314 9.30516 62.5964 8.96226 62.5964 8.61373C62.5964 8.25396 62.6314 7.90543 62.7014 7.56815C62.7713 7.23087 62.888 6.93293 63.0513 6.67435C63.2263 6.41577 63.4479 6.20778 63.7162 6.05038C63.9961 5.88173 64.3402 5.79741 64.7484 5.79741C65.145 5.79741 65.4775 5.88173 65.7458 6.05038C66.0257 6.20778 66.2531 6.42139 66.4281 6.69121C66.6031 6.9498 66.7256 7.24773 66.7955 7.58502C66.8772 7.9223 66.918 8.2652 66.918 8.61373C66.918 8.96226 66.883 9.30516 66.813 9.64244C66.7431 9.97973 66.6206 10.2777 66.4456 10.5362C66.2823 10.7836 66.0607 10.986 65.7807 11.1434C65.5125 11.3008 65.1742 11.3795 64.7659 11.3795ZM60.1994 4.22905V16.0002H62.6839V11.8685H62.7189C63.0221 12.2957 63.407 12.6218 63.8736 12.8466C64.3519 13.0602 64.8709 13.1671 65.4308 13.1671C66.0957 13.1671 66.6731 13.0434 67.163 12.796C67.6645 12.5487 68.0786 12.217 68.4052 11.8011C68.7435 11.3851 68.9943 10.9073 69.1576 10.3676C69.3209 9.82795 69.4025 9.26581 69.4025 8.68118C69.4025 8.06283 69.3209 7.47259 69.1576 6.91045C68.9943 6.33707 68.7435 5.83676 68.4052 5.40954C68.067 4.98231 67.6412 4.63941 67.128 4.38083C66.6147 4.12224 66.0024 3.99295 65.2908 3.99295C64.731 3.99295 64.2177 4.09976 63.7511 4.31337C63.2846 4.52698 62.8997 4.86988 62.5964 5.34208H62.5614V4.22905H60.1994Z\" fill=\"#29426F\"/><path d=\"M74.0449 4.22905V1.6151H71.5603V4.22905H70.0556V5.83114H71.5603V10.9747C71.5603 11.4132 71.6362 11.7673 71.7878 12.0372C71.9394 12.307 72.1436 12.515 72.4002 12.6611C72.6685 12.8073 72.9717 12.9028 73.31 12.9478C73.6599 13.004 74.0274 13.0321 74.4123 13.0321C74.6572 13.0321 74.908 13.0265 75.1646 13.0153C75.4212 13.004 75.6545 12.9815 75.8645 12.9478V11.0928C75.7478 11.1152 75.6254 11.1321 75.4971 11.1434C75.3688 11.1546 75.2346 11.1602 75.0946 11.1602C74.6747 11.1602 74.3948 11.0928 74.2548 10.9578C74.1148 10.8229 74.0449 10.5531 74.0449 10.1484V5.83114H75.8645V4.22905H74.0449Z\" fill=\"#29426F\"/><path d=\"M76.9416 6.91045C76.9766 6.34831 77.1224 5.88173 77.379 5.51072C77.6356 5.13971 77.9622 4.84178 78.3588 4.61692C78.7554 4.39207 79.1987 4.23467 79.6886 4.14473C80.1901 4.04354 80.6917 3.99295 81.1933 3.99295C81.6482 3.99295 82.1089 4.02668 82.5755 4.09413C83.0421 4.15035 83.4678 4.2684 83.8527 4.44828C84.2377 4.62817 84.5526 4.88113 84.7976 5.20717C85.0425 5.52197 85.165 5.94357 85.165 6.47198V11.0084C85.165 11.4019 85.1883 11.7786 85.235 12.1383C85.2816 12.4981 85.3633 12.7679 85.4799 12.9478H82.9604C82.9138 12.8129 82.8729 12.678 82.8379 12.5431C82.8146 12.3969 82.7971 12.2508 82.7855 12.1046C82.3889 12.4981 81.9223 12.7736 81.3857 12.931C80.8492 13.0884 80.301 13.1671 79.7411 13.1671C79.3095 13.1671 78.9071 13.1165 78.5338 13.0153C78.1605 12.9141 77.8339 12.7567 77.554 12.5431C77.274 12.3295 77.0524 12.0596 76.8891 11.7336C76.7375 11.4076 76.6617 11.0197 76.6617 10.57C76.6617 10.0753 76.7492 9.67055 76.9241 9.35575C77.1107 9.02971 77.344 8.77113 77.624 8.58C77.9156 8.38887 78.2422 8.24834 78.6038 8.1584C78.977 8.05721 79.3503 7.97851 79.7236 7.9223C80.0968 7.86608 80.4642 7.82111 80.8258 7.78739C81.1874 7.75366 81.5082 7.70306 81.7881 7.63561C82.0681 7.56815 82.2897 7.47259 82.453 7.34892C82.6163 7.214 82.6921 7.02288 82.6805 6.77554C82.6805 6.51695 82.6338 6.31458 82.5405 6.16843C82.4589 6.01103 82.3422 5.89298 82.1906 5.81428C82.0506 5.72434 81.8815 5.66812 81.6832 5.64564C81.4965 5.61191 81.2924 5.59504 81.0708 5.59504C80.5809 5.59504 80.196 5.69623 79.916 5.8986C79.6361 6.10097 79.4728 6.43825 79.4261 6.91045H76.9416ZM82.6805 8.68118C82.5755 8.77113 82.4414 8.84421 82.2781 8.90042C82.1264 8.94539 81.9573 8.98474 81.7707 9.01847C81.5957 9.0522 81.4091 9.0803 81.2108 9.10279C81.0125 9.12527 80.8142 9.15338 80.6159 9.18711C80.4293 9.22084 80.2426 9.26581 80.056 9.32202C79.881 9.37824 79.7236 9.45694 79.5836 9.55812C79.4553 9.64806 79.3503 9.76611 79.2687 9.91227C79.187 10.0584 79.1462 10.2439 79.1462 10.4688C79.1462 10.6824 79.187 10.8623 79.2687 11.0084C79.3503 11.1546 79.4611 11.2726 79.6011 11.3626C79.7411 11.4413 79.9044 11.4975 80.091 11.5312C80.2776 11.565 80.4701 11.5818 80.6684 11.5818C81.1583 11.5818 81.5374 11.5031 81.8057 11.3457C82.0739 11.1883 82.2722 11.0028 82.4005 10.7892C82.5288 10.5644 82.6047 10.3395 82.628 10.1146C82.663 9.88978 82.6805 9.7099 82.6805 9.57499V8.68118Z\" fill=\"#29426F\"/><path d=\"M87.1634 0.906807V12.9478H89.6479V0.906807H87.1634Z\" fill=\"#29426F\"/><path d=\"M94.1588 2.87991V0.906807H91.6742V2.87991H94.1588ZM91.6742 4.22905V12.9478H94.1588V4.22905H91.6742Z\" fill=\"#29426F\"/><path d=\"M102.746 8.59686C102.746 8.95663 102.705 9.30516 102.624 9.64244C102.542 9.97973 102.414 10.2777 102.239 10.5362C102.064 10.7948 101.842 11.0028 101.574 11.1602C101.317 11.3064 101.002 11.3795 100.629 11.3795C100.268 11.3795 99.9527 11.3064 99.6844 11.1602C99.4161 11.0028 99.1945 10.7948 99.0195 10.5362C98.8445 10.2777 98.7162 9.97973 98.6346 9.64244C98.5529 9.30516 98.5121 8.95663 98.5121 8.59686C98.5121 8.22585 98.5529 7.87171 98.6346 7.53442C98.7162 7.19714 98.8445 6.89921 99.0195 6.64062C99.1945 6.38204 99.4161 6.17967 99.6844 6.03351C99.9527 5.87611 100.268 5.79741 100.629 5.79741C101.002 5.79741 101.317 5.87611 101.574 6.03351C101.842 6.17967 102.064 6.38204 102.239 6.64062C102.414 6.89921 102.542 7.19714 102.624 7.53442C102.705 7.87171 102.746 8.22585 102.746 8.59686ZM96.1151 0.906807V12.9478H98.4771V11.8348H98.5121C98.7804 12.3182 99.177 12.6611 99.7019 12.8635C100.227 13.0659 100.822 13.1671 101.487 13.1671C101.941 13.1671 102.391 13.0771 102.834 12.8972C103.277 12.7173 103.674 12.4419 104.024 12.0709C104.385 11.6999 104.677 11.2277 104.898 10.6543C105.12 10.0697 105.231 9.37824 105.231 8.58C105.231 7.78176 105.12 7.09595 104.898 6.52257C104.677 5.93795 104.385 5.46013 104.024 5.08912C103.674 4.71811 103.277 4.44266 102.834 4.26278C102.391 4.08289 101.941 3.99295 101.487 3.99295C100.927 3.99295 100.384 4.09976 99.8593 4.31337C99.3461 4.51574 98.9378 4.84178 98.6346 5.29149H98.5996V0.906807H96.1151Z\" fill=\"#29426F\"/></svg>\n <% } else if (brandName === \"Pourcentage\") {%>\n <svg width=\"92\" height=\"14\" viewBox=\"0 0 92 14\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M16.4728 1.97949H19.857C20.3375 1.97949 20.7762 2.02073 21.194 2.10319C21.6118 2.18566 21.9878 2.32997 22.3012 2.53614C22.6145 2.7423 22.8652 3.03093 23.0532 3.38141C23.2412 3.73189 23.3248 4.16483 23.3248 4.70086C23.3248 5.21627 23.2412 5.66983 23.0741 6.02031C22.907 6.37079 22.6563 6.65942 22.3638 6.86558C22.0714 7.07174 21.7162 7.23667 21.2984 7.31914C20.8806 7.4016 20.442 7.44284 19.9615 7.44284H18.4992V10.9476H16.4728V1.97949ZM18.4783 5.77291H19.8153C20.0033 5.77291 20.1704 5.7523 20.3375 5.73168C20.5046 5.69045 20.6509 5.64921 20.7971 5.56674C20.9224 5.48428 21.0269 5.3812 21.1104 5.23689C21.194 5.09257 21.2358 4.92764 21.2358 4.70086C21.2358 4.47408 21.1731 4.28853 21.0687 4.14421C20.9642 3.9999 20.818 3.89682 20.6509 3.81435C20.4837 3.73188 20.2957 3.69066 20.0868 3.67004C19.8779 3.64942 19.6899 3.6288 19.5019 3.6288H18.4783V5.77291V5.77291Z\" fill=\"#386D5D\"/><path d=\"M24.0975 7.88043C24.0975 7.38564 24.1811 6.9527 24.3691 6.54037C24.5571 6.14866 24.7869 5.79818 25.1002 5.50955C25.4136 5.22092 25.7896 5.01475 26.2074 4.84982C26.6252 4.70551 27.0848 4.62305 27.5653 4.62305C28.0457 4.62305 28.5053 4.70551 28.9231 4.84982C29.3409 4.99414 29.7169 5.22092 30.0303 5.50955C30.3436 5.79818 30.5943 6.12804 30.7614 6.54037C30.9495 6.93208 31.033 7.38564 31.033 7.88043C31.033 8.37523 30.9495 8.80817 30.7614 9.2205C30.5734 9.63283 30.3436 9.96269 30.0303 10.2513C29.7169 10.5399 29.3409 10.7461 28.9231 10.911C28.5053 11.0554 28.0457 11.1378 27.5653 11.1378C27.0848 11.1378 26.6252 11.0554 26.2074 10.911C25.7896 10.7667 25.4136 10.5399 25.1002 10.2513C24.7869 9.96269 24.5362 9.63283 24.3691 9.2205C24.202 8.80817 24.0975 8.37523 24.0975 7.88043ZM26.0194 7.88043C26.0194 8.35461 26.1447 8.72571 26.4163 9.01434C26.6879 9.30296 27.0639 9.44728 27.5653 9.44728C28.0457 9.44728 28.4426 9.30296 28.7142 9.01434C28.9858 8.72571 29.1111 8.35461 29.1111 7.88043C29.1111 7.40626 28.9858 7.03516 28.7142 6.74653C28.4426 6.4579 28.0666 6.31359 27.5653 6.31359C27.0848 6.31359 26.6879 6.4579 26.4163 6.74653C26.1656 7.03516 26.0194 7.40626 26.0194 7.88043Z\" fill=\"#386D5D\"/><path d=\"M38.1987 10.9673H36.3395V10.122H36.3186C36.256 10.2457 36.1724 10.3488 36.0471 10.4725C35.9426 10.5962 35.8173 10.6992 35.6502 10.7817C35.5039 10.8848 35.3159 10.9466 35.1279 11.0085C34.9399 11.0703 34.7101 11.091 34.4803 11.091C33.9998 11.091 33.6029 11.0085 33.2896 10.8642C32.9762 10.7199 32.7464 10.5137 32.5793 10.2457C32.4122 9.97767 32.3077 9.66842 32.2451 9.31794C32.1824 8.96746 32.1615 8.57575 32.1615 8.16342V4.76172H34.0834V7.79233C34.0834 7.97788 34.0834 8.16342 34.1043 8.34897C34.1252 8.53452 34.1461 8.72007 34.2296 8.885C34.2923 9.04993 34.3967 9.17362 34.5221 9.27671C34.6474 9.37979 34.8354 9.42102 35.0861 9.42102C35.3368 9.42102 35.5457 9.37979 35.6919 9.29732C35.8382 9.21486 35.9635 9.09116 36.0471 8.94685C36.1306 8.80253 36.1724 8.6376 36.2142 8.45205C36.2351 8.2665 36.256 8.08096 36.256 7.87479V4.80295H38.1779V10.9673H38.1987Z\" fill=\"#386D5D\"/><path d=\"M39.555 4.78798H41.4769V5.77756H41.4978C41.7067 5.40646 41.9574 5.11784 42.229 4.91168C42.5005 4.70551 42.8766 4.62305 43.2944 4.62305C43.3988 4.62305 43.5242 4.62304 43.6286 4.64366C43.7331 4.64366 43.8375 4.66428 43.942 4.68489V6.41667C43.7957 6.37544 43.6704 6.3342 43.545 6.31359C43.4197 6.29297 43.2735 6.27236 43.1272 6.27236C42.7512 6.27236 42.4588 6.31359 42.2499 6.41667C42.041 6.51975 41.8738 6.66407 41.7485 6.84961C41.6232 7.03516 41.5605 7.24133 41.5187 7.50934C41.4769 7.75674 41.4769 8.04536 41.4769 8.35461V10.9317H39.555V4.78798V4.78798Z\" fill=\"#386D5D\"/><path d=\"M48.7892 6.78777C48.6847 6.64345 48.5594 6.54037 48.3922 6.4579C48.2251 6.37544 48.0371 6.3342 47.8491 6.3342C47.3686 6.3342 46.9717 6.47852 46.7002 6.76715C46.4286 7.05578 46.3032 7.42687 46.3032 7.90105C46.3032 8.37523 46.4286 8.74632 46.7002 9.03495C46.9717 9.32358 47.3477 9.4679 47.8491 9.4679C48.058 9.4679 48.246 9.42666 48.3922 9.32358C48.5385 9.2205 48.6847 9.11742 48.7892 8.99372L50.0634 10.3132C49.771 10.6224 49.4159 10.8286 48.9981 10.9523C48.5803 11.076 48.2042 11.1378 47.8282 11.1378C47.3477 11.1378 46.8882 11.0554 46.4704 10.911C46.0526 10.7667 45.6765 10.5399 45.3632 10.2513C45.0498 9.96269 44.7991 9.63283 44.632 9.2205C44.4649 8.80817 44.3605 8.37523 44.3605 7.88043C44.3605 7.38564 44.444 6.9527 44.632 6.54037C44.82 6.14866 45.0498 5.79818 45.3632 5.50955C45.6765 5.22092 46.0526 5.01475 46.4704 4.84982C46.8882 4.70551 47.3477 4.62305 47.8282 4.62305C48.2042 4.62305 48.5803 4.68489 48.9981 4.80859C49.395 4.93229 49.7501 5.13846 50.0634 5.4477L48.7892 6.78777Z\" fill=\"#386D5D\"/><path d=\"M56.687 9.89704C56.3737 10.2888 55.9977 10.5774 55.5172 10.8042C55.0367 11.0103 54.5563 11.1134 54.0549 11.1134C53.5744 11.1134 53.1148 11.0309 52.697 10.8866C52.2792 10.7423 51.9032 10.5155 51.5899 10.2269C51.2765 9.93827 51.0258 9.60841 50.8587 9.19608C50.6916 8.78376 50.5871 8.35081 50.5871 7.85602C50.5871 7.36123 50.6707 6.92828 50.8587 6.51595C51.0467 6.12424 51.2765 5.77376 51.5899 5.48513C51.9032 5.19651 52.2792 4.99035 52.697 4.82541C53.1148 4.6811 53.5744 4.59863 54.0549 4.59863C54.4936 4.59863 54.9114 4.6811 55.2665 4.82541C55.6217 4.96973 55.935 5.19651 56.1857 5.48513C56.4364 5.77376 56.6244 6.10363 56.7706 6.51595C56.9168 6.90767 56.9795 7.36123 56.9795 7.85602V8.45389H52.509C52.5926 8.82499 52.7597 9.11362 53.0104 9.31978C53.2611 9.52595 53.5953 9.64965 53.9713 9.64965C54.2847 9.64965 54.5563 9.5878 54.7652 9.44348C54.9741 9.29917 55.183 9.13424 55.3292 8.90746L56.687 9.89704ZM55.0576 7.17568C55.0576 6.84582 54.9532 6.57781 54.7443 6.35103C54.5145 6.12425 54.2429 6.00054 53.8878 6.00054C53.6789 6.00054 53.4909 6.04178 53.3237 6.10363C53.1566 6.16548 53.0313 6.24794 52.9059 6.37164C52.7806 6.47473 52.697 6.59842 52.6344 6.74274C52.5717 6.88705 52.5299 7.03137 52.5299 7.17568H55.0576V7.17568Z\" fill=\"#386D5D\"/><path d=\"M58.1482 4.78386H60.0074V5.62913H60.0283C60.091 5.50543 60.1745 5.40235 60.279 5.27865C60.3834 5.15495 60.5297 5.05187 60.6759 4.9694C60.8221 4.86632 61.0102 4.80447 61.1982 4.74262C61.3862 4.68077 61.616 4.66016 61.8458 4.66016C62.3262 4.66016 62.7231 4.74262 63.0365 4.88694C63.3289 5.03125 63.5796 5.23742 63.7467 5.50543C63.9139 5.77344 64.0183 6.08269 64.081 6.43317C64.1437 6.78365 64.1645 7.17536 64.1645 7.58769V10.9894H62.2427V7.95878C62.2427 7.77323 62.2427 7.58769 62.2218 7.40214C62.2009 7.21659 62.18 7.03104 62.0964 6.86611C62.0338 6.70118 61.9293 6.57748 61.804 6.4744C61.6786 6.37132 61.4906 6.33009 61.2399 6.33009C60.9893 6.33009 60.7804 6.37132 60.6341 6.45378C60.4879 6.53625 60.3626 6.65994 60.279 6.80426C60.1954 6.94857 60.1537 7.11351 60.1119 7.29906C60.091 7.48461 60.0701 7.67015 60.0701 7.87631V10.9482H58.1482V4.78386Z\" fill=\"#386D5D\"/><path d=\"M69.8062 6.3098H68.1141V8.37144C68.1141 8.53637 68.1141 8.7013 68.135 8.825C68.1559 8.9487 68.1977 9.09301 68.2603 9.19609C68.323 9.29918 68.4066 9.38164 68.5319 9.42288C68.6572 9.48472 68.8244 9.50534 69.0333 9.50534C69.1377 9.50534 69.2631 9.48473 69.4302 9.46411C69.5973 9.44349 69.7226 9.40226 69.8062 9.31979V10.9073C69.5973 10.9897 69.3675 11.031 69.1377 11.0516C68.9079 11.0722 68.6781 11.0928 68.4483 11.0928C68.1141 11.0928 67.8216 11.0516 67.5501 10.9897C67.2785 10.9279 67.0278 10.8042 66.8398 10.6599C66.6309 10.5155 66.4638 10.3094 66.3593 10.0826C66.234 9.85582 66.1922 9.56719 66.1922 9.21671V6.28918H64.9388V4.76357H66.1713V2.92871H68.0932V4.76357H69.7853V6.3098H69.8062Z\" fill=\"#386D5D\"/><path d=\"M74.6922 10.1868H74.6713C74.4624 10.5166 74.1699 10.764 73.8148 10.8877C73.4597 11.032 73.0836 11.0939 72.6867 11.0939C72.3943 11.0939 72.1227 11.0526 71.8511 10.9702C71.5796 10.8877 71.3498 10.764 71.1409 10.5991C70.932 10.4342 70.7648 10.2486 70.6604 10.0012C70.5351 9.77443 70.4724 9.4858 70.4724 9.17655C70.4724 8.82607 70.5351 8.51683 70.6813 8.26943C70.8066 8.02204 70.9946 7.81587 71.2244 7.65094C71.4542 7.48601 71.7049 7.36231 71.9974 7.27985C72.2898 7.19738 72.5823 7.13553 72.8956 7.07369C73.209 7.03245 73.5223 7.01184 73.8357 6.99122C74.149 6.99122 74.4415 6.9706 74.7131 6.9706C74.7131 6.64074 74.5877 6.37273 74.337 6.16657C74.0864 5.9604 73.7939 5.87793 73.4597 5.87793C73.1463 5.87793 72.8539 5.93978 72.5823 6.0841C72.3107 6.20779 72.0809 6.39334 71.872 6.62012L70.8484 5.56869C71.2035 5.23882 71.6213 4.99143 72.1018 4.8265C72.5823 4.66157 73.0836 4.5791 73.585 4.5791C74.149 4.5791 74.6086 4.64095 74.9846 4.78527C75.3398 4.92958 75.6322 5.13574 75.862 5.40376C76.0709 5.67177 76.238 6.00163 76.3216 6.39334C76.4052 6.78505 76.4469 7.23861 76.4469 7.75402V10.8877H74.6713V10.1868H74.6922ZM74.2117 8.26943C74.0655 8.26943 73.8775 8.26943 73.6686 8.29005C73.4597 8.31067 73.2299 8.33128 73.0419 8.39313C72.833 8.45498 72.6658 8.53745 72.5196 8.66114C72.3734 8.78484 72.3107 8.94978 72.3107 9.15594C72.3107 9.38272 72.4152 9.54765 72.6032 9.67135C72.7912 9.77443 73.0001 9.83628 73.2299 9.83628C73.4179 9.83628 73.6059 9.81566 73.773 9.75382C73.9401 9.71258 74.1073 9.63012 74.2326 9.54765C74.3788 9.44457 74.4833 9.34149 74.5668 9.19717C74.6504 9.05286 74.6922 8.88792 74.6922 8.68176V8.26943H74.2117V8.26943Z\" fill=\"#386D5D\"/><path d=\"M84.2398 10.4331C84.2398 11.6082 83.9473 12.4947 83.3415 13.0926C82.7357 13.6905 81.8374 13.9997 80.6258 13.9997C80.0618 13.9997 79.5186 13.9379 78.9755 13.8142C78.4324 13.6905 77.931 13.4431 77.4923 13.0926L78.5577 11.5257C78.8502 11.7731 79.1635 11.9587 79.4977 12.103C79.832 12.2473 80.1871 12.3092 80.584 12.3092C81.169 12.3092 81.6076 12.1648 81.9001 11.8762C82.1717 11.5876 82.3179 11.2371 82.3179 10.7836V10.1857H82.297C82.0672 10.4743 81.7957 10.7011 81.4614 10.8042C81.1272 10.9279 80.8138 10.9897 80.5214 10.9897C80.0618 10.9897 79.644 10.9072 79.268 10.7629C78.8919 10.598 78.5577 10.3918 78.2861 10.1032C78.0145 9.81458 77.8056 9.48472 77.6594 9.093C77.5132 8.70129 77.4505 8.26835 77.4505 7.81479C77.4505 7.40246 77.5132 7.01075 77.6594 6.61904C77.7848 6.22733 77.9728 5.87685 78.2235 5.58822C78.4741 5.29959 78.7666 5.05219 79.1217 4.86664C79.4769 4.6811 79.8738 4.59863 80.3125 4.59863C80.584 4.59863 80.8347 4.61925 81.0645 4.6811C81.2943 4.74295 81.5032 4.82541 81.6703 4.90788C81.8583 5.01096 82.0046 5.11404 82.1299 5.21712C82.2552 5.32021 82.3597 5.44391 82.4432 5.54699H82.4641V4.74294H84.2398V10.4331ZM79.3724 7.8354C79.3724 8.04157 79.4142 8.22712 79.4977 8.41267C79.5813 8.59821 79.6858 8.76314 79.832 8.88684C79.9782 9.03116 80.1453 9.13424 80.3125 9.2167C80.5005 9.29917 80.7094 9.3404 80.9183 9.3404C81.1272 9.3404 81.3361 9.29917 81.5241 9.2167C81.7121 9.13424 81.8792 9.01054 82.0254 8.88684C82.1717 8.74253 82.2761 8.5776 82.3597 8.41267C82.4432 8.22712 82.485 8.04157 82.485 7.8354C82.485 7.62924 82.4432 7.44369 82.3597 7.25815C82.2761 7.0726 82.1717 6.90767 82.0254 6.78397C81.8792 6.63966 81.7121 6.53657 81.5241 6.45411C81.3361 6.37164 81.1272 6.33041 80.9183 6.33041C80.6885 6.33041 80.5005 6.37164 80.3125 6.45411C80.1244 6.53657 79.9573 6.66027 79.832 6.78397C79.6858 6.92829 79.5813 7.09322 79.4977 7.25815C79.4142 7.44369 79.3724 7.62924 79.3724 7.8354Z\" fill=\"#386D5D\"/><path d=\"M91.697 9.89704C91.3837 10.2888 91.0077 10.5774 90.5272 10.8042C90.0467 11.0103 89.5663 11.1134 89.0649 11.1134C88.5844 11.1134 88.1248 11.0309 87.707 10.8866C87.2892 10.7423 86.9132 10.5155 86.5999 10.2269C86.2865 9.93827 86.0358 9.60841 85.8687 9.19608C85.7016 8.78376 85.5971 8.35081 85.5971 7.85602C85.5971 7.36123 85.6807 6.92828 85.8687 6.51595C86.0567 6.12424 86.2865 5.77376 86.5999 5.48513C86.9132 5.19651 87.2892 4.99035 87.707 4.82541C88.1248 4.6811 88.5844 4.59863 89.0649 4.59863C89.5036 4.59863 89.9214 4.6811 90.2765 4.82541C90.6317 4.96973 90.945 5.19651 91.1957 5.48513C91.4464 5.77376 91.6344 6.10363 91.7806 6.51595C91.9268 6.90767 91.9895 7.36123 91.9895 7.85602V8.45389H87.519C87.6026 8.82499 87.7697 9.11362 88.0204 9.31978C88.2711 9.52595 88.6053 9.64965 88.9813 9.64965C89.2947 9.64965 89.5663 9.5878 89.7752 9.44348C89.9841 9.29917 90.193 9.13424 90.3392 8.90746L91.697 9.89704ZM90.0676 7.17568C90.0676 6.84582 89.9632 6.57781 89.7543 6.35103C89.5245 6.12425 89.2529 6.00054 88.8978 6.00054C88.6889 6.00054 88.5009 6.04178 88.3337 6.10363C88.1666 6.16548 88.0413 6.24794 87.9159 6.37164C87.7906 6.47473 87.707 6.59842 87.6444 6.74274C87.5817 6.88705 87.5399 7.03137 87.5399 7.17568H90.0676V7.17568Z\" fill=\"#386D5D\"/><path d=\"M8.03453 5.1709L10.416 7.19131C10.7502 7.47994 11.0427 7.76857 11.2725 8.07781C11.5232 8.38706 11.6903 8.71692 11.7739 9.04678C11.8574 9.37665 11.8783 9.72713 11.7947 10.0776C11.7112 10.4281 11.5023 10.7992 11.168 11.1703C10.8547 11.5414 10.5204 11.8094 10.1653 11.9537C9.83108 12.098 9.47594 12.1599 9.1417 12.1392C8.80746 12.1186 8.45233 11.9949 8.11809 11.8094C7.76296 11.6238 7.42872 11.3971 7.09447 11.1084L6.04997 10.2219L3.89829 12.6959L2.47777 11.5001L8.03453 5.1709ZM7.09447 9.0674L8.03453 9.87144C8.15987 9.97452 8.28521 10.0776 8.43144 10.1395C8.57767 10.2219 8.70301 10.2632 8.84924 10.2838C8.99547 10.3044 9.1417 10.2838 9.28793 10.2425C9.43416 10.2013 9.5595 10.0982 9.70573 9.9539C9.85196 9.78897 9.91463 9.62404 9.93552 9.45911C9.93552 9.29418 9.91464 9.12925 9.85197 8.98493C9.7893 8.84062 9.68484 8.67568 9.53861 8.55199C9.41327 8.40767 9.26704 8.28398 9.1417 8.18089L8.41055 7.5624L7.09447 9.0674Z\" fill=\"#386D5D\"/><path d=\"M3.81341 7.52498L1.43194 5.50458C1.0977 5.21595 0.805237 4.92732 0.575446 4.61808C0.324766 4.30883 0.157645 3.97897 0.0740843 3.6491C-0.00947598 3.31924 -0.0303657 2.96876 0.0531946 2.61828C0.136755 2.26781 0.345656 1.89671 0.679897 1.52562C0.993248 1.15452 1.32749 0.886506 1.68262 0.742191C2.01686 0.597877 2.37199 0.536029 2.70623 0.556645C3.04047 0.577262 3.39561 0.700961 3.72985 0.886509C4.08498 1.07206 4.41922 1.29884 4.75346 1.58746L5.79797 2.47397L7.94964 0L9.37017 1.19575L3.81341 7.52498ZM4.75346 3.6491L3.81341 2.84507C3.68807 2.74198 3.56273 2.6389 3.4165 2.57705C3.27027 2.49458 3.14493 2.45335 2.9987 2.43274C2.85246 2.41212 2.70623 2.43273 2.56 2.47397C2.41377 2.5152 2.28843 2.61829 2.1422 2.7626C1.99597 2.92753 1.9333 3.09246 1.91241 3.25739C1.91241 3.42233 1.9333 3.58725 1.99597 3.73157C2.05864 3.87588 2.16309 4.04082 2.30932 4.16451C2.43466 4.30883 2.58089 4.43252 2.70623 4.53561L3.43739 5.1541L4.75346 3.6491Z\" fill=\"#386D5D\"/></svg>\n <% } %>\n </div></div>\n <% } %>\n </div>`;\n\n logo = `<div class=\"logo-placeholder\">\n <% if (logoUrl) { %><img src=\"<%= logoUrl %>\" alt=\"logo\" /><% } %>\n </div>`;\n\n company = `<div>\n <% if (name) { %><p><%= name %><p><% } %>\n <% if (number || street) {%><p><%}%><% if (number) { %><%= number + ' ' %><% } if (street) { %><%= street %><% } if (number || street) { %><% } %><% if (number || street) {%></p><%}%>\n <% if (zipCode || city) {%><p><%}%><% if (zipCode) { %><%= zipCode + ' ' %><% } if (city) { %><%= city %><% } if (zipCode || city) { %></p><% } %>\n </div>\n <% if (phoneContact) { %><p><%= phoneContact %><p><% } %>\n <% if (settings && settings.mailContact) { %><p><%= settings.mailContact %></p><% } %>`;\n\n products = `<table class=\"full-width commercial-table-preview\">\n <thead>\n <tr>\n <td>Article</td>\n <td>Quantité</td>\n <td>P.U <%= disableVat !== true ? 'HT' : ''%></td>\n <% if (shouldDisplayDiscountColumn) { %><td>Remise</td><% } %>\n <% if (disableVat !== true) { %><td>TVA</td><% } %>\n <td>Montant <%= disableVat !== true ? 'HT' : ''%></td>\n </tr>\n </thead>\n <% if (idEstimateInvoiceType === ${EstimateInvoiceType.ACOMPTE}) { %>\n <tr>\n <td class=\"product-title\">\n <%= title %>\n </td>\n <td class=\"product-quantity\">1</td>\n <td class=\"product-price-without-vat\"><%= depositFormatted %>€</td>\n <td class=\"product-total-price-without-vat\"><%= depositFormatted %>€</td>\n </tr>\n <% } %>\n <% if (products) { %>\n <% products.forEach(function (product) { %>\n <tr>\n <td class=\"product-title\">\n <% if(product.itemSaleName) { %><p class=\"product-name\"><%= product.itemSaleName %></p><% } %>\n <% if(product.comment) { %><p class=\"product-description\"><%- product.comment %></p><% } %>\n </td>\n <td class=\"product-quantity\"><%= product.quantity ? product.quantity : '' %> <%= product.unitFormatted ? product.unitFormatted : '' %></td>\n <td class=\"product-price-without-vat\"><% if(product.priceTaxExcludedFormatted) { %><%= product.priceTaxExcludedFormatted + '€' %><% } %></td>\n <% if (shouldDisplayDiscountColumn) { %>\n <td class=\"product-discount\">\n <% if (product.discountFormatted) { %> \n <p style=\"margin-bottom: 0px;\"><%= product.discountFormatted %>€</p>\n <% if(product.discountType === ${DiscountType.PERCENT}) { %><span class=\"discount-percent\">(<%= product.discountTypeFormatted %>)</span><% } %>\n <% } %>\n </td>\n <% } %>\n <% if(disableVat !== true) { %><td class=\"product-vat\"><% if(product.vatFormatted) { %><%= product.vatFormatted %><% } %></td><% } %>\n <td class=\"product-total-price-without-vat\"><% if(product.totalTaxExcludedFormatted) { %><%= product.totalTaxExcludedFormatted + '€' %><% } %></td>\n </tr>\n <% }) %>\n <% } %>\n</table>`;\n\n vatRecapitulation = `<table style=\"width: 85%; page-break-inside: avoid !important;\" class=\"commercial-table-preview\">\n <thead>\n <tr>\n <td>Base</td>\n <td>Taux</td>\n <td>Montant TVA</td>\n </tr>\n </thead>\n <% vats.forEach(function (vat) { %>\n <tr class=\"vat-detail-row\">\n <td><%= vat.baseFormatted %>€</td>\n <td><%= vat.name %></td>\n <td><%= vat.amountFormatted %>€</td>\n </tr>\n <% }) %>\n </table>`;\n\n amountRecapitulation = `<table class=\"summary-prices commercial-table-preview\" style=\"width: 250px; padding-left: 10px; page-break-inside: avoid !important;\">\n <thead>\n <tr>\n <td colspan=\"2\">Récapitulatif</td>\n </tr>\n </thead>\n <% if (idEstimateInvoiceType !== ${EstimateInvoiceType.ACOMPTE}) { %>\n <% if (disableVat !== true) { %>\n <tr>\n <td>Total HT</td>\n <td><%= totalTaxExcludedFormatted %>€</td>\n </tr>\n <% } %>\n <% if (generalDiscountFormatted) { %>\n <tr>\n <td>Remise</td>\n <td><%= generalDiscountFormatted %>€</td>\n </tr>\n <% } %>\n <% if (disableVat !== true) { %>\n <tr>\n <td>TVA</td>\n <td><%= totalVatAmountFormatted %>€</td>\n </tr>\n <% } %>\n <% if (disableVat !== true || generalDiscountFormatted || depositFormatted) { %>\n <tr>\n <td>Total <%= disableVat !== true ? 'TTC' : ''%></td>\n <td><%= totalTaxIncludedFormatted %>€</td>\n </tr>\n <% } else if (disableVat === true && ![${EstimateInvoiceType.FACTURE}, ${EstimateInvoiceType.RESTE}, ${EstimateInvoiceType.ACOMPTE}].includes(idEstimateInvoiceType)) { %>\n <tr>\n <td>Total</td>\n <td><%= totalTaxIncludedFormatted %>€</td>\n </tr>\n <% } %>\n <% if (depositFormatted) { %>\n <tr>\n <td>Acompte</td>\n <td><%= depositFormatted %>€</td>\n </tr>\n <% } %>\n <% } %>\n <% if ([${EstimateInvoiceType.FACTURE}, ${EstimateInvoiceType.RESTE}, ${EstimateInvoiceType.ACOMPTE}].includes(idEstimateInvoiceType)) { %>\n <tr>\n <td><b><%= depositFormatted ? 'Reste à payer' : 'Net à payer' %></b></td>\n <td><%= totalTaxAndDiscountIncludedFormatted %>€</td>\n </tr>\n <% } %>\n</table>`;\n\n paymentButton = `<a style=\"page-break-inside: avoid !important\" class=\"payment-button\" href=\"<% if (paymentLink) {%><%= paymentLink %><% } else {%>#<%}%>\">Payer en ligne <svg width=\"81\" height=\"17\" viewBox=\"0 0 81 17\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M23.6521 1H2.21213C1.5052 1 0.932129 1.57308 0.932129 2.28V14.792C0.932129 15.4989 1.5052 16.072 2.21213 16.072H23.6521C24.3591 16.072 24.9321 15.4989 24.9321 14.792V2.28C24.9321 1.57308 24.3591 1 23.6521 1Z\" fill=\"black\"/>\n <path d=\"M14.9716 5.02051H10.3726V12.5219H14.9716V5.02051Z\" fill=\"#FF5F00\"/>\n <path d=\"M10.8366 8.77127C10.8369 7.30928 11.5058 5.92768 12.6523 5.02055C10.6962 3.48259 7.88661 3.70615 6.19833 5.53409C4.51006 7.36203 4.51006 10.1805 6.19833 12.0085C7.88661 13.8364 10.6962 14.06 12.6523 12.522C11.5058 11.6149 10.8369 10.2333 10.8366 8.77127Z\" fill=\"#EB001B\"/>\n <path d=\"M20.3795 8.77136C20.3808 10.5969 19.3394 12.2628 17.6977 13.0612C16.0561 13.8596 14.1027 13.6502 12.6675 12.5221C13.8143 11.6152 14.4832 10.2334 14.4832 8.77136C14.4832 7.30928 13.8143 5.92754 12.6675 5.02064C14.1027 3.8925 16.0561 3.68315 17.6977 4.48156C19.3394 5.27997 20.3808 6.94586 20.3795 8.77136Z\" fill=\"#F79E1B\"/>\n <path d=\"M30.1321 1.25H51.1321C51.6568 1.25 52.0821 1.67534 52.0821 2.2V14.8C52.0821 15.3247 51.6568 15.75 51.1321 15.75H30.1321C29.6075 15.75 29.1821 15.3247 29.1821 14.8V2.2C29.1821 1.67534 29.6075 1.25 30.1321 1.25Z\" fill=\"white\" stroke=\"#EDEDED\" stroke-width=\"0.5\"/>\n <path d=\"M37.7276 11.4621L38.7284 5.5893H40.3292L39.3277 11.4621H37.7276ZM45.1109 5.7159C44.7938 5.59692 44.2968 5.46924 43.6762 5.46924C42.0945 5.46924 40.9803 6.26574 40.9708 7.40733C40.9618 8.25123 41.7662 8.72199 42.3734 9.00291C42.9965 9.29076 43.2059 9.47433 43.203 9.7314C43.1991 10.125 42.7054 10.3049 42.2453 10.3049C41.6046 10.3049 41.2642 10.2159 40.7385 9.9966L40.5322 9.9033L40.3076 11.218C40.6815 11.3819 41.3729 11.5239 42.0907 11.5313C43.7734 11.5313 44.8657 10.7439 44.8782 9.52482C44.8842 8.85675 44.4577 8.34834 43.5342 7.92918C42.9747 7.65753 42.632 7.47621 42.6356 7.20114C42.6356 6.95703 42.9257 6.69597 43.5523 6.69597C44.0758 6.68787 44.455 6.80202 44.7505 6.92097L44.8939 6.98877L45.1109 5.7159M49.2302 5.58921H47.9932C47.61 5.58921 47.3233 5.69382 47.155 6.07623L44.7777 11.4582H46.4586C46.4586 11.4582 46.7334 10.7345 46.7955 10.5757C46.9793 10.5757 48.6122 10.5782 48.8457 10.5782C48.8936 10.7838 49.0404 11.4582 49.0404 11.4582H50.5258L49.2302 5.58903V5.58921ZM47.2676 9.38151C47.4 9.04314 47.9054 7.73982 47.9054 7.73982C47.8959 7.75548 48.0368 7.3998 48.1176 7.1793L48.2258 7.68567C48.2258 7.68567 48.5324 9.08754 48.5964 9.38151H47.2676ZM36.3686 5.58921L34.8014 9.59421L34.6344 8.78031C34.3427 7.84212 33.4337 6.82566 32.4175 6.31677L33.8505 11.4528L35.5441 11.4508L38.0643 5.58915H36.3686\" fill=\"#171E6C\"/>\n <path d=\"M33.3395 5.58874H30.7582L30.7378 5.71093C32.7459 6.19705 34.0747 7.37182 34.6264 8.78323L34.0651 6.08443C33.9682 5.71258 33.6872 5.60161 33.3395 5.58862\" fill=\"#171E6C\"/>\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M78.6129 1C77.4206 1 64.7971 1 57.7475 1C57.1513 1 56.5552 1.6 56.5552 2.2V14.2C56.5552 15.4 57.1513 16 58.3436 16C64.9942 16 77.4206 16 78.6129 16C79.8052 16 80.4013 15.4 80.4013 14.2V2.8C80.4013 1.6 79.8052 1 78.6129 1Z\" fill=\"#306FC5\"/>\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M58.496 7.17857L58.0342 6.04592L57.575 7.17857H58.496ZM68.6703 6.72755C68.5775 6.7842 68.4679 6.78608 68.3365 6.78608H67.5168V6.15502H68.3476C68.4652 6.15502 68.5879 6.16033 68.6676 6.20626C68.7552 6.24765 68.8093 6.33575 68.8093 6.45744C68.8093 6.58161 68.7578 6.68153 68.6703 6.72755C68.7578 6.68153 68.6703 6.72755 68.6703 6.72755ZM74.518 7.17857L74.0511 6.04592L73.5867 7.17857H74.518ZM63.6175 8.40455H62.9257L62.9232 6.17935L61.9448 8.40455H61.3523L60.3713 6.17738V8.40455H58.9989L58.7396 7.77082H57.3347L57.0728 8.40455H56.3399L57.5483 5.56337H58.5508L59.6984 8.25338V5.56337H60.7997L61.6828 7.49077L62.494 5.56337H63.6174V8.40455H63.6175ZM66.3744 8.40455H64.1203V5.56337H66.3744V6.15502H64.7951V6.66714H66.3366V7.24953H64.7951V7.81693H66.3744V8.40455ZM69.5526 6.32855C69.5526 6.78154 69.2522 7.01558 69.0772 7.08585C69.2248 7.14241 69.3509 7.24233 69.411 7.32512C69.5062 7.46643 69.5227 7.59266 69.5227 7.84641V8.40455H68.8421L68.8395 8.04625C68.8395 7.87529 68.8558 7.62942 68.733 7.49274C68.6344 7.39282 68.4841 7.37113 68.2412 7.37113H67.5169V8.40455H66.8422V5.56337H68.3941C68.739 5.56337 68.9931 5.57254 69.2112 5.69945C69.4247 5.82637 69.5526 6.01165 69.5526 6.32855C69.5526 6.01165 69.5526 6.32855 69.5526 6.32855ZM70.6325 8.40455H69.944V5.56337H70.6325V8.40455ZM78.62 8.40455H77.6638L76.3848 6.27208V8.40455H75.0106L74.748 7.77082H73.3463L73.0915 8.40455H72.302C71.974 8.40455 71.5587 8.33153 71.3235 8.0903C71.0864 7.84906 70.963 7.5223 70.963 7.00564C70.963 6.58427 71.0368 6.19906 71.3268 5.89467C71.5449 5.66792 71.8865 5.56337 72.3515 5.56337H73.0048V6.17216H72.3652C72.119 6.17216 71.9799 6.209 71.846 6.34046C71.731 6.4601 71.652 6.68625 71.652 6.98404C71.652 7.28844 71.7121 7.50791 71.8376 7.65128C71.9414 7.76371 72.1302 7.79782 72.3078 7.79782H72.6109L73.5619 5.56345H74.5729L75.7153 8.25081V5.56345H76.7427L77.9288 7.54218V5.56345H78.62V8.40455ZM56.3321 8.9626H57.485L57.745 8.33153H58.3269L58.5862 8.9626H60.8546V8.48013L61.0571 8.96466H62.2347L62.4372 8.47293V8.9626H68.0746L68.0719 7.9267H68.181C68.2574 7.92936 68.2797 7.93647 68.2797 8.06339V8.9626H71.1954V8.72145C71.4306 8.84828 71.7964 8.9626 72.2777 8.9626H73.5043L73.7668 8.33153H74.3488L74.6055 8.9626H76.9693V8.36316L77.3273 8.9626H79.2214V5H77.3468V5.46799L77.0843 5H75.1608V5.46799L74.9197 5H72.3215C71.8865 5 71.5042 5.0611 71.1954 5.23138V5H69.4024V5.23138C69.2058 5.05587 68.9381 5 68.6403 5H62.0897L61.6501 6.02347L61.1988 5H59.1355V5.46799L58.9088 5H57.1492L56.332 6.88404V8.9626H56.3321ZM80.3331 11.0548H79.1033C78.9806 11.0548 78.899 11.0594 78.8303 11.1061C78.7591 11.1521 78.7317 11.2204 78.7317 11.3106C78.7317 11.4178 78.7918 11.4907 78.8792 11.5223C78.9504 11.5472 79.0269 11.5545 79.1393 11.5545L79.505 11.5643C79.874 11.5735 80.1203 11.6374 80.2705 11.7931C80.2979 11.8148 80.3143 11.8391 80.3331 11.8634V11.0548ZM80.3331 12.9284C80.1692 13.1696 79.8498 13.2919 79.4174 13.2919H78.1144V12.6825H79.4122C79.5409 12.6825 79.631 12.6655 79.6852 12.6122C79.7322 12.5682 79.765 12.5043 79.765 12.4268C79.765 12.344 79.7322 12.2783 79.6826 12.2389C79.6336 12.1955 79.5624 12.1758 79.4449 12.1758C78.8113 12.1541 78.0209 12.1955 78.0209 11.2962C78.0209 10.884 78.2809 10.4501 78.989 10.4501H80.333V9.8847H79.0843C78.7074 9.8847 78.4337 9.97553 78.2398 10.1168V9.8847H76.3927C76.0973 9.8847 75.7506 9.95839 75.5866 10.1168V9.8847H72.2882V10.1168C72.0257 9.92617 71.5827 9.8847 71.3783 9.8847H69.2026V10.1168C68.9949 9.91435 68.5331 9.8847 68.2516 9.8847H65.8166L65.2594 10.4916L64.7376 9.8847H61.1003V13.85H64.6691L65.2433 13.2335L65.7841 13.85L67.984 13.852V12.9192H68.2003C68.4921 12.9237 68.8364 12.9119 69.1401 12.7798V13.85H70.9546V12.8165H71.0421C71.1538 12.8165 71.1648 12.8211 71.1648 12.9334V13.8499H76.6769C77.0269 13.8499 77.3926 13.7597 77.5952 13.5961V13.8499H79.3436C79.7075 13.8499 80.0628 13.7985 80.3331 13.6671V12.9284ZM77.6415 11.7931C77.7729 11.9299 77.8433 12.1027 77.8433 12.3952C77.8433 13.0065 77.4638 13.2919 76.7833 13.2919H75.4691V12.6825H76.7781C76.906 12.6825 76.9968 12.6655 77.0537 12.6122C77.1001 12.5682 77.1334 12.5043 77.1334 12.4268C77.1334 12.344 77.0974 12.2783 77.051 12.2389C76.9994 12.1955 76.9283 12.1758 76.8108 12.1758C76.1797 12.1541 75.3895 12.1955 75.3895 11.2962C75.3895 10.884 75.6468 10.4501 76.3542 10.4501H77.7069V11.055H76.4691C76.3464 11.055 76.2667 11.0596 76.1988 11.1063C76.1249 11.1523 76.0975 11.2206 76.0975 11.3108C76.0975 11.418 76.1602 11.4909 76.2451 11.5224C76.3163 11.5474 76.3928 11.5547 76.5077 11.5547L76.871 11.5645C77.2373 11.5735 77.4887 11.6373 77.6415 11.7931C77.4887 11.6373 77.6415 11.7931 77.6415 11.7931ZM71.5528 11.6176C71.4626 11.6715 71.351 11.6761 71.2197 11.6761H70.3999V11.0378H71.2308C71.351 11.0378 71.4712 11.0404 71.5528 11.0892C71.6403 11.1352 71.6926 11.2232 71.6926 11.3448C71.6926 11.4664 71.6403 11.5643 71.5528 11.6176C71.6403 11.5643 71.5528 11.6176 71.5528 11.6176ZM71.9604 11.9712C72.1106 12.027 72.2333 12.127 72.2909 12.2098C72.3862 12.3486 72.4 12.478 72.4027 12.7285V13.2919H71.7253V12.9363C71.7253 12.7654 71.7416 12.5122 71.6162 12.3801C71.5176 12.2783 71.3673 12.2539 71.1211 12.2539H70.4V13.2919H69.722V10.45H71.2799C71.6215 10.45 71.8703 10.4652 72.0917 10.5841C72.3047 10.7136 72.4386 10.891 72.4386 11.2152C72.4385 11.6688 72.138 11.9003 71.9604 11.9712C72.138 11.9003 71.9604 11.9712 71.9604 11.9712ZM72.8128 10.45H75.0648V11.0377H73.4847V11.5544H75.0262V12.1342H73.4847V12.6997L75.0648 12.7022V13.2919H72.8128V10.45ZM68.2602 11.7615H67.3882V11.0378H68.268C68.5116 11.0378 68.6807 11.1377 68.6807 11.3863C68.6807 11.632 68.5195 11.7615 68.2602 11.7615ZM66.7161 13.0334L65.6802 11.8759L66.7161 10.755V13.0334ZM64.0407 12.6997H62.3817V12.1342H63.8631V11.5544H62.3817V11.0377H64.0734L64.8115 11.8659L64.0407 12.6997ZM69.4052 11.3863C69.4052 12.1757 68.82 12.3387 68.2301 12.3387H67.3882V13.2919H66.0767L65.2458 12.3511L64.3823 13.2919H61.7096V10.45H64.4235L65.2537 11.3816L66.1119 10.45H68.268C68.8035 10.45 69.4052 10.5992 69.4052 11.3863C69.4052 10.5992 69.4052 11.3863 69.4052 11.3863Z\" fill=\"white\"/>\n </svg></a>`;\n\n style = `\n <% if (font.id === ${FontIds.CIRCULAR_STD}) { %>\n @font-face{font-family:circular std;font-style:normal;font-weight:450;src:local('Circular Std'),url(https://fonts.cdnfonts.com/s/15011/CircularStd-Book.woff) format('woff')}@font-face{font-family:circular std;font-style:italic;font-weight:450;src:local('Circular Std'),url(https://fonts.cdnfonts.com/s/15011/CircularStd-BookItalic.woff) format('woff')}@font-face{font-family:circular std;font-style:normal;font-weight:500;src:local('Circular Std'),url(https://fonts.cdnfonts.com/s/15011/CircularStd-Medium.woff) format('woff')}@font-face{font-family:circular std;font-style:italic;font-weight:500;src:local('Circular Std'),url(https://fonts.cdnfonts.com/s/15011/CircularStd-MediumItalic.woff) format('woff')}@font-face{font-family:circular std;font-style:normal;font-weight:700;src:local('Circular Std'),url(https://fonts.cdnfonts.com/s/15011/CircularStd-Bold.woff) format('woff')}@font-face{font-family:circular std;font-style:italic;font-weight:700;src:local('Circular Std'),url(https://fonts.cdnfonts.com/s/15011/CircularStd-BoldItalic.woff) format('woff')}@font-face{font-family:circular std;font-style:normal;font-weight:900;src:local('Circular Std'),url(https://fonts.cdnfonts.com/s/15011/CircularStd-Black.woff) format('woff')}@font-face{font-family:circular std;font-style:italic;font-weight:900;src:local('Circular Std'),url(https://fonts.cdnfonts.com/s/15011/CircularStd-BlackItalic.woff) format('woff')}\n <% } else if (font.id === ${FontIds.ROBOTO}) { %>\n @font-face{font-family:roboto;font-style:normal;font-weight:400;src:local('Roboto'),url(https://fonts.cdnfonts.com/s/12165/Roboto-Regular.woff) format('woff')}@font-face{font-family:roboto;font-style:italic;font-weight:400;src:local('Roboto'),url(https://fonts.cdnfonts.com/s/12165/Roboto-Italic.woff) format('woff')}@font-face{font-family:roboto;font-style:normal;font-weight:700;src:local('Roboto'),url(https://fonts.cdnfonts.com/s/12165/Roboto-Bold.woff) format('woff')}@font-face{font-family:roboto;font-style:italic;font-weight:700;src:local('Roboto'),url(https://fonts.cdnfonts.com/s/12165/Roboto-BoldItalic.woff) format('woff')}@font-face{font-family:roboto thin;font-style:normal;font-weight:250;src:local('Roboto Thin'),url(https://fonts.cdnfonts.com/s/12165/Roboto-Thin.woff) format('woff')}@font-face{font-family:roboto thin;font-style:italic;font-weight:250;src:local('Roboto Thin'),url(https://fonts.cdnfonts.com/s/12165/Roboto-ThinItalic.woff) format('woff')}@font-face{font-family:roboto light;font-style:normal;font-weight:300;src:local('Roboto Light'),url(https://fonts.cdnfonts.com/s/12165/Roboto-Light.woff) format('woff')}@font-face{font-family:roboto light;font-style:italic;font-weight:300;src:local('Roboto Light'),url(https://fonts.cdnfonts.com/s/12165/Roboto-LightItalic.woff) format('woff')}@font-face{font-family:roboto medium;font-style:normal;font-weight:500;src:local('Roboto Medium'),url(https://fonts.cdnfonts.com/s/12165/Roboto-Medium.woff) format('woff')}@font-face{font-family:roboto medium;font-style:italic;font-weight:500;src:local('Roboto Medium'),url(https://fonts.cdnfonts.com/s/12165/Roboto-MediumItalic.woff) format('woff')}@font-face{font-family:roboto black;font-style:normal;font-weight:900;src:local('Roboto Black'),url(https://fonts.cdnfonts.com/s/12165/Roboto-Black.woff) format('woff')}@font-face{font-family:roboto black;font-style:italic;font-weight:900;src:local('Roboto Black'),url(https://fonts.cdnfonts.com/s/12165/Roboto-BlackItalic.woff) format('woff')}\n <% } else if (font.id === ${FontIds.POPPINS}) { %>\n @font-face{font-family:poppins;font-style:normal;font-weight:400;src:local('Poppins'),url(https://fonts.cdnfonts.com/s/16009/Poppins-Regular.woff) format('woff')}@font-face{font-family:poppins;font-style:italic;font-weight:400;src:local('Poppins'),url(https://fonts.cdnfonts.com/s/16009/Poppins-Italic.woff) format('woff')}@font-face{font-family:poppins;font-style:normal;font-weight:250;src:local('Poppins'),url(https://fonts.cdnfonts.com/s/16009/Poppins-Thin.woff) format('woff')}@font-face{font-family:poppins;font-style:italic;font-weight:250;src:local('Poppins'),url(https://fonts.cdnfonts.com/s/16009/Poppins-ThinItalic.woff) format('woff')}@font-face{font-family:poppins;font-style:normal;font-weight:275;src:local('Poppins'),url(https://fonts.cdnfonts.com/s/16009/Poppins-ExtraLight.woff) format('woff')}@font-face{font-family:poppins;font-style:italic;font-weight:275;src:local('Poppins'),url(https://fonts.cdnfonts.com/s/16009/Poppins-ExtraLightItalic.woff) format('woff')}@font-face{font-family:poppins;font-style:normal;font-weight:300;src:local('Poppins'),url(https://fonts.cdnfonts.com/s/16009/Poppins-Light.woff) format('woff')}@font-face{font-family:poppins;font-style:italic;font-weight:300;src:local('Poppins'),url(https://fonts.cdnfonts.com/s/16009/Poppins-LightItalic.woff) format('woff')}@font-face{font-family:poppins;font-style:normal;font-weight:500;src:local('Poppins'),url(https://fonts.cdnfonts.com/s/16009/Poppins-Medium.woff) format('woff')}@font-face{font-family:poppins;font-style:italic;font-weight:500;src:local('Poppins'),url(https://fonts.cdnfonts.com/s/16009/Poppins-MediumItalic.woff) format('woff')}@font-face{font-family:poppins;font-style:normal;font-weight:600;src:local('Poppins'),url(https://fonts.cdnfonts.com/s/16009/Poppins-SemiBold.woff) format('woff')}@font-face{font-family:poppins;font-style:italic;font-weight:600;src:local('Poppins'),url(https://fonts.cdnfonts.com/s/16009/Poppins-SemiBoldItalic.woff) format('woff')}@font-face{font-family:poppins;font-style:normal;font-weight:700;src:local('Poppins'),url(https://fonts.cdnfonts.com/s/16009/Poppins-Bold.woff) format('woff')}@font-face{font-family:poppins;font-style:italic;font-weight:700;src:local('Poppins'),url(https://fonts.cdnfonts.com/s/16009/Poppins-BoldItalic.woff) format('woff')}@font-face{font-family:poppins;font-style:normal;font-weight:800;src:local('Poppins'),url(https://fonts.cdnfonts.com/s/16009/Poppins-ExtraBold.woff) format('woff')}@font-face{font-family:poppins;font-style:italic;font-weight:800;src:local('Poppins'),url(https://fonts.cdnfonts.com/s/16009/Poppins-ExtraBoldItalic.woff) format('woff')}@font-face{font-family:poppins;font-style:normal;font-weight:900;src:local('Poppins'),url(https://fonts.cdnfonts.com/s/16009/Poppins-Black.woff) format('woff')}@font-face{font-family:poppins;font-style:italic;font-weight:900;src:local('Poppins'),url(https://fonts.cdnfonts.com/s/16009/Poppins-BlackItalic.woff) format('woff')}\n <% } else if (font.id === ${FontIds.RALEWAY}) { %>\n @font-face{font-family:raleway;font-style:normal;font-weight:400;src:local('Raleway'),url(https://fonts.cdnfonts.com/s/18954/Raleway-Regular.woff) format('woff')}@font-face{font-family:raleway;font-style:normal;font-weight:400;src:local('Raleway'),url(https://fonts.cdnfonts.com/s/18954/Raleway-Regular.woff) format('woff')}@font-face{font-family:raleway;font-style:italic;font-weight:400;src:local('Raleway'),url(https://fonts.cdnfonts.com/s/18954/Raleway-Italic.woff) format('woff')}@font-face{font-family:raleway;font-style:normal;font-weight:250;src:local('Raleway'),url(https://fonts.cdnfonts.com/s/18954/Raleway-Thin.woff) format('woff')}@font-face{font-family:raleway;font-style:italic;font-weight:250;src:local('Raleway'),url(https://fonts.cdnfonts.com/s/18954/Raleway-ThinItalic.woff) format('woff')}@font-face{font-family:raleway;font-style:normal;font-weight:275;src:local('Raleway'),url(https://fonts.cdnfonts.com/s/18954/Raleway-ExtraLight.woff) format('woff')}@font-face{font-family:raleway;font-style:italic;font-weight:275;src:local('Raleway'),url(https://fonts.cdnfonts.com/s/18954/Raleway-ExtraLightItalic.woff) format('woff')}@font-face{font-family:raleway;font-style:normal;font-weight:300;src:local('Raleway'),url(https://fonts.cdnfonts.com/s/18954/Raleway-Light.woff) format('woff')}@font-face{font-family:raleway;font-style:italic;font-weight:300;src:local('Raleway'),url(https://fonts.cdnfonts.com/s/18954/Raleway-LightItalic.woff) format('woff')}@font-face{font-family:raleway;font-style:normal;font-weight:500;src:local('Raleway'),url(https://fonts.cdnfonts.com/s/18954/Raleway-Medium.woff) format('woff')}@font-face{font-family:raleway;font-style:italic;font-weight:500;src:local('Raleway'),url(https://fonts.cdnfonts.com/s/18954/Raleway-MediumItalic.woff) format('woff')}@font-face{font-family:raleway;font-style:normal;font-weight:600;src:local('Raleway'),url(https://fonts.cdnfonts.com/s/18954/Raleway-SemiBold.woff) format('woff')}@font-face{font-family:raleway;font-style:italic;font-weight:600;src:local('Raleway'),url(https://fonts.cdnfonts.com/s/18954/Raleway-SemiBoldItalic.woff) format('woff')}@font-face{font-family:raleway;font-style:normal;font-weight:700;src:local('Raleway'),url(https://fonts.cdnfonts.com/s/18954/Raleway-Bold.woff) format('woff')}@font-face{font-family:raleway;font-style:italic;font-weight:700;src:local('Raleway'),url(https://fonts.cdnfonts.com/s/18954/Raleway-BoldItalic.woff) format('woff')}@font-face{font-family:raleway;font-style:normal;font-weight:800;src:local('Raleway'),url(https://fonts.cdnfonts.com/s/18954/Raleway-ExtraBold.woff) format('woff')}@font-face{font-family:raleway;font-style:italic;font-weight:800;src:local('Raleway'),url(https://fonts.cdnfonts.com/s/18954/Raleway-ExtraBoldItalic.woff) format('woff')}@font-face{font-family:raleway;font-style:normal;font-weight:900;src:local('Raleway'),url(https://fonts.cdnfonts.com/s/18954/Raleway-Black.woff) format('woff')}@font-face{font-family:raleway;font-style:italic;font-weight:900;src:local('Raleway'),url(https://fonts.cdnfonts.com/s/18954/Raleway-BlackItalic.woff) format('woff')}\n <% } else if (font.id === ${FontIds.ZILLA}) { %>\n @font-face {\n font-family: 'Zilla Slab';\n font-style: normal;\n font-weight: 400;\n src: local('Zilla Slab'), url('https://fonts.cdnfonts.com/s/15572/ZillaSlab-Regular.woff') format('woff');\n }\n @font-face {\n font-family: 'Zilla Slab';\n font-style: italic;\n font-weight: 400;\n src: local('Zilla Slab'), url('https://fonts.cdnfonts.com/s/15572/ZillaSlab-Italic.woff') format('woff');\n }\n @font-face {\n font-family: 'Zilla Slab';\n font-style: normal;\n font-weight: 300;\n src: local('Zilla Slab'), url('https://fonts.cdnfonts.com/s/15572/ZillaSlab-Light.woff') format('woff');\n }\n @font-face {\n font-family: 'Zilla Slab';\n font-style: italic;\n font-weight: 300;\n src: local('Zilla Slab'), url('https://fonts.cdnfonts.com/s/15572/ZillaSlab-LightItalic.woff') format('woff');\n }\n @font-face {\n font-family: 'Zilla Slab';\n font-style: normal;\n font-weight: 500;\n src: local('Zilla Slab'), url('https://fonts.cdnfonts.com/s/15572/ZillaSlab-Medium.woff') format('woff');\n }\n @font-face {\n font-family: 'Zilla Slab';\n font-style: italic;\n font-weight: 500;\n src: local('Zilla Slab'), url('https://fonts.cdnfonts.com/s/15572/ZillaSlab-MediumItalic.woff') format('woff');\n }\n @font-face {\n font-family: 'Zilla Slab';\n font-style: normal;\n font-weight: 600;\n src: local('Zilla Slab'), url('https://fonts.cdnfonts.com/s/15572/ZillaSlab-SemiBold.woff') format('woff');\n }\n @font-face {\n font-family: 'Zilla Slab';\n font-style: italic;\n font-weight: 600;\n src: local('Zilla Slab'), url('https://fonts.cdnfonts.com/s/15572/ZillaSlab-SemiBoldItalic.woff') format('woff');\n }\n @font-face {\n font-family: 'Zilla Slab';\n font-style: normal;\n font-weight: 700;\n src: local('Zilla Slab'), url('https://fonts.cdnfonts.com/s/15572/ZillaSlab-Bold.woff') format('woff');\n }\n @font-face {\n font-family: 'Zilla Slab';\n font-style: italic;\n font-weight: 700;\n src: local('Zilla Slab'), url('https://fonts.cdnfonts.com/s/15572/ZillaSlab-BoldItalic.woff') format('woff');\n } \n <% } %>\n\n .pdf-content { padding: 0; margin: 0px; }\n .pdf-content body { width: 100%; margin: 0px; font-family: \"<%= font.name %>\"; font-size: 12px !important; font-weight: normal; }\n .pdf-content .row { display: flex; }\n .pdf-content .items-end { align-items: end; }\n .pdf-content .space-between { justify-content: space-between; }\n .pdf-content .full-width { width: 100% }\n .pdf-content .mt-30 { margin-top: 30px }\n .pdf-content .mt-25 { margin-top: 25px }\n .pdf-content .mt-20 { margin-top: 20px }\n .pdf-content .mt-10 { margin-top: 10px }\n .pdf-content .align-center { text-align: center; }\n .pdf-content .margin-auto { margin: auto; }\n .pdf-content .justify-center { justify-content: center; }\n .pdf-content table { font-size: 12px; font-style: normal; }\n\n /* Header */\n .pdf-content .society-informations p { margin: 0px; }\n .pdf-content .society-informations > div p { font-weight: bold; }\n .pdf-content .logo-placeholder { width: 300px; max-height: 150px;text-align: <%= settings && settings.logoAlignment === 'left' ? 'left' : 'right' %>; margin-bottom: <%= settings && settings.logoAlignment === 'left' ? '10px;' : '0px' %>}\n .pdf-content .logo-placeholder > svg, .pdf-content .logo-placeholder > img { max-width: 100%; max-height: 150px; }\n .pdf-content .document-reference { font-size: 20px !important; }\n .pdf-content .customer-border { border: 2px solid #EAEAEA; border-radius: 6px; padding: 7px; }\n\n /* Body */\n .pdf-content table.commercial-table-preview { border-spacing: 1px; border-collapse: collapse; }\n .pdf-content table.commercial-table-preview, .pdf-content th, .pdf-content td { border: 1px solid #DADCDF; }\n .pdf-content table.commercial-table-preview tr td p { margin: 0px; }\n .pdf-content table.commercial-table-preview tbody tr td { padding: 7px; background-color: white; vertical-align: baseline;}\n .pdf-content table.commercial-table-preview thead tr td { background-color: <%= settings && settings.color ? settings.color : '#EAEAEA' %>; color: <%= settings && settings.fontColor ? settings.fontColor : '#000000' %> !important; padding: 7px; }\n .pdf-content table.commercial-table-preview thead tr td:not(:first-child) { text-align: right; }\n .pdf-content table.commercial-table-preview .product-description { color: #838384 }\n .pdf-content table.commercial-table-preview .product-quantity, .pdf-content table.commercial-table-preview .product-price-without-vat, .pdf-content table.commercial-table-preview .product-vat, .pdf-content table.commercial-table-preview .product-total-price-without-vat,.pdf-content table.commercial-table-preview .product-discount { text-align: right; }\n .pdf-content table.commercial-table-preview td.product-quantity, .pdf-content table.commercial-table-preview td.product-vat { width: 10% }\n .pdf-content td.product-discount { width: 12.5% }\n .pdf-content table.commercial-table-preview td.product-total-price-without-vat, .pdf-content table.commercial-table-preview td.product-price-without-vat { width: 15% }\n .pdf-content table.commercial-table-preview tr.vat-detail-row td:not(:first-child) { text-align: right; }\n .pdf-content table.commercial-table-preview.summary-prices tr td:not(:first-child) {text-align: right;}\n .pdf-content table.commercial-table-preview.summary-prices tr td:first-child {border-right: none;}\n .pdf-content table.commercial-table-preview .discount-percent { color: #838384; font-size: smaller }\n .pdf-content a.payment-button { margin-left: 40px; display: flex; align-items: center; background-color: #EBF1FF; border-radius: 10px; font-weight: 450; font-size: 12px !important; color: #1656FF; border: none; padding: 8px 14px; text-decoration: none; }\n .pdf-content a.payment-button svg { margin-left: 15px; }\n <% if (settings && settings.areLinesSeparationHidden) { %>\n .pdf-content td { border-top: none !important; border-bottom: none !important; }\n <% } %>\n <% if (settings && settings.areColumnsSeparationHidden) { %>\n .pdf-content td { border-left: none !important; border-right: none !important; }\n <% } %>\n <% if (settings && settings.areExternalBordersHidden) { %>\n .pdf-content table.commercial-table-preview { border: none !important }\n .pdf-content table.commercial-table-preview tr:last-child td { border-bottom: none !important }\n .pdf-content table.commercial-table-preview thead td { border-top: none !important }\n .pdf-content table.commercial-table-preview td:first-child { border-left: none !important }\n .pdf-content table.commercial-table-preview td:last-child { border-right: none !important }\n <% } %>`;\n}\n\nexport class CommercialDocumentMailHTML {\n style = `\n @font-face{font-family:circular std;font-style:normal;font-weight:450;src:local('Circular Std'),url(https://fonts.cdnfonts.com/s/15011/CircularStd-Book.woff) format('woff')}\n @font-face{font-family:circular std;font-style:italic;font-weight:450;src:local('Circular Std'),url(https://fonts.cdnfonts.com/s/15011/CircularStd-BookItalic.woff) format('woff')}\n @font-face{font-family:circular std;font-style:normal;font-weight:500;src:local('Circular Std'),url(https://fonts.cdnfonts.com/s/15011/CircularStd-Medium.woff) format('woff')}\n @font-face{font-family:circular std;font-style:italic;font-weight:500;src:local('Circular Std'),url(https://fonts.cdnfonts.com/s/15011/CircularStd-MediumItalic.woff) format('woff')}\n @font-face{font-family:circular std;font-style:normal;font-weight:700;src:local('Circular Std'),url(https://fonts.cdnfonts.com/s/15011/CircularStd-Bold.woff) format('woff')}\n @font-face{font-family:circular std;font-style:italic;font-weight:700;src:local('Circular Std'),url(https://fonts.cdnfonts.com/s/15011/CircularStd-BoldItalic.woff) format('woff')}\n @font-face{font-family:circular std;font-style:normal;font-weight:900;src:local('Circular Std'),url(https://fonts.cdnfonts.com/s/15011/CircularStd-Black.woff) format('woff')}\n @font-face{font-family:circular std;font-style:italic;font-weight:900;src:local('Circular Std'),url(https://fonts.cdnfonts.com/s/15011/CircularStd-BlackItalic.woff) format('woff')}\n\n /* Css classes not working inside mails */\n`;\n\n header = `<style>html { -webkit-print-color-adjust: exact; }</style>\n <style>\n ${this.style}\n </style>\n <div style=\"background-color: <%= brandColors.primary50 %>; color: black; width: calc(100% - 48px); display: grid; border-radius: 16px; padding: 24px;\">\n <div style=\"width: max-content; margin: auto; font-size: 16px; font-family: 'circular std', sans-serif; font-weight: 100; line-height: 140%; position: relative;\">\n <div style=\"color: black;\"><span style=\"font-weight: 500;\"><%- companyName %></span> vous adresse \n <% if(idEstimateInvoiceType) { %>\n <% if ([${EstimateInvoiceType.FACTURE}, ${EstimateInvoiceType.RESTE}].includes(idEstimateInvoiceType)) { %>\n cette facture\n <% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.DEVIS}) { %>\n ce devis\n <% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.BON}) { %>\n ce bon de commande\n <% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.ACOMPTE}) { %>\n cet acompte\n <% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.AVOIR}) { %>\n cet avoir\n <% } %>\n <% } else { %> \n ce document\n <% } %>\n :\n </div>\n <div style=\"<% if (hasVat) { %>margin-top: 16px;<% } %> display: flex;\">\n <div style=\"margin-right: 64px;\">\n <div style=\"font-weight: 500; font-size: 24px; line-height: 120%;\"> \n <% if(idEstimateInvoiceType) { %>\n <% if ([${EstimateInvoiceType.FACTURE}, ${EstimateInvoiceType.RESTE}].includes(idEstimateInvoiceType)) { %>\n Facture\n <% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.DEVIS}) { %>\n Devis\n <% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.BON}) { %>\n Bon de commande\n <% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.ACOMPTE}) { %>\n Acompte\n <% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.AVOIR}) { %>\n Avoir\n <% } %>\n <% } else { %> \n Document\n <% } %>\n <%- reference %>\n </div>\n <div style=\"; color: <%= brandColors.primary500 %>; font-size: 14px;\">\n Echéance : <%- dueDateFormatted %>\n </div>\n <div style=\"margin: 16px 0; font-size: 14px;\">\n <% if (hasVat) { %>\n <div style=\"display: flex; width: 240px; color: #838384; margin-bottom: 10px;\">\n Total HT <div style=\"margin-left: auto;\"><%- totalTaxExcludedFormatted.integerValue %>,<span style=\"font-size: 12px;\"><%- totalTaxExcludedFormatted.centValue %> €</span></div>\n </div>\n <div style=\"display: flex; width: 240px; color: #838384; margin-bottom: 10px;\">\n Total TVA <div style=\"margin-left: auto;\"><%- totalVatFormatted.integerValue %>,<span style=\"font-size: 12px;\"><%- totalVatFormatted.centValue %> €</span></div>\n </div>\n <div style=\"width: 240px; height: 2px; background-color: <%= brandColors.primary500 %>; margin-bottom: 10px;\"></div>\n <% } %>\n <div style=\"display: flex; width: 240px; font-size: 16px; color: black;\">\n Total <% if (hasVat) { %>TTC<% } %> <div style=\"font-size: 20px; font-weight: 500; margin-left: auto;\" ><%- totalTaxIncludedFormatted.integerValue %>,<span style=\"font-size: 16px;\"><%- totalTaxIncludedFormatted.centValue %> €</span></div>\n </div>\n </div>\n <a <% if (fileUrl) { %>href=\"<%= fileUrl %>\"<% } %> target=\"_blank\" style=\"color: white; text-decoration: none; background-color: <%= brandColors.primary500 %>; <% if (fileUrl) { %> cursor: pointer; <% } %> padding: 10px 45px; font-size: 16px; border-radius: 4px;\">\n Afficher le document\n </a>\n </div>\n <div style=\"margin: auto;\">\n <% if (logoUrl) { %>\n <div style=\"width: 154px; height: 154px; border-radius: 50%; border: 2px solid <%= brandColors.primary300 %>; background-color: white;\">\n <table>\n <tr>\n <td valign=\"top\" style=\"vertical-align:middle; width: 154px; height: 154px;\">\n <img src=\"<%= logoUrl %>\" alt=\"logo\" style=\"max-height: 100px; max-width: 100px; margin: auto; display: block;\" />\n </td>\n </tr>\n </table>\n </div>\n <% } else { %>\n <img src=\"<%= hostS3 %>config/mail-sale-document.png\" />\n <% } %>\n </div>\n </div>\n <% if (!shouldHideBrandName) { %>\n <div style=\"margin-top: 16px; width: fit-content; margin-left: auto; margin-right: auto; font-size: 14px;\">\n <div class=\"brand-tag\" style=\"display: flex; line-height: 22px; height: 22px;\">\n Généré par <% if (hostS3) { %><img src=\"<%= hostS3 %>config/logo-brand.png\" alt=\"logo\" style=\"max-height: 22px; margin-left: 8px;\" /><% } %>\n </div>\n </div>\n <% } %>\n </div>\n </div>\n `;\n}"]}
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../ts/utils/commercialManagement/templates/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC1E,OAAO,EACL,YAAY,EACZ,OAAO,GACR,MAAM,0CAA0C,CAAC;AAElD,MAAM,OAAO,4BAA4B;IAAzC;QACE,WAAM,GAAG;;;;UAID,CAAC;QAET,WAAM,GAAG;;;;;;;;;;;;;;SAcF,CAAC;QAER,SAAI,GAAG;;SAEA,CAAC;QAER,YAAO,GAAG;;;;;;yFAM6E,CAAC;QAExF,aAAQ,GAAG;;;;;;;;;;;qCAWwB,mBAAmB,CAAC,OAAO;;;;;;;;;;;;;;;;;;;;;;;+CAuBjB,YAAY,CAAC,OAAO;;;;;;;;;SAS1D,CAAC;QAER,sBAAiB,GAAG;;;;;;;;;;;;;;;WAeX,CAAC;QAEV,yBAAoB,GAAG;;;;;;qCAMY,mBAAmB,CAAC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;6CAwBnB,mBAAmB,CAAC,OAAO,KAAK,mBAAmB,CAAC,KAAK,KAAK,mBAAmB,CAAC,OAAO;;;;;;;;;;;;;YAa1H,mBAAmB,CAAC,OAAO,KAAK,mBAAmB,CAAC,KAAK,KAAK,mBAAmB,CAAC,OAAO;;;;;;SAM5F,CAAC;QAER,kBAAa,GAAG;;;;;;;;;;aAUL,CAAC;QAEZ,UAAK,GAAG;uBACa,OAAO,CAAC,YAAY;;8BAEb,OAAO,CAAC,MAAM;;8BAEd,OAAO,CAAC,OAAO;;8BAEf,OAAO,CAAC,OAAO;;8BAEf,OAAO,CAAC,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAoHjC,CAAC;IACX,CAAC;CAAA;AAED,MAAM,OAAO,0BAA0B;IAAvC;QACE,UAAK,GAAG;;;;;;;;;;;CAWT,CAAC;QAEA,WAAM,GAAG;;QAEH,IAAI,CAAC,KAAK;;;;;;kBAMA,mBAAmB,CAAC,OAAO,KAAK,mBAAmB,CAAC,KAAK;;oDAEvB,mBAAmB,CAAC,KAAK;;oDAEzB,mBAAmB,CAAC,GAAG;;oDAEvB,mBAAmB,CAAC,OAAO;;oDAE3B,mBAAmB,CAAC,KAAK;;;;;;;;;;;;wBAYrD,mBAAmB,CAAC,OAAO,KAAK,mBAAmB,CAAC,KAAK;;wDAEzB,mBAAmB,CAAC,KAAK;;wDAEzB,mBAAmB,CAAC,GAAG;;wDAEvB,mBAAmB,CAAC,OAAO;;wDAE3B,mBAAmB,CAAC,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsD9E,CAAC;IACJ,CAAC;CAAA","sourcesContent":["import { EstimateInvoiceType } from '../../../types/Enum/EstimateInvoice';\nimport {\n DiscountType,\n FontIds,\n} from '../../../types/Enum/CommercialManagement';\n\nexport class CommercialDocumentCommonHTML {\n header = `<style>html {\n -webkit-print-color-adjust: exact;\n }</style><% if (settings && settings.isEdgingDisplayed) { %>\n <span id=\"header-edging\" style=\"position: absolute; top: 0; left: 0; width: 100vw; font-size: 10px !important; height: 15px; background-color: <%= settings && settings.edgingColor ? settings.edgingColor : '#333333' %>; margin-bottom: 20px;\"></span>\n <% } %>`;\n\n footer = `<div style=\"font-size: 8px !important; color: #838384; text-align: center; padding: 0 40px; display: block; width: 100%;\">\n <% if (freeText) { %><%- freeText %><br/><br/><% } %><% if (accountingCategoryFormatted) {%><%= accountingCategoryFormatted %> | <%}%><% if(marginVats.length > 0) { %>Régime TVA sur marge - <% marginVats.forEach(function(v, index) { %><%= v %> - <% }) %>ART 297-A du CGI ou directive 2006-212 CE | <% } %><% if(penalties || compensation || discount) { %><%= penalties ? 'Pénalités en cas de retard : ' + penalties : ''%><%= penalties && compensation ? ' | ' : ''%><%= compensation ? 'Indemnité forfaitaire en cas de retard : ' + compensation + ' ' : '' %><%= (compensation || penalties) && discount ? ' | ' : '' %><%= discount ? discount + ' ' : '' %><%= shouldPayTaxAfterDebit ? \"| Option pour le paiement de la taxe d'après les débits\" : '' %><% if(name || legalForm || capital || siren || rcs) {%><br/><br/><% } %><% } %><%= name %><%= name && (legalForm || capital || siren || rcs) ? ', ' : ''%><%= legalForm %><%= capital ? ' au capital de ' + capitalFormatted + ' €' : '' %><%= siren ? ' immatriculée sous le SIREN ' + siren : ''%><%= rcs ? '| RCS ' + rcs : ''%><% if (vatCode || nafCode) {%><br/><% } %><%= vatCode ? 'N° TVA '+vatCode : ''%><% if(vatCode && nafCode){%>|<%}%><%= nafCode ? 'APE '+nafCode : '' %>\n <% if ([\"Clementine\", \"Pourcentage\", \"Comptalib\"].includes(brandName) && !shouldHideBrandName) { %>\n <div style=\"display: grid; place-items: center;\"><div style=\"background-color: <%= brandColors.primary50 %>; color: <%= brandColors.primary500 %>; display: flex; gap: 4px; max-width: fit-content; border-radius: 4px; padding: 4px 8px; margin-top: 8px; align-items: center; font-size: 10px; line-height: 140%; font-family: 'circular std', sans serif; font-weight: 450;\">\n Généré par \n <% if (brandName === \"Clementine\") { %>\n <svg width=\"95\" height=\"14\" viewBox=\"0 0 95 14\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M20.4961 8.48563C20.4961 9.59033 21.2049 10.2067 22.037 10.2067C22.8691 10.2067 23.3005 9.65433 23.4238 9.19206L24.8722 9.68278C24.5949 10.6974 23.6395 11.7096 22.037 11.7096C20.2496 11.7096 18.8319 10.3584 18.8319 8.51644C18.8319 6.67448 20.2187 5.32324 21.9754 5.32324C23.6395 5.32324 24.5641 6.33786 24.8106 7.35011L23.393 7.81C23.2389 7.31929 22.8691 6.79539 22.037 6.79539C21.2049 6.79539 20.4961 7.40937 20.4961 8.48563V8.48563Z\" fill=\"#FF7E3C\"/><path d=\"M26.1048 11.5245V2.61816H27.7381V11.5245H26.1048Z\" fill=\"#FF7E3C\"/><path d=\"M34.9183 9.77242C34.6101 10.8155 33.6547 11.676 32.1447 11.676C30.4805 11.676 29.0013 10.4789 29.0013 8.45199C29.0013 6.42513 30.4189 5.25879 31.9906 5.25879C33.8705 5.25879 34.9799 6.45594 34.9799 8.39035C34.9799 8.6369 34.9491 8.88107 34.9491 8.88107H30.6038C30.6346 9.67996 31.3126 10.2631 32.1447 10.2631C32.9151 10.2631 33.3157 9.89569 33.5315 9.34097L34.9183 9.77004V9.77242ZM33.3774 7.80719C33.3466 7.1932 32.9459 6.61003 32.0214 6.61003C31.1585 6.61003 30.6962 7.25484 30.6654 7.80719H33.3774Z\" fill=\"#FF7E3C\"/><path d=\"M36.3058 11.5251V5.47299H37.8775V6.21025C38.2165 5.62708 38.987 5.28809 39.665 5.28809C40.497 5.28809 41.1442 5.65553 41.4524 6.3027C41.9455 5.56545 42.5618 5.28809 43.3631 5.28809C44.4725 5.28809 45.5512 5.96371 45.5512 7.59231V11.5228H43.9486V7.92894C43.9486 7.28413 43.6405 6.79342 42.87 6.79342C42.1612 6.79342 41.7606 7.34577 41.7606 7.99057V11.5228H40.1272V7.92894C40.1272 7.28413 39.7882 6.79342 39.0486 6.79342C38.309 6.79342 37.9083 7.31495 37.9083 7.99057V11.5228H36.3058V11.5251Z\" fill=\"#FF7E3C\"/><path d=\"M52.6697 9.77242C52.3615 10.8155 51.4061 11.676 49.8961 11.676C48.2319 11.676 46.7527 10.4789 46.7527 8.45199C46.7527 6.42513 48.1703 5.25879 49.742 5.25879C51.6219 5.25879 52.7313 6.45594 52.7313 8.39035C52.7313 8.6369 52.7005 8.88107 52.7005 8.88107H48.3552C48.386 9.67996 49.064 10.2631 49.8961 10.2631C50.6665 10.2631 51.0672 9.89569 51.2829 9.34097L52.6697 9.77004V9.77242ZM51.1288 7.80719C51.098 7.1932 50.6973 6.61003 49.7728 6.61003C48.9099 6.61003 48.4476 7.25484 48.4168 7.80719H51.1288Z\" fill=\"#FF7E3C\"/><path d=\"M55.69 11.5251H54.0566V5.47299H55.6592V6.21025C56.029 5.59626 56.7686 5.28809 57.4158 5.28809C58.9259 5.28809 59.6038 6.36197 59.6038 7.68476V11.4943H57.9705V7.99294C57.9705 7.31732 57.6315 6.79579 56.8611 6.79579C56.1523 6.79579 55.7208 7.34814 55.7208 8.05458L55.69 11.5251Z\" fill=\"#FF7E3C\"/><path d=\"M63.271 5.47171H64.5037V6.91541H63.271V9.46381C63.271 9.98534 63.5176 10.1702 63.9798 10.1702C64.1647 10.1702 64.4113 10.1394 64.4729 10.1086V11.4599C64.3188 11.5215 64.0415 11.6139 63.5484 11.6139C62.3773 11.6139 61.6377 10.9075 61.6377 9.74117V6.91541H60.5282V5.47171H60.8364C61.4836 5.47171 61.7609 5.04263 61.7609 4.51873V3.6582H63.2402L63.271 5.46934V5.47171Z\" fill=\"#FF7E3C\"/><path d=\"M66.6923 2.4668C67.2471 2.4668 67.7093 2.92669 67.7093 3.48141C67.7093 4.03614 67.2779 4.46521 66.6923 4.46521C66.1376 4.46521 65.6754 4.00532 65.6754 3.48141C65.6754 2.92906 66.1376 2.4668 66.6923 2.4668V2.4668ZM65.8603 11.5272V5.47509H67.4936V11.5249H65.8603V11.5272Z\" fill=\"#FF7E3C\"/><path d=\"M70.9144 11.5251H69.2811V5.47299H70.8836V6.21025C71.2534 5.59626 71.993 5.28809 72.6402 5.28809C74.1503 5.28809 74.8283 6.36197 74.8283 7.68476V11.4943H73.1949V7.99294C73.1949 7.31732 72.8559 6.79579 72.0855 6.79579C71.3767 6.79579 70.9452 7.34814 70.9452 8.05458L70.9144 11.5251V11.5251Z\" fill=\"#FF7E3C\"/><path d=\"M81.8856 9.77242C81.5774 10.8155 80.622 11.676 79.112 11.676C77.4478 11.676 75.9685 10.4789 75.9685 8.45199C75.9685 6.42513 77.3862 5.25879 78.9579 5.25879C80.8378 5.25879 81.9472 6.45594 81.9472 8.39035C81.9472 8.6369 81.9164 8.88107 81.9164 8.88107H77.6327C77.6635 9.67996 78.3415 10.2631 79.1736 10.2631C79.944 10.2631 80.3447 9.89569 80.5604 9.34097L81.8856 9.77004V9.77242ZM80.3755 7.80719C80.3447 7.1932 79.944 6.61003 79.0195 6.61003C78.1566 6.61003 77.6943 7.25484 77.6635 7.80719H80.3755V7.80719Z\" fill=\"#FF7E3C\"/><path d=\"M0 5.29774C0 5.29774 1.43659 4.14326 2.75938 5.97336C2.75938 5.97336 1.3228 6.87419 0 5.29774Z\" fill=\"#FF7E3C\"/><path d=\"M14.8356 0C8.76921 0.0853417 7.82097 3.23824 7.64792 3.97076C8.21449 3.72659 9.39505 3.371 10.6657 3.60569C14.2619 2.42276 14.8356 0 14.8356 0Z\" fill=\"#FF7E3C\"/><path d=\"M4.71548 8.93009C4.71548 6.14226 7.01497 3.85938 9.80517 3.85938C12.5954 3.85938 14.8664 6.13989 14.8949 8.93009C14.8949 11.7179 12.6238 14.0008 9.80517 14.0008C6.98652 14.0008 4.71548 11.7203 4.71548 8.93009Z\" fill=\"#FF7E3C\"/><path d=\"M5.20377 6.16734C4.68698 6.9283 4.39777 7.91447 4.39777 8.92672C4.39777 10.3349 4.91456 11.6031 5.83435 12.5324C5.37446 12.7576 4.7984 12.9259 4.19627 12.9259C2.26897 12.9259 0.74704 11.3779 0.74704 9.46247C0.74704 7.54703 2.27134 5.99902 4.19627 5.99902C4.54237 5.99902 4.88611 6.08437 5.20377 6.16734V6.16734Z\" fill=\"#FF7E3C\"/><path d=\"M88.7553 4.81456V5.47596H90.1183V6.87462H88.7553V11.5115H87.1101V6.87699H86.1049V5.47833H87.1101V4.79086C87.1101 3.43013 87.9682 2.5459 89.3052 2.5459C89.649 2.5459 89.9809 2.60753 90.116 2.66917V4.04412C90.0306 4.02041 89.8694 3.98248 89.6016 3.98248C89.2341 3.98248 88.7553 4.14131 88.7553 4.81694V4.81456Z\" fill=\"#FF7E3C\"/><path d=\"M94.9076 7.09762C94.7227 7.05969 94.5638 7.04783 94.4169 7.04783C93.5824 7.04783 92.8594 7.45321 92.8594 8.7523V11.514H91.2284V5.47849H92.812V6.37458C93.1794 5.57806 94.0139 5.42871 94.5306 5.42871C94.6658 5.42871 94.789 5.44056 94.9123 5.45242V7.09762H94.9076Z\" fill=\"#FF7E3C\"/><path d=\"M84.173 9.61523C84.7277 9.61523 85.19 10.0751 85.19 10.6299C85.19 11.1846 84.7585 11.6137 84.173 11.6137C83.6183 11.6137 83.156 11.1538 83.156 10.6299C83.156 10.0775 83.6183 9.61523 84.173 9.61523Z\" fill=\"#FF7E3C\"/></svg>\n <% } else if (brandName === \"Comptalib\") {%>\n <svg width=\"106\" height=\"16\" viewBox=\"0 0 106 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M12.8144 15.4609H12.8117C10.6013 15.7839 8.35474 15.7839 6.14437 15.4609H6.14316C5.60537 15.3823 5.10746 15.1351 4.72305 14.7558C4.33863 14.3765 4.0881 13.8852 4.00849 13.3546V13.3522C3.68103 11.1713 3.68103 8.95462 4.00849 6.77368L4.04392 6.53796C4.11349 6.07512 4.33208 5.64663 4.6674 5.31577C5.00272 4.98491 5.43699 4.76923 5.90608 4.70059L6.1474 4.66518C8.35776 4.34207 10.6043 4.34207 12.8147 4.66518V4.66518C13.3525 4.74377 13.8503 4.99098 14.2347 5.37028C14.6192 5.74957 14.8697 6.24082 14.9493 6.77144V6.77353C15.2768 8.95447 15.2768 11.1711 14.9493 13.3521V13.354C14.8698 13.8848 14.6193 14.3762 14.2348 14.7557C13.8503 15.1351 13.3523 15.3823 12.8144 15.4609V15.4609Z\" fill=\"#1656FF\"/><path d=\"M3.5494 6.32932V6.32783C3.62874 5.79726 3.87905 5.30598 4.2633 4.92666C4.64754 4.54734 5.14533 4.30012 5.68301 4.22158L5.68801 4.22083C7.52402 3.95267 9.3864 3.90722 11.2336 4.08549C11.2512 4.08723 11.2689 4.08517 11.2856 4.07943C11.3023 4.0737 11.3175 4.06444 11.3301 4.0523C11.3428 4.04016 11.3526 4.02544 11.3589 4.00916C11.3652 3.99288 11.3678 3.97545 11.3665 3.95807C11.3262 3.4203 11.2656 2.88418 11.1849 2.3497V2.34761C11.1052 1.81698 10.8547 1.32572 10.4703 0.94642C10.0859 0.567123 9.58797 0.319922 9.05019 0.241355V0.241355C6.83982 -0.0817537 4.59327 -0.0817537 2.3829 0.241355H2.37881C1.84087 0.320086 1.34288 0.567513 0.958462 0.947058C0.574041 1.3266 0.323594 1.81812 0.244144 2.34895L0.24263 2.35926C-0.0834782 4.53774 -0.0828661 6.75172 0.244447 8.93002V8.93002C0.324097 9.46063 0.574641 9.95189 0.959051 10.3312C1.34346 10.7105 1.84134 10.9577 2.37912 11.0363H2.38048C2.65753 11.0769 2.93509 11.1123 3.21315 11.1425C3.23077 11.1445 3.24861 11.1426 3.26542 11.137C3.28223 11.1315 3.29759 11.1223 3.31043 11.1103C3.32327 11.0982 3.33326 11.0835 3.33971 11.0672C3.34616 11.0509 3.3489 11.0334 3.34774 11.016C3.24888 9.45108 3.31647 7.8803 3.5494 6.32932V6.32932Z\" fill=\"#29426F\"/><path d=\"M29.2692 4.95421H31.9287C31.847 4.25715 31.6487 3.6388 31.3338 3.09915C31.0188 2.5595 30.6164 2.10978 30.1265 1.75002C29.6483 1.379 29.1 1.09793 28.4818 0.906807C27.8753 0.715681 27.2279 0.620117 26.5397 0.620117C25.5832 0.620117 24.7201 0.783137 23.9502 1.10918C23.1921 1.43522 22.5505 1.88493 22.0256 2.45831C21.5007 3.03169 21.0983 3.70626 20.8184 4.48201C20.5384 5.24652 20.3984 6.07848 20.3984 6.97791C20.3984 7.85484 20.5384 8.67556 20.8184 9.44007C21.0983 10.1933 21.5007 10.851 22.0256 11.4132C22.5505 11.9753 23.1921 12.4194 23.9502 12.7454C24.7201 13.0602 25.5832 13.2176 26.5397 13.2176C27.3096 13.2176 28.0153 13.1052 28.6568 12.8804C29.2983 12.6555 29.8582 12.3295 30.3365 11.9022C30.8147 11.475 31.1996 10.9578 31.4912 10.3507C31.7828 9.74363 31.9636 9.06344 32.0336 8.31017H29.3742C29.2692 9.11965 28.9776 9.77173 28.4993 10.2664C28.0328 10.7611 27.3796 11.0084 26.5397 11.0084C25.9215 11.0084 25.3966 10.896 24.965 10.6712C24.5335 10.4351 24.1835 10.1259 23.9152 9.74363C23.647 9.36137 23.4487 8.93415 23.3204 8.46195C23.2037 7.97851 23.1454 7.48383 23.1454 6.97791C23.1454 6.4495 23.2037 5.93795 23.3204 5.44327C23.4487 4.94859 23.647 4.51012 23.9152 4.12786C24.1835 3.73437 24.5335 3.42519 24.965 3.20033C25.3966 2.96423 25.9215 2.84619 26.5397 2.84619C26.878 2.84619 27.1988 2.9024 27.502 3.01483C27.817 3.11601 28.0969 3.26217 28.3419 3.4533C28.5868 3.64442 28.7909 3.86928 28.9542 4.12786C29.1175 4.3752 29.2225 4.65065 29.2692 4.95421Z\" fill=\"#29426F\"/><path d=\"M35.8516 8.59686C35.8516 8.24834 35.8866 7.90543 35.9565 7.56815C36.0265 7.23087 36.1432 6.93293 36.3065 6.67435C36.4814 6.41577 36.7089 6.20778 36.9888 6.05038C37.2688 5.88173 37.6187 5.79741 38.0386 5.79741C38.4585 5.79741 38.8085 5.88173 39.0884 6.05038C39.38 6.20778 39.6075 6.41577 39.7708 6.67435C39.9458 6.93293 40.0682 7.23087 40.1382 7.56815C40.2082 7.90543 40.2432 8.24834 40.2432 8.59686C40.2432 8.94539 40.2082 9.2883 40.1382 9.62558C40.0682 9.95162 39.9458 10.2496 39.7708 10.5194C39.6075 10.778 39.38 10.986 39.0884 11.1434C38.8085 11.3008 38.4585 11.3795 38.0386 11.3795C37.6187 11.3795 37.2688 11.3008 36.9888 11.1434C36.7089 10.986 36.4814 10.778 36.3065 10.5194C36.1432 10.2496 36.0265 9.95162 35.9565 9.62558C35.8866 9.2883 35.8516 8.94539 35.8516 8.59686ZM33.3671 8.59686C33.3671 9.29392 33.4779 9.92351 33.6995 10.4857C33.9211 11.0478 34.2361 11.5312 34.6443 11.936C35.0526 12.3295 35.5425 12.633 36.114 12.8466C36.6856 13.0602 37.3271 13.1671 38.0386 13.1671C38.7502 13.1671 39.3917 13.0602 39.9632 12.8466C40.5465 12.633 41.0422 12.3295 41.4505 11.936C41.8587 11.5312 42.1736 11.0478 42.3953 10.4857C42.6169 9.92351 42.7277 9.29392 42.7277 8.59686C42.7277 7.89981 42.6169 7.27022 42.3953 6.70808C42.1736 6.1347 41.8587 5.65126 41.4505 5.25776C41.0422 4.85302 40.5465 4.54385 39.9632 4.33023C39.3917 4.10538 38.7502 3.99295 38.0386 3.99295C37.3271 3.99295 36.6856 4.10538 36.114 4.33023C35.5425 4.54385 35.0526 4.85302 34.6443 5.25776C34.2361 5.65126 33.9211 6.1347 33.6995 6.70808C33.4779 7.27022 33.3671 7.89981 33.3671 8.59686Z\" fill=\"#29426F\"/><path d=\"M44.4131 4.22905V12.9478H46.8976V7.88857C46.8976 7.46134 46.9618 7.11844 47.0901 6.85986C47.2184 6.59003 47.37 6.38766 47.545 6.25275C47.7316 6.10659 47.9182 6.01103 48.1049 5.96606C48.3032 5.90984 48.4606 5.88173 48.5773 5.88173C48.9739 5.88173 49.2713 5.94919 49.4696 6.08411C49.6796 6.20778 49.8254 6.37642 49.907 6.59003C50.0003 6.80364 50.0528 7.03974 50.0645 7.29832C50.0762 7.54567 50.082 7.79863 50.082 8.05721V12.9478H52.5665V8.09094C52.5665 7.82111 52.584 7.55691 52.619 7.29832C52.6656 7.0285 52.7473 6.7924 52.8639 6.59003C52.9922 6.37642 53.1614 6.20778 53.3713 6.08411C53.593 5.94919 53.8787 5.88173 54.2287 5.88173C54.5786 5.88173 54.8527 5.93795 55.051 6.05038C55.261 6.1628 55.4184 6.31458 55.5234 6.50571C55.6284 6.69684 55.6925 6.92169 55.7159 7.18028C55.7392 7.43886 55.7509 7.71431 55.7509 8.00662V12.9478H58.2354V7.11282C58.2354 6.55068 58.1537 6.07286 57.9904 5.67936C57.8271 5.27463 57.5997 4.94858 57.308 4.70124C57.0164 4.4539 56.6665 4.27402 56.2583 4.16159C55.85 4.04916 55.4068 3.99295 54.9285 3.99295C54.2986 3.99295 53.7504 4.13911 53.2838 4.43142C52.8289 4.72373 52.4673 5.06101 52.1991 5.44327C51.9541 4.90361 51.5925 4.52698 51.1143 4.31337C50.6477 4.09976 50.1286 3.99295 49.5571 3.99295C48.9622 3.99295 48.4315 4.11662 47.9649 4.36396C47.51 4.6113 47.1192 4.95983 46.7926 5.40954H46.7576V4.22905H44.4131Z\" fill=\"#29426F\"/><path d=\"M64.7659 11.3795C64.3694 11.3795 64.0311 11.3008 63.7511 11.1434C63.4712 10.986 63.2437 10.7836 63.0688 10.5362C62.9055 10.2777 62.783 9.97973 62.7014 9.64244C62.6314 9.30516 62.5964 8.96226 62.5964 8.61373C62.5964 8.25396 62.6314 7.90543 62.7014 7.56815C62.7713 7.23087 62.888 6.93293 63.0513 6.67435C63.2263 6.41577 63.4479 6.20778 63.7162 6.05038C63.9961 5.88173 64.3402 5.79741 64.7484 5.79741C65.145 5.79741 65.4775 5.88173 65.7458 6.05038C66.0257 6.20778 66.2531 6.42139 66.4281 6.69121C66.6031 6.9498 66.7256 7.24773 66.7955 7.58502C66.8772 7.9223 66.918 8.2652 66.918 8.61373C66.918 8.96226 66.883 9.30516 66.813 9.64244C66.7431 9.97973 66.6206 10.2777 66.4456 10.5362C66.2823 10.7836 66.0607 10.986 65.7807 11.1434C65.5125 11.3008 65.1742 11.3795 64.7659 11.3795ZM60.1994 4.22905V16.0002H62.6839V11.8685H62.7189C63.0221 12.2957 63.407 12.6218 63.8736 12.8466C64.3519 13.0602 64.8709 13.1671 65.4308 13.1671C66.0957 13.1671 66.6731 13.0434 67.163 12.796C67.6645 12.5487 68.0786 12.217 68.4052 11.8011C68.7435 11.3851 68.9943 10.9073 69.1576 10.3676C69.3209 9.82795 69.4025 9.26581 69.4025 8.68118C69.4025 8.06283 69.3209 7.47259 69.1576 6.91045C68.9943 6.33707 68.7435 5.83676 68.4052 5.40954C68.067 4.98231 67.6412 4.63941 67.128 4.38083C66.6147 4.12224 66.0024 3.99295 65.2908 3.99295C64.731 3.99295 64.2177 4.09976 63.7511 4.31337C63.2846 4.52698 62.8997 4.86988 62.5964 5.34208H62.5614V4.22905H60.1994Z\" fill=\"#29426F\"/><path d=\"M74.0449 4.22905V1.6151H71.5603V4.22905H70.0556V5.83114H71.5603V10.9747C71.5603 11.4132 71.6362 11.7673 71.7878 12.0372C71.9394 12.307 72.1436 12.515 72.4002 12.6611C72.6685 12.8073 72.9717 12.9028 73.31 12.9478C73.6599 13.004 74.0274 13.0321 74.4123 13.0321C74.6572 13.0321 74.908 13.0265 75.1646 13.0153C75.4212 13.004 75.6545 12.9815 75.8645 12.9478V11.0928C75.7478 11.1152 75.6254 11.1321 75.4971 11.1434C75.3688 11.1546 75.2346 11.1602 75.0946 11.1602C74.6747 11.1602 74.3948 11.0928 74.2548 10.9578C74.1148 10.8229 74.0449 10.5531 74.0449 10.1484V5.83114H75.8645V4.22905H74.0449Z\" fill=\"#29426F\"/><path d=\"M76.9416 6.91045C76.9766 6.34831 77.1224 5.88173 77.379 5.51072C77.6356 5.13971 77.9622 4.84178 78.3588 4.61692C78.7554 4.39207 79.1987 4.23467 79.6886 4.14473C80.1901 4.04354 80.6917 3.99295 81.1933 3.99295C81.6482 3.99295 82.1089 4.02668 82.5755 4.09413C83.0421 4.15035 83.4678 4.2684 83.8527 4.44828C84.2377 4.62817 84.5526 4.88113 84.7976 5.20717C85.0425 5.52197 85.165 5.94357 85.165 6.47198V11.0084C85.165 11.4019 85.1883 11.7786 85.235 12.1383C85.2816 12.4981 85.3633 12.7679 85.4799 12.9478H82.9604C82.9138 12.8129 82.8729 12.678 82.8379 12.5431C82.8146 12.3969 82.7971 12.2508 82.7855 12.1046C82.3889 12.4981 81.9223 12.7736 81.3857 12.931C80.8492 13.0884 80.301 13.1671 79.7411 13.1671C79.3095 13.1671 78.9071 13.1165 78.5338 13.0153C78.1605 12.9141 77.8339 12.7567 77.554 12.5431C77.274 12.3295 77.0524 12.0596 76.8891 11.7336C76.7375 11.4076 76.6617 11.0197 76.6617 10.57C76.6617 10.0753 76.7492 9.67055 76.9241 9.35575C77.1107 9.02971 77.344 8.77113 77.624 8.58C77.9156 8.38887 78.2422 8.24834 78.6038 8.1584C78.977 8.05721 79.3503 7.97851 79.7236 7.9223C80.0968 7.86608 80.4642 7.82111 80.8258 7.78739C81.1874 7.75366 81.5082 7.70306 81.7881 7.63561C82.0681 7.56815 82.2897 7.47259 82.453 7.34892C82.6163 7.214 82.6921 7.02288 82.6805 6.77554C82.6805 6.51695 82.6338 6.31458 82.5405 6.16843C82.4589 6.01103 82.3422 5.89298 82.1906 5.81428C82.0506 5.72434 81.8815 5.66812 81.6832 5.64564C81.4965 5.61191 81.2924 5.59504 81.0708 5.59504C80.5809 5.59504 80.196 5.69623 79.916 5.8986C79.6361 6.10097 79.4728 6.43825 79.4261 6.91045H76.9416ZM82.6805 8.68118C82.5755 8.77113 82.4414 8.84421 82.2781 8.90042C82.1264 8.94539 81.9573 8.98474 81.7707 9.01847C81.5957 9.0522 81.4091 9.0803 81.2108 9.10279C81.0125 9.12527 80.8142 9.15338 80.6159 9.18711C80.4293 9.22084 80.2426 9.26581 80.056 9.32202C79.881 9.37824 79.7236 9.45694 79.5836 9.55812C79.4553 9.64806 79.3503 9.76611 79.2687 9.91227C79.187 10.0584 79.1462 10.2439 79.1462 10.4688C79.1462 10.6824 79.187 10.8623 79.2687 11.0084C79.3503 11.1546 79.4611 11.2726 79.6011 11.3626C79.7411 11.4413 79.9044 11.4975 80.091 11.5312C80.2776 11.565 80.4701 11.5818 80.6684 11.5818C81.1583 11.5818 81.5374 11.5031 81.8057 11.3457C82.0739 11.1883 82.2722 11.0028 82.4005 10.7892C82.5288 10.5644 82.6047 10.3395 82.628 10.1146C82.663 9.88978 82.6805 9.7099 82.6805 9.57499V8.68118Z\" fill=\"#29426F\"/><path d=\"M87.1634 0.906807V12.9478H89.6479V0.906807H87.1634Z\" fill=\"#29426F\"/><path d=\"M94.1588 2.87991V0.906807H91.6742V2.87991H94.1588ZM91.6742 4.22905V12.9478H94.1588V4.22905H91.6742Z\" fill=\"#29426F\"/><path d=\"M102.746 8.59686C102.746 8.95663 102.705 9.30516 102.624 9.64244C102.542 9.97973 102.414 10.2777 102.239 10.5362C102.064 10.7948 101.842 11.0028 101.574 11.1602C101.317 11.3064 101.002 11.3795 100.629 11.3795C100.268 11.3795 99.9527 11.3064 99.6844 11.1602C99.4161 11.0028 99.1945 10.7948 99.0195 10.5362C98.8445 10.2777 98.7162 9.97973 98.6346 9.64244C98.5529 9.30516 98.5121 8.95663 98.5121 8.59686C98.5121 8.22585 98.5529 7.87171 98.6346 7.53442C98.7162 7.19714 98.8445 6.89921 99.0195 6.64062C99.1945 6.38204 99.4161 6.17967 99.6844 6.03351C99.9527 5.87611 100.268 5.79741 100.629 5.79741C101.002 5.79741 101.317 5.87611 101.574 6.03351C101.842 6.17967 102.064 6.38204 102.239 6.64062C102.414 6.89921 102.542 7.19714 102.624 7.53442C102.705 7.87171 102.746 8.22585 102.746 8.59686ZM96.1151 0.906807V12.9478H98.4771V11.8348H98.5121C98.7804 12.3182 99.177 12.6611 99.7019 12.8635C100.227 13.0659 100.822 13.1671 101.487 13.1671C101.941 13.1671 102.391 13.0771 102.834 12.8972C103.277 12.7173 103.674 12.4419 104.024 12.0709C104.385 11.6999 104.677 11.2277 104.898 10.6543C105.12 10.0697 105.231 9.37824 105.231 8.58C105.231 7.78176 105.12 7.09595 104.898 6.52257C104.677 5.93795 104.385 5.46013 104.024 5.08912C103.674 4.71811 103.277 4.44266 102.834 4.26278C102.391 4.08289 101.941 3.99295 101.487 3.99295C100.927 3.99295 100.384 4.09976 99.8593 4.31337C99.3461 4.51574 98.9378 4.84178 98.6346 5.29149H98.5996V0.906807H96.1151Z\" fill=\"#29426F\"/></svg>\n <% } else if (brandName === \"Pourcentage\") {%>\n <svg width=\"92\" height=\"14\" viewBox=\"0 0 92 14\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M16.4728 1.97949H19.857C20.3375 1.97949 20.7762 2.02073 21.194 2.10319C21.6118 2.18566 21.9878 2.32997 22.3012 2.53614C22.6145 2.7423 22.8652 3.03093 23.0532 3.38141C23.2412 3.73189 23.3248 4.16483 23.3248 4.70086C23.3248 5.21627 23.2412 5.66983 23.0741 6.02031C22.907 6.37079 22.6563 6.65942 22.3638 6.86558C22.0714 7.07174 21.7162 7.23667 21.2984 7.31914C20.8806 7.4016 20.442 7.44284 19.9615 7.44284H18.4992V10.9476H16.4728V1.97949ZM18.4783 5.77291H19.8153C20.0033 5.77291 20.1704 5.7523 20.3375 5.73168C20.5046 5.69045 20.6509 5.64921 20.7971 5.56674C20.9224 5.48428 21.0269 5.3812 21.1104 5.23689C21.194 5.09257 21.2358 4.92764 21.2358 4.70086C21.2358 4.47408 21.1731 4.28853 21.0687 4.14421C20.9642 3.9999 20.818 3.89682 20.6509 3.81435C20.4837 3.73188 20.2957 3.69066 20.0868 3.67004C19.8779 3.64942 19.6899 3.6288 19.5019 3.6288H18.4783V5.77291V5.77291Z\" fill=\"#386D5D\"/><path d=\"M24.0975 7.88043C24.0975 7.38564 24.1811 6.9527 24.3691 6.54037C24.5571 6.14866 24.7869 5.79818 25.1002 5.50955C25.4136 5.22092 25.7896 5.01475 26.2074 4.84982C26.6252 4.70551 27.0848 4.62305 27.5653 4.62305C28.0457 4.62305 28.5053 4.70551 28.9231 4.84982C29.3409 4.99414 29.7169 5.22092 30.0303 5.50955C30.3436 5.79818 30.5943 6.12804 30.7614 6.54037C30.9495 6.93208 31.033 7.38564 31.033 7.88043C31.033 8.37523 30.9495 8.80817 30.7614 9.2205C30.5734 9.63283 30.3436 9.96269 30.0303 10.2513C29.7169 10.5399 29.3409 10.7461 28.9231 10.911C28.5053 11.0554 28.0457 11.1378 27.5653 11.1378C27.0848 11.1378 26.6252 11.0554 26.2074 10.911C25.7896 10.7667 25.4136 10.5399 25.1002 10.2513C24.7869 9.96269 24.5362 9.63283 24.3691 9.2205C24.202 8.80817 24.0975 8.37523 24.0975 7.88043ZM26.0194 7.88043C26.0194 8.35461 26.1447 8.72571 26.4163 9.01434C26.6879 9.30296 27.0639 9.44728 27.5653 9.44728C28.0457 9.44728 28.4426 9.30296 28.7142 9.01434C28.9858 8.72571 29.1111 8.35461 29.1111 7.88043C29.1111 7.40626 28.9858 7.03516 28.7142 6.74653C28.4426 6.4579 28.0666 6.31359 27.5653 6.31359C27.0848 6.31359 26.6879 6.4579 26.4163 6.74653C26.1656 7.03516 26.0194 7.40626 26.0194 7.88043Z\" fill=\"#386D5D\"/><path d=\"M38.1987 10.9673H36.3395V10.122H36.3186C36.256 10.2457 36.1724 10.3488 36.0471 10.4725C35.9426 10.5962 35.8173 10.6992 35.6502 10.7817C35.5039 10.8848 35.3159 10.9466 35.1279 11.0085C34.9399 11.0703 34.7101 11.091 34.4803 11.091C33.9998 11.091 33.6029 11.0085 33.2896 10.8642C32.9762 10.7199 32.7464 10.5137 32.5793 10.2457C32.4122 9.97767 32.3077 9.66842 32.2451 9.31794C32.1824 8.96746 32.1615 8.57575 32.1615 8.16342V4.76172H34.0834V7.79233C34.0834 7.97788 34.0834 8.16342 34.1043 8.34897C34.1252 8.53452 34.1461 8.72007 34.2296 8.885C34.2923 9.04993 34.3967 9.17362 34.5221 9.27671C34.6474 9.37979 34.8354 9.42102 35.0861 9.42102C35.3368 9.42102 35.5457 9.37979 35.6919 9.29732C35.8382 9.21486 35.9635 9.09116 36.0471 8.94685C36.1306 8.80253 36.1724 8.6376 36.2142 8.45205C36.2351 8.2665 36.256 8.08096 36.256 7.87479V4.80295H38.1779V10.9673H38.1987Z\" fill=\"#386D5D\"/><path d=\"M39.555 4.78798H41.4769V5.77756H41.4978C41.7067 5.40646 41.9574 5.11784 42.229 4.91168C42.5005 4.70551 42.8766 4.62305 43.2944 4.62305C43.3988 4.62305 43.5242 4.62304 43.6286 4.64366C43.7331 4.64366 43.8375 4.66428 43.942 4.68489V6.41667C43.7957 6.37544 43.6704 6.3342 43.545 6.31359C43.4197 6.29297 43.2735 6.27236 43.1272 6.27236C42.7512 6.27236 42.4588 6.31359 42.2499 6.41667C42.041 6.51975 41.8738 6.66407 41.7485 6.84961C41.6232 7.03516 41.5605 7.24133 41.5187 7.50934C41.4769 7.75674 41.4769 8.04536 41.4769 8.35461V10.9317H39.555V4.78798V4.78798Z\" fill=\"#386D5D\"/><path d=\"M48.7892 6.78777C48.6847 6.64345 48.5594 6.54037 48.3922 6.4579C48.2251 6.37544 48.0371 6.3342 47.8491 6.3342C47.3686 6.3342 46.9717 6.47852 46.7002 6.76715C46.4286 7.05578 46.3032 7.42687 46.3032 7.90105C46.3032 8.37523 46.4286 8.74632 46.7002 9.03495C46.9717 9.32358 47.3477 9.4679 47.8491 9.4679C48.058 9.4679 48.246 9.42666 48.3922 9.32358C48.5385 9.2205 48.6847 9.11742 48.7892 8.99372L50.0634 10.3132C49.771 10.6224 49.4159 10.8286 48.9981 10.9523C48.5803 11.076 48.2042 11.1378 47.8282 11.1378C47.3477 11.1378 46.8882 11.0554 46.4704 10.911C46.0526 10.7667 45.6765 10.5399 45.3632 10.2513C45.0498 9.96269 44.7991 9.63283 44.632 9.2205C44.4649 8.80817 44.3605 8.37523 44.3605 7.88043C44.3605 7.38564 44.444 6.9527 44.632 6.54037C44.82 6.14866 45.0498 5.79818 45.3632 5.50955C45.6765 5.22092 46.0526 5.01475 46.4704 4.84982C46.8882 4.70551 47.3477 4.62305 47.8282 4.62305C48.2042 4.62305 48.5803 4.68489 48.9981 4.80859C49.395 4.93229 49.7501 5.13846 50.0634 5.4477L48.7892 6.78777Z\" fill=\"#386D5D\"/><path d=\"M56.687 9.89704C56.3737 10.2888 55.9977 10.5774 55.5172 10.8042C55.0367 11.0103 54.5563 11.1134 54.0549 11.1134C53.5744 11.1134 53.1148 11.0309 52.697 10.8866C52.2792 10.7423 51.9032 10.5155 51.5899 10.2269C51.2765 9.93827 51.0258 9.60841 50.8587 9.19608C50.6916 8.78376 50.5871 8.35081 50.5871 7.85602C50.5871 7.36123 50.6707 6.92828 50.8587 6.51595C51.0467 6.12424 51.2765 5.77376 51.5899 5.48513C51.9032 5.19651 52.2792 4.99035 52.697 4.82541C53.1148 4.6811 53.5744 4.59863 54.0549 4.59863C54.4936 4.59863 54.9114 4.6811 55.2665 4.82541C55.6217 4.96973 55.935 5.19651 56.1857 5.48513C56.4364 5.77376 56.6244 6.10363 56.7706 6.51595C56.9168 6.90767 56.9795 7.36123 56.9795 7.85602V8.45389H52.509C52.5926 8.82499 52.7597 9.11362 53.0104 9.31978C53.2611 9.52595 53.5953 9.64965 53.9713 9.64965C54.2847 9.64965 54.5563 9.5878 54.7652 9.44348C54.9741 9.29917 55.183 9.13424 55.3292 8.90746L56.687 9.89704ZM55.0576 7.17568C55.0576 6.84582 54.9532 6.57781 54.7443 6.35103C54.5145 6.12425 54.2429 6.00054 53.8878 6.00054C53.6789 6.00054 53.4909 6.04178 53.3237 6.10363C53.1566 6.16548 53.0313 6.24794 52.9059 6.37164C52.7806 6.47473 52.697 6.59842 52.6344 6.74274C52.5717 6.88705 52.5299 7.03137 52.5299 7.17568H55.0576V7.17568Z\" fill=\"#386D5D\"/><path d=\"M58.1482 4.78386H60.0074V5.62913H60.0283C60.091 5.50543 60.1745 5.40235 60.279 5.27865C60.3834 5.15495 60.5297 5.05187 60.6759 4.9694C60.8221 4.86632 61.0102 4.80447 61.1982 4.74262C61.3862 4.68077 61.616 4.66016 61.8458 4.66016C62.3262 4.66016 62.7231 4.74262 63.0365 4.88694C63.3289 5.03125 63.5796 5.23742 63.7467 5.50543C63.9139 5.77344 64.0183 6.08269 64.081 6.43317C64.1437 6.78365 64.1645 7.17536 64.1645 7.58769V10.9894H62.2427V7.95878C62.2427 7.77323 62.2427 7.58769 62.2218 7.40214C62.2009 7.21659 62.18 7.03104 62.0964 6.86611C62.0338 6.70118 61.9293 6.57748 61.804 6.4744C61.6786 6.37132 61.4906 6.33009 61.2399 6.33009C60.9893 6.33009 60.7804 6.37132 60.6341 6.45378C60.4879 6.53625 60.3626 6.65994 60.279 6.80426C60.1954 6.94857 60.1537 7.11351 60.1119 7.29906C60.091 7.48461 60.0701 7.67015 60.0701 7.87631V10.9482H58.1482V4.78386Z\" fill=\"#386D5D\"/><path d=\"M69.8062 6.3098H68.1141V8.37144C68.1141 8.53637 68.1141 8.7013 68.135 8.825C68.1559 8.9487 68.1977 9.09301 68.2603 9.19609C68.323 9.29918 68.4066 9.38164 68.5319 9.42288C68.6572 9.48472 68.8244 9.50534 69.0333 9.50534C69.1377 9.50534 69.2631 9.48473 69.4302 9.46411C69.5973 9.44349 69.7226 9.40226 69.8062 9.31979V10.9073C69.5973 10.9897 69.3675 11.031 69.1377 11.0516C68.9079 11.0722 68.6781 11.0928 68.4483 11.0928C68.1141 11.0928 67.8216 11.0516 67.5501 10.9897C67.2785 10.9279 67.0278 10.8042 66.8398 10.6599C66.6309 10.5155 66.4638 10.3094 66.3593 10.0826C66.234 9.85582 66.1922 9.56719 66.1922 9.21671V6.28918H64.9388V4.76357H66.1713V2.92871H68.0932V4.76357H69.7853V6.3098H69.8062Z\" fill=\"#386D5D\"/><path d=\"M74.6922 10.1868H74.6713C74.4624 10.5166 74.1699 10.764 73.8148 10.8877C73.4597 11.032 73.0836 11.0939 72.6867 11.0939C72.3943 11.0939 72.1227 11.0526 71.8511 10.9702C71.5796 10.8877 71.3498 10.764 71.1409 10.5991C70.932 10.4342 70.7648 10.2486 70.6604 10.0012C70.5351 9.77443 70.4724 9.4858 70.4724 9.17655C70.4724 8.82607 70.5351 8.51683 70.6813 8.26943C70.8066 8.02204 70.9946 7.81587 71.2244 7.65094C71.4542 7.48601 71.7049 7.36231 71.9974 7.27985C72.2898 7.19738 72.5823 7.13553 72.8956 7.07369C73.209 7.03245 73.5223 7.01184 73.8357 6.99122C74.149 6.99122 74.4415 6.9706 74.7131 6.9706C74.7131 6.64074 74.5877 6.37273 74.337 6.16657C74.0864 5.9604 73.7939 5.87793 73.4597 5.87793C73.1463 5.87793 72.8539 5.93978 72.5823 6.0841C72.3107 6.20779 72.0809 6.39334 71.872 6.62012L70.8484 5.56869C71.2035 5.23882 71.6213 4.99143 72.1018 4.8265C72.5823 4.66157 73.0836 4.5791 73.585 4.5791C74.149 4.5791 74.6086 4.64095 74.9846 4.78527C75.3398 4.92958 75.6322 5.13574 75.862 5.40376C76.0709 5.67177 76.238 6.00163 76.3216 6.39334C76.4052 6.78505 76.4469 7.23861 76.4469 7.75402V10.8877H74.6713V10.1868H74.6922ZM74.2117 8.26943C74.0655 8.26943 73.8775 8.26943 73.6686 8.29005C73.4597 8.31067 73.2299 8.33128 73.0419 8.39313C72.833 8.45498 72.6658 8.53745 72.5196 8.66114C72.3734 8.78484 72.3107 8.94978 72.3107 9.15594C72.3107 9.38272 72.4152 9.54765 72.6032 9.67135C72.7912 9.77443 73.0001 9.83628 73.2299 9.83628C73.4179 9.83628 73.6059 9.81566 73.773 9.75382C73.9401 9.71258 74.1073 9.63012 74.2326 9.54765C74.3788 9.44457 74.4833 9.34149 74.5668 9.19717C74.6504 9.05286 74.6922 8.88792 74.6922 8.68176V8.26943H74.2117V8.26943Z\" fill=\"#386D5D\"/><path d=\"M84.2398 10.4331C84.2398 11.6082 83.9473 12.4947 83.3415 13.0926C82.7357 13.6905 81.8374 13.9997 80.6258 13.9997C80.0618 13.9997 79.5186 13.9379 78.9755 13.8142C78.4324 13.6905 77.931 13.4431 77.4923 13.0926L78.5577 11.5257C78.8502 11.7731 79.1635 11.9587 79.4977 12.103C79.832 12.2473 80.1871 12.3092 80.584 12.3092C81.169 12.3092 81.6076 12.1648 81.9001 11.8762C82.1717 11.5876 82.3179 11.2371 82.3179 10.7836V10.1857H82.297C82.0672 10.4743 81.7957 10.7011 81.4614 10.8042C81.1272 10.9279 80.8138 10.9897 80.5214 10.9897C80.0618 10.9897 79.644 10.9072 79.268 10.7629C78.8919 10.598 78.5577 10.3918 78.2861 10.1032C78.0145 9.81458 77.8056 9.48472 77.6594 9.093C77.5132 8.70129 77.4505 8.26835 77.4505 7.81479C77.4505 7.40246 77.5132 7.01075 77.6594 6.61904C77.7848 6.22733 77.9728 5.87685 78.2235 5.58822C78.4741 5.29959 78.7666 5.05219 79.1217 4.86664C79.4769 4.6811 79.8738 4.59863 80.3125 4.59863C80.584 4.59863 80.8347 4.61925 81.0645 4.6811C81.2943 4.74295 81.5032 4.82541 81.6703 4.90788C81.8583 5.01096 82.0046 5.11404 82.1299 5.21712C82.2552 5.32021 82.3597 5.44391 82.4432 5.54699H82.4641V4.74294H84.2398V10.4331ZM79.3724 7.8354C79.3724 8.04157 79.4142 8.22712 79.4977 8.41267C79.5813 8.59821 79.6858 8.76314 79.832 8.88684C79.9782 9.03116 80.1453 9.13424 80.3125 9.2167C80.5005 9.29917 80.7094 9.3404 80.9183 9.3404C81.1272 9.3404 81.3361 9.29917 81.5241 9.2167C81.7121 9.13424 81.8792 9.01054 82.0254 8.88684C82.1717 8.74253 82.2761 8.5776 82.3597 8.41267C82.4432 8.22712 82.485 8.04157 82.485 7.8354C82.485 7.62924 82.4432 7.44369 82.3597 7.25815C82.2761 7.0726 82.1717 6.90767 82.0254 6.78397C81.8792 6.63966 81.7121 6.53657 81.5241 6.45411C81.3361 6.37164 81.1272 6.33041 80.9183 6.33041C80.6885 6.33041 80.5005 6.37164 80.3125 6.45411C80.1244 6.53657 79.9573 6.66027 79.832 6.78397C79.6858 6.92829 79.5813 7.09322 79.4977 7.25815C79.4142 7.44369 79.3724 7.62924 79.3724 7.8354Z\" fill=\"#386D5D\"/><path d=\"M91.697 9.89704C91.3837 10.2888 91.0077 10.5774 90.5272 10.8042C90.0467 11.0103 89.5663 11.1134 89.0649 11.1134C88.5844 11.1134 88.1248 11.0309 87.707 10.8866C87.2892 10.7423 86.9132 10.5155 86.5999 10.2269C86.2865 9.93827 86.0358 9.60841 85.8687 9.19608C85.7016 8.78376 85.5971 8.35081 85.5971 7.85602C85.5971 7.36123 85.6807 6.92828 85.8687 6.51595C86.0567 6.12424 86.2865 5.77376 86.5999 5.48513C86.9132 5.19651 87.2892 4.99035 87.707 4.82541C88.1248 4.6811 88.5844 4.59863 89.0649 4.59863C89.5036 4.59863 89.9214 4.6811 90.2765 4.82541C90.6317 4.96973 90.945 5.19651 91.1957 5.48513C91.4464 5.77376 91.6344 6.10363 91.7806 6.51595C91.9268 6.90767 91.9895 7.36123 91.9895 7.85602V8.45389H87.519C87.6026 8.82499 87.7697 9.11362 88.0204 9.31978C88.2711 9.52595 88.6053 9.64965 88.9813 9.64965C89.2947 9.64965 89.5663 9.5878 89.7752 9.44348C89.9841 9.29917 90.193 9.13424 90.3392 8.90746L91.697 9.89704ZM90.0676 7.17568C90.0676 6.84582 89.9632 6.57781 89.7543 6.35103C89.5245 6.12425 89.2529 6.00054 88.8978 6.00054C88.6889 6.00054 88.5009 6.04178 88.3337 6.10363C88.1666 6.16548 88.0413 6.24794 87.9159 6.37164C87.7906 6.47473 87.707 6.59842 87.6444 6.74274C87.5817 6.88705 87.5399 7.03137 87.5399 7.17568H90.0676V7.17568Z\" fill=\"#386D5D\"/><path d=\"M8.03453 5.1709L10.416 7.19131C10.7502 7.47994 11.0427 7.76857 11.2725 8.07781C11.5232 8.38706 11.6903 8.71692 11.7739 9.04678C11.8574 9.37665 11.8783 9.72713 11.7947 10.0776C11.7112 10.4281 11.5023 10.7992 11.168 11.1703C10.8547 11.5414 10.5204 11.8094 10.1653 11.9537C9.83108 12.098 9.47594 12.1599 9.1417 12.1392C8.80746 12.1186 8.45233 11.9949 8.11809 11.8094C7.76296 11.6238 7.42872 11.3971 7.09447 11.1084L6.04997 10.2219L3.89829 12.6959L2.47777 11.5001L8.03453 5.1709ZM7.09447 9.0674L8.03453 9.87144C8.15987 9.97452 8.28521 10.0776 8.43144 10.1395C8.57767 10.2219 8.70301 10.2632 8.84924 10.2838C8.99547 10.3044 9.1417 10.2838 9.28793 10.2425C9.43416 10.2013 9.5595 10.0982 9.70573 9.9539C9.85196 9.78897 9.91463 9.62404 9.93552 9.45911C9.93552 9.29418 9.91464 9.12925 9.85197 8.98493C9.7893 8.84062 9.68484 8.67568 9.53861 8.55199C9.41327 8.40767 9.26704 8.28398 9.1417 8.18089L8.41055 7.5624L7.09447 9.0674Z\" fill=\"#386D5D\"/><path d=\"M3.81341 7.52498L1.43194 5.50458C1.0977 5.21595 0.805237 4.92732 0.575446 4.61808C0.324766 4.30883 0.157645 3.97897 0.0740843 3.6491C-0.00947598 3.31924 -0.0303657 2.96876 0.0531946 2.61828C0.136755 2.26781 0.345656 1.89671 0.679897 1.52562C0.993248 1.15452 1.32749 0.886506 1.68262 0.742191C2.01686 0.597877 2.37199 0.536029 2.70623 0.556645C3.04047 0.577262 3.39561 0.700961 3.72985 0.886509C4.08498 1.07206 4.41922 1.29884 4.75346 1.58746L5.79797 2.47397L7.94964 0L9.37017 1.19575L3.81341 7.52498ZM4.75346 3.6491L3.81341 2.84507C3.68807 2.74198 3.56273 2.6389 3.4165 2.57705C3.27027 2.49458 3.14493 2.45335 2.9987 2.43274C2.85246 2.41212 2.70623 2.43273 2.56 2.47397C2.41377 2.5152 2.28843 2.61829 2.1422 2.7626C1.99597 2.92753 1.9333 3.09246 1.91241 3.25739C1.91241 3.42233 1.9333 3.58725 1.99597 3.73157C2.05864 3.87588 2.16309 4.04082 2.30932 4.16451C2.43466 4.30883 2.58089 4.43252 2.70623 4.53561L3.43739 5.1541L4.75346 3.6491Z\" fill=\"#386D5D\"/></svg>\n <% } %>\n </div></div>\n <% } %>\n </div>`;\n\n logo = `<div class=\"logo-placeholder\">\n <% if (logoUrl) { %><img src=\"<%= logoUrl %>\" alt=\"logo\" /><% } %>\n </div>`;\n\n company = `<div>\n <% if (name) { %><p><%= name %><p><% } %>\n <% if (number || street) {%><p><%}%><% if (number) { %><%= number + ' ' %><% } if (street) { %><%= street %><% } if (number || street) { %><% } %><% if (number || street) {%></p><%}%>\n <% if (zipCode || city) {%><p><%}%><% if (zipCode) { %><%= zipCode + ' ' %><% } if (city) { %><%= city %><% } if (zipCode || city) { %></p><% } %>\n </div>\n <% if (phoneContact) { %><p><%= phoneContact %><p><% } %>\n <% if (settings && settings.mailContact) { %><p><%= settings.mailContact %></p><% } %>`;\n\n products = `<table class=\"full-width commercial-table-preview\">\n <thead>\n <tr>\n <td>Article</td>\n <td>Quantité</td>\n <td>P.U <%= disableVat !== true ? 'HT' : ''%></td>\n <% if (shouldDisplayDiscountColumn) { %><td>Remise</td><% } %>\n <% if (disableVat !== true) { %><td>TVA</td><% } %>\n <td>Montant <%= disableVat !== true ? 'HT' : ''%></td>\n </tr>\n </thead>\n <% if (idEstimateInvoiceType === ${EstimateInvoiceType.ACOMPTE}) { %>\n <tr>\n <td class=\"product-title\">\n <%= title %>\n </td>\n <td class=\"product-quantity\">1</td>\n <td class=\"product-price-without-vat\"><%= depositFormatted %>€</td>\n <td class=\"product-total-price-without-vat\"><%= depositFormatted %>€</td>\n </tr>\n <% } %>\n <% if (products) { %>\n <% products.forEach(function (product) { %>\n <tr>\n <td class=\"product-title\">\n <% if(product.itemSaleName) { %><p class=\"product-name\"><%= product.itemSaleName %></p><% } %>\n <% if(product.comment) { %><p class=\"product-description\"><%- product.comment %></p><% } %>\n </td>\n <td class=\"product-quantity\"><%= product.quantity ? product.quantity : '' %> <%= product.unitFormatted ? product.unitFormatted : '' %></td>\n <td class=\"product-price-without-vat\"><% if(product.priceTaxExcludedFormatted) { %><%= product.priceTaxExcludedFormatted + '€' %><% } %></td>\n <% if (shouldDisplayDiscountColumn) { %>\n <td class=\"product-discount\">\n <% if (product.discountFormatted) { %> \n <p style=\"margin-bottom: 0px;\"><%= product.discountFormatted %>€</p>\n <% if(product.discountType === ${DiscountType.PERCENT}) { %><span class=\"discount-percent\">(<%= product.discountTypeFormatted %>)</span><% } %>\n <% } %>\n </td>\n <% } %>\n <% if(disableVat !== true) { %><td class=\"product-vat\"><% if(product.vatFormatted) { %><%= product.vatFormatted %><% } %></td><% } %>\n <td class=\"product-total-price-without-vat\"><% if(product.totalTaxExcludedFormatted) { %><%= product.totalTaxExcludedFormatted + '€' %><% } %></td>\n </tr>\n <% }) %>\n <% } %>\n</table>`;\n\n vatRecapitulation = `<table style=\"width: 85%; page-break-inside: avoid !important;\" class=\"commercial-table-preview\">\n <thead>\n <tr>\n <td>Base</td>\n <td>Taux</td>\n <td>Montant TVA</td>\n </tr>\n </thead>\n <% vats.forEach(function (vat) { %>\n <tr class=\"vat-detail-row\">\n <td><%= vat.baseFormatted %>€</td>\n <td><%= vat.name %></td>\n <td><%= vat.amountFormatted %>€</td>\n </tr>\n <% }) %>\n </table>`;\n\n amountRecapitulation = `<table class=\"summary-prices commercial-table-preview\" style=\"width: 250px; padding-left: 10px; page-break-inside: avoid !important;\">\n <thead>\n <tr>\n <td colspan=\"2\">Récapitulatif</td>\n </tr>\n </thead>\n <% if (idEstimateInvoiceType !== ${EstimateInvoiceType.ACOMPTE}) { %>\n <% if (disableVat !== true) { %>\n <tr>\n <td>Total HT</td>\n <td><%= totalTaxExcludedFormatted %>€</td>\n </tr>\n <% } %>\n <% if (generalDiscountFormatted) { %>\n <tr>\n <td>Remise</td>\n <td><%= generalDiscountFormatted %>€</td>\n </tr>\n <% } %>\n <% if (disableVat !== true) { %>\n <tr>\n <td>TVA</td>\n <td><%= totalVatAmountFormatted %>€</td>\n </tr>\n <% } %>\n <% if (disableVat !== true || generalDiscountFormatted || depositFormatted) { %>\n <tr>\n <td>Total <%= disableVat !== true ? 'TTC' : ''%></td>\n <td><%= totalTaxIncludedFormatted %>€</td>\n </tr>\n <% } else if (disableVat === true && ![${EstimateInvoiceType.FACTURE}, ${EstimateInvoiceType.RESTE}, ${EstimateInvoiceType.ACOMPTE}].includes(idEstimateInvoiceType)) { %>\n <tr>\n <td>Total</td>\n <td><%= totalTaxIncludedFormatted %>€</td>\n </tr>\n <% } %>\n <% if (depositFormatted) { %>\n <tr>\n <td>Acompte</td>\n <td><%= depositFormatted %>€</td>\n </tr>\n <% } %>\n <% } %>\n <% if ([${EstimateInvoiceType.FACTURE}, ${EstimateInvoiceType.RESTE}, ${EstimateInvoiceType.ACOMPTE}].includes(idEstimateInvoiceType)) { %>\n <tr>\n <td><b><%= depositFormatted ? 'Reste à payer' : 'Net à payer' %></b></td>\n <td><%= totalTaxAndDiscountIncludedFormatted %>€</td>\n </tr>\n <% } %>\n</table>`;\n\n paymentButton = `<a style=\"page-break-inside: avoid !important\" class=\"payment-button\" href=\"<% if (paymentLink) {%><%= paymentLink %><% } else {%>#<%}%>\">Payer en ligne <svg width=\"81\" height=\"17\" viewBox=\"0 0 81 17\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M23.6521 1H2.21213C1.5052 1 0.932129 1.57308 0.932129 2.28V14.792C0.932129 15.4989 1.5052 16.072 2.21213 16.072H23.6521C24.3591 16.072 24.9321 15.4989 24.9321 14.792V2.28C24.9321 1.57308 24.3591 1 23.6521 1Z\" fill=\"black\"/>\n <path d=\"M14.9716 5.02051H10.3726V12.5219H14.9716V5.02051Z\" fill=\"#FF5F00\"/>\n <path d=\"M10.8366 8.77127C10.8369 7.30928 11.5058 5.92768 12.6523 5.02055C10.6962 3.48259 7.88661 3.70615 6.19833 5.53409C4.51006 7.36203 4.51006 10.1805 6.19833 12.0085C7.88661 13.8364 10.6962 14.06 12.6523 12.522C11.5058 11.6149 10.8369 10.2333 10.8366 8.77127Z\" fill=\"#EB001B\"/>\n <path d=\"M20.3795 8.77136C20.3808 10.5969 19.3394 12.2628 17.6977 13.0612C16.0561 13.8596 14.1027 13.6502 12.6675 12.5221C13.8143 11.6152 14.4832 10.2334 14.4832 8.77136C14.4832 7.30928 13.8143 5.92754 12.6675 5.02064C14.1027 3.8925 16.0561 3.68315 17.6977 4.48156C19.3394 5.27997 20.3808 6.94586 20.3795 8.77136Z\" fill=\"#F79E1B\"/>\n <path d=\"M30.1321 1.25H51.1321C51.6568 1.25 52.0821 1.67534 52.0821 2.2V14.8C52.0821 15.3247 51.6568 15.75 51.1321 15.75H30.1321C29.6075 15.75 29.1821 15.3247 29.1821 14.8V2.2C29.1821 1.67534 29.6075 1.25 30.1321 1.25Z\" fill=\"white\" stroke=\"#EDEDED\" stroke-width=\"0.5\"/>\n <path d=\"M37.7276 11.4621L38.7284 5.5893H40.3292L39.3277 11.4621H37.7276ZM45.1109 5.7159C44.7938 5.59692 44.2968 5.46924 43.6762 5.46924C42.0945 5.46924 40.9803 6.26574 40.9708 7.40733C40.9618 8.25123 41.7662 8.72199 42.3734 9.00291C42.9965 9.29076 43.2059 9.47433 43.203 9.7314C43.1991 10.125 42.7054 10.3049 42.2453 10.3049C41.6046 10.3049 41.2642 10.2159 40.7385 9.9966L40.5322 9.9033L40.3076 11.218C40.6815 11.3819 41.3729 11.5239 42.0907 11.5313C43.7734 11.5313 44.8657 10.7439 44.8782 9.52482C44.8842 8.85675 44.4577 8.34834 43.5342 7.92918C42.9747 7.65753 42.632 7.47621 42.6356 7.20114C42.6356 6.95703 42.9257 6.69597 43.5523 6.69597C44.0758 6.68787 44.455 6.80202 44.7505 6.92097L44.8939 6.98877L45.1109 5.7159M49.2302 5.58921H47.9932C47.61 5.58921 47.3233 5.69382 47.155 6.07623L44.7777 11.4582H46.4586C46.4586 11.4582 46.7334 10.7345 46.7955 10.5757C46.9793 10.5757 48.6122 10.5782 48.8457 10.5782C48.8936 10.7838 49.0404 11.4582 49.0404 11.4582H50.5258L49.2302 5.58903V5.58921ZM47.2676 9.38151C47.4 9.04314 47.9054 7.73982 47.9054 7.73982C47.8959 7.75548 48.0368 7.3998 48.1176 7.1793L48.2258 7.68567C48.2258 7.68567 48.5324 9.08754 48.5964 9.38151H47.2676ZM36.3686 5.58921L34.8014 9.59421L34.6344 8.78031C34.3427 7.84212 33.4337 6.82566 32.4175 6.31677L33.8505 11.4528L35.5441 11.4508L38.0643 5.58915H36.3686\" fill=\"#171E6C\"/>\n <path d=\"M33.3395 5.58874H30.7582L30.7378 5.71093C32.7459 6.19705 34.0747 7.37182 34.6264 8.78323L34.0651 6.08443C33.9682 5.71258 33.6872 5.60161 33.3395 5.58862\" fill=\"#171E6C\"/>\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M78.6129 1C77.4206 1 64.7971 1 57.7475 1C57.1513 1 56.5552 1.6 56.5552 2.2V14.2C56.5552 15.4 57.1513 16 58.3436 16C64.9942 16 77.4206 16 78.6129 16C79.8052 16 80.4013 15.4 80.4013 14.2V2.8C80.4013 1.6 79.8052 1 78.6129 1Z\" fill=\"#306FC5\"/>\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M58.496 7.17857L58.0342 6.04592L57.575 7.17857H58.496ZM68.6703 6.72755C68.5775 6.7842 68.4679 6.78608 68.3365 6.78608H67.5168V6.15502H68.3476C68.4652 6.15502 68.5879 6.16033 68.6676 6.20626C68.7552 6.24765 68.8093 6.33575 68.8093 6.45744C68.8093 6.58161 68.7578 6.68153 68.6703 6.72755C68.7578 6.68153 68.6703 6.72755 68.6703 6.72755ZM74.518 7.17857L74.0511 6.04592L73.5867 7.17857H74.518ZM63.6175 8.40455H62.9257L62.9232 6.17935L61.9448 8.40455H61.3523L60.3713 6.17738V8.40455H58.9989L58.7396 7.77082H57.3347L57.0728 8.40455H56.3399L57.5483 5.56337H58.5508L59.6984 8.25338V5.56337H60.7997L61.6828 7.49077L62.494 5.56337H63.6174V8.40455H63.6175ZM66.3744 8.40455H64.1203V5.56337H66.3744V6.15502H64.7951V6.66714H66.3366V7.24953H64.7951V7.81693H66.3744V8.40455ZM69.5526 6.32855C69.5526 6.78154 69.2522 7.01558 69.0772 7.08585C69.2248 7.14241 69.3509 7.24233 69.411 7.32512C69.5062 7.46643 69.5227 7.59266 69.5227 7.84641V8.40455H68.8421L68.8395 8.04625C68.8395 7.87529 68.8558 7.62942 68.733 7.49274C68.6344 7.39282 68.4841 7.37113 68.2412 7.37113H67.5169V8.40455H66.8422V5.56337H68.3941C68.739 5.56337 68.9931 5.57254 69.2112 5.69945C69.4247 5.82637 69.5526 6.01165 69.5526 6.32855C69.5526 6.01165 69.5526 6.32855 69.5526 6.32855ZM70.6325 8.40455H69.944V5.56337H70.6325V8.40455ZM78.62 8.40455H77.6638L76.3848 6.27208V8.40455H75.0106L74.748 7.77082H73.3463L73.0915 8.40455H72.302C71.974 8.40455 71.5587 8.33153 71.3235 8.0903C71.0864 7.84906 70.963 7.5223 70.963 7.00564C70.963 6.58427 71.0368 6.19906 71.3268 5.89467C71.5449 5.66792 71.8865 5.56337 72.3515 5.56337H73.0048V6.17216H72.3652C72.119 6.17216 71.9799 6.209 71.846 6.34046C71.731 6.4601 71.652 6.68625 71.652 6.98404C71.652 7.28844 71.7121 7.50791 71.8376 7.65128C71.9414 7.76371 72.1302 7.79782 72.3078 7.79782H72.6109L73.5619 5.56345H74.5729L75.7153 8.25081V5.56345H76.7427L77.9288 7.54218V5.56345H78.62V8.40455ZM56.3321 8.9626H57.485L57.745 8.33153H58.3269L58.5862 8.9626H60.8546V8.48013L61.0571 8.96466H62.2347L62.4372 8.47293V8.9626H68.0746L68.0719 7.9267H68.181C68.2574 7.92936 68.2797 7.93647 68.2797 8.06339V8.9626H71.1954V8.72145C71.4306 8.84828 71.7964 8.9626 72.2777 8.9626H73.5043L73.7668 8.33153H74.3488L74.6055 8.9626H76.9693V8.36316L77.3273 8.9626H79.2214V5H77.3468V5.46799L77.0843 5H75.1608V5.46799L74.9197 5H72.3215C71.8865 5 71.5042 5.0611 71.1954 5.23138V5H69.4024V5.23138C69.2058 5.05587 68.9381 5 68.6403 5H62.0897L61.6501 6.02347L61.1988 5H59.1355V5.46799L58.9088 5H57.1492L56.332 6.88404V8.9626H56.3321ZM80.3331 11.0548H79.1033C78.9806 11.0548 78.899 11.0594 78.8303 11.1061C78.7591 11.1521 78.7317 11.2204 78.7317 11.3106C78.7317 11.4178 78.7918 11.4907 78.8792 11.5223C78.9504 11.5472 79.0269 11.5545 79.1393 11.5545L79.505 11.5643C79.874 11.5735 80.1203 11.6374 80.2705 11.7931C80.2979 11.8148 80.3143 11.8391 80.3331 11.8634V11.0548ZM80.3331 12.9284C80.1692 13.1696 79.8498 13.2919 79.4174 13.2919H78.1144V12.6825H79.4122C79.5409 12.6825 79.631 12.6655 79.6852 12.6122C79.7322 12.5682 79.765 12.5043 79.765 12.4268C79.765 12.344 79.7322 12.2783 79.6826 12.2389C79.6336 12.1955 79.5624 12.1758 79.4449 12.1758C78.8113 12.1541 78.0209 12.1955 78.0209 11.2962C78.0209 10.884 78.2809 10.4501 78.989 10.4501H80.333V9.8847H79.0843C78.7074 9.8847 78.4337 9.97553 78.2398 10.1168V9.8847H76.3927C76.0973 9.8847 75.7506 9.95839 75.5866 10.1168V9.8847H72.2882V10.1168C72.0257 9.92617 71.5827 9.8847 71.3783 9.8847H69.2026V10.1168C68.9949 9.91435 68.5331 9.8847 68.2516 9.8847H65.8166L65.2594 10.4916L64.7376 9.8847H61.1003V13.85H64.6691L65.2433 13.2335L65.7841 13.85L67.984 13.852V12.9192H68.2003C68.4921 12.9237 68.8364 12.9119 69.1401 12.7798V13.85H70.9546V12.8165H71.0421C71.1538 12.8165 71.1648 12.8211 71.1648 12.9334V13.8499H76.6769C77.0269 13.8499 77.3926 13.7597 77.5952 13.5961V13.8499H79.3436C79.7075 13.8499 80.0628 13.7985 80.3331 13.6671V12.9284ZM77.6415 11.7931C77.7729 11.9299 77.8433 12.1027 77.8433 12.3952C77.8433 13.0065 77.4638 13.2919 76.7833 13.2919H75.4691V12.6825H76.7781C76.906 12.6825 76.9968 12.6655 77.0537 12.6122C77.1001 12.5682 77.1334 12.5043 77.1334 12.4268C77.1334 12.344 77.0974 12.2783 77.051 12.2389C76.9994 12.1955 76.9283 12.1758 76.8108 12.1758C76.1797 12.1541 75.3895 12.1955 75.3895 11.2962C75.3895 10.884 75.6468 10.4501 76.3542 10.4501H77.7069V11.055H76.4691C76.3464 11.055 76.2667 11.0596 76.1988 11.1063C76.1249 11.1523 76.0975 11.2206 76.0975 11.3108C76.0975 11.418 76.1602 11.4909 76.2451 11.5224C76.3163 11.5474 76.3928 11.5547 76.5077 11.5547L76.871 11.5645C77.2373 11.5735 77.4887 11.6373 77.6415 11.7931C77.4887 11.6373 77.6415 11.7931 77.6415 11.7931ZM71.5528 11.6176C71.4626 11.6715 71.351 11.6761 71.2197 11.6761H70.3999V11.0378H71.2308C71.351 11.0378 71.4712 11.0404 71.5528 11.0892C71.6403 11.1352 71.6926 11.2232 71.6926 11.3448C71.6926 11.4664 71.6403 11.5643 71.5528 11.6176C71.6403 11.5643 71.5528 11.6176 71.5528 11.6176ZM71.9604 11.9712C72.1106 12.027 72.2333 12.127 72.2909 12.2098C72.3862 12.3486 72.4 12.478 72.4027 12.7285V13.2919H71.7253V12.9363C71.7253 12.7654 71.7416 12.5122 71.6162 12.3801C71.5176 12.2783 71.3673 12.2539 71.1211 12.2539H70.4V13.2919H69.722V10.45H71.2799C71.6215 10.45 71.8703 10.4652 72.0917 10.5841C72.3047 10.7136 72.4386 10.891 72.4386 11.2152C72.4385 11.6688 72.138 11.9003 71.9604 11.9712C72.138 11.9003 71.9604 11.9712 71.9604 11.9712ZM72.8128 10.45H75.0648V11.0377H73.4847V11.5544H75.0262V12.1342H73.4847V12.6997L75.0648 12.7022V13.2919H72.8128V10.45ZM68.2602 11.7615H67.3882V11.0378H68.268C68.5116 11.0378 68.6807 11.1377 68.6807 11.3863C68.6807 11.632 68.5195 11.7615 68.2602 11.7615ZM66.7161 13.0334L65.6802 11.8759L66.7161 10.755V13.0334ZM64.0407 12.6997H62.3817V12.1342H63.8631V11.5544H62.3817V11.0377H64.0734L64.8115 11.8659L64.0407 12.6997ZM69.4052 11.3863C69.4052 12.1757 68.82 12.3387 68.2301 12.3387H67.3882V13.2919H66.0767L65.2458 12.3511L64.3823 13.2919H61.7096V10.45H64.4235L65.2537 11.3816L66.1119 10.45H68.268C68.8035 10.45 69.4052 10.5992 69.4052 11.3863C69.4052 10.5992 69.4052 11.3863 69.4052 11.3863Z\" fill=\"white\"/>\n </svg></a>`;\n\n style = `\n <% if (font.id === ${FontIds.CIRCULAR_STD}) { %>\n @font-face{font-family:circular std;font-style:normal;font-weight:450;src:local('Circular Std'),url(https://fonts.cdnfonts.com/s/15011/CircularStd-Book.woff) format('woff')}@font-face{font-family:circular std;font-style:italic;font-weight:450;src:local('Circular Std'),url(https://fonts.cdnfonts.com/s/15011/CircularStd-BookItalic.woff) format('woff')}@font-face{font-family:circular std;font-style:normal;font-weight:500;src:local('Circular Std'),url(https://fonts.cdnfonts.com/s/15011/CircularStd-Medium.woff) format('woff')}@font-face{font-family:circular std;font-style:italic;font-weight:500;src:local('Circular Std'),url(https://fonts.cdnfonts.com/s/15011/CircularStd-MediumItalic.woff) format('woff')}@font-face{font-family:circular std;font-style:normal;font-weight:700;src:local('Circular Std'),url(https://fonts.cdnfonts.com/s/15011/CircularStd-Bold.woff) format('woff')}@font-face{font-family:circular std;font-style:italic;font-weight:700;src:local('Circular Std'),url(https://fonts.cdnfonts.com/s/15011/CircularStd-BoldItalic.woff) format('woff')}@font-face{font-family:circular std;font-style:normal;font-weight:900;src:local('Circular Std'),url(https://fonts.cdnfonts.com/s/15011/CircularStd-Black.woff) format('woff')}@font-face{font-family:circular std;font-style:italic;font-weight:900;src:local('Circular Std'),url(https://fonts.cdnfonts.com/s/15011/CircularStd-BlackItalic.woff) format('woff')}\n <% } else if (font.id === ${FontIds.ROBOTO}) { %>\n @font-face{font-family:roboto;font-style:normal;font-weight:400;src:local('Roboto'),url(https://fonts.cdnfonts.com/s/12165/Roboto-Regular.woff) format('woff')}@font-face{font-family:roboto;font-style:italic;font-weight:400;src:local('Roboto'),url(https://fonts.cdnfonts.com/s/12165/Roboto-Italic.woff) format('woff')}@font-face{font-family:roboto;font-style:normal;font-weight:700;src:local('Roboto'),url(https://fonts.cdnfonts.com/s/12165/Roboto-Bold.woff) format('woff')}@font-face{font-family:roboto;font-style:italic;font-weight:700;src:local('Roboto'),url(https://fonts.cdnfonts.com/s/12165/Roboto-BoldItalic.woff) format('woff')}@font-face{font-family:roboto thin;font-style:normal;font-weight:250;src:local('Roboto Thin'),url(https://fonts.cdnfonts.com/s/12165/Roboto-Thin.woff) format('woff')}@font-face{font-family:roboto thin;font-style:italic;font-weight:250;src:local('Roboto Thin'),url(https://fonts.cdnfonts.com/s/12165/Roboto-ThinItalic.woff) format('woff')}@font-face{font-family:roboto light;font-style:normal;font-weight:300;src:local('Roboto Light'),url(https://fonts.cdnfonts.com/s/12165/Roboto-Light.woff) format('woff')}@font-face{font-family:roboto light;font-style:italic;font-weight:300;src:local('Roboto Light'),url(https://fonts.cdnfonts.com/s/12165/Roboto-LightItalic.woff) format('woff')}@font-face{font-family:roboto medium;font-style:normal;font-weight:500;src:local('Roboto Medium'),url(https://fonts.cdnfonts.com/s/12165/Roboto-Medium.woff) format('woff')}@font-face{font-family:roboto medium;font-style:italic;font-weight:500;src:local('Roboto Medium'),url(https://fonts.cdnfonts.com/s/12165/Roboto-MediumItalic.woff) format('woff')}@font-face{font-family:roboto black;font-style:normal;font-weight:900;src:local('Roboto Black'),url(https://fonts.cdnfonts.com/s/12165/Roboto-Black.woff) format('woff')}@font-face{font-family:roboto black;font-style:italic;font-weight:900;src:local('Roboto Black'),url(https://fonts.cdnfonts.com/s/12165/Roboto-BlackItalic.woff) format('woff')}\n <% } else if (font.id === ${FontIds.POPPINS}) { %>\n @font-face{font-family:poppins;font-style:normal;font-weight:400;src:local('Poppins'),url(https://fonts.cdnfonts.com/s/16009/Poppins-Regular.woff) format('woff')}@font-face{font-family:poppins;font-style:italic;font-weight:400;src:local('Poppins'),url(https://fonts.cdnfonts.com/s/16009/Poppins-Italic.woff) format('woff')}@font-face{font-family:poppins;font-style:normal;font-weight:250;src:local('Poppins'),url(https://fonts.cdnfonts.com/s/16009/Poppins-Thin.woff) format('woff')}@font-face{font-family:poppins;font-style:italic;font-weight:250;src:local('Poppins'),url(https://fonts.cdnfonts.com/s/16009/Poppins-ThinItalic.woff) format('woff')}@font-face{font-family:poppins;font-style:normal;font-weight:275;src:local('Poppins'),url(https://fonts.cdnfonts.com/s/16009/Poppins-ExtraLight.woff) format('woff')}@font-face{font-family:poppins;font-style:italic;font-weight:275;src:local('Poppins'),url(https://fonts.cdnfonts.com/s/16009/Poppins-ExtraLightItalic.woff) format('woff')}@font-face{font-family:poppins;font-style:normal;font-weight:300;src:local('Poppins'),url(https://fonts.cdnfonts.com/s/16009/Poppins-Light.woff) format('woff')}@font-face{font-family:poppins;font-style:italic;font-weight:300;src:local('Poppins'),url(https://fonts.cdnfonts.com/s/16009/Poppins-LightItalic.woff) format('woff')}@font-face{font-family:poppins;font-style:normal;font-weight:500;src:local('Poppins'),url(https://fonts.cdnfonts.com/s/16009/Poppins-Medium.woff) format('woff')}@font-face{font-family:poppins;font-style:italic;font-weight:500;src:local('Poppins'),url(https://fonts.cdnfonts.com/s/16009/Poppins-MediumItalic.woff) format('woff')}@font-face{font-family:poppins;font-style:normal;font-weight:600;src:local('Poppins'),url(https://fonts.cdnfonts.com/s/16009/Poppins-SemiBold.woff) format('woff')}@font-face{font-family:poppins;font-style:italic;font-weight:600;src:local('Poppins'),url(https://fonts.cdnfonts.com/s/16009/Poppins-SemiBoldItalic.woff) format('woff')}@font-face{font-family:poppins;font-style:normal;font-weight:700;src:local('Poppins'),url(https://fonts.cdnfonts.com/s/16009/Poppins-Bold.woff) format('woff')}@font-face{font-family:poppins;font-style:italic;font-weight:700;src:local('Poppins'),url(https://fonts.cdnfonts.com/s/16009/Poppins-BoldItalic.woff) format('woff')}@font-face{font-family:poppins;font-style:normal;font-weight:800;src:local('Poppins'),url(https://fonts.cdnfonts.com/s/16009/Poppins-ExtraBold.woff) format('woff')}@font-face{font-family:poppins;font-style:italic;font-weight:800;src:local('Poppins'),url(https://fonts.cdnfonts.com/s/16009/Poppins-ExtraBoldItalic.woff) format('woff')}@font-face{font-family:poppins;font-style:normal;font-weight:900;src:local('Poppins'),url(https://fonts.cdnfonts.com/s/16009/Poppins-Black.woff) format('woff')}@font-face{font-family:poppins;font-style:italic;font-weight:900;src:local('Poppins'),url(https://fonts.cdnfonts.com/s/16009/Poppins-BlackItalic.woff) format('woff')}\n <% } else if (font.id === ${FontIds.RALEWAY}) { %>\n @font-face{font-family:raleway;font-style:normal;font-weight:400;src:local('Raleway'),url(https://fonts.cdnfonts.com/s/18954/Raleway-Regular.woff) format('woff')}@font-face{font-family:raleway;font-style:normal;font-weight:400;src:local('Raleway'),url(https://fonts.cdnfonts.com/s/18954/Raleway-Regular.woff) format('woff')}@font-face{font-family:raleway;font-style:italic;font-weight:400;src:local('Raleway'),url(https://fonts.cdnfonts.com/s/18954/Raleway-Italic.woff) format('woff')}@font-face{font-family:raleway;font-style:normal;font-weight:250;src:local('Raleway'),url(https://fonts.cdnfonts.com/s/18954/Raleway-Thin.woff) format('woff')}@font-face{font-family:raleway;font-style:italic;font-weight:250;src:local('Raleway'),url(https://fonts.cdnfonts.com/s/18954/Raleway-ThinItalic.woff) format('woff')}@font-face{font-family:raleway;font-style:normal;font-weight:275;src:local('Raleway'),url(https://fonts.cdnfonts.com/s/18954/Raleway-ExtraLight.woff) format('woff')}@font-face{font-family:raleway;font-style:italic;font-weight:275;src:local('Raleway'),url(https://fonts.cdnfonts.com/s/18954/Raleway-ExtraLightItalic.woff) format('woff')}@font-face{font-family:raleway;font-style:normal;font-weight:300;src:local('Raleway'),url(https://fonts.cdnfonts.com/s/18954/Raleway-Light.woff) format('woff')}@font-face{font-family:raleway;font-style:italic;font-weight:300;src:local('Raleway'),url(https://fonts.cdnfonts.com/s/18954/Raleway-LightItalic.woff) format('woff')}@font-face{font-family:raleway;font-style:normal;font-weight:500;src:local('Raleway'),url(https://fonts.cdnfonts.com/s/18954/Raleway-Medium.woff) format('woff')}@font-face{font-family:raleway;font-style:italic;font-weight:500;src:local('Raleway'),url(https://fonts.cdnfonts.com/s/18954/Raleway-MediumItalic.woff) format('woff')}@font-face{font-family:raleway;font-style:normal;font-weight:600;src:local('Raleway'),url(https://fonts.cdnfonts.com/s/18954/Raleway-SemiBold.woff) format('woff')}@font-face{font-family:raleway;font-style:italic;font-weight:600;src:local('Raleway'),url(https://fonts.cdnfonts.com/s/18954/Raleway-SemiBoldItalic.woff) format('woff')}@font-face{font-family:raleway;font-style:normal;font-weight:700;src:local('Raleway'),url(https://fonts.cdnfonts.com/s/18954/Raleway-Bold.woff) format('woff')}@font-face{font-family:raleway;font-style:italic;font-weight:700;src:local('Raleway'),url(https://fonts.cdnfonts.com/s/18954/Raleway-BoldItalic.woff) format('woff')}@font-face{font-family:raleway;font-style:normal;font-weight:800;src:local('Raleway'),url(https://fonts.cdnfonts.com/s/18954/Raleway-ExtraBold.woff) format('woff')}@font-face{font-family:raleway;font-style:italic;font-weight:800;src:local('Raleway'),url(https://fonts.cdnfonts.com/s/18954/Raleway-ExtraBoldItalic.woff) format('woff')}@font-face{font-family:raleway;font-style:normal;font-weight:900;src:local('Raleway'),url(https://fonts.cdnfonts.com/s/18954/Raleway-Black.woff) format('woff')}@font-face{font-family:raleway;font-style:italic;font-weight:900;src:local('Raleway'),url(https://fonts.cdnfonts.com/s/18954/Raleway-BlackItalic.woff) format('woff')}\n <% } else if (font.id === ${FontIds.ZILLA}) { %>\n @font-face {\n font-family: 'Zilla Slab';\n font-style: normal;\n font-weight: 400;\n src: local('Zilla Slab'), url('https://fonts.cdnfonts.com/s/15572/ZillaSlab-Regular.woff') format('woff');\n }\n @font-face {\n font-family: 'Zilla Slab';\n font-style: italic;\n font-weight: 400;\n src: local('Zilla Slab'), url('https://fonts.cdnfonts.com/s/15572/ZillaSlab-Italic.woff') format('woff');\n }\n @font-face {\n font-family: 'Zilla Slab';\n font-style: normal;\n font-weight: 300;\n src: local('Zilla Slab'), url('https://fonts.cdnfonts.com/s/15572/ZillaSlab-Light.woff') format('woff');\n }\n @font-face {\n font-family: 'Zilla Slab';\n font-style: italic;\n font-weight: 300;\n src: local('Zilla Slab'), url('https://fonts.cdnfonts.com/s/15572/ZillaSlab-LightItalic.woff') format('woff');\n }\n @font-face {\n font-family: 'Zilla Slab';\n font-style: normal;\n font-weight: 500;\n src: local('Zilla Slab'), url('https://fonts.cdnfonts.com/s/15572/ZillaSlab-Medium.woff') format('woff');\n }\n @font-face {\n font-family: 'Zilla Slab';\n font-style: italic;\n font-weight: 500;\n src: local('Zilla Slab'), url('https://fonts.cdnfonts.com/s/15572/ZillaSlab-MediumItalic.woff') format('woff');\n }\n @font-face {\n font-family: 'Zilla Slab';\n font-style: normal;\n font-weight: 600;\n src: local('Zilla Slab'), url('https://fonts.cdnfonts.com/s/15572/ZillaSlab-SemiBold.woff') format('woff');\n }\n @font-face {\n font-family: 'Zilla Slab';\n font-style: italic;\n font-weight: 600;\n src: local('Zilla Slab'), url('https://fonts.cdnfonts.com/s/15572/ZillaSlab-SemiBoldItalic.woff') format('woff');\n }\n @font-face {\n font-family: 'Zilla Slab';\n font-style: normal;\n font-weight: 700;\n src: local('Zilla Slab'), url('https://fonts.cdnfonts.com/s/15572/ZillaSlab-Bold.woff') format('woff');\n }\n @font-face {\n font-family: 'Zilla Slab';\n font-style: italic;\n font-weight: 700;\n src: local('Zilla Slab'), url('https://fonts.cdnfonts.com/s/15572/ZillaSlab-BoldItalic.woff') format('woff');\n } \n <% } %>\n\n .pdf-content { padding: 0; margin: 0px; }\n .pdf-content body { width: 100%; margin: 0px; font-family: \"<%= font.name %>\"; font-size: 12px !important; font-weight: normal; }\n .pdf-content .row { display: flex; }\n .pdf-content .items-end { align-items: end; }\n .pdf-content .space-between { justify-content: space-between; }\n .pdf-content .full-width { width: 100% }\n .pdf-content .mt-30 { margin-top: 30px }\n .pdf-content .mt-25 { margin-top: 25px }\n .pdf-content .mt-20 { margin-top: 20px }\n .pdf-content .mt-10 { margin-top: 10px }\n .pdf-content .align-center { text-align: center; }\n .pdf-content .margin-auto { margin: auto; }\n .pdf-content .justify-center { justify-content: center; }\n .pdf-content table { font-size: 12px; font-style: normal; }\n\n /* Header */\n .pdf-content .society-informations p { margin: 0px; }\n .pdf-content .society-informations > div p { font-weight: bold; }\n .pdf-content .logo-placeholder { width: 300px; max-height: 150px;text-align: <%= settings && settings.logoAlignment === 'left' ? 'left' : 'right' %>; margin-bottom: <%= settings && settings.logoAlignment === 'left' ? '10px;' : '0px' %>}\n .pdf-content .logo-placeholder > svg, .pdf-content .logo-placeholder > img { max-width: 100%; max-height: 150px; }\n .pdf-content .document-reference { font-size: 20px !important; }\n .pdf-content .customer-border { border: 2px solid #EAEAEA; border-radius: 6px; padding: 7px; }\n\n /* Body */\n .pdf-content table.commercial-table-preview { border-spacing: 1px; border-collapse: collapse; }\n .pdf-content table.commercial-table-preview, .pdf-content th, .pdf-content td { border: 1px solid #DADCDF; }\n .pdf-content table.commercial-table-preview tr td p { margin: 0px; }\n .pdf-content table.commercial-table-preview tbody tr td { padding: 7px; background-color: white; vertical-align: baseline;}\n .pdf-content table.commercial-table-preview thead tr td { background-color: <%= settings && settings.color ? settings.color : '#EAEAEA' %>; color: <%= settings && settings.fontColor ? settings.fontColor : '#000000' %> !important; padding: 7px; }\n .pdf-content table.commercial-table-preview thead tr td:not(:first-child) { text-align: right; }\n .pdf-content table.commercial-table-preview .product-description { color: #838384 }\n .pdf-content table.commercial-table-preview .product-quantity, .pdf-content table.commercial-table-preview .product-price-without-vat, .pdf-content table.commercial-table-preview .product-vat, .pdf-content table.commercial-table-preview .product-total-price-without-vat,.pdf-content table.commercial-table-preview .product-discount { text-align: right; }\n .pdf-content table.commercial-table-preview td.product-quantity, .pdf-content table.commercial-table-preview td.product-vat { width: 10% }\n .pdf-content td.product-discount { width: 12.5% }\n .pdf-content table.commercial-table-preview td.product-total-price-without-vat, .pdf-content table.commercial-table-preview td.product-price-without-vat { width: 15% }\n .pdf-content table.commercial-table-preview tr.vat-detail-row td:not(:first-child) { text-align: right; }\n .pdf-content table.commercial-table-preview.summary-prices tr td:not(:first-child) {text-align: right;}\n .pdf-content table.commercial-table-preview.summary-prices tr td:first-child {border-right: none;}\n .pdf-content table.commercial-table-preview .discount-percent { color: #838384; font-size: smaller }\n .pdf-content a.payment-button { margin-left: 40px; display: flex; align-items: center; background-color: #EBF1FF; border-radius: 10px; font-weight: 450; font-size: 12px !important; color: #1656FF; border: none; padding: 8px 14px; text-decoration: none; }\n .pdf-content a.payment-button svg { margin-left: 15px; }\n <% if (settings && settings.areLinesSeparationHidden) { %>\n .pdf-content td { border-top: none !important; border-bottom: none !important; }\n <% } %>\n <% if (settings && settings.areColumnsSeparationHidden) { %>\n .pdf-content td { border-left: none !important; border-right: none !important; }\n <% } %>\n <% if (settings && settings.areExternalBordersHidden) { %>\n .pdf-content table.commercial-table-preview { border: none !important }\n .pdf-content table.commercial-table-preview tr:last-child td { border-bottom: none !important }\n .pdf-content table.commercial-table-preview thead td { border-top: none !important }\n .pdf-content table.commercial-table-preview td:first-child { border-left: none !important }\n .pdf-content table.commercial-table-preview td:last-child { border-right: none !important }\n <% } %>`;\n}\n\nexport class CommercialDocumentMailHTML {\n style = `\n @font-face{font-family:circular std;font-style:normal;font-weight:450;src:local('Circular Std'),url(https://fonts.cdnfonts.com/s/15011/CircularStd-Book.woff) format('woff')}\n @font-face{font-family:circular std;font-style:italic;font-weight:450;src:local('Circular Std'),url(https://fonts.cdnfonts.com/s/15011/CircularStd-BookItalic.woff) format('woff')}\n @font-face{font-family:circular std;font-style:normal;font-weight:500;src:local('Circular Std'),url(https://fonts.cdnfonts.com/s/15011/CircularStd-Medium.woff) format('woff')}\n @font-face{font-family:circular std;font-style:italic;font-weight:500;src:local('Circular Std'),url(https://fonts.cdnfonts.com/s/15011/CircularStd-MediumItalic.woff) format('woff')}\n @font-face{font-family:circular std;font-style:normal;font-weight:700;src:local('Circular Std'),url(https://fonts.cdnfonts.com/s/15011/CircularStd-Bold.woff) format('woff')}\n @font-face{font-family:circular std;font-style:italic;font-weight:700;src:local('Circular Std'),url(https://fonts.cdnfonts.com/s/15011/CircularStd-BoldItalic.woff) format('woff')}\n @font-face{font-family:circular std;font-style:normal;font-weight:900;src:local('Circular Std'),url(https://fonts.cdnfonts.com/s/15011/CircularStd-Black.woff) format('woff')}\n @font-face{font-family:circular std;font-style:italic;font-weight:900;src:local('Circular Std'),url(https://fonts.cdnfonts.com/s/15011/CircularStd-BlackItalic.woff) format('woff')}\n\n /* Css classes not working inside mails */\n`;\n\n header = `<style>html { -webkit-print-color-adjust: exact; }</style>\n <style>\n ${this.style}\n </style>\n <div style=\"background-color: <%= brandColors.primary50 %>; color: black; width: calc(100% - 48px); display: grid; border-radius: 16px; padding: 24px;\">\n <div style=\"width: max-content; margin: auto; font-size: 16px; font-family: 'circular std', sans-serif; font-weight: 100; line-height: 140%; position: relative;\">\n <div style=\"color: black;\"><span style=\"font-weight: 500;\"><%- companyName %></span> vous adresse \n <% if(idEstimateInvoiceType) { %>\n <% if ([${EstimateInvoiceType.FACTURE}, ${EstimateInvoiceType.RESTE}].includes(idEstimateInvoiceType)) { %>\n cette facture\n <% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.DEVIS}) { %>\n ce devis\n <% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.BON}) { %>\n ce bon de commande\n <% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.ACOMPTE}) { %>\n cet acompte\n <% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.AVOIR}) { %>\n cet avoir\n <% } %>\n <% } else { %> \n ce document\n <% } %>\n :\n </div>\n <div style=\"<% if (hasVat) { %>margin-top: 16px;<% } %> display: flex;\">\n <div style=\"margin-right: 64px;\">\n <div style=\"font-weight: 500; font-size: 24px; line-height: 120%;\"> \n <% if(idEstimateInvoiceType) { %>\n <% if ([${EstimateInvoiceType.FACTURE}, ${EstimateInvoiceType.RESTE}].includes(idEstimateInvoiceType)) { %>\n Facture\n <% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.DEVIS}) { %>\n Devis\n <% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.BON}) { %>\n Bon de commande\n <% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.ACOMPTE}) { %>\n Acompte\n <% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.AVOIR}) { %>\n Avoir\n <% } %>\n <% } else { %> \n Document\n <% } %>\n <%- reference %>\n </div>\n <div style=\"; color: <%= brandColors.primary500 %>; font-size: 14px;\">\n Echéance : <%- dueDateFormatted %>\n </div>\n <div style=\"margin: 16px 0; font-size: 14px;\">\n <% if (hasVat) { %>\n <div style=\"display: flex; width: 240px; color: #838384; margin-bottom: 10px;\">\n Total HT <div style=\"margin-left: auto;\"><%- totalTaxExcludedFormatted.integerValue %>,<span style=\"font-size: 12px;\"><%- totalTaxExcludedFormatted.centValue %> €</span></div>\n </div>\n <div style=\"display: flex; width: 240px; color: #838384; margin-bottom: 10px;\">\n Total TVA <div style=\"margin-left: auto;\"><%- totalVatFormatted.integerValue %>,<span style=\"font-size: 12px;\"><%- totalVatFormatted.centValue %> €</span></div>\n </div>\n <div style=\"width: 240px; height: 2px; background-color: <%= brandColors.primary500 %>; margin-bottom: 10px;\"></div>\n <% } %>\n <div style=\"display: flex; width: 240px; font-size: 16px; color: black;\">\n Total <% if (hasVat) { %>TTC<% } %> <div style=\"font-size: 20px; font-weight: 500; margin-left: auto;\" ><%- totalTaxIncludedFormatted.integerValue %>,<span style=\"font-size: 16px;\"><%- totalTaxIncludedFormatted.centValue %> €</span></div>\n </div>\n </div>\n <a <% if (fileUrl) { %>href=\"<%= fileUrl %>\"<% } %> target=\"_blank\" style=\"color: white; text-decoration: none; background-color: <%= brandColors.primary500 %>; <% if (fileUrl) { %> cursor: pointer; <% } %> padding: 10px 45px; font-size: 16px; border-radius: 4px;\">\n Afficher le document\n </a>\n </div>\n <div style=\"margin: auto;\">\n <% if (logoUrl) { %>\n <div style=\"width: 154px; height: 154px; border-radius: 50%; border: 2px solid <%= brandColors.primary300 %>; background-color: white;\">\n <table>\n <tr>\n <td valign=\"top\" style=\"vertical-align:middle; width: 154px; height: 154px;\">\n <img src=\"<%= logoUrl %>\" alt=\"logo\" style=\"max-height: 100px; max-width: 100px; margin: auto; display: block;\" />\n </td>\n </tr>\n </table>\n </div>\n <% } else { %>\n <img src=\"<%= hostS3 %>config/mail-sale-document.png\" />\n <% } %>\n </div>\n </div>\n <% if (!shouldHideBrandName) { %>\n <div style=\"margin-top: 16px; width: fit-content; white-space: nowrap; margin-left: auto; margin-right: auto; font-size: 14px;\">\n <div class=\"brand-tag\" style=\"display: flex; line-height: 22px; height: 22px;\">\n Généré par <% if (hostS3) { %><img src=\"<%= hostS3 %>config/logo-brand.png\" alt=\"logo\" style=\"max-height: 22px; margin-left: 8px;\" /><% } %>\n </div>\n </div>\n <% } %>\n </div>\n </div>\n `;\n}"]}
|