@bookipi/htmlgenerator 1.8.4-alpha2 → 1.8.4
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/dist/index.js +152 -121
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +152 -121
- package/dist/index.modern.js.map +1 -1
- package/dist/subscriptionInvoiceHtml.module.css +253 -0
- package/package.json +1 -1
- package/.vscode/common.settings.json +0 -38
package/dist/index.js
CHANGED
|
@@ -12002,36 +12002,12 @@ var COMPANY_KEYS = ['_id', 'fax', 'contactName', 'c', 'e', 'ph', 'tfn', 'la', 'c
|
|
|
12002
12002
|
|
|
12003
12003
|
var DOCUMENT_KEYS = ['_id', 'ad', 'ty', 'cu', 'd', 'dd', 'rn', 'it', 'st', 'tx', 'tx2', 'tt', 'dc', 'dcp', 'dcpo', 'sp', 'sntx', 'tp', 'tp2', 'tn', 'tn2', 'tax1BaseAmount', 'tax2BaseAmount', 'ti', 'ttx', 't1d', 't2d', 'pm', 'sca', 'hangingAmount', 'depositAmount', 'um', 'shouldShowPaymentInstructions', 'customization', 'asi', 'no', 'proposal', 'd', 'rd', 'di', 'pon', 'pma', 'depositDue', 'noteHtml', 'nt', 'tc', 'sd', 'cs', 'a1', 'a2', 'a3', 't2di', 'dco', 'csd', 'tz', 'sent'];
|
|
12004
12004
|
|
|
12005
|
-
var
|
|
12005
|
+
var escapeHtml = function escapeHtml(str) {
|
|
12006
12006
|
if (str === void 0) {
|
|
12007
12007
|
str = '';
|
|
12008
12008
|
}
|
|
12009
|
-
return String(str).replace(
|
|
12009
|
+
return String(str).replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"').replace(/'/g, ''');
|
|
12010
12010
|
};
|
|
12011
|
-
function deepDecodeHtml(obj) {
|
|
12012
|
-
if (typeof obj === 'undefined' || obj === null) {
|
|
12013
|
-
return obj;
|
|
12014
|
-
}
|
|
12015
|
-
if (typeof obj === 'string') {
|
|
12016
|
-
return decodeHtml(obj);
|
|
12017
|
-
}
|
|
12018
|
-
if (Array.isArray(obj)) {
|
|
12019
|
-
return obj.map(function (item) {
|
|
12020
|
-
return deepDecodeHtml(item);
|
|
12021
|
-
});
|
|
12022
|
-
}
|
|
12023
|
-
if (typeof obj === 'object' && obj.constructor === Object) {
|
|
12024
|
-
var decoded = {};
|
|
12025
|
-
for (var _i = 0, _Object$entries = Object.entries(obj); _i < _Object$entries.length; _i++) {
|
|
12026
|
-
var _Object$entries$_i = _Object$entries[_i],
|
|
12027
|
-
key = _Object$entries$_i[0],
|
|
12028
|
-
value = _Object$entries$_i[1];
|
|
12029
|
-
decoded[key] = deepDecodeHtml(value);
|
|
12030
|
-
}
|
|
12031
|
-
return decoded;
|
|
12032
|
-
}
|
|
12033
|
-
return obj;
|
|
12034
|
-
}
|
|
12035
12011
|
Object.fromEntries = Object.fromEntries || function (arr) {
|
|
12036
12012
|
return arr.reduce(function (acc, curr) {
|
|
12037
12013
|
acc[curr[0]] = curr[1];
|
|
@@ -13446,61 +13422,59 @@ var contractHtml = (function (props) {
|
|
|
13446
13422
|
return html;
|
|
13447
13423
|
});
|
|
13448
13424
|
|
|
13449
|
-
var
|
|
13450
|
-
|
|
13451
|
-
|
|
13452
|
-
|
|
13453
|
-
|
|
13454
|
-
|
|
13455
|
-
|
|
13456
|
-
|
|
13457
|
-
|
|
13458
|
-
|
|
13459
|
-
|
|
13460
|
-
|
|
13461
|
-
|
|
13462
|
-
|
|
13463
|
-
|
|
13464
|
-
|
|
13465
|
-
|
|
13466
|
-
|
|
13467
|
-
|
|
13468
|
-
|
|
13469
|
-
var
|
|
13470
|
-
|
|
13471
|
-
|
|
13472
|
-
|
|
13473
|
-
|
|
13474
|
-
|
|
13475
|
-
|
|
13476
|
-
var
|
|
13477
|
-
|
|
13478
|
-
|
|
13479
|
-
|
|
13480
|
-
|
|
13481
|
-
|
|
13482
|
-
|
|
13483
|
-
|
|
13484
|
-
|
|
13485
|
-
|
|
13486
|
-
|
|
13487
|
-
|
|
13488
|
-
|
|
13489
|
-
|
|
13490
|
-
|
|
13491
|
-
|
|
13492
|
-
|
|
13493
|
-
|
|
13494
|
-
|
|
13495
|
-
discount: t ? t('Discount') : 'Discount'
|
|
13496
|
-
};
|
|
13425
|
+
var styleSheet = "\n<style>\n @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;900&family=Lato:wght@400;700&display=swap');\n\n .bookipay-invoice {\n width: 100%;\n max-width: 600px;\n background-color: white;\n display: flex;\n border-radius: 16px;\n flex-direction: column;\n overflow: hidden;\n font-family: 'Inter', sans-serif;\n line-height: 1.2;\n color: black;\n font-size: 16px;\n }\n\n .invoice-content {\n padding: 40px 30px;\n }\n\n .invoice-header {\n display: flex;\n padding: 10px;\n margin-bottom: 40px;\n justify-content: space-between;\n }\n\n .invoice-footer {\n padding: 30px 38px 40px;\n background-color: rgb(245, 246, 250);\n font-size: 12px;\n }\n\n .invoice-footer p {\n display: block;\n margin: 0;\n }\n\n .invoice-footer-logo {\n height: 20px;\n margin-bottom: 12px;\n }\n\n .invoice-logo {\n object-fit: contain;\n max-height: 52px;\n width: auto;\n height: auto;\n }\n\n .invoice-body {\n color: rgb(15, 23, 42);\n font-size: 16px;\n }\n\n .invoice-company {\n text-align: right;\n }\n\n .invoice-spacing {\n margin-bottom: 4px;\n }\n\n .invoice-semi-bold {\n color: rgb(15, 23, 42);\n font-weight: 600;\n font-size: 16px;\n }\n\n .invoice-bold {\n font-family: 'Lato', sans-serif;\n color: black;\n font-weight: 700;\n font-size: 20px;\n }\n\n .invoice-subtitle {\n color: rgba(0, 0, 0, 0.6);\n font-size: 14px;\n }\n\n .invoice-subtitle2 {\n color: rgb(147, 154, 172);\n font-size: 14px;\n }\n\n .invoice-subtitle3 {\n color: rgb(100, 116, 139);\n font-size: 14px;\n }\n\n .invoice-subtitle4 {\n font-size: 10px;\n }\n\n .invoice-summary {\n background-color: rgb(245, 246, 250);\n padding: 32px 24px;\n border-radius: 16px;\n margin-bottom: 40px;\n }\n\n .invoice-summary-total {\n display: flex;\n margin-top: 24px;\n flex-direction: column;\n }\n\n .invoice-summary-customer {\n display: flex;\n flex-direction: row;\n align-items: flex-start;\n justify-content: space-between;\n gap: 16px;\n }\n\n .invoice-summary-customer-column {\n flex: 1;\n overflow-wrap:anywhere;\n }\n\n .invoice-customer-email {\n text-align: right;\n }\n\n .invoice-order-header {\n padding: 8px 0;\n margin-bottom: 8px;\n border-bottom: 1px solid rgba(0, 0, 0, 0.06);\n display: flex;\n justify-content: space-between;\n }\n\n .invoice-order-container {\n display: flex;\n justify-content: space-between;\n }\n\n .invoice-order-item {\n padding: 12px 0px 5px;\n }\n\n .invoice-order-details {\n display: flex;\n justify-content: space-between;\n }\n\n .invoice-item-details {\n color: rgb(100, 116, 139);\n font-size: 14px;\n margin-top: 4px;\n }\n\n .invoice-tax {\n display: flex;\n justify-content: space-between;\n margin-top: 8px;\n }\n\n .invoice-payment {\n display: flex;\n padding: 12px 0px 16px;\n justify-content: space-between;\n border-top: 1px solid rgba(0, 0, 0, 0.06);\n margin-top: 15px;\n }\n\n .invoice-card {\n display: flex;\n padding: 8px 0px;\n }\n\n .invoice-card img {\n height: 24px;\n margin-right: 6px;\n }\n\n .invoice-bill-to {\n display: none;\n }\n\n .invoice-order-item-amount {\n font-size: 16px;\n white-space: nowrap;\n }\n\n .invoice-card-number {\n color: rgb(15, 23, 42);\n font-size: 16px;\n font-weight: 400;\n }\n\n .invoice-total-amount {\n font-size: 18px;\n text-align: right;\n }\n\n @media (max-width: 600px) {\n .bookipay-invoice {\n border-radius: 0;\n }\n }\n\n @media (max-width: 799px) {\n .invoice-header {\n flex-direction: column;\n padding: 10px 0;\n }\n\n .invoice-company {\n text-align: left;\n }\n\n .invoice-logo {\n max-width: 100px;\n margin-bottom: 16px;\n }\n\n .invoice-header,\n .invoice-summary {\n margin-bottom: 20px;\n }\n\n .invoice-summary {\n margin-left: -30px;\n margin-right: -30px;\n border-radius: 0;\n padding: 32px 30px;\n }\n\n .invoice-content {\n padding: 20px 30px;\n }\n\n .invoice-bill-to {\n display: flex;\n }\n }\n\n @media (max-width: 399px) {\n .footer-actions {\n flex-direction: column;\n }\n\n .footer-action {\n margin-bottom: 12px;\n }\n\n footer {\n margin: 30px 0;\n }\n\n footer p {\n margin-top: 0;\n }\n }\n\n @media print {\n * {\n color-adjust: exact;\n -webkit-print-color-adjust: exact;\n print-color-adjust: exact;\n }\n\n .invoice-footer {\n width: 100%;\n max-width: 100%;\n margin: 0;\n }\n\n .bookipay-invoice {\n max-width: 100%;\n }\n\n @page {\n margin: 0;\n }\n\n body {\n margin: 1.6cm;\n }\n }\n</style>\n";
|
|
13426
|
+
|
|
13427
|
+
function formatPrice(price, currency) {
|
|
13428
|
+
if (price === void 0) {
|
|
13429
|
+
price = 0;
|
|
13430
|
+
}
|
|
13431
|
+
if (currency === void 0) {
|
|
13432
|
+
currency = 'USD';
|
|
13433
|
+
}
|
|
13434
|
+
return (price ? Number(price / 100).toFixed(2) : '0') + " " + currency;
|
|
13435
|
+
}
|
|
13436
|
+
function renderAddressItems(addressItems) {
|
|
13437
|
+
if (addressItems === void 0) {
|
|
13438
|
+
addressItems = [];
|
|
13439
|
+
}
|
|
13440
|
+
return addressItems.filter(function (item) {
|
|
13441
|
+
return !!item;
|
|
13442
|
+
}).join(', ');
|
|
13443
|
+
}
|
|
13444
|
+
function Header(_ref) {
|
|
13445
|
+
var logoUrl = _ref.logoUrl,
|
|
13446
|
+
companyName = _ref.companyName,
|
|
13447
|
+
invoiceNo = _ref.invoiceNo,
|
|
13448
|
+
invoiceDate = _ref.invoiceDate;
|
|
13449
|
+
return "\n <div class=\"invoice-header\">\n <img class=\"invoice-logo\" src=" + logoUrl + " />\n <div class=\"invoice-company\">\n <div class=\"invoice-company-name invoice-semi-bold invoice-spacing\">\n " + companyName + "\n </div>\n <div class=\"invoice-number invoice-subtitle invoice-spacing\">\n " + invoiceNo + "\n </div>\n <div class=\"invoice-date invoice-subtitle invoice-spacing\">\n " + invoiceDate + "\n </div>\n </div>\n </div>\n ";
|
|
13450
|
+
}
|
|
13451
|
+
function InvoiceSummaryCard(params) {
|
|
13452
|
+
var email = params.email,
|
|
13453
|
+
companyName = params.companyName,
|
|
13454
|
+
businessNumber = params.businessNumber,
|
|
13455
|
+
address = params.address,
|
|
13456
|
+
total = params.total,
|
|
13457
|
+
currency = params.currency,
|
|
13458
|
+
defaultLang = params.defaultLang;
|
|
13459
|
+
var hasAddressLine = (address === null || address === void 0 ? void 0 : address.address1) || (address === null || address === void 0 ? void 0 : address.address2) || (address === null || address === void 0 ? void 0 : address.address3);
|
|
13460
|
+
var hasAddress = (address === null || address === void 0 ? void 0 : address.city) || (address === null || address === void 0 ? void 0 : address.zip) || (address === null || address === void 0 ? void 0 : address.country);
|
|
13461
|
+
return "\n <div class=\"invoice-summary\">\n <div class=\"invoice-summary-customer\">\n <div class=\"invoice-summary-customer-column\">\n <div class=\"invoice-bold invoice-spacing\">" + companyName + "</div>\n " + (businessNumber ? "<div class=\"invoice-subtitle2\">" + businessNumber + "</div>" : '') + "\n " + (hasAddressLine ? "<div class=\"invoice-subtitle2\">\n " + renderAddressItems([address.address1, address.address2, address.address3]) + "\n </div>" : '') + "\n " + (hasAddress ? "<div class=\"invoice-subtitle2\">\n " + renderAddressItems([address.city, address.zip, address.country]) + "\n </div>" : '') + "\n </div>\n <div class=\"invoice-customer-email invoice-subtitle2 invoice-summary-customer-column\">\n " + email + "\n </div>\n </div>\n <div class=\"invoice-summary-total\">\n <div class=\"invoice-subtitle3 invoice-spacing\">\n " + defaultLang.total + "\n </div>\n <div class=\"invoice-summary-total-value invoice-bold invoice-spacing\">\n " + formatPrice(total, currency) + "\n </div>\n </div>\n </div>\n ";
|
|
13462
|
+
}
|
|
13463
|
+
function OrderSummary(params) {
|
|
13464
|
+
var amountPaid = params.amountPaid,
|
|
13465
|
+
invoiceItems = params.invoiceItems,
|
|
13466
|
+
cardBrand = params.cardBrand,
|
|
13467
|
+
cardNumber = params.cardNumber,
|
|
13468
|
+
cardLogo = params.cardLogo,
|
|
13469
|
+
currency = params.currency,
|
|
13470
|
+
defaultLang = params.defaultLang;
|
|
13497
13471
|
var hasDiscount = invoiceItems.some(function (item) {
|
|
13498
13472
|
return item.type === 'discount' && item.total > 0;
|
|
13499
13473
|
});
|
|
13500
13474
|
var hasTax = invoiceItems.some(function (item) {
|
|
13501
13475
|
return item.type === 'tax' && item.total > 0;
|
|
13502
13476
|
});
|
|
13503
|
-
|
|
13477
|
+
function renderItem(item) {
|
|
13504
13478
|
var title = item.name || item.description;
|
|
13505
13479
|
var showSubtotal = hasTax && hasDiscount;
|
|
13506
13480
|
if (!showSubtotal && item.type === 'subtotal') {
|
|
@@ -13511,30 +13485,88 @@ var subscriptionInvoiceHtml = (function (_ref) {
|
|
|
13511
13485
|
var color = isDiscount ? '#C81E1E' : 'inherit';
|
|
13512
13486
|
var label = isDiscount ? defaultLang.discount + " (" + title + ")" : title;
|
|
13513
13487
|
if (isDiscount && total === 0) return '';
|
|
13514
|
-
|
|
13515
|
-
|
|
13516
|
-
|
|
13488
|
+
var hasDescription = item.description && item.description !== item.name && item.description.trim() !== '';
|
|
13489
|
+
return "\n <div class=\"invoice-order-item\">\n <div class=\"invoice-order-details\">\n <div>\n <div class=\"invoice-spacing invoice-body3\" style=\"color:" + color + ";\">\n " + label + "\n </div>\n " + (hasDescription ? "<div class=\"invoice-item-details\">" + item.description + "</div>" : '') + "\n </div>\n <div class=\"invoice-order-item-amount\" style=\"color:" + color + ";\">\n " + formatPrice(total, currency) + "\n </div>\n </div>\n </div>\n ";
|
|
13490
|
+
}
|
|
13491
|
+
function renderItems() {
|
|
13517
13492
|
var rendered = '';
|
|
13518
|
-
|
|
13493
|
+
invoiceItems.forEach(function (item) {
|
|
13519
13494
|
rendered += renderItem(item);
|
|
13520
13495
|
});
|
|
13521
13496
|
return rendered;
|
|
13497
|
+
}
|
|
13498
|
+
return "\n <div class=\"invoice-order\">\n <div class=\"invoice-order-header\">\n <div class=\"invoice-subtitle3\">" + defaultLang.item + "</div>\n <div class=\"invoice-subtitle3\">" + defaultLang.amount + "</div>\n </div>\n <div class=\"invoice-order-item-container\">\n " + renderItems() + "\n <div class=\"invoice-payment\">\n <div class=\"invoice-bold\" style=\"font-size:'16px;\">\n " + defaultLang.totalCharged + "\n </div>\n <div class=\"invoice-body3\">\n <div class=\"invoice-bold invoice-spacing invoice-total-amount\">\n " + formatPrice(amountPaid, currency) + "\n </div>\n </div>\n </div>\n " + (cardBrand && cardNumber ? "\n <div class=\"invoice-card\">\n <img src=" + cardLogo + " alt=" + cardBrand + " />\n <div class=\"invoice-card-number\">\n " + (cardBrand.charAt(0).toUpperCase() + cardBrand.slice(1)) + " \u2022\u2022\u2022\u2022 " + cardNumber + "\n </div>\n </div>\n " : '') + "\n </div>\n </div>\n ";
|
|
13499
|
+
}
|
|
13500
|
+
function Footer(_ref2) {
|
|
13501
|
+
var logoUrl = _ref2.logoUrl;
|
|
13502
|
+
return "\n <div class=\"invoice-footer invoice-subtitle2\">\n <img class=\"invoice-footer-logo\" src=" + logoUrl + " />\n <p>\xA92025 Bookipi Pty Ltd.</p>\n <p>9 George St, North Strathfield NSW 2137, Australia</p>\n <p>ABN: 91617668185</p>\n </div>";
|
|
13503
|
+
}
|
|
13504
|
+
function SubscriptionInvoiceHtml(_ref3) {
|
|
13505
|
+
var vendor = _ref3.vendor,
|
|
13506
|
+
invoice = _ref3.invoice,
|
|
13507
|
+
customer = _ref3.customer,
|
|
13508
|
+
includeHtmlWrapper = _ref3.includeHtmlWrapper,
|
|
13509
|
+
t = _ref3.t;
|
|
13510
|
+
var _ref4 = vendor != null ? vendor : {},
|
|
13511
|
+
vendorName = _ref4.name,
|
|
13512
|
+
vendorLogoUrl = _ref4.logoUrl,
|
|
13513
|
+
businessNumber = _ref4.businessNumber,
|
|
13514
|
+
address = _ref4.address;
|
|
13515
|
+
var _ref5 = invoice != null ? invoice : {},
|
|
13516
|
+
invoiceNumber = _ref5.no,
|
|
13517
|
+
total = _ref5.total,
|
|
13518
|
+
amountPaid = _ref5.amountPaid,
|
|
13519
|
+
currency = _ref5.currency,
|
|
13520
|
+
transaction = _ref5.transaction,
|
|
13521
|
+
date = _ref5.date,
|
|
13522
|
+
invoiceItems = _ref5.items;
|
|
13523
|
+
var _ref6 = transaction != null ? transaction : {},
|
|
13524
|
+
cardNumber = _ref6.cardNumber,
|
|
13525
|
+
cardBrand = _ref6.cardBrand,
|
|
13526
|
+
cardLogo = _ref6.cardLogo;
|
|
13527
|
+
var _ref7 = customer != null ? customer : {},
|
|
13528
|
+
companyName = _ref7.name,
|
|
13529
|
+
email = _ref7.email;
|
|
13530
|
+
var logoUrl = vendorLogoUrl != null ? vendorLogoUrl : 'https://web.bookipi.com/images/logos/logo-bookipi.png';
|
|
13531
|
+
var defaultLang = {
|
|
13532
|
+
invoiceNo: t ? t('Invoice #', {
|
|
13533
|
+
no: invoiceNumber
|
|
13534
|
+
}) : "Invoice #" + invoiceNumber,
|
|
13535
|
+
total: t ? t('Total') : 'Total',
|
|
13536
|
+
billTo: t ? t('Bill to') : 'Bill to',
|
|
13537
|
+
item: t ? t('Item') : 'Item',
|
|
13538
|
+
amount: t ? t('Amount') : 'Amount',
|
|
13539
|
+
totalCharged: t ? t('Total charged') : 'Total charged',
|
|
13540
|
+
discount: t ? t('Discount') : 'Discount'
|
|
13522
13541
|
};
|
|
13523
|
-
var
|
|
13524
|
-
|
|
13525
|
-
|
|
13526
|
-
|
|
13527
|
-
|
|
13528
|
-
|
|
13529
|
-
|
|
13530
|
-
|
|
13531
|
-
|
|
13532
|
-
|
|
13533
|
-
|
|
13542
|
+
var html = "\n " + (includeHtmlWrapper ? '<!DOCTYPE html>\n<html>\n<head>\n<meta charset="utf-8">\n<title>Invoice</title>' : '') + "\n " + styleSheet + "\n " + (includeHtmlWrapper ? '</head>' : '') + "\n <div class=\"bookipay-invoice\">\n <div class=\"invoice-content\">\n " + Header({
|
|
13543
|
+
logoUrl: logoUrl,
|
|
13544
|
+
companyName: vendorName,
|
|
13545
|
+
invoiceNo: defaultLang.invoiceNo,
|
|
13546
|
+
invoiceDate: date
|
|
13547
|
+
}) + "\n " + InvoiceSummaryCard({
|
|
13548
|
+
email: email,
|
|
13549
|
+
companyName: companyName,
|
|
13550
|
+
businessNumber: businessNumber,
|
|
13551
|
+
address: address,
|
|
13552
|
+
total: total,
|
|
13553
|
+
currency: currency,
|
|
13554
|
+
defaultLang: defaultLang
|
|
13555
|
+
}) + "\n " + OrderSummary({
|
|
13556
|
+
amountPaid: amountPaid,
|
|
13557
|
+
invoiceItems: invoiceItems,
|
|
13558
|
+
cardBrand: cardBrand,
|
|
13559
|
+
cardNumber: cardNumber,
|
|
13560
|
+
cardLogo: cardLogo,
|
|
13561
|
+
currency: currency,
|
|
13562
|
+
defaultLang: defaultLang
|
|
13563
|
+
}) + "\n </div>\n " + Footer({
|
|
13564
|
+
logoUrl: logoUrl
|
|
13565
|
+
}) + "\n </div>\n " + (includeHtmlWrapper ? '</body></html>' : '') + "\n ";
|
|
13534
13566
|
return {
|
|
13535
13567
|
html: html
|
|
13536
13568
|
};
|
|
13537
|
-
}
|
|
13569
|
+
}
|
|
13538
13570
|
|
|
13539
13571
|
var _document$invoice$est;
|
|
13540
13572
|
var langJP = (_document$invoice$est = {
|
|
@@ -14226,17 +14258,17 @@ var coverHtml = function coverHtml(_ref) {
|
|
|
14226
14258
|
if (layout === 'split') {
|
|
14227
14259
|
var _background$right;
|
|
14228
14260
|
var rightIsImage = ((_background$right = background.right) === null || _background$right === void 0 ? void 0 : _background$right.type) === 'image';
|
|
14229
|
-
var rightBgStyle = rightIsImage ? "background-image:url(" + background.right.value + ")" : "background:" + background.right.value;
|
|
14230
|
-
var outerSplitStyle = "background:" + themeColors.background;
|
|
14261
|
+
var rightBgStyle = rightIsImage ? "background-image:url(" + escapeHtml(background.right.value) + ")" : "background:" + escapeHtml(background.right.value);
|
|
14262
|
+
var outerSplitStyle = "background:" + escapeHtml(themeColors.background);
|
|
14231
14263
|
return html$L(_templateObject3$b || (_templateObject3$b = _taggedTemplateLiteralLoose(["\n <div class=\"slide split\" style=\"", "\">\n <div class=\"split-inner\">\n <div class=\"left-content\">\n <div class=\"cover-row cover-top\">", "</div>\n <div class=\"cover-center\">\n <div style=\"width:100%\">", "</div>\n </div>\n <div class=\"cover-row cover-bottom\">", "</div>\n </div>\n <div class=\"right-image\" style=\"", "\"></div>\n </div>\n </div>\n "])), outerSplitStyle, topContent, centerContent, bottomContent, rightBgStyle);
|
|
14232
14264
|
}
|
|
14233
14265
|
var isImage = background.type === 'image';
|
|
14234
14266
|
var hasOverlay = isImage && background.overlay;
|
|
14235
14267
|
var bgStyle = '';
|
|
14236
14268
|
if (isImage) {
|
|
14237
|
-
bgStyle = "background-image: " + (hasOverlay ? "linear-gradient(" + background.overlay + ", " + background.overlay + "), url(" + (background.value || '') + ")" : "url(" + (background.value || '') + ")") + "; background-position: center; background-size: cover;";
|
|
14269
|
+
bgStyle = "background-image: " + (hasOverlay ? "linear-gradient(" + escapeHtml(background.overlay) + ", " + escapeHtml(background.overlay) + "), url(" + escapeHtml(background.value || '') + ")" : "url(" + escapeHtml(background.value || '') + ")") + "; background-position: center; background-size: cover;";
|
|
14238
14270
|
} else if (background.type === 'color') {
|
|
14239
|
-
bgStyle = "background:" + (background.value || '');
|
|
14271
|
+
bgStyle = "background:" + escapeHtml(background.value || '');
|
|
14240
14272
|
} else {
|
|
14241
14273
|
bgStyle = '';
|
|
14242
14274
|
}
|
|
@@ -14251,7 +14283,7 @@ var bulletHtml = function bulletHtml(_ref) {
|
|
|
14251
14283
|
customizationStyle = _ref$customizationSty === void 0 ? {} : _ref$customizationSty;
|
|
14252
14284
|
var items = (slide.bullets || []).slice(0, 3);
|
|
14253
14285
|
if (!items.length) {
|
|
14254
|
-
return html$M(_templateObject$P || (_templateObject$P = _taggedTemplateLiteralLoose(["\n <div class=\"slide slide--bullet\">\n <div class=\"content\">\n <h2 class=\"title\">", "</h2>\n </div>\n </div>\n "])), slide.title);
|
|
14286
|
+
return html$M(_templateObject$P || (_templateObject$P = _taggedTemplateLiteralLoose(["\n <div class=\"slide slide--bullet\">\n <div class=\"content\">\n <h2 class=\"title\">", "</h2>\n </div>\n </div>\n "])), escapeHtml(slide.title));
|
|
14255
14287
|
}
|
|
14256
14288
|
var accentColor = customizationStyle.accentColor;
|
|
14257
14289
|
var markerBg = increaseHexColorIntensity(accentColor, 10);
|
|
@@ -14259,10 +14291,10 @@ var bulletHtml = function bulletHtml(_ref) {
|
|
|
14259
14291
|
var listItems = items.map(function (item) {
|
|
14260
14292
|
var title = (item === null || item === void 0 ? void 0 : item.title) || '';
|
|
14261
14293
|
var desc = (item === null || item === void 0 ? void 0 : item.description) || '';
|
|
14262
|
-
return html$M(_templateObject2$q || (_templateObject2$q = _taggedTemplateLiteralLoose(["\n <li\n style=\"flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:8px;\"\n >\n <span\n style=\"width:12px;height:12px;border-radius:50%;background:", ";border:3px solid ", ";position:relative;z-index:2;align-self:flex-start;display:block;flex-shrink:0;margin-bottom:8px;margin-left:8px;\"\n ></span>\n <div style=\"min-width:0;\">\n ", "\n ", "\n </div>\n </li>\n "])), markerBg, markerBorder, title ? html$M(_templateObject3$c || (_templateObject3$c = _taggedTemplateLiteralLoose(["<h3\n class=\"subtitle\"\n style=\"margin:0 0 6px;font-weight:600;\"\n >\n ", "\n </h3>"])), title) : '', desc ? html$M(_templateObject4$2 || (_templateObject4$2 = _taggedTemplateLiteralLoose(["<p\n class=\"text\"\n style=\"margin:0;color:var(--theme-text-color);\"\n >\n ", "\n </p>"])), desc) : '');
|
|
14294
|
+
return html$M(_templateObject2$q || (_templateObject2$q = _taggedTemplateLiteralLoose(["\n <li\n style=\"flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:8px;\"\n >\n <span\n style=\"width:12px;height:12px;border-radius:50%;background:", ";border:3px solid ", ";position:relative;z-index:2;align-self:flex-start;display:block;flex-shrink:0;margin-bottom:8px;margin-left:8px;\"\n ></span>\n <div style=\"min-width:0;\">\n ", "\n ", "\n </div>\n </li>\n "])), escapeHtml(markerBg), escapeHtml(markerBorder), title ? html$M(_templateObject3$c || (_templateObject3$c = _taggedTemplateLiteralLoose(["<h3\n class=\"subtitle\"\n style=\"margin:0 0 6px;font-weight:600;\"\n >\n ", "\n </h3>"])), escapeHtml(title)) : '', desc ? html$M(_templateObject4$2 || (_templateObject4$2 = _taggedTemplateLiteralLoose(["<p\n class=\"text\"\n style=\"margin:0;color:var(--theme-text-color);\"\n >\n ", "\n </p>"])), escapeHtml(desc)) : '');
|
|
14263
14295
|
}).join('');
|
|
14264
14296
|
var ulHtml = html$M(_templateObject5$1 || (_templateObject5$1 = _taggedTemplateLiteralLoose(["<ul\n class=\"bullets-ul\"\n style=\"display:flex;gap:24px;list-style:none;padding:0;justify-content:center;width:auto;\"\n >\n ", "\n </ul>"])), listItems);
|
|
14265
|
-
return html$M(_templateObject6$1 || (_templateObject6$1 = _taggedTemplateLiteralLoose(["<div class=\"slide slide--bullet\">\n <div class=\"content\">\n <h2 class=\"title\">", "</h2>\n ", "\n </div>\n </div>"])), slide.title || '', ulHtml);
|
|
14297
|
+
return html$M(_templateObject6$1 || (_templateObject6$1 = _taggedTemplateLiteralLoose(["<div class=\"slide slide--bullet\">\n <div class=\"content\">\n <h2 class=\"title\">", "</h2>\n ", "\n </div>\n </div>"])), escapeHtml(slide.title || ''), ulHtml);
|
|
14266
14298
|
};
|
|
14267
14299
|
|
|
14268
14300
|
var _templateObject$Q, _templateObject2$r;
|
|
@@ -14271,9 +14303,9 @@ var highlightTextHtml = function highlightTextHtml(_ref) {
|
|
|
14271
14303
|
var _ref$slide = _ref.slide,
|
|
14272
14304
|
slide = _ref$slide === void 0 ? {} : _ref$slide;
|
|
14273
14305
|
var paragraphs = String(slide.text || '').split('\n').map(function (p) {
|
|
14274
|
-
return "<p>" + p + "</p>";
|
|
14306
|
+
return "<p>" + escapeHtml(p) + "</p>";
|
|
14275
14307
|
}).join('');
|
|
14276
|
-
return html$N(_templateObject$Q || (_templateObject$Q = _taggedTemplateLiteralLoose(["\n <div class=\"slide\">\n <div class=\"content\">\n <h1 class=\"title\">", "</h1>\n ", "\n </div>\n </div>\n "])), slide.title, paragraphs ? html$N(_templateObject2$r || (_templateObject2$r = _taggedTemplateLiteralLoose(["<div class=\"text\">", "</div>"])), paragraphs) : '');
|
|
14308
|
+
return html$N(_templateObject$Q || (_templateObject$Q = _taggedTemplateLiteralLoose(["\n <div class=\"slide\">\n <div class=\"content\">\n <h1 class=\"title\">", "</h1>\n ", "\n </div>\n </div>\n "])), escapeHtml(slide.title), paragraphs ? html$N(_templateObject2$r || (_templateObject2$r = _taggedTemplateLiteralLoose(["<div class=\"text\">", "</div>"])), paragraphs) : '');
|
|
14277
14309
|
};
|
|
14278
14310
|
|
|
14279
14311
|
var _templateObject$R, _templateObject2$s, _templateObject3$d, _templateObject4$3;
|
|
@@ -14286,15 +14318,15 @@ var imagesHtml = function imagesHtml(_ref) {
|
|
|
14286
14318
|
return getImage(source);
|
|
14287
14319
|
}).filter(Boolean);
|
|
14288
14320
|
if (!sources.length) {
|
|
14289
|
-
return html$O(_templateObject$R || (_templateObject$R = _taggedTemplateLiteralLoose(["\n <div class=\"slide\">\n <div class=\"content\">\n <h2 class=\"title\">", "</h2>\n </div>\n </div>\n "])), slide.title || '');
|
|
14321
|
+
return html$O(_templateObject$R || (_templateObject$R = _taggedTemplateLiteralLoose(["\n <div class=\"slide\">\n <div class=\"content\">\n <h2 class=\"title\">", "</h2>\n </div>\n </div>\n "])), escapeHtml(slide.title || ''));
|
|
14290
14322
|
}
|
|
14291
14323
|
if (sources.length === 1) {
|
|
14292
|
-
var imgUrl = sources[0] || '';
|
|
14293
|
-
var alt = slide.title || '';
|
|
14324
|
+
var imgUrl = escapeHtml(sources[0] || '');
|
|
14325
|
+
var alt = escapeHtml(slide.title || '');
|
|
14294
14326
|
return html$O(_templateObject2$s || (_templateObject2$s = _taggedTemplateLiteralLoose(["\n <div class=\"slide\">\n <img class=\"slide-bg\" src=\"", "\" alt=\"", "\" />\n </div>\n "])), imgUrl, alt);
|
|
14295
14327
|
}
|
|
14296
14328
|
var imagesRow = sources.map(function (src) {
|
|
14297
|
-
var s = src;
|
|
14329
|
+
var s = escapeHtml(src);
|
|
14298
14330
|
return html$O(_templateObject3$d || (_templateObject3$d = _taggedTemplateLiteralLoose(["\n <div\n style=\"flex:1;min-width:0;display:flex;align-items:center;justify-content:center;\"\n >\n <img\n src=\"", "\"\n style=\"width:100%;height:100%;object-fit:cover;display:block;\"\n />\n </div>\n "])), s);
|
|
14299
14331
|
}).join('');
|
|
14300
14332
|
return html$O(_templateObject4$3 || (_templateObject4$3 = _taggedTemplateLiteralLoose(["\n <div class=\"slide\">\n <div class=\"slide-bg\" style=\"display:flex;inset:0;position:absolute;\">\n ", "\n </div>\n </div>\n "])), imagesRow);
|
|
@@ -14309,7 +14341,7 @@ var processHtml = function processHtml(_ref) {
|
|
|
14309
14341
|
customizationTheme = _ref.customizationTheme;
|
|
14310
14342
|
var items = (slide.steps || []).slice(0, 3);
|
|
14311
14343
|
if (!items.length) {
|
|
14312
|
-
return html$P(_templateObject$S || (_templateObject$S = _taggedTemplateLiteralLoose(["\n <div class=\"slide slide--process\">\n <div class=\"content\">\n <h2 class=\"title\">", "</h2>\n </div>\n </div>\n "])), slide.title || '');
|
|
14344
|
+
return html$P(_templateObject$S || (_templateObject$S = _taggedTemplateLiteralLoose(["\n <div class=\"slide slide--process\">\n <div class=\"content\">\n <h2 class=\"title\">", "</h2>\n </div>\n </div>\n "])), escapeHtml(slide.title || ''));
|
|
14313
14345
|
}
|
|
14314
14346
|
var accentColor = customizationStyle.accentColor;
|
|
14315
14347
|
var markerBg = increaseHexColorIntensity(accentColor, 100);
|
|
@@ -14318,33 +14350,33 @@ var processHtml = function processHtml(_ref) {
|
|
|
14318
14350
|
var listItems = items.map(function (item, index) {
|
|
14319
14351
|
var title = typeof item === 'string' ? '' : (item === null || item === void 0 ? void 0 : item.title) || '';
|
|
14320
14352
|
var desc = typeof item === 'string' ? item : (item === null || item === void 0 ? void 0 : item.description) || '';
|
|
14321
|
-
return html$P(_templateObject2$t || (_templateObject2$t = _taggedTemplateLiteralLoose(["\n <li\n style=\"flex:1;display:flex;flex-direction:column;box-sizing:border-box;position:relative;\"\n >\n <span\n style=\"
|
|
14353
|
+
return html$P(_templateObject2$t || (_templateObject2$t = _taggedTemplateLiteralLoose(["\n <li\n style=\"flex:1;display:flex;flex-direction:column;box-sizing:border-box;position:relative;\"\n >\n <span\n style=\"position:absolute;top:-16px;left:-4px;width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:", ";color:", ";font-weight:700;transform:translateY(-50%);margin-bottom:16px;\"\n >\n ", "\n </span>\n <div>\n ", "\n ", "\n </div>\n </li>\n "])), escapeHtml(markerBg), escapeHtml(markerColor), String(index + 1), title ? html$P(_templateObject3$e || (_templateObject3$e = _taggedTemplateLiteralLoose(["<h3\n class=\"subtitle\"\n style=\"margin:0 0 6px;font-weight:600;\"\n >\n ", "\n </h3>"])), escapeHtml(title)) : '', desc ? html$P(_templateObject4$4 || (_templateObject4$4 = _taggedTemplateLiteralLoose(["<p class=\"text\" style=\"margin:0;padding:8px 0 0;\">\n ", "\n </p>"])), escapeHtml(desc)) : '');
|
|
14322
14354
|
}).join('');
|
|
14323
|
-
return html$P(_templateObject5$2 || (_templateObject5$2 = _taggedTemplateLiteralLoose(["\n <div class=\"slide slide--process\">\n <div class=\"content\">\n <h2 class=\"title\">", "</h2>\n <ul\n class=\"bullets-ul\"\n style=\"
|
|
14355
|
+
return html$P(_templateObject5$2 || (_templateObject5$2 = _taggedTemplateLiteralLoose(["\n <div class=\"slide slide--process\">\n <div class=\"content\">\n <h2 class=\"title\">", "</h2>\n <ul\n class=\"bullets-ul\"\n style=\"display:flex;gap:24px;list-style:none;padding:16px 0 0;justify-content:center;width:auto;border-top:1px solid ", ";\"\n >\n ", "\n </ul>\n </div>\n </div>\n "])), escapeHtml(slide.title), escapeHtml(borderColor), listItems);
|
|
14324
14356
|
};
|
|
14325
14357
|
|
|
14326
|
-
var _templateObject$T, _templateObject2$u, _templateObject3$f, _templateObject4$5
|
|
14358
|
+
var _templateObject$T, _templateObject2$u, _templateObject3$f, _templateObject4$5;
|
|
14327
14359
|
var html$Q = String.raw;
|
|
14328
14360
|
var teamMemberHtml = function teamMemberHtml(_ref) {
|
|
14329
14361
|
var _ref$slide = _ref.slide,
|
|
14330
14362
|
slide = _ref$slide === void 0 ? {} : _ref$slide;
|
|
14331
14363
|
var members = (slide.teamMembers || []).slice(0, 3);
|
|
14332
14364
|
if (!members.length) {
|
|
14333
|
-
return html$Q(_templateObject$T || (_templateObject$T = _taggedTemplateLiteralLoose(["\n <div class=\"slide\">\n <div class=\"content\">\n <h2 class=\"title\">", "</h2>\n </div>\n </div>\n "])), slide.title || '');
|
|
14365
|
+
return html$Q(_templateObject$T || (_templateObject$T = _taggedTemplateLiteralLoose(["\n <div class=\"slide\">\n <div class=\"content\">\n <h2 class=\"title\">", "</h2>\n </div>\n </div>\n "])), escapeHtml(slide.title || ''));
|
|
14334
14366
|
}
|
|
14335
14367
|
var isRow = members.length > 1;
|
|
14336
|
-
var imageStyle = isRow ? '
|
|
14368
|
+
var imageStyle = isRow ? 'height:auto;' : 'max-height:30%;';
|
|
14337
14369
|
var memberHtml = members.map(function (member) {
|
|
14338
14370
|
var name = (member === null || member === void 0 ? void 0 : member.name) || '';
|
|
14339
14371
|
var role = (member === null || member === void 0 ? void 0 : member.role) || '';
|
|
14340
14372
|
var bio = (member === null || member === void 0 ? void 0 : member.bio) || '';
|
|
14341
14373
|
var img = getImage(member === null || member === void 0 ? void 0 : member.imageSource) || '';
|
|
14342
|
-
return html$Q(_templateObject2$u || (_templateObject2$u = _taggedTemplateLiteralLoose(["\n <div\n style=\"flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;box-sizing:border-box;\"\n >\n <span class=\"subtitle\" style=\"margin:0;font-weight:600;\"\n >", "</span\n >\n <span class=\"text\" style=\"margin:0;\">", "</span>\n <div
|
|
14374
|
+
return html$Q(_templateObject2$u || (_templateObject2$u = _taggedTemplateLiteralLoose(["\n <div\n style=\"flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;box-sizing:border-box;\"\n >\n <span class=\"subtitle\" style=\"margin:0;font-weight:600;\"\n >", "</span\n >\n <span class=\"text\" style=\"margin:0;color:var(--theme-text-color);\"\n >", "</span\n >\n <div\n style=\"display:flex;flex-direction:column;align-items:flex-start;width:100%;\"\n >\n <img\n src=\"", "\"\n alt=\"", "-avatar\"\n style=\"border-radius:8px;flex-shrink:0;max-width:100%;", "object-fit:contain;\"\n />\n ", "\n </div>\n </div>\n "])), escapeHtml(name), escapeHtml(role), escapeHtml(img), escapeHtml(name), imageStyle, bio ? html$Q(_templateObject3$f || (_templateObject3$f = _taggedTemplateLiteralLoose(["<p class=\"text\" style=\"margin:0;text-align:left;\">\n ", "\n </p>"])), escapeHtml(bio)) : '');
|
|
14343
14375
|
}).join('');
|
|
14344
|
-
return html$Q(_templateObject4$5 || (_templateObject4$5 = _taggedTemplateLiteralLoose(["\n <div class=\"slide\">\n <div class=\"content\" style=\"align-items:flex-start;\">\n ", "\n <div style=\"display:flex;gap:24px;width:100
|
|
14376
|
+
return html$Q(_templateObject4$5 || (_templateObject4$5 = _taggedTemplateLiteralLoose(["\n <div class=\"slide\">\n <div class=\"content\" style=\"align-items:flex-start;\">\n <h2 class=\"title\" style=\"text-align:left;\">\n ", "\n </h2>\n <div style=\"display:flex;gap:24px;margin-top:16px;width:100%;\">\n ", "\n </div>\n </div>\n </div>\n "])), escapeHtml(slide.title || ''), memberHtml);
|
|
14345
14377
|
};
|
|
14346
14378
|
|
|
14347
|
-
var _templateObject$U, _templateObject2$v, _templateObject3$g, _templateObject4$6, _templateObject5$
|
|
14379
|
+
var _templateObject$U, _templateObject2$v, _templateObject3$g, _templateObject4$6, _templateObject5$3;
|
|
14348
14380
|
var html$R = String.raw;
|
|
14349
14381
|
var textWithImageHtml = function textWithImageHtml(_ref) {
|
|
14350
14382
|
var _ref$slide = _ref.slide,
|
|
@@ -14352,12 +14384,12 @@ var textWithImageHtml = function textWithImageHtml(_ref) {
|
|
|
14352
14384
|
themeColors = _ref.themeColors;
|
|
14353
14385
|
var rawImg = slide.imageSources[0];
|
|
14354
14386
|
if (!rawImg) {
|
|
14355
|
-
return html$R(_templateObject$U || (_templateObject$U = _taggedTemplateLiteralLoose(["<div class=\"slide\">\n <div class=\"content\">\n <h2 class=\"title\">", "</h2>\n ", "\n </div>\n </div>"])), slide.title || '', slide.text ? html$R(_templateObject2$v || (_templateObject2$v = _taggedTemplateLiteralLoose(["<p class=\"text\">", "</p>"])), slide.text) : '');
|
|
14387
|
+
return html$R(_templateObject$U || (_templateObject$U = _taggedTemplateLiteralLoose(["<div class=\"slide\">\n <div class=\"content\">\n <h2 class=\"title\">", "</h2>\n ", "\n </div>\n </div>"])), escapeHtml(slide.title || ''), slide.text ? html$R(_templateObject2$v || (_templateObject2$v = _taggedTemplateLiteralLoose(["<p class=\"text\">", "</p>"])), escapeHtml(slide.text)) : '');
|
|
14356
14388
|
}
|
|
14357
14389
|
var img = getImage(rawImg);
|
|
14358
|
-
var imgUrl = img;
|
|
14359
|
-
var bg = themeColors;
|
|
14360
|
-
return html$R(_templateObject3$g || (_templateObject3$g = _taggedTemplateLiteralLoose(["<div class=\"slide split\">\n <div class=\"slide-bg\" style=\"background-color:", "\"></div>\n <div class=\"split-inner\">\n <div class=\"right-image\" style=\"width:50%;\">\n <img src=\"", "\" alt=\"\" />\n </div>\n <div class=\"left-content\" style=\"width:50%;box-sizing:border-box;\">\n ", "\n ", "\n </div>\n </div>\n </div>"])), bg, imgUrl, slide.title ? html$R(_templateObject4$6 || (_templateObject4$6 = _taggedTemplateLiteralLoose(["<h2 class=\"title\" style=\"text-align:left;margin:0 0 12px;\">\n ", "\n </h2>"])), slide.title) : '', slide.text ? html$R(_templateObject5$
|
|
14390
|
+
var imgUrl = escapeHtml(img);
|
|
14391
|
+
var bg = escapeHtml(themeColors);
|
|
14392
|
+
return html$R(_templateObject3$g || (_templateObject3$g = _taggedTemplateLiteralLoose(["<div class=\"slide split\">\n <div class=\"slide-bg\" style=\"background-color:", "\"></div>\n <div class=\"split-inner\">\n <div class=\"right-image\" style=\"width:50%;\">\n <img src=\"", "\" alt=\"\" />\n </div>\n <div class=\"left-content\" style=\"width:50%;box-sizing:border-box;\">\n ", "\n ", "\n </div>\n </div>\n </div>"])), bg, imgUrl, slide.title ? html$R(_templateObject4$6 || (_templateObject4$6 = _taggedTemplateLiteralLoose(["<h2 class=\"title\" style=\"text-align:left;margin:0 0 12px;\">\n ", "\n </h2>"])), escapeHtml(slide.title)) : '', slide.text ? html$R(_templateObject5$3 || (_templateObject5$3 = _taggedTemplateLiteralLoose(["<p class=\"text\" style=\"text-align:left;margin:0;\">\n ", "\n </p>"])), escapeHtml(slide.text)) : '');
|
|
14361
14393
|
};
|
|
14362
14394
|
|
|
14363
14395
|
var _templateObject$V;
|
|
@@ -14375,7 +14407,7 @@ var presentationStyle = function presentationStyle(_ref) {
|
|
|
14375
14407
|
return html$S(_templateObject$V || (_templateObject$V = _taggedTemplateLiteralLoose(["\n <style>\n :root {\n --slide-width: 1600px;\n --slide-height: 900px;\n --rounded: 24px;\n --theme-bg: ", ";\n --theme-title-color: ", ";\n --theme-subtitle-color: ", ";\n --theme-text-color: ", ";\n --print-width: 29.7cm; /* A4 long side (landscape width) */\n --print-height: 21cm; /* A4 short side (landscape height) */\n }\n @page {\n size: var(--print-width) var(--print-height);\n margin: 0;\n }\n\n @media print {\n html,\n body {\n height: 100%;\n margin: 0 !important;\n padding: 0 !important;\n -webkit-transform: none !important;\n transform: none !important;\n }\n .slides-export {\n padding: 0 !important;\n margin: 0 !important;\n gap: 0 !important;\n align-items: stretch !important;\n display: block !important;\n }\n .slide {\n width: var(--print-width) !important;\n height: var(--print-height) !important;\n box-shadow: none !important;\n border-radius: 0 !important;\n overflow: hidden !important;\n margin: 0 !important;\n page-break-inside: avoid !important;\n break-inside: avoid !important;\n page-break-after: always !important;\n break-after: page !important;\n -webkit-transform: none !important;\n transform: none !important;\n }\n .slide + .slide {\n page-break-before: always !important;\n break-before: page !important;\n }\n .slide:first-child {\n page-break-before: auto !important;\n }\n .slide:last-child {\n page-break-after: auto !important;\n }\n .slide-bg {\n position: absolute !important;\n inset: 0 !important;\n width: 100% !important;\n height: 100% !important;\n }\n .slide img.slide-bg,\n .right-image img {\n width: 100% !important;\n height: 100% !important;\n object-fit: cover !important;\n display: block !important;\n }\n * {\n -webkit-print-color-adjust: exact;\n print-color-adjust: exact;\n }\n }\n body {\n background: var(--theme-bg);\n margin: 0;\n padding: 0;\n }\n .slides-export {\n font-family: ", ";\n padding: 40px;\n display: flex;\n flex-direction: column;\n gap: 32px;\n align-items: center;\n }\n .slide {\n position: relative;\n width: var(--slide-width);\n height: var(--slide-height);\n border-radius: var(--rounded);\n background: var(--theme-bg);\n box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);\n overflow: hidden;\n display: flex;\n flex-direction: column;\n page-break-inside: avoid;\n break-inside: avoid;\n page-break-after: always;\n break-after: page;\n -webkit-transform: none !important;\n transform: none !important;\n }\n .slide:last-child {\n page-break-after: auto;\n break-after: auto;\n }\n .slide.split {\n display: flex;\n }\n .split-inner {\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n display: flex;\n }\n .cover-inner {\n position: relative;\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n z-index: 1;\n padding: 40px;\n }\n .cover-row {\n width: 100%;\n box-sizing: border-box;\n }\n .cover-center {\n flex: 1 1 auto;\n display: flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n }\n .cover-title {\n font-weight: 700;\n font-size: 48px;\n color: var(--theme-title-color);\n }\n .cover-subtitle {\n margin: 0;\n font-size: 20px;\n color: var(--theme-subtitle-color);\n }\n .left-content {\n flex: 1 1 50%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n padding: 40px;\n box-sizing: border-box;\n z-index: 1;\n }\n .right-image {\n width: 50%;\n min-width: 0;\n background-position: center;\n background-size: cover;\n z-index: 0;\n }\n .right-image img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n display: block;\n }\n .slide-bg {\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n object-fit: cover;\n z-index: 0;\n }\n .content {\n position: relative;\n z-index: 1;\n height: 100%;\n width: 100%;\n box-sizing: border-box;\n padding: 40px;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n }\n .page-number {\n position: absolute;\n top: 12px;\n right: 16px;\n font-size: 14px;\n color: var(--theme-subtitle-color);\n background: rgba(255,255,255,0.0);\n padding: 4px 8px;\n border-radius: 6px;\n z-index: 3;\n pointer-events: none;\n }\n .slide--bullet .content {\n align-items: flex-start;\n }\n .slide--bullet .title,\n .slide--bullet .subtitle,\n .slide--bullet .text {\n align-self: start;\n text-align: left;\n }\n .slide--bullet .bullets-ul {\n margin-top: 48px;\n }\n .slide--process .content {\n align-items: flex-start;\n }\n .slide--process .title,\n .slide--process .subtitle,\n .slide--process .text {\n align-self: start;\n text-align: left;\n }\n .slide--process .bullets-ul {\n margin-top: 48px;\n }\n .title {\n font-weight: 700;\n font-size: 48px;\n margin: 0 0 8px;\n text-align: center;\n color: var(--theme-title-color);\n }\n .subtitle {\n font-weight: 500;\n font-size: 28px;\n margin: 0;\n text-align: center;\n color: var(--theme-subtitle-color);\n }\n .text {\n font-size: 20px;\n margin-top: 16px;\n text-align: center;\n color: var(--theme-text-color);\n }\n .bullets {\n padding-left: 24px;\n font-size: 20px;\n }\n .image-wrapper {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n }\n .image-wrapper img {\n max-width: 100%;\n max-height: 100%;\n object-fit: contain;\n }\n @media (max-width: 1200px) {\n :root {\n --slide-width: 960px;\n --slide-height: 540px;\n }\n }\n @media (max-width: 720px) {\n :root {\n --slide-width: 360px;\n --slide-height: 640px;\n }\n }\n </style>\n"])), theme.background, theme.title, theme.subtitle, theme.text, fontStack);
|
|
14376
14408
|
};
|
|
14377
14409
|
|
|
14378
|
-
var _templateObject$W, _templateObject2$w, _templateObject3$h, _templateObject4$7, _templateObject5$
|
|
14410
|
+
var _templateObject$W, _templateObject2$w, _templateObject3$h, _templateObject4$7, _templateObject5$4;
|
|
14379
14411
|
var htmlRaw$3 = String.raw;
|
|
14380
14412
|
var presentationHtml = function presentationHtml(_ref) {
|
|
14381
14413
|
var _ref$customizationSty = _ref.customizationStyle,
|
|
@@ -14392,7 +14424,6 @@ var presentationHtml = function presentationHtml(_ref) {
|
|
|
14392
14424
|
if (!slides.length) {
|
|
14393
14425
|
return htmlRaw$3(_templateObject$W || (_templateObject$W = _taggedTemplateLiteralLoose(["<div>No slides available</div>"])));
|
|
14394
14426
|
}
|
|
14395
|
-
slides = deepDecodeHtml(slides);
|
|
14396
14427
|
slides = sanitize(slides);
|
|
14397
14428
|
var _getFontResources = getFontResources(font.family),
|
|
14398
14429
|
fontStack = _getFontResources.fontStack,
|
|
@@ -14431,7 +14462,7 @@ var presentationHtml = function presentationHtml(_ref) {
|
|
|
14431
14462
|
var fontLinkTags = fontLinks.map(function (href) {
|
|
14432
14463
|
return htmlRaw$3(_templateObject4$7 || (_templateObject4$7 = _taggedTemplateLiteralLoose(["<link rel=\"stylesheet\" href=\"", "\" />"])), href);
|
|
14433
14464
|
}).join('');
|
|
14434
|
-
return htmlRaw$3(_templateObject5$
|
|
14465
|
+
return htmlRaw$3(_templateObject5$4 || (_templateObject5$4 = _taggedTemplateLiteralLoose(["<!DOCTYPE html>\n <html>\n <head>\n <meta charset=\"UTF-8\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n ", "\n ", "\n </head>\n <body>\n <div class=\"slides-export\">\n ", "\n </div>\n </body>\n </html>"])), fontLinkTags, css, innerContent);
|
|
14435
14466
|
};
|
|
14436
14467
|
|
|
14437
14468
|
exports.ContractHtml = contractHtml;
|
|
@@ -14440,7 +14471,7 @@ exports.InvoiceCompatJapanHtml = InvoiceCompatHtml$1;
|
|
|
14440
14471
|
exports.InvoiceHtml = invoiceHtml;
|
|
14441
14472
|
exports.InvoiceJapanHtml = invoiceHtml$1;
|
|
14442
14473
|
exports.PresentationHtml = presentationHtml;
|
|
14443
|
-
exports.SubscriptionInvoiceHtml =
|
|
14474
|
+
exports.SubscriptionInvoiceHtml = SubscriptionInvoiceHtml;
|
|
14444
14475
|
exports.invoiceHtmlWithDetails = renderOldLayout;
|
|
14445
14476
|
exports.invoiceHtmlWithDetailsNew = renderNewLayout;
|
|
14446
14477
|
exports.invoiceJapanHtmlWithDetails = renderLayout;
|